SIMATIC Automatisierungssystem S7-1500, Automatisierungssystem ET 200MP

07/2020

DI FA AS E&C-PRM Siemens AG

s71500 et200mp manual collection en-US
7KLVGRFXPHQWFRQWDLQVD FRPSLODWLRQRIDOOPDQXDOV IRUWKH6(703 V\VWHPIDPLO\ 8VHWKHERRNPDUNVRQWKH OHIWHGJHRIWKHVFUHHQWR QDYLJDWH

Manual Collection
SIMATIC
S7-1500, ET 200MP
Automation system S7-1500 Automation system ET 200MP

Edition

07/2020

support.industry.siemens.com

Automation system

SIMATIC S7-1500, ET 200MP Automation system
System Manual
11/2019
A5E03461182-AF

Preface

S7-1500 / ET 200MP Documentation Guide

1

New properties/functions

2

System overview

3

Application planning

4

Installation

5

Wiring

6

Configuring

7

Basics of program execution

8

Protection

9

10 Flexible automation concepts

Commissioning

11

CPU display

12

Maintenance

13

Test and service functions

14

Technical specifications

15

Dimension drawings

A

Accessories/spare parts

B

Safety-relevant symbols

C

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

 11/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface

Purpose of the documentation
This documentation provides you with important information on how to configure, install, wire and commission the S7-1500 automation system/ET 200MP distributed I/O system.

Basic knowledge required
General knowledge in the field of automation engineering is required to understand this documentation.

Validity of the documentation
This documentation is valid for all products from the SIMATIC S7-1500 and SIMATIC ET 200MP product families.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Automation system

System Manual, 11/2019, A5E03461182-AF

3

Preface
Special information
Note Important note for maintaining the operational safety of your plant
Plants with safety-related features are subject to special operational safety requirements on the part of the operator. The supplier is also required to comply with certain measures for product monitoring. Siemens informs system operators in the form of personal notifications about product developments and properties which may be or become important issues in terms of operational safety.
You need to subscribe to the corresponding notifications to ensure that you always remain up-to-date and are able to make any necessary changes to your plant regarding operational safety should the need arise.
Register with Industry Online Support. Follow the links below and click on "Email on update" on the right-hand side in each case: · SIMATIC S7-300/S7-300F (https://support.industry.siemens.com/cs/ww/en/ps/13751) · SIMATIC S7-400/S7-400H/S7-400F/FH
(https://support.industry.siemens.com/cs/ww/en/ps/13828) · SIMATIC WinAC RTX (F) (https://support.industry.siemens.com/cs/ww/en/ps/13915) · SIMATIC S7-1500/SIMATIC S7-1500F
(https://support.industry.siemens.com/cs/ww/en/ps/13716) · SIMATIC S7-1200/SIMATIC S7-1200F
(https://support.industry.siemens.com/cs/ww/en/ps/13883) · Distributed I/O (https://support.industry.siemens.com/cs/ww/en/ps/14029) · STEP 7 (TIA Portal) (https://support.industry.siemens.com/cs/ww/en/ps/14340)
Note
When using F-CPUs in safety mode and fail-safe modules, note the description of the failsafe system SIMATIC Safety Programming and Operating Manual SIMATIC Safety Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126).
Note Product information
The product information on the S7-1500 automation system/ET 200MP distributed I/O system contains: · Module overview of SIMATIC, S7-1500 and ET 200MP · Additions to the documentation
The product information can be found on the Internet (http://support.automation.siemens.com/WW/view/en/68052815).

Automation system

4

System Manual, 11/2019, A5E03461182-AF

Preface
Recycling and disposal
The products are low in pollutants and can be recycled. For environmentally compliant recycling and disposal of your electronic waste, please contact a company certified for the disposal of electronic waste.
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Automation system

System Manual, 11/2019, A5E03461182-AF

5

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

Automation system

6

System Manual, 11/2019, A5E03461182-AF

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide .......................................................................................... 13

2 New properties/functions....................................................................................................................... 15

3 System overview................................................................................................................................... 19

3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6

Overview of the SIMATIC S7-1500 automation system .........................................................19 The SIMATIC automation systems .........................................................................................19 Comparison of SIMATIC automation systems........................................................................21 Areas of application SIMATIC S7-1500 and ET 200MP.........................................................23 Plant components and automation levels ...............................................................................24 Scalability ................................................................................................................................25 Overview of features ...............................................................................................................27

3.2 3.2.1 3.2.2 3.2.3

Configuration ........................................................................................................................... 30 Configuration of the SIMATIC S7-1500 Automation System..................................................30 Configuration of the distributed I/O system SIMATIC ET 200MP...........................................31 Configuration of a fail-safe system with SIMATIC S7-1500....................................................32

3.3

Components ............................................................................................................................ 36

3.4 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7

CPUs ....................................................................................................................................... 41 What can you do with the CPU?.............................................................................................41 Technical specifications of CPUs ...........................................................................................43 Web server..............................................................................................................................46 Safety ......................................................................................................................................47 Security ...................................................................................................................................49 Diagnostics .............................................................................................................................51 Trace .......................................................................................................................................52

3.5

Interface modules for SIMATIC S7-1500 I/O devices.............................................................54

3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6

Input and output modules .......................................................................................................55 Which I/O devices are the correct ones?................................................................................56 Digital input modules...............................................................................................................57 Digital output modules ............................................................................................................59 Fail-safe digital modules .........................................................................................................61 Analog input modules .............................................................................................................62 Analog output modules ...........................................................................................................65

3.7 3.7.1 3.7.2 3.7.3 3.7.4

Communication .......................................................................................................................67 Interfaces for communications ................................................................................................67 CM communication modules / CP communications processors ............................................67 Communication module IO-Link Master .................................................................................70 Safety-related communication via fail-safe modules ..............................................................71

3.8 3.8.1 3.8.2 3.8.3

Technology functions ..............................................................................................................72 Motion control .........................................................................................................................72 PID Control .............................................................................................................................76 Technology functions of the compact CPUs...........................................................................77

Automation system

System Manual, 11/2019, A5E03461182-AF

7

Table of contents

3.8.4 3.8.5 3.8.6 3.8.7

Technology modules for counting, measuring and position detection................................... 78 Technology module for time-based IO................................................................................... 79 Technology module for weighing technology......................................................................... 80 Technology Module TM NPU................................................................................................. 81

3.9

Power supply.......................................................................................................................... 82

3.10

Connection elements and system cabling ............................................................................. 85

3.11 3.11.1 3.11.2 3.11.3 3.11.4 3.11.5 3.11.6

Software ................................................................................................................................. 87 TIA Portal ............................................................................................................................... 87 TIA Selection Tool.................................................................................................................. 88 SIMATIC Automation Tool ..................................................................................................... 88 SINETPLAN ........................................................................................................................... 89 PRONETA.............................................................................................................................. 89 SIMATIC S7 app .................................................................................................................... 89

4 Application planning.............................................................................................................................. 90

4.1 4.1.1 4.1.2
4.1.3

Hardware configuration .......................................................................................................... 90 Hardware configuration of the S7-1500 automation system.................................................. 90 Hardware configuration of the ET 200MP distributed I/O system with PROFINET interface module..................................................................................................................... 92 Hardware configuration of the ET 200MP distributed I/O system with PROFIBUS interface module..................................................................................................................... 94

4.2 4.2.1 4.2.2
4.2.3

System and load power supply .............................................................................................. 95 Use of system power supplies ............................................................................................... 96 Special considerations for the use of a system power supply in the first power segment ................................................................................................................................. 98 Special requirements when using the power supply PS 60W 24/48/60VDC HF................. 100

4.3

Power balance calculation ................................................................................................... 103

4.4

Use of load power supplies .................................................................................................. 106

5 Installation ...........................................................................................................................................107

5.1

Basics................................................................................................................................... 107

5.2

Installing the mounting rail ................................................................................................... 109

5.3

Installing the standard rail adapter....................................................................................... 114

5.4

Installing a system power supply ......................................................................................... 120

5.5

Installing a load current supply ............................................................................................ 122

5.6

Installing the CPU ................................................................................................................ 124

5.7

Installing the interface module ............................................................................................. 126

5.8

Installing I/O modules .......................................................................................................... 127

Automation system

8

System Manual, 11/2019, A5E03461182-AF

Table of contents

6 Wiring ................................................................................................................................................. 129

6.1

Rules and regulations for operation......................................................................................129

6.2
6.2.1 6.2.2 6.2.3

Additional rules and regulations for operation of the S7-1500/ET 200MP with fail-safe modules ................................................................................................................................131 Safety extra-low voltage (SELV, PELV) for failsafe modules ...............................................131 Requirements of sensors and actuators for fail-safe modules .............................................132 Capacitive crosstalk of digital input/output signals ...............................................................134

6.3

Operation on grounded infeed ..............................................................................................134

6.4

Electrical configuration..........................................................................................................138

6.5

Wiring rules ...........................................................................................................................141

6.6

Connecting the supply voltage..............................................................................................146

6.7

Connecting system power supply and load current supply ..................................................147

6.8

Connecting the CPU/interface module to the load current supply........................................149

6.9

Connecting interfaces for communication.............................................................................151

6.10 6.10.1 6.10.2 6.10.3

Front connector for the I/O modules .....................................................................................152 Wiring front connectors for I/O modules without shield contact element..............................154 Wiring front connectors for I/O modules with shield contact element...................................156 Bringing the front connector into final position......................................................................163

6.11 6.11.1 6.11.2

Marking the I/O modules.......................................................................................................164 Labeling strips.......................................................................................................................164 Optional marking...................................................................................................................166

7 Configuring ......................................................................................................................................... 167

7.1 7.1.1 7.1.2 7.1.2.1 7.1.2.2 7.1.2.3 7.1.3 7.1.3.1 7.1.3.2

Configuring the CPU .............................................................................................................168 Reading out the configuration...............................................................................................169 Address assignment .............................................................................................................174 Addressing - overview...........................................................................................................174 Addressing digital modules ...................................................................................................176 Addressing analog modules .................................................................................................178 Process images and process image partitions .....................................................................180 Process image - overview.....................................................................................................180 Update process image partitions in the user program..........................................................182

7.2

Configuring ET 200MP distributed I/O system .....................................................................183

7.3

Assigning PROFIsafe address to fail-safe modules with SIMATIC Safety...........................184

8 Basics of program execution ............................................................................................................... 185

8.1

Events and OBs ....................................................................................................................185

8.2

Asynchronous instructions ....................................................................................................188

Automation system

System Manual, 11/2019, A5E03461182-AF

9

Table of contents

9 Protection ............................................................................................................................................198

9.1

Overview of the protection functions.................................................................................... 198

9.2

Configuring access protection for the CPU.......................................................................... 199

9.3

Using the display to set additional password protection ...................................................... 202

9.4

Using the user program to set additional access protection ................................................ 203

9.5

Know-how protection ........................................................................................................... 203

9.6

Copy protection .................................................................................................................... 207

9.7

Protection by locking the CPU/interface module ................................................................. 208

10 Flexible automation concepts ...............................................................................................................209

10.1

Standard machine projects .................................................................................................. 209

10.2 10.2.1 10.2.2 10.2.2.1 10.2.2.2 10.2.2.3 10.2.2.4 10.2.3 10.2.4

Configuration control (option handling) ................................................................................ 210 Configuring........................................................................................................................... 212 Creating the control data record .......................................................................................... 214 Control data record for the S7-1500 Automation System .................................................... 217 Control data record for the ET 200MP distributed I/O system ............................................. 218 Feedback data record of the ET 200MP distributed I/O system .......................................... 219 Examples of configuration control........................................................................................ 221 Transferring the control data record in the startup program of the CPU ............................. 224 Behavior during operation .................................................................................................... 228

11 Commissioning ....................................................................................................................................229

11.1

Overview .............................................................................................................................. 229

11.2

Check before powering on for the first time ......................................................................... 230

11.3 11.3.1 11.3.2

Procedure for commissioning the S7-1500 automation system .......................................... 231 Removing/inserting a SIMATIC memory card on the CPU.................................................. 232 First power-on of the CPU ................................................................................................... 235

11.4 11.4.1 11.4.2

Procedure for commissioning the ET 200MP distributed I/O system .................................. 236 Commissioning the ET 200MP for PROFINET IO ............................................................... 236 Commissioning the ET 200MP for PROFIBUS DP.............................................................. 237

11.5 11.5.1 11.5.2 11.5.3 11.5.4

Operating modes.................................................................................................................. 238 STARTUP mode .................................................................................................................. 238 STOP mode ......................................................................................................................... 242 RUN mode ........................................................................................................................... 243 Operating mode transitions .................................................................................................. 244

11.6 11.6.1 11.6.2

CPU memory reset .............................................................................................................. 246 Automatic memory reset ...................................................................................................... 247 Manual memory reset .......................................................................................................... 247

11.7

Backing up and restoring the CPU configuration................................................................. 249

11.8 11.8.1

Time synchronization ........................................................................................................... 253 Example: Configuring and changing NTP server................................................................. 255

11.9 11.9.1 11.9.2 11.9.3

Identification and maintenance data .................................................................................... 258 Reading out and entering I&M data ..................................................................................... 258 Record structure for I&M data .............................................................................................. 260 Example: Read out firmware version of the CPU with Get_IM_Data................................... 263

11.10

Shared commissioning of projects ....................................................................................... 265

Automation system

10

System Manual, 11/2019, A5E03461182-AF

Table of contents

12 CPU display ........................................................................................................................................ 266

13 Maintenance ....................................................................................................................................... 275

13.1

Removing and inserting I/O modules....................................................................................275

13.2

Replacing the display/front cover..........................................................................................276

13.3 13.3.1 13.3.2 13.3.3

Replacement of I/O modules and front connectors ..............................................................278 Coding element on the I/O module and on the front connector............................................278 Replacing an I/O module ......................................................................................................281 Replacing a front connector ..................................................................................................283

13.4

Replacing the coding element at the power connector of the system power supply and

load current supply................................................................................................................285

13.5

Firmware update ...................................................................................................................287

13.6 13.6.1 13.6.2

Reset to factory settings .......................................................................................................292 Resetting the CPU to factory settings...................................................................................292 Resetting interface module (PROFINET IO) to factory settings ...........................................297

13.7

Fault reactions with fail-safe modules...................................................................................298

13.8

Maintenance and repair ........................................................................................................300

14 Test and service functions................................................................................................................... 301

14.1

Test functions........................................................................................................................301

14.2

Reading out/saving service data...........................................................................................308

15 Technical specifications ...................................................................................................................... 311

15.1

Standards and Approvals .....................................................................................................312

15.2

Electromagnetic compatibility ...............................................................................................318

15.3

Electromagnetic compatibility of fail-safe modules ...............................................................320

15.4

Shipping and storage conditions...........................................................................................321

15.5

Mechanical and climatic ambient conditions ........................................................................321

15.6

Information on insulation tests, protection class, degree of protection and rated voltage....327

15.7

Use of the S7-1500/ET 200MP in zone 2 hazardous areas .................................................328

A Dimension drawings............................................................................................................................ 329

A.1

Dimension drawings of the mounting rails ............................................................................329

A.2

Dimension drawing of shielding bracket for 35 mm modules ...............................................332

A.3

Dimension drawing of shielding bracket for 25 mm modules ...............................................333

A.4

Dimension drawing of shielding bracket for 35 mm modules ...............................................333

A.5

Dimension drawing of shielding bracket for 25 mm modules ...............................................334

A.6

Dimension drawing of infeed element for 35 mm modules...................................................334

A.7

Dimension drawing of infeed element for 25 mm modules...................................................334

A.8

Dimension drawings of the labeling strips ............................................................................335

A.9

Dimension drawing of test probe for measurement tap........................................................335

Automation system

System Manual, 11/2019, A5E03461182-AF

11

Table of contents

B Accessories/spare parts.......................................................................................................................336

C Safety-relevant symbols.......................................................................................................................339

C.1

Safety-related symbols for devices without Ex protection ................................................... 339

C.2

Safety-related symbols for devices with Ex protection ........................................................ 340

Glossary ..............................................................................................................................................342

Index ...................................................................................................................................................353

Automation system

12

System Manual, 11/2019, A5E03461182-AF

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Automation system

System Manual, 11/2019, A5E03461182-AF

13

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Automation system

14

System Manual, 11/2019, A5E03461182-AF

New properties/functions

2

What's new in the system manual S7-1500, ET 200MP; Edition 11/2019 since the previous version 12/2017

What's new?

What are the customer benefits?

New contents

Standard rail adapter
Communication module IOLink Master

You install the SIMATIC S7-1500/ET 200MP automation system on a standard 35 mm DIN rail using the DIN rail adapter.
With the IO-Link master, you can do the following during operation:

Where can I find the information? Sec. Installing the standard rail adapter (Page 114)
Section Communication module IO-Link Master (Page 70)

· Changing parameters for the production and processing of product variants and batches down to sensor/actuator level

· Specify remote diagnostics or detailed diagnostics up to the sensor/actuator

Communications processor CP 1545-1 CP 1545-1TSN
Technology Module TM NPU

Communication processors connect the SIMATIC S7-1500 automation system securely with networks. With the integrated security functions, communication processors protect the S7-1500 automation system and lower-level networks from unauthorized access. Communication processors use encryption to protect data transfer against manipulation and espionage.
With the technology module TM NPU you can:

Section CM communication modules / CP communications processors (Page 67)
Section Technology Module TM NPU (Page 81)

· Process large amounts of data via neural networks

· Perform visual quality check

· Control robot systems via screen · Using pick-and-place applications

Basic analog input module

The new, simple and inexpensive analog Section Analog input modules input module provides data for temperature (Page 62) measurement with RTD via 8 channels.

Automation system

System Manual, 11/2019, A5E03461182-AF

15

New properties/functions

What's new in the system manual S7-1500, ET 200MP; Edition 12/2017 since the previous version 09/2016

What's new? New contents Technology CPUs
CPU 1518(F)-4 PN/DP MFP
Password provider

What are the customer benefits?

Where can I find the information?

· Extension of the Technology-CPU portfo- Starting from section System

lio by the CPUs 1516T(F)-3 PN/DP

overview (Page 19)

· All technology-CPUs feature the new technology object TO_Kinematik. With the TO_Kinematics you can implement complex motion control applications for controlling 2D, 3D and 4D kinematics.

· Extension of the CPU portfolio by the

Starting from section System

CPUs 1518(F)-4 PN/DP MFP (multifunc- overview (Page 19)

tional platform)

· The CPU can execute both STEP 7 blocks of the "usual" user programs and blocks and applications which were programmed with C/C++.
· The multifunctional platform offers you the option of running C/C++ code synchronously in the CPU cycle (via the CPU function library). In addition, the multifunctional platform can run C/C++ applications as separate applications in parallel to CPU runtime.

· With C/C++ applications you can implement parallel processes for the STEP 7 user program, e.g. for pre-processing or sending data via Industrial Ethernet. A CPU can perform several tasks at the same time, the complexity of functions is reduced and the time required for implementation is reduced.

· You can re-use existing technological know-how in C/C++ code synchronously and asynchronously to the STEP 7 user program.

As an alternative to manual entry of password, you can connect a password provider to STEP 7. A password provider offers you the following advantages:

Section Know-how protection (Page 203)

· More convenient handling of passwords. STEP 7 automatically imports the password for the blocks. This saves you time

· Optimum block protection as the users do not know the password themselves

Automation system

16

System Manual, 11/2019, A5E03461182-AF

New properties/functions

What's new?
Changed contents

GetSMCinfo instruction Testing with breakpoints

What are the customer benefits?

Where can I find the information?

With the help of the GetSMCinfo instruction you can respond to information provided by the memory card in the user program and if required, replace the memory card as a precautionary measure. This process makes sense if you write to the card often in your application, for example if you use data logs.

Section Overview of SIMATIC memory card

When testing with breakpoints, you execute a program from one breakpoint to another. Testing with breakpoints provides you with the following advantages:

Section Test functions (Page 301)

· Testing SCL and STL program code with the help of breakpoints

· Localization of logic errors step by step

· Simple and quick analysis of complex programs prior to actual commissioning

· Recording of current values within individual executed loops

· Use of breakpoints for program validation also possible in SCL/STL networks within LAD/FBD blocks

PS 60W 24/48/60VDC HF system power supply

The PS 60W 24/48/60VDC HF enables extended retentivity of the CPU's data work memory.
In the event of the failure of the supply voltage, the PS 60W 24/48/60VDC HF supplies sufficient power for the CPU to back up the entire data work memory (without retentive data) to the SIMATIC memory card.

Section Use of system power supplies (Page 96)

Time synchronization

For all applications which require the exact time, update the time of the CPU using the NTP procedure. This also automatically sets the CPU time beyond subnet limits.

Section Time synchronization (Page 253)

Reading out the identifica- With the Get_IM_Data instruction you can

tion and maintenance data read out the identification and maintenance

using the Get_IM_Data data of the modules without much program-

instruction

ming work.

With the Get_IM_Data instruction you can access identification and maintenance data (I&M) of a module in the user program. I&M data is information saved in a module. This allows you to

Section Reading out and entering I&M data (Page 258)

· Check the system configurations

· React to hardware changes

· React to hardware faults in the user program.
Finding and elimination of hardware errors is easier.

Automation system

System Manual, 11/2019, A5E03461182-AF

17

New properties/functions

What's new in the system manual S7-1500, ET 200MP; Edition 09/2016 since the previous version 12/2014

What's new? New contents Compact CPUs
Technology CPUs Fail-safe modules

Changed contents

Formatting, erasing or converting a SIMATIC memory card via the display Asynchronous instructions
Configuration control

What are the customer benefits?

Where can I find information?

You can use compact CPUs for smaller to medium-sized applications The compact CPUs have integrated analog and digital onboard I/O as well as integrated technology functions.

Starting from section System overview (Page 19)

You can use technology CPUs for demanding Starting from section System applications. Technology CPUs are equipped overview (Page 19) with expanded motion control functions.

With fail-safe modules, you replace the conventional safety engineering technical setup. For example, this involves replacement of switching devices for EMERGENCY OFF, protective door monitoring and two-hand operation.

Starting from section System overview (Page 19)

Your SIMATIC memory card is formatted, erased or converted to a program card directly via the display without having to use STEP 7. You save time.

Section SIMATIC memory card

You are given an overview of the resource Section Asynchronous instrucconsumption of asynchronous instructions. tions (Page 188) This ensures adequate resources in the CPU.

Configuration control provides you with the following advantages:

Section Configuration control (Page 210)

· Different configuration levels of a standard machine can be handled in a single project.
· No changes to the hardware configuration or user program are needed.
· Centralized/distributed configuration of a system is flexibly variable
· Easy handling during maintenance, versioning and upgrades.
· Hardware savings: You only use the I/O modules that you currently need.
· Potential savings when building, commissioning and creating documentation for standard machines.

Wiring rules for the power You are given information on proper connec-

supply elements

tion of the power supply elements.

Connecting the CPU/interface module to the load current supply

You are given information on proper connection of the CPU/interface module to the load current supply.

Firmware update via accessible devices

You are given information on fast firmware updates via accessible devices in the network.

Section Wiring rules (Page 141)
Section. Connecting the CPU/interface module to the load current supply (Page 149)
Section Firmware update (Page 287)

Automation system

18

System Manual, 11/2019, A5E03461182-AF

System overview

3

3.1
3.1.1

Overview of the SIMATIC S7-1500 automation system
The SIMATIC automation systems
You need optimum solutions for every application in order to automate your machines and plants economically and flexibly.
The SIMATIC controller portfolio includes a variety of systems:
 The SIMATIC S7-1200 Basic Controller is the intelligent choice for compact automation solutions with integrated communication and technology functions.
 If plant complexity and system performance are priorities, the SIMATIC S7-1500 automation system is the right choice for you. The SIMATIC S7-1500 controller builds on the more simple functionality of the SIMATIC S7-1200 Basic Controller and fulfills the highest demands on performance, flexibility and networking capability.
 The SIMATIC ET 200SP Distributed Controller combines the advantages of the S7-1500 and the very compact design of the ET 200SP with high channel density. By using distributed intelligence, you save costs and space in the control cabinet.
 For use outside the cabinet, the CPU 1513pro-2 PN and CPU 1516pro-2 PN offer you SIMATIC S7-1500 functionality in the design of the ET 200pro in the degree of protection IP65/IP67.
 If you require PC-based automation, use the SIMATIC S7-1500 software controller. The PC-based controller is autonomous from the operating system during operation.
 If you want to increase the availability of your system, use the redundant system S7-1500R/H. In the system, two CPUs (primary and backup CPU) process the user program in parallel and permanently synchronize all relevant data. In the event of failure of the primary CPU, the backup CPU takes over control of the process at the point of interruption.

Automation system

System Manual, 11/2019, A5E03461182-AF

19

System overview 3.1 Overview of the SIMATIC S7-1500 automation system
The SIMATIC controllers are integrated into the Totally Integrated Automation Portal and offer consistent data management and a uniform operating concept. With its integrated functions, engineering in the TIA Portal ensures consistent functionality.

Figure 3-1 Overview of SIMATIC automation systems
The SIMATIC S7-1500 automation system supports all conventional communication standards. All the SIMATIC S7-1500 CPUs offer integrated motion control functions. Technology CPUs are available for extended motion control functions. The SIMATIC S7-1500 CPUs are also available as fail-safe controllers. Diagnostic functions across all components simplify troubleshooting. Changes to the parameter assignment can be implemented quickly and easily with the integrated display. Integrated security functions help against:  Manipulation  Theft of know-how Integrated security functions offer additional security mechanisms for the configuration of secured networks.

Automation system

20

System Manual, 11/2019, A5E03461182-AF

System overview 3.1 Overview of the SIMATIC S7-1500 automation system

3.1.2

Comparison of SIMATIC automation systems
The tables below compare the main technical specifications of the SIMATIC systems.

Basic Controller SIMATIC S7-1200

Data work memory, max. Code work memory, max. Load memory/mass storage, max.
I/O address area, max. Integrated interfaces, max.

150 KB
32 GB (via SIMATIC memory card) 1024/1024 bytes 1 x PROFINET IO (2-port switch)

Controller with integrated inputs and outputs Configuration control Web server Isochronous mode Integrated display Technology integrated
Security integrated Integrated system diagnostics Integrated safety functionality Degree of protection

X
--X ----Motion Control PID Control X X
In F-CPUs
IP20

controller SIMATIC ET 200SP CPU
1 MB 200 KB 32 GB (via SIMATIC memory card) 32/32 KB 1 x PROFINET IO (3-Port switch) 2 x PROFINET ---
X X Distributed --Motion Control PID Control X X
In F-CPUs
IP20

SIMATIC ET 200SP Controller 1515SP PC 5 MB 1 MB 320 MB
32/32 KB 1 x PROFINET IO (2-port switch) 1 x PROFINET ---
X X Distributed As Windows application Motion Control PID Control X X
In F-CPUs
IP20

Automation system

System Manual, 11/2019, A5E03461182-AF

21

System overview 3.1 Overview of the SIMATIC S7-1500 automation system

Distributed Controller SIMATIC ET 200pro

Advanced Controller SIMATIC S7-1500

Data work memory, max.
Code work memory, max.
Load memory/mass storage, max.
I/O address area, max.
Integrated interfaces, max.

5 MB 1.5 MB
32 GB (via memory card) 32/32 KB 1 x PROFINET IO (3-Port switch) 1 x PROFINET IO

20 MB 6 MB
32 GB (via memory card) 32/32 KB 1 x PROFINET IO (2-port switch) 1 x PROFINET IO 1 x PROFINET 1 x PROFIBUS

Software Controller SIMATIC S7-1500 20 MB 5 MB

SIMATIC S7-1500R/H
8 MB 2 MB

320 MB

32 GB

32/32 KB
Support the hardware interfaces

32/32 KB 1 x PROFINET IO (2-port switch) 1 x PROFINET 1 x H-Sync interface

Controller with integrated inputs and outputs Configuration control Web server Isochronous mode

---
X X Distributed

Integrated display Technology integrated

--Motion Control PID Control

Security integrated
Integrated system diagnostics
Integrated safety functionality
Degree of protection
Redundancy connections (synchronization link)

X X
In F-CPUs
IP65/67 ---

System redundancy

---

C-CPU

---

---

X X Distributed
X Motion Control PID Control C-CPUs: High-speed counters, PWM, PTO, frequency output X X

X

---

X

---

Distributed (support

---

using CP 1625)

As Windows application X

Motion Control

PID control

PID Control

X

X

X

X

In F-CPUs

In F-CPUs

---

IP20 ---
---

Depending on hardware IP20

---

Profinet ring (R-

CPUs)

Fiber-optic cable (H-CPUs)

---

Yes

Automation system

22

System Manual, 11/2019, A5E03461182-AF

System overview 3.1 Overview of the SIMATIC S7-1500 automation system

3.1.3

Areas of application SIMATIC S7-1500 and ET 200MP

Area of application SIMATIC S7-1500
The SIMATIC S7-1500 automation system offers you the required flexibility and performance for a wide range of controller applications in machine and plant engineering. The scalable configuration makes it possible for you to adapt your PLC onsite to the local conditions.
In addition to the standard motion control and technology functions available in the S7-1500, SIMATIC S7-1500 technology CPUs offer you additional features such as enhanced synchronous operation and cam disk functionalities.
The SIMATIC S7-1500 automation system conforms with IP20 degree of protection and is intended for use in a dry environment and installation in a control cabinet.
SIMATIC S7-1500R/H CPUs (redundant or fault-tolerant CPUs) offer you the option to increase the availability of your system. In order to be able to switch from the primary CPU to the backup CPU in case of need, the user program is processed synchronously on two CPUs.

Area of application Distributed I/O system ET 200MP
SIMATIC ET 200MP is a modular, scalable and universally usable distributed I/O system. SIMATIC ET 200MP offers the same system benefits as the SIMATIC S7-1500. A central controller accesses the I/O modules of the ET 200MP as central I/O modules via PROFINET or PROFIBUS.
SIMATIC ET 200MP convinces with its high performance:
 For shortest response times
 For large configuration limits
 For fastest applications
This is also accompanied by the high-speed backplane bus, special input/output modules and the consistent use of PROFINET mechanisms.

Area of application F-system SIMATIC Safety with S7-1500 and ET 200MP
By using fail-safe SIMATIC S7-1500 CPUs and modules, you can implement applications for safety engineering. This enables you to achieve almost seamless integration of machine safety into the SIMATIC S7-1500 and ET 200MP. You use one system at the same time for both your standard and fail-safe automation. This provides you with economic benefits, reliability as well as savings potential for hardware, engineering tasks and storage costs.

Automation system

System Manual, 11/2019, A5E03461182-AF

23

System overview 3.1 Overview of the SIMATIC S7-1500 automation system

3.1.4

Plant components and automation levels
The Advanced Controllers SIMATIC S7-1500 are used for complete production automation and in applications for medium-sized and high-end machines. The combination of the individual SIMATIC components offers powerful and flexible automation solutions that cover all ranges of control applications:
 The process signals are connected to the central controller via fieldbus
 All modules are located directly in the automation system or in the distributed I/O system
 F-CPUs with integrated safety functionality ensure fail-safe processes
 SIMATIC S7-1500 is intended for installation in the control cabinet with IP20 degree of protection
The SIMATIC S7-1500 is integrated across all communication standards consistently in the various automation levels.

Figure 3-2 Basic structure: SIMATIC S7-1500 at management, control and field level
You can also find an overview of the SIMATIC S7-1500 automation system on the Internet (https://new.siemens.com/global/en/products/automation/systems/industrial/plc/simatic-s71500.html).

Automation system

24

System Manual, 11/2019, A5E03461182-AF

System overview 3.1 Overview of the SIMATIC S7-1500 automation system

3.1.5

Scalability
In order to suit the requirements of your plant planning, the SIMATIC S7-1500 controllers can be scaled in their processing speed and configuration limits. They also offer networking facilities via different communications standards.
Safety Integrated, Motion Control, and other technology functions can be used for all plant sizes.
Different example applications with different SIMATIC S7-1500 CPUs are shown in the following:

SIMATIC S7-1500 with integrated I/O

Figure 3-3 Example: Plant configuration with SIMATIC S7-1500 with integrated I/O

Automation system

System Manual, 11/2019, A5E03461182-AF

25

System overview 3.1 Overview of the SIMATIC S7-1500 automation system SIMATIC S7-1500 with I/O, ET 200MP and HMI device
Figure 3-4 Example: Plant configuration with SIMATIC S7-1500 with I/O, ET 200MP and HMI device
SIMATIC S7-1500 with Motion Control, distributed I/O and IO-Link devices

Figure 3-5 Example: Plant configuration with SIMATIC S7-1500, Motion Control, distributed I/O and IO-Link devices

Automation system

26

System Manual, 11/2019, A5E03461182-AF

System overview 3.1 Overview of the SIMATIC S7-1500 automation system
SIMATIC S7-1500 with safety und WLAN integration

Figure 3-6 Example: Plant configuration with SIMATIC S7-1500 and Safety on PROFINET

3.1.6

Overview of features

Automation system SIMATIC S7-1500
Through the integration of numerous new performance features, the S7-1500 automation system offers you excellent operability and the highest performance.

Automation system

System Manual, 11/2019, A5E03461182-AF

27

System overview 3.1 Overview of the SIMATIC S7-1500 automation system
Important properties and functions

Figure 3-7 SIMATIC S7-1500 automation system - Properties and functions

Automation system

28

System Manual, 11/2019, A5E03461182-AF

System overview 3.1 Overview of the SIMATIC S7-1500 automation system
Distributed I/O system ET 200MP
The ET 200MP distributed I/O system is a scalable and flexible system for connecting the process signals to a CPU via a fieldbus. The modules have a very high channel density and a low variety of parts. This simplifies ordering, logistics and spare parts handling significantly.
Important properties and functions

Figure 3-8 SIMATIC ET 200MP distributed I/O system - Properties and functions

Automation system

System Manual, 11/2019, A5E03461182-AF

29

System overview 3.2 Configuration

3.2

Configuration

3.2.1

Configuration of the SIMATIC S7-1500 Automation System

Configuration

The SIMATIC S7-1500 automation system is made up of the following components:  CPU (standard, fail-safe, compact or technology CPU)  Digital and analog I/O modules  Communications modules (PROFINET/Ethernet, PROFIBUS, point-to-point)  Technology modules (counting, position detection, time-based IO)  Load current supply  System power supply (optional) You install the S7-1500 automation system on a mounting rail. You can install up to 32 modules (CPU, system power supply and 30 I/O modules) on the mounting rail. You connect the modules to each other with U connectors.

Configuration example

 System power supply  CPU  I/O modules  Mounting rail with integrated DIN rail profile
Figure 3-9 Example configuration of an S7-1500 automation system

Automation system

30

System Manual, 11/2019, A5E03461182-AF

System overview 3.2 Configuration

3.2.2

Configuration of the distributed I/O system SIMATIC ET 200MP

Configuration

The SIMATIC ET 200MP distributed I/O system is made up of the following components:
 Interface module (PROFINET or PROFIBUS)
 Digital and analog I/O modules
 Communications modules (point-to-point)
 Technology modules (counting, position detection, time-based IO)
 System power supply (optional)
The ET 200MP distributed I/O system is installed on a mounting rail like the S7-1500 automation system. The I/O modules of the SIMATIC ET 200MP distributed I/O system can be used in a decentralized configuration (with an ET 200MP interface module) or in a centralized configuration (with an S7-1500 CPU).

Example of a configuration with the IM 155-5 PN ST interface module

 Interface module  I/O modules  System power supply  Mounting rail with integrated DIN rail profile
Figure 3-10 Example of a configuration of the ET 200MP with IM 155-5 PN ST

Automation system

System Manual, 11/2019, A5E03461182-AF

31

System overview 3.2 Configuration
Example of a configuration with the IM 155-5 DP ST interface module



Interface module



I/O modules



Mounting rail with integrated DIN rail profile

Figure 3-11 Example of a configuration of the ET 200MP with IM 155-5 DP ST

3.2.3

Configuration of a fail-safe system with SIMATIC S7-1500

Fail-safe automation systems
Fail-safe automation systems (F-systems) are used in systems with higher safety requirements. F-systems control processes and ensure that they are in a safe state immediately after shutdown. In other words, F-systems control processes in which an immediate shutdown does not endanger persons or the environment.

Safety Integrated
Safety Integrated is the integrated safety concept for automation and drive technology from Siemens.
Proven technologies and systems from automation technology, such as SIMATIC S7-1500 in this case, are used for safety systems. Safety Integrated includes the complete safety sequence, ranging from sensor, actuator and fail-safe modules right through to the controller, including safety-related communication via standard fieldbuses. Drives and controllers handle safety tasks in addition to their actual functions.

Automation system

32

System Manual, 11/2019, A5E03461182-AF

System overview 3.2 Configuration
SIMATIC Safety F-system with S7-1500 and ET 200MP
The figure below contains an example of an F-system SIMATIC Safety with S7-1500, ET 200MP and PROFINET IO. You can combine fail-safe I/O modules and non-fail-safe I/O modules in a can be combined in a S7-1500/ET 200MPconfiguration. The fail-safe IO controller (F-CPU) exchanges:  Safety-related data with fail-safe modules.  Non-safety-related data with non-fail-safe modules.

Figure 3-12 Fail-safe automation system SIMATIC Safety (example)
Fail-safe I/O modules S7-1500/ET 200MP
The following fail-safe I/O modules are available for S7-1500/ET 200MP:  Fail-safe digital input modules detect the signal states of safety-related sensors and send
the relevant safety frames to the F-CPU.  Fail-safe digital output modules control actuators for safety-oriented tasks.

Automation system

System Manual, 11/2019, A5E03461182-AF

33

System overview 3.2 Configuration
Configuration example of the ET 200MP with fail-safe I/O modules

 Interface module  I/O modules  Power supply (optional)  Fail-safe I/O modules  Mounting rail with integrated top-hat rail
Figure 3-13 Configuration example of the ET 200MP with fail-safe I/O modules
Hardware and software requirements
You use the S7-1500/ET 200MP fail-safe I/O modules:  In S7-1500 with S7-1500 F-CPUs as of firmware version V1.7  Distributed in ET 200MP with S7-1500 F-CPUs as of firmware version V1.5 and all F-
CPUs that can be selected in the hardware catalog of the TIA Portal Fail-safe I/O modules in ET 200MP require the following interface modules:  IM 155-5 PN BA, as of firmware version V4.3  IM 155-5 PN ST, as of firmware version V3.0.0  IM 155-5 PN HF, as of firmware version V3.0.0  IM 155-5 DP ST, as of firmware version V3.0.0 To configure and program fail-safe I/O modules S7-1500/ET 200MP , you need:  STEP 7, V13 SP1 or higher  The option package STEP 7 Safety Advanced as of V13 SP1 + HSP0086

Automation system

34

System Manual, 11/2019, A5E03461182-AF

System overview 3.2 Configuration

Use in safety mode only
You can only use the S7-1500/ET 200MP fail-safe I/O modules in safety mode. They cannot be used in non-fail-safe mode, i.e. standard mode.

Achievable safety classes
Fail-safe I/O modules are equipped with integrated safety functions for safety mode. You can achieve the safety classes of the table below:  By corresponding parameter assignment of the safety functions in STEP 7  With a specific combination of fail-safe and non-fail-safe I/O modules as well as  With a special arrangement and wiring of the sensors and actuators

Table 3- 1 Safety classes that can be achieved with S7-1500/ET 200MP in safety mode

According to IEC 61508:2010 SIL3 SIL3

Safety class in safety mode

According to ISO 13849-1:2015

Category 3

(PL) Performance Level d

Category 4

(PL) Performance Level e

Additional information
An overview of the technical specifications of the fail-safe I/O modules can be found in section Fail-safe digital modules (Page 61).
The applications and wiring for the particular safety class are described in the manuals of the fail-safe I/O modules.

Automation system

System Manual, 11/2019, A5E03461182-AF

35

System overview 3.3 Components

3.3

Components

Components of the S7-1500 automation system/ET 200MP distributed I/O system

Table 3- 2 Components S7-1500/ET 200MP

Components Mounting rail

Function
The mounting rail is the rack of the SIMATIC S7-1500/ET 200MP automation system. You can use the entire length of the mounting rail (marginless assembly).
The mounting rails can be ordered as Accessories/spare parts (Page 336) accessories.

Diagram

Standard rail adapter

The SIMATIC S7-1500/ET 200MP automation system is installed on a standard 35 mm DIN rail using the DIN rail adapter.
The standard rail adapter can be ordered as accessories/spare parts (Page 336).

PE connection element for mounting rail

The set of screws is threaded into the mounting rail's T-profile groove, and is required for grounding the mounting rail.
The set of screws is contained in the scope of delivery of the mounting rails in the standard lengths (160 to 830 mm) and can be ordered as Accessories/spare parts (Page 336).

Automation system

36

System Manual, 11/2019, A5E03461182-AF

Components CPU (standard, failsafe, compact or technology CPU)
Interface module for PROFINET IO

Function The CPU executes the user program. The integrated system power supply of the CPU supplies the modules used via the backplane bus. Further features and functions of the CPU: · Communication via Ethernet · Communication via PROFIBUS / PROFINET · HMI communication · Integrated web server · OPC UA server · OPC UA client · Integrated technology (e.g. motion control functions, trace func-
tionality) · Integrated system diagnostics · Integrated protection functions (access, know-how and copy pro-
tection) · Safety mode (when using fail-safe CPUs)
The interface module: · Is used as an IO device on PROFINET IO. · Links the ET 200MP distributed I/O system with the IO controller. · Exchanges data with the I/O modules via the backplane bus.

Interface module for PROFIBUS DP

The interface module: · Is used as a DP slave PROFIBUS DP. · Links the ET 200MP distributed I/O system with the DP master. · Exchanges data with the I/O modules via the backplane bus.

System overview 3.3 Components
Diagram

Automation system

System Manual, 11/2019, A5E03461182-AF

37

System overview 3.3 Components

Components I/O module/ fail-safe I/O module
U connector Front connectors
Potential bridges for front connector

Function
The I/O modules form the interface between the controller and the process. The controller detects the current process state via the connected sensors and actuators, and triggers the corresponding reactions. I/O modules are divided into the following module types:
· Digital input (DI, F-DI)
· Digital output (DQ, F-DQ)
· Digital input/digital output (DI/DQ)
· Analog input (AI)
· Analog output (AQ)
· Analog input/analog output (AI/AQ)
· Technology module (TM)
· Communication module (CM)
· Communication processor (CP) A U connector is included in the scope of delivery for each I/O module.
For fail-safe I/O modules, an additional electronic coding element for saving the PROFIsafe address is included in the scope of delivery and can be ordered as spare part Accessories/spare parts (Page 336).
The individual modules are connected to one another with the U connector. The U connector provides the mechanical and electrical connection between the modules.
The U connector is included in the scope of delivery of all modules (exceptions: CPU, interface module) and can be ordered as Accessories/spare parts (Page 336).
The purpose of the front connectors is to wire the I/O modules.
The front connectors for technology and analog modules must be supplemented with a shielding bracket, power supply element, and shielding clamp. The components are included in the scope of delivery of the technology modules, analog modules and compact CPUs (for onboard I/O) and can be ordered as Accessories/spare parts (Page 336)accessories.
There are front connectors with screw terminals and push-in terminals for 35 mm modules, and with push-in terminals for 25 mm modules.
The front connectors for 25 mm modules are included in the scope of delivery of the I/O modules and compact CPUs (for onboard I/O).
Four potential bridges and one cable tie are included in the scope of delivery of the front connectors for 35 mm modules. The front connectors for 25 mm modules have no potential bridges due to the compact module design.
You jumper two terminals with potential bridges.
The potential bridges are included in the scope of delivery of the front connector and can be ordered as Accessories/spare parts (Page 336).
The front connectors for 25 mm modules have no potential bridges. Therefore, you should also observe the information in the product manual for the respective digital or analog module.

Diagram

Automation system

38

System Manual, 11/2019, A5E03461182-AF

Components Shielding bracket

Function
The shield bracket is an insertable bracket for modules with EMCcritical signals (e.g. analog modules, technology modules), and (together with the shield clamp) permits the low impedance application of shielding with minimal installation times.
The shield bracket is included in the scope of delivery of the analog modules, technology modules and compact CPUs (for onboard I/O) and can be ordered as Accessories/spare parts (Page 336).

System overview 3.3 Components
Diagram

Shield clamp

The shield clamps are used to attach cable shielding to the shielding bracket.
The shield clamp is included in the scope of delivery of the analog modules, technology modules and compact CPUs (for onboard I/O) and can be ordered as Accessories/spare parts (Page 336).

Power supply element
Labeling strips for the exterior of the front cover of the I/O modules
4-pole connection plug for supply voltage of the CPU/interface module

The power supply element is inserted in the front cable connector, and serves to supply power to modules with EMC-critical signals (analog modules, technology modules).
The power supply element (connection technology: screw terminal) is included in the scope of delivery of the analog and technology modules and can be ordered as Accessories/spare parts (Page 336).
The labeling strips are used to label the modules for specific plants. You can label the labeling strips using a machine. The labeling strips are available in various colors:
· Al gray: Non-fail-safe modules
· Yellow: Fail-safe modules
The labeling strips are included in the scope of delivery of the I/O modules and compact CPUs (for onboard I/O). Additional labeling strips can be ordered as Accessories/spare parts (Page 336).
The supply voltage is supplied by means of the 4-pole connection plug.

Automation system

System Manual, 11/2019, A5E03461182-AF

39

System overview 3.3 Components

Components System power supply (PS)
Load current supply (PM)

Function
The system power supply is a diagnostics-capable power supply module, that can be connected with the backplane bus using a U connector.
A system power supply is required when the power fed from the CPU/interface module into the backplane bus is not sufficient to supply the connected modules with power.
System power supplies are available in various models:
· PS 25W 24V DC
· PS 60W 24/48/60V DC
· PS 60W 24/48/60V DC HF*
· PS 60W 120/230V AC/DC A power cable connector with coding element and U connector is included in the scope of delivery of the system power supply and may be ordered as spare part.
The load current supply (PM) supplies the system power (PS), central modules (CPU), interface module and input and output circuits of the I/O modules with 24 V DC.
If you are using load current supplies, we recommend the devices from our SIMATIC series. These devices can be mounted on the mounting rail.
Load current supplies are available in various models:
· PM 70W 120/230V AC
· PM 190W 120/230V AC As an alternative to the SIMATIC load current supplies (PM), you can also use SITOP smart power supplies. Use of a SITOP smart power supply is recommended in these cases, among others:
· Higher power requirement
· Redundancy
· Uninterruptible power supply For additional information on the SITOP modules, refer to an FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/96998532).

* Additionally the PS 60W 24/48/60V DC HF keeps the complete work memory of the CPU retentive.

Diagram

Reference

You can find additional information on the different function classes (for example, basic, standard) of the interface and I/O modules in FAQ in Internet (https://support.industry.siemens.com/cs/de/de/view/109476914/en).

Automation system

40

System Manual, 11/2019, A5E03461182-AF

3.4

CPUs

System overview 3.4 CPUs

Figure 3-14 controller
SIMATIC S7-1500 controllers are characterized by maximum performance capability thanks to a high-performance backplane bus, very short terminal-to-terminal response time and extremely fast signal processing. The controller (CPU) executes the user program. The integrated system power supply of the controller provides power to the modules used through the backplane bus. A fail-safe version is available for each SIMATIC S7-1500 controller (except C-CPUs). To use the safety functions in the TIA Portal, you need the "STEP 7 Safety Advanced" option package. During commissioning of the plant you can, for example, change the IP address of the CPU directly via the display, thus saving time and costs. In the event of a service call, the plant downtimes are minimized by quick access to diagnostics alarms. For effective commissioning and fast optimization of drives and controls, the SIMATIC S71500 supports extensive trace functions for all CPU tags. A SIMATIC S7-1500 controller also offers additional functions:  Communication via Ethernet/PROFINET  Communication via PROFIBUS  HMI communication  Communication via OPC UA  Web server, technology functions, system diagnostics, protection functions integrated  When using an F-CPU: Safety mode  When using a S7-1500 R/H CPU: Redundancy

3.4.1

What can you do with the CPU?
SIMATICS7-1500 provides you with a variety of CPUs that can be integrated. You can expand each CPU with I/O, communications and technology modules. If the memory and performance of a CPU 1511-1 PN are sufficient for your application, but you also require additional communication interfaces, then you have the option of extending the CPU with communication modules for Ind. Ethernet, PROFINET and PROFIBUS. Modules for serial communication are also available.

Automation system

System Manual, 11/2019, A5E03461182-AF

41

System overview 3.4 CPUs
The CPU provides you with the following options:

Figure 3-15 Selection guide for CPUs 42

Automation system System Manual, 11/2019, A5E03461182-AF

System overview 3.4 CPUs

3.4.2

Technical specifications of CPUs

Table 3- 3 Standard CPUs and F-CPUs

CPU

1511-1 PN 1513-1 PN 1515-2 PN 1516-3 PN/DP

1511F-1 PN

1515F-2 PN 1516F-3 PN/DP

1511T-1 PN 1513F-1 PN 1515T-2 PN 1516T-3 PN/DP

1511TF-1 PN

1515TF-2 PN 1516TF-3 PN/DP

Article number

Standard CPU:

6ES7511- 6ES7513- 6ES7515-

6ES7516-3AN01-

1AK02-0AB0 1AL02-0AB0 2AM01-0AB0 0AB0

F-CPU

6ES7511- 6ES7513- 6ES7515-

6ES7516-3FN01-

1FK01-0AB0 1FL01-0AB0 2FM01-0AB0 0AB0

T-CPU

6ES7511- --1TK01-0AB0

6ES7515-

6ES7516-3TN00-

2TM01-0AB0 0AB0

TF-CPU

6ES7511- --1UK01-0AB0

6ES7515-

6ES7516-3UN00-

2UM01-0AB0 0AB0

CPU 1518 ---

---

---

---

MFP

CPU 1518F ---

---

---

---

MFP

Manual

Standard CPU:

T-CPU

---

CPU 1518 ---

---

---

---

MFP

F-CPU

Supply voltage, permissible range of all the CPUs 19.2 V DC ... 28.8 V DC

Code work memory

Standard CPU:

150 KB

300 KB

500 KB

1 MB

T-CPU

225 KB

---

750 KB

1.5 MB

F-CPU

225 KB

450 KB

750 KB

1.5 MB

1517-3 PN/DP 1518-4 PN/DP 1517F-3 PN/DP 1518F-4 PN/DP 1517T-3 PN/DP 1518-4 PN/DP MFP 1517TF-3 PN/DP 1518F-4 PN/DP MFP

6ES7517-3AP00- 6ES7518-4AP00-

0AB0

0AB0

6ES7517-3FP00- 6ES7518-4FP00-

0AB0

0AB0

6ES7517-3TP00- --0AB0

6ES7517-3UP00- --0AB0

---

6ES7518-4AX00-

1AB0

---

6ES7518-4AX00-

1AB0

-----

2 MB
3 MB 3 MB

4 MB
--6 MB

Data work 1 MB memory
Processing times
Bit opera- 0.06 µs tions
Word oper- 0.072 s ations
Integrated interfaces
PROFINET 1 IO
PROFINET ---

1.5 MB

3 MB

0.04 s 0.048 s

0.03 s 0.036 s

1

2

---

---

5 MB
0.01 s 0.012 s
2 ---

8 MB
0.002 s 0.003 s
2 ---

20 MB
0.001 s 0.002 s
2 1

Automation system

System Manual, 11/2019, A5E03461182-AF

43

System overview 3.4 CPUs

CPU

1511-1 PN 1513-1 PN

1511F-1 PN

1511T-1 PN 1513F-1 PN

1511TF-1 PN

Number of 2

2

PROFINET

ports

PROFIBUS ---

---

DP

Technology

Motion

800

800

Control

resources*

Typical

5

5

number of

positioning

axes (at 4

ms ser-

vo/IPO

cycle)

Max. num- 10

10

ber of posi-

tioning axes

Isochro-

Centralized Centralized

nous mode and distribut- and distrib-

ed

uted

Web server X

X

1515-2 PN 1515F-2 PN 1515T-2 PN 1515TF-2 PN 3
---
2400
7
30
Centralized and distributed X

1516-3 PN/DP 1516F-3 PN/DP 1516T-3 PN/DP 1516TF-3 PN/DP 3
1
2400 T(F)-CPU: 6400 7
30
Centralized and distributed X

1517-3 PN/DP 1518-4 PN/DP

1517F-3 PN/DP 1518F-4 PN/DP

1517T-3 PN/DP 1518-4 PN/DP MFP

1517TF-3 PN/DP 1518F-4 PN/DP MFP

3

4

1

1

10240 70

10240 128

128

128

Centralized and Centralized and dis-

distributed

tributed

X

X

* See section Motion Control (Page 72)

Automation system

44

System Manual, 11/2019, A5E03461182-AF

System overview 3.4 CPUs

Table 3- 4 Compact CPUs

Controller Article number Manual Supply voltage, permissible range Code work memory Data work memory Processing time for bit operations Processing time for Word operations PROFINET interfaces Number of PROFINET ports Integrated analog inputs/outputs Integrated digital inputs/outputs Technology Motion Control resources* Typical number of positioning axes (at 4 ms servo/IPO cycle) Max. number of positioning axes Isochronous mode High-speed counters Frequency meter Period duration measurement Pulse generators (pulse width modulation, Pulse Train Output, frequency output) Web server

1511C-1 PN 6ES7511-1CK01-0AB0
19.2 V DC to 28.8 V DC 175 KB 1 MB 0.06 µs 0.072 s 1 2 5 inputs/2 outputs 16 inputs/16 outputs
800 5
10 Distributed 6 (max. 100 kHz) 6 (max. 100 kHz) 6 channels 4
X

1512C-1 PN 6ES7512-1CK01-0AB0
19.2 V DC to 28.8 V DC 250 KB 1 MB 0.048 s 0.058 µs 1 2 5 inputs/2 outputs 32 inputs/32 outputs
800 5
10 Distributed 6 (max. 100 kHz) 6 (max. 100 kHz) 6 channels 4
X

* See section Motion Control (Page 72)

Code work memory: Volatile memory that contains runtime-relevant parts of the program code.

Data work memory: Volatile memory that contains the runtime-relevant parts of the data blocks and technology objects.

Automation system

System Manual, 11/2019, A5E03461182-AF

45

System overview 3.4 CPUs

3.4.3

Web server
The SIMATIC S7-1500 CPUs have an integrated web server.
You can display the CPU status without additional software installation via a web browser and control it to a limited extent. Graphically visualized process variables and user-defined websites facilitate information acquisition and diagnostics of plant states.

Figure 3-16 Home page web server
Example: Web server simplifies maintenance of treatment plants
Automation task: Implementation of a user interface for fault management of a treatment plant. Feature: Treatment plants operate fully automatically, they are not manned. The operator optionally receives an SMS if a fault occurs. For diagnostics, the operator directly accesses the corresponding web sites. Solution: Creation of user sites for the web server of a SIMATIC S7-1500 CPU. The customer can make changes to the web sites himself, e.g. the mobile number for the SMS messages, settings in the CPU or the message texts.

Automation system

46

System Manual, 11/2019, A5E03461182-AF

System overview 3.4 CPUs

Benefits

The web server provides you with the following advantages:  Access via web browsers to a SIMATIC S7-1500 with plant-relevant operating data  Display of service and diagnostics information over large distances  Access restrictions for unauthorized users

Additional information
A detailed description of handling the web server can be found in the Function Manual "SIMATIC S7-1500 web server" SIMATIC S7-1500 Web server (https://support.industry.siemens.com/cs/de/en/view/59193560).

3.4.4

Safety
For fail-safe operation of your plant, program the F-CPUs of the SIMATIC S7-1500. Use the "STEP 7 Safety Advanced" option package of the TIA Portal for this purpose. In combination with the TIA Portal, the F-CPUs offer optimal integration of fail-safe systems into your engineering environment; one controller, one communication system and one engineering platform for standard and fail-safe automation:
 Integration of safety technology
 Instructions approved by German Technical Inspectorate for frequently required safety applications
 Integration of safety-related functions up to SIL 3 according to IEC 61508:2010 or PL e and category 4 according to ISO 13849-1:2015 or according to EN ISO 13849-1:2015
 Uniform engineering for standard and safety automation
 Simple documentation of safety-related changes via the F change history in STEP 7 Safety
 Support in the acceptance of the safety program and no renewed acceptance of the safety program after changes in the standard program

Automation system

System Manual, 11/2019, A5E03461182-AF

47

System overview 3.4 CPUs
Example: Production cell with access protection
Automation task: A laser scanner monitors access to a production area. The maintenance area is secured by a protective door. Entering the production area or opening the protective door, just like an emergency stop, results in the shutdown or stopping of the production cell.

 Emergency stop  Laser scanner  Protective door  Control panel with start and acknowledgment key
Figure 3-17 Production cell with access protection
Feature:
Start-up of the system is only possible with unlocked emergency stop, closed protective door and free protection area of the laser scanner. After activating the emergency stop, opening the protective door or addressing the protection area, a user acknowledgement is required to restart production operations again. Access protection to the F-CPU and the safety program is essential for productive operation.
Solution:
Use of a SIMATIC S7-1500 F-CPU with fail-safe modules in the distributed I/O system ET 200SP on the PROFINET IO.
The F modules ET 200SP take over the connections for emergency stop, monitoring of the protective door, monitoring of the access area, the motor and the user acknowledgment. Perform the relevant programming in STEP 7. The safety program runs in the CPU.

Automation system

48

System Manual, 11/2019, A5E03461182-AF

System overview 3.4 CPUs

Benefits

SIMATIC Safety Integrated provides you with the following advantages:
 Engineering with SIMATIC STEP 7 Safety Advanced in the TIA Portal, same engineering and operating concept for standard and fail-safe automation task
 Use of instructions approved by the German Technical Inspectorate from the system library Safety in the safety program, e.g. for protective door, emergency stop, monitored feedback loop circuit and user acknowledgment, saves time and reduces the error rate
 Simple connections of PROFIsafe devices via PROFINET and PROFIBUS
 Additional password protection for F-CPU and safety program is set up for IT security.
 Integration in integrated system diagnostics

Additional information
A detailed description of the topic "Safety Integrated" is available in the programming and operating manual SIMATIC Safety - Configuring and ProgrammingSIMATIC Safety Configuration and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126).

3.4.5

Security
Security means protection of technical systems against sabotage, espionage and human error.

Protection functions
To set up secure networks, the SIMATIC S7-1500 automation system offers an integrated security concept from authorization levels up to block protection:

Protection function Access protection Know-how protection Copy protection Locking the CPU

Description
Protection against unauthorized configuration changes through four authorization levels and an integrated firewall
Protection against unauthorized access and modifications to algorithms by means of password protection
Protection against duplication of programs by linking individual blocks with the serial number of the original memory card on the SIMATIC memory card
Protection against unauthorized access by locking the front cover with a seal or a lock

You can find additional information about security mechanisms of the SIMATIC automation systems in the "Security" document at SIMATIC S7 controllers (https://support.industry.siemens.com/cs/ww/en/view/77431846).

Automation system

System Manual, 11/2019, A5E03461182-AF

49

System overview 3.4 CPUs
Secure Communication
It is becoming increasingly necessary to transfer data to external computers in encrypted form via Intranet or public networks. SIMATIC S7-1500 CPUs and ET 200 CPUs with firmware version 2.0 and higher support the Internet PKI (RFC 5280) with STEP 7 as of V14. This makes the configuration and the operation of Secure Communication possible, for example:  Hypertext Transfer Protocol Secure (HTTPS)  Secure Open User Communication  Secure Communication with OPC UA A public key infrastructure (PKI) can issue, distribute and check digital certificates. For S71500 CPUs, you create certificates for various applications in the CPU properties in STEP 7, for example: TLS certificates for Secure Open User Communication, Web server certificates, OPC UA certificates.
Communications processors with integrated security functions
For special requirements of your plant, use communications processors with integrated security functions, such as access protection using a firewall, protection against data manipulation using VPN, FTPS, HTTPS, SNMPv3 and secure NTP.
Advantages and customer benefits
The protection functions listed above protect your investments from unauthorized access and manipulation, helping to secure plant availability.

Automation system

50

System Manual, 11/2019, A5E03461182-AF

3.4.6

System overview 3.4 CPUs
Diagnostics
Integrated diagnostics across all levels of the automation is incorporated in the SIMATIC S7-1500 automation system. All SIMATIC products have integrated diagnostic functions which you can use to analyze and localize faults and errors efficiently. This reduces the commissioning periods required and minimizes standstill times in production.
A uniform display concept ensures that error messages in the STEP 7, on the HMI, the Web server and in the display of the CPU are visualized identically as plain text information.
You can optionally configure machine and plant diagnostics. This means that the logic of these process diagnostic messages or monitoring depends directly on the state of the plant and is defined by you.

Monitoring functions are integrated in the hardware as standard. Diagnostics is implemented system-wide across bus limits. Output of the cause of the error in plain text, archiving and logging of alarms Automatic localization of the error source Configurability of alarms Plant-wide, uniform display of system status
Figure 3-18 Display of diagnostic information
Faults in the plant are immediately detected and reported on the display devices, even in STOP mode. As a result, system diagnostics is always consistent with the actual state of the plant.

Automation system

System Manual, 11/2019, A5E03461182-AF

51

System overview 3.4 CPUs
Advantages and customer benefits
Integrated system diagnostics offers the following advantages:  Diagnostics is always consistent with the actual state of the plant. The system diagnostics
also works in the STOP mode of the CPU.  The uniform display concept enables efficient error analysis.  The immediate identification of the error source in the event of an error speeds up
commissioning and minimizes production downtimes.  By configuring diagnostics events, you tailor the diagnostics to the requirements of your
automation task.

3.4.7

Trace
for effective commissioning and optimization of drives and closed-loop controls, the SIMATIC S7-1500 CPUs feature integrated trace functionality. The trace function records the CPU tags, depending on the settable trigger conditions. Tags are, for example, drive parameters or system and user tags of a CPU. You can display and evaluate the saved recordings with STEP 7.
By visualizing the entire process with real-time trace, you identify, for example, sporadic events in the system during commissioning and service.

Figure 3-19 Schematic overview 52

Automation system System Manual, 11/2019, A5E03461182-AF

System overview 3.4 CPUs

Example: Trace optimizes the commissioning of packaging machines
Automation task:
At what speed does a plant reach its maximum productivity? How do you quickly determine the optimum settings?
The packaging machine ensures quick and reliable packaging of ECG electrodes on a rotary table which is loaded and unloaded by a conveyor belt.
Feature:
After filling is the correct time for further transport of the packaged electrodes. Light barriers trace the position of the electrodes for this.
Solution:
The Trace function of a SIMATIC S7-1500 CPU visualizes the exact sequence of selected signals over a short period of time. It supports the start-up engineer in finding the exact light barrier positions and the optimum speed for belts and the rotary table.
The trace recordings are supplied to the customer as part of the plant project. In the event of a fault, the customer recognizes whether changes to the basic settings have caused the fault.
In addition, the trace recordings are stored as a "measurement" on the SIMATIC memory card, up to 999 trace recordings are available for evaluation.

Advantages and customer benefits
The Trace function provides you with the following advantages:  Cost-effective and easy evaluation as the signals are available in the CPU  Monitoring of highly dynamic processes  Up to 8 independent trace jobs simultaneously  Recording for each cycle of up to 16 tag values for the precise optimization of controls
and drives  recording in separate CPU memory area for easy localization of sporadic errors  Various trigger options  Various zoom and cursor measuring functions  Saving trace recordings on the SIMATIC memory card  export of measurements, e.g. for user-specific processing

Project trace

A project trace includes trace configurations of multiple devices and records the signals across devices.
Synchronization takes place via a global trigger that can be triggered by any device. After receiving the global trigger, the devices with valid project trace configuration start the recording.

Additional information
You can find a detailed description of the "Trace" function in the Function Manual SIMATIC/SINAMICS Using the trace and logic analyzer function SIMATIC/SINAMICS Trace and logic analyzer function (https://support.industry.siemens.com/cs/ww/en/view/64897128).

Automation system

System Manual, 11/2019, A5E03461182-AF

53

System overview 3.5 Interface modules for SIMATIC S7-1500 I/O devices

3.5

Interface modules for SIMATIC S7-1500 I/O devices

An interface module connects the SIMATIC S7-1500 I/O devices as ET 200MP distributed I/O system via PROFINET or PROFIBUS with the controller. The interface module exchanges the data between the higher-level controller and the I/O modules.

Interface modules

Short designation

IM 155-5 PN HF

IM 155-5 PN BA

IM 155-5 PN ST

Article number

High Feature (HF)

6ES7155-5AA00-0AC0

---

Standard (ST)

6ES7155-5AA01-0AB0

---

Basic (BA)

---

6ES7155-5AA00-0AA0

Manual

High Feature (HF)

---

Standard (ST)

---

Basic (BA)

---

Supply voltage

24 V DC

24 V DC

Number of IO modules

30

12

Interfaces

1 x PROFINET IO; integrated 1 x PROFINET IO; integrat-

2-port switch

ed 2-port switch

Min. slave interval

---

---

Isochronous real-time com- X

---

munication (IRT)

Isochronous mode

X (shortest cycle 250 µs)

---

Prioritized startup

X

---

Device replacement without programming device

X (LLDP; address assignment X (LLDP; address assign-

by a tool, for example, STEP ment by a tool, for example,

7)

STEP 7)

Shared device

High Feature: 4 IO controllers 2 IO controllers

Default: 2 IO controllers

Identification and maintenance I&M 0 to 3 data

I&M 0 to 3

Media redundancy (MRP)

X

X

Media redundancy with

High Feature: X

---

planned duplication (MRPD) Default:

System redundancy on S7-400H

High Feature: With GSD file --and STEP 7 V5.5 SP3 or higher

Default:

System redundancy in

High Feature: X

---

S7-1500R/H

Default:

GSD file for ET 200MP

PROFINET

PROFINET

IM 155-5 DP ST
--6ES7155-5BA00-0AB0 ---
---
--24 V DC 12 1 x PROFIBUS 100 s ---------
---
I&M 0 to 3 -----
---
---
PROFIBUS

Automation system

54

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

3.6

Input and output modules

The I/O modules form the interface between the controller and the process. The controller detects the current process state via the connected sensors and actuators, and triggers the corresponding reactions.

Digital and analog modules provide the inputs/outputs that are required for the respective task.
The input/output modules are divided into function classes.

Function classes of input/output modules
The table below shows selected properties and technical specifications of different function classes of input/output modules.

Function class High Speed (HS) High Feature (HF)
Standard (ST)
Basic (BA)

Special modules for extremely fast applications Shortest input delays Shortest conversion times Isochronous mode Flexible use Even for complex applications Parameters for each channel Diagnostics for each channel Add-on functions
Medium price range Parameter per load group / module Diagnostics per load group / module
Inexpensive, simple modules No parameters No diagnostics

With analog modules
· Highest accuracy (< 0.1%) · High common mode voltage (e. g.
60 V DC / 30 V AC), with singlechannel electrical isolation if required
With analog modules
· Universal modules · Accuracy  0.3% · Common-mode voltage approx. 10
V to 20 V

Automation system

System Manual, 11/2019, A5E03461182-AF

55

System overview 3.6 Input and output modules

3.6.1

Which I/O devices are the correct ones?
SIMATIC S7-1500 offers a wide range of I/O modules. Depending on the complexity of your plant and the technical and functional requirements, you perform your planning flexibly and in a modular manner with SIMATIC components.

Figure 3-20 Selection guide for input/output modules

Automation system

56

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

3.6.2

Digital input modules

Digital input modules and digital input/output module

Short designation
Article number High Feature (HF)
Basic (BA)
Manual High Feature (HF) Basic (BA) Width High Feature (HF) Basic (BA) Number of inputs Electrical isolation between channels Number of potential groups Rated input voltage

DI 16x24VDC HF
DI 16x24VDC BA

DI 32x24VDC HF
DI 32x24VDC BA

DI 16x24VDC SRC BA

6ES75211BH00-0AB0
6ES75211BH10-0AA0

6ES75211BL00-0AB0
6ES75211BL10-0AA0

---
6ES75211BH50-0AA0

---

35 mm 25 mm 16 ---
1
24 V DC

35 mm 25 mm 32 X
2
24 V DC

--35 mm 16 ---
1
24 V DC

Diagnostic interrupt Only with HF Only with HF ---

Hardware interrupt Only with HF Only with HF ---

Isochronous mode Only with HF Only with HF ---

Input delay

High Feature (HF) 0.05 ms to 20

---

ms (configura-

ble)

Basic (BA)
Integrated counting functions (Two channels can optionally be used as counter with 3 kHz)

Type 3 ms (fixed)
Only with HF: Counting up to 3 kHz

Type 3 ms (fixed)
Only with HF: Counting up to 1 kHz

Type 3 ms (fixed)
---

DI 16x24...125V UC HF

DI 16x230VAC BA

DI 16x24VDC / DQ 16x24V/0.5A BA

6ES75217EH00-0AB0
---

---
6ES75211FH00-0AA0

---
6ES75231BL00-0AA0

---

---

---

35 mm --16 X

--35 mm 16 X

--25 mm 16 ---

1

4

DI: 1 / DQ: 2

24 V UC to 125 V UC X X ---

120/230 V AC 24 V DC

---

---

---

---

---

---

0.05 ms to 20 --ms (configurable with DC)

20 ms (fixed at AC)

---

Type 25 ms

(fixed)

---

---

---
Type 3 ms (fixed) ---

Automation system

System Manual, 11/2019, A5E03461182-AF

57

System overview 3.6 Input and output modules

Benefits

The digital input modules provide you with the following advantages:
 High channel density with low variety of parts, therefore less effort for ordering, logistics and storage of spare parts
 Modules in 25 mm size without parameter assignment and diagnostics, therefore simple commissioning
 Front connector in screw-type connection system or in push-in system (35 mm width) or push-in system for 25 mm modules
 Same mechanical design, same handling and same accessories for all modules
 Same pin assignment for wiring, which means that circuit diagrams and wiring plans can be universally used
 Any combination of narrow and wide modules
 Can be used centrally in SIMATIC S7-1500 and in the ET 200MP distributed I/O system
 Cost-effective implementation of simple counting tasks with two counter inputs each of the high-feature modules DI16x24VDC HF and DI 32x24V DC HF

Automation system

58

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

3.6.3

Digital output modules

Digital output modules and digital input/output module (DC)

Short designation
Article number High Feature (HF)
Basic (BA)
Manual High Feature (HF) Basic (BA) Width High Feature (HF) Basic (BA) Number of outputs Type Electrical isolation between channels Number of potential groups Rated output voltage Rated output current Diagnostic interrupt Hardware interrupt Isochronous mode Pulse-width modulation (PWM) Switching cycle counter

DQ 8x24VDC/2A HF
6ES7522-1BF000AB0
---
---
35 mm --8 Transistor X 2 24 V DC 2 A X ----X X

DQ 32x24VDC/0.5A HF DQ 32x24VDC/ 0.5A BA
6ES7522-1BL010AB0
6ES7522-1BL100AA0
35 mm 25 mm 32 Transistor Only with BA
4; only with BA
24 V DC 0.5 A Only with HF --Only with HF ---
---

DQ 16x24VDC/0.5A HF DQ 16x24VDC/ 0.5A BA
6ES7522-1BH010AB0 6ES7522-1BL010AB0 6ES7522-1BH100AA0
35 mm 25 mm 16 Transistor Only with BA
2; only with BA
24 V DC 0.5 A Only with HF --Only with HF ---
Only with HF

DI 16x24VDC / DQ16x24V/0.5A BA
---
6ES7523-1BL000AA0
---
--25 mm 16 Transistor X DQ: 2 / DI: 1 24 V DC 0.5 A -----------

Automation system

System Manual, 11/2019, A5E03461182-AF

59

System overview 3.6 Input and output modules

Digital output modules (UC, AC)

Short designation
Article number
Manual Width Number of outputs Type Electrical isolation between channels Number of potential groups Relay coil supply voltage Rated output voltage
Rated output current Diagnostic interrupt Hardware interrupt

DQ 16x24 ...48VUC/ 125VDC/0.5A ST 6ES7522-5EH000AB0
35 mm 16 Transistor X
1
---
24 V DC to 125 V DC / 24 V AC to 48 V AC 0.5 A
---
---

DQ 8x230VAC/5A ST relay
6ES7522-5HF000AB0

DQ

DQ 8x230VAC/2A

16x230VAC/2A ST ST Triac

relay

6ES7522-5HH00- 6ES7522-5FF00-

0AB0

0AB0

DQ 16x230VAC/1A ST Triac
6ES7522-5FH000AB0

35 mm 8 Relay X
16
24 V DC
24 V DC to 120 V DC / 24 V AC to 230 V AC 5 A
X
---

35 mm 16 Relay X
8
24 V DC
24 V DC to 120 V DC / 24 V AC to 230 V AC 2 A
X
---

35 mm 8 Triac X 8 --230 V AC
2 A -----

35 mm 16 Triac X 8 --230 V AC
1 A -----

Benefits

The digital output modules provide you with the following advantages:
 High channel density with low variety of parts, therefore less effort for ordering, logistics and storage of spare parts
 Modules in 25 mm size without parameter assignment and diagnostics, therefore simple commissioning
 Front connector in screw-type connection system or in push-in system (35 mm width) or push-in system for 25 mm modules
 Same mechanical design, same handling and same accessories for all modules
 Same pin assignment for wiring, which means that circuit diagrams and wiring plans can be universally used
 Any combination of narrow and wide modules
 Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system
 High feature module DQ 8x24VDC/2A HF: You can use pulse width modulation (PWM) to easily generate periodic pulses with a constant rated voltage and a variable pulse duration.
Typical use:
­ Control of proportional valves and way values (e.g. energy saving by reducing the holding current).
­ Heating control e.g. via an external additional power unit.

Automation system

60

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

3.6.4

Fail-safe digital modules

Fail-safe digital modules
Fail-safe digital modules are available for implementing safety concepts in the area of equipment and personnel safety (for example, for emergency stop devices in the operation of processing machines).
The fail-safe modules ensure safe processing of field information (sensors: e.g., EMERGENCY OFF buttons, light barriers; actuators, e.g. motor control). You are provided with all the hardware and software components required for safe processing, according to the required safety class. The following table shows the available fail-safe modules.

Short designation Article number Manual Width Number of inputs Number of outputs Type output Electrical isolation between channels Rated input voltage Rated output voltage Rated output current Maximum achievable safety class in safety mode Low demand mode: PFD according to SIL3 High demand/continuous mode: PFH according to SIL3 Diagnostic interrupt Hardware interrupt Input delay

F-DI 16x 24VDC PROFIsafe 6ES7526-1BH00-0AB0

F-DQ 8x24VDC/2A PPM 6ES7526-2BF00-0AB0

35 mm 16 ------24 V DC ----PLe/SIL 3

35 mm --8 Transistor ----24 V DC 2 A PLe/SIL 3

< 5.00E-05

< 6.00E-05

< 1.00E-09 1/h

< 2.00E-09 1/h

X

X

---

---

0.4 ms to 20 ms (configurable by chan- --nel)

Benefits

The fail-safe input and output modules S7-1500 provide you with the following advantages:  High-channel, fail-safe inputs and outputs  Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system  processing of standard and safety programs  Uniform engineering for standard and safety automation in the TIA Portal  Integration of safety-related functions up to SIL 3 according to IEC 61508:2010 or PL e
and category 4 according to ISO 13849-1:2015 or according to EN ISO 13849-1:2015

Automation system

System Manual, 11/2019, A5E03461182-AF

61

System overview 3.6 Input and output modules

3.6.5

Analog input modules

Analog input modules and analog input/output module

Short designation
Article number High Feature (HF) High Speed (HS) Standard (ST)
Basic (BA)
Manual High Feature (HF) High Speed (HS) Standard (ST) Basic (BA) Width Number of inputs Resolution Measurement type
Electrical isolation between channels Number of potential groups Rated supply voltage Permissible potential difference between inputs (UCM) Diagnostic interrupt Hardware interrupt
Isochronous mode Conversion time (per channel)

AI 8xU/I HF AI 8xU/I HS

AI 8xU/R/RTD/TC HF AI 4xU/I/RTD/TC ST AI 8xU/I/RTD/TC ST AI 8xU/I/R/RTD BA

AI 4xU/I/RTD/TC / AQ 2xU/I ST

6ES7531-7NF00-0AB0 6ES7531-7PF00-0AB0 ---

6ES7531-7NF10-0AB0 ---

---

---

6ES7531-7KF00-0AB0 6ES7531-7QD00-

0AB0

---

---

6ES7531-7QF00-

0AB0

----6ES7534-7QE000AB0 ---

----35 mm 8 16 bits including sign Voltage, current
Only with HF

---
--35 mm 8 16 bits including sign Voltage, current, resistance, thermal resistor, thermocouple
Only with HF

---

---

---

---

25 mm
4
16 bits including sign
Voltage, current, resistance, resistance thermometer, thermocouple
---

--25 mm 4 16 bits including sign Voltage, current, resistance, thermal resistor, thermocouple
---

1

1

---

---

24 V DC

24 V DC

24 V DC

HF: 60 V DC / 30 V AC HF: 60 V DC / 30 V AC 20 V DC

HS: 10 V DC

ST: 10 V DC

24 V DC 20 V DC

X
X
Two high limits and two low limits in each case
Only HS
HF: Fast mode: 4/18/22/102 ms; Standard mode: 9/52/62/302 ms
HS: 62.5 µs, per module, regardless of number of activated channels

X
X
Two high limits and two low limits in each case
---
HF: Fast mode: 4/18/22/102 ms; Standard mode: 9/52/62/302 ms
ST: 9/23/27/107 ms

X
X Two high limits and two low limits in each case
---
9/23/27/107 ms

X
X Two high limits and two low limits in each case
---
9/23/27/107 ms

Automation system

62

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

Short designation
Calibration in RUN mode Oversampling Scale measuring range Scale temperatures Scale measured values

AI 8xU/I HF AI 8xU/I HS Only with HF
Only with HS Only with HF
--Only with HF

AI 8xU/R/RTD/TC HF AI 8xU/I/RTD/TC ST Only with HF

AI 4xU/I/RTD/TC ST AI 8xU/I/R/RTD BA X

AI 4xU/I/RTD/TC / AQ 2xU/I ST
X

---

---

---

---

---

---

Only with HF

---

---

---

---

---

Benefits

Analog input modules detect process signals, e.g. pressure or temperature and pass the process signals on in digitalized form (16 bit format) to the CPU. You use the analog input modules to measure current (2-wire and 4-wire transducer), voltages, resistances (resistance thermometer) and temperatures (thermoelements). The measurement types depend on the module used.
The analog input modules provide you with the following advantages:
 Front connector in screw-type connection system or in push-in system (35 mm width) or push-in system for 25 mm modules
 Same mechanical design, same handling and same accessories for all modules
 Components required for shielding are included in the scope of delivery and allow simple and quick installation without the use of tools
 Same pin assignment for wiring, which means that circuit diagrams and wiring plans can be universally used
 Any combination of narrow and wide modules
 Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system

Overview of functions
In the following you will find a brief overview of special functions of the modules. You can find a detailed description of the functions in the equipment manual of the module.

Measuring range adjustment of the analog input module AI 8xU/I HF
The function adjusts the measuring range to the sensor. You can increase the resolution for a configurable part of the measuring range in S7 format. The measured signal is resolved precisely to more decimal places around a specific operating point.

Automation system

System Manual, 11/2019, A5E03461182-AF

63

System overview 3.6 Input and output modules
Scaling of the measured values of the analog input module AI 8xU/I HF
With measured value scaling, you display the user data of the module in REAL format (32-bit floating point) instead of S7 format. You can thus directly assign a technological variable to the analog value of the module. The conversion is made directly in the module, which saves power and cycle time in the CPU. You can combine the measured value scaling with the measuring range adjustment. In this case, the measuring range is adjusted first and then the representation of the measured value is scaled.
Calibration in runtime
The following analog modules offer you the calibration function at runtime:  AI 8xU/I/RTD/TC ST  AI 8xU/I HS  AI 4xU/I/RTD/TC ST  AI 4xU/I/RTD/TC / AQ 2xU/I ST The calibration compensates for influences on the measuring result by cables and/or temperature. A calibration checks the process values output by the analog input module, determines the deviation from the actual values and compensates for measuring errors. Typical use:  For plants in which sensors detect relatively small voltages or currents  For applications which require regular calibration for all components in a measuring
circuit.
Oversampling of the AI 8xU/I HS analog input module
Oversampling divides a PROFINET bus cycle into equidistant bus sub-cycles. This requires isochronous mode. Oversampling acquires data with high time resolution but without using an extremely short PROFINET bus cycle and thus fast CPU cycles. Use for quality-monitoring measurements, for example when recording pressure trends during the blowing process of PET bottle production.

Automation system

64

System Manual, 11/2019, A5E03461182-AF

System overview 3.6 Input and output modules

3.6.6

Analog output modules

Analog output modules and analog input/output module

Short designation
Article number High Feature (HF)
High Speed (HS) Standard (ST)
Manual High Feature (HF) High Speed (HS) Standard (ST) Width Number of outputs Resolution Output type Electrical isolation between channels Number of potential groups Rated supply voltage Diagnostic interrupt Isochronous mode Conversion time (per channel)
Calibration in RUN mode Oversampling

AQ 8xU/I HS

AQ 4xU/I HF AQ 4xU/I ST

AQ 2xU/I ST

---

6ES7532-5ND00-

0AB0

6ES7532-5HF00-0AB0 ---

---

6ES7532-5HD00-

0AB0

---
--6ES7532-5NB000AB0

---
--35 mm 8 16 bits including sign Voltage/current ---

---
35 mm 4 16 bits including sign Voltage/current Only with HF

-----
25 mm 2 16 bits including sign Voltage/current ---

---

1

---

24 V DC X X 50 µs, regardless of number of activated channels
X

24 V DC

24 V DC

X

X

Only with HF

---

HF: 125 µs, regardless 0.5 ms of number of activated channels

ST: 0.5 ms

Only with ST

X

X

---

---

AI 4xU/I/RTD/TC / AQ 2xU/I ST
---
--6ES7534-7QE000AB0
-----
25 mm 2 16 bits including sign Voltage/current ---
---
24 V DC X --0.5 ms
X
---

Automation system

System Manual, 11/2019, A5E03461182-AF

65

System overview 3.6 Input and output modules

Benefits

Analog output modules convert a 16-bit digital value into current or voltage and output it at the process. With the analog output modules you control, for example, proportional valves or small servo drives.
The analog output modules provide you with the following advantages:
 Front connector in screw-type connection system or in push-in system (35 mm width) or push-in system for 25 mm modules
 Same mechanical design, same handling and same accessories for all modules
 Components required for shielding are included in the scope of delivery and allow simple and quick installation without the use of tools
 Same pin assignment for wiring, which means that circuit diagrams and wiring plans can be universally used
 Any combination of narrow and wide modules
 Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system

Overview of functions
In the following you will find a brief overview of special functions of the modules. A detailed description of the functions is available in the device manual of the module.

Calibration in runtime
The following analog modules offer you the calibration function at runtime:
 AQ 2xU/I ST
 AI 4xU/I/RTD/TC / AQ 2xU/I ST
The calibration compensates for influences on the measuring result by cables and/or temperature. A calibration checks the process values output by the analog output module, determines the deviation from the actual values and compensates for output errors.
Typical use:
 For plants in which sensors process relatively small voltages or currents.
 For applications which require regular calibration for all components in a measuring circuit.

Oversampling of the AQ 8xU/I HS analog output module
Oversampling divides a PROFINET bus cycle into equidistant bus sub-cycles. This requires isochronous mode.
Oversampling acquires data with high time resolution but without using an extremely short PROFINET bus cycle and thus fast CPU cycles. Used, for example, for controlling a feed valve, the output data is controlled exactly at the current position of the machine.

Automation system

66

System Manual, 11/2019, A5E03461182-AF

3.7

Communication

System overview 3.7 Communication

3.7.1

Interfaces for communications
Interfaces for communication via PROFINET and PROFIBUS DP (as of CPU 1516) are already integrated in the CPUs. Additional communication modules enhance the communication capabilities of the SIMATIC S7-1500 with additional functions or interfaces, e.g. 8xIO-Link. The following communications options are available for your automation task:

Communication options PG communication for commissioning, testing, diagnostics HMI communication for operator control and monitoring Data exchange with TCP/IP, UDP, ISO-on-TCP, ISO protocol Data exchange via OPC UA as server Data exchange via OPC UA as client Direct data exchange between IO controllers Communication via Modbus TCP Communication via UDP Multicast Sending process alarms via e-mail File management and file access via FTP (File Transfer Protocol); CP may be the FTP client and FTP server S7 communication Serial point-to-point or multi-point connection Data exchange via point-to-point with Freeport, 3964 (R), USS or Modbus protocol Web server Data exchange via HTTP(S), for example for diagnostics SNMP (Simple Network Management Protocol) Time synchronization

PN/IE

DP

X

X

X

X

X

---

X

---

X

---

X

---

X

---

X

---

X

---

X

---

X

X

---

---

X

---

X

---

X

X

Serial ---------------------
--X
---
-----

3.7.2

CM communication modules / CP communications processors
For special requirements of your plant, use communications processors (CPs) for security functions to secure Industrial Ethernet networks.
If your system requires additional interfaces, communication modules (CM) expand your S71500 CPU with other interfaces of an interface type such as PROFINET, PROFIBUS or point-to-point connection. The CMs for point-to-point connection allow, for example, Freeport or Modbus communication via their RS232, RS422 and RS485 interfaces.

Automation system

System Manual, 11/2019, A5E03461182-AF

67

System overview 3.7 Communication

Communication modules for PROFINET and Industrial Ethernet

Short designation Article number

CM 1542-1 6GK7542-1AX00-0XE0

CP 1543-1 6GK7543-1AX00-0XE0

CP 1545-1
6GK7545-1GX000XE0

Manual Bus system Interface Data transmission rate Functionality and protocols
Diagnostic interrupt Hardware interrupt Isochronous mode Link to cloud systems via MQTT OPC UA PubSub via UDP

PROFINET RJ45 10/100 Mbps TCP/IP, ISO-on-TCP, UDP, Modbus TCP, S7 communication, IP Broadcast/Multicast, IP routing, SNMPv1
X X -----

Industrial Ethernet RJ45 10/100/1000 Mbps TCP/IP, ISO, UDP, Modbus TCP, S7 communication, IP Broadcast/Multicast, Security, Secure Open User Communication, SMTPS, diagnostics SNMPV1/V3, DHCP, FTP client/server email, IPV4/IPV6
X -------

Industrial Ethernet
RJ45
10/100/1000 Mbps
TCP/IP, ISO, UDP, Modbus TCP, S7 communication,
IP Broadcast/Multicast, Security, Secure Open User Communication, SMTPS, diagnostics SNMPV1/V3, DHCP, FTP client/server email, IPV4/IPV6
X
---
---
X

---

---

X

Communication modules for PROFIBUS

Short designation Article number Manual Bus system Interface Data transmission rate Functionality and protocols
Diagnostic interrupt Hardware interrupt Isochronous mode

CM 1542-5 6GK7542-5DX00-0XE0
PROFIBUS RS485 9600 bps to 12 Mbps DPV1 master/slave, S7 communication, PG/OP communication, Open User Communication X X ---

CP 1542-5 6GK7542-5FX00-0XE0
PROFIBUS RS485 9600 bps to 12 Mbps DPV1 master/slave, S7 communication, PG/OP communication, FDL X X ---

Automation system

68

System Manual, 11/2019, A5E03461182-AF

System overview 3.7 Communication

Communication modules for point-to-point connection

Short designation
Article number High Feature (HF) Basic (BA) Manual High Feature (HF) Basic (BA) Interface Data transmission rate High Feature (HF) Basic (BA) Frame length, max. High Feature (HF) Basic (BA) Diagnostic interrupt Hardware interrupt Isochronous mode Protocols High Feature (HF)
Basic (BA)

CM PtP RS232 HF CM PtP RS232 BA
6ES7541-1AD00-0AB0 6ES7540-1AD00-0AA0
RS232
300 to 115 200 bps 300 to 19 200 bps
4 KB 1 KB X -----
Freeport, 3964 (R), Modbus RTU master, Modbus RTU slave Freeport, 3964 (R)

CM PtP RS422/485 HF CM PtP RS422/485 BA
6ES7541-1AB00-0AB0 6ES7540-1AB00-0AA0
RS422/485
300 to 115 200 bps 300 to 19 200 bps
4 KB 1 KB X -----
Freeport, 3964 (R), Modbus RTU master, Modbus RTU slave Freeport, 3964 (R)

Benefits

The communication modules point-to-point connection S7-1500 provide you with the following advantages:  Connection of legacy and external systems possible  Connection of data readers or special sensors  Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system  Variety of physical interfaces, e.g. RS232 and RS422 or RS485  Predefined protocols, e.g. 3964(R), Modbus RTU or USS  Application-specific protocols based on Freeport (ASCII)  Uniform programming interface for all modules  Diagnostic interrupt for simple fault rectification

Automation system

System Manual, 11/2019, A5E03461182-AF

69

System overview 3.7 Communication

3.7.3

Communication module IO-Link Master

Communication module IO-Link Master
An 8 port IO-link master module CM 8xIO-link is available for the S7-1500 automation system / ET 200MP distributed I/O system.
IO-Link is a point-to-point connection between a master and a device. Both conventional and intelligent sensors/actuators can be used as devices at the IO-Link via unshielded standard cables using proven 3-wire technology.
You can use the 8-port IO-link master as follows:
 Central, directly behind a S7-1500 CPU (a total of 30 I/O modules, plug-in type)
 Distributed with ET 200MP to PROFINET and PROFIBUS
With the IO-link, you can easily change the parameters for the production and processing of different product variants and batches up to sensor/actuator level during CPU runtime. A considerably more detailed diagnostics up to sensor or actuator or a remote diagnostics is possible.

Table 3- 5 Communication module IO-Link Master

Short designation Article number Equipment manual Bus system Interface Data transmission rate Functionality and protocols
Diagnostics interrupt Hardware interrupt Isochronous mode

CM 8x IO-Link 6ES7547-1JF00-0AB0
IO-Link 8 ports COM1 (4.8 kbaud), COM2 (38.4 kbaud), COM3 (230.4 kbaud)
IO-Link Protocol 1.0 IO-Link Protocol 1.1 X -----

Benefits:  Simplified and reduced wiring, engineering and commissioning  Time savings  Higher availability due to pre-assembled cable  Avoidance of plant downtimes through preventive maintenance  High diagnostics capability  Configurable diagnostics can be set for each channel

Automation system

70

System Manual, 11/2019, A5E03461182-AF

3.7.4

System overview 3.7 Communication
Safety-related communication via fail-safe modules
The figure below provides an overview of the possibilities of safety-related communication via PROFINET IO in SIMATIC Safety fail-safe systems with S7-1500 F-CPUs.

Safety-related IO controller - IO controller communication Safety-related IO controller - I-device communication Safety-related IO controller - I-slave communication
Figure 3-21 Example of safety-related communication

Automation system

System Manual, 11/2019, A5E03461182-AF

71

System overview 3.8 Technology functions

3.8

Technology functions

3.8.1

Motion control
You use the integrated Motion Control functionality of SIMATIC S7-1500 for positioning and moving axes. Depending on the CPU, the SIMATIC S7-1500 automation system supports different configuration limits for motion control technology objects.
With Motion Control instructions according to PLCopen, you control PROFIdrive-capable drives and drives with analog setpoint interface.

Motion control technology objects
The table below shows the technology objects that are supported by the SIMATIC S7-1500 and S7-1500T. * They occupy Motion Control resources or Extended Motion Control resources in the CPU.

Technology objects

SIMATIC S7-1500

SIMATIC S7-1500T

Speed-controlled axis

X

X

Positioning axis

X

X

Synchronous axis

X

X

External encoder

X

X

Measuring input

X

X

Output cam

X

X

Cam track

X

X

Cam

---

X

Kinematics

---

X

Master value proxy ###

---

X

* They occupy Extended Motion Control resources in the CPU.

Resource requirements per technology object 40 80 160 80 40 20 160 2* 30*

Motion control technology functions
The table below shows the technology functions offered by both SIMATIC S7-1500 and S71500T and the extended Motion Control functions of the technology CPUs.

Technology functions Enable, disable technology objects Acknowledge alarms, restart technology object Reference technology objects, set reference point Pause axis Position axis absolutely Position axis relatively Move axis at set velocity/speed

SIMATIC S7-1500 X X X X X X X

SIMATIC S7-1500T X X X X X X X

Automation system

72

System Manual, 11/2019, A5E03461182-AF

Technology functions Move axis in jog mode Positioning axis overlapping Set alternative encoder as operationally active encoder Hold and disable axis Activate/deactivate hardware limit switch Controlling bits of control word 1 and 2 Start one-time measuring Start cyclic measuring Abort active measuring Activate/deactivate output cam Activate/deactivate cam track Start gearing Start gearing with specified synchronous positions Exit gearing Absolute shift of master value on the following axis Relative shift of master value on the following axis Start camming Exit camming Simulate synchronous operation Specify additive master value Interpolate cam Read out slave value of a cam Read master value of a cam Specify motion setpoints Activate and deactivate force/torque limiting / fixed stop detection Specify additive torque Specify upper and lower torque limits Interrupt motion control of kinematics Continue motion control of kinematics Stop motion of kinematics Position kinematics with linear motion Position kinematics relatively with linear motion Position kinematics with circular motion Position kinematics relatively with circular motion Move kinematics with synchronous "point-to-point" motion, absolute Move kinematics with synchronous "point-to-point" motion, relative Start conveyor tracking Define workspace zones Define kinematics zones Activate workspace zones Deactivate workspace zones Activate kinematics zones
Automation system System Manual, 11/2019, A5E03461182-AF

System overview 3.8 Technology functions

SIMATIC S7-1500 X X --X X X X X X X X X ------------------------X X X -------------------------------

SIMATIC S7-1500T X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X

73

System overview 3.8 Technology functions

Technology functions Deactivate kinematics zones Re-define tool Change active tool Redefine object coordinates system Transform axis coordinates into cartesian coordinates Transforming Cartesian coordinates into axis coordinates

SIMATIC S7-1500 -------------

SIMATIC S7-1500T X X X X X X

Motion Control configuration example
The SINAMICS Startdrive engineering tool is available in the TIA Portal for easy commissioning and optimization of SINAMICS drives. SINAMICS Startdrive enables efficient commissioning by means of the integrated axis control panel and extensive diagnostic functions.

Figure 3-22 Example of a Motion Control configuration
SIMATIC S7-1500T CPUs
The Technology CPUs extend the Motion Control functions available in all SIMATIC S7-1500 controllers for demanding solutions to include gearing and camming and kinematics. The S7-1500 T-CPU is also suitable for safety applications, so that you only need one CPU for standard, safety and comprehensive Motion-Control automation tasks.

Automation system

74

System Manual, 11/2019, A5E03461182-AF

System overview 3.8 Technology functions

Example: Quick and flexible packaging of luxury goods thanks to the CPU SIMATIC S7-1500T
Automation task:
Development of a modular, automatic packaging machine with a speed of up to 50 packages per minute.
Feature:
The packaging machine enables the outer packaging of individual products as well as containers at medium to high speeds (more than 40 products per minute). The possibility of quick changeover to new products is a condition. Scalability and cost efficiency is paramount in the automation solution.
Solution:
A SIMATIC S7-1500 TIME-CPU controls several axes in parallel with its technology functions gearing and camming.
The SINAMICS V90 drive communicates with the CPU via PROFINET IO with IRT. You assign parameters to the technology functions via technology objects with STEP 7.

Benefits

Motion Control with SIMATIC S7-1500T CPUs provide you with the following advantages:
 Simple setup and commissioning of the technology functions in the TIA Portal, no specialist knowledge required
 Graphical and tabular configuration and optimization of cams with integrated cam editor saves time and reduces the error rate
 Adaptation and calculation of the cam disks in the user program during operation, e.g. for quick product changeover
 Integration in integrated system diagnostics and Trace function, thus reduction of maintenance and downtimes
 Rugged and stable Motion Control platform with easy extensibility to include additional axes
 Automatic alignment of the technological variables via the technology objects between controller and drive; reduced engineering, commissioning and service times

Additional information
further information can be found in the function manuals S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109751049)

Automation system

System Manual, 11/2019, A5E03461182-AF

75

System overview 3.8 Technology functions

3.8.2

PID Control
PID compact controllers are integrated as standard in all S7-1500 CPUs. In your plant, the PID controller adjusts a physical setpoint and stabilizes it against interferences at the same time. Depending on your plant, you can use different PID controllers. All controllers support the following functions:
 Manageable configuration screens
 Automatic determination of the controller parameters
 Commissioning screens with integrated trace

PID controller versions

PID controllers PID Compact PID 3step PID Temp

Description Continuous PID controller Step controller for integrating actuators Temperature controller for heating and cooling with two separate actuators

Example: PID Control optimizes the drying process
Automation task:
Development of a temperature control system for drying panes of glass in the production of mirrors
Feature:
The drying process is a critical phase in silvering mirrors. It is decisive for optimum product quality. During the silvering process, the glass panes are treated with chemical solutions and then dried in a pre-heated oven. Temperature control plays a key role in the drying process.
Solution:
A PID controller controls the temperature in the drying oven. The filament of each infrared lamp in the oven is controlled separately and remotely. Control was previously only possible manually.

Benefits

The integrated controller PID Control of the SIMATIC S7-1500 CPUs offer you the following advantages:
 High-quality end product due to optimum control performance
 High flexibility in the drying oven (see example)
 Time savings thanks to automatic control parameter optimization for optimum control performance and simple commissioning

Automation system

76

System Manual, 11/2019, A5E03461182-AF

System overview 3.8 Technology functions
Additional information
A detailed description of PID Control in SIMATIC S7-1500 can be found in the Function Manual "SIMATIC S7-1200, S7-1500 PID Control" SIMATIC S7-1200, S7-1500 PID control (https://support.industry.siemens.com/cs/ww/en/view/108210036).

3.8.3

Technology functions of the compact CPUs
Technology functions are integrated into the SIMATIC S7-1500 compact CPUs.

Function Six high-speed counters Frequency measurement Period duration measurement Velocity measurement

Value Up to 100 kHz 0.04 Hz - 400 kHz 2.5 s - 25 s

Pulse width modulation (PWM output) Pulse Train Output (PTO output)
Frequency output

Max. 4 (up to 100 kHz)
Max. 4 (up to 100 kHz)
Up to 100 kHz

Description For pulse and incremental encoders
Dependent on measurement interval and signal evaluation Unit can be defined by user Output of a signal with defined period duration and variable on-load factor at DQ Output of position information, e. g. for activation of stepper motor drives or simulation of an incremental encoder Precise assignment of a frequency value with high frequencies

Benefits

Compared with the other SIMATIC S7-1500 CPUs, the compact CPUs offer added value in a small space:  The CPU with display and inputs/outputs in one enclosure  Compact size with high performance  Important technology functions such as counting, measuring and positioning are
integrated  Cost effective compared to modular systems with CPU and modules  Space saving design  Can be expanded by SIMATIC S7-1500 input and output modules

Automation system

System Manual, 11/2019, A5E03461182-AF

77

System overview 3.8 Technology functions

3.8.4

Technology modules for counting, measuring and position detection
For technological tasks, powerful technology modules are available that perform these tasks largely autonomously and reduce the load on the CPU. The table below shows the available technology modules for counting, measuring and position detection.

Short designation Article number Manual Connectable encoders
Max. count frequency Integrated DI
Integrated DQ Counting functions
Measuring functions
Diagnostics interrupt Hardware interrupt Isochronous mode

TM Count 2x24V 6ES7550-1AA00-0AB0

TM PosInput 2 6ES7551-1AB00-0AB0

Incremental encoder for signals, 24 V asymmetrical, Pulse encoders with/without direction signal, Pulse encoders up/down
200 kHz 800 kHz with four-fold pulse 3 DIs per counter channel for

Incremental encoder for signals to RS422 (5 V differential signal), Pulse encoders with/without direction signal, Pulse encoders up/down, Absolute encoders (SSI)
1 MHz 4 MHz with four-fold pulse
2 DIs per counter channel for

· Start · Stop

· Start · Stop

· Capture

· Capture

· Synchronization

· Synchronization

2 DQs for comparators and limit values Comparator Adjustable counting range, Incremental position detection
Frequency Period duration Velocity X X X

2 DQs for comparators and limit values Comparator Adjustable counting range, Incremental and absolute position detection Frequency Period duration Velocity X X X

Benefits

Technology modules for counting, measuring and position detection offer you the following advantages:
 Fast and timely detection of events with fine resolution for high productivity and product quality
 Hardware-level signal processing for rapid counting, measurement and position detection for a variety of transducers
 Simple setup and commissioning of the technology functions in STEP 7
 Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system
 Quick response thanks to different hardware interrupts

Automation system

78

System Manual, 11/2019, A5E03461182-AF

System overview 3.8 Technology functions

3.8.5

Technology module for time-based IO
Time-based IO modules enable you to achieve maximum precision and speed - regardless of the performance of the controller and the fieldbus. The time-based IO modules output signals with a precisely defined response time. The I/O signals are processed on a time basis.
The table below shows the main features of the technology module for time-based IO. In conjunction with the "Output cam" and "Cam track" technology objects, the TM Timer DIDQ 16x24V ensures highly accurate cam output. In conjunction with the "Measuring input" technology object, the TM Timer DIDQ 16x24V ensures highly accurate detection of passing products.

Short designation Article number Manual

TM Timer DIDQ 16x24V 6ES7552-1AA00-0AB0

Connectable encoders Max. count frequency Integrated DI
Integrated DQ
Diagnostic interrupt Hardware interrupt Isochronous mode

24 V incremental encoder with signals A and B 24 V pulse encoder with a signal 200 kHz with fourfold evaluation Up to 8 DIs with the following functions: · Up to 2 time stamps per cycle (resolution 1 µs) · 32x oversampling · Counting function up to 50 kHz · Incremental encoder acquisition with 2 phase-shifted tracks · Configurable input filter to suppress interference
Up to 16 DQs with the following functions: · Up to 2 time stamps per cycle (resolution 1 µs) · 32x oversampling · Pulse-width modulated output · Configurable substitute values per DQ
X --X (required for the time stamp and oversampling functions)

Benefits

The technology modules for time-based IO offers you the following advantages:
 Meets stringent requirements for precision and speed, independent of the CPU and fieldbus
 Signals are read in and output precisely, to within 1 microsecond
 Exact definition of response times, independent of the application cycle
 Typical use: cam control, length measurement, time measurement, as a probe, for dosing fluid quantities

Automation system

System Manual, 11/2019, A5E03461182-AF

79

System overview 3.8 Technology functions

3.8.6

Technology module for weighing technology
The technology modules SIWAREX WP521 and SIWAREX WP522 are used for the acquisition and processing of signals from weighing or force transducers. You can connect one scale (WP521) or two separate scales (WP522) respectively to the modules. The SIWAREX modules offer high accuracy.
The table below shows the main features of the technology modules for weighing technology.

Short designation Article number Manual Weighing channel Interfaces
Integrated digital inputs Integrated digital outputs Load cell connection Functions
Diagnostic interrupt Hardware interrupt

TM electronic weighing system SIWAREX WP 521 ST
7MH4980-1AA01

TM electronic weighing system SIWAREX WP 522 ST
7MH4980-2AA01

1 channel

2 channels

RS 485 with Modbus RTU or for connecting the remote display (per channel)

Ethernet interface with SIWATOOL protocol and Modbus TCP/IP (1 for both channels)

DI 3x24VDC

DQ 4x24VDC

DMS load cells in 6- or 4-wire technology (per channel), 1 to 4 mV/V

· Adjust the scale with weights or automatically · 3 limits

· Tare

· Set to zero · Trace

· Commission with SIWATOOL (service tool for PC)

--X (configurable)

Benefits

The weighing modules SIWAREX for SIMATIC S7-1500 offer you the following advantages:
 Seamless integration of simple weighing applications such as platform and hopper scales in SIMATIC S7-1500
 Use for level monitoring, e.g. silos and bunkers
 Can be used centrally in SIMATIC S7-1500 and in ET 200MP distributed I/O system
 SIWAREX WP521 ST for the setup of one scale
 SIWAREX WP522 ST for the setup of two separate scales, with the same space requirements as WP521 ST
 Free sample application on the Internet for the quick implementation of customer or industry-specific solutions

Automation system

80

System Manual, 11/2019, A5E03461182-AF

System overview 3.8 Technology functions

3.8.7

Technology Module TM NPU

Technology Module TM NPU
Applications based on artificial intelligence can be implemented using the TM NPU technology module. The technology module TM NPU is used in the S7-1500 automation system / ET 200MP distributed I/O system.
The integrated AI processor (AI - Artificial Intelligence) enables the processing of large amounts of data from connected sensors, as well as data from the user program of the CPU. Connect the sensor technology via the integrated USB interface of the TM NPU e.g.: Cameras or microphones. For TM NPU with V1.0.0, use the USB camera from Intel, type RealSense D435.
The supplied data is processed at high speed in the TM NPU over neural networks. The TM NPU transmits the processing result via the backplane bus to the CP. The CPU then evaluates the data in the user program.
Typical areas of application:
 Visual quality check in production plants
 Pick-and-place applications
 Image-guided robotic systems

Table 3- 6 Technology Module TM NPU
Short designation Article number Equipment manual Interfaces
Interrupts/diagnostics/status information Status display Interrupts Diagnostic functions Product function Artificial intelligence / Processing of neural networks

TM NPU 6ES7556-1AA00-0AB0
Ethernet (1 port) USB 3.1 (1 Port) SD card slot
Yes No Yes
Yes

Benefits:

 Design of flexible and precise production processes  Reduction of time required for configuration, programming and commissioning

Automation system

System Manual, 11/2019, A5E03461182-AF

81

System overview 3.9 Power supply

3.9

Power supply

The power supply of an automation system to be dimensioned according to plant size. The SIMATIC S7-1500 CPUs are supplied via a load power supply or a system power supply. A system power supply that supplies the backplane bus is integrated in the CPUs. Depending on the system configuration, you can expand the integrated system power supply with up to two additional system power supply modules. If your plant has high power requirements, e.g. I/O load groups, you can connect additional load power supplies.
The table below shows the main differences between the two power supplies for the SIMATIC S7-1500 automation system:

Power supply Load power supply (PM)
System power supply (PS)

Description
Supplies 24 V DC to the S7-1500 system components such as CPU, system power supply (PS), input/output circuits of the I/O modules and any sensors and actuators. You can install the load power supply directly to the left of the CPU (without connection to the backplane bus). If you supply the voltage for the backplane bus via a system power supply, then the supply of the CPU or the interface module with DC 24 V is optional.
Supplies only internally required system voltage. Supplies parts of the module electronics and the LEDs. Additionally the PS 60W 24/48/60V DC HF keeps the complete work memory of the CPU retentive.

Configuration example of a system with load power supply and system power supply
The following figure shows a system configuration with load power supply and additional system power supply.

Figure 3-23 Overall configuration of power supply
In order to ensure the supply of the modules from the backplane bus, the incoming power is compared with the required power in the TIA Portal engineering system or in the TIA Selection Tool.
As early as in the planning stages, make sure that the power fed into the backplane bus is always greater than or equivalent to the power drawn.

Automation system

82

System Manual, 11/2019, A5E03461182-AF

System overview 3.9 Power supply

System power supply modules
System power supplies supply the internal electronics of the S7-1500 modules with power via the backplane bus. The table below shows the available system power supply modules:

Short designation
Article number
Manual Rated input voltage

PS 25 W 24 V DC
6ES7505-0KA000AB0

PS 60 W 24/48/60 V DC 6ES7505-0RA00-0AB0

PS 60 W 24/48/60 V DC HF
/6ES7505-0RB00-0AB0

24 V DC

24 VDC, 48 VDC, 60 VDC

24 VDC, 48 VDC, 60 VDC

Output power
Electrical isolation from the backplane bus
Diagnostic interrupt
Energy buffering for data backup in the CPU

25 W X
X ---

60 W X
X ---

60 W X
X Up to 20 MB retentive

PS 60 W 120/230 V AC/D C 6ES7507-0RA00-0AB0
120 V AC, 230 V AC 120 V DC, 230 V DC 60 W X
X
---

Load power supply modules
The load power supply modules with automatic range selection of the input voltage are optimally adapted in design and functionality to the SIMATIC S7-1500 controller. The table below shows the available load power supply modules:

Short designation Article number Manual Rated input voltage
Output voltage Rated output current* Power consumption

PM 70 W 120/230 V AC 6EP1332-4BA00
120/230 V AC, with automatic switchover 24 V DC 3 A 84 W

PM 190 W 120/230 V AC 6EP1333-4BA00
120/230 V AC with automatic switchover 24 V DC 8 A 213 W

* Power increase by parallel connection of two equal load current supply modules possible

Automation system

System Manual, 11/2019, A5E03461182-AF

83

System overview 3.9 Power supply
Using a SITOP power supply as an alternative to a load power supply
Alternatively, an external 24 V power supply from the SITOP range (https://mall.industry.siemens.com/mall/en/WW/Catalog/Products/10008864) (SITOP smart or SITOP modular) can be used:  For higher output currents and 1-phase or 3-phase infeed  With redundant installation of the 24 V power supply as protection against failure of a
power pack  With buffering of the 24 V power supply (e.g. with DC UPS) as protection against power
failure  With selective monitoring of 24 V loads as protection against overload or short-circuit

Automation system

84

System Manual, 11/2019, A5E03461182-AF

System overview 3.10 Connection elements and system cabling

3.10

Connection elements and system cabling

Front connector and shield contact
The front connectors are used to wire the I/O modules. For modules with EMC-critical signals, such as analog modules and technology modules, the front connectors also need a shield contact.
The front connectors are available for 35 mm modules optionally with screw terminals and push-in terminals and for 25 mm modules with push-in terminals. The front connectors for 25 mm modules are included in the scope of delivery of the I/O modules.
24 V DC is supplied, for example, via a plug-in infeed element for analog modules.
The shield contact consists of shield bracket and shield terminal. Together with the shield terminal, the shield bracket allows the low-impedance, module-level connection of cable shields with minimum installation times. The shielding takes place without tools.
The components (infeed element, shielding bracket and shield clamp) are included in the scope of delivery of the modules.

Front connector 35 mm with screw terminals Front connector 35 mm with push-in terminals Front connector 25 mm with push-in terminals Front connector Shield bracket Shield terminal
Figure 3-24 Versions of the front connector with and without shield

U connector

The individual modules are connected to one another with the U connector. The U connector establishes the mechanical and electrical connection between the modules. The U connectors are included in the scope of delivery of the I/O modules.

Automation system

System Manual, 11/2019, A5E03461182-AF

85

System overview 3.10 Connection elements and system cabling
System cabling SIMATIC TOP connect

Figure 3-25 Example: System cabling with SIMATIC TOP connect
For 35 mm modules, the system cabling SIMATIC TOP connect with prefabricated connection elements is available in two versions:
 Fully modular connection consisting of front connector module, connection cables and connection modules for connecting sensors and actuators from the field
 Flexible connection, consisting of front connector with single cores for wiring within the cabinet
You can find more information in the SIMATIC TOP connect for S7-1500 and ET200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607) manual.

Automation system

86

System Manual, 11/2019, A5E03461182-AF

3.11

Software

System overview 3.11 Software

3.11.1

TIA Portal
The SIMATIC controllers are integrated into the Totally Integrated Automation Portal. Engineering with the TIA Portal offers configuration and programming, common data storage and a uniform operating concept for control, visualization and drives.
The TIA Portal simplifies the integrated engineering in all configuration phases of a plant.

Automation system

System Manual, 11/2019, A5E03461182-AF

87

System overview 3.11 Software

3.11.2

TIA Selection Tool

TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

3.11.3
88

SIMATIC Automation Tool
You use the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. The SIMATIC Automation Tool provides you with a multitude of functions:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device The SIMATIC Automation Tool offers an additional Software Development Kit (SDK) version: With the SIMATIC Automation Tool SDK (Software Development Kit), you can create applications based on the SIMATIC Automation Tool API (Application Programming Interface). To deal with a large number of device automation tasks efficiently, these userspecific applications can be distributed to third parties including the API software. You do not need any license keys to use the user-specific applications.
Automation system System Manual, 11/2019, A5E03461182-AF

3.11.4

System overview 3.11 Software
SINETPLAN
SINETPLAN (http://www.siemens.com/sinetplan), the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. Thus, you prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through import and simulation of existing STEP7 projects
 Efficiency through securing existing investment in the long term and optimal exploitation of resources

3.11.5

PRONETA
With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
SIEMENS PRONETA (https://support.industry.siemens.com/cs/ww/en/view/67460624) is available for free on the Internet.

3.11.6

SIMATIC S7 app
With the SIMATIC S7 app (http://w3.siemens.com/topics/global/en/industry/future-ofmanufacturing/industry-apps/Pages/industry-apps.aspx) you can establish a secure connection via WLAN to SIMATIC S7-1500 and ET 200SP with, for example, the following functions:
 Detect up to 50 networked CPUs via HTTPS and establish a connection
 Change CPU operating mode (RUN/STOP)
 Read out CPU diagnostics information and send via e-mail
 Monitor and modify variables and tags
 High security through encrypted communication and encrypted profile data; password to start app and establish the connection

Automation system

System Manual, 11/2019, A5E03461182-AF

89

Application planning

4

4.1

Hardware configuration

Introduction

The S7-1500 automation system/ET 200MP distributed I/O system consists of a single-row configuration in which all modules are installed on one mounting rail. The modules are connected by means of U connectors, and thus form a self-assembling backplane bus.
You can configure the S7-1500 automation system/ET 200MP distributed I/O system with fail-safe and non-fail-safe modules.

4.1.1

Hardware configuration of the S7-1500 automation system

Maximum configuration
 The integrated system power supply of the CPU supplies 10 W or 12 W (depending on CPU type) to the backplane bus. The power budget calculation determines the exact number of modules (without optional PS) that can be operated with the CPU. The operating principle is described in section Power balance calculation (Page 103).
 A maximum of three system power supplies (PS) is possible. one system power supply (PS) can be inserted to the left of the CPU and two system power supplies (PS) can be inserted to the right of the CPU.
 If you use a system power supply (PS) left next to the CPU, a maximum configuration of 32 modules is possible. The modules occupy slots 0 to 31. If further system power supplies (PS) are required to the right of the CPU, they also occupy a slot.

Figure 4-1 S7-1500 maximum configuration

Automation system

90

System Manual, 11/2019, A5E03461182-AF

Application planning 4.1 Hardware configuration

Applicable modules
The following table shows which modules may be used in the various slots:

Table 4- 1 Assignment of slot numbers

Module type
Load current supply (PM)*
System power supply (PS) PS 60W 24/48/60VDC HF system power supply CPU Analog and digital I/O modules Communications modules · Point-to-point

Permissible slots 0**
0; 2 - 31 0 1 2 - 31
2 - 31

Maximum number of modules Unlimited / only 1 PM can be configured in STEP 7 3 1*** 1 30
30

· PROFINET/Ethernet, PROFIBUS

When using a CPU 1511-1(F) PN, CPU 1511C-1 2 - 31

4

PN, CPU 1511T-1 PN

When using a CPU 1512C-1 PN

2-31

6

When using a CPU 1513(F)-1 PN

2 - 31

6

When using a CPU 1515(F)-2 PN, CPU 1515T-2 2 - 31

6

PN

When using a CPU 1516(F)-3 PN/DP, CPU

2 - 31

8

1516T(F)-3 PN/DP

When using a CPU 1517(F)-3 PN/DP, CPU 1517T(F)-3 PN/DP

2 - 31

8

When using a CPU 1518(F)-4 PN/DP, CPU

2 - 31

8

1518(F)-4 PN/DP MFP

Technology modules

2 - 31

30

* No connection to the backplane bus.
** When slot 0 is occupied by a load current supply (PM) in STEP 7, this slot can no longer be used for a system power supply (PS) in STEP 7. You do not have to configure a load current supply (PM) in STEP 7.
When you occupy slot "0" with the system power supply (PS), you can plug in a load current supply (PM) in the TIA Portal to the left of the PS in slot 100.
***The PS 60W 24/48/60VDC HF must only be inserted to the left of the CPU. Use a different system power supply (PS) for other power segments in the configuration to the right of the CPU.

Automation system

System Manual, 11/2019, A5E03461182-AF

91

Application planning 4.1 Hardware configuration

4.1.2

Hardware configuration of the ET 200MP distributed I/O system with PROFINET interface module

Maximum configuration
 The integrated system power supply of the interface module feeds 14 W into the backplane bus. The power budget calculation determines the exact number of I/O modules that can be operated with the interface module (without optional PS). The operating principle is described in section Power balance calculation (Page 103).
 Use the integrated power supply for the IM 155-5 PN BA interface module. No 'additional system power supplies (PS) must be used. You can insert a maximum of 12 modules to the right of an interface module.
 The following applies for the interface modules IM 155-5 PN ST and IM 155-5 PN HF: A maximum of three system power supplies (PS) is possible. You can insert one system power supply (PS) to the left of the interface module and two system power supplies (PS) to the right of the interface module. If you insert a system power supply (PS) to the left of the interface module, this yields a possible maximum configuration of a total of 32 modules (up to 30 modules to the right of the interface module). If further system power supplies (PS) are required to the right of the interface module, they also occupy a slot.

Figure 4-2 Maximum configuration ET 200MP with IM 155-5 PN ST or IM 155-5 PN HF

Automation system

92

System Manual, 11/2019, A5E03461182-AF

Application planning 4.1 Hardware configuration

Applicable modules
The following table shows which modules may be used in the various slots:

Table 4- 2 Assignment of slot numbers

Module type
Load current supply (PM)*
System power supply (PS) PS 60W 24/48/60VDC HF system power supply Interface module Analog and digital I/O modules Communications modules · Point-to-point

Permissible slots IM 1555 PN BA -
-

Permissible slots IM 155-5 PN ST, IM 155-5 PN HF 0**
0; 2 - 31 0

Maximum number of modules
Unlimited / only 1 PM can be configured in STEP 7
3
1***

1 2 - 13

1 2 - 31

1 12 or 30

2 - 13

2 - 31

12 or 30

Technology modules

2 - 13

2 - 31

12 or 30

* No connection to the backplane bus.
** When slot 0 is occupied by a load current supply (PM) in STEP 7, this slot can no longer be used for a system power supply (PS) in STEP 7. You do not have to configure a load current supply (PM) in STEP 7.
***The PS 60W 24/48/60VDC HF must only be inserted to the left of the interface module. Use a different system power supply (PS) for other power segments in the configuration to the right of the interface module.

Automation system

System Manual, 11/2019, A5E03461182-AF

93

Application planning 4.1 Hardware configuration

4.1.3

Hardware configuration of the ET 200MP distributed I/O system with PROFIBUS interface module

Maximum configuration
The integrated system power supply of the interface module feeds 14 W into the backplane bus. You can insert a maximum of 12 modules to the right of an interface module. The power budget calculation determines the exact number of I/O modules that can be operated with the interface module. The operating principle is described in section Power balance calculation (Page 103).

Figure 4-3 Maximum configuration ET 200MP with IM 155-5 DP

Applicable modules
The following table shows which modules may be used in the various slots:

Table 4- 3 Assignment of slot numbers
Module type
Interface module Analog and digital I/O modules Communications modules Point-to-point Technology modules

Permissible slots
2 3 - 14
3 - 14 3 - 14

Maximum number of modules 1 12
12 12

Automation system

94

System Manual, 11/2019, A5E03461182-AF

Application planning 4.2 System and load power supply

4.2

System and load power supply

Types of power supplies
The S7-1500 automation system/ET 200MP distributed I/O system distinguishes between two types of power supply:  System power supply (PS)  Load current supply (PM)

System power supply (PS)
The system power supply has a connection to the backplane bus (U connector) and supplies solely the internally required system voltage. This system voltage supplies parts of the module electronics and the LEDs. A system power supply can also supply CPUs or interface modules if these are not connected to a 24 VDC load current supply.

Load current supply (PM)
The load current supply feeds the input/output circuits of the modules, as well as the sensors and actuators of the plant, if installed. If you supply the voltage for the backplane bus via a system power supply, then the supply of the CPU/interface module with 24 V DC is optional.

Special characteristic of the load current supply
Load current supplies are mounted on the "S7-1500 mounting rail" and do not have a connection to the backplane bus.

Total configuration with power supplies

Figure 4-4 Total configuration with load current supply (PM) and system power supply (PS)
Optionally, you can insert up to two system power supplies (PS) in the slots to the right of the CPU/interface module. The number of load current supplies is unlimited. Observe the installation rules and specified installation distances in the manuals of the load current supplies.

Automation system

System Manual, 11/2019, A5E03461182-AF

95

Application planning 4.2 System and load power supply
System power supplies
 PS 25W 24VDC: Supply voltage with 24 V DC and infeed power to the backplane bus of 25 W
 PS 60W 24/48/60VDC: Supply voltage with 24/48/60 V DC and infeed power to the backplane bus of 60 W
 PS 60W 24/48/60VDC HF: ­ Supply voltage with 24/48/60 V DC and infeed power to the backplane bus of 60 W ­ Extended retentive memory for CPUs as of FW V2.1.0 (see section Special requirements when using a system power supply PS 60W 24/48/60VDC HF (Page 100)).
 PS 60W 120/230V AC/DC: Supply voltage with 120/230 V AC and infeed power to the backplane bus of 60 W
Load current supplies
The load current supplies listed below have been technically adapted especially to the S7-1500 automation system/ET 200MP distributed I/O system. Use of the listed load current supplies is not imperative because you can use a SITOP module, for example, as an alternative.  PM 70W 120/230VAC: Supply voltage with 120/230 V AC  PM 190W 120/230VAC: Supply voltage with 120/230 V AC Also note the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/96998532) in connection with load current supply units.

4.2.1

Use of system power supplies

Introduction

You can use system power supplies with the CPUs and the interface modules IM 1555 PN ST and IM 155-5 PN HF.
If the power fed from the CPU/interface module into the backplane bus is not sufficient to supply all connected modules with power, system power supplies (PS) are required.
Whether or not you need a system power supply depends on the power consumption of the modules used. The power supplied by the CPU/interface module and the system power supplies must be greater than the power required by the I/O modules.
During configuration, STEP 7 compares the supplied power and the power required by the modules. If the required power is too high, you receive a corresponding message from STEP 7.
In addition, the system power supply PS 60W 24/48/60V DC HF buffers the power in the event of power failures and therefore enables the retentivity of the data of a CPU ­ without a battery and therefore maintenance-free.

Automation system

96

System Manual, 11/2019, A5E03461182-AF

Application planning 4.2 System and load power supply
Slots for system power supplies
The following slots may be used for system power supplies:  A system power supply in slot 0 to the left of the CPU/interface module  Up to 2 system power supplies in the slots to the right of the CPU/interface module
(power segments) A power segment consists of a power supply module and the modules supplied by it.
Note The system power supply PS 60W 24/48/60V DC HF can only be inserted in slot 0.
Power segment
The following applies for the CPUs and interface modules M 155-5 PN ST and IM 155-5 PN HF: If you are using system power supplies to the right of the CPU/interface module, divide the configuration into power segments.
Configuration variant with power segments

Figure 4-5 Configuration variants with 3 power segments
Note When you configure with STEP 7, STEP 7 automatically checks configuration for consistency and tells you from which module you must open a new power segment.

Automation system

System Manual, 11/2019, A5E03461182-AF

97

Application planning 4.2 System and load power supply

Overload in the power segment
If an overload occurs in a power segment, the red SF LED flashes on the system power supply (PS). All I/O modules to the right of the PS in the power segment will be switched off. Remedy: 1. Correct the configuration in the power segment of the overloaded PS. 2. Switch the supply voltage power off and on again via the on-off switch on the PS. 3. Switch the CPU from STOP to RUN mode.

Reference

Information about the required power is available in the section Power balance calculation (Page 103).
Additional information on the performance values (power feed, power consumption) of the CPU, interface module, system power supply, and I/O modules can be found in the manuals (http://support.automation.siemens.com/WW/view/en/57251228) of the respective modules.

4.2.2

Special considerations for the use of a system power supply in the first power segment

Infeed options

There are three options for the infeed of the required system voltage in the backplane bus:  Infeed via CPU/interface module  Infeed via CPU/interface module and system power supply  Infeed only via system power supply in slot 0

Infeed via CPU/interface module
Infeed via the CPU/interface module generally suffices for small and medium hardware configurations. The power consumption of the connected modules must not exceed the power supplied by the CPU/interface module.
In this configuration variant, supply the CPU/interface module with 24 V DC from a load current supply.

Automation system

98

System Manual, 11/2019, A5E03461182-AF

Procedure

Application planning 4.2 System and load power supply
To set up the supply by means of the CPU/interface module, follow these steps: 1. Open the "Properties" tab of the CPU/interface module in STEP 7 and select the "System
power supply" in the navigation. 2. Select the option "Connection to supply voltage L+".

Figure 4-6 Supply voltage via CPU/interface module only

Infeed via CPU/interface module and system power supply
For larger hardware configurations, infeed into the backplane bus by the CPU/interface module alone no longer suffices. If the modules consume more power in total than the power supplied by the CPU/interface module, you must insert an additional system power supply.
Supply the system power supply with the permissible supply voltage and the CPU/interface module with 24 V DC.
Both the system power supply and the CPU/interface module feed current into the backplane bus. The supplied power is summed.
Power addition: "Infeed power of the system power supply" + "Infeed power of the CPU/interface module"

Procedure

To set up the supply by means of the CPU/interface module and system power supply, follow these steps:
1. Open the "Properties" tab of the CPU/interface module in STEP 7 and select the "System power supply" in the navigation.
2. Select the option "Connection to supply voltage L+".

Figure 4-7 Supply voltage via the CPU/interface module and system power supply

Automation system

System Manual, 11/2019, A5E03461182-AF

99

Application planning 4.2 System and load power supply

Infeed via system power supply only
As a further possibility you can supply the required power to the backplane bus using only a system power supply (in slot 0). In this case, the CPU/interface module is not supplied with 24 V DC, and draws its supply from the backplane bus. The system power supply must be inserted to the left of the CPU/interface module for this.
In general, you can use system power supplies with AC or DC infeed for the configuration.
If no supply voltage with 24 V DC is present (and e.g. only CMs/CPs are inserted next to the CPU), you can use a system power supply with 230 V AC because the CMs/CPs are supplied via the backplane bus.

Procedure

To set up infeed only via the system power supply, follow these steps:
1. Open the "Properties" tab of the CPU/interface module in STEP 7 and select the "System power supply" in the navigation.
2. Select the option "No connection to supply voltage L+".

Figure 4-8 No infeed into the backplane bus by means of the CPU/interface module

4.2.3

Special requirements when using the power supply PS 60W 24/48/60VDC HF

S7-1500 - Extended retentive memory for CPUs as of FW V2.1.0
When you use the PS 60W 24/48/60VDC HF system power supply, the entire data area can be used as retentive memory for CPUs as of firmware version V2.1.0 and higher. The PS 60W 24/48/60VDC HF supplies enough energy in case of a POWER OFF that the CPU can save the entire data area retentively.
Requirements  STEP 7 V14 SP1 or higher  PS 60W 24/48/60VDC HF system power supply  CPU with firmware version as of V2.1.0, see table below

100

Automation system System Manual, 11/2019, A5E03461182-AF

Application planning 4.2 System and load power supply

Applicable CPUs
The size of the retentive memory depends on the size of the work memory for data of the CPU used. The table below shows the applicable CPUs with the required hardware function versions.

CPU with firmware version V2.1.0 CPU 1511-1 PN
CPU 1511F-1 PN CPU 1511T-1 PN CPU 1511T-1 PN CPU 1511C-1 PN
CPU 1512C-1 PN
CPU 1513-1 PN
CPU 1513F-1 PN CPU 1515-2 PN CPU 1515F-2 PN CPU 1515T-2 PN CPU 1515T-2 PN CPU 1516-3 PN/DP CPU 1516F-3 PN/DP CPU 1516T-3 PN/DP CPU 1516TF-3 PN/DP CPU 1616T-3 PN/DP CPU 1517-3 PN/DP CPU 1517F-3 PN/DP CPU 1517T-3 PN/DP CPU 1517TF-3 PN/DP CPU 1518-4 PN/DP CPU 1518F-4 PN/DP CPU 1518-4 PN/DP MFP CPU 1518F-4 PN/DP MFP

Hardware function version FS01 or higher
FS01 or higher FS01 or higher FS01 or higher FS01 or higher
FS01 or higher
FS01 or higher
FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS01 or higher FS03 or higher FS03 or higher FS01 or higher FS01 or higher FS03 or higher FS03 or higher FS01 or higher FS01 or higher

Article number
6ES7511-1AK01-0AB0 6ES7511-1AK02-0AB0 6ES7511-1FK01-0AB0 6ES7511-1TK01-0AB0 6ES7511-1UK01-0AB0 6ES7511-1CK00-0AB0 6ES7511-1CK01-0AB0 6ES7512-1CK00-0AB0 6ES7512-1CK01-0AB0 6ES7513-1AL01-0AB0 6ES7513-1AL02-0AB0 6ES7513-1FL01-0AB0 6ES7515-2AM01-0AB0 6ES7515-2FM01-0AB0 6ES7515-2TM01-0AB0 6ES7515-2UM01-0AB0 6ES7516-3AN01-0AB0 6ES7516-3FN01-0AB0 6ES7516-3TN00-0AB0 6ES7516-3UN00-0AB0 6ES7516-3TN00-0AB0 6ES7517-3AP00-0AB0 6ES7517-3FP00-0AB0 6ES7517-3TP00-0AB0 6ES7517-3UP00-0AB0 6ES7518-4AP00-0AB0 6ES7518-4FP00-0AB0 6ES7518-4AX00-1AB00 6ES7518-4FX00-1AB00

Max. retentive memory 1 MB
1 MB 1 MB 1 MB 1 MB
1 MB
1.5 MB
1.5 MB 3 MB 3 MB 3 MB 3 MB 5 MB 5 MB 5 MB 5 MB 5 MB 8 MB 8 MB 8 MB 8 MB 20 MB 20 MB 20 MB 20 MB

Automation system System Manual, 11/2019, A5E03461182-AF

101

Application planning 4.2 System and load power supply
Connection, structure and configuration of an S7-1500 with PS 60W 24/48/60VDC HF
 You must insert the system power supply PS 60W 24/48/60VDC HF in slot 0.

Figure 4-9 Slot PS 60W 24/48/60VDC HF
 If you are using the PS 60W 24/48/60VDC HF, the 24 V supply of the CPU is not taken into account in the power budget calculation. We therefore recommend that you do not connect the 24 V DC to the CPU.
You must set the "System power supply" parameter to the option "No connection to supply voltage L+" during configuration of the CPU. STEP 7 checks the setting when compiling the configuration.

Figure 4-10 Connecting PS 60W 24/48/60VDC HF
 The parameter "Startup > Comparison preset to actual module" must be set to the value "Startup CPU only if compatible" during configuration of the PS 60W 24/48/60VDC HF. Reason: The retentivity of the entire CPU work memory (data) is only guaranteed when the PS 60W 24/48/60VDC HF is inserted.
When you insert the PS 60W 24/48/60VDC HF, STEP 7 automatically sets the parameter.

Figure 4-11 Startup of PS 60W 24/48/60VDC HF

102

Automation system System Manual, 11/2019, A5E03461182-AF

Application planning 4.3 Power balance calculation

Note Other power segments in the configuration The PS 60W 24/48/60VDC HF must only be inserted to the left of the CPU / interface module. Use a different system power supply (PS) for other power segments in the configuration to the right of the CPU / interface module.
Missing diagnostics for the PS 60W 24/48/60VDC HF
In case of POWER OFF, saving the extended retentive data is most important. The CPU as of FW V2.1.0 and higher does no longer output the following diagnostics of the PS 60W 24/48/60VDC HF:  Supply voltage fault  Switch position Off

4.3

Power balance calculation

Principle of power balance calculation
In order to ensure the supply of the modules from the backplane bus, the power balance calculation compares the infed power with the required power for the modules. The supplied power of all system power supplies including the CPU/interface module must be greater than or equal to the power taken from the modules.
In order to operate the configuration with its used modules, the power balance must be positive for each power segment in use.
This means that the power fed into the power segment is greater than the power consumed by the modules.
Take care even during planning, that the power fed into the backplane bus is always greater than or equal to the power drawn. The TIA Selection Tool (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool) aids you during planning.
The power fed into the backplane bus by the CPU/interface module and system power supply is listed in the technical specifications of the CPU/interface module in the corresponding manuals.
The power consumed from the backplane bus by an I/O module or the CPU/interface module can be found in the technical specifications in the corresponding manuals.
The power balance calculation is performed:
 When configuring with STEP 7
 During operation by the CPU

Automation system System Manual, 11/2019, A5E03461182-AF

103

Application planning 4.3 Power balance calculation
Power balance calculation when configuring with STEP 7
STEP 7 checks compliance with the power balance during the configuration. Proceed as follows to evaluate the power balance calculation: 1. Perform the configuration of the S7-1500/ET 200MP with all the required modules. 2. In the network view, select the CPU/interface module or the system power supply. 3. Open the "Properties" tab in the inspector window. 4. Select the "System power supply" entry in the area navigation. 5. Check the "Power segment overview" table, so see whether the power balance is
positive. If the power balance is negative, STEP 7 marks the underpowered modules in red.
Figure 4-12 Example of a power balance calculation with STEP 7
Power balance calculation check for overload by the CPU/interface module
The CPU / the interface module monitors compliance with a positive power balance:  At every POWER ON  At every change of the installed hardware

104

Automation system System Manual, 11/2019, A5E03461182-AF

Application planning 4.3 Power balance calculation
Causes for overload
An overload can still occur despite a positive power balance during planning. The cause for overload can be a hardware configuration that does not correspond to the configuration in STEP 7, for example:  More I/O modules inserted in the actual configuration than in the STEP 7 project.  A supply voltage L+ (24 V DC) that is necessary for operation is not connected when
system voltage infeed via the CPU/interface module is specified during parameter assignment (see section Special considerations for the use of a system power supply in the first power segment (Page 98)).  A system power supply that is necessary for operation is not inserted.  A system power supply that is necessary for operation is not switched on (power connection plug or on/off switch).  A system power supply that is necessary for operation has no U connector inserted.
Response of the CPU to negative power balance or failure of system power supplies
As soon as the CPU detects a negative power balance/overload, the following actions are executed:  The CPU stores the retentive data.  The CPU enters the event in the diagnostics buffer.  The CPU carries out a restart and repeats this until the cause of the negative power
balance is resolved.
Response of the interface module to negative power balance or failure of system power supplies
As a result of the overload, the interface module switches off all power segments. The I/O controller or DP master can no longer access the I/O modules. The interface module provides diagnostic information and periodically checks the connection to the backplane bus and re-establishes the connection. Exception: In the case of a voltage drop or a hardware fault in power segment 2 or 3, the corresponding system power supply module switches off its power segment (and possibly the following segments), and generates a diagnostic alarm, if possible. More information on the behavior of the system power supply (PS) in the event of a fault can be found in the manuals for the system power supplies.

Automation system System Manual, 11/2019, A5E03461182-AF

105

Application planning 4.4 Use of load power supplies

4.4

Use of load power supplies

Introduction

The load current supply (PM) supplies the system power (PS), central modules (CPU), interface module and input and output circuits of the I/O modules with DC 24 V.
Load current supplies can be mounted on the mounting rail but do not have a connection to the backplane bus.
Observe the installation rules and specified installation distances in the manuals of the load current supplies.

Use of multiple load current supplies
Several load current supplies (PM) can be used as follows for higher output currents: Every load current supply feeds independent 24 V DC load lines. Alternatively you can use an external 24 V power supply, e.g. from the SITOP line.

Figure 4-13 Supply of the modules from 24 V DC load current suppl
Note Alternative 24 V supply of the modules from the control cabinet If safe electrical separation (SELV/PELV according to IEC 61131-2 and IEC 61010-2-201) is guaranteed, you can alternatively supply the modules with 24 V DC from the control cabinet.

Reference

More information on load current supplies can be found on the Internet (https://mall.industry.siemens.com) in the online catalog and in the online ordering system.

106

Automation system System Manual, 11/2019, A5E03461182-AF

Installation

5

5.1

Basics

Introduction

All modules of the S7-1500 automation system/ET 200MP distributed I/O system are open equipment. This means that you may only install this system in housings, cabinets or electrical operating rooms that are located indoors. The housings, cabinets and electrical operating rooms must guarantee protection against electric shock and spread of fire. The requirements for mechanical strength must also be met. The housings, cabinets, and electrical operating rooms must not be accessible without a key or tool. Personnel with access must have been trained or authorized.

Installation position
The S7-1500 automation system / ET 200MP distributed I/O system is designed for the following mounting positions:
 Horizontal mounting position for ambient temperatures up to 60° C
 Vertical mounting position (CPU is down) for ambient temperatures up to 40° C
More information can be found in chapter Mechanical and climatic ambient conditions (Page 321).

Mounting rail

You can mount the following components on the mounting rails alongside the S7-1500/ET 200MP modules:
 Modules from the S7-1200 and ET 200SP range
 Terminals
 Circuit breakers
 Small contactors
 Similar components
These components can influence the installation dimensions for the cable duct.
Modules can be mounted right to the outer edge of the mounting rail.
The mounting rails are available in various lengths. You order the mounting rails using the online catalog or the online ordering system. You can find the available lengths and article numbers in the section Accessories/spare parts (Page 336).

Automation system System Manual, 11/2019, A5E03461182-AF

107

Installation 5.1 Basics Minimum clearances
The modules can be mounted to the outer edge of the mounting rail. Maintain the following minimum clearances at the top and bottom when installing or removing the S7-1500 automation system / ET 200MP distributed I/O system:
 Upper edge of the mounting rail
Figure 5-1 Minimum clearances in the control cabinet

108

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.2 Installing the mounting rail
Installation rules
 The installation starts on the left with a CPU/interface module or a system power supply/load current supply.
 You connect the modules to each other with U connectors.  Note that no U connector protrudes from the first and last module.
Note Only remove and insert modules when the power to the system is switched off.
WARNING Protection from conductive contamination Protect the devices against conductive contamination. At the same time, note the ambient conditions. Protection from conductive contamination can, for example, be achieved by installing the devices in a control cabinet with the appropriate degree of protection.

5.2

Installing the mounting rail

Lengths and drill holes
The mounting rails are delivered in six lengths:
 160 mm
 245 mm
 482.6 mm (19 inches)
 530 mm
 830 mm
 2000 mm
You can find the article numbers in the appendix Accessories/spare parts (Page 336).
The mounting rails (from 160 to 830 mm) come with two drill holes for fixing screws. A set of screws for grounding the mounting rail is provided.
The 2000 mm mounting rail is designed for assemblies with special lengths and does not have holes for fixing screws. No set of screws for grounding is enclosed with the mounting rail (can be ordered as Accessories/spare parts (Page 336)).
The specifications of the maximum offsets between two drill holes can be found in the table, "Dimensions for the drill holes".

Automation system System Manual, 11/2019, A5E03461182-AF

109

Installation 5.2 Installing the mounting rail

Tools required

 Commercially available hacksaw  Drill  6.5 mm  Screwdriver  Size 10 adjustable screw-wrench or socket wrench for grounding cable connection  Adjustable screw-wrench, matching the selected fixing screws  Stripping tool and crimp tool for the grounding cable

Required accessories
Use the following screw types for fastening the mounting rails:

Table 5- 1 Required accessories

For ...
· Outer fixing screws · Additional fixing screws (for mount-
ing rails > 482.6 mm)

you can use ...
M6 fillister head screws according to ISO 1207/ISO 1580 (DIN 84/DIN 85)
M6 hexagon head screws according to ISO 4017 (DIN 4017)

Explanation
Choose a suitable screw length for your assembly.
You also need washers for cylinder head screws with an internal diameter of 6.4 mm and an external diameter of 11 mm in accordance with ISO 7092 (DIN 433).

110

Automation system System Manual, 11/2019, A5E03461182-AF

Dimensions for the drill holes
Table 5- 2 Dimensions for the drill holes "Standard" mounting rails

Installation 5.2 Installing the mounting rail
"Longer" mounting rails

Length of the mounting rail Distance a

160 mm

10 mm

245 mm

10 mm

482.6 mm

8.3 mm

530 mm

15 mm

830 mm

15 mm

Distance b 140 mm 225 mm 466 mm 500 mm 800 mm

Additional fixing screws (for mounting rails > 530 mm)
For profile rails >530 mm, we recommend using additional fixing screws at intervals of >482.6 mm on the identification groove.

Automation system System Manual, 11/2019, A5E03461182-AF

111

Installation 5.2 Installing the mounting rail
Preparing the 2000 mm mounting rail for installation
To prepare the 2000 mm mounting rail for installation, proceed as follows: 1. Cut the 2000 mm mounting rail to the required length. 2. Mark the holes. The necessary dimensions can be found in the table "Dimensions for the
drill holes": ­ Two drill holes at the beginning and end of the mounting rail ­ Additional drill holes at equal intervals of 500 mm maximum, along the identification
groove 3. Drill the marked holes according to the selected type of fastening. 4. Ensure that there are no burrs or shavings on the mounting rail.
Note To ensure secure installation of the modules, make sure you position the drill holes centered on the identification groove and only use screws of the maximum size.

 Identification groove for additional drill holes  Additional drill hole
Figure 5-2 Preparing the 2000 mm mounting rail for installation
Installing the mounting rail
Place the mounting rail such that sufficient space remains for installation of and heat dissipation from the modules. Note the figure Figure 5-1 Minimum clearances in the control cabinet (Page 108). Screw the rail onto the mounting surface.

112

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.2 Installing the mounting rail
Attaching the protective conductor
The S7-1500 automation system/ ET 200MP distributed I/O system has to be connected to the protective conductor system of the electrical system to ensure electrical safety. Proceed as follows to connect the protective conductor: 1. Strip the ground conductor with a minimum diameter of 10 mm2. Attach a ring cable lug
for M6 bolts with the crimping pliers. 2. Slide the enclosed bolt into the T profile groove. 3. Insert the spacer, ring terminal with the grounding connector, flat washer, and lock
washer onto the bolt (in that order). Thread on the hexagon nut. Fasten the components in place with the nut (tightening torque 4 Nm). 4. Connect the opposite end of the grounding cable to the central grounding point/protective conductor busbar (PE).

Figure 5-3 Attaching the protective conductor
Note Alternative grounding of the mounting rail Grounding with the grounding screw is not required if the following requirements are met: The mounting rails must be permanently connected to the protective circuit using an equivalent fitting that complies with the applicable standards, for example by permanent attachment to a grounded control cabinet wall.

Automation system System Manual, 11/2019, A5E03461182-AF

113

Installation 5.3 Installing the standard rail adapter

Note

You can find more information on the exact dimensions of the mounting rails in the appendix Dimension drawings of the mounting rails (Page 329).

5.3

Installing the standard rail adapter

Introduction

The mounting rail adapter allows you to mount the SIMATIC S7-1500/ET 200MP automation system on the standard 35 mm mounting rails.
You order the DIN rail adapter as separate accessories.
Note Note the following reduced technical specifications regarding mechanical load when you install the S7-1500/ET 200MP modules on the 35 mm standard mounting rail using the standard mounting rail adapter:
Vibration test acc. to IEC 60068-2-6 (sinusoidal) · 5 Hz  f  8.4 Hz, constant amplitude 3.5 mm · 8.4 Hz  f  150 Hz, constant acceleration 1 g
Duration of vibration: 10 frequency sweeps per axis in each of three perpendicular axes
Shock, tested according to IEC 60068-2-27 · Type of shock: Half-sine · Shock intensity: 150 m/s2 peak value, 11 ms duration · Direction of shock: 3 shocks in +/- direction in each of three perpendicular axes

114

Automation system System Manual, 11/2019, A5E03461182-AF

Article No. View

Installation 5.3 Installing the standard rail adapter
6ES7590-6AA00-0AA0 The scope of delivery consists of ten adapters, ten hexagon socket-head screws and ten washers.
The DIN rail adapter consists of a clamp, an adapter frame and a hexagon socket-head screw with washer.

 Clamp  Adapter frame  Hexagon socket-head screw  Washer
Figure 5-4 Parts of the DIN rail adapter

Automation system System Manual, 11/2019, A5E03461182-AF

115

Installation 5.3 Installing the standard rail adapter
Dimensional drawing

 Position of the adapter frame during mounting to the standard DIN rail 35 mm x 7.5 mm  Position of the adapter frame during mounting to the standard DIN rail 35 mm x 15 mm
Figure 5-5 Dimensional drawing

Tools required

Wrench matching the hexagon socket head cap screw M6 according to EN ISO 4762 (DIN 912).

116

Automation system System Manual, 11/2019, A5E03461182-AF

Properties

Installation 5.3 Installing the standard rail adapter
 The standard mounting rail adapter makes it possible to mount the S7-1500/ET200MP mounting rail on standard 35 mm mounting rails.  The DIN rail adapter allows for the use of prefabricated control cabinet and terminal box systems.  The total length of the S7-1500/ET 200 MP mounting rail can be used again completely as before.  To ensure optimal stability, the clearance between the two DIN rail adapters must be no more than 250 mm or less.

Figure 5-6 Distance between two DIN rail adapters
Note Note that, depending on the mounting rail width, the mounting rail adapter can protrude up to 4 mm on each side due to the drill holes. You can find an overview of the protrusion dimensions for the various DIN rails in the table below.

Automation system System Manual, 11/2019, A5E03461182-AF

117

Installation 5.3 Installing the standard rail adapter

Table 5- 3 Additional lateral space required

Mounting rail

Article No.

· 160.0 mm (with drill holes) · 245.0 mm (with drill holes) · 482.6 mm (with drill holes) · 530.0 mm · 830.0 mm (with drill holes)

6ES7590-1AB60-0AA0 6ES7590-1AC40-0AA0 6ES7590-1AE80-0AA0 6ES7590-1AF30-0AA0 6ES7590-1AJ30-0AA0

Additional space required with adapter 4 mm 4 mm 8 mm 0 mm 0 mm

Figure 5-7 DIN rail adapter protrusion

118

Automation system System Manual, 11/2019, A5E03461182-AF

Procedure

Installation 5.3 Installing the standard rail adapter
Mounting on the standard DIN rail 35 mm x 7.5 mm To install DIN rail adapter on the standard DIN rail 35 mm x 7.5 mm, follow these steps: 1. Set the clamp onto the standard DIN rail. 2. The shorter transverse edge of the adapter frame points towards the cabinet or box wall
(2). 3. Place the S7-1500/ET 200MP mounting rail on the adapter frame so that the groove in
the S7-1500/ET 200MP mounting rail matches the groove in the adapter frame. Place the S7-1500/ET 200MP mounting rail with the adapter frame on the clamp (4). 4. Screw the S7-1500/ET 200mounting MP mounting rail together with the mounting rail adapter and the standard mounting rail (5 - tightening torque 6 Nm).

Figure 5-8 Mounting sequence of the DIN rail adapter to the DIN rail 35 mm x 7.5 mm or 35 mm x 15 mm

Automation system System Manual, 11/2019, A5E03461182-AF

119

Installation 5.4 Installing a system power supply
Mounting to the standard DIN rail 35 mm x 15 mm To install DIN rail adapter on the standard DIN rail 35 mm x 15 mm, follow these steps: 1. Set the clamp onto the standard DIN rail. 2. The longer transverse edge of the adapter frame points toward the cabinet or box wall
(3). 3. Place the S7-1500/ET 200MP mounting rail on the adapter frame so that the groove in
the S7-1500/ET 200MP mounting rail matches the groove in the adapter frame. Place the S7-1500/ET 200MP mounting rail with the adapter frame onto the clamp (4). 4. Screw the S7-1500/ET 200mounting MP mounting rail together with the mounting rail adapter and the standard mounting rail (5 - tightening torque 6 Nm).

5.4

Installing a system power supply

Introduction

The system power supply has a connection to the backplane bus and supplies the connected modules with the internal supply voltage.

Requirements
The mounting rail is installed.

Tools required
Screwdriver with 4.5 mm blade

120

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.4 Installing a system power supply
Installing a system power supply
To install the system power supply, follow these steps: 1. Insert the U-connector into the back of the system power supply. 2. Hang the system power supply on the mounting rail. 3. Swivel the system power supply to the rear.

Figure 5-9 Installing a system power supply
4. Open the front cover. 5. Disconnect the power cable connector from the system power supply. 6. Screw the system power supply tight (tightening torque 1.5 Nm). 7. Insert the already wired-up power cable connector into the system power supply. Information about wiring of the power cable connector is available in the section Connecting system power supply and load current supply (Page 147).
Uninstalling a system power supply
The system power supply is wired up. To uninstall the system power supply, follow these steps: 1. Open the front cover. 2. Shut down the system power supply. 3. Switch off the supplied supply voltage. 4. Disconnect the power cable connector, and remove the connector from the system power
supply. 5. Unscrew the fixing screw. 6. Swivel the system power supply out of the mounting rail.

Automation system System Manual, 11/2019, A5E03461182-AF

121

Installation 5.5 Installing a load current supply

Reference

Additional information can be found in the manuals for the system power supplies.

5.5

Installing a load current supply

Introduction

Load current supplies do not have a connection to the backplane bus of the S7-1500 automation systems/ET 200MP distributed I/O system and also do not occupy a slot on the backplane bus. The load current supply (PM) supplies the system power (PS), CPU, interface module and input and output circuits of the I/O modules with DC 24 V.

Requirements
The mounting rail is installed.

Tools required
Screwdriver with 4.5 mm blade

122

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.5 Installing a load current supply
Installing a load current supply
Watch video sequence (http://www.automation.siemens.com/salesmaterial-as/interactivemanuals/getting-started_simatic-s7-1500/videos/EN/mount/start.html) To install a load current supply, follow these steps: 1. Hook the load current supply on the mounting rail. 2. Swivel the load current supply to the rear.

Figure 5-10 Installing a load current supply
3. Open the front cover. 4. Disconnect the power cable connector from the load current supply. 5. Screw the load power supply tight (tightening torque 1.5 Nm). 6. Insert the already wired-up power cable connector into the load current supply. For a description on how to wire the power cable connector, refer to the section Connecting system power supply and load current supply (Page 147).
Note Load current supplies can only be mounted on the left or right side outside the S7-1500 automation system/ET 200MP distributed I/O system. If you mount a load current supply on the right of the configured setup, the heat development of the load current supply may make a gap to the configured setup necessary. For additional information, refer to the relevant manuals. The number of load current supplies that can be used is unlimited.

Automation system System Manual, 11/2019, A5E03461182-AF

123

Installation 5.6 Installing the CPU

Uninstalling the load current supply
The load current supply is wired up. To uninstall a load current supply, follow these steps: 1. Open the front cover. 2. Shut down the load current supply. 3. Turn off the feed supply voltage. 4. Disconnect the power cable connector, and remove the connector from the load current
supply. 5. Unscrew the fixing screw. 6. Swivel the load current supply out of the mounting rail.

Reference

Additional information can be found in the manuals for the load current supplies.

5.6

Installing the CPU

Introduction

The CPU executes the user program and supplies the electronics of the modules with power via the backplane bus.

Requirements

The mounting rail is installed.
In a system power supply located on the left next to the CPU, a U connector is inserted on the back right.

Note Protective film
Please note that the CPU is supplied with a removable protective film on the display. You can remove the protective film as required.

Tools required
Screwdriver with 4.5 mm blade

124

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.6 Installing the CPU
Installing the CPU
Watch video sequence (http://www.automation.siemens.com/salesmaterial-as/interactivemanuals/getting-started_simatic-s7-1500/videos/EN/mount/start.html) To install a CPU, follow these steps: 1. Insert a U-connector into the back right on the CPU. 2. Install the CPU to the mounting rail. Also push the CPU to the left system power supply if
necessary. 3. Ensure that the U-connector is inserted at the system power supply. Swivel the CPU in to
the rear. 4. Screw the CPU tight (tightening torque 1.5 Nm).

Figure 5-11 Installing the CPU
Uninstalling the CPU
The CPU is wired, and is followed by additional modules. To uninstall a CPU, follow these steps: 1. Open the front cover. 2. Switch the CPU into STOP mode. 3. Turn off the feed supply voltage. 4. Pull off the connector for the supply voltage. 5. Loosen the bus connectors for PROFIBUS/PROFINET with the screwdriver. 6. Disconnect the bus connector from the CPU. 7. Undo the CPU fixing screws. 8. Pivot the CPU out of the mounting rail.

Automation system System Manual, 11/2019, A5E03461182-AF

125

Installation 5.7 Installing the interface module

5.7

Installing the interface module

Introduction

The interface module connects the ET 200MP with the PROFINET IO/PROFIBUS DP.
The interface module exchanges data between the higher-level controller and the I/O modules.

Requirements

The mounting rail is installed.
For a system power supply located to the left of the interface module, a U connector is inserted on the back left.

Tools required
Screwdriver with 4.5 mm blade

Installing the interface module
Watch video sequence (https://support.industry.siemens.com/cs/media/67462859_installing_web_en/start.htm) To install an interface module, proceed as follows: 1. Mount the U-connector on the back right-hand side of the interface module. 2. Hook the interface module on the rail. 3. Pivot the interface module towards the back. 4. Tighten the interface module (tightening torque 1.5 Nm).

Figure 5-12 Installing the interface module

126

Automation system System Manual, 11/2019, A5E03461182-AF

Installation 5.8 Installing I/O modules
Uninstalling the interface module
The interface module is wired and is followed by additional modules. To uninstall the interface module, follow these steps: 1. Switch off the supply voltage for the interface module. 2. Open the front cover. 3. Loosen the bus connector and the connector for the supply voltage with the screwdriver. 4. Remove the plug from the interface module. 5. Loosen the fixing screw of the interface module. 6. Pivot the interface module out of the mounting rail.

5.8

Installing I/O modules

Introduction

The I/O modules are then mounted to the right of the CPU/interface module. I/O modules form the interface between the controller and the process. The controller detects the current process state via the connected sensors and actuators, and triggers the corresponding reactions.

Requirements

The mounting rail is installed.
The CPU/interface module is installed.
In the module/CPU/interface module located to the left of the I/O module, a U-connector is inserted on the back right.

Tools required
Screwdriver with 4.5 mm blade

Automation system System Manual, 11/2019, A5E03461182-AF

127

Installation 5.8 Installing I/O modules
Installing I/O modules
Watch video sequence (http://www.automation.siemens.com/salesmaterial-as/interactivemanuals/getting-started_simatic-s7-1500/videos/EN/mount/start.html) Proceed as follows to install an I/O module: 1. Insert a U connector into the back right on the I/O module.
Exception: the last I/O module in the assembly 2. Install the I/O module on the mounting rail. Push the I/O module up to the left module. 3. Pivot the I/O module towards the back. 4. Tighten the I/O module (tightening torque 1.5 Nm).

Figure 5-13 Installing I/O module
Uninstalling I/O modules
The I/O module is wired. Proceed as follows to dismantle an I/O module: 1. Turn off all feed supply voltages. 2. Open the front cover. 3. For communications modules: Loosen and remove the connector from the module. 4. At I/O modules: Pull the front connector out of the I/O module using the unlocking strap.
Swivel the front connector downward. Remove the front connector from the guide grooves. 5. Loosen the fixing screw of the I/O module. 6. Pivot the I/O module out of the mounting rail.

128

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring

6

6.1

Rules and regulations for operation

Introduction

The S7-1500 automation system / ET 200MP distributed I/O system is a component of plants or systems. Special rules and regulations must be adhered to in line with the area of application.
This section provides an overview of the most important rules that must be observed for the integration of the S7-1500 automation system/ ET 200MP distributed I/O system in a plant or system. Observe these rules when connecting the S7-1500automation system / ET 200MP distributed I/O system.

Specific application
Observe the safety and accident prevention regulations that are applicable to specific applications (for example Machinery Directive).

EMERGENCY-STOP devices
EMERGENCY OFF equipment to IEC 60204 (corresponds to DIN VDE 0113) must remain effective in all operating modes of the plant or system.

Excluding hazardous plant states
Hazardous operating states must not occur when  The plant restarts after a voltage dip or power failure.  Bus communication is reestablished following a fault. If a hazardous operating state occurs, force an EMERGENCY STOP. After the EMERGENCY-STOP device has been unlocked, the S7-1500 automation system / ET 200MP distributed I/O system must not started uncontrolled or undefined.

Automation system System Manual, 11/2019, A5E03461182-AF

129

Wiring 6.1 Rules and regulations for operation

Line voltage

The points to note for line voltage are set out below.
 For fixed plants or systems without multipole circuit breaker, a mains disconnection device (multipole) must be available in the building installation.
 For load current supplies, the configured rated voltage range must correspond to the local line voltage.
 For all power circuits of the S7-1500 automation system/ET 200MP distributed I/O system, the fluctuation/deviation of the line voltage from the rated value must be within the permitted tolerance.
You can find additional information in the section Information on insulation tests, protection class, degree of protection and rated voltage (Page 327).

24 V DC supply
The following describes what you must pay attention to in terms of the 24 V DC supply:  Power supply units for the 24 V DC supply must supply a safe extra-low voltage
according to IEC 61131-2 or IEC 61010-2-201.  To protect the S7-1500 automation system/ET 200MP distributed I/O system from
lightning and overvoltages, use overvoltage arresters. Suitable components for the lightning and overvoltage protection are specified in the Defining interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) function manual.
Protection against electrical shock
As protection against electric shock you must connect the mounting rail and if necessary, all other existing protective conductor connections of the S7-1500 automation system / ET 200MP distributed I/O system conductively with the protective conductor. You may only use conductors in the colors yellow-green for connections to protective conductor connections.
Protection against external electrical influences
To protect against electrical effects or faults, observe the following rules:  The system for discharging electromagnetic interference must be connected to a
protective conductor with a sufficient cross-section for all plants with an S7-1500 automation system / ET 200MP distributed I/O system.  You must ensure that all supply, signal and bus cables are correctly routed and installed.  For signal and bus lines, a cable break, wire break or a cross circuit must not lead to undefined states in the plant or system.

130

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.2 Additional rules and regulations for operation of the S7-1500/ET 200MP with fail-safe modules

Reference

Additional information can be found in the function manual, Designing interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566).

6.2

Additional rules and regulations for operation of the

S7-1500/ET 200MP with fail-safe modules

6.2.1

Safety extra-low voltage (SELV, PELV) for failsafe modules

Key statement
WARNING
The failsafe modules must be operated with safety extra-low voltage (SELV, PELV). You can find more information on safety extra-low voltage (SELV, PELV) in the data sheets of the applicable power supplies, for example. The fail-safe modules operate at a rated voltage of 24 V DC. The tolerance range is 19.2 V DC to 28.8 V DC. The fail-safe motor starters operate with the 24 V DC rated voltage. The tolerance range is 20.4 V DC to 28.8 V DC. Within the overvoltage range from 32 V DC to 36 V DC, the F-modules react in a fail-safe manner and the inputs and outputs are passivated. For overvoltages greater than 36 V DC, the F-modules are permanently de-energized. Use a power supply unit that does not exceed Um = 36 V DC even in the event of a fault. For more on this, refer to the information in the data sheet on overvoltage protection in the case of an internal error. Or implement appropriate measures to limit the voltage, e.g., use of a surge protection device. All system components that can supply electrical energy in any form whatsoever must fulfill this condition. Each additional circuit (24 V DC) used in the system must have a safety extra low voltage (SELV, PELV). Refer to the relevant data sheets or contact the manufacturer. Sensors and actuators with an external power supply can also be connected to F-modules. Make sure that power is supplied to these components from safety extra-low voltage (SELV, PELV) as well. The process signal of a 24 V DC digital module must not exceed a fault voltage Um in the event of a fault.
WARNING
Even when a fault occurs, the permissible potential difference between the supply of the interface module (bus voltage) and the load voltage must not be exceeded. An external direct electrical connection is one way to meet this requirement. This also prevents potential differences from causing voltage additions at the individual voltage sources, which could cause the fault voltage Um to be exceeded.

Automation system System Manual, 11/2019, A5E03461182-AF

131

Wiring 6.2 Additional rules and regulations for operation of the S7-1500/ET 200MP with fail-safe modules

6.2.2

Requirements of sensors and actuators for fail-safe modules

General requirements for sensors and actuators
Note the following important warning regarding safety-related use of sensors and actuators:
WARNING
Note that instrumentation with sensors and actuators bears a considerable safety responsibility. Also bear in mind that sensors and actuators generally do not have a service life of 20 years as defined in IEC 61508:2010 without considerable loss of safety.
The probability of hazardous faults and the rate of hazardous faults of safety functions must comply with an SIL-defined high limit. A listing of values achieved by F-modules in the technical specifications of the F-modules is available under "Fail-safe performance characteristics".
To achieve the respective safety class, suitably qualified sensors and actuators are necessary.

Additional sensor requirements
General rule: A single-channel sensor is sufficient to achieve SIL3/Cat.3/PLd. However, to achieve SIL3/Cat.3/PLd with a single-channel sensor, the sensor itself must be SIL3/Cat.3/PLd-capable. Otherwise you can only reach this security level through the twochannel connection of sensors.
To reach Cat.4, connect the sensors to two channels.
WARNING
In the case of fail-safe input modules, a "0" value is output to the F-CPU after detection of faults. You therefore need to make sure that the sensors are implemented in such a way as to ensure the reliable reaction of the safety program when the sensor is in the "0" state.
Example: In its safety program, an EMERGENCY-STOP sensor must achieve the shutdown of the respective actuator when it is in the "0" state (EMERGENCY-STOP button pressed).

132

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.2 Additional rules and regulations for operation of the S7-1500/ET 200MP with fail-safe modules
Duration requirements for sensor signals
WARNING
Observe the following requirements for sensor signals: · In order to ensure the correct detection of the sensor signals via fail-safe modules with
inputs, you need to make sure that the sensor signals are output for a minimum duration. · In order for pulses to be detected with certainty, the time between two signal changes (pulse duration) must be greater than the PROFIsafe monitoring time.
Safe detection of inputs through F-modules The minimum duration of sensor signals for fail-safe modules with inputs is dependent:  On the parameters assigned for input delay  On the parameters of the short-circuit test of sensor supplies.  On the configured discrepancy behavior with 1oo2 (2v2) evaluation. The duration of the signal must be greater than the maximum response time of the configured application. Information on calculating the maximum response time can be found in section "Response times" of the respective F-module. The maximum permitted switching frequency of the sensor signals results from the minimum duration.
Additional requirements for actuators
The fail-safe output modules test the outputs at regular intervals. The F-module briefly switches off the activated outputs and, if necessary, briefly switches on the deactivated outputs. You can assign the maximum duration of the test pulses (dark and light period) with parameters. High-speed actuators may briefly drop out or be activated during this test. If your process does not tolerate this, set the pulse duration of the light or dark test correspondingly or use actuators that have sufficient lag.
WARNING
If the actuators switch voltages greater than 24 V DC (e.g. 230 V AC), the outputs of a failsafe output module and the parts carrying a higher voltage must be electrically isolated (acc. to standard IEC 60664-1:2010). This is generally the case with relays and contactors and you must pay particular attention to this with semiconductor switching devices.

Technical specifications of sensors and actuators
Refer to the manuals of the fail-safe modules for technical specifications to assist you in selecting sensors and actuators.

Automation system System Manual, 11/2019, A5E03461182-AF

133

Wiring 6.3 Operation on grounded infeed

6.2.3

Capacitive crosstalk of digital input/output signals
Readback errors may occur on the F-DQ modules if the fail-safe digital output signals and fail-safe digital input signals are routed through a single cable.
Cause: Capacitive crosstalk
During the bit pattern test of the outputs or the sensor supply of the inputs, the steep switching edge of the output drivers due to the coupling capacitance of the line may result in crosstalk to other non-activated output or input channels. This may then lead to a response of the readback circuit in these channels. The module detects a cross circuit/short circuit and performs a safety-related shutdown.
Solution:
 Separate cables for fail-safe DI modules and fail-safe DQ modules / non-fail-safe DQ modules
 Coupling relay or diodes in the outputs
 Disable the short-circuit test of the sensor supply if safety class requirements allow it.
Cause: magnetic crosstalk
Note that an inductive load connected to the F-DQ channels can induce coupling of a strong magnetic field.
Solution:
 Spatially disconnect the inductive loads or shield against the magnetic field.
 Configure the "Max. readback time dark test" to 50 ms or higher.

6.3

Operation on grounded infeed

Introduction

Information is provided below on the overall configuration of an S7-1500 automation system/ET 200MP distributed I/O system on a grounded infeed (TN-S system). The specific subjects discussed are:
 Shut-off devices, short circuit and overload protection in accordance with
­ IEC 60364, corresponds to DIN VDE 0100
­ IEC 60204, corresponds to DIN VDE 0113
 Load current supplies and load circuits

Grounded infeed
In the case of grounding incoming supplies (TN-S system) the neutral conductor (N) and the protective conductor (PE) are each grounded. Both conductors form a part of the overvoltage concept. When a plant is in operation, the current flows across the neutral conductor. When a fault occurs, for example a single ground fault between a live conductor and ground, the current flows through the protective conductor.

134

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.3 Operation on grounded infeed
Safe electrical isolation (SELV in accordance with IEC 61131-2 or IEC 61010-2-201)
Load power supplies/system power supplies with a 24 V DC output voltage require safe electrical isolation and a voltage limit (extra low voltage). Load power supplies/system power supplies with a 24 V DC output voltage are not connected to the protective conductor. In accordance with IEC 61131-2 / IEC 61010-2-201, this protection is referred to as SELV (Safety Extra Low Voltage).
Either the wiring of SELV circuits must be safely isolated from the wiring of other circuits that are not SELV, or the insulation of all wires must be dimensioned for the higher voltage.
Protective extra-low voltage (PELV in accordance with IEC 61131-2 or IEC 61010-2-201)
Load power supplies/system power supplies with a protective 24 V DC output voltage require a safe connection to the protective conductor and a voltage limit (extra low voltage).
In accordance with IEC 61131-2 / IEC 61010-2-201, this protection is referred to as PELV (Protective Extra Low Voltage).
Either the wiring of PELV circuits must be safely isolated from the wiring of other circuits that are not PELV, or the insulation of all wires must be dimensioned for the higher voltage.
Reference potential of the controller
The reference potential of the S7-1500 automation system/ ET 200MP distributed I/O system is connected with the mounting rail through a high-resistance RC combination in the CPU/interface module. In this way, high-frequency interference currents are conducted and electrostatic charges are avoided. Despite the grounded mounting rail, the reference potential of the S7-1500 automation system / ET 200MP distributed I/O system has to be considered as ungrounded due to the high-resistance connection.
If you want to configure the S7-1500 automation system/ET 200MP distributed I/O system with grounded reference potential, connect the M connection of the CPU/interface module galvanically with the protective conductor.
You can find a simplified representation of the potential relationships in section Electrical configuration (Page 138).

Automation system System Manual, 11/2019, A5E03461182-AF

135

Wiring 6.3 Operation on grounded infeed

Short-circuit and overload protection
Various measures as protection against short-circuits and overloads are required for setting up a full installation. The nature of the components and the degree to which the required measures are binding depends on the IEC (DIN VDE) regulation applicable to your plant configuration. The table refers to the following figure and compares the IEC (DIN VDE) regulations.

Table 6- 1 Components and required measures

Shut-off device for control system, sensors, and actuators Short-circuit and overload protection: In groups for sensors and actuators
Load power supply for AC load circuits with more than five items of electromagnetic equipment

Reference to following figure


IEC 60364 (DIN VDE 0100)
Main switch

IEC 60204 (DIN VDE 0113)
Disconnector



Single-pole protection of · With grounded sec-

circuits

ondary circuit: fuse



unipolar

· Otherwise: fuse all

poles



Galvanic isolation by

Galvanic isolation by

transformer recommended transformer recommended

136

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.3 Operation on grounded infeed
S7-1500/ET 200MP in the overall configuration
The figure below shows the overall configuration of the S7-1500/ET 200MP (load current supply and grounding concept) with infeed from a TN-S system.

 Main switch  Short-circuit and overload protection on the primary side  Short-circuit and overload protection on the secondary side  The load current supply (galvanic isolation)
Figure 6-1 Operating the S7-1500/ET 200MP with grounded reference potential

Automation system System Manual, 11/2019, A5E03461182-AF

137

Wiring 6.4 Electrical configuration

6.4

Electrical configuration

Galvanic isolation
With the S7-1500 automation system/ET 200MP distributed I/O system, there is galvanic isolation between:  The primary side of the system power supply (PS) and all other circuit components  The (PROFIBUS/PROFINET) communication interfaces of the CPU/interface module and
all other circuit components  The load circuits/process electronics and all other circuit parts of the S7-1500/ET 200MP
components High-frequency interference currents are conducted and electrostatic charges are avoided through integrated RC combinations or integrated capacitors.
S7-1500 potential relationships
The following figure shows a simplified representation of the potential relationships of the S7-1500 automation system.

Figure 6-2 Potential relationships for S7-1500 using CPU 1516-3 PN/DP as an example

138

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.4 Electrical configuration Potential relationships ET 200MP on PROFINET IO The following figure shows a simplified representation of the potential relationships of the ET 200MP distributed I/O system on PROFINET IO.
Figure 6-3 Potential relationships for ET 200MP using an IM 155-5 PN HF interface module as an example

Automation system System Manual, 11/2019, A5E03461182-AF

139

Wiring 6.4 Electrical configuration Potential relationships ET 200MP on PROFIBUS DP
The following figure shows a simplified representation of the potential relationships of the ET 200MP distributed I/O system on PROFIBUS DP.
Figure 6-4 Potential relationships for ET 200MP using an IM 155-5 DP ST interface module as an example

140

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.5 Wiring rules

6.5

Wiring rules

Introduction

Use suitable cables for connecting the S7-1500 automation system/ET 200MP distributed I/O system. The following tables present the wiring rules for the CPU, interface module, system power supply, load current supply, front connector and power supply elements.

CPU, interface module, system power supply and load current supply

Table 6- 2 Wiring rules for CPU, interface module, system power supply and load current supply

Wiring rules for ...

CPU/interface module

Permitted cable cross-sections of solid cables (Cu) -

-

Permitted cable crosssections of flexible cables (Cu)

Without wire end sleeve
With end sleeve

0.25 to 2.5 mm2 AWG*: 24 to 14 0.25 to 1.5 mm2

AWG*: 24 to 16

Number of wires per connection

1

Stripped length of the wires

10 to 11 mm

End sleeves according to DIN 46228

without plastic sleeve Design A, 10 mm long
with plastic sleeve 0.25 Design E, 10 mm long to 1.5 mm2

Sheath diameter

-

Tool

3 to 3.5 mm screwdriver, conic

design

Connection system

Push-in terminal

Tightening torque

-

* American Wire Gauge

System power and load current supply
0.5 to 2.5 mm2 AWG*: 20 to 14 0.5 to 1.5 mm2 AWG*: 20 to 16 1 7 to 8 mm Design A, 7 mm long Design A, 7 mm long
8.5 mm 3 to 3.5 mm screwdriver, conic design Screw terminal from 0.5 Nm to 0.6 Nm

Automation system System Manual, 11/2019, A5E03461182-AF

141

Wiring 6.5 Wiring rules

Front connectors

Table 6- 3 Wiring rules for front connector

Wiring rules for ...

40-pin front connector 40-pin front connector 40-pin front connector

(screw terminal, for 35 mm module)

(push-in terminal, for 35 mm module)

(push-in terminal, for 25 mm module)

Permitted cable cross-sections of solid cables (Cu) up to 0.25 mm²

up to 0.25 mm²

up to 0.25 mm²

AWG*: up to 24

AWG*: up to 24

AWG*: up to 24

Permitted cable cross-

Without wire end

sections of flexible cables sleeve

(Cu)

0.25 to 1.5 mm2 AWG*: 24 to 16

0.25 to 1.5 mm2 AWG*: 24 to 16

0.25 to 1.5 mm2 (max. 40 x 0.75 mm2) AWG*: 24 to 16 mm2

(max. 40 x 0.75 mm2)

With end sleeve

0.25 to 1.5 mm2

0.25 to 1.5 mm2

0.25 to 1.5 mm2

(max. 32 x 0.75 mm²; 8 x 1.5 mm²)

AWG*: 24 to 16

AWG*: 24 to 16

AWG*: 24 to 16

(max. 32 x AWG 19; 8 x AWG 16)

Number of wires per connection

1 or combination of 2 wires up to 1.5 mm2 (total) in the same end sleeve

1 or combination of 2 wires up to 1.5 mm2 (total) in the same end sleeve

1 or combination of 2 wires up to 1.5 mm2 (total) in the same end sleeve

Stripped length of the wires

8 mm up to max. 0.75 mm2(corresponding
to length of end sleeve**: 8 mm)

8 to 11 mm (corresponding to length of end sleeve**: 8 mm, 10 mm)

8 to 11 mm (corresponding to length of end sleeve**: 8 mm, 10 mm)

10 to 12 mm for all cross-sections (corresponding to length of end sleeve**: 10 mm, 12 mm)

End sleeves according to without plastic sleeve DIN 46228

Design A:

Design A: 8 mm

8 mm long up to max. and10 mm long

0.75 mm2,

Design A: 8 mm and10 mm long

10 mm and 12 mm long for all crosssections

with plastic sleeve 0.25 Design E

Design E 8 mm

to 1.5 mm2

8 mm long up to max. and10 mm long

0.75 mm2,

Design E 8 mm and10 mm long

10 mm and 12 mm long for all crosssections

Sheath diameter

-

-

-

Tool

3 to 3.5 mm screw- 3 to 3.5 mm screw- 3 to 3.5 mm screw-

driver, conic design driver, conic design driver, conic design

Connection system

Screw terminal

Push-in terminal

Push-in terminal

142

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.5 Wiring rules

Wiring rules for ...
Tightening torque (screw terminal) Max. actuating force for complete opening of the push-in terminal Recommended crimp shape for end sleeve

40-pin front connector 40-pin front connector 40-pin front connector

(screw terminal, for 35 mm module)

(push-in terminal, for 35 mm module)

(push-in terminal, for 25 mm module)

from 0.4 Nm to 0.7 -

-

Nm

-

40 N

40 N

-

Corresponding to

Corresponding to

crimping tool PZ 6/5 crimping tool PZ 6/5

* American Wire Gauge ** End sleeve

Automation system System Manual, 11/2019, A5E03461182-AF

143

Wiring 6.5 Wiring rules

Power supply elements

Table 6- 4 Wiring rules for power supply elements (component of shield set)

Wiring rules for ...

Permitted cable cross-sections of solid cables (Cu)

Permitted cable cross-sections of flexible cables (Cu)

Without wire end sleeve With end sleeve

Number of wires per connection

Stripped length of the wires

End sleeves according to DIN 46228

without plastic sleeve

with plastic sleeve 0.25 to 1.5 mm2

Sheath diameter Tool
Connection system Tightening torque (screw terminal) Max. actuating force for complete opening of the push-in terminal

Power supply element
(screw terminal, for 35 mm module)
-
-
0.25 to 1.5 mm2
AWG*: 24 to 16
0.25 to 1.5 mm2
AWG*: 24 to 16
1 or combination of 2 wires up to 1.5 mm2 (total) in the same end sleeve
8 mm up to max. 0.75 mm2(corresponding to length of end sleeve**: 8 mm)
10 to 12 mm for all crosssections (corresponding to length of end sleeve**: 10 mm, 12 mm)
Design A:
8 mm long up to max. 0.75 mm2,
10 mm and 12 mm long for all cross-sections
Design E
8 mm long up to max. 0.75 mm2,
10 mm and 12 mm long for all cross-sections
-
3 to 3.5 mm screwdriver, conic design
Screw terminal
From 0.4 Nm to 0.7 Nm

Power supply element (push-in terminal, for 25 mm module)
0.25 to 1.5 mm2 AWG*: 24 to 16 0.25 to 1.5 mm2 AWG*: 24 to 16 1 or combination of 2 wires up to 1.5 mm2 (total) in the same end sleeve 8 to 11 mm (corresponding to length of end sleeve**: 8 mm, 10 mm)
Design A: 8 mm and10 mm long
Design E 8 mm and10 mm long
3 to 3.5 mm screwdriver, conic design Push-in terminal -

-

40 N

144

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring rules for ... Recommended crimp shape for end sleeve

Wiring 6.5 Wiring rules

Power supply element (screw terminal,
for 35 mm module) -

Power supply element
(push-in terminal, for 25 mm module)
Corresponding to crimping tool PZ 6/5

* American Wire Gauge ** End sleeve
Permissible cable temperature
Note Permissible cable temperatures You must select sufficiently large wire cross-sections to ensure that the permissible cable temperatures are not exceeded at the maximum ambient temperature of the S7-1500/ET 200MP distributed I/O system. Example of signal lines (analog modules, DI/DO modules): At an ambient temperature of 30° C, a current of, for example, 0.5 A per wire and a cross-section of 0.75 mm² Cu, a connecting conductor must be rated for a temperature range of at least 55° C. Example of relay module, power supply: At an ambient temperature of 40° C, a current of, for example, 4 A per wire and a cross-section of 1.5 mm² Cu, a connecting conductor must be rated for a temperature range of at least 70° C.

Automation system System Manual, 11/2019, A5E03461182-AF

145

Wiring 6.6 Connecting the supply voltage

6.6

Connecting the supply voltage

Introduction

The supply voltage of the CPU/interface module is supplied by means of a 4-pole connection plug, which is located on the front or below on the CPU / interface module.

Connection for supply voltage (X80)
The connections of the 4-pole connector have the following meaning:

 + 24 V DC of the supply voltage  Mass of the supply voltage  Mass of the supply voltage for looping (current limited to 10 A)  + 24 V DC of the supply voltage for looping (current limited to 10 A)  Spring opener (one spring opener per terminal)
Figure 6-5 Connection for supply voltage
The maximum connector cross-section is 1.5 mm2. The cable connector offers you the option of looping the supply voltage uninterrupted, even when it is unplugged.

Requirements

 Only wire the cable connector when the supply voltage is turned off.  Observe the Wiring rules (Page 141).

Tools required
3 to 3.5 mm screwdriver

Tool-free connection of cables: multi-wire (stranded), with end sleeve or ultrasonic compressed
To connect a wire without tools, follow these steps: 1. Strip 8 to 11 mm of the wires. 2. Seal or crimp the wire with end sleeves. 3. Insert the wire into the push-in terminal as far as it will go. 4. Push the wired connector into the socket of the CPU/interface module.

146

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.7 Connecting system power supply and load current supply
Connection of wires: multi-wire (stranded), without end sleeve, unprocessed
To connect a wire without end sleeve, follow these steps: 1. Strip 8 to 11 mm of the wires. 2. Using a screwdriver, press the spring release and insert the wire into the push-in terminal
as far as it will go. 3. Pull the screwdriver out of the spring release. 4. Push the wired connector into the socket of the CPU/interface module.
Loosening a wire
Push with the screwdriver as far as it will go into the spring release. Remove the wire from the push-in terminal.
Uninstalling the connection plug
To uninstall the connection plug, you need a screwdriver. With the screwdriver, pry the connection plug out of the CPU/interface module.

6.7

Connecting system power supply and load current supply

Introduction

In the delivery condition of the system power supplies/load current supplies, power connectors are inserted. The modules and the associated power connectors are coded. There are two parts to the coding element. One coding element is located in the module, and the other in the power connector. The system power supplies/load current supplies use identical power connectors for the voltage connection.
The coding element prevents the insertion of a power connector into a different type of system power supply/load current supply.

Tools required
3 to 3.5 mm screwdriver

Automation system System Manual, 11/2019, A5E03461182-AF

147

Wiring 6.7 Connecting system power supply and load current supply
Connecting the supply voltage to a system power supply/load current supply
Watch video sequence (https://support.industry.siemens.com/cs/media/67462859_connecting_supply_web_en/start. htm) To connect the supply voltage, follow these steps: 1. Swing the front cover of the module up until the front cover latches. 2. Press down the unlocking button of the power cable connector (Figure 1). Remove the
power cable connector from the front of the module. 3. Loosen the screw on the front of the connector. This loosens the housing latch and the
cable relief. With a tightened screw the connector's cover can't be removed (Figure 2). 4. Pry off the connector cover using a suitable tool (Figure 3).
Figure 6-6 Connecting the supply voltage to a system power supply/load current supply (1) 5. Strip the cable jacket to a length of 35 mm and the conductors to a length of 7 to 8 mm.
Attach the end sleeves. 6. Connect the wires in the connector according to the connection diagram (Figure 4). 7. Close the cover (Figure 5). 8. Retighten the screw (Figure 6). This effects a strain relief on the lines.

Figure 6-7 Connecting the supply voltage to a system power supply/load current supply (2) 9. Insert the power connector into the module, until the latch engages.

148

Automation system System Manual, 11/2019, A5E03461182-AF

Reference

Wiring 6.8 Connecting the CPU/interface module to the load current supply
You can find more information on connecting the 24 V DC output voltage of the load power supply (PM) in the manuals for the relevant modules.

6.8

Connecting the CPU/interface module to the load current supply

Introduction

The load current supply is equipped with a plug-in 24 V DC output terminal (behind the front cover at the bottom). You connect the wires for the supply voltage of the CPU/interface module to this terminal.

Requirements

 Only wire the connection plug when the supply voltage is turned off.
 The connection plug for connecting the supply voltage to the CPU/interface module is already mounted.
You can find additional information in the section Connecting the supply voltage (Page 146).

Tools required
3 to 3.5 mm screwdriver

Automation system System Manual, 11/2019, A5E03461182-AF

149

Wiring 6.8 Connecting the CPU/interface module to the load current supply
Connecting the CPU/interface module to a load current supply
Watch video sequence (https://support.industry.siemens.com/cs/media/78027451_S7_1500_gs_wire_web_en/start.h tm) To connect the supply voltage, follow these steps: 1. Open the front cover of the load power supply. Pull the 24 V DC output terminal
downwards. 2. Connect the 24 V DC output terminal to the wires of the 4-pole connection plug of the
CPU/interface module.

3. Connecting the load current supply to the CPU/interface module.

Note Connection on the underside of the device
The connection socket for the 4-pole connection plug is located on the underside of the device for the following CPUs/interface modules: · Standard, F-CPUs/compact CPUs from order number 6ES751x-xxx02-
0AB0/6ES751x-1CK01-0AB0 · Interface modules IM 155-5 PN BA as of order number 6ES7155-5AA00-0AA0 and
IM 155-5 PN ST as of order number 6ES7155-5AA01-0AB0
Additional information can be found in the associated manuals for the CPUs/interface modules.

150

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.9 Connecting interfaces for communication

6.9

Connecting interfaces for communication

Connecting interfaces for communication
Connect the communication interfaces of the CPU/interface module using standardized plug connectors. Use prefabricated connecting cables for the connection. If you want to prepare communication cables yourself, the interface assignment is specified in the manuals of the corresponding modules. Observe the mounting instructions for the connectors.
Special consideration: Unlock connectors Industrial Ethernet FastConnect RJ45 plug 180 2x 2 or Industrial Ethernet FastConnect RJ45 plug 180 4x 2 and disconnect from PROFINET interface of CPU/IM
Tools required  Industrial Ethernet FastConnect RJ45 Plug 180 2x 2 (6K1901-1BB10-2Ax0): 2.5 mm
screwdriver  Industrial Ethernet FastConnect RJ45 Plug 180 4x 2 (6GK1901-1BB12-2Ax0): 3.0 mm
screwdriver Procedure 1. Press the screwdriver parallel to the connector into the unlocking. 2. Disconnect the connector from the PROFINET interface.
Note Do not unlock the connector under tension!

Figure 6-8 Unlocking the FastConnect connector

Automation system System Manual, 11/2019, A5E03461182-AF

151

Wiring 6.10 Front connector for the I/O modules

6.10

Front connector for the I/O modules

Introduction

The sensors and actuators of your plant are connected to the automation system by means of front connectors. Wire the sensors and actuators to the front connector. Plug the front connector with the wired sensors and actuators onto the I/O module.
You can wire the front connector as follows:
 In the "pre-wiring position", which allows a convenient wiring
 Completely, before you insert it into the I/O module.
You can remove the front connector easily from the I/O module with the wiring attached. This means it is not necessary to loosen the wiring when you replace the module.

Device versions of the front connector

 Front connector 35 mm with screw terminals  Front connector 25 mm with push-in terminals  Front connector 35 mm with push-in terminals
Figure 6-9 Device versions of the front connector

152

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules

Properties of the front connectors
The three different front connectors are characterized as follows:
 40 clamping points each
 Connection system: Screw terminal (for 35 mm modules only) or push-in terminal
 Module width: 35 mm or 25 mm
 If you want to supply load groups with the same potential (non-isolated), use the potential bridges supplied for the front connector (with 35 mm width) for digital I/O modules. The bridges are used to connect the terminals 9 and 29, 10 and 30, 19 and 39 as well as 20 and 40 facing each other. Advantage: Reduction of the wiring effort.
Note Use of potential bridges
The use of potential bridges depends on the relevant module used.
It is not permitted to use potential bridges for 230 V modules. Use the potential bridges only with a maximum supply voltage of 24 V DC. The current capacity per potential bridge is 8 A maximum.
Because of the different assignment, you may not use the potential bridges with analog I/O modules.
The front connectors for 25 mm modules have no potential bridges.
Observe the instructions and wiring rules in the product manual of the respective I/O module when using potential bridges.
 In the delivery state a coding element is located in the module. When the front connector is first inserted into the I/O module, a part of the coding element clips onto the front connector. When the front connector is removed from the I/O module, one part of the coding element remains in the front connector, and the other part remains in the I/O module. The insertion of a front connector that is not suited to the module is thereby mechanically prevented. This ensures, for example, that the front connector with the coding element for a digital module cannot be inserted into an analog module.

Properties of the front connectors on fail-safe modules
In as-delivered condition, a fail-safe module not only has a mechanical coding element but also an electronic coding element. The electronic coding key is a rewritable memory for the PROFIsafe address. When the front connector is inserted in the F-module, the electronic coding element engages completely in the front connector. If you remove the front connector from the F-module, the memory with the PROFIsafe address of the fail-safe module remains in the front connector (see section Replacing a front connector (Page 283)).

Reference

You can find additional information on the coding element in the section Coding element on the I/O module and on the front connector (Page 278).
Additional information on the use of the potential bridges can be found in the product manual for the respective I/O module.

Automation system System Manual, 11/2019, A5E03461182-AF

153

Wiring 6.10 Front connector for the I/O modules

6.10.1

Wiring front connectors for I/O modules without shield contact element

Requirements

 The I/O modules are installed on the mounting rail.
 The supply voltages are turned off.
 The cables are prepared according to the clamping technology used; take the Wiring rules (Page 141) into account for this purpose.

Tools required

 Stripping tool  3 to 3.5 mm screwdriver

Preparing and wiring front connectors for I/O modules without shield contact element
Proceed as follows to wire the front connector:
1. Shut down the load current supply.
2. Place the included cable strain relief (cable tie) for the cable harness into the front connector (Figure 1).
3. Swing the front cover of the wired I/O module up until the front cover latches (Figure 2). Watch video sequence (https://support.industry.siemens.com/cs/media/67462859_wiring_front_web_en/start.htm)

154

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules
4. Bring the front connector into the pre-wiring position. To do this, hook the front connector into the bottom of the I/O module and swivel the front connector upward until the front connector latches (Figure 3). Result: In this position, the front connector still protrudes from the I/O module (Figure 4). However, front connector and I/O module are not yet electrically connected. By means of the pre-wiring position, you can easily wire the front connector.

Figure 6-10 Wiring front connectors for I/O modules without shield contact element
5. Begin to completely wire the front connector. 6. Put the strain relief around the cable harness, and pull the strain relief for the cable
harness tight.

Automation system System Manual, 11/2019, A5E03461182-AF

155

Wiring 6.10 Front connector for the I/O modules

Use of the potential bridges on 35 mm digital modules
With the delivered potential bridges, for digital modules with a maximum rated voltage of 24 V DC, you can bridge the terminals for the voltage supply and thus reduce the wiring effort. The bridges are used to connect the following pairs of opposing terminals: 9 and 29, 10 and 30, 19 and 39 as well as 20 and 40.

Reference

Additional information on wiring the inputs and outputs can be found in the manuals for the I/O modules.

6.10.2

Wiring front connectors for I/O modules with shield contact element

Requirements

 The I/O modules are installed on the mounting rail.
 The supply voltages are turned off.
 The wires are prepared according to the clamping technology used. To do this, follow the Wiring rules (Page 141).

Tools required

 Stripping tool  3 to 3.5 mm screwdriver  Flat pliers

156

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules

Details view

The shielding bracket, the power supply element, and the shielding clamp are included in the scope of delivery for the analog and technology modules.
The following figure shows the details view of a front connector with shield connection element:

 Shield clamp  Cable sheathing removed (approx. 20
mm)
 Strain relief (cable tie)  Signal cables  Front connectors

 Power supply element  Shielding bracket
 Supply lines + Shield contact

Figure 6-11 Details view for front connectors with shield connection elements

Automation system System Manual, 11/2019, A5E03461182-AF

157

Wiring 6.10 Front connector for the I/O modules
Preparing front connectors for I/O modules with shield contact element
Watch video sequence (https://support.industry.siemens.com/cs/media/67462859_wiring_shield_web_en/start.htm) To prepare the front connector for wiring, follow these steps: 1. Remove the connection separator from the lower part of the connector (Figure 1). 2. Insert the power supply element (Figure 2). 3. Insert the shielding bracket from below into the guiding groove of the front connector until
the shielding bracket latches into place (Figure 3). 4. Place the included cable strain relief (cable tie) for the cable harness into the front
connector (Figure 4).

Figure 6-12 Preparing front connectors for I/O modules with shield contact element (1) 5. Swing the front cover up until the front cover latches (Figure 5).

158

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules
6. Bring the front connector into the pre-wiring position. To do this, hook the front connector into the bottom of the I/O module and swivel it upwards until the front connector latches (Figure 6). Result: In this position, the front connector still protrudes from the I/O module (Figure 7). However, front connector and I/O module are not yet electrically connected.

Figure 6-13 Preparing front connectors for I/O modules with shield contact element (2)

Automation system System Manual, 11/2019, A5E03461182-AF

159

Wiring 6.10 Front connector for the I/O modules
7. Wire the power supply element (Figure 8). Terminals 41/42 and 43/44 are galvanically connected to each other. If you connect the supply voltage to 41 (L+) and 44 (M), you can then loop-through the potential to the next module (max. 8 A) with terminals 42 (L+) and 43 (M).
Figure 6-14 Preparing front connectors for I/O modules with shield connection element (3)
Wiring front connectors for I/O modules with shield contact element
To wire a front connector, follow these steps: 1. Strip the cable shielding. 2. Begin to completely wire the front connector (Figure 1).

Figure 6-15 Wiring front connectors for I/O modules with shield connection element (1)

160

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules 3. Put the strain relief (cable tie) around the cable harness, and pull the strain relief for the cable harness tight (Figure 2).
Figure 6-16 Wiring front connectors for I/O modules with shield connection element (2) 4. Insert the shield clamp from below into the shielding bracket in order to connect the cable
shielding (Figure 3).

Figure 6-17 Wiring front connectors for I/O modules with shield connection element (3)

Automation system System Manual, 11/2019, A5E03461182-AF

161

Wiring 6.10 Front connector for the I/O modules
Functions of the shield contact
The shield contact:  Is needed to apply cable shields (e.g., for analog modules)  Interference currents on cable shields are diverted from the shield connection to ground
via the mounting rail. The shielding connection is not required at cable entry into the switchboard.  The shield support has a cable storage area of 18 mm x 15 mm.

Reference

Figure 6-18 Shield clamp
Additional information on wiring the inputs and outputs can be found in the manuals for the I/O modules.

162

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.10 Front connector for the I/O modules

6.10.3

Bringing the front connector into final position

Bring the front connector from the pre-wiring position into final position
Proceed as follows to bring the front connector from the pre-wiring position into final position: 1. Grip the front connector by the unlocking strap. 2. Pull on the strap until the front connector is released from its latched position. 3. Tilt the top section of the front connector and raise it slightly. The front connector slides
over the guide channel into its final position.

Figure 6-19 Bring the front connector from the pre-wiring position into final position
4. Push the front connector back into the I/O module until it latches. The front connector is now electrically connected with the I/O module.
5. Swivel the front cover down into place. Various latch positions are possible depending on the space requirement of the cable harness so that the required cable storage space can grow as needed.

Automation system System Manual, 11/2019, A5E03461182-AF

163

Wiring 6.11 Marking the I/O modules
Bringing the front connector directly into final position
Proceed as follows to bring the front connector directly into final position: 1. Grip the front connector by the unlocking strap. 2. Push the guide pin of the front connector into the guide channel that has been displaced
downwards. The front connector slides over the guide channel into its final position.

Figure 6-20 Bringing the front connector directly into final position
3. Tilt the front connector and press it into the I/O module until it latches. The front connector is now electrically connected with the I/O module.
4. Swivel the front cover down into place. Various latch positions are possible depending on the space requirement of the cable harness so that the required cable storage space can grow as needed.

6.11

Marking the I/O modules

6.11.1

Labeling strips

Introduction

Mark the pin assignment of the I/O modules using labeling strips. You can label the labeling strips as desired and slide them into the outside of the front cover.
The labeling strips are available in the following models:
 Pre-prepared strips that are included with the I/O module as delivered.
 DIN A4 sheets, pre-perforated strips for machine printing; see section Accessories/spare parts (Page 336)

164

Automation system System Manual, 11/2019, A5E03461182-AF

Wiring 6.11 Marking the I/O modules Preparing and installing the labeling strip Proceed as follows to prepare and install the labeling strips: 1. Label the labeling strip. You can print labeling strips for the modules in your project with STEP 7. The labeling strips are exported to Microsoft Word DOCX files and printed from the text editing program. You can find more information in the online help. 2. With a pre-perforated strip: Separate the labeling strip from the sheet. 3. Slide the labeling strip into the outside of the front cover.
 Labeling strips
Figure 6-21 Marking with labeling strips

Automation system System Manual, 11/2019, A5E03461182-AF

165

Wiring 6.11 Marking the I/O modules

6.11.2

Optional marking

Introduction

The I/O modules have a free area on the front cover. You can label or mark the free area yourself.

Optional marking
The front cover provides about 30 mm x 10 mm of space in its lower part for an optional identifier label.

 Free space, for example for equipment identifiers
Figure 6-22 Optional marking

166

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring

7

Introduction

By configuring the individual hardware components, assigning their parameters, and connecting them, you communicate to the S7-1500 automation system/ET 200MP distributed I/O system its preset configuration and operating principle. You perform the work needed for this in the device and network views in STEP 7.
"Configuring" is understood to mean the arranging, setup and networking of devices and modules within the device view or network view of STEP 7. STEP 7 graphically represents modules and racks. Just like "real" module racks, the device view allows the insertion of a defined number of modules.
When the modules are inserted, STEP 7 automatically assigns the addresses and a unique hardware identifier (HW identifier). You can change the addresses later. The HW identifiers cannot be changed.
At startup, the system components compare the configured preset configuration with the actual configuration of the system. By means of parameter assignment, you can specify the response of the CPU to errors in the hardware configuration.
"Assigning parameters" is understood to mean setting the properties of the components used (CPU, modules).
STEP 7 compiles the hardware configuration (the result of "configuring" and "assigning parameters") and downloads it to the CPU. The CPU then connects to the configured components and transfers their configuration and parameters. Modules can be replaced very easily because when a new module is inserted, STEP 7 transfers its configuration and parameters again.

Automation system System Manual, 11/2019, A5E03461182-AF

167

Configuring 7.1 Configuring the CPU

7.1

Configuring the CPU

Requirements for configuration of the CPU

Configuration software STEP 7 V12.0 or higher 1)

Installation information STEP 7 online help

1) The following CPUs can be configured only in V12 or higher: CPU 1511-1 PN, CPU 1513-1 PN, CPU 1516-3 PN/DP. Note that all other CPUs can be configured only starting from a later version (e.g. V12 SP1). Refer to the equipment manual for the CPU to find out whether the version of the CPU you are using is configurable in STEP 7.

Reference

 If you want to configure new CPUs whose article numbers are not yet included in the hardware catalog of STEP 7, please refer to the following FAQ in the Internet (https://support.industry.siemens.com/cs/ww/en/view/109760846).
 You can find an overview of the most important documents and links to STEP 7 in the following FAQ on the Internet (https://support.industry.siemens.com/cs/de/de/view/65601780/en).

168

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU

7.1.1

Reading out the configuration

Introduction

When there is a connection to an existing CPU that is being installed, you can load the configuration of this CPU, including centrally present modules, from the device into your project using the "Hardware detection" function. You do not need to manually configure the CPU and the centrally present modules, as the physical configuration is read out automatically.
If you have already configured a CPU and the centrally present modules and you want to load the current configuration and parameters in a new project, it is advisable to use the "Upload device as new station" function. For additional information about this function, refer to section Backing up and restoring the CPU configuration (Page 249).

Procedure for reading out an existing configuration
1. Create a new project and configure an "Unspecified CPU 1500".

Figure 7-1 Unspecified S7-1500 CPU in the device view
Note To open the "Hardware detection for PLC_x" dialog, click the "Detect" link. An example can be found in the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/de/view/41885693/en). An alternative procedure is described in step 2 and step 3.

Automation system System Manual, 11/2019, A5E03461182-AF

169

Configuring 7.1 Configuring the CPU
2. In the device view (or network view), select the "Hardware detection" command in the "Online" menu.
Figure 7-2 Hardware detection in the Online menu STEP 7 opens the "Hardware detection for PLC_x" dialog box.

170

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU
3. In the "Hardware detection for PLC_x" dialog, click "Refresh". Then, select the CPU and click "Detect".

Figure 7-3 Hardware detection dialog box

Automation system System Manual, 11/2019, A5E03461182-AF

171

Configuring 7.1 Configuring the CPU Result of the hardware detection
STEP 7 has read out the hardware configuration and the modules and transferred them to your project. STEP 7 assigns a valid default parameter assignments for all modules. You can change the parameter assignment subsequently.
Figure 7-4 Result of the hardware detection in the device view
Note If you want to go online after the hardware detection, you have to first download the detected configuration to the CPU; otherwise, an error may occur due to inconsistent configurations. You can find an example of downloading a project to the CPU with STEP 7 in the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/de/view/42637263/en).

172

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU

Properties of the CPUs
The properties of the CPUs have special significance for system behavior. For a CPU you can make the following settings in STEP 7, for example:
 Startup characteristics
 Parameter assignment of the interfaces, for example, IP address, subnet mask
 Web server, e.g., activation, user administration, and languages
 OPC UA server
 Global Security Certificate Manager
 Cycle times, e.g., maximum cycle time
 Properties for the operation of the display
 System and clock memory
 Protection level for access protection with assigned password parameter
 Time and day settings (daylight saving/standard). For additional information, refer to the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/de/view/43566349/en).
The properties that can be set and the corresponding value ranges are specified by STEP 7. Fields that cannot be edited are grayed out.

Reference

Information about the individual settings can be found in the STEP 7 online help and in the manuals of the relevant CPUs.

Automation system System Manual, 11/2019, A5E03461182-AF

173

Configuring 7.1 Configuring the CPU

7.1.2

Address assignment

7.1.2.1

Addressing - overview

Introduction

In order to address the automation components or modules, they must have unique addresses. The following section explains the various address areas.

I/O address

I/O addresses (input/output addresses) are required in the user program to read inputs and set outputs.
STEP 7 automatically assigns input and output addresses when modules are configured. Each module uses a continuous range of input and/or output addresses corresponding to its volume of input and output data.

Figure 7-5 Example with input / output addresses from STEP 7
STEP 7 assigns the address areas of the modules by default to the process image partition 0 ("Automatic updating"). This process image partition is updated in the main cycle of the CPU.
Device address (e.g., Ethernet address)
Device addresses are addresses of modules with interfaces to a subnet (e.g., IP address or PROFIBUS address). They are required to address the various devices on a subnet, for example, to download a user program.

174

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU Hardware identifier STEP 7 automatically assigns a hardware identifier (HW identifier) for identification and addressing of modules and submodules. The HW identifier is used, for example, for diagnostics alarms or for instructions, to identify the faulty module or the addressed module.
Figure 7-6 Example of a Hardware identifier from STEP 7 The "System constants" tab contains all hardware identifiers and their symbolic names (of HW identifier) for the selected module. The HW identifiers and names of all modules of a device are also available in the default tag table on the "System constants" tab.
Figure 7-7 Example of a default tag table from STEP 7

Automation system System Manual, 11/2019, A5E03461182-AF

175

Configuring 7.1 Configuring the CPU

7.1.2.2

Addressing digital modules

Introduction

The following section describes the addressing of the digital modules. In your user program, you require the addresses of the channels of the digital module.

Digital module addresses
The address of a digital module's input or output is composed of the byte address and the bit address. The channels of the digital module are assigned bit addresses.
Example: I 1.2
The example consists of:

I Input

-

1 Byte address The byte address depends on the module start address

2 Bit address You read the bit address from the module

When you insert a digital module into a free slot, STEP 7 assigns a default address. You can change the proposed default address in STEP 7.

176

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU
Example for the assignment of channel addresses (digital module)
The following figure shows how the addresses of the individual channels of the digital input module are determined.

Figure 7-8 Example for the assignment of channel addresses (digital module)
Note You can assign symbolic names to the addresses at the following locations in STEP 7: · PLC tag table · Properties of the module in the "IO Tags" tab.

Automation system System Manual, 11/2019, A5E03461182-AF

177

Configuring 7.1 Configuring the CPU

Value status

The value status is additional binary information of a digital input or output signal. It is entered simultaneously with the process signal in the process image input and provides information about the validity of the input or output signal.
If you enable the value status for a digital module, then additional bytes are allocated in the input address area. Each bit in the value status is assigned to a channel and provides information about the validity of the process value. You can find the assignment in the product manual for the respective I/O module.
The value status is influenced by all diagnostics that might falsify the process value, e.g. wire break, short-circuit.
 1B: A valid process value is being output or read for the channel.
 0B: A substitute value is being output for the channel, or the channel is deactivated, faulty or inaccessible.
You can find additional information on evaluation and processing of the value status for failsafe digital modules in the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Reference

Additional information on addressing and address allocation with value status can be found in the manuals of the digital modules, and in the online help for STEP 7. An example of the evaluation of the value status in the user program is available in the function manual Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926).

7.1.2.3

Addressing analog modules

Introduction

The following section describes the addressing of the analog modules. In your user program, you require the addresses of the channels of the analog module.

Analog module addresses
The address of an analog channel is always a word address. The channel address depends on the module start address. STEP 7 automatically assigns the channel addresses during configuration. Based on the module start addresses, STEP 7 assigns the channel addresses in increasing sequence (in the following figure, the module start address is 256).
When you insert an analog module into a free slot, STEP 7 assigns a default address. You can change the assigned default address in STEP 7.

178

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU
Example for the assignment of channel addresses (analog module)
The following figure shows how the addresses of the individual channels of an analog input module are determined when the module has the start address 256.

Figure 7-9 Example for the assignment of channel addresses (analog module)
Note You can assign symbolic names to the addresses at the following locations in STEP 7: · PLC tag table · Properties of the module in the "IO Tags" tab.

Automation system System Manual, 11/2019, A5E03461182-AF

179

Configuring 7.1 Configuring the CPU

Value status

The value status is additional binary information of an analog input or output value. It is entered simultaneously with the process value in the process image input and provides information about the validity of the analog value.
If you enable the value status for an analog module, then additional bytes are allocated in the input address area. Each bit in the value status is assigned to a channel and provides information about the validity of the process value. You can find the assignment in the product manual for the respective I/O module.
The value status is influenced by all diagnostics that might falsify the process value, e.g. wire break, short-circuit.
 1B: A valid process value is being output or read for the channel.
 0B: A substitute value is being output for the channel, or the channel is deactivated, faulty or inaccessible.

Reference

Additional information on addressing and address allocation with value status can be found in the manuals of the analog modules, and in the online help for STEP 7. A detailed description of the value status for analog modules is available in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094). An example of the evaluation of the value status in the user program is available in the function manual Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926).

7.1.3

Process images and process image partitions

7.1.3.1

Process image - overview

Process image of the inputs and outputs
The process image of the inputs and outputs is an image of the signal states. The CPU transfers the values from the input and output modules to the process image in this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then transfers the signal states of the input modules to the process image inputs.

Advantages of the process image
A process image accesses a consistent image of the process signals during cyclic program execution. If a signal state at an input module changes during program processing, the signal state is retained in the process image. The CPU does not update the process image until the next cycle.

180

Automation system System Manual, 11/2019, A5E03461182-AF

Configuring 7.1 Configuring the CPU
Consistency of the process image
When the process image is updated, the S7-1500 accesses the data of each submodule as consistent data. The maximum data width that is accessed as consistent data for each submodule is dependent on the IO system. For PROFINET IO, for example, this data width is 1024 bytes.
32 process image partitions
By means of process image partitions, the CPU synchronizes the updated inputs/outputs of particular modules with defined user program sections. In the S7-1500 automation system, the overall process image is subdivided into up to 32 process image partitions (PIP). The CPU automatically updates PIP 0 (automatic update) in each program cycle and assigns it to OB 1. You can assign the process image partitions PIP 1 to PIP 31 to the other OBs during configuration of the input/output modules. The CPU always reads the process image partition of the inputs (PIPI) before processing the associated OB. The CPU outputs the process image of the outputs (PIPQ) at the end of the OB. The figure below illustrates the updating of a process image partition.
Figure 7-10 process image

Automation system System Manual, 11/2019, A5E03461182-AF

181

Configuring 7.1 Configuring the CPU

7.1.3.2

Update process image partitions in the user program

Requirements

Alternatively, you can also use the following instructions to update process images:
 Instruction "UPDAT_PI"
 Instruction "UPDAT_PO"
You will find the instructions in STEP 7 in the "Instructions" task card under "Extended instructions". The instructions can be called from any point in the program.
Requirements for updating process image partitions with the "UPDAT_PI" and "UPDAT_PO" instructions:
 The process image partitions must not be assigned to any OB. This means the process image partitions are not automatically updated.

Note Update of PPI 0
PIP 0 (automatic update) cannot be updated with the "UPDAT_PI" and "UPDAT_PO" instructions.

UPDAT_PI: Update process image partition of the inputs
With this instruction you read the signal states from the input modules into the process image partition of the inputs (PIPI).
UPDAT_PO: Update process image partition of the outputs
With this instruction you transmit the process image partition of the outputs to the output modules.
Isochronous mode interrupt OBs
In the isochronous mode interrupt OBs you use the instructions "SYNC_PI" and "SYNC_PO" to update the process image partitions. Additional information on isochronous mode interrupt OBs is available in the STEP 7 online help.
Direct I/O access to the inputs and outputs of the module
You also have direct read and write access to the I/O, as an alternative to access via the process image, should direct access be required for programming reasons. A direct (write) I/O access also writes the process image. This prevents the situation where a subsequent output of the process image overwrites the value written via direct access again.

182

Automation system System Manual, 11/2019, A5E03461182-AF

Reference

Configuring 7.2 Configuring ET 200MP distributed I/O system
Additional information on process image partitions is available found in the function manual, Cycle and response times (http://support.automation.siemens.com/WW/view/en/59193558).

7.2

Configuring ET 200MP distributed I/O system

Introduction

You configure and assign parameters to the ET 200MP (interface module and I/O modules) with STEP 7 or in the configuration software of another manufacturer.

Requirements

Table 7- 1 Requirements for installation

Configuration software STEP 7 as of V13 1)

Requirements
· IM 155-5 PN ST and IM 1555 DP ST: as of firmware version V2.0.0
· IM 155-5 PN HF: as of firmware version V1.0.0
· PROFINET: PROFINET GSD files
· PROFIBUS: PROFIBUS GSD files

STEP 7 V5.5 SP4 HF1 or higher · Software of another manufacturer
·

PROFINET: PROFINET GSD files
PROFIBUS: PROFIBUS GSD files

Installation information
· The TIA Portal supports the following GSDML specifications: ­ TIA Portal V11: V2.3 ­ TIA Portal V12SP1: V2.31 ­ TIA Portal V14: V2.32 ­ TIA Portal V15: V2.34
· The GSDML versions are largely downwards compatible.
· The ET 200MP is already delivered with a GSD file based on specification V2.3. The GSD file can be installed and used in the TIA Portal.
STEP 7 online help STEP 7 online help Manufacturer documentation

1) STEP 7 does not support all the PROFINET features contained in the GSDML specifications. Non-supported features cannot be used with GSD devices.

Reference

You can find an overview of the most important documents and links to STEP 7 in the following FAQ on the Internet (https://support.industry.siemens.com/cs/de/de/view/65601780/en).

Automation system System Manual, 11/2019, A5E03461182-AF

183

Configuring 7.3 Assigning PROFIsafe address to fail-safe modules with SIMATIC Safety

Configuring operation on PROFIBUS DP using a GSD file
If you want to configure the operation on the PROFIBUS DP with GSD file, you need to note the following additional requirements:

Table 7- 2 Requirements for PROFIBUS DP with GSD file

I/O modules
Input/output modules 35 mm Input/output modules 25 mm Technology modules (TM) Communications modules CM PtP

Required firmware version IM 155-5 DP ST as of ... V1.0.0 V2.0.0 V2.0.0 V1.0.0

Required firmware version I/O modules as of ... V2.0 V1.0 V1.1 V1.0.1

7.3

Assigning PROFIsafe address to fail-safe modules with SIMATIC

Safety

The PROFIsafe address is saved permanently on the electronic coding element of the S7-1500/ET 200MP fail-safe modules. You can find additional information on the electronic coding element in the section Replacing the coding element at the power connector of the system power supply and load current supply (Page 285).

Note
The supply voltage L+ must be applied to the F-module during the assignment of the PROFIsafe address (F-destination address together with F-source address).

For additional information on assigning the PROFIsafe address (F-destination address together with the F-source address), refer to the SIMATIC Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) programming and operating manual and the online help.

184

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution

8

8.1

Events and OBs

Triggers

The table below gives an overview of the possible event sources for start events and their OBs.

Table 8- 1 Triggers

Event sources
Startup 2) Cyclic program 2) Time-of-day interrupt 2) Time-delay interrupt 2) Cyclic interrupt 2)
Hardware interrupt 2) Status interrupt Update interrupt Manufacturer-specific or profile-specific interrupt Isochronous mode interrupt Time error 3) Maximum cycle time exceeded once Diagnostics interrupt Removal/insertion of modules Rack error MC servo 4) MC pre-servo 4)
MC post-servo 4)
MC interpolator 4) MC pre-interpolator 4)

Possible priorities (default priority) 1 1 2 to 24 (2) 2 to 24 (3) 2 to 24 (8 to 17, frequency dependent) 2 to 26 (16) 2 to 24 (4) 2 to 24 (4) 2 to 24 (4)
16 to 26 (21) 22
2 to 26 (5) 2 to 26 (6)
2 to 26 (6) 17 to 26 (26) corresponds to priority of the MC-Servo corresponds to priority of the MC-Servo 16 to 26 (24) corresponds to priority of the MC interpolator

Possible OB numbers 100,  123 1,  123 10 to 17,  123 20 to 23,  123 30 to 38,  123

Default system reaction 1) Ignore Ignore Not applicable Not applicable Not applicable

40 to 47,  123 55 56 57

Ignore Ignore Ignore Ignore

61 to 64,  123 80

Ignore Ignore STOP

82

Ignore

83

Ignore

86

Ignore

91

Not applicable

67

Not applicable

95

Not applicable

92

Not applicable

68

Not applicable

Number of OBs
0 to 100 0 to 100 0 to 20 0 to 20 0 to 20
0 to 50 0 or 1 0 or 1 0 or 1
0 to 2 0 or 1
0 or 1 0 or 1
0 or 1 0 or 1 0 or 1
0 or 1
0 or 1 0 or 1

Automation system System Manual, 11/2019, A5E03461182-AF

185

Basics of program execution 8.1 Events and OBs

Event sources
Programming error (only for global error handling) I/O access error (only for global error handling)

Possible priorities (default priority) 2 to 26 (7)
2 to 26 (7)

Possible OB numbers
121

Default system reaction 1)
STOP

122

Ignore

Number of OBs 0 or 1 0 or 1

1) If you have not configured the OB.
2) For these event sources, apart from the permanently assigned OB numbers (see column: possible OB numbers), you can also assign OB numbers from the range  123 in STEP 7.
3) If the maximum cycle time has been exceeded twice within a cycle, the CPU always switches to STOP regardless of whether you have configured OB80.
4) You will find more information on these event sources and the starting behavior in the S7-1500/S7-1500T Motion Control function manual.

Response to start events
The occurrence of a start event results in the following reaction:  If the event comes from an event source to which you have assigned an OB, this event
triggers the execution of the assigned OB. The event enters the queue according to its priority.  If the event comes from an event source to which you have not assigned an OB, the CPU executes the default system reaction.
Note Some event sources, such as startup, pull/plug, exist even if you do not configure them.

Assignment between event source and OBs
The type of OB determines where you assign OB to event source:
 For hardware interrupts and isochronous mode interrupts: The assignment is made during the configuration of the hardware or when the OB is created.
 For MC-servo, MC-PreServo, MC-PostServo, MC-Interpolator and MC-PreInterpolator: automatic assignment of OBs 91/92 by STEP 7 as soon as you add a technology object.
 For all other OB types: Assignment when the OB is created, where applicable after you have configured the event source.
For hardware interrupts, you can change an assignment which has already been made during runtime with the instructions ATTACH and DETACH. In this case, only the actually effective assignment changes, and not the configured assignment. The configured assignment takes effect after loading, and upon each startup.
The CPU ignores hardware interrupts to which you did not assign an OB in your configuration or which occur after the DETACH instruction. The CPU does not check whether an OB is assigned to this event when an event arrives, but only prior to the actual processing of the hardware interrupt.

186

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.1 Events and OBs
OB priority and runtime behavior
If you have assigned an OB to the event, the OB has the priority of the event. S7-1500 CPUs support the priority classes 1 (lowest) to 26 (highest). The following items are essential to the execution of an event:
 Call and execution of the assigned OB
 The update of the process image partition of the assigned OB
The user program processes the OBs exclusively on a priority basis. This means the program processes the OB with the highest priority first when multiple OB requests occur at the same time. If an event occurs that has a higher priority than the currently active OB, this OB is interrupted. The user program processes events of the same priority in order of occurrence.
Note Communication
The communication (e.g. test functions with the PG) always works with priority 15. To avoid unnecessarily prolonging the program runtime in the case of time-critical applications, make sure that these OBs are not interrupted by communication. Assign a priority > 15 for these OBs.

Programming style guide
The programming guidelines described in the programming style guide help you to create a uniform program code. You can better maintain and reuse the uniform program code. This allows you to detect or avoid errors early on, for example, through compilers.
The programming style guide is available on the Internet (https://support.industry.siemens.com/cs/de/en/view/109478084).

Reference

Additional information on organization blocks is available in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

187

Basics of program execution 8.2 Asynchronous instructions

8.2

Asynchronous instructions

Introduction

Program execution makes a distinction between synchronous and asynchronous instructions.
The "synchronous" and "asynchronous" properties relate to the temporal relationship between the call and execution of the instruction.
The following applies to synchronous instructions: When the call of a synchronous instruction is complete, execution of the instruction is also complete.
This is different in the case of asynchronous instructions: When the call of an asynchronous instruction is complete, execution of the asynchronous instruction is not necessarily complete yet. This means the execution of an asynchronous instruction can extend over multiple calls. The CPU processes asynchronous instructions in parallel with the cyclic user program. Asynchronous instructions generate jobs in the CPU for their processing.
Asynchronous instructions are usually instructions for transferring data, for example, data records for modules, communication data, diagnostics data.

188

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.2 Asynchronous instructions Difference between synchronous/asynchronous instructions The figure below shows the difference between the processing of an asynchronous instruction and a synchronous instruction. In this figure the CPU calls the asynchronous instruction five times before its execution is complete, e.g. a data record has been completely transferred. In the case of a synchronous instruction, this is completely executed with each call.
 First call of the asynchronous instruction, start of execution  Intermediate call of the asynchronous instruction, execution continues  Last call of the asynchronous instruction, completion of execution  A job is fully processed by a synchronous instruction with each call.
Duration of a fully processed job Figure 8-1 Difference between asynchronous and synchronous instructions

Automation system System Manual, 11/2019, A5E03461182-AF

189

Basics of program execution 8.2 Asynchronous instructions
Parallel processing of asynchronous instruction jobs
A CPU can process several asynchronous instruction jobs in parallel. The CPU processes the jobs in parallel under the following conditions:  Jobs for an asynchronous instruction are started while other jobs for that instruction are
still running.  The maximum number of simultaneously running jobs for the instruction is not exceeded. The figure below shows the parallel processing of two jobs of the WRREC instruction. The two instructions are executed simultaneously for a certain duration.

Figure 8-2 Parallel processing of the asynchronous instruction WRREC

Assigning calls of an instruction to a job
To execute an instruction over multiple calls, the CPU must be able to uniquely relate a subsequent call to a running job of the instruction.
To relate a call to a job, the CPU uses one of the following two mechanisms, depending on the type of the instruction:  Using the instance data block of the instruction (for "SFB" type)  Using job-identifying input parameters of the instruction. These input parameters must
match in each call during processing of the asynchronous instruction. Example: A job of the "Create_DB" instruction is identified by input parameters LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB and SRCBLK.
The following table shows which input parameters you use to identify which instruction.

Table 8- 2 Identifying input parameters for asynchronous instructions

Instruction DPSYC_FR D_ACT_DP DPNRM_DG WR_DPARM WR_REC RD_REC CREATE_DB
READ_DBL WRIT_DBL RD_DPARA DP_TOPOL

Job is identified by LADDR, GROUP, MODE LADDR LADDR LADDR, RECNUM LADDR, RECNUM LADDR, RECNUM LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB, SRCBLK SRCBLK, DSTBLK SRCBLK, DSTBLK LADDR, RECNUM DP_ID

190

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.2 Asynchronous instructions
Status of an asynchronous instruction
An asynchronous instruction shows its status via the block parameters STATUS/RET_VAL and BUSY. Many asynchronous instructions also use the block parameters DONE and ERROR. The figure below shows the two asynchronous instructions WRREC and CREATE_DB.
 The input parameter REQ starts the job to execute the asynchronous instruction.  The output parameter DONE indicates that the job was completed without error.  The output parameter BUSY indicates whether the job is currently being executed. When
BUSY =1, a resource is allocated for the asynchronous instruction. When BUSY = 0, the resource is free.
 The output parameter ERROR indicates that an error has occurred.  The output parameter STATUS/RET_VAL provides information on the status of the job execu-
tion. The output parameter STATUS/RET_VAL receives the error information after the occurrence of an error. Figure 8-3 Block parameters of asynchronous instructions using the instructions WRREC and
CREATE_DB as examples.

Automation system System Manual, 11/2019, A5E03461182-AF

191

Basics of program execution 8.2 Asynchronous instructions

Summary

The table below provides you with an overview of the relationships described above. It shows in particular the possible values of the output parameters if execution of the instruction is not complete after a call.
Note You must evaluate the relevant output parameters in your program after each call

Table 8- 3 Relationship between REQ, STATUS/RET_VAL, BUSY and DONE during a "running" job.

Seq. no. of the call
-
1

Type of call
Idle First call

REQ
0 1

2 to (n - 1) Intermediate call

n

Last call

Not relevant
Not relevant

STATUS/RET_VAL
W#16#7000 W#16#7001 Error code (e.g. W#16#80C3 for lack of resources) W#16#7002
W#16#0000, if no errors have occurred. Error code if errors occurred.

BUSY
0 1 0
1 0 0

DONE
0 0 0
0 1 0

ERROR
0 0 1
0 0 1

Use of resources
Asynchronous instructions use resources in the CPU during their execution. The resources are limited depending on the type of CPU and instruction. The CPU can simultaneously process only a maximum number of asynchronous instruction jobs. The resources are available again after a job has been processed successfully or with errors. Example: For the RDREC instruction, an S7-1500 CPU can process up to 20 jobs in parallel. If the maximum number of concurrent jobs for an instruction is exceeded, the following occurs:  The instruction returns the error code 80C3 (lack of resources) in the block parameter
STATUS.  The CPU stops execution of the job until a resource becomes free again.
Note Lower-level asynchronous instructions
Some asynchronous instructions use one or more lower-level asynchronous instructions for their processing. This dependence is shown in the tables below.
Please note that each lower-level instruction typically occupies one resource in the instruction's resource pool.

192

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.2 Asynchronous instructions

Extended instructions: maximum number of simultaneously running jobs

Table 8- 4 Maximum number of simultaneous jobs for asynchronous extended instructions and lower-level instructions used

Extended instructions

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

Distributed I/O

RDREC

20

RD_REC

10

WRREC

20

WR_REC

10

D_ACT_DP

8

ReconfigIOSystem

uses RDREC, WRREC, D_ACT_DP,

DPSYC_FR

2

DPNRM_DG

8

DP_TOPOL

1

ASI_CTRL

uses RDREC, WRREC

PROFIenergy

PE_START_END

uses RDREC, WRREC

PE_CMD

uses RDREC, WRREC

PE_DS3_Write_ET200S

uses RDREC, WRREC

PE_WOL

uses RDREC, WRREC, TUSEND, TURCV, TCON, TDISCON

Module parameter assignment

RD_DPAR

10

RD_DPARA

10

RD_DPARM

10

WR_DPARM

10

Diagnostics

Get_IM_Data

10

GetStationInfo

10

Recipes and data logging

RecipeExport

10

RecipeImport

10

DataLogCreate

10

DataLogOpen

10

DataLogWrite

10

DataLogClear

10

DataLogClose

10

DataLogDelete

10

DataLogNewFile

10

Automation system System Manual, 11/2019, A5E03461182-AF

193

Basics of program execution 8.2 Asynchronous instructions

Extended instructions
Data block functions CREATE_DB READ_DBL WRIT_DBL DELETE_DB File handling FileReadC FileWriteC

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

10 10 10 10
10 10

Basic instructions: maximum number of simultaneously running jobs

Table 8- 5 Lower-level instructions used for asynchronous basic instructions

Basic instructions

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

Array DB ReadFromArrayDBL WriteToArrayDBL

uses READ_DBL (see Extended instructions) uses READ_DBL, WRIT_DBL (see Extended instructions)

Communication: maximum number of simultaneously running jobs

Table 8- 6 Maximum number of simultaneous jobs for asynchronous instructions and lower-level instructions used for Open User Communication

Open User Communication

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

TSEND TUSEND TRCV TURCV TCON TDISCON T_RESET T_DIAG T_CONFIG TSEND_C TRCV_C TMAIL_C

88

96

128

192

256

320

384

88

96

128

192

256

320

384

88

96

128

192

256

320

384

88

96

128

192

256

320

384

88

96

128

192

256

320

384

88

96

128

192

256

320

384

1

uses TSEND, TUSEND, TRCV, TCON, TDISCON

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

194

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.2 Asynchronous instructions

Table 8- 7 Lower-level instructions used for asynchronous instructions for MODBUS TCP

MODBUS TCP

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

MB_CLIENT MB_SERVER

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

Table 8- 8 Maximum number of simultaneously running jobs for asynchronous instructions for S7 communication. The S7 communication instructions use a common pool of resources

S7 communication

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

PUT GET USEND URCV BSEND BRCV

264

288

384

576

768

960

1152

Table 8- 9 Lower-level instructions used for asynchronous instructions for communication processors

Communications processors

1505SP (F) 1505SP T(F)

1511(F) 1511C 1511T(F)

1507S(F) 1512C 1513(F)

1515(F) 1515T(F)

1516(F) 1516T(F)

1517(F) 1517T(F)

1518(F) 1518(F)
MFP

PtP communication Port_Config Send_Config Receive_Config Send_P2P Receive_P2P Receive_Reset Signal_Get Signal_Set Get_Features Set_Features USS communication USS_Port_Scan MODBUS (RTU) Modbus_Comm_Load ET 200S serial interface S_USSI SIMATIC NET CP FTP_CMD

uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC
uses RDDEC, WRREC
uses RDDEC, WRREC
uses CREATE_DB
uses TSEND, TRCV, TCON, TDISCON

Automation system System Manual, 11/2019, A5E03461182-AF

195

Basics of program execution 8.2 Asynchronous instructions

Table 8- 10 Maximum number of simultaneously running jobs for asynchronous instructions for OPC UA.

OPC UA instruction

1511(C/F/T/TF) 1512C 1513(F)

OPC_UA_Connect

4

OPC_UA_NamespaceGetIndex 4* List

OPC_UA_NodeGetHandleList 4*

OPC_UA_MethodGetHandleLis 4* t

OPC_UA_TranslatePathList

4*

OPC_UA_ReadList

20 in total (max. 5 per connection, see OPC_UA_Connect)

OPC_UA_WriteList

20 in total (max. 5 per connection, see OPC_UA_Connect)

OPC_UA_MethodCall

20 in total (max. 5 per connection, see OPC_UA_Connect)

OPC_UA_NodeReleaseHandle 4* List

OPC_UA_MethodReleaseHandl 4* eList

OPC_UA_Disconnect

4*

OPC_UA_ConnectionGetStatus 4*

* maximum 1 per connection

1505(S/SP/SP F/SP T/SP TF) 1515(F/T/TF) 1515 SP PC (F/T/TF) 1516(F/T/TF) 10 10*

1507S(F) 1517(F/T/TF) 1518(F/MFP)
40 40*

10*

40*

10*

40*

10*
50 in total (max. 5 per connection, see OPC_UA_Connect)
50 in total (max. 5 per connection, see OPC_UA_Connect)
50 in total (max. 5 per connection, see OPC_UA_Connect)
10*

40*
200 in total (max. 5 per connection, see OPC_UA_Connect)
200 in total (max. 5 per connection, see OPC_UA_Connect)
200 in total (max. 5 per connection, see OPC_UA_Connect)
40*

10*

40*

10*

40*

10*

40*

196

Automation system System Manual, 11/2019, A5E03461182-AF

Basics of program execution 8.2 Asynchronous instructions

Technology: maximum number of simultaneously running jobs

Table 8- 11 Maximum number of simultaneously running jobs for asynchronous instructions for technology. The instructions for technology use a common pool of resources.

Technology

1511(F)1 511C 1512C
1513(F)

1511T

1505SP (F)1515(F
) 1516(F)

1515T 1505SP
T(F) 1516(F)T

1507S(F )

1517(F)

1517T(F)

1518(F) 1518(F)
MFP

S7-1500 Motion Control MC_Power MC_Reset MC_Home MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_GearIn MC_MoveSuperimposed MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput MC_OutputCam MC_CamTrack MC_TorqueLimiting MC_SetSensor MC_GearInPos MC_SynchronizedMotionSim ulation MC_PhasingAbsolute MC_PhasingRelative MC_CamIn MC_InterpolateCam MC_GetCamLeadingValue MC_GetCamFollowingValue

300

-

300

1500

3000

4800

6400

-

1500

-

-

4800

-

Reference

You can find additional information on block parameter assignment in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

197

Protection

9

9.1

Overview of the protection functions

Introduction

This chapter describes the following functions for protecting the S7-1500 automation system/ET 200MP distributed I/O system against unauthorized access:

Protection functions Access protection Know-how protection Copy protection Protection by locking the CPU/interface module

S7-1500    

ET 200MP ------

Further measures for protecting the CPU
The following measures additionally increase the protection against unauthorized access to functions and data of the S7-1500 CPU from external sources and via the network:
 Deactivation of the Web server
 Deactivation of the OPC UA server (you can find additional information on the security mechanisms for OPC UA server in the Communication (https://support.industry.siemens.com/cs/de/de/view/59192925/en) Function Manual)
 Deactivation of the time synchronization via an NTP Server
 Deactivation of the PUT/GET communication
When you use Web server, protect your S7-1500 automation system against unauthorized access:
 By setting password-protected access rights for specific users in the user administration.
 By using the pre-set option "Permit access only via HTTPS". The option allows access to the web server only with the secure hypertext transmission protocol HTTPS.

198

Automation system System Manual, 11/2019, A5E03461182-AF

Protection 9.2 Configuring access protection for the CPU

9.2

Configuring access protection for the CPU

Introduction

The CPU offers four access levels to limit access to specific functions.
By setting up access levels and passwords, you limit the functions and memory areas that are accessible without a password. The individual access levels as well as their associated passwords are specified in the object properties of the CPU.

Rules for passwords
Ensure that passwords are sufficiently secure. Apply the following rules:
 Assign a password that is at least 8 characters long.
 Use different cases and characters: uppercase/lowercase, numbers and special characters.

Access levels of the CPU

Table 9- 1 Access levels and access restrictions

Access levels Complete access (no protection) Read access
HMI access
No access (complete protection)

Access restrictions
Every user can read and change the hardware configuration and the blocks.
In this access level, only read access to the hardware configuration and the blocks is possible without a password. You can load hardware configuration and blocks into the programming device. In addition, HMI access and access to diagnostics data is possible. Neither blocks nor the hardware configuration can be downloaded to the CPUs without the password. Additionally, the following are not possible without the password: Writing test functions and firmware update (online).
With this access level only HMI access and access to diagnostics data is possible without entering the password. Without entering the password, you can neither load blocks and hardware configuration into the CPU, nor load blocks and hardware configuration from the CPU into the programming device. Additionally, the following are not possible without the password: Test functions, changing the operating mode (RUN/STOP), firmware update and display of online/offline comparison status.
When the CPU has complete protection, no read or write access to the hardware configuration and the blocks is possible (without access authorization in the form of a password). HMI access is also not possible. The server function for PUT/GET communication is disabled in this access level (cannot be changed). Authentication with the password will again provide you full access to the CPU.

An enumeration of which functions are available in the different access levels is available in the "Setting options for the protection" entry in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

199

Protection 9.2 Configuring access protection for the CPU
Properties of the access levels
Each access level allows unrestricted access to certain functions without entering a password, e.g. identification using the "Accessible devices" function. The CPU's default setting is "No restriction" and "No password protection". In order to protect access to a CPU, you must edit the properties of the CPU and set up a password. In the default access level "Full access (no protection)", every user can read and change the hardware configuration and the blocks. A password is not set and is also not required for online access. Communication between the CPUs (via the communication functions in the blocks) is not restricted by the access level of the CPU, unless PUT/GET communication is deactivated in the "No access" (complete protection) access level. Entry of the right password allows access to all the functions that are allowed in the corresponding level.
Note Configuring an access level does not replace know-how protection Configuring access levels offers a high degree of protection against unauthorized changes on the CPU via network access. Access levels are used to restrict the rights to download the hardware and software configuration to the CPU. However, blocks on the SIMATIC memory card are not write- or read-protected. Use know-how protection to protect the code of blocks on the SIMATIC memory card.
Behavior of functions with different access levels
The STEP 7 online help includes a table listing the online functions available in the various access levels.

200

Automation system System Manual, 11/2019, A5E03461182-AF

Protection 9.2 Configuring access protection for the CPU
Configuring access levels
To configure the access levels of an S7-1500 CPU, follow these steps: 1. Open the properties of the S7-1500 CPU in the Inspector window. 2. Open the "Protection & Security" entry in the area navigation.
A table with the possible access levels appears in the Inspector window.

Figure 9-1 Possible access levels
3. Activate the desired protection level in the first column of the table. The green check marks in the columns to the right of the respective access level show you which operations are still available without entering the password. In the example (Figure: Possible access levels), read access and HMI access are still possible without a password.
4. In the "Enter password" column, specify a password for the access level "Full access" in the first row. In the "Confirm password" column, enter the selected password again to guard against incorrect entries.
5. Assign additional passwords as required for other access levels. 6. Download the hardware configuration for the access level to take effect. The CPU logs the following actions with an entry in the diagnostic buffer:  Input of the correct or, possibly, wrong password  Changes to access level configuration

Behavior of a password-protected CPU during operation
The CPU protection takes effect for an online connection after you have downloaded the settings to the CPU.
Before an online function is executed, STEP 7 checks the necessary permission and, if necessary, prompts the user to enter a password. The functions protected by a password can only be executed by one programming device/PC at any one time. Another programming device/PC cannot log on.
Logon authorization to the protected data applies for the duration of the online connection or for as long as you have STEP 7 open. The menu command "
Online > Clear access rights" cancels the logon authorization.
You can limit access to a password-protected CPU in RUN locally on the display. This prevents access even with the password.

Automation system System Manual, 11/2019, A5E03461182-AF

201

Protection 9.3 Using the display to set additional password protection
Access level for F-CPUs
For the fail-safe CPUs, there is an additional access level in addition to the four described access levels. For additional information on this access level, refer to the description of the fail-safe system SIMATIC Safety Programming and Operating Manual SIMATIC Safety Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126).

9.3

Using the display to set additional password protection

Blocking access to a password-protected CPU
On the display of an S7-1500 CPU, you can block access to a password-protected CPU (local block of the password). If the mode selector is set to RUN, the block is effective. The access block requires a configured protection level in STEP 7 and works independently of the password protection. This means that even if someone accesses the CPU via a connected programming device and has entered the correct password, access to the CPU remains disabled. The access block can be set separately for each access level on the display. Then, for example, the read access is allowed locally, but the writing access is not allowed locally.

Procedure

If you want to block access to the CPU via the display, you need to configure an access level with a password in STEP 7.
When you set the local access protection for an S7-1500 CPU on the display, proceed as follows:
1. On the display, select Settings > Protection menu.
2. Confirm the selection using "OK", and configure for each access level, whether access at the RUN mode selector switch is allowed or not:
­ Allow: Access to the CPU is possible with the corresponding password in STEP 7.
­ Deactivated in RUN: If the mode selector is set to RUN, no additional logon to the CPU is possible with the rights of this access level. Access is denied despite the fact that the user knows the password. Access with the password is enabled again in the STOP operating state.

Access protection for the display
Configure a password for the display in STEP 7 in the properties of the CPU. This protects local access protection with a local password.

202

Automation system System Manual, 11/2019, A5E03461182-AF

Protection 9.4 Using the user program to set additional access protection

9.4

Using the user program to set additional access protection

Access protection by means of the user program
In addition to access protection via the display, you have another option. You can also restrict access to a password-protected CPU using the ENDIS_PW instruction in STEP 7.
You can find more information on this instruction in the STEP 7 online help under "ENDIS_PW: Limit and enable password legitimation ".

9.5

Know-how protection

Application

You can use know-how protection to protect one or more OB, FB or FC blocks as well as global data blocks in your program from unauthorized access. Enter a password to restrict access to a block. The password offers high-level protection against unauthorized reading or manipulation of the block. Know-how protection does not involve the CPU (offline access in STEP 7).

Password provider
As an alternative to manual password input, you can assign a password provider to STEP 7. When using a password provider, you select a password from a list of available passwords. When a protected block is opened, STEP 7 connects to the password provider and retrieves the corresponding password.
To connect a password provider you have to install and activate it. A settings file in which you define the use of a password provider is also required.
A password provider offers you the following advantages:
 The password provider defines and manages the passwords. When know-how protected blocks are opened, you work with symbolic names for passwords. For example, a password is marked with the symbolic name "Machine_1" n the password provider. The actual password behind "Machine1" remains hidden from you. A password provider therefore offers optimum block protection as the users do not know the password themselves.
 STEP 7 automatically opens know-how protected blocks without the direct entry of a password. This saves you time.
You can find more information on connecting a password provider in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

203

Protection 9.5 Know-how protection

Readable data

If a block is know-how protected, only the following data is readable without the correct password:  Block title, comments and block properties  Block parameters (INPUT, OUTPUT, IN, OUT, RETURN)  Call structure of the program  Global tags without information on the point of use

Further actions

Further actions that can be carried out with a know-how protected block:  Copying and deleting  Calling within a program  Online/offline comparison  Load

Global data blocks and array data blocks
You protect global data blocks (global DBs) from unauthorized access with know-how protection. If you do not have the valid password, you can read the global data block but not change it.
Know-how protection is not available for array data blocks (array DBs).

Setting up block know-how protection
To set up block know-how protection, follow these steps: 1. Open the properties of the respective block. 2. Select the "Protection" option under "General".

Figure 9-2 Setting up block know-how protection (1)

204

Automation system System Manual, 11/2019, A5E03461182-AF

Protection 9.5 Know-how protection 3. Click the "Protection" button to display the "Know-how protection" dialog.
Figure 9-3 Setting up block know-how protection (2) 4. Click the "Define" button to display the "Define password" dialog.
Figure 9-4 Setting up block know-how protection (3) 5. Enter the new password in the "New password" field. Enter the same password in the
"Confirm password" field. 6. Click "OK" to confirm your entry. 7. Close the "Know-how protection" dialog by clicking "OK". Result: The blocks selected will be know-how-protected. Know-how protected blocks are marked with a lock symbol in the project tree. The password entered applies to all blocks selected. Note Password provider Alternatively, you can set up know-how protection for blocks with a password provider.

Automation system System Manual, 11/2019, A5E03461182-AF

205

Protection 9.5 Know-how protection
Opening know-how protected blocks
To open a know-how protected block, follow these steps: 1. Double-click the block to open the "Access protection" dialog. 2. Enter the password for the know-how protected block. 3. Click "OK" to confirm your entry. Result: The know-how-protected blockopens. Once you have opened the block, you can edit the program code and the block interface of the block for as long as the block or STEP 7 is open. You need to enter the password again the next time you open the block. If you close the "Access protection" dialog with "Cancel", the block will open but the block code will not be displayed. You will not be able to edit the block. If you copy the block or add it to a library, for example, this does not cancel the know-how protection of the block. The copies will also be know-how-protected.
Removing block know-how protection
To remove block know-how protection, follow these steps: 1. Select the block from which you want to remove know-how protection. The protected
block must not be open in the program editor. 2. In the "Edit" menu, select the "Know-how protection" command to open the "Know-how
protection" dialog. 3. Clear the "Hide code (Know-how protection)" check box.

Figure 9-5 Removing block know-how protection (1) 4. Enter the password.

Figure 9-6 Removing block know-how protection (2)
5. Click "OK" to confirm your entry. Result: Know-how protection for the selected block has been canceled.

206

Automation system System Manual, 11/2019, A5E03461182-AF

Protection 9.6 Copy protection

9.6

Copy protection

Application

The copy protection allows you to protect your program against unauthorized duplication. With copy protection you associate the blocks with a specific SIMATIC memory card or CPU. The link to the serial number means that you can only use the block in conjunction with the corresponding SIMATIC memory card or CPU.

Copy and know-how protection
Recommendation: To prevent an unauthorized reset of the copy protection, provide a copyprotected block with additional know-how protection. First set up the copy protection for the block and after this the know-how protection. You can find additional information on setting up know-how protection in the section Know-how protection (Page 203).

Setting up copy protection
To set up copy protection, follow these steps: 1. Open the properties of the respective block. 2. Select the "Protection" option under "General". 3. In the "Copy protection" area, select either the "Bind to serial number of the CPU" entry or
the "Bind to serial number of the memory card" entry from the drop-down list.

Figure 9-7 Setting up copy protection
4. Activate the option "Serial number is inserted when downloading to a device or a memory card" if STEP 7 is to automatically insert the serial number during the uploading process (dynamic binding). Assign a password using the "Define password" button to link the use of a block additionally to the input of a password. If you want to manually bind the serial number of the CPU or the SIMATIC memory card to a block (static binding), activate the "Enter serial number" option.
5. You can now set up the know-how protection for the block in the "Know-how protection" area.
Note
If you download a copy-protected block to a device that does not match the specified serial number, the entire download operation is not possible. This means that you also cannot download blocks without copy protection.

Automation system System Manual, 11/2019, A5E03461182-AF

207

Protection 9.7 Protection by locking the CPU/interface module
Removing copy protection
To remove copy protection, follow these steps: 1. Remove the Know-how protection (Page 203) if it is set. 2. Open the properties of the respective block. 3. Select the "Protection" option under "General". 4. In the "Copy protection" area, select the "No binding" entry from the drop-down list.

Figure 9-8 Removing copy protection

9.7

Protection by locking the CPU/interface module

Locking options
Provide additional protection for your CPU/Ihr interface module from unauthorized access (for example to the SIMATIC memory card) by using a secure front cover. You have e.g. the following options:  Attach a seal  Secure the front cover with a lock (shackle diameter: 3 mm)

Figure 9-9 Locking latch on a CPU

208

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts

10

10.1

Standard machine projects

Introduction

Standard machine projects are STEP 7 projects that use a set of innovative functions allowing simple configuration and commissioning of flexible automation solutions for standard machines or for machines with a modular structure.
A hardware configuration consisting of an S7-1500 CPU as the IO controller and any connected IO devices represents a "PROFINET IO system master". This master is configured with a maximum configuration based on which various options can be derived for different standard machines, for example with different configuration variants of the IO system.

Greater flexibility at all levels
Standard machine projects have the following central characteristics:
 From one project (IO system master) with an engineered maximum configuration, different variants of a standard machine can be loaded (IO system options). The standard machine project covers all variants (options) of the IO system.
 An IO system option can be integrated in an existing network locally using simple tools.
Flexibility is provided in more ways than one:
 With suitable configuration, adaptation of the IP address parameters of the IO controller is possible locally using simple tools. This allows a standard machine to be integrated in different plants with little effort or to be included in a network several times. IO systems with this property are known as multiple use IO systems.
 With suitable configuration and programming, different setups of IO system options can be operated locally that differ in terms of the selection of IO devices used or in terms of the arrangement of the IO devices. Since the specific configuration of the IO system is controlled by the user program, this is known as configuration control for IO systems.
 Independently of the functions described above, with suitable configuration and programming, you can use different station options of central devices or distributed I/O devices in one project. The devices can be different in terms of the selection and arrangement of the modules. Since the concrete configuration of the station is controlled by the user program, this is also known as configuration control.

Automation system System Manual, 11/2019, A5E03461182-AF

209

Flexible automation concepts 10.2 Configuration control (option handling)
Additional information
You can find additional information on configuration control in the section Configuration control (option handling) (Page 210). You can find additional information on multiple use IO systems and on configuration control for IO systems in the PROFINET with STEP 7 V14 (http://support.automation.siemens.com/WW/view/en/49948856) Function Manual.

10.2

Configuration control (option handling)

Introduction

With configuration control (option handling), you handle various standard machine configuration levels in one project. You do not need to change the hardware configuration or the user program.

Operating principle of configuration control
Configuration control enables you to operate different configuration levels of a standard machine with a single configuration of the S7-1500 automation system/ET 200MP distributed I/O system.
 A station master (maximum configuration) is configured in a project. The station master comprises all modules needed for all possible equipment components of a modular standard machine.
 Provision is made in the user program of the project for various station options for the different configuration levels of the standard machine and for selection of a station option. A station option uses, for example, only some of the modules of the station master and these modules are not inserted in the configured order.
 Manufacturers of standard machines select a station option for a configuration level of the standard machine and does not have to change the project or load a changed configuration.
You use a control data record you have programmed to notify the CPU/interface module as to which modules are missing or located on different slots in a station option as compared to the station master. The configuration control has no effect on the parameter assignment of the modules.
The configuration control allows you to flexibly vary the centralized/distributed configuration. As a precondition for this, the station option must be able to be derived from the station master.

210

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)
The following figure shows three configuration levels of a standard machine with the corresponding station options of the S7-1500 automation system.

Benefits

Figure 10-1 Various configuration levels of a standard machine with the corresponding station options of the S7-1500 automation system
 Easy project handling and commissioning through use of a single STEP 7 project for all station options.
 Easy handling during maintenance, versioning and upgrades.  Hardware savings: I/O modules are installed that are necessary for the current station
option of the machine.  Potential savings when building, commissioning and creating documentation for standard
machines.

Automation system System Manual, 11/2019, A5E03461182-AF

211

Flexible automation concepts 10.2 Configuration control (option handling)

Procedure

To set up the configuration control, proceed as follows:

Table 10- 1 Procedure for commissioning the SIMATIC S7-1500

Step 1 2

Procedure Enable configuration control in STEP 7 Create control data record

3

Transfer control data record

See...
Section Configuring (Page 212)
Section Creating the control data record (Page 214)
Section Transferring the control data record in the startup program of the CPU (Page 224)

Library for configuration control
A library for configuration control is available for download (https://support.industry.siemens.com/cs/ww/en/view/29430270) on the internet. The library contains data types with the structure of the control data records for the S7-1500/ET 200MP automation system. You can implement the configuration control for your flexible automation solution economically using these data types.

10.2.1

Configuring

Requirements

With the S7-1500, configuration control is possible both with centrally inserted modules and with the ET 200MP distributed I/O system via PROFINET IO.
For S7-1500 automation system:
 STEP 7 Professional as of Version V13
 CPU S7-15XX as of firmware version V1.5
 The startup parameter "Comparison preset to actual configuration" is set to "Startup CPU even if mismatch" (default setting). You can find the "Comparison preset to actual configuration" parameter in the Inspector window of the CPU properties under "General">"Startup".
For ET 200MP distributed I/O system:
 STEP 7 Professional as of Version V13
 IM 155-5 PN ST/HF
 You have assigned the interface module to an IO controller/DP master in STEP 7
 The startup parameter "Comparison preset to actual module" is set to "Startup CPU even if mismatch" (default setting). You can find the "Comparison preset to actual module" parameter in the Inspector window of the interface module properties in the "Startup" field under "General">"Module parameters".

212

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling) Required steps Enable the "Allow to reconfigure the device via the user program" parameter when configuring the CPU/interface module.  For an S7-1500 CPU, you can find the "Allow to reconfigure the device via the user program" parameter in the "Configuration control" area.  For an IM 155-5 PN interface module, you can find the "Allow to reconfigure the device via the user program" parameter in the "Configuration control" field under "General">"Module parameters".
Figure 10-2 Enabling configuration control using an S7-1500 CPU as an example

Automation system System Manual, 11/2019, A5E03461182-AF

213

Flexible automation concepts 10.2 Configuration control (option handling)

10.2.2

Creating the control data record

Required steps
To create a control data record for the configuration control, follow these steps:
1. Create a PLC data type that contains the structure of the control data record.
You can find the structure of the control data record:
­ For the S7-1500 automation system in section Control data record for the S7-1500 Automation System (Page 217).
­ For the ET 200MP distributed I/O system in section Control data record for the ET 200MP distributed I/O system (Page 218).

Figure 10-3 Creating control data record 196 using an S7-1500 CPU as an example 2. Create a global data block.

214

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling) 3. Create an array of the data type of the above created PLC data type in the data block. The following figure shows a data block containing three control data records for an S7-1500 CPU.
Figure 10-4 Data block for configuration control 4. In the "Start value" column of the control data records, enter which module is located at
which slot.
Figure 10-5 Assigning slots

Automation system System Manual, 11/2019, A5E03461182-AF

215

Flexible automation concepts 10.2 Configuration control (option handling)

Rules

Observe the following rules:  The CPU/interface module ignores slot entries in the control data record outside the
station master.  The control data record must contain the entries up to the last slot of the station option.  Each slot of a station option may only be present once in the control data record.  Each slot of a station option may only be assigned to one slot in the station master.  System power supplies (PS) can also be subject to configuration control.
Note Configuration control for system power supplies In the case of a configuration (station option) loaded using a data record, STEP 7 does not automatically check compliance with the power budget. Ensure that the power supplied in each power segment of the station option is greater than or equal to the power drawn. You can find additional information in the section Power balance calculation (Page 103).

Using communication modules
 Point-to-point communication modules: Point-to-point communication modules can be used without any restrictions for the configuration control.
 PROFINET/Ethernet and PROFIBUS communication modules: CPUs as of firmware version V1.7 support configuration control when using PROFINET/Ethernet or PROFIBUS communication modules. If PROFINET/Ethernet or PROFIBUS communication modules, such as a CM 1542-5 (DP master or DP slave) are inserted in the central configuration, these communication modules cannot be influenced by the configuration control. You must therefore leave these modules in the slots preassigned in the station master and enter the slot numbers from the station master in the control data record ("Station option slot = Station master slot"). In a station option, all slots up to the communication module furthest from the CPU must be present in the control data record. Maximum flexibility is achieved by inserting the communication modules directly to the right of the CPU.

216

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)

10.2.2.1

Control data record for the S7-1500 Automation System

Slot assignment
The following table shows the slot assignment of the modules for the S7-1500 automation system:

Table 10- 2 Slot assignment

Slot 0 1 2 - 31

Modules
System power supply (optional) CPU I/O modules/system power supplies, depending on the station option

Comment Upstream of CPU Slot 1 is always the CPU Downstream of CPU

Control data record
For configuration control of the S7-1500 automation system, you define a control data record 196 V4.0, which contains a slot assignment. The table below shows the structure of a control data record with explanations of the individual elements.

Table 10- 3 Configuration control: Structure of control data record 196

Byte 0 1 2 3 4
5
6
7
: 4 + (max. slot number)

Element

Code

Block length

4 + number of slots

Block ID

196

Version

4

Version

0

Slot 0 of the station master Slot assignment in the station option

Slot 1 of the station master Slot assignment 1 in the station option

(always 1, because the CPU is always in slot 1)

Slot 2 of the station master Slot assignment in the station option

Slot 3 of the station master Slot assignment in the station option

:

:

Maximum slot of the station Slot assignment in the

master

station option

Explanation Header
Control element Contains information on which module is inserted in which slot. The following rule determines which value you must enter in the respective byte: · If the module is included in the station
option, enter the slot number of the module. · If the module is not included in the station option, enter 255.

Automation system System Manual, 11/2019, A5E03461182-AF

217

Flexible automation concepts 10.2 Configuration control (option handling)

10.2.2.2

Control data record for the ET 200MP distributed I/O system

Slot assignment
The following table shows the slot assignment of the modules for the ET 200MP distributed I/O system:

Table 10- 4 Slot assignment

Slot 0 1
2 - 31

Modules System power supply (optional) Interface module
I/O modules/system power supplies, depending on the station option

Comment
Upstream from interface module
Interface module (slot 1) is not an element of the configuration control, but instead controls the configuration control.
Downstream from the interface module

Control data record
For configuration control of the ET 200MP distributed I/O system, you define a control data record 196 V3.0, which contains a slot assignment. The table below shows the structure of a control data record with explanations of the individual elements.

Table 10- 5 Configuration control: Structure of control data record 196

Byte 0 1 2 3 4
5

Element Block length Block ID Version Version Slot 0 of the station master
Slot 2 of the station master

Code
4 + number of slots 196 3 0 Slot assignment in the station option Slot assignment in the station option

6
: 4 + (max. slot no. 1)

Slot 3 of the station master Slot assignment in the station option

:

:

Maximum slot of the station Slot assignment in the

master

station option

Explanation Header
Control element Contains information on which module is inserted in which slot. The following rule determines which value you must enter in the respective byte: · If the module is included in the station
option, enter the slot number of the module. · If the module is not included in the station option, enter 127.

218

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)

10.2.2.3

Feedback data record of the ET 200MP distributed I/O system

Operating principle
The feedback data record informs you about the accuracy of the module assignment and gives you the option of detecting assignment errors in the control data record. The feedback data record is mapped via a separate data record 197 V2.0.

Slot assignment
The feedback data record exists only when configuration control is configured and always refers to the maximum quantity framework without interface module, i.e., 31 slots.
The following table shows the slot assignment of the modules:

Table 10- 6 Slot assignment

Slot 0 2 - 31

Modules
System power supply (optional) I/O modules/system power supplies, depending on the station option

Comment Upstream from interface module Downstream from the interface module

Partial reading of the feedback data record is possible.

Automation system System Manual, 11/2019, A5E03461182-AF

219

Flexible automation concepts 10.2 Configuration control (option handling)

Feedback data record

Table 10- 7 Feedback data record

Byte 0 1 2 3 4 5 6 7 : 64 65

Element Block length Block ID Version
Status slot 0 Reserved Status slot 2 Reserved : Slot n status Reserved

Code 66 197 2 0 0/1 0 0/1 0 : Maximum slot 0

* Not possible if the slot is marked as not available.

Explanation Header
Status = 1: · Module from station master is
inserted in the station option · Slot is marked as not availa-
ble in the control data record Status = 0: · Module pulled · Incorrect module inserted in
the station option*

Note
The data in the feedback data record is always mapped for all modules. In a Shared Device configuration, it is therefore irrelevant which IO controller the respective modules are assigned to.
As long as no control data record was sent, a one-to-one module assignment is assumed for the compilation of data record 197 (station master  station option).

220

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)

Error messages
In the case of an error when reading the feedback data record, the RDREC instruction returns the following error messages via the STATUS block parameter:

Table 10- 8 Error messages
Error code 80B1H
80B5H 80B8H

Meaning Invalid length; the length information in data record 197 is not correct. Configuration control not configured Parameter error The following events cause a parameter error:
· Incorrect block ID in the header (not equal to 197) · Invalid version identifier in the header · A reserved bit was set · Multiple slots in the station master are assigned to the same
slot in the station option

10.2.2.4

Examples of configuration control
A station master consisting of a system power supply, CPU, and three I/O modules is configured in STEP 7 in the following section.
The module at slot 3 is not present in the station option 1 and is "hidden" by the configuration control.
In station option 2, the order of the modules in slots 3 and 4 is interchanged. The modified order of the modules is made known to the CPU by a modified control data record.

Automation system System Manual, 11/2019, A5E03461182-AF

221

Flexible automation concepts 10.2 Configuration control (option handling)
Station option 1 with module that is not present
The module that is located in slot 3 in the station master is not present in the station option 1. Slot 3 must be designated in the control data record accordingly with 255 (= not present).

 Module is not present in the station option 1.
Figure 10-6 Example: Hardware configuration of station option 1 with the associated control data record in STEP 7

222

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)
Station option 2 with modified order of modules
The order of the modules in slot 3 and 4 is interchanged.

Figure 10-7 Example: Hardware configuration of station option 2 with the associated control data record in STEP 7

Automation system System Manual, 11/2019, A5E03461182-AF

223

Flexible automation concepts 10.2 Configuration control (option handling)
Detailed application example
You can find a detailed application example for the configuration control in S7-1500 in here (https://support.industry.siemens.com/cs/ww/en/view/29430270) under "Application example for ET 200SP (PROFINET) and S7-1500 by using the library".

10.2.3

Transferring the control data record in the startup program of the CPU

Required steps
Transfer the created control data record 196 to the CPU/interface module using the WRREC (Write data record) instruction.

Parameters of the WRREC instruction
Below, you will find explanations of individual parameters of the WRREC instruction which you must supply with specific values in the configuration control context. You can find additional information on the WRREC instruction in the STEP 7 online help.

ID
INDEX RECORD

Hardware identifier
· For configuration control for centrally arranged modules, use the HW identifier for the CPU. If you have selected the CPU in the network view or device view, you can find the HW identifier on the System constants tab of the Inspector window. Use the value of the system constant "Local Configuration".
· For configuration control for distributed I/O, use the HW identifier of the interface module. If you have selected the interface module in the network view or device view, you can find the HW identifier on the System constants tab of the Inspector window. Use the value of the system constant "<Name_of_interface_module> Head".
Data record number: 196 (decimal)
Control data record to be transferred. For the structure of the control data record, see section Creating the control data record (Page 214).

224

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)

Error messages
In case of error, the WRREC instruction returns the following error messages via the STATUS block parameter:

Table 10- 9 Error messages Error code 80B1H
80B5H 80E2H
80B8H

Meaning Invalid length; the length information in data record 196 is not correct. Configuration control parameters not assigned. Data record was transferred in the wrong OB context. The data record must be transferred in the startup program. Parameter error Reasons for a parameter error are:
· Incorrect block ID in the header (not equal to 196)
· Invalid version identifier in the header
· A reserved bit was set
· A station master slot was assigned an invalid slot in the station option
· Multiple slots in the station master are assigned to the same slot in the station option
· For shared device on submodule level: violation of defined restrictions

Automation system System Manual, 11/2019, A5E03461182-AF

225

Flexible automation concepts 10.2 Configuration control (option handling)
Special requirements relating to the transfer of the control data record to the CPU
 If you have enabled configuration control, the CPU is not ready for operation without a control data record. The CPU returns from startup to STOP if a valid control data record is not transferred in the startup OB (for example, OB 100). The central I/O is not initialized in this case. The cause for STOP mode is entered in the diagnostics buffer.
Note If an incorrect control data record is transferred to the CPU in the startup OB, the startup of the CPU may be prevented. In this case, perform a reset to factory settings of the CPU and then transfer a correct control data record.
 The CPU processes the WRREC instruction for transferring the control data record asynchronously. For this reason, you must call WRREC in the startup OB (for example, OB 100) repeatedly in a loop until the output parameters "BUSY" and "DONE" indicate that the data record has been transferred. ­ Tip: To program the loop, use the SCL programming language with the REPEAT ... UNTIL instruction.
REPEAT
"WRREC_DB"(REQ := "start_config_control",
ID := "Local Configuration",
INDEX := 196,
LEN := "conf_LEN",
DONE => "conf_DONE",
BUSY => "conf_BUSY",
RECORD := "ConfDB".ConfigControl["ConfDB".Option],
//Selection of control data record*
ERROR => "conf_ERROR",
STATUS => "conf_STATUS");
UNTIL NOT "conf_BUSY"
END_REPEAT;
*Selection of the station option in the user program: In order for the CPU to know which station option you want to operate, you must set up a possibility to select between the various control data records in the user program. You can implement the selection, for example, via an Int tag that references an array element. Please note that the variable used to select the control data record must be stored in the retentive memory area. If the tag is not retentive, it will be initialized during startup of the CPU and will thus be unavailable for selection of the station option. ­ In the graphical programming languages, you implement the loop using instructions for program control.

226

Automation system System Manual, 11/2019, A5E03461182-AF

Flexible automation concepts 10.2 Configuration control (option handling)
Example in FBD: Use the LABEL (jump label) and JMP (jump at RLO=1) instructions to program a loop.

Figure 10-8 WRREC
 The control data record is stored retentively in the CPU. Note:
­ The retentivity of the control data record is independent of the retentivity settings in the STEP 7-memory area. The memory area in which the control data record is configured does then not have to be configured as retentive for this purpose.
­ If you write a control data record with modified configuration, the original data record 196 is deleted and the new data record 196 is saved retentively. The CPU will then restart with the modified configuration.

Automation system System Manual, 11/2019, A5E03461182-AF

227

Flexible automation concepts 10.2 Configuration control (option handling)
Special requirements relating to the transfer of the control data record to the interface module
 If you have enabled configuration control, the ET 200MP station is not ready for operation without a control data record. As long as no valid control data record has been transferred, the I/O modules are considered as failed by the CPU and exhibit substitute value behavior. The interface module continues to exchange data.
 The control data record is stored retentively in the interface module. Note:
­ If the configuration is unchanged, you do not have to rewrite the control data record 196 during restart.
­ If you write a control data record with modified configuration, this will result in a station failure in the distributed I/O system. The original data record196 is deleted and the new data record 196 is saved retentively. The station will then restart with the modified configuration.

10.2.4

Behavior during operation

Effect of discrepancy between station master and station option
For the online display and for the display in the diagnostics buffer (module OK or module faulty), the station master is always used and not the differing station option.
Example: A module outputs diagnostics data. This module is configured in slot 4 in the station master, but is inserted in slot 3 in the station option (missing module; see example in the next section). The online view (station master) shows an incorrect module in slot 4. In the real configuration, the module in slot 3 indicates an error via an LED display.

Response to modules that are not present
If modules are entered as not present in the control data record, the automation system behaves as follows:
 Modules designated as not present in the control data record do not supply diagnostics and their status is always OK. The value status is OK.
 Direct writing access to the outputs that are not present or writing access to the process image of outputs that are not present: Remains without effect; no access error is signaled.
 Direct reading access to the inputs that are not present or reading access to the process image of inputs that are not present: Value "0" is supplied; no access error is signaled.
 Write data record to module that is not present: Remains without effect; no error is signaled.
 Read data record from module that is not present: The output parameter STATUS of the instruction RDREC supplies the value 80A3H "General CM error".

228

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning

11

11.1

Overview

Introduction

This section includes information on the following topics:  Check before powering on for the first time  Procedure for commissioning the S7-1500 automation system
­ Removing/inserting the SIMATIC memory card ­ First power-on of the CPU  Procedure for commissioning the S7-1500 distributed I/O system ­ First power-on of the ET 200MP on PROFINET IO ­ First power-on of the ET 200MP on PROFIBUS DP  Operating modes of the CPU STARTUP, STOP, RUN and operating mode transitions  CPU memory reset: Automatic and manual  Backing up and restoring the CPU configuration  Time synchronization  Identification and maintenance data  Shared commissioning of projects

Commissioning requirements
Note Performing tests You must ensure the safety of your plant. You therefore need to perform a complete functional test and the necessary safety checks before the final commissioning of a plant. Also allow for any possible foreseeable errors in the tests. This avoids endangering persons or equipment during operation.

Automation system System Manual, 11/2019, A5E03461182-AF

229

Commissioning 11.2 Check before powering on for the first time
Software tools for commissioning
The following software tools support you during commissioning:  SIEMENS PRONETA in commissioning PROFINET systems.  SIMATIC automation tool in commissioning the S7-1500 automation system / ET 200MP
distributed I/O system. You can find more information on SIEMENS PRONETA and the SIMATIC Automation Tool in the section Software (Page 87).

11.2

Check before powering on for the first time
Before the first power-on, check the installation and the wiring of the S7-1500 automation system/ET 200MP distributed I/O system.

Questions for the check
The following questions provide instructions for checking your system in the form of a checklist.
Racks  Are the mounting rails firmly installed on the wall, in the framework, or in the cabinet?  Are the cable ducts correctly installed?  Have the minimum clearances been observed?
Grounding and chassis concept  Is the mounting rail connected to the protective conductor?  If applicable, are all further protective conductor connection points on the S7-1500
automation system / ET 200MP distributed I/O system connected to the protective conductor? Has the protective conductor been tested?  Has the connection between reference ground and ground been correctly made on all mounting rails?  Are the required equipotential bonding cables connected with low impedance to the affected plant units?
Module installation and wiring  Are all the modules inserted / installed in accordance with the mounting plan and
corresponding to the configuration with STEP 7 and screwed firmly to the mounting rail?  Are all the front connectors wired according to the circuit diagram, in the final position,
and inserted on the correct module?  Are the correct modules installed and connected to each other with U connectors?  Are U connectors projecting either at the left-hand or right-hand over the outer modules
on the S7-1500 automation system/ET 200MP distributed I/O system?
System power supply or load current supply  Are all system power supplies and load current supplies switched off?  Is the power cable connector correctly wired?  Has the connection to line voltage been made?

230

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.3 Procedure for commissioning the S7-1500 automation system

11.3

Procedure for commissioning the S7-1500 automation system

Requirements

 The CPU is in the "Factory settings" state or has been reset to factory settings. You can find additional information in the section Resetting the CPU to factory settings (Page 292).
 The SIMATIC memory card is as delivered or has been formatted.

Commissioning procedure
For the first commissioning of an S7-1500 automation system, we recommend the following procedure:

Table 11- 1 Procedure for commissioning the SIMATIC S7-1500

Step 1
2 3 4
5
6
7
8 9
10

Procedure Configure hardware in STEP 7 and perform power balance calculation (see also "Requirements: CPU as bus device") Create user program Insert required modules Wiring and checking the assembly (system power supplies, front connectors, etc.) Insert SIMATIC memory card in the CPU
Switch on the CPU and system power supply
Check LEDs
Evaluate information on the CPU's display Load hardware configuration and user program to the CPU
Test inputs and outputs

See...
Section Power balance calculation (Page 103) STEP 7 online help
Section Installation (Page 107)
Section Wiring (Page 129)
Section Removing/inserting a SIMATIC memory card on the CPU (Page 232)
Section First power-on of the CPU (Page 235)
The meaning of the LEDs can be found in the manuals of the modules.
Section CPU display (Page 266)
Online and diagnostics functions in STEP 7
The following functions are helpful: Monitoring and modifying tags, testing with program status, forcing, modifying the outputs in STOP mode. Section Test and service functions (Page 301)

Automation system System Manual, 11/2019, A5E03461182-AF

231

Commissioning 11.3 Procedure for commissioning the S7-1500 automation system
Requirements: CPU as bus device
Note the following requirements for operation of a CPU as bus device:  PROFIBUS interface
­ The integrated PROFIBUS interface of the CPU is configured using STEP 7 (device address and bus parameters configured).
­ The CPU is connected to the subnet. ­ The terminating resistors at the segment boundaries are switched on. You can find additional information in the PROFIBUS function manual (http://support.automation.siemens.com/WW/view/en/59193579)  PROFINET interface ­ The integrated PROFINET interface of the CPU is configured using STEP 7 (IP
address and device name configured). ­ The CPU is connected to the subnet. You can find additional information in the PROFINET function manual (http://support.automation.siemens.com/WW/view/en/49948856)

11.3.1

Removing/inserting a SIMATIC memory card on the CPU

Requirements

The CPU only supports pre-formatted SIMATIC memory cards. If applicable, delete all previously stored data before using the SIMATIC memory card. Additional information about deleting the contents of the SIMATIC memory card can be found in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193101).
In order to work with the SIMATIC memory card, first ensure that the SIMATIC memory card is not write-protected. For this purpose, slide the slider on the SIMATIC memory card out of the lock position.
If the inserted SIMATIC memory card is write-protected, the CPU display outputs the symbol in the menu "Memory card" > "Overview". In addition, the display shows a message in the
lower level of the menu.

232

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.3 Procedure for commissioning the S7-1500 automation system Inserting the SIMATIC memory card To insert a SIMATIC memory card, follow these steps: 1. Open the front cover of the CPU. 2. Ensure that the CPU is either switched off, or in the STOP mode. 3. Insert the SIMATIC memory card, as depicted on the CPU, into the slot for the SIMATIC memory card.
 Standard, F-CPUs / compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-
1CK01-0AB0: The slot for the SIMATIC memory card is located on the bottom of the CPU. Figure 11-1 Slot for the SIMATIC memory card 4. Insert the SIMATIC memory card with light pressure into the CPU, until the SIMATIC memory card latches.

Automation system System Manual, 11/2019, A5E03461182-AF

233

Commissioning 11.3 Procedure for commissioning the S7-1500 automation system
Removing the SIMATIC memory card
To remove a SIMATIC memory card, follow these steps: 1. Open the front cover. 2. Switch the CPU into STOP mode. 3. Press the SIMATIC memory card into the CPU with light pressure. Once it has clicked
into place, remove the SIMATIC memory card. Only remove the SIMATIC memory card in POWER OFF or STOP mode of the CPU. Ensure that:  No writing functions are active in STOP . Writing functions are online functions with the
PG/PC, for example loading/deleting a block and test functions.  No writing functions were active before POWER OFF. If you remove the SIMATIC memory card during a write process, the following problems can occur:  The data content of a file is incomplete.  The file is no longer readable, or no longer exists.  The entire content of the card is corrupted. Please also note the following FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183) for removal of the SIMATIC memory card.
Reactions after removing/inserting the SIMATIC memory card
Inserting and removing the SIMATIC memory card in STOP mode triggers a re-evaluation of the SIMATIC memory card. The CPU hereby compares the content of the configuration on the SIMATIC memory card with the backed-up retentive data. If the backed-up retentive data matches the data of the configuration on the SIMATIC memory card, the retentive data is retained. If the data differs, the CPU automatically performs a memory reset. The retentive data is deleted and CPU then goes to STOP. The CPU evaluates the SIMATIC memory card and indicates this by flashing the RUN/STOP LED.
Note Using the SIMATIC memory card as a firmware update card If you use the SIMATIC memory card as a firmware update card, removing and inserting the card will not result in the loss of retentive data.

Reference

You can find additional information on the SIMATIC memory card in the function manual.

234

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.3 Procedure for commissioning the S7-1500 automation system

11.3.2

First power-on of the CPU

Requirements

 An S7-1500 automation system is installed and the assembly is wired.  The SIMATIC memory card is inserted in the CPU.

Procedure

Proceed as follows to commission the CPU: Switch on the system power supply and load current supply. Result:  The CPU executes a flash test:
­ All LEDs flash at 2 Hz ­ RUN/STOP LED flashes alternately yellow/green ­ ERROR LED flashes red ­ MAINT LED flashes yellow  The CPU runs the system initialization and evaluates the SIMATIC memory card: ­ RUN/STOP LED flashes yellow at 2 Hz  After the system initialization has been completed, the CPU goes to STOP mode: ­ The RUN/STOP LED lights up yellow

Automation system System Manual, 11/2019, A5E03461182-AF

235

Commissioning 11.4 Procedure for commissioning the ET 200MP distributed I/O system

11.4

Procedure for commissioning the ET 200MP distributed I/O system

11.4.1

Commissioning the ET 200MP for PROFINET IO

Introduction

The commissioning of your automation system depends on the plant configuration.

Commissioning procedure
To commission the ET 200MP as IO device for PROFINET IO, proceed as follows:

Table 11- 2 Procedure for commissioning the ET 200MP as an IO device for PROFINET IO

Step 1 2
4 5 6
7 8 9
10

Procedure Install ET 200MP Connect ET 200MP · Supply voltages · PROFINET IO · Sensors and actuators Configure IO controller Switch on supply voltages for the IO controller Switch on supply voltages for IO devices
Download configuration to the IO controller Switch IO controller to RUN mode Check LEDs
Test inputs and outputs

See... Section Installation (Page 107) Section Wiring (Page 129)
CPU manual or documentation of the IO controller CPU manual or documentation of the IO controller Interface module (http://support.automation.sie mens.com/WW/view/en/6729 5970/133300) manual STEP 7 online help CPU manual or documentation of the IO controller Interface module (http://support.automation.sie mens.com/WW/view/en/6729 5970/133300) manual The following functions are helpful: Monitoring and modifying tags, testing with program status, forcing, modifying the outputs. See section Test and service functions (Page 301)

Note
The operating mode transitions for the IO controller from RUN to STOP or from STOP to RUN can take several milliseconds, until the mode transition for the inputs and outputs of all I/O modules for the ET 200MP station is completed. This delay also applies to isochronous mode.

236

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.4 Procedure for commissioning the ET 200MP distributed I/O system

11.4.2

Commissioning the ET 200MP for PROFIBUS DP

Introduction

The commissioning of your automation system depends on the plant configuration.

Commissioning procedure
To commission the ET 200MP as DP slave for PROFIBUS DP, proceed as follows:

Table 11- 3

Step 1 2
3
4 5 6
7 8 9
10

Procedure Install ET 200MP (with IM 155-5 DP ST) Set the PROFIBUS address on the interface module
Connect ET 200MP · Supply voltages · PROFIBUS DP · Sensors and actuators Configure DP master (including PROFIBUS address) Switch on supply voltages for DP master Switch on supply voltages for DP slaves
Download configuration to the DP master Switch DP master to RUN Check LEDs
Test inputs and outputs

See... Section Installation (Page 107) Manual for the interface module (http://support.automation.sie mens.com/WW/view/en/7791 0801/133300) Section Wiring (Page 129)
Documentation of the DP master Documentation of the DP master Interface module (http://support.automation.sie mens.com/WW/view/en/7791 0801/133300) manual STEP 7 online help Documentation of the DP master Interface module (http://support.automation.sie mens.com/WW/view/en/7791 0801/133300) manual The following functions are helpful: Monitoring and modifying tags, testing with program status, forcing, modifying the outputs. Section Test and service functions (Page 301)

Note
During operating mode transitions of the DP master from RUN to STOP or from STOP to RUN, it can take several milliseconds until the mode transition for the inputs and outputs of all I/O modules of the ET 200MP is complete.

Automation system System Manual, 11/2019, A5E03461182-AF

237

Commissioning 11.5 Operating modes

11.5

Operating modes

Introduction

Operating states describe the behavior of the CPU at a specific time. The following operating states are possible via the mode selector:  STARTUP  RUN  STOP In these operating modes, the CPU can communicate, for example, via the PROFINET IO interface (X1). The status LEDs on the front side of the CPU indicate the current operating mode.

11.5.1

STARTUP mode

Response

Before the CPU starts to execute the cyclic user program, a startup program is executed.
By suitably programming startup OBs, you can specify initialization tags for your cyclic program in the startup program. That is, you can set up one or several startup OBs in your program, or none at all.

238

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.5 Operating modes

Points to note

 All outputs are disabled or react according to the parameter settings for the respective module: They provide a substitute value as set in the parameters or retain the last value output and bring the controlled process to a safe operating mode.
 The process image is initialized.
 The process image is not updated. To read the current state of inputs during STARTUP, you can access inputs with direct I/O access. To initialize outputs during STARTUP, you can write values via the process image or with direct I/O access. The values are output at the outputs during the transition to the RUN mode.
 The CPU always starts up in a warm restart.
­ The non-retentive bit memories, timers and counters are initialized.
­ The non-retentive tags in data blocks are initialized.
 During startup, no cycle time monitoring is running yet.
 The CPU processes the startup OBs in the order of the startup OB numbers. The CPU processes all programmed startup OBs regardless of the selected startup mode. (Figure "Setting the startup behavior").
 If a corresponding event occurs, the CPU can start the following OBs in startup:
­ OB 82: Diagnostics interrupt
­ OB 83: Removal/insertion of modules
­ OB 86: Rack error
­ OB 121: Programming error (only for global error handling)
­ OB 122: Time-out (for global error handling only) You can find a description of how to use global and local error handling in the STEP 7 online help.
The CPU does not start all other OBs until the transition to RUN mode.

Automation system System Manual, 11/2019, A5E03461182-AF

239

Commissioning 11.5 Operating modes
Response when expected and actual configurations do not match
The configuration downloaded to the CPU represents the expected configuration. The actual configuration is the actual configuration of the automation system. If the expected configuration and actual configuration deviate from one another, the CPU's behavior is specified by the setting of the hardware compatibility. For additional information about the hardware compatibility, see the section Operating mode transitions (Page 244).
Cancellation of the startup
If errors occur during startup, the CPU cancels the startup and returns to STOP mode. The CPU does not perform startup or interrupts the startup under the following conditions:  You have not inserted a SIMATIC memory card or an invalid one is inserted.  You have not downloaded a hardware configuration to the CPU.
Configuring startup behavior
You configure the behavior of the CPU in the Startup group of the CPU properties.

240

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.5 Operating modes
Setting the startup behavior
To set the startup behavior, follow these steps: 1. Select the CPU in the device view of the STEP 7 hardware network editor. 2. In the properties under "General" select the "Startup" area.

Figure 11-2 Setting the startup behavior
 Sets the startup type after POWER ON  Defines the startup behavior for the case where a module in a slot does not correspond
to the configured module. This parameter applies to the CPU and to all the modules for which no other setting was selected.
· Startup CPU only if compatible: In this setting a module on a configured slot has to be compatible with the configured module. Compatible means that the module matches the number of inputs and output and must match with respect to its electrical and functional properties.
· Startup CPU even if mismatch: At this setting the CPU starts up irrespective of the type of module plugged.
For locally used modules you can configure the hardware compatibility in the parameter "Comparison preset to actual module" individually for each slot. When you change the setting of the hardware compatibility for a module, the setting made at the CPU does not apply for this module.
 Specifies a maximum period (default: 60000 ms) in which the central and distributed I/O
must be ready for operation. The communications modules (CM/CP) are supplied with voltage and communication parameters during the CPU startup. This parameter assignment time grants a period within which the I/O modules connected to the communication module (CM/CP) must be operationally ready. The CPU goes into RUN mode when the central and the distributed I/O is operationally ready within the parameter assignment time.
If the central and distributed I/O is not ready for operation within the configuration time, the startup characteristics of the CPU depends on the setting of the hardware compatibility.

Automation system System Manual, 11/2019, A5E03461182-AF

241

Commissioning 11.5 Operating modes
Example for the "Comparison preset to actual configuration" parameter
"Startup CPU only if compatible" The DI 32x24VDC HF input module with 32 digital inputs can be a compatible replacement for a DI 16x24VDC HF input module with 16 digital inputs. The pin assignment and all electrical and functional properties are identical. "Startup CPU even if mismatch" Instead of a configured digital input module, you insert an analog output module or no module is present in this slot and thus in all subsequent slots. Although the configured inputs cannot be accessed, the CPU starts up. Note that the user program cannot function correctly in this case. Therefore, take appropriate measures!

11.5.2

STOP mode

Response

The CPU does not execute the user program in STOP mode.
All outputs are disabled or react according to the parameter settings for the respective module: They provide a substitute value as set in the parameters or retain the last value output and thus hold the controlled process in a safe operating mode.

242

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.5 Operating modes

11.5.3

RUN mode

Response

In "RUN" mode the cyclic, time-driven, and interrupt-driven program execution is performed. Addresses that are in the "Automatic Update" process image are automatically updated in each program cycle. For additional information, see section Process images and process image partitions (Page 180).

Execution of the user program
Once the CPU has written the outputs and read the inputs, it runs through the cyclic program from the first instruction to the last instruction. Events with higher priority, such as hardware interrupts, diagnostic interrupts and communication, can interrupt the cyclic program flow and prolong the cycle time.
If you have configured a minimum cycle time, the CPU will not end the cycle until this minimum cycle time has expired, even if the user program is completed sooner.
The operating system monitors the execution time of the cyclic program for a configurable upper limit known as the maximum cycle time. You can restart this time monitoring at any point in your program by calling the RE_TRIGR instruction.
If the cyclic program exceeds the maximum cycle time, the operating system starts the time error OB (OB 80). If the OB is not present, the CPU ignores that the maximum cycle time was exceeded. If the cycle monitoring time is exceeded a second time, e.g. while the time error OB is being processed, the CPU goes to STOP mode.

Reference

Additional information about cycle and response times is available in the Function Manual Cycle and response times (http://support.automation.siemens.com/WW/view/en/59193558).

Automation system System Manual, 11/2019, A5E03461182-AF

243

Commissioning 11.5 Operating modes

11.5.4

Operating mode transitions

Operating modes and operating mode transitions
The following figure shows the operating modes and the operating mode transitions:

Figure 11-3 Operating modes and operating mode transitions The table below shows the effects of the operating mode transitions:

Table 11- 4 Operating mode transitions

No. Operating mode transitions

Effects



POWER ON 

STARTUP

After switching on, the CPU switches to "STARTUP" mode if:
· The hardware configuration and program blocks are consistent.
· Startup type "Warm restart - RUN" is set.
or
· Startup type "Warm restart mode before POWER OFF" is set and the CPU was in RUN mode before POWER OFF.

The CPU clears the non-retentive memory, and resets the content of non-retentive DBs to the start values of the load memory. Retentive memory and retentive DB contents are retained.
The 500 newest entries in the diagnostics buffer are retained.



POWER ON 

STOP

After switching on, the CPU goes to "STOP" mode if: The CPU clears the non-retentive

·

The hardware configuration and program blocks are inconsistent.

memory, and resets the content of non-retentive DBs to the start values of the load memory. Re-

or · Startup type "No restart" is set.
or · Startup type "Warm restart mode before POWER

tentive memory and retentive DB contents are retained.
The 500 newest entries in the diagnostics buffer are retained.

OFF" is set and the CPU was in STOP mode before

POWER OFF.

244

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.5 Operating modes

No. Operating mode transitions

Effects



STOP  STARTUP The CPU switches to "STARTUP" mode if:

The CPU clears the non-retentive

·

The hardware configuration and program blocks are consistent.

memory, and resets the content of non-retentive DBs to the start values of the load memory. Re-

· You set the CPU to "RUN" mode via the program- tentive memory and retentive DB

ming device or the display and the mode switch in contents are retained.

is RUN position.

The 500 newest entries in the

or

diagnostics buffer are retained.

· You set the mode selector from STOP to RUN or press the operating mode button RUN.1)



STARTUP  STOP In the following cases the CPU returns from

"STARTUP" to "STOP" mode when:

These operating mode transitions have no effect on data.

· The CPU detects an error during startup.
· You set the CPU to "STOP" via the programming device, display or mode selector switch / keys.1)
· The CPU executes a STOP command in the Startup OB.



STARTUP  RUN In the following cases, the CPU goes from "STARTUP"

to "RUN" mode when:

· The CPU has initialized the PLC tags.
· The CPU has executed the startup blocks successfully.



RUN  STOP

In the following cases the CPU returns from "RUN" back to "STOP" mode when:

· The CPU detects an error which prevents further work.
· The CPU executes a STOP command in the user program.
· You set the CPU to "STOP" via the programming device, display or mode selector switch / keys.1)

1) Standard, F-CPUs / compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-1CK01-0AB0: You switch the mode using keys (RUN and STOP).

Automation system System Manual, 11/2019, A5E03461182-AF

245

Commissioning 11.6 CPU memory reset

11.6

CPU memory reset

Basics of a memory reset
The CPU must be in STOP mode for a memory reset.
A memory reset returns the CPU to its "initial state".
Memory reset means:  An existing online connection between your programming device/PC and the CPU is
terminated.  The content of the work memory and the retentive and non-retentive data are deleted
(with manual memory reset).  The diagnostics buffer, time of day, and IP address are retained.  Subsequently the CPU is initialized with the loaded project data (hardware configuration,
code and data blocks, force jobs). The CPU copies this data from the load memory to the work memory.
Result:
­ If you set an IP address in the hardware configuration ("Set IP address in the project" option) and a SIMATIC memory card with the project is in the CPU, this IP address is valid after the memory reset.
­ Data blocks no longer have current values but rather their configured start values.
­ Force jobs remain active.

Detecting a CPU memory reset
The RUN/STOP LED flashes yellow at 2 Hz. After completion, the CPU switches to STOP. The RUN/STOP LED is on (constant yellow light).

Result after memory reset
The following table provides an overview of the contents of the memory objects after memory reset.

Table 11- 5 Memory objects after memory reset
Memory object Actual values of the data blocks, instance data blocks Bit memories, timers and counters Retentive tags of technology objects (e.g. adjustment values of absolute encoders) Diagnostics buffer entries IP address Device name Counter readings of the runtime meters Time of day

Contents Initialized Initialized Retained
Retained Retained Retained Retained Retained

246

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.6 CPU memory reset

11.6.1

Automatic memory reset

Possible causes of automatic memory reset
The CPU executes an automatic memory reset if an error occurs that prevents normal further processing.
Examples of such errors:
 User program is too large and cannot be loaded to the work memory in full.
 The project data on the SIMATIC memory card are damaged, for example because a file was deleted.
 You remove or insert the SIMATIC memory card. The backed-up retentive data differs in structure from the data in the configuration on the SIMATIC memory card.

11.6.2

Manual memory reset

Reason for manual memory reset
Memory reset is required to reset the CPU to the "original state".

CPU memory reset
Three options are available for performing a CPU memory reset:  Using the mode selector switch / mode selector keys  Using the display  Using STEP 7

Automation system System Manual, 11/2019, A5E03461182-AF

247

Commissioning 11.6 CPU memory reset

Procedure using the mode selector
Note Memory reset  Reset to factory settings The procedure described below also corresponds to the procedure for resetting to factory settings: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
To perform a memory reset of the CPU using the mode selector, follow these steps: 1. Set the mode selector to the STOP position.
Result: The RUN/STOP LED lights up yellow. 2. Set the mode selector to the MRES position. Hold the switch in this position until the
RUN/STOP LED lights up for the second time and remains continuously lit after three seconds. After this, release the selector. 3. Within the next three seconds, switch the mode selector back to the MRES position, and then back to STOP again. Result: The CPU executes memory reset. For information on resetting the CPU to factory settings, refer to the section Resetting the CPU to factory settings (Page 292).

Procedure using the mode selector keys (standard, F-CPUs / compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-1CK01-0AB0)
Note Memory reset  Reset to factory settings
The procedure described below also corresponds to the procedure for resetting to factory settings: · Key operation with inserted SIMATIC memory card: CPU executes a memory reset · Key operation without inserted SIMATIC memory card: CPU executes reset to factory
settings

To perform a memory reset of the CPU using the mode selector keys, follow these steps: 1. Press the STOP mode selector key.
Result: The STOP ACTIVE and RUN/STOP LED light up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd
time and remains continuously lit after three seconds. After this, release the key.
3. Press the STOP mode selector key again within the next three seconds.
Result: The CPU executes memory reset.
For information on resetting the CPU to factory settings, refer to the section Reset CPU to factory settings (Page 292).

248

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.7 Backing up and restoring the CPU configuration
Procedure using the display
To navigate to the desired "Memory reset" menu command, select the following sequence of menu commands and confirm after each selection with "OK".  Settings  Reset  Memory reset Result: The CPU executes memory reset.
Procedure using STEP 7
To perform a memory reset of the CPU via STEP 7, follow these steps: 1. Open the "Online Tools" task card of the CPU. 2. Click the "MRES" button in the "CPU control panel" pane. 3. Click "OK" in response to the confirmation prompt. Result: The CPU is set to STOP mode and performs memory reset.

11.7

Backing up and restoring the CPU configuration
Backup from online device You may make changes in the operation of your plant. For example, you may add new devices, replace existing ones or adapt the user program. If these changes result in undesirable behavior, you can restore the plant to an earlier state. Before you download a changed configuration to the CPU, first use the option "Backup from online device" to create a complete backup of the current device state.
Upload from device (software) With the option "Upload from device (software)", you load the software project data from the CPU to an existing CPU in the project.
Upload device as new station If you are operating a new PG/PC in the plant, the STEP 7 project that was used to create the plant configuration might not be available. In this case, you can use the option "Upload device as new station" to load the data to a project in your PG/PC.
Snapshot of the monitor values To allow you to restore the actual values at a later date, back up the actual values of the data blocks using the option "Snapshot of the observed values".

Automation system System Manual, 11/2019, A5E03461182-AF

249

Commissioning 11.7 Backing up and restoring the CPU configuration

Overview of backup types
The table below shows the backup of CPU data depending on the selected type of backup and its specific characteristics:

Table 11- 6 Types of backup

Current values of all DBs (global and instance data blocks) 1 Blocks of the type OB, FC, FB and DB PLC tags (tag names and constant names) Technology objects Hardware configuration Actual values (bit memories, timers and counters)1 Content of the SIMATIC memory card Archives, recipes Entries in the diagnostics buffer Current time
Backup possible for fail-safe CPUs Backup can be edited Backup possible in operating mode

Backup from online device


Upload from device (software)
















--



--



--



--

--

--

--

--

Properties of the type of backup





--



STOP

RUN, STOP

1 Only the values of the tags that are set as retentive are saved. 2 Contents of the DataLogs, Recipes and UserFiles folders

Upload device as new station 


  --
2
----
  RUN, STOP

Snapshot of the monitor values

--
--
----
--
----
  RUN, STOP

Example: Backup from online device
The following example shows how to carry out a complete backup of the current device state of the CPU in STEP 7. The S7-1500 automation system is in RUN mode. Before the backup, the CPU goes into STOP mode.
To start the backup, proceed as follows:
1. Right-click to select the CPU in the project tree.
2. Select the "Backup from online device" command from the shortcut menu. The "Upload preview" dialog window sets out the key information on the backup process to be run. For a backup you have to switch the CPU to the STOP mode.
3. In the "Action" column, select the "Stop module" command from the drop-down menu.
4. Click "Upload from device". The CPU changes to STOP mode. The backup of the CPU data starts. The backup is saved in the project tree in the folder of the CPU under "Online backups".

250

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.7 Backing up and restoring the CPU configuration

Example: Restoring a backup of an online device
If you have saved the CPU data beforehand, you can transfer the backup back to the device. The saved backup is then restored to the CPU.
The S7-1500 automation system is in RUN mode. Before the restoration, the CPU goes into STOP mode.
To start the backup restore, proceed as follows:
1. Open the CPU's folder in the project navigator. The lower-level objects are displayed.
2. Open the "Online backups" folder.
3. Select the backup you want to restore.
4. In the "Online" menu, select the "Download to device" command.
5. The "Load preview" dialog window sets out the key information on the restore process to be run. For a restoration you have to switch the CPU to the STOP mode.
6. In the "Action" column, select the "Overwrite" command from the drop-down menu.
7. Click "Download". The CPU changes to STOP mode. The backup is transferred to the CPU and restored. The "Load results" dialog then opens. In this dialog, you can check whether or not the loading operation was successful and take any further action that may be necessary (no action, start modules).
8. Click "Finish".

Reference

You can find additional information on the different backup methods in the STEP 7 online help.

Emergency address (Emergency IP)
The emergency address (emergency IP address) of a CPU is intended for diagnostic and download functions, e.g. when the CPU is no longer accessible via the IP protocol after a wrong project is downloaded. For information on the emergency address, please refer to the Communication (https://support.industry.siemens.com/cs/ww/de/view/59192925/en) function manual.

Automation system System Manual, 11/2019, A5E03461182-AF

251

Commissioning 11.7 Backing up and restoring the CPU configuration
Storage of multilingual project texts
When you configure a CPU, texts of different categories result, e.g.
 Object names (names of blocks, modules, tags, etc.)
 Comments (for blocks, networks, watch tables, etc.)
 Messages and diagnostic texts
Texts are provided by the system, for example texts in the diagnostics buffer, or they are created during configuration, for example, messages.
Texts exist in the project in one language or, after a translation process, in multiple languages. You can maintain project texts in all languages available to you in the project tree (Languages & resources > Project texts). The texts produced when configuring can be downloaded to the CPU.
The following texts are downloaded in the selected languages with the project data to the CPU and are also used by the Web server/CPU display:
 Diagnostics buffer texts (cannot be changed)
 Status texts for the module status (cannot be changed)
 Message texts with associated text lists
 Tag comments and step comments for S7 GRAPH and PLC Code Viewer
 Comments in watch tables
The following texts are also downloaded in the selected languages with the project languages to the CPU but are not used by the Web server/CPU display:
 Comments in tag tables (for tags and constants)
 Comments in global data blocks
 Comments of elements in block interfaces of FBs, FCs, DBs and UDTs
 Network titles in blocks written in LAD, FBD or STL
 Block comments
 Network comments
 Comments of LAD and FBD elements
The S7-1500 CPUs support the storage of multilingual project texts in up to three different project languages. If the project texts for a project language nevertheless exceed the memory space reserved for them, the project cannot be downloaded to the CPU. The download is aborted with a notice that not enough memory space is available. In such a case, take measures to reduce the required storage space, for example by shortening comments.
You will find information on parameterization of multilingual project texts in STEP 7 in the STEP 7 online help.

252

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.8 Time synchronization
Size of files and size of the SIMATIC memory card
Note SIMATIC memory card Make sure that there is enough available storage space on your SIMATIC memory card for downloading projects. To download and back up projects, the project size and the size of the files on the SIMATIC memory card must be less than 2 GB. Do not manipulate any contents in the OMSSTORE directory on the SIMATIC memory card.
You can find information on reading out the memory usage of the CPU and the SIMATIC memory card in the Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/de/de/view/59193101/en) Function Manual.

11.8

Time synchronization

Introduction

All CPUs are equipped with an internal clock. The clock shows:  The time of day with a resolution of 1 millisecond  The date and the day of the week The CPU take into account the time change caused by daylight saving time. You can synchronize the time of the CPUs with an NTP server in NTP mode.

Principle of operation
In NTP mode, the device sends time queries at regular intervals (in client mode) to the NTP server in the subnet (LAN). Based on the replies from the server, the most reliable and most accurate time is calculated and the time of day on the CPU is synchronized. The advantage of this mode is that it allows the time to be synchronized across subnets. You can synchronize the time of day of up to a maximum of four NTP servers. You address a communications processor or an HMI device, for example, as sources for time synchronization via the IP addresses.
The update interval defines the interval between the time queries (in seconds). The value of the interval ranges between 10 seconds and one day. In NTP mode, it is generally UTC (Universal Time Coordinated) that is transferred. UTC corresponds to GMT (Greenwich Mean Time).

Automation system System Manual, 11/2019, A5E03461182-AF

253

Commissioning 11.8 Time synchronization
NTP server for the CPU S7-1500
You can assign up to 4 NTP servers to a CPU S7-1500. In STEP 7, you enable time synchronization using the NTP procedure. In STEP 7 you can configure up to four NTP servers for the CPU S7-1500. If you have enabled time synchronization via NTP for the CPU, then you can enter the IP addresses of up to four NTP servers in the user program. For this, use the "T_CONFIG" instruction.
Enabling time synchronization via NTP server
Proceed as follows to enable time synchronization via NTP server for the S7-1500 CPU: 1. Navigate in the Inspector window to the properties of the CPU to "General" > "PROFINET
interface" > Time synchronization". 2. Select the "Enable time synchronization via NTP server" option.
Configuring NTP server in STEP 7
To configure one or more NTP servers for the S7-1500 CPU, follow these steps: 1. Navigate in the Inspector window to the properties of the CPU to "General" > "PROFINET
interface" > Time synchronization". 2. Enter the IP addresses of up to 4 NTP servers at the parameters "Server 1" to "Server 4". 3. Set the time interval of the time queries at the parameter "Update interval". Set the
update interval to between 10 s and 86400 s.
Changing the IP addresses of the NTP servers with the "T_CONFIG" instruction
For the CPU, you can change the addresses of up to 4 NTP servers via the instruction T_CONFIG during runtime. Requirement: You have configured at least one NTP server in STEP 7. Even if you have only configured one NTP server, you can still configure up to four NTP servers in the T_CONFIG instruction. To change the IP addresses of the NTP servers with the T_CONFIG instruction, proceed as follows: 1. Store the IP addresses for the NTP servers in a tag of the data type IF_CONF_NTP. 2. Connect the tag of the data type IF_CONF_NTP to the block parameter CONF_DATA of
the instruction T_CONFIG. 3. Call the T_CONFIG instruction in the user program. Result: The CPU adopts the addresses of the NTP servers from the T_CONFIG instruction. The addresses of the NTP servers configured in STEP 7 are overwritten. If necessary, you can change the addresses of the NTP servers several times with T_CONFIG.

254

Automation system System Manual, 11/2019, A5E03461182-AF

Reference

Commissioning 11.8 Time synchronization
For additional information on time-of-day synchronization - time synchronization, refer to the following FAQ on the Internet (https://support.industry.siemens.com/cs/de/en/view/86535497).

11.8.1

Example: Configuring and changing NTP server

Configuring time synchronization with your own NTP server
Automation task You use your own server in your network. Your own server provides you with the following advantages:  Protection against unauthorized accesses from outside
 Every device that you synchronize with your own NTP server uses the same time.
You want to synchronize the S7-1500 CPU with this NTP server. Conditions and parameters You have your own server in your network with the IP address 192.168.1.15. You are in STEP 7 in the Inspector window in the properties of the PROFINET interface X1. Solution 1. Navigate to "Properties > General > PROFINET interface > Time synchronization > NTP
procedure".
2. In "Server 1:", enter the IP address of the NTP server: 192.168.1.15.

Figure 11-4 Example: Configuring the NTP server 3. Download the hardware configuration to the CPU. Result The S7-1500 synchronizes the time with the NTP server 192.168.1.15.

Automation system System Manual, 11/2019, A5E03461182-AF

255

Commissioning 11.8 Time synchronization
Changing the IP address of an NTP server in the user program
Automation task You change the NTP server in your network. The new NTP server has the address "192.168.1.10". You want to change the IP address of the NTP server with which your CPU is synchronized, via the user program. The example shows how you change the IP address of the NTP server to "192.168.1.10"via the user program with the instruction "T_CONFIG".
Conditions and parameters Requirement:  You have activated the "Enable time synchronization via NTP server" option for your CPU
in STEP 7.  You have configured the following NTP server in STEP 7: Server 1 "192.168.1.15" To change the IP addressed for NTP servers, use the following block parameter of the "T_CONFIG" instruction:  Req: A positive edge at the block parameter "Req" starts a job of the "T_CONFIG"
instruction.  Interface: Enter the HW ID of the PROFINET interface 1 of the CPU at the block
parameter "Interface". In this example, the HW ID is "64".  Conf_Data: Area in which you save the IP addresses of the NTP server. Use the data
type "IF_CONF_NTP" for this purpose.

256

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.8 Time synchronization
Solution To change the IP address of the NTP server in the user program to "192.168.1.10", follow these steps: 1. Create a global data block in the project tree under "Program blocks > Add new block".
Name the global data block "NTP". 2. Create a tag of the data type "IF_CONF_NTP" in the global data block "NTP".

Figure 11-5 Example data block with IF_CONF_NTP
3. Create a "T_CONFIG" instruction in the user program. 4. Connect the "T_CONFIG" instruction as follows.

Figure 11-6 Example T_CONFIG: Change NTP server

Automation system System Manual, 11/2019, A5E03461182-AF

257

Commissioning 11.9 Identification and maintenance data
5. In the user program, assign the IP address 192.168.1.10 to the data type "IF_CONF_NTP":
"NTP".NTP_Server.NTP_IP[1].ADDR[1] := 192; "NTP".NTP_Server.NTP_IP[1].ADDR[2] := 168; "NTP".NTP_Server.NTP_IP[1].ADDR[3] := 1; "NTP".NTP_Server.NTP_IP[1].ADDR[4] := 10;
6. You change the IP address of the NTP server by generating a positive edge for the tag "change_NTP-Server" in the user program.
"NTP"."change_NTP-Server" := true;
Result The S7-1500 synchronizes the time with the NTP server 192.168.1.10.

11.9

Identification and maintenance data

11.9.1

Reading out and entering I&M data

I&M data

Identification and maintenance data (I&M data) is information saved on the module. The data is:
 Read-only (I data) or
 Readable/writable (M data)
Identification data (I&M0): Manufacturer information about the module that can only be read. Some identification data is also printed on the housing of the module, for example article number and serial number. Maintenance data (I&M1, 2, 3): Plant-specific information, for example installation location. Maintenance data for the S7-1500/ET 200MP is created during configuration and downloaded to the automation system/distributed I/O system.
All modules of the S7-1500/ET 200MP support identification data I&M0 through I&M3.
The I&M identification data supports you in the following activities:
 Checking the plant configuration
 Locating hardware changes in a plant
 Correcting errors in a plant
Modules can be clearly identified online using the I&M identification data.

258

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.9 Identification and maintenance data

Options for reading out I&M data
 Via the user program  Using the display of the CPU  Via STEP 7 or HMI devices  Via the CPU web server

Reading I&M data via the user program
You have the following options for reading module I&M data in the user program:
 Using the RDREC instruction
The data record structure for centrally inserted modules as well as for distributed modules that are accessible via PROFINET IO/PROFIBUS DP is described in the section Record structure for I&M data (Page 260).
 Using the Get_IM_Data instruction

Reference

The description of the instructions can be found in the STEP 7 online help.

Reading I&M data from displays
To read the I&M data "Plant designation" or "Location identifier" of the CPU via the display, follow these steps: 1. Navigate to the "Overview/PLC" menu on the display of the CPU. 2. Select "Plant designation" or "Location identifier" and confirm with "OK".
To read the I&M data "Plant designation" or "Location identifier" of a centrally used module, follow these steps: 1. Navigate to the "Modules" menu on the display of the CPU. 2. Select the menu command "Local modules" and confirm with "OK". 3. Select the slot of the module (e.g., slot 3: DI 32 x 24VDC HF) and confirm with "OK". 4. Select the "Status" and confirm with OK. 5. Select "Plant designation" or "Location identifier" and confirm with "OK".
To read the I&M data "Plant designation" or "Location identifier" of a module used in distributed mode, follow these steps: 1. Navigate to the "Modules" menu on the display of the CPU. 2. Select the corresponding distributed I/O system (for example PROFINET IO system) and
confirm with "OK". 3. Select the corresponding device (for example ET 200SP-Station_1) and confirm with
"OK". 4. Select the slot of the module (e.g., slot 1: DI 16 x DC24V ST_1) and confirm with "OK". 5. Select the "Status" and confirm with OK. 6. Select "Plant designation" or "Location identifier" and confirm with "OK".

Automation system System Manual, 11/2019, A5E03461182-AF

259

Commissioning 11.9 Identification and maintenance data
Reading I&M data via STEP 7
Requirement: There must be an online connection to the CPU/interface module. To read I&M data using STEP 7, follow these steps: 1. In the project tree, select the CPU/the interface module. 2. Go to "Online & diagnostics". 3. In the "Diagnostics" folder, select the "General" area.
Enter maintenance data via STEP 7
STEP 7 assigns a default module name. You can enter the following information:  Plant designation (I&M 1)  Location identifier (I&M 1)  Installation date (I&M 2)  Additional information (I&M 3) To enter maintenance data via STEP 7, follow these steps: 1. In the device view of STEP 7, select the CPU/interface module or a module. 2. Go to properties, "General", and select the "Identification & Maintenance" area 3. Enter the data. During the loading of the hardware configuration, the maintenance data (I&M 1, 2, 3) are also loaded.
Procedure for reading I&M data via the Web server
The procedure is described in detail in the Web server Function Manual (http://support.automation.siemens.com/WW/view/en/59193560).

11.9.2

Record structure for I&M data

260

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.9 Identification and maintenance data

Reading I&M records via user program (centrally and distributed via PROFINET IO)
Use Read data record ("RDREC" instruction) to access specific identification data. Under the associated record index you obtain the corresponding part of the identification data.
The records are structured as follows:

Table 11- 7 Basic structure of data records with I&M identification data

Contents Header information BlockType
BlockLength
BlockVersionHigh BlockVersionLow Identification data Identification data (see table below)

Length (bytes)
2
2
1 1
I&M0/Index AFF0H: 54 I&M1/Index AFF1H: 54 I&M2/Index AFF2H: 16 I&M3/Index AFF3H: 54

Coding (hex)
I&M0: 0020H I&M1: 0021H I&M2: 0022H I&M3: 0023H I&M0: 0038H I&M1: 0038H I&M2: 0012H I&M3: 0038H 01 00
-

Table 11- 8 Record structure for I&M identification data

Identification data

Access

Identification data 0: (record index AFF0H)

VendorIDHigh

read (1 bytes)

VendorIDLow

read (1 bytes)

Order_ID

read (20 bytes)

Example
0000H 002AH 6ES7516-3AN00-0AB0

IM_SERIAL_NUMBER IM_HARDWARE_REVISION

read (16 bytes) read (2 bytes) 1

IM_SOFTWARE_REVISION · SWRevisionPrefix

read (1 byte)

· IM_SWRevision_Functional_ (1 byte) Enhancement

· IM_SWRevision_Bug_Fix

(1 byte)

· IM_SWRevision_Internal_ Change

(1 byte)

Firmware version V 0000H - 00FFH
0000H - 00FFH 0000H - 00FFH

Explanation
Vendor name (002AH = SIEMENS AG)
Part number of the module (e.g. CPU 1516-3 PN/DP) Serial number (device-specific) corresponds to hardware version (e.g. 1) Provides information about the firmware version of the module (e.g. V1.0.0)

Automation system System Manual, 11/2019, A5E03461182-AF

261

Commissioning 11.9 Identification and maintenance data

Identification data IM_REVISION_COUNTER

Access read (2 bytes)

IM_PROFILE_ID

read (2 bytes)

IM_PROFILE_SPECIFIC_TYPE read (2 bytes)

IM_VERSION · IM_Version_Major · IM_Version_Minor IM_SUPPORTED

read (1 byte) (1 byte) read (2 bytes)

Maintenance data 1: (Record index AFF1H)

IM_TAG_FUNCTION

read/write (32 bytes)

IM_TAG_LOCATION

read/write (22 bytes)

Maintenance data 2: (Record index AFF2H)

IM_DATE

read/write (16 bytes)

Maintenance data 3: (Record index AFF3H)

IM_DESCRIPTOR

read/write (54 bytes)

Example 0000H
0000 H 0001H 0003H 0101H
000EH
-
YYYY-MM-DD HH:MM
-

Explanation Provides information about parameter changes on the module (not used) Generic Device CPU I/O modules Provides information on the ID data version (0101H = Version 1.1)
provides information about the available identification and maintenance data (I&M1 to I&M3)
Enter an identifier for the module here, that is unique plant-wide. Enter the installation location of the module here.
Enter the installation date of the module here.
Enter a comment about the module here.

Reading I&M records with record 255 (distributed configuration via PROFIBUS)
Use Read data record ("RDREC" instruction) to access specific identification data.
The modules support standardized access to identification data using DR 255 (index 65000 to 65003). For additional information on the DR 255 data structure, refer to the specifications of the Profile Guidelines Part 1: Identification & Maintenance Functions - Order no.: 3.502, Version 1.2, October 2009.

262

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.9 Identification and maintenance data

11.9.3

Example: Read out firmware version of the CPU with Get_IM_Data

Automation task
You want to check whether the modules in your automation system have the current firmware. The firmware version of the modules can be found in the I&M0 data. The I&M0 data is the basic information for a device. The I&M0 data contains information, for example:
 Manufacturer ID
 Article number and serial number
 Hardware and firmware version.
To read out the I&M0 data, use the "Get_IM_Data" instruction. You read the I&M0 data of all modules in the user program of the CPU with "Get_IM_Data" instructions and store the I&M data in a data block.

Conditions and parameters
To read out the I&M data of the CPU, use the following block parameters of the "Get_IM_Data" instruction:
 LADDR: Enter the HW ID of the module at the block parameter "LADDR".
 IM_TYPE: Enter the I&M data number (e.g. "0" for I&M 0 data) at the block parameter "IM_TYPE".
 DATA: Area for storing the read I&M data (for example. in a global data block). Store the I&M0 data in an area of the data type "IM0_Data".
This example shows how to read out the I&M 0 data of a CPU 1511-1 PN (6ES7511-1AK000AB0). To read out the I&M 0 data of a different module, simply use the HW ID of the module at the parameter LADDR.

Solution

To read out the I&M 0 data of the CPU, follow these steps:
1. Create a global data block to store the I&M 0 data.
2. Create a structure of the data type "IM0_Data" in the global data block. You can assign any name to the structure ("imData") in this case.

Figure 11-7 Example: Data block for I&M data 3. Create the Insert the "Get_IM_Data" instruction in the user program, e.g. in OB 1.

Automation system System Manual, 11/2019, A5E03461182-AF

263

Commissioning 11.9 Identification and maintenance data
4. Connect the "Get_IM_Data" instruction as follows:
Figure 11-8 Example: Reading out I&M0 data 5. Call the "Get_IM_Data" instruction in the user program. Result The "Get_IM_Data" instruction has stored the I&M0 data in the data block. You can view the I&M0-Daten online in STEP 7, for example, in the data block with the "Monitor all" button. The CPU in the example is a CPU 1511-1 PN (6ES7511-1AK00-0AB0) with firmware version V1.5.

Figure 11-9 Example: I&M0 data of an S7-1500 CPU

264

Automation system System Manual, 11/2019, A5E03461182-AF

Commissioning 11.10 Shared commissioning of projects

11.10

Shared commissioning of projects

Team Engineering
In Team Engineering, several users from various engineering systems work on a project at the same time and access one S7-1500 CPU.
The users can edit separate parts of a master project independently of one another at the same time. The CPU show the changes of the other editors in a synchronization dialog during the loading of the configuration into the CPU and synchronizes the changes automatically, if possible.
Certain online functions can also be executed in parallel from several engineering systems on a shared CPU, such as:
 Monitoring blocks on the CPU
 Modifying blocks on the CPU
 Trace functions
You can find detailed information on the topic of Team Engineering in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

265

CPU display

12

Introduction

The section below gives an overview of the mode of operation of the CPU display. Detailed information on the individual options, a training course and a simulation of the selectable menu items is available in the SIMATIC S7-1500 Display Simulator (https://support.industry.siemens.com/cs/ww/en/view/109761758).

Display

The S7-1500 CPU has a display and operating keys. The display of the CPU shows you the control and status information in different menus. You use operating keys to navigate through the menus and make a variety of settings in the process.

Benefits

The display of the CPU offers the following advantages:
 Reduced downtimes through diagnostic messages in plain text
 Tine saving during the commissioning, maintenance and downtime of the plant by changing interface settings (e.g. IP address) of CPU and connected CMs/CPs. No programming device is required.
 Shorter downtimes due to read/write access to force tables and read/write access to watch tables. This allows the current values of the individual tags of a user program or a CPU to be monitored and changed by the monitoring and force tables. You can find additional information on the watch and force tables in the section Test functions and fault correction (Page 301) and in the STEP 7 online help.
 On site, an image (backup copy) of the functioning plant can be
­ Backed up on the SIMATIC memory card of the CPU
­ Restored from the SIMATIC memory card of the CPU
You do not require an additional PG/PC.
 For F-CPUs: Overview of status of safety mode and of F-parameters of F-CPU and F-I/O.

Password protection for the display
In the properties of the CPU, assign parameters for a password in STEP 7 for the display operation. Local access protection is thus protected via a local password.

266

Automation system System Manual, 11/2019, A5E03461182-AF

CPU display

Operating temperature for the display
To increase the service life of the display, the display switches off when the permitted operating temperature is exceeded. When the display has cooled down again, it switches on automatically again. When the display is switched off, the LEDs continue to show the status of the CPU.
Information about the temperatures at which the display switches off and back on again is available in the technical data of the manuals of the CPUs.

Display

The following figures show an example of a CPU with large display (left: for example, CPU 1516-3 PN/DP) and a CPU with small display (right: for example, CPU 1511-1 PN).

 CPU status information  Names of the menus  Data display field  Navigation aid, e.g. OK/ESC or the page number
Figure 12-1 Example views of the displays

Automation system System Manual, 11/2019, A5E03461182-AF

267

CPU display

Regarding : CPU status information
The following table shows the CPU status information that can be retrieved via the display.

Table 12- 1 CPU status information

Color and icons for the status data Green Orange
Red White

Meaning
RUN · STOP · STOP - firmware update FAULT · Connection established between CPU and display. Protection level configured.

· At least one interrupt is active in the CPU. · No SIMATIC memory card inserted in the CPU. · The serial number to which a know-how-protected block is
bound, does not match the serial number of the CPU or the SIMATIC memory card. · No user program loaded. Force job is active in the CPU.
F-capability activated. Safety operation active (for fail-safe CPUs) The symbol is grayed out when safety mode is deactivated.
Fail-safe CPU (for fail-safe CPUs).

268

Automation system System Manual, 11/2019, A5E03461182-AF

CPU display

Regarding : Names of the menus
The following table shows the available menus of the display.

Table 12- 2 Names of the menus

Main menu items

Meaning Overview

Diagnostics Settings

Description The "Overview" menu contains information about: · The properties of the CPU · The properties of the inserted SIMATIC memory card · Whether a know-how protection or a linking of the serial
number exists. The following information is displayed for F-CPUs: · The status of the safety mode · The collective signature · The date of the last changes
The "Diagnostics" menu includes: · The display of diagnostic messages. · Read/write access to force and watch tables. · Display of cycle time. · Display of CPU memory utilization. · Display of interrupts.
In the "Settings" menu you: · Assign the IP addresses and the PROFINET device name
of the CPU. · Set the network properties of each CPU interface. · Set the date, time, time zones, operating modes
(RUN/STOP) and protection levels. · Disable/enable display with display password · Perform a CPU memory reset. · Perform a reset to factory settings. · Format the SIMATIC memory card. · Delete the user program. · Back up/restore the CPU configuration to/from the
SIMATIC memory card. · View the status of the firmware update. · Convert the SIMATIC memory card into a program card

Automation system System Manual, 11/2019, A5E03461182-AF

269

CPU display

Main menu items

Meaning Modules

Display

Description
The "Modules" menu contains information about the central and distributed modules that are used in your configuration.
Peripherally deployed modules are connected to the CPU via PROFINET and/or PROFIBUS.
You can set the IP addresses for the CPU or a CP/CM here.
Fail-safe parameters are displayed for F-modules.
In the "Display" menu you can configure settings related to the display, such as language setting, brightness and energysaving mode. The energy-saving mode dims the display. The standby mode selectors the display off.

Menu icons

The following table shows the icons that are displayed in the menus.

Table 12- 3 Menu icons

Icon

Meaning

Editable menu item.

Select the desired language here.

A message is available in the next lower level page.

There is an error in the next lower level page.

The marked module is not accessible.

Navigate to the next lower level page.

In edit mode you make the selection using two arrow keys: · Down/up: jumps to the selection or is used to select the desired digits/options. In edit mode you make the selection using four arrow keys: · Down/up: jumps to the selection or is used to select the desired digits. · Left/right: jumps one spot forward or backward. The alarm is not yet acknowledged.

The alarm is acknowledged.

270

Automation system System Manual, 11/2019, A5E03461182-AF

CPU display

Control keys

You operate the display using the following keys:
 Four arrow keys: "up", "down", "left", "right" If you press and hold an arrow key for 2 seconds, this generates an automatic scroll function.
 One ESC key
 One OK key

Figure 12-2 Control keys
Note If the display is in energy-saving mode or in standby mode, you can exit this mode by pressing any key.
Functions of the "OK" and "ESC" keys
 For menu commands in which an entry can be made: ­ OK  valid access to the menu command, confirmation of input, and exit from the edit mode ­ ESC  Restore original content (changes are not saved) and exit edit mode
 For menu commands in which no entry can be made: ­ OK  to next submenu command ­ ESC  back to previous menu command
Hold ESC for about 3 seconds on any screen of the display. Result: You automatically return to the home page.

Automation system System Manual, 11/2019, A5E03461182-AF

271

CPU display

Tooltips

Some of the values shown on the display can exceed the available display width. The values in question include:
 Station name
 Plant designation
 Location identifier
 PROFINET device name
The available display width is frequently exceeded on CPUs with small displays.
If you focus on the relevant value on the display and press the "Left" arrow key, a tooltip appears. The tooltip shows the name of the value in complete length. To hide the tooltip again, press the "Left" arrow key again or the "ESC" key.

Figure 12-3 Tooltip function

272

Automation system System Manual, 11/2019, A5E03461182-AF

CPU display
Uploading image to the display via STEP 7
In the STEP 7 device view, you download an image from your file system to the CPU display with the "Display > User-defined logo" function.

Figure 12-4 Uploading image to CPU
To display the uploaded image in the correct aspect ratio, use images with the following dimensions depending on the CPU.

Table 12- 4 Dimensions

CPU
CPU 1511(F)-1 PN CPU 1511C-1 PN CPU 1511T(F)-1 PN
CPU 1512C-1 PN
CPU 1513(F)-1 PN
CPU 1515(F)-2 PN CPU 1515T(F)-2 PN
CPU 1516(F)-3 PN/DP CPU 1516T(F)-3 PN/DP
CPU 1517(F)-3 PN/DP CPU 1517T(F)-3 PN/DP
CPU 1518(F)-4 PN/DP CPU 1518(F)-4 PN/DP MFP

Dimensions 128 x 120 pixels
128 x 120 pixels 128 x 120 pixels 240 x 260 pixels 240 x 260 pixels 240 x 260 pixels 240 x 260 pixels

Supported formats Bitmap, JPEG, GIF, PNG
Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG

If the uploaded image exceeds the specified dimensions, the display shows only part of the image. The "Adapt logo" option in STEP 7 allows you to reduce the image to the specified dimensions. However, note that the original aspect ratio of the image is not retained in such cases.

Displaying image on the display
To display the uploaded image on the display of the CPU, press the ESC key in the main screen of the display. When you upload an image and are in the main screen, the display automatically shows the image after 60 seconds. To hide the image again, press any key on the display.

Automation system System Manual, 11/2019, A5E03461182-AF

273

CPU display

Available language settings
You can set the following languages separately for menu and message texts:  Chinese  German  English  French  Italian  Japanese  Korean  Portuguese (Brazil)  Russian  Spanish  Turkish You select the required language directly at the display in the "Display" menu or in STEP 7 in the hardware configuration of the CPU under User interface languages". To display message texts on the display, follow these steps: 1. Download the message texts to the CPU as a software component.
­ To do so, select the "Consistent download" option under "Text libraries" in the "Load preview" dialog.
2. You set the project language you would like to be displayed as the interface language by means of parameter assignment. ­ To do so, select a CPU and navigate to the "Multiple languages" area ("Properties > General > Multilingual support") in the Inspector window. ­ Assign the required project languages to the interface languages.

Reference

Important information/special requirements for the display of F-CPUs can be found in Product Information F-CPUs S7-1500 (https://support.industry.siemens.com/cs/ww/de/view/109478599/en)

274

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance

13

13.1

Removing and inserting I/O modules

Requirement

Remove or insert front connectors and I/O modules only when the voltage is switched off.

NOTICE
Physical damage can occur
If you install or uninstall front connectors and/or I/O modules with switched-on voltage, this can lead to undefined conditions in your plant.
The S7-1500 automation system/ET 200MP distributed I/O system may be damaged as a result.
Therefore only install/uninstall front connectors and/or I/O modules with switched-off voltage.
Therefore during the planning of a plant always make sure to comply with the necessary, pertinent standards and safety guidelines.

Automation system System Manual, 11/2019, A5E03461182-AF

275

Maintenance 13.2 Replacing the display/front cover

13.2

Replacing the display/front cover

Replace display (Standard, F-CPUs / Compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-1CK01-0AB0)
The display is pluggable. You can remove or replace the display during operation (RUN). Removing or replacing of the display does not have any influence on the running CPU.
To remove the display from the CPU, follow these steps: 1. Flip the front cover up. 2. Press with a 3.5 mm screwdriver from the front into the unlatching mechanism of the
display. This is found in the middle directly above the display. 3. Press the screwdriver lightly from above and lever out the display from the support. 4. Remove the display in an upward direction. 5. You have removed the display. 6. Place the new display in the CPU and press the display firmly in the top area until it
audibly engages. 7. Flip the front cover down into place.
The figure below shows an example of the operation at the CPU 1511-1 PN.

Figure 13-1 Remove display
WARNING Personal injury or material damage can occur in zone 2 hazardous areas Personal injury or material damage can occur in hazardous are zone 2 if you remove or fit the display while the S7-1500 automation system is running. Before you remove or fit the display, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2.

276

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.2 Replacing the display/front cover
Exchanging the front cover
The front cover is pluggable. If necessary, you can take off the front cover or replace the front cover during runtime (RUN). Removing or replacing the front cover does not affect the CPU in operation. To remove the front cover from the CPU, follow these steps: 1. Flip up the front cover until the front cover stands at a 90° angle to the front of the
module. 2. In the top section of the front cover, press on the anchor(s). At the same time, pull the
front cover toward you and off. 3. Insert the new front panel (at a 90° angle to the module) from the front into the anchor(s)
until they audibly engage. 4. Flip the front cover down into place. The figure below shows an exemplary view of the CPU 1516-3 PN/DP.

 Fasteners for removing and fitting the front panel
Figure 13-2 Removing and fitting the front panel
WARNING Personal injury or material damage can occur in zone 2 hazardous areas Personal injury or material damage can occur in hazardous are zone 2 if you remove or fit the front panel while the S7-1500 automation system is running. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2.

Automation system System Manual, 11/2019, A5E03461182-AF

277

Maintenance 13.3 Replacement of I/O modules and front connectors

13.3

Replacement of I/O modules and front connectors

13.3.1

Coding element on the I/O module and on the front connector

Function

All front connectors for the I/O modules of the S7-1500 automation system/ET 200MP distributed I/O system are identical. The coding element prevents a front connector from being inserted on a module with a different electrical pin assignment.

Delivery state of the I/O module
In the delivery state, the coding element is located in the I/O module.

Figure 13-3 Coding element in the I/O module (delivery condition)

278

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.3 Replacement of I/O modules and front connectors
Coding element in the front connector
When the front connector is inserted into the I/O module for the first time, one half of the coding element latches into the front connector. When you remove the front connector from the I/O module, this half of the coding element remains in the front connector, while the other half remains in the I/O module.

Figure 13-4 Coding element in the I/O module/front connector
You can insert a coded front connector on modules with the same electrical pin assignment. Refer to section Application planning (Page 90).
NOTICE Physical damage can occur If the coding element is changed or removed, it will be possible to insert the front connector on modules in which the electrical connection is not properly wired. This can destroy the module and/or the connected sensors and actuators. Even hazardous plant states are possible. Do not change the coding element unless you want to use the front connector on a different module and you change the process wiring accordingly.

Use cases for replacing the coding element
 Replacing an I/O module, for example, due to a defect or incorrect configuration  Replacing a front connector

Automation system System Manual, 11/2019, A5E03461182-AF

279

Maintenance 13.3 Replacement of I/O modules and front connectors Additional electronic coding element for fail-safe modules
In as-delivered condition, a fail-safe module not only has a mechanical coding element but also an electronic rewritable memory for the PROFIsafe address.
 Electronic coding element
Figure 13-5 F-module with electronic coding element (as delivered)

280

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.3 Replacement of I/O modules and front connectors
When the front connector is inserted in the F-module, the electronic coding element engages completely in the front connector. If you remove the front connector from the F-module, the memory with the PROFIsafe address of the fail-safe module remains in the front connector.

 Electronic coding element
Figure 13-6 Front connector with electronic coding element

13.3.2

Replacing an I/O module

Introduction

 When the front connector is first inserted into the I/O module, a part of the coding element clips onto the front connector.
 In the case of fail-safe modules, the electronic coding element with the PROFIsafe address of the F-module also engages completely in the front connector.
When you replace an I/O module with the same type of module, the correct coding element or coding elements in the case of F-modules are already present in the front connector.
Result: Before inserting the previous front connector, you must remove the coding element or coding elements from the new I/O module.

Automation system System Manual, 11/2019, A5E03461182-AF

281

Maintenance 13.3 Replacement of I/O modules and front connectors

Procedure

To replace the I/O module, follow these steps:
The I/O module to be replaced is uninstalled. You can find information on removing the I/O module in section Installing I/O modules (Page 127).
1. For a new I/O module, use a screwdriver to break out the half of the mechanical coding element that is designated for the front connector.
Note
The arrangement of the mechanical coding element depends on the module type: First, check the position of the coding element on the front connector before you break out the matching half from the I/O module.
For a new fail-safe module you must also remove the electronic coding element from the F-module.

Figure 13-7 Breaking the coding element out of the I/O module
2. Insert the existing front connector into the new I/O module (same module type) until your hear it click into place.

282

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.3 Replacement of I/O modules and front connectors

13.3.3

Replacing a front connector

Introduction

 When the front connector is first inserted into the I/O module, a part of the mechanical coding element engages on the front connector.
 In the case of fail-safe modules, the electronic coding element with the PROFIsafe address of the F-module also engages completely in the front connector.
When you replace a defective front connector with a new front connector, you must transfer the coding element(s) to the new front connector.

Procedure

You have already removed the front connector from the module and loosened the wiring. If you are using the front connector for an analog module, you also need to remove the power supply element and shield element. Proceed as follows to replace the front connector:
1. Carefully remove the mechanical coding element from the front connector. Take care not to damage the coding element.

Figure 13-8 Removing the mechanical coding element from the front connector
Note The coding elements are dependent on the module type. 2. Insert the removed mechanical coding element into the new front connector.

Figure 13-9 Inserting the mechanical coding element into a new front connector

Automation system System Manual, 11/2019, A5E03461182-AF

283

Maintenance 13.3 Replacement of I/O modules and front connectors
3. Additionally for F-modules: ­ Carefully remove the electronic coding element from the front connector. Take care not to damage the coding element. ­ Insert the removed electronic coding element into the new front connector.
Figure 13-10 Removing the electronic coding element from the front connector and inserting it into a new front connector
4. Insert the new front connector into the existing I/O module, until your hear it click into place.
5. Wire the new front connector.

284

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.4 Replacing the coding element at the power connector of the system power supply and load current supply

13.4

Replacing the coding element at the power connector of the system

power supply and load current supply

Introduction

The coding consists of a 2-part coding element. Ex factory a part of the coding element is inserted into the back side of the power connector. The other part is firmly inserted in the system power supply or load power supply. This prevents the insertion of a power connector of a system power supply or load power supply into a module of a different type.
DANGER Do not manipulate the coding element, or leave it off · Changing or replacing the coding element can result in dangerous system states. · To avoid damage, do not change or replace the coding element. · You must not remove the coding element.

Replacement parts scenario
Insertion of the coding element into a new power connector in the case of a replacement part.
DANGER Dangerous voltage When installing the coding element, you must take into account the supply voltage of the system power supply and load power supply: 24 V DC, 24/48/60 V DC or 120/230 V AC/DC Only install the coding element with switched-off voltage. You must insert the coding element in such a way that the power connector matches the power supply module in terms of voltage.

Automation system System Manual, 11/2019, A5E03461182-AF

285

Maintenance 13.4 Replacing the coding element at the power connector of the system power supply and load current supply

Procedure

To replace the coding element on the power connector of the system power supply and load current supply, follow these steps:
1. Orient yourself using the labeling on the power cable connection.

Figure 13-11 Labeling on the power connector
2. Orient yourself using the red marking on the coding element.
3. The coding element has 3 red markings. Turn the coding element in such a way that one of the 3 red markings corresponds to the voltage indicated on the connector.
4. Insert the coding element into the back side of the power cable connector, until you hear it click into place. The figure below shows you how to insert a coding element into a power cable connector for 24 V DC.

Figure 13-12 Inserting a coding element into a power connector

286

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.5 Firmware update

13.5

Firmware update

Introduction

Update the firmware of the CPU/interface module, display and the I/O modules using firmware files. The retentive data is retained after the execution of the firmware update.

Requirement

 You have downloaded the data/files for the firmware update from Siemens Industry Online Support (https://support.industry.siemens.com/cs/ww/en/ps).
On this web site, select:
­ For the S7-1500 automation system: Automation Technology > Automation Systems > Industrial Automation Systems SIMATIC > Controllers > SIMATIC S7 Advanced Controller SIMATIC S7 > SIMATIC S7-1500.
­ For the ET 200MP distributed I/O system: Automation Technology > Automation Systems > Industrial Automation Systems SIMATIC > SIMATIC ET 200 I/O systems > ET 200 systems for the cabinet > ET 200MP.

Figure 13-13 Product tree using the S7-1500 as an example:

Automation system System Manual, 11/2019, A5E03461182-AF

287

Maintenance 13.5 Firmware update
From this position, navigate to the specific type of module that you want to update. To continue, click on the "Software downloads" link under "Support". Save the desired firmware update files. Before installing the firmware update, make sure that the modules are not being used.

Figure 13-14 Selecting the software downloads
Additional requirement for fail-safe modules
WARNING Check the firmware version for F-approval When using a new firmware version, always check that the version is approved for use in the respective module. The attachments of the certificate (http://support.automation.siemens.com/WW/view/en/49368678/134200) for SIMATIC Safety specify which firmware version is approved.

288

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.5 Firmware update

Options for the firmware update
There are the following options for performing a firmware update:  Online in STEP 7 via Online & Diagnostics  Online in STEP 7 via accessible devices (PROFINET)  Via SIMATIC memory card: for CPU, display, and all centrally inserted modules  Via the integrated Web server  Online via the SIMATIC Automation Tool The table below gives an overview of the various options for a firmware update.

Table 13- 1 Overview of firmware update options

Firmware update

CPU

STEP 7 (V12 or higher)



Accessible devices



SIMATIC memory card



Web server of the CPU



SIMATIC Automation Tool



Central I/O module Interface module











--









Distributed I/O module  -- 

Installation of the firmware update
WARNING Impermissible plant states possible The CPU switches to STOP mode or the interface module to "station failure" as a result of the firmware update being installed. STOP or station failure can have an adverse effect on the operation of an online process or a machine. Unexpected operation of a process or a machine can lead to fatal or severe injuries and/or to material damages. Ensure before installing the firmware update that the CPU is not controlling any active process.

Automation system System Manual, 11/2019, A5E03461182-AF

289

Maintenance 13.5 Firmware update
Procedure: online in STEP 7 via Online & diagnostics
Requirement: There is an online connection between the CPU/module and PG/PC. Proceed as follows to perform an online firmware update via STEP 7: 1. Select the module in the device view. 2. Select the "Online & diagnostics" menu command from the shortcut menu. 3. In the "Functions" folder, select the "Firmware update" group.
For a CPU, you can select whether you want to update the CPU or the CPU's display. 4. Click the "Browse" button to select the firmware update files in the "Firmware update"
area. 5. Select the matching firmware file. The table in the firmware update area lists all modules
for which an update is possible with the selected firmware file. 6. Click the "Run update" button. If the module can interpret the selected file, the file is
downloaded to the module. If you must change the CPU mode, STEP 7 prompts you to do so with dialogs.
Updating the firmware The "Run firmware after update" check box is always selected. After a successful loading process the CPU includes imports the firmware and subsequently operates with the new firmware.
Note If a firmware update is interrupted, you need to remove and insert the module before starting the firmware update again.
Procedure: online in STEP 7 via accessible devices
To perform a firmware update online via accessible devices, follow these steps: 1. From the "Online menu, select the "Accessible devices" menu item. 2. In the Accessible devices dialog, search for the accessible devices for the selected
PROFINET interface. 3. To go to a device in the project tree, select the desired device from the list of accessible
devices and click the "Show" button. 4. In the project tree, select the "Online & diagnostics" option of the relevant device and
perform the firmware update under the category Functions/Firmware Update (CPU, Display, Local modules).

290

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.5 Firmware update
Procedure via the SIMATIC memory card
Proceed as follows perform a firmware update via the SIMATIC memory card:
1. Insert a SIMATIC memory card into the SD card reader of your PG/PC.
2. To store the update file on the SIMATIC memory card, select the SIMATIC memory card in the "Card Reader/USB memory" folder in the project tree.
3. Select the "Card Reader/USB memory > Create firmware update memory card" command in the "Project" menu.
4. Use a file selection dialog to navigate to the firmware update file. In a further step you can decide whether you are deleting the content of the SIMATIC memory card or adding the firmware update files to the SIMATIC memory card.
5. Insert the SIMATIC memory card with the firmware update files into the CPU.
The firmware update begins shortly after the SIMATIC memory card has been plugged.
The display indicates that the CPU is in STOP mode, and that a firmware update is being executed: "STOP - FW UPDATE". The display shows the progress of the firmware update. The CPU shows any errors that occur during the firmware update on the display.
The display shows a results screen after the completion of the firmware update.
6. Remove the SIMATIC memory card after the firmware update is complete. The RUN LED on the CPU lights up in yellow and the MAINT LED flashes yellow. If you subsequently wish to use the SIMATIC memory card as a program card, leave the SIMATIC memory card in the CPU. To do so, after completion of the firmware update, select the "Convert memory card" menu item on the display.
Alternatively, you can convert the SIMATIC memory card to a program card via STEP 7.
Note
If your hardware configuration contains several modules, the CPU updates all affected module in the slot sequence, i.e. in ascending order of the module position in the STEP 7. device configuration.
Note Memory size of the SIMATIC memory card
If you perform a firmware update via the SIMATIC memory card, you must use a large enough card based on the CPU used and the associated I/O modules.
Check the specified file sizes of the update files when downloading them from Siemens Industry Online Support. The file size information is especially important when you perform the firmware update not only for the CPU but also, e.g., for the associated I/O modules, communication modules. The total size of the update files must not exceed the available memory size of your SIMATIC memory card.
You can find more information on the capacity of SIMATIC memory cards in the section Accessories/spare parts (Page 336) and in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/de/en/view/59193101).

Automation system System Manual, 11/2019, A5E03461182-AF

291

Maintenance 13.6 Reset to factory settings

Procedure: via the integrated Web server
The procedure is described in the Web server (http://support.automation.siemens.com/WW/view/en/59193560) Function Manual.

Procedure: online via the SIMATIC Automation Tool
The procedure is described in the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) manual (included in the SIMATIC Automation Tool).

Special feature at a firmware update of analog modules
When you carry out a firmware update for analog modules, you have to supply 24 V DC load supply to the module through the infeed element.

Behavior after the firmware update
After the firmware update, check the firmware version of the updated module.

Reference

For additional information on the topic of firmware update, refer to the STEP 7 online help and the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/89257657).

13.6

Reset to factory settings

13.6.1

Resetting the CPU to factory settings

Introduction

"Reset to factory settings" restores the CPU to its delivery state. The function deletes all information that was stored internally on the CPU.
Recommendation:
Switch the CPU to its as-delivered condition if:
 You remove a CPU and use it elsewhere with a different program.
 You store the CPU.
When resetting to factory settings, remember that the IP address parameters are also deleted.

292

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.6 Reset to factory settings
Options for resetting a CPU to factory settings
To reset the CPU to its delivery state, follow these steps:  Using the mode selector switch / mode selector keys  Using the display  Using STEP 7  Using the SIMATIC Automation Tool
Procedure using the mode selector
Make sure that the CPU is in STOP operating state: The CPU display indicates the STOP operating mode. The RUN/STOP LED lights up yellow.
Note Reset to factory settings  Memory reset The procedure described below corresponds to the procedure for a memory reset: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
Restore the factory settings of the CPU as follows: 1. Set the mode selector to the STOP position.
Result: The RUN/STOP LED lights up yellow. 2. Remove the SIMATIC memory card from the CPU. Wait until the RUN/STOP LED stops
flashing. 3. Set the mode selector to the MRES position. Hold the mode selector in this position until
the RUN/STOP LED lights up for the second time and remains lit (this takes three seconds). After this, release the selector. 4. Within the next three seconds, switch the mode selector back to the MRES position, and then back to STOP again. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up yellow, then the CPU has been reset to factory settings, and is in the STOP mode. The "Reset to factory settings" event is entered into the diagnostics buffer.
Note The IP address of the CPU is also deleted when the CPU is reset to the factory settings through the mode selector.

Automation system System Manual, 11/2019, A5E03461182-AF

293

Maintenance 13.6 Reset to factory settings
Procedure using the mode selector keys (standard, F-CPUs / compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-1CK01-0AB0)
Make sure that the CPU is in STOP mode (the CPU display shows STOP mode or RUN/STOP LED lights up yellow).
Note Reset to factory settings  Memory reset The procedure described below also corresponds to the procedure for a memory reset: · Key operation with inserted SIMATIC memory card: CPU executes a memory reset · Key operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
Perform a reset to factory settings as follows: 1. Press the STOP mode selector key.
Result: The STOP-ACTIVE and RUN/STOP LED light up yellow. 2. Press the STOP operating mode button until the RUN/STOP LED lights up for the 2nd
time and remains continuously lit (this takes three seconds). After this, release the key. 3. Press the STOP mode selector key again within the next three seconds. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the STOP-ACTIVE and RUN/STOP LED light up yellow, then the CPU has been reset to factory settings, and is in the STOP mode. The "Reset to factory settings" event is entered into the diagnostics buffer.
Note The IP address of the CPU is also deleted when the CPU is reset to the factory settings using the mode selector keys.

294

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.6 Reset to factory settings
Procedure using the display
Make sure that the CPU is in STOP operating state: The CPU indicates STOP mode. The RUN/STOP LED lights up yellow. To reach the desired menu command, "Factory setting", select the following sequence of menu commands. Confirm with "OK" after each selection.  Settings  Reset  Factory settings Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up yellow, then the CPU has been reset to factory settings, and is in the STOP mode. The "Reset to factory settings" event is entered into the diagnostics buffer.
Note The IP address of the CPU is also deleted when the CPU is reset to the factory settings through the display.
Procedure using STEP 7
To reset a CPU to factory settings via STEP 7, follow these steps: Make sure that there is an online connection to the CPU. 1. Open the Online and Diagnostics view of the CPU. 2. In the "Functions" folder, select the "Reset to factory settings" group. 3. If you want to keep the IP address, select the "Keep IP address" option button. If you
want to delete the IP address, select the "Delete IP address" option button.
Note "Delete IP address" deletes all IP addresses, regardless of how you established the online connection. If a SIMATIC memory card is inserted, selecting the "Delete IP address" option has the following effect: · The IP addresses are deleted and the CPU is reset to factory settings. · The existing configuration (including IP address) on the SIMATIC memory card is then
loaded into the CPU. If no configuration is stored (e.g. after the SIMATIC memory card has been erased or formatted), no new IP address is assigned.
4. Click the "Reset" button. 5. Click "OK" in response to the confirmation prompts. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up in yellow, the CPU has been reset to factory settings and is in the STOP operating state. The "Reset to factory settings" event is entered into the diagnostics buffer.

Automation system System Manual, 11/2019, A5E03461182-AF

295

Maintenance 13.6 Reset to factory settings

Procedure using the SIMATIC Automation Tool
The procedure is described in the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) manual (included in the SIMATIC Automation Tool).

Result after resetting to factory settings
The following table provides an overview of the contents of the memory objects after the reset to factory settings.

Table 13- 2 Result after resetting to factory settings

Memory object Actual values of the data blocks, instance data blocks Bit memories, timers and counters Retentive tags of technology objects (e.g. adjustment values of absolute encoders) Entries in the diagnostics buffer IP address

Contents Initialized Initialized Initialized
Initialized Depends on the procedure: · Using mode switch: is deleted · Using display: is deleted · Using STEP 7: Depending on the setting of the
"Keep IP address"/"Delete IP address" option buttons

Device name Counter readings of the runtime meters Time of day

Set to "CPU" Initialized Is set to "00:00:00, 01.01.2012"

If a SIMATIC memory card was inserted prior to the reset to factory settings in the CPU, the CPU downloads the configuration contained on the SIMATIC memory card (hardware and software). A configured IP address is then valid again.

Reference

Additional information on "Reset to factory settings" can be found in the Function Manual Structure and use of the CPU memory (http://support.automation.siemens.com/WW/view/en/59193101) in the section on memory areas and retentivity, and in the online help for STEP 7. For information on the memory reset of the CPU, refer to the section CPU memory reset (Page 246).

296

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.6 Reset to factory settings

13.6.2

Resetting interface module (PROFINET IO) to factory settings

Introduction

The interface module can be reset to its factory state using "Reset to factory settings".

Method of resetting an interface module to factory settings
 Via STEP 7 (online via PROFINET IO)

Procedure using STEP 7
To reset an interface module to factory settings via STEP 7, follow these steps:
Make sure that an online connection to the interface module exists. 1. Open the online and diagnostics view of the interface module. 2. In the "Functions" folder, select the "Reset to factory settings" group. 3. Click the "Reset" button. 4. Click "OK" in response to the confirmation prompts.
Result: The interface module then performs a "Reset to factory settings".

Result after resetting to factory settings

Table 13- 3 Properties of the interface module when shipped

Properties Parameter IP address Device name MAC address I&M data
Firmware version

Value Default setting Not present Not present Present Identification data (I&M0) present Maintenance data (I&M1, 2, 3) reset Present

Note Failure of downstream stations is possible
Stations downstream from the interface module can fail when the factory settings are restored on an interface module.

Note Substitute value behavior of the installed I/O modules during reset to factory settings
The I/O modules in the station do not have the configured status after a "reset to factory settings". The interface module does not acquire any input data and does not output any output data.

Automation system System Manual, 11/2019, A5E03461182-AF

297

Maintenance 13.7 Fault reactions with fail-safe modules

Reference

You will find more information on the procedure in the STEP 7 online help.

13.7

Fault reactions with fail-safe modules

Safe state (safety concept)
The basic principle behind the safety concept is the existence of a safe state for all process variables.
Note For fail-safe input and output modules, this safe state is the value "0".

Fault reactions and startup of the F-system
The safety function requires that substitute values (safe state) be output instead of process values for a fail-safe module (passivation of the fail-safe module) in the following cases:
 When the F-system is started up
 If errors are detected during safety-related communication between the F-CPU and the Fmodule via the PROFIsafe safety protocol (communication error)
 If fail-safe I/O faults or channel faults are detected (e.g., wire break, discrepancy error)
Detected faults are written to the diagnostic buffer of the F-CPU and communicated to the safety program in the F-CPU.
F-modules cannot save errors as retentive data. When the system is powered down and then restarted, any faults still existing are detected again during startup. However, you have the option of saving faults in your safety program.
WARNING
Channel faults do not trigger any diagnostic reactions or error handling for channels that have been set to "deactivated" in STEP 7, even if this channel is affected indirectly by a channel group fault (channel parameter "activated/deactivated").

298

Automation system System Manual, 11/2019, A5E03461182-AF

Maintenance 13.7 Fault reactions with fail-safe modules
Remedying faults in the F-system
To remedy faults in your F-system, follow the procedure described in IEC 61508-1:2010 section 7.15.2.4 and IEC 61508-2:2010 section 7.6.2.1 e. The following steps must be performed: 1. Diagnostic and repair of the fault 2. Revalidation of the safety function 3. Recording in the service report
Fail-safe value output for F-modules
In the case of F-modules with inputs, if there is passivation, the F-system provides substitute values (0) for the safety program instead of the process data pending at the fail-safe inputs. In the case of F-modules with outputs, if there is passivation, the F-system transfers substitute values (0) to the fail-safe outputs instead of the output values provided by the safety program. The output channels are de-energized. This also applies when the F-CPU goes into STOP mode. The parameter assignment of fail-safe values is not possible. Substitute values are used either for the relevant channel only or for all channels of the relevant fail-safe module, depending on:  The F-system used  The type of fault that occurred (fail-safe I/O fault, channel fault or communication error)  The parameter assignment of the F-module
Reintegration of a fail-safe module
The system changes from fail-safe to process values (reintegration of an F-module) either automatically or only after user acknowledgment in the safety program. If channel faults occur, it may be necessary to remove and reinsert the F-module. A detailed listing of faults requiring removal and insertion of the F-module can be found in the section Diagnostic messages of the respective F-module. After reintegration, the following occurs:  In the case of an F-module with inputs, the process data pending at the fail-safe inputs is
made available to the safety program again  In the case of an F-module with outputs, the output values provided in the safety program
are transferred to the fail-safe outputs again
Additional information on passivation and reintegration
For additional information on passivation and reintegration of F-I/O, refer to the SIMATIC Safety, Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.
Reaction of the F-module with inputs to communication errors
F-modules with inputs respond differently to communication errors compared to other errors. If a communication error is detected, the current process values remain set at the inputs of the F-module. There is no passivation of the channels. The current process values are passivated in the F-CPU.

Automation system System Manual, 11/2019, A5E03461182-AF

299

Maintenance 13.8 Maintenance and repair

13.8

Maintenance and repair
The components of the S7-1500 automation system/ET 200MP distributed I/O system are maintenance-free.
Note Repairs to the components of the S7-1500 automation system/ET 200MP distributed I/O system may only be carried out by the manufacturer.

300

Automation system System Manual, 11/2019, A5E03461182-AF

Test and service functions

14

14.1

Test functions

Introduction

You can test the operation of your user program on the CPU. You monitor signal states and values of tags, and preassign tags with values so that you can simulate specific situations for program execution.
Note Using test functions
Using test functions affects the program execution time and thus the cycle and response times of the controller to a slight extent (a few milliseconds).

Requirements

 There is an online connection to the relevant CPU.  An executable user program is available in the CPU.

Test options

 Testing with program status  Testing with breakpoints  Testing with a watch table  Testing with a force table  Testing with a PLC tag table  Testing with a data block editor  Testing with the LED flash test  Testing with a trace function

Automation system System Manual, 11/2019, A5E03461182-AF

301

Test and service functions 14.1 Test functions
Testing with program status
The program status allows you to monitor the execution of the program. You can hereby display the values of operands and the results of logic operations (RLO). This allows you to detect and fix logical errors in your program.
Note Restrictions with the "Program status" function Monitoring loops can significantly increase the cycle time. The increase in cycle time depends on the following factors: · The number of tags to be monitored · The actual numbers of loops run through
WARNING Testing with program status A test with the "Program status" function can cause serious damage to property or injury to persons if there are functional disturbances or program errors. Make sure that you take appropriate measures to exclude the risk of hazardous conditions occurring before running a test with the "Program status" function!

302

Automation system System Manual, 11/2019, A5E03461182-AF

Test and service functions 14.1 Test functions
Testing with breakpoints
With this test option, you set breakpoints in your program, establish an online connection, and enable the breakpoints on the CPU. You then execute a program from one breakpoint to another. Requirements:  Setting breakpoints is possible in the programming language SCL or STL. Testing with breakpoints provides you with the following advantages:  Localization of logic errors step by step  Simple and quick analysis of complex programs prior to actual commissioning  Recording of current values within individual executed loops  Use of breakpoints for program validation also possible in SCL/STL networks within
LAD/FBD blocks
Note Restriction during testing with breakpoints · When you test with breakpoints, there is a risk of overwriting the cycle time of the CPU. · If you are using technology objects and test them with breakpoints, the CPU switches to
STOP mode.
Note F-System SIMATIC Safety Setting breakpoints in the standard user program results in errors in the safety program: · Sequence of F cycle time monitoring · Error in communication with the fail-safe I/O · Error during safety-oriented CPU-CPU communication · Internal CPU error If you nevertheless want to use breakpoints for testing, you must disable safety mode. This will result in the following errors: · Error in communication with the fail-safe I/O · Error during safety-oriented CPU-CPU communication

Automation system System Manual, 11/2019, A5E03461182-AF

303

Test and service functions 14.1 Test functions
Testing with watch tables
The following functions are available in the watch table:  Monitoring of tags
You can use the watch tables to monitor the current values of the individual tags of a user program or a CPU on the programming device/PC, on the display of the CPU, and on the web server. A symbolic name for the tags must be specified in the "Name" column of the watch table to allow the display of the CPU and the web server to show the value of the tags. You monitor the following operand areas: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs ­ Timers and counters  Modifying tags Use this function to assign fixed values to the individual tags of a user program or CPU on the PG/PC. Modifying is also possible with Test with program status. The following operand areas are modifiable: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs (for example, %I0.0:P, %Q0.0:P) ­ Timers and counters  "Enable peripheral outputs" and "Modify now" These two functions enable you to assign fixed values to individual peripheral outputs of a CPU in the STOP mode. You can also use them to check your wiring.

304

Automation system System Manual, 11/2019, A5E03461182-AF

Test and service functions 14.1 Test functions
Testing with a force table
The following functions are available in the force table:  Monitoring of tags
Force tables are used to monitor the actual values of the individual tags of a CPU user program or a CPU ­ On the PG/PC ­ On the display of the CPU ­ On the Web server You monitor the table with or without a trigger condition. A symbolic name for the tags must be specified in the "Name" column of the force table in order that the display of the CPU and the web server can display the value of the tags. You monitor the following tags: ­ Bit memory ­ Contents of data blocks ­ Peripheral inputs  Modifying tags You use this function to assign fixed values to individual tags of a user program or a CPU on the programming device/PC or on the display of the CPU. Modifying is also possible with Test with program status. The following tags are modifiable: ­ Bit memory ­ Contents of data blocks ­ Peripheral inputs (e.g. %I0.0:P)  Forcing of peripheral inputs and peripheral outputs You can force individual peripheral inputs or peripheral outputs. ­ Peripheral inputs: Forcing of peripheral inputs (for example %I0.0:P) is a "bypassing"
of sensors / inputs by the specification of fixed values to the program. The program receives the force value instead of the actual input value (via process image or via direct access). ­ Peripheral outputs: Forcing of peripheral outputs (for example %Q0.0:P) is a "bypassing" of the complete program by the specification of fixed values to the actuators. With the force table you can simulate different test environments and also overwrite tags in the CPU with a fixed value. This enables you to intervene in the running process in a regulating way.

Automation system System Manual, 11/2019, A5E03461182-AF

305

Test and service functions 14.1 Test functions
Difference between modifying and forcing
The fundamental difference between the modifying and forcing functions consists in the storage behavior:  Modifying: Modifying of tags is an online function and is not stored in the CPU. You can
end modifying of tags in the watch table or force table or by terminating the online connection.  Forcing: A force job is written to the SIMATIC memory card and is retained after a POWER OFF. The S7-1500 CPU displays an active force job with a corresponding symbol. You can only end the forcing of peripheral inputs and peripheral outputs in the force table.
Testing with a PLC tag table
You can monitor the current data values of tags in the CPU directly in the PLC tag table. To do so, open the PLC tag table and start the monitoring. You also have the option of copying PLC tags to a watch table or force table so that you can monitor, control or force them in the table.
Testing with a data block editor
The data block editor offers different options for monitoring and modifying tags. These functions directly access the actual values of the tags in the online program. Actual values are the current values of tags in the CPU work memory at any moment during program execution. The following functions for monitoring and modifying are available in the database editor.  Monitor tags online  Modify individual actual values  Create a snapshot of the actual values  Overwrite actual values with a snapshot
Note Setting data values during commissioning During plant commissioning, you often need to adjust data values to adapt the program to local conditions. To this end, the declaration table offers a few functions for data blocks.

306

Automation system System Manual, 11/2019, A5E03461182-AF

Test and service functions 14.1 Test functions

Testing with the LED flash test
In many online dialogs, you can perform an LED flash test. This feature is useful if you are not sure which device in the hardware configuration corresponds to the device currently selected in the software.
If you click on the "Flash LED" button in STEP 7 under Online & diagnostics (online access), an LED flashes on the device currently selected. The RUN/STOP, ERROR, and MAINT LEDs flash on the CPU. The LEDs flash until you cancel the flash test.

Testing with a trace function
The trace function is used to record the CPU tags, depending on the settable trigger conditions. Tags are, for example, drive parameters or system and user tags of a CPU. The CPU saves the recordings. If necessary, you can display the recordings with STEP 7 and evaluate them.
Procedure: The trace function can be called from the CPU's folder in the project tree, under the name "Traces".
In connection with trace functions, please also note the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/102781176).

Simulation

With STEP 7 you can run and test the hardware and software of the project in a simulated environment. Start the simulation using the menu command "Online" > "Simulation" > "Start".

Reference

Additional information on the test functions can be found in the STEP 7 online help.
Additional information about testing with trace functions is available in the Function Manual Using the trace and logic analyzer function (http://support.automation.siemens.com/WW/view/en/64897128).

Automation system System Manual, 11/2019, A5E03461182-AF

307

Test and service functions 14.2 Reading out/saving service data

14.2

Reading out/saving service data

Service data

In addition to the contents of the diagnostics buffer, the service data contain numerous additional data points about the internal status of the CPU. If a problem occurs with the CPU that you cannot resolve with other methods, send the service data to the Siemens Service & Support. The service data allow Service & Support to analyze problems that have occurred rapidly.
Note
While reading out the service data of the CPU, you cannot simultaneously execute a download to the device.

Methods of reading service data
You can read service data with:  the web server  STEP 7  the SIMATIC memory card

308

Automation system System Manual, 11/2019, A5E03461182-AF

Test and service functions 14.2 Reading out/saving service data
Procedure using the Web server
To read service data using the Web server, follow these steps: 1. Open a web browser that is suitable for communication with the CPU. 2. Enter the following address in the address bar of the web browser:
https://<CPU IP address>/save_service_data, e.g. https://172.23.15.3/save_service_data 3. The service data page will appear on your screen, with a button for saving the service
data.
Figure 14-1 Saving service data via the Web server 4. Save the service data locally on your PC/programming device, by clicking "Save
ServiceData". Result: The data is saved in a .dmp file with the following naming convention: <Article number> <Serial number> <Time stamp>.dmp". You can change the file name.
Note If you have defined your user page as the home page of the Web server, direct access to the service data by inputting the IP address of the CPU is not possible. For more information on reading out service data via a user-defined page, refer to the Web server (http://support.automation.siemens.com/WW/view/en/59193560) function manual.
Procedure using STEP 7
You can find more information on saving service data with the keyword "Saving service data" in the STEP 7 online help.

Automation system System Manual, 11/2019, A5E03461182-AF

309

Test and service functions 14.2 Reading out/saving service data
Procedure via the SIMATIC memory card
If no communication with the CPU is possible via Ethernet, use the SIMATIC memory card to read out the service data. In all other cases, read and back up the service data via the web server or STEP 7. The procedure via the SIMATIC memory card is more complex than the other options. You must also ensure before backing up that there is sufficient memory space on the SIMATIC memory card.
To back up service data using the SIMATIC memory card, follow these steps:
1. Insert the SIMATIC memory card into the card reader of your PC / programming device.
2. Open the job file S7_JOB.S7S in an editor.
3. Overwrite the entry PROGRAM with the string DUMP in the editor. To ensure that the file size is exactly 4 bytes, do not use any spaces/line breaks/quotation marks.
4. Save the file under the existing file name.
5. Ensure that the SIMATIC memory card is not write-protected and insert the SIMATICmemory card in the card slot of the CPU. Up to CPU 1516 you need a card  32 MB and from CPU 1517 a card  2 GB.
Result: The CPU writes the service data file DUMP.S7S to the SIMATIC memory card and remains in STOP mode.
Service data transfer is complete when the STOP LED stops flashing and is lit continuously. If service data transfer has been successful, only the STOP LED lights up.
In the event of errors in transfer, the STOP LED is lit continuously and the ERROR LED flashes. The CPU also stores a text file with a note on the error that occurred in the DUMP.S7S folder.

310

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications

15

Introduction

This chapter lists the technical specifications of the system:
 The standards and test values which the modules of the S7-1500 automation system/ET 200MP distributed I/O system comply with and fulfill.
 The test criteria according to which the S7-1500 automation system/ET 200MP distributed I/O system was tested.

Technical specifications for the modules
The technical specifications of the individual modules can be found in the manuals of the modules themselves. In the event of deviations between the statements in this document and the manuals, the statements in the manuals take priority.

Automation system System Manual, 11/2019, A5E03461182-AF

311

Technical specifications 15.1 Standards and Approvals

15.1

Standards and Approvals

Currently valid markings and authorizations
Note Details on the components of the S7-1500 automation system/ET 200MP distributed I/O system The currently valid markings and approvals are printed on the components of the S7-1500 automation system/ET 200MP distributed I/O system.

Safety information
WARNING Personal injury and damage to property may occur In hazardous areas, injury to persons and material damage may occur if you disconnect plug-in connections during operation of an S7-1500 automation system/ET 200MP distributed I/O system. Always switch off the power to the S7-1500 automation system/ET 200MP distributed I/O system when disconnecting plug-in connections in hazardous atmospheres.
WARNING Explosion hazard If you replace components, compliance with Class I, DIV 2 may become invalid.
WARNING Deployment requirements This device is only suitable for use in Class I, Div. 2, Group A, B, C, D, or in non-hazardous areas.

312

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.1 Standards and Approvals

CE mark

The S7-1500 automation system/ET 200MP distributed I/O system complies with the harmonized European standards (EN) for programmable logic controllers published in the official gazettes of the European Community. The S7-1500 automation system/ET 200MP distributed I/O system meets the requirements and protection targets of the following directives:
 2014/35/EU "Electrical equipment designed for use within certain voltage limits" (LowVoltage Directive)
 2014/30/EU "Electromagnetic Compatibility" (EMC Directive)
 2014/34/EU "Equipment and protective systems intended for use in potentially explosive atmospheres" (Explosion Protection Directive)
 2011/65/EU "Restriction of the use of certain hazardous substances in electrical and electronic equipment" (RoHS Directive)
 2006/42/EC "Machinery Directive" for S7-1500/ET 200MP fail-safe modules
EU declarations of conformity for the respective authorities are available from:
Siemens AG Digital Industries
Factory Automation DI FA AS SYS P.O. Box 1963 D-92209 Amberg
The EU declarations of conformity are also available for download from the Siemens Industry Online Support website, under the keyword "Declaration of Conformity".

cULus approval
Underwriters Laboratories Inc. in accordance with
 UL 508 (Industrial Control Equipment) OR UL 61010-1 and UL 61010-2-201
 C22.2 No. 142 (Process Control Equipment) OR CSA. C22.2 No. 61010-1 and CSA C22.2 No. 61010-2 201

OR

Automation system System Manual, 11/2019, A5E03461182-AF

313

Technical specifications 15.1 Standards and Approvals
cULus HAZ. LOC. approval
Underwriters Laboratories Inc. in accordance with
 UL 508 (Industrial Control Equipment) OR UL 61010-1 and UL 61010-2-201
 CSA C22.2 No. 142 (Process Control Equipment) OR CSA. C22.2 No. 61010-1 and CSA C22.2 No. 61010-2 201
 ANSI/ISA 12.12.01
 CSA C22.2 No. 213 (Hazardous Location)
APPROVED for use in Class I, Division 2, Group A, B, C, D Tx; Class I, Zone 2, Group IIC Tx
Installation Instructions for cULus haz.loc.
 WARNING ­ Explosion Hazard ­ Do not disconnect while circuit is live unless area is known to be non-hazardous.
 WARNING ­ Explosion Hazard ­ Substitution of components may impair suitability for Class I, Division 2 or Zone 2.
 This equipment is suitable for use in Class I, Division 2, Groups A, B, C, D; Class I, Zone 2, Group IIC; or non-hazardous locations.
 These products need to be connected by means of the front connector Cat. No. 6ES7592-1AM00-0XB0
WARNING: EXPOSURE TO SOME CHEMICALS MAY DEGRADE THE SEALING PROPERTIES OF MATERIALS USED IN THE RELAYS.

314

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.1 Standards and Approvals

FM approval

Factory Mutual Research (FM) according to
 Approval Standard Class Number 3611, 3600, 3810
 ANSI/UL 12.12.01
 ANSI/ISA 61010-1
 CSA C22.2 No. 213
 CSA C22.2 No. 61010-1
 CSA C22.2 No. 0-10
APPROVED for use in Class I, Division 2, Group A, B, C, D Tx; Class I, Zone 2, Group IIC Tx
Installation Instructions for FM
 WARNING ­ Explosion Hazard ­ Do not disconnect while circuit is live unless area is known to be non-hazardous.
 WARNING ­ Explosion Hazard ­ Substitution of components may impair suitability for Class I, Division 2 or Zone 2.
 This equipment is suitable for use in Class I, Division 2, Groups A, B, C, D; Class I, Zone 2, Group IIC; or non-hazardous locations.
 These products need to be connected by means of the front connector Cat. No. 6ES7592-1AM00-0XB0
WARNING: EXPOSURE TO SOME CHEMICALS MAY DEGRADE THE SEALING PROPERTIES OF MATERIALS USED IN THE RELAYS.

ATEX approval
In accordance with EN 60079-15 (Electrical apparatus for potentially explosive atmospheres; Type of protection "n") and EN 60079-0 (Electrical apparatus for potentially explosive gas atmospheres - Part 0: General Requirements)

IECEx approval
According to IEC 60079-15 (Explosive atmospheres - Part 15: Equipment protection by type of protection "n") and IEC 60079-0 (Explosive atmospheres - Part 0: Equipment - General requirements)

Automation system System Manual, 11/2019, A5E03461182-AF

315

Technical specifications 15.1 Standards and Approvals

RCM Declaration of conformity for Australia/New Zealand
The S7-1500 automation system/ET 200MP distributed I/O system fulfills the requirements of the standard IEC 61000-6-4.

Korea Certification
KC registration number: KCC-REM-S49-S71500
Please note that this device corresponds to limit value class A in terms of the emission of radio frequency interference. This device can be used in all areas, except residential areas.
  (A)                .

Marking for the Eurasian Customs Union
EAC (Eurasian Conformity) Customs Union of Russia, Belarus and Kazakhstan Declaration of conformity with the technical requirements of the Customs Union (TR CU).

IEC 61131-2

The S7-1500 automation system/ET 200MP distributed I/O system meets the requirements and criteria of the standard IEC 61131-2
(Programmable logic controllers, Part 2: Equipment requirements and tests).

IEC 61010-2-201
The S7-1500 automation system/ET 200MP distributed I/O system meets the requirements and criteria of the standard IEC 61010-2-201
(Safety regulations for electrical equipment for measurement, control, and laboratory use Part 2-201: Particular requirements for control equipment).

PROFINET standard
The PROFINET interfaces of the S7-1500 automation system/ET 200MP distributed I/O system are based on the standard IEC 61158 Type 10.

PROFIBUS standard
The PROFIBUS interfaces of the S7-1500 automation system/ET 200MP distributed I/O system are based on the standard IEC 61158 Type 3.

316

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.1 Standards and Approvals

Marine approval
Classification societies:  ABS (American Bureau of Shipping)  BV (Bureau Veritas)  DNV-GL (Det Norske Veritas - Germanischer Lloyd)  LRS (Lloyds Register of Shipping)  Class NK (Nippon Kaiji Kyokai)  KR (Korean Register of Shipping)  CCS (China Classification Society)  RINA (Registro Italiano Navale)

Industrial use

The S7-1500 automation system ET 200MP / distributed I/O system is designed for the industrial field. It meets the following standards for this type of use:
 Requirements on interference emission EN 61000-6-4: 2007 + A1: 2011
 Requirements on immunity EN 61000-6-2: 2005
Use in mixed areas
Under certain conditions you can use the S7-1500 automation system ET 200MP / distributed I/O system in a mixed area. A mixed area is used for residential purposes and for commercial operations that do not significantly impact the residential purpose.
If you use the S7-1500 automation system / ET 200MP distributed I/O system in a mixed area, you must comply with the radio frequency interference limits of the generic standard EN 61000-6-3. Suitable measures for observing these limits for use in a mixed area are, for example:
 Installation of the S7-1500 automation system / ET 200MP I/O system in grounded control cabinets
 Use of noise filters in the supply lines
An additional individual acceptance test is also required.
Use in residential areas

Note S7-1500 automation system / ET 200MP I/O system not intended for use in residential areas
The S7-1500 automation system ET 200MP / distributed I/O system is not intended for use in residential areas. If you use the S7-1500 automation system / ET 200MP distributed I/O system in residential areas, this may have an impact on radio/TV reception.

Automation system System Manual, 11/2019, A5E03461182-AF

317

Technical specifications 15.2 Electromagnetic compatibility

Reference

The certificates for the identifiers and approvals can be found in Siemens Industry Online Support on the Internet (http://www.siemens.com/automation/service&support).

15.2

Electromagnetic compatibility

Definition

Electromagnetic compatibility (EMC) is the ability of an electrical installation to function satisfactorily in its electromagnetic environment without interfering with that environment.
The S7-1500 automation system/ET 200MP distributed I/O system also meets the requirements of the EMC legislation for the European single market. The prerequisite for this is that the S7-1500/ET 200MP system complies with the requirements and guidelines relating to electrical equipment.

EMC in accordance with NE21
The S7-1500 automation system/ET 200MP distributed I/O system meets the EMC specifications of the NAMUR guideline NE21.

Pulse-shaped disturbances
The following table shows the electromagnetic compatibility of the S7-1500 automation system/ET 200MP distributed I/O system with regard to pulse-shaped disturbances.

Table 15- 1 Pulse-shaped disturbances

Pulse-shaped disturbance

Tested with

Electrostatic discharge in accordance with IEC 61000-4-2.

Air discharge: ±8 kV Contact discharge: ±6 kV

Burst pulses (high-speed transient dis- ±2 kV (power supply lines)

turbances) in accordance with

±2 kV (signal lines > 30 m)

IEC 61000-4-4.

±1 kV (signal lines < 30 m)

High-energy single pulse (surge) in accordance with IEC 61000-4-5

External protective circuit required (not for 230 V modules)

(Defining interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) Function Manual)

· Asymmetric coupling

±2 kV (power supply lines) DC with protective elements

±2 kV (signal/data line only > 30 m), with protective elements

· Symmetric coupling

±1 kV (power supply lines) DC with protective elements

±1 kV (signal/data line only > 30 m), with

protective elements

Corresponds with degree of severity
3 3 3 3
3

318

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.2 Electromagnetic compatibility

Sinusoidal disturbances
The following table shows the electromagnetic compatibility of the S7-1500 automation system/ET 200MP distributed I/O system with regard to sinusoidal disturbances (RF radiation).

Table 15- 2 Sinusoidal disturbances with RF radiation

RF radiation in accordance with IEC 61000-4-3/NAMUR 21

Electromagnetic RF field, amplitude-modulated

80 to 1000 MHz; 1.4 to 2 GHz

2.0 GHz to 2.7 GHz

10 V/m

1 V/m

80 % AM (1 kHz)

Corresponds with degree of severity
3

The following table shows the electromagnetic compatibility of the S7-1500 automation system/ET 200MP distributed I/O system with regard to sinusoidal disturbances (RF coupling).

Table 15- 3 Sinusoidal disturbances with RF coupling
RF coupling in accordance with IEC 61000-4-6
from 10 kHz 10 Vrms 80 % AM (1 kHz) 150  source impedance

Corresponds with degree of severity
3

Emission of radio interference
Interference emission of electromagnetic fields in accordance with EN 55016.

Table 15- 4 Interference emission of electromagnetic fields

Frequency 30 MHz to 230 MHz 230 MHz to 1000 MHz from 1 to 3 GHz from 3 to 6 GHz

Interference emission < 40 dB (µV/m) QP < 47 dB (µV/m) QP < 76 dB (µV/m) P < 80 dB (µV/m) P

Measuring distance 10 m 10 m 3 m 3 m

Interference emission via the AC power supply according to EN 55016.

Table 15- 5 Interference emission via the AC power supply

Frequency 0.15 MHz to 0.5 MHz
0.5 MHz to 30 MHz

Interference emission < 79 dB (µV/m)Q < 66 dB (µV/m) M < 73 dB (µV/m)Q < 60 dB (µV/m) M

Automation system System Manual, 11/2019, A5E03461182-AF

319

Technical specifications 15.3 Electromagnetic compatibility of fail-safe modules

15.3

Electromagnetic compatibility of fail-safe modules

Pulse-shaped interference
The fail-safe I/O modules S7-1500/ET 200MP without external protective circuit meet the severity level 2 for the high-energy individual pulse (surge) according to IEC 61000-45:2014.
Protecting S7-1500/ET 200MP against overvoltages with fail-safe modules
If your equipment requires protection from overvoltage, we recommend that you use an external protective circuit (surge filter) between the load voltage power supply and the load voltage input of the fail-safe modules to ensure surge immunity for the S7-1500 automation system/ET 200MP distributed I/O system with fail-safe modules.
Note Lightning protection measures always require a case-by-case examination of the entire system. An almost complete protection from overvoltages, however, can only be achieved if the entire building surroundings have been designed for overvoltage protection. In particular, this involves structural measures in the building design phase. If you want detailed information regarding overvoltage protection, we recommend that you contact your Siemens representative or a company specializing in lightning protection.
You can find more information on protection from overvoltage in the Designing interferencefree controllers (http://support.automation.siemens.com/WW/view/en/59193566) function manual.

320

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.4 Shipping and storage conditions

15.4

Shipping and storage conditions

Introduction

The S7-1500 automation system / ET 200MP I/O system meet the specifications regarding transport and storage conditions pursuant to IEC 61131-2. The following information applies to modules that are shipped and/or stored in their original packaging.

Shipping and storage conditions for modules

Table 15- 6 Shipping and storage conditions
Type of condition Free fall (in shipping package) Temperature Barometric pressure
Relative humidity Sinusoidal vibrations in accordance with IEC 60068-2-6 Shock in accordance with IEC 60068-2-27

Permissible range  1 m from -40 °C to +70 °C From 1140 to 540 hPa (corresponds to an altitude of -1000 to 5000 m) 5% to 95%, without condensation 5 - 9 Hz: 3.5 mm 9 - 500 Hz: 9.8 m/s2 250 m/s2, 6 ms, 1000 shocks

15.5

Mechanical and climatic ambient conditions

Operating conditions
The S7-1500 automation system/ET 200MP distributed I/O system is suitable for use in weather-proof, fixed locations. The operating conditions are based on the requirements of DIN EN 60721-3-3:1995 + A2:1997:
 Class 3M3 (mechanical requirements)
 Class 3K3 (climatic requirements)

Automation system System Manual, 11/2019, A5E03461182-AF

321

Technical specifications 15.5 Mechanical and climatic ambient conditions

Test of mechanical ambient conditions
The table below provides important information with respect to the type and scope of the test of ambient mechanical conditions.

Table 15- 7 Test of mechanical ambient conditions

Condition tested Vibration
Shock Continuous shock

Test Standard Vibration test according to IEC 60068-2-6 (Sinus)
Shock, tested according to IEC 60068-2-27
Shock, tested according to IEC 60068-2-27

Comment
Type of oscillation: Frequency sweeps with a rate of change of 1 octave/minute. 5 Hz  f  8.4 Hz, constant amplitude 7 mm 8.4 Hz  f  150 Hz, constant acceleration 2 g Duration of oscillation: 10 frequency sweeps per axis, along each of the 3 mutually perpendicular axes
Type of shock: Half-sine Shock intensity: 15 g max., duration 11 ms Direction of shock: 3 shocks each in (+/-) direction, along each of the 3 mutually perpendicular axes
Type of shock: Half-sine Shock intensity: 250 m/s2 peak value, 6 ms duration Direction of shock: 1000 shocks each in (+/-) direction, along each of the 3 mutually perpendicular axes

Reduction of vibrations
If your S7-1500 automation system/ET 200MP distributed I/O system is exposed to severe shock or vibration, take appropriate measures to reduce the acceleration or the amplitude.
We recommend the installation of the S7-1500 automation system/ET 200MP distributed I/O system on damping materials (for example, rubber-bonded metal mounting).

322

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.5 Mechanical and climatic ambient conditions

Climatic ambient conditions
The following table shows the permissible climatic ambient conditions for the S7-1500 automation system/ET 200MP distributed I/O system:

Table 15- 8 Climatic ambient conditions

Ambient conditions
Temperature: horizontal mounting position: vertical mounting position:

Permissible range
-25 °C to 60 °C -25 °C to 40 °C

Temperature variation Relative humidity Barometric pressure

10 K/h from 10 % to 95 % from 1140 to 795 hPa

Pollutant concentration

ANSI/ISA-71.04 severity level G1; G2; G3

Comments
The lower permissible ambient temperature was extended for the S7-1500 automation system/ET 200MP distributed I/O system to -25 °C. Differences may exist for specific modules and depending on the mounting position and, if applicable, load.
You must check the lower permissible ambient temperature for each module in the product data sheets.
The product data sheets with daily updated technical specifications can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td) at Industry Online Support. Enter the article number or the short description of the desired module on the website.
To increase the service life of the display, the display switches off when the permitted operating temperature is exceeded. At certain temperatures, the display switches off an on again. You can find more information in the technical specifications in the CPU manuals.
-
Without condensation
Corresponds to an altitude of -1000 m to 2000 m.
See the following section "Using the S7-1500 automation system/ET 200MP distributed I/O system over 2000 m above sea level".
-

Automation system System Manual, 11/2019, A5E03461182-AF

323

Technical specifications 15.5 Mechanical and climatic ambient conditions

Using the S7-1500 automation system/ET 200MP distributed I/O system over 2000 m above sea level.

Table 15- 9 S7-1500 (F) CPUs for maximum installation altitude 5000 m or 3000 m

CPU designation S7-1500 CPU 1511-1 PN CPU 1511-1 PN CPU 1511C-1 PN CPU 1511C-1 PN CPU 1511T-1 PN CPU 1512C-1 PN CPU 1512C-1 PN CPU 1513-1 PN CPU 1513-1 PN CPU 1515-2 PN CPU 1515T-2 PN CPU 1516-3 PN/DP CPU 1516T-3 PN/DP CPU 1517-3 PN/DP CPU 1517T-3 PN/DP CPU 1518-4 PN/DP CPU 1518-4 PN/DP ODK

Article number
6ES7511-1AK01-0AB0 6ES7511-1AK02-0AB0 6ES7511-1CK00-0AB0 6ES7511-1CK01-0AB0 6ES7 511-1TK01-0AB0 6ES7512-1CK00-0AB0 6ES7512-1CK01-0AB0 6ES7513-1AL01-0AB0 6ES7513-1AL02-0AB0 6ES7515-2AM01-0AB0 6ES7515-2TM01-0AB0 6ES7516-3AN01-0AB0 6ES7516-3TN00-0AB0 6ES7517-3AP00-0AB0 6ES7517-3TP00-0AB0 6ES7518-4AP00-0AB0 6ES7518-4AP00-3AB0

Version

Max. installation altitude

FS03 or higher
FS01 or higher
FS03 or higher
FS01 or higher
FS03 or higher
FS03 or higher
FS01 or higher
FS03 or higher
FS01 or higher
FS03 or higher
FS03 or higher
FS03 or higher
FS05 or higher
FS05 or higher
FS05 or higher
FS05 or higher
FS05 or higher

5000 m

324

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.5 Mechanical and climatic ambient conditions

S7-1500 F CPU 1511F-1 PN CPU 1511TF-1 PN CPU 1513F-1 PN CPU 1515F-2 PN CPU 1515TF-2 PN CPU 1516F-3 PN/DP CPU 1511F-1 PN CPU 1513F-1 PN S7-1500 F CPU 1516TF-3 PN/DP CPU 1517F-3 PN/DP CPU 1517TF-3 PN/DP CPU 1518F-4 PN/DP CPU 1518F-4 PN/DP ODK

6ES7511-1FK01-0AB0 6ES7511-1UK01-0AB0 6ES7513-1FL01-0AB0 6ES7515-2FM01-0AB0 6ES7515-2UM01-0AB0 6ES7516-3FN01-0AB0 6ES7511-1FK02-0AB0 6ES7513-1FL02-0AB0
6ES7516-3UN00-0AB0 6ES7517-3FP00-0AB0 6ES7517-3UP00-0AB0 6ES7518-4FP00-0AB0 6ES7518-4FP00-3AB0

FS03 or higher
FS03 or higher
FS03 or higher
FS03 or higher
FS03 or higher
FS03 or higher
FS01 or higher
FS01 or higher

5000 m

FS05 or higher
FS05 or higher
FS05 or higher
FS05 or higher
FS05 or higher

3,000 m

The maximum "operating elevation in relation to sea level" depends on the module and is described in the technical specifications of the respective module. The product data sheets with daily updated technical specifications can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td) at Industry Online Support. Enter the article number or the short description of the desired module on the website.

For altitudes > 2000 m the following constraints apply for the maximum specified ambient temperature:

Restrictions of the maximum ambient temperature specified with regard to the installation altitude

Installation altitude -1000 m to 2000 m 2000 m to 3000 m 3000 m to 4000 m 4000 m to 5000 m

Derating factor for ambient temperature 1) 1.0 0.9 0.8 0.7

1) Base value for application of the derating factor is the maximum permissible ambient temperature in °C for 2000 m.

Automation system System Manual, 11/2019, A5E03461182-AF

325

Technical specifications 15.5 Mechanical and climatic ambient conditions

Note
· Linear interpolation between altitudes is permissible.
· The derating factors compensate for the decreasing cooling effect of air in higher altitudes due to lower density.
· Note the mounting position of the respective module in the technical specifications. The basis is the standard IEC 61131-2:2017.
· Make sure that the power supplies you use are rated for altitudes > 2000 m.
· The displays of the S7-1500-CPUs are designed for an altitude of  3,000 m. When operating the device at altitudes > 3,000 m, you may experience problems with the CPU display in rare cases; however, these do not affect operation of the CPU.

Effects on the availability of modules
The higher cosmic radiation present during operation at altitudes above 2000 m will also start to have an effect on the failure rate of electronic components (the so-called soft error rate). In rare cases this can result in a transition of the module into the safe state, especially for safety modules. However, the functional safety of the module is fully retained.
Note
The F-CPUs are certified for operation in safety mode up to the maximum altitude listed in the product data sheet. All other markings and certifications are currently based on an altitude of up to 2000 m.

Information on PFDavg, PFH values for S7-1500 F
PFDavg and PFH values for F-CPUs at operating altitudes up to 3,000 m or 5,000 m. Below you will find the probability of failure values (PFDavg and PFH values) for the F-CPUs with a service life of 20 years and with a repair time of 100 hours:

Operation in low demand mode in accordance with Operation in high demand or continuous mode

IEC 61508:2010:

in accordance with IEC 61508:2010:

PFDavg = Average probability of a dangerous failure on demand

PFH = Average frequency of a dangerous failure [h-1]

< 2E-05

< 1E-09

326

Automation system System Manual, 11/2019, A5E03461182-AF

Technical specifications 15.6 Information on insulation tests, protection class, degree of protection and rated voltage

15.6

Information on insulation tests, protection class, degree of protection

and rated voltage

Insulation

The insulation is designed in accordance with the requirements of EN 61010-2-201.
Note In the case of modules with 24 V DC (SELV/PELV) supply voltage, galvanic isolations are tested with 707 V DC (type test).

Pollution degree/overvoltage category in accordance with EN 61131-2: 2007 and IEC 61010-2-201
 Pollution degree 2  Overvoltage category: II
Protection class according to IEC 61131-2: 2007 and IEC 61010-2-201
The S7-1500 automation system/ET 200MP distributed I/O system meets protection class I and contains parts of protection classes II and III.
Degree of protection IP20
Degree of protection IP20 in accordance with IEC 60529 for all modules of the S7-1500 automation system/ET 200MP distributed I/O system:  Protection against contact with standard test fingers  Protection against foreign objects with diameters in excess of 12.5 mm  No protection against water

Automation system System Manual, 11/2019, A5E03461182-AF

327

Technical specifications 15.7 Use of the S7-1500/ET 200MP in zone 2 hazardous areas

Rated voltage for operation
The S7-1500 automation system/ET 200MP distributed I/O system works with the rated voltages and corresponding tolerances listed in the following table.
Note the supply voltage of each module when selecting the rated voltage.

Table 15- 10 Rated voltage of all modules of the S7-1500 automation system/ET 200MP distributed I/O system for operation

rated voltage 24 V DC 48 V DC 60 V DC 120 V AC 230 V AC

Tolerance range 19.2 V DC to 28.8 V DC 1 40.8 to 57.6 V DC 51.0 to 72.0 V DC 93 V AC to 132 V AC 187 V AC to 264 V AC

1 Static value: Generation as protective extra-low voltage with safe electrical isolation in accordance with IEC 61131-2 or IEC 61010-2-201.

15.7

Use of the S7-1500/ET 200MP in zone 2 hazardous areas

Reference

You can find more information in the product information Use of modules in a Zone 2 Hazardous Area (http://support.automation.siemens.com/WW/view/en/19692172).

328

Automation system System Manual, 11/2019, A5E03461182-AF

Dimension drawings

A.1

Dimension drawings of the mounting rails

Mounting rail 160 mm

A

Figure A-1 Mounting rail 160 mm

Automation system System Manual, 11/2019, A5E03461182-AF

329

Dimension drawings A.1 Dimension drawings of the mounting rails
Mounting rail 245 mm

Figure A-2 Mounting rail 245 mm
Mounting rail 482.6 mm

Figure A-3 Mounting rail 482.6 mm

330

Automation system System Manual, 11/2019, A5E03461182-AF

Mounting rail 530 mm

Dimension drawings A.1 Dimension drawings of the mounting rails

Figure A-4 Mounting rail 530 mm
Mounting rail 830 mm

Figure A-5 Mounting rail 830 mm
Automation system System Manual, 11/2019, A5E03461182-AF

331

Dimension drawings A.2 Dimension drawing of shielding bracket for 35 mm modules
Mounting rail 2000 mm

Figure A-6 Mounting rail 2000 mm

A.2

Dimension drawing of shielding bracket for 35 mm modules

Figure A-7 Dimension drawing of shielding bracket for 35 mm modules

332

Automation system System Manual, 11/2019, A5E03461182-AF

Dimension drawings A.3 Dimension drawing of shielding bracket for 25 mm modules

A.3

Dimension drawing of shielding bracket for 25 mm modules

Figure A-8 Dimension drawing of shielding bracket for 25 mm modules

A.4

Dimension drawing of shielding bracket for 35 mm modules

Figure A-9 Dimension drawing of shielding bracket for 35 mm modules

Automation system System Manual, 11/2019, A5E03461182-AF

333

Dimension drawings A.5 Dimension drawing of shielding bracket for 25 mm modules

A.5

Dimension drawing of shielding bracket for 25 mm modules

Figure A-10 Dimension drawing of shielding bracket for 25 mm modules

A.6

Dimension drawing of infeed element for 35 mm modules

Figure A-11 Dimension drawing of infeed element for 35 mm modules

A.7

Dimension drawing of infeed element for 25 mm modules

Figure A-12 Dimension drawing of infeed element for 25 mm modules

334

Automation system System Manual, 11/2019, A5E03461182-AF

Dimension drawings A.8 Dimension drawings of the labeling strips

A.8

Dimension drawings of the labeling strips

Figure A-13 Dimension drawing of labeling strips for 35 mm modules

A.9

Figure A-14 Dimension drawing of labeling strips for 25 mm modules
Dimension drawing of test probe for measurement tap
To perform measurements on the front connector of the S7-1500/ET 200MP automation system, you need a test probe with the following properties:  Maximum diameter at measuring tip: 1 mm  Length of measuring tip:  10 mm

Figure A-15 Dimension drawing of test probe for measurement tap Corresponding test probes are available from electrical retailers.

Automation system System Manual, 11/2019, A5E03461182-AF

335

Accessories/spare parts

B

Accessories for the S7-1500 automation system/ET 200MP distributed I/O system

Table B- 1 General accessories

Designation Mounting rail · Mounting rail, 160 mm (with drill holes)

Article number 6ES7590-1AB60-0AA0

· Mounting rail, 245 mm (with drill holes)

6ES7590-1AC40-0AA0

· Mounting rail, 482 mm (with drill holes)

6ES7590-1AE80-0AA0

· Mounting rail, 530 mm (with drill holes)

6ES7590-1AF30-0AA0

· Mounting rail, 830 mm (with drill holes)

6ES7590-1AJ30-0AA0

· Mounting rail, 2000 mm (without drill holes) for cutting to length

6ES7590-1BC00-0AA0

Standard rail adapter, 10 adapters, 10 hexagon socket screws and 10 washers

6ES7590-6AA00-0AA0

Active backplane bus (for an interface module and 12 I/O mod- 6ES7590-0BL00-0AA0 ules)

PE connection element for mounting rail, 2000 mm (spare part), 6ES7590-5AA00-0AA0 20 units

Front connector (incl. four potential bridges, cable tie, and individual labeling strip) for 35 mm modules

· Screw-type terminals, 40-pin

6ES7592-1AM00-0XB0

Front connector (incl. four potential bridges, cable tie, and individual labeling strip) for 35 mm modules

· Push-in terminal (40-pin)

6ES7592-1BM00-0XB0

Front connector (incl. cable tie and individual labeling strip) for 25 mm modules

· Push-in terminal (40-pin)

6ES7592-1BM00-0XA0

4-pole connection plug for supply voltage (spare part), 10 units DIN A4 labeling sheet (10 x for labeling the 35 mm I/O modules) · Pre-perforated, AI gray

6ES7193-4JB00-0AA0 6ES7592-2AX00-0AA0

DIN A4 labeling sheet (10 x for labeling the 25 mm I/O modules)

· Pre-perforated, AI gray

6ES7592-1AX00-0AA0

U connector (spare part), 5 units
I/O shielding set for 35 mm modules (consists of: power supply element, shielding bracket, and shield clamp), (spare part), 5 units

6ES7590-0AA00-0AA0 6ES7590-5CA00-0AA0

336

Automation system System Manual, 11/2019, A5E03461182-AF

Accessories/spare parts

Designation
I/O shielding set for 25 mm modules (consists of: power supply element, shielding bracket, and shield clamp), (spare part), 4 units
Shield clamp (spare part), 10 units
Display 70 mm (spare part) for the following CPUs:

Article number 6ES7590-5CA10-0XA0
6ES7590-5BA00-0AA0 6ES7591-1BA00-0AA0

· CPU 1515(F)-2 PN

· CPU 1515T(F)-2 PN

· CPU 1516(F)-3 PN/DP

· CPU 1516T(F)-3 PN/DP

· CPU 1517(F)-3 PN/DP

· CPU 1517T(F)-3 PN/DP

· CPU 1518(F)-4 PN/DP

· CPU 1518(F)-4 PN/DP MFP

Display 35 mm (spare part) for the following CPUs:

6ES7591-1AA00-0AA0

· CPU 1511(F)-1 PN

· CPU 1511C-1 PN

· CPU 1511T(F)-1 PN

· CPU 1512C-1 PN

· CPU 1513(F)-1 PN

Display 35 mm for standard, F-CPUs / compact CPUs from article number 6ES751x-xxx02-0AB0/6ES751x-1CK01-0AB0
Display 70 mm for standard, F-CPUs from article number 6ES751x-xxx02-0AB0
Power cable connector with coding element for power supplies (spare part), 10 units
Potential bridge for front connector (spare part), 20 units
Universal front cover for 35 mm I/O modules (spare part), 5 units

6ES7591-1AB00-0AA0
6ES7591-1BB00-0AA0
6ES7590-8AA00-0AA0
6ES7592-3AA00-0AA0 6ES7528-0AA00-7AA0 Consists of:

· 5 x front cover · 5 x front labeling strip (per module - article number)

· 5 x wiring diagram (per module article number)

Universal front cover for 25 mm I/O modules (spare part), 5 units 6ES7528-0AA00-0AA0 Consists of:

· 5 x front cover · 5 x front labeling strip (per module - article number)

· 5 x wiring diagram (per module article number)

Universal front cover for interface module (spare part), 5 units

6ES7528-0AA70-7AA0 Consists of:

· 5 x front cover

Industrial Ethernet FastConnect RJ45 plug 180 degrees, 1 unit 6GK1901-1BB10-2AA0 Industrial Ethernet FastConnect RJ45 plug 180 degrees, 10 units 6GK1901-1BB10-2AB0

Automation system System Manual, 11/2019, A5E03461182-AF

337

Accessories/spare parts

Designation
Industrial Ethernet FastConnect RJ45 plug 90 degrees, 1 unit
Industrial Ethernet FastConnect RJ45 plug 90 degrees, 10 units
PROFIBUS-FastConnect bus connector without programming device socket, up to 12 MBaud, 1 unit
PROFIBUS FastConnect bus connector with programming device socket, up to 12 MBaud, 1 unit *
PROFIBUS FastConnect bus connector without programming device socket, up to 12 MBaud, 1 unit
PROFIBUS FastConnect bus connector with programming device socket, up to 12 MBaud, 1 unit

Article number 6GK1901-1BB20-2AA0 6GK1901-1BB20-2AB0 6ES7972-0BA70-0XA0
6ES7972-0BB70-0XA0
6ES7972-0BA52-0XA0
6ES7972-0BB52-0XA0

* The PROFIBUS FastConnect bus connector 0BB70 is supplied with the IM 155-5 DP ST interface module and can also be ordered as a spare part.

SIMATIC memory cards
Article number 6ES7954-8LCxx-0AA0 6ES7954-8LExx-0AA0 6ES7954-8LFxx-0AA0 6ES7954-8LL02-0AA0 6ES7954-8LPxx-0AA0 6ES7954-8LT02-0AA0

Capacity 4 MB 12 MB 24 MB 256 MB 2 GB 32 GB

Online catalog

Other article numbers for the S7-1500 automation system/ET 200MP distributed I/O system can be found on the Internet (https://mall.industry.siemens.com) in the online catalog and the online order system.

Accessories for fail-safe modules S7-1500/ET 200MP

Table B- 2 Accessories for fail-safe modules Designation Electronic coding element with rewritable memory for failsafe modules (spare part), 5 units Front cover for 35 mm F-I/O modules (spare part), 5 units
DIN A4 labeling sheet (10 x for labeling the fail-safe I/O modules), pre-perforated, yellow

Article number 6ES7592-6EF00-1AA0
6ES7528-0AA10-7AA0 Consists of: · 5 x front cover · 5 x front labeling strip (per module - article number) · 5 x wiring diagram (per module article number) 6ES7592-2CX00-0AA0

338

Automation system System Manual, 11/2019, A5E03461182-AF

Safety-relevant symbols

C

C.1

Safety-related symbols for devices without Ex protection
The following table contains an explanation of the symbols located in your SIMATIC device, its packaging or the accompanying documentation.

Symbol

Meaning General warning sign Caution/Notice You must read the product documentation. The product documentation contains information about the potential risks and enable you to recognize risks and implement countermeasures. Read the information provided by the product documentation. ISO 7010 M002
Ensure the device is only installed by electrically skilled person. IEC 60417 No. 6182
Note that connected mains lines must be designed according to the expected minimum and maximum ambient temperature.

Note that the device must be constructed and connected in accordance with EMC regulations.

Note that a 230 V device can be exposed to electrical voltages which can be dangerous. ANSI Z535.2
Note that a device of Protection Class III may only be supplied with a protective low voltage according to the standard SELV/PELV. IEC 60417-1-5180 "Class III equipment"
Be aware that the device is only approved for the industrial field and only for indoor use.

Note that an enclosure is required for installing the device. Enclosures are considered:
· Standing control cabinet · Serial control cabinet · Terminal boxes · Wall enclosure

Automation system System Manual, 11/2019, A5E03461182-AF

339

Safety-relevant symbols C.2 Safety-related symbols for devices with Ex protection

C.2

Safety-related symbols for devices with Ex protection
The following table contains an explanation of the symbols located in your SIMATIC device, its packaging or the accompanying documentation.

Symbol

Meaning
The assigned safety symbols apply to devices with Ex approval.
You must read the product documentation. The product documentation contains information about the potential risks and enable you to recognize risks and implement countermeasures.

Read the information provided by the product documentation. ISO 7010 M002 Ensure the device is only installed by electrically skilled person. IEC 60417 No. 6182 Observe the mechanical rating of the device.
Note that connected mains lines must be designed according to the expected minimum and maximum ambient temperature.
Note that the device must be constructed and connected in accordance with EMC regulations.
When the device is under voltage, note that it may not be installed or removed, or plugged or pulled.
Note that a 230 V device can be exposed to electrical voltages which can be dangerous. ANSI Z535.2
Note that a device of Protection Class III may only be supplied with a protective low voltage according to the standard SELV/PELV. IEC 60417-1-5180 "Class III equipment"
Be aware that the device is only approved for the industrial field and only for indoor use.

340

Automation system System Manual, 11/2019, A5E03461182-AF

Safety-relevant symbols C.2 Safety-related symbols for devices with Ex protection

Symbol

Meaning
For Zone 2 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP54.

For Zone 22 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP6x.

Automation system System Manual, 11/2019, A5E03461182-AF

341

Glossary

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains in the process engineering industry and in manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Baud rate

Data transmission rate indicates the number of bits transmitted per second (baud rate = bit rate).

Bit memory

Bit memory is a component of the system memory of the CPU for saving intermediate results. It can be accessed in bit, byte, word or double word mode.

Bus
Joint transmission path to which all nodes of a fieldbus system are connected; has two defined ends.

Bus cable connector
Physical connection between the bus node and the bus cable.

Bus, self-assembling
The modules are lined up on the mounting rail, and are mechanically and electrically connected to each other with a U connector as they are swiveled into position. In this way the bus is extended with each module.

Code block

In SIMATIC S7, a code block is a block that contains a section of the STEP 7 user program. (in contrast to a data block, which contains only data)

Configuration

Systematic arrangement of the individual modules (configuration).

342

Automation system System Manual, 11/2019, A5E03461182-AF

Glossary

Connection plug
The connection plug provides the physical connection between devices and the cable, for example.

Consistent data
Data whose content belongs together and must not be separated is known as consistent data.

Counter

Counters are components of the system memory of the CPU. You can modify the content of the "counter cells" using STEP 7 instructions (e.g. count up/down).

CPU

The CPU uses the integrated system power supply to supply the electronics of the modules via the backplane bus. The CPU contains the operating system and executes the user program. The user program is located on the SIMATICmemory card and is processed in the work memory of the CPU. The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. The S7-1500 CPUs support operation as an IO controller and I-device. Similarly to the PROFINET interface, the PROFIBUS interface available on some of the S7-1500 CPUs allows communication with other devices. When the interface is used as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

Crimping

Procedure whereby two components joined together, e.g. wire end sleeve and cable, are connected with one another through plastic strain.

Cycle control point
The cycle control point marks the end of a cycle and the start of the next cycle. The cycle time statistics and monitoring of the configured maximum cycle time start at the cycle control point.
Once the cycle control point has been reached, the CPU writes the process image output to the output modules, reads the state of the inputs to the input modules and then executes the first cyclic OB.

Cycle time

The cycle time represents the time a CPU requires to execute the user program once.

Cyclic interrupt
You can find relevant information under the entry "Interrupt, Cyclic "

Automation system System Manual, 11/2019, A5E03461182-AF

343

Glossary

Data block

Data blocks (DBs) are data areas in the user program that contain user data. There are global data blocks, which can be accessed from all code blocks, and instance data blocks, which are assigned to a specific FB call.

Device

A device can send, receive or amplify data via the bus, e.g. IO device via PROFINET IO.

Device names

Before an IO device can be addressed by an IO controller, it must have a device name. This approach was chosen for PROFINET because names are easier to administer than complex IP addresses.
In its delivery state, an IO device has no device name. An IO device be addressed by an IO controller only after a device name has been assigned using the PG/PC, e.g. for the transmission of configuring data (including the IP address) during start-up or for the exchange of useful data in cyclic mode.

Diagnostic buffer
The diagnostic buffer is a battery-backed memory area in the CPU where diagnostic events are stored in their order of occurrence.

Diagnostics

Monitoring functions for the detection, localization, classification, display, and further evaluation of errors, faults, and alarms. They run automatically while the system is in operation. This increases the availability of systems by reducing commissioning times and downtimes.

Diagnostics interrupt
You can find relevant information under the entry "Interrupt, Diagnostics"

Distributed I/O system
System with I/O modules that are configured on a distributed basis, at a large distance from the CPU controlling them.

DP
Distributed I/O

344

Automation system System Manual, 11/2019, A5E03461182-AF

Glossary

Equipotential bonding
Electrical connection (potential equalization conductor) that brings the bodies of electrical equipment and other conductive bodies to the same or almost the same potential, in order to prevent disruptive or dangerous voltages between these bodies.

Firmware of the CPU
In SIMATIC, a distinction is made between the firmware of the CPU and user programs.
The firmware is a software embedded in electronic devices. The firmware is permanently connected to the hardware in functional terms. It is usually saved in a flash memory, such as EPROM, EEPROM or ROM, and cannot be replaced by the user or only with special tools or functions.
User program: You will find further information in the glossary entry "User program"

Firmware update
Upgrade of firmware for CPU and the modules (interface modules, I/O modules etc.), e.g. after function extensions, to the most recent firmware version (update).

Function

A function (FC) is a code block with no static data. A function allows you to pass parameters in the user program. Functions are thus suited for programming frequently recurring complex functions, such as calculations.

Function block

A function block (FB) is a code block with static data. An FB allows you to pass parameters in the user program. Function blocks are thus suited for programming frequently recurring complex functions, such as closed-loop controls or operating mode selection.

Functional ground
The functional ground is a low-impedance current path between electric circuits and ground. It is not intended as a protective measure but rather, for example, for improvement of interference immunity.

Ground

Conductive ground whose electrical potential can be set equal to zero at any point.
All interconnected, inactive parts of a piece of equipment that cannot accept any dangerous contact voltage, even in the event of a fault.

Automation system System Manual, 11/2019, A5E03461182-AF

345

Glossary

Ground

Conductive ground whose electrical potential can be set equal to zero at any point.
All interconnected, inactive parts of a piece of equipment that cannot accept any dangerous contact voltage, even in the event of a fault.

Grounding

Grounding means connecting an electrically conductive part to a grounding electrode by means of a grounding system.

GSD file

The Generic Station Description file contains all properties of a PROFINET or PROFIBUS device that are necessary for its configuration.

Hardware interrupt
You can find relevant information under the entry "Interrupt, Hardware "

I/O modules

All modules that can be operated with a CPU or an interface module.

Identification data
Information that is saved in modules, and that supports the user in reviewing the system configuration and locating hardware changes.

Instance data block
Each call of a function block in the STEP 7 user program is assigned a data block, which is automatically generated. Values of the input, output and in/out parameters, as well as local block data, are stored in the instance data block.

Interface module
Module in the distributed I/O system. The interface module connects the distributed I/O system to the CPU (IO controller) via a fieldbus, and prepares the data for and from I/O modules.

Interrupt

The operating system of the CPU distinguishes between various priority classes that control the execution of the user program. These priority class processes include, for example, hardware interrupts. When an interrupt occurs, the operating system automatically calls an assigned organization block. The user can program the desired reaction in the organization block, e.g. in a FB.

346

Automation system System Manual, 11/2019, A5E03461182-AF

Glossary

Interrupt, cyclic
The CPU generates a cyclic interrupt periodically within a parameterizable time grid and then processes the corresponding organization block.

Interrupt, hardware
A hardware interrupt is triggered by interrupt-triggering modules due to a certain event in the process. The hardware interrupt is signaled to the CPU. The CPU then processes the assigned organization block according to the priority of this interrupt.

Interrupt, time-delay
The time-delay interrupt is one of the program execution priority classes of SIMATIC S7. The time-delay interrupt is generated upon expiration of a timer started in the user program. The CPU then processes the corresponding organization block.

Interrupt, time-of-day
The time-of-day interrupt is one of the program execution priority classes of SIMATIC S7.. The time-of-day interrupt is generated based on a defined date (or daily) and time (e.g. 9:50 or every hour, every minute). The CPU then processes the corresponding organization block.

Interrupt, update
When it receives an update interrupt, the operating system calls the update interrupt OB. This may happen if you changed a parameter on a slot of a device.

IP address

The IP address is made up of four decimal numbers with a range of values from 0 through 255. The decimal numbers are separated by a dot (for example 192.162.0.0). The IP address consists of the following:  Address of the network  Address of the device (PROFINET interface of the IO controller/IO device)

Isolated modules
In the case of isolated input/output modules, the reference potentials of the control and load circuits are galvanically isolated, e.g. by means of optical isolators, relays or transformers. Input/output circuits can be connected to common potential.

Load current supply
Supply of the module's input and output electric circuits.

Automation system System Manual, 11/2019, A5E03461182-AF

347

Glossary

MAC address

Every PROFINET device is assigned a worldwide unique device identification before it leaves the factory. This 6-byte long device identification is the MAC address.
The MAC address is divided into:
 3-byte manufacturer identification
 3-byte device identification (consecutive number)
The MAC address is generally shown on the front of the device. Example: 08-00-06-6B-80-C0

Non-isolated modules
In the case of non-isolated input and output modules, the reference potentials of the control and load circuits are electrically connected.

NTP

The Network Time Protocol (NTP) is a standard for synchronizing clocks in automation systems via Industrial Ethernet. NTP uses the UDP connectionless network protocol.

Operating modes
Operating states describe the behavior of a single CPU at a specific time.

Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The organization blocks determine the order in which the user program is executed.

Parameter

 Tag of a STEP 7 code block:
 Tag for setting the behavior of a module (one or more per module). In as-delivered state, every module has an appropriate basic setting, which you can change by configuring in STEP 7. There are static and dynamic parameters

Parameters, dynamic
In contrast to static parameters, you can change dynamic parameters of modules during operation by calling an SFC in the user program, e.g. limit values of an analog input module.

Parameters, static
In contrast to dynamic parameters, you cannot change static parameters of modules with the user program but only by configuring in STEP 7, e.g. input delay of a digital input module.

348

Automation system System Manual, 11/2019, A5E03461182-AF

Glossary

PELV

Protective Extra Low Voltage = safety extra low voltage connected to protective earth

Pre-wiring

Wiring of the electrical system on the front connector before the front connector is used on the I/O module.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program the signal states of the input modules are transmitted to the process image of the inputs. At the end of the cyclic program the process image of the outputs is transmitted as signal state to the output modules.

Product version (PV) = Function version (FV)
The product version or function version provides information on the hardware version of the module.

PROFIBUS

PROcess FIeld BUS, process and fieldbus standard that is specified in IEC 61158 Type 3. It specifies functional, electrical and mechanical characteristics for a bit-serial field bus system.
PROFIBUS supports the protocols DP (= Distributed I/O), FMS (= Fieldbus Message Specification), PA (= Process Automation), or TF (= Technological Functions).

PROFINET

PROcess FIeld NETwork, open industrial Ethernet standard which further develops PROFIBUS and industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V. as an automation standard.

PROFINET IO

Communication concept for the realization of modular, distributed applications within the scope of PROFINET.

PROFINET IO controller
Device used to address connected I/O devices (e.g. distributed I/O systems). This means that: The IO controller exchanges input and output signals with assigned IO devices. Often, the IO controller is the CPU on which the automation program runs.

Automation system System Manual, 11/2019, A5E03461182-AF

349

Glossary

PROFINET IO device
Distributed field device that can be assigned to one or more IO controllers (e.g. distributed I/O system, valve terminals, frequency converters, switches).

Push-in terminal
Terminal for the tool-free connection of wires.

Reference potential
Potential from which the voltages of the circuits involved are observed and/or measured.

Restart

During a warm restart, all non-retentive bit memory is deleted and non-retentive DB contents are reset to the initial values from load memory. Retentive bit memory and retentive DB contents are retained. Program execution begins at the call of the first startup OB.

Retentivity

A memory area whose content is retained after power failure and after a STOP to RUN transition is retentive. The non-retentive area bit memory area, timers and counters are reset after a power failure and after a STOP to RUN transition. The non-retentive content of data blocks is reset to the initial values.

Row

All the modules attached to a mounting rail.

Runtime error

Error that occurs during execution of the user program in the automation system (thus not in the process).

SELV

Safety Extra Low Voltage = Safety extra-low voltage

Slave station

A slave may only exchange data with a master after being requested to by the master.

350

Automation system System Manual, 11/2019, A5E03461182-AF

Glossary

SNMP

SNMP (Simple Network Management Protocol) is the standardized protocol for performing diagnostics on and assigning parameters to the Ethernet network infrastructure.
In the office setting and in automation engineering, devices from a wide range of vendors on the Ethernet support SNMP.
SNMP-based applications can be operated on the same network in parallel to applications with PROFINET.
The scope of supported functions varies depending on the device type. For example a switch has more functions than a CP 1616.

Switch

PROFIBUS is a linear network. The communication nodes are linked by means of a passive cable - the bus.
By contrast, Industrial Ethernet consists of point-to-point connections: Each communication node is directly connected to exactly one communication node.
If a communication node is linked to several communication nodes, this communication node is connected to the port of an active network component - the switch. Additional communication nodes (including switches) can now be connected to the other ports of the switch. The connection between a communication node and the switch remains a point-topoint connection.
A switch thus has the task of regenerating and distributing received signals. The switch "learns" the Ethernet address(es) of a connected PROFINET device or additional switches and only forwards those signals that are intended for the connected PROFINET device or switch.
A switch has a specific number of connections (ports). You connect at most one PROFINET device or additional switch to each port.

System power supply
Consists of the integrated system power supply of the CPU/interface module and additional power supplies (PS), if necessary. The system power supply serves exclusively to supply the I/O modules via the backplane bus.

Technology object
A technology object supports you in the configuration and commissioning of a technological function.
The properties of real objects are represented by technology objects in the controller. Real objects can be, for example, controlled systems or drives.
The technology object contains all data of the real object required for its open-loop or closedloop control, and it signals back status information.

Automation system System Manual, 11/2019, A5E03461182-AF

351

Glossary

TIA Portal

Totally Integrated Automation Portal
The TIA Portal is the key to the full performance capability of Totally Integrated Automation. The software optimizes operating, machine and process sequences.

Time-delay interrupt
You can find relevant information under the entry "Interrupt, time-delay"

Time-of-day interrupt
You can find relevant information under the entry "Interrupt, Time-of-day"

Timer

Timers are components of the system memory of the CPU. The operating system automatically updates the content of the "timer cells" asynchronously to the user program. STEP 7 instructions define the precise function of the timer cell (for example on-delay) and trigger its execution.

Update interrupt
You can find relevant information under the entry "Interrupt, Update "

User program

SIMATIC differentiates between the operating system of the CPU and user programs. The user program contains all instructions, declarations and data for the signal processing, which control a system or process. The user program is assigned to a programmable module, a CPU, for example. Structuring into smaller unit is supported.

Value status

The value status is additional binary information of a digital input or output signal. The value status is entered simultaneously with the process signal in the process image input and provides information about the validity of the signal.

Warm restart

You can find relevant information under the entry "Restart"

352

Automation system System Manual, 11/2019, A5E03461182-AF

Index
2
24 V DC supply, 130
A
Accessible devices Firmware update, 290
Accessories, 336 Addressing, 174
Analog modules, 178 Basics, 174 Digital modules, 176 Ambient condition Climatic, 323 Mechanical, 322 Operating conditions, 321 Analog modules Addressing, 178 Application in industrial environments, 317 in mixed areas, 317 in residential areas, 317 Power segment, Approvals, 312 CE, 313 cULus, 313 FM, 315 IEC 61010, 316 IEC 61131, 316
C
CE approval, 313 Climatic ambient conditions, 323 Coding element, 147, 278
Basics, 278 Front connectors, 283 Power connector, 285 Replace module, 282 Commissioning, 229, 261 Check before power-on, 230 First power-on, 235 First power-on, requirements, 235 Identification data, 258, 261 Identification data - record structure, 261
Automation system System Manual, 11/2019, A5E03461182-AF

Procedure, 231 Removing/inserting SIMATIC memory card, 232 Reset to factory settings, 297 Components Overview of the ET 200MP, 36 Configuration, 135 Basics, 169 Electrical, 138 ET 200MP, 31 On grounded reference potential, 134 Configuration control, 209, 210 Configuration control for IO systems, 209 Configuring, 183 Properties of the CPUs, 173 Connection plug 4-pole, 39 Control data record S7-1500, 217 CPU, 37 Accessories, 336 Backup/restore contents, 250 Display, 266 Installing, uninstalling, 125 Memory reset, 246 Reading out service data, 308 Reset to factory settings, 293 Supply voltage, 146 Wiring rules, 141 cULus approval, 313
D
Degree of protection IP20, 327 Digital modules
Addressing, 176 Dimension drawing, 332
Infeed element, 334, 334 Labeling strips, 335 Mounting rail, 329 Shield clamp, 333, 334 Shielding bracket, 333 Display, 266 Basics, 266 Control buttons, 271 Languages, 274
353

Index

E

H

Electromagnetic compatibility (EMC), 318 Electrostatic discharge, 318 EMC (Electromagnetic compatibility), 318
Disturbances, 318 Radio interference, 319 EMERGENCY-STOP devices, 129 ET 200MP, 29 Accessories, 336 Area of application, 23 Components, 36 Configuration example, 34 Configuring, 183 Examples of configurations, 31 Example Configuration of ET 200MP, 34 Examples of configurations, 31
F
Factory settings, 293, 297 Fail-safe I/O modules
Coding element, 38 FAQ
Emergency address, 251 FAQs
Firmware update, 292 Labeling strips, 165 Load current supplies, 96 Removing a SIMATIC memory card, 234 Firmware update, 287 FM approval, 315 Front connectors, 38 Final position, 163 General information, 152 Potential bridge, 152 replacing, 283 Shield contact, 162 Wiring, 154, 156, 158, 160 Wiring of analog modules, 156 Wiring rules, 141

Hardware configuration ET 200MP DP Slots, 94
Hardware configuration ET 200MP PN Slots, 93
I
I/O module, 38 Front connectors, 152 Inserting or removing, 275 Installing, uninstalling, 128 Marking, 164 replacing, 282
Identification data, 258 Record structure, 261
IEC 60204, 129 IEC 61010, 316 IEC 61131, 316 Infeed, 134 Infeed element, 334, 334 Infeed, grounded, 134 Installation
Basics, 107 CPU, 125 I/O modules, 128 Interface module, 126 Load current supply, 123 Mounting rail, 109, 112 Power supply, 120 Installation position, 107 Installation rules, 109 Insulation, 327 Interface module, 37 Installation rules, 109 Installing, uninstalling, 126 Reset to factory settings, 297 Supply voltage, 146 Wiring rules, 141
K

G

Know-how protection, 203

Galvanic isolation, 138 Grounded infeed, 134 Grounding, 113
Configuration on grounded reference potential, 134 Overview of the CPU, 137

L
Labeling strips, 39, 164, 164 Dimension drawing, 335
Languages Display, 274

354

Automation system System Manual, 11/2019, A5E03461182-AF

Index

Lightning protection, 130 Line voltage, 130 Load current supply, 40, 95
Definition, 95 Installing, uninstalling, 123 Wiring rules, 141
M
Main entry, 23 Maintenance
Coding element, 278 Firmware update, 287 Reading out service data, 308 Removal and insertion, 275 Replace module, 282 Replacing a front connector, 283 Reset to factory settings, 293 Test functions, 301 Marking, 164, 166 Labeling strips, 164 optional, 166 Maximum configuration with PROFIBUS interface module, 94 with PROFINET interface module, 92 Maximum cycle time, (Cycle monitoring time), (Cycle monitoring time) Memory reset Automatic, 247 Basics, 246 Manual, 248, 248 Minimum clearances, 108 Module swapping, (See Replacing) Mounting rail, 36, 107, 109 Attaching the protective conductor, 113 Dimension drawing, 329 Drill holes, 111 Fastening, 111 installation, 112 Length, 111 Multiple use IO systems, 209
O
OBs, 186 Event source, 186 Priorities, 186 Priorities and runtime behavior, 187 Queue, 186 Triggers, 186

Operating mode Setting the startup behavior, 241
Operating modes Basics, 238 Operating mode transitions, 244 RUN, 243 STARTUP, 238 STOP, 242
Option handling, (Configuration control) Overall configuration, 137 Overload, 105 Overview
Components of an S7-1500, 36 Grounding the CPU, 137 Overview, graphic Examples of configurations, 31
P
Password provider, 203 PE connection element, 36 PELV, 135, 135 Pollution degree, 327 Potential bridge, 38
Front connectors, 152 Power balance calculation, 103
Overload, 105 Power segment
Application, 98 Power supply, 120 Power supply element, 39 Process image
Inputs and outputs, 180 Process image partition, 181
updating in the user program, 182 Protection, 199, 204, 207, 208
Access levels, 199 Behavior of a password-protected CPU, 201 Copy protection, 207 Know-how protection, 204 mechanical locking, 208 Protection against electrical shock, 130 Protection against external electrical influences, 130 Protection class, 327
R
Radio interference, 317, 319 rated voltage, 328 Reading out service data, 308 Reference potential of the controller, 135

Automation system System Manual, 11/2019, A5E03461182-AF

355

Index
Removal and insertion of modules, 275 Replacing
Front connectors, 283 I/O module, 282
S
S7-1500 Area of application, 23 Configuration, 30 Configuration example, 30 Overview of components, 36
S7-1500 CPU/ET 200MP interface module Rules and regulations for operation, 129
S7-1500 hardware configuration Slots, 91
Safe electrical isolation, 135, 135 Shield clamp, 39, 333, 334 Shielding bracket, 39, 332, 332, 333 Shipping conditions, 321 Short-circuit and overload protection, 136 Spare parts, 336 Specific application, 129 Standard machine project, 209 Standards, 312 Storage conditions, 321 Supply voltage
CPU, 146 Interface module, 146 Swapping, (See Replacing) System power supply, 40, 95 Application, 97, 98 Configuration variants, 97 Definition, 95 Installing, uninstalling, 121 Power segment, 97 Wiring rules, 141
T
Technical specifications Climatic ambient conditions, 323 Electromagnetic compatibility (EMC), 318 Shipping and storage conditions, 321 Standards and Approvals, 312
Test functions, 301 Test voltage, 327 type-coded, 278

U
U connector, 38 Uninstalling
CPU, 125 I/O module, 128 Load current supply, 124 System power supply, 121
W
Wiring, 129 Front connectors, (Analog modules), 158 General rules for the S7-1500 CPU/the ET 200MP interface module, 129 Front connectors, (Analog modules), 158 Front connectors, (Analog modules), 158 Load current supply, 147 Sensors and actuators, 152 Supply voltage to the CPU, 146 System power supply, 147 Without tools, 146
Wiring actuators, 152 Wiring rules
CPU, 141 Front connectors, 141 Load current supply, 141 System power supply, 141 Wiring sensors, 152
Z
Zone 2 hazardous atmosphere, 328

356

Automation system System Manual, 11/2019, A5E03461182-AF

S7-1500
SIMATIC S7-1500
Getting Started

_W_el_co_m_e ______________ _Au_to_m_a_tio_n _ta_sk__________1_ _Ha_rd_w_a_re_se_c_tio_n_________2_ _So_ft_wa_re_s_e_ct_ion__________3_ _Se_c_ur_ity______________4_

05/2014
A5E03981761-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03981761-AC  05/2014 Subject to change

Copyright © Siemens AG 2013 - 2014. All rights reserved

Welcome

Welcome

Welcome to the Getting Started "TIA Portal V13".
In this Getting Started, we show you an example of how to use the CPU SIMATIC S7-1500 with the TIA Portal to create an automation solution for a "color mixing plant". Video clips will illustrate the approach for creating a solution for the automation task.
In the first part, you assemble the hardware and prepare your configuration PC.
In the second part, you configure the CPU and HMI visualization using the example of a color mixing plant.
In addition, you can find options and extensions for your automation solutions.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

S7-1500

Getting Started, 05/2014, A5E03981761-AC

3

Table of contents

Welcome ................................................................................................................................................ 3

1 Automation task ...................................................................................................................................... 7

1.1

Introduction.................................................................................................................................... 7

1.2

Sample project .............................................................................................................................. 8

2 Hardware section .................................................................................................................................. 15

2.1 2.1.1 2.1.2

Introduction.................................................................................................................................. 15 Requirements .............................................................................................................................. 15 Additional information.................................................................................................................. 16

2.2 2.2.1 2.2.2

Installing the assembly ................................................................................................................ 17 Overview ..................................................................................................................................... 17 Installing the assembly ................................................................................................................ 17

2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8

Wiring .......................................................................................................................................... 20 Overview ..................................................................................................................................... 20 Wiring rules ................................................................................................................................. 21 Wiring the mains connection plug ............................................................................................... 22 Wiring the load current supply (PM) to the CPU ......................................................................... 24 Potential bridge circuits ............................................................................................................... 25 Wiring the digital input module .................................................................................................... 25 Wiring the digital output module.................................................................................................. 27 Wiring front connectors ............................................................................................................... 29

2.4 2.4.1 2.4.2 2.4.3

Power on ..................................................................................................................................... 31 Overview ..................................................................................................................................... 31 Power on ..................................................................................................................................... 31 Assign IP address via the display ............................................................................................... 33

3 Software section ................................................................................................................................... 34

3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9

Creating the project and hardware.............................................................................................. 34 Introduction to the TIA Portal ...................................................................................................... 34 Creating a project ........................................................................................................................ 36 Creating an S7-1500 CPU .......................................................................................................... 38 Running the hardware detection ................................................................................................. 40 Creating ET 200 interface modules ............................................................................................ 41 Networking ET 200 interface modules ........................................................................................ 42 Creating input and output modules and a server module for ET 200SP .................................... 44 Creating input and output modules for ET 200MP...................................................................... 46 Assigning names for ET 200 ....................................................................................................... 47

S7-1500

4

Getting Started, 05/2014, A5E03981761-AC

Table of contents

3.2

Creating the program ...................................................................................................................48

3.2.1 Loading the block library ..............................................................................................................48

3.2.2 Deleting program block Main [OB1] .............................................................................................50

3.2.3 Copying program blocks ..............................................................................................................51

3.2.4 Cyclic interrupt OB .......................................................................................................................52

3.2.4.1 Cyclic interrupt OB ­ Cycle time and phase ................................................................................52

3.2.4.2 Changing the cycle time...............................................................................................................53

3.2.5 Copying tag tables .......................................................................................................................54

3.2.6 Compiling a project ......................................................................................................................55

3.2.7 Load project into the CPU............................................................................................................57

3.2.8 Optimized block access ...............................................................................................................59

3.2.8.1 Introduction ..................................................................................................................................59

3.2.8.2 Expanding and reloading the optimized "Filling" data block ........................................................60

3.2.9 Versioning a block........................................................................................................................65

3.2.10 Setting retentivity..........................................................................................................................68

3.2.11 Activating the EN/ENO mechanism .............................................................................................71

3.2.12 Using the comment function ........................................................................................................73

3.2.13 Local error handling .....................................................................................................................74

3.2.13.1 Handle errors within block............................................................................................................74

3.2.13.2 Loading blocks for local error handling ........................................................................................76

3.2.13.3 Generating errors without local error handling.............................................................................78

3.2.13.4 Generating errors with local error handling..................................................................................79

3.3

Configure visualization .................................................................................................................81

3.3.1 Present sample project ................................................................................................................81

3.3.2 HMI configuration .........................................................................................................................81

3.3.2.1 Overview ......................................................................................................................................81

3.3.2.2 SIMATIC HMI Comfort Panels .....................................................................................................82

3.3.2.3 HMI screens .................................................................................................................................83

3.3.2.4 Additional control elements..........................................................................................................84

3.3.2.5 Recipes ........................................................................................................................................85

3.3.2.6 Archives .......................................................................................................................................86

3.3.2.7 User-defined functions .................................................................................................................87

3.3.2.8 User Management .......................................................................................................................88

3.3.2.9 Multilingualism..............................................................................................................................89

3.3.2.10 Reports.........................................................................................................................................91

3.3.3 Insert HMI device from libraries ...................................................................................................93

3.3.3.1 Storing an object in a library ........................................................................................................93

3.3.4 Configuring HMI connection.........................................................................................................94

3.3.4.1 Communication between devices ................................................................................................94

3.3.4.2 Configuring HMI connection.........................................................................................................95

3.3.4.3 Connecting HMI tags ...................................................................................................................97

3.3.5 Configuring system diagnostics ...................................................................................................99

3.3.5.1 System diagnostics basics...........................................................................................................99

3.3.5.2 System diagnostics views ..........................................................................................................100

3.3.5.3 Configuring the system diagnostic view.....................................................................................103

3.3.6 Simulating an HMI device ..........................................................................................................105

3.3.6.1 Simulation basics .......................................................................................................................105

3.3.6.2 Operating the panel in simulation ..............................................................................................106

S7-1500

Getting Started, 05/2014, A5E03981761-AC

5

Table of contents

3.4 3.4.1

Loading the project into the programming device ..................................................................... 110 Load CPU to project .................................................................................................................. 110

3.5 3.5.1 3.5.2 3.5.3

Team engineering via Inter Project Engineering....................................................................... 112 Basics of "Inter Project Engineering" ........................................................................................ 112 Creating an IPE file ................................................................................................................... 113 Importing an IPE file .................................................................................................................. 114

4 Security ...............................................................................................................................................117

4.1

Overview of the protective functions of the CPU ...................................................................... 117

4.2

Using the display to configure additional access protection ..................................................... 118

4.3

Know-how protection................................................................................................................. 119

4.4

Copy protection ......................................................................................................................... 122

4.5

Protection by locking the CPU .................................................................................................. 123

4.6

Configuring access protection for the CPU ............................................................................... 123

4.7

Configuring protection of the HMI connection........................................................................... 126

S7-1500

6

Getting Started, 05/2014, A5E03981761-AC

Automation task

1

1.1

Introduction

Introduction

In the following section, you will become familiar with the automation task.
You can find out more about the application example, the hardware configuration and the components of the sample project.

Application example
The application example for this Getting Started is a color mixing plant for mixing and filling a previously selected color recipe. There are four color components for the recipe, cyan, magenta, yellow and black, which means the colors of the CMYK color space. Filling takes place in four steps.  Selection of the color mixture using the HMI recipe function.  Filling the recipe components or the four basic colors by opening the respective tank
valves.  Mixing the colors.  Filling the finished color mixture into tins and transportation by a conveyor belt.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

7

Automation task 1.2 Sample project
Design of the hardware configuration
The hardware configuration consists of the following devices:  The CPU 1511-1 PN with an S7-1500 load current supply, a digital input module and a
digital output module.  HMI Panel TP1200 Comfort that can also be simulated with the TIA Portal.  Distributed ET 200MP I/O system with IM 155-5 PN ST interface module and digital input
and digital output modules.  Distributed ET 200SP I/O system with IM 155-6 PN ST interface module, digital input
modules, digital output modules and server module.

1.2

Sample project

Sample project for the application
To configure the color mixing system with the TIA Portal, create the sample project "Color_Filling_Station".
The following project components already exist for the sample project:
 The program blocks of the CPU
 The visualization of the HMI on a Comfort Panel
In this section, we will explain the relationships between the individual project components of the sample project.
You will carry out the necessary configuration steps yourself at a later point in time.

S7-1500

8

Getting Started, 05/2014, A5E03981761-AC

Selecting the recipe

Automation task 1.2 Sample project

 The HMI screen "Recipes" includes the "Color selection recipe". This is a prefabricated
object from the library of the TIA Portal. You can use this object to select data records and to create new data records.
 The data records (color mixtures) and elements (color components) are stored in the
"Recipes" HMI editor. Each color mixture consists of the four color components cyan (C), magenta (M), yellow (Y), black (K). The proportion of each of the four color components in a color mixture is stored in the "Recipes" editor.
 The values for the respective color components are written in PLC tags when you load
a color mixture. The PLC tags are stored in the "Tags_Filling_Process" tag table of the CPU.
 The HMI screen "Recipes" also includes a slider. You use this slider to specify the
number of tins to be filled.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

9

Automation task 1.2 Sample project
Displaying the CMYK and RGB values

 When the required color mixture is selected in the HMI screen "Recipes", the values
are displayed in the CMYK color space by means of a bar diagram.
 The color mixture can be shown with an additional display. This requires the
"Recipescreen" script to be run.
 You run the "Recipescreen" script by clicking the "Display RGB Value" button. The
script assigns the RGB value assigned to the CMYK value to the display, because CMYK values cannot be output directly on screens.
 The required RGB value is calculated by the "SCL_Convert_CMYK_TO_RGB"
program block.

S7-1500

10

Getting Started, 05/2014, A5E03981761-AC

Filling the recipe

Automation task 1.2 Sample project

 The "Fill recipe" button starts the filling of the color components in the HMI screen "Start screen". The
button activates the "LAD_Control_Color_Valves" program block.
 The program block calculates how long each of the four valves needs to stay open for the color mixture
based on the specified recipe and the number of tins that have to be filled.
 LEDs below the tanks indicate that the valves are opened.  The "LAD_Tanks_Filling_Level" program block is executed at the same time as the filling. The program
block calculates the quantity remaining in the tank for the tank fill level. The fill levels of the tanks are stored in the global data block "Filling".
 The fill level indicators in the HMI screen are directly linked with the global data block and are updated
with each runtime acquisition cycle.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

11

Automation task 1.2 Sample project Starting the mixing process
 The "Start mixing process" button starts the mixer of the color mixing plant in the HMI
screen "Start screen".
 The "LAD_Mixer" program block is called for this purpose at the CPU end. It activates
the mixer for three seconds.
 The activation of the mixer is indicated by flashing in the HMI screen.

S7-1500

12

Getting Started, 05/2014, A5E03981761-AC

Filling the color mixture

Automation task 1.2 Sample project

 The "Fill Color Mixture" button starts the filling of the tins in the HMI screen "Start
screen".
 The "SCL_Valve_Conveyor" program block is activated for this purpose at the CPU
end; it controls the valves and the conveyor belt.
 The tins are animated according to the movement of the conveyor belt in the HMI
screen.
 A counter indicates the number of tins that have already been filled.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

13

Automation task 1.2 Sample project
Resetting the fill level

 There is a button to reset the fill level of each of the four color tanks in the HMI screen
"Start screen".
 The reset of the respective fill level has been implemented in the "Main" program
block in networks 6 to 9.
 Networks 6 to 9 reset the values to the Start value in the global data block "Filling".

S7-1500

14

Getting Started, 05/2014, A5E03981761-AC

Hardware section

2

2.1

Introduction

The new SIMATIC S7-1500 controller family with the Totally Integrated Automation Portal (TIA Portal) offers you numerous new options to further increase the productivity of your machines and to make the engineering process even more efficient. Explore the options in this Getting Started.
In the first basic steps, you will get to know the new hardware better. We will also show you how to configure and program the SIMATIC S7-1500 with SIMATIC STEP 7 V13 (TIA Portal). The connection of a SIMATIC HMI Comfort Panel with SIMATIC WinCC Advanced V13 (TIA Portal) or SIMATIC WinCC Professional V13 (TIA Portal) completes the basic steps.

2.1.1

Requirements

Hardware requirements
To implement the hardware section of this Getting Started, you will need:  1 × CPU 1511-1 PN (6ES7511-1AK00-0AB0)  1 × S7-1500 load current supply PM 70W 120/230VAC (6EP1332-4BA00)  1 × Mounting rail (6ES7590-1AB60-0AA0)  1 × digital input module DI 16x24VDC SRC BA (6ES7521-1BH50-0AA0)  1 × digital output module DQ 16x24VDC/0.5A ST (6ES7522-1BH00-0AB0)  2 × Front connectors (6ES7592-1AM00-0XB0)  1 × SIMATIC Memory Card with at 4 MB (e.g. 6ES7954-8LBxx-0AA0)  1 × Ethernet cable The hardware mentioned above is also part of the following starter package: Starter package S7-1500 with software: 6ES7511-1AK00-4YB5

S7-1500

Getting Started, 05/2014, A5E03981761-AC

15

Hardware section 2.1 Introduction
Software requirements
To implement the software section of this Getting Started, you will need:  SIMATIC STEP 7 Professional V13  SIMATIC WinCC Advanced V13 or SIMATIC WinCC Professional V13
WARNING Severe personal injury may result The S7-1500 automation system in plants or systems is governed by specific standards and regulations, based on the relevant field of application. Please observe the applicable safety and accident prevention regulations such as IEC 60204-1 (general machine safety requirements). Failure to observe these regulations can result in serious injuries and damages to machinery and facilities.

2.1.2

Additional information
Detailed information on the hardware used is available here:
 CPU 1511-1 PN (6ES7511-1AK00-0AB0) (http://support.automation.siemens.com/WW/view/en/68020492)
 S7-1500 load current supply PM 70W 120/230VAC (6EP1332-4BA00) (http://support.automation.siemens.com/WW/view/en/68036174)
 DI 16x24 V DC SRC BA digital input module (6ES7521-1BH50-0AA0) (http://support.automation.siemens.com/WW/view/en/59191844/)
 DQ 16x24 V DC/0.5A ST digital output module (6ES7522-1BH00-0AB0) (http://support.automation.siemens.com/WW/view/en/59193401)

S7-1500

16

Getting Started, 05/2014, A5E03981761-AC

2.2

Installing the assembly

2.2.1

Overview

Mounting the assembly
You mount the structure in this section.

Hardware section 2.2 Installing the assembly

2.2.2

Installing the assembly

Procedure

1. Mount the load current supply (PM) on the mounting rail.

2. Open the front cover and pull out the mains connection plug.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

17

Hardware section 2.2 Installing the assembly
3. Remove the 4-pole connection plug and screw the load current supply (PM) tight.
4. Insert the U-connector into the back of the CPU.

5. Mount the CPU on the mounting rail and screw tight.

S7-1500

18

Getting Started, 05/2014, A5E03981761-AC

Hardware section 2.2 Installing the assembly
6. Insert the U-connector into the back of the digital input module.

7. Attach the digital input module to the mounting rail and screw tight. 8. Attach the digital output module to the mounting rail and screw tight.

Result

The assembly has been mounted.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

19

Hardware section 2.3 Wiring

2.3

Wiring

2.3.1

Overview

Wiring the assembly
You mount the assembly in this section.

DANGER
The mains cable for the load current supply must not be connected to the power supply during wiring.

S7-1500

20

Getting Started, 05/2014, A5E03981761-AC

Hardware section 2.3 Wiring

2.3.2

Wiring rules
Operation of an S7-1500 CPU in plants or systems is defined by special set of rules and regulations, based on the relevant field of application.
You can find the general rules and regulations for operating the S7-1500 in the S7-1500 system description (http://support.automation.siemens.com/WW/view/en/59191792).

Wiring rules for the CPU

Wiring rules...

CPU

40-pin front connector Load power supply (screw-type connection)

Connectible wire cross-sections for solid wires --

up to 0.25 mm2

--

--

AWG*: 24

--

Connectible wire cross-sections for stranded wires

Without wire end ferrule 0.25 to 2.5 mm2 AWG*: 24 to 16
With wire end ferrule 0.25 to 2.5 mm2

0.25 to 1.5 mm2 AWG*: 24 to 16 0.25 to 1.5 mm2

1.5 mm2 AWG*: 16 1.5 mm2

AWG*: 24 to 16

AWG*: 24 to 16

AWG*: 16

Number of wires per connection

1

1 or a combination of 2 1 cables up to 1.5 mm2 (total) in the same wire end ferrule

Length of stripped wires

10 to 11 mm

10 to 11 mm

7 to 8 mm

End sleeves according to DIN 46228

Without plastic sleeve
with plastic sleeve 0.25 to 1.5 mm2

Design A, 10 mm long

Design A, 10 mm and 12 mm long

Design E, 10mm long Design E, 10 mm and 12 mm long

Design A, 7 mm long Design A, 7 mm long

Sheath diameter

--

--

8.5 mm

Tool

3 to 3.5 mm Phillips 3 to 3.5 mm Phillips

3 to 3.5 mm Phillips

screwdriver, conic screwdriver, conic design screwdriver, conic

design

design

Connection method

Push-in terminal

Screw terminal

Screw terminal

Tightening torque

--

from 0.4 Nm to 0.7 Nm from 0.5 Nm to 0.6

Nm

* AWG: American Wire Gauge

S7-1500

Getting Started, 05/2014, A5E03981761-AC

21

Hardware section 2.3 Wiring

2.3.3

Wiring the mains connection plug

Procedure

1. Pry off the connector cover using a suitable tool.

2. Connect the mains cable in the plug according to the connection diagram. You will find information on which voltage the plug is approved for on the side of the plug. You select the voltage by inserting the coding element accordingly on the back of the plug.

S7-1500

22

Getting Started, 05/2014, A5E03981761-AC

3. Close the cover.

Hardware section 2.3 Wiring

4. Tighten the screw on the front of the mains connection plug.

Result

The mains connection plug is now wired.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

23

Hardware section 2.3 Wiring

2.3.4

Wiring the load current supply (PM) to the CPU

Procedure

1. Wire the 4-pin connector plug of the load current supply (PM).

2. Wire the 4-pin connector plug with the 4-pin mains connection plug of the CPU.

3. Connect the load current supply (PM) to the CPU.

Result
24

The load current supply is now wired to the CPU.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Hardware section 2.3 Wiring

2.3.5

Potential bridge circuits

Application of the potential bridge circuits
If you want to supply the load groups with the same potential (non-isolated), use the potential circuit bridges supplied for the front connector. This means that you avoid having to wire a clamping unit with two wires.

Tip
Use the terminals 40 (M) and 39 (L+) on the front connector to loop the potential to the next module.

2.3.6

Wiring the digital input module

Procedure

1. Insert the front connector into the pre-wiring position. There is no electrical connection between the front connector and the module in the pre-wiring position.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

25

Hardware section 2.3 Wiring
2. Thread in the cable tie.
3. Connect the supply voltage 24 V DC to the terminals 20 (M) and 19 (L+).
4. Insert the potential circuit bridges between the two bottom terminals.

Result

The digital input module is now wired.

26

S7-1500 Getting Started, 05/2014, A5E03981761-AC

2.3.7

Wiring the digital output module

Procedure

1. Insert the front connector into the pre-wiring position.

Hardware section 2.3 Wiring

2. Use terminals 40 (M) and 39 (L+) from the digital input module to feed the supply voltage DC 24 V from the digital input module to terminals 20 (M) and 19 (L+).

S7-1500

Getting Started, 05/2014, A5E03981761-AC

27

Hardware section 2.3 Wiring
3. Connect the four potential circuit bridges.
4. Connect the terminals 30 and 40, as well as 29 and 39 to each other.

Result

The digital output module is now wired.

S7-1500

28

Getting Started, 05/2014, A5E03981761-AC

Hardware section 2.3 Wiring

2.3.8

Wiring front connectors

Procedure

1. Connect the individual wires according to the connection diagram on the inner side of the front cover in the terminal and screw tight.

2. For strain relief, run the cable tie around the cable harness and pull tight.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

29

Hardware section 2.3 Wiring
3. Move the front connector from the pre-wiring position to its final position. By doing this, you create an electrical connection between the front connector and the module.
4. Tip: Pre-wired front connectors, e.g. for replacing modules, can be inserted directly.

Result

The front connectors are now wired.

S7-1500

30

Getting Started, 05/2014, A5E03981761-AC

2.4

Power on

2.4.1

Overview

Turning on the CPU for the first time
You turn on the CPU for the first time in this section.

2.4.2

Power on

Procedure

1. Insert mains connection plug of the load current supply (PM).

Hardware section 2.4 Power on

2. Connect the mains connection plug to the power supply.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

31

Hardware section 2.4 Power on
3. Insert a blank SIMATIC memory card into the CPU.
4. Move the switch for the load current supply (PM) to the position RUN. The CPU starts up.

Result

The CPU starts up and is in STOP mode.

S7-1500

32

Getting Started, 05/2014, A5E03981761-AC

Hardware section 2.4 Power on

2.4.3

Assign IP address via the display
In this step you set the IP address and the subnet mask for the CPU.

Procedure

1. Navigate to "Settings". 2. Select "Addresses". 3. Select the interface "X1 (IE/PN)". 4. Select the menu item "IP Addresses". 5. Set the IP address 192.168.0.10. 6. Press the "right" arrow key on the module. 7. Set the subnet mask 255.255.255.0. 8. Press the "down" arrow key on the module to select the menu item "Apply" and confirm
the setting with "OK"

Result

You have now assigned an IP address and the subnet mask for the interface "X1 (IE/PN)".

S7-1500

Getting Started, 05/2014, A5E03981761-AC

33

Software section

3

3.1

Creating the project and hardware

3.1.1

Introduction to the TIA Portal

Introduction

The Totally Integrated Automation Portal, referred to as TIA Portal in the following, offers all the functions you need for implementing your automation task assembled in a single, crosssoftware platform.
The TIA Portal is the first shared working environment for integrated engineering with the various SIMATIC systems made available within a single framework. The TIA Portal therefore also enables reliable, convenient cross-system collaboration for the first time.
All required software packages, from hardware configuration and programming to visualization of the process are integrated in a comprehensive engineering framework.

S7-1500

34

Getting Started, 05/2014, A5E03981761-AC

Software section 3.1 Creating the project and hardware
Advantages of working with the TIA Portal
The following features provide efficient support during the realization of your automation solution when working with the TIA Portal:  Integrated engineering with a uniform operating concept
Process automation and process visualization go "hand-in-hand".  Consistent, centralized data management with powerful editors and universal symbols
Data created once is available in all editors. Changes and corrections are automatically applied and updated within the entire project.  Comprehensive library concept Use the ready-made instructions and pre-existing parts of the project again and again.  Multiple programming languages Five different programming languages are available for implementing your automation task.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

35

Software section 3.1 Creating the project and hardware

3.1.2

Creating a project

Introduction

In the following step, you will create a new project.
All data which is generated during the creation of an automation solution is saved in the project file. The data is stored in the form of objects. Within the project, the objects are arranged in a tree structure (project hierarchy).
The project hierarchy is based on the devices and stations along with the configuration data and programs belonging to them.

Requirement

You need the following hardware and software equipment to create the project:  Hardware:
­ The CPU 1511-1 PN that was installed and wired in the hardware section of the Getting Started.
­ An Ethernet connection to your programming device/PC.
 Software: The following software packages must be installed and executable on your programming device/PC: ­ SIMATIC STEP 7 Professional V13 ­ SIMATIC WinCC Advanced V13 or SIMATIC WinCC Professional V13

Creating a new project
To create a new project, follow these steps: 1. Click "Create new project". 2. Enter a name for your project.

3. Click "Create" to create the new project.

S7-1500

36

Getting Started, 05/2014, A5E03981761-AC

Result

Software section 3.1 Creating the project and hardware
The project has been created. All data, such as the hardware configuration, the CPU programming and the visualization in HMI, is saved in the project.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

37

Software section 3.1 Creating the project and hardware

3.1.3

Creating an S7-1500 CPU

Introduction

In the following step, you will create an unspecified CPU. Unspecified CPUs are placeholders for specific CPUs from the hardware catalog which will be defined later.

Procedure

1. Open the "Devices & Networks" portal. 2. Insert a new device. 3. Enter "Color_Mixing_CPU" as the name for the CPU.

4. Open the "SIMATIC S7-1500" folder.

S7-1500

38

Getting Started, 05/2014, A5E03981761-AC

Software section 3.1 Creating the project and hardware
5. Select the CPU which has not yet been specified.

Result

6. Create the CPU with a double-click.
The unspecified CPU is created in the project file. Contents of the user program can already be created at this point for this CPU.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

39

Software section 3.1 Creating the project and hardware

3.1.4

Running the hardware detection

Introduction

In the following section, you will use the hardware detection function to read the CPU type.
Run an LED flashing test during hardware detection. The LED flashing test activates the LEDs on a detected device. You may also use this function to verify that the correct device was selected in a hardware configuration consisting of several devices.

Procedure

1. Select the unspecified CPU in the project tree. 2. Select the "Hardware detection" function from the "Online" menu.
Option 2: Click on the yellow framed alarm in the device view. 3. Select the "PN/IE" entry as the type of PG/PC interface. 4. Select the PG/PC interface. 5. Click the "Show all compatible devices" option. 6. Select the CPU from the compatible devices in the subnet. 7. Select the "Flash LED" check box to run a flashing test. 8. Click "Detect" to replace the unspecified CPU with the necessary CPU type.

Result

The CPU type is read out. The correct device name is appended in brackets to your CPU name in the project tree.
The CPU and modules used are displayed in the hardware configuration.

S7-1500

40

Getting Started, 05/2014, A5E03981761-AC

Software section 3.1 Creating the project and hardware

3.1.5

Creating ET 200 interface modules

Introduction

In the following section, you will create two distributed I/O systems in the hardware configuration:  An ET 200SP distributed I/O system, which basically consists of the following
components: ­ An interface module for communication with the CPU. ­ Up to 32 modules that can be inserted in any combination. ­ A server module that completes the configuration.  An ET 200MP distributed I/O system, which consists of the following components: ­ The interface module for communication with the CPU. ­ Up to 30 modules, each one providing up to 32 channels.

Procedure

1. Open the "Hardware catalog". 2. Change to the "Network view". 3. Open the "Distributed I/O" and "ET 200SP" folders. 4. Open the "IM 155-6 PN ST" folder. 5. Drag-and-drop the "6ES7 155-6AU00-0BN0" interface module to the network view. 6. Open the "ET 200MP" folder. 7. Open the "IM 155-5 PN ST" folder. 8. Drag-and-drop the "6ES7 155-5AA00-0AB0" interface module to the network view.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

41

Software section 3.1 Creating the project and hardware

Result

The I/O systems have been created in the hardware configuration, but not yet assigned to the CPU 1511-1 PN. They are both displayed under "Unassigned devices" in the project view.

Additional information
The SIMATIC ET 200 product family offers different scalable I/O systems to suit your specific application.
You will find more information about the SIMATIC ET 200 distributed I/O on the Internet at (http://www.automation.siemens.com/mcms/distributed-io/en/).

3.1.6

Networking ET 200 interface modules

Introduction

In the following section, you will create a PROFINET I/O system. A PROFINET I/O system consists of the PROFINET IO controller and its assigned PROFINET IO devices:  The CPU 1511-1 PN you already created is used as PROFINET IO controller.  The two distributed I/O systems are used as PROFINET IO devices.

S7-1500

42

Getting Started, 05/2014, A5E03981761-AC

Procedure Result

Software section 3.1 Creating the project and hardware
1. Drag-and-drop a connection from the interface of the IM 155-5 PN ST interface module to the CPU interface.
2. Create a second connection between the IM 155-6 PN ST interface module and the CPU.
The interface modules are assigned to the CPU as IO devices. Both distributed IO systems are displayed in the project tree in the "Distributed I/O" folder below the CPU. A PROFINET I/O system was created automatically in the networking process and its properties are displayed in the network view.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

43

Software section 3.1 Creating the project and hardware

3.1.7

Creating input and output modules and a server module for ET 200SP

Introduction

In the following section, you will create input and output modules for the ET 200SP.
Note You need the server module to operate the input and output modules. These modules will fail if the server module is missing.

Maximum configuration per potential group
The number of I/O modules that can be used per potential group depends on the following factors:
1. Total power requirement of all I/O modules operated on this potential group
2. Total power requirement of all loads connected externally to this potential group
The sum of the total power calculated from 1. and 2. cannot exceed the current carrying capacity of the employed BaseUnit and the load supply voltage.
Set the "Potential group" parameter for a module as follows:

Parameters Potential group

Value range Use potential group of the left module (default setting)
Enable new potential group

Usage
if the total power consumption of all modules from the left + power consumption of the module is less than the current carrying capacity of the BaseUnit
if the total power consumption of all modules from the left + power consumption of the module is greater than the current carrying capacity of the BaseUnit

You can find additional information on potential groups in the module manuals such as SIMATIC ET 200SP DI 8x24VDC HF digital input module (http://support.automation.siemens.com/DE/view/en/66912542).

Procedure

1. Open the device view of ET 200SP. 2. Open the "DI" and "DI16 x DC24V ST" folders in the hardware catalog. 3. Drag-and-drop input module "6ES7 131-6BH00-0BA0" to slot 1 of the rail. 4. Open the "DQ" and "DQ16 x DC24V / 0.5A ST" folders. 5. Drag-and-drop output module "6ES7 132-6BH00-0BA0" to slot 2 of the rail. 6. Open the "Server modules" folder. 7. Drag-and-drop the server module "6ES7 193-6PA00-0AA0" to slot 3 of the rail.

S7-1500

44

Getting Started, 05/2014, A5E03981761-AC

Result

Software section 3.1 Creating the project and hardware
You have created the input and output modules and the server module.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

45

Software section 3.1 Creating the project and hardware

3.1.8

Creating input and output modules for ET 200MP

Introduction

In the following section, you will create the input and output modules for ET 200MP.

Procedure

1. Open the device view of ET 200MP. 2. Open the "DI" and "DI16 x DC24V HF" folders in the hardware catalog. 3. Drag-and-drop input module "6ES7 521-1BH00-0AB0" to slot 2 of the rail. 4. Open the "DQ" and "DQ16 x DC24V / 0.5A ST" folders. 5. Drag-and-drop output module "6ES7 522-1BH00-0AB0" to slot 3 of the rail.

Result

You have created the input and output modules.

S7-1500

46

Getting Started, 05/2014, A5E03981761-AC

Software section 3.1 Creating the project and hardware

3.1.9

Assigning names for ET 200

Introduction

In the following section, you will assign project-specific names to the distributed I/O.

Procedure

1. Select ET 200SP.
2. Under Properties > General in the inspector window, enter the name "Valve_Control_Unit" in the "Name" field.
3. Select ET 200MP and enter the new name "Mixer_Conveyor_Control_Unit".

Result

You have assigned the project-specific names.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

47

Software section 3.2 Creating the program

3.2

Creating the program

3.2.1

Loading the block library

Introduction

In the following section, you will load the global library "ProgLib_ColorFillingStation". This library contains the blocks and tag tables that you need for the example project. This library is available as a ZIP file under "Getting Started S7-1500 / TIA V13 (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/project/color_filling_station.zip)". You need to unzip this library before you import it to your project.

Global libraries

Global libraries are used to store elements that you want to reuse in other projects. You must create global libraries explicitly.
The following libraries are provided in the standard package:
 "Buttons and Switches"
They offer a large selection of switches and buttons. The folders organize switches and buttons into categories. You can find the "System diagnostics indicator" object in the "DiagnosticsButtons" folder, for example. You use the "System diagnostics indicator" object for system diagnostics in your plant.
 "Monitoring and Control objects"
This provides complex operator control and display objects in several designs as well as suitable control lights, buttons and switches.

Note Library is write-protected
The "Open read-only" option is activated by default in the "Open global library" dialog. Click in the check box to open the library without write protection.

S7-1500

48

Getting Started, 05/2014, A5E03981761-AC

Procedure

Software section 3.2 Creating the program
1. Click on the "Libraries" tab. 2. Click "Open global library". 3. Select the "ProgLib_ColorFillingStation" file from the directory that contains the unzipped
library folder and click "Open".

Result

The "ProgLib_ColorFillingStation" global library is open.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

49

Software section 3.2 Creating the program

3.2.2

Deleting program block Main [OB1]

Introduction

In the following section, you will delete the automatically generated "Main [OB1]" program block from the project folder. A "Main [OB1]" program block is included in the program blocks of the example project.
Organization blocks (OBs) form the interface between the CPU operating system and the user program. These blocks are called by the operating system. At least one cycle OB must be available in an automation project.

Procedure Result

1. Open the "Program blocks" folder in the project tree and then click the "Main [OB1]" program block.
2. Right-click to open the shortcut menu and then click "Delete". 3. Click "Yes" to confirm deletion of the block.
The automatically generated "Main [OB1]" program block is deleted.

S7-1500

50

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.3

Copying program blocks

Introduction

In the following section, you will insert the program blocks from the "ProgLib_ColorFillingStation" global library into your project.

Procedure

1. Click on global library "ProgLib_ColorFillingStation". 2. Click the "Master copies" folder and then on "Programm_blocks". 3. Drag-and-drop the program block to be imported from the global library to the "Program
blocks" folder. 4. Proceed as described in steps 2 and 3 for the other blocks.

Result

The program blocks are inserted in the project folder of the same name.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

51

Software section 3.2 Creating the program

3.2.4

Cyclic interrupt OB

3.2.4.1

Cyclic interrupt OB ­ Cycle time and phase

Cycle time and phase offset can be changed
Main [OB35] is located below the program blocks inserted into the project. Main [OB35] is a cyclic interrupt organization block (cyclic interrupt OB). Cyclic interrupt OBs serve to start programs in periodic time intervals independently of the cyclic program execution. The start times of a cyclic interrupt OB are specified using the cycle time and the phase offset.

Cycle time

The cycle time determines the interval at which an OB is called. The cyclic interrupt OB has a cycle time of 100000 s by default.

Phase offset

The phase offset is used to increase the accuracy of the processing intervals of cyclic interrupt programs. If an OB has the same or a common multiple clock pulse of another OB, both can be operated at a precise interval by a phase offset.

S7-1500

52

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.4.2

Changing the cycle time

Introduction

In the following section, you will change the cycle time for the "Main" program block.

Requirement

 The program block "Main" [OB35] is contained in the library  The FB/FC calls exist

Procedure

1. Open the properties of the "Main" program block. 2. Select the "Cyclic interrupt" option under "General". 3. Enter the new value for the "Cycle time" and click "OK".

Result

The cycle time is changed.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

53

Software section 3.2 Creating the program

3.2.5

Copying tag tables

Introduction

In the following section, you will insert the tag tables from the "ProgLib_ColorFillingStation" global library into your project.

Procedure

1. Open the "PLC tags" folder in the project navigation. 2. Open the "PLC_tags" folder. 3. Drag-and-drop the tag table to be imported from the global library to the "PLC tags"
folder. 4. Proceed as described in step 3 for the other tag tables.

Result

The tag tables are inserted in the project folder of the same name.

S7-1500

54

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.6

Compiling a project

Introduction

In the next section, you will compile the "Color_Filling_Station" project.

Procedure

1. Select the "Color_Mixing_CPU" CPU in the project tree.
2. Right-click to open the shortcut menu and then select "Compile" > "Hardware and software (only changes)".

S7-1500

Getting Started, 05/2014, A5E03981761-AC

55

Software section 3.2 Creating the program

Result

The project is compiled and ready for downloading.

Note "Main" program block is updated
Open the "Main" program block after compilation. All instance data blocks have been created and the data blocks are updated.

S7-1500

56

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.7

Load project into the CPU

Introduction

In the next section, you will download the "Color_Filling_Station" project to the CPU.
Note Displaying all compatible devices If the desired CPU is not displayed after you have made the settings in the "Extended download to device" dialog, click the option "Show all compatible devices".

Procedure

1. Open the CPU shortcut menu and select "Download to device" > "Hardware and software (only changes)".
2. From the drop-down lists, select the PG/PC interface type, the interface and the connection with the subnet.
3. Select the CPU from the compatible devices in the subnet and click "Load".

4. Confirm the two "Assign IP address" dialogs with "Yes" and "OK". 5. In the "Load preview" dialog, select the alternative entry for all entries set to "No action" in
the drop-down list and confirm open options. 6. Click "Load". 7. Confirm the "Start all" option and click "Finish".

S7-1500

Getting Started, 05/2014, A5E03981761-AC

57

Software section 3.2 Creating the program

Result

The project is downloaded to the CPU.

S7-1500

58

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.8

Optimized block access

3.2.8.1

Introduction

Operating principle
The "optimized data blocks" of the CPUs of the S7-1500 series are optimized for performance and are only programmed symbolically. By using the optimized data blocks, you make your program more efficient, because the declared tags are given symbolic names and no longer a fixed address.
You can create data blocks with any structure without paying attention to the physical arrangement of the individual tags. Quick access to the optimized data is always available because the data storage is optimized and managed by the system.
Changing data types increases the risk of error in the standard block. In the optimized block, changes lead to a reorganization of the data storage. Addressing remains unique.
To enable the subsequent editing of user programs that are already running in a CPU, the S7-1500 CPUs support the option of extending the interfaces of function or data blocks during runtime. You can download the modified blocks without setting the CPU to STOP and without affecting the actual values of tags already loaded.
In addition: You can define in the data block itself, which the values in the CPU are read-only for an HMI device ("Visible in HMI") or which can be written ("Accessible from HMI").

S7-1500

Getting Started, 05/2014, A5E03981761-AC

59

Software section 3.2 Creating the program

3.2.8.2

Expanding and reloading the optimized "Filling" data block

Introduction

In the following section, you will supplement the "Filling" data block with the date and time of the last filling and reload the data block. To do this, create a block for recording the date and time and enable the function "Download without reinitialization".
Note: The "Download without reinitialization" function protects the actual parameters of the data block from being overwritten during download to the CPU.
Advantages of symbolic addressing: The use of universally applied and meaningful symbols in the entire project makes the program code easier to read and understand. This gives you the following advantages:
 You do not have to write detailed comments.
 Data access is faster.
 No errors occur when accessing data.
 You no longer have to work with absolute addresses.
 The assignment of the symbol to the memory address is monitored by STEP 7, which means that all points of use are automatically updated when the name or the address of a tag changes.

Requirement

 The library has been loaded  The project has been compiled and loaded into the CPU

S7-1500

60

Getting Started, 05/2014, A5E03981761-AC

Procedure

Software section 3.2 Creating the program
1. Open the "Filling" data block and the "Main" program block. 2. Enable the "Monitoring on/off" function for the "Main" program block. 3. In the "Main" program block, open the shortcut menu of the "'FILLING'
FillingLevel_CMYK_C" I/O in the 3 network with a right-click and select "Modify > Modify operand". 4. Enter a new value and click "OK". 5. Enable the "Download without reinitialization" function and the "Monitor all" function in the "Filling" data block. 6. Create a new parameter named "DT_Loc-T_Last_Filling" and select "Date_And_Time" as the data type.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

61

Software section 3.2 Creating the program
7. Insert a normally closed contact into the "Main" program block in the 5 network, and interconnect it with the "FILLING_DONE" parameter.
8. Open the "Date & time" folder from the "Instructions" tab and insert the "RD_Loc_T" block in the "Main" program block.

S7-1500

62

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program 9. Interconnect the "OUT" output with the "DT_Loc-T_Last_Filling" parameter and the "RED_VAL" output with the newly created "RED_VAL_Loc-T" parameter. Use the "LAD_Tanks_Filling_Process" data block as the storage location for the "RED_VAL_LocT" parameter.
10.Compile and download the project.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

63

Software section 3.2 Creating the program

Result

The date and time of the last filling are reloaded. The actual parameters of the "Filling" data block are not overwritten.

S7-1500

64

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.9

Versioning a block

Introduction

The use of block types ensures a high degree of standardization in your projects. You can easily integrate function extensions to the block type into existing projects. Change tracking is ensured by versioning. In this example, you create a "LAD_Tanks_Filling" block as a type in the project library. As a function extension, replace the three instructions for the level calculation with CalculateBox, which performs all arithmetic functions. This optimization means that fewer temporary tags are required and that the switch between blocks with various programming languages is no longer necessary.

Procedure

1. Compile the "LAD_Tanks_Filling" block and then insert it in the project library under "Types".
2. Create a new block version with "Edit type".

3. Insert the CALCULATE instruction from the "Basic instructions > Mathematical functions" library.
4. Delete the MUL, DIV and SUB instructions from the block.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

65

Software section 3.2 Creating the program
5. Insert two inputs into the CALCULATE instruction and interconnect the inputs.

6. Define the calculation formula and then interconnect the output.

7. Release the block version. 66

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Result

Software section 3.2 Creating the program
The revised version of the block type is saved in the library with a new version number.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

67

Software section 3.2 Creating the program

3.2.10

Setting retentivity

Introduction

All tags are initialized with their configured start values during CPU startup, for example, after a power failure. The most recent values the tags had immediately before the interruption are overwritten with the initial values. To prevent this, define the tag as retentive. Retentive tags retain their values even after a restart.
In this example, the levels of paint storage tanks are backed up in the retentive memory area of the CPU.

Procedure

1. Connect to the CPU online. 2. Enable the retentivity for the "Cyan" entry in the "Filling" data block.

3. Load the change to the CPU.
4. Drag the "Watchtable" object from the library into the project. This object contains the fill level tags included a control value.

S7-1500

68

Getting Started, 05/2014, A5E03981761-AC

5. Transfer the control values to the CPU with "Modify now".

Software section 3.2 Creating the program

6. Close the online connection to the CPU. To simulate a power failure, disconnect the power supply to the CPU.
7. Reconnect the power supply and go online to the CPU. Enable "Monitor all" for the "Filling" DB.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

69

Software section 3.2 Creating the program

Result

The fill level for "Cyan" is read from the retentive memory area. All other fill levels are reinitialized with their start value.

S7-1500

70

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.11

Activating the EN/ENO mechanism

Introduction

The EN/ENO mechanism in various instructions enables you to detect runtime errors and avoid a program crash. Newly inserted ENO instructions are disabled by default. You can then activate the ENO enable output. You can use this in a new network that has the fill level of all paint storage tanks reset to the start value (1000) at the same time.

Procedure

1. Open the Main[OB35] program block and insert the MOVE instruction into network 10. 2. Expand the instruction to a total of four outputs. 3. Insert a normally open contact before the MOVE instruction. 4. Insert a reset coil after the MOVE instruction. 5. Interconnect the inputs and outputs of the MOVE instruction.

6. Generate the instruction with the ENO shortcut menu.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

71

Software section 3.2 Creating the program

Result

The EN/ENO mechanism is interconnected for this block. If there are no errors during execution, the ENO enable output has the signal state "1". If there are errors during execution, the ENO enable output has the signal state "0".

S7-1500

72

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.12

Using the comment function

Introduction

The MOVE and Reset instructions should be expanded with detailed commentary.

Procedure

1. Insert a comment using the shortcut menu. 2. Enter the comment text.

Result

The comments for the instruction and the coil are entered.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

73

Software section 3.2 Creating the program

3.2.13

Local error handling

3.2.13.1

Handle errors within block

Procedure

Unlike the CPUs of the S7-300/400, CPUs of the S7-1500 go to STOP with errors much less often. If an error occurs, it is entered in the diagnostics buffer of the CPU. You avoid the CPU STOP by using local error handling at each block. You should preferably enable local error handling during development of the user program.

S7-1500

74

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program
You can precisely evaluate the information and, for example, program the error handling in the block with STL/FBD/LAD and SCL programs. The block generates an error ID that is evaluated by the "GET_ERROR_ID" instruction. You can call the "GET_ERROR_ID" instruction in both the MAIN block and in the function blocks. The CPU remains in RUN mode.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

75

Software section 3.2 Creating the program

3.2.13.2

Loading blocks for local error handling

Introduction

To illustrate the local error handling, load the blocks of the "ProgLib_LEH" library in the project. The blocks are used only to demonstrate the local error handling and are otherwise not used in the project.

Procedure

1. Open the global library, "ProgLib_LEH". 2. Copy the blocks from the master copies into the project.

3. Call the "LAD_Local_Error_Handling" function block in an empty network of the "Main" block.

S7-1500

76

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program
4. Interconnect the parameters of the "LAD_Local_Error_Handling" function block with tags of the "LEH_InOutValues" data block.

Result

5. Connect to the CPU online. 6. Compile and load the changes to the CPU.
Use the "LEH_INDEX" tag at the "INDEX[0..100]" input parameter to trigger a programming error in the following. For example, if you set the input parameter to "101", an error at the output parameters is reported.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

77

Software section 3.2 Creating the program

3.2.13.3

Generating errors without local error handling

Introduction

Perform the following steps to trigger a programming error without using the local error handling or creating a corresponding OB.

Procedure

1. Activate the "Monitor" function.
2. Set the value of the "LEH_INDEX" tag to an invalid value, for example, "101". In the Testing dialog, the ERROR LED flashes briefly and the CPU goes from RUN to STOP.

Result

3. Switch to the diagnostics buffer. The error and the error response is displayed in the diagnostics buffer.
4. Set the CPU back to RUN.
The transition from STOP in RUN resets the "LEH_INDEX" tag to the start value "0". This automatically solves the problem.

S7-1500

78

Getting Started, 05/2014, A5E03981761-AC

Software section 3.2 Creating the program

3.2.13.4

Generating errors with local error handling

Introduction

Perform the following steps to use "GET_ERR_ID" instruction and its ENO bit for the local error handling to respond to the error with an error message. This means the CPU remains in RUN mode.

Procedure

1. Open the "LAD_Local_Error_Handling" function block.
2. Insert the "GET_ERR_ID" instruction in the second network and interconnect the "ID" output.

3. Call the "ErrorID_to_ErrorText" function from the project tree.
4. Interconnect the parameters of the "ErrorID_to_ErrorText" function so that they can convert the error code into an error message.
5. Load the changes to the CPU.
6. Trigger an error in the "Main" organization block by entering an invalid value, for example, "101". An error message is output at the "ERROR_MESSAGE" parameter.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

79

Software section 3.2 Creating the program

Result

The error message is output as long as the error is not corrected. To correct the error, assign the "LEH_INDEX" tag a valid value or restart the CPU.

S7-1500

80

Getting Started, 05/2014, A5E03981761-AC

3.3

Configure visualization

Software section 3.3 Configure visualization

3.3.1

Present sample project

Sample project for the application
To configure the color mixing system with the TIA Portal, create the sample project "Color_Filling_Station". The following project components already exist for the sample project: The program blocks and tag tables of the CPU user program and a configured Comfort Panel with the necessary HMI screens, HMI tags and scripts.
In this section, we will explain the relationships between the individual project components of the sample project. You will carry out the necessary configuration steps yourself at a later point in time.

3.3.2

HMI configuration

3.3.2.1

Overview

Introduction of HMI configuration
The supplied project includes the programmed CPU and the preconfigured HMI device in the "global library".

HMI configuration
In this section, we will introduce the HMI device and HMI configuration.

Additional information
For detailed instructions on HMI configuration see: Getting Started WinCC V13 Comfort Panels, Runtime Advanced

S7-1500

Getting Started, 05/2014, A5E03981761-AC

81

Software section 3.3 Configure visualization

3.3.2.2

SIMATIC HMI Comfort Panels

SIMATIC HMI Comfort Panels
The TP1200 Comfort HMI device from the Comfort Panel series is used to operate the color mixing system.

Comfort Panels are particularly suitable for challenging HMI tasks in PROFINET and PROFIBUS environments and are characterized by the following features:
 High-quality housing and numerous interfaces
 Industrial widescreen displays with large visualization area, optimum viewing angle stability and maximum brightness
 Installation either in horizontal or vertical format
 Exact diagnostics with system diagnostics viewer

S7-1500

82

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.2.3

HMI screens

HMI screens

You use the screens loaded onto the respective HMI device to operate and monitor machines and plants in runtime.
You manage the screens in WinCC under "Screens" in the project navigation.
The start screen of the HMI device is used to visualize the color mixing system as well as the most important status information and key figures.

The color mixing system includes the following elements:  A color reservoir for each print color with fill level display  Mixer  Feeder pipes to the mixer  Conveyor belt with emergency stop switch

S7-1500

Getting Started, 05/2014, A5E03981761-AC

83

Software section 3.3 Configure visualization

3.3.2.4

Additional control elements

Additional control elements
The process steps "Mixing color" and "Filling color" are to be displayed as animations with dynamic visualization objects.

The start screen of the example project includes additional control objects:  Buttons for screen changes  Buttons to reset the fill levels  Buttons for operating and monitoring the system: Fill recipe, start mixing process, fill color
mixture

S7-1500

84

Getting Started, 05/2014, A5E03981761-AC

3.3.2.5 Recipes

Recipes

Software section 3.3 Configure visualization

A recipe contains related production parameters, such as mixing ratios.
The required mixing ratio can be transferred from the HMI device to the color mixing system in a single step, for example, to switch production from dark orange to signal yellow.

The color mixing system can produce the mixed colors "Orange", "Amber", "Green" and "Red".
A recipe data record is created for each color. The recipe data record includes the percentage of basic colors which result in the respective mixed color.
The recipe consists of relevant parameters and the recipe data records in which the mixing ratios for the individual shades of color are stored.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

85

Software section 3.3 Configure visualization

3.3.2.6

Archives

Archives

To record operational events of a system, the alarms and process values generated during production are saved to logs. You can then evaluate the alarms and process data logs. The fill levels of the color reservoirs are to be documented for the color mixing system. You have configured the alarm log "Tank_Level" for this purpose.

This log stores alarms for fill levels that were too low and fill levels that were too high during a shift.

S7-1500

86

Getting Started, 05/2014, A5E03981761-AC

3.3.2.7 Scripts

User-defined functions

Software section 3.3 Configure visualization

You use the user-defined functions to program additional functionality for the HMI device. WinCC offers a VBS programming interface to create user-defined functions. The example project uses two user-defined functions to display the mixed print color on the monitor in different screens.
 "Recipescreen" displays a rectangle in the selected color in the "Recipes" screen.

 "Startscreen" displays the label of the filled cans in the currently mixed color in the system overview of the start screen.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

87

Software section 3.3 Configure visualization

3.3.2.8

User Management

User Management
WinCC gives you the option to restrict safety-related operations to special user groups and thus protect data and functions from unauthorized access in Runtime.

The "User view" object offers management of users and passwords on the HMI device.

Users with user management authorization have access to the full range of functions in the user view.
They can create and delete users and change their own password or that of other users.

S7-1500

88

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.2.9

Multilingualism

Multilingualism

WinCC supports multilingual user interfaces. The color mixing system is operated in a new subsidiary in Russia. A Russian user interface is required for maintenance and service technicians. The example project has been expanded by another language for this purpose.

The texts are imported again after they have been exported and translated into Russian.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

89

Software section 3.3 Configure visualization
The Russian texts are displayed in Runtime in case of a language selection.

S7-1500

90

Getting Started, 05/2014, A5E03981761-AC

3.3.2.10 Reports

Reports

Software section 3.3 Configure visualization

Reports are used to record events in a production process as a basis for product testing and quality control. Alarms and recipe data are output at regular intervals in the form of shift reports for this purpose.
A report has been created in WinCC for the "Tank_Level" log with alarms for the fill level.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

91

Software section 3.3 Configure visualization
A report for recipes has also been created in this project.

The reports should be output on a daily basis to a printer which is connected to the HMI device.
The cyclical output was created with the help of the Scheduler.

S7-1500

92

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.3

Insert HMI device from libraries

3.3.3.1

Storing an object in a library

Introduction

The global library includes a preconfigured HMI device.

Procedure

1. Open the global library. 2. Drag-and-drop the HMI device "Color_Mixing_HMI" into the "Devices & Networks" editor.

Result

3. The mouse pointer changes into a crosshair with an object symbol attached. The preconfigured HMI device is created and can be connected to the CPU.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

93

Software section 3.3 Configure visualization

3.3.4

Configuring HMI connection

3.3.4.1

Communication between devices

Communication
The data exchange between devices is referred to as communication. The devices can be interconnected directly or via a network. The interconnected devices in communication are referred to as communication partners.

Data transferred between the communication partners may serve different purposes:  Display processes  Operate processes  Output alarms  Archive process values and alarms  Document process values and alarms  Administer process parameters and machine parameters
Basic information for all communication
The basis for all types of communication is a network configuration. In a network configuration, you specify the connection that exists between the configured devices. With the network configuration, you also ensure the necessary prerequisites for communication, in other words:  Every device in a network is assigned a unique address.  The devices carry out communication with consistent transmission characteristics.

S7-1500

94

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.4.2

Configuring HMI connection

Introduction

You configure an HMI connection between the Comfort Panel TP1200 and the CPU via PROFINET in the "Devices & Networks" editor. The available communication partners in the project are displayed graphically in the network view.
CAUTION Communication via Ethernet In Ethernet-based communication, the end user is responsible for the security of his data network. Targeted attacks can overload the device and interfere with proper functioning.

Requirements

The following communication partners are created in the "Devices & Networks" editor:  HMI device: SIMATIC Comfort Panel  CPU: SIMATIC S7-1500

S7-1500

Getting Started, 05/2014, A5E03981761-AC

95

Software section 3.3 Configure visualization

Procedure

1. Click the "Connections" button and select "HMI connection" for the connection type.
The devices available for connection are highlighted in color.
2. Click the PROFINET interface of the CPU and drag-and-drop a connection to the PROFINET interface of the HMI device.

Result

3. Click the communication partners in the "Network view" and change the PROFINET parameters in the Inspector window according to the requirements of your project. Note The created HMI connection is also shown in the tabular area of the editor in the "Connections" tab. You check the connection parameters in the table. You can change the local name for the connection only in the table.
You have created a connection between an HMI device and the CPU.

S7-1500

96

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.4.3

Connecting HMI tags

Introduction

Once you have created the connection of CPU and HMI device, connect the tags of the two devices.

Procedure

1. Open the HMI tag editor.

2. Select the HMI connection you have just configured in the "Connections" column.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

97

Software section 3.3 Configure visualization
3. Repeat this procedure for all entries highlighted in red.

Result

An HMI connection had already been created for tags already configured in the CPU and HMI device.
You have restored this HMI connection.

S7-1500

98

Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.5

Configuring system diagnostics

3.3.5.1

System diagnostics basics

Introduction

You use system diagnostics to detect problems and errors in any part of your plant. WinCC has two display and operating elements for quick error localization.

System diagnostics view
The alarm view shows the status of a CPU while the system diagnostics view gives you an overview of all devices available in your system: You navigate directly to the cause of the error and to the relevant device. You have access to all devices supporting diagnostics you have configured in the "Devices & networks" editor.
System diagnostics window
The system diagnostics window is an operating and display element that you can only use in the global screen.
The functions of the system diagnostics window are no different than those of the system diagnostics view. Because the system diagnostics window is configured in the global screen, you can, for example, also specify if the object is closable in Runtime.

S7-1500

Getting Started, 05/2014, A5E03981761-AC

99

Software section 3.3 Configure visualization

3.3.5.2

System diagnostics views

Introduction

There are four different views available in the system diagnostics display and the system diagnostics window.  Device view  Diagnostic buffer view  Detail view  Matrix view (for master systems, PROFIBUS, PROFINET only)

Device view

The device view shows all the available devices of a layer in a table. Double-clicking on a device opens either the child devices or the detail view. Symbols in the first column provide information about the current status of the device.

100

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization
Diagnostic buffer view
The current data from the diagnostic buffer are shown in the diagnostic buffer view.

Detail view

The detail view gives detailed information about the selected device and any pending errors. Check whether the data is correct in the detail view. You can cannot sort error texts in the detail view.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

101

Software section 3.3 Configure visualization

Matrix view

The matrix view is only available for master systems. The matrix view shows the status of the subdevices of the master system.
 In PROFIBUS, the numbers assigned by Profibus are used as identification (DP station number).
 The IO devices are numbered consecutively from 1 in PROFINET.

Navigation buttons
Button
102

Function Opens the child devices or the detail view if there are no child devices. Opens the parent device or the device view if there is no parent device. Opens the device view. Opens the diagnostic buffer view. Only visible in the device view. Refreshes the view. Configured softkey, for example F2
S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.5.3

Configuring the system diagnostic view

Introduction

You add a system diagnostics view to your project to get an overview of all devices available in your plant.

Requirements

 CPU has been created.  The Inspector window is open.

Procedure

1. Double-click the "Diagnostics" HMI screen.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

103

Software section 3.3 Configure visualization
2. Double-click the "System diagnostics view" object in the "Tools" task card. The object is added to the screen.

Result
104

3. Select "Properties > Properties > Columns > Devices/Detail view" in the Inspector window.
4. Enable the columns that you require in the device view for Runtime, for example, State, Name, Slot.
5. Enable the columns that you require in the detail view for Runtime, for example, State, Name, Higher level designation.
6. Enable the columns that you require in the diagnostics buffer view, for example: State, Name, Rack.
7. If necessary, adapt the headers to the columns. 8. Enable "Properties > Properties > Layout > Column settings > Columns moveable" to
move the columns in Runtime. 9. You can change the column headers under "Properties > Properties > Column headers",
if necessary.
The system diagnostics view has been added to the "Diagnostics" screen. Error messages for the entire plant are now displayed in the system diagnostics view in Runtime.
S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization

3.3.6

Simulating an HMI device

3.3.6.1

Simulation basics

Introduction

You can use the simulator to test the performance of your configuration on the configuration PC. This allows you to quickly locate any logical configuration errors before productive operation.
You can start the simulator as follows:
 In the shortcut menu of the HMI device or in a screen: "Start simulation"
 Menu command "Online > Simulation > [Start|With tag simulator|With script debugger]"
 Under "Visualization > Simulate device" in the portal view.

Requirement

The simulation/runtime component is installed on the configuration PC.

Field of application
You can use the simulator to test the following functions of the HMI system, for example:  Checking limit levels and alarm outputs  Consistency of interrupts  Configured interrupt simulation  Configured warnings  Configured error messages  Check of status displays

S7-1500 Getting Started, 05/2014, A5E03981761-AC

105

Software section 3.3 Configure visualization

3.3.6.2

Operating the panel in simulation

Introduction

You simulate the HMI project on your computer.

Procedure

1. Start the simulation of the HMI device.

A connection to the CPU is established and the color mixing system is displayed in the simulation.
2. Open the "Recipes" screen and select a color.

106

S7-1500 Getting Started, 05/2014, A5E03981761-AC

3. Specify the number of cans and view the selected color.

Software section 3.3 Configure visualization

S7-1500 Getting Started, 05/2014, A5E03981761-AC

107

Software section 3.3 Configure visualization
4. Go back to the start screen and start production.

108

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.3 Configure visualization
5. You can query the current CPU status in the "Diagnostics" screen.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

109

Software section 3.4 Loading the project into the programming device

3.4

Loading the project into the programming device

3.4.1

Load CPU to project

Introduction

You can create a new station including the actual values from the hardware configuration and the user program.

Procedure

1. Open the dialog for loading from the CPU.

2. Select the interface with which the programming device is connected to the CPU. The search for accessible nodes starts automatically.
3. Load the CPU in the project.

110

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Result

Software section 3.4 Loading the project into the programming device
The hardware and software configuration of the CPU are loaded into the project. The project now contains, for example, program blocks and tags.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

111

Software section 3.5 Team engineering via Inter Project Engineering

3.5

Team engineering via Inter Project Engineering

3.5.1

Basics of "Inter Project Engineering"

Introduction

In this section, you will learn about the benefits of team engineering and how to create the required CPU data for an HMI project engineer. As an HMI project engineer, you will learn how to use this CPU data in your project.

Distributed configuration
You can use "Inter Project Engineering" to develop the user program and user interface in parallel at different locations. The HMI project engineer requires no CPU user program. There is no need for a STEP 7 installation.
Only tags, blocks, messages and address information of the CPU interfaces are ultimately relevant for the connection of an HMI device to a CPU. The programmer can conveniently export this data to an IPE file, which is imported into the project by the HMI developer. Updates are possible at any time by transferring a new IPE file.
The data are consistent after loading to the CPU and HMI device. The connections to the CPU created in the HMI configuration remain up-to-date.
Note
You can integrate the new Basic Panels 2nd Generation and Comfort Panels to STEP 7 projects as of V5.4 SP3 with an import into the TIA Portal.

112

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.5 Team engineering via Inter Project Engineering

3.5.2

Creating an IPE file

Introduction

You want to use a compact HMI device to display of fill levels directly at the paint mixing plant. You hire an engineering firm for the visualization and the provide the required CPU data as an IPE file.

Procedure

1. Add new proxy data for the CPU. 2. Enter a name and select the required CPU data.

Result

3. Export the proxy data.
The IPE file is created. You can send the IPE file, for example, as e-mail to the engineering firm.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

113

Software section 3.5 Team engineering via Inter Project Engineering

3.5.3

Importing an IPE file

Introduction

In the engineering office, the project engineer creates a device proxy in a new project and initializes it with the CPU data from the IPE file. The project engineer repeats the initialization for each update of the IPE file.

Procedure

1. Create the device proxy for the CPU in a new project and initialize it.

2. Use the Device Wizard to insert a Basic Panel. 3. Create the HMI tag for the fill level of the "Cyan" color and select the PLC tag.

114

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Software section 3.5 Team engineering via Inter Project Engineering 4. Create the other HMI tags in the same way.
5. Configure a bar graph to display the fill level of the "Cyan" color.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

115

Software section 3.5 Team engineering via Inter Project Engineering
6. Create a bar graph for the other fill levels in the same way.

Result

7. Compile the project.
The project can now be loaded to the HMI device from the commissioning engineer. The communication with the CPU is up-to-date thanks to the CPU data from the IPE file.

116

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Security

4

4.1

Overview of the protective functions of the CPU

Introduction

This chapter describes the following functions for protecting the S7-1500 automation system against unauthorized access:  Access protection  Know-how protection  Copy protection  Protection by locking the CPU

Further measures for protecting the CPU
The following measures additionally increase the protection against unauthorized accesses to functions and data of the S7-1500 CPU from external sources and via the network:
 Deactivation of the Web server
 Deactivation of the time synchronization via an NTP Server
 Deactivation of the PUT/GET communication
When the Web server is used, you protect your S7-1500 automation system against unauthorized access by setting password-protected access rights for specific users in the user management.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

117

Security 4.2 Using the display to configure additional access protection

4.2

Using the display to configure additional access protection

Introduction

On the display of an S7-1500, you can block access to a password-protected CPU (local lock). The access lock is only in effect, when the operating mode switch is in the RUN position. The access lock applies independently of password protection, i.e. if someone accesses the CPU via a connected programming device and has entered the correct password, access to the CPU is still blocked. The access block can be set separately for each access level on the display, so that, for example, read access is allowed locally, but write access is not allowed locally.

Procedure

If an access level with a password is configured in STEP 7, access can be blocked using the display.
Proceed as follows to set the local access protection for an S7-1500 CPU on the display:
1. On the display, select Settings > Protection menu.
2. Confirm the selection using "OK", and configure for each access level, whether access at the RUN mode selector is allowed or not:
Allow: Access to the CPU is possible, provided the corresponding password in STEP 7 is entered.
Deactivated in RUN: When the operating mode switch is in the RUN position, no more users with privileges for this access level can log in to the CPU, even if they know the password. In STOP mode, access is possible with password entry.

Access protection for the display
A password can be configured for the display in STEP 7 in the properties of the CPU so that the local access protection is protected by a local password.

118

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Security 4.3 Know-how protection

4.3

Know-how protection

You can use know-how protection to protect one or more blocks of the OB, FB, FC type and global data blocks in your program from unauthorized access. You can enter a password in order to restrict access to a block. The password protection prevents the block from being read or changed without authorization.

Without the password only the following data concerning the block can be read:

 Block title, comments and block properties

 Block parameters (INPUT, OUTPUT, IN, OUT, RETURN)

 Call structure of the program

 Global tags without information on the point of use

Further actions that can be carried out with a know-how protected block:

 Copying and deleting

 Calling in a program

 Online/offline comparison

 Load

S7-1500 Getting Started, 05/2014, A5E03981761-AC

119

Security 4.3 Know-how protection
Setting up block know-how protection
1. Open the properties of the respective block. 2. Select the "Protection" option under "General".

3. Click the "Protection" button to display the "Know-how protection" dialog.

4. Click the "Define" button to open the "Define password" dialog.

5. Enter the new password in the "New password" field. Enter the same password in the "Confirm password" field.
6. Click "OK" to confirm your entry.
7. Close the "Know-how protection" dialog by clicking "OK".
Result: The blocks selected will be know-how-protected. Know-how protected blocks are marked with a lock in the project tree. The password entered applies to all blocks selected.

120

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Security 4.3 Know-how protection
Opening know-how protected blocks
1. Double-click the block to open the "Access protection" dialog. 2. Enter the password for the know-how protected block. 3. Click "OK" to confirm your entry. Result: The know-how-protected block will open. Once you have opened the block, you can edit the program code and the block interface of the block for as long as the block or TIA Portal is open. The password must be entered again the next time the block is opened. If you close the "Access protection" dialog with "Cancel", the block will open but the block code will not be displayed and you will not be able to edit the block. The know-how protection of the block is not removed if, for example, you copy the block or add it to a library. The copies will also be know-how-protected.
Removing block know-how protection
1. Select the block from which you want to remove know-how protection. The protected block may not be open in the program editor.
2. In the "Edit" menu, select the "Know-how protection" command to open the "Know-how protection" dialog.
3. Deactivate the "Hide code (Know-how protection)" check box.

4. Enter the password.

5. Click "OK" to confirm your entry. Result: Know-how protection will be removed from the block selected.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

121

Security 4.4 Copy protection

4.4

Copy protection

Copy protection allows you to bind the program or the blocks to a specific SIMATIC memory card or CPU. Through the linking of the serial number of a SIMATIC memory card or of a CPU the use of this program or of this block is only possible in combination with a specific SIMATIC memory card or CPU. With this function a program or block can be sent electronically (e.g. by e-mail) or by shipping a memory module.

When you set up such a copy protection for a block, also assign know-how-protection to this block. Without know-how protection, anyone can reset the copy protection. You must, however, set up copy protection first as the copy protection settings are read-only if the block is already know-how-protected.

Setting up copy protection
1. Open the properties of the respective block. 2. Select the "Protection" option under "General".

3. In the "Copy protection" area, select either the "Bind to serial number of the CPU" entry or the "Bind to serial number of the memory card" entry from the drop-down list.

4. Enter the serial number of the CPU or the SIMATIC memory card.
5. You can now set up the know-how protection for the block in the "Know-how protection" area. Note If you download a copy protected block to a device that does not match the specified serial number, the entire download operation will be rejected. This means that blocks without copy protection will also not be downloaded.

122

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Security 4.5 Protection by locking the CPU
Removing copy protection
1. Remove any existing know-how protection. 2. Open the properties of the respective block. 3. Select the "Protection" option under "General". 4. In the "Copy protection" area, select the "No binding" entry from the drop-down list.

4.5

Protection by locking the CPU

Protect your CPU from unauthorized access using a sufficiently secured front cover.

Using the latch on the CPU cover, you have the following options:

 Affix a seal

 Secure the front cover with a lock (shackle diameter: 3 mm)

4.6

Configuring access protection for the CPU

Introduction

The CPU offers four access levels, in order to limit access to specific functions.
By setting up the access levels and the passwords for a CPU, you limit the functions and memory areas that are accessible without entering a password. The individual access levels as well as the entry of their associated passwords are specified in the object properties of the CPU.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

123

Security 4.6 Configuring access protection for the CPU

Access levels of the CPU

Access levels Complete access (no protection) Read access
HMI access
No access (complete protection)

Access restrictions
The hardware configuration and the blocks can be read and changed by all users.
With this access level, read-only access to the hardware configuration and the blocks is possible without entering a password, which means you can download hardware configuration and blocks to the programming device. HMI access and access to diagnostics data is also possible. Without entering the password, you cannot load any blocks or hardware configuration into the CPU. Additionally, the following are not possible without the password: Test functions which write, changing the operating mode (RUN/STOP), and firmware update (online).
With this access level only HMI access and access to diagnostics data is possible without entering the password. Without entering the password, you can neither load blocks and hardware configuration into the CPU, nor load blocks and hardware configuration from the CPU into the programming device. Additionally, the following are not possible without the password: Test functions which write, changing the operating mode (RUN/STOP), and firmware update (online).
When the CPU is completely protected, no read or write access to the hardware configuration and the blocks is possible. HMI access is also not possible. The server function for PUT/GET communication is disabled in this access level (cannot be changed). Authentication with the password will again provide you full access to the CPU.

Each access level allows unrestricted access to certain functions without entering a password, e.g. identification using the "Accessible devices" function.

The CPU's default setting is "No restriction" and "No password protection". In order to protect access to a CPU, you must edit the properties of the CPU and set up a password.

Communication between the CPUs (via the communication functions in the blocks) is not restricted by the protection level of the CPU, unless PUT/GET communication is deactivated.

Entry of the right password allows access to all the functions that are allowed in the corresponding level.

Note
Configuring an access level does not replace know-how protection
Configuring access levels prevents unauthorized changes to the CPU, by restricting download privileges. However, blocks on the SIMATIC memory card are not write- or readprotected. Use know-how protection to protect the code of blocks on the SIMATIC memory card.

124

S7-1500 Getting Started, 05/2014, A5E03981761-AC

Security 4.6 Configuring access protection for the CPU
Parameterizing the procedure at access levels
To configure the access levels of an S7-1500 CPU, follow these steps: 1. Open the properties of the S7-1500 CPU in the Inspector window. 2. Open the "Protection" entry in the area navigation.
A table with the possible access levels appears in the Inspector window.

3. Activate the desired protection level in the first column of the table. The green checkmarks in the columns to the right of the respective access level show you which operations are still available without entering the password.
4. In the "Password" column, specify a password for the selected access level. In the "Confirmation" column, enter the selected password again to protect against incorrect entries.
Ensure that the password is sufficiently secure, in other words, that is does not follow a pattern that can be recognized by a machine!
You must enter a password in the first row ("Full access" access level). This enables unrestricted access to the CPU for those who know the password, regardless of the selected protection level.
5. Assign additional passwords as needed to other access levels if the selected access level allows you to do so.
6. Download the hardware configuration to the CPU, so that the access level will take effect.
Behavior of a password-protected CPU during operation
The CPU protection takes effect after the settings are downloaded in the CPU.
Before an online function is executed, the necessary permission is checked and, if necessary, the user is prompted to enter a password. The functions protected by a password can only be executed by one programming device/PC at any one time. Another programming device/PC cannot log on.
Access authorization to the protected data is in effect for the duration of the online connection, or until the access authorization is manually rescinded with "Online > Delete access rights".
Access to a password-protected CPU in the RUN mode can be limited locally in the display so that access with a password is also not possible.

S7-1500 Getting Started, 05/2014, A5E03981761-AC

125

Security 4.7 Configuring protection of the HMI connection

4.7

Configuring protection of the HMI connection

Introduction

If the protection level "Complete protection" was set for the CPU, the HMI device can only access the CPU with the password stored there.
This function is only available with HMI devices from SIEMENS.

Procedure

1. Open the "Connections" editor in the project tree. 2. Select the integrated connection. 3. Enter the password for the CPU in the "Password" area.

Result

The HMI device can now communicate and exchange data with the CPU.

126

S7-1500 Getting Started, 05/2014, A5E03981761-AC

SIMATIC S7-1500/ET 200MP Amendments to documentation S7-1500/ET 200MP
Product Information
Introduction
Scope of validity of the product information This product information supplements the documentation for S7-1500/ET 200MP and takes precedence over our system manuals, function manuals and manuals. You can find additional information on the S7-1500 fail-safe CPUs in the Product Information for F-CPUs on the Internet (https://support.industry.siemens.com/cs/de/en/view/109478599). The section "Notes on S7-1500 Motion Control" applies for the following function manuals as of edition 12/2019: · S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 · S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 · S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 · S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 · S7-1500T Kinematics functions V5.0 in TIA Portal V16
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept. Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place. For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity). Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

© Siemens AG 2013 - 2020. All rights reserved

A5E31876033-AU, 07/2020

1

Amendments to documentation S7-1500/ET 200MP
S7-1500/ET 200MP
S7-1500/ET 200MP - Requirements for power supplies in the event of voltage interruption
Note To ensure adherence to IEC 61131-2 and NAMUR Recommendation NE 21, only use power packs/power supply units (230 V AC  24 V DC) with a mains buffering time of at least 20 ms. Observe the relevant requirement in your product standards (e.g. 30 ms for "burners" pursuant to EN 298) as regards possible voltage interruptions. The latest up-to-date information on PS components is available on the Internet (https://mall.industry.siemens.com). These requirements, of course, also apply to power packs/power supply units not constructed using ET 200SP or S7-300-/400-/1500 technology.
S7-1500/ET 200MP wiring rules
Note 40-pin front connector (screw terminal, for 35 mm modules), article number 6ES7592-1AM00-0XB0 In case of a total current of more than 8 A, apply the supply voltage 24 V DC (terminals 19 and 39) and the ground (terminals 20 and 40) twice.
S7-1500/ET 200MP standards and approvals ATEX approval

According to EN 60079-15 (Electrical apparatus for potentially explosive atmospheres - Part 15: Type of protection "n") and EN 60079-0 (Electrical apparatus for potentially explosive gas atmospheres - Part 0: General requirements).
OR According to EN 60079-7 (Electrical apparatus for potentially explosive atmospheres - Part 7: Increased safety "e") and EN IEC 60079-0 (Electrical apparatus for potentially explosive gas atmospheres - Part 0: General requirements).
Special conditions in hazardous area: 1. The devices may only be used in a range not exceeding pollution degree 2, as defined in EN 60664-1. 2. The modules must be installed in a suitable enclosure that guarantees at least IP54 degree of protection according to
EN 60079-15 or EN 60079-7, taking into account the ambient conditions during use. 3. Measures must be taken to prevent the rated voltage from being exceeded by transient disturbance voltages of more than
119 V.
IECEx approval

According to IEC 60079-15 (Explosive atmospheres - Part 15: Equipment protection by type of protection "n") and IEC 600790 (Explosive atmospheres - Part 0: Equipment - General requirements).

Amendments to documentation S7-1500/ET 200MP

2

A5E31876033-AU, 07/2020

OR
According to IEC 60079-7 (Explosive atmospheres - Part 7: Equipment protection by increase safety "e") and IEC 60079-0 (Explosive atmospheres - Part 0: Equipment - General requirements).

Special conditions in hazardous area:
1. The devices may only be used in a range not exceeding pollution degree 2, as defined in IEC 60664-1.
2. The modules must be installed in a suitable enclosure that guarantees at least IP54 degree of protection according to EN 60079-15 or EN 60079-7, taking into account the ambient conditions during use.
3. Measures must be taken to prevent the rated voltage from being exceeded by transient disturbance voltages of more than 119 V.

S7-1500/ET 200MP safety symbols

Safety-related symbols for devices with explosion protection

Updated symbols for zone 2/22:

Symbol

Meaning

For Zone 2 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP54.

For Zone 22 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP6x.

S7-1500 CPUs with firmware version V2.8.x
S7-1500 CPUs with firmware version V2.8.x in conjunction with TIA Portal V16 do not fully support PKI infrastructures.
An S7-1500 CPU with the above-mentioned firmware version requires that root certificates can be trusted in general. An S7-1500 CPU implicitly trusts every certificate within the trust chain that was issued by the same Certificate Authority (CA).
Certificate Revocation Lists (CRLs), which are used to explicitly revoke certificates from a trusted certificate authority, are not supported.
This feature will be made available shortly; it will enable even complex PKI infrastructures. But until then, please consider the above-mentioned restrictions when using certificates.
S7-1500 - Access protection for F-CPUs and blocking online access to a password-protected CPU
Access protection for F-CPUs
If you want to achieve the same access protection for an F-CPU as for a standard CPU "No access (complete protection)", you need to have assigned the two passwords above in STEP 7 in the "Protection & Security" area of the F-CPU properties:
· Full access incl. fail-safe (no protection) and
· Full access (no protection)
Blocking online access to a password-protected CPU
You can block online access to a password-protected CPU. The effect of the access block is independent of password protection. This means that if you access a CPU via a PG/PC and enter the correct password, you are still denied access to the CPU.
You have two options for blocking online access:
· Via the display on the CPU (Settings > Protection > Level of protection)
· In STEP 7 using the instruction ENDIS_PW: Limit and enable password legitimation

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

3

Special note for standard and F-CPUs
If you want to block individual access levels for a standard or F-CPU (e.g. read access, HMI access, no access (complete protection)) via the display or the ENDIS_PW instruction, you need to have assigned passwords for these access levels (in the "Protection & Security" area in the CPU properties).
S7-1500 CPUs
CPU Manuals, Edition 12/2017 and Edition 09/2016
Technical specifications section: The listed technical specifications correspond to the respective edition of the device manual (Edition 12/2017 or Edition 09/2016). You can find the data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td). Enter the article number or the short designation of the desired module on the website.
CPU Manuals, Edition 12/2017 and Edition 09/2016
You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 CPUs.
You can find additional information on the "LED" instruction in the STEP 7 online help.
CPU Manuals, Edition 11/2019, Edition 12/2017 and Edition 09/2016
Unlike as described in the manuals, the MAINT-LED does not light up during PROFIenergy pause.
S7-1500 CPU 1518-4 PN/DP - Isochronous mode
Manual CPU 1518-4 PN/DP, edition 09/2016
Note Isochronous mode If you use high-speed OBs with cycle times of 125 µs, the creation by the system of several hundred DBs may have an effect on the jitter of an OB6x. To avoid possible impacts on the execution and processing times of high-speed OBs, use the CREATE_DB sparingly or not at all.

Amendments to documentation S7-1500/ET 200MP

4

A5E31876033-AU, 07/2020

S7-1500 CPU 1511C-1 PN and CPU 1512C-1 PN CPU 1511C-1 PN and CPU 1512C-1 PN manuals, Edition 12/2017 The loads of the digital onboard I/O X11 and X12 connected at the outputs have a connection to ground 2M/3M and 5M/6M.

  xL+ xM CHx RUN ERROR PWR
Figure 1

Encoder supply for the digital inputs CPU interface module Connection for 24 V DC supply voltage Connection for ground Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)
Block diagram and pin assignment X11 of CPU 1511C-1 PN and CPU 1512C-1 PN

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

5

  xL+ xM CHx RUN ERROR PWR
Figure 2

Encoder supply for the digital inputs CPU interface module Connection for 24 V DC supply voltage Connection for ground Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)
Block diagram and pin assignment X12 of CPU 1512C-1 PN

Amendments to documentation S7-1500/ET 200MP

6

A5E31876033-AU, 07/2020

Manual CPU 1518-4 PN/DP MFP, Edition 12/2017, Section 2.3.1 Quick start instructions for commissioning C/C++ Runtime
Note Defective C/C++ Runtime containers The three C/C++ Runtime containers are located in the "/CppEnv1.MFP" directory on the SIMATIC Memory Card. If the C/C++ Runtime containers are damaged or lost when the CPU is switched off, a diagnostic entry is created in the diagnostic buffer of the CPU the next time the CPU is started up. C/C++ Runtime cannot be reached and the ERROR LED flashes. If automatic repair of the containers by the automation system is not possible, the containers can no longer be used by the Linux file system. The automation system starts C++ Runtime in root mode. A new logon with the standard user and password is possible. However, you cannot make any permanent changes to the automation system, e.g: · Change the password · Save data · Change system settings Solution: · Copy a previously created backup copy of the C/C++ Runtime containers to the SIMATIC Memory Card.
or · Delete the affected C/C++ Runtime container from the SIMATIC Memory Card. The automation system then recreates the
container during the next startup.

S7-1500 CPU 1518-4 PN/DP MFP

Manual CPU 1518(F)-4 PN/DP MFP, Edition 12/2017, Section 2.3. Firmware functions

Note the following updated information for the firmware function C/C++ applications:

Function

Description

C/C++ applications

CPU 1518-4 PN/DP MFP can execute STEP 7 blocks as well as blocks and applications programmed with C/C++ (CPU function library) in the user program.
The multifunctional platform enables you to execute C/C++ code (CPU function library for the real-time environment) synchronously in the CPU cycle.
In addition, the multifunctional platform can run C/C++ applications (C/C++ Runtime application) parallel to the CPU cycle.
You create the CPU function library for the real-time environment and Linux C/C++ Runtime application with the "ODK 1500S Open Development Kit" (ODK).
Using the ODK provides you with the mechanisms of higher programming languages (e.g. object-oriented) within a modern programming environment.
You can use Target 1500S for Simulink and ODK 1500S to create CPU function libraries for your complex open and closed-loop control algorithms for the realtime environment in C/C++.

ET 200MP with IM 155-5 PN ST - Channel diagnostics, MSI/MSO Manual IM 155-5 PN ST interface module, edition 11/2017 Channel diagnostics In contrast to the order specified in the manual, the User Structure Identifiers (USI) are structured as follows: · USI data block · Reserved bytes · Manufacturer-specific diagnostics

ET 200MP with IM 155-5 DP ST ­ Operation on a WIN AC RTX
When operating the ET 200MP (PROFIBUS) on a WIN AC RTX, configuration is only possible via GSD file (selection in the hardware catalog under "Additional field devices"). Configuration on the basis of a support package is not supported in the TIA Portal for this device arrangement.

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

7

ET 200MP with IM 155-5 DP ST - operation on Y-Link, interrupts, technical specifications Manual Interface module IM 155-5 DP ST, edition 08/2013 Operation on Y-Link As of firmware version V2.0.0, the IM 155-5 DP ST interface module can be operated as DP slave after the Y-Link. Interrupts The bytes x+8 to x+19 of the diagnostic interrupt are assigned as follows:

Figure 3

Structure starting at byte x+8

Figure 4

Structure starting at byte x+14

Technical specifications
For the IM 155-5 DP ST, the address space of each module can be assigned a maximum of 64 bytes of inputs and a maximum of 64 bytes of outputs.

Amendments to documentation S7-1500/ET 200MP

8

A5E31876033-AU, 07/2020

S7-1500/ET 200MP - Substitute value behavior in shared device mode
Observe the following special characteristics for substitute value behavior in shared device mode with the modules/configurations in the following table:
Note Substitute value behavior in shared device mode If the system is in shared device mode and one of the IO controllers involved goes into STOP or fails due to a communication breakdown, for example, all submodules of the output module perform the configured substitute value reaction (e.g. shutdown). This means that even when only one IO controller fails, that the other IO controllers associated with the shared device no longer control the assigned submodule of the output module.

Module/module name DQ 32x24VDC/0.5A BA DQ 16x24VDC/0.5A BA

Configuration 4 x 8-channel without value status 2 x 8-channel without value status

Article no.: 6ES7522-1BL10-0AA0 6ES7522-1BH10-0AA0

S7-1500/ET 200MP - Modules with isochronous mode
The following configurations rule out isochronous mode of the module:
· Module-internal shared input (MSI)
· Module-internal shared output (MSO)
· Submodules for shared device
Digital input modules with isochronous mode
When operating the following digital input modules, make sure that the digital input modules have at least one of the following firmware versions (FW) or higher. Otherwise, you may experience a high jitter in the application.
· DI 16x24VDC HF (6ES7521-1BH00-0AB0): For modules with functional status FS 03: FW V2.1.4 For modules with functional status FS 04: FW V2.2.0
· DI 32x24VDC HF (6ES7521-1BL00-0AB0): For modules with functional status FS 03: FW V2.1.4

S7-1500/ET 200MP - Calibration of analog modules

Requirements: The module is integrated in the hardware catalog of STEP 7 (TIA Portal) (no GSD file).

The "Calibration" function (calibration in RUN) is only possible with the following configurations.

Module/module name AI 8xU/I/RTD/TC ST QI AI 8xU/I/RTD/TC ST AI 8xU/I HS QI AI 8xU/I HS AQ 8xU/I HS QI AQ 8xU/I HS AQ 4xU/I ST QI AQ 4xU/I ST AQ 4xU/I HF QI AQ 4xU/I HF AI 4xU/I/RTD/TC/ AQ 2xU/I ST QI AI 4xU/I/RTD/TC/ AQ 2xU/I ST AI 4xU/I/RTD/TC ST QI AI 4xU/I/RTD/TC ST AQ 2xU/I ST QI AQ 2xU/I ST

Configuration 1 x 8-channel with value status 1 x 8-channel without value status 1 x 8-channel with value status 1 x 8-channel without value status 1 x 8-channel with value status 1 x 8-channel without value status 1 x 4-channel with value status 1 x 4-channel without value status 1 x 4-channel with value status 1 x 4-channel without value status 1 x 6-channel with value status 1 x 6-channel without value status 1 x 4-channel with value status 1 x 4-channel without value status 1 x 2-channel with value status 1 x 2-channel without value status

Article no.: 6ES7531-7KF00-0AB0 6ES7531-7NF10-0AB0 6ES7532-5HF00-0AB0 6ES7532-5HD00-0AB0 6ES7532-5ND00-0AB0 6ES7534-7QE00-0AB0 6ES7531-7QD00-0AB0 6ES7532-5NB00-0AB0

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

9

S7-1500/ET 200MP - Technical specifications

Manual AI 8xU/I HS (6ES7531-7NF10-0AB0), Edition 12/2016

Manual AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0), Edition 09/2016

Manual AI 4xU/I/RTD/TC / AQ 2xU/I ST (6ES7534-7QE00-0AB0), Edition 09/2016

Contrary to the information given in the manuals, the following statements apply:

24 V encoder supply Short-circuit protection Output current, max.

Yes 20 mA; max. 47 mA per channel for a duration < 10 s

The "encoder supply" depends on the module and is described in the technical specifications of the respective device manual. You can find the data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td). Enter the article number or the short designation of the desired module on the website.

S7-1500/ET 200MP - modules with switching cycle counter The following modules have a switching cycle counter: · Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0) with firmware version V2.1.0 · Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0) with firmware version V1.1.0 These modules are already integrated in the hardware catalog STEP 7 (TIA Portal) V16 and in the GSD file for PROFINET IO. The modules with the "Switching cycle counter" function will, however, only be available at a later date.

OPC UA client-server connection via NAT router
Communication Function Manual, Edition 11/2019
If client and server are connected via NAT routers, this attempt to make a connection fails with the error message "BadCommunicationError" or "BadNotConnected".
Background: The IPv4 packets are manipulated by the router in NAT systems. As a result, either the source IP ("Source NAT") or the destination IP ("Destination NAT") of a packet is replaced by an IP address configured in the router (depending on the destination port). This process is transparent for client and server, i.e. these devices are not informed about this process.
The problem: The NAT router also has no way to replace the endpoint description returned by the server (this is the EndpointUrl), since this address information is located in the user data of "GetEndpointsResponse".
You can find a detailed description of the procedure in the following FAQ (https://support.industry.siemens.com/cs/ww/en/view/109766709).
CPU Firmware Version V2.6
No OPC UA client-server connection via NAT router possible.
Remedy as of CPU firmware version V2.8
Use the "ServerUri" attribute of the connection information ("SessionConnectInfo" parameter of the "OPC_UA_Connect" instruction).
Enter the complete ServerEndpointUrl with the IP address of the NAT router as "ServerUri". This ServerEndpointUrl is then used to establish the connection instead of the EndpointUrl returned in GetEndpointsResponse. If you leave the attribute empty, the behavior will be the same as in CPU firmware version V2.6.
When you use the connection parameter assignment for the OPC UA connection setup (create client interface), then you must open the client interface DB (*_Configuration[DBx]) after the parameter assignment and change the string in the "ServerUri" parameter. The entry is retained after compiling the OPC UA configuration.

Amendments to documentation S7-1500/ET 200MP

10

A5E31876033-AU, 07/2020

Example of establishing a connection (address from ServerUri replaces address from GetEndpointsResponse) Procedure: In the "ServerUri" parameter, enter the complete server address (ServerEndpointUrl), consisting of IP address, port and optional path. The IP address is the client-side IP address of the NAT router: 1) Open configuration DB
2) Change "ServerUri" parameter

The connection is then established with the following steps:
· GetEndpointsRequest: The S7-1500 OPC UA client addresses the server via the destination address of the NAT router in the client subnet (10.10.0.1). The NAT router converts the destination address into the IP address of the server (192.168.0.1) in the subnet of the server.
· GetEndpointsResponse: The server returns its EndpointUrl in "GetEndpointsResponse": "opc.tcp://192.168.0.1:4840/UA/DemoServer". This address cannot be reached directly by the client because it is located behind a NAT router.
· OpenSecureChannel: The client does not take the EndpointUrl from the GetEndpointsResponse to open the secure channel. Instead, it takes the EndpointUrl from the "ServerUri" parameter: "opc.tcp://10.10.0.1:4840/UA/DemoServer". This IP address can be reached by the client; the data is routed from the NAT router to the IP address of the server.

Active backplane bus
Shared device is not possible with the HSP0318 in the combination of active backplane bus and S7-300/400 CPUs as IO controller.
This combination is possible with GSD file (in STEP 7 as of V5.5 and in STEP 7 (TIA Portal)).
Shared device with active backplane bus and S7-1500 CPUs as IO controller is possible with the HSP0318 and with GSD file.

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

11

Notes on S7-1500 Motion Control

Technology alarms 900-902

Contrary to the documented behavior, the received leading value is detected as invalid with technology alarms 900 and 901 as alarm response. Technology alarm 902 has no alarm response.

The technology alarms 900 and 901 are displayed in the diagnostics buffer.

No.

Response

900 Set leading value invalid 901 Set leading value invalid 902 No response

Error bit
X2 X2 -

Warning bit
X2

Restart Diagnostics buffer

Alarm text

-

X

Invalid leading values.

-

X

Data transmission error.

-

-

Leading value accuracy limited.

You can acknowledge a technology alarm 900 with an "MC_Reset" job with "Restart" = FALSE. A restart is not required.

The technology alarm 900 is displayed with the following alarm text:

Alarm text Invalid leading values.

Solution
Set a higher tolerance time (<TO>.Parameter.ToleranceTimeExternalLeadingValueInvalid).
Check the connection of the interconnected components. Make sure that there is no communication interference.
Make sure that the CPUs involved are in RUN operating state.

The technology alarm 901 is displayed with the following alarm text:

Alarm text Data transmission error
Invalid version Invalid modulo start value Invalid modulo length Sign-of-life error Invalid position Invalid velocity Invalid acceleration

Solution Check the communication.
Check the leading value of the leading axis on the other CPU.

Behavior of the modulo cycle counter when homing with "MC_Home"

In contrast to the documented behavior, the modulo cycle counter responds during direct relative homing with "Mode" = 1, 12 and with absolute value encoder adjustment (relative) with "Mode" = 6 as with direct absolute homing with "Mode" = 0. The counter values of the modulo cycles change during homing and the absolute encoder adjustment with the listed modes as follows:

Action

Description

Absolute value adjustment with "Mode" = 6
Direct homing relative with "Mode" = 1, 12

The modulo value is the shortest distance between the current and new position. Depending on the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.
The modulo value is the shortest distance between the current and new position. Depending on the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.

Provision of leading value for cross-PLC synchronous operation
Contrary to documentation, the leading value can only be provided by the CPUs S7-1515, S7-1516, 1515SP PC2 T/TF, the technology CPUs, and the SIMATIC Drive Controller.
This behavior is corrected as of firmware version V2.8.3.

Use of the "DX_TEL_SyncOp" data type for cross-PLC synchronous operation
Output and input tags with the "DX_TEL_SyncOp" data type are created for the cross-PLC synchronous operation at the start address of the transfer area. If the data type "DX_TEL_SyncOp" cannot be assigned, it was deleted with the last compilation.
Unused data types are deleted during the compilation. To restore the "DX_TEL_SyncOp" data type, add a V5.0 technology object. After using the data type in the PLC tag, the technology object can be deleted again.

Amendments to documentation S7-1500/ET 200MP

12

A5E31876033-AU, 07/2020

Manually configuring delay times on the leading axis and the virtual following axis
If you increase the delay time of the leading axis in the leading value settings, this results in a reduction of the extrapolation time at the leading axis proxy or to an increase of the interpolation time of the distributed leading value at the leading axis proxy. This reduces the error resulting from extrapolation in the acceleration and delay phases of the leading value.
If the delay time at the leading axis proxy is increased, this results in an increase of the extrapolation time or to a reduction of the interpolation time.

Calculation of the following error
The following error is the difference between the setpoint and actual position based on the connection of the axis at the drive. In contrast to the documented behavior, the transmission times of the setpoints from the controller to the drive and the actual position values from the drive to the controller are not part of the following error. The value of the following error is thus not the same as the difference between the setpoint available in the controller minus the existing actual position.

Performance of the user transformation with dynamic adaptation (S7-1500T)
With the Technology Version V5.0, longer runtimes of the MC-Interpolator [OB92] arise with the user transformation. With longer runtimes of the MC-Interpolator [OB92] the runtimes of the organization blocks with lower priority are extended.

Maximum number of signals per kinematics trace

You can record a maximum of 16 signals in a kinematics trace. The following table shows how many signals are required for the traces.

Kinematics type

Trace

Required signals

2D

Tool center point (TCP) and kinematics

4

Tool center point (TCP)

2

per OCS

3

2D with orientation

Tool center point (TCP) and kinematics

6

Tool center point (TCP)

3

per OCS

2

3D

Tool center point (TCP) and kinematics

6

Tool center point (TCP)

3

per OCS

6

3D with orientation

Tool center point (TCP) and kinematics

8

Tool center point (TCP)

4

per OCS

4

The more traces you record, the lower the maximum recording duration and the number of measuring points per trace.

Use of blending with kinematics motions (S7-1500T)
Dynamic overruns on the kinematics axes might occur during blending.
Occasionally, a synchronous "point-to-point" motion might not be blended into the next movement. In this case, increase the cycle time of the OB MC servo.

Blending between path motions and synchronous "point-to-point" motions (sPTP motions) (S7-1500T) When using blending from a path motion to an sPTP motion, there might not be any blending or the blending segment could be significantly shortened. When using blending of path motions and sPTP motions, set the path dynamics as high as possible: · Jerk · Acceleration This behavior is corrected with firmware version V2.8.2.

Changing the override for synchronous "point-to-point" motions (sPTP motion) (S7-1500T) When changing the override, the path of the motion of the tool center point (TCP) of an sPTP motion can change. If the motion contour of the TCP is to be retained, the kinematics proceed with minimal change to the override. This behavior is corrected with firmware version V2.8.2.

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

13

User-defined transformation (S7-1500T) You can configure and apply the user-defined transformation with multiple technology objects kinematics on a PLC. To differentiate in MC-Transformation [OB98] between the different kinematics technology objects, use the input "KinematicsObject".
Job sequence of the kinematics technology object (S7-1500T) The motion is not always prepared via all motion jobs in the job sequence. The CPU determines the number of motion jobs to be considered depending on the type of motion jobs, e. g. sPTP motion, linear motion, circular motion, conveyor tracking.
Using the Motion Control instruction "MC_TrackConveyorBelt" (S7-1500T) The use of the Motion Control instruction "MC_TrackConveyorBelt" is possible as of firmware version V2.8.2. If the Motion Control instruction "MC_TrackConveyorBelt" is called multiple times with an FB instance and with different input parameters, the parameter "Done" is occasionally not set to TRUE. Use different instances for changing input parameters. If you quickly order two "MC_TrackConveyorBelt" jobs on an FB instance in a row, the parameter "Done" is occasionally not set. After a "MC_TrackConveyorBelt" job, wait at least two motion control application cycles until you order the next job.
Mode of operation of the conveyor tracking with firmware version V2.8.2 (S7-1500T) Contrary to the documentation, the following behavior applies as of firmware version V2.8.2: · Dynamic adaptation cannot be used at any phase of the conveyor tracking. · A direct transition from one tracked OCS into another tracked OCS is not possible. First transmit an instruction in the WCS
or a non-tracked OCS to complete the process of the kinematics with the tracked OCS. When the instruction in the WCS or a non-tracked OCS is completed, the tracking of the OCS at the conveyor is automatically completed ("TrackingState" = 0). · To move the kinematics to the first position in the tracked OCS ("TrackingState" changes from 1 to 2) or to complete the process of the kinematics in the tracked OS ("TrackingState" changes from 3 to 4) use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute". · The instruction "MC_SetOCSFrame" can only be applied on an OCS with "TrackingState" = 0. · If a motion of the kinematics is completed in the tracked OCS through a motion job in the WCS or a non-tracked OCS, this is shown in the variable "TrackingState" = 4. When the motion job is completed, the "TrackingState" changes to 0 and the OCS is not included with the product position anymore. · An instruction "MC_GroupStop" completes the tracking of the OCS with "TrackingState" = 2 and 4. · The tracking of the OCS with conveyor motion is not recorded in the kinematics trace. The traversing of the TCP with the tracked OCS is recorded. · Permitted values for "InitialObjectPosition":
­ "InitialObjectPosition.x" <=> 0.0
­ "InitialObjectPosition.y" = 0.0
­ "InitialObjectPosition.z" = 0.0
­ "InitialObjectPosition.a" = 0.0
­ "InitialObjectPosition.b" = 0.0 ­ "InitialObjectPosition.c" = 0.0

Amendments to documentation S7-1500/ET 200MP

14

A5E31876033-AU, 07/2020

Blending behavior · Blending is possible for the following motions:
­ In a motion job for moving into the first position in the tracked OCS ­ In motions within the tracked OCS ­ From a motion job that exits tracking at the conveyor to the subsequent motion job, if the sequence of instructions in
the job sequence is as follows: 1. Moving in a tracked OCS 2. Assigning other OCS to the product position of another conveyor 3. Exiting conveyor tracking by moving into a position in WCS or in a non-tracked OCS 4. Moving into a position in the newly tracked OCS The jobs 2, 3 and 4 must already be in the job sequence as long as job 1 is still being performed. · Blending is not possible for the following motions:
­ In a motion job that completes the tracking at the conveyor ­ From a motion job for moving into the first position in the tracked OCS into the subsequent motion job in the tracked
OCS MC_TrackConveyorBelt V5: Function chart

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

15

Amendments to documentation S7-1500/ET 200MP

16

A5E31876033-AU, 07/2020

Section A
A "MC_MeasuringInput" job (A1) is used to record the position of a product at the time . The recorded position "MV" is reported via "Done_1" and written into the variable "CONV_POS.x".
With a "MC_TrackConveyorBelt" job (A2), an OCS is assigned at the time  via the parameter "ConveyorBelt" to a leadingvalue capable technology object, which represents the conveyor belt. The OCS is assigned to a known conveyor position to this purpose. The OCS is assigned with the OCS frame and the product position to a product on the conveyor.
The "ObjectPosition" is calculated from the conveyor position minus the "InitialObjectPosition". In the present case the "InitialObjectPosition" is the position of the conveyor ("MV") at the time .
The status of conveyor tracking ("TrackingState") changes from 0 to 1.
Via a "MC_MoveLinearAbsolute" job at the time  the kinematics is moved to the position specified in the OCS. When the kinematics moves to the product position, the status of conveyor tracking changes from 1 to 2. When the kinematics follow the product position, the status of conveyor tracking changes from 2 to 3.
Section B
To complete the process of the kinematics with the tracked OCS, a "MC_MoveLinearAbsolute" job is started in the WCS at the time . When the kinematics moves to the position in WCS, the status of conveyor tracking changes from 3 to 4.
The completed conveyor tracking is reported via "Done_4" and the "TrackingState" changes to 0. The OCS is not tracked with the conveyor position anymore.

Technology alarm 802 (S7-1500T)

The technology alarm 802 has been extended with the following alarm texts:

Alarm no. and text

Solution

Calculation of the geometry element not possible. 8 Moving on the tracked OCS is not possible through the
command parameter assignment.
9 Moving of the kinematics on the tracked OCS cannot be completed through the command parameter assignment.
10 A change of the coordinate system is not possible at a moved OCS.
11 An sPTP motion is not possible with a moved OCS. 12 The active coordinate system cannot be changed with a
moved OCS.
13 The dynamic values are not correct.

· Use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute".
· At "MC_MoveCircularAbsolute" use the "CircMode" = 0.
· Switch off the dynamic adaptation.
· Use a route > 0 for the instructions. An orientation motion without kinematics motion is not possible.
· Use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute".
· At "MC_MoveCircularAbsolute" use the "CircMode" = 0.
· Switch off the dynamic adaptation.
· Use a route > 0 for the instructions. An orientation motion without kinematics motion is not possible.
It is not possible to automatically change with a motion command from one tracked OCS into another tracked OCS.
A "MC_MoveDirectRelative" or "MC_MoveDirectAbsolute" instruction cannot be used in a moved OCS.
The following instructions can only be performed with the status "TrackingState" = 0 or 1:
· "MC_DefineTool"
· "MC_SetTool"
· "MC_TrackConveyorBelt"
The instruction "MC_SetOCSFrame" can only be performed with the status "TrackingState" = 0.
Check the calculation of the speeds and accelerations in the user transformation in the MC-Transformation [OB98].

Technology alarms 810 and 811 (S7-1500T)
Contrary to the documentation, bit 7 "ConveyorFault" (error in conveyor tracking) is set in <TO>.ErrorWord when alarms 810 and 811 are triggered.

Amendments to documentation S7-1500/ET 200MP

A5E31876033-AU, 07/2020

17

Error detection (Kinematics) (S7-1500T)

The list of error messages has been extended with the following "ErrorIDs":

ErrorID 16#80D7

Description
The job on the kinematics transformation cannot be executed.

16#80DA

Invalid value parameter "InitialObjectPosition"

Solution
A "MC_KinematicsTransformation" or "MC_InverseKinematicsTransformation" instruction cannot perform a calculation, when the kinematics moves a tracked OCS or the moving of a tracked OCS is completed. Wait until the current job for the conveyor tracking has been completed and restart the job for the kinematics transformation.
Enter permissible values for the frame at the parameter "InitialObjectPosition".

Notes on English and Chinese documentation (S7-1500T)
Contrary to the documentation, the leading value during synchronization in advanced and subsynchronization via leading value distance must not reverse. This applies to gearing with "MC_GearInPos" and camming with "MC_CamIn".

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY
Amendments to documentation S7-1500/ET 200MP
1A58E31876033-AU, 07/2020

Amendments to documentation S7-1500/ET 200MP A5E31876033-AU, 07/2020

SIMATIC Drive Controller

SIMATIC SIMATIC Drive Controller
System Manual

Preface

SIMATIC Drive Controller Documentation Guide

1

Safety information

2

System overview

3

Application planning

4

Installation

5

Connecting

6

Configuring

7

Basics of program execution

8

Protection

9

10 Flexible automation concepts

Commissioning

11

SIMATIC memory card

12

Maintenance

13

Test and service functions

14

Technical data

15

Information for users

changing from

A

SIMOTION D4x5-2

Accessories/spare parts

B

11/2019
A5E46600094-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46600094-AA  10/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This documentation provides an overview of the SIMATIC Drive Controller family and important information on configuring, installing, wiring and commissioning.

Basic knowledge required A basic knowledge of automation technology is required to understand the documentation.

Scope of the documentation This documentation applies to all products from the SIMATIC Drive Controller product family.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note Notes contain important information on the product described in the documentation, on handling the product or on part of the documentation to which you should pay particular attention.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

3

Preface
Special information
Note Important note for maintaining the operational safety of your plant Plants with safety-related features are subject to special operational safety requirements on the part of the operator. Even suppliers are required to observe special measures during product monitoring. For this reason, we inform you in personal notifications about product developments and features that are (or could be) relevant to the operation of plants from a safety perspective. By subscribing to the corresponding notifications, you will ensure that you are always up-todate and able to make changes to your system when necessary. Log onto Industry Online Support. Go to the following links and right-click on "email on update": SIMATIC S7-1500/SIMATIC S7-1500F (https://support.industry.siemens.com/en/ww/de/ps/13716) Distributed I/O (https://support.industry.siemens.com/cs/ww/en/ps/14029) STEP 7 (TIA Portal) (https://support.industry.siemens.com/cs/ww/en/ps/14667) SINAMICS S120 (https://support.industry.siemens.com/cs/ww/en/ps/13231) SINAMICS Startdrive (https://support.industry.siemens.com/cs/ww/en/ps/13438) Operator control and monitoring systems (https://support.industry.siemens.com/cs/ww/en/ps/14729) Industrial communication (https://support.industry.siemens.com/cs/ww/en/ps/15247) Safety engineering ­ Safety Integrated (https://support.industry.siemens.com/cs/ww/en/ps/19902)
Note When using F-CPUs in safety mode and failsafe modules, observe the description of the SIMATIC Safety - Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126) F system.
Recycling and disposal For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

SIMATIC Drive Controller

4

System Manual, 11/2019, A5E46600094-AA

Preface

Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet.

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com) and in the Information and Download Center (https://www.siemens.com/automation/infocenter).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

5

Table of contents

Preface ...................................................................................................................................................... 3

1 SIMATIC Drive Controller Documentation Guide ..................................................................................... 11

2 Safety information.................................................................................................................................... 13

2.1 2.1.1

General safety information ..................................................................................................... 13 Safety-relevant symbols......................................................................................................... 15

2.2

Residual risks of power drive systems................................................................................... 17

2.3

Security information ............................................................................................................... 18

2.4

Unsafe operating states due to manipulation of software...................................................... 18

3 System overview...................................................................................................................................... 19

3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5

What is the SIMATIC Drive Controller? ................................................................................. 19 Comparison of SIMATIC Drive Controller versions ............................................................... 20 Areas of application ............................................................................................................... 22 Plant components and automation levels .............................................................................. 27 Scalability ............................................................................................................................... 28 Overview of features .............................................................................................................. 31

3.2

Configuration.......................................................................................................................... 32

3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6

SIMATIC Drive Controller functions ....................................................................................... 34 Safety ..................................................................................................................................... 34 Security .................................................................................................................................. 38 Web server............................................................................................................................. 40 Trace ...................................................................................................................................... 41 Technology functions of the CPU .......................................................................................... 44 SINAMICS Integrated functions ............................................................................................. 50

3.4

Integrated interfaces for communication................................................................................ 52

3.5

DRIVE-CLiQ........................................................................................................................... 53

3.6

Power supply.......................................................................................................................... 54

3.7 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5

Software ................................................................................................................................. 55 TIA Portal ............................................................................................................................... 55 SINETPLAN ........................................................................................................................... 56 PRONETA.............................................................................................................................. 56 TIA Selection Tool.................................................................................................................. 56 SIMATIC Automation Tool ..................................................................................................... 57

SIMATIC Drive Controller

6

System Manual, 11/2019, A5E46600094-AA

Table of contents

4 Application planning................................................................................................................................. 58

4.1

Installation location .................................................................................................................58

4.2

Hardware and software requirements.....................................................................................60

4.3 4.3.1 4.3.2 4.3.3

Drive Controller-specific properties.........................................................................................61 Drive Controller-specific hardware properties ........................................................................61 Drive Controller-specific properties of the CPU......................................................................61 Drive Controller-specific properties of SINAMICS Integrated.................................................62

4.4

Hardware configuration...........................................................................................................64

4.5

Power supply ..........................................................................................................................66

5 Installation ............................................................................................................................................... 67

5.1

Installation notes .....................................................................................................................67

5.2

Mounting the SIMATIC Drive Controller .................................................................................69

6 Connecting .............................................................................................................................................. 71

6.1

Rules and regulations for operation........................................................................................71

6.2 6.2.1 6.2.2 6.2.3

Additional rules and regulations for operation ........................................................................74 Safety extra-low-voltage (SELV, PELV) for failsafe modules .................................................74 Requirements of sensors and actuators for fail-safe modules ...............................................75 Capacitive crosstalk of digital input/output signals .................................................................78

6.3

Electrical configuration............................................................................................................78

6.4

Wiring rules .............................................................................................................................79

6.5

Connecting the supply voltage................................................................................................80

6.6

PROFINET and PROFIBUS DP .............................................................................................81

6.7

Digital inputs and digital inputs/outputs X122, X132 and X142..............................................82

6.8

DRIVE-CLiQ interfaces X100 to X103 ....................................................................................84

6.9

Protective conductor and potential equalization, functional ground .......................................85

6.10

Connecting cable shields........................................................................................................89

7 Configuring .............................................................................................................................................. 91

7.1

Overview .................................................................................................................................91

7.2

Hardware/software requirements............................................................................................92

7.3

Configuration procedure .........................................................................................................93

7.4

Display in the TIA Portal .........................................................................................................99

7.5

Configuration information......................................................................................................101

7.6

Address assignment .............................................................................................................102

7.6.1

Addressing ............................................................................................................................102

7.7 7.7.1

Address space ......................................................................................................................104 Address space of the digital inputs and digital inputs/outputs..............................................104

7.8 7.8.1 7.8.2

Process images and process image partitions .....................................................................106 Process image - overview.....................................................................................................106 Updating process image partitions in the user program .......................................................107

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

7

Table of contents

7.9 7.9.1 7.9.2 7.9.3 7.9.4 7.9.5 7.9.6 7.9.7 7.9.8 7.9.9 7.9.10

Configuration of digital inputs/outputs (X142)...................................................................... 109 Configuring the DI operating mode ...................................................................................... 111 Configuring the DQ operating mode .................................................................................... 112 Configuring Timer DI operating mode.................................................................................. 113 Configuring Timer DQ operating mode ................................................................................ 117 Configuring Oversampling DI operating mode..................................................................... 123 Configuring Oversampling DQ operating mode................................................................... 125 Configuring event/period measurement operating mode .................................................... 127 Configuring Pulse width modulation (PWM) operating mode .............................................. 128 Assignment of the control interface...................................................................................... 131 Assignment of the feedback interface.................................................................................. 132

7.10

Configuring the digital inputs and digital inputs/outputs (X122/X132) ................................. 135

7.11 7.11.1 7.11.2 7.11.3 7.11.4 7.11.5 7.11.6

Configuring the clock system ............................................................................................... 137 Overview of isochronous mode............................................................................................ 137 Configuring drives with SINAMICS Integrated isochronously.............................................. 139 Configuring technology I/Os (X142) as isochronous ........................................................... 144 Configuring additional drives on PROFINET (X150) as isochronous .................................. 148 Configuring the PROFIBUS interface as isochronous ......................................................... 150 Setting the clock system ...................................................................................................... 150

8 Basics of program execution.................................................................................................................. 157

8.1

Programming the CPU ......................................................................................................... 157

8.2

Events and OBs ................................................................................................................... 158

8.3

Asynchronous instructions ................................................................................................... 160

9 Protection .............................................................................................................................................. 170

9.1

Overview of the protection functions.................................................................................... 170

9.2

Configuring access protection for the CPU.......................................................................... 170

9.3

Using the user program to set additional access protection ................................................ 174

9.4

Know-how protection ........................................................................................................... 175

9.5

Copy protection .................................................................................................................... 179

9.6

Protection by locking the CPU ............................................................................................. 181

10 Flexible automation concepts ................................................................................................................ 182

10.1

Standard machine projects .................................................................................................. 182

10.2

Configuration control (option handling) ................................................................................ 186

10.3

TIA Portal Openness............................................................................................................ 188

11 Commissioning ...................................................................................................................................... 189

11.1

Overview .............................................................................................................................. 189

11.2

Check before powering on for the first time ......................................................................... 191

11.3 11.3.1 11.3.2 11.3.3

Commissioning procedure ................................................................................................... 192 Removing/plugging in a SIMATIC memory card.................................................................. 192 First power-on ...................................................................................................................... 194 Downloading a project to the device .................................................................................... 195

SIMATIC Drive Controller

8

System Manual, 11/2019, A5E46600094-AA

Table of contents

11.4 11.4.1 11.4.2 11.4.3 11.4.4 11.4.5

Operating states of the CPU.................................................................................................196 Overview of operating modes: Startup, STOP, RUN............................................................196 STARTUP operating state ....................................................................................................197 STOP operating state ...........................................................................................................200 RUN operating state .............................................................................................................200 Operating state transitions....................................................................................................201

11.5

SINAMICS Integrated operating states.................................................................................202

11.6

Runtime licensing..................................................................................................................203

11.7 11.7.1 11.7.2

CPU memory reset ...............................................................................................................206 Automatic memory reset.......................................................................................................207 Manual memory reset ...........................................................................................................207

11.8 11.8.1 11.8.2

Configuring SIMATIC Drive Controller backup and restore..................................................209 Backing up and restoring the CPU configuration..................................................................210 Backing up, restoring and deleting SINAMICS Integrated NVRAM data .............................213

11.9 11.9.1 11.9.2

Time synchronization ............................................................................................................215 Time-of-day synchronization of the CPU ..............................................................................215 Time-of-day synchronization of SINAMICS drives ...............................................................217

11.10 11.10.1 11.10.2 11.10.3

Identification and maintenance data .....................................................................................221 Reading out and entering I&M data ......................................................................................221 Record structure for I&M data...............................................................................................223 Example: Read out firmware version of the CPU with Get_IM_Data ...................................225

11.11

Shared commissioning of projects........................................................................................227

12 SIMATIC memory card .......................................................................................................................... 229

12.1

SIMATIC memory card ­ Overview ......................................................................................229

12.2

Setting the card type .............................................................................................................235

12.3

Data transfer with SIMATIC memory cards ..........................................................................237

12.4

Service life of the SIMATIC memory card.............................................................................239

13 Maintenance .......................................................................................................................................... 241

13.1 13.1.1 13.1.2 13.1.3

Replacing system components.............................................................................................241 Replacing a defective SIMATIC Drive Controller..................................................................241 Replacing a defective SIMATIC memory card......................................................................243 Replacing a DRIVE-CLiQ component...................................................................................244

13.2

SIMATIC Drive Controller firmware update ..........................................................................244

13.3

DRIVE-CLiQ component firmware update............................................................................249

13.4

CPU reset to factory settings ................................................................................................251

13.5

SINAMICS Integrated reset to factory settings.....................................................................254

13.6

Fault reactions with failsafe components..............................................................................255

13.7

Temperature monitoring .......................................................................................................257

13.8

Maintenance and repair ........................................................................................................258

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

9

Table of contents

14 Test and service functions ..................................................................................................................... 259

14.1

Test functions....................................................................................................................... 259

14.2

Reading/saving service data................................................................................................ 266

15 Technical data ....................................................................................................................................... 270

15.1

Introduction .......................................................................................................................... 270

15.2

Standards and Approvals..................................................................................................... 270

15.3

Electromagnetic compatibility .............................................................................................. 271

15.4

Shipping and storage conditions.......................................................................................... 272

15.5

Mechanical and climatic ambient conditions........................................................................ 274

15.6

Information on insulation tests, protection class, degree of protection and rated voltage... 276

A Information for users changing from SIMOTION D4x5-2 ....................................................................... 278

A.1

Information for users changing from SIMOTION D4x5-2 .................................................... 278

B Accessories/spare parts ........................................................................................................................ 281

Glossary ................................................................................................................................................ 285

Index...................................................................................................................................................... 300

SIMATIC Drive Controller

10

System Manual, 11/2019, A5E46600094-AA

SIMATIC Drive Controller Documentation Guide

1

The documentation for the SIMATIC Drive Controller is divided into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC Drive Controller. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, interfaces, wiring diagrams, display and operator control elements and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC Drive Controller and SIMATIC S7-1500 automation system, such as diagnostics, communication, Motion Control, Web server and OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

11

SIMATIC Drive Controller Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the SIMATIC Drive Controller gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SINAMICS documentation
The SINAMICS documentation contains detailed descriptions of the SINAMICS S120 automatic speed control and SINAMICS S210 servo drive systems. You can find the documentation by entering the manual title in the search box on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/13229/man).
The SINAMICS Technical Documentation (https://support.industry.siemens.com/cs/ww/en/view/108993276) web page provides information on the topics:
 Ordering documentation/documentation overview
 Additional links for downloading documents
 Using documentation online (find and browse manual/information)

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

SIMATIC Drive Controller

12

System Manual, 11/2019, A5E46600094-AA

Safety information

2

2.1

General safety information

WARNING
Electric shock and danger to life from other energy sources
Touching live parts can result in death or serious injury. · Only work on electrical devices when you are qualified for this job. · Always observe the country-specific safety rules.
Follow the steps below to ensure safety: 1. Prepare for shutdown. Notify all those who will be affected by the procedure. 2. Disconnect the drive system and ensure it cannot be switched back on. 3. Wait until the discharge time specified on the warning labels has elapsed. 4. Check there is no voltage between any power connections or between power
connections and the protective conductor connection. 5. Check whether the existing auxiliary supply circuits are de-energized. 6. Ensure that the motors cannot move. 7. Identify all other hazardous energy sources, for example, compressed air, hydraulic
systems, or water. Put all energy sources in a safe state. 8. Check that the correct drive system is completely locked.
After you have completed the work, restore the operational readiness in the inverse sequence.

WARNING
Electric shock with damaged devices
Improper handling of devices can result in damage.
For damaged devices, hazardous voltages can be present at the enclosure or at exposed components; if touched, this can result in death or severe injury. · Observe the limit values specified in the technical specifications during transport,
storage, and operation. · Do not use damaged devices.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

13

Safety information 2.1 General safety information
WARNING Unexpected movement of machines due to inactive safety functions Safety functions that are inactive or that have not been adjusted accordingly can cause operational faults on machines that could lead to serious injury or death. · Observe the information in the appropriate product documentation before
commissioning. · Carry out a safety inspection for functions relevant to safety on the entire system,
including all safety-related components. · Ensure that the safety functions used in your drives and automation tasks are adjusted
and activated through appropriate parameterizing. · Perform a function test. · Only put your plant into live operation once you have guaranteed that the functions
relevant to safety are running correctly.
WARNING Unexpected movement of machines caused by radio devices or cell phones When radio devices or cell phones with a transmission power > 1 W are used in the immediate vicinity of components, they may cause the equipment to malfunction. Malfunctions may impair the functional safety of machines and can therefore endanger people or lead to material damage. · If you come closer than approx. 2 m to such components, switch off any radio devices or
cell phones. · Use the "SIEMENS Industry Online Support App" only on equipment that has been
switched off.
WARNING Interference from pacemakers and implants from electromagnetic fields (EMF) Electromagnetic fields (EMF) are generated by the operation of electrical power equipment such as transformers, converters or motors. People with pacemakers or implants are at a special risk in the immediate vicinity of these devices/systems. · Ensure that the persons involved are the necessary distance away (minimum 2 m).

SIMATIC Drive Controller

14

System Manual, 11/2019, A5E46600094-AA

Safety information 2.1 General safety information
Electrostatic sensitive devices (ESD) are individual components, integrated circuits, modules or devices that may be damaged by either electric fields or electrostatic discharge.
NOTICE
Device damage caused by electrical fields or electrostatic discharge
Electric fields or electrostatic discharge can cause malfunctions through damaged individual components, integrated circuits, modules or devices. · Only pack, store, transport and send electronic components, modules or devices in their
original packaging or in other suitable materials, e.g conductive foam rubber of aluminum foil. · Only touch components, modules and devices when you are grounded by one of the following methods: ­ Wearing an ESD wrist strap ­ Wearing ESD shoes or ESD grounding straps in ESD areas with conductive flooring · Only place electronic components, modules or devices on conductive surfaces (table with ESD surface, conductive ESD foam, ESD packaging, ESD transport container).

2.1.1

Safety-relevant symbols
The following table contains an explanation of the symbols located in your SIMATIC device, its packaging or the accompanying documentation.

Symbol

Meaning General warning sign Caution/Notice You must read the product documentation. The product documentation contains information about the potential risks and enable you to recognize risks and implement countermeasures. Read the information provided by the product documentation. ISO 7010 M002
Ensure the device is only installed by electrically skilled person. IEC 60417 No. 6182
Note that connected mains lines must be designed according to the expected minimum and maximum ambient temperature.

Note that the device must be constructed and connected in accordance with EMC regulations.

Note that a 230 V device can be exposed to electrical voltages which can be dangerous.
ANSI Z535.2

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

15

Safety information 2.1 General safety information

Symbol

Meaning Note that a device of Protection Class III may only be supplied with a protective low voltage according to the standard SELV/PELV. IEC 60417-1-5180 "Class III equipment"
Be aware that the device is only approved for the industrial field and only for indoor use.

Note that an enclosure is required for installing the device. Enclosures are considered:
· Standing control cabinet · Serial control cabinet · Terminal boxes · Wall enclosure

SIMATIC Drive Controller

16

System Manual, 11/2019, A5E46600094-AA

Safety information 2.2 Residual risks of power drive systems

2.2

Residual risks of power drive systems

When performing the risk assessment for a machine or plant in accordance with the respective local regulations (e.g. EC Machinery Directive), the machine manufacturer or plant constructor must take into account the following residual risks associated with the control and drive components of a drive system:

1. Unintentional movements of driven machine or system components during commissioning, operation, maintenance and repairs caused by, for example:

­ Hardware and/or software errors in the sensors, control system, actuators, and cables and connections

­ Response times of the control system and of the drive

­ Operation and/or environmental conditions outside the specification

­ Condensation/conductive contamination

­ Parameterization, programming, cabling, and installation errors

­ Use of wireless devices / mobile phones in the immediate vicinity of electronic components

­ External influences/damage

­ X-rays, ionizing radiation and cosmic radiation

2. Unusually high temperatures, including open flames, as well as emissions of light, noise, particles, gases, etc., can occur inside and outside the components under fault conditions caused by, for example:

­ Component failure

­ Software errors

­ Operation and/or environmental conditions outside the specification

­ External influences/damage

3. Hazardous shock voltages caused by, for example:

­ Component failure

­ Influence during electrostatic charging

­ Induction of voltages in moving motors

­ Operation and/or environmental conditions outside the specification

­ Condensation/conductive contamination

­ External influences/damage

4. Electrical, magnetic and electromagnetic fields generated in operation that can pose a risk to people with a pacemaker, implants or metal replacement joints, etc., if they are too close

5. Release of environmental pollutants or emissions as a result of improper operation of the system and/or failure to dispose of components safely and correctly

For more information about the residual risks of the drive system components, see the relevant sections in the technical user documentation.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

17

Safety information 2.3 Security information

2.3

Security information

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.

In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.

Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.

For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).

Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.

To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

2.4

Unsafe operating states due to manipulation of software

WARNING
Unsafe operating states due to software manipulation
Software manipulation, for example viruses, Trojans, and malware, can cause unsafe operating states in your plant which may result in death, serious injury, and material damage. · Keep the software up-to-date. · Integrate the automation and drive components into a holistic, state-of-the-art Industrial
Security concept for the plant or machine. · Consider all of the products used in your holistic Industrial Security concept. · Use suitable protective measures such as virus scanners to protect the files on
removable media from malware. · Check all security settings when completing commissioning. · Set up access protection for the CPU. · Set up know-how protection for blocks (OB, FB, FC, global data blocks). · Protect the drive from unauthorized changes by enabling the "Know-how protection"
converter function.

SIMATIC Drive Controller

18

System Manual, 11/2019, A5E46600094-AA

System overview

3

3.1

What is the SIMATIC Drive Controller?

SIMATIC Drive Controller The SIMATIC Drive Controller is a drive-based controller in the SIMATIC S7-1500 range.
A SIMATIC Drive Controller combines the following functionalities in a SINAMICS S120 Booksize Compact enclosure:
 Failsafe SIMATIC S7-1500 technology CPU with integrated technology I/Os
 SINAMICS S120 automatic speed control
The two components are termed "CPU" and "SINAMICS Integrated" in this documentation.
The integrated SINAMICS S120 automatic speed control is based on a CU320-2 control unit and can control:
 A max. of 6 servo drives; or
 A max. of 6 drives with vector control; or
 A max. of 12 drives with U/f control
Two failsafe technology CPUs with graded performance are available. Safety Integrated at the CPU and drive end allow use in failsafe applications.
The SIMATIC Drive Controller supports communication over PROFINET and PROFIBUS DP.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

19

System overview 3.1 What is the SIMATIC Drive Controller?

3.1.1

Comparison of SIMATIC Drive Controller versions

SIMATIC Drive Controller performance classes
The SIMATIC Drive Controller contains a failsafe CPU from the SIMATIC S7-1500 family and SINAMICS S120 automatic speed control. Two graded performance classes are available.

Table 3- 1 Overview of performance classes

Performance class Small to mid-range applications High-performance applications

SIMATIC Drive Controller CPU 1504D TF CPU 1507D TF

Article number 6ES7615-4DF10-0AB0 6ES7615-7DF10-0AB0

Performance features of the CPUs
The SIMATIC Drive Controller differ in terms of the integrated CPU. The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation. The following table shows key performance features of the SIMATIC Drive Controller.

Table 3- 2 Overview of SIMATIC Drive Controller performance features

Feature Data work memory, max. Code work-memory, max. Retentive data area (including timers, counters, bit memories) Load memory/mass storage, max.
I/O address area, max. Integrated interfaces
SINAMICS Integrated Integrated inputs and outputs (onboard I/O) Configuration control CPU Web server

1504D TF 4 MB 2 MB 768 KB
32 GB (with SIMATIC Memory Card) 32/32 KB 1 x PROFINET IO IRT (3-port switch) 1 x PROFINET IO RT 1 x PROFINET basic services (1000 Mbps) 1 x PROFIBUS DP 2 x USB 3.01 4 x DRIVE-CLiQ on basis of CU320-2 CPU: 8 DI/DQ SINAMICS Integrated: 12 DI, 8 DI/DQ X X

1507D TF 20 MB 6 MB 768 KB
32 GB (with SIMATIC Memory Card) 32/32 KB 1 x PROFINET IO IRT (3-port switch) 1 x PROFINET IO RT 1 x PROFINET basic services (1000 Mbps) 1 x PROFIBUS DP 2 x USB 3.01 4 x DRIVE-CLiQ on basis of CU320-2 CPU: 8 DI/DQ SINAMICS Integrated: 12 DI, 8 DI/DQ X X

SIMATIC Drive Controller

20

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?

Feature Isochronous mode3
Technology Integrated

1504D TF PROFINET IO with IRT (X150) PROFIBUS DP (X126) SINAMICS Integrated Technology I/Os (X142) CPU: · Motion Control · PID control Onboard I/O: · Event/period measurement · Pulse width modulation (PWM) · Timer DI/DQ · Oversampling DI/DQ

1507D TF PROFINET IO with IRT (X150) PROFIBUS DP (X126) SINAMICS Integrated Technology I/Os (X142) CPU: · Motion Control · PID control Onboard I/O: · Event/period measurement · Pulse width modulation (PWM) · Timer DI/DQ · Oversampling DI/DQ

Number of positioning axes
Motion Control resources4 Extended Motion Control resources4 Security Integrated Integrated system diagnostics Integrated safety functionality Degree of protection

Typical2: 10 Maximum: 30 2400 120 X X X IP 20

Typical2: 55 Maximum: 160 12 800 420 X X X IP 20

1) No assigned function

2) With 4 ms Servo/IPO clock and 35% CPU load from Motion Control

3) Only PROFINET interface X150 can be operated isochronously with the clock system of SINAMICS Integrated and the X142 technology I/Os. Isochronous coupling of PROFIBUS interface X126 with other clock systems is not possible. Additional drive systems must therefore be connected over the PROFINET interface (for details, see section Setting the clock system (Page 150)).

4) For information on technology object resource requirements, see Technology functions of the CPU (Page 44) and S7-1500T Motion Control function manuals. (https://support.industry.siemens.com/cs/ww/en/view/109751049)

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

21

System overview 3.1 What is the SIMATIC Drive Controller?

3.1.2

Areas of application
The scalability of the SIMATIC Drive Controllers through several performance classes offers the required flexibility and scalability for a wide range of Motion Control applications in machine and plant engineering.
The SIMATIC Drive Controller have a wide range of communication interfaces, for example for implementing modular machine concepts and connecting HMI and I/O systems.
As the communication interfaces are available in all performance classes, you select the SIMATIC Drive Controller on the basis of CPU and Motion Control performance only.
The integrated technology CPU provides additional functions to the standard Motion Control and technology functions in the S7-1500 CPUs, such as:
 Extended synchronous operation and cam functionalities
 Kinematics functions
 Cross-PLC synchronous operation
The digital onboard I/O offer additional integrated technology functions, for example:
 Measuring inputs for fast, accurate and event-dependent acquisition of actual positions
 Outputs for output cams and cam tracks for position-dependent generation of switching signals
The failsafe design of the integrated technology CPU allows you to implement applications for safety systems. This enables seamless integration of machine safety into the SIMATIC Drive Controller. You use one system for both your standard and failsafe automation at the same time. This offers:
 Economics benefits
 Reliability
 Potential savings for hardware, engineering tasks and storage costs
You can expand the drive configuration limits of the SIMATIC Drive Controller over PROFINET, for example with SINAMICS S120 control unit CU320-2.

SIMATIC Drive Controller

22

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?
Applications and areas of application The integration of an S7-1500TF CPU and automatic speed control (SINAMICS Integrated) into a device makes a small, compact design possible. With graded performance and interface configuration, SIMATIC Drive Controller are optimized for production machines and plants with Motion Control. SIMATIC Drive Controller are used in applications with the SINAMICS S120 drive family, for example, because:  A highly dynamic, flexible multi-drive system is required: ­ Broad performance range ­ Comprehensive range of motors (including linear drive, external drives, etc.) ­ Comprehensive range of control processes (servo, vector, U/f) ­ Technology Extensions  Controlled supply/regeneration is required: ­ To avoid unwanted line harmonics ­ For a high level of ruggedness in the context of network fluctuations ­ For energy recovery in brake mode
SIMATIC Drive Controller are also used where:  Safety solutions for the protection of people and machines are necessary  A compact, space-saving design is required  High performance for Motion Control and rapid I/O is required  Modular machine concepts with rapid isochronous mode are required
Typical areas of application:  Multi-axis machines (for example printing and paper machines)  High-performance applications with short machine clocks (for example packaging
machinery and handling applications)  Compact machines in which there is limited room for the controller and drive system (for
example control cabinets in the machine base)  Distributed control and drive concepts  Synchronization of multiple SIMATIC Drive Controller with cross-PLC synchronous
operation  Safe monitoring of motion

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

23

System overview 3.1 What is the SIMATIC Drive Controller?
Example 1: Fast and flexible packaging Automation task: Development of a horizontal bagging machine with a speed of up to 120 packages per minute. Feature: The bagging machine allows the continuous packaging of individual solid products such as foodstuffs and commercial products. A quick changeover to new products must be possible. Scalability and cost efficiency is paramount in the automation solution. Solution: A SIMATIC Drive Controller uses the technology functions to control gear and cam synchronous operation for multiple axes. Necessary input and output signals such as print mark correction, slip compensation, distance detection and product detection are controlled by the integrated technology I/Os of the SIMATIC Drive Controller. Other inputs and outputs, for example for temperature acquisition, are available over the ET 200SP distributed I/O system.

Figure 3-1 Example: Packaging machine
Benefits  High-performance solution for optimal product quality and high machine throughput  Compact, scalable solution  Format change at the touch of a button

SIMATIC Drive Controller

24

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?
Example 2: Printing machine Automation task: Development of a modular, fully automated printing machine with scalable performance to continue to ensure efficient production and cover a wide range of products in future. Feature: Modular solution, for example for winder/feed, printing mechanisms and drying. The individual machine modules are synchronized over a virtual leading axis. Solution: The modular solution is based on multiple machine modules, each of which is implemented with a SIMATIC Drive Controller and if necessary additional SINAMICS S120 CU320-2. Cross-PLC synchronous operation on the basis of PROFINET IO with IRT is used for synchronization of the axes.

Figure 3-2 Example: Printing machine

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

25

System overview 3.1 What is the SIMATIC Drive Controller?
Benefits  Short machine setup times  Scalable solution covers a wide performance range  Perfect synchronous operation across modules ensures the best possible product quality
high throughput
Advantages and customer benefits The use of SIMATIC Drive Controllers offers the following advantages:  Only one device for standard, safety and comprehensive Motion Control automation including automatic speed control  Comprehensive range of interfaces, integrated bottom to top performance range  Onboard technology I/Os save on additional hardware  Eight digital outputs configurable as high-speed outputs; for ultra-short output delays and maximum switching accuracy  Simple handling with lower cabling and installation costs  Simple configuration in the STEP 7 hardware configuration  Simple and efficient commissioning and optimization of drives using the engineering tool SINAMICS Startdrive in the TIA Portal  Automatic alignment of the technological variables via the technology objects between controller and drive; reduced engineering, commissioning and service times  Central data management with a memory card (SIMATIC Memory Card) for controller and drive  Central license handling in the TIA Portal for CPU and SINAMICS Integrated

SIMATIC Drive Controller

26

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?

3.1.3

Plant components and automation levels

Plant components and automation levels
SIMATIC Drive Controller are used in particular in production automation and Motion Control applications for smaller to high-end machines. The combination of SIMATIC S7-1500 CPU and integrated SINAMICS S120 automatic speed control offers powerful and flexible automation solutions that cover all ranges of Motion Control applications:
 The process signals are connected to the central master computer via fieldbus.
 The SIMATIC Drive Controller is integrated consistently in the various automation levels through communication standards.
 The SIMATIC Drive Controller controls SINAMICS Integrated over the integrated drive and the axis group over the comprehensive range of SINAMICS S120 power units (Line Modules and Motor Modules).
 Motors with a DRIVE-CLiQ interface facilitate commissioning and diagnostics.
 You connect motors without a DRIVE-CLiQ interface, for example external motors or motors for retrofit applications, over Sensor Modules Cabinet-Mounted (SMC) or Sensor Modules External (SME). Terminal Modules (TM) are terminal expansions over DRIVECLiQ ­ for example for drive digital or analog inputs and outputs.
 The F-CPU integrated in the SIMATIC Drive Controller ensure failsafe processes.
 Technology I/Os are already integrated in the SIMATIC Drive Controller . If required, you can expand the SIMATIC Drive Controller with technology modules in the ET 200MP and ET 200SP distributed I/O systems.
 SIMATIC Drive Controller are intended for installation in a control cabinet with IP20 degree of protection

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

27

System overview 3.1 What is the SIMATIC Drive Controller?
The schematic diagram below shows the key components of a system with SIMATIC Drive Controller from the management level to the control level and field level.

Figure 3-3 Example: SIMATIC Drive Controller at management, control and field level

3.1.4

Scalability
SIMATIC Drive Controller offer the required flexibility and performance for a wide range of controller applications in machine and plant engineering.

Scaling with performance class
To meet your machine and plant planning requirements, the SIMATIC Drive Controller can be scaled in terms of CPU and Motion Control performance and configuration limits (program and data memory and Motion Control resources).
The comprehensive networking options over PROFINET and PROFIBUS DP are the same for all versions. This means that you can scale simply by CPU performance ­ without affecting the available interfaces and thus your machine and plant topology.

SIMATIC Drive Controller

28

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?
Scaling with drive configuration limits SINAMICS S120 automatic speed control is integrated in all versions of the SIMATIC Drive Controller. It can control.  A max. of 6 servo drives; or  A max. of 6 drives with vector control; or  A max. of 12 drives with U/f control You can expand the drive configuration limits of a SIMATIC Drive Controller, for example with SINAMICS S120 (CU320-2) or SINAMICS S210 (for example for individual drives). In this case, the CPU axis technology objects execute the Motion Control functions for the SINAMICS Integrated drives and drives connected externally. The maximum axis configuration limits are limited at the CPU side by the available Motion Control resources.

Figure 3-4 Example: Plant configuration with SIMATIC Drive Controller, SINAMICS S120 and SINAMICS S210
In principle, you can connect any drives that:  Support the standardized profile for PROFIdrive drive technology  Support the PROFIdrive frames possible with SIMATIC S7-1500 You can find additional information in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049).
Note Computing performance at the drive cannot be increased with a SIMOTION CX32-2 Controller Extension for SIMOTION D4x5-2 control units.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

29

System overview 3.1 What is the SIMATIC Drive Controller?
Scaling with modularization Modular machine concepts offer many advantages, such as standardization, flexibility and scalability. A production line that consists of multiple machine modules each with a controller and drives requires synchronization of the drives. SIMATIC Drive Controller have the cross-PLC synchronous operation functionality. CrossPLC synchronous operation allows you to implement synchronous operation across devices. This allows you to split axis configuration limits between multiple CPUs or implement modular machine concepts. In modular machine concepts, you can distribute the functionality between multiple machine modules, each with its own controller. You can distribute the master value source and synchronous axes between the various controllers. Coupling between the master axis/an external encoder and the following axis is isochronous via PROFINET IO with IRT. The clocks of the axes are synchronized.

Figure 3-5 Example: Modular machine concept with SIMATIC Drive Controller and cross-PLC synchronous operation

Scaling with technology I/Os and technology modules
The integrated eight digital input/outputs (interface X142) provide configurable technology I/Os.
Of the integrated eight digital input/outputs of the SINAMICS Integrated (interface X122/132), you can also use eight digital inputs as measuring inputs.
To expand the integrated technology I/Os high-performance technology modules in the ET 200MP and ET 200SP distributed I/O systems, for example for additional measuring inputs and output cam outputs.
Information on technology objects for measurement sensing inputs and output cam outputs can be found in the section Technology functions of the CPU (Page 44).

SIMATIC Drive Controller

30

System Manual, 11/2019, A5E46600094-AA

System overview 3.1 What is the SIMATIC Drive Controller?

3.1.5

Overview of features

SIMATIC Drive Controller
The SIMATIC Drive Controller combines a failsafe SIMATIC S7-1500 technology CPU with integrated technology I/Os and SINAMICS S120 automatic speed control in one compact enclosure. Performance grading, a range of interfaces, and technology functions are optimized for production machines and plants with Motion Control.

Important properties and functions

Figure 3-6 Overview of SIMATIC Drive Controller properties and functions

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

31

System overview 3.2 Configuration

3.2

Configuration

Configuration

A system with SIMATIC Drive Controller comprises the following components:  Power supply for SIMATIC Drive Controller and DRIVE-CLiQ components  SIMATIC Drive Controller  SINAMICS S120 power units:
­ Line Module ­ Motor Modules  Sensor Modules (SMx)  Terminal Modules (TM)  Motors with/without DRIVE-CLiQ

SIMATIC Drive Controller

32

System Manual, 11/2019, A5E46600094-AA

Configuration example

System overview 3.2 Configuration

 HMI device  SIMATIC Drive Controller  Line Module  SINAMICS S120 Double Motor Module  SINAMICS S120 Single Motor Module  SIMOTICS S servomotor  SINAMICS Terminal Module  SINAMICS Sensor Module Cabinet-Mounted
Figure 3-7 Example: SIMATIC Drive Controller installation in a plant

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

33

System overview 3.3 SIMATIC Drive Controller functions

3.3

SIMATIC Drive Controller functions

3.3.1

Safety

SIMATIC Safety Integrated of the integrated F-CPU
For failsafe operation of your plant, program the F-CPUs of the SIMATIC Drive Controller. Use the "STEP 7 Safety Advanced" of the TIA Portal for this purpose. In combination with the TIA Portal, the F-CPU offers optimal integration of failsafe systems into your engineering environment; one controller, one communication system and one engineering platform for standard and failsafe automation:
 Integration of safety technology
 Instructions approved by German Technical Inspectorate for frequently required safety applications
 Integration of safety functions up to SIL 3 in accordance with IEC 61508, SILCL 3 in accordance with IEC 62061 and/or PL e and Category 4 in accordance with ISO 13849-1
 Uniform engineering for standard and safety automation
 Simple documentation of safety-related changes via the F change history in STEP 7 Safety
 Support in the acceptance of the safety program and no renewed acceptance of the safety program after changes in the standard program

Advantages and customer benefits
Safety Integrated offers the following advantages:
 Engineering with SIMATIC STEP 7 Safety Advanced in the TIA Portal, same engineering and operating concept for standard and failsafe automation task
 Use of instructions approved by the German Technical Inspectorate from the system library Safety in the safety program, for example for protective door, emergency stop, monitored feedback loop circuit and user acknowledgment; saves time and reduces the error rate
 Simple connection of PROFIsafe devices via PROFINET and PROFIBUS
 Additional password protection for F-CPU and safety program for IT security.
 Integration in integrated system diagnostics

SIMATIC Drive Controller

34

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions
Safety functionality SINAMICS Integrated SINAMICS Integrated of the SIMATIC Drive Controller supports the same Safety Integrated functions as SINAMICS S120 CU320-2:  Safety Integrated Basic Functions  Safety Integrated Extended Functions  Safety Integrated Advanced Functions One license is required for each axis to be operated with Safety Integrated Extended/Advanced Functions. You can find more information in Runtime licensing (Page 203). The safety functions correspond to the functions pursuant to EN 61800-5-2 (if and to the extent that they are defined therein). The maximum achievable safety class of the SINAMICS Integrated safety functions is SIL 2 according to EC 61508 or PL d according to ISO 13849-1.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

35

System overview 3.3 SIMATIC Drive Controller functions
Example: Production cell with access protection Automation task: A laser scanner monitors access to a production area. The maintenance area is secured by a protective door. Entering the production area or opening the protective door, just like an emergency stop, results in the shutdown or stopping of the production cell.

 Emergency stop  Laser scanner  Protective door  Control panel with start and acknowledgment key
Figure 3-8 Production cell with access protection
Feature:
Start-up of the system is only possible with unlocked emergency stop, closed protective door and free protection area of the laser scanner. After activating the emergency stop, opening the protective door or addressing the protection area, a user acknowledgement is required to restart production operations again. Access protection to the F-CPU and the safety program is essential for productive operation.
Solution:
Use of a SIMATIC Drive Controller with SINAMICS Integrated and failsafe modules in the ET 200SP distributed I/O system on the PROFINET IO.
Programming is done in the TIA Portal. The CPU of the SIMATIC Drive Controller runs a machine application with motion control and a safety program.
The ET 200SP F modules are used to connect emergency stop, protective door monitoring, access area monitoring and user acknowledgement. When the safety function is triggered (e.g. opening the protective door), the programmed stop reaction is triggered for the drives in the production cell.

SIMATIC Drive Controller

36

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions

Advantages

SIMATIC Safety Integrated provides you with the following advantages:
 Engineering with SIMATIC STEP 7 Safety Advanced in the TIA Portal, same engineering and operating concept for standard and failsafe automation task
 Use of instructions approved by the German Technical Inspectorate from the system library Safety in the safety program, for example for protective door, emergency stop, monitored feedback loop circuit and user acknowledgment; saves time and reduces the error rate
 Simple connection of PROFIsafe devices via PROFINET and PROFIBUS
 Convenient configuration of the drive-side safety technology with SINAMICS Startdrive (with Startdrive Advanced including integrated safety acceptance test to facilitate the necessary documentation)
 Additional password protection for F-CPU and safety program for IT security
 Integration in integrated system diagnostics

Additional information
You can find a detailed description of F-CPU configuration and programming in the SIMATIC Safety ­ Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126) programming and operating manual.
You can find a detailed description of the SINAMICS S120 Safety Integrated functions in the SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/us/en/view/109763287) function manual and the SINAMICS S120 Safety Integrated (https://support.industry.siemens.com/cs/ww/en/view/109763292) function manual.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

37

System overview 3.3 SIMATIC Drive Controller functions

3.3.2

Security
Security means the protection of technical systems against sabotage, espionage and human error.

Protection functions
For the setup of secure networks, the SIMATIC Drive Controller offers an integrated security concept from authorization levels to block protection:

Table 3- 3 Overview of protection functions

Protection function Access protection Know-how protection Copy protection CPU lock

Description
Protection against unauthorized configuration changes through four authorization levels and an integrated firewall
Protection against unauthorized access and modifications to algorithms by means of password protection
Protection against duplication of programs by linking individual blocks to the serial number of the original memory card on the SIMATIC memory card
Protection against unauthorized access by locking the front cover with a seal or a lock

Access protection example
You can choose from four different access levels in the TIA Portal to restrict user access to functions and memory areas.

Figure 3-9 Access protection
If you only want to allow users access over HMI, for example, select the access level "HMI access" in the TIA Portal. Only HMI access and access to diagnostics data is then possible without entering a password. Users can read and write tags over an HMI device with this access level. Users cannot:  Download blocks or the hardware configuration to the CPU  Upload blocks or the hardware configuration from the CPU to the PG/PC  Run writing test functions  Change the operating state from the PG/PC  Run CPU firmware updates

SIMATIC Drive Controller

38

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions
Advantages and customer benefits of protection functions The protection functions listed above protect your investments from unauthorized access and manipulation, helping to secure plant availability.
Secure Communication There is an increasing need to transfer data to external computers in encrypted form via Intranet or public networks. SIMATIC Drive Controller support the Internet PKI (RFC 5280) with STEP 7. This allows the configuration and operation of Secure Communication, for example:  Hypertext Transfer Protocol Secure (HTTPS)  Secure Open User Communication  Secure Communication with OPC UA A public key infrastructure (PKI) can issue, distribute and check digital certificates. For SIMATIC Drive Controller , you create certificates for various applications in the CPU properties in STEP 7, for example: TLS certificates for Secure Open User Communication, Web server certificates, and OPC UA certificates.
Further information You can find further information on the protection functions described in Protection (Page 170) and in the STEP 7 online help. Siemens products and solutions are only one element of a comprehensive industrial security concept. Please note the additional information on Industrial Security (https://www.siemens.com/industrialsecurity).
Note Please also note the security information in the SINAMICS S120 documentation (https://support.industry.siemens.com/cs/ww/en/ps/13231/man).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

39

System overview 3.3 SIMATIC Drive Controller functions

3.3.3

Web server
The SIMATIC Drive Controller have an integrated Web server.
You can display the CPU status via a Web browser without installing additional software and to a limited extent control it. Graphic displays of process variables and user-defined websites facilitate information acquisition and the diagnosis of plant states.

Figure 3-10 Home page web server
Note SINAMICS Integrated of the SIMATIC Drive Controller does not have its own Web server.

SIMATIC Drive Controller

40

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions
Example: Web server facilitates commissioning and local diagnostics for standard machines Automation task: Implementation of a user interface for commissioning and calibrating test benches. Feature: When standard machines are commissioned, parameters often need to be set once for setup, for example in line with the place of installation or purpose. Examples of such parameters include machine runtime program parameters in the CPU. The operator also requires easy access to the SIMATIC Drive Controller for rapid local diagnostics in the event of an error. Solution: Creation of user sites for the Web server of a SIMATIC Drive Controller. The customer can make the machine settings themselves over these websites without PG/PC, for example adjust the calibration parameters or change the formats. In the event of an error, rapid initial diagnostics is possible over the integrated Web pages of the SIMATIC Drive Controller without the need for the engineering project.
Advantages and customer benefits The Web server provides the following advantages:  Access via Web browsers to a SIMATIC Drive Controller with plant-related operating data  Display of service and diagnostics information over large distances  Access restrictions for unauthorized users
Further information A detailed description of handling the Web server can be found in the SIMATIC S7-1500 Web Server Function Manual (https://support.industry.siemens.com/cs/ww/en/view/59193560).

3.3.4

Trace
The SIMATIC Drive Controller has an integrated Trace functionality for the effective commissioning and optimization of drives and controllers. The Trace function is available for the integrated CPU and SINAMICS Integrated.
The trace function records the following in line with the adjustable trigger conditions:
 CPU tags in the CPU Trace
 Drive parameters in the SINAMICS Integrated Trace
By visualizing the entire process with real-time Trace, you can identify sporadic events in the system during commissioning and service, for example.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

41

System overview 3.3 SIMATIC Drive Controller functions
Example: Signal response analysis To analyze a specific signal response, you define the recording and trigger conditions for the signals for recording.
 The Trace function can be called in the project tree in the "Traces" folder:
 For the CPU, under the CPU of the SIMATIC Drive Controller  For the SINAMICS Integrated, under the drive unit of the SIMATIC Drive Controller
The trend diagram  displays the selected signals of a recording. Digital signals are
displayed as bit track in the lower diagram.
The signal table  lists the signals of the selected measurement and provides setting
options for specific properties.



Trace recordings in the project tree



Trend diagram



Signal table

Figure 3-11 Trace recording for the CPU

42

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions

Example: Trace optimizes the commissioning of packaging machines
Automation task:
At what speed does a plant reach its maximum productivity? How do you quickly determine the optimum settings?
The packaging machine ensures quick and reliable packaging of ECG electrodes on a rotary table which is loaded and unloaded by a conveyor belt.
Feature:
After filling, the issue is the correct time for further transport of the packages electrodes. To this end, light barriers trace the position of the electrodes.
Solution:
The Trace function of a SIMATIC Drive Controller shows the exact sequence of selected signals over a short period of time. It helps the start-up engineer find the exact light barrier positions and the optimum speed for belts and the rotary table.
The trace recordings are supplied to the customer as part of the plant project. In the event of a fault, the customer can see whether changes to the basic settings have caused the fault.
The trace recordings in the CPU trace can also be stored as a "measurement" on the SIMATIC Memory Card; up to 999 trace recordings are available for evaluation.

Advantages

The Trace function provides the following advantages:  A uniform standard for tag analysis that allows even sporadic errors to be located rapidly  Cost-effective and easy evaluation as the signals are available in the CPU  Monitoring of highly dynamic processes  Cycle-by-cycle recording:
­ Of up to 16 different signals and up to 8 separate trace jobs in the CPU trace simultaneously
­ Of up to 8 different signals and up to 2 separate trace jobs in the SINAMICS Integrated trace simultaneously
 Storage of the CPU trace recordings in a separate memory area for easy localization of sporadic errors
 Various trigger options  Various zoom and cursor measuring functions  Storage of CPU trace recordings on the SIMATIC Memory Card  Trace recordings can be evaluated on the SIMATIC Memory Card over SIMATIC Drive
Controller Web servers  Export of trace recordings, for example for user-specific processing

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

43

System overview 3.3 SIMATIC Drive Controller functions

Project Trace

A project trace contains trace configurations of multiple CPUs. A project trace records the signals across CPUs if the CPUs are connected to each other via PROFINET.
A global trigger that can be activated by each CPU is used for synchronization. After receiving the global trigger, the CPUs with a valid project trace configuration start recording.

Additional information
You can find information on how to save trace recordings for the CPU without the TIA Portal in the section Data transfer with SIMATIC Memory Cards (Page 237).
A detailed description of the "Trace" function is available in the SIMATIC/SINAMICS Using the Trace and Logic Analyzer Function function manual (https://support.industry.siemens.com/cs/ww/en/view/64897128) and in the SINAMICS S120 with Startdrive commissioning manual (https://support.industry.siemens.com/cs/ww/en/view/109763294).

3.3.5

Technology functions of the CPU
The CPU of the SIMATIC Drive Controller has Motion Control technology objects and a modular S7-1500T CPU.
You can control PROFIdrive-capable drives with Motion Control instructions in accordance with PLCopen.

Motion Control technology objects
The following table shows the technology objects that support the SIMATIC Drive Controller. They occupy Motion Control resources or Extended Motion Control resources in the CPU.

Table 3- 4 Technology objects

Technology objects Speed axis Positioning axis Synchronous axis External encoder Measuring input Output cam Cam track Cams Kinematics Leading axis substitute

Resource requirements per technology object 40 80 160 80 40 20 160 2* 30* 3*

*Occupy Extended Motion Control resources in the CPU

SIMATIC Drive Controller

44

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions
Motion Control technology functions The following table shows the technology functions supported by SIMATIC Drive Controller .
Table 3- 5 Motion Control technology functions
SIMATIC Drive Controller technology functions Enable, disable technology objects Acknowledge alarms, restart technology object Reference technology objects, set reference point Halt axis Position axis absolutely Position axis relatively Move axis at set velocity/speed Move axis in jog mode Position axis overlapping Set alternative encoder as operationally active encoder Halt and disable axis Enable/disable hardware limit switch Control bits of control word 1 and 2 Start one-time measuring Start cyclic measuring Abort active measuring Enable/disable output cam Enable/disable cam track Start gearing Start gearing with specified synchronous positions Absolute shift of master value on the following axis Relative shift of master value on the following axis Start camming Simulate synchronous operation Specify additive master value Interpolate cam Read out slave value of a cam Read master value of a cam Specify motion setpoints Enable and disable force/torque limit / fixed stop detection Specify additive torque Specify upper and lower torque limits Interrupt Motion Control of kinematics Continue Motion Control of kinematics Stop motion of kinematics Position kinematics with linear path motion Relative positioning of kinematics with linear path motion

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

45

System overview 3.3 SIMATIC Drive Controller functions

PID control

SIMATIC Drive Controller technology functions Position kinematics with circular path motion Relative positioning of kinematics with circular path motion Absolute travel of kinematics with synchronous "point-to-point" movement Relative travel of kinematics with synchronous "point-to-point" movement Start belt monitoring Define workspace zones Define kinematics zones Activate workspace zones Deactivate workspace zones Activate kinematics zones Deactivate kinematics zones Re-define tool Change active tool Redefine object coordinate systems Transform axis coordinates to Cartesian coordinates Transform Cartesian coordinates to axis coordinates

PID compact controllers are integrated as standard in all S7-1500 CPUs. In your application, the PID controller adjusts a physical setpoint and stabilizes it against interferences at the same time. You can use different PID controllers depending on your application. All controllers support the following functions:
 Manageable configuration screens
 Automatic determination of the controller parameters
 Commissioning screens with integrated Trace

Table 3- 6 PID controller versions
PID controller PID Compact PID 3step PID Temp

Description
Continuous PID controller Step controller for integrating actuators Temperature controller for heating and cooling with two separate actuators

SIMATIC Drive Controller

46

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions

Technology function of the onboard I/O
The eight digital input/outputs of the SIMATIC Drive Controller provide the following technology function at the X142 interface:

Table 3- 7 Technology I/Os of the CPU at interface X142

Operating mode DI DQ Timer DI Timer DQ Oversampling DI
Oversampling DQ
Event/period measurement
Pulse width modulation (PWM)

Function

Application

Digital input

Used as hardware limit switch, for example

optional: Hardware interrupt upon rising and/or falling edge

Digital output

Used to control an indicator light, for example

Acquisition of the switching time of a digital input signal with up to two edges per cycle (OB91/OB6x)

Used as the input of a measuring input, for example

Precise output of a digital output signal with Used as an output cam output, for example up to two edges per cycle (OB91/OB6x)

Acquisition of 32 states of a digital input signal at equal intervals per cycle (OB91/OB6x)

Detection of short signal levels that are shorter than the position control cycle or isochronous mode interrupts.

Used, for example, to detect a fast-traveling product with a proximity switch or light barrier

Output of 32 states for a digital output signal at equal intervals per cycle (OB91/OB6x)

Output of short signal levels that are shorter than the position control cycle or isochronous mode interrupts.

Used, for example, to control the output of short pulses or pulse trains, for example to control a glue valve for applying dots of glue.

Measurement of number of edges and period Simple speed measurement with shadow

max. counting frequency 32 kHz

mask and light barrier

Period measurement

Counter (rising edges)

Output of a selectable pulse-pause ratio with a configurable base frequency of: 1 kHz, 2 kHz, 4 kHz, 8 kHz, 16 kHz

Output of a signal with a defined period and variable on-load factor
Used, for example, to control proportional valves and directional valves (energy savings through reduction in holding current).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

47

System overview 3.3 SIMATIC Drive Controller functions
High-speed outputs
For short pulses and maximum output accuracy, configure the digital outputs at interface X142 as high-speed outputs.
The digital outputs are then operated as rapid push/pull switches, which are switched alternately to 24 V DC and ground. This enables very steep edges and extremely short output delays.
Digital outputs as high-speed outputs are particularly suited to the operating modes timer DQ, oversampling DQ and pulse width modulation (PWM).
Note Notes on interconnection
When you use the digital outputs at the X142 interface as high-speed outputs, the currentcarrying capacity is reduced from 0.5 A to 0 4 A. Please note also the information on input interconnection for high-speed outputs in the SIMATIC Drive Controller manual (https://support.industry.siemens.com/cs/ww/en/view/109766666).

Expansion of technology functions with technology modules
For technological tasks, powerful distributed technology modules are also available that operate largely autonomously and reduce the load on the CPU.

Table 3- 8 Technology modules ET 200SP and ET 200MP

Technology module

Article number

ET 200SP Distributed I/O System

TM Count 1x24 V

6ES7138- 6AA00-0BA0

TM PosInput 1

6ES7138-6BA00-0BA0

TM Timer DIDQ 10x24 V

6ES7138-6CG00-0BA0

TM Pulse 2x24 V SIWAREX WP321

6ES7138-6DB00-0BB1 7MH4138-6AA00-0BA0

Description

Manual

Counter module 1 channel for 24 V in- ET 200SP TM Count cremental or pulse encoder, 3 DI, 2 DQ 1x24V

Module for count and position acquisition ET 200SP TM PosInfor RS-422 incremental encoder or SSI put 1 absolute encoder, 2 DI, 2 DQ

Time-controlled digital inputs and digital outputs, 4 DI and 6 DQ with time stamp, count function, pulse width modulation, oversampling

ET 200SP TM Timer DIDQ 10x24 V

Pulse width modulation and pulse output, 2 channels 2 A for proportional valves and DC motors

ET 200SP TM Pulse 2x24V

Weighing electronics 1 channel

SIWAREX WP321

Acquisition and processing of signals from weighing or force sensors with high precision

SIMATIC Drive Controller

48

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions

Technology module

Article number

ET 200MP Distributed I/O System

TM Count 2x24V

6ES7550-1AA00-0AB0)

TM PosInput 2

6ES7551-1AB00-0AB0

TM Timer DIDQ 16x24 V

6ES7552-1AA00-0AB0

TM PTO 4
SIWAREX WP521 ST SIWAREX WP522 ST

6ES7553-1AA00-0AB0
7MH4 980-1AA01 7MH4 980-2AA01

Description

Manual

Counter module 2 channels for 24 V incremental or pulse encoder, 3 DI and 2 DQ per channel

S7-1500 TM Count 2x24 V

Module for count and position acquisition S7-1500 TM PosInput for RS-422 incremental encoder or SSI 2 absolute encoder, 2 channels, 2 DI and 2 DQ per channel

Time-controlled digital inputs and digital outputs, max. 8 DI, 16 DQ, of which max. 16 with time stamp, count function, pulse width modulation, oversampling

ET 200MP/S7-1500 TM Timer DIDQ 16x24 V

Interface module for stepper drives, 4 S7-1500/ET 200MP channels, pulse train output (PTO): 24 V, TM PTO 4 2 DI and 1 DQ 24 V DC per channel

Weighing electronics 1 channel (WP521 SIWAREX

ST) or 2 channels (WP522 ST)

WP521/WP522

Acquisition and processing of signals from weighing or force sensors with high precision

Additional information
You can find additional information on the technology functions of the CPU in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

49

System overview 3.3 SIMATIC Drive Controller functions

3.3.6

SINAMICS Integrated functions
The automatic speed control integrated in SIMATIC Drive Controller is based on the automatic speed control of the SINAMICS S120 control unit CU320-2 (firmware version V5.x).
SINAMICS Integrated provides a functional subset of the SINAMICS S120 CU320-2 drive functions relevant in a control context. You can find details at the end of the section under "Unsupported functions and components".
The integrated automatic speed control supports:
 Servo control, for maximum dynamic response
 Vector control, for maximum torque accuracy
 U/f control
You can expand the drive configuration limits of the SIMATIC Drive Controllers via PROFINET IO IRT, for example with SINAMICS S120 control unit CU320-2.

Safety functionality of SINAMICS Integrated
SINAMICS Integrated of the SIMATIC Drive Controller supports the same Safety Integrated functions as SINAMICS S120 CU320-2:
 Safety Integrated Basic Functions
 Safety Integrated Extended Functions
 Safety Integrated Advanced Functions
The safety functions correspond to the functions pursuant to EN 61800-5-2 (if and to the extent that they are defined therein).

Supported licensed SINAMICS functions SINAMICS Integrated supports the following licensed functions of a SINAMICS S120 CU320-2 only:  SINAMICS Lizenz Safety Integrated Extended Functions  SINAMICS Lizenz Safety Integrated Advanced Functions  SINAMICS Technology Extension VIBX - Schwingungstilger  SINAMICS Technology Extension RAILCTRL - Rail Control/Multi-Carrier-System

PROFIdrive Integrated
Cyclic communication between CPU and SINAMICS Integrated is based on PROFIdrive mechanisms.
The communications services used are based on PROFIBUS DP and are processed over an internal, high-performance interface.

SIMATIC Drive Controller

50

System Manual, 11/2019, A5E46600094-AA

System overview 3.3 SIMATIC Drive Controller functions
Unsupported functions and components SINAMICS Integrated provides a functional subset of the SINAMICS S120 CU320-2 drive functions relevant in a control context. The following functionalities/components are not supported by the SIMATIC Drive Controller:  Basic positioner (EPOS) function module  Integrated drive logic processing with Drive Control Chart (DCC)  Drive control block (DCB)  Free function blocks (FBLOCKS)  SINAMICS Web server  SIMOTION-specific or SINUMERIK-specific DRIVE-CLiQ components (for example Terminal Module TM17, Hydraulic Drive HLA, Controller Extension CX32-2, Numeric Control Extensions NX10.3/NX15.3)  Expansion boards, for example TB30, CBE20, CBE30-2
Note Use of SINAMICS S120 CU320-2 control units Additional CU320-2 control units on the SIMATIC Drive Controller offer the full range of functions, unlike SINAMICS Integrated.
Additional information You can find a detailed description of the functions of SINAMICS S120 CU320-2 in the SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/us/en/view/109763287) function manual.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

51

System overview 3.4 Integrated interfaces for communication

3.4

Integrated interfaces for communication
Interfaces for communication over PROFINET and PROFIBUS DP are integrated in the SIMATIC Drive Controller. The following communications options are available for your automation task:

Table 3- 9 SIMATIC Drive Controller communication options

Communication option PG communication for commissioning, testing and diagnostics HMI communication for operator control and monitoring Data exchange with TCP/IP, UDP, ISO-on-TCP, ISO protocol Data exchange via OPC UA as server Data exchange via OPC UA as client Direct data exchange between IO controllers Communication via Modbus TCP Communication via UDP Multicast Sending process alarms via e-mail S7 communication S7 routing Web server of the CPU Data exchange via HTTP(S), for example for diagnostics SNMP (Simple Network Management Protocol) Time-of-day synchronization Connection to the clock system of the technology I/Os X142 and to the SINAMICS Integrated

PN

DP

X

X

X

X

X

-

X

-

X

-

X

-

X

-

X

-

X

-

X

X

X

X

X

-

X

-

X

X

X

-

The SIMATIC Drive Controller also has two USB interfaces 3.0. These do not currently have an assigned function.

Further information
You can find more information on communication options in the Communication Function Manual (https://support.industry.siemens.com/cs/ww/en/view/59192925).

SIMATIC Drive Controller

52

System Manual, 11/2019, A5E46600094-AA

System overview 3.5 DRIVE-CLiQ

3.5

DRIVE-CLiQ

SINAMICS Integrated has 4 DRIVE-CLiQ interfaces. For each DRIVE-CLiQ interface, you have 24 V/450 mA for connecting encoders and measuring systems.

You can connect all components of SINAMICS Integrated including the motors and encoders over the common DRIVE-CLiQ interface.

DRIVE-CLiQ implements a high-performance point-to-point connection for internal drive communication between the various drive components.

The DRIVE-CLiQ interfaces of the SIMATIC Drive Controller are, for example, used for:

 Connecting the power units (Line Module, Motor Modules) to the automatic speed control of SINAMICS Integrated

 Connecting motors with DRIVE-CLiQ interface to the Motor Modules

 Connecting encoder systems over Sensor Modules Cabinet-Mounted (SMC) or Sensor Modules External (SME)

 Addition of drive I/Os using Terminal Modules (TM)

Over the DRIVE-CLiQ interface, SINAMICS Integrated detects all connected drive components after switch-on. During operation, cyclical drive-related data is exchanged with the drive components on an isochronous basis, for example parameters and diagnostics data.

Advantages and customer benefits
DRIVE-CLiQ provides the following advantages:
 Automatic detection of the connected components reduces commissioning work
 Standardized cables and connectors reduce the variety of different parts and cut storage costs.
 Consistent diagnostics through to the drive components
 Encoder evaluations for converting standard encoder signals to DRIVE-CLiQ are available for third-party motors or retrofit applications.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

53

System overview 3.6 Power supply

3.6

Power supply

SIMATIC Drive Controller supply For the SIMATIC Drive Controller, use an external 24 V power supply, for example from the SITOP range (https://mall.industry.siemens.com/mall/en/WW/Catalog/Products/10008864) (SITOP smart or SITOP modular).
Supply of the SINAMICS S120 drive modules The SINAMICS S120 drive components are supplied over a SINAMICS Line Module. Line Modules generate direct voltage from the line voltage and supply energy to the Motor Modules through the DC link. Optionally, Line Modules with controlled supply/regeneration ensure a constant DC-link voltage and high grid compatibility. Motor Modules supply the motors with power from the DC link.

SIMATIC Drive Controller

54

System Manual, 11/2019, A5E46600094-AA

3.7
3.7.1

Software

System overview 3.7 Software

TIA Portal
The SIMATIC Drive Controller are integrated in the Totally Integrated Automation portal. Engineering with TIA Portal offers:  Configuration and programming  Shared data management  A uniform operating concept for control, visualization and drives The TIA Portal simplifies integrated engineering in all configuration phases of a plant.

Figure 3-12 TIA Portal overview

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

55

System overview 3.7 Software

3.7.2

SINETPLAN
SINETPLAN (https://www.siemens.com/sinetplan), the Siemens Network Planner, helps you plan automation systems and networks based on PROFINET. The tool facilitates the professional and predictive dimensioning of your PROFINET system right from the planning stage. SINETPLAN also assists with network optimization and helps you to make the best possible use of network resources and to plan for reserves. This allows you to avoid problems in commissioning and failures during productive operation even before planned use. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance:
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning with the import and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and the optimal use of resources

3.7.3

PRONETA
Siemens PRONETA (PROFINET network analysis) allows you to analyze the plant network during commissioning. PRONETA features two core functions:  The topology overview independently scans PROFINET and all connected components.  The IO check is a rapid test of the wiring and the module configuration of a plant.
Siemens PRONETA (https://support.industry.siemens.com/cs/ww/en/view/67460624) is available for free on the Internet.

3.7.4

TIA Selection Tool

TIA Selection Tool
The TIA Selection Tool allows you to select, configure and order devices for Totally Integrated Automation (TIA). The TIA Selection Tool helps you select the right SIMATIC Drive Controller in line with:  Axis quantity frameworks  Axis technologies  Control performance
With the TIA Selection Tool , you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (https://www.siemens.com/tia-selectiontool).

SIMATIC Drive Controller

56

System Manual, 11/2019, A5E46600094-AA

3.7.5

System overview 3.7 Software
SIMATIC Automation Tool
You use the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. The SIMATIC Automation Tool offers a wide range of functions:  Browsing the network and creating a table showing the accessible devices in the network  Flashing of device LEDs or HMI display to locate a device  Loading addresses (IP, subnet, gateway) to a device  Loading the PROFINET name (station name) to a device  Switching a CPU to RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data in/from a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to the CPU

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

57

Application planning

4

4.1

Installation location

Operating conditions
The SIMATIC Drive Controller is intended for installation in a control cabinet or in a device connection box.
 In these cases, the LEDs on the front of the device will remain visible and usable only during commissioning. Please take this into consideration for subsequent operation of the device.
 It is important to note that installation in a control cabinet or device connection box is essential for compliance with UL regulations.
 Protect the components from conductive contamination, for example by installing them in a control cabinet with degree of protection IP54 pursuant to IEC 60529 or NEMA 12. If the occurrence of conductive contamination can be ruled out, a correspondingly lower degree of protection for the control cabinet is permitted.
 The control cabinet or device connection box must satisfy the regulations regarding fireprotection housing.
 Ensure that all cables and leads that protrude externally are equipped with adequate strain relief.

Prohibition on use The SIMATIC Drive Controller must not be used in the following environments without additional measures:  In locations with a high degree of ionizing radiation  In aggressive environments caused, for example, by ­ Dust formation ­ Corrosive vapors or gases  In systems requiring special monitoring, for example ­ Elevators ­ Electrical equipment in particularly hazardous areas An example of an additional measure for use of the SIMATIC Drive Controller is installation in enclosures.

SIMATIC Drive Controller

58

System Manual, 11/2019, A5E46600094-AA

Application planning 4.1 Installation location
Electromagnetic compatibility (EMC)
Electromagnetic compatibility (EMC) means that devices can operate satisfactorily without interfering with other devices and without interference from other devices. The EMC requirements for variable-speed drive systems (Power Drive System, PDS) are detailed in product standard IEC/EN 61800-3. A variable-speed drive system consists of SIMATIC Drive Controller, Line Module and Motor Module and the corresponding electric motors and encoders, including connecting cables. The machine powered is not part of the drive system.
Note
The same installation information regarding EMC applies to the SIMATIC Drive Controller as to SINAMICS S120 control units CU320-2.
The SINAMICS S120 power units are designed for use in the Second Environment. The Second Environment is understood as all non-residential locations. The main Second Environment locations are industrial zones supplied by the medium voltage network via their own transformers.
For compliance with the interference emission and immunity levels, follow the installation information in the SINAMICS S120 manuals.
You can find further information on this topic in the SINAMICS S120 Function Manuals (https://support.industry.siemens.com/cs/ww/en/ps/13231/man).

Use of wireless devices or mobile phones Using wireless devices or mobile phones with a transmitter power > 1 W in the immediate vicinity of the components can cause the devices to malfunction. The malfunctions can affect the functional safety of machinery and can therefore pose a risk to people or cause material damage.  If you come closer to the components than c. 2 m, you switch off the wireless devices or mobile phones.  Only use the "SIEMENS Industry Online Support App" on the device that is off.
Overvoltage protection
NOTICE Damage to the device Inadequately dimensioned overvoltage protection can result in severe damage to the device. You should therefore ensure that the overvoltage protection is adequate.

Further information
You can find further information on the selection of the installation location, ambient conditions for operation, minimum spacing, etc. can be found in Installation (Page 67).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

59

Application planning 4.2 Hardware and software requirements

4.2

Hardware and software requirements

Introduction

Please note the following requirements for use of the SIMATIC Drive Controller in a SINAMICS drive system.

Hardware requirements

Table 4- 1 Hardware requirements

Component
SIMATIC Drive Controller

Property/requirement The SIMATIC Drive Controller is available in various performance classes. · CPU 1504D TF (small to mid-range applications)

PROFINET PROFIBUS

· CPU 1507D TF (high-performance applications)
What performance class you require depends on your specific automation and Motion Control solution requirements. You can find a summary of the main performance features of the Drive Controller in Comparison of SIMATIC Drive Controller versions (Page 20).
Note the following requirements for operation of a SIMATIC Drive Controller as a bus device:
PROFINET

· The integrated PROFINET interface of the CPU is configured using STEP 7 (IP address and device name configured).

· The CPU is connected to the subnet. See the PROFINET Function Manual (https://support.industry.siemens.com/cs/ww/en/view/49948856)
For the rapid exchange of control data between the SIMATIC Drive Controller and drive components connected over PROFINET (for example SINAMICS S120, SINAMICS S210), the PROFINET IO network must be configured as isochronous.
PROFIBUS DP

· The integrated PROFIBUS interface of the CPU is configured using STEP 7 (node address and bus parameters configured).

· The CPU is connected to the subnet.

· The terminating resistors at the segment boundaries are on. See the PROFIBUS Function Manual (https://support.industry.siemens.com/cs/ww/en/view/59193579)

24 V DC power supply
SINAMICS S120 system components

Electronics power supply for the SIMATIC Drive Controller.
Power supply units for the 24 V DC supply must supply safety extra-low voltage in accordance with IEC 61131-2 or IEC 61010-2-201.
Devices from the SITOP family, for example, can be used.
You can find information on the 24 V power supply specifications in Power supply (Page 66).
Please note the installation information in the SINAMICS S120 manuals and the "Rules for wiring with DRIVE-CLiQ" in the SINAMICS S120 Function Manual (https://support.industry.siemens.com/cs/ww/en/view/109763287).

SIMATIC Drive Controller

60

System Manual, 11/2019, A5E46600094-AA

Software requirements
Table 4- 2 Software requirements Configuration in the TIA Portal Integrated SIMATIC S7-1500 CPU SINAMICS Integrated

Application planning 4.3 Drive Controller-specific properties
Requirement SIMATIC STEP 7 Professional V16 or higher SINAMICS Startdrive Basic or Startdrive Advanced, V16 or higher Startdrive Advanced has additional engineering functions compared to Startdrive Basic such as a safety acceptance test.

Note Licensing
The S7 controller and SINAMICS Integrated are licensed in the TIA Portal via STEP7 Professional or Startdrive.

4.3

Drive Controller-specific properties

4.3.1

Drive Controller-specific hardware properties
The SIMATIC Drive Controller is part of the SINAMICS S120 drive system and the same installation conditions and installation rules as for SINAMICS S120 therefore apply.

4.3.2

Drive Controller-specific properties of the CPU
The SIMATIC Drive Controller is optimized for automation solutions with Motion Control in which SINAMICS S120 high-performance converters are used.
With its extensive field bus interfaces, the SIMATIC Drive Controller is ideal for modular machine concepts.

Service functions
The SIMATIC Drive Controller does not have an integrated display. You can alternatively run service functions over the integrated Web server, for example. You can save the service data to the SIMATIC memory card with the FUNCT key.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

61

Application planning 4.3 Drive Controller-specific properties

S7-1500 I/O

The SIMATIC Drive Controller has no S7-1500 backplane bus. You can connect S7-1500 I/O modules over the distributed I/O system ET 200MP. Please note that CM/CP communication modules for PROFINET/PROFIBUS in particular cannot be used in the distributed I/O system ET 200MP, but only the communication modules for point-to-point connection (CM PtP). Alternatively, other I/O systems for the control cabinet (for example ET 200SP) or cabinet-free installation (for example ET 200pro, ET 200AL and ET 200eco PN) are available.

Time-based IO

The function blocks for the use of time-based IO (TIO instructions) are not supported by the digital input/outputs of the X142 interface. Recommendation: For the timer DI/DQ, use the technology objects measuring input, output cam or cam track.

Device replacement
The SIMATIC Drive Controller supports the exchange of devices between SIMATIC Drive Controller CPU and the modular SIMATIC S7-1500 CPUs. Device replacement with controllers of other designs (for example ET 200SP, ET 200pro) is not possible.

4.3.3

Drive Controller-specific properties of SINAMICS Integrated

Supported functions
The automatic speed control integrated in SIMATIC Drive Controller only support the functions relevant in a control context (i.e. functional subset of SINAMICS S120 CU320-2 functions). For example, Drive Control Chart (DCC) and basic positioner (EPOS) are not supported by SINAMICS Integrated. For details, see SINAMICS Integrated functions (Page 50).

Online functions with SINAMICS Integrated
SINAMICS Integrated is connected to the CPU over an internal PROFIdrive subnet. From the point of view of an external PROFINET/PROFIBUS interface, SINAMICS Integrated is connected to a lower-level network. Please therefore note the following aspects:
 Online functions with SINAMICS Integrated are only possible if the SIMATIC Drive Controller (CPU and SINAMICS Integrated) are configured in the TIA Portal and the network configuration has first been loaded to the CPU.
 If only Startdrive is installed (and not STEP 7 Professional), SINAMICS Integrated can be configured offline. Online functions are not possible. STEP 7 Professional and Startdrive need to be installed for this purpose.
 A subnet needs to be configured for the interface to which you are connecting the programming device. Routing to the SINAMICS Integrated is only possible if a subnet is configured.

SIMATIC Drive Controller

62

System Manual, 11/2019, A5E46600094-AA

Application planning 4.3 Drive Controller-specific properties

Device replacement
The SIMATIC Drive Controller supports the replacement of SIMATIC Drive Controller CPU with modular SIMATIC S7-1500 CPU and vice versa.
Not supported:
 Device replacement with controllers of other designs (for example ET 200SP, ET 200pro)
 Device exchange between SINAMICS Integrated and SINAMICS S120 CU320-2
Copying and pasting of individual drive objects from SINAMICS Integrated to SINAMICS S120 CU320-2 (and vice versa) is not possible with V16.

Diagnostics

To evaluate diagnostics information of the SINAMICS Integrated, you can use, for example, the function block FB LAcycCom_ReadDriveMessagesDateTime (FB 30518) of the LAcycCom library.
With this function block, you can read active messages (alarms, errors and SI messages) from a drive object (DO) sorted by time (latest first). The information provided comprises the code, info, date and time of occurrence of the message. Additional information on the LAcycCom library is available here (https://support.industry.siemens.com/cs/ww/en/view/109479553).
The diagnostic information cannot be evaluated over the system diagnostics integrated in the SIMATIC S7-1500.

Restrictions

SINAMICS Integrated does not currently support upload to an empty project.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

63

Application planning 4.4 Hardware configuration

4.4

Hardware configuration

The SIMATIC Drive Controller controls SINAMICS Integrated over the integrated drive and the axis group over the comprehensive range of SINAMICS S120 power units (Line Modules and Motor Modules).

Hardware components
The basic configuration of a system with the SIMATIC Drive Controller comprises the following components:
 SIMATIC Drive Controller This includes the SIMATIC S7-1500 TF CPU and SINAMICS Integrated. The SIMATIC Drive Controller can alternatively control:
­ A max. of 6 servo drives; or
­ A max. of 6 drives with vector control; or
­ A max. of 12 drives with U/f control
 SINAMICS Line Module The Line Module generates the DC link from the network.
 SINAMICS Motor Modules Motor Modules are powered by the DC link and supply the connected motors.
 DRIVE-CLiQ components In SINAMICS S120, the individual components of the drive system communicate with each other over DRIVE-CLiQ. The SIMATIC Drive Controller has 4 DRIVE-CLiQ interfaces. Alongside the power components, encoder systems and special DRIVE-CLiQ I/O devices can also be connected over DRIVE-CLiQ.

Hardware configuration
You can expand the drive configuration limits of a SIMATIC Drive Controller, for example with SINAMICS S120 control units (CU320-2) or SINAMICS S210 (for example for individual drives). Additional SINAMICS drive systems must be connected over PROFINET if they are operated isochronously on the MC Servo together with SINAMICS Integrated.
Computing performance at the drive cannot be increased with a SIMOTION CX32-2 Controller Extension for SIMOTION D4x5-2 control units.
Note
The PROFIBUS interface cannot be connected to other clock systems. If you expand the drive configuration limits with distributed drive systems, those systems must be connected over the PROFINET IO interface X150. Only PROFINET interface X150 can be connected to the clock system of SINAMICS Integrated and the X142 technology I/Os.

SIMATIC Drive Controller

64

System Manual, 11/2019, A5E46600094-AA

Application planning 4.4 Hardware configuration

 HMI device  SIMATIC Drive Controller  Line Module  SINAMICS S120 Double Motor Module  SINAMICS S120 Single Motor Module  SIMOTICS S servomotor  SINAMICS Terminal Module  SINAMICS Sensor Module SMC  SINAMICS S120 for up to six drives  SINAMICS S210 single-axis servo drive  ET 200SP I/O
Figure 4-1 Example: SIMATIC Drive Controller hardware configuration in a plant

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

65

Application planning 4.5 Power supply

4.5

Power supply

24 V power supply design
The SIMATIC Drive Controller is powered by an external 24 V supply (for example SITOP power supply).
The current consumption of the SIMATIC Drive Controller (without the supply of modules/interfaces) is a maximum of 1.7 A.

Table 4- 3 Permissible current load for SIMATIC Drive Controller interfaces

Interface 2 x USB 3.0 (short-circuit proof) 4 x DRIVE-CLiQ 16 x digital output (short-circuit proof)

5 V 2 x 900 mA
-

24 V -
4 x 450 mA 16 x 500 mA

You can find an overview of the current consumption of SINAMICS components and recommendations for the selection of SITOP Power power supply units in the SINAMICS S120 Booksize Power Units manual.

Note No electrical isolation
As ground potential and enclosure (PE) are connected over a low-impedance internal connection, please note the following: · Suitably dimensioned equipotential bonding cables are required between the 24 V power
supply and all grounded, physically separate devices. · Insulation monitors are not permitted in the 24 V power supply.

Please also note the information in Connecting the supply voltage (Page 80).

SIMATIC Drive Controller

66

System Manual, 11/2019, A5E46600094-AA

Installation

5

5.1

Installation notes

Open components These modules are open components. This means they may only be installed in housings, cabinets, or in electrical equipment rooms that can only be entered or accessed with a key or tool. Housings, cabinets, or electrical equipment rooms may only be accessed by trained or authorized personnel. An external fire-protection housing is required.
DANGER Danger to life from energized parts Death or serious injury will result if energized parts are touched. Turn off and lock out all power supplying this device before working on this device.

Protection from conductive contamination
The components must be protected from conductive contamination, for example by installing them in a control cabinet with degree of protection IP54 pursuant to IEC 60529 or NEMA 12.
If the occurrence of conductive contamination can be ruled out, a correspondingly lower degree of protection for the control cabinet is permitted.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

67

Installation 5.1 Installation notes
Permitted mounting positions The SIMATIC Drive Controller must be mounted vertically.

SIMATIC Drive Controller: Vertical mounting position
WARNING Fire hazard due to overheating in the event of incorrect mounting position Incorrect mounting positions cause overheating with a risk for personnel through smoke development and fire. This can also result in increased downtime and reduced service lives for devices / systems. Install the SIMATIC Drive Controller only in vertical mounting position.
Distance for heat dissipation The top and bottom of the SIMATIC Drive Controller must be at least the following distances from the enclosure wall: 80 mm
WARNING Inadequate ventilation clearances pose risk of fire as a result of overheating Inadequate ventilation clearances cause overheating with a risk for personnel through smoke development and fire. This can also result in increased downtime and reduced service lives for devices / systems. Maintain a ventilation clearance of 80 mm above and below the SIMATIC Drive Controller.
EMC guidelines The same installation information regarding EMC applies to the SIMATIC Drive Controller as to SINAMICS S120 control units CU320-2. For further information, see SINAMICS S120 manuals and the EMC design guidelines (https://support.industry.siemens.com/cs/ww/en/view/60612658).

SIMATIC Drive Controller

68

System Manual, 11/2019, A5E46600094-AA

Installation 5.2 Mounting the SIMATIC Drive Controller

5.2

Mounting the SIMATIC Drive Controller

Requirement

The SIMATIC Drive Controller is fitted in a control cabinet together with the SINAMICS components. Requirements for installing a SIMATIC Drive Controller:  The control cabinet has been installed and wired.  The SINAMICS components have been installed and wired.  The components and tools required for installation are to hand.  T10 screwdriver for the M3 screws in the spacer are to hand.  For installation on the control cabinet wall: Tool for M6 screws

Designs

The SIMATIC Drive Controller is fitted to the wall of the control cabinet in one of the following ways:
 Installation with spacer
 Installation without spacer
The SIMATIC Drive Controller is supplied with a spacer fitted.
The spacers increase the depth of the SIMATIC Drive Controller to 270 mm and allow flush installation with 270 mm-deep power units.

Installing SIMATIC Drive Controller with spacers Proceed as follows:
1 Attach the SIMATIC Drive Controller to the control cabinet wall with one M6 screw
each at  and .
Tightening torque: 6 Nm (53.1 lbf in)

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

69

Installation 5.2 Mounting the SIMATIC Drive Controller Installing SIMATIC Drive Controller without spacers
Proceed as follows:
1 Uninstalling the spacer:
· Unscrew the M3 screws  and re-
move the space.
· Tighten the M3 screws  again.
2 Attach the SIMATIC Drive Controller to the control cabinet wall with one M6 screw
each at  and .
Tightening torque: 6 Nm (53.1 lbf in)

Note
If you install multiple SIMATIC Drive Controllers or SINAMICS S120 CU320-2 next to one another, use a grid size of 50 mm for the drilled holes horizontally to compensate for tolerances. A dimension drawing of the SIMATIC Drive Controller is available in the SIMATIC Drive Controller manual (https://support.industry.siemens.com/cs/ww/en/view/109766666).

SIMATIC Drive Controller

70

System Manual, 11/2019, A5E46600094-AA

Connecting

6

6.1

Rules and regulations for operation

General safety information
WARNING
Electric shock and danger to life from other energy sources
Touching live parts can result in death or serious injury. · Work on electrical devices only if you are qualified for this job. · Always observe the country-specific safety rules. Follow the steps below to ensure
safety: 1. Prepare for shutdown. Notify all those who will be affected by the procedure. 2. Disconnect the drive system and ensure it cannot be switched back on. 3. Wait until the discharge time specified on the warning labels has elapsed. 4. Check there is no voltage between any power connections or between power
connections and the protective conductor connection. 5. Check whether any auxiliary supply circuits are de-energized. 6. Ensure that the motors cannot move. 7. Identify all other hazardous energy sources, for example compressed air, hydraulic
systems, or water. Put all energy sources in a safe state. 8. Check that the correct drive system is completely locked.
After you have completed the work, carry out the procedure in reverse to restore readiness for operation.

WARNING
Electric shock with damaged devices
Incorrect handling can damage devices. Hazardous voltages can be created at the housing or at exposed components if devices are damaged, and can cause death or serious injury if parts are touched. · Ensure compliance with the limits specified in the technical data during transport,
storage and operation. · Never use damaged devices.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

71

Connecting 6.1 Rules and regulations for operation

Specific application
Observe the safety and accident prevention regulations that are applicable to specific applications (for example the Machinery Directive).

EMERGENCY STOP devices
EMERGENCY STOP devices pursuant to IEC 60204 (corresponds to DIN VDE 0113) must remain effective in all operating modes of the plant or system.

Closed-loop control for secure operation
The following measures are also to be taken and adapted to your conditions for the secure operation of your plant:
 An EMERGENCY STOP concept in accordance with applicable engineering practice (for example European standards EN 60204, EN 418 and related standards).
 Additional measures for limiting axis limits (for example hardware limit switches).
 Devices and measures for protecting motors and power electronics in line with the SINAMICS design guidelines.
We also recommend conducting a risk assessment in accordance with the essential safety requirements / Annex 1 to the EC Machinery Directive to identify hazards for the plant as a whole.

Excluding hazardous plant states Hazardous operating states must not occur in the following situations:  The plant restarts after a voltage dip or power failure.  Bus communication is reestablished following a fault.  An undefined system state occurs. If a hazardous operating state occurs, force an EMERGENCY STOP. An uncontrolled or undefined system startup must not occur after the EMERGENCY STOP device is unlocked.

Line voltage

The points to note for line voltage are set out below:
 For fixed plants or systems without an all-pole mains disconnect switch, the building technology must include a mains disconnect device (all-pole).
 For load power supplies and power modules, the configured rated voltage range must correspond to the local line voltage.
 For all power circuits of the system, the fluctuation/deviation of line voltage from the rated value must be within the permitted tolerance.
You can find more information in the section Specifications for insulation tests, protection class, degree of protection, and rated voltage (Page 276).

SIMATIC Drive Controller

72

System Manual, 11/2019, A5E46600094-AA

Connecting 6.1 Rules and regulations for operation
24 V DC supply The points to note for a 24 V DC supply are set out below:  Power supply units for the 24 V DC supply must supply safety extra-low voltage (SELV or PELV) in accordance with IEC 61131-2 or IEC 61010-2-201.
Protection from external electrical effects Below are the points to note for protection from electrical effects or faults:  The system for discharging electromagnetic interference must be connected to a protective conductor with a sufficient cross-section for all plants with the SIMATIC Drive Controller.  You must ensure that all supply, signal and bus cables are correctly laid and installed.  For signal and bus lines, a cable break, wire break or a cross-circuit must not lead to undefined states in the plant or system.
Additional references  Directive on handling electrostatic sensitive devices (ESD), see appendix.  For the configuration of a plant with SIMATIC ET 200 I/O (for example ET 200SP, ET 200MP, etc.), please see the ET 200 I/O systems (https://support.industry.siemens.com/cs/ww/en/ps/14029/man) manuals.  We also recommend the EMC design guidelines / Basic system requirements (https://support.industry.siemens.com/cs/ww/en/view/60612658) configuration manual as a source of further information on EMC.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

73

Connecting 6.2 Additional rules and regulations for operation

6.2

Additional rules and regulations for operation

6.2.1

Safety extra-low-voltage (SELV, PELV) for failsafe modules
Please note the following if you use distributed I/O (for example ET200SP) with failsafe modules:
WARNING
The failsafe components/modules must be operated with safety extra-low voltage (SELV, PELV).
You can find more information on safety extra-low voltage (SELV, PELV) in the data sheets of the applicable power supplies, for example.
The failsafe modules operate with the 24 V DC rated voltage. The tolerance range is 19.2 V DC to 28.8 V DC.
The failsafe motor starters operate with the 24 V DC rated voltage. The tolerance range is 20.4 V DC to 28.8 V DC.
Within the overvoltage range of 32 V DC to 36 V DC, the F-modules react in a failsafe manner and the inputs and outputs are passivated. For overvoltages greater than 36 V DC, the F-modules are permanently de-energized.
Use a power supply unit that does not exceed Um = 36 V DC even in the event of a fault. For more on this, refer to the information in the data sheet on overvoltage protection in the case of an internal error, or implement appropriate measures to limit the voltage, for example use of an overvoltage protector.
All system components that can supply electrical energy in any form whatsoever must fulfill this condition.
Each additional circuit (24 V DC) used in the system must have safety extra-low voltage (SELV, PELV). Refer to the relevant data sheets or contact the manufacturer.
Please also note that sensors and actuators with an external power supply can also be connected to F-modules. Make sure that power is supplied to these components from safety extra-low voltage (SELV, PELV) as well. The process signal of a 24 V DC digital module may not exceed a fault voltage Um even in the event of a fault.
WARNING
Even when a fault occurs, the permissible potential difference between the supply of the interface module (bus voltage) and the load voltage must not be exceeded.
An external direct electrical connection is one way to meet this requirement. This also prevents potential differences from causing voltage additions at the individual voltage sources, which could cause the fault voltage Um to be exceeded.

SIMATIC Drive Controller

74

System Manual, 11/2019, A5E46600094-AA

Connecting 6.2 Additional rules and regulations for operation
Requirements for power supplies in the event of voltage interruption
Note To ensure adherence to IEC 61131-2, only use power packs/power supply units (24 V DC) with a mains buffering time of at least 20 ms. Please also note the requirements of the applicable standards regarding mains buffering time. You can find information on the power supply components on the Internet.

6.2.2

Requirements of sensors and actuators for fail-safe modules

General requirements for sensors and actuators
Note the following important warning regarding safety-related use of sensors and actuators:
WARNING
Note that instrumentation with sensors and actuators bears a considerable safety responsibility. Also bear in mind that sensors and actuators generally do not have a service life of 20 years as defined in IEC 61508:2010 without considerable loss of safety.
The probability of hazardous faults and the rate of hazardous faults of safety functions must comply with an SIL-defined high limit. A listing of values achieved by F-modules in the technical specifications of the F-modules is available under "Fail-safe performance characteristics".
To achieve the respective safety class, suitably qualified sensors and actuators are necessary.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

75

Connecting 6.2 Additional rules and regulations for operation
Additional sensor requirements General rule: A single-channel sensor is sufficient to achieve SIL3/Cat.3/PLd. However, to achieve SIL3/Cat.3/PLd with a single-channel sensor, the sensor itself must be SIL3/Cat.3/PLd-capable; otherwise, the sensor must be connected via two channels to achieve this safety level. To achieve Cat.4, sensors must be connected via two channels.
WARNING
In the case of fail-safe input modules, a "0" value is output to the F-CPU after detection of faults. You therefore need to make sure that the sensors are implemented in such a way as to ensure the reliable reaction of the safety program when the sensor is in the "0" state. Example: In its safety program, an EMERGENCY-STOP sensor must achieve the shutdown of the respective actuator when it is in the "0" state (EMERGENCY-STOP button pressed).
Duration requirements for sensor signals
WARNING
Observe the following requirements for sensor signals: · In order to ensure the correct detection of the sensor signals via fail-safe modules with
inputs, you need to make sure that the sensor signals are output for a minimum duration. · In order for pulses to be detected with certainty, the time between two signal changes (pulse duration) must be greater than the PROFIsafe monitoring time.
Safe detection of inputs through F-modules The minimum duration of sensor signals for F-modules with inputs depends on the configured input delay, the parameters of the short circuit test of the sensor supplies, and the configured discrepancy behavior for 1oo2 evaluation. The duration of the signal must be greater than the maximum response time of the configured application. Information on calculating the maximum response time can be found in section "Response times" of the respective F-module. The maximum permitted switching frequency of the sensor signals results from the minimum duration.

SIMATIC Drive Controller

76

System Manual, 11/2019, A5E46600094-AA

Connecting 6.2 Additional rules and regulations for operation
Additional requirements for actuators The fail-safe output modules test the outputs at regular intervals. The F-module briefly switches off the activated outputs and, if necessary, switches on the deactivated outputs. You can assign the maximum duration of the test pulses (dark and light period) with parameters. High-speed actuators may briefly drop out or be activated during this test. If your process does not tolerate this, set the pulse duration of the light or dark test correspondingly or use actuators that have sufficient lag.
WARNING
If the actuators switch voltages greater than 24 V DC (e.g. 230 V AC), the outputs of a failsafe output module and the parts carrying a higher voltage must be electrically isolated (acc. to standard IEC 60664-1:2010). This is generally the case for relays and contactors; particular attention must be paid to this requirement for semiconductor switching devices.
Technical specifications of sensors and actuators Refer to the manuals of the fail-safe modules for technical specifications to assist you in selecting sensors and actuators.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

77

Connecting 6.3 Electrical configuration

6.2.3

Capacitive crosstalk of digital input/output signals
Readback errors may occur on the F-DQ modules if the fail-safe digital output signals and fail-safe digital input signals are routed through a single cable.
Cause: Capacitive crosstalk
During the bit pattern test of the outputs or the sensor supply of the inputs, the steep switching edge of the output drivers caused by the coupling capacitance of the line may result in crosstalk to other non-activated output or input channels. This may then lead to a response of the readback circuit in these channels. The module detects a cross circuit/short circuit and performs a safety-related shutdown. Remedy:
 Separate cables for fail-safe DI modules and fail-safe DQ modules / non-fail-safe DQ modules
 Coupling relay or diodes in the outputs
 Disable the short-circuit test of the sensor supply if safety class requirements allow it.
Cause: magnetic crosstalk
Note that an inductive load connected to the F-DQ channels can induce coupling of a strong magnetic field.
Solution:
 Spatially disconnect the inductive loads or shield against the magnetic field.
 Configure the "Max. readback time dark test" to 50 ms or higher.

6.3

Electrical configuration

A system with the SIMATIC Drive Controller consists of several individual components. For a system configured with these components to meet the EMC and safety standards, certain design guidelines must be followed.

Grounding concept and radio interference suppression measures The individual system components are attached to a metal cabinet panel. In addition to the protective grounding of system components, special precautions must be taken to guarantee safe, error-free operation of the system. These measure include:  Shielded signal lines  Special equipotential bonding connections  Isolation and shielding measures

SIMATIC Drive Controller

78

System Manual, 11/2019, A5E46600094-AA

Connecting 6.4 Wiring rules

Design guidelines
Take the following measures to achieve the best possible noise immunity for the complete system (controller, power unit and machine):
 Ensure a minimum distance of 200 mm between the signal lines and power cables.
 If necessary, signal and power cables may cross one another (if possible at an angle of 90°), but must never be laid close or parallel to one another.
 Only use cables approved by Siemens for the signal lines from and to the SIMATIC Drive Controller.
 Signal lines must not be routed close to strong external magnetic fields (for example motors or transformers).
 If signal lines cannot be routed a sufficient distance away, they must be installed in grounded (metal) cable ducts.
You can find further information on interference suppression measures and the connection of shielded cables in the EMC Design Guidelines configuration manual (https://support.industry.siemens.com/cs/ww/en/view/60612658).

See also

Protective conductor and potential equalization, functional ground (Page 85)

6.4

Wiring rules

Use suitable cables to connect a system to the SIMATIC Drive Controller . You can find wiring rules for the SIMATIC Drive Controller in "Wiring (Page 71)" under the relevant interface descriptions.

You can find the wiring rules and information on connection technology for SINAMICS components in the manuals of the SINAMICS components in question.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

79

Connecting 6.5 Connecting the supply voltage

6.5

Connecting the supply voltage

24 V DC power supply
The SIMATIC Drive Controller is powered by an external 24 V DC power supply. Power supply units from the SITOP family, for example, can be used.
WARNING
Connection of an unsuitable power supply poses a danger to life from hazardous voltage
Configure the 24 V direct voltage as protective extra-low voltage.
A 24 V DC power supply to be connected to the interfaces must meet the requirements for a protective extra-low voltage (PELV) pursuant to UL 61010. A backup fuse that trips within 120 milliseconds in the event of a short-circuit at an ambient temperature of 0 °C must also be used.
When the power supply used comes primarily from OVC III circuits up to 600 V AC (line to neutral voltage), the contact distance for the fuse or circuit with single-fault safety must be 3.0 mm pursuant to UL 61010.
If using an external power supply, make sure that the shutdown rating of the fuse corresponds to the max. possible short-time short-circuit current of the power supply used.
Note
The ground potential and enclosure (PE) are connected over a low-impedance internal connection. Therefore, please note the following: · Insulation monitors are not permitted in the 24 V power supply. · If you are using external power supplies (for example SITOP), you must connect the
ground potential to the protective conductor terminal (PELV). · Suitably dimensioned potential equalization connections are required between the 24 V
power supply and all grounded, physically separate devices. You can find information on potential equalization in Protective conductor and potential equalization, functional ground (Page 85).

SIMATIC Drive Controller

80

System Manual, 11/2019, A5E46600094-AA

Connecting 6.6 PROFINET and PROFIBUS DP
Connecting the power supply The supply voltage is supplied over a 4-pin connector at the front of the SIMATIC Drive Controller (behind the top of the front cover). Use rigid or flexible cables with a conductor cross-section as specified in the SIMATIC Drive Controller manual (https://support.industry.siemens.com/cs/ww/en/view/109766666) for wiring the power supply. Tighten the connector using a flat-blade screwdriver.
Note · The 24 V DC cable must be approved for temperatures of up to 70 °C. · The maximum permissible cable length is 10 m.

6.6

PROFINET and PROFIBUS DP

Connecting interfaces for communication Connect the communication interfaces of the SIMATIC Drive Controller using standardized plug connectors. Use preassembled connecting cables for the connection. If you want to assemble the communication cables yourself, we recommend cables and RJ45 plug connectors from the Siemens FastConnect system.
Note The X130 interface of the SIMATIC Drive Controller supports 10, 100 and 1000 Mbps. For 1000 Mbps, you need 8-wire cables (4x2) and the 1000 Mbit version of the 180° FastConnect connector. The 145° FastConnect connectors can only be used for Ethernet interface X130 with a max. of 100 Mbps.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

81

Connecting 6.7 Digital inputs and digital inputs/outputs X122, X132 and X142

6.7

Digital inputs and digital inputs/outputs X122, X132 and X142

The digital inputs and digital inputs/outputs at interfaces X122, X132 and X142 are designed for the connection of sensors and actuators.

The digital inputs and digital outputs at interfaces X122 and X132 are mainly assigned to SINAMICS Integrated. Through configuration (frames 39x), you can also use the digital inputs and digital outputs (X122/X132) for the CPU.

The digital input/outputs at interface X142 are assigned to the CPU of the SIMATIC Drive Controller and that assignment is fixed.

Using the digital inputs and digital outputs
Digital inputs/digital outputs come in the following types:
 Digital inputs (DI)
 Bidirectional digital inputs/outputs (DI/DQ)
Bidirectional digital input/outputs can be configured channel-by-channel as digital input or digital output.
Assignment of the input/outputs to functions is freely configurable. Technology functions (for example measuring input and output cam) can also be assigned to the inputs/outputs.

Table 6- 1 Use

X122, X132

Electrical isolation
Use as: Inputs/outputs assigned to the CPU Inputs/outputs assigned to SINAMICS Integrated Inputs of measuring input
Cam outputs

DI0 to DI7, DI17, DI18, DI20, DI21 Isolated (ground reference M1 or M2)
Yes1) Yes No
No

DI/DQ 8 to 15
Non-isolated (ground reference M)
Yes1)
Yes
Yes Measuring using central measuring input Measurement using PROFIdrive telegram Yes1) DQ can be used as cam output

Oversampling DI

No

No

Oversampling DQ

No

No

Event/period measure- No

No

ment

X142 DI/DQ 0 to 7
Non-isolated (ground reference M)
Yes
No
Yes Measuring using Timer DI
Yes Timer DQ can be used as high-precision cam output Yes Yes Yes

SIMATIC Drive Controller

82

System Manual, 11/2019, A5E46600094-AA

Connecting 6.7 Digital inputs and digital inputs/outputs X122, X132 and X142

Pulse width modulation PWM
Configuration:
Assignment

X122, X132

DI0 to DI7, DI17, DI18, DI/DQ 8 to 15 DI20, DI21

No

No

X142 DI/DQ 0 to 7
Yes

Configurable channel- Configurable channel- Configurable channelby-channel on the drive by-channel on the drive by-channel on the CPU

1) You can assign the inputs/outputs with frame 39x of the CPU (see also section Configuration of the digital inputs and digital inputs/outputs (X122/X132) (Page 135)).

Note
Shielded cables are required to ensure the best possible immunity of the digital inputs if they are being used as measuring inputs.

Connection cables for digital inputs and digital outputs Use rigid or flexible cables with a conductor cross-section as specified in the SIMATIC Drive Controller manual for wiring the inputs/outputs.
Note Maximum permissible cable length The maximum permissible cable length for the connection cable is 30 m.

Overvoltage protection for signal lines
Overvoltage protection devices are required for lines of > 30 m. You are advised to use the following snubber to protect the 24 V signal lines from overvoltage:

Table 6- 2 Recommendations for overvoltage protection

Line 24 V signal lines

Overvoltage protection device Manufacturer: Weidmüller article: MCZ OVP TAZ Article number: 844915 0000

Snubbers must always be positioned at the edge of the area to be protected, for example at the entry to the cabinet. All 24 V lines leaving the protected area must run through a snubber. You can find additional information on overvoltage protection in the SINAMICS S120 manual "Booksize Power Units (https://support.industry.siemens.com/cs/ww/en/view/109754297)".

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

83

Connecting 6.8 DRIVE-CLiQ interfaces X100 to X103
Additional information Additional information on the pin assignment of interfaces X122, X132, X142 can be found in the SIMATIC Drive Controller manual (https://support.industry.siemens.com/cs/ww/en/view/109766666).

6.8

DRIVE-CLiQ interfaces X100 to X103

Properties of the DRIVE-CLiQ interfaces The SIMATIC Drive Controller has four DRIVE-CLiQ interfaces. The components of the SINAMICS S120 drive system including the motors and encoders are connected over the common DRIVE-CLiQ interface. DRIVE-CLiQ has the following properties:  Automatic recognition of the components by the SIMATIC Drive Controller  Uniform interfaces on all components  Consistent diagnostics down to the components  Consistent service down to the components  Each DRIVE-CLiQ interface has 24 V/450 mA for connecting encoders and measuring systems.
Note The DRIVE-CLiQ cable with its 24 V supply is only used for the components that require it (for example motors with DRIVE-CLiQ interface).

Rules for DRIVE-CLiQ wiring Rules apply for wiring components with DRIVE-CLiQ. A distinction is made between mandatory DRIVE-CLiQ rules that must be observed and recommended rules.
Further information You can find further information on DRIVE-CLiQ wiring in the following manuals:  SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766666) manual  SINAMICS S120 function manual (https://support.industry.siemens.com/cs/ww/en/view/109763287); section on Rules for wiring with DRIVE-CLiQ  SINAMICS S120 Control Units and Supplementary System Components manual (https://support.industry.siemens.com/cs/ww/en/view/109763286)

SIMATIC Drive Controller

84

System Manual, 11/2019, A5E46600094-AA

Connecting 6.9 Protective conductor and potential equalization, functional ground

6.9

Protective conductor and potential equalization, functional ground

Requirement

You have installed the SIMATIC Drive Controller in the control cabinet. Please note the following safety instructions:

DANGER Danger to life from live parts Touching live parts can result in death or serious injury. Always disconnect the plant and device from the power supply before commencing work.

Note
Compliance with machine and system functional safety, reliability and EMC requirements is only guaranteed with original SIEMENS cables.

Protective conductor connection
The SIMATIC Drive Controller and the SINAMICS S120 drive system are designed for use in control cabinets with protective conductor connections.
A connection for the protective conductor is available on the SIMATIC Drive Controller :
 Screw M5, Torx T25
 Tightening torque: 3 Nm (26.6 lbf in)
This connection is also used for the equipotential bonding conductor.
All plant and machine components are to be included in the protection concept. The drive
line-up is to be installed on a common bare metal mounting plate  to ensure compliance
with EMC limits. The connection provides a low-impedance connection to the mounting plate.
The mounting plate must be connected to the protective conductor connection of the control
cabinet. This is done by establishing a connection  to the protective conductor bar . Connect the protective conductor bar  to the protective conductor .
The protective connection (PE connection) of the motors used must be over the motor cable
.
For EMC reasons, the shield of the motor cable should be connected over a large surface area both at the Motor Module and at the motor.
Components that are not connected over a low-impedance connection, for example, control
cabinet door  connected with hinges, also require a protective connection .

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

85

Connecting 6.9 Protective conductor and potential equalization, functional ground
Example: Booksize axis group, consisting of SIMATIC Drive Controller, Line Module and Motor Modules.

 SIMATIC Drive Controller  SINAMICS S120 Line Module  SINAMICS S120 Double Motor Module  SINAMICS S120 Single Motor Module  SINAMICS Sensor Module Cabinet-Mounted (SMC)  SINAMICS Terminal Module (TM)  Power supply, for example, SITOP  Mounting plate, metallic bright  Control cabinet  Protective conductor connection  Protective conductor bar  Motor cable  Flexible protective conductor  Control cabinet door  HMI device  Protective conductor
A mounting plate also acts as potential equalization surface. No additional equipotential bonding is therefore required within the drive line-up.

SIMATIC Drive Controller

86

System Manual, 11/2019, A5E46600094-AA

Connecting 6.9 Protective conductor and potential equalization, functional ground

Dimension the protective conductor as follows:

Table 6- 3 Cable cross-section for copper protective conductor

Cross-section of mains supply conductor  16 mm² > 16 mm² to  35 mm² > 35 mm²

Cross-section of protective conductor
As mains supply conductor cross-section 16 mm² 0.5 × mains supply conductor cross-section

For other materials, the cross-section of the protective conductor is to be increased so that it has at least the same conductance as copper.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

87

Connecting 6.9 Protective conductor and potential equalization, functional ground
Potential equalization If there is no common bare metal mounting plate, you need different potential equalization that comes as close as possible to a cross-section in accordance with the "Cable crosssection for copper protective conductors" table, or at least with the same conductance.

 SIMATIC Drive Controller  SINAMICS S120 Line Module  SINAMICS S120 Double Motor Module  SINAMICS S120 Single Motor Module  SINAMICS Sensor Module Cabinet-Mounted (SMC)  SINAMICS Terminal Module (TM)  Power supply, for example, SITOP  HMI device  Control cabinet  Functional ground bar  Flexible protective conductor  Control cabinet door
Note
The ground potential and enclosure (PE) for the SIMATIC Drive Controller are connected over a low-impedance internal connection.
WARNING
Electric shock without grounding
If there is no protective conductor connection or the connection is incorrectly implemented for devices with protection class I, high voltages can be present at open, exposed parts, which can result in death or serious injury if the parts are touched. · Ground the device in compliance with the applicable regulations.

SIMATIC Drive Controller

88

System Manual, 11/2019, A5E46600094-AA

Connecting 6.10 Connecting cable shields
Communication connections Equipotential-bonding cables are not required for fieldbus components within a control cabinet if they are configured as detailed above. For communication connections between separate parts of a plant (for example devices in different control cabinets) and between buildings or parts of buildings, you must ensure potential equalization. If data lines (PROFINET, PROFIBUS or DRIVE-CLiQ), for example, run through more than one control cabinet, potential equalization with a potential equalization conductor is required. Lay the equipotential bonding conductor together with the data line. The following minimum cross-sections are required pursuant to IEC 60364-5-54:  At least 6 mm² for copper  At least 16 mm² for aluminum  At least 50 mm² for steel
NOTICE Disruption to data connection or device defect in the absence of equipotential bonding Considerable leakage current can flow over the data line if no potential equalization is set up. Disruption to data connection or device defects are possible. Lay an equipotential bonding conductor together with the data line.
Due to the maximum length of 100 m for PROFIBUS copper cables at 12 Mbps or for PROFINET copper cables, and aspects of electrical isolation, EMC protection and equipotential bonding, we recommend using fiber-optic cables for connections between buildings.

6.10

Connecting cable shields

Using shielded cables The following options are available for the shield connection when using shielded cables:
 A shield connection using a shielding bus supplied separately
 Shield contact with shield contact element at the top of the SIMATIC Drive Controller enclosure.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

89

Connecting 6.10 Connecting cable shields
Using a shielding bus Proceed as follows to use a shield bus: 1. Strip the cable shielding. 2. Attach the shield to a grounded shield bus after the point where the cable enters the cabinet. 3. Run the shielded cable as far as the module but do not establish a connection to the shield there.
Using a shield contact on the SIMATIC Drive Controller
1. Loosen the shield contact bracket  far enough to create space under the bracket (M3
screw, Torx T10). 2. Strip the cable shielding and insert the cable.
3. Attach the retaining bracket so that the cable shield and cable  are pressed against the
shield support by the retaining bracket (tightening torque 0.8 Nm or 7.1 lbf in).
 Shield contact bracket  Cable shield
Figure 6-1 Shield contact at the SIMATIC Drive Controller
WARNING Unconnected cable shields cause electric shock Hazardous touch voltages can occur through capacitive cross-coupling due to unconnected cable shields. · Connect at least one end of cable shields and unused conductors of cables to the
grounded enclosure potential.

SIMATIC Drive Controller

90

System Manual, 11/2019, A5E46600094-AA

Configuring

7

7.1

Overview

Overview

"Configuring" refers to all steps (configuration, parameter assignment and programming) required for creating an executable project in the TIA Portal.
You transfer the configuration (preset configuration) and mode of operation of the CPU and integrated automatic speed control SINAMICS Integrated to the SIMATIC Drive Controller by configuring, assigning the parameters of and connecting the individual hardware components. You perform the steps needed for this in the device and network views in the TIA Portal and in SINAMICS Startdrive (SINAMICS Integrated).
"Configuring" refers to arranging and networking devices and modules within the device or network view of the TIA Portal. The TIA Portal provides a graphic display of hardware components. It also shows the module racks, for example, for ET 200SP and ET 200MP I/O systems, and the drive line-up of SINAMICS Integrated.
During startup, the configured preset configuration is compared with the actual configuration of the system. Using parameter assignment, you can specify the response of the CPU to errors in the hardware configuration.
"Parameter assignment" means setting the properties of the components used (CPU, SINAMICS Integrated, I/O modules, etc.).
The TIA Portal compiles the hardware configuration (result of "configuring" and "parameter assignment") and loads it to the components.
"Programming" means creating the user programs. The TIA Portal provides highperformance programming editors for efficient engineering. You can, for example, create programs in structured control language (SCL), ladder logic (LAD), function block diagram (FBD) or statement list (STL).

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

91

Configuring 7.2 Hardware/software requirements

7.2

Hardware/software requirements

Hardware requirements The following requirements must be met for commissioning the SIMATIC Drive Controller:
 Your plant has been installed and wired.
 Your PG/PC has been connected to the SIMATIC Drive Controller over the PROFINET or PROFIBUS interface.

Software requirements

Table 7- 1 Required configuration software
Configuration in the TIA Portal Integrated SIMATIC S7-1500 CPU SINAMICS Integrated

Requirement
SIMATIC STEP 7 Professional, V16 or higher
SINAMICS Startdrive Basic or Startdrive Advanced, V16 or higher

Additional information You can find an overview of the most important documents and links for the TIA Portal on the Internet (https://support.industry.siemens.com/cs/en/en/view/65601780).
You can find manuals, application examples and FAQs on Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109751049) on the following topic page.
Note Configuration without STEP 7/SINAMICS Startdrive
If you want to open projects that already contain a SIMATIC Drive Controller and a SINAMICS drive, you need STEP 7 and SINAMICS Startdrive, even if the controller or the drive are subsequently deleted.
Note Connecting SINAMICS Integrated online
To connect SINAMICS Integrated online: · You need STEP 7 Professional and SINAMICS Startdrive (V16.0 or higher). · The hardware configuration must have been loaded to the SIMATIC Drive Controller. · A subnet must be configured at the interface to which you are connecting your PC/PC.
You can only configure the drive offline with SINAMICS Startdrive without STEP 7 Professional.

SIMATIC Drive Controller

92

System Manual, 11/2019, A5E46600094-AA

Configuring 7.3 Configuration procedure

7.3

Configuration procedure

Proceed as follows to create a new project in the TIA Portal and add a SIMATIC Drive Controller:

Creating a project 1. Start TIA Portal. 2. Select the action "Start" > "Create new project" in the portal view. 3. Assign a name for the new project under "Project name". 4. Set the storage location with the "..." button. 5. If required, enter comments in the Comment field. 6. Click the "Create" button to create the project. You have created the project and are currently in the portal view. To continue with the configuration, switch to the project view.

Adding a SIMATIC Drive Controller to the project
1. Select "Add new device" in the project tree.
2. In the "Add new device" dialog, select the device version you are using under "Controller" > "SIMATIC Drive Controller" and the firmware version of the device under "Version".
3. You use the "Open device view" checkbox to specify whether the hardware configuration view is to be opened once the device has been created. Keep the checkbox selected if you want to configure the CPU next.
4. Click OK to confirm the new device.
You have added the SIMATIC Drive Controller to the project and can now continue with configuration, parameter assignment and programming.

Display of the SIMATIC Drive Controller When you add a SIMATIC Drive Controller to the project, by default:  A "Drive Controller_a" group is generated  Two devices are added to the group, for example: ­ PLC_b [CPU 1504D TF] and ­ Integrated_c [S120, CPU 150xD]

Figure 7-1 SIMATIC Drive Controller in the project tree, device collapsed

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

93

Configuring 7.3 Configuration procedure
SINAMICS Integrated is only created if Startdrive is installed. Both devices have already been joined in a network over the PROFIdrive Integrated_d subnet. The respective instance numbers (a, b, c, d) are assigned by STEP 7 depending on the objects already present in the project.

Figure 7-2 SIMATIC Drive Controller network view
CPU (e.g. PLC_1) and integrated drive control (e.g. Integrated_1) are modeled as separate devices. You can also move the devices as required to other groups and delete the "Drive Controller" group. You can also add other devices to the "Drive Controller" group, for example a CU320-2 PN, if you require more than six servo drives.
Note Adding SIMATIC Drive Controller directly to group
You can add the SIMATIC Drive Controller directly to a group folder in the project tree even if the group folder is a subfolder: 1. Select the required group. 2. Go to the menu bar or shortcut menu and select "Add" > "Device".

SIMATIC Drive Controller

94

System Manual, 11/2019, A5E46600094-AA

Configuring 7.3 Configuration procedure
Creation options The CPU and SINAMICS Integrated are by default created in a shared group folder in the project tree. To change this behavior, activate or deactivate the relevant options for the SIMATIC Drive Controller under "Settings" -> "Hardware configuration" -> "Device-specific settings".

Figure 7-3 Creation options for creating a SIMATIC Drive Controller
The table below sets out the benefits of configuration with or without grouping.

Table 7- 2 Guide to grouping

With "Drive Controller" grouping
· Actions apply to all devices in a group, for example ­ Go online ­ Load to/from device ­ Copy
· You can add additional devices to the group as required, for example ­ with CU320-2 ­ with I/O system

Without grouping or user-specific grouping
· Greater flexibility in project structure in the project tree, for example ­ by machine/plant modules ­ by CPUs and drives, in separate groups

If you want to create the SIMATIC Drive Controller without the integrated drive, deselect the "Including SINAMICS Integrated" option.
Deselecting this option can, for example, be useful in the following cases:
 You are copying a previously configured SINAMICS Integrated drive control from another project.
 The project is to be processed by another user without SINAMICS Startdrive.
 SINAMICS Integrated is not to be configured until later.
 SINAMICS Integrated is not being used, for example, because another drive system is being used.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

95

Configuring 7.3 Configuration procedure
"Drive Controller" group
For the "Drive Controller" group, you have a range of functions to choose from in the menu bar, toolbar and shortcut menu. With "Go online", for example, you can go online with all devices in the group.
The functionality supported by a given device depends on the device and state. For example, the function "Download to device" is supported by the SINAMICS Integrated but not by the CPU when there is an active online connection. The "Load preview" dialog provides relevant information and suggestions for actions for loading.

Figure 7-4 Load preview
Subsequently configuring SINAMICS Integrated Requirements: STEP 7 Professional and SINAMICS Startdrive are installed. Proceed as follows if your project only contains the CPU of a SIMATIC Drive Controller and you want to configure the missing SINAMICS Integrated. 1. Select "Add new device" in the project tree. 2. In the "Add new device" dialog, go to "Drives" > "Drives & starters" > "SINAMICS drives" > "SINAMICS S120 Integrated for SIMATIC" and select SINAMICS Integrated, and select the firmware version of the device under "Version". 3. Click OK to confirm. Result: SINAMICS Integrated has been added to the project tree and can be networked with the CPU.

SIMATIC Drive Controller

96

System Manual, 11/2019, A5E46600094-AA

Configuring 7.3 Configuration procedure
Subsequently configuring a CPU Requirements: STEP 7 Professional and SINAMICS Startdrive are installed.
Proceed as follows if your project only contains a SINAMICS Integrated of a SIMATIC Drive Controller and you want to configure the missing CPU.
1. To ensure that only the CPU (without SINAMICS Integrated) is created, deselect the "Including SINAMICS Integrated" option under "Settings" > "Hardware configuration" > "Device-specific settings". Also deselect the "With Drive Controller group folder" option if you do not want a group folder to be created. Alternatively, you will need to delete the components you do not require.
2. Select "Add new device" in the project tree.
3. In the "Add new device" dialog, select the relevant device version under "Controller" > "SIMATIC Drive Controller" and the firmware version of the device under "Version".
4. Click OK to confirm.
Result: The CPU has been added to the project tree and can be connected to the SINAMICS Integrated .
Replacing devices in STEP 7 The following section explains how to replace a SIMATIC S7-1500 CPU with a SIMATIC Drive Controller in an existing project or vice versa.
1. Select the device to be replaced in the project tree and right-click to open the shortcut menu.
2. Select the "Replace device..." option
3. Select the module you want to use in the right-hand column. The "Compatibility information" section indicates whether the devices to be replaced are compatible and whether or not and, if so, which configurations will be lost in the process.
4. Click "OK" to confirm.
When replacing devices, remember that the SIMATIC Drive Controller consists of two networked devices ­ a CPU and a SINAMICS Integrated.
Replacing a modular SIMATIC S7-1500 CPU with a SIMATIC Drive Controller (CPU) If you replace a modular SIMATIC S7-1500 CPU with a SIMATIC Drive Controller, the configurations at the integrated PROFINET interfaces and at the integrated PROFIBUS interface are retained. In other words, the interfaces are mapped to an interface of the same type.
Configurations of the onboard I/O of S7-1500 compact CPUs are not applied. Please also note the compatibility information in the device replacement dialog.
The centralized I/O in the S7-1500 automation system is moved to the "unplugged modules" area. If required, copy the I/O to a distributed I/O ET 200MP system before device replacement.
A connected SINAMICS S120 CU320-2 remains connected ­ it is not swapped out for a SINAMICS Integrated. If you require a SINAMICS Integrated, you need to create it manually.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

97

Configuring 7.3 Configuration procedure
Replacing a SIMATIC Drive Controller (CPU) with a modular SIMATIC S7-1500 CPU For the device replacement, PROFIdrive Integrated is removed and SINAMICS Integrated remains as a non-networked device in the project. You can connect SINAMICS Integrated to a SIMATIC Drive Controller CPU again at a later time. If you no longer need SINAMICS Integrated, manually delete it from the configuration. Configurations at interface X142 are not applied.
Note Device replacement with other CPU classes (for example ET 200SP CPUs or ET 200pro CPUs) is not possible.
Replacing SINAMICS Integrated with SINAMICS S120 CU320-2 and vice versa Device replacement is currently not supported

SIMATIC Drive Controller

98

System Manual, 11/2019, A5E46600094-AA

Configuring 7.4 Display in the TIA Portal

7.4

Display in the TIA Portal

Project tree

In the project tree, STEP 7 creates the project tree for the SIMATIC Drive Controller . The project tree contains all elements and editors of the project.

Table 7- 3 Structure of the project tree

Under the "Drive Controller" group folder, you will find both the CPU and SINAMICS Integrated.

Under the "PLC" entry, you will find the device configuration and diagnostic options for the CPU, for example. You configure, assign parameters for and program the CPU with STEP 7 Professional.

Under the "Integrated" entry, you will find the device configuration and diagnostic options for integrated automatic speed control, for example. You configure and assign parameters for the SINAMICS Integrated with SINAMICS Startdrive.

Note
If there is no entry for SINAMICS Integrated, check whether SINAMICS Startdrive is correctly installed and whether the "Including SINAMICS Integrated" option is selected in the settings.

SIMATIC Drive Controller

System Manual, 11/2019, A5E46600094-AA

99

Configuring 7.4 Display in the TIA Portal

Network view

The network view displays the two components of the SIMATIC Drive Controller, for example:
 PLC_1 [CPU 150xD TF] and
 Integrated_1 [S120, CPU 150xD]

Different content is shown in the Inspector window depending on the selection in the network view:
 Select an interface  to configure it
 Select the CPU  to make CPU settings
 Select the SINAMICS Integrated  to make SINAMICS Integrated settings (for example
frame settings)
 Select the PROFIdrive Integrated subnet  to set the bus cycle time (and thus indirectly
the MC Servo clock) or couple the SINAMICS Integrated with another clock system (X142 technology I/Os or PROFINET interface X150).

You can copy/add/delete the components of the SIMATIC Drive Controller individually or together. If you subsequently configure a SINAMICS Integrated, you need to assign the SINAMICS Integrated manually to the master system to establish the PROFIdrive Integrated connection.

Figure 7-5 Display in the TIA Portal ­ network view

Topology view

As the topology view is irrelevant for the SINAMICS Integrated, only the CPU of the SIMATIC Drive Controller is displayed.

100

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.5 Configuration information

Device view

There is a separate device view for each of the two components of the SIMATIC Drive Controller.
 CPU device view: Parameter assignment of the CPU including communication interfaces
 SINAMICS Integrated device: Configuration of the SINAMICS S120 drive components (Line Modules, Motor Modules, motors, etc.), drive frames, etc.
You can switch between the two views simply and easily with a link.
As in the network view, different content is shown in the Inspector window depending on the selection in the device view.

7.5

Configuration information

Routing

The PROFIdrive Integrated represents a lower-level network. A programming device connected over PROFINET/PROFIBUS uses routing to access the SINAMICS Integrated . The following requirements must be met in order for you to set up an online connection with the SINAMICS Integrated:
 A subnet needs to be configured for the interface to which you are connecting the programming device. Routing to the SINAMICS Integrated is only possible if a subnet is configured.
 The configuration must be loaded to the CPU for CPU routing information to be available.

Accessible devices
As the SINAMICS Integrated is assigned to a lower-level network, you can only access the higher-level CPU ­ and not the SINAMICS Integrated ­ via "Accessible devices".

IP address of the PROFINET interfaces
With the SIMATIC Drive Controller, the IP addresses 192.168.215.240 to 192.168.215.255 are reserved for internal communication (subnet mask 255.255.255.240). When configuring the PROFINET interfaces (X150, X160, X130), you must ensure that the internal addresses are not located in their network. With IP, the network is defined by an AND connection of IP address and subnet mask.

Startdrive installation without STEP 7 Professional
If only Startdrive is installed, you can configure a SINAMICS Integrated "offline". Online functions are not possible because routing information is not available.

Upload as new station The SIMATIC Drive Controller can be uploaded as a new station. Only the CPU is loaded. Requirement: You have only configured the CPU and not the SINAMICS Integrated.
An upload of the SINAMICS Integrated is not currently supported.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

101

Configuring 7.6 Address assignment

7.6

Address assignment

7.6.1

Addressing

Introduction

The automation components and onboard I/O must have unique addresses so that they can be addressed. The following section explains the various address areas.

I/O address

I/O addresses (input/output addresses) are required in the user program to read inputs and set outputs.
STEP 7 automatically assigns input and output addresses when modules are configured. Each module uses a continuous range of input and/or output addresses corresponding to its volume of input and output data.
The same applies for the onboard I/O of the SIMATIC Drive Controller.

Figure 7-6 Automatic assignment of input/output addresses of interface X142 by STEP 7
STEP 7 assigns the address areas of the modules by default to the process image partition 0 ("Automatic updating"). This process image partition is updated in the main cycle of the CPU.
Note If you have interconnected the X142 digital input/outputs with the technology object measuring input, output cam or cam track, isochronous mode and assignment to the process image partition OB servo are essential. The setting is made automatically as soon as you interconnect a digital input or digital output with a corresponding technology object.

102

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.6 Address assignment
Device address (e.g., Ethernet address) Device addresses are addresses of modules with interfaces to a subnet (e.g., IP address or PROFIBUS address). They are required to address the various devices on a subnet, for example, to download a user program.
Hardware identifier STEP 7 automatically assigns a hardware identifier (HW identifier) for identification and addressing of modules and submodules. The HW identifier is used, for example, for diagnostics alarms or for instructions, to identify the faulty module or the addressed module. In the "System constants" tab of the Inspector window, you will find all hardware identifiers and their symbolic names (of the hardware identifier) for the selected module.
Figure 7-7 Automatic identification and addressing of modules and submodules in STEP 7

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

103

Configuring 7.7 Address space

7.7

Address space

7.7.1

Address space of the digital inputs and digital inputs/outputs

Address space of the digital inputs and digital inputs/outputs
The assignment of address space depends on which digital inputs and digital inputs/outputs are used:
 8 DI/DQ at interface X142 (I/Os are assigned to the CPU)
 12 DI, 8 DI/DQ at interface X122/X132 (I/Os are by default assigned to the SINAMICS Integrated)

Interface X142 (CPU) The digital input/outputs of interface X142 are permanently assigned to the CPU.

Table 7- 4 Scope of the input/output data of the digital input/outputs of interface X142

I

76 bytes

Q

42 bytes

STEP 7 assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7, that is, freely assign the start address. The addresses of the channels are derived from the start address.
You can find the addresses in the device view of the CPU under Device overview and in the Inspector window, on the General tab under I/O addresses.
You can find a description of the control and feedback interface of the digital input/outputs at interface X142 in Parameter assignment of digital input/outputs (X142) (Page 109).

104

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.7 Address space

Interfaces X122/X132 (SINAMICS Integrated)
The digital inputs and digital inputs/outputs are by default assigned to the drive (CU DO1). You can use frame interconnection so that these digital inputs and digital inputs/outputs can also be used by the CPU. To do so, you configure a frame 39x for automatic speed control.

Table 7- 5
Frame 390 391 392 393
394

Scope of input/output data of the digital inputs and digital inputs/outputs X122/X132

Inputs 4 bytes 14 bytes 30 bytes 42 bytes
6 bytes

Outputs 4 bytes 6 bytes 6 bytes 8 bytes
6 bytes

Use of Integrated/CU320-2
No measuring input; DI0 to DI7; DI/DQ8 to DI/DQ15 Two measuring inputs; DI0 to DI7; DI/DQ8 to DI/DQ15 Six measuring inputs; DI0 to DI7; DI/DQ8 to DI/DQ15 8 measuring inputs; DI0 to DI7; DI16, DI17, DI20, DI21, DI/DQ8 to DI/DQ15 (for CU310-2 also: DI18, DI19, DI22, DO16, AI0) No measuring inputs; DI0 to DI7; DI16, DI17, DI20, DI21, DI/DQ8 to DI/DQ15 (for CU310-2 also: DI18, DI19, DI22, DO16, AI0)

You can find a description of the control and feedback interface of the frames in the SINAMICS S120/S150 List Manual (https://support.industry.siemens.com/cs/de/de/view/109763271/en), function diagram 2422 and 2495 to 2500. There you will also find a description of other frames that are not the focus with the SIMATIC Drive Controller.

See also SINAMICS G/S FAQ: Configuration of standard frames in the TIA Portal (https://support.industry.siemens.com/cs/ww/en/view/82841762)

STEP 7 assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7, that is, freely assign the start address. The addresses of the channels are based on the start address.

You can, for example, find the assigned addresses:

 In the device view of the SINAMICS Integrated, in the Inspector window, on the General tag under frame configuration

 In the network view when you select the network; the addresses are then displayed under Address overview in the Inspector window

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

105

Configuring 7.8 Process images and process image partitions

7.8

Process images and process image partitions

7.8.1

Process image - overview

Process image input and process image output
The process image input and output is an image of the signal states. The CPU transfers the values from the input and output modules to the process image input and output. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then transfers the signal states of the input modules to the process image inputs.

Advantages of the process image
A process image accesses a consistent image of the process signals during cyclic program execution. If a signal state at an input module changes during program execution, the signal state is retained in the process image. The CPU does not update the process image until the next cycle.

Consistency of the process image
When the process image is updated, the SIMATIC Drive Controller accesses the data of each submodule as consistent data. This behavior is identical to the modular SIMATIC S71500 CPUs.
The maximum data width that is accessed as consistent data for each submodule depends on the IO system. For PROFINET IO, for example, this data width is 1024 bytes.

32 process image partitions
The CPU uses process image partitions to synchronize the updated inputs/outputs of specific modules with specific parts of the user program.
With the SIMATIC Drive Controller, the overall process image is subdivided into up to 32 process image partitions (PIP).
The CPU automatically updates PIP 0 (automatic update) in each program cycle and assigns it to OB 1.
You can assign other OBs to process image partitions PIP 1 to PIP 31 during configuration of the IO devices.
Before the start of the OB, the CPU writes the outputs of the assigned process image partition (PIPQ) straight to the peripheral outputs of the IO devices. The CPU then updates the assigned process image partition for inputs (PIPI) and reads in the process signals.
The figure below illustrates the updating of a process image partition.

106

Figure 7-8 Updating a process image partition

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.8 Process images and process image partitions
Isochronous processing of the technology I/Os of interface X142
The operating modes timer DI, timer DQ, oversampling DI, oversampling DQ and event/period measurement require isochronous processing in OB91 (MC Servo) or OB6x (isochronous mode interrupt OBs). If you have configured one of those operating modes and have not set isochronous processing, this will result in an error when compiling the hardware configuration.
If you interconnect the technology I/Os with the technology object measuring input, output cam or cam track, isochronous mode and assignment to the process image partition OB servo are essential. The setting is made automatically as soon as you interconnect a technology I/O with a corresponding technology object.

7.8.2

Updating process image partitions in the user program

Requirements

Alternatively, you can also use the following instructions to update process images:
 "UPDAT_PI" instruction
 "UPDAT_PO" instruction
You will find the instructions in STEP 7 in the "Instructions" task card under "Extended instructions" in the "Process image" folder. You can call the instructions from any point in the user program.
Requirements for updating process image partitions with the "UPDAT_PI" and "UPDAT_PO" instructions:
 The process image partitions must not be assigned to any OB. This means the process image partitions are not automatically updated.

Note Update of PIP 0
PIP 0 (automatic update) cannot be updated with the "UPDAT_PI" and "UPDAT_PO" instructions.

UPDAT_PI: Updates the process image partition of the inputs With this instruction, you read the signal states from the input modules of the IO devices to the process image partition of the inputs (PIPI).
UPDAT_PO: Updates the process image partition of the outputs With this instruction, you transfer the process image partition of the outputs of the IO devices to the output modules.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

107

Configuring 7.8 Process images and process image partitions
Direct I/O access to the inputs and outputs of the IO devices You also have direct read and write access to the I/O as an alternative to access via the process image, should direct access be required for programming reasons. Direct (write) I/O access also writes to the process image. This prevents a subsequent output of the process image from again overwriting the value written by direct access.
Additional information You can find more information on process image partitions in the Cycle and response times (https://support.industry.siemens.com/cs/ww/en/view/59193558) function manual.

108

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9

Configuration of digital inputs/outputs (X142)

You configure the required digital input/outputs and operating modes over interface X142.

Overview of supported operating modes
You can configure the following operating modes for the individual channels of the X142 interface:

Table 7- 6 Overview of operating modes

Operating mode of X142 I/Os (8 channels) DI
DQ

Functionality
Digital input · Input delay (1 µs/125 µs) · Hardware interrupt (optional) Hardware interrupt at rising and/or falling edge Digital output

Use with technology objects (TOs)

Use via I/O area (without TO)

· Hardware limit

No OB restrictions

switch for position-

ing and synchro-

nous axes

· Output cam

No OB restrictions

· Cam track

Timer DI Timer DQ

Acquisition of the switching time of a digital input signal with up to two edges per application cycle (e.g. for use as measurement sensing input)
Precisely timed output of a digital output signal with up to two edges per application cycle (e.g. for use as an output cam output)

Measuring input (OB 91 required)
· Output cam (OB 91 required)
· Cam track (OB 91 required)

OB 91/OB 6x required
OB 91/OB 6x required

Oversampling DI Acquisition of 32 states of a digital --input signal at equal intervals per application cycle

Oversampling DQ

Output of 32 states of a digital output --signal at equal intervals per application cycle

Event/period dura- Measurement of number of edges --tion measurement and period duration (e.g. for simple
speed measurement with hole mask and light barrier)

Pulse width modu- Output of a configurable pulse-pause ---

lation PWM

ratio with a configurable frequency

OB 91/OB 6x required
OB 91/OB 6x required
OB 91/OB 6x required
No OB restrictions

Isochronous mode Optional
Optional Required Required
Required Required Required Optional

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

109

Configuring 7.9 Configuration of digital inputs/outputs (X142)

Procedure

1. Select the Device configuration entry in the project tree under the CPU. The device view opens.
2. In the device view, click the DI/DQ 8x24VDC [X142] interface. You can now edit the configurable properties under Properties in the Inspector window.
You can find an overview of all channels and your selected settings under Channel parameters.

Figure 7-9 Channel parameters
To configure your selected channels, click on the arrow beside the channel number.

110

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.1

Configuring the DI operating mode

DI operating mode 1. Select the operating mode DI for the required channel at interface X142.

Figure 7-10 DI operating mode
Inversion You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted. Input delay To suppress faults, you can set an input delay of 1 µs or 125 µs for the input filter of the digital inputs. Changes to the signal are only detected if they are constantly pending for longer than the set input delay time. Hardware interrupts In the Hardware interrupts section, you can assign a hardware interrupt to a rising and/or falling edge.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

111

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Further information You can find more information on the DI operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

7.9.2

Configuring the DQ operating mode

DQ operating mode 1. Select the DQ operating mode for the required channel at interface X142.

Figure 7-11 DQ operating mode
Inversion You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted.
High-speed output If you select the high-speed output option, the digital output is switched alternately to 24 V DC and ground. Allows for extremely steep edges (output delay in the 1 s range).
Further information You can find more information on the DQ operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

112

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.3

Configuring Timer DI operating mode

Timer DI

Timer DI operating mode allows you to acquire the switching time of up to two edges per application cycle (for example OB 91, OB 6x), for example for use as a measuring output.
 Select the Timer DI operating mode for the required channel.

Figure 7-12 Operating mode: Timer DI
Inversion You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted. Input delay To suppress faults, you can set an input delay of 1 µs or 125 µs for the input filter of the digital inputs. Changes to the signal are only detected if they are constantly pending for longer than the set input delay time. To allow signals pending very briefly to be detected with timer DI (for example level of 100 µs), set an input delay of 1 µs.

Assigning the measuring input technology object The measuring input technology object must always be assigned to another technology object whose position is evaluated by the measuring input. You can assign the measuring input technology object to the following technology objects:
 Synchronous axis
 Positioning axis
 External encoder
You can assign the measuring input technology object precisely one axis or one external encoder. You can assign multiple measuring input technology objects to one axis or one external encoder.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

113

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Configuring the measuring input technology object  Select the configuration of the measuring input in the Technology objects folder in the project tree.  Configure the basic properties of the technology object in the Basic parameters configuration window.

Figure 7-13 Basic parameters
Name  Define the name of the measuring input in this field. The technology object is listed under
this name in the project tree. The tags of the measuring input can be used in the user program under this name.
Assigned axis or external encoder STEP 7 displays the axis or external encoder assigned to the measuring input. You can use the link to directly access the basic parameters of the higher-level technology object.
Unit of measurement The unit of measure shown for the position of the measuring input corresponds to the unit of measure of the higher-level technology object.

114

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Hardware interface  In the Hardware interface configuration window, assign the a measuring input type Timer
DI and the selected channel to the technology object.

Figure 7-14 Hardware interface
Measuring input type: Measuring using Timer DI  Select a measurement input for a measurement using a Timer DI. The selection box
displays all channels that have been configured correctly.
Note Extending the configuration limits A maximum of eight timer DI can be configured at the X142 interface. If the timer DI at X142 are not sufficient for your needs, you can configure a further eight measuring inputs at interface X122/X132. You can also extend the configuration limits using time-based I/O modules: · ET 200SP distributed I/O system: TM Timer DIDQ 10x24V · ET 200MP distributed I/O system: TM Timer DIDQ 16x24V You can find more information on these systems in Technology functions of the CPU (Page 44).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

115

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Note Unsupported instructions for X142 The function blocks for the use of time-based IO (TIO instructions) are not supported by the X142 interface. Recommendation: Use the measuring input technology object for timer DI.
Adjustment for measuring range activation time  To adjust the activation time defined in the system, enter an additional activation time in
the Extended parameters configuration window.
Lost Edge Counter (LEC) Timer DI support Lost Edge Counter. If more than two edges to be detected occur within one position control cycle, a measured value cannot be evaluated for the other edges to be detected. The LEC records the number of edges lost. Which lost edges are recorded in the LEC depends on the mode set in the Motion Control instruction. For example, if you only want to measure rising edges, the LEC only records the rising edges not measured. The LEC can count and display a maximum of seven lost edges. The number of lost edges is displayed in the function block and in the technology data block.
Further information You can find additional information on the following topics in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049):  Measuring input type: Timer DI  Measuring input type: SINAMICS (central measuring input)  Measuring input type: PROFIdrive telegram (drive or external encoder)  Lost Edge Counter (LEC)

116

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.4

Configuring Timer DQ operating mode

Timer DQ

Timer DQ operating mode allows you to output up to two edges per application cycle (for example OB 91, OB 6x) at a specific time, for example, for use as a cam output.
1. Select the Timer DQ operating mode for the required channel.

Figure 7-15 Mode of operation: Timer DQ
Inversion You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted. High-speed output If you select the high-speed output option, the digital output is switched alternately to 24 V DC and ground. Advantages of the high-speed output:  Extremely steep edges (output delay in the 1 s range)
 Extremely high switching frequencies
 Maximum switching precision, for example, for use as a cam output

Assigning the output cam technology object The output cam technology object must always be assigned to another technology object whose position is evaluated. You can assign the output cam technology object to the following technology objects:  Synchronous axis
 Positioning axis
 External encoder
You can assign exactly one axis or one external encoder to the output cam. You can assign multiple output cams to one axis or one external encoder.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

117

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Configuring the output cam technology object 1. Select the configuration of the output cam in the Technology objects folder in the project tree. 2. Configure the basic properties of the technology object in the Basic parameters configuration window.

Figure 7-16 Basic parameters
Name 1. Define the name of the output cam in this field. The technology object is listed under this
name in the project tree. The tags of the output cam can be used in the user program under this name.
Assigned axis or external encoder STEP 7 displays the axis or external encoder assigned to the output cam. You can use the link to directly access the basic parameters of the higher-level technology object.

118

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Output cam type 1. Select an output cam type on the basis of the required switching behavior:  Position-based cam (position-dependent switch-on/switch-off)  Time-based cam (position-dependent switch-on and position-independent or time-
dependent switch-off)
Output cam reference 1. In this selection, configure whether the switching points of the output cams are to
reference the actual position or the position setpoint.
Unit of measurement The unit of measurement shown for the position of the output cam corresponds to the unit of measurement of the higher-level technology object. When a time-based cam is selected as the output cam type, the unit of measurement for the switch-on duration and other times is also indicated. The unit of measurement for output cams is always ms.
Hardware interface Select the type of cam output in the Hardware interface configuration window.

Figure 7-17 Hardware interface
SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

119

Configuring 7.9 Configuration of digital inputs/outputs (X142)
1. Select whether you want to output the switching signals generated at the digital output.  Activate output
Select one of the following two output options for outputting the cam track: ­ Output via Timer DQ
For output by Timer DQ, select a cam output in the Output field. The selection box displays all channels that have been configured correctly.
Note Extending the configuration limits A maximum of eight timer DQ can be configured at the X142 interface. If the Timer DQ at X142 are not sufficient for your needs, you can increase the configuration limits with time-based IO modules: · ET 200SP distributed I/O system: TM Timer DIDQ 10x24V · ET 200MP distributed I/O system: TM Timer DIDQ 16x24V You can find more information on these systems in Technology functions of the CPU (Page 44).
Note Unsupported instructions for the X142 interface The function blocks for the use of time-based IO (TIO instructions) are not supported by the X142 interface. Recommendation: For the timer DQ, use the output cam or cam track technology object.
­ Output by digital output module For output by a digital output module, select a digital output in the Output field. Only the digital outputs with previously defined PLC tags are displayed for selection.
Note Output via the X122, X132 or X142 interface Also use the "Output by digital output module" setting in the following cases: · The output occurs at the X142 interface by a DQ instead of a Timer DQ. · The output occurs by a digital output of the X122 or X132 interface (configured
telegram 39x required) In both cases you must define a PLC tag for the respective I/O address.
Output deactivated When output is deactivated, the cam track is evaluated only in the software.

120

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142) Extended parameters > Activation time
Figure 7-18 Activation time
The specified output cam type is indicated at the top of the Activation time configuration window. 1. For a time shift of the switch-on and switch-off times of the output cams, enter an
activation time and a deactivation time.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

121

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Extended parameters Parameter > Hysteresis

Figure 7-19 Hysteresis
1. To prevent unwanted changes in the switching state of the output cams of a cam track, enter a hysteresis value.
When using output cams that reference the actual position, it is advisable to enter a hysteresis value (> 0.0).
Cam track technology object In addition to the output cam technology object already described, the cam track technology object is also available. You can find a detailed description of how to configure the cam track technology object in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049).

122

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.5

Configuring Oversampling DI operating mode

Oversampling DI The Oversampling DI function detects 32 signal states of a given digital input at equal intervals per application cycle (for example OB 91, OB 6x). The 32 states are returned together as a 32-bit value in the feedback interface. The value is read in synchronously to Ti (actual value acquisition).
Note Isochronous mode Oversampling requires isochronous mode.
The figure below is an example of Oversampling DI4:

TAPP MSB LSB

Application cycle Most significant bit Least significant bit

Figure 7-20 Oversampling DI

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

123

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Configuring Oversampling DI 1. Select the Oversampling DI operating mode for the required channel.

Figure 7-21 Oversampling DI

Note Extending the configuration limits
A maximum of eight oversampling DI can be configured at the X142 interface. If the Oversampling DI at X142 are not sufficient for your needs, you can increase the configuration limits with time-based IO modules, for example: · ET 200SP distributed I/O system: TM Timer DIDQ 10x24V · ET 200MP distributed I/O system: TM Timer DIDQ 16x24V
You can find more information on these systems in Technology functions of the CPU (Page 44).

Inversion
You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted.
Input delay
To suppress faults, you can set an input delay of 1 µs or 125 µs for the input filter of the digital inputs. Changes to the signal are only detected if they are constantly pending for longer than the set input delay time.
To allow signals pending very briefly to be detected by oversampling DI (for example level of 100 µs), set an input delay of 1 µs.

Further information
You can find more information on the Oversampling DI operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

124

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.6

Configuring Oversampling DQ operating mode

Oversampling DQ The Oversampling DQ function outputs 32 signal states at equal intervals per application cycle (for example OB 91, OB 6x). Up to 32 edges are therefore possible per application cycle at a given digital output. The 32 states are set over the control interface. The output occurs synchronously with time TO (setpoint transfer).
Note Isochronous mode Oversampling requires isochronous mode.
The image below is an example of oversampling of DQ5:

TAPP MSB LSB

Application cycle Most significant bit Least significant bit

Figure 7-22 Oversampling DQ

Note Output frequency with the Oversampling function
The combination of application cycle and the 32-bit string output must not result in an output frequency that exceeds the maximum switching frequency for the digital outputs.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

125

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Configuring an oversampling DQ 1. Select the operating mode Oversampling DQ for the required channel.

Figure 7-23 Oversampling DQ

Note Extending the configuration limits
A maximum of eight oversampling DQ can be configured at the inputs/outputs of the X142 interface. If the oversampling DQ at X142 are not sufficient for your needs, you can increase the configuration limits with time-based IO modules, for example: · ET 200SP distributed I/O system: TM Timer DIDQ 10x24V · ET 200MP distributed I/O system: TM Timer DIDQ 16x24V
You can find more information on these systems in Technology functions of the CPU (Page 44).

Inversion
You can invert the 24 V signal to adjust it to the process. By default, the signal is not inverted.
High-speed output
If you select the high-speed output option, the digital output is switched alternately to 24 V DC and ground. Allows for extremely steep edges (output delay in the 1 s range).
To allow signals pending very briefly to be output by oversampling DQ (for example level of 0.1 ms), you must operate the output as a high-speed output.

Further information
You can find more information on the Oversampling DQ operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

126

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

7.9.7

Configuring event/period measurement operating mode

Event/period duration measurement Event counter You use event measurement (16-bit value) to measure the number of rising edges per application cycle over the feedback interface. The event counter is a rotary counter.  An event counter overflow is not displayed.  The exact value must be calculated on the basis of the difference. Period measurement You use the period duration measurement (32-bit value) to measure the number of increments of 41.67 ns between the last two rising edges received in the application cycle over the feedback interface. Period = 41.67 ns · number of increments
Note Isochronous mode
Event/period measurement requires isochronous mode.
1. Select the the required channel for the Event/period measurement operating mode.

Figure 7-24 Event/period duration measurement
Inversion
You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted.
Input delay
To suppress faults, you can set an input delay of 1 µs or 125 µs for the input filter of the digital inputs. Changes to the signal are only detected if they are constantly pending for longer than the set input delay time.
To allow signals pending very briefly to be detected at high counting frequencies, you need to set an input delay of 1 µs.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

127

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Further information You can find more information on the Event/period measurement operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

7.9.8

Configuring Pulse width modulation (PWM) operating mode

Areas of application
You can use pulse width modulation (PWM) to generate periodic pulses with a constant rated voltage and a variable pulse duration.
Possible applications for pulse width modulation (PWM):
 Control of proportional valves and directional valves
­ Energy savings as a result of a reduction in holding current or for controlling the valve position
 Heating control, for example, via an external additional power unit

Principle of operation
With pulse width modulation, a signal with defined time period and variable pulse duration is output at the digital output. You use pulse width modulation to vary the mean value of the output voltage. This allows you to control the load current or the power in line with the connected load. The pulse duration can be between 0 (no pulse, always off) and full-scale deflection (no pulse, always on).

 Period  Pulse duration
Pulse width modulation (PWM) is based on the specification of a base frequency of 1, 2, 4, 8 or 16 kHz. You can alter the base frequency in terms of period and pulse-pause ratio over the control interface (32-bit value). The bit pattern is shown in each base period. The base period is defined on the basis of the base frequency. A "0" is LOW and a "1" is HIGH.

128

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Examples

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Base frequency: 1 kHz  Base period: 1 ms 1111 0000 0000 0000 1111 0000 0000 0000 Time period: 500 µs; 375 µs LOW; 125 µs HIGH

Figure 7-25 Pulse width modulation
Base frequency: 1 kHz 1111 1111 1111 1111 0000 0000 0000 0000 Time period: 1 ms; 500 µs LOW; 500 µs HIGH
1111 1111 0000 0000 0000 0000 0000 0000 Time period: 1 ms; 750 µs LOW; 250 µs HIGH
1111 0000 1111 0000 1111 0000 1111 0000 Time period: 250 µs; 125 µs LOW; 125 µs HIGH
Base frequency: 2 kHz 1010 1010 1010 1010 1010 1010 1010 1010 Time period: 31.25 µs; 15.625 µs LOW; 15.625 µs HIGH

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

129

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Configuring Pulse width modulation (PWM) operating mode To configure PWM operating mode, first define the required base frequency of pulse width modulation. You can configure the base frequency as 1, 2, 4, 8 or 16 kHz. The selected base frequency then applies to all channels of interface X142.

Figure 7-26 Base frequency of pulse width modulation
Now select the channels for PWM operating mode. If you want to configure very short pulses, enable the high-speed output function.

Figure 7-27

Pulse width modulation channel
The selected digital output is switched with the selected base frequency and the switching pattern from the control interface.
Inversion
You can invert the 24 V signal to adjust it to your process. By default, the signal is not inverted.
High-speed output
If you select the high-speed output option, the digital output is switched alternately to 24 V DC and ground. Allows for extremely steep edges (output delay in the 1 s range).
To allow signals pending very briefly to be output with pulse width modulation (for example, level duration of 0.1 ms), you must operate the output as a high-speed output.

130

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Further information You can find more information on the Event/period measurement operating mode in Assignment of the control interface (Page 131) and Assignment of the feedback interface (Page 132).

7.9.9

Assignment of the control interface

Control interface
The user program uses the control interface to influence the behavior of the technology inputs and technology outputs at interface X142.
The following table shows the control interface assignment:

Table 7- 7 Assignment of the control interface

Offset from start address Byte 0 Byte 1 to 3 Byte 4 to 7
Byte 8 to 11 Byte 12 to 15 Byte 16 to 19 Byte 20 to 23 Byte 24 to 27 Byte 28 to 31 Byte 32 to 35 Byte 36

Parameter
SET_DQ (DQ0 to DQ7) Reserved TEC_OUT (DQ0)
TEC_OUT (DQ1) TEC_OUT (DQ2) TEC_OUT (DQ3) TEC_OUT (DQ4) TEC_OUT (DQ5) TEC_OUT (DQ6) TEC_OUT (DQ7) SEL (DI0, DI1)

Meaning
Set DQ (DQ0 to DQ7) Must not be used Timer DQ: Byte 0, 1: OFF TIME (output time stamp for DQ reset) Byte 2, 3: ON TIME (output time stamp for setting DQ) Oversampling DQ: Byte 0 to 3: 32 states for oversampling Pulse width modulation (PWM): Byte 0 to 3: PWM bit pattern See Byte 4 to 7

SEL DI1 SEL DI0

Bit 5 to 7: Edge selection for time stamp acquisition DI1 001 Rising edges only 010 Falling edges only 011 Rising and falling edges (in order of occurrence) 101 First rising, then falling edge 110 First falling, then rising edge 000, 100, 111 reserved Bit 4: Cyclical time stamp acquisition for DI1 Bit 0 to 3: see SEL DI1

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

131

Configuring 7.9 Configuration of digital inputs/outputs (X142)

Offset from start address Byte 37 Byte 38 Byte 39 Byte 40, 41

Parameter
SEL (DI2, DI3) SEL (DI4, DI5) SEL (DI6, DI7) STW

Meaning See byte 36

MSL --SYN

Bit 12 to 15: Sign of life counter (master sign of life) Bit 1 to 11: Reserved; bits must be set to 0 Bit 0: Synchronization of X142 interface with the user program

7.9.10

Assignment of the feedback interface

Feedback interface
The user program receives current values and status information from the X142 interface technology I/Os over the feedback interface.
The following table shows the feedback interface assignment:

Table 7- 8 Assignment of the feedback interface

Offset from start address Byte 0 Byte 1 to 3 Byte 4 to 7

Parameter
STS_DI (DI0 to DI7) Reserved TEC_IN (DI0)

Byte 8 to 11 TEC_IN_EXT (DI0)

Byte 12 to 15 Byte 16 to 19 Byte 20 to 23 Byte 24 to 27 Byte 28 to 31 Byte 32 to 35 Byte 36 to 39 Byte 40 to 43 Byte 44 to 47

TEC_IN (DI1) TEC_IN_EXT (DI1) TEC_IN (DI2) TEC_IN_EXT (DI2) TEC_IN (DI3) TEC_IN_EXT (DI3) TEC_IN (DI4) TEC_IN_EXT (DI4) TEC_IN (DI5)

Meaning

State DI (DI0 to DI7)

Must not be used

Timer DI:

Byte 0, 1: 2nd TIME/OFF TIME (second input time stamp)

Byte 2, 3: 1st TIME/ON TIME (first input time stamp)

Oversampling DI:

Byte 0 to 3: Oversampling value

Event/period duration measurement

Event measurement: Byte 0, 1: Reserved

Byte 2, 3: Counter value

Time period measurement:

Byte 0 to 3: Measured time period

See byte 4 to 11

132

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.9 Configuration of digital inputs/outputs (X142)

Offset from start address Byte 48 to 51 Byte 52 to 55 Byte 56 to 59 Byte 60 to 63 Byte 64 to 67 Byte 68

Parameter
TEC_IN_EXT (DI5) TEC_IN (DI6) TEC_IN_EXT (DI6) TEC_IN (DI7) TEC_IN_EXT (DI7) LEC (DI0, DI1)

Byte 69

LEC (DI2, DI3)

Byte 70

LEC (DI4, DI5)

Byte 71

LEC (DI6, DI6)

Byte 72 Byte 73 Byte 74, 75

Reserved Layout property ZSW SSL
--SYNC Channel address Channel mode

Meaning
Bit 4 to 6: Lost Edge Counter for DI1 Bit 0 to 2: Lost Edge Counter for DI0 Bit 3, 7: Reserved (must not be used) Bit 4 to 6: Lost Edge Counter for DI3 Bit 0 to 2: Lost Edge Counter for DI2 Bit 3, 7: Reserved (must not be used) Bit 4 to 6: Lost Edge Counter for DI5 Bit 0 to 2: Lost Edge Counter for DI4 Bit 3, 7: Reserved (must not be used) Bit 4 to 6: Lost Edge Counter for DI7 Bit 0 to 2: Lost Edge Counter for DI6 Bit 3, 7: Reserved (must not be used) Must not be used Specific value Bit 12 to 15: Sign of life counter (slave sign of life) Bit 10, 11: Reserved (must not be used) Bit 8: X142 interface is synchronized with user program Bit 4 to 7 and 9: Number of the respective DI or DQ Bit 0 to 3: Operating mode of the respective DI or DQ

Substitute value behavior
If the CPU is in STOP, the digital outputs (irrespective of any inversion set) return "0" (LOW level) as a substitute value.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

133

Configuring 7.9 Configuration of digital inputs/outputs (X142)
Reading back the terminal state STS_DI (offset byte 0 of the feedback interface) represents the logical channel status, taking account of any inversion configured.
Digital inputs With digital inputs (DI, Timer DI, oversampling DI, event/period measurement), the value corresponds to the logical state of the digital input.
Digital outputs With digital outputs (DQ, Timer DQ, oversampling DQ, pulse width modulation PWM), the value corresponds to the actual terminal state of the digital output. If the terminal state deviates from the controlled state, there may be an output driver short-circuit or defect.
Note STS_DI Signals are only reliably acquired over STS_DI if the level is significantly longer than the input delay + acquisition cycle of the digital inputs/outputs (X142). Example: If you operate the digital inputs/outputs (X142) as isochronous to the MC Servo in a cycle of 2 ms and a set input delay of 125 µs, the level duration must be > 2.125 ms.

134

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

7.10

Configuring 7.10 Configuring the digital inputs and digital inputs/outputs (X122/X132)
Configuring the digital inputs and digital inputs/outputs (X122/X132)
The digital inputs and digital inputs/outputs (X122/X132) are mainly assigned to SINAMICS Integrated. Through configuration (frames 39x), you can, however, also use the digital inputs and digital inputs/outputs (X122/X132) for the CPU. The following applies:
 A digital output is always only available exclusively to SINAMICS Integrated or to the CPU.
 If you use a digital input for the CPU, you can also interconnect the digital input at the drive end.
You can configure the digital inputs and digital inputs/outputs (X122/X132) channel by channel. To do so, go to the function view in the project tree under "Automatic speed control" > "Parameter assignment" and set the configuration under "Inputs/outputs".
Bidirectional inputs/outputs are configured in the following configuration mask.

Figure 7-28 Bidirectional inputs/outputs
SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

135

Configuring 7.10 Configuring the digital inputs and digital inputs/outputs (X122/X132)
You can assign the SINAMICS digital inputs and digital inputs/outputs (X122/X132) using frame 39x of the PU. The status information of the digital inputs and digital outputs is then transferred at the PROFIdrive PZD sampling rate (p2048). The inputs/outputs are also sampled in the configured sampling time for the digital inputs and digital inputs/outputs (p0799). The application of the output values and return of the input values are therefore subject to dead times and jitter.
Figure 7-29 Configuration of frame 393 for automatic speed control
You can find further information on the various different frame types in Address space (Page 104). Note Interface X142 If you have particularly strict requirements for the digital input/outputs, use the digital input/outputs at interface X142. The digital inputs/outputs can be operated in isochronous mode and allow very short response times.

136

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

7.11

Configuring the clock system

Configuring 7.11 Configuring the clock system

7.11.1

Overview of isochronous mode

Introduction

The SIMATIC Drive Controller supports isochronous mode for the following clock systems:  PROFINET IO interface X150  PROFIBUS DP interface X126  Technology I/Os X142  SINAMICS Integrated with PROFIdrive Integrated (always isochronous) You can operate the clock systems separately or coupled on an isochronous basis. Exception: Isochronous coupling of the PROFIBUS DP interface is not possible.

Independent isochronous mode If you want to operate the clock systems separately in isochronous mode, configure a cycle time for each clock system and assign the clock systems to different process images, for example:  SINAMICS Integrated  PIP OB Servo [OB 91]  PROFIBUS DP interface X126  PIP 1 of isochronous mode interrupt OB [OB 6x] The clock systems are in this case not isochronous to each other.
Note You cannot operate the X142 technology I/Os in isochronous mode separately from SINAMICS Integrated. If you want to operate technology I/Os X142 and SINAMICS Integrated in isochronous mode simultaneously, always set coupled isochronous mode.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

137

Configuring 7.11 Configuring the clock system

Coupled isochronous mode In coupled isochronous mode, the relevant clock systems use a shared system clock.
The leading clock system provides its own system clock to the other clock systems.
The following table shows the possible combinations for coupled isochronous mode on the SIMATIC Drive Controller. The leading clock system for each combination is indicated.

Table 7- 9 Possible combinations for coupled isochronous mode

PROFINET IO interface X150
X (leading) X (leading) X (leading)
-

Technology I/Os X142 (local send clock) X X X (leading)

SINAMICS Integrated (PROFIdrive Integrated)
X X -1 X

PROFIBUS DP interface X126 -

1 SINAMICS Integrated is not configured.

You configure coupled isochronous mode in STEP 7; see Setting the clock system (Page 150).

Note
Isochronous coupling of the PROFIBUS interface with other clock systems is not possible.
If you want to expand the drive configuration limits with distributed drive systems, connect those distributed drive systems over the PROFINET IO interface X150. Only the PROFINET IO interface X150 can be connected isochronously alongside the MC Servo to the clock system of SINAMICS Integrated and the X142 technology I/Os.

138

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system

7.11.2

Configuring drives with SINAMICS Integrated isochronously

Requirements

 STEP 7 , V16 or higher  SINAMICS Startdrive , V16 or higher

Procedure

1. Add a SIMATIC Drive Controller to your project. The network view displays the components of a SIMATIC Drive Controller: SIMATIC S71500 CPU and SINAMICS Integrated, networked through PROFIdrive Integrated.

Figure 7-30 SIMATIC Drive Controller in the network view

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

139

Configuring 7.11 Configuring the clock system
2. Open the device view of SINAMICS Integrated. Configure the SINAMICS S120 drive system with its drive objects. You can find the relevant details in the SINAMICS S120 with Startdrive commissioning manual (https://support.industry.siemens.com/cs/ww/en/view/109763294).

Figure 7-31 Configuring the SINAMICS S120 drive system

140

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system 3. Select the drive control in the SINAMICS Integrated device view. Check the default PROFIdrive telegrams In the properties, under "Integrated_1" > "Telegram configuration" in the "General" tab. Make changes if required. The following default settings are made automatically: ­ Automatic speed control: Frame 393 ­ Supply: Frame 370 ­ Drive axes: Frame 105
Figure 7-32 Configuring PROFIdrive frames
4. Create the axis technology objects. You create the axis technology objects under "Technology objects > Add new object" in the project tree.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

141

Configuring 7.11 Configuring the clock system
5. Assign the configured drives to the axis technology objects. ­ Open the configuration of the technology object. ­ Navigate to "Hardware interface" > "Drive". ­ Select the "PROFIdrive" entry from the "Drive type" drop-down list. ­ Select the "Antrieb" entry from the "Data connection" drop-down list. ­ Select a SINAMICS Integrated drive axis from the "Drive" list. Only drives for which a suitable PROFIdrive frame has been configured are available for selection in the "Drive" list. You can find which PROFIdrive frames are supported by the SINAMICS Integrated in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049).

Figure 7-33 Assigning drives to the technology objects
The technology object is connected to the drive. When the drives are assigned to the axis technology objects, the following takes place: ­ MC-Servo is created (if not already present) ­ The TPA OB Servo is entered as the process image for all PROFIdrive telegrams

142

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
6. Once you have configured all axis technology objects, switch back to the drive configuration if necessary. You can use the "Device configuration" button.
Figure 7-34 "Device configuration" button
Note With SINAMICS Integrated, all frames must be operated in isochronous mode on OB Servo (OB 91) or isochronous mode interrupt OB (OB 6x). STEP 7 checks compliance with this rule when compiling the SIMATIC Drive Controller. Exception: If you insert a SIMATIC Drive Controller in your project from the module catalog, "--- (none)" is entered as the organization block for the drive control. If you do not configure any other drive objects, you can also compile and download to the device without isochronous mode.

Figure 7-35 Configuring telegrams as isochronous
SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

143

Configuring 7.11 Configuring the clock system
Setting the clock system You have configured SINAMICS Integrated as isochronous. Next, set the clock system. Make the following settings in accordance with whether you are operating SINAMICS Integrated in independent or coupled isochronous mode:  For independent isochronous mode: ­ Set the required cycle time. ­ Assign the "MC Servo" OB the clock system of SINAMICS Integrated.  For coupled isochronous mode: ­ Assign the clock system of SINAMICS Integrated the leading clock system. You can find details of how to assign the leading clock system in Setting the clock system (Page 150).

7.11.3

Configuring technology I/Os (X142) as isochronous

Requirements

 STEP 7, V16 or higher
 SIMATIC Drive Controller has been configured.
 At least one axis technology object has been created at the CPU of the SIMATIC Drive Controller. See for example Configuring drives with SINAMICS Integrated isochronously (Page 139).

144

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Procedure

Configuring 7.11 Configuring the clock system
1. Open the device view of the CPU. 2. Configure the operating modes of the technology I/Os in the CPU properties under
"General" > "DI/DQ 8x24VDC[X142]" > "Channel parameters", for example, a timer DQ for later use as a cam output for channel 0.

Figure 7-36 Setting the operating mode for technology I/O X142
3. In the project tree under the axis technology object, add an output cam technology object under "Output cam" > "Add new output cam".
4. Open the configuration of the output cam. 5. Under "Hardware interface", select the "Activate output" checkbox and the option "Output
over Timer DQ".

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

145

Configuring 7.11 Configuring the clock system
6. Assign the configured output under "Output".

Figure 7-37 Assigning a channel to the output cam
7. Use the "Device configuration" button to switch back to the CPU settings and check the settings under "DI/DQ 8x24VDC [X142]" > "I/O addresses". The following settings must be configured for the input and output addresses: ­ "Isochronous mode" is enabled. ­ The organization block "MC Servo" is selected. ­ The process image "OB Servo PIP" is selected.
Automatic settings Isochronous mode is mandatory for certain operating modes of the X142 technology I/O channels. As soon as you set one of the following operating modes for a technology I/O channel, STEP 7 automatically selects the option "isochronous mode".  Timer DI  Timer DQ  Oversampling DI  Oversampling DQ  Event/period measurement If you assign an output cam, cam track or measuring input technology object to an X142 I/O, STEP 7 automatically sets the process image "OB Servo PIP". In all other cases, you set the process image manually. If isochronous mode is mandatory for at least one technology I/O, you must set the process image of the "MC Servo" OB (OB91) or an isochronous mode interrupt OB (OB6x).

146

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
Setting the clock system You have configured the technology I/Os as isochronous. Next, set the clock system. Make the following settings in accordance with whether you are operating the X142 technology I/Os in independent or coupled isochronous mode:  For independent isochronous mode or if the X142 technology I/Os are the leading clock system ­ Set the required cycle time. ­ Assign the "MC Servo" OB the clock system of the technology I/Os.
Note You cannot operate the X142 technology I/Os in isochronous mode separately from SINAMICS Integrated. If you want to operate X142 technology I/Os and SINAMICS Integrated in isochronous mode simultaneously, always set coupled isochronous mode.
 For coupled isochronous mode: ­ Assign the leading clock system to the clock system of the technology I/Os. You can find details of how to assign the leading clock system in Setting the clock system (Page 150).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

147

Configuring 7.11 Configuring the clock system

7.11.4

Configuring additional drives on PROFINET (X150) as isochronous

Requirement

 STEP 7, V16 or higher
 SINAMICS Startdrive, V16 or higher
You can import drives that are not integrated in the TIA Portal via Startdrive using GSD files (generic station description). To do so, install the drive in the "Options" menu as a device description file (GSD).

Adding a drive and frame to the device configuration
1. Add the required drive system in the network view, for example, SINAMICS S120 CU3202 PN.
2. Open the device view of the drive system and configure the drive objects. You can find the relevant details in the SINAMICS S120 with Startdrive commissioning manual (https://support.industry.siemens.com/cs/ww/en/view/109763294).
3. Open the network view. Assign the drive system to the PROFINET interface [X150] of the CPU.
4. Open the topology view. Interconnect the port of the drive system as in the real configuration with the port of the CPU.
5. Configure the PROFIdrive frames for the drive axes, for example, frame 105.
Note
If you use a PROFINET IO drive system other than SINAMICS S120, adding and configuring may differ from the description in certain respects. The frame is automatically preassigned in line with the drive system.

148

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
Activating isochronous mode in the device configuration You can operate PROFINET drives in isochronous or non-isochronous mode. Isochronous mode, however, increases the quality of the position control of the drive and is therefore recommended for drives such as SINAMICS S120. Proceed as follows to activate isochronous mode for the drive: 1. Select the device view of the drive system. 2. In the properties window, select the tab "PROFINET Interface [X150]" > "Advanced options" > "Isochronous mode". 3. Select the "Isochronous mode" check box. 4. In the properties window, select the tab "PROFINET Interface [150]" > "Advanced options" > "Real-time settings" > "Synchronization". 5. Select "IRT" as the RT class.
Note If you have configured a PROFIdrive frame at the drive that requires isochronous mode, STEP 7 automatically sets "Isochronous mode" and the RT class "IRT".

Configuring the PLC as sync master and setting the send clock 1. Select the device view of the CPU. 2. In the properties window, select the tab "PROFINET interface [X150]" > "Advanced options" > "Real-time settings" > "Synchronization". 3. Select "IRT" as the RT class if it has not already been set automatically. 4. Select "Sync master" from the "Synchronization role" drop-down list. 5. Click the "Domain settings" button. 6. Set the required send clock.
Selecting the drive in the configuration of the technology object 1. Add a new axis technology object. 2. Open the configuration "Hardware interface" > "Drive". 3. Select the "PROFIdrive" entry from the "Drive type" drop-down list. 4. Select a drive axis of the PROFINET drive unit from the "Drive" list. Only drives for which you have configured a suitable PROFIdrive frame are available for selection. You can find out which PROFIdrive frames are supported by the SIMATIC Drive Controller in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049). Using the "Device configuration" button, you can switch to the drive device view, for example, to configure drives or set other PROFIdrive frames (for example 39x frame for the X122/X132 IOs of a CU320-2).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

149

Configuring 7.11 Configuring the clock system
Setting the clock system You have configured an external drive as isochronous on PROFINET using the example of the SINAMICS S120 CU320-2 PN. Next, set the clock system.  Choose between independent and coupled isochronous mode.  Set the required send clock.  Assign the "MC Servo" OB the clock system of the PROFINET interface X150. You can find more information in Setting the clock system (Page 150).

7.11.5

Configuring the PROFIBUS interface as isochronous
You can find out how to configure isochronous mode for distributed I/O on the PROFIBUS DP in the Isochronous Mode (https://support.industry.siemens.com/cs/ww/en/view/109755401) function manual.
Note
Isochronous coupling of the PROFIBUS interface with other clock systems is not possible.
If you want to expand the drive configuration limits with distributed drive systems, connect those distributed drive systems over the PROFINET IO interface X150. Only the PROFINET IO interface X150 can be connected isochronously alongside the MC Servo to the clock system of SINAMICS Integrated and the X142 technology I/Os.

7.11.6

Setting the clock system
The SIMATIC Drive Controller supports isochronous mode for the following clock systems:
 PROFINET IO interface X150
 PROFIBUS DP interface X126
 Technology I/Os X142
 With PROFIdrive Integrated
You can operate the clock systems separately or coupled on an isochronous basis. Exception: Isochronous coupling of the PROFIBUS DP interface is not possible. You can find information on the combinations in which you can couple the clock systems in Overview of isochronous mode (Page 137).
You make the required settings in the relevant clock systems.
Once you have set and, if necessary, coupled the clock systems, you need to couple the OB servo with the clock system in which you wish to operate the drives / that is the leading clock system.

150

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
SINAMICS Integrated clock system Proceed as follows to set the clock system of the SINAMICS Integrated: 1. Switch to the network view. 2. Click on PROFIdrive Integrated in the network view. 3. Make the settings for the SINAMICS Integrated under "Constant bus cycle time". The SINAMICS Integrated is always isochronous (option is always selected).

Figure 7-38 SINAMICS Integrated (PROFIdrive Integrated) clock system

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

151

Configuring 7.11 Configuring the clock system

Adjust other settings if required ­ for example times Ti/To for reading in/outputting data in isochronous mode.

Table 7- 10 Setting options for "Cycle time" in the SINAMICS Integrated clock system

Setting options Manual Automatic minimum Use local send clock [X142]
Send clock of the PROFINET interface [X150]

Note
With these settings, you operate the SINAMICS Integrated as an independent clock system.
With this setting, you operate the SINAMICS Integrated in isochronous mode coupled with the clock system of the X142 technology I/Os. Use this setting if you want to use the technology I/Os isochronously with the OB servo, for example, for measuring input or output cam applications. Please note the following:
· You cannot operate the X142 technology I/Os in isochronous mode separately from SINAMICS Integrated.
· If you want to operate X142 technology I/Os and SINAMICS Integrated in isochronous mode simultaneously, always set coupled isochronous mode.
Consistency checks ensure that the setting is correct. With this setting, you operate SINAMICS Integrated in isochronous mode coupled with PROFINET interface X150. SINAMICS Integrated uses the system clock of PROFINET interface X150. Use this setting if you need to operate the SIMATIC Drive Controller in isochronous mode at PROFINET IO interface X150, for example, for the connection of drives or for synchronous operation across PLC.

152

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
X142 technology I/Os clock system Proceed as follows to set the clock system of the X142 technology I/Os: 1. In the device view of STEP 7, select the CPU of the SIMATIC Drive Controller. 2. Navigate to "Advanced configuration" > "Isochronous mode" in the properties of the CPU. 3. Select the required settings from the "Source of send clock" drop-down list in the "Isochronous mode for local modules" section.

Figure 7-39 Technology I/O clock system

Table 7- 11 Setting options for "Source of send clock" in the clock system of the technology I/Os

Setting options Local send clock
Using the send clock of the PROFINET interface [X150]

Note
With this setting, you operate the X142 technology I/Os as an independent clock system, or as the leading clock system if you couple the clock system of the SINAMICS Integrated.
With this setting, you operate X142 technology I/Os in isochronous mode coupled with PROFINET interface X150. The X142 technology I/Os use the system clock of PROFINET interface X150.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

153

Configuring 7.11 Configuring the clock system

PROFINET IO interface X150 clock system
Proceed as follows to set the clock system of PROFINET interface X150:
1. Select the PROFINET IO system in the network view of STEP 7.
2. Make the settings for the send clock, etc. under "PROFINET subnet" > "Domain management" > "Sync domains".
In coupled isochronous mode with other clock systems, the clock system of the PROFINET interface is always leading.
You can find additional information on configuring isochronous mode on PROFINET IO in the Isochronous mode (https://support.industry.siemens.com/cs/ww/en/view/109755401) function manual.

PROFIBUS interface X126 clock system
You must follow the rules below during configuration if you want to operate the PROFIBUS DP interface in isochronous mode:

Table 7- 12 Rules for configuring isochronous mode for PROFIBUS DP interface

If ...
A SINAMICS Integrated is configured
The X142 technology I/Os are operated in isochronous mode The clock system of the PROFINET IO interface is coupled with one of the two clock systems.

The configured cycle time of the PROFIBUS DP interface must...
Be equal to or an integer multiple of the configured cycle time of the SINAMICS Integrated (PROFIdrive Integrated)
Be equal to or an integer multiple of the configured cycle time of the X142 technology I/Os
Be equal to or an integer multiple of the configured cycle time of the PROFINET IO interface

Consistency checks ensure that the setting is correct.

Proceed as follows to set the clock system of the PROFIBUS interface:

1. Select the DP master system in the network view of STEP 7.

2. Make the settings for the DP cycle under "Constant bus cycle time".

Note
Isochronous coupling of the PROFIBUS interface with other clock systems is not possible.
If you want to expand the drive configuration limits with distributed drive systems, connect those distributed drive systems over the PROFINET IO interface X150. Only the PROFINET IO interface X150 can be connected isochronously alongside the MC Servo to the clock system of SINAMICS Integrated and the X142 technology I/Os.

154

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Configuring 7.11 Configuring the clock system
Synchronizing MC Servo with clock system Proceed as follows to synchronize the MC Servo with a clock system: 1. Open the "Program blocks" folder in the project tree. 2. Select the "MC Servo" organization block. 3. Select the "Properties" command in the shortcut menu. 4. Select the "Cycle time" entry in the area navigation. 5. The option "Synchronous to the bus" must be selected in the dialog box. 6. In the "Source of send clock" drop-down list, select the clock system to be synchronized with the OB MC-Servo.

Figure 7-40 Synchronizing MC Servo with clock system

Table 7- 13 Setting options for synchronization with a clock system

Setting options1) PROFIdrive system (1) PROFINET IO system (100) PLC_1 (0) DP master system (2)

Note
With this setting, you synchronize MC Servo with the clock system of SINAMICS Integrated.
With this setting, you synchronize MC Servo with PROFINET interface X150.
With this setting, you synchronize MC Servo with the clock system of technology I/Os X142.
With this setting, you synchronize MC Servo with PROFIBUS interface X126.

1) The designations may vary depending on the names assigned.

For coupled isochronous mode, you must always select the leading clock system.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

155

Configuring 7.11 Configuring the clock system
Setting the application cycle The application cycle of MC Servo is derived from the send clock and a configurable factor. The adjustable factors depend on the coupled clock system.

156

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution

8

8.1

Programming the CPU

Hardware and software requirements
Your PG/PC is connected to the SIMATIC Drive Controller over the PROFIBUS or PROFINET interface.
To configure and program the SIMATIC Drive Controller, you require:
 SIMATIC STEP 7 Professional, V16 or higher
 For programming the safety program of the F-CPU "STEP 7 Safety Advanced" as of V16
 Option package SINAMICS Startdrive V16, Basic or Advanced, for configuring the SINAMICS Integrated . Startdrive Advanced has additional engineering functions compared to Startdrive Basic, such as a safety acceptance test.

Points to note

The function blocks for the use of time-based IO (TIO instructions) are not supported by the X142 interface. We therefore recommend using the technology objects measuring input, output cam or cam track for the timer DI/DQ.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

157

Basics of program execution 8.2 Events and OBs

8.2

Events and OBs

Response to triggers The occurrence of a trigger results in the following reaction:  If the event comes from an event source to which you have assigned an OB, this event triggers the execution of the assigned OB. The event enters the queue according to its priority.  If the event comes from an event source to which you have not assigned an OB, the default system reaction is executed.
Note Some event sources, such as startup, pull/plug, exist even if you do not configure them.

Triggers

The table below provides an overview of:  possible event sources  possible values for the OB priority  possible OB numbers  default system reaction  Number of OBs

Table 8- 1 Triggers

Types of event sources
Startup 2) Cyclic program 2) Time-of-day interrupt 2) Time-delay interrupt 2) Cyclic interrupt 2)
Hardware interrupt 2) Status interrupt Update interrupt Manufacturer-specific or profile-specific interrupt Isochronous mode interrupt Time error 3) Maximum cycle time exceeded once Diagnostics interrupt

Possible priorities (default priority) 1 1 2 to 24 (2) 2 to 24 (3) 2 to 24 (8 to 17, frequency dependent) 2 to 26 (18) 2 to 24 (4) 2 to 24 (4) 2 to 24 (4)
16 to 26 (21) 22
2 to 26 (5)

Possible OB num- Default system

bers

reaction 1)

100,  123 1,  123 10 to 17,  123 20 to 23,  123 30 to 38,  123

Ignore Ignore Not applicable Not applicable Not applicable

40 to 47,  123 55 56 57

Ignore Ignore Ignore Ignore

61 to 64,  123 80

Ignore Ignore STOP

82

Ignore

Number of OBs
0 to 100 0 to 100 0 to 20 0 to 20 0 to 20
0 to 50 0 or 1 0 or 1 0 or 1
0 to 2 0 or 1
0 or 1

158

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.2 Events and OBs

Types of event sources
Removal/insertion of modules Rack error MC servo 4) MC pre-servo 4)
MC post-servo 4)
MC interpolator 4) MC PreInterpolator 4)
Programming error (only for global error handling) I/O access error (only for global error handling)

Possible priorities (default priority) 2 to 26 (6)
2 to 26 (6) 17 to 26 (26) Corresponds to MC Servo priority Corresponds to MC Servo priority 16 to 25 (24) Corresponds to MC Interpolator priority 2 to 26 (7)
2 to 26 (7)

Possible OB num- Default system

bers

reaction 1)

83

Ignore

86

Ignore

91

Not applicable

67

Not applicable

95

Not applicable

92

Not applicable

68

Not applicable

121

STOP

122

Ignore

Number of OBs
0 or 1 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1 0 or 1

1) If you have not configured the OB.
2) For these event sources, apart from the permanently assigned OB numbers (see column: possible OB numbers), you can also assign OB numbers from the range  123 in STEP 7.
3) If the maximum cycle time has been exceeded twice within a cycle, the CPU always switches to STOP regardless of whether you have configured OB80.
4) You can find more information on these event sources and the startup behavior in the S7-1500 Motion Control function manuals.

Assignment between event source and OBs
The type of OB determines where you make the assignment between OB and event source:
 With hardware interrupts and isochronous mode interrupts, the assignment is made during the configuration of the hardware or when the OB is created.
 For MC Servo, MC PreServo, MC PostServo, MC Interpolator and MC PreInterpolator, STEP 7 automatically assigns OBs 91/92 as soon as you add a technology object.
 For all other types of OB, the assignment is made when the OB is created, where applicable after you have configured the event source.
For hardware interrupts, you can change an assignment which has already been made during runtime with the instructions ATTACH and DETACH. In this case, only the actually effective assignment changes, and not the configured assignment. The configured assignment takes effect after loading, and upon each startup.
The CPU ignores hardware interrupts to which you did not assign an OB in your configuration or which occur after the DETACH instruction. The CPU does not check whether an OB is assigned to this event when an event arrives, but only prior to the actual processing of the hardware interrupt.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

159

Basics of program execution 8.3 Asynchronous instructions
OB priority and runtime behavior If you have assigned an OB to the event, the OB has the priority of the event. The CPUs of the SIMATIC Drive Controller support priorities 1 (lowest) to 26 (highest). The following items are essential to the execution of an event:
 Call and execution of the assigned OB
 The update of the process image partition of the assigned OB
The user program processes the OBs exclusively on a priority basis. This means the program processes the OB with the highest priority first when multiple OB requests occur at the same time. If an event occurs that has a higher priority than the currently active OB, this OB is interrupted. The user program processes events of the same priority in order of occurrence.
Note Communication
The communication (e.g. test functions with the PG) always works with priority 15. To prevent extending the program runtime unnecessarily in time-critical applications, these OBs should not be interrupted by communication. Assign a priority > 15 for these OBs.

Additional information Additional information on organization blocks is available in the STEP 7 online help.

8.3

Asynchronous instructions

Introduction

Program execution makes a distinction between synchronous and asynchronous instructions.
The "synchronous" and "asynchronous" properties relate to the temporal relationship between the call and execution of the instruction.
The following applies to synchronous instructions: When the call of a synchronous instruction is complete, execution of the instruction is also complete.
This is different in the case of asynchronous instructions: When the call of an asynchronous instruction is complete, execution of the asynchronous instruction is not necessarily complete yet. This means the execution of an asynchronous instruction can extend over multiple calls. The CPU processes asynchronous instructions in parallel with the cyclic user program. Asynchronous instructions generate jobs in the CPU for their processing.
Asynchronous instructions are usually Motion Control instructions or instructions for transferring data, e.g. data records for modules, communication data, or diagnostics data.

160

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.3 Asynchronous instructions Difference between synchronous/asynchronous instructions The figure below shows the difference between the processing of an asynchronous instruction and a synchronous instruction. In this figure the CPU calls the asynchronous instruction five times before its execution is complete, e.g. a data record has been completely transferred. With a synchronous instruction, execution is completed upon each call.
 First call of the asynchronous instruction, start of execution  Intermediate call of the asynchronous instruction, execution continues  Last call of the asynchronous instruction, completion of execution  The synchronous instruction is completely executed at each call
Duration of complete execution Figure 8-1 Difference between asynchronous and synchronous instructions

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

161

Basics of program execution 8.3 Asynchronous instructions
Parallel processing of asynchronous instruction jobs A CPU can process several asynchronous instruction jobs in parallel. The CPU processes the jobs in parallel under the following conditions:  Several asynchronous instruction jobs are called at the same time.  The maximum number of simultaneously running jobs for the instruction is not exceeded. The figure below shows the parallel processing of two jobs of the WRREC instruction. The two instructions are executed simultaneously for a certain duration.

Figure 8-2 Parallel processing of the asynchronous instruction WRREC

Assignment of call to job of the instruction
To execute an instruction over multiple calls, the CPU must be able to uniquely relate a subsequent call to a running job of the instruction.
To relate a call to a job, the CPU uses one of the following two mechanisms, depending on the type of the instruction:  Using the instance data block of the instruction (for "SFB" type)  Using job-identifying input parameters of the instruction. These input parameters must
match in each call during processing of the asynchronous instruction. Example: A job of the "Create_DB" instruction is identified by input parameters LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB and SRCBLK.
The following table shows which input parameters you use to identify which instruction.
Table 8- 2 Asynchronous instructions Call to job assignment

Instruction DPSYC_FR D_ACT_DP DPNRM_DG WR_DPARM WR_REC RD_REC CREATE_DB
READ_DBL WRIT_DBL RD_DPARA DP_TOPOL

Job is identified by LADDR, GROUP, MODE LADDR LADDR LADDR, RECNUM LADDR, RECNUM LADDR, RECNUM LOW_LIMIT, UP_LIMIT, COUNT, ATTRIB, SRCBLK SRCBLK, DSTBLK SRCBLK, DSTBLK LADDR, RECNUM DP_ID

162

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.3 Asynchronous instructions
Status of an asynchronous instruction An asynchronous instruction shows its status via the block parameters STATUS/RET_VAL and BUSY. Many asynchronous instructions also use the block parameters DONE and ERROR. The figure below shows the two asynchronous instructions WRREC and CREATE_DB.
 The input parameter REQ starts the job to execute the asynchronous instruction.  The output parameter DONE indicates that the job was completed without error.  The output parameter BUSY indicates whether the job is currently being executed. When
BUSY =1, a resource is allocated for the asynchronous instruction. When BUSY = 0, the resource is free.
 The output parameter ERROR indicates that an error has occurred.  The output parameter STATUS/RET_VAL provides information on the status of the job execu-
tion. The output parameter STATUS/RET_VAL receives the error information after the occurrence of an error. Figure 8-3 Block parameters of asynchronous instructions using the instructions WRREC and
CREATE_DB as examples.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

163

Basics of program execution 8.3 Asynchronous instructions

Summary

The table below provides you with an overview of the relationships described above. It shows in particular the possible values of the output parameters if execution of the instruction is not complete after a call.
Note You must evaluate the relevant output parameters in your program after each call

Table 8- 3 Relationship between REQ, STATUS/RET_VAL, BUSY and DONE during a "running" job.

Seq. no. of the call
1

Type of call First call

REQ 1

2 to (n - 1) Intermediate call

n

Last call

Not relevant
Not relevant

STATUS/RET_VAL
W#16#7001 Error code (e.g. W#16#80C3 for lack of resources) W#16#7002
W#16#0000, if no errors have occurred. Error code if errors occurred.

BUSY
1 0
1 0 0

DONE
0 0
0 1 0

ERROR
0 1
0 0 1

Use of resources
Asynchronous instructions use resources in the CPU during their execution. The resources are limited depending on the type of CPU and instruction. The CPU can simultaneously process only a maximum number of asynchronous instruction jobs. The resources are available again after a job has been processed successfully or with errors.
Example: For the RDREC instruction, a CPU can process up to 20 jobs in parallel.
If the maximum number of simultaneously running jobs for an instruction is exceeded, the instruction returns error code 80C3 (lack of resources) in the STATUS block parameter. The CPU stops execution of the job until a resource becomes free again.
Note Lower-level asynchronous instructions
Some asynchronous instructions use one or more lower-level asynchronous instructions for their processing. This dependence is shown in the tables below.
Please note that with multiple lower-level instructions, only one lower-level resource is typically allocated at a time.

164

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.3 Asynchronous instructions

Extended instructions: maximum number of simultaneously running jobs
The following table shows the maximum number of simultaneously running jobs for asynchronous extended instructions.

Table 8- 4 Extended instructions

Extended instructions

CPU 1504D TF

CPU 1507D TF

Distributed I/O

RDREC

20

RD_REC

10

WRREC

20

WR_REC

10

D_ACT_DP

8

ReconfigIOSystem

Uses RDREC, WRREC, D_ACT_DP

DPSYC_FR

2

DPNRM_DG

8

DP_TOPOL

1

ASI_CTRL

Uses RDREC, WRREC

PROFIenergy

PE_START_END

Uses RDREC, WRREC

PE_CMD

Uses RDREC, WRREC

PE_DS3_Write_ET200 Uses RDREC, WRREC S

PE_WOL

Uses RDREC, WRREC, TUSEND, TURCV, TCON, TDISCON

Module parameter assignment

RD_DPAR

10

RD_DPARA

10

RD_DPARM

10

WR_DPARM

10

Diagnostics

Get_IM_Data

10

GetStationInfo

10

Recipes and data logging

RecipeExport

10

RecipeImport

10

DataLogCreate

10

DataLogOpen

10

DataLogWrite

10

DataLogClear

10

DataLogClose

10

DataLogDelete

10

DataLogNewFile

10

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

165

Basics of program execution 8.3 Asynchronous instructions

Extended instructions
Data block functions CREATE_DB READ_DBL WRIT_DBL DELETE_DB File handling FileReadC FileWriteC

CPU 1504D TF

CPU 1507D TF

10 10 10 10
10 10

Basic instructions: maximum number of simultaneously running jobs
The following table shows the maximum number of simultaneously running jobs for asynchronous basic instructions.

Table 8- 5 Basic instructions

Basic instructions Array DB ReadFromArrayDBL WriteToArrayDBL

CPU 1504D TF

CPU 1507D TF

Uses READ_DBL (see Extended instructions) Uses READ_DBL, WRIT_DBL (see Extended instructions)

166

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.3 Asynchronous instructions

Communication: maximum number of simultaneously running jobs

Table 8- 6 Maximum number of simultaneous jobs for asynchronous instructions and lower-level instructions used for Open User Communication

Open User Communication TSEND TUSEND TRCV TURCV TCON TDISCON T_RESET T_DIAG T_CONFIG TSEND_C TRCV_C TMAIL_C

CPU 1504D TF

CPU 1507D TF

384

384

384 384 384 384
1 Uses TSEND, TUSEND, TRCV, TCON, TDISCON Uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON Uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

Table 8- 7 Lower-level instructions used for asynchronous instructions for MODBUS TCP

MODBUS TCP MB_CLIENT MB_SERVER

CPU 1504D TF

CPU 1507D TF

Uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

Uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

Table 8- 8 Maximum number of simultaneous jobs for asynchronous instructions for S7 communication. The S7 communication instructions use a common pool of resources.

S7 communication PUT GET USEND URCV BSEND BRCV

CPU 1504D TF

1152

CPU 1507D TF

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

167

Basics of program execution 8.3 Asynchronous instructions

Table 8- 9 Lower-level instructions used for asynchronous instructions for communication processors

Communications processors

CPU 1504D TF

CPU 1507D TF

PtP communication

Port_Config

Uses RDDEC, WRREC

Send_Config

Uses RDDEC, WRREC

Receive_Config

Uses RDDEC, WRREC

Send_P2P

Uses RDDEC, WRREC

Receive_P2P

Uses RDDEC, WRREC

Receive_Reset

Uses RDDEC, WRREC

Signal_Get

Uses RDDEC, WRREC

Signal_Set

Uses RDDEC, WRREC

Get_Features

Uses RDDEC, WRREC

Set_Features

Uses RDDEC, WRREC

USS communication

USS_Port_Scan

Uses RDDEC, WRREC

MODBUS (RTU)

Modbus_Comm_Load

Uses RDDEC, WRREC

ET 200S serial interface

S_USSI

Uses CREATE_DB

SIMATIC NET CP (cannot be used with SIMATIC Drive Controller; SIMATIC NET CPs cannot be used in distributed I/O stations)

FTP_CMD

Uses TSEND, TRCV, TCON, TDISCON

Table 8- 10 Maximum number of simultaneous jobs ­ OPC UA

OPC_UA OPC_UA_Connect OPC_UA_Disconnect OPC_UA_NamespaceGetIndexList OPC_UA_NodeGetHandleList OPC_UA_NodeReleaseHandleList OPC_UA_TranslatePathList OPC_UA_Browse OPC_UA_ReadList OPC_UA_WriteList OPC_UA_MethodGetHandleList OPC_UA_MethodReleaseHandleList OPC_UA_MethodCall OPC_UA_ServerMethodPre OPC_UA_ServerMethodPost OPC_UA_ConnectionGetStatus

CPU 1504D TF

CPU 1507D TF

10

10

10

10

10

10

10

10

10

10

10

10

10

10

10

168

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Basics of program execution 8.3 Asynchronous instructions

Technology: maximum number of simultaneously running jobs

Table 8- 11 Maximum number of simultaneous jobs for asynchronous instructions for technology. The instructions for technology use a common pool of resources.

Technology

CPU 1504D TF

CPU 1507D TF

S7-1500 Motion Control MC_Power MC_Reset MC_Home MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_GearIn MC_MoveSuperimposed MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput MC_OutputCam MC_CamTrack MC_TorqueLimiting MC_SetSensor MC_GearInPos MC_SynchronizedMotionSimulation MC_PhasingAbsolute MC_PhasingRelative MC_CamIn MC_InterpolateCam MC_GetCamLeadingValue MC_GetCamFollowingValue

6400

Additional information
You can find additional information on block parameter assignment in the STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

169

Protection

9

9.1

Overview of the protection functions

Introduction

This section describes the functions for protection from unauthorized access:  Access protection  Know-how protection  Protection by locking the CPUs

Other CPU protective measures The following measures provide extra protection against unauthorized access from external sources and through the network:
 Do not activate time-of-day synchronization over NTP servers.
 Do not activate PUT/GET communication.

9.2

Configuring access protection for the CPU

Introduction

The SIMATIC Drive Controller has four different access levels to limit access to specific functions.
By setting up access levels and passwords, you limit the functions and memory areas that are accessible without a password. The individual access levels and corresponding passwords are specified in the object properties of the CPUs.

Rules for passwords
Ensure that passwords are sufficiently secure. Apply the following rules:
 Assign a password that is at least 8 characters long.
 Use different cases and characters: uppercase/lowercase, numbers and special characters.

170

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Protection 9.2 Configuring access protection for the CPU

Access levels for the CPUs

Table 9- 1 Access levels and access restrictions

Access levels Full access including failsafe (no protection) Full access (no protection)
Read access
HMI access
No access (complete protection)

Access restrictions
Users of the TIA Portal and HMI applications will have access to all standard and failsafe functions. A password is not required.
Users of the TIA Portal will have access to standard functions. HMI applications can access all functions (failsafe and standard). Required password: For additional access to failsafe functions, the TIA Portal user must enter the password for "Full access including failsafe". In this access level, only read access to the hardware configuration and the blocks is possible without a password. HMI access and access to diagnostics data is also possible. Neither blocks nor the hardware configuration can be downloaded to the CPUs without the password. The following actions are not possible without the password either: Writing test functions and firmware updates (online). The same access restrictions apply to HMI access as to read access. The following actions are not possible without the password either: Change of operating state (RUN/STOP) and display of online/offline comparison status. When the CPUs have complete protection, no read or write access to the hardware configuration or blocks is possible (without access authorization in the form of a password). HMI access is not possible either. Authentication with the correct password provides full access to the CPUs again.

Additional information
You can find a list of which functions are possible in the various protection levels in the STEP 7 online help under "Setting options for protection".

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

171

Protection 9.2 Configuring access protection for the CPU
Properties of the access levels Each access level allows unrestricted access to certain functions without a password, for example identification using the "Accessible devices" function. The default setting of the CPUs is "No restriction" and "No password protection". In order to protect access to the CPUs, you need to edit the properties of the CPUs and set up a password. In the default access level "Full access (no protection)", every user can read and change the hardware configuration and the blocks. No password is configured, and no password is required for online access. Communication between the CPUs via the communication functions in the blocks is not restricted by the access level of the CPUs. Entering the correct password enables access to all the functions that are allowed in the given level.
Note Configuring an access level does not replace know-how protection Configuring access levels offers a high degree of protection against unauthorized changes to the CPU through network access. Access levels restrict the rights to download the hardware and software configuration to the CPUs. However, blocks on the SIMATIC Memory Card are not write-protected or read-protected. Use know-how protection to protect the code of blocks on the SIMATIC Memory Card.
Behavior of functions in different access levels The STEP 7 online help includes a table listing the online functions available in the various access levels.

172

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Protection 9.2 Configuring access protection for the CPU
Configuring access levels Proceed as follows to configure the access levels for the CPUs: 1. Open the properties of the CPUs in the Inspector window. 2. Open "Protection & Security" in the area navigation. A table with the possible access levels appears in the Inspector window.

Figure 9-1 Possible access levels
3. Activate the required protection level in the first column of the table. The green check marks in the columns to the right of the access level show which operations are still possible without entering the password. In the example (Figure: Possible access levels), read access and HMI access are still possible without a password.
4. In the "Enter password" column, specify a password for the access level "Full access including failsafe" in the first row. In the "Confirm password" column, enter the selected password again to avoid incorrect entries.
5. Assign additional passwords as required for other access levels.
6. Download the hardware configuration for the access level to take effect.
The CPUs log the following actions with an entry in the diagnostics buffer:
 Input of the correct or incorrect password
 Changes to access level configuration

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

173

Protection 9.3 Using the user program to set additional access protection
Behavior of a password-protected CPU during operation CPU protection takes effect for an online connection once settings have been loaded to the CPUs. If you set a higher access level and download it to the CPU, all other online connections will be interrupted. You will then need to establish a new online connection. Before an online function is executed, the necessary permission is checked and, if necessary, the user is prompted to enter a password. The password only provides access to protected functions for the local PG/PC on which the password is entered. Access authorization to the protected data applies for the duration of the online connection or for as long as you have STEP 7 open. The menu command "Online > Clear access rights" cancels the access authorization.
Access levels for F-CPUs You can find additional information on the access level "Full access including failsafe (no protection)" in the description of the F-system SIMATIC Safety programming and operating manual SIMATIC Safety ­ Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126).
Restricting access to SINAMICS Integrated
Note For information on how to limit access to specific functions on SINAMICS Integrated, please see the SINAMICS S120 documentation (https://support.industry.siemens.com/cs/ww/en/ps/13231/man).

9.3

Using the user program to set additional access protection

Access protection with the user program
You can also restrict access to a password-protected CPU using the ENDIS_PW instruction in STEP 7.
You can find more information on this instruction in the STEP 7 online help under "ENDIS_PW: Limit and enable password legitimation".

174

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Protection 9.4 Know-how protection

9.4

Know-how protection

Application

You can use know-how protection to protect one or more OB, FB or FC blocks as well as global data blocks in your program from unauthorized access. Enter a password to restrict access to a block. The password offers high-level protection against unauthorized reading and manipulation of the block. Know-how protection does not involve the CPU (offline access in STEP 7).
Note
Please see the SINAMIC S120 documentation (https://support.industry.siemens.com/cs/ww/en/ps/13231/man) for information on how to prevent strictly confidential company expertise on configuration and parameter assignment being read by unauthorized parties with SINAMICS Integrated.

Password provider
As an alternative to manual password input, you can assign a password provider to STEP 7. When using a password provider, you select a password from a list of available passwords. When a protected block is opened, STEP 7 connects to the password provider and retrieves the corresponding password.
You need to install and activate a password provider before you can connect it. A settings file in which you define the use of a password provider is also required.
A password provider offers the following advantages:
 The password provider defines and manages the passwords. When know-how protected blocks are opened, you work with symbolic names for passwords. For example, a password is marked with the symbolic name "Machine_1" n the password provider. The actual password behind "Machine1" is disclosed to you. A password provider therefore offers optimum block protection as the users do not know the password themselves.
 STEP 7 automatically opens know-how protected blocks without the direct entry of a password. This saves you time.
You can find more information on connecting a password provider in the STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

175

Protection 9.4 Know-how protection

Readable data

If a block is know-how protected, only the following data is readable without the correct password:  Block title, comments and block properties  Block parameters (INPUT, OUTPUT, IN, OUT, RETURN)  Call structure of the program  Global tags without information on the point of use  Static tags

Further actions Further actions that can be carried out with a know-how protected block:  Copying and deleting  Calling in a program  Online/offline comparison  Loading

Global data blocks and array data blocks
You protect global data blocks (global DBs) from unauthorized access with know-how protection. If you do not have the valid password, you can read the global data block but not change it.
Know-how protection is not available for array data blocks (array DBs).

176

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Setting up block know-how protection Proceed as follows to set up block know-how protection: 1. Open the properties of the block in question. 2. Select the "Protection" option under "General".

Protection 9.4 Know-how protection

Figure 9-2 Setting up block know-how protection
3. Click the "Protection" button to display the "Define password" dialog.

Figure 9-3 Select password
4. Enter the new password in the "New password" box. Enter the same password in the "Confirm password" box.
5. Click "OK" to confirm your entry. 6. Close the "Know-how protection" dialog by clicking "OK". Result: The blocks selected are know-how-protected. Know-how protected blocks are marked with a padlock in the project tree. The password entered applies to all blocks selected.
Note Password provider Alternatively, you can set up know-how protection for blocks with a password provider.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

177

Protection 9.4 Know-how protection
Opening know-how protected blocks Proceed as follows to open a know-how protected block: 1. Double-click on the block to open the "Access protection" dialog. 2. Enter the password for the know-how protected block. 3. Click "OK" to confirm your entry. Result: The know-how-protected block opens. After opening the block you can edit the program code and the block interface of the block until you close the block or STEP 7. You need to enter the password again the next time you open the block. If you close the "Access protection" dialog with "Cancel", the block will open but the block code will not be displayed. You will not be able to edit the block. If you copy the block or add it to a library, for example, this does not cancel the know-how protection of the block. The copies will also be know-how-protected.
Changing block know-how protection Proceed as follows to change block know-how protection: 1. Select the block for which you want to change know-how protection. The protected block must not be open in the program editor. 2. In the "Edit" menu, select the "Know-how protection" command to open the "Change protection" dialog. 3. To change the password for know-how protection, enter the current password under "Old password". 4. Now enter a new password under "New password" and confirm the password under "Confirm password". 5. Click "OK" to confirm your entry. Result: The password for know-how protection of the selected block has been changed.

178

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Protection 9.5 Copy protection
Removing block know-how protection Proceed as follows to remove block know-how protection: 1. Select the block from which you want to remove know-how protection. The protected block must not be open in the program editor. 2. In the "Edit" menu, select the "Know-how protection" command to open the "Change protection" dialog.

Figure 9-4 Removing know-how protection
3. To remove block protection, enter the current password under "Old password". Leave the fields for the new password blank.
4. Click "Remove" to confirm your entry. Result: Know-how protection for the selected block has been canceled.

9.5

Copy protection

Application

The copy protection allows you to protect your program against unauthorized duplication. With copy protection, you link a block to the serial number of the SIMATIC Memory Card or the SIMATIC Drive Controller. The link to the serial number means that you can only use the block in conjunction with the corresponding SIMATIC Memory Card or SIMATIC Drive Controller.
Note
For information on how to protect your drive unit settings from unauthorized reproduction on SINAMICS Integrated, please see the SINAMIC S120 documentation.

Copy and know-how protection
Recommendation: To prevent an unauthorized reset of the copy protection, provide a copyprotected block with additional know-how protection. First set up the copy protection for the block and after this the know-how protection. You can find additional information on setting up know-how protection in Know-how protection (Page 175).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

179

Protection 9.5 Copy protection
Setting up copy protection To set up copy protection, follow these steps: 1. Open the properties of the respective block. 2. Select the "Protection" option under "General". 3. In the "Copy protection" area, select either the "Bind to serial number of the CPU" entry or the "Bind to serial number of the memory card" entry from the drop-down list.
Figure 9-5 Setting up copy protection
4. Activate the option "Serial number is inserted when downloading to a device or a memory card" if STEP 7 is to automatically insert the serial number during the loading process (dynamic binding). Assign a password using the "Define password" button to link the use of a block additionally to the input of a password. If you want to manually bind the serial number of the SIMATIC Drive Controller or the SIMATIC Memory Card to a block (static binding), activate the "Enter serial number" option.
5. You can now set up know-how protection for the block in the "Know-how protection" area.
Note If you download a copy-protected block to a device that does not match the specified serial number, the entire download operation is not possible. This means that you cannot download blocks without copy protection either.
Removing copy protection To remove copy protection, follow these steps: 1. Remove any know-how protection. 2. Open the properties of the respective block. 3. Select the "Protection" option under "General". 4. In the "Copy protection" area, select the "No binding" entry from the drop-down list.

180

Figure 9-6 Removing copy protection

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Protection 9.6 Protection by locking the CPU

9.6

Protection by locking the CPU

Locking options Provide additional protection for your CPUs from unauthorized access (for example to the SIMATIC memory card) by using a secure front cover. You have the following options, for example:  Attach a seal  Secure the front cover with a lock (shackle diameter: 3 mm)

 Eye for seal or padlock
Note Protection with a seal or padlock only prevents "easy" access to the SIMATIC memory card and operator controls. It does not provide protection from targeted tampering; this must be ensured with other measures (for example through the control cabinet).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

181

Flexible automation concepts

10

10.1

Standard machine projects

Introduction

Standard machine projects are STEP 7 projects that use innovative functions. You can easily configure and commission flexible automation solutions for standard machines or for machines with a modular structure.
In the hardware configuration of a standard machine, the SIMATIC Drive Controller is an IO controller to which any number of IO devices are connected. The SIMATIC Drive Controller therefore represents a PROFINET IO system master. This master is configured with a maximum configuration that can be used as a basis from which to derive various different standard machines using options. Alongside a range of software functionalities, each option therefore also has a range of IO system configuration variants.

Greater flexibility at all levels
Standard machine projects have central features:
 From exactly one project (IO system master) with configured maximum configuration, you can load different versions of a standard machine (IO system options). The standard machine project covers all variants (options) of the IO system.
 An IO system option can be integrated into an existing network locally using simple tools.
Flexibility is provided in more ways than one:
 With a suitable configuration, you can adapt the IP address parameters of the IO controller locally using simple tools. This allows you to integrate a standard machine in different plants with little effort or to connect multiple machine modules of the same type in a network. IO systems with this property are known as multiple use IO systems.
 With suitable configuration and programming, you can operate different setups of IO system options locally. The IO system options differ in terms of the selection of IO devices used or in terms of the arrangement of the IO devices. The user program controls the specific configuration of the IO system. The function is therefore called Configuration control for IO systems.
 Independently of the functions described above, you can use different station options of distributed I/O devices in one project through suitable configuration and programming. The devices can be different in terms of selection and arrangement of the modules. The user program controls the specific configuration of the station. The function is therefore called Configuration control.

182

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Flexible automation concepts 10.1 Standard machine projects
Modular machines with SINAMICS drives The modular machine concept is based on a maximum target topology created in the commissioning tool "offline". A maximum configuration is the maximum configuration of a specific machine type. All machine components used in that machine type are preconfigured in the target topology. You remove parts of the maximum configuration by deactivating/removing drive objects (p0105 = 2).
Activating and deactivating SINAMICS components The SINAMICS S120 drive components, including the control instances, are described in a parameter object model. You can enable/disable drives including their closed loop control or individual components using the following parameters:  Enable/disable drive objects (including on Terminal Modules): ­ Adjustable parameter p0105 (Enable/disable drive object) ­ Display parameter r0106 (Drive object enabled/disabled)  Enable/disable power units: ­ Adjustable parameter p0125 (Enable/disable power unit component) ­ Display parameter r0126 (Power unit components enabled/disabled)  Enable/disable encoders (on Motor Modules): ­ Adjustable parameter p0145 (Enable/disable encoder interface) ­ Display parameter r0146 (Encoder interface enabled/disabled)  Enable/disable Voltage Sensing Module (on Line Modules) ­ Adjustable parameter p0145 (Enable/disable Voltage Sensing Module) ­ Display parameter r0146 (Voltage Sensing Module enabled/disabled)
Note Please check the description and the constraints for the individual parameters in the SINAMICS S120/S150 list manual (https://support.industry.siemens.com/cs/ww/en/view/109763271).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

183

Flexible automation concepts 10.1 Standard machine projects
Example of partial topology with SINAMICS components

Figure 10-1 Example: Partial topology with SINAMICS components
A machine has been configured for one Active Line Module and two Motor Modules. The configuration has been saved on the SIMATIC Memory Card (target topology).
 While the machine is off, "Drive 1" is removed and the DRIVE-CLiQ cable is unplugged from the SIMATIC Drive Controller and connected directly to "Drive 2" (partial topology, actual topology).
 During power up, SINAMICS Integrated detects a difference between the target and actual topology.
 The user program executes the following actions:
­ Set drive object (DO) "Drive 1" to "deactivate and not available". For this action, the user program must set the p0105 = 2 parameter in this DO.
­ Save all parameters to non-volatile memory on the SIMATIC Memory Card. For this action, the user program must set parameter p0977 = 1.
This saves the actual topology as the target topology. An error will not be triggered in the next power up.
Note Errors in Safety Integrated status display
If a drive that was grouped for a Safety Integrated line-up is disabled with p0105, the parameter r9774 will not be correctly output. The signals of a disabled drive are not updated.

184

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Flexible automation concepts 10.1 Standard machine projects

Overview of key parameters for SINAMICS components

Table 10- 1 Key parameters for activating/deactivating SINAMICS components

Parameter p0105 r0106 p0125[0...n] r0126[0...n] p0145[0...n] r0146[0...n] p9495 p9496 r9498[0 ... 29] r9499[0 ... 29]

Meaning p0105 Activate/deactivate drive object Drive object active/inactive Activate/deactivate power unit component Power unit component active/inactive Activate/deactivate encoder interface Encoder interface active/inactive BICO response when drive objects are deactivated BICO response when drive objects are activated BICO BI/CI parameter when drive objects are deactivated BICO BO/CO parameter when drive objects are deactivated

LSINATopo library
In addition to enabling and disabling SINAMICS components, the LSINATopo library offers the following functions for SINAMICS S120, among others:
 Replacing large motor/small motor
 Replacing double-axis module with two single-axis modules (and vice versa)
 Enable/disable motor brake
 Replacing Active Line Module
 Replacing when Safety is activated
With these functions, you can temporarily or permanently change the configuration (target topology) of a SINAMICS drive saved on the storage medium.
For example, you can replace motors in a replacement part scenario without using the Engineering System.
You can use components in the machine that deviate from the configured components. This is necessary for handling variance and extensions in modular machines.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

185

Flexible automation concepts 10.2 Configuration control (option handling)
Additional information
You can find additional information on configuration control in Configuration control (option handling) (Page 186).
You can find additional information on multiple use IO systems and on configuration control for IO systems in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856).
You can find additional information on activating/deactivating SINAMICS components with parameters in the SINAMICS S120/S150 list manual (https://support.industry.siemens.com/cs/ww/en/view/109763271).
You can find additional information on modular machine concepts with Safety Integrated in the SINAMICS S120 Safety Integrated function manual (https://support.industry.siemens.com/cs/ww/en/view/109763292).
You can find additional information about the LSINATopo library on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109770003).

10.2

Configuration control (option handling)

Introduction

Configuration control (option handling) is used to operate various standard machine configuration levels in one project without changing the configuration and the user program.

Operating principle of configuration control
You can use configuration control to operate different standard machine configurations with a single configuration of the ET 200SP or ET 200MP distributed I/O system.
 A station master (maximum configuration) is configured in a project. The station master comprises all modules needed for all possible sections of a modular machine.
 Provision is made in the user program of the project for various station options for the different configuration levels of the standard machine and for selection of a station option. A station option uses, for example, only some of the configured modules of the station master and these modules are inserted in the slots in a different order.
 During commissioning, manufacturers of standard machines select a station option for a configuration level of the standard machine. A change to the project is not required and a modified configuration therefore does not need to be loaded.
 You program a control data record. The control data record notifies the CPU/interface module as to:
­ which modules are missing in a station option as compared to the station master
or
­ which modules are in a different slot
 The configuration control has no effect on the parameter assignment of the modules.

186

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Flexible automation concepts 10.2 Configuration control (option handling)
You can flexibly vary the distributed configuration with configuration control. As a precondition for this, it must be possible to derive the station option from the station master. The following figure shows three configuration levels of a standard machine with the corresponding station options of the ET 200SP distributed I/O system.

Figure 10-2 Various configuration levels of a standard machine with the corresponding station options of the ET 200SP distributed I/O system

Advantages

 Simple project execution and commissioning by using a STEP 7 project for all station options.
 Easy handling during maintenance, versioning and upgrades.
 Hardware savings: You only install the I/O modules needed for the current station option of the machine.
 Potential savings when building, commissioning and creating documentation for standard machines

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

187

Flexible automation concepts 10.3 TIA Portal Openness
Additional information You can find information on configuration, programming and the response during operation with configuration control:
 in the S7-1500, ET 200MP Distributed I/O System system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792) for configuration control in in ET 200MP.
 in the ET 200SP Distributed I/O System system manual (https://support.industry.siemens.com/cs/ww/en/view/58649293) for configuration control in ET 200SP.

10.3

TIA Portal Openness
TIA Portal Openness describes open interfaces for engineering with the TIA Portal. You automate engineering with TIA Portal Openness by controlling the TIA Portal externally using a program that you created yourself. You can use Openness, for example, to implement modular machine concepts on the engineering level. With TIA Portal Openness, you can implement actions including the following:  Create project data  Change projects and project data  Delete project data  Read in project data  Make projects and project data available to other applications

Openness with SIMATIC Drive Controller
The SIMATIC Drive Controller supports Openness - including the specific SIMATIC Drive Controller properties, such as X142 technology I/Os and PROFIdrive Integrated. The Openness functionality available for SINAMICS Integrated is based on the currently available range of functions for SINAMICS S120.

Additional information
You can find additional information on the topic of Openness in the system manual SIMATIC Openness: Automating creation of projects (https://support.industry.siemens.com/cs/de/de/view/109477163/en).

188

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning

11.1

Overview

Introduction

This section includes information on the following topics:  Check before powering on for the first time  Removing/inserting the SIMATIC memory card  First power-on of the SIMATIC Drive Controller  Downloading a project to the device  Operating states of the SIMATIC Drive Controller  Operating states of the SINAMICS Integrated  Runtime licensing  CPU memory reset: automatic and manual  Backing up and restoring the CPU configuration  Backup/restore of SINAMICS NVRAM data  Time-of-day synchronization  Identification and maintenance data  Shared commissioning of projects

11

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

189

Commissioning 11.1 Overview
Commissioning requirements You must ensure the safety of your plant. You therefore need to perform a complete functional test and the necessary safety checks before the final commissioning of a plant. Also allow for any possible foreseeable errors in the tests. This avoids endangering persons or equipment during operation.
WARNING Unexpected movement of machines due to inactive safety functions Safety functions that are inactive or have not been adjusted accordingly can cause unexpected machine movements that can lead to serious injury or death. · Note the information in the relevant product documentation before commissioning. · Carry out a safety inspection for safety-related functions throughout the entire system,
including all safety-related components. · Ensure that the safety functions used in your drives and automation tasks are adjusted
and activated through suitable parameter assignment. · Run a function test. Only put your plant into live operation once you have ensured that
the safety-related functions are running correctly.
Note Important safety instructions for Safety Integrated functions If you want to use Safety Integrated functions, follow the safety instructions in the Safety Integrated manuals.

Commissioning a drive For detailed information on drive configuration, parameter assignment and commissioning, see the SINAMICS S120 with Startdrive commissioning manual (https://support.industry.siemens.com/cs/ww/en/view/109763294).
You can find an example of commissioning a simple SINAMICS S120 drive in Getting Started with Startdrive (https://support.industry.siemens.com/cs/ww/en/view/109763293).
Software tools for commissioning The following free software tools support you in commissioning:
 SIEMENS PRONETA (https://support.industry.siemens.com/cs/ww/en/view/67460624) when commissioning PROFINET systems
 SIMATIC Automation Tool (https://support.industry.siemens.com/cs/de/en/view/98161300) when commissioning the SIMATIC Drive Controller.

190

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.2 Check before powering on for the first time

11.2

Check before powering on for the first time

Check before powering on for the first time Before the first power-on, check that the SIMATIC Drive Controller and the SINAMICS components are correctly installed and wired.
Installation and wiring  Have the required minimum clearances for heat dissipation been provided?  Are all front connectors wired according to the circuit diagram and inserted in the correct connection?
Grounding and chassis concept  Is the protective conductor terminal on the SIMATIC Drive Controller connected to the protective conductor?  Have all cable shields been applied?  Are the required equipotential bonding cables connected with low impedance to the affected plant units?
Further information You can find information on assembly/installation and commissioning of SINAMICS S120 components in the SINAMICS S120 manuals and in the EMC Installation Guide. (https://support.industry.siemens.com/cs/ww/en/view/60612658)

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

191

Commissioning 11.3 Commissioning procedure

11.3

Commissioning procedure

11.3.1

Removing/plugging in a SIMATIC memory card

Requirements

The SIMATIC Drive Controller only supports pre-formatted SIMATIC memory cards. If applicable, delete all previously stored data before using the SIMATIC memory card.
In order to work with the SIMATIC memory card, first ensure that the SIMATIC memory card is not write-protected. For this purpose, slide the slider on the SIMATIC memory card out of the lock position.

Inserting the SIMATIC memory card
To insert a SIMATIC memory card, follow these steps:
1. Open the lower cover of the SIMATIC Drive Controller.
2. Ensure that either the SIMATIC Drive Controller is switched off or that the CPU is in STOP.
3. Insert the SIMATIC memory card, as depicted on the SIMATIC Drive Controller, into the slot for the SIMATIC memory card.

 ACT LED  SIMATIC memory card  Symbol shows correct position of the SIMATIC memory card
4. Carefully push the SIMATIC memory card into the slot until the SIMATIC memory card clicks into place.

192

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.3 Commissioning procedure
Removing the SIMATIC memory card To remove a SIMATIC memory card, follow these steps: 1. Open the bottom cover. 2. Switch the CPU into STOP mode. 3. Carefully push the SIMATIC memory card into the slot. After audible unlatching of the SIMATIC memory card, remove it. Only remove the SIMATIC memory card in POWER OFF or STOP mode of the CPU. Ensure that no writing functions (online functions with the programming device, e.g. loading/deleting a block, test functions) are active in STOP mode or were active before POWER OFF. Do not remove the SIMATIC memory card while the ACT LED is signaling write/read access.
NOTICE Possible data loss If you remove the SIMATIC memory card during a write process, the following problems can occur: · The data content of a file is incomplete. · The file is no longer readable, or no longer exists. · The entire content of the card is corrupted.
Also note the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183) in connection with the removal of the SIMATIC memory card.
Reactions after removing/inserting the SIMATIC memory card Inserting and removing the SIMATIC memory card in STOP mode triggers a re-evaluation of the SIMATIC memory card. The CPU hereby compares the content of the configuration on the SIMATIC memory card with the backed-up retentive data. If the backed-up retentive data matches the data of the configuration on the SIMATIC memory card, the retentive data is retained. If the data differs, the CPU automatically performs a memory reset (which means the retentive data is deleted) and then switches to STOP. The CPU evaluates the SIMATIC memory card and indicates this by flashing the RUN/STOP LED.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

193

Commissioning 11.3 Commissioning procedure

11.3.2

First power-on

Requirements

 The SIMATIC Drive Controller and the SINAMICS components have been installed and wired.
 The SIMATIC Memory Card is in the SIMATIC Drive Controller.

Procedure

Proceed as follows to commission the SIMATIC Drive Controller: Switch on the 24 V power supply to the SIMATIC Drive Controller.

Startup characteristics of the CPU Startup begins once the power supply has been switched on:

RUN/STOP
Alternately flashes yellow/green

ERR Flashes red

MAINT
Flashes yellow

Description The CPU executes a flash test. All LEDs flash at 2 Hz

Flashes yellow at 2 Hz

On and yellow

-

-

The CPU runs system initialization and evalu-

ates the SIMATIC Memory Card

-

After system initialization has been completed,

the CPU switches to STOP

Startup behavior of SINAMICS Integrated
SINAMICS Integrated power up begins once the power supply has been switched on. The SINAMICS Integrated state after successful power up depends on the configuration state of the SINAMICS Integrated and whether SINAMICS components are running a firmware update.
If booting up fails (for example because of a firmware update with errors), this is indicated by the RDY LED (2 Hz) flashing red.
You can find detailed information on the various LED states in the SIMATIC Drive Controller manual (https://support.industry.siemens.com/cs/ww/en/view/109766666).

194

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.3 Commissioning procedure

11.3.3

Downloading a project to the device

Requirements

 The plant has been installed and wired.
 The SIMATIC Drive Controller is on and is in STOP.
 The TIA Portal with integrated Startdrive has been installed and has started up on the PG/PC.
 You have created a project in the TIA Portal, added a SIMATIC Drive Controller with SINAMICS Integrated to the project and configured it.

Loading the CPU project
1. To load the project, select the CPU (PLC) in the project tree and click on the "Download to device" icon in the toolbar.
If necessary, the project data is compiled.
­ If you had previously established an online connection, the "Load preview" dialog opens. This dialog displays alarms and recommends actions needed for the loading operation.
­ If you have not already established an online connection, the "Extended download to device" dialog opens, and you must first select the interfaces via which you want to establish the online connection to the device.
2. Check the alarms in the "Load preview" dialog, and select the actions in the "Action" column if necessary. As soon as downloading becomes possible, the "Load" button is enabled.
3. Click "Load". The load operation is performed.
If there is a need for synchronization, the system automatically displays the "Synchronization" dialog. This dialog displays alarms and suggests actions that are needed for synchronization. You have the option of performing these actions or forcing the download without synchronization by clicking "Force download to device". If you have performed the suggested actions, you are asked whether you want to continue with the download. The "Load results" dialog then opens. In this dialog, you can check whether or not the load operation was successful and take any further actions that may be necessary.
4. Click "Finish".

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

195

Commissioning 11.4 Operating states of the CPU
Loading the drive configuration
Requirements For online functions such as "Download to device", "Upload from device" and "Go online" to be possible in SINAMICS Integrated, the following requirements must be met:  The firmware version configured for SINAMICS Integrated corresponds to the firmware
version of the device hardware.  You have downloaded the hardware configuration to the CPU (see "Loading the CPU
project").  You must have configured a subnet for the interface to which you are connecting your
programming device.
Procedure 1. To load the drive configuration, select the SINAMICS Integrated in the project tree. 2. In the toolbar, click on the "Download to device" icon. You can find further information on downloading the drive configuration in the SINAMICS S120 Startdrive commissioning manual (https://support.industry.siemens.com/cs/ww/en/view/109763294).

11.4

Operating states of the CPU

11.4.1

Overview of operating modes: Startup, STOP, RUN

Introduction

Operating states describe the state of the CPU. The following operating states are possible with the mode selector:
 STARTUP
 RUN
 STOP
In these operating states, the CPU can communicate, for example, over the PROFINET IO interface.
The status LEDs on the front of the SIMATIC Drive Controller indicate the current operating state.

196

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.4 Operating states of the CPU

11.4.2

STARTUP operating state

Response

Before the CPU starts to execute the cyclic user program, a startup routine is executed.
By programming startup OBs, you can specify initialization tags for your cyclic program in the startup routine. You can program one or more startup OBs, or none at all.

Points to note

 All outputs are disabled or react according to the parameter settings for the relevant module: They provide a configured substitute value or retain the last value output and switch the controlled process to a safe operating state.
 The process image is initialized.
 The process image is not updated. To read the current state of inputs during STARTUP, you can access inputs with direct I/O access. To initialize outputs during STARTUP, you can write the values via the process image or via direct I/O access. The values are output at the outputs during the transition to RUN.
 The CPU always starts up in a warm restart.
­ The non-retentive bit memories, timers and counters are initialized.
­ The non-retentive tags in data blocks are initialized.
 Cycle time monitoring is not yet running during startup.
 The CPU processes the startup OBs in the order of the startup OB numbers. The CPU processes all programmed startup OBs regardless of the selected startup type (see "Setting the startup behavior" figure below).
 If a relevant event occurs, the CPU can start the following OBs in startup:
­ OB 82: Diagnostics interrupt
­ OB 83: Removal/insertion of modules
­ OB 86: Rack error
­ OB 121: Programming error (only for global error handling)
­ OB 122: I/O access error (for global error handling only) You can find a description of how to use global and local error handling in the STEP 7 online help.
The CPU cannot start any other OBs until after the transition to RUN.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

197

Commissioning 11.4 Operating states of the CPU
Response when preset configuration does not match actual configuration The configuration downloaded to the CPU represents the preset configuration. The actual configuration is the actual configuration of the automation system. If the preset configuration and actual configuration differ, the hardware compatibility setting defines the behavior of the CPU. For additional information on hardware compatibility, see the section Operating mode transitions (Page 201).
Cancellation of startup If errors occur during startup, the CPU cancels startup and returns to STOP. The CPU does not perform startup or interrupts startup under the following conditions:  You have not inserted a SIMATIC Memory Card or have inserted an invalid one.  You have not downloaded a hardware configuration to the CPU.
Configuring startup behavior You configure the behavior of the CPU in the Startup group in the CPU properties.

198

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.4 Operating states of the CPU
Setting startup behavior Proceed as follows to set the startup behavior: 1. Select the CPU in the device view of the STEP 7 hardware network editor. 2. Select the "Startup" area in the properties under "General".

Figure 11-1 Setting startup behavior
 Sets the startup type after POWER ON  Defines the startup behavior for the event that a (distributed I/O) module in a slot does
not correspond to the configured module. This parameter applies to the CPU and to all the modules for which no other setting has been selected. · Startup CPU only if compatible: With this setting, a module in a configured slot must
be compatible with the configured module. Compatible means that the module has the relevant number of inputs and outputs and the electrical and functional properties correspond. · Startup CPU even if mismatch: With this setting, the CPU starts up irrespective of the type of module plugged.
 Specifies a maximum period (default: 60 000 ms) in which the distributed I/O must be
ready for operation. If the distributed I/O is ready for operation within the configuration time, the CPU switches to RUN. If the distributed I/O is not ready for operation within the configuration time, the startup behavior of the CPU depends on the hardware compatibility setting.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

199

Commissioning 11.4 Operating states of the CPU

11.4.3

STOP operating state

Response

The CPU does not execute the user program in STOP.
All outputs are disabled or react according to the parameter settings for the relevant module: They provide a configured substitute value or retain the last value output and thus keep the controlled process in a safe operating state.

Points to note

The STOP operating state results in a frame failure at the drive with a corresponding response at the drive end (for example, OFF3 fast stop, depends on parameter assignment). You can find additional information in the SINAMICS S120 Communication function manual (https://support.industry.siemens.com/cs/ww/de/view/109763284/en).

11.4.4

RUN operating state

Response

Cyclic, time-driven, and interrupt-driven program execution are performed in RUN. Addresses in the "Automatic update" process image are automatically updated in each program cycle. You can also find more information in Process images and process image partitions (Page 106).

Execution of the user program
Once the CPU has written the outputs and read the inputs, it executes the cyclic program from the first instruction to the last instruction. Events with a higher priority, such as hardware interrupts, diagnostic interrupts, Motion Control functions and communication, can interrupt the cyclic program flow and prolong the cycle time.
If you have configured a minimum cycle time, the CPU will not end the cycle until this minimum cycle time has expired, even if the user program is completed sooner.
The operating system monitors the execution time of the cyclic program for a configurable upper limit known as the maximum cycle time. You can restart this time monitoring at any point in your program by calling the RE_TRIGR instruction.
If the cyclic program exceeds the maximum cycle time, the operating system will attempt to start the time error OB (OB 80). If the OB does not exist, the CPU ignores the maximum cycle time overshoot. If the cycle monitoring time is exceeded for a second time, for example while the time error OB is being processed, the CPU switches to STOP.

200

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.4 Operating states of the CPU
Additional information You can find additional information on cycle and response times in the Cycle and Response Times (https://support.industry.siemens.com/cs/ww/en/view/59193558) function manual.

11.4.5

Operating state transitions

Operating states and operating state transitions The figure below shows the operating state and operating state transitions:

Figure 11-2 Operating states and operating state transitions
The table below shows the effects of operating state transitions:

Table 11- 1 Operating state transitions

No. Operating state transitions

Effects



POWER ON 

STARTUP

After switching on, the CPU switches to "STARTUP" if:
· The hardware configuration and program blocks are consistent.
· Startup type "Warm restart - RUN" is set.
or · Startup type "Warm restart mode before POWER
OFF" is set and the CPU was in RUN mode before POWER OFF.

The CPU clears the non-retentive memory, and resets the content of non-retentive DBs to the start values of the load memory. Retentive memory and retentive DB content are retained.
The 500 most recent entries are retained in the diagnostics buffer.



POWER ON 

STOP

After switching on, the CPU switches to "STOP" if:

The CPU clears the non-retentive

·

The hardware configuration and program blocks are inconsistent.

memory, and resets the content of non-retentive DBs to the start values of the load memory. Re-

or · Startup type "No restart" is set.
or · Startup type "Warm restart mode before POWER

tentive memory and retentive DB content are retained.
The 500 most recent entries are retained in the diagnostics buffer.

OFF" is set and the CPU was in STOP mode before

POWER OFF.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

201

Commissioning 11.5 SINAMICS Integrated operating states

No. Operating state transitions

Effects



STOP  STARTUP The CPU switches to "STARTUP" mode if:

The CPU clears the non-retentive

·

The hardware configuration and program blocks are consistent.

memory, and resets the content of non-retentive DBs to the start values of the load memory. Re-

· You set the CPU to "RUN" via the programming

tentive memory and retentive DB

device and the mode switch in is the RUN position. content are retained.

or · You move the mode switch from STOP to RUN.

The 500 most recent entries are retained in the diagnostics buffer.



STARTUP  STOP The CPU returns to "STOP" in the following cases of These operating mode transitions

"STARTUP":

have no effect on data.

· The CPU detects an error during startup.

· You set the CPU to "STOP" via the programming device or mode switch.

· The CPU executes a STOP command in the Startup OB.



STARTUP  RUN The CPU switches to "RUN" in the following cases of

"STARTUP":

· The CPU has initialized the PLC tags.

· The CPU has executed the startup blocks successfully.



RUN  STOP

The CPU returns to "STOP" in the following cases of "RUN":

· The CPU detects an error which prevents further work.

· The CPU executes a STOP command in the user program.

· You set the CPU to "STOP" via the programming device or mode switch.

Additional information
You can find information on the behavior of the axes in the different operating states in the S7-1500T Motion Control function manuals (https://support.industry.siemens.com/cs/ww/en/view/109751049).

11.5

SINAMICS Integrated operating states

SINAMICS Integrated operating states
SINAMICS Integrated has various different operating states. SINAMICS Integrated indicates the operating states with status LEDs. You can find further information in the SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766666) manual.

202

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.6 Runtime licensing

11.6

Runtime licensing
A number of runtime options requiring licensing are available at the CPU and drive end for the SIMATIC Drive Controller.

Licenses for the CPU CPU applications that require a runtime license include:  OPC UA  ProDiag  Energy Suite Proceed as follows to license the CPU: 1. Double-click the device configuration of the CPU in the project tree. The device configuration is opened in the device view. 2. Select the subordinate tab "General" in the "Properties" Inspector window. 3. Click the arrow next to the "Runtime licenses" section. The Runtime functions available for licensing and their license requirements are displayed. 4. Confirm the purchase of the required licenses.

Note
Licenses must be purchased to use the functions in question. For details, see the licensing terms for the given product.
If the CPU is sub-licensed, compilation of the CPU ends with license errors.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

203

Commissioning 11.6 Runtime licensing

Licenses for the SINAMICS Integrated and S120 control units
Certain functionalities with the SINAMICS S120 drive system require licensing. The licensing procedure for SINAMICS Integrated differs from the licensing procedure for SINAMICS S120 control units.
SINAMICS Integrated (in a process similar to that for runtime licenses for the CPU) is licensed by Engineering by confirming the purchase of the licenses. SINAMICS S120 control units, on the other hand, are licensed over the memory card. The memory card is generally ordered pre-licensed for this purpose.
In the order, specify the type and number of licenses you wish in additional information (Z options). Alternatively, you can also license the memory card with single licenses.

License

Licensing

SINAMICS license Safety Per axis Integrated Extended Func- max. 12 tions

Article number of the single license to be purchased for the SINAMICS Integrated or for SINAMICS S120 control units
6SL3074-0AA10-0AA0

Z option for prelicensing CF cards with SINAMICS S120 control units
Fxx (xx = number of licenses)

SINAMICS license Safety Per axis Integrated Advanced Func- max. 12 tions

6SL3074-0AA20-0AA0

Axx (xx = number of licenses)

SINAMICS Technology

Per SINAMICS 6SL3077-0AA00-5AB0

U03

Extension VIBX ­ Vibration Integrated / CU

extinction

SINAMICS Technology

Per SINAMICS 6SL3077-0AA01-8AB0

U02

Extension RAILCTRL ­

Integrated / CU

Rail Control/Multi-Carrier

System

SINAMICS Integrated only supports the licensed functions listed.
The SINAMICS Technology Extensions VIBX and RAILCTRL will be available soon for the SIMATIC Drive Controller.
Additional licensed functions and licenses are available for SINAMICS S120 control units.

204

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.6 Runtime licensing
Proceed as follows to license SINAMICS Integrated : 1. In the SINAMICS Integrated project tree, double-click on "Parameter assignment" under
"Automatic speed control". 2. The runtime functions available for licensing and license requirements are displayed in
the function view. 3. Confirm the purchase of the required licenses.
Note Licenses must be purchased to use the function in question. For details, see the licensing terms for the given product. If the SINAMICS Integrated is sub-licensed, this is indicated in the project tree and in the Startdrive working area. The number of licenses purchased is saved in the project. There is no sub-licensing response at the drive end.
Note SINAMICS S120 CU320-2 connected to the SIMATIC Drive Controller are licensed with the CF card of CU320-2. With sub-licensing, there is a sub-licensing response on the CU320-2.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

205

Commissioning 11.7 CPU memory reset

11.7

CPU memory reset

Basics of a memory reset
A memory reset on the CPU is possible only in the STOP mode.
During memory reset, the CPU is changed to a so-called "initial status".
This means that:  An existing online connection between your programming device/PC and the CPU is
terminated.  The content of the work memory and the retentive and non-retentive data (applies only to
manual memory reset by the user) are deleted.  The diagnostics buffer, time of day, and IP address are retained.  Subsequently the CPU is initialized with the loaded project data (hardware configuration,
code and data blocks, force jobs). The CPU copies this data from the load memory to the work memory. Result: ­ If you set an IP address in the hardware configuration ("Set IP address in the project"
option) and a SIMATIC Memory Card with the project is in the CPU, this IP address is valid after the memory reset.
­ Data blocks no longer have current values but rather their configured start values.
­ Force jobs remain active.

How can I tell if the CPU is performing a memory reset?
The RUN/STOP LED flashes yellow at 2 Hz. After completion the CPU goes into STOP mode, and the RUN/STOP LED is switched on (unchanging yellow).

Result after memory reset
The following table provides an overview of the contents of the memory objects after memory reset.

Table 11- 2 Memory objects after memory reset
Memory object Actual values of the data blocks, instance data blocks, technology objects (except for retentive tags of the TOs) Bit memories, timers and counters Retentive tags of technology objects (e.g. adjustment values of absolute encoders) Diagnostics buffer entries IP addresses Device name Counter readings of the runtime meters Time of day

Contents Initialized
Initialized Retained
Retained Retained Retained Retained Retained

206

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.7 CPU memory reset

11.7.1

Automatic memory reset

Possible cause of automatic memory reset
The CPU executes an automatic memory reset if an error occurs that prevents normal further processing.
Causes for such errors can be:
 User program is too large, and can't be completely loaded into work memory.
 The project data on the SIMATIC memory card are damaged, for example because a file was deleted.
 If you remove or insert the SIMATIC memory card and the backed-up retentive data differs in structure from that of the configuration on the SIMATIC memory card.

11.7.2

Manual memory reset

Reason for manual memory reset CPU memory reset is required to reset the CPU to its "original state".

CPU memory reset CPU memory reset is possible:  Using the mode selector  Using STEP 7

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

207

Commissioning 11.7 CPU memory reset
Procedure using the mode selector
Note Memory reset  Reset to factory settings The procedure described below also corresponds to the procedure for resetting to factory settings: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
To perform a memory reset of the CPU using the mode selector, follow these steps: 1. Set the mode selector to the STOP position.
Result: The RUN/STOP LED lights up yellow. 2. Set the mode selector to the MRES position. Hold the selector in this position until the
RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the selector. 3. Within the next three seconds, switch the mode selector back to the MRES position, and then back to STOP again. Result: The CPU executes memory reset. You can find information on resetting the CPU to factory settings in CPU reset to factory settings (Page 251).
Procedure using STEP 7 To perform a memory reset of the CPU via STEP 7, follow these steps: 1. Open the "Online Tools" task card of the CPU. 2. Click the "MRES" button in the "CPU control panel" pane. 3. Click "OK" in response to the confirmation prompt. Result: The CPU is set to STOP mode and performs memory reset.

208

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore

11.8

Configuring SIMATIC Drive Controller backup and restore

Backing up the software and hardware configuration If you have already downloaded a configuration to the SIMATIC Drive Controller, it is advisable to back it up. Before you test a new configuration, create a backup of the current device version. You can then restore the previous configuration at a later time. You can create as many backups as you want and store a variety of configurations for the SIMATIC Drive Controller.
Scope of the backup The backup includes all data that is needed to restore a particular configuration version of the SIMATIC Drive Controller. The following data is backed up, for example:  The content of the SIMATIC memory card including SINAMICS Integrated  Retentive memory areas of the CPU, for example, of data blocks, counters, and bit memory  Other retentive memory content, for example, IP address parameters The backup is performed with the current values of the CPU. Entries in the diagnostic buffer are not included in the backup. The current time of day of the CPU is not backed up.
SINAMICS Integrated configured
Note If a SINAMICS Integrated is configured, the configuration of the SINAMICS Integrated is also backed by/restored from the SIMATIC memory card. NVRAM data must first have been backed up on the SIMATIC memory card. You can find more information in Backing up, restoring and deleting SINAMICS Integrated NVRAM data (Page 213).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

209

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore

11.8.1

Backing up and restoring the CPU configuration
Backup from online device You may want to make changes to your plant over time (for example, add new devices, replace existing devices or adapt the user program). Before you download a changed configuration to the CPU, first use the option "Backup from online device" to create a complete backup of the current device state.
Upload from device (software) With the option "Upload from device (software)", you load the software project data from the CPU to an existing CPU in the project.
Upload device as new station If you are operating a new PG/PC in a plant, the STEP 7 project that was used to create the plant configuration might not be available. In this case, you can use the option "Upload device as new station" to load the device data to a project in your PG/PC.
Snapshot of the actual values You can use the option "Snapshot of the actual values" to back up the actual values of the data blocks so that you can restore the actual values after any changes, if necessary.

210

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore

Overview of backup types
The table below shows the backup of CPU data in line with the selected type of backup and its specific characteristics:

Table 11- 3 Types of backup

Current values of all DBs (global and instance data blocks)1 Blocks of the type OB, FC, FB and DB PLC tags (tag names and constant names) Technology objects Hardware configuration Actual values (bit memories, timers and counters)1 Content of the SIMATIC Memory Card Archives, recipes Entries in the diagnostics buffer Current time
Backup possible for failsafe CPUs Backup can be edited Backup possible in operating mode SINAMICS Integrated configuration backup

Backup from online device


Upload from device (software)
















--



--



--



--

--

--

--

--

Properties of the backup type





--



STOP

RUN, STOP

3

--

Upload device as new station 


  --
 2
----
  RUN, STOP --

1 Only the values of the tags that are set as retentive are saved. 2 Content of DataLogs, Recipes and UserFiles folders 3 SINAMICS NVRAM data must first have been backed up on the SIMATIC Memory Card.

Snapshot of the monitor values

--
--
----
--
----
  RUN, STOP --

Note Downloading project data to the CPU
Files with project data to be loaded from the SIMATIC Memory Card to the CPU must not be larger than 2 GB.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

211

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore

Additional information
You can find more information on the different backup types in the STEP 7 online help.
For more details on backing up NVRAM data of SINAMICS Integrated, see the section Backing up, restoring and deleting SINAMICS Integrated NVRAM data (Page 213).

Emergency address (emergency IP)
The emergency address (emergency IP address) of a CPU is designed for diagnostic and download functions, for example, if the CPU can no longer be reached via the IP protocol because the wrong project has been loaded. You can find information on the emergency address in the Communication (https://support.industry.siemens.com/cs/ww/en/view/59192925) function manual.

Storing multilingual project texts When you configure a CPU, different categories of texts are generated, for example  Object names (names of blocks, modules, tags, etc.)  Comments (for blocks, networks, watch tables, etc.)  Messages and diagnostic texts Texts are provided by the system (for example diagnostic buffer texts) or are created during configuration (for example messages). In a project, texts exist in one single language or in several languages after a translation process. You can maintain project texts in all language available to you in the project tree (Languages & Resources > Project Texts). The texts created during configuration can be loaded to the CPU. The following texts containing the project data are loaded to the CPU in the chosen languages and are also used by the Web server:  Diagnostic buffer texts (not editable)  Module state texts (not editable)  Message texts with associated text lists  Tag comments and step comments for S7 GRAPH and PLC Code Viewer  Comments in watch tables The following texts containing the project languages are also loaded to the CPU in the chosen languages, but are not used by the Web server:  Comments in tag tables (for tags and constants)  Comments in global data blocks  Comments of elements in block interfaces of FBs, FCs, DBs and UDTs  Network titles in blocks written in LAD, FBD or STL  Block comments  Network comments  Comments of LAD and FBD elements

212

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore
The SIMATIC Drive Controller CPU supports the storage of multilingual project texts in up to three different project languages. If the project texts belonging to a specific project language nevertheless exceed the memory space reserved for them, the project cannot be loaded to the CPU. The operation is canceled with a message indicating that not enough free storage space is available. In such a case, take measures to reduce the required storage space, for example by shortening comments.
Note Size of the SIMATIC Memory Card
If the storage space needed to load projects exceeds the storage space available on the SIMATIC Memory Card in use, loading to the CPU is canceled with an error message.
Therefore, make sure that there is enough available storage space on your SIMATIC Memory Card for loading projects.
Please remember when selecting the memory card capacity that the project data of both the CPU and SINAMICS Integrated is stored on the memory card.
You can find information on reading out the storage space capacity utilization of the CPU and the SIMATIC Memory Card in the Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/ww/en/view/59193101) function manual.
You can find information on parameter assignment of multilingual project texts in STEP 7 in the STEP 7 online help.

11.8.2

Backing up, restoring and deleting SINAMICS Integrated NVRAM data

Backing up the non-volatile memory
The SINAMICS Integrated has a non-volatile memory, NVRAM (Non-Volatile Random Access Memory), for operating data. Data stored in this memory includes the data from the fault buffer, diagnostics buffer and message buffer.
In certain circumstances, for example, a defect or device replacement, this data needs to be backed up. After changing the hardware, you transfer the backup data back to the NVRAM.
p7775 (control unit parameter) is used to execute the following operations:
 p7775 = 1 backs up NVRAM data to the memory card.
 P7775 = 2 copies the NVRAM data from the memory card to the NVRAM.
 p7775 = 3 deletes the data in the NVRAM.
A POWER ON is executed automatically once the data has been successfully deleted. If the operation was successful, p7775 = 0 is automatically set. If the operation was not successful, p7775 displays an error value. You can find further details on error values in the SINAMICS S120/S150 list manual (https://support.industry.siemens.com/cs/ww/en/view/109763271).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

213

Commissioning 11.8 Configuring SIMATIC Drive Controller backup and restore
Backing up NVRAM data p7775 = 1 stores the NVRAM data of the SINAMICS Integrated in the subdirectory "SINAMICS.S7S\USER\SINAMICS\NVRAM\PMEMORY.ACX" on the memory card. The storage operation backs up all data from the NVRAM.
Note Backing up NVRAM data NVRAM data backup to the memory card is also possible during pulse enable. If the drive is moved during NVRAM data transfer, the data backup may not be consistent with the NVRAM data.

Restoring NVRAM data There are two situations that require NVRAM data to be restored.  Replacement of the SIMATIC Drive Controller.  Targeted NVRAM data restore due to suspected data errors.
Replacement of the SIMATIC Drive Controller: The SINAMICS Integrated detects a replacement based on the serial number of the SIMATIC Drive Controller. Following POWER ON, the NVRAM of the SINAMICS Integrated is cleared and the NVRAM data is then loaded from the SIMATIC memory card.
NVRAM restore: A targeted restore process of the saved NVRAM data is triggered by setting p7775 = 2. The original file is first deleted in NVRAM. If the file "PMEMORY.ACX" is available and has a valid checksum, it is loaded to the NVRAM. The following data is not restored:  Operating hours counter  Temperature  Safety logbook  Crash diagnostics data
Deleting NVRAM data p7775 = 3 deletes the NVRAM data. The following data is not deleted in the process:  Operating hours counter  Temperature  Safety logbook  Crash diagnostics data

214

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

11.9

Time synchronization

Commissioning 11.9 Time synchronization

11.9.1

Time-of-day synchronization of the CPU

NTP procedure
All CPUs are equipped with an internal clock. The clock always shows the time-of-day with a resolution of 1 millisecond and the date including the day of the week. The time adjustment for daylight saving time is also taken into account.
You can update the time of the CPUs using the NTP procedure with an NTP server. NTP (Network Time Protocol) is a standard for synchronizing clocks.
In NTP mode, the device sends time queries at regular intervals (in client mode) to the NTP server in the subnet (LAN). Based on the replies from the server, the most reliable and most accurate time is calculated and the time of day on the CPU is synchronized. The advantage of this mode is that it allows the time to be synchronized across subnets. You can configure the IP addresses of up to a maximum of four NTP servers. You address the sources for the time-of-day synchronization via IP addresses, for example, an HMI device.
The update interval defines the interval between the time queries (in seconds). The value of the interval ranges between 10 seconds and one day. The NTP procedure generally uses UTC (Universal Time Coordinated). UTC corresponds to GMT (Greenwich Mean Time).

NTP server for the SIMATIC Drive Controller
In STEP 7, you enable time synchronization using the NTP procedure. In STEP 7, you can configure up to four NTP servers for the SIMATIC Drive Controller.
If you have enabled time synchronization via NTP for the CPU, then you can enter the IP addresses of up to four NTP servers in the user program. Use the "T_CONFIG" instruction.

Enabling time synchronization via NTP server Proceed as follows to enable time-of-day synchronization via NTP servers for the CPU:
1. In the Inspector window, navigate to the properties of the CPU to "General" > "PROFINET interface" > "Time-of-day synchronization".
2. Select the "Enable time synchronization via NTP server" option.

Configuring NTP server in STEP 7
Proceed as follows to configure one or more NTP servers for the CPU:
1. In the Inspector window, navigate to the properties of the CPU to "General" > "PROFINET interface" > "Time-of-day synchronization".
2. Enter the IP addresses of up to 4 NTP servers at the parameters "Server 1" to "Server 4".
3. Set the time interval of the time queries at the parameter "Update interval". Set the update interval to between 10 s and 86400 s.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

215

Commissioning 11.9 Time synchronization
Changing the IP addresses of the NTP servers with the "T_CONFIG" instruction For the CPU, you can change the addresses of up to four NTP servers during runtime with the T_CONFIG instruction. Requirement: You have configured at least one NTP server in STEP 7. Even if you have only configured one NTP server, you can save up to four NTP servers in the T_CONFIG instruction. Proceed as follows to change the IP addresses of the NTP servers with the T_CONFIG instruction: 1. Save the IP addresses for the NTP servers in a tag of the data type IF_CONF_NTP. 2. Interconnect the tag of the data type IF_CONF_NTP at the block parameter CONF_DATA of the T_CONFIG instruction. 3. Call the T_CONFIG instruction in the user program. Result: The addresses of the NTP servers from the T_CONFIG instruction are transferred to the CPU. The NTP server addresses configured in STEP 7 are overwritten. You can change the addresses of the NTP servers with T_CONFIG more than once if necessary.
Additional information For additional information on time-of-day synchronization - time synchronization, refer to the following FAQ on the Internet (https://support.industry.siemens.com/cs/de/en/view/86535497).

216

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

11.9.2

Commissioning 11.9 Time synchronization

Time-of-day synchronization of SINAMICS drives
In the factory setting, SINAMICS drives (SINAMICS Integrated, SINAMICS S120) use an operating hours counter. The SINAMICS drive saves interrupts or warnings that occur on the basis of the operating hours. This method does not allow comparable time stamps between multiple drives and the CPU.
If you want comparable time stamps between multiple devices, you need to switch from operating hours counting to UTC format and implement synchronization with the time-of-day master (CPU).
UTC = Universal Time Coordinated; corresponds to GMT (Greenwich Mean Time)
You can then compare the events of all bus nodes that are synchronized with the CPU time.
SINAMICS drives offer the following time-of-day synchronization options:

Synchronization type Simple synchronization Synchronization with ping compensation in non-isochronous communication Synchronization with ping compensation in isochronous communication
Synchronization with Network Time Protocol (NTP) over a PROFINET connection

Accuracy Approx. 100 ms Approx. 10 ms

Notes
Only possible with suitable user program

Approx. 1 ms Approx. 10 ms

Time-of-day synchronization is available as a system functionality for the SIMATIC Drive Controller .
Only for converters on PROFINET IO
(e.g. SINAMICS S120 CU320-2 PN or SINAMICS S120)
Cannot be used for SINAMICS Integrated

With the SIMATIC Drive Controller, time-of-day synchronization of the SINAMICS drives can be implemented automatically by the system or through a user program.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

217

Commissioning 11.9 Time synchronization
Time-of-day synchronization by the system Time-of-day synchronization between CPU and SINAMICS drives is activated in the TIA Portal. By default, time-of-day synchronization is deactivated. Proceed as follows to activate time-of-day synchronization: 1. Select "General" > "Time-of-day synchronization" 2. Select the option "By the system"

Figure 11-3 Time-of-day synchronization
Please note the following in relation to time-of-day synchronization:
 An OB MC Servo must be available and be synchronized with the relevant subnet.
 Frame 39x must be assigned to OB MC Servo and its process image.
 Selecting the "By the system" option switches the drive from operating hours counting to time-of-day synchronization with the controller.
 The time-of-day synchronization takes place with isochronous ping compensation.
 The first time-of-day synchronization takes place after the SIMATIC Drive Controller has entered the RUN state.
 Interrupts and alarms before the first synchronization are saved with the valid time stamp in SINAMICS at those times; all subsequent interrupts and alarms are saved with the synchronized time. The first time-of-day synchronization after synchronization is activated is entered in the diagnostic buffer of the drive with the status of the operating hours counter and the time of day (UTC time, synchronized with SIMATIC Drive Controller).
 If you want to implement time-of-day synchronization through a user program, the option "By the system" must be deselected.

218

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.9 Time synchronization

Compensation for runtime deviations To compensate for runtime deviations between SIMATIC and SINAMICS clocks, the time is automatically re-synchronized at regular intervals.
Please note the following response to setting the SINAMICS clock time:

SIMATIC clock time

Response of SINAMICS

Great than time/date on SINAMICS

Time and date are tracked on SINAMICS

Less than time/date on SINAMICS

The clock on SINAMICS is stopped until the "Time/date to be set" is reached.

This response ensures that the order of SINAMICS diagnostic buffer entries is retained following runtime difference compensation.

The SINAMICS clock operates with a resolution of 1 ms. A synchronization accuracy of 1 ms is achieved for all bus clock cycles divisible by 1 ms (for example 1 ms, 2 ms, 3 ms).

For all bus clock cycles that cannot be divided by 1 ms (for example 1.25 ms), a slightly lower synchronization accuracy is achieved in line with the system.

Precise synchronization is only ensured if OB MC Servo is operated in isochronous mode.

Resetting the time
Parameter p3109 is used to define a threshold that has the following effect in the event of negative time jumps:

Negative time jump

Effect on time

Less than threshold value

Time is paused (for details, see "Compensation for runtime deviations")

Greater than threshold value

Clock time is reset

Default setting for the threshold: p3109 = 100 ms

This means that the clock time is reset in the event of negative time jumps of more than 100 ms.

The default value is set so that normal runtime deviations (quartz drift) are below the threshold. If the CPU clock is set back by more than 100 ms, this is interpreted as an "intentional clock time reset" and the clock time of the drives is also set back immediately. The warning A01099 is also output.

If the real-time clock is reset by more than 60 seconds, an entry is also written to the diagnostic buffer in the drive:

Time correction (adjustment) by <correction value> seconds

Following another synchronization operation (negative time jump greater than the threshold), the parameter cu.p3107 has the following values:

 p3107[0 ... 1] the UTC time after synchronization

 p3107[2 ... 3] the UTC time before synchronization

[0] and [2] are milliseconds; [1] and [3] are days.

Note
The diagnostic buffer entries are not converted to the new time after the clock time changeover.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

219

Commissioning 11.9 Time synchronization
Time-of-day synchronization with the user program Time-of-day synchronization can be implemented through a user program.
Example: SIMATIC S7-1200/S7-1500 and SIMOTION: LAcycCom library for acyclic communication (https://support.industry.siemens.com/cs/ww/en/view/109479553), FB LAcycCom_RTCSinamicsAcyclic
Note If you want to implement time-of-day synchronization for SINAMICS S120 through a user program or the NTP time-of-day synchronization, you need to deselect the option "By the system" for "Time-of-day synchronization". NTP time-of-day synchronization can be used for SINAMICS S210 drives independent of this.
Additional information For additional information, see SINAMICS S120 Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/109763284), "Time-of-day synchronization between controller and converter".

220

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

11.10

Commissioning 11.10 Identification and maintenance data
Identification and maintenance data

11.10.1

Reading out and entering I&M data

I&M data

Identification and maintenance data (I&M data) is data saved on the module as read-only (I data) or read/write (M data) information.
 Identification data (I&M0): Manufacturer information about the module that can only be read and is in part also printed on the enclosure of the module, such as article number and serial number.
 Maintenance data (I&M1, 2, 3): Plant-dependent information, e.g. installation location. The maintenance data for the SIMATIC Drive Controller is created during configuration and downloaded to the automation system/distributed I/O system.
The SIMATIC Drive Controller supports identification data (I&M0 to I&M3).
The I&M identification data supports you in the following activities:
 Checking the plant configuration
 Locating hardware changes in a plant
 Correcting errors in a plant
Modules can be clearly identified online using the I&M identification data.
You can read out the identification data with STEP 7 (see online help for STEP 7).

Options for reading out I&M data  Via the user program  Via STEP 7 or HMI devices  Via the CPU web server

Procedure for reading I&M data via the user program You have the following options for reading the I&M data of the modules in the user program:  Using the RDREC instruction The data record structure for the CPU as well as for distributed modules accessible via PROFINET IO/PROFIBUS DP is described in Record structure for I&M data (Page 223).  Using the Get_IM_Data instruction

Further information The description of the instructions can be found in the STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

221

Commissioning 11.10 Identification and maintenance data
Procedure for reading I&M data via STEP 7 Requirement: There must be an online connection to the CPU/interface module. To read I&M data using STEP 7, follow these steps: 1. In the project tree, select the CPU/interface module and go to "Online & diagnostics". 2. In the "Diagnostics" folder, select the "General" area.
Procedure for entering maintenance data via STEP 7 STEP 7 assigns a default module name. You can enter the following information:  Plant designation (I&M 1)  Location identifier (I&M 1)  Installation date (I&M 2)  Additional information (I&M 3) To enter maintenance data via STEP 7, follow these steps: 1. In the device view of STEP 7, select the CPU/interface module or a module. 2. In the properties under "General", select the "Identification & Maintenance" area and enter the data. During the loading of the hardware configuration, the maintenance data (I&M 1, 2, 3) are also loaded.
Procedure for reading I&M data via the Web server The procedure is described in detail in the Web server Function Manual (https://support.industry.siemens.com/cs/ww/en/view/59193560).

222

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.10 Identification and maintenance data

11.10.2

Record structure for I&M data

Reading I&M records via user program (centrally and distributed via PROFINET IO)
Use Read data record ("RDREC" instruction) to access specific identification data. Under the associated record index you obtain the corresponding part of the identification data.
The records are structured as follows:

Table 11- 4 Basic structure of data records with I&M identification data

Contents Header information BlockType
BlockLength
BlockVersionHigh BlockVersionLow Identification data Identification data (see table below)

Length (bytes)
2
2
1 1 I&M0/Index AFF0H: 54 I&M1/Index AFF1H: 54 I&M2/Index AFF2H: 16 I&M3/Index AFF3H: 54

Coding (hex)
I&M0: 0020H I&M1: 0021H I&M2: 0022H I&M3: 0023H I&M0: 0038H I&M1: 0038H I&M2: 0012H I&M3: 0038H 01 00
-

Table 11- 5 Record structure for I&M identification data

Identification data

Access

Identification data 0: (record index AFF0H)

VendorIDHigh

Read (1 byte)

VendorIDLow

Read (1 byte)

Order_ID

Read (20 bytes)

Example
0000H 002AH 6ES7615-4DF10-0AB0

IM_SERIAL_NUMBER IM_HARDWARE_REVISION

Read (16 bytes) Read (2 bytes) 1

IM_SOFTWARE_REVISION · SWRevisionPrefix

Read (1 byte)

· IM_SWRevision_Functional_ (1 byte) Enhancement

· IM_SWRevision_Bug_Fix

(1 byte)

Firmware version V 0000H - 00FFH
0000H - 00FFH

Explanation
Vendor name (002AH = SIEMENS AG)
Article number of the module (for example, CPU 1504D TF) Serial number (device-specific) corresponds to hardware version (e.g. 1) Provides information about the firmware version of the module (e.g. V1.0.0)

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

223

Commissioning 11.10 Identification and maintenance data

Identification data · IM_SWRevision_Internal_
Change
IM_REVISION_COUNTER

Access (1 byte)

Example 0000H - 00FFH

Read (2 bytes) 0000H

IM_PROFILE_ID

Read (2 bytes)

IM_PROFILE_SPECIFIC_TYPE Read (2 bytes)

IM_VERSION · IM_Version_Major · IM_Version_Minor IM_SUPPORTED

Read (1 byte) (1 byte) Read (2 bytes)

0000 H 0001H 0003H 0101H
000EH

Maintenance data 1: (Record index AFF1H)

IM_TAG_FUNCTION

Read/write (32 bytes)

IM_TAG_LOCATION

Read/write (22 bytes)

Maintenance data 2: (Record index AFF2H)

IM_DATE

Read/write (16 bytes)

Maintenance data 3: (Record index AFF3H)

IM_DESCRIPTOR

Read/write (54 bytes)

YYYY-MM-DD HH:MM -

Explanation
Provides information about parameter changes on the module (not used) Generic Device CPU I/O modules Provides information on the ID data version (0101H = Version 1.1)
provides information about the available identification and maintenance data (I&M1 to I&M3)
Enter an identifier for the module here, that is unique plant-wide. Enter the installation location of the module here.
Enter the installation date of the module here.
Enter a comment about the module here.

Reading I&M records with record 255 (distributed configuration via PROFIBUS)
You can directly access specific identification data by selecting Read data record ("RDREC" instruction).
The modules support standardized access to identification data using DR 255 (index 65000 to 65003). For additional information on the DR 255 data structure, refer to the specifications of the Profile Guidelines Part 1: Identification & Maintenance Functions - Order no.: 3.502, Version 1.2, October 2009. You can find further information on the Internet (https://www.profibus.com/) website of the PROFIBUS user organization.

224

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.10 Identification and maintenance data

11.10.3

Example: Read out firmware version of the CPU with Get_IM_Data

Automation task
You want to check whether the modules in your automation system have the current firmware. You can find the firmware version of the modules in the I&M0 data. The I&M0 data is the basic information for a device. The I&M0 data contains information such as:
 Manufacturer ID
 Article number and serial number
 Hardware and firmware version
To read out the I&M0 data, use the "Get_IM_Data" instruction. You read the I&M0 data of all modules in the user program of the CPU with "Get_IM_Data" instructions and store the I&M data in a data block.

Conditions and parameters
To read out the I&M data of the CPU, use the following block parameters of the "Get_IM_Data" instruction:
 LADDR: Enter the hardware identifier of the module at the block parameter "LADDR".
 IM_TYPE: Enter the I&M data number (for example "0" for I&M0 data) at the "IM_TYPE" block parameter.
 DATA: Area for storing the read I&M data (for example. in a global data block). Store I&M0 data in an area of the data type "IM0_Data".
This example shows how to read out the I&M0 data of a CPU 1504D TF (6ES7615-4DF100AB0) . To read out the I&M0 data of a different module, simply use the hardware identifier of the module at the LADDR parameter.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

225

Commissioning 11.10 Identification and maintenance data

Solution

Proceed as follows to read out the I&M0 data of the CPU:
1. Create a global data block to store the I&M0 data.
2. Create a structure of the data type "IM0_Data" in the global data block. You can assign any name for the structure (in this case "imData").

Figure 11-4 Example: Data block for I&M data
3. Create the "Get_IM_Data" instruction in the user program, for example, in OB 1. 4. Interconnect the "Get_IM_Data" instruction as follows:

Figure 11-5 Example: Reading out I&M0 data
5. Call the "Get_IM_Data" instruction in the user program.

226

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Commissioning 11.11 Shared commissioning of projects
Result The "Get_IM_Data" instruction has stored the I&M0 data in the data block. You can view the I&M0 data online in STEP 7, for example, in the data block with the "Monitor all" button. The CPU in the example is a CPU 1507D TF (6ES7615-7DF10-0AB0) with the firmware version V2.8.

Figure 11-6 Example: I&M0 data of an S7-1500 CPU

11.11

Shared commissioning of projects

Team Engineering
In Team Engineering, several users from various engineering systems work on a project at the same time and access one SIMATIC Drive Controller CPU.
The users can edit separate parts of a master project independently of one another at the same time. When the configuration is loaded to the CPU, the CPU shows changes by the other editors in a synchronization dialog and ­ if possible ­ synchronizes the changes automatically.
Certain online functions can also be executed in parallel from several engineering systems on a shared CPU, for example:
 Monitoring blocks on the CPU
 Modifying blocks on the CPU
 Trace functions
You can find detailed information on the topic of Team Engineering in the STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

227

Commissioning 11.11 Shared commissioning of projects

228

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SIMATIC memory card

12

12.1

SIMATIC memory card ­ Overview

Introduction

The SIMATIC Drive Controller uses the SIMATIC Memory Card of the S7-1500 automation system. The CPU data and the data of the SINAMICS Integrated is stored on the memory card.
The SIMATIC Memory Card is pre-formatted and is compatible with the Windows file system. The memory card is available in different memory sizes and can be used for the following purposes:
 Portable data storage medium
 CPU program card including SINAMICS Integrated configuration
 Firmware update card for CPU and SINAMICS Integrated
 Service data card for CPU and SINAMICS Integrated
You can find an overview of the memory card sizes available to order in Accessories/spare parts (Page 281).

Backing up the CPU configuration
When you transfer the user program to the CPU via an online connection, the user program is written to the SIMATIC Memory Card. The SIMATIC Memory Card must be in the card slot of the CPU for this to work.
You can also write the SIMATIC Memory Card in the PG/PC. A commercially available SD card reader is needed to read or write the SIMATIC Memory Card with the PG/PC. This allows you to copy files directly to the SIMATIC Memory Card with Windows Explorer, for example.
Note
The SIMATIC Memory Card is essential for operation of the CPU.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

229

SIMATIC memory card 12.1 SIMATIC memory card ­ Overview
Backing up the drive configuration The SINAMICS Integrated parameter assignment settings are only saved in the volatile memory. If you do not back up the settings on the SIMATIC Memory Card, they will be lost when the SIMATIC Drive Controller is switched off.
Requirements To save the configuration of the SINAMICS Integrated to the SIMATIC Memory Card, you need an online connection to the SINAMICS Integrated. To establish the online connection, you must first load the hardware configuration to the SIMATIC Drive Controller. You can find additional information on this in Downloading a project to the device (Page 195).
Saving online data To save the current project data to the retentive memory of the SIMATIC Memory Card, go to the function view for the active drive and click on the icon (Save data for entire device to retentive memory).
Saving offline data Proceed as follows to save offline data to the SIMATIC Memory Card as well as in the TIA Portal project: 1. Establish an online connection to SINAMICS Integrated . 2. Download the project data to the SINAMICS Integrated.
To do so, click on the icon (Download to device) in the toolbar. 3. Click on the icon in the function view for the active drive (Save data for entire device to
retentive memory). The parameters are saved to the SIMATIC Memory Card retentive memory.
Note The function "Save data for entire device to retentive memory" is also known as "RAM to ROM".

230

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Labeling of the SIMATIC Memory Card

SIMATIC memory card 12.1 SIMATIC memory card ­ Overview

 Article number  Serial number  Production version  Memory size  Slider for setting write protection:
· Slider up: not write-protected
· Slider down: write-protected
Figure 12-1 Labeling of the SIMATIC Memory Card

Folders and files on the SIMATIC Memory Card The SIMATIC Memory Card can contain the following folders and files:

Table 12- 1 Folder structure

Folder FWUPDATE.S7S SIMATIC.S7S
SINAMICS.S7S
SIMATIC.HMI DataLogs* Recipes* UserFiles*
Backups DUMP.S7S

Description
Firmware update files for CPU and SINAMICS Integrated Project data of the CPU; user program, i.e. all blocks (OBs, FCs, FBs, DBs) and system blocks If SINAMICS Integrated is configured, project data of the SINAMICS Integrated The folder structure under the SINAMICS.S7S folder is based on the structure of a SINAMICS S120 memory card. HMI-related data DataLog files Recipe files You need to manually create the folder "UserFiles" for user data on the memory card. Only files in this folder (*.pdf, *.txt, *.csv, etc.) are also loaded to the TIA Portal project with the "Upload device as new station" function. Files for backup and restore Service data files

* The content of these folders is also loaded to the TIA Portal project with the "Upload device as new station" function.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

231

SIMATIC memory card 12.1 SIMATIC memory card ­ Overview

Table 12- 2 File structure
File type S7_JOB.S7S SIMATIC.HMI\Backup\*.psb SIMATICHMI_Backups_DMS.bin __LOG__ crdinfo.bin *.pdf, *.txt, *.csv, etc.

Description
Job file
Panel backup files
Protected file (required for use of panel backup files in STEP 7)
Protected system file (required for use of card)
Protected system file (required for use of card)
Additional file with different formats that you can also store in folders on the SIMATIC Memory Card If you store the files in the "UserFiles" folder, the files are stored in the STEP 7 project with "Upload device as new station" and can be used, for example, for restoring files in the event of a defective SIMATIC Memory Card.

Note
Supported file/directory names and hierarchy levels on the SIMATIC Memory Card
The following rules apply to file names, directory names and hierarchy levels on the SIMATIC Memory Card:
· Do not use any umlauts (ö, ä, ü, Ö, Ä, Ü) in file and/or directory names.
· Use a maximum of 60 characters for file and/or directory names.
· Use a maximum of 6 hierarchy levels for the directory structure of the SIMATIC Memory Card (e.g: /mountpoint/1/2/3/4/5/6/file.txt). The operating system of the CPU supports directories of no more than 8 levels, where one level is reserved for the mount point and one for the actual file.

Using the serial number for copy protection
You can set up copy protection for CPUs that binds execution of the block to a specific SIMATIC Memory Card. Configuration is carried out in STEP 7 in the properties of the block "Bind to serial number of the SIMATIC Memory Card".
You can then only execute the block if it is on the SIMATIC Memory Card with the specified serial number (see Copy protection (Page 179)).
Note SINAMICS Integrated
You can find information on how to protect settings on SINAMICS Integrated from unauthorized reproduction in the SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/ww/den/view/109763287) function manual.

232

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SIMATIC memory card 12.1 SIMATIC memory card ­ Overview
Removing a SIMATIC Memory Card from the CPU
Note Do not remove the SIMATIC Memory Card while a write operation is in progress. If you remove the memory card from the CPU during a write operation, the content of the memory card may become invalid. The memory areas can then lose their retentivity. You may need to clear the memory card on the programming device and load the program again.
Proceed as follows to remove the SIMATIC Memory Card:  Switch off the supply voltage.
Note If there is no write access over the programming device in progress, you can also remove the memory card when the supply voltage is on and the system is in STOP. In this case, first disconnect all communication connections as a precaution.
Inserting the SIMATIC Memory Card in the CPU in STOP state triggers a re-evaluation of the SIMATIC Memory Card. The CPU compares the content of the configuration on the SIMATIC Memory Card with the backed-up retentive data. If the backed-up retentive data matches the data of the configuration on the SIMATIC Memory Card, the retentive data is retained. If the data differs, the CPU automatically performs a memory reset. A memory reset deletes the retentive data on the CPU. After the memory reset, the CPU switches to STOP. Please also note the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183) relating to the removal of the SIMATIC Memory Card.
Note Using the SIMATIC Memory Card as a firmware update card If you use the SIMATIC Memory Card as a firmware update card, removing and inserting the card will not result in the loss of retentive data. You can find more information in SIMATIC Drive Controller firmware update (Page 244).
Removing a SIMATIC Memory Card from Windows computers If you are using the card in a commercially available card reader under Windows, use the "Eject" function before you remove the card from the card reader. If you remove the card without using the "Eject" function, you may lose data.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

233

SIMATIC memory card 12.1 SIMATIC memory card ­ Overview
Deleting content from the SIMATIC Memory Card You have the following options for deleting the content of the SIMATIC Memory Card:  Delete files using Windows Explorer  Format with STEP 7
Note If you format the card with Windows tools, you will render the SIMATIC Memory Card unusable as a storage medium for a CPU. Deletion of files and folders is permitted, with the exception of the "__LOG__" and "crdinfo.bin" system files. The CPU needs these system files. If you delete the files, you will no longer be able to use the SIMATIC Memory Card with the CPU. If you have deleted the "__LOG__" and "crdinfo.bin" system files, format the SIMATIC Memory Card as described in the following section.

Formatting a SIMATIC Memory Card
Note Formatting the SIMATIC Memory Card Do not format the memory card with Windows tools. Formatting with Windows renders the memory card initially unusable by a CPU. You can find information on how to repair an inconsistent or incorrectly formatted card in the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/69063974).
To free up memory space on your SIMATIC Memory Card, you have the option of formatting the SIMATIC Memory Card. During formatting, the entire contents of the memory card including the project data of the SINAMICS Integrated are deleted. The SIMATIC Memory Card may only be formatted in the CPU. Proceed as follows with the SIMATIC Memory Card inserted:
Formatting with STEP 7:  Establish an online connection.  Open the online and diagnostics view of the CPU (either from the project context or via
"Accessible devices").  In the dialog window, select "Functions > Format memory card" and then select the
"Format" button. Results:  The SIMATIC Memory Card is formatted.  The CPU is temporarily unavailable.  The project data on the CPU is deleted with the exception of the IP address.

234

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SIMATIC memory card 12.2 Setting the card type
Replacing the SIMATIC Memory Card without loss of retentive data You can change the SIMATIC Memory Card or use a larger SIMATIC Memory Card without losing the retentive data. When you switch off the CPU, the retentive data is backed up in the retentive memory of the CPU. While the CPU is off, you can remove the memory card and copy its content to a larger memory card. After the CPU is switched on, the data backed up in the CPU when the CPU was switched off is restored.

12.2

Setting the card type

Introduction

You can use the SIMATIC Memory Card as a program card or as a firmware update card.

Procedure using STEP 7
1. To set the card type, insert the SIMATIC Memory Card in the card reader of the programming device.
2. Select the "SIMATIC Card Reader" folder in the project tree.
3. In the properties of the selected SIMATIC Memory Card, specify the card type:
 Program card
You use a program card as an external load memory for the SIMATIC Drive Controller. The program card contains the complete user program for the CPU and the configuration of the SINAMICS Integrated. The SIMATIC Drive Controller transfers the user program and drive configuration from the load memory to the work memory. The user program and automatic speed control run in the work memory.
The following folders are created on the SIMATIC Memory Card:
­ SIMATIC.S7S
­ SINAMICS.S7S (if a SINAMICS Integrated is configured)
 Firmware update card
You can save the firmware of a CPU and SINAMICS Integrated on a SIMATIC Memory Card. This enables you to perform a firmware update with the help of a specially prepared SIMATIC Memory Card.
The following folder is created on the SIMATIC Memory Card: FWUPDATE.S7S
You can find information on how to update the SIMATIC Drive Controller in SIMATIC Drive Controller firmware update (Page 244) You can find information on how to update the firmware of the DRIVE-CLiQ component in DRIVE-CLiQ component firmware update (Page 249).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

235

SIMATIC memory card 12.2 Setting the card type
Service data card You can save service data on a SIMATIC Memory Card. The service data contains the CPU diagnostic buffer and the diagnostic buffer of SINAMICS Integrated. The service data contains much more information on the internal state of the CPU and SINAMICS Integrated. The following folder is created on the SIMATIC Memory Card: DUMP.S7S You can find more information on service data in the section Reading/saving service data (Page 266).
Procedure using the job file Whether the SIMATIC Memory Card is operating as a program card or firmware update card, can also be set using the job file S7_JOB.S7S on the SIMATIC Memory Card. Entry in the job file:  PROGRAM: the SIMATIC Memory Card is used as a program card  FWUPDATE: the SIMATIC Memory Card is used as a firmware update card Proceed as follows: 1. Open the job file S7_JOB.S7S with an editor. 2. Use the editor to overwrite the PROGRAM entry with FWUPDATE (or vice versa). Do not use any spaces, line breaks or quotation marks. 3. Save the file under the existing file name.
Program card including firmware update files If you want to deliver your project with firmware validated by you, for example, you can store the program data and firmware update files together on the memory card. Your customers then have the option of changing CPU and SINAMICS Integrated to exactly that firmware version.
Note Please note that, depending on the tool used (for example STEP 7, Web server), the firmware update files may also be deleted if you reset to "Program card".
Additional information You can find additional information in the STEP 7 online help.

236

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SIMATIC memory card 12.3 Data transfer with SIMATIC memory cards

12.3

Data transfer with SIMATIC memory cards

Transferring objects from the project to the SIMATIC Memory Card
While the SIMATIC Memory Card is in the programming device or external card reader, you can transfer the following objects from the project tree (STEP 7) to the SIMATIC Memory Card:
 Individual blocks (multiple selection possible)
In this case, the transfer is consistent, i.e. the function takes account of dependencies between blocks through block calls.
 CPU folder
In this case, all runtime-related objects such as blocks and the hardware configuration are transferred to the SIMATIC Memory Card, just as with downloading.
 Service data
In this case, the service data saved beforehand is transferred to the SIMATIC Memory Card. You can find additional information on this in Reading/saving service data (Page 266).
You have the following options for performing the transfer:
 Transfer the objects using drag-and-drop.
 Use the "Card Reader/USB memory > Write to memory card" command in the "Project" menu.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

237

SIMATIC memory card 12.3 Data transfer with SIMATIC memory cards
Storing CPU trace recordings on the SIMATIC Memory Card The "Save measurements on device (memory card)" function allows you to save CPU trace recordings on the SIMATIC Memory Card. 1. Select "Traces" -> "Trace" in the project tree. 2. In the working area, select "Configuration" -> "Recording conditions" -> "Measurements in device (memory card)".
Response when number reached The "Deactivate recording" parameter value repeats the measurements until the configured "Number of measurements" is reached. The "Overwrite oldest recording" parameter value replaces the oldest measurement with the latest measurement when the configured "Number of measurements" is reached. Please note, however, that continuously writing data to the SIMATIC Memory Card shortens its service life.

Figure 12-2 Dialog with settings for saving measurements to the memory card in STEP 7
Number of measurements
The CPU supports a maximum of 999 measurements. The CPU writes the Trace recordings to the load memory of the memory card. Meanwhile, the CPU pauses the checking of trigger conditions for the Trace job. Once the CPU has finished saving the Trace recordings, the CPU continues checking the trigger conditions.
NOTICE
Memory required on the SIMATIC Memory Card
If the Trace function "Measurements on device (memory card)" requires more memory than is available on the SIMATIC Memory Card, this can have undesirable effects. Ensure there is always sufficient free memory space to use the "Measurements on device (memory card)" function.
In addition to the "Measurements on device (memory card)" Trace function, other functions, such as storing data logs, use memory space on the SIMATIC Memory Card. Make sure that enough memory space is available for all functions that occupy memory.

238

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SIMATIC memory card 12.4 Service life of the SIMATIC memory card
You can find additional information on Trace measurements and Trace recordings:  In the Using the Trace and Logic Analyzer Function
(http://support.automation.siemens.com/WW/view/en/64897128) function manual  In the Web Server (http://support.automation.siemens.com/WW/view/en/59193560)
function manual  In the STEP 7 online help
Firmware update using SIMATIC Memory Card You can find information on how to perform a firmware update in SIMATIC Drive Controller firmware update (Page 244).

12.4

Service life of the SIMATIC memory card

Effects on the service life The following factors can affect the service life of SIMATIC Memory Cards:  Size of card and number of guaranteed write operations  Actual number of write operations The number of physical write operations to the memory blocks of the card is a result of the number of write operations from the application.
Note With the SIMATIC Drive Controller, this includes not only CPU access but also memory card access (write and delete access) by the SINAMICS Integrated.
You can find methods for calculating the service life of a SIMATIC Memory Card in the Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193101) function manual and in FAQ (https://support.industry.siemens.com/cs/ww/en/view/109482591) on the Internet.

GetSMCinfo instruction
If the SIMATIC Memory Card is inserted, you can read out the following information in STEP 7 (TIA Portal) with the GetSMCinfo instruction:
 Memory size in KB (1 KB = 1024 bytes)
 Occupied memory in KB (1 KB = 1024 bytes)
 Maintenance information: Percentage of service life used up so far
 Configured percentage of service life after which the CPU creates a diagnostics buffer entry and the maintenance LED is activated
You can find additional information on the "GetSMCinfo" instruction in the STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

239

SIMATIC memory card 12.4 Service life of the SIMATIC memory card
Additional information You can find additional information on the service life of the SIMATIC Memory Card, on storage capacity utilization, and on the memory areas used in the Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/ww/en/view/59193101) function manual.

240

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance

13

13.1

Replacing system components

13.1.1

Replacing a defective SIMATIC Drive Controller

Requirements

The power supply must be switched off before the SIMATIC Drive Controller is removed.

NOTICE
Material damage possible
Install or uninstalling the SIMATIC Drive Controller with the power connected can lead to undefined states in your plant. Your automation system may be damaged as a result. Only install/uninstall the SIMATIC Drive Controller if the power supply is disconnected.

Removing the SIMATIC Drive Controller Proceed as follows to remove the SIMATIC Drive Controller: 1. Switch off the power supply. 2. Open the bottom front cover and remove the SIMATIC Memory Card from the slot. 3. Open the top front cover. 4. Loosen the terminal block for the 24 V power supply. 5. Release the DRIVE-CLiQ connectors to the SINAMICS S120 modules. 6. Release the connectors of the PROFINET interfaces or PROFIBUS interface. 7. Unplug the connectors to the digital inputs and digital outputs at interfaces X122, X132 and X142 8. Separate the connection to the protective conductor. 9. Loosen the fixing screws that are holding the SIMATIC Drive Controller to the cabinet wall.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

241

Maintenance 13.1 Replacing system components
Installing and connecting a new SIMATIC Drive Controller Proceed as follows to install the new SIMATIC Drive Controller: 1. Install the new SIMATIC Drive Controller. 2. Connect the protective conductor to the SIMATIC Drive Controller. 3. Reconnect all connectors you have previously removed. 4. Open the bottom front cover. 5. Insert the SIMATIC Memory Card in the slot. 6. Switch the power supply back on. Following a module replacement, the CPU operates with the configured start values. SINAMICS Integrated detects a module replacement on the basis of the new SIMATIC Drive Controller serial number. Following POWER ON, the NVRAM of the SINAMICS Integrated is cleared and the NVRAM data is then loaded from the memory card.
Note Make sure that the new SIMATIC Drive Controller has the same or a higher main firmware version for CPU and SINAMICS Integrated . If the main SINAMICS firmware version is higher, you will need to upgrade your project to the relevant SINAMICS version to ensure that you can still go online with your project on SINAMICS Integrated.
Note Setting up copy protection For code blocks, you can set up copy protection (Page 179) that binds execution of the blocks to a specific CPU or a specific memory card on the basis of the serial number. In such cases, a substitute controller cannot be used without additional measures being taken.

242

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.1 Replacing system components

13.1.2

Replacing a defective SIMATIC memory card

Initial situation

Possible error scenario if the SIMATIC Memory Card of a CPU is defective:  System diagnostics reports a system error.  The CPU has switched to STOP.  The RUN/STOP LED is yellow and the ERROR LED is flashing red.

Requirement

 Replacement is only possible if you have a suitable replacement card. The replacement card can be a copy of the defective card or a new project card created using engineering.
 The new SIMATIC Memory Card must have sufficient memory for the project.

Note
For code blocks, you can set up copy protection (Page 179) that binds execution of the blocks to a specific CPU or a specific memory card on the basis of the serial number. In such cases, a replacement card cannot be used without additional measures being taken.

Procedure

Proceed as follows to replace a defective SIMATIC Memory Card: 1. Remove the defective memory card. 2. Insert the replacement card with the correct configuration.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

243

Maintenance 13.2 SIMATIC Drive Controller firmware update

13.1.3

Replacing a DRIVE-CLiQ component

Replacing a DRIVE-CLiQ component
Defective components in the SINAMICS S120 drive system can be replaced with components with identical or with different article numbers depending on the equivalence level set.
You can find further information in the SINAMICS S120 function manual (https://support.industry.siemens.com/cs/ww/en/view/109763287) under "Component replacement".

Firmware update
DRIVE-CLiQ components are automatically upgraded or downgraded to the component firmware version on the memory card during power up. A module replacement can therefore lead to a firmware update (see DRIVE-CLiQ component firmware update (Page 249)).

13.2

SIMATIC Drive Controller firmware update

Introduction

You update the firmware of the SIMATIC Drive Controller using firmware files. The retentive data is retained after the firmware update on the CPU and SINAMICS Integrated.

Requirement

 You have downloaded the file(s) for the firmware update from Siemens Industry Online Support (https://support.industry.siemens.com/cs/ww/en/ps/25715/dl).
 Before installing the firmware update, make sure that the SIMATIC Drive Controller and any connected drives are not in use.

Additional requirement for failsafe modules
WARNING Check the firmware version for F-approval When using a new firmware version, always check that the version is approved for use in the module in question. The attachments of the certificate (https://support.industry.siemens.com/cs/ww/en/ps/14675/cert) for SIMATIC Safety specify which firmware version is approved.

244

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.2 SIMATIC Drive Controller firmware update

Options for the firmware update There are the following options for performing a firmware update:  Online in STEP 7 via Online & Diagnostics  Online in STEP 7 via accessible devices (PROFINET)  Via the SIMATIC Memory Card: for CPU and SINAMICS Integrated  Via the integrated Web server  Online via the SIMATIC Automation Tool The following table provides an overview of the various options for a firmware update.

Table 13- 1 Overview of firmware update options

Firmware update

Drive Controller CPU

STEP 7, Online & Diagnose



STEP 7, accessible devices



SIMATIC Memory Card



Web server of the CPU



SIMATIC Automation Tool



Drive Controller SINAMICS Integrat-
ed -- ---

Interface module
  - 

Distributed I/O module
 -- 

Installation of the firmware update
WARNING Impermissible plant states possible Installation of the firmware update causes the CPU to switch to STOP or a distributed interface module to "station failure". STOP or station failure can have an adverse effect on the operation of an online process or a machine. Unexpected operation of a process or a machine can lead to fatal or severe injuries and/or to material damages. Before you install the firmware update, make sure that the SIMATIC Drive Controller is not controlling any active process.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

245

Maintenance 13.2 SIMATIC Drive Controller firmware update
Procedure: online in STEP 7 via Online & diagnostics Requirement: There is an online connection between the CPU/module and PG/PC. Proceed as follows to perform an online firmware update via STEP 7: 1. Select the CPU of the SIMATIC Drive Controller in the project tree. 2. Select the "Online & diagnostics" menu command from the shortcut menu. 3. Select the "Firmware update" group in the "Functions" folder. 4. Click the "Browse" button to select the firmware update files in the "Firmware update" area. 5. Select the matching firmware file. The table in the firmware update area lists all modules for which an update is possible with the selected firmware file. 6. Click the "Run update" button. If the module can interpret the selected file, the file is downloaded to the module. If you must change the CPU mode, STEP 7 prompts you to do so with dialogs.
Updating the firmware The "Run firmware after update" check box is always selected. After a successful loading process the CPU includes imports the firmware and subsequently operates with the new firmware.
Note When a firmware update is interrupted, you need to switch the SIMATIC Drive Controller off/on or remove and insert the relevant module in a distributed I/O station before starting the firmware update again. An update can only be performed for the CPU and not for the SINAMICS Integrated over STEP 7.
Procedure: online in STEP 7 via accessible devices To perform a firmware update online via accessible devices, follow these steps: 1. From the "Online" menu, select the "Accessible devices" menu item. 2. In the Accessible devices dialog, search for the accessible devices for the selected PROFINET interface. 3. To go to a device in the project tree, select the desired device from the list of accessible devices and click the "Show" button. 4. In the project tree, select the "Online & diagnostics" option for the relevant device and perform the firmware update under the category Functions/Firmware Update (CPU, Local modules).
Note An update can only be performed for the CPU and not for the SINAMICS Integrated over accessible devices.

246

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.2 SIMATIC Drive Controller firmware update
Procedure via the SIMATIC Memory Card With a SIMATIC Memory Card, you can perform an update for CPU and SINAMICS Integrated on the SIMATIC Drive Controller. Separate update files are available for CPU and SINAMICS Integrated. Example for CPU 1504D TF CPU: 6ES7615-4DF10-0AB0 V02.08.00.upd SINAMICS Integrated: 6ES7615-xDS1x-0xxx V05.02.00.upd Proceed as follows perform a firmware update via the SIMATIC Memory Card: 1. Insert a SIMATIC Memory Card in the SD card reader of your PG/PC. 2. To store the update file on the SIMATIC Memory Card, select the SIMATIC Memory Card in the "Card Reader/USB memory" folder in the project tree. 3. Select the "Card Reader/USB memory > Create firmware update memory card" command in the "Project" menu. 4. Use a file selection dialog to navigate to the firmware update file. You can select one or multiple files. You can then also decide whether to delete the content of the SIMATIC Memory Card or add the firmware update files to the SIMATIC Memory Card. 5. Insert the SIMATIC Memory Card with the firmware update files into the CPU. The firmware update begins shortly after the SIMATIC Memory Card has been plugged. 6. Remove the SIMATIC memory card after the firmware update is complete. The RUN LED on the CPU lights up in yellow and the MAINT LED flashes yellow. If you subsequently use the SIMATIC Memory Card as a program card, manually delete the firmware update files, including the job file "S7_JOB.S7S". Alternatively, you can convert the SIMATIC Memory Card to a program card in STEP 7. To do so, specify the required card type in properties in the project tree for the selected SIMATIC Memory Card.
Note Memory size of the SIMATIC Memory Card For a firmware update of the SIMATIC Drive Controller, you need a memory card with at least 256 MB.
You can also copy the update files to the FWUPDATE.S7S directory in Windows Explorer.
Program card including firmware update files You can use the SIMATIC Memory Card as a program card or as a firmware update card. You can find additional information on using the SIMATIC Memory Card as a program card or firmware update card in Setting the card type (Page 235).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

247

Maintenance 13.2 SIMATIC Drive Controller firmware update
Compatibility information Please note the following information on combinations of CPU and SINAMICS Integrated firmware:  An update at hotfix level is always possible.  Restrictions apply to updates at the level of the main version for the "CPU firmware" and "SINAMICS Integrated firmware" combination. Please note the compatibility information in the relevant publications.
Note If you insert the SIMATIC Memory Card in a SIMATIC Drive Controller with a higher SINAMICS Integrated main firmware version, you need to upgrade your project to the relevant SINAMICS version. You can only go online with your project if the configured SINAMICS version corresponds to the SINAMICS firmware version on the SIMATIC Drive Controller.
SINAMICS Integrated firmware missing or incompatible If there is no SINAMICS Integrated firmware or the firmware is incompatible with the CPU, this is signaled by a red flashing RDY LED (2 Hz) and a red ERROR LED. A corresponding error message is also entered in the diagnostic buffer. If the SIMATIC Memory Card has a SINAMICS Integrated firmware version that is incompatible with the CPU firmware, the SINAMICS Integrated firmware update is rejected. The ERROR LED lights up in red and the MAINT LED in yellow. A corresponding error message is also entered in the diagnostic buffer. An update of the CPU firmware, however, is always possible.
Note Always run an update of the CPU and SINAMICS Integrated firmware main version first for the CPU and then for SINAMICS Integrated. This ensure that an update is possible provided the two versions are compatible. If both update files (PLC and SINAMICS Integrated firmware) are stored on one update card, the update is automatically performed in the order CPU -> SINAMICS Integrated.
Procedure: via the integrated Web server The procedure is described in the Web Server (https://support.industry.siemens.com/cs/ww/en/view/59193560) function manual.
Note You can only perform an update for the CPU and not for the SINAMICS Integrated over the SIMATIC Web server.

248

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.3 DRIVE-CLiQ component firmware update
Procedure: online via the SIMATIC Automation Tool The procedure is described in the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) user manual (included in the SIMATIC Automation Tool).
Note An update can only be performed for the CPU and not for the SINAMICS Integrated using the SIMATIC Automation Tool.

Behavior after the firmware update After the firmware update, check the firmware version of the CPU / SINAMICS Integrated. You can find the firmware version for the CPU or SINAMICS Integrated under "Online & diagnostics". In the working area, the firmware version is under "Diagnostics" > "General".
Additional information For additional information on the topic of firmware update, refer to the STEP 7 online help and the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109767138).

13.3

DRIVE-CLiQ component firmware update

DRIVE-CLiQ components
The SINAMICS Integrated (for SINAMICS S120 control units, the memory card) also contains the firmware for the DRIVE-CLiQ components. With factory setting p7826 = 1, this is automatically transferred from SINAMICS Integrated (for SINAMICS S120 control units from the memory card) to the DRIVE-CLiQ components upon initial commissioning.
The firmware is saved to non-volatile memory in the DRIVE-CLiQ components in the event of an upgrade.
Following a project download or automatic configuration, a firmware update is automatically performed on all connected DRIVE-CLiQ components. This upgrades all DRIVE-CLiQ components to the correct firmware versions.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

249

Maintenance 13.3 DRIVE-CLiQ component firmware update
Update process The update process can take a few minutes. It is indicated by the RDY LED on the relevant component flashing green/red and the RDY LED for SINAMICS Integrated (or on the control unit) flashing yellow at 0.5 Hz. A progress indicator is implemented in parameter p7827. The update is complete when the RDY LED of the SINAMICS Integrated (control unit) stops flashing at 0.5 Hz. Once the upgrade has ended, the RDY LED for the component in question remains continuously lit, provided the upgrade is complete and the new firmware has been activated. For components whose RDY LED is flashing green/red at 2 Hz, you need to perform a POWER OFF/POWER ON to activate the new firmware. For components without LED (for example motors with DRIVE-CLiQ interface), check for relevant warnings on the drive.
Note During activation of the new firmware, it is possible for a component to interrupt cyclic communication. In this case, communication faults occur and must be acknowledged.
You can check the firmware versions of the individual components with parameters. The versions of the DRIVE-CLiQ components and those of SINAMICS Integrated (or of the control unit) may differ.
Note DRIVE-CLiQ components with higher firmware versions are backward compatible and can also operate with DRIVE-CLiQ components with lower firmware versions.

Automatic firmware update
You can use parameter p7826 to influence the response for automatic firmware updates of DRIVE-CLiQ components.
With the automatic firmware update, the firmware version of the DRIVE-CLiQ components is checked against the firmware version of SINAMICS Integrated (or the control unit) and if necessary updated upon each power up. This means power up can take a few minutes longer.
The following settings are possible:
 p7826 = 0: Upgrade and downgrade deactivated
 p7826 = 1: Upgrade and downgrade (factory setting)
 p7826 = 2: upgrade only
A parameter change does not become effective until the next drive system power up.
Where Safety Basic, Extended and/or Advanced Functions are enabled, the system checks whether the parameter for automatic firmware updates p7826 = 1 is set. Otherwise, the following message is output: F01664 (SI CU: No automatic firmware update).

250

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.4 CPU reset to factory settings

13.4

CPU reset to factory settings

Introduction

"Reset to factory settings" restores the CPU to its delivery state. The function deletes all information that was stored internally on the CPU.
Recommendation:
Switch the CPU to its as-delivered condition if:
 You remove a CPU and use it elsewhere with a different program
 You store the CPU
When resetting to factory settings, remember that the IP address parameters are also deleted.

Options for resetting a CPU to factory settings To reset the CPU to its delivery state, follow these steps:  Using the mode selector  Using STEP 7  Using the SIMATIC Automation Tool

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

251

Maintenance 13.4 CPU reset to factory settings
Procedure using the mode selector Make sure that the CPU is in STOP: The RUN/STOP LED lights up in yellow.
Note Reset to factory settings  Memory reset The procedure described below corresponds to the procedure for a memory reset: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
Restore the factory settings of the CPU as follows: 1. Set the mode selector to the STOP position.
Result: The RUN/STOP LED lights up yellow. 2. Remove the SIMATIC memory card from the CPU. Wait until the RUN/STOP LED stops
flashing. 3. Set the mode selector to the MRES position. Hold the mode selector in this position until
the RUN/STOP LED lights up for the second time and remains lit (this takes three seconds). After this, release the selector. 4. Within the next three seconds, switch the mode selector back to the MRES position, and then back to STOP again. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up yellow, then the CPU has been reset to factory settings, and is in the STOP mode. The "Reset to factory settings" event is entered into the diagnostics buffer.
Note The IP address of the CPU is also deleted when the CPU is reset to the factory settings through the mode selector.

252

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.4 CPU reset to factory settings
Procedure using STEP 7 To reset a CPU to factory settings via STEP 7, follow these steps: Make sure that there is an online connection to the CPU. 1. Open the Online and Diagnostics view of the CPU. 2. In the "Functions" folder, select the "Reset to factory settings" group. 3. If you want to keep the IP address, select the "Keep IP address" option button. If you want to delete the IP address, select the "Delete IP address" option button.
Note "Delete IP address" deletes all IP addresses, regardless of how you established the online connection. If there is a SIMATIC memory card inserted, selecting the "Delete IP address" option has the following effect: · The IP addresses are deleted and the CPU is reset to factory settings. · The configuration (including IP address) on the SIMATIC memory card is then loaded
to the CPU. If there is no saved configuration (because the SIMATIC memory card has been cleared or formatted, for example), no new IP address is assigned.
4. Click the "Reset" button. 5. Click "OK" in response to the confirmation prompts. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. A yellow RUN/STOP LED indicates that the CPU has been reset to factory settings and is in the STOP operating state. The "Reset to factory settings" event is entered into the diagnostics buffer.
Procedure using the SIMATIC Automation Tool The procedure is described in the SIMATIC Automation Tool (https://support.industry.siemens.com/cs/ww/en/view/98161300) user manual (included in the SIMATIC Automation Tool).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

253

Maintenance 13.5 SINAMICS Integrated reset to factory settings

Result after resetting to factory settings
The following table provides an overview of the contents of the memory objects after the reset to factory settings.

Table 13- 2 Result after resetting to factory settings

Memory object Actual values of the data blocks, instance data blocks Bit memories, timers and counters Retentive tags of technology objects (e.g. adjustment values of absolute encoders) Entries in the diagnostics buffer IP address

Contents Initialized Initialized Initialized
Initialized Depends on the procedure: · Using mode switch: is deleted · Using STEP 7: Depending on the setting of the
"Keep IP address"/"Delete IP address" option buttons

Device name Counter readings of the runtime meters Time of day

Is set to "CPU" Initialized Is set to "00:00:00, 01.01.2012"

If there was a SIMATIC memory card inserted in the CPU prior to the reset to factory settings, the CPU downloads the configuration on the SIMATIC memory card (hardware and software). A configured IP address is then valid again.

Further information
Additional information on "Reset to factory settings" can be found in the Function Manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193101) in the section on memory areas and retentivity, and in the online help for STEP 7.

13.5

SINAMICS Integrated reset to factory settings

Restoring factory settings In online mode, you can restore the factory settings for SINAMICS Integrated. 1. Establish an online connection to SINAMICS Integrated. 2. Click the icon in the function view for the active drive. The factory settings are restored.

254

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.6 Fault reactions with failsafe components

13.6

Fault reactions with failsafe components

Safe state (safety concept) The basic principle behind the safety concept is the existence of a safe state for all process variables.
Note For fail-safe input and output modules, this safe state is the value "0".

Fault reactions and startup of the F-system
The safety function requires the output of substitute values (safe state) instead of process values for a failsafe module (passivation of the failsafe module) in the following cases:
 When the F-system is started up
 If errors are detected during safety-related communication between the F-CPU and the Fmodule via the PROFIsafe safety protocol (communication error)
 If F-I/O faults or channel faults are detected (for example wire break, discrepancy error)
Detected faults are written to the diagnostic buffer of the F-CPU and communicated to the safety program in the F-CPU.
F-modules cannot save errors as retentive data. When the system is powered down and then restarted, any faults persisting are detected again during startup. However, you have the option of saving faults in your safety program.
WARNING
Channel faults do not trigger any diagnostic reactions or error handling for channels that have been set to "deactivated" in STEP 7. This applies even if such a channel is affected indirectly by a channel group fault (channel parameter "activated/deactivated").

Remedying faults in the F-system To remedy faults in your F-system, follow the procedure described in IEC 61508-1:2010 section 7.15.2.4 and IEC 61508-2:2010 section 7.6.2.1 e. The following steps must be performed: 1. Diagnostic and repair of the fault 2. Revalidation of the safety function 3. Recording in the service report

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

255

Maintenance 13.6 Fault reactions with failsafe components
Fail-safe value output for F-modules In the case of F-modules with inputs, if there is passivation, the F-system provides substitute values (0) for the safety program instead of the process data pending at the failsafe inputs. In the case of F-modules with outputs, if there is passivation, the F-system transfers substitute values (0) to the failsafe outputs instead of the output values provided by the safety program. The output channels are de-energized. This also applies when the F-CPU goes into STOP mode. The parameter assignment of fail-safe values is not possible. Substitute values are used either for the relevant channel only or for all channels of the relevant failsafe module depending on:  The F-system used  The type of error that occurred (F-I/O, channel or communication error)  The F-module parameter assignment
Reintegration of a fail-safe module The system changes from fail-safe to process values (reintegration of an F-module) either automatically or only after user acknowledgment in the safety program. If channel errors occur, it may be necessary to remove and reinsert the F-module. A detailed listing of faults requiring removal and insertion of the F-module can be found in the section Diagnostic messages of the respective F-module. After reintegration, the following occurs:  In the case of an F-module with inputs, the process data pending at the failsafe inputs is made available to the safety program again  In the case of an F-module with outputs, the output values provided in the safety program are transferred to the failsafe outputs again
Additional information on passivation and reintegration For additional information on passivation and reintegration of F-I/O, refer to the SIMATIC Safety, Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126) manual.
Reaction of the F-module with inputs to communication errors F-modules with inputs respond differently to communication errors compared to other errors. If a communication error is detected, the current process values remain set at the inputs of the F-module. The channels are not passivated. The current process values are passivated in the F-CPU.

256

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Maintenance 13.7 Temperature monitoring

13.7

Temperature monitoring
The SIMATIC Drive Controller has integrated temperature monitoring. Temperature monitoring ensures that the SIMATIC Drive Controller is only operated within the permissible temperature range. This prevents device defects and undefined device behavior.

Function

Temperature sensors monitor the inside temperature. There are temperature thresholds with the following reactions in the event of overtemperature:

Inside temperature Exceeds threshold 1
Exceeds threshold 2

Maintenance event Reaction

CPU overtempera- MAINT LED lights up in yellow.

ture (warning)

An entry is made in the diagnostic buffer.

The diagnostic interrupt OB (OB82) is called.

For details, see Evaluation of interrupts.

CPU overtempera- ERROR LED flashes red.

ture (error)

An entry is made in the diagnostic buffer.

The SIMATIC Drive Controller switches to STOP and a start-up lock is set.

Evaluation of interrupts You evaluate the interrupt and corresponding information with the "RALRM" instruction. Call the "RALRM" instruction in the diagnostic interrupt OB (OB82).

Table 13- 3 Structure of the additional interrupt information in an overtemperature warning

Byte 0 to 1
2 to 3 4
5 6 to 7

Data type WORD
WORD BYTE
BYTE WORD

Meaning

Format identifier for the structure of the following data serving as additional interrupt

information.

The overtemperature information is provided with the format identifier W#16#8000 (channel diagnostics).

Channel number of the component that triggered the interrupt:

W#16# 0C72: PLC hardware

Bits 0 to 2:

Reserved

Bits 3 to 4:

Error type:

0: Reserved

1: Incoming error

2: Outgoing error

3: Outgoing error, other errors present

Bits 5 to 7:

Channel type: Not relevant

Data format: Not relevant

Error type:

W#16#0005: Overtemperature

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

257

Maintenance 13.8 Maintenance and repair

13.8

Maintenance and repair
The SIMATIC Drive Controller is maintenance-free.
Note Repairs to the SIMATIC Drive Controller may only be carried out by the manufacturer.

258

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions

14

14.1

Test functions

Introduction

You have the option of testing the operation of your user program on the CPU. You monitor signal states and values of tags, and preassign values to tags so that you can simulate specific situations for program execution.
Note Using test functions
Using test functions affects the program execution time and thus the cycle and response times of the controller to a slight extent (a few milliseconds).

Requirements

 There is an online connection to the relevant CPU.  An executable user program is available in the CPU.

Test options

 Testing with program status  Testing with breakpoints  Testing with a watch table  Testing with a force table  Testing with a PLC tag table  Testing with a data block editor  Testing with the LED flash test  Testing with a trace function

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

259

Test and service functions 14.1 Test functions
Testing with program status The program status allows you to monitor the execution of the program. You can display the values of operands and the results of logic operations (RLO). This allows you to detect and fix logical errors in your program.
Note Restrictions with the "Program status" function Monitoring loops can significantly increase the cycle time. The increase in cycle time depends on the following factors: · The number of tags to be monitored · The actual numbers of loops run through
WARNING Testing with program status A test with the "Program status" function can cause serious damage to property or injury to persons if there are functional disturbances or program errors. Make sure that you take appropriate measures to exclude the risk of dangerous states occurring before running a test with the "Program status" function.

260

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions 14.1 Test functions
Testing with breakpoints With this test option, you set breakpoints in your program, establish an online connection, and enable the breakpoints on the CPU. You then execute a program from one breakpoint to another. Requirements:  Setting breakpoints is possible in the programming language SCL or STL. Testing with breakpoints provides you with the following advantages:  Localization of logic errors step by step  Simple and quick analysis of complex programs prior to actual commissioning  Recording of current values within individual executed loops  Use of breakpoints for program validation also possible in SCL/STL networks within LAD/FBD blocks
Note Restriction during testing with breakpoints · When you test with breakpoints, there is a risk of overwriting the cycle time of the CPU. · If you are using technology objects and test them with breakpoints, the CPU switches to
STOP.
Note F-System SIMATIC Safety Setting breakpoints in the standard user program results in errors in the security program: · Sequence of F cycle time monitoring · Error in communication with the fail-safe I/O · Error during safety-oriented CPU-CPU communication · internal CPU error If you still wish to use breakpoints for testing, you must deactivate the safety mode beforehand. This will result in the following errors: · Error in communication with the fail-safe I/O · Error during safety-oriented CPU-CPU communication

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

261

Test and service functions 14.1 Test functions
Testing with watch tables The following functions are available in the watch table:  Monitoring of tags With watch tables, you monitor the current values of individual tags in a user program or a CPU on the PG/PC and Web server. Please note the following requirement for displaying the tag values on the Web server: You must specify a symbolic name for the tag in the "Name" column of the watch table. You monitor the following operand areas: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs ­ Timers and counters  Modifying tags You use this function to assign fixed values to individual tags in a user program or a CPU on the PG/PC. Modifying is also possible with Test with program status. The following operand areas are modifiable: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs (for example, %I0.0:P, %Q0.0:P) ­ Timers and counters  "Enable peripheral outputs" and "Modify now" These two functions enable you to assign fixed values to individual peripheral outputs of a CPU in the STOP mode. You can also use them to check your wiring.

262

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions 14.1 Test functions
Testing with a force table The following functions are available in the force table:  Monitoring of tags Force tables are used to monitor the actual values of the individual tags of a CPU user program or a CPU - On the PG/PC - On the Web server You monitor the table with or without a trigger condition. You monitor the following tags: ­ Bit memory ­ Contents of data blocks ­ Peripheral inputs  Modifying tags You use this function to assign fixed values to individual tags in a user program or a CPU on the PG/PC and Web server. Modifying is also possible with Test with program status. The following tags are modifiable: ­ Bit memory ­ Contents of data blocks ­ Peripheral inputs (e.g. %I0.0:P)  Forcing of peripheral inputs and peripheral outputs You can force individual peripheral inputs or peripheral outputs. ­ Peripheral inputs: Forcing of peripheral inputs (for example %I0.0:P) is a "bypassing" of sensors / inputs by the specification of fixed values to the program. The program receives the force value instead of the actual input value (via process image or via direct access). ­ Peripheral outputs: Forcing of peripheral outputs (for example %Q0.0:P) is a "bypassing" of the complete program by the specification of fixed values to the actuators. The advantage of the force table is that you can simulate different test environments and overwrite tags in the CPU with a fixed value. This enables you to intervene in the ongoing process for regulating purposes.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

263

Test and service functions 14.1 Test functions
Difference between modifying and forcing The fundamental difference between the modifying and forcing functions consists in the storage behavior:  Modifying: Modifying of tags is an online function and is not stored in the CPU. You can end modifying of tags in the watch table or force table or by terminating the online connection.  Forcing: A force job is written to the SIMATIC memory card and is retained after a POWER OFF. You can only end the forcing of peripheral inputs and peripheral outputs in the force table.
Testing with a PLC tag table You can monitor the current data values of tags in the CPU directly in the PLC tag table. To do so, open the PLC tag table and start the monitoring. You can also copy PLC tags to a watch or force table and monitor, modify or force them there.
Testing with a data block editor The data block editor offers different options for monitoring and modifying tags. These functions directly access the actual values of the tags in the online program. Actual values are the current values of tags in the CPU work memory at any moment during program execution. The following functions for monitoring and modifying are available in the database editor.  Monitor tags online  Modify individual actual values  Create a snapshot of the actual values  Overwrite actual values with a snapshot
Note Setting data values during commissioning During plant commissioning, you often need to adjust data values to adapt the program to local conditions. The declaration table for data blocks offers some functions for this purpose.
Testing with the LED flash test In many online dialogs, you can perform an LED flash test. This feature is useful if you are not sure which device in the hardware configuration corresponds to the device currently selected in the software. If you click on the "Flash LED" button in STEP 7 under Online & diagnostics (online access), an LED flashes on the device currently selected. The RUN/STOP, ERROR, and MAINT LEDs flash on the CPU. The LEDs flash until you cancel the flash test.

264

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions 14.1 Test functions

Testing with CPU Trace
The trace function is used to record the CPU tags, depending on the settable trigger conditions. Examples of tags are the system and user tags of a CPU. Plant states can also be recorded if the drive parameters have been interconnected with CPU tags using relevant frames.
The CPU saves the recordings. If necessary, you can display and evaluate the recordings with STEP 7 or over the Web server. The Trace function can be called from the CPU's folder in the project tree, under "Traces".
Please also see the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/102781176) relevant for Trace functions.

Testing with Drive Trace
You use Drive Trace to records the states of a drive and evaluate them using Startdrive. As the states are recorded in the drive itself (minimum clock 125 µs), Drive Trace is particularly useful for monitoring highly dynamic processes.
For further information, see the Trace function section in the SINAMICS S120 Startdrive (https://support.industry.siemens.com/cs/ww/de/view/109763294/en) commissioning manual

Simulation

With STEP 7 you can run and test the hardware and software of the project in a simulated environment. Start the simulation using the menu command "Online" > "Simulation" > "Start".

Further information
Additional information on the test functions can be found in the STEP 7 online help.
Additional information about testing with trace functions is available in the Function Manual Using the trace and logic analyzer function (https://support.industry.siemens.com/cs/ww/en/view/64897128).

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

265

Test and service functions 14.2 Reading/saving service data

14.2

Reading/saving service data

Service data

The service data contain the CPU diagnostic buffer and the diagnostic buffer of SINAMICS Integrated. It also contains much more information on the internal state of the CPU and SINAMICS Integrated. If a problem occurs with the SIMATIC Drive Controller that cannot be solved with other methods, send the service data to SIEMENS Service & Support. The service data allow Service & Support to analyze problems that have occurred rapidly.
Note
You cannot execute a download to the device while reading the service data of the SIMATIC Drive Controller.

Methods of reading service data You can read service data with:
 The FUNCT button on the SIMATIC Drive Controller (über SIMATIC Memory Card)
 the web server
 STEP 7
 the SIMATIC Memory Card
Only use the SIMATIC Memory Card to read service data if you are no longer able to communicate with the CPU via Ethernet. In all other cases, it is preferable to read service data via the Web server or STEP 7.
 You do not need to ensure that there is sufficient memory space on the SIMATIC Memory Card before reading the service data.
 You can send the diagnostics data straight from the PC.

266

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions 14.2 Reading/saving service data
Procedure using the FUNCT button You can save the service data to the SIMATIC Memory Card on the SIMATIC Drive Controller with the FUNCT button. Before reading the data, make sure that there is sufficient memory space on the SIMATIC Memory Card in the SIMATIC Drive Controller. There are two basic methods for reading out service data:  Reading out service data in the STOP or RUN state of the SIMATIC Drive Controller  Reading out service data during SIMATIC Drive Controller startup Reading service data in STOP or RUN allows you to back up the data quickly and easily on a memory card. If backup is no longer possible (due to a persistent error, for example), you can also back up the service data during startup immediately after switch-on.

 FUNCT button
Figure 14-1 SIMATIC Drive Controller FUNCT button
Saving the service data in STOP or RUN state of the SIMATIC Drive Controller 1. To get to the function selection mode, press the FUNCT button for at least three seconds
and then release it. As an aid, the 7-segment display flashes "0". After you release the button, you are in function selection mode. The 7-segment display shows function "1" (Save service data). 2. To confirm the selection, press the FUNCT button within 10 seconds for at least 3 seconds and then release it. The service data is saved. While the function is being executed: ­ The 7-segment display shows "d" (DUMP) ­ The ACT-LED flickers ­ The RUN/STOP LED flashes yellow ­ The ERROR and MAINT LEDs are off After the function has been executed, the 7-segment display shows "0".

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

267

Test and service functions 14.2 Reading/saving service data
Result: The CPU writes the service data to the DUMP.S7S directory on the SIMATIC Memory Card. If an error occurs during saving:  The RUN/STOP LED flashes yellow (for STOP) or green (for RUN) depending on the
previous operating state  The ERROR LED flashes red In the event of an error, the text file in the DUMP.S7S folder contains information about the error that has occurred.
Note In function selection mode, a short button press < 3 seconds selects the next function (currently only function "1" is available). The last function is "E", If you press the button for at least 3 seconds, the function selection module is exited. The function selection mode is also exited if no key is pressed for 10 seconds.
Reading service data during SIMATIC Drive Controller startup 1. Switch the supply voltage off at the SIMATIC Drive Controller. 2. Press and hold down the FUNCT button. 3. Switch the supply voltage on at the SIMATIC Drive Controller. 4. When the RUN/STOP LED flashes yellow and the ERROR and MAINT LEDs go out,
release the FUNCT button (after about 45 seconds). The save process begins. While the function is active, the 7-segment display shows "d" (DUMP) and the ACT LED flickers. After completion of the saving process, the 7-segment display shows "0". Result: The CPU writes the service data to the DUMP.S7S directory on the SIMATIC Memory Card. If an error occurs during saving, the RUN/STOP LED lights up yellow and the ERROR LED flashes red. In the event of an error, the text file in the DUMP.S7S folder contains information about the error that has occurred.
Note Procedure using the SIMATIC Memory Card Instead of using the FUNCT button, you can also initiate saving the service data using the job file S7_JOB.S7S and the DUMP string. To do so, use an editor to overwrite the PROGRAM entry with the DUMP string. To ensure that the file size is exactly 4 bytes, do not use any spaces/line breaks/quotation marks. If you read out the service data (with the entry String DUMP), the SIMATIC Drive Controller does not start. You must change the entry back to PROGRAM once the function has been executed.

268

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Test and service functions 14.2 Reading/saving service data
Procedure using the Web server Requirement: Access to the Web server has been activated for the interface used. Proceed as follows to read service data using the Web server: 1. Open a Web browser that is suitable for communication with the SIMATIC Drive Controller. You can find additional information in the Web server (https://support.industry.siemens.com/cs/ww/en/view/59193560) function manual. 2. Enter the following address in the address bar of the web browser: https://<CPU IP address>/save_service_data, e.g. https://172.23.15.3/save_service_data 3. The service data page will appear on your screen, with a button for saving the service data.
Figure 14-2 Saving service data via the Web server
4. Save the service data locally on your PC/programming device, by clicking "Save ServiceData".
Result: The data is saved in a .dmp file with the following naming convention: "<Article number> <Serial number> <Time stamp>.dmp". You can change the file name.
Note If you have defined your user page as the Web server homepage, you cannot directly access the service data by entering the IP address of the SIMATIC Drive Controller. For more information on reading out service data via a user-defined page, refer to the Web server (https://support.industry.siemens.com/cs/ww/en/view/59193560) function manual.
Procedure using STEP 7 A description of how to save service data is available under the keyword "Save service data" in STEP 7 online help.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

269

Technical data

15

15.1

Introduction

System data

This section sets out general technical data for a system comprising the SIMATIC Drive Controller and components of the S120 drive system (Booksize). You can find detailed technical data for individual system components in the relevant manuals.

Technical data of the SIMATIC Drive Controller
You can find the technical data for the SIMATIC Drive Controller in the SIMATIC Drive Controller manual.

15.2

Standards and Approvals

Currently valid markings and authorizations
Note Information on the system components The markings and approvals currently valid are printed on the system components.

CE mark

Our products fulfill the requirements and safety objectives of the following EC Directives and comply with the harmonized European standards (EN):

cULus approval Underwriters Laboratories Inc. in accordance with  UL 508 (Industrial Control Equipment)

RCM (C-Tick) Declaration of conformity for Australia/New Zealand The device fulfills the requirements of standard AS/NZS CISPR 16.

270

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Technical data 15.3 Electromagnetic compatibility
Korea Certification KC registration number: Please note that this device corresponds to limit value class A in terms of the emission of radio frequency interference. This device can be used in all areas, except residential areas.   (A)                .
Marking for the Eurasian Customs Union EAC (Eurasian Conformity) Customs Union of Russia, Belarus and Kazakhstan Declaration of conformity with the technical requirements of the Customs Union (TR CU).
Further information The certificates for the markings and approvals can be found on the Internet under Service&Support (https://support.industry.siemens.com/cs/ww/en/ps/25715/cert).

15.3

Electromagnetic compatibility

EMC

Electromagnetic compatibility (EMC) is the ability of an electrical installation to function satisfactorily in its electromagnetic environment without interfering with that environment.
The SIMATIC Drive Controller meets the electromagnetic compatibility requirements for drive systems (PDS ­ Power Drive Systems) as defined in EN 61800-3.

Environments

EN 61800-3 defines different requirements depending on the location of the drive system, referred to as the First and Second Environment.
First Environment locations are defined as residential buildings or locations in which the drive system is directly connected to the public low-voltage power supply network without intermediate transformers.
The Second Environment is understood as all non-residential locations. The main Second Environment locations are industrial zones supplied by the medium voltage network via their own transformers.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

271

Technical data 15.4 Shipping and storage conditions

Categories

The following table shows the possible categories of a system with SIMATIC Drive Controller or SINAMICS S120 components.

Table 15- 1 Category pursuant to EN 61800-3

Category C3 (standard)
C2 (option)

Description
Drive systems for rated voltages <1000 V for use exclusively in the Second Environment.
Fixed drive systems for rated voltages <1000 V for use in the Second Environment. Use in the First Environment is possible if the drive system is installed by a professional.
The system must be configured in accordance with the EC Declaration of Conformity on EMC and the "EMC Design Guidelines" configuration manual.

Further information
For further information, see SINAMICS S120 manuals and the EMC Design Guidelines (https://support.industry.siemens.com/cs/ww/en/view/60612658).

15.4

Shipping and storage conditions

Introduction

The SIMATIC Drive Controller exceeds requirements in terms of shipping and storage conditions pursuant to EN 61800-2.
The following applies under these conditions:
 Long-term storage in transport and product packaging: At weather-protected locations that have continuous contact with outside air through openings.
 Transport in transport packaging:
­ In unventilated containers in conditions without protection from the weather.
­ In the "cold" as in open-air climate.
­ Air transport in the air-conditioned cargo hold.

272

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Technical data 15.4 Shipping and storage conditions

Transport and storage conditions for devices

Table 15- 2 Ambient conditions during storage and transport

Type of condition
Classification Environmental class Ambient temperature Biological ambient conditions Chemically active environmental conditions Maximum permissible temperature change
Relative humidity Precipitation, rain Water other than rain
Condensation, splash water, icing, salt spray

Permissible range/class

Transport

Storage

EN 60721-3-2

EN 60721-3-1

2K4

1K4

From -40° C to +70° C

From -25° C to +55° C

2B1 1)

1B1 1)

2C2 2)

1C2 2)

Direct interaction in air/air: -40/+30 °C at 95% relative humidity 5 to 95% 6 mm/min 1) 1 m/s and wet loading surfaces 3)
Permitted

30 K/h

Not permitted

Not permit- 1 m/s and wet

ted 4)

loading surfaces 3)

Not permit- Permitted 3) ted 4)

1) Mold growth, slime, rodents, termites and other vermin are not permissible. 2) In marine and weather-resistant transport packaging (container). 3) For storage in transport packaging. 4) For storage in product packaging.

Note Remove the packaging material before installing the components.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

273

Technical data 15.5 Mechanical and climatic ambient conditions

15.5

Mechanical and climatic ambient conditions

Ambient conditions for operation
The SIMATIC Drive Controller is designed for stationary use at weather-protected locations. The documented ambient conditions apply for conditions in the immediate vicinity of the devices and for the cooling air inlet. Compliance with the following standards: EN 60204-1, EN 61800-2, EN 61131-2 and IEC 62477-1.

Table 15- 3 Ambient conditions for operation

Ambient conditions

Areas of application Comments

Climatic ambient conditions

Environmental class

Better than class 3K3

In accordance with EN 60721-3-3

Temperature limits at 0 °C to 55 °C 100% load

From an altitude of 2000 m, the max. ambient temperature is reduced by 7 °C for each additional 1000 m (derating).

Relative humidity

5 to 95% (60% in the presence of corrosive gases and/or dust)

(without condensation)

Condensation; icing; Not permitted drip, spray and splash water

Max. installation altitude

4000 m above sea level

For SINAMICS S120 drive components, see SINAMICS manuals

Barometric pressure 620 to 1060 hPa

Biological, chemical and mechanical influences; pollutants

Biological ambient conditions

Class 3B1 in accordance with EN 60 721-3-3: Mold, mold growth, slime, rodents, termites and other vermin are not permissible.

Mechanically active environmental conditions Class 3S1 in accordance with EN 60721-3-3: Conductive dust is not permissible.

Classification of the mechanical environment

3M3 for machine components 3M1 / 3M2 for components in the control cabinet

Vibratory load

Frequency range: 10 to 150 Hz

Displacement at 10 to 58 Hz: 0.075 mm

Acceleration at 58 to 150 Hz: 1 g

Shock load with shock-sensitive parts

Acceleration: 5 g

Duration of shock: 30 ms

Load: 3 x in each direction

Pollution degree

2 (inside use only)

Type of enclosure

Open type

Overvoltage category

OVC 2

EMC conducted / radiation

Class C2 in accordance with EN 61800-3

274

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Technical data 15.5 Mechanical and climatic ambient conditions
Note The user must consider emitted interference for the complete plant. Particular attention should be paid to cabling. Please contact your sales partner for assistance.
Note In a residential environment, this product can cause high-frequency interference that can make radio interference suppression measures necessary. Have the installation and commissioning with appropriate radio interference suppression measures preformed by qualified personnel.
Protection of the device against environmental factors Protect the device against the following environmental factors:  Direct sunlight and heat sources  Mechanical vibrations  Dust  Humidity  Strong magnetic fields
Reduction of vibrations If the SIMATIC Drive Controller is exposed to severe shock or vibration, take appropriate measures to reduce the acceleration or amplitude. We recommend installing the SIMATIC Drive Controller on damping materials (for example rubber-bonded-to-metal mounting.)

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

275

Technical data 15.6 Information on insulation tests, protection class, degree of protection and rated voltage

15.6

Information on insulation tests, protection class, degree of protection

and rated voltage

Insulation

The insulation is designed in accordance with the requirements of EN 61131-2: 2007.
Note Galvanic isolation with 707 V DC (Type Test) is tested for modules with 24 V DC supply voltage (SELV/PELV).

Pollution degree
The SIMATIC Drive Controller is designed for pollution degree 2 in accordance with EN 61800-5.
This means that the components must be protected from conductive contamination, for example, by installing them in a control cabinet with degree of protection IP54 pursuant to IEC 60529 or Type 12 pursuant to NEMA 250. If the occurrence of conductive contamination can be ruled out, a correspondingly lower degree of protection for the control cabinet is permitted.

Protection class
Protection class of the SIMATIC Drive Controllers Protection class III

Note
Protection class III equipment may only be connected to SELV or PELV current sources.

Degree of protection The SIMATIC Drive Controller has the degree of protection IP20 in accordance with IEC 60529, open type pursuant to UL/CSA:  Protection against contact with standard test finger  Protection against foreign objects with diameters in excess of 12.5 mm  No protection against water

276

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Technical data 15.6 Information on insulation tests, protection class, degree of protection and rated voltage

Rated voltage for operation
The rated voltages and corresponding tolerances for the power supply to the system components are listed in the following table.

Table 15- 4 Rated voltage of system components

Component/connection
Electronics power supply for SIMATIC Drive Controllers or SINAMICS S120 components
Line connection (power units)
Line frequency

Tolerance range 24 V DC -15/+20% (20.4 to 28.8 V)1 Protective extra low voltage PELV or SELV
3 AC 380 to 480 V ±10 % (-15 % < 1 min) 47 to 63 Hz

1) The supply voltage must not fall below the minimum of 20.4 V (24 V -15%) at the final device in the line-up as malfunctions can otherwise occur. A sufficiently high input voltage must therefore be selected. To prevent the maximum 24 V supply voltage (= 28.8 V) being exceeded, the voltage can be supplied at various different points in the line-up.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

277

Information for users changing from SIMOTION D4x5-2

A

A.1

Information for users changing from SIMOTION D4x5-2

SIMATIC S7-1500 and the SIMOTION Motion Control system are two automation systems whose architecture and therefore programming are fundamentally different. Be aware of these differences when switching between the two automation systems.

Comparison

The comparison below is based largely on the hardware differences between a SIMATIC Drive Controller and a SIMOTION D4x5-2 control unit.

Table A- 1 Differences between SIMOTION D4x5-2 control unit and SIMATIC Drive Controller

Feature

SIMOTION D4x5-2 DP/PN

General

Size

Booksize

(width x height x depth) 50 x 380 x 230 mm

Automation system

SIMOTION

Available

Four performance classes

Performance classes (D425-2 / D435-2 / D445-2 / D455-2)

Failsafe CPU

No

(additional SIMATIC S7 F-CPU required)

Integrated in the drive Yes, on the basis of SINAMICS S120

Safety functions

Engineering

STEP 7 V5.x or TIA Portal with

SIMATIC Drive Controller
Booksize compact 50 x 300 x 226 mm SIMATIC S7-1500 Two performance classes currently available (CPU 1504D and CPU 1507D) Yes (TF-CPU) Yes, on the basis of SINAMICS S120
TIA Portal with

· Controller · Drive

· SCOUT or SCOUT TIA · STARTER integrated in SCOUT

· STEP 7 Professional · Startdrive

Device modeling

Controller and integrated automatic speed

Controller and integrated automatic speed con-

control (SINAMICS Integrated) are modeled as trol (SINAMICS Integrated) are modeled as

ONE device

TWO devices in a TIA Portal group.

Runtime licenses (con- With licensed memory card licenses: axis

trol)

licenses, technology packages, etc.

With engineering (STEP 7 Professional) licenses: OPC UA, etc. (no axis licenses required with SIMATIC)

Interfaces

Option slot

Yes (for TB30 or CBE30-2)

No

PROFINET interface 1 PN IO with IRT: X150 (3 ports, 100 Mbps)

PN IO with IRT: X150 (3 ports, 100 Mbps)

PROFINET interface 2 PN basic communication: X127 (1 port, 1000 Mbps)

PN IO with RT: X160 (1 port, 100 Mbps)

PROFINET interface 3 PN basic communication: X130 (1 port, 1000 Mbps)

PN basic communication: X130 (1 port, 1000 Mbps)

PROFINET interface 4 Optional, CBE30-2 (PN IO with IRT, 4 ports) -

278

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Information for users changing from SIMOTION D4x5-2 A.1 Information for users changing from SIMOTION D4x5-2

Feature

SIMOTION D4x5-2 DP/PN

PROFIBUS interfaces 2 (master/slave)

DRIVE-CLiQ
Onboard I/Os (assigned to the drive)

4 ports (D425-2); 6 ports (D435-2, D445-2, D455-2)
12 DI, 8 DI/DQ

Onboard I/Os
(assigned to the controller)

8 DI/DQ, channel-by-channel as: DI, DQ, measuring input, output cam

SIMATIC Drive Controller 1 (master) Note: PROFIBUS cannot be operated in isochronous mode at the same time as other bus systems on MC Servo. 4 ports
12 DI, 8 DI/DQ
Terminal type and terminal assignment as SIMOTION D4x5-2 8 DI/DQ, channel-by-channel as: DI, DQ, Timer DI (for measuring inputs), Timer DQ (for output cams), Oversampling DI, Oversampling DQ, PWM, Event/period measurement

DQ can be operated as high-speed output

Other interfaces SINAMICS Integrated SINAMICS Integrated

2 x USB (for device updates)
On basis of CU320-2 (no EPOS, no SINAMICS Web server)

CX32-2 Memory card

Yes CF card For firmware and project

Firmware

Firmware is located on the memory card

Terminal type and terminal assignment as SIMOTION D4x5-2 2 x USB (no assigned function)
On basis of CU320-2 (no EPOS, no DCC/DCB, no free function blocks, no SINAMICS Web server) No, expansion with CU320-2 PN SD card (SIMATIC Memory Card) Can be used as program card or firmware update card Firmware is located on the Drive Controller

Runtime licensing Miscellaneous Controls
Display elements
Fan Battery

A common firmware file for controller and SINAMICS Integrated
With licensed memory card

Separate firmware update files for controller and SINAMICS Integrated
With engineering (Startdrive)

2 rotary switches (mode selector; service selector switch) Diagnostics button; reset button
10 LEDs for controller and SINAMICS Integrated PN interfaces with LINK/Activity LED
7-segment display Yes (dual fan for redundancy) Yes (required for buffering date/time > 4 days)

Toggle switch (mode selector)
Function button (for example, for diagnostics) 3 LEDs for controller / 3 LEDs for SINAMICS Integrated PN interfaces with LINK/Activity LED LED for memory card access 7-segment display No No (buffering date/time > 6 weeks)

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

279

Information for users changing from SIMOTION D4x5-2 A.1 Information for users changing from SIMOTION D4x5-2

Feature

SIMOTION D4x5-2 DP/PN

Protection with seal No

Installation

On the cabinet wall with/without spacer

(D445-2 / D455-2: without spacer only with external heat dissipation with cooling fins)

Possible installation positions

Vertical and on its back

SIPLUS variant for use in tough operating conditions, for example, in atmospheres with harmful gases

Yes
(SIMOTION D435-2 DP/PN and D455-2 DP/PN)

SIMATIC Drive Controller Yes, cover can be secured On the cabinet wall with/without spacer (as for CU320-2)
Vertical
No

280

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Accessories/spare parts

B

Accessories

You can order the following accessories for the SIMATIC Drive Controller:

Table B- 1 Accessories
Article SIMATIC Memory Card 4 MB 12 MB 24 MB 256 MB 2 GB 32 GB

Article number
6ES7954-8LC03-0AA0 6ES7954-8LE03-0AA0 6ES7954-8LF03-0AA0 6ES7954-8LL03-0AA0 6ES7954-8LP02-0AA0 6ES7954-8LT03-0AA0

Comments
We recommend a memory card with at least 12 MB if you are using SINAMICS Integrated.
A memory card of at least 256 MB is required for firmware updates.

Accessories for PROFIBUS

Article number

PROFIBUS bus connector RS485

with angled cable outlet (35°)

with screw-type connection,

max. transmission rate 12 Mbps:

· without PG/PC interface · with PG/PC interface

6ES7972-0BA42-0XA0 6ES7972-0BB42-0XA0

PROFIBUS FastConnect bus connector RS485

with angled cable outlet (35°) with insulation displacement connection, max. transmission rate 12 Mbps: · without PG/PC interface · with PG/PC interface

6ES7972-0BA61-0XA0 6ES7972-0BB61-0XA0

Comments -
-

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

281

Accessories for PROFINET (X150/X160 interface)

Article number

RJ45 connector FastConnect for Industrial Ethernet/PROFINET

145° cable outlet (10/100 Mbps):

· 1 pack= 1 item

6GK1901-1BB30-0AA0

· 1 pack= 10 items

6GK1901-1BB30-0AB0

· 1 pack= 50 items

6GK1901-1BB30-0AE0

FastConnect cables for Industrial Ethernet/PROFINET 1)

· IE FC Standard Cable GP 2x2

6XV1840-2AH10

· IE FC Flexible Cable GP 2x2

6XV1870-2B

· IE FC Trailing Cable GP 2x2

6XV1870-2D

· IE FC Trailing Cable 2x2

6XV1840-3AH10

· IE FC Marine Cable 2x2

6XV1840-4AH10

Stripping tool for Industrial Ethernet/PROFINET FastConnect cables

· IE FC Stripping Tool

6GK1901-1GA00

Comments
-
-
-

1) Sold by the meter; max. delivery unit depends on cable type; minimum order quantity 20 m.

282

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Accessories for Industrial Ethernet (interface X130)

Article number

RJ45 FastConnect connector for Industrial Ethernet/PROFINET

180° cable outlet (10/100/1000 Mbps):

· 1 pack= 1 item

6GK1901-1BB11-2AA0

· 1 pack= 10 items

6GK1901-1BB11-2AB0

· 1 pack= 50 items

6GK1901-1BB11-2AE0

FastConnect cables for Industrial Ethernet/PROFINET 1)

· IE FC Standard Cable GP 4x2

6XV1878-2A

· IE FC Flexible Cable GP 4x2

6XV1878-2B

Stripping tool for Industrial Ethernet/PROFINET FastConnect cables

· IE FC Stripping Tool

6GK1901-1GA00

Dust cover blanking plug

for protecting unused DRIVE-CLiQ, Ethernet and PROFINET ports

· Blanking plug (50 units)

6SL3066-4CA00-0AA0

1) Sold by the meter; max. consignment 1000 m; minimum order quantity 20 m.

Comments
-
-

Note
The PROFINET interface X130 supports transmission rates of 10, 100 and 1000 Mbps.
For the maximum transmission rate of 1000 Mbps, use: · 8-wire cables (4x2) · 1000 Mbit 180° FastConnect connectors
You can use the 145° FastConnect connectors for PROFINET interface X130 only with a max. of 100 Mbps.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

283

Spare parts

You can order the following spare parts for the SIMATIC Drive Controller:

Table B- 2 Spare parts
Article Bottom cover Top cover Spacer Terminal kit · 3 x I/O connector for X122/X132/X142 · 1 x 24 V connector for X124 · 5 x DRIVE-CLiQ blanking cover

Article number 6ES7615-0AC10-0AA0 6ES7615-0AC10-1AA0 6SL3064-1BB00-0AA0 6SL3064-2CB00-0AA0

Comments -

284

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Glossary

Accessible devices
Accessible devices are all devices connected to an interface of the programming device / PC that are turned on.

Automatic speed control, for example S120
Automatic speed control covers all elements and components for current and speed control of an electric drive.

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains in the process engineering industry and in manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Basic positioner (EPOS) function module Converter function for calculating profiles for the position controller.

Baud rate

Baud rate is the symbol or modulation rate in data transmission. For example, if a symbol comprises 4 bits, 9600 bps are transmitted at a modulation rate of 2400 baud. For symbols with only two possible states (binary symbols), the baud rate is the same as the bit rate.

Bit memory

Bit memory is a component of the system memory of the CPU for saving intermediate results. It can be accessed in bit, byte, word or double word mode.

Booksize device
Booksize design of the components of a drive unit, suitable for installation side-by-side. Usually intended for the operation of multiple motors.

Bus
Joint transmission path to which all devices in a fieldbus system are connected; has two defined ends.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

285

Bus cable connector Physical connection between the bus node and the bus cable.

Code block

In SIMATIC S7, a code block is a block that contains a section of the STEP 7 user program. (in contrast to a data block, which contains only data)

Configuration

Systematic arrangement of the individual modules (configuration).

Connection plug Physical connection between device and cable.

Consistent data
Data whose content belongs together and must not be separated is known as consistent data.

Control unit

Converter component with automatic speed control function (e.g. CU320-2). With SIMOTION D, SINUMERIK NCUs and the SIMATIC Drive Controller, the control unit and controller are combined in one device as SINAMICS Integrated.

Controller extension This component scales the number of drive controls in SIMOTION D4x5-2.

Counter

Counters are components of the system memory of the CPU. You can modify the content of the "counter cells" using STEP 7 instructions (e.g. count up/down).

CPU

The CPU contains the operating system and executes the user program. The user program is located on the SIMATIC Memory Card and is processed in the work memory of the CPU. The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. The S7-1500 CPUs support operation as an IO controller and I-device. Similarly to the PROFINET interface, the PROFIBUS interface available on some of the S71500 CPUs allows communication with other devices. When the interface is used as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

286

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Cross-PLC synchronous operation
This functionality allows you to create a master value source and a synchronous axis on different controllers.

Cycle control point
The cycle control point marks the end of a cycle and the start of the next cycle. The cycle time statistics and monitoring of the configured maximum cycle time start at the cycle control point.
Once the cycle control point has been reached, the CPU writes the process image output to the output modules, reads the state of the inputs in the input modules and then executes the first cyclic OB.

Cycle time

The cycle time represents the time a CPU requires to execute the user program once.

Cyclic interrupt You can find relevant information in the entry "Interrupt, cyclic".

Data block

Data blocks (DBs) are data areas in the user program that contain user data. There are global data blocks, which can be accessed from all code blocks, and instance data blocks, which are assigned to a specific FB call.

Device

A device can send, receive or amplify data via the bus, e.g. IO device via PROFINET IO.

Device names

Before an IO device can be addressed by an IO controller, it must have a device name. This approach was chosen for PROFINET because names are easier to administer than complex IP addresses.
In its delivery state, an IO device has no device name. An IO device can only be addressed by an IO controller ­ for example for transferring configuration data (including the IP address) during startup, or for user data exchange during cyclic operation ­ after it has been assigned a device name with the PG/PC.

Diagnostic buffer
The diagnostic buffer is a battery-backed memory area in the CPU where diagnostic events are stored in their order of occurrence.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

287

Diagnostics

Monitoring functions for the detection, localization, classification, display, and further evaluation of errors, faults, and alarms. They run automatically while the system is in operation. This increases the availability of systems by reducing commissioning times and downtimes.

Diagnostics interrupt You can find relevant information in the entry "Interrupt, diagnostics".

Distributed I/O system
System with I/O modules that are configured on a distributed basis, at a large distance from the CPU controlling them.

DP Distributed I/O

DP master

The DP master is a central component in the PROFIBUS DP data bus that exchanges data with its assigned distributed stations (slaves) in a defined, continually repeating message cycle.

DP slave

An I/O device acting as a passive node in PROFIBUS DP that reads in input information and sends output information to the I/O.

Drive Control Block
Multi-instance block that is selected from a predefined block library in the DCC editor and is used to set the control functionality.

Drive Control Chart (DCC)
Allows the user to implement additional continuous, drive control and math functions using a set of function blocks ("Drive Control Blocks", DCB) in a function block library. These function blocks can be graphically interconnected using a configuration tool ("Drive Control Chart Editor", DCC editor).

Drive object

A drive object is a separate, discrete software functionality with its own parameters and in some cases also its own faults and warnings.

288

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

DRIVE-CLiQ

Abbreviation for Drive Component Link with IQ. This is a SINAMICS drive technology communication system for connecting the various drive components such as control unit, Line Modules, Motor Modules, motors and speed/positioning encoders. In terms of hardware, DRIVE-CLiQ is based on the Industrial Ethernet standard with twisted-pair lines. In addition to the send and receive signals, the +24 V power supply is also provided over the DRIVE-CLiQ line.

Equipotential bonding
Electrical connection (potential equalization conductor) that brings the bodies of electrical equipment and other conductive bodies to the same or almost the same potential, in order to prevent disruptive or dangerous voltages between these bodies.

Failsafe module
Collective name for failsafe inputs and outputs available in SIMATIC S7 for integration into Fsystems.

Firmware update
Upgrade of firmware for the CPU and modules (interface modules, I/O modules etc.), for example after function extensions, to the newest firmware version (update).

Forcing

Preassigning to variables in a user program fixed values that cannot subsequently be modified or overwritten by the program.

Free function blocks (FBLOCKS)
OA application with SINAMICS. Software blocks in a SINAMICS converter that are not active in the factory settings and can be activated and interconnected as required for additional control and math instructions. Free function blocks allow you to implement additional control and math instructions (for example logic functions, math functions, time functions, and storage functions).

Function

A function (FC) is a code block with no static data. A function allows you to pass parameters in the user program. Functions are thus suited for programming frequently recurring complex functions, such as calculations.

Function block

A function block (FB) is a code block with static data. An FB allows you to pass parameters in the user program. Function blocks are thus suited for programming frequently recurring complex functions, such as closed-loop controls or operating mode selection.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

289

Functional ground
The functional ground is a low-impedance current path between electric circuits and ground. It is not intended as a protective measure but rather, for example, for improvement of interference immunity.

Ground

Conductive ground whose electrical potential can be set to zero at any point.
All interconnected, inactive parts of a piece of equipment that cannot accept any dangerous contact voltage, even in the event of a fault.

Ground

Conductive ground whose electrical potential can be set to zero at any point.
All interconnected, inactive parts of a piece of equipment that cannot accept any dangerous contact voltage, even in the event of a fault.

Grounding

Grounding means connecting an electrically conductive part to a grounding electrode by means of a grounding system.

GSD file

The Generic Station Description file contains all properties of a PROFINET or PROFIBUS device that are necessary for its configuration.

Handling system
A device that manages the flow of material from or to a workstation, in other words that is used for handling.

Hardware interrupt You can find relevant information in the entry "Interrupt, process".

I/O modules

All modules that can be operated with a CPU or an interface module.

Identification data
Information that is saved in modules, and that supports the user in reviewing the system configuration and locating hardware changes.

290

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Instance data block
Each call of a function block in the STEP 7 user program is assigned a data block, which is automatically generated. Values of the input, output and in/out parameters, as well as local block data, are stored in the instance data block.

Interrupt

The operating system of the CPU distinguishes between various priority classes that control the execution of the user program. These priority classes include, for example, hardware interrupts. When an interrupt occurs, the operating system automatically calls an assigned organization block. The user can program the desired reaction in the organization block, for example in an FB.

Interrupt, cyclic
The CPU generates a cyclic interrupt periodically within a parameterizable time grid and then processes the corresponding organization block.

Interrupt, hardware
A hardware interrupt is triggered by interrupt-triggering modules due to a certain event in the process. The hardware interrupt is signaled to the CPU. The CPU then processes the assigned organization block according to the priority of this interrupt.

Interrupt, time-delay
The time-delay interrupt is one of the program execution priority classes of SIMATIC S7. It is generated after expiration of a timer started in the user program. The CPU then processes the corresponding organization block.

Interrupt, time-of-day
The time-of-day interrupt is one of the program execution priority classes of SIMATIC S7.. It is generated based on a defined date (or daily) and time (e.g. 9:50 or every hour, every minute). The CPU then processes the corresponding organization block.

Interrupt, update
When it receives an update interrupt, the operating system calls the update interrupt OB. This may happen if you changed a parameter on a slot of a device.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

291

IP address

The IP address is made up of four decimal numbers with a range of values from 0 through 255. The decimal numbers are separated by a dot (for example 192.162.0.0). The IP address consists of the following:  Address of the network  Address of the device (PROFINET interface of the IO controller/IO device)

IRT, isochronous real time
A synchronized transmission method for the cyclic exchange of I/O data between PROFINET IO devices.
A fixed bandwidth within the send clock is reserved for the I/O data, ensuring that the I/O data is exchanged at equal intervals.

Isochronous mode Signal acquisition, transmission and processing linked to a specified cycle.

Isolated modules
In the case of isolated input/output modules, the reference potentials of the control and load circuits are galvanically isolated, e.g. by means of optical isolators, relays or transformers. Input/output circuits can be connected to common potential.

Line Module

Self-commutated infeed/regenerative feedback unit for generating a controlled DC-link voltage, which decouples connected Motor Modules from the line voltage and thus prevents line voltage fluctuations within the permitted line tolerances from affecting the motor voltage.

Load current supply Supply of the module's input and output electric circuits.

MAC address

Every PROFINET device is assigned a worldwide unique device identification before it leaves the factory. This 6-byte long device identification is the MAC address. Each interface and also each port has its own MAC address.
The MAC address is divided into:
 3-byte manufacturer identification
 3-byte device identification (consecutive number)
The MAC address is generally shown on the front of the device. Example: 08-00-06-6B-80-C0

292

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Motion Control

Siemens AG product family for drives that control motion. Covers all functions and components for coordination in terms of position and time for machine components in processing machinery.

Motor Module

Converter component (inverter) that provides power for one or two connected motors.

Non-isolated modules
In the case of non-isolated input and output modules, the reference potentials of the control and load circuits are electrically connected.

NTP

The Network Time Protocol (NTP) is a standard for synchronizing clocks in automation systems via Industrial Ethernet. NTP uses the UDP connectionless network protocol.

Onboard I/O

The digital onboard I/O of the SIMATIC Drive Controller is designed for connecting sensors and actuators. Connection is over the interfaces X122, X132 and X142.
The digital inputs and digital outputs at interfaces X122 and X132 are mainly assigned to SINAMICS Integrated. Through configuration (frames 39x), you can, however, also use the digital inputs and digital inputs/outputs (X122/X132) for the CPU. The digital input/outputs at interface X142 are assigned to the CPU of the SIMATIC Drive Controller and that assignment is fixed.

Operating mode
The operating mode is a defined manner in which a device or system is able to execute its function (for example continuous duty, short-time duty or periodic duty).

Operating states Operating states describe the behavior of a single CPU at a specific time.

Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The organization blocks determine the order in which the user program is executed.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

293

Parameter

 Tag of a STEP 7 code block:
 Tag for setting the behavior of a module (one or more per module). In as-delivered state, every module has an appropriate basic setting, which you can change by configuring in STEP 7. There are static and dynamic parameters

Parameters, dynamic
In contrast to static parameters, you can change dynamic parameters of modules during operation by calling an SFC in the user program, e.g. limit values of an analog input module.

Parameters, static
In contrast to dynamic parameters, you cannot change static parameters of modules with the user program but only by configuring in STEP 7, e.g. input delay of a digital input module.

PELV

Protective Extra Low Voltage = grounded extra low voltage with safe isolation

PLCopen

With these standardized instructions, you can use OPC UA client functions executed in an S7-1500 CPU in your user program.

Pre-wiring

Wiring of the electrical system on the front connector before the front connector is used on the I/O module.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program the signal states of the input modules are transmitted to the process image of the inputs. At the end of the cyclic program the process image of the outputs is transmitted as signal state to the output modules.

Product version (PV) = Function version (FV)
The product version or function version provides information on the hardware version of the module.

294

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

PROFIBUS

PROcess FIeld BUS, process and fieldbus standard that is specified in IEC 61158 Type 3. It specifies functional, electrical and mechanical characteristics for a bit-serial field bus system.
PROFIBUS supports the protocols DP (= Distributed I/O), FMS (= Fieldbus Message Specification), PA (= Process Automation), or TF (= Technological Functions).

PROFIdrive Integrated
PROFIBUS profile specified by the PNO (PROFIBUS user organization) for speed-controlled and position-controlled drives.

PROFINET

PROcess FIeld NETwork, open Industrial Ethernet standard which further develops PROFIBUS and Industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V. as an automation standard.

PROFINET IO

Communication concept for the realization of modular, distributed applications within the scope of PROFINET.

PROFINET IO controller
Device used to address connected I/O devices (for example distributed I/O systems). This means that: The IO controller exchanges input and output signals with assigned IO devices. Often, the IO controller is the CPU on which the automation program runs.

PROFINET IO device
Distributed field device that can be assigned to one or more IO controllers (for example distributed I/O system, valve terminals, frequency converters, switches).

Push-in terminal Terminal for the tool-free connection of wires.

Reference potential Potential from which the voltages of the circuits involved are observed and/or measured.

Restart

During a warm restart, all non-retentive bit memory is deleted and non-retentive DB contents are reset to the initial values from load memory. Retentive bit memory and retentive DB contents are retained. Program execution begins at the call of the first startup OB.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

295

Retentivity

A memory area whose content is retained after power failure and after a STOP to RUN transition is retentive. The non-retentive area of the bit memory, timers and counters is reset after power failure and after a STOP to RUN transition.

Row

All the modules attached to a mounting rail.

RT, real-time

A transmission method for the cyclic exchange of I/O data between PROFINET devices. The transmission method guarantees that the I/O data is transferred at deterministic intervals.

Runtime error

Error that occurs during execution of the user program in the automation system (thus not in the process).

SELV

Safety Extra Low Voltage = Safety extra-low voltage

Sensor Module Component for implementing encoder interfaces on DRIVE-CLiQ.

SIMATIC Drive Controller The SIMATIC Drive Controller is a drive-based controller in the SIMATIC S7-1500 range.

SIMATIC Memory Card External memory card for memory expansion in SIMATIC PLC.

SIMATIC Safety Integrated
Coordinated product line, for example safety-related low-voltage switchgears and sensors, failsafe PLC, CNC controllers and variable-speed drives, which can be used in automation and drive technology to achieve the required plant security.

SINAMICS Integrated
SINAMICS Integrated is the integrated automatic speed control for controller platforms on which CPU and SINAMICS automatic speed control are combined in one hardware product ­ for example on the SIMATIC Drive Controller.

296

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

SINAMICS S210 servo drive system
A new servo drive system with five performance classes from 50 to 750 watts. The converter already has an integrated safety function.

SINAMICS Startdrive TIA Portal option package for intuitive integration of SINAMICS drives in automation.

Slave station

A slave may only exchange data with a master after being requested to by the master.

SNMP

SNMP (Simple Network Management Protocol) is the standardized protocol for performing diagnostics on and assigning parameters to the Ethernet network infrastructure.
In the office setting and in automation engineering, devices from a wide range of vendors on the Ethernet support SNMP.
SNMP-based applications can be operated on the same network in parallel to applications with PROFINET.
The scope of supported functions varies depending on the device type. For example a switch has more functions than a CP 1616.

Switch

PROFIBUS is a linear network. The communication nodes are linked by means of a passive cable - the bus.
By contrast, Industrial Ethernet consists of point-to-point connections: Each communication node is directly connected to exactly one communication node.
If a communication node is linked to several communication nodes, this communication node is connected to the port of an active network component - the switch. Additional communication nodes (including switches) can now be connected to the other ports of the switch. The connection between a communication node and the switch remains a point-topoint connection.
A switch thus has the task of regenerating and distributing received signals. The switch "learns" the Ethernet address(es) of a connected PROFINET device or additional switches and only forwards those signals that are intended for the connected PROFINET device or switch.
A switch has a specific number of connections (ports). You connect at most one PROFINET device or additional switch to each port.

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

297

Technology I/Os
Designation for inputs and outputs with hardware-level signal processing, for example for rapid counting, measuring or time-controlled output of signals. Technology I/Os are provided by the ET 200SP/MP technology modules, for example. CPUs with integrated inputs and outputs are also available.

Technology object
A technology object supports you in the configuration and commissioning of a technological function.
The properties of real objects are represented by technology objects in the controller. Real objects include controlled systems and drives.
The technology object contains all data of the real object required for its open-loop or closedloop control, and it signals back status information.

Terminal Module Component for implementing inputs and outputs on DRIVE-CLiQ.

TIA Portal

Totally Integrated Automation Portal
High-performance engineering framework for the most important components of an automation project, such as controller, HMI, drives and distributed I/O. Engineering with TIA Portal offers:
 Configuration and programming
 Shared data management
 Uniform operating concept
The TIA Portal simplifies integrated engineering in all configuration phases of a plant.

Time-delay interrupt You can find relevant information in the entry "Interrupt, delay".

Time-of-day interrupt You can find relevant information in the entry "Interrupt, time".

Timer

Timers are components of the system memory of the CPU. The operating system automatically updates the content of the "timer cells" asynchronously to the user program. STEP 7 instructions define the precise function of the timer cell (for example on-delay) and trigger its execution.

298

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

U/f control

Speed control with output voltage setting on the basis of a V/f characteristic.

Update interrupt You can find relevant information in the entry "Interrupt, update".

User program

SIMATIC differentiates between the operating system of the CPU and user programs. The user program contains all instructions and declarations as well as data for the signal processing that enable a plant or process to be controlled. The user program is assigned to a programmable module (e.g. CPU) and can be structured in smaller units.

Value status

The value status is additional binary information of a digital input or output signal. The value status is entered simultaneously with the process signal in the process image input and provides information about the validity of the signal.

Vector control

Speed control with sublevel closed-loop control of flow and torque.

Warm restart

You can find relevant information in the entry "Restart".

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

299

Index

2
24 V DC supply, 73
A
Access protection with the user program, 174 Accessible devices
Firmware update, 246 Accessories, 281 Addressing, 102
Basics, 102 Approvals, 270
CE, 270 cULus, 270 Asynchronous instructions, 160
C
Cable shield Shield bus, 90 Shield connection, 90
CE approval, 270 Commissioning, 189, 223
First power-on, 194 First power-on, requirements, 194 Identification data, 221, 223 Identification data - record structure, 223 Removing/inserting SIMATIC memory card, 192 Comparison, 278 Components open, 67 Configuration control, 182, 186 Configuration control for IO systems, 182 Configuring, 91, 91 Connecting PROFIBUS DP, 81 PROFINET, 81 Control interface, 131 CPU Backup/restore content, 211 Memory reset, 206 Programming, 157 Reading out service data, 266 Reset to factory settings, 252 cULus approval, 270

D
Data block editor, 264 Degree of protection IP20, 276 Device replacement, 97 Digital inputs/outputs, 82 Display, 231 DRIVE-CLiQ
Firmware update, 249 Rules for wiring, 84
E
Electromagnetic compatibility (EMC), 271 EMC (Electromagnetic compatibility), 271
Disturbances, 272 EMC guidelines, 73 EMERGENCY STOP concept, 72 EMERGENCY STOP devices, 72
F
Factory settings, 252 FAQ
Emergency address, 212 Formatting a SIMATIC Memory Card, 234 Removing a SIMATIC Memory Card, 233 Repairing the SIMATIC Memory Card, 234 FAQs Firmware update, 249 Removing a SIMATIC memory card, 193 Feedback interface, 132 Firmware update, 244 Force table, 263 F-system, 255
H
Hardware Components, 64 Configuration, 64
Hardware requirements, 60

300

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

Index

I
Identification data, 221 Record structure, 223
IEC 60204, 72 Installation, 69 Instructions
GetSMCinfo, 239 Insulation, 276 Interfaces, 52
K
Know-how protection, 175
L
LED flash test, 264 Licensing, 203 Lightning protection, 73 Line voltage, 72 LSINATopo library, 185
M
Maintenance, 258 Firmware update, 244 Reading out service data, 266 Reset to factory settings, 252 Test functions, 259
Maximum cycle time, (Cycle monitoring time), (Cycle monitoring time) Memory reset
Automatic, 207 Basics, 206 Manual, 208 Modular machine, 183 Multiple use IO systems, 182
O
OBs, 158 Event source, 159 Priorities, 158 Priorities and runtime behavior, 160 Queue, 158 Triggers, 158
Openness, 188 Operating conditions, 58 Operating states
Operating state transitions, 201

RUN, 200 Setting startup behavior, 199 STARTUP, 197 STOP, 200 Option handling, (See Configuration control)
P
Parameter assignment, 91 DI operating mode, 111 Digital inputs/outputs, 109 DQ operating mode, 112 Event/period measurement operating mode, 127 Oversampling DI operating mode, 123 Oversampling DQ, 125 PWM operating mode, 128 Timer DI operating mode, 113 Timer DQ operating mode, 117
Password provider, 175 Performance classes, 20 Performance features, 20 PID control, 46 Plant components, 27 PLC tag table, 264 Pollution degree, 276 Potential equalization, 88 Power supply
Safety rules, 72 Process image
Inputs and outputs, 106 Process image partition
Updating in the user program, 107 Project
Adding a SIMATIC Drive Controller, 93 Creating, 93 Display, 93 Grouping, 95 Project tree, 99 PRONETA, 56 Protection, 170, 177, 180, 181 Access levels, 171 Behavior of a password-protected CPU, 174 Copy protection, 180 Know-how protection, 177 Mechanical locking, 181 Protection class, 276 Protection from external electrical effects, 73 Protective conductor connection, 85

SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

301

Index
R
rated voltage, 277 Reading out service data, 266 Repair, 258 Requirements
Hardware, 92 Software, 92 Retentive data, 235
S
Scaling, 28 Shipping conditions, 272 SIMATIC Automation Tool, 57 SIMATIC Memory Card, 237
Basics, 229 Possible applications, 237 Repairing, 234 SIMATIC Safety Integrated, 34 SIMOTION D4x5-2, 278 SINAMICS Digital inputs/outputs, 135 SINAMICS Integrated Functions, 50 NVRAM, 213 Operating states, 202 reset to factory settings, 254 Time-of-day synchronization, 217 SINETPLAN, 56 Software requirements, 61 Spare parts, 284 Specific application, 72 Standard machine project, 182 Standards, 270 Storage conditions, 272
T
Team Engineering, 227 Technical specifications
Electromagnetic compatibility (EMC), 271 Shipping and storage conditions, 272 Standards and Approvals, 270 Technology functions, 45 Technology objects, 44 Temperature monitoring, 257 Test functions, 259 Test voltage, 276 TIA Portal Openness, 188 TIA Portal, 55
302

TIA Selection Tool, 56 Time-of-day synchronization, 215 Trace, 265 Trace recordings, 238
W
Web server, 41
SIMATIC Drive Controller System Manual, 11/2019, A5E46600094-AA

A5E48022408-AA
Product Information on the SIMATIC Drive Controller
Product Information

Scope

Scope of validity of the product information

This product information supplements the documentation for the SIMATIC Drive Controller and takes precedence over our system manuals, function manuals and equipment manuals. The statements in this product information are valid for the following SIMATIC Drive Controllers:

SIMATIC Drive Controller

Article number

CPU 1504D TF CPU 1507D TF

6ES7615-4DF10-0AB0 6ES7615-7DF10-0AB0

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

© Siemens AG 2019 - 2020. All rights reserved

A5E48022408-AC, 07/2020

1

Supplementary information on the integrated fail-safe technology CPU
Validity The SIMATIC Drive Controller contains a fail-safe technology CPU from the SIMATIC S7-1500 family and a SINAMICS S120 automatic speed control. The following information applies to the fail-safe technology CPU of the SIMATIC Drive Controller.
Safety and standard mode The fail-safe design of the integrated technology CPU allows you to implement applications for safety systems, e.g. safety solutions for the protection of machines and people. This enables seamless integration of machine safety into the SIMATIC Drive Controller. You use one system for both your standard and fail-safe automation at the same time. You can program the F-CPU of the SIMATIC Drive Controller for safety mode or standard mode. For safety mode, a license for STEP 7 Safety needs to be installed. If no license for STEP 7 Safety is installed, you can only use the SIMATIC Drive Controller in standard mode. Information on the use of the SIMATIC Drive Controller in safety mode is available in the programming and operating manual SIMATIC Safety - Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126). Information on the use of the SIMATIC Drive Controller in standard mode is available in the documentation on the SIMATIC Drive Controller:  SIMATIC Drive Controller system manual (https://support.industry.siemens.com/cs/ww/en/view/109766665)  SIMATIC Drive Controller device manual (https://support.industry.siemens.com/cs/ww/en/view/109766666) You can find the latest firmware for the relevant SIMATIC Drive Controller in the Industry Online Support (https://support.industry.siemens.com/cs/ww/en/view/109773914).
Note Observe any application-specific requirements, for example on mains buffering for power supplies/power packs.

PFDavg, PFH values for F-CPUs

Below you will find the probability of failure values (PFDavg, PFH values) for SIMATIC Drive Controller F-CPUs with a mission time of 20 years and with a repair time of 100 hours:

Operation in low demand mode low demand mode
According to IEC 61508:2010:
PFDavg = Average probability of dangerous failure on demand

Operation in high demand or continuous mode high demand/continuous mode According to IEC 61508:2010: PFH = Average frequency of a dangerous failure [h-1]

PFDavg according to SIL2: < 14E-04
PFDavg according to SIL3: < 2E-05 (with exclusive use of the F-CPU)

PFH according to SIL2: < 14E-09
PFH according to SIL3: < 1E-09 (with exclusive use of the FCPU)

Support of PROFIsafe V2 Interfaces that support PROFINET IO also support PROFIsafe V2.

Restriction with "CREAT_DB" and "DELETE_DB" instructions F-DBs can neither be created nor deleted.

Restriction with "READ_DBL" and "WRIT_DBL" instructions The destination address must not point to an F-DB.

Product Information on the SIMATIC Drive Controller

2

A5E48022408-AC, 07/2020

Restrictions when configuring the retentive behavior of F-data blocks The configuration of the retentive behavior of data blocks is not supported for F-DBs. This means that the actual values of the F-DBs will not be retentive in the event of Power OFF/ON and Restart (STOP-RUN) of the F-CPU. The F-DBs retain the initial values from the load memory. The "Retain" check box is grayed out for all tags in F-DBs.
Use of isochronous mode interrupt (F-)OBs If the sum of the isochronous mode interrupt OBs and the isochronous mode interrupt F-OBs used exceeds the number specified in the technical specifications of the SIMATIC Drive Controller, it is no longer possible to load the standard user program in RUN.
Requirements for power supplies in the event of voltage interruption
Note To ensure adherence to IEC 61131-2 and NAMUR Recommendation NE 21, only use power packs/power supply units (230 V AC  24 V DC) with a mains buffering time of at least 20 ms. Observe the relevant requirements in your product standards (e.g. 30 ms for "burners" pursuant to EN 298) as regards possible voltage interruptions. The latest up-to-date information on PS components is available on the Internet (https://mall.industry.siemens.com).
Web server The following is displayed for the F-CPU on the start page of the Web server:  Version of STEP 7 Safety with which the safety program was compiled.  Safety mode activated/deactivated  Collective F-signature  Last fail-safe change The "Fail-safe" tab on the "Diagnostics" Web page provides information about the F-runtime groups:  Name of F-runtime group  F-runtime groups signature  Current cycle time  Max. cycle time  Current runtime  Max. runtime The following is displayed for each F-I/O on the "Module information" web page in the "Fail-safe" tab:  F-parameter signature (with addresses)  Safety mode  F-monitoring time  F-source address  F-destination address Write access to F-blocks is not permitted.
Note Controlling fail-safe inputs/outputs can result in an F-CPU STOP.

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

3

Information about the technology functions of the CPU

Validity The SIMATIC Drive Controller CPU has technology functions such as a modular S7-1500T CPU. The following information on the technology functions applies to the following function manuals from edition 12/2019 onwards:  S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16  S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16  S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16  S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16  S7-1500T Kinematics functions V5.0 in TIA Portal V16

Technology alarms 900-902

Contrary to the documented behavior, the received leading value is detected as invalid with technology alarms 900 and 901 as alarm response. Technology alarm 902 has no alarm response.

The technology alarms 900 and 901 are displayed in the diagnostics buffer.

No.

Response

Error bit Warning bit Restart Diagnos-

tics buffer

Alarm text

900 Set leading value invalid

X2

-

-

X

Invalid leading values.

901 Set leading value invalid

X2

-

-

X

Data transmission error.

902 No response

-

X2

-

-

Leading value accuracy limited.

You can acknowledge a technology alarm 900 with an "MC_Reset" job with "Restart" = FALSE. A restart is not required.

The technology alarm 900 is displayed with the following alarm text:

Alarm text

Solution

Invalid leading values.

Set a higher tolerance time (<TO>.Parameter.ToleranceTimeExternalLeadingValueInvalid).
Check the connection of the interconnected components. Make sure that there is no communication interference.
Make sure that the CPUs involved are in RUN operating state.

The technology alarm 901 is displayed with the following alarm text:

Alarm text

Solution

Data transmission error Invalid version Invalid modulo start value Invalid modulo length Sign-of-life error Invalid position Invalid velocity Invalid acceleration

Check the communication. Check the leading value of the leading axis on the other CPU.

Product Information on the SIMATIC Drive Controller

4

A5E48022408-AC, 07/2020

Behavior of the modulo cycle counter when homing with "MC_Home"

In contrast to the documented behavior, the modulo cycle counter responds during direct relative homing with "Mode" = 1, 12 and with absolute value encoder adjustment (relative) with "Mode" = 6 as with direct absolute homing with "Mode" = 0. The counter values of the modulo cycles change during homing and the absolute encoder adjustment with the listed modes as follows:

Action

Description

Absolute value adjustment with "Mode" = 6
Direct homing relative with "Mode" = 1, 12

The modulo value is the shortest distance between the current and new position. Depending on the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.
The modulo value is the shortest distance between the current and new position. Depending on the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.

Provision of leading value for cross-PLC synchronous operation
Contrary to documentation, the leading value can only be provided by the CPUs S7-1515, S7-1516, 1515SP PC2 T/TF, the technology CPUs, and the SIMATIC Drive Controller.
This behavior is corrected as of firmware version V2.8.3.

Use of the "DX_TEL_SyncOp" data type for cross-PLC synchronous operation
Output and input tags with the "DX_TEL_SyncOp" data type are created for the cross-PLC synchronous operation at the start address of the transfer area. If the data type "DX_TEL_SyncOp" cannot be assigned, it was deleted with the last compilation.
Unused data types are deleted during the compilation. To restore the "DX_TEL_SyncOp" data type, add a V5.0 technology object. After using the data type in the PLC tag, the technology object can be deleted again.

Manually configuring delay times on the leading axis and the virtual following axis
If you increase the delay time of the leading axis in the leading value settings, this results in a reduction of the extrapolation time at the leading axis proxy or to an increase of the interpolation time of the distributed leading value at the leading axis proxy. This reduces the error resulting from extrapolation in the acceleration and delay phases of the leading value.
If the delay time at the leading axis proxy is increased, this results in an increase of the extrapolation time or to a reduction of the interpolation time.

Calculation of the following error
The following error is the difference between the setpoint and actual position based on the connection of the axis at the drive. In contrast to the documented behavior, the transmission times of the setpoints from the controller to the drive and the actual position values from the drive to the controller are not part of the following error. The value of the following error is thus not the same as the difference between the setpoint available in the controller minus the existing actual position.

Performance of the user transformation with dynamic adaptation (S7-1500T)
With the Technology Version V5.0, longer runtimes of the MC-Interpolator [OB92] arise with the user transformation. With longer runtimes of the MC-Interpolator [OB92] the runtimes of the organization blocks with lower priority are extended.

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

5

Maximum number of signals per kinematics trace

You can record a maximum of 16 signals in a kinematics trace. The following table shows how many signals are required for the traces.

Kinematics type

Trace

Required signals

2D

Tool center point (TCP) and kinematics

4

Tool center point (TCP)

2

per OCS

3

2D with orientation

Tool center point (TCP) and kinematics

6

Tool center point (TCP)

3

per OCS

2

3D

Tool center point (TCP) and kinematics

6

Tool center point (TCP)

3

per OCS

6

3D with orientation

Tool center point (TCP) and kinematics

8

Tool center point (TCP)

4

per OCS

4

The more traces you record, the lower the maximum recording duration and the number of measuring points per trace.

Use of blending with kinematics motions (S7-1500T)
Dynamic overruns on the kinematics axes might occur during blending.
Occasionally, a synchronous "point-to-point" motion might not be blended into the next movement. In this case, increase the cycle time of the OB MC servo.

Blending between path motions and synchronous "point-to-point" motions (sPTP motions) (S7-1500T) When using blending from a path motion to an sPTP motion, there might not be any blending or the blending segment could be significantly shortened. When using blending of path motions and sPTP motions, set the path dynamics as high as possible:  Jerk  Acceleration This behavior is corrected with firmware version V2.8.2.

Changing the override for synchronous "point-to-point" motions (sPTP motion) (S7-1500T) When changing the override, the path of the motion of the tool center point (TCP) of an sPTP motion can change. If the motion contour of the TCP is to be retained, the kinematics proceed with minimal change to the override. This behavior is corrected with firmware version V2.8.2.

User-defined transformation (S7-1500T)
You can configure and apply the user-defined transformation with multiple technology objects kinematics on a PLC.
To differentiate in MC-Transformation [OB98] between the different kinematics technology objects, use the input "KinematicsObject".

Job sequence of the kinematics technology object (S7-1500T)
The motion is not always prepared via all motion jobs in the job sequence.
The CPU determines the number of motion jobs to be considered depending on the type of motion jobs, e. g. sPTP motion, linear motion, circular motion, conveyor tracking.

Product Information on the SIMATIC Drive Controller

6

A5E48022408-AC, 07/2020

Using the Motion Control instruction "MC_TrackConveyorBelt" (S7-1500T)
The use of the Motion Control instruction "MC_TrackConveyorBelt" is possible as of firmware version V2.8.2.
If the Motion Control instruction "MC_TrackConveyorBelt" is called multiple times with an FB instance and with different input parameters, the parameter "Done" is occasionally not set to TRUE.
Use different instances for changing input parameters.
If you quickly order two "MC_TrackConveyorBelt" jobs on an FB instance in a row, the parameter "Done" is occasionally not set.
After a "MC_TrackConveyorBelt" job, wait at least two motion control application cycles until you order the next job.
Mode of operation of the conveyor tracking with firmware version V2.8.2 (S7-1500T)
Contrary to the documentation, the following behavior applies as of firmware version V2.8.2:  Dynamic adaptation cannot be used at any phase of the conveyor tracking.  A direct transition from one tracked OCS into another tracked OCS is not possible. First transmit an instruction in the
WCS or a non-tracked OCS to complete the process of the kinematics with the tracked OCS. When the instruction in the WCS or a non-tracked OCS is completed, the tracking of the OCS at the conveyor is automatically completed ("TrackingState" = 0).  To move the kinematics to the first position in the tracked OCS ("TrackingState" changes from 1 to 2) or to complete the process of the kinematics in the tracked OS ("TrackingState" changes from 3 to 4) use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute".  The instruction "MC_SetOCSFrame" can only be applied on an OCS with "TrackingState" = 0.  If a motion of the kinematics is completed in the tracked OCS through a motion job in the WCS or a non-tracked OCS, this is shown in the variable "TrackingState" = 4. When the motion job is completed, the "TrackingState" changes to 0 and the OCS is not included with the product position anymore.  An instruction "MC_GroupStop" completes the tracking of the OCS with "TrackingState" = 2 and 4.  The tracking of the OCS with conveyor motion is not recorded in the kinematics trace. The traversing of the TCP with the tracked OCS is recorded.  Permitted values for "InitialObjectPosition": ­ "InitialObjectPosition.x" <=> 0.0 ­ "InitialObjectPosition.y" = 0.0 ­ "InitialObjectPosition.z" = 0.0 ­ "InitialObjectPosition.a" = 0.0 ­ "InitialObjectPosition.b" = 0.0 ­ "InitialObjectPosition.c" = 0.0
Blending behavior
 Blending is possible for the following motions:
­ In a motion job for moving into the first position in the tracked OCS
­ In motions within the tracked OCS
­ From a motion job that exits tracking at the conveyor to the subsequent motion job, if the sequence of instructions in the job sequence is as follows: 1. Moving in a tracked OCS 2. Assigning other OCS to the product position of another conveyor 3. Exiting conveyor tracking by moving into a position in WCS or in a non-tracked OCS 4. Moving into a position in the newly tracked OCS The jobs 2, 3 and 4 must already be in the job sequence as long as job 1 is still being performed.
 Blending is not possible for the following motions:
­ In a motion job that completes the tracking at the conveyor
­ From a motion job for moving into the first position in the tracked OCS into the subsequent motion job in the tracked OCS

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

7

MC_TrackConveyorBelt V5: Function chart

Product Information on the SIMATIC Drive Controller

8

A5E48022408-AC, 07/2020

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

9

Section A
A "MC_MeasuringInput" job (A1) is used to record the position of a product at the time . The recorded position "MV" is
reported via "Done_1" and written into the variable "CONV_POS.x".
With a "MC_TrackConveyorBelt" job (A2), an OCS is assigned at the time  via the parameter "ConveyorBelt" to a leading-
value capable technology object, which represents the conveyor belt. The OCS is assigned to a known conveyor position to this purpose. The OCS is assigned with the OCS frame and the product position to a product on the conveyor.
The "ObjectPosition" is calculated from the conveyor position minus the "InitialObjectPosition". In the present case the
"InitialObjectPosition" is the position of the conveyor ("MV") at the time .
The status of conveyor tracking ("TrackingState") changes from 0 to 1.
Via a "MC_MoveLinearAbsolute" job at the time  the kinematics is moved to the position specified in the OCS. When the
kinematics moves to the product position, the status of conveyor tracking changes from 1 to 2. When the kinematics follow the product position, the status of conveyor tracking changes from 2 to 3.
Section B
To complete the process of the kinematics with the tracked OCS, a "MC_MoveLinearAbsolute" job is started in the WCS at
the time . When the kinematics moves to the position in WCS, the status of conveyor tracking changes from 3 to 4.
The completed conveyor tracking is reported via "Done_4" and the "TrackingState" changes to 0. The OCS is not tracked with the conveyor position anymore.

Technology alarm 802 (S7-1500T)

The technology alarm 802 has been extended with the following alarm texts:

Alarm no. and text

Solution

Calculation of the geometry element not possible. 8 Moving on the tracked OCS is not possible through the
command parameter assignment.
9 Moving of the kinematics on the tracked OCS cannot be completed through the command parameter assignment.
10 A change of the coordinate system is not possible at a moved OCS.
11 An sPTP motion is not possible with a moved OCS. 12 The active coordinate system cannot be changed with a
moved OCS.
13 The dynamic values are not correct.

· Use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute".
· At "MC_MoveCircularAbsolute" use the "CircMode" = 0.
· Switch off the dynamic adaptation.
· Use a route > 0 for the instructions. An orientation motion without kinematics motion is not possible.
· Use the instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute".
· At "MC_MoveCircularAbsolute" use the "CircMode" = 0.
· Switch off the dynamic adaptation.
· Use a route > 0 for the instructions. An orientation motion without kinematics motion is not possible.
It is not possible to automatically change with a motion command from one tracked OCS into another tracked OCS.
A "MC_MoveDirectRelative" or "MC_MoveDirectAbsolute" instruction cannot be used in a moved OCS.
The following instructions can only be performed with the status "TrackingState" = 0 or 1:
· "MC_DefineTool"
· "MC_SetTool"
· "MC_TrackConveyorBelt"
The instruction "MC_SetOCSFrame" can only be performed with the status "TrackingState" = 0.
Check the calculation of the speeds and accelerations in the user transformation in the MC-Transformation [OB98].

Product Information on the SIMATIC Drive Controller

10

A5E48022408-AC, 07/2020

Technology alarms 810 and 811 (S7-1500T)
Contrary to the documentation, bit 7 "ConveyorFault" (error in conveyor tracking) is set in <TO>.ErrorWord when alarms 810 and 811 are triggered.

Error detection (Kinematics) (S7-1500T)

The list of error messages has been extended with the following "ErrorIDs":

ErrorID

Description

Solution

16#80D7 16#80DA

The job on the kinematics transformation cannot be executed.
Invalid value parameter "InitialObjectPosition"

A "MC_KinematicsTransformation" or "MC_InverseKinematicsTransformation" instruction cannot perform a calculation, when the kinematics moves a tracked OCS or the moving of a tracked OCS is completed. Wait until the current job for the conveyor tracking has been completed and restart the job for the kinematics transformation.
Enter permissible values for the frame at the parameter "InitialObjectPosition".

Notes on English and Chinese documentation (S7-1500T)
Contrary to the documentation, the leading value during synchronization in advanced and subsynchronization via leading value distance must not reverse. This applies to gearing with "MC_GearInPos" and camming with "MC_CamIn".

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

11

Corrections to the SIMATIC Drive Controller documentation
Opening and closing the bottom cover SIMATIC Drive Controller equipment manual, edition 11/2019, section Front covers You use the "PUSH" button to open and close the bottom cover on the SIMATIC Drive Controller.



"PUSH" button

Interfaces on the underside of the device SIMATIC Drive Controller device manual, edition 11/2019, section View of the SIMATIC Drive Controller from below There is a DisplayPort interface (X140) and an X127 P1 interface sealed with a mechanical lock located on the underside of the SIMATIC Drive Controller.  The X140 interface is used exclusively for service purposes by Siemens and must not be used to connect a display.  The X127 P1 interface is not available for the SIMATIC Drive Controller.



X127, P1 sealed interface



X140: DisplayPort interface

USB interfaces (X125, X135) Equipment Manual and SIMATIC Drive Controller system manual, edition 11/2019 The two interfaces have no function; no connection permitted.

Product Information on the SIMATIC Drive Controller

12

A5E48022408-AC, 07/2020

Wiring and block diagram of onboard digital inputs/outputs
SIMATIC Drive Controller equipment manual, edition 11/2019, section Onboard digital inputs/digital outputs X122, X132 and X142
In the wiring and block diagram of the equipment manual, the connections at X142.3 to X142.8 are incorrectly shown one position above where they should be. Note the correct connections in the figure below:



Connection removes electrical isolation

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

13

Meaning of the RUN/STOP, ERROR and MAINT LEDs

SIMATIC Drive Controller equipment manual, edition 11/2019, section Status and error displays of the CPU

In contrast to the specifications in the manual, note the following meaning of the LEDs:

RUN/STOP LED

ERROR LED

MAINT LED

Meaning

LED lit yellow LED lit green
LED lit green LED flashes yellow

LED flashes red LED off
LED off LED off

LED off LED lit yellow
LED flashes yellow LED flashes yellow

Service data backup in STOP ended with error
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job Bad configuration
This condition, documented in the Equipment Manual, edition 11/2019, does not exist.

Standards, approvals, certificates
SIMATIC Drive Controller equipment manual, edition 11/2019, section Technical specifications
At the start of delivery, the specified standards, approvals and certificates might not be available in full. You can find more information on the current delivery state in the product notes on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/25714).

FUNCT button: Read service data
SIMATIC Drive Controller system manual, edition 11/2019, section Reading/saving service
Observe the changed content to point 4 and to the result as compared to the system manual:
Reading service data during SIMATIC Drive Controller startup
1. Switch the supply voltage off at the SIMATIC Drive Controller.
2. Press and hold down the FUNCT button.
3. Switch the supply voltage on at the SIMATIC Drive Controller.
4. To start the saving process, release the FUNCT button as soon as the 7-segment displays flashes at least once (approx. 1 to 2 seconds after POWER ON). The save process only begins after about 45 seconds and is indicated by a yellow flashing RUN/STOP LED. The ERROR and MAINT LEDs are off. As the save process progresses, the 7-segment display shows "d" (DUMP) and the ACT LED flickers. After completion of the save process, the 7-segment display shows "0".
Result: The CPU writes the service data to the DUMP.S7S directory on the SIMATIC Memory Card. If an error occurs during saving, the RUN/STOP LED flashes yellow (for STOP) or green (for RUN) depending on the previous operating state and the ERROR LED flashes red. In the event of an error, the text file in the DUMP.S7S folder contains information about the error that has occurred.

Supported licensed SINAMICS functions
SIMATIC Drive Controller system manual, edition 11/2019, section SINAMICS Integrated functions
Licensed function SINAMICS Technology Extension RAILCTRL - Rail Control/Multi-Carrier-System:
 In contrast to the information given in the system manual, the license for SINAMICS Integrated is not yet supported, but is in preparation.

Spare parts SIMATIC Drive Controller system manual, edition 11/2019, section Accessories/spare parts The spare parts "top cover" and "bottom cover" are in preparation.

Product Information on the SIMATIC Drive Controller

14

A5E48022408-AC, 07/2020

Connecting the power supply SIMATIC Drive Controller System Manual, edition 11/2019, power supply section The current consumption of the SIMATIC Drive Controller is:  Without supply to interfaces and I/Os: Maximum 1.7 A  With supply to interfaces and I/Os: Maximum 13.1 A
Connection of an external 24 V DC power supply Equipment Manual and SIMATIC Drive Controller system manual, edition 11/2019, Supply voltage X124 section Please note the changed information on the tripping time of the back-up fuse: When an external 24 V DC power supply is connected, it must comply with the requirements for protective extra-low voltage (PELV) according to UL 61010. A backup fuse that reliably trips within 120 milliseconds in the event of a short-circuit at an ambient temperature of 0 °C must also be available.
Connecting the power supply SIMATIC Drive Controller system manual, edition 11/2019, section Connecting the power supply The following special requirements apply to the connecting cables:  The 24 V DC line must be approved for temperatures up to at least 75 °C.  Select the permissible conductor cross-section according to the national regulations (NEC, VDE, etc.). The basis for this
can be the output current of the 24 V DC supply or the overcurrent protection device used in the 24 V circuit. If the shortcircuit current of the utilized 24 V power supply unit is greater than 50 A, an appropriate overcurrent protection device that limits the short-circuit current to this value must be used upstream of the product.  The protective conductor connection must be designed with a minimum cross-section in accordance with EN 60204-1.  Strip 7 mm from the cables for the connection to the 24 V DC connector.  Adhere to the permissible bending radius of the cables.  Lay all cables in such a way that no cables are crushed.  Lay all cables so that they do not touch any abrasive edges.
Note If power supplies with primary side supplies up to 600 V AC (voltage conductor to neutral conductor) are to be used, the transient voltages on the primary side of the power supply must be limited to 4000 V. Only connect the device to a 24 V DC power supply that meets the requirements of a safe extra-low voltage (PELV) according to UL 61010.
Power supply for X142 digital inputs/outputs If you use the X142 digital inputs/outputs partly as inputs and partly as outputs (mixed operations), you need to supply the digital inputs over the same power supply as the SIMATIC Drive Controller (X142 digital inputs and X124 module supply). This restriction does not apply if you operate the X142 digital inputs/outputs exclusively as inputs or as outputs. The X122/X132 digital inputs/outputs are not affected by this restriction.
Disconnection of 24 V plug-in connections during operation Note the safety information for use of the SIMATIC Drive Controller:
WARNING Personal injury and damage to property can occur Personal injury and property damage can occur if 24 V plug-in connections are disconnected during operation. Disconnection of 24 V plug-in connections is only permitted when the power is off.

Product Information on the SIMATIC Drive Controller

A5E48022408-AC, 07/2020

15

Mixed operation of vector control and U/f control In mixed operation of vector control and U/f control, the following axis constellations and current controller cycle times are not possible:  1 axis (vector control, 250 s) and 8 axes (U/f control, 500 s)  2 axes (vector control, 250 s) and 4 axes (U/f control, 500 s)
China RoHS The SIMATIC Drive Controllers comply with the China RoHS directive. Additional information can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109775373).
Classification of the mechanical environment SIMATIC Drive Controller system manual, edition 11/2019, section Mechanical and climatic environmental conditions Classification of the mechanical environment: Class 3M1 in accordance with EN 60721-3-3
Product information on the SIMATIC Drive Controller This product information contains changes and supplements to the documentation of the SIMATIC Drive Controller. It takes precedence over our system manuals, function manuals and equipment manuals. You might find an updated product information on the SIMATIC Drive Controller on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109772684)

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY
Product Information on the SIMATIC Drive Controller
1A56E48022408-AC, 07/2020

Product Information on the SIMATIC Drive Controller A5E48022408-AC, 07/2020

S7-1500R/H redundant system

SIMATIC S7-1500 S7-1500R/H redundant system
System Manual

Preface

S7-1500R/H Documentation Guide

1

New properties/functions

2

System overview

3

Application planning

4

Installation

5

Wiring

6

Configuration

7

Basics of program execution

8

Protection

9

Commissioning

10

Display

11

Maintenance

12

Test and service functions

13

Technical specifications

14

Dimension drawings

A

Accessories/spare parts

B

Safety symbols

C

11/2019
A5E41814787-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E41814787-AB  01/2020 Subject to change

Copyright © Siemens AG 2018 - 2019. All rights reserved

Preface

Purpose of the documentation
This documentation provides important information on the following aspects of the S7-1500R/H redundant system:  An overview of the redundant system  Configuration and failure scenarios  How to install, wire and commission the redundant system  Information on maintenance and fault correction

Basic knowledge required
General knowledge in the field of automation engineering is required to understand this documentation.

Validity of the documentation
This documentation applies to all products of the SIMATIC S7-1500R/H redundant system.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also see the notes indicated as follows:
Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

S7-1500R/H redundant system

4

System Manual, 11/2019, A5E41814787-AB

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

5

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500R/H Documentation Guide ....................................................................................................... 11

2 New properties/functions....................................................................................................................... 13

3 System overview................................................................................................................................... 15

3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5

What is the S7-1500R/H redundant system? ........................................................................ 15 Areas of application ............................................................................................................... 15 Operating principle of the S7-1500R/H redundant system .................................................... 20 Plant components and automation levels .............................................................................. 26 Scalability ............................................................................................................................... 27 Overview of features .............................................................................................................. 30

3.2 3.2.1 3.2.2 3.2.3

Configuration.......................................................................................................................... 31 Structure of the S7-1500R redundant system ....................................................................... 31 Structure of the S7-1500H redundant system ....................................................................... 32 Components........................................................................................................................... 34

3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6

S7-1500 R/H-CPUs................................................................................................................ 36 Overview of the CPU technical specifications ....................................................................... 37 Redundancy ........................................................................................................................... 38 Security .................................................................................................................................. 44 Diagnostics............................................................................................................................. 45 Trace ...................................................................................................................................... 47 PID control ............................................................................................................................. 49

3.4 3.4.1 3.4.2 3.4.3

Communication ...................................................................................................................... 52 System and device IP addresses........................................................................................... 52 Integrated interfaces for communication................................................................................ 54 HMI devices ........................................................................................................................... 54

3.5

Power supply.......................................................................................................................... 55

3.6 3.6.1 3.6.2 3.6.3

Software ................................................................................................................................. 56 TIA Portal ............................................................................................................................... 56 SINETPLAN ........................................................................................................................... 57 PRONETA.............................................................................................................................. 57

4 Application planning.............................................................................................................................. 58

4.1

Requirements......................................................................................................................... 58

4.2

Restrictions compared to the S7-1500 automation system ................................................... 60

4.3 4.3.1 4.3.2

Configuration versions ........................................................................................................... 62 S7-1500R/H configuration with IO devices in the PROFINET ring........................................ 62 S7-1500R/H configuration with switches and linear topology................................................ 64

S7-1500R/H redundant system

6

System Manual, 11/2019, A5E41814787-AB

Table of contents

4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.5.1 4.4.5.2 4.4.5.3
4.4.5.4

Redundancy scenarios ...........................................................................................................67 Introduction .............................................................................................................................67 Failure of the primary CPU .....................................................................................................68 Failure of the backup CPU......................................................................................................70 Failure of the PROFINET cable in the PROFINET ring..........................................................71 Specific redundancy scenarios for S7-1500H ........................................................................73 Failure of a redundancy connection in S7-1500H ..................................................................73 Failure of both redundancy connections in S7-1500H > 1500 ms apart ................................75 Failure of both redundancy connections and the PROFINET cable in the PROFINET ring ..........................................................................................................................................77 Failure of the two PROFINET cables in the PROFINET ring on the backup CPU .................79

4.5 4.5.1 4.5.2 4.5.3 4.5.3.1 4.5.3.2 4.5.3.3 4.5.4 4.5.4.1 4.5.4.2 4.5.4.3

Failure scenarios.....................................................................................................................81 Failure of an IO device in the PROFINET ring .......................................................................82 Failure of a switch (with line topology) in the PROFINET ring................................................83 Specific failure scenarios with S7-1500R ...............................................................................85 Two cable interruptions in the PROFINET ring in S7-1500R > 1500 ms apart ......................85 Two cable interruptions in the PROFINET ring in S7-1500R within  1500 ms .....................87 Failure of the primary CPU when IO devices have failed in the PROFINET ring...................89 Specific failure scenarios with S7-1500H ...............................................................................92 Failure of both redundancy connections in S7-1500H  1500 ms apart ................................92 Failure of one redundancy connection and the primary CPU in S7-1500H............................94 Failure of the two PROFINET cables in the PROFINET ring at the primary CPU..................96

4.6

Hardware configuration...........................................................................................................98

4.7

Using HMI devices ..................................................................................................................99

5 Installation .......................................................................................................................................... 102

5.1

Basics.................................................................................................................................... 102

5.2

Installing the mounting rail ....................................................................................................104

5.3

Installing the standard rail adapter........................................................................................108

5.4

Installing a load current supply .............................................................................................114

5.5

Installing R/H-CPUs ..............................................................................................................115

6 Wiring ................................................................................................................................................. 117

6.1

Rules and regulations for operation......................................................................................117

6.2

Operation on grounded infeed ..............................................................................................119

6.3

Electrical configuration..........................................................................................................122

6.4

Wiring rules ...........................................................................................................................123

6.5

Connecting the supply voltage..............................................................................................124

6.6

Connecting the load current supply ......................................................................................125

6.7

Connecting the CPU to the load power supply .....................................................................127

6.8 6.8.1

Connecting interfaces for communication with S7-1500R....................................................129 Connecting the PROFINET ring to S7-1500.........................................................................129

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

7

Table of contents

6.9 6.9.1 6.9.1.1 6.9.1.2 6.9.1.3 6.9.1.4 6.9.2

Connecting interfaces for communication with S7-1500H ................................................... 132 Connecting redundancy connections (fiber-optic cables) .................................................... 132 Synchronization modules for S7-1500H .............................................................................. 132 Selecting fiber-optic cables .................................................................................................. 133 Installing fiber-optic cables................................................................................................... 137 Connecting redundancy connections (fiber-optic cables) to S7-1500H............................... 139 Connecting the PROFINET ring to S7-1500H ..................................................................... 143

7 Configuration .......................................................................................................................................145

7.1

Configuring the CPU ............................................................................................................ 145

7.2

Configuration procedure ...................................................................................................... 145

7.3

Project tree ........................................................................................................................... 152

7.4

Parameters........................................................................................................................... 153

7.5 7.5.1 7.5.2

Process images and process image partitions .................................................................... 153 Process image - overview .................................................................................................... 153 Updating process image partitions in the user program ...................................................... 154

8 Basics of program execution ................................................................................................................156

8.1

Programming the S7-1500R/H............................................................................................. 156

8.2

Restrictions .......................................................................................................................... 157

8.3

Events and OBs ................................................................................................................... 160

8.4 8.4.1 8.4.2

Special instructions for S7-1500R/H redundant systems .................................................... 165 Disabling/enabling SYNCUP with the RH_CTRL instruction ............................................... 165 Determining the primary CPU with "RH_GetPrimaryID" ...................................................... 168

8.5

Asynchronous instructions ................................................................................................... 169

9 Protection ............................................................................................................................................176

9.1

Overview of the protection functions.................................................................................... 176

9.2

Configuring access protection for the CPU.......................................................................... 176

9.3

Using the display to set additional password protection ...................................................... 179

9.4

Using the user program to set additional access protection ................................................ 180

9.5

Know-how protection ........................................................................................................... 180

9.6

Protection by locking the CPU ............................................................................................. 184

10 Commissioning ....................................................................................................................................185

10.1

Overview .............................................................................................................................. 185

10.2

Check before powering on for the first time ......................................................................... 186

10.3 10.3.1 10.3.2 10.3.3 10.3.4 10.3.5

Commissioning procedure ................................................................................................... 187 Removing/plugging in SIMATIC memory cards ................................................................... 188 First power-on of the CPUs.................................................................................................. 190 CPU pairing.......................................................................................................................... 191 Redundancy IDs................................................................................................................... 193 Downloading projects to the CPUs ...................................................................................... 197

S7-1500R/H redundant system

8

System Manual, 11/2019, A5E41814787-AB

Table of contents

10.4 10.4.1 10.4.2 10.4.3 10.4.4 10.4.5 10.4.6 10.4.7 10.4.8 10.4.9

Operating and system states ................................................................................................205 Overview ...............................................................................................................................205 STARTUP operating state ....................................................................................................208 STOP operating state ...........................................................................................................211 SYNCUP operating state ......................................................................................................211 RUN operating states............................................................................................................212 SYNCUP system state..........................................................................................................213 System and operating state transitions.................................................................................225 Loss of redundancy...............................................................................................................235 Displaying and changing the system state ...........................................................................238

10.5 10.5.1 10.5.2

CPU memory reset ...............................................................................................................241 Automatic memory reset .......................................................................................................242 Manual memory reset ...........................................................................................................243

10.6

Backing up and restoring the CPU configuration..................................................................244

10.7 10.7.1

Time synchronization ............................................................................................................248 Example: Configuring the NTP server ..................................................................................249

10.8 10.8.1 10.8.2 10.8.3

Identification and maintenance data .....................................................................................251 Reading out and entering I&M data ......................................................................................251 Record structure for I&M data...............................................................................................253 Example: Read out firmware version of the CPU with Get_IM_Data ...................................255

11 Display................................................................................................................................................ 258

11.1

CPU display ..........................................................................................................................258

12 Maintenance ....................................................................................................................................... 266

12.1 12.1.1 12.1.2 12.1.3 12.1.3.1 12.1.3.2 12.1.3.3 12.1.3.4 12.1.4 12.1.5 12.1.6 12.1.7

Replacing components of the S7-1500R/H redundant system ............................................266 Checking before replacing components ...............................................................................266 Replacing defective R/H-CPUs.............................................................................................269 Replacing defective redundancy connections ......................................................................270 Replacing two defective PROFINET cables with S7-1500R ................................................270 Replacing a defective redundancy connection with S7-1500H ............................................272 Replacing defective synchronization module with S7-1500H...............................................272 Replacing both defective redundancy connections with S7-1500H .....................................273 Replacing defective PROFINET cables................................................................................274 Replacing a defective SIMATIC memory card......................................................................274 Replace defective load current supply PM ...........................................................................275 Replacing defective IO devices/switches..............................................................................276

12.2

Replacing the front cover ......................................................................................................278

12.3

Replacing the coding element at the power connector of the load current supply ...............279

12.4

Firmware update ...................................................................................................................281

12.5

Resetting CPUs to factory settings .......................................................................................286

12.6

Maintenance and repair ........................................................................................................289

13 Test and service functions................................................................................................................... 290

13.1

Test functions........................................................................................................................290

13.2

Reading out/saving service data...........................................................................................296

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

9

Table of contents

14 Technical specifications .......................................................................................................................298

14.1

Standards and Approvals..................................................................................................... 298

14.2

Electromagnetic compatibility .............................................................................................. 303

14.3

Shipping and storage conditions.......................................................................................... 306

14.4

Mechanical and climatic ambient conditions........................................................................ 306

14.5

Information on insulation tests, protection class, degree of protection and rated voltage... 310

14.6

Use of S7-1500R/H in Zone 2 hazardous area.................................................................... 311

A Dimension drawings.............................................................................................................................312

B Accessories/spare parts.......................................................................................................................315

C Safety symbols ....................................................................................................................................317

C.1

Safety-related symbols for devices without Ex protection ................................................... 317

C.2

Safety-related symbols for devices with Ex protection ........................................................ 318

Glossary ..............................................................................................................................................320

Index ...................................................................................................................................................334

S7-1500R/H redundant system

10

System Manual, 11/2019, A5E41814787-AB

S7-1500R/H Documentation Guide

1

The documentation for the redundant S7-1500R/H system is divided into three areas. This division enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the redundant S7-1500R/H system. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the redundant S7-1500R/H system, e.g. diagnostics, communication.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

11

S7-1500R/H Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the redundant S7-1500R/H system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500R/H redundant system

12

System Manual, 11/2019, A5E41814787-AB

New properties/functions

2

What's new in the Redundant System S7-1500R/H System Manual, issue 11/2019 compared to issue 10/2018

What's new?
New con- Switched S1 device tents
Standard rail adapter
Testing with breakpoints

What are the customer benefits?

Where can I find the information?

The "Switched S1 device" function of the

Section Redundancy (Page 38)

CPU enables operation of standard IO devic-

es in the S7-1500R/H redundant system.

You mount the R/H CPUs on a standardized Sec. Installing the standard rail 35 mm rail using the standard rail adapter. adapter (Page 108)

When testing with breakpoints, you run a program from breakpoint to breakpoint in the STARTUP (startup OB) or RUN-Solo system state. Testing with breakpoints provides you with the following advantages:

Section Test functions (Page 290)

· Testing SCL and STL program code with the help of breakpoints

· Localization of logic errors step by step

· Simple and quick analysis of complex programs prior to actual commissioning

· Recording of current values within individual executed loops

· Using breakpoints for program validation is also possible in SCL or STL networks within LAD/FBD blocks.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

13

New properties/functions

What's new? PID controller

What are the customer benefits?

Where can I find the information?

PID controllers are built into all R/H-CPUs as standard. PID controllers measure the actual value of a physical variable, for example, temperature or pressure, and compare the actual value with the setpoint. Based on the resulting error signal, the controller calculates a manipulated variable that causes the process value to reach the setpoint as quickly and stably as possible.

Sec. PID control (Page 49)

The PID controllers offer you the following advantages:

· Simple configuration and programming through integrated editors and blocks.

· Simple simulation, visualization, commissioning and operation via PG and HMI.

· Automatic calculation of the control parameters and tuning during operation.

· No additional hardware and software required.

Changed contents

Download modified user program in RUN-Redundant system state
Backing up the configuration of the S7-1500R/H redundant system in runtime

You can download a modified user program into the R/H CPUs in the RUN-Redundant system state.

Sec. Downloading projects to the CPUs (Page 197)

Advantage: The redundant system will remain in the RUN-Redundant system state during changes to the user program. The system state is not changed after RUN-Solo or SYNCUP.

You do not have to interrupt the process during a backup while the plant is running. Uninterrupted plant operation avoids high restart and material costs.

Section Backing up and restoring the CPU configuration (Page 244)

Alarms in the user program

Messages enable you to display events from process execution in the S7-1500R/H redundant system and to quickly identify, accurately locate, and correct errors.

Function manual Diagnostics (https://support.industry.sieme ns.com/cs/ww/en/view/591929 26)

S7-1500R/H redundant system

14

System Manual, 11/2019, A5E41814787-AB

System overview

3

3.1

What is the S7-1500R/H redundant system?

S7-1500R/H redundant system
For the S7-1500R/H redundant system, the CPUs are duplicated, in other words redundant. The two CPUs process the same project data and the same user program in parallel. The two CPUs are synchronized over two redundancy connections. If one CPU fails, the other CPU maintains control of the process.

Aims of using redundant automation systems
Redundant automation systems are used in practice to achieve greater availability or failsafety.
 Purpose of fault-tolerant systems: to reduce the probability of production downtime by operating two systems in parallel.
 Purpose of fail-safe systems: to protect life, the environment and capital with safe shutdown to a secure state.

WARNING
Please note the difference between fault-tolerant and fail-safe systems.
S7-1500R/H is a fault-tolerant automation system, but not a fail-safe system. The S71500R/H system must not be used to control safety-critical processes.

3.1.1

Areas of application

Objective

The S7-1500R/H redundant system offers a high degree of reliability and system availability. A redundant configuration of the most important automation components reduces the probability of production downtimes and the consequences of component errors.
The higher the risks and costs of a production downtime, the more worthwhile the use of a redundant system. You can compensate for the generally higher investment costs by avoiding production downtimes.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

15

System overview 3.1 What is the S7-1500R/H redundant system?
Use
In redundantly operated systems, failure or malfunction of individual automation components must not impede the operation of the plant. S7-1500R/H redundant systems are used in the following areas, for example:  Tunnels  Airports (for example baggage conveyors)  Subways  Shipbuilding  Wastewater treatment plants  High-bay warehouse
Example 1: Avoiding downtimes
Automation task An automation solution is required for a road tunnel to:  Control the lighting in the tunnel  Control the ventilation in the tunnel in line with the concentration of pollutants in the tunnel
Feature Uninterrupted operation of the ventilation system is required to keep the concentration of pollutants below a set level. Constant availability must be ensured for the event that individual automation components fail, for example because of a fire in the tunnel.
Solution Three fans (M) ventilate the tunnel. The automation solution controls the fan speeds in line with the measured pollutant concentration. Three sensors in the tunnel measure the pollutant levels in the air. The S7-1500H redundant system with two redundant CPUs is used to ensure fan availability. As well as controlling the fans, the S7-1500H redundant system also controls the illumination and the traffic lights.

Figure 3-1 Example: Tunnel automation 16

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?
Benefits The user program for controlling the fans runs on both CPUs in the S7-1500H redundant system. You can position the two CPUs up to 10 kilometers apart. If one CPU or one redundancy connection fails due to a local incident, the incident does not affect the controlled process. The fans continue to operate. You can find a detailed description of tunnel automation with S7-1500H in Getting started (https://support.industry.siemens.com/cs/ww/en/view/109757712) Redundant system S7-1500R/H.
Example 2: Avoiding high system restart costs as a result of data loss
Automation task A logistics company needs a matching automation solution for controlling the storage and retrieval unit in a high-bay warehouse.
Feature The failure of a controller would have serious consequences. After the system restart, you would have to reposition the storage and retrieval units and record the content of the containers again. The automation solution must ensure that no data is lost if a CPU fails and that the warehouse can continue to operate.
Solution To store goods in and retrieve them from the bays, the storage and retrieval unit moves along an X, Y and Z axis. If the process is interrupted, data can be lost and the location of the goods is not known. To guard against the loss of data, the storage and retrieval unit is controlled by the S7-1500R redundant system.

Figure 3-2 Example: High-bay warehouse

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

17

System overview 3.1 What is the S7-1500R/H redundant system?
Benefits If one CPU fails, the second CPU maintains control of the process. The project data and the user program are saved redundantly and are not lost if a CPU fails. Once you have replaced the defective CPU and switched it to RUN, the redundant system automatically synchronizes the project data with the user program in the new CPU. The solution saves you service time and downtime costs for the warehouse.
Example 3: Avoiding equipment and material damage
Automation task A steel works needs a matching automation solution to control a blast furnace for the steel production.
Feature Failures, especially in the process industry, can result in damages to the system, workpieces or material. In a steelworks, there is a danger of the pig iron cooling if the process is interrupted. The pig iron then cannot be used for the production of steel. The automation solution must ensure that the plant continues to run if a CPU fails and that the material is not damaged.

S7-1500R/H redundant system

18

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?
Solution The S7-1500R redundant system controls the blast furnace. The distributed automation components of the redundant system control the temperature, volume and pressure parameters.

Figure 3-3 Example: Blast furnace
Benefits
The S7-1500R redundant system compensates for the possible failure of a CPU or redundant connection. You do not have to interrupt the smelting process when replacing a CPU while the plant is running. Uninterrupted plant operation avoids high restart and material costs.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

19

System overview 3.1 What is the S7-1500R/H redundant system?

3.1.2

Operating principle of the S7-1500R/H redundant system

Introduction

S7-1500R/H redundant systems tolerate the failure of one of the two CPUs or an interruption in the PROFINET ring. The S7-1500R and S7-1500H systems differ in structure, configuration limits and performance.
Note Each PROFINET ring may only contain one R-system or one H-system at a time. A combined setup with one R-system and one H-system in the same PROFINET ring is not supported.

S7-1500 design and operating principle
The figure below shows the typical structure of the S7-1500R redundant system.

 CPU 1515R-2 PN  PROFINET cable (redundancy connections, PROFINET ring)  IO device  Switch
Figure 3-4 Structure of an S7-1500R redundant system

S7-1500R/H redundant system

20

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?
The S7-1500R redundant system consists of:
 Two S7-1500R CPUs   A PROFINET ring with the Media Redundancy Protocol   IO devices   Possibly switches 
A PROFINET ring is required for the S7-1500R redundant system. The two CPUs must be directly connected to each other with a PROFINET cable. All nodes can still communicate with each other in the event of an interruption in the ring. All PROFINET devices in the PROFINET ring must support media redundancy (MRP).
You can decouple further devices from the PROFINET ring via a  switch, e.g.:
 PROFINET devices with one port
 Non MRP-capable PROFINET devices
 PROFINET devices that do not support H-Sync Forwarding, such as standard IO devices
The redundancy connections in an S7-1500R system are the PROFINET ring with MRP .
One of the two CPUs in the redundant system takes on the role of primary CPU. The other CPU takes on the role of the following CPU (backup CPU). The role of the CPUs can change during operation. Synchronization of primary and backup CPU ensures rapid switchover between CPUs in the event of a failure of the primary CPU. If the primary CPU fails, the backup CPU takes over control of the process as the new primary CPU.
The redundancy connections use part of the bandwidth on the PROFINET cable for the synchronization of the R-CPUs. This bandwidth is therefore not available for PROFINET IO communication.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

21

System overview 3.1 What is the S7-1500R/H redundant system?
S7-1500H structure and operating principle
The figure below shows the typical structure of the S7-1500H redundant system.

 CPU 1517H-3 PN  PROFINET cable (PROFINET ring)  Redundancy connections (fiber-optic cables)  IO device  Switch
Figure 3-5 Structure of an S7-1500H redundant system
The S7-1500H redundant system consists of:
 Two CPUs S7-1500H 
 A PROFINET ring with the Media Redundancy Protocol 
 Two redundancy connections 
 IO devices 
 Possibly switches 
As with S7-1500R, the S7-1500H redundant system requires a PROFINET ring  closed by
the CPUs. All nodes can still communicate with each other in the event of an interruption in the ring. All PROFINET devices in the PROFINET ring must support media redundancy (MRP).

S7-1500R/H redundant system

22

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?
You can decouple further devices from the ring via a  switch, e.g.:
 PROFINET devices with one port
 Non MRP-capable PROFINET devices, such as standard IO devices
Unlike in S7-1500R, the PROFINET ring and redundancy connections in S7-1500H are
separate. The two redundancy connections are fiber-optic cables  that connect the CPUs
directly over synchronization modules.
One of the two CPUs in the redundant system takes on the role of primary CPU. The other CPU takes on the role of the following CPU (backup CPU). The role of the CPUs can change during operation.
Synchronization of primary and backup CPU ensures rapid switchover between CPUs in the event of a failure of the primary CPU. If the primary CPU fails, the backup CPU takes over control of the process as the new primary CPU.
The synchronization of the H-CPUs does not affect the bandwidth on the PROFINET.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

23

System overview 3.1 What is the S7-1500R/H redundant system?

Differences between S7-1500R and S7-1500H

Table 3- 1 S7-1500R and S7-1500H system differences

S7-1500R

S7-1500H

CPU 1513R-1 PN

CPU 1517H-3 PN

Performance

CPU 1515R-2 PN

· Transfer rate of 100 Mbps (for synchronization · Significantly greater performance than

and communication)

S7-1500R due to:

· Data work-memory: ­ CPU 1513R-1 PN: max. 1.5 MB ­ CPU 1515R-2 PN: max. 3 MB
· Code work-memory: ­ CPU 1513R-1 PN: max. 300 KB ­ CPU 1515R-2 PN: max. 500 KB

­ Separate redundancy connections over fiber-optic cable
­ High computing power · transfer rate of 1 Gbps (for synchronization) · Data work-memory: max. 8 MB · Code work-memory: max. 2 MB

Hardware

· The CPUs are identical in design with the

· The CPUs each have 2 optical interfaces.

respective S7-1500 standard versions.

· Synchronization of the CPUs runs separately

· Synchronization of the CPUs takes place over from the PROFINET ring over fiber-optic ca-

the PROFINET ring.

bles.

· When you use PROFINET devices with more · The full bandwidth of the PROFINET cable is

than two ports (e.g. switch) in the PROFINET

available for PROFINET IO communication.

ring of an R-system, then H-Sync Forwarding

is mandatory for these devices.

· H-Sync Forwarding is recommended for all devices in the PROFINET ring if you are using PROFINET devices with only 2 ports in the PROFINET ring of an R-system.
· Part of the bandwidth on the PROFINET cable is required for synchronization of the CPUs. Less bandwidth is therefore available for PROFINET IO communication.

Range

· Distance between the two R-CPUs:
­ Max. 100 m without media converter ­ Several kilometers with media converter
(depends on the media converter used)

· Distance between the two H-CPUs:
­ Maximum of 10 km (depends on the synchronization modules used)

Configuration limits · ·

In the PROFINET ring: Max. 50 PROFINET devices, including R-CPUs (max. 16 PROFINET devices recommended)
In the PROFINET ring and separated with switches (line): Max. 66 PROFINET devices (including R-CPUs)

· In the PROFINET ring: Max. 50 PROFINET devices (including H-CPUs)
· In the PROFINET ring and separated with switches (line): Max. 258 PROFINET devices (including H-CPUs)

S7-1500R/H redundant system

24

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?

Comparison of S7-1500 standard system and S7-1500R/H
The table below sets out the key features of comparable CPUs of the S7-1500 automation system and of the S7-1500R/H redundant system.

Table 3- 2 S7-1500 and S7-1500R/H comparison

S7-1500

S7-1500R/H

Support for central I/O Configuration control Web server CPU redundancy System redundancy S2 S1 device Isochronous mode Shared Device IRT MRP MRPD OPC UA Motion Control PID control Security Integrated Protection function: Copy protection Safety mode 2) Integrated system diagnostics

CPU 1513-1 PN CPU 1515-2 PN CPU 1517-3 PN/DP
   ----           --

CPU 1513F-1 PN CPU 1515F-1 PN CPU 1517F-3 PN/DP
   ----            

CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN
------   1) ------ ------  ----

1) As switched S1 device 2) For personal, environmental or investment protection, you will need fail-safe automation systems (F-systems).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

25

System overview 3.1 What is the S7-1500R/H redundant system?

3.1.3

Plant components and automation levels

Plant components and automation levels
The schematic diagram below shows the key components of the redundant system from the management level to the control level and the field level.

Figure 3-6 Possible configuration at the management, control and field level using the example of S7-1500R
From the management level, the master PC accesses the various devices at the control and field level. The master PC is connected to the CPUs over Industrial Ethernet.
The R-CPUs at the control level are redundant in design. The IO devices at the field level are connected to the R-CPUs within a PROFINET ring.
The redundant S7-1500R system cyclically exchanges IO data with another PROFINET IO system via a PN/PN coupler. The left-hand side of the PN/PN coupler is assigned to the S7-1500R redundant system. The right-hand side of the PN/PN coupler is assigned to the CPU 1516-3 PN/DP (IO controller).
The configuration tolerates the failure of one CPU or an interruption in the PROFINET ring. The primary CPU and the backup CPU execute the user program in parallel. If one CPU fails, the second CPU maintains control of the process.
If the PROFINET ring is interrupted, for example as a result of a cable break or an IO device failure, redundancy in the ring is lost. However, the IO devices that have not failed continue to operate and can be accessed.

S7-1500R/H redundant system

26

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?

3.1.4

Scalability

Introduction

Redundant systems are more cost-intensive to use than non-redundant systems:  There are two CPUs.  The physical connections (PROFINET ring and redundancy connections) can be required
over large distances. The S7-1500R/H redundant system is scalable. This means that the S7-1500R and S7-1500H systems have the same functional scope, but differ in terms of:  Performance  Hardware  Range  Configuration limits  Costs

S7-1500R

You connect the CPUs to the Industrial Ethernet over X2 PROFINET interfaces of CPUs S7-1515R-2 PN or using an additional switch.
S7-1500R supports the following number of PROFINET devices (switches, S7-1500R/H CPUs, S7-1500 CPUs (V2.5 or later), HMI devices, and IO devices such as ET 200MP and ET 200SP):
 In the PROFINET ring: max. 50 (recommended: max. 16)
 In the PROFINET ring and separated with switches (line): max. 66
Note Recommendation for S7-1500R: Operate a maximum of 16 PROFINET devices (including R-CPUs) in the PROFINET ring.
The number of devices in the PROFINET ring affects the availability of the S7-1500R system. You should therefore operate no more than 16 PROFINET devices (including RCPUs) in the PROFINET ring. Operating significantly more devices in the PROFINET ring will reduce the availability of the IO devices and the R-CPUs.
The technical specifications in the documentation are based on the recommended maximum of 16 PROFINET devices in the ring in S7-1500R.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

27

System overview 3.1 What is the S7-1500R/H redundant system?
The redundancy connections in S7-1500R are the PROFINET ring with MRP. The CPUs are synchronized over the PROFINET ring.

 Load current supply (optional)  CPU S7-1515R-2 PN  PROFINET cable (redundancy connections, PROFINET ring)  IO device in the PROFINET ring  Switch  IO device outside the PROFINET ring (separated with a switch)
Figure 3-7 S7-1500R configuration variant

S7-1500H

You connect the CPUs to the Industrial Ethernet over a PROFINET interface or using an additional switch.
S7-1500H supports the following number of PROFINET devices (switches, S7-1500R/H CPUs, S7-1500 CPUs (V2.5 or later) and HMI devices):
 In the PROFINET ring: max. 50
 In the PROFINET ring and separated with switches (line): max. 258

S7-1500R/H redundant system

28

System Manual, 11/2019, A5E41814787-AB

System overview 3.1 What is the S7-1500R/H redundant system?
The redundancy connections in S7-1500H are two duplex fiber-optic cables that connect the CPUs directly with plug-in synchronization modules.

 Load current supply (optional)  CPU 1517H-3 PN  PROFINET cable (PROFINET ring)  Redundancy connections (2 duplex fiber-optic cables)  IO device in the PROFINET ring  Switch  IO device outside the PROFINET ring (separated with switch)
Figure 3-8 S7-1500H configuration variant

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

29

System overview 3.1 What is the S7-1500R/H redundant system?

3.1.5

Overview of features
The S7-1500R/H redundant system meets all the requirements for a fault-tolerant system. The figure below sets out the main features.

Figure 3-9 S7-1500R/H features

S7-1500R/H redundant system

30

System Manual, 11/2019, A5E41814787-AB

3.2

Configuration

System overview 3.2 Configuration

3.2.1

Structure of the S7-1500R redundant system

Configuration

The S7-1500R redundant system comprises the following components:
 Two R-CPUs
 Two SIMATIC memory cards
 PROFINET cable (redundancy connections, PROFINET ring)
 IO devices
 Load current supply (optional)
The redundant system S7-1500R can be mounted on a common mounting rail or spatially separated on 2 separate mounting rails. Connecting the PROFINET cable to the PROFINET interfaces X1 P2 R of the CPUs directly connects the two CPUs. You set up the PROFINET ring from the first CPU to the IO devices and the second CPU with the PROFINET interfaces X1 P1 R of the CPUs.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

31

System overview 3.2 Configuration
Configuration example

 Optional load current supply  CPU  Mounting rail with integrated DIN rail profile  PROFINET cable (redundancy connections, PROFINET ring)
Figure 3-10 S7-1500R configuration example

3.2.2

Structure of the S7-1500H redundant system

Configuration

The S7-1500H redundant system comprises the following components:
 Two H-CPUs
 Two SIMATIC memory cards
 Four synchronization modules (two synchronization modules in each H-CPU)
 Two redundancy connections (two duplex fiber-optic cables)
 IO devices
 Load current supply (optional)
The S7-1500H redundant system should be installed either on one shared mounting rail or on two separate mounting rails. You connect the two CPUs with fiber-optic cables to two synchronization modules in each CPU. You set up the PROFINET ring with the PROFINET interfaces X1 P1 R and X1 P2 R of the CPUs.

S7-1500R/H redundant system

32

System Manual, 11/2019, A5E41814787-AB

Configuration example

System overview 3.2 Configuration



Optional load current supply



CPU (with two synchronization modules, connected underneath, not visible in the diagram)



Mounting rail with integrated DIN rail profile



Redundancy connections (fiber-optic cables)



PROFINET cable (PROFINET ring)

Figure 3-11 S7-1500H configuration example

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

33

System overview 3.2 Configuration

3.2.3

Components

Components of the S7-1500R/H redundant system

Table 3- 3 S7-1500R/H components

Component Mounting rail

Function
The mounting rail is the rack of the S7-1500R/H automation system. You can use the entire length of the mounting rail.
You can order the mounting rail as Accessories/spare parts (Page 315).

Diagram

Standard rail adapter

The R/H-CPUs are mounted on a standardized 35 mm rail via the standard rail adapter.
The standard rail adapter can be ordered as Accessories/spare parts (Page 315).

PE connection element for mounting rail

The screw set is inserted in the mounting rail's T-profile groove, and is required for grounding the mounting rail.
The set of screws is included in the scope of delivery of the mounting rails in the standard lengths (160 mm to 830 mm) and can be ordered as Accessories/spare parts (Page 315).

S7-1500R/H redundant system

34

System Manual, 11/2019, A5E41814787-AB

Component R/H-CPUs

Function The CPU runs the user program. Additional features and functions of the CPU: · Communication via Industrial Ethernet · Communication via PROFINET IO · Redundant mode · HMI communication · Integrated system diagnostics · Integrated protection functions (access and know-how
protection)

System overview 3.2 Configuration
Diagram

PROFINET cable

You connect the CPUs and the IO devices in a PROFINET ring using PROFINET cables.

Synchronization modules (for S7-1500H)

You create 2 redundancy connections between the H-CPUs via fiber-optic cables using a total of 4 synchronization modules (2 in each H-CPU).
The following synchronization module versions can be ordered:

· Sync module 1 GB FO 10 m: for fiber-optic cables up to 10 m in length

· Sync module 1 GB FO 10 km: for fiber-optic cables up to 10 km in length

Fiber-optic cable (for S7-1500H)

They connect the 2 synchronization modules per CPU in pairs via a fiber-optic cable. The following lengths of fiber-optic cables can be ordered:

· 1m

· 2m · 10 m

· Up to 10 km (on request)

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

35

System overview 3.3 S7-1500 R/H-CPUs

Component
4-pin connection plug for CPU supply voltage

Function The 4-pin connection plug provides the supply voltage.

Load current supply (PM)

The load current supply (PM) supplies the central modules (CPU) with 24 V DC. If you are using load current supplies, we recommend the devices from the SIMATIC series. These devices can be mounted on the mounting rail.
Various models of load current supply are available:
· PM 70 W 120/230 V AC
· PM 190 W 120/230 V AC

Diagram

3.3

S7-1500 R/H-CPUs

The S7-1500R/H redundant system tolerates the failure of one of the two R- or H-CPUs in the PROFINET ring. If the primary CPU fails, the backup CPU takes over control of the process as the new primary CPU at the point of the interruption.

All relevant data is permanently synchronized between the CPUs over the redundancy connections between primary CPU and backup CPU.

The primary CPU and the backup CPU execute the user program in parallel.

The display of the CPU shows you the control and status information in various menus. Quick access to diagnostic alarms minimizes plant downtimes in the event of a service call.

For effective commissioning and fast optimization of drives and controls, the CPUs support trace functions for all CPU tags.

S7-1500R/H redundant system

36

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs

3.3.1

Overview of the CPU technical specifications
The table below sets out the main technical specifications for the S7-1500 R/H CPUs.

Table 3- 4 Overview of the R/H-CPU technical specifications

CPU 1513R-1 PN

Data work-memory, max.

1.5 MB

Code work-memory, max.

300 KB

Plug-in load memory (SIMATIC memory 32 GB card), max.

I/O address area, max.

32 KB/32 KB

PROFINET IO interfaces

1

PROFINET interfaces

-

Processing time for bit operations

0.04 s

Display screen size

3.45 cm

Suitable PROFINET devices (IO devices, S7-1500R/H CPUs, switches, S71500 CPUs (as of V2.5) and HMI devices) in the PROFINET ring, max.

50 (recommended: max. 16)

Suitable PROFINET devices (see

66

above) in the PROFINET ring and sepa-

rated with switches (line), max.

Modules per rack, max.

2 (PM and CPU)

Distance between CPUs, max.

Depends on media converter used (with PROFINET cable, max. 100 m)

Redundancy connections (synchroniza- PROFINET ring tion link)

System redundancy

Yes

Switchover time 1)

300 ms

CPU 1515R-2 PN 3 MB 500 KB 32 GB
32 KB/32 KB 1 1 0.03 s 6.1 cm 50 (recommended: max. 16)
66
2 (PM and CPU) Depends on media converter used (with PROFINET cable, max. 100 m) PROFINET ring
Yes 300 ms

CPU 1517H-3 PN 8 MB 2 MB 32 GB
32 KB/32 KB 1 1 0.002 s 6.1 cm 50
258
2 (PM and CPU) Depends on the synchronization module used: max. 10 km
Fiber-optic cable
Yes 50 ms

1) The switchover time is the time starting with the failure or stop of the primary CPU until the backup CPU becomes the primary CPU and assumes control of the process as the primary CPU at the point of interruption. The switchover time can lengthen the cycle time.

Reference

The full technical specifications can be found in the manuals for the CPUs and on the Internet (https://mall.industry.siemens.com).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

37

System overview 3.3 S7-1500 R/H-CPUs

3.3.2

Redundancy

Introduction

The S7-1500R/H redundant system is based on media redundancy (MRP) in the PROFINET ring. You can use the following IO devices on the redundant S7-1500R/H system:  IO devices with S2 system redundancy  Standard IO devices over the "Switched S1 device" function of the CPU

Media redundancy
Media redundancy is a function for ensuring network and plant availability.
The two CPUs in the redundant system must be located in a PROFINET ring that uses the MRP media redundancy protocol. All PROFINET devices in the PROFINET ring must support media redundancy (MRP).
S7-1500R uses the PROFINET ring to synchronize the two CPUs. S7-1500H uses the redundancy connections over fiber-optic cables to synchronize the two CPUs. The PROFINET ring (via PROFINET interfaces X1) is also mandatory for S7-1500H.
To set up a ring topology with media redundancy, you need to bring together the free ends of a linear network topology in one device using 2 ports (ring ports, port label "R"). You specify the ring ports in the device configuration.
In the S7-1500R/H redundant system, you need to configure the media redundancy role for each of the two CPUs to Manager (Auto). For all other PROFINET devices in the PROFINET ring, the media redundancy role Client must be configured. There is a communication connection based on MRP between the redundancy manager and the redundancy clients. The Media Redundancy Protocol (MRP) automatically reconfigures the data paths between the individual devices if the ring is interrupted at any point.
You configure the media redundancy role for IO devices and other PROFINET devices in STEP 7. For switches without system redundancy S2, you set the media redundancy role to "Client" over the Web interface.

S7-1500R/H redundant system

38

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs
H-Sync Forwarding
H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of a S7-1500R redundant system only within the PROFINET ring. In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
Note Support of H-Sync Forwarding The technical specifications typically state whether a PROFINET device supports H-Sync Forwarding. The GSD file will also indicate whether the device supports H-Sync Forwarding. The device supports H-Sync Forwarding when the "AdditionalForwardingRulesSupported" attribute in the "MediaRedundancy" element is set to "true".

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

39

System overview 3.3 S7-1500 R/H-CPUs
Conditions:
 H-Sync Forwarding is not relevant for redundant S7-1500H systems. With the redundant S7-1500H system, the H-Sync frames are transmitted exclusively via the fiber-optic cables.
 When you use PROFINET devices with more than two ports (e.g. switch) in the PROFINET ring of an R-system, then H-Sync Forwarding is mandatory for these devices.
H-Sync frames leave the PROFINET ring with a switch without H-Sync Forwarding. This results in an additional load on the network. Another serious result is that the redundancy of other R-systems in the network can fail or startup can be prevented.
 H-Sync Forwarding is recommended for all devices in the PROFINET ring if you are using PROFINET devices with only 2 ports in the PROFINET ring of an R-system.
When you operate PROFINET devices without H-Sync Forwarding in the PROFINET ring of the redundant S7-1500R system, the following scenario will result in an additional cycle time increase:

1. The redundant S7-1500R system is in the RUN-Redundant system state. 2. The PROFINET cable which directly connects the two CPUs fails. 3. The PROFINET ring is interrupted. 4. The PROFINET ring is being reconfigured. 5. PROFINET devices without H-Sync Forwarding do not forward any H-Sync frames during the
reconfiguration time of the PROFINET ring. 6. The cycle time increases by the reconfiguration time of the PROFINET ring.
Figure 3-12 Failure of the PROFINET cable between the CPUs

S7-1500R/H redundant system

40

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs
If the cyclic program exceeds the cycle monitoring time, the time error OB (OB 80) may be started. Redundancy is lost if the time error OB (OB 80) is not present or the double cycle monitoring time was exceeded with OB 80. You can find additional information on the response of the S7-1500R/H redundant system when cycle time is exceeded in the section Events and OBs (Page 160).
Note
If failure of the PROFINET cable that directly connects the two CPUs of the redundant S7-1500R system is unlikely, you can use PROFINET devices without H-Sync Forwarding in the PROFINET ring of the redundant S7-1500R system.
Example: Both CPUs of the redundant S7-1500R/H system are located next to each other in the control cabinet. In this case, it is unlikely that the PROFINET cable will fail.
System redundancy S2
IO devices with S2 system redundancy enable uninterrupted process data exchange with the S7-1500R/H redundant system in the event of a CPU failure.
An IO device with system redundancy S2 supports system redundancy ARs.
In a redundant system, an IO device with system redundancy S2 has a system redundancy AR with each of the two CPUs (IO controllers). An IO device thus supports ARs of two IO controllers simultaneously (for the same modules).
A system redundancy AR can be the primary AR or the backup AR. An IO device activates the data of the primary AR at the outputs. The data of the backup AR is merely saved.
 Behavior in the RUN-Redundant system state:
Both CPUs are IO controllers. PROFINET communication runs on both system redundancy ARs simultaneously, in each case between one of the CPUs (IO controller) and the IO device. If the primary CPU then fails, the backup CPU becomes the primary CPU and also switches the backup AR to primary AR. The data of this AR then becomes active at the outputs.
 Behavior in the RUN-Solo system state:
Only the primary CPU is the IO controller. PROFINET communication runs on the primary AR between the primary CPU and the IO device. There is no AR between the backup CPU and the IO device.
In STEP 7, you configure a IO device connected system-redundant by assigning an IO device with S2 system redundancy to both CPUs of the redundant system S7-1500R/H.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

41

System overview 3.3 S7-1500 R/H-CPUs
Switched S1 device
As of firmware version V2.8, the S7-1500R/H redundant system supports the "Switched S1 device" function.
The "Switched S1 device" function of the CPU enables operation of standard IO devices on the S7-1500R/H redundant system.
Standard IO devices are always assigned to both CPUs of the S7-1500R/H redundant system. In contrast to an IO device with S2 system redundancy, a standard IO device supports only one AR. The AR for the IO-device is only set up once by the primary CPU.
 Behavior in the RUN-Redundant system state: PROFINET communication runs on the AR between the primary CPU (IO controller) and the standard IO device. There is no AR between the backup CPU and the standard IO device. If the primary CPU fails or is switched to STOP, the S7-1500R/H redundant system responds as follows:
­ The AR between the primary CPU and the standard IO device is disconnected.
­ The previous backup CPU becomes the new primary CPU.
­ The S7-1500R/H redundant system temporarily has no access to the inputs and no control over the outputs of the standard IO device. The status of the outputs depends on the substitute value behavior of the respective channels.
­ The new primary CPU builds an AR to the standard IO device.
­ As soon as the new primary CPU has set up the AR, the S7-1500R/H redundant system has access to the inputs again and control over the outputs of the standard IO device.
 Behavior in the RUN-Solo system state: Only the primary CPU is the IO controller. PROFINET communication runs on the AR between the primary CPU (IO controller) and the standard IO device. There is no AR between the backup CPU and the standard IO device.
In STEP 7 you configure an IO device connected via the "Switched S1 device" function by assigning a standard IO device to both CPUs of the redundant S7-1500R/H system.
Note Standard IO devices in the redundant system S7-1500R
Standard IO devices usually do not support H-Sync Forwarding.
To avoid a cycle time increase if the PROFINET ring is interrupted, integrate the standard IO devices behind a switch and not in the PROFINET ring.

S7-1500R/H redundant system

42

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs
Note I-device as standard IO device
You cannot assign a device to the S7-1500R/H redundant system which you have configured in STEP 7 as an I-device.
In order to operate an I-device as a standard IO device on the redundant system S7-1500R/H, always configure the I-device via GSD file. · SIMATIC CPU as an I-device
­ First, in STEP 7 configure the SIMATIC CPU as an I-device with all transfer areas. ­ Export the I-device as a GSD file. The GSD export can be found in the properties of
the PROFINET interface under "Operating mode" > "I-device communication" > "Export Generic System Description file (GSD)". ­ Install the GSD file in STEP 7. · HMI device as I-device (function "direct key") ­ The GSD files for SIMATIC Comfort Panel and SIMATIC Mobile Panel can be found in this application example (https://support.industry.siemens.com/cs/ww/en/view/73502293).
Assign the device configured via GSD file to the redundant system S7-1500R/H.

Essential differences between a PROFINET IO device with S2 system redundancy and a standard IO device

Table 3- 5 Main differences between IO device with S2 system redundancy and standard IO device

Property
Requirement for IO device
Maximum simultaneously supported ARs with regard to the same modules Response to role change

IO device with S2 system redundancy Device supports S2 system redundancy. 2
Continuous connection with S71500R/H redundant system Process data is transferred further.

Standard IO device
-
1
Temporary disconnection from S7-1500R/H redundant system. No process data is transferred until the standard IO device is available again. The status of the outputs depends on the substitute value behavior of the respective channels.

Reference

Additional information on media redundancy and system redundancy S2 can be found in the PROFINET function manual (http://support.automation.siemens.com/WW/view/en/49948856).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

43

System overview 3.3 S7-1500 R/H-CPUs

3.3.3

Security
Security means the protection of technical systems against sabotage, espionage and human error.

Protection functions
For the setup of secure networks, the S7-1500R/H redundant system has an integrated security concept from authorization levels up to block protection:

Table 3- 6 Overview of protection functions

Protection function Access protection
Know-how protection
CPU lock

Description
Protection against unauthorized configuration changes through four authorization levels and an integrated firewall
Protection against unauthorized access and modifications to algorithms with password protection
Protection against unauthorized access by locking the front cover with a seal or a lock

Access protection example
You can choose from four different access levels in the TIA Portal to restrict user access to functions and memory areas.

Figure 3-13 Access protection
If you only want to allow users access over HMI, for example, select the access level "HMI access" in the TIA Portal. Only HMI access and access to diagnostics data is then possible without entering a password. Users can read and write tags over an HMI device with this access level. Users cannot:  Download blocks or the hardware configuration to the CPU  Upload blocks or the hardware configuration from the CPU to the PG/PC  Run writing test functions  Change the operating state from the PG/PC  Run firmware updates

S7-1500R/H redundant system

44

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs

Advantages and customer benefits of protection functions
The protection functions listed above protect your investments from unauthorized access and manipulation, helping to secure plant availability.

Reference

You can find additional information on the protection functions described in the section Protection (Page 176) and in the STEP 7 online help.
Siemens products and solutions are only one element of a comprehensive industrial security concept. Please note the additional information on Industrial Security (http://www.siemens.com/industrialsecurity).

3.3.4

Diagnostics
All levels of automation in the S7-1500R/H redundant system have integrated diagnostics. All SIMATIC products have integrated diagnostic functions that you can use to analyze, localize and log faults and errors efficiently.
System diagnostics is integrated into the firmware of the CPUs and works independently of the cyclic user program. Faults in the plant are immediately detected and reported on the display devices.
A uniform display concept visualizes error messages as plain text information over:
 TIA Portal
 HMI devices
 CPU displays

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

45

System overview 3.3 S7-1500 R/H-CPUs
Displaying faults in an IO device
The various components of the S7-1500R/H redundant system are connected over PROFINET/Industrial Ethernet (IE). The devices detect faults in their modules (for example IO device ET 200SP) and send diagnostics data to the assigned CPU. The CPU analyzes this diagnostic information and notifies the connected display media. The information analyzed is shown in graphic form in the configuration and programming software (TIA Portal), on the HMI devices and on the CPU displays.

Figure 3-14 Overview of system diagnostics in a plant
Advantages and customer benefits
Integrated system diagnostics offers the following advantages:
 Diagnostics is always consistent with the actual state of the plant. In S7-1500R/H redundant mode, the diagnostic information is synchronized between the CPUs.
 The uniform display concept enables efficient error analysis.
 The immediate identification of the error source in the event of an error speeds up commissioning and minimizes production downtimes.
 By configuring diagnostics events, you tailor the diagnostics to the requirements of your automation task.
Reference
You will find more information on diagnostics in the Diagnostics (https://support.industry.siemens.com/cs/ww/en/view/59192926) function manual.

S7-1500R/H redundant system

46

System Manual, 11/2019, A5E41814787-AB

3.3.5

System overview 3.3 S7-1500 R/H-CPUs
Trace
The trace functionality facilitates troubleshooting and optimization for the user program. Trace records device tags and evaluates the recordings. This allows you to analyze defective signal responses. Tags are, for example, drive parameters or the system and user tags of a CPU. Because the CPU records tags directly, the trace and logic analyzer function is suitable for monitoring highly dynamic processes.
Note Trace restrictions The S7-1500R/H redundant system does not support the storage of measurements on the SIMATIC memory card.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

47

System overview 3.3 S7-1500 R/H-CPUs
Example of signal response analysis
To analyze a specific signal response, you define the recording and trigger conditions for the signals to be recorded.
 The trace function can be called in the project tree from the "Traces" folder under the top
CPU of the redundant system.
The trend diagram  displays the selected signals of a recording. Bits are shown in the
lower diagram as a bit track.
The signal table  lists the signals of the selected measurement and provides setting
options for specific properties.



Trace recordings for S7-1500R/H in the project tree



Trend diagram



Signal table

Figure 3-15 Trace measurement for S7-1500R/H

S7-1500R/H redundant system

48

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs

Advantages and customer benefits
The trace function offers the following advantages:  Simultaneous recording of up to 16 different signals and up to four separate trace jobs  A uniform standard for tag analysis that allows even sporadic errors to be located rapidly

Reference

You can find additional information on the trace function in the section Test functions (Page 290) and in the Using the trace and logic analyzer function manual (http://support.automation.siemens.com/WW/view/en/64897128).

3.3.6

PID control
PID controllers are built into all R/H-CPUs as standard. PID controllers measure the actual value of a physical variable, for example, temperature or pressure, and compare the actual value with the setpoint. Based on the resulting error signal, the controller calculates a manipulated variable that causes the process value to reach the setpoint as quickly and stably as possible.
You can choose from three different PID technology objects:

PID technology object PID_Compact
PID_3Step PID_Temp

Description
The PID_Compact technology object provides a PID controller with integrated tuning for proportional-action final controlling elements. Different operating modes are possible with PID_Compact, e.g:
· Pretuning
· Fine tuning
· Automatic mode
· Manual mode
The PID_3Step technology object provides a PID controller with tuning for valves or actuators with integrating behavior. You can configure the following controllers:
· Three-point stepping controller with position feedback
· Three-point stepping controller without position feedback
· Valve controller with analog output value
The PID_Temp technology object provides a continuous PID controller with integrated tuning. PID_Temp is specially designed for temperature control and is suitable for heating or heating/cooling applications. Two outputs are available, one for heating and one for cooling. You can also use PID_Temp for other control tasks. PID_Temp can be cascaded. You can use PID_Temp in manual or automatic mode.

Note Restriction
The display of the start value in the CPU and the corresponding comparison result in the configuration editor of the PID technology object is only possible in the RUN-Solo system state.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

49

System overview 3.3 S7-1500 R/H-CPUs
Example closed loop control of a valve in a mixer tap
The automation task is to control the valve of a mixer tap according to a desired temperature setting. You configure the opening and closing of the valve in the PID_3Step technology object. For this you need:  An analog input channel for the actual value  A digital output for "Control upwards" (e.g. open valve)  A digital output for "Control downwards" (e.g. close valve) The first step is to select the PID_3Step technology object in STEP 7:

Figure 3-16 Selection of the PID_3Step technology object in STEP 7

S7-1500R/H redundant system

50

System Manual, 11/2019, A5E41814787-AB

System overview 3.3 S7-1500 R/H-CPUs
After selecting the technology object, it is automatically stored in the project tree in the Technology Objects folder. In the configuration window, select the desired parameter area and enter the configuration data for the PID controller.

Figure 3-17 Configuration of the PID_3Step technology object in STEP 7 The required instance data module corresponds to the PID_3Step technology object.

Advantages and customer benefits
 Simple configuration and programming through integrated editors and blocks.  Simple simulation, visualization, commissioning and operation via PG and HMI.  Automatic calculation of the control parameters and tuning during operation.  No additional hardware and software required.

Reference

You can find more information on PID controllers PID Control Function Manual (https://support.industry.siemens.com/cs/ww/en/view/108210036).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

51

System overview 3.4 Communication

3.4

Communication

3.4.1

System and device IP addresses

Device IP addresses
For the interfaces of the CPUs and the IO devices to be accessible, the interfaces require IP addresses that are unique within the network (device IP addresses).

MAC addresses
The CPUs have a unique MAC address for each interface and its ports. The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right-hand side of each CPU.

System IP addresses
In addition to the device IP addresses of the CPUs, the redundant system S7-1500R/H supports system IP addresses:
 System IP address for the X1 PROFINET interfaces of the two CPUs (system IP address X1) for CPU 1513R-1 PN, CPU 1515R-2 PN and CPU 1517H-3 PN
 System IP address for the X2 PROFINET interfaces of the two CPUs (system IP address X2) for CPU 1515R-2 PN and CPU 1517H-3 PN
You use the system IP addresses for communication with other devices (for example, HMI devices, CPUs, PG/PC). The devices always communicate over the system IP address with the primary CPU of the redundant system. This ensures that the communication partner can communicate with the new primary CPU (previously backup CPU) in the RUN-Solo system state after failure of the original primary CPU in redundant operation.
There is a virtual MAC address for each system IP address. The virtual MAC addresses of the two PROFINET interfaces must be different from each other.
You enable the system IP addresses in STEP 7.
You can find information on configuring the system IP addresses and the virtual MAC addresses in the section Configuration procedure (Page 145).
Advantages of system IP addresses over device IP addresses
 Targeted communication of the communication partner with the primary CPU.
 The S7-1500R/H redundant system can continue to communicate over a system IP address even if the primary CPU fails.

S7-1500R/H redundant system

52

System Manual, 11/2019, A5E41814787-AB

System overview 3.4 Communication
Configuration example The figure below shows a configuration in which the S7-1500R/H redundant system communicates with other devices over the system IP address X2. The other devices are connected to the S7-1500 redundant system over the X2 PROFINET interfaces.

Reference

Figure 3-18 Example: Communication of the S7 1500R/H redundant system over the system IP address X2
You can find more information on the system IP address in the S7-1500R/H redundant system in the PROFINET (http://support.automation.siemens.com/WW/view/en/49948856) function manual.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

53

System overview 3.4 Communication

3.4.2

Integrated interfaces for communication
The table below provides an overview of CPU communication options in the S7-1500R/H redundant system.

Table 3- 7 S7-1500R/H communication options

Communication option

Service available over:

PROFINET IO MRP (Media Redundancy Protocol) LLDP (network topology detection) PG communication for commissioning, testing and diagnostics HMI communication for operator control and monitoring Open User Communication S7 communication as server S7 routing IP forwarding Time synchronization

PROFINET interface X1 (device IP
address)    
2)
3) 3)   

PROFINET interface X2 (device IP
address)1)
---- 

System IP address (at interfac-
es X1 and X2)
---------

2)



3)



3)





---







---

1) Not with CPU 1513R-1 PN
2) Communication mainly over system IP address: If the HMI device uses a device IP address and the CPU with the device IP address fails, communication to the HMI device also fails.
3) Communication mainly over system IP address: If the HMI device uses a device IP address and the CPU with the device IP address fails, the Open User Communication and S7 communication to S7-1500R/H also fails.

Reference

For more information on communication options, please refer to the Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925).

3.4.3
54

HMI devices
HMI devices are used for machine-level process visualization and control. You use the same HMI devices for the S7-1500R/H redundant system as for the standard S7-1500 system. Using HMI communication, one or more HMI devices exchange data with the CPUs . Examples of HMI devices are HMI Basic/Comfort/Mobile Panel. The connection of the HMI device to the redundant system depends on the specific application. In STEP 7, you can configure the following communication options:  The HMI device communicates with the redundant system over the system IP address.  The HMI device communicates with the R/H-CPUs (for example for diagnostics purposes)
over the device IP addresses.
S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Reference

System overview 3.5 Power supply
You can find additional information on using HMI devices in the section Using HMI devices (Page 99) and in the Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925). You can find an overview of all available HMI devices in the Industry Mall (https://mall.industry.siemens.com/mall/en/WW/Catalog/Products/9109999?tree=CatalogTre e).

3.5

Power supply

The CPUs of the redundant system have an integrated system power supply. You can add one load current supply to the integrated system power supply.

Note
The CPUs are designed for fixed operation and continuous operation on a load current supply.

Load current supply (PM)
The load current supply (PM) supplies the system components and CPU. You can install the load current supply directly to the left of the CPU (without connection to the backplane bus).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

55

System overview 3.6 Software

3.6

Software

3.6.1

TIA Portal
The SIMATIC controllers are integrated into the Totally Integrated Automation Portal. Engineering with TIA Portal offers:  Configuration and programming  Shared data management  A uniform operating concept for control, visualization and drives The TIA Portal simplifies integrated engineering in all configuration phases of a plant.

Figure 3-19 TIA Portal overview 56

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

3.6.2 3.6.3

System overview 3.6 Software
SINETPLAN
SINETPLAN (https://www.siemens.com/sinetplan), the Siemens Network Planner, helps you plan automation systems and networks based on PROFINET. The tool facilitates the professional and predictive dimensioning of your PROFINET system right from the planning stage. SINETPLAN also assists with network optimization and helps you to make the best possible use of network resources and to plan for reserves. This allows you to avoid problems in commissioning and failures during productive operation even before planned use. This increases the availability of the production plant and helps improve operational safety. The advantages at a glance  Network optimization thanks to port-specific calculation of the network load  Increased production availability thanks to online scan and verification of existing systems  Transparency before commissioning through import and simulation of existing STEP7
projects  Efficiency through securing existing investments in the long term and the optimal use of
resources
PRONETA
SIEMENS PRONETA (PROFINET network analysis) allows you to analyze the plant network during commissioning. PRONETA features two core functions:  The topology overview independently scans PROFINET and all connected components.  The IO check is a rapid test of the wiring and the module configuration of a plant. SIEMENS PRONETA (https://support.industry.siemens.com/cs/ww/en/view/67460624) is available for free on the Internet.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

57

Application planning

4

4.1

Requirements

Introduction

Please note the following requirements for use of the S7-1500R/H redundant system.

Hardware requirements

Table 4- 1 Hardware requirements

Property S7-1500R/H CPUs
PROFINET ring

Requirement
· 2 identical R-CPUs or H-CPUs in the redundant system · Identical article numbers and firmware versions for the two CPUs · Firmware version display of the R/H-CPUs: As of FW version V2.6
A PROFINET ring is required for all configuration variants (Page 62) of the S7-1500R/H redundant system.

S7-1500R/H redundant system

58

System Manual, 11/2019, A5E41814787-AB

Application planning 4.1 Requirements

Property PROFINET devices
Load current supply PM

Requirement
· Media redundancy (MRP) ­ All PROFINET devices in the PROFINET ring support the function media redundancy. ­ Both CPUs have the media redundancy role "Manager (auto)". All other devices in the PROFINET ring have the media redundancy role "Client".
· H-Sync Forwarding - for PROFINET devices in the PROFINET ring with S7-1500R: ­ When you use PROFINET devices with more than two ports (e.g. switch) in the PROFINET ring of an R-system, then H-Sync Forwarding is mandatory for these devices. ­ H-Sync Forwarding is recommended for all devices in the PROFINET ring if you are using PROFINET devices with only 2 ports in the PROFINET ring of an R-system.
· Redundancy: ­ With the switched S1 device function, you can operate any standard IO device on the redundant S7-1500R/H system. ­ An IO device must support S2 system redundancy for uninterrupted exchange of process data in the event of failure of the primary CPU (primary-backup switchover).
· The following SIMATIC PROFINET IO devices support system redundancy S2, media redundancy and H-Sync forwarding: ­ ET 200SP IM 155-6 PN HF (6ES7155-6AU00-0CN0), FW version V4.2 or later ­ ET 200SP IM 155-6 PN/2 HF (6ES7155-6AU01-0CN0), FW version V4.2 or later ­ ET 200SP IM 155-6 PN/3 HF (6ES7155-6AU30-0CN0), FW version V4.2 or later ­ ET 200MP (6ES7155-5AA00-0AC0), FW version V4.2 or later ­ PN/PN coupler (6ES7158-3AD10-0XA0), FW version V4.2 or later
· Switches of the product families XC-200, XP-200 and XF-200BA support system redundancy S2, media redundancy and H-Sync-Forwarding, for example SCALANCE XC208 (6GK5208-0BA00-2AC2), FW version V4.0 or later.
· S7-1500 CPUs: Firmware version V2.5 or later The redundant system does not recognize the S7-1500 CPUs when calculating the maximum number of IO devices within and outside the PROFINET ring. If you use S7-1500 CPUs, you will have to check the maximum number yourself.
· SINAMICS S120 PROFINET Control Unit (CU310-2 PN or CU320-2 PN) support system redundancy S2 and media redundancy, FW version V5.2 or later.
Load current supply PM for the R/H CPUs The use of the PM is optional. Suitable load current supplies:
· PM 70 W 120/230 V AC
· PM 190 W 120/230 V AC

1) If you use PROFINET devices that do not support H-Sync Forwarding in S7-1500R, additional cycle time increases may occur in the RUN-Redundant system state. If the cyclic program exceeds the cycle monitoring time, the time error OB (OB 80) may be started. You can find additional information in the section Events and OBs.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

59

Application planning 4.2 Restrictions compared to the S7-1500 automation system

Special case: Operating R/H CPU individually
You can operate an R/H CPU as a single CPU. If you do, please note the following:  You always configure 2 R-CPUs or H-CPUs for S7-1500R/H, even if you only set up one
CPU.  The MAINT LED on the CPU is always yellow (maintenance demanded):
­ The R/H system is not in redundant mode. ­ No partner CPU was found.

Software requirements

Table 4- 2
Function STEP 7

Software requirements
Requirement SIMATIC STEP 7 Professional as of V16

4.2

Restrictions compared to the S7-1500 automation system

Introduction

Please note the following restrictions with the S7-1500R/H redundant system compared to the S7-1500 automation system.

Hardware restrictions

Table 4- 3 Hardware restrictions
Property Fail-safe modules
Series machine projects, configuration control (option handling) Central I/O
Cycle and response times

Restriction Fail-safe modules are not supported in the S7-1500R/H redundant system. Not supported
Central I/O modules are not supported in the hardware configuration of the S7-1500R/H redundant system. Longer cycle and response times: You can find additional information in the Cycle and response times (https://support.industry.siemens.com/cs/ww/en/view/591935 58) function manual.

S7-1500R/H redundant system

60

System Manual, 11/2019, A5E41814787-AB

Application planning 4.2 Restrictions compared to the S7-1500 automation system

Software restrictions

Table 4- 4 Software restrictions

Function Instructions
Display: "Modules" menu command Firmware update Hardware detection in STEP 7 (read out configuration) HMI tags
I-device
IRT Configured connections
Motion Control MRPD Multiuser Engineering Online functions OPC UA Secure OUC
PROFINET send clock Shared Device System power supply
Isochronous mode Testing with breakpoints
Trace
Web server Certificate management

Restriction
Restrictions for specific instructions: You can find additional information in the section Restrictions (Page 157). Not supported Firmware update via accessible devices is not supported. Not supported
The direct entry of tags on the HMI device is only possible in the RUN-Solo system state. The S7-1500R/H redundant system cannot be used as an I device. Not supported Connection type not support for communication connection. Only programmed connections are supported. Motion Control functions are not supported in the CPUs Not supported Not supported SIMATIC Automation Tool (SAT tool) not supported OPC UA (server and client) not supported Not supported as certificate management is not possible for the R/H CPUs: If you have enabled Secure OUC, you can compile and load the user program but cannot add certificates to the R/H CPUs. 1 ms only Not supported The following parameter is irrelevant: "System power supply" > "General" > "Connection to supply voltage L+/No connection to supply voltage L+" Isochronous mode is not supported You can only test with breakpoints in the STARTUP (startup OB) or RUN-Solo system state. The storage of measurements on the SIMATIC memory card (measurements in the device) is not supported. Not supported Not supported

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

61

Application planning 4.3 Configuration versions

4.3

Configuration versions

Introduction

You can configure different versions of the S7-1500R/H redundant system. A PROFINET ring is essential in all configuration variants. For the configuration variants of the S7-1500R/H system, there is redundancy for the following components:  R/H-CPUs  Synchronization interfaces  Media in the PROFINET ring This section describes the admissible configuration variants and their advantages/benefits. The following convention applies:

Figure 4-1 Green traffic light

4.3.1

S7-1500R/H configuration with IO devices in the PROFINET ring

Introduction

The following sections set out configurations of the S7-1500R/H redundant system with IO devices in the PROFINET ring.

Advantages/benefits
 IO devices with S2 system redundancy enable uninterrupted process data exchange with the S7-1500R/H redundant system in the event of a CPU failure.
 The redundant system continues to operate following a cable interruption anywhere in the PROFINET ring.

S7-1500R/H redundant system

62

System Manual, 11/2019, A5E41814787-AB

S7-1500R configuration

Application planning 4.3 Configuration versions

 CPU 1  CPU 2  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP (with system redundancy S2)  IO device ET 200SP (with system redundancy S2)
Figure 4-2 S7-1500R configuration with IO devices in the PROFINET ring

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

63

Application planning 4.3 Configuration versions
S7-1500H configuration

 CPU 1  CPU 2  Two fiber-optic cables (redundancy connections)  IO device ET 200SP (with system redundancy S2)  IO device ET 200MP (with system redundancy S2)  Standard IO device ET 200SP  Standard IO device ET 200MP  PROFINET cable (PROFINET ring)
Figure 4-3 S7-1500H configuration with IO devices in the PROFINET ring

4.3.2

S7-1500R/H configuration with switches and linear topology

Introduction

The following sections set out configurations of the S7-1500R/H redundant system with switches and line topology.

Benefits/advantages
 You can use a switch to add an additional line topology to the PROFINET ring. Unlike the PROFINET ring, the line topology is not redundant.
 PROFINET IO devices can be located in the PROFINET ring or they can be separated with a switch.

S7-1500R/H redundant system

64

System Manual, 11/2019, A5E41814787-AB

S7-1500R configuration

Application planning 4.3 Configuration versions

 CPU 1  CPU 2  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200SP (with system redundancy S2)  IO device ET 200MP (with system redundancy S2)  Switch  Standard IO device ET 200SP  HMI device
Figure 4-4 S7-1500R configuration with switches and line topology

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

65

Application planning 4.3 Configuration versions
S7-1500H configuration

 CPU 1  CPU 2  Two fiber-optic cables (redundancy connections)  IO device ET 200MP (with system redundancy S2)  IO device ET 200SP (with system redundancy S2)  Standard IO device ET 200MP  Standard IO device ET 200SP  PROFINET cable (PROFINET ring)  Switch  HMI device
Figure 4-5 S7-1500H configuration with switches and line topology

S7-1500R/H redundant system

66

System Manual, 11/2019, A5E41814787-AB

4.4

Redundancy scenarios

Application planning 4.4 Redundancy scenarios

4.4.1

Introduction

Introduction

This section describes possible redundancy scenarios on the basis of various different configuration variants. The redundancy scenarios do not result in process restrictions. In the examples shown, the failures are tolerated by the redundant system.
The following convention applies:

Figure 4-6 Yellow traffic light

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

67

Application planning 4.4 Redundancy scenarios

4.4.2

Failure of the primary CPU

Introduction

The following redundancy scenario describes the effects of a defective primary CPU.

Redundancy scenario

 Primary CPU  failed  Backup CPU  becomes new primary CPU  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP (with system redundancy S2)  IO device ET 200SP (with system redundancy S2)  Switch  Standard IO device ET 200SP
Figure 4-7 Failure of the primary CPU (using S7-1500R as an example)

S7-1500R/H redundant system

68

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Sequence of events
1. The primary CPU of the redundant system fails in the RUN-Redundant system state.
2. The redundant system switches to the backup CPU. The backup CPU becomes the new primary CPU. The redundant system switches to the RUN-Solo system state. You can find additional information on the RUN-Solo system state in the section Operating and system states (Page 205).
3. The new primary CPU exchanges process data with the IO devices.
Note Temporary separation of standard IO devices in the event of failure of the primary CPU
If the primary CPU fails, the standard IO devices are temporarily separated from the S7-1500R/H redundant system. During this time, the configured substitute value behavior applies to the modules of the standard IO devices.
The new primary CPU establishes the connections to the standard IO devices again. After a short time, the primary CPU resumes exchanging process data with the standard IO devices.
4. The redundancy of the system is restricted. The restriction has no impact on the process. If another system component or another network segment fails, this can result in the failure of the S7-1500R/H redundant system. You can find additional information in the section Failure scenarios (Page 81).

Diagnostics

System state, operating states and error displays after primary-backup switchover:
 Redundant system  RUN-Solo system state
 Primary CPU (previously backup CPU)  RUN operating state
­ MAINT LED  yellow light: The R/H system is not in the RUN-Redundant system state. No partner CPU has been found in the redundant system. The PROFINET ring is open.
 Backup CPU (previously primary CPU)  failed

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective CPU. You can find additional information on the procedure in the section Replacing defective R/H CPUs (Page 269).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

69

Application planning 4.4 Redundancy scenarios

4.4.3

Failure of the backup CPU

Introduction

The following redundancy scenario describes the effects of a defective backup CPU.

Redundancy scenario

 Primary CPU  Backup CPU  failed  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP  IO device ET 200SP
Figure 4-8 Failure of the backup CPU (using S7-1500R as an example)
Sequence of events
1. The backup CPU of the redundant system fails in the RUN-Redundant system state.
2. The redundant system switches to the RUN-Solo system state. You can find additional information on the RUN-Solo system state in the section Operating and system states (Page 205).
3. The primary CPU continues to exchange process data with the IO devices (and standard IO devices).
4. The redundancy of the system is restricted. The restriction has no impact on the process. If another system component or another network segment fails, this can result in the failure of the S7-1500R/H redundant system. You can find additional information in the section Failure scenarios (Page 81).

S7-1500R/H redundant system

70

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Diagnostics

System state, operating states and error displays after primary-backup switchover:
 Redundant system  RUN-Solo system state
 Primary CPU  RUN operating state
­ MAINT LED  yellow light: The R/H system is not in the RUN-Redundant system state. No partner CPU has been found in the redundant system. The PROFINET ring is open.
 Backup CPU  failed

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective CPU. You can find additional information on the procedure in the section Replacing defective R/H CPUs (Page 269).

4.4.4

Failure of the PROFINET cable in the PROFINET ring

Introduction

The following redundancy scenario describes the effects of a defective PROFINET cable in the PROFINET ring.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

71

Application planning 4.4 Redundancy scenarios
Redundancy scenario

 Primary CPU  Backup CPU  PROFINET cable (redundancy connections, PROFINET ring)  interrupted  IO device ET 200MP  IO device ET 200SP
Figure 4-9 Failure of a PROFINET cable in the PROFINET ring (using S7-1500R as an example)
Sequence of events
1. A defective or disconnected PROFINET cable interrupts the PROFINET ring of the redundant system.
2. The redundant system remains in the RUN-Redundant system state: The primary and backup CPUs remain in the RUN-Redundant operating state.
3. The redundant system selects an alternative connection over the backup CPU. This allows the redundant system to access all IO devices in the PROFINET ring again.
4. The redundancy of the system is restricted. The restriction has no effect on the process.
If another system component or another network segment fails, this can result in the failure of the S7-1500R/H redundant system.
­ If the PROFINET cable is also interrupted at another point, IO devices in the PROFINET ring may fail depending on the location of the interruption.
­ You can find additional information in the section Failure scenarios (Page 81).

S7-1500R/H redundant system

72

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Diagnostics

System state, operating states and error displays after the failure of the PROFINET cable:
 Redundant system  RUN-Redundant system state
 Primary CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. There is only one redundancy connection remaining in the redundant system.
 Backup CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. There is only one redundancy connection remaining in the redundant system.

WARNING Failure of the redundant system S7-1500R If the primary CPU fails in addition to the PROFINET cable, the backup CPU switches to the STOP operating state. You can find more information in the section Failure of the primary CPU when IO devices have failed in the PROFINET ring (Page 89).
Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective PROFINET cable or reconnect the disconnected PROFINET cable. You can find additional information on the procedure in the section Replacing defective PROFINET cables.

4.4.5

Specific redundancy scenarios for S7-1500H

4.4.5.1

Failure of a redundancy connection in S7-1500H

Introduction

The following redundancy scenario describes the effects of a defective redundancy connection in S7-1500H.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

73

Application planning 4.4 Redundancy scenarios
Redundancy scenario

 Primary CPU  Backup CPU  One fiber-optic cable (redundancy connection)  interrupted  IO device ET 200SP  IO device ET 200MP  PROFINET cable (PROFINET ring)
Figure 4-10 Failure of a redundancy connection
Sequence of events
1. One of the two redundancy connections (fiber-optic cables) is interrupted.
2. The system continues to exchange process data with the IO devices.
3. The redundancy of the system is restricted. The redundant system will remain in the RUN-Redundant system state. The restriction has no effect on the process.

S7-1500R/H redundant system

74

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Diagnostics

System state, operating states and error displays after the failure of a redundancy connection:
 Redundant system  RUN-Redundant system state
 Primary CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: There is only one redundancy connection remaining in the H system.
 Backup CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: There is only one redundancy connection remaining in the H system.

WARNING Failure of the redundant system If the primary CPU fails in addition to the redundancy connection, the backup CPU switches to the STOP operating state. You can find more information in the section Failure of one redundancy connection and the primary CPU in S7-1500H (Page 94).
Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective redundancy connection. You can find additional information on the procedure in the section Replacing defective redundancy connections (Page 270).

4.4.5.2

Failure of both redundancy connections in S7-1500H > 1500 ms apart

Introduction

The following redundancy scenario describes the effects of a defect in each of the two redundancy connections in S7-1500H. In this redundancy scenario, the time between the redundancy connection failures is > 1500 ms.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

75

Application planning 4.4 Redundancy scenarios
Redundancy scenario

 Primary CPU (S7-1500H)  Backup CPU (S7-1500H)  Two fiber-optic cables (redundancy connections)  interrupted  IO device ET 200MP  IO device ET 200SP  PROFINET cable (PROFINET ring)
Figure 4-11 Failure of both redundancy connections (> 1500 ms apart)
Sequence of events
1. The two redundancy connections (fiber-optic cables) are interrupted, one > 1500 ms after the other.
2. The redundant system switches to the RUN-Solo system state. The primary CPU remains in the RUN operating state. The backup CPU switches to the STOP operating state.
3. The primary CPU continues to exchange process data with the IO devices.
4. The redundancy of the system is restricted. The restriction has no impact on the process. If another system component or another network segment fails, this can result in the failure of the S7-1500R/H redundant system. You can find additional information in the section Failure scenarios (Page 81).

S7-1500R/H redundant system

76

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Diagnostics

System state, operating states and error displays after the failure of both redundancy connections:
 Redundant system  RUN-Solo system state
 Primary CPU  RUN operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.
 Backup CPU  STOP operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective redundancy connections. You can find additional information on the procedure in the section Replacing defective redundancy connections (Page 270).

4.4.5.3

Failure of both redundancy connections and the PROFINET cable in the PROFINET ring

Introduction

The following redundancy scenario describes the effects of a defect in each of the two redundancy connections and in the PROFINET cable in the PROFINET ring. In this redundancy scenario, the time between the redundancy connection failures is > 1500 ms.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

77

Application planning 4.4 Redundancy scenarios
Redundancy scenario

 Primary CPU  Backup CPU  Two fiber-optic cables (redundancy connections)  interrupted  IO device ET 200SP  IO device ET 200MP  PROFINET cable (PROFINET ring)  interrupted
Figure 4-12 Failure of both redundancy connections and a PROFINET cable in the PROFINET ring
Sequence of events
1. Both redundancy connections (fiber-optic cables) fail in the redundant system. The time between the failures is > 1500 ms.
2. The redundant system switches to the RUN-Solo system state. The primary CPU remains in the RUN operating state. The backup CPU switches to the STOP operating state.
3. A defective PROFINET cable also interrupts the PROFINET ring.
4. The redundant system accesses all IO devices in the PROFINET ring again over the remaining PROFINET cables.
5. The redundancy of the system is restricted. The restrictions have no effect on the process.

S7-1500R/H redundant system

78

System Manual, 11/2019, A5E41814787-AB

Application planning 4.4 Redundancy scenarios

Diagnostics

System state, operating states and error displays after the failure of the redundancy connections and PROFINET cable:
 Redundant system  RUN-Solo system state
 Primary CPU  RUN operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system. The PROFINET ring is open (requirement: Primary CPU is MRP Manager).
 Backup CPU  STOP operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective redundancy connections and the defective PROFINET cable. You can find more information on the procedure in the following sections:
 Replacing defective redundancy connections (Page 270)
 Replacing defective PROFINET cables

4.4.5.4

Failure of the two PROFINET cables in the PROFINET ring on the backup CPU

Introduction

The following redundancy scenario describes the effects of a defect of both PROFINET cables in the PROFINET ring at the backup CPU.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

79

Application planning 4.4 Redundancy scenarios
Redundancy scenario

 Primary CPU  Backup CPU  Two fiber-optic cables (redundancy connections)  IO device ET 200SP  IO device ET 200MP  PROFINET cables (PROFINET ring)  interrupted
Figure 4-13 Failure of both PROFINET cables in the PROFINET ring at the backup CPU
Sequence of events
1. Both PROFINET cables in the PROFINET ring upon failure of the backup CPU.
2. The redundant system will remain in the RUN-Redundant system state. The primary and backup CPUs remain in the RUN-Redundant operating state.
3. The redundant system continues to reach all IO devices in the PROFINET ring.
4. The redundancy of the system is restricted. The restrictions have no effect on the process.

S7-1500R/H redundant system

80

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state, operating states and error messages after the failure of both PROFINET cables on the backup CPU:
 Redundant system  RUN-Redundant system state
 Primary CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open.
 Backup CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. The backup CPU cannot accept IO devices.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective PROFINET cables. You can find additional information on the procedure in the section Replacing defective PROFINET cables.

4.5

Failure scenarios

Introduction

This section describes possible failure scenarios with the various configuration variants. The failure scenarios lead to process restrictions. In the examples shown, the redundant system cannot tolerate the failures any longer.
The following convention applies:

Figure 4-14 Red traffic light

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

81

Application planning 4.5 Failure scenarios

4.5.1

Failure of an IO device in the PROFINET ring

Introduction

The following failure scenario describes the effects of a defective IO device in the PROFINET ring.

Failure scenario

 Primary CPU  Backup CPU  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP  IO device ET 200SP  failed
Figure 4-15 Failure of an IO device in the PROFINET ring (using S7-1500R as an example)
Sequence of events
1. An IO device in the PROFINET ring fails.
2. The PROFINET ring is interrupted.
3. The redundant system selects an alternative connection over the backup CPU. This allows the redundant system to access all remaining IO devices in the PROFINET ring again.
4. The failure of the IO device has an impact on the process. If the failed inputs and outputs have an important function in the system, their failure can have a critical impact on the process.

S7-1500R/H redundant system

82

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state, operating states and error displays after the failure of an IO device:  Redundant system  RUN-Redundant system state  Primary CPU  RUN-Redundant operating state
­ MAINT LED:  yellow light: The PROFINET ring is open. Singular redundancy connection available.
­ ERROR LED  flashes red: An IO device has failed.  Backup CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. Singular redundancy connection available.
­ ERROR LED  flashes red: An IO device has failed.

WARNING Failure of the redundant system If the primary CPU fails in addition to the PROFINET cable, the backup CPU switches to the STOP operating state. You can find more information in the section Failure of the primary CPU when IO devices have failed in the PROFINET ring (Page 89).
Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective IO device. You can find additional information on the procedure in the section Replacing defective I/O devices/switches (Page 276).

4.5.2

Failure of a switch (with line topology) in the PROFINET ring

Introduction

The following failure scenario describes the effects of a defective switch (with line topology) in the PROFINET ring.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

83

Application planning 4.5 Failure scenarios
Failure scenario

 Primary CPU  Backup CPU  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP  IO device ET 200SP  Switch  failed  IO device ET 200SP  HMI device
Figure 4-16 Failure of a switch in the PROFINET ring (using S7-1500R as an example)

Sequence of events
1. A switch (with connected line topology) in the PROFINET ring fails.
2. The PROFINET ring is interrupted.
3. If applicable, the redundant system selects an alternative connection to the IO devices  and  over the backup CPU. This allows the redundant system to access all IO devices
in the PROFINET ring again.
4. The failure of the switch has an impact on the process as the IO devices in the line topology can no longer be accessed. If the failed inputs and outputs have an important function in the system, their failure can have a critical impact on the process.

S7-1500R/H redundant system

84

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state, operating states and error displays after the failure of a switch:  Redundant system  RUN-Redundant system state  Primary CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. ­ ERROR LED  flashes red: One or more IO devices have failed.  Backup CPU  RUN-Redundant operating state ­ MAINT LED  yellow light: The PROFINET ring is open. ­ ERROR LED  flashes red: One or more IO devices have failed.

WARNING Failure of the redundant system If the primary CPU fails in addition to the PROFINET cable, the backup CPU switches to the STOP operating state. You can find more information in the section Failure of the primary CPU when IO devices have failed in the PROFINET ring (Page 89).
Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective switch. You can find additional information on the procedure in the section Replacing defective I/O devices/switches (Page 276).

4.5.3

Specific failure scenarios with S7-1500R

4.5.3.1

Two cable interruptions in the PROFINET ring in S7-1500R > 1500 ms apart

Introduction

The following failure scenario describes the effects of two cable interruptions in the PROFINET ring. In this failure scenario, the time between the two cable interruptions is > 1500 ms.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

85

Application planning 4.5 Failure scenarios
Failure scenario

 Primary CPU  Backup CPU  PROFINET ring  interrupted at two points  IO device ET 200MP  IO device ET 200SP
Figure 4-17 Two cable interruptions in the PROFINET ring (> 1500 ms apart)
Sequence of events
1. The PROFINET ring is interrupted at one point.
2. The redundant system remains in the RUN-Redundant system state: The primary and backup CPUs remain in the RUN-Redundant operating state.
3. The PROFINET ring is interrupted at a second point > 1500 ms later.
4. The redundant system switches to the RUN-Solo system state. The primary CPU remains in the RUN operating state. The backup CPU switches to the STOP operating state.
5. CPU redundancy has failed. The failure has an impact on the process. The RUN-Solo system state and the cable interruptions mean that not all IO devices in the PROFINET ring can be accessed. If the failed inputs and outputs have an important function in the system, their failure can have a critical impact on the process.

S7-1500R/H redundant system

86

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state, operating states and error displays after the cable interruptions:  Redundant system  RUN-Solo system state  Primary CPU  RUN operating state
­ MAINT LED  yellow light: The R-system is not in the RUN-Redundant system state. No partner CPU has been found in the R-system. The PROFINET ring is open.
­ ERROR LED  flashes red: One or more IO devices cannot be accessed.  Backup CPU  STOP operating state
­ MAINT LED  yellow light: The R-system is not in the RUN-Redundant system state. No partner CPU has been found in the R-system. The PROFINET ring is open.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective PROFINET cables. You can find additional information on the procedure in the section Replacing defective redundancy connections (Page 270).

4.5.3.2

Two cable interruptions in the PROFINET ring in S7-1500R within  1500 ms

Introduction

The following failure scenario describes the effects of two cable interruptions in the PROFINET ring. In this failure scenario, the time between the two cable interruptions is  1500 ms.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

87

Application planning 4.5 Failure scenarios
Failure scenario

 Primary CPU  Backup CPU  PROFINET ring  interrupted a 2 locations  IO device ET 200MP  IO device ET 200SP
Figure 4-18 2 cable interruptions in the PROFINET ring (within  1500 ms)
Sequence of events
1. The PROFINET ring is interrupted at 2 points at a time interval of  1500 ms.
2. The redundant system switches to an undefined system state: The primary CPU remains in the RUN operating state. The backup CPU becomes the primary CPU and remains in RUN operating state.
3. The two primary CPUs continue to exchange process data with the accessible IO devices.
4. The redundancy of the system is defective. The redundant system is in an undefined system state. The undefined system state can lead to dangerous states in the process.
WARNING
Undefined system state of the S7-1500R redundant system at the same time as a cable interruption in the PROFINET ring at 2 points within  1500 ms.
Lay the PROFINET cables so that they are securely protected from damage. PROFINET cables should also always be laid separately from each other. This makes simultaneous damage to the PROFINET cables (within  1500 ms) unlikely.

S7-1500R/H redundant system

88

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state and operating states after cable interruptions:
 Redundant system  System state defective (undefined: Each R-CPU is in the RUN-Solo system state).
 Primary CPU  RUN operating state
­ MAINT LED  yellow light: The R-system is not in the RUN-Redundant system state. No partner CPU has been found in the R-system. The PROFINET ring is open.
­ ERROR LED  flashes red: An IO device has failed.
 Primary CPU (previously backup CPU)  RUN operating state
­ MAINT LED  yellow light: The R-system is not in the RUN-Redundant system state. No partner CPU has been found in the R-system. The PROFINET ring is open.
­ ERROR LED  flashes red: An IO device has failed.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Please note the following solution:
Note Before you replace the defective PROFINET cables, you must switch both R-CPUs to the STOP operating state. Only then repair the PROFINET cables in the PROFINET ring. Afterwards, switch the R-CPUs back to the RUN operating state.
You can find additional information on the procedure in the section Replacing defective redundancy connections (Page 270).

4.5.3.3

Failure of the primary CPU when IO devices have failed in the PROFINET ring

Introduction

The following failure scenario describes the effects of a defective IO device in the PROFINET ring and a defective primary CPU.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

89

Application planning 4.5 Failure scenarios
Failure scenario

 Primary CPU  failed (2nd failure in sequence of events)  Backup CPU  switches to STOP operating state  PROFINET cable (redundancy connections, PROFINET ring)  IO device ET 200MP  IO device ET 200SP  failed (1st failure in sequence)
Figure 4-19 Failure of an IO device in the PROFINET ring and the primary CPU (using S7-1500R as an example)
Sequence of events
1. An IO device in the PROFINET ring fails.
2. As a result, the PROFINET ring is interrupted.
3. The redundant system selects an alternative connection over the backup CPU. This allows the redundant system to access all remaining IO devices in the PROFINET ring again.
4. The primary CPU also fails.

S7-1500R/H redundant system

90

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

5. The redundant system does not switch to the backup CPU and switches to the STOP system state. The role of the backup CPU remains unchanged.
Note The backup CPU cannot distinguish between the following scenarios: · It can no longer access the primary CPU because the latter has failed. · The other redundancy connection has also been interrupted and the primary CPU may
still be running. That is why the backup CPU does not become the primary CPU. This prevents an undefined system state.
6. The redundant system has failed. The process is no longer controlled by the redundant system.

Diagnostics

System state, operating states and error displays after the failure of the IO device in the PROFINET-Ring and the STOP of Backup CPU:  Redundant system  STOP system state  Primary CPU  failed  Backup CPU  STOP operating state
­ MAINT LED  yellow light: The R-system is not in the RUN-Redundant system state. No partner CPU has been found in the R-system. The PROFINET ring is open.
Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective IO device and the defective primary CPU. You can find additional information on the procedure in the sections Replacing defective R/H CPUs (Page 269) and Replacing defective I/O devices/switches (Page 276).
Note
Proceed as follows if you have ensured that the CPU is still working in the STOP operating state and can access all important IO devices: 1. Replace the defective IO device. 2. Switch the CPU from STOP operating state to the RUN operating state. 3. Replace the defective CPU. Switch the new CPU to the RUN operating state.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

91

Application planning 4.5 Failure scenarios

4.5.4

Specific failure scenarios with S7-1500H

4.5.4.1

Failure of both redundancy connections in S7-1500H  1500 ms apart

Introduction

The following failure scenario describes the effects of a defect in each of the two redundancy connections in S7-1500H. In this failure scenario, the time between the redundancy connection failures is  1500 ms.

Failure scenario

 Primary CPU  Backup CPU  Two fiber-optic cables (redundancy connections)  interrupted  IO device ET 200SP  IO device ET 200MP  PROFINET cable (PROFINET ring)
Figure 4-20 Failure of both redundancy connections

S7-1500R/H redundant system

92

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Sequence of events
1. The two redundancy connections (fiber-optic cables) are interrupted  1500 ms apart.
2. The redundant system switches to an undefined system state: The primary CPU remains in the RUN operating state. The backup CPU becomes the primary CPU and remains in RUN operating state.
3. The two primary CPUs continue to exchange process data with the PROFINET devices.
4. The redundancy of the system is defective. The redundant system is in an undefined system state. The undefined system state can lead to dangerous states in the process.

WARNING
Undefined system state of the S7-1500H redundant system when two redundancy connections are interrupted  1500 ms apart.
Lay the redundancy connections so that the fiber-optic cables are securely protected from damage. Also make sure when laying the cables that the two redundancy connections are always separate from each other. This makes simultaneous damage to the redundancy connections (< 1500 ms apart) unlikely.

Diagnostics

System state and operating states after the failure of both redundancy connections:  Redundant system  System state defective (undefined: Each H-CPU is in the RUN-Solo
system state).
 Primary CPU  RUN operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.
 Primary CPU (previously backup CPU)  RUN operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Please note the following solution:
Note Before you replace the defective redundancy connections, you must switch both H-CPUs to the STOP operating state. Only then repair the redundancy connections. Switch the H-CPUs back to the RUN operating state.
You can find additional information on the procedure in the section Replacing defective redundancy connections (Page 270).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

93

Application planning 4.5 Failure scenarios

4.5.4.2

Failure of one redundancy connection and the primary CPU in S7-1500H

Introduction

The following failure scenario describes the effects of a defect in a redundancy connection and the primary CPU in S7-1500H. In this failure scenario, the time between the redundancy connection failure and the primary CPU is > 1500 ms.

Failure scenario

 Primary CPU  failed (2nd failure in sequence of events)  Backup CPU  One fiber-optic cable (redundancy connection)  interrupted (1st failure in sequence of events)  IO device ET 200SP  IO device ET 200MP  PROFINET cable (PROFINET ring)
Figure 4-21 Failure of one redundancy connection and the primary CPU

S7-1500R/H redundant system

94

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Sequence of events
1. One of the two redundancy connections is interrupted.
2. Availability is restricted. The redundant system will remain in the RUN-Redundant system state.
3. The primary CPU also fails. Due to the failure, the primary CPU is no longer visible for the backup CPU.
4. The redundant system does not switch to the backup CPU, but switches to the STOP system state. The role of the backup CPU remains unchanged.
Note
The backup CPU cannot distinguish between the following scenarios: · It can no longer access the primary CPU because the latter has failed. · The other redundancy connection has also been interrupted and the primary CPU may
still be running.
That is why the backup CPU does not become the primary CPU. This prevents an undefined system state.
5. System redundancy has failed. The process is no longer controlled by the redundant system.

Diagnostics

System state and operating states after the failure of the redundancy connection and primary CPU:
 Redundant system  STOP system state
 Primary CPU  failed
 Backup CPU  STOP operating state
­ MAINT LED  yellow light: The H-system is not in the RUN-Redundant system state. No partner CPU has been found in the H-system.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective redundancy connection and the primary CPU. You can find additional information on the procedure in the sections Replacing defective redundancy connections (Page 270) and Replacing defective R/H CPUs (Page 269).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

95

Application planning 4.5 Failure scenarios

4.5.4.3

Failure of the two PROFINET cables in the PROFINET ring at the primary CPU

Introduction

The following redundancy scenario describes the effects of a defect of both PROFINET cables in the PROFINET ring at the primary CPU.

Redundancy scenario

 Primary CPU  Backup CPU  Two fiber-optic cables (redundancy connections)  IO device ET 200SP  IO device ET 200MP  PROFINET cables (PROFINET ring)  interrupted
Figure 4-22 Failure of both PROFINET cables in the PROFINET ring at the primary CPU

Sequence of events
1. Both PROFINET cables in the PROFINET ring at the primary CPU fail. The redundant system will not execute a primary-backup switchover. The redundant system will remain in the RUN-Redundant system state.
2. The primary CPU can no longer access the IO devices in the PROFINET ring. The IO devices will return to the substitute values.
3. The failure of both PROFINET cables affects the process, since the IO devices in the PROFINET ring can no longer be reached from the primary CPU.

S7-1500R/H redundant system

96

System Manual, 11/2019, A5E41814787-AB

Application planning 4.5 Failure scenarios

Diagnostics

System state, operating states and error displays after the failure of the PROFINET cables:  Redundant system  RUN-Redundant system state  Primary CPU  RUN-Redundant operating state
­ MAINT LED  yellow light: The PROFINET ring is open. ­ ERROR LED  flashes red: IO devices have failed.  Backup CPU  RUN-Redundant operating state ­ MAINT LED  yellow light: The PROFINET ring is open. ­ ERROR LED  flashes red: IO devices have failed.

Note To get detailed diagnostics information, evaluate the diagnostics buffer.

Solution

Replace the defective PROFINET cables. You can find additional information on the procedure in the section Replacing defective PROFINET cables (Page 274).

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

97

Application planning 4.6 Hardware configuration

4.6

Hardware configuration

Modules suitable for R/H-CPUs
The integrated system power supply of the R/H-CPU supplies the required power for operation. Optionally, you can also use a load current supply.
The table below shows which modules can be used in the various R/H-CPU slots:

Table 4- 5 Maximum configuration Module type
Load current supply (PM) 1) CPU 1) No connection to the backplane bus.

Maximum number of mod- Maximum number of mod-

ules, primary CPU (mount- ules, backup CPU (mounting

ing rail)

rail)

Unlimited

Unlimited

1

1

 Optional load current supply and first R/H-CPU  Optional load current supply and second R/H-CPU
Figure 4-23 Assignment of slot numbers

S7-1500R/H redundant system

98

System Manual, 11/2019, A5E41814787-AB

Application planning 4.7 Using HMI devices

Maximum number of PROFINET devices in the redundant system
The table below shows the maximum number of PROFINET devices in the redundant system. The maximum number includes switches, S7-1500R/H CPUs, S7-1500 CPUs (V2.5 or later) and HMI devices. It does not include media converters.

Table 4- 6 Number of PROFINET devices in the redundant system

PROFINET devices
In the PROFINET ring
In the PROFINET ring and separated with switches (line)

Maximum number, S71500R
50 (Recommendation 16) 1)
66

Maximum number, S7-1500H 50
258

1) Recommendation: The number of devices in the PROFINET ring affects the availability of the S71500R system. The number of PROFINET devices including R-CPUs in the PROFINET ring should not exceed 16. If you operate significantly more devices in the PROFINET ring, the availability of the IO devices and R-CPUs is reduced. The technical specifications in the documentation are based on the recommended maximum of 16 PROFINET devices in the ring in S7-1500R.

4.7

Using HMI devices

Introduction

You can use the same HMI devices for the S7-1500R/H redundant system as for the S7-1500 automation system.
If you use HMI devices in the PROFINET ring with S7-1500R, those HMI devices must support media redundancy. The H-Sync forwarding function is also recommended.
If you use HMI devices in the PROFINET ring with S7-1500H, those HMI devices must support media redundancy.
You transfer the HMI configuration to your HMI device using the configuration and programming software (Engineering Station).
You can connect the HMI device to the redundant system with the system IP address. Connection to the redundant system is possible within and outside the PROFINET ring. The HMI device always communicates with the primary CPU over the system IP address in the RUN-Redundant, RUN-Solo and STOP system states, provided you have activated the system IP address and selected it in the connection configuration for the HMI device.
If the role of primary CPU switches to the other CPU, the communication relationship of the HMI device also switches to the other (primary) CPU.
As an alternative to the system IP address, you can also use a device IP address to connect the HMI device to an R/H-CPU. The HMI device then only communicates with the connected CPU.
When exchanging data via device proxy data, make sure that the IP addresses and system IP addresses are correctly assigned to the PROFINET interfaces. You can find additional information on devices proxy data in the STEP 7 online help.

S7-1500R/H redundant system

System Manual, 11/2019, A5E41814787-AB

99

Application planning 4.7 Using HMI devices
Connecting HMI devices over Industrial Ethernet and the PROFINET ring, example with CPU 1517H-3 PN/CPU 1515R-2 PN
The figure below is an example of how you can connect the CPU 1517H-3 PN to an HMI device over Industrial Ethernet and the PROFINET ring. Connect the HMI devices in the same way as for the CPU 1515R-2 PN.

Figure 4-24 Configuration example CPU 1517H-3 PN: Connecting HMI devices over Industrial Ethernet and the PROFINET ring
The CPUs 1517H-3 PN/CPU 1515R-2 PN has a PROFINET IO interface with 2 ports (X1 P1 R, X1 P2 R) and a PROFINET interface with a port (X2 P1).
To connect an HMI device to the CPUs over Industrial Ethernet, you use the X2 PROFINET interfaces of the CPU. PROFINET interface X2 supports PROFINET basic functionality. The interface, for example, is suitable for communication with an HMI device or configuration and programming software (Engineering Station).
Note
A PROFINET device (such as an HMI device) can only communicate with the redundant system over the system IP address if it has been connected to both R/H-CPUs. Always connect the PROFINET device to the same interfaces, X1 or X2, on both R/H-CPUs. Do not mix interfaces X1 and X2: If you mix interfaces X1 with X2, the HMI connection is no longer redundant.
Integrate a switch into the PROFINET ring to connect an HMI device to the PROFINET ring. Use this to establish a connection to the HMI device.

100

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Application planning 4.7 Using HMI devices
The PROFINET ring is set up using the PROFINET IO interfaces (X1) of the CPUs. If you operate HMI devices within the ring, you need to assign the MRP role "Client" to the MRP domain. You can find more information on HMI device application planning in the section Requirements (Page 58). You can find more information on the interfaces of the CPUs 1517H-3 PN/CPU 1515R-2 PN in the relevant device manual.
Connecting HMI devices over Industrial Ethernet, example with CPU 1513R-1 PN
The figure below shows how to connect an HMI device over Industrial Ethernet with the CPU 1513R-1 PN.

Reference

Figure 4-25 Configuration example CPU 1513R-1 PN: Connecting the HMI device via a switch
CPU 1513R-1 PN has a PROFINET IO interface with 2 ports (X1 P1 R and X1 P2 R). To connect an HMI device to the CPUs over Industrial Ethernet, you set up the PROFINET ring over PROFINET interface X1. Integrate a switch into the PROFINET ring. Use this to establish an Industrial Ethernet connection. You can find additional information on the interfaces of CPU 1513R-1 PN in the relevant device manual.
You can find more information on the system IP address in the section Configuration process (Page 145) and in the Communication (https://support.industry.siemens.com/cs/ww/de/view/59192925/en) function manual. More information on how to set up an HMI connection to the S7-1500R/H redundant system is available in the Communication (https://support.industry.siemens.com/cs/ww/de/view/59192925/en) function manual.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

101

Installation

5

5.1

Basics

Installation site

All modules of the S7-1500R/H redundant system are unenclosed equipment. You may only install unenclosed equipment in housings, cabinets or electrical operating rooms indoors. The housings, cabinets and electrical operating rooms must guarantee protection against electric shock and spread of fire. The requirements for mechanical strength must also be met. The housings, cabinets, and electrical operating rooms must not be accessible without a key or tool. Personnel must be trained or approved for access.

Installation position
The S7-1500R/H redundant system is designed for use in the following mounting positions:  Horizontal mounting position up to 60 °C  Vertical mounting position up to 40 °C Additional information can be found in the section Mechanical and climatic environmental conditions.

Mounting rail

You can mount the following components on the mounting rails alongside the S7-1500R/H CPUs, load current supplies:
 Terminals
 Circuit breakers
 Small contactors
 Similar components
These components can influence the installation dimensions for the cable duct.
Modules can be mounted right to the outer edge of the mounting rail.
The mounting rails are available in various lengths. You order the mounting rails using the online catalog or the online ordering system. The available lengths and article numbers can be found in the appendix Accessories/spare parts (Page 315).

102

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Installation 5.1 Basics
Minimum clearances
Modules can be mounted right to the outer edge of the mounting rail. Maintain the following minimum clearances when installing or dismantling the S7-1500R/H redundant system.

 Upper edge of the mounting rail
Figure 5-1 Minimum clearances in the control cabinet
Installation rules
The redundant system configuration consists of: R/H-CPU and an optional load current supply.
WARNING Protection from conductive contamination Protect the devices from conductive contamination, taking into account the ambient conditions. Protection from conductive contamination can, for example, be achieved by installing the devices in a control cabinet with the appropriate degree of protection.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

103

Installation 5.2 Installing the mounting rail

5.2

Installing the mounting rail

Introduction

The R/H-CPUs should be mounted either on one mounting rail or on two separate mounting rails.

Lengths and drill holes
The mounting rails are delivered in six lengths:
 160 mm
 245 mm
 482.6 mm (19 inches)
 530 mm
 830 mm
 2000 mm
You can find the article numbers in the appendix Accessories/spare parts (Page 315).
The mounting rails (from 160 to 830 mm) come with two drill holes for fixing screws. A set of screws for grounding the mounting rail is provided.
The 2000 mm mounting rail is designed for assemblies with special lengths and does not have holes for fixing screws. No set of screws for grounding is included with the mounting rail (can be ordered as accessories/spare parts (Page 315)).
The specifications of the maximum offsets between two drill holes can be found in the table, "Dimensions for the drill holes".

Tools required

 Commercially available hacksaw  Drill  6.5 mm  Screwdriver  Size 10 adjustable screw-wrench or socket wrench for grounding cable connection  Adjustable screw-wrench, matching the selected fixing screws  Stripping tool and crimp tool for the grounding cable

104

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Installation 5.2 Installing the mounting rail

Accessories required
Use the following screw types for fastening the mounting rails:

Table 5- 1 Accessories required

For ...
· Outer fixing screws · Additional fixing screws (for mount-
ing rails > 482.6 mm)

use ...
M6 fillister head screws according to ISO 1207/ISO 1580 (DIN 84/DIN 85)
M6 hexagon head screws according to ISO 4017 (DIN 4017)

Explanation
Choose a suitable screw length for your assembly.
You also need washers for cylinder head screws with an internal diameter of 6.4 mm and an external diameter of 11 mm in accordance with ISO 7092 (DIN 433).

Dimensions for the drill holes
Table 5- 2 Dimensions for the drill holes "Standard" mounting rails

"Longer" mounting rails

Length of the mounting rail Distance a

160 mm

10 mm

245 mm

10 mm

482.6 mm

8.3 mm

530 mm

15 mm

830 mm

15 mm

Distance b 140 mm 225 mm 466 mm 500 mm 800 mm

Additional fixing screws (for mounting rails > 530 mm)
For profile rails > 530 mm, we recommend using additional fixing screws at intervals of >482.6 mm on the identification groove.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

105

Installation 5.2 Installing the mounting rail
Preparing the 2000 mm mounting rail for installation
Proceed as follows to prepare the 2000 mm mounting rail for installation: 1. Cut the 2000 mm mounting rail to the required length. 2. Mark the holes. The necessary dimensions can be found in the table "Dimensions for the
drill holes": ­ Two drill holes at the beginning and end of the mounting rail ­ Additional drill holes at equal intervals of 500 mm maximum, along the identification
groove 3. Drill the marked holes according to the selected type of fastening. 4. Ensure that there are no burrs or shavings on the mounting rail.
Note To ensure secure installation of the modules, make sure that the drill holes are centered in the identification groove. Only use the maximum size of screws.

 Identification groove for additional drill holes  Additional drill hole
Figure 5-2 Preparing the 2000 mm mounting rail for installation
Installing the mounting rail
Install the mounting rails for the R/H-CPUs so that there is still sufficient space for installation and heat dissipation. Please study the figure Minimum clearances in the control cabinet (Page 103). Screw the rail onto the mounting surface.

106

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Installation 5.2 Installing the mounting rail
Attaching the protective conductor
The mounting rails of the S7-1500R/H redundant system must be connected to the protective conductor system of the electrical system to ensure electrical safety. Proceed as follows to connect the protective conductor: 1. Strip the grounding conductor with a minimum diameter of 10 mm2. Attach a ring terminal
for M6 bolts with the crimping pliers.
2. Slide the enclosed bolt into the T profile groove.
3. Insert the spacer, ring terminal with the grounding connector, flat washer, and lock washer onto the bolt (in that order). Thread on the hexagon nut. Fasten the components in place with the nut (torque 4 Nm).
4. Connect the opposite end of the grounding cable to the central grounding point/protective conductor busbar (PE).
5. If you mount the redundant system on separate mounting rails, repeat steps 1 to 4 for the second mounting rail.

Figure 5-3 Attaching the protective conductor

Note
Alternative grounding of the mounting rails
Grounding with the grounding screw is not required if the following requirements are met:
The mounting rails must be permanently connected to the protective conductor system using an equivalent fitting that complies with the applicable standards, for example by permanent attachment to a grounded control cabinet wall.

Reference

You can find more information on the exact dimensions of the mounting rails in the appendix Dimension drawings (Page 312).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

107

Installation 5.3 Installing the standard rail adapter

5.3

Installing the standard rail adapter

Introduction

Use the standard rail adapter to mount the redundant SIMATIC S7-1500R/H-system on the standardized 35 mm rails.
You order the DIN rail adapter as separate accessories.
Note Note the following reduced technical specifications regarding mechanical load when you install the S7-1500R/H modules on the 35 mm standard mounting rail using the standard mounting rail adapter:
Vibration test acc. to IEC 60068-2-6 (sinusoidal) · 5 Hz  f  8.4 Hz, constant amplitude 3.5 mm · 8.4 Hz  f  150 Hz, constant acceleration 1 g
Duration of vibration: 10 frequency sweeps per axis in each of three perpendicular axes
Shock, tested according to IEC 60068-2-27 · Type of shock: Half-sine · Shock intensity: 150 m/s2 peak value, 11 ms duration · Direction of shock: 3 shocks in +/- direction in each of three perpendicular axes

Article No.

6ES7590-6AA00-0AA0
The scope of delivery consists of ten adapters, ten hexagon socket-head screws and ten washers.

108

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

View

Installation 5.3 Installing the standard rail adapter
The DIN rail adapter consists of a clamp, an adapter frame and a hexagon socket-head screw with washer.

 Clamp  Adapter frame  Hexagon socket-head screw  Washer
Figure 5-4 Parts of the DIN rail adapter

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

109

Installation 5.3 Installing the standard rail adapter
Dimensional drawing

 Position of the adapter frame during mounting to the standard DIN rail 35 mm x 7.5 mm  Position of the adapter frame during mounting to the standard DIN rail 35 mm x 15 mm
Figure 5-5 Dimensional drawing

Tools required

Wrench matching the hexagon socket head cap screw M6 according to EN ISO 4762 (DIN 912).

110

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Properties

Installation 5.3 Installing the standard rail adapter
 The standard rail adapter makes it possible to mount the S7-1500R/H mounting rail to the standardized 35 mm standard rails.  The DIN rail adapter allows for the use of prefabricated control cabinet and terminal box systems.  The total length of the S7-1500R/H mounting rail can be used again completely as before.  To ensure optimal stability, the clearance between the two DIN rail adapters must be no more than 250 mm or less.

Figure 5-6 Distance between two DIN rail adapters
Note Note that, depending on the mounting rail width, the mounting rail adapter can protrude up to 4 mm on each side due to the drill holes. You can find an overview of the protrusion dimensions for the various DIN rails in the table below.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

111

Installation 5.3 Installing the standard rail adapter

Table 5- 3 Additional lateral space required

Mounting rail · 160.0 mm (with drill holes) · 245.0 mm (with drill holes) · 482.6 mm (with drill holes) · 530.0 mm · 830.0 mm (with drill holes)

Article No.

Additional space required with adapter

6ES7590-1AB60-0AA0 4 mm

6ES7590-1AC40-0AA0 4 mm

6ES7590-1AE80-0AA0 8 mm

6ES7590-1AF30-0AA0 0 mm

6ES7590-1AJ30-0AA0 0 mm

Procedure

Figure 5-7 DIN rail adapter protrusion
Mounting on the standard DIN rail 35 mm x 7.5 mm To install DIN rail adapter on the standard DIN rail 35 mm x 7.5 mm, follow these steps: 1. Set the clamp onto the standard DIN rail. 2. The shorter transverse edge of the adapter frame points towards the cabinet or box wall
(2). 3. Place the S7-1500R/H mounting rail on the adapter frame so that the groove in the
S7-1500R/H mounting rail covers the groove in the adapter frame. Place the S7-1500R/H mounting rail with the adapter frame onto the clamp (4).

112

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Installation 5.3 Installing the standard rail adapter
4. Use screws to fasten the S7-1500R/H mounting rail to the standard rail adapter and the standard mounting rail (Figure 5 - tightening torque 6 Nm).

Figure 5-8 Mounting sequence of the DIN rail adapter to the DIN rail 35 mm x 7.5 mm or 35 mm x 15 mm
Mounting to the standard DIN rail 35 mm x 15 mm
To install DIN rail adapter on the standard DIN rail 35 mm x 15 mm, follow these steps:
1. Set the clamp onto the standard DIN rail.
2. The longer transverse edge of the adapter frame points toward the cabinet or box wall (3).
3. Place the S7-1500R/H mounting rail on the adapter frame so that the groove in the S7-1500R/H mounting rail fits into the groove in the adapter frame. Place the S7-1500R/H mounting rail with the adapter frame onto the clamp (4).
4. Use screws to fasten the S7-1500R/H mounting rail to the standard rail adapter and the standard mounting rail (Figure 5 - tightening torque 6 Nm).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

113

Installation 5.4 Installing a load current supply

5.4

Installing a load current supply

Introduction

Load current supplies do not have a connection to the backplane bus of the S7-1500R/H redundant system and do not occupy a slot on the backplane bus.

Requirements
The mounting rail is installed.

Tools required
Slotted-head screwdriver with 4.5 mm blade

Installing a load current supply
Watch the video sequence (http://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/videos/EN/mount/start.html) To install a load current supply, follow these steps: 1. Hook the load current supply on the mounting rail. 2. Swivel the load current supply to the rear.

Figure 5-9 Installing a load current supply
3. Open the front cover. 4. Disconnect the power cable connector from the load current supply. 5. Screw the load current supply tight (torque 1.5 Nm). 6. Insert the already wired-up power cable connector into the load current supply.

114

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Installation 5.5 Installing R/H-CPUs
For a description on how to wire the power cable connector, refer to the section Connecting load current supply (Page 125).
Note Load current supplies can only be mounted on the left or right side outside the S7-1500R/H redundant system. If you mount a load current supply on the right of the configured setup, the heat development of the load current supply may make a gap to the configured setup necessary. For additional information, refer to the relevant manuals. The number of load current supplies that can be used is unlimited.

Uninstalling the load current supply
The load current supply is wired up. To uninstall a load current supply, follow these steps: 1. Open the front cover. 2. Shut down the load current supply. 3. Turn off the supply voltage. 4. Disconnect the power cable connector, and remove the connector from the load current
supply. 5. Unscrew the fixing screw. 6. Swivel the load current supply out of the mounting rail.

Reference

Additional information can be found in the manuals for the load current supplies.

5.5

Installing R/H-CPUs

Introduction

CPUs in the S7-1500R/H redundant system are installed in exactly the same way as CPUs in the S7-1500 automation system.

Requirements
The mounting rail is installed.
Note Protective film Please note that the R/H-CPUs come with a removable protective film on the display.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

115

Installation 5.5 Installing R/H-CPUs
Tools required
Slotted-head screwdriver with 4.5 mm blade
Installing R/H-CPUs
Watch the video sequence (http://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/videos/EN/mount/start.html) Proceed as follows to install an R/H-CPU: 1. Install the CPU to the mounting rail.
Only with optional load current supply: Move the CPU to the load current supply on the left.

2. Swivel the CPU in to the rear. 3. Screw the CPU tight (torque 1.5 Nm).
Uninstalling R/H-CPU
The R/H-CPU is wired. Proceed as follows to uninstall an R/H-CPU: 1. Open the front cover. 2. Switch the CPU into STOP mode. 3. Turn off the supply voltage. 4. Pull off the connector for the supply voltage. 5. Disconnect the cables at the CPU:
­ R-CPU: Disconnect the PROFINET cables. ­ H-CPU: Disconnect the PROFINET cables and fiber-optic cables. 6. Undo the CPU fixing screw(s). 7. Pivot the CPU out of the mounting rail.

116

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring

6

6.1

Rules and regulations for operation

Introduction

The S7-1500R/H redundant system is a plant and system component. Special rules and regulations must be adhered to in line with the area of application.
This section gives an overview of the key rules for integration of the redundant system into a plant or system. Please follow these rules when connecting the S7-1500R/H redundant system.

Specific application
Observe the safety and accident prevention regulations that are applicable to specific applications (for example Machinery Directive).

EMERGENCY-STOP devices
EMERGENCY OFF equipment to IEC 60204 (corresponds to DIN VDE 0113) must remain effective in all operating modes of the plant or system.

Excluding hazardous plant states
Hazardous operating states must not occur when
 The plant restarts after a voltage dip or power failure.
 Bus communication is reestablished following a fault.
 An undefined system state occurs in the S7-1500R/H. Example: Failure of both redundancy connections  1500 ms apart.
If a hazardous operating state occurs, force an EMERGENCY STOP.
An uncontrolled or undefined redundant system startup must not occur after the EMERGENCY STOP device is unlocked.

Line voltage

The points to note for line voltage are set out below:
 For fixed plants or systems without multipole circuit breaker, a mains disconnection device (multipole) must be available in the building installation.
 For the load current supply, the configured rated voltage range must correspond to the local line voltage.
 For all power circuits of the S7-1500R/H redundant system, the fluctuation/deviation of the line voltage from the rated value must be within the permitted tolerance.
You can find more information in the section Specifications for insulation tests, protection class, degree of protection, and rated voltage (Page 310).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

117

Wiring 6.1 Rules and regulations for operation

24 V DC supply
The points to note for a 24 V DC supply are set out below:
 Power supply units for the 24 V DC supply must supply safety extra low voltage in accordance with IEC 61131-2 or IEC 61010-2-201.
 To protect the S7-1500R/H redundant system from lightning and overvoltages, use overvoltage arresters.
Suitable components for the lightning and overvoltage protection are specified in the Defining interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) function manual.

Protection against electrical shock
The mounting rails of the S7-1500R/H redundant system must be connected conductively to the protective conductor to protect against electric shock.
You may only use conductors in the colors yellow-green for connections to protective conductor connections.

Protection against external electrical influences
The following describes what you must pay attention to in terms of protection against electrical influences and/or faults:
 The system for discharging electromagnetic interference must be connected to a protective conductor with a sufficient cross-section for all plants with an S7-1500R/H redundant system.
 You must ensure that all supply, signal and bus cables are correctly laid and installed.
 For signal and bus lines, a cable break, wire break or a cross-circuit must not lead to undefined states in the plant or system.

Protection of redundancy connections against unauthorized access
Protect the redundant connections in a redundant S7-1500H system so that the fiber-optic cables are protected against unauthorized access, e.g. by spatial access protection.

Reference

Additional information can be found in the function manual, Designing interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566).

118

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.2 Operation on grounded infeed

6.2

Operation on grounded infeed

Introduction

Information is provided below on the overall configuration of an S7-1500R/H redundant system on a grounded incoming supply (TN-S network). The specific subjects discussed are:  Shut-off devices, short circuit and overload protection in accordance with
­ IEC 60364, corresponds to DIN VDE 0100 ­ IEC 60204, corresponds to DIN VDE 0113  Load current supplies and load circuits

Grounded infeed
In the case of grounding incoming supplies (TN-S system) the neutral conductor (N) and the protective conductor (PE) are each grounded. Both wires form a part of the overvoltage concept. When a plant is in operation, the current flows across the neutral conductor. When a fault occurs, for example a single ground fault between a live conductor and ground, the current flows through the protective conductor.

Safe electrical isolation (SELV in accordance with IEC 61131-2 or IEC 61010-2-201)
Load current supplies with 24 V DC output voltage require safe electrical separation and voltage limiting (extra low voltage). Load current supplies with a 24 V DC output voltage are not connected to the protective conductor. In accordance with IEC 61131-2 / IEC 61010-2-201, this protection is referred to as SELV (Safety Extra Low Voltage).
The wiring of SELV circuits must be safely separated from the wiring of other circuits that are not SELV, or the insulation of all conductors must be dimensioned for the higher voltage.

Protective extra-low voltage (PELV in accordance with IEC 61131-2 or IEC 61010-2-201)
Load current supplies with grounded 24 V DC output voltage require a safe connection to the protective conductor and voltage limiting (extra low voltage).
In accordance with IEC 61131-2 / IEC 61010-2-201, this protection is referred to as PELV (Protective Extra Low Voltage).
Either the wiring of PELV circuits must be safely isolated from the wiring of other circuits that are not PELV, or the insulation of all wires must be dimensioned for the higher voltage.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

119

Wiring 6.2 Operation on grounded infeed

Reference potential of the controller
The reference potential of the S7-1500R/H redundant system is connected to the mounting rail over a high-resistance RC combination in the R/H-CPU. This connection conducts highfrequency interference currents and prevents electrostatic charges. Despite the grounded mounting rail, the reference potential of the S7-1500R/H redundant system has to be considered as ungrounded due to the high-resistance connection.
If you want to configure the S7-1500R/H redundant system with a grounded reference potential, establish an electrical connection between the M connection of the CPU and the protective conductor.
You can find a simplified representation of the potentials in the section Electrical configuration (Page 122).

Short-circuit and overload protection
Various measures as protection against short-circuits and overloads are required for setting up a full installation. The nature of the components and the degree to which the required measures are binding depends on the IEC (DIN VDE) regulation applicable to your plant configuration. The table refers to the following figure and compares the IEC (DIN VDE) regulations.

Table 6- 1 Components and required measures

Shut-off device for control system, sensors, and actuators Short-circuit and overload protection: In groups for sensors and actuators
Load current supply for AC load circuits with more than five items of electromagnetic equipment

Reference to following figure


IEC 60364 (DIN VDE 0100)
Main switch

IEC 60204 (DIN VDE 0113)
Disconnector



Single-pole protection of · With grounded sec-

circuits

ondary circuit: Single-



pole protection

· Otherwise: All-pole

protection



Galvanic isolation by

Galvanic isolation by

transformer recommended transformer recommended

120

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.2 Operation on grounded infeed
Overall configuration of S7-1500R/H
The figure below shows the overall configuration of the S7-1500R/H redundant system (load current supply and grounding concept) with supply from a TN-S network.

 Main switch  Short-circuit and overload protection on the primary side  Short-circuit and overload protection on the secondary side  The load current supply (galvanic isolation)
Figure 6-1 Operating the S7-1500R/H with grounded reference potential

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

121

Wiring 6.3 Electrical configuration

6.3

Electrical configuration

Galvanic isolation
In the redundant System S7-1500R/H, there is electrical isolation between:  The communication interfaces (PROFINET) of the R-CPU and all other circuit
components  The communication interfaces (PROFINET) of the H-CPU and all other circuit
components High-frequency interference currents are conducted and electrostatic charges are avoided through integrated RC combinations or integrated capacitors.
S7-1500R/H potentials
The figure below is a simplified diagram of potentials in the S7-1500R/H redundant system.

Figure 6-2 Potentials in S7-1500R/H using the example of CPU 1515R-2 PN

122

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.4 Wiring rules

6.4

Wiring rules

Introduction

Use suitable cables to connect the S7-1500R/H redundant system. The tables below set out the wiring rules for the R/H-CPUs and load current supply.

R/H CPUs and load current supply

Table 6- 2 Wiring rules for R/H-CPUs and load current supply

Wiring rules for ... Permitted cable cross-sections of solid cables (Cu)

Permitted cable crosssections of flexible cables (Cu)

Without wire-end ferrule
With end sleeve

Number of wires per connection

Stripped length of the wires

End sleeves according to DIN 46228

Without plastic sleeve
With plastic sleeve 0.25 to 1.5 mm2

Sheath diameter

Tool

Connection system Tightening torque
1) American Wire Gauge

R/H-CPU 0.25 to 2.5 mm2 AWG1): 24 to 14 0.25 to 1.5 mm2 AWG1): 24 to 16 1 10 to 11 mm Design A, 10 mm long Design E, 10 mm long
3 to 3.5 mm screwdriver, conic design Push-in terminal -

Load current supply 0.5 to 2.5 mm2 AWG1): 20 to 14 0.5 to 1.5 mm2 AWG1): 20 to 16 1 7 to 8 mm Design A, 7 mm long Design A, 7 mm long
8.5 mm 3 to 3.5 mm screwdriver, conic design Screw terminal From 0.5 Nm to 0.6 Nm

Permissible cable temperature

Note Permissible cable temperatures
You must select sufficiently large wire cross-sections to ensure that the permissible cable temperatures are not exceeded at the maximum ambient temperature of the redundant system S7-1500R/H.
Example of power supply
At an ambient temperature of 40° C, a current of, for example, 4 A per wire and a crosssection of 1.5 mm² Cu, a connecting conductor must be rated for a temperature range of at least 70° C.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

123

Wiring 6.5 Connecting the supply voltage

6.5

Connecting the supply voltage

Introduction

The supply voltage is supplied over a 4-pin connector at the front of the R/H-CPU (behind the front flap, below).

Connection for supply voltage (X80)
The connections of the 4-pole connector have the following meaning:

 + 24 V DC of the supply voltage  Mass of the supply voltage  Mass of the supply voltage for looping (current limited to 10 A)  + 24 V DC of the supply voltage for looping (current limited to 10 A)  Spring opener (one spring opener per terminal)
Figure 6-3 Connection for supply voltage
The cable connector enables you to loop the supply voltage uninterrupted, even when it is unplugged.

Requirements

 Only wire the cable connector when the supply voltage is turned off.  Follow the wiring rules (Page 123).

Tool-free connection of cables: multi-wire (stranded), with end sleeve or ultrasonic compressed
To connect a wire without tools, follow these steps: 1. Strip 8 to 11 mm of the wires. 2. Seal or crimp the wire with end sleeves. 3. Insert the cable into the push-in terminal as far as it will go. 4. Push the wired connector into the socket of the CPU.

Tools required
3 to 3.5 mm slotted-head screwdriver

124

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.6 Connecting the load current supply
Connection of wires: multi-wire (stranded), without end sleeve, unprocessed
To connect a wire without end sleeve, follow these steps: 1. Strip 8 to 11 mm of the wires. 2. Press the screwdriver into the spring release. Insert the cable into the push-in terminal as
far as it will go. 3. Pull the screwdriver out of the spring release. 4. Push the wired connector into the socket of the CPU.
Loosening a wire
To unplug a wire, follow these steps: 1. Push with the screwdriver as far as it will go into the spring release. 2. Remove the wire from the push-in terminal.
Uninstalling the connection plug
With the screwdriver, pry the connector out of the CPU.

6.6

Connecting the load current supply

Introduction

In the delivery condition of the load current supplies, power connectors are inserted. The modules and the associated power connectors are coded. There are two parts to the coding element. One coding element is located in the module, and the other in the power connector. The load current supplies use identical power connectors for the voltage connection.
The coding element prevents the insertion of a power connector into a different type of load current supply.

Tools required
3 to 3.5 mm screwdriver

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

125

Wiring 6.6 Connecting the load current supply
Connecting the supply voltage to a load current supply
Watch the video sequence (https://support.industry.siemens.com/cs/media/67462859_connecting_supply_web_en/start. htm) To connect the supply voltage, follow these steps: 1. Swing the front cover of the module up until the front cover latches. 2. Press down the unlocking button of the power cable connector (Figure 1). Remove the
power cable connector from the front of the module. 3. Loosen the screw on the front of the connector. This loosens the housing latch and the
cable relief. With a tightened screw the connector's cover can't be removed (Figure 2). 4. Pry off the connector cover using a suitable tool (Figure 3).
Figure 6-4 Connecting the supply voltage to a load current supply (1) 5. Strip the cable sheathing to a length of 35 mm. Strip the wires to a length of 7 to 8 mm.
Attach the end sleeves. 6. Connect the wires in the connector according to the connection diagram (Figure 4). 7. Close the cover (Figure 5). 8. Retighten the screw (Figure 6). This effects a strain relief on the lines.

Figure 6-5 Connecting the supply voltage to a load current supply (2) 9. Insert the power connector into the module, until the latch engages.

126

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Reference

Wiring 6.7 Connecting the CPU to the load power supply
You can find more information on connecting the 24 V DC output voltage of the load current supply in the manuals for the relevant modules.

6.7

Connecting the CPU to the load power supply

Introduction

The load current supply is fitted with a plug-in 24 V DC output terminal (behind the front cover at the bottom). You connect the cables for the supply voltage to the CPU at this terminal.

Requirements

 Only wire the cable connector when the supply voltage is turned off.
 The connector for connecting the supply voltage to the CPU is already fitted. You can find more information in the section Connecting the supply voltage (Page 124).

Tools required
3 to 3.5 mm screwdriver

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

127

Wiring 6.7 Connecting the CPU to the load power supply Connecting the CPU to a load current supply
Watch the video sequence (https://support.industry.siemens.com/cs/media/78027451_S7_1500_gs_wire_web_en/start.h tm) To connect the cables for the supply voltage, follow these steps: 1. Open the front cover of the load current supply. Pull the 24 V DC output terminal down
and off. 2. Wire the 24 V DC output terminal to the wires of the CPU 4-pin connector.
3. Connect the load current supply to the CPU.

128

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.8 Connecting interfaces for communication with S7-1500R

6.8

Connecting interfaces for communication with S7-1500R

Connecting interfaces for communication
Connect the communication interfaces of the CPUs using standardized plug connectors.
Use prefabricated connecting cables for the connection. If you want to prepare communication cables yourself, the interface assignment is specified in the CPU manuals. Observe the mounting instructions for the connectors.

6.8.1

Connecting the PROFINET ring to S7-1500

Introduction

You connect the PROFINET ring between the two R-CPUs at the RJ45 sockets of PROFINET interfaces X1 P1 R and X1 P2 R.

Requirements

 One of the two connections of the PROFINET ring between the two R-CPUs must not contain any other IO devices, switches or other PROFINET devices apart from transparent media converters.
 The default setting in STEP 7 is port 2 at PROFINET interface X1.
­ Connect the PROFINET cable to the ports of the PROFINET interfaces of the two R-CPUs.
­ The maximum length of the PROFINET cable is 100 m.
 You can extend the spatial distance between the two R-CPUs using a media converter (electrical/optical). In this case, the maximum length depends on the type of media converter used. You can find more information in the documentation for the media converter:
­ About the technical specifications
­ About use
­ About commissioning
 You connect the IO devices, switches and other PROFINET devices to the other PROFINET ring connection. The default setting in STEP 7 is port 1 at PROFINET interface X1.

Accessories required
 PROFINET cable for the PROFINET ring  Optional transparent media converter (electrical  optical)

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

129

Wiring 6.8 Connecting interfaces for communication with S7-1500R

Procedure

To connect the PROFINET ring at SIMATIC S7-1500R, follow these steps:
1. Swing the front cover on the R-CPUs up.
2. Plug the PROFINET cable RJ45 connectors into the RJ45 sockets at PROFINET interfaces X1 P2 R on the two R-CPUs.

Figure 6-6 PROFINET interface X1 P2 R: Connecting R-CPUs (bottom view)

130

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.8 Connecting interfaces for communication with S7-1500R
3. Plug the PROFINET cable RJ45 connectors into the RJ45 sockets at PROFINET interfaces X1 P1 R on the two R-CPUs. Connect the other PROFINET devices in the PROFINET ring.

Figure 6-7 PROFINET interface X1 P1 R: 4. Close the front cover on the R-CPUs.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

131

Wiring 6.9 Connecting interfaces for communication with S7-1500H

6.9

Connecting interfaces for communication with S7-1500H

Connecting interfaces for communication
Connect the communication interfaces of the CPUs using standardized plug connectors.
Use prefabricated connecting cables for the connection. If you want to prepare communication cables yourself, the interface assignment is specified in the CPU manuals. Observe the mounting instructions for the connectors.

6.9.1

Connecting redundancy connections (fiber-optic cables)

6.9.1.1

Synchronization modules for S7-1500H

Introduction

You use the synchronization modules to create two redundancy connections between the two H-CPUs. You need two identical synchronization modules per CPU which you connect with fiber-optic cables.

View

Figure 6-8 Synchronization module

Max. cable length (fiber-optic cable) between the two H-CPUs
In the S7-1500H redundant system, you need to use four synchronization modules of the same type. You can order the following types of synchronization modules:

Maximum cable lengths between the two H-CPUs Article number

10 m

6ES7960-1CB00-0AA5

10 km

6ES7960-1FB00-0AA5

Note
With long synchronization cables, the limited speed of light in the cable extends the cycle time (delay of ca. 100 s for 10 km).

132

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H

6.9.1.2

Selecting fiber-optic cables

Introduction

When selecting suitable fiber-optic cables, take the following constraints and conditions into account:  What length of cable do I need?  Is the fiber-optic cable to be laid indoors or outdoors?  Is special protection from mechanical stress required?  Is special protection from rodents required?  Does the outside cable need to be buried directly in the earth?  Does the fiber-optic cable need to be watertight?  To what temperatures will the fiber-optic cable be exposed once laid?

Rules

Observe the following rules:
 If you use fiber-optic cables, ensure sufficient strain relief at the synchronization modules.
 Adhere to the specified ambient conditions for the fiber-optic cables used (bend radii, pressure and temperature).
 Comply with the technical specifications for the fiber-optic cables used (attenuation, bandwidth).

Cables up to 10 m
Use the synchronization module 6ES7960­1CB00­0AA5 in pairs with fiber-optic cables up to 10 m. Select the following specifications with cable lengths of up to 10 m:  50/125 µ or 62.5/125 µ multimode fiber  Patch cable for indoor use  2 x duplex cables per S7-1500H, crossover  LC-LC connector type The following cables are available as accessories for S7-1500H:

Table 6- 3
Length 1 m 2 m 10 m

Fiber-optic cables as accessories
Article number 6ES7960­1BB00­5AA5 6ES7960­1BC00­5AA5 6ES7960­1CB00­5AA5

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

133

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Cables up to 10 km
Use the synchronization module 6ES7960-1FB00-0AA5 in pairs with fiber-optic cables up to 10 km.
For cables over 10 m, you will need to have the fiber-optic cables custom-made. Select the following specifications:
 Single-mode fiber 9/125 µ
In exceptional cases, you can use the cables available as accessories in lengths of up to 10 m for commissioning and testing purposes. For permanent use, however, you must use the cables specified in the table below with single-mode fibers.
Please see the following tables for the other specifications applicable to your specific application.
Table 6- 4 Specifications for fiber-optic cables used indoors

Cabling
Complete cabling routed within a building.
· No cable junction between indoors and outdoors.
· Required cable length is available as one complete length. No distribution boxes required.
· Easy complete installation with preassembled cables.

Necessary components Patch cable
Installation cable

Specifications 2 x duplex cables for the redundant system:
· LC-LC connector type · Crossover cable See also all other specifications applicable to your plant, for example:
· UL approval · Halogen-free
4-core multicore cables for the redundant system:
· LC-LC connector type · Crossover cable See also all other specifications applicable to your plant, for example:

· UL approval · Halogen-free

Installation cable for indoor use 1 cable with 4 cores for the redundant system:

· Both interfaces in one cable
1 or 2 cables with multiple shared cores for the redundant system:

· Interfaces laid separately to increase availability (reduction of common cause factor)
· Connector type ST or SC, for example, in line with the other components
See also other specifications applicable to your plant:

· UL approval

Patch cable for indoors

· Halogen-free Avoid splicing cables in the field.
Use the pre-assembled cables with pulling protection/aids in whiplash or breakout design, including measuring log.
Connector type LC on ST or SC, for example, in line with the other components.

134

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Cabling
Installation through distribution boxes. Additional information can be found in the section below.

Necessary components
· One distribution box/junction box for each branch.
· Connecting the installation and patch cables via the distribution box. Use either ST or SC plug-in connectors.

Specifications Connector type ST or SC, in line with the other components.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

135

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Table 6- 5 Specifications for fiber-optic cables used outdoors

Cabling
A cable junction is required between the indoor and outdoor area.
Additional information can be found in the section below.

Necessary components Installation cable for outdoor use
Installation cable for indoor use also

Specifications Installation cable for outdoor use: · 1 cable with 4 cores per S7-1500H system
Both interfaces in one cable · 1 or 2 cables with multiple shared cores
Interfaces laid separately to increase availability (reduction of common cause factor) · Connector type ST or SC, for example, in line with the other components See also other specifications applicable to your plant: · UL approval · Halogen-free See also other specifications for given local conditions: · Protection from increased mechanical stress · Protection from rodents · Protection from water · Suitable for direct burial · Suitable for the relevant temperature ranges Avoid splicing cables in the field. Use the pre-assembled cables with pulling protection/pulling aids in whiplash design, including measuring log.
· 1 cable with 4 cores per S7-1500H system
Both interfaces in one cable · 1 or 2 cables with multiple shared cores

Patch cable for indoors

Interfaces laid separately to increase availability (reduction of common cause factor)
· Connector type ST or SC, for example, in line with the other components
See also other specifications applicable to your plant:
· UL approval
· Halogen-free Avoid splicing cables in the field. Use the pre-assembled cables with pulling protection/aids in whiplash or breakout design, including measuring log.
Connector type LC on ST or SC, for example, in line with the other components.

136

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Cabling
Installation through distribution boxes
A cable junction is required between the indoor and outdoor area.
Additional information can be found in the section below.

Necessary components

Specifications

· One distribution box/junction Connector type ST or SC, for example, in line with the other

box for each branch.

components.

· Connecting the installation and patch cables via the distribution box. Use either ST or SC plug-in connectors.

Installation of fiber-optic cable through distribution boxes

 H-CPU (CPU 1517H-3 PN)  Additional distribution boxes, if necessary, for example with SC or ST couplers. This allows you
to combine individual sections to achieve the required total length (maximum of 10 km) of fiberoptic cable.
 Patch cable (duplex), for example LC-SC/ST  Distribution box, for example with SC or ST couplers
Figure 6-9 Fiber-optic cables, installation through distribution boxes

6.9.1.3

Installing fiber-optic cables

Introduction

Fiber-optic cables may only be laid by trained specialist personnel. Comply with all applicable regulations and statutory requirements.
In practice, the installation of fiber-optic cables represents the most common cause of errors and failures. These can be caused by:
 Kinks in the fiber-optic cable due to an insufficient bending radius
 Crushing as a result of excessive force caused by persons treading on the cable, by pinching, or by other heavy cables
 Overstretching due to high tensile forces
 Damage caused by sharp edges

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

137

Wiring 6.9 Connecting interfaces for communication with S7-1500H
Quality assurance on site
Check the following points before laying the fiber-optic cables:  Has the correct fiber-optic cable been delivered?  Is there any visible transport damage to the product?  Have you organized suitable intermediate on-site storage for the fiber-optic cables?  Does the category of cable match that of the connecting components?
Storage of fiber-optic cables
Store fiber-optic cables in a place where they are protected from mechanical and thermal factors. Observe the permitted storage temperatures. These are specified in the data sheet for the fiber-optic cable. If possible, do not remove fiber-optic cables from their original packaging until you are about to install them.
Permitted bending radii for pre-assembled cables
You may not go below the following bending radii when laying the fiber-optic cables:  Next to connector: 55 mm  During installation: 60 mm (repeatedly)  After installation: 40 mm (once)
Open installation, wall breakthroughs, cable ducts
Note the following points when laying fiber-optic cables:  Fiber-optic cables can be installed in open locations provided you can safely exclude any
damage in those areas (vertical risers, connecting shafts, telecommunications switchboard rooms, etc.).  Attach fiber-optic cables to mounting rails, for example cable trays or wire mesh ducts, using cable ties. Take care not to crush the cables when fastening them. Make sure there is not too much pressure on the fiber-optic cables.  Before laying the fiber-optic cables: Deburr the edges of the holes. Round the holes. This prevents damage to the sheathing when you pull in and fasten the cable.  The bending radius must not be smaller than the value specified by the manufacturer.  The branching radii of the cable ducts must correspond to the specified bending radius for the fiber-optic cable.  Lay the redundancy connections so that the fiber-optic cables are securely protected from damage.  Always lay the two redundancy connections separately. Laying the connections separately increases availability and protects against undefined system states. An undefined system state occurs when the two redundancy connections are interrupted simultaneously in a time period of  1500 ms.

138

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Pressure

Do not exert any pressure on the cable, for example by the inappropriate use of clamps (cable quick-mount) or cable ties. Do not step on the fiber-optic cable.

Heat

The cables are sensitive to direct heat. Hot air guns and gas burners as used in heat-shrink tubing must not be used on the fiber-optic cables.

6.9.1.4

Connecting redundancy connections (fiber-optic cables) to S7-1500H

Introduction

Make the redundancy connections (fiber-optic cables) between the two H-CPUs using the sockets on the synchronization modules. You need two synchronization modules per CPU. Connect the synchronization modules in pairs to the fiber-optic cables.

Requirements

 The redundancy connections (fiber-optic cables) must not include any additional media converters, IO devices or switches. Distribution boxes (Page 133) are allowed.
 The redundancy connections can be a maximum of 10 m/10 km long.

Accessories required
 4 synchronization modules 2 synchronization modules for each H-CPU
­ Up to 10 m: Sync module 1 GB FO 10 m
­ Up to 10 km: Sync module 1 GB FO 10 km
 2 redundancy connections sync cable FO. The redundancy connections can be ordered in the following lengths. You can find the article numbers in the appendix Accessories/spare parts (Page 315).
­ For sync module 1 GB FO 10 m: 1 m, 2 m, 10 m
­ For sync module 1 GB FO 10 km: On request

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

139

Wiring 6.9 Connecting interfaces for communication with S7-1500H
Safety information
WARNING Personal injury or material damage can occur in zone 2 hazardous areas If you remove or attach a synchronization module during operation, personal injury and damage can occur in hazardous areas of zone 2. Always disconnect the R/H-CPU from the power supply before you remove or attach a synchronization module in hazardous areas of zone 2.
CAUTION The synchronization module contains a laser system and is classified as a "CLASS 1 LASER PRODUCT" in accordance with IEC 60825-1. Can cause personal injury. Avoid direct eye contact with the laser beam. Do not open the housing. Read the information in the system manual carefully.
Figure 6-10 Class 1 laser products

140

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H Inserting synchronization modules and connecting fiber-optic cables To insert the synchronization modules and connect the fiber-optic cables, follow these steps: 1. Remove the blanking plugs from the synchronization modules. 2. Push the two synchronization modules up into the module slots at the H-Sync interfaces X3 (port 1) and X4 (port 1) as far as they will go. You should hear the synchronization modules click into place. Then push the clip on each synchronization module to the left. Result: The synchronization modules are locked into place.
Figure 6-11 Inserting and locking synchronization modules

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

141

Wiring 6.9 Connecting interfaces for communication with S7-1500H
3. Hold the pre-assembled connectors of the redundancy connection by the housing. Push the connectors into the sockets of the synchronization modules. You should hear the connectors click into place.
4. Repeat steps 1 to 3 for the second H-CPU.

Figure 6-12 Connecting redundancy connections (fiber-optic cables) to S7-1500H
Uninstalling a synchronization submodule
To uninstall the synchronization modules, follow these steps: 1. Press down lightly on the connector release and hold while pulling the connector out of
the synchronization module. 2. Flip the synchronization module clip to the right. 3. Pull the synchronization module out of the H-Sync interface on the CPU. 4. Place the blanking plug on the synchronization module. 5. Repeat the process for all H-Sync interfaces on the H-CPUs.

142

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Wiring 6.9 Connecting interfaces for communication with S7-1500H
Protecting LC sockets on unused synchronization modules
Protect the LC sockets when storing unused synchronization modules: Close off the LC sockets with the blanking plugs to protect them from dirt. The synchronization modules come with blanking plugs inserted.
NOTICE Reduced optical performance due to dirt Even a small amount of dirt in the LC socket can affect the quality of the signal transmission. Dirt can lead to synchronization losses in operation. Protect the LC sockets from contamination during storage and installation of the synchronization modules.

6.9.2

Connecting the PROFINET ring to S7-1500H

Introduction

You connect the PROFINET ring using the RJ45 sockets of PROFINET interfaces X1 P1 R and X1 P2 R.

Accessories required
PROFINET cable for the PROFINET ring

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

143

Wiring 6.9 Connecting interfaces for communication with S7-1500H

Procedure

Plug the RJ45 connectors on the PROFINET cable in the PROFINET ring into the RJ45 sockets at PROFINET interfaces X1 P1 R/X1 P2 R on the two H-CPUs.

Figure 6-13 Connecting the PROFINET ring to S7-1500H 144

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration

7

7.1

Configuring the CPU

Hardware and software requirements
You will find the hardware and software requirements for operating S7-1500R/H redundant systems in the section Application planning (Page 58).

7.2

Configuration procedure

The following section takes you through the configuration process for an S7-1500R redundant system step by step. The configuration consists of two CPUs 1515R-2 PN and two IO devices (ET 200MP and ET 200SP).

Requirements

The configuration detailed assumes that:  You have set the IP address of the PG/PC.

1. Creating a project and R-CPUs
1. Create a new project in STEP 7. Give the project a name. 2. Select CPU 1515R-2 PN from the hardware catalog in the network view of the hardware
configuration. 3. Drag and drop the CPU to the task window in the network view. Result: STEP 7 automatically creates both 1515R-2 PN CPUs for the redundant system. STEP 7 displays both CPUs in the network view graphically.
Note Deleting CPUs from the hardware configuration You can only delete the two CPUs as a pair.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

145

Configuration 7.2 Configuration procedure
Figure 7-1 Display of CPUs in the network view 1. Open the CPUs in the device view. In the device view, the first CPU and the second CPU
are each in slot 1. 2. Give the CPUs unique names under Properties.
2. Assigning IP addresses (device IP addresses)
STEP 7 automatically assigns an IP address to each PROFINET interface of a CPU. You can also assign the IP addresses manually. For PROFINET interface X1 of the CPUs, the IP addresses must be located in the same subnet. The IP address is displayed in the CPU properties, in the "PROFINET interface [X1]" area of the "IP protocol" section.
Figure 7-2 IP address

146

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration 7.2 Configuration procedure
Redundancy IDs In the STEP 7 project tree, each of the two CPUs is displayed with its own tree in the redundant system:

Figure 7-3 Redundant system in the project tree
Each CPU of the redundant system has a redundancy ID. The redundancy ID is used to assign a project tree in STEP 7 to the real CPU. The top CPU of the two in the tree is always the CPU with the redundancy ID "1". The bottom CPU has the redundancy ID "2".
If a CPU has a valid hardware configuration and you change the redundancy ID of that CPU, you also change the CPU's name and IP addresses. You can find more information in the section Redundancy IDs (Page 193).
3. Assigning system IP addresses
In addition to the device IP addresses of the CPUs, you can also assign system IP addresses for the S7-1500R/H redundant system.
You use the system IP addresses for communication with other devices (for example, HMI devices, CPUs, PG/PC). The devices always communicate over the system IP address with the primary CPU of the redundant system. This ensures, for example, that the communication partner can communicate with the new primary CPU (previously backup CPU) in the RUN-Solo system state after failure of the original primary CPU in redundant operation.
Proceed as follows to activate the system IP address for PROFINET interfaces X1 of the two CPUs:
1. Select a CPU in the network view. Select the "Properties" tab in the Inspector window.
2. Select the area "PROFINET interface [X1]" and the section "System IP address for switched communication" in the area navigation.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

147

Configuration 7.2 Configuration procedure
3. Make sure that the checkbox "Enable the system IP address for switched communication" is selected for the interface X1. Apply or assign the system IP address in the "IP address" field. The subnet mask cannot be modified and corresponds to the subnet mask of the device IP address.
4. Apply or assign a virtual MAC address to the system IP address. The virtual MAC address is 6 bytes long. The assignment of the bytes is hexadecimal.
Note Virtual MAC address Ensure that all MAC addresses stored in the Ethernet broadcast domain are unique. This applies in particular to systems with third-party devices consisting of VRRP and redundant systems that are configured through several STEP 7 projects.
5. The other CPU applies the settings automatically.

Figure 7-4 System IP address
You can find more information on the system IP address in the Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925).
4. Setting the cycle monitoring time
STEP 7 assigns default values for the minimum and maximum cycle times. The default values are displayed in the "Cycle" area of the CPU properties.
Note Set cycle time high Select the maximum cycle time as high as your process allows. · The time for the ongoing synchronization of the two CPUs in redundant operation is
included in the cycle time. · A temporary increase in the cycle time can occur upon a system state transition SYNCUP
 RUN-Redundant. If only one CPU controls the process (RUN-Solo system state), the cycle time is significantly shorter than during redundant operation.
You can find more information on the cycle time and recommendations for parameterization of the maximum cycle time and the minimum cycle time in the Cycle and response times function manual (http://support.automation.siemens.com/WW/view/en/59193558). You can find information on system states in the section Operating and system states (Page 205).

148

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration 7.2 Configuration procedure
5. Creating IO devices
In the example, you add two IO devices with system redundancy S2 to the R-CPUs. To do so, proceed as follows: 1. Switch to the network view. 2. Drag the interface module IM 155-5 PN HF to the task window as an IO device from the
hardware catalog. 3. Drag the required modules to the corresponding slots in the IO device. 4. Select the second IO device, IM 155-6 PN HF, in exactly the same way. 5. Assign the required modules.
6. Assigning IO devices to the redundant system
To assign IO devices to the S7-1500R/H redundant system, connect every IO device to each CPU. To do so, proceed as follows: 1. Drag-and-drop a line between the PROFINET interface of IM 155-5 PN HF and
PROFINET interface X1 of the left-hand CPU. 2. Drag-and-drop a line between the PROFINET interface of IM 155-5 PN HF and
PROFINET interface X1 of the right-hand CPU. 3. Assign the second IO device, IM 155-6 PN HF, to the two CPUs in exactly the same way.
Set the watchdog timer for the second IO device. Result: The IO devices are connected to the redundant S7-1500R/H system.

Figure 7-5 IO devices assigned in the network view with system redundancy

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

149

Configuration 7.2 Configuration procedure
Note If you have configured modules for the IO devices and compile the project, you receive an error message for the watchdog timer in the Inspector window. Set the watchdog timer indicated in the error message.
Display of the IO device assignments in STEP 7 Regardless of whether an IO device is connected as system redundant or as standard IO device to the redundant S7-1500R/H system, the network view always shows "Multi assigned". To determine which IO devices are connected system redundant and which ones are connected as standard IO devices, follow these steps: 1. In the network view of STEP 7, select the redundant S7-1500R/H system. 2. In the tabular view of the network view switch to "I/O communication". The table contains all assignments of IO devices to the PROFINET interfaces of the redundant S7-1500R/H system. The "Operating mode" column indicates how the IO device is connected to the redundant S7-1500R/H system:  IO device (S2): IO device is connected system redundant.  IO device (S1): IO device is connected over the "Switched S1 device" function. The following figure shows how STEP 7 displays the two IO devices with system redundancy S2 in the tabular view of the network view.

Figure 7-6 Display of the IO device assignments in STEP 7
7. MRP role of the CPUs in the S7-1500R/H redundant system
As soon as you create an S7-1500R/H redundant system in STEP 7, STEP 7 automatically assigns the MRP role "Manager (auto)" to the PROFINET interfaces X1 of both CPUs.

150

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration 7.2 Configuration procedure
8. Defining the MRP role for additional devices in the ring in STEP 7
Proceed as follows to define the media redundancy for additional devices in the ring: 1. In the network view of STEP 7, select PROFINET interface X1 of one of the two CPUs of
the S7-1500R/H redundant system. 2. In the Inspector window, navigate to "Properties" > "General" > "Advanced options" >
"Media redundancy". 3. Click the "Domain settings" button.

Figure 7-7 S7-1500R/H: MRP role "Manager (auto)"
In the Inspector window, STEP 7 displays the properties of the MRP domain in which PROFINET interface X1 of the CPU is located. 4. In the "MRP role" column of the "Devices" table, assign the MRP role "Client" to all other devices.

Figure 7-8 S7-1500R/H: Assigning MRP roles to ring devices

9. Configuring devices outside the STEP 7 project
Set the MRP role "Client" for devices in the ring that are not located in STEP 7. Example: For a switch, set the MRP role "Client" via the Web interface of the switch.

Reference

You can find information on the PROFINET topologies of S7-1500R/H redundant systems in the PROFINET function manual. (http://support.automation.siemens.com/WW/view/en/49948856)

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

151

Configuration 7.3 Project tree

7.3

Project tree

Structure of the project tree
In the project tree, STEP 7 creates the project tree for the CPUs. The project tree has a tree structure and contains all elements and editors of the project.

Table 7- 1 Structure of the project tree

Below the H system, you will find the device configuration and diagnostic options that apply to the system as a whole.

The CPU displayed in the upper section of the project tree has the redundancy ID "1". The properties of the CPU are displayed below it.
This section also contains other properties of the redundant system, the user program and other system-related project items.
The IO devices assigned to the CPU are listed under "Distributed I/O".

The CPU in the lower section of the project tree has the redundancy ID "2". The properties of the CPU are displayed below it. The IO devices assigned to the CPU are listed under "Distributed I/O".
All distributed I/O devices used are listed under "Ungrouped devices".

152

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration 7.4 Parameters

7.4

Parameters

"Parameter assignment" means setting the module properties. This includes setting addresses, enabling alarms and defining communication properties.

You assign the property parameters for the CPUs in the area navigation, in the STEP 7 Inspector window. The CPUs have general parameters and R/H-specific parameters. Some parameters must be identical for both CPUs. STEP 7 applies these parameters to the second CPU. Other parameters must be different on each CPU (for example device IP addresses). If your configuration is not consistent, STEP 7 will point out the conflict.

Reference

You can find a detailed description of all CPU parameters in the STEP 7 online help.

7.5

Process images and process image partitions

7.5.1

Process image - overview

Process image inputs and outputs
The process image of the inputs and outputs is an image of the signal states. The CPU transfers the values from the input and output modules to the process image inputs and outputs. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then transfers the signal states of the input modules to the process image inputs.

Advantages of the process image
A consistent map of the process signals is available via the process image during cyclic program execution. If a signal state at an input module changes during program execution, the signal state is retained in the process image. The CPU does not update the process image until the next cycle.

Consistency of the process image
When the process image is updated, the S7-1500R/H redundant system accesses the data of each submodule as consistent data. This behavior is identical to that of S7-1500 CPUs.
The maximum data width that is accessed as consistent data for each submodule depends on the IO system. For PROFINET IO, for example, this data width is 1024 bytes.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

153

Configuration 7.5 Process images and process image partitions
32 process image partitions
The CPU uses process image partitions to synchronize the updated inputs/outputs of specific modules with specific parts of the user program.
In the S7-1500R/H redundant system, the overall process image is subdivided into up to 32 process image partitions (PIP).
The CPU automatically updates the TPA 0 (automatic update) at the beginning of each program cycle. You can find additional information in the Cycle and response times (http://support.automation.siemens.com/WW/view/en/59193558) function manual.
You can assign other OBs to process image partitions PIP 1 to PIP 31 during configuration of the IO devices.
The CPU always reads the process image partition of the inputs (PIPI) before processing the associated OB. The CPU outputs the process image of the outputs (PIPQ) at the end of the OB.
The figure below illustrates the updating of a process image partition.

Figure 7-9 Updating a process image partition

7.5.2

Updating process image partitions in the user program

Requirements

Alternatively, you can also use the following instructions to update process images:
 "UPDAT_PI" instruction
 "UPDAT_PO" instruction
You will find the instructions in STEP 7 in the "Instructions" task card under "Extended instructions". The instructions can be called from any point in the user program.
Requirements for updating process image partitions with the "UPDAT_PI" and "UPDAT_PO" instructions:
 The process image partitions must not be assigned to any OB. This means the process image partitions are not automatically updated.

Note Update of PIP 0
PIP 0 (automatic update) cannot be updated with the "UPDAT_PI" and "UPDAT_PO" instructions.

154

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Configuration 7.5 Process images and process image partitions
UPDAT_PI: Updates the process image partition of the inputs
With this instruction, you read the signal states from the input modules of the IO devices to the process image partition of the inputs (PIPI).
UPDAT_PO: Updates the process image partition of the outputs
With this instruction, you transfer the process image partition (PIP) of the outputs to the output modules of the IO devices.
Direct I/O access to the inputs and outputs of the IO devices
You also have direct read and write access to the I/O as an alternative to access via the process image, should direct access be required for programming reasons. Direct (write) I/O access also writes to the process image. This prevents a subsequent output of the process image from again overwriting the value written by direct access.
Note Avoid direct I/O access. Each instance of direct I/O access is synchronized in the RUNRedundant system state and results in a higher cycle time. Recommendation: Access the inputs and outputs of the IO devices over the process image or process image partitions.

Reference

You can find more information on process image partitions in the Cycle and response times (http://support.automation.siemens.com/WW/view/en/59193558) function manual.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

155

Basics of program execution

8

8.1

Programming the S7-1500R/H

User program for the S7-1500R/H redundant system
For the design and programming of the user program, the same rules apply for the redundant S7-1500R/H system as for the S7-1500 automation system.
The user program is stored identically in both CPUs in redundant operation. Both CPUs process the user program event-synchronously.
From the point of view of user program execution, the S7-1500R/H redundant system behaves like the S7-1500 automation system. Synchronization is integrated into the operating system and runs automatically and hidden between the primary and backup CPU.

Specific instructions and blocks for the S7-1500R/H redundant system
Specific instructions and OBs are available for the S7-1500R/H redundant system.
The "RH_CTRL" instruction is used to disable SYNCUP or to enable the running of the SYNCUP. The goal is, to allow SYNCUP only in less critical process phases if necessary (see section Disabling/enabling SYNCUP with the RH_CTRL instruction (Page 165) for more information).
You use the instruction "RH_GetPrimaryID" in the user program to read out which CPU is currently the primary CPU (see section Determining the primary CPU with "RH_GetPrimaryID" (Page 168) for additional information).
In addition to the OBs of the S7-1500 CPU, you can also use OB 72 (CPU redundancy error). OB 72 is called when the S7-1500R/H redundant system has reached or left the RUNRedundant system state.

Special features in program execution
 You create the user program for the S7-1500R/H redundant system in the top CPU (for example PLC_1) in the STEP 7 project tree.
 The S7-1500R/H redundant system does not support some of the instructions the S7-1500 CPUs. Instructions that are not supported by the S7-1500R/H redundant system are grayed out in STEP 7 in the "Instructions" task card. STEP 7 shows the instructions that are not supported in the program code in red. If you compile program code with instructions that are not supported, STEP 7 outputs an error message. The instructions that are not supported are set out in the section Restrictions (Page 157).

156

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.2 Restrictions
 In the case of instructions with the "LADDR" block parameter, you use this parameter to determine which of the two CPUs is the target of this instruction. Example: To read out the I&M data of the CPU with redundancy ID 1, specify the HW identifier 65149 (or the "Local1" system constant) at the "LADDR" block parameter of the Get_IM_Data instruction. You can find more information about the block parameters and the system constants of the S7-1500R/H redundant system in the STEP 7 online help.
 In the case of a SYNCUP, the execution time of many instructions operating asynchronously is extended.
 In contrast to the S7-1500 automation system, the redundant S7-1500R/H system initializes temporary local data for functions (FCs) not only during optimized block access but also during non-optimized block access. Information on system initialization for optimized block access can be found in the STEP 7 online help.
Programming style guide
The programming guidelines described in the programming style guide help you to create a uniform program code. You can better maintain and reuse the uniform program code. This allows you to detect or avoid errors early on, for example, through compilers.
The programming style guide is available on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478084).

8.2

Restrictions

Instructions not supported

Table 8- 1 Unsupported instructions CPU 1513R / CPU 1515R / CPU 1517H with firmware version V2.8

Instruction Communication GET PUT USEND URCV BSEND BRCV T_CONFIG TMAIL_C (V5.0 or later)1) OPC_UA_Connect OPC_UA_NamespaceGetIndexList OPC_UA_NodeGetHandleList OPC_UA_MethodGetHandleList OPC_UA_TranslatePathList

Description
Read data from a remote CPU Write data to a remote CPU Send data uncoordinated Receive data uncoordinated Send data in segments Receive data in segments Configure interface Transfer email Create connection Read namespace indexes Get handles for read and write access Get handles for method calls Read node parameters

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

157

Basics of program execution 8.2 Restrictions
Instruction OPC_UA_ReadList OPC_UA_WriteList OPC_UA_MethodCall OPC_UA_NodeReleaseHandleList OPC_UA_MethodReleaseHandleList OPC_UA_Disconnect OPC_UA_ConnectionGetStatus OPC_UA_ServerMethodPre OPC_UA_ServerMethodPost WWW S_USSI FTP_CMD Extended instructions SET_TIMEZONE2) SNC_RTCB SYNC_PI SYNC_PO D_ACT_DP ReconfigIOSystem WR_REC RD_REC RCVREC PRVREC DPSYC_FR DPNRM_DG DP_TOPOL PE_WOL PE_I_DEV WR_DPARM ATTACH DETACH RecipeExport RecipeImport DataLogCreate DataLogOpen DataLogWrite DataLogClear DataLogClose DataLogDelete DataLogNewFile CREATE_DB READ_DBL
158

Description Read tags Write tags Call method Enable handles for read and write access Enable handles for method calls Close connection Read connection status Preparation of the server method call Post preparation of the server method call Synchronize user pages Initialize USS Setup of FTP connections from and to an FTP server
Set time zone Synchronize slave clocks Synchronize process image inputs Synchronize process image outputs Enable/disable DP slaves Reconfigure IO system Write data record to I/O (use new block WRREC) Read data record from I/O (use new block RDREC) Receive data record (I-device) Make data record available (I-device) Synchronize DP slaves/Freeze inputs Read diagnostics data from a DP slave Determine topology for DP master system Start and end energy-saving mode via WakeOnLan Control PROFIenergy commands in I-Device Transfer data record Attach OB to interrupt event Detach OB from interrupt event Export recipe Import recipe Create data log Open data log Write data log Empty data log Close data log Delete data log Data log in new file Create data block Read from data block in load memory
S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.2 Restrictions

Instruction WRIT_DBL DELETE_DB FileReadC FileWriteC SET_CLKS Basic instructions ReadFromArrayDBL WriteToArrayDBL Technology All instructions for Motion Control (MC_Power, MC_Home, MC_...) TIO_SYNC

Description Write from data block in load memory Delete data block Read file from memory card Write file on memory card Set time of day and time-of-day status
Read from ARRAY data block in load memory Write to ARRAY data block in load memory
-
Synchronize TIO modules

1) The S7-1500R/H CPUs with firmware version V2.8 support the versions < V5.0 of the instruction "TMAIL_C". 2) Upon a call in the CPU, the instruction provides a negative return value RETVAL.

Unsupported OBs
The CPUs of the S7-1500R/H redundant system do not support the following OBs:  Synchronous cycle interrupt OB  OB 67 "MC-PreServo"  OB 91 "MC-Servo"  OB 92 "MC-Interpolator"  OB 95 "MC-PostServo"

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

159

Basics of program execution 8.3 Events and OBs

8.3

Events and OBs

Start events

The table below gives an overview of the possible event sources for start events and their OBs:

Table 8- 2 Start events

Event sources
Startup Cyclic program Time-of-day interrupt Time-delay interrupt Cyclic interrupt
Hardware interrupt Status interrupt Update alarm Manufacturer-specific or profilespecific interrupt CPU redundancy error Time error Maximum cycle time exceeded
Diagnostics interrupt Removal/insertion of modules Rack error Programming error (only for global error handling) I/O access error (only for global error handling)

Possible priorities (default priority) 1 1 2 to 24 (2) 2 to 24 (3) 2 to 24 (8 to 17, frequency dependent) 2 to 26 (16) 2 to 24 (4) 2 to 24 (4) 2 to 24 (4)
2 to 26 (26) 22
2 to 26 (5) 2 to 26 (6) 2 to 26 (6) 2 to 26 (7)
2 to 26 (7)

Possible OB numbers 100,  123 1,  123 10 to 17,  123 20 to 23,  123 30 to 38,  123

Default system response1) Ignore Ignore Not applicable Not applicable Not applicable

40 to 47,  123 55 56 57

Ignore Ignore Ignore Ignore

72

Ignore

80

Ignore

Depends on system state2)

82

Ignore

83

Ignore

86

Ignore

121

STOP

122

Ignore

1) If you have not configured the OB. 2) See section "Response of S7-1500R/H redundant system when cycle time is exceeded"

Number of OBs
0 to 100 0 to 100 0 to 20 0 to 20 0 to 20
0 to 50 0 or 1 0 or 1 0 or 1
0 or 1 0 or 1
0 or 1 0 or 1 0 or 1 0 or 1
0 or 1

160

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.3 Events and OBs
Response to start events
The occurrence of a trigger results in the following response:  If the event comes from an event source to which you have assigned an OB, this event
triggers the execution of the assigned OB. The event enters the queue according to its priority (exception: hardware interrupts).  If the event comes from an event source to which you have not assigned an OB, the CPU executes the default system reaction.
Note Some event sources, such as startup, pull/plug, exist even if you do not configure them.
Response of OB 72 and OB 86 to system state transitions
If an IO device has failed, the OB 86 reports a "rack failure" if programmed. OB 72 "CPU redundancy error" reports a loss of redundancy in the redundant system. The figure below shows the behavior of the two OBs during system state transitions from RUN-Solo to RUN-Redundant and vice versa.

Figure 8-1 OB 72 and OB 86 during system state transitions

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

161

Basics of program execution 8.3 Events and OBs
OB 86 There are three IO devices in the example. Each failure of one of the three IO devices is followed by recovery of the IO device. Each IO device failure/IO device recovery is signaled. Cyclic program execution is interrupted with an OB 86 call. In the "Copy main memory" phase of the SYNCUP system state those OBs that interrupt the cyclic program processing are processed. New diagnostic events are signaled but the OBs are not yet processed. In the example, the failure of IO device 2 and the recovery of IO device 3 are signaled. However, the OB 86 are not processed until the following phase, "Making up backup CPU lag".
Note Order of execution of OB 86 Please note that the order of processing of the OB 86 may differ from the order of processing of the associated diagnostic events.
Note Station re-integration with errors When a station returns with errors in an R/H-CPU, no attempt is made - in contrast to a standard CPU - to output exact error information in the diagnostic buffer.
OB 72 If the system then switches to the RUN-Redundant system state, OB 72 "CPU redundancy error" is called. If the redundant system exits redundant operation and changes to the RUNSolo system state, OB 72 is called again. The two cases can be distinguished by the start information of OB 72. You can find further information in the STEP 7 online help.
Note Delayed execution of OB 72 There may also be a delay in executing OB 72 because the corresponding diagnostic event is processed asynchronously to the user program.
OB behavior for standard IO devices with primary backup switching
If the primary CPU fails or goes to STOP, the standard IO devices are temporarily separated from the redundant S7-1500R/H system. From the CPU perspective, the standard IO devices fail. OB 72 "Redundancy error" is called, additional OB 86 "Module rack failure" for the failed IO devices are not called, however. To detect the failed IO devices, call the DeviceStates instruction in OB 72. To detect all failed IO devices, the OB 72 must have priority 26 (default). With the "Switched S1 device" function, the new primary CPU establishes the ARs to the standard IO devices again. OB 86 is called for each return of an IO device.

162

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.3 Events and OBs

Example: OB 72 CPU redundancy failure
Automation task You use the S7-1500R redundant system to control a blast furnace. The S7-1500R redundant system controls the blast furnace temperature, volume and pressure parameters.
Feature In the event of a loss of redundancy, for example because the primary CPU fails, a signal lamp in the blast furnace control room signals this event. The control room notifies the service personnel. The service personnel replace the defective CPU.
Solution OB 72 is called in the event of a CPU redundancy error. The user program in OB 72 controls a digital output module (relay) in an ET 200SP with a connected signal lamp.

Response of S7-1500R/H redundant system when cycle time is exceeded
The tables below show how the redundant system responds when the cycle time is exceeded.
If the user program does not reach the cycle control point within the maximum cycle time, the redundant system responds as described in the column "1st time cycle time is exceeded". The redundant system then resets the cycle-time monitoring.
If the maximum cycle time is exceeded for a second time in the same cycle, the redundant system responds as described in the column "2nd time cycle time is exceeded". The redundant system then resets the cycle time.
If the maximum cycle time is exceeded for a third time in the same cycle, the redundant system responds as described in the column "3rd time cycle time is exceeded". The redundant system then resets the cycle time (only when time error OB 80 is configured).

Table 8- 3 Response of S7-1500R/H redundant system when cycle time is exceeded, without OB 80

Initial situation

System

Primary CPU

Backup CPU

RUN-Solo

RUN

STOP

SYNCUP

RUNSyncup

SYNCUP

RUN-

RUN-

RUN-

Redundant Redundant Redundant

1st time cycle time is exceeded

System

Primary CPU

Backup CPU

STOP

STOP

STOP

RUN-Solo RUN 1)

STOP 1)

RUN-Solo

RUN

STOP

2nd time cycle time is exceeded

System

Primary CPU

Backup CPU

---

---

---

STOP

STOP

STOP

STOP

STOP

STOP

1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the restart of the backup CPU, the primary CPU also goes into STOP mode and a running SYNCUP is aborted.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

163

Basics of program execution 8.3 Events and OBs

Table 8- 4 Response of S7-1500R/H redundant system when cycle time is exceeded with OB 80

Initial situation

1st time cycle time is exceeded

System

Primary CPU

Backup CPU

System

Primary CPU

Backup CPU

RUNSolo SYNCUP
RUNRedun-
dant

RUN
RUNSyncup RUNRedun-
dant

STOP

RUNSolo

RUN

STOP

SYNCUP SYNCUP RUN- SYNCUP

Syncup 1)

1)

RUNRedun-
dant

RUNRedun-
dant

RUNRedun-
dant

RUNRedun-
dant

2nd time cycle time is exceeded

System Primary Backup

CPU

CPU

STOP STOP STOP

RUNSolo
RUNSolo

RUN RUN

STOP STOP

3rd time cycle time is exceeded

System Primary Backup

CPU

CPU

---

---

---

STOP STOP STOP

STOP STOP STOP

1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the restart of the backup CPU, the primary CPU also goes into STOP mode and a running SYNCUP is aborted.

Assignment between event source and OBs
The type of OB determines where you assign OB to event source:
 For hardware interrupts: Assignment in hardware configuration
 For all other OB types: Assignment when the OB is created, where applicable after you have configured the event source

OB priority and runtime behavior
If you have assigned an OB to the event, the OB has the priority of the event. S7-1500R/H CPUs support the priorities 1 (lowest) to 26 (highest). The following items are essential to the execution of an event:
 Call and execution of the assigned OB
 The update of the process image partition of the assigned OB
The user program processes the OBs exclusively on a priority basis. This means the program processes the OB with the highest priority first when multiple OB requests occur at the same time. If an event occurs that has a higher priority than the currently active OB, this OB is interrupted*. The user program processes events of the same priority in order of occurrence.
*Exception: In the RUN-Redundant system state, a higher-priority OB 83 "Pull/plug modules" does not interrupt the execution of an OB 82 "Diagnostic interrupt".

Note
Communication
Communication (for example test functions with the PG/PC) always operates with a priority of 15. To avoid unnecessarily prolonging the program runtime in the case of time-critical applications, make sure that these OBs are not delayed or interrupted by communication. Assign a priority > 15 for these OBs.

Reference

Additional information on organization blocks is available in the STEP 7 online help.

164

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.4 Special instructions for S7-1500R/H redundant systems

8.4

Special instructions for S7-1500R/H redundant systems

8.4.1

Disabling/enabling SYNCUP with the RH_CTRL instruction

Introduction

You use the "RH_CTRL" instruction to disable SYNCUP or to enable the execution of the SYNCUP for the S7-1500R/H redundant system. The disable applies:
 Until you cancel it with the "RH_CTRL" instruction or
 Until the S7-1500R/H redundant system switches to the STOP system state

Figure 8-2 RH_CTRL instruction

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

165

Basics of program execution 8.4 Special instructions for S7-1500R/H redundant systems
Example: Disabling/enabling SYNCUP for a baggage handling system
Automation task A baggage handling system at an airport is used to distribute pieces of baggage. When a flight lands, all baggage is loaded onto the baggage handling system. The baggage passes through a scanner at high speed. The scanner checks the destination of the baggage:  If a piece of baggage has reached its destination airport, the baggage handling system
forwards it directly to baggage claim.  If a piece of baggage has not reached its final destination, the system immediately
redirects it towards the connecting flight.

 Scanner  Deflector
Figure 8-3 Airport baggage handling system
To ensure high availability for the baggage handling system, you use an S7-1500R/H redundant system as controller. If one of the CPUs fails (loss of redundancy), the S7-1500R/H redundant system switches from the RUN-Redundant system state to RUNSolo. A CPU continues to ensure the control of the baggage handling system, but no second redundant CPU is available.
Replace the failed CPU with a replacement CPU. The procedure for replacing the CPU is described in the section Replacing defective R/H-CPUs (Page 269).
As soon as you set the exchanged CPU to RUN, the R/H-System responds as follows:
 The replaced CPU (Backup CPU) switches to SYNCUP operating state and sends a corresponding status message to the primary CPU.
 The primary CPU then switches from the RUN operating state to RUN-Syncup.
 The S7-1500R/H redundant system then does a SYNCUP.

166

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Reference

Basics of program execution 8.4 Special instructions for S7-1500R/H redundant systems
During SYNCUP, the user program of the primary CPU runs through a cycle with an extended cycle time. In this cycle, there is a delay before the redundant system responds to input signal changes. If a piece of baggage passes the scanner during the SYNCUP, the redundant system only responds to the scanner after the extended cycle described above. In the worst case scenario, the piece of baggage has already passed the deflector before the system responds. The piece of baggage is then moved to baggage claim rather than to the connecting flight.
Feature You need the "RH_CTRL" instruction, which allows you to disable and enable the execution of the SYNCUP as required.
Solution You use the "RH_CTRL" instruction to disable the execution of the SYNCUP system state for the S7-1500RH redundant system. If the disable is no longer required, you enable the execution of the SYNCUP again with the "RH_CTRL" instruction. Disable the execution of the SYNCUP to avoid a long program cycle when the baggage handling system is operating at or near capacity. To do so, call the "RH_CTRL" instruction with block parameter MODE = 3 in the user program. Replace the failed CPU with a replacement CPU. As soon as you set the exchanged CPU with disabled SYNCUP to RUN, the R/H-System responds as follows:  The exchanged CPU (Backup CPU) shows the SYNCUP state.  The Primary CPU then displays the RUN-Syncup state.  The redundant system switches to the SYNCUP system state. The redundant system is
not yet running a SYNCUP. As soon as the baggage handling system is operating at low capacity, for example at night, enable the SYNCUP system state. To do so, call the "RH_CTRL" instruction with block parameter MODE = 4 in the user program. The redundant system runs a SYNCUP. The redundant system then switches to the RUN-Redundant system state. Now disable SYNCUP again by calling the "RH_CTRL" instruction in the user program with the block parameter MODE = 3.
You can find additional information on the "RH_CTRL" instruction in the STEP 7 online help. You can find more information on SYNCUP in the section SYNCUP system state (Page 213).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

167

Basics of program execution 8.4 Special instructions for S7-1500R/H redundant systems

8.4.2

Determining the primary CPU with "RH_GetPrimaryID"
You use the "RH_GetPrimaryID" instruction to read out which CPU is currently the primary CPU. The instruction outputs the redundancy ID of the primary CPU at the Ret_Val block parameter.

Figure 8-4 "RH_GetPrimaryID" instruction

Example: Reading maintenance information from the SIMATIC memory card of the primary CPU
Proceed as follows to read specific maintenance information from the SIMATIC memory card of the primary CPU:
1. Get the redundancy ID of the primary CPU with "RH_GetPrimaryID".
2. Read the maintenance information from the SIMATIC memory card of the primary CPU with "GetSMCInfo".
­ If the CPU with redundancy ID 1 is the primary CPU, enter "12" at the Mode block parameter ("1" for redundancy ID, "2" for maintenance information).
­ If the CPU with redundancy ID 2 is the primary CPU, enter "22" at the Mode block parameter ("2" for redundancy ID, "2" for maintenance information).

Reference

You can find more information on the "RH_GetPrimaryID" instruction in the STEP 7 online help.

168

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.5 Asynchronous instructions

8.5

Asynchronous instructions

Introduction

During program execution a distinction is made between synchronous and asynchronous instructions.
The "synchronous" and "asynchronous" properties relate to the temporal relationship between the call and execution of the instruction.
The following applies to synchronous instructions: When the call of a synchronous instruction is complete, execution of the instruction is also complete.
This is different in the case of asynchronous instructions: When the call of an asynchronous instruction is complete, execution of the asynchronous instruction is not necessarily complete yet. This means the execution of an asynchronous instruction can extend over multiple calls. The CPU processes asynchronous instructions in parallel with the cyclic user program. Asynchronous instructions generate jobs in the CPU for their processing.
Instructions that work asynchronously are usually instructions for the transfer of data, for example, data records for modules, communication data, diagnostic data.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

169

Basics of program execution 8.5 Asynchronous instructions
Difference between synchronous/asynchronous instructions
The figure below shows the difference between the processing of an asynchronous instruction and a synchronous instruction. In this figure the CPU calls the asynchronous instruction five times before its execution is complete, e.g. a data record has been completely transferred. With a synchronous instruction, the instruction is fully executed in each call.

 First call of the asynchronous instruction, start of execution  Intermediate call of the asynchronous instruction, execution continues  Last call of the asynchronous instruction, completion of execution  A job is fully processed by a synchronous instruction with each call.
Duration of a fully executed job
Figure 8-5 Difference between asynchronous and synchronous instructions
Note Processing of an asynchronous instruction during the SYNCUP system state If the S7-1500R/H redundant system executes SYNCUP, this extends the processing time for an asynchronous instruction. Recommendation: Always access asynchronous instructions in the cyclic user program of the S7-1500R/H redundant system, for example in OB 1.

170

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.5 Asynchronous instructions
Parallel processing of asynchronous instruction jobs
A CPU can process several asynchronous instruction jobs in parallel. The CPU processes the jobs in parallel under the following conditions:  Jobs for an asynchronous instruction are started while other jobs for that instruction are
still running.  The maximum number of simultaneously running jobs for the instruction is not exceeded. The figure below shows the parallel processing of two jobs of the WRREC instruction. The two instructions are executed simultaneously for a certain duration.
Figure 8-6 Parallel processing of the asynchronous instruction WRREC
Assigning calls of an instruction to a job
To execute an instruction over multiple calls, the CPU must be able to uniquely relate a subsequent call to a running job of the instruction. To relate a call to a job, the CPU uses one of the following two mechanisms, depending on the type of the instruction:  Using the instance data block of the instruction (for "SFB" type)  Using the input parameters of the instruction that identify the job. These input parameters
must match in each call during processing of the asynchronous instruction. Example: The instruction "RD_DPARA" is identified by LADDR and RECNUM.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

171

Basics of program execution 8.5 Asynchronous instructions
Status of an asynchronous instruction
An asynchronous instruction shows its status via the block parameters STATUS/RET_VAL and BUSY. Many asynchronous instructions also use the block parameters DONE and ERROR. The figure below shows the two asynchronous instructions WRREC and RD_DPARA.

Summary

 The input parameter REQ starts the job to execute the asynchronous instruction.  The output parameter DONE indicates that the job was completed without error.  The output parameter BUSY indicates whether the job is currently being executed. When
BUSY=1, a resource is allocated for the asynchronous instruction. When BUSY= 0, the resource is free.
 The output parameter ERROR indicates that an error has occurred.  The output parameter STATUS/RET_VAL provides information on the status of the job execu-
tion. The output parameter STATUS/RET_VAL receives the error information after the occurrence of an error.
Figure 8-7 Block parameters of asynchronous instructions using the instructions WRREC and RD_DPARA as examples.
The table below provides you with an overview of the relationships described above. It shows in particular the possible values of the output parameters if execution of the instruction is not complete after a call.
Note The output parameters of an synchronous instruction can change on every call. You therefore evaluate the relevant output parameters after each call of the asynchronous instruction.

172

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.5 Asynchronous instructions

Table 8- 5 Relationship between REQ, STATUS/RET_VAL, BUSY and DONE during a "running" job.

Seq. no. of the call
1

Type of call First call

2 to (n - 1) n

Intermediate call
Last call

REQ 1
Not relevant Not relevant

STATUS/RET_VAL
W#16#7001 Error code (e.g. W#16#80C3 for lack of resources) W#16#7002
W#16#0000, if no errors have occurred. Error code if errors occurred.

BUSY
1 0
1
0 0

DONE ERROR

0

0

0

1

0

0

1

0

0

1

Use of resources
Asynchronous instructions use resources in the CPU during their execution. The resources are limited depending on the type of CPU and instruction. The CPU can only simultaneously process a set maximum number of asynchronous instruction jobs. The resources are available again after a job has been processed successfully or with errors.
Example: For the RDREC instruction, an S7-1500R/H CPU can process up to 20 jobs in parallel.
If the maximum number of simultaneous jobs for an instruction is exceeded, the following occurs if another job is started:
 The job is not executed.
 The ERROR output parameter returns a value of 1.
 The STATUS block parameter returns the error code W#16#80C3 (lack of resources).
Note Lower-level asynchronous instructions
Some asynchronous instructions use one or more lower-level asynchronous instructions for their processing. This dependence is shown in the tables below.
Please note that each lower-level instruction typically occupies one resource in the instruction's resource pool.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

173

Basics of program execution 8.5 Asynchronous instructions

Extended instructions: maximum number of simultaneously running jobs

Table 8- 6 Maximum number of simultaneous jobs for asynchronous extended instructions and lower-level instructions used

Extended instructions

1513R-1 PN

1515R-2 PN

1517H-3 PN

Distributed I/O

RDREC

20

WRREC

20

ASI_CTRL

uses RDREC, WRREC

PROFIenergy

PE_START_END

uses RDREC, WRREC

PE_CMD

uses RDREC, WRREC

PE_DS3_Write_ET200 uses RDREC, WRREC S

PE_WOL

uses RDREC, WRREC, TUSEND, TURCV, TCON, TDISCON

Module parameter assignment

RD_DPAR

10

RD_DPARA

10

RD_DPARM

10

Diagnostics

Get_IM_Data

10

GetStationInfo

10

Communication: maximum number of simultaneously running jobs

Table 8- 7 Maximum number of simultaneous jobs for asynchronous instructions and lower-level instructions used for Open User Communication

Open User Communication TSEND TUSEND TRCV TURCV TCON TDISCON T_RESET T_DIAG TSEND_C TRCV_C

1513R-1 PN 88

1515R-2 PN 108

1517H-3 PN 288

88

108

288

88

108

288

88

108

288

88

108

288

88

108

288

uses TSEND, TUSEND, TRCV, TCON, TDISCON

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

174

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Basics of program execution 8.5 Asynchronous instructions

Table 8- 8 Lower-level instructions used for asynchronous instructions for MODBUS TCP

MODBUS TCP MB_CLIENT MB_SERVER

1513R-1 PN

1515R-2 PN

1517H-3 PN

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

uses TSEND, TUSEND, TRCV, TURCV, TCON, TDISCON

Reference

Table 8- 9 Lower-level instructions used for asynchronous instructions for communications processors

Communications processors PtP communication Port_Config Send_Config Receive_Config Send_P2P Receive_P2P Receive_Reset Signal_Get Signal_Set Get_Features Set_Features USS communication USS_Port_Scan MODBUS (RTU) Modbus_Comm_Load

1513R-1 PN
uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC uses RDDEC, WRREC
uses RDDEC, WRREC
uses RDDEC, WRREC

1515R-2 PN

1517H-3 PN

You can find additional information on block parameter assignment in the STEP 7 online help.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

175

Protection

9

9.1

Overview of the protection functions

Introduction

This section describes the functions for protection from unauthorized access:  Access protection  Know-how protection  Protection by locking the CPUs

Other CPU protective measures
The following measures provide extra protection against unauthorized access from external sources and through the network:
 Do not activate time-of-day synchronization over NTP servers.
 Do not activate PUT/GET communication.

9.2

Configuring access protection for the CPU

Introduction

The S7-1500R/H redundant system has four different access levels to limit access to specific functions.
By setting up access levels and passwords, you limit the functions and memory areas that are accessible without a password. The individual access levels and corresponding passwords are specified in the object properties of the CPUs.

Rules for passwords
Ensure that passwords are sufficiently secure. Passwords must not follow a machinerecognizable pattern. Apply the following rules:
 Assign a password that is at least 8 characters long.
 Use different cases and characters: uppercase/lowercase, numbers and special characters.

176

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Protection 9.2 Configuring access protection for the CPU

Access levels for the CPUs

Table 9- 1 Access levels and access restrictions

Access levels Full access (no protection) Read access
HMI access
No access (complete protection)

Access restrictions Every user can read and change the hardware configuration and the blocks.
In this access level, only read access to the hardware configuration and the blocks is possible without a password. HMI access and access to diagnostics data is also possible. Neither blocks nor the hardware configuration can be downloaded to the CPUs without the password. The following actions are not possible without the password either: Writing test functions and firmware updates (online). The same access restrictions apply to HMI access as to read access. The following actions are not possible without the password either: Change of operating state (RUN/STOP/SYNCUP) and display of online/offline comparison status. When the CPUs have complete protection, no read or write access to the hardware configuration or blocks is possible (without access authorization in the form of a password). HMI access is not possible either. Authentication with the correct password provides full access to the CPUs again.

Reference

You can find a list of which functions are possible in the various protection levels in the STEP 7 online help under "Setting options for protection".

Properties of the access levels
Each access level allows unrestricted access to certain functions without a password, for example identification using the "Accessible devices" function.
The default setting of the CPUs is "No restriction" and "No password protection". In order to protect access to the CPUs, you need to edit the properties of the CPUs and set up a password. In the default access level "Full access (no protection)", every user can read and change the hardware configuration and the blocks. No password is configured, and no password is required for online access.
Communication between the CPUs via the communication functions in the blocks is not restricted by the access level of the CPUs.
Entering the correct password enables access to all the functions that are allowed in the given level.
Note Configuring an access level does not replace know-how protection
Configuring access levels offers a high degree of protection against unauthorized changes to the CPU through network access. Access levels restrict the rights to download the hardware and software configuration to the CPUs. However, blocks on the SIMATIC memory card are not write-protected or read-protected. Use know-how protection to protect the code of blocks on the SIMATIC memory card.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

177

Protection 9.2 Configuring access protection for the CPU
Behavior of functions in different access levels
The STEP 7 online help includes a table listing the online functions available in the various access levels.
Configuring access levels
Proceed as follows to configure the access levels for the CPUs: 1. Open the properties of the CPUs in the Inspector window. 2. Open "Protection & Security" in the area navigation.
A table with the possible access levels appears in the Inspector window.

Figure 9-1 Possible access levels
3. Activate the required protection level in the first column of the table. The green check marks in the columns to the right of the access level show which operations are still possible without entering the password. In the example (Figure: Possible access levels), read access and HMI access are still possible without a password.
4. In the "Enter password" column, specify a password for the access level "Full access" in the first row. In the "Confirm password" column, enter the selected password again to avoid incorrect entries.
5. Assign additional passwords as required for other access levels.
6. Download the hardware configuration for the access level to take effect.
The CPUs log the following actions with an entry in the diagnostics buffer:
 Input of the correct or incorrect password
 Changes to access level configuration

178

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Protection 9.3 Using the display to set additional password protection
Behavior of a password-protected CPU during operation
The protection of the CPUs takes effect for an online connection after you have loaded the settings into the CPUs. If you set a higher access level and download it to the CPU, all other online connections will be interrupted. You will then need to establish a new online connection.
Before an online function is executed, STEP 7 checks the necessary permission and, if necessary, prompts the user to enter a password. The functions protected by a password can only be executed by one programming device/PC at any one time. Another programming device/PC cannot log on.
Access authorization to the protected data applies for the duration of the online connection or for as long as you have STEP 7 open. The menu command "Online > Clear access rights" cancels the access authorization.
You can limit access to a password-protected CPU in RUN locally on the display. This prevents access even with a password.

9.3

Using the display to set additional password protection

Blocking access to a password-protected CPU
You can block access to password-protected CPUs (local password block) on the CPU display. The block is effective if the mode selector is set to RUN. The access block requires a configured protection level in STEP 7 and applies regardless of password protection. Even if someone accesses the CPUs via a connected PG/PC and has entered the correct password, access to the CPUs is denied. Set the access block separately for each access level on the display.
The backup CPU takes over the settings during SYNCUP. Changes to the access block for primary CPU or backup CPU in RUN-Redundant system state are also applied to the other CPU.

Procedure

If you want to block access to the CPUs via the display, you need to configure an access level with a password in STEP 7.
If you set local access protection for the CPUs on the display, the block applies to both CPUs in the RUN-Redundant system state. Proceed as follows:
1. On the display, select the Settings > Protection menu.
2. Confirm your selection with "OK". For each access level, specify whether or not access in the RUN operating state is allowed:
­ Allow: Access to the CPUs is possible with the right password in STEP 7.
­ Deactivated in RUN: If the mode selector is set to RUN, no additional logon to the CPUs is possible with the rights of this access level. Access is denied despite the fact that the user knows the password. If the operating mode switch is in the STOP position, then access with the password is enabled again.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

179

Protection 9.4 Using the user program to set additional access protection
Access protection for the display
Configure a password for the display in STEP 7 in the properties of the CPU. This protects local access protection with a local password.

9.4

Using the user program to set additional access protection

Access protection with the user program
In addition to access protection via the display, you have another option. You can also restrict access to a password-protected CPU using the ENDIS_PW instruction in STEP 7.
You can find more information on this instruction in the STEP 7 online help under "ENDIS_PW: Limit and enable password legitimation".

9.5

Know-how protection

Application

You can use know-how protection to protect one or more OB, FB or FC blocks as well as global data blocks in your program from unauthorized access. To restrict access to a block, assign a password. The password offers high-level protection against unauthorized reading and manipulation of the block. Know-how protection does not involve the CPU (offline access in STEP 7).

Password provider
As an alternative to manual password input, you can assign a password provider to STEP 7. When using a password provider, you select a password from a list of available passwords. When a protected block is opened, STEP 7 connects to the password provider and retrieves the corresponding password.
You need to install and activate a password provider before you can connect it. A settings file in which you define the use of a password provider is also required.
A password provider offers the following advantages:
 The password provider defines and manages the passwords. When know-how protected blocks are opened, you work with symbolic names for passwords. For example, a password is marked with the symbolic name "Machine_1" in the password provider. The actual password behind "Machine1" is not disclosed to you. A password provider therefore offers optimum block protection as the users do not know the password themselves.
 STEP 7 automatically opens know-how protected blocks without the direct entry of a password. This saves you time.
You can find more information on connecting a password provider in the STEP 7 online help.

180

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Protection 9.5 Know-how protection

Readable data

If a block is know-how protected, only the following data is readable without the correct password:  Block title, comments and block properties  Block parameters (INPUT, OUTPUT, IN, OUT, RETURN)  Call structure of the program  Global tags without information on the point of use

Further actions
Further actions that can be carried out with a know-how protected block:  Copying and deleting  Calling in a program  Online/offline comparison  Loading

Global data blocks and array data blocks
You protect global data blocks (global DBs) from unauthorized write access with know-how protection. If you do not have the valid password, you can only read the global data block without information on the point of use. The global data block cannot be changed, however.
Know-how protection is not available for array data blocks (array DBs).

Setting up block know-how protection
Proceed as follows to set up block know-how protection: 1. Open the properties of the block in question. 2. Select the "Protection" option under "General".

Figure 9-2 Setting up block know-how protection

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

181

Protection 9.5 Know-how protection
3. Click "Protection" to display the "Define protection" dialog.

Figure 9-3 Defining protection
4. Enter the new password in the "New password" box. Enter the same password in the "Confirm password" box.
5. Click "OK" to confirm your entry. 6. Close the "Know-how protection" dialog by clicking "OK". Result: The blocks selected are know-how-protected. Know-how protected blocks are marked with a padlock in the project tree. The password entered applies to all blocks selected.
Note Password provider Alternatively, you can set up know-how protection for blocks with a password provider.
Opening know-how protected blocks
Proceed as follows to open a know-how protected block: 1. Double-click on the block to open the "Access protection" dialog. 2. Enter the password for the know-how protected block. 3. Click "OK" to confirm your entry. Result: The know-how-protected block opens. After opening the block you can edit the program code and the block interface of the block until you close the block or STEP 7. You need to enter the password again the next time you open the block. If you close the "Access protection" dialog with "Cancel", the block will open but the block code will not be displayed. You will not be able to edit the block. If you copy the block or add it to a library, this does not cancel the know-how protection of the block. The copies will also be know-how-protected.

182

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Protection 9.5 Know-how protection
Changing block know-how protection
Proceed as follows to change block know-how protection: 1. Select the block for which you want to change know-how protection. The protected block
must not be open in the program editor. 2. In the "Edit" menu, select the "Know-how protection" command to open the "Change
protection" dialog. 3. To change the password for know-how protection, enter the current password under "Old
password". 4. Now enter a new password under "New password" and confirm the password under
"Confirm password". 5. Click "OK" to confirm your entry. Result: The password for know-how protection of the selected block has been changed.
Removing block know-how protection
Proceed as follows to remove block know-how protection: 1. Select the block from which you want to remove know-how protection. The protected
block must not be open in the program editor. 2. In the "Edit" menu, select the "Know-how protection" command to open the "Change
protection" dialog.

Figure 9-4 Removing know-how protection
3. To remove block protection, enter the current password under "Old password". Leave the fields for the new password blank.
4. Click "Remove" to confirm your entry. Result: Know-how protection for the selected block has been canceled.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

183

Protection 9.6 Protection by locking the CPU

9.6

Protection by locking the CPU

Locking options
Provide additional protection for your CPUs from unauthorized access (for example to the SIMATIC memory card) by using a secure front cover. You have the following options, for example:  Attach a seal  Secure the front cover with a lock (shackle diameter: 3 mm)

Figure 9-5 Locking latch on a CPU

184

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning

10

10.1

Overview

Introduction

This section includes information on the following topics:  Check before powering on for the first time  Commissioning procedure  Removing/inserting the SIMATIC Memory Cards  First power-on of the CPUs  CPU pairing  Assigning redundancy IDs  Downloading projects to the CPUs  Operating and system states  CPU memory resets  Backing up and restoring the configuration  Time synchronization  Identification and maintenance data

Commissioning requirements
Note Performing tests You must ensure the safety of your plant. You therefore need to run a complete functional test and make the necessary safety checks before the final commissioning of a plant. Also allow for any possible foreseeable errors in the tests. This prevents you from putting persons or equipment at risk during operation.

Software tools for commissioning
SIEMENS PRONETA provides commissioning support. You can find more information on SIEMENS PRONETA in the section Software (Page 56).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

185

Commissioning 10.2 Check before powering on for the first time

10.2

Check before powering on for the first time
Before the first power-on, check the installation and the wiring of the S7-1500R/H redundant system.

Questions for checking
The following questions provide instructions for checking your system in the form of a checklist.
Rack  Are the mounting rails firmly mounted to the wall, in the frame, or in the cabinet?  Are the cable ducts correctly installed?  Have the minimum clearances been observed?
Grounding concept  Are the mounting rails connected to the protective conductors?  If applicable, are all further protective conductor connection points on the S7-1500R/H
redundant system connected to the protective conductor? Has the protective conductor been tested?  Are the required equipotential bonding cables connected with low impedance to the relevant sections of the plant?
Module installation and wiring  Are all the modules inserted / installed in accordance with the installation plan and
configuration with STEP 7 and screwed firmly to the mounting rails?  Have all synchronization modules been installed and locked in the S7-1500H redundant
system? You should hear the modules click into place in the module slots.  Are all redundancy connection connectors in the S7-1500H redundant system correctly
connected to the LC sockets? You should hear the connectors click into place in the LC sockets.  Are the redundancy connections (PROFINET cable) between the CPUs in the S7-1500R redundant system connected to the correct ports of PROFINET interface X1? The ports used must correspond to the configuration in STEP 7.  Are the PROFINET devices in the S7-1500R/H redundant system connected?
Load current supply  Are all load current supplies switched off?  Is the power cable connector correctly wired?  Has the connection to line voltage been established?

186

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure

10.3

Commissioning procedure

Requirements

 The CPUs are in the "Factory settings" state or have been reset to factory settings. You can find more information in the section Resetting CPUs to factory settings (Page 286).
 The CPUs have the same or compatible article numbers.
 The SIMATIC memory cards are as delivered or have been formatted and are not writeprotected.
 The two CPUs of the S7-1500R/H redundant system have the same firmware version. You can find more information in the section Firmware update (Page 281).

Commissioning procedure
To commission the S7-1500R/H redundant system, we recommend the following procedure:

Table 10- 1 Procedure for commissioning SIMATIC S7-1500R/H

Step 1 2
3 4
5
6
7 8 9
10 11
12

Procedure Configure hardware in STEP 7 Create user program
Insert required modules Wire and check configuration (cable for supply voltage, PROFINET ring, redundancy connections) Insert SIMATIC memory cards in the CPUs
Switch on CPUs, optional load current supply and distributed I/O CPU pairing Assign CPUs redundancy IDs Check LEDs
Evaluate information on the CPU displays Load hardware configuration and user program to the CPUs Test inputs and outputs

Further information Section Configuration (Page 145) Section Programming the S7-1500R/H (Page 156) and STEP 7 online help Section Installation (Page 102) Section Wiring (Page 117)
Section Removing/plugging in SIMATIC memory cards (Page 188) Section First power-on of the CPUs (Page 190)
Section CPU pairing (Page 191) Section Redundancy IDs (Page 193) You can find the meaning of the LEDs in the module manuals. Section CPU display (Page 258) Section Downloading projects to the CPUs (Page 197)
The following functions are helpful: Monitoring and modifying tags, testing with program status, forcing, controlling the outputs in STOP. You can find more information in the section Test and service functions (Page 290).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

187

Commissioning 10.3 Commissioning procedure

10.3.1

Removing/plugging in SIMATIC memory cards

Requirements

For the S7-1500R/H redundant system, you need a SIMATIC memory card for each of the two CPUs.
The CPUs only support pre-formatted SIMATIC memory cards. If required, format the SIMATIC memory cards before using them in the CPU.
You can find more information on formatting SIMATIC memory cards in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193101).
Make sure that the SIMATIC memory cards of the two CPUs are not write-protected.

Inserting SIMATIC memory cards
Proceed as follows to insert a SIMATIC memory card:
1. Open the front cover of the CPU.
2. Insert the SIMATIC memory card, as shown on the CPU, into the slot for the SIMATIC memory card.

Figure 10-1 Slot for the SIMATIC memory card
3. Carefully insert the SIMATIC memory card into the CPU, pushing gently, until the card clicks into place.

188

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure
Removing SIMATIC memory cards
Proceed as follows to remove a SIMATIC memory card: 1. Open the front cover. 2. Switch the CPU to STOP. 3. Gently push the SIMATIC memory card into the CPU. Once it has clicked into place,
remove the SIMATIC memory card. Only remove the SIMATIC memory card in the POWER OFF or STOP state of the CPU. Ensure that:  No writing functions are active in STOP. Writing functions are online functions with the
PG/PC, for example loading/deleting a block and test functions.  No writing functions were active before POWER OFF If you remove the SIMATIC memory card during a write process, the following problems can occur:  The data contents of a file are incomplete.  The file is no longer readable, or no longer exists.  The entire content of the card is corrupted. Please also note the following FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183) for removal of the SIMATIC memory card.
Note If you switch a CPU in redundant mode to the STOP operating state, the S7-1500R/H redundant system switches to the RUN-Solo system state. The other CPU maintains control of the process.
CPU response after a SIMATIC memory card is removed or inserted
Inserting or removing the SIMATIC memory card in STOP operating state triggers a reevaluation of the SIMATIC memory card. The CPU compares the content of the configuration on the SIMATIC memory card with the backed-up retentive data. If the backedup retentive data matches the data of the configuration on the SIMATIC memory card, the retentive data is retained. If the data differs, the CPU automatically performs a memory reset. A memory reset deletes the retentive data on the CPU. You can find more information on memory resets in the section CPU memory reset (Page 241).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

189

Commissioning 10.3 Commissioning procedure
The CPU evaluates the SIMATIC memory card. This process is indicated by the RUN/STOP LED flashing.
Note Using the SIMATIC memory card as a firmware update card If you use the SIMATIC memory card as a firmware update card, pulling and plugging the card will not result in the loss of retentive data.

Reference

You can find more information on the SIMATIC memory card in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193101).

10.3.2

First power-on of the CPUs

Requirements

 The SIMATIC S7-1500R/H redundant system has been installed.  The system has been wired.  The SIMATIC memory cards are in the CPUs.

Procedure

Proceed as follows to commission the CPUs: 1. Turn on the load current supply. Result:  The CPUs run an LED test. All LEDs flash at 2 Hz,
­ the RUN/STOP LED flashes alternately yellow/green ­ the ERROR-LED red ­ the MAINT LED yellow.  The CPUs run system initialization and evaluate the SIMATIC memory cards: ­ The RUN/STOP LED flashes yellow at 2 Hz.  When system initialization is complete, the CPUs switch to STOP: ­ The RUN/STOP LED lights up in yellow.

190

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure

10.3.3

CPU pairing

Introduction

Pairing is the mutual recognition of the two CPUs within a network. During pairing, the CPUs exchange information for mutual identification. Example: Checking for matching article number and firmware version.
Successful pairing of two CPUs is a fundamental requirement for redundant operation.

Requirement

For successful pairing, the CPUs must have the same firmware version and the same or compatible article numbers.
An invalid configuration variant prevents the pairing of two CPUs, for example more than two R-CPUs in the PROFINET ring. Pairing errors are reported in the diagnostics buffer.

Pairing procedure
Proceed as follows to pair two CPUs
1. Create a redundancy connection between two CPUs. Connect the CPUs to the relevant ports of the interfaces (for example for R-CPUs: X1 P2 R).
2. POWER ON both CPUs.

Loss of pairing

If pairing is already established, an invalid configuration variant will lead to the loss of pairing. Loss of pairing in RUN system state also causes the loss of synchronization between primary CPU and backup CPU. The system switches to the RUN-Solo system state.
The primary CPU switches to the RUN operating state and takes on sole control of the process. The backup CPU switches to the STOP operating state.
In the event of the loss of pairing as a result of the failure of the primary CPU, the backup CPU becomes the new primary CPU and takes on sole control of the process.

Checking pairing state
You can find out how to check the success of pairing on the display and in STEP 7 in the section Checking before replacing components (Page 266).

Checking pairing in the RUN-Solo system state
Please observe the following rules if the redundant system is in the RUN-Solo system state:  Do not immediately start replacing components.  Do not immediately switch the failed CPU to the RUN operating state.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

191

Commissioning 10.3 Commissioning procedure
First check the pairing status in the RUN-Solo system state.
CAUTION Do not switch the failed CPU in the RUN-Solo system state to the RUN operating state. This could result in an undefined system state for the redundant system. Both CPUs would become primary CPUs. If the S7-1500R/H redundant system is in the RUN-Solo system state, you must not immediately switch the backup CPU to the RUN operating state. Possible cause: No pairing between the two CPUs. Check the pairing status on the display or on the basis of the diagnostics status or diagnostics buffer. If there is no pairing, the redundancy connections have been interrupted. Follow the procedure described in the section Checking before replacing components (Page 266).
Primary and backup CPU role assignment
The primary CPU and backup CPU roles are assigned by the S7-1500R/H redundant system during pairing. The redundant system always attempts to restore the previous roles of the R/H CP. The following applies here: The CPU that last controlled the process becomes the primary CPU. Requirement: The system time has been set correctly. After restoring the factory settings, the redundant system assigns the roles according to the following criteria: The redundant system compares the following criteria of the two SIMATIC memory cards and prioritizes the assignment of roles:  SIMATIC memory card contains a STEP 7 project
 High priority  SIMATIC memory card is empty and writable
 Medium priority  SIMATIC memory card:
­ missing or ­ inserted, is empty or is not writable  Low priority
Result: If the two R/H CPUs have different priorities, the CPU with the higher priority becomes the primary CPU. If the priorities are identical, the R/H CPU with the lower CPU serial number becomes the primary CPU (see nameplate on the CPU or on the CPU display).
Note If an R/H CPU is in RUN mode, the assigned role does not change when pairing again.

192

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure

10.3.4

Redundancy IDs

Introduction

For redundant operation, the two CPUs in the redundant system must process identical project data. In SYNCUP, the operating system copies the content of the SIMATIC memory card from the primary CPU to the backup CPU.
The load memories contain the project data of both CPUs. This duplication of the project data is necessary for ensuring redundant operation. By assigning the redundancy IDs, you define which project data a CPU uses for itself.

Redundancy IDs 1 and 2
Redundant operation is only possible if the two CPUs have different redundancy IDs. The redundancy IDs can have values of 1 and 2. The CPUs save the redundancy IDs in their retentive data areas.
Both CPUs have redundancy ID 1 in the following cases:
 Default setting upon initial commissioning
 After reset to factory settings
In the STEP 7 project tree, each of the two CPUS is displayed with its own tree. The redundancy ID is used to assign a project tree to the real CPU in STEP 7. The upper CPU of the two CPUs in the project tree always has a redundancy ID of 1. The lower CPU of the two always has a redundancy ID of 2.
Diagnostics displays are assigned to the real CPUs in the project tree in the same way.

Figure 10-2 Assignment of the redundancy IDs between project tree and real configuration

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

193

Commissioning 10.3 Commissioning procedure
Assigning redundancy IDs to CPUs in the configuration
Requirement: The CPUs have the same firmware version and the same or compatible article numbers. You have the following options for assigning different redundancy IDs to the CPUs:  Automatic assignment  Assignment using the display
Automatic assignment
Requirement: Both real CPUs of the redundant system have the same redundancy ID (e.g."1").
Options for automatic assignment:  Both CPUs are in STOP. There is pairing between the two CPUs. The ERROR LEDs are
flashing red. Procedure: Switch the left-hand CPU in the configuration to the RUN operating state. Result: The right-hand CPU in the configuration changes its redundancy ID.  The left-hand CPU in the configuration is in RUN operating state. The right-hand CPU in the configuration is in STOP. Both redundancy connections are separated, therefore there is no pairing between the two CPUs. Procedure: Implement pairing between the two CPUs by establishing at least one redundancy connection. Result: The right-hand CPU in the configuration changes its redundancy ID.  The left-hand CPU in the configuration is in RUN. The right-hand CPU in the configuration is in POWER OFF. At least one redundancy connection is established. There is no pairing between the two CPUs due to POWER OFF. Procedure: POWER ON the right-hand CPU in the configuration. Result: The right-hand CPU in the configuration changes its redundancy ID.
Assignment using the display
Requirements: The two real CPUs in the redundant system:  Are connected to each other  Have redundancy ID 1  The mode switches of the CPUs are in the STOP position  Both CPUs are in POWER OFF mode

194

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure
Procedure: Proceed as follows to assign the redundancy IDs via the CPU display: 1. POWER ON the CPU to which you want to assign redundancy ID 2. 2. On the display of that CPU, select the menu command "Overview > Redundancy". Assign
the CPU redundancy ID 2. Once you have assigned the CPU redundancy ID 2, the CPU will automatically restart. 3. Switch the other CPU POWER OFF. 4. Download the project and the hardware configuration to the CPU that you want to switch to RUN first.

Figure 10-3 Assigning redundancy IDs
Reading redundancy IDs from the display
As well as assigning redundancy IDs over the display, you can read out the redundancy ID with the menu command "Overview > Redundancy". The display always shows the redundancy ID of the CPU on whose display you query the redundancy ID.
Switching redundancy IDs over the display
Since each of the CPUs already has its own redundancy ID, you can exchange the redundancy IDs of the CPUs for each other if required. Switching redundancy IDs can, for example, be useful in the following situations:  You only have access to one of the two CPUs.  You have incorrectly assigned the redundancy IDs.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

195

Commissioning 10.3 Commissioning procedure
Note Switching the redundancy IDs switches the assignment of the real CPUs to the project trees in the project navigation. If the two real CPUs contain the same project, switching the redundancy IDs switches all configured properties between the CPUs. These include, for example, the IP addresses of the PROFINET interfaces, the device names and the configured topology.
On the display, you can exchange on only one CPU the redundancy IDs already assigned for both CPUs. Proceed as follows to switch the redundancy IDs: 1. Make sure that both CPUs are in STOP operating state: 2. Make sure that the two CPUs are connected to each other. 3. Change the redundancy ID of a CPU using the display. Result: Once the redundancy ID has been changed on one CPU, both CPUs restart and each now has the previous redundancy ID of the other.
Incompatible assignment of redundancy IDs
There is pairing between the two CPUs. You can find more information in the section CPU pairing (Page 191). In the following case, the redundant system automatically checks the compatibility of the redundancy IDs:  Both CPUs are in STOP operating state and they have the same redundancy ID. If the same redundancy ID has been assigned to both CPUs, the ERROR LEDs on both CPUs flash in red. Each CPU display indicates an assignment conflict (symbol ). The CPUs generate an entry in the diagnostics buffer. You can read the entry on the display, for example. To establish redundant mode, resolve the assignment conflict in one of the following ways:  Assign a different redundancy ID to one CPU using the display.  Switch the CPU that is to retain its assigned redundancy ID to the RUN operating state.
Behavior of the CPUs when redundancy IDs are changed
Please note that you can only change the redundancy ID of a CPU in STOP operating state. After each successful change of a redundancy ID, the CPU in question automatically restarts.

196

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure

10.3.5

Downloading projects to the CPUs

Introduction

You need to download the project data to the CPU. Download either offline using the SIMATIC memory card or over an online connection from the PG/PC/HMI device to a CPU. The complete project data (all configuration data and the complete user program) can only be downloaded when a CPU is in STOP operating state.
Note Simultaneous online access to both CPUs
Simultaneous online access to both CPUs from STEP 7 is not possible. You can access either the primary CPU or the backup CPU.

Options for downloading
To download project data into the S7-1500R/H redundant system, you have the following options:
In the STOP system state, download:  The complete project data to the primary CPU  The complete project data to the backup CPU
In the RUN-Solo system state, download:  The user program to the primary CPU  The complete project data to the backup CPU
In the RUN-Redundant system state, download:  the modified user program into the redundant system.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

197

Commissioning 10.3 Commissioning procedure
Note Loading in the RUN-Redundant system state: No check for sufficient free space before a write function is performed Before a write function is performed, the system does not check whether there is enough free space on the SIMATIC memory cards of the CPUs for the function. Writing functions are online functions with the PG/PC, for example, loading/deleting a block, test functions, loading a modified user program in RUN-Redundant system state. If insufficient memory is available on the SIMATIC memory card of a CPU, then: · changes the CPU in question to STOP mode.
­ If there is insufficient memory on the SIMATIC memory card of the selected CPU (to which you want to download), this CPU then changes to the STOP operating mode. The other CPU changes to the RUN operating mode with the former user program (redundant system  system state RUN-Solo).
­ If there is insufficient memory on the other CPU then this CPU changes to the STOP operating mode. The selected CPU (to which you downloaded) changes to the RUN operating mode with the changed user program (redundant system  system state RUN-Solo).
· If the ERROR LED flashes red (temporary error), · a corresponding error message is entered in the diagnostic buffer. If then there is insufficient free space on the SIMATIC memory card of the other CPU, then this CPU stays in the RUN operating mode. The CPU then responds like a standard CPU.
Downloading project data to the CPU
By default, the project data is downloaded to the primary CPU.
Procedure Proceed as follows: 1. Right-click to select the S7-1500R/H system in the project tree. 2. Select the "Download to device" > "Hardware and software (changes only)" command
from the shortcut menu. The "Extended download" dialog window shows the addresses of the configured CPUs in the "Configured access nodes of..." table. 1. Select the subnet from the "Type of the PG/PC interface" drop-down lists. 2. Select the adapter at the "PG/PC interface". 3. Select the interface to which the PG/PC is connected from the "Connection to
interface/subnet" drop-down list. Alternatively, select the entry "Try all interfaces".

198

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

4. Then click on the "Start search" button.

Commissioning 10.3 Commissioning procedure

Figure 10-4 "Extended download" dialog window (primary CPU)
The "Select target device" table shows the CPUs in the S7-1500R/H system and their roles. The primary CPU is already selected. Requirement: You have already assigned the IP addresses using the displays of the CPU (for example for commissioning) or over accessible devices in STEP 7. 5. Click "Load".
Note Remember the redundancy IDs of the CPUs in the configuration: · The real CPU with redundancy ID 1 uses the project data of the top CPU in the STEP 7
project tree. · The real CPU with redundancy ID 2 uses the project data of the bottom CPU in the
STEP 7 project tree. You read out the redundancy ID of a CPU over the display with the menu command "Overview > Redundancy". You can find more information on assigning redundancy IDs in the section Redundancy IDs (Page 193).
"Load preview" dialog window
If necessary, the project data is compiled before the download. You can only load project data that is consistent and has been compiled without errors. The "Load preview" dialog window sets out the key information on the load process to be run:
Procedure 1. After compilation, check the messages in the "Load preview" dialog window. 2. If the S7-1500R/H system is not in STOP, stop the system. To do so, select "Stop RH
system" in the "Action" column of the drop-down menu. 3. Click the "Download" button to start the download.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

199

Commissioning 10.3 Commissioning procedure
Starting the CPU after loading
The "Results of loading" dialog window displays the results of the loading process.
WARNING CPU startup with user program with errors Before starting the CPU, make sure that a user program with errors: · Cannot cause damage or injury · Will not lead to dangerous system states
Requirement The CPU mode selector is in the RUN position.
Procedure 1. To start the primary CPU after loading is complete, select "Start module" in the "Action"
column. 2. To complete loading, click "Finish".
Result: The primary CPU switches to the RUN operating state. 3. Switch the backup CPU to the RUN operating state.
Result: After successful SYNCUP, the S7-1500R/H system switches to redundant mode.
Note Role change during loading Beware of a possible role change between primary and backup CPU shortly before, during or after loading. A role change can occur during loading if the primary CPU fails (power failure, hardware defect) or is in STOP and: · You switch the backup CPU to RUN operating state during this time using the mode
selector, the display or a communication command. or · You switch on the backup CPU during this time. In the event of a role change, the new primary CPU starts up with the old project data. The new project data in the backup CPU is overwritten with the old project data during synchronization of the two CPUs for redundant operation.

200

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure
Downloading project data to the backup CPU
By default, the project data is downloaded to the primary CPU. In the SYNCUP system state, the project data is then transferred from the primary CPU to the backup CPU. You can also download the project data to the backup CPU. This makes sense if the backup CPU is to be primary CPU with its project data upon a restart.
Procedure: 1. Download the project data to the backup CPU. The primary CPU continues to control the
process. 2. Switch the primary CPU to the STOP operating state after loading. 3. Switch the backup CPU to the RUN operating state. It becomes the new primary CPU
and controls the process on its own with the newly loaded user program in the RUN-Solo system state. 4. Switch the new backup CPU to the RUN operating state. Result: The system state is RUN-Redundant.
Note Please note the following during download to the backup CPU: If the project uses retentive data, the backup CPU runs with its data which may be outdated.
Detailed procedure for download to the backup CPU: 1. Right-click to select the S7-1500R/H system in the project tree. 2. Select "Hardware and software (changes only)" under "Download to backup CPU". The backup CPU is now selected instead of the primary CPU in the "Extended download" dialog window.

Figure 10-5 "Extended download" dialog window (backup CPU)

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

201

Commissioning 10.3 Commissioning procedure
Load user program in RUN-Solo system state
The redundant system is in the RUN-Redundant system state. You can download a modified user program to the primary CPU. Advantages:  During downloading, the primary CPU maintains control of the process. The plant
remains in operation.  Restore the previous user program:
After loading in the RUN-Solo operating mode, the backup CPU is in the STOP mode The previous user program is still on the backup CPU. If you want to restore the previous user program, then switch the primary CPU to the STOP operating mode and then the backup CPU to the RUN operating state. Result: The backup CPU with the previous user program starts as primary CPU. Then switch the backup CPU to the RUN operating state. Result: The redundant system with the previous user program is in the system state Run-Redundant.
Note If you restore the previous user program, the procedure describes leads to the STOP system of the redundant system.
Procedure Proceed as follows to download the user program in RUN: 1. Switch the backup CPU to the STOP operating state. The S7-1500R/H system switches
to RUN-Solo system state. 2. Download the modified user program to the primary CPU with "Download to device" >
"Software (changes only)". The primary CPU continues to control the process. 3. Switch the backup CPU to the RUN operating state. The primary CPU remains in the RUN operating state and synchronizes the modified user program with the backup CPU in SYNCUP. Result: The S7-1500R/H system switches back to redundant mode with the modified user program.
Downloading a modified user program in RUN-Redundant system state
From firmware version V2.8 of the R/H CPUs, you can download a modified user program in RUN-Redundant system state. If no error messages are issued during the download process, the modified user program is then downloaded into the redundant system. Advantage: The redundant system remains in the RUN-Redundant system state during the download.

202

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.3 Commissioning procedure

Changes in the user program
The redundant system remains in the RUN-Redundant system state during the download process when the following changes are made to the user program:

Table 10- 2 Loading changes in the RUN-Redundant system state

User program Text lists (alarms) Comments Blocks OB FB, FC, DB, user data type UDT FB, FC DB
PLC tags

Action New, Change New, Change, Delete
Consistent loading of multiple changes New, Change, Delete, Change properties New, Change, Delete

Feature to note Exception: Comments in the hardware configuration -

Change code, Change interface Change properties (change attribute "Only store in load memory") New
Change name/type of tags, add or delete tags (memory reserve not enabled) Add new tags (memory reserve activated)
Add (timers, counters, bit memories)

-
Actual values in the new data blocks are set to start values. Actual values of tags in the structurally modified data blocks are set to start values. Actual values of added tags within the memory reserve are set to start values. -

Note Response time when downloading a modified user program into the R/H CPUs in the RUNRedundant system state During the download process in the RUN-Redundant system state, the response time of the system is restricted compared with the normal redundant mode. The more changes the user program contains, the higher the impact on the response time.
Requirements  Possible as of firmware version V2.8  SIMATIC memory cards of the R/H CPUs with sufficient free storage space  The redundant system is in the RUN-Redundant system state.  The opened project is in offline mode.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

203

Commissioning 10.3 Commissioning procedure

Procedure
There are various ways of downloading the modified user program in RUN-Redundant system state:

Options for downloading in the RUNRedundant system state

Proceed as follows to download the modified user program in the RUNRedundant system state:

Downloading the modi- 1. Select the program folder or the blocks of the modified user program in

fied user program to

the project tree.

the primary CPU

2. Select the "Download to device" button or select the "Online > Download

to device" menu command.

1. Select the S7-1500R/H system in the project navigation.
2. Press the right mouse button. Select the "Download to device" > "Software (only changes)" command from the shortcut menu.

Downloading the modi- 1. Select the S7-1500R/H system in the project navigation.

fied user program to the backup CPU

2. Press the right mouse button. Select the "Download to backup CPU" > "Software (only changes)" command from the shortcut menu.

Result: The redundant system remains in the RUN-Redundant system state with the modified user program.

Note
The redundant system remains in the RUN-Redundant system state only with the menu command "Download to device" > "Software (only changes)".
The following menu can subsequently stop the redundant system: · "Download to device" > "Hardware configuration" · "Download to device" > "Software (all blocks)" · Download to device >" Hardware and software" (only changes)

204

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

10.4

Operating and system states

10.4.1

Overview

Operating states
Operating states describe the behavior of an individual CPU at a specific time. Knowledge of the operating states of the CPUs is useful for programming startup, testing and error diagnostics. The status LEDs on the front of the CPU and the CPU display indicate the current operating state.
Like standard S7-1500 CPUs, the S7-1500R/H CPUs have the operating states STOP, STARTUP and RUN. For operation as redundant system, one of the two CPUs can take on an additional operating state, SYNCUP, for synchronizing the two subsystems. The RUN operating mode is divided into the following states for redundant systems:
 RUN
 RUN-Syncup
 RUN-Redundant.

System states

The system states enable the direct assessment of the behavior of a redundant system. They result from the combination of the operating states of the individual CPUs.  STOP  STARTUP  RUN-Solo  SYNCUP  RUN-Redundant

Event-controlled synchronization
Event-controlled synchronization ensures that both CPUs in a redundant system can operate redundantly (RUN-Redundant system state).
For all events that could result in different internal subsystem states, the operating system automatically synchronizes the data of the primary and backup CPU.
Primary and backup CPU are, for example, synchronized in the event of:
 Direct access to the IO devices
 Events that interrupt cyclic program execution
 Updates to user times, for example S7 timer
 Updates to the process image
 Changes to data through communication functions
 Access to data that could be different on the different CPUs, for example current time, system time, or runtime messages

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

205

Commissioning 10.4 Operating and system states
Synchronization for redundant mode
In the SYNCUP system state, the operating system synchronizes the user programs in the two CPUs for redundant operation. Synchronization ensures that both CPUs can operate redundantly. In the event of failure of the primary CPU in redundant operation, the backup CPU takes over control of the process as the new primary CPU at the point of interruption.
Requirements for achieving a redundant system state
If the following requirements are met, the redundant system reaches the RUN-Redundant system state:  The requirements for use of the S7-1500R/H redundant system have been met (see
section Application planning (Page 58)).  The two CPUs of the redundant system have recognized each other, which means
pairing was successful (see section CPU pairing (Page 191));  You have commissioned the system as detailed in the section Commissioning procedure
(Page 187).

206

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states
Overview of system and operating states
The figure below shows the possible operating states of the CPUs and the resulting system states. In general, the two CPUs have equal priority; each CPU can be either primary or backup.

Figure 10-6 System and operating states
The following table provides you with an overview of how the redundant system starts and at the same time runs through the various operating modes and system states. The following initial situation and steps are an example.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

207

Commissioning 10.4 Operating and system states

The operating and system states are described in detail in the following sections.

Table 10- 3 Redundant system startup

No. in diagram

Primary CPU

System state

Backup CPU

Initial situation: Both CPUs are in STOP operating state. The mode selectors are also in the STOP position.

Step 1: Switch the mode selector of the CPU that is to be primary CPU from STOP to RUN.



The CPU switches to STARTUP STOP  STARTUP

and executes startup OB 100 and

other available startup OBs.

The CPU remains in STOP mode.



Following successful STARTUP, STARTUP  RUN-Solo

the CPU switches to RUN.

The CPU remains in STOP mode.

The CPU runs like a standard CPU in RUN and executes the user program.

Step 2: Switch the mode selector on the backup CPU from STOP to RUN.



RUN  RUN-Syncup

RUN-Solo  SYNCUP

STOP  SYNCUP

The two user programs are synchronized for redundant mode. The primary CPU copies the contents of the

load and work memory to the backup CPU. The backup CPU catches up with user program processing on

the primary CPU. After successful synchronization, the memory content is identical on the two CPUs.



RUN-Syncup  RUN-Redundant SYNCUP  RUN-Redundant

SYNCUP  RUN-Redundant

After the SYNCUP CPUs go to RUN-Redundant mode. Both CPUs process the user program synchronously.

10.4.2

STARTUP operating state

Startup processing (in the primary CPU only)
STARTUP is only executed by the primary CPU. In STARTUP, the primary CPU behaves just like an S7-1500R/H standard CPU.

Response

Before the CPU starts to execute the cyclic user program, a startup program is executed.
By suitably programming startup OBs, you can initialize variable tags for your cyclic program in the startup routine. You can program one or more startup OBs, or none at all.

208

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

Points to note

 All outputs are disabled or respond as configured for the given module: They provide a configured substitute value or retain the last value output and switch the controlled process to a safe operating state.
 The process image is initialized.
 The process image is not updated. To read the current state of inputs during STARTUP, you can access inputs with direct I/O access. To initialize outputs during STARTUP, you can write values via the process image or with direct I/O access. However, the values are first output at the outputs during the transition to the RUN operating mode.
 The CPU always starts up in warm restart mode.
­ If you define data as retentive, its content is retained beyond program startup after STOP or a power failure.
­ The non-retentive bit memories, timers and counters are initialized.
­ The non-retentive tags in data blocks are initialized.
 During STARTUP, cycle time monitoring is not yet running.
 The CPU processes the startup OBs in the order of the startup OB numbers. The CPU processes all programmed startup OBs regardless of the selected startup type (Figure "Setting the startup behavior").
 If a relevant event occurs, the CPU can start the following OBs in startup:
­ OB 82: Diagnostics interrupt
­ OB 83: Removal/insertion of modules
­ OB 86: Rack error
­ OB 121: Programming error (only for global error handling)
­ OB 122: I/O access error (only for global error handling) You can find a description of how to use global and local error handling in the STEP 7 online help.
The CPU does not start all other OBs until the transition to the RUN operating state.

Behavior when expected and actual configurations do not match
The configuration downloaded to the CPU is the expected configuration. The actual configuration is the actual, physical configuration of the automation system. If the expected configuration and actual configuration differ, the hardware compatibility setting defines the behavior of the CPU.

Aborting or not running startup
If errors occur during startup, the CPU aborts STARTUP and returns to the STOP operating state. The CPU does not perform STARTUP under the following conditions:  You have not inserted a SIMATIC memory card or an invalid one is inserted.  You have not downloaded a hardware configuration to the CPU.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

209

Commissioning 10.4 Operating and system states
Configuring startup behavior
You configure the behavior of the CPU in STEP 7 in the "Startup" group of the CPU properties. Proceed as follows to set the startup behavior: 1. Select the CPU in the device view of the STEP 7 hardware network editor. 2. In the properties, select the "Startup" area.

Figure 10-7 Setting the startup behavior
 Sets the startup type after POWER ON  Defines the startup behavior for the event that a module in a slot does not correspond to
the configured module. This parameter applies to the CPU and to all the modules for which no other setting has been selected. · Startup CPU only if compatible: In this setting, a module in a configured slot must be
compatible with the configured module. Compatible means that the module matches the configured module in terms of: ­ The number of inputs and outputs ­ The electrical and functional properties · Startup CPU even if mismatch: With this setting, the CPU starts up irrespective of the type of module inserted.
 Specifies a maximum period (default: 60 000 ms) in which the distributed I/O must be
ready for operation. If the distributed I/O is ready for operation within the configuration time, the CPU switches to RUN. If the distributed I/O is not ready for operation within the configuration time, the startup behavior of the CPU depends on the hardware compatibility setting.

210

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

10.4.3

STOP operating state

Response

The CPU does not execute the user program in the STOP operating state.
All outputs are disabled or respond as configured for the given module if both CPUs are in STOP operating state: They provide a configured substitute value or retain the last value output and thus hold the controlled process in a safe operating state.

Points to note

The backup CPU establishes no connections to the IO devices in the STOP operating state.
The primary CPU establishes connections to the IO devices in the STOP operating state. The primary CPU activates the system IP address even in the STOP operating state if the system IP address has been configured.
If both CPUs are in STOP and you download a configuration to one CPU, note the following:
 You have not downloaded a configuration to the backup CPU and the backup CPU should become the primary CPU:
Switch the backup CPU to the primary CPU (either in the event dialog of the download process or via the mode switch of the CPU).
 Downloading to the primary CPU configures the connected IO devices in line with the downloaded hardware configuration, even in STOP operating state.

10.4.4

SYNCUP operating state

SYNCUP operating state (only in the backup CPU)
In the SYNCUP operating state, the operating system synchronizes the backup CPU with the primary CPU. The primary CPU is in the RUN-Syncup operating state and controls the process.
Unlike the primary CPU, the backup CPU does not go through the STARTUP operating state.
You can find more information in the section SYNCUP system state (Page 213).

Points to note

You have only limited access to online functions during SYNCUP. You can find more information in the section Test functions (Page 290).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

211

Commissioning 10.4 Operating and system states

10.4.5

RUN operating states

RUN operating states
The primary CPU goes through multiple operating states before reaching the RUNRedundant system state:  RUN  RUN-Syncup  RUN-Redundant The backup CPU only has the RUN-Redundant operating state.

Response

In the RUN operating state, the primary CPU behaves just like an S7-1500 standard CPU. It performs cyclic, time-driven and interrupt-driven program execution on its own.
Addresses that are in the "Automatic update" process image are automatically updated in each program cycle. You can find more information in the section Process images and process image partitions (Page 153).
Once the CPU has written the outputs and read the inputs, it runs through the cyclic program from the first instruction to the last instruction. Events with a higher priority such as hardware interrupts, diagnostic interrupts and communication can interrupt the cyclic program flow and prolong the cycle time.
If you have configured a minimum cycle time, the CPU does not terminate the cycle until after this minimum cycle time has expired, even if the user program is completed sooner.
The operating system monitors the runtime of the cyclic program on the basis of a configurable upper limit known as the maximum cycle time. You can restart this time monitoring at any point in your program by calling the RE_TRIGR instruction.
If the cyclic program exceeds the maximum cycle time, the operating system may start the time error OB (OB 80). You can find additional information in the section Start events (Page 160).

Points to note in the RUN operating state
In non-redundant operation, the CPUs are independent of each other. They can have different projects.

RUN-Syncup operating state
In the RUN-Syncup operating state, the backup CPU synchronizes with the primary CPU. The SYNCUP that temporarily affects the primary CPU (for example delay of asynchronous services, cycle time extension through transfer of the load and work memory contents) runs simultaneously in the backup CPU. You can find more information in the section SYNCUP system state (Page 213).

212

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states
RUN-Redundant operating state
The redundant system is in the RUN-Redundant system state. Both CPUs process the user program synchronously.

10.4.6

SYNCUP system state

Requirements

 The article numbers and firmware versions of the two CPUs are the same.  There is a SIMATIC memory card in each CPU.  The PROFINET ring is closed.  There is at least one redundancy connection (fiber-optic cable) in the S7-1500H
redundant system.  Media redundancy role:
­ The two CPUs have the media redundancy role "Manager (auto)". ­ All other devices in the PROFINET ring have the media redundancy role "Client".  Pairing for the two CPUs has been implemented.  The primary CPU is in the RUN operating state.  The execution of SYNCUP is not disabled (default setting).  No load functions are running.  Testing with breakpoints is not used. No SYNCUP is performed during testing with breakpoints. You will find more information on testing with breakpoints in the STEP 7 online help.

SYNCUP system state
Synchronization in the SYNCUP system state ensures that the two CPUs can operate redundantly. With the SYNCUP system state, the redundant system switches from RUNSolo to the RUN-Redundant system state. Afterwards, both CPUs synchronously process the same user program.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

213

Commissioning 10.4 Operating and system states

Starting SYNCUP
The initial situation is the RUN-Solo system state. The primary CPU of a redundant system is in the RUN operating state and the backup CPU is in the STOP operating state.
The operating states are shown on the displays:

Table 10- 4 Starting SYNCUP Primary CPU

Backup CPU

Start SYNCUP by:  Starting the backup CPU via the PG/PC/HMI device or the display, and the mode selector
is set to RUN. or  Switching the mode selector on the backup CPU from STOP to RUN. or  Powering on the backup CPU (mode selector to RUN).

214

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

Preparing the SYNCUP system state
After SYNCUP starts, the CPUs prepare SYNCUP:  The backup CPU switches to SYNCUP operating state and sends a status message to
the primary CPU.  The primary CPU then switches from the RUN operating state to RUN-Syncup. The current operating states are shown on the displays:

Table 10- 5 Preparing SYNCUP Primary CPU

Backup CPU

Sequence of the SYNCUP system state
The operating systems of the two CPUs run through SYNCUP in five phases:
 Copying the SIMATIC memory card   Restart of the backup CPU   Finishing tasks   Copying the work memory   Making up backup CPU lag 
The display of the primary CPU shows you the current phase of the SYNCUP system state.
The display of the backup CPU shows "Connect..." state during the phases  to  until the
RUN-Redundant system state is reached.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

215

Commissioning 10.4 Operating and system states

 Copying the SIMATIC memory card
The primary CPU copies parts of the load memory to the backup CPU:  User program, system blocks and project data of the CPU from the \SIMATIC.S7S folder

Note Overwriting load memory content
Copying overwrites the load memory contents on the SIMATIC memory card of the backup CPU with the content of the primary CPU load memory.

The display of the primary CPU indicates the copying progress.

Table 10- 6 Copying the SIMATIC memory card Primary CPU

Backup CPU

The backup CPU copies the transferred load memory contents to its work memory.

216

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

 Restart of the backup CPU
The backup CPU restarts and automatically switches back to the SYNCUP operating state. The display of the backup CPU shows the "Connecting..." state.

Table 10- 7 Restart of the backup CPU Primary CPU

Backup CPU

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

217

Commissioning 10.4 Operating and system states

 Finishing tasks
The instructions running asynchronously on the primary CPU are terminated and new ones are accepted but not started.
From this point on, restarted asynchronous instructions are delayed until the "Copying the working memory" phase. The "BUSY" output parameter of instructions is"1". However, processing does not yet start.
The communication connections in the primary CPU are temporarily ended. You can no longer delete, load, generate or compress blocks in the user program. You can no longer run any test or commissioning functions.

Table 10- 8 Preparing the copying of the work memory Primary CPU

Backup CPU

218

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

 Copying the work memory
The backup CPU establishes connections to the IO devices (only with S2 system redundancy).
The primary CPU stores a consistent snapshot of its memory contents and some system memory contents (backup CPU dump) at the next cycle control point: Process image, bit memory, SIMATIC time/count functions, temporary local data, data block contents.
After the snapshot, the primary CPU immediately resumes user program execution. Communication connections are reestablished and asynchronous instructions are started.
The primary CPU copies the consistent snapshot to the backup CPU and continues operating in parallel. Data blocks, the process image, etc. are immediately overwritten with current data from the primary CPU.
The display of the primary CPU indicates the operating state.

Table 10- 9 Copying the work memory Primary CPU

Backup CPU

The backup CPU is busy accepting the data before it can also process the user program.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

219

Commissioning 10.4 Operating and system states

 Making up backup CPU lag In phase , the backup CPU catches up with the primary CPU.
The communication connections on the backup CPU become available during the catch-up process.
The backup CPU sends a status message on its program progress to the primary CPU at each cycle control point.
The display of the primary CPU indicates the lag of the backup CPU.

Table 10- 10 Making up backup CPU lag Primary CPU

Backup CPU

Once the backup CPU has caught up, both CPUs switch to the RUN-Redundant operating state. Both CPUs process the user program synchronously.
Note High load during SYNCUP The higher load during SYNCUP can prolong the program cycle. If SYNCUP is taking too long and the displays are not showing any progress, you can abort SYNCUP and optimize your user program. You can find more information under "SYNCUP system state aborts".
Note Setting a sufficiently long maximum cycle time Configure a sufficiently long maximum cycle time for the CPUs. A temporary increase in the cycle time can occur upon a system state transition SYNCUP  RUN-Redundant.

220

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

Effects of the SYNCUP system state
In SYNCUP, there are different effects on the execution of the user program and communication functions. The effects are set out in the table below.

Table 10- 11 Properties of SYNCUP

Procedure Processing of the user program on the primary CPU Deleting, loading, generating and compressing blocks Processing communication functions PG/PC operation Test and commissioning functions, for example "Monitor and modify tags", "Monitoring (on/off)". Connection handling in the primary CPU
Connection handling in the backup CPU
Diagnostics alarms

Effects during the SYNCUP system state
All priority classes (OBs) are processed. Processing is delayed during the snapshot. After the snapshot, the primary CPU immediately resumes user program execution and asynchronous instructions are started.
Blocks cannot be deleted, loaded, generated or compressed.
The execution of parts of functions is limited and delayed. The system makes up the delays in all functions after SYNCUP.
Depending on the SYNCUP phase, online connections from the PG/PC to the CPU may not be possible.
Depending on the SYNCUP phase, no test and commissioning functions may be possible.
All communication connections are initially aborted. After the snapshot, the primary CPU re-establishes communication connections with active connection establishment. Note that the CPU takes some time to reestablish the communication connections. The CPU re-establishes connection endpoints for communication connections with passive connection setup.
All communication connections are initially aborted. The backup CPU establishes connections (ARs) to the IO devices (only with S2 system redundancy). The communication connections on the backup CPU become available during the backup CPU catch-up process.
Diagnostic alarms can be delayed during the SYNCUP system state. The OB 82 reports delayed diagnostic alarms. If diagnostic alarms occur during the "Making up backup CPU lag" phase, the diagnostic alarms can prolong this phase. You can find additional information in the section Basics to the Program processing (Page 160).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

221

Commissioning 10.4 Operating and system states
SYNCUP system state aborts
Abort is possible in a range of cases even if you have successfully launched the SYNCUP system state:
 If one of the two CPUs POWERS OFF.
 If you switch the backup CPU to STOP; the primary CPU continues operating in RUN operating state. The abort of SYNCUP may be delayed by a few seconds.
 If you set the primary CPU to STOP; the redundant system switches to the STOP system state as the backup CPU was not ready to take over control of the process (not shown in the following figure). The backup CPU restarts.
 If the backup CPU lag is not reduced to less than the smallest value after 100 program cycles and 10 to 13 seconds, the primary CPU aborts SYNCUP. Evaluate the diagnostics buffer of the primary and the backup CPU.
 If one of the CPUs detects an error that impedes progress, for example if the cycle time is exceeded in the primary CPU.
 If the PROFINET ring was already interrupted before changing to the SYNCUP system state or if the PROFINET ring is interrupted during SYNCUP.
 If there are other devices in the PROFINET ring apart from the CPUs to which the media redundancy role "Manager" or "Manager (auto)" was assigned.

222

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states
You can find a detailed list of the causes of error and remedies in the table SYNCUP abort: Causes and solutions.

Figure 10-8 SYNCUP system state aborts

Table 10- 12 Sequence of events: SYNCUP aborts

No. in diagram

Primary CPU

System state

Backup CPU

Initial situation: The S7-1500R/H redundant system is in the SYNCUP system state. An error occurs in the backup CPU.

 The CPU does not switch from the RUN-
Syncup operating state to RUN-Redundant,

SYNCUP  RUN-Solo

but instead returns to RUN and continues to

execute the user program.

If SYNCUP aborts, the backup CPU may restart and then switch to the STOP operating state. The backup CPU is ready for a new SYNCUP.

Procedure for error correction 1. Eliminate the error. 2. Switch the backup CPU from STOP to RUN. The backup CPU switches from STOP to the SYNCUP operating state. Synchronization restarts.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

223

Commissioning 10.4 Operating and system states

Causes of error and troubleshooting
There are various possible causes of a SYNCUP system state abort. In the event of a SYNCUP abort, evaluate the diagnostics buffer of the primary and the backup CPU.

Table 10- 13 SYNCUP abort: Causes and solutions

Cause of SYNCUP abort

Solution

Too little memory on the SIMATIC memory card of the backup CPU.
The name of files or directories on the SIMATIC memory card of the backup CPU contains unsupported characters. The number of hierarchy levels used in directories on the SIMATIC memory card of the backup CPU is too large.
System overload. The user program load is too high, and the backup CPU is therefore not catching up with program execution on the primary CPU.

Delete data from the SIMATIC memory card or use a SIMATIC memory card with greater memory capacity. You can find more information in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/ww/en/view/59193 101).
Make sure that file and/or directory names do not contain umlauts (ö, ä, ü, Ö, Ä, Ü).
Make sure that the directory structure does not consist of more than 6 hierarchy levels (e.g. (F:) SIMATIC MC/1/2/3/4/5/6/file.txt).
Use the "RT_INFO" instruction to generate statistics on the runtime of OBs, communication or the user program.
You can shorten the backup CPU delay compared to the primary CPU by:

· Addressing the CPU overload by reducing the postprocessing of cyclic events (events from one source, for example start events for a cyclic interrupt OB). You can find more information in the Cycle and response times (http://support.automation.siemens.com/WW/view/en/59 193558) function manual.
· Not setting too low a minimum cycle time for program cycle OBs or increasing the minimum cycle time. This reduces the frequency at which the program cycle OBs are called.

The load on the redundancy connections between primary Reduce the load on the redundancy connections between and backup CPU is too high. As a result, the backup CPU is primary and backup CPU by: not catching up with program execution on the primary CPU. · Reducing the post-processing of cyclic events (see
above)

· Avoiding instructions that increase the synchronization load, for example direct access, time access (for example RD_SYS_T, WR_SYS_T, RD_LOC_T)
· Reducing communication (HMI, PG/PG, Open User Communication, etc.)
· Complying with the configuration rules

224

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

Cause of SYNCUP abort Maximum cycle time in the primary CPU exceeded

Solution
· Reduce the cycle time by setting a lower communication load in the hardware configuration.

· Configure a sufficiently long maximum cycle time.
· If there is an OB 80 (time error OB) in the downloaded user program, it is called by the operating system to tolerate the cycle time being exceeded (see section Start events (Page 160)).

Primary CPU or backup CPU goes into STOP operating state.

Switch the primary CPU or backup CPU into RUN operating state.

PROFINET ring interrupted

Replace defective PROFINET cables or PROFINET devices in the PROFINET ring.

In the PROFINET ring, in addition to the two CPUs, there Configure the media redundancy role "Client" for all other are other devices with the media redundancy role "Manager" devices in the PROFINET ring. or "Manager (auto)".

Supply voltage of the primary or backup CPU has failed.

Restore the supply voltage. Replace a defective load current supply (PM).

Simultaneous POWER OFF / POWER ON switching at both Switch both CPUs POWER OFF/ON again. The SYNCUP is

CPUs during SYNCUP:

executed again.

If you switch both CPUs POWER OFF/ON at the same time during SYNCUP, SYNCUP will be aborted.

10.4.7

System and operating state transitions

System state transitions
The following figure shows the system state transitions of the redundant S7-1500R/H system.

Figure 10-9 System state transitions

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

225

Commissioning 10.4 Operating and system states Operating state transitions
Operating state transitions of the redundant system The following figure shows the operating state transitions of the primary and backup CPU.
Figure 10-10 Operating state transitions

226

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

 POWER ON  STARTUP, POWER ON  SYNCUP

Transition System state transition
Operating state transitions

Description
POWER ON  STARTUP The CPUs implement pairing after switch-on. The redundant system then switches to STARTUP if:
· The mode selector is set to the RUN position;
· The hardware configuration and program blocks are consistent, and
· The startup type "Warm restart - RUN" is set or
· The startup type "Warm restart - Operating mode before POWER OFF" is set and the system was in RUN-Solo, SYNCUP or RUN-Redundant before POWER OFF.
The CPU that becomes the primary CPU runs the STARTUP. The primary CPU switches to the STARTUP operating state. POWER ON  STARTUP The CPUs implement pairing after switch-on. The primary CPU then switches to the STARTUP operating state if:
· The mode selector is in the RUN position;
· The hardware configuration and program blocks are consistent, and
· The startup type "Warm restart - RUN" is set

Effect
After POWER ON  STARTUP, the primary CPU clears the nonretentive memory and resets the contents of non-retentive data blocks to the initial values of the load memory. Retentive memory and retentive DB contents are retained.

or
· The startup type "Warm restart - Operating mode before POWER OFF" is set and the CPU was in STARTUP, RUN, RUN-Syncup or RUNRedundant before POWER OFF.

POWER ON  SYNCUP The CPUs implement pairing after switch-on. The backup CPU then switches to the SYNCUP operating state if:
· The mode selector is in the RUN position and
· The primary CPU is in the STARTUP or RUN operating state.

Automatic STARTUP after POWER ON only possible for the primary CPU
Note The automatic STARTUP after POWER ON only for the primary CPU prevents a CPU with outdated, retentive data from automatically changing to the RUN operating mode. You can switch the backup CPU manually to RUN, this then automatically becomes the primary CPU and starts with its retentive data.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

227

Commissioning 10.4 Operating and system states
If you have parameterized "Startup after POWER ON" "Warm restart..." as the startup type, then the primary CPU only carries out the startup if the CPU became the primary CPU in POWER ON, i.e.:  No partner CPU found
or  Due to the role assignment, the local CPU became the primary CPU and the partner CPU
became the backup CPU If a CPU became the backup CPU in POWER ON, then:  if all the requirements are met, this results in an automatic SYNCUP
or  the backup CPU changes to STOP
In both cases the CPU remains the backup CPU and can therefore not automatically carry out the STARTUP.
To illustrate the process, here are two examples:
 No STARTUP after parameterization "Warm restart - RUN"
Requirements:  You have parameterized "Warm restart - RUN" for both CPUs.  The pairing was successful for both CPUs.  Both CPUs are in STOP.  Both mode switches are set to RUN. Procedure: 1. POWER OFF/POWER ON the backup CPU. Result: The CPU becomes the backup CPU
again and changes to STOP. 2. POWER OFF/POWER ON the primary CPU. Result: The CPU changes to RUN. The
redundant system switches to the RUN-Solo system state. 3. Switch the backup CPU to POWER OFF/POWER ON again. Result: The redundant
system switches to the SYNCUP system state.
 No STARTUP after parameterization "Warm restart - operating mode before POWER
OFF" Requirements:  You have parameterized "Warm restart - operating mode before POWER OFF" for both
CPUs.  The redundant system is in the RUN-Redundant system state. Procedure: 1. POWER OFF both CPUs at the same time. 2. Set the mode selector for the primary CPU to STOP. 3. POWER ON both CPUs again. Result: The redundant system switches to the STOP
system state.

228

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

 POWER ON  STOP

Transition
System state transition
Operating state transitions

Description POWER ON  STOP The redundant system switches to the STOP system state after switch-on if:
· The CPUs have different firmware versions
or · The mode selector is in the STOP position
or · The hardware configuration and program blocks are inconsistent
or · The startup type "No restart (remain in STOP)" is set
or · The startup type "Warm restart - Operating mode before POWER OFF" is
set and the redundant system was in STOP before POWER OFF.

Effects
The primary CPU clears the nonretentive memory and resets the contents of non-retentive data blocks to the initial values of the load memory. Retentive memory and retentive DB contents are retained.

STOP  STARTUP

Transition System state transition
Operating state transition

Description STOP  STARTUP The redundant system switches to the STARTUP system state if:
· You set a CPU to RUN via the PG/PC or the display and the mode selector is set to RUN
or
· You set the mode switch from STOP to RUN. The CPU that you switch from STOP to RUN first remains/becomes the primary CPU. It switches to the STARTUP operating state and processes the startup blocks. The backup CPU remains in STOP. STOP  STARTUP After switch-on, the primary CPU switches to the STARTUP operating state if:
· The hardware configuration and program blocks are consistent

Effects
The primary CPU clears the nonretentive memory and resets the contents of non-retentive data blocks to the initial values of the load memory. Retentive memory and retentive DB contents are retained.
If there is a role change between primary and backup CPU, connected IO devices are temporarily unavailable.

and
· You set the CPU to RUN via the PG/PC or the display and the mode selector is set to RUN

or · You set the mode switch from STOP to RUN.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

229

Commissioning 10.4 Operating and system states

STARTUP  RUN-Solo, STARTUP  RUN

Transition System state transition
Operating state transition

Description STARTUP  RUN-Solo The redundant system switches from STARTUP to the RUN-Solo system state if:
· The primary CPU has initialized the PLC tags
and · The primary CPU has executed the startup blocks successfully
and · "Startup CPU only if compatible" is configured, there is feedback from all
IO devices before the end of the configuration time and all IO devices match the configured hardware configuration or "Startup CPU even if mismatch" is configured and the configuration time is up. The backup CPU remains in STOP. STARTUP  RUN The primary CPU switches to the RUN operating state if:
· The CPU has initialized the PLC tags; · The CPU has executed the startup blocks successfully;
and · "Startup CPU only if compatible" is configured, there is feedback from all
IO devices before the end of the configuration time and all IO devices match the configured hardware configuration or "Startup CPU even if mismatch" is configured and the configuration time is up.

Effects
The process image is updated and processing of the cyclic user program begins.
The outputs of the IO devices are initialized.

230

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

RUN-Solo  SYNCUP, RUN  RUN-Syncup, STOP  SYNCUP

Transition System state transition
Operating state transitions

Description
RUN-Solo  SYNCUP The primary CPU is in the RUN operating state. The redundant system switches from the RUN-Solo system state to the SYNCUP system state if:
· You set the backup CPU to RUN via the PG/PC or the display and the mode selector is set to RUN

Effects
See section SYNCUP system state (Page 213)

or · You switch the mode selector on the backup CPU from STOP to RUN.

or · You POWER ON the backup CPU (mode selector to RUN)

and · the SYNCUP system state is not disabled by the RH_CTRL instruction.

RUN  RUN-Syncup The primary CPU switches from the RUN operating state to the RUN-Syncup operating state if:
· You set the backup CPU to RUN via the PG/PC or the display and the mode selector is set to RUN

or · You switch the mode selector on the backup CPU from STOP to RUN.

or · You POWER ON the backup CPU (mode selector to RUN).

STOP  SYNCUP
The backup CPU switches from the STOP operating state to the SYNCUP operating state.

SYNCUP  RUN-Redundant, RUN-Syncup  RUN-Redundant

Transition System state transition
Operating state transitions

Description
SYNCUP  RUN-Redundant
The redundant system switches from SYNCUP to the RUN-Redundant system state if SYNCUP has successfully run.
In the RUN-Redundant system state, the two CPUs execute the user program synchronously.
Note: A temporary increase in the cycle time can occur upon a system state transition SYNCUP  RUN-Redundant. Configure a sufficiently long maximum cycle time for the CPUs.
RUN-Syncup  RUN-Redundant
The primary CPU switches from the RUN-Syncup operating state to the RUN-Redundant operating state if SYNCUP has successfully run.
SYNCUP  RUN-Redundant
The backup CPU switches from the SYNCUP operating state to the RUNRedundant operating state if SYNCUP has successfully run.

Effects
This system state transition does not have any effect on data.
Communication connections (HMI, PG/PC) on the backup CPU become available.
Both CPUs process the user program synchronously.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

231

Commissioning 10.4 Operating and system states

RUN-Redundant  RUN-Solo, RUN-Redundant  RUN

Transition System state transition
Operating state transition

Description RUN-Redundant  RUN-Solo The redundant system switches from the RUN-Redundant system state to the RUN-Solo system state (loss of redundancy) if:
· You POWER OFF one of the CPUs.

Effects
This system state transition does not have any effect on the data.

or · A CPU detects an error which prevents further work.

or
· The cycle time was exceeded once, see section Events and OBs (Page 160)

or
· You set one of the CPUs to STOP with the PG/PC, the display or the mode selector.
The primary CPU switches to RUN or the backup CPU becomes the primary CPU and switches to RUN.
RUN-Redundant  RUN
The primary CPU switches from the RUN-Redundant operating state to the RUN operating state and continues to execute the user program.

This operating state transition does not have any effect on data.

RUN-Redundant  STOP, RUN-Solo  STOP, RUN  STOP

Transition System state transition
Operating state transitions

Description

Effects

RUN-Redundant  STOP, RUN-Solo  STOP

This system state tran-

The redundant system switches from the RUN-Redundant/RUN-Solo system sition does not have

state to the STOP system state if:

any effect on data.

· The redundant system detects an error that prevents further processing or

· The redundant system processes a STOP command in the user program or

· You set the redundant system to STOP with the PG/PC.

RUN-Redundant  STOP, RUN  STOP

These operating state

The primary CPU switches from the RUN-Redundant/RUN operating state to transitions have no

the STOP operating state if:

effect on data.

· The CPU detects an error that prevents further work on one of the two CPUs.

or
· You set the CPU to STOP with the PG/PC, the display or the mode selector.

RUN-Redundant  STOP
The backup CPU switches from the RUN-Redundant operating state to the STOP operating state.

232

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

 SYNCUP  RUN-Solo, RUN-Syncup  RUN

Transition System state transition
Primary CPU operating state transition

Description SYNCUP  RUN-Solo The redundant system switches from the SYNCUP system state to the RUNSolo system state if:
· You execute POWER OFF for the backup CPU

Effects
This system state transition does not have any effect on data.

or
· The redundant system detects an error during SYNCUP that prevents redundant operation

or
· You set the backup CPU to STOP with the PG/PC, the display or the mode selector.

RUN-Syncup  RUN

These operating state

The primary CPU switches from the RUN-Syncup operating state to the RUN transitions have no

operating state and continues to execute the user program.

effect on data.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

233

Commissioning 10.4 Operating and system states

SYNCUP  STOP, RUN-Syncup  STOP

Transition System state transition
Operating state transitions

Description

Effects

SYNCUP  STOP

This system state tran-

The redundant system switches from the SYNCUP system state to the STOP sition does not have

system state if:

any effect on data.

· You set the primary CPU or both CPUs to STOP with the PG/PC, the display or the mode selector.

· SYNCUP Is aborted as a result of an error in the primary CPU or in both CPUs.

RUN-Syncup  STOP The primary CPU switches from the RUN-Syncup operating state to the STOP operating state if:
· The primary CPU detects an error that prevents further processing

These operating state transitions have no effect on data.

or
· You set the primary CPU to STOP with the PG/PC, the display or the mode selector

or · The redundant system processes a STOP command in the user program.

SYNCUP  STOP The backup CPU restarts and switches to the STOP operating state after SYNCUP aborts if:
· SYNCUP Is aborted due to an error (for causes and remedies, see section SYNCUP system state (Page 213))

or
· You set the CPU to STOP with the PG/PC, the display or the mode selector.

234

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

STARTUP  STOP

Transition System state transition
Primary CPU operating state transition

Description STARTUP  STOP The redundant system switches from the STARTUP system state to the STOP system state if: · The primary CPU detects an error during startup that prevents further
processing
or · You set the primary CPU to STOP with the PG/PC, the display or the
mode selector
or · The primary CPU processes a STOP command in startup OB
or · In the CPU properties, you have set the following for startup behavior:
­ Too short a configuration time for the distributed I/O and ­ "Startup CPU only if compatible" The primary CPU switches to STOP.

Effects
This system state transition does not have any effect on data.
This operating state transition does not have any effect on data.

10.4.8

Loss of redundancy

Introduction

The following section explains in more detail the system and operating state transitions 
from the System and operating state transitions (Page 225) section.
 RUN-Redundant  RUN-Solo
 RUN-Redundant  RUN

Response

Loss of redundancy means:
 The redundant system switches from the RUN-Redundant system state to the RUN-Solo system state.
 The primary CPU switches from the RUN-Redundant operating state to RUN (1)
or
 Primary-backup switchover: The backup CPU becomes the primary CPU and switches from the RUN-Redundant operating state to RUN (2).
The primary CPU continues to execute the user program in the RUN operating state and exchanges process data with the IO devices.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

235

Commissioning 10.4 Operating and system states
Causes of redundancy loss
The redundant system switches from the RUN-Redundant system state to RUN-Solo if:  You POWER OFF one of the CPUs.  You set one of the two CPUs to STOP with the PG/PC, the display or the mode selector.  A CPU detects an error that prevents continued processing, for example:
­ Failure of a CPU, for example as a result of a hardware defect. ­ Cycle time exceeded
(1) Primary CPU switches to the RUN operating state

Figure 10-11 Primary CPU switches to the RUN operating state

236

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states

Table 10- 14 Response to loss of redundancy: Primary CPU switches to RUN

No. in Primary CPU diagram

System state

Backup CPU

Initial situation: The S7-1500R/H redundant system is in the RUN-Redundant system state.

The backup CPU fails because of a hardware defect.

 The CPU switches from RUN-

RUN-Redundant  RUN-Solo Following the error, the CPU switches

Redundant to RUN. The CPU be-

from the RUN-Redundant operating state

haves like a standard CPU and

to STOP or POWER OFF.

continues to process the user pro-

gram.

Error elimination procedure for redundant operation 1. Eliminate the error. 2. Start the backup CPU. The backup CPU switches from the STOP operating state to the SYNCUP operating state. Synchronization starts as detailed in the section SYNCUP system state (Page 213).

(2) Primary-backup switchover

Figure 10-12 Primary-backup switchover

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

237

Commissioning 10.4 Operating and system states

Table 10- 15 Response to primary CPU error: Backup CPU becomes primary CPU and switches to RUN

No. in CPU 1 diagram

System state

CPU 2

Initial situation: The S7-1500R/H redundant system is in the RUN-Redundant system state.

The primary CPU (CPU 1) fails because of a hardware defect.

 Following the failure, CPU 1 switch- RUN-Redundant  RUN-Solo CPU 2 becomes primary CPU and

es from the RUN-Redundant oper-

switches to the RUN operating state.

ating state to STOP or POWER

The CPU behaves like a standard CPU

OFF.

and continues to process the user pro-

gram.

Error elimination procedure for redundant operation 1. Eliminate the error. 2. Start CPU 1. CPU 1 becomes the backup CPU and switches from the STOP operating state to the SYNCUP operating state. Synchronization starts as detailed in the section SYNCUP system state (Page 213).

10.4.9

Displaying and changing the system state

Introduction

For commissioning and service, you require information on the system state of the redundant system. Examples:
 The redundant system does not switch to the RUN-Redundant system state upon initial commissioning.
 The primary CPU has failed due to a fault.

Options

You have the following options for displaying and changing the system state of the S71500R/H redundant system:
 Using the mode selectors on the CPUs, you can change the operating states of the CPUs and therefore the system state
 Via the displays of the primary and backup CPU
 In STEP 7, for example when the R/H-CPUs are far apart

238

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.4 Operating and system states
Display of the primary and backup CPU
Displaying the operating state: The operating state of the primary and backup CPU is shown in the status information in the top section of the displays. The two operating states define the system state. Examples:  Status information for the primary and backup CPUs: RUN-Redundant, RUN-Redundant.
Result: The system state is RUN-Redundant.  Status information for the primary and backup CPUs: RUN, STOP. Result: The system
state is RUN-Solo. Changing the operating state: Switch the CPU to the required operating state in the "Settings > RUN / STOP" menu of the display.
Note Please note that you can only implement the system states RUN-Redundant and STOP through the displays by switching both CPUs to the operating state RUN or STOP .
SIMATIC S7-1500 Display Simulator A simulation of the display of the available menu commands is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/disp_tool/start_en.html).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

239

Commissioning 10.4 Operating and system states

STEP 7

Displaying the system state: The R/H-system operating panel (Online & Diagnostics) displays the system status. Changing the system state: On the R/H system control panel (Online & diagnostics):  STOP system state: Press the STOP R/H-System button.

Figure 10-13 STOP system state on the R/H system control panel
On the CPU control panels (Online & diagnostics):  RUN-Redundant system state: Press the RUN R/H-System button on both CPU operator
panels.
Note Please note that you cannot switch the S7-1500R/H system to the RUN-Redundant system state over the R/H system control panel. You implement the RUN-Redundant system state by switching each CPU on its control panel to RUN.

240

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.5 CPU memory reset

10.5

CPU memory reset

Basics of a memory reset
Memory resets can be performed for the primary and for the backup CPU. Memory resets are generally only useful for the primary CPU. Reason: Following a primary CPU memory reset, you need to trigger synchronization for redundant operation. In SYNCUP, the backup CPU is synchronized with the retentive data from the primary CPU. Following SYNCUP, the backup CPU processes the same user program as the primary CPU. The memory reset process for R/H-CPUs is identical to that for the S7-1500 standard CPUs. The CPU must be in the STOP operating state for a memory reset. A memory reset returns the CPU to its "initial state".
Note A memory reset only ever affects the CPU to which you have applied the function. For a memory reset of both CPUs, apply the function to each in turn.
Memory reset means:  An existing online connection between your programming device/PC and the CPU is
terminated.  The content of the work memory and the retentive and non-retentive data are deleted.  The diagnostics buffer, time of day, IP address and the redundancy ID are retained.  Subsequently the CPU is initialized with the loaded project data (hardware configuration,
code and data blocks, force jobs). The CPU copies this data from the load memory to the work memory.  Data blocks no longer have actual values but rather their configured start values.  Force jobs remain active.
Detecting a CPU memory reset
The RUN/STOP LED flashes yellow at 2 Hz. After completion, the CPU switches to STOP. The RUN/STOP LED lights up yellow.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

241

Commissioning 10.5 CPU memory reset

Result after memory reset
The following table provides an overview of the contents of the memory objects after memory reset.

Table 10- 16 Memory objects after memory reset

Memory object Redundancy ID Actual values of the data blocks, instance data blocks Bit memories, timers and counters Entries in the diagnostics buffer1) (retentive area) Entries in the diagnostics buffer (non-retentive area) IP addresses Device name (module name) Counter readings of the runtime meters Time of day

Contents Retained Initialized Initialized Retained Initialized Retained Retained Retained Retained

1) The entries in the diagnostics buffer are the 500 most recent entries.

10.5.1

Automatic memory reset

Possible causes of automatic memory reset
Proper continuation of work is prevented in the following cases. The CPU performs an automatic memory reset.
These can be caused by:
 User program is too large and cannot be loaded to the work memory in full.
 The project data on the SIMATIC memory card are damaged, for example because a file was deleted.
 You remove or insert the SIMATIC memory card. The backed-up retentive data differs in structure from the data in the configuration on the SIMATIC memory card.
 SYNCUP aborts in the backup CPU. You can find more information in the section SYNCUP system state (Page 213).

242

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.5 CPU memory reset

10.5.2

Manual memory reset

Reason for manual memory reset
Memory reset is required to reset the primary or backup CPU to its "initial state". Memory resets can only be run in the STOP operating state of a CPU.

CPU memory reset
There are three options for performing a CPU memory reset:  Using the mode selector  Using the display  Using STEP 7

Procedure using the mode selector
Note Memory reset  Reset to factory settings The procedure described below also corresponds to the procedure for resetting to factory settings: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
Proceed as follows for a CPU memory reset using the mode selector: 1. Set the mode selector to STOP.
Result: The RUN/STOP LED lights up yellow. 2. Set the mode selector to MRES. Hold the switch in this position until the RUN/STOP LED
lights up for the second time and remains continuously lit after three seconds. Then release the mode selector. 3. Within the next three seconds, switch the mode selector back to the MRES position and then back to STOP. Result: The CPU executes a memory reset. For information on resetting the CPU to factory settings, please refer to the section Resetting CPUs to factory settings (Page 286).

Procedure using the display
To navigate to the desired "Memory reset" menu command, select the following sequence of menu commands and confirm after each selection with "OK".
 Settings  Reset  Memory reset
Result: The CPU executes a memory reset.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

243

Commissioning 10.6 Backing up and restoring the CPU configuration
Procedure using STEP 7
Requirement: There is an online connection between the CPU ad PG/PC. Proceed as follows for a CPU memory reset with STEP 7: 1. Open the "Online Tools" task card of the CPU. 2. Click "MRES" in the "CPU operator panel" pane. 3. Click "OK" in response to the confirmation prompt. Result: The CPU executes a memory reset.

10.6

Backing up and restoring the CPU configuration

Backup from online device
You may make changes in the operation of your plant. For example, you may add new devices, replace existing ones or adapt the user program. If these changes result in undesirable behavior, you can restore the plant to an earlier state. Before you download a changed configuration to the CPU, first use the option "Backup from online device" to create a complete backup of the current device state.

Upload from device (software)
With the option "Upload from device (software)", you load the software project data from the CPU to an existing CPU in the project.

Upload device as new station
If you are operating a new PG/PC in the plant, the STEP 7 project that was used to create the plant configuration might not be available. In this case, you can use the option "Upload device as new station" to load the device data to a project in your PG/PC.

Snapshot of the actual values
To allow you to restore the actual values at a later date, back up the actual values of the data blocks using the option "Snapshot of the actual values".

244

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.6 Backing up and restoring the CPU configuration

Overview of backup types
The table below shows the backup of CPU data depending on the selected type of backup and its specific characteristics:

Table 10- 17 Types of backup

Actual values of all DBs (global and instance data blocks) Blocks of the type OB, FC, FB and DB PLC tags (tag names and constant names) Hardware configuration Actual values (bit memories, timers and counters) Contents of the SIMATIC memory card Entries in the diagnostics buffer Current time
Backup can be edited Backup possible in system state

Backup from online device


Upload from device (software)












--



--



--

--

--

--

--

Properties of the type of backup

--



RUN-Solo1), STOP RUN-Redundant, RUN-Solo, STOP

1) From backup CPU

Upload device as new station 


 --
--
---
 RUN-Redundant, RUN-Solo, STOP

Snapshot of the actual values 
--
--
---
--
---
 RUN-Redundant, RUN-Solo, STOP

Example: Backup from online device
The following example shows how to carry out a complete backup of the current device state of the CPUs in STEP 7. The S7-1500R/H redundant system is in the RUN-Redundant system state. Special consideration should be given to the following:
 Before the backup, the backup CPU goes into STOP mode.
 The CPU data of the backup CPU is backed up.
To start the backup, proceed as follows:
1. Right-click to select the S7-1500R/H system in the project tree.
2. Select the "Backup from online device" command from the shortcut menu.
3. The "Upload preview" dialog window sets out the key information on the backup process to be run. To make a backup, you need to set the S7-1500R/H redundant system to the RUN-Solo system state.
Note: If you open the entry "Stop module" in the preview, then you can see which CPU is stopped.
4. In the "Action" column, select the "Stop module" command from the drop-down menu.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

245

Commissioning 10.6 Backing up and restoring the CPU configuration

5. Click "Upload from device". The backup CPU switches to the STOP operating state. The backup of the CPU data of the backup CPU begins. The backup is saved in the folder of the top CPU in the project tree.
6. Switch the redundant system to the RUN-Redundant system state again.

Example: Restoring a backup of an online device
If you have saved the CPU data beforehand, you can transfer the backup back to the device. The saved backup is then restored to the CPU.
The S7-1500R/H redundant system is in the RUN-Redundant system state. Special consideration should be given to the following:
 The backup is loaded into the primary CPU.
 Before the restore, the redundant system goes to the STOP system state.
To start the backup restore, proceed as follows:
1. In the project, open the folder of the top CPU in the project tree to display the lower-level objects.
2. Open the "Online backups" folder.
3. Select the backup you want to restore.
4. In the "Online" menu, select the "Download to device" command.
5. The "Load preview" dialog window sets out the key information on the restore process to be run: For a restore, you must switch the S7-1500R/H redundant system to the STOP system state.
6. In the "Action" column, select the "Overwrite" command from the drop-down menu.
7. Click "Download". The redundant system switches to the STOP system state. The backup is transferred to the primary CPU and restored. The "Load results" dialog then opens. In this dialog, you can check whether or not the loading operation was successful and take any further action that may be necessary (no action, start modules).
8. Click "Finish".

Reference

You can find more information on the various types of backup in the STEP 7 online help.

Emergency address (emergency IP)
If you cannot access the CPU via the IP address, you can set a temporary emergency IP address for the CPU. To the more information on emergency address options, please refer to the Communication (https://support.industry.siemens.com/cs/ww/de/view/59192925/en) function manual.

246

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.6 Backing up and restoring the CPU configuration
Storage of multilingual project texts
Different categories of texts are created when you configure a CPU, for example  Object names (names of blocks, modules, tags, etc.)  Comments (for blocks, networks, watch tables, etc.)  Messages and diagnostic texts Texts are provided by the system, for example texts in the diagnostics buffer, or they are created during configuration, for example messages. Texts exist in the project in one language or, after a translation process, in multiple languages. You can maintain project texts in all languages available to you in the project tree (Languages & resources > Project texts). The texts created during configuration can be downloaded to the CPU. The following texts containing the project data are downloaded to the CPU in the chosen languages and are also used by the CPU display:  Diagnostics buffer texts (not editable)  Status texts for the module status (cannot be changed)  Message texts with associated text lists  Tag comments and step comments for PLC Code Viewer  Comments in watch tables The following texts are also loaded into the CPU in the selected languages with the project languages, but are not used by the CPU display:  Comments in tag tables (for tags and constants)  Comments in global data blocks  Comments of elements in block interfaces of FBs, FCs, DBs and UDTs  Network titles in blocks written in LAD, FBD or STL  Block comments  Network comments  Comments of LAD and FBD elements

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

247

Commissioning 10.7 Time synchronization

The S7-1500R/H CPUs support archiving of multilingual project texts in up to three different project languages. If the project texts for a project language nevertheless exceed the memory space reserved for them on the SIMATIC memory card, the project cannot be downloaded to the CPU. The download is aborted with a notice that not enough memory space is available. In such a case, take measures to reduce the required storage space, for example by shortening comments.
Note SIMATIC memory card
Make sure that there is enough available storage space on your SIMATIC memory card for downloading projects.
In order to be able to download and back up projects, the project size and the size of files on the SIMATIC memory card may not exceed 2 GB.
Do not manipulate any contents in the OMSSTORE folder on the SIMATIC memory card.
You can find information on reading out the memory usage of the CPU and the SIMATIC memory card in the Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/de/de/view/59193101/en) Function Manual.
You can find information on parameter assignment of multilingual project texts in STEP 7 in the STEP 7 online help.

10.7

Time synchronization

Introduction

All S7-1500R/H CPUs have an internal clock. The clock shows:  The time of day with a resolution of 1 millisecond  The date and the day of the week The CPUs take into account the time change caused by daylight saving time. In redundant mode, the two CPUs of the S7-1500R/H redundant system constantly synchronize their internal clocks. You can synchronize the time of the CPUs using the NTP procedure.

Principle of operation
In NTP mode, the device sends time queries at regular intervals (in client mode) to the NTP server in the subnet (LAN). Based on the replies from the servers, the most reliable and most accurate time is calculated and the time of day on the S7-1500R/H CPU is synchronized. The advantage of this mode is that it allows the time to be synchronized across subnets. You can synchronize the time of day of up to a maximum of four NTP servers. You address a communications processor or an HMI device, for example, as sources for time synchronization via the IP addresses.
The update interval defines the interval between the time queries (in seconds). The value range for the interval is 10 seconds to one day. In NTP mode, it is generally UTC (Universal Time Coordinated) that is transferred. UTC corresponds to GMT (Greenwich Mean Time).

248

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Conditions Procedure

Commissioning 10.7 Time synchronization
 In the S7-1500R/H redundant system, you need to configure time synchronization in NTP mode for each CPU individually. If possible, use the same settings for both CPUs.
 The settings for time synchronization with NTP mode are defined at PROFINET interface X1. PROFINET interface X2 uses the settings from PROFINET interface X1.
 Make sure that the primary CPU maintains a constant connection to the NTP server. The backup CPU then receives its synchronized time of day from the primary CPU.
Proceed as follows to enable time synchronization for a CPU: 1. Configure the interface properties in the "Properties > General > PROFINET interface >
Time synchronization" parameter group. Select the "Enable time synchronization via NTP server" option. 2. Enter the IP addresses of up to four NTP servers at parameter "Server 1-4". 3. Set the time interval for time queries at the parameter "Update interval".

10.7.1

Example: Configuring the NTP server

Configuring time synchronization with your own NTP server
Automation task You use your own server in your network. Your own server offers the following advantages:  Protection against unauthorized external accesses  Every device that you synchronize with your own NTP server uses the same time. You want to synchronize the CPUs of your S7-1500R/H redundant system with this NTP server.
Conditions and parameters  You have your own NTP server in your network with the IP address 192.168.1.15.  S7-1500R/H redundant system

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

249

Commissioning 10.7 Time synchronization
Solution 1. Navigate to "Properties > General > PROFINET interface > Time synchronization > NTP
mode" in the properties of the first CPU. 2. For "Server 1:", enter the IP address of the NTP server: 192.168.1.15.
Figure 10-14 Example: Configuring the NTP server 3. Repeat steps 1 and 2 for the second CPU. 4. Download the hardware configuration to the primary CPU. Result The S7-1500R/H redundant system synchronizes its time with NTP server 192.168.1.15.

250

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

10.8

Commissioning 10.8 Identification and maintenance data
Identification and maintenance data

10.8.1

Reading out and entering I&M data

I&M data

Identification and maintenance data (I&M data) is information saved on the module. The data is:
 Read-only (I data) or
 Read/write (M data)
Identification data (I&M0): Manufacturer information about the module that can only be read. Some identification data is also printed on the housing of the module, for example article number and serial number. Maintenance data (I&M1, 2, 3): Plant-specific information, for example installation location. Maintenance data for S7-1500R/H is created during configuration and downloaded to the redundant system.
S7-1500R/H supports identification data I&M0 to I&M3. Exception: The synchronization modules for S7-1500H only support identification data I&M0.
The I&M identification data supports you in the following activities:
 Checking the plant configuration
 Locating hardware changes in a plant
 Correcting errors in a plant
Modules can be clearly identified online using the I&M identification data.

Options for reading out I&M data
 Over the user program  From the display of the CPUs  Via STEP 7 or HMI devices

Reading I&M data over the user program
You have the following options for reading module I&M data in the user program:
 Using the RDREC instruction
The data record structure for centrally inserted modules and for distributed modules accessible over PROFINET IO is described in the section Record structure for I&M data (Page 253).
 Using the Get_IM_Data instruction

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

251

Commissioning 10.8 Identification and maintenance data

Reference

The description of the instructions can be found in the STEP 7 online help.

Reading I&M data from displays
Proceed as follows to read the I&M data of a CPU: 1. Navigate to the "Overview/PLC" menu on the display of the CPU. 2. Select "Plant designation" or "Location identifier". Click "OK" to confirm.

Reading I&M data via STEP 7
Requirement: There must be an online connection to the CPU. Proceed as follows to read the I&M data using STEP 7 from the primary and backup CPU: 1. Select the CPU in the project tree. 2. Go to "Online & diagnostics". 3. In the "Diagnostics" folder, select the "General" area.

Enter maintenance data over STEP 7
STEP 7 assigns a default module name. You can enter the following information:  Plant designation (I&M 1)  Location identifier (I&M 1)  Installation date (I&M 2)  Additional information (I&M 3) To enter maintenance data via STEP 7, follow these steps: 1. Select the CPU in the STEP 7 device view. 2. Go to properties, "General", and select the "Identification & Maintenance" area. 3. Enter the data. During the loading of the hardware configuration, the maintenance data (I&M 1, 2, 3) are also loaded.

252

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.8 Identification and maintenance data

10.8.2

Record structure for I&M data

Reading I&M records via user program (centrally and distributed via PROFINET IO)
Use Read data record ("RDREC" instruction) to access specific identification data. Under the associated record index you obtain the corresponding part of the identification data.
The records are structured as follows:

Table 10- 18 Basic structure of data records with I&M identification data

Contents Header information BlockType
BlockLength
BlockVersionHigh BlockVersionLow Identification data Identification data (see table below)

Length (bytes)
2
2
1 1
I&M0/Index AFF0H: 54 I&M1/Index AFF1H: 54 I&M2/Index AFF2H: 16 I&M3/Index AFF3H: 54

Coding (hex)
I&M0: 0020H I&M1: 0021H I&M2: 0022H I&M3: 0023H I&M0: 0038H I&M1: 0038H I&M2: 0012H I&M3: 0038H 01 00
-

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

253

Commissioning 10.8 Identification and maintenance data

Table 10- 19 Record structure for I&M identification data

Identification data

Access

Identification data 0: (record index AFF0H)

VendorIDHigh

Read (1 bytes)

VendorIDLow

Read (1 bytes)

Order_ID

Read (20 bytes)

Example
0000H 002AH 6ES7515-2RM00-0AB0

IM_SERIAL_NUMBER IM_HARDWARE_REVISION

Read (16 bytes) Read (2 bytes) 1

IM_SOFTWARE_REVISION · SWRevisionPrefix

Read (1 byte)

· IM_SWRevision_Functional_ (1 byte) Enhancement

· IM_SWRevision_Bug_Fix

(1 byte)

· IM_SWRevision_Internal_ Change

(1 byte)

IM_REVISION_COUNTER

Read (2 bytes)

Firmware version V 0000H - 00FFH
0000H - 00FFH 0000H - 00FFH
0000H

IM_PROFILE_ID

Read (2 bytes)

IM_PROFILE_SPECIFIC_TYPE Read (2 bytes)

IM_VERSION · IM_Version_Major · IM_Version_Minor IM_SUPPORTED

Read (1 byte) (1 byte) Read (2 bytes)

0000 H 0001H 0003H 0101H
000EH

Maintenance data 1: (Record index AFF1H)

IM_TAG_FUNCTION

Read/write (32 bytes)

IM_TAG_LOCATION

Read/write (22 bytes)

Maintenance data 2: (Record index AFF2H)

IM_DATE

Read/write (16 bytes)

Maintenance data 3: (Record index AFF3H)

IM_DESCRIPTOR

Read/write (54 bytes)

YYYY-MM-DD HH:MM -

Explanation
Vendor name (002AH = SIEMENS AG) Article number of module (for example CPU 1515R-1 PN) Serial number (device-specific) corresponds to hardware version (e.g. 1) Provides information about the firmware version of the module (e.g. V1.0.0)
Provides information about parameter changes on the module (not used) Generic Device CPU I/O modules Provides information on the ID data version (0101H = Version 1.1)
provides information about the available identification and maintenance data (I&M1 to I&M3)
Enter an identifier for the module here, that is unique plant-wide. Enter the installation location of the module here.
Enter the installation date of the module here.
Enter a comment about the module here.

254

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.8 Identification and maintenance data

10.8.3

Example: Read out firmware version of the CPU with Get_IM_Data

Automation task
You want to check whether the modules in your redundant system have the current firmware. The firmware version of the modules can be found in the I&M 0 data. The IM 0 data is the basic information for a device. I&M 0 data contains information such as:
 Manufacturer ID
 Article number and serial number
 Hardware and firmware version
To read out the I&M 0 data, use the "Get_IM_Data" instruction. You read the I&M 0 data of all modules in the user program of the CPU with "Get_IM_Data" instructions and store the I&M 0 data in a data block.

Conditions and parameters
The following block parameters of the "Get_IM_Data" instruction are important for reading out the I&M data of the CPU:
 LADDR: You enter the system constants or hardware identifier of the CPU at the LADDR parameter. You have the following options:
­ "Local1" (65149): The instruction always returns the I&M data of the CPU with redundancy ID 1.
­ "Local2" (65349): The instruction always returns the I&M data of the CPU with redundancy ID 2.
 IM_TYPE: Enter the I&M data number (for example "0" for I&M 0 data) at the IM_TYPE block parameter.
 DATA: Area for storing the I&M data read (for example in a global data block). Store the I&M 0 data in an area of the data type "IM0_Data".
This example shows you how to read out the I&M 0 data of a CPU 1513R-1 PN (redundancy ID 1, 6ES7513-1RL00-0AB0).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

255

Commissioning 10.8 Identification and maintenance data

Solution

Proceed as follows to read out the I&M 0 data of the CPU with the redundancy ID 1:
1. Create a global data block to store the I&M 0 data.
2. Create a structure of the data type "IM0_Data" in the global data block. You can assign any name to the structure ("imData" in this case).

Figure 10-15 Example: Data block for I&M data
3. Create the "Get_IM_Data" instruction in the user program, for example in OB 1. 4. Connect the "GET_IM_DATA" instruction as follows:

Figure 10-16 Example: Read out I&M0 data from the S7-1500R redundant system 5. Call the "Get_IM_Data" instruction in the user program.

256

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Commissioning 10.8 Identification and maintenance data
Result The "Get_IM_Data" instruction has stored the I&M 0 data of the CPU with redundancy ID 1 in the data block. You can view the I&M 0 data online in STEP 7, for example with the "Monitor all" button in the data block. The CPU in the example is a CPU 1513R-1 PN (6ES7513-1RL00-0AB0) with the firmware version V2.8. The serial number of the CPU is 'S C-F9S840662018'.

Figure 10-17 Example: I&M 0 data of an R CPU

Benefits

You can see from the data block at a glance which module requires an update.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

257

Display

11

11.1

CPU display

Introduction

The following section gives an overview of how the R/H-CPU display operates. Detailed information on the individual options, a training course and a simulation of the selectable menu items is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

Display

The R/H-CPUs have a front cover with a display and operating keys. The display of the CPUs shows you the control and status information in various menus. You use operating keys to navigate through the menus and make a variety of settings in the process.

Benefits

The display offers the following advantages:
 Reduced downtimes through diagnostic messages in plain text
 Less time required for commissioning and maintenance, shorter plant downtime.
 Shorter downtimes due to read/write access to force tables and read/write access to watch tables. The watch and force tables allow you to monitor and modify the actual values of individual tags of a user program on the display. You can find additional information on the watch and force tables in the section Test and service functions (Page 290) and in the STEP 7 online help.
 Visualization of the SYNCUP system state with graphic and percentage progress display

Password protection for the display
In the properties of the CPUs, you configure a password in STEP 7 for display operation. Local access protection is thus protected with a local password. Password protection can be configured differently for each display.

Operating temperature for the display
To increase the service life of the display, the display switches off when the permitted operating temperature is exceeded. When the display has cooled down again, it switches back on automatically. When the display is switched off, the LEDs continue to show the status of the CPUs.
You can find additional information on display temperatures in the technical specifications in the CPU manuals.

258

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Display

Display 11.1 CPU display
The following figures show an example of a large display (left: for example CPU 1517H-3 PN) and small display (right: CPU 1513R-1 PN) of a CPU.

 CPU status information  Names of the menus  Data display field  Navigation aid, e.g. OK/ESC or the page number
Figure 11-1 Example views of the displays

Regarding : CPU status information
The following table shows the CPU status information that can be retrieved via the display.

Table 11- 1 CPU status information

Color and icons for the status data Green
Orange
Red White

Meaning
· RUN · RUN-Syncup · RUN-Redundant · STARTUP · SYNCUP · STOP · STOP - firmware update FAULT · Connection established between CPU and display. Protection level configured.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

259

Display 11.1 CPU display

Color and icons for the status data

Meaning
· At least one alarm is active in the CPU. · No SIMATIC memory card inserted in the CPU. · No user program loaded. Force job is active in the CPU.

Regarding : Names of the menus
The following table shows the available menus of the display.

Table 11- 2 Names of the menus

Main menu items

Meaning Overview

Diagnostics Settings

Description The "Overview" menu contains information about: · Properties of the local CPU · Redundancy properties, for example
­ Display of role (primary CPU or backup CPU) ­ Displaying and setting the redundancy ID ­ Display of the pairing state · Properties of the inserted SIMATIC memory card
The "Diagnostics" menu includes: · Display of alarms · Display of the diagnostics buffer · Read and write access to force and watch tables · Display of cycle time · Display of memory used
In the "Settings" menu you: · Assign IP address and PROFINET device name of the CPU · Setting date/time · Set operating states (RUN/STOP) · Perform a CPU memory reset or reset to factory settings · Disabling and enabling passwords · Disable/enable display with display password · Format SIMATIC memory card · Run firmware update and display status · Convert SIMATIC memory card or delete user program

260

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Main menu items

Meaning Modules

Display 11.1 CPU display
Description The "Modules" menu is not supported for R/H-CPUs.

Display

In the "Display" menu you can configure settings related to the display, such as language setting, brightness and energy-saving mode. The energysaving mode dims the display. Standby mode switches off the display.

Menu icons

The following table shows the icons that are displayed in the menus.

Table 11- 3 Menu icons

Icon

Meaning

Editable menu item.

Select the required language.

A message is available in the next lower level page.

There is an error in the next lower level page.

The marked module is not accessible.

Navigate to the next lower level page.

In edit mode you make the selection using two arrow keys: · Down/up: Jumps to the selection or is used to select the desired digits/options. In edit mode you make the selection using four arrow keys: · Down/up: Jumps to the selection or is used to select the desired digits. · Left/right: Jumps one place forward or back. The alarm is not yet acknowledged.

The alarm is acknowledged.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

261

Display 11.1 CPU display

Control keys

You operate the display using the following keys:
 Four arrow keys: "up", "down", "left", "right" If you press and hold an arrow key for 2 seconds, this generates an automatic scroll function.
 One ESC key
 One OK key

Figure 11-2 Control keys
Note If the display is in energy-saving mode or in standby mode, you can exit this mode by pressing any key.
Functions of the "OK" and "ESC" keys
 For menu commands in which an entry can be made: ­ OK  valid access to the menu command, confirmation of input, and exit from the edit mode ­ ESC  restore original content (changes are not saved) and exit edit mode
 For menu commands in which no entry can be made: ­ OK  to next submenu command ­ ESC  back to previous menu command
Hold ESC for about 3 seconds on any screen of the display. Result: You automatically return to the home page.

262

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Tooltips

Display 11.1 CPU display
Some of the values shown on the display can exceed the available display width. The values in question include:  Station name  Plant designation  Location identifier  PROFINET device name The available display width is frequently exceeded on CPUs with small displays. If you focus on the relevant value on the display and press the "Left" arrow key, a tooltip appears. The tooltip shows the name of the value in complete length. To hide the tooltip again, press the "Left" arrow key again or the "ESC" key.

Figure 11-3 Tooltip function

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

263

Display 11.1 CPU display
Uploading image to the display via STEP 7
In the STEP 7 device view, you download an image from your file system to the CPU display with the "Display > User-defined logo" function. Different images can be downloaded to the two R/H-CPUs for clearer differentiation.

Figure 11-4 Uploading image to CPU
To display the uploaded image in the correct aspect ratio, use images with the following dimensions depending on the CPU:

Table 11- 4 Dimensions

CPU CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN

Dimensions 128 x 120 pixels 240 x 260 pixels 240 x 260 pixels

Supported formats Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG Bitmap, JPEG, GIF, PNG

If the uploaded image exceeds the specified dimensions, the display shows only part of the image. The "Adapt logo" option in STEP 7 allows you to reduce the image to the specified dimensions. However, note that the original aspect ratio of the image is not retained in such cases.

Displaying image on the display
To display the uploaded image on the display of the CPU, press the ESC key in the main screen of the display. When you upload an image and are in the main screen, the display automatically shows the image after 60 seconds. To hide the image again, press any key on the display.

264

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Display 11.1 CPU display
Available language settings
You can set the following languages separately for menu and message texts:  Chinese  German  English  French  Italian  Japanese  Korean  Portuguese (Brazil)  Russian  Spanish  Turkish You select the required language directly at the display in the "Display" menu or in STEP 7 in the hardware configuration of the CPU under "User interface languages". Proceed as follows to display message texts on the display: 1. Configure the project language that you want to be displayed as the interface language.
­ To do so, select a CPU and navigate to the "Multiple languages" area ("Properties > General > Multilingual support") in the Inspector window.
­ Assign the required project languages to the interface languages. 2. Download the message texts to the CPU as a software component.
­ To do so, select the "Consistent download" option under "Text libraries" in the "Load preview" dialog (default).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

265

Maintenance

12

12.1

Replacing components of the S7-1500R/H redundant system

12.1.1

Checking before replacing components

Introduction

Please observe the following rules if the redundant system is in the RUN-Solo system state:  Do not immediately start replacing components.  Do not immediately switch the failed CPU to the RUN. operating state. First check the pairing status in the RUN-Solo system state.

Checking pairing in the RUN-Solo system state
CAUTION Do not switch the failed CPU in the RUN-Solo system state to the RUN operating state. This could result in an undefined system state for the redundant system. Both CPUs would become primary CPUs. If the S7-1500R/H redundant system is in the RUN-Solo system state, you must not immediately switch the backup CPU to the RUN operating state. Possible cause: No pairing between the two CPUs. Check the pairing status on the display or on the basis of the diagnostics status or diagnostics buffer. If there is no pairing, the redundancy connections have been interrupted, for example. In this case, please note the procedure below.

266

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

Checking pairing state
You have the following options for checking the pairing state:  Directly from the display of the backup CPU.
In the "Overview > Redundancy > Pairing state" menu: ­ Paired ­ Single paired (X*P*) ­ Not paired ­ Not paired - Too many partners ­ Not paired - Article number mismatch ­ Not paired - Firmware mismatch

Primary CPU

Backup CPU

Example: Paired

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

267

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system
 In STEP 7 in the diagnostic status (Online & diagnostics) of the S7-1500R/H system: Check the system state in the diagnostic status: ­ Pairing: "Paired" is shown in the "Pairing state" field. ­ No pairing: "No pairing" is displayed in the "Pairing status" field.

Figure 12-1 "Paired" diagnostics state  In STEP 7 in the diagnostics buffer (Online & diagnostics): Check the entries on pairing.

Procedure

To start the pairing, for example when redundancy connections are interrupted, follow these steps:
1. Set the mode selector for the backup CPU to STOP.
2. S7-1500R: Repair the PROFINET cables in the PROFINET ring. Insert the PROFINET cables into the R-CPU interfaces. S7-1500H: Repair the fiber-optic cables and synchronization modules. Insert the fiberoptic cables into the synchronization modules.
3. Check for successful pairing of the redundant system. Please note the information in "Checking pairing state" above.
4. Set the mode selector for the backup CPU to RUN.

Result

The S7-1500R/H redundant system switches to the RUN-Redundant system state.

268

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

12.1.2

Replacing defective R/H-CPUs

Initial situation

One of the two R/H-CPUs has failed or the R/H-CPU is no longer working. The S7-1500R/H redundant system is in the RUN-Solo system state.

Requirements

 Read the information in the section Checking before replacing components (Page 266).
 The replacement CPU has the same article number and firmware version as the failed R/H-CPU. It may be necessary to load an older firmware version onto the replacement CPU.
 The replacement CPU has a SIMATIC memory card with sufficient storage capacity.
 The primary CPU has not disabled SYNCUP (default).

Procedure for replacing R/H-CPUs
Proceed as follows to replace an R/H-CPU in the redundant system: 1. Switch off the supply voltage to the failed R/H-CPU. 2. Remove the connector for the supply voltage. 3. Disconnect the bus connectors for the PROFINET ring. Then remove the bus connectors
from the R/H-CPU. 4. For H-CPUs only: Disconnect the redundancy connections (fiber-optic cables) at the H-
CPU. 5. For H-CPUs only: Pull the synchronization modules out of the H-CPU. 6. Remove the failed R/H-CPU. 7. Install the replacement CPU with the SIMATIC memory card inserted and the mode
selector in the STOP position. 8. For H-CPUs only: Insert the synchronization modules in the replacement CPU. 9. For H-CPUs only: Insert the redundancy connections (fiber-optic cables) in the
synchronization modules. 10.Insert the bus connectors for the PROFINET ring into the R/H CPU. 11.Push the connector for the supply voltage into the socket on the R/H-CPU. 12.Switch the supply voltage back on. 13.Check the pairing. 14.Start the replacement CPU.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

269

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

Result

1. The replaced R/H-CPU executes SYNCUP.
2. The replaced R/H-CPU switches to the RUN-Redundant operating state and operates as backup CPU.

12.1.3

Replacing defective redundancy connections

Introduction

This section describes the following replacement scenarios:
S7-1500R:
 Replace defective PROFINET cable with S7-1500R. The PROFINET ring has been interrupted at any given point. You can find additional information in the section Replacing defective PROFINET cables (Page 274).
 Replace two defective PROFINET cables with S7-1500R. The PROFINET ring has been interrupted at two points.
S7-1500H:
 Replace a defective redundancy connection with S7-1500H. A fiber-optic cable has been interrupted.
 Replace defective synchronization module with S7-1500H.
 Replace two defective redundancy connections with S7-1500H. Both fiber-optic cables have been interrupted.

Evaluating the diagnostics buffer
Detailed diagnostics information is provided in the diagnostics buffer of the R/H-CPU. The entries are particularly useful in the replacement scenarios for the redundancy connections:
 S7-1500R: They contain information on whether one PROFINET cable or both PROFINET cables have been interrupted or a port of an R-CPU is defective.
 S7-1500H: You can access information on whether a fiber-optic cable has been interrupted or the synchronization module is defective (with additional module diagnostics).

12.1.3.1

Replacing two defective PROFINET cables with S7-1500R

Initial situation: Failure of two PROFINET cables, one after the other
Two PROFINET cables in the PROFINET ring have been interrupted one after the other at two points (> 1500 ms apart).
The S7-1500R redundant system is in the RUN-Solo system state.

270

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

Requirement

Read the information in the section Checking before replacing components (Page 266).

Procedure: Replacing the two PROFINET cables
Proceed as follows to replace the defective PROFINET cables: 1. Locate the defective PROFINET cables in the PROFINET ring. 2. Replace the PROFINET cables, one after the other. 3. If necessary, restart each of the two CPUs on after the other.

Result

The redundant system switches to the RUN-Redundant system state.

Initial situation: Failure of two PROFINET cables simultaneously
Two PROFINET cables in the PROFINET ring have been interrupted at two points simultaneously ( 1500 ms apart).
Both R-CPUs are primary CPUs. The S7-1500R redundant system is in an undefined system state.

Procedure: Replacing the two PROFINET cables
Proceed as follows to replace the defective PROFINET cables: 1. Immediately switch both R-CPUs to the STOP operating state. 2. Locate the defective PROFINET cables in the PROFINET ring. 3. Replace the PROFINET cables, one after the other. 4. Then start the R-CPUs.

Result

The redundant system switches to the RUN-Redundant system state.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

271

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

12.1.3.2

Replacing a defective redundancy connection with S7-1500H

Initial situation

One redundancy connection (fiber-optic cable) has been interrupted. Display shows: Single pairing with information on interface and port.
The S7-1500H redundant system is in the RUN-Redundant system state.

Procedure: Replacing the redundancy connection
Proceed as follows to replace a defective redundancy connection: 1. Check the X3/X4 LEDs. You can pinpoint the defective redundancy connection on the
basis of which LEDs are off. 2. Check the redundancy connection that you have located with the LEDs. 3. If the redundancy connection is defective, replace the fiber-optic cable.

Result

The defective redundancy connection has been replaced. The X3/X4 LEDs flicker yellow/green.

12.1.3.3

Replacing defective synchronization module with S7-1500H

Initial situation

A synchronization module has failed. The redundant S7-1500H is in the RUN-Redundant system state.

Procedure: Replacing the synchronization module
Proceed as follows to replace a defective synchronization module:
1. Check the X3/X4 LEDs on the primary and backup CPU. Locate the defective synchronization module on the basis of which LEDs are off.
2. Replace the defective synchronization module. Connect the redundancy connection (fiber-optic cable).
3. If the X3/X4 LEDs remain off, replace the synchronization module on the other CPU.

Result

The defective synchronization module has been replaced. The X3/X4 LEDs flicker yellow/green.

272

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

12.1.3.4

Replacing both defective redundancy connections with S7-1500H

Initial situation: Failure of both redundancy connections, one after the other
The two redundancy connections (fiber-optic cables) have been interrupted one after the other (> 1500 ms apart).
The S7-1500H redundant system is in the RUN-Solo system state.

Requirement

Read the information in the section Checking before replacing components (Page 266).

Procedure: Replacing both redundancy connections
Proceed as follows to replace the defective redundancy connections: 1. Check the X3/X4 LEDs on the primary and backup CPU. If all LEDs are off, both
redundancy connections are defective. 2. Replace the redundancy connections (fiber-optic cables) one after the other. 3. Start the CPU which is in STOP mode.

Result

The defective redundancy connections have been replaced. The redundant system switches to the RUN-Redundant system state. The X3/X4 LEDs flicker yellow/green.

Initial situation: Failure of both redundancy connections simultaneously
The two redundancy connections (fiber-optic cables) have been interrupted simultaneously ( 1500 ms apart).
Both H-CPUs are primary CPUs. The S7-1500H redundant system is in an undefined system state.

Procedure: Replacing both redundancy connections
Proceed as follows to replace the defective redundancy connections: 1. Immediately switch both H-CPUs to the STOP operating state. 2. Replace the redundancy connections (fiber-optic cables) one after the other. 3. Switch the H-CPUs back to the RUN operating state.

Result

The redundant system switches to the RUN-Redundant system state. The X3/X4 LEDs flicker yellow/green.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

273

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

12.1.4

Replacing defective PROFINET cables

Initial situation

The PROFINET ring has been interrupted at any given point. The MAINT LEDs on both CPUs are yellow. The following is shown on the S7-1500R display: Single pairing with information on interface and port.
The S7-1500R/H redundant system is in the RUN-Redundant system state.

Procedure: Replacing the PROFINET cable
Proceed as follows to replace the defective PROFINET cable:
1. Check the X1 P1/X1 P2 LEDs on the primary and backup CPU. LEDs that are off indicate an interruption to the PROFINET ring.
2. Locate the defective PROFINET cable in the PROFINET ring. Check the link RX/TX LEDs of the PROFINET nodes. If the link RX/TX LEDs are switched off, there is no connection between the interface of the PROFINET device and the communication partner.
3. Replace the defective PROFINET cable.

Result

The defective PROFINET cable has been replaced. The X1 P1/X1 P2 LEDs on the primary and backup CPU are yellow. The MAINT LEDs on both CPUs are off.

12.1.5

Replacing a defective SIMATIC memory card

Initial situation

The SIMATIC memory card of a CPU is defective. System diagnostics reports a system error. The CPU affected has switched to the STOP operating state.
The S7-1500R/H redundant system is in the RUN-Solo system state.

Requirement

 Read the information in the section Checking before replacing components (Page 266).  The new SIMATIC memory card must have sufficient memory for the project.

274

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Procedure Result Reference

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system
Proceed as follows to replace a defective SIMATIC memory card: 1. Replace the SIMATIC memory card in the CPU in STOP. 2. Start the CPU.
1. The redundant system runs SYNCUP. SYNCUP transfers the project data from the primary to the backup CPU.
2. The CPU switches to the RUN-Redundant operating state and operates as backup CPU. The redundant system is in the RUN-Redundant system state again.
If there is not enough memory space on a SIMATIC memory card, the card can be replaced during operation. You will find the procedure, the response of the redundant system and other information on the SIMATIC memory card in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/de/de/view/59193101/en).

12.1.6

Replace defective load current supply PM

Initial situation

A load current supply PM has failed. The S7-1500R/H redundant system is in the RUN-Solo system state.

Requirement

Read the information in the section Checking before replacing components (Page 266).

Procedure

Proceed as follows to replace a defective load current supply: 1. Switch off the mains supply (24 V DC or 230 V AC). 2. Replace the defective load current supply PM. 3. Switch the mains supply back on. 4. Switch on the replaced load current supply PM.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

275

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system

Result

1. The CPU with the replaced load current supply PM runs SYNCUP. Requirement: The CPU mode selector is in RUN.
2. The CPU switches to the RUN-Redundant operating state and operates as backup CPU. The redundant system is in the RUN-Redundant system state again.

12.1.7

Replacing defective IO devices/switches

Initial situation

A PROFINET device (IO device/switch) in the PROFINET ring has failed, for example because of a defect in the IO device or failure of the power supply. The PROFINET ring has been interrupted. The MAINT LEDs on both CPUs are yellow. The ERROR LEDs on both CPUs are flashing red.
The S7-1500R/H redundant system is in the RUN-Redundant system state.

Note
If a switch/IO device fails, the S7-1500R/H redundant system has no access to the downstream devices in the connected line topology.

Procedure

Proceed as follows to replace a defective PROFINET device: 1. Locate the faulty PROFINET device. 2. Switch off the supply voltage for the PROFINET device. 3. Disconnect the cables for the supply voltage. 4. Disconnect the PROFINET cables from the ports of the PROFINET device. 5. Replace the PROFINET device. 6. Connect the PROFINET cables to the ports of the PROFINET device. 7. Connect the cables for the supply voltage to the PROFINET device. 8. Switch the supply voltage back on.

276

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Result

Maintenance 12.1 Replacing components of the S7-1500R/H redundant system
Note Setting the media redundancy role Client for the PROFINET devices If you replace a PROFINET device in the PROFINET ring, you need to assign the media redundancy role "Client" to the PROFINET device in STEP 7. The client media redundancy role setting is important for nodes that are not IO devices (such as switches). These nodes do not receive the parameters assigned by the R/H CPUs. Replaced IO devices are automatically configured by the R/H-System and receive the correct setting again.
The PROFINET ring has been closed again. The PROFINET device can be accessed again in the S7-1500R/H redundant system. The MAINT and ERROR LEDs on both CPUs are off.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

277

Maintenance 12.2 Replacing the front cover

12.2

Replacing the front cover

Replacing the front cover
The front cover is pluggable. If necessary, you can take off the front cover or replace the front cover during runtime (RUN-Redundant). Removing or replacing the front cover does not affect the CPU in operation.
To remove the front cover from the CPU, follow these steps:
1. Flip up the front cover until the front cover stands at a 90° angle to the front of the module.
2. In the top section of the front cover, press on the anchor(s): Two anchors with CPU 1515R-2 PN, CPU 1517H-3 PN. One anchor with CPU 1513R-1 PN. At the same time, pull the front cover towards you and off.
The view in the figure below is an example of CPU 1515R-2 PN.

 Fasteners for removing and fitting the front panel
Figure 12-2 Removing and fitting the front panel
WARNING Personal injury or material damage can occur in zone 2 hazardous areas If you remove or attach the front cover during operation, personal injury and damage can occur in hazardous areas of zone 2. Always deenergize the R/H-CPU from the power supply before you remove or attach the front cover in hazardous areas of zone 2.

278

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.3 Replacing the coding element at the power connector of the load current supply

12.3

Replacing the coding element at the power connector of the load

current supply

Introduction

The coding consists of a 2-part coding element. Ex factory a part of the coding element is inserted into the back side of the power connector. The other part is firmly inserted in the load current supply. This prevents the insertion of a power connector of a load current supply into a module of a different type.
DANGER Do not manipulate the coding element, or leave it off · Changing or replacing the coding element can result in dangerous system states. · To avoid damage, do not change or replace the coding element. · You must not remove the coding element.

Replacement parts scenario
Insertion of the coding element into a new power connector in the case of a replacement part.
DANGER Dangerous voltage When installing the coding element, you must take into account the supply voltage of the load current supply: 24 V DC, 24/48/60 V DC or 120/230 V AC/DC Only install the coding element with switched-off voltage. You must insert the coding element in such a way that the power connector matches the power supply module in terms of voltage.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

279

Maintenance 12.3 Replacing the coding element at the power connector of the load current supply

Procedure

To replace the coding element on the power connector of the load current supply, follow these steps:
1. Orient yourself using the labeling on the power cable connection.

Figure 12-3 Labeling on the power connector
2. Orient yourself using the red marking on the coding element.
3. The coding element has 3 red markings. Turn the coding element in such a way that one of the 3 red markings corresponds to the voltage indicated on the connector.
4. Insert the coding element into the back side of the power cable connector, until you hear it click into place. The figure below shows you how to insert a coding element into a power cable connector for 24 V DC.

Figure 12-4 Inserting a coding element into a power connector

280

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.4 Firmware update

12.4

Firmware update

Introduction

You use firmware files to update the firmware of the CPUs, displays and the IO devices (for example for new functions). The retentive data is retained after the firmware has been updated.
Note CPUs operating in redundant mode CPUs operating in redundant mode must have the same article number and the same firmware version.
For the replacement of components, the two CPUs operating in redundant mode must have the same firmware version. Downgrades are therefore possible as well as updates.
Note CPU downgrades and upgrades You cannot upgrade a standard CPU or F-CPU to an R-CPU or H-CPU. You cannot downgrade the firmware of an R/H-CPU to a standard or F-CPU either.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

281

Maintenance 12.4 Firmware update

Requirement

You have downloaded the files for the firmware update from Siemens Industry Online Support (https://support.industry.siemens.com/cs/ww/en/ps).
On this Web page, select:
Automation technology > Automation systems > SIMATIC industrial automation systems > Controllers > Advanced Controller > S7-1500 > CPUs > Redundant CPUs

Figure 12-5 Product tree using the S7-1500 as an example
From this position, navigate to the specific type of module that you want to update. To continue, click on the "Software downloads" link under "Support". Save the required firmware update files. Before installing the firmware update, make sure that the modules are not being used.

Options for the firmware update
The options for performing a firmware update are as follows:  Online in STEP 7 via Online & Diagnostics  Via the SIMATIC memory card: For CPU and display only The table below gives an overview of the various options for a firmware update.

Firmware update STEP 7 via Online & diagnostics SIMATIC memory card

CPU  

Display

PROFINET IO devices  --

282

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.4 Firmware update
Procedure: online in STEP 7 via Online & diagnostics
Requirements: There is an online connection between the CPU/PROFINET IO device and PG/PC. Proceed as follows to perform a firmware update online via STEP 7: 1. Select the module in the device view. 2. Select the "Online & diagnostics" menu command from the shortcut menu. 3. In the "Functions" folder, select the "Firmware update" group.
For a CPU, you can select whether you want to update the CPU or the display. 4. Click the "Browse" button to select the path to the firmware update files in the "Firmware
update" area. 5. Select the correct firmware file. The table in the firmware update area lists all modules for
which an update is possible with the selected firmware file. 6. Click the "Run update" button. If the module can interpret the selected file, the file is
downloaded to the module. If you need to change the CPU operating state, STEP 7 prompts you to do so with dialogs.
Note Updating PROFINET IO device The R/H system remains in the RUN-Redundant system state if you update an IO device.
Updating the firmware The "Run firmware after update" check box is always selected. Once the files have been successfully loaded, the CPU accepts the firmware and operates with the new firmware.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

283

Maintenance 12.4 Firmware update
Procedure with the SIMATIC memory card
Proceed as follows to perform a firmware update using the SIMATIC memory card:
1. Insert a SIMATIC memory card into the SD card reader of your PG/PC.
2. To store the update file on the SIMATIC memory card, select the SIMATIC memory card under "Card reader/USB memory" in the project tree.
3. Select the "Card Reader/USB memory > Create firmware update memory card" command in the "Project" menu.
4. Use a file selection dialog to navigate to the firmware update file. You can then also decide whether to delete the content of the SIMATIC memory card or add the firmware update files to the SIMATIC memory card.
5. Insert the SIMATIC memory card with the firmware update files into the CPU.
The firmware update begins shortly after the SIMATIC memory card has been inserted.
The display indicates that the CPU is in STOP and is running a firmware update.
The display shows a results screen after completion of the firmware update.
6. The RUN LED on the CPU lights up in yellow and the MAINT LED flashes yellow. Remove the SIMATIC memory card after the firmware update is complete. If you subsequently wish to use the SIMATIC memory card as a program card, leave the SIMATIC memory card in the CPU. To do so, after completion of the firmware update, select the "Convert memory card" menu item on the display. Alternatively, you can also convert the SIMATIC memory card to a program card in STEP 7.
Note Memory size of the SIMATIC memory card
If you perform a firmware update via the SIMATIC memory card, you must use a large enough card.
Check the specified file sizes of the update files when downloading them from Siemens Industry Online Support. The total size of the update files must not exceed the available memory size of your SIMATIC memory card.
You can find more information on the capacity of SIMATIC memory cards in the section Accessories/spare parts (Page 315) and in the function manual Structure and use of the CPU memory (https://support.industry.siemens.com/cs/de/de/view/59193101/en).

284

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.4 Firmware update
Installation of the firmware update of R/H-CPUs
For a firmware update of the R/H-CPUs, you must switch both R/H-CPUs to the STOP operating state. A role change between primary and backup CPU can occur during the firmware update. The initial situation is assumed in the following: CPU 1 is the primary CPU. CPU 2 is the backup CPU. You must proceed in the following order for retentive data to be retained during a firmware update: 1. Switch CPU 2 to the STOP operating state. 2. Run the update for CPU 2.
Please note: Ignore any pairing error (incorrect firmware) after CPU 2 startup. 3. Switch CPU 1 to the STOP operating state. 4. Now run the update for CPU 1. 5. Switch CPU 1 to the RUN operating state. 6. Switch CPU 2 to the RUN operating state.
WARNING Risk of impermissible system states The installation of the firmware update switches the CPUs to the STOP operating state and therefore the redundant system to the STOP system state. STOP can impact the operation of an online process or a machine. Unexpected operation of a process or a machine can lead to fatal or severe injuries and/or to material damage. Ensure before installing the firmware update that the CPU is not controlling any active process.

Installation of the firmware update for R/H-CPU displays
Firmware updates for the R/H-CPU displays are run in the RUN-Solo system state. A role change between primary and backup CPU can occur during the firmware update. The initial situation is assumed in the following: CPU 1 is the primary CPU. CPU 2 is the backup CPU.
Follow the sequence below:
1. Switch CPU 2 to the STOP operating state.
2. Run the update for the CPU 2 display.
3. Switch CPU 2 to the RUN operating state. Wait until the R/H system switches to the RUN-Redundant system state.
4. Switch CPU 1 to the STOP operating state.
5. Run the update for the CPU 1 display.
6. Switch CPU 1 to the RUN operating state. Wait until the R/H system switches to the RUN-Redundant system state.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

285

Maintenance 12.5 Resetting CPUs to factory settings

Behavior after the firmware update
After the firmware update, check the firmware version of the updated module.

Reference

You can find more information on firmware updates in the STEP 7 online help.

12.5

Resetting CPUs to factory settings

Introduction

The CPU can be reset to its as-delivered condition using "Reset to factory settings". The function deletes all information saved internally on the CPU.
Recommendation:
Switch the CPU to its as-delivered condition if:
 You remove a CPU and use it elsewhere with a different program.
 You store the CPU.
When resetting to factory settings, remember that the IP address parameters are also deleted.

Options for resetting a CPU to factory settings
You can reset the CPU to its as-delivered condition:  Using the mode selector  Using the display  Using STEP 7

286

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.5 Resetting CPUs to factory settings
Procedure using the mode selector
Make sure that the CPU is in STOP operating state: The CPU display indicates the STOP operating state: The RUN/STOP LED lights up yellow.
Note Reset to factory settings  Memory reset The procedure described below corresponds to the procedure for a memory reset: · Selector operation with inserted SIMATIC memory card: CPU executes a memory reset · Selector operation without inserted SIMATIC memory card: CPU executes reset to factory
settings
Restore the factory settings of the CPU as follows: 1. Set the mode selector to the STOP position.
Result: The RUN/STOP LED lights up yellow. 2. Remove the SIMATIC memory card from the CPU. Wait until the RUN/STOP LED stops
flashing. 3. Set the mode selector to the MRES position. Hold the mode selector in this position until
the RUN/STOP LED lights up for the second time and remains continuously lit after 3 seconds. Then release the mode selector. 4. Within the next three seconds, switch the mode selector back to the MRES position and then back to STOP. Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up in yellow, the CPU has been reset to factory settings and is in the STOP operating state. The "Reset to factory settings" event is entered in the diagnostics buffer.
Note Resetting the CPU to the factory settings with the mode selector also deletes the IP address of the CPU and resets the redundancy ID to 1.

Procedure using the display
Make sure that the CPU is in STOP operating state: The CPU indicates the STOP operating state. The RUN/STOP LED lights up yellow.
1. Wait until the RUN/STOP LED stops flashing.
2. To navigate to the required "Factory settings" menu command, select the following sequence of menu commands and confirm each selection with "OK".
­ Settings  Reset  Factory settings
Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up in yellow, the CPU has been reset to factory settings and is in the STOP operating state. The "Reset to factory settings" event is entered in the diagnostics buffer.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

287

Maintenance 12.5 Resetting CPUs to factory settings

Procedure using STEP 7
Proceed as follows to reset a CPU to factory settings with STEP 7:
Make sure that there is an online connection to the CPU.
1. Open the Online and Diagnostics view of the CPU.
2. In the "Functions" folder, select the "Reset to factory settings" group.
3. If you want to keep the IP address, select the "Keep IP address" option button. If you want to delete the IP address, select the "Delete IP address" option button.
Note
"Delete IP address" deletes all IP addresses, regardless of how you established the online connection.
If a SIMATIC memory card is inserted, selecting the "Delete IP address" option has the following effect: · The IP addresses are deleted and the CPU is reset to factory settings. · The configuration (including IP address) on the SIMATIC memory card is then
downloaded to the CPU. If there is no saved configuration (because the SIMATIC memory card has been cleared or formatted, for example), no new IP address is assigned.
4. Click the "Reset" button.
5. Click "OK" in response to the confirmation prompts.
Result: The CPU executes a "Reset to factory settings", during which time the RUN/STOP LED flashes yellow. When the RUN/STOP LED lights up in yellow, the CPU has been reset to factory settings and is in STOP. The "Reset to factory settings" event is entered in the diagnostics buffer.

Result after resetting to factory settings
The table below gives an overview of the contents of the memory objects after the reset to factory settings.

Table 12- 1 Result after resetting to factory settings
Memory object Redundancy ID Actual values of the data blocks, instance data blocks Bit memories, timers and counters Retentive tags of technology objects Entries in the diagnostics buffer (retentive area) Entries in the diagnostics buffer (non-retentive area)

Contents Set to "1" Initialized Initialized Initialized Initialized Initialized

288

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Maintenance 12.6 Maintenance and repair

Memory object IP address
Device name (module name) Counter readings of the runtime meters Time of day

Contents Depends on the procedure: · Using mode switch: Is deleted · Using display: Is deleted · Using STEP 7: Depends on the setting of the
"Retain IP address"/"Delete IP address" option buttons
Is set to "CPUcommon" Initialized Set to "00:00:00, Jan. 01, 2012"

Note
IP address conflict
Resetting the CPU to the factory settings also deletes the IP address of the CPU and resets the redundancy ID to 1. Please note the following: An S7-1500R/H redundant system that is already in operation is switched to the STOP system state. If you reset the CPU with redundancy ID 2 to factory settings, that CPU is assigned the IP address of the other CPU (with redundancy ID 1). This results in an IP address conflict. You can only access the CPU with the emergency address. You can find information on the emergency address in the section Backing up and restoring the CPU configuration (Page 244).
Possible remedy: Using the display, assign the CPU the redundancy ID previously set. You can then access the CPU over the original IP address again.

Reference

You can find more information on "Reset to factory settings" in the section on memory areas and retentivity in the function manual Structure and use of the CPU memory (http://support.automation.siemens.com/WW/view/en/59193101), and in the STEP 7 online help. For information on CPU memory resets, please refer to the section CPU memory reset (Page 241).

12.6

Maintenance and repair
The R/H CPUs are maintenance-free.
Note Repairs to the R/H CPUs may only be carried out by the manufacturer.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

289

Test and service functions

13

13.1

Test functions

Introduction

You have the option of testing the operation of your user program on the CPU. You monitor the signal states and values of tags. You preassign values to tags to allow you to simulate specific situations for program execution.
Note Using test functions
Using test functions affects the program execution time and thus the cycle and response times of the controller.
Note Test functions in the RUN-Redundant system state: No check for sufficient free space before a write function is performed
Before a write function is performed, the system does not check whether there is enough free space on the SIMATIC memory cards of the CPUs for the function. Writing functions are online functions with the PG/PC, for example, loading/deleting a block, test functions, loading a modified user program in RUN-Redundant system state.
If insufficient memory is available on the SIMATIC memory card of a CPU, then: · changes the CPU in question to STOP mode.
­ If there is insufficient memory on the SIMATIC memory card of the selected CPU (to which you want to download), this CPU then changes to the STOP operating mode. The other CPU changes to the RUN operating mode with the former user program (redundant system  system state RUN-Solo).
­ If there is insufficient memory on the other CPU then this CPU changes to the STOP operating mode. The selected CPU (to which you downloaded) changes to the RUN operating mode with the changed user program (redundant system  system state RUN-Solo).
· If the ERROR LED flashes red (temporary error), · A corresponding error message is entered in the diagnostic buffer.
If then there is insufficient free space on the SIMATIC memory card of the other CPU, then this CPU stays in the RUN operating mode. The CPU then responds like a standard CPU.

290

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Test and service functions 13.1 Test functions

Requirements

 There is an online connection to the relevant primary or backup CPU. A simultaneous online connection to both CPUs is not possible.
 An executable user program is available in the CPU.
 The redundant system must not be in the SYNCUP system state. Exception: The test functions "Test with a force table" and "Trace function" are also supported in the SYNCUP system state. However, there is no online connection during the SYNCUP system state. You can find more information in this section.

Test options

 Testing with program status  Testing with breakpoints (only in the STARTUP (startup OB) or RUN-Solo system state)  Testing with a watch table  Testing with a force table  Testing with a PLC tag table  Testing with a data block editor  Testing with the LED flash test  Testing with a trace function

Testing with program status
The program status allows you to monitor the execution of the program. You can display the values of operands and the results of logic operations (RLO). This allows you to detect and fix logical errors in your program.
Note Restrictions with the "Program status" function
Monitoring loops can significantly increase the cycle time. The increase in cycle time depends on the following factors: · The number of tags to be monitored · The actual numbers of loops run through

WARNING
Testing with program status
Testing with the "Program status" function can cause serious damage and injury if there are functional disruptions or program errors.
Make sure that you take appropriate measures to exclude the risk of dangerous states occurring before running a test with the "Program status" function.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

291

Test and service functions 13.1 Test functions
Testing with breakpoints
With this test option, you set breakpoints in your program, establish an online connection, and enable the breakpoints on the CPU. You then execute a program from one breakpoint to another. Requirements:  You can only test with breakpoints with the primary CPU in the STARTUP (startup OB) or
RUN-Solo system state.  Setting breakpoints is possible in the programming language SCL or STL. Testing with breakpoints provides you with the following advantages:  Localization of logic errors step by step  Simple and quick analysis of complex programs prior to actual commissioning  Recording of current values within individual executed loops  Using breakpoints for program validation is also possible in SCL or STL networks within
LAD/FBD blocks.
Note Restrictions during testing with breakpoints · If you test with breakpoints, there is a risk that you will exceed the cycle time of the
R/H-CPU. · SYNCUP is rejected if a breakpoint is set in the RUN-Solo system state.
Difference between modifying and forcing
The fundamental difference between the modifying and forcing functions is the storage behavior:  Modifying: Modifying tags is an online function and is not stored in the CPU. You can end
the modifying of tags in the watch table or force table or by terminating the online connection.  Forcing: A force job is written to the SIMATIC memory card and is retained after a POWER OFF. The S7-1500R/H CPU displays an active force job with a symbol. You can only end the forcing of peripheral inputs and peripheral outputs in the force table. A force job is transferred to the backup CPU in SYNCUP. The force job is then effective in both CPUs in the RUN-Redundant system state.

292

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Test and service functions 13.1 Test functions
Testing with watch tables
The following functions are available in the watch table:  Monitoring of tags
Using watch tables, you can monitor the actual values of the individual tags of a CPU user program. ­ On the PG/PC ­ On the display of the CPU Please note the following requirement for displaying the tag values on the CPU display: You must specify a symbolic name for each tag in the "Name" column of the force table. You monitor the following operand areas: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs ­ Timers and counters  Modifying tags You use this function to assign values to the individual tags of a user program or a CPU on the PG/PC. Modifying is also possible with Test with program status. The following operand areas are modifiable: ­ Inputs and outputs (process image) and bit memory ­ Contents of data blocks ­ Peripheral inputs and peripheral outputs (for example, %I0.0:P, %Q0.0:P) ­ Timers and counters

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

293

Test and service functions 13.1 Test functions
Testing with a force table
The following functions are available in the force table:  Monitoring of tags
You use watch tables to monitor the actual values of the individual tags of a CPU user program. ­ On the PG/PC ­ On the display of the CPU You can monitor the table with or without trigger conditions. Please note the following requirement for displaying the tag values on the CPU display: You must specify a symbolic name for each tag in the "Name" column of the force table. You monitor the following tags: ­ Bit memory ­ Contents of data blocks ­ Peripheral inputs  Forcing of peripheral inputs and peripheral outputs You can force individual peripheral inputs or peripheral outputs. ­ Peripheral inputs: Forcing peripheral inputs "bypasses" sensors/inputs by specifying
fixed values for the program. Instead of the actual input value via a process image or direct access, the program receives the force value. ­ Peripheral outputs: Forcing peripheral outputs "bypasses" the complete program by specifying fixed values for the actuators. The advantage of the force table is that you can simulate different test environments and overwrite tags in the CPU with a fixed value. This enables you to intervene in the running process in a regulating way.
Testing with a PLC tag table
You can monitor the current data values of tags in the CPU directly in the PLC tag table. To do so, open the PLC tag table and start the monitoring. You may also copy PLC tags to a watch table or force table and monitor, modify or force them there.

294

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Test and service functions 13.1 Test functions
Testing with a data block editor
The data block editor offers different options for monitoring and modifying tags. These functions directly access the actual values of the tags in the online program. Actual values are the current values of tags in the CPU work memory at any given moment during program execution. The following functions for monitoring and modifying are available in the database editor.  Monitor tags online  Modify individual actual values  Create a snapshot of the actual values
Note Setting data values during commissioning During plant commissioning, you often need to adjust data values to adapt the program to local conditions. The declaration table for data blocks offers some functions for this purpose.
Testing with the LED flash test
In many online dialogs, you can perform an LED flash test. This feature is useful if you are not sure which device in the hardware configuration corresponds to the device currently selected in the software. If you click on the "Flash LED" button in STEP 7 under Online & diagnostics (online access), specific LEDs flash on the device currently selected. The RUN/STOP, ERROR, and MAINT LEDs flash on the CPU. The LEDs flash until you cancel the flash test.
Testing with a trace function
The trace function is used to record the CPU tags, depending on settable trigger conditions. Examples of tags are the system and user tags of a CPU. The CPU saves the recordings. If necessary, you can display the recordings with STEP 7 and evaluate them.  Restriction: The storage of measurements on the SIMATIC memory card (measurements
in the device) is not supported for R/H-CPUs.  Procedure
­ The trace function can be called from the folder of the top CPU in the project tree, under the name "Traces".
­ In the "Measurements" system folder, double-click to open the recording to display the measurement. The "Diagram" tab for the measurement opens in the work area.
Please also see the FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/102781176) for testing with the trace function.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

295

Test and service functions 13.2 Reading out/saving service data

Reference

Additional information on the test functions can be found in the STEP 7 online help.
You can find more information on testing with trace functions in the function manual Using the trace and logic analyzer function (http://support.automation.siemens.com/WW/view/en/64897128).

13.2

Reading out/saving service data

Service data

In addition to the contents of the diagnostics buffer, the service data contain numerous additional data points about the internal status of the CPU. If a problem occurs with the CPU that you cannot resolve with other methods, send the service data to the Product Support team. The Product Support team will use the service data to help you with problem analysis.
Please note the following:
 Read out the service data in the following cases:
­ Immediately after a CPU has switched to the STOP operating state.
­ Immediately after a loss of synchronization in the redundant system.
 Always read out the service data of the primary and the backup CPU.

Note You cannot execute a download to the device while reading out the service data of the CPU.

Requirement

The S7-1500R/H redundant system must not be in the SYNCUP or RUN-Redundant system state.

Methods of reading service data
You can read service data with:  STEP 7  SIMATIC memory card

Procedure using STEP 7
You can find more information on saving service data with the keyword "Saving service data" in the STEP 7 online help.

296

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Test and service functions 13.2 Reading out/saving service data
Procedure using the SIMATIC memory card
Use the SIMATIC memory card to save the service data if communication with the CPU is not possible over the Ethernet. In all other cases, save the service data using STEP 7. The procedure using the SIMATIC memory card is more time-consuming than the other options for saving the service data. You must also ensure before saving that there is sufficient memory space on the SIMATIC memory card.
Proceed as follows for the R/H-CPU to save service data using the SIMATIC memory card:
1. Insert the SIMATIC memory card into the card reader of your PC/PG.
2. Open the job file S7_JOB.S7S in an editor.
3. Overwrite the entry PROGRAM with the STRING or character string DUMP in the editor. Do not use any spaces/line breaks/quotation marks to ensure that the file size is exactly 4 bytes.
4. Make sure that the SIMATIC memory card is not write-protected. Insert the SIMATIC memory card into the card slot of the CPU. For the R/H-CPU, you require one card  32 MB in each case.
5. Save the file under the existing file name.
Result: The CPU writes the service data file DUMP S7S to the SIMATIC memory card and remains in STOP.
Service data transfer is complete when the STOP LED stops flashing and is lit continuously. If service data transfer has been successful, only the STOP LED lights up.
In the event of errors in transfer, the STOP LED is lit continuously and the ERROR LED flashes. The CPU also stores a text file with information on the error that occurred in the DUMP.S7S folder.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

297

Technical specifications

14

Introduction

This chapter lists the technical specifications of the system:
 The standards and test values that the modules of the S7-1500R/H redundant system comply with and fulfill.
 The test criteria according to which the S7-1500R/H redundant system was tested.

Technical specifications for the modules
The technical specifications of the individual modules can be found in the manuals of the modules themselves. In the event of deviations between the statements in this document and the manuals, the statements in the manuals take priority.

14.1

Standards and Approvals

Currently valid markings and authorizations
Note Information on the components of the S7-1500R/H redundant system The identifiers and approvals currently valid are printed on the components of the S71500R/H redundant system.

Safety information
WARNING Personal injury and damage to property may occur In hazardous areas, injury and damage can occur if you disconnect plug-in connections during operation of an S7-1500R/H redundant system. Always switch off the power to the S7-1500R/H redundant system before disconnecting plug-in connections in hazardous areas.

298

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.1 Standards and Approvals
WARNING Explosion hazard If you replace components, compliance with Class I, Div. 2 or zone 2 may become invalid.
WARNING Deployment requirements This device is only suitable for use in Class I, Div. 2, Group A, B, C, D; Class I, zone 2, Group IIC, or in non-hazardous areas.

CE mark

The S7-1500R/H redundant system complies with the harmonized European standards (EN) for programmable logic controllers published in the official gazettes of the European Community. The S7-1500R/H redundant system meets the requirements and protection targets of the following directives.
 2014/30/EU "Electromagnetic Compatibility" (EMC Directive)
 2014/34/EU "Equipment and protective systems intended for use in potentially explosive atmospheres" (Explosion Protection Directive)
 2011/65/EU "Restriction of the use of certain hazardous substances in electrical and electronic equipment" (RoHS Directive)
EU declarations of conformity for the respective authorities are available from:
Siemens AG Digital Industries
Factory Automation DI FA AS SYS Postfach 1963 D-92209 Amberg
The EU declarations of conformity are also available for download from the Siemens Industry Online Support website, under the keyword "Declaration of Conformity".

cULus approval
Underwriters Laboratories Inc. in accordance with
 UL 508 (Industrial Control Equipment) OR UL 61010-1 and UL 61010-2-201
 C22.2 No. 142 (Process Control Equipment) OR CSA C22.2 No. 61010-1 and CSA C22.2 No. 61010-2-201

OR

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

299

Technical specifications 14.1 Standards and Approvals

cULus HAZ. LOC. approval
Underwriters Laboratories Inc. in accordance with
 UL 508 (Industrial Control Equipment) OR UL 61010-1 and UL 61010-2-201
 CSA C22.2 No. 142 (Process Control Equipment) OR CSA C22.2 No. 61010-1 and CSA C22.2 No. 61010-2-201
 ANSI/ISA 12.12.01
 CSA C22.2 No. 213 (Hazardous Location)
APPROVED for use in Class I, Division 2, Group A, B, C, D Tx; Class I, Zone 2, Group IIC Tx
Installation Instructions for cULus haz.loc.
 WARNING - Explosion Hazard - Do not disconnect while circuit is live unless area is known to be non-hazardous.
 WARNING - Explosion Hazard - Substitution of components may impair suitability for Class I, Division 2 or Zone 2.
 This equipment is suitable for use in Class I, Division 2, Groups A, B, C, D; Class I, Zone 2, Group IIC; or non-hazardous locations.
WARNING: EXPOSURE TO SOME CHEMICALS MAY DEGRADE THE SEALING PROPERTIES OF MATERIALS USED IN THE RELAYS.

FM approval

Factory Mutual Research (FM) according to
 Approval Standard Class Number 3611, 3600, 3810
 ANSI/UL 12.12.01
 ANSI/ISA 61010-1
 CSA C22.2 No. 213
 CSA C22.2 No. 61010-1
 CSA C22.2 No. 0-10
APPROVED for use in Class I, Division 2, Group A, B, C, D Tx; Class I, Zone 2, Group IIC Tx
Installation Instructions for FM
 WARNING - Explosion Hazard - Do not disconnect while circuit is live unless area is known to be non-hazardous.
 WARNING - Explosion Hazard - Substitution of components may impair suitability for Class I, Division 2 or Zone 2.
 This equipment is suitable for use in Class I, Division 2, Groups A, B, C, D; Class I, Zone 2, Group IIC; or non-hazardous locations.
WARNING: EXPOSURE TO SOME CHEMICALS MAY DEGRADE THE SEALING PROPERTIES OF MATERIALS USED IN THE RELAYS.

300

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.1 Standards and Approvals
ATEX approval
In accordance with EN 60079-15 (Electrical apparatus for potentially explosive atmospheres; Type of protection "n") and EN 60079-0 (Electrical apparatus for potentially explosive gas atmospheres - Part 0: General Requirements)

IECEx approval
According to IEC 60079-15 (Explosive atmospheres - Part 15: Equipment protection by type of protection "n") and IEC 60079-0 (Explosive atmospheres - Part 0: Equipment - General requirements)

RCM Declaration of conformity for Australia/New Zealand
The S7-1500R/H redundant system meets the requirements of EN 61000-6-4.

Korea Certification
KC registration number: KCC-REM-S49-S71500
Please note that this device corresponds to limit value class A in terms of the emission of radio frequency interference. This device can be used in all areas, except residential areas.
  (A)                .

Marking for the Eurasian Customs Union
EAC (Eurasian Conformity) Customs Union of Russia, Belarus and Kazakhstan Declaration of conformity with the technical requirements of the Customs Union (TR CU).

IEC 61131-2

The S7-1500R/H redundant system meets the requirements and criteria of standard IEC 61131-2, excluding the requirements set out in sections 11 to 14 of the standard (Programmable logic controllers, part 2: Equipment requirements and tests).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

301

Technical specifications 14.1 Standards and Approvals

IEC 61010-2-201
The S7-1500R/H redundant system fulfills the requirements and criteria of standard IEC 61010-2-201 (Safety requirements for electrical equipment for measurement, control, and laboratory use Part 2-201: Particular requirements for control equipment).

PROFINET standard
The PROFINET interfaces of the redundant S7-1500R/H system are based on the standard IEC 61158 Type 10.

Marine approval
Classification societies:  ABS (American Bureau of Shipping)  BV (Bureau Veritas)  DNV- GL (Det Norske Veritas - Germanischer Lloyd)  LRS (Lloyds Register of Shipping)  Class NK (Nippon Kaiji Kyokai)  KR (Korean Register of Shipping)  CCS (China Classification Society)

Industrial use

The S7-1500R/H redundant system is designed for use in industrial environments. It meets the following standards for this type of use:
 Requirements on emission EN 61000-6-4: 2007 + A1: 2011
 Requirements on immunity EN 61000-6-2: 2005
Use in mixed areas
Under certain circumstances, you can use the S7-1500R/H redundant system in a mixed area. A mixed area is used for residential purposes and for commercial operations that do not significantly impact on residents.
If you use the S7-1500R/H redundant system in a mixed area, you must ensure that radio interference emission complies with the limit classes of the technical standard EN 61000-6-3. Suitable measures for observing these limits for use in a mixed area are, for example:
 Installation of the S7-1500R/H redundant system in grounded control cabinets
 Use of noise filters in the supply cables
An individual acceptance test is also required.

302

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.2 Electromagnetic compatibility
Use in residential areas
Note S7-1500R/H redundant system not intended for use in residential areas The S7-1500R/H redundant system is not intended for use in residential areas. Using the S7-1500R/H redundant system in residential areas can affect radio and television reception.

Reference

The certificates for the identifiers and approvals can be found in Siemens Industry Online Support on the Internet (http://www.siemens.com/automation/service&support).

14.2

Electromagnetic compatibility

Definition

Electromagnetic compatibility (EMC) is the ability of an electrical installation to function satisfactorily in its electromagnetic environment, without affecting that environment.
The S7-1500R/H redundant system also meets the requirements of EMC legislation for the European Single Market. This is dependent on the S7-1500R/H redundant system complying with the requirements and guidelines relating to electrical equipment.

EMC in accordance with NE21
The S7-1500R/H redundant system meets the EMC specifications of NAMUR guideline NE21.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

303

Technical specifications 14.2 Electromagnetic compatibility

Pulse-shaped disturbances
The table below shows the electromagnetic compatibility of the S7-1500R/H redundant system with regard to pulse-shaped disturbances.

Table 14- 1 Pulse-shaped disturbances

Pulse-shaped disturbance

Test voltage

Corresponds with degree of severity

Electrostatic discharge in accordance Air discharge: ±8 kV

3

with IEC 61000-4-2.

Contact discharge: ±6 kV

3

Burst pulses (high-speed transient dis- ±2 kV (power supply cable)

3

turbances) in accordance with

±2 kV (signal cable > 30 m)

3

IEC 61000-4-4.

±1 kV (signal cable < 30 m)

High-energy single pulse (surge) in accordance with IEC 61000-4-5

External protective circuit required (not for 230 V modules) You can find more information in the Designing interference-free controllers function manual.

· Asymmetric coupling

±2 kV (power supply cables) DC with protective elements

3

±2 kV (signal/data line only > 30 m), with protective elements

· Symmetric coupling

±1 kV (power supply cable) DC with protective elements

±1 kV (signal/data line only > 30 m), with protective elements

Sinusoidal disturbances
The following table shows the electromagnetic compatibility of the S7-1500R/H redundant system with respect to sinusoidal disturbances (RF radiation).

Table 14- 2 Sinusoidal disturbances with RF radiation

RF radiation in accordance with IEC 61000-4-3/NAMUR 21

Electromagnetic RF field, amplitude-modulated

80 to 1000 MHz; 1.4 to 2 GHz

2.0 GHz to 6 GHz

10 V/m

1 V/m

80 % AM (1 kHz)

Corresponds with degree of severity
3

304

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.2 Electromagnetic compatibility

The following table shows the electromagnetic compatibility of the S7-1500R/H redundant system with respect to sinusoidal disturbances (RF coupling).

Table 14- 3 Sinusoidal disturbances with RF coupling
RF coupling in accordance with IEC 61000-4-6
from 10 kHz 10 Vrms 80 % AM (1 kHz) 150  source impedance

Corresponds with degree of severity
3

Emission of radio interference
Interference emission of electromagnetic fields in accordance with EN 55016

Table 14- 4 Interference emission of electromagnetic fields

Frequency 30 MHz to 230 MHz 230 MHz to 1000 MHz From 1 GHz to 3 GHz From 3 GHz to 6 GHz

Interference emission < 40 dB (µV/m) QP < 47 dB (µV/m) QP < 76 dB (µV/m) P < 80 dB (µV/m) P

Measuring distance 10 m 10 m 3 m 3 m

Interference emission via the AC power supply in accordance with EN 55016.

Table 14- 5 Interference emission via the AC power supply

Frequency 0.15 MHz to 0.5 MHz
0.5 MHz to 30 MHz

Interference emission < 79 dB (µV) Q < 66 dB (µV) M < 73 dB (µV) Q < 60 dB (µV) M

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

305

Technical specifications 14.3 Shipping and storage conditions

14.3

Shipping and storage conditions

Introduction

The S7-1500R/H redundant system meets the specifications regarding shippings and storage conditions pursuant to IEC 61131-2. The following information applies to modules that are shipped and/or stored in their original packaging.

Shipping and storage conditions for modules

Table 14- 6 Shipping and storage conditions
Type of condition Free fall (in shipping package) Temperature Barometric pressure
Relative humidity Sinusoidal vibrations in accordance with IEC 60068-2-6 Shock in accordance with IEC 60068-2-27

Permissible range  1 m from -40 °C to +70 °C From 1140 to 660 hPa (corresponds to an elevation of -1000 to 3500 m) 5% to 95%, without condensation 5 - 8.4 Hz: 3.5 mm 8.4 - 500 Hz: 9.8 m/s2 250 m/s2, 6 ms, 1000 shocks

14.4

Mechanical and climatic ambient conditions

Operating conditions
The S7-1500R/H redundant system is designed for stationary use in weather-proof locations. The operating conditions are based on the requirements of DIN EN 60721-3-3:1995 + A2:1997.
 Class 3M3 (mechanical requirements)
 Class 3K3 (climatic requirements)

306

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.4 Mechanical and climatic ambient conditions

Test of mechanical ambient conditions
The table below provides important information with respect to the type and scope of the test of ambient mechanical conditions.

Table 14- 7 Test of mechanical ambient conditions

Condition tested Vibration
Shock Continuous shock

Test Standard Vibration test according to IEC 60068-2-6 (Sinus)
Shock, tested according to IEC 60068-2-27
Shock, tested according to IEC 60068-2-27

Comment
Type of oscillation: Frequency sweeps with a rate of change of 1 octave/minute. 5 Hz  f  8.4 Hz, constant amplitude 7 mm 8.4 Hz  f  150 Hz, constant acceleration 2 g Duration of oscillation: 10 frequency sweeps per axis, along each of the 3 mutually perpendicular axes
Type of shock: Half-sine Shock intensity: 15 g max., duration 11 ms Direction of shock: 3 shocks each in (+/-) direction, along each of the 3 mutually perpendicular axes
Type of shock: Half-sine Shock intensity: 250 m/s2 peak value, 6 ms duration Direction of shock: 1000 shocks each in (+/-) direction, along each of the 3 mutually perpendicular axes

Reduction of vibrations
If the S7-1500R/H redundant system is exposed to severe shock or vibration, take appropriate measures to reduce the acceleration or the amplitude.
We recommend installing the S7-1500R/H redundant system on damping materials (for example, rubber-bonded metal mounting).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

307

Technical specifications 14.4 Mechanical and climatic ambient conditions

Climatic ambient conditions
The table below shows the permissible ambient climatic conditions for the S7-1500R/H redundant system:

Table 14- 8 Climatic ambient conditions

Ambient conditions
Temperature: horizontal mounting position: vertical mounting position:

Permissible range
0 °C to 60 °C 0 °C to 40 °C

Temperature variation Relative humidity Barometric pressure

10 K/h from 10 % to 95 % From 1140 to 795 hPa

Pollutant concentration

ANSI/ISA-71.04 severity level G1; G2; G3

Comments
To increase the service life of the display, the display switches off when the permitted operating temperature is exceeded.
At certain temperatures, the display switches off and on again. You can find more information in the technical specifications in the CPU manuals.
-
Without condensation
Corresponds to an altitude of -1000 m to 2000 m.
Note the following section "Using the redundant S7-1500R/H system over 2000 m above sea level".
-

Using the redundant S7-1500R/H system over 2000 m above sea level

Table 14- 9 R/H CPUs for maximum installation altitude 5000 m

CPU designation
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN

Article number
6ES7513-1RL00-0AB0 6ES7515-2RM00-0AB0 6ES7517-3HP00-0AB0

Version
FS01 or higher

Max. installation altitude
5,000 m

The maximum "operating height above sea level" is described in the technical specifications of the respective module. The product data sheets with daily updated technical specifications can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td) at Industry Online Support. Enter the article number or the short description of the desired module on the website.
For altitudes > 2000 m, the following constraints apply to the maximum specified ambient temperature:

308

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.4 Mechanical and climatic ambient conditions

Restrictions of the specified maximum ambient temperature in reference to the installation altitude

Installation altitude -1000 m to 2000 m 2000 m to 3000 m 3000 m to 4000 m 4000 m to 5000 m

Derating factor for ambient temperature 1) 1.0 0.9 0.8 0.7

1) Base value for application of the derating factor is the maximum permissible ambient temperature in °C for 2000 m.

Note
· Linear interpolation between altitudes is permissible.
· The derating factors compensate for the decreasing cooling effect of air at higher altitudes due to lower density.
· Note the mounting position of the respective CPU in the technical specifications. The basis is the standard IEC 61131-2:2017.
· Make sure that the power supplies you use are rated for altitudes > 2000 m.
· The displays of the R/H CPUs are designed for an altitude of  3,000 m. When operating the device at altitudes > 3,000 m, you may experience problems with the CPU display in rare cases; however, these do not affect operation of the CPU.
· The synchronization modules for the CPU 1517H-3 PN (sync module 1 GB FO 10 m): 6ES7960-1CB00-0AA5, Sync module 1 GB FO 10 km: 6ES7960-1FB00-0AA5) are also released for 5000 m.

Effects on the availability of modules
The higher cosmic radiation present during operation at altitudes above 2000 m will also start to have an effect on the failure rate of electronic components (the so-called soft error rate). In individual cases this might result in a primary backup switchover.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

309

Technical specifications 14.5 Information on insulation tests, protection class, degree of protection and rated voltage

14.5

Information on insulation tests, protection class, degree of protection

and rated voltage

Insulation

The insulation is designed in accordance with the requirements of IEC 61010-2-201.
Note For modules with 24 V DC (SELV/PELV) supply voltage, electrical isolation is tested with 707 V DC (type test).

Pollution degree/overvoltage category in accordance with IEC 61131-2, IEC 61010-2-201
 Pollution degree 2  Overvoltage category: II

Protection class according to IEC 61131-2, IEC 61010-2-201
The S7-1500R/H redundant system meets protection class I requirements and parts of protection classes II and III.

Degree of protection IP20
Degree of protection IP20 in accordance with IEC 60529 for all modules of the S7-1500R/H redundant system:  Protection against contact with standard test fingers  Protection against foreign objects with diameters in excess of 12.5 mm  No protection against water

Rated voltage for operation
The S7-1500R/H redundant system works with the rated voltages and corresponding tolerances listed in the table below.

Table 14- 10 Rated voltage for operation

rated voltage 24 V DC

Tolerance range 19.2 V DC to 28.8 V DC1)

1) Static value: Generation as protective extra-low voltage with safe electrical isolation in accordance with IEC 61131-2 or IEC 61010-2-201.

310

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Technical specifications 14.6 Use of S7-1500R/H in Zone 2 hazardous area

14.6

Use of S7-1500R/H in Zone 2 hazardous area

Reference

You can find more information in the product information Use of modules in a Zone 2 Hazardous Area (http://support.automation.siemens.com/WW/view/en/19692172).

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

311

Dimension drawings
Mounting rail 160 mm

A

Figure A-1 Mounting rail 160 mm
Mounting rail 245 mm

Figure A-2 Mounting rail 245 mm 312

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Mounting rail 482.6 mm

Dimension drawings

Figure A-3 Mounting rail 482.6 mm
Mounting rail 530 mm

Figure A-4 Mounting rail 530 mm
S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

313

Dimension drawings Mounting rail 830 mm

Figure A-5 Mounting rail 830 mm
Mounting rail 2000 mm

Figure A-6 Mounting rail 2000 mm

314

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Accessories/spare parts

B

General accessories
Table B- 1 General accessories
Designation Mounting rail · Mounting rail, 160 mm (with drill holes) · Mounting rail, 245 mm (with drill holes) · Mounting rail, 482 mm (with drill holes) · Mounting rail, 530 mm (with drill holes) · Mounting rail, 830 mm (with drill holes) · Mounting rail, 2000 mm (without drill holes) for cutting to length Standard rail adapter, 10 adapters, 10 hexagon socket screws and 10 washers PE connection element for mounting rail, 2000 mm (spare part), 20 units 4-pole connection plug for supply voltage (spare part), 10 units U connector (spare part), 5 units 70 mm display for CPU (spare part) 35 mm display for CPU (spare part) Power cable connector with coding element for power supplies (spare part), 10 units Synchronization module for CPU 1517H-3 PN · Sync module 1 GB FO 10 m · Sync module 1 GB FO 10 km Redundancy connections for CPU 1517H-3 PN · Sync cable FO 1 m (multimode fiber) · Sync cable FO 2 m (multimode fiber) · Sync cable FO 10 m (multimode fiber) · Sync cable FO up to 10 km (single-mode fiber) PROFINET cables for redundancy connections, PROFINET ring with CPU 1513R-1 PN, CPU 1515R-2 PN; PROFINET cables for PROFINET ring with CPU 1517H-3 PN · Industrial Ethernet FastConnect RJ45 plug 180 degrees, 1 unit · Industrial Ethernet FastConnect RJ45 plug 180 degrees, 10 units · Industrial Ethernet FastConnect RJ45 plug 90 degrees, 1 unit · Industrial Ethernet FastConnect RJ45 plug 90 degrees, 10 units

Article number
6ES7590-1AB60-0AA0 6ES7590-1AC40-0AA0 6ES7590-1AE80-0AA0 6ES7590-1AF30-0AA0 6ES7590-1AJ30-0AA0 6ES7590-1BC00-0AA0 6ES7590-6AA00-0AA0 6ES7590-5AA00-0AA0 6ES7193-4JB00-0AA0 6ES7590-0AA00-0AA0 6ES7591-1BA00-0AA0 6ES7591-1AA00-0AA0 6ES7590-8AA00-0AA0
6ES7960-1CB00-0AA5 6ES7960-1FB00-0AA5
6ES7960-1BB00-5AA5 6ES7960-1BC00-5AA5 6ES7960-1CB00-5AA5 On request
6GK1901-1BB10-2AA0 6GK1901-1BB10-2AB0 6GK1901-1BB20-2AA0 6GK1901-1BB20-2AB0

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

315

Accessories/spare parts

SIMATIC memory cards
Table B- 2 SIMATIC memory cards
Article number 6ES7954-8LCxx-0AA0 6ES7954-8LExx-0AA0 6ES7954-8LFxx-0AA0 6ES7954-8LL02-0AA0 6ES7954-8LPxx-0AA0 6ES7954-8LT02-0AA0

Capacity 4 MB 12 MB 24 MB 256 MB 2 GB 32 GB

Media converter (electrical  optical)
Table B- 3 Media converter (electrical  optical)
Article number SIMATIC NET Media Converter SCALANCE X101-1 RUGGEDCOM RMC-24-TXFXSM-XX Additional media converters

Article number 6GK5101-1BB00-2AA3 6GK6001-0AC01-0EA0 On request

Online catalog

You can find more article numbers for the S7-1500R/H redundant system on the Internet (https://mall.industry.siemens.com) in the online catalog and online ordering system.

316

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Safety symbols

C

C.1

Safety-related symbols for devices without Ex protection
The following table contains an explanation of the symbols located in your SIMATIC device, its packaging or the accompanying documentation.

Symbol

Meaning General warning sign Caution/Notice You must read the product documentation. The product documentation contains information about the potential risks and enable you to recognize risks and implement countermeasures. Read the information provided by the product documentation. ISO 7010 M002
Ensure the device is only installed by electrically skilled person. IEC 60417 No. 6182
Note that connected mains lines must be designed according to the expected minimum and maximum ambient temperature.

Note that the device must be constructed and connected in accordance with EMC regulations.

Note that a 230 V device can be exposed to electrical voltages which can be dangerous. ANSI Z535.2
Note that a device of Protection Class III may only be supplied with a protective low voltage according to the standard SELV/PELV. IEC 60417-1-5180 "Class III equipment"
Be aware that the device is only approved for the industrial field and only for indoor use.

Note that an enclosure is required for installing the device. Enclosures are considered:
· Standing control cabinet · Serial control cabinet · Terminal boxes · Wall enclosure

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

317

Safety symbols C.2 Safety-related symbols for devices with Ex protection

C.2

Safety-related symbols for devices with Ex protection
The following table contains an explanation of the symbols located in your SIMATIC device, its packaging or the accompanying documentation.

Symbol

Meaning
The assigned safety symbols apply to devices with Ex approval.
You must read the product documentation. The product documentation contains information about the potential risks and enable you to recognize risks and implement countermeasures.

Read the information provided by the product documentation. ISO 7010 M002 Ensure the device is only installed by electrically skilled person. IEC 60417 No. 6182 Observe the mechanical rating of the device.
Note that connected mains lines must be designed according to the expected minimum and maximum ambient temperature.
Note that the device must be constructed and connected in accordance with EMC regulations.
When the device is under voltage, note that it may not be installed or removed, or plugged or pulled.
Note that a 230 V device can be exposed to electrical voltages which can be dangerous. ANSI Z535.2
Note that a device of Protection Class III may only be supplied with a protective low voltage according to the standard SELV/PELV. IEC 60417-1-5180 "Class III equipment"
Be aware that the device is only approved for the industrial field and only for indoor use.

318

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Safety symbols C.2 Safety-related symbols for devices with Ex protection

Symbol

Meaning
For Zone 2 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP54.

For Zone 22 potentially explosive atmospheres, be aware that the device may only be used when it is installed in an enclosure with a degree of protection  IP6x.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

319

Glossary

AR
The AR (Application Relation) covers all communication relations between IO controller and IO device (for example IO data, data records, interrupts).

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains in the process engineering industry and in manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Backup CPU

Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in the RUNRedundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over process control if the primary CPU fails.

Baud rate

Data transmission rate indicates the number of bits transmitted per second (baud rate = bit rate).

Bit memory

Bit memory is a component of the system memory of the CPU for saving intermediate results. You access the bit memory through the user program bit by bit, byte by byte, word by word or double word by double word.

Bus
Joint transmission path to which all devices in a fieldbus system are connected.

Bus cable connector
The bus cable connector is the physical connection between bus node and bus cable.

Bus, self-assembling
The modules are lined up on the mounting rail. They are mechanically and electrically connected to each other with a U connector as they are swiveled into position. In this way the bus is extended with each module.

320

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

Code block

In SIMATIC S7, a code block contains part of the STEP 7 user program.

Configuration

Systematic arrangement of the individual modules (configuration).

Connection plug
The connection plug provides the physical connection between devices and the cable, for example.

Consistent data
Consistent data is data that belongs together in terms of content. Consistent data items are read and written together.

Counter

Counters are components of the system memory of the CPU. You can modify the content of the "counter cells" using STEP 7 instructions. Example: counting up or down).

CPU

The Central Processing Unit (CPU) contains the operating system and executes the user program. The user program is located on the SIMATIC memory card and is processed in the work memory of the CPU. The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices and PGs/PCs.

Crimping

Procedure whereby two components joined together, e.g. wire end sleeve and cable, are connected with one another through plastic strain.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

321

Glossary

Cycle control point
The cycle control point marks the end of a cycle and the start of the next cycle. The cycle time statistics and monitoring of the configured maximum cycle time start at the cycle control point.
Once the cycle control point has been reached, the CPU writes the process image output to the output modules, reads the state of the inputs in the input modules and then executes the first program cycle OB.
The following requirements must be met for reaching the cycle control point in redundant mode:
 the primary CPU has reached the end of the cyclic program
 the backup CPU has reached the end of the cyclic program and reported this to the primary CPU
 if a minimum cycle time was configured, this is removed

Cycle time

The cycle time is the time a CPU requires to execute the cyclic user program once.

Cyclic interrupt
You will find further information in the glossary entry "Interrupt, cyclic".

Data block

Data blocks (DBs) are data areas in the user program that contain user data. Available data blocks:
 Global data blocks that you can access from all code blocks.
 Instance data blocks that are assigned to a specific FB call.

Device

A device can send, receive or amplify data via the bus, e.g. IO device via PROFINET IO.

Device names

Each IO device must have a unique device name. This is required to allow the IO controller to communicate with an IO device. Advantage: Device names are easier to manage than complex IP addresses.
In its delivery state, an IO device has no device name. A device name must be assigned using the PG/PC before an IO device can be addressed by an IO controller. Example: For transmission of the configuration data (e.g. the IP address) during startup or for exchanging user data in cyclic mode.

322

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

Diagnostics

Monitoring functions include:  Detection, localization and classification of errors, faults and alarms.  Display and further evaluation of errors, faults and alarms. They run automatically while the system is in operation. This increases the availability of systems by reducing commissioning times and downtimes.

Diagnostics buffer
The diagnostics buffer is a battery-backed memory area in the CPU where diagnostics events are stored in their order of occurrence.

Diagnostics interrupt
You will find further information in the glossary entry "Interrupt, diagnostics".

Distributed I/O system
System with I/O modules that are configured on a distributed basis, at a large distance from the CPU controlling them.

DP
Distributed I/O

Equipotential bonding
Electrical connection (equipotential bonding conductor) that brings the conductive parts of electrical equipment and other conductive parts to the same or approximately the same potential. This prevents disruptive or dangerous voltages arising between these parts.

Firmware of the CPU
In SIMATIC, a distinction is made between the firmware of the CPU and user programs.
The firmware is a software embedded in electronic devices. The firmware is permanently connected to the hardware in functional terms. It is usually saved in a flash memory, such as EPROM, EEPROM or ROM, and cannot be replaced by the user or only with special tools or functions.
User program: You will find further information in the glossary entry "User program".

Firmware update
You update the module firmware with a firmware update. A firmware update is, for example, run for new functions of a CPU or an interface module.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

323

Glossary

Function

A function (FC) is a code block with no static data. A function allows you to pass parameters in the user program. Functions are thus suited for programming frequently recurring complex functions, such as calculations.

Function block

A function block (FB) is a code block with static data. An FB allows you to pass parameters in the user program. Function blocks are thus suited for programming frequently recurring complex functions, such as closed-loop controls or operating mode selection.

Functional ground
Functional ground is a low-impedance current path between electric circuits and ground. It is not intended as a protective measure but rather, for example, for improvement of interference immunity.

Ground

Conductive ground whose electrical potential can be set equal to zero at any point. All interconnected, inactive parts of a piece of equipment.

Ground

Conductive ground whose electrical potential can be set equal to zero at any point. All interconnected, inactive parts of a piece of equipment.

Grounding

Grounding means connecting an electrically conductive part to a grounding electrode by means of a grounding system.

GSD file

As a Generic Station Description, this file contains all the properties of a PROFINET or PROFIBUS device that are necessary for its configuration.

Hardware interrupt
You will find further information in the glossary entry "Interrupt, hardware".

324

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

H-Sync forwarding
H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of a S7-1500R redundant system only within the PROFINET ring.
In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
S7-1500R: H-Sync Forwarding is recommended for all PROFINET devices with only 2 ports in the PROFINET ring. All PROFINET devices with more than two ports (e.g. switch) in the PROFINET ring must support H-Sync forwarding.
S7-1500H: H-Sync forwarding is not relevant for redundant S7-1500H systems.

I/O module

Device of the distributed I/O that is used as an interface between the controller and the process.

Identification data
Information that is saved in modules, and that supports the user in reviewing the system configuration and locating hardware changes.

Instance data block
Each call of a function block in the STEP 7 user program is assigned a data block, which is automatically generated. Values of the input, output and in/out parameters are stored in the instance data block, as is the local block data.

Interface module
Module in the distributed I/O system. The interface module connects the distributed I/O system to the CPUs (IO controllers) via a fieldbus, and prepares the data of the I/O modules.

Interrupt

The operating system of the CPU distinguishes between various priority classes that control the execution of the user program. These priority classes include interrupts such as hardware interrupts. When an interrupt occurs, the operating system automatically calls an assigned organization block. You program the required reaction in the organization block (for example in an FB).

Interrupt, cyclic
The CPU generates a cyclic interrupt periodically within a parameterizable time grid and then processes the corresponding organization block.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

325

Glossary

Interrupt, diagnostics
Diagnostics-capable modules signal detected system errors to the CPU using diagnostics interrupts.

Interrupt, hardware
A hardware interrupt is triggered by interrupt-triggering modules following a certain event in the process. The hardware interrupt is signaled to the CPU. The CPU then processes the assigned organization block according to the priority of this interrupt.

Interrupt, time-delay
The time-delay interrupt is one of the program execution priority classes of SIMATIC S7. The time-delay interrupt is generated upon expiration of a timer started in the user program. The CPU then processes the corresponding organization block.

Interrupt, time-of-day
The time-of-day interrupt is one of the program execution priority classes of SIMATIC S7. The time-of-day interrupt is generated based on a specific date and time. The CPU then processes the corresponding organization block.

Interrupt, update
When it receives an update interrupt, the operating system calls the update interrupt OB. This may happen if you changed a parameter on a slot of a device.

IP address

The IP address is made up of four decimal numbers with a range of values from 0 through 255. The decimal numbers are separated by a dot (for example 192.162.0.0). The IP address consists of the following:  Address of the network  Device address (PROFINET interface of the IO controllers/IO devices)

Isolated modules
In the case of isolated input/output modules, the reference potentials of the control and load circuits are electrically isolated. Examples are optical isolators, relays or transformers. Input/output circuits can be connected to common potential.

Load current supply
The load current supply supplies the electric input and output circuits of the module.

326

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

MAC address

Each port of a PROFINET interface (PROFINET device) is assigned a unique global device identifier in the factory. This 6-byte long device identifier is the MAC address.
The MAC address is divided into:
 3-byte manufacturer ID
 3-byte device ID (consecutive number)
The MAC addresses are generally shown on the front of the device. Example: 08-00-06-6B-80-C0

Non-isolated modules
In the case of non-isolated input and output modules, the reference potentials of the control and load circuits are electrically connected.

NTP

The Network Time Protocol (NTP) is a standard for synchronizing clocks in automation systems via Industrial Ethernet. NTP uses the UDP connectionless network protocol.

Operating states
Operating states describe the behavior of a single CPU at any given time.
The primary CPU of the S7-1500R/H redundant system has the operating states STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating states STOP, SYNCUP and RUN-Redundant.

Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The organization blocks determine the order in which the user program is executed.

Pairing

Pairing is the mutual recognition of the CPUs of an S7-1500R/H system within a network. During pairing, the CPUs exchange information for mutual identification. Example: Checking for matching article number and firmware version. Successful pairing of two CPUs is a fundamental requirement for redundant operation.

Parameter

 Tag of a STEP 7 code block:
 Tag for setting the behavior of a module (one or more per module). In as-delivered state, every module has an appropriate basic setting, which you can change by configuring in STEP 7. There are static and dynamic parameters

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

327

Glossary

Parameters, dynamic
You can change dynamic module parameters during operation by calling an SFC in the user program, for example, limits of an analog input module.

Parameters, static
You cannot change static module parameters with the user program, but only with configuration in STEP 7, for example, the input delay of a digital input module.

PELV

Protective Extra Low Voltage = safety extra low voltage connected to protective earth

Pre-wiring

Wiring of the front connector in the "pre-wiring position" at the I/O module or before you insert the front connector into the I/O module.

Primary CPU

Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in the RUNRedundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over process control if the primary CPU fails.

Primary-backup switchover
The primary CPU has the leading role within the redundant system. If the primary CPU fails following a fault, the backup CPU takes over the primary role and operates as the primary CPU.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then reads the signal states of the input modules into the process image inputs. The CPU then executes the user program.

Product version (PV) = Function version (FV)
The product version or function version provides information on the hardware version of the module.

PROFINET

PROcess FIeld NETwork, open Industrial Ethernet standard that continues PROFIBUS and Industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V. as an automation standard.

328

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

PROFINET IO

Communication concept for the realization of modular, distributed applications within the scope of PROFINET.

PROFINET IO controller
Device used to address connected IO devices (for example distributed I/O systems). The IO controller exchanges input and output signals with assigned IO devices. The IO controller is often the CPU on which the user program is running.

PROFINET IO device
Distributed field device that can be assigned to one or more IO controllers. Examples: Distributed I/O system, valve terminals, frequency converters, switches

Push-in terminal
Terminal for the tool-free connection of wires.

Redundancy connection/redundancy connections
The redundancy connection in an S7-1500R system is the PROFINET ring with MRP. The redundancy connection uses part of the bandwidth on the PROFINET cable for the synchronization of the CPUs. This bandwidth is therefore not available for PROFINET IO communication.
Unlike in S7-1500R, the PROFINET ring and redundancy connections in S7-1500H are separate. The two redundancy connections are fiber-optic cables that connect the CPUs directly over synchronization modules. The bandwidth on the PROFINET cable is available for PROFINET IO communication.

Redundancy ID
The load memory of both CPUs contains the project data of one as well as the other CPU. By assigning the redundancy IDs, you define which project data a CPU uses for itself.

Redundant systems
Redundant systems have multiple (redundant) instances of key automation components. Process control is maintained if a redundant component fails.

Reference potential
Potential from which the voltages of the circuits involved are observed and/or measured.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

329

Glossary

Restart

A warm restart deletes all non-retentive bit memory and resets non-retentive DB contents to the initial values from load memory. Retentive bit memory and retentive DB contents are retained. Program execution begins at the call of the first startup OB. A restart is triggered with CPU POWER OFF/POWER ON.

Retentivity

A memory area whose content is retained after power failure and after a STOP to RUN transition is retentive. The non-retentive area bit memory area, timers and counters are reset after a power failure and after a STOP to RUN transition. The non-retentive content of data blocks is reset to the initial values.

Row

All the modules attached to a mounting rail.

Runtime error

Error that occurs during execution of the user program in the automation system (thus not in the process).

SELV

Safety Extra Low Voltage = Safety extra-low voltage

SNMP

SNMP (Simple Network Management Protocol) is the standardized protocol for performing diagnostics on and assigning parameters to the Ethernet network infrastructure.
In the office setting and in automation engineering, devices from a wide range of vendors on the Ethernet support SNMP.
You can operate SNMP-based applications on the same network in parallel to applications with PROFINET.
The scope of supported functions varies depending on the device type. For example, a switch has more functions than a CP 1616.

330

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

Switch

PROFIBUS is a linear network. The communication nodes are linked by means of a passive cable - the bus.
By contrast, Industrial Ethernet consists of point-to-point connections: Each communication node is directly connected to exactly one communication node.
If you want to link a communication node to several communication nodes, you connect this communication node to the port of an active network component (the switch). You can connect other communication nodes (including switches) to the other ports of the switch. The connection between a communication node and the switch remains a point-to-point connection.
A switch thus has the task of regenerating and distributing received signals. The switch "learns" the MAC addresses of a connected PROFINET device or additional switches. The switch only forwards those signals that are intended for the connected PROFINET device or switch.
A switch has a specific number of connections (ports). You connect at most one PROFINET device or additional switch to each port.

Switched S1 device
The "Switched S1 device" function of the CPU enables operation of standard IO devices on the S7-1500R/H redundant system.
PROFINET communication runs on an AR between the primary CPU and the standard IO device. When replacing the primary CPU, the standard IO device is briefly disconnected from the S7-1500R/H redundant system until the new primary CPU has set up an AR to the standard IO device.

Synchronization module
You use the synchronization modules to create the redundancy connections between the CPUs of the redundant S7-1500H system. You need two synchronization modules per CPU that you connect in pairs with fiber-optic cables.

System states

The system states of the S7-1500R/H redundant system result from the operating states of the primary and backup CPU. The term system state is used as a simplified expression that refers to the operating states that occur simultaneously on both CPUs. The S7-1500R/H redundant system has the system states STOP, STARTUP, RUN-Solo, SYNCUP and RUNRedundant.

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

331

Glossary

System IP address
In addition to the device IP addresses of the CPUs, the redundant system S7-1500R/H supports system IP addresses:
 System IP address for the X1 PROFINET interfaces of the two CPUs (system IP address X1)
 System IP address for the X2 PROFINET interfaces of the two CPUs (system IP address X2)
You use the system IP addresses for communication with other devices (for example, HMI devices, CPUs, PG/PC). The devices always communicate over the system IP address with the primary CPU of the redundant system. This ensures that the communication partner can communicate with the new primary CPU (previously backup CPU) in the RUN-Solo system state after failure of the original primary CPU in redundant operation.

TIA Portal

Totally Integrated Automation Portal
The TIA Portal is the key to the full performance capability of Totally Integrated Automation. The software optimizes operating, machine and process sequences.

Time-delay interrupt
You will find further information in the glossary entry "Interrupt, time-delay".

Time-of-day interrupt
You will find further information in the glossary entry "Interrupt, time-of-day".

Timer

Timers are components of the system memory of the CPU. The operating system automatically updates the content of the "timer cells" asynchronously to the user program. STEP 7 instructions define the precise function of the timer cell (for example on-delay) and trigger its execution.

Update interrupt
You will find further information in the glossary entry "Interrupt, update".

User program

In SIMATIC, a distinction is made between user programs and the firmware of the CPU.
The user program contains all instructions, declarations and data that control a system or process. The user program is assigned to the redundant system. Structuring into smaller unit is supported.
Firmware: You will find further information in the glossary entry "Firmware of the CPU".

332

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

Glossary

Value status

The value status describes a specific signal state. The value status is constantly updated and cyclically transmitted by the field device as a quality statement together with the measured value.

Warm restart

You will find further information in the glossary entry "Restart".

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

333

Index
24 V DC supply, 118
A
Access levels Assign parameters, 178
Access levels for the CPUs, 177 Access protection for the display, 180 Access protection with the user program, 180 Accessories, 315 Ambient conditions
Climatic, 308 Mechanical, 307 Operating conditions, 306 Approvals, 298 CE, 299 cULus, 299 FM, 300 IEC 61010-2-201, 302 IEC 61131-2, 301 Asynchronous instructions, 169 Automation levels, 26
B
Backup types of the CPU data, 245 Breakpoints, 292
C
Cable length up to 10 km:, 134 up to 10 m:, 133
Cable temperature, 123 Causes and solutions, 224 CE approval, 299 Changes previous version of system manual, 13 Climatic ambient conditions, 308 Coding element, 125
Power connector, 279 Commissioning, 253
Check before power-on, 186 First power-on, 190 First power-on, requirements, 190 Identification data, 251, 253 Identification data - record structure, 253
334

Procedure, 187 Removing/plugging in a SIMATIC memory card, 188 Communication, 52 Configuration, 120, 145 Electrical, 122 Of the redundant system S7-1500H, 22, 32 Of the redundant system S7-1500H, 22, 32 Of the redundant system S7-1500R, 20, 31 Of the redundant system S7-1500R, 20, 31 On grounded reference potential, 119 Configuration versions of S7-1500R/H, 62 Configuring the NTP server, 249 Connecting communication interfaces to S71500H, 132 Connecting communication interfaces to S71500R, 129 Connecting PROFINET ring To S7-1500H, 143 To S7-1500R, 129 Connecting redundancy connections (fiber-optic cables) to S7-1500H, 139 Connecting the supply voltage, 124 Connection plug 4-pin, 36 Control, 292 Correct defect, 266 Exchange load current supply, 275 Replace coding element on mains connection plug, 279 Replace redundancy connection for S7-1500H, 272 Replacing IO device/Switch, 276 Replacing PROFINET cable, 274 Replacing PROFINET cables for S7-1500R, 270 Replacing R/H-CPUs, 269 Replacing redundant connections, 270 Replacing redundant connections for S71500H, 273 Replacing SIMATIC memory card, 274 Replacing the front cover, 278 Replacing the synchronization module for S71500H, 272 CPU, 35 Backup/restore contents, 245 Reading out service data, 296 Reset to factory settings, 286 CPU redundancy error, 161 cULus approval, 299
S7-1500R/H redundant system
System Manual, 11/2019, A5E41814787-AB

Index

D
Degree of protection IP20, 310 Device IP addresses, 52
Assigning, 146 Diagnostics, 45 Difference between synchronous/asynchronous instructions, 170 Differences between S7-1500R and S7-1500H, 24 Dimension drawing
Mounting rail, 312 Disable SYNCUP, 165 Display, 258
Basics, 258 Control keys, 262 Languages, 265 Menu, 260 Menu icons, 261 Password protection, 258 Upload image to display, 264 Downloading a project to the CPUs, 198 Downloading project data, 197
E
Electrical relationships, 122 Electromagnetic compatibility (EMC), 303
Disturbances, 304 Radio interference, 305 Electrostatic discharge, 304 Emergency address, 246 Emergency IP, 246 EMERGENCY-STOP devices, 117 Entering maintenance data, 252
F
Factory settings, 287 Failure scenarios, 67, 81 FAQs
Firmware update, 286 Removing a SIMATIC memory card, 189 Features of the S7-1500R/H redundant system, 30 Fiber-optic cable, 35 Connection, 132 Installation, 137 Selection, 133 Storage, 138 Firmware update, 281 Using STEP 7, 283 Via the SIMATIC memory card, 284 FM approval, 300
S7-1500R/H redundant system
System Manual, 11/2019, A5E41814787-AB

Force table, 294 Forcing, 292
G
Galvanic isolation, 122 Grounded extra-low-voltage, 119 Grounded infeed, 119 Grounding, 107
Configuration on grounded reference potential, 119 Overview of the CPU, 121
H
Hardware Requirements, 58 Restrictions, 60
Hardware restrictions, 60 H-CPU
Installing, 116 Uninstalling, 116 HMI devices Connecting, 100 Use, 99 HMI devices, 54 H-Sync Forwarding, 39
I
I&M data Read, 251
Identification data Record structure, 253
IEC 60204, 117 IEC 61010-2-201, 302 IEC 61131-2, 301 Infeed
grounded, 119 Installation
Basics, 102 DIN rail adapter, 108 Load current supply, 114 Mounting rail, 104, 106 R/H-CPU, 116 Installation position, 102 Installation rules, 103 Installing the standard rail adapter, 108 Instructions not supported, 157 Insulation, 310
335

Index
K
Know-how protection, 180 Know-how protection for blocks
Changing, 183 Removing, 183 Setting up, 181
L
Languages Display, 265
LED flashing test, 295 Lightning protection, 118 Line voltage, 117 Load current supply, 36
Connecting a CPU, 128 Installing, uninstalling, 114 Loss of redundancy Response of OB 72 and OB 86, 161 Loss of redundancy, 235
M
MAC addresses, 52 Maintenance, 266
Firmware update, 281 Reading out service data, 296 Reset to factory settings, 287 Test functions, 290 Maximum configuration, 98 Media converter (electrical  optical), 316 Media redundancy (MRP), 38 Assigning MRP roles, 151 Memory reset Automatic, 242 Basics, 241 Manual, 243 Minimum clearances, 103 Mounting rail, 34, 102, 104 Attaching the protective conductor, 107 Dimension drawing, 312 Drill holes, 105 Fastening, 105 Installation, 106 Length, 105
N
NTP procedure, 248
336

O
OB 72, 161 OB 86, 161 OBs
Event source, 164 Priorities and runtime behavior, 164 Opening know-how protected blocks, 182 Operating mode Changing, 239 Configuring startup behavior, 210 Displaying, 239 RUN, 212 RUN-Redundant, 213 Run-Syncup, 212 STARTUP, 208 STOP, 211 SYNCUP, 211 Operating principle of the S7-1500H redundant system, 22 Operating principle of the S7-1500R redundant system, 20 Operating state transitions, 226 Overall configuration, 121 Overview Components of an S7-1500R/H, 34 Grounding the CPU, 121 System and operating states, 207 Overview of the CPU technical specifications, 37
P
Pairing, 191 Password provider, 180 PE connection element, 34 PELV
Grounded extra-low-voltage, 119 PID control, 49 PID controller, 49 Plant components, 26 PLC tag table, 294 Pollution degree, 310 Power supply, 55 Process image
Inputs and outputs, 153 Process image partition
Update in the user program, 155 PROFINET cable, 35 Program execution, 156 Program status, 291 Project languages, 247 Project tree, 152
S7-1500R/H redundant system
System Manual, 11/2019, A5E41814787-AB

Index

PRONETA, 57 Protection, 176, 181, 184
Access levels, 177 Against electrical shock, 118 Behavior of a password-protected CPU, 179 Know-how protection, 181 Mechanical locking, 184 Protection against external electrical influences, 118 Protection class, 310 Protection functions, 44
R
R/H-CPU Accessories, 315 Configuration versions, 62 Display, 258 Hardware configuration, 98 Memory reset, 241 Reference potential, 120 Replacing, 269
Rack failure, 161 Radio interference, 303, 305 rated voltage, 310 R-CPU
Installing, 116 Uninstalling, 116 Redundancy, 38 Failure, 67 Redundancy IDs Assigning, 194 Reading, 195 Replacing, 195 Redundant system startup, 208 Reference potential of the controller, 120 Removing/plugging in a SIMATIC memory card CPU response after a SIMATIC memory card is removed or inserted, 189 Replacement of components, 266 Coding element on power plug, 279 Front cover, 278 IO device/switch, 276 Load current supply, 275 PROFINET cable, 274 PROFINET cables for S7-1500R, 270 R/H-CPU, 269 Redundancy connection for S7-1500H, 272 Redundancy connections, 270 Redundancy connections at S7-1500H, 273 SIMATIC memory card, 274 Synchronization module for S7-1500H, 272

Requirements Hardware, 58 Software, 60
Restrictions Software, 61
S
S7 routing, 54 S7-1500 hardware configuration
Slots, 98, 99 S7-1500R/H
Overview of components, 34 S7-1500R/H communication options, 54 S7-1500R/H components, 34 Safe electrical isolation, 119 Scalability, 27 SELV
Safe electrical isolation, 119 Service data, 296
Read via SIMATIC memory card, 297 Reading, 296 Save via STEP 7, 296 Shipping conditions, 306 Short-circuit and overload protection, 120 SIMATIC memory cards, 316 SINETPLAN, 57 Software, 56 Requirements, 60 Restrictions, 61 Spare parts, 315 Specific application, 117 Specific blocks, 156 Standard rail adapter, 34 Standards, 298 Start events, 160 Storage conditions, 306 Switched S1 device, 42 Synchronization modules, 35, 132 Plug and pull, 141 Uninstalling, 142 SYNCUP system state, 213, 224 Cancel, 222 Preparations, 215 Requirements, 213 Sequence of events, 215 System diagnostics, 46 System differences between S7-1500R and S71500H, 24 System IP address Assigning, 147 System IP address, 52

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

337

Index
System redundancy, 41 System state
Changing, 240 Displaying, 240 System state transitions, 225
T
Technical specifications Climatic ambient conditions, 308 CPU S7-1500R/H, 37 Electromagnetic compatibility (EMC), 303 Shipping and storage conditions, 306 Standards and Approvals, 298
Test functions, 290 Test voltage, 310 TIA Portal, 56 Time synchronization, 248 Tooltips, 263 Trace, 47 Trace function, 295
U
Uninstalling Load current supply, 115 R/H-CPU, 116
Use, 15 From HMI devices, 99 In hazardous area Zone 2, 311 in industrial environments, 302 in mixed areas, 302 in residential areas, 303
User program, 156 Download in the RUN-Redundant system state, 202 Download in the RUN-Solo system state, 202
Using PROFINET devices, 99
W
Watch tables, 293 Wiring, 117
General rules, 117 HMI devices, 100 Load current supply, 125 Supply voltage at the R/H-CPUs, 124 Without tools, 124 Wiring rules, 123
338

S7-1500R/H redundant system System Manual, 11/2019, A5E41814787-AB

SIMATIC S7-1500 S7-1500R/H redundant system
Getting Started

_In_tro_d_uc_tio_n_to_t_he_e_xa_m_p_le____1_ _Co_n_fig_u_ra_tio_n___________2_ _Pr_og_ra_m_m_in_g___________3_ _Co_m_m_is_si_on_in_g__________4_ _Ad_d_itio_n_al_in_fo_rm_a_tio_n_______5_

10/2018
A5E44910930-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E44910930-AA  09/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Table of contents

1 Introduction to the example ..................................................................................................................... 4

1.1

Security information ..................................................................................................................5

1.2

Structure and task of the example ............................................................................................6

1.3

Procedure ...............................................................................................................................11

1.4

Requirements .......................................................................................................................... 12

1.5

Wiring diagram for a tunnel section ........................................................................................13

2 Configuration ........................................................................................................................................ 19

2.1

Configuring the assembly .......................................................................................................19

2.2

Configuring H CPUs................................................................................................................22

2.3

Configuring ET 200SP ............................................................................................................25

2.4

Configuring HMI devices.........................................................................................................30

3 Programming ........................................................................................................................................ 34

4 Commissioning ..................................................................................................................................... 48

5 Additional information............................................................................................................................ 51

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

3

Introduction to the example

1

Redundant automation systems are used in practice to achieve greater availability. In redundantly operated systems, failure or malfunction of individual automation components must not impede the operation of the plant.
S7-1500R/H redundant system
For the S7-1500R/H redundant system, the CPUs are duplicated, in other words redundant. The two CPUs process the same project data and the same user program in parallel. The two CPUs are synchronized over redundancy connections. If one CPU fails, the other CPU maintains control of the process.
Basic knowledge required
The Getting Started guides you through the configuration and programming of an S7-1500H redundant system using a concrete example. The following knowledge is required in order to understand the Getting Started:
 General knowledge of automation technology
 Knowledge of requirements for high availability of automation systems
 Knowledge of the engineering system STEP 7 V15.1
WARNING Personal injury and damage to property may occur.
The S7-1500 as a component of plants or systems is governed by specific standards and regulations, based on the relevant field of application. Please observe the applicable safety and accident prevention regulations such as IEC 60204-1 (general machine safety requirements).
The example in this Getting Started serves as an introduction to the configuration and programming of an S7-1500H redundant system. It cannot always and in every case be transferred to effective live operations. Before you do this, you are urgently advised to consult the current version of the system manual "SIMATIC S7-1500R/H redundant system" and the device manuals of the modules used. The warnings and other information there must be observed, even if they are not repeated in this Getting Started.
Failure to observe these regulations can result in serious injuries and damages to machinery and facilities.

S7-1500R/H redundant system

4

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.1 Security information

1.1

Security information

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.

In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.

Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.

For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).

Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.

To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

5

Introduction to the example 1.2 Structure and task of the example

1.2

Structure and task of the example

Automation task light and fan control in a tunnel
The continuing increase in traffic volumes coupled with growing safety requirements demand state-of-the-art tunnel systems. At the same time, equipment requirements for these constructions are rising, especially when it comes to maximum safety and availability.
The example below comprises three subtasks:
 Control of the safety ventilation as a function of the air pollution level in the tunnel
 Control of the traffic lights and the barriers as a function of the air pollution level in the tunnel
 Control of the lighting in the tunnel as a function of the illuminance of the outdoor light

Figure 1-1 Example Light and fan control tunnel
Control of the safety ventilation as a function of the air pollution level in the tunnel Fans are used in the tunnel to extract harmful exhaust gases and supply fresh air. Uninterrupted operation of the ventilation system is required to keep the concentration of pollutants below a set level. Constant availability must be ensured for the event that individual automation components fail, for example because of a fire in the tunnel. The S71500H redundant system with two redundant H-CPUs is used to ensure fan availability. Three fans ventilate the tunnel. Control of the traffic lights and the barriers as a function of the air pollution level in the tunnel The tunnel entries are controlled via two traffic lights. The traffic light control also requires higher availability for safety reasons. If the pollutant concentration exceeds a maximum limit for more than 2 minutes in a tunnel section, then the tunnel is blocked. Control of the lighting in the tunnel as a function of the illuminance of the outdoor light The abrupt transition between light and dark at the entry to the tunnel is compensated for by tunnel lighting in the various tunnel sections. Two light sensors measure the light intensity outside the tunnel. The light intensity of the entry lights in the tunnel is controlled accordingly. The interior lights in the tunnel are controlled by the prevailing daytime / nighttime.

S7-1500R/H redundant system

6

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.2 Structure and task of the example
Technology diagram
The technology diagram below shows the structure of the automation solution.

         
Figure 1-2

Tunnel lighting Fan Traffic lights Barriers Outdoor light sensors Turbidity sensors Air-quality sensors HMI devices H-CPUs IO devices for tunnel sections 1 to 3
Technology diagram

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

7

Introduction to the example 1.2 Structure and task of the example
Automation components of the example
The configuration consists of:
2 S7-1500 H-CPUs  When a CPU fails in redundant operation, the other CPU maintains control over the
tunnel operation.
3 ET 200SP as IO devices in the PROFINET ring An ET 200SP (IO device) distributed I/O system is found in every tunnel section (1 to 3). Sensors and actuators are connected to each IO device for the following tasks:  Measurement of the pollutant concentration and as a function thereof:
­ Control of the fan speed and air flow ­ Control of the traffic lights and barriers  Measurement of the light outside the tunnel: ­ Control of the entry lights  Control of the interior lights in the tunnel, depending on the day / night time.
2 Comfort Panels The Comfort Panels are used by operators as a control center for monitoring tunnel operation.

S7-1500R/H redundant system

8

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.2 Structure and task of the example
Principle of operation
Controlling the speed of the fans and controlling the traffic lights and barriers Every fan:  has two speeds (stages), which are switched on or off depending on the measured
pollutant concentration.  has 2 directions of rotation. Depending on whether pollution is measured, the fan must
blow or suck. The H-CPU measures the pollutant concentrations in the tunnel via analog input modules and air-quality sensors. If the pollutant concentration exceeds the maximum limit, the H-CPU responds in ET 200SP via digital output modules as follows:  It increases the speed of the fan motors  It switches the traffic light system to red after two minutes  It closes the barriers after two minutes If the pollutant concentration falls below an average limit, the H-CPU responds in ET 200SP via digital output modules as follows:  It switches the ventilation motors to stop  It switches the traffic lights to green  It opens the barriers
Controlling the lighting in the tunnel The H-CPU measures the light intensity outside and inside the tunnel using analog input modules. Depending on the outdoor light, digital output modules adjust the brightness of the entry lights in the tunnel to the optimum vision conditions. The digital output modules also control the interior lights in the tunnel, depending on the day / night time. The user program in the CPU specifies limits and controls the input and output modules of the ET 200SP. The Comfort Panels visualize the S7-1500H redundant system in an HMI screen. If required, the operator can switch to manual operation via the HMI screen and change limit values.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

9

Introduction to the example 1.2 Structure and task of the example
S7-1500H versus S7-1500R
As an alternative to S7-1500H, you can use an S7-1500R redundant system for the solution to the automation task. In this example, the S7-1500H redundant system is used as it offers the following advantages for tunnel automation:  much higher performance than S7-1500R with:
­ separate redundancy connections over fiber-optic cable ­ high computing power ­ a higher number of PROFINET devices can be used  distance between the two H CPUs up to 10 km
Advantages and benefits of the solution
 High availability of the system: If an H-CPU fails or is being maintained, the lighting and fan control continues to function. The tunnel does not need to be blocked.
 Reliable monitoring and control of the tunnel facilities over large distances, up to 10 km between the two H-CPUs
 Monitoring of the system and targeted information of the operating engineers in real time  Signals are recorded and output directly in the ET 200SP distributed I/O systems in the
tunnel. There are no long cable runs.

S7-1500R/H redundant system

10

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.3 Procedure

1.3

Procedure

Tasks

Perform the following tasks for implementation of the example:

Table 1- 1 Procedure for tunnel automation

Step 1
2

Procedure Configure hardware in STEP 7: Configure the assembly with 2 H-CPUs, 3 ET 200SP stations with their I/O modules and 2 Comfort Panels.
Creating a user program in STEP 7:

Further information Section Configuring (Page 19)
Section Programming (Page 34)

· Program the user program in an organization block.

· You create an HMI screen.

3

Installing modules and wiring the assembly:

Redundant System S7-1500R/H

· Install all modules.
· Wire the load current supply, the modules in the PROFINET ring, the redundancy connections and the Comfort Panels.

(https://support.industry.siemens.com/cs/ ww/en/view/109754833) system manual
ET 200SP Distributed I/O System (https://support.industry.siemens.com/cs/

ww/en/view/58649293) system manual

Chapter Wiring diagram for a tunnel section (Page 13)

4

Commissioning the example:

Chapter Commissioning (Page 48)

· Insert the SIMATIC memory cards in the H-CPUs. · Switch on the load current supply and the CPUs.

· Assign redundancy IDs to the CPUs in the configuration on commissioning.

· Load the project data (hardware configuration and user program) to the CPUs.

· Check the LEDs and evaluate the information on the CPU displays.

· Test how the example works.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

11

Introduction to the example 1.4 Requirements

1.4

Requirements

Requirements for the Example
The following hardware and software is available for processing the example:

Table 1- 2 Hardware/software requirements

Hardware/software
2 H-CPUs with synchronization modules and SIMATIC Memory Cards

Modules//Versions
· 2 identical 1517H-3 PN CPUs with identical article numbers, function versions and firmware version
· 4 synchronization modules for cables up to 10 km in length (6ES7960-1FB00-0AA5)

· 2 SIMATIC Memory Cards e.g. with 256 Mbyte capacity (6ES7954-8LL02-0AA0)

3 ET 200SP distributed I/O systems

2 ET 200SP for tunnel sections 1 and 3 each consisting of:
· 1 interface module IM 155-6 PN HF (6ES7155-6AU01-0CN0), FW version V4.2 or later (with system redundancy S2)

· 4 digital output modules:
­ 2 DQ 4x24VDC/2A ST each with a light-colored BaseUnit, BU type A0: BU15P16+A0+2D
­ 1 DQ 4x24VDC/2A ST with a dark-colored BaseUnit, BU type A0: BU15-P16+A0+2B
­ 1 DQ 4x24..230VAC/2A HF with a light-colored BaseUnit, BU type U0: BU20P16+A0+2D

· 1 analog input module: ­ AI 4xU/I 2-wire ST with a dark-colored BaseUnit, BU type A0: BU15-P16+A0+2B
· 1 server module 1 ET 200SP for tunnel section 2 consisting of:

· 1 interface module IM 155-6 PN HF (6ES7155-6AU01-0CN0), FW version V4.2 or later (with system redundancy S2)

· 2 digital output modules:
­ 1 DQ 4x24VDC/2A ST with a light-colored BaseUnit, BU type A0: BU15-P16+A0+2D
­ 1 DQ 4x24..230VAC/2A HF with a light-colored BaseUnit, BU type U0: BU20P16+A0+2D

· 1 analog input module: ­ AI 4xU/I 2-wire ST with a dark-colored BaseUnit, BU type A0: BU15-P16+A0+2B
· 1 server module

2 HMI devices
2 load current supplies for S7-1500R/H
3 load current supplies for ET 200SP
Accessories
PC/PG with EngineeringSystem

TP1900 Comfort PM 190 W 120/230 V AC
Load current supplies with 24 V DC output voltage (with safe electrical isolation)
1 mounting rail, 2 fiber-optic cables, PROFINET cables PG/PC with Ethernet interface and the following correctly installed software package: · SIMATIC STEP 7 Professional, V15.1 or later

Switch for the connection of SCALANCE X-204IRT the PG/PC

S7-1500R/H redundant system

12

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.5 Wiring diagram for a tunnel section

Additional requirement
The PG/PC is connected to a switch via the PROFINET interface. The switch is a device in the PROFINET ring during commissioning.

Installing modules and wiring the assembly
You can set up and wire the hardware before or after configuration and programming of the user program.
You can find additional information on installation and wiring of an ET 200SP in the ET 200SP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/58649293) system manual .
The wiring diagram for an ET 200SP for a tunnel section can be found in the section Wiring diagram for a tunnel section (Page 13).
The procedure for installation and wiring of an S7-1500R/H redundant system is available in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

Conventions

Steps and settings which are specific for configuration and programming of an S7-1500H redundant system will be dealt with in detail in the following sections. Procedures which you are already familiar with from configuring and programming a SIMATIC S7-1500 will only be briefly outlined.

1.5

Wiring diagram for a tunnel section

Introduction

The figures below show the wiring of the I/O modules of an ET 200SP distributed I/O system for tunnel section 1 or 3.
When wiring the tunnel section 2, there is no wiring of the digital output modules for the traffic lights control and barrier control nor of the outdoor light sensor on the analog input module.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

13

Introduction to the example 1.5 Wiring diagram for a tunnel section
Connecting the supply voltage, PROFINET cables and grounding
The following figure shows the wiring of the supply voltage, the PROFINET cables and the grounding on the ET 200SP.



Interface module IM 155-6 PN HF (6ES7155-6AU01-0CN0 firmware version V4.2 and later)



Traffic light control: DQ 4x24VDC/2A ST digital output module with a light-colored BaseUnit BU15-P16+A0+2D (BU

type A0)



Barrier control: DQ 4x24VDC/2A ST digital output module with a dark-colored BaseUnit BU15-P16+A0+2B (BU

type A0)



Measuring the light intensity and air pollution level: 4xU/I 2-wire ST analog input module with a dark-colored Ba-

seUnit BU15-P16+A0+2B (BU type A0)



Fan control system: DQ 4x24VDC/2A ST digital output module with a light-colored BaseUnit BU15-P16+A0+2D

(BU type A0)



Light control system: DQ 4x24..230VAC/2A HF digital output module with a light-colored BaseUnit BU20-

P16+A0+2D (BU type U0)



Server module



Mounting rail grounded at PE



Load current supply with 24 V DC output voltage (with safe electrical isolation)



PROFINET cables for the PROFINET ring

Figure 1-3 Wiring diagram

S7-1500R/H redundant system

14

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.5 Wiring diagram for a tunnel section
Connecting traffic light control
The following figure shows the wiring of the traffic lights on the DQ 4x24VDC/2A ST digital
output module .
Figure 1-4 Wiring of the traffic lights
Connecting barrier control
The following figure shows the wiring of the barrier control on the DQ 4x24VDC/2A ST digital
output module .
The barrier is opened and closed via a three-phase motor. The direction of rotation of the three-phase motor is controlled via a reversing contactor:  Open barrier  Contactor K1 actuated  Close barrier  Contactor K2 actuated If the barriers have reached their respective end position, they automatically switch off via limit switches.

Figure 1-5 Wiring of the barrier control

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

15

Introduction to the example 1.5 Wiring diagram for a tunnel section Connecting sensors for light intensity and air pollution level
The following figure shows the wiring of the sensors for measuring the light intensity and air
pollution level on the AI 4xU/I 2-wire ST analog input module .
Figure 1-6 Wiring of sensors for light intensity and air pollution level

S7-1500R/H redundant system

16

Getting Started, 10/2018, A5E44910930-AA

Introduction to the example 1.5 Wiring diagram for a tunnel section
Connect light control function
The following figure shows the wiring of the fan control on the DQ 4x24VDC/2A ST digital
output module .
The direction of rotation of the fan (right/left) is controlled via a reversing contactor:  Fan rotates clockwise  Contactor K1 actuated  Fan rotates counterclockwise  Contactor K2 actuated The speed (high/low) of the fan is controlled via a Dahlander circuit:  Fan low speed  Contactor K5 actuated  Fan high speed  Contactors K3 and K4 actuated

Figure 1-7 Wiring of fan control

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

17

Introduction to the example 1.5 Wiring diagram for a tunnel section Connect light control function
The following figure shows the wiring of the light control on the DQ 4x24..230VAC/2A HF
digital output module .
The lamps are dimmed via the Phase angle control - Phase angle proportional function of the digital output mode:  L1  Entry light  L2  Interior light
Figure 1-8 Wiring of the traffic lights

S7-1500R/H redundant system

18

Getting Started, 10/2018, A5E44910930-AA

Configuration

2

2.1

Configuring the assembly

Introduction

Create a new project and add the CPU 1517H-3 PN and the 3 ET 200SP distributed I/O systems. Network the assembly to a PROFINET ring.
Add 2 HMI devices TP1900 Comfort to the assembly.
You do not configure the PM 190 W 120/230 V AC load current supplies.

Requirement

You have set the IP address of the PG/PC, 192.168.0.50 in the example.

Creating a project and assigning hardware
1. Create a new project in STEP 7. Give the project the name "S7-1500H_GS".

Figure 2-1 Creating a new project
2. Select "Configure a device" and then "Configure networks". The network view opens.
3. Select CPU 1517H-3 PN from the hardware catalog in the network view.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

19

Configuration 2.1 Configuring the assembly
4. Drag and drop the CPU to the task window in the network view. Results: ­ STEP 7 automatically creates both 1517H-3 PN CPUs for the redundant system. ­ STEP 7 automatically assigns the MRP role "Manager (auto)" to the PROFINET interfaces X1 of both CPUs. ­ STEP 7 displays both CPUs in the network view graphically.

Figure 2-2 CPUs in the network view
5. Select an ET 200SP interface module IM 155-6 PN HF (article number 6ES7155-6AU010CN0) from the hardware catalog.
6. Drag and drop the interface module to the task window in the network view.
7. Drag and drop 2 further IM 155-6 PN HF interface modules to the task window in the network view.
8. Select a SIMATIC Comfort Panel TP1900 Comfort from the hardware catalog as an HMI device. Recommendation: Configure the HMI devices with the HMI Device Wizard (Page 30).
9. Drag and drop the TP1900 Comfort to the task window in the network view.
10.Drag and drop a further TP1900 Comfort to the task window in the network view.
Results: The project has been created. The hardware components have been inserted. IP addresses for the PROFINET interfaces of the devices have been automatically assigned.

S7-1500R/H redundant system

20

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.1 Configuring the assembly
Assign ET 200SP with system redundancy S2
To assign the ET 200SP distributed I/O systems to S7-1500H on a system-redundant basis, connect every IM 155-6 PN HF interface module to every CPU. To do so, proceed as follows: 1. Drag-and-drop a line between the PROFINET interface of IM 155-6 PN HF and
PROFINET interface X1 of the left-hand CPU. 2. Drag-and-drop a line between the PROFINET interface of IM 155-6 PN HF and
PROFINET interface X1 of the right-hand CPU. 3. Assign the two other IM 155-6 PN HF devices to the two CPUs in exactly the same way. Result: The distributed I/O system ET 200SP are connected to S7-1500H on a systemredundant basis.

Figure 2-3 ET 200SP assigned to S7-1500H on a system-redundant basis

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

21

Configuration 2.2 Configuring H CPUs

2.2

Configuring H CPUs

Introduction

You create two redundancy connections between the H-CPUs via fiber-optic cables using a total of four synchronization modules (two in each H-CPU). You replace the synchronization modules (for cables up to 10 km in length) in STEP 7.
STEP 7 automatically assigns an IP address to each PROFINET interface of a CPU. You can also assign the IP addresses manually. For PROFINET interface X1 of the CPUs, the IP addresses must be located in the same subnet. In the example you accept the preset IP addresses.
STEP 7 assigns default values for the minimum and maximum cycle times. Select the minimum scan cycle time so that the cyclic program does not have to be executed more frequently than your process requires.

S7-1500R/H redundant system

22

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.2 Configuring H CPUs
Assigning synchronization modules to the H-CPUs
In STEP 7 synchronization modules for 10 m length are assigned to the H-CPUs (default setting). For the tunnel application, assign synchronization modules for cables up to 10 km in length (6ES7960-1FB00-0AA5) to the H-CPUs as follows: 1. Change to the device view of an H-CPU. 2. From the hardware catalog, drag and drop the synchronization module with the article
number 6ES7960-1FB00-0AA5 to the interface for a synchronization module of the HCPU. 3. The "Replace device- Synchronization module" dialog opens. Confirm the replacement with "OK".

Figure 2-4 Assigning a synchronization module to the H-CPU
Result: The four synchronization modules for cables up to 10 km in length have been assigned to the H-CPUs of the redundant system.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

23

Configuration 2.2 Configuring H CPUs Setting the cycle monitoring time
The default values are displayed in the "Cycle" area of the CPU properties. 1. Set a maximum cycle time of 6000 ms and a minimum cycle time of 10 ms for the
example. 2. Adopt the presets for the other parameters.
Figure 2-5 Setting the cycle monitoring time Result: When you change the parameters described above for a CPU, the parameters are automatically adopted in STEP 7 for the other CPU of the redundant system.

S7-1500R/H redundant system

24

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.3 Configuring ET 200SP

2.3

Configuring ET 200SP

Introduction

In the S7-1500H redundant system the devices communicate in a PROFINET ring via MRP.
Define the media redundancy role of the devices.
Assign the I/O modules for the various automation tasks in the three tunnel sections to the three ET 200SP distributed I/O systems.
Set the watchdog time for each ET 200SP. If you set a higher watchdog time, then a failure of the IO device on interruption of the PROFINET ring can be avoided.

Defining MRP role for ET 200SP in the PROFINET ring
Proceed as follows to define the media redundancy role for the ET 200SP distributed I/O systems as devices in the ring:
1. In the network view of STEP 7, select PROFINET interface X1 of one of the two CPUs.
2. In the Inspector window, navigate to "Properties" > "General" > "Advanced options" > "Media redundancy".

Figure 2-6 Media redundancy domain settings 3. Click the "Domain settings" button.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

25

Configuration 2.3 Configuring ET 200SP
4. In the Inspector window, STEP 7 displays the properties of the MRP domain in which PROFINET interface X1 of the CPU is located. The CPU has the role "Manager (auto)" in a redundant system.
5. In the "MRP role" column of the "Devices" table, assign the MRP role "Client" to all other devices.
Figure 2-7 Assigning MRP roles to the ET 200SP

S7-1500R/H redundant system

26

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.3 Configuring ET 200SP
Assign I/O modules to the ET 200SP and set parameters
1. Change to the device view of an IM 155-6 PN HF. 2. In the properties of the interface module in the "General" area, assign "Section1" as the
name for tunnel section 1. 3. Select the following modules in succession from the hardware catalog. Assign the
modules to the interface module from slot 1 to 6: ­ DQ 4x24VDC/2A ST (for traffic lights) ­ DQ 4x24VDC/2A ST (for barrier) ­ AI 4xU/I 2-wire ST (for outdoor light, indoor light and air-quality sensors) ­ DQ 4x24VDC/2A ST (for fans) ­ DQ 4x24..230VAC/2A HF (for tunnel lighting) ­ 1 server module (as termination of the configuration)

Figure 2-8 Assigning ET 200SP I/O modules
4. Double-click on the 3rd module DQ 4x24VDC/2A ST in the configuration (for fan). 5. In the module properties "General" > "Potential group", select "Enable new potential
group (light-colored BaseUnit)". 6. Double-click on the module DQ 4x24..230VAC/2A HF (for tunnel lighting). 7. In the module properties "General" > "Potential group", select "Enable new potential
group (light-colored BaseUnit)". 8. Double-click on the module AI 4xU/I 2-wire ST.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

27

Configuration 2.3 Configuring ET 200SP
9. In the module properties, set the measurement type "Voltage" and measuring range "0..10 V" under "Inputs" for channels 0 to 2 in each case.
Figure 2-9 Setting the measurement type and measuring ranges 10.Set the measurement type to "Disabled" for channel 3. 11.For the module DQ 4x24..230VAC/2A HF retain the defaults, in particular the "Phase angle control - phase angle proportional" mode. 12.Proceed in exactly the same way according to steps 1 to 11 for tunnel section 3. For tunnel section 2, the two digital output modules DQ 4x24VDC/2A ST for barrier and traffic lights control are not required. Result: The ET 200SP I/O modules are fully configured for the tunnel application.

S7-1500R/H redundant system

28

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.3 Configuring ET 200SP
Setting the watchdog time
Do not enter the watchdog time directly, but as "Accepted number of update cycles when IO data is missing". The resulting watchdog time is automatically calculated from the "Accepted number of update cycles when IO data is missing". 1. Select an interface module IM 155-6 PN HF. 2. Navigate to "Properties" > "Advanced options" > "Real time settings" > "IO cycle" >
"Watchdog monitoring". 3. Set the update cycles for the example to 112 (224 ms).

Figure 2-10 Setting the watchdog time
4. Follow steps 1. to 3. for the other two interface modules IM 155-6 PNHF (tunnel sections 2 and 3).

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

29

Configuration 2.4 Configuring HMI devices

2.4

Configuring HMI devices

Introduction

Assign names for the two HMI devices. Connect the HMI devices to the redundant system as follows:  Network the HMI devices with an H-CPU in each case.  Configure two HMI connections.  Assign the system IP address of a PROFINET interface of the H-CPU or  Use the device IP address of the respective PROFINET interface of the two H-CPUs
HMI device wizard Recommendation: Configure the HMI devices with the HMI Device Wizard. The HMI device wizard will guide you through each dialog step by step and help you set up an HMI device. The HMI device wizard will automatically start when you create a new HMI device in your project via the project navigation.
Connection via a device IP address: When connecting via the device IP address, the HMI device always communicates with the connected CPU. Communication is independent of the system state. The connected CPU then synchronizes the data with the other CPU. Requirements: Each HMI device is connected to a CPU via a separate subnet. In the example, the TP1900 Comforts communicate in each case via the devices IP address of the PROFINET interface with the directly connected CPU.

Assigning names for HMI devices
1. Select the left-hand TP1900 Comfort in the network view. 2. Change to the device view. 3. In the properties in the "General" area, assign the name "HMI left". 4. Assign the name "HMI right" for the TP1900 Comfort of the CPU on the right.

S7-1500R/H redundant system

30

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.4 Configuring HMI devices
Setting up HMI connections
Connect the HMI devices to the CPUs via separate PROFINET subnets. 1. Using drag-and-drop, draw a line between the PROFINET interface X1 of the "HMI left"
and the PROFINET interface X2 of the left-hand CPU. 2. Using drag-and-drop, draw a line between the PROFINET interface X1 of the "HMI right"
and the PROFINET interface X2 of the right-hand CPU. Result: The HMI devices are networked with the CPUs.

Figure 2-11 HMI devices networked with CPUs
3. In the network view, click on "Connections". This activates connection mode. 4. Using drag-and-drop, draw a line between the networked PROFINET interfaces of "HMI
left" and the left-hand CPU. The "Connection partners" list opens.

Figure 2-12 Assign HMI connection_1 connection partner

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

31

Configuration 2.4 Configuring HMI devices
5. In the "Connection partner" list, select the CPU "PLC_1". 6. Using drag-and-drop, draw a line between the networked PROFINET interfaces of "HMI
right" and the right-hand CPU. The "Connection partners" list opens. 7. In the "Connection partner" list, select the CPU "PLC_2". Result: You have set up the HMI connections from the HMI devices TP1900 Comfort to the CPUs.
Figure 2-13 HMI connections set up

S7-1500R/H redundant system

32

Getting Started, 10/2018, A5E44910930-AA

Configuration 2.4 Configuring HMI devices
Setting devices IP addresses for the HMI connections
Change the IP addresses of the PROFINET interfaces of the HMI devices and the CPUs for the PROFINET subnets 2 and 3 (PN/IE_2/3). 1. Select the respective PROFINET interface of the device in the network view. 2. Change the IP address into a valid one in the subnet in the properties in the "Ethernet
addresses" area.

Figure 2-14 IP address for HMI connection to "HMI left" changed The table below shows all the IP addresses used for the example:

Table 2- 1 IP addresses used in the example

PROFINET interface PG/PC X1 at CPU left X1 at CPU right at ET 200SP "section 1" at ET 200SP "section 2" at ET 200SP "section 3" X2 at CPU left X1 at HMI left X2 at CPU right X1 at HMI right

Subnet PN/IE1 PN/IE1 PN/IE1 PN/IE1 PN/IE1 PN/IE1 PN/IE_2 PN/IE_2 PN/IE_3 PN/IE_3

IP address 192.168.0.50 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.2.1 192.168.2.2 192.168.3.1 192.168.3.2

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

33

Programming

3

Introduction

The example consists of three parts:
 The air quality measurement and fan control in the tunnel
 The traffic light and barrier control
 The lighting control in the tunnel
The following section explains, based on flow diagrams, how the user program works.
Using an HMI screen, you can switch the fans and the lighting in the tunnel from automatic to manual mode and, if necessary, change limit values.
The user program runs on a CPU 1517H-3 PN with SIMATIC STEP 7 Professional, Version V15.1.
The executable user program for the example can be found in the annex to the entry on the Internet (https://support.industry.siemens.com/cs/us/en/view/109757712).

S7-1500R/H redundant system

34

Getting Started, 10/2018, A5E44910930-AA

Programming

States in the tunnel
The user program implements 3 states in the tunnel:
Everything is OK: The air quality sensors measure values within the permissible range:  The traffic lights are green.  The barriers are open.  The motors for ventilation are in Stop mode, only the flow of air moves the fans.
The air quality sensors measure an increased concentration of pollutants between mean and maximum value:  The fans immediately run at low level (slow) for at least 30 seconds. The direction of
rotation of the fans depends on the extent of the load in the tunnel section and the distance to the exit.  The traffic lights are still green.  The barriers are still open.
The air quality sensors measure a pollutant concentration above the maximum value:  The fans run immediately at the highest level (fast) for at least 30 seconds. The direction
of rotation of the fans depends on the affected tunnel section and the distance to the exit.  If the fans did not provide sufficient air within 2 minutes, the tunnel will be blocked:
­ The traffic lights are first yellow, then red. ­ The barriers close.

Default tag table
The standard tag table contains the PLC tags for the 3 parts of the user program.

Name

Data type Address Description

Air quality measurement and fan control in tunnel section 1

sectionOneAirVisibility

Int

IW3

Input word for turbidity sensor in section 1

sectionOneAirPollution

Int

IW5

Input word for air quality sensor in section 1

sectionOneVentBlowRight Bool

Q2.0

Output bit for clockwise rotation fan in section 1

sectionOneVentDrawLeft

Bool

Q2.1

Output bit for anticlockwise rotation fan in section 1

sectionOneVentSlow

Bool

Q2.2

Output bit for low speed fan in section 1

sectionOneVentFast

Bool

Q2.3

Output bit for high speed fan in section 1

Traffic light and cabinet control in tunnel section 1

section1TrafficLightRed

Bool

Q0.0

Output bit for red traffic light in section 1

section1TrafficLightYellow Bool

Q0.1

Output bit for yellow traffic light in section 1

sectionOneTrafficLightGreen Bool

Q0.2

Output bit for green traffic light in section 1

sectionOneBarrierUp

Bool

Q1.0

Output bit for barrier in section 1

sectionOneBarrierDown

Bool

Q1.1

Output bit for barrier in section 1

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

35

Programming

Name

Data type Address Description

Lighting control in tunnel section 1

sectionOneLuminance

Int

IW1

Input word for outdoor light sensor in section 1

sectionOneLightEntry

Word

QW21

Output word for brightness of the entry light in section 1

sectionOneLightPassage

Word

QW23

Output word for brightness of the interior luminance in section 1

Air quality measurement and fan control in tunnel section 2

sectionTwoAirVisibility

Int

IW21

Input word for turbidity sensor in section 2

sectionTwoAirPollution

Int

IW23

Input word for outdoor light sensor in section 2

sectionTwoVentBlowRight Bool

Q6.0

Output bit for clockwise rotation fan in section 2

sectionTwoVentDrawLeft

Bool

Q6.1

Output bit for anticlockwise rotation fan in section 2

sectionTwoVentSlow

Bool

Q6.2

Output bit for low speed fan in section 2

sectionTwoVentFast

Bool

Q6.3

Output bit for high speed fan in section 2

Lighting control in tunnel section 2

sectionTwoRightLightPassage

Word

QW13

Output word for brightness of the right interior luminance in section 2

sectionTwoLeftLightPassage Word

QW15

Output word for brightness of the left interior luminance in section 2

Air quality measurement and fan control in tunnel section 3

sectionThreeAirVisibility

Int

IW11

Input word for turbidity sensor in section 3

sectionThreeAirPollution

Int

IW13

Input word for air quality sensor in section 3

sectionThreeVentBlowRight Bool

Q10.0

Output bit for clockwise rotation fan in section 3

sectionThreeVentDrawLeft Bool

Q10.1

Output bit for anticlockwise rotation fan in section 3

sectionThreeVentSlow

Bool

Q10.2

Output bit for low speed fan in section 3

sectionThreeVentFast

Bool

Q10.3

Output bit for high speed fan in section 3

Traffic light and cabinet control in tunnel section 3

sectionThreeTrafficLightRed Bool

Q4.0

Output bit for red traffic light in section 3

sectionThreeTrafficLightYel- Bool low

Q4.1

Output bit for yellow traffic light in section 3

sectionThreeTrafficLightGreen

Bool

Q4.2

Output bit for green traffic light in section 3

sectionThreeBarrierUp

Bool

Q8.0

Output bit for barrier in section 3

sectionThreeBarrierDown

Bool

Q8.1

Output bit for barrier in section 3

Lighting control in tunnel section 3

sectionThreeLuminance

Int

IW9

Input word for outdoor light sensor in section 3

sectionThreeLightPassage Word

QW29

Output word for brightness of the interior luminance in section 3

sectionThreeLightEntry

Word

QW31

Output word for brightness of the entry light in section 3

S7-1500R/H redundant system

36

Getting Started, 10/2018, A5E44910930-AA

Programming
Flow diagram of the user program OB30
The OB30 contains the user program of the tunnel application with three function blocks for:  The fan control in the tunnel (FB10)  The traffic light and barrier control (FB20)  The lighting control in the tunnel (FB30)  DB1 contains the HMI tags for the HMI screen.

Figure 3-1 Flow diagram for user program in OB30
Flow diagram for fan control in FB10
Turbidity measurement and air quality measurement: FB10 calls FB11. FB11 reports:  The status of the air pollution level  A pollutant concentration above the maximum value, which lasts longer than 2 minutes, to
block the tunnel

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

37

Programming
Ventilation in tunnel sections 1, 2 and 3: FB12 switches the speed and direction of rotation of the fans according to the status of the air pollution level (FB13) in the tunnel sections.

Figure 3-2 Flow diagram for fan control in FB10 38

S7-1500R/H redundant system Getting Started, 10/2018, A5E44910930-AA

Programming Flow diagram for traffic light and cabinet control FB20
FB20 calls FB21. Depending on the status of the air pollution level (FB13) in the tunnel sections, both traffic lights are set to green, yellow or red and the barriers are opened or closed.
Figure 3-3 Flow diagram for traffic light and cabinet control FB20

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

39

Programming
Flow diagram for lighting control in FB30
Control of the entry and interior lights in the tunnel sections. FB30 calls FB31. The user program controls the turn-on light according to the status of the outdoor light sensor. The user program controls the interior lights according to the respective time of day or enables manual mode:  Daylight: 8:00 am to 6:00 pm  Night light: 8:00 pm to 6:00 am  Twilight light: 6:00 am to 8:00 am and 6:00 pm to 8:00 pm
Figure 3-4 Flow diagram for lighting control in FB30

S7-1500R/H redundant system

40

Getting Started, 10/2018, A5E44910930-AA

Programming
Display the status of the tunnel on the panel
An HMI screen is used to display the status of the tunnel on both Comfort Panels and to set parameters. The white fields are used to show the current measured values of the sensors. By double-clicking on the "Air parameters" and "Lighting parameters" buttons, you can display and change the parameter settings. By double-clicking on the symbols for lamp and motor, you access the automatic / manual operating mode. By double-clicking on a box for the sensors, you access the automatic / manual operating mode for specifying sensor values.

Figure 3-5 HMI overview screen of tunnel

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

41

Programming
Adjustable limits and parameters in the HMI screen
You can use the HMI screen to change the following limit values during user program runtime:  The limit values for air pollution (carbon monoxide and turbidity) in the tunnel sections  The light intensity limit value for the outdoor light sensors at the tunnel
You can use the HMI screen to change the following limit values in manual operation:  Switch the fans in the tunnel sections to stop / slow / fast  Change the clockwise / anticlockwise direction of rotation of the fans in the tunnel
sections  Change the light intensity for the dimmer control of the lighting in the tunnel  The lamps in the tunnel individually control day, twilight or night mode with different light
intensities  For test purposes, set the values for the outdoor light, air quality and turbidity sensors

S7-1500R/H redundant system

42

Getting Started, 10/2018, A5E44910930-AA

Programming
Limit values for air pollution
The "Air parameters" button is used to display the air pollution limit values (carbon monoxide and turbidity) in the tunnel sections.
If a maximum value is exceeded after 2 minutes:  The traffic lights are red  The barriers close  The fan sucks in / blows out air in the tunnel section at high speed, in the example in the
left direction (tunnel exit) In the example in the screen, the air quality sensor measures the value 28 in tunnel section 1, the maximum limit value is 25. In the example in the screen, the turbidity sensor measures the value 2. The value is below the mean, therefore the view is in the normal range.
As soon as a mean value is exceeded:  The traffic lights are green  The barriers remain open  The fan sucks in / blows out air in the tunnel section at low speed You can change the mean and maximum value limits for each tunnel section.

Figure 3-6 HMI screen for air pollution limit value

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

43

Programming
The light intensity limit value for the exterior light sensors and light intensity
Using the "Lighting parameters" button you display the following:  The limit value for outdoor light sensors  The limit values for day / twilight / night light  The light intensity in the tunnel according to the time of day The outdoor light sensors on the tunnel control the respective entrance light in the tunnel. The interior lights are controlled by the time of day. In the example, the outdoor light sensor measures 1, the night light setting (subdued light) is thus effective for the entry into the tunnel. You can change the limit values for the tunnel.

Figure 3-7 HMI screen for light limit value

S7-1500R/H redundant system

44

Getting Started, 10/2018, A5E44910930-AA

Programming Change manual mode speed and direction of rotation of the fans
By double-clicking on a symbol for a motor, you access the automatic / manual operating mode for the fan in the corresponding tunnel section. In the example, the following was set for tunnel section 2:  Manual operation for the fan  Low speed (slow)  Clockwise The fan blows at slow speed in clockwise direction.
Figure 3-8 HMI screen manual mode fan speed and direction of rotation

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

45

Programming
Controlling manual operation of the lamps individually
For maintenance tasks, it may be advisable to manually set the brightness in the tunnel. By double-clicking on a symbol for a lamp, you access the automatic / manual operating mode for the lighting in the corresponding tunnel section. In the example, for the left interior light was set in tunnel section 2:  Manual mode  Night light The lamp emits subdued light.

Figure 3-9 Controlling the HMI screen lamps individually

S7-1500R/H redundant system

46

Getting Started, 10/2018, A5E44910930-AA

Programming
Specifying manual operation sensor values
By specifying the sensor values, you can test the function of the tunnel application. By double-clicking on a box for the sensors, you access the automatic / manual operating mode. In the example, the following was set for tunnel section 1:  Manual operation for setting the CO limit value (air quality sensor)  CO limit value of 28  Manual operation for specifying the limit value for the vision (turbidity sensor)  Value for the vision of 2

Figure 3-10 Specifying HMI screen sensor values

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

47

Commissioning

4

Introduction

You have configured and programmed the tunnel application. The following sections describe how to commission the tunnel application.
Further information on commissioning is available in the system manual of Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

Inserting SIMATIC memory cards
Requirement:
The CPUs only support pre-formatted SIMATIC memory cards. If required, format the SIMATIC memory cards before using them in the CPU.
Procedure: Insert a SIMATIC memory card into the left-hand CPU as follows.
1. Open the front cover of the CPU.
2. Ensure that the CPU is either switched off or in STOP mode.
3. Insert the SIMATIC memory card, as shown on the CPU, into the slot for the SIMATIC memory card.
4. Carefully insert the SIMATIC memory card into the CPU, pushing gently, until the card clicks into place.
5. Insert the other SIMATIC memory card into the right-hand CPU as described in steps 1 to 4.

Switching on load current supply and CPUs
Requirements:
The SIMATIC S7-1500R/H redundant system has been installed. The system has been wired. The SIMATIC memory cards are in the CPUs. The load current supply is connected to the power supply.
Procedure:
Turn on the load current supply.
Result:
 The CPUs run a flash test and on completion of system initialization goes to STOP. The RUN/STOP LEDs on both CPUs are yellow.
 The two CPUs implement pairing. The ERROR LEDs are flashing red. In STEP 7 in the diagnostic status (Online & diagnostics) of the S7-1500R/H system, check successful paring. "Paired" is shown in the "Pairing state" field.

S7-1500R/H redundant system

48

Getting Started, 10/2018, A5E44910930-AA

Commissioning
Assigning redundancy IDs to CPUs in the configuration
Redundant operation is only possible if the two CPUs have different redundancy IDs. The redundancy IDs can have values of 1 and 2. Both CPUs have redundancy ID 1 in the configuration as the default: The redundancy ID is used to assign a project tree to the real CPU in STEP 7. The upper CPU of the two in the tree always has a redundancy ID of 1. The lower CPU of the two always has the redundancy ID 2.
Requirements: Both CPUs are in STOP. There is pairing between the two CPUs.
Procedure: 1. On the CPU display of the right CPU, select the menu item "Overview> Redundancy". 2. Assign the CPU redundancy ID 2. Result: The right-hand CPU in the configuration is assigned redundancy ID 2.
Downloading project data to the primary CPU
In the example, download the project data from the PG/PC to the primary CPU via an online connection. The project data (all configuration data and the complete user program) can only be downloaded when a CPU is in STOP operating state.
Procedure: 1. Right-click to select the S7-1500R/H system in the project tree. 2. Select the "Download to device" > "Hardware and software (changes only)" command
from the shortcut menu. Result: The "Extended download" dialog window opens. 3. Select the PG/PC interface. 4. Select the interface to which the PG/PC is connected. 5. Click on the "Start search" button. Result: The "Choose target device" table shows the CPUs in the S7-1500H system. The primary CPU is already selected. 6. Click "Load". Result: The "Load preview" dialog window sets out the key information on the load process to be run: 7. If the S7-1500R/H system is not in STOP, stop the system. To do so, select "Stop RH system" in the "Action" column of the drop-down menu. 8. Click the "Download" button to start the download. The "Results of loading" dialog window displays the results of the loading process.

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

49

Commissioning

Starting CPUs after downloading
Requirement: The CPU mode selector is in the RUN position.
Procedure: 1. To start the primary CPU after loading is complete, select "Start module" in the "Action"
column. 2. To complete loading, click "Finish".
Result: The primary CPU switches to the RUN operating state. 3. Switch the backup CPU to the RUN operating state.
Result: After successful synchronization between the primary and backup CPU, the S71500R/H system switches to redundant mode (system state RUN=Redundant).

Evaluating LEDs and displays at the CPUs
If the CPUs are in the "target" system state RUN-Redundant and there are no events, requirements and errors, then the two CPUs show the following LED screens:
 the RUN/STOP LED lights up green
 the ERROR-LED is off
 the MAINT LED is off
The status information of the CPU is displayed on the display. In the system state RUNRedundant, "RUN-Redundant" is displayed in a green bar on the two CPU displays.

Result

You have fully created and downloaded the configuration and the user program in accordance with the task of the example.

S7-1500R/H redundant system

50

Getting Started, 10/2018, A5E44910930-AA

Additional information

5

Further information
Below is a collection of links:
 for additional information on the systems and components which were used in the Getting Started
 to tunnel automation

Table 5- 1 Collection of links

Topics

Further information

Components, failure scenarios, setup, installation, wiring and commissioning of S7-1500R/H

Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833 ) system manual

Components, setup, installation, wiring and commissioning of ET 200SP

System manual ET 200SP Distributed I/O System (https://support.industry.siemens.com/cs/ww/en/view/58649293)

PM 190 W 120/230 V AC load current supply

PM 190 W 120/230 V AC load current supply (https://support.industry.siemens.com/cs/ww/en/view/68022506) manual

HMI devices TP1900 Comfort

SIMATIC HMI Comfort Panels (https://support.industry.siemens.com/cs/de/en/view/49313233) operating instructions

SIMATIC STEP 7 Professional: Configuration, programming, HMI visualization, diagnostics

In the STEP 7 online help

PROFINET at S7-1500R/H, system redundancy S2, media redundancy (MRP)

PROFINET (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual

HMI communication to S7-1500R/H, System IP address Communication (https://support.industry.siemens.com/cs/ww/en/view/59192925) function manual

Diagnostics of S7-1500R/H on the CPU display and in Function manual Diagnostics

STEP 7

(https://support.industry.siemens.com/cs/ww/en/view/59192926)

Siemens tunnel automation

on the Internet (https://w3.siemens.com/topics/global/en/tunnelautomatisierung/ Seiten/Default.aspx)

S7-1500R/H redundant system

Getting Started, 10/2018, A5E44910930-AA

51

SIMATIC S7-1500R/H Product information for the S7-1500 R/H redundant system
Product Information
Introduction
Scope of validity of the product information This product information supplements the documentation for S7-1500R/H and takes precedence over our system manuals, function manuals and equipment manuals.
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept. Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place. For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity). Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

© Siemens AG 2018 - 2019. All rights reserved

A5E45725577-AC, 11/2019

1

Amendments to SIMATIC S7-1500R/H documentation
Software restrictions S7-1500R/H Redundant System Manual, 11/2019 Edition, Section 4.3 Restrictions compared to the S7-1500 automation system, Table 4-4 Software restrictions: Calibrating analog modules You can only calibrate analog modules of an IO device in the RUN-Solo system state. 1. Switch the CPU with redundancy ID 1 to the STOP operating state. 2. Establish an online connection with STEP 7 to the analogue module to be calibrated. 3. Perform the calibration of the analog module with STEP 7. You can find more information on this topic in the STEP 7
online help. 4. Then start the CPU with redundancy ID 1. STEP 7 The command "Online" > "Upload device as new station (hardware and software)..." is currently not permitted for the R/H CPUs.
Get_IM_Data: Loss of redundancy when reading out the I&M data from the S7-1500 R/H CPU displays. S7-1500R/H Redundant System Manual, 11/2019 Edition, Section 8.1 Programming the S7-1500R/H If you read out the I&M data from the displays of the CPUs, then the "Get_IM_Data" instruction might, under certain circumstances, return different data to both CPUs of the S7-1500R/H redundant system. Further processing of this data in the user program could possibly result in loss of redundancy. Do not use the HW identifiers of the displays (65154, 65354) for the LADDR parameter of the "Get_IM_Data" instruction.
Display of the source address in multicast packages "Communication" Function Manual, 11/2019 Edition If an S7-1500 R/H CPU sends UDP multicast messages via the system IP address, the device IP address of the CPU is entered as source address in the multicast packages instead of the system IP address. Consider this behavior for filters and firewalls. In case of a reply to the multicast sender, use the system IP address.
H-Sync forwarding CPU manuals, 11/2019 Edition
Note Support of H-Sync forwarding The technical specifications typically state whether a PROFINET device supports H-Sync forwarding. The GSD file will also indicate whether the device supports H-Sync forwarding. The device supports H-Sync forwarding when the "AdditionalForwardingRulesSupported" attribute in the "MediaRedundancy" element is set to "true".
MAINT-LED during PROFIenergy pause CPU manuals, 11/2019 Edition Unlike as described in the manuals, the MAINT-LED does not light up during PROFIenergy pause.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY
Product information for the S7-1500 R/H redundant system
2A5E45725577-AC, 11/2019

Product information for the S7-1500 R/H redundant system A5E45725577-AC, 11/2019

Edition 11/2019

Reference manual
SIMATIC
S7-300/S7-400/S7-1200/S7-1500
Comparison list for programming languages
support.industry.siemens.com

Comparison list for S7-300, S7-400, S7-1200, S7-1500 Reference Manual

Legal information
Warning notice system This manual includes notices you have to observe to ensure your personal safety and to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a hazard alert symbol; notices referring only to property damage have no hazard alert symbol. Depending on the degree of danger, warnings are displayed in a descending order as follows.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury may result if proper precautions are not taken.
NOTICE indicates that damage to property may result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a hazard alert symbol may also include a warning relating to property damage.

A5E33285102-AG

Page 1

Qualified personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems. Proper usage of SIMATIC products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and the associated technical documentation. If third-party products and components are used, these have to 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. The permitted ambient conditions must be adhered to. Notes in the respective documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. Any other names appearing in this document may be trademarks, the use of which by third parties for their own purposes may breach owners' rights. Disclaimer
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. However, since deviations cannot be ruled out entirely, we cannot guarantee full consistency. The information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
Siemens AG Digital Industries Postfach 48 48 90026 NUREMBERG

Contents of the comparison list for S7 300, S7 400, S7 1200, S7 1500 (11/2019)  Measuring program runtimes ­see below  Load objects to the CPU: Which modifications and which modified blocks you load to the CPU in which operating mode
­ next page.  Overview, requirements, general conditions and legend for the comparison list (Page 6)  Comparison list for S7-300, S7-400 (without H systems), S7-1200, S7-1500 including Software Controller CPU 150xS:
Which instructions and functions you can use for which controller family ­ as of Page 8 .  Instructions for SIMATIC Ident and SIMATIC Energy Suite ­ Appendix.
Measuring program runtimes
The runtime of parts of the user program depends on many factors. A listing of runtimes of individual instructions in a table is thus not possible. The RUNTIME (runtime measurement) instruction is used to measure the runtime of the entire program, individual blocks or command sequences. The runtime measurement begins with the first call of the RUNTIME instruction and ends with the second call. Use an OB priority >15 for runtime measurement. This ensures that "online monitoring" does not falsify the runtime. You can find more detailed information in the SIMATIC STEP 7 online help. Enter "RUNTIME" in the search and select "S71200", "S7-1500" or "S7-1500T" as validity identifier.
Programming examples in SCL: #tempLastCycle := RUNTIME(#statRuntimeMemory); // Start of runtime measurement // instance call where the time measurement takes place: "instSpeedTest"(enable:="true",...); #tempLastCycle := RUNTIME(#statRuntimeMemory); // End of runtime measurement
The #tempLastCycle tag contains the time that has passed from the preceding call to the current call of RUNTIME.

A5E33285102-AG

Page 3

Load objects to the CPU
The table shows which modifications and which modified blocks you can download in which operating mode. Very complex programs can prevent downloading in RUN mode.

Solution approaches:  Use a memory card with sufficient capacity.  Select a CPU with sufficient work memory.  Reduce the number of modified used blocks, constants, PLC tags or data types.

You can find information about the behavior of the F-CPU for fail-safe blocks in the "SIMATIC Safety ­ Configuring and Programming manual".

Modifications and blocks
Modified properties of hardware components
Added hardware components
New/revised text lists (messages) Load number of blocks Reset work memory (MRES) New OB Modified OB: Code modifications, modification of comments OB with modified properties (e.g., cycle time change)

S7-300
STOP
STOP RUN RUN (<17) STOP (Reset) RUN

S7-400
STOP, with restrictions in
RUN STOP, with restrictions in
RUN RUN
RUN (<57)
STOP (Reset)
RUN

S7-1200 V2.2 - V3.0
STOP

S7-1200 V4.0 and
higher
STOP

S7-1500 STOP

STOP

STOP

STOP

--

--

RUN

RUN (<11) RUN (<21)

RUN

STOP (Reset) STOP (Reset) STOP (Reset)

STOP

STOP

RUN

RUN

RUN

RUN

RUN

RUN

STOP

RUN

STOP

STOP

RUN

Deleted OB

Modifications and blocks

S7-300 RUN

S7-400 RUN

S7-1200 V2.2 - V3.0
STOP

S7-1200 V4.0 and
higher
STOP

New FB/FC/DB/PLC data type (UDT)

RUN

RUN

RUN

RUN

Deleted FB/FC/DB/PLC data type (UDT)

RUN

RUN

RUN

RUN

Revised FB/FC: Code modification, modification of comments Revised FB/FC: Change to interface Modified DB (no memory reserve configured): Name/type of tags modified, tags added or deleted Modified DB (memory reserve configured): New tags added

RUN STOP RUN (Init)
--

RUN STOP RUN (Init)
--

RUN STOP STOP
--

RUN RUN (Init) RUN (Init)
RUN

Modified PLC data type (UDT)

STOP

STOP

STOP

RUN (Init)

Modified PLC tags (added, deleted, name or data type changed) Modified retentivity settings (bit memory address area, DB area) Motion Control technology objects: Changes to MC Servo cycle clock, change from free-running to cyclical (and vice versa). Changes to the hardware interface of the TO

RUN STOP
--

RUN All objects retentive
--

STOP STOP
--

RUN STOP
--

(init) means that the CPU overwrites the actual values of the DBs with start values during downloading.

S7-1500 RUN RUN RUN RUN
RUN (Init)
RUN (Init)
RUN RUN (Init)
RUN STOP
STOP

A5E33285102-AG

Page 5

Validity and general conditions
 SIMATIC STEP 7 version 16 or higher  The contents of the S7-1500 column also apply to SIMATIC S7-1500 Software Controller CPU 150xS  SIMATIC S7-1200 firmware 4.4 or higher. SIMATIC S7-1200 only supports LAD, FBD and SCL.  SIMATIC S7-1500 firmware 2.8 or higher  STL: Some instructions have to be called via CALL.  The special features of SIMATIC S7-400H systems are not taken into consideration.  The instructions of the SIMATIC S7-300T controller are only taken partly into account.  Some system state lists (SSLs) for SIMATIC S7-300/400 contain similar information such as function calls with the
SIMATIC S7-1200/1500.

Structure of the comparison list
 Basic instructions Instructions that you use often, e.g. bit logic operations, timers, counters, mathematical functions
 Extended instructions Extended instructions for more possibilities, e.g. date and time, interrupts, alarms, PROFIenergy
 Technological instructions (technology) Technological functions and Motion Control, e.g. PID control, kinematics
 Instructions for communication Brief overview and basics of communication and Instructions for communication, such as S7 communication, Open User Communication
 Optional instructions instructions, e.g. for SINAMICS or SIMATIC Ident
Legends

 ()

nn
gray italics
Xyz
Xyz

Applicable Applicable with restrictions
Not yet available for SIMATIC CPU S7-1500R/H
Not required, you can, for example, replace many instructions with simple commands in SCL. We recommend that you do not use the grayed-out instructions in S7-1200 or S7-1500. The instructions are not suitable for symbolic addressing or multiple instances. Avoid SIMATIC counters and timers because they do not have multiple instance capability. New instruction as of SIMATIC STEP 7 V16. For this purpose, SIMATIC S7-1200 requires at least firmware 4.4 and SIMATIC S7-1500 at least firmware 2.8. Also available as fail-safe instruction in LAD and FBD.

A5E33285102-AG

Page 7

Basic instructions

Extended instructions

Instructions in the section "Basic instructions"

Instruction groups
General Bit logic operations Safety functions Times

Page
8 8 10 11

Instruction groups
Counters Comparator operations Mathematical functions Move

Technology

Communication

Page
14 15 17 19

Instruction groups
Conversion operations Program control operations Word logic operations Shift and rotate

Page
24 27 33 34

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

    Insert network     Insert empty box     Open branch     Close branch     Insert input     Invert Boolean result
    AND logic operation

General









-|

-|NOT|-

-o|

Bit logic operations



&



nn

nn

nn

(

)

nn

nn

NOT

O

&

Basic instructions

Extended instructions

S7-300 S7-400 S7-1200 S7-1500

Description

    OR logic operation

    EXCLUSIVE OR logic operation

    Assignment

  Negate assignment

    Reset output

    Set output





Set bit field S7-400: SFC 79 SET





Reset bit field S7-400: SFC 89 RSET

    Set/reset flip-flop

    Reset/set flip-flop

    Scan operand for positive signal edge

    Scan operand for negative signal edge
  Set operand on positive signal edge A5E33285102-AG

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL



>=1



X

-( )-

-[=]

-(/)-

-[/=]

-(R)

-[R]

-(S)

-[S]

SET_BF

O

OR

X

XOR

=

:=

NOT

R

nn

S

nn

nn

nn

RESET_BF

SR RS

-(P)-

-|P|-

-(N)-(P)-

-|N|-|P|-

nn

nn

nn

nn

nn

nn

<Operand>; FP;

nn

<Operand>; FN;

nn

R _TRIG

Page 9

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

  Set operand on negative signal edge
    Scan Boolean result for positive signal edge
    Scan Boolean result for negative signal edge
Detect positive signal edge SCL: Programming with two instructions is more   effective: posFlanke := signal and not laststate; laststate := signal;

-(N)-

-|N|-

P_TRIG

N_TRIG

F_TRIG

FP

nn

FN

nn

R _TRIG

Detect negative signal edge SCL: Programming with two instructions is more   effective: negFlanke := not signal and not laststate;
laststate := not signal;

F_TRIG

    Normally open contact

-||-

nn

nn

nn

    Normally closed contact

-|/|-

nn

nn

nn

Safety functions









Only Safety: EMERGENCY STOP up to Stop Category 1



Only Safety: Two-hand monitoring

ESTOP1 TWO_HAND

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

    Only Safety: Two-hand monitoring with enable



Only Safety: parallel muting with two or four muting sensors









Only Safety: parallel muting with two or four muting sensors

Only Safety: 1oo2 evaluation of two single    channel encoders combined with a discrepancy
analysis

    Only Safety: Feedback monitoring

    Only Safety: Protective door monitoring.

Only Safety: Acknowledgment for simultaneous reintegration of all     F-I/O/channels of the F-I/O of an F-runtime group after communication errors or F-I/O/channel errors

Times

IEC timers

    Generate pulse

A5E33285102-AG

TWO_H_EN MUTING MUT_P EV1oo2DI FDBACK SFDOOR ACK_GL
TP

TP Page 11

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

    Generate on-delay

TON

TON

    Generate off-delay

TOF

TOF

  Time accumulator   Time accumulator (start timer)   Reset timer   Load time duration

TONR

-(TONR)- -[TONR]-

nn

nn

-(RT)- -[RT]-

RESET_TIMER

-(PT)- -[PT]-

PRESET_TIMER

  Start pulse timer

-(TP)- -[TP]-

nn

nn

  Start on-delay timer

-(TON)- -[TON]-

SD

nn

  Start off-delay timer

-(TOF)- -[TOF]-

SF

nn

SIMATIC timers legacy

 

 Assign pulse timer parameters and start



Assign extended pulse timer parameters and start

S_PULSE S_PEXT

nn

S_PULSE

nn

S_PEXT



 Assign on-delay timer parameters and start

S_ODT

nn

S_ODT





Assign retentive on-delay timer parameters and start

S_ODTS

nn

S_ODTS

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL


       


 Assign off-delay timer parameters and start

S_OFFDT

nn

S_OFFDT

 Start pulse timer  Start extended pulse timer  Enable timer  Load timer value  Load BCD-coded timer value  Reset timer  Start off-delay timer  Start on-delay timer

-(SP)

-[SP]

SP

nn

-(SD)

-[SD]

SD

nn

FR

nn

L

nn

LC

nn

-(R)

-[R]

R

nn

-(SF)

-[SF]

SF

nn

-(SD) -{SD]

SD

nn

 Start retentive on-delay timer

-(SS)

-[SS]

SS

nn

A5E33285102-AG

Page 13

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Counters

IEC counters

    Count up

CTU

    Count down

CTD

    Count up and down

CTUD

SIMATIC counters legacy



 Assign parameters and count up

S_CU



 Assign parameters and count down

S_CD



 Assign parameters and count up/down

S_CUD



 Set initial counter value

-(SC) - [SC]



 Count up

-(CU) -[CU]



 Count down

-(CD) -[CD]



 Enable counter



 Load counter value

CTU CTD CTUD

nn

S_CU

nn

S_CD

nn

S_CUD

nn

nn

CU

nn

CD

nn

FR

nn

L

nn

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

  

 Load BCD-coded counter value  Reset counter  Set counter

LC

nn

R

nn

S

nn

Comparator operations

    Equal     Not equal     Greater than or equal     Less than or equal     Greater than     Less than
  Value within range   Value outside range   Check validity   Check invalidity

CMP ==

== I/D/R

=

CMP <>

<> I/D/R

<>

CMP >=

>= I/D/R

>=

CMP <=

<= I/D/R

<=

CMP >

> I/D/R

>

CMP <

< I/D/R

<

IN_RANGE

nn

OUT_RANGE

nn

-|OK|-

nn

-|NOT_OK|-

nn

A5E33285102-AG

Page 15

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL

Variant

  Check data type of a VARIANT tag





Scan data type of an ARRAY element of a VARIANT tag





Compare data type for EQUAL with the data type of a tag





Compare data type of an ARRAY element for EQUAL with the data type of a tag

With a tag of type DB_ANY, compare the data

type of an indirectly addressed DB with a data





type for EQUAL. Identify any data block with DB_ANY. You then

have the option of accessing a data block that is

not yet available during programming.





Compare data type for UNEQUAL with the data type of a tag





Compare data type of an ARRAY element for UNEQUAL with the data type of a tag

EQ _Type EQ _ ElemType
EQ _TypeOfDB:
NE_Type NE_ElemType

TypeOf TypeOfEle-
ments *) *)
*)
*) *)

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

With a tag of TYPE DB_ANY, compare the data

  type of an indirectly addressed DB with a data

NE_TypeOfDB:

*)

type for EQUAL.

  Check for EQUALS NULL pointer

IS_NULL

*)

  Check for UNEQUALS NULL pointer

NOT_NULL

*)

*) Application examples for SCL:

IF TypeOf(...) = INT THEN ... // corresponds to EQ _ Type IF TypeOfElements(...) = INT THEN ... // corresponds to EQ _ ElemType IF ... <> NULL THEN ... // corresponds to NOT _ NULL

Instead of "=", you can also use other operators, e.g.: "<>". Instead of "INT", you can also use any other data types or data types that you have defined, e.g.: "REAL", "Recipe"

  Check for ARRAY

IS _ ARR AY

 Compare tag structured data types

CompType

=

Mathematical functions

  Calculate

CALCULATE

(SCL network in LAD/

nn

nn

FBD)

    Add

ADD

+

+

A5E33285102-AG

Page 17

Basic instructions

Extended instructions

S7-300 S7-400 S7-1200 S7-1500

Description

    Subtract

    Multiply

    Divide









Form absolute value Safety instruction only for S7-1200/1500

    Return remainder of division

    Create twos complement

    Create one's complement

    Increment

    Decrement

    Get minimum

    Get maximum

    Set limit value

    Form square

    Form square root

    Form natural logarithm

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL

SUB MUL DIV

-

-

*

*

/

/

ABS

ABS

ABS

MOD

NEG

NEGI, NEGD

nn

nn

INVI, INVD

NOT

INC

nn

DEC

nn

MIN

MAX

LIMIT

SQR

SQRT

LN

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

      
 
() ()   

 Form exponential value

 Form sine value

 Form cosine value

 Form tangent value

 Form arcsine value

 Form arccosine value

 Form arctangent value

 Return fraction

 Exponentiate

Move



Move value S7-300/400: Only LAD and FBD

Only Safety: Write value indirectly to an F-DB

Only Safety: Read value indirectly from an F-DB

 Only Safety: Read value from INT F-Array

FRAC EXPT

EXP SIN COS TAN ASIN ACOS ATAN
**

MOVE
WR_FBD RD_FBD RD_ ARR AY_ I

MOVE

FRAC **
:=

A5E33285102-AG

Page 19

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

 Only Safety: Read value from DINT F-Array

  Move data type from ARRAY of BYTE (Deserialize)

  Move data type to ARRAY of BYTE (Serialize)





Move block S7-400: SFC 20 BLKMOV





Move block not interruptible S7-400: SFC 81 UBLKMOV

  Move block

  Fill block

  Fill block not interruptible

Disassemble a tag bit string data type BYTE,   WORD, DWORD or LWORD into individual bits
(= scatter)





Disassemble an ARRAY of BYTE, WORD, DWORD or LWORD into individual bits

RD_ ARR AY_ DI Deserialize Serialize MOVE_BLK
UMOVE_BLK MOVE_BLK_VARIANT
FILL_BLK UFILL_BLK
SCATTER
SC AT TER _ BLK

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Merge all bits from an ARRAY of BOOL, an anony-





mous STRUCT or a PLC data type exclusively with Boolean elements into a bit string data type

BYTE, WORD, DWORD or LWORD (= gather)

Merge individual bits into multiple elements of   an ARRAY of BOOL, an anonymous STRUCT or a
PLC data type exclusively with Boolean elements

  Swap

With "AssignmentAttempt", you attempt to

assign a VARIANT tag to a reference tag. The data



 type of a reference tag is specified at the time of

the declaration, the data type of a VARIANT tag is

determined during runtime.

ARRAY DB

  Read from ARRAY data block

  Write to ARRAY data block

  Read from ARRAY data block in load memory

  Write to ARRAY data block in load memory

GATHER
GATHER _ BLK SWAP ?=
ReadFromArrayDB WriteToArrayDB
ReadFromArrayDBL WriteToArrayDBL

A5E33285102-AG

Page 21

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Variant

  Read out VARIANT tag value

  Write VARIANT tag value



Get number of ARRAY elements

ARRAY [*]

  Read out ARRAY low limit

  Read out ARRAY high limit

Read/write access

Recommendation: Symbolic programming.

  Read data in little endian format

  Write data in little endian format

  Read data in big endian format

  Write data in big endian format

  Read memory address

  Read memory bit

VariantGet VariantPut CountOfElements
LOWER_BOUND UPPER_BOUND
READ_LITTLE WRITE_LITTLE
READ_BIG WRITE_BIG
PEEK PEEK_BOOL

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

  Write memory address

  Write memory bit

  Write memory area

Legacy

Recommendation: Symbolic programming



 Move block



 Move block not interruptible



 Fill block





Read field; recommendation: Indexed access to an array

FieldRead





Write field; recommendation: Indexed access to an array

FieldWrite

POKE POKE_BOOL POKE_BLK
BLKMOV UBLKMOV
FILL

A5E33285102-AG

Page 23

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Conversion operations

Convert value S7-1200/1500: You can convert numerical for    mats and data types to other numerical formats and data types. You can find more detailed information in the information system of STEP 7

CONVERT









Only Safety: Convert data of data type BOOL into data of data type WORD

BO_W









Only Safety: Convert data of data type WORD into data of data type BOOL

W_BO

    Round numerical value

ROUND









Generate next higher integer from floating-point number

CEIL









Generate next lower integer from floating-point number

FLOOR

    Truncate numerical value

    Scale

  Normalize

x x x _TO_ y y y

RND RND+
RNDTRUNC SCALE_X NORM_X

ROUND CEIL
FLOOR

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Create a reference to a tag:

 "REF()" is used to specify to which tag a previ-

nn

ously declared reference should point.

    Convert BCD to integer (16 bit)

nn

    Convert integer (16 bit) to BCD

nn

    Convert BCD to integer (32 bit)

nn

    Convert integer (32 bit) to BCD

nn









Convert integer (16 bit) to integer (32 bit) S7-1500: Conversion also done implicitly

nn









Convert integer (32 bit) to floating-point number S7-1500: Conversion also done implicitly

nn





Create one's complement integer (16 bit) S7-1500: Conversion also done implicitly

nn





Create one's complement double integer (32 bit) S7-1500: Conversion also done implicitly

nn

nn

REF

BTI

BCD16_TO_ INT

ITB

INT_TO_ BCD16

BTD

BCD32_TO_ INT

DTB

DINT_TO_ BCD32

ITD

INT_TO_ DINT

DTR

DINT_TO_ REAL

INVI

nn

INVD

nn

A5E33285102-AG

Page 25

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL



 Negate integer (16 bit)

nn



 Negate integer (32 bit)

nn



 Negate floating-point number

nn



 Switch bytes in the right word of accumulator 1

nn



 Switch all bytes in accumulator 1

nn

Variant instructions

  Convert VARIANT to DB_ANY   Convert DB_ANY to VARIANT

Legacy

Recommendation: Symbolic programming

Convert the integer to a physical unit between a









low limit and high limit (scaling). Standard CPU: INT in REAL

F-CPU: INT in INT

SCALE

NEGI

nn

NEGD

nn

NEGR

nn

CAW

nn

CAD

nn

VARIANT_TO_ DB _ ANY DB _ ANY_TO_VARIANT

SCALE

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL

Convert the integer to a physical unit between a   low limit and high limit (scaling).
F-CPU: INT in DINT

SCALE_D



Unscale the floating-point number into physical  units between a low limit and a high limit and
convert it io an integer (unscaling).
Program control operations

    Branch conditionally

    Branch conditionally multiple times     Branch to a list element     Run in counting loop

    Run in counting loop with step width









Run if condition is met, the CPU checks the condition at the start of the loop

A5E33285102-AG

UNSCALE JC SPL
JC

IF... THEN... ELSE...
IF... THEN... ELSIF...
CASE... OF... FOR... TO...
DO... FOR... TO... BY... DO...
WHILE... DO...
Page 27

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL

Run if condition is not met.     The CPU checks the condition at the end of the
loop, i.e. the CPU runs the loop at least once.









Terminate running through the loop and start with the next run

    Exit loop immediately

    Exit block

  Organize program code



 Conditional block end

Insert a comment section     New from V16 and higher: Multilingual com-
ments (/*...*/)

Only SIMATIC S7-1500 Software Controller CPU  150xS: Shut down or restart Windows and the
controller

LOOP

REPEAT... UNTIL...

CONTINUE

EXIT

RET

BEU

RETURN

REGION... END_REGION

BEC

nn

nn

//

//, (*...*), (/*...*/)

SHUT_DOWN

Basic instructions

Extended instructions

S7-300 S7-400 S7-1200 S7-1500

Description

Jumps

    Jump

    Jump if RLO = 1

    Jump if RLO = 0

    Jump label

  Define jump list

  Jump distributor

    Return



Only Safety: Open global data block



 Jump if RLO = 1 and save RLO



 Jump if RLO = 0 and save RLO



 Jump if BR = 1



 Jump if BR = 0



 Jump if OV = 1



 Jump if OS = 1

Technology

Communication

LAD

FBD

STL (not S7-1200)

SCL

nn

JU

-(JMP) -[JMP]

JC

-(JMPN) -[JMPN]

JCN

LABEL

:

JMP_LIST

JL

SWITCH

-(RET) -[RET]

-(OPN) -[OPN]

nn

JCB

nn

JNB

nn

JBI

nn

JNBI

nn

JO

nn

JOS

GOTO... nn nn nn nn nn nn nn nn nn nn nn nn nn

A5E33285102-AG

Page 29

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL



 Jump if the result is zero

nn



 Jump if the result is not zero

nn



 Jump if the result is greater than zero

nn



 Jump if the result is less than zero

nn



 Jump if the result is greater than or equal to zero

nn



 Jump if the result is less than or equal to zero

nn



 Jump if the result is invalid

nn



 Loop

nn

Data blocks





Open global data block S7-1500: only for "non-optimized" blocks





Open instance data block S7-1500: only for "non-optimized" blocks



 Swap data block register





Load the length of a global data block into accumulator 1

JZ

nn

JN

nn

JP

nn

JM

nn

JPZ

nn

JMZ

nn

JUO

nn

LOOP

nn

OPN

nn

OPNI

nn

CDB

nn

L DBLG

nn

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

  



Load the number of a global data block into accumulator 1



Load the length of an instance data block into accumulator 1



Load the number of an instance data block into accumulator 1

Code blocks

 



Call block LAD/FBD: Only for S7-300/400

 Conditional block call



 Unconditional block call

Runtime control

  Limit and enable password legitimation

    Restart cycle monitoring time

    Exit program

L DBNO

nn

L DILG

nn

L DINO

nn

CALL

nn

CC

nn

UC

nn

ENDIS_PW RE_TRIGR
STP

A5E33285102-AG

Page 31

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Only SIMATIC S7-1500 software controller  CPU 150xS: Shut down or restart Windows and
the controller

  Get error locally

  Get error ID locally



Compress CPU memory



Control CiR process

  Initialize all retain data

    Program time delay



Change protection level





Runtime measurement with nanosecond accuracy









Only Safety: Fail-safe acknowledgment from an operator control and monitoring system

SHUT_DOWN
GET_ERROR GET_ ERR _ ID COMPRESS
CiR INIT_RD
WAIT PROTECT RUNTIME
F_ ACK _OP

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Word logic operations

    Create one's complement

INVERT

    Decode: set a specified bit









Encode: Output bit number of least significant bit set in the input value









Select: Output a parameter as result depending on a BOOL value

() () 



Multiplexing S7-300/400: Only SCL

MUX

  Demultiplex

DEMUX

    AND logic operation word by word

AND

    OR logic operation word by word

OR

    EXCLUSIVE OR logic operation word by word

XOR

    AND logic operation double word by double word

AND

    OR logic operation double word by double word

OR









EXCLUSIVE OR logic operation double word by double word

XOR

A5E33285102-AG

DECO ENCO
SEL
nn nn AW OW XOW AD OD XOD

NOT
MUX DEMUX &, AND
OR XOR &, AND OR XOR Page 33

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

Shift and rotate

    Rotate right

ROR

    Rotate left

ROL

    Shift right word by word

SHR

SRW

SHR

    Shift left word by word

SHL

SLW

SHL



 Shift word by word with sign

SSI

nn



 Shift double word by double word with sign

SSD

nn



 Shift right double word by double word

SRD

nn



 Shift left double word by double word

SLD

nn



 Rotate right double word by double word

SHR

RRD

SHR



 Rotate left double word by double word

SHL

RLD

SHL



 Rotate left by status bit CC 1

RLDA

nn



 Rotate right by status bit CC 1

RRDA

nn

Information on S7-400: The controllers have four accumulators. You will find only the instructions for two accumulators in the list below.

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

      
     

Loading  Loading  Load status word in accumulator 1  Load AR1 with contents of accumulator 1  Load AR1 with double word or area pointer  Load AR1 with contents of AR2  Load AR2 with contents of accumulator 1  Load AR2 with double word or area pointer
Transfer  Transfer  Transfer accumulator 1 to status word  Switch AR1 and AR2  Transfer AR1 to accumulator 1  Transfer AR1 to double word  Transfer AR1 to AR2

nn

L

nn

L STW

nn

LAR1

nn

LAR1 <D>

nn

LAR1 AR2

nn

LAR2

nn

LAR2 <D>

nn

nn

T

nn

T STW

nn

CAR

nn

TAR1

nn

TAR1 <D>

nn

TAR1 AR2

nn

A5E33285102-AG

Page 35

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL

 
           

 Transfer AR2 to accumulator 1  Transfer AR2 to double word
Legacy  Implement sequencer
Implement sequencer  Discrete control time interrupt  Motor control time interrupt  Compare input bits with the bits of a mask  Matrix scanner  Lead and lag algorithm  Create bit pattern for 7-segment display  Create tens complement  Count number of set bits
Time accumulator Save data to shift register

TAR2

nn

TAR2 <D>

nn

DRUM DRUM_X
DCAT MCAT IMC SMC LEAD_LAG SEG BCDCPL BITSUM TONR _ X WSR

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL



Shift bit to shift register

SHRB



Get status bit

Status -||-

A 0V

nn



Call block

-(CALL) -[CALL]

UC

nn



Save RLO in BR bit

-(SAVE) -[SAVE]

SAVE

nn



Open MCR ranges

-(MCR<) -[MCR<]

MCR(

nn



Close MCR ranges

-(MCR>) -[MCR>]

)MCR

nn



Enable MCR range

-(MCRA) -[MCRA] MCRA

nn



Disable MCR range

-(MCRD) -[MCRD] MCRD

nn



Set bit array

SET



Set byte array

SETI



Reset bit array

RESET



Reset byte array

RESETI



Enter substitute value

REPL_VAL



 Swap content of accumulators 1 and 2

nn

TAK

nn



 Shift contents to the next highest accumulator

nn

PUSH

nn

A5E33285102-AG

Page 37

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD

FBD

STL (not S7-1200)

SCL



 Shift contents to the next lowest accumulator

nn

POP

nn



 Add accumulator 1 to AR1

nn

+AR1

nn



 Add accumulator 1 to AR2

nn

+AR2

nn



 Program display (null instruction)

nn

BLD

nn



 Null instruction

nn

NOP 0

nn



 Null instruction

nn

NOP 1

nn

Basic instructions

Extended instructions

Technology

Communication

A5E33285102-AG

Page 39

Basic instructions

Extended instructions

Technology

Communication

Instructions in the section "Extended instructions"

Instruction groups

Page

Date and time

40

String and Character

42

Process image

45

Distributed I/O

45

PROFIenergy

47

Module parameter assignment 48

Instruction groups
Interrupts Alarms Diagnostics Pulse Recipes & data logging Data block functions

Page
49 51 53 54 54 55

Instruction groups
Table functions Addressing File operations (file handling) R/H system Other instructions

Page
56 57 58 58 59

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

Date and time



 Compare time tags

T_COMP*

    Convert times and extract

T_CONV*

    Add times

T_ ADD*

    Subtract times

T_SUB*

    Time difference

T_DIFF*



 Combine times

T_COMBINE*

* SCL: Use conversion functions x_TO_ y (e.g. TIME_TO_DINT), or comparator and arithmetic operators (e.g. +, -, >, <).

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

Time-of-day functions

    Set time-of-day (STEP 7 V 5x: SET_CLK)

    Read time-of-day (STEP 7 V 5x: READ_CLK)

  Read local time

  Write local time



 Synchronize slave clocks



 Read system time

  Set time zone

    Runtime meters



Set runtime meters



Start and stop runtime meters



Read runtime meters



Set time-of-day and time-of-day status

Communication

LAD/FBD STL (not S7-1200)

SCL

WR _ SYS _T RD_SYS_T RD_LOC_T WR _ LOC _T SNC_RTCB TIME_TCK SET_TIMEZONE
RTM SET_RTM CTRL_RTM READ_RTM SET_CLKS

A5E33285102-AG

Page 41

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

   



Local time Calculate local time Calculate local time from base time Calculate base time from local time Set time-of-day interrupt using local time Set daylight saving time/standard time without time-of-day status Transfer time-stamped alarms

LOC_TIME BT_LT LT_BT
S_LTINT
SET_SW
TIMESTMP



Set daylight saving time/standard time with time-of-day status

SET_SW_S

String and Character

  Move character string



 Compare character strings

    Convert character string

  Convert character string to numerical value

S_MOVE

:=

S_COMP

=

S_CONV

STRG_VAL

STRG_...

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

  Convert numerical value to character string   Convert character string to Array of CHAR   Convert Array of CHAR to character string   Determine the length of a character string
 Join multiple character strings  Split character array in multiple character strings









Convert ASCII string to hexadecimal number (conversion is contained in the converting functions, e.g.: CHAR_TO_WORD)

VAL_STRG

..._STRG

Strg_TO_Chars

Chars_TO_Strg

MAX_LEN

JOIN

SPLIT

HTA

    Convert hexadecimal number to ASCII string     Determine the length of a character string     Connect character strings     Read the left characters of a character string     Read the right characters of a character string     Read the middle characters of a character string     Delete characters in a character string
A5E33285102-AG

HTA LEN CONCAT LEFT RIGHT MID DELETE
Page 43

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

    Insert characters in a character string     Replace characters in a character string     Find characters in a character string
Runtime information   Read out name of a tag on the input parameter
Read global name at beginning of a call path. Illustration:

Communication

LAD/FBD STL (not S7-1200)

SCL

INSERT REPLACE
FIND

GetSymbolName



GetInstanceName

  Read out name of the block instance   Query the global name of block instance

GetSymbolPath GetInstancePath

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

  Read out name of block in the block itself

Process image



 Update the process image inputs



 Update the process image outputs



 Synchronize the process image inputs



 Synchronize the process image outputs

Distributed I/O

DP and PROFINET

    Read data record

    Write data record

    Read process image

    Transfer process image

    Read process image area

    Transfer process image area

Communication

LAD/FBD STL (not S7-1200)

SCL

GetBlockName

UPDAT_PI UPDAT_PO SYNC_PI SYNC_PO

RDREC WRREC GETIO SETIO GETIO_PART SETIO_PART

A5E33285102-AG

Page 45

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

    Receive interrupt

    Disable/enable DP slaves

Control configuration of a PROFINET IO system (option handling)
 Enable or disable devices in order to, for example, Flexibly run
through or bypass production steps of a manufacturing process.

Other instructions



 Read data record from I/O



 Write data record to I/O

    Read consistent data of a DP standard slave     Write consistent data of a DP standard slave
iDevice/iSlave



  Receive data record



  Make data record available



Send interrupt

RALRM D_ AC T_ DP
ReconfigIOSystem
RD_REC WR_REC DPRD_DAT DPWR _ DAT
RCVREC PRVREC SALRM

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL



PROFIBUS Trigger hardware interrupt from DP standard slave



 Synchronize DP slaves/Freeze inputs

    Read diagnostics data from a DP slave



 Determine topology for the DP master system

 
   

ASi Control ASi master behavior  Control ASi master behavior
PROFIenergy
IO controller  Start and exit energy-saving mode  Start and exit energy-saving mode/Read out status information  Set switching behavior of power modules
 Starting and stopping energy-saving mode via WakeOnLan

DP_PRAL DPSYC_FR DPNRM_DG DP_TOPOL
ASi_3422 ASI_CTRL
PE_START_END PE_CMD
PE_DS3_WRITE_ET200S PE_WOL

A5E33285102-AG

Page 47

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

iDevice/iSlave



  Control PROFIenergy commands in the iDevice



  Generate negative answer to command



  Generate answer to command at start of pause



  Generate answer to command at end of pause



  Generate queried energy savings modes as answer



  Generate scanned energy saving data as answer



  Generate PEM status as answer



  Number of PROFIenergy commands



  Generate supported PROFIenergy commands as answer



  Generate queried measured values as answer

Module parameter assignment



 Read module data record (predefined parameters)





Read data record of a module asynchronously (predefined parameters)

Communication

LAD/FBD STL (not S7-1200)

SCL

PE_I_DEV PE_Error_RSP PE_Start_RSP PE_End_RSP PE_List_Modes_RSP PE_Get_Mode_RSP PE_PEM_Status_RSP PE_Identify _RSP PE_Measurement_List_RSP PE_Measurement_Value_RSP
RD_DPAR RD_DPARA

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description



Transfer module data records





Read data record from configured system data (predefined parameters)



Write module data record (dynamic parameters)



 Transfer data record (predefined parameters)

Interrupts

  Assign an OB to an interrupt event

  Detach an OB from an interrupt event

Cyclic interrupt

  Set cyclic interrupt parameters

  Query cyclic interrupt parameters

Time-of-day interrupt



 Set time-of-day interrupt

Set time-of-day interrupt   LOCAL: Refer SDT to local or system time.
ACTIVATE: When does the OB apply the settings.

A5E33285102-AG

Communication

LAD/FBD STL (not S7-1200)

SCL

PARM_MOD RD_DPARM

WR _ PARM WR _ DPARM

ATTACH DETACH
SET_CINT QRY_CINT
SET_TINT SET_TINTL
Page 49

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

    Cancel time-of-day interrupt

    Activate time-of-day interrupt

    Query status of time-of-day interrupt

Time-delay interrupt

    Start time-delay interrupt

    Cancel time-delay interrupt

    Query the status of a time-delay interrupt

Synchronous error events



 Mask synchronous error events



 Unmask synchronous error events



 Read out event status register

Asynchronous error event



 Disable interrupt event



 Enable interrupt event









Delay execution of higher priority interrupts and asynchronous error events

CAN_TINT ACT_TINT QRY_TINT
SRT_DINT CAN_DINT QRY_DINT
MSK_FLT DMSK_FLT READ_ERR
DIS_IRT EN_IRT DIS_AIRT

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL









Enable execution of higher priority interrupts and asynchronous error events



Trigger multicomputing interrupt

Alarms

 Generate program alarm with associated values

 Output alarm status

 Read pending alarms

 Acknowledging alarms





Generate user diagnostic alarms that are entered in the diagnostics buffer



Write a user diagnostics event to the diagnostics buffer a send to logged on participants



Generate alarm messages



Generate alarm message with acknowledgment



Create permanently acknowledged PLC alarms



Create acknowledgeable PLC alarms

EN_AIRT MP_ ALM
Program_Alarm Get _ AlarmState
Get_Alarm Ack_Alarms Gen_UsrMsg
WR_USMSG ALARM_S ALARM_SQ ALARM_D ALARM_DQ

A5E33285102-AG

Page 51

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL

      
 
 


Determine acknowledgment status of the last ALARM_SQ incoming alarm Report up to eight signal changes Create PLC alarms without associated values for eight signals Create PLC alarms with associated values for eight signals Report a signal change Create PLC alarms with acknowledgment display Send archive data
Other instructions Read out dynamically assigned system resources Delete dynamically assigned system resources Enable PLC alarms Disable PLC alarms
Diagnostics
 Read current OB start information  Read runtime statistics

ALARM_SC NOTIFY_8P ALARM_8 ALARM_8P
NOTIFY ALARM AR_SEND
READ_SI DEL_SI EN_MSG DIS_MSG
RD_SINFO RT_INFO

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description



Determine OB program runtime



Determine current connection status



Read system status list

  Read LED status

  Reading identification and maintenance data

  Read out name of a module

  Read information of an IO device

  Read out checksum

 Read out information about the memory card

Read out status of the CPU clock



· Is time synchronization via NTP server enabled? · Time synchronization missed?

· Is automatic adjustment for daylight saving time enabled?

  Read module status information in an IO system

  Read module status information of a module

 Generate diagnostics information

Communication

LAD/FBD STL (not S7-1200)

SCL

OB_RT C_DIAG RDSYSST
LED Get_IM_Data
Get_Name GetStationInfo GetChecksum
GetSMCinfo

GetClockStatus

DeciveStates ModuleStates
GEN_DIAG

A5E33285102-AG

Page 53

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions

Technology

Description

  Read diagnostics information

Pulse



Pulse width modulation



Pulse train output, output a pulse sequence with specified frequency

Recipes & data logging

Recipe functions

  Export recipe

  Import recipe   Create data log

Data logging

  Open data log

  Write data log

  Empty data log

Communication

LAD/FBD STL (not S7-1200)

SCL

GET_DIAG

CTRL_PWM CTRL_PTO

RecipeExport RecipeImport
DataLogCreate DataLogOpen DataLogWrite DataLogClear

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

  Close data log

  Delete data log

  Data log in new file

Data block functions



Create data block

  Create data block



Create data block in the load memory

    Read from data block in the load memory

    Write to data block in the load memory

  Read data block attributes



Delete data block

  Delete data block



Test data block

Communication

LAD/FBD STL (not S7-1200)

SCL

DataLogClose DataLogDelete DataLogNewFile

CREAT_DB CREATE_DB CREA_DBL READ_DBL WRIT_DBL
AT TR _ DB DEL_DB DELETE_DB TEST_DB

A5E33285102-AG

Page 55

Basic instructions

Extended instructions

Technology

S7-300 S7-400 S7-1200 S7-1500

Description

Table functions



Add value to table



Output first value of the table



Find value in table



Output last value in table



Execute table instruction



Run value from table



Link value logically with table element and save



Calculate standard deviation



Correlated data tables



Link tables



Collect/distribute table data

Addressing

  Determine hardware identifier from slot

  Determine slot from the hardware identifier

Communication

LAD/FBD STL (not S7-1200)

SCL

ATT FIFO TBL_FIND LIFO TBL TBL_WRD WRD_TBL DEV CDT TBL_TBL PACK
GEO2LOG LOG2GEO

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL



Determine the hardware identifier from addressing of STEP 7 V5.5 SPx

  Determine hardware identifier from an IO address

  Determine the IO addresses from the hardware identifier

Other instructions for addressing



S7-300/400: Determine start address from slot  S7-1500: Determine hardware identifier from slot. Exists only for
compatibility reasons, not recommended



S7-300/400: Determine slot from a logical address  S7-1500: Determine slot from the hardware identifier. Exists only
for compatibility reasons, not recommended



S7-300/400: Determine all logical addresses from a logical



address S7-1500: Determine the logical addresses from the hardware

identifier



S7-300/400: Determine logical basic address from slot and offset



in the user data address area S7-1500: Determine hardware identifier from slot and offset in

the user data address area

LOG2MOD IO2MOD RD_ADDR
GEO_LOG LOG_GEO
RD_LGADR
GADR _ LGC

A5E33285102-AG

Page 57

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD STL (not S7-1200)

SCL



S7-300/400: Determine slot and offset in the user database from



a logical address S7-1500: Determine slot from the hardware identifier. Exists only

for compatibility reasons, not recommended

File operations (file handling)



Read data from a binary file from the memory card, the binary file has a serialized format/bye array

 Write data to a binary file on the memory card

 Delete existing file on the memory card

R/H system

Only S7-1500 R/H: Enable or disable the SYNCUP system state.

RH

The lock applies: · Until you disable the lock again

· Until the S7-1500R/H goes to STOP

Determining the redundancy ID of the primary CPU RH 1 = The CPU with redundancy ID 1 is the primary CPU.
2 = The CPU with redundancy ID 2 is the primary CPU.

LGC_GADR
FileReadC FileWriteC FileDelete
RH_CTRL RH_GetPrimaryID

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Other instructions

iSlave



Set own network address as DP iSlave

Communication

LAD/FBD STL (not S7-1200)

SCL

SET_ ADDR

A5E33285102-AG

Page 59

Basic instructions

Extended instructions

Technology

Communication

Instructions in the section "Technology"

Instruction groups
Counting (and measuring) PID Control

Page
60 61

Instruction groups
Motion Control Time-driven inputs/outputs

Page
63 70

Instruction groups
S7-300C functions Function modules

Page
71 71

T in the S7-300 column means: Instruction for the S7-300 Technology CPU S7-31xT. The operating principle of the instructions can differ between S7-300 and S7-1500. Instructions solely for the S7-31xT are not listed in the table. The Technology CPU S7-31xT cannot be programmed in the TIA Portal.

T in the S7-1500 column means: Instruction for the Technology CPU S7-15xyT.

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

Counting (and measuring)



Control high-speed counters



Extended high-speed counters Period duration measurement with system data type 331

 High-speed counter for counting and measuring

 Detect position with SSI absolute encoder

CTRL_HSC CTRL_HSC_EXT High_Speed_Counter SSI _ Absolut _ Encoder

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

PID Control

Compact PID





Universal PID controller with integrated tuning for proportional-action actuators





PID controller with integrated self-optimization for valves and actuators





Temperature controller with integrated optimization for temperature processes

PID basic function

     

 Continuous-action controller  Step controller for integrating actuators  Pulse generator for proportional-acting actuators  Continuous temperature controller with pulse generator  Temperature controller for integrating actuators
Automatic optimization for a continuous-action controller



Automatic optimization for a step controller

A5E33285102-AG

PID_Compact
PID_3Step
PID_Temp
CONT_C CONT_S PULSEGEN TCONT_CP TCONT_S TUN_EC TUN_ES
Page 61

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

Integrated system functions



Continuous-action controller



Step controller for integrating actuators



Pulse generator for proportional-acting actuators

Help functions

Mapping an input value to an output value using a character-





istic curve. The characteristic curve is a polyline with maximum 50 inter-

polation points with linear interpolation.

  Converting input value into an output value

  Limiting the change speed of a signal

First-order proportional transfer element

Application:

- Low-pass filter



  - Delay element for smoothing signal jumps

- Process simulation block for a closed control circuit within

a CPU

Parameter: Gain, Lag

CONT_C_SF CONT_S_SF PULSGEN_SF
Polyline SplitRange RampFunction
Filter_PT1

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

Second-order proportional transfer element

Application:

- Low-pass filter



  - Delay element for smoothing signal jumps

- Process simulation block for a closed control circuit within

a CPU

Parameter: Gain, TimeConstant, Damping

First-order differentiator

Application:







- High-pass filter - Differentiator to calculate the derivative of a signal

- Feedforward control

Parameter: Gain, Lag

Motion Control

T

  Release/lock axis/technology

T

  Acknowledge interrupts, restart axis/technology object

T

  Home axis/technology objects, set home position

T

  Pause axis

T

  Position axis absolutely

Filter_PT2
Filter_DT1
MC_Power MC_Reset MC_Home MC_Halt MC_MoveAbsolute

A5E33285102-AG

Page 63

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

T

  Position axis relatively

MC_MoveRelative

T

  Move axis at set velocity/speed

MC_MoveVelocity

T

  Move axis in jog mode

MC_MoveJog



Run axis commands as motion sequence

MC_CommandTable



Change dynamic settings of axis

MC_ChangeDynamic



Write tag of positioning axis

MC_WriteParam



Continuously read motion data of a positioning axis

MC_ReadParam

T

 Position axis overlapping

MC_MoveSuperImposed

T

T Set alternative encoder as active encoder

MC_SetSensor

Pause axis and prevent new motion jobs

T

T Stop all motions of an axis and prevent new motion jobs. The

MC_STOP

axis brakes to a standstill and remains switched on.



Set bits in the control words (STW) 1 and/or 2 of the PROFIdrive telegram.

MC_SetAxisSTW

Enable and disable hardware limit switches during runtime.

T

 The changed state is effective immediately and remains effec-

MC_WriteParameter

tive until the next restart of the technology object.

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions

Technology

Communication

Description

LAD / FBD / STL (not S7-1200) / SCL

T

Read parameters from technology object

MC_ReadParameter

Output cams, cam track, measuring input

T

 Start one-time measuring

MC_MeasuringInput

T

 Start cyclic measuring

S7-1500: MC_MeasuringInputCyclic S7-300T: MC_MeasuringInput

T

 Cancel active measuring job

S7-1500: MC_AbortMeasuringInput S7-300T: MC_MeasuringInput

T

 Activate/deactivate output cam

S7-1500: MC_OutputCam (positionbased cams and time-based cams S7-300T: MC_CamSwitch (positionbased cam)
S7-300T: MC_CamSwitchTime (timebased cam)

T

 Activate/deactivate cam track

MC_CamTrack

Synchronous motion - Gearing/camming

T

 Start gearing

MC_GearIn

T

T Start gearing with specified synchronous positions

S7-1500T: MC_GearInPos S7-300T: MC_GearIn

A5E33285102-AG

Page 65

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

T Start camming

MC_CamIn

T Simulate synchronous operation

MC_SynchronizedMotionSimulation

T

T Relative shift of master value on the following axis

S7-1500T: MC_PhasingRelative S7-300T: MC_Phasing

T

T Absolute shift of master value on the following axis

S7-1500T: MC_PhasingAbsolute S7-300T: MC_Phasing

Specify additive master value, T active master value + additive master value = effective master
value

MC_LeadingValueAdditive

Cam disc

T

T Interpolating a cam disc

MC_InterpolateCam

T

T Read master value of a cam

S7-1500T: MC_GetCamLeadingValue S7-300T: MC_GetCamPoint

T

T Read out slave value of a cam

S7-1500T: MC_GetCamFollowingValue
S7-300T: MC_GetCamPoint

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions

Technology

Communication

Description

LAD / FBD / STL (not S7-1200) / SCL

MotionIn

T Set motion setpoints for velocity and acceleration

MC_MotionInVelocity

T Set motion setpoints for position, velocity and acceleration

MC_MotionInPosition

Torque data

 Specify additive torque

MC_TorqueAdditive

 Set high and low torque limits

MC_TorqueRange

T

 Enable and disable force/torque limiting / fixed stop detection

MC_TorqueLimiting

Motions (kinematics) - Force/torque limiting / fixed stop detection

T

T Interrupt execution of motion

MC_GroupInterrupt

T

T Continue execution of motion

MC_GroupContinue

T

T Stop motion

MC_GroupStop

T

T Position kinematics absolutely with linear path motion

MC_MoveLinearAbsolute

T

T Relative positioning of kinematics with linear path motion

MC_MoveLinearRelative

T

T Position kinematics absolutely with circular path motion

MC_MoveCircularAbsolute

T

T Relative positioning of kinematics with circular path motion

MC_MoveCircularRelative

A5E33285102-AG

Page 67

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

T

Absolute positioning of kinematics in synchronous "point-topoint" motion

T

Relative positioning of kinematics in synchronous "point-topoint" motion

Enable belt tracking T Take along object coordinate system (OCS) with a technology
object positioning axis/external sensor/leading axis substitute

Zones

T Define workspace zone

T Define kinematics zone

T Activate workspace zone

T Deactivate workspace zone

T Activate kinematics zone

T Deactivate kinematics zone

Toolbox

T Re-define tool

T Change active tool

MC_MoveDirectAbsolute MC_MoveDirectRelative
MC_TrackConveyorBelt
MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_DefineTool MC_SetTool

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

HSP HSP HSP HSP HSP HSP HSP HSP HSP HSP
 

Coordinate systems

T Redefine object coordinate systems

MC_SetOcsFrame

Transforming axis coordinates (position, speed, acceleration) T to Cartesian coordinates (speed and acceleration of the tool
center point) - without moving kinematics.

MC_KinematicsTransformation

T

Transform Cartesian coordinates to axis coordinates - without moving kinematics.

MC_InverseKinematicsTransformation

Time-driven inputs/outputs

 Synchronize TIO modules

TIO_SYNC

 Read in process input signals with time stamps

TIO_IOLink_IN

 Read in edges at digital input and associated time stamps

TIO_DI

 Time-controlled output of process output signals

TIO_IOLink_OUT

 Output edges time-controlled at digital output

TIO_DQ

S7-300C functions
Position with analog output Position with digital output

ANALOG DIGITAL

A5E33285102-AG

Page 69

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD / FBD / STL (not S7-1200) / SCL

  


Control counter Control frequency meter Control pulse width modulation
Function modules
Diverse instructions for FM modules Counting/Positioning/ Cam Control/PID Control/Temp Control

COUNT FREQUENC
Pulse


Basic instructions

Extended instructions

Technology

Communication

A5E33285102-AG

Page 71

Basic instructions

Extended instructions

Technology

Communication

The following pages provide an overview of the details and usage of important functions of open communication and S7 communication.

Open communication

Definition: Open exchange of data via PROFINET/Industrial Ethernet between SIMATIC controllers or between SIMATIC controllers and third-party devices. Example of suitable interfaces:  Integrated PROFINET/Industrial Ethernet interfaces of controllers  PROFINET/Industrial Ethernet interfaces of communication modules Due to the open and flexible communication, the size of a sent data package is not automatically known to the receiver.
Connection-oriented with TCP or ISO-on-TCP

With TCP or ISO-on-TCP you establish a connection between the communication partners. TCP or ISO-on-TCP ensures the arrival of the data at the receiver through a transport acknowledgment. In the event of data loss the controller automatically resends the data. To ensure that the data has arrived completely in the application of the receiver with TCP, you must determine: 1. Determine the size of the data package in the sender. 2. Transfer the size of the data package to the receiver. 3. Evaluate the information in the receiver.
Connection-free with UDP

You send data packets to recipients via UDP without establishing a dedicated connection. The controller cannot detect data loss. UDP offers the following transmission options:  Transfer to a specific partner - Unicast  Transfer to a specific group of partners - Multicast; e.g. Multicast via defined Multicast addresses 224.0.1.0.  Transfer to all - Broadcast

Basic instructions Instruction

Extended instructions

Technology

Communication

Logs

Property of the Data package Application and

data transfer size

application example

S7-300/400 S7-1200 S7-1500

   TSEND/TRCV

TSEND_C/TRCV_C   (Connection

TCP or ISO-on-TCP

establishment and

termination are

integrated)

Reliable with acknowledgment

<= 64 KB
Exception S7-1200: <= 8 KB

Exchange large data volumes with acknowledgment. E.g. Send data block with measured value logs to any network node. Secure connections by means of exchange of certificates. Implementation of TCP-based protocols, e.g. FTP(s), MQTT, HTTP(S). Application examples: HTTP: https://support.industry.siemens.com/cs/ document/109763879/library-for-http-communication-(lhttp)?dti=0&lc=en-AE MQTT: https://support.industry.siemens.com/cs/ document/109748872/fb-lmqtt_client-for-simatics7-cpu?dti=0&lc=en-AE



UDP

() 



TUSEND/TURCV (not S7-300)

Fast, without acknowledgment

Distribute data without acknowledgment. E.g. Distribute position data quickly to many devices.
Max. 2048 bytes An exact calculation of the limits is available in the controller manuals.

A5E33285102-AG

Page 73

Basic instructions

Extended instructions

Technology

Communication

S7 communication
Definition: SIMATIC-homogeneous data exchange between SIMATIC CPUs via PROFIBUS or PROFINET/Industrial Ethernet. The S7 communication can route data between PROFINET and PROFIBUS through a controller. With S7 communication, you connect existing S7-300/400 to S7-1200/1500 or migrate existing systems to S7-1200/1500. Recommendation: Use open communication for data exchange between S7-1200/1500 and thus the possibilities of common Ethernet standards.
Coordinated data transmission with BSEND and BRCV BSEND sends data to an instruction of the type BRCV in a partner controller. Since BSEND and BRCV coordinate the data transfer, BSEND/BRCV transport the largest amount of data of all the configured S7 connections. BSEND segments the data area to be sent and sends each segment individually to the partner. BRCV acknowledges the acceptance of the sent segment. When BRCV has acknowledged the receipt of the complete data area, you can start a new send job BSEND.
Uncoordinated data transmission with USEND and URCV USEND sends data to an instruction of the type URCV in a partner controller. URCV does not acknowledge the receipt of the data. The data transfer is not coordinated with the partner controller. This means that USEND can overwrite received data before URCV has written all the data to the target area. If USEND overwrites data, the receiver outputs an error message.

S7-300/400 S7-1200 S7-1500

Basic instructions

Extended instructions

Technology

Instruction

Operating Property state of of the data partner transfer controller

Guaranteed user Application data size for specified partner controller

Communication Notes

   GET



GET_S

   PUT



PUT_S

RUN or STOP
Reliable with acknowledgment

<= 64 KB S7-300: 160 bytes S7-400: 400 bytes S7-1200: 160 bytes S7-1500: 880 bytes Exception S7-1200: <= 8 KB

Accessing data in the partner

controller without any programming. For example, read operating data.

You have to use data blocks with absolute addressing. Symbolic addressing is not

possible. You must also

Changing data in the partner enable this service in the

controller without any program- CPU configuration in the

ming. For example, write

"Protection" area.

parameters in a data block and

change a recipe.





BSEND/ BRCV:

RUN

S7-300 CPs: 32768 S7-300: 65534 bytes S7-400: 65534 bytes S7-1500: 65534 bytes, optimized: 65535 bytes

Exchange large amounts of data. For example, send data block with measured value logs to a SCADA system for further evaluation.

Coordinated transmission (See above)





USEND/ URCV



USEND_S/ URCV_S

Fast, without acknowledgment

S7-300: 160 bytes S7-400: 440 bytes S7-1500: 920 bytes

Control multiple controllers, or send data to multiple controllers. For example, distribute actual values of a sensor to

Uncoordinated transmission (See above)

several controllers.

A5E33285102-AG

Page 75

Basic instructions

Extended instructions

Technology

Communication

Overview of connection types
Automatic connections For basic communication, e.g. controller for the programming device for engineering or for the HMI, the system automatically reserves connections.

Programmed connections
Programmed connections are very flexible. Use TSEND_C and TRCV_C for communication. The system automatically establishes and terminates the connection. Alternatively, for SIMATIC S7-300/400 use the TCON, TDISCON, TSEND, and TRCV instructions. Use programmed connections, e.g.for sporadic connections.  Communication resources are free again after the connection establishment.  Establish and terminate programmed connections in the user program in RUN.

Configured connections
If the connection is interrupted, the controller automatically restores the connection. Create the connection in the network view of SIMATIC STEP 7 and configure the connection.  Connection resources remain permanently occupied.  Connection establishment in STOP

Basic instructions

Extended instructions

Technology

The table shows you the dependency of the connection type on the protocol.

Communication

PG HMI TCP ISO-onTCP UDP ISO Modbus TCP FDL S 7 Communication

Connection type

Automatic

XX - - - -

-

-

-

Programmed

- - XXX -

X

-

-

Configured

- XXXXX

X

X

X

A5E33285102-AG

Page 77

Basic instructions

Extended instructions

Technology

Communication

Instructions in the section "Communication"

Instruction groups
PROFINET and PROFIBUS S7 communication Open User Communication OPC UA Webserver

Page
78 79 81 82 85

Instruction groups

Page

Fail-safe HMI panels (only in the Safety

program)

85

Modbus TCP

86

Communications processors

87

S7-300C functions

96

Communication with iSlave/iDevice

97

Instruction groups
PROFINET CBA MPI communication TeleService

Page
97 98 98

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

PROFINET and PROFIBUS









Only Safety: Fail-safe sending of data via PROFIBUS DP/ PROFINET IO









Only Safety: Fail-safe receipt of data via PROFIBUS DP/ PROFINET IO

SENDDP RCVDP

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

S7 communication

Read data from a remote CPU     Example of an application: Integrating SIMATIC S7-1500
into an already existing system with SIMATIC S7-300.

Write data to a remote CPU     Example of an application: Integrating SIMATIC S7-1500
into an already existing system with SIMATIC S7-300.



 Send data uncoordinated to a partner (URCV)



 Receive data uncoordinated from a partner (USEND)



 Send data in segments to a partner (BRCV)



 Receive data in segments from a partner (BSEND)



Initiate a warm or cold restart in a remote device



Transition a remote device to STOP state



Initiate a restart in a remote device.



Query the status of a remote partner



Receive remote device status change

GET
PUT
USEND URCV BSEND BRCV START STOP RESUME STATUS USTATUS

A5E33285102-AG

Page 79

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

    
   

Query the status of connection that belongs to an SFB instance

CONTROL

Send data to printer

PRINT

Query connection status

C_CNTRL

Only Safety: Fail-safe sending of data via S7 connections SENDS7

Only Safety: Fail-safe receipt of data via S7 connections RCVS7

Other instructions

Note: "S" stands for short since only one parameter is possible

Read data from a remote CPU

GET_S

Write data to a remote CPU

PUT_S

Send data uncoordinated

USEND_S

Receive data uncoordinated

URCV_S

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

Open User Communication

Compact instructions (..._C) Connect and Disconnect are integrated





Manage communication connection and send data via Ethernet or Profibus





Manage communication connection and send data via Ethernet or Profibus

  Manage communication connection and transfer email

Other instructions

    Establish communication connection

    Terminate communication connection

    Send data via communication connection

    Receive data via communication connection

  Resetting the connection

  Check the connection

  Configure interface

TSEND_C
TRCV_C TMAIL_C
TCON TDISCON
TSEND TRCV T_RESET T_DIAG T_CONFIG

A5E33285102-AG

Page 81

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL



Program-controlled IP and connection configuration via SEND/RECEIVE

    Send data via Ethernet (UDP)

    Receive data via Ethernet (UDP)



Change IP configuration parameters



Swap data using FETCH and WRITE via TCP



Swap data using FETCH and WRITE via ISO-on-TCP

OPC UA

OPC UA server

Query to operating system whether the serve method  was called and provision of the input parameters for
processing the method.

Transferring information to the operating system about  the status of method execution and whether the output
parameters of the method are valid.

IP_CONFIG TUSEND TURCV IP_CONF FW_TCP FW_IOT
OPC_UA_ServerMethodPre
OPC_UA_ServerMethodPost

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions

Technology

Communication

Description

LAD/FBD

STL (not S7-1200)

SCL

Schematic flow:

OPC UA client

Preparing data exchange, establishing a session

 Establish connection.

OPC_UA_Connect



Request the current indexes of the namespaces in an OPC UA server

OPC_UA_NamespaceGetIndexList



Register PLC tags with an OPC UA server, get handles for read and write access

OPC_UA_NodeGetHandleList

A5E33285102-AG

Page 83

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL



Determine NodeIds (node parameters) from tag names (BrowseName)

OPC _UA _TranslatePathList

 Register OPC UA method with an OPC UA server

OPC_UA_MethodGetHandleList

Data exchange/data access

 Read values from PLC tags

OPC_UA_ReadList

 Writing new values in PLC tags

OPC _UA _WriteList

 Call method

OPC_UA_MethodCall

Ending data exchange, ending a session

 Terminate connection to the OPC UA server

OPC_UA_Disconnect

 Enable handles for method calls

OPC_UA_MethodReleaseHandleList

Diagnostics



Read connection status and determine quality of a connection

OPC _UA _Connec tionGetStatus

OPC UA: CP 443-1 OPC UA



Establish connection.

UA_Connect

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL



Request the current indexes of the namespaces in an OPC UA server

UA_NamespaceGetIndex



Register PLC tags with an OPC UA server, get handles for read and write access

UA_NodeGetHandleList



Reading out the data from nodes of the connected server using the list of node handles

UA_ReadList



Writing the data in nodes of the connected server using the list of node handles

UA _WriteList



Register PLC tags with an OPC UA server, get handles for read and write access

UA_NodeReleaseHandleList



Terminate connection to the OPC UA server

UA_Disconnect

Web server

    Synchronize user-defined web pages

WWW

Fail-safe HMI panels (only in the Safety program)









For Mobile Panel 277 F IWLAN: Communication with connected device via PROFIsafe

F_FB_MP









For Mobile Panel 277 F IWLAN: Managing of up to 4 panels in the effective range

F_FB_RNG_4

A5E33285102-AG

Page 85

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL





For Mobile Panel 277 F IWLAN: Managing of up to 16 panels in the effective range

F_FB_RNG_16









For Mobile Panels of the second generation: Communication with connected device via PROFIsafe

F_FB_KTP_









For Mobile Panels of the second generation: Managing of panels in the effective range

F_FB_KTP_ RNG

Modbus TCP

  Communicate via PROFINET as Modbus TCP client

MB_CLIENT

  Communicate via PROFINET as Modbus TCP server

MB_SERVER





Communicate redundantly via PROFINET as MODBUS TCP client

MB_RED_CLIENT





Communicate redundantly via PROFINET as a MODBUS TCP server

MB_RED_SERVER



Establish communication between a CPU with integrated PN interface and a partner that supports the Modbus/ TCP protocol.

MODBUSPN



Connection management

TCP_COMM



Communicate via Ethernet as Modbus TCP client

MOD_CLI

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL



Communicate via Ethernet as Modbus TCP server

Communications processors

Not for S7-1500 Software Controller CPU 150xS

Point-to-Point or PtP communication

S7-300/400: Commands for ET 200SP CM PtP









Configure PtP communication port S7-300/400: Only if ET 200SP CM PtP is used

    Configure PtP sender

    Configure PtP recipient

    Configure 3964 (R) protocol

    Send data

    Receive data

    Delete receive buffer

    Read status

    Set accompanying signals

    Get extended functions

A5E33285102-AG

MOD_SRV

Port_Config
Send_Config Receive_Config P3964_Config
Send_P2P Receive_P2P Receive_Reset Signal_Get Signal_Set Get_Features

Page 87

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

    Set extended functions

Set_Features

Instructions with lower memory requirements, but also less functional scope.

Recommendation: Use the instructions specified above. You cannot apply the instructions decentrally in an ET 200.



Configure communication parameters dynamically



Configure serial transmission parameters dynamically



Configure serial receive parameters dynamically



Transmit send buffer data



Enable receive messages



Delete receive buffer



Query RS 232 signals



Set RS 232 signals

USS communication

S7-300/400: Commands for ET200SP CM PtP



Edit communication via USS network

    Communication via USS network (16 drives)

PORT_CFG SEND_CFG RCV_CFG SEND_PTP RCV_PTP RCV_RST SGN_GET SGN_SET
USS_PORT USS_Port_Scan

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

 Communication via USS network (31 drives)



Prepare and display data for the drive

    Data exchange with the drive (16 drives)

 Data exchange with the drive (31 drives)



Read out parameters from the drive

    Read data from drive (16 drives)

 Read data from drive (31 drives)



Change parameters in the drive

    Change data in drive (16 drives)

 Change data in drive (31 drives)

MODBUS (RTU)

S7-300/400: Commands for ET200SP CM PtP

    Configure communication module for Modbus

    Communicate as Modbus master

    Communicate as Modbus slave

USS_Port_Scan_31 USS_Drive
USS_Drive_Control USS_Drive_Control_31
USS_RPM USS_Read_Param USS_Read_Param_31
USS_WPM USS_Write_Param USS_Write_Param_31
Modbus_Comm_Load Modbus_Master Modbus_Slave

A5E33285102-AG

Page 89

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

Recommendation: Use the instructions

Instructions with lower memory requirements, but also specified above. You cannot apply the

less functional scope.

instructions decentrally with a CM or in an

ET 200.



Configure port on the PtP module for Modbus RTU

MB_COMM_LOAD



Communicate via the PtP port as Modbus master

MB_MASTER



Communicate via the PtP port as Modbus slave

MB_SLAVE

Point-to-point connection: CP 340



Receive data

P_RCV



Send data

P_SEND



Output alarm text with up to 4 tags to printer

P_PRINT



Delete receive buffer

P_REST



Read accompanying signals at the RS 232 interface

V24_STAT_340



Write accompanying signals at the RS 232C interface

V24_SET_340

Point-to-point connection: CP 341



Receive or provide data

P_RCV_RK

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

   
  
 
 

Send or fetch data Output alarm text with up to 4 tags to printer Read accompanying signals at the RS 232 interface Write accompanying signals at the RS 232C interface
Point-to-point connection: CP 440 Receive data Send data Delete receive buffer
Point-to-point connection: CP 441 Read accompanying signals at the RS 232 interface Write accompanying signals at the RS 232C interface
MODBUS slave (RTU) Modbus slave instruction for CP 341 Modbus slave instruction for CP 441

P_SND_RK P_PRT341 V24_STAT V24_SET
RECV_440 SEND_440 RES_RECV
V24_STAT_441 V24_SET_441
MODB_341 MODB_441

A5E33285102-AG

Page 91

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

  
        

MODBUS: CP 343-1, CP 443-1

Establish communication between a CP and a partner that supports the OPEN MODBUS/TCP protocol

Communicate as Modbus client

Communicate as Modbus server

ET 200S serial interface ("S_" stands for "serial")

 Receive data

 Send data

 Read accompanying signals at the RS 232 interface

 Write accompanying signals at the RS 232C interface

 Set data flow control using XON/XOFF

 Set data flow control using RTS/CTS



Configure data flow control via automatic Configure operation of the RS 232C accompanying signals

 Modbus slave instruction for ET 200S 1SI

 Send data to a USS slave

MODBUSCP MB_CPCLI MB_CPSRV
S_RCV S_SEND S_VSTAT S_VSET S_XON S_RTS S_V24 S_MODB S_USST

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

 
     
 

 Receive data from a USS slave
 Initialize USS
SIMATIC NET CP Open User Communication Passes data to the CP for transfer via a configured connection Passes jobs to the CP for accepting received data Locks data exchange via a connection with FETCH/WRITE Enable external access to user memory areas of the controller. Data exchange is then possible with FETCH/ WRITE. Connection diagnostics Connection diagnostics, connection establishment, ping request
PROFIBUS DP Data transfer to the CP as DP master or DP slave Data receipt from CP as DP master or DP slave

A5E33285102-AG

S_USSR S_USSI

AG_SEND AG_RECV AG_LOCK
AG_UNLOCK
AG_CNTRL AG_CNTEX

DP_SEND DP_RECV

Page 93

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

 
   
  


Request of diagnostic information Transfer of control information to the PROFIBUS CP
PROFINET IO Data passing to the CP as IO controller or IO device Data receipt from CP as IO controller or IO device Read data record or write data record in IO controller Alarm evaluation through CP343-1 as IO controller
PROFIenergy Triggering or ending an energy saving pause Extended triggering or ending of an energy saving pause Processing of the commands of the IO controller in the PROFIenergy device Transfer of the switch setting from power modules to ET 200S

DP_DIAG DP_CTRL
PNIO_SEND PNIO_RECV PNIO_RW_REC PNIO_ALARM
PE_START_END_CP PE_CMD_CP PE_I_DEV_CP
PE_DS3_Write_ET200_CP

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

Other instructions



Use of a logical trigger for ERPC communication



 Setup of FTP connections from and to an FTP server



Transfer connection data from configurations DB to CP

GPRSComm: CP 1242-7



Establish connection via GSM network



Terminate connection via GSM network



Send data via the GSM network



Receive data via the GSM network



Transfer configuration data to CP

S7-300C functions

ASCII, 3964®



Send data (ASCII, 3964(R))



Fetch data (ASCII, 3964(R))



Reset input buffer (ASCII, 3964(R))

LOGICAL_TRIGGER FTP_CMD IP_CONFIG
TC_CON TC_DISCON
TC_SEND TC_RECV TC_CONFIG
SEND_PTP_300C RCV_PTP_300C RES_RCVB_300C

A5E33285102-AG

Page 95

Basic instructions

Extended instructions

Technology

Communication

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

  
  
  

RK 512 Send data (RK 512) Fetch data (RK 512) Receive and provide data (RK 512)
Communication with iSlave/iDevice
Read data from a communication partner within the local S7 station Write data to a communication partner within the local S7 station Abort a connection to a communication partner within the local S7 station
PROFINET CBA
Update the inputs of the user program interface Update the outputs of the user program interface Release DP interconnections

SEND_RK_300C FETCH_RK_300C SERVE_RK_300C
I_GET I_PUT I_ABORT
PN_IN PN_OUT PN_DP

S7-300 S7-400 S7-1200 S7-1500

Basic instructions

Extended instructions Description

Technology

Communication

LAD/FBD

STL (not S7-1200)

SCL

MPI communication

    
    

Send data to a communication partner outside the local S7 station
Receive data from a communication partner outside the local S7 station
Read data from a communication partner outside the local S7 station
Write data to a communication partner outside the local S7 station
Abort an existing connection to a communication partner outside the local S7 station
TeleService
Transfer email
Establish remote connection to programming device/PC
Establish remote connection to AS
Send text (SMS) message
Transfer email

A5E33285102-AG

Note: "X" stands for the MPI interface X_SEND X_RCV X_GET X_PUT X_ABORT

TM_MAIL PG_DIAL AS_DIAL SMS_SEND AS_MAIL

Page 97

S7-300 S7-400 S7-1200 S7-1500

Optional instructions Appendix "Optional instructions"
Description
SIMATIC Ident
    Read data from transponder     Read out data from code reading system     Reset reader     Set program at code reading system     Write data to the transponder
Status queries     Read out status of the reader     Read out status of the transponder
Extended functions     Load the configuration data to the reader     Back up configuration data from the reader     Detect transponder population     Read out data of the TID memory of a transponder

LAD/FBD

STL (not S7-1200)

SCL

Read Read_MV Reset_Reader Set_MV_Program
Write
Reader_Status Tag_Status
Config_Download Config_Upload Inventory Read_TID

Optional instructions

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

    Read out UID of an HF transponder     Switch on/off antenna of RF300 readers     Set UHF parameters in the reader     Write EPC ID of a UHF transponder









Ident function for trained users with command transfer in a data structure









Complex Ident function for experts with all commands and possibilities

Legacy



Read out data of the EPC memory of a transponder

    Write EPC memory of a UHF transponder

    Switch on/off antennas of RF620R/RF630R

    Reset MOBY D reader

    Reset MOBY U reader

    Reset MV code reading device

Read_UID Set _ ANT_ RF30 0
Set_Param Write_EPC_ID Advanced_CMD
Ident_Profile
Read_EPC_Mem Write_EPC_Mem Set _ ANT_ RF60 0 Reset_MOBY_D Reset_MOBY_U
Reset_MV

A5E33285102-AG

Page 99

Optional instructions

S7-300 S7-400 S7-1200 S7-1500

Description

LAD/FBD

STL (not S7-1200)

SCL

    Reset RF200 reader     Reset RF300 reader     Reset RF600 reader









Reset function for experts allows universally adjustable parameters

Energy Suite

Calculate operating-mode-related energy data of   machines and systems for uniform efficiency evaluation
according to measuring regulation

Create efficiency protocol in CSV format on the SIMATIC   memory card of the CPU according to measuring regula-
tion
SINAMICS
  Cyclic control of SINAMICS as basic positioner
Cyclic control of SINAMICS as basic positioner with stan  dard telegram 1111;
Position-controlled axis

Reset_RF200 Reset_RF300 Reset_RF600 Reset_Univ
EnS_EEm_Calc
EnS_EEm_Report
TO_BasicPos SinaPos

S7-300 S7-400 S7-1200 S7-1500

Optional instructions

Description

LAD/FBD

STL (not S7-1200)

SCL





Cyclic control of SINAMICS with standard telegram 1; speed-controlled axis





Acyclic read/write of max. 16 parameters from/on the SINAMICS inverter





Acyclic read/write a parameter from/on the SINAMICS inverter





Control feed unit of a SINAMICS S120 via standard telegram 370

SinaSpeed SinaPara SinaParaS SinaInfeed

A5E33285102-AG

Page 101

Optional instructions

Siemens AG Digital Industries Postfach 48 48 90026 Nuremberg GERMANY

Subject to change without prior notice. A5E33285102-AG © Siemens AG 2019

https://www.siemens.com/automation

Short document  03/2016
Security with SIMATIC controller
SIMATIC S7-300/400/WinAC/1200/1500
https://support.industry.siemens.com/cs/ww/en/view/77431846

 Siemens AG 2016 All rights reserved

Warranty and liability
Warranty and liability

Note

The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications ­ e.g. Catalogs ­ the contents of the other documents have priority.
We do not accept any liability for the information contained in this document. Any claims against us ­ based on whatever legal reason ­ resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ("Produkthaftungsgesetz"), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ("wesentliche Vertragspflichten"). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of the Siemens AG.

Security information

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit http://www.siemens.com/industrialsecurity.
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under http://www.siemens.com/industrialsecurity.

security

Entry-ID: 77431846, V2.0, 03/2016

2

Table of contents

Table of contents

Warranty and liability................................................................................................... 2

1 Minimizing Risk through Security.................................................................... 4

1.1 1.2 1.2.1 1.2.2 1.3 1.4 1.5

Security strategies................................................................................ 4 Implementation of strategies into solutions .......................................... 5 Strengthening the sense of responsibility ............................................ 5 The Siemens protection concept: "Defense in Depth" ......................... 6 Differences between office security and industrial security ................. 7 Differences between functional safety and industrial security ............. 7 Security management .......................................................................... 8

2 Security Mechanisms of the S7 CPU ............................................................... 9

2.1

Block protection .................................................................................... 9

2.2

Online access and function restrictions.............................................. 12

2.3

Copy protection (S7-1200 (V4) / S7-1500)......................................... 13

2.4

Local access protection (S7-1500)..................................................... 14

2.5

Further measures for protecting the CPU .......................................... 15

3 Security Mechanisms of the S7-CPs ............................................................. 17

3.1 3.2 3.3 3.4 3.4.1 3.4.2 3.4.3 3.4.4

Stateful Inspection Firewall ................................................................ 17 Data encoding via VPN ...................................................................... 18 NAT/NAPT (address translation)........................................................ 18 Secure IT functions ............................................................................ 19 File Transfer Protocol (FTP)............................................................... 19 Network Time Protocol (NTP) ............................................................ 19 Hypertext Transfer Protocol (HTTP) .................................................. 20 Simple Network Management Protocol (SNMP) ................................ 20

4 The Achilles Certification Program................................................................ 21

5 Literature .......................................................................................................... 22

6 History............................................................................................................... 23

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

3

 Siemens AG 2016 All rights reserved

1 Minimizing Risk through Security

1

Minimizing Risk through Security

Increased networking and the use of proven technologies of the office world in automation systems lead to increased security requirements. It is not sufficient to offer only superficial and limited protection, since attacks from outside may occur on several levels. A deep understanding of security and how to apply it is required for optimal protection.

1.1

Security strategies

Motivation
The first priority in automation is maintaining control over the production process. Measures intended to reduce the security threats must not interfere with this priority. The use of an adequate protection concept should ensure that only authenticated users can carry out (authorized) operations, restricting access to those operation options approved for use by the authenticated user. The operation is to be carried out exclusively in clearly planned access paths to ensure that the production process will continue to operate securely during a command without any risks for people, the environment, the product, the goods to be coordinated and the business of the company.

Strategies Based on these statements, a protection concept comprises general defense strategies which are intended to resist the following attacks: · decrease of availability (e.g. denial of Service)
· bypassing single security mechanisms (such as "man in the middle")
· intentional incorrect operation by authorized users (such as stealing passwords)
· incorrect operations due to misconfigured user privileges
· unauthorized monitoring of data (such as recipes and business secrets or the functioning of the machines and systems and their security mechanisms)
· modifying data (for example to alter alarm levels) · deleting data (for example login files for covering attacks). The Siemens defense strategy uses the mechanisms of "Defense in Depth".

Defense in Depth
The concept of Defense in Depth contains layered structures of security and recognition measures that are superior to the security level of stand-alone systems. It has the following features:
· Capability to detect attackers that try to break through or bypass the Defense in Depth structure.
· A weak point in one layer of this architecture can be temporarily compensated for by the defensive strategies in other layers.
· The system security has its own layer structure within the overall layered structure of the networks security.

security

Entry-ID: 77431846, V2.0, 03/2016

4

1 Minimizing Risk through Security

1.2
1.2.1

Implementation of strategies into solutions
Strengthening the sense of responsibility
A successful implementation of the security strategy into solutions in the automation systems can only be achieved if all the parties involved cooperate responsibly. This includes:
· manufacturers (development, system test, security test)
· systems integrator (planning, structure, factory acceptance test)
· owner/operators (operation and administration). The strategies and their implementation must be supervised and updated throughout the complete service life of the system (from the beginning of submitting the offer, planning and design to the migration and de-installation of a system). The following capabilities make it possible for a protection concept in automation systems to be effective:
· the use of highly available and system-tested products, which have hardened and pre-defined security settings, and have been especially designed for industrial applications,
· a modern configuration, using state-of-the-art technologies and standards and allows for a system design adapted to the customer's security needs,
· the careful and responsible operation of systems and components in accordance with the uses defined by the manufacturer.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

5

 Siemens AG 2016 All rights reserved

1 Minimizing Risk through Security

1.2.2

The Siemens protection concept: "Defense in Depth"

Figure 1-1

Siemens follows the "Defense in Depth" strategy in order to achieve the required security goals. The approach of this strategy is a multi-layer security model consisting of the following components: · Plant Security · Network security · System integrity
Plant Security
· Physical Security · Policies and procedures

DCS/ SCADA*

Network Security
· Security cells and DMZ · Firewalls and VPN
System Integrity
· System hardening · User Account Management · Patch Management · Malware detection and prevention

The advantage of this strategy is the fact that an attacker first has to break through several security mechanisms to do any damage. The security requirements of each layer can be taken into account individually.
The Siemens solution for plant security
Implementation of an appropriate, comprehensive security management is the basis for planning and realizing an industrial security solution. Security management is a process mainly comprising four steps:
· Risk analysis with definition of risk reduction measures: These measures must be defined for the plant, depending on the threats and risks identified.
· Determination of guidelines and coordination of organizational measures.
· Coordination of technical measures.
· A consistent security management process with regular or event-dependent repetition of risk analysis.
The Siemens solution for network security
If controllers or other intelligent devices with no or minimum self-protection are located in a network segment, a good option to consider is to create a secured network environment for these devices. One approach to achieve this is by the use of network security appliances. . Additional security can be provided by segmenting individual sub-networks, e.g. through a cell protection concept or a demilitarized zone (DMZ).

security

Entry-ID: 77431846, V2.0, 03/2016

6

 Siemens AG 2016 All rights reserved

1 Minimizing Risk through Security

Note

The Siemens security solution was developed particularly for the requirements of an automation environment, in order to meet the increasing demand of network security, to reduce the susceptibility to failure of the entire production plant and thus to increase its availability.
Further information on this topic is available in the Siemens Industry Online Support (Entry ID: 27043887). http://support.automation.siemens.com/WW/view/en/27043887

The Siemens solution for system integrity
In order to maintain the system integrity, it is important to minimize the vulnerabilities in PC systems and in the control level. Siemens meets this requirement with the following solutions:
· use of antivirus and whitelisting software,
· patch management,
· user authentication for machine or plant operators,
· integrated access protection mechanisms in automation components,
· protection of the program code through know-how protection, copy protection, and assignment of passwords.

1.3

Differences between office security and industrial

security

The security mechanisms integrated in PCs and Windows operating systems generally provide a high level of security. However, these measures are typically designed for the requirements of office environments. In industrial security, the objects to be protected are quite similar, but, to some extent, their priorities differ significantly. While the top priorities in office IT are typically the confidentiality and integrity of information, plant availability or operability come first in industrial security. When selecting appropriate security measures, it must always be ensured that they provide the necessary level of protection without having unacceptable impact on the actual operation.

1.4

Differences between functional safety and industrial

security

Functional safety addresses protection of the controlled environment against abnormal operation of the system. On the other hand security addresses protection of normal operation of a system against intentional or unintentional violations. However safety systems also need to be particularly protected against such violations.
It's a machine vendor's task to establish appropriate safety mechanisms. These mechanisms must not primarily be included into the defense in depth concept, even if they can contribute.
Whereas safety threats are basically static, security threats are dynamic during lifetime of a machine / plant. Therefore the security protection needs to be continuously revised.

security

Entry-ID: 77431846, V2.0, 03/2016

7

1 Minimizing Risk through Security

1.5

Security management

Security management is an integral part of an industrial security concept to address all security-relevant aspects of an automation solution ­ either a single machine, a plant section or an entire plant. As the potential threats to an automation solution change over its life cycle a process to monitor and detect these threats, known as security management, should be considered. The objective of this process is to achieve the necessary security level of an automation solution and to maintain it on a permanent basis. The risk analysis component contained within a security management process ensures that only appropriate countermeasures will be implemented to reduce the risks. An example of a security management process is as follows:
Figure 1-2

Risk analysis

Validation and improvement

Guidelines, organizational measures

Technical measures

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

8

 Siemens AG 2016 All rights reserved

2 Security Mechanisms of the S7 CPU

2

Security Mechanisms of the S7 CPU

The following chapters show which integrated access protection mechanisms the SIMATIC S7 controllers offer

2.1

Block protection

Overview

In STEP 7 V5.x and in STEP 7 (TIA Portal), there are different protection facilities to protect the know-how of the programs in the blocks against unauthorized persons.

· Know-how protection

· S7 Block Privacy
If a block protected by this function is opened, only the block interface (IN, OUT and IN/OUT parameters) and the block comment can be read. The program code, temporary/static variables and the network comments are not displayed. It is not possible to modify a protected block.
The following table gives an overview of the individual know-how protection facilities:
Table 2-1

Development environment:

Language

Module protection

Validity

STEP 7 V5.x

· LAD / FBD / STL Know-how protection

· SCL

(not password-protected)

· S7-GRAPH

· CFC

S7-300/400/ WinAC

STEP 7 V5.5
STEP 7 (TIA Portal)

· LAD / FBD / STL S7 Block Privacy

· S7-SCL

(password-protected)

· LAD / FBD / STL Know-how protection

· S7-SCL

(password-protected)

· S7-GRAPH

· LAD / FBD · S7-SCL

· LAD / FBD / STL · S7-SCL

S7-300/400 S7-300/400
S7-1200 (V4) S7-1500

Overview of the blocks
S7 Block Privacy With the S7 Block Privacy, only FBs and FCs can be protected. Know-how protection With the attribute KNOW_HOW_PROTECT a know-how protection mechanism for blocks of type OB, FB and FC can be activated.

Instance data blocks cannot be protected manually since they depend on the know-how protection of the assigned FB. This means that the instance data block of a password-protected FB also contains a know-how protection. This does not depend on whether the instance data block has been explicitly created or generated by a block call.

security

Entry-ID: 77431846, V2.0, 03/2016

9

 Siemens AG 2016 All rights reserved

2 Security Mechanisms of the S7 CPU

In TIA Portal are also global data blocks allowed. ARRAY-data blocks could not be protected with know-how protection.

Limitations Blocks with a block protection cannot be further processed in STEP 7 (without correct password). Nor are testing and commissioning functions such as "Monitor blocks" or "Stops" possible. Only the interfaces of the block remain visible. The following actions can be carried out with a protected block:
· copy and delete
· call the protected block
· online/offline comparison
· load

S7 Block Privacy
S7 Block Privacy is a STEP 7 expansion pack from V5.5 onwards for protecting functions and function blocks.
When using S7 Block Privacy, the following must be observed:
· S7 Block Privacy is operated via the context menus.
· Blocks once protected can only be unprotected with the correct password and according to the enclosed recompilation information. Therefore it is recommended to keep the password in a safe place and/or make copies of the unprotected blocks.
· Protected blocks can only be loaded to 400 CPUs from version 6.0 onwards, on 300 CPUs only from version 3.2.
· If there are sources in the project, the protected blocks can be restored by means of the sources by compilation. The sources can be completely removed from the S7 Block Privacy.

Note

Further information for setting the block protection with the S7 Block Privacy can be found in the FAQ "How can the improved block protection for FBs and FCs be set up in STEP 7 V5.5? (Entry ID: 45632073). http://support.automation.siemens.com/WW/view/en/45632073

Know-how protection (STEP 7 V5.x)
Blocks in STEP7 V5.x can be protected by adding a block attribute. The code word KNOW_HOW_PROTECT is indicated during programming of the block in the source.
The block protection can only be revoked with the STL source. If the STL sources are no longer available to the program or the project, the protection for the blocks cannot be removed.
It is recommended to use S7-Block Privacy instead as an improved know-how protection mechanism.

Note

Further information on setting up the block protection can be found in the KNOW_HOW_PROTECT FAQ "How can a block protection be installed for blocks I created myself?" (Entry ID: 10025431).

http://support.automation.siemens.com/WW/view/en/10025431

security

Entry-ID: 77431846, V2.0, 03/2016

10

2 Security Mechanisms of the S7 CPU

Know-how protection (TIA Portal)
In the TIA Portal, the block protection is set via the context menu by indicating a password.
The following must be observed:
· In the comparison between the offline and the online version of know-howprotected blocks, only the data that are not protected will be compared.
· No type of a know-how-protected block can be created in the library. If such a block is added to a library, the new copying template also contains the knowhow protection. There, you need the correct password of the know-howprotected block for using the copies. If a know-how-protected block is to be used in a library without disclosing the password, the following items have to be observed for programming these blocks:
­ During compilation all the code and data blocks called must be known. So it is not possible to make any indirect calls.
­ For programming the blocks, the use of PLC variables and global data blocks should be avoided.

Note

Further information can be found in the STEP 7 (TIA Portal) online help at: · Set up know-how protection for blocks · Open know-how-protected blocks · Remove know-how protection for blocks

For S7-1200 (V4) and S7-1500-PLCs an additional copy protection can be set up which binds execution of the block to the PLC to the memory card with the defined serial number.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

11

2 Security Mechanisms of the S7 CPU

2.2

Online access and function restrictions

CPU protection levels

The S7 CPU offers three (S7-300/S7-400/WinAC) or four (S7-1200(V4)/S7-1500) access levels to limit the access to certain functions. Setting the access level and the passwords restricts the functions and memory areas that are accessible without a password. The individual access levels and the respective passwords are defined in the object properties of the CPU.

Table 2-2

Access levels

Access restriction

Level 1

The hardware configuration and the blocks can be read and modified by

(no protection) anyone.

Level 2
(write protection)

With this access level, only read access is allowed without a password, which means that the following functions can be carried out:
· reading the hardware configuration and the blocks
· reading diagnostic data
· loading the hardware configuration and the blocks into the programming device.
· changing the operating state (RUN/STOP) (not for S7-300 / S7-400 / WinAC)
Without the password the following functions cannot be carried out:
· loading the blocks and hardware configuration into the CPU
· writing test functions
· firmware update (online)

Level 3
(write/read protection)

At this access level, only · HMI access and · reading diagnostic data is possible without a password. Without the password the following functions cannot be carried out: · loading the blocks and hardware configuration into or from the CPU, · writing test functions · changing the operating state (RUN/STOP)
(not for S7-300 / S7-400 / WinAC) · firmware update (online).

Level 4 (complete protection) S7-1200 (v4) S7-1500

With a complete protection, the CPU forbids: · read and write access to the hardware configuration and the blocks, · HMI access, · modifications in the server function for PUT/GET communication, · read and write access in the area "Accessible devices" and in the
project for devices that are switched online.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

12

2 Security Mechanisms of the S7 CPU

Operating behavior with activated protection level
A password-protected CPU has the following behavior during operation:
· The protection of the CPU becomes effective when the settings have been loaded into the CPU and a new connection is established.
· Before an online function can be carried out, it is first checked whether it is admissible, and if there is a password protection, the user is asked to enter the password.
· The functions protected by a password can only be carried out by a single PG/PC at a time. No other PG/PC can login with the same password.
· The access rights to the protected data applies only for the duration of the online connection or until the access authorization has been removed manually with "Online > Remove access rights"

Note

The configuration of an access level does not replace the know-how protection. This prevents unauthorized modifications in the CPU by restricting the download rights. The blocks on the SIMATIC memory card, however, are not write or readprotected. For protecting the program code, the know-how protection must be used.

2.3

Copy protection (S7-1200 (V4) / S7-1500)

Note

Copy protection makes it possible to associate the entire program or the individual block with a specific SIMATIC memory card or CPU. By associating the program elements with a serial number of a SIMATIC memory card or a CPU, it is only possible to use this program or this block in combination with this defined SIMATIC memory card or CPU.
If a block with a copy protection is loaded into a device that does not correspond to the serial number defined, the complete loading process is rejected. This also means that even blocks without copy protection cannot be loaded.
The copy protection and the entries of the respective serial numbers are made in the block properties.
If such a copy protection is installed for a block, it is important that this block also contain block know-how protection. Without know-how protection, anyone would be able to remove the copy protection.
However, the copy protection must be installed first, since the settings for the copy protection are write-protected if the block has know-how protection.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

13

2 Security Mechanisms of the S7 CPU

2.4

Local access protection (S7-1500)

Locking the CPU
The SIMATIC S7-1500 has a front flap with a display and operating buttons. For inserting and removing the SIMATIC memory card and for manual changes of the CPU operating state, it must be opened.
For the protection of the CPU against unauthorized access, this front flap can be secured with the locking hatch. Two options are available:
· securing the front flap with a lock
· securing the front flap with a seal
Figure 2-1

Locking the display
In the display you can block the access to a password-protected CPU (local locking). The access protection is only effective when the operating mode switch is in the RUN position. The access protection is effective independent of the password protection, i.e. even if somebody accesses the CPU through a connected programming device and enters the correct password, the access to the CPU will still be denied. The access protection can be set separately for every access level in the display, which means that for example read access is locally permitted, but write access is not permitted locally. You can configure a password for the display in STEP 7 in the properties of the CPU in such a way that the local access protection is ensured by a local password.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

14

2 Security Mechanisms of the S7 CPU

2.5

Further measures for protecting the CPU

Note

The following measures additionally increase the protection against unauthorized access to the functions and data of the S7 CPU from outside and within the network: · deactivate or restrict the web server · deactivate the time synchronization via NTP server · deactivate the PUT/GET communication (S7-1200(V4)/ S7-1500)
In the default configuration of the modules, these functions are deactivated.

Security functions for the web server
With the web server you can remote control and monitor the CPU via the company Intranet. Evaluations and diagnostics are therefore possible over great distances. However, the risk of unauthorized accesses to the CPU can increase by activating the web server. If you wish to activate the web server, we recommend the following measures:
· do not connect the CPU web server directly to the internet
· protect access to the web server via the use of appropriate network segmentation, DMZ, and security appliances.
· access the web server via the secure transmission protocol "https",
· configure the user and functions rights via the user list ­ create a user ­ define execution rights ­ assign passwords.

Users can only perform the functions that have been established as part of the user administration configuration. Once a user has been configured he can log in with his password and access the websites according to his access rights. By default, a user with the name "Everybody" has been set. This user has minimum access rights (read access to the intro and start page). The user "Everybody" has been set without a password and cannot be modified.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

15

2 Security Mechanisms of the S7 CPU
Deactivate the PUT/GET communication (S7-1200(V4)/ S7-1500) The CPU can be the server for a number of communication services. In this mode, other communication devices can access the CPU data without having been configured or programmed explicitly for the CPU. In the same way the local CPU does not have the possibility of controlling the communication to the clients. Whether this type of communication is admissible for the local CPU or not, is defined in the object properties of the CPU. In the default configuration, the option "Access via the PUT/GET communication..." is deactivated. In this case, read and write access to the CPU data is only possible for those communication connections which require programming for the local CPU and for the communication partner (e.g. Access via BSEND / BRECV instructions, is possible even in the default configuration). Communications, for which the local CPU is only server (that means, that there is no configuration / programming of the communication to the communication partner), are not possible in the operation of the CPU. This includes: · PUT/GET, FETCH/WRITE or FTP access via communication modules
· PUT/GET access by other S7-CPUs
· HMI access via PUT/GET communication

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

16

3 Security Mechanisms of the S7-CPs

3
Note

Security Mechanisms of the S7-CPs
The following chapters show which security mechanisms the SIMATIC S7-CPs (CP x43-1 Advanced V3 and CP 1x43-1) offer.
The functions in CP 1543-1 can be configured from STEP 7 Professional V12 including update 1 onwards. The CP 1243-1 needs STEP 7 Professional V13 Update 3 or higher..

Figure 3-1

 Siemens AG 2016 All rights reserved

CP 1543-1

CP 1243-1

CP 343-1 Advanced CP 443-1 Advanced

3.1

Stateful Inspection Firewall

Description
Firewalls make it possible to filter the incoming and outgoing traffic that flows through a system. A firewall can use one or more sets of "rules" to inspect network packets as they come in or go out of network connections and either allows the traffic through or blocks it. The rules of a firewall can inspect one or more characteristics of the packets such as the protocol type, source or destination host address, and source or destination port.
The filter capabilities of a package filter can be improved considerably if the IP packages are checked in their proper context. For instance, a UDP package arriving from an external computer should only be forwarded internally if another UDP package has been sent to that computer shortly before from within the network (e.g. in case of a DNS request of a client in the internal network to an external DNS server). To enable this, the package filter must maintain records of all states to all current connections. Package filters that are able to do this are therefore referred to as Stateful.

Properties Stateful Inspection Firewalls have the following properties: · with TCP connections: Imitation of the status monitoring of a complete TCP/IP protocol stack · with UDP connections: simulation of virtual connections · creation and deletion of dynamic filter rules.

security

Entry-ID: 77431846, V2.0, 03/2016

17

 Siemens AG 2016 All rights reserved

3 Security Mechanisms of the S7-CPs

3.2

Data encoding via VPN

Description
A VPN (virtual private network) is a private network that uses a public network (like the Internet) for the transmission of private data to a private target network. The networks need not be compatible with one another.
Although VPN uses the addressing mechanisms of the carrier network it still uses its own network packages to separate the transport of private data packages from the others. Due to this fact, the private networks appear as a shared logical (virtual) network.

IPSec

An important aspect for the communication of data across network boundaries is IPSec (IP security). It is a standardized protocol suite and provides for manufacturer-independent, secure, and protected data exchange via IP networks. The main object of IPSec is protecting and securing the data during a transmission via an insecure network. Known weaknesses such as the intercepting and changing of data packages can be prevented by this security standard, due to encrypted data packages and authentication of the devices.

3.3

NAT/NAPT (address translation)

Description
Network Address Translation (NAT) / Network Address Port Translation (NAPT) are methods for converting private IP addresses into public IP addresses.

Address conversion with NAT
NAT is a protocol for address conversion between two address spaces. The main task is the conversion of public addresses, i.e. IP addresses used and routed on the Internet into private IP addresses and vice versa.
Through the use of this technology the addresses of the internal network are not visible in the external network. In the external network, the internal nodes are only visible via external IP addresses defined in the address conversion list (NAT table).
The typical NAT is a 1:1 conversion, i.e. a private IP address is converted to a public one.
The target address for the internal nodes is therefore an external IP address.
The NAT table contains the assignment of private and public IP addresses and is configured and managed in the gateway or router.

Address conversion with NAPT
NAPT is a variant of NAT and is often considered to be identical. The difference to NAT is the fact that ports can be converted too with this protocol.
The IP address is no longer converted 1:1. Instead, there is only one public IP address which is converted to a number of private IP addresses by adding port numbers.
The target address for the internal nodes is an external IP address with a port number.
The NAPT table contains the assignment of external ports to private IP addresses including port numbers and is configured and managed in the gateway or router.

security

Entry-ID: 77431846, V2.0, 03/2016

18

3 Security Mechanisms of the S7-CPs

3.4

Secure IT functions

3.4.1

File Transfer Protocol (FTP)

Description
The File Transfer Protocol is a specified network protocol for data transmission between an FTP server and an FTP client, or between two FTP servers.
FTP allows for exchanging data, creating and renaming directories, and also deleting them. The communication between FTP client and FTP server is an exchange of text-based commands. Each command sent by the FTP client results in a feedback by the FTP server in the form of a status code and a message in plain text.
For this, FTP creates two logical connections: a control channel via port 21 for the transmission of FTP commands and their responses as well as a data channel via port 20 for data transmission.
With a passive FTP, the two channels are initiated by the FTP client, whereas with active FTP the server initiates one of the channels to the client.

Solution for a secure FTP is FTPS
Secure data transmission with FTP is achieved with a combination of FTP and the SSL protocol and uses the same ports as in the normal FTP mode (port 20/21).
A certificate which is generated and delivered with the configuration of the security CP is used as the key for SSL.
Secure FTP data transfer with CPx43-1 Advanced V3 is only possible if the security function is enabled and is explicitly permitted in the configuration of the CP.

3.4.2

Network Time Protocol (NTP)

Description
The Network Time Protocol (NTP) is a standardized protocol for synchronizing the time on several computers / components across the network. The precision is within the millisecond range.
An NTP server makes the time available to the NTP clients.

NTP (secured)
NTP (secure) allows for secure and authenticated time synchronization by means of authentication methods and a joint encryption code. Both the NTP server and the NTP clients must support this function.
A secure time synchronization is supported by CP x43-1 Advanced V3 and CP 1x43-1, if the Security Function is activated and the expanded NTP configuration has been explicitly activated in the configuration.

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

19

 Siemens AG 2016 All rights reserved

3 Security Mechanisms of the S7-CPs

3.4.3

Hypertext Transfer Protocol (HTTP)

Description
The Hypertext Transfer Protocol (HTTP) is part of the family of Internet protocols and is a standardized procedure for transferring data within a network. HTTP is primarily used for loading websites from a web server to a web browser.

HTTPS

Data transported via HTTP are readable as plain text and can be intercepted by third parties. Today particularly ­ in the age of online banking, online shopping, and social networks ­ it is important that the transmission of confidential and personal data is secure and protected against unauthorized access. The Hypertext Transfer Protocol Secure (HTTPS) is the easiest way of securely transmitting data. HTTPS has the same structure as the HTTP protocol, but in addition it uses the Secure Socket Layer Protocol for encryption. Many of the latest models of SIMATIC CPU's and CP's support HTTPS, and can be configured to use HTTPS exclusively, providing an increased level of security for data transmission.

3.4.4

Simple Network Management Protocol (SNMP)

Description
SNMP ­ Simple Network Management Protocol ­ is a UDP-based protocol that was specified particularly for the administration of data networks and in the meantime has established itself also as a de facto standard for TCP/IP devices. The individual nodes in the network ­ network components or terminals ­ feature a SNMP agent that provides information in a structured form. This structure is referred to as MIB (Management Information Base). In the network node, the agent is usually implemented as firmware functionality.

Management Information Base ­ MIB
An MIB (Management Information Base) is a standardized data structure consisting of different SNMP variables, which are described by a language independent of the target system. Due to the cross-vendor standardization of MIBs and access mechanisms, even a heterogeneous network with components from different manufacturers can be monitored and controlled. If component-specific, nonstandardized data is necessary for network monitoring, this data can be described by the manufacturers in "private MIBs".

Secure SNMP (SNMPv3)
There are several versions of SNMP: SNMPv1, SNMPv2, and SNMPv3. The original version SNMPv1 and SNMPv2 are sometimes still used. However, it is recommendable not to use SNMPv1 and SNMPv2 since security mechanisms have not been implemented in these versions, or only in a restricted way. From version 3, SNMP additionally offers user administration with authentication and optional encryption of data packages. Security with SNMP was substantially improved by these aspects. The secure SNMP is supported by CP x43-1 Advanced V3 and CP 1x43-1, if the Security Function is activated and SNMPv3 has been explicitly activated in the configuration.

security

Entry-ID: 77431846, V2.0, 03/2016

20

4 The Achilles Certification Program

4

The Achilles Certification Program

Motivation
Security in industrial automation can only be achieved if manufacturers, suppliers, users and operators cooperate. An important part of the cooperation is the creation of international standards that are to be applied universally as a basis for futureoriented security concepts and solutions.

Creating uniform standards
The standards
· ISA 99 "Manufacturing and Control Systems Security",
· the IEC 62443 "Security for Industrial Process Measurement and Control ­ Network and System Security",
· the German guideline VDI/VDE 2182 "Informationssicherheit in der industriellen Automatisierung" (information security in industrial automation),
are of particular importance for the creation of uniform standards that are to be used universally.
While the latter deals with the procedures and mechanisms for securing automation components and systems, the ISA Security Compliance Institute (ISCI) meets the challenge of creating a uniform certification framework.

The Achilles certification program
The Achilles certification program by Wurldtech is considered an international standard for cyber security.
The certificate confirms that the automation systems have the necessary communications robustness to improve the security and stability of industrial plants. Achilles certification serves as an important criterion for the selection of products with robust communication systems. The Achilles certification program confirms that the Siemens control systems are resistant to network attacks. The certification program is divided in two levels:
· Achilles Communications Certification Level 1: The first level of the certification program confirms the robustness of the Ethernet, IP, ARP, ACMO, TCP and UDP in the modules with a special test program. If they meet all the test requirements, the modules get the Achilles Level 1 certification.
· Achilles Level 2 Certification: This second level comprises the same protocols as Level 1. However, every protocol is tested more intensively. In addition, Level 2 contains more tests, Denial-of-Service (DoS) tests with a higher link rate and more requirements. The tested Siemens Industry modules all have the Achilles Level 2 certification.

Note

Please find an overview of certified modules on the Wurldtech website at: http://wurldtech.com/product_services/certify_educate/certified_products/
Information about the test environment and the test procedure can be found on the Wurldtech website at http://wurldtech.com/product_services/

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

21

 Siemens AG 2016 All rights reserved

5 Literature

5

Literature

Bibliography
This list is by no means complete and only presents a selection of related references. Table 5-1

Subject /1/ STEP7
SIMATIC S7-300/400
/2/ STEP7 SIMATIC S7-300/400
/3/ STEP7 SIMATIC S7-300
/4/ STEP7 SIMATIC S7-400
/5/ STEP7 SIMATIC S7-1200
/6/ STEP7 SIMATIC S7-1500
/7/ SIMATIC NET security
/8/ S7-1500 Manual /9/ S7-1200 Manual /10/ S7-400 Manual

Title
Automating with STEP7 in AWL and SCL Author: Hans Berger Publicis MCD Verlag ISBN: 978-3-89578-397-5
Automating with STEP 7 in KOP and FUP Author: Hans Berger Publicis MCD Verlag ISBN: 978-3-89578-296-1
Automating with SIMATIC S7-300 inside TIA Portal Author: Hans Berger Publicis MCD Verlag ISBN: 978-3-89578-357-9
Automating with SIMATIC S7-400 inside TIA Portal Author: Hans Berger Publicis MCD Verlag ISBN: 978-3-89578-372-2
Automating with SIMATIC S7-1200 Author: Hans Berger Publicis MCD Verlag ISBN: 978-3-89578-355-5
Automating with SIMATIC S7-1200 Author: Hans Berger Publicis MCD Verlag ISBN: 978-3895784033
SIMATIC NET Industrial Ethernet Security Basic Principles and Application Configuration Manual http://support.automation.siemens.com/WW/view/en/56577508
SIMATIC S7-1500 Automation system http://support.automation.siemens.com/WW/view/en/59191792
SIMATIC S7-1200 Automation system http://support.automation.siemens.com/WW/view/en/36932465
SIMATIC S7-400 Automating System S7-400 CPU-Data http://support.automation.siemens.com/WW/view/en/53385241

/11/ S7-300 Manual /12/ CP343-1 Advanced /13/ CP443-1 Advanced

SIMATIC S7-300, CPU 31xC and CPU 31x: Technical Data http://support.automation.siemens.com/WW/view/en/12996906
System Manual Part B CP343-1 Advanced http://support.automation.siemens.com/WW/view/en/62046619
System Manual Part B CP443-1 Advanced http://support.automation.siemens.com/WW/view/en/59187252

/14/ Manual CP1543-1

SIMATIC NET S7-1500 - Industrial Ethernet CP 1543-1 http://support.automation.siemens.com/WW/view/en/76476576

security

Entry-ID: 77431846, V2.0, 03/2016

22

6 History

Internet link specifications

This list is not complete and only represents a selection of relevant information

Table 5-2

Subject

Title

\1\ Reference to the entry

http://support.automation.siemens.com/WW/view/en/77431846

\2\ Siemens Industry Online Support

http://support.automation.siemens.com

\3\ Industrial Ethernet Security

http://support.automation.siemens.com/WW/view/en/18701555/ 130000

\4\ Getting Started S7-1500

http://support.automation.siemens.com/WW/view/en/71704272

\5\ Overview pages ,,All-round protection with Industrial Security"

https://support.industry.siemens.com/cs/de/en/view/50203404

\6\ Overview pages ,,Industrial Remote Communication"

https://support.industry.siemens.com/cs/de/en/view/64721753

\7\ Overview possible constellation with IP-based Remote Networks

https://support.industry.siemens.com/cs/de/en/view/26662448

\8\ SIMATIC NET Industrial Ethernet Security, Setting up security in STEP 7 Professional

https://support.industry.siemens.com/cs/de/en/view/109477192

\9\ SIMATIC NET Industrial

https://support.industry.siemens.com/cs/de/en/view/109474411

Ethernet Security ­ setting up

Security - Getting Started

\10\ SIMATIC NET - Industrial Ethernet Security - Security basics and application Configuration Manual

https://support.industry.siemens.com/cs/de/en/view/109474417

6

History

Table 6-1

Version

Date

Modifications

V1.0 V2.0

09/2013 03/2016

First version Add CP 1243-1, add futher links

 Siemens AG 2016 All rights reserved

security

Entry-ID: 77431846, V2.0, 03/2016

23

SIMATIC
S7-1500 CPU 1511-1 PN (6ES7511-1AK02-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_nt_at_io_n _gu_id_e_______1_

_Pr_od_u_ct_ov_e_rv_ie_w _________2_

_Co_n_ne_c_tin_g _up___________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______5_

_Di_m_en_si_on_a_l d_ra_w_in_g ______A__

12/2017
A5E40869673-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40869673-AA  12/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1511-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

4

Manual, 12/2017, A5E40869673-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Applications of the S7-1500 CPU .......................................................................................... 11

2.2

Hardware properties .............................................................................................................. 18

2.3

Firmware functions................................................................................................................. 20

2.4 2.4.1 2.4.2 2.4.3

Operating and display elements ............................................................................................ 24 Front view of the CPU with closed front panel....................................................................... 24 Front view of the CPU without front panel and view from below ........................................... 26 Rear view of the CPU ............................................................................................................ 27

2.5

Operating mode buttons ........................................................................................................ 28

3 Connecting up....................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms................................................................... 33

4.1

Status and error display of the CPU ...................................................................................... 33

5 Technical specifications ........................................................................................................................ 36

A Dimensional drawing............................................................................................................................. 48

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

6

Manual, 12/2017, A5E40869673-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

8

Manual, 12/2017, A5E40869673-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

10

Manual, 12/2017, A5E40869673-AA

Product overview

2

2.1

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Areas of application of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

11

Product overview 2.1 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP MFP

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

Standard CPU for small to

--

1

--

--

mid-range applications

Standard CPU for mid-

--

1

--

--

range applications

Standard CPU for mid-

--

1

1

--

range to large applications

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-

1

1

1

1

performance applications,

demanding communication

tasks and very short reac-

tion times

Work memory 1.15 MB

Processing time for bit operations 60 ns

1.8 MB

40 ns

3.5 MB

30 ns

6 MB

10 ns

10 MB

2 ns

24 MB

1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

CPU 1511C-1 PN CPU 1512C-1 PN

Compact CPU for small to mid-range applications
Compact CPU for midrange applications

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

--

1

--

--

--

1

--

--

Work memory 1.175 MB

Processing time for bit operations 60 ns

1.25 MB

48 ns

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

12

Manual, 12/2017, A5E40869673-AA

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511F-1 PN Fail-safe CPU for small to

--

1

--

--

mid-range applications

CPU 1511TF-1 Fail-safe technology CPU

--

1

--

--

PN

for small to mid-range

applications

CPU 1513F-1 PN Fail-safe CPU for mid-

--

1

--

--

range applications

CPU 1515F-2 PN Fail-safe CPU for mid-

--

1

1

--

range to large applications

CPU 1515TF-2 Fail-safe technology CPU

--

1

1

--

PN

for demanding applications

and communication tasks

CPU 1516F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munication tasks

CPU 1516TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1517F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munication tasks

CPU 1517TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1518F-4

Fail-safe CPU for high-

1

1

1

1

PN/DP

performance applications,

CPU 1518F-4 PN/DP MFP

demanding communication tasks and very short reaction times

Work memory 1.225 MB

Processing time for bit operations 60 ns

1.225 MB

60 ns

1.95 MB 3.75 MB 3.75 MB

40 ns 30 ns 30 ns

6.5 MB

10 ns

6.5 MB

10 ns

11 MB

2 ns

11 MB

2 ns

26 MB

1 ns

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

13

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511T-1 PN Technology CPU for small

--

1

--

--

to mid-range applications

CPU 1515T-2 PN Technology CPU for mid-

--

1

1

--

range to large applications

CPU 1516T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1517T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1511TF-1 PN

These CPUs are described in the fail-safe CPUs

CPU 1515TF-2 PN

CPU 1516TF-3 PN/DP

CPU 1517TF-3 PN/DP

Work memory 1.225 MB

Processing time for bit operations 60 ns

3.75 MB

30 ns

6.5 MB

10 ns

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O module as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

14

Manual, 12/2017, A5E40869673-AA

Product overview 2.1 Applications of the S7-1500 CPU
Integrated Motion Control technology functions
All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Output cams  Cam tracks  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

15

Product overview 2.1 Applications of the S7-1500 CPU
Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules. SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks. Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU. In addition, you can assign various access rights to different user groups in the controller using four different authorization levels. Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller. The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally. These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications. The fail-safe CPUs are certified for use in safety mode up to:  Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010  Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to
EN ISO 13849-1:2008 Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

16

Manual, 12/2017, A5E40869673-AA

Product overview 2.1 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

17

Product overview 2.2 Hardware properties

2.2

Hardware properties

Article number
6ES7511-1AK02-0AB0
View of the module
The following figure shows a CPU 1511-1 PN.

Figure 2-1 CPU 1511-1 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

18

Manual, 12/2017, A5E40869673-AA

Product overview 2.2 Hardware properties

Properties

CPU 1511-1 PN has the following technical properties:

Property CPU display
Supply voltage
PROFINET IO PROFINET interface (X1 P1 R and X1 P2 R) Operation of the CPU as · IO controller · I-device

Description
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further network settings. The display shows occurring error messages directly in plain text.
In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S71500 Display Simulator are shown on the display.
The 24 V DC supply voltage is supplied via a 4-pole connection plug that is located at the front of the CPU.

Additional information
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
· SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)
· Chapter Connecting up (Page 29)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

The interface has two ports. In addition to basic

PROFINET function manual

PROFINET functionality, its also supports

(https://support.industry.siemens.co

PROFINET IO RT (real time) and IRT (isochronous real m/cs/ww/en/view/49948856)

time).

· IO controller: As an IO controller the CPU addresses the connected IO devices

· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

19

Product overview 2.3 Firmware functions

2.3

Firmware functions

Functions

The CPU 1511-1 PN supports the following firmware functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description

Additional information

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (https://support.industry.siemens.co m/cs/ww/en/view/59193560)

The Web server lets you access the CPU data by

·

means of a network. Evaluations, diagnostics, and

modifications are thus possible over long distances.

Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take ·

appropriate measures (e.g. limiting network access,

using firewalls) to protect the CPU from being compro-

mised.

Web server function manual (https://support.industry.siemens. com/cs/ww/en/view/59192926)
Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (https://support.industry.siemens.co m/cs/ww/en/view/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and Communication function manual

manufacturer-neutral communication protocol. The

(https://support.industry.siemens.co

CPU can act as OPC UA DA server. The CPU as

m/cs/ww/en/view/59192925)

OPC UA server can communicate with OPC UA clients.

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different S7-1500, ET 200MP system manual

real hardware configurations with a configured maxi- (https://support.industry.siemens.co

mum configuration of the S7-1500 automation sys-

m/cs/ww/en/view/59191792)

tem/ET 200MP distributed I/O system. This means that,

in series machine manufacturing in particular, you have

the option of operating/configuring different configura-

tion variants of a machine with a single project.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

20

Manual, 12/2017, A5E40869673-AA

Product overview 2.3 Firmware functions

Function PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description
RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.
A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real-time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.
The Isochronous mode system property acquires measured values and process data and processes the signals in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.
It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.
RT operation is possible with the use of MRP.
The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

Additional information
PROFINET function manual (https://support.industry.siemens.co m/cs/ww/en/view/49948856)

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

21

Product overview 2.3 Firmware functions

Function PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.

S7-1500 Motion Control function manual (https://support.industry.siemens.co m/cs/ww/en/view/109749262)

· Speed-controlled axis for controlling a drive with speed specification
· Positioning axis for position-controlled positioning of a drive
· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and eventdependent sensing of actual positions

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

22

Manual, 12/2017, A5E40869673-AA

Product overview 2.3 Firmware functions

Function Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (https://support.industry.siemens.co m/cs/ww/en/view/59191792)

You can use authorization levels to assign separate rights to different users.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

23

Product overview 2.4 Operating and display elements

2.4

Operating and display elements

2.4.1

Front view of the CPU with closed front panel
The following figure shows the front view of the CPU 1511-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1511-1 PN (with front panel) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 36).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

24

Manual, 12/2017, A5E40869673-AA

Product overview 2.4 Operating and display elements
Removing and fitting the front panel or the display
You can remove and fit the front panel or the display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel
You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

25

Product overview 2.4 Operating and display elements

2.4.2

Front view of the CPU without front panel and view from below
The following figure shows the operator controls and connection elements of the CPU 15111 PN.

 LEDs for the current operating mode and diagnostic status of the CPU  Display  MAC address  LED displays for the 2 ports of the PROFINET interface X1  Operating modes with "STOP ACTIVE" LED  Connector for power supply
Figure 2-4 View of the CPU 1511-1 PN (without front panel) ­ front

 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fixing screw
Figure 2-5 View of the CPU 1511-1 PN ­ bottom

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

26

Manual, 12/2017, A5E40869673-AA

2.4.3

Product overview 2.4 Operating and display elements
Rear view of the CPU
The following figure shows the connection elements on the back of the CPU 1511-1 PN.

 Shield contact surface  Plug-in connection for power supply  Plug-in connection for backplane bus  Fastening screw
Figure 2-6 View of the CPU 1511-1 PN - rear

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

27

Product overview 2.5 Operating mode buttons

2.5

Operating mode buttons

You use the operating mode buttons to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 5 Meaning of the operating mode buttons

Operation of the operating mode buttons RUN
STOP

Meaning
RUN mode STOP mode

MRES
1. Press the operating mode button STOP.
Result: The RUN/STOP LED lights up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the button. 3. Press the operating mode button STOP again within the next three seconds.

Manual memory reset
(with inserted SIMATIC memory card)
or
Reset to factory settings (without inserted SIMATIC memory card):

Explanation
The CPU is executing the user program. The user program is not being executed. (STOP ACTIVE LED lights up). The CPU executes memory reset.
or The CPU is reset to its factory settings. You can find additional information in the S71500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/den/ view/59191792).

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

28

Manual, 12/2017, A5E40869673-AA

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1511-1 PN.
24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

29

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-2 PROFINET ports
Note You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

30

Manual, 12/2017, A5E40869673-AA

Connecting up

Assignment of the MAC addresses
The CPU 1511-1 PN has a PROFINET interface with two ports. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. The CPU 1511-1 PN therefore has three MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1511-1 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)
Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

31

Connecting up
Block diagram
The following figure shows the block diagram of the CPU 1511-1 PN.


    
PN X1 P1 R PN X1 P2 R X50

CPU with control and operating mode buttons Display Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 SIMATIC memory card

Figure 3-3 Block diagram CPU 1511-1 PN

X80 24 V DC Infeed of supply voltage

L+

24 V DC supply voltage

M

Ground

SF

STOP ACTIVE LED (yellow)

R/S

RUN/STOP LED (yellow/green)

ER

ERROR LED (red)

MT

MAINT LED (yellow)

X1 P1, X1 P2 LED Link TX/RX

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

32

Manual, 12/2017, A5E40869673-AA

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1511-1 PN are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1511-1 PN LEDs.



RUN/STOP LED (yellow/green LED)



ERROR LED (red LED)



MAINT LED (yellow LED)



LINK RX/TX LED for port X1 P1 (yellow/green LED)



LINK RX/TX LED for port X1 P2 (yellow/green LED)



STOP ACTIVE-LED (yellow LED)

Figure 4-1 LED display of the CPU 1511-1 PN (without front panel)

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1511-1 PN has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green

LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED lit yellow LED lit yellow LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green

LED flashes red LED off LED off
LED flashes red LED off
LED off

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

34

Manual, 12/2017, A5E40869673-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the ports for the CPU 1511-1 PN.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

Meaning of the STOP ACTIVE LED
The following table shows the meaning of the STOP ACTIVE LED for the CPU 1511-1 PN.

Table 4- 3 Meaning of the LEDs

STOP ACTIVE LED LED lit yellow
LED off

Meaning The CPU is switched to "STOP" mode using the STOP button.
· As long as the STOP ACTIVE LED is lit up, switching the CPU to RUN mode is only possible using the RUN button.
· The CPU can then no longer be set to RUN mode via the display operation or via online functions. The state of the buttons is retained at power-off. If the CPU does not start up automatically after a power-on, you have to keep the STOP button pressed during start-up until the STOP ACTIVE LED is activated.
· If an automatic start-up is to be reliably prevented after a power-up, the STOP button has to be kept pressed during the start-up of the CPU until the STOP ACTIVE LED is activated.
· The CPU is set to "STOP" mode using the display or programming device and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

35

Technical specifications

5

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode buttons
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7511-1AK02-0AB0
CPU 1511-1 PN FS01 V2.5
V15
Yes
3.45 cm
8 2
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.7 A 0.95 A 1.9 A; Rated value 0.02 A²·s
10 W 5.5 W
5.7 W
1 Yes

36

CPU 1511-1 PN (6ES7511-1AK02-0AB0) Manual, 12/2017, A5E40869673-AA

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7511-1AK02-0AB0
150 kbyte 1 Mbyte
32 Gbyte
Yes
60 ns 72 ns 96 ns 384 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 1 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 150 kbyte
0 ... 65 535 150 kbyte
150 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

37

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max.

6ES7511-1AK02-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
128 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 88 KB 1 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte Yes No
64 kbyte; max. 16 KB per block

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

38

Manual, 12/2017, A5E40869673-AA

Technical specifications

Article number Address area
Number of IO modules I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) per CM/CP ­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number

6ES7511-1AK02-0AB0
1 024; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
32; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
1 4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

39

Technical specifications

Article number Clock synchronization
· supported · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max. ­ Of which IO devices with IRT, max. ­ Number of connectable IO Devices for
RT, max.

6ES7511-1AK02-0AB0
Yes Yes Yes Yes
1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 624392 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices 128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 128

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

40

Manual, 12/2017, A5E40869673-AA

Technical specifications

Article number ­ of which in line, max.

6ES7511-1AK02-0AB0 128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 500 s to 8 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

41

Technical specifications

Article number Interface types RJ 45 (Ethernet)
· 100 Mbps

6ES7511-1AK02-0AB0 Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

96; via integrated interfaces of the CPU and connected CPs / CMs
10

· Number of connections via integrated inter- 64 faces

· Number of S7 routing paths

16

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

42

Manual, 12/2017, A5E40869673-AA

Technical specifications

Article number SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max.

6ES7511-1AK02-0AB0
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

43

Technical specifications

Article number Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics
· Number of alarms for motion technology objects
Test commissioning functions Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable
· Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables
· Number of variables, max. Diagnostic buffer
· present
· Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces

6ES7511-1AK02-0AB0
Yes; With minimum OB 6x cycle of 625 µs Yes
32 Yes 5 000
300 100 80
Yes; Parallel online access possible for up to 5 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 1 000 500
4; Up to 512 KB of data per trace are possible

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

44

Manual, 12/2017, A5E40869673-AA

Technical specifications

Article number Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · STOP ACTIVE LED · Connection display LINK TX/RX

6ES7511-1AK02-0AB0
Yes Yes Yes Yes Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

800

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter

5
10
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

Standards, approvals, certificates

Suitable for safety functions

No

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

45

Technical specifications

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection Access protection · Password for display · Protection level: Write protection · Protection level: Read/write protection · Protection level: Complete protection Cycle time monitoring · lower limit · upper limit Dimensions Width Height Depth Weights Weight, approx.

6ES7511-1AK02-0AB0
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
35 mm 147 mm 129 mm
405 g

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

46

Manual, 12/2017, A5E40869673-AA

Technical specifications
General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

47

Dimensional drawing

A

This section includes a dimensional drawing of the module on a mounting rail and a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings for CPU 1511-1 PN

Figure A-1 Dimensional drawing of CPU 1511-1 PN, front and side views

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

48

Manual, 12/2017, A5E40869673-AA

Dimensional drawing
Figure A-2 Dimensional drawing of CPU 1511-1 PN, side view with front panel open

CPU 1511-1 PN (6ES7511-1AK02-0AB0)

Manual, 12/2017, A5E40869673-AA

49

SIMATIC
S7-1500 CPU 1511C-1 PN (6ES7511-1CK01-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Te_c_hn_ol_og_y_fu_nc_ti_on_s_______3_ _W_iri_ng_______________4_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____5_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______7_ _Di_m_en_si_on_d_ra_w_in_gs________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _An_a_lo_g _va_lu_e _pr_oc_es_s_ing_____C__

12/2017
A5E40898565-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40898565-AA  12/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system / ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. Cross-system functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1511C-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

4

Manual, 12/2017, A5E40898565-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 9

2 Product overview .................................................................................................................................. 13

2.1

Applications of the S7-1500 CPUs......................................................................................... 13

2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6

Hardware properties and firmware functions ......................................................................... 20 Hardware properties of the CPU part .................................................................................... 21 Firmware functions of the CPU part....................................................................................... 23 Hardware properties of the analog on-board I/O module ...................................................... 27 Firmware functions of the analog on-board I/O module......................................................... 30 Hardware properties of the digital on-board I/O module........................................................ 31 Firmware functions of the digital on-board I/O module .......................................................... 34

2.3 2.3.1 2.3.2 2.3.3

Operator controls and display elements ................................................................................ 36 Front view with closed front panel.......................................................................................... 36 Front view of the CPU without front panel and view from below ........................................... 38 Rear view ............................................................................................................................... 40

2.4

Operating mode buttons ........................................................................................................ 41

3 Technology functions ............................................................................................................................ 42

3.1 3.1.1 3.1.1.1 3.1.1.2 3.1.1.3 3.1.1.4 3.1.2 3.1.2.1 3.1.2.2 3.1.2.3

High-speed counters .............................................................................................................. 42 Functions................................................................................................................................ 43 Counting ................................................................................................................................. 43 Measuring .............................................................................................................................. 45 Position detection for motion control...................................................................................... 46 Additional functions ................................................................................................................ 46 Configuring the high-speed counters ..................................................................................... 47 General .................................................................................................................................. 47 Assignment of the control interface of the high-speed counters............................................ 48 Assignment of the feedback interface of the high-speed counters........................................ 51

3.2 3.2.1 3.2.1.1 3.2.1.2 3.2.1.3 3.2.2 3.2.2.1 3.2.2.2 3.2.3 3.2.3.1 3.2.3.2 3.2.3.3

Pulse generators .................................................................................................................... 52 Operating modes.................................................................................................................... 52 Operating mode: Pulse-width modulation (PWM).................................................................. 52 Operating mode: Frequency output ....................................................................................... 60 Operating mode: PTO ............................................................................................................ 64 Functions................................................................................................................................ 69 Function: High-speed output.................................................................................................. 69 Function: Direct control of the pulse output (DQA) ................................................................ 70 Configuring the PWM and frequency output modes .............................................................. 71 Assignment of the control interface........................................................................................ 71 Handling the SLOT parameter (control interface).................................................................. 73 Assignment of the feedback interface.................................................................................... 77

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

6

Manual, 12/2017, A5E40898565-AA

Table of contents

4 Wiring ................................................................................................................................................... 79

4.1

Supply voltage ........................................................................................................................79

4.2

PROFINET interfaces .............................................................................................................80

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5
4.3.6 4.3.7 4.3.8

Terminal and block diagrams..................................................................................................82 Block diagram of the CPU part ...............................................................................................82 Terminal and block diagram of the analog on-board I/O ........................................................83 Wiring and block diagrams of the digital on-board I/O............................................................92 Addresses of the high-speed counters .................................................................................104 Addresses of the pulse generators in the Pulse Width Modulation (PWM) and Frequency Output modes .....................................................................................................106 Addresses of pulse generators in the PTO mode.................................................................107 Interconnection overview of the inputs .................................................................................108 Interconnection overview of the outputs ...............................................................................109

5 Parameters/address space ................................................................................................................. 111

5.1

Address space of the analog on-board I/O ...........................................................................111

5.2

Address space of the digital on-board I/O ............................................................................113

5.3

Address space of the high-speed counters ..........................................................................115

5.4

Address space of the pulse generators ................................................................................115

5.5

Measurement types and measuring ranges of the analog on-board I/O ..............................116

5.6

Output type and output ranges of the analog on-board I/O ..................................................117

5.7

Parameters of the analog on-board I/O ................................................................................118

5.8

Parameters of the digital on-board I/O..................................................................................121

6 Interrupts/diagnostics alarms............................................................................................................... 123

6.1 6.1.1 6.1.2 6.1.3

Status and error displays ......................................................................................................123 Status and error displays of the CPU part ............................................................................123 Status and error displays of the analog on-board I/O...........................................................126 Status and error displays of the digital on-board I/O ............................................................128

6.2 6.2.1 6.2.2 6.2.3

Interrupts and diagnostics.....................................................................................................131 Interrupts and diagnostics of the CPU part...........................................................................131 Interrupts and diagnostics of the analog on-board I/O .........................................................131 Interrupts and diagnostics of the digital on-board I/O...........................................................134

7 Technical specifications ...................................................................................................................... 137

A Dimension drawings............................................................................................................................ 160

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

7

Table of contents

B Parameter data records .......................................................................................................................162

B.1

Parameter assignment and structure of the parameter data records of the analog on-

board I/O .............................................................................................................................. 162

B.2

Structure of a data record for input channels of the analog on-board I/O ........................... 162

B.3

Structure of a data record for output channels of the analog on-board I/O ......................... 167

B.4

Parameter assignment and structure of the parameter data records of the digital on-

board I/O .............................................................................................................................. 170

B.5

Structure of a data record for input channels of the digital on-board I/O............................. 171

B.6

Structure of a data record for output channels of the digital on-board I/O........................... 172

B.7

Parameter data records of the high-speed counters ........................................................... 173

B.8

Parameter data records (PWM) ........................................................................................... 180

C Analog value processing ......................................................................................................................183

C.1

Conversion method .............................................................................................................. 183

C.2

Representation of analog values ......................................................................................... 190

C.3 C.3.1 C.3.2 C.3.3
C.3.4

Representation of input ranges............................................................................................ 191 Representation of analog values in voltage measuring ranges ........................................... 192 Representation of analog values in current measuring ranges ........................................... 193 Representation of the analog values of resistance-type sensors/resistance-type thermometers ....................................................................................................................... 194 Measured values for wire break diagnostics........................................................................ 196

C.4 C.4.1 C.4.2

Representation of output ranges.......................................................................................... 197 Representation of analog values in the voltage output ranges............................................ 198 Representation of analog values in the current output ranges ............................................ 199

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

8

Manual, 12/2017, A5E40898565-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

9

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

10

Manual, 12/2017, A5E40898565-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

11

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

12

Manual, 12/2017, A5E40898565-AA

Product overview

2

2.1

Applications of the S7-1500 CPUs

Application area
The SIMATIC S7-1500 is the modular control system for numerous automation applications in discrete automation.
The modular and fanless design, the simple implementation of distributed structures and the user-friendly handling transform the SIMATIC S7-1500 into a cost-effective and convenient solution for a wide variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automotive
 Water/waste water
 Food & Beverage
Areas of application of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient functions are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
The high EMC and high resistance to shock and vibration stress make the SIMATIC S7-1500 suitable for universal use.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

13

Product overview 2.1 Applications of the S7-1500 CPUs

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and medium-sized applications, as well as for the highend range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP MFP

Performance segment
Standard CPU for small to medium-sized applications Standard CPU for mediumsized applications Standard CPU for mediumsized to large applications Standard CPU for high-end applications and communication tasks Standard CPU for high-end applications and communication tasks Standard CPU for highperformance applications, demanding communications tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET I O RT/IRT interface 1 1 1 1
1
1

PROFINET IO RT inter-
face --1 1
1
1

PROFINET basic func-
tionality -----
--
1

Work memory 1.15 MB 1.8 MB 3.5 MB
6 MB
10 MB
24 MB

Processing time for bit operations
60 ns 40 ns 30 ns 10 ns
2 ns
1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511C-1 PN Compact CPU for small to

--

1

--

--

medium-sized applications

CPU 1512C-1 PN Compact CPU for medium-

--

1

--

--

sized applications

Work memory 1.175 MB

Processing time for bit operations 60 ns

1.25 MB

48 ns

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

14

Manual, 12/2017, A5E40898565-AA

Product overview 2.1 Applications of the S7-1500 CPUs

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

CPU 1511F-1 PN Fail-safe CPU for smaller

--

to medium-sized applica-

tions

CPU 1511TF-1 Fail-safe technology CPU

--

PN

for small to mid-range

applications

CPU 1513F-1 PN Fail-safe CPU for medium-

--

sized applications

CPU 1515F-2 PN Fail-safe CPU for medium-

--

sized to large applications

CPU 1515TF-2 Fail-safe technology CPU

--

PN

for demanding applications

and communication tasks

CPU 1516F-3

Fail-safe CPU for demand-

1

PN/DP

ing applications and com-

munications tasks

CPU 1516TF-3 Fail-safe technology CPU

1

PN/DP

for demanding applications

and communication tasks

CPU 1517F-3

Fail-safe CPU for demand-

1

PN/DP

ing applications and com-

munications tasks

CPU 1517TF-3 Fail-safe technology CPU

1

PN/DP

for demanding applications

and communication tasks

CPU 1518F-4

Fail-safe CPU for high-

1

PN/DP

performance applications,

CPU 1518F-4 PN/DP MFP

demanding communications tasks and very short reaction times

1

--

1

--

1

--

1

1

1

1

1

1

1

1

1

1

1

1

1

1

PROFINET basic func-
tionality --
--
----
--
--
--
--
1

Work memory 1.225 MB

Processing time for bit operations 60 ns

1.225 MB

60 ns

1.95 MB 3.75 MB 3.75 MB

40 ns 30 ns 30 ns

6.5 MB

10 ns

6.5 MB

10 ns

11 MB

2 ns

11 MB

2 ns

26 MB

1 ns

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

15

Product overview 2.1 Applications of the S7-1500 CPUs

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511T-1 PN Technology CPU for small

--

1

--

--

to medium-sized applica-

tions

CPU 1515T-2 PN Technology CPU for mid-

--

1

1

--

range to large applications

CPU 1516T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1517T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1511TF-1 PN

These CPUs are described in the fail-safe CPUs

CPU 1515TF-2 PN

CPU 1516TF-3 PN/DP

CPU 1517TF-3 PN/DP

Work memory 1.225 MB

Processing time for bit operations 60 ns

3.75 MB 6.5 MB

30 ns 10 ns

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to medium-sized applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the differences in performance between the two compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

16

Manual, 12/2017, A5E40898565-AA

Product overview 2.1 Applications of the S7-1500 CPUs
Integrated Motion Control technology functions
All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Output cams  Cam tracks  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

17

Product overview 2.1 Applications of the S7-1500 CPUs
Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules. SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7 (TIA Portal), each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks. The copy protection provides greater protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU. In addition, four different authorization levels in the CPUs can be used to assign different access rights to various user groups. Improved manipulation protection allows the CPUs to detect changed or unauthorized transfers of the engineering data. The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection by means of a firewall and/or the option of secured VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and distributed. These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration provides the system advantages and the extensive functionality of SIMATIC also for fail-safe applications. The fail-safe CPUs are certified for use in safety mode up to:  Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010  Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to
EN ISO 13849-1:2008 Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

18

Manual, 12/2017, A5E40898565-AA

Product overview 2.1 Applications of the S7-1500 CPUs
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and modularly with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as simple wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single cores).
System diagnostics and alarms
Integrated system diagnostics is enabled by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7 (TIA Portal), on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostics information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

19

Product overview 2.2 Hardware properties and firmware functions

2.2

Hardware properties and firmware functions

The CPU 1511C-1 PN consists of a CPU part, an analog on-board I/O module (X10) and a digital on-board I/O module (X11). When configured in the TIA Portal, the compact CPU therefore occupies a single shared slot (slot 1).

The properties and functions of the CPU part and the analog and digital on-board I/O modules can be found in the subsections below. The properties describe the hardware features of the CPU part and the analog and digital on-board I/O modules. The functions describe the functions of the firmware of the CPU part and the analog and digital on-board I/O modules.

Article number
6ES7511-1CK01-0AB0

Accessories

The following accessories are included in the scope of delivery and can also be ordered separately as spare parts:  2 x front connector (push-in terminals) including cable ties  2 x shield clamp  2 x shield terminal  2 x infeed element (push-in terminals)  2 x labeling strip  2 x universal front cover For more information on accessories, refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

20

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

2.2.1

Hardware properties of the CPU part

View of the CPU
The figure below shows the CPU part of the CPU 1511C-1 PN.

Figure 2-1 CPU 1511C-1 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

21

Product overview 2.2 Hardware properties and firmware functions

Properties

The CPU 1511C-1 PN has the following technical properties:

Property CPU display
Supply voltage PROFINET IO PROFINET interface (X1 P1 R and X1 P2 R)
Operation of the CPU as · IO controller · I-device

Description
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further network settings. The display shows occurring error messages directly in plain text.
In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S71500 Display Simulator are shown on the display.
A 4-pole connection plug that is located at the front of the CPU supplies the 24 V DC supply voltage.

Additional information
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
· SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)
· Chapter Wiring (Page 79)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

The X1 interface has two ports (P1 R and P2 R). In addition to basic PROFINET functionality, its also supports PROFINET IO RT (real time) and IRT (isochronous real time), which means you can configure PROFINET IO communication or real-time settings on the interface.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/68039307)

Port 1 and Port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet (media redundancy).

Basic PROFINET functionality comprises:

· HMI communication

· Communication with the configuration system

· Communication with a higher-level network (backbone, router, Internet)

· Communication with another machine or automation cell

· IO controller: As an IO controller the CPU addresses the connected IO devices
· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

22

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

2.2.2

Firmware functions of the CPU part

Functions

The CPU 1511C-1 PN supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description

Additional information

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59192926)

The Web server lets you access the CPU data by

·

means of a network. Evaluations, diagnostics, and

modifications are thus possible over long distances.

Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take ·

appropriate measures (e.g. limiting network access,

using firewalls) to protect the CPU from being compro-

mised.

Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (http://support.automation.siemens.c om/WW/view/en/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU can communicate with OPC UA clients as an OPC UA server.

Communication function manual (https://support.industry.siemens.co m/cs/ww/en/view/59192925)

Through OPC UA Companion Specification, the methods can be specified uniformly and independently of manufacturers. The specified methods enable you to integrate devices from various manufacturers more easily into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

23

Product overview 2.2 Hardware properties and firmware functions

Function PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description

Additional information

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.

The Isochronous mode system property acquires measured values and process data and processes the signals in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

24

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

Function PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and · traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
· Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.
· Speed-controlled axis for controlling a drive with speed specification
· Positioning axis for position-controlled positioning of a drive
· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.
· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation
· Cams, cam track for position-dependent generation of switching signals
· Measuring input for fast, accurate and eventdependent sensing of actual positions

Section Technology functions (Page 42)
S7-1500 Motion Control function manual (http://support.automation.sieme ns.com/WW/view/en/109749262)

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

25

Product overview 2.2 Hardware properties and firmware functions

Function Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

You can use authorization levels to assign separate rights to different users.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

26

Manual, 12/2017, A5E40898565-AA

2.2.3 View

Product overview 2.2 Hardware properties and firmware functions
Hardware properties of the analog on-board I/O module
The following figure shows the analog on-board I/O (X10) of the CPU 1511C-1 PN.

Figure 2-2 Analog on-board I/O

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

27

Product overview 2.2 Hardware properties and firmware functions

Properties of the analog inputs
The 5 inputs of the analog on-board I/O module have the following properties:

Property

Description

Additional information

Resolution: 16 bits includ- A CPU processes information exclusively in digital

· Chapter Analog value pro-

ing sign

format. An ADC (analog-to-digital converter) integrated

cessing

into the analog on-board I/O module therefore converts the analog value into a bit pattern. For the CPU, this

·

Analog value processing function

conversion always returns a 16-bit word for SIMATIC

manual

products. The ADC used digitalizes the analog signal

(http://support.automation.sieme

and approximates its value with a stepped curve. The

ns.com/WW/view/en/67989094)

resolution specifies the number of increments of the

analog value along this stepped curve here.

Integrated types of measuring

Controllers are only capable of processing analog values in the form of bit patterns. For this purpose, transducers which can be connected to the analog module measure physical variables such as pressure or temperature. This analog value is measured by the analog input module in the form of the measurement types current, voltage or resistance. The analog on-board I/O module supports the following measurement types on the following channels.

· Voltage measurement type can be set individually for channel 0 to 3
· Current measurement type can be set individually for channel 0 to 3
· Resistor measurement type can be set for channel 4

· Thermal resistor measurement type can be set for channel 4

Configurable diagnostics Hardware interrupt

The analog on-board I/O module can diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. Different types of diagnostics are available that you can parameterize channel-granularly.
You can react to process events (such as negative/positive exceeding of specific limits) through the configuration of a hardware interrupt. Hardware interrupts can be parameterized channel-granularly.

Chapter Parameters of the analog on-board I/O (Page 118)
· Chapter Parameters of the analog on-board I/O (Page 118)
· Chapter Structure of a data record for input channels of the analog on-board I/O (Page 162)

· STEP 7 online help

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

28

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

Properties of the analog outputs
The 2 outputs of the analog on-board I/O module have the following properties:

Property Resolution: 16 bits including sign
Integrated output types
Configurable diagnostics

Description

Additional information

Once the CPU has processed the digital signal, a DAC ·

(digital-to-analog converter) integrated in the analog on-

board I/O module converts the output signal to an analog current or voltage value. The resulting value of the

·

output signal corresponds to the output value with

which the analog on-board I/O module controls the

analog actuators.

Chapter Analog value processing
Analog value processing function manual (http://support.automation.sieme ns.com/WW/view/en/67989094)

With the selection of the type of output you specify whether the digital-to-analog converter is to convert the output signal into the type of output "Current" or "Voltage". The output can be selected by individual channel.

The analog on-board I/O module can diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. Different types of diagnostics are available that you can parameterize channel-granularly.

Chapter Parameters of the analog on-board I/O (Page 118)

See also

Parameter assignment and structure of the parameter data records of the analog on-board I/O (Page 162)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

29

Product overview 2.2 Hardware properties and firmware functions

2.2.4

Firmware functions of the analog on-board I/O module

Functions of the analog inputs
The 5 inputs of the analog on-board I/O module have the following functions:

Function Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

You have the option of reassigning parameters for the ·

analog on-board I/O module in RUN (for example,

measuring ranges of individual channels can be modi-

fied in RUN without affecting the other channels).

·

Additional information
Chapter Parameters of the analog on-board I/O (Page 118)
Chapter Parameter assignment and structure of the parameter data records of the analog onboard I/O (Page 162)

Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid.
Value status = 0 ("Bad") indicates that the read value is not valid.

Chapter Address space of the analog on-board I/O (Page 111)

Functions of the analog outputs
The 2 outputs of the analog on-board I/O module have the following functions:

Function Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

You have the option of reassigning parameters for the ·

analog on-board I/O module in RUN (for example,

output ranges of individual channels can be modified in RUN without affecting the other channels).

·

Additional information
Chapter Parameters of the analog on-board I/O (Page 118)
Chapter Parameter assignment and structure of the parameter data records of the analog onboard I/O (Page 162)

Value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal.
Value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect.

Chapter Address space of the analog on-board I/O (Page 111)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

30

Manual, 12/2017, A5E40898565-AA

2.2.5 View

Product overview 2.2 Hardware properties and firmware functions
Hardware properties of the digital on-board I/O module
The following figure shows the digital on-board I/O (X11) of the CPU 1511C-1 PN.

Figure 2-3 Digital on-board I/O

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

31

Product overview 2.2 Hardware properties and firmware functions

Properties of the digital inputs
The digital inputs of the digital on-board I/O module have the following properties:

Property Standard and high-speed inputs
Configurable diagnostics
Hardware interrupt

Description

Additional information

The digital on-board I/O module has 16 high-speed inputs for signals up to a max. of 100 kHz. The inputs can be used as standard inputs and as inputs for technology functions.

Chapter Wiring (Page 79)

The inputs have a rated input voltage of 24 V DC.

The inputs are suitable for switches and 2-/3-/4-wire proximity switches.

The digital on-board I/O module is able to diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. You can parameterize the type of diagnostics channel-specifically.

Chapter Parameters of the digital on-board I/O (Page 121)

You can react to process events (such as positive

Chapter Parameters of the digital

edge, negative edge) through the configuration of a

on-board I/O (Page 121)

hardware interrupt. Hardware interrupts can be parame- Chapter Structure of a data record

terized channel-granularly.

for input channels of the digital on-

board I/O (Page 171)

STEP 7 online help

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

32

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

Properties of the digital outputs
The digital outputs of the digital on-board I/O module have the following properties:

Property

Description

Additional information

Configurable diagnostics

The digital on-board I/O module is able to diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. You can parameterize the type of diagnostics channel-specifically.

Chapter Interconnection overview of the outputs (Page 109)

Standard and high-speed outputs

Standard outputs

The digital on-board I/O module has 16 standard outputs.

Chapter Wiring (Page 79)

High-speed outputs

Of the 16 standard outputs you can also use 8 outputs as high-speed outputs for technology functions.

Rated output voltage

The outputs have a rated output voltage of 24 V DC.

Output frequencies and output currents

Rated output current as output for standard mode: 0.5 A per channel.

Chapter Interconnection overview of the outputs (Page 109)

As an output for technology functions, you can select between an output current of up to 0.5 A at an output frequency up to 10 kHz (load dependent) and a reduced output current of max. 0.1 A at an increased output frequency of up to 100 kHz.

Application

The outputs are suitable for, e.g. solenoid valves, DC contactors and indicator lights, or also for signal transmission or proportional valves.

Driver blocks with pushpull outputs.

The digital outputs feature driver blocks with push-pull Figure "Current flow with correct

outputs. Due to their basic functional design, such driv- wiring using the digital on-board I/O

er blocks always contain parasitic diodes that act as

X11 as an example" in Chapter

freewheeling diodes when shutting off inductive loads. Wiring and block diagrams of the

The shutdown voltage is limited to -0.8 V. Therefore, digital on-board I/O (Page 92).

the demagnetization of inductive loads takes longer and

can be approximately calculated using the following

formula.

tau = L / R (tau= time constant, L = inductance value, R = ohmic resistance value)

After the expiration of a period of 5 * tau, the current has decreased in effect to 0 A due to the inductive load.

The maximum value is derived from:

tau = 1.15H / 48 Ohm = 24 ms. After 5 * 24 ms = 120 ms, the current has decreased in effect to 0 A.

For comparison: With standard modules, inductive shutdown voltage is limited, for example, to Vcc -53 V (supply voltage ­ 53 V), which causes the current to decrease to 0 A after about 15 ms.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

33

Product overview 2.2 Hardware properties and firmware functions
Simultaneous use of technology and standard functions
You can use technology and standard functions at the same time, provided the hardware allows this. For example, all the digital inputs not assigned to the counting, measuring or position detection or PTO technology functions can be used as standard DI. Inputs to which technology functions are assigned can be read. Outputs to which technology functions are assigned cannot be written.

2.2.6

Firmware functions of the digital on-board I/O module

Functions of the digital inputs
The digital inputs of the digital on-board I/O module have the following functions:

Function Technology functions
Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

Additional information

The high-speed digital inputs of the digital on-board Chapter Technology functions I/O module support technology functions such as fast (Page 42) counting, measuring, position detection and pulse generators (PWM, PTO and frequency output). Due to the supported technology functions, the compact CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

You have the option of reassigning parameters for the ·

digital on-board I/O module in RUN (for example,

values for input delay of individual channels can be

modified without affecting the other channels).

·

Chapter Parameters of the digital on-board I/O (Page 121)
Chapter Parameter assignment and structure of the parameter data records of the digital onboard I/O (Page 170)

Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid.
Value status = 0 ("Bad") indicates that no/too little supply voltage L+ is applied at the terminal and that the read value is therefore not valid.

Chapter Address space of the digital on-board I/O (Page 113)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

34

Manual, 12/2017, A5E40898565-AA

Product overview 2.2 Hardware properties and firmware functions

Functions of the digital outputs
The digital outputs of the digital on-board I/O module have the following functions:

Function Technology functions
Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

Additional information

The high-speed digital outputs of the digital on-board I/O module support technology functions such as fast counting, measuring, position detection and pulse generators (PWM, PTO and frequency output). Due to the supported technology functions, the compact CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

Chapter Technology functions (Page 42)

You have the option of reassigning parameters for the ·

digital on-board I/O module in RUN (for example,

behavior during CPU STOP, without affecting the

other channels).

·

Chapter Parameters of the digital on-board I/O (Page 121)
Chapter Parameter assignment and structure of the parameter data records of the digital onboard I/O (Page 170)

Value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal.
Value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect or the channel is used for technology functions.

Chapter Address space of the digital on-board I/O (Page 113)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

35

Product overview 2.3 Operator controls and display elements

2.3

Operator controls and display elements

2.3.1

Front view with closed front panel
The following figure shows the front view of the CPU 1511C-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Status and error displays RUN/ERROR of the analog on-board I/O  Status and error displays RUN/ERROR of the digital on-board I/O  Control keys  Display
Figure 2-4 View of the CPU 1511C-1 PN with closed front panels (front)
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down again, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. You can find additional information on the temperatures at which the display switches itself on and off in the Technical specifications (Page 137).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

36

Manual, 12/2017, A5E40898565-AA

Product overview 2.3 Operator controls and display elements
Removing and fitting the front panel or the display
You can remove and fit the front panel or the display during operation. The CPU retains its operating mode when the front panel is pulled and plugged.
WARNING Personal injury and damage to property may occur If you pull or plug the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you pull or plug the front panel in hazardous area zone 2, always ensure that the S7-1500 automation system is de-energized. The CPU maintains its operating mode.
Locking the front panel
You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a hoop diameter of 3 mm to the front panel.

Reference

Figure 2-5 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. For more information on the display, the configurable protection levels and the local lock, refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

37

Product overview 2.3 Operator controls and display elements

2.3.2

Front view of the CPU without front panel and view from below
The following figure shows the operator control and connection elements of the CPU 1511C-1 PN with the front cover of the CPU open.

 LEDs for the current operating mode and diagnostics status of the CPU  Status and error displays RUN/ERROR of the analog on-board I/O  Status and error displays RUN/ERROR of the digital on-board I/O  Connector for power supply  Operating modes with "STOP ACTIVE" LED  LEDs for the 2 ports (X1 P1 and X1 P2) of the PROFINET interface X1  MAC address  Display
Figure 2-6 View of the CPU 1511C-1 PN without front panel on the CPU (front)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

38

Manual, 12/2017, A5E40898565-AA

Product overview 2.3 Operator controls and display elements
 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fastening screw
Figure 2-7 View of the CPU 1511C-1 PN ­ bottom

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

39

Product overview 2.3 Operator controls and display elements

2.3.3

Rear view
The following figure shows the connection elements on the rear of the CPU 1511C-1 PN.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fastening screws
Figure 2-8 View of the CPU 1511C-1 PN - rear

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

40

Manual, 12/2017, A5E40898565-AA

Product overview 2.4 Operating mode buttons

2.4

Operating mode buttons

You use the operating mode buttons to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 5 Meaning of the operating mode buttons

Operation of the operating mode buttons RUN
STOP

Meaning
RUN mode STOP mode

MRES
1. Press the operating mode button STOP.
Result: The RUN/STOP LED lights up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the button. 3. Press the operating mode button STOP again within the next three seconds.

Manual memory reset
(with inserted SIMATIC memory card)
or
Reset to factory settings (without inserted SIMATIC memory card):

Explanation
The CPU executes the user program. The user program is not executed. (STOP ACTIVE LED lights up). The CPU executes memory reset.
or The CPU is reset to its factory settings. You can find additional information in the S71500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/vi ew/59191792).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

41

Technology functions

3

3.1

High-speed counters

Properties

The technology functions of the compact CPU have the following technical properties:  16 high-speed digital inputs (up to 100 kHz), isolated
­ 6 high-speed counters (High Speed Counter/HSC), 4 of which can be used as A/B/N  Interfaces
­ 24 V encoder signals of sourcing or push-pull encoders and sensors ­ 24 V encoder supply output, short-circuit-proof ­ Up to 2 additional digital inputs per high-speed counter for possible HSC DI functions
(Sync, Capture, Gate) ­ 1 digital output per high-speed counter for fast reaction to the count  Counting range: 32 bits  Diagnostics and hardware interrupts can be configured  Supported encoder/signal types ­ 24 V incremental encoder
(with 2 tracks A and B, phase-shifted by 90°, up to 4 incremental encoders also with zero track N) ­ 24 V pulse encoder with direction signal ­ 24 V pulse encoder without direction signal ­ 24 V pulse encoder each for forward pulse & reverse pulse The high-speed counters support reconfiguration in RUN. You can find additional information in chapter Parameter data records of the high-speed counters (Page 173).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

42

Manual, 12/2017, A5E40898565-AA

Technology functions 3.1 High-speed counters

3.1.1

Functions

3.1.1.1

Counting
Counting refers to the detection and adding up of events. The counters acquire and evaluate encoder signals and pulses. You can specify the count direction using suitable encoder or pulse signals or through the user program. You can control counting processes using the digital inputs. You can switch the digital outputs exactly at defined count values, regardless of the user program. You can configure the response of the counters using the functionalities described below.

Counting limits

The counting limits define the count value range used. The counting limits are selectable and can be modified during runtime by the user program. The highest counting limit that can be set is 2147483647 (231­1). The lowest counting limit that can be set is ­2147483648 (­231). You can configure the response of the counter at the counting limits:
 Continue or stop counting (automatic gate stop) on violation of a counting limit
 Set count value to start value or to opposite counting limit on violation of a counting limit

Start value

You can configure a start value within the counting limits. The start value can be modified during runtime by the user program. Depending on the parameter assignment, the compact CPU can set the current count value to the start value during synchronization, during the Capture function, on violation of a counting limit or when the gate is opened.

Gate control

The opening and closing of the hardware gate (HW gate) and software gate (SW gate) defines the period of time during which the counting signals are acquired. The digital inputs of the digital on-board I/O control the HW gate. The user program controls the software gate. You can enable the hardware gate using the parameter assignment. The software gate (bit in the control interface of the cyclic I/O data) cannot be disabled.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

43

Technology functions 3.1 High-speed counters

Capture

You can configure an external reference signal edge that triggers the saving of the current count value as a Capture value. The following external signals can trigger the Capture function:
 Rising or falling edge of a digital input
 Both edges of a digital input
 Rising edge of signal N at the encoder input
You can configure whether counting continues from the current count value or from the start value after the Capture function.

Hysteresis

You can specify hysteresis for the comparison values, within which a digital output is prevented from switching again. An encoder may stop at a certain position, and slight movements may make the count value fluctuate around this position. If a comparison value or a counting limit lies within this fluctuation range, the corresponding digital output will be switched on and off often if hysteresis is not used. The hysteresis prevents these unwanted switching operations.

Reference

For more information on the counter, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection function manual (http://support.automation.siemens.com/WW/view/en/59709820).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

44

Manual, 12/2017, A5E40898565-AA

Technology functions 3.1 High-speed counters

3.1.1.2

Measuring

Measuring functions
The following measuring functions are available:

Table 3- 1 Overview of available measuring functions

Measurement type Frequency measurement Period measurement
Velocity measurement

Description
A measuring interval calculates the average frequency based on the time sequence of the count pulses, and returns this frequency as a floating-point number in units of hertz.
A measuring interval calculates the average period duration based on the time sequence of the count pulses, and returns this period duration as a floating-point number in units of seconds.
A measuring interval calculates the average velocity based on the time sequence of the count pulses, and returns this velocity in the configured unit.

The measured value and count value are both available in the feedback interface.

Update time

You can configure the interval at which the compact CPU updates the measured values cyclically as the update time. Greater update times smooth uneven measured variables and increase the measuring accuracy.

Gate control

Opening and closing the hardware gate and software gate defines the period of time during which the count signals are acquired. The update time is asynchronous to the opening of the gate, which means that the update time is not started when the gate is opened. After the gate is closed, the last measured value calculated is still returned.

Measuring ranges
The measuring functions have the following measuring range limits:

Table 3- 2 Overview of low and high measuring range limits

Measurement type Frequency measurement Period measurement Velocity measurement

Low measuring range limit

High measuring range limit

0.04 Hz

400 kHz *

2.5 s *

25 s

Depending on the configured number of "increments per unit" and the "timebase for velocity measurement"

* Applies to 24 V incremental encoder and "quadruple" signal evaluation

All measured values are returned as signed values. The sign indicates whether the count value increased or decreased during the relevant time period. For example, a value of 80 Hz means that the count value decreases at 80 Hz.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

45

Technology functions 3.1 High-speed counters

Reference

For more information on measuring, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection function manual (http://support.automation.siemens.com/WW/view/en/59709820).

3.1.1.3

Position detection for motion control
You can use the digital on-board I/O, e.g. with an incremental encoder, for position detection with S7-1500 Motion Control. The position detection is based on the counting function, which evaluates the acquired encoder signals and provides them for S7-1500 Motion Control. In the hardware configuration of the CPU 1511C-1 PN in STEP 7 (TIA Portal), select the "Position input for Motion Control" mode.

Reference

For a detailed description of the use of motion control and its configuration, refer to the S71500 Motion Control function manual (http://support.automation.siemens.com/WW/view/en/109749262). In the function manual, the interface between the drives and encoders is referred to as a technology module (TM). In this context, a technology module (TM) also refers to the digital on-board I/O of the compact CPU described here.

3.1.1.4

Additional functions

Synchronization
You can configure an external reference signal edge to load the counter with the specified start value. The following external signals can trigger a synchronization:
 Rising or falling edge of a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input depending on the level of the assigned digital input

Comparison values
The integrated counter supports 2 comparison values and digital output HSC DQ1. If the counter or measured value meets the set comparison condition, HSC DQ1 can be set in order to trigger direct control operations in the process.
Both comparison values can be set in the parameters and can be changed during runtime via the user program.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

46

Manual, 12/2017, A5E40898565-AA

Technology functions 3.1 High-speed counters
Hardware interrupts
If you have enabled a hardware interrupt in the hardware configuration, the counter can trigger a hardware interrupt in the CPU when a comparison event occurs, if there is overflow or underflow, at a zero crossing of the counter, and/or at a change of count direction (direction reversal). You can specify which events are to trigger a hardware interrupt during operation in the hardware configuration.
Diagnostics interrupts
If you have enabled a diagnostics interrupt in the hardware configuration, the counter can trigger a diagnostics interrupt if the supply voltage is missing, if there is an incorrect A/B count signal or lost hardware interrupt.

3.1.2

Configuring the high-speed counters

3.1.2.1

General
You configure the high-speed counters (HSC) in STEP 7 (TIA Portal). The functions are controlled via the user program.

Reference

A detailed description of configuring the counting and measuring functions can be found in:
 S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual
 in the STEP 7 online help under "Using technology functions > Counting, measuring and position detection > Counting, measuring and position detection (S7-1500)"
A detailed description of configuring Motion Control be found in:
 S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/59381279) function manual
 in the STEP 7 online help under "Using technology functions > Motion Control > Motion Control (S7-1500)"

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

47

Technology functions 3.1 High-speed counters

3.1.2.2

Assignment of the control interface of the high-speed counters
The user program uses the control interface to influence the behavior of the high speed counter.
Note Operation with High_Speed_Counter technology object
The High_Speed_Counter technology object is available for high-speed counting mode. We therefore recommend use of the High_Speed_Counter technology object instead of the control interface/feedback interface for controlling the high speed counter.
For information on configuring the technology object and programming the associated instruction, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

48

Manual, 12/2017, A5E40898565-AA

Technology functions 3.1 High-speed counters

Control interface per channel
The following table shows the control interface assignment:

Table 3- 3 Assignment of the control interface

Offset from start address Bytes 0 to 3 Bytes 4 to 7 Byte 8
Byte 9

Parameter Slot 0 Slot 1 LD_SLOT_0*
LD_SLOT_1*
EN_CAPTURE EN_SYNC_DN EN_SYNC_UP SET_DQ1 SET_DQ0 TM_CTRL_DQ1 TM_CTRL_DQ0 SW_GATE

Meaning

Load value (meaning of the value is specified in LD_SLOT_0)

Load value (meaning of the value is specified in LD_SLOT_1)

Specifies the meaning of the value in Slot 0

Bit 3 Bit 2 Bit 1 Bit 0

0

0

0

0

No action, idle state

0

0

0

1

Load counter

0

0

1

0

Reserve

0

0

1

1

Load start value

0

1

0

0

Load comparison value 0

0

1

0

1

Load comparison value 1

0

1

1

0

Load low counting limit

0

1

1

1

Load high counting limit

1

0

0

0

Reserve

to

1

1

1

1

Specifies the meaning of the value in Slot 1

Bit 7 Bit 6 Bit 5 Bit 4

0

0

0

0

No action, idle state

0

0

0

1

Load counter

0

0

1

0

Reserve

0

0

1

1

Load start value

0

1

0

0

Load comparison value 0

0

1

0

1

Load comparison value 1

0

1

1

0

Load low counting limit

0

1

1

1

Load high counting limit

1

0

0

0

Reserve

to

1

1

1

1

Bit 7: Enable capture function

Bit 6: Enable downward synchronization

Bit 5: Enable upward synchronization

Bit 4: Set DQ1

Bit 3: Set DQ0

Bit 2: Enable technological function DQ1

Bit 1: Enable technological function DQ0

Bit 0: Software gate

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

49

Technology functions 3.1 High-speed counters

Offset from start address Byte 10
Byte 11

Parameter
SET_DIR ­ RES_EVENT RES_ERROR ­

Meaning
Bit 7: Count direction (with encoder without direction signal) Bits 2 to 6: Reserve; bits must be set to 0 Bit 1: Reset of saved events Bit 0: Reset of saved error states Bits 0 to 7: Reserve; bits must be set to 0

* If values are loaded simultaneously via LD_SLOT_0 and LD_SLOT_1, the value from Slot 0 is taken first internally and then the value from Slot 1 . This may lead to unexpected intermediate states.

Reference

You can find a graphic representation of the processing of the various SLOT parameters in the section Handling the SLOT parameter (control interface) (Page 73).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

50

Manual, 12/2017, A5E40898565-AA

3.1.2.3

Technology functions 3.1 High-speed counters
Assignment of the feedback interface of the high-speed counters
The user program receives current values and status information from the high speed counter via the feedback interface.
Note Operation with High_Speed_Counter technology object The High_Speed_Counter technology object is available for high-speed counting mode. We therefore recommend use of the High_Speed_Counter technology object instead of the control interface/feedback interface for controlling the high speed counter. For information on configuring the technology object and programming the associated instruction, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual.

Feedback interface per channel
The following table shows the feedback interface assignment:

Table 3- 4 Assignment of the feedback interface

Offset from start address Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 Byte 12
Byte 13
Byte 14

Parameter
COUNT VALUE CAPTURED VALUE MEASURED VALUE ­ LD_ERROR ENC_ERROR POWER_ERROR ­ STS_SW_GATE STS_READY LD_STS_SLOT_1 LD_STS_SLOT_0 RES_EVENT_ACK ­ STS_DI2 STS_DI1 STS_DI0 STS_DQ1 STS_DQ0 STS_GATE STS_CNT STS_DIR

Meaning
Current count value Last Capture value acquired Current measured value Bits 3 to 7: Reserve; set to 0 Bit 2: Error when loading via control interface Bit 1: Incorrect encoder signal Bit 0: Incorrect supply voltage L+ Bits 6 to 7: Reserve; set to 0 Bit 5: Software gate status Bit 4: Digital on-board I/O started up and parameters assigned Bit 3: Load request for Slot 1 detected and executed (toggling) Bit 2: Load request for Slot 0 detected and executed (toggling) Bit 1: Reset of event bits active Bit 0: Reserve; set to 0 Bit 7: Reserve; set to 0 Bit 6: Status HSC DI1 Bit 5: Status HSC DI0 Bit 4: Status HSC DQ1 Bit 3: Status HSC DQ0 Bit 2: Internal gate status Bit 1: Count pulse detected within last approx. 0.5 s Bit 0: Direction of last count value change

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

51

Technology functions 3.2 Pulse generators

Offset from start address
Byte 15

Parameter
STS_M_INTERVAL EVENT_CAP EVENT_SYNC EVENT_CMP1 EVENT_CMP0 EVENT_OFLW EVENT_UFLW EVENT_ZERO

Meaning
Bit 7: Count pulse detected in previous measuring interval Bit 6: Capture event has occurred Bit 5: Synchronization has occurred Bit 4: Comparison event for DQ1 has occurred Bit 3: Comparison event for DQ0 has occurred Bit 2: Overflow has occurred Bit 1: Underflow has occurred Bit 0: Zero crossing has occurred

3.2

Pulse generators

3.2.1

Operating modes

3.2.1.1

Operating mode: Pulse-width modulation (PWM)

Properties

The pulse-width modulation (PWM) mode of the compact CPU has the following technical properties:

Pulse duration
Period duration

Standard output
400 µs with load > 0.1 A 1)
500 µs with load  2 mA 1) 10 ms 2)

Minimum High-speed output
deactivated
20 µs with load > 0.1 A 1) 40 µs with load
 2 mA 1) 100 s 2)

High-speed output activated
2 µs 1)

Standard output

Maximum
High-speed output deac-
tivated

High-speed output activat-
ed

10 000 000 µs (10 s)

10 s

1) A lower value is theoretically possible but, depending on the connected load, the output voltage can no longer be output as complete rectangular pulse
2) Load-dependent

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

52

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators
Principle of operation
With pulse width modulation, a signal with defined cycle duration and variable on-load factor is output at the digital output. The on-load factor is the relationship of the pulse duration to the cycle duration. In PWM mode, you can control the on-load factor and the cycle duration. With pulse width modulation, you vary the mean value of the output voltage. Depending on the connected load, you can control the load current or the power with this. You can specify the pulse duration as one-hundredth of the period duration (0 to 100), as one-thousandth (0 to 1 000), as one ten-thousandth (0 to 10 000) or in S7 analog format.
 Period duration  Pulse duration
The pulse duration can be between 0 (no pulse, always off) and full scale (no pulse, period duration always on). The PWM output can, for example, be used to control the speed of a motor from standstill to full speed or you can use it to control the position of a valve from closed to completely open. You configure the pulse width modulation (PWM) mode in STEP 7 (TIA Portal). The pulse width modulation mode has the following functions:  When the option "High-speed output (0.1 A)" is activated, you can generate a minimum
pulse duration of 2 s at a current of 100 mA. If the option "High-speed output (0.1 A)" is not activated, you can generate a minimum pulse duration of 20 s with a load > 0.1 A and a minimum pulse duration of 40 s with a load of  2 mA and a current of maximum 0.5 A. If a standard output is used, you can generate a minimum pulse duration of 400 µs with a load of > 0.1 A and a minimum pulse duration of 500 µs with a load of  2 mA.  You can control the pulse output (DQA) of the channel manually via the control and feedback interface.  You can configure the reaction to CPU STOP. Upon change to CPU STOP, the pulse output (DQA) is set to the configured state.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

53

Technology functions 3.2 Pulse generators

Controller

For the pulse width modulation (PWM) mode, the user program directly accesses the control and feedback interface of the channel.
Reconfiguration via the instructions WRREC/RDREC and parameter assignment data record 128 is supported. You can find additional information in section Parameter data records (PWM) (Page 180).
You control the on-load factor (pulse-cycle ratio) of the pulse width via the OUTPUT_VALUE field of the control interface. Pulse width modulation generates continuous pulses based on this value. The period duration is adjustable.

Figure 3-1 Pulse schematic
Starting the output sequence
The control program must output the enable for the output sequence with the help of the software enable (SW_ENABLE 0  1). The feedback bit STS_SW_ENABLE indicates that the software enable is pending at the PWM. If the software enable is activated (rising edge), STS_ENABLE is set. The output sequence runs continuously, as long as SW_ENABLE is set.
Note Output control signal TM_CTRL_DQ · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can set the
output PWM DQA directly via the control bit SET_DQA.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

54

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators
Canceling the output sequence
Deactivating the software enable (SW_ENABLE = 1  0) cancels the current output sequence. The last period duration is not completed. STS_ENABLE and the digital output PWM DQA are immediately reset to 0. A renewed pulse output is only possible after a restart of the output sequence.
Minimum pulse duration and minimum interpulse period
You assign the minimum pulse duration and the minimum interpulse period with the parameter "Minimum pulse duration".  A pulse duration determined by the technology function or PWM channel which is shorter
than the minimum pulse duration will be suppressed.  A pulse duration determined by the technology function or PWM channel which is longer
than the cycle duration less the minimum interpulse period will be set to the value of the cycle duration (output switched on permanently).

 Cycle duration  Cycle duration minus minimum interpulse period  Minimum pulse duration  OUTPUT_VALUE (One tenth of a percent on-load factor)  Pulse duration
Figure 3-2 Minimum pulse duration and minimum interpulse period

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

55

Technology functions 3.2 Pulse generators
Setting and changing the pulse on-load factor
OUTPUT_VALUE assigns the on-load factor for the current period duration. You select the range of the field OUTPUT_VALUE of the control interface with the "Output format" parameter.
 Output format 1/100: Value range between 0 and 100 Pulse duration = (OUTPUT_VALUE/100) x period duration.
 Output format 1/1000: Value range between 0 and 1 000 Pulse duration = (OUTPUT_VALUE/1 000) x period duration.
 Output format 1/10000: Value range between 0 and 10 000 Pulse duration = (OUTPUT_VALUE/10 000) x period duration.
 Output format "S7 analog output": Value range between 0 and 27 648 Pulse duration = (OUTPUT_VALUE/27 648) x period duration.
You assign OUTPUT_VALUE directly via the control program. A new OUTPUT_VALUE is applied at the output when the next rising edge occurs.
Setting and changing the period duration
 Permanent update The period duration is permanently controlled via the control interface. The MODE_SLOT bit must be set ("1" means permanent update); LD_SLOT must be set to value 1 ("1" means period duration). Set the period value in the field SLOT. The unit is always a microsecond.
­ High-speed output activated: between 10 s and 10 000 000 s (10 s) in the field SLOT
­ High-speed output deactivated: between 100 s and 10 000 000 s (10 s) in the field SLOT
­ Standard output (100 Hz output): between 10 000 µs (10 ms) and 10 000 000 µs (10 s) in the field SLOT
 Individual updating Set the period duration in the configuration parameters. Alternatively, execute an individual update via the control interface. MODE_SLOT must be deleted ("0" means individual update); LD_SLOT must be set to value 1 ("1" means period duration). Set the period duration value in the field SLOT. The unit is always a microsecond.
­ High-speed output activated: between 10 s and 10 000 000 s (10 s) in the parameters
­ High-speed output deactivated: between 100 s and 10 000 000 s (10 s) in the parameters
­ Standard output (100 Hz output): between 10 000 µs (10 ms) and 10 000 000 µs (10 s) in the parameters
The new period duration is applied at the next rising edge of the output.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

56

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

Setting the minimum pulse duration and the minimum interpulse period
You assign the minimum pulse duration and the minimum interpulse period as DWORD numerical value between 0 and 10 000 000 s (10 s) with the help of the channel parameter configuration "Minimum pulse duration".

Parameters of the pulse width modulation (PWM) mode

Category Reaction to CPU STOP
Diagnostics interrupt

Parameter Reaction to CPU STOP
Substitute value for pulse output (DQA)
No supply voltage L+

Meaning
The parameter "Output substitute value" generates a substitute value upon CPU STOP, which you can define with the parameter "Substitute value for pulse output (DQA)".
On CPU STOP, the parameter "Continue" still generates the PWM output signal which was generated before the CPU STOP.
If you have set the option "Output substitute value" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" defines the substitute value to be used for the pulse output of the channel.
If you have set the option "Continue" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" cannot be selected.
The parameter "Missing supply voltage L+" activates the diagnostic interrupt of the channel in the case of no supply voltage L+

Value range Output substitute value
Continue
0 (use substitute value 0)
1 (use substitute value 1)
Deactivated Activated

Default Output substi-
tute value
0
Deactivated

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

57

Technology functions 3.2 Pulse generators

Category Parameter

Parameter
High-speed output (0.1 A)

Meaning
The "High-speed output (0.1 A)" parameter is used to specify whether you want to use the selected pulse output as high-speed output. The requirement for this is that the selected pulse output supports operation as high-speed output.

Output format

Defines the format of the ratio value (on-load factor) in the field "OUTPUT_VALUE" of the control interface of the channel.

Minimum pulse duration

Defines the minimum pulse duration and the minimum interpulse period of the output signal of the channel. The channel suppresses all pulses and pauses that are below the specified value.

Value range
Deactivated
The output supports frequencies of up to 10 kHz (load dependent)
and currents of up to 0.5 A or frequencies of up to 100 Hz and currents of up to 0.5 A depending on the performance capability of
the selected output.
Activated
The output supports frequencies of up to 100 kHz and currents of
up to 0.1 A.
S7 analog output
Interprets the ratio value in the field OUTPUT_VALUE" of the control interface as 1/27648 of
the current period duration.
Supported value range from 0 to 27 648
1/100
Interprets the ratio value in the field "OUTPUT_VALUE" of the control interface as percentage value of the current period dura-
tion.
Supported value range 0 to 100
1/1000
Interprets the ratio value in the field "OUTPUT_VALUE"of the control interface as a one-tenth percentage point of the current
period duration.
Supported value range from 0 to 1 000
1/10000
Interprets the ratio value in the field "OUTPUT_VALUE" of the
control interface as a onehundredth percentage point of the
current period duration.
Supported value range from 0 to 10 000
0 s to 10 000 000 s (10 s)

Default Deactivated
1/100
0 s

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

58

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

Category

Parameter

Period duration

Hardware inputs/ outputs

Pulse output (DQA)

Meaning Defines the period duration of the output signal of the channel in s. In RUN, the user program can control the period duration via the control and feedback interface of the channel.
The parameter "Pulse output (DQA)" defines the hardware output to use as pulse output channel.

Value range
x to 10 000 000 s (10 s)
at 100 kHz hardware output (high-speed output (0.1 A) activated): 10 s to 10 000 000 s
(10 s)
at 10 kHz hardware output (highspeed output (0.1 A) deactivated): 100 s to 10 000 000 s
(10 s)
at 100 kHz hardware output (high-speed output (0.1 A) deac-
tivated): 10 000 s (10 ms) to 10 000 000 s (10 s)
For B: X11, terminal 21 (DQ0 / %Q4.0): 10 kHz / 0.5 A or 100 kHz / 0.1 A
For B: X11, terminal 31 (DQ8 / %Q5.0):
100 Hz / 0.5 A

Default 2 000 000 s
(2 s)
Hardware output with
the least significant address

Output signals for pulse width modulation (PWM) mode

Output signal
Continuous pulse current at the digital output PWM DQA

Meaning
A pulse is output at the digital output PWM DQA for the set on-load factor and period duration.

Value range Continuous pulse current

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

59

Technology functions 3.2 Pulse generators

3.2.1.2

Operating mode: Frequency output
In this operating mode, you can assign a frequency value with high frequencies more precisely than by using the period duration in PWM mode.
A rectangular signal with an assigned frequency and a constant on-load factor of 50% is generated at the digital output.
The frequency output mode has the following functions:
 When the option "High-speed output (0.1 A)" is activated, you can generate a minimum pulse duration of 2 s at a current of 100 mA. If the option "High-speed output (0.1 A)" is not activated, you can generate a minimum pulse duration of 20 s with a load > 0.1 A and a minimum pulse duration of 40 s with a load of  2mA and a current of maximum 0.5 A. If you use a standard output, you can generate a minimum pulse duration of 400 µs with a load of > 0.1 A and a minimum pulse duration of 500 µs with a load of  2 mA and a current of max. 0.5 A.

Frequency

Standard output

Minimum
High-speed output deac-
tivated
0.1 Hz

High-speed Standard out-

output activated

put

100 Hz 1)

Maximum
High-speed output deac-
tivated
10 kHz 1)

High-speed output activated
100 kHz

1) Load-dependent

 You can control the pulse output (DQA) of the channel manually via the control and feedback interface.

 You can configure the reaction to CPU STOP. Upon change to CPU STOP, the pulse output (DQA) is set to the configured state.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

60

Manual, 12/2017, A5E40898565-AA

Controller

Technology functions 3.2 Pulse generators
For the frequency output mode, the user program directly accesses the control and feedback interface of the channel. Reconfiguration via the instructions WRREC/RDREC and parameter assignment data record 128 is supported. You can find additional information in section Parameter data records (PWM) (Page 180).

Figure 3-3 Pulse schematic
Starting the output sequence
The control program must initiate the enable for the output sequence with the help of the software enable (SW_ENABLE 0  1). The feedback bit STS_SW_ENABLE indicates that the software enable is pending at the pulse generator.
If the software enable is activated (rising edge), STS_ENABLE is set. The output sequence runs continuously, as long as SW_ENABLE is set.
Note Output control signal TM_CTRL_DQ · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can directly
set the output PWM DQA via the control bit SET_DQA. Canceling the output sequence
Deactivating the software enable (SW_ENABLE = 1  0) during the frequency output cancels the current output sequence. The last period duration is not completed. STS_ENABLE and the digital output PWM DQA are immediately reset to 0.
A renewed pulse output is only possible after a restart of the output sequence.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

61

Technology functions 3.2 Pulse generators

Setting and changing the output value (frequency)
You set the frequency with the OUTPUT_VALUE directly with the control program in the control interface. The value is specified in the real format and the unit is always "Hz". The possible range depends on the parameter "High-speed output (0.1 A)" as follows:
 High-speed pulse output deactivated
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 10 000 Hz
 High-speed pulse output activated
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 100 000 Hz
 Standard output (100 Hz output)
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 100 Hz
The new frequency is applied at the start of the next period. The new frequency has no impact on the falling edge or the pulse-cycle ratio. However, the application can take up to 10 s depending on the previously set frequency.

Accuracy of the output frequency
The configured output frequency is output with a frequency-dependent accuracy at the digital output PWM DQA. You can find an overview of the accuracy as a function of the frequency used in the section Interconnection overview of the outputs (Page 109).

Parameters of the frequency output mode

Category
Reaction to CPU STOP

Parameter Reaction to CPU STOP
Substitute value for pulse output (DQA)

Meaning
The parameter "Output substitute value" generates a substitute value upon CPU STOP, which you can define with the parameter "Substitute value for pulse output (DQA)".
The parameter "Continue" still generates the frequency output signal upon CPU STOP, which was generated before the CPU STOP.
If you have set the option "Output substitute value" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" defines the substitute value to be used for the pulse output of the channel.
If you have set the option "Continue" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" cannot be selected.

Value range Output substitute value
Continue
0 (use substitute value 0)
1 (use substitute value 1)

Default Output substi-
tute value
0

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

62

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

Category Diagnostics interrupt Parameter
Hardware inputs/ outputs

Parameter

Meaning

No supply voltage L+

The parameter "Missing supply voltage L+" activates the diagnostic interrupt of the channel in the case of no supply voltage L+

High-speed output (0.1 A)

The "High-speed output (0.1 A)" parameter is used to specify whether you want to use the selected pulse output as high-speed output. The requirement for this is that the selected pulse output supports operation as high-speed output.

Output format
Pulse output (DQA)

Defines the value for the frequency output in the field "OUTPUT_VALUE" of the control interface of the channel.
The parameter "Pulse output (DQA)" is used to define the hardware output that you want to use as pulse output channel.

Value range Deactivated
Activated
Deactivated The output supports frequencies of up to 10 kHz (load dependent)
and currents of up to 0.5 A or frequencies of up to 100 Hz and currents of up to 0.5 A depending on the performance capability of
the selected output.
Activated The output supports frequencies of up to 100 kHz and currents of
up to 0.1 A.
1 Hz Interprets the value of the fre-
quency output in the field "OUTPUT_VALUE" as frequency
with the unit Hz. For B:
X11, terminal 21 (DQ0 / %Q4.0): 10 kHz / 0.5 A or 100 kHz / 0.1 A
For B: X11, terminal 31 (DQ8 / %Q5.0):
100 Hz / 0.5 A

Default Deactivated
Deactivated
1 Hz
Hardware output with
the least significant address

Output signals for frequency output mode

Output signal
Continuous pulse current at the digital output PWM DQA

Meaning
A pulse for the assigned frequency is output at the digital output PWM DQA.

Value range Continuous pulse current

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

63

Technology functions 3.2 Pulse generators

3.2.1.3

Operating mode: PTO
The PTO (Pulse Train Output) mode can be used to output position information. This allows you to, for example, control stepper motor drives or simulate an incremental encoder. The frequency of the pulses represents the speed, while the number of pulses represents the distance. The direction can also be specified by using two signals per channel. You can use a PTO channel for setpoint output (drive) for an axis technology object.
PTO mode is divided into the following four signal types:
 PTO (pulse (A) and direction (B)): If you select the PTO signal type (pulse (A) and direction (B)), an output (A) controls the pulses and an output (B) controls the direction. B is 'High' (active) when pulses are generated in a negative direction. B is 'Low' (inactive) when pulses are generated in a positive direction.

 Positive direction of rotation  Negative direction of rotation
 PTO (Count up (A) and Count down (B)): When you select the PTO signal type (count up (A) and count down (B)), an output (A) outputs pulses for positive directions and another output (B) outputs pulses for negative directions.

 Positive direction of rotation  Negative direction of rotation

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

64

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

 PTO (A, B phase-shifted): When you select the PTO signal type (A, B phase-shifted), the two outputs pulses with the specified velocity, but phase-shifted by 90 degrees. This is a 1x combination in which the pulse shows the duration between two positive transitions of A. In this case, the direction is determined based on the output which first changes from 0 to 1. With positive direction, A precedes B. With negative direction B precedes A.
The number of generated pulses is based on the number of 0-to-1 transitions from phase A. The phase ratio determines the direction of motion:

PTO (A, B phase-shifted)

Phase A precedes phase B (positive motion)

Phase A follows phase B (negative motion)

Number of pulses

Number of pulses

 PTO (A, B phase-shifted - quadruple): When you select the PTO signal type (A, B phaseshifted, quadruple), the two outputs transmit pulses with the specified velocity, but phaseshifted by 90 degrees. The quadruple signal type is a 4x configuration in which each edge transition corresponds to an increment. Therefore, a full period of the signal A contains four increments. In this way, two outputs, each with 100 kHz signal frequency, can be used to output a control signal that supplies 400 000 increments per second. The direction is determined based on the output which first changes from 0 to 1. With positive direction, A precedes B. With negative direction B precedes A.

PTO (A, B phase-shifted - quadruple)

Phase A precedes phase B (positive motion)

Phase A follows phase B (negative motion)

Number of pulses
CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Number of pulses 65

Technology functions 3.2 Pulse generators

Parameters of PTO mode

Category
Diagnostics interrupt

Parameter No supply voltage L+

Data exchange with the drive

Reference speed

Maximum speed

Meaning
With the parameter "Missing supply voltage
L+", you activate the diagnostic interrupt of the channel in the event of no supply voltage L+.

Value range Deactivated
Activated

With the parameter "Reference speed", you
define the reference value for the drive velocity. The drive velocity is defined as percentage value of the refer-
ence speed in the range from -200% to
+200%.

Floating-point number: 1.0 to 20 000.0 (rpm)

The parameter "Maximum speed" is used to
define the required maximum speed for
your application.

The supported value range depends on:
· the signal type selected under "Operating mode"
· the value defined under "Increments per revolution"

· the value defined under "Reference speed"
The low limit of the value range is:

· for the signal type "PTO (A, B phase-shifted - quadruple)": 0.1 Hz * 60 s/min * 4) / Increments per revolution

· for the non-quadruple PTO signal types: (0.1 Hz * 60 s/min) / Increments per revolution
The high limit of the value range is the minimum of the value:

· 2 * reference speed and of the value:

· for the signal type "PTO (A, B phase-shifted - quadruple)": (100 000 Hz * 60 s/min * 4) / Increments per revolution

· for the non-quadruple PTO signal types: (100 000 Hz * 60 s/min) / Increments per revolution

Default Deactivated 3 000.0 (rpm)
3 000.0 (rpm)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

66

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

Category
Fine resolution
Stop behavior
Hardware inputs/ outputs

Parameter

Meaning

Increments per revolution

The "Increments per revolution" is used to define the number of increments per revolution (also in microstep mode), which is required by the drive for a
revolution.

Bits in incr. actual value (G1_XIST1)

The parameter defines the number of bits for the coding of the fine resolution in the current incremental value of
G1_XIST1.

Quick stop time

The parameter "Quick stop time" defines the time period within which
the drive should go from the maximum speed to a standstill
(OFF3).

Reference switch input

The parameter "Reference switch input" defines the hardware input of the reference switch.

Edge selection reference switch

The parameter "Edge selection reference switch" defines the edge type which is to be detected by the reference switch.

Measuring input

The parameter "Measuring input" defines the hardware input of the
measuring input.

"Drive ready" input

The parameter ""Drive ready" input" defines the hardware input of the input "Drive ready".

Pulse output A for "PTO (pulse (A) and direction B)"

The parameter "Pulse output A" defines the hardware output for
PTO signal A.

Direction output B for "PTO (pulse (A) and direction B))"

The parameter "Direction output B" defines the hardware output for
PTO signal B.

Value range 1 to 1 000 000
0
1 to 65 535 (ms)
[Input address of the reference switch DI]
Rising edge Falling edge
[Input address of the measuring input DI]
[Input addresses of the inputs "Drive ready" DIn]
[Output address DQ for PTO signal A (output frequency 100
kHz)] [Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)] [Output address 2 of the DQ for PTO signal B (output frequency
100 kHz)]

Default 200
0
1 000 (ms)
-Rising edge
--Grayed out Read only access to the parameter Qn (output frequency 100 kHz)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

67

Technology functions 3.2 Pulse generators

Category

Parameter
Count up for "PTO (Count up (A) and Count down (B))"

Meaning
The "Clock generator forward (A)" parameter defines the hardware output for PTO signal A.

Value range
[Output address DQ for PTO signal A (output frequency 100
kHz)]

Count down for "PTO (Count up (A) and Count down (B))"
Phase A for "PTO (A, B phaseshifted)" and "PTO (A, B phase-shifted, quadruple)"
Phase B for "PTO (A, B phaseshifted)" and "PTO (A, B phase-shifted, quadruple)" Drive enable output

The "Clock generator backward (B)" parame-
ter defines the hardware output for PTO
signal B.
The "Clock generator output (A)" parameter defines the hardware output for PTO signal A.
The "Clock generator output (B)" parameter defines the hardware output for PTO signal B.
The parameter "Drive enable output" defines the hardware output of the output "Drive ena-
ble output".

[Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)]
[Output address of the DQ for PTO signal A (output frequency
100 kHz)]
[Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)]
[Output addresses of the enable outputs DQn (output frequency
100 Hz)]

Default Grayed out Read only access to the pa-
rameter Grayed out Read only access to the pa-
rameter
Grayed out Read only access to the pa-
rameter
Grayed out Read only access to the pa-
rameter
--

Reaction of the PTO channel to CPU STOP
The PTO channel reacts to a change to CPU STOP by removing the drive enable (if the drive enable output is configured) and outputting the velocity setpoint 0 at the hardware outputs configured for the signal tracks A and B. The CPU STOP reaction of the PTO channels cannot be configured.
Note Reaction to CPU STOP
Upon CPU STOP, the hardware outputs assigned for the PTO outputs A and B can switch to signal state 'High' (1) and/or remain there. It is not guaranteed that the two hardware outputs switch to/remain in signal level 'Low' (0).

Controller

The pulse output channels for the four modes of the pulse generators (PTO) are controlled using Motion Control via the technology objects TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis. With these operating modes, the control and feedback interface of the channels is a partial implementation of the PROFIdrive interface "Telegram 3". For a detailed description of the use of motion control and its configuration, refer to the S7-1500 Motion Control function manual (http://support.automation.siemens.com/WW/view/en/109749262) and the STEP 7 online help.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

68

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

3.2.2

Functions

3.2.2.1

Function: High-speed output
The function "High-speed output (0.1 A)" improves the signal clock of the digital outputs (DQ0 to DQ7). Less delay, fluctuation, jitter, and shorter rise and fall times occur at the switching edges.
The function "High-speed output (0.1 A)" is suitable for generating pulse signals in a more precise clock, but provides a lower maximum load current.
For the PWM and Frequency output modes, select the high-speed output of the channel in STEP 7 (TIA Portal). You can also change the parameter assignment during runtime with the help of the program via the data record.
High-speed pulse output (high-speed output) is available for the following operating modes:
 PWM
 Frequency output
 PTO (the pulse outputs for the PTO mode are always "High-speed output (0.1 A)")

High-speed output

Pulse duration
Period duration Frequency

Minimum

High-speed output deactivated

High-speed output activated

20 µs with load > 0.1 A 1)

2 µs 1)

40 µs with load  2 mA
1)

100 s 2)

0.1 Hz

10 s

Maximum

High-speed output deactivated

High-speed output activated

10 000 000 s (10 s)

10 kHz 2)

100 kHz

1) A lower value is theoretically possible but, depending on the connected load, the output voltage can no longer be output as complete rectangular pulse
2) Load-dependent

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

69

Technology functions 3.2 Pulse generators

3.2.2.2

Function: Direct control of the pulse output (DQA)

Direct control of the pulse output (DQA)
In the modes "Pulse width modulation PWM" and "Frequency output", you can set the pulse output (DQA) of a pulse generator directly via the control program. Select the function for the DQ direct control by deleting the output control bit of the PWM channel (TM_CTRL_DQ = 0) in the control interface.
The direct control of the pulse output (DQA) can be helpful when commissioning a control system for automation.
When you select the direct control of the pulse output (DQA) during a pulse output sequence, the sequence continues to run in the background so that the output sequence is continued as soon as the channel takes control again (by setting TM_CTRL_DQ = 1).
You assign the status of the pulse output (DQA) using the control bits SET_DQA.
When you set TM_CTRL_DQ = 1, you deselect the direct control of the pulse output (DQA) and the channel takes over the processing. If the output sequence is still running (STS_ENABLE still active), the PWM channel takes over the control of the output again. If TM_CTRL_DQ = 1 and STS_ENABLE is not active, the module's channel also takes over processing, but then outputs "0".
Note Output control signal TM_CTRL_DQ of the PWM channel · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can set the
PWM DQA directly using the control bits SET_DQA.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

70

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

3.2.3

Configuring the PWM and frequency output modes

3.2.3.1

Assignment of the control interface
The user program influences the behavior of the PWM channel through the control interface.

Control interface per channel
The following table shows the control interface assignment:

Table 3- 5 Assignment of the control interface

Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8
Byte 9
Byte 10
Byte 11

7

6

5

4

3

2

1

0

OUTPUT_VALUE

PWM: On-load factor * (Int)

In PWM mode, the on-load factor uses only the two least significant bytes (byte 2 and byte 3).

Frequency output: Frequency in Hz (Real)

SLOT

Reserved = 0

MODE_SL LD_SLOT

OT

Specifies the meaning of the value under SLOT

0000: No action

0001: Period duration (PWM)

0010 to 1111: Reserved

Reserved = 0

Reserved = Reserved = SET_DQA Reserved = TM_CTRL_ SW_ENA

0

0

0

DQ

BLE

Reserved = 0

RES_ERR OR

Reserved = 0

* The terms "On-load factor", "Pulse duty factor" and "Duty factor" can be used synonymously

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

71

Technology functions 3.2 Pulse generators

Use case

1. Transfer the control for the output to the PWM channel.
2. Set SW_ENABLE so that the output can be started.
3. Set the required on-load factor using OUTPUT_VALUE.
4. If necessary, change the period duration (cyclically or once). If you do not change the value, the period duration from the hardware configuration will be used.
5. With TM CTRL_DQ and SET_DQ, set the output from the user program permanently to 1 or 0.
6. Acknowledge any errors that occur using RES_ERROR.
Additional parameters for the output sequence are defined before the start of an output sequence.
The data record of the parameter assignment is changed in the device configuration in STEP 7 (TIA Portal) or through WRREC execution.

Control interface parameters
OUTPUT_VALUE
The interpretation of the value OUTPUT_VALUE depends on the set operating mode. OUTPUT_VALUE is always updated. When an invalid value is detected (outside the permissible range), the error memory bit ERR_OUT_VAL is set until a valid value is detected. During the error condition, the invalid value is ignored and the PWM channel continues with the last valid OUTPUT_VALUE. Note that, in the frequency output mode, it is also possible that no last valid value is available. In this case, the pulse output returns the value 0, i.e. there is no pulse output.
Please note that the on-load factor is not checked in PWM mode. If the on-load factor is greater than the format permits, the PWM channel uses a ratio of 100%. For values < 0, 0% is effective.
SLOT, MODE_SLOT and LD_SLOT
Use these control interface fields if you occasionally change the period duration in PWM mode before the start of the output sequence or during operation. You can find a description of the interaction between SLOT, MODE_SLOT and LD_SLOT under Handling the SLOT parameter (control interface) (Page 73).
SW_ENABLE
If 0  1, activate the output sequence.
TM_CTRL_DQ
 If 1, the output is controlled by the PWM channel and generates the pulse sequences
 If 0, the output is controlled directly by the program using the SET_DQA assignments

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

72

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

SET_DQA  If 1, set the output A to 1, if TM_CTRL_DQ is inactive  If 0, set the output A to 0, if TM_CTRL_DQ is inactive
RES_ERROR Resetting the error bit memory ERR_LD in the feedback interface

3.2.3.2

Handling the SLOT parameter (control interface)

SLOT and MODE_SLOT
SLOT has the following operating modes.
 Mode for individual update (MODE_SLOT = 0) Use this mode if you occasionally change the specific parameters (such as period duration) before the start of the output sequence or during operation.
­ The value in SLOT is always applied when the value changes in LD_SLOT.
­ The acknowledgment bit STS_LD_SLOT in the feedback interface is switched.
­ The value of LD_SLOT defines the interpretation of SLOT (see the table below "Interpretation of the SLOT parameter value").
­ If the LD_SLOT value is invalid, the setting of the feedback bit ERR_LD indicates a parameter assignment error. The user has to reset the error using the control bit RES_ERROR and enable the SLOT parameter again for the next value.
­ Changes made in this mode can be read back by the channel to the parameter assignment data record.
­ The current changes are entered in the data record 128 during readback of the parameter assignment data from the user program with RDREC. These changes are lost during a warm restart of the CPU.
 Mode for cyclic updating (MODE_SLOT = 1) Use this operating mode if the program is to continuously control another parameter in addition to the main parameter to be controlled.
­ The value in SLOT is transferred with each module cycle.
­ No acknowledgment bit is available.
­ The value of LD_SLOT defines the interpretation of SLOT (see the table below "Interpretation of the SLOT parameter value").
­ If the value in SLOT is not valid, the error ERR_SLOT_VAL occurs. The error is automatically reset as soon as a valid value is loaded.
­ In this mode, the value in the parameter assignment data record is not updated. If LD_SLOT is changed in this mode, the last value applied from LD_SLOT is valid.
­ The mode for permanent updating can be stopped by setting LD_SLOT to 0 and MODE_SLOT to 0. By stopping the mode for permanent updating, the changes made at the parameters during permanent updating are retained until the next changes via SLOT (cyclic or once) or until the next STOP-RUN transition.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

73

Technology functions 3.2 Pulse generators

Interpretation of the SLOT parameter value
The value written in the SLOT parameter is interpreted depending on the LD_SLOT value and the mode as shown in the table below.

LD_SLOT
0 1

Meaning of SLOT value
No action / idling Period duration

Valid modes for using the SLOT value
All operating modes
PWM

SLOT data type
UDInt Permissible value
range*: Minimum value: 10 µs,
100 µs or 10 000 µs (10 ms)
Maximum value: 10 000 000 µs (10 s)

* The permissible value range depends on the selected hardware output and sometimes on the high-speed mode (highspeed/standard).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

74

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators
Individual updating of the parameter 'Period duration'
The following representation illustrates the sequence of the individual updating of the parameter 'Period duration'. The described workflow principle can also be used on the channels of the high-speed counters.

 User writes the first parameter in SLOT and specifies the first parameter in LD_SLOT  Technology channel applies the first parameter and indicates the application with a change in
the bit STS_LD_SLOT
 User writes the second parameter in SLOT and specifies the second parameter in LD_SLOT  Technology channel applies the second parameter and indicates the application with a change
in the bit STS_LD_SLOT
 User writes 0 in LD_SLOT, (SLOT inactive)  Technology channel answers change in LD_SLOT with a change in STS_LD_SLOT
Figure 3-4 Individual updating
Note that the following requirements apply to the representation shown above:
 The value MODE_SLOT must be set to 0
 Errors or invalid values are shown in the feedback bit ERR_SLOT_VAL
 The error must be acknowledged
If MODE_SLOT 0 = 1, the following applies (for PWM mode only):
 The value in SLOT is continuously evaluated according to LD_SLOT
 STS_LD_SLOT does not change
 An error is automatically reset as soon as a valid value is set in SLOT

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

75

Technology functions 3.2 Pulse generators
Cyclic updating of the parameter 'Period duration'
The following representation illustrates the sequence of the cyclic updating of the parameter 'Period duration'. The described workflow principle can also be used on the channels of the high-speed counters.

 · User sets SLOT to the required parameter
· User sets MODE_SLOT to 1
· User sets LD_SLOT to the required value (1 for period duration)
 User changes value in SLOT continuously and technology channel evaluates continuously  Value in SLOT exceeds permitted limit, technology channel shows this ERR_SLOT_VAL and
continues working with the last valid value
 Value in SLOT again in permitted range, technology channel resets ERR_SLOT_VAL inde-
pendently and continues working with the value in SLOT
 User resets LD_SLOT and MODE_SLOT, technology channel continues to work with last value
Figure 3-5 Cyclic updating

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

76

Manual, 12/2017, A5E40898565-AA

Technology functions 3.2 Pulse generators

3.2.3.3

Assignment of the feedback interface
The user program receives current values and status information from the pulse width modulation via the feedback interface.

Feedback interface per channel
The following table shows the feedback interface assignment:

Table 3- 6 Byte 0
Byte 1
Byte 2 Byte 3

Assignment of the feedback interface

7

6

5

ERR_SLOT _VAL
The valid in SLOT is invalid

ERR_OUT_ VAL
The value in
OUTPUT_V ALUE is invalid

Reserved = 0

Reserved = 0

STS_SW_E NABLE
SW_ENABL E detected or feedback
status SW_ENABL
E

Reserved = 0

Reserved = 0

4 Reserved =
0
STS_READ Y
Channel parameters
assigned and ready
Reserved = 0

3
ERR_PULS E

2
ERR_LD Error during loading via
control interface

Reserved = 0

STS_LD_S LOT Load
prompt detected and executed for slot (tog-
gling)

Reserved = Reserved =

0

0

Reserved = 0

1
Reserved = 0

0
ERR_PW R
missing supply voltage L+

Reserved = 0

STS_DQA STS_ENA BLE

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

77

Technology functions 3.2 Pulse generators

Feedback parameters

Table 3- 7 Status feedback Feedback parameters
STS_READY STS_SW_ENABLE STS_LD_SLOT
STS_ENABLE
STS_DQA

Meaning

Value range

The channel is correctly configured, is operating and supplying valid data.

0: Not ready to run 1: Ready to run

Current status of the software enable

0: SW_ENABLE is not active

1: SW_ENABLE detected

Acknowledgment bit for each action of the SLOT in the SLOT mode for individual updating (for a description of the acknowledgment bit, refer to the section Handling the SLOT parameter (control interface) (Page 73)).

Each switching of this bit represents a successful LD_SLOT action.

The output sequence is active.

0: No output sequence running

(STS_ENABLE always depends on the status of 1: Output sequence running the software enable STS_SW_ENABLE)

State of the pulse output (DQA)

0: Pulse output is not active

1: Pulse output is active

Feedback parameters ERR_PWR ERR_LD ERR_OUT_VAL ERR_SLOT_VAL

Meaning

Value range

No supply voltage L+

0: No error

1: Error

Error during loading of a parameter value in the operating mode for individual updating

0: No error 1: Error

The value in OUTPUT_VALUE is invalid

0: No error

1: Error

The value in SLOT is invalid, where MODE_SLOT = 0: No error

1 (permanent updating)

1: Error

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

78

Manual, 12/2017, A5E40898565-AA

Wiring

4

4.1

Supply voltage

24 V DC supply voltage (X80)
The connecting plug for the supply voltage is plugged in when the CPU ships from the factory.
The following table shows the terminal assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring-loaded NC contact (one spring-loaded NC contact per terminal)
Bridged internally:
 and   and 
Figure 4-1 Connection for supply voltage
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

79

Wiring 4.2 PROFINET interfaces

4.2

PROFINET interfaces

PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
 When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).
 When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 4-2 PROFINET ports
Note You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

Reference

For more information on "Wiring the CPU" and "Accessories/spare parts", refer to the S71500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

80

Manual, 12/2017, A5E40898565-AA

Wiring 4.2 PROFINET interfaces

Assignment of the MAC addresses
The CPU 1511C-1 PN has a PROFINET interface with two ports. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. The CPU 1511C-1 PN therefore has three MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is continuous. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1511C-1 PN.
The table below shows how the MAC addresses are assigned.

Table 4- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)
Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

81

Wiring 4.3 Terminal and block diagrams

4.3

Terminal and block diagrams

4.3.1

Block diagram of the CPU part

Block diagram
The following figure shows the block diagram of the CPU part.



CPU with control and operating mode but-

tons



Display



Electronics



Interface to on-board I/O



Interfaces to the backplane bus



Backplane bus interface



Internal supply voltage



2-port switch

X50

SIMATIC memory card

X80 24 V DC Infeed of supply voltage Figure 4-3 Block diagram of the CPU part

PN X1 P1 R PROFINET interface X1 port 1

PN X1 P2 R L+ M SF R/S ER MT X1 P1, X1 P2

PROFINET interface X1 Port 2 24 V DC supply voltage Ground STOP ACTIVE LED (yellow) RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) Link TX/RX LED

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

82

Manual, 12/2017, A5E40898565-AA

4.3.2

Wiring 4.3 Terminal and block diagrams
Terminal and block diagram of the analog on-board I/O
This section contains the block diagram of the analog on-board I/O (X10) and various wiring options. For information on wiring the front connector, establishing the cable shield, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note You can use and combine the different wiring options for all channels. Note, however, that unneeded terminals of an analog input channel must not be connected.

Definition

Un+/UnMn+/Mn-
In+/InIc n+/Ic nQVn QIn MANA CHx

Voltage input channel n (voltage only) Measuring input channel n (only resistance-type transmitters or thermal resistors (RTD)) Current input channel n (current only) Current output for RTD, channel n Voltage output channel Current output channel Reference potential of the analog circuit Channel or display of the channel status

Infeed element

The infeed element is inserted on the front connector and serves to shield the analog onboard I/O.

Note
The analog on-board I/O does not require power to be supplied by the infeed element. The infeed element is, however, necessary for shielding.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

83

Wiring 4.3 Terminal and block diagrams
Wiring: Voltage measurement
The following figure shows the terminal assignment for voltage measurement at the channels available for this measurement type (channels 0 to 3).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  Voltage measurement
Figure 4-4 Block diagram and terminal assignment for voltage measurement

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

84

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 4-wire measuring transducer for current measurement
The following figure shows the terminal assignment for current measurement with 4-wire measuring transducer at the channels available for this measurement type (channels 0 to 3).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  Connector 4-wire measuring transducer
Figure 4-5 Block diagram and terminal assignment for current measurement with 4-wire measuring transducer

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

85

Wiring 4.3 Terminal and block diagrams
Wiring: 2-wire measuring transducer for current measurement
As an alternative to connecting a 4-wire measuring transducer, you can also connect 2-wire measuring transducers to channels 0 to 3. An external 24 V power supply is required to connect a 2-wire measuring transducer to the analog on-board I/O of the compact CPU. Feed this voltage short-circuit proof to the 2-wire transducer. Use a fuse to protect the power supply unit.
NOTICE Defective measuring transducer Note that the analog input of the measuring transducer is not protected against destruction in the event of a defect (short circuit). Take the necessary precautions against such cases.
The figure below shows an example of the connection of a 2-wire measuring transducer to channel 0 (CH0) of the analog on-board I/O.

 Sensor (e.g. pressure gauge)  2-wire measuring transducer  Fuse  Equipotential bonding cable (optional)
Figure 4-6 2-wire measuring transducer at channel 0
Use the measurement type "Current (4-wire transducer)" and the measuring range 4 to 20 mA for the parameter assignment of the 2-wire measuring transducer in STEP 7 (TIA Portal).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

86

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 4-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 4-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  4-wire connection
Figure 4-7 Block diagram and terminal assignment for 4-wire connection

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

87

Wiring 4.3 Terminal and block diagrams
Wiring: 3-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 3-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).
Note 3-wire connection Note that line resistances are not compensated with a 3-wire connection.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  3-wire connection
Figure 4-8 Block diagram and terminal assignment for 3-wire connection

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

88

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 2-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 2-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).
Note 2-wire connection Note that line resistances are not compensated with a 2-wire connection.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  2-wire connection
Figure 4-9 Block diagram and terminal assignment for 2-wire connection

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

89

Wiring 4.3 Terminal and block diagrams
Wiring: Voltage output
The figure below shows the terminal assignment for the wiring of the voltage outputs with:  2-wire connection without compensation for line resistances.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  2-wire connection CH0 and CH1
Figure 4-10 Block diagram and terminal assignment for voltage output
Note
MANA on terminals 19 and 20 is equivalent.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

90

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Wiring: Current output
The following figure shows an example of the terminal assignment for wiring current outputs.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Current output CH0 and CH1
Figure 4-11 Block diagram and terminal assignment for current output
Note MANA on terminals 19 and 20 is equivalent.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

91

Wiring 4.3 Terminal and block diagrams

4.3.3

Wiring and block diagrams of the digital on-board I/O
This section contains the block diagram of the digital on-board I/O (X11) with standard inputs and outputs and the encoder supply, as well as the rules for the correct wiring of the ground connections.
For information on wiring the front connector, establishing the cable shield, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Infeed element

The infeed element is inserted on the front connector and serves to shield the digital onboard I/O.

Note
The digital on-board I/O is supplied via the front connector terminals and therefore does not require power to be supplied by the infeed element. The infeed element is, however, necessary for shielding.

Output driver

The digital onboard I/O uses the following output drivers:  X11, DQ0 to DQ7: Push-pull stage and freewheeling diode  X11, DQ8 to DQ15: High-side switch and freewheeling diode

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

92

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Block diagram and terminal assignment
The figure below shows you how to connect the digital on-board I/O and the assignment of the channels to the addresses (input byte a and b, output byte c and d).

 
xL+ xM CHx RUN ERROR PWR

Encoder supply for the digital inputs CPU interface Connection for 24 V DC supply voltage Connection for ground Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 4-12 Block diagram and terminal assignment

NOTICE
Polarity reversal of the supply voltage
An internal protective circuit protects the digital on-board I/O against destruction if the polarity of the supply voltage is reversed. In the case of polarity reversal of the supply voltage, however, unexpected states can occur at the digital outputs.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

93

Wiring 4.3 Terminal and block diagrams

Supply voltage

The inputs and outputs of the digital on-board I/O are divided into two load groups which are supplied with 24 V DC.
The digital inputs DI0 to DI15 form a load group and are supplied via the connections 1L+ (terminal 19) and 1M (terminal 20).
The digital outputs DQ0 to DQ7 are supplied via the connection 2L+ (terminal 29). The digital outputs DQ8 to DQ15 are supplied via the connection 3L+ (terminal 39). Please note that the digital outputs DQ0 to DQ15 only have a common ground. In each case, they are led through to the two terminals 30 and 40 (2M/3M) and bridged in the module. The digital outputs form a common load group.

Response of the digital outputs to a wire break at ground connection of the outputs
Due to the characteristics of the output driver used in the module, approx. 25 mA supply current flows out through the outputs via a parasitic diode in the event of a ground wire break. This behavior can lead to non-set outputs also carrying high levels and emitting up to 25 mA output current. Depending on the type of load, 25 mA can be sufficient to control the load with high level. To prevent unintended switching of the digital outputs in the event of a ground wire break, follow these steps:
Wire to ground twice
Connect ground to terminal 30 and to terminal 40.
1. Route the first ground connection from terminal 30 to the central ground connection of the plant.
2. Route the second ground connection from terminal 40 to the central ground connection of the plant.
If terminal 30 or 40 are interrupted by a ground wire break, the outputs will continue to be supplied via the second, intact ground connection.
WARNING
Wire break at ground connection
Never bridge from terminal 30 to terminal 40 in the front connector and never lead only one wire to the central ground connection.
Connect terminal 30 and terminal 40 to a common ground point.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

94

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
As a supplement to the block diagram and terminal assignment, the following figure shows the correct wiring of the outputs in order to prevent switching of the outputs in the event of a ground wire break.

Figure 4-13 Correct wiring
The ground is supplied with a first cable from the central terminal block to terminal 30 of the module and additionally with a second cable also from the central terminal block to terminal 40 of the module.
At the digital outputs, each of the ground connections of the loads is connected with a separate cable for each load to the central terminal block.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

95

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow with correct wiring.

Figure 4-14 Current flow with correct wiring
With correct wiring, the supply current flows from the power supply 2L+ via terminal 29 to the module. In the module, the current flows via the output driver and exits the module via terminal 40.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

96

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the reaction to interruption of the first ground cable.

Figure 4-15 Interruption of the first ground cable
If a wire break occurs on the first ground cable from the central terminal block to terminal 30, the module can continue to operate without restrictions, as it is still connected to the ground via the second cable from the central terminal block to terminal 40.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

97

Wiring 4.3 Terminal and block diagrams
The figure below shows the reaction to interruption of the second ground cable.

Figure 4-16 Interruption of the second ground cable
If a wire break occurs on the second ground cable from the central block terminal to terminal 30, the module can continue to operate without restrictions, as it is still connected to the ground via the first cable from the central terminal block to terminal 40.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

98

Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow upon interruption of both ground cables.

Figure 4-17 Current flow upon interruption of both ground cables
If a wire break occurs on the first and on the second ground cable from the central terminal block to the terminals 30 and 40 of the module, a malfunction occurs on the module. Both ground connections of the module are interrupted.
The supply current flows from the power supply 2L+ via terminal 29 to the module. In the module, the current flows via the output driver into the parasitic diode and exits the module via the output terminal, e.g. as shown in the figure via terminal 27. The supply current therefore flows via the connected load. The internal supply current is typically 25 mA.
WARNING
Interruption of both ground cables
If the ground terminals 30 and 40 are interrupted, the following incorrect response can occur:
The activated outputs, which are switched to high, start to switch back and forth between high and low. If the load connected at the output is sufficiently small, the output is continuously activated.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0)

Manual, 12/2017, A5E40898565-AA

99

Wiring 4.3 Terminal and block diagrams

Faulty wiring

The following figure shows faulty wiring which has a bridge on the front connector.

Figure 4-18 Faulty wiring: Bridge
Terminals 30 and 40 are connected in the front connector and only routed with one cable to the central terminal block. If this cable breaks, terminals 30 and 40 are no longer connected to the ground. The module's supply current flows out via the output terminal.

100

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow when the ground connections of the loads and the ground connection of terminal 30 are routed with a common cable to the central terminal block.



Ground connections of other plant parts that can also carry large currents.

Figure 4-19 Faulty wiring: Common cable

If a break occurs in the common cable, the current of the outputs flows via terminal 30 to the module and via terminal 40 to the central terminal block. The current flows via the module.

WARNING
Current flow with faulty wiring
If a break occurs in the common cable, the current can be very high, depending on the plant, and lead to the destruction of the module.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

101

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow with correct wiring when a potential difference exits between the grounding points.



Grounding point functional earth 1 (FE 1)



Grounding point functional earth 2 (FE 2)

Figure 4-20 Potential difference

Equipotential bonding occurs via terminals 30 and 40. When a potential difference exists between the grounding points FE1 and FE2, the compensating current flows via terminals 30 and 40.

WARNING
Current flow with faulty wiring
In the event of a potential difference, the current can be very high, depending on the potential conditions, and lead to the destruction of the module.

102

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams
Input filter for digital inputs
To suppress disruptions, you can configure an input delay for the digital inputs. You can specify the following values for the input delay:  None  0.05 ms  0.1 ms  0.4 ms  1.6 ms  3.2 ms (default setting)  12.8 ms  20 ms
Note Shielding If you use standard digital inputs with "None" set as the input delay, you must use shielded cables. Shielding and the infeed element are recommended for use of standard digital inputs starting from an input delay of 0.05 ms but are not absolutely necessary.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

103

Wiring 4.3 Terminal and block diagrams

4.3.4

Addresses of the high-speed counters
You connect the encoder signals, the digital input and output signals and the encoder supplies to the 40-pin front connector of the digital on-board I/O. For information on wiring the front connector, creating the cable shield, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Encoder signals
The 24 V encoder signals are designated with letters A, B and N. You can connect the following encoder types:
 Incremental encoder with signal N:
Signals A, B and N are connected using the correspondingly marked connections. Signals A and B are the two incremental signals, phase-shifted by 90°. N is the zero mark signal that supplies a pulse per revolution.
 Incremental encoder without signal N:
Signals A and B are connected using the correspondingly marked connections. Signals A and B are the two incremental signals, phase-shifted by 90°.
 Pulse encoder without direction signal:
The count signal is connected to the A connection.
 Pulse encoder with direction signal:
The count signal is connected to the A connection. The direction signal is connected to the B connection.
 Pulse encoder with up/down count signal:
The up count signal is connected to the A connection. The down count signal is connected to the B connection.
You can connect the following encoders or sensors to the A, B and N inputs:
 Sourcing output: The encoder or sensor switches the A, B and N inputs to 24 V DC.

Note External load resistance
Note that, depending on the characteristics of the signal source, effective load and height of the signal frequency, you may require an external load resistance to limit the fall time of the signal from high level to low level.
The specifications/technical data of the signal source (e.g. sensor) are decisive for the configuration of such a load resistance.
 Push-pull: The encoder or sensor switches the A, B and N inputs alternately to 24 V DC and to ground M.

104

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams

Digital inputs HSC DI0 and HSC DI1
The digital inputs are logically assigned to the high-speed counters (HSC). For information on the possible assignment of the on-board I/O inputs to the high-speed counters, refer to the table Interconnection overview of the inputs (Page 108). Up to two digital inputs are available for each high-speed counter (HSC DI0 and HSC DI1). You can use the digital inputs for the gate control (Gate), synchronization (Sync) and Capture functions. Alternatively, you can use one or more digital inputs as standard digital inputs without the functions mentioned and read the signal state of the respective digital input using the feedback interface.
Digital inputs that you do not use for high-speed counting are available for use as standard DIs.

Input addresses of the high-speed counters
You set the digital input addresses used by the high-speed counters (HSC) and the assignment of A/B/N, DI0, DI1 and DQ1 signals in STEP 7 (TIA Portal). You can enable and configure each HSC when you configure the compact CPU.
The compact CPU assigns the input addresses for the A/B/N signals automatically according to the configuration.
You specify the input addresses for DI0 and DI1 according to the table Interconnection overview of the inputs (Page 108). The interconnection produces a direct connection of the HSC to an input of the on-board I/O. The high-speed counter then uses this input as HSC DI0 or HSC DI1 ([DI] symbol). The [DI] symbols in the table identify the input addresses for HSC DI0 and HSC DI1 that are offered for selection in the hardware configuration.

Assignment of HSC addresses of inputs
You can find an overview of the options for interconnecting the inputs of the front connectors X11 and X12 in the section Interconnection overview of the inputs (Page 108).

Digital outputs HSC-DQ0 and HSC-DQ1
Two digital outputs are available for each high-speed counter. Digital output HSC-DQ0 is a logical output that cannot be interconnected with a digital output of the on-board I/O. Digital output HSC-DQ0 can only be used via the user program. HSC-DQ1 is a physical output that can be interconnected with a digital output of the on-board I/O. The digital outputs are 24 V sourcing output switches relative to M and can be loaded with a rated load current of 0.1 A. The outputs used as standard outputs have a rated load current of 0.5 A. The digital outputs are protected against overload and short-circuit.
Note
It is possible to directly connect relays and contactors without external wiring. For information on the maximum possible operating frequencies and the inductance values of the inductive loads at the digital outputs, refer to the Technical specifications section.
The section Interconnection overview of the outputs (Page 109) provides an overview of which digital outputs you can interconnect to which high-speed counters. Digital outputs to which no high-speed counter is interconnected can be used as standard outputs. The maximum output delay of each digital output used as standard output is 500 µs.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

105

Wiring 4.3 Terminal and block diagrams

Shielding

Note
When you use digital inputs/outputs with technology functions, i.e. interconnect high-speed counters with the inputs/outputs, you must use shielded cables and the infeed element for shielding.

Reference

For more information on configuring the inputs of the high-speed counters, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual and the STEP 7 online help.

4.3.5

Addresses of the pulse generators in the Pulse Width Modulation (PWM) and Frequency Output modes

Configuring the outputs as pulse generators
If you configure the memory of the outputs of the CPU as pulse generators (for PWM or PTO), the corresponding addresses of the outputs are removed from the memory of the outputs. You cannot use the addresses of the outputs for other purposes in your user program. When your user program writes a value to an output that you are using as a pulse generator, the CPU does not write this value to the physical output.

Assignment of the PWM addresses of the outputs
The section Interconnection overview of the outputs (Page 109) provides an overview of which digital outputs you can interconnect to which PWM channels.
Note The digital inputs and outputs assigned to PWM and PTO cannot be forced.
You assign the digital inputs and outputs to the pulse duration modulation (PWM) and the pulse train output (PTO) during the device configuration. If you assign digital inputs and outputs to these functions, the values of the addresses of the assigned digital inputs and outputs cannot be changed by the function for forcing in the watch table. Instead, you can force the output bit TM_CTRL_DQ to 0 and switch the output on or off with the bit SET_DQA (relevant for the PWM and Frequency Output modes).
For more information on forcing inputs and outputs, refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

106

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams

4.3.6

Addresses of pulse generators in the PTO mode
You connect the encoder signals, the digital input and output signals and the encoder supply to the 40-pin front connector of the digital on-board I/O. For information on wiring the front connectors, establishing the cable shields, etc., refer to the S7-1500, ET 200MP system manual. (http://support.automation.siemens.com/WW/view/en/59191792)

Encoder signals
In addition to supporting its outputs, each PTO channel also supports the three following optional inputs:  Reference Switch (RS)  Measuring Input (MI)  Drive Ready (DR)

Input addresses of the pulse generators (PTO)
You make the settings of the digital input addresses used by the pulse generators (PTO) in the hardware configuration of STEP 7 (TIA Portal). When you configure the compact CPU, you can individually activate and configure the four PTO channels.

Assignment of PTO addresses of inputs
A direct connection from the PTO to an input of the on-board I/O is established through the interconnection. You can find an overview of the options for interconnecting the inputs (DI0 to DI15) to the available PTO channels (PTO1 to PTO4) in the section Interconnection overview of the inputs (Page 108).

Assignment of the PTO addresses of the outputs
The section Interconnection overview of the outputs (Page 109) provides an overview of which digital outputs you can interconnect to which PTO channels.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

107

Wiring 4.3 Terminal and block diagrams

4.3.7

Interconnection overview of the inputs

Combined interconnection of the technology channels
The following table provides you with an overview of the possible interconnections of the inputs of front connector X11 to allow you to correctly distribute the available inputs over the possible technology channels HSC and PTO. This overview is a combination of interconnection options of technology channels for HSC and PTO.

Fr Ter Cha on mina nnel t l co nn ec tor

PTO1

PTO

PTO2

PTO3

PTO4

X1 1 1 2

DI0 [DR]

[DR]

DI1 [DR] [MI] [DR]

[DR] [DR]

[DR] [DR]

3 DI2 [DR] [RS] [DR]

[DR]

[DR]

4 DI3 [DR]

[DR]

[DR]

[DR]

5 DI4 [DR]

[DR] [MI] [DR]

[DR]

6 DI5 [DR]

[DR] [RS] [DR]

[DR]

7 DI6 [DR]

[DR]

[DR] [MI] [DR]

8 DI7 [DR]

[DR]

[DR] [RS] [DR]

11 DI8 [DR]

[DR]

[DR]

[DR]

12 DI9 [DR]

[DR]

[DR]

[DR]

13 DI10 [DR]

[DR]

[DR]

[DR]

14 DI11 [DR]

[DR]

[DR]

[DR]

15 DI12 [DR]

[DR]

[DR]

[DR]

16 DI13 [DR]

[DR]

[DR]

[DR]

17 DI14 [DR]

[DR]

[DR]

[DR] [MI]

18 DI15 [DR]

[DR]

[DR]

[DR] [RS]

HSC1
A [B] [DI] [N] [DI]
[DI] [DI] [DI] [DI] [DI]

HSC2

High-speed counters (HSC)

HSC3

HSC4

HSC5

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

A

[DI]

[B] [DI]

[DI]

[N] [DI]

[DI]

[DI] A

[DI] [B] [DI]

A

[DI]

[B] [DI]

[DI]

[N] [DI]

[DI]

[DI] A

[DI] [B] [DI]

[DI] [N] [DI]

[DI]

[DI]

[DI]

[DI]

HSC6
[DI] [DI] [DI] [DI] [DI] [DI] A [B] [DI]

[...] = Use is optional
[DR] = Drive ready; [MI] = Measuring input; [RS] = Reference switch
[DI] stands for [HSC DI0/HSC DI1] = DI: Is used for the HSC functions: Gate, Sync and Capture
The assignment to [B] or [N] takes precedence over the assignment to HSC DI0 or HSC DI1. This means that input addresses that are assigned to count signal [B] or [N] based on the selected signal type cannot be used for other signals such as HSC DI0 or HSC DI1.

108

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Wiring 4.3 Terminal and block diagrams

4.3.8

Interconnection overview of the outputs

Combined interconnection of the technology channels
The following table provides you with an overview of the possible interconnections of the outputs of front connector X11 to allow you to correctly distribute the available outputs over the possible technology channels HSC, PWM and PTO. This overview is a combination of interconnection options of technology channels for HSC, PWM and PTO.

Front connector

Ter mina
l

Hardware output
Cha Output module nnel

X11 1 DQ0
2 DQ1
3 DQ2
4 DQ3
5 DQ4
6 DQ5
7 DQ6
8 DQ7
11 DQ8 12 DQ9 13 DQ1
0 14 DQ1
1 15 DQ1
2 16 DQ1
3 17 DQ1
4 18 DQ1
5

High-speed Standard
High-speed Standard
High-speed Standard
High-speed Standard
High-speed Standard
High-speed Standard
High-speed Standard
High-speed Standard
Standard

Standard DQ Configurable as standard DQ for
channel
DQ0
DQ1
DQ2
DQ3
DQ4
DQ5
DQ6
DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15

PWM Configurable as PWM output for
channel
PWM 1 PWM 1
PWM 2 PWM 2
PWM 3 PWM 3
PWM 4 PWM 4
PWM 1 PWM 2

Configurable as PTO output A for
channel 1) PTO1
PTO2
PTO3
PTO4

PTO Configurable as PTO output B for
channel 2)
PTO1)
PTO2
PTO3
PTO4 PTO1*

Configurable as "Drive enable output" for channel
[PTO 2/3/4]
[PTO 1/2/3/4]
[PTO 1/3/4]
[PTO 1/2/3/4]
[PTO 1/2/4]
[PTO 1/2/3/4]
[PTO 1/2/3]
[PTO 1/2/3/4] [PTO 1/2/3/4] [PTO 1/2/3/4] [PTO 1/2/3/4]

HSC Can be used as
HSC-DQ1 for channel
[HSC1]
[HSC2] [HSC3] [HSC4] [HSC6] [HSC5]
[HSC1

PTO2*

[PTO 1/2/3/4]

[HSC2

PWM 3

[PTO 1/2/3/4]

[HSC3

PTO3*

[PTO 1/2/3/4]

[HSC4

PWM 4

[PTO 1/2/3/4]

[HSC6

PTO4*

[PTO 1/2/3/4]

[HSC5

* Only supports for PTO direction signal (signal type "pulse A and direction B") 1) "PTOx - Output A" stands for the signal types Pulse output A or Pulse 2) "PTOx - Output B" stands for the signal types Pulse output B or Direction

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

109

Wiring 4.3 Terminal and block diagrams

Technical characteristics of the outputs
The following table shows an overview of the technical characteristics of the individual outputs.

Frequency range (period duration)

Accuracy of the pulse duration

10 to <= 100 kHz (100 to > = 10 µs)
100 Hz to <10 kHz (10 ms to > 100 µs)
10 to < 100 Hz (0.1 s to > 10 ms)

1 to <10 Hz (1 to > 0.1 s)

0.1 to < 1 Hz (10 to >1 s)

Accuracy of

---

the frequency

Minimum pulse duration

DQ0 to DQ7

High-speed output (0.1 A) activated

High-Speed output (0.1 A) deactivated

max. 100 kHz

max. 10 kHz

max. 0.1 A

max. 0.5 A

Sourcing/sinking output Switching to P potential1)

±100 ppm ±2 µs

---

DQ8 to DQ15 Standard output
max. 100 Hz max. 0.5 A Switching to P potential1)
---

±150 ppm ±2 µs ±600 ppm ±2 µs
± 100 ppm2)

±100 ppm ±10 µs with load > 0.1 A
±100 ppm ±20 µs with load  2mA
±150 ppm ±10 µs with load > 0.1 A
±150 ppm ±20 µs with load  2mA
±600 ppm ±10 µs with load > 0.1 A
±600 ppm ± 20 µs with load  2mA ± 100 ppm2)

±100 ppm ±100 µs with load > 0.1 A
±100 ppm ±200 µs with load  2mA
±150 ppm ±100 µs with load > 0.1 A
±150 ppm ±200 µs with load  2mA
±600 ppm ±100 µs with load > 0.1 A
±600 ppm ±200 µs with load  2mA
± 100 ppm2)3)

2 µs

20 µs with load > 0.1 A 400 µs with load > 0.1 A

40 µs with load  2 mA 500 µs with load  2 mA

20 µs with load < 240 1)

400 µs with load < 240 1)

1) With sourcing outputs, it must be taken into consideration that falling edges can be delayed as compared to rising edges depending on the load. The on-load factor can therefore be falsified. Consider using a high-speed output if the load at the output is greater than 240 .
2) The frequency has a basic accuracy of ±100 ppm with a resolution of 0.3638 mHz.
3) Standard outputs are affected by jitter during generation of frequencies. The set period duration is not adhered to in every period, but it is adhered to on average over several periods.

110

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space

5

5.1

Address space of the analog on-board I/O

Address space of the analog input and analog output channels
The addresses are divided into five analog input channels and two analog output channels. STEP 7 (TIA Portal) assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7 (TIA Portal), i.e. freely assign the start address. The addresses of the channels are based on the start address.
"IB x", for example, stands for the start address input byte x. "QB x" stands, for example, for the start address output byte x.

Figure 5-1 Address space 7-channel analog on-board I/O with value status

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

111

Parameters/address space 5.1 Address space of the analog on-board I/O
Value status (quality information, QI)
As of firmware version 2.0, the analog and digital on-board I/O support the value status as diagnostics option. You activate the use of the value status in the hardware configuration of STEP 7 (TIA Portal). Value status is deactivated by default. When you activate the value status, the input area of the analog on-board I/O contains two additional bytes, which provide the QI bits to the five analog input channels and two analog output channels. You access the QI bits through the user program.
Value status of input channels Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid. Value status = 0 ("Bad") indicates that the read value is not valid. Possible cause for value status = 0:  A channel has been deactivated  A measured value was not updated after a parameter change  A measured value is outside the low/high measuring range (overflow/underflow)  Wire break has occurred (only for the "Voltage" measurement type in the measuring
range "1 to 5 V" and for the "Current" measurement type in the measuring range "4 to 20 mA")
Value status of output channels The value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal. The value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect. Possible cause for value status = 0:  A channel has been deactivated  Outputs are inactive (for example, CPU in STOP)  An output value is outside the high/low measuring range (overflow/underflow)  Wire break has occurred (only for the "Current" output type)  Short-circuit has occurred (only for the "Voltage" output type)

112

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space 5.2 Address space of the digital on-board I/O

5.2

Address space of the digital on-board I/O

Address space of the digital input and digital output channels
The addresses are divided into 16 digital input channels and 16 digital output channels. STEP 7 (TIA Portal) assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7 (TIA Portal), i.e. freely assign the start address. The addresses of the channels are based on the start address.
The letters "a" to "d" are lasered on the on-board I/O. "IB a", for example, stands for start address input byte a. "QB x", for example, stands for start address output byte x.

Figure 5-2 Address space 32-channel digital on-board I/O (16 digital inputs/16 digital outputs) with value status

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

113

Parameters/address space 5.2 Address space of the digital on-board I/O
Value status (quality information, QI)
As of firmware version 2.0, the analog and digital on-board I/O support the value status as diagnostics option. You activate the use of the value status in the hardware configuration of STEP 7 (TIA Portal). Value status is deactivated by default. You can activate/deactivate the value status of the digital on-board I/O for X11 and X12 independently of each other. When you activate the value status, the input area of the digital on-board I/O (X11/X12) contains four additional bytes, which provide the QI bits to the 16 digital input channels and 16 digital output channels. You access the QI bits through the user program.
Value status of input channels Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid. Value status = 0 ("Bad") indicates that no or too little supply voltage L+ is applied at the terminal and that the read value is therefore not valid.
Value status of output channels The value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal. The value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect or the channel is used for technology functions. Possible cause for value status = 0:  The supply voltage L+ is missing at the terminals or is not sufficient  Outputs are inactive (for example, CPU in STOP)  Technology functions (HSC, PWM or PTO) use the channel
Note Behavior of the value status at the output channels for technology functions The output channels return the value status 0 ("Bad") when a technology channel (HSC, PWM or PTO) is used. It does not matter in this context whether the output value is incorrect or not.

114

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space 5.3 Address space of the high-speed counters

5.3

Address space of the high-speed counters

Address space of the high-speed counters

Table 5- 1 Size of the input and output addresses of the high-speed counters

Size per high-speed counter (6x)

Inputs 16 bytes

Outputs 12 bytes

You can find a description of the control interface in the section Assignment of the control interface of the high-speed counters (Page 48). You can find a description of the feedback interface in the section Assignment of the feedback interface of the high-speed counters (Page 51).

Table 5- 2 Size of the input and output addresses in operating mode "Position detection for Motion Control"

Size per high-speed counter (6x)

Inputs 16 bytes

Outputs 4 bytes

5.4

Address space of the pulse generators

Address space of the pulse generators in the PWM, frequency output and PTO modes

Operating mode
PWM (4x) Frequency output PTO Deactivated

Feedback interface (inputs) 4 bytes 4 bytes 18 bytes 4 bytes *

Control interface (outputs) 12 bytes 12 bytes 10 bytes 12 bytes *

* In "Deactivated" mode, the control interface is not evaluated and the feedback interface is set to 0 values

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

115

Parameters/address space 5.5 Measurement types and measuring ranges of the analog on-board I/O

5.5

Measurement types and measuring ranges of the analog on-

board I/O

Introduction

The analog on-board I/O is set to voltage measurement type and measuring range ±10 V by default for the inputs on channels 0 to 3. By default, channel 4 is set to resistance measuring type and measuring range 600 . If you want to use another measurement type or measuring range, change the parameter settings of the analog on-board I/O with STEP 7 (TIA Portal).
Disable unused inputs to prevent disturbances that cause incorrect behavior (e.g. triggering of a hardware interrupt).

Measurement types and measuring ranges
The following table shows the measurement types, the measuring range and the possible channels.

Table 5- 3 Measurement types and measuring range

Measurement type Voltage
Current 4WMT (4-wire measuring transducer) Resistance
Thermal resistor RTD Deactivated

Measuring range 0 to 10 V 1 to 5 V ±5 V ±10 V 0 to 20 mA 4 to 20 mA ±20 mA 150  300  600  Pt 100 Standard/Climate Ni 100 Standard/Climate -

Channel 0 to 3
0 to 3 4 4 -

The tables of the input ranges, overflow, underrange, etc. can be found in the appendix .

116

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space 5.6 Output type and output ranges of the analog on-board I/O

5.6

Output type and output ranges of the analog on-board I/O

Introduction

The analog on-board I/O is set to voltage output type and output range ±10 V as default for the outputs. If you want to use another output range or output type, you need to change the parameter settings of the analog on-board I/O with STEP 7 (TIA Portal).

Output types and output ranges
The following table shows the output type and the corresponding output ranges.

Table 5- 4 Output type and output ranges Output type Voltage
Current
Deactivated

Output range 1 to 5 V 0 to 10 V ±10 V 0 to 20 mA 4 to 20 mA ±20 mA -

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

117

Parameters/address space 5.7 Parameters of the analog on-board I/O

5.7

Parameters of the analog on-board I/O

Parameters of the analog on-board I/O
You specify the properties of the analog on-board I/O during parameter assignment with STEP 7 (TIA Portal). The tables below list the parameters that can be set for inputs and outputs, respectively.
When parameters are assigned in the user program, they are transferred to the analog onboard I/O via data records with the WRREC instruction, see section Parameter assignment and structure of the parameter data records of the analog on-board I/O (Page 162).

Configurable parameters and default settings for inputs

Table 5- 5 Configurable "Diagnostics" parameters

Diagnostics · Overflow

Parameters 1)

· Underflow

· Wire break 2)

· Current limit for wire break diagnostics

Value range
Yes/No Yes/No Yes/No 1.185 mA or 3.6 mA

Default
No No No 1.185 mA

Reconfiguration in RUN
Yes Yes Yes Yes

1) All parameters can be set for on a channel-specific basis
2) Only for the "Voltage" measurement type in the measuring range 1 to 5 V and for the "Current" measurement type in the measuring range 4 to 20 mA

Table 5- 6 Configurable "Measuring" parameters

Measuring

Parameters 1)

· Measurement type

· Measuring range

Value range
See section Measurement types and measuring ranges of the analog on-board I/O (Page 116)

· Temperature coefficient

Pt: 0.003851 Pt: 0.003916 Pt: 0.003902 Pt: 0.003920 Ni: 0.006180 Ni: 0.006720

Default

Reconfiguration in RUN

Voltage

Yes

(channels 0 to 3)

Resistance (channel 4)

±10 V

Yes

(channels 0 to 3)

600  (channel 4)

0.003851

Yes

118

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space 5.7 Parameters of the analog on-board I/O

Parameters 1) · Temperature unit
· Interference frequency suppression
· Smoothing

Value range · Kelvin (K) 2) · Fahrenheit (°F) · Celsius (°C)
400 Hz 60 Hz 50 Hz 10 Hz None/weak/medium/strong

Default °C
50 Hz
None

Reconfiguration in RUN Yes
Yes 3)
Yes

1) All parameters can be set for on a channel-specific basis
2) Kelvin (K) is only possible for the "Standard range" measuring range and not for the "Climatic range" measuring range
3) The interference frequency suppression must have the same value for all active input channels. This value can only be changed by reassigning parameters in RUN with single channel parameter assignment (data records 0 to 4) if all other input channels are disabled.

Table 5- 7 Configurable "Hardware interrupt" parameters

Parameters 1) Hardware interrupts · Hardware interrupt low limit 1 · Hardware interrupt high limit 1 · Hardware interrupt low limit 2 · Hardware interrupt high limit 2

Value range
Yes/No Yes/No Yes/No Yes/No

Default
No No No No

Reconfiguration in RUN
Yes Yes Yes Yes

1) All parameters can be set for on a channel-specific basis
You can find an overview of the limits for the hardware interrupts in the section Structure of a data record for input channels of the analog on-board I/O (Page 162).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

119

Parameters/address space 5.7 Parameters of the analog on-board I/O

Configurable parameters and default settings for outputs

Table 5- 8 Configurable "Diagnostics" parameters

Diagnostics

Parameters 1)

· Wire break 2)

· Short-circuit to ground 3)

· Overflow

· Underflow

Value range
Yes/No Yes/No Yes/No Yes/No

1) All parameters can be set for on a channel-specific basis 2) Only for the "Current" output type 3) Only for the "Voltage" output type

Default
No No No No

Reconfiguration in RUN
Yes Yes Yes Yes

Table 5- 9 Configurable output parameters

Parameters 1) Output parameters · Output type · Output range · Reaction to CPU STOP

Value range

Default

See section Output type and output ranges of the analog on-board I/O (Page 117)
· Turn off
· Keep last value
· Output substitute value

Voltage ±10 V Turn off

· Substitute value

Must be within the permitted 0 voltage/current output range. See "Valid substitute value for the output range" table in the section Structure of a data record for output channels of the analog on-board I/O (Page 167)

1) All parameters can be set for on a channel-specific basis

Reconfiguration in RUN Yes Yes Yes
Yes

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. Short-circuit detection is not possible for low output values. The output voltages must therefore be under -0.1 V or over +0.1 V.

Wire break detection
The diagnostics for wire break can be configured for the current output type. Wire break detection is not possible for low output values; the output currents must therefore be below 0.2 mA or above +0.2 mA.

120

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameters/address space 5.8 Parameters of the digital on-board I/O

5.8

Parameters of the digital on-board I/O

Parameters of the digital on-board I/O in standard mode
You specify the properties of the digital on-board I/O during parameter assignment with STEP 7 (TIA Portal). The tables below list the parameters that can be set for inputs and outputs, respectively.
When parameters are assigned in the user program, they are transferred to the digital onboard I/O via data records with the WRREC instruction, see section Parameter assignment and structure of the parameter data records of the digital on-board I/O (Page 170).
The use of a digital input by a technology channel
When a digital input is in use by a technology channel (HSC, PTO or PWM) the corresponding digital input channel remains fully usable without any restriction.
Use of a digital output by a technology channel
When a digital output is in use by a technology channel (HSC, PTO or PWM), the following restrictions apply to the use of the corresponding digital output channel:
 Output values for the digital output channel are not effective. The output values are specified by the technology channel.
 The CPU STOP behavior configured for the digital output channel is not effective. The reaction of the output to CPU Stop is specified by the technology channel.
 With activated value status (Quality Information) for the DI16/DQ16 submodule, the QI bit for the digital output channel shows the value 0 (= Status "Bad").
 The current state of the digital output is not returned to the process image output. In the PTO operating mode, you can only observe the switching operations of the assigned digital outputs directly at the output. In the PWM operating mode and with high-speed counters (HSC), you can observe the current state additionally via the feedback interface. Note, however, that high frequencies may no longer be observed under certain circumstances due to an excessively low sampling rate.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

121

Parameters/address space 5.8 Parameters of the digital on-board I/O

Configurable parameters and default settings for inputs

Table 5- 10 Configurable parameters of inputs

Parameters 1) Diagnostics · Missing
supply voltage L+ Input delay
Hardware interrupt · Rising edge · Falling edge

Value range
Yes/No
None, 0.05 ms, 0.1 ms, 0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms
Yes/No Yes/No

1) All parameters can be set for on a channel-specific basis

Default No 3.2 ms
No No

Configurable parameters and default settings for outputs

Table 5- 11 Configurable parameters of outputs

Parameters 1) Diagnostics
· Missing supply voltage L+
Reaction to CPU STOP
When the digital output is controlled by a technology channel (HSC, PTO or PWM), this parameter is not effective. In this case, the technology channel specifies the reaction of the digital output to CPU STOP.

Value range
Yes/No
· Turn off · Keep last value · Output substitute value 1

1) All parameters can be set for on a channel-specific basis

Default No Turn off

Reconfiguration in RUN Yes Yes
Yes Yes
Reconfiguration in RUN Yes Yes

122

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms

6.1

Status and error displays

6.1.1

Status and error displays of the CPU part

LED display

The figure below shows the LED displays of the CPU part.

6

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  STOP ACTIVE-LED (yellow LED)
Figure 6-1 LED display of the CPU 1511C-1 PN (without front panel)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

123

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU has three LEDs for displaying the current operating mode and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 6- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green

LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED lit yellow LED lit yellow LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green

LED flashes red LED off LED off
LED flashes red LED off
LED off

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. ramp-up after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

124

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the CPU ports.

Table 6- 2 Meaning of the LED

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

Meaning of the STOP ACTIVE LED
The following table shows the meaning of the STOP ACTIVE LED for the CPU 1511C-1 PN.

Table 6- 3 Meaning of the LED

STOP ACTIVE LED LED lit yellow
LED off

The CPU is in STOP mode.

Meaning

· As long as the STOP ACTIVE LED is lit up, switching the CPU to RUN mode is only possible using the RUN button.

· The CPU can then no longer be set to RUN mode via the display operation or via online functions. The state of the buttons is retained at power-off. If the CPU does not start up automatically after a power-on, you have to keep the STOP button pressed during startup until the STOP ACTIVE LED is activated.

· If an automatic start-up is to be reliably prevented after a power-up, the STOP button has to be kept pressed during the start-up of the CPU until the STOP ACTIVE LED is activated.

· The CPU is set to "STOP" mode using the display or programming device and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

125

Interrupts/diagnostics alarms 6.1 Status and error displays

6.1.2

Status and error displays of the analog on-board I/O

LED displays

The figure below shows the LED displays (status and error displays) of the analog on-board I/O.

Figure 6-2 LED displays

126

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostic alarms can be found in the section Interrupts and diagnostics of the analog on-board I/O (Page 131).

Table 6- 4 RUN/ERROR status and error displays

LEDs RUN ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Meaning
No voltage or voltage too low.
Analog on-board I/O starts up and flashes until valid parameter assignment. Parameters have been set for the analog onboard I/O. Indicates module errors (at least one error is present on one channel, e.g. wire break).

Remedy
· Turn on the CPU and/or the system power supply modules.
---
Evaluate the diagnostics and eliminate the error (e.g. wire break).

CHx LED

Table 6- 5 CHx status display

CHx LED Off On On

Meaning Channel disabled.

Remedy ---

Channel parameters set and OK.

---

Channel parameters set, channel error present. Check the wiring.

Diagnostics alarm: e.g. wire break

Disable diagnostics.

Note
Maintenance LED
During ramp-up, the firmware of the CPU checks the consistency of the calibration data of the analog on-board I/O stored by the SIEMENS production. The yellow MAINT LED lights up if the firmware detects an inconsistency (e.g. an invalid value) or missing calibration data. The MAINT LED is located next to the red ERROR LED on the analog on-board I/O.
Note that the MAINT LED on the analog on-board I/O is only intended for troubleshooting by SIEMENS. In normal conditions, the MAINT LED should not light up. However, if this is the case, please contact SIEMENS "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

127

Interrupts/diagnostics alarms 6.1 Status and error displays

6.1.3

Status and error displays of the digital on-board I/O

LED displays

The figure below shows the LED displays (status and error displays) of the digital on-board I/O. Remedial measures for diagnostics alarms can be found in section Interrupts and diagnostics (Page 131).

Figure 6-3 LED displays

128

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays.

RUN/ERROR LED

Table 6- 6 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Meaning No voltage or voltage too low.
Digital on-board I/O starts up. Digital on-board I/O is ready for operation. A diagnostics interrupt is pending. Supply voltage missing.

Remedy
· Turn on the CPU. · Check whether too many modules are in-
serted.
---
Check supply voltage L+.

PWRx LED

Table 6- 7 PWRx status display

PWRx LED Off On

Meaning Supply voltage L+ to module too low or missing.
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

129

Interrupts/diagnostics alarms 6.1 Status and error displays

CHx LED

Table 6- 8 CHx status display

CHx LED Off On

Meaning 0 = Status of the input/output signal.
1 = Status of the input/output signal.

Remedy ---
---

Note
For the status display, the digital inputs only take into account the filter time of the corresponding DI and not the filter time of the A/B/N signals of the fast counters (HSC).
For example, a static signal may be displayed when the DI has a configured input delay of 3.2 ms, even though a 100 kHz counter on these inputs still detects edge transitions.

130

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

6.2
6.2.1

Interrupts and diagnostics

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

Interrupts and diagnostics of the CPU part
For information on the topic of "Interrupts", refer to the STEP 7 (TIA Portal) online help.
For information on "Diagnostics" and "System alarms", refer to the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

6.2.2

Interrupts and diagnostics of the analog on-board I/O

Diagnostics interrupt
The analog on-board I/O generates a diagnostics interrupt at the following events:

Table 6- 9 Diagnostics interrupt for inputs and outputs

Event
Overflow Underflow Wire break Short-circuit to ground

Inputs x x x 1) ---

Diagnostics interrupt

1) Possible for the voltage measuring range (1 to 5 V), current measuring range (4 to 20 mA) 2) Possible for current output type 3) Possible for voltage output type

Outputs x x x 2) x 3)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

131

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics
Hardware interrupt for inputs
The compact CPU can generate a hardware interrupt for the following events:  Below low limit 1  Above high limit 1  Below low limit 2  Above high limit 2 You can find detailed information on the event in the hardware interrupt organization block with the "RALARM" (read additional interrupt information) instruction and in the STEP 7 (TIA Portal) online help. The start information of the organization block includes information on which channel of the analog on-board I/O triggered the hardware interrupt. The figure below shows the assignment to the bits of double word 8 in local data.

Figure 6-4 Start information of the organization block
Behavior when limits 1 and 2 are reached at the same time
If the two high limits 1 and 2 are reached at the same time, the analog on-board I/O always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the compact CPU triggers the hardware interrupt for high limit 2.
The analog on-board I/O behaves accordingly when the low limits are reached simultaneously. If the two low limits 1 and 2 are reached at the same time, the analog onboard I/O always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the analog on-board I/O triggers the hardware interrupt for low limit 2.

132

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

Structure of the additional interrupt information

Table 6- 10 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

It is followed by the event that triggered the hardware interrupt.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Comment Additional interrupt information of the analog on-board I/O
Number of the event-triggering channel (n = number of analog on-board I/O channels -1)
Below low limit 1 Above high limit 1 Below low limit 2 Above high limit 2

Bytes 2
1
1

Diagnostics alarms
A diagnostics alarm is output for each diagnostics event and the ERROR LED flashes on the analog on-board I/O. The diagnostics alarms can, for example, be read out in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 6- 11 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Short-circuit to ground 1H

Meaning

Remedy

Resistance of encoder circuit too high

Use a different encoder type or modify the wiring, for example, using cables with larger cross-section

Interruption of the cable between the Connect the cable analog on-board I/O and sensor

Channel not connected (open)

· Disable diagnostics

· Connect the channel

Measuring range exceeded
The output value set by the user program exceeds the valid rated range/overrange
Value below measuring range
The output value set by the user program is below the valid rated range/underrange
Overload at output
Short-circuit of output QV to MANA

Check the measuring range Correct the output value
Check the measuring range Correct the output value
Eliminate overload Eliminate the short-circuit

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

133

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

6.2.3

Interrupts and diagnostics of the digital on-board I/O

Diagnostics interrupt
A diagnostics alarm is output for each diagnostics event and the ERROR LED flashes on the digital on-board I/O. You can read out the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 6- 12 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Load voltage missing
Hardware interrupt lost

Error code 11H 16H

Meaning
No supply voltage L+
The digital on-board I/O cannot trigger an interrupt because the previous interrupt was not acknowledged; possibly a configuration error

Corrective measures Feed supply voltage L+
· Change the interrupt processing in the CPU and reconfigure the digital onboard I/O.

Diagnostics interrupt when using high-speed counters

Table 6- 13 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm
Illegal A/B signal ratio

Error code 500H

Meaning

Corrective measures

· Time sequence of the A and B signals · Correct the process wiring

of the incremental encoder do not meet certain requirements
· Possible causes:

· Check the encoder/sensor · Check the parameter assignment

­ Signal frequency too high ­ Encoder is defective ­ Process wiring is incorrect

134

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics
Hardware interrupt
The compact CPU can generate a hardware interrupt for the following events:  Rising edge  Falling edge You will find detailed information on the event in the hardware interrupt organization block with the "RALRM" (read additional interrupt information) instruction and in the STEP 7 online help. The start information of the organization block includes information on which channel triggered the hardware interrupt. The figure below shows the assignment to the bits of double word 8 in local data.

Figure 6-5 Start information of the organization block

Structure of the additional interrupt information

Table 6- 14 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#0F

The error event that triggered the hardware interrupt follows.

Event

B#16#01

B#16#02

Comment

Bytes

Additional interrupt information of the hardware 2 interrupts of the digital on-board I/O

Number of the event-triggering channel (chan- 1 nel 0 to channel 15)

Rising edge

1

Falling edge

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

135

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

Hardware interrupts when using the high-speed counters

Table 6- 15 Hardware interrupts and their meaning

Hardware interrupt Opening of the internal gate (gate start) Closing of the internal gate (gate stop) Overflow (high counting limit violated)

Event type number 1
2
3

Underflow (low counting limit violated)

4

Comparison event for DQ0 occurred

5

Comparison event for DQ1 occurred

6

Zero crossing

7

New Capture value present1)

8

Synchronization of the counter by an exter- 9 nal signal

Direction reversal2)

10

Meaning
When the internal gate is opened, the technology function triggers a hardware interrupt in the CPU.
When the internal gate is closed, the technology function triggers a hardware interrupt in the CPU.
When the count value exceeds the high counting limit, the technology function triggers a hardware interrupt in the CPU.
When the count value falls below the low counting limit, the technology function triggers a hardware interrupt in the CPU.
When a comparison event for DQ0 occurs due to the selected comparison condition, the technology function triggers a hardware interrupt in the CPU. When the change of the count value for an incremental or pulse encoder was not caused by a count pulse, the technology function does not trigger a hardware interrupt.
When a comparison event for DQ1 occurs due to the selected comparison condition, the technology function triggers a hardware interrupt in the CPU.
When the change of the count value for an incremental or pulse encoder was not caused by a count pulse, the technology function does not trigger a hardware interrupt.
At a zero crossing of the counter or position value, the technology function triggers a hardware interrupt in the CPU.
When the current counter or position value is saved as a Capture value, the technology function triggers a hardware interrupt in the CPU.
At the synchronization of the counter by an N signal or edge at DI, the technology function triggers a hardware interrupt in the CPU.
When the count value or position value changes direction, the technology function triggers a hardware interrupt in the CPU.

1) Can only be set in counting mode
2) Feedback bit STS_DIR is preset to "0". When the first count value or position value change occurs in the reverse direction directly after switching on the digital on-board I/O, a hardware interrupt is not triggered.

136

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Technical specifications of the CPU 1511C-1 PN

Article number General information
Product type designation HW functional status Firmware version Engineering with · STEP 7 TIA Portal configurable/integrated
as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode buttons
Supply voltage Type of supply voltage permissible range, lower limit (DC)
permissible range, upper limit (DC) Reverse polarity protection Mains buffering · Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Digital inputs · from load voltage L+ (without load), max.
Digital outputs · from load voltage L+, max.

6ES7511-1CK01-0AB0
CPU 1511C-1 PN FS01 V2.5
V15
Yes
3.45 cm
8 2
24 V DC 19.2 V; 20.4 V DC, for supplying the digital inputs/outputs 28.8 V Yes
5 ms; Refers to the power supply on the CPU section 1/s
0.8 A 1 A 1.9 A; Rated value 0.34 A²·s
20 mA; per group
30 mA; Per group, without load

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

7
137

Technical specifications

Article number Output voltage
Rated value (DC) Encoder supply
Number of outputs 24 V encoder supply
· 24 V
· Short-circuit protection
· Output current, max. Power
Infeed power to the backplane bus Power consumption from the backplane bus (balanced) Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory · integrated (for program)
· integrated (for data) Load memory
· Plug-in (SIMATIC Memory Card), max. Backup
· maintenance-free CPU processing times
for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range
· Size, max.

6ES7511-1CK01-0AB0
24 V
1; One common 24 V encoder supply
Yes; L+ (-0.8 V) Yes 1 A
10 W 8.5 W
11.8 W
1 Yes
175 kbyte 1 Mbyte
32 Gbyte
Yes
60 ns 72 ns 96 ns 384 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 1 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 175 kbyte

138

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number FC
· Number range · Size, max. OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm
OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs Nesting depth · per priority class Counters, timers and their retentivity S7 counter · Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable

6ES7511-1CK01-0AB0 0 ... 65 535 175 kbyte
175 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

139

Technical specifications

Article number Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max. · Number of clock memories
Data blocks · Retentivity adjustable · Retentivity preset
Local data · per priority class, max.
Address area Number of IO modules
I/O address area · Inputs · Outputs
per integrated IO subsystem ­ Inputs (volume) ­ Outputs (volume)
per CM/CP ­ Inputs (volume) ­ Outputs (volume)
Subprocess images · Number of subprocess images, max.
Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM

6ES7511-1CK01-0AB0
128 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 88 KB 1 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte
Yes No
64 kbyte; max. 16 KB per block
1 024; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
32; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
1 4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total

140

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Rack
· Modules per rack, max. · Number of lines, max. PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · in AS, master · in AS, slave · on Ethernet via NTP Digital inputs integrated channels (DI) Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop · Capture · Synchronization Input voltage · Type of input voltage · Rated value (DC) · for signal "0" · for signal "1" Input current · for signal "1", typ.

6ES7511-1CK01-0AB0
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes Yes Yes
16 Yes P-reading Yes
Yes Yes Yes
DC 24 V -3 to +5V +11 to +30V
2.5 mA

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

141

Technical specifications

Article number Input delay (for rated value of input voltage) for standard inputs
­ parameterizable
­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for counter/technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max. Digital outputs
Type of digital output integrated channels (DO) Current-sourcing Short-circuit protection · Response threshold, typ.
Limitation of inductive shutdown voltage to Controlling a digital input Accuracy of pulse duration
minimum pulse duration Digital output functions, parameterizable
· Switching tripped by comparison values · PWM output
­ Number, max. ­ Cycle duration, parameterizable ­ ON period, min. ­ ON period, max. ­ Resolution of the duty cycle · Frequency output · Pulse train

6ES7511-1CK01-0AB0
Yes; none / 0.05 / 0.1 / 0.4 / 1.6 / 3.2 / 12.8 / 20 ms 4 µs; for parameterization "none" 20 ms 4 µs; for parameterization "none" 20 ms
Yes; Same as for standard inputs
Yes; Same as for standard inputs
1 000 m; 600 m for technological functions; depending on input frequency, encoder and cable quality; max. 50 m at 100 kHz 600 m; For technological functions: No
Transistor 16 Yes; Push-pull output Yes; electronic/thermal 1.6 A with standard output, 0.5 A with high-speed output; see manual for details -0.8 V Yes Up to ±100 ppm ±2 s at high-speed output; see manual for details 2 µs; With High Speed output
Yes; As output signal of a high-speed counter Yes 4 Yes 0 % 100 % 0.0036 %; For S7 analog format, min. 40 ns Yes Yes; also for pulse/direction interface

142

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Switching capacity of the outputs
· with resistive load, max.
· on lamp load, max.
Load resistance range · lower limit
· upper limit Output voltage
· Type of output voltage · for signal "0", max.
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, min. · for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max. · "1" to "0", max. for technological functions
­ "0" to "1", max.
­ "1" to "0", max.
Parallel switching of two outputs · for logic links · for uprating · for redundant control of a load
Switching frequency · with resistive load, max.
· with inductive load, max.
· on lamp load, max.

6ES7511-1CK01-0AB0
0.5 A; 0.1 A with high-speed output, i.e. when using a high-speed output; see manual for details 5 W; 1 W with high-speed output, i.e. when using a high-speed output; see manual for details
48 ; 240 ohms with high-speed output, i.e. when using a high-speed output; see manual for details 12 k
DC 1 V; With high-speed output, i.e. when using a high-speed output; see manual for details 23.2 V; L+ (-0.8 V)
0.5 A; 0.1 A with high-speed output, i.e. when using a high-speed output, observe derating; see manual for details 2 mA 0.6 A; 0.12 A with high-speed output, i.e. when using a high-speed output, observe derating; see manual for details 0.5 mA
200 µs 500 µs; Load-dependent
5 µs; Depending on the output used, see additional description in manual 5 µs; Depending on the output used, see additional description in manual
Yes; For technological functions: No No Yes; For technological functions: No
100 kHz; For high-speed output, 100 Hz for standard output 0.5 Hz; Acc. to IEC 60947-5-1, DC-13; observe derating curve 10 Hz

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

143

Technical specifications

Article number Total current of the outputs
· Current per channel, max. · Current per group, max. · Current per power supply, max.
for technological functions ­ Current per channel, max.
Cable length · shielded, max.
· unshielded, max. Analog inputs
Number of analog inputs · For current measurement · For voltage measurement · For resistance/resistance thermometer
measurement permissible input voltage for voltage input (destruction limit), max. permissible input current for current input (destruction limit), max. Cycle time (all channels), min.
Technical unit for temperature measurement adjustable Input ranges (rated values), voltages · 0 to +10 V · Input resistance (0 to 10 V) · 1 V to 5 V · Input resistance (1 V to 5 V) · -10 V to +10 V · Input resistance (-10 V to +10 V) · -5 V to +5 V · Input resistance (-5 V to +5 V)

6ES7511-1CK01-0AB0
0.5 A; see additional description in the manual 8 A; see additional description in the manual 4 A; 2 power supplies for each group, current per power supply max. 4 A, see additional description in manual
0.5 A; see additional description in the manual
1 000 m; 600 m for technological functions; depending on output frequency, load, and cable quality; max. 50 m at 100 kHz 600 m; For technological functions: No
5; 4x for U/I, 1x for R/RTD 4; max. 4; max. 1
28.8 V
40 mA
1 ms; Dependent on the parameterized interference frequency suppression; for details, see conversion procedure in manual Yes; °C/°F/K
Yes; Physical measuring range: ± 10 V 100 k Yes; Physical measuring range: ± 10 V 100 k Yes 100 k Yes; Physical measuring range: ± 10 V 100 k

144

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Input ranges (rated values), currents
· 0 to 20 mA

6ES7511-1CK01-0AB0 Yes; Physical measuring range: ± 20 mA

· Input resistance (0 to 20 mA) · -20 mA to +20 mA

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes

· Input resistance (-20 mA to +20 mA) · 4 mA to 20 mA

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes; Physical measuring range: ± 20 mA

· Input resistance (4 mA to 20 mA)
Input ranges (rated values), resistance thermometer
· Ni 100

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes; Standard/climate

· Input resistance (Ni 100)

10 M

· Pt 100

Yes; Standard/climate

· Input resistance (Pt 100)

10 M

Input ranges (rated values), resistors · 0 to 150 ohms

Yes; Physical measuring range: 0 ... 600 ohms

· Input resistance (0 to 150 ohms)

10 M

· 0 to 300 ohms

Yes; Physical measuring range: 0 ... 600 ohms

· Input resistance (0 to 300 ohms)

10 M

· 0 to 600 ohms

Yes

· Input resistance (0 to 600 ohms)

10 M

Cable length · shielded, max.

800 m; for U/I, 200 m for R/RTD

Analog outputs integrated channels (AO) Voltage output, short-circuit protection Cycle time (all channels), min.
Output ranges, voltage · 0 to 10 V

2 Yes 1 ms; Dependent on the parameterized interference frequency suppression; for details, see conversion procedure in manual
Yes

· 1 V to 5 V

Yes

· -10 V to +10 V

Yes

Output ranges, current

· 0 to 20 mA

Yes

· -20 mA to +20 mA

Yes

· 4 mA to 20 mA

Yes

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

145

Technical specifications

Article number Load impedance (in rated range of output)
· with voltage outputs, min.
· with voltage outputs, capacitive load, max.
· with current outputs, max.
· with current outputs, inductive load, max. Cable length
· shielded, max. Analog value generation for the inputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.
· Integration time, parameterizable
· Interference voltage suppression for interference frequency f1 in Hz
Smoothing of measured values · parameterizable
· Step: None
· Step: low
· Step: Medium
· Step: High Analog value generation for the outputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.
Settling time · for resistive load
· for capacitive load
· for inductive load

6ES7511-1CK01-0AB0 1 k 100 nF 500  1 mH
200 m
16 bit Yes; 2.5 / 16.67 / 20 / 100 ms, acts on all channels 400 / 60 / 50 / 10
Yes Yes Yes Yes Yes
16 bit
1.5 ms 2.5 ms 2.5 ms

146

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Encoder Connection of signal encoders
· for voltage measurement

6ES7511-1CK01-0AB0 Yes

· for current measurement as 4-wire trans- Yes ducer

· for resistance measurement with two-wire Yes connection

· for resistance measurement with three-wire Yes connection

· for resistance measurement with four-wire Yes connection

Connectable encoders

· 2-wire sensor

Yes

­ permissible quiescent current (2-wire sensor), max.

1.5 mA

Encoder signals, incremental encoder (asymmetrical)
· Input voltage

24 V

· Input frequency, max.

100 kHz

· Counting frequency, max.

400 kHz; with quadruple evaluation

· Signal filter, parameterizable

Yes

· Incremental encoder with A/B tracks, 90° Yes phase offset

· Incremental encoder with A/B tracks, 90° Yes phase offset and zero track

· Pulse encoder

Yes

· Pulse encoder with direction

Yes

· Pulse encoder with one impulse signal per Yes count direction

Errors/accuracies

Linearity error (relative to input range), (+/-) 0.1 %

Temperature error (relative to input range), (+/- 0.005 %/K )

Crosstalk between the inputs, max.

-60 dB

Repeat accuracy in steady state at 25 °C (rela- 0.05 % tive to input range), (+/-)

Output ripple (relative to output range, bandwidth 0 to 50 kHz), (+/-)

0.02 %

Linearity error (relative to output range), (+/-) 0.15 %

Temperature error (relative to output range), (+/-)

0.005 %/K

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

147

Technical specifications

Article number

6ES7511-1CK01-0AB0

Crosstalk between the outputs, max.

-80 dB

Repeat accuracy in steady state at 25 °C (rela- 0.05 % tive to output range), (+/-)

Operational error limit in overall temperature range

· Voltage, relative to input range, (+/-)

0.3 %

· Current, relative to input range, (+/-)

0.3 %

· Resistance, relative to input range, (+/-)

0.3 %

· Resistance thermometer, relative to input range, (+/-)

Pt100 Standard: ±2 K, Pt100 Climate: ±1 K, Ni100 Standard: ±1.2 K, Ni100 Climate: ±1 K

· Voltage, relative to output range, (+/-)

0.3 %

· Current, relative to output range, (+/-)

0.3 %

Basic error limit (operational limit at 25 °C) · Voltage, relative to input range, (+/-)

0.2 %

· Current, relative to input range, (+/-)

0.2 %

· Resistance, relative to input range, (+/-)

0.2 %

· Resistance thermometer, relative to input range, (+/-)

Pt100 Standard: ±1 K, Pt100 Climate: ±0.5 K, Ni100 Standard: ±0.6 K, Ni100 Climate: ±0.5 K

· Voltage, relative to output range, (+/-)

0.2 %

· Current, relative to output range, (+/-)

0.2 %

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency
· Series mode interference (peak value of interference < rated value of input range), min.

30 dB

· Common mode voltage, max.

10 V

· Common mode interference, min.

60 dB; at 400 Hz: 50 dB

Interfaces

Number of PROFINET interfaces

1

1. Interface

Interface types

· Number of ports

2

· integrated switch

Yes

· RJ 45 (Ethernet)

Yes; X1

148

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Functionality
· IP protocol

6ES7511-1CK01-0AB0 Yes; IPv4

· PROFINET IO Controller

Yes

· PROFINET IO Device

Yes

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

· Media redundancy
PROFINET IO Controller Services
­ PG/OP communication

Yes; MRP Automanager according to IEC 624392 Edition 2.0
Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

149

Technical specifications

Article number Update time for IRT
­ for send cycle of 250 µs
­ for send cycle of 500 µs
­ for send cycle of 1 ms

6ES7511-1CK01-0AB0
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 500 s to 8 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

Interface types

RJ 45 (Ethernet)

· 100 Mbps

Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

150

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

6ES7511-1CK01-0AB0
96; via integrated interfaces of the CPU and connected CPs / CMs 10

· Number of connections via integrated inter- 64 faces

· Number of S7 routing paths

16

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
SIMATIC communication · S7 communication, as server

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
Yes

· S7 communication, as client

Yes

· User data per job, max.

See online help (S7 communication, user data size)

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

151

Technical specifications

Article number Open IE communication
· TCP/IP ­ Data length, max. ­ several passive connections per port, supported
· ISO-on-TCP (RFC1006) ­ Data length, max.
· UDP ­ Data length, max. ­ UDP multicast
· DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance

6ES7511-1CK01-0AB0
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 625 µs
Yes

152

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number S7 message functions
Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.
Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
Interrupts/diagnostics/status information Alarms
· Diagnostic alarm · Hardware interrupt

6ES7511-1CK01-0AB0
32 Yes 5 000
300 100 80
Yes; Parallel online access possible for up to 5 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 1 000 500
4; Up to 512 KB of data per trace are possible
Yes Yes

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

153

Technical specifications

Article number Diagnostic messages
· Monitoring the supply voltage · Wire-break
· Short-circuit
· A/B transition error at incremental encoder

6ES7511-1CK01-0AB0
Yes
Yes; for analog inputs/outputs, see description in manual Yes; for analog outputs, see description in manual Yes

Diagnostics indication LED · RUN/STOP LED · ERROR LED · MAINT LED · STOP ACTIVE LED · Monitoring of the supply voltage (PWRLED) · Channel status display · for channel diagnostics · Connection display LINK TX/RX

Yes Yes Yes Yes Yes
Yes Yes; For analog inputs/outputs Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

800

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis
­ Number of positioning axes at motion control cycle of 4 ms (typical value)
­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact

5 10
Yes; Universal PID controller with integrated optimization

154

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications

Article number · PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Integrated Functions Number of counters Counting frequency (counter) max. Counting functions · Continuous counting · Counter response parameterizable · Hardware gate via digital input · Software gate · Event-controlled stop · Synchronization via digital input · Counting range, parameterizable Comparator
­ Number of comparators ­ Direction dependency ­ Can be changed from user program Position detection · Incremental acquisition · Suitable for S7-1500 Motion Control Measuring functions · Measuring time, parameterizable · Dynamic measurement period adjustment · Number of thresholds, parameterizable Measuring range ­ Frequency measurement, min. ­ Frequency measurement, max. ­ Cycle duration measurement, min. ­ Cycle duration measurement, max.

6ES7511-1CK01-0AB0 Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
6; Of which max. 4x A/B/N 400 kHz; with quadruple evaluation
Yes Yes Yes Yes Yes Yes Yes
2; per count channel; see manual for details Yes Yes
Yes Yes
Yes Yes 2
0.04 Hz 400 kHz; with quadruple evaluation 2.5 µs 25 s

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

155

Technical specifications

Article number Accuracy
­ Frequency measurement
­ Cycle duration measurement
­ Velocity measurement
Potential separation Potential separation digital inputs
· between the channels

6ES7511-1CK01-0AB0
100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation
No

· between the channels, in groups of

16

Potential separation digital outputs

· between the channels

No

· between the channels, in groups of

16

Potential separation channels · between the channels and backplane bus Yes

· Between the channels and load voltage L+ No

Isolation Isolation tested with
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

707 V DC (type test) 0 °C

· horizontal installation, max. · vertical installation, min.

60 °C; Note derating data for onboard I/O in the manual. Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off
0 °C

· vertical installation, max.
Ambient temperature during storage/transportation
· min.

40 °C; Note derating data for onboard I/O in the manual. Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C

· max.

70 °C

Configuration

Programming

Programming language

­ LAD

Yes

­ FBD

Yes

­ STL

Yes

­ SCL

Yes

­ GRAPH

Yes

156

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Article number Know-how protection
· User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7511-1CK01-0AB0
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
85 mm 147 mm 129 mm
1 050 g

Technical specifications

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

157

Technical specifications
Power reduction (derating) to total current of digital outputs (per power supply)
The following figure shows the load rating of the digital outputs in relation to the mounting position and the ambient temperature.

 Horizontal mounting position  Vertical mounting position
Figure 7-1 Loading capacity of the digital outputs per mounting position
The following trends shows the load rating of the digital outputs when technology functions are used in dependence on the ambient temperature.

 Horizontal mounting position
Figure 7-2 Load rating of the digital outputs when technology functions are used

158

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Technical specifications
Power reduction (derating) to total current of digital inputs (per power supply)
The following figure shows the load rating of the current for encoder supplies of digital inputs.
 Horizontal mounting position
Figure 7-3 Load rating of the current for encoder supplies of digital inputs
Simultaneous operation of digital inputs per group
If the maximum voltage at the inputs is 24 V, all the digital inputs may be simultaneously at high level (corresponds to 100% of the digital inputs). If the maximum voltage at the inputs is 30 V, only 12 digital inputs of 16 digital inputs of one group may be simultaneously at high level (corresponds to 75% of the digital inputs).
General technical specifications
For information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

159

Dimension drawings

A

This appendix contains the dimension drawings of the compact CPU installed on a mounting rail. You must take the dimensions into consideration for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of CPU 1511C-1 PN ­ front and side views

160

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Dimension drawings
Figure A-2 Dimension drawing of CPU 1511C-1 PN ­ side view with front panel open

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

161

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

of the analog on-board I/O

Parameter assignment in the user program
You have the option of reassigning parameters for the analog on-board I/O in RUN (for example, measuring ranges of individual channels can be modified in RUN without affecting the other channels).

Changing parameters in RUN
The parameters are transferred to the analog on-board I/O via data records with the WRREC instruction. The parameters set with STEP 7 (TIA Portal) are not changed in the CPU, which means that the parameters set in STEP 7 (TIA Portal) will be valid again after a restart.
The parameters are checked for plausibility by the analog on-board I/O only after the transfer.

Output parameter STATUS
If errors occur when transferring parameters with the "WRREC" instruction, the analog onboard I/O continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

B.2

Structure of a data record for input channels of the analog on-

board I/O

Assignment of data record and channel
The parameters for the 5 analog input channels are located in data records 0 to 4 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  Data record 2 for channel 2  Data record 3 for channel 3  Data record 4 for channel 4

162

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 4. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

163

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Figure B-2 Structure of data record 0: Bytes 7 to 27

164

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Codes for measurement types
The following table contains all measurement types of the inputs of the analog on-board I/O with the corresponding codes. You must enter these codes in byte 2 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6).

Table B- 1 Codes for measurement type
Measurement type Deactivated Voltage (valid for channels 0 to 3) Current, 4-wire measuring transducer (valid for channels 0 to 3) Resistance (valid for channel 4) Thermal resistor linear (valid for channel 4)

Code 0000 0000 0000 0001 0000 0010 0000 0100 0000 0111

Codes for measuring ranges
The following table contains all measuring ranges of the inputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 3 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6).

Table B- 2 Codes for measuring range
Measuring range Voltage ±5 V ±10 V 1 to 5 V 0 to 10 V Current, 4-wire measuring transducer 0 to 20 mA 4 to 20 mA ±20 mA Resistance 150  300  600  Thermal resistor Pt 100 Climate Ni 100 Climate Pt 100 Standard Ni 100 Standard

Code
0000 1000 0000 1001 0000 1010 0000 1011
0000 0010 0000 0011 0000 0100
0000 0001 0000 0010 0000 0011
0000 0000 0000 0001 0000 0010 0000 0011

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

165

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Codes for temperature coefficient
The following table lists all temperature coefficients for temperature measurement of the thermal resistors along with their codes. You must enter these codes in each case in byte 4 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6)

Table B- 3 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001

Hardware interrupt limits
The values that can be set for hardware interrupts (high/low limit) must be within the nominal range and overrange/underrange of the relevant measuring range.
The following tables list the permitted hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 4 Voltage limits
Voltage ±5 V, ±10 V 32510 -32511

1 to 5 V, 0 to 10 V 32510 -4863

High limit Low limit

Table B- 5 Current and resistance limits

Current ±20 mA
32510 -32511

4 to 20 mA / 0 to 20 mA
32510
-4863

Resistance (all configurable measuring ranges)
32510 1

High limit Low limit

166

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O

Table B- 6 Limits for thermal resistor Pt 100 Standard and Pt 100 Climate

Thermal resistor

Pt 100 Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt 100 Climate

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 7 Limits for thermal resistor Ni 100 Standard and Ni 100 Climate

Thermal resistor

Ni 100 Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni 100 Climate

°F

K

31099

---

-15699

---

High limit Low limit

B.3

Structure of a data record for output channels of the analog on-

board I/O

Assignment of data record and channel
The parameters for the 2 analog output channels are located in data records 64 and 65 and are assigned as follows:
 Data record 64 for channel 0
 Data record 65 for channel 1

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

167

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channel 1. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-3 Structure of data record 64: Bytes 0 to 7

168

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O

Codes for the output type
The following table contains all output types of the outputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 8 Codes for the output type
Output type Disabled Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for output ranges
The following table contains all output ranges for voltage and current of the outputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 3 of the corresponding data record (see previous figure).

Table B- 9 Code for the output range
Output range for voltage 1 to 5 V 0 to 10 V ±10 V Output range for current 0 to 20 mA 4 to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Permitted substitute values
The following table lists all output ranges for the permitted substitute values. You must enter these substitute values in each case in bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). You can find the binary representation of the output ranges in the section Representation of output ranges (Page 197).

Table B- 10 Permitted substitute value for the output range

Output range ±10 V 1 to 5 V 0 to 10 V ±20 mA 4 to 20 mA 0 to 20 mA

Permitted substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

169

Parameter data records B.4 Parameter assignment and structure of the parameter data records of the digital on-board I/O

B.4

Parameter assignment and structure of the parameter data records

of the digital on-board I/O

Parameter assignment in the user program
You have the option of reassigning parameters for the digital on-board I/O in RUN (for example, values for input delay of individual channels can be modified in RUN without affecting the other channels).
Changing parameters in RUN
The parameters are transferred to the digital on-board I/O via data records 0 to 15 with the WRREC instruction. The parameters set with STEP 7 (TIA Portal) are not changed in the CPU, which means the parameters set in STEP 7 (TIA Portal) will be valid again after a restart. The parameters are only checked for plausibility after the transfer.
Output parameter STATUS
If errors occur when transferring parameters with the "WRREC" instruction, the digital onboard I/O continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

170

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.5 Structure of a data record for input channels of the digital on-board I/O

B.5

Structure of a data record for input channels of the digital on-

board I/O

Assignment of data record and channel
The parameters for the 16 digital input channels are located in data records 0 to 15 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 14 for channel 14  Data record 15 for channel 15
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 15. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-4 Structure of data record 0: Bytes 0 to 3

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

171

Parameter data records B.6 Structure of a data record for output channels of the digital on-board I/O

B.6

Structure of a data record for output channels of the digital on-

board I/O

Assignment of data record and channel
The parameters for the 16 digital output channels are located in data records 64 to 79 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 15. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-5 Structure of data record 64: Bytes 0 to 3

172

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.7 Parameter data records of the high-speed counters

B.7

Parameter data records of the high-speed counters
You can change the parameters of the High Speed Counter in RUN. The WRREC instruction is used to transfer the parameters to the High Speed Counter using data record 128.
If errors occur when transferring or validating parameters with the WRREC instruction, the High Speed Counter continues operation with the previous parameter assignment. The STATUS output parameter then contains a corresponding error code. If no error has occurred, the length of the data actually transferred is entered in the STATUS output parameter.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

Data record structure
The following table shows you the structure of data record 128 with the counter channel. The values in byte 0 to byte 3 are fixed and must not be changed. The value in byte 4 may only be changed by parameter reassignment and not in RUN mode.

Table B- 11 Parameter data record 128 - HSC parameter header

Bit 

Byte

7

6

5

4

3

2

1

0

0

Major Version = 1

Minor Version = 0

1

Length of parameter data of the channel = 48

2

Reserved = 0 1)

3

1) Reserved bits must be set to 0

Table B- 12 Parameter data record 128 - Operating mode

Bit 

Byte

7

6

5

4

3

2

1

0

Operating mode

4 Reserved = 0 1)

Operating mode:

0000B: Deactivated

0001B: Counting

0010B: Measuring

0011 to 1111B: Reserved

1) Reserved bits must be set to 0

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

173

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 13 Parameter data record 128 - Basic parameters

Bit 

Byte

7

6

5 Reserved = 0 1)

5

4

3

2

1

0

Basic parameters

Enable additional diagnostic interrupts2)

Reaction to CPU STOP:
00B: Output substitute value
01B: Keep last value

10B: Continue

11B: Reserved

1) Reserved bits must be set to 0
2) Must be set to 1 for the activation of the diagnostic interrupts "Missing supply voltage L+, "Illegal A/B signal ratio" and "Hardware interrupt lost"

Table B- 14 Parameter data record 128 - Counter inputs

Bit 

Byte

7

6

6 Reserved = 0 1)

7 Response to signal N: 00B: No reaction to signal N
01B: Synchronization at signal N
10B: Capture at signal N 11B: Reserved

) Reserved bits must be set to 0

5

4

3

2

1

0

Counter inputs

Signal evaluation:

Signal type:

00B: Single

0000B: Pulse (A)

01B: Double

0001B: Pulse (A) and direction (B)

10B: Quadruple

0010B: Count up (A), count down (B)

11B: Reserved

0011B: Incremental encoder (A, B phase-shifted)

0100B: Incremental encoder (A, B, N)

0101 to 1111B: Reserved

Invert direc- Reserved = Filter frequency.

tion

0 1)

0000B: 100 Hz

0001B: 200 Hz

0010B: 500 Hz

0011B: 1 kHz

0100B: 2 kHz

0101B: 5 kHz

0110B: 10 kHz

0111B: 20 kHz

1000B: 50 kHz

1001B: 100 kHz

1010B: Reserved

1011 to 1111B: Reserved

174

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 15 Parameter data record 128 - Hardware interrupts

Bit  Byte
8
9

7

6

Reserved = Reserved =

0 1)

0 1)

Synchroni- New capzation of the ture value counter by available an external signal

5
Reserved = 0 1)
Reserved = 0 1)

4

3

Hardware interrupts1)

Direction reversal

Underflow (low counting limit violated)

Zero cross- Reserved =

ing

0 1)

2

1

Overflow (high counting limit violated)

Gate stop

Comparison event for DQ1 occurred

Reserved = 0 1)

0
Gate start
Comparison event for DQ0 occurred

1) Reserved bits must be set to 0

Table B- 16 Parameter data record 128 - Behavior DQ0/1

Bit  Byte 10
11

7

6

5

4

3

2

1

0

Behavior of DQ0/1

Set output (DQ1):

Set output (DQ0):

0000B: Use by user program

0000B: Use by user program

0001B: Counting: Between comparison value 1 and high counting limit; Measuring: Measured value >= Comparison value 1

0001B: Counting: Between comparison value 0 and high counting limit; Measuring: Measured value >= Comparison value 0

0010B: Counting: Between comparison value 1 and low counting limit; Measuring: Measured value <= Comparison value 1

0010B: Counting: Between comparison value 0 and low counting limit; Measuring: Measured value <= Comparison value 0

0011B: Counting: At comparison value 1 for one pulse duration; Measuring: Reserved

0011B: Counting: At comparison value 0 for one pulse duration; Measuring: Reserved

0100B: Between comparison value 0 and 1

0100B: Reserved

0101B: Counting: After set command from CPU until comparison value 1; Measuring: Reserved

0101B: Counting: After set command from CPU until comparison value 0; Measuring: Reserved

0110B: Counting: Reserved Measuring: Not between comparison value 0 and 1

0110 to 1111B: Reserved

0111 to 1111B: Reserved

Count direction (DQ1): 00B: Reserved 01B: Up

Count direction (DQ0): 00B: Reserved 01B: Up

Reserved = 0 1)

Substitute value for DQ1

Substitute value for DQ0

10B: Down

10B: Down

11B: In both directions

11B: In both directions

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

175

Parameter data records B.7 Parameter data records of the high-speed counters

Bit 

Byte

7

6

5

4

3

2

1

0

12

Pulse duration (DQ0):

13

WORD: Value range in ms/10: 0 to 65535D

14

Pulse duration (DQ1):

15

WORD: Value range in ms/10: 0 to 65535D

1) Reserved bits must be set to 0

Table B- 17 Parameter data record 128 - Behavior DI0

Bit 

Byte

7

6

5

16 Behavior of Edge selection (DI0): count value 00B: Reserved after Capture (DI0): 01B: On a rising edge 10B: On a falling edge
0B: Contin- 11B: On rising and falling ue counting edge
1B: Set to start value and continue counting
1) Reserved bits must be set to 0

4

3

Behavior of DI0

Level selec- Reserved = tion (DI0): 0 1)

0B: Active at high level

1B: Active at low level

2

1

0

Set function of the DI (DI0): 000B: Gate start/stop (level-controlled) 001B: Gate start (edge-controlled) 010B: Gate stop (edge-controlled) 011B: Synchronization 100B: Enable synchronization at signal N 101B: Capture 110B: Digital input without function 111B: Reserved

Table B- 18 Parameter data record 128 - Behavior DI1

Bit 

Byte

7

6

5

4

3

2

1

0

17

Behavior of DI1:

See byte 16

18

Reserved = 0 1)

19 Sync option Reserved = 0 1)

Reserved = 0 1)

0B: Once

1B: Periodically

1) Reserved bits must be set to 0

176

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 19 Parameter data record 128 - Behavior DI1

Bit  Byte 20-23 24-27
28-31
32-35 36-39 40-43

7

6

5

4

3

2

1

0

Values

High counting limit:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Comparison value 0:

Counting mode: DWORD Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH;

Measuring mode: REAL Floating-point number in the set unit of the measured variable

Comparison value 1:

Counting mode: DWORD Value range: ­2147483648 to 2147483647D: or 80000000 to 7FFFFFFFH;

Measuring mode: REAL Floating-point number in the set unit of the measured variable

Start value:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Low counting limit:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Update time:

DWORD: Value range in s: 0 to 25000000D

Table B- 20 Parameter data record 128 - Counter behavior at limits and at gate start

Bit  Byte
44

7

6

5

4

3

2

1

0

Counter behavior at limits and at gate start

Response to gate start: Response to counting limit violation:

Reset at counting limit violation:

00B: Set to start value

000B: Stop counting

000B: To other counting limit

01B: Continue with current 001B: Continue counting value

001B: On start value

10 to 11B: Reserved

010 to 111B: Reserved

010 to 111B: Reserved

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

177

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 21 Parameter data record 128 - Specify measured value

Bit 

Byte

7

6

5

4

3

2

Specify measured value

45 Reserved = 0 1)

Time base for velocity measurement:

000B: 1 ms

001B: 10 ms

010B: 100 ms

011B: 1 s

100B: 60 s/1 min

101 to 111B: Reserved

46

Increments per unit:

47

WORD: Value range: 1 to 65535D

48

Set hysteresis range:

49 Use of HSC DI0

Reserved = 0 1)

Value range: 0 to 255D Selection HSC DI0

0B: Not used

1

0

Measured variable: 00B: Frequency 01B: Period duration 10B: Velocity 11B: Reserved

178

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Bit 

Byte

7

6

5

1B: Used

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

4

3

2

1

0

Value range:

HSC1:

00001B: Front connector X11, terminal 2 (DI1) 00010B: Front connector X11, terminal 3 (DI2) 00011B: Front connector X11, terminal 4 (DI3) 00100B: Front connector X11, terminal 5 (DI4) 00101B: Front connector X11, terminal 6 (DI5) 00110B: Front connector X11, terminal 7 (DI6) 00111B: Front connector X11, terminal 8 (DI7)

HSC2:

00000B: Front connector X11, terminal 1 (DI0) 00001B: Front connector X11, terminal 2 (DI1) 00010B: Front connector X11, terminal 3 (DI2) 00100B: Front connector X11, terminal 5 (DI4) 00101B: Front connector X11, terminal 6 (DI5) 00110B: Front connector X11, terminal 7 (DI6) 00111B: Front connector X11, terminal 8 (DI7)

HSC3:

00000B: Front connector X11, terminal 1 (DI0) 00001B: Front connector X11, terminal 2 (DI1) 00010B: Front connector X11, terminal 3 (DI2) 00011B: Front connector X11, terminal 4 (DI3) 00100B: Front connector X11, terminal 5 (DI4) 00101B: Front connector X11, terminal 6 (DI5) 00111B: Front connector X11, terminal 8 (DI7)

HSC4:

01001B: Front connector X11, terminal 12 (DI9) 01010B: Front connector X11, terminal 13 (DI10) 01011B: Front connector X11, terminal 14 (DI11) 01100B: Front connector X11, terminal 15 (DI12) 01101B: Front connector X11, terminal 16 (DI13) 01110B: Front connector X11, terminal 17 (DI14) 01111B: Front connector X11, terminal 18 (DI15)

HSC5:

01000B: Front connector X11, terminal 11 (DI8) 01001B: Front connector X11, terminal 12 (DI9) 01010B: Front connector X11, terminal 13 (DI10) 01100B: Front connector X11, terminal 15 (DI12) 01101B: Front connector X11, terminal 16 (DI13) 01110B: Front connector X11, terminal 17 (DI14) 01111B: Front connector X11, terminal 18 (DI15)

HSC6:

01000B: Front connector X11, terminal 11 (DI8) 01001B: Front connector X11, terminal 12 (DI9) 01010B: Front connector X11, terminal 13 (DI10) 01011B: Front connector X11, terminal 14 (DI11) 01100B: Front connector X11, terminal 15 (DI12) 01101B: Front connector X11, terminal 16 (DI13) 01111B: Front connector X11, terminal 18 (DI15)

All other values: Reserved

The value range also applies for the 'Selection HSC DI1' parameter in the same way.

179

Parameter data records B.8 Parameter data records (PWM)

Bit  Byte 50

7
Use of HSC DI1
0B: Not used
1B: Used

6

5

Reserved = 0 1)

51 Use of

Reserved = 0 1)

HSC DQ1

0B: Not used

1B: Used

1) Reserved bits must be set to 0

4

3

2

1

0

All other values: Reserved

The value range also applies for the 'Selection HSC DI1' parameter in

Selection HSC DI1

Value range:

The value range also applies for the 'Selection HSC DI0' parameter in the same way.

Selection HSC DQ1

Value range:

HSC1:

00001B: Front connector X11, terminal 22 (DQ1) 01001B: Front connector X11, terminal 32 (DQ9)

HSC2:

00011B: Front connector X11, terminal 24 (DQ3) 01011B: Front connector X11, terminal 34 (DQ11)

HSC3:

00100B: Front connector X11, terminal 25 (DQ4) 01100B: Front connector X11, terminal 35 (DQ12)

HSC4:

00101B: Front connector X11, terminal 26 (DQ5) 01101B: Front connector X11, terminal 36 (DQ13)

HSC5:

00111B: Front connector X11, terminal 28 (DQ7) 01111B: Front connector X11, terminal 38 (DQ15)

HSC6:

00110B: Front connector X11, terminal 27 (DQ6) 01110B: Front connector X11, terminal 37 (DQ14)

All other values: Reserved

B.8

Parameter data records (PWM)
You have the option of reassigning the pulse width modulation parameters in RUN. The parameters are transferred with the instruction WRREC via the data record 128 to the PWM submodule.
If errors occur when transferring or validating parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. The output parameter STATUS then contains a corresponding error code. If no error has occurred, the length of the data actually transferred is entered in the output parameter STATUS.
You can find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

180

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Parameter data records B.8 Parameter data records (PWM)

Data record structure
The following table shows the structure of the data record 128 for the pulse width modulation. The values in byte 0 to byte 3 are fixed and must not be changed.

Table B- 22 Parameter data record 128

Bit  Byte
0 1 2 3 4
5

7

6

5

4

3

2

1

0

Major Version = 1

Minor Version = 0

Length of the parameter data of the channel in bytes = 12

Reserved = 0 1)

Current control
0B: Deactivated
1B: Reserved

Dithering
0B: Deactivated 1B: Reserved

Reserved = 0 1)

High-speed output

Operating mode

0B: Deactivated

0000B: Reserved

01B: Activated 10B-11B: Reserved
Reserved = 0 1)

0001B: PWM (pulse-width modulation)

0010B: Reserved

0011B: Reserved

0100B: Frequency output

0110B to 1110B: Reserved

1111B: Deactivated

Diagnostics Reaction to CPU STOP interrupt

0B: Deactivated

00B: DQ substitute value

1B: Activated

01B: Reserved
10B: Operating mode for continuation of operation

11B: Reserved

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

181

Parameter data records B.8 Parameter data records (PWM)

Bit 

Byte 6

7

6

5

Reserved = 0 1)

4

3

2

1

0

Pulse output (DQA) selection

Range of values for PWM1: 00000B: Front connector X11, terminal 21 (DQ0) 01000B: Front connector X11, terminal 31 (DQ8)

Range of values for PWM2: 00010B: Front connector X11, terminal 23 (DQ2) 01010B: Front connector X11, terminal 33 (DQ10)

Range of values for PWM3: 00100B: Front connector X11, terminal 25 (DQ4) 01100B: Front connector X11, terminal 35 (DQ12)

Range of values for PWM4: 00110B: Front connector X11, terminal 27 (DQ6) 01110B: Front connector X11, terminal 37 (DQ14)

All other values: Reserved

7

Reserved = 0 1)

Output format

Reserved = Reserved = Reserved = Substitute

0 1)

0 1)

0 1)

value DQA

PWM

Frequency output

0B: 0 V

00B: S7 analog format

00B: Reserved

1B: 24 V

01B: per 100 01B: 1 Hz (%)

10B: per 1000

10B: Reserved

11B: per 10 000

11B: Reserved

8-11

DWORD minimum pulse duration

PWM: Minimum pulse duration (default = 0 s)

Frequency output: Reserved

12-15

DWORD period duration

PWM: Period duration

Supported value range depending on configured values for "Pulse output (DQA)" and "High-speed output (0.1 A)"

· for 100 kHz DQ (high-speed output activated): 10 s to 10 000 000 s (10 s)

· for 10 kHz DQ (high-speed output deactivated): 100 s to 10 000 000 s (10 s)

· for 100 Hz DQ (high-speed output deactivated): 10 000 s (10 ms) to 10 000 000 s (10 s) Default = 2 000 000 s (2 s)

Frequency output: Reserved

1) Reserved bits must be set to 0

182

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing

C

C.1

Conversion method

Conversion

An integrated analog-to-digital converter converts the analog signal into a digital signal so that the compact CPU can process the analog signal read in by an analog channel. Once the CPU has processed the digital signal, an integrated digital-to-analog converter converts the output signal into an analog current or voltage value.

Interference frequency suppression
The interference frequency suppression of the analog inputs suppresses the interference caused by the frequency of the AC voltage network used. The frequency of the AC voltage network may interfere with measured values, particularly for measurements within narrow voltage ranges.
You set the line frequency with which the plant operates (400, 60, 50 or 10 Hz) using the "Interference frequency suppression" parameter in STEP 7 (TIA Portal). The "Interference frequency suppression" parameter can only be set module-wide (for all input channels). The interference frequency suppression filters out the set interference frequency (400/60/50/10 Hz) as well as multiples of it. The selected interference frequency suppression also defines the integration time. The conversion time changes depending on the set interference frequency suppression.
For example, an interference frequency suppression of 50 Hz corresponds to an integration time of 20 ms. The analog on-board I/O supplies one measured value to the CPU every millisecond over a period of 20 ms. This measured value corresponds to the floating mean value of the last 20 measurements.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

183

Analog value processing C.1 Conversion method
The following figure shows how this works using a 400 Hz interference frequency suppression as an example. A 400 Hz interference frequency suppression corresponds to an integration time of 2.5 ms. The analog on-board I/O supplies a measured value to the CPU every 1.25 milliseconds within the integration time.
Figure C-1 Interference frequency suppression 400 Hz

184

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing C.1 Conversion method The following figure shows how this works using a 60 Hz interference frequency suppression as an example. A 60 Hz interference frequency suppression corresponds to an integration time of 16.6 ms. The analog on-board I/O supplies a measured value to the CPU every 1.04 milliseconds within the integration time.
Figure C-2 Interference frequency suppression 60 Hz

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

185

Analog value processing C.1 Conversion method
The following figure shows how this works using a 50 Hz interference frequency suppression as an example. A 50 Hz interference frequency suppression corresponds to an integration time of 20 ms. The analog on-board I/O supplies a measured value to the CPU every millisecond within the integration time.
Figure C-3 Interference frequency suppression 50 Hz

186

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing C.1 Conversion method The following figure shows how this works using a 10 Hz interference frequency suppression as an example. A 10 Hz interference frequency suppression corresponds to an integration time of 100 ms. The analog on-board I/O supplies a measured value to the CPU every millisecond within the integration time.
Figure C-4 Interference frequency suppression 10 Hz

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

187

Analog value processing C.1 Conversion method

The following table provides an overview of the configurable line frequencies, the integration time and the intervals within which measured values are supplied to the CPU.

Table C- 1 Overview of the configurable line frequencies

Interference frequency suppression 400 Hz 60 Hz 50 Hz 10 Hz

Integration time 2.5 ms 16.6 ms 20 ms 100 ms

Interval 2 x 1.25 ms 16 x 1.04 ms 20 x 1 ms 100 x 1 ms

Note Basic error with an integration time of 2.5 ms.
With an integration time of 2.5 ms, the measured value is changed by the following values based on the additionally obtained basic error and noise: · with "voltage", "current" and "resistance" by ±0.1 % · with "Thermal resistor Pt 100 Standard" by ±0.4 K · with "Thermal resistor Pt 100 Climatic" by ±0.3 K · with "Thermal resistor Ni 100 Standard" by ±0.2 K · with "Thermal resistor Ni 100 Climatic" by ±0.1 K
A detailed description of the basic and operating error is available in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094).

188

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Smoothing

Analog value processing C.1 Conversion method
The individual measured values are smoothed by filtering. The smoothing can be set in 4 levels for individual channels in STEP 7 (TIA Portal). Smoothing time = Smoothing (k) x configured integration time The following figure shows the time it takes for the smoothed analog value to reach approximately 100% depending on the set smoothing. This is valid for all signal changes at the analog input.



None (smoothing = 1 x integration time)



Weak (smoothing = 4 x integration time) *



Medium (smoothing = 16 x integration time) *



Strong (smoothing = 32 x integration time) *

* The smoothing time can increase by 1 x integration time.

Figure C-5 Smoothing time depending on the set smoothing level

The following table shows the time it takes for the smoothed analog value to reach approximately 100% depending on the set smoothing and the set interference frequency suppression.

Table C- 2 Smoothing time depending on the set smoothing level and interference frequency suppression

Selection of the smoothing (mean value generation from scan values)
None Weak Medium Strong

Interference frequency suppression/smoothing time

400 Hz

60 Hz

50 Hz

10 Hz

2.5 ms

16.6 ms

20 ms

100 ms

10 ms

66.4 ms

80 ms

400 ms

40 ms

265.6 ms

320 ms

1600 ms

80 ms

531.2 ms

640 ms

3200 ms

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

189

Analog value processing C.2 Representation of analog values

Cycle time

The cycle times (1 ms, 1.04 ms and 1.25 ms) result from the configured interference frequency suppression. The cycle time is independent of the number of configured analog channels. The values for the analog input channels are detected sequentially in each cycle.

Reference

For more information on conversion time, cycle time and conversion method, refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual.

C.2

Representation of analog values

Introduction

The analog values for all measuring ranges that you can use with the analog on-board I/O are represented in this appendix.
For cross-product information on "analog value processing", refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual.

Measured value resolution
Each analog value is entered left aligned into the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog on-board I/O.

Table C- 3 Resolution of the analog values

Resolution in bits including sign
16

Decimal 1

Values
Hexadecimal 1H

Analog value

High byte Sign 0 0 0 0 0 0 0

Low byte 0 0 0 0 0 0 0 1

190

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing C.3 Representation of input ranges

C.3

Representation of input ranges
The tables below set out the digitized representation of the input ranges separately for bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 4 Bipolar input ranges

Dec. val- Measured

ue

value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Nominal 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 range 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Underrange 1 0 0 0 0 0 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 5 Unipolar input ranges

Dec. val- Measured

ue

value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Underrange 1 1 1 0 1 1 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

191

Analog value processing C.3 Representation of input ranges

C.3.1

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 6 Voltage measuring ranges ±10 V, ±5 V

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V

>5.879 V

11.759 V

5.879 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

-11.759 V <-11.759 V

-5.879 V <-5.879 V

Range Overflow Overrange Nominal range
Underrange Underflow

Table C- 7 Voltage measuring range 1 to 5 V, 0 to 10 V

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

0 to 10 V >11.759 V 11.759 V
10.0 V 7.5 V 361.7 V 0 V
-1.759 V < -1.759 V

Range Overflow Overrange Nominal range
Underrange Underflow

192

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

C.3.2

Analog value processing C.3 Representation of input ranges

Representation of analog values in current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 8 Current measuring range ±20 mA

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA <-23.52 mA

Overflow Overrange Nominal range
Underrange Underflow

Table C- 9 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <-3.52 mA

4 to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA <1.185 mA

Overflow Overrange Nominal range
Underrange Underflow

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

193

Analog value processing C.3 Representation of input ranges

C.3.3

Representation of the analog values of resistance-type sensors/resistance-type thermometers
The following tables list the decimal and hexadecimal values (codes) of the possible resistance-type sensor ranges.

Table C- 10 Resistance-type sensors of 150 , 300  and 600 

Values dec. 32767 32511 27649 27648 20736 1 0

hex. 7FFF 7EFF 6C01 6C00 5100 1 0

Resistance-type sensor range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

Overflow Overrange
Nominal range

Table C- 11 Resistance-type thermometer Pt 100 Standard

Pt 100 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec.
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex.
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt 100 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec.
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex.
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt 100 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec.
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex.
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overrange Nominal range Underrange Underflow

194

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing C.3 Representation of input ranges

Table C- 12 Resistance-type thermometer Pt 100 Climate

Pt 100 Climate/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec.
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex.
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt 100 Climate/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec.
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex.
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range Overflow Overrange Nominal range Underrange Underflow

Table C- 13 Resistance-type thermometer Ni 100 standard

Ni 100 Standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec.
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex.
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni 100 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec.
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex.
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni 100 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec.
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex.
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overrange Nominal range Underrange Underflow

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

195

Analog value processing C.3 Representation of input ranges

Table C- 14 Resistance-type thermometer Ni 100 Climate

Ni 100 Climate in °C Values

(1 digit = 0.01 °C)

dec.

> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex.
7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni 100 Climate in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -76.00 -76.01 : -157.00 < - 157.00

Values dec.
32767 31100 : 26601 26600 : -7600 -7601 : -15700 -32768

hex.
7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range Overflow Overrange Nominal range Underrange Underflow

C.3.4

Measured values for wire break diagnostics

Measured values for "Wire break" diagnostics as a function of diagnostics enables
With suitable parameter assignment, events that occur trigger a diagnostics entry and a diagnostics interrupt.

Table C- 15 Measured values for wire break diagnostics

Format S7

Parameter assignment
· "Wire break" diagnostics enabled
· "Overflow/Underflow" diagnostics enabled or disabled
("Wire break" diagnostics has a higher priority than "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled
· "Overflow/Underflow" diagnostics enabled

Measured values

32767

7FFFH

-32767 8000 H

· "Wire break" diagnostics disabled
· "Overflow/Underflow" diagnostics disabled

-32767

8000 H

Explanation "Wire break" or "Cable break" diagnostics alarm
· Measured value after leaving the underrange
· Diagnostics alarm "Low limit" violated Measured value after leaving the underrange

196

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Analog value processing C.4 Representation of output ranges

C.4

Representation of output ranges
The tables below set out the digitalized representation of the output ranges separately for bipolar and unipolar ranges. The resolution is 16 bits.

Table C- 16 Bipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Underrange 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 17 Unipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

197

Analog value processing C.4 Representation of output ranges

C.4.1

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 18 Voltage output range ±10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%

dec. >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

-117.593% <-117.593%

-27649 -32512 <-32512

93FF 8100 < 8100

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V
-11.76 V -11.76 V

Range Maximum output value Overrange
Nominal range
Underrange Minimum output value

Table C- 19 Voltage output range 0 V to 10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec. >32511 32511 27649 27648 20736 1 0 <0

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Overrange Nominal range
Minimum output value

198

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

Table C- 20 Voltage output range 1 V to 5 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec. >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Voltage output range 1 to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Analog value processing C.4 Representation of output ranges
Range Maximum output value Overrange Nominal range
Underrange Minimum output value

C.4.2

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 21 Current output range ±20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%
-117.593% <-117.593%

dec. >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 mA 0 mA -723.4 mA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overrange
Nominal range Underrange Minimum output value

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

199

Analog value processing C.4 Representation of output ranges

Table C- 22 Current output range 0 to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec. >32511 32511 27649 27648 20736 1 0 <0

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 mA 0 mA 0 mA

Table C- 23 Current output range 4 to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec. >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA 4 mA
0 mA 0 mA

Range Maximum output value Overrange
Nominal range Minimum output value
Range Maximum output value Overrange
Nominal range Underrange Minimum output value

200

CPU 1511C-1 PN (6ES7511-1CK01-0AB0) Manual, 12/2017, A5E40898565-AA

SIMATIC
S7-1500 CPU 1511T-1 PN (6ES7511-1TK01-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_W_iri_ng_______________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______5_

_Di_m_en_s_ion_d_ra_w_in_g ________A_

12/2017
A5E36270833-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36270833-AB  11/2017 Subject to change

Copyright © Siemens AG 2016 - 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1511T-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

4

Manual, 12/2017, A5E36270833-AB

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ..................................................................................................................................... 11

2.1

New functions in firmware version V2.5................................................................................. 11

2.2

Applications of the S7-1500 CPU .......................................................................................... 12

2.3

Hardware properties .............................................................................................................. 19

2.4

Firmware functions................................................................................................................. 21

2.5 2.5.1 2.5.2 2.5.3

Operator controls and display elements ................................................................................ 25 Front view of the CPU with closed front panel....................................................................... 25 Front view of the CPU without front flap ................................................................................ 27 Rear view of the CPU ............................................................................................................ 28

2.6

Mode selector......................................................................................................................... 28

3 Wiring ...................................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 32

4.1

Status and error display of the CPU ...................................................................................... 32

5 Technical specifications ........................................................................................................................... 35

A Dimension drawing .................................................................................................................................. 47

A.1

Dimensional drawing of the CPU 1511T-1 PN ...................................................................... 47

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

6

Manual, 12/2017, A5E36270833-AB

Documentation guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

8

Manual, 12/2017, A5E36270833-AB

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

10

Manual, 12/2017, A5E36270833-AB

Product overview

2

2.1

New functions in firmware version V2.5

New functions of the CPUs firmware 2.5 This section lists the new features of the CPU with firmware version V2.5. You can find additional information in the sections of this manual.

Table 2- 1 New functions of the CPUs with firmware version 2.5

New functions New technology object, kinematics
Additional instructions for torque control
Data adaption for SINAMICS S210 MotionIn

Applications

Customer benefits

Controlling of kinematics, such as · Cartesian portals · Roller pickers

You can realize complex Motion Control applications for controlling 2D, 3D and 4D kinematics.

· Delta pickers

· SCARA Motion specification of paths

Individual motions and motion sequences

Kinematics 2D, 3D, with and without orientation axis

You can apply an additives setpoint torque You can pre-control the torque precisely for

in the drive.

the axes, for example at winders

You can predetermine torque limits in the (predetermine traction torque and additional-

drive cyclically.

ly torque limits in order to prevent tearing of

The torque actual value of the drive can be the material).

evaluated directly in the

You can take the dynamic model of the

TO-DB of the axis.

kinematics into consideration, pre-control the

torque to be expected for each axis and thus

improve the precision.

You can also use data adaption for the new drive SINAMICS S210.

You gain time during the configuration of the technology objects and the drives.

Through additional instructions

This means that specific technological

motion setpoints can be specified cyclical- motion specifications are possible via the

ly via the application.

application (for example at winders).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

11

Product overview 2.2 Applications of the S7-1500 CPU

2.2

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and user-friendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Additional areas of application of the SIMATIC S7-1500T with extended Motion Control functions are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

12

Manual, 12/2017, A5E36270833-AB

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 2 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN CPU 1515-2 PN
CPU 1516-3 PN/ DP CPU 1517-3 PN/ DP CPU 1518-4 PN/ DP CPU 1518-4 PN/ DP MFP

Performance segment
Standard CPU for small to mid-range applications
Standard CPU for mid-range applications
Standard CPU for mid-range to large applications
Standard CPU for highend applications and communication tasks
Standard CPU for highend applications and communication tasks
Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
--
---
1
1
1

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic
functionality
--

Work memory
1.15 MB

Processing time for bit operations
60 ns

1

--

--

1.8 MB 40 ns

1

1

--

3.5 MB 30 ns

1

1

--

6 MB

10 ns

1

1

--

10 MB

2 ns

1

1

1

24 MB

1 ns

Table 2- 3 Compact CPUs

CPU CPU 1511C-1 PN CPU 1512C-1 PN

Performance segment PROFIBUS PROFINET PROFINET interfaces IO RT/IRT IO RT interfaces interface

Compact CPU for

--

1

--

small to mid-range

applications

Compact CPU for

--

1

--

mid-range applica-

tions

PROFINET basic
functionality --
--

Work memory
1.175 MB

Processing time for bit operations
60 ns

1.25 MB 48 ns

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

13

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 4 Fail-safe CPUs

CPU
CPU 1511F-1 PN
CPU 1511TF-1 PN
CPU 1513F-1 PN
CPU 1515F-2 PN
CPU 1515TF-2 PN
CPU 1516F-3 PN/ DP
CPU 1516TF-3 PN/ DP
CPU 1517F-3 PN/ DP
CPU 1517TF-3 PN/ DP
CPU 1518F-4 PN/ DP CPU 1518F-4 PN/ DP MFP

Performance segment PROFIBUS PROFINET interfaces IO RT/IRT interfaces

Fail-safe CPU for

--

1

small to mid-range

applications

Fail-safe technology

--

1

CPU for small to mid-

range applications

Fail-safe CPU for

--

1

mid-range applica-

tions

Fail-safe CPU for

--

1

mid-range to large

applications

Fail-safe technology

--

1

CPU for demanding

applications and

communication tasks

Fail-safe CPU for

1

1

demanding applica-

tions and communica-

tion tasks

Fail-safe technology

1

1

CPU for demanding

applications and

communication tasks

Fail-safe CPU for

1

1

demanding applica-

tions and communica-

tion tasks

Fail-safe technology

1

1

CPU for demanding

applications and

communication tasks

Fail-safe CPU for

1

1

high-performance

applications, demand-

ing communication

tasks and very short

reaction times

PROFINET IO RT
interface ---1 1
1
1
1
1
1

PROFINET basic
functionality ------
--
--
--
--
1

Work memory 1.225 MB 1.225 MB 1.95 MB 3.75 MB 3.75 MB
6.5 MB
6.5 MB
11 MB
11 MB
26 MB

Processing time for bit operations
60 ns 60 ns 40 ns 30 ns 30 ns
10 ns
10 ns
2 ns
2 ns
1 ns

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

14

Manual, 12/2017, A5E36270833-AB

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1516T-3 P N/DP
CPU 1517T-3 PN/DP
CPU 1511TF-1 PN CPU 1515TF-2 PN CPU 1516TF-3 PN/DP CPU 1517TF-3 PN/DP

Performance segment

PROFIBUS PROFINET PROFINET PROFINET

interfaces IO RT/IRT IO RT

basic

interfaces interface functionality

Technology CPU for

--

1

--

--

small to mid-range

applications

Technology CPU for

--

1

1

--

mid-range to large

applications

Technology CPU for

1

1

1

--

high-end applications

and communication

tasks

Technology CPU for

1

1

1

--

high-end applications

and communication

tasks

These CPUs are described in the fail-safe CPUs

Work memory 1.225 MB 3.75 MB 6.5 MB
11 MB

Processing time for bit operations
60 ns
30 ns
10 ns
2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output) Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

15

Product overview 2.2 Applications of the S7-1500 CPU
Integrated Motion Control technology functions All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axis  Positioning axis  Synchronous axis  External encoders  Output cam  Cam track  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of synchronous position ­ Actual value coupling ­ Shifting the master value of the following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technological functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

16

Manual, 12/2017, A5E36270833-AB

Product overview 2.2 Applications of the S7-1500 CPU
Other technology functions Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Security Integrated In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration thereby provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
In addition to the CPUs, further components such as SINAMICS drives dispose of integrated safety functions. Additional information about integrated safety functions in drives can be found in the manuals for the respective products.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

17

Product overview 2.2 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

18

Manual, 12/2017, A5E36270833-AB

2.3

Hardware properties

Article number 6ES7511-1TK01-0AB0

View of the module The following figure shows a CPU 1511T-1 PN.

Product overview 2.3 Hardware properties

Figure 2-1 CPU 1511T-1 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

19

Product overview 2.3 Hardware properties

Properties

CPU 1511T-1 PN has the following technical properties:

Property CPU display

Description

All CPUs of the SIMATIC S7-1500 product series feature a ·

display with plain text information. The display provides

information on order numbers, firmware version and serial

numbers of all connected modules. In addition, you can set

the IP address of the CPU and carry out further network

settings. The display shows occurring error messages

·

directly in plain text.

In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S7-1500 Display Simulator are shown on the display.

Additional information
S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)

Supply voltage

The 24 V DC supply voltage is supplied via a 4-pole connec- · Chapter Wiring (Page 29)

tion plug that is located at the front of the CPU.

· S7-1500, ET 200MP system

manual

(http://support.automation.sieme

ns.com/WW/view/en/59191792)

PROFINET IO

PROFINET interface The interface has two ports. In addition to basic PROFINET (X1 P1 R, X1 P2 R) functionality, its also supports PROFINET IO RT (real time)
and IRT (isochronous real time).

Operation of the CPU as
· IO controller

· IO controller: As an IO controller the CPU addresses the connected IO devices

· I-device

· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

PROFINET function manual (https://support.industry.siemens.co m/cs/ww/en/view/49948856)

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

20

Manual, 12/2017, A5E36270833-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

The CPU 1511T-1 PN supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description
The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.
The Web server lets you access the CPU data by means of a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

Additional information Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59191792)
· Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
· Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or Using the trace and logic analyzer

optimizing the user program.

function function manual

You record device tags and evaluate the recordings with (http://support.automation.siemens.c

the trace and logic analyzer function. Tags are, for

om/WW/view/en/64897128)

example, drive parameters or system and user tags of a

CPU.

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and Communication function manual manufacturer-neutral communication protocol. The CPU (https://support.industry.siemens.co can act as an OPC UA DA server. The CPU acting as the m/cs/ww/en/view/59192925) OPC UA server can communicate with OPC UA clients.

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

21

Product overview 2.4 Firmware functions

Function PROFINET IO RT (real time)
IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description

Additional information

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.
A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.
The Isochronous mode system property acquires measured values and process data and processes the signals in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.
It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.
RT operation is possible with the use of MRP.
The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

22

Manual, 12/2017, A5E36270833-AB

Product overview 2.4 Firmware functions

Function PROFIenergy Integrated technology Motion Control
Extended Motion Control functions

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

All CPUs support the S7-1500 Motion Control functions via the technology objects speed axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.

S7-1500 Motion Control function manual (http://support.automation.siemens.c om/WW/view/en/109749262)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and eventdependent sensing of actual positions
You program the technology objects with Motion Control instructions according to PLCopen.

The technology CPUs of the SIMATIC S7-1500 also support extended Motion Control functions:
· Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming

S7-1500T Motion Control function manual (https://support.industry.siemens.co m/cs/ww/en/view/109749263)
S7-1500T Kinematics Functions V4.0 in TIA Portal V15 (https://support.industry.siemens.co m/cs/ww/en/view/109749264) Function manual

· Cam

· Up to 4 encoders or measuring systems as actual position for position control

· Controlling of kinematics, such as

­ Cartesian portals

­ Roller pickers

­ Delta pickers

­ SCARA

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

23

Product overview 2.4 Firmware functions

Function Integrated closed-loop control functionality
Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description · PID Compact (continuous PID controller) · PID 3Step (step controller for integrating actuators) · PID Temp (temperature controller for heating and
cooling with two separate actuators)

Additional information
PID control function manual (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

24

Manual, 12/2017, A5E36270833-AB

2.5
2.5.1

Product overview 2.5 Operator controls and display elements
Operator controls and display elements
Front view of the CPU with closed front panel
The figure below shows the front view of the CPU 1511T-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1511T-1 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

25

Product overview 2.5 Operator controls and display elements
Removing and attaching the front panel with display You can remove and attach the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

26

Manual, 12/2017, A5E36270833-AB

2.5.2

Product overview 2.5 Operator controls and display elements
Front view of the CPU without front flap
The figure below shows the operator controls and connection elements of the CPU 1511T-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display connection  Slot for the SIMATIC memory card  Mode selector  LEDs for the 2 ports of the PROFINET interface X1  MAC address  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fastening screw
Figure 2-4 View of the CPU 1511T-1 PN (without front panel) - front

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

27

Product overview 2.6 Mode selector

2.5.3

Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1511T-1 PN.

 Shield contact surface  Plug-in connection for power supply  Plug-in connection for backplane bus  Fastening screw
Figure 2-5 View of the CPU 1511T-1 PN - rear

2.6

Mode selector

You use the mode switches to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 6 Meaning of the mode switches

Operation of the mode switch RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not executed. (STOP ACTIVE LED lights up) Position for CPU memory reset.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

28

Manual, 12/2017, A5E36270833-AB

Wiring

3

This section provides information on the pin assignment of the individual interfaces and the block diagram of the CPU 1511T-1 PN.
24 V DC supply voltage (X80) The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

29

Wiring
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-2 PROFINET ports

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
The CPU 1511T-1 PN has a PROFINET interface with two ports. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. The CPU 1511T-1 PN therefore has three MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1511T-1 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example)

Labeling · Front, lasered · Right side, lasered
(start of number range)
· Front and right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

30

Manual, 12/2017, A5E36270833-AB

Block diagram The following figure shows the block diagram of the CPU 1511T-1 PN.

Wiring

     
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

Figure 3-3 Block diagram of the CPU 1511T-1 PN

PN X1 P1 R PN X1 P2 R L+ M R/S ER MT X1 P1, X1 P2

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

31

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1511T-1 PN are described below.
You can find additional information on the topic of "Interrupts" in the STEP 7 online help.
You can find additional information on the topic of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The following figure shows the LED displays of the CPU 1511T-1 PN.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)
Figure 4-1 LED display of the CPU 1511T-1 PN (without front panel)

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

32

Manual, 12/2017, A5E36270833-AB

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1511T-1 PN has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green

LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED lit yellow LED lit yellow LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green

LED flashes red LED off LED off
LED flashes red LED off
LED off

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1511T-1 PN.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

34

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7511-1TK01-0AB0
CPU 1511T-1 PN FS03 V2.5
V15 (FW V2.5) / V14 (FW V2.0) or higher
Yes
3.45 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.7 A 1.9 A; Rated value 0.02 A²·s
10 W 5.5 W
5.7 W
1 Yes

CPU 1511T-1 PN (6ES7511-1TK01-0AB0) Manual, 12/2017, A5E36270833-AB

5
35

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7511-1TK01-0AB0
225 kbyte 1 Mbyte
32 Gbyte
Yes
60 ns 72 ns 96 ns 384 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 1 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 150 kbyte
0 ... 65 535 150 kbyte
150 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

36

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules

6ES7511-1TK01-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
128 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 88 KB 1 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte Yes No
64 kbyte; max. 16 KB per block
1 024; max. number of modules / submodules

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

37

Technical specifications

Article number I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) per CM/CP ­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number

6ES7511-1TK01-0AB0
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
32; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
1 4; A maximum of 4 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

38

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number Clock synchronization
· supported · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max. ­ Of which IO devices with IRT, max. ­ Number of connectable IO Devices for
RT, max.

6ES7511-1TK01-0AB0
Yes Yes Yes Yes
1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 62439-2 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices 128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 128

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

39

Technical specifications

Article number ­ of which in line, max.

6ES7511-1TK01-0AB0 128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 500 s to 8 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

40

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number Interface types RJ 45 (Ethernet)
· 100 Mbps

6ES7511-1TK01-0AB0 Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

96; via integrated interfaces of the CPU and connected CPs / CMs
10

· Number of connections via integrated

64

interfaces

· Number of S7 routing paths

16

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 256 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

41

Technical specifications

Article number SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max.

6ES7511-1TK01-0AB0
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

42

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics
· Number of alarms for motion technology objects
Test commissioning functions Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable
· Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables
· Number of variables, max. Diagnostic buffer
· present
· Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces

6ES7511-1TK01-0AB0
Yes; With minimum OB 6x cycle of 625 µs Yes
32 Yes 5 000
300 100 80
Yes; Parallel online access possible for up to 5 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 1 000 500
4; Up to 512 KB of data per trace are possible

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

43

Technical specifications

Article number Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED

6ES7511-1TK01-0AB0 Yes

· ERROR LED

Yes

· MAINT LED

Yes

· Connection display LINK TX/RX

Yes

Supported technology objects

Motion Control

Yes; Note: The number of technology objects affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

800

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Number of available Extended Motion

40

Control resources for technology objects

· Required Extended Motion Control resources

­ for each cam

2

­ for each set of kinematics

30

· Positioning axis

­ Number of positioning axes at motion 5 control cycle of 4 ms (typical value)
­ Number of positioning axes at motion 10 control cycle of 8 ms (typical value)

Controller · PID_Compact
· PID_3Step
· PID-Temp Counting and measuring · High-speed counter

Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

44

Manual, 12/2017, A5E36270833-AB

Technical specifications

Article number Standards, approvals, certificates
Suitable for safety functions Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/ transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection Access protection · Password for display · Protection level: Write protection · Protection level: Read/write protection · Protection level: Complete protection Cycle time monitoring · lower limit · upper limit Dimensions Width Height Depth

6ES7511-1TK01-0AB0
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
35 mm 147 mm 129 mm

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

45

Technical specifications

Article number Weights
Weight, approx.

6ES7511-1TK01-0AB0 430 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP System Manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

46

Manual, 12/2017, A5E36270833-AB

Dimension drawing

A

A.1

Dimensional drawing of the CPU 1511T-1 PN
This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Dimensional drawings of the CPU 1511T-1 PN

Figure A-1 Dimensional drawing of the CPU 1511T-1 PN, front and side view

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

Manual, 12/2017, A5E36270833-AB

47

Dimension drawing A.1 Dimensional drawing of the CPU 1511T-1 PN
Figure A-2 Dimensional drawing of the CPU 1511T-1 PN, side view with front panel open

CPU 1511T-1 PN (6ES7511-1TK01-0AB0)

48

Manual, 12/2017, A5E36270833-AB

SIMATIC
S7-1500 CPU 1512C-1 PN (6ES7512-1CK01-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Te_c_hn_ol_og_y_fu_nc_ti_on_s_______3_ _W_iri_ng_______________4_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____5_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______7_ _Di_m_en_si_on_d_ra_w_in_gs________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _An_a_lo_g _va_lu_e _pr_oc_es_s_ing_____C__

12/2017
A5E40898741-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40898741-AA  12/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system / ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. Cross-system functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1512C-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

4

Manual, 12/2017, A5E40898741-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 9

2 Product overview .................................................................................................................................. 13

2.1

Applications of the S7-1500 CPUs......................................................................................... 13

2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6

Hardware properties and firmware functions ......................................................................... 20 Hardware properties of the CPU part .................................................................................... 21 Firmware functions of the CPU part....................................................................................... 23 Hardware properties of the analog on-board I/O module ...................................................... 27 Firmware functions of the analog on-board I/O module......................................................... 30 Hardware properties of the digital on-board I/O module........................................................ 31 Firmware functions of the digital on-board I/O module .......................................................... 34

2.3 2.3.1 2.3.2 2.3.3

Operator controls and display elements ................................................................................ 36 Front view with closed front panel.......................................................................................... 36 Front view of the CPU without front panel and view from below ........................................... 38 Rear view ............................................................................................................................... 40

2.4

Operating mode buttons ........................................................................................................ 41

3 Technology functions ............................................................................................................................ 42

3.1 3.1.1 3.1.1.1 3.1.1.2 3.1.1.3 3.1.1.4 3.1.2 3.1.2.1 3.1.2.2 3.1.2.3

High-speed counters .............................................................................................................. 42 Functions................................................................................................................................ 43 Counting ................................................................................................................................. 43 Measuring .............................................................................................................................. 44 Position detection for motion control...................................................................................... 45 Additional functions ................................................................................................................ 46 Configuring the high-speed counters ..................................................................................... 47 General .................................................................................................................................. 47 Assignment of the control interface of the high-speed counters............................................ 47 Assignment of the feedback interface of the high-speed counters........................................ 50

3.2 3.2.1 3.2.1.1 3.2.1.2 3.2.1.3 3.2.2 3.2.2.1 3.2.2.2 3.2.3 3.2.3.1 3.2.3.2 3.2.3.3

Pulse generators .................................................................................................................... 51 Operating modes.................................................................................................................... 51 Operating mode: Pulse-width modulation (PWM).................................................................. 51 Operating mode: Frequency output ....................................................................................... 58 Operating mode: PTO ............................................................................................................ 62 Functions................................................................................................................................ 67 Function: High-speed output.................................................................................................. 67 Function: Direct control of the pulse output (DQA) ................................................................ 68 Configuring the PWM and frequency output modes .............................................................. 69 Assignment of the control interface........................................................................................ 69 Handling the SLOT parameter (control interface).................................................................. 71 Assignment of the feedback interface.................................................................................... 75

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

6

Manual, 12/2017, A5E40898741-AA

Table of contents

4 Wiring ................................................................................................................................................... 77

4.1

Supply voltage ........................................................................................................................77

4.2

PROFINET interfaces .............................................................................................................78

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5
4.3.6 4.3.7 4.3.8

Terminal and block diagrams..................................................................................................80 Block diagram of the CPU part ...............................................................................................80 Terminal and block diagram of the analog on-board I/O ........................................................81 Terminal and block diagram of the digital on-board I/O..........................................................90 Addresses of the high-speed counters .................................................................................104 Addresses of the pulse generators in the Pulse Width Modulation (PWM) and Frequency Output modes .....................................................................................................107 Addresses of pulse generators in the PTO mode.................................................................108 Interconnection overview of the inputs .................................................................................109 Interconnection overview of outputs .....................................................................................111

5 Parameters/address space ................................................................................................................. 114

5.1

Address space of the analog on-board I/O ...........................................................................114

5.2

Address space of the digital on-board I/O ............................................................................116

5.3

Address space of the pulse generators ................................................................................119

5.4

Measurement types and measuring ranges of the analog on-board I/O ..............................120

5.5

Output type and output ranges of the analog on-board I/O ..................................................121

5.6

Parameters of the analog on-board I/O ................................................................................122

5.7

Parameters of the digital on-board I/O..................................................................................125

6 Interrupts/diagnostics alarms............................................................................................................... 127

6.1 6.1.1 6.1.2 6.1.3

Status and error displays ......................................................................................................127 Status and error displays of the CPU part ............................................................................127 Status and error displays of the analog on-board I/O...........................................................130 Status and error displays of the digital on-board I/O ............................................................132

6.2 6.2.1 6.2.2 6.2.3

Interrupts and diagnostics.....................................................................................................134 Interrupts and diagnostics of the CPU part...........................................................................134 Interrupts and diagnostics of the analog on-board I/O .........................................................135 Interrupts and diagnostics of the digital on-board I/O...........................................................138

7 Technical specifications ...................................................................................................................... 141

A Dimension drawings............................................................................................................................ 164

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

7

Table of contents

B Parameter data records .......................................................................................................................166

B.1

Parameter assignment and structure of the parameter data records of the analog on-

board I/O .............................................................................................................................. 166

B.2

Structure of a data record for input channels of the analog on-board I/O ........................... 166

B.3

Structure of a data record for output channels of the analog on-board I/O ......................... 172

B.4

Parameter assignment and structure of the parameter data records of the digital on-

board I/O .............................................................................................................................. 175

B.5

Structure of a data record for input channels of the digital on-board I/O............................. 176

B.6

Structure of a data record for output channels of the digital on-board I/O........................... 178

B.7

Parameter data records of the high-speed counters ........................................................... 180

B.8

Parameter data records (PWM) ........................................................................................... 187

C Analog value processing ......................................................................................................................189

C.1

Conversion method .............................................................................................................. 189

C.2

Representation of analog values ......................................................................................... 196

C.3 C.3.1 C.3.2 C.3.3
C.3.4

Representation of input ranges............................................................................................ 197 Representation of analog values in voltage measuring ranges ........................................... 198 Representation of analog values in current measuring ranges ........................................... 199 Representation of the analog values of resistance-type sensors/resistance-type thermometers ....................................................................................................................... 200 Measured values for wire break diagnostics........................................................................ 202

C.4 C.4.1 C.4.2

Representation of output ranges.......................................................................................... 203 Representation of analog values in the voltage output ranges............................................ 204 Representation of analog values in the current output ranges ............................................ 205

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

8

Manual, 12/2017, A5E40898741-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

9

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

10

Manual, 12/2017, A5E40898741-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

11

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

12

Manual, 12/2017, A5E40898741-AA

Product overview

2

2.1

Applications of the S7-1500 CPUs

Application area
The SIMATIC S7-1500 is the modular control system for numerous automation applications in discrete automation.
The modular and fanless design, the simple implementation of distributed structures and the user-friendly handling transform the SIMATIC S7-1500 into a cost-effective and convenient solution for various tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automotive
 Water/waste water
 Food & Beverage
Areas of application of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
The high immunity to noise and high resistance to shock and vibration stress make the SIMATIC S7-1500 suitable for universal use.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

13

Product overview 2.1 Applications of the S7-1500 CPUs

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and medium-sized applications, as well as for the highend range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP MFP

Performance segment
Standard CPU for small- to medium-sized applications Standard CPU for mediumsized applications Standard CPU for small- to medium-sized applications Standard CPU for high-end applications and communication tasks Standard CPU for high-end applications and communication tasks Standard CPU for highperformance applications, demanding communications tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET I O RT/IRT interface 1 1 1 1
1
1

PROFINET IO RT inter-
face --1 1
1
1

PROFINET basic func-
tionality -----
--
1

Work memory 1.15 MB 1.8 MB 3.5 MB
6 MB
10 MB
24 MB

Processing time for bit operations
60 ns 40 ns 30 ns 10 ns
2 ns
1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic functionality

CPU 1511C-1 PN Compact CPU for small to

--

1

--

--

medium applications

CPU 1512C-1 PN Compact CPU for medium

--

1

--

--

applications

Work memory 1.175 MB

Processing time for bit operations 60 ns

1.25 MB

48 ns

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 PN
CPU 1511TF-1 P N

Fail-safe CPU for smaller to medium-sized applications
Fail-safe technology CPU for small to mid-range applications

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

--

1

--

--

--

1

--

--

Work memory 1.225 MB

Processing time for bit operations 60 ns

1.225 MB

60 ns

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

14

Manual, 12/2017, A5E40898741-AA

Product overview 2.1 Applications of the S7-1500 CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1513F-1 PN Fail-safe CPU for medium-

--

1

--

--

sized applications

CPU 1515F-2 PN Fail-safe CPU for medium-

--

1

1

--

sized to large applications

CPU 1515TF-2 Fail-safe technology CPU

--

1

1

--

PN

for demanding applications

and communication tasks

CPU 1516F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munications tasks

CPU 1516TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1517F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munications tasks

CPU 1517TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1518F-4

Fail-safe CPU for high-

1

1

1

1

PN/DP

performance applications,

CPU 1518F-4 PN/DP MFP

demanding communications tasks and very short reaction times

Work memory 1.95 MB

Processing time for bit operations 40 ns

3.75 MB

30 ns

3.75 MB

30 ns

6.5 MB

10 ns

6.5 MB

10 ns

11 MB

2 ns

11 MB

2 ns

26 MB

1 ns

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511T-1 PN Technology CPU for small-

--

1

--

--

to medium-sized applica-

tions

CPU 1515T-2 PN Technology CPU for mid-

--

1

1

--

range to large applications

CPU 1516T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1517T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1511TF-1 PN

These CPUs are described in the fail-safe CPUs

CPU 1515TF-2 PN

CPU 1516TF-3 PN/DP

CPU 1517TF-3 PN/DP

Work memory 1.225 MB

Processing time for bit operations 60 ns

3.75 MB 6.5 MB

30 ns 10 ns

11 MB

2 ns

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

15

Product overview 2.1 Applications of the S7-1500 CPUs

Performance segments of compact CPUs
The compact CPUs can be used for smaller to medium-sized applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the differences in performance between the two compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

16

Manual, 12/2017, A5E40898741-AA

Product overview 2.1 Applications of the S7-1500 CPUs
Integrated Motion Control technology functions
All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Output cams  Cam tracks  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

17

Product overview 2.1 Applications of the S7-1500 CPUs
Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules. SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7 (TIA Portal), each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks. The copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card are linked to its serial number so that the block can only be executed if the configured memory card is inserted in the CPU. In addition, four different authorization levels in the CPUs can be used to assign different access rights to various user groups. Improved manipulation protection allows the CPUs to detect changed or unauthorized transfers of the engineering data. The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection by means of a firewall and/or the option of secured VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and distributed. These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications. The fail-safe CPUs are certified for use in safety mode up to:  Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010  Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to
EN ISO 13849-1:2008 Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

18

Manual, 12/2017, A5E40898741-AA

Product overview 2.1 Applications of the S7-1500 CPUs
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and modularly with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as the easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and messages
Integrated system diagnostics is enabled by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7 (TIA Portal), on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostics information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

19

Product overview 2.2 Hardware properties and firmware functions

2.2

Hardware properties and firmware functions

The CPU 1512C-1 PN consists of a CPU part, an analog on-board I/O module (X10) and a digital on-board I/O module (X11 and X12). When configured in the TIA Portal, the compact CPU therefore occupies a single shared slot (slot 1).

The properties and functions of the CPU part and the analog and digital on-board I/O modules can be found in the subsections below. The properties describe the hardware features of the CPU part and the analog and digital on-board I/O modules. The functions describe the functions of the firmware of the CPU part and the analog and digital on-board I/O modules.

Article number
6ES7512-1CK01-0AB0

Accessories

The following accessories are included in the scope of delivery and can also be ordered separately as spare parts:  3 x front connector (push-in terminals) including cable ties  3 x shield clamp  3 x shield terminal  3 x infeed element (push-in terminals)  3 x labeling strip  3 x universal front cover For more information on accessories, refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

20

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

2.2.1

Hardware properties of the CPU part

View of the CPU
The figure below shows the CPU part of the CPU 1512C-1 PN.

Figure 2-1 CPU 1512C-1 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

21

Product overview 2.2 Hardware properties and firmware functions

Properties

The CPU 1512C-1 PN has the following technical properties:

Property CPU display
Supply voltage PROFINET IO PROFINET interface (X1 P1 R and X1 P2 R)
Operation of the CPU as · IO controller · I-device

Description
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further network settings. The display shows occurring error messages directly in plain text.
In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S71500 Display Simulator are shown on the display.
A 4-pole connection plug that is located at the front of the CPU supplies the 24 V DC supply voltage.

Additional information
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
· SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)
· Chapter Wiring (Page 77)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

The X1 interface has two ports (P1 R and P2 R). In addition to basic PROFINET functionality, its also supports PROFINET IO RT (real time) and IRT (isochronous real time), which means you can configure PROFINET IO communication or real-time settings on the interface.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/68039307)

Port 1 and Port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet (media redundancy).

Basic PROFINET functionality comprises:

· HMI communication

· Communication with the configuration system

· Communication with a higher-level network (backbone, router, Internet)

· Communication with another machine or automation cell

· IO controller: As an IO controller the CPU addresses the connected IO devices
· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

22

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

2.2.2

Firmware functions of the CPU part

Functions

The CPU 1512C-1 PN supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description

Additional information

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59192926)

The Web server lets you access the CPU data by

·

means of a network. Evaluations, diagnostics, and

modifications are thus possible over long distances.

Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take ·

appropriate measures (e.g. limiting network access,

using firewalls) to protect the CPU from being compro-

mised.

Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (http://support.automation.siemens.c om/WW/view/en/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU can communicate with OPC UA clients as an OPC UA server.

Communication function manual (https://support.industry.siemens.co m/cs/ww/en/view/59192925)

Through OPC UA Companion Specification, the methods can be specified uniformly and independently of manufacturers. The specified methods enable you to integrate devices from various manufacturers more easily into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

23

Product overview 2.2 Hardware properties and firmware functions

Function PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description

Additional information

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.

The Isochronous mode system property acquires measured values and process data and processes the signals in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

24

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

Function PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and · traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
· Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.
· Speed-controlled axis for controlling a drive with speed specification
· Positioning axis for position-controlled positioning of a drive
· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.
· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation
· Cams, cam track for position-dependent generation of switching signals
· Measuring input for fast, accurate and eventdependent sensing of actual positions

Section Technology functions (Page 42)
S7-1500 Motion Control function manual (http://support.automation.sieme ns.com/WW/view/en/109749262)

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

25

Product overview 2.2 Hardware properties and firmware functions

Function Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

You can use authorization levels to assign separate rights to different users.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

26

Manual, 12/2017, A5E40898741-AA

2.2.3 View

Product overview 2.2 Hardware properties and firmware functions
Hardware properties of the analog on-board I/O module
The following figure shows the analog on-board I/O (X10) of the CPU 1512C-1 PN.

Figure 2-2 Analog on-board I/O

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

27

Product overview 2.2 Hardware properties and firmware functions

Properties of the analog inputs
The 5 inputs of the analog on-board I/O module have the following properties:

Property

Description

Additional information

Resolution: 16 bits includ- A CPU processes information exclusively in digital

· Chapter Analog value pro-

ing sign

format. An ADC (analog-to-digital converter) integrated

cessing

into the analog on-board I/O module therefore converts the analog value into a bit pattern. For the CPU, this

·

Analog value processing function

conversion always returns a 16-bit word for SIMATIC

manual

products. The ADC used digitalizes the analog signal

(http://support.automation.sieme

and approximates its value with a stepped curve. The

ns.com/WW/view/en/67989094)

resolution specifies the number of increments of the

analog value along this stepped curve here.

Integrated types of measuring

Controllers are only capable of processing analog values in the form of bit patterns. For this purpose, transducers which can be connected to the analog module measure physical variables such as pressure or temperature. This analog value is measured by the analog input module in the form of the measurement types current, voltage or resistance. The analog on-board I/O module supports the following measurement types on the following channels.

· Voltage measurement type can be set individually for channel 0 to 3
· Current measurement type can be set individually for channel 0 to 3
· Resistor measurement type can be set for channel 4

· Thermal resistor measurement type can be set for channel 4

Configurable diagnostics Hardware interrupt

The analog on-board I/O module can diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. Different types of diagnostics are available that you can parameterize channel-granularly.
You can react to process events (such as negative/positive exceeding of specific limits) through the configuration of a hardware interrupt. Hardware interrupts can be parameterized channel-granularly.

Chapter Parameters of the analog on-board I/O (Page 122)
· Chapter Parameters of the analog on-board I/O (Page 122)
· Chapter Structure of a data record for input channels of the analog on-board I/O (Page 166)

· STEP 7 online help

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

28

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

Properties of the analog outputs
The 2 outputs of the analog on-board I/O module have the following properties:

Property Resolution: 16 bits including sign
Integrated output types
Configurable diagnostics

Description

Additional information

Once the CPU has processed the digital signal, a DAC ·

(digital-to-analog converter) integrated in the analog on-

board I/O module converts the output signal to an analog current or voltage value. The resulting value of the

·

output signal corresponds to the output value with

which the analog on-board I/O module controls the

analog actuators.

Chapter Analog value processing
Analog value processing function manual (http://support.automation.sieme ns.com/WW/view/en/67989094)

With the selection of the type of output you specify whether the digital-to-analog converter is to convert the output signal into the type of output "Current" or "Voltage". The output can be selected by individual channel.

The analog on-board I/O module can diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. Different types of diagnostics are available that you can parameterize channel-granularly.

Chapter Parameters of the analog on-board I/O (Page 122)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

29

Product overview 2.2 Hardware properties and firmware functions

2.2.4

Firmware functions of the analog on-board I/O module

Functions of the analog inputs
The 5 inputs of the analog on-board I/O module have the following functions:

Function Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

You have the option of reassigning parameters for the ·

analog on-board I/O module in RUN (for example,

measuring ranges of individual channels can be modi-

fied in RUN without affecting the other channels).

·

Additional information
Chapter Parameters of the analog on-board I/O (Page 122)
Chapter Parameter assignment and structure of the parameter data records of the analog onboard I/O (Page 166)

Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid.
Value status = 0 ("Bad") indicates that the read value is not valid.

Chapter Address space of the analog on-board I/O (Page 114)

Functions of the analog outputs
The 2 outputs of the analog on-board I/O module have the following functions:

Function Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

You have the option of reassigning parameters for the ·

analog on-board I/O module in RUN (for example,

output ranges of individual channels can be modified in RUN without affecting the other channels).

·

Additional information
Chapter Parameters of the analog on-board I/O (Page 122)
Chapter Parameter assignment and structure of the parameter data records of the analog onboard I/O (Page 166)

Value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal.
Value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect.

Chapter Address space of the analog on-board I/O (Page 114)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

30

Manual, 12/2017, A5E40898741-AA

2.2.5 View

Product overview 2.2 Hardware properties and firmware functions
Hardware properties of the digital on-board I/O module
The following figure shows the digital on-board I/O (X11 and X12) of the CPU 1512C-1 PN.

Figure 2-3 Digital on-board I/O

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

31

Product overview 2.2 Hardware properties and firmware functions

Properties of the digital inputs
The digital inputs of the digital on-board I/O module have the following properties:

Property Standard and high-speed inputs
Configurable diagnostics
Hardware interrupt

Description

Additional information

The digital on-board I/O module has 32 high-speed inputs for signals up to a max. of 100 kHz. The inputs can be used as standard inputs and as inputs for technology functions.

Section Wiring (Page 77)

The inputs have a rated input voltage of 24 V DC.

The inputs are suitable for switches and 2-/3-/4-wire proximity switches.

The digital on-board I/O module is able to diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. You can parameterize the type of diagnostics channel-specifically.

Section Parameters of the digital onboard I/O (Page 125)

You can react to process events (such as positive

Section Parameters of the digital on-

edge, negative edge) through the configuration of a

board I/O (Page 125)

hardware interrupt. Hardware interrupts can be parame- Section Structure of a data record

terized channel-granularly.

for input channels of the digital on-

board I/O (Page 176)

STEP 7 online help

Properties of the digital outputs
The digital outputs of the digital on-board I/O module have the following properties:

Property

Description

Configurable diagnostics

The digital on-board I/O module is able to diagnose errors. The module reports the diagnosed state to the CPU using a diagnostics error interrupt. You can parameterize the type of diagnostics channel-specifically.

Standard and high-speed outputs

Standard outputs

The digital on-board I/O module has 16 standard outputs.

High-speed outputs

Of the 32 standard outputs you can also use 8 outputs as high-speed outputs for technology functions.

Rated output voltage

The outputs have a rated output voltage of 24 V DC.

Output frequencies and output currents

Rated output current as output for standard mode: 0.5 A per channel.

As an output for technology functions, you can select between an output current of up to 0.5 A at an output frequency up to 10 kHz (load dependent) and a reduced output current of max. 0.1 A at an increased output frequency of up to 100 kHz.

Additional information Section Interconnection overview of outputs (Page 111)
Section Wiring (Page 77)
Section Interconnection overview of outputs (Page 111)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

32

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

Property Application Driver blocks X11
Driver blocks X12

Description

Additional information

The outputs are suitable for, e.g. solenoid valves, DC contactors and indicator lights, or also for signal transmission or proportional valves.

The digital outputs of the digital onboard I/O X11 have driver blocks with parasitic diodes. In principle, parasitic diodes have an effect when switching off inductive loads such as freewheeling diodes. The shutdown voltage is limited to -0.8 V. Therefore, the demagnetization of inductive loads takes longer and can be approximately calculated using the following formula.

Section Terminal and block diagram of the digital on-board I/O (Page 90)

tau = L / R (tau= time constant, L = inductance value, R = ohmic resistance value)

After the expiration of a period of 5 * tau, the current has decreased in effect to 0 A due to the inductive load.

The maximum value is derived from:

tau = 1.15H / 48 Ohm = 24 ms. After 5 * 24 ms = 120 ms, the current has decreased in effect to 0 A.

For comparison: With standard modules, inductive shutdown voltage is limited, for example, to Vcc -53 V (supply voltage ­ 53 V), which causes the current to decrease to 0 A after about 15 ms.

The driver blocks of the outputs from the digital inboard I/O X12 have no freewheeling diodes.

The cut-off voltage is -29 V. Inductive loads are therefore demagnetized faster than for X11.

If ground is interrupted, no unwanted current flows through the digital outputs to the ground.

Simultaneous use of technology and standard functions
You can use technology and standard functions at the same time, provided the hardware allows this. For example, all the digital inputs not assigned to the counting, measuring or position detection or PTO technology functions can be used as standard DI.
Inputs to which technology functions are assigned can be read. Outputs to which technology functions are assigned cannot be written.

See also

Parameter assignment and structure of the parameter data records of the digital on-board I/O (Page 175)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

33

Product overview 2.2 Hardware properties and firmware functions

2.2.6

Firmware functions of the digital on-board I/O module

Functions of the digital inputs
The digital inputs of the digital on-board I/O module have the following functions:

Function Technology functions
Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

Additional information

The high-speed digital inputs of the digital on-board Chapter Technology functions I/O module support technology functions such as fast (Page 42) counting, measuring, position detection and pulse generators (PWM, PTO and frequency output). Due to the supported technology functions, the compact CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

You have the option of reassigning parameters for the ·

digital on-board I/O module in RUN (for example,

values for input delay of individual channels can be modified without affecting the other channels).

·

Chapter Parameters of the digital on-board I/O (Page 125)
Chapter Parameter assignment and structure of the parameter data records of the digital onboard I/O (Page 175)

Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid.
Value status = 0 ("Bad") indicates that no/too little supply voltage L+ is applied at the terminal and that the read value is therefore not valid.

Chapter Address space of the digital on-board I/O (Page 116)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

34

Manual, 12/2017, A5E40898741-AA

Product overview 2.2 Hardware properties and firmware functions

Functions of the digital outputs
The digital outputs of the digital on-board I/O module have the following functions:

Function Technology functions
Reconfiguration in RUN
Support of the value status (Quality Information, QI)

Description

Additional information

The high-speed digital outputs of the digital on-board I/O module support technology functions such as fast counting, measuring, position detection and pulse generators (PWM, PTO and frequency output). Due to the supported technology functions, the compact CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

Chapter Technology functions (Page 42)

You have the option of reassigning parameters for the ·

digital on-board I/O module in RUN (for example,

behavior during CPU STOP, without affecting the

other channels).

·

Chapter Parameters of the digital on-board I/O (Page 125)
Chapter Parameter assignment and structure of the parameter data records of the digital onboard I/O (Page 175)

Value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal.
Value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect or the channel is used for technology functions.

Chapter Address space of the digital on-board I/O (Page 116)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

35

Product overview 2.3 Operator controls and display elements

2.3

Operator controls and display elements

2.3.1

Front view with closed front panel
The following figure shows the front view of the CPU 1512C-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Status and error displays RUN/ERROR of the analog on-board I/O  Status and error displays RUN/ERROR of the digital on-board I/O  Control keys  Display
Figure 2-4 View of the CPU 1512C-1 PN with closed front panels (front)
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down again, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. You can find additional information on the temperatures at which the display switches itself on and off in the Technical specifications (Page 141).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

36

Manual, 12/2017, A5E40898741-AA

Product overview 2.3 Operator controls and display elements
Removing and fitting the front panel or the display
You can remove and fit the front panel or the display during operation. The CPU retains its operating mode when the front panel is pulled and plugged.
WARNING Personal injury and damage to property may occur If you pull or plug the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you pull or plug the front panel in hazardous area zone 2, always ensure that the S7-1500 automation system is de-energized. The CPU maintains its operating mode.
Locking the front panel
You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a hoop diameter of 3 mm to the front panel.

Reference

Figure 2-5 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. For more information on the display, the configurable protection levels and the local lock, refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

37

Product overview 2.3 Operator controls and display elements

2.3.2

Front view of the CPU without front panel and view from below
The following figure shows the operator control and connection elements of the CPU 1512C-1 PN with the front cover of the CPU open.

 LEDs for the current operating mode and diagnostics status of the CPU  Status and error displays RUN/ERROR of the analog on-board I/O  Status and error displays RUN/ERROR of the digital on-board I/O  Connector for power supply  Operating modes with "STOP ACTIVE" LED  LEDs for the 2 ports (X1 P1 and X1 P2) of the PROFINET interface X1  MAC address  Display
Figure 2-6 View of the CPU 1512C-1 PN without front panel on the CPU (front)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

38

Manual, 12/2017, A5E40898741-AA

Product overview 2.3 Operator controls and display elements
 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fastening screw
Figure 2-7 View of the CPU 1512C-1 PN ­ bottom

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

39

Product overview 2.3 Operator controls and display elements

2.3.3

Rear view
The following figure shows the connection elements on the rear of the CPU 1512C-1 PN.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fastening screws
Figure 2-8 View of the CPU 1512C-1 PN - rear

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

40

Manual, 12/2017, A5E40898741-AA

Product overview 2.4 Operating mode buttons

2.4

Operating mode buttons

You use the operating mode buttons to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 5 Meaning of the operating mode buttons

Operation of the operating mode buttons RUN
STOP

Meaning
RUN mode STOP mode

MRES
1. Press the operating mode button STOP.
Result: The RUN/STOP LED lights up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the button. 3. Press the operating mode button STOP again within the next three seconds.

Manual memory reset
(with inserted SIMATIC memory card)
or
Reset to factory settings (without inserted SIMATIC memory card):

Explanation
The CPU executes the user program. The user program is not executed. (STOP ACTIVE LED lights up). The CPU executes memory reset.
or The CPU is reset to its factory settings. You can find additional information in the S7-1500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/vi ew/59191792).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

41

Technology functions

3

3.1

High-speed counters

Properties

The technology functions of the compact CPU have the following technical properties:  32 high-speed digital inputs (up to 100 kHz), isolated
­ 6 high-speed counters (High Speed Counter/HSC), which can all be used as A/B/N  Interfaces
­ 24 V encoder signals of sourcing or push-pull encoders and sensors ­ 24 V encoder supply output, short-circuit-proof ­ Up to 2 additional digital inputs per high-speed counter for possible HSC DI functions
(Sync, Capture, Gate) ­ 1 digital output per high-speed counter for fast reaction to the count  Counting range: 32 bits  Diagnostics and hardware interrupts can be configured  Supported encoder/signal types ­ 24 V incremental encoder
(with 2 tracks A and B, phase-shifted by 90°, up to 6 incremental encoders also with zero track N) ­ 24 V pulse encoder with direction signal ­ 24 V pulse encoder without direction signal ­ 24 V pulse encoder each for forward pulse & reverse pulse The high-speed counters support reconfiguration in RUN. You can find additional information in section Parameter data records of the high-speed counters (Page 180).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

42

Manual, 12/2017, A5E40898741-AA

Technology functions 3.1 High-speed counters

3.1.1

Functions

3.1.1.1

Counting
Counting refers to the detection and adding up of events. The counters acquire and evaluate encoder signals and pulses. You can specify the count direction using encoder or pulse signals or through the user program. You can control counting processes using the digital inputs. You can switch the digital outputs exactly at defined count values, regardless of the user program. You can configure the response of the counters using the functionalities described below.

Counting limits

The counting limits define the count value range used. The counting limits are selectable and can be modified during runtime by the user program. The highest counting limit that can be set is 2147483647 (231­1). The lowest counting limit that can be set is ­2147483648 (­231). You can configure the response of the counter at the counting limits:
 Continue or stop counting (automatic gate stop) on violation of a counting limit
 Set count value to start value or to opposite counting limit on violation of a counting limit

Start value

You can configure a start value within the counting limits. The start value can be modified during runtime by the user program. Depending on the parameter assignment, the compact CPU can set the current count value to the start value during synchronization, during the Capture function, on violation of a counting limit or when the gate is opened.

Gate control

Opening and closing the hardware gate and software gate defines the period of time during which the counting signals are acquired. The digital inputs of the digital on-board I/O control the hardware gate. The user program controls the software gate. You can enable the hardware gate using the parameter assignment. The software gate (bit in the control interface of the cyclic I/O data) cannot be disabled.

Capture

You can configure an external reference signal edge that triggers the saving of the current count value as a Capture value. The following external signals can trigger the Capture function:  Rising or falling edge of a digital input  Both edges of a digital input  Rising edge of signal N at the encoder input
You can configure whether counting continues from the current count value or from the start value after the Capture function.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

43

Technology functions 3.1 High-speed counters

Hysteresis

You can specify hysteresis for the comparison values, within which a digital output is prevented from switching again. An encoder may stop at a certain position, and slight movements may make the count value fluctuate around this position. If a comparison value or a counting limit lies within this fluctuation range, the corresponding digital output will be switched on and off often if hysteresis is not used. The hysteresis prevents these unwanted switching operations.

Reference

For more information on the counter, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection function manual (http://support.automation.siemens.com/WW/view/en/59709820).

3.1.1.2

Measuring

Measuring functions
The following measuring functions are available:

Table 3- 1 Overview of available measuring functions

Measurement type Frequency measurement Period measurement
Velocity measurement

Description
A measuring interval calculates the average frequency based on the time sequence of the count pulses, and returns this frequency as a floating-point number in units of hertz.
A measuring interval calculates the average period duration based on the time sequence of the count pulses, and returns this period duration as a floating-point number in units of seconds.
A measuring interval calculates the average velocity based on the time sequence of the count pulses, and returns this velocity in the configured unit.

The measured value and count value are both available in the feedback interface.

Update time

You can configure the interval at which the compact CPU updates the measured values cyclically as the update time. Larger update times smooth uneven measured variables and increase the measuring accuracy.

Gate control

Opening and closing the hardware gate and software gate defines the period of time during which the count signals are acquired. The update time is asynchronous to the opening of the gate, which means that the update time is not started when the gate is opened. After the gate is closed, the last measured value calculated is still returned.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

44

Manual, 12/2017, A5E40898741-AA

Technology functions 3.1 High-speed counters

Measuring ranges
The measuring functions have the following measuring range limits:

Table 3- 2 Overview of low and high measuring range limits

Measurement type Frequency measurement Period measurement Velocity measurement

Low measuring range limit

High measuring range limit

0.04 Hz

400 kHz *

2.5 s *

25 s

Depending on the configured number of "increments per unit" and the "timebase for velocity measurement"

* Applies to 24 V incremental encoder and "quadruple" signal evaluation

All measured values are returned as signed values. The sign indicates whether the count value increased or decreased during the relevant time period. For example, a value of 80 Hz means that the count value decreases at 80 Hz.

Reference

For more information on measuring, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection function manual (http://support.automation.siemens.com/WW/view/en/59709820).

3.1.1.3

Position detection for motion control
You can use the digital on-board I/O, e.g. with an incremental encoder, for position detection with S7-1500 Motion Control. The position input is based on the counting function, which evaluates the acquired encoder signals and provides them for S7-1500 Motion Control.
In the hardware configuration of the CPU 1512C-1 PN in STEP 7 (TIA Portal), select the "Position input for Motion Control" mode.

Reference

For a detailed description of the use of motion control and its configuration, refer to the S71500 Motion Control function manual (http://support.automation.siemens.com/WW/view/en/109749262). In the function module, the interface between the drives and encoders is referred to as a technology module (TM). In this context, a technology module (TM) also refers to the digital on-board I/O of the compact CPU described here.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

45

Technology functions 3.1 High-speed counters

3.1.1.4

Additional functions

Synchronization
You can configure an external reference signal edge to load the counter with the specified start value. The following external signals can trigger a synchronization:
 Rising or falling edge of a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input depending on the level of the assigned digital input

Comparison values
The integrated counter supports 2 comparison values and digital output HSC DQ1. If the counter or measured value meets the set comparison condition, HSC DQ1 can be set in order to trigger direct control operations in the process.
Both comparison values can be set in the parameters and can be changed during runtime by the user program.

Hardware interrupts
If you have enabled a hardware interrupt in the hardware configuration, the counter can trigger a hardware interrupt in the CPU when a comparison event occurs, if there is overflow or underflow, at a zero crossing of the counter, and/or at a change of count direction (direction reversal). You can specify which events are to trigger a hardware interrupt during operation in the hardware configuration.

Diagnostics interrupts
If you have enabled a diagnostics interrupt in the hardware configuration, the counter can trigger a diagnostics interrupt if the supply voltage is missing, if there is an incorrect A/B count signal or lost hardware interrupt.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

46

Manual, 12/2017, A5E40898741-AA

Technology functions 3.1 High-speed counters

3.1.2

Configuring the high-speed counters

3.1.2.1

General
You configure the high-speed counters (HSC) in STEP 7 (TIA Portal). The functions are controlled by the user program.

Reference

A detailed description of configuring the counting and measuring functions can be found in:
 S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual
 in the STEP 7 online help under "Using technology functions > Counting, measuring and position detection > Counting, measuring and position detection (S7-1500)"
A detailed description of configuring Motion Control be found in:
 S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/59381279) function manual
 in the STEP 7 online help under "Using technology functions > Motion Control > Motion Control (S7-1500)"

3.1.2.2

Assignment of the control interface of the high-speed counters
The user program uses the control interface to influence the behavior of the high speed counter.
Note Operation with High_Speed_Counter technology object
The High_Speed_Counter technology object is available for high-speed counting mode. We therefore recommend use of the High_Speed_Counter technology object instead of the control interface/feedback interface for controlling the high speed counter.
For information on configuring the technology object and programming the associated instruction, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

47

Technology functions 3.1 High-speed counters

Control interface per channel
The following table shows the control interface assignment:

Table 3- 3 Assignment of the control interface

Offset from start address Bytes 0 to 3 Bytes 4 to 7 Byte 8
Byte 9

Parameter Slot 0 Slot 1 LD_SLOT_0*
LD_SLOT_1*
EN_CAPTURE EN_SYNC_DN EN_SYNC_UP SET_DQ1 SET_DQ0 TM_CTRL_DQ1 TM_CTRL_DQ0 SW_GATE

Meaning

Load value (meaning of the value is specified in LD_SLOT_0)

Load value (meaning of the value is specified in LD_SLOT_1)

Specifies the meaning of the value in Slot 0

Bit 3 Bit 2 Bit 1 Bit 0

0

0

0

0

No action, idle state

0

0

0

1

Load counter

0

0

1

0

Reserve

0

0

1

1

Load start value

0

1

0

0

Load comparison value 0

0

1

0

1

Load comparison value 1

0

1

1

0

Load low counting limit

0

1

1

1

Load high counting limit

1

0

0

0

Reserve

to

1

1

1

1

Specifies the meaning of the value in Slot 1

Bit 7 Bit 6 Bit 5 Bit 4

0

0

0

0

No action, idle state

0

0

0

1

Load counter

0

0

1

0

Reserve

0

0

1

1

Load start value

0

1

0

0

Load comparison value 0

0

1

0

1

Load comparison value 1

0

1

1

0

Load low counting limit

0

1

1

1

Load high counting limit

1

0

0

0

Reserve

to

1

1

1

1

Bit 7: Enable capture function

Bit 6: Enable downward synchronization

Bit 5: Enable upward synchronization

Bit 4: Set DQ1

Bit 3: Set DQ0

Bit 2: Enable technological function DQ1

Bit 1: Enable technological function DQ0

Bit 0: Software gate

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

48

Manual, 12/2017, A5E40898741-AA

Technology functions 3.1 High-speed counters

Offset from start address Byte 10
Byte 11

Parameter
SET_DIR ­ RES_EVENT RES_ERROR ­

Meaning
Bit 7: Count direction (with encoder without direction signal) Bits 2 to 6: Reserve; bits must be set to 0 Bit 1: Reset of saved events Bit 0: Reset of saved error states Bits 0 to 7: Reserve; bits must be set to 0

* If values are loaded simultaneously via LD_SLOT_0 and LD_SLOT_1, the value from Slot 0 is taken first internally and then the value from Slot 1 . This may lead to unexpected intermediate states.

Reference

You can find a graphic representation of the processing of the various SLOT parameters in the section Handling the SLOT parameter (control interface) (Page 71).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

49

Technology functions 3.1 High-speed counters

3.1.2.3

Assignment of the feedback interface of the high-speed counters
The user program receives current values and status information from the high speed counter via the feedback interface.
Note Operation with High_Speed_Counter technology object
The High_Speed_Counter technology object is available for high-speed counting mode. We therefore recommend use of the technology object High_Speed_Counter instead of the control interface/feedback interface for controlling the high speed counter.
For information on configuring the technology object and programming the associated instruction, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual.

Feedback interface per channel
The following table shows the feedback interface assignment:

Table 3- 4 Assignment of the feedback interface

Offset from start address Bytes 0 to 3 Bytes 4 to 7 Bytes 8 to 11 Byte 12
Byte 13
Byte 14

Parameter
COUNT VALUE CAPTURED VALUE MEASURED VALUE ­ LD_ERROR ENC_ERROR POWER_ERROR ­ STS_SW_GATE STS_READY LD_STS_SLOT_1 LD_STS_SLOT_0 RES_EVENT_ACK ­ STS_DI2 STS_DI1 STS_DI0 STS_DQ1 STS_DQ0 STS_GATE STS_CNT STS_DIR

Meaning
Current count value Last Capture value acquired Current measured value Bits 3 to 7: Reserve; set to 0 Bit 2: Error when loading via control interface Bit 1: Incorrect encoder signal Bit 0: Incorrect supply voltage L+ Bits 6 to 7: Reserve; set to 0 Bit 5: Software gate status Bit 4: Digital on-board I/O started up and parameters assigned Bit 3: Load request for Slot 1 detected and executed (toggling) Bit 2: Load request for Slot 0 detected and executed (toggling) Bit 1: Reset of event bits active Bit 0: Reserve; set to 0 Bit 7: Reserve; set to 0 Bit 6: Status HSC DI1 Bit 5: Status HSC DI0 Bit 4: Status HSC DQ1 Bit 3: Status HSC DQ0 Bit 2: Internal gate status Bit 1: Count pulse detected within last approx. 0.5 s Bit 0: Direction of last count value change

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

50

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

Offset from start address
Byte 15

Parameter
STS_M_INTERVAL EVENT_CAP EVENT_SYNC EVENT_CMP1 EVENT_CMP0 EVENT_OFLW EVENT_UFLW EVENT_ZERO

Meaning
Bit 7: Count pulse detected in previous measuring interval Bit 6: Capture event has occurred Bit 5: Synchronization has occurred Bit 4: Comparison event for DQ1 has occurred Bit 3: Comparison event for DQ0 has occurred Bit 2: Overflow has occurred Bit 1: Underflow has occurred Bit 0: Zero crossing has occurred

3.2

Pulse generators

3.2.1

Operating modes

3.2.1.1

Operating mode: Pulse-width modulation (PWM)

Properties

The pulse-width modulation (PWM) mode of the compact CPU has the following technical properties:

Pulse duration
Period duration

Standard output

Minimum
High-speed output deactivated

High-speed output activated

400 µs with load > 0.1 A 1)
500 µs with load  2m A 1)
10 ms 2)

20 µs with load > 0.1 A 1)
40 µs with load  2m A 1)
100 s 2)

2 µs 1) 10 s

Standard output

Maximum
High-speed output deac-
tivated

High-speed output acti-
vated

10,000,000 µs (10 s)

1) A lower value is theoretically possible but, depending on the connected load, the output voltage can no longer be output as complete rectangular pulse
2) Load dependent

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

51

Technology functions 3.2 Pulse generators
Principle of operation
With pulse width modulation, a signal with defined cycle duration and variable on-load factor is output at the digital output. The on-load factor is the relationship of the pulse duration to the cycle duration. In PWM mode, you can control the on-load factor and the cycle duration. With pulse width modulation you vary the mean value of the output voltage. Depending on the connected load, you can control the load current or the power with this. You can specify the pulse duration as one-hundredth of the period duration (0 bis 100), as one-thousandth (0 to 1000), as one ten-thousandth (0 to 10,000) or in S7 analog format.
 Period duration  Pulse duration
The pulse duration can be between 0 (no pulse, always off) and full-scale deflection (no pulse, period duration always on). The PWM output can, for example, be used to control the speed of a motor from standstill to full speed or you can use it to control the position of a valve from closed to completely open. You configure the pulse width modulation (PWM) mode in STEP 7 (TIA Portal). The pulse width modulation mode has the following functions:  When the option "High-speed output (0.1 A)" is activated, you can generate a minimum
pulse duration of 2 s at a current of 100 mA. If the option "High-speed output (0.1 A)" is not activated, you can generate a minimum pulse duration of 20 s with a load > 0.1 A and a minimum pulse duration of 40 s with a load of  2 mA and a current of maximum 0.5 A. If a standard output is used, you can generate a minimum pulse duration of 400 µs with a load of > 0.1 A and a minimum pulse duration of 500 µs with a load of  2 mA.  You can control the pulse output (DQA) of the channel manually via the control and feedback interface.  You can configure the reaction to CPU STOP. Upon change to CPU STOP, the pulse output (DQA) is set to the configured state.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

52

Manual, 12/2017, A5E40898741-AA

Controller

Technology functions 3.2 Pulse generators
For the pulse width modulation (PWM) mode, the user program directly accesses the control and feedback interface of the channel. A reconfiguration via the instructions WRREC/RDREC and parameter assignment data record 128 is supported. You can find additional information in section Parameter data records (PWM) (Page 187) You control the on-load factor (pulse-cycle ratio) of the pulse width via the OUTPUT_VALUE field of the control interface. Pulse width modulation generates continuous pulses based on this value. The period duration is adjustable.

Figure 3-1 Pulse schematic
Starting the output sequence
The control program must output the enable for the output sequence with the help of the software enable (SW_ENABLE 0  1). The feedback bit STS_SW_ENABLE indicates that the software enable is pending at the PWM. If the software enable is activated (rising edge), STS_ENABLE is set. The output sequence runs continuously, as long as SW_ENABLE is set.
Note Output control signal TM_CTRL_DQ · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can set the
output PWM DQA directly via the control bit SET_DQA.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

53

Technology functions 3.2 Pulse generators
Canceling the output sequence
A deactivation of the software enable (SW_ENABLE = 1  0) cancels the current output sequence. The last cycle duration is not completed. STS_ENABLE and the digital output PWM DQA are immediately reset to 0. A renewed pulse output is only possible after a restart of the output sequence.
Minimum pulse duration and minimum interpulse period
You assign the minimum pulse duration and the minimum interpulse period with the help of the parameter "Minimum pulse duration".  A pulse duration determined by the technology function or PWM channel which is shorter
than the minimum pulse duration will be suppressed.  A pulse duration determined by the technology function or PWM channel which is longer
than the cycle duration less the minimum interpulse period will be set to the value of the cycle duration (output switched on permanently).

 Cycle duration  Cycle duration minus minimum interpulse period  Minimum pulse duration  OUTPUT_VALUE (One tenth of a percent on-load factor)  Pulse duration
Figure 3-2 Minimum pulse duration and minimum interpulse period

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

54

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators
Setting and changing the pulse on-load factor
OUTPUT_VALUE assigns the on-load factor for the current period duration. You select the range of the field OUTPUT_VALUE of the control interface with the "Output format" parameter.
 Output format per 100: Value range between 0 and 100 Pulse duration = (OUTPUT_VALUE/100) x period duration.
 Output format 1/1000: Value range between 0 and 1 000 Pulse duration = (OUTPUT_VALUE/1 000) x cycle duration.
 Output format 1/10000: Value range between 0 and 10 000 Pulse duration = (OUTPUT_VALUE/10 000) x cycle duration.
 Output format "S7 analog output": Value range between 0 and 27,648 Pulse duration = (OUTPUT_VALUE/27 648) x period duration.
You assign OUTPUT_VALUE directly via the control program. A new OUTPUT_VALUE is applied at the output when the next rising edge occurs.
Setting and changing the period duration
 Permanent updating The period duration is permanently controlled via the control interface. The MODE_SLOT bit must be set ("1" means permanent updating); LD_SLOT must be set to value 1 ("1" means period duration). Set the period value in the field SLOT. The unit is always a microsecond.
­ High-speed output activated: between 10 s and 10 000 000 s (10 s) in the field SLOT
­ High-speed output deactivated: between 100 s and 10 000 000 s (10 s) in the field SLOT
­ Standard output (100 Hz output): between 10 000 µs (10 ms) and 10 000 000 µs (10 s) in the field SLOT
 Individual updating Set the period duration in the configuration parameters. Alternatively, execute an individual updating via the control interface. MODE_SLOT must be deleted ("0" means individual updating); LD_SLOT must be set to value 1 ("1" means period duration). Set the period duration value in the field SLOT. The unit is always a microsecond.
­ High-speed output activated: between 10 s and 10 000 000 s (10 s) in the parameters
­ High-speed output deactivated: between 100 s and 10 000 000 s (10 s) in the parameters
­ Standard output (100 Hz output): between 10 000 µs (10 ms) and 10 000 000 µs (10 s) in the parameters
The new period duration is applied at the next rising edge of the output.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

55

Technology functions 3.2 Pulse generators

Setting the minimum pulse duration and the minimum interpulse period
You assign the minimum pulse duration and the minimum interpulse period as DWORD numerical value between 0 and 10 000 000 s (10 s) with the help of the channel parameter configuration "Minimum pulse duration".

Parameters of the pulse width modulation (PWM) mode

Category Reaction to CPU STOP
Diagnostics interrupt Parameter

Parameter Reaction to CPU STOP
Substitute value for pulse output (DQA)
No supply voltage L+ High-speed output (0.1 A)

Meaning
The parameter "Output substitute value" generates a substitute value upon CPU STOP, which you can define with the parameter "Substitute value for pulse output (DQA)".
The parameter "Continue operation" still generates the PWM output signal upon CPU STOP, which was generated before the CPU STOP.
If you have set the option "Output substitute value" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" defines the substitute value to be used for the pulse output of the channel.
If you have set the option "Continue operation" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" cannot be selected
The parameter "No supply voltage L+" activates the diagnostic interrupt of the channel in the case of no supply voltage L+
The "High-speed output (0.1 A)" parameter is used to specify whether you want to use the selected pulse output as high-speed output. Requirement for this is that the selected pulse output supports the operation as high-speed output.

Value range Output substitute value
Continue operation
0 (use substitute value 0)
1 (use substitute value 1)
Deactivated Activated
Deactivated The output supports frequencies of up to 10 kHz (load dependent)
and currents of up to 0.5 A or frequencies of up to 100 Hz and currents of up to 0.5 A depending on the performance capability of
the selected output. Activated
The output supports frequencies of up to 100 kHz and currents of
up to 0.1 A.

Default Output substi-
tute value
0
Deactivated Deactivated

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

56

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

Category

Parameter

Output format

Minimum pulse duration
Period duration

Meaning Defines the format of the ratio value (on-load factor) in the field "OUTPUT_VALUE" of the control duration of the channel.
Defines the minimum pulse duration and the minimum interpulse period of the output signal of the channel. The channel suppresses all pulses and pauses that are below the specified value. Defines the period duration of the output signal of the channel in s. In RUN, the user program can control the period duration via the control and feedback interface of the channel.

Value range S7 analog output Interprets the ratio value in the field OUTPUT_VALUE" of the control interface 1/27648 of the current period duration. Supported value range from 0 to
27 648 Per 100 Interprets the ratio value in the field "OUTPUT_VALUE"of the control interface percentage value of the current period duration. Supported value range 0 to 100 Per 1,000 Interprets the ratio value in the field "OUTPUT_VALUE"of the control interface is a one-tenth percentage point of the current period duration. Supported value range from 0 to
1 000
Per 10,000 Interprets the ratio value in the field "OUTPUT_VALUE" of the
control interface is a onehundredth percentage point of the
current period duration. Supported value range from 0 to
10 000
0 s to 10 000 000 s (10 s)
x to 10 000 000 s (10 s) at 100 kHz hardware output (high-speed output (0.1 A) activated): 10 s to 10 000 000 s
(10 s) at 10 kHz hardware output (highspeed output (0.1 A) deactivat-
ed): 100 s to 10 000 000 s (10 s)
at 100 kHz hardware output (high-speed output (0.1 A) deac-
tivated): 10 000 s (10 ms) to 10 000 000 s (10 s)

Default Per 100
0 s 2 000 000 s
(2 s)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

57

Technology functions 3.2 Pulse generators

Category
Hardware inputs / outputs

Parameter
Pulse output (DQA)

Meaning
The parameter "Pulse output (DQA)" defines the hardware output to use as pulse output channel.

Value range For B:
X11, terminal 21 (DQ0 / %Q4.0): 10 kHz / 0.5 A or 100 kHz / 0.1 A
For B: X11, terminal 31 (DQ8 / %Q5.0):
100 Hz / 0.5 A

Default
Hardware output for the least significant address

Output signals for pulse width modulation (PWM) mode

Output signal
Continuous pulse current at the digital output PWM DQA

Meaning
A pulse is output at the digital output PWM DQA for the set on-load factor and cycle duration.

Value range Continuous pulse current

3.2.1.2

Operating mode: Frequency output
In this operating mode you can assign a frequency value with high frequencies more precisely than by using period duration in PWM mode.
A rectangular signal with an assigned frequency and a constant on-load factor of 50 % is generated at the digital output.
The frequency output mode has the following functions:
 When the option "High-speed output (0.1 A)" is activated, you can generate a minimum pulse duration of 2 s at a current of 100 mA. If the option "High-speed output (0.1 A)" is not activated, you can generate a minimum pulse duration of 20 s with a load > 0.1 A and a minimum pulse duration of 40 s with a load of  2 mA and a current of maximum 0.5 A. If you use a standard output, you can generate a minimum pulse duration of 400 µs with a load of > 0.1 A and a minimum pulse duration of 500 µs with a load of  2 mA and a current of max. 0.5 A.

Frequency

Standard output

Minimum
High-speed output deac-
tivated
0.1 Hz

High-speed Standard out-

output activated

put

100 Hz 1)

Maximum
High-speed output deac-
tivated
10 kHz 1)

High-speed output activated
100 kHz

1) Load dependent

 You can control the pulse output (DQA) of the channel manually via the control and feedback interface.

 You can configure the reaction to CPU STOP. Upon change to CPU STOP, the pulse output (DQA) is set to the configured state.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

58

Manual, 12/2017, A5E40898741-AA

Controller

Technology functions 3.2 Pulse generators
For the frequency output mode, the user program directly accesses the control and feedback interface of the channel. A reconfiguration via the instructions WRREC/RDREC and parameter assignment data record 128 is supported. You can find additional information in section Parameter data records (PWM) (Page 187).

Figure 3-3 Pulse schematic
Starting the output sequence
The control program must initiate the enable for the output sequence with the help of the software enable (SW_ENABLE 0  1). The feedback bit STS_SW_ENABLE indicates that the software enable is pending at the pulse generator.
If the software enable is activated (rising edge), STS_ENABLE is set. The output sequence runs continuously, as long as SW_ENABLE is set.
Note Output control signal TM_CTRL_DQ · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can directly
set the output PWM DQA via the control bit SET_DQA. Canceling the output sequence
Deactivating the software enable (SW_ENABLE = 1  0) during the frequency output cancels the current output sequence. The last cycle duration is not completed. STS_ENABLE and the digital output PWM DQA are immediately reset to 0.
A renewed pulse output is only possible after a restart of the output sequence.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

59

Technology functions 3.2 Pulse generators

Setting and changing the output value (frequency)
You set the frequency with the OUTPUT_VALUE directly with the control program in the control interface. The value is specified in the real format and the unit is always "Hz". The possible range depends on the parameter "High-speed output (0.1 A)" as follows:
 High-speed pulse output deactivated
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 10,000 Hz
 High-speed pulse output activated
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 100,000 Hz
 Standard output (100 Hz output)
­ Frequency (OUTPUT_VALUE) 0.1 Hz to 100,000 Hz
The new frequency is applied at the start of the next period. The new frequency has no impact on the falling edge or the pulse-cycle ratio. However, the application can take up to 10 s depending on the previously set frequency.

Accuracy of the output frequency
The configured output frequency is output with a frequency-dependent accuracy at the digital output PWM DQA. You can find an overview of the accuracy as a function of the frequency used in the section Interconnection overview of outputs (Page 111).

Parameters of the frequency output mode

Category
Reaction to CPU STOP

Parameter Reaction to CPU STOP
Substitute value for pulse output (DQA)

Meaning
The parameter "Output substitute value" generates a substitute value upon CPU STOP, which you can define with the parameter "Substitute value for pulse output (DQA)".
The parameter "Continue operation" still generates the frequency output signal upon CPU STOP, which was generated before the CPU STOP.
If you have set the option "Output substitute value" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" defines the substitute value to be used for the pulse output of the channel.
If you have set the option "Continue operation" for "Reaction to CPU STOP", the parameter "Substitute value for pulse output (DQA)" cannot be selected.

Value range Output substitute value
Continue operation
0 (use substitute value 0)
1 (use substitute value 1)

Default Output substi-
tute value
0

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

60

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

Category Diagnostics interrupt Parameter
Hardware inputs / outputs

Parameter

Meaning

No supply voltage L+

The parameter "No supply voltage L+" activates the diagnostic interrupt of the channel in the case of no supply voltage L+

High-speed output (0.1 A)

The "High-speed output (0.1 A)" parameter is used to specify whether you want to use the selected pulse output as high-speed output. Requirement for this is that the selected pulse output supports the operation as high-speed output.

Output format
Pulse output (DQA)

Defines the value for the frequency output in the field "OUTPUT_VALUE" of the control duration of the channel.
The parameter "Pulse output (DQA)" is used to define the hardware output that you want to use as pulse output channel.

Value range Deactivated
Activated
Deactivated The output supports frequencies of up to 10 kHz (load dependent)
and currents of up to 0.5 A or frequencies of up to 100 Hz and currents of up to 0.5 A depending on the performance capability of
the selected output.
Activated The output supports frequencies of up to 100 kHz and currents of
up to 0.1 A.
1 Hz Interprets the value of the fre-
quency output in the field "OUTPUT_VALUE" as frequency
with the unit Hz. For B:
X11, terminal 21 (DQ0 / %Q4.0): 10 kHz / 0.5 A or 100 kHz / 0.1 A
For B: X11, terminal 31 (DQ8 / %Q5.0):
100 Hz / 0.5 A

Default Deactivated Deactivated
1 Hz
Hardware output for the least significant address

Output signals for frequency output mode

Output signal
Continuous pulse current at the digital output PWM DQA

Meaning
A pulse for the assigned frequency is output at the digital output PWM DQA.

Value range Continuous pulse current

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

61

Technology functions 3.2 Pulse generators

3.2.1.3

Operating mode: PTO
The PTO (Pulse Train Output) mode can be used to output position information. This allows you to, for example, control stepper motor drives or simulate an incremental encoder. The frequency of the pulses represents the speed, while the number of pulses represents the distance. The direction can also be specified by using two signals per channel. You can use a PTO channel for setpoint output (drive) for an axis technology object.
PTO mode is divided into the following four signal types:
 PTO (pulse (A) and direction (B)): If you select the PTO signal type (pulse (A) and direction (B)), an output (A) controls the pulses and an output (B) controls the direction. B is 'High' (active) when pulses are generated in a negative direction. B is 'Low' (inactive) when pulses are generated in a positive direction.

 Positive direction of rotation  Negative direction of rotation
 PTO (Count Up (A) and Count Down (B)): When you select PTO when you select the PTO signal type (count up (A) and count down (B)), an output (A) outputs pulses for positive directions and another output (B) outputs pulses for negative directions.

 Positive direction of rotation  Negative direction of rotation

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

62

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

 PTO (A, B phase-shifted): When you select the PTO signal type (A, B phase-shifted), the two outputs pulses with the specified velocity, but phase-shifted by 90 degrees. This is a 1x combination in which the pulse shows the duration between two positive transitions of A. In this case the direction is determined based on the output which first changes from 0 to 1. With positive direction, A preceeds B. With negative direction B preceeds A.
The number of generated pulses is based on the number of 0-to-1 transitions from phase A. The phase ratio determines the direction of motion:

PTO (A, B phase-shifted)

Phase A precedes phase B (positive motion)

Phase A follows phase B (negative motion)

Number of pulses

Number of pulses

 PTO (A, B phase-shifted - quadruple): When you select the PTO signal type (A, B phaseshifted, quadruple), the two outputs transmit pulses with the specified velocity, but phaseshifted by 90 degrees. The quadruple signal type is a 4x configuration in which each edge transition corresponds to an increment. Therefore, a full period of the signal A contains four increments. In this way two outputs, each with 100 kHz signal frequency, can be used to output a control signal that supplies 400,000 increments per second. The direction is determined based on the output which first changes from 0 to 1. With positive direction, A preceeds B. With negative direction B preceeds A.

PTO (A, B phase-shifted - quadruple)

Phase A precedes phase B (positive motion)

Phase A follows phase B (negative motion)

Number of pulses
CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Number of pulses 63

Technology functions 3.2 Pulse generators

Parameters of PTO mode

Category
Diagnostics interrupt

Parameter No supply voltage L+

Data exchange Reference speed with the drive

Maximum speed

Meaning
With the parameter "No supply voltage L+" you activate the diagnostic interrupt of the channel in the case of no supply
voltage L+.

Value range Deactivated
Activated

With the parameter "Reference speed" you
define the reference value for the drive velocity. The drive velocity is defined as percentage value of the refer-
ence speed in the range from -200 % to
+200 %.

Floating-point number: 1.0 bis 20,000.0 (rpm)

The parameter "Maximum speed" is used to
define the required maximum speed for
your application.

The supported value range depends on:
· the signal type selected under "Operating mode"
· the value defined under "Increments per revolution"

· the value defined under "Reference speed"
The low limit of the value range is:

· for the signal type "PTO (A, B phase-shifted - quadruple)": 0.1 Hz * 60 s/min * 4) / Increments per revolution

· for the non-quadruple PTO signal types: (0.1 Hz * 60 s/min) / increments per revolution
The high limit of the value range is the minimum of the value:

· 2 * reference speed and of the value:

· for the signal type "PTO (A, B phase-shifted - quadruple)": (100 000 Hz * 60 s/min * 4) / Increments per revolution

· for the non-quadruple PTO signal types: (100 000 Hz * 60 s/min) / Incr ements per revolution

Default Deactivated 3,000.0 (rpm)
3,000.0 (rpm)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

64

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

Category

Parameter
Increments per revolution

Fine resolution Bits in incr. actual value (G1_XIST1)
Stop behavior Quick stop time

Hardware inputs / outputs

Reference switch input

Edge selection reference switch

Measuring input
"Drive ready" input
Pulse output A for "PTO (pulse (A) and direction (B))"
Direction output B for "PTO (pulse (A) and direction B))"

Meaning
The "Increments per revolution" is used to define the number of increments per revolution (also in microstep mode), which is required by the drive for a
revolution.
The parameter defines the number of bits for the coding of the fine resolution in the current incremental value of
G1_XIST1.
The parameter "Quick stop time" defines the time interval it should take for the drive to go
from the maximum speed to a standstill
(OFF3).
The parameter "Reference switch input"
defines the hardware input of the reference
switch.
The parameter "Edge selection reference switch" defines the edge type which is to be detected by the reference switch.
The parameter "Measuring input" defines the hardware input of the
measuring input.
The parameter ""Drive ready" input" defines the hardware input of the input "Drive ready".
The parameter "Pulse output A" defines the hardware output for
PTO signal A.
The parameter "Direction output B" defines the hardware output for
PTO signal B.

Value range 1 to 1,000,000
0
1 to 65 535 (ms)
[Input address of the reference switch DI]
Rising edge Falling edge
[Input address of the measuring input DI]
[Input addresses of the inputs "Drive ready" DIn]
[Output address DQ for PTO signal A (output frequency 100 kHz)]
[Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)] [Output address 2 of the DQ for PTO signal B (output frequen-
cy 100 Hz)]

Default 200
0
1,000 (ms)
--
Rising edge
--grayed out Read only access to the parameter Qn (output frequency 100 kHz)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

65

Technology functions 3.2 Pulse generators

Category

Parameter Clock generator forward (A) for "PTO (Count up (A) and Count down (B))"
Clock generator backward (B) for "PTO (Count up (A) and Count down (B))"
Phase A for "PTO (A, B phaseshifted)" and "PTO (A, B phase-shifted, quadruple)"
Phase B for "PTO (A, B phaseshifted)" and "PTO (A, B phase-shifted, quadruple)"
Drive enable output

Meaning
The "Clock generator forward (A)" parameter defines the hardware output for PTO signal
A.
The "Clock generator backward (B)" parame-
ter defines the hardware output for PTO
signal B.
The "Clock generator output (A)" parameter defines the hardware output for PTO signal
A.
The "Clock generator output (B)" parameter defines the hardware output for PTO signal
B.
The parameter "Drive enable output" defines the hardware output of the output "Drive ena-
ble output".

Value range [Output address DQ for PTO
signal A (output frequency 100 kHz)]
[Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)]
[Output address of the DQ for PTO signal A (output frequency
100 kHz)]
[Output address 1 of the DQ for PTO signal B (output frequency
100 kHz)]
[Output addresses of the enable output DQn (output frequency 100 Hz)

Default grayed out Read only access to the pa-
rameter
grayed out Read only access to the pa-
rameter
grayed out Read only access to the pa-
rameter
grayed out Read only access to the pa-
rameter
--

Reaction of the PTO channel to CPU STOP
The PTO channel reacts to a change to CPU STOP with the removal of the drive enable (to the extent that the drive enable output is configured) and with output of the velocity setpoint 0 at the hardware outputs configured for the signal tracks A and B. The CPU STOP reaction of the PTO channels cannot be configured.
Note Reaction to CPU STOP
Upon CPU STOP, the hardware outputs assigned for the PTO outputs A and B can switch to signal state 'High' (1) and/or remain there. A switching/remaining of the two hardware outputs to/in signal level 'Low' (0) is not guaranteed.

Controller
66

The pulse output channels for the four modes of the pulse generators (PTO) are controlled using Motion Control via the technology objects TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis. With these operating modes, the control and feedback interface of the channels is a partial implementation of the PROFIdrive interface "Telegram 3". For a detailed description of the use of motion control and its configuration, refer to the S7-1500 Motion Control function manual (http://support.automation.siemens.com/WW/view/en/109749262) and the STEP 7 online help.
CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

3.2.2

Functions

3.2.2.1

Function: High-speed output
The function "High-speed output (0.1 A)" enhances the signal clock of the digital outputs (DQ0 to DQ7). Less delay, fluctuation, jitter, and shorter rise and fall times, occur at the switching edges.
The function "High-speed output (0.1 A)" is suited for generating pulse signals in a more precise clock, but provides a lower maximum load current.
For the PWM and frequency output modes, select the high-speed output of the channel in STEP 7 (TIA Portal). You can also change the parameter assignment during runtime with the help of the program via the data record.
High-speed pulse output (high-speed output) is available for the following operating modes:
 PWM
 Frequency output
 PTO (the pulse outputs for the PTO mode are always "High-speed output (0.1 A)")

High-speed output

Pulse duration
Period duration Frequency

Minimum

High-speed output deactivated

High-speed output activated

20 µs with load > 0.1 A 1)

2 µs 1)

40 µs with load  2 mA 1)

100 s 2)

10 s

0.1 Hz

Maximum

High-speed output deactivated

High-speed output activated

10,000,000 s (10 s)

10 kHz 2)

100 kHz

1) A lower value is theoretically possible but, depending on the connected load, the output voltage can no longer be output as complete rectangular pulse
2) Load dependent

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

67

Technology functions 3.2 Pulse generators

3.2.2.2

Function: Direct control of the pulse output (DQA)

Direct control of the pulse output (DQA)
In the modes "Pulse width modulation PWM" and "Frequency output", you can set the pulse output (DQA) of a pulse generator directly via the control program. Select the function for the DQ direct control by deleting the output control bit of the PWM channel (TM_CTRL_DQ = 0) in the control interface.
The direct control of the pulse output (DQA) can be helpful when commissioning a control system for automation.
When you select the direct control of the pulse output (DQA) during a pulse output sequence, the sequence continues to run in the background so that the output sequence is continued as soon as the channel takes control again (by setting TM_CTRL_DQ = 1).
You assign the status of the pulse output (DQA) using the control bits SET_DQA.
When you set TM_CTRL_DQ = 1, you deselect the direct control of the pulse output (DQA) and the channel takes over the processing. If the output sequence is still running (STS_ENABLE still active), the PWM channel takes over the control of the output again. If TM_CTRL_DQ = 1 and STS_ENABLE is not active, the module's channel also takes over processing, but then outputs "0".
Note Output signal TM_CTRL_DQ of the PWM channel · If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA. · If TM_CTRL_DQ = 0, the user program takes over the control and the user can set the
PWM DQA directly using the control bits SET_DQA.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

68

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

3.2.3

Configuring the PWM and frequency output modes

3.2.3.1

Assignment of the control interface
The user program influences the behavior of the PWM channel through the control interface.

Control interface per channel
The following table shows the control interface assignment:

Table 3- 5 Assignment of the control interface

Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8
Byte 9
Byte 10
Byte 11

7

6

5

4

3

2

1

0

OUTPUT_VALUE

PWM: On-load factor * (Int)

In PWM mode, the on-load factor uses only the two least significant bytes (byte 2 and byte 3).

Frequency output: Frequency in Hz (Real)

SLOT

Reserved = 0

Reserved = 0

Reserved = 0

MODE_SL LD_SLOT

OT

Specifies the meaning of the value under SLOT

0000: No action

0001: Period duration (PWM)

0010 to 1111: Reserved

Reserved = 0

SET_DQA Reserved = 0

TM_CTRL_ SW_ENA

DQ

BLE

Reserved = 0

RES_ERR OR

Reserved = 0

* The terms "On-load factor", "Pulse duty factor" and "Duty factor" can be used synonymously

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

69

Technology functions 3.2 Pulse generators

Use case

1. Transfer the control for the output to the PWM channel.
2. Set SW_ENABLE, in order that the output can be started.
3. Set the required on-load factor using OUTPUT_VALUE.
4. If necessary, change the period duration (cyclic or once). If you do not change the value, the period duration from the hardware configuration will be used.
5. With TM CTRL_DQ and SET_DQ set the output from the user program permanently to 1 or 0.
6. Acknowledge any errors that occur using RES_ERROR.
Additional parameters for the output sequence are defined before the start of an output sequence.
The data record of the parameter assignment is changed in the device configuration in STEP 7 (TIA Portal) or through WRREC execution.

Control interface parameters
OUTPUT_VALUE
The interpretation of the value OUTPUT_VALUE depends on the set operating mode. OUTPUT_VALUE is always updated. When an invalid value is detected (outside the permissible range), the error memory bit ERR_OUT_VAL is set until a valid value is detected. During the error condition the invalid value is ignored and the PWM channel continues with the last valid OUTPUT_VALUE. Note that, in the frequency output mode, it is also possible that no last valid value is available. In this case the pulse output returns the value 0, i.e. there is no pulse output.
Please note that the on-load factor is not checked in PWM mode. If the on-load factor is greater than the format permits, the PWM channel uses a ratio of 100 %. 0 % in effect for values < 0.
SLOT, MODE_SLOT and LD_SLOT
Use these control interface fields if you occasionally change the period duration in PWM mode before the start of the output sequence or during operation. You can find a description of the interaction between SLOT, MODE_SLOT and LD_SLOT under Handling the SLOT parameter (control interface) (Page 71)
SW_ENABLE
If 0  1, activate the output sequence.
TM_CTRL_DQ
 If 1, the output is controlled by the PWM channel and generates the pulse sequences
 If 0, the output is controlled directly by the program using the SET_DQA assignments
SET_DQA
 If 1, set the output A to 1, if TM_CTRL_DQ is inactive
 If 0, set the output A to 0, if TM_CTRL_DQ is inactive
RES_ERROR
Resetting the error bit memory ERR_LD in the feedback interface

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

70

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

3.2.3.2

Handling the SLOT parameter (control interface)

SLOT and MODE_SLOT
SLOT has the following operating modes.
 Mode for individual update (MODE_SLOT = 0) Use this mode if you occasionally change the specific parameters (such as period duration) before the start of the output sequence or during operation.
­ The value in SLOT is the always applied when the value changes in LD_SLOT.
­ The acknowledgment bit STS_LD_SLOT in the feedback interface is switched.
­ The value of LD_SLOT defines the interpretation of SLOT (see the table below "Interpretation of the SLOT parameter value").
­ If the LD_SLOT value is invalid, the setting of the feedback bit ERR_LD indicates a parameter assignment error. The user has to reset the error using the control bit RES_ERROR and enable the SLOT parameter again for the next value.
­ Changes made in this mode can be read back by the channel in the parameter assignment data record.
­ The current changes are entered in the data record 128 during the reading back of the parameter assignment data with RDREC from the user program. These changes are lost during a warm restart of the CPU.
 Mode for cyclic updating (MODE_SLOT = 1) Use this operating mode if the program is to continuously control another parameter in addition to the main parameter to be controlled.
­ The value in SLOT is transferred with each module cycle.
­ No acknowledgment bit is available.
­ The value of LD_SLOT defines the interpretation of SLOT (see the table below "Interpretation of the SLOT parameter value").
­ If the value in SLOT is not valid, the error ERR_SLOT_VAL occurs. The error is automatically reset as soon as a valid value is loaded.
­ In this mode the value in the parameter assignment data record is not updated. If LD_SLOT is changed in this mode, the last value applied from LD_SLOT is valid.
­ The mode for permanent updating can be stopped by setting LD_SLOT to 0 and MODE_SLOT to 0. By stopping the mode for permanent updating the changes made at the parameters during the permanent updating are retained until the next changes via SLOT (cyclic or once) or until the next STOP-RUN transition.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

71

Technology functions 3.2 Pulse generators

Interpretation of the SLOT parameter value
The value written in the SLOT parameter is displayed as in the table below depending on the LD_SLOT value and the mode is interpreted.

LD_SLOT
0 1

Meaning of SLOT value
No action / idling Period duration

Valid modes for using the SLOT value
All operating modes
PWM

SLOT data type
UDInt Permissible value
range*: Minimum value: 10 µs,
100 µs or 10 000 µs (10 ms)
Maximum value: 10 000 000 µs (10 s)

* The permissible value range depends on the selected hardware output and sometimes on the high-speed mode (highspeed/standard).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

72

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators
Individual updating of the parameter 'Period duration'
The following representation illustrates the workflow of the individual updating of the parameter 'Period duration'. The described workflow principle can also be used on the channels of the high-speed counters.

 User writes the first parameter in SLOT and specifies the first parameter in LD_SLOT  Technology channel applies the first parameter and indicates the application by change in the
bit STS_LD_SLOT
 User writes the second parameter in SLOT and specifies the second parameter in LD_SLOT  Technology channel applies the second parameter and indicates the application by change in
the bit STS_LD_SLOT
 User writes 0 in LD_SLOT, (SLOT inactive)  Technology channels answers change in LD_SLOT with a change in STS_LD_SLOT
Figure 3-4 Individual updating
Note that the following requirements apply to the representation shown above:
 The value MODE_SLOT must be set to 0
 Errors or invalid values are shown in the feedback bit ERR_SLOT_VAL
 The error must be acknowledged
If MODE_SLOT 0 = 1, the following applies (for PWM mode only):
 The value in SLOT is continuously evaluated according to LD_SLOT
 STS_LD_SLOT does not change
 An error is automatically reset as soon as a valid value is set in SLOT

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

73

Technology functions 3.2 Pulse generators
Cyclic updating of the parameter 'Period duration'
The following representation illustrates the execution of the cyclic updating of the parameter 'Period duration'. The described workflow principle can also be used on the channels of the high-speed counters.

 · User sets SLOT to the required parameter
· User sets MODE_SLOT to 1
· User sets LD_SLOT to the required value (1 for period duration)
 User changes value in SLOT continuously and technology channel evaluates continuously  Value in SLOT exceeds permitted limit, technology channel shows this ERR_SLOT_VAL and
continues working with the last valid value
 Value in SLOT again in permitted range, technology channel resets ERR_SLOT_VAL inde-
pendently and continues working with the value in SLOT
 User resets LD_SLOT and MODE_SLOT, technology channel continues to work with last value
Figure 3-5 Cyclic updating

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

74

Manual, 12/2017, A5E40898741-AA

Technology functions 3.2 Pulse generators

3.2.3.3

Assignment of the feedback interface
The user program receives current values and status information from the pulse width modulation via the feedback interface.

Feedback interface per channel
The following table shows the feedback interface assignment:

Table 3- 6 Byte 0
Byte 1
Byte 2 Byte 3

Assignment of the feedback interface

7

6

5

4

3

2

ERR_SLOT _VAL
The valid in SLOT is invalid

ERR_OUT_ VAL
The value in
OUTPUT_V ALUE is invalid

Reserved = 0

Reserved = 0

ERR_PULS E

ERR_LD Error during loading via
control interface

Reserved = 0

STS_SW_E NABLE
SW_ENABL E detected or feedback
status SW_ENABL
E

STS_READ Y
Channel parameters
assigned and ready

Reserved = 0

STS_LD_S LOT Load
prompt detected and executed for Slot (tog-
gling)

Reserved = 0

Reserved Reserved Reserved

= 0

= 0

= 0

Reserved = 0

Reserved = 0

1
Reserved = 0

0
ERR_PW R
missing supply voltage L+

Reserved = 0

STS_DQA STS_ENA BLE

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

75

Technology functions 3.2 Pulse generators

Feedback parameters

Table 3- 7 Status feedback Feedback parameters
STS_READY STS_SW_ENABLE STS_LD_SLOT
STS_ENABLE
STS_DQA

Meaning

Value range

The channel is correctly configured, is operating and supplying valid data.

0: Not ready to run 1: Ready to run

Current status of the software enable

0: SW_ENABLE is not active

1: SW_ENABLE detected

Acknowledgment bit for each action of the SLOT in the SLOT mode for individual updating (for a description of the acknowledgment bit, refer to the section Handling the SLOT parameter (control interface) (Page 71)).

Each switching of this bit represents a successful LD_SLOT action.

The output sequence is active.

0: No output sequence running

(STS_ENABLE always depends on the status of 1: Output sequence running the software enable STS_SW_ENABLE ab)

State of the pulse output (DQA)

0: Pulse output is not active

1: Pulse output is active

Feedback parameters ERR_PWR ERR_LD ERR_OUT_VAL ERR_SLOT_VAL

Meaning No supply voltage L+
Error during loading of a parameter value in the operating mode for individual updating The value in OUTPUT_VALUE is invalid
The value in SLOT is invalid, where MODE_SLOT = 1 (permanent updating)

Value range 0: No error 1: Error 0: No error 1: Error 0: No error 1: Error 0: No error 1: Error

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

76

Manual, 12/2017, A5E40898741-AA

Wiring

4

4.1

Supply voltage

24 V DC supply voltage (X80)
The connecting plug for the supply voltage is plugged in when the CPU ships from the factory.
The following table shows the terminal assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring-loaded NC contact (one spring-loaded NC contact per terminal)
Bridged internally:
 and   and 
Figure 4-1 Connection for supply voltage
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

77

Wiring 4.2 PROFINET interfaces

4.2

PROFINET interfaces

PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
 When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).
 When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 4-2 PROFINET ports
Note You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

Reference

For more information on "Wiring the CPU" and "Accessories/spare parts", refer to the S71500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

78

Manual, 12/2017, A5E40898741-AA

Wiring 4.2 PROFINET interfaces

Assignment of the MAC addresses
The CPU 1512C-1 PN has a PROFINET interface with two ports. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. The CPU 1512C-1 PN therefore has three MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is continuous. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1512C-1 PN.
The table below shows how the MAC addresses are assigned.

Table 4- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)
Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

79

Wiring 4.3 Terminal and block diagrams

4.3

Terminal and block diagrams

4.3.1

Block diagram of the CPU part

Block diagram
The following figure shows the block diagram of the CPU part.


      
X50
X80 24 V DC

CPU with control and operating mode buttons Display Electronics Interface to on-board I/O Interfaces to the backplane bus Backplane bus interface Internal supply voltage 2-port switch SIMATIC memory card Infeed of supply voltage

Figure 4-3 Block diagram of the CPU part

PN X1 P1 R PROFINET interface X1 port 1

PN X1 P2 R L+ M SF R/S ER MT X1 P1, X1 P2

PROFINET interface X1 Port 2 24 V DC supply voltage Ground STOP ACTIVE LED (yellow) RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) Link TX/RX LED

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

80

Manual, 12/2017, A5E40898741-AA

4.3.2

Wiring 4.3 Terminal and block diagrams
Terminal and block diagram of the analog on-board I/O
This section contains the block diagram of the analog on-board I/O (X10) and various wiring options. For information on wiring the front connector, establishing the cable shield, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note You can use and combine the different wiring options for all channels. Note, however, that unneeded terminals of an analog input channel must not be connected.

Definition

Un+/UnMn+/Mn-
In+/InIc n+/Ic nQVn QIn MANA CHx

Voltage input channel n (voltage only) Measuring input channel n (only resistance-type transmitters or thermal resistors (RTD)) Current input channel n (current only) Current output for RTD, channel n Voltage output channel Current output channel Reference potential of the analog circuit Channel or display of the channel status

Infeed element

The infeed element is inserted on the front connector and serves to shield the analog onboard I/O.

Note
The analog on-board I/O does not require power to be supplied by the infeed element. The infeed element is, however, necessary for shielding.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

81

Wiring 4.3 Terminal and block diagrams
Wiring: Voltage measurement
The following figure shows the terminal assignment for voltage measurement at the channels available for this measurement type (channels 0 to 3).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  Voltage measurement
Figure 4-4 Block diagram and terminal assignment for voltage measurement

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

82

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 4-wire measuring transducer for current measurement
The following figure shows the terminal assignment for current measurement with 4-wire measuring transducer at the channels available for this measurement type (channels 0 to 3).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  Connector 4-wire measuring transducer
Figure 4-5 Block diagram and terminal assignment for current measurement with 4-wire measuring transducer

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

83

Wiring 4.3 Terminal and block diagrams
Wiring: 2-wire measuring transducer for current measurement
Alternatively to connecting a 4-wire transducer, you can also connect 2-wire transducers to channels 0 to 3. An external 24 V power supply is required to connect a 2-wire transducer to the analog on-board I/O of the compact CPU. Feed this voltage short-circuit proof to the 2wire transducer. Use a fuse to protect the power supply unit.
NOTICE Defective transducers Note that the analog input of the transducer is not protected against destruction in the event of a defect (short circuit). Take the necessary precautions against such cases.
The figure below shows an example of the connection of a 2-wire transducer to channel 0 (CH0) of the analog on-board I/O.

 Sensor (e.g. pressure gauge)  2-wire transducer  Fuse  Equipotential bonding cable (optional)
Figure 4-6 2-wire transducer at channel 0
Use the measurement type "Current (4-wire transducer)" and the measuring range 4 to 20 mA for the parameter assignment of the 2 wire transducer in STEP 7 (TIA Portal).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

84

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 4-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 4-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  4-wire connection
Figure 4-7 Block diagram and terminal assignment for 4-wire connection

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

85

Wiring 4.3 Terminal and block diagrams
Wiring: 3-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 3-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).
Note 3-wire connection Note that line resistances are not compensated with a 3-wire connection.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  3-wire connection
Figure 4-8 Block diagram and terminal assignment for 3-wire connection

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

86

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Wiring: 2-wire connection of resistance-type sensors or thermal resistors (RTD)
The following figure shows the terminal assignment for 2-wire connection of resistance-type sensors or thermal resistors at the channel available for this (channel 4).
Note 2-wire connection Note that line resistances are not compensated with a 2-wire connection.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Equipotential bonding cable (optional)  2-wire connection
Figure 4-9 Block diagram and terminal assignment for 2-wire connection

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

87

Wiring 4.3 Terminal and block diagrams
Wiring: Voltage output
The figure below shows the terminal assignment for the wiring of the voltage outputs with:  2-wire connection, no compensation for line resistances.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  2-wire connection CH0 and CH1
Figure 4-10 Block diagram and terminal assignment for voltage output
Note
MANA on terminals 19 and 20 is equivalent.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

88

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Wiring: Current output
The following figure shows an example of the terminal assignment for wiring current outputs.

 Analog-to-digital converter (ADC)  LED interface  Infeed element (for shielding only)  Digital-to-analog converter (DAC)  Current output CH0 and CH1
Figure 4-11 Block diagram and terminal assignment for current output
Note MANA on terminals 19 and 20 is equivalent.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

89

Wiring 4.3 Terminal and block diagrams

4.3.3

Terminal and block diagram of the digital on-board I/O
This section contains the block diagram of the digital on-board I/O (X11 and X12) with standard inputs and outputs and the encoder supply, as well as the rules for the correct wiring of the ground connections.
For information on wiring the front connector, establishing the cable shield, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Infeed element

The infeed element is inserted on the front connector and serves to shield the digital onboard I/O.

Note
The digital on-board I/O is supplied via the front connector terminals and therefore does not require power to be supplied by the infeed element. The infeed element is, however, necessary for shielding.

Output driver

The digital onboard I/O uses the following output drivers:  X11, DQ0 to DQ7: Push-pull stage and freewheeling diode  X11, DQ8 to DQ15: High-side switch and freewheeling diode  X12 DQ0 to DQ7: High-side switch without freewheeling diode  X12 DQ8 to DQ15: High-side switch without freewheeling diode

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

90

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Block diagram and terminal assignment X11
The figure below shows you how to connect the digital on-board I/O X11 and the assignment of the channels to the addresses (input byte a and b, output byte c and d).

 
xL+ xM CHx RUN ERROR PWR

Encoder supply for the digital inputs CPU interface Connection for 24 V DC supply voltage Connection for ground Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 4-12 Block diagram and terminal assignment of the digital on-board I/O X11

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

91

Wiring 4.3 Terminal and block diagrams
Block diagram and terminal assignment X12
The figure below shows you how to connect the digital on-board I/O X12 and the assignment of the channels to the addresses (input byte a and b, output byte c and d).

 
xL+ xM CHx RUN ERROR PWR

Encoder supply for the digital inputs CPU interface Connection for 24 V DC supply voltage Connection for ground Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 4-13 Block diagram and terminal assignment of the digital on-board I/O X12

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

92

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Supply voltage using the digital on-board I/O X11 as an example
The inputs and outputs of the digital on-board I/O are divided into two load groups, which are supplied with 24 V DC. The digital inputs DI0 to DI15 form a load group and are supplied via the connections 1L+ (terminal 19) and 1M (terminal 20). The digital outputs DQ0 to DQ7 are supplied via the connection 2L+ (terminal 29). The digital outputs DQ8 to DQ15 are supplied via the connection 3L+ (terminal 39). Please note that the digital outputs DQ0 to DQ15 only have a common ground. In each case, they are led through to the two terminals 30 and 40 (2M/3M) and bridged in the module. The digital outputs form a common load group.
NOTICE Polarity reversal of the supply voltage An internal protective circuit protects the digital on-board I/O against destruction if the polarity of the supply voltage is reversed. In the case of polarity reversal of the supply voltage, however, unexpected states can occur at the digital outputs.
Response of the digital outputs to a wire break at ground connection of the outputs
Due to the characteristics of the output driver used in the module, approx. 25 mA supply current flows out through the outputs via a parasitic diode in the event of a ground wire break. This behavior can lead to non-set outputs also carrying high levels and emitting up to 25 mA output current. Depending on the type of load, 25 mA can be sufficient to control the load with high level. To prevent unintended switching of the digital outputs in the event of a ground wire break, follow these steps:
Wire to ground twice Connect ground to terminal 30 and to terminal 40. 1. Route the first ground connection from terminal 30 to the central ground connection of the plant. 2. Route the second ground connection from terminal 40 to the central ground connection of the plant. If terminal 30 or 40 are interrupted by a ground wire break, the outputs will continue to be supplied via the second, intact ground connection.
WARNING Wire break at ground connection Never bridge from terminal 30 to terminal 40 in the front connector and never lead only one wire to the central ground connection. Connect terminal 30 and terminal 40 to a common ground point.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

93

Wiring 4.3 Terminal and block diagrams
As a supplement to the block diagram and terminal assignment, the following figure shows the correct wiring of the outputs in order to prevent switching of the outputs in the event of a ground wire break.

Figure 4-14 Correct wiring using the digital on-board I/O X11 as an example
The ground is supplied with a first cable from the central terminal block to terminal 30 of the module and additionally with a second cable also from the central terminal block to terminal 40 of the module.
At the digital outputs, each of the ground connections of the loads is connected with a separate cable for each load to the central terminal block.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

94

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow with correct wiring.

Figure 4-15 Current flow with correct wiring using the digital on-board I/O X11 as an example
With correct wiring, the supply current flows from the power supply 2L+ via terminal 29 to the module. In the module, the current flows via the output driver and exits the module via terminal 40.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

95

Wiring 4.3 Terminal and block diagrams
The figure below shows the reaction to interruption of the first ground cable.

Figure 4-16 Interruption of the first ground cable using the digital on-board I/O X11 as an example
If a wire break occurs on the first ground cable from the central terminal block to terminal 30, the module can continue to operate without restrictions, as it is still connected to the ground via the second cable from the central terminal block to terminal 40.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

96

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the reaction to interruption of the second ground cable.

Figure 4-17 Interruption of the second ground cable using the digital on-board I/O X11 as an example
If a wire break occurs on the second ground cable from the central block terminal to terminal 30, the module can continue to operate without restrictions, as it is still connected to the ground via the first cable from the central terminal block to terminal 40.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

97

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow upon interruption of both ground cables.

Figure 4-18 Current flow upon interruption of both ground cables using the digital on-board I/O X11 as an example
If a wire break occurs on the first and on the second ground cable from the central terminal block to the terminals 30 and 40 of the module, a malfunction occurs on the module. Both ground connections of the module are interrupted.
The supply current flows from the power supply 2L+ via terminal 29 to the module. In the module, the current flows via the output driver into the parasitic diode and exits the module via the output terminal, e.g. as shown in the figure via terminal 27. The supply current therefore flows via the connected load. The internal supply current is typically 25 mA.
WARNING
Interruption of both ground cables
If the ground terminals 30 and 40 are interrupted, the following incorrect response can occur:
The activated outputs, which are switched to high, start to switch back and forth between high and low. If the load connected at the output is sufficiently small, the output is continuously activated.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

98

Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams

Faulty wiring

The following figure shows faulty wiring, which has a bridge on the front connector.

Figure 4-19 Faulty wiring using the digital on-board I/O X11 as an example: Bridge
Terminals 30 and 40 are connected in the front connector and only routed with one cable to the central terminal block. If this cable breaks, terminals 30 and 40 are no longer connected to the ground. The module's supply current flows out via the output terminal.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0)

Manual, 12/2017, A5E40898741-AA

99

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow when the ground connections of the loads and the ground connection of terminal 30 are routed with a common cable to the central terminal block.



Ground connections of other plant parts that can also carry large currents.

Figure 4-20 Faulty wiring using the digital on-board I/O X11 as an example: Common cable

If a break occurs in the common cable, the current of the outputs flows via terminal 30 to the module and via terminal 40 to the central terminal block. The current flows via the module.

WARNING
Current flow with faulty wiring
If a break occurs in the common cable, the current can be very high, depending on the plant, and lead to the destruction of the module.

100

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
The figure below shows the current flow with correct wiring when a potential difference exits between the grounding points.



Grounding point functional earth 1 (FE 1)



Grounding point functional earth 2 (FE 2)

Figure 4-21 Potential difference using the digital on-board I/O X11 as an example

Equipotential bonding occurs via terminals 30 and 40. When a potential difference exists between the grounding points FE1 and FE2, the compensating current flows via terminals 30 and 40.

WARNING
Current flow with faulty wiring
In the event of a potential difference, the current can be very high, depending on the potential conditions, and lead to the destruction of the module.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

101

Wiring 4.3 Terminal and block diagrams
Response of the digital outputs to a wire break at ground connection of the outputs (X12)
Due to the design of the module, in contrast to the digital onboard I/O X12, no supply current is discharged via the outputs if ground is interrupted in the digital onboard I/O X12, in contrast to the digital onboard I/O X11.

Figure 4-22 Internal circuitry of the digital onboard I/O X12

102

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Input filter for digital inputs
To suppress disruptions, you can configure an input delay for the digital inputs. You can specify the following values for the input delay:  None  0.05 ms  0.1 ms  0.4 ms  1.6 ms  3.2 ms (default setting)  12.8 ms  20 ms
Note Shielding If you use standard digital inputs with "None" set as the input delay, you must use shielded cables. Shielding and the infeed element are recommended for use of standard digital inputs starting from an input delay of 0.05 ms but are not absolutely necessary.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

103

Wiring 4.3 Terminal and block diagrams

4.3.4

Addresses of the high-speed counters
You connect the encoder signals, the digital input and output signals and the encoder supplies to the two 40-pin front connectors of the digital on-board I/O. For information on wiring the front connectors, establishing the cable shields, etc., refer to the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Encoder signals
The 24 V encoder signals are designated with letters A, B and N. You can connect the following encoder types:
 Incremental encoder with signal N:
Signals A, B and N are connected using the correspondingly marked connections. Signals A and B are the two incremental signals, phase-shifted by 90°. N is the zero mark signal that supplies a pulse per revolution.
 Incremental encoder without signal N:
Signals A and B are connected using the correspondingly marked connections. Signals A and B are the two incremental signals, phase-shifted by 90°.
 Pulse encoder without direction signal:
The count signal is connected to the A connection.
 Pulse encoder with direction signal:
The count signal is connected to the A connection. The direction signal is connected to the B connection.
 Pulse encoder with up/down count signal:
The up count signal is connected to the A connection. The down count signal is connected to the B connection.
You can connect the following encoders or sensors to the A, B and N inputs:
 Switching to P potential: The encoder or sensor switches the A, B and N inputs to 24 V DC.
Note External load resistance
Note that, depending on the characteristics of the signal source, effective load and height of the signal frequency, you may possibly require an external load resistance to limit the fall time of the signal from high level to low level.
The specifications/technical data of the signal source (e.g. sensor) are decisive for the configuration of such a load resistance.
 Push-pull: The encoder or sensor switches the A, B and N inputs alternately to 24 V DC and to ground M.

104

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams
Digital inputs HSC DI0 and HSC DI1
The digital inputs are logically assigned to the high-speed counters (HSC). For information on the possible assignment of the on-board I/O inputs to the high-speed counters, refer to table Interconnection overview of the inputs (Page 109). Up to two digital inputs are available for each high-speed counter (HSC DI0 and HSC DI1). You can use the digital inputs for the gate control (Gate), synchronization (Sync) and Capture functions. Alternatively, you can use one or more digital inputs as standard digital inputs without the functions mentioned and read the signal state of the respective digital input using the feedback interface.
Digital inputs that you do not use for high-speed counting are available for use as standard DIs.
Input addresses of the high-speed counters
You set the digital input addresses used by the high-speed counters (HSC) and the assignment of A/B/N, DI0, DI1 and DQ1 signals in STEP 7 (TIA Portal). You can enable and configure each HSC when you configure the compact CPU.
The compact CPU assigns the input addresses for the A/B/N signals automatically according to the configuration.
You specify the input addresses for DI0 and DI1 according to the table Interconnection overview of the inputs (Page 109). The interconnection produces a direct connection of the HSC to an input of the on-board I/O. The high-speed counter then uses this input as HSC DI0 or HSC DI1 ([DI] symbol). The [DI] symbols in the table identify the input addresses for HSC DI0 and HSC DI1 that are offered for selection in the hardware configuration.
Assignment of HSC addresses of inputs
You can find an overview of the options for interconnecting the inputs of the front connectors X11 and X12 in the section Interconnection overview of the inputs (Page 109).
Note HSC compatibility mode
The displayed interconnection options in the section Interconnection overview of the inputs (Page 109) assume that the "Front connector assignment like CPU 1511C" option is disabled. If the option is enabled, the input signals are interconnected the same way as for the CPU 1511C-1 PN. In this case, the interconnection options of the CPU 1511C-1 PN manual apply.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

105

Wiring 4.3 Terminal and block diagrams

Digital outputs HSC-DQ0 and HSC-DQ1
Two digital outputs are available for each high-speed counter. Digital output HSC-DQ0 is a logical output that cannot be interconnected with a digital output of the on-board I/O. Digital output HSC-DQ0 can only be used via the user program. HSC-DQ1 is a physical output that can be interconnected with a digital output of the on-board I/O.
The digital outputs are 24 V sourcing output switches relative to M and can be loaded with a rated load current of 0.1 A. The outputs used as standard outputs have a rated load current of 0.5 A. The digital outputs are protected against overload and short-circuit.
Note
It is possible to directly connect relays and contactors without external wiring. For information on the maximum possible operating frequencies and the inductance values of the inductive loads at the digital outputs, refer to the Technical specifications section.
The section Interconnection overview of outputs (Page 111) provides an overview of which digital outputs you can interconnect to which high-speed counters. Digital outputs to which no high-speed counter is interconnected can be used as standard outputs. The maximum output delay of each digital output used as standard output is 500 µs.

Shielding

Note
When you use digital inputs/outputs with technology functions, i.e. interconnect high-speed counters with the inputs/outputs, you must use shielded cables and the infeed element for shielding.

Reference

For more information on configuring the inputs of the high-speed counters, refer to the S7-1500, ET 200MP, ET 200SP Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820) function manual and the STEP 7 online help.

106

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams

4.3.5

Addresses of the pulse generators in the Pulse Width Modulation (PWM) and Frequency Output modes

Configuring the outputs as pulse generators
If you configure the memory of the outputs of the CPU as pulse generators (for PWM or PTO), the corresponding addresses of the outputs are removed from the memory. You cannot use the addresses of the outputs for other purposes in your user program. When your user program writes a value to an output that you are using as a pulse generator, the CPU does not write this value to the physical output.

Assignment of the PWM addresses of the outputs
The section Interconnection overview of outputs (Page 111) provides an overview of which digital outputs you can interconnect to which PWM channels.
Note The digital inputs and outputs assigned to PWM and PTO cannot be forced.
You assign the digital inputs and outputs to the pulse duration modulation (PWM) and the pulse train output (PTO) during the device configuration. If you assign digital inputs and outputs to these functions, the values of the addresses of the assigned digital inputs and outputs cannot be changed by the function for forcing in the watch table. Instead, you can force the output bit TM_CTRL_DQ to 0 and switch the output on or off with the bit SET_DQA (relevant for the PWM and Frequency Output modes).
For more information on forcing inputs and outputs, refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

107

Wiring 4.3 Terminal and block diagrams

4.3.6

Addresses of pulse generators in the PTO mode
You connect the encoder signals, the digital input and output signals and the encoder supplies to the two 40-pin front connectors of the digital on-board I/O. For information on wiring the front connectors and establishing the cable shield, refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

Encoder signals
In addition to supporting its outputs, each PTO channel also supports the three following optional inputs:  Reference Switch (RS)  Measuring Input (MI)  Drive Ready (DR)

Input addresses of the pulse generators (PTO)
You make the settings of the digital input addresses used by the pulse generators (PTO) in the hardware configuration of STEP 7 (TIA Portal). When you configure the compact CPU you can individually activate and configure the four PTO channels.

Assignment of PTO addresses of inputs
A direct connection from the PTO to an input of the on-board I/O is established through the interconnection. You can find an overview of the options for interconnecting the inputs (DI0 to DI15) to the available PTO channels (PTO1 to PTO4) in the section Interconnection overview of the inputs (Page 109).

Assignment of the PTO addresses of the outputs
The section Interconnection overview of outputs (Page 111) provides an overview of which digital outputs you can interconnect to which PTO channels.

108

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams

4.3.7

Interconnection overview of the inputs

Combined interconnection of the technology channels
In order that you can correctly divide the available inputs between the possible technology channels HSC and PTO, the following table provides you with an overview of the possible interconnections of the front connectors X11 and X12. This overview is a combination of interconnection options of technology channels for HSC and PTO.

Fro Termi-

nt

nal

con

nect

or

X11 1

2

3

4

5

6

7

8

11

12

13

14

15

16

17

18

Channel
DI0 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DI8 DI9 DI10 DI11 DI12 DI13 DI14 DI15

PTO1
[DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [MI] [DR] [RS] [DR] [DR]

PTO2

PTO

PTO3

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR]

[DR] [MI] [DR]

[DR] [RS] [DR]

[DR]

[DR]

PTO4
[DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR]

High-speed counter (HSC)

HSC1

HSC2

HSC3

A

[B]

[N]

A

[B]

[N]

A

[B]

[DI]

[DI]

[N]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[DI]

[...] = Use is optional
[DR] = Drive Ready; [MI] = Measuring Input; [RS] = Reference Switch
[DI] stands for [HSC DI0/HSC DI1] = DI: Is used for the HSC functions: Gate, Sync and Capture
The assignment to [B] or [N] takes precedence over the assignment to HSC DI0 or HSC DI1. This means that input addresses that are assigned to count signal [B] or [N] based on the selected signal type cannot be used for other signals such as HSC DI0 or HSC DI1.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

109

Wiring 4.3 Terminal and block diagrams

Fro Termi-

nt

nal

con

nect

or

X12 1

2

3

4

5

6

7

8

11

12

13

14

15

16

17

18

Channel
DI0 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DI8 DI9 DI10 DI11 DI12 DI13 DI14 DI15

PTO1
[DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR]

PTO2

PTO

PTO3

PTO4

High-speed counter (HSC)

HSC4

HSC5

HSC6

[DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR] [DR]

[DR]

[DR]

A

[DR]

[DR]

[B]

[DR]

[DR]

[N]

[DR]

[DR]

A

[DR]

[DR]

[B]

[DR]

[DR]

[N]

[DR]

[DR]

A

[DR]

[DR]

[B]

[DR]

[DR]

[DI]

[DI]

[N]

[DI]

[DR]

[DR]

[DI]

[DI]

[DI]

[DR]

[DR]

[DI]

[DI]

[DI]

[DR]

[DR]

[DI]

[DI]

[DI]

[DR] [MI] [DR]

[DI]

[DI]

[DI]

[DR] [RS] [DR]

[DI]

[DI]

[DI]

[DR]

[DR] [MI]

[DI]

[DI]

[DI]

[DR]

[DR] [RS]

[DI]

[DI]

[DI]

[...] = Use is optional
[DR] = Drive Ready; [MI] = Measuring Input; [RS] = Reference Switch
[DI] stands for [HSC DI0/HSC DI1] = DI: Is used for the HSC functions: Gate, Sync and Capture
The assignment to [B] or [N] takes precedence over the assignment to HSC DI0 or HSC DI1. This means that input addresses that are assigned to count signal [B] or [N] based on the selected signal type cannot be used for other signals such as HSC DI0 or HSC DI1.

110

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams

4.3.8

Interconnection overview of outputs

Combined interconnection of the technology channels
The following table provides you with an overview of the possible interconnections of the front connectors X11 and X12 to allow you to correctly divide the available inputs between the possible technology channels HSC, PWM and PTO. This overview is a combination of interconnection options of technology channels for HSC, PWM and PTO.

Front connect-
or

Hardware output
Ter Cha Output module min nnel al

Standard DQ
Configurable as standard DQ for channel

PWM
Configurable as PWM output
for channel

Configurable as PTO output
A for channel 1)

X11 1 DQ High-speed

0

Standard

2 DQ 1

High-speed Standard

3 DQ 2
4 DQ 3

High-speed Standard
High-speed Standard

5 DQ 4
6 DQ 5

High-speed Standard
High-speed Standard

7 DQ 6
8 DQ 7

High-speed Standard
High-speed Standard

11 DQ 8
12 DQ 9
13 DQ 10
14 DQ 11
15 DQ 12
16 DQ 13
17 DQ 14
18 DQ 15

Standard

DQ0 DQ1
DQ2 DQ3
DQ4 DQ5
DQ6 DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15

PWM1 PWM1
PWM2 PWM2
PWM3 PWM3
PWM4 PWM4
PWM1
PWM2
PWM3
PWM4

PTO1 PTO2 PTO3 PTO4

PTO
Configurable as PTO output
B for channel 2)

Configurable as "Drive enable
output" for channel

PTO1

[PTO 2/3/4]
[PTO 1/2/3/4]

PTO2

[PTO 1/3/4]
[PTO 1/2/3/4]

PTO3

[PTO 1/2/4]
[PTO 1/2/3/4]

PTO4 PTO1* PTO2* PTO3* PTO4*

[PTO 1/2/3]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4] [PTO 1/2/3/4] [PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4] [PTO 1/2/3/4] [PTO 1/2/3/4]

HSC Can be used as HSC-DQ1 for channel
[HSC1]
HSC2 [HSC3] [HSC4] HSC6 [HSC5]
[HSC1]
HSC2 [HSC3] [HSC4] HSC6 [HSC5]

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

111

Wiring 4.3 Terminal and block diagrams

X12 1 DQ 0
2 DQ 1
3 DQ 2
4 DQ 3
5 DQ 4
6 DQ 5
7 DQ 6
8 DQ 7
11 DQ 8
12 DQ 9
13 DQ 10
14 DQ 11
15 DQ 12
16 DQ 13
17 DQ 14
18 DQ 15

Standard

DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7 DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15

* Only supports for PTO direction signal (signal type "pulse A and direction B") 1) "PTOx - Output A" stands for the signal types Pulse Output A or Pulse 2) "PTOx - Output B" stands for the Pulse output B or Direction signal types

[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]
[PTO 1/2/3/4]

112

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Wiring 4.3 Terminal and block diagrams

Technical characteristics of the outputs
The following table shows an overview of the technical characteristics of the individual outputs.

Accuracy of the pulse duration
Accuracy of the frequency Minimum pulse duration

Frequency range (period duration)
10 to <= 100 kHz (100 to > = 10 µs)
100 Hz to <10 kHz (10 ms to > 100 µs)
10 to < 100 Hz (0.1 s to > 10 ms)
1 to <10 Hz (1 to > 0.1 s)
0.1 to < 1 Hz (10 to >1 s)
---

DQ0 to DQ7

High-speed output (0.1 A) activated

High-Speed output (0.1 A) deactivated

max. 100 kHz

max. 10 kHz

max. 0.1 A

max. 0.5 A

Switching to P potential / Switching to P potential1) sink output

±100 ppm ±2 µs

---

±100 ppm ±10 µs with load > 0.1 A
±100 ppm ±20 µs with load  2mA

±150 ppm ±2 µs
±600 ppm ±2 µs ± 100 ppm2) 2 µs

±150 ppm ±10 µs with load > 0.1 A
±150 ppm ±20 µs with load  2mA
±600 ppm ±10 µs with load > 0.1 A
±600 ppm ± 20 µs with load  2mA ± 100 ppm2)
20 µs with load > 0.1 A 40 µs with load  2 mA 20 µs with load < 240 1)

DQ8 to DQ15 Standard output
max. 100 Hz max. 0.5 A Switching to P potential1)
---
±100 ppm ±100 µs with load > 0.1 A
±100 ppm ±200 µs with load  2mA
±150 ppm ±100 µs with load > 0.1 A
±150 ppm ±200 µs with load  2mA
±600 ppm ±100 µs with load > 0.1 A
±600 ppm ±200 µs with load  2mA ± 100 ppm2)3)
400 µs with load > 0.1 A 500 µs with load  2 mA
400 µs with load < 240 1)

1) With sourcing outputs, it must be taken into consideration that falling edges can be delayed as compared to rising edges depending on the load. The on-load factor can therefore be falsified. Consider using a high-speed output if the load at the output is greater than 240 .
2) The frequency has a basic accuracy of ±100 ppm with a resolution of 0.3638 mHz.
3) Standard outputs are affected by jitter during generation of frequencies. The set period duration is not adhered to in every period, but it is adhered to on average over several periods.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

113

Parameters/address space

5

5.1

Address space of the analog on-board I/O

Address space of the analog input and output channels
The addresses are divided into five analog input channels and two analog output channels. STEP 7 (TIA Portal) assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7 (TIA Portal), i.e. freely assign the start address. The addresses of the channels are based on the start address.
"IB x" stands, for example, for the start address input byte x. "QB x" stands, for example, for the start address output byte x.

Figure 5-1 Address space seven-channel analog on-board I/O with value status

114

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.1 Address space of the analog on-board I/O
Value status (quality information, QI)
As of firmware version 2.0, the analog and digital on-board I/O support the value status as diagnostics option. You activate the use of the value status in the hardware configuration of STEP 7 (TIA Portal). Value status is deactivated by default. When you activate the value status, the input area of the analog on-board I/O contains two additional bytes, which provide the QI bits to the five analog input channels and two analog output channels. You access the QI bits through the user program.
Value status of input channels Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid. Value status = 0 ("Bad") indicates that the read value is not valid. Possible cause for value status = 0:  a channel has been deactivated  a measured value was not updated after a parameter change  a measured value is outside the low/high measuring range (overflow/underflow)  Wire break has occurred (only for the "Voltage" measurement type in the measuring
range "1 to 5 V" and for the "Current" measurement type in the measuring range "4 to 20 mA")
Value status of output channels The value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal. The value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect. Possible cause for value status = 0:  a channel has been deactivated  Outputs are inactive (for example, CPU in STOP)  An output value is outside the lower/upper measuring range (overflow/underflow)  Wire break has occurred (only for the "Current" output type)  Short-circuit has occurred (only for the "Voltage" output type)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

115

Parameters/address space 5.2 Address space of the digital on-board I/O

5.2

Address space of the digital on-board I/O

Address space of digital input and digital output channels
The addresses are divided into 2 x 16 digital input channels and 2 x 16 digital output channels. STEP 7 (TIA Portal) assigns the addresses automatically. You can change the addresses in the hardware configuration of STEP 7 (TIA Portal), i.e. freely assign the start address. The addresses of the channels are based on the start address.
The letters "a" to "d" are lasered on the on-board I/O. "IB a", for example, stands for start address input byte a. "QB x", for example, stands for start address output byte x.

Figure 5-2 Address space of the submodule X11 of the 2 x 32-channel digital on-board I/O (16 digital inputs/16 digital outputs) with value status

116

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.2 Address space of the digital on-board I/O

Figure 5-3 Address space of the submodule X12 of the 2 x 32-channel digital on-board I/O (16 digital inputs/16 digital outputs) with value status

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

117

Parameters/address space 5.2 Address space of the digital on-board I/O
Value status (quality information, QI)
As of firmware version 2.0, the analog and digital on-board I/O support the value status as diagnostics option. You activate the use of the value status in the hardware configuration of STEP 7 (TIA Portal). Value status is deactivated by default. You can activate/deactivate the value status of the digital on-board I/O for X11 and X12 independently of each other. When you activate the value status, the input area of the digital on-board I/O (X11/X12) contains four additional bytes, which provide the QI bits to the 16 digital input channels and 16 digital output channels. You access the QI bits through the user program.
Value status of input channels Value status = 1 ("Good") indicates that the value of the assigned input at the terminal is valid. Value status = 0 ("Bad") indicates that no/or too little supply voltage L+ is applied at the terminal and that the read value is therefore not valid.
Value status of output channels The value status = 1 ("Good") indicates that the process value specified by the user program is correctly output at the terminal. The value status = 0 ("Bad") indicates that the process value output at the hardware output is incorrect or the channel is used for technology functions. Possible cause for value status = 0:  The supply voltage L+ is missing at the terminals or is not sufficient  Outputs are inactive (for example, CPU in STOP)  Technology functions (HSC, PWM or PTO) use the channel
Note Behavior of the value status at the output channels for technology functions The output channels return the value status 0 ("Bad") when a technology channel (HSC, PWM or PTO) is used. It does not matter in this context whether the output value is incorrect or not.

118

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.3 Address space of the pulse generators

Address space of the high-speed counters

Table 5- 1 Size of the input and output addresses of the high-speed counters

Size per high-speed counter (6x)

Inputs 16 bytes

Outputs 12 bytes

You can find a description of the control interface in the section Assignment of the control interface of the high-speed counters (Page 47). You can find a description of the feedback interface in the section Assignment of the feedback interface of the high-speed counters (Page 50).

Table 5- 2 Size of the input and output addresses in operating mode "Position input for Motion Control"

Size per high-speed counter (6x)

Inputs 16 bytes

Outputs 4 bytes

5.3

Address space of the pulse generators

Address space of the pulse generators in the PWM, frequency output and PTO modes

Operating mode
PWM (4x) Frequency output PTO Deactivated

Feedback interface (inputs) 4 bytes 4 bytes 18 bytes 4 bytes *

Control interface (outputs) 12 bytes 12 bytes 10 bytes 12 bytes *

* In "Deactivated" mode, the control interface is not evaluated and the feedback interface is set to 0 value

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

119

Parameters/address space 5.4 Measurement types and measuring ranges of the analog on-board I/O

5.4

Measurement types and measuring ranges of the analog on-

board I/O

Introduction

The analog on-board I/O is set to voltage measurement type and measuring range ±10 V by default for the inputs on channels 0 to 3. By default, channel 4 is set to resistance measuring type and measuring range 600 . If you want to use another measurement type or measuring range, change the parameter settings of the analog on-board I/O with STEP 7 (TIA Portal).
Disable unused inputs to prevent disturbances that cause incorrect behavior (e.g. triggering of a hardware interrupt).

Measurement types and measuring ranges
The following table shows the measurement types, the measuring range and the possible channels.

Table 5- 3 Measurement types and measuring range

Measurement type Voltage
Current 4WMT (4-wire measuring transducer) Resistance
Thermal resistor RTD Deactivated

Measuring range 0 to 10 V 1 to 5 V ±5 V ±10 V 0 to 20 mA 4 to 20 mA ±20 mA 150  300  600  Pt 100 Standard/Climate Ni 100 Standard/Climate -

Channel 0 to 3
0 to 3 4 4 -

The tables of the input ranges, overflow, underrange, etc. can be found in the appendix .

120

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.5 Output type and output ranges of the analog on-board I/O

5.5

Output type and output ranges of the analog on-board I/O

Introduction

The analog on-board I/O is set to voltage output type and output range ±10 V as default for the outputs. If you want to use another output range or output type, you need to change the parameter settings of the analog on-board I/O in STEP 7 (TIA Portal).

Output types and output ranges
The following table shows the output type and the corresponding output ranges.

Table 5- 4 Output type and output ranges Output type Voltage
Current
Deactivated

Output range 1 to 5 V 0 to 10 V ±10 V 0 to 20 mA 4 to 20 mA ±20 mA -

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

121

Parameters/address space 5.6 Parameters of the analog on-board I/O

5.6

Parameters of the analog on-board I/O

Parameters of the analog on-board I/O
You specify the properties of the analog on-board I/O during parameter assignment with STEP 7 (TIA Portal). The tables below list the parameters that can be set for inputs and outputs, respectively.
When parameters are assigned in the user program, they are transferred to the analog onboard I/O via data records with the WRREC instruction, see section Parameter assignment and structure of the parameter data records of the analog on-board I/O (Page 166).

Configurable parameters and default settings for inputs

Table 5- 5 Configurable "Diagnostics" parameters

Diagnostics · Overflow

Parameters 1)

· Underflow

· Wire break 2)

· Current limit for wire break diagnostics

Value range
Yes/No Yes/No Yes/No 1.185 mA or 3.6 mA

Default
No No No 1.185 mA

Reconfiguration in RUN
Yes Yes Yes Yes

1) All parameters can be set channel-selective
2) Only for the "Voltage" measurement type in the measuring range 1 to 5 V and for the "Current" measurement type in the measuring range 4 to 20 mA

122

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.6 Parameters of the analog on-board I/O

Table 5- 6 Configurable "Measuring" parameters

Measuring

Parameters 1)

· Measurement type

· Measuring range

· Temperature coefficient

· Temperature unit · Interference frequency suppression · Smoothing

Value range

Default

Reconfiguration in RUN

See section Measurement types and measuring ranges of the analog on-board I/O (Page 120)
Pt: 0.003851 Pt: 0.003916 Pt: 0.003902 Pt: 0.003920 Ni: 0.006180 Ni: 0.006720 · Kelvin (K) 2) · Fahrenheit (°F) · Celsius (°C) 400 Hz 60 Hz 50 Hz 10 Hz None/weak/medium/strong

Voltage

Yes

(channels 0 to 3)

Resistance (channel 4)

±10 V

Yes

(channels 0 to 3)

600  (channel 4)

0.003851

Yes

°C 50 Hz None

Yes Yes 3) Yes

1) All parameters can be set channel-selective
2) Kelvin (K) is only possible for the "Standard range" measuring range and not for the "Climatic range" measuring range
3) The interference frequency suppression must have the same value for all active input channels. This value can only be changed through reconfiguration in RUN with single channel parameter assignment (data records 0 to 4) if all other input channels are disabled.

Table 5- 7 Configurable "Hardware interrupt" parameters

Parameters 1) Hardware interrupts · Hardware interrupt low limit 1 · Hardware interrupt high limit 1 · Hardware interrupt low limit 2 · Hardware interrupt high limit 2

Value range
Yes/No Yes/No Yes/No Yes/No

Default
No No No No

Reconfiguration in RUN
Yes Yes Yes Yes

1) All parameters can be set channel-selective
You can find an overview of the limits for the hardware interrupts in the section Structure of a data record for input channels of the analog on-board I/O (Page 166).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

123

Parameters/address space 5.6 Parameters of the analog on-board I/O

Configurable parameters and default settings for outputs

Table 5- 8 Configurable "Diagnostics" parameters

Diagnostics

Parameters 1)

· Wire break 2)

· Short-circuit to ground 3)

· Overflow

· Underflow

Value range
Yes/No Yes/No Yes/No Yes/No

1) All parameters can be set channel-selective 2) Only for the "Current" output type 3) Only for the "Voltage" output type

Default
No No No No

Reconfiguration in RUN
Yes Yes Yes Yes

Table 5- 9 Configurable output parameters

Parameters 1) Output parameters · Output type · Output range · Reaction to CPU STOP

Value range

Default

See section Output type and output ranges of the analog on-board I/O (Page 121)
· Turn off
· Keep last value
· Output substitute value

Voltage ±10 V Turn off

· Substitute value

Must be within the permitted 0 voltage/current output range. See "Valid substitute value for the output range" table in the section Structure of a data record for output channels of the analog on-board I/O (Page 172)

1) All parameters can be set channel-selective

Reconfiguration in RUN Yes Yes Yes
Yes

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. Short-circuit detection is not possible for low output values. The output voltages must therefore be under -0.1 V or over +0.1 V.

Wire break detection
The diagnostics for wire break can be configured for the current output type. Wire break detection is not possible for low output values; the output currents must therefore be below 0.2 mA or above +0.2 mA.

124

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameters/address space 5.7 Parameters of the digital on-board I/O

5.7

Parameters of the digital on-board I/O

Parameters of the digital on-board I/O in standard mode
You specify the properties of the digital on-board I/O during the parameter assignment with STEP 7 (TIA Portal). The tables below list the parameters that can be set for inputs and outputs, respectively.
When parameters are assigned in the user program, they are transferred to the digital onboard I/O via data records with the WRREC instruction, see section Parameter assignment and structure of the parameter data records of the digital on-board I/O (Page 175).
The use of a digital input by a technology channel
When a digital input is in use by a technology channel (HSC, PTO or PWM) the corresponding digital input channel remains fully usable without any restriction.
Use of a digital output by a technology channel
When a digital output is in use by a technology channel (HSC, PTO or PWM) the following restrictions apply to the use of the corresponding digital output channel:
 Output values for the digital output channel are not effective. The output values are specified by the technology channel.
 The CPU STOP behavior configured for the digital output channel is not effective. The reaction of the output to CPU Stop is specified by the technology channel.
 With activated value status (Quality Information) for the DI16/DQ16 submodule, the QI-bit for the digital output channel shows the value 0 (= Status "Bad").
 The current state of the digital output is not returned to the process image output. In the PTO operating mode, you can only observe the switching operations of the assigned digital outputs directly at the output. In the PWM operating mode and with high-speed counters (HSC), you can observe the current state additionally via the feedback interface. Note, however, that high frequencies may no longer be observed under certain circumstances due to an excessively low sampling rate.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

125

Parameters/address space 5.7 Parameters of the digital on-board I/O

Configurable parameters and default settings for inputs

Table 5- 10 Configurable parameters for inputs

Parameters 1) Diagnostics · No
supply voltage L+ Input delay
Hardware interrupt · Rising edge · Falling edge

Value range
Yes/No
None, 0.05 ms, 0.1 ms, 0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms
Yes/No Yes/No

1) All parameters can be set channel-selective

Default No 3.2 ms
No No

Configurable parameters and default settings for outputs

Table 5- 11 Configurable parameters for outputs

Parameters 1) Diagnostics
· Missing supply voltage L+
Reaction to CPU STOP
When the digital output is controlled by a technology channel (HSC, PTO or PWM), this parameter is not effective. In this case the technology channel specifies the reaction of the digital output to CPU STOP.

Value range
Yes/No
· Turn off · Keep last value · Output substitute value 1

1) All parameters can be set channel-selective

Default No Turn off

Reconfiguration in RUN Yes Yes
Yes Yes
Reconfiguration in RUN Yes Yes

126

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms

6.1

Status and error displays

6.1.1

Status and error displays of the CPU part

LED display

The figure below shows the LED displays of the CPU part.

6

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  STOP ACTIVE-LED (yellow LED)
Figure 6-1 LED display of the CPU 1512C-1 PN (without front panel)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

127

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU has three LEDs for displaying the current operating mode and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 6- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green

LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED lit yellow LED lit yellow LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green

LED flashes red LED off LED off
LED flashes red LED off
LED off

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. ramp-up after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

128

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the CPU ports.

Table 6- 2 Meaning of the LED

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

Meaning of the STOP ACTIVE LED
The following table shows the meaning of the STOP ACTIVE LED for the CPU 1512C-1 PN.

Table 6- 3 Meaning of the LEDs

STOP ACTIVE LED LED lit yellow
LED off

Meaning The CPU is switched to "STOP" mode using the STOP button.
· As long as the STOP ACTIVE LED is lit up, switching the CPU to RUN mode is only possible using the RUN button.
· The CPU can then no longer be set to RUN mode via the display operation or via online functions. The state of the buttons is retained at power-off. If the CPU does not start up automatically after a power-on, you have to keep the STOP button pressed during startup until the STOP ACTIVE LED is activated.
· If an automatic start-up is to be reliably prevented after a power-up, the STOP button has to be kept pressed during the start-up of the CPU until the STOP ACTIVE LED is activated.
· The CPU is set to "STOP" mode using the display or programming device and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

129

Interrupts/diagnostics alarms 6.1 Status and error displays

6.1.2

Status and error displays of the analog on-board I/O

LED displays

The figure below shows the LED displays (status and error displays) of the analog onboard I/O.

Figure 6-2 LED displays

130

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostic alarms can be found in the section Interrupts and diagnostics of the analog on-board I/O (Page 135).

Table 6- 4 RUN/ERROR status and error displays

LEDs RUN ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Flashes Flashes

Meaning
No voltage or voltage too low
Analog on-board I/O starts up and flashes until valid parameter assignment. Parameters have been set for the analog onboard I/O. Indicates module errors (at least one error is present on one channel, e.g. wire break). Hardware defective.

Remedy
· Turn on the CPU and/or the system power supply modules.
---
Evaluate the diagnostics and eliminate the error (e.g. wire break). Replace the compact CPU.

CHx LED

Table 6- 5 CHx status display

CHx LED Off On On

Meaning Channel disabled.

Remedy ---

Channel parameters set and OK.

---

Channel parameters set, channel error present. Check the wiring.

Diagnostics alarm: e.g. wire break

Disable diagnostics.

Note
Maintenance LED
During ramp-up, the firmware of the CPU checks the consistency of the calibration data of the analog on-board I/O stored by the SIEMENS Production. The yellow MAINT LED lights up if the firmware detects an inconsistency (e.g. an invalid value) or missing calibration data. The MAINT-LED is located next the red ERROR-LED on the analog on-board I/O.
Note that the MAINT LED on the analog on-board I/O is only intended for troubleshooting by SIEMENS. In normal condition, the MAINT-LED should not light up. However, if the LED is lit up, please contact SIEMENS "mySupport" at Internet (https://support.industry.siemens.com/My/ww/en/).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

131

Interrupts/diagnostics alarms 6.1 Status and error displays

6.1.3

Status and error displays of the digital on-board I/O

LED displays

The figure below shows an example of the LED displays (status and error displays) of the first module of the digital on-board I/O. Remedial measures for diagnostics alarms can be found in section Interrupts and diagnostics of the digital on-board I/O (Page 138).

Figure 6-3 LED displays

132

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays.

RUN/ERROR LED

Table 6- 6 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Meaning No voltage or voltage too low
Digital on-board I/O starts up. Digital on-board I/O is ready for operation. A diagnostics interrupt is pending. Supply voltage missing.

Remedy
· Turn on the CPU. · Check whether too many modules are in-
serted.
---
Check supply voltage L+.

PWRx LED

Table 6- 7 PWRx status display

PWRx LED Off On

Meaning

Remedy

Supply voltage L+ to module too low or missing Check supply voltage L+.

Supply voltage L+ is present and OK.

---

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

133

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

CHx LED

Table 6- 8 CHx status display

CHx LED Off On

Meaning 0 = Status of the input/output signal.
1 = Status of the input/output signal.

Remedy ---
---

Note
For the status display, the digital inputs only take into account the filter time of the corresponding DI and not the filter time of the A/B/N signals of the fast counters (HSC).
For example, a static signal may be displayed when the DI has a configured input delay of 3.2 ms, even though a 100 kHz counter on these inputs still detects edge transitions.

6.2

Interrupts and diagnostics

6.2.1

Interrupts and diagnostics of the CPU part
For information on the topic of "Interrupts", refer to the STEP 7 (TIA Portal) online help.
For information on "Diagnostics" and "System alarms", refer to the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

134

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

6.2.2

Interrupts and diagnostics of the analog on-board I/O

Diagnostics interrupt
The analog on-board I/O generates a diagnostics interrupt at the following events:

Table 6- 9 Diagnostics interrupt for inputs and outputs

Event
Overflow Underflow Wire break Short-circuit to ground

Inputs x x x 1) ---

Diagnostics interrupt

1) Possible for the voltage measuring range (1 to 5 V), current measuring range (4 to 20 mA) 2) Possible for current output type 3) Possible for voltage output type

Outputs x x x 2) x 3)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

135

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics
Hardware interrupt for inputs
The compact CPU can generate a hardware interrupt for the following events:  Below low limit 1  Above high limit 1  Below low limit 2  Above high limit 2 You can find detailed information on the event in the hardware interrupt organization block with the "RALARM" (read additional interrupt information) instruction and in the STEP 7 (TIA Portal) online help. The start information of the organization block includes information on which channel of the analog on-board I/O triggered the hardware interrupt. The figure below shows the assignment to the bits of double word 8 in local data.

Figure 6-4 Start information of the organization block
Behavior when limits 1 and 2 are reached at the same time
If the two high limits 1 and 2 are reached at the same time, the analog on-board I/O always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the compact CPU triggers the hardware interrupt for high limit 2.
The analog on-board I/O behaves accordingly when the low limits are reached simultaneously. If the two low limits 1 and 2 are reached at the same time, the analog onboard I/O always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the analog on-board I/O triggers the hardware interrupt for low limit 2.

136

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

Structure of the additional interrupt information

Table 6- 10 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

It is followed by the event that triggered the hardware interrupt.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Comment Additional hardware interrupt information of the analog on-board I/O
Number of the event-triggering channel (n = number of analog on-board I/O channels -1)
Below low limit 1 Above high limit 1 Below low limit 2 Above high limit 2

Bytes 2
1
1

Diagnostics alarms
A diagnostics alarm is output for each diagnostics event and the ERROR LED flashes on the analog on-board I/O. The diagnostics alarms can, for example, be read out in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 6- 11 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Short-circuit to ground 1H

Meaning

Remedy

Resistance of encoder circuit too high

Use a different encoder type or modify the wiring, for example, using cables with larger cross-section

Interruption of the cable between the Connect the cable analog on-board I/O and sensor

Channel not connected (open)

· Disable diagnostics

· Connect the channel

Measuring range exceeded
The output value set by the user program exceeds the valid rated range/overrange
Value below measuring range
The output value set by the user program is below the valid rated range/underrange
Overload at output
Short-circuit of output QV to MANA

Check the measuring range Correct the output value
Check the measuring range Correct the output value
Eliminate overload Eliminate the short-circuit

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

137

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

6.2.3

Interrupts and diagnostics of the digital on-board I/O

Diagnostics interrupt
A diagnostics alarm is output for each diagnostics event and the ERROR LED flashes on the digital on-board I/O. You can read out the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 6- 12 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Load voltage missing
Hardware interrupt lost

Error code 11H 16H

Meaning
No supply voltage L+
The digital on-board I/O cannot trigger an interrupt because the previous interrupt was not acknowledged; possibly a configuration error

Corrective measures Feed supply voltage L+
· Change the interrupt processing in the CPU and reconfigure the digital onboard I/O.

Diagnostic interrupts when using high-speed counters

Table 6- 13 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm
Illegal A/B signal ratio

Error code 500H

Meaning

Corrective measures

· Time sequence of the A and B signals · Correct the process wiring

of the incremental encoder do not meet certain requirements.
· Possible causes:

· Check the encoder/sensor · Check the parameter assignment.

­ Signal frequency too high ­ Encoder is defective ­ Process wiring is incorrect

138

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics
Hardware interrupt
The compact CPU can generate a hardware interrupt for the following events:  Rising edge  Falling edge You will find detailed information on the event in the hardware interrupt organization block with the "RALRM" (read additional interrupt information) instruction and in the STEP 7 online help. The start information of the organization block includes information on which channel triggered the hardware interrupt. The figure below shows the assignment to the bits of double word 8 in local data.

Figure 6-5 Start information of the organization block

Structure of the additional interrupt information

Table 6- 14 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#0F

The error event that triggered the hardware interrupt follows.

Event

B#16#01

B#16#02

Comment

Bytes

Additional interrupt information of the hardware 2 interrupts of the digital on-board I/O

Number of the event-triggering channel (chan- 1 nel 0 to channel 15)

Rising edge

1

Falling edge

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

139

Interrupts/diagnostics alarms 6.2 Interrupts and diagnostics

Hardware interrupts when using the high-speed counters

Table 6- 15 Hardware interrupts and their meaning

Hardware interrupt Opening of the internal gate (gate start) Closing of the internal gate (gate stop) Overflow (high counting limit violated)

Event type number 1
2
3

Underflow (low counting limit violated)

4

Comparison event for DQ0 occurred

5

Comparison event for DQ1 occurred

6

Zero crossing

7

New Capture value present1)

8

Synchronization of the counter by an exter- 9 nal signal

Direction reversal2)

10

Meaning
When the internal gate is opened, the technology function triggers a hardware interrupt in the CPU.
When the internal gate is closed, the technology functions trigger a hardware interrupt in the CPU.
When the count value exceeds the high counting limit, the technology function triggers a hardware interrupt in the CPU.
When the count value falls below the low counting limit, the technology function triggers a hardware interrupt in the CPU.
When a comparison event for DQ0 occurs due to the selected comparison condition, the technology function triggers a hardware interrupt in the CPU. When the change of the count value for an incremental or pulse encoder was not caused by a count pulse, the technology function does not trigger a hardware interrupt.
When a comparison event for DQ1 occurs due to the selected comparison condition, the technology function triggers a hardware interrupt in the CPU.
When the change of the count value for an incremental or pulse encoder was not caused by a count pulse, the technology function does not trigger a hardware interrupt.
At a zero crossing of the counter or position value, the technology function triggers a hardware interrupt in the CPU.
When the current counter or position value is saved as a Capture value, the technology function triggers a hardware interrupt in the CPU.
At the synchronization of the counter by an N signal or edge at DI, the technology function triggers a hardware interrupt in the CPU.
When the count value or position value changes direction, the technology function triggers a hardware interrupt in the CPU.

1) Can only be set in counting mode
2) Feedback bit STS_DIR is preset to "0". When the first count value or position value change occurs in the reverse direction directly after switching on the digital on-board I/O, a hardware interrupt is not triggered.

140

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Technical specifications of the CPU 1512C-1 PN

Article number General information
Product type designation HW functional status Firmware version Engineering with · STEP 7 TIA Portal configurable/integrated
as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode buttons
Supply voltage Type of supply voltage permissible range, lower limit (DC)
permissible range, upper limit (DC) Reverse polarity protection Mains buffering · Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Digital inputs · from load voltage L+ (without load), max.
Digital outputs · from load voltage L+, max.

6ES7512-1CK01-0AB0
CPU 1512C-1 PN FS01 V2.5
V15
Yes
3.45 cm
8 2
24 V DC 19.2 V; 20.4 V DC, for supplying the digital inputs/outputs 28.8 V Yes
5 ms; Refers to the power supply on the CPU section 1/s
0.8 A 1 A 1.9 A; Rated value 0.34 A²·s
20 mA; per group
30 mA; Per group, without load

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

7
141

Technical specifications

Article number Output voltage
Rated value (DC) Encoder supply
Number of outputs
24 V encoder supply · 24 V · Short-circuit protection · Output current, max.
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required
Work memory · integrated (for program) · integrated (for data)
Load memory · Plug-in (SIMATIC Memory Card), max.
Backup · maintenance-free
CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ.
CPU-blocks Number of elements (total)
DB · Number range
· Size, max.
FB · Number range · Size, max.

6ES7512-1CK01-0AB0
24 V
2; One common 24 V encoder supply per 16 digital inputs
Yes; L+ (-0.8 V) Yes 1 A
10 W 9 W
15.2 W
1 Yes
250 kbyte 1 Mbyte
32 Gbyte
Yes
48 ns 58 ns 77 ns 307 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 1 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 250 kbyte

142

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number FC
· Number range · Size, max. OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm
OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs Nesting depth · per priority class Counters, timers and their retentivity S7 counter · Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable

6ES7512-1CK01-0AB0 0 ... 65 535 250 kbyte
250 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

143

Technical specifications

Article number Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max. · Number of clock memories
Data blocks · Retentivity adjustable · Retentivity preset
Local data · per priority class, max.
Address area Number of IO modules
I/O address area · Inputs · Outputs
per integrated IO subsystem ­ Inputs (volume) ­ Outputs (volume)
per CM/CP ­ Inputs (volume) ­ Outputs (volume)
Subprocess images · Number of subprocess images, max.
Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM

6ES7512-1CK01-0AB0
128 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 88 KB 1 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte
Yes No
64 kbyte; max. 16 KB per block
2 048; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
32; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
6; A maximum of 6 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
1 6; A maximum of 6 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total

144

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Rack
· Modules per rack, max. · Number of lines, max. PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · in AS, master · in AS, slave · on Ethernet via NTP Digital inputs integrated channels (DI) Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop · Capture · Synchronization Input voltage · Type of input voltage · Rated value (DC) · for signal "0" · for signal "1" Input current · for signal "1", typ.

6ES7512-1CK01-0AB0
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes Yes Yes
32 Yes P-reading Yes
Yes Yes Yes
DC 24 V -3 to +5V +11 to +30V
2.5 mA

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

145

Technical specifications

Article number Input delay (for rated value of input voltage) for standard inputs
­ parameterizable
­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for counter/technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max. Digital outputs
Type of digital output integrated channels (DO) Current-sourcing Short-circuit protection · Response threshold, typ.
Controlling a digital input Accuracy of pulse duration
minimum pulse duration Digital output functions, parameterizable
· Switching tripped by comparison values · PWM output
­ Number, max. ­ Cycle duration, parameterizable ­ ON period, min. ­ ON period, max. ­ Resolution of the duty cycle · Frequency output · Pulse train

6ES7512-1CK01-0AB0
Yes; none / 0.05 / 0.1 / 0.4 / 1.6 / 3.2 / 12.8 / 20 ms 4 µs; for parameterization "none" 20 ms 4 µs; for parameterization "none" 20 ms
Yes; Same as for standard inputs
Yes; Same as for standard inputs
1 000 m; 600 m for technological functions; depending on input frequency, encoder and cable quality; max. 50 m at 100 kHz 600 m; For technological functions: No
Transistor 32 Yes; Push-pull output Yes; electronic/thermal 1.6 A with standard output, 0.5 A with high-speed output; see manual for details Yes Up to ±100 ppm ±2 s at high-speed output; see manual for details 2 µs; With High Speed output
Yes; As output signal of a high-speed counter Yes 4 Yes 0 % 100 % 0.0036 %; For S7 analog format, min. 40 ns Yes Yes; also for pulse/direction interface

146

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Switching capacity of the outputs
· with resistive load, max.
· on lamp load, max.
Load resistance range · lower limit
· upper limit Output voltage
· Type of output voltage · for signal "0", max.
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, min. · for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max. · "1" to "0", max. for technological functions
­ "0" to "1", max.
­ "1" to "0", max.
Parallel switching of two outputs · for logic links · for uprating · for redundant control of a load
Switching frequency · with resistive load, max.
· with inductive load, max.
· on lamp load, max.

6ES7512-1CK01-0AB0
0.5 A; 0.1 A with high-speed output, i.e. when using a high-speed output; see manual for details 5 W; 1 W with high-speed output, i.e. when using a high-speed output; see manual for details
48 ; 240 ohms with high-speed output, i.e. when using a high-speed output; see manual for details 12 k
DC 1 V; With high-speed output, i.e. when using a high-speed output; see manual for details 23.2 V; L+ (-0.8 V)
0.5 A; 0.1 A with high-speed output, i.e. when using a high-speed output, observe derating; see manual for details 2 mA 0.6 A; 0.12 A with high-speed output, i.e. when using a high-speed output, observe derating; see manual for details 0.5 mA
200 µs 500 µs; Load-dependent
5 µs; Depending on the output used, see additional description in manual 5 µs; Depending on the output used, see additional description in manual
Yes; For technological functions: No No Yes; For technological functions: No
100 kHz; For high-speed output, 100 Hz for standard output 0.5 Hz; Acc. to IEC 60947-5-1, DC-13; observe derating curve 10 Hz

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

147

Technical specifications

Article number Total current of the outputs
· Current per channel, max. · Current per group, max. · Current per power supply, max.
for technological functions ­ Current per channel, max.
Cable length · shielded, max.
· unshielded, max. Analog inputs
Number of analog inputs · For current measurement · For voltage measurement · For resistance/resistance thermometer
measurement permissible input voltage for voltage input (destruction limit), max. permissible input current for current input (destruction limit), max. Cycle time (all channels), min.
Technical unit for temperature measurement adjustable Input ranges (rated values), voltages · 0 to +10 V · Input resistance (0 to 10 V) · 1 V to 5 V · Input resistance (1 V to 5 V) · -10 V to +10 V · Input resistance (-10 V to +10 V) · -5 V to +5 V · Input resistance (-5 V to +5 V)

6ES7512-1CK01-0AB0
0.5 A; see additional description in the manual 8 A; see additional description in the manual 4 A; 2 power supplies for each group, current per power supply max. 4 A, see additional description in manual
0.5 A; see additional description in the manual
1 000 m; 600 m for technological functions; depending on output frequency, load, and cable quality; max. 50 m at 100 kHz 600 m; For technological functions: No
5; 4x for U/I, 1x for R/RTD 4; max. 4; max. 1
28.8 V
40 mA
1 ms; Dependent on the parameterized interference frequency suppression; for details, see conversion procedure in manual Yes; °C/°F/K
Yes; Physical measuring range: ± 10 V 100 k Yes; Physical measuring range: ± 10 V 100 k Yes 100 k Yes; Physical measuring range: ± 10 V 100 k

148

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Input ranges (rated values), currents
· 0 to 20 mA

6ES7512-1CK01-0AB0 Yes; Physical measuring range: ± 20 mA

· Input resistance (0 to 20 mA) · -20 mA to +20 mA

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes

· Input resistance (-20 mA to +20 mA) · 4 mA to 20 mA

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes; Physical measuring range: ± 20 mA

· Input resistance (4 mA to 20 mA)
Input ranges (rated values), resistance thermometer
· Ni 100

50 ; Plus approx. 55 ohm for overvoltage protection by PTC
Yes; Standard/climate

· Input resistance (Ni 100)

10 M

· Pt 100

Yes; Standard/climate

· Input resistance (Pt 100)

10 M

Input ranges (rated values), resistors · 0 to 150 ohms

Yes; Physical measuring range: 0 ... 600 ohms

· Input resistance (0 to 150 ohms)

10 M

· 0 to 300 ohms

Yes; Physical measuring range: 0 ... 600 ohms

· Input resistance (0 to 300 ohms)

10 M

· 0 to 600 ohms

Yes

· Input resistance (0 to 600 ohms)

10 M

Cable length · shielded, max.

800 m; for U/I, 200 m for R/RTD

Analog outputs integrated channels (AO) Voltage output, short-circuit protection Cycle time (all channels), min.
Output ranges, voltage · 0 to 10 V

2 Yes 1 ms; Dependent on the parameterized interference frequency suppression; for details, see conversion procedure in manual
Yes

· 1 V to 5 V

Yes

· -10 V to +10 V

Yes

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

149

Technical specifications

Article number Output ranges, current
· 0 to 20 mA
· -20 mA to +20 mA
· 4 mA to 20 mA Load impedance (in rated range of output)
· with voltage outputs, min.
· with voltage outputs, capacitive load, max.
· with current outputs, max.
· with current outputs, inductive load, max. Cable length
· shielded, max. Analog value generation for the inputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.
· Integration time, parameterizable
· Interference voltage suppression for interference frequency f1 in Hz
Smoothing of measured values · parameterizable
· Step: None
· Step: low
· Step: Medium
· Step: High Analog value generation for the outputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.
Settling time · for resistive load
· for capacitive load
· for inductive load

6ES7512-1CK01-0AB0 Yes Yes Yes
1 k 100 nF 500  1 mH
200 m
16 bit Yes; 2.5 / 16.67 / 20 / 100 ms, acts on all channels 400 / 60 / 50 / 10
Yes Yes Yes Yes Yes
16 bit
1.5 ms 2.5 ms 2.5 ms

150

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Encoder Connection of signal encoders
· for voltage measurement

6ES7512-1CK01-0AB0 Yes

· for current measurement as 4-wire trans- Yes ducer

· for resistance measurement with two-wire Yes connection

· for resistance measurement with three-wire Yes connection

· for resistance measurement with four-wire Yes connection

Connectable encoders

· 2-wire sensor

Yes

­ permissible quiescent current (2-wire sensor), max.

1.5 mA

Encoder signals, incremental encoder (asymmetrical)
· Input voltage

24 V

· Input frequency, max.

100 kHz

· Counting frequency, max.

400 kHz; with quadruple evaluation

· Signal filter, parameterizable

Yes

· Incremental encoder with A/B tracks, 90° Yes phase offset

· Incremental encoder with A/B tracks, 90° Yes phase offset and zero track

· Pulse encoder

Yes

· Pulse encoder with direction

Yes

· Pulse encoder with one impulse signal per Yes count direction

Errors/accuracies

Linearity error (relative to input range), (+/-) 0.1 %

Temperature error (relative to input range), (+/- 0.005 %/K )

Crosstalk between the inputs, max.

-60 dB

Repeat accuracy in steady state at 25 °C (rela- 0.05 % tive to input range), (+/-)

Output ripple (relative to output range, bandwidth 0 to 50 kHz), (+/-)

0.02 %

Linearity error (relative to output range), (+/-) 0.15 %

Temperature error (relative to output range), (+/-)

0.005 %/K

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

151

Technical specifications

Article number

6ES7512-1CK01-0AB0

Crosstalk between the outputs, max.

-80 dB

Repeat accuracy in steady state at 25 °C (rela- 0.05 % tive to output range), (+/-)

Operational error limit in overall temperature range

· Voltage, relative to input range, (+/-)

0.3 %

· Current, relative to input range, (+/-)

0.3 %

· Resistance, relative to input range, (+/-)

0.3 %

· Resistance thermometer, relative to input range, (+/-)

Pt100 Standard: ±2 K, Pt100 Climate: ±1 K, Ni100 Standard: ±1.2 K, Ni100 Climate: ±1 K

· Voltage, relative to output range, (+/-)

0.3 %

· Current, relative to output range, (+/-)

0.3 %

Basic error limit (operational limit at 25 °C) · Voltage, relative to input range, (+/-)

0.2 %

· Current, relative to input range, (+/-)

0.2 %

· Resistance, relative to input range, (+/-)

0.2 %

· Resistance thermometer, relative to input range, (+/-)

Pt100 Standard: ±1 K, Pt100 Climate: ±0.5 K, Ni100 Standard: ±0.6 K, Ni100 Climate: ±0.5 K

· Voltage, relative to output range, (+/-)

0.2 %

· Current, relative to output range, (+/-)

0.2 %

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency
· Series mode interference (peak value of interference < rated value of input range), min.

30 dB

· Common mode voltage, max.

10 V

· Common mode interference, min.

60 dB; at 400 Hz: 50 dB

Interfaces

Number of PROFINET interfaces

1

1. Interface

Interface types

· Number of ports

2

· integrated switch

Yes

· RJ 45 (Ethernet)

Yes; X1

152

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Functionality
· IP protocol

6ES7512-1CK01-0AB0 Yes; IPv4

· PROFINET IO Controller

Yes

· PROFINET IO Device

Yes

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

· Media redundancy
PROFINET IO Controller Services
­ PG/OP communication

Yes; MRP Automanager according to IEC 624392 Edition 2.0
Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 512 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

153

Technical specifications

Article number Update time for IRT
­ for send cycle of 250 µs
­ for send cycle of 500 µs
­ for send cycle of 1 ms

6ES7512-1CK01-0AB0
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 500 s to 8 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 625 µs of the isochronous OB is decisive 1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

Interface types

RJ 45 (Ethernet)

· 100 Mbps

Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

154

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

6ES7512-1CK01-0AB0
128; via integrated interfaces of the CPU and connected CPs / CMs 10

· Number of connections via integrated inter- 88 faces

· Number of S7 routing paths

16

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 512 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
SIMATIC communication · S7 communication, as server

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
Yes

· S7 communication, as client

Yes

· User data per job, max.

See online help (S7 communication, user data size)

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

155

Technical specifications

Article number Open IE communication
· TCP/IP ­ Data length, max. ­ several passive connections per port, supported
· ISO-on-TCP (RFC1006) ­ Data length, max.
· UDP ­ Data length, max. ­ UDP multicast
· DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance

6ES7512-1CK01-0AB0
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 625 µs
Yes

156

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number S7 message functions
Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.
Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
Interrupts/diagnostics/status information Alarms
· Diagnostic alarm · Hardware interrupt

6ES7512-1CK01-0AB0
32 Yes 5 000
300 100 80
Yes; Parallel online access possible for up to 5 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 1 000 500
4; Up to 512 KB of data per trace are possible
Yes Yes

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

157

Technical specifications

Article number Diagnostic messages
· Monitoring the supply voltage · Wire-break
· Short-circuit
· A/B transition error at incremental encoder

6ES7512-1CK01-0AB0
Yes
Yes; for analog inputs/outputs, see description in manual Yes; for analog outputs, see description in manual Yes

Diagnostics indication LED · RUN/STOP LED · ERROR LED · MAINT LED · STOP ACTIVE LED · Monitoring of the supply voltage (PWRLED) · Channel status display · for channel diagnostics · Connection display LINK TX/RX

Yes Yes Yes Yes Yes
Yes Yes; For analog inputs/outputs Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

800

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis
­ Number of positioning axes at motion control cycle of 4 ms (typical value)
­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact

5 10
Yes; Universal PID controller with integrated optimization

158

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications

Article number · PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Integrated Functions Number of counters Counting frequency (counter) max. Counting functions · Continuous counting · Counter response parameterizable · Hardware gate via digital input · Software gate · Event-controlled stop · Synchronization via digital input · Counting range, parameterizable Comparator
­ Number of comparators ­ Direction dependency ­ Can be changed from user program Position detection · Incremental acquisition · Suitable for S7-1500 Motion Control Measuring functions · Measuring time, parameterizable · Dynamic measurement period adjustment · Number of thresholds, parameterizable Measuring range ­ Frequency measurement, min. ­ Frequency measurement, max. ­ Cycle duration measurement, min. ­ Cycle duration measurement, max.

6ES7512-1CK01-0AB0 Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
6 400 kHz; with quadruple evaluation
Yes Yes Yes Yes Yes Yes Yes
2; per count channel; see manual for details Yes Yes
Yes Yes
Yes Yes 2
0.04 Hz 400 kHz; with quadruple evaluation 2.5 µs 25 s

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

159

Technical specifications

Article number Accuracy
­ Frequency measurement
­ Cycle duration measurement
­ Velocity measurement
Potential separation Potential separation digital inputs
· between the channels

6ES7512-1CK01-0AB0
100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation
No

· between the channels, in groups of

16

Potential separation digital outputs

· between the channels

No

· between the channels, in groups of

16

Potential separation channels · between the channels and backplane bus Yes

· Between the channels and load voltage L+ No

Isolation Isolation tested with
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

707 V DC (type test) 0 °C

· horizontal installation, max. · vertical installation, min.

60 °C; Note derating data for onboard I/O in the manual. Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off
0 °C

· vertical installation, max.
Ambient temperature during storage/transportation
· min.

40 °C; Note derating data for onboard I/O in the manual. Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C

· max.

70 °C

Configuration

Programming

Programming language

­ LAD

Yes

­ FBD

Yes

­ STL

Yes

­ SCL

Yes

­ GRAPH

Yes

160

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Article number Know-how protection
· User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight

6ES7512-1CK01-0AB0
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
110 mm 147 mm 129 mm
1 360 g

Technical specifications

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

161

Technical specifications
Power reduction (derating) to total current of digital outputs (per power supply)
The following figure shows the load rating of the digital outputs in relation to the mounting position and the ambient temperature.

 Horizontal mounting position  Vertical mounting position
Figure 7-1 Loading capacity of the digital outputs per mounting position
The following trends shows the load rating of the digital outputs when technology functions are used in dependence on the ambient temperature.

 Horizontal mounting position
Figure 7-2 Load rating of the digital outputs when technology functions are used

162

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Technical specifications
Power reduction (derating) to total current of digital inputs (per power supply)
The following figure shows the load rating of the current for encoder supplies of digital inputs.
 Horizontal mounting position
Figure 7-3 Load rating of the current for encoder supplies of digital inputs
Simultaneity of digital inputs per group
If the maximum voltage at the inputs is 24 V, all the digital inputs may be simultaneously at high level (corresponds to 100% of the digital inputs). If the maximum voltage at the inputs is 30 V, only 12 digital inputs of 16 digital inputs of one group may be simultaneously at high level (corresponds to 75% of the digital inputs).
General technical specifications
For information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., refer to the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

163

Dimension drawings

A

This appendix contains the dimension drawings of the compact CPU installed on a mounting rail. You must take the dimensions into consideration for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of CPU 1512C-1 PN ­ front and side views

164

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Dimension drawings
Figure A-2 Dimension drawing of CPU 1512C-1 PN ­ side view with front panel open

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

165

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

of the analog on-board I/O

Parameter assignment in the user program
You have the option of reassigning parameters for the analog on-board I/O in RUN (for example, measuring ranges of individual channels can be modified in RUN without affecting the other channels).

Changing parameters in RUN
The parameters are transferred to the analog on-board I/O via data records with the WRREC instruction. The parameters set with STEP 7 (TIA Portal) are not changed in the CPU, which means the parameters set in STEP 7 (TIA Portal) will be valid again after a restart.
The parameters are checked for plausibility by the analog on-board I/O only after the transfer.

Output parameter STATUS
If errors occur when transferring parameters with the "WRREC" instruction, the analog onboard I/O continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

B.2

Structure of a data record for input channels of the analog on-

board I/O

Assignment of data record and channel
The parameters for the 5 analog input channels are located in data records 0 to 4 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  Data record 2 for channel 2  Data record 3 for channel 3  Data record 4 for channel 4

166

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O
Data record structure
The example in the figure below shows the structure of data record 0 for channel 0. The structure is identical for channels 1 to 4. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

167

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Figure B-2 Structure of data record 0: Bytes 7 to 27

168

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Codes for measurement types
The following table contains all measurement types of the inputs of the analog on-board I/O with the corresponding codes. You must enter these codes in byte 2 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6).

Table B- 1 Codes for measurement type
Measurement type Deactivated Voltage (valid for channels 0 to 3) Current, 4-wire measuring transducer (valid for channels 0 to 3) Resistance (valid for channel 4) Thermal resistor linear (valid for channel 4)

Code 0000 0000 0000 0001 0000 0010 0000 0100 0000 0111

Codes for measuring ranges
The following table contains all measuring ranges of the inputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 3 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6).

Table B- 2 Codes for measuring range
Measuring range Voltage ±5 V ±10 V 1 to 5 V 0 to 10 V Current, 4-wire measuring transducer 0 to 20 mA 4 to 20 mA ±20 mA Resistance 150  300  600  Thermal resistor Pt 100 Climate Ni 100 Climate Pt 100 Standard Ni 100 Standard

Code
0000 1000 0000 1001 0000 1010 0000 1011
0000 0010 0000 0011 0000 0100
0000 0001 0000 0010 0000 0011
0000 0000 0000 0001 0000 0010 0000 0011

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

169

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Codes for temperature coefficient
The following table lists all temperature coefficients for temperature measurement of the thermal resistors along with their codes. You must enter these codes in each case in byte 4 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6)

Table B- 3 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001

170

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.2 Structure of a data record for input channels of the analog on-board I/O

Hardware interrupt limits
The values that can be set for hardware interrupts (high/low limit) must be within the nominal range and overrange/underrange of the relevant measuring range.
The following tables list the permitted hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 4 Voltage limits
Voltage ±5 V, ±10 V 32510 -32511

1 to 5 V, 0 to 10 V 32510 -4863

High limit Low limit

Table B- 5 Current and resistance limits

Current ±20 mA
32510 -32511

4 to 20 mA / 0 to 20 mA
32510
-4863

Resistance (all configurable measuring ranges)
32510 1

High limit Low limit

Table B- 6 Limits for thermal resistor Pt 100 Standard and Pt 100 Climate

Thermal resistor

Pt 100 Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt 100 Climate

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 7 Limits for thermal resistor Ni 100 Standard and Ni 100 Climate

Thermal resistor

Ni 100 Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni 100 Climate

°F

K

31099

---

-15699

---

High limit Low limit

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

171

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O

B.3

Structure of a data record for output channels of the analog on-

board I/O

Assignment of data record and channel
The parameters for the 2 analog output channels are located in data records 64 and 65 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channel 1. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

172

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O

Figure B-3 Structure of data record 64: Bytes 0 to 7

Codes for output type
The following table contains all output types of the outputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 8 Codes for the output type
Output type Disabled Voltage Current

Code 0000 0000 0000 0001 0000 0010

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

173

Parameter data records B.3 Structure of a data record for output channels of the analog on-board I/O

Codes for output ranges
The following table contains all output ranges for voltage and current of the outputs of the analog on-board I/O with the corresponding codes. You must enter these codes in each case in byte 3 of the corresponding data record (see previous figure).

Table B- 9 Codes for output range
Output range for voltage 1 to 5 V 0 to 10 V ±10 V Output range for current 0 to 20 mA 4 to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Permitted substitute values
The following table lists all output ranges for the permitted substitute values. You must enter these substitute values in each case in bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). You can find the binary representation of the output ranges in the section Representation of output ranges (Page 203).

Table B- 10 Permitted substitute value for the output range

Output range ±10 V 1 to 5 V 0 to 10 V ±20 mA 4 to 20 mA 0 to 20 mA

Permitted substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

174

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.4 Parameter assignment and structure of the parameter data records of the digital on-board I/O

B.4

Parameter assignment and structure of the parameter data records

of the digital on-board I/O

Parameter assignment in the user program
You have the option of reassigning parameters for the digital on-board I/O in RUN (for example, values for input delay of individual channels can be modified in RUN without affecting the other channels).
Changing parameters in RUN
The parameters are transferred to the digital on-board I/O via data records 0 to 15 with the WRREC instruction. The parameters set with STEP 7 (TIA Portal) are not changed in the CPU, which means the parameters set in STEP 7 (TIA Portal) will be valid again after a restart. The parameters are only checked for plausibility after the transfer.
Output parameter STATUS
If errors occur when transferring parameters with the "WRREC" instruction, the digital onboard I/O continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

175

Parameter data records B.5 Structure of a data record for input channels of the digital on-board I/O

B.5

Structure of a data record for input channels of the digital on-

board I/O

Assignment of data record and channel
The parameters per submodule for the 32 digital input channels are located in data records 0 to 15 and are assigned as follows: First submodule (X11):  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 14 for channel 14  Data record 15 for channel 15 Second submodule (X12):  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 14 for channel 14  Data record 15 for channel 15

176

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.5 Structure of a data record for input channels of the digital on-board I/O
Data record structure
The example in the figure below shows the structure of data record 0 for channel 0. The structure is identical for channels 1 to 31. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".

Figure B-4 Structure of data record 0: Bytes 0 to 3

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

177

Parameter data records B.6 Structure of a data record for output channels of the digital on-board I/O

B.6

Structure of a data record for output channels of the digital on-

board I/O

Assignment of data record and channel
The parameters per submodule for the 32 digital output channels are located in data records 64 to 79 and are assigned as follows: First submodule (X11):  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15 Second submodule (X12):  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15

178

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.6 Structure of a data record for output channels of the digital on-board I/O Data record structure The example in the figure below shows the structure of data record 64 for channel 0. The structure is identical for channels 1 to 31. The values in byte 0 and byte 1 are fixed and must not be changed. You enable a parameter by setting the corresponding bit to "1".
Figure B-5 Structure of data record 64: Bytes 0 to 3

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

179

Parameter data records B.7 Parameter data records of the high-speed counters

B.7

Parameter data records of the high-speed counters
You can change the parameters of the High Speed Counter in RUN mode. The WRREC instruction is used to transfer the parameters to the High Speed Counter using data record 128.
If errors occur when transferring or validating parameters with the WRREC instruction, the High Speed Counter continues operation with the previous parameter assignment. The STATUS output parameter then contains a corresponding error code. If no error has occurred, the length of the data actually transferred is entered in the STATUS output parameter.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

Data record structure
The following table shows you the structure of data record 128 with the counter channel. The values in byte 0 to byte 3 are fixed and must not be changed. The value in byte 4 may only be changed by parameter reassignment and not in RUN mode.

Table B- 11 Parameter data record 128 - HSC parameter header

Bit 

Byte

7

6

5

4

3

2

1

0

0

Major Version = 1

Minor Version = 0

1

Length of parameter data of the channel = 48

2

Reserved = 0 1)

3

1) Reserved bits must be set to 0

Table B- 12 Parameter data record 128 - operating mode

Bit 

Byte

7

6

5

4

3

2

1

0

Operating mode

4 Reserved = 0 1)

Operating mode:

0000B: Deactivated

0001B: Counting

0010B: Measuring

0011 to 1111B: Reserved

1) Reserved bits must be set to 0

180

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 13 Parameter data record 128 - Basic parameters

Bit 

Byte

7

6

5 Reserved = 0 1)

5

4

3

2

1

0

Basic parameters

Enable additional diagnostic interrupts2)

Reaction to CPU STOP:
00B: Output substitute value
01B: Keep last value

10B: Continue operation

11B: Reserved

1) Reserved bits must be set to 0
2) Must be set to 1 for the activation of the diagnostic interrupts "Missing supply voltage L+, "Illegal A/B signal ratio" and "Hardware interrupt lost"

Table B- 14 Parameter data record 128 - Counter inputs

Bit 

Byte

7

6

6 Reserved = 0 1)

7 Reaction to signal N: 00B: No reaction to signal N
01B: Synchronization at signal N
10B: Capture at signal N 11B: Reserved

1) Reserved bits must be set to 0

5

4

3

2

1

0

Counter inputs

Signal evaluation:

Signal type:

00B: Single

0000B: Pulse (A)

01B: Double

0001B: Pulse (A) and direction (B)

10B: Quadruple

0010B: Count up (A), count down (B)

11B: Reserved

0011B: Incremental encoder (A, B phase-shifted)

0100B: Incremental encoder (A, B, N)

0101 to 1111B: Reserved

Invert direc- Reserved = Filter frequency

tion

0 1)

0000B: 100 Hz

0001B: 200 Hz

0010B: 500 Hz

0011B: 1 kHz

0100B: 2 kHz

0101B: 5 kHz

0110B: 10 kHz

0111B: 20 kHz

1000B: 50 kHz

1001B: 100 kHz

1010B: Reserved

1011 to 1111B: Reserved

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

181

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 15 Parameter data record 128 - Hardware interrupts

Bit  Byte
8
9

7

6

Reserved = Reserved =

0 1)

0 1)

Synchroni- New capzation of the ture value counter by available an external signal

5
Reserved = 0 1)
Reserved = 0 1)

4

3

Hardware interrupts1)

Direction reversal

Underflow (low counting limit violated)

Zero cross- Reserved =

ing

0 1)

2

1

Overflow (high counting limit violated)

Gate stop

Comparison event for DQ1 occurred

Reserved = 0 1)

0
Gate start
Comparison event for DQ0 occurred

1) Reserved bits must be set to 0

Table B- 16 Parameter data record 128 - Behavior DQ0/1

Bit  Byte 10
11

7

6

5

4

3

2

1

0

Behavior of DQ0/1

Set output (DQ1):

Set output (DQ0):

0000B: Use by user program

0000B: Use by user program

0001B: Counting: Between comparison value 1 and high limit; Measuring: Measured value >= Comparison value 1

0001B: Counting: Between comparison value 0 and high limit; Measuring: Measured value >= Comparison value 0

0010B: Counting: Between comparison value 1 and low limit; Measuring: Measured value <= Comparison value 1

0010B: Counting: Between comparison value 0 and low limit; Measuring: Measured value <= Comparison value 0

0011B: Counting: At comparison value 1 for one pulse duration; Measuring: Reserved

0011B: Counting: At comparison value 0 for one pulse duration; Measuring: Reserved

0100B: Between comparison value 0 and 1

0100B: Reserved

0101B: Counting: After set command from CPU until comparison value 1; Measuring: Reserved

0101B: Counting: After set command from CPU until comparison value 0; Measuring: Reserved

0110B: Counting: Reserved Measuring: Not between comparison value 0 and 1

0110 to 1111B: Reserved

0111 to 1111B: Reserved

Count direction (DQ1): 00B: Reserved 01B: Up

Count direction (DQ0): 00B: Reserved 01B: Up

Reserved = 0 1)

Substitute value for DQ1

Substitute value for DQ0

10B: Down

10B: Down

11B: In both directions

11B: In both directions

182

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Bit 

Byte

7

6

5

4

3

2

1

0

12

Pulse duration (DQ0):

13

WORD: Value range in ms/10: 0 to 65535D

14

Pulse duration (DQ1):

15

WORD: Value range in ms/10: 0 to 65535D

1) Reserved bits must be set to 0

Table B- 17 Parameter data record 128 - Behavior DI0

Bit 

Byte

7

6

5

16 Behavior of Edge selection (DI0): count value 00B: Reserved after Capture (DI0): 01B: On a rising edge 10B: On a falling edge
0B: Contin- 11B: On rising and falling ue counting edge
1B: Set to start value and continue counting
1) Reserved bits must be set to 0

4

3

Behavior of DI0

Level selec- Reserved = tion (DI0): 0 1)

0B: Active at high level

1B: Active at low level

2

1

0

Set function of the DI (DI0): 000B: Gate start/stop (level-triggered) 001B: Gate start (edge-triggered) 010B: Gate stop (edge-triggered) 011B: Synchronization 100B: Enable synchronization at signal N 101B: Capture 110B: Digital input without function 111B: Reserved

Table B- 18 Parameter data record 128 - Behavior DI1

Bit 

Byte

7

6

5

4

3

2

1

0

17

Behavior of DI1:

See byte 16

18

Reserved = 0 1)

19 Sync option Reserved = 0 1)

Reserved = 0 1)

0B: Once

1B: Periodically

1) Reserved bits must be set to 0

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

183

Parameter data records B.7 Parameter data records of the high-speed counters

Table B- 19 Parameter data record 128 - Behavior DI1

Bit  Byte 20-23 24-27
28-31
32-35 36-39 40-43

7

6

5

4

3

2

1

0

Values

High counting limit:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Comparison value 0:

Counting mode: DWORD Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH;

Measuring mode: REAL Floating-point number in the set unit of the measured variable

Comparison value 1:

Counting mode: DWORD Value range: ­2147483648 to 2147483647D: or 80000000 to 7FFFFFFFH;

Measuring mode: REAL Floating-point number in the set unit of the measured variable

Start value:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Low counting limit:

DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

Update time:

DWORD: Value range in s: 0 to 25000000D

Table B- 20 Parameter data record 128 - Counter behavior at limits and at gate start

Bit  Byte
44

7

6

5

4

3

2

1

0

Counter behavior at limits and at gate start

Response to gate start: Response to counting limit violation:

Reset at counting limit violation:

00B: Set to start value

000B: Stop counting

000B: To other counting limit

01B: Continue with current 001B: Continue counting value

001B: On start value

10 to 11B: Reserved

010 to 111B: Reserved

010 to 111B: Reserved

Table B- 21 Parameter data record 128 - Specify measured value

Bit 

Byte

7

6

45 Reserved = 0 1)

46 47

5

4

3

2

Specify measured value

Time base for velocity measurement:

000B: 1 ms

001B: 10 ms

010B: 100 ms

011B: 1 s

100B: 60 s/1 min

101 to 111B: Reserved

Increments per unit:

WORD: Value range: 1 to 65535D

1

0

Measured variable: 00B: Frequency 01B: Period duration 10B: Velocity 11B: Reserved

184

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.7 Parameter data records of the high-speed counters

Bit 

Byte

7

6

5

48

49 Use of HSC DI0
0B: Not used
1B: Used

Reserved = 0 1)

4

3

2

1

0

Set hysteresis range:

Value range: 0 to 255D

Selection HSC DI0

Value range (applicable if the CPU is configured with deactivated 'Front connector assignment like 1511C' setting):

HSC1..3:

01000B: Front connector X11, terminal 11 (DI8) 01001B: Front connector X11, terminal 12 (DI9) 01010B: Front connector X11, terminal 13 (DI10) 01011B: Front connector X11, terminal 14 (DI11) 01100B: Front connector X11, terminal 15 (DI12) 01101B: Front connector X11, terminal 16 (DI13) 01110B: Front connector X11, terminal 17 (DI14) 01111B: Front connector X11, terminal 18 (DI15)

HSC4..6:

11000B: Front connector X12, terminal 11 (DI8) 11001B: Front connector X12, terminal 12 (DI9) 11010B: Front connector X12, terminal 13 (DI10) 11011B: Front connector X12, terminal 14 (DI11) 11100B: Front connector X12, terminal 15 (DI12) 11101B: Front connector X12, terminal 16 (DI13) 11110B: Front connector X12, terminal 17 (DI14) 11111B: Front connector X12, terminal 18 (DI15)

All other values: Reserved

Note: If the CPU with enabled 'Front connector assignment like 1511C' setting is configured, the parameter data record definition of CPU 1511C applies. See device manual of CPU 1511C.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

185

Parameter data records B.7 Parameter data records of the high-speed counters

Bit  Byte 50

7
Use of HSC DI1
0B: Not used
1B: Used

6

5

Reserved = 0 1)

51 Use of

Reserved = 0 1)

HSC DQ1

0B: Not used

1B: Used

1) Reserved bits must be set to 0

4

3

2

1

0

Selection HSC DI1

Value range (applicable if the CPU is configured with deactivated 'Front connector assignment like 1511C' setting):

HSC1..3:

01000B: Front connector X11, terminal 11 (DI8) 01001B: Front connector X11, terminal 12 (DI9) 01010B: Front connector X11, terminal 13 (DI10) 01011B: Front connector X11, terminal 14 (DI11) 01100B: Front connector X11, terminal 15 (DI12) 01101B: Front connector X11, terminal 16 (DI13) 01110B: Front connector X11, terminal 17 (DI14) 01111B: Front connector X11, terminal 18 (DI15)

HSC4..6:

11000B: Front connector X12, terminal 11 (DI8) 11001B: Front connector X12, terminal 12 (DI9) 11010B: Front connector X12, terminal 13 (DI10) 11011B: Front connector X12, terminal 14 (DI11) 11100B: Front connector X12, terminal 15 (DI12) 11101B: Front connector X12, terminal 16 (DI13) 11110B: Front connector X12, terminal 17 (DI14) 11111B: Front connector X12, terminal 18 (DI15)

All other values: Reserved

Note: If the CPU with enabled 'Front connector assignment like 1511C' setting is configured, the parameter data record definition of CPU 1511C applies. See device manual of CPU 1511C.

Selection HSC DQ1

Value range:

HSC1:

00001B: Front connector X11, terminal 22 (DQ1) 01001B: Front connector X11, terminal 32 (DQ9)

HSC2:

00011B: Front connector X11, terminal 24 (DQ3) 01011B: Front connector X11, terminal 34 (DQ11)

HSC3:

00100B: Front connector X11, terminal 25 (DQ4) 01100B: Front connector X11, terminal 35 (DQ12)

HSC4:

00101B: Front connector X11, terminal 26 (DQ5) 01101B: Front connector X11, terminal 36 (DQ13)

HSC5:

00111B: Front connector X11, terminal 28 (DQ7) 01111B: Front connector X11, terminal 38 (DQ15)

HSC6:

00110B: Front connector X11, terminal 27 (DQ6) 01110B: Front connector X11, terminal 37 (DQ14)

All other values: Reserved

186

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Parameter data records B.8 Parameter data records (PWM)

B.8

Parameter data records (PWM)
You have the option of reassigning the pulse width modulation parameters in RUN. The parameters are transferred with the instruction WRREC via the data record 128 to the PWM submodule.
If errors occur when transferring or validating parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. The output parameter STATUS then contains a corresponding error code. If no error has occurred, the length of the data actually transferred is entered in the output parameter STATUS.
You can find a description of the "WRREC" instruction and the error codes in the STEP 7 (TIA Portal) online help.

Data record structure
The following table shows the structure of the data record 128 for the pulse width modulation. The values in byte 0 to byte 3 are fixed and must not be changed.

Table B- 22 Parameter data record 128

Bit  Byte
0 1 2 3 4
5

7

6

5

4

3

2

1

0

Major Version = 1

Minor Version = 0

Length of the parameter data of the channel in bytes = 12

Reserved = 0 1)

Current control
0B: Deactivated
1B: Reserved

Dithering
0B: Deactivated 1B: Reserved

Reserved = 0 1)

High-speed output

Operating mode

0B: Deactivated

0000B: Reserved

01B: Activated 10B-11B: Reserved
Reserved = 0 1)

0001B: PWM (pulse-width modulation)

0010B: Reserved

0011B: Reserved

0100B: Frequency output

0110B to 1110B: Reserved

1111B: Deactivated

Diagnostics Reaction to CPU STOP interrupt

0B: Deactivated

00B: DQ substitute value

1B: Activated

01B: Reserved
10B: Operating mode for continuation of operation

11B: Reserved

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

187

Parameter data records B.8 Parameter data records (PWM)

Bit 

Byte 6

7

6

5

Reserved = 0 1)

4

3

2

1

0

Pulse output (DQA) selection

Range of values for PWM1: 00000B: Front connector X11, terminal 21 (DQ0) 01000B: Front connector X11, terminal 31 (DQ8)

Range of values for PWM2: 00010B: Front connector X11, terminal 23 (DQ2) 01010B: Front connector X11, terminal 33 (DQ10)

Range of values for PWM3: 00100B: Front connector X11, terminal 25 (DQ4) 01100B: Front connector X11, terminal 35 (DQ12)

Range of values for PWM4: 00110B: Front connector X11, terminal 27 (DQ6) 01110B: Front connector X11, terminal 37 (DQ14)

All other values: Reserved

7

Reserved = 0 1)

Output format

Reserved = Reserved = Reserved = Substitute

0 1)

0 1)

0 1)

value DQA

PWM

Frequency output

0B: 0 V

00B: S7 analog format

00B: Reserved

1B: 24 V

01B: per 100 01B: 1 Hz (%)

10B: per 1000

10B: Reserved

11B: per 10,000

11B: Reserved

8-11

DWORD minimum pulse duration

PWM: Minimum pulse duration (default = 0 s)

Frequency output: Reserved

12-15

DWORD period duration

PWM: Period duration

Supported value range depending on configured values for "Pulse output (DQA)" and "High-speed output (0.1 A)"

· for 100 kHz DQ (high-speed output activated): 10 s to 10 000 000 s (10 s)

· for 10 kHz DQ (high-speed output deactivated): 100 s to 10 000 000 s (10 s)

· for 100 Hz DQ (high-speed output deactivated): 10 000 s (10 ms) to 10 000 000 s (10 s) Default = 2 000 000 s (2 s)

Frequency output: Reserved

1) Reserved bits must be set to 0

188

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing

C

C.1

Conversion method

Conversion

An integrated analog-to-digital converter converts the analog signal into a digital signal in order that the compact CPU can process the analog signal read in by an analog channel. Once the CPU has processed the digital signal, an integrated digital-to-analog converter converts the output signal into an analog current or voltage value.

Interference frequency suppression
The interference frequency suppression of the analog inputs suppresses the interference caused by the frequency of the AC voltage network used. The frequency of the AC voltage network may interfere with measured values, particularly for measurements within narrow voltage ranges.
You set the line frequency with which the plant operates (400, 60, 50 or 10 Hz) using the "Interference frequency suppression" parameter in STEP 7 (TIA Portal). The "Interference frequency suppression" parameter can only be set module-wide (for all input channels). The interference frequency suppression filters out the set interference frequency (400/60/50/10 Hz) as well as multiples of it. The selected interference frequency suppression also defines the integration time. The conversion time changes depending on the set interference frequency suppression.
For example, an interference frequency suppression of 50 Hz corresponds to an integration time of 20 ms. The analog on-board I/O supplies one measured value to the CPU every millisecond over a period of 20 ms. This measured value corresponds to the floating mean value of the last 20 measurements.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

189

Analog value processing C.1 Conversion method
The following figure shows how this works using a 400 Hz interference frequency suppression as an example. A 400 Hz interference frequency suppression corresponds to an integration time of 2.5 ms. The analog on-board I/O supplies a measured value to the CPU every 1.25 milliseconds within the integration time.
Figure C-1 Interference frequency suppression 400 Hz

190

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing C.1 Conversion method The following figure shows how this works using a 60 Hz interference frequency suppression as an example. A 60 Hz interference frequency suppression corresponds to an integration time of 16.6 ms. The analog on-board I/O supplies a measured value to the CPU every 1.04 milliseconds within the integration time.
Figure C-2 Interference frequency suppression 60 Hz

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

191

Analog value processing C.1 Conversion method
The following figure shows how this works using a 50 Hz interference frequency suppression as an example. A 50 Hz interference frequency suppression corresponds to an integration time of 20 ms. The analog on-board I/O supplies a measured value to the CPU every millisecond within the integration time.
Figure C-3 Interference frequency suppression 50 Hz

192

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing C.1 Conversion method The following figure shows how this works using a 10 Hz interference frequency suppression as an example. A 10 Hz interference frequency suppression corresponds to an integration time of 100 ms. The analog on-board I/O supplies a measured value to the CPU every millisecond within the integration time.
Figure C-4 Interference frequency suppression 10 Hz

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

193

Analog value processing C.1 Conversion method

The following table provides an overview of the configurable line frequencies, the integration time and the intervals within which measured values are supplied to the CPU.

Table C- 1 Overview of the configurable line frequencies

Interference frequency suppression 400 Hz 60 Hz 50 Hz 10 Hz

Integration time 2.5 ms 16.6 ms 20 ms 100 ms

Interval 2 x 1.25 ms 16 x 1.04 ms 20 x 1 ms 100 x 1 ms

Note Basic error with an integration time of 2.5 ms.
With an integration time of 2.5 ms, the measured value is changed by the following values based on the additionally obtained basic error and noise: · with "voltage", "current" and "resistance" by ±0.1 % · with "Thermal resistor Pt 100 Standard" by ±0.4 K · with "Thermal resistor Pt 100 Climatic" by ±0.3 K · with "Thermal resistor Ni 100 Standard" by ±0.2 K · with "Thermal resistor Ni 100 Climatic" by ±0.1 K
A detailed description of the basic and operating error is available in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094).

194

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Smoothing

Analog value processing C.1 Conversion method
The individual measured values are smoothed by filtering. The smoothing can be set in 4 levels and channel-selective in STEP 7 (TIA Portal). Smoothing time = Smoothing (k) x configured integration time The following figure shows the time it takes for the smoothed analog value to reach approximately 100 % depending on the set smoothing. This is valid for all signal changes at the analog input.



None (smoothing = 1 x integration time)



Weak (smoothing = 4 x integration time) *



Medium (smoothing = 16 x integration time) *



Strong (smoothing = 32 x integration time) *

* The smoothing time can increase by 1 x integration time.

Figure C-5 Smoothing time depending on the set smoothing level

The following table shows the time it takes for the smoothed analog value to reach approximately 100 % depending on the set smoothing and the set interference frequency suppression.

Table C- 2 Smoothing time depending on the set smoothing level and interference frequency suppression

Selection of the smoothing (mean value generation from scan values)
None Weak Medium Strong

Interference frequency suppression/smoothing time

400 Hz

60 Hz

50 Hz

10 Hz

2.5 ms

16.6 ms

20 ms

100 ms

10 ms

66.4 ms

80 ms

400 ms

40 ms

265.6 ms

320 ms

1600 ms

80 ms

531.2 ms

640 ms

3200 ms

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

195

Analog value processing C.2 Representation of analog values

Cycle time

The cycle times (1 ms, 1.04 ms and 1.25 ms) result from the configured interference frequency suppression. The cycle time is independent of the number of configured analog channels. The values for the analog input channels are detected sequentially in each cycle.

Reference

For more information on conversion time, cycle time and conversion method, refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual.

C.2

Representation of analog values

Introduction

The analog values for all measuring ranges that you can use with the analog on-board I/O are represented in this appendix.
For cross-product information on "analog value processing", refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual.

Measured value resolution
Each analog value is entered left aligned into the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog on-board I/O.

Table C- 3 Resolution of the analog values

Resolution in bits including sign
16

Decimal 1

Values
Hexadecimal 1H

Analog value

High byte Sign 0 0 0 0 0 0 0

Low byte 0 0 0 0 0 0 0 1

196

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing C.3 Representation of input ranges

C.3

Representation of input ranges
The tables below set out the digitized representation of the input ranges separately for bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 4 Bipolar input ranges

Dec. val- Measured

ue

value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Nominal 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 range 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Underrange 1 0 0 0 0 0 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 5 Unipolar input ranges

Dec. val- Measured

ue

value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Underrange 1 1 1 0 1 1 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

197

Analog value processing C.3 Representation of input ranges

C.3.1

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 6 Voltage measuring ranges ±10 V, ±5 V

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V

>5.879 V

11.759 V

5.879 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

-11.759 V <-11.759 V

-5.879 V <-5.879 V

Range Overflow Overrange Nominal range
Underrange Underflow

Table C- 7 Voltage measuring range 1 to 5 V, 0 to 10 V

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

0 to 10 V >11.759 V 11.759 V
10.0 V 7.5 V 361.7 V 0 V
-1.759 V < -1.759 V

Range Overflow Overrange Nominal range
Underrange Underflow

198

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

C.3.2

Analog value processing C.3 Representation of input ranges

Representation of analog values in current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 8 Current measuring range ±20 mA

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA <-23.52 mA

Overflow Overrange Nominal range
Underrange Underflow

Table C- 9 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec. 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex. 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <-3.52 mA

4 to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA <1.185 mA

Overflow Overrange Nominal range
Underrange Underflow

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

199

Analog value processing C.3 Representation of input ranges

C.3.3

Representation of the analog values of resistance-type sensors/resistance-type thermometers
The following tables list the decimal and hexadecimal values (codes) of the possible resistance-type sensor ranges.

Table C- 10 Resistance-type sensors of 150 , 300  and 600 

Values dec. 32767 32511 27649 27648 20736 1 0

hex. 7FFF 7EFF 6C01 6C00 5100 1 0

Resistance-type sensor range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

Overflow Overrange
Nominal range

Table C- 11 Resistance-type thermometer Pt 100 Standard

Pt 100 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec.
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex.
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt 100 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec.
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex.
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt 100 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec.
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex.
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overrange Nominal range Underrange Underflow

200

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing C.3 Representation of input ranges

Table C- 12 Resistance-type thermometer Pt 100 Climate

Pt 100 Climate/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec.
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex.
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt 100 Climate/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec.
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex.
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range Overflow Overrange Nominal range Underrange Underflow

Table C- 13 Resistance-type thermometer Ni 100 standard

Ni 100 Standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec.
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex.
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni 100 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec.
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex.
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni 100 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec.
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex.
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overrange Nominal range Underrange Underflow

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

201

Analog value processing C.3 Representation of input ranges

Table C- 14 Resistance-type thermometer Ni 100 Climate

Ni 100 Climate in °C Values

(1 digit = 0.01 °C)

dec.

> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex.
7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni 100 Climate in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -76.00 -76.01 : -157.00 < - 157.00

Values dec.
32767 31100 : 26601 26600 : -7600 -7601 : -15700 -32768

hex.
7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range Overflow Overrange Nominal range Underrange Underflow

C.3.4

Measured values for wire break diagnostics

Measured values for "Wire break" diagnostics as a function of diagnostics enables
With suitable parameter assignment, events that occur trigger a diagnostics entry and a diagnostics interrupt.

Table C- 15 Measured values for wire break diagnostics

Format S7

Parameter assignment
· "Wire break" diagnostics enabled
· "Overflow/Underflow" diagnostics enabled or disabled
("Wire break" diagnostics has a higher priority than "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled
· "Overflow/Underflow" diagnostics enabled

Measured values

32767

7FFFH

-32767 8000 H

· "Wire break" diagnostics disabled
· "Overflow/Underflow" diagnostics disabled

-32767

8000 H

Explanation "Wire break" or "Cable break" diagnostics alarm
· Measured value after leaving the underrange
· Diagnostics alarm "Low limit" violated Measured value after leaving the underrange

202

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Analog value processing C.4 Representation of output ranges

C.4

Representation of output ranges
The tables below set out the digitalized representation of the output ranges separately for bipolar and unipolar ranges. The resolution is 16 bits.

Table C- 16 Bipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Underrange 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 17 Unipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overrange 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Nominal range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

203

Analog value processing C.4 Representation of output ranges

C.4.1

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 18 Voltage output range ±10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%

dec. >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

-117.593% <-117.593%

-27649 -32512 <-32512

93FF 8100 < 8100

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V
-11.76 V -11.76 V

Range Maximum output value Overrange
Nominal range
Underrange Minimum output value

Table C- 19 Voltage output range 0 V to 10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec. >32511 32511 27649 27648 20736 1 0 <0

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Overrange Nominal range
Minimum output value

204

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

Table C- 20 Voltage output range 1 V to 5 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec. >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Voltage output range 1 to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Analog value processing C.4 Representation of output ranges
Range Maximum output value Overrange Nominal range
Underrange Minimum output value

C.4.2

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 21 Current output range ±20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%
-117.593% <-117.593%

dec. >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 mA 0 mA -723.4 mA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overrange
Nominal range Underrange Minimum output value

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

205

Analog value processing C.4 Representation of output ranges

Table C- 22 Current output range 0 to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec. >32511 32511 27649 27648 20736 1 0 <0

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 mA 0 mA 0 mA

Table C- 23 Current output range 4 to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec. >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex. >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA 4 mA
0 mA 0 mA

Range Maximum output value Overrange
Nominal range Minimum output value
Range Maximum output value Overrange
Nominal range Underrange Minimum output value

206

CPU 1512C-1 PN (6ES7512-1CK01-0AB0) Manual, 12/2017, A5E40898741-AA

SIMATIC
S7-1500 CPU 1513-1 PN (6ES7513-1AL02-0AB0)
Manual

_Pr_ef_ac_e_______________

Documentation guide

1

_Pr_od_u_ct_o_ve_rv_ie_w _________2_

_Co_n_ne_c_tin_g _up___________3_

Interrupts, error messages,

diagnostics and system

4

alarms

_Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______5_

_Di_m_en_si_on_a_l d_ra_w_in_g ______A__

12/2017
A5E40881673-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40881673-AA  12/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1513-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

4

Manual, 12/2017, A5E40881673-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Applications of the S7-1500 CPU .......................................................................................... 11

2.2

Hardware properties .............................................................................................................. 18

2.3

Firmware functions................................................................................................................. 20

2.4 2.4.1 2.4.2 2.4.3

Operating and display elements ............................................................................................ 24 Front view of the CPU with closed front panel....................................................................... 24 Front view of the CPU without front panel and view from below ........................................... 26 Rear view of the CPU ............................................................................................................ 27

2.5

Operating mode buttons ........................................................................................................ 28

3 Connecting up....................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms................................................................... 33

4.1

Status and error display of the CPU ...................................................................................... 33

5 Technical specifications ........................................................................................................................ 37

A Dimensional drawing............................................................................................................................. 49

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

6

Manual, 12/2017, A5E40881673-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

8

Manual, 12/2017, A5E40881673-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

10

Manual, 12/2017, A5E40881673-AA

Product overview

2

2.1

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Areas of application of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

11

Product overview 2.1 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP MFP

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

Standard CPU for small to

--

1

--

--

mid-range applications

Standard CPU for mid-

--

1

--

--

range applications

Standard CPU for mid-

--

1

1

--

range to large applications

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-

1

1

1

1

performance applications,

demanding communication

tasks and very short reac-

tion times

Work memory 1.15 MB

Processing time for bit operations 60 ns

1.8 MB

40 ns

3.5 MB

30 ns

6 MB

10 ns

10 MB

2 ns

24 MB

1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

CPU 1511C-1 PN CPU 1512C-1 PN

Compact CPU for small to mid-range applications
Compact CPU for midrange applications

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

--

1

--

--

--

1

--

--

Work memory 1.175 MB

Processing time for bit operations 60 ns

1.25 MB

48 ns

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

12

Manual, 12/2017, A5E40881673-AA

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511F-1 PN Fail-safe CPU for small to

--

1

--

--

mid-range applications

CPU 1511TF-1 Fail-safe technology CPU

--

1

--

--

PN

for small to mid-range

applications

CPU 1513F-1 PN Fail-safe CPU for mid-

--

1

--

--

range applications

CPU 1515F-2 PN Fail-safe CPU for mid-

--

1

1

--

range to large applications

CPU 1515TF-2 Fail-safe technology CPU

--

1

1

--

PN

for demanding applications

and communication tasks

CPU 1516F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munication tasks

CPU 1516TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1517F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munication tasks

CPU 1517TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for demanding applications

and communication tasks

CPU 1518F-4

Fail-safe CPU for high-

1

1

1

1

PN/DP

performance applications,

CPU 1518F-4 PN/DP MFP

demanding communication tasks and very short reaction times

Work memory 1.225 MB

Processing time for bit operations 60 ns

1.225 MB

60 ns

1.95 MB 3.75 MB 3.75 MB

40 ns 30 ns 30 ns

6.5 MB

10 ns

6.5 MB

10 ns

11 MB

2 ns

11 MB

2 ns

26 MB

1 ns

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

13

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

PROFINET basic func-
tionality

CPU 1511T-1 PN Technology CPU for small

--

1

--

--

to mid-range applications

CPU 1515T-2 PN Technology CPU for mid-

--

1

1

--

range to large applications

CPU 1516T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1517T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1511TF-1 PN

These CPUs are described in the fail-safe CPUs

CPU 1515TF-2 PN

CPU 1516TF-3 PN/DP

CPU 1517TF-3 PN/DP

Work memory 1.225 MB

Processing time for bit operations 60 ns

3.75 MB

30 ns

6.5 MB

10 ns

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

14

Manual, 12/2017, A5E40881673-AA

Product overview 2.1 Applications of the S7-1500 CPU
Integrated Motion Control technology functions
All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Output cams  Cam tracks  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

15

Product overview 2.1 Applications of the S7-1500 CPU
Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules. SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks. Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU. In addition, you can assign various access rights to different user groups in the controller using four different authorization levels. Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller. The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally. These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications. The fail-safe CPUs are certified for use in safety mode up to:  Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010  Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to
EN ISO 13849-1:2008 Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

16

Manual, 12/2017, A5E40881673-AA

Product overview 2.1 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

17

Product overview 2.2 Hardware properties

2.2

Hardware properties

Article number
6ES7513-1AL02-0AB0
View of the module
The following figure shows the CPU 1513-1 PN.

Figure 2-1 CPU 1513-1 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

Properties

The CPU 1513-1 PN has the following technical properties:

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

18

Manual, 12/2017, A5E40881673-AA

Product overview 2.2 Hardware properties

Property CPU display
Supply voltage
PROFINET IO PROFINET interface (X1 P1 R and X1 P2 R) Operation of the CPU as · IO controller · I-device

Description
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further network settings. The display shows occurring error messages directly in plain text.
In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S71500 Display Simulator are shown on the display.
The 24 V DC supply voltage is supplied via a 4-pole connection plug that is located at the front of the CPU.

Additional information
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
· SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)
· Chapter Connecting up (Page 29)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

The interface has two ports. In addition to basic

PROFINET function manual

PROFINET functionality, its also supports

(https://support.industry.siemens.co

PROFINET IO RT (real time) and IRT (isochronous real m/cs/ww/en/view/49948856)

time).

· IO controller: As an IO controller the CPU addresses the connected IO devices

· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

19

Product overview 2.3 Firmware functions

2.3

Firmware functions

Functions

The CPU 1513-1 PN supports the following firmware functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description

Additional information

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (https://support.industry.siemens.co m/cs/ww/en/view/59192926)

The Web server lets you access the CPU data by

·

means of a network. Evaluations, diagnostics, and

modifications are thus possible over long distances.

Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take ·

appropriate measures (e.g. limiting network access,

using firewalls) to protect the CPU from being compro-

mised.

Web server function manual (https://support.industry.siemens. com/cs/ww/en/view/59193560)
Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (https://support.industry.siemens.co m/cs/ww/en/view/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and Communication function manual

manufacturer-neutral communication protocol. The

(https://support.industry.siemens.co

CPU can act as OPC UA DA server. The CPU as

m/cs/ww/en/view/59192925)

OPC UA server can communicate with OPC UA clients.

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (https://support.industry.siemens.co m/cs/ww/en/view/59191792)

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

20

Manual, 12/2017, A5E40881673-AA

Product overview 2.3 Firmware functions

Function PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description
RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.
A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.
The Isochronous mode system property acquires measured values and process data and processes the signals in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.
It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.
RT operation is possible with the use of MRP.
The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

Additional information
PROFINET function manual (https://support.industry.siemens.co m/cs/ww/en/view/49948856)

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

21

Product overview 2.3 Firmware functions

Function PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.

S7-1500 Motion Control function manual (https://support.industry.siemens.co m/cs/ww/en/view/109749262)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and eventdependent sensing of actual positions

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

22

Manual, 12/2017, A5E40881673-AA

Product overview 2.3 Firmware functions

Function Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (https://support.industry.siemens.co m/cs/ww/en/view/59191792)

You can use authorization levels to assign separate rights to different users.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

23

Product overview 2.4 Operating and display elements

2.4

Operating and display elements

2.4.1

Front view of the CPU with closed front panel
The following figure shows the front view of the CPU 1513-1 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1513-1 PN (with front panel) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 37).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

24

Manual, 12/2017, A5E40881673-AA

Product overview 2.4 Operating and display elements
Removing and fitting the front panel or the display
You can remove and fit the front panel or the display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel
You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

25

Product overview 2.4 Operating and display elements

2.4.2

Front view of the CPU without front panel and view from below
The following figure shows the operator controls and connection elements of the CPU 1513-1 PN.

 LEDs for the current operating mode and diagnostic status of the CPU  Display  MAC address  LED displays for the 2 ports of the PROFINET interface X1  Operating modes with "STOP ACTIVE" LED  Connector for power supply
Figure 2-4 View of the CPU 1513-1 PN (without front panel) ­ front

 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fixing screw
Figure 2-5 View of the CPU 1513-1 PN ­ bottom

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

26

Manual, 12/2017, A5E40881673-AA

2.4.3

Product overview 2.4 Operating and display elements
Rear view of the CPU
The following figure shows the connection elements on the back of the CPU 1513-1 PN.

 Shield contact surface  Plug-in connection for power supply  Plug-in connection for backplane bus  Fastening screw
Figure 2-6 View of the CPU 1513-1 PN - rear

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

27

Product overview 2.5 Operating mode buttons

2.5

Operating mode buttons

You use the operating mode buttons to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 5 Meaning of the operating mode buttons

Operation of the operating mode buttons RUN
STOP

Meaning
RUN mode STOP mode

MRES
1. Press the operating mode button STOP.
Result: The RUN/STOP LED lights up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the button. 3. Press the operating mode button STOP again within the next three seconds.

Manual memory reset
(with inserted SIMATIC memory card)
or
Reset to factory settings (without inserted SIMATIC memory card):

Explanation
The CPU is executing the user program. The user program is not being executed. (STOP ACTIVE LED lights up). The CPU executes memory reset.
or The CPU is reset to its factory settings. You can find additional information in the S71500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/vi ew/59191792).

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

28

Manual, 12/2017, A5E40881673-AA

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1513-1 PN.
24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

29

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-2 PROFINET ports
Note You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

30

Manual, 12/2017, A5E40881673-AA

Connecting up

Assignment of the MAC addresses
The CPU 1513-1 PN has a PROFINET interface with two ports. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. The CPU 1513-1 PN therefore has three MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1513-1 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered (start of number
range)

Port X1 P1 R (required for LLDP, for example)
Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

31

Connecting up
Block diagram
The following figure shows the block diagram of the CPU 1513-1 PN.


    
PN X1 P1 R PN X1 P2 R X50

CPU with control and operating mode buttons Display Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 SIMATIC memory card

Figure 3-3 Block diagram CPU 1513-1 PN

X80 24 V DC Infeed of supply voltage

L+

24 V DC supply voltage

M

Ground

SF

STOP ACTIVE LED (yellow)

R/S

RUN/STOP LED (yellow/green)

ER

ERROR LED (red)

MT

MAINT LED (yellow)

X1 P1, X1 P2 LED Link TX/RX

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

32

Manual, 12/2017, A5E40881673-AA

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1513-1 PN are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1513-1 PN LEDs.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  STOP ACTIVE LED
Figure 4-1 LED display of the CPU 1513-1 PN (without front panel)

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1513-1 PN has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED LED off LED off
LED lit green LED lit green LED lit green
LED lit green
LED lit green

ERROR LED LED off
LED flashes red LED off
LED flashes red LED off
LED off
LED flashes red

MAINT LED LED off LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.

LED off LED off

CPU is in RUN mode. A diagnostics event is pending.

LED lit yellow
LED flashes yellow
LED off

Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time.
Active Force job
PROFIenergy pause
Maintenance required for the plant.
The affected hardware must be checked/replaced within a foreseeable period of time.
Bad configuration
An error has occurred.

LED lit yellow LED lit yellow
LED lit yellow LED lit yellow
LED flashes yellow

LED flashes red LED off
LED off LED flashes red
LED off

LED off
LED flashes yellow
LED off
LED flashes yellow
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

34

Manual, 12/2017, A5E40881673-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green
LED flashes yellow/green

ERROR LED LED off
LED flashes red

MAINT LED LED off

Meaning Startup (transition from RUN  STOP)

LED flashes yellow

Startup (CPU booting)
Test of LEDs during startup, inserting a module.
LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX-LED. The table below shows the various "LED scenarios" of the ports for the CPU 1513-1 PN.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

35

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the STOP ACTIVE LED
The following table shows the meaning of the STOP ACTIVE LED for the CPU 1513-1 PN.

Table 4- 3 Meaning of the LEDs

STOP ACTIVE LED LED lit yellow
LED off

Meaning The CPU is switched to "STOP" mode using the STOP button.
· As long as the STOP ACTIVE LED is lit up, switching the CPU to RUN mode is only possible using the RUN button.
· The CPU can then no longer be set to RUN mode via the display operation or via online functions. The state of the buttons is retained at power-off. If the CPU does not start up automatically after a power-on, you have to keep the STOP button pressed during startup until the STOP ACTIVE LED is activated.
· If an automatic start-up is to be reliably prevented after a power-up, the STOP button has to be kept pressed during the start-up of the CPU until the STOP ACTIVE LED is activated.
· The CPU is set to "STOP" mode using the display or programming device and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

36

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode buttons
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7513-1AL02-0AB0
CPU 1513-1 PN FS01 V2.5
V15
Yes
3.45 cm
8 2
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.7 A 0.95 A 1.9 A; Rated value 0.02 A²·s
10 W 5.5 W
5.7 W
1 Yes

CPU 1513-1 PN (6ES7513-1AL02-0AB0) Manual, 12/2017, A5E40881673-AA

5
37

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7513-1AL02-0AB0
300 kbyte 1.5 Mbyte
32 Gbyte
Yes
40 ns 48 ns 64 ns 256 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 1.5 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 300 kbyte
0 ... 65 535 300 kbyte
300 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

38

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max.

6ES7513-1AL02-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
128 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 88 KB 1.5 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte
Yes No
64 kbyte; max. 16 KB per block

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

39

Technical specifications

Article number Address area
Number of IO modules I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) per CM/CP ­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number

6ES7513-1AL02-0AB0
2 048; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
32; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
6; A maximum of 6 CMs (PROFINET + PROFIBUS) can be inserted in total
1 6; A maximum of 6 CMs (PROFINET + PROFIBUS) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

40

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number Clock synchronization
· supported · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max. ­ Of which IO devices with IRT, max. ­ Number of connectable IO Devices for
RT, max.

6ES7513-1AL02-0AB0
Yes Yes Yes Yes
1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 624392 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices 128; In total, up to 512 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 128

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

41

Technical specifications

Article number ­ of which in line, max.

6ES7513-1AL02-0AB0 128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is decisive 500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

42

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number Interface types RJ 45 (Ethernet)
· 100 Mbps

6ES7513-1AL02-0AB0 Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

128; via integrated interfaces of the CPU and connected CPs / CMs
10

· Number of connections via integrated inter- 88 faces

· Number of S7 routing paths

16

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.

128; In total, up to 512 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

43

Technical specifications

Article number SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max.

6ES7513-1AL02-0AB0
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

44

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics
· Number of alarms for motion technology objects
Test commissioning functions Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable
· Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables
· Number of variables, max. Diagnostic buffer
· present
· Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces

6ES7513-1AL02-0AB0
Yes; With minimum OB 6x cycle of 500 µs Yes
32 Yes 5 000
300 100 80
Yes; Parallel online access possible for up to 5 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 1 000 500
4; Up to 512 KB of data per trace are possible

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

45

Technical specifications

Article number Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · STOP ACTIVE LED · Connection display LINK TX/RX

6ES7513-1AL02-0AB0
Yes Yes Yes Yes Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

800

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter

5
10
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

Standards, approvals, certificates

Suitable for safety functions

No

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

46

Manual, 12/2017, A5E40881673-AA

Technical specifications

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection Access protection · Password for display · Protection level: Write protection · Protection level: Read/write protection · Protection level: Complete protection Cycle time monitoring · lower limit · upper limit Dimensions Width Height Depth Weights Weight

6ES7513-1AL02-0AB0
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
35 mm 147 mm 129 mm
405 g

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

47

Technical specifications
General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

48

Manual, 12/2017, A5E40881673-AA

Dimensional drawing

A

This section includes a dimensional drawing of the module on a mounting rail and a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings for CPU 1513-1 PN

Figure A-1 Dimensional drawing of CPU 1513-1 PN, front and side views

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

Manual, 12/2017, A5E40881673-AA

49

Dimensional drawing
Figure A-2 Dimensional drawing of CPU 1513-1 PN, side view with front panel open

CPU 1513-1 PN (6ES7513-1AL02-0AB0)

50

Manual, 12/2017, A5E40881673-AA

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

SIMATIC
S7-1500R/H CPU 1513R-1 PN (6ES7513-1RL00-0AB0)
Equipment Manual

Preface

S7-1500R/H Documentation Guide

1

Product overview

2

Connecting

3

Interrupts, diagnostics, error

messages and system

4

events

Technical specifications

5

Dimension drawing

A

11/2019
A5E42009333-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E42009333-AB  10/2019 Subject to change

Copyright © Siemens AG 2018 - 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500R/H redundant system and the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1513R-1 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

3

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

4

Equipment Manual, 11/2019, A5E42009333-AB

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

5

Table of contents

Preface ...................................................................................................................................................... 3

1 S7-1500R/H Documentation Guide............................................................................................................ 7

2 Product overview ....................................................................................................................................... 9

2.1

New functions in firmware version V2.8................................................................................... 9

2.2

Configuration and operating principle .................................................................................... 11

2.3

Hardware properties .............................................................................................................. 13

2.4

Firmware functions................................................................................................................. 17

2.5 2.5.1 2.5.2 2.5.3

Operator controls and display elements ................................................................................ 19 Front view of the CPU with closed front panel....................................................................... 19 Front view of the CPU without front panel ............................................................................. 21 Rear view of the CPU ............................................................................................................ 22

2.6

Mode selector......................................................................................................................... 23

3 Connecting .............................................................................................................................................. 24

3.1

Terminal assignment.............................................................................................................. 24

4 Interrupts, diagnostics, error messages and system events .................................................................... 27

4.1

Status and error display of the CPU ...................................................................................... 27

5 Technical specifications ........................................................................................................................... 33

A Dimension drawing .................................................................................................................................. 42

A.1

Dimension drawing ................................................................................................................ 42

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

6

Equipment Manual, 11/2019, A5E42009333-AB

S7-1500R/H Documentation Guide

1

The documentation for the redundant S7-1500R/H system is divided into three areas. This division enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the redundant S7-1500R/H system. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the redundant S7-1500R/H system, e.g. diagnostics, communication.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

7

S7-1500R/H Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the redundant S7-1500R/H system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

8

Equipment Manual, 11/2019, A5E42009333-AB

Product overview

2

2.1

New functions in firmware version V2.8

This section contains an overview of the most important new firmware functions of the CPU since the last edition of the manual.

New functions of the CPU in firmware version V2.8

New functions Download modified user program in RUNRedundant system state
Backing up the configuration of the S71500R/H redundant system in runtime

Customer benefits
You can download a modified user program into the R/H CPUs in the RUN-Redundant system state.
Advantage: The redundant system will remain consistently in the RUN-Redundant system state during the change to the user program. The system state will not switch to RUN-Rolo or SYNCUP.
You do not have to interrupt the process during a backup while the plant is running. Uninterrupted plant operation avoids high restart and material costs.

Where can I find information?
S7-1500R/H System Manual (https://support.industry.siemens.com/c s/ww/en/view/109754833)

Switched S1 device Testing with breakpoints

The "Switched S1 device" function of the CPU enables operation of standard IO devices in the S71500R/H redundant system.
When testing with breakpoints, you run a program from breakpoint to breakpoint in the STARTUP (startup OB) or RUN-Solo system state. Testing with breakpoints provides you with the following advantages:
· Testing SCL and STL program code with the help of breakpoints
· Localization of logic errors step by step
· Simple and quick analysis of complex programs prior to actual commissioning
· Recording of current values within individual executed loops
· Using breakpoints for program validation is also possible in SCL or STL networks within LAD/FBD blocks.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

9

Product overview 2.1 New functions in firmware version V2.8

New functions PID controller
Alarms in the user program

Customer benefits

Where can I find information?

PID controllers are built into all R/H-CPUs as

·

standard. PID controllers measure the actual value of

a physical variable, for example, temperature or

pressure, and compare the actual value with the

setpoint. Based on the resulting error signal, the

·

controller calculates a manipulated variable that

causes the process value to reach the setpoint as

quickly and stably as possible.

S7-1500R/H System Manual (https://support.industry.siemens.co m/cs/ww/en/view/109754833)
PID Control Function Manual (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

The PID controllers offer you the following advantages:

· Simple configuration and programming through integrated editors and blocks

· Simple simulation, visualization, commissioning and operation via PG and HMI

· Automatic calculation of the control parameters and tuning during operation

· No additional hardware and software required

Alarms enable you to display events from process execution in the S7-1500R/H redundant system and to quickly identify, accurately locate, and correct errors.

Diagnostics function manual (https://support.industry.siemens.com/c s/ww/en/view/59192926)

Additional information
You can find an overview of all new functions, improvements and revisions in the respective firmware versions on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478459).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

10

Equipment Manual, 11/2019, A5E42009333-AB

Product overview 2.2 Configuration and operating principle

2.2

Configuration and operating principle

Structure

The S7-1500R redundant system consists of the following components:  Two CPUs of the type CPU 1513R-1 PN  Two SIMATIC memory cards  PROFINET cable (redundancy connections, PROFINET ring)  IO devices  Load power supply (optional)  System power supply (optional) You mount the CPUs on a common mounting rail or spatially separated on two separate mounting rails. You connect the two CPUs and the IO devices in a PROFINET ring via the PROFINET cable.



Optional load current supply



First CPU



Mounting rail with integrated DIN rail profile



Second CPU



PROFINET cable (redundancy connections, PROFINET ring)

Figure 2-1 Configuration example for S7-1500R

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

11

Product overview 2.2 Configuration and operating principle
Note Standard rail adapter You mount the CPUs on a standardized 35 mm rail using the standard rail adapter. You will find information on mounting the standard rail adapter in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) System Manual.
Principle of operation One of the two CPUs in the redundant system takes on the role of CPU for process control (primary CPU). The other CPU takes on the role of the following CPU (backup CPU). The assigned role of the CPUs can change during operation. Synchronization of all relevant data between primary CPU and backup CPU ensures fast switching between CPUs in the event of a primary CPU failure. If the primary CPU fails, the backup CPU retains control of the process as the new primary CPU at the point of interruption. The redundancy connections are the PROFINET ring with MRP. The CPUs are synchronized via a PROFINET ring.
Additional information You can find a detailed description of the operation and design of the CPUs in the system manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

12

Equipment Manual, 11/2019, A5E42009333-AB

2.3

Hardware properties

Article number 6ES7513-1RL00-0AB0

View of the module The figure below shows the CPU 1513R-1 PN.

Product overview 2.3 Hardware properties

Figure 2-2 CPU 1513R-1 PN
Note Protective film Note that there is a removable protective foil on the display when the CPUs are delivered.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

13

Product overview 2.3 Hardware properties

Properties

CPU 1513R-1 PN has the following technical properties:

Property CPU display
Supply voltage

Description

Additional information

All CPUs of the redundant system S7 1500R/H have a · Redundant System S7-1500R/H

display with plain text information. The display provides

(https://support.industry.siemens.

you with diagnostic messages as well as information about the article number, the firmware version and the serial number of the CPU.

com/cs/ww/en/view/109754833) System Manual

You can also view and assign the IP addresses, the PROFINET device name and the redundancy ID of the

·

SIMATIC S7-1500 Display Simulator

CPU. The system IP address cant be viewed via

(http://www.automation.siemens.

STEP 7 but not in the display.

com/salesmaterial-as/interactive-

In addition to the functions listed here, a large number of other functions are available on the display. These

manuals/getting-started_simatics7-1500/disp_tool/start_en.html)

additional functions are described in the SIMATIC S7

1500 Display Simulator.

The 24 V DC supply voltage is fed via a 4-pin plug located on the front of the CPU.

· Section Connecting (Page 24)
· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

14

Equipment Manual, 11/2019, A5E42009333-AB

Product overview 2.3 Hardware properties

Property
PROFINET IO
PROFINET IO interface (X1 P1 R and X1 P2 R)

Description

Additional information

The CPU has an X1 interface with two ports (X1 P1 R and X1 P2 R).
· The PROFINET IO interface X1 (default P1 R) is used to set up the PROFINET ring with the two CPUs and the IO devices.
· The PROFINET IO interface X1 (default P2 R) is used to make the connection between the two RCPUs in the PROFINET ring.

· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual
· Function manual PROFINET (https://support.industry.siemens. com/cs/ww/en/view/49948856)

In the PROFINET ring, the synchronization frames between the CPUs are transmitted via the following connections:
­ The direct connection (X1 P2 R)
­ The indirect connection (X1 P1 R) via the IO devices
· The interface supports PROFINET IO RT (RealTime) and PROFINET basic functionality.

Operation of the CPUs as IO controllers

Basic PROFINET functionality comprises: ­ HMI communication ­ Communication with the configuration system ­ Communication with a higher-level network
(backbone, router, Internet) ­ Communication with another machine or
automation cell
IO controller: As IO controllers the CPUs address the following configured IO devices:
· IO devices with S2 system redundancy within the PROFINET ring
· IO devices with S2 system redundancy that are decoupled from the PROFINET ring via a switch
· Standard IO devices (switched S1 devices)

Standard IO devices usually do not support HSync Forwarding.

To avoid a cycle time increase when the PROFINET ring is interrupted, integrate the standard IO devices behind a switch and not in the PROFINET ring.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

15

Product overview 2.3 Hardware properties

Note PROFINET basic functionality
CPU 1513R-1 PN has a PROFINET IO interface with two ports (X1 P1 R and X1 P2 R).
To connect an HMI device or PG/PC to the CPUs via Industrial Ethernet, build the PROFINET ring via the PROFINET X1 interface. Install a switch in the PROFINET ring. Make an Industrial Ethernet connection via the switch.

H-Sync Forwarding H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of an S7-1500R redundant system only within the PROFINET ring.
In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
Note Support of H-Sync Forwarding
The technical specifications typically state whether a PROFINET device supports H-Sync Forwarding.
The GSD file will also indicate whether the device supports H-Sync Forwarding. The device supports H-Sync Forwarding when the "ApplicationClass" attribute contains the "HighAvailability" token.
You will find more information on H-Sync Forwarding in the system manual S7-1500R/H redundant system.

Accessories

You can find information on the topic of "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

16

Equipment Manual, 11/2019, A5E42009333-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

CPU 1513R-1 PN supports the following firmware functions:

Function CPU redundancy Integrated system diagnostics
Integrated trace functionality
PROFINET IO System redundancy S2
Switched S1 device RT (real time)

Description
There are two duplicate CPUs that synchronize their data via redundancy connections within a PROFINET ring. If one of the CPUs fails, the other CPU retains control of the process.
The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device or the integrated display. System diagnostics information is also available when the CPUs are in operating state STOP.
Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.
Trace and logic analyzer functions are suitable for monitoring highly dynamic processes.
Note: Note that the S7-1500R/H redundant system supports recording of measurements. However, saving the measurements to the SIMATIC memory card is not supported.

Additional information Redundant System S7-1500R/H (https://support.industry.siemens.co m/cs/ww/en/view/109754833) System Manual Function manual Diagnostics (http://support.automation.siemens.c om/WW/view/en/59192926)
Function manual Using the trace and logic analyzer function (http://support.automation.siemens.c om/WW/view/en/64897128)

All IO devices are connected redundantly in the

·

redundant S7 1500R/H system. All IO devices assigned

to the system must therefore support system

redundancy S2.

If the role of the CPUs changes, the new primary CPU takes over the PROFINET IO communication.

·

Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual
Function manual PROFINET (http://support.automation.sieme ns.com/WW/view/en/49948856)

The switched S1 device function of the CPU enables operation of standard IO devices in the S7-1500R/H redundant system.
RT prioritizes PROFINET IO frames over standard frames. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet frames.

Redundant System S7-1500R/H (https://support.industry.siemens.co m/cs/ww/en/view/109754833) System Manual
Function manual PROFINET (http://support.automation.siemens.c om/WW/view/en/49948856)

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

17

Product overview 2.4 Firmware functions

Function

Description

Additional information

MRP (Media Redundancy Protocol)
PROFIenergy
Integrated technology Integrated closed-loop control functionality

The Media Redundancy Protocol enables the configuration of redundant networks. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails.
Within the PROFINET ring, the R-CPUs assume the role of the MRP Manager following appropriate project configuration and all other devices in the ring assume the role of the MRP clients.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. Most of the energy is saved by the process. The PROFINET device itself only contributes a few watts to the savings potential.
· PID Compact (continuous PID controller)
· PID 3Step (step controller for integrating actuators)
· PID Temp (temperature controller for heating and cooling with two separate actuators)

Redundant System S7-1500R/H System Manual
Function manual PID Control (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

Security Integrated

Know-how protection Access protection

The know-how protection protects user blocks against unauthorized access and modifications.
You can use authorization levels to assign separate rights to different user groups.

Redundant System S7-1500R/H (https://support.industry.siemens.co m/cs/ww/en/view/109754833) System Manual

Integrity protection Password provider

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between STEP 7 and the CPUs.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPUs for possible manipulations of engineering data.
If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.
As an alternative to manual password entry, you can link a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 automatically imports the password for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

18

Equipment Manual, 11/2019, A5E42009333-AB

2.5
2.5.1

Product overview 2.5 Operator controls and display elements
Operator controls and display elements
Front view of the CPU with closed front panel
The figure below shows the front view of the CPU 1513R-1 PN.

 LEDs for the current operating state and diagnostic status of the CPU  Display  Control keys
Figure 2-3 View of the CPU 1513R-1 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPUs. You can find additional information on the temperatures at which the display switches itself on and off in the Technical specifications (Page 33).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

19

Product overview 2.5 Operator controls and display elements
Pulling and plugging the front panel with display You can pull and plug the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of a redundant system S7-1500R/H during operation, personal injury or damage to property can occur in hazardous area zone 2. Before you remove or fit the front panel, always switch off the power supply to the S7-1500R/H redundant system in hazardous area zone 2.
Locking the front panel You can lock the front panel to protect the SIMATIC memory card and the mode selector of the CPU against unauthorized access. You can attach a security seal or a padlock with a hoop diameter of 3 mm to the front panel.

Reference

Figure 2-4 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and the local lock in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

20

Equipment Manual, 11/2019, A5E42009333-AB

2.5.2

Product overview 2.5 Operator controls and display elements
Front view of the CPU without front panel
The figure below shows the operator controls and connection elements of the CPU 1513R-1 PN.



LEDs for the current operating state and diagnostic status of the CPUs



Display connector



Slot for the SIMATIC memory card



Mode selector



LEDs for the 2 ports of the PROFINET interface X1



MAC address of the X1 interface



PROFINET IO interface X1 with 2 ports



Connector for power supply



Fastening screw

Figure 2-5 View of the CPU 1513R-1 PN (without front panel) - front

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

21

Product overview 2.5 Operator controls and display elements

2.5.3

Rear view of the CPU
The figure below shows the connection elements on the rear of the CPU 1513R-1 PN.



Shield contact surface



Plug-in connection for power supply



Plug-in connection for backplane bus



Fastening screw

Figure 2-6 View of the CPU 1513R-1 PN - rear

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

22

Equipment Manual, 11/2019, A5E42009333-AB

Product overview 2.6 Mode selector

2.6

Mode selector

You use the mode selector to:

 Request a change to a specific operating state

 Disable or enable the change of a specific operating state

(if, for example, the mode selector is set to STOP, you cannot switch the CPU to RUN via a communication task configured in the TIA Portal or via the display)

The following table shows the position of the switch and the corresponding meaning.

Table 2- 1
Position RUN STOP MRES

Mode switch settings
Meaning RUN operating state STOP operating state Memory reset

Explanation The CPU has permission to go to RUN. The CPU does not have permission to go to RUN. Position for CPU memory reset.

Reference

You can find a brief overview of the various operating states and system states in the section Status and error display of the CPU (Page 27).
You can find a detailed description of the operating states and system states in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

23

Connecting

3

3.1

Terminal assignment

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1513R-1 PN.

24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory.
The following table shows the signal names and the descriptions of the pin assignment of the 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View Connector

Signal name 1)

Description

1 1L+ 2 1M 3 2M 4 2L+

+ 24 V DC of the supply voltage Ground of the supply voltage Ground of the supply voltage for loop-through 2) + 24 V DC of the supply voltage for loop-through 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally. 2) Maximum 10 A permitted
You can find information on the various supply options in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

24

Equipment Manual, 11/2019, A5E42009333-AB

Connecting 3.1 Terminal assignment
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for a RJ45 connector.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-1 Interface assignments

Additional information
You can find additional information on the topic of "Connecting the CPU" and on the topic "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

Assignment of the MAC addresses
CPU 1513R-1 PN has a PROFINET interface with two ports for each CPU. The PROFINET interface itself has a MAC address, and each of the two PROFINET ports has its own MAC address. There are a total of six MAC addresses for the two CPUs of the CPU 1513R-1 PN.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right side of each CPU 1513R-1 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of MAC addresses using the example of a single CPU

MAC address 1
MAC address 2 MAC address 3

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example)

Labeling
· Front printed · Right-side printed
(start of number range)
---
· Right-side printed (end of number range)

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

25

Connecting 3.1 Terminal assignment
Block diagram The following figure shows the block diagram of the CPU 1513R-1 PN.

 SIMATIC memory card (X50)  Display  Mode selector RUN/STOP/MRES  Electronics  PROFINET 2-port switch  Backplane bus connection
(connection to backplane bus not configurable)
 Internal supply voltage  Supply of the 24 V DC supply voltage (X80)
Figure 3-2 Block diagram of the CPU 1513R-1 PN

PN X1 P1 R PN X1 P2 R L+ M R/S ER
MT X1 P1, X1 P2

PROFINET interface X1 port 1 PROFINET interface X1 port 2 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red)
MAINT LED (yellow) LED Link TX/RX

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

26

Equipment Manual, 11/2019, A5E42009333-AB

Interrupts, diagnostics, error messages and system events

4

4.1

Status and error display of the CPU

The LED displays of the CPU are described below.

You can find more detailed information on "Interrupts" in the STEP 7 online help.

You can find additional information on the topic of "Diagnostics" and "System events" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual and in the system manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

You can find additional information on the topic of "Operating states and system states" as well as various failure scenarios in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

LED display

The figure below shows the LED displays of the CPU 1513R-1 PN.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)
Figure 4-1 LED display of the CPU 1513R-1 PN (without front panel)

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

27

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
LED displays depending on operating states and system states CPU 1513R-1 PN has the following LEDs for displaying the current operating state and diagnostics status.  RUN/STOP LED  ERROR LED  MAINT LED The LEDs indicate the operating state of the respective CPU within the redundant system. Operating states describe the behavior of a single CPU at a specific time. The combination of the operating states of the CPUs forms the system state. The following figure shows the possible operating states of the CPUs and the resulting system states.

Figure 4-2 Operating states and system states

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

28

Equipment Manual, 11/2019, A5E42009333-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
Meaning of the RUN/STOP, ERROR and MAINT LEDs CPU 1513R-1 PN has three LEDs for displaying the current operating state and diagnostics status.
Note LED patterns of the redundant system S7 1500R Note that it is not always possible to: · Determine the state of the CPU from the signal pattern · Determine the state of the other CPU from the signal pattern The "Meaning" column only shows a possible typical cause. To investigate the cause of the signal pattern, use the diagnostic buffer and its display via: · STEP 7 · HMI devices · Displays of the CPUs

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

29

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

Table 4- 1

The following table shows the meaning of the various color combinations for the RUN/STOP, ERROR and MAINT LEDs.
Meaning of the LEDs

RUN/STOP LED LED off
LED flashes yellow/green LED lit yellow
LED flashes yellow LED lit yellow
LED lit yellow
LED flashes yellow/green

ERROR LED LED off
LED flashes red
LED off LED off LED flashes red LED off LED off

MAINT LED LED off
LED flashes yellow
LED lit yellow LED lit yellow LED flashes yellow LED flashes yellow LED lit yellow

Meaning Missing or insufficient supply voltage on the CPU.
Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test CPU is in operating state STOP. Completion of system initialization CPU executes internal activities in an operating state  RUN-Redundant.
CPU defective
Firmware update successfully completed.
The primary CPU is in operating state STARTUP. The backup CPU is in operating state SYNCUP. The backup CPU has not yet been restarted for SYNCUP during this phase.

LED flashes yellow LED lit green

LED off LED off

LED lit green LED lit green LED lit green

LED off LED flashes red LED flashes red

LED off LED lit yellow
LED off LED off LED lit yellow

The CPU performs a warm restart.
Maintenance demanded for the plant. You need to check/replace the affected hardware within a short period of time. The primary CPU is in operating state RUNSyncup. Active Force job PROFIenergy pause The primary CPU is in operating state RUN. The CPU is in operating state RUN-Redundant. There are no events, requirements, errors, etc. A diagnostic event is pending in operating state RUN-Redundant.
A diagnostic event (e.g. failure of an IO device within the PROFINET ring or no access to SIMATIC memory card possible1)) and maintenance is demanded (e.g. interruption of the PROFINET ring).

1) If access to the SIMATIC memory card is not possible in RUN-Redundant (wrong card, card full/write protected), the system switches to RUN-Solo. The ERROR LED flashes for three seconds. The MAINT LED lights up until the RUNRedundant system status is reached again.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

30

Equipment Manual, 11/2019, A5E42009333-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

Note MAINT LED of the two CPUs
The MAINT LEDs of both CPUs only go out when the following conditions are fulfilled: · The CPUs are in the RUN-Redundant system state. · No maintenance is demanded.

Note LED displays in redundant operating state
In the RUN-Redundant system state, the LED displays on both CPUs are identical (exception: you are performing an LED flash test on one CPU).

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various LED patterns of the ports of the CPU 1513R-1 PN.

Table 4- 2 Meaning of LINK RX/TX LED

LINK TX/RX LED off
Flashes green Illuminated green
LED flashes yellow/green

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The redundancy connections were interrupted. The CPU performs an LED flash test.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner. The redundancy connections are OK. Data is currently being received/sent by a communication partner via the PROFINET interface of the PROFINET device. Note that the human eye perceives this LED image as an LED that is lit yellow or flickering yellow.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

31

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
Note "LED" instruction You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 R/H CPUs. You can find additional information on the "LED" instruction in the STEP 7 online help.

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

32

Equipment Manual, 11/2019, A5E42009333-AB

Technical specifications

5

The following table shows the technical specifications as of 11/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7513-1RL00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version Product function · I&M data
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering · Mains/voltage failure stored energy time
Input current Current consumption (rated value) Inrush current, max. I²t
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7513-1RL00-0AB0
CPU 1513R-1 PN FS01 V2.8
Yes; I&M0 to I&M3 No
V16 (FW V2.8) / V15.1 (FW V2.6) or higher
3.45 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
0.7 A 1.9 A; Rated value 0.02 A²·s
5.7 W
1 Yes

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

33

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range · Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs
Nesting depth · per priority class

6ES7513-1RL00-0AB0
300 kbyte 1.5 Mbyte
32 Gbyte
Yes
80 ns 96 ns 128 ns 512 ns
2 000; Blocks (OB, FB, FC, DB) and UDTs
Number range: 1 to 59 999 1.5 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 300 kbyte
0 ... 65 535 300 kbyte
300 kbyte 100 20 20 20 50 100 4 2 1
24

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

34

Equipment Manual, 11/2019, A5E42009333-AB

Technical specifications

Article number Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules I/O address area
· Inputs
· Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max.

6ES7513-1RL00-0AB0
2 048 Yes Any (only limited by the main memory) Yes 2 048 Yes Any (only limited by the main memory) Yes 128 kbyte
16 kbyte 8; 8 clock memory bit, grouped into one clock memory byte Yes No 64 kbyte; max. 16 KB per block 2 048; max. number of modules / submodules 32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image 8 kbyte 8 kbyte 32

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

35

Technical specifications
Article number Hardware configuration
Number of distributed IO systems Number of IO Controllers
· integrated Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

6ES7513-1RL00-0AB0
1
1
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes
1
2 Yes Yes; X1
Yes; IPv4 Yes No Yes; Only Server Yes No Yes; MRP Automanager according to IEC 624392 Edition 2.0

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

36

Equipment Manual, 11/2019, A5E42009333-AB

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Number of connectable IO Devices,
max. Interface types RJ 45 (Ethernet)
· 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED Protocols Number of connections · Number of connections, max. · Number of connections reserved for
ES/HMI/web Redundancy mode
· MRP
· MRPD SIMATIC communication
· S7 communication, as server · S7 communication, as client

6ES7513-1RL00-0AB0
Yes No No Yes No Yes; Only Manager Auto, max. 50 nodes; only 16 are recommended, however No Yes 64
Yes Yes Yes Yes
88 10
Yes; Manager Auto is permanently set in TIA. Max. 50 nodes are possible, 16 are recommended No
Yes No

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

37

Technical specifications

Article number Open IE communication
· TCP/IP ­ Data length, max. ­ several passive connections per port, supported
· ISO-on-TCP (RFC1006) ­ Data length, max.
· UDP ­ Data length, max. ­ UDP multicast
· DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS OPC UA · OPC UA client · OPC UA server Further protocols · MODBUS Media redundancy · Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance

6ES7513-1RL00-0AB0
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
No No
No No
Yes; MODBUS TCP
200 ms; PROFINET MRP 50; Only 16 are recommended, however
No No

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

38

Equipment Manual, 11/2019, A5E42009333-AB

Technical specifications

Article number S7 message functions
Number of login stations for message functions, max. Program alarms Number of configurable program messages, max. Number of loadable program messages in RUN, max. Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics Test commissioning functions
Joint commission (Team Engineering) Status block Single step Number of breakpoints
Status/control · Status/control variable
· Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing
· Forcing, variables
· Number of variables, max. Diagnostic buffer
· present
· Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
· Memory size per trace, max.

6ES7513-1RL00-0AB0
32
Yes 5 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH 2 500
300 100
No Yes; up to 8 simultaneously No 8; Breakpoints are only supported in RUN-Solo status
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Yes Peripheral inputs/outputs 200
Yes 1 000 500
4 512 kbyte

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

39

Technical specifications

Article number Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX Supported technology objects Motion Control Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Altitude during operation relating to sea level · Installation altitude above sea level, max.

6ES7513-1RL00-0AB0
Yes Yes Yes Yes
No
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature Yes No
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

40

Equipment Manual, 11/2019, A5E42009333-AB

Technical specifications

Article number Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ CFC ­ GRAPH Know-how protection · User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7513-1RL00-0AB0
Yes Yes Yes Yes No Yes
Yes
No Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
35 mm 147 mm 129 mm
430 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc. in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

41

Dimension drawing

A

A.1

Dimension drawing
This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.

Dimension drawings of the CPU 1513R-1 PN

Figure A-1 Dimension drawing of the CPU 1513R-1 PN, front and side view

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

42

Equipment Manual, 11/2019, A5E42009333-AB

Dimension drawing A.1 Dimension drawing
Figure A-2 Dimension drawing of the CPU 1513R-1 PN, side view with front panel open

CPU 1513R-1 PN (6ES7513-1RL00-0AB0)

Equipment Manual, 11/2019, A5E42009333-AB

43

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

-
SIMATIC S7-1500 CPU 1515-2 PN (6ES7515-2AM02-0AB0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Connecting up

3

Interrupts, error messages,

diagnostics and system

4

alarms

Technical specifications

5

Dimensional drawing

A

11/2019
A5E46416198-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46416198-AA  11/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1515-2 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

3

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

4

Equipment Manual, 11/2019, A5E46416198-AA

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

5

Table of contents

Preface ...................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide .............................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

New functions in firmware version V2.8................................................................................... 9

2.2

Area of application of the SIMATIC S7-1500 CPUs .............................................................. 13

2.3

Hardware properties .............................................................................................................. 21

2.4

Firmware functions................................................................................................................. 23

2.5 2.5.1 2.5.2 2.5.3

Operating and display elements ............................................................................................ 27 Front view of the CPU with closed front panel....................................................................... 27 Front view of the CPU without front panel or display and view from below........................... 29 Rear view of the CPU ............................................................................................................ 31

2.6

Operating mode buttons ........................................................................................................ 32

3 Connecting up ......................................................................................................................................... 33

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 37

4.1

Status and error display of the CPU ...................................................................................... 37

5 Technical specifications ........................................................................................................................... 41

A Dimensional drawing ............................................................................................................................... 55

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

6

Equipment Manual, 11/2019, A5E46416198-AA

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

7

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

8

Equipment Manual, 11/2019, A5E46416198-AA

Product overview

2

2.1

New functions in firmware version V2.8

This section contains an overview of the most important new firmware functions of the CPU since the last edition of the manual.

New functions of the CPU in firmware version V2.8

New functions IP forwarding
Direct data exchange

Applications
IP forwarding forwards IP data through the CPU from one IP subnet to another IP subnet.
During IP forwarding, the CPU automatically creates an IP route table from the IP configuration in STEP 7.

Customer benefits

Where can I find information?

· Simplified integration of

Communication function manual

devices for remote access, (https://support.industry.siemens.

e.g. for diagnostics during com/cs/ww/de/view/59192925)

remote maintenance or

firmware update

· Simple access from the control level to the field level for configuration and parameter assignment of devices

In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners.

Example: You can access the Web server of a drive connected to the X1 interface of the CPU from a computer connected to the X2 interface of the CPU.
The "Direct data exchange" function enables deterministic, isochronous I/O communication between multiple S7-1500 CPUs.

PROFINET function manual (https://support.industry.siemens. com/cs/ww/en/view/49948856)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

9

Product overview 2.1 New functions in firmware version V2.8

New functions
API (Application Programming Interface)

Applications
The CPU has a web-based API (Application Programming Interface) as an interface for reading and writing CPU data.
The API supports all conventional browsers and command line programs, such as cURL and Wget.

Customer benefits
· Established standard mechanisms for creating Web pages:

Where can I find information?
Web server function manual (https://support.industry.siemens. com/cs/ww/en/view/59193560)

Automation Web Programming commands (AWP commands) are no longer required for output of CPU data
· No dependency between custom Web pages and CPU program:

No synchronization between user program and Web server required by the SFC 99 instruction
· Lower communication load:

A smaller data packet is transferred between server and client (JSON instead of HTML of the custom Web page generated by the CPU). This improves the communication performance. The CPU needs less runtime to generate the information and make it available.
· Secure data traffic:

API exclusively supports the "HTTPS" transfer protocol

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

10

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.1 New functions in firmware version V2.8

New functions Distributed synchronous operation (T-CPUs)
Cross-device trace

Applications
Master value and synchronous axes can be distributed over multiple controllers. Isochronous coupling between the master axis and the following axis via PROFINET IO with IRT. Compensation of delay times for communication and different clock rates.
Coordination of traces on different devices
· Support of multiple CPUs
· Support of different device types
Visualization in a shared chart Support of alternative trigger sources

Customer benefits
· Distribution of high axis configuration limits over different CPUs
· Use on modular machines and multi-axis machines (e.g. printing machines)
· Highly precise synchronous operation across devices
· Extensive trigger options for faster localization of sporadically occurring errors
· Simple combination of related traces

Where can I find information? S7-1500T Motion Control function manuals (https://support.industry.siemens. com/cs/ww/en/view/109751049)
Using the trace and logic analyzer function function manual (https://support.industry.siemens. com/cs/ww/en/view/64897128)

New functions of the CPU in firmware version V2.6

New functions OPC UA client
Isochronous mode for central I/O

Applications

Customer benefits

Where can I find information?

In addition to the OPC UA server, an OPC UA client is integrated in the CPU.
Using the corresponding OPC UA communication instructions, you can:

You can perform, for example, vertical communication to MES systems/cloud services or IO controllerIO controller communication.

Communication function manual (https://support.industry.sie mens.com/cs/ww/de/view/5 9192925)

· Call methods · Read and write data

Isochronous mode is also possible · Optimized controls through con- · PROFINET function

for modules that are inserted next

stant, calculable dead times

manual

to the CPU in a centralized configuration. In this way, you can implement the following functions, for example:
· Dynamic control tasks
· Measuring input
· Cam

· · ·

Determinism, reliable reproducibility of response times
Consistent (simultaneous) reading in of input data
Consistent (simultaneous) output of output data

·

(https://support.industry .siemens.com/cs/ww/en /view/49948856)
Isochronous mode function manual (https://support.industry .siemens.com/cs/ww/en

· Dosing processes, high-speed

/view/109755401)

analog value acquisition with

· S7-1500T Motion Con-

oversampling

trol function manuals

(https://support.industry

.siemens.com/cs/ww/en

/view/109751049)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

11

Product overview 2.1 New functions in firmware version V2.8

New functions of the CPU in firmware version V2.5

New functions
Testing with breakpoints

Applications

Customer benefits

Testing SCL and STL program

·

code with the help of breakpoints.

When testing with breakpoints, you execute a program from one

·

breakpoint to another.

Localization of logic errors step by step
Simple and quick analysis of complex programs prior to actual commissioning

Where can I find information?
S7-1500, ET 200MP system manual (https://support.industry.sie mens.com/cs/ww/en/view/5 9191792)

· Recording of current values within individual executed loops

· Use of breakpoints for program validation also possible in SCL/STL networks within LAD/FBD blocks

Arithmetic functions for trace

In the case of completed meas- · Generation of unavailable infor-

urements, you can combine the

mation

measured signals mathematically

with each other and thus generate · Post-processing of measure-

signals that were not recorded.

ments

· Measurement of signal paths

(e.g. mean value)

· Using the trace and logic analyzer function function manual (https://support.industry .siemens.com/cs/ww/en /view/64897128)
· Web server function manual (https://support.industry .siemens.com/cs/ww/en /view/59193560)

Importing and exporting ASCII files

Using the FileReadC function, you can read out a binary file (ASCII file) in the user program which was stored on the SIMATIC memory card of the CPU via the Web server.
Using the FileWriteC function, you can store a binary file (ASCII file) on the memory card of the CPU using the user program; this file can be read via the Web server.

Complex file structures are used in free ASCII format on the SIMATIC memory card, e.g. to:
· Read in recipes for which CSV is not flexible enough
· Read in complex parameter assignments or configuration files
· Output complex files for documentation

STEP 7 online help

Sending encrypt- It is possible to send encrypted

High security through encrypted

ed emails

emails via the integrated interfaces transmission of data

of the CPU

Reference

You can find an overview of all new functions, improvements and revisions in the respective firmware versions on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478459).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

12

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

2.2

Area of application of the SIMATIC S7-1500 CPUs

Area of application SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation. SIMATIC S7-1500 is the cost-effective and convenient solution for a broad range of tasks and offers the following advantages:  Modular, fanless design  Simple realization of distributed structures  User-friendly handling Areas of application of the SIMATIC S7-1500 automation system include, for example:  Special-purpose machines  Textile machinery  Packaging machines  General mechanical engineering  Controller engineering  Machine tool engineering  Installation engineering  Electrical industry and crafts  Automobile engineering  Water/waste water  Food & Beverage Areas of application of the SIMATIC S7-1500R/H redundant system include, for example:  Tunnels  Airports (e.g. baggage conveyors)  Subways  Shipbuilding  Wastewater treatment plants  High-bay warehouses

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

13

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Areas of application of the SIMATIC S7-1500T automation system for advanced motion control applications include, for example:
 Packaging machines
 Converting applications
 Assembly automation
 Pick-and-place automation
 Palletizers
You can choose between CPUs with various levels of performance and a comprehensive range of modules with many convenient functions. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial suitability due to the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500, S7-1500R/H and S7-1500T automation systems.

Performance segments of the CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU

Performance segment

CPU 1511-1 PN Standard CPU for small to mid-range applications

CPU 1513-1 PN Standard CPU for mid-range applications

CPU 1515-2 PN Standard CPU for mid-range to large applications

CPU 15163 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 15173 PN/DP

Standard CPU for demanding applications and communication tasks

PROFIBUS interfaces
---1
1

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT inter-
face
--

Basic PROFINET functionality
--

Work memory
1.15 MB

1

--

--

1.8 MB

1

1

--

3.5 MB

1

1

--

6 MB

1

1

--

10 MB

Processing time for bit operations
60 ns
40 ns
30 ns
10 ns
2 ns

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

14

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

CPU
CPU 15184 PN/DP
CPU 15184 PN/DP MFP

Performance segment

PROFIBUS interfaces

Standard CPU for

1

high-performance

applications, demand-

ing communication

tasks and very short

reaction times

Standard CPU for

1

high-performance

applications, demand-

ing communication

tasks, very short reac-

tion times and C/C++

blocks for the user

program

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT inter-
face
1

Basic PROFINET functionality
1

1

1

1

* 50 MB of the integrated work memory is reserved for the function library of CPU runtime

Work memory
24 MB
74* MB

Processing time for bit operations
1 ns
1 ns

Table 2- 2 Redundant CPUs

CPU
CPU 1513R1 PN
CPU 1515R2 PN
CPU 1517H3 PN

Performance segment
Redundant CPU for smaller to mid-range applications Redundant CPU for mid-range to large applications Redundant CPU for demanding applications and communication tasks

PROFIBUS interfaces
--
--
--

PROFINET IO RT/IRT interfaces
1
1
1

PROFINET IO RT
interface
--
--
--

Basic PROFINET functionality
--
1
1

Work memory
1.8 MB

Processing time for bit operations
80 ns

3.5 MB

60 ns

10 MB

4 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C1 PN
CPU 1512C1 PN

Performance segment
Compact CPU for small to mid-range applications Compact CPU for midrange applications

PROFIBUS interfaces
--
--

PROFINET IO RT/IRT interfaces
1
1

PROFINET IO RT
interface
--
--

Basic PROFINET functionality
--
--

Work memory
1.175 M B

Processing time for bit operations
60 ns

1.25 MB

48 ns

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

15

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Table 2- 4 Fail-safe CPUs

CPU
CPU 1511F1 PN
CPU 1511TF1 PN
CPU 1513F1 PN CPU 1515F2 PN
CPU 1515TF2 PN
CPU 1516F3 PN/DP
CPU 1516TF3 PN/DP
CPU 1517F3 PN/DP

Performance segment
Fail-safe CPU for small to mid-range applications
Fail-safe technology CPU for small to midrange applications
Fail-safe CPU for midrange applications
Fail-safe CPU for midrange to large applications
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

Basic PROFINET functionality
--

Work memory
1.225 MB

--

1

--

--

1.225 MB

--

1

--

--

1.95 MB

--

1

1

--

3.75 MB

--

1

1

--

3.75 MB

1

1

1

--

6.5 MB

1

1

1

--

6.5 MB

1

1

1

--

11 MB

Processing time for bit operations
60 ns 60 ns 40 ns 30 ns 30 ns
10 ns
10 ns
2 ns

CPU 1517TF- Fail-safe technology

1

1

1

--

3 PN/DP

CPU for demanding

applications and com-

munication tasks

CPU 1518F-

Fail-safe CPU for high-

1

1

1

1

4 PN/DP

performance applica-

tions, demanding com-

munication tasks and

very short reaction

times

CPU 1518F-

Fail-safe CPU for high-

1

1

1

1

4 PN/DP MFP performance applica-

tions, demanding com-

munication tasks, very

short reaction times and

C/C++ blocks for the

user program

* 50 MB of the integrated work memory is reserved for the function library of CPU runtime

11 MB

2 ns

26 MB

1 ns

76* MB

1 ns

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

16

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Table 2- 5 Technology CPUs

CPU
CPU 1511T1 PN
CPU 1515T2 PN
CPU 1516T3 PN/DP
CPU 1517T3 PN/DP
CPU 1511TF1 PN CPU 1515TF2 PN CPU 1516TF3 PN/DP CPU 1517TF3 PN/DP

Performance segment PROFIBUS PROFINET

interfaces

IO RT/IRT interfaces

Technology CPU for

--

1

small to mid-range

applications

Technology CPU for

--

1

mid-range to large ap-

plications

Technology CPU for

1

1

high-end applications

and communication

tasks

Technology CPU for

1

1

complex applications

and communication

tasks

These CPUs are described in the fail-safe CPUs

PROFINET IO RT
interface
--
1
1
1

Basic PROFINET functionality
--
--
--
--

Work memory
1.225 M B

Processing time for bit operations
60 ns

3.75 MB

30 ns

6.5 MB

10 ns

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meters Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

17

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs
Integrated Motion Control technology functions All CPUs of the SIMATIC S7-1500 automation system support motion control technology functions. STEP 7 provides PLCopen-standardized Motion Control instructions for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Cam  Cam track  Measuring input The technology CPUs of the SIMATIC S7-1500-automation system offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at the following axis ­ Camming  Up to 4 encoder or measuring systems as actual position for position control  Cam  Kinematics for control of: ­ Cartesian portals ­ Roller pickers ­ Jointed-arm robots ­ Delta pickers ­ SCARA robots Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller series offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 controller series has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimum control quality.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

18

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). With the CPU 1511C-1 PN and CPU 1512C-1 PN compact CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.

Redundant CPUs
The CPUs of the S7-1500R/H redundant system offer a high degree of reliability and system availability. A redundant configuration of the most important automation components reduces the likelihood of production downtimes and the consequences of component errors.
The higher the risks and costs of a production downtime, the more worthwhile the use of a redundant system. The avoidance of production downtimes compensates for the generally higher investment costs.

Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.

Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2015 or EN ISO 13849-1:2015
Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

19

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are shown on the display directly in plain text. When performing servicing, you can minimize plant downtimes by quickly accessing the diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (https://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplify storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the SIMATIC S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information and alarms from the drives are displayed consistently and in plain text:
 On the CPU display
 In STEP 7
 On the HMI
 On the Web server
This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages defined for the CPU. If you require alarm texts in additional languages, you can load them into your HMI via the configured connection. The CPU, STEP 7 and your HMI ensure data consistency without additional engineering steps. The maintenance work is easier.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

20

Equipment Manual, 11/2019, A5E46416198-AA

2.3

Hardware properties

Article number 6ES7515-2AM02-0AB0

View of the module The figure below shows the CPU 1515-2 PN.

Product overview 2.3 Hardware properties

Figure 2-1 CPU 1515-2 PN product image
Note Protective film Please note that the CPU is supplied with a removable protective film on the display.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

21

Product overview 2.3 Hardware properties

Properties

The CPU 1515-2 PN has the following technical properties:

Property CPU display
Supply voltage
PROFINET IO PROFINET interface (X1 P1R and X1 P2R) PROFINET interface (X2 P1) Operation of the CPU as · IO controller · I-device

Description All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and make further network settings. The display shows occurring error messages directly in plain text. In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S71500 Display Simulator are shown on the display.
The 24 V DC supply voltage is fed in via a 4-pin plug located at the bottom of the CPU.

Additional information
· S7-1500, ET 200MP system manual (https://support.industry.siemens. com/cs/ww/en/view/59191792)
· SIMATIC S7-1500 Display Simulator (https://www.automation.siemens .com/salesmaterialas/interactive-manuals/gettingstarted_simatic-s71500/disp_tool/start_en.html)
· Section Connecting up (Page 33)
· S7-1500, ET 200MP system manual (https://support.industry.siemens. com/cs/ww/en/view/59191792)

The interface has two ports. In addition to basic

PROFINET

PROFINET functionality, it also supports PROFINET IO (https://support.industry.siemens.co

RT (real time) and IRT (isochronous real time).

m/cs/ww/es/view/49948856) function

The interface has one port. In addition to basic

manual

PROFINET functionality, it also supports PROFINET IO

RT (real time).

· IO controller: As an IO controller, the CPU addresses the connected IO devices

· I-device: As an I-device (intelligent IO device), the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

22

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

The CPU 1515-2 PN supports the following firmware functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA

Description
The system automatically generates the alarms for the system diagnostics and outputs these alarms via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.
The Web server lets you access the CPU data by means of a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

Additional information
Diagnostics (https://support.industry.siemens. com/cs/ww/en/view/59192926) function manual
· Web server function manual (https://support.industry.siem ens.com/cs/ww/en/view/5919 3560)
· Security with SIMATIC S7 controllers system manual (https://support.industry.siem ens.com/cs/ww/en/view/9088 5010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.
The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.
The trace recording can also be displayed through the Web server.
With OPC UA, data is exchanged via an open and vendorneutral communication protocol.
The CPU can act as OPC UA server. The CPU can communicate with OPC UA clients as an OPC UA server.
In turn, the CPU can access an OPC UA server as OPC UA client, allow the OPC UA server to run methods and read out information from the OPC UA server.
Through OPC UA Companion Specification, methods can be specified in a uniform and vendor-neutral way. The specified methods enable you to integrate devices from a wide range of manufacturers into your plants and production processes more easily.

Using the trace and logic analyzer function (http://support.automation.sieme ns.com/WW/view/en/64897128) function manual
Communication (https://support.industry.siemens. com/cs/ww/en/view/59192925) function manual

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

23

Product overview 2.4 Firmware functions

Function Configuration control
PROFINET IO RT (real time)
IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)

Description
You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means especially in series machine manufacturing you have the option of operating/configuring different configuration variants of a machine with a single project.

Additional information
S7-1500, ET 200MP system manual (https://support.automation.siem ens.com/WW/view/en/59191792)

RT prioritizes PROFINET IO frames over standard frames. This ensures the required determinism in the automation technology. In this process, the data is transferred via prioritized Ethernet frames.

PROFINET (https://support.industry.siemens. com/cs/ww/en/view/49948856) function manual

A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loads (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.

The Isochronous mode system property records measured values and process data and processes the signals in a fixed system clock. Isochronous mode contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no ring reconfiguration time.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

24

Equipment Manual, 11/2019, A5E46416198-AA

Product overview 2.4 Firmware functions

Function Shared device
PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. The goal is that the process is only provided with the energy that is absolutely required. Most of the energy is saved by the process. The PROFINET device itself only contributes a few watts to the savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs

S7-1500T Motion Control Function Manual (https://support.industry.siemens. com/cs/ww/de/view/109766459)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for positioning of a drive with closedloop position control

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and event-dependent sensing of actual positions

· PID Compact (continuous PID controller)

PID control

· PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens. com/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and cool- function manual

ing with two separate actuators)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

25

Product overview 2.4 Firmware functions

Function Integrated safety Know-how protection Copy protection
Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks with the serial number of one or more SIMATIC memory cards or the serial number of one or more CPUs. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP (https://support.automation.siem ens.com/WW/view/en/59191792) system manual

You can use authorization levels to assign separate rights to different users.

The CPUs feature integrity protection by default. Integrity protection identifies possible manipulation of engineering data on the SIMATIC memory card or during data transfer between STEP 7 and the CPU.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulation of engineering data.
If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input, you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads in the password automatically for the blocks. This saves you time.

· Optimum block protection because the users themselves do not know the password.

Reference

You can find additional information on the topic of "Integrated security/Access protection" in the S7-1500/ET 200MP system manual (https://support.automation.siemens.com/WW/view/en/59191792).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

26

Equipment Manual, 11/2019, A5E46416198-AA

2.5
2.5.1

Operating and display elements

Product overview 2.5 Operating and display elements

Front view of the CPU with closed front panel
The following figure shows the front view of the CPU 1515-2 PN.

 LEDs for the current operating mode and diagnostic status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1515-2 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 41).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

27

Product overview 2.5 Operating and display elements
Removing and fitting the front panel or the display You can remove and fit the front panel or the display during operation.
WARNING Personal injury and damage to property may occur Personal injury or material damage can occur in zone 2 hazardous areas if you remove or fit the display while the S7-1500 automation system is running. Before you remove or insert the display in zone 2 hazardous areas, always make sure that the power supply to the S7-1500 automation system is switched off.
Locking the front panel You can lock the front panel to protect the SIMATIC memory card and the operating mode buttons of the CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

28

Equipment Manual, 11/2019, A5E46416198-AA

2.5.2

Product overview 2.5 Operating and display elements
Front view of the CPU without front panel or display and view from below
The following figure shows the operator controls and connection elements of the CPU 1515-2 PN.

 LEDs for the current operating mode and diagnostic status of the CPU  Connector for the display  Arrow keys  LED displays for the PROFINET interface  STOP and RUN operating mode buttons  STOP-ACTIVE LED  Connector for the supply voltage
Figure 2-4 View of the CPU 1515-2 PN (without front panel or display) - front
Note Removing the display
Only remove the display if it is faulty.
You can find information on removing and replacing displays in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

29

Product overview 2.5 Operating and display elements
 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  PROFINET IO interface (X2) with 1 port  Connector for supply voltage  Fastening screw
Figure 2-5 View of the CPU 1515-2 PN - bottom

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

30

Equipment Manual, 11/2019, A5E46416198-AA

2.5.3

Product overview 2.5 Operating and display elements
Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1515-2 PN.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-6 View of the CPU 1515-2 PN - rear

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

31

Product overview 2.6 Operating mode buttons

2.6

Operating mode buttons

You use the operating mode buttons to:

 Request a change to a specific operating state

 Disable or enable the change to a specific operating state

(if the operating mode button STOP is active, for example, you cannot switch the CPU to RUN via a communication task configured in the TIA Portal or the display)

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 6 Meaning of the operating mode buttons

Operation of the operating mode buttons
RUN
STOP
1. Press the operating mode button STOP.
Result: The RUN/STOP LED lights up yellow. 2. Press the operating mode button STOP until the RUN/STOP LED lights up for the 2nd time and remains continuously lit (this takes three seconds). After this, release the button. 3. Press the operating mode button STOP again within the next three seconds.

Meaning

Explanation

RUN mode STOP mode
Manual memory reset (with SIMATIC memory card inserted) or Reset to factory settings (without inserted SIMATIC memory card)

The CPU has permission to go to RUN. The CPU does not have permission to go to RUN. The CPU is executing a memory reset.
or The CPU is being reset to factory settings. You can find additional information in the S71500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/vi ew/59191792).

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

32

Equipment Manual, 11/2019, A5E46416198-AA

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1515-2 PN.

24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory.
The following table shows the signal names and the descriptions of the pin assignment for a 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View Connector

Signal name 1)

Designation

1 1L+ 2 1M 3 2M 4 2L+

+ 24 V DC of the supply voltage Ground of the supply voltage Ground of the supply voltage for loop-through 2) + 24 V DC of the supply voltage for loop-through 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally 2) Maximum 10 A permitted
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

33

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1R and X1 P2R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interface X2 with 1 port (X2 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Removing the PROFINET plug You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

Removing the display
You can find a description of how to remove and replace the display in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

34

Equipment Manual, 11/2019, A5E46416198-AA

Connecting up

Assignment of the MAC addresses
CPU 1515-2 PN has two PROFINET interfaces, with the first interface having two ports. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1515-2 PN therefore has five MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right side of each CPU 1515-2 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment PROFINET interface X1 (visible in STEP 7 in accessible devices)
Port X1 P1R (required for LLDP, for example) Port X1 P2R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 in accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front printed · Right side printed
(start of number range) ----Front printed
Right side printed (end of number range)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

35

Connecting up
Block diagram The following figure shows the block diagram of the CPU 1515-2 PN.

     
PN X1 P1R
PN X1 P2R
PN X2 P1

CPU with control and operating mode buttons Display Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage PROFINET interface X1 port 1 PROFINET interface X1 port 2 PROFINET interface X2 port 1

Figure 3-1 Block diagram of the CPU 1515-2 PN

X50 X80 24 V DC L+ M SA R/S ER MT X1 P1, X1 P2, X2 P1

SIMATIC memory card Infeed of supply voltage 24 V DC supply voltage Ground STOP-ACTIVE LED (yellow) RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

36

Equipment Manual, 11/2019, A5E46416198-AA

Interrupts, error messages, diagnostics and system alarms

4

The LED displays of the CPU 1515-2 PN are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1515-2 PN LEDs.

 RUN/STOP LED (green/yellow LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)  STOP-ACTIVE LED
Figure 4-1 LED displays of the CPU 1515-2 PN (without front panel and display)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

37

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1515-2 PN has three LEDs for displaying the current operating state and diagnostic status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green LED lit green LED lit yellow LED lit yellow LED lit yellow LED lit yellow

LED off LED flashes red LED flashes red
LED off LED off LED flashes red

LED flashes yellow

LED off

LED flashes yellow/green

LED off

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode. There are no events, requirements, errors, etc. A diagnostics event is pending.
Maintenance demanded for the plant. You need to check/replace the affected hardware within a short period of time. Active Force job PROFIenergy pause Bad configuration
An error has occurred.

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. The CPU has detected an error state. Additional information is available via the CPU diagnostic buffer. CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU is executing a program with active breakpoint. Startup (transition from STOP  RUN)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

38

Equipment Manual, 11/2019, A5E46416198-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the CPU 1515-2 PN ports.

Table 4- 2 Meaning of the LED

LINK TX/RX LED LED off
LED flashes green LED lit green LED flashes yellow/green

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The CPU is performing an "LED flash test".
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received/sent by a communication partner in the Ethernet via the PROFINET interface of the PROFINET device.

Note "LED" instruction
You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 CPUs.
You can find additional information on the "LED" instruction in the STEP 7 online help.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

39

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of STOP-ACTIVE LED The following table shows the meaning of the STOP-ACTIVE LED of the CPU 1515-2 PN.

Table 4- 3 Meaning of the LED

STOP-ACTIVE LED LED lit yellow
LED off

Meaning The CPU has been switched to STOP mode using the STOP button.
· As long as the STOP-ACTIVE LED is lit up, switching the CPU to RUN mode is only possible using the RUN button.
· The CPU can then no longer be set to RUN mode via display operation or via online functions. The state of the buttons is retained at power-off. If the CPU does not start up automatically after a power-on, you have to keep the STOP button pressed during startup until the STOP-ACTIVE LED is activated.
· If an automatic startup is to be reliably prevented after a power-on, the STOP button has to be kept pressed during the startup of the CPU until the STOP-ACTIVE LED is activated.
· The CPU has been set to STOP mode using the display or programming device/PC and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

40

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

5

The following table shows the technical specifications as of 11/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7515-2AM02-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version Product function · I&M data
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode buttons
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering · Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t

6ES7515-2AM02-0AB0
CPU 1515-2 PN FS01 V2.8
Yes; I&M0 to I&M3 Yes; Distributed and central; with minimum OB 6x cycle of 500 µs (distributed) and 1 ms (central)
V16 (FW V2.8); with older TIA Portal versions configurable as 6ES7515-2AM01-0AB0
Yes
6.1 cm
8 2
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.8 A 1.1 A 2.4 A; Rated value 0.02 A²·s

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

41

Technical specifications

Article number Power
Infeed power to the backplane bus Power consumption from the backplane bus (balanced) Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory · integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.

6ES7515-2AM02-0AB0
12 W 6.2 W
6.3 W
1 Yes
500 kbyte 3 Mbyte
32 Gbyte
Yes
30 ns 36 ns 48 ns 192 ns
6 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 3 Mbyte; For DBs with absolute addressing, the max. size is 64 KB
0 ... 65 535 500 kbyte
0 ... 65 535 500 kbyte

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

42

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

Article number OB
· Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm
OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs Nesting depth · per priority class Counters, timers and their retentivity S7 counter · Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable

6ES7515-2AM02-0AB0 500 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 2 2
100 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

43

Technical specifications

Article number Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max. · Number of clock memories
Data blocks · Retentivity adjustable · Retentivity preset
Local data · per priority class, max.
Address area Number of IO modules
I/O address area · Inputs · Outputs
per integrated IO subsystem ­ Inputs (volume) ­ Outputs (volume)
per CM/CP ­ Inputs (volume) ­ Outputs (volume)
Subprocess images · Number of subprocess images, max.
Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM

6ES7515-2AM02-0AB0
512 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 472 KB 3 Mbyte; When using PS 6 0W 24/48/60 V DC HF
16 kbyte 8; 8 clock memory bit, grouped into one clock memory byte
Yes No
64 kbyte; max. 16 KB per block
8 192; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

44

Equipment Manual, 11/2019, A5E46416198-AA

Article number Rack
· Modules per rack, max. · Number of lines, max. PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

Technical specifications
6ES7515-2AM02-0AB0
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes Yes Yes
2
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes; Optionally also encrypted Yes Yes

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

45

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication

6ES7515-2AM02-0AB0 Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Direct data exchange ­ IRT

Yes; Requirement: IRT and isochronous mode (MRPD optional)
Yes

­ MRP ­ MRPD

Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes; per user program

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.
­ Of which IO devices with IRT, max.

256; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
64

­ Number of connectable IO Devices for 256 RT, max.

­ of which in line, max.

256

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is decisive 500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

46

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

Article number Update time for RT
­ for send cycle of 250 µs ­ for send cycle of 500 µs ­ for send cycle of 1 ms ­ for send cycle of 2 ms ­ for send cycle of 4 ms PROFINET IO Device Services ­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Shared device ­ Number of IO Controllers with shared
device, max. ­ Asset management record 2. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

6ES7515-2AM02-0AB0
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes; per user program Yes 4
Yes; per user program
1 No Yes; X2
Yes; IPv4 Yes Yes Yes Yes; Optionally also encrypted Yes No

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

47

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication

6ES7515-2AM02-0AB0 Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Direct data exchange

No

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes; per user program

­ Prioritized startup

No

­ Number of connectable IO Devices, max.
­ Number of connectable IO Devices for RT, max.

32; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
32

­ of which in line, max.

32

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for RT ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes; per user program

­ Prioritized startup

No

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; per user program

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

48

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

Article number Interface types RJ 45 (Ethernet)
· 100 Mbps

6ES7515-2AM02-0AB0 Yes

· Autonegotiation

Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

192; via integrated interfaces of the CPU and connected CPs / CMs
10

· Number of connections via integrated inter- 108 faces

· Number of S7 routing paths

16

Redundancy mode

· H-Sync forwarding

Yes

SIMATIC communication

· S7 communication, as server

Yes

· S7 communication, as client

Yes

· User data per job, max.
Open IE communication · TCP/IP

See online help (S7 communication, user data size)
Yes

­ Data length, max.

64 kbyte

­ several passive connections per port, Yes supported

· ISO-on-TCP (RFC1006)

Yes

­ Data length, max.

64 kbyte

· UDP

Yes

­ Data length, max.

2 kbyte; 1 472 bytes for UDP broadcast

­ UDP multicast

Yes; Max. 5 multicast circuits

· DHCP

No

· SNMP

Yes

· DCP

Yes

· LLDP

Yes

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

49

Technical specifications

Article number Web server
· HTTP

6ES7515-2AM02-0AB0 Yes; Standard and user pages

· HTTPS

Yes; Standard and user pages

OPC UA

· Runtime license required

Yes

· OPC UA client

Yes

­ Application authentication

Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of connections, max.

10

­ Number of nodes of the client interfac- 2 000 es, max.

­ Number of elements for one call of

300

OPC_UA_NodeGetHandleList/OPC_UA

_ReadList/OPC_UA_WriteList, max.

­ Number of elements for one call of

20

OPC_UA_NameSpaceGetIndexList,

max.

­ Number of elements for one call of

100

OPC_UA_MethodGetHandleList, max.

­ Number of simultaneous calls of the cli- 1 ent instructions per connection (except OPC_UA_ReadList,OPC_UA_WriteList, OPC_UA_MethodCall), max.

­ Number of simultaneous calls of the cli- 5 ent instructions OPC_UA_ReadList,OPC_UA_WriteList and OPC_UA_MethodCall, max.

­ Number of registerable nodes, max.

5 000

­ Number of registerable method calls of 100 OPC_UA_MethodCall, max.

­ Number of inputs/outputs when calling 20 OPC_UA_MethodCall, max.

· OPC UA server ­ Application authentication

Yes; Data access (read, write, subscribe), method call, custom address space
Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of sessions, max.

48

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

50

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

Article number ­ Number of accessible variables, max.

6ES7515-2AM02-0AB0 100 000

­ Number of registerable nodes, max.

20 000

­ Number of subscriptions per session, 20 max.

­ Sampling interval, min.

100 ms

­ Publishing interval, min.

200 ms

­ Number of server methods, max.

50

­ Number of inputs/outputs per server

20

method, max.

­ Number of monitored items, max. ­ Number of server interfaces, max.

2 000; for 1 s sampling interval and 1 s send interval
10; or 20, depending on type of server interface

­ Number of nodes for user-defined serv- 5 000 er interfaces, max.

Further protocols · MODBUS

Yes; MODBUS TCP

Media redundancy · Switchover time on line break, typ.

200 ms; For MRP, bumpless for MRPD

· Number of stations in the ring, max.

50

Isochronous mode
Isochronous operation (application synchronized up to terminal)
Equidistance
S7 message functions
Number of login stations for message functions, max.
Program alarms
Number of configurable program messages, max.
Number of loadable program messages in RUN, max.
Number of simultaneously active program alarms
· Number of program alarms

Yes; Distributed and central; with minimum OB 6x cycle of 500 µs (distributed) and 1 ms (central) Yes
64
Yes 10 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH 5 000
800

· Number of alarms for system diagnostics 200

· Number of alarms for motion technology 160 objects

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

51

Technical specifications

Article number Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.
Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · STOP ACTIVE LED · Connection display LINK TX/RX

6ES7515-2AM02-0AB0
Yes; Parallel online access possible for up to 8 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 3 200 500
4; Up to 512 KB of data per trace are possible
Yes Yes Yes Yes Yes

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

52

Equipment Manual, 11/2019, A5E46416198-AA

Technical specifications

Article number

6ES7515-2AM02-0AB0

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

2 400

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter

7
14
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

Standards, approvals, certificates Suitable for safety functions
Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.

No
-25 °C; No condensation 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off -25 °C; No condensation 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

53

Technical specifications

Article number Ambient temperature during storage/transportation
· min.
· max. Altitude during operation relating to sea level
· Installation altitude above sea level, max.
Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7515-2AM02-0AB0
-40 °C 70 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual
Yes Yes Yes Yes Yes
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
70 mm 147 mm 129 mm
830 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

54

Equipment Manual, 11/2019, A5E46416198-AA

Dimensional drawing

A

This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings for CPU 1515-2 PN

Figure A-1 Dimensional drawing of the CPU 1515-2 PN

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

Equipment Manual, 11/2019, A5E46416198-AA

55

Dimensional drawing
Figure A-2 CPU with open front panel

CPU 1515-2 PN (6ES7515-2AM02-0AB0)

56

Equipment Manual, 11/2019, A5E46416198-AA

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

SIMATIC
S7-1500R/H CPU 1515R-2 PN (6ES7515-2RM00-0AB0)
Equipment Manual

Preface

S7-1500R/H Documentation Guide

1

Product overview

2

Connecting

3

Interrupts, diagnostics, error

messages and system

4

events

Technical specifications

5

Dimension drawing

A

11/2019
A5E42009914-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E42009914-AB  10/2019 Subject to change

Copyright © Siemens AG 2018 - 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500R/H redundant system and the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1515R-2 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

3

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

4

Equipment Manual, 11/2019, A5E42009914-AB

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

5

Table of contents

Preface ...................................................................................................................................................... 3

1 S7-1500R/H Documentation Guide............................................................................................................ 7

2 Product overview ....................................................................................................................................... 9

2.1

New functions in firmware version V2.8................................................................................... 9

2.2

Configuration and operating principle .................................................................................... 11

2.3

Hardware properties .............................................................................................................. 13

2.4

Firmware functions................................................................................................................. 17

2.5 2.5.1 2.5.2 2.5.3

Operator controls and display elements ................................................................................ 20 Front view of the CPU with closed front panel....................................................................... 20 Front view of the CPU without front panel ............................................................................. 22 Rear view of the CPU ............................................................................................................ 23

2.6

Mode selector......................................................................................................................... 24

3 Connecting .............................................................................................................................................. 25

3.1

Terminal assignment.............................................................................................................. 25

4 Interrupts, diagnostics, error messages and system events .................................................................... 29

4.1

Status and error display of the CPU ...................................................................................... 29

5 Technical specifications ........................................................................................................................... 34

A Dimension drawing .................................................................................................................................. 43

A.1

Dimension drawing ................................................................................................................ 43

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

6

Equipment Manual, 11/2019, A5E42009914-AB

S7-1500R/H Documentation Guide

1

The documentation for the redundant S7-1500R/H system is divided into three areas. This division enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the redundant S7-1500R/H system. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the redundant S7-1500R/H system, e.g. diagnostics, communication.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

7

S7-1500R/H Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the redundant S7-1500R/H system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

8

Equipment Manual, 11/2019, A5E42009914-AB

Product overview

2

2.1

New functions in firmware version V2.8

This section contains an overview of the most important new firmware functions of the CPU since the last edition of the manual.

New functions of the CPU in firmware version V2.8

New functions

Customer benefits

Download modified user program in RUNRedundant system state

You can download a modified user program into the R/H CPUs in the RUN-Redundant system state.
Advantage: The redundant system will remain consistently in the RUN-Redundant system state during the change to the user program. The system state will not switch to RUN-Rolo or SYNCUP.

Backing up the configuration of the S7-1500R/H redundant system in runtime

You do not have to interrupt the process during a backup while the plant is running. Uninterrupted plant operation avoids high restart and material costs.

Where can I find information?
S7-1500R/H System Manual (https://support.industry.siemens.com/c s/ww/en/view/109754833)

Switched S1 device Testing with breakpoints

The "Switched S1 device" function of the CPU enables operation of standard IO devices in the S71500R/H redundant system.
When testing with breakpoints, you run a program from breakpoint to breakpoint in the STARTUP (startup OB) or RUN-Solo system state. Testing with breakpoints provides you with the following advantages:
· Testing SCL and STL program code with the help of breakpoints
· Localization of logic errors step by step
· Simple and quick analysis of complex programs prior to actual commissioning
· Recording of current values within individual executed loops
· Using breakpoints for program validation is also possible in SCL or STL networks within LAD/FBD blocks.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

9

Product overview 2.1 New functions in firmware version V2.8

New functions PID controller
Alarms in the user program

Customer benefits
PID controllers are built into all R/H-CPUs as standard. PID controllers measure the actual value of a physical variable, for example, temperature or pressure, and compare the actual value with the setpoint. Based on the resulting error signal, the controller calculates a manipulated variable that causes the process value to reach the setpoint as quickly and stably as possible.
The PID controllers offer you the following advantages:

Where can I find information?
· S7-1500R/H System Manual (https://support.industry.siemens.co m/cs/ww/en/view/109754833)
· PID Control Function Manual (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· Simple configuration and programming through integrated editors and blocks

· Simple simulation, visualization, commissioning and operation via PG and HMI

· Automatic calculation of the control parameters and tuning during operation

· No additional hardware and software required

Alarms enable you to display events from process execution in the S7-1500R/H redundant system and to quickly identify, accurately locate, and correct errors.

Diagnostics function manual (https://support.industry.siemens.com/c s/ww/en/view/59192926)

Additional information
You can find an overview of all new functions, improvements and revisions in the respective firmware versions on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478459).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

10

Equipment Manual, 11/2019, A5E42009914-AB

Product overview 2.2 Configuration and operating principle

2.2

Configuration and operating principle

Structure

The S7-1500R redundant system consists of the following components:  Two CPUs of the type CPU 1515R-2 PN  Two SIMATIC memory cards  PROFINET cable (redundancy connections, PROFINET ring)  IO devices  Load power supply (optional)  System power supply (optional) You mount the CPUs on a common mounting rail or spatially separated on two separate mounting rails. You connect the two CPUs and the IO devices in a PROFINET ring via the PROFINET cable.



Optional load current supply



First CPU



Mounting rail with integrated DIN rail profile



Second CPU



PROFINET cable (redundancy connections, PROFINET ring)

Figure 2-1 Configuration example for S7-1500R

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

11

Product overview 2.2 Configuration and operating principle
Note Standard rail adapter You mount the CPUs on a standardized 35 mm rail using the standard rail adapter. You will find information on mounting the standard rail adapter in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) System Manual.
Principle of operation One of the two CPUs in the redundant system takes on the role of CPU for process control (primary CPU). The other CPU takes on the role of the following CPU (backup CPU). The assigned role of the CPUs can change during operation. Synchronization of all relevant data between primary CPU and backup CPU ensures fast switching between CPUs in the event of a primary CPU failure. If the primary CPU fails, the backup CPU retains control of the process as the new primary CPU at the point of interruption. The redundancy connections are the PROFINET ring with MRP. The CPUs are synchronized via a PROFINET ring.
Additional information You can find a detailed description of the operation and design of the CPUs in the system manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

12

Equipment Manual, 11/2019, A5E42009914-AB

2.3

Hardware properties

Article number 6ES7515-2RM00-0AB0

View of the module The figure below shows the CPU 1515R-2 PN.

Product overview 2.3 Hardware properties

Figure 2-2 CPU 1515R-2 PN
Note Protective film Note that there is a removable protective foil on the display when the CPUs are delivered.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

13

Product overview 2.3 Hardware properties

Properties

CPU 1515R-2 PN has the following technical properties:

Property CPU display
Supply voltage

Description

Additional information

All CPUs of the redundant system S7 1500R/H have a · Redundant System S7-1500R/H

display with plain text information. The display provides

(https://support.industry.siemens.

you with diagnostic messages as well as information about the article number, the firmware version and the serial number of the CPU.

com/cs/ww/en/view/109754833) System Manual

You can also view and assign the IP addresses, the PROFINET device name and the redundancy ID of the

·

SIMATIC S7-1500 Display Simulator

CPU. The system IP address can be viewed via

(http://www.automation.siemens.

STEP 7 but not in the display.

com/salesmaterial-as/interactive-

In addition to the functions listed here, a large number of other functions are available on the display. These

manuals/getting-started_simatics7-1500/disp_tool/start_de.html)

additional functions are described in the SIMATIC S7

1500 Display Simulator.

The 24 V DC supply voltage is fed via a 4-pin plug located on the front of the CPU.

· Section Connecting (Page 25)
· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

14

Equipment Manual, 11/2019, A5E42009914-AB

Product overview 2.3 Hardware properties

Property
PROFINET IO
PROFINET IO interface (X1 P1 R and X1 P2 R)

Description

Additional information

The CPU has an X1 interface with two ports (X1 P1 R and X1 P2 R).
· The PROFINET IO interface X1 (default P1 R) is used to set up the PROFINET ring with the two CPUs and the IO devices.
· The PROFINET IO interface X1 (default P2 R) is used to make the connection between the two RCPUs in the PROFINET ring.

· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual
· Function manual PROFINET (https://support.industry.siemens. com/cs/ww/en/view/49948856)

In the PROFINET ring, the synchronization frames between the CPUs are transmitted via the following connections:
­ The direct connection (X1 P2 R)
­ The indirect connection (X1 P1 R) via the IO devices
· The interface supports PROFINET IO RT (RealTime) and PROFINET basic functionality.

PROFINET interface (X2 P1)
Operation of the CPUs as IO controllers

Basic PROFINET functionality comprises: ­ HMI communication ­ Communication with the configuration system ­ Communication with a higher-level network
(backbone, router, Internet) ­ Communication with another machine or auto-
mation cell
The CPU has an X2 interface with one port (X2 P1). The interface supports PROFINET basic functionality.
IO controller: As IO controllers the CPUs address the following configured IO devices:
· IO devices with S2 system redundancy within the PROFINET ring
· IO devices with S2 system redundancy that are decoupled from the PROFINET ring via a switch
· Standard IO devices (switched S1 devices)

Standard IO devices usually do not support HSync Forwarding.

To avoid a cycle time increase when the PROFINET ring is interrupted, integrate the standard IO devices behind a switch and not in the PROFINET ring.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

15

Product overview 2.3 Hardware properties

H-Sync Forwarding H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of an S7-1500R redundant system only within the PROFINET ring.
In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
Note Support of H-Sync Forwarding
The technical specifications typically state whether a PROFINET device supports H-Sync Forwarding.
The GSD file will also indicate whether the device supports H-Sync Forwarding. The device supports H-Sync Forwarding when the "ApplicationClass" attribute contains the "HighAvailability" token.
You will find more information on H-Sync Forwarding in the system manual S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833).

Accessories

You can find information on the topic of "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

16

Equipment Manual, 11/2019, A5E42009914-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

CPU 1515R-2 PN supports the following firmware functions:

Function CPU redundancy Integrated system diagnostics
Integrated trace functionality
PROFINET IO System redundancy S2
Switched S1 device

Description

Additional information

There are two duplicate CPUs that synchronize their Redundant System S7-1500R/H

data via redundancy connections within a PROFINET (https://support.industry.siemens.com/

ring. If one of the CPUs fails, the other CPU retains cs/ww/en/view/109754833) System

control of the process.

Manual

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device or the integrated display. System diagnostics information is also available when the CPUs are in operating state STOP.

Function manual Diagnostics (http://support.automation.siemens.co m/WW/view/en/59192926)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Function manual Using the trace and logic analyzer function (http://support.automation.siemens.co m/WW/view/en/64897128)

Trace and logic analyzer functions are suitable for monitoring highly dynamic processes.

Note: Note that the S7-1500R/H redundant system supports recording of measurements. However, saving the measurements to the SIMATIC memory card is not supported.

All IO devices are connected redundantly in the redundant S7 1500R/H system. All IO devices assigned to the system must therefore support system redundancy S2.
If the role of the CPUs changes, the new primary CPU takes over the PROFINET IO communication.

· Redundant System S7-1500R/H (https://support.industry.siemens.c om/cs/ww/en/view/109754833) System Manual
· Function manual PROFINET (http://support.automation.siemens. com/WW/view/en/49948856)

The switched S1 device function of the CPU enables Redundant System S7-1500R/H Sysoperation of standard IO devices in the S7-1500R/H tem Manual redundant system.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

17

Product overview 2.4 Firmware functions

Function RT (real time) MRP (Media Redundancy Protocol)
PROFIenergy
Integrated technology Integrated closed-loop control functionality

Description
RT prioritizes PROFINET IO frames over standard frames. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet frames.
The Media Redundancy Protocol enables the configuration of redundant networks. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails.
Within the PROFINET ring, the R-CPUs assume the role of the MRP Manager following appropriate project configuration and all other devices in the ring assume the role of the MRP clients.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. Most of the energy is saved by the process. The PROFINET device itself only contributes a few watts to the savings potential.
· PID Compact (continuous PID controller)
· PID 3Step (step controller for integrating actuators)
· PID Temp (temperature controller for heating and cooling with two separate actuators)

Additional information Function manual PROFINET (http://support.automation.siemens.co m/WW/view/en/49948856)
Function manual PID Control (https://support.industry.siemens.com/ cs/ww/en/view/108210036) Redundant System S7-1500R/H System Manual

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

18

Equipment Manual, 11/2019, A5E42009914-AB

Product overview 2.4 Firmware functions

Function Security Integrated Know-how protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
You can use authorization levels to assign separate rights to different user groups.
The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between STEP 7 and the CPUs.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPUs for possible manipulations of engineering data.
If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.
As an alternative to manual password entry, you can link a password provider to STEP 7. A password provider offers the following advantages:
· Convenient handling of passwords. STEP 7 automatically imports the password for the blocks. This saves you time.
· Optimum block protection because the users do not know the password itself.

Redundant System S7-1500R/H (https://support.industry.siemens.com/ cs/ww/en/view/109754833) System Manual

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

19

Product overview 2.5 Operator controls and display elements

2.5

Operator controls and display elements

2.5.1

Front view of the CPU with closed front panel
The figure below shows the front view of the CPU 1515R-2 PN.

 LEDs for the current operating state and diagnostic status of the CPU  Display  Control keys
Figure 2-3 View of the CPU 1515R-2 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPUs. You can find additional information on the temperatures at which the display switches itself on and off in the Technical specifications (Page 34).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

20

Equipment Manual, 11/2019, A5E42009914-AB

Product overview 2.5 Operator controls and display elements
Pulling and plugging the front panel with display You can pull and plug the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of a redundant system S7-1500R/H during operation, personal injury or damage to property can occur in hazardous area zone 2. Before you remove or fit the front panel, always switch off the power supply to the S7-1500R/H redundant system in hazardous area zone 2.
Locking the front panel You can lock the front panel to protect the SIMATIC memory card and the mode selector of the CPU against unauthorized access. You can attach a security seal or a padlock with a hoop diameter of 3 mm to the front panel.

Reference

Figure 2-4 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and the local lock in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

21

Product overview 2.5 Operator controls and display elements

2.5.2

Front view of the CPU without front panel
The figure below shows the operator controls and connection elements of the CPU 1515R-2 PN.

 LEDs for the current operating state and diagnostic status of the CPUs  Display connector  Slot for the SIMATIC memory card  Mode selector  LED displays for the 3 ports of the PROFINET interfaces X1 and X2  MAC addresses of the interfaces  PROFINET IO interface X2 with 1 port  PROFINET IO interface X1 with 2 ports  Connector for power supply  Fixing screws
Figure 2-5 View of the CPU 1515R-2 PN (without front panel) - front

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

22

Equipment Manual, 11/2019, A5E42009914-AB

2.5.3

Product overview 2.5 Operator controls and display elements
Rear view of the CPU
The figure below shows the connection elements on the rear of the CPU 1515R-2 PN.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-6 View of the CPU 1515R-2 PN - rear

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

23

Product overview 2.6 Mode selector

2.6

Mode selector

You use the mode selector to:

 Request a change to a specific operating state

 Disable or enable the change of a specific operating state

(if, for example, the mode selector is set to STOP, you cannot switch the CPU to RUN via a communication task configured in the TIA Portal or via the display)

The following table shows the position of the switch and the corresponding meaning.

Table 2- 1
Position RUN STOP MRES

Mode switch settings
Meaning RUN mode STOP mode Memory reset

Explanation The CPU has permission to go to RUN. The CPU does not have permission to go to RUN. Position for CPU memory reset.

Reference

You can find a brief overview of the various operating states and system states in the section Status and error display of the CPU (Page 29).
You can find a detailed description of the operating states and system states in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

24

Equipment Manual, 11/2019, A5E42009914-AB

Connecting

3

3.1

Terminal assignment

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1515R-2 PN.

24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory.
The following table shows the signal names and the descriptions of the pin assignment of the 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View Connector

Signal name 1)

Description

1 1L+ 2 1M 3 2M 4 2L+

+ 24 V DC of the supply voltage Ground of the supply voltage Ground of the supply voltage for loop-through 2) + 24 V DC of the supply voltage for loop-through 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally. 2) Maximum 10 A permitted
You can find information on the various supply options in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

25

Connecting 3.1 Terminal assignment
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for a RJ45 connector.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-1 Interface assignments
PROFINET interface X2 with 1 port (X2 P1) The assignment corresponds to the Ethernet standard for a RJ45 connector. Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
Additional information You can find additional information on the topic of "Connecting the CPU" and on the topic "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).
Assignment of the MAC addresses For each CPU, CPU 1515R-2 PN has:  One PROFINET interface with two ports  One PROFINET interface with one port Each of the PROFINET interfaces has a MAC address and each of the PROFINET ports has its own MAC address. There are a total of ten MAC addresses for the two CPUs of the CPU 1515R-2 PN. The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function. The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right side of each CPU 1515R-2 PN.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

26

Equipment Manual, 11/2019, A5E42009914-AB

Connecting 3.1 Terminal assignment

The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of MAC addresses using the example of a single CPU

MAC address 1

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)

MAC address 2 MAC address 3 MAC address 4
MAC address 5

Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 for accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front printed · Right-side printed
(start of number range) ----· Front printed
· Right-side printed (end of number range)

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

27

Connecting 3.1 Terminal assignment
Block diagram The following figure shows the block diagram of the CPU 1515R-2 PN.

     
 
PN X1 P1 R

SIMATIC memory card (X50) Display Mode selector RUN/STOP/MRES Electronics PROFINET 2-port switch Backplane bus connection (connection to backplane bus not configurable) Internal supply voltage Supply of the 24 V DC supply voltage (X80) PROFINET interface X1 port 1

Figure 3-2 Block diagram of the CPU 1515R-2 PN

PN X1 P2 R PN X2 P1 L+ M R/S ER

PROFINET interface X1 port 2 PROFINET interface X2 port 1 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red)

MT

MAINT LED (yellow)

X1 P1, X1 P2, X2 P1 LED Link TX/RX

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

28

Equipment Manual, 11/2019, A5E42009914-AB

Interrupts, diagnostics, error messages and system events

4

4.1

Status and error display of the CPU

The LED displays of the CPU are described below.

You can find more detailed information on "Interrupts" in the STEP 7 online help.

You can find additional information on the topic of "Diagnostics" and "System events" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual and in the system manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

You can find additional information on the topic of "Operating states and system states" as well as various failure scenarios in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

LED display

The figure below shows the LED displays of the CPU 1515R-2 PN.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1515R-2 PN (without front panel)

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

29

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
LED displays depending on operating states and system states CPU 1515R-2 PN has the following LEDs for displaying the current operating state and diagnostics status.  RUN/STOP LED  ERROR LED  MAINT LED The LEDs indicate the operating state of the respective CPU within the redundant system. Operating states describe the behavior of a single CPU at a specific time. The combination of the operating states of the CPUs forms the system state. The following figure shows the possible operating states of the CPUs and the resulting system states.

Figure 4-2 Operating states and system states

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

30

Equipment Manual, 11/2019, A5E42009914-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
Meaning of the RUN/STOP, ERROR and MAINT LEDs CPU 1515R-2 PN has the following LEDs for displaying the current operating state and diagnostics status.
Note LED patterns of the redundant system S7 1500R Note that it is not always possible to: · Determine the state of the CPU from the signal pattern · Determine the state of the other CPU from the signal pattern The "Meaning" column only shows a possible typical cause. To investigate the cause of the signal pattern, use the diagnostic buffer and its display via: · STEP 7 · HMI devices · Displays of the CPUs

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

31

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

Table 4- 1

The following table shows the meaning of the various color combinations for the RUN/STOP, ERROR and MAINT LEDs.
Meaning of the LEDs

RUN/STOP LED LED off
LED flashes yellow/green LED lit yellow
LED flashes yellow LED lit yellow
LED lit yellow
LED flashes yellow/green

ERROR LED LED off
LED flashes red
LED off LED off LED flashes red LED off LED off

MAINT LED LED off
LED flashes yellow
LED lit yellow LED lit yellow LED flashes yellow LED flashes yellow LED lit yellow

Meaning Missing or insufficient supply voltage on the CPU.
Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test CPU is in operating state STOP. Completion of system initialization CPU executes internal activities in an operating state  RUN-Redundant.
CPU defective
Firmware update successfully completed.
The primary CPU is in operating state STARTUP. The backup CPU is in operating state SYNCUP. The backup CPU has not yet been restarted for SYNCUP during this phase.

LED flashes yellow LED lit green

LED off LED off

LED lit green LED lit green LED lit green

LED off LED flashes red LED flashes red

LED off LED lit yellow
LED off LED off LED lit yellow

The CPU performs a warm restart.
Maintenance demanded for the plant. You need to check/replace the affected hardware within a short period of time. The primary CPU is in operating state RUNSyncup. Active Force job PROFIenergy pause The primary CPU is in operating state RUN. The CPU is in operating state RUN-Redundant. There are no events, requirements, errors, etc. A diagnostic event is pending in operating state RUN-Redundant.
A diagnostic event (e.g. failure of an IO device within the PROFINET ring or no access to SIMATIC memory card possible1)) and maintenance is demanded (e.g. interruption of the PROFINET ring).

1) If access to the SIMATIC memory card is not possible in RUN-Redundant (wrong card, card full/write protected), the system switches to RUN-Solo. The ERROR LED flashes for three seconds. The MAINT LED lights up until the RUNRedundant system status is reached again.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

32

Equipment Manual, 11/2019, A5E42009914-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

Note MAINT LED of the two CPUs
The MAINT LEDs of both CPUs only go out when the following conditions are fulfilled: · The CPUs are in the RUN-Redundant system state. · No maintenance is demanded.

Note LED displays in redundant mode
In the RUN-Redundant system state, the LED displays on both CPUs are identical (exception: you are performing an LED flash test on one CPU).

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various LED patterns of the ports of the CPU 1515R-2 PN.
Table 4- 2 Meaning of LINK RX/TX LED

LINK TX/RX LED off
Flashes green Illuminated green
LED flashes yellow/green

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The redundancy connections were interrupted. The CPU performs an LED flash test.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner. The redundancy connections are OK. Data is currently being received/sent by a communication partner via the PROFINET interface of the PROFINET device. Note that the human eye perceives this LED image as an LED that is lit yellow or flickering yellow.

Note
"LED" instruction
You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 R/H CPUs.
You can find additional information on the "LED" instruction in the STEP 7 online help.

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

33

Technical specifications

5

The following table shows the technical specifications as of 11/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7515-2RM00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version Product function · I&M data
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering · Mains/voltage failure stored energy time
Input current Current consumption (rated value) Inrush current, max. I²t
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7515-2RM00-0AB0
CPU 1515R-2 PN FS01 V2.8
Yes; I&M0 to I&M3 No
V16 (FW V2.8) / V15.1 (FW V2.6) or higher
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
0.8 A 2.4 A 0.02 A²·s
6.3 W
1 Yes

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

34

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range · Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs
Nesting depth · per priority class

6ES7515-2RM00-0AB0
500 kbyte 3 Mbyte
32 Gbyte
Yes
60 ns 72 ns 96 ns 384 ns
6 000; Blocks (OB, FB, FC, DB) and UDTs
Number range: 1 to 59 999 3 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 500 kbyte
0 ... 65 535 500 kbyte
500 kbyte 100 20 20 20 50 100 4 2 1
24

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

35

Technical specifications

Article number Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules I/O address area
· Inputs
· Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max.

6ES7515-2RM00-0AB0
2 048 Yes Any (only limited by the main memory) Yes 2 048 Yes Any (only limited by the main memory) Yes 512 kbyte
16 kbyte 8; 8 clock memory bit, grouped into one clock memory byte Yes No 64 kbyte; max. 16 KB per block 4 096; max. number of modules / submodules 32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image 8 kbyte 8 kbyte 32

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

36

Equipment Manual, 11/2019, A5E42009914-AB

Article number Hardware configuration
Number of distributed IO systems Number of IO Controllers
· integrated Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

Technical specifications
6ES7515-2RM00-0AB0 1 1
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes
2
2 Yes Yes; X1
Yes; IPv4 Yes No Yes; Only Server Yes No Yes; MRP Automanager according to IEC 624392 Edition 2.0

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

37

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Number of connectable IO Devices,
max. ­ Updating times
Update time for RT ­ for send cycle of 1 ms
2. Interface Interface types
· Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy Interface types RJ 45 (Ethernet) · 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED

6ES7515-2RM00-0AB0
Yes Yes No Yes No Yes; Only Manager Auto, max. 50 nodes; only 16 are recommended, however No Yes 64
The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms
1 No Yes; X2
Yes; IPv4 No No Yes; Only Server Yes No No
Yes Yes Yes Yes

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

38

Equipment Manual, 11/2019, A5E42009914-AB

Technical specifications

Article number Protocols Number of connections
· Number of connections, max. · Number of connections reserved for
ES/HMI/web · Number of S7 routing paths Redundancy mode · MRP
· MRPD SIMATIC communication
· S7 communication, as server · S7 communication, as client Open IE communication · TCP/IP
­ Data length, max. ­ several passive connections per port,
supported · ISO-on-TCP (RFC1006)
­ Data length, max. · UDP
­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS OPC UA · OPC UA client · OPC UA server Further protocols · MODBUS

6ES7515-2RM00-0AB0
108 10
16
Yes; Manager Auto is permanently set in TIA. Max. 50 nodes are possible, 16 are recommended No
Yes No
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
No No
No No
Yes; MODBUS TCP

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

39

Technical specifications

Article number Media redundancy
· Switchover time on line break, typ.
· Number of stations in the ring, max. Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program messages, max. Number of loadable program messages in RUN, max. Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics Test commissioning functions
Joint commission (Team Engineering) Status block Single step Number of breakpoints
Status/control · Status/control variable
· Variables
· Number of variables, max.
­ of which status variables, max. ­ of which control variables, max. Forcing · Forcing
· Forcing, variables
· Number of variables, max. Diagnostic buffer
· present
· Number of entries, max.
­ of which powerfail-proof

6ES7515-2RM00-0AB0
200 ms; PROFINET MRP 50; Only 16 are recommended, however
No No
64 Yes 10 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH 5 000
800 200
No Yes; up to 8 simultaneously No 8; Breakpoints are only supported in RUN-Solo status
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Yes Peripheral inputs/outputs 200
Yes 3 200 500

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

40

Equipment Manual, 11/2019, A5E42009914-AB

Technical specifications

Article number Traces
· Number of configurable Traces · Memory size per trace, max. Interrupts/diagnostics/status information Diagnostics indication LED · RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX Supported technology objects Motion Control Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Altitude during operation relating to sea level · Installation altitude above sea level, max.

6ES7515-2RM00-0AB0
4 512 kbyte
Yes Yes Yes Yes
No
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature Yes No
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

Equipment Manual, 11/2019, A5E42009914-AB

41

Technical specifications

Article number Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ CFC ­ GRAPH Know-how protection · User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7515-2RM00-0AB0
Yes Yes Yes Yes No Yes
Yes
No Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
70 mm 147 mm 129 mm
830 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc. in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

42

Equipment Manual, 11/2019, A5E42009914-AB

Dimension drawing

A

A.1

Dimension drawing
This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.

Dimension drawings of the CPU 1515R-2 PN

Figure A-1 Dimension drawing of the CPU 1515R-2 PN, front and side view

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

43

Equipment Manual, 11/2019, A5E42009914-AB

Dimension drawing A.1 Dimension drawing
Figure A-2 Dimension drawing CPU 1515R-2 PN, side view with open front panel

CPU 1515R-2 PN (6ES7515-2RM00-0AB0)

44

Equipment Manual, 11/2019, A5E42009914-AB

SIMATIC
S7-1500 CPU 1515T-2 PN (6ES7515-2TM01-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_nt_at_io_n _gu_id_e_______1_

_Pr_od_u_ct_ov_e_rv_ie_w _________2_

_W_iri_ng_______________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______5_

_Di_m_en_si_on_d_ra_w_in_g ________A_

12/2017
A5E36284845-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36284845-AB  11/2017 Subject to change

Copyright © Siemens AG 2016 - 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1515T-2 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

4

Manual, 12/2017, A5E36284845-AB

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ..................................................................................................................................... 11

2.1

New functions in firmware version V2.5................................................................................. 11

2.2

Applications of the S7-1500 CPU .......................................................................................... 12

2.3

Hardware properties .............................................................................................................. 19

2.4

Firmware functions................................................................................................................. 21

2.5 2.5.1 2.5.2 2.5.3

Operator controls and display elements ................................................................................ 25 Front view of the CPU with closed front panel....................................................................... 25 Front view of the CPU without front flap ................................................................................ 27 Rear view of the CPU ............................................................................................................ 28

2.6

Mode selector......................................................................................................................... 28

3 Wiring ...................................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 33

4.1

Status and error displays of the CPU..................................................................................... 33

5 Technical specifications ........................................................................................................................... 36

A Dimension drawing .................................................................................................................................. 49

A.1

Dimensional drawing of the CPU 1515T-2 PN ...................................................................... 49

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

6

Manual, 12/2017, A5E36284845-AB

Documentation guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

8

Manual, 12/2017, A5E36284845-AB

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

10

Manual, 12/2017, A5E36284845-AB

Product overview

2

2.1

New functions in firmware version V2.5

New functions of the CPUs firmware 2.5 This section lists the new features of the CPU with firmware version V2.5. You can find additional information in the sections of this manual.

Table 2- 1 New functions of the CPUs with firmware version 2.5

New functions New technology object, kinematics
Additional instructions for torque control
Data adaption for SINAMICS S210 MotionIn

Applications

Customer benefits

Controlling of kinematics, such as · Cartesian portals · Roller pickers

You can realize complex Motion Control applications for controlling 2D, 3D and 4D kinematics.

· Delta pickers

· SCARA Motion specification of paths

Individual motions and motion sequences

Kinematics 2D, 3D, with and without orientation axis

You can apply an additives setpoint torque in the drive.
You can predetermine torque limits in the drive cyclically.
The torque actual value of the drive can be evaluated directly in the TO-DB of the axis.

You can pre-control the torque precisely for the axes, for example at winders (predetermine traction torque and additionally torque limits in order to prevent tearing of the material).
You can take the dynamic model of the kinematics into consideration, pre-control the torque to be expected for each axis and thus improve the precision.

You can also use data adaption for the new You gain time during the configuration of the

drive SINAMICS S210.

technology objects and the drives.

Through additional instructions motion

This means that specific technological motion

setpoints can be specified cyclically via the specifications are possible via the application

application.

(for example at winders).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

11

Product overview 2.2 Applications of the S7-1500 CPU

2.2

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and user-friendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Additional areas of application of the SIMATIC S7-1500T with extended Motion Control functions are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

12

Manual, 12/2017, A5E36284845-AB

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 2 Standard CPUs

CPU

Performance segment PROFIBUS PROFINET PROFINET PROFINET interfaces IO RT/IRT IO RT basic funcinterfaces interface tionality

CPU 1511-1 PN Standard CPU for

--

1

--

--

small to mid-range

applications

CPU 1513-1 PN Standard CPU for

--

1

--

--

mid-range applica-

tions

CPU 1515-2 PN Standard CPU for

--

1

1

--

mid-range to large

applications

CPU 1516-3 PN/ Standard CPU for

1

1

1

--

DP

high-end applications

and communication

tasks

CPU 1517-3 PN/ Standard CPU for

1

1

1

--

DP

high-end applications

and communication

tasks

CPU 1518-4

Standard CPU for

1

1

1

1

PN/DP

high-performance

CPU 1518-4 PN/ applications, demand-

DP MFP

ing communication

tasks and very short

reaction times

Work memory 1.15 MB 1.8 MB 3.5 MB
6 MB
10 MB
24 MB

Processing time for bit operations
60 ns
40 ns
30 ns
10 ns
2 ns
1 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C-1 PN
CPU 1512C-1 PN

Performance segment PROFIBUS PROFINET PROFINET PROFINET interfaces IO RT/IRT IO RT basic funcinterfaces interface tionality

Compact CPU for

--

1

--

--

small to mid-range

applications

Compact CPU for

--

1

--

--

mid-range applica-

tions

Work memory 1.175 MB
1.25 MB

Processing time for bit operations
60 ns
48 ns

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

13

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 4 Fail-safe CPUs

CPU
CPU 1511F-1 PN
CPU 1511TF-1 PN
CPU 1513F-1 PN CPU 1515F-2 PN
CPU 1515TF-2 PN
CPU 1516F-3 PN/DP
CPU 1516TF-3 PN/DP
CPU 1517F-3 PN/DP
CPU 1517TF-3 PN/DP
CPU 1518F-4 PN/DP CPU 1518F-4 PN/DP MFP

Performance segment
Fail-safe CPU for small to mid-range applications
Fail-safe technology CPU for small to mid-range applications
Fail-safe CPU for midrange applications
Fail-safe CPU for midrange to large applications
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
------
1
1
1
1
1

PROFINET IO RT/IRT interfaces
1 1 1 1 1
1
1
1
1
1

PROFINET IO RT inter-
face ---1 1
1
1
1
1
1

PROFINET basic func-
tionality
--

Work memory
1.225 M B

Processing time for bit operations
60 ns

--

1.225 M 60 ns

B

--

1.95 MB 40 ns

--

3.75 MB 30 ns

--

3.75 MB 30 ns

--

6.5 MB 10 ns

--

6.5 MB 10 ns

--

11 MB

2 ns

--

11 MB

2 ns

1

26 MB

1 ns

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

14

Manual, 12/2017, A5E36284845-AB

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1516T-3 PN/DP
CPU 1517T-3 PN/DP
CPU 1511TF-1 PN CPU 1515TF-2 PN CPU 1516TF-3 PN/DP CPU 1517TF-3 PN/DP

Performance segment PROFIBUS PROFINET interfaces IO RT/IRT interfaces

Technology CPU for

--

1

small to mid-range

applications

Technology CPU for

--

1

mid-range to large

applications

Technology CPU for

1

1

high-end applications

and communication

tasks

Technology CPU for

1

1

high-end applications

and communication

tasks

These CPUs are described in the fail-safe CPUs

PROFINET IO RT
interface --
1
1
1

PROFINET basic
functionality --
--
--
--

Work memory 1.225 MB 3.75 MB 6.5 MB
11 MB

Processing time for bit operations
60 ns
30 ns
10 ns
2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output) Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

15

Product overview 2.2 Applications of the S7-1500 CPU
Integrated Motion Control technology functions All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axis  Positioning axis  Synchronous axis  External encoders  Output cam  Cam track  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of synchronous position ­ Actual value coupling ­ Shifting the master value of the following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technological functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

16

Manual, 12/2017, A5E36284845-AB

Product overview 2.2 Applications of the S7-1500 CPU
Other technology functions Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Security Integrated In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration thereby provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
In addition to the CPUs, further components such as SINAMICS drives dispose of integrated safety functions. Additional information about integrated safety functions in drives can be found in the manuals for the respective products.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

17

Product overview 2.2 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

18

Manual, 12/2017, A5E36284845-AB

2.3

Hardware properties

Article number 6ES7515-2TM01-0AB0

View of the module The following figure shows the CPU 1515T-2 PN.

Product overview 2.3 Hardware properties

Figure 2-1 CPU1515T-2 PN
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

19

Product overview 2.3 Hardware properties

Properties

The CPU 1515T-2 PN has the following properties:

Property CPU display
Supply voltage
PROFINET IO PROFINET interface (X1 P1 R, X1 P2 R) PROFINET interface (X2 P1) Operation of the CPU as · IO controller · I-device

Description

Additional information

All CPUs of the SIMATIC S7-1500 product series feature a · S7-1500, ET 200MP system

display with plain text information. The display provides

manual

information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further network

(http://support.automation.sieme ns.com/WW/view/en/59191792)

settings. The display shows occurring error messages

· SIMATIC S7-1500 Display

directly in plain text.

Simulator

In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S7-1500

(http://www.automation.siemens. com/salesmaterial-as/interactive-

Display Simulator are shown on the display.

manuals/getting-started_simatic-

s7-1500/disp_tool/start_en.html)

The 24 V DC supply voltage is supplied via a 4-pole connection plug that is located at the front of the CPU.

· Chapter Wiring (Page 29)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

The interface has two ports. In addition to basic PROFINET PROFINET function manual

functionality, its also supports PROFINET IO RT (real time) (https://support.industry.siemens.co

and IRT (isochronous real time).

m/cs/ww/en/view/49948856)

The interface has two ports. In addition to basic PROFINET functionality, its also supports PROFINET IO RT (real time).

· IO controller: As an IO controller the CPU addresses the connected IO devices

· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

Note
Special consideration when PROFINET IO communication is configured on the 2nd PROFINET interface (X2 P1)
If you configure the PROFINET IO communication on the 2nd PROFINET interface (X2 P1) (operated as IO controller or IO device) of the CPU (as of firmware version 2.0), additional system load occurs. You can find additional information in the Cycle and Response Times (http://support.automation.siemens.com/WW/view/en/59193558) function manual.

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

20

Manual, 12/2017, A5E36284845-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

The CPU 1515T-2 PN supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description
The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.
The Web server lets you access the CPU data by means of a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

Additional information Diagnostics function manual (http://support.automation.siemens.com /WW/view/en/59191792)
· Web server function manual (http://support.automation.siemens. com/WW/view/en/59193560)
· Security with SIMATIC S7 controllers system manual (https://support.industry.siemens.co m/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting

Using the trace and logic analyzer

and/or optimizing the user program.

function function manual

You record device tags and evaluate the recordings (http://support.automation.siemens.com with the trace and logic analyzer function. Tags are, for /WW/view/en/64897128)

example, drive parameters or system and user tags of

a CPU.

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and manufacturer-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU acting as the OPC UA server can communicate with OPC UA clients.

Communication function manual (https://support.industry.siemens.com/c s/ww/en/view/59192925)

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (http://support.automation.siemens.com /WW/view/en/59191792)

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

21

Product overview 2.4 Firmware functions

Function

Description

Additional information

PROFINET IO

RT (real time)

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.

PROFINET function manual (http://support.automation.siemens.com /WW/view/en/49948856)

IRT

A reserved bandwidth within the send clock is available

(isochronous real time) for IRT data. The reserved bandwidth ensures that the

IRT data can be transmitted in time-synchronized

intervals, unaffected by other high network loading

(e.g. TCP/IP communication or additional real time

communication). Update times with maximum

determinism can be realized through IRT. Isochronous

applications are possible with IRT.

Isochronous mode

The Isochronous mode system property acquires measured values and process data and processes the signal in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.

MRP (Media Redundancy Protocol)

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

MRPD (Media Redundancy with Planned Duplication)

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

Shared device

The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

22

Manual, 12/2017, A5E36284845-AB

Product overview 2.4 Firmware functions

Function PROFIenergy Integrated technology Motion Control
Extended Motion Control functions

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

All CPUs support the S7-1500 Motion Control functions via the technology objects speed axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.

S7-1500T Motion Control function manual (http://support.automation.siemens.com /WW/view/en/109749262)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and event-dependent sensing of actual positions
You program the technology objects with Motion Control instructions according to PLCopen.

The technology CPUs of the SIMATIC S7-1500 also support extended Motion Control functions:
· Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming

S7-1500T Motion Control function manual (https://support.industry.siemens.com/c s/ww/en/view/109749263)
S7-1500T Kinematics Functions V4.0 in TIA Portal V15 (https://support.industry.siemens.com/c s/ww/en/view/109749264) Function manual

· Cam

· Up to 4 encoders or measuring systems as actual position for position control

· Controlling of kinematics, such as

­ Cartesian portals

­ Roller pickers

­ Delta pickers

­ SCARA

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

23

Product overview 2.4 Firmware functions

Function Integrated closed-loop control functionality
Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.com/c s/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.com /WW/view/en/59191792)

Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

24

Manual, 12/2017, A5E36284845-AB

2.5
2.5.1

Product overview 2.5 Operator controls and display elements
Operator controls and display elements
Front view of the CPU with closed front panel
The figure below shows the front view of the CPU 1515T-2 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1515T-2 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

25

Product overview 2.5 Operator controls and display elements
Removing and attaching the front panel with display You can remove and attach the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500/ ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

26

Manual, 12/2017, A5E36284845-AB

2.5.2

Product overview 2.5 Operator controls and display elements
Front view of the CPU without front flap
The figure below shows the operator controls and connection elements of the CPU 1515T-2 PN.

 LEDs for the current operating mode and diagnostics status of the CPU  Display connection  Slot for the SIMATIC memory card  Mode selector  LEDs for the 3 ports of the PROFINET interfaces X1 and X2  MAC addresses of the interfaces  PROFINET IO interface (X2) with 1 port  PROFINET IO interface (X1) with 2 ports  Connection for supply voltage  Fixing screws
Figure 2-3 View of the CPU 1515T-2 PN (without front panel) - front

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

27

Product overview 2.6 Mode selector

2.5.3

Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1515T-2 PN.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-4 View of the CPU 1515T-2 PN - rear

2.6

Mode selector

You use the mode switches to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 6 Meaning of the mode switches

Operation of the mode switch RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not executed. (STOP ACTIVE LED lights up) Position for CPU memory reset.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

28

Manual, 12/2017, A5E36284845-AB

Wiring

3

This section provides information on the pin assignment of the individual interfaces and the block diagram of the CPU 1515T-2 PN.
24 V DC supply voltage (X80) The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

29

Wiring
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interface X2 with 1 port (X2 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

30

Manual, 12/2017, A5E36284845-AB

Wiring

Assignment of the MAC addresses
CPU 1515T-2 PN has two PROFINET interfaces, with the first interface having two ports. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1515T-2 PN therefore has five MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1515T-2 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 1 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 for accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front, lasered · Right side, lasered
(start of number range)
· Front and right side, not lasered
· Front and right side, not lasered
· Front, lasered · Right side, not lasered
· Front, not lasered · Right side, lasered
(end of number range)

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

31

Wiring
Block diagram The following figure shows the block diagram of the CPU 1515T-2 PN.

     
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

Figure 3-2 Block diagram of the CPU 1515T-2 PN

PN X1 P1 R PN X1 P2 R PN X2 P1 L+ M R/S ER MT X1 P1, X1 P2, X2 P1

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

32

Manual, 12/2017, A5E36284845-AB

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1515T-2 PN are described below.
You can find additional information on the topic of "Interrupts" in the STEP 7 online help.
You can find additional information on the topic of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error displays of the CPU

LED display

The following figure shows the CPU 1515T-2 PN LEDs.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1515T-2 PN (without front panel)

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1515T-2 PN has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green LED lit yellow LED lit yellow LED lit yellow LED lit yellow

LED flashes red LED flashes red
LED off LED off LED flashes red

LED flashes yellow

LED off

LED flashes yellow/green

LED off

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

34

Manual, 12/2017, A5E36284845-AB

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1515T-2 PN.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

35

Technical specifications

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7515-2TM01-0AB0
CPU 1515T-2 PN FS03 V2.5
V15 (FW V2.5) / V14 (FW V2.0) or higher
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.8 A 2.4 A; Rated value 0.02 A²·s
12 W 6.2 W
6.3 W
1 Yes

5

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

36

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7515-2TM01-0AB0
750 kbyte 3 Mbyte
32 Gbyte
Yes
30 ns 36 ns 48 ns 192 ns
6 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 3 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 500 kbyte
0 ... 65 535 500 kbyte
500 kbyte 100 20 20 20; With minimum OB 3x cycle of 500 µs 50 3 1 2
100

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

37

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules

6ES7515-2TM01-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
512 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 472 KB 3 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte Yes No
64 kbyte; max. 16 KB per block
8 192; max. number of modules / submodules

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

38

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) per CM/CP ­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems
Number of DP masters · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number

6ES7515-2TM01-0AB0
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

39

Technical specifications

Article number Clock synchronization
· supported · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max.
­ Of which IO devices with IRT, max. ­ Number of connectable IO Devices for
RT, max.

6ES7515-2TM01-0AB0
Yes Yes Yes Yes
2
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 62439-2 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices 256; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 256

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

40

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number ­ of which in line, max.

6ES7515-2TM01-0AB0 256

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is decisive 500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

41

Technical specifications

Article number 2. Interface Interface types
· Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max.
­ Number of connectable IO Devices for RT, max.
­ of which in line, max. ­ Number of IO Devices that can be
simultaneously activated/deactivated, max. ­ Number of IO Devices per tool, max. ­ Updating times
Update time for RT ­ for send cycle of 1 ms

6ES7515-2TM01-0AB0
1 No Yes; X2
Yes; IPv4 Yes Yes Yes Yes Yes No
Yes Yes No Yes No No Yes No 32; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 32
32 8; in total across all interfaces
8 The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

42

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number PROFINET IO Device Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Shared device ­ Number of IO Controllers with shared
device, max. ­ Asset management record Interface types RJ 45 (Ethernet) · 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED Protocols Number of connections · Number of connections, max.
· Number of connections reserved for ES/HMI/web
· Number of connections via integrated interfaces
· Number of S7 routing paths SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max.

6ES7515-2TM01-0AB0
Yes Yes No Yes No No No Yes No Yes 4
Yes; Per user program
Yes Yes Yes Yes
192; via integrated interfaces of the CPU and connected CPs / CMs 10
108
16
Yes Yes See online help (S7 communication, user data size)

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

43

Technical specifications

Article number Open IE communication
· TCP/IP ­ Data length, max. ­ several passive connections per port, supported
· ISO-on-TCP (RFC1006) ­ Data length, max.
· UDP ­ Data length, max. ­ UDP multicast
· DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS OPC UA · Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance

6ES7515-2TM01-0AB0
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 500 µs
Yes

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

44

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number S7 message functions
Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.
Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX

6ES7515-2TM01-0AB0
32 Yes 10 000
600 200 160
Yes; Parallel online access possible for up to 8 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 3 200 500
4; Up to 512 KB of data per trace are possible
Yes Yes Yes Yes

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

45

Technical specifications

Article number Supported technology objects
Motion Control
· Number of available Motion Control resources for technology objects (except cam disks)
· Required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per probe
· Number of available Extended Motion Control resources for technology objects
· Required Extended Motion Control resources ­ for each cam ­ for each set of kinematics
· Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value)
Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions

6ES7515-2TM01-0AB0
Yes; Note: The number of technology objects affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 2 400
40 80 160 80 20 160 40 120
2 30
7
14
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

46

Manual, 12/2017, A5E36284845-AB

Technical specifications

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/ transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection Access protection · Password for display · Protection level: Write protection · Protection level: Read/write protection · Protection level: Complete protection Cycle time monitoring · lower limit · upper limit Dimensions Width Height Depth Weights Weight, approx.

6ES7515-2TM01-0AB0
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
70 mm 147 mm 129 mm
830 g

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

47

Technical specifications
General technical specifications You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP System Manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

48

Manual, 12/2017, A5E36284845-AB

Dimension drawing

A

A.1

Dimensional drawing of the CPU 1515T-2 PN
This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Dimensional drawings of the CPU 1515-2 PN

Figure A-1 Dimensional drawing of the CPU 1515T-2 PN, front and side view

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

Manual, 12/2017, A5E36284845-AB

49

Dimension drawing A.1 Dimensional drawing of the CPU 1515T-2 PN
Figure A-2 Dimensional drawing of the CPU 1515T-2 PN, side view with open front panel

CPU 1515T-2 PN (6ES7515-2TM01-0AB0)

50

Manual, 12/2017, A5E36284845-AB

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

SIMATIC
S7-1500 CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Connecting up

3

Interrupts, error messages,

diagnostics and system

4

alarms

Technical specifications

5

Dimensional drawing

A

11/2019
A5E46418484-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46418484-AA  10/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1516-3 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

3

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSSFeed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

4

Equipment Manual, 11/2019, A5E46418484-AA

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

5

Table of contents

Preface ...................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide .............................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

New functions in firmware version V2.8................................................................................... 9

2.2

Area of application of the SIMATIC S7-1500 CPUs .............................................................. 13

2.3

Hardware properties .............................................................................................................. 21

2.4

Firmware functions................................................................................................................. 23

2.5 2.5.1 2.5.2 2.5.3

Operating and display elements ............................................................................................ 27 Front view of the CPU with closed front panel....................................................................... 27 Front view of the CPU without front panel or display and view from below........................... 29 Rear view of the CPU ............................................................................................................ 31

2.6

Operating mode buttons ........................................................................................................ 32

3 Connecting up ......................................................................................................................................... 33

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 38

4.1

Status and error display of the CPU ...................................................................................... 38

5 Technical specifications ........................................................................................................................... 42

A Dimensional drawing ............................................................................................................................... 57

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

6

Equipment Manual, 11/2019, A5E46418484-AA

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

7

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

8

Equipment Manual, 11/2019, A5E46418484-AA

Product overview

2

2.1

New functions in firmware version V2.8

This section contains an overview of the most important new firmware functions of the CPU since the last edition of the manual.

New functions of the CPU in firmware version V2.8

New functions IP forwarding
Direct data exchange

Applications
IP forwarding forwards IP data through the CPU from one IP subnet to another IP subnet. During IP forwarding, the CPU automatically creates an IP route table from the IP configuration in STEP 7.

Customer benefits

Where can I find information?

· Simplified integration of devices for remote access, e.g. for diagnostics during remote maintenance or firmware update
· Simple access from the control

Communication function manual (https://support.industry.sie mens.com/cs/ww/en/view/5 9192925)

level to the field level for configu-

ration and parameter assignment

of devices

In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners.

Example: You can access the Web server of a drive connected to the X1 interface of the CPU from a computer connected to the X2 interface of the CPU.
The "Direct data exchange" function enables deterministic, isochronous I/O communication between multiple S7-1500 CPUs.

PROFINET function manual (https://support.industry.sie mens.com/cs/ww/en/view/4 9948856)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

9

Product overview 2.1 New functions in firmware version V2.8

New functions
API (Application Programming Interface)

Applications
The CPU has a web-based API (Application Programming Interface) as an interface for reading and writing CPU data. The API supports all conventional browsers and command line programs, such as cURL and Wget.

Customer benefits
· Established standard mechanisms for creating Web pages:
Automation Web Programming commands (AWP commands) are no longer required for output of CPU data · No dependency between custom Web pages and CPU program:

Where can I find information?
Web server (https://support.industry.sie mens.com/cs/ww/en/view/5 9193560) function manual

No synchronization between user program and Web server required by the SFC 99 instruction
· Lower communication load:

A smaller data packet is transferred between server and client (JSON instead of HTML of the custom Web page generated by the CPU). This improves the communication performance. The CPU needs less runtime to generate the information and make it available.
· Secure data traffic:

Distributed synchronous operation (T-CPUs)
Cross-device trace

API exclusively supports the "HTTPS" transfer protocol

Master value and synchronous

· Distribution of high axis configu- S7-1500T Motion Control

axes can be distributed over multi-

ration limits over different CPUs function manuals

ple controllers.

(https://support.industry.sie

Isochronous coupling between the master axis and the following axis via PROFINET IO with IRT.

·

Use on modular machines and multi-axis machines (e.g. printing machines)

mens.com/cs/ww/en/view/1 09751049)

Compensation of delay times for · Highly precise synchronous op-

communication and different clock

eration across devices

rates.

Coordination of traces on different · Extensive trigger options for

Using the trace and logic

devices

faster localization of sporadically analyzer function

· Support of multiple CPUs · Support of different device

occurring errors · Simple combination of related

(https://support.industry.sie mens.com/cs/ww/en/view/6 4897128) function manual

types

traces

Visualization in a shared chart

Support of alternative trigger sources

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

10

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.1 New functions in firmware version V2.8

New functions of the CPU in firmware version V2.6

New functions OPC UA client
Isochronous mode for central I/O

Applications
In addition to the OPC UA server, an OPC UA client is integrated in the CPU. Using the corresponding OPC UA communication instructions, you can:

Customer benefits
You can perform, for example, vertical communication to MES systems/cloud services or IO controllerIO controller communication.

Where can I find information?
Communication (https://support.industry.sie mens.com/cs/ww/en/view/5 9192925) function manual

· Call methods

· Read and write data

Isochronous mode is also possible · Optimized controls through con- · PROFINET

for modules that are inserted next

stant, calculable dead times

(https://support.industry

to the CPU in a centralized configuration. In this way, you can implement the following functions, for example:
· Dynamic control tasks
· Measuring input
· Cam

· · ·

Determinism, reliable reproducibility of response times
Consistent (simultaneous) reading in of input data
Consistent (simultaneous) output of output data

·

.siemens.com/cs/ww/en /view/49948856) function manual
Isochronous mode function manual (https://support.industry .siemens.com/cs/ww/en

· Dosing processes, high-speed

/view/109755401)

analog value acquisition with

· S7-1500T Motion Con-

oversampling

trol function manuals

(https://support.industry

.siemens.com/cs/ww/en

/view/109751049)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

11

Product overview 2.1 New functions in firmware version V2.8

New functions of the CPU in firmware version V2.5

New functions
Testing with breakpoints

Applications

Customer benefits

Testing SCL and STL program

·

code with the help of breakpoints.

When testing with breakpoints, you execute a program from one

·

breakpoint to another.

Localization of logic errors step by step
Simple and quick analysis of complex programs prior to actual commissioning

Where can I find information?
S7-1500, ET 200MP (https://support.industry.sie mens.com/cs/ww/en/view/5 9191792) system manual

· Recording of current values within individual executed loops

· Use of breakpoints for program validation also possible in SCL/STL networks within LAD/FBD blocks

Arithmetic functions for trace

In the case of completed meas- · Generation of unavailable infor-

urements, you can combine the

mation

measured signals mathematically

with each other and thus generate · Post-processing of measure-

signals that were not recorded.

ments

· Measurement of signal paths

(e.g. mean value)

· Using the trace and logic analyzer function (https://support.industry .siemens.com/cs/ww/en /view/64897128) function manual
· Web server (https://support.industry .siemens.com/cs/ww/en /view/59193560) function manual

Importing and exporting ASCII files

Using the FileReadC function, you can read out a binary file (ASCII file) in the user program which was stored on the SIMATIC memory card of the CPU via the Web server.
Using the FileWriteC function, you can store a binary file (ASCII file) on the memory card of the CPU using the user program; this file can be read via the Web server.

Complex file structures are used in free ASCII format on the SIMATIC memory card, e.g. to:
· Read in recipes for which CSV is not flexible enough
· Read in complex parameter assignments or configuration files
· Output complex files for documentation

STEP 7 online help

Sending encrypt- It is possible to send encrypted

High security through encrypted

ed emails

emails via the integrated interfaces transmission of data

of the CPU

Reference

You can find an overview of all new functions, improvements and revisions in the respective firmware versions on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478459).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

12

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

2.2

Area of application of the SIMATIC S7-1500 CPUs

Area of application SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation. SIMATIC S7-1500 is the cost-effective and convenient solution for a broad range of tasks and offers the following advantages:  Modular, fanless design  Simple realization of distributed structures  User-friendly handling Areas of application of the SIMATIC S7-1500 automation system include, for example:  Special-purpose machines  Textile machinery  Packaging machines  General mechanical engineering  Controller engineering  Machine tool engineering  Installation engineering  Electrical industry and crafts  Automobile engineering  Water/waste water  Food & Beverage Areas of application of the SIMATIC S7-1500R/H redundant system include, for example:  Tunnels  Airports (e.g. baggage conveyors)  Subways  Shipbuilding  Wastewater treatment plants  High-bay warehouses Areas of application of the SIMATIC S7-1500T automation system for advanced motion control applications include, for example:  Packaging machines  Converting applications  Assembly automation  Pick-and-place automation  Palletizers

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

13

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

You can choose between CPUs with various levels of performance and a comprehensive range of modules with many convenient functions. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial suitability due to the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500, S7-1500R/H and S7-1500T automation systems.

Performance segments of the CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU

Performance segment

CPU 1511-1 PN Standard CPU for small to mid-range applications

CPU 1513-1 PN Standard CPU for midrange applications

CPU 1515-2 PN Standard CPU for midrange to large applications

CPU 15163 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 15173 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 15184 PN/DP

Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

CPU 15184 PN/DP MFP

Standard CPU for highperformance applications, demanding communication tasks, very short reaction times and C/C++ blocks for the user program

PROFIBUS interfaces
---1
1
1
1

PROFINET IO RT/IRT interfaces
1 1 1 1
1
1
1

PROFINET IO RT
interface
--1 1
1
1
1

Basic PROFINET functionality
-----
--
1
1

* 50 MB of the integrated work memory is reserved for the function library of CPU runtime

Work memory
1.15 MB 1.8 MB 3.5 MB 6 MB
10 MB
24 MB
74* MB

Processing time for bit operations
60 ns 40 ns 30 ns 10 ns
2 ns
1 ns
1 ns

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

14

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Table 2- 2 Redundant CPUs

CPU
CPU 1513R-1 PN CPU 1515R-2 PN CPU 1517H-3 PN

Performance segment
Redundant CPU for smaller to mid-range applications Redundant CPU for mid-range to large applications Redundant CPU for demanding applications and communication tasks

PROFIBUS interfaces
--
--
--

PROFINET IO RT/IRT interfaces
1
1
1

PROFINET IO RT
interface
--
--
--

Basic PROFINET functionality
--
1
1

Work memory
1.8 MB

Processing time for bit operations
80 ns

3.5 MB

60 ns

10 MB

4 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C-1 PN CPU 1512C-1 PN

Performance segment
Compact CPU for small to mid-range applications Compact CPU for mid-range applications

PROFIBUS interfaces
--
--

PROFINET IO RT/IRT interfaces
1
1

PROFINET IO RT inter-
face
--
--

Basic PROFINET functionality
--
--

Work memory
1.175 MB

Processing time for bit operations
60 ns

1.25 MB

48 ns

Table 2- 4 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 PN CPU 1511TF-1 PN CPU 1513F-1 PN CPU 1515F-2 PN

Fail-safe CPU for small to mid-range applications
Fail-safe technology CPU for small to mid-range applications
Fail-safe CPU for mid-range applications
Fail-safe CPU for mid-range to large applications

PROFIBUS interfaces
---
---

PROFINET IO RT/IRT interfaces
1
1
1
1

PROFINET IO RT
interface
--
--
--
1

Basic PROFINET functionality
--
--
--
--

Work memory
1.225 MB

Processing time for bit operations
60 ns

1.225 MB

60 ns

1.95 MB

40 ns

3.75 MB

30 ns

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

15

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

CPU
CPU 1515TF-2 PN
CPU 1516F3 PN/DP
CPU 1516TF3 PN/DP
CPU 1517F3 PN/DP

Performance segment
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks

PROFIBUS interfaces
--
1
1
1

PROFINET IO RT/IRT interfaces
1
1
1
1

PROFINET IO RT
interface
1
1
1
1

Basic PROFINET functionality
--
--
--
--

Work memory
3.75 MB 6.5 MB 6.5 MB 11 MB

Processing time for bit operations
30 ns
10 ns
10 ns
2 ns

CPU 1517TF-

Fail-safe technology

1

1

1

--

3 PN/DP

CPU for demanding

applications and

communication tasks

CPU 1518F-

Fail-safe CPU for

1

1

1

1

4 PN/DP

high-performance

applications, de-

manding communi-

cation tasks and

very short reaction

times

CPU 1518F-4

Fail-safe CPU for

1

1

1

1

PN/DP MFP

high-performance

applications, de-

manding communi-

cation tasks, very

short reaction times

and C/C++ blocks

for the user program

* 50 MB of the integrated work memory is reserved for the function library of CPU runtime

11 MB

2 ns

26 MB

1 ns

76* MB

1 ns

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

16

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1516T3 PN/DP
CPU 1517T3 PN/DP
CPU 1511TF-1 PN CPU 1515TF-2 PN CPU 1516TF3 PN/DP CPU 1517TF3 PN/DP

Performance segment PROFIBUS PROFINET PROFINET

interfaces

IO RT/IRT interfaces

IO RT interface

Technology CPU for

--

1

--

small to mid-range

applications

Technology CPU for

--

1

1

mid-range to large

applications

Technology CPU for

1

1

1

high-end applica-

tions and communi-

cation tasks

Technology CPU for

1

1

1

complex applications

and communication

tasks

These CPUs are described in the fail-safe CPUs

Basic PROFINET functionality
--
--
--
--

Work memory
1.225 MB

Processing time for bit operations
60 ns

3.75 MB

30 ns

6.5 MB

10 ns

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meters Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

17

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs
Integrated Motion Control technology functions All CPUs of the SIMATIC S7-1500 automation system support motion control technology functions. STEP 7 provides PLCopen-standardized Motion Control instructions for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Cam  Cam track  Measuring input The technology CPUs of the SIMATIC S7-1500-automation system offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at the following axis ­ Camming  Up to 4 encoder or measuring systems as actual position for position control  Cam  Kinematics for control of: ­ Cartesian portals ­ Roller pickers ­ Jointed-arm robots ­ Delta pickers ­ SCARA robots Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller series offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 controller series has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimum control quality.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

18

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs

Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). With the CPU 1511C-1 PN and CPU 1512C-1 PN compact CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.

Redundant CPUs
The CPUs of the S7-1500R/H redundant system offer a high degree of reliability and system availability. A redundant configuration of the most important automation components reduces the likelihood of production downtimes and the consequences of component errors.
The higher the risks and costs of a production downtime, the more worthwhile the use of a redundant system. The avoidance of production downtimes compensates for the generally higher investment costs.

Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.

Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2015 or EN ISO 13849-1:2015
Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

19

Product overview 2.2 Area of application of the SIMATIC S7-1500 CPUs
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are shown on the display directly in plain text. When performing servicing, you can minimize plant downtimes by quickly accessing the diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential jumpers for flexible formation of potential groups simplify storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the SIMATIC S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information and alarms from the drives are displayed consistently and in plain text:
 On the CPU display
 In STEP 7
 On the HMI
 On the Web server
This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages defined for the CPU. If you require alarm texts in additional languages, you can load them into your HMI via the configured connection. The CPU, STEP 7 and your HMI ensure data consistency without additional engineering steps. The maintenance work is easier.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

20

Equipment Manual, 11/2019, A5E46418484-AA

2.3

Hardware properties

Article number 6ES7516-3AN02-0AB0

View of the module The figure below shows the CPU 1516-3 PN/DP.

Product overview 2.3 Hardware properties

Figure 2-1 CPU 1516-3 PN/DP product image
Note Protective film Please note that the CPU is supplied with a removable protective film on the display.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

21

Product overview 2.3 Hardware properties

Properties

The 1516-3 PN/DP has the following technical properties:

Property

Description

Additional information

CPU display

All CPUs of the SIMATIC S7-1500 product series

· S7-1500, ET 200MP

feature a display with plain text information. The

(http://support.automation.siemens.

display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of

com/WW/view/en/59191792) system manual

the CPU and make further network settings. The

· SIMATIC S7-1500 Display Simula-

display shows occurring error messages directly in

tor

plain text.

(http://www.automation.siemens.co

In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC

m/salesmaterial-as/interactivemanuals/getting-started_simatic-

S7-1500 Display Simulator are shown on the display.

s7-1500/disp_tool/start_en.html)

Supply voltage

The 24 V DC supply voltage is fed in via a 4-pin plug · Section Connecting up (Page 33)

located at the bottom of the CPU.

· S7-1500, ET 200MP

(http://support.automation.siemens.

com/WW/view/en/59191792) sys-

tem manual

PROFINET IO PROFINET interface (X1 P1R and X1 P2R)
PROFINET interface (X2 P1)
Operation of the CPU as · IO controller · I-device

The interface has two ports. In addition to basic PROFINET functionality, it also supports PROFINET IO RT (real time) and IRT (isochronous real time).
The interface has one port. In addition to basic PROFINET functionality, it also supports PROFINET IO RT (real time).
· IO controller: As an IO controller, the CPU addresses the connected IO devices
· I-device: As an I-device (intelligent IO device), the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent preprocessing unit of sub-processes

PROFINET (https://support.industry.siemens.com/ cs/ww/en/view/49948856) function manual

PROFIBUS DP

PROFIBUS interface (X3) The interface is used for connecting to a PROFIBUS network.

Operation of the CPU as a In the role as a DP master, the CPU addresses the

DP master

connected DP slaves. It is not possible for the CPU

to take the role of a DP slave.

PROFIBUS (https://support.industry.siemens.com/ cs/ww/en/view/59193579) function manual

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

22

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

The CPU 1516-3 PN/DP supports the following firmware functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA

Description
The system automatically generates the alarms for the system diagnostics and outputs these alarms via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.
The Web server lets you access the CPU data by means of a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

Additional information Diagnostics (https://support.industry.siemens.com/ cs/ww/en/view/59192926) function manual
· Web server (https://support.industry.siemens.c om/cs/ww/en/view/59193560) function manual
· Security with SIMATIC S7 controllers (https://support.industry.siemens.c om/cs/ww/en/view/90885010) system manual

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function (http://support.automation.siemens.co m/WW/view/en/64897128) function manual

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace recording can also be displayed through the Web server.

With OPC UA, data is exchanged via an open and vendor-neutral communication protocol.
The CPU can act as OPC UA server. The CPU can communicate with OPC UA clients as an OPC UA server.

Communication (https://support.industry.siemens.com/ cs/ww/en/view/59192925) function manual

In turn, the CPU can access an OPC UA server as OPC UA client, allow the OPC UA server to run methods and read out information from the OPC UA server.

Through OPC UA Companion Specification, methods can be specified in a uniform and vendor-neutral way. The specified methods enable you to integrate devices from a wide range of manufacturers into your plants and production processes more easily.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

23

Product overview 2.4 Firmware functions

Function Configuration control
PROFINET IO RT (real time)
IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)

Description
You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means especially in series machine manufacturing you have the option of operating/configuring different configuration variants of a machine with a single project.
RT prioritizes PROFINET IO frames over standard frames. This ensures the required determinism in the automation technology. In this process, the data is transferred via prioritized Ethernet frames.
A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in timesynchronized intervals, unaffected by other high network loads (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.
The Isochronous mode system property records measured values and process data and processes the signals in a fixed system clock. Isochronous mode contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.
It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.
RT operation is possible with the use of MRP.
The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no ring reconfiguration time.

Additional information S7-1500, ET 200MP (http://support.automation.siemens.co m/WW/view/en/59191792) system manual
PROFINET (https://support.industry.siemens.com/ cs/ww/en/view/49948856) function manual

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

24

Equipment Manual, 11/2019, A5E46418484-AA

Product overview 2.4 Firmware functions

Function Shared device
PROFIenergy Integrated technology Motion Control
Integrated closed-loop control functionality

Description
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. The goal is that the process is only provided with the energy that is absolutely required. Most of the energy is saved by the process. The PROFINET device itself only contributes a few watts to the savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs

S7-1500T Motion Control function manuals (https://support.industry.siemens.com/ cs/ww/en/view/109751049)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for positioning of a drive with closed-loop position control

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and eventdependent sensing of actual positions

· PID Compact (continuous PID controller)

PID control

· PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.com/ cs/ww/en/view/108210036) function manual

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

25

Product overview 2.4 Firmware functions

Function Integrated safety Know-how protection Copy protection
Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.

S7-1500, ET 200MP system manual

Copy protection links user blocks with the serial number of one or more SIMATIC memory cards or the serial number of one or more CPUs. User programs cannot run without the corresponding SIMATIC memory card or CPU.

You can use authorization levels to assign separate rights to different users.

The CPUs feature integrity protection by default. Integrity protection identifies possible manipulation of engineering data on the SIMATIC memory card or during data transfer between STEP 7 and the CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulation of engineering data.
If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input, you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads in the password automatically for the blocks. This saves you time.

· Optimum block protection because the users themselves do not know the password.

Reference

You can find additional information on the topic of "Integrated security/Access protection" in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

26

Equipment Manual, 11/2019, A5E46418484-AA

2.5
2.5.1

Operating and display elements

Product overview 2.5 Operating and display elements

Front view of the CPU with closed front panel
The following figure shows the front view of the CPU 1516-3 PN/DP.

 LEDs for the current operating mode and diagnostic status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1516-3 PN DP (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 42).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

27

Product overview 2.5 Operating and display elements
Removing and fitting the front panel or the display You can remove and fit the front panel or the display during operation.
WARNING Personal injury and damage to property may occur Personal injury or material damage can occur in zone 2 hazardous areas if you remove or fit the display while the S7-1500 automation system is running. Before you remove or insert the display in zone 2 hazardous areas, always make sure that the power supply to the S7-1500 automation system is switched off.
Locking the front panel You can lock the front panel to protect the SIMATIC memory card and the operating mode buttons of the CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

28

Equipment Manual, 11/2019, A5E46418484-AA

2.5.2

Product overview 2.5 Operating and display elements
Front view of the CPU without front panel or display and view from below
The following figure shows the operator controls and connection elements of the CPU 1516-3 PN/DP.

 LEDs for the current operating mode and diagnostic status of the CPU  Connector for the display  PROFIBUS interface (X3)  Arrow keys  LED displays for the PROFINET interface  STOP and RUN operating mode buttons  STOP-ACTIVE LED  Connector for the supply voltage
Figure 2-4 View of the CPU 1516-3 PN/DP (without front panel or display) - front
Note Removing the display
Only remove the display if it is faulty.
You can find information on removing and replacing displays in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

29

Product overview 2.5 Operating and display elements
 Slot for the SIMATIC memory card  PROFINET IO interface (X1) with 2 ports  PROFINET IO interface (X2) with 1 port  Connector for supply voltage  Fastening screw
Figure 2-5 View of the CPU 1516-3 PN/DP - bottom

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

30

Equipment Manual, 11/2019, A5E46418484-AA

2.5.3

Product overview 2.5 Operating and display elements
Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1516-3 PN/DP.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-6 View of the CPU 1516-3 PN/DP - rear

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

31

Product overview 2.6 Operating mode buttons

2.6

Operating mode buttons

You use the operating mode buttons to:

 Request a change to a specific operating state

 Disable or enable the change to a specific operating state

(if the operating mode button STOP is active, for example, you cannot switch the CPU to RUN via a communication task configured in the TIA Portal or via the display)

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 6 Meaning of the operating mode buttons

Operation of the operating mode buttons RUN

Meaning RUN mode

STOP

STOP mode

1. Press the operating mode button STOP. Manual memory reset

Result: The RUN/STOP LED lights up yellow.

(with SIMATIC memory card inserted)

2. Press the operating mode button STOP or

until the RUN/STOP LED lights up for Reset to factory settings (without

the 2nd time and remains continuously lit inserted SIMATIC memory card)

(this takes three seconds). After this, re-

lease the button.

3. Press the operating mode button STOP again within the next three seconds.

Explanation The CPU has permission to go to RUN. The CPU does not have permission to go to RUN. The CPU is executing a memory reset.
or The CPU is being reset to factory settings. You can find additional information in the S7-1500/ET 200MP system manual (https://support.industry.siemens.com/ cs/ww/en/view/59191792).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

32

Equipment Manual, 11/2019, A5E46418484-AA

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1516-3 PN/DP.

24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory.
The following table shows the signal names and the descriptions of the pin assignment of the 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View Connector

Signal name 1)

Description

1 1L+ 2 1M 3 2M 4 2L+

+ 24 V DC of the supply voltage Ground of the supply voltage Ground of the supply voltage for loop-through 2) + 24 V DC of the supply voltage for loop-through 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally 2) Maximum 10 A permitted
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

33

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1R and X1 P2R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interface X2 with 1 port (X2 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Removing the PROFINET plug You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.

PROFIBUS interface X3
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 2

PROFIBUS interface terminal assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Description Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

34

Equipment Manual, 11/2019, A5E46418484-AA

Connecting up

Note
Supply of I/O devices
The CPU 1516-3 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. This means it does not need a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Removing the display
You can find a description of how to remove and replace the display in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
CPU 1516-3 PN/DP has two PROFINET interfaces, with the first interface having two ports. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1516-3 PN/DP therefore has five MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right side of each CPU 1516-3 PN/DP.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

35

Connecting up

The table below shows how the MAC addresses are assigned.

Table 3- 3 Assignment of the MAC addresses

MAC address 1

Assignment PROFINET interface X1 (visible in STEP 7 in accessible devices)

MAC address 2 MAC address 3 MAC address 4
MAC address 5

Port X1 P1R (required for LLDP, for example) Port X1 P2R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 in accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front printed · Right side printed
(start of number range) ----Front printed
Right side printed (end of number range)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

36

Equipment Manual, 11/2019, A5E46418484-AA

Connecting up
Block diagram The following figure shows the block diagram of the CPU 1516-3 PN/DP.


     
X50 X80 24 V DC PN X1 P1 R

CPU with control and operating mode buttons Display Electronics PROFINET 2-port switch PROFIBUS DP driver with electrical isolation Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage PROFINET interface X1 port 1

PN X1 P2 R
PN X2 P1 PB X3 L+ M SA R/S ER MT X1 P1, X1 P2, X2 P1

Figure 3-1 Block diagram of the CPU 1516-3 PN/DP

PROFINET interface X1 port 2
PROFINET interface X2 port 1 PROFIBUS interface X3 24 V DC supply voltage Ground STOP-ACTIVE LED (yellow) RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

37

Interrupts, error messages, diagnostics and system alarms

4

The LED displays of the CPU 1516-3 PN/DP are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1516-3 PN/DP LEDs.

 RUN/STOP LED (green/yellow LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)  STOP-ACTIVE LED
Figure 4-1 LED displays of the CPU 1516-3 PN/DP (without front panel and display)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

38

Equipment Manual, 11/2019, A5E46418484-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1516-3 PN/DP has three LEDs for displaying the current operating state and diagnostic status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green LED lit green LED lit yellow LED lit yellow LED lit yellow LED lit yellow

LED off LED flashes red LED flashes red
LED off LED off LED flashes red

LED flashes yellow

LED off

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode. There are no events, requirements, errors, etc. A diagnostics event is pending.
Maintenance demanded for the plant. You need to check/replace the affected hardware within a short period of time. Active Force job PROFIenergy pause Bad configuration
An error has occurred.

LED off LED flashes yellow
LED off LED flashes yellow
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. The CPU has detected an error state. Additional information is available via the CPU diagnostic buffer. CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU is executing a program with active breakpoint.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

39

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green
LED flashes yellow/green

ERROR LED LED off
LED flashes red

MAINT LED LED off

Meaning Startup (transition from STOP  RUN)

LED flashes yellow

Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the ports of the CPU 1516-3 PN/DP.

Table 4- 2 Meaning of the LED

LINK TX/RX LED LED off
LED flashes green LED lit green LED flashes yellow/green

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device
and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The CPU is performing an "LED flash test".
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received/sent by a communication partner in the Ethernet via the PROFINET interface of the PROFINET device.

Note "LED" instruction
You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 CPUs.
You can find additional information on the "LED" instruction in the STEP 7 online help.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

40

Equipment Manual, 11/2019, A5E46418484-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of STOP-ACTIVE LED
The following table shows the meaning of the STOP-ACTIVE LED for the CPU 1516-3 PN/DP.

STOP-ACTIVE LED LED lit yellow
LED off

Meaning The CPU has been switched to STOP mode using the STOP button.
· As long as the STOP-ACTIVE LED is lit, switching the CPU to RUN mode is only possible using the RUN button.
· The CPU can then no longer be set to RUN mode via display operation or via online functions. The state of the buttons is retained at power-off. If the CPU should not start up automatically after a power-on, you have to keep the STOP button pressed during startup until the STOP-ACTIVE LED is activated.
· If automatic startup is to be reliably prevented after a power-on, the STOP button has to be kept pressed during the startup of the CPU until the STOP-ACTIVE LED is activated.
· The CPU has been set to STOP mode using the display or programming device/PC and not with the STOP button on the device.
· The CPU is in RUN mode.

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

41

Technical specifications

5

The following table shows the technical specifications as of 11/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7516-3AN02-0AB0/td?dl=en).

Article number General information Product type designation HW functional status Firmware version Product function · I&M data
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as
of version
Configuration control via dataset Display Screen diagonal [cm] Control elements Number of keys Mode buttons Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Mains buffering · Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t

6ES7516-3AN02-0AB0
CPU 1516-3 PN/DP FS01 V2.8
Yes; I&M0 to I&M3 Yes; Distributed and central; with minimum OB 6x cycle of 375 µs (distributed) and 1 ms (central)
V16 (FW V2.8); with older TIA Portal versions configurable as 6ES7516-3AN01-0AB0
Yes
6.1 cm
8 2
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
0.85 A 1.1 A 2.4 A; Rated value 0.02 A²·s

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

42

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced) Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory · integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max. FC · Number range · Size, max.

6ES7516-3AN02-0AB0
12 W 6.7 W
7 W
1 Yes
1 Mbyte 5 Mbyte
32 Gbyte
Yes
10 ns 12 ns 16 ns 64 ns
8 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 5 Mbyte; For DBs with absolute addressing, the max. size is 64 KB
0 ... 65 535 1 Mbyte
0 ... 65 535 1 Mbyte

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

43

Technical specifications

Article number OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm
OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs Nesting depth · per priority class Counters, timers and their retentivity S7 counter · Number Retentivity
­ adjustable IEC counter · Number Retentivity
­ adjustable S7 times · Number Retentivity
­ adjustable IEC timer · Number Retentivity
­ adjustable

6ES7516-3AN02-0AB0 1 Mbyte 100 20 20 20; With minimum OB 3x cycle of 250 µs 50 3 3 2
100 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

44

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number Data areas and their retentivity Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.

6ES7516-3AN02-0AB0
512 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 472 KB 5 Mbyte; When using PS 6 0W 24/48/60 V DC HF
16 kbyte

· Number of clock memories
Data blocks · Retentivity adjustable

8; 8 clock memory bit, grouped into one clock memory byte
Yes

· Retentivity preset

No

Local data · per priority class, max.

64 kbyte; max. 16 KB per block

Address area Number of IO modules I/O address area · Inputs

8 192; max. number of modules / submodules 32 kbyte; All inputs are in the process image

· Outputs

32 kbyte; All outputs are in the process image

per integrated IO subsystem ­ Inputs (volume)

8 kbyte

­ Outputs (volume)

8 kbyte

per CM/CP ­ Inputs (volume)

8 kbyte

­ Outputs (volume)

8 kbyte

Subprocess images

· Number of subprocess images, max.

32

Hardware configuration Number of distributed IO systems
Number of DP masters · integrated

64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
1

· Via CM
Number of IO Controllers · integrated

8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2

· Via CM

8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

45

Technical specifications
Article number Rack · Modules per rack, max. · Number of lines, max. PtP CM · Number of PtP CMs
Time of day Clock · Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · to DP, master · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
46

6ES7516-3AN02-0AB0
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes Yes Yes Yes
2 1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes; Optionally also encrypted Yes Yes
CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0) Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication

6ES7516-3AN02-0AB0 Yes

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Direct data exchange ­ IRT

Yes; Requirement: IRT and isochronous mode (MRPD optional)
Yes

­ MRP ­ MRPD

Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes; per user program

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max. ­ Of which IO devices with IRT, max.

256; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
64

­ Number of connectable IO Devices for RT, 256 max.

­ of which in line, max.

256

­ Number of IO Devices that can be simul- 8; in total across all interfaces taneously activated/deactivated, max.

­ Number of IO Devices per tool, max.

8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 375 µs of the isochronous OB is decisive 500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" send cycles

Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs ... 3 875 µs)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

47

Technical specifications

Article number Update time for RT
­ for send cycle of 250 µs ­ for send cycle of 500 µs ­ for send cycle of 1 ms ­ for send cycle of 2 ms ­ for send cycle of 4 ms PROFINET IO Device Services ­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Shared device ­ Number of IO Controllers with shared de-
vice, max. ­ Asset management record 2. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

6ES7516-3AN02-0AB0
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes; per user program Yes 4
Yes; per user program
1 No Yes; X2
Yes; IPv4 Yes Yes Yes Yes; Optionally also encrypted Yes No

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

48

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication

6ES7516-3AN02-0AB0 Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Direct data exchange

No

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes; per user program

­ Prioritized startup

No

­ Number of connectable IO Devices, max.

32; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Number of connectable IO Devices for RT, 32 max.

­ of which in line, max.

32

­ Number of IO Devices that can be simul- 8; in total across all interfaces taneously activated/deactivated, max.

­ Number of IO Devices per tool, max.

8

­ Updating times
Update time for RT ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes; per user program

­ Prioritized startup

No

­ Shared device

Yes

­ Number of IO Controllers with shared de- 4 vice, max.

­ Asset management record

Yes; per user program

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

49

Technical specifications

Article number 3. Interface Interface types · Number of ports · RS 485 Protocols · PROFIBUS DP master · PROFIBUS DP slave · SIMATIC communication Interface types RJ 45 (Ethernet) · 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED RS 485 · Transmission rate, max. Protocols Number of connections · Number of connections, max.
· Number of connections reserved for ES/HMI/web
· Number of connections via integrated interfaces
· Number of S7 routing paths Redundancy mode · H-Sync forwarding SIMATIC communication · S7 communication, as server · S7 communication, as client · User data per job, max.

6ES7516-3AN02-0AB0
1 Yes; X3
Yes No Yes
Yes Yes Yes Yes
12 Mbit/s
256; via integrated interfaces of the CPU and connected CPs / CMs 10
128
16
Yes
Yes Yes See online help (S7 communication, user data size)

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

50

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number Open IE communication · TCP/IP
­ Data length, max. ­ several passive connections per port,
supported · ISO-on-TCP (RFC1006)
­ Data length, max. · UDP
­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS PROFIBUS DP master · Number of connections, max. Services ­ PG/OP communication ­ S7 routing ­ Data record routing ­ Isochronous mode ­ Equidistance ­ Number of DP slaves
­ Activation/deactivation of DP slaves

6ES7516-3AN02-0AB0
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

51

Technical specifications

Article number OPC UA · Runtime license required

6ES7516-3AN02-0AB0 Yes

· OPC UA client

Yes

­ Application authentication

Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of connections, max.

10

­ Number of nodes of the client interfaces, 2 000 max.

­ Number of elements for one call of

300

OPC_UA_NodeGetHandleList/OPC_UA_R

eadList/OPC_UA_WriteList, max.

­ Number of elements for one call of

20

OPC_UA_NameSpaceGetIndexList, max.

­ Number of elements for one call of

100

OPC_UA_MethodGetHandleList, max.

­ Number of simultaneous calls of the client 1 instructions per connection (except OPC_UA_ReadList,OPC_UA_WriteList,O PC_UA_MethodCall), max.

­ Number of simultaneous calls of the client 5 instructions OPC_UA_ReadList,OPC_UA_WriteList and OPC_UA_MethodCall, max.

­ Number of registerable nodes, max.

5 000

­ Number of registerable method calls of

100

OPC_UA_MethodCall, max.

­ Number of inputs/outputs when calling

20

OPC_UA_MethodCall, max.

· OPC UA server ­ Application authentication

Yes; Data access (read, write, subscribe), method call, custom address space
Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of sessions, max.

48

­ Number of accessible variables, max.

100 000

­ Number of registerable nodes, max.

20 000

­ Number of subscriptions per session, max. 20

­ Sampling interval, min.

100 ms

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

52

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number ­ Publishing interval, min.

6ES7516-3AN02-0AB0 200 ms

­ Number of server methods, max.

50

­ Number of inputs/outputs per server

20

method, max.

­ Number of monitored items, max. ­ Number of server interfaces, max.

2 000; for 1 s sampling interval and 1 s send interval
10; or 20, depending on type of server interface

­ Number of nodes for user-defined server 5 000 interfaces, max.

Further protocols · MODBUS

Yes; MODBUS TCP

Media redundancy · Switchover time on line break, typ.

200 ms; For MRP, bumpless for MRPD

· Number of stations in the ring, max.

50

Isochronous mode

Isochronous operation (application synchronized Yes; Distributed and central; with minimum OB 6x

up to terminal)

cycle of 375 µs (distributed) and 1 ms (central)

Equidistance

Yes

S7 message functions

Number of login stations for message functions, 64 max.

Program alarms

Yes

Number of configurable program messages, max. 10 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH

Number of loadable program messages in RUN, 5 000 max.

Number of simultaneously active program alarms

· Number of program alarms

800

· Number of alarms for system diagnostics

200

· Number of alarms for motion technology ob- 160 jects

Test commissioning functions Joint commission (Team Engineering)
Status block
Single step Number of breakpoints

Yes; Parallel online access possible for up to 8 engineering systems
Yes; Up to 8 simultaneously (in total across all ES clients)
No
8

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

53

Technical specifications

Article number Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.

6ES7516-3AN02-0AB0
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200

Diagnostic buffer · present · Number of entries, max.
­ of which powerfail-proof Traces · Number of configurable Traces

Yes 3 200 500
4; Up to 512 KB of data per trace are possible

Interrupts/diagnostics/status information

Diagnostics indication LED

· RUN/STOP LED

Yes

· ERROR LED

Yes

· MAINT LED

Yes

· STOP ACTIVE LED

Yes

· Connection display LINK TX/RX

Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control resources 2 400 for technology objects (except cam disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

· Positioning axis

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

54

Equipment Manual, 11/2019, A5E46418484-AA

Technical specifications

Article number

6ES7516-3AN02-0AB0

­ Number of positioning axes at motion con- 7 trol cycle of 4 ms (typical value)

­ Number of positioning axes at motion con- 14 trol cycle of 8 ms (typical value)

Controller · PID_Compact
· PID_3Step
· PID-Temp Counting and measuring · High-speed counter

Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min.

No -25 °C; No condensation

· horizontal installation, max. · vertical installation, min.

60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off
-25 °C; No condensation

· vertical installation, max.
Ambient temperature during storage/transportation · min.

40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C

· max.

70 °C

Altitude during operation relating to sea level · Installation altitude above sea level, max.
Configuration Programming Programming language
­ LAD

5 000 m; Restrictions for installation altitudes > 2 000 m, see manual
Yes

­ FBD

Yes

­ STL

Yes

­ SCL

Yes

­ GRAPH

Yes

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

55

Technical specifications

Article number Know-how protection · User program protection/password protection
· Copy protection
· Block protection Access protection · Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring · lower limit
· upper limit Dimensions Width Height Depth Weights Weight, approx.

6ES7516-3AN02-0AB0
Yes Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
70 mm 147 mm 129 mm
845 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP System Manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

56

Equipment Manual, 11/2019, A5E46418484-AA

Dimensional drawing

A

This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings for CPU 1516-3 PN/DP

Figure A-1 Dimensional drawing of the CPU 1516-3 PN/DP

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

Equipment Manual, 11/2019, A5E46418484-AA

57

Dimensional drawing
Figure A-2 CPU with open front panel

CPU 1516-3 PN/DP (6ES7516-3AN02-0AB0)

58

Equipment Manual, 11/2019, A5E46418484-AA

SIMATIC
S7-1500 CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_Co_n_ne_c_tin_g_up___________3_

Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______5_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

12/2017
A5E40898375-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40898375-AA  11/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1516T-3 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

4

Manual, 12/2017, A5E40898375-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ..................................................................................................................................... 11

2.1

Applications of the S7-1500 CPU .......................................................................................... 11

2.2

Hardware properties .............................................................................................................. 18

2.3

Firmware functions................................................................................................................. 20

2.4 2.4.1 2.4.2 2.4.3

Operating and display elements ............................................................................................ 24 Front view of the CPU with closed front panel....................................................................... 24 Front view of the CPU without front flap ................................................................................ 26 Rear view of the CPU ............................................................................................................ 27

2.5

Mode selector switch ............................................................................................................. 27

3 Connecting up ......................................................................................................................................... 28

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 33

4.1

Status and error display of the CPU ...................................................................................... 33

5 Technical specifications ........................................................................................................................... 36

A Dimensional drawing ............................................................................................................................... 49

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

6

Manual, 12/2017, A5E40898375-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

8

Manual, 12/2017, A5E40898375-AA

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

10

Manual, 12/2017, A5E40898375-AA

Product overview

2

2.1

Applications of the S7-1500 CPU

Area of application SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and user-friendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Areas of application of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

11

Product overview 2.1 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/ DP
CPU 1517-3 PN/ DP
CPU 1518-4 PN/ DP CPU 1518-4 PN/ DP MFP

Performance segment
Standard CPU for small to mid-range applications
Standard CPU for mid-range applications
Standard CPU for small to mid-range applications
Standard CPU for high-end applications and communication tasks
Standard CPU for high-end applications and communication tasks
Standard CPU for high-performance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET IO RT/IRT interface
1
1
1
1
1
1

PROFINET IO RT
interface --
--
1
1
1
1

PROFINET basic
functionality --
--
--
--
--
1

Work memory
1.15 MB

Processing time for bit operations
60 ns

1.8 MB

40 ns

3.5 MB

30 ns

6 MB

10 ns

10 MB

2 ns

24 MB

1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

CPU 1511C-1 PN CPU 1512C-1 PN

Compact CPU for small to mid-range applications
Compact CPU for mid-range applications

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic
functionality
--

Work memory
1.175 MB

Processing time for bit operations
60 ns

--

1

--

--

1.25 MB

48 ns

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

12

Manual, 12/2017, A5E40898375-AA

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 PN

Fail-safe CPU for small to mid-range applications

CPU 1511TF-1 PN

Fail-safe technology CPU for small to mid-range applications

CPU 1513F-1 PN

Fail-safe CPU for mid-range applications

CPU 1515F-2 PN

Fail-safe CPU for mid-range to large applications

CPU 1515TF-2 PN

Fail-safe technology CPU for demanding applications and communication tasks

CPU 1516F-3 PN/ DP

Fail-safe CPU for demanding applications and communication tasks

CPU 1516TF-3 PN/ DP

Fail-safe technology CPU for demanding applications and communication tasks

CPU 1517F-3 PN/ DP

Fail-safe CPU for demanding applications and communication tasks

CPU 1517TF-3 PN/ DP

Fail-safe technology CPU for demanding applications and communication tasks

CPU 1518F-4 PN/ DP
CPU 1518F-4 PN/ DP MFP

Fail-safe CPU for high-performance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic
functionality
--

--

1

--

--

--

1

--

--

--

1

1

--

--

1

1

--

1

1

1

--

1

1

1

--

1

1

1

--

1

1

1

--

1

1

1

1

Work memory 1.225 M
B 1.225 M
B 1.95 MB 3.75 MB 3.75 MB
6.5 MB
6.5 MB
11 MB
11 MB
26 MB

Processing time for bit operations
60 ns 60 ns
40 ns 30 ns 30 ns
10 ns
10 ns
2 ns
2 ns
1 ns

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

13

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS PROFINET PROFINET PROFINET

interfaces IO RT/IRT IO RT

basic

interfaces interface functionality

CPU 1511T-1 PN Technology CPU for

--

1

--

--

small to mid-range

applications

CPU 1515T-2 PN Technology CPU for

--

1

1

--

mid-range to large

applications

CPU 1516T-3 PN/ Technology CPU for

1

1

1

--

DP

high-end applica-

tions and communi-

cation tasks

CPU 1517T-3 PN/ Technology CPU for

1

1

1

--

DP

high-end applica-

tions and communi-

cation tasks

CPU 1511TF-1 PN These CPUs are described in the fail-safe CPUs

CPU 1515TF-2 PN

CPU 1516TF-3 PN/ DP

CPU 1517TF-3 PN/ DP

Work memory 1.23 MB 3.75 MB 6.5 MB
11 MB

Processing time for bit operations
60 ns
30 ns
10 ns
2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output) Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

14

Manual, 12/2017, A5E40898375-AA

Product overview 2.1 Applications of the S7-1500 CPU
Integrated Motion Control technology functions All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axes  Positioning axes  Synchronous axes  External encoders  Output cams  Cam tracks  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

15

Product overview 2.1 Applications of the S7-1500 CPU
Other technology functions Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
In addition to the CPUs, further components such as SINAMICS drives dispose of integrated safety functions. Additional information about integrated safety functions in drives can be found in the manuals for the respective products.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

16

Manual, 12/2017, A5E40898375-AA

Product overview 2.1 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

17

Product overview 2.2 Hardware properties

2.2

Hardware properties

Article number 6ES7516-3TN00-0AB0
View of the module The following figure shows the CPU 1516T-3 PN/DP.

Figure 2-1 CPU 1516T-3 PN/DP
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

18

Manual, 12/2017, A5E40898375-AA

Product overview 2.2 Hardware properties

Properties

The CPU 1516T-3 PN/DP has the following properties:

Property CPU display

Description

Additional information

All CPUs of the SIMATIC S7-1500 product series feature · S7-1500, ET 200MP system

a display with plain text information. The display provides

manual

information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and carry out further

(http://support.automation.sieme ns.com/WW/view/en/59191792)

network settings. The display shows occurring error

· SIMATIC S7-1500 Display

messages directly in plain text.

Simulator

In addition to the functions listed here, a multitude of other functions that are described in the

(http://www.automation.siemens. com/salesmaterial-as/interactive-

SIMATIC S7-1500 Display Simulator are shown on the

manuals/getting-started_simatic-

display.

s7-1500/disp_tool/start_en.html)

Supply voltage

The 24 V DC supply voltage is supplied via a 4-pole connection plug that is located at the front of the CPU.

· Chapter Connecting up (Page 28)

· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

PROFIBUS DP

PROFIBUS interface (X3)
Operation of the CPU as DP master

The interface serves to connect to a PROFIBUS network.
In the role as a DP master, the CPU addresses the connected DP slaves. The CPU cannot assume the role of a DP slave.

PROFIBUS function manual (https://support.industry.siemens.co m/cs/ww/en/view/59193579)

PROFINET IO

PROFINET interface (X1 P1 R, X1 P2 R)

The interface has two ports. In addition to basic

PROFINET function manual

PROFINET functionality, its also supports PROFINET IO (https://support.industry.siemens.co

RT (real time) and IRT (isochronous real time).

m/cs/ww/en/view/49948856)

PROFINET interface (X2 P1)

The interface has two ports. In addition to basic PROFINET functionality, its also supports PROFINET IO RT (real time).

Operation of the CPU as · IO controller:

· IO controller · I-device

As an IO controller the CPU addresses the connected IO devices
· I-device:

As an I-device (intelligent IO device) the CPU is

assigned to a higher-level IO controller and is used in

the process as an intelligent pre-processing unit of

sub-processes

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

19

Product overview 2.3 Firmware functions

2.3

Firmware functions

Functions

The CPU 1516T-3 PN supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description
The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.
The Web server lets you access the CPU data by means of a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

Additional information Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59191792)
· Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
· Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (http://support.automation.siemens.c om/WW/view/en/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and manufacturer-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU acting as the OPC UA server can communicate with OPC UA clients.

Communication function manual (https://support.industry.siemens.co m/cs/ww/en/view/59192925)

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different

S7-1500, ET 200MP system manual

real hardware configurations with a configured maximum (http://support.automation.siemens.c

configuration of the hardware. This means that, in series om/WW/view/en/59191792)

machine manufacturing in particular, you have the option

of operating/configuring different configuration variants of

a machine with a single project.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

20

Manual, 12/2017, A5E40898375-AA

Product overview 2.3 Firmware functions

Function

Description

PROFINET IO

RT (real time)

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.

IRT (isochronous real time)

A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.

Isochronous mode

The Isochronous mode system property acquires measured values and process data and processes the signal in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.

MRP (Media Redundancy Protocol)

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

MRPD (Media Redundancy with Planned Duplication)

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

Shared device

The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

Additional information
PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

21

Product overview 2.3 Firmware functions

Function PROFIenergy

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

Integrated technology

Motion Control

S7-1500 CPUs support the controlled positioning and S7-1500 Motion Control

traveling of axes via S7-1500 Motion Control functions by function manual

means of the following technology objects:

(http://support.automation.siemens.c

Speed-controlled axes, positioning axes, synchronized om/WW/view/en/109749262)

axes, external encoders, cams, cam tracks and

measuring inputs.

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and event-dependent sensing of actual positions
You program the technology objects with Motion Control instructions according to PLCopen.

Extended Motion Control The technology CPUs of the SIMATIC S7-1500 also

functions

support extended Motion Control functions:

· Advanced synchronization functions

­ Synchronization with specification of the synchronous position
­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming

S7-1500T Motion Control function manual (https://support.industry.siemens.co m/cs/ww/en/view/109749263)
S7-1500T Kinematics Functions V4.0 in TIA Portal V15 (https://support.industry.siemens.co m/cs/ww/en/view/109749264) Function manual

· Cam

· Up to 4 encoders or measuring systems as actual position for position control

· Controlling of kinematics, such as

­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

22

Manual, 12/2017, A5E40898375-AA

Product overview 2.3 Firmware functions

Function Integrated closed-loop control functionality
Integrated safety Know-how protection Copy protection
Access protection Integrity protection
Password provider

Description · PID Compact (continuous PID controller) · PID 3Step (step controller for integrating actuators) · PID Temp (temperature controller for heating and
cooling with two separate actuators)

Additional information
PID control function manual (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

You can use authorization levels to assign separate rights to different users.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.
If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.
As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

23

Product overview 2.4 Operating and display elements

2.4

Operating and display elements

2.4.1

Front view of the CPU with closed front panel
The following figure shows the front view of the CPU 1516T-3 PN/DP.

 LEDs for the current operating mode and diagnostics status of the CPU  Display  Operator control buttons
Figure 2-2 View of the CPU 1516T-3 PN/DP (with front panel) ­ front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 36).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

24

Manual, 12/2017, A5E40898375-AA

Product overview 2.4 Operating and display elements
Removing and attaching the front panel with display You can remove and attach the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel You can lock the front panel to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panel.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

25

Product overview 2.4 Operating and display elements

2.4.2

Front view of the CPU without front flap
The figure below shows the operator controls and connection elements of the CPU 1516T-3 PN/DP.

 Mode selector  No function  PROFIBUS interface (X3)  Fixing screws  Connector for power supply  PROFINET IO interface (X2) with 1 port  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 3 ports of the PROFINET interfaces X1 and X2  Slot for the SIMATIC memory card  Display connection  LEDs for the current operating mode and diagnostics status of the CPU
Figure 2-4 View of the CPU 1516T-3 PN/DP (without front panel) ­ front

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

26

Manual, 12/2017, A5E40898375-AA

2.4.3

Product overview 2.5 Mode selector switch
Rear view of the CPU
The following figure shows the connection elements on the back of the CPU 1516T-3 PN/DP.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-5 View of the CPU 1516T-3 PN/DP ­ rear

2.5

Mode selector switch

You use the mode switches to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 5 Meaning of the mode switches

Operation of the mode switch RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not being executed. (STOP ACTIVE LED lights up). Position for CPU memory reset.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

27

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1516T-3 PN/DP.
24 V DC supply voltage (X80) The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

28

Manual, 12/2017, A5E40898375-AA

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
PROFINET interface X2 with 1 port (X2 P1) The assignment corresponds to the Ethernet standard for an RJ45 plug. Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

29

Connecting up

PROFIBUS interface X3
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface terminal assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

Note
Supply of I/O devices
The CPU 1516T-3 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. This means it does not need a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

30

Manual, 12/2017, A5E40898375-AA

Connecting up

Assignment of the MAC addresses
CPU 1516T-3 PN/DP has two PROFINET interfaces, with the first interface having two ports. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1516T-3 PN/DP therefore has five MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are lasered on the rating plate on the right side of each CPU 1516T-3 PN/DP.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 for accessible devices)
Port X2 P1 (required for LLDP, for example)

Labeling · Front, lasered · Right side, lasered
(start of number range) · Front and right side, not lasered
· Front and right side, not lasered
· Front, lasered · Right side, not lasered · Front, not lasered · Right side, lasered
(end of number range)

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

31

Connecting up
Block diagram The following figure shows the block diagram of the CPU 1516T-3 PN/DP.

      
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch PROFIBUS DP driver Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

PN X1 P1 R PN X1 P2 R PN X2 P1 PB X3 L+ M R/S ER MT X1 P1, X1 P2, X2 P1

Figure 3-2 Block diagram of the CPU 1516T-3 PN/DP

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFIBUS interface X3 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

32

Manual, 12/2017, A5E40898375-AA

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1516T-3 PN/DP are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the LED displays of the CPU 1516T-3 PN/DP.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1516T-3 PN/DP (without front panel)

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1516T-3 PN/DP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green LED lit yellow LED lit yellow LED lit yellow LED lit yellow

LED flashes red LED flashes red
LED off LED off LED flashes red

LED flashes yellow

LED off

LED flashes yellow/green

LED off

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

34

Manual, 12/2017, A5E40898375-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1516T-3 PN/DP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

35

Technical specifications

5

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7516-3TN00-0AB0
CPU 1516T-3 PN/DP FS05 V2.5
V15 (FW V2.5)
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
1.2 A 1.55 A 2.4 A; Rated value 0.02 A²·s
12 W 30 W
24 W
1 Yes

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

36

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7516-3TN00-0AB0
1.5 Mbyte 5 Mbyte
32 Gbyte
Yes
10 ns 12 ns 16 ns 64 ns
6 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 5 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 1 Mbyte
0 ... 65 535 1 Mbyte
1 Mbyte 100 20 20 20; With minimum OB 3x cycle of 250 µs 50 3 2 2
100

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

37

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max.

6ES7516-3TN00-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
512 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 472 KB 5 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte Yes No
64 kbyte; max. 16 KB per block

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

38

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number Address area
Number of IO modules I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) per CM/CP ­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems
Number of DP masters · integrated · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number

6ES7516-3TN00-0AB0
8 192; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
8 kbyte 8 kbyte
8 kbyte 8 kbyte
32
64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
1 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

39

Technical specifications

Article number Clock synchronization
· supported · to DP, master · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Number of connectable IO Devices,
max.

6ES7516-3TN00-0AB0
Yes Yes Yes Yes Yes
2 1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 62439-2 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices 256; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

40

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number ­ Of which IO devices with IRT, max.

6ES7516-3TN00-0AB0 64

­ Number of connectable IO Devices for 256 RT, max.

­ of which in line, max.

256

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 s to 4 ms; Note: In the case of IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is decisive 500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" send cycles

Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

41

Technical specifications

Article number 2. Interface Interface types
· Number of ports

6ES7516-3TN00-0AB0 1

· integrated switch

No

· RJ 45 (Ethernet)

Yes; X2

Functionality · IP protocol

Yes; IPv4

· PROFINET IO Controller

Yes

· PROFINET IO Device

Yes

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

· Media redundancy

No

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

No

­ MRP

No

­ PROFIenergy

Yes

­ Prioritized startup

No

­ Number of connectable IO Devices, max.
­ Number of connectable IO Devices for RT, max.

32; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
32

­ of which in line, max.

32

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for RT ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

42

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number PROFINET IO Device Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Shared device ­ Number of IO Controllers with shared
device, max. ­ Asset management record 3. Interface Interface types · Number of ports · RS 485 Functionality · PROFIBUS DP master · PROFIBUS DP slave · SIMATIC communication Interface types RJ 45 (Ethernet) · 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED RS 485 · Transmission rate, max. Protocols Number of connections · Number of connections, max.
· Number of connections reserved for ES/HMI/web

6ES7516-3TN00-0AB0
Yes Yes No Yes No No No Yes No Yes 4
Yes; Per user program
1 Yes; X3
Yes No Yes
Yes Yes Yes Yes
12 Mbit/s
256; via integrated interfaces of the CPU and connected CPs / CMs 10

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

43

Technical specifications

Article number · Number of connections via integrated interfaces · Number of S7 routing paths
SIMATIC communication · S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
PROFIBUS DP master · Number of connections, max.
Services ­ PG/OP communication ­ S7 routing ­ Data record routing ­ Isochronous mode ­ Equidistance ­ Number of DP slaves
­ Activation/deactivation of DP slaves

6ES7516-3TN00-0AB0 128
16
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

44

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number OPC UA
· Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints Status/control · Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.

6ES7516-3TN00-0AB0
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 375 µs
Yes
32
Yes 10 000
600 200 160
Yes; Parallel online access possible for up to 8 engineering systems Yes; Up to 8 simultaneously (in total across all ES clients) No 8
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

45

Technical specifications

Article number Forcing
· Forcing, variables · Number of variables, max. Diagnostic buffer · present · Number of entries, max.
­ of which powerfail-proof Traces
· Number of configurable Traces Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX Supported technology objects Motion Control
· Number of available Motion Control resources for technology objects (except cam disks)
· Required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per probe
· Number of available Extended Motion Control resources for technology objects
· Required Extended Motion Control resources ­ for each cam ­ for each set of kinematics

6ES7516-3TN00-0AB0
Peripheral inputs/outputs 200
Yes 3 200 500
4; Up to 512 KB of data per trace are possible
Yes Yes Yes Yes
Yes; Note: The number of technology objects affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 6 400
40 80 160 80 20 160 40 192
2 30

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

46

Manual, 12/2017, A5E40898375-AA

Technical specifications

Article number · Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value) Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/ transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection

6ES7516-3TN00-0AB0
55
80
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

47

Technical specifications

Article number Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7516-3TN00-0AB0
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
175 mm 147 mm 129 mm
1 978 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

48

Manual, 12/2017, A5E40898375-AA

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this section. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings of the CPU 1516T-3 PN/DP

Figure A-1 Dimensional drawing of the CPU 1516T-3 PN/DP, front and side view

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

Manual, 12/2017, A5E40898375-AA

49

Dimensional drawing
Figure A-2 Dimensional drawing of the CPU 1516T-3 PN/DP, side view with open front panel

CPU 1516T-3 PN/DP (6ES7516-3TN00-0AB0)

50

Manual, 12/2017, A5E40898375-AA

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)
SIMATIC
S7-1500 CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_W_iri_ng_______________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_

_Di_m_en_si_on_d_ra_w_in_g ________A_

09/2016
A5E33594822-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E33594822-AC  08/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1517-3 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

4

Manual, 09/2016, A5E33594822-AC

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

New functions in firmware version V2.0................................................................................. 11

2.2

Applications of the S7-1500 CPU .......................................................................................... 14

2.3

Operating principle ................................................................................................................. 19

2.4

Properties ............................................................................................................................... 20

2.5 2.5.1 2.5.2 2.5.3

Operating and display elements ............................................................................................ 25 Front view of the module with closed front panels ................................................................. 25 Front view of the module without front panels ....................................................................... 27 Rear view of the module ........................................................................................................ 28

2.6

Mode switch ........................................................................................................................... 28

3 Wiring ................................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms................................................................... 33

4.1

Status and error display of the CPU ...................................................................................... 33

5 Technical specifications ........................................................................................................................ 36

A Dimension drawing ............................................................................................................................... 48

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

6

Manual, 09/2016, A5E33594822-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

8

Manual, 09/2016, A5E33594822-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

10

Manual, 09/2016, A5E33594822-AC

Product overview

2

2.1

New functions in firmware version V2.0

New functions of the CPU in firmware version V2.0
This section lists the new features of the CPU with firmware version V2.0. You can find additional information in the sections of this manual.

Table 2- 1 New functions of the CPU with firmware version 2.0 compared with firmware version V1.8

New functions OPC UA server
PROFINET IO PROFINET IO on the 2nd PROFINET interface IRT with very short data cycle times down to 187.5 µs
MRPD: Media Redundancy for Planned Duplication for IRT

Applications

Customer benefits

You realize the data communication between different systems, both within the process level and on the control and enterprise levels:
· To embedded systems with controllers
· To controllers with MES systems and systems of the enterprise level (ERP, asset systems)

OPC UA is a unified standard for data communication and is independent of any particular operating system platforms.
You have integrated security mechanisms on different automation systems, for example, for data exchange, on the application level, for authentication of the user.
OPC UA servers provide a large amount of data:
· Values of PLC tags that clients can access

· To Siemens controllers with controllers from other manufacturers
· To intelligent sensors with controllers Supported standard: OPC Data Access, DA.

· Data types of these PLC tags
· Information about the OPC UA server itself and the CPU
In this way, clients can gain an overview and can read and write values.

You can operate another PROFINET IO You use a fieldbus in the plant.

system on the CPU or connect additional The CPU can perform fast and deterministic data

IO devices.

exchange as an I-device with a higher-level controller

(PROFINET/Ethernet) through the second line.

You realize high-end applications with IO You make PROFINET IO communication and stand-

communication which place very high ard communication possible via one cable even with

performance demands on the IO pro- a send clock of 187.5 µs.

cessing.

Data cycle of 187.5 s: You configure program

blocks with the additional "low jitter" property, which

provides deterministic runtimes.

PROFINET IO IRT enables you to realize applications that place particularly high demands on failure safety and accuracy (isochronous).

By sending the cyclic IO data in both directions in the ring, the communication to the IO devices is maintained even when the ring is interrupted and does not result in device failure even with fast update times. You achieve higher failure safety than with MRP.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

11

Product overview 2.1 New functions in firmware version V2.0

New functions

Applications

Customer benefits

PROFINET performance You can develop applications with high

upgrade

demands on speed and clock cycles.

This is interesting for applications with

high demands on performance.

Better utilization of the bandwidth results in short reaction times.

Limitation of the data infeed into the network

You limit the network load for standard Ethernet communication to a maximum value.

You smooth peaks in the data infeed.
You share the remaining bandwidth based on requirements.

Display and Web server

Backing up and restoring via the display
Backing up and restoring via the Web server

You can back up and restore the CPU configuration to/from the SIMATIC memory card without a programming device/PC.
You can, for example, backup and restore the configuration of the CPU to the PG/PC on which the Web server is running.

You can make a backup copy of an operational project without STEP 7.
In an "emergency", you can simply use an existing configuration without STEP 7, for example, during commissioning or after a program download.

Display and Web server provide up to three project languages for comments and message texts

When you export your plants worldwide, for example, comments or message texts can be stored on the card in up to 3 languages. For example, German author's language, English - internationally usable, Portuguese - end user's language.

You provide customers with better service.

Trace via Web server
Monitoring of configured technology objects via a Web server

When you enable trace functions via the Web server, you have better service support. You can send your trace recordings via Web service, for example, to your service partner.
You can monitor statuses, errors, technology alarms and the current values of technology objects (TOs) with the Web server.

You get plant/project information for diagnostics and maintenance requirements without STEP 7.
You can provide trace recordings for each Web server.
You save time in troubleshooting.

Formatting, erasing or converting a SIMATIC memory card via the display

Your SIMATIC memory card is directly formatted, erased or converted to a program card without having to use STEP 7. You save time.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

12

Manual, 09/2016, A5E33594822-AC

Product overview 2.1 New functions in firmware version V2.0

New functions
Motion control
Greater number of axes for Motion Control applications and new technology objects: Output cam, cam track and measuring input

Applications

Customer benefits

Speed specification, e.g. for: · Pumps, fans, mixers · Conveyor belts · Auxiliary drives Positioning tasks, e.g.: · Lifting and vertical conveyors

You can implement additional Motion Control applications with a CPU.
The scalable configuration limits allow you to handle all types of application.
High machine speeds result in greater productivity with better accuracy.

· Feeding and gate control

· Palletizing equipment
Output cams and cam tracks make other applications possible, e.g.:

· Applying glue tracks

· Triggering switching operations with precise positioning

· Very precise processing of products on a conveyor belt
Measuring inputs are used, for example:

· For measuring products

· For detecting the position of the product on a conveyor belt

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

13

Product overview 2.2 Applications of the S7-1500 CPU

2.2

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Applications of the SIMATIC S7-1500, include, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Applications of the SIMATIC S7-1500T include, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

14

Manual, 09/2016, A5E33594822-AC

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 2 Standard CPUs

CPU

Performance segment

CPU 1511-1 PN Standard CPU for small to mid-range applications

CPU 1513-1 PN Standard CPU for midrange applications

CPU 1515-2 PN Standard CPU for midrange to large applications

CPU 1516-3 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 1517-3 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 1518-4 PN/DP
CPU 1518-4 PN/DP ODK

Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET IO RT/IRT interfaces
1
1 1
1
1
1

PROFINET IO RT inter-
face --
-1
1
1
1

PROFINET basic func-
tionality
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

--

1.95 MB 40 ns

--

3.75 MB 30 ns

--

6.5 MB 10 ns

--

11 MB

2 ns

1

26 MB

1 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C-1 PN CPU 1512C-1 PN

Performance segment PROFIBUS interfaces

Compact CPU for small

--

to mid-range applications

Compact CPU for mid-

--

range applications

PROFINET IO RT/IRT interfaces
1
1

PROFINET IO RT inter-
face --
--

PROFINET Work Processing

basic func- memory time for bit

tionality

operations

--

1.175 M 60 ns

B

--

1.25 MB 48 ns

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

15

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 4 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 PN Fail-safe CPU for small to mid-range applications

CPU 1513F-1 PN Fail-safe CPU for midrange applications

CPU 1515F-2 PN Fail-safe CPU for midrange to large applications

CPU 1516F-3 PN/DP

Fail-safe CPU for demanding applications and communication tasks

CPU 1517F-3 PN/DP
CPU 1517TF-3 PN/DP

Fail-safe CPU for demanding applications and communication tasks

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT inter-
face
--

PROFINET basic func-
tionality
--

Work Processing memory time for bit
operations

1.23 M B

60 ns

--

1

--

--

1.95 M 40 ns

B

--

1

1

--

3.75 M 30 ns

B

1

1

1

--

6.5 MB 10 ns

1

1

1

--

11 MB

2 ns

CPU 1518F-4 Fail-safe CPU for high-

1

1

1

1

26 MB

1 ns

PN/DP

performance applica-

CPU 1518F-4 PN/DP ODK

tions, demanding communication tasks and very short reaction times

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1517T-3 PN/DP
CPU 1517TF-3 PN/DP

Performance segment

PROFIBUS PROFINET interfaces IO RT/IRT
interfaces

Technology CPU for

--

1

small to mid-range ap-

plications

Technology CPU for

--

1

mid-range to large appli-

cations

Technology CPU for

1

1

complex applications

and communication

tasks

This CPU is described in the fail-safe CPUs

PROFINET IO RT inter-
face --
1
1

PROFINET basic func-
tionality --
--
--

Work memory
1.23 M B
3.75 M B
11 MB

Processing time for bit operations
60 ns
30 ns
2 ns

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

16

Manual, 09/2016, A5E33594822-AC

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Pulse generators · PWM (pulse-width modulation) · PTO (Pulse Train Output or stepper motor con-
trol) · Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 4 (PTOx/PWMx)

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 4 (PTOx/PWMx)

Integrated technological functions
The CPUs of the SIMATIC S7-1500 support motion control functions. STEP 7 offers blocks standardized according to PLCopen for configuring and connecting a drive to the CPU. Motion Control supports speed-controlled, positioning and synchronous axes (synchronizing without specification of the synchronous position) as well as external encoders, cams, cam tracks and measuring inputs.
The CPUs of theSIMATIC S7-1500T support advanced motion control functions in addition to the motion control functions offered by the standard CPUs. Additional motion control functions are absolute synchronous axes (synchronization with specification of synchronous position) and the cam.
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags.
In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.
Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PWM and frequency output). In compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and require no additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Due to the supported technology functions, the CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

17

Product overview 2.2 Applications of the S7-1500 CPU

Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.

Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Errors messages are immediately shown on the display in plain text, thus helping customers to reduce downtimes.
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

18

Manual, 09/2016, A5E33594822-AC

Product overview 2.3 Operating principle
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server for 3 languages. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

2.3

Operating principle

Principle of operation
The CPU contains the operating system and executes the user program. The user program is located on the SIMATIC memory card and is processed in the work memory of the CPU.
The connection to the process is centralized or distributed via PROFINET or PROFIBUS with I/O modules.
The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. CPU 1517-3 PN/DP supports operation as an IO controller and I-device.
Similarly to the PROFINET interface, the PROFIBUS interface available on the CPU allows communication with other devices. When you use the interface as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

19

Product overview 2.4 Properties

2.4

Properties

Article number
6ES7517-3AP00-0AB0
View of the module
The following figure shows the CPU 1517-3 PN/DP.

Figure 2-1 CPU 1517-3 PN/DP
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

20

Manual, 09/2016, A5E33594822-AC

Properties

Product overview 2.4 Properties
CPU 1517-3 PN/DP has the following technical properties:
 Communication:
­ Interfaces
CPU 1517-3 PN/DP has three interfaces. Two interfaces for PROFINET and one for PROFIBUS.
The 1st PROFINET interface (X1 P1, X1 P2) has two ports. In addition to PROFINET basic functionality, it also supports PROFINET IO RT (real-time) and IRT (isochronous real-time). PROFINET IO communication or real-time settings can be configured.
Even with a send clock of 187.5 µs, IO communication and standard communication is possible via one cable.
Port 1 and port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet.
The 2nd PROFINET interface (X2 P1) has one port. In addition to PROFINET basic functionality, its also supports PROFINET IO RT (real-time). The basic functionality of PROFINET supports HMI communication, communication with the configuration system, communication with a higher-level network (backbone, router, Internet) and communication with another machine or automation cell. The 2nd PROFINET interface supports a transmission rate of 1000 Mbps as of firmware version V1.7.
Note IP subnets
The IP subnets of the two interfaces must be different. This means that the subnets of the IP addresses of the two interfaces must differ from each other.
The 3rd interface (X3) is used to connect to a PROFIBUS network. When you use the interface as PROFIBUS DP interface, the CPU is the DP master in this case. The CPU cannot assume the role of a DP slave.
­ OPC UA With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU, as OPC UA server, can communicate with OPC UA clients such as HMI panels, SCADA systems, etc.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

21

Product overview 2.4 Properties
 Integrated Web server: A Web server is integrated in the CPU. You can read out the following information with the Web server: ­ Start page with general CPU information ­ Identification information ­ Contents of the diagnostics buffer ­ Query of module states ­ Firmware update ­ Alarms (without acknowledgment option) ­ Information about communication ­ PROFINET topology ­ Tag status, writing tags ­ Watch tables ­ Memory usage ­ User pages ­ Data logs (if used) ­ Online backup and restoration of the configuration. ­ Diagnostic information for the motion control technology objects ­ Display of trace recording stored on the SIMATIC memory card ­ Readout service data ­ Basic Web pages ­ Display of the Web server in 3 project languages, for example, comments and message texts ­ Recipes ­ User-defined Web pages

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

22

Manual, 09/2016, A5E33594822-AC

Product overview 2.4 Properties
 Integrated technology:
­ Motion Control
The Motion Control functionality uses technology objects to support speed-controlled axes, positioning axes, synchronous axes, external encoders, cams, cam tracks and measuring inputs, as well as PLCopen blocks for programming the motion control functionality. You can find a detailed description of the use of Motion Control and its configuration in the S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/109739589) function manual. You can also use the TIA Selection Tool (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool) or the SIZER (http://w3.siemens.com/mcms/mc-solutions/en/engineering-software/drive-design-toolsizer/Pages/drive-design-tool-sizer.aspx) to create or configure axes.
­ Integrated closed-loop control functionality
- PID Compact (continuous PID controller)
- PID 3Step (step controller for integrating actuators)
- PID Temp (temperature controller for heating and cooling with two separate actuators)
 Trace functionality:
­ The trace functionality supports troubleshooting and optimization of the user program. You can find additional information on the trace functionality in the Using the Trace and Logic Analyzer (http://support.automation.siemens.com/WW/view/en/64897128) function manual.
 Integrated system diagnostics:
­ The alarms for the system diagnostics are automatically created by the system and displayed on a PG/PC, HMI device, Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

23

Product overview 2.4 Properties

 Integrated security:
­ Know-how protection
The know-how protection protects user blocks against unauthorized access and modifications.
­ Copy protection
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.
­ Access protection
Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.
­ Integrity protection
The system protects the data transferred to the CPU against manipulation. The CPU detects erroneous or manipulated engineering data.
 Additional functions:
­ PROFIenergy You can find information on the topic of "PROFIenergy" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856) and in the PROFINET specification on the Internet (http://www.profibus.com).
­ Shared device You can find information on the topic of "Shared device" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856).
­ Configuration control You can find information on the topic of "Configuration control" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
­ Isochronous mode You can find information about the "Isochronous mode" topic in the PROFINET (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Reference

You will find additional information on the topic of "Integrated security/Access protection" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

24

Manual, 09/2016, A5E33594822-AC

2.5
2.5.1

Operating and display elements

Product overview 2.5 Operating and display elements

Front view of the module with closed front panels
The following figure shows the front view of the CPU 1517-3 PN/DP.

 LEDs for the current operating mode and diagnostics status of the CPU  Front panel with display  Display  Operator control buttons  Front panel of the PROFIBUS interface
Figure 2-2 View of the CPU 1517-3 PN/DP (with front panels) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 36).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

25

Product overview 2.5 Operating and display elements
Removing and attaching the front panel with display
You can remove and attach the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel
You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, configurable protection levels and local locks in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

26

Manual, 09/2016, A5E33594822-AC

2.5.2

Product overview 2.5 Operating and display elements
Front view of the module without front panels
The following figure shows the operator controls and connection elements of the CPU 1517-3 PN/DP.

 Mode selector  No function  PROFIBUS interface (X3)  Fixing screws  Connector for power supply  PROFINET IO interface (X2) with 1 port  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 3 ports of the PROFINET interfaces X1 and X2  Slot for the SIMATIC memory card  Display connector  LEDs for the current operating mode and diagnostic status of the CPU
Figure 2-4 View of the CPU 1517-3 PN/DP (without front panels) - front

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

27

Product overview 2.6 Mode switch

2.5.3

Rear view of the module
The following figure shows the connection elements on the rear of the CPU 1517-3 PN/DP.

2.6

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-5 View of the CPU 1517-3 PN/DP - rear

Mode switch
Use the mode switch to set the CPU operating mode. The following table shows the position of the switch and the corresponding meaning.

Table 2- 6
Position RUN STOP MRES

Mode switch settings

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not being executed. Position for CPU memory reset.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

28

Manual, 09/2016, A5E33594822-AC

Wiring

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1517-3 PN/DP.
24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC supply voltage.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

29

Wiring
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interface X2 with 1 port (X2 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.
Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFIBUS interface X3
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface terminal assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

30

Manual, 09/2016, A5E33594822-AC

Wiring

Note Supply of I/O devices
The CPU 1517-3 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB ) are therefore only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. The USB A2 PC adapter therefore does not require a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
CPU 1517-3 PN/DP has two PROFINET interfaces. The first interface has two ports. Each of the PROFINET interfaces has a MAC address and each of the PROFINET ports has its own MAC address. In total, the CPU 1517-3 PN/DP has five MAC addresses.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1517-3 PN/DP.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)

· Front and right side, not lasered

Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X2

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X2 P1 (required for LLDP, for example)

· Front, not lasered
· Right side, lasered (start of number range)

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

31

Wiring
Block diagram
The following figure shows the block diagram of the CPU 1517-3 PN/DP.

      
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch PROFIBUS DP driver Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

Figure 3-2 Block diagram of the CPU 1517-3 PN/DP

PN X1 P1 R PN X1 P2 R PN X2 P1 PB X3 L+ M R/S ER MT X1 P1, X1 P2, X2 P1

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFIBUS interface X3 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

32

Manual, 09/2016, A5E33594822-AC

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1517-3 PN/DP are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1517-3 PN/DP LEDs.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1517-3 PN/DP (without front panel)

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1517-3 PN/DP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED LED off LED off
LED lit green LED lit green LED lit green
LED lit green
LED lit yellow
LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green LED flashes yellow/green

ERROR LED LED off
LED flashes red LED off
LED flashes red LED off
LED off
LED off LED off LED flashes red LED off
LED off LED flashes red

MAINT LED LED off LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.

LED off LED off

CPU is in RUN mode. A diagnostics event is pending.

LED lit yellow
LED flashes yellow
LED flashes yellow
LED off LED flashes yel-
low LED off
LED off

Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective
CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card Startup (transition from RUN  STOP)

LED flashes yellow

Startup (CPU booting)
Test of LEDs during startup, inserting a module.
LED flashing test

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

34

Manual, 09/2016, A5E33594822-AC

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1517-3 PN/DP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

35

Technical specifications

5

General information Product type designation Hardware function version Firmware version Engineering with STEP 7 TIA Portal can be configured/integrated as of version Configuration control Via data record Display Screen diagonal (cm) Operator controls Number of buttons Mode selector Supply voltage Type of supply voltage Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Power and voltage failure buffering Power/voltage failure buffer time Input current Current consumption (rated value) Inrush current, max. I²t Power Power consumption from the backplane bus (balanced) Incoming power to the backplane bus Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory Integrated (for program) Integrated (for data)

6ES7517-3AP00-0AB0
CPU 1517-3 PN/DP FS04 V2.0
V14
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
1.55 A 2.4 A; rated value 0.02 A²s
30 W 12 W
24 W
1 Yes
2 MB 8 MB

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

36

Manual, 09/2016, A5E33594822-AC

Technical specifications

Load memory Plug-in (SIMATIC memory card), max. Buffering Maintenance-free CPU processing times For bit operations, typ. For word operations, typ. For fixed-point arithmetic, typ. For floating-point arithmetic, typ. CPU blocks Number of elements (total) DB Number range
Size, max.
FB Number range Size, max. FC Number range Size, max. OB Size, max. Number of free-cycle OBs Number of time-of-day interrupt OBs Number of time-delay interrupt OBs Number of cyclic interrupt OBs Number of hardware interrupt OBs Number of DPV1 interrupt OBs Number of isochronous mode OBs Number of technology synchronous interrupt OBs Number of restart OBs Number of asynchronous error OBs Number of synchronous error OBs Number of diagnostic interrupt OBs Nesting depth Per priority class

6ES7517-3AP00-0AB0
32 GB
Yes
2 ns 3 ns 3 ns 12 ns
10000; blocks (OB/FB/FC/DB) and UDTs
1 ... 60 999; divided into: Number range available for the user: 1 ... 59 999 and number range for DBs generated by SFC 86: 60 000 ... 60 999 8 MB; the maximum size of the DB is 64 KB with non-optimized module access
0 ... 65 535 512 KB
0 ... 65 535 512 KB
512 KB 100 20 20 20; with minimum OB 3x cycle of 100 µs 50 3 2 2 100 4 2 1
24

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

37

Technical specifications

Counters, timers and their retentivity S7 counters Quantity Retentivity · Adjustable IEC counters Quantity Retentivity · Adjustable S7 timers Quantity Retentivity · Adjustable IEC timers Quantity Data areas and their retentivity Total retentive data area (including timers, counters, bit memories), max.
Bit memory Number, max. Number of clock memory bits
Data blocks Retentivity adjustable Retentivity preset Local data Per priority class, max. Address area Number of I/O modules I/O address area Inputs Outputs Of which per integrated IO subsystem · Inputs (volume)
· Outputs (volume)
Of which per CM/CP · Inputs (volume)
· Outputs (volume)

6ES7517-3AP00-0AB0
2048
Yes
Unlimited (limited only by work memory)
Yes
2048
Yes
Unlimited (limited only by work memory)
768 KB; for bit memories, timers, counters, DBs and technological data (axes), usable retentive memory: 700 KB
16 KB 8; 8 clock memory bits, grouped in one clock memory byte
Yes No
64 KB; max. 16 KB per block
16384; max. number of modules/submodules
32 KB; all inputs are in the process image 32 KB; all outputs are in the process image
16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface 16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface
8 KB 8 KB

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

38

Manual, 09/2016, A5E33594822-AC

Technical specifications

Process image partitions Number of process image partitions, max. Hardware configuration Number of distributed IO systems
Number of DP masters Integrated Via CM
Number of IO controllers Integrated Via CM
Rack Modules per rack, max. Number of rows, max. PtP CM Number of PtP CMs
Time Clock Type Backup duration Deviation per day, max. Operating hours counter Quantity Time-of-day synchronization Supported On DP, master in AS, Master in AS, Slave On Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1st interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet)

6ES7517-3AP00-0AB0
32
64; a distributed IO system is understood to mean the integration of distributed I/O via PROFINET or PROFIBUS communication modules as well as the connection of I/O via AS-i master modules or links (e.g. IE/PB link)
1 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
The number of PtP CMs that can be connected is only limited by the available slots
Hardware clock 6 wk; at 40 °C ambient temperature, typ. 10 s; typ.: 2 s
16
Yes Yes Yes Yes Yes
2 1
2 Yes Yes; X1

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

39

Technical specifications

Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP
· MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· of these, IO devices with IRT, max. · Number of connectable IO devices for RT,
max. · of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times

6ES7517-3AP00-0AB0
Yes Yes Yes Yes Yes Yes
Yes Yes Yes Yes Yes Yes; as MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; requirement: IRT Yes Yes; max. 32 PROFINET devices 512; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 512
512 8; in total over all interfaces
8 The minimum value of the update time also depends on the communication component set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

40

Manual, 09/2016, A5E33594822-AC

Technical specifications

Update time with IRT · for send clock of 250 µs
· With send clock of 500 µs · With send clock of 1 ms · with send clock of 2 ms · with send clock of 4 ms · with IRT and "odd" send clock parameter as-
signment Update time with RT · for send clock of 250 µs · With send clock of 500 µs · With send clock of 1 ms · with send clock of 2 ms · with send clock of 4 ms PROFINET IO device Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Shared device · Number of IO controllers with shared device,
max. 2nd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet)

6ES7517-3AP00-0AB0
250 µs to 4 ms; note: with IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is crucial 500 µs to 8 ms 1 ms to 16 ms 2 ms to 32 ms 4 ms to 64 ms Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs to 3 875 µs)
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes Yes Yes; requirement: IRT Yes Yes 4
1 No Yes; X2

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

41

Technical specifications

Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· Number of connectable IO devices for RT, max.
· of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times
Update time with RT · With send clock of 1 ms

6ES7517-3AP00-0AB0
Yes Yes Yes Yes Yes No
Yes Yes No Yes No No No Yes No 128; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 128
128 8; in total over all interfaces
8 The minimum value of the update time also depends on the communication component set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data.
1 ms to 512 ms

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

42

Manual, 09/2016, A5E33594822-AC

Technical specifications

PROFINET IO device Services · PG/OP communication

6ES7517-3AP00-0AB0 Yes

· S7 routing

Yes

· Isochronous mode

No

· Open IE communication

Yes

· IRT

No

· MRP

No

· MRPD

No

· PROFIenergy

Yes

· Prioritized startup

No

· Shared device

Yes

· Number of IO controllers with shared device, 4 max.

3rd interface Interface hardware Number of ports RS 485 Protocols PROFIBUS DP master PROFIBUS DP slave SIMATIC communication Interface hardware RJ45 (Ethernet) 100 Mbps Autonegotiation Autocrossing Industrial Ethernet status LED RS 485 Transmission rate, max. Protocols Number of connections Number of connections, max.
Number of connections reserved for ES/HMI/Web Number of connections via integrated interfaces Number of S7 routing connections

1 Yes; X3
Yes No Yes
Yes Yes Yes Yes
12 Mbps
320; via integrated interfaces of the CPU and connected CPs/CMs 10 160 64; in total, only 16 S7 routing connections are supported via PROFIBUS

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

43

Technical specifications

SIMATIC communication S7 communication, as server S7 communication, as client User data per job, max.
Open IE communication TCP/IP · Data length, max. · Multiple passive connections per port, sup-
ported ISO-on-TCP (RFC1006) · Data length, max. UDP · Data length, max. DHCP SNMP DCP LLDP Web server HTTP HTTPS PROFIBUS DP master Number of connections, max. Services · PG/OP communication · S7 routing · Data record routing · Isochronous mode · Constant bus cycle time · Number of DP slaves
· Activation/deactivation of DP slaves OPC UA OPC UA server
· Application authentication · Security Policies
· User authentication

6ES7517-3AP00-0AB0
Yes Yes See online help (S7 communication, user data size)
Yes 64 KB Yes
Yes 64 KB Yes 1472 bytes No Yes Yes Yes
Yes; standard and user-defined sites Yes; standard and user-defined sites
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes
Yes; Data Access (Read, Write, Subscribe), Runtime license required Yes Available Security Policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "Anonymous" or with user name and password

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

44

Manual, 09/2016, A5E33594822-AC

Technical specifications

6ES7517-3AP00-0AB0

Additional protocols

MODBUS

Yes; MODBUS TCP

Media redundancy

Switchover time in the case of cable break, typ. 200 ms; with MRP; bumpless with MRPD

Number of devices in the ring, max.

50

Isochronous mode

Isochronous mode (application synchronized up to Yes; with minimum OB 6x cycle of 250 µs terminal)

Constant bus cycle time

Yes

S7 signaling functions

Number of stations that can be logged in for sig- 32 naling functions, max.

Block-related alarms

Yes

Number of configurable interrupts, max.

10000

Number of simultaneously active interrupts in interrupt pool

· Number of reserved user interrupts

1000

· Number of reserved interrupts for system di- 200 agnostics

· Number of reserved interrupts for motion con- 160 trol technology objects

Test/commissioning functions Joint commissioning (Team Engineering)
Status block
Single-step Status/modify Status/modify tag Tags
Number of tags, max. · Of which are status tags, max.

Yes; parallel online access possible for up to 10 engineering systems Yes; up to 16 simultaneously (in total from all ES clients) No
Yes Inputs/outputs, bit memory, DB, peripheral inputs/outputs, timers, counters
200; per job

· Of which are modify tags, max.

200; per job

Force Forcing, tags Number of tags, max. Diagnostics buffer Available Number of entries, max.
· Of which are power failure-proof

Peripheral inputs/outputs 200
Yes 3200 1000

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

45

Technical specifications

Traces Number of configurable traces Interrupts/diagnostics/status information Diagnostics display LED RUN/STOP LED ERROR LED MAINT LED Connection display LINK TX/RX Supported technology objects Motion control
· Number of available motion control resources for technology objects (except cams)
· required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per measuring input
Controller · PID_Compact
· PID_3Step
· PID temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max.
Vertical mounting position, min. Vertical mounting position, max.

6ES7517-3AP00-0AB0
8; up to 512 KB data possible per trace
Yes Yes Yes Yes
Yes; note: the number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 10240
40 80 160 80 20 160 40
Yes; universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 ; display: 50 , the display is switched off at an operating temperature of typically 50  0 °C 40 ; display: 40 , the display is switched off at an operating temperature of typically 40 

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

46

Manual, 09/2016, A5E33594822-AC

Technical specifications

Ambient temperature during storage/transport Min. Max. Configuring Programming Programming language · LAD
· FBD
· STL
· SCL
· GRAPH
Know-how protection User program protection Copy protection Block protection Access protection Password for display Protection level: Write protection Protection level: Read/write protection Protection level: Complete protection Cycle-time monitoring Low limit High limit Dimensions Width Height Depth Weights Weight, approx.

-40 °C 70 °C

6ES7517-3AP00-0AB0

Yes Yes Yes Yes Yes
Yes Yes Yes
Yes Yes Yes Yes
Adjustable minimum cycle time Adjustable maximum cycle time
175 mm 147 mm 129 mm
1978 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

Manual, 09/2016, A5E33594822-AC

47

Dimension drawing

A

This section contains the dimension drawing of the module on the mounting rail, as well as a dimension drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimension drawings for CPU 1517-3 PN/DP

Figure A-1 Dimension drawing of CPU 1517-3 PN/DP, front and side views

Figure A-2 Dimension drawing CPU 1517-3 PN/DP, side view with open front panel

CPU 1517-3 PN/DP (6ES7517-3AP00-0AB0)

48

Manual, 09/2016, A5E33594822-AC

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)
SIMATIC
S7-1500 CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_W_iri_ng_______________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_

_Di_m_en_si_on_d_ra_w_in_g ________A_

09/2016
A5E36285525-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36285525-AA  08/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1517T-3 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

4

Manual, 09/2016, A5E36285525-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Applications of the S7-1500 CPU .......................................................................................... 11

2.2

Principle of operation ............................................................................................................. 16

2.3

Properties ............................................................................................................................... 17

2.4 2.4.1 2.4.2 2.4.3

Operator controls and display elements ................................................................................ 22 Front view of the module with closed front panels ................................................................. 22 Front view of the module without front panels ....................................................................... 24 Rear view of the module ........................................................................................................ 25

2.5

Mode selector......................................................................................................................... 25

3 Wiring ................................................................................................................................................... 26

3.1

Pin assignment....................................................................................................................... 26

4 Interrupts, error messages, diagnostics and system alarms................................................................... 31

4.1

Status and error displays of the CPU..................................................................................... 31

5 Technical specifications ........................................................................................................................ 34

A Dimension drawing ............................................................................................................................... 46

A.1

Dimension drawing CPU 1517T-3 PN/DP ............................................................................. 46

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

6

Manual, 09/2016, A5E36285525-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

8

Manual, 09/2016, A5E36285525-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

10

Manual, 09/2016, A5E36285525-AA

Product overview

2

2.1

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Applications of the SIMATIC S7-1500, include, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Applications of the SIMATIC S7-1500T include, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

11

Product overview 2.1 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP ODK

Performance segment
Standard CPU for small to mid-range applications
Standard CPU for midrange applications
Standard CPU for midrange to large applications
Standard CPU for demanding applications and communication tasks
Standard CPU for demanding applications and communication tasks
Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET IO RT/IRT interfaces
1
1 1
1
1
1

PROFINET IO RT inter-
face --
-1
1
1
1

PROFINET basic func-
tionality --
---
--
--
1

Work memory 1.23 MB 1.95 MB 3.75 MB 6.5 MB
11 MB
26 MB

Processing time for bit operations
60 ns
40 ns 30 ns
10 ns
2 ns
1 ns

Table 2- 2 Compact CPUs

CPU CPU 1511C-1 PN CPU 1512C-1 PN

Performance segment
Compact CPU for small to mid-range applications Compact CPU for midrange applications

PROFIBUS interfaces
--
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT inter-
face
--

1

--

PROFINET basic func-
tionality --
--

Work memory
1.175 M B

Processing time for bit operations
60 ns

1.25 MB 48 ns

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

12

Manual, 09/2016, A5E36285525-AA

Product overview 2.1 Applications of the S7-1500 CPU

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 PN
CPU 1513F-1 PN CPU 1515F-2 PN
CPU 1516F-3 PN/DP
CPU 1517F-3 PN/DP CPU 1517TF-3 PN/DP

Fail-safe CPU for small to mid-range applications
Fail-safe CPU for midrange applications
Fail-safe CPU for midrange to large applications
Fail-safe CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic func-
tionality
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

--

1

--

--

1.95 MB 40 ns

--

1

1

--

3.75 MB 30 ns

1

1

1

--

6.5 MB 10 ns

1

1

1

--

11 MB

2 ns

CPU 1518F-4

Fail-safe CPU for high-

1

1

1

1

26 MB

1 ns

PN/DP

performance applica-

CPU 1518F-4 PN/DP ODK

tions, demanding communication tasks and very short reaction

times

Table 2- 4 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1517T-3 PN/DP
CPU 1517TF-3 PN/DP

Performance segment

PROFIBUS PROFINET interfaces IO RT/IRT
interfaces

Technology CPU for

--

1

small to mid-range ap-

plications

Technology CPU for

--

1

mid-range to large ap-

plications

Technology CPU for

1

1

complex applications

and communication

tasks

This CPU is described in the fail-safe CPUs

PROFINET IO RT
interface --
1
1

PROFINET basic func-
tionality --
--
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

3.75 MB 30 ns

11 MB

2 ns

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

13

Product overview 2.1 Applications of the S7-1500 CPU

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Pulse generators · PWM (pulse-width modulation) · PTO (Pulse Train Output or stepper motor control) · Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 4 (PTOx/PWMx)

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 4 (PTOx/PWMx)

Integrated technological functions
All CPUs of SIMATIC S7-1500 support motion control functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axis  Positioning axis  Synchronous axis  External encoders  Output cam  Cam track  Measuring input The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of synchronous position ­ Actual value coupling ­ Shifting the master value of the following axis ­ Camming  Cam  Up to 4 encoders or measuring systems as actual position for position control Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

14

Manual, 09/2016, A5E36285525-AA

Product overview 2.1 Applications of the S7-1500 CPU
Additional integrated technological functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags.
In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.
Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration thereby provides the system advantages and the extensive functionality of SIMATIC for failsafe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

15

Product overview 2.2 Principle of operation
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Errors messages are immediately shown on the display in plain text, thus helping customers to reduce downtimes.
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server for 3 languages. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

2.2

Principle of operation

Principle of operation
The CPU contains the operating system and executes the user program.
The user program is located on the SIMATIC memory card and is processed in the work memory of the CPU.
The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. CPU 1517T-3 PN/DP supports operation as an IO controller and I-device.
Similarly to the PROFINET interface, the PROFIBUS interface available on the CPU allows communication with other devices. When you use the interface as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

Motion control
The CPU 1517T-3 PN/DP is specially designed for use in Motion Control applications.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

16

Manual, 09/2016, A5E36285525-AA

2.3

Properties

Article number
6ES7517-3TP00-0AB0

View of the module
The following figure shows the CPU 1517T-3 PN/DP.

Product overview 2.3 Properties

Figure 2-1 CPU 1517T-3 PN/DP
Note Protective film Note that a protective film is applied to the display in the delivery state of the CPU. Remove the protective film if necessary.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

17

Product overview 2.3 Properties

Properties

CPU 1517T-3 PN/DP has the following technical properties:
 Motion Control:
All CPUs support the standard Motion Control functions via the technology objects speed axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.
­ Speed-controlled axis for controlling a drive with speed specification
­ Positioning axis for position-controlled positioning of a drive
­ Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.
­ External encoder for detecting the actual position of an encoder
­ Cams, cam track for position-dependent generation of switching signals
­ Measuring input for fast, accurate and event-dependent sensing of actual positions
The technology CPUs of the SIMATIC S7-1500 also support the technology object:
­ Cam for specification of the synchronous function for camming
Motion Control instructions based on PLCopen are available for programming the technology objects.
A detailed description of the use of Motion Control and its configuration is available in the S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326) function manual.
You can also use the TIA Selection Tool (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool) or the SIZER (http://w3.siemens.com/mcms/mc-solutions/en/engineering-software/drive-design-toolsizer/Pages/drive-design-tool-sizer.aspx) for the selection and design of the axes.
Integrated closed-loop control functionality
­ PID Compact (continuous PID controller)
­ PID 3Step (step controller for integrating actuators)
­ PID Temp (temperature controller for heating and cooling with two separate actuators)
 Communication:
­ Interfaces
CPU 1517T-3 PN/DP has three interfaces. Two interfaces for PROFINET and one for PROFIBUS.
The 1st PROFINET interface (X1 P1, X1 P2) has two ports. In addition to PROFINET basic functionality, it also supports PROFINET IO RT (real-time) and IRT (isochronous real-time). PROFINET IO communication or real-time settings can be configured.
Even with a send clock of 187.5 µs, IO communication and standard communication is possible via one cable.
Port 1 and port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

18

Manual, 09/2016, A5E36285525-AA

Product overview 2.3 Properties
The 2nd PROFINET interface (X2 P1) has one port. In addition to PROFINET basic functionality, its also supports PROFINET IO RT (real-time).
Note IP subnets The IP subnets of the two interfaces must be different. This means that the subnets of the IP addresses of the two interfaces must differ from each other.
The 3rd interface (X3) is used to connect to a PROFIBUS network. When you use the interface as PROFIBUS DP interface, the CPU is the DP master in this case. The CPU cannot assume the role of a DP slave. ­ OPC UA With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU, as OPC UA server, can communicate with OPC UA clients such as HMI panels, SCADA systems, etc.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

19

Product overview 2.3 Properties
 Integrated Web server: A Web server is integrated in the CPU. You can read out the following information with the Web server: ­ Start page with general CPU information ­ Identification information ­ Contents of the diagnostics buffer ­ Querying module information ­ Firmware update ­ Alarms (without acknowledgment option) ­ Information about communication ­ PROFINET topology ­ Tag status, writing tags ­ Watch tables ­ Memory usage ­ User pages ­ Data logs (if used) ­ Online backup and restoration of the configuration. ­ Diagnostic information for the motion control technology objects ­ Display of trace recording stored on the SIMATIC memory card ­ Readout service data ­ Basic Web pages ­ Display of the Web server in 3 project languages, for example, comments and message texts ­ Recipes ­ User-defined Web pages
 Trace functionality: ­ The trace functionality supports troubleshooting and optimization of the user program. You can find additional information on the trace functionality in the Using the Trace and Logic Analyzer (http://support.automation.siemens.com/WW/view/en/64897128) function manual.
 Integrated system diagnostics: ­ The alarms for the system diagnostics are automatically created by the system and displayed on a PG/PC, HMI device, Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

20

Manual, 09/2016, A5E36285525-AA

Reference

Product overview 2.3 Properties
 Integrated security:
­ Know-how protection
The know-how protection protects user blocks against unauthorized access and modifications.
­ Copy protection
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.
­ Access protection
Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.
­ Integrity protection
The system protects the data transferred to the CPU against manipulation. The CPU detects erroneous or manipulated engineering data.
 CPU 1517T-3 PN/DP supports the following additional functions:
­ PROFIenergy You can find information on the topic of "PROFIenergy" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856) and in the PROFINET specification on the Internet (http://www.profibus.com).
­ Shared device You can find information on the topic of "Shared device" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856).
­ Configuration control You can find information on the topic of "Configuration control" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
­ Isochronous mode You can find information about the "Isochronous mode" topic in the PROFINET (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.
You can find additional information on the topic of "Integrated security/Access protection" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

21

Product overview 2.4 Operator controls and display elements

2.4

Operator controls and display elements

2.4.1

Front view of the module with closed front panels
The figure below shows the front view of the CPU 1517T-3 PN/DP.

 LEDs for the current operating mode and diagnostics status of the CPU  Front panel with display  Display  Control keys  Front panel of the PROFIBUS interface
Figure 2-2 View of the CPU 1517T-3 PN/DP (with front panels) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
You can find additional information on the temperatures at which the display switches itself on and off in the technical specifications.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

22

Manual, 09/2016, A5E36285525-AA

Product overview 2.4 Operator controls and display elements
Removing and fitting the front panel with display
You can remove and fit the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or fit the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel
You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and local locking in the S71500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

23

Product overview 2.4 Operator controls and display elements

2.4.2

Front view of the module without front panels
The figure below shows the operator controls and connection elements of the CPU 1517T-3 PN/DP.

 Mode selector  No function  PROFIBUS interface (X3)  Fixing screws  Connection for supply voltage  PROFINET IO interface (X2) with 1 port  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 3 ports of the PROFINET interfaces X1 and X2  Slot for the SIMATIC memory card  Display connection  LEDs for the current operating mode and diagnostics status of the CPU
Figure 2-4 View of the CPU 1517T-3 PN/DP (without front panels) - front

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

24

Manual, 09/2016, A5E36285525-AA

2.4.3

Product overview 2.5 Mode selector
Rear view of the module
The following figure shows the connection elements on the rear of the CPU 1517T-3 PN/DP.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-5 View of the CPU 1517T-3 PN/DP - rear

2.5

Mode selector

You use the mode selector to set the operating mode of the CPU.

The following table shows the position of the switch and the corresponding meaning.

Table 2- 5
Position RUN STOP MRES

Mode selector settings
Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not executed. Position for CPU memory reset.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

25

Wiring

3

3.1

Pin assignment

This section provides information on the pin assignment of the individual interfaces and the block diagram of the CPU 1517T-3 PN/DP.

24 V DC supply voltage (X80)
The connector for the supply voltage is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

26

Manual, 09/2016, A5E36285525-AA

Wiring 3.1 Pin assignment PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
Figure 3-2 PROFINET
PROFINET interface X2 with 1 port (X2 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug. Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

27

Wiring 3.1 Pin assignment

PROFIBUS interface X3
The table below shows the pin assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface pin assignment

View

Signal name

1

-

2

-

3

RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8

RxD/TxD-N

9

-

Designation Data line B Request to send Data reference potential (from station) Supply plus (from station) Data line A -

Note Supply of I/O devices
CPU 1517T-3 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB) are therefore only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. The USB A2 PC adapter therefore does not require a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Reference

You can find additional information on the topics of "Wiring the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
CPU 1517T-3 PN/DP has two PROFINET interfaces. The first interface has two ports. Each of the PROFINET interfaces has a MAC address and each of the PROFINET ports has its own MAC address. In total, the CPU 1517T-3 PN/DP has five MAC addresses.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1517T-3 PN/DP.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

28

Manual, 09/2016, A5E36285525-AA

Wiring 3.1 Pin assignment

The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 for accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front, lasered · Right side, lasered
(start of number range)
· Front and right side, not lasered
· Front and right side, not lasered
· Front, lasered · Right side, not lasered
· Front, not lasered · Right side, lasered
(start of number range)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

29

Wiring 3.1 Pin assignment
Block diagram
The following figure shows the block diagram of the CPU 1517T-3 PN/DP.

      
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch PROFIBUS DP driver Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

Figure 3-3 Block diagram of the CPU 1517T-3 PN/DP

PN X1 P1 R PN X1 P2 R PN X2 P1 PB X3 L+ M R/S ER MT X1 P1, X1 P2, X2 P1

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFIBUS interface X3 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

30

Manual, 09/2016, A5E36285525-AA

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1517T-3 PN are described below.
You can find additional information on the topic of "Interrupts" in the STEP 7 online help.
You can find additional information on the topic of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error displays of the CPU

LED display

The following figure shows the LED displays of the CPU 1517T-3 PN/DP.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1517T-3 PN/DP (without front panel)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

31

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1517T-3 PN/DP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit yellow LED lit yellow LED lit yellow

LED off LED off LED flashes red

LED flashes yellow

LED off

LED flashes yellow/green
LED flashes yellow/green

LED off LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED flashes yellow LED off
LED flashes yellow LED off
LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card Startup (transition from RUN  STOP)

LED flashes yellow

Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

32

Manual, 09/2016, A5E36285525-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1517T-3 PN/DP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

33

Technical specifications

5

General information Product type designation Hardware function version Firmware version Engineering with STEP 7 TIA Portal configurable/integrated as of version Configuration control Via data record Display Screen diagonal (cm) Operator controls Number of buttons Mode selector Supply voltage Type of supply voltage Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Power and voltage failure buffering Power/voltage failure buffer time Input current Current consumption (rated value) Inrush current, max. I²t Power Power consumption from the backplane bus (balanced) Incoming power to the backplane bus Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory integrated (for program) integrated (for data)

6ES7517-3TP00-0AB0
CPU 1517T-3 PN/DP FS04 V2.0
V14
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
1.55 A 2.4 A; rated value 0.02 A²s
30 W 12 W
24 W
1 Yes
3 MB 8 MB

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

34

Manual, 09/2016, A5E36285525-AA

Technical specifications

Load memory Plug-in (SIMATIC memory card), max. Buffering maintenance-free CPU processing times For bit operations, typ. For word operations, typ. For fixed-point arithmetic, typ. For floating-point arithmetic, typ. CPU blocks Number of elements (total)
DB Number range
Size, max.
FB Number range Size, max. FC Number range Size, max. OB Size, max. Number of free-cycle OBs Number of time-of-day interrupt OBs Number of time-delay interrupt OBs Number of cyclic interrupt OBs Number of hardware interrupt OBs Number of DPV1 interrupt OBs Number of isochronous mode OBs Number of technology synchronization interrupt OBs Number of startup OBs Number of asynchronous error OBs Number of synchronous error OBs Number of diagnostic interrupt OBs Nesting depth Per priority class

6ES7517-3TP00-0AB0
32 GB
Yes
2 ns 3 ns 3 ns 12 ns
10000; elements can be taken to mean blocks such as DBs, FBs and FCs, as well as UDTs, global constants, etc.
1 ... 60 999; divided into: Number range that can be used by user: 1 ... 59 999 and number range for DBs generated by SFC 86: 60 000 ... 60 999 8 MB; the maximum size of the DB is 64 KB with non-optimized block access
0 ... 65 535 512 KB
0 ... 65 535 512 KB
512 KB 100 20 20 20; with minimum OB 3x cycle of 100 µs 50 3 2 2
100 4 2 1
24

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

35

Technical specifications

Counters, timers and their retentivity S7 counters Quantity Retentivity · can be set IEC counters Quantity Retentivity · can be set S7 timers Quantity Retentivity · can be set IEC timers Quantity Data areas and their retentivity Total retentive data area (including timers, counters, bit memories), max.
Bit memory Number, max. Number of clock memories
Data blocks Retentivity can be set Retentivity preset Local data Per priority class, max. Address area Number of IO modules I/O address area Inputs Outputs of these, per integrated IO subsystem · Inputs (volume)
· Outputs (volume)
of these, per CM/CP · Inputs (volume)
· Outputs (volume) Process image partitions Number of process image partitions, max.

6ES7517-3TP00-0AB0
2048
Yes
Any (only limited by the work memory)
Yes
2048
Yes
Any (only limited by the work memory)
768 KB; retentive memory that can be used for bit memories, timers, counters, DBs and technology data (axes): 700 KB
16 KB 8; there are 8 clock memory bits, grouped in one clock memory byte
Yes No
64 KB; max. 16 KB per block
16384; max. number of modules/submodules
32 KB; all inputs are in the process image 32 KB; all outputs are in the process image
16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface 16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface
8 KB 8 KB
32

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

36

Manual, 09/2016, A5E36285525-AA

Hardware configuration Number of distributed IO systems
Number of DP masters integrated Via CM
Number of IO controllers integrated Via CM
Rack Modules per rack, max. Number of rows, max. PtP CM Number of PtP CMs
Time Clock Type Backup duration Deviation per day, max. Operating hours counter Quantity Time synchronization Supported On DP, master In AS, master In AS, slave On Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1st interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet)

Technical specifications
6ES7517-3TP00-0AB0
64; a distributed IO system is understood to mean the integration of distributed I/O via PROFINET or PROFIBUS communication modules as well as the connection of I/O via AS-i master modules or links (e.g. IE/PB link)
1 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
The number of PtP CMs that can be connected is only limited by the available slots
Hardware clock 6 wk; at 40 °C ambient temperature, typ. 10 s; typ.: 2 s
16
Yes Yes Yes Yes Yes
2 1
2 Yes Yes; X1

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

37

Technical specifications

Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP
· MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· of these, IO devices with IRT, max. · Number of connectable IO devices for RT,
max. · of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times
Update time with IRT · with send clock of 250 µs
· with send clock of 500 µs · with send clock of 1 ms · with send clock of 2 ms · with send clock of 4 ms · with IRT and "odd" send clock parameter as-
signment

6ES7517-3TP00-0AB0
Yes Yes Yes Yes Yes Yes
Yes Yes Yes Yes Yes Yes; as MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; requirement: IRT Yes Yes; max. 32 PROFINET devices 512; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 512
512 8; in total over all interfaces
8 Minimum value of update time also depends on the communication allocation setting for PROFINET IO, the number of IO devices and the amount of configured user data
250 µs to 4 ms; note: with IRT with isochronous mode, the minimum update time of 500 µs of the isochronous OB is crucial 500 µs to 8 ms 1 ms to 16 ms 2 ms to 32 ms 4 ms to 64 ms Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs to 3 875 µs)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

38

Manual, 09/2016, A5E36285525-AA

Technical specifications

Update time with RT · with send clock of 250 µs
· with send clock of 500 µs
· with send clock of 1 ms
· with send clock of 2 ms
· with send clock of 4 ms PROFINET IO device Services · PG/OP communication
· S7 routing
· Isochronous mode
· Open IE communication
· IRT
· MRP
· MRPD
· PROFIenergy
· Shared device
· Number of IO controllers with shared device, max.
2nd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet) Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy

6ES7517-3TP00-0AB0
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes Yes Yes; requirement: IRT Yes Yes 4
1 No Yes; X2
Yes Yes Yes Yes Yes No

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

39

Technical specifications

PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· Number of connectable IO devices for RT, max.
· of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times
Update time with RT · with send clock of 1 ms PROFINET IO device Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Shared device · Number of IO controllers with shared device,
max.

6ES7517-3TP00-0AB0
Yes Yes No Yes No No No Yes No 128; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 128
128 8; in total over all interfaces
8 Minimum value of update time also depends on the communication allocation setting for PROFINET IO, the number of IO devices and the amount of configured user data
1 ms to 512 ms
Yes Yes No Yes No No No Yes No Yes 4

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

40

Manual, 09/2016, A5E36285525-AA

Technical specifications

3rd interface Interface hardware Number of ports RS 485 Protocols PROFIBUS DP master PROFIBUS DP slave SIMATIC communication Interface hardware RJ45 (Ethernet) 100 Mbps Autonegotiation Autocrossing Industrial Ethernet status LED RS 485 Transmission rate, max. Protocols Number of connections Number of connections, max.
Number of connections reserved for ES/HMI/Web Number of connections via integrated interfaces Number of S7 routing connections
SIMATIC communication S7 communication, as server S7 communication, as client User data per job, max.
Open IE communication TCP/IP · Data length, max.
· Multiple passive connections per port, supported
ISO-on-TCP (RFC1006) · Data length, max. UDP · Data length, max. DHCP SNMP DCP LLDP

6ES7517-3TP00-0AB0
1 Yes
Yes No Yes
Yes Yes Yes Yes
12 Mbps
320; via integrated interfaces of the CPU and connected CPs/CMs 10 160 64; in total, only 16 S7 routing connections are supported via PROFIBUS
Yes Yes See online help (S7 communication, user data size)
Yes 64 KB Yes
Yes 64 KB Yes 1472 bytes No Yes Yes Yes

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

41

Technical specifications

Web server HTTP HTTPS PROFIBUS DP master Number of connections, max. Services
· PG/OP communication

6ES7517-3TP00-0AB0
Yes; standard and user-defined sites Yes; standard and user-defined sites 48; for the integrated PROFIBUS DP interface Yes

· S7 routing

Yes

· Data record routing

Yes

· Isochronous mode

Yes

· Constant bus cycle time

Yes

· Number of DP slaves · Activation/deactivation of DP slaves

125; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
Yes

OPC UA OPC UA server
· Application authentication

Yes; Data Access (Read, Write, Subscribe), Runtime license required
Yes

· Security Policies · User authentication

Available Security Policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"Anonymous" or with user name and password

Additional protocols MODBUS Media redundancy Switchover time in the case of cable break, typ. Number of devices in the ring, max. Isochronous mode Isochronous mode (application synchronized up to terminal) Constant bus cycle time S7 signaling functions Number of stations that can be logged in for signaling functions, max. Block-related alarms Number of configurable interrupts, max. Number of simultaneously active interrupts in interrupt pool
· Number of reserved user interrupts

Yes; MODBUS TCP 200 ms; with MRP; bumpless with MRPD 50 Yes; with minimum OB 6x cycle of 250 µs Yes 32 Yes 10000
1000

· Number of reserved interrupts for system di- 200 agnostics

· Number of reserved interrupts for motion con- 160 trol technology objects

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

42

Manual, 09/2016, A5E36285525-AA

Technical specifications

Test/commissioning functions Shared commissioning (Team Engineering)
Status block
Single-step Status/modify Status/modify tag Tags
Number of tags, max. · of these, status tags, max. · of these, modify tags, max. Forcing Forcing, tags Number of tags, max. Diagnostic buffer Available Number of entries, max. · of these, protected against power failure Traces Number of configurable traces Interrupts/diagnostics/status information Diagnostics display LED RUN/STOP LED ERROR LED MAINT LED Connection display LINK TX/RX Supported technology objects Motion control
· Number of available motion control resources for technology objects (except cams)
· required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per measuring input
· Cams ­ Number of cams, max.

6ES7517-3TP00-0AB0
Yes; parallel online access possible for up to 10 engineering systems Yes; up to 16 simultaneously (in total over all ES clients) No
Yes Inputs/outputs, bit memory, DB, peripheral inputs/outputs, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 3200 1000
8; up to 512 KB data possible per trace
Yes Yes Yes Yes
Yes; note: the number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 10240
40 80 160 80 20 160 40
128

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

43

Technical specifications

Controller · PID_Compact
· PID_3Step
· PID temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max.
Vertical mounting position, min. Vertical mounting position, max.
Ambient temperature during storage/transport Min. Max. Configuring Programming Programming language · LAD
· FBD
· STL
· SCL
· GRAPH Know-how protection User program protection Copy protection Block protection Access protection Password for display Protection level: Write protection Protection level: Read/write protection Protection level: Complete protection Cycle time monitoring Low limit High limit

6ES7517-3TP00-0AB0
Yes; universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 ; display: 50 , the display is switched off at an operating temperature of typically 50  0 °C 40 ; display: 40 , the display is switched off at an operating temperature of typically 40 
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes Yes Yes
Yes Yes Yes Yes
Configurable minimum cycle time Configurable maximum cycle time

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

44

Manual, 09/2016, A5E36285525-AA

Technical specifications

Dimensions Width Height Depth Weights Weight, approx.

6ES7517-3TP00-0AB0
175 mm 147 mm 129 mm
1978 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP System Manual (http://support.automation.siemens.com/WW/view/en/59191792)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

45

Dimension drawing

A

A.1

Dimension drawing CPU 1517T-3 PN/DP
This section contains the dimension drawing of the module on the mounting rail, as well as a dimension drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Dimension drawings for CPU 1517-3 PN/DP

Figure A-1 Dimension drawing of the CPU 1517T-3 PN/DP, front and side view

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

46

Manual, 09/2016, A5E36285525-AA

Dimension drawing A.1 Dimension drawing CPU 1517T-3 PN/DP
Figure A-2 Dimension drawing of the CPU 1517T-3 PN/DP, side view with open front panel

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 09/2016, A5E36285525-AA

47

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

SIMATIC
S7-1500R/H CPU 1517H-3 PN (6ES7517-3HP00-0AB0)
Equipment Manual

Preface

S7-1500R/H Documentation Guide

1

Product overview

2

Connecting

3

Interrupts, diagnostics, error

messages and system

4

events

Technical specifications

5

Dimension drawing

A

11/2019
A5E42011886-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E42011886-AB  10/2019 Subject to change

Copyright © Siemens AG 2018 - 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500R/H redundant system and the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1517H-3 PN.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

3

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

4

Equipment Manual, 11/2019, A5E42011886-AB

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

5

Table of contents

Preface ...................................................................................................................................................... 3

1 S7-1500R/H Documentation Guide............................................................................................................ 7

2 Product overview ....................................................................................................................................... 9

2.1

New functions in firmware version V2.8................................................................................... 9

2.2

Configuration and operating principle .................................................................................... 11

2.3

Hardware properties .............................................................................................................. 14

2.4

Firmware functions................................................................................................................. 17

2.5 2.5.1 2.5.2 2.5.3 2.5.4

Operator controls and display elements ................................................................................ 19 Front view of the CPU with closed front flap .......................................................................... 19 Front view of the CPU without front flaps .............................................................................. 21 Rear view of the CPU ............................................................................................................ 22 Bottom view............................................................................................................................ 23

2.6

Mode selector......................................................................................................................... 24

3 Connecting .............................................................................................................................................. 25

3.1

Terminal assignment.............................................................................................................. 25

4 Interrupts, diagnostics, error messages and system events .................................................................... 29

4.1

Status and error display of the CPU ...................................................................................... 29

5 Technical specifications ........................................................................................................................... 35

A Dimension drawing .................................................................................................................................. 44

A.1

Dimension drawing ................................................................................................................ 44

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

6

Equipment Manual, 11/2019, A5E42011886-AB

S7-1500R/H Documentation Guide

1

The documentation for the redundant S7-1500R/H system is divided into three areas. This division enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the redundant S7-1500R/H system. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the redundant S7-1500R/H system, e.g. diagnostics, communication.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

7

S7-1500R/H Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the redundant S7-1500R/H system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

8

Equipment Manual, 11/2019, A5E42011886-AB

Product overview

2

2.1

New functions in firmware version V2.8

This section contains an overview of the most important new firmware functions of the CPU since the last edition of the manual.

New functions of the CPU in firmware version V2.8

New functions

Customer benefits

Download modified user program in RUNRedundant system state

You can download a modified user program into the R/H CPUs in the RUN-Redundant system state.
Advantage: The redundant system will remain consistently in the RUN-Redundant system state during the change to the user program. The system state will not switch to RUN-Solo or SYNCUP.

Backing up the configuration of the S7-1500R/H redundant system in runtime

You do not have to interrupt the process during a backup while the plant is running. Uninterrupted plant operation avoids high restart and material costs.

Where can I find information?
S7-1500R/H System Manual (https://support.industry.siemens.com/c s/ww/en/view/109754833)

Switched S1 device Testing with breakpoints

The "Switched S1 device" function of the CPU enables operation of standard IO devices in the S71500R/H redundant system.
When testing with breakpoints, you run a program from breakpoint to breakpoint in the STARTUP (startup OB) or RUN-Solo system state. Testing with breakpoints provides you with the following advantages:
· Testing SCL and STL program code with the help of breakpoints
· Localization of logic errors step by step
· Simple and quick analysis of complex programs prior to actual commissioning
· Recording of current values within individual executed loops
· Using breakpoints for program validation is also possible in SCL or STL networks within LAD/FBD blocks.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

9

Product overview 2.1 New functions in firmware version V2.8

New functions PID controller
Alarms in the user program

Customer benefits
PID controllers are built into all R/H-CPUs as standard. PID controllers measure the actual value of a physical variable, for example, temperature or pressure, and compare the actual value with the setpoint. Based on the resulting error signal, the controller calculates a manipulated variable that causes the process value to reach the setpoint as quickly and stably as possible.
The PID controllers offer you the following advantages:

Where can I find information?
· S7-1500R/H System Manual (https://support.industry.siemens.co m/cs/ww/en/view/109754833)
· PID Control Function Manual (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· Simple configuration and programming through integrated editors and blocks

· Simple simulation, visualization, commissioning and operation via PG and HMI

· Automatic calculation of the control parameters and tuning during operation

· No additional hardware and software required

Alarms enable you to display events from process execution in the S7-1500R/H redundant system and to quickly identify, accurately locate, and correct errors.

Diagnostics function manual (https://support.industry.siemens.com/c s/ww/en/view/59192926)

Additional information
You can find an overview of all new functions, improvements and revisions in the respective firmware version on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109478459).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

10

Equipment Manual, 11/2019, A5E42011886-AB

Product overview 2.2 Configuration and operating principle

2.2

Configuration and operating principle

Structure

The S7-1500H redundant system consists of the following components:  Two CPUs of the type CPU 1517H-3 PN  Two SIMATIC memory cards  Four synchronization modules (two synchronization modules in each H-CPU)  Two redundancy connections (two duplex fiber-optic cables)  IO devices  Load power supply (optional)  System power supply (optional)

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

11

Product overview 2.2 Configuration and operating principle
You mount the CPUs on a common mounting rail or spatially separated on two separate mounting rails. You connect the two CPUs with fiber-optic cables to two synchronization modules in each CPU. You set up the PROFINET ring with the PROFINET interfaces X1 P1 R and X1 P2 R of the CPUs.



Optional load current supply



First CPU



Mounting rail with integrated DIN rail profile



Second CPU



Location of the synchronization modules (not visible in graphic)



Redundancy connections (fiber-optic cables)



PROFINET cable (PROFINET ring)

Figure 2-1 Configuration example for S7-1500H

Note Standard rail adapter
You mount the CPUs on a standardized 35 mm rail using the standard rail adapter.
You will find information on mounting the standard rail adapter in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) System Manual.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

12

Equipment Manual, 11/2019, A5E42011886-AB

Product overview 2.2 Configuration and operating principle
Principle of operation One of the two CPUs in the redundant system takes on the role of CPU for process control (primary CPU). The other CPU takes on the role of the following CPU (backup CPU). The role of the CPUs can change during operation. All relevant data is synchronized from the primary CPU to the backup CPU via the fiber-optic cables of the redundancy connections. Synchronization between the primary CPU and backup CPU ensures fast switching between CPUs in the event of a primary CPU failure. If the primary CPU fails, the backup CPU retains control of the process as the new primary CPU at the point of interruption.
The redundancy connections consist of two fiber-optic cables, which directly connect the CPUs via plug-in synchronization modules.
Additional information You can find a detailed description of the operation and design of the S7-1500H redundant system in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

13

Product overview 2.3 Hardware properties

2.3

Hardware properties

Article number 6ES7517-3HP00-0AB0
View of the module The figure below shows the CPU 1517H-3 PN.

Figure 2-2 CPU 1517H-3 PN
Note Protective film Note that there is a removable protective foil on the display when the CPUs are delivered.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

14

Equipment Manual, 11/2019, A5E42011886-AB

Product overview 2.3 Hardware properties

Properties

CPU 1517H-3 PN has the following technical properties:

Property CPU display
Supply voltage

Description

Additional information

All CPUs of the redundant system S7 1500R/H have a · Redundant System S7-1500R/H

display with plain text information. The display provides

(https://support.industry.siemens.

you with diagnostic messages as well as information about the article number, the firmware version and the serial number of the CPU.

com/cs/ww/en/view/109754833) System Manual

You can also view and assign the IP addresses, the PROFINET device name and the redundancy ID of the

·

SIMATIC S7-1500 Display Simulator

CPU. The system IP address can be viewed via

(http://www.automation.siemens.

STEP 7 but not in the display.

com/salesmaterial-as/interactive-

In addition to the functions listed here, a large number of other functions are available on the display. These

manuals/getting-started_simatics7-1500/disp_tool/start_en.html)

additional functions are described in the SIMATIC S7

1500 Display Simulator.

The 24 V DC supply voltage is fed via a 4-pin plug located on the front of the CPU.

· Section Connecting (Page 25)
· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

15

Product overview 2.3 Hardware properties

Property
PROFINET IO
PROFINET IO interface (X1 P1 R and X1 P2 R)

Description

Additional information

The CPU has an X1 interface with two ports (X1 P1 R and X1 P2 R).
· The PROFINET IO interface X1 (default P1 R) is used to set up the PROFINET ring with the two CPUs and the IO devices.
· The interface supports PROFINET IO RT (RealTime) and PROFINET basic functionality.

· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual
· Function manual PROFINET (https://support.industry.siemens. com/cs/ww/en/view/49948856)

Basic PROFINET functionality comprises:
­ HMI communication
­ Communication with the configuration system
­ Communication with a higher-level network (backbone, router, Internet)
­ Communication with another machine or automation cell

PROFINET interface (X2 P1) H-Sync interfaces (X3 P1 and X4 P1)
Synchronization modules
Fiber-optic cables Operation of the CPUs as IO controllers

The CPU has an X2 interface with one port (X2 P1).
The interface supports PROFINET basic functionality.
Die CPU has an X3 interface with one port (X3 P1) and an X4 interface with one port (X4 P1).
The X3 and X4 interfaces are reserved for the synchronization of the two CPUs.
Make the redundancy connections between the two CPUs via the synchronization modules with fiber-optic cables.
You plug each synchronization modules in the X3 and X4 interfaces.
You connect the two synchronization modules in pairs to each CPU via a fiber-optic cable.
IO controller: As IO controllers the CPUs address the following configured IO devices:
· IO devices with S2 system redundancy within the PROFINET ring
· IO devices with S2 system redundancy that are decoupled from the PROFINET ring via a switch
· Standard IO devices (switched S1 devices)

Accessories

You can find information on the topic of "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

16

Equipment Manual, 11/2019, A5E42011886-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

CPU 1517H-3 PN supports the following firmware functions:

Function CPU redundancy
Integrated system diagnostics Integrated trace functionality
PROFINET IO System redundancy S2
Switched S1 device

Description

Additional information

There are two duplicate CPUs that synchronize their Redundant System S7-1500R/H data via two duplex fiber-optic cables, which connect (https://support.industry.siemens.co the CPUs directly to each other via plug-in synchroniza- m/cs/ww/en/view/109754833) Systion modules. If one of the CPUs fails, the other CPU tem Manual retains control of the process.

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device or the integrated display. System diagnostics information is also available when the CPUs are in operating state STOP.

Function manual Diagnostics (http://support.automation.siemens.c om/WW/view/en/59192926)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Function manual Using the trace and logic analyzer function (http://support.automation.siemens.c om/WW/view/en/64897128)

Trace and logic analyzer functions are suitable for monitoring highly dynamic processes.

Note: Note that the S7-1500R/H redundant system supports recording of measurements. However, saving the measurements to the SIMATIC memory card is not supported.

All IO devices are connected redundantly in the redundant S7 1500R/H system. All IO devices assigned to the system must therefore support system redundancy S2. If the role of the CPUs changes, the new primary CPU takes over the PROFINET IO communication.
The switched S1 device function of the CPU enables operation of standard IO devices in the S7-1500R/H redundant system.

· Redundant System S7-1500R/H (https://support.industry.siemens. com/cs/ww/en/view/109754833) System Manual
· Function manual PROFINET (http://support.automation.sieme ns.com/WW/view/en/49948856)
Redundant System S7-1500R/H (https://support.industry.siemens.co m/cs/ww/en/view/109754833) System Manual

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

17

Product overview 2.4 Firmware functions

Function RT (real time) MRP (Media Redundancy Protocol)
PROFIenergy
Integrated technology Integrated closed-loop control functionality

Description
RT prioritizes PROFINET IO frames over standard frames. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet frames.
The Media Redundancy Protocol enables the configuration of redundant networks. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails.
Within the PROFINET ring, the H-CPUs assume the role of the MRP Manager following appropriate project configuration and all other devices in the ring assume the role of the MRP clients.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. Most of the energy is saved by the process. The PROFINET device itself only contributes a few watts to the savings potential.
· PID Compact (continuous PID controller)
· PID 3Step (step controller for integrating actuators)
· PID Temp (temperature controller for heating and cooling with two separate actuators)

Additional information Function manual PROFINET (http://support.automation.siemens.c om/WW/view/en/49948856)
Function manual PID Control (https://support.industry.siemens.co m/cs/ww/en/view/108210036)

Security Integrated Know-how protection Access protection Integrity protection
Password provider

The know-how protection protects user blocks against unauthorized access and modifications.
You can use authorization levels to assign separate rights to different user groups.

Redundant System S7-1500R/H (https://support.industry.siemens.co m/cs/ww/en/view/109754833) System Manual

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between STEP 7 and the CPUs.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPUs for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password entry, you can link a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 automatically imports the password for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

18

Equipment Manual, 11/2019, A5E42011886-AB

2.5
2.5.1

Product overview 2.5 Operator controls and display elements
Operator controls and display elements
Front view of the CPU with closed front flap
The figure below shows the front view of the CPU 1517H-3 PN.

 LEDs for the current operating state and diagnostic status of the CPU  Front panel with display  Display  Control keys  Front panel of the X3 and X4 interfaces
Figure 2-3 View of the CPU 1517R-3 PN (with front panel) - front
Note Temperature range for display To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU. You can find additional information on the temperatures at which the display switches itself on and off in the Technical specifications (Page 35).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

19

Product overview 2.5 Operator controls and display elements
Pulling and plugging the front panel with display You can pull and plug the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or attach the front panel of a redundant system S7-1500R/H during operation, personal injury or damage to property can occur in hazardous area zone 2. Before you remove or fit the front panel, always switch off the power supply to the S7-1500R/H redundant system in hazardous area zone 2.
Locking the front panel You can lock the front panel to protect the SIMATIC memory card and the mode selector of the CPU against unauthorized access. You can attach a security seal or a padlock with a hoop diameter of 3 mm to the front panel.

Reference

Figure 2-4 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and the local lock in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_de.html).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

20

Equipment Manual, 11/2019, A5E42011886-AB

2.5.2

Product overview 2.5 Operator controls and display elements
Front view of the CPU without front flaps
The figure below shows the operator controls and connection elements of the CPU 1517H-3 PN.

 Mode selector  No function  LED displays for the ports of the X3 and X4 interfaces  MAC addresses of the X3 and X4 interfaces  H-Sync X3 and X4 interfaces with 1 port each (not visible in graphic)  Fixing screws  Connector for power supply  PROFINET IO interface X2 with 1 port  PROFINET IO interface X1 with 2 ports  MAC addresses of the X1 and X2 interfaces  LED displays for the ports of the X1 and X2 interfaces  Slot for the SIMATIC memory card  Display connector  LEDs for the current operating state and diagnostic status of the CPU
Figure 2-5 View of the CPU 1517H-3 PN (without front panels) - front

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

21

Product overview 2.5 Operator controls and display elements

2.5.3

Rear view of the CPU
The figure below shows the connection elements on the rear of the CPU 1517H-3 PN.

 Shield contact surfaces  Plug-in connection for power supply  Fixing screws
Figure 2-6 View of the CPU 1517H-3 PN - rear

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

22

Equipment Manual, 11/2019, A5E42011886-AB

Product overview 2.5 Operator controls and display elements

2.5.4

Bottom view

Interfaces and synchronization modules The figure below shows the position of the interfaces on the underside of the CPU.

 PROFINET IO interface X1 with 2 ports  PROFINET IO interface X2 with 1 port  H-Sync interface X3 without synchronization module  H-Sync interface X4 without synchronization module
Figure 2-7 Bottom view

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

23

Product overview 2.6 Mode selector

2.6

Mode selector

You use the mode selector to:

 Request a change to a specific operating state

 Disable or enable the change of a specific operating state

(if, for example, the mode selector is set to STOP, you cannot switch the CPU to RUN via a communication task configured in the TIA Portal or via the display)

The following table shows the position of the switch and the corresponding meaning.

Table 2- 1
Position RUN STOP MRES

Mode switch settings
Meaning RUN operating state STOP operating state Memory reset

Explanation The CPU has permission to go to RUN. The CPU does not have permission to go to RUN. Position for CPU memory reset.

Reference

You can find a brief overview of the various operating states and system states in the section Status and error display of the CPU (Page 29).
You can find a detailed description of the operating states and system states in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

24

Equipment Manual, 11/2019, A5E42011886-AB

Connecting

3

3.1

Terminal assignment

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1517H-3 PN.

24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory.
The following table shows the signal names and the descriptions of the pin assignment of the 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View Connector

Signal name 1)

Description

1 1L+ 2 1M 3 2M 4 2L+

+ 24 V DC of the supply voltage Ground of the supply voltage Ground of the supply voltage for loop-through 2) + 24 V DC of the supply voltage for loop-through 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally 2) Maximum 10 A permitted
You can find information on the various supply options in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

25

Connecting 3.1 Terminal assignment
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

Figure 3-1 Interface assignments
PROFINET interface X2 with 1 port (X2 P1) The assignment corresponds to the Ethernet standard for a RJ45 connector. Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
H-Sync X3 interface with 1 port (X3 P1) and X4 with 1 port (X4 P1) Make the redundancy connections between the two CPUs via the synchronization modules at the X3 P1 and X4 P1 interfaces (LC sockets). You interconnect the CPUs in pairs via the fiber-optic cables.

 X3 P1 without synchronization module  X4 P1 with synchronization module and removed dummy plugs
Figure 3-2 Interface assignments

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

26

Equipment Manual, 11/2019, A5E42011886-AB

Connecting 3.1 Terminal assignment

Additional information
You can find additional information on the topic of "Connecting the CPU" and on the topic "Accessories/spare parts" in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

Assignment of the MAC addresses For each CPU, CPU 1517H-3 PN has:
 One PROFINET interface with two ports
 One PROFINET interface with one port
 Two H-Sync interfaces with one port each
Each of the interfaces has a MAC address. Each port also has a separate MAC address. There are a total of eighteen MAC addresses for the two CPUs of the CPU 1517H-3 PN.
The MAC addresses of the ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are printed on the rating plate on the right side of each CPU 1517H-3 PN.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Distribution of the MAC addresses of a CPU

MAC address 1
MAC address 2 MAC address 3 MAC address 4
MAC address 5 MAC address 6 MAC address 7 MAC address 8 MAC address 9

Assignment

Labeling

PROFINET interface X1

·

(visible in STEP 7 when devices are accessible) ·

Front printed
Right-side printed (start of number range)

Port X1 P1 R (required for LLDP, for example) ---

Port X1 P2 R (required for LLDP, for example) ---

PROFINET interface X2

· Front printed

(visible in STEP 7 when devices are accessible)

Port X2 P1 (required for LLDP, for example)

---

H-Sync interface X3

· Front printed

Port X3 P1 H-Sync interface X4

--· Front printed

Port X4 P1

· Right-side printed (end of number range)

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

27

Connecting 3.1 Terminal assignment
Block diagram The following figure shows the block diagram of the CPU 1517H-3 PN.

      
 
PN X1 P1 R

SIMATIC memory card (X50) Display Mode selector RUN/STOP/MRES Electronics PROFINET 2-port switch Synchronization interface Backplane bus connection (connection to backplane bus not configurable) Internal supply voltage Supply of the 24 V DC supply voltage (X80) PROFINET interface X1 port 1

Figure 3-3 Block diagram of the CPU 1517H-3 PN

PN X1 P2 R PN X2 P1 HSYNC X3 P1 HSYNC X4 P1 L+ M R/S
ER MT X1 P1, X1 P2, X2 P1, X3 P1, X4 P1

PROFINET interface X1 port 2 PROFINET interface X2 port 1 H-Sync interface X3 port 1 H-Sync interface X4 port 1 24 V DC supply voltage Ground RUN/STOP LED (yellow/green)
ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

28

Equipment Manual, 11/2019, A5E42011886-AB

Interrupts, diagnostics, error messages and system events

4

4.1

Status and error display of the CPU

The LED displays of the CPU are described below.

You can find more detailed information on "Interrupts" in the STEP 7 online help.

You can find additional information on the topic of "Diagnostics" and "System events" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual and in the system manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

You can find additional information on the topic of "Operating states and system states" as well as various failure scenarios in the system manual for S7-1500R/H Redundant System (https://support.industry.siemens.com/cs/ww/en/view/109754833).

LED display

The figure below shows the LED displays of the CPU 1517H-3 PN.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  LINK RX/TX LED for port X3 P1 (yellow/green LED)  LINK RX/TX LED for port X4 P1 (yellow/green LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1517H-3 PN (without front panel)

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

29

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
LED displays depending on operating states and system states CPU 1517H-3 PN has the following LEDs for displaying the current operating state and diagnostics status.  RUN/STOP LED  ERROR LED  MAINT LED The LEDs indicate the operating state of the respective CPU within the redundant system. Operating states describe the behavior of a single CPU at a specific time. The combination of the operating states of the CPUs forms the system state. The following figure shows the possible operating states of the CPUs and the resulting system states.

Figure 4-2 Operating states and system states

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

30

Equipment Manual, 11/2019, A5E42011886-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
Meaning of the RUN/STOP, ERROR and MAINT LEDs CPU 1517H-3 PN has the following LEDs for displaying the current operating state and diagnostics status.
Note LED patterns of the S7-1500H redundant system Note that it is not always possible to: · Determine the state of the CPU from the signal pattern of individual LEDs · Determine the state of the other CPU from the signal pattern of a CPU The "Meaning" column only shows a possible typical cause. To investigate the cause of the signal pattern, use the diagnostic buffer and its display via: · STEP 7 · HMI devices · Displays of the CPUs

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

31

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

The following table shows the meaning of the various color combinations for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED flashes yellow/green LED lit yellow
LED flashes yellow LED lit yellow
LED lit yellow

LED flashes red
LED off LED off LED flashes red LED off

LED flashes yellow/green

LED off

MAINT LED LED off
LED flashes yellow
LED lit yellow LED lit yellow LED flashes yellow LED flashes yellow LED lit yellow

Meaning Missing or insufficient supply voltage on the CPU.
Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test CPU is in operating state STOP. Completion of system initialization CPU executes internal activities in an operating state  RUN-Redundant.
CPU defective
Firmware update successfully completed.
The primary CPU is in STARTUP operating state. The backup CPU is in SYNCUP operating state. The backup CPU has not yet been restarted for SYNCUP during this phase.

LED flashes yellow LED lit green

LED off LED off

LED lit green LED lit green LED lit green

LED off LED flashes red LED flashes red

LED off LED lit yellow
LED off LED off LED lit yellow

The CPU performs a warm restart.
Maintenance demanded for the plant. You need to check/replace the affected hardware within a short period of time. The primary CPU is in RUN-Syncup operating state. Active Force job PROFIenergy pause The primary CPU is in RUN operating state. The CPU is in RUN-Redundant operating state. There are no events, requirements, errors, etc. A diagnostic event is pending in RUN-Redundant operating state.
A diagnostic event (e.g. failure of an IO device within the PROFINET ring or no access to SIMATIC memory card possible1)) and maintenance is demanded (e.g. interruption of the PROFINET ring).

1) If access to the SIMATIC memory card is not possible in RUN-Redundant (wrong card, card full/write protected), the system switches to RUN-Solo. The ERROR LED flashes for three seconds. The MAINT LED lights up until the RUNRedundant system status is reached again.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

32

Equipment Manual, 11/2019, A5E42011886-AB

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU

Note MAINT LED of the two CPUs
The MAINT LEDs of both CPUs only go out when the following conditions are fulfilled: · The CPUs are in the RUN-Redundant system state. · No maintenance is demanded.

Note LED displays in redundant operating state
In the RUN-Redundant system state, the LED displays on both CPUs are identical (exception: you are performing an LED flash test on one CPU).

Meaning of LINK RX/TX LED
Each port of the X1, X2, X3 and X4 interfaces has a LINK RX/TX LED. The table below shows the various LED patterns of the ports of the CPU 1517H-3 PN.

Table 4- 2 Meaning of LINK RX/TX LED

LINK TX/RX LED Off
Flashes green Illuminated green
LED flashes yellow/green

Meaning There is no connection between the interface of the device and a communication partner. No data is currently being sent/received via the interface. There is no LINK connection. The redundancy connections were interrupted. The CPU performs an LED flash test.
There is a connection between the interface of the device and a communication partner. The redundancy connections are OK. Data is currently being received or sent by a communication partner via the interface of the device.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

33

Interrupts, diagnostics, error messages and system events 4.1 Status and error display of the CPU
Note "LED" instruction You can read the status (e.g. "On" or "Off") of LEDs of a CPU or a module using the "LED" instruction. Note, however, that it is not possible to read the LED status of the LINK RX/TX LEDs on all S7-1500 R/H CPUs. You can find additional information on the "LED" instruction in the STEP 7 online help.

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

34

Equipment Manual, 11/2019, A5E42011886-AB

Technical specifications

5

The following table shows the technical specifications as of 11/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7517-3HP00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version Product function · I&M data
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering · Mains/voltage failure stored energy time
Input current Current consumption (rated value) Inrush current, max. I²t
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7517-3HP00-0AB0
CPU 1517H-3 PN FS02 V2.8
Yes; I&M0 to I&M3 No
V16 (FW V2.8) / V15.1 (FW V2.6) or higher
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
1.5 A 2.4 A; Rated value 0.02 A²·s
24 W
1 Yes

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

35

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range · Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of startup OBs · Number of asynchronous error OBs · Number of synchronous error OBs · Number of diagnostic alarm OBs
Nesting depth · per priority class

6ES7517-3HP00-0AB0
2 Mbyte 8 Mbyte
32 Gbyte
Yes
4 ns 6 ns 6 ns 24 ns
12 000; Blocks (OB, FB, FC, DB) and UDTs
Number range: 1 to 59 999 8 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 1 Mbyte
0 ... 65 535 1 Mbyte
1 Mbyte 100 20 20 20 50 100 4 2 1
24

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

36

Equipment Manual, 11/2019, A5E42011886-AB

Technical specifications

Article number Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules I/O address area
· Inputs
· Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max.

6ES7517-3HP00-0AB0
2 048 Yes Any (only limited by the main memory) Yes 2 048 Yes Any (only limited by the main memory) Yes 768 kbyte
16 kbyte 8; 8 clock memory bit, grouped into one clock memory byte Yes No 64 kbyte; max. 16 KB per block 8 192; max. number of modules / submodules 32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image 16 kbyte 16 kbyte 32

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

37

Technical specifications
Article number Hardware configuration
Number of distributed IO systems Number of IO Controllers
· integrated Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · on Ethernet via NTP Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy

6ES7517-3HP00-0AB0
1
1
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes
1
2 Yes Yes; X1
Yes; IPv4 Yes No Yes; Only Server Yes No Yes; MRP Automanager according to IEC 624392 Edition 2.0

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

38

Equipment Manual, 11/2019, A5E42011886-AB

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ MRPD ­ PROFIenergy ­ Number of connectable IO Devices,
max. Update time for RT
­ for send cycle of 1 ms 2. Interface Interface types
· Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy 3. Interface Interface type Plug-in interface modules
4. Interface Interface type Plug-in interface modules

6ES7517-3HP00-0AB0
Yes Yes No Yes No Yes; Only Manager Auto, max. 50 nodes No Yes 256
1 ms to 512 ms
1 No Yes; X2
Yes; IPv4 No No Yes; Only Server Yes No No
Pluggable interface module (IF) Synchronization module 6ES7960-1CB00-0AA5 or 6ES7960-1FB00-0AA5
Pluggable synchronization submodule (FO) Synchronization module 6ES7960-1CB00-0AA5 or 6ES7960-1FB00-0AA5

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

39

Technical specifications

Article number Interface types RJ 45 (Ethernet)
· 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED Protocols Number of connections · Number of connections, max. · Number of connections reserved for
ES/HMI/web · Number of S7 routing paths Redundancy mode · MRP
· MRPD SIMATIC communication
· S7 communication, as server · S7 communication, as client Open IE communication · TCP/IP
­ Data length, max. ­ several passive connections per port,
supported · ISO-on-TCP (RFC1006)
­ Data length, max. · UDP
­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS

6ES7517-3HP00-0AB0
Yes Yes Yes Yes
288 10
64
Yes; Manager Auto is permanently set in TIA. Max. 50 nodes are possible No
Yes No
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
No No

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

40

Equipment Manual, 11/2019, A5E42011886-AB

Technical specifications

Article number OPC UA
· OPC UA client
· OPC UA server Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ.
· Number of stations in the ring, max. Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program messages, max. Number of loadable program messages in RUN, max. Number of simultaneously active program alarms · Number of program alarms
· Number of alarms for system diagnostics Test commissioning functions
Joint commission (Team Engineering) Status block Single step Number of breakpoints
Status/control · Status/control variable
· Variables
· Number of variables, max.
­ of which status variables, max. ­ of which control variables, max. Forcing · Forcing
· Forcing, variables
· Number of variables, max.

6ES7517-3HP00-0AB0
No No
Yes; MODBUS TCP
200 ms; PROFINET MRP 50
No No
64 Yes 10 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH 5 000
1 000 1 000
No Yes; Up to 16 simultaneously No 20; Breakpoints are only supported in RUN-Solo status
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Yes Peripheral inputs/outputs 200

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

41

Technical specifications

Article number Diagnostic buffer
· present · Number of entries, max.
­ of which powerfail-proof Traces
· Number of configurable Traces · Memory size per trace, max. Interrupts/diagnostics/status information Diagnostics indication LED · RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX Supported technology objects Motion Control Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Altitude during operation relating to sea level · Installation altitude above sea level, max.

6ES7517-3HP00-0AB0
Yes 3 200 1 000
8 512 kbyte
Yes Yes Yes Yes
No
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature Yes No
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

42

Equipment Manual, 11/2019, A5E42011886-AB

Technical specifications

Article number Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ CFC ­ GRAPH Know-how protection · User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7517-3HP00-0AB0
Yes Yes Yes Yes No Yes
Yes
No Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
210 mm 147 mm 129 mm
2 119 g; Interface modules: 2x 18 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc. in the system manual for Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833).

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

43

Dimension drawing

A

A.1

Dimension drawing
This section contains the dimension drawing of the module on the mounting rail, as well as a dimension drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.

Dimension drawings of the CPU 1517H-3 PN

Figure A-1 Dimension drawing of the CPU 1517H-3 PN, front and side view

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

44

Equipment Manual, 11/2019, A5E42011886-AB

Dimension drawing A.1 Dimension drawing
Figure A-2 Dimension drawing of the CPU 1517H-3 PN, side view with front panel open

CPU 1517H-3 PN (6ES7517-3HP00-0AB0)

Equipment Manual, 11/2019, A5E42011886-AB

45

SIMATIC
S7-1500 CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_nt_at_io_n _gu_id_e_______1_

_Pr_od_u_ct_ov_e_rv_ie_w _________2_

_W_iri_ng_______________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______5_

_Di_m_en_si_on_d_ra_w_in_g ________A_

12/2017
A5E36285525-AB

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36285525-AB  11/2017 Subject to change

Copyright © Siemens AG 2016 - 2107. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1517T-3 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

4

Manual, 12/2017, A5E36285525-AB

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ..................................................................................................................................... 11

2.1

New functions in firmware version V2.5................................................................................. 11

2.2

Applications of the S7-1500 CPU .......................................................................................... 12

2.3

Hardware properties .............................................................................................................. 19

2.4

Firmware functions................................................................................................................. 21

2.5 2.5.1 2.5.2 2.5.3

Operator controls and display elements ................................................................................ 25 Front view of the CPU with closed front flap .......................................................................... 25 Front view of the CPU without front flaps .............................................................................. 27 Rear view of the CPU ............................................................................................................ 28

2.6

Mode selector......................................................................................................................... 28

3 Wiring ...................................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms .................................................................... 34

4.1

Status and error displays of the CPU..................................................................................... 34

5 Technical specifications ........................................................................................................................... 37

A Dimension drawing .................................................................................................................................. 50

A.1

Dimension drawing CPU 1517T-3 PN/DP ............................................................................. 50

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

6

Manual, 12/2017, A5E36285525-AB

Documentation guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

8

Manual, 12/2017, A5E36285525-AB

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

10

Manual, 12/2017, A5E36285525-AB

Product overview

2

2.1

New functions in firmware version V2.5

New functions of the CPUs firmware 2.5 This section lists the new features of the CPU with firmware version V2.5. You can find additional information in the sections of this manual.

Table 2- 1 New functions of the CPUs with firmware version 2.5

New functions

Applications

Customer benefits

New technology object, kinematics

Controlling of kinematics, such as · Cartesian portals · Roller pickers

You can realize complex Motion Control applications for controlling 2D, 3D and 4D kinematics.

· Delta pickers

· SCARA Motion specification of paths

Individual motions and motion sequences

Kinematics 2D, 3D, with and without orientation axis

Additional instructions for torque control You can apply an additives setpoint

You can pre-control the torque precise-

torque in the drive.

ly for the axes, for example at winders

You can predetermine torque limits in (predetermine traction torque and addi-

the drive cyclically.

tionally torque limits in order to prevent

The torque actual value of the drive can tearing of the material).

be evaluated directly in the TO-DB of You can take the dynamic model of the

the axis.

kinematics into consideration, pre-

control the torque to be expected for

each axis and thus improve the preci-

sion.

Data adaption for SINAMICS S210

You can also use data adaption for the You gain time during the configuration

new drive SINAMICS S210.

of the technology objects and the

drives.

MotionIn

Through additional instructions motion setpoints can be specified cyclically via the application.

This means that specific technological motion specifications are possible via the application (for example at winders).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

11

Product overview 2.2 Applications of the S7-1500 CPU

2.2

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and user-friendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Areas of application of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Additional areas of application of the SIMATIC S7-1500T with extended Motion Control functions are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

12

Manual, 12/2017, A5E36285525-AB

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 2 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/ DP
CPU 1517-3 PN/ DP
CPU 1518-4 PN/ DP CPU 1518-4 PN/ DP MFP

Performance segment PROFIBUS interfaces

Standard CPU for

--

small to mid-range

applications

Standard CPU for

--

mid-range applica-

tions

Standard CPU for

--

mid-range to large

applications

Standard CPU for

1

high-end applications

and communication

tasks

Standard CPU for

1

high-end applications

and communication

tasks

Standard CPU for

1

high-performance

applications, demand-

ing communication

tasks and very short

reaction times

PROFINET IO RT/IRT interfaces
1
1
1
1
1
1

PROFINET IO RT
interface --
--
1
1
1
1

PROFINET basic func-
tionality --
--
--
--
--
1

Work memory 1.15 MB 1.8 MB 3.5 MB
6 MB
10 MB
24 MB

Processing time for bit operations
60 ns
40 ns
30 ns
10 ns
2 ns
1 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C-1 PN
CPU 1512C-1 PN

Performance segment
Compact CPU for small to mid-range applications Compact CPU for mid-range applications

PROFIBUS interfaces
--
--

PROFINET IO RT/IRT interfaces
1
1

PROFINET IO RT
interface --
--

PROFINET basic func-
tionality --
--

Work memory 1.175 MB
1.25 MB

Processing time for bit operations
60 ns
48 ns

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

13

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 4 Fail-safe CPUs

CPU
CPU 1511F-1 PN
CPU 1511TF-1 PN
CPU 1513F-1 PN CPU 1515F-2 PN
CPU 1515TF-2 PN
CPU 1516F-3 PN/DP
CPU 1516TF-3 PN/DP
CPU 1517F-3 PN/DP
CPU 1517TF-3 PN/DP
CPU 1518F-4 PN/DP CPU 1518F-4 PN/DP MFP

Performance segment
Fail-safe CPU for small to mid-range applications
Fail-safe technology CPU for small to mid-range applications
Fail-safe CPU for mid-range applications
Fail-safe CPU for mid-range to large applications
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for demanding applications and communication tasks
Fail-safe technology CPU for demanding applications and communication tasks
Fail-safe CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic func-
tionality
--

--

1

--

--

--

1

--

--

--

1

1

--

--

1

1

--

1

1

1

--

1

1

1

--

1

1

1

--

1

1

1

--

1

1

1

1

Work memory 1.225 MB 1.225 MB 1.95 MB 3.75 MB 3.75 MB
6.5 MB
6.5 MB
11 MB
11 MB
26 MB

Processing time for bit operations
60 ns 60 ns 40 ns 30 ns 30 ns
10 ns
10 ns
2 ns
2 ns
1 ns

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

14

Manual, 12/2017, A5E36285525-AB

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1516T-3 PN/DP
CPU 1517T-3 PN/DP
CPU 1511TF-1 PN CPU 1515TF-2 PN CPU 1516TF-3 PN/DP CPU 1517TF-3 PN/DP

Performance segment PROFIBUS PROFINET PROFINET PROFINET interfaces IO RT/IRT IO RT basic funcinterfaces interface tionality

Technology CPU for

--

1

--

--

small to mid-range

applications

Technology CPU for

--

1

1

--

mid-range to large

applications

Technology CPU for

1

1

1

--

high-end applications

and communication

tasks

Technology CPU for

1

1

1

--

high-end applications

and communication

tasks

These CPUs are described in the fail-safe CPUs

Work memory 1.225 MB 3.75 MB 6.5 MB
11 MB

Processing time for bit operations
60 ns
30 ns
10 ns
2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output) Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels Max. 4 (up to 100 kHz) Max. 4 (up to 100 kHz)
Up to 100 kHz

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

15

Product overview 2.2 Applications of the S7-1500 CPU
Integrated Motion Control technology functions All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axis  Positioning axis  Synchronous axis  External encoders  Output cam  Cam track  Measuring inputs The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions ­ Synchronization with specification of synchronous position ­ Actual value coupling ­ Shifting the master value of the following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Controlling of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technological functions For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

16

Manual, 12/2017, A5E36285525-AB

Product overview 2.2 Applications of the S7-1500 CPU
Other technology functions Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Security Integrated In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides the user with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration thereby provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
In addition to the CPUs, further components such as SINAMICS drives dispose of integrated safety functions. Additional information about integrated safety functions in drives can be found in the manuals for the respective products.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

17

Product overview 2.2 Applications of the S7-1500 CPU
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Error messages are immediately shown on the display in plain text. In the case of servicing, plant downtimes are minimized by quick access to diagnostics alarms. Detailed information about this and a multitude of other display functions is available in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages specified for the CPU. If you require message texts in additional languages, you can load these via the configured connection to your HMI. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

18

Manual, 12/2017, A5E36285525-AB

2.3

Hardware properties

Article number 6ES7517-3TP00-0AB0

View of the module The following figure shows the CPU 1517T-3 PN/DP.

Product overview 2.3 Hardware properties

Figure 2-1 CPU 1517T-3 PN/DP
Note Protective film Note that a protective film is applied to the display in the delivery state of the CPU. Remove the protective film if necessary.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

19

Product overview 2.3 Hardware properties

Properties

The CPU 1517T-3 PN/DP has the following properties:

Property CPU display

Description

All CPUs of the SIMATIC S7-1500 product series

·

feature a display with plain text information. The display

provides information on order numbers, firmware

version and serial numbers of all connected modules.

In addition, you can set the IP address of the CPU and carry out further network settings. The display shows ·

occurring error messages directly in plain text.

In addition to the functions listed here, a multitude of other functions that are described in the SIMATIC S7-1500 Display Simulator are shown on the display.

Additional information
S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)

Supply voltage

The 24 V DC supply voltage is supplied via a 4-pole connection plug that is located at the front of the CPU.

· Chapter Wiring (Page 29)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

PROFIBUS DP PROFIBUS interface (X3)
Operation of the CPU as DP master
PROFINET IO PROFINET interface (X1 P1 R, X1 P2 R)
PROFINET interface (X2 P1)
Operation of the CPU as · IO controller · I-device

The interface serves to connect to a PROFIBUS network.
In the role as a DP master, the CPU addresses the connected DP slaves. The CPU cannot assume the role of a DP slave.

PROFIBUS function manual (https://support.industry.siemens.co m/cs/ww/en/view/59193579)

The interface has two ports. In addition to basic

PROFINET function manual

PROFINET functionality, its also supports

(https://support.industry.siemens.co

PROFINET IO RT (real time) and IRT (isochronous real m/cs/ww/en/view/49948856)

time).

The interface has two ports. In addition to basic PROFINET functionality, its also supports PROFINET IO RT (real time).

· IO controller: As an IO controller the CPU addresses the connected IO devices

· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is used in the process as an intelligent pre-processing unit of sub-processes

Accessories

You can find information on "Accessories/spare parts" in the S7-1500, ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

20

Manual, 12/2017, A5E36285525-AB

Product overview 2.4 Firmware functions

2.4

Firmware functions

Functions

The CPU 1517T-3 PN/DP supports the following functions:

Function Integrated system diagnostics Integrated Web server
Integrated trace functionality
OPC UA
Configuration control

Description

Additional information

The system automatically generates the messages for the system diagnostics and outputs these messages via a programming device/PC, HMI device, the Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59191792)

The Web server lets you access the CPU data by

·

means of a network. Evaluations, diagnostics, and

modifications are thus possible over long distances.

Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take ·

appropriate measures (e.g. limiting network access,

using firewalls) to protect the CPU from being compro-

mised.

Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
Security with SIMATIC S7 controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Using the trace and logic analyzer function function manual (http://support.automation.siemens.c om/WW/view/en/64897128)

The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

The trace record can also be displayed through the Web server.

With OPC UA, you can exchange data via an open and manufacturer-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU acting as the OPC UA server can communicate with OPC UA clients.

Communication function manual (https://support.industry.siemens.co m/cs/ww/en/view/59192925)

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means that, in series machine manufacturing in particular, you have the option of operating/configuring different configuration variants of a machine with a single project.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

21

Product overview 2.4 Firmware functions

Function PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description
RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.
A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.
The Isochronous mode system property acquires measured values and process data and processes the signal in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing makes higher machine cycles possible.
It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.
RT operation is possible with the use of MRP.
The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.
The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

Additional information
PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

22

Manual, 12/2017, A5E36285525-AB

Product overview 2.4 Firmware functions

Function PROFIenergy Integrated technology Motion Control
Extended Motion Control functions

Description
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Additional information

S7-1500 CPUs support the controlled positioning and traveling of axes via S7-1500 Motion Control functions by means of the following technology objects:
Speed-controlled axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.

S7-1500 Motion Control function manual (http://support.automation.siemens.c om/WW/view/en/109749262)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis is synchronized to the master axis position.

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation

· Cams, cam track for position-dependent generation of switching signals

· Measuring input for fast, accurate and eventdependent sensing of actual positions
You program the technology objects with Motion Control instructions according to PLCopen.

The technology CPUs of the SIMATIC S7-1500 also support extended Motion Control functions:
· Advanced synchronization functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming

S7-1500T Motion Control function manual (https://support.industry.siemens.co m/cs/ww/en/view/109749263)
S7-1500T Kinematics Functions V4.0 in TIA Portal V15 (https://support.industry.siemens.co m/cs/ww/en/view/109749264) Function manual

· Cam

· Up to 4 encoders or measuring systems as actual position for position control

· Controlling of kinematics, such as

­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

23

Product overview 2.4 Firmware functions

Function Integrated closed-loop control functionality
Integrated safety Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

· PID Compact (continuous PID controller)

PID control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.
Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords. STEP 7 reads the password automatically for the blocks. This saves you time.

· Optimum block protection because the users do not know the password itself.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

24

Manual, 12/2017, A5E36285525-AB

2.5
2.5.1

Product overview 2.5 Operator controls and display elements
Operator controls and display elements
Front view of the CPU with closed front flap
The figure below shows the front view of the CPU 1517T-3 PN/DP.

 LEDs for the current operating mode and diagnostics status of the CPU  Front panel with display  Display  Control keys  Front panel of the PROFIBUS interface
Figure 2-2 View of the CPU 1517T-3 PN/DP (with front panels) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
You can find additional information on the temperatures at which the display switches itself on and off in the technical specifications.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

25

Product overview 2.5 Operator controls and display elements
Removing and fitting the front panel with display You can remove and fit the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or fit the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and local locking in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

26

Manual, 12/2017, A5E36285525-AB

2.5.2

Product overview 2.5 Operator controls and display elements
Front view of the CPU without front flaps
The figure below shows the operator controls and connection elements of the CPU 1517T-3 PN/DP.

 Mode selector  No function  PROFIBUS interface (X3)  Fixing screws  Connection for supply voltage  PROFINET IO interface (X2) with 1 port  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 3 ports of the PROFINET interfaces X1 and X2  Slot for the SIMATIC memory card  Display connection  LEDs for the current operating mode and diagnostics status of the CPU
Figure 2-4 View of the CPU 1517T-3 PN/DP (without front panels) - front

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

27

Product overview 2.6 Mode selector

2.5.3

Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1517T-3 PN/DP.

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-5 View of the CPU 1517T-3 PN/DP - rear

2.6

Mode selector

You use the mode selector to set the operating mode of the CPU.

The following table shows the meaning of the corresponding operation of the operating mode buttons.

Table 2- 6 Meaning of the mode switches

Operation of the mode switch RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not executed. (STOP ACTIVE LED lights up). Position for CPU memory reset.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

28

Manual, 12/2017, A5E36285525-AB

Wiring

3

This section provides information on the pin assignment of the individual interfaces and the block diagram of the CPU 1517T-3 PN/DP.
24 V DC supply voltage (X80) The connector for the supply voltage is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

29

Wiring
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R) The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
Figure 3-2 PROFINET
PROFINET interface X2 with 1 port (X2 P1) The assignment corresponds to the Ethernet standard for an RJ45 plug. Autocrossing is always active on X2. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

30

Manual, 12/2017, A5E36285525-AB

Wiring

PROFIBUS interface X3
The table below shows the pin assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface pin assignment

View

Signal name

1

-

2

-

3

RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8

RxD/TxD-N

9

-

Designation Data line B Request to send Data reference potential (from station) Supply plus (from station) Data line A -

Note Supply of I/O devices
CPU 1517T-3 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB) are therefore only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. The USB A2 PC adapter therefore does not require a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Reference

You can find additional information on the topics of "Wiring the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

31

Wiring

Assignment of the MAC addresses
CPU 1517T-3 PN/DP has two PROFINET interfaces. The first interface has two ports. Each of the PROFINET interfaces has a MAC address and each of the PROFINET ports has its own MAC address. In total, the CPU 1517T-3 PN/DP has five MAC addresses.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1517T-3 PN/DP.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5

Assignment PROFINET interface X1 (visible in STEP 7 for accessible devices)
Port X1 P1 R (required for LLDP, for example) Port X1 P2 R (required for LLDP, for example) PROFINET interface X2 (visible in STEP 7 for accessible devices) Port X2 P1 (required for LLDP, for example)

Labeling · Front, lasered · Right side, lasered
(start of number range)
· Front and right side, not lasered
· Front and right side, not lasered
· Front, lasered · Right side, not lasered
· Front, not lasered · Right side, lasered
(start of number range)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

32

Manual, 12/2017, A5E36285525-AB

Block diagram The following figure shows the block diagram of the CPU 1517T-3 PN/DP.

Wiring

      
X50
X80 24 V DC

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch PROFIBUS DP driver Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage

PN X1 P1 R PN X1 P2 R PN X2 P1 PB X3 L+ M R/S ER MT X1 P1, X1 P2, X2 P1

PROFINET interface X1 Port 1 PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFIBUS interface X3 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

Figure 3-3 Block diagram of the CPU 1517T-3 PN/DP

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

33

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1517T-3 PN are described below.
You can find additional information on the topic of "Interrupts" in the STEP 7 online help.
You can find additional information on the topic of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error displays of the CPU

LED display

The following figure shows the LED displays of the CPU 1517T-3 PN/DP.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1517T-3 PN/DP (without front panel)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

34

Manual, 12/2017, A5E36285525-AB

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1517T-3 PN/DP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green LED lit yellow LED lit yellow LED lit yellow LED lit yellow

LED flashes red LED flashes red
LED off LED off LED flashes red

LED flashes yellow

LED off

LED flashes yellow/green

LED off

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU carries out a program with active breakpoint. Startup (transition from RUN  STOP)

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

35

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error displays of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1517T-3 PN/DP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

36

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7517-3TP00-0AB0
CPU 1517T-3 PN/DP FS05 V2.5
V15 (FW V2.5) / V14 (FW V2.0) or higher
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
1.55 A 2.4 A; Rated value 0.02 A²·s
12 W 30 W
24 W
1 Yes

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0) Manual, 12/2017, A5E36285525-AB

5
37

Technical specifications

Article number Work memory
· integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ. CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs · Number of process alarm OBs · Number of DPV1 alarm OBs · Number of isochronous mode OBs · Number of technology synchronous alarm OBs · Number of startup OBs

6ES7517-3TP00-0AB0
3 Mbyte 8 Mbyte
32 Gbyte
Yes
2 ns 3 ns 3 ns 12 ns
10 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 8 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535 1 Mbyte
0 ... 65 535 1 Mbyte
1 Mbyte 100 20 20 20; With minimum OB 3x cycle of 100 µs 50 3 2 2
100

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

38

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number · Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories
Data blocks · Retentivity adjustable
· Retentivity preset Local data
· per priority class, max. Address area
Number of IO modules

6ES7517-3TP00-0AB0 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
768 kbyte; Available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 700 KB 8 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte Yes No
64 kbyte; max. 16 KB per block
16 384; max. number of modules / submodules

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

39

Technical specifications

Article number I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume)
­ Outputs (volume)
per CM/CP ­ Inputs (volume) ­ Outputs (volume)
Subprocess images · Number of subprocess images, max.
Hardware configuration Number of distributed IO systems
Number of DP masters · integrated · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max.

6ES7517-3TP00-0AB0
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
16 kbyte; 16 KB via the integrated PROFINET IO interface X1, 8 KB via the integrated PROFINET IO interface X2 and via the integrated PROFIBUS DP interface 16 kbyte; 16 KB via the integrated PROFINET IO interface X1, 8 KB via the integrated PROFINET IO interface X2 and via the integrated PROFIBUS DP interface
8 kbyte 8 kbyte
32
64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
1 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

40

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number Operating hours counter
· Number Clock synchronization
· supported · to DP, master · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP
­ MRPD ­ PROFIenergy ­ Prioritized startup

6ES7517-3TP00-0AB0
16
Yes Yes Yes Yes Yes
2 1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 62439-2 Edition 2.0
Yes Yes Yes Yes Yes Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; Requirement: IRT Yes Yes; Max. 32 PROFINET devices

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

41

Technical specifications

Article number ­ Number of connectable IO Devices, max.
­ Of which IO devices with IRT, max.

6ES7517-3TP00-0AB0
512; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
64

­ Number of connectable IO Devices for 512 RT, max.

­ of which in line, max.

512

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 250 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
250 µs to 4 ms

­ for send cycle of 500 µs

500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

Yes

­ MRP

Yes

­ MRPD

Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Shared device

Yes

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

42

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number
­ Number of IO Controllers with shared device, max.

6ES7517-3TP00-0AB0 4

­ Asset management record

Yes; Per user program

2. Interface

Interface types

· Number of ports

1

· integrated switch

No

· RJ 45 (Ethernet)

Yes; X2

Functionality · IP protocol

Yes; IPv4

· PROFINET IO Controller

Yes

· PROFINET IO Device

Yes

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

· Media redundancy

No

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

No

­ MRP

No

­ PROFIenergy

Yes

­ Prioritized startup

No

­ Number of connectable IO Devices, max.
­ Number of connectable IO Devices for RT, max.

128; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
128

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

43

Technical specifications

Article number Update time for RT
­ for send cycle of 1 ms PROFINET IO Device Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ MRPD ­ PROFIenergy ­ Prioritized startup ­ Shared device ­ Number of IO Controllers with shared
device, max. ­ Asset management record 3. Interface Interface types · Number of ports · RS 485 Functionality · PROFIBUS DP master · PROFIBUS DP slave · SIMATIC communication Interface types RJ 45 (Ethernet) · 100 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED RS 485 · Transmission rate, max.

6ES7517-3TP00-0AB0
1 ms to 512 ms
Yes Yes No Yes No No No Yes No Yes 4
Yes; Per user program
1 Yes; X3
Yes No Yes
Yes Yes Yes Yes
12 Mbit/s

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

44

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web
· Number of connections via integrated interfaces
· Number of S7 routing paths
SIMATIC communication · S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
PROFIBUS DP master · Number of connections, max.
Services ­ PG/OP communication ­ S7 routing ­ Data record routing ­ Isochronous mode

6ES7517-3TP00-0AB0
320; via integrated interfaces of the CPU and connected CPs / CMs 10
160
64; in total, only 16 S7-Routing connections are supported via PROFIBUS
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

45

Technical specifications

Article number ­ Equidistance ­ Number of DP slaves
­ Activation/deactivation of DP slaves OPC UA
· Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints

6ES7517-3TP00-0AB0 Yes 125; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 250 µs
Yes
32
Yes 10 000
1 000 200 160
Yes; Parallel online access possible for up to 10 engineering systems Yes; Up to 16 simultaneously (in total across all ES clients) No 20

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

46

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number Status/control
· Status/control variable · Variables
· Number of variables, max. ­ of which status variables, max. ­ of which control variables, max.
Forcing · Forcing, variables · Number of variables, max.
Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof
Traces · Number of configurable Traces
Interrupts/diagnostics/status information Diagnostics indication LED
· RUN/STOP LED · ERROR LED · MAINT LED · Connection display LINK TX/RX Supported technology objects Motion Control
· Number of available Motion Control resources for technology objects (except cam disks)
· Required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per probe

6ES7517-3TP00-0AB0
Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters
200; per job 200; per job
Peripheral inputs/outputs 200
Yes 3 200 1 000
8; Up to 512 KB of data per trace are possible
Yes Yes Yes Yes
Yes; Note: The number of technology objects affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 10 240
40 80 160 80 20 160 40

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

47

Technical specifications

Article number

6ES7517-3TP00-0AB0

· Number of available Extended Motion Con- 256 trol resources for technology objects

· Required Extended Motion Control resources

­ for each cam

2

­ for each set of kinematics

30

· Positioning axis

­ Number of positioning axes at motion 70 control cycle of 4 ms (typical value)

­ Number of positioning axes at motion 128 control cycle of 8 ms (typical value)

Controller · PID_Compact
· PID_3Step
· PID-Temp Counting and measuring · High-speed counter

Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes

Standards, approvals, certificates

Suitable for safety functions

No

Ambient conditions

Ambient temperature during operation

· horizontal installation, min.

0 °C

· horizontal installation, max. · vertical installation, min.

60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off
0 °C

· vertical installation, max.
Ambient temperature during storage/transportation
· min.

40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C

· max.

70 °C

Configuration

Programming

Programming language

­ LAD

Yes

­ FBD

Yes

­ STL

Yes

­ SCL

Yes

­ GRAPH

Yes

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

48

Manual, 12/2017, A5E36285525-AB

Technical specifications

Article number Know-how protection
· User program protection/password protection
· Copy protection
· Block protection Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Dimensions
Width Height Depth Weights Weight, approx.

6ES7517-3TP00-0AB0
Yes
Yes Yes
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
175 mm 147 mm 129 mm
1 978 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP System Manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

49

Dimension drawing

A

A.1

Dimension drawing CPU 1517T-3 PN/DP

This section contains the dimension drawing of the module on the mounting rail, as well as a dimension drawing with the front panel open. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Dimension drawings for CPU 1517-3 PN/DP

Figure A-1 Dimension drawing of the CPU 1517T-3 PN/DP, front and side view

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

50

Manual, 12/2017, A5E36285525-AB

Dimension drawing A.1 Dimension drawing CPU 1517T-3 PN/DP
Figure A-2 Dimension drawing of the CPU 1517T-3 PN/DP, side view with open front panel

CPU 1517T-3 PN/DP (6ES7517-3TP00-0AB0)

Manual, 12/2017, A5E36285525-AB

51

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)
SIMATIC
S7-1500 CPU 1518-4 PN/DP (6ES75184AP00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_Co_n_ne_c_tin_g_up___________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_

_Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E32334527-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32334527-AC  08/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system/ ET 200MP distributed I/O system as well as the function manuals. This manual contains a description of the module-specific information. The system-related functions are described in the system manual. All system-spanning functions are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1518-4 PN/DP.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

4

Manual, 09/2016, A5E32334527-AC

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

New functions in firmware version V2.0................................................................................. 11

2.2

Applications of the S7-1500 CPU .......................................................................................... 14

2.3

How it works ........................................................................................................................... 19

2.4

Properties ............................................................................................................................... 20

2.5 2.5.1 2.5.2 2.5.3

Operating and display elements ............................................................................................ 25 Front view of the module with closed front panels ................................................................. 25 Front view of the module without front panels ....................................................................... 27 Rear view of the module ........................................................................................................ 28

2.6

Mode selector switch ............................................................................................................. 28

3 Connecting up....................................................................................................................................... 29

4 Interrupts, error messages, diagnostics and system alarms................................................................... 34

4.1

Status and error display of the CPU ...................................................................................... 34

5 Technical specifications ........................................................................................................................ 37

A Dimensional drawing............................................................................................................................. 49

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

6

Manual, 09/2016, A5E32334527-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

8

Manual, 09/2016, A5E32334527-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

10

Manual, 09/2016, A5E32334527-AC

Product overview

2

2.1

New functions in firmware version V2.0

New functions of the CPU in firmware version V2.0
This section lists the new features of the CPU with firmware version V2.0. You can find additional information in the sections of this manual.

Table 2- 1 New functions of the CPU with firmware version 2.0 compared with firmware version V1.8

New functions

Applications

Customer benefits

OPC UA server

You realize the data communication between OPC UA is a unified standard for data communi-

different systems, both within the process level cation and is independent of any particular oper-

and on the control and enterprise levels:

ating system platforms.

· To embedded systems with controllers
· To controllers with MES systems and systems of the enterprise level (ERP, asset systems)
· To Siemens controllers with controllers from other manufacturers
· To intelligent sensors with controllers Supported standard: OPC Data Access, DA.

You have integrated security mechanisms on different automation systems, for example, for data exchange, on the application level, for authentication of the user.
OPC UA servers provide a large amount of data:
· Values of PLC tags that clients can access
· Data types of these PLC tags
· Information about the OPC UA server itself and the CPU

In this way, clients can gain an overview and can read and write values.

PROFINET IO

PROFINET IO on the You can operate another PROFINET IO sys-

2nd PROFINET inter- tem on the CPU or connect additional IO de-

face

vices.

You use a fieldbus in the plant.
The CPU can perform fast and deterministic data exchange as an I-device with a higher-level controller (PROFINET/Ethernet) through the second line.

IRT with very short You realize high-end applications with IO

data cycle times down communication which place very high perfor-

to 125 µs

mance demands on the IO processing.

You make PROFINET IO communication and standard communication possible via one cable even with a send clock of 125 µs.

Data cycle of 125 µs: You configure program blocks with the additional "low jitter" property, which provides deterministic runtimes.

MRPD: Media Redundancy for Planned Duplication for IRT

PROFINET IO IRT enables you to realize applications that place particularly high demands on failure safety and accuracy (isochronous).

By sending the cyclic IO data in both directions in the ring, the communication to the IO devices is maintained even when the ring is interrupted and does not result in device failure even with fast update times. You achieve higher failure safety than with MRP.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

11

Product overview 2.1 New functions in firmware version V2.0

New functions

Applications

Customer benefits

PROFINET performance upgrade

You can develop applications with high demands on speed and clock cycles. This is interesting for applications with high demands on performance.

Better utilization of the bandwidth results in short reaction times.

Limitation of the data infeed into the network

You limit the network load for standard Ethernet communication to a maximum value.

You smooth peaks in the data infeed.
You share the remaining bandwidth based on requirements.

Display and Web server

Backing up and restoring via the display
Backing up and restoring via the Web server

You can back up and restore the CPU configu- You can make a backup copy of an operational

ration to/from the SIMATIC memory card with- project without STEP 7.

out a programming device/PC.

In an "emergency", you can simply use an exist-

You can, for example, backup and restore the ing configuration without STEP 7, for example,

configuration of the CPU to the PG/PC on

during commissioning or after a program down-

which the Web server is running.

load.

Display and Web server provide up to three project languages for comments and message texts

When you export your plants worldwide, for example, comments or message texts can be stored on the card in up to 3 languages. For example, German - author's language, English - internationally usable, Portuguese - end user's language.

You provide customers with better service.

Trace via Web server
Monitoring of configured technology objects via a Web server

When you enable trace functions via the Web server, you have better service support. You can send your trace recordings via Web service, for example, to your service partner.
You can monitor statuses, errors, technology alarms and the current values of technology objects (TOs) with the Web server.

You get plant/project information for diagnostics and maintenance requirements without STEP 7.
You can provide trace recordings for each Web server.
You save time in troubleshooting.

Formatting, erasing or converting a SIMATIC memory card via the display

Your SIMATIC memory card is directly formatted, erased or converted to a program card without having to use STEP 7. You save time.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

12

Manual, 09/2016, A5E32334527-AC

Product overview 2.1 New functions in firmware version V2.0

New functions
Motion control
Greater number of axes for Motion Control applications and new technology objects: Output cam, cam track and measuring input

Applications

Customer benefits

Speed specification, e.g. for: · Pumps, fans, mixers · Conveyor belts · Auxiliary drives Positioning tasks, e.g.: · Lifting and vertical conveyors

You can implement additional Motion Control applications with a CPU.
The scalable configuration limits allow you to handle all types of application.
High machine speeds result in greater productivity with better accuracy.

· Feeding and gate control

· Palletizing equipment
Output cams and cam tracks make other applications possible, e.g.:

· Applying glue tracks

· Triggering switching operations with precise positioning

· Very precise processing of products on a conveyor belt
Measuring inputs are used, for example:

· For measuring products

· For detecting the position of the product on a conveyor belt

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

13

Product overview 2.2 Applications of the S7-1500 CPU

2.2

Applications of the S7-1500 CPU

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Applications of the SIMATIC S7-1500, include, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Applications of the SIMATIC S7-1500T include, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

14

Manual, 09/2016, A5E32334527-AC

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 2 Standard CPUs

CPU

Performance segment

CPU 1511-1 PN Standard CPU for small to mid-range applications

CPU 1513-1 PN Standard CPU for midrange applications

CPU 1515-2 PN Standard CPU for midrange to large applications

CPU 1516-3 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 1517-3 PN/DP

Standard CPU for demanding applications and communication tasks

CPU 1518-4 PN/DP
CPU 1518-4 PN/DP ODK

Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
---1
1
1

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

1

--

1

1

1

1

1

1

1

1

PROFINET basic func-
tionality
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

--

1.95 MB 40 ns

--

3.75 MB 30 ns

--

6.5 MB 10 ns

--

11 MB

2 ns

1

26 MB

1 ns

Table 2- 3 Compact CPUs

CPU
CPU 1511C-1 PN CPU 1512C-1 PN

Performance segment
Compact CPU for small to mid-range applications Compact CPU for midrange applications

PROFIBUS interfaces
--
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

1

--

PROFINET basic func-
tionality --
--

Work memor
y
1.175 MB
1.25 M B

Processing time for bit operations
60 ns
48 ns

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

15

Product overview 2.2 Applications of the S7-1500 CPU

Table 2- 4 Fail-safe CPUs

CPU
CPU 1511F-1 PN
CPU 1513F-1 PN CPU 1515F-2 PN
CPU 1516F-3 PN/DP
CPU 1517F-3 PN/DP CPU 1517TF-3 PN/DP

Performance segment
Fail-safe CPU for small to mid-range applications Fail-safe CPU for midrange applications Fail-safe CPU for midrange to large applications Fail-safe CPU for demanding applications and communication tasks Fail-safe CPU for demanding applications and communication tasks

PROFIBUS interfaces
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT inter-
face
--

PROFINET basic func-
tionality
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

--

1

--

--

1.95 MB 40 ns

--

1

1

--

3.75 MB 30 ns

1

1

1

--

6.5 MB 10 ns

1

1

1

--

11 MB

2 ns

CPU 1518F-4 Fail-safe CPU for high-

1

1

1

1

26 MB

1 ns

PN/DP

performance applica-

CPU 1518F-4 PN/DP ODK

tions, demanding communication tasks and very short reaction times

Table 2- 5 Technology CPUs

CPU
CPU 1511T-1 PN
CPU 1515T-2 PN
CPU 1517T-3 PN/DP
CPU 1517TF-3 PN/DP

Performance segment

PROFIBUS PROFINET interfaces IO RT/IRT
interfaces

Technology CPU for

--

1

small to mid-range ap-

plications

Technology CPU for

--

1

mid-range to large appli-

cations

Technology CPU for

1

1

complex applications

and communication

tasks

This CPU is described in the fail-safe CPUs

PROFINET IO RT inter-
face --
1
1

PROFINET basic func-
tionality --
--
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

3.75 MB 30 ns

11 MB

2 ns

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

16

Manual, 09/2016, A5E32334527-AC

Product overview 2.2 Applications of the S7-1500 CPU

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Pulse generators · PWM (pulse-width modulation) · PTO (Pulse Train Output or stepper motor control) · Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 4 (PTOx/PWMx)

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 4 (PTOx/PWMx)

Integrated technological functions
The CPUs of the SIMATIC S7-1500 support motion control functions. STEP 7 offers blocks standardized according to PLCopen for configuring and connecting a drive to the CPU. Motion Control supports speed-controlled, positioning and synchronous axes (synchronizing without specification of the synchronous position) as well as external encoders, cams, cam tracks and measuring inputs.
The CPUs of theSIMATIC S7-1500T support advanced motion control functions in addition to the motion control functions offered by the standard CPUs. Additional motion control functions are absolute synchronous axes (synchronization with specification of synchronous position) and the cam.
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags.
In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.
Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PWM and frequency output). In compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and require no additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Due to the supported technology functions, the CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

17

Product overview 2.2 Applications of the S7-1500 CPU

Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.

Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Errors messages are immediately shown on the display in plain text, thus helping customers to reduce downtimes.
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

18

Manual, 09/2016, A5E32334527-AC

Product overview 2.3 How it works
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different types of diagnostics are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. The diagnostic information is updated automatically when you configure new hardware components.
The CPU is available as a central interrupt server for 3 languages. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

2.3

How it works

Principle of operation
The CPU contains the operating system and executes the user program. The user program is located on the SIMATIC memory card and is processed in the work memory of the CPU.
The connection to the process is centralized or distributed via PROFINET or PROFIBUS with I/O modules.
The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. CPU 1518-4 PN/DP supports operation as an IO controller and I-device.
Similarly to the PROFINET interface, the PROFIBUS interface available on the CPU allows communication with other devices. When you use the interface as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

19

Product overview 2.4 Properties

2.4

Properties

Article number
6ES7518-4AP00-0AB0
View of the module
The following figure shows the CPU 1518-4 PN/DP.

Figure 2-1 CPU 1518-4 PN/DP
Note Protective film Note that a protective film is applied to the display in the delivery state of the CPU. Remove the protective film if necessary.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

20

Manual, 09/2016, A5E32334527-AC

Properties

Product overview 2.4 Properties
CPU 1518-4 PN/DP has the following technical properties:
 Communication:
­ Interfaces
CPU 1518-4 PN/DP has four interfaces. Three interfaces for PROFINET and one for PROFIBUS.
The 1st PROFINET interface (X1 P1, X1 P2) has two ports. In addition to PROFINET basic functionality, it also supports PROFINET IO RT (real-time) and IRT (isochronous real-time). PROFINET IO communication or real-time settings can be configured.
Even with a send clock of 125 µs, IO communication and standard communication is possible via one cable.
Port 1 and port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet.
The 2nd PROFINET interface (X2 P1) has one port. In addition to the basic functionality of PROFINET, it also supports PROFINET IO RT (Real-time). PROFINET basic functionality supports HMI communication, communication with the configuration system, communication with a higher-level network (backbone, router, Internet) and communication with another machine or automation cell.
The 3rd PROFINET interface (X3 P1) has one port and supports PROFINET basic functionality, i.e. no IO controller / IO device role. The basic functionality of PROFINET supports HMI communication, communication with the configuration system, communication with a higher-level network (backbone, router, Internet) and communication with another machine or automation cell. The 3rd PROFINET interface supports a transmission rate of 1000 Mbps as of firmware version V1.7.
Note IP subnets
The IP subnets of the three interfaces must be different. This means that the subnets of the IP addresses of the three interfaces must differ from each other.
The 4th interface (X4) is used to connect to a PROFIBUS network. When you use the interface as PROFIBUS DP interface, the CPU is the DP master in this case. The CPU cannot assume the role of a DP slave.
­ OPC UA With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU, as OPC UA server, can communicate with OPC UA clients such as HMI panels, SCADA systems, etc.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

21

Product overview 2.4 Properties
 Integrated Web server: A Web server is integrated in the CPU. You can read out the following information with the Web server: ­ Start page with general CPU information ­ Identification information ­ Contents of the diagnostics buffer ­ Querying module information ­ Firmware update ­ Alarms (without acknowledgment option) ­ Information about communication ­ PROFINET topology ­ Tag status, writing tags ­ Watch tables ­ Memory usage ­ User pages ­ Data logs (if used) ­ Online backup and restoration of the configuration. ­ Diagnostic information for the motion control technology objects ­ Display of trace recording stored on the SIMATIC memory card ­ Readout service data ­ Basic Web pages ­ Display of the Web server in 3 project languages, for example, comments and message texts ­ Recipes ­ User-defined Web pages

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

22

Manual, 09/2016, A5E32334527-AC

Product overview 2.4 Properties
 Integrated technology:
­ Motion Control
The Motion Control functionality uses technology objects to support speed-controlled axes, positioning axes, synchronous axes, external encoders, cams, cam tracks and measuring inputs, as well as PLCopen blocks for programming the motion control functionality. You can find a detailed description of the use of Motion Control and its configuration in the S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/109739589) function manual. You can also use the TIA Selection Tool (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool) or the SIZER (http://w3.siemens.com/mcms/mc-solutions/en/engineering-software/drive-design-toolsizer/Pages/drive-design-tool-sizer.aspx) to create or configure axes.
­ Integrated closed-loop control functionality
- PID Compact (continuous PID controller)
- PID 3Step (step controller for integrating actuators)
- PID Temp (temperature controller for heating and cooling with two separate actuators)
 Trace functionality:
­ The trace functionality supports troubleshooting and optimization of the user program. You can find additional information on the trace functionality in the Using the Trace and Logic Analyzer (http://support.automation.siemens.com/WW/view/en/64897128) function manual.
 Integrated system diagnostics:
­ The alarms for the system diagnostics are automatically created by the system and displayed on a PG/PC, HMI device, Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

23

Product overview 2.4 Properties

 Integrated security:
­ Know-how protection
The know-how protection protects user blocks against unauthorized access and modifications.
­ Copy protection
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.
­ Access protection
Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.
­ Integrity protection
The system protects the data transferred to the CPU against manipulation. The CPU detects erroneous or manipulated engineering data.
 Additional functions:
­ PROFIenergy You can find information on the topic of "PROFIenergy" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856) and in the PROFINET specification on the Internet (http://www.profibus.com).
­ Shared device You can find information on the topic of "Shared device" in the PROFINET function manual (https://support.industry.siemens.com/cs/ww/en/view/49948856).
­ Configuration control You can find information on the topic of "Configuration control" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
­ Isochronous mode You can find information about the "Isochronous mode" topic in the PROFINET (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Reference

You can find additional information on the topic of "Integrated security/Access protection" in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

24

Manual, 09/2016, A5E32334527-AC

2.5
2.5.1

Operating and display elements

Product overview 2.5 Operating and display elements

Front view of the module with closed front panels
The following figure shows the front view of the CPU 1518-4 PN/DP.

 LEDs for the current operating mode and diagnostics status of the CPU  Front panel with display  Display  Control keys  Front panel of the PROFIBUS interface
Figure 2-2 View of the CPU 1518-4 PN/DP (with front panels) - front
Note Temperature range for display
To increase its service life, the display switches off at a temperature below the permitted operating temperature of the device. When the display cools down, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
You can find additional information on the temperatures at which the display switches itself on and off in the technical specifications (Page 37).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

25

Product overview 2.5 Operating and display elements
Removing and fitting the front panel with display
You can remove and fit the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you remove or fit the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Before you remove or fit the front panel, always switch off the power supply to the S7-1500 automation system in hazardous area zone 2. The CPU maintains its operating mode.
Locking the front panel
You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock) and assign a password for the display. You can find additional information on the display, the configurable protection levels and local locking in the S71500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You can find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

26

Manual, 09/2016, A5E32334527-AC

2.5.2

Product overview 2.5 Operating and display elements
Front view of the module without front panels
The following figure shows the operator controls and connection elements of the CPU 1518-4 PN/DP.

 Mode selector  No function  PROFIBUS interface (X4)  Fixing screws  Connector for power supply  PROFINET IO interface (X3) with 1 port (back interface)  PROFINET IO interface (X2) with 1 port (front interface)  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 4 ports of the PROFINET interfaces X1, X2 and X3  Slot for the SIMATIC memory card  Display connector  LEDs for the current operating mode and diagnostic status of the CPU
Figure 2-4 View of the CPU 1518-4 PN/DP (without front panels) - front

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

27

Product overview 2.6 Mode selector switch

2.5.3

Rear view of the module
The following figure shows the connection elements on the rear of the CPU 1518-4 PN/DP.

2.6

 Shield contact surfaces  Plug-in connection for power supply  Plug-in connection for backplane bus  Fixing screws
Figure 2-5 View of the CPU 1518-4 PN/DP - rear

Mode selector switch
Use the mode switch to set the CPU operating mode. The following table shows the position of the switch and the corresponding meaning.

Table 2- 6
Position RUN STOP MRES

Mode switch settings

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not being executed. Position for CPU memory reset.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

28

Manual, 09/2016, A5E32334527-AC

Connecting up

3

This section provides information on the pin assignment of the individual interfaces and the block diagram of the CPU 1518-4 PN/DP.
24 V DC supply voltage (X80)
The connector for the supply voltage is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

29

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 connector.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interfaces X2 and X3 with 1 port (X2 P1 X3 P1)
The assignment corresponds to the Ethernet standard for an RJ45 connector.  Autocrossing is always active on X2. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).  Autocrossing is always active on X3. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).
Figure 3-2 Interfaces X2 and X3

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

30

Manual, 09/2016, A5E32334527-AC

Connecting up

Note PROFINET interface X3 with a transmission rate of 1000 Mbps
The PROFINET interface X3 supports a maximum transmission rate of 1000 Mbps.
Requirements: · The CPU 1518-4 PN/DP has a firmware version of V1.7 or higher · Devices on the PROFINET segment must support the 1000 Mbps transmission rate. · The network infrastructure (network cables and outlets) must be category CAT 5e or
better. · The "Transmission rate" parameter in the properties of the port (X3) must be set as
follows in STEP 7: ­ The "Autonegotiation" check box is selected ­ "Automatic" is selected in the drop-down list

PROFIBUS interface X4
The table below shows the pin assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface pin assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request to send Data reference potential (from station) Supply plus (from station) Data line A -

Note Supply of I/O devices
CPU 1518-4 PN/DP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovated successor product, PC adapter USB A2, receives the required power supply via the USB port. This means it does not need a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

31

Connecting up

Reference

You can find additional information on the topics of "Wiring the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
CPU 1518-4 PN/DP has three PROFINET interfaces. The first interface is an interface with 2-port switch. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1518-4 PN/DP therefore has seven MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1518-4 PN/DP.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4
MAC address 5 MAC address 6 MAC address 7

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)

· Front and right side, not lasered

Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X2

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X2 P1 (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X3

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X3 P1 (required for LLDP, for example)

· Front, lasered
· Right side, lasered (end of number range)

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

32

Manual, 09/2016, A5E32334527-AC

Connecting up
Block diagram
The following figure shows the block diagram of the CPU 1518-4 PN/DP.



Display



RUN/STOP/MRES mode selector



Electronics



PROFINET 2-port switch



PROFIBUS DP driver



Backplane bus interface



Internal supply voltage

X50

SIMATIC memory card

X80 24 V DC Infeed of supply voltage

PN X1 P1 R PROFINET interface X1 Port 1

PN X1 P2 R PN X2 P1 PN X3 P1 PB X4 L+ M R/S ER MT X1 P1, X1 P2, X2 P1, X3 P1

Figure 3-3 Block diagram of the CPU 1518-4 PN/DP

PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFINET interface X3 Port 1 PROFIBUS interface X4 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

33

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1518-4 PN/DP are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The following figure shows the LED displays of the CPU 1518-4 PN/DP.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X3 P1 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1518-4 PN/DP (without front panel)

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

34

Manual, 09/2016, A5E32334527-AC

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1518-4 PN/DP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED LED off LED off
LED lit green LED lit green LED lit green
LED lit green
LED lit yellow
LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green LED flashes yellow/green

ERROR LED LED off
LED flashes red LED off
LED flashes red LED off
LED off
LED off LED off LED flashes red LED off
LED off LED flashes red

MAINT LED LED off LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.

LED off LED off

CPU is in RUN mode. A diagnostics event is pending.

LED lit yellow
LED flashes yellow
LED flashes yellow
LED off LED flashes yel-
low LED off
LED off

Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective
CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card Startup (transition from RUN  STOP)

LED flashes yellow

Startup (CPU booting)
Test of LEDs during startup, inserting a module.
LED flashing test

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

35

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1518-4 PN/DP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

36

Manual, 09/2016, A5E32334527-AC

Technical specifications

5

General information Product type designation Hardware function version Firmware version Engineering with STEP 7 TIA Portal configurable/integrated as of version Configuration control Via data record Display Screen diagonal (cm) Operator controls Number of buttons Mode selector Supply voltage Type of supply voltage Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Power and voltage failure buffering Power/voltage failure buffer time Input current Current consumption (rated value) Inrush current, max. I²t Power Power consumption from the backplane bus (balanced) Incoming power to the backplane bus Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory integrated (for program) integrated (for data)

6ES7518-4AP00-0AB0
CPU 1518-4 PN/DP FS04 V2.0
V14
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
1.55 A 2.4 A; rated value 0.02 A²s
30 W 12 W
24 W
1 Yes
4 MB 20 MB

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

37

Technical specifications

Load memory Plug-in (SIMATIC memory card), max. Buffering maintenance-free CPU processing times For bit operations, typ. For word operations, typ. For fixed-point arithmetic, typ. For floating-point arithmetic, typ. CPU blocks Number of elements (total) DB Number range
Size, max.
FB Number range Size, max. FC Number range Size, max. OB Size, max. Number of free-cycle OBs Number of time-of-day interrupt OBs Number of time-delay interrupt OBs Number of cyclic interrupt OBs Number of hardware interrupt OBs Number of DPV1 interrupt OBs Number of isochronous mode OBs Number of technology synchronization interrupt OBs Number of startup OBs Number of asynchronous error OBs Number of synchronous error OBs Number of diagnostic interrupt OBs Nesting depth Per priority class

6ES7518-4AP00-0AB0
32 GB
Yes
1 ns 2 ns 2 ns 6 ns
10000; blocks (OB/FB/FC/DB) and UDTs
1 ... 60 999; divided into: Number range that can be used by user: 1 ... 59 999 and number range for DBs generated by SFC 86: 60 000 ... 60 999 16 MB; the maximum size of the DB is 64 KB with non-optimized block access
0 ... 65 535 512 KB
0 ... 65 535 512 KB
512 KB 100 20 20 20; with minimum OB 3x cycle of 100 µs 50 3 2 2
100 4 2 1
24

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

38

Manual, 09/2016, A5E32334527-AC

Technical specifications

Counters, timers and their retentivity S7 counters Quantity Retentivity · can be set IEC counters Quantity Retentivity · can be set S7 timers Quantity Retentivity · can be set IEC timers Quantity Retentivity · can be set Data areas and their retentivity Total retentive data area (including timers, counters, bit memories), max.
Bit memory Number, max. Number of clock memories
Data blocks Retentivity can be set Retentivity preset Local data Per priority class, max. Address area Number of IO modules I/O address area Inputs Outputs of these, per integrated IO subsystem · Inputs (volume)
· Outputs (volume)
of these, per CM/CP · Inputs (volume)
· Outputs (volume)

6ES7518-4AP00-0AB0
2048
Yes
Any (only limited by the work memory)
Yes
2048
Yes
Any (only limited by the work memory)
Yes
768 KB; in total; for bit memories, timers, counters, DBs and technological data (axes), usable retentive memory: 700 KB
16 KB 8; there are 8 clock memory bits, grouped in one clock memory byte
Yes No
64 KB; max. 16 KB per block
16384; max. number of modules/submodules
32 KB; all inputs are in the process image 32 KB; all outputs are in the process image
16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface 16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface
8 KB 8 KB

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

39

Technical specifications

Process image partitions Number of process image partitions, max. Hardware configuration Number of distributed IO systems
Number of DP masters integrated Via CM
Number of IO controllers integrated Via CM
Rack Modules per rack, max. Number of rows, max. PtP CM Number of PtP CMs
Time Clock Type Backup duration Deviation per day, max. Operating hours counter Quantity Time synchronization Supported On DP, master In AS, master In AS, slave On Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1st interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet)

6ES7518-4AP00-0AB0
32
64; a distributed IO system is understood to mean the integration of distributed I/O via PROFINET or PROFIBUS communication modules as well as the connection of I/O via AS-i master modules or links (e.g. IE/PB link)
1 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
The number of PtP CMs that can be connected is only limited by the available slots
Hardware clock 6 wk; at 40 °C ambient temperature, typ. 10 s; typ.: 2 s
16
Yes Yes Yes Yes Yes
3 1
2 Yes Yes; X1

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

40

Manual, 09/2016, A5E32334527-AC

Technical specifications

Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP
· MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· of these, IO devices with IRT, max. · Number of connectable IO devices for RT,
max. · of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times
Update time with IRT · with send clock of 125 µs · with send clock of 187.5 µs · with send clock of 250 µs · with send clock of 500 µs · with send clock of 1 ms · with send clock of 2 ms · with send clock of 4 ms · with IRT and "odd" send clock parameter as-
signment

6ES7518-4AP00-0AB0
Yes Yes Yes Yes Yes Yes
Yes Yes Yes Yes Yes Yes; as MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; requirement: IRT Yes Yes; max. 32 PROFINET devices 512; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 512
512 8; in total over all interfaces
8 Minimum value of update time also depends on the communication allocation setting for PROFINET IO, the number of IO devices and the amount of configured user data
125 µs 187.5 µs 250 µs to 4 ms 500 µs to 8 ms 1 ms to 16 ms 2 ms to 32 ms 4 ms to 64 ms Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs to 3 875 µs)

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

41

Technical specifications

Update time with RT · with send clock of 250 µs
· with send clock of 500 µs
· with send clock of 1 ms
· with send clock of 2 ms
· with send clock of 4 ms PROFINET IO device Services · PG/OP communication
· S7 routing
· Isochronous mode
· Open IE communication
· IRT
· MRP
· MRPD
· PROFIenergy
· Shared device
· Number of IO controllers with shared device, max.
2nd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet) Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy

6ES7518-4AP00-0AB0
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes Yes Yes; requirement: IRT Yes Yes 4
1 No Yes; X2
Yes Yes Yes Yes Yes No

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

42

Manual, 09/2016, A5E32334527-AC

Technical specifications

PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· Number of connectable IO devices for RT, max.
· of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Update times
Update time with RT · with send clock of 1 ms PROFINET IO device Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Shared device · Number of IO controllers with shared device,
max.

6ES7518-4AP00-0AB0
Yes Yes No Yes No No No Yes No 128; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 128
128 8; in total over all interfaces
Minimum value of update time also depends on the communication allocation setting for PROFINET IO, the number of IO devices and the amount of configured user data
1 ms to 512 ms
Yes Yes No Yes No No No Yes No Yes 4

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

43

Technical specifications

3rd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet) Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server 4th interface Interface hardware Number of ports RS 485 Protocols PROFIBUS DP master PROFIBUS DP slave SIMATIC communication Interface hardware RJ45 (Ethernet) 100 Mbps 1000 Mbps
Autonegotiation Autocrossing Industrial Ethernet status LED RS 485 Transmission rate, max. Protocols Number of connections Number of connections, max.
Number of connections reserved for ES/HMI/Web Number of connections via integrated interfaces Number of S7 routing connections
SIMATIC communication S7 communication, as server S7 communication, as client User data per job, max.

6ES7518-4AP00-0AB0
1 No Yes; X3
No No Yes Yes Yes
1 Yes; X4
Yes No Yes
Yes Yes; only possible on the X3 interface of CPU 1518 Yes Yes Yes
12 Mbps
384; via integrated interfaces of the CPU and connected CPs/CMs 10 192 64; in total, only 16 S7 routing connections are supported via PROFIBUS
Yes Yes See online help (S7 communication, user data size)

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

44

Manual, 09/2016, A5E32334527-AC

Technical specifications

Open IE communication TCP/IP · Data length, max. · Multiple passive connections per port, sup-
ported ISO-on-TCP (RFC1006) · Data length, max. UDP · Data length, max. DHCP SNMP DCP LLDP Web server HTTP HTTPS PROFIBUS DP master Number of connections, max. Services · PG/OP communication · S7 routing · Data record routing · Isochronous mode · Constant bus cycle time · Number of DP slaves
· Activation/deactivation of DP slaves OPC UA OPC UA server
· Application authentication · Security Policies
· User authentication Additional protocols MODBUS Media redundancy Switchover time in the case of cable break, typ. Number of devices in the ring, max.

Yes 64 KB
Yes

6ES7518-4AP00-0AB0

Yes 64 KB Yes 1472 bytes No Yes Yes Yes
Yes; standard and user-defined sites Yes; standard and user-defined sites
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

Yes; Data Access (Read, Write, Subscribe), Runtime license required Yes
Available Security Policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "Anonymous" or with user name and password

Yes; MODBUS TCP
200 ms; with MRP; bumpless with MRPD 50

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

45

Technical specifications

6ES7518-4AP00-0AB0

Isochronous mode

Isochronous mode (application synchronized up to Yes; with minimum OB 6x cycle of 125 µs terminal)

Constant bus cycle time

Yes

S7 signaling functions

Number of stations that can be logged in for sig- 32 naling functions, max.

Block-related alarms

Yes

Number of configurable interrupts, max.

10000

Number of simultaneously active interrupts in interrupt pool

· Number of reserved user interrupts

1000

· Number of reserved interrupts for system di- 200 agnostics

· Number of reserved interrupts for motion con- 160 trol technology objects

Test/commissioning functions Shared commissioning (Team Engineering)
Status block
Single-step Status/modify Status/modify tag Tags
Number of tags, max. · of these, status tags, max.

Yes; parallel online access possible for up to 10 engineering systems Yes; up to 16 simultaneously (in total over all ES clients) No
Yes Inputs/outputs, bit memory, DB, peripheral inputs/outputs, timers, counters
200; per job

· of these, modify tags, max.

200; per job

Forcing Forcing, tags Number of tags, max. Diagnostic buffer Available Number of entries, max.
· of these, protected against power failure

Peripheral inputs/outputs 200
Yes 3200 1000

Traces Number of configurable traces Interrupts/diagnostics/status information Diagnostics display LED RUN/STOP LED ERROR LED MAINT LED Connection display LINK TX/RX

8; up to 512 KB data possible per trace
Yes Yes Yes Yes

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

46

Manual, 09/2016, A5E32334527-AC

Technical specifications

Supported technology objects Motion control
· Number of available motion control resources for technology objects (except cams)
· required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per measuring input
Controller · PID_Compact
· PID_3Step
· PID temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max.
Vertical mounting position, min. Vertical mounting position, max.
Ambient temperature during storage/transport Min. Max.

6ES7518-4AP00-0AB0
Yes; note: the number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 10240
40 80 160 80 20 160 40
Yes; universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 ; display: 50 , the display is switched off at an operating temperature of typically 50  0 °C 40 ; display: 40 , the display is switched off at an operating temperature of typically 40 
-40 °C 70 °C

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

47

Technical specifications

Configuring Programming Programming language · LAD
· FBD
· STL
· SCL
· GRAPH
Know-how protection User program protection Copy protection Block protection Access protection Password for display Protection level: Write protection Protection level: Read/write protection Protection level: Complete protection Cycle time monitoring Low limit High limit Dimensions Width Height Depth Weights Weight, approx.

6ES7518-4AP00-0AB0
Yes Yes Yes Yes Yes
Yes Yes Yes
Yes Yes Yes Yes
Configurable minimum cycle time Configurable maximum cycle time
175 mm 147 mm 129 mm
1988 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

48

Manual, 09/2016, A5E32334527-AC

Dimensional drawing

A

This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.
Dimensional drawings for CPU 1518-4 PN/DP

Figure A-1 Dimensional drawing of CPU 1518-4 PN/DP, front and side views

Figure A-2 Dimensional drawing CPU 1518-4 PN/DP, side view with open front panel

CPU 1518-4 PN/DP (6ES7518-4AP00-0AB0)

Manual, 09/2016, A5E32334527-AC

49

SIMATIC
S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_Co_n_ne_c_tin_g_up___________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

_Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_

_Di_m_en_si_on_a_l d_ra_w_in_g _______A_

12/2017
A5E40882737-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E40882737-AA  12/2017 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system and the function manuals. All cross-system functions are described in the system manual and in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1518-4 PN/DP MFP.

Basic knowledge required
To understand this documentation, you need to have general knowledge of automation engineering. You also need basic knowledge of the following topics:  Knowledge of the industrial automation system SIMATIC  Knowledge of working with STEP 7  Knowledge of working with Linux systems  Knowledge of programming with C/C++  Working with the Eclipse development environment

Conventions

 STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
 ODK: Open Development Kit  SO: Shared Object  MFP: Multifunctional platform
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

4

Manual, 12/2017, A5E40882737-AA

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity). Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:  Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.  Application examples Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.  Services Information about Industry Services, Field Services, Technical Support, spare parts and training offers.  Forums For answers and solutions concerning automation technology.  mySupport Your personal working area in Industry Online Support for messages, support queries, and configurable documents. This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

5

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

6

Manual, 12/2017, A5E40882737-AA

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 8

2 Product overview .................................................................................................................................. 12

2.1

Applications of the S7-1500 CPUs .........................................................................................12

2.2

Hardware properties ...............................................................................................................21

2.3 2.3.1 2.3.2

Firmware functions..................................................................................................................23 Quick start instructions for commissioning C/C++ Runtime ...................................................28 Supplied libraries for C/C++ Runtime .....................................................................................31

2.4 2.4.1 2.4.2 2.4.3

Operating and display elements .............................................................................................32 Front view of the CPU with the front panel .............................................................................32 Front view of the CPU without front panel ..............................................................................34 Rear view of the CPU .............................................................................................................35

2.5

Mode selector switch ..............................................................................................................35

3 Connecting up....................................................................................................................................... 36

4 Interrupts, error messages, diagnostics and system alarms................................................................... 42

4.1

Status and error display of the CPU .......................................................................................42

5 Technical specifications ........................................................................................................................ 45

A Dimensional drawing............................................................................................................................. 59

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

7

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

8

Manual, 12/2017, A5E40882737-AA

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

9

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

10

Manual, 12/2017, A5E40882737-AA

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

11

Product overview

2

2.1

Applications of the S7-1500 CPUs

Application

SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Application areas of the SIMATIC S7-1500 are, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Application areas of the SIMATIC S7-1500T are, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

12

Manual, 12/2017, A5E40882737-AA

Product overview 2.1 Applications of the S7-1500 CPUs

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU
CPU 1511-1 PN
CPU 1513-1 PN
CPU 1515-2 PN
CPU 1516-3 PN/DP
CPU 1517-3 PN/DP
CPU 1518-4 PN/DP CPU 1518-4 PN/DP MFP

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

Basic PROFINET functionality

Standard CPU for small to

--

1

--

--

mid-range applications

Standard CPU for mid-

--

1

--

--

range applications

Standard CPU for small to

--

1

1

--

mid-range applications

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-end

1

1

1

--

applications and communi-

cation tasks

Standard CPU for high-

1

1

1

1

performance applications,

demanding communication

tasks and very short reac-

tion times

Work memory 1.15 MB

Processing time for bit operations 60 ns

1.8 MB

40 ns

3.5 MB

30 ns

6 MB

10 ns

10 MB

2 ns

24 MB

1 ns

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

13

Product overview 2.1 Applications of the S7-1500 CPUs

Table 2- 2 Compact CPUs

CPU

Performance segment

CPU 1511C-1 PN CPU 1512C-1 PN

Compact CPU for small to mid-range applications
Compact CPU for midrange applications

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

Basic PROFINET functionality

--

1

--

--

--

1

--

--

Work memory 1.175 MB

Processing time for bit operations 60 ns

1.25 MB

48 ns

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

Basic PROFINET functionality

CPU 1511F-1 PN Fail-safe CPU for smaller

--

1

--

--

to medium-sized applica-

tions

CPU 1511TF-1 Fail-safe technology CPU

--

1

--

--

PN

for small to mid-range

applications

CPU 1513F-1 PN Fail-safe CPU for medium-

--

1

--

--

sized applications

CPU 1515F-2 PN Fail-safe CPU for medium-

--

1

1

--

sized to large applications

CPU 1515TF-2 Fail-safe technology CPU

--

1

1

--

PN

for complex applications

and communication tasks

CPU 1516F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munications tasks

CPU 1516TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for complex applications

and communication tasks

CPU 1517F-3

Fail-safe CPU for demand-

1

1

1

--

PN/DP

ing applications and com-

munications tasks

CPU 1517TF-3 Fail-safe technology CPU

1

1

1

--

PN/DP

for complex applications

and communication tasks

CPU 1518F-4

Fail-safe CPU for high-

1

1

1

1

PN/DP

performance applications,

CPU 1518F-4 PN/DP MFP

demanding communication tasks and very short reaction times

Work memory 1.225 MB

Processing time for bit operations 60 ns

1.225 MB

60 ns

1.95 MB 3.75 MB 3.75 MB

40 ns 30 ns 30 ns

6.5 MB

10 ns

6.5 MB

10 ns

11 MB

2 ns

11 MB

2 ns

26 MB

1 ns

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

14

Manual, 12/2017, A5E40882737-AA

Product overview 2.1 Applications of the S7-1500 CPUs

Table 2- 4 Technology CPUs

CPU

Performance segment

PROFIBUS interfaces

PROFINET IO RT/IRT interfaces

PROFINET IO RT
interface

Basic PROFINET functionality

CPU 1511T-1 PN Technology CPU for small

--

1

--

--

to mid-range applications

CPU 1515T-2 PN Technology CPU for mid-

--

1

1

--

range to large applications

CPU 1516T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1517T-3

Technology CPU for high-

1

1

1

--

PN/DP

end applications and

communication tasks

CPU 1511TF-1 PN

These CPUs are described in the fail-safe CPUs (see table Fail-safe CPUs)

CPU 1515TF-2 PN

CPU 1516TF-3 PN/DP

CPU 1517TF-3 PN/DP

Work memory 1.225 MB

Processing time for bit operations 60 ns

3.75 MB

30 ns

6.5 MB

10 ns

11 MB

2 ns

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

15

Product overview 2.1 Applications of the S7-1500 CPUs
Performance segment of the CPU 1518-4 PN/DP MFP
The CPU can be used for the high-end area of machine and plant automation. CPU 1518-4 PN/DP MFP can execute both STEP 7 blocks of the "usual" user program, as well as blocks and applications that have been programmed with C/C++. The multifunctional platform enables you to execute C/C++ code synchronously in the CPU cycle (through the CPU function library). In addition, the multifunctional platform can run C/C++ applications as separate applications parallel to CPU Runtime.

Figure 2-1 Overview of the performance segment
You create the C/C++ blocks (CPU function library for CPU Runtime) and C/C++ Runtime applications with the "ODK 1500S Open Development Kit" (ODK).
Employing the ODK enables you to use mechanisms from high-level programming languages (e.g. object-based) within a modern programming environment.
With ODK, you program:
 Blocks in C/C++ that can be run synchronously in the execution cycle of the CPU (CPU function library for CPU Runtime)
 C/C++ Runtime applications running in SIMATIC S7-1500 MFP C/C++ Runtime, independent of the STEP 7 user program

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

16

Manual, 12/2017, A5E40882737-AA

Product overview 2.1 Applications of the S7-1500 CPUs

You can use C/C++ Runtime applications to implement parallel processes to the STEP 7 user program, for example, for pre-processing or transmitting data via Industrial Ethernet. A CPU can simultaneously perform more tasks, the complexity of functions is reduced and the time required for implementation decreased.
You can reuse existing C/C++ algorithms. In order to continue using existing technological know-how, you can integrate the existing C/C++ code via the Open Development Kit:
 In the runtime environment of the CPU or
 As C/C++ Runtime applications in SIMATIC S7-1500 MFP C/C++ Runtime
Once you integrate the C/C++ sources, you can execute them on the CPU.
You can find a description of the Open Development Kit in the S7-1500 Programming and Operating Manual Open Development Kit 1500S, as of V2.5 Edition 12/2017. The sections that describe the CPU function library for CPU Runtime and die C/C++ Runtime applications apply to CPU 1518-4 PN/DP MFP.
CPU 1518-4 PN/DP MFP has additional memory for C/C++ code and data:
Work memory for:
 The STEP 7 user program
 The CPU function library for CPU Runtime
 C/C++ Runtime applications
Load memory for:
 The STEP 7 user program including CPU function library for CPU Runtime
 C/C++ Runtime applications

Performance segments of compact CPUs
The compact CPUs can be used for smaller to mid-range applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Frequency meter Period duration measurement Pulse width modulation (PWM output)
Pulse Train Output (PTO output) Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 6 (max. 100 kHz)
6 channels
max. 4 (up to 100 kHz) max. 4 (up to 100 kHz)
up to 100 kHz

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 6 (max. 100 kHz)
6 channels
max. 4 (up to 100 kHz) max. 4 (up to 100 kHz)
up to 100 kHz

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

17

Product overview 2.1 Applications of the S7-1500 CPUs
Integrated Motion Control technology functions
All CPUs of SIMATIC S7-1500 support Motion Control technology functions. STEP 7 offers Motion Control instructions standardized according to PLCopen for configuring and connecting a drive to the CPU. S7-1500 Motion Control supports the following technology objects:  Speed-controlled axis  Positioning axis  Synchronous axis  External encoders  Output cam  Cam track  Measuring input The technology CPUs of the SIMATIC S7-1500 offer enhanced Motion Control functions:  Advanced synchronization functions
­ Synchronization with specification of synchronous position ­ Actual value coupling ­ Shifting of the master value at following axis ­ Camming  Up to 4 encoders or measuring systems as actual position for position control The technology CPUs of the SIMATIC S7-1500 additionally support the following technology objects: ­ Cam ­ Kinematics  Cam  Kinematics  Control of kinematics, such as ­ Cartesian portals ­ Role picker ­ Delta picker ­ SCARA Due to the supported technology functions, the S7-1500T CPUs are suitable for controlling packaging machines, converting applications, assembly automation, etc.
Additional integrated technology functions
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags. In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

18

Manual, 12/2017, A5E40882737-AA

Product overview 2.1 Applications of the S7-1500 CPUs
Other technology functions
Technology modules also implement functions such as high-speed counting, position detection, measuring functions and pulse generators (PTO, PWM and frequency output). For compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and can be implemented without additional technology modules. SIWAREX is a versatile and flexible weighing module which you can use as a static scale for operation.
Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks. Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU. In addition, you can assign various access rights to different user groups in the controller using four different authorization levels. Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller. The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally. These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications. The fail-safe CPUs are certified for use in safety mode up to:  Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010  Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to
EN ISO 13849-1:2008 Additional password protection for F-configuration and F-program is set up for IT security.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

19

Product overview 2.1 Applications of the S7-1500 CPUs
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Errors messages are immediately shown on the display in plain text. When performing servicing, you can minimize plant downtimes by quickly accessing the diagnostics messages. You can find detailed information on these and all other options for the display in the SIMATIC S71500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactivemanuals/getting-started_simatic-s7-1500/disp_tool/start_en.html).
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different diagnostic types are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. An automatic update of the diagnostics information is performed when you configure new hardware components.
The CPU is available as a central interrupt server in up to three project languages. The HMI takes over the display in the project languages defined for the CPU. If you require alarm texts in additional languages, you can load them into your HMI via the configured connection. The CPU, STEP 7 and your HMI ensure data consistency without additional engineering steps. The maintenance work is easier.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

20

Manual, 12/2017, A5E40882737-AA

2.2

Hardware properties

Article number
6ES7518-4AX00-1AB0

View of the module
The figure below shows the CPU 1518-4 PN/DP MFP.

Product overview 2.2 Hardware properties

Figure 2-2 CPU 1518-4 PN/DP MFP
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

21

Product overview 2.2 Hardware properties

Properties

CPU 1518-4 PN/DP MFP has the following properties:

Property CPU display

Description
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides information on order numbers, firmware version and serial numbers of all connected modules. In addition, you can set the IP address of the CPU and make additional network settings. The display shows error messages directly as plain text.

Additional information
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)
· SIMATIC S7-1500 Display Simulator (http://www.automation.siemens. com/salesmaterial-as/interactivemanuals/getting-started_simatics7-1500/disp_tool/start_en.html)

Supply voltage

The 24 V DC supply voltage is fed via a 4-pin plug located on the front of the CPU.

· Section Connecting up (Page 36)
· S7-1500, ET 200MP system manual (http://support.automation.sieme ns.com/WW/view/en/59191792)

PROFIBUS DP

PROFIBUS interface (X4) The interface is used for connecting to a PROFIBUS network.

Operation of the CPU as a In the role as a DP master, the CPU responds to the

DP master

connected DP slaves. It is not possible for the CPU to

take the role of a DP slave.

PROFIBUS function manual (https://support.industry.siemens.co m/cs/ww/en/view/59193579)

PROFINET IO

PROFINET interface (X1 P1 R and X1 P2 R)

The interface has two ports. In addition to basic

PROFINET function manual

PROFINET functionality, it also supports PROFINET IO (http://support.automation.siemens.c

RT (real time) and IRT (isochronous real time).

om/WW/view/en/68039307)

PROFINET interface (X2 P1)

The interface has one port. In addition to basic PROFINET functionality, it also supports PROFINET IO RT (real time).

PROFINET interface (X3 P1)

The interface is used to:
· Link development tools for C/C++ applications · Connect the TIA portal to the development of
STEP 7 applications

S7-1500 ODK 1500S manual (https://support.industry.siemens.co m/cs/ww/en/view/109249838)

· Communicate to the "outside world" from C/C++ Runtime

· Communicate internally between C/C++ and CPU Runtime (via virtual network)

Operation of the CPU as · IO controller · I-device

· IO controller: As an IO controller, the CPU addresses the connected IO devices

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/68039307)

· I-device As an I-device (intelligent IO device), the CPU is assigned to a higher-level IO controller and is used as an intelligent pre-processing unit for subroutines

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

22

Manual, 12/2017, A5E40882737-AA

Product overview 2.3 Firmware functions

2.3

Firmware functions

Functions

CPU 1518-4 PN/DP MFP supports the following functions:

Function C/C++ applications
Integrated system diagnostics Integrated web server

Description

Additional information

CPU 1518-4 PN/DPMFP can execute both STEP 7 blocks as well as blocks and applications programmed with C/C++, C#, VB.Net (CPU function library) in the user program.
The multifunctional platform enables you to execute C/C++ code (CPU function library for the real-time environment) synchronously in the CPU cycle.
The CPU function library can continue to be used asynchronously in the CPU cycle for Windows environments (C/C++, C#, VB.Net).

S7-1500 Open Development Kit 1500S programming and operating manual (https://support.industry.siemens.co m/cs/ww/en/view/109741218)
SIMATIC S7-1500 Target 1500S for Simulink programming manual (https://support.industry.siemens.co m/cs/ww/en/view/109741754)

In addition, the multifunctional platform can run C/C++ applications (C/C++ Runtime Application) parallel to the CPU cycle.

You create the CPU function library for the realtime and Windows environment, as well as C/C++ Runtime Applications with the "ODK 1500S Open Development Kit" (ODK).

Employing the ODK enables you to use mechanisms from high-level programming languages (e.g. objectbased) within a modern programming environment.

You can use Target 1500S for Simulink and ODK 1500S to create C/C++ code for the realtime environment for your complex open and closed-loop algorithms.

The system automatically generates the alarms for system diagnostics and outputs the alarms via a programming device/PC, HMI device, the web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (http://support.automation.siemens.c om/WW/view/en/59191792)

The web server allows you to access CPU data over a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7; only a web browser is required. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

· Web server function manual (http://support.automation.sieme ns.com/WW/view/en/59193560)
· Security for SIMATIC S7 Controllers system manual (https://support.industry.siemens. com/cs/ww/en/view/90885010)

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

23

Product overview 2.3 Firmware functions

Function Integrated trace functionality
OPC UA
Configuration control
PROFINET IO RT (real time) IRT (isochronous real time)
Isochronous mode

Description

Additional information

The trace functionality supports the troubleshooting and/or optimization of the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.

Function manual for trace and logic analyzer function (http://support.automation.siemens.c om/WW/view/en/64897128)

The device saves the traces. If necessary, you can read the traces with the configuration system (ES) and save them permanently. Thus, the trace and logic analyzer function is suitable for monitoring highly dynamic processes.

The trace recording can also be displayed via the web server.

With OPC UA, you can exchange data via an open and manufacturer-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU acting as the OPC UA server can communicate with OPC UA clients.

Communication function manual (https://support.industry.siemens.co m/cs/de/de/view/59192925/en)

The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

Configuration control allows you to operate different

S7-1500, ET 200MP system manual

real hardware configurations by configuring a maximum (http://support.automation.siemens.c

configuration of the S7-1500/ET 200MP distributed I/O om/WW/view/en/59191792)

system. This means you have the option to oper-

ate/configure different configuration variants of a ma-

chine with a single project.

RT prioritizes PROFINET IO message frames over standard message frames. This ensures the required determinism in the automation technology. The data is transferred via prioritized Ethernet frames.

PROFINET function manual (http://support.automation.siemens.c om/WW/view/en/49948856)

A reserved bandwidth is available within the send clock for the IRT data. The reserved bandwidth guarantees that the IRT data can also be transmitted unaffected by a high network load (for example, TCP/IP communication or additional real-time communication) in reserved, synchronized intervals. IRT enables update times to be achieved with the highest deterministics. IRT makes isochronous applications possible.

The clock synchronization system characteristic acquires measured values and process data and processes the signals within a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Clock synchronization reduces possible fluctuations of the process reaction times to a minimum. Time-assured processing enables higher machine clocks to be achieve.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

24

Manual, 12/2017, A5E40882737-AA

Function MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device
PROFIenergy

Description
The Media Redundancy Protocol makes it possible to build redundant networks. Redundant transmission paths (ring topology) ensure that an alternative communication path is made available if one transmission path fails. PROFINET devices that are part of this redundant network form an MRP domain.
RT mode is possible when using MRP.
The MRP extension, MRPD, has the advantage that if a device or a line in the ring fails, all other devices are continuously supplied with IO data without interruption and with fast update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.
The "Shared device" function allows you to distribute the modules or submodules of an IO device to different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. Therefore, if sensors close in distance to one another have to supply data to different IO controllers, several IO devices are required. The "Shared device" function allows you to distribute the modules or submodules of an IO device to different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules lying near one other in one IO device.
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Product overview 2.3 Firmware functions
Additional information

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

25

Product overview 2.3 Firmware functions

Function Integrated technology Motion control
Integrated closed-loop control functionality

Description

Additional information

The CPUs support the standard Motion Control func- S7-1500 Motion Control function

tions via the technology objects speed axes, positioning manual

axes, synchronous axes, external encoders, cams, cam (http://support.automation.siemens.c

tracks and measuring inputs.

om/WW/view/en/109749262)

· Speed-controlled axis for controlling a drive with speed specification

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis to interconnect with a master value. The axis follows the synchronous operation of the position of the leading axis

· External encoder for detecting the actual position of an encoder and its use as a master value for synchronous operation
· Cams, cam track for position-dependent generation of switching signals
· Measuring input for fast, accurate and eventdependent sensing of actual positions

· PID Compact (continuous PID controller)

PID Control function manual

·

PID 3Step (step controller for integrating actuators)

(https://support.industry.siemens.co m/cs/ww/en/view/108210036)

· PID Temp (temperature controller for heating and

cooling with two separate actuators)

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

26

Manual, 12/2017, A5E40882737-AA

Product overview 2.3 Firmware functions

Function Integrated safety Know-how protection Copy protection
Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.

S7-1500, ET 200MP system manual (http://support.automation.siemens.c om/WW/view/en/59191792)

You can assign separate rights to different users via authorization levels.

The CPUs have integrity protection by default. Integrity protection detects possible manipulation of engineering data on the SIMATIC memory card or during the data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulation of engineering data.

If integrity protection detects manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password entry, you can link a password provider to STEP 7. A password provider provides the following advantages:

· Convenient handling of passwords. STEP 7 automatically reads in the password for the blocks. This saves you time.

· Optimal block protection, since the users do not know the password themselves.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

27

Product overview 2.3 Firmware functions

2.3.1

Quick start instructions for commissioning C/C++ Runtime
Note Commissioning C/C++ Runtime You require experience in working with Linux systems to commission C/C++ Runtime.

Two IP addresses of the PROFINET interface X3 P1 PROFINET interface X3 P1 is used to:  Link development tools for C/C++ Runtime applications  Connect the TIA portal  Develop STEP 7 applications  Communicate from C/C++ Runtime  Communicate internally between C/C++ and CPU Runtime (via virtual network) The PROFINET interface X3 P1 is split internally for CPU Runtime and C/C++ Runtime. Therefore, there is one IP address for the CPU and one IP address for C/C++ Runtime.  Set the IP address of the CPU in STEP 7. You can find additional information in the
online help for STEP 7.  Set the IP address of C/C++ Runtime via C/C++ Runtime (see section "Initial
commissioning").

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

28

Manual, 12/2017, A5E40882737-AA

Product overview 2.3 Firmware functions
Note the following restrictions when configuring the PROFINET interface X3 P1 with STEP 7:  If you disable the option "Activate this port for use" in the port options in STEP 7, the
PROFINET interface X3 P1 is disabled for the CPU and for internal communication with C/C++ Runtime.  The configuration of the "Transmission rate/duplex" has no effect on the connection to the PROFINET interface X3 P1 and C/C++ Runtime.  The "Monitor" option is not supported.  Topology configuration is not supported.

Figure 2-3 Port options in STEP 7
Initial commissioning
Minimum requirement SIMATIC memory card with a capacity of at least 2 GB.
Procedure To commission C/C++ Runtime for the first time, proceed as follows: 1. Connection setup via Secure Shell (SSH):
­ The default IP address of C/C++ Runtime is 192.168.15.18. DHCP is disabled. ­ The default user name is "root". ­ The individual default password can be found in the display under "Overview > MFP >
Default Password:". Change the default password when you log on for the first time. 2. Change the IP address or configure DHCP using the "network.sh" script in the "/etc/mfp/etc" directory. 3. Transfer the C/C++ Runtime application to C/C++ Runtime. You can find additional information in the ODK manual (https://support.industry.siemens.com/cs/ww/en/view/109249838).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

29

Product overview 2.3 Firmware functions
Mass storage concept
Keep in mind the following information on the memory locations on the SIMATIC memory card:  The following C/C++ Runtime containers are located in the "/CppEnv1.MFP" directory on
the SIMATIC memory card and are mounted in the file system in Linux as described: ­ System.img (6 MB)  mount point: "/etc/mfp" (system files) ­ User.img (50 MB)  mount point: "/home" (home directory of the user, for
C/C++ Runtime application, for example) ­ Data.img (200 MB)  mount point: "/var/userdata" (e.g. log data)  RAM disk (max. 256 MB)  mount point: "/var/volatile" You can find all the information needed for creating C/C++ Runtime applications in the ODK manual (https://support.industry.siemens.com/cs/ww/en/view/109249838)
Work memory for C/C++ Runtime
The RAM is 1 GB including the RAM disk.
Performing bulk operations
To use the same C/C++ Runtime application for other CPUs, transfer the C/C++ Runtime application to the home directory. The home directory is located in the "User.img" file on the SIMATIC memory card. To use the C/C++ Runtime application on other CPUs, copy the "User.img" file to the corresponding SIMATIC memory cards.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

30

Manual, 12/2017, A5E40882737-AA

Product overview 2.3 Firmware functions
Special features
Note Initial startup with an empty SIMATIC memory card When the CPU starts for the first time with an empty SIMATIC memory card, the card is prepared for use with C/C++ Runtime. This process takes up to three minutes. Do not turn off the CPU during this phase; the STOP LED flashes.
Note Corrupt C/C++ Runtime container If the C/C++ Runtime containers are damaged or lost when the CPU is switched off, a diagnostic entry is created in the diagnostic buffer of the CPU the next time the CPU is started up. C/C++ Runtime is not available and the ERROR LED flashes. To remedy this, copy a backup copy of the C/C++ Runtime container to the SIMATIC memory card.
Note Affecting the performance of the CPU Applications, such as mass memory accesses to the SIMATIC memory card, can affect the performance of the CPU on the C/C++ Runtime page depending on the type of programming.

2.3.2

Supplied libraries for C/C++ Runtime

glibc

: 2.24
The GNU C Library project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. These libraries provide critical APIs including ISO C11, POSIX.1-2008, BSD, OS-specific APIs and more. These APIs include such foundational facilities as open, read, write, malloc, printf, getaddrinfo, dlopen, pthread_create, crypt, login, exit and more.

libstdc++

: 6.2.0
The GNU Standard C++ Library is an ongoing project to implement the ISO 14882 Standard C++ library as described in clauses 17 through 30 and annex D.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

31

Product overview 2.4 Operating and display elements

2.4

Operating and display elements

2.4.1

Front view of the CPU with the front panel
The following figure shows the front view of the CPU 1518-4 PN/DP MFP.

 LEDs for the current operating mode and diagnostic status of the CPU  Front panel with display  Display  Operator control buttons  Front panel of the PROFIBUS interface
Figure 2-4 View of the CPU 1518-4 PN/DP MFP (with front panels) ­ front
Note Temperature range for display
To increase the service life of the display, the display switches itself off when the permitted operating temperature is exceeded. When the display cools down again, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 45).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

32

Manual, 12/2017, A5E40882737-AA

Product overview 2.4 Operating and display elements
Pulling and plugging the front panel with display
You can pull and plug the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you pull or plug the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Always disconnect the S7-1500 automation system from the power supply before you pull or plug the front panel in zone 2 hazardous areas. The CPU retains its operating mode.
Locking the front panel
You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-5 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock). You can find additional information on the display, configurable protection levels and local locks in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

33

Product overview 2.4 Operating and display elements

2.4.2

Front view of the CPU without front panel
The figure below shows the operator controls and connection elements of the CPU 1518-4 PN/DP MFP.

 Mode selector  No function  PROFIBUS interface (X4)  Fixing screws  Connector for power supply  PROFINET IO interface (X3) with 1 port (back interface)  PROFINET IO interface (X2) with 1 port (front interface)  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 4 ports of the PROFINET interfaces X1, X2 and X3  Slot for the SIMATIC memory card  Display connector  LEDs for the current operating mode and diagnostic status of the CPU
Figure 2-6 View of the CPU 1518-4 PN/DP MFP (without front panels) ­ front

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

34

Manual, 12/2017, A5E40882737-AA

2.4.3

Product overview 2.5 Mode selector switch
Rear view of the CPU
The following figure shows the connection elements on the rear of the CPU 1518-4 PN/DP MFP.

2.5

 Shield contact surfaces  Backplane bus connector  Fixing screws
Figure 2-7 View of the CPU 1518-4 PN/DP MFP ­ rear

Mode selector switch
Use the mode switch to set the CPU operating mode. The following table shows the position of the switch and the corresponding meaning.

Table 2- 5 Mode switch settings

Position RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not being executed. Position for CPU memory reset.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

35

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1518-4 PN/DP MFP.
24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

36

Manual, 12/2017, A5E40882737-AA

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

37

Connecting up
PROFINET interface X2 and X3 with 1 port (X2 P1, X3 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  Autocrossing is always active on X2. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).  Autocrossing is always active on X3. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).
Figure 3-2 Interfaces X2 and X3
Note PROFINET interface X3 with a transmission rate of 1000 Mbps The PROFINET interface X3 supports a maximum transmission rate of 1000 Mbps. Requirements: · Devices on the PROFINET segment must support the 1000 Mbps transmission rate. · The network infrastructure (network cables and outlets) must be category CAT 5e or
higher. · The "Transmission rate" parameter in the properties of the port (X3) must be set as
follows in STEP 7: ­ The "Autonegotiation" check box is selected ­ "Automatic" is selected in the drop-down list

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

38

Manual, 12/2017, A5E40882737-AA

Connecting up

PROFIBUS interface X4
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface terminal assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

Note
Supply of I/O devices
The CPU 1518-4 PN/DP MFP does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. This means it does not need a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

39

Connecting up

Assignment of the MAC addresses
CPU 1518-4 PN/DP MFP has three PROFINET interfaces. The first interface is an interface with 2-port switch. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1518-4 PN/DP MFP therefore has seven MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC addresses are lasered on the rating plate on the right side of each CPU 1518-4 PN/DP MFP.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4
MAC address 5 MAC address 6 MAC address 7

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)

· Front and right side, not lasered

Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X2

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X2 P1 (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X3

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X3 P1 (for C/C++ Runtime applications)

· Front, lasered
· Right side, lasered (end of number range)

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

40

Manual, 12/2017, A5E40882737-AA

Connecting up
Block diagram
The following figure shows the block diagram of the CPU 1518-4 PN/DP MFP.

      
X50
X80 24 V DC
PN X1 P1 R

Display RUN/STOP/MRES mode selector Electronics PROFINET 2-port switch PROFIBUS DP driver Backplane bus interface Internal supply voltage SIMATIC memory card Infeed of supply voltage PROFINET interface X1 Port 1

PN X1 P2 R PROFINET interface X1 Port 2

PN X2 P1

PROFINET interface X2 Port 1

PN X3 P1

PROFINET interface X3 Port 1

PB X4

PROFIBUS interface X4

L+

24 V DC supply voltage

M

Ground

R/S

RUN/STOP LED (yellow/green)

ER

ERROR LED (red)

MT

MAINT LED (yellow)

X1 P1, X1 P2, LED Link TX/RX X2 P1, X3 P1

Figure 3-3 Block diagram of the CPU 1518-4 PN/DP MFP

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

41

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1518-4 PN/DP MFP are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the LED displays of the CPU 1518-4 PN/DP MFP.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X3 P1 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1518-4 PN/DP MFP (without front panel)

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

42

Manual, 12/2017, A5E40882737-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
CPU 1518-4 PN/DP MFP has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED

ERROR LED

LED off

LED off

LED off

LED flashes red

LED lit green

LED off

LED lit green

LED flashes red

LED lit green

LED off

LED lit green

LED off

LED lit green

LED flashes red

MAINT LED LED off LED off LED off LED off
LED lit yellow
LED flashes yellow
LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.
CPU is in RUN mode.
A diagnostics event is pending.
Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration An error has occurred.

LED lit yellow LED lit yellow LED lit yellow LED lit yellow LED flashes yellow
LED flashes yellow/green

LED flashes red LED off LED off
LED flashes red LED off
LED off

LED off LED flashes yellow
LED off LED flashes yellow
LED off
LED off

Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card CPU executes a program with an enabled breakpoint. Startup (transition from RUN  STOP)

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

43

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

RUN/STOP LED
LED flashes yellow/green

ERROR LED LED flashes red

MAINT LED LED flashes yellow

Meaning Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of the ports for the CPU 1518-4 PN/DP MFP.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

44

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number General information
Product type designation HW functional status Firmware version Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
Configuration control via dataset
Display Screen diagonal [cm]
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering
· Mains/voltage failure stored energy time
· Repeat rate, min.
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Power Infeed power to the backplane bus Power consumption from the backplane bus (balanced)
Power loss Power loss, typ.
Memory Number of slots for SIMATIC memory card SIMATIC memory card required

6ES7518-4AX00-1AB0
CPU 1518-4 PN/DP MFP FS01 V2.5
V15
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms 1/s
1.7 A 2 A 2.7 A; Rated value 0.02 A²·s
12 W 35 W
29 W
1 Yes

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) Manual, 12/2017, A5E40882737-AA

5
45

Technical specifications

Article number Work memory
· integrated (for program)

6ES7518-4AX00-1AB0 4 Mbyte

· integrated (for data)

20 Mbyte

· integrated (for CPU function library of CPU Runtime)
Working memory for additional functions · Integrated (for C/C++ Runtime application)

50 Mbyte; Note: The "CPU function library of the CPU" are C/C++ blocks for the user program that were created using the SIMATIC ODK 1500S or Target 1500S.
500 Mbyte

Load memory · Plug-in (SIMATIC Memory Card), max.
Backup · maintenance-free

32 Gbyte; The memory card must have at least 2 GB of space on it
Yes

CPU processing times for bit operations, typ. for word operations, typ. for fixed point arithmetic, typ. for floating point arithmetic, typ.
CPU-blocks Number of elements (total)
DB · Number range
· Size, max.
FB · Number range

1 ns 2 ns 2 ns 6 ns
10 000; Blocks (OB, FB, FC, DB) and UDTs
1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999 16 Mbyte; For non-optimized block accesses, the max. size of the DB is 64 KB
0 ... 65 535

· Size, max.

1 Mbyte

FC · Number range

0 ... 65 535

· Size, max.

1 Mbyte

OB · Size, max.

1 Mbyte

· Number of free cycle OBs

100

· Number of time alarm OBs

20

· Number of delay alarm OBs

20

· Number of cyclic interrupt OBs

20; With minimum OB 3x cycle of 100 µs

· Number of process alarm OBs

50

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

46

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number · Number of DPV1 alarm OBs
· Number of isochronous mode OBs
· Number of technology synchronous alarm OBs
· Number of startup OBs
· Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max.
Extended retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories

6ES7518-4AX00-1AB0 3 2 2
100 4 2 1
24
2 048
Yes
Any (only limited by the main memory)
Yes
2 048
Yes
Any (only limited by the main memory)
Yes
768 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 700 KB 20 Mbyte; When using PS 60W 24/48/60V DC HF
16 kbyte 8; 8 clock memory bits, grouped into one clock memory byte

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

47

Technical specifications

Article number Data blocks
· Retentivity adjustable · Retentivity preset Local data · per priority class, max. Address area Number of IO modules I/O address area · Inputs · Outputs per integrated IO subsystem
­ Inputs (volume)
­ Outputs (volume)
per CM/CP ­ Inputs (volume) ­ Outputs (volume)
Subprocess images · Number of subprocess images, max.
Hardware configuration Number of distributed IO systems
Number of DP masters · integrated · Via CM
Number of IO Controllers · integrated · Via CM
Rack · Modules per rack, max. · Number of lines, max.

6ES7518-4AX00-1AB0
Yes No
64 kbyte; max. 16 KB per block
16 384; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image
16 kbyte; 16 KB via the integrated PROFINET IO interface X1, 8 KB via the integrated PROFINET IO interface X2 and via the integrated PROFIBUS DP interface 16 kbyte; 16 KB via the integrated PROFINET IO interface X1, 8 KB via the integrated PROFINET IO interface X2 and via the integrated PROFIBUS DP interface
8 kbyte 8 kbyte
32
64; A distributed I/O system is characterized not only by the integration of distributed I/O via PROFINET or PROFIBUS communication modules, but also by the connection of I/O via AS-i master modules or links (e.g. IE/PB-Link)
1 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; A maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

48

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number PtP CM
· Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · to DP, master · in AS, master · in AS, slave · on Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
PROFINET IO Controller Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode

6ES7518-4AX00-1AB0
the number of connectable PtP CMs is only limited by the number of available slots
Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2 s
16
Yes Yes Yes Yes Yes
3 1
2 Yes Yes; X1
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 624392 Edition 2.0
Yes Yes Yes

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

49

Technical specifications

Article number ­ Open IE communication

6ES7518-4AX00-1AB0 Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; As MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max.
­ Of which IO devices with IRT, max.

512; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
64

­ Number of connectable IO Devices for 512 RT, max.

­ of which in line, max.

512

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Number of IO Devices per tool, max. 8

­ Updating times
Update time for IRT ­ for send cycle of 125 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
125 µs

­ for send cycle of 187.5 µs

187.5 µs

­ for send cycle of 250 µs

250 µs to 4 ms

­ for send cycle of 500 µs

500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" Update time = set "odd" send clock (any multiple

send cycles

of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 250 µs

250 µs to 128 ms

­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

50

Manual, 12/2017, A5E40882737-AA

Article number PROFINET IO Device Services
­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ MRPD ­ PROFIenergy ­ Shared device ­ Number of IO Controllers with shared
device, max. ­ Asset management record 2. Interface Interface types · Number of ports · integrated switch · RJ 45 (Ethernet) Functionality · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy PROFINET IO Controller Services ­ PG/OP communication ­ S7 routing ­ Isochronous mode ­ Open IE communication ­ IRT ­ MRP ­ PROFIenergy ­ Prioritized startup

6ES7518-4AX00-1AB0
Yes Yes No Yes Yes Yes Yes; Requirement: IRT Yes Yes 4
Yes; Per user program
1 No Yes; X2
Yes; IPv4 Yes Yes Yes Yes Yes No
Yes Yes No Yes No No Yes No

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) Manual, 12/2017, A5E40882737-AA

Technical specifications 51

Technical specifications

Article number ­ Number of connectable IO Devices, max.
­ Number of connectable IO Devices for RT, max.

6ES7518-4AX00-1AB0
128; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
128

­ of which in line, max.

128

­ Number of IO Devices that can be sim- 8; in total across all interfaces ultaneously activated/deactivated, max.

­ Updating times
Update time for RT ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes

­ Prioritized startup

No

­ Shared device

Yes

­ Number of IO Controllers with shared 4 device, max.

­ Asset management record

Yes; Per user program

3. Interface Interface types
· Number of ports
· integrated switch

1; C/C++ Runtime can also be reached via this port
No

· RJ 45 (Ethernet)

Yes; X3

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

52

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number Functionality
· IP protocol

6ES7518-4AX00-1AB0 Yes; IPv4

· PROFINET IO Controller

No

· PROFINET IO Device

No

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

4. Interface

Interface types

· Number of ports

1

· RS 485

Yes; X4

Functionality

· PROFIBUS DP master

Yes

· PROFIBUS DP slave

No

· SIMATIC communication

Yes

Interface types

RJ 45 (Ethernet)

· 100 Mbps

Yes

· 1000 Mbps · Autonegotiation

Yes; Only possible at the X3 interface of the CPU 1518
Yes

· Autocrossing

Yes

· Industrial Ethernet status LED

Yes

RS 485 · Transmission rate, max.

12 Mbit/s

Protocols Number of connections
· Number of connections, max.
· Number of connections reserved for ES/HMI/web

384; via integrated interfaces of the CPU and connected CPs / CMs
10

· Number of connections via integrated inter- 192 faces

· Number of S7 routing paths

64; in total, only 16 S7-Routing connections are supported via PROFIBUS

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

53

Technical specifications

Article number SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max.
Open IE communication · TCP/IP ­ Data length, max. ­ several passive connections per port, supported · ISO-on-TCP (RFC1006) ­ Data length, max. · UDP ­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP
Web server · HTTP · HTTPS
PROFIBUS DP master · Number of connections, max.
Services ­ PG/OP communication ­ S7 routing ­ Data record routing ­ Isochronous mode ­ Equidistance ­ Number of DP slaves
­ Activation/deactivation of DP slaves

6ES7518-4AX00-1AB0
Yes Yes See online help (S7 communication, user data size)
Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes
Yes; Standard and user pages Yes; Standard and user pages
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

54

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number OPC UA
· Runtime license required · OPC UA Server
­ Application authentication ­ Security policies
­ User authentication Further protocols
· MODBUS Media redundancy
· Switchover time on line break, typ. · Number of stations in the ring, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Equidistance S7 message functions Number of login stations for message functions, max. Program alarms Number of configurable program alarms Number of simultaneously active program alarms · Number of program alarms · Number of alarms for system diagnostics · Number of alarms for motion technology
objects Test commissioning functions
Joint commission (Team Engineering)
Status block
Single step Number of breakpoints

6ES7518-4AX00-1AB0
Yes Yes; Data access (read, write, subscribe), method call, custom address space Yes Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "anonymous" or by user name & password
Yes; MODBUS TCP
200 ms; For MRP, bumpless for MRPD 50
Yes; With minimum OB 6x cycle of 125 µs
Yes
32
Yes 10 000
1 000 200 160
Yes; Parallel online access possible for up to 10 engineering systems Yes; Up to 16 simultaneously (in total across all ES clients) No 20

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

55

Technical specifications

Article number Status/control
· Status/control variable

6ES7518-4AX00-1AB0 Yes

· Variables · Number of variables, max.

Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters

­ of which status variables, max.

200; per job

­ of which control variables, max.

200; per job

Forcing · Forcing, variables

Peripheral inputs/outputs

· Number of variables, max.

200

Diagnostic buffer

· present

Yes

· Number of entries, max.

3 200

­ of which powerfail-proof

1 000

Traces · Number of configurable Traces

8; Up to 512 KB of data per trace are possible

Interrupts/diagnostics/status information

Diagnostics indication LED

· RUN/STOP LED

Yes

· ERROR LED

Yes

· MAINT LED

Yes

· Connection display LINK TX/RX

Yes

Supported technology objects

Motion Control

Yes; Note: The number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER

· Number of available Motion Control re-

10 240

sources for technology objects (except cam

disks)

· Required Motion Control resources

­ per speed-controlled axis

40

­ per positioning axis

80

­ per synchronous axis

160

­ per external encoder

80

­ per output cam

20

­ per cam track

160

­ per probe

40

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

56

Manual, 12/2017, A5E40882737-AA

Technical specifications

Article number · Positioning axis ­ Number of positioning axes at motion control cycle of 4 ms (typical value) ­ Number of positioning axes at motion control cycle of 8 ms (typical value) Controller · PID_Compact
· PID_3Step
· PID-Temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max.
· vertical installation, min. · vertical installation, max.
Ambient temperature during storage/transportation
· min. · max. Configuration Programming Programming language
­ LAD ­ FBD ­ STL ­ SCL ­ GRAPH Know-how protection · User program protection/password protection · Copy protection · Block protection

6ES7518-4AX00-1AB0
128
128
Yes; Universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 °C; Display: 50 °C, at an operating temperature of typically 50 °C, the display is switched off 0 °C 40 °C; Display: 40 °C, at an operating temperature of typically 40 °C, the display is switched off
-40 °C 70 °C
Yes Yes Yes Yes Yes
Yes
Yes Yes

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

57

Technical specifications

Article number Access protection
· Password for display
· Protection level: Write protection
· Protection level: Read/write protection
· Protection level: Complete protection Cycle time monitoring
· lower limit
· upper limit Open Development interfaces
· Size of ODK SO file, max. Dimensions
Width Height Depth Weights Weight

6ES7518-4AX00-1AB0
Yes Yes Yes Yes
adjustable minimum cycle time adjustable maximum cycle time
9.8 Mbyte
175 mm 147 mm 129 mm
1 988 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

58

Manual, 12/2017, A5E40882737-AA

Dimensional drawing

A

This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.
Dimension drawings of the CPU 1518-4 PN/DP MFP

Figure A-1 Dimension drawing of the CPU 1518-4 PN/DP MFP, front and side view

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

Manual, 12/2017, A5E40882737-AA

59

Dimensional drawing
Figure A-2 Dimension drawing CPU 1518-4 PN/DP MFP, side view with open front panel

CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)

60

Manual, 12/2017, A5E40882737-AA

CPU 1518-4 PN/DP ODK (6ES7518- _Pr_ef_ac_e_______________

4AP00-3AB0)

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500 CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_Co_n_ne_c_tin_g_up___________3_

_ _ _ _ _ _ _ _ _ _ _ Interrupts, error messages,

diagnostics and system

4

alarms

Manual

_Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_

_Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E35681108-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35681108-AA  08/2016 Subject to change

Copyright © Siemens AG 2015 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual of the S7-1500 automation system and the function manuals. All cross-system functions are described in the system manual and in the function manuals.
The information provided in this manual and the system manual enables you to commission the CPU 1518-4 PN/DP ODK.

Basic knowledge required
To understand this documentation, you need to have general knowledge of automation engineering. You also need basic knowledge of the following topics:  Knowledge of the industrial automation system SIMATIC  Knowledge of working with STEP 7  Knowledge of programming with C/C++  Working with the Eclipse development environment

Conventions

 STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
 ODK: Open Development Kit  SO: Shared Object
Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

4

Manual, 09/2016, A5E35681108-AA

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity). Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:  Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.  Application examples Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.  Services Information about Industry Services, Field Services, Technical Support, spare parts and training offers.  Forums For answers and solutions concerning automation technology.  mySupport Your personal working area in Industry Online Support for messages, support queries, and configurable documents. This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

5

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

6

Manual, 09/2016, A5E35681108-AA

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 8

2 Product overview .................................................................................................................................. 12

2.1

Application ..............................................................................................................................12

2.2

How it works............................................................................................................................18

2.3

Properties ................................................................................................................................ 19

2.4 2.4.1 2.4.2 2.4.3

Operating and display elements .............................................................................................24 Front view of the module with closed front panels..................................................................24 Front view of the module without front panels ........................................................................26 Rear view of the module .........................................................................................................27

2.5

Mode selector switch ..............................................................................................................27

3 Connecting up....................................................................................................................................... 28

4 Interrupts, error messages, diagnostics and system alarms................................................................... 33

4.1

Status and error display of the CPU .......................................................................................33

5 Technical specifications ........................................................................................................................ 36

A Dimensional drawing............................................................................................................................. 48

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

7

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

8

Manual, 09/2016, A5E35681108-AA

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

9

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

10

Manual, 09/2016, A5E35681108-AA

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

11

Product overview

2

2.1

Application

Area of application
SIMATIC S7-1500 is the modular control system for a wide variety of automation applications in discrete automation.
The modular and fanless design, simple implementation of distributed structures, and userfriendly operation make SIMATIC S7-1500 the economic and convenient solution for a variety of tasks.
Applications of the SIMATIC S7-1500, include, for example:
 Special-purpose machines
 Textile machinery
 Packaging machines
 General mechanical engineering
 Controller engineering
 Machine tool engineering
 Installation engineering
 Electrical industry and crafts
 Automobile engineering
 Water/waste water
 Food & Beverage
Applications of the SIMATIC S7-1500T include, for example:
 Packaging machines
 Converting application
 Assembly automation
Several CPUs with various levels of performance and a comprehensive range of modules with many convenient features are available. Fail-safe CPUs enable use in fail-safe applications. The modular design allows you to use only the modules that you need for your application. The controller can be retrofitted with additional modules at any time to expand its range of tasks.
High industrial capability from the high resistance to EMC, shock and vibration enable universal use of the SIMATIC S7-1500.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

12

Manual, 09/2016, A5E35681108-AA

Product overview 2.1 Application

Performance segments of the CPU 1518-4 PN/DP ODK
The CPU can be used for the high-end area of machine and plant automation.
The CPU 1518-4 PN/DP ODK can execute blocks that were programmed with C/C++. Programming of the blocks is effected by means of the "Open Development Kit ODK 1500S"
You can use the ODK to implement mechanisms from high-level programming languages (e.g. object-based) within a modern programming environment. The complexity and required time for implementation of functions is thereby reduced. The blocks generated with ODK can be run synchronously in the execution cycle of the CPU.
You can reuse existing C/C++ algorithms.
To use existing technological know-how, you can integrate the existing C/C++ code in the runtime environment of the CPU using the Open Development Kit. Once the C/C++ sources have been integrated with the ODK, they can be subsequently run on the CPU.
You can find the description of the ODK application in the S7-1500 Software Controller Open Development Kit 1500S (https://support.industry.siemens.com/cs/ww/de/view/109249838/en) programming and operating manual as of V2.0 edition 09/2016.
However, only the part covering the real-time functionality applies to the CPU 1518-4 PN/DP ODK.
The CPU 1518-4 PN/DP ODK has 2 memories:
 Work memory
 Additional memory for ODK applications (C/C++ code and data).

Performance segments of the standard, compact, fail-safe and technology CPUs
The CPUs can be used for smaller and mid-range applications, as well as for the high-end range of machine and plant automation.

Table 2- 1 Standard CPUs

CPU

Performance segment

PROFIBUS PROFINET PROFINET interfaces IO RT/IRT IO RT
interfaces interface

CPU 1511-1 PN Standard CPU for small

--

1

--

to mid-range applications

CPU 1513-1 PN Standard CPU for mid-

--

1

--

range applications

CPU 1515-2 PN Standard CPU for medi-

--

1

1

um-sized to large applica-

tions

CPU 1516-3 PN Standard CPU for de-

1

1

1

/DP

manding applications and

communications tasks

PROFINET basic func-
tionality --
--
--
--

Work memory 1.23 MB 1.95 MB 3.75 MB
6.5 MB

Processing time for bit operations
60 ns
40 ns
30 ns
10 ns

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

13

Product overview 2.1 Application

CPU
CPU 1517-3 PN /DP
CPU 1518-4 PN /DP CPU 1518-4 PN /DP ODK

Performance segment
Standard CPU for demanding applications and communications tasks Standard CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBUS interfaces
1
1

PROFINET IO RT/IRT interfaces
1
1

PROFINET IO RT
interface 1
1

PROFINET basic func-
tionality --
1

Work memory 11 MB
26 MB

Processing time for bit operations
2 ns
1 ns

Table 2- 2 Compact CPUs

CPU

Performance segment

CPU 1511C-1 P N
CPU 1512C-1 P N

Compact CPU for small to mid-range applications
Compact CPU for midrange applications

PROFIBU S
interfaces --
--

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

1

--

PROFINET basic func-
tionality --
--

Work memory
1.175 M B
1.25 MB

Processing time for bit operations
60 ns
48 ns

Table 2- 3 Fail-safe CPUs

CPU

Performance segment

CPU 1511F-1 P N
CPU 1513F-1 P N CPU 1515F-2 P N
CPU 1516F-3 P N/DP
CPU 1517F-3 P N/DP CPU 1517TF3 PN/DP CPU 1518F-4 P N/DP CPU 1518F-4 P N/DP ODK

Fail-safe CPU for smaller to medium-sized applications
Fail-safe CPU for medium-sized applications
Fail-safe CPU for medium-sized to large applications
Fail-safe CPU for demanding applications and communications tasks
Fail-safe CPU for demanding applications and communications tasks
Fail-safe CPU for highperformance applications, demanding communication tasks and very short reaction times

PROFIBU S
interfaces --
---
1
1
1

PROFINET IO RT/IRT interfaces
1

PROFINET IO RT
interface
--

PROFINET basic func-
tionality
--

Work memory
1.23 MB

Processing time for bit operations
60 ns

1

--

--

1.95 MB 40 ns

1

1

--

3.75 MB 30 ns

1

1

--

6.5 MB 10 ns

1

1

--

11 MB

2 ns

1

1

1

26 MB

1 ns

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

14

Manual, 09/2016, A5E35681108-AA

Product overview 2.1 Application

Table 2- 4 Technology CPUs

CPU
CPU 1511T-1 PN CPU 1515T-2 PN CPU 1517T3 PN/DP
CPU 1517TF3 PN/DP

Performance segment

PROFIBUS interfaces

PROFINE T IO
RT/IRT interfaces

Technology CPU for

--

1

small to mid-range

applications

Technology CPU for

--

1

mid-range to large ap-

plications

Technology CPU for

1

1

complex applications

and communication

tasks

This CPU is described in the fail-safe CPUs

PROFINE T IO RT interface
--
1
1

PROFINET basic func-
tionality
--

Work memory 1.23 MB

Processing time for bit opera-
tions
60 ns

--

3.75 MB

30 ns

--

11 MB

2 ns

Performance segments of compact CPUs
The compact CPUs can be used for smaller to medium-sized applications and have an integrated analog and digital on-board I/O as well as integrated technology functions. The following table shows the specific properties of the Compact CPUs.

Integrated analog inputs/outputs Integrated digital inputs/outputs High-speed counters Pulse generators · PWM (pulse-width modulation) · PTO (pulse train output or stepper motor control) · Frequency output

CPU 1511C-1 PN 5 inputs/2 outputs 16 inputs/16 outputs
6 4 (PTOx/PWMx)

CPU 1512C-1 PN 5 inputs/2 outputs 32 inputs/32 outputs
6 4 (PTOx/PWMx)

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

15

Product overview 2.1 Application
Integrated technological functions
The CPUs of the SIMATIC S7-1500 support motion control functions. STEP 7 offers blocks standardized according to PLCopen for configuring and connecting a drive to the CPU. Motion Control supports speed-controlled, positioning and synchronous axes (synchronizing without specification of the synchronous position) as well as external encoders, cams, cam tracks and measuring inputs.
The CPUs of theSIMATIC S7-1500T support advanced motion control functions in addition to the motion control functions offered by the standard CPUs. Additional motion control functions are absolute synchronous axes (synchronization with specification of synchronous position) and the cam.
For effective commissioning, diagnostics and fast optimization of drives and controls, the SIMATIC S7-1500 controller family offers extensive trace functions for all CPU tags.
In addition to drive integration, the SIMATIC S7-1500 has a PID compact closed-loop controller; easy-to-configure blocks allow automatic optimization of the controller parameters for optimized control quality.
Technology modules also implement functions such as high-speed counting, position detection and measuring functions and pulse generators (PWM and frequency output). In compact CPU 1511C-1 PN and CPU 1512C-1 PN CPUs, these functions are already integrated and require no additional technology modules.
SIWAREX is a versatile and flexible weighing module, which you can use as a static scale for operation.
Due to the supported technology functions, the CPUs are suitable for controlling pumps, fans, mixers, conveyor belts, lifting platforms, gate control systems, building management systems, synchronized axes, etc.
Security Integrated
In conjunction with STEP 7, each CPU offers password-based know-how protection against unauthorized reading out or modification of the program blocks.
Copy protection provides reliable protection against unauthorized reproduction of program blocks. With copy protection, individual blocks on the SIMATIC memory card can be tied to its serial number so that the block can only be run if the configured memory card is inserted into the CPU.
In addition, you can assign various access rights to different user groups in the controller using four different authorization levels.
Improved manipulation protection allows changed or unauthorized transfers of engineering data to be detected by the controller.
The use of an Ethernet CP (CP 1543-1) provides you with additional access protection through a firewall or possibilities to establish secure VPN connections.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

16

Manual, 09/2016, A5E35681108-AA

Product overview 2.1 Application
Safety Integrated
The fail-safe CPUs are intended for users who want to implement demanding standard and fail-safe applications both centrally and decentrally.
These fail-safe CPUs allow the processing of standard and safety programs on a single CPU. This allows fail-safe data to be evaluated in the standard user program. The integration also provides the system advantages and the extensive functionality of SIMATIC for fail-safe applications.
The fail-safe CPUs are certified for use in safety mode up to:
 Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
 Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008
Additional password protection for F-configuration and F-program is set up for IT security.
Design and handling
All CPUs of the SIMATIC S7-1500 product series feature a display with plain text information. The display provides the user with information on the order numbers, firmware version, and serial number of all connected modules. In addition, the IP address of the CPU and other network settings can be adapted locally without a programming device. Errors messages are immediately shown on the display in plain text, thus helping customers to reduce downtimes.
Uniform front connectors for all modules and integrated potential bridges for flexible formation of potential groups simplifies storage. Additional components such as circuit breakers, relays, etc., can be installed quickly and easily, since a DIN rail is implemented in the rail of the S7-1500. The CPUs of the SIMATIC S7-1500 product series can be expanded centrally and in a modular fashion with signal modules. Space-saving expansion enables flexible adaptation to each application.
The system cabling for digital signal modules enables fast and clear connection to sensors and actuators from the field (fully modular connection consisting of front connector modules, connection cables and I/O modules), as well as easy wiring inside the control cabinet (flexible connection consisting of front connectors with assembled single conductors).
System diagnostics and alarms
Integrated system diagnostics is activated by default for the CPUs. The different diagnostic types are configured instead of programmed. System diagnostics information is shown uniformly and in plain text on the display of the CPU, in STEP 7, on the HMI and on the Web server, even for alarms related to drives. This information is available in RUN mode, but also in STOP mode of the CPU. An automatic update of the diagnostics information is performed when you configure new hardware components.
The CPU is available as a central interrupt server for 3 languages. The CPU, STEP 7 and your HMI guarantee data consistency without additional engineering steps. The maintenance work is easier.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

17

Product overview 2.2 How it works

2.2

How it works

Principle of operation
The CPU contains the operating system and executes the user program. The user program is located on the SIMATIC memory card and is processed in the work memory of the CPU.
CPU 1518-4 PN/DP ODK allows you to integrate C/C++ functions created with the SIMATIC S7-1500 ODK in the user program in addition to the user program created directly with STEP 7.
The connection to the process is centralized or distributed via PROFINET or PROFIBUS with I/O modules.
The PROFINET interfaces on the CPU allow simultaneous communication with PROFINET devices, PROFINET controllers, HMI devices, programming devices, other controllers and other systems. CPU 1518-4 PN/DP ODK supports operation as an IO controller and I-device.
Similarly to the PROFINET interface, the PROFIBUS interface available on the CPU allows communication with other devices. When you use the interface as PROFIBUS DP interface, the CPU on the PROFIBUS DP also assumes the role of a DP master.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

18

Manual, 09/2016, A5E35681108-AA

2.3

Properties

Article number
6ES7518-4AP00-3AB0

View of the module
The figure below shows the CPU 1518-4 PN/DP ODK.

Product overview 2.3 Properties

Figure 2-1 CPU 1518-4 PN/DP ODK
Note Protective film Note that a protective film is attached to the display of the CPU when shipped from the factory. Remove the protective film if necessary.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

19

Product overview 2.3 Properties

Properties

CPU 1518-4 PN/DP ODK has the following technical properties:
 C/C++ applications
Their C/C++ applications are generated via the SIMATIC S7-1500 ODK. They are loaded with the TIA Portal and the Web server. With the SIMATIC S7-1500 ODK you program functions from which you can launch the STEP 7 user program.
You can find the description of the ODK application in the S7-1500 Software Controller Open Development Kit 1500S programming and operating manual.
However, only the part covering the real-time functionality applies to the CPU 1518-4 PN/DP ODK.
 Communication:
­ Interfaces
CPU 1518-4 PN/DP ODK has four interfaces. Three interfaces for PROFINET and one for PROFIBUS.
The 1st PROFINET interface (X1 P1, X1 P2) has two ports. In addition to PROFINET basic functionality, it also supports PROFINET IO RT (real-time) and IRT (isochronous real-time). PROFINET IO communication or real-time settings can be configured.
Even with a send clock of 125 µs, IO communication and standard communication is possible via one cable.
Port 1 and port 2 can also be used as ring ports for the configuration of redundant ring structures in Ethernet.
The 2nd PROFINET interface (X2 P1) has one port. In addition to PROFINET basic functionality, its also supports PROFINET IO RT (real-time). The basic functionality of PROFINET supports HMI communication, communication with the configuration system, communication with a higher-level network (backbone, router, Internet) and communication with another machine or automation cell.
The 3rd PROFINET interface (X3 P1) has one port and supports PROFINET basic functionality, i.e. no IO controller / IO device role. The basic functionality of PROFINET supports HMI communication, communication with the configuration system, communication with a higher-level network (backbone, router, Internet) and communication with another machine or automation cell. The 3rd PROFINET interface supports a transmission rate of 1000 Mbps as of firmware version V1.7.
Note IP subnets
The IP subnets of the three interfaces must be different. This means that the IP addresses of the three interfaces must differ from each other in the subnets.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

20

Manual, 09/2016, A5E35681108-AA

Product overview 2.3 Properties
The 4th interface (X4) is used to connect to a PROFIBUS network. When you use the interface as PROFIBUS DP interface, the CPU is the DP master in this case. The CPU cannot assume the role of a DP slave. ­ OPC UA With OPC UA, data is exchanged via an open and vendor-neutral communication protocol. The CPU, as OPC UA server, can communicate with OPC UA clients such as HMI panels, SCADA systems, etc.  Integrated Web server: A Web server is integrated in the CPU. You can read out the following information with the Web server: ­ Start page with general CPU information ­ Identification information ­ Contents of the diagnostics buffer ­ Query of module states ­ Firmware update ­ Alarms (without acknowledgment option) ­ Information about communication ­ PROFINET topology ­ Tag status, writing tags ­ Watch tables ­ Memory usage ­ User pages ­ Data logs (if used) ­ Online backup and restoration of the configuration. ­ Diagnostic information for the motion control technology objects ­ Display of trace recording stored on the SIMATIC memory card ­ Readout service data ­ Basic Web pages ­ Display of the Web server in 3 project languages, for example, comments and message texts ­ Recipes ­ User-defined Web pages

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

21

Product overview 2.3 Properties
 Integrated technology:
­ Motion Control
The Motion Control functionality uses technology objects to support speed-controlled axes, positioning axes, synchronous axes, external encoders, cams, cam tracks and measuring inputs, as well as PLCopen blocks for programming the motion control functionality. You can find a detailed description of the use of Motion Control and its configuration in the S7-1500 Motion Control (http://support.automation.siemens.com/WW/view/en/109739589) function manual. You can also use the TIA Selection Tool (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool) or the SIZER (http://w3.siemens.com/mcms/mc-solutions/en/engineering-software/drive-design-toolsizer/Pages/drive-design-tool-sizer.aspx) to create or configure axes.
­ Integrated closed-loop control functionality
- PID Compact (continuous PID controller)
- PID 3Step (step controller for integrating actuators)
- PID Temp (temperature controller for heating and cooling with two separate actuators)
 Trace functionality:
­ The trace functionality supports troubleshooting and optimization of the user program. You can find additional information on the trace functionality in the Using the Trace and Logic Analyzer (http://support.automation.siemens.com/WW/view/en/64897128) function manual.
 Integrated system diagnostics:
­ The alarms for the system diagnostics are automatically created by the system and displayed on a PG/PC, HMI device, Web server or the integrated display. System diagnostics information is also available when the CPU is in STOP mode.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

22

Manual, 09/2016, A5E35681108-AA

Reference

Product overview 2.3 Properties
 Integrated security:
­ Know-how protection
The know-how protection protects user blocks against unauthorized access and modifications.
­ Copy protection
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the CPU. User programs cannot run without the corresponding SIMATIC memory card or CPU.
­ Access protection
Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.
­ Integrity protection
The system protects the data transferred to the CPU against manipulation. The CPU detects erroneous or manipulated engineering data.
 Additional functions:
­ PROFIenergy You can find information on the topic of "PROFIenergy" in the PROFINET function manual (http://support.automation.siemens.com/WW/view/en/19292127) and in the PROFINET specification on the Internet (http://www.profibus.com).
­ Shared device You can find information on the topic of "Shared device" in the PROFINET function manual (http://support.automation.siemens.com/WW/view/en/19292127).
­ Configuration control You can find information on the topic of "Configuration control" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
­ Isochronous mode You can find information about the "Isochronous mode" topic in the PROFINET (http://support.automation.siemens.com/WW/view/en/68039307) function manual.
You will find additional information on the topic of "Integrated security/Access protection" in the S7-1500/ET 200MP system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

23

Product overview 2.4 Operating and display elements

2.4

Operating and display elements

2.4.1

Front view of the module with closed front panels
The figure below shows the front view of the CPU 1518-4 PN/DP ODK.

 LEDs for the current operating mode and diagnostic status of the CPU  Front panel with display  Display  Operator control buttons  Front panel of the PROFIBUS interface
Figure 2-2 View of the CPU 1518-4 PN/DP ODK (with front panels) - front
Note Temperature range for display
To increase the service life of the display, the display switches itself off when the permitted operating temperature is exceeded. When the display cools down again, it automatically switches itself on again. When the display is switched off, the LEDs continue to show the status of the CPU.
For more information on the temperatures at which the display switches itself on and off, refer to the Technical specifications (Page 36).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

24

Manual, 09/2016, A5E35681108-AA

Product overview 2.4 Operating and display elements
Pulling and plugging the front panel with display
You can pull and plug the front panel with display during operation.
WARNING Personal injury and damage to property may occur If you pull or plug the front panel of an S7-1500 automation system during operation, personal injury or damage to property can occur in zone 2 hazardous areas. Always disconnect the S7-1500 automation system from the power supply before you pull or plug the front panel in zone 2 hazardous areas.
Locking the front panel
You can lock the wide front panel with display as well as the narrow front panel of the PROFIBUS interface to protect your CPU against unauthorized access. You can attach a security seal or a padlock with a diameter of 3 mm to the front panels.

Reference

Figure 2-3 Locking latch on the CPU
In addition to the mechanical lock, you can also block access to a password-protected CPU on the display (local lock). You can find additional information on the display, configurable protection levels and local locks in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You will find detailed information on the individual display options, a training course and a simulation of the available menu commands in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

25

Product overview 2.4 Operating and display elements

2.4.2

Front view of the module without front panels
The figure below shows the operator controls and connection elements of the CPU 1518-4 PN/DP ODK.

 Mode selector  No function  PROFIBUS interface (X4)  Fixing screws  Connector for power supply  PROFINET IO interface (X3) with 1 port (back interface)  PROFINET IO interface (X2) with 1 port (front interface)  PROFINET IO interface (X1) with 2 ports  MAC addresses of the interfaces  LEDs for the 4 ports of the PROFINET interfaces X1, X2 and X3  Slot for the SIMATIC memory card  Display connector  LEDs for the current operating mode and diagnostic status of the CPU
Figure 2-4 View of the CPU 1518-4 PN/DP ODK (without front panels) - front

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

26

Manual, 09/2016, A5E35681108-AA

2.4.3

Product overview 2.5 Mode selector switch
Rear view of the module
The figure below shows the connection elements on the rear of the CPU 1518-4 PN/DP ODK.

2.5

 Shield contact surfaces  Backplane bus connector  Fixing screws
Figure 2-5 View of the CPU 1518-4 PN/DP ODK - rear

Mode selector switch
Use the mode switch to set the CPU operating mode. The following table shows the position of the switch and the corresponding meaning.

Table 2- 5 Mode switch settings

Position RUN STOP MRES

Meaning RUN mode STOP mode Memory reset

Explanation The CPU is executing the user program. The user program is not being executed. Position for CPU memory reset.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

27

Connecting up

3

This section provides information on the terminal assignment of the individual interfaces and the block diagram of the CPU 1518-4 PN/DP ODK.
24 V DC supply voltage (X80)
The connector for the power supply is plugged in when the CPU ships from the factory. The following table shows the pin assignment for a 24 V DC power supply.

 +24 V DC of the supply voltage  Ground of the supply voltage  Ground of the supply voltage for loop-through (maximum of 10 A permitted)  +24 V DC of the supply voltage for loop-through (maximum of 10 A permitted)  Spring opener (one spring opener per terminal)
Bridged internally:
 and   and 
Figure 3-1 Supply voltage connection
If the CPU is supplied by a system power supply, it is not necessary to connect the 24 V supply.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

28

Manual, 09/2016, A5E35681108-AA

Connecting up
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).

PROFINET interface X2 and X3 with 1 port (X2 P1, X3 P1)
The assignment corresponds to the Ethernet standard for an RJ45 plug.  Autocrossing is always active on X2. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).  Autocrossing is always active on X3. This means the RJ45 socket is allocated either as
data terminal equipment (MDI) or a switch (MDI-X).
Figure 3-2 Interfaces X2 and X3

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

29

Connecting up

Note PROFINET interface X3 with a transmission rate of 1000 Mbps
The PROFINET interface X3 supports a maximum transmission rate of 1000 Mbps.
Requirements: · Devices on the PROFINET segment must support the 1000 Mbps transmission rate. · The network infrastructure (network cables and outlets) must be category CAT 5e or
higher. · The "Transmission rate" parameter in the properties of the port (X3) must be set as
follows in STEP 7: ­ The "Autonegotiation" check box is selected ­ "Automatic" is selected in the drop-down list

PROFIBUS interface X4
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 1

PROFIBUS interface terminal assignment

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

Note
Supply of I/O devices
The CPU 1518-4 PN/DP ODK does not provide a 24 V DC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovative successor product, PC adapter USB A2, receives the required power supply via the USB port. This means it does not need a 24 V DC supply voltage and can be operated without a plug-in power supply set for external power supply.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

30

Manual, 09/2016, A5E35681108-AA

Connecting up

Reference

You can find additional information on the topics of "Connecting the CPU" and "Accessories/spare parts" in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Assignment of the MAC addresses
CPU 1518-4 PN/DP ODK has three PROFINET interfaces. The first interface is an interface with 2-port switch. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address. The CPU 1518-4 PN/DP ODK therefore has seven MAC addresses in total.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example for the neighborhood discovery function.
The number range of the MAC addresses is sequential. The first and last MAC address are lasered on the rating plate on the right side of each CPU 1518-4 PN/DP ODK.
The table below shows how the MAC addresses are assigned.

Table 3- 2 Assignment of the MAC addresses

MAC address 1
MAC address 2 MAC address 3 MAC address 4
MAC address 5 MAC address 6 MAC address 7

Assignment
PROFINET interface X1
(visible in STEP 7 for accessible devices)

Labeling
· Front, lasered · Right side, lasered
(start of number range)

Port X1 P1 R (required for LLDP, for example)

· Front and right side, not lasered

Port X1 P2 R (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X2

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X2 P1 (required for LLDP, for example)

· Front and right side, not lasered

PROFINET interface X3

· Front, lasered

(visible in STEP 7 for accessible devic- · Right side, not lasered es)

Port X3 P1 (required for LLDP, for example)

· Front, lasered
· Right side, lasered (end of number range)

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

31

Connecting up
Block diagram
The figure below shows the block diagram of the CPU 1518-4 PN/DP ODK.



Display



RUN/STOP/MRES mode selector



Electronics



PROFINET 2-port switch



PROFIBUS DP driver



Backplane bus interface



Internal supply voltage

X50

SIMATIC memory card

X80 24 V DC Infeed of supply voltage

PN X1 P1 R PROFINET interface X1 Port 1

PN X1 P2 R PN X2 P1 PN X3 P1 PB X4 L+ M R/S ER MT X1 P1, X1 P2, X2 P1, X3 P1

Figure 3-3 Block diagram of the CPU 1518-4 PN/DP ODK

PROFINET interface X1 Port 2 PROFINET interface X2 Port 1 PROFINET interface X3 Port 1 PROFIBUS interface X4 24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

32

Manual, 09/2016, A5E35681108-AA

Interrupts, error messages, diagnostics and system alarms

4

The status and error displays of the CPU 1518-4 PN/DP ODK are described below.
You will find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on the topics of "Diagnostics" and "System alarms" in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

4.1

Status and error display of the CPU

LED display

The figure below shows the CPU 1518-4 PN/DP ODK LEDs.

 RUN/STOP LED (yellow/green LED)  ERROR LED (red LED)  MAINT LED (yellow LED)  No function  LINK RX/TX LED for port X1 P1 (yellow/green LED)  LINK RX/TX LED for port X1 P2 (yellow/green LED)  LINK RX/TX LED for port X3 P1 (yellow/green LED)  LINK RX/TX LED for port X2 P1 (yellow/green LED)
Figure 4-1 LED display of the CPU 1518-4 PN/DP ODK (without front panel)

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

33

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The CPU 1518-4 PN/DP ODK has three LEDs to signal the current operating status and diagnostics status. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED LED off LED off
LED lit green LED lit green LED lit green
LED lit green
LED lit yellow
LED lit yellow LED lit yellow
LED flashes yellow
LED flashes yellow/green LED flashes yellow/green

ERROR LED LED off
LED flashes red LED off
LED flashes red LED off
LED off
LED off LED off LED flashes red LED off
LED off LED flashes red

MAINT LED LED off LED off

Meaning Missing or insufficient power supply on the CPU.
An error has occurred.

LED off LED off

CPU is in RUN mode. A diagnostics event is pending.

LED lit yellow
LED flashes yellow
LED flashes yellow
LED off LED flashes yel-
low LED off
LED off

Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective
CPU is performing internal activities during STOP, e.g. startup after STOP. Download of the user program from the SIMATIC memory card Startup (transition from RUN  STOP)

LED flashes yellow

Startup (CPU booting)
Test of LEDs during startup, inserting a module.
LED flashing test

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

34

Manual, 09/2016, A5E35681108-AA

Interrupts, error messages, diagnostics and system alarms 4.1 Status and error display of the CPU

Meaning of LINK RX/TX LED
Each port has a LINK RX/TX LED. The table below shows the various "LED scenarios" of ports for the CPU 1518-4 PN/DP ODK.

Table 4- 2 Meaning of the LEDs

LINK TX/RX LED LED off
LED flashes green LED lit green
LED flickers yellow

Meaning There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is no LINK connection. The "LED flashing test" is being performed.
There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

35

Technical specifications

5

General information Product type designation Hardware function version Firmware version Engineering with STEP 7 TIA Portal can be configured/integrated as of version Configuration control Via data record Display Screen diagonal (cm) Operator controls Number of buttons Mode selector Supply voltage Type of supply voltage Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Power and voltage failure buffering Power/voltage failure buffer time Input current Current consumption (rated value) Inrush current, max. I²t Power Power consumption from the backplane bus (balanced) Incoming power to the backplane bus Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory Integrated (for program) Integrated (for data) Integrated (for ODK application)

6ES7518-4AP00-3AB0
CPU 1518-4 PN/DP ODK FS03 V2.0
V14
Yes
6.1 cm
6 1
24 V DC 19.2 V 28.8 V Yes
5 ms
1.55 A 2.4 A; rated value 0.02 A²s
30 W 12 W
24 W
1 Yes
4 MB 20 MB 20 MB

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

36

Manual, 09/2016, A5E35681108-AA

Technical specifications

Load memory Plug-in (SIMATIC memory card), max. Buffering Maintenance-free CPU processing times For bit operations, typ. For word operations, typ. For fixed-point arithmetic, typ. For floating-point arithmetic, typ. CPU blocks Number of elements (total) DB Number range
Size, max.
FB Number range Size, max. FC Number range Size, max. OB Size, max. Number of free-cycle OBs Number of time-of-day interrupt OBs Number of time-delay interrupt OBs Number of cyclic interrupt OBs Number of hardware interrupt OBs Number of DPV1 interrupt OBs Number of isochronous mode OBs Number of technology synchronous interrupt OBs Number of restart OBs Number of asynchronous error OBs Number of synchronous error OBs Number of diagnostic interrupt OBs Nesting depth Per priority class Counters, timers and their retentivity S7 counters Quantity Retentivity · Adjustable

6ES7518-4AP00-3AB0
32 GB
Yes
1 ns 2 ns 2 ns 6 ns
10000; blocks (OB/FB/FC/DB) and UDTs
1 ... 60 999; divided into: Number range available for the user: 1 ... 59 999 and number range for DBs generated by SFC 86: 60 000 ... 60 999 16 MB; the maximum size of the DB is 64 KB with non-optimized block access
0 ... 65 535 512 KB
0 ... 65 535 512 KB
512 KB 100 20 20 20; with minimum OB 3x cycle of 100 µs 50 3 2 2 100 4 2 1
24
2048
Yes

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

37

Technical specifications

IEC counters Quantity Retentivity · Adjustable S7 timers Quantity Retentivity · Adjustable IEC timers Quantity Retentivity · Adjustable Data areas and their retentivity Total retentive data area (including timers, counters, bit memories), max.
Bit memory Number, max. Number of clock memory bits
Data blocks Retentivity adjustable Retentivity preset Local data Per priority class, max. Address area Number of I/O modules I/O address area Inputs Outputs Of which per integrated IO subsystem · Inputs (volume)
· Outputs (volume)
Of which per CM/CP · Inputs (volume)
· Outputs (volume) Process image partitions Number of process image partitions, max.

6ES7518-4AP00-3AB0
Unlimited (limited only by work memory)
Yes
2048
Yes
Unlimited (limited only by work memory)
Yes
768 KB; in total; for bit memories, timers, counters, DBs and technological data (axes), usable retentive memory: 700 KB
16 KB 8; 8 clock memory bits, grouped in one clock memory byte
Yes No
64 KB; max. 16 KB per block
16384; max. number of modules/submodules
32 KB; all inputs are in the process image 32 KB; all outputs are in the process image
16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface 16 KB; 16 KB via the integrated PROFINET IO interface, 8 KB via the integrated DP interface
8 KB 8 KB
32

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

38

Manual, 09/2016, A5E35681108-AA

Hardware configuration Number of distributed IO systems
Number of DP masters Integrated Via CM
Number of IO controllers Integrated Via CM
Rack Modules per rack, max. Number of rows, max. PtP CM Number of PtP CMs
Time Clock Type Backup duration Deviation per day, max. Operating hours counter Quantity Time-of-day synchronization Supported On DP, master in AS, Master in AS, Slave On Ethernet via NTP Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces 1st interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet)

Technical specifications
6ES7518-4AP00-3AB0
64; a distributed IO system is understood to mean the integration of distributed I/O via PROFINET or PROFIBUS communication modules as well as the connection of I/O via AS-i master modules or links (e.g. IE/PB link)
1 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
2 8; a maximum of 8 CMs/CPs (PROFIBUS, PROFINET, Ethernet) can be inserted in total
32; CPU + 31 modules 1
The number of PtP CMs that can be connected is only limited by the available slots
Hardware clock 6 wk; at 40 °C ambient temperature, typ. 10 s; typ.: 2 s
16
Yes Yes Yes Yes Yes
3 1
2 Yes Yes; X1

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

39

Technical specifications

Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP
· MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· of these, IO devices with IRT, max. · Number of connectable IO devices for RT,
max. · of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Number of IO devices per tool, max. · Update times
Update time with IRT · with send clock of 125 µs · with send clock of 187.5 µs · for send clock of 250 µs · With send clock of 500 µs · With send clock of 1 ms · with send clock of 2 ms · with send clock of 4 ms · with IRT and "odd" send clock parameter as-
signment

6ES7518-4AP00-3AB0
Yes Yes Yes Yes Yes Yes
Yes Yes Yes Yes Yes Yes; as MRP redundancy manager and/or MRP client; max. number of devices in the ring: 50 Yes; requirement: IRT Yes Yes; max. 32 PROFINET devices 512; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 64 512
512 8; in total over all interfaces
8 The minimum value of the update time also depends on the communication component set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data.
125 µs 187.5 µs 250 µs to 4 ms 500 µs to 8 ms 1 ms to 16 ms 2 ms to 32 ms 4 ms to 64 ms Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs to 3 875 µs)

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

40

Manual, 09/2016, A5E35681108-AA

Technical specifications

Update time with RT · for send clock of 250 µs
· With send clock of 500 µs
· With send clock of 1 ms
· with send clock of 2 ms
· with send clock of 4 ms PROFINET IO device Services · PG/OP communication
· S7 routing
· Isochronous mode
· Open IE communication
· IRT
· MRP
· MRPD
· PROFIenergy
· Shared device
· Number of IO controllers with shared device, max.
2nd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet) Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server Media redundancy

6ES7518-4AP00-3AB0
250 µs to 128 ms 500 µs to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms
Yes Yes No Yes Yes Yes Yes; requirement: IRT Yes Yes 4
1 No Yes; X2
Yes Yes Yes Yes Yes No

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

41

Technical specifications

PROFINET IO controller Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Number of connectable IO devices, max.
· Number of connectable IO devices for RT, max.
· of these, in a line topology, max. · Number of IO devices that can be activat-
ed/deactivated simultaneously, max. · Update times
Update time with RT · With send clock of 1 ms PROFINET IO device Services · PG/OP communication · S7 routing · Isochronous mode · Open IE communication · IRT · MRP · MRPD · PROFIenergy · Prioritized startup · Shared device · Number of IO controllers with shared device,
max.

6ES7518-4AP00-3AB0
Yes Yes No Yes No No No Yes No 128; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET 128
128 8; in total over all interfaces
The minimum value of the update time also depends on the communication component set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data.
1 ms to 512 ms
Yes Yes No Yes No No No Yes No Yes 4

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

42

Manual, 09/2016, A5E35681108-AA

Technical specifications

3rd interface Interface hardware Number of ports Integrated switch RJ45 (Ethernet) Protocols PROFINET IO controller PROFINET IO device SIMATIC communication Open IE communication Web server 4th interface Interface hardware Number of ports RS 485 Protocols PROFIBUS DP master PROFIBUS DP slave SIMATIC communication Interface hardware RJ45 (Ethernet) 100 Mbps 1000 Mbps
Autonegotiation Autocrossing Industrial Ethernet status LED RS 485 Transmission rate, max. Protocols Number of connections Number of connections, max.
Number of connections reserved for ES/HMI/Web Number of connections via integrated interfaces Number of S7 routing connections
SIMATIC communication S7 communication, as server S7 communication, as client User data per job, max.

6ES7518-4AP00-3AB0
1 No Yes; X3
No No Yes Yes Yes
1 Yes; X4
Yes No Yes
Yes Yes; only possible on the X3 interface of CPU 1518 Yes Yes Yes
12 Mbps
384; via integrated interfaces of the CPU and connected CPs/CMs 10 192 64; in total, only 16 S7 routing connections are supported via PROFIBUS
Yes Yes See online help (S7 communication, user data size)

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

43

Technical specifications

Open IE communication TCP/IP · Data length, max. · Multiple passive connections per port, sup-
ported ISO-on-TCP (RFC1006) · Data length, max. UDP · Data length, max. DHCP SNMP DCP LLDP Web server HTTP HTTPS PROFIBUS DP master Number of connections, max. Services · PG/OP communication · S7 routing · Data record routing · Isochronous mode · Constant bus cycle time · Number of DP slaves
· Activation/deactivation of DP slaves OPC UA OPC UA server
· Application authentication · Security Policies
· User authentication Additional protocols MODBUS Media redundancy Switchover time in the case of cable break, typ. Number of devices in the ring, max.

Yes 64 KB
Yes

6ES7518-4AP00-3AB0

Yes 64 KB Yes 1472 bytes No Yes Yes Yes
Yes; standard and user-defined sites Yes; standard and user-defined sites
48; for the integrated PROFIBUS DP interface
Yes Yes Yes Yes Yes 125; in total, max. 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

Yes; Data Access (Read, Write, Subscribe), Runtime license required Yes
Available Security Policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256 "Anonymous" or with user name and password

Yes; MODBUS TCP
200 ms; with MRP; bumpless with MRPD 50

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

44

Manual, 09/2016, A5E35681108-AA

Technical specifications

6ES7518-4AP00-3AB0

Isochronous mode

Isochronous mode (application synchronized up to Yes; with minimum OB 6x cycle of 125 µs terminal)

Constant bus cycle time

Yes

S7 signaling functions

Number of stations that can be logged in for sig- 32 naling functions, max.

Block-related alarms

Yes

Number of configurable interrupts, max.

10000

Number of simultaneously active interrupts in interrupt pool

· Number of reserved user interrupts

1000

· Number of reserved interrupts for system di- 200 agnostics

· Number of reserved interrupts for motion con- 160 trol technology objects

Test/commissioning functions Joint commissioning (Team Engineering)
Status block
Single-step Status/modify Status/modify tag Tags
Number of tags, max. · Of which are status tags, max.

Yes; parallel online access possible for up to 10 engineering systems Yes; up to 16 simultaneously (in total from all ES clients) No
Yes Inputs/outputs, bit memory, DB, peripheral inputs/outputs, timers, counters
200; per job

· Of which are modify tags, max.

200; per job

Force Forcing, tags Number of tags, max. Diagnostics buffer Available Number of entries, max.
· Of which are power failure-proof

Peripheral inputs/outputs 200
Yes 3200 1000

Traces Number of configurable traces

8; up to 512 KB data possible per trace

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

45

Technical specifications

Interrupts/diagnostics/status information Diagnostics display LED RUN/STOP LED ERROR LED MAINT LED Connection display LINK TX/RX Supported technology objects Motion control
· Number of available motion control resources for technology objects (except cams)
· required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per measuring input
Controller · PID_Compact
· PID_3Step
· PID temp
Counting and measuring · High-speed counter Standards, approvals, certificates Suitable for safety functions Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max.
Vertical mounting position, min. Vertical mounting position, max.
Ambient temperature during storage/transport Min. Max.

6ES7518-4AP00-3AB0
Yes Yes Yes Yes
Yes; note: the number of axes affects the cycle time of the PLC program; selection guide via the TIA Selection Tool or SIZER 10240
40 80 160 80 20 160 40
Yes; universal PID controller with integrated optimization Yes; PID controller with integrated optimization for valves Yes; PID controller with integrated optimization for temperature
Yes
No
0 °C 60 ; display: 50 , the display is switched off at an operating temperature of typically 50  0 °C 40 ; display: 40 , the display is switched off at an operating temperature of typically 40 
-40 °C 70 °C

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

46

Manual, 09/2016, A5E35681108-AA

Technical specifications

Configuring Programming Programming language · LAD
· FBD
· STL
· SCL
· GRAPH
Know-how protection User program protection Copy protection Block protection Access protection Password for display Protection level: Write protection Protection level: Read/write protection Protection level: Complete protection Cycle-time monitoring Low limit High limit Open Development interfaces Size ODK SO file, max. Dimensions Width Height Depth Weights Weight, approx.

6ES7518-4AP00-3AB0
Yes Yes Yes Yes Yes
Yes Yes Yes
Yes Yes Yes Yes
Adjustable minimum cycle time Adjustable maximum cycle time
5.8 MB
175 mm 147 mm 129 mm
1988 g

General technical specifications
You can find information on the general technical specifications, such as standards and approvals, electromagnetic compatibility, protection class, etc., in the S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

Manual, 09/2016, A5E35681108-AA

47

Dimensional drawing

A

This section contains the dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with the front panel open. Keep to the dimensions when installing in cabinets, control rooms, etc.
Dimensional drawings for CPU 1518-4 PN/DP ODK

Figure A-1 Dimensional drawing of CPU 1518-4 PN/DP ODK, front and side views

Figure A-2 Dimensional drawing CPU 1518-4 PN/DP ODK, side view with open front panel

CPU 1518-4 PN/DP ODK (6ES7518-4AP00-3AB0)

48

Manual, 09/2016, A5E35681108-AA

SIMATIC S7-1200/S7-1500 F-CPUs
Product Information

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Content

Introduction
This Product Information contains important information on the F-CPUs specified in the section "Scope of validity". The Product Information is part of the product supplied. The information in this Product Information should be considered more up-to-date than other documentation if uncertainties arise.

Scope of validity

The statements in this product information apply to the F-CPUs listed below:

S7-1200 F-CPUs
· CPU 1212FC DC/DC/DC · CPU 1511(T)F-1 PN · CPU 1212FC DC/DC/Rly · CPU 1513F-1 PN · CPU 1214FC DC/DC/DC · CPU 1515(T)F-2 PN · CPU 1214FC DC/DC/Rly · CPU 1516(T)F-3 PN/DP · CPU 1215FC DC/DC/DC · CPU 1517(T)F-3 PN/DP · CPU 1215FC DC/DC/Rly · CPU 1518F-4 PN/DP
· CPU 1518F-4 PN/DP (MFP/ODK)

S7-1500 F-CPUs
· CPU 1510SP F-1 PN · CPU 1512SP F-1 PN · CPU 1513proF-2 PN · CPU 1516proF-2 PN

S7-1500 F-Software Controller · CPU 1505SP (T)F · CPU 1507S F · CPU 1508S F

© Siemens AG 2015 - 2019. All rights reserved

8

A5E35635424-AH, 11/2019

Areas of application
Main areas of application of the S7-1200/1500 F-CPUs are personal and machine safety and burner controls. In addition to the safety program, you can also program standard applications.
You can operate the S7-1200/1500 F-CPUs in safety or standard mode.
The installed STEP 7 Safety license is required for safety mode. If the license for STEP 7 Safety is not installed, you can use the S7-1200/1500 F-CPUs in standard mode. In standard mode, S7-1200/1500 F-CPUs behave like standard S7-1200/1500 CPUs.
Additional information on using the S7-1200/1500 F-CPUs in safety mode is available in the programming and operating manual "SIMATIC Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126)".
Additional information on using the S7-1200 F-CPUs in standard mode is available in the "S7-1200 Programmable controller (https://support.industry.siemens.com/cs/ww/en/view/109478121)" system manual.
Additional information on using the S7-1500 F-CPUs in standard mode is available in the relevant manuals for the S7-1500 and the standard-T-CPUs S7-1500 at the following links:
 CPUs 151x (http://support.automation.siemens.com/WW/view/en/67295862/133300)
 CPUs 151xT (https://support.industry.siemens.com/cs/ww/en/ps/22057/man)
 CPUs 151xSP (http://support.automation.siemens.com/WW/view/en/90466439/133300)
 CPU 151xpro-2 PN (https://support.industry.siemens.com/cs/ww/en/ps/13906/man)
 S7-1500 Software Controller (http://support.automation.siemens.com/WW/view/en/109740725)
You can find the latest firmware for the relevant F-CPU by searching for downloads with the respective article number in the Industry Online Support (https://support.industry.siemens.com).
Note Observe any application-specific requirements, for example on mains buffering for power supplies/power packs.

PFDavg and PFH values for F-CPUs

Below are the probability of failure on demand values (PFDavg, PFH values) for the above-named F-CPUs with a mission time of 20 years and an MTTR of 100 hours:

Low demand mode
low demand mode
According to IEC 61508:2010:
PFDavg = Average probability of dangerous failure on demand

High demand or continuous mode high demand/continuous mode According to IEC 61508:2010: PFH = Average frequency of a dangerous failure [h-1]

< 2E-05

< 1E-09

Overview of the work memory of F-CPUs compared with standard CPUs

CPU

Work memory

F-CPU

CPU 1212C DC/DC/DC CPU 1212C DC/DC/Rly CPU 1214C DC/DC/DC CPU 1214C DC/DC/Rly CPU 1215C DC/DC/DC CPU 1215C DC/DC/Rly CPU 1511-1 PN CPU 1511T-1 PN CPU 1513-1 PN CPU 1515-1 PN CPU 1515T-1 PN CPU 1516-3 PN/DP

75 KB
100 KB
125 KB
150 KB 225 KB 300 KB 500 KB 750 KB 1 MB

CPU 1212FC DC/DC/DC CPU 1212FC DC/DC/Rly CPU 1214FC DC/DC/DC CPU 1214FC DC/DC/Rly CPU 1215FC DC/DC/DC CPU 1215FC DC/DC/Rly CPU 1511F-1 PN CPU 1511TF-1 PN CPU 1513F-1 PN CPU 1515F-1 PN CPU 1515TF-1 PN CPU 1516F-3 PN/DP

Work memory 100 KB
125 KB
150 KB
225 KB 225 KB 450 KB 750 KB 750 KB 1.5 MB

F-CPUs

A5E35635424-AH, 11/2019

9

CPU CPU 1516T-3 PN/DP CPU 1517-3 PN/DP CPU 1517T-3 PN/DP CPU 1518-4 PN/DP (MFP/ODK) CPU 1510SP-1 PN CPU 1512SP-1 PN CPU 1513pro-2 PN CPU 1516pro-2 PN CPU 1505SP (T) CPU 1507S CPU 1508S

Work memory 1.5 MB 2 MB 3 MB 4 MB
100 KB 200 KB 300 KB 1 MB 1 MB 5 MB 10 MB

F-CPU CPU 1516TF-3 PN/DP CPU 1517F-3 PN/DP CPU 1517TF-3 PN/DP CPU 1518F-4 PN/DP (MFP/ODK) CPU 1510SP F-1 PN CPU 1512SP F-1 PN CPU 1513proF-2 PN CPU 1516proF-2 PN CPU 1505SP (T)F CPU 1507S F CPU 1508S F

Work memory 1.5 MB 3 MB 3 MB 6 MB
150 KB 300 KB 450 KB 1.5 MB 1.5 MB 7.5 MB 12.5 MB

Support of PROFIsafe V2 Interfaces that support PROFINET IO also support PROFIsafe V2.

Restriction with "CREAT_DB" and "DELETE_DB" instructions F-DBs can neither be created nor deleted.

Restriction with "READ_DBL" and "WRIT_DBL" instructions The destination address must not point to an F-DB.

Restrictions when configuring the retentive behavior of data blocks
The configuration of the retentive behavior of data blocks is not supported for F-DBs. This means that the actual values of the F-DBs will not be retentive in the event of Power OFF/ON and Restart (STOP-RUN) of the F-CPU. The F-DBs retain the initial values from the load memory.
The "Retain" check box is grayed-out for all tags in F-DBs.

Configuration control (option handling) on an S7-1200 F-CPU
Configuration control (option handling) on an S7-1200 F-CPU is possible with central modules subject to the following limitation:
 The fail-safe S7-1200 modules cannot be swapped and must also always be physically inserted into their configured slot.
Position the fail-safe S7-1200 modules directly next to the F-CPU. Position the standard modules on the right next to the failsafe S7-1200 modules.

Procedure for loading a configuration for firmware < V2.0 for S7-1500 F-CPUs
If you have loaded an S7-1500 F-CPU with a configuration for firmware as of V2.0 with configured protection level "Full access incl. fail-safe (no protection)" and you now want to load a configuration for firmware <= V1.8 to this F-CPU, you must observe the following:
When the configuration with firmware <= V1.8 is loaded to the F-CPU, you will be prompted to enter the password and the entered password will be identified as invalid.
As a remedy, format the SIMATIC Memory Card as described in the online help for STEP 7 under "Formatting an S7-1500 memory card". You can then load the configuration for firmware <= V1.8 to the F-CPU.

Use of isochronous mode interrupt (F-)OBs
The number of isochronous mode interrupt (F-)OBs depends on the F-CPU used. You can obtain information in the technical specification of the CPU.
If the sum of the isochronous mode interrupt OBs and the isochronous mode interrupt F-OBs exceeds the number specified in the technical specifications of the CPU, it is no longer possible to load the standard user program in RUN.

F-CPUs

10

A5E35635424-AH, 11/2019

Requirements for power supplies in the event of voltage interruption
Note To ensure adherence to IEC 61131-2 and NAMUR Recommendation NE 21, only use power packs/power supply units (230 V AC  24 V DC) with a mains buffering time of at least 20 ms. Observe the relevant requirement in your product standards (e.g. 30 ms for "burners" pursuant to EN 298) as regards possible voltage interruptions. The latest up-to-date information on PS components is available on the Internet (https://mall.industry.siemens.com). These requirements, of course, also apply to power packs/power supply units not constructed using ET 200SP or S7-300-/400-/1500 technology.
Display (for S7-1500 F-CPUs with display or panel) S7-1500 F-CPUs with display show you the following in the "Overview" menu under "Fail-safe":  Safety mode activated/deactivated  Collective F-signature  Last fail-safe change  Version of STEP 7 Safety with which the safety program was compiled.  Information on the F-runtime groups
­ Name of F-runtime group ­ F-runtime groups signature ­ Current cycle time ­ Max. cycle time ­ Current runtime ­ Max. runtime The following is displayed for each F-I/O under "Fail-safe parameters":  F-parameter signature (with addresses)  Safety mode  F-monitoring time  F-source address  F-destination address The following additional menu command is displayed in the "Settings" menu under "Protection":  Enable/disable F-password Write access to F-blocks is not permitted.
Note Controlling fail-safe inputs/outputs can result set the F-CPU to STOP.
Note With the display firmware V2.5, the display is not refreshed and cannot be operated for a few minutes after loading program changes. Afterwards, the display restarts.

F-CPUs

A5E35635424-AH, 11/2019

11

Web server S7-1200/1500 F-CPUs show you the following on the start page of the Web server:  Safety mode activated/deactivated  Collective F-signature  Last fail-safe change  Version of STEP 7 Safety with which the safety program was compiled.  Information on the F-runtime groups
­ Name of F-runtime group ­ F-runtime groups signature ­ Current cycle time ­ Max. cycle time ­ Current runtime ­ Max. runtime The following is displayed for each F-I/O on the "Module Information" web page in the "Fail-safe" tab:  F-parameter signature (with addresses)  Safety mode  F-monitoring time  F-source address  F-destination address Write access to F-blocks is not permitted.
Note Controlling fail-safe inputs/outputs can result set the F-CPU to STOP.

F-CPUs

12

A5E35635424-AH, 11/2019

The following points relate to the S7-1500 F-Software Controller

The S7-1500 F-Software Controller is a fail-safe software CPU that is used on the following devices.

S7-1500 F-Software Controller CPU 1505SP (T)F CPU 1507S F
CPU 1508S F

Device
· CPU 1515SP PC(2)
· IPC 2x7E* · IPC 4x7D* · IPC 4x7E* · IPC 627D** · IPC 677D** · IPC 827D** · IPC 4x7E* · IPC 627D** · IPC 677D** · IPC 827D**

* Can only be used when NVRAM is present (to be automatically allocated) ** Can only be used with PROFIBUS or PROFINET interface and when NVRAM is present (to be automatically allocated)

The devices specified in the table above react in a fail-safe manner when the S7-1500 F-Software Controller and STEP 7 Safety are used, even in the case of elevated electromagnetic interference. Special type tests for functional safety are therefore not required for these devices ­ in contrast to F-I/O. With regard to availability, however, you must observe the
application-specific requirements, especially the standards for burner control.

The yellow adhesive label with the TÜV SÜD test mark for functional safety included in the scope of delivery is exclusively intended for use in connection with S7-1500 F-Software Controllers (not included in the download version of the product package). You can use the adhesive label to mark the hardware on which the S7-1500 F-Software Controller is installed. You must remove the adhesive label when you uninstall the S7-1500 F-Software Controller.

Backup and restore

Backup and restoration of project data is not supported.

Passwords for protection levels

The PC station does not distinguish between the two passwords of protection levels "Full access incl. fail-safe (no protection)" and "Full access (no protection)". The S7-1500 F-Software Controller distinguishes between the two passwords of protection levels "Full access incl. fail-safe (no protection)" and "Full access (no protection)".

ENDIS_PW instruction

When the ENDIS_PW instruction is used on an IPC, you can be locked out of your system because an IPC has no mode selector. As a remedy, you can follow a procedure similar to that described in the online help for the ENDIS_PW instruction under "Preventing unintentional lockout of an S7-1200 CPU".

The following applies for PC stations up to and including V2.0: If an unintentional lockout occurs, you can remedy this only by uninstalling and installing the S7-1500 F-Software Controller.

The following applies for PC stations as of V2.1: Members of the Windows "Failsafe Operators" user group can bypass the lockout using the "Delete Configuration" function.

Note The Windows user "Everyone" is not taken into consideration if it is in the "Failsafe Operators" Windows user group.

TPM functionality The TPM functionality cannot be used for S7-1500 F-Software Controllers because it could result in a STOP. Using EWF or UWF and the EWF or UWF Manager You cannot select EWF or UWF and the EWF or UWF Manager for the CPU volume.

F-CPUs

A5E35635424-AH, 11/2019

13

Other particularities
WARNING You must limit access for the S7-1500 F-Software Controller through access protection to persons who are authorized to install or uninstall the software of the S7-1500 F-Software Controller.
Note With an S7-1500 F-Software Controller with a PC station up to and including V2.1, the "Delete Configuration" function is only offered on the PC-station panel when no access protection (no protection) is set up on the F-CPU. With a PC station as of V2.2, it is checked whether the Windows user is a member of the "Failsafe Operators" Windows user group. If the logged-on Windows user is a member of the group, they can execute the "Delete Configuration" function even when the F-password is set. If the logged-on Windows user is not a member of the group, the PC station behaves as up to V2.1.
Note If the S7-1500 F-Software Controller features an access protection, this is not deleted with "Delete Configuration" and is retained.
Note Required BIOS version for CPU 1505SP F prior to V2.5 For use of the CPU 1505SP F, you require BIOS version V2.00_02.01 or higher.
Note The CPU clock must not be changed in RUN because this would result in a STOP. You can prevent this by disabling the energy-saving function.
Note Assignment of PROFIsafe addresses for F-modules via PROFIBUS on IPCs with S7-1500 F Software Controller prior to V2.5 If you want to assign PROFIsafe addresses for F-modules that are being operated via PROFIBUS on an IPC with an S7-1500 F-Software Controller, assign the PROFIsafe addresses to the F-modules and then perform a power on/power off of the PROFIBUS station.
Note Loading the safety program or activating safety mode for S7-1500 F Software Controller prior to V2.5 After loading the safety program or activating safety mode, close the panel and then open it again to update the display on the panel.
Note If you execute an update for a S7-1500 F Software Controller with V2.0 to a version > 2.0, the value "Last fail-safe change" is set to the time of installation if a safety program is already installed on the S7-1500 F-Software Controller.
Note The "Configuration file export" functionality requires the STEP 7 Safety add-on package as of V15 and an S7-1500 F Software Controller prior to V2.5 with Windows.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY
F-CPUs
1A54E35635424-AH, 11/2019

F-CPUs A5E35635424-AH, 11/2019

SIMATIC Drive Controller

SIMATIC SIMATIC Drive Controller
Equipment Manual

Preface

SIMATIC Drive Controller Documentation Guide

1

Product overview

2

Connecting

3

Interrupts, diagnostics

alarms, error messages and

4

system alarms

Technical specifications

5

Dimension drawing

A

11/2019
A5E46600370-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46600370-AA  11/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This equipment manual supplements the system manual of the SIMATIC Drive Controller family of controllers. It contains a concise description of the SIMATIC Drive Controller hardware and, in addition to the product overview, includes information on:
 Interfaces
 Wiring diagrams
 Display and operator controls
 Technical specifications
In the SIMATIC Drive Controller system manual, you will find information on configuring, installing, wiring and commissioning the SIMATIC Drive Controller, among other things.
All cross-system functions, such as motion control and communication functions, are described in the function manuals.
The information provided in this manual and the system manual enables you to commission the SIMATIC Drive Controller.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Also take note of information labeled as follows:
Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

3

Preface
Special information
Note Important note for maintaining the operational safety of your system Systems with safety-oriented variants are subject to special operational safety requirements on the part of the operator. The supplier is also obliged to comply with special product monitoring measures. For this reason, we inform you in personal notifications about product developments and features that are (or could be) relevant to the operation of systems from a safety perspective. By subscribing to the corresponding notifications, you will ensure that you are always up-todate and able to make changes to your system when necessary. Log in to Industry Online Support. Follow the links below, and right-click on "email on update": SIMATIC S7-1500/SIMATIC S7-1500F (https://support.industry.siemens.com/cs/ww/en/ps/13716) Distributed I/O (https://support.industry.siemens.com/cs/ww/en/ps/14029) STEP 7 (TIA Portal) (https://support.industry.siemens.com/cs/ww/en/ps/14667) SINAMICS S120 (https://support.industry.siemens.com/cs/ww/en/ps/13231) SINAMICS Startdrive (https://support.industry.siemens.com/cs/ww/en/ps/13438) Operator control and monitoring systems (https://support.industry.siemens.com/cs/ww/en/ps/14729) Industrial Communication (https://support.industry.siemens.com/cs/ww/en/ps/15247) Safety systems ­ Safety Integrated (https://support.industry.siemens.com/cs/ww/en/ps/19902)
Note When using F-CPUs in safety mode and fail-safe modules, observe the description of the Fsystem in SIMATIC Safety - Configuring and Programming (https://support.industry.siemens.com/cs/ww/en/view/54110126).
Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

SIMATIC Drive Controller

4

Equipment Manual, 11/2019, A5E46600370-AA

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

5

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com) and in the Information and Download Center (https://www.siemens.com/automation/infocenter).

SIMATIC Drive Controller

6

Equipment Manual, 11/2019, A5E46600370-AA

Table of contents

Preface ................................................................................................................................................... 3

1 SIMATIC Drive Controller Documentation Guide ..................................................................................... 9

2 Product overview .................................................................................................................................. 11

2.1 2.1.1

Application range ....................................................................................................................11 SIMATIC Drive Controller .......................................................................................................11

2.2

Components and functionality ................................................................................................16

2.3

Hardware properties ...............................................................................................................20

2.4

Firmware functions of the CPU...............................................................................................24

2.5

Firmware functions of SINAMICS Integrated..........................................................................30

2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6

Operator controls, displays and connection elements............................................................32 View of SIMATIC Drive Controller with front covers ...............................................................32 View of SIMATIC Drive Controller without front covers ..........................................................33 Top view of SIMATIC Drive Controller....................................................................................34 View of the SIMATIC Drive Controller from below..................................................................35 Front covers ............................................................................................................................36 Nameplates .............................................................................................................................38

2.7

Mode selector .........................................................................................................................41

2.8

FUNCT button.........................................................................................................................42

3 Connecting ........................................................................................................................................... 43

3.1

Supply voltage X124 ...............................................................................................................43

3.2

PROFINET X150, X160 and X130 .........................................................................................46

3.3

PROFIBUS X126 ....................................................................................................................49

3.4

Digital inputs and outputs of X122, X132 and X142 ...............................................................50

3.5

DRIVE-CLiQ interfaces X100 to X103 ....................................................................................56

3.6 3.6.1 3.6.2 3.6.3

Wiring and block diagrams .....................................................................................................57 SIMATIC Drive Controller block diagram................................................................................57 Onboard digital inputs/digital outputs of X122, X132 and X142 .............................................58 DRIVE-CLiQ interfaces X100 to X103 ....................................................................................59

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

7

Table of contents

4 Interrupts, diagnostics alarms, error messages and system alarms ....................................................... 61

4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5

Status and error displays ....................................................................................................... 61 Overview ................................................................................................................................ 61 Status and error display of the CPU ...................................................................................... 63 Status and error display of SINAMICS Integrated ................................................................. 65 ACT LED and interface LEDs ................................................................................................ 66 7-segment display .................................................................................................................. 68

4.2 4.2.1

Interrupts, diagnostics and system messages ....................................................................... 69 Interrupts, diagnostics and system messages ....................................................................... 69

5 Technical specifications ........................................................................................................................ 70

A Dimension drawing ............................................................................................................................... 88

SIMATIC Drive Controller

8

Equipment Manual, 11/2019, A5E46600370-AA

SIMATIC Drive Controller Documentation Guide

1

The documentation for the SIMATIC Drive Controller is divided into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC Drive Controller. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, interfaces, wiring diagrams, display and operator control elements and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC Drive Controller and SIMATIC S7-1500 automation system, such as diagnostics, communication, Motion Control, Web server and OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

9

SIMATIC Drive Controller Documentation Guide

S7-1500/ET 200MP Manual Collection
The S7-1500/ET 200MP Manual Collection contains the complete documentation on the SIMATIC Drive Controller gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SINAMICS documentation
The SINAMICS documentation contains detailed descriptions of the SINAMICS S120 automatic speed control and SINAMICS S210 servo drive systems. You can find the documentation by entering the manual title in the search box on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/13229/man).
The SINAMICS Technical Documentation (https://support.industry.siemens.com/cs/ww/en/view/108993276) web page provides information on the topics:
 Ordering documentation/documentation overview
 Additional links for downloading documents
 Using documentation online (find and browse manual/information)

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

SIMATIC Drive Controller

10

Equipment Manual, 11/2019, A5E46600370-AA

Product overview

2

2.1

Application range

2.1.1

SIMATIC Drive Controller

Overview

The SIMATIC Drive Controller is a drive-based controller in the SIMATIC S7-1500 range.
A SIMATIC Drive Controller combines the following functionalities in a SINAMICS S120 Booksize Compact enclosure:
 Fail-safe SIMATIC S7-1500 technology CPU with integrated technology I/Os
 SINAMICS S120 drive control
The two components are referred to as "CPU" and "SINAMICS Integrated" in this documentation.
The integrated SINAMICS S120 drive control is based on a CU320-2 Control Unit. It can control
 a maximum of 6 servo drives,
 a maximum of 6 drives with vector control, or
 a maximum of 12 drives with U/f control
Fail-safe technology CPUs are available in two performance classes. Safety Integrated on the CPU side and drive side allows use in fail-safe applications.
The SIMATIC Drive Controller supports PROFINET and PROFIBUS DP communication.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

11

Product overview 2.1 Application range

Properties

Important properties of the SIMATIC Drive Controller:  Fail-safe technology CPU including drive control with safety functions integrated in the
drive  Extremely compact because the CPU is integrated in the drive system without taking up
any additional space  One memory card for CPU and SINAMICS Integrated
Easy handling  Less cabling and installation effort thanks to SINAMICS Integrated  Easy configuring in the hardware configuration of STEP 7  Central data management with one memory card for CPU and SINAMICS Integrated  Central license handling in the TIA Portal  Easy and efficient commissioning and optimization of drives using the SINAMICS
Startdrive engineering tool in the TIA Portal  Optimization function for determining the optimal precontrol and gain (Kv factor) for the
closed loop position control of the axis
Optimized for production machinery  Performance classes and memory size optimized for production machinery  Wide range of interfaces, consistent across performance range  Technology I/Os onboard
­ 12 digital inputs and 16 user-configurable digital inputs/outputs ­ Up to 8 outputs configurable as high-speed outputs for ultra-short output delays and
maximum switching precision, e.g. can be configured for output cam applications. ­ Up to 16 inputs configurable as measurement sensing inputs for position detection ­ Additional technology functions such as oversampling and event/period duration
measurement

SIMATIC Drive Controller

12

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.1 Application range
Areas of application SIMATIC Drive Controllers are used, for example, in applications in which the SINAMICS S120 drive family is being used because of the need for:  A highly dynamic, flexible multi-axis drive system:
­ Broad performance range ­ Comprehensive range of motors (including linear drives, external drives, etc.) ­ Comprehensive control modes (servo, vector, U/f) ­ Technology extensions  Controlled infeed/regenerative feedback ­ For prevention of undesired harmonics ­ For a high level of robustness against line fluctuations ­ For energy recovery in braking mode
SIMATIC Drive Controllers are also used where there is a need for:  Safety solutions for machine and operator protection  A compact, space-saving design  High performance for motion control and high-speed I/O  Modular machine concepts with fast isochronous mode
Typical areas of application are:  Multi-axis machines (e.g. printing and paper machines)  High-performance applications with short machine cycles (e.g. packaging machines and
handling applications)  Compact machines in which there is limited room for the controller and drive system (e.g.
control cabinets in the machine base)  Distributed control and drive concepts  Synchronization of multiple SIMATIC Drive Controller s using cross-PLC synchronous
operation

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

13

Product overview 2.1 Application range

SIMATIC Drive Controller performance classes
The SIMATIC Drive Controller contains a failsafe CPU from the SIMATIC S7-1500 family and a SINAMICS S120 drive control. Two performance classes are available.

Table 2- 1 Overview of performance classes

Performance class Low to mid-range applications High-performance applications

SIMATIC Drive Controller CPU 1504D TF CPU 1507D TF

Article number 6ES7615-4DF10-0AB0 6ES7615-7DF10-0AB0

Performance characteristics of the CPUs
The SIMATIC Drive Controller sdiffer in terms of the integrated CPU. The CPUs can be used for lower and mid-range applications all the way to the high-end range of machine and plant automation. The following table shows key performance characteristics of the SIMATIC Drive Controllers.

Table 2- 2 Overview of SIMATIC Drive Controller performance characteristics

Performance characteristic Data work memory, max. Code work memory, max. Retentive data area (including timers, counters, bit memory) Load memory/mass storage, max.
I/O address area, max. Integrated interfaces
SINAMICS Integrated Integrated inputs and outputs (onboard I/O) Configuration control CPU web server Isochronous mode3)

1504D TF 4 MB 2 MB 768 KB
32 GB (with SIMATIC memory card) 32/32 KB 1 x PROFINET IO IRT (3-port switch) 1 x PROFINET IO RT 1 x PROFINET basic services (1000 Mbps) 1 x PROFIBUS DP 2 x USB 3.01) 4 x DRIVE-CLiQ On basis of CU320-2 CPU: 8 DI/DQ SINAMICS Integrated: 12 DI, 8 DI/DQ X X PROFINET IO with IRT (X150) PROFIBUS DP (X126) SINAMICS Integrated Technology I/Os (X142)

1507D TF 20 MB 6 MB 768 KB
32 GB (with SIMATIC memory card) 32/32 KB 1 x PROFINET IO IRT (3-port switch) 1 x PROFINET IO RT 1 x PROFINET basic services (1000 Mbps) 1 x PROFIBUS DP 2 x USB 3.01) 4 x DRIVE-CLiQ On basis of CU320-2 CPU: 8 DI/DQ SINAMICS Integrated: 12 DI, 8 DI/DQ X X PROFINET IO with IRT (X150) PROFIBUS DP (X126) SINAMICS Integrated Technology I/Os (X142)

SIMATIC Drive Controller

14

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.1 Application range

Performance characteristic Technology Integrated

1504D TF

1507D TF

CPU:

CPU:

· Motion control

· Motion control

· PID control Onboard I/O:

· PID control Onboard I/O:

· Event/period duration measurement · Event/period duration measurement

· Pulse width modulation (PWM)

· Pulse width modulation (PWM)

· Timer DI/DQ

· Timer DI/DQ

· Oversampling DI/DQ

· Oversampling DI/DQ

Number of positioning axes
Motion control resources4) Extended motion control resources4) Security Integrated Integrated system diagnostics Integrated safety functionality Degree of protection

Typical2): 10 Maximum: 30 2400 120 X X X IP 20

Typical2): 55 Maximum: 160 12 800 420 X X X IP 20

1) No assigned function

2) With 4 ms servo/IPO cycle and 35% CPU load from motion control

3) Besides the MC-Servo, only PROFINET interface X150 can also be operated isochronously with the clock pulse system of SINAMICS Integrated and the X142 technology I/Os. Isochronous coupling of PROFIBUS interface X126 with other clock systems is not possible. Additional drive systems must therefore be connected via the PROFINET interface.

4) For information on the resources used by technology objects, see the S7-1500 Motion Control function manuals. (https://support.industry.siemens.com/cs/ww/en/view/109751049)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

15

Product overview 2.2 Components and functionality

2.2

Components and functionality

Components of a SIMATIC Drive Controller system
A drive-based solution with the SIMATIC Drive Controller is made up of the following components:
 Power supply for SIMATIC Drive Controller and DRIVE-CLiQ components
 SIMATIC Drive Controller with fail-safe SIMATIC S7-1500 technology CPU and an integrated SINAMICS S120 drive control (based on CU320-2)
 SINAMICS S120 power units:
­ Line Modules
­ Motor Modules
 Sensor Modules (SMx)
 Terminal Modules (TM)
 Motors with/without DRIVE-CLiQ
You can expand the drive configuration limits of a SIMATIC Drive Controller by connecting additional drive systems using PROFINET IO with IRT, e.g. SINAMICS S120 CU320-2 for control of multiple axes or the SINAMICS S210 single-axis servo converter system.
Note
The PROFIBUS interface cannot be coupled with other clock pulse systems. If you expand the drive configuration limits with distributed drive systems, those systems must be connected via PROFINET IO interface X150. Besides the MC-Servo, only PROFINET interface X150 can also be coupled isochronously with the clock pulse system of SINAMICS Integrated and the X142 technology I/Os.

SIMATIC Drive Controller

16

Equipment Manual, 11/2019, A5E46600370-AA

Configuration example

Product overview 2.2 Components and functionality

 HMI device  SIMATIC Drive Controller  Line Module  SINAMICS S120 Double Motor Module  SINAMICS S120 Single Motor Module  SIMOTICS S servo motor  SINAMICS Terminal Module  SINAMICS Sensor Module SMC  SINAMICS S120 with CU320-2 for control of multiple axes  SINAMICS S210 single-axis servo converter system  ET 200SP I/O
Figure 2-1 Example: SIMATIC Drive Controller as a component in a system

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

17

Product overview 2.2 Components and functionality

Functionality

The SIMATIC Drive Controller combines the functionality of a SIMATIC S7-1500 TF-CPU and a SINAMICS S120 drive control based on CU320-2 in one compact device.
SIMATIC Drive Controllers are suitable for simple as well as complex motion control applications, including fail-safe applications when needed.
You can link and extend the SIMATIC Drive Controller , for example, with HMI and I/O systems using the wide range of communication interfaces. The drive control integrated in the SIMATIC Drive Controller (SINAMICS Integrated) supports the following control modes:
 Vector control
 Servo control
 U/f control
Vector control is recommended for drive solutions with continuous material webs, such as wire-drawing, film and paper machines. Servo control is suitable for clocked processes with precise yet highly dynamic position control with servo motors.
You interconnect all components of SINAMICS S120, including the motors and encoders, using DRIVE-CLiQ. You connect motors without a DRIVE-CLiQ interface, e.g. external motors or motors for retrofit applications, using Sensor Modules Cabinet-Mounted (SMC) or Sensor Modules External (SME).
Line Modules feed the power to the DC link. Optionally, Line Modules with controlled infeed/regenerative feedback ensure a constant DC-link voltage and high grid compatibility.
Motor Modules supply the motors with power from the DC link.
Terminal Modules are terminal extensions via DRIVE-CLiQ ­ for example, for drive-oriented digital or analog inputs/outputs.
Note
SINAMICS Integrated has a functional subset compared with a SINAMICS S120 CU320-2 and supports only the functions relevant in the control context. For example, SINAMICS Integrated does not support the following: · Drive Control Chart (DCC) · Basic positioner (EPOS) · Free function blocks (FBLOCKS) · Drive control blocks (DCB)
You can find additional information in the SIMATIC Drive Controller system manual (https://support.industry.siemens.com/cs/ww/en/view/109766665).

SIMATIC Drive Controller

18

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.2 Components and functionality
Further information
You can find a description of the Control Units, power units and supplementary system components of SINAMICS S120 in the following manuals:  SINAMICS S120 Control Units and Additional System Components
(https://support.industry.siemens.com/cs/ww/en/view/109763286)  SINAMICS S120 Booksize Power Units
(https://support.industry.siemens.com/cs/en/en/view/109766188)  SINAMICS S120 Booksize C/D-type Power Units
(https://support.industry.siemens.com/cs/ww/en/view/109763283)  SINAMICS S120 AC Drive
(https://support.industry.siemens.com/cs/ww/en/view/109757057)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

19

Product overview 2.3 Hardware properties

2.3

Hardware properties

Article numbers
SIMATIC Drive Controller with CPU 1504D TF: 6ES7615-4DF10-0AB0 SIMATIC Drive Controller with CPU 1507D TF: 6ES7615-7DF10-0AB0
Front and side views
The figure below shows the front view and side view of a SIMATIC Drive Controller.

 Holding clamp of shield support  Top cover  Side nameplate  Spacer  Bottom cover
Figure 2-2 SIMATIC Drive Controller front view and side view

SIMATIC Drive Controller

20

Equipment Manual, 11/2019, A5E46600370-AA

Top view

Product overview 2.3 Hardware properties
The figure below shows the top view of a SIMATIC Drive Controller.

 Spacer  Ventilation slots  DRIVE-CLiQ interfaces  Holding clamp of shield support  Release for top cover
Figure 2-3 SIMATIC Drive Controller top view

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

21

Product overview 2.3 Hardware properties

Properties

The SIMATIC Drive Controllers have the following properties:

Table 2- 3 Hardware properties

Properties Supply voltage (X124)

Description
The 24 V DC supply voltage for the SIMATIC Drive Controller is fed via a 4-pin cable connector located on the front of the SIMATIC Drive Controller.

Additional information
· Section Connecting (Page 43)
· SIMATIC Drive Controller system manual (https://support.industry.siem ens.com/cs/ww/en/view/1097 66665)

PROFINET IO

PROFINET interface (X150 P1R, X150 P2R, X150 P3)

The interface has three ports. In addition to basic

· Section Connecting

PROFINET functionality, it also supports PROFINET

(Page 43)

IO RT (Real-Time) and IRT (Isochronous Real-Time).

The interface can be operated isochronously with the · PROFINET function manual

clock pulse system of SINAMICS Integrated and the

(https://support.industry.siem

X142 technology I/Os.

ens.com/cs/ww/en/view/4994

PROFINET interface (X160 P1) The interface has one port. In addition to basic

8856)

PROFINET functionality, it also supports PROFINET

IO RT (Real-Time).

PROFINET interface (X130 P1) The interface has one port. It supports basic PROFINET functionality.

Operation of the CPU as · IO controller · I-device

· IO controller: As an IO controller the CPU controls the connected IO devices
· I-device: As an I-device (intelligent IO device) the CPU is assigned to a higher-level IO controller and is thereby used as an intelligent pre-processing unit of sub-processes

PROFIBUS DP PROFIBUS interface (X126)
Operation of the CPU as a DP master Isochronous mode
Additional interfaces USB 3.0 (X125, X135) DRIVE-CLiQ interfaces (X100 to X103)

The interface is used for connecting to a PROFIBUS network.
As a DP master, the CPU addresses the connected DP slaves. The CPU cannot be a DP slave.
The PROFIBUS interface can be operated isochronously. However, isochronous coupling with the clock pulse system of SINAMICS Integrated and the X142 technology I/Os is not possible.

Section Connecting (Page 43)
PROFIBUS function manual (https://support.industry.siemens .com/cs/ww/en/view/59193579)

No function assigned at present
The SIMATIC Drive Controller has four DRIVE-CLiQ interfaces. For each DRIVE-CLiQ interface, you have 24 V/450 mA available for connecting encoders and measuring systems.

Section Connecting (Page 43)

SIMATIC Drive Controller

22

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.3 Hardware properties

Properties Integrated inputs and outputs 12 DI (X122, X132)
8 DI/DQ (X122, X132)
8 DI/8 DQ (X142)

Description

Additional information

The digital inputs are assigned to SINAMICS Integrated . You use the digital inputs, for example, for the control of Safety Integrated basic functions via a terminal.

Section Connecting (Page 43)

Alternatively, you assign the digital inputs to the CPU, by means of configuration with telegram 39x.

The bidirectional digital inputs/outputs are assigned to SINAMICS Integrated . You use the digital inputs/outputs, for example, as measuring inputs via a PROFIdrive telegram.

Alternatively, you assign the digital inputs/outputs to the CPU, by means of configuration with telegram 39x.

The bidirectional digital inputs/outputs are assigned to the CPU. You configure each of the digital inputs/outputs according to your task:

· as a digital input or a digital output

· as a timer input, e.g. for measurement sensing inputs

· as a timer output, e.g. for output cam applications

· as an oversampling input or an oversampling output

· for event/period duration measurement

· for pulse width modulation (PWM)

· as a high-speed output

Accessories/spare parts
The following accessories are included in the scope of delivery of the SIMATIC Drive Controller and can also be ordered as spare parts:

Table 2- 4 Spare parts

Article Bottom cover Top cover Spacer Terminal kit · 3 x I/O connector for X122/X132/X142 · 1 x 24 V connector for X124 · 5 x DRIVE-CLiQ blanking cover

Article number 6ES7615-0AC10-0AA0 6ES7615-0AC10-1AA0 6SL3064-1BB00-0AA0 6SL3064-2CB00-0AA0

You can find additional information on accessories in the SIMATIC Drive Controller system manual (https://support.industry.siemens.com/cs/ww/en/view/109766665).

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

23

Product overview 2.4 Firmware functions of the CPU

2.4

Firmware functions of the CPU

The SIMATIC S7-1500 CPU of the SIMATIC Drive Controller supports the following functions:

Functions

Function Safety Integrated
Integrated system diagnostics Integrated web server
Integrated trace functionality

Description

Additional information

The integrated F-CPU of the SIMATIC Drive Controller processes standard and safety programs on a single component. This allows fail-safe data to be evaluated in the standard user program. As a result of the integration, the system advantages and the extensive functionality of SIMATIC are also available for fail-safe applications.
The F-CPU is certified for use in safety mode up to:
· Safety class (Safety Integrity Level) SIL 3 according to IEC 61508:2010
· Performance Level (PL) e and Category 4 according to ISO 13849-1:2006 or according to EN ISO 13849-1:2008

SIMATIC Safety - Configuring and Programming programming and operating manual (https://support.industry.sie mens.com/cs/ww/en/view/5 4110126)
Section Firmware functions of SINAMICS Integrated (Page 30)

An additional password protection for the F-configuration and safety program is set up for IT security.

Besides the F-CPU, SINAMICS Integrated also has integrated safety functions.

The system automatically creates alarms for the system diagnostics and outputs the alarms via a PG/PC, HMI device or web server. System diagnostics information is also available when the CPU is in STOP mode.

Diagnostics function manual (https://support.industry.sie mens.com/cs/ww/en/view/5 9192926)

The web server lets you access the CPU data over a network.

· Web Server function

Evaluations, diagnostics, and modifications are thus possible over

manual

long distances. Monitoring and evaluation is possible without STEP 7; all you need is a Web browser. Make sure that you take appropriate measures (e.g. limiting network access, using firewalls) to protect the CPU from being compromised.

(https://support.industry. siemens.com/cs/ww/en/vie w/59193560)

· Security with SIMATIC S7 Controller system manual (https://support.industry. siemens.com/cs/ww/en/vie w/90885010)

Trace functionality supports you in troubleshooting and/or optimizing the user program.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.
The device saves the recordings. You can read out and permanently save the recordings with the configuration system (ES), if required. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes.

Using the Trace and Logic Analyzer Function function manual (https://support.industry.sie mens.com/cs/ww/en/view/6 4897128)

SIMATIC Drive Controller

24

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.4 Firmware functions of the CPU

Function OPC UA
Configuration control

Description

Additional information

With OPC UA, you can exchange data via an open and manufacturer-neutral communication protocol. The CPU can act as an OPC UA DA server. The CPU acting as the OPC UA server can communicate with OPC UA clients.
The OPC UA Companion Specification allows methods to be specified uniformly and independently of the manufacturer. Using these specified methods, you can easily integrate devices from various manufacturers into your plants and production processes.

Communication function manual (https://support.industry.sie mens.com/cs/ww/en/view/5 9192925)

You can use configuration control to operate different real hardware configurations with a configured maximum configuration of the hardware. This means especially in series machine manufacturing you have the option of operating/configuring different configuration variants of a machine with a single project.

SIMATIC Drive Controller system manual (https://support.industry.sie mens.com/cs/ww/en/view/1 09766665)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

25

Product overview 2.4 Firmware functions of the CPU

PROFINET IO

Function RT (Real-Time) IRT (Isochronous Real-Time)
Isochronous mode
MRP (Media Redundancy Protocol)
MRPD (Media Redundancy with Planned Duplication)
Shared device

Description

Additional information

RT prioritizes PROFINET IO telegrams over standard telegrams. This ensures the required determinism in the automation technology. In this process the data is transferred via prioritized Ethernet telegrams.

PROFINET function manual (https://support.industry.sie mens.com/cs/ww/en/view/4 9948856)

A reserved bandwidth within the send clock is available for IRT data. The reserved bandwidth ensures that the IRT data can be transmitted in time-synchronized intervals, unaffected by other high network loading (e.g. TCP/IP communication or additional real time communication). Update times with maximum determinism can be realized through IRT. Isochronous applications are possible with IRT.

With isochronous mode, measured values and process data are acquired and processed in a fixed system clock. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. Isochronous mode reduces possible fluctuations of the process response times to a minimum. Time-assured processing makes higher machine cycles possible.

With SIMATIC Drive Controller, the clock pulse systems of SINAMICS Integrated, PROFINET (X150) and the technology I/Os (X142) can be coupled together isochronously.

It is possible to establish redundant networks via the Media Redundancy Protocol. Redundant transmission links (ring topology) ensure that an alternative communication path is made available if a transmission link fails. The PROFINET devices that are part of this redundant network form an MRP domain.

RT operation is possible with the use of MRP.

The advantage of the MRP extension MRPD is that, in the event of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.

MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports. This eliminates the reconfiguration time of the ring.

The "Shared device" function allows you to divide the modules or submodules of an IO device up among different IO controllers. Numerous IO controllers are often used in larger or widely distributed systems. Without the "Shared device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required. The "Shared device" function allows the modules or submodules of an IO device to be divided up among different IO controllers, thus allowing flexible automation concepts. You can, for example, combine I/O modules that are physically close to each other in one IO device.

SIMATIC Drive Controller

26

Equipment Manual, 11/2019, A5E46600370-AA

Function PROFIenergy

Product overview 2.4 Firmware functions of the CPU

Description
The vendor- and device-neutral profile defined by the PNO allows you to significantly reduce your energy demand and costs. With PROFIenergy you switch off unneeded loads. Thus, energy costs drop noticeably during production breaks. PROFIenergy provides an easy, automated way of switching technologically-related plant parts off and on. Most of the energy savings comes from the process. The PROFINET device itself contributes only a few watts to the savings potential.

Additional information

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

27

Product overview 2.4 Firmware functions of the CPU

Integrated technology

Function

Description

Additional information

Motion control

The CPU of the SIMATIC Drive Controller supports the S7-1500 Motion Control functions via the technology objects speed axes, positioning axes, synchronized axes, external encoders, cams, cam tracks and measuring inputs.
· Speed-controlled axis for controlling a drive with speed specification

S7-1500(T) Motion Control function manuals (https://support.industry.sie mens.com/cs/de/en/view/10 9751049)

· Positioning axis for position-controlled positioning of a drive

· Synchronous axis for interconnecting with a leading value. The axis follows the position of the leading axis in synchronous operation.

· External encoder for detecting the actual position of an encoder and its use as a leading value for synchronous operation

· Cam, cam track for position-dependent generation of switching signals

Extended motion control functions

· Measuring input for fast, accurate and event-dependent sensing of actual positions
You program the technology objects with Motion Control instructions according to PLCopen.
The SIMATIC Drive Controller contains a SIMATIC S7-1500 technology CPU. The technology CPU provides extended motion control functions:

· Extended synchronous operation functions ­ Synchronization with specification of the synchronous position ­ Actual value coupling ­ Offset of leading value on following axis ­ Camming
· Cam

· Up to four encoders or measuring systems as actual position for position control

· Control of kinematics, such as ­ Cartesian portals ­ Roller pickers ­ Delta pickers ­ SCARA
· Cross-PLC synchronous operation: Coupling between leading axis or external encoder and following axis via PROFINET IO with IRT

Integrated closed-loop · PID Compact (continuous PID controller)

control functionality

· PID 3Step (step controller for integrating actuators)

· PID Temp (temperature controller for heating and cooling with two separate actuators)

PID Control function manual (https://support.industry.sie mens.com/cs/ww/en/view/1 08210036)

SIMATIC Drive Controller

28

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.4 Firmware functions of the CPU

Integrated safety

Function Know-how protection Copy protection Access protection Integrity protection
Password provider

Description

Additional information

The know-how protection protects user blocks against unauthorized access and modifications.
Copy protection links user blocks to the serial number of the SIMATIC memory card or to the serial number of the SIMATIC Drive Controller. User programs cannot run without the corresponding SIMATIC memory card or SIMATIC Drive Controller.

SIMATIC Drive Controller system manual (https://support.industry.sie mens.com/cs/ww/en/view/1 09766665)

Extended access protection provides high-quality protection against unauthorized configuration changes. You can use authorization levels to assign separate rights to different user groups.

The CPUs dispose of integrity protection by default. Integrity protection identifies possible manipulations of engineering data on the SIMATIC memory card or during data transfer between TIA Portal and CPU.

Integrity protection also checks the communication from a SIMATIC HMI system to the CPU for possible manipulations of engineering data.

If integrity protection identifies the manipulation of engineering data, the user receives a corresponding message.

As an alternative to manual password input you can connect a password provider to STEP 7. A password provider offers the following advantages:

· Convenient handling of passwords.

STEP 7 reads the password automatically for the blocks. This saves you time.
· Optimum block protection because the users themselves do not know the password.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

29

Product overview 2.5 Firmware functions of SINAMICS Integrated

2.5

Firmware functions of SINAMICS Integrated

The drive control integrated in the SIMATIC Drive Controller is based on the drive control of the SINAMICS S120 Control Unit CU320-2 (firmware version V5.x).

SINAMICS Integrated provides a functional subset of the SINAMICS S120 CU320-2 drive functions that are relevant in the control context. You can find details at the end of the section under "Unsupported functions and components".

The integrated drive control supports the following:

 Servo control, for maximum dynamic response

 Vector control, for maximum torque accuracy

 U/f control

You can expand the drive configuration limits of the SIMATIC Drive Controller using PROFINET IO IRT, for example with SINAMICS S120 Control Unit CU320-2.

Safety functionality of SINAMICS Integrated
SINAMICS Integrated of the SIMATIC Drive Controller supports the same Safety Integrated functions as SINAMICS S120 CU320-2.
 Safety Integrated Basic Functions
 Safety Integrated Extended Functions
 Safety Integrated Advanced Functions
The safety functions correspond to the functions according to EN 61800-5-2 (to the extent they are defined there).

Supported SINAMICS functions requiring a license
SINAMICS Integrated supports only the following licensed functions of a SINAMICS S120 CU320-2:
 SINAMICS Safety Integrated Extended Functions
 SINAMICS Safety Integrated Advanced Functions
 SINAMICS Technology Extension VIBX - Vibration Extinction
 SINAMICS Technology Extension RAILCTRL - Rail Control/Multi-Carrier-System
The SINAMICS Technology Extensions VIBX and RAILCTRL are in preparation for the SIMATIC Drive Controller.

PROFIdrive Integrated
Cyclic communication between CPU and SINAMICS Integrated is based on PROFIdrive mechanisms.
The communications services used for this are based on PROFIBUS DP and are processed over an internal, high-performance interface.

SIMATIC Drive Controller

30

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.5 Firmware functions of SINAMICS Integrated
Unsupported functions and components
SINAMICS Integrated provides a functional subset of the SINAMICS S120 CU320-2 drive functions that are relevant in the control context. The following functionalities/components are not supported by the SIMATIC Drive Controller:  Basic positioner (EPOS) function module  Integrated logic processing in the drive with Drive Control Chart (DCC)  Drive Control Block (DCB)  Free function blocks (FBLOCKS)  SINAMICS web server  SIMOTION-specific or SINUMERIK-specific DRIVE-CLiQ components (e.g. TM17
Terminal Modules, HLA Hydraulic Drive, CX32-2 Controller Extension, NX10.3/NX15.3 Numeric Control Extensions)  Expansion boards, e.g. TB30, CBE20, CBE30-2
Note Use of SINAMICS S120 CU320-2 Control Units Additional CU320-2 Control Units on the SIMATIC Drive Controller have the full range of functions compared with SINAMICS Integrated.
Further information
You can find a detailed description of the functions of SINAMICS S120 CU320-2 in the SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/us/en/view/109754299) function manual.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

31

Product overview 2.6 Operator controls, displays and connection elements

2.6

Operator controls, displays and connection elements

2.6.1

View of SIMATIC Drive Controller with front covers
The following figure shows the front view of the SIMATIC Drive Controllers.

 Top cover  3 LEDs for CPU (RUN, ERR, MT)  3 LEDs for SINAMICS Integrated (RDY, COM, third LED has no assigned function)  Rings for access security  Pushbutton for opening the bottom cover  Bottom cover
Figure 2-4 SIMATIC Drive Controller front view

SIMATIC Drive Controller

32

Equipment Manual, 11/2019, A5E46600370-AA

2.6.2

Product overview 2.6 Operator controls, displays and connection elements
View of SIMATIC Drive Controller without front covers
The figure below shows the operator controls and interfaces on the front of the SIMATIC Drive Controller.

 X122, X132: 12 DI + 8 DI/DQ (assigned to SINAMICS Integrated)  X124: Connection for the 24 V DC supply voltage  X126: PROFIBUS DP interface  ACT LED: Display for access to SIMATIC memory card  FUNCT button for diagnostic purposes, see section FUNCT button (Page 42)  Protective conductor connection M5, Torx T25, tightening torque 3 Nm (26.6 lbf in)  X142: 8 DI/DQ (assigned to CPU)  PROFINET IO IRT (X150), with 3 ports: P1R, P2R, P3  PROFINET IO RT (X160), with 1 port (P1)  Basic PROFINET services (X130), with 1 port (P1), 1000 Mbps  LED displays  7-segment display, for diagnostic purposes  X50: Slot for SIMATIC memory card  Mode selector, see section Mode selector (Page 41)  X125, X135: 2 × USB 3.0 interface (no function assigned at present)
Figure 2-5 SIMATIC Drive Controller display and operator controls as well as interfaces

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

33

Product overview 2.6 Operator controls, displays and connection elements

2.6.3

Top view of SIMATIC Drive Controller
The figure below shows the top of the SIMATIC Drive Controller with the four DRIVE-CLiQ interfaces X100 to X103.

 X100 to X103: 4 × DRIVE-CLiQ interface
Figure 2-6 SIMATIC Drive Controller DRIVE-CLiQ interfaces

SIMATIC Drive Controller

34

Equipment Manual, 11/2019, A5E46600370-AA

2.6.4

Product overview 2.6 Operator controls, displays and connection elements
View of the SIMATIC Drive Controller from below
A DisplayPort interface (X140) is located on the underside of the SIMATIC Drive Controller. This interface is used exclusively for service purposes by Siemens and cannot be used to connect a display.

 X140: DisplayPort
Figure 2-7 SIMATIC Drive Controller DisplayPort

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

35

Product overview 2.6 Operator controls, displays and connection elements

2.6.5

Front covers
The interfaces and operator controls on the front are concealed with covers. You must open the covers before you can connect cables to the interfaces or reach the operator controls of the Drive Controller.

 Release catch for top cover  Top cover  Bottom cover  Button for releasing the bottom cover  Front nameplate with Data Matrix Code  Label with MAC addresses and other information
Figure 2-8 SIMATIC Drive Controller front covers
NOTICE Possible damage of electronic components (ESD)
Only touch components, modules and devices when you have grounded yourself with one of the following measures: · Wear an ESD bracelet · Wear ESD shoes or ESD grounding strips in ESD areas with a conducting floor

SIMATIC Drive Controller

36

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.6 Operator controls, displays and connection elements
Opening the top cover
To open the top cover, follow these steps:
1. Undo the release catch  on the inside of the cover  by gently pressing down on it. 2. Fold down the cover .
Note The layout and labeling of the interfaces is shown on the inside of the top cover.
Removing the top cover
To remove the top cover, follow these steps: 1. Open the top cover. 2. Release the cover by applying gentle pressure to the side of the hinge. 3. Swing the cover aside to remove it.
Opening the bottom cover
The operator controls of the SIMATIC Drive Controller and the slot for the SIMATIC memory card are located behind the bottom cover. To open the bottom cover, follow these steps:
1. Press the button  to release the cover. 2. Fold down the cover . The MAC addresses  of the SIMATIC Drive Controller and information about the device
can be found on the inside of the bottom cover.
Removing the bottom cover
To remove the bottom cover, follow these steps: 1. Open the bottom cover. 2. Release the cover by applying gentle pressure to the side of the hinge. 3. Swing the cover aside to remove it.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

37

Product overview 2.6 Operator controls, displays and connection elements

2.6.6

Nameplates
The nameplates of the SIMATIC Drive Controller are described below. The contents of the individual nameplate fields of the device may differ from the contents described in this manual (e.g. advanced product version, approvals and markings not yet granted).

Side nameplate
The figure below shows the side nameplate.

 Product name  DMC (Data Matrix Code)  Article number  Material number  MAC addresses  Hardware functional status  Serial number  Approvals and markings
Figure 2-9 Side nameplate

SIMATIC Drive Controller

38

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.6 Operator controls, displays and connection elements
Front nameplate
You will find the front nameplate when the bottom cover for the operator controls and displays is open. It contains information about the device and a Data Matrix Code with the MAC addresses of the SIMATIC Drive Controller.
 Data Matrix Code
Figure 2-10 Front nameplate
Label on bottom cover
The inside of the bottom cover contains a label with the MAC addresses and additional device information of the SIMATIC Drive Controller.

 MAC addresses  Product name  Article number  Serial number and HW version  Material number
Figure 2-11 Label with MAC addresses

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

39

Product overview 2.6 Operator controls, displays and connection elements
Evaluation of Data Matrix Code
You can evaluate the Data Matrix Code (DMC) using an appropriate reader or a smartphone app. Suitable is, for example, the Industry Online Support Mobile App. (https://support.industry.siemens.com/cs/ww/en/sc/2067)
Note Note that the DMC content may vary depending on the delivery state.

Nameplate Front nameplate
Side nameplate

DMC data string
1P6ES7615-4DF10-0AB0+ ST-L86065647 1Z FS: 01 SIMATIC S7-1500, CPU 1504D TF X150 00-1F-F8-4A-0D-BC X160 00-1F-F8-4A-0D-C0 X130 00-1F-F8-4A-0D-C2 1P6ES7615-4DF100AB0+23S001FF84A0DBC+ ST-L86065647

Feature Article number (1P) Serial number (S) Functional version (1Z) Module name
MAC address interface X150, X160, X130
Article number (1P) MAC address interface X150 (23S) Serial number (S)

Property (example) 6ES7615-4DF10-0AB0 T-L86065647 FS: 01 SIMATIC S7-1500, CPU 1504D TF X150 00-1F-F8-4A-0D-BC X160 00-1F-F8-4A-0D-C0 X130 00-1F-F8-4A-0D-C2 6ES7615-4DF10-0AB0 001FF84A0DBC
T-L86065647

For detailed information on assigning the MAC address, refer to "MAC address assignment" in the section PROFINET X150, X160 and X130 (Page 46).

SIMATIC Drive Controller

40

Equipment Manual, 11/2019, A5E46600370-AA

Product overview 2.7 Mode selector

2.7

Mode selector

The mode selector is designed as a toggle switch. You use the mode selector to set the operating mode of the CPU.

 Mode selector
Figure 2-12 Mode selector
The following table shows the meaning of the three switch positions along with an explanation.

Table 2- 5 Mode selector switch positions

Switch position
RUN ­ latching STOP ­ latching (middle position) MRES ­ not latching

Meaning RUN mode STOP mode
Memory reset

Explanation The CPU is running the user program The user program is not running.
Position for the memory reset of the CPU

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

41

Product overview 2.8 FUNCT button

2.8

FUNCT button

You can use the FUNCT button to select and initiate module functions.

 FUNCT button
Figure 2-13 FUNCT button
One function is available at present: Function 1: Save service data on SIMATIC memory card

SIMATIC Drive Controller

42

Equipment Manual, 11/2019, A5E46600370-AA

Connecting

3

3.1

Supply voltage X124

24 V DC supply voltage (X124)
The SIMATIC Drive Controller is powered by an external 24 V DC power supply. Power supplies from the SITOP family, for example, can be used.
WARNING
Danger to life from hazardous voltage when an unsuitable power supply is connected
Design the 24 V direct voltage as protective extra-low voltage.
When an external 24 V DC power supply is connected, it must comply with the requirements for protective extra-low voltage (PELV) according to UL 61010. A backup fuse that reliably trips within 120 milliseconds in the event of a short-circuit at an ambient temperature of 0 °C must also be available.
When OVC III circuits up to 600 V AC (phase to neutral voltage) are the primary supply of the utilized power supply, ensure that the clearance between open contacts of the fuse or the single-fault-secure circuit is 3.0 mm according to UL 61010.
When using an external power supply, ensure that the trip rating of the utilized fuse corresponds to the maximum possible short-time short-circuit current of the utilized power supply.
Note
Ground potential and enclosure (PE) are connected to one another internally with low impedance. You must therefore observe the following: · Insulation monitoring devices are not permitted in the 24 V power supply. · If you are using external power supplies (e.g. SITOP), you must connect the ground
potential to the protective conductor terminal (PELV). · You must provide adequately dimensioned equipotential bonding connections between
the 24 V power supply and all grounded, locally separate loads.
You can find information on equipotential bonding in the SIMATIC Drive Controller system manual (https://support.industry.siemens.com/cs/ww/en/view/109766665).

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

43

Connecting 3.1 Supply voltage X124

The following table shows the pin assignment of the 4-pin connector.

Table 3- 1 Connector pin assignment for 24 V DC power supply

X124

Pin

Signal name

Meaning

1

+

Power supply

2

+

3

M

Ground

4

M

Technical specifications
24 V DC supply voltage (20.4 ... 28.8 V)
Current consumption, max.: 13.1 A

The 24 V supply is looped through via the 24 V connector. In the connector, pin 1 is jumpered to pin 2 and pin 3 is jumpered to pin 4. The maximum current can be limited by the current carrying capacity of the cable. The current carrying capacity of the cable depends on the cabling method (e.g. in a cable duct, on a cable rack), among other things.
Select the permissible conductor cross-section in conformance with national rules (NEC, VDE, etc.) from the following table "Interface X124". The basis for this can be the output current of the 24 V DC supply or the overcurrent device used in the 24 V circuit. If the shortcircuit current of the utilized 24 V power supply unit is greater than 50 A, an appropriate overcurrent device that limits the short-circuit current to this value must be used upstream of the product.
Note · The 24 V DC cable must be approved for temperatures of up to 75 °C. · The maximum permissible cable length is 10 m.

SIMATIC Drive Controller

44

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.1 Supply voltage X124

Characteristics of the X124 interface

Table 3- 2 Interface X124

Properties

Version

Connector type

4-pin screw-type terminal

Number of connectable conductors

1

Connectable conductor types and conductor cross-sections

Solid

0.2 mm² ... 2.5 mm²

Flexible

0.2 mm² ... 2.5 mm²

Flexible with wire-end ferrule without plastic 0.2 mm² ... 2.5 mm² sleeve

Flexible with wire-end ferrule with plastic sleeve

0.2 mm² ... 1.5 mm²

AWG / kcmil

22 ... 12

Stripped length

6 ... 7 mm

Tool

Screwdriver 0.5 x 3 mm (M2.5)

Tightening torque

0.4 to 0.5 Nm (3.5 to 4.4 lbf in)

Max. current carrying capacity including loopthrough

20 A 1) (15 A according to UL/CSA)

1) This value must be ensured for the current carrying capacity of the power cable.

See also

SIMATIC Drive Controller block diagram (Page 57)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

45

Connecting 3.2 PROFINET X150, X160 and X130

3.2

PROFINET X150, X160 and X130

PROFINET interface X150 with 3 ports (X150 P1R, X150 P2R, X150 P3)
The assignment corresponds to the Ethernet standard for an RJ45 connector.  When autonegotiation is deactivated, the RJ45 socket is allocated as a switch (MDI-X).  When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is
allocated either as data terminal equipment (MDI) or a switch (MDI-X).
PROFINET interface X160 with 1 port (X160 P1)
The assignment corresponds to the Ethernet standard for an RJ45 connector. Autocrossing is always active on X160. This means the RJ45 socket is allocated either as data terminal equipment (MDI) or a switch (MDI-X).
PROFINET interface X130 with 1 port (X130 P1)
The assignment corresponds to the Ethernet standard for an RJ45 connector.
Note PROFINET interface X130 with a transmission rate of 1000 Mbps PROFINET interface X130 supports a maximum transmission rate of 1000 Mbps. Requirements: · Devices must support the 1000 Mbps transmission rate. · The network infrastructure (network cables and outlets) must be category CAT 5e or
better. · For 1000 Mbps, you must use 8-wire cables (4x2) and the 1000 Mbit version of the 180°
FastConnect plug. You can use the 145° FastConnect plugs for PROFINET interface X130 only with a max. transmission rate of 100 Mbps. The "Transmission rate" parameter in the properties of the port (X130) must be set in STEP 7 as follows: · The "Autonegotiation" check box is selected. · "Automatic" is selected in the drop-down list.

SIMATIC Drive Controller

46

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.2 PROFINET X150, X160 and X130

Pin assignment of interfaces X150, X160, X130

Table 3- 3 View

Pin assignment of interfaces X150, X160, X130 Pin Assignment in 10/100 Mbit mode

Assignment in 1000 Mbit mode

Signal name Description

Signal name Description

1 TXP

Transmit data +

DA+

Bidirectional pair A+

2 TXN

Transmit data -

DA-

Bidirectional pair

A-

3 RXP

Receive data +

DB+

Bidirectional pair B+

4 -

Reserved; no connection DC+

Bidirectional pair C+

5 -

Reserved; no connection DC-

Bidirectional pair C-

6 RXN

Receive data -

DB-

Bidirectional pair

B-

7 -

Reserved; no connection DD+

Bidirectional pair D+

8 -

Reserved; no connection DD-

Bidirectional pair D-

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

47

Connecting 3.2 PROFINET X150, X160 and X130

Assignment of MAC addresses
The SIMATIC Drive Controller has three PROFINET interfaces. Interface X150 is an interface with 3-port switch. The PROFINET interfaces each have a MAC address, and each of the PROFINET ports has its own MAC address, resulting in a total of 8 MAC addresses for the SIMATIC Drive Controller.
The MAC addresses of the PROFINET ports are needed for the LLDP protocol, for example, for the neighbor discovery function. The number range of the MAC addresses is sequential.
You will find the MAC addresses of the SIMATIC Drive Controller at the following places:
 Side nameplate MAC addresses of the interfaces; the first MAC address is also contained in the Data Matrix Code
 Front nameplate: The MAC addresses of the interfaces are contained in the Data Matrix Code.
 On the inside of the bottom cover: MAC addresses of the interfaces
You can find detailed information on the nameplates in section Nameplates (Page 38).
The table below shows how the MAC addresses are assigned.

Table 3- 4

Assignment of MAC addresses Assignment

Side nameplate

Front nameplate

MAC address 1
MAC address 2 MAC address 3 MAC address 4 MAC address 5
MAC address 6 MAC address 7
MAC address 8

PROFINET interface X150

MAC address labeled

(visible in STEP 7 in accessible DMC with MAC ad-

devices)

dresses

Port X150 P1R (e.g. needed for LLDP)

Port X150 P2R (e.g. needed for LLDP)

Port X150 P3 (e.g. needed for LLDP)

PROFINET interface X160

MAC address labeled

(visible in STEP 7 in accessible devices)

Port X160 P1 (e.g. needed for LLDP)

PROFINET interface X130

MAC address labeled

(visible in STEP 7 in accessible devices)

Port X130 P1 (e.g. needed for LLDP)

DMC with MAC addresses
-
-
-
DMC with MAC addresses
-
DMC with MAC addresses
-

DMC: Data Matrix Code "-" means: MAC address is not labeled or marked

Label on bottom cover MAC address labeled
-
-
-
MAC address labeled
-
MAC address labeled
-

See also

Front covers (Page 36)

SIMATIC Drive Controller

48

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.3 PROFIBUS X126

3.3

PROFIBUS X126

The SIMATIC Drive Controller has a PROFIBUS DP interface (X126).

Pin assignment of X126 interface
The table below shows the pin assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of an RS485 interface.

Table 3- 5

Pin assignment of PROFIBUS interface

View

Pin Signal name

Designation

1

-

-

2

-

-

3 RxD/TxD-P Data line B

4

RTS

Request to send

5

M5V2 Data reference potential (from station)

6

P5V2

Supply plus (from station)

7

-

-

8 RxD/TxD-N Data line A

9

-

-

Note
Supply of I/O devices
The SIMATIC Drive Controller does not make a 24 V DC supply voltage available at the PROFIBUS interface. I/O devices (for example, PC adapter USB 6ES7972-0CB20-0XA0) are only operational on the interface in conjunction with a plug-in power supply set for external power supply.
The innovated successor product, PC adapter USB A2 (6GK1571-0BA00-0AA0), obtains the needed supply voltage via the USB port. For this reason, it does not need a 24 V DC power supply. You can operate the PC adapter USB A2 without a plug-in power supply set for external power supply.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

49

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142

3.4

Digital inputs and outputs of X122, X132 and X142

The digital inputs and digital outputs at the X122, X132 and X142 sockets are intended for connection of sensors and actuators.

Characteristics of X122, X132 and X142

Table 3- 6 Interfaces X122, X132 and X142

Properties

Version

Connector type

Spring-loaded terminal, 14-pin

Number of connectable conductors

1

Connectable conductor types and conductor cross-sections

· Solid

0.2 mm² ... 1.5 mm²

· Flexible

0.2 mm² ... 1.5 mm²

· Flexible with wire-end ferrule without plastic sleeve

0.25 mm² ... 1.5 mm²

· Flexible with wire-end ferrule with plastic sleeve 0.25 mm² ... 0.75 mm²

· AWG/kcmil

24 ... 16

Stripped length

10 mm

Current-carrying capacity (ground)

 6 A

Note The maximum permissible cable length is 30 m.

SIMATIC Drive Controller

50

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142 Breakdown into digital inputs and digital outputs The figure below shows the breakdown of the X122/X132 and X142 interfaces into digital inputs and digital outputs. The X122 and X132 interfaces are allocated to SINAMICS Integrated of the SIMATIC Drive Controller. The X142 interface is allocated to the CPU of the SIMATIC Drive Controller.
Figure 3-1 Interface assignment of X122/X132 and X142

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

51

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142

Pin assignment of the X122 and X132 interfaces

Table 3- 7 Digital inputs and digital inputs/outputs of X122

Pin Designation 1)

Signal type Notes
2)

1 DI0 2 DI1 3 DI2 4 DI3 5 DI16 6 DI17 7 M1
8 M 9 DI/DQ8
10 DI/DQ9
11 M 12 DI/DQ10
13 DI/DQ11
14 M

I I I I I I GND
GND B
B
GND B
B
GND

Digital input 0 Digital input 1 Digital input 2 Digital input 3 Digital input 16 Digital input 17 Ground for DI0 to DI3, DI16, DI17 (isolated from M) Ground Digital input/output 8 (also usable as measurement sensing input) Digital input/output 9 (also usable as measurement sensing input) Ground Digital input/output 10 (also usable as measurement sensing input) Digital input/output 11 (also usable as measurement sensing input) Ground

1) DI: Digital input; DI/DQ: Bidirectional digital input/output; M: Electronic ground; M1: Ground reference

2) B = Bidirectional; I = Input; GND = Reference potential (ground)

SIMATIC Drive Controller

52

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142

Table 3- 8 Digital inputs and digital inputs/outputs of X132

Pin Designation 1) 1 DI4 2 DI5 3 DI6 4 DI7 5 DI20 6 DI21 7 M2
8 M 9 DI/DQ12
10 DI/DQ13
11 M 12 DI/DQ14
13 DI/DQ15
14 M

Signal type 2) I I I I I I GND
GND B
B
GND B
B
GND

Notes
Digital input 4 Digital input 5 Digital input 6 Digital input 7 Digital input 20 Digital input 21 Ground for DI4 to DI7, DI20, DI21 (isolated from M) Ground Digital input/output 12 (also usable as measurement sensing input) Digital input/output 13 (also usable as measurement sensing input) Ground Digital input/output 14 (also usable as measurement sensing input) Digital input/output 15 (also usable as measurement sensing input) Ground

1) DI: Digital input; DI/DQ: Bidirectional digital input/output; M: Electronic ground; M2: Ground reference

2) B = Bidirectional; I = Input; GND = Reference potential (ground)

Note
An open input is interpreted as "low". So that the digital inputs will function, connect terminal M1 or M2. The alternatives are as follows: · Connect the coupled reference ground of the digital inputs to M1 or M2.
· Connect a jumper to terminal M and terminal M1 (or between M and M2). This removes the electrical isolation for these digital inputs.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

53

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142

Pin assignment of X142 interface

Pin Designation 1) 1 ­ 2 ­ 3 DI/DQ0 4 DI/DQ1 5 M 6 DI/DQ2 7 DI/DQ3 8 M 9 DI/DQ4 10 DI/DQ5 11 M 12 DI/DQ6 13 DI/DQ7 14 M

Signal type 2) ­ ­ B B GND B B GND B B GND B B GND

Notes Reserved Reserved Digital input/output 0 Digital input/output 1 Ground for digital input/output Digital input/output 2 Digital input/output 3 Ground for digital input/output Digital input/output 4 Digital input/output 5 Ground for digital input/output Digital input/output 6 Digital input/output 7 Ground for digital input/output

1) DI/DQ: Bidirectional digital input/output; M: Electronic ground

2) B = Bidirectional; GND = Reference potential (ground)

SIMATIC Drive Controller

54

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.4 Digital inputs and outputs of X122, X132 and X142
Digital outputs at the X142 interface
You configure each of the digital outputs as sourcing output or as high-speed output:  Sourcing output: The digital output is a 24 V sourcing output in reference to M and can
carry a rated load current of 0.5 A.  High-speed output: The digital output is a high-speed push-pull switch and can carry a
rated load current of 0.4 A. A push-pull switch is alternately switched to 24 V DC and ground. Very steep edges are possible as a result. The digital outputs are protected against overload and short-circuit. The direct connection of relays and contactors is possible without external wiring.
NOTICE Overheating of unsuitable loads A high-speed output generates edges that are very steep. This generates very powerful charge reversals for the connected load, which can overheat the load at very high switching frequencies. The connected load must therefore be suited for high input frequencies.
Note If you use a digital output as a sourcing output, its switch-off response/switch-off edge is dependent on the connected load. Thus it is possible that very short pulses cannot be output correctly.
Note For optimal interference immunity and high-accuracy signal acquisition, we recommend the use of shielded cables in the following cases: · Very brief signal levels or very fast signal changes occur at the digital inputs, e.g. when
used as timer DI/measurement sensing input, as oversampling DI or for event/period duration measurement · An input delay of 1 s is set for X142

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

55

Connecting 3.5 DRIVE-CLiQ interfaces X100 to X103

3.5

DRIVE-CLiQ interfaces X100 to X103

You connect all the components of the SINAMICS S120 drive system including motors and encoders using the DRIVE-CLiQ interface.

Properties of a DRIVE-CLiQ interface

Table 3- 9 DRIVE-CLiQ interfaces X100 to X103

Property Connector type Cable type, inside the control cabinet Cable type, outside the control cabinet Blanking plug for closing unused DRIVE-CLiQ interfaces

Version
DRIVE-CLiQ connector (RJ45 socket)
DRIVE-CLiQ standard
MOTION CONNECT
Blanking plugs are included in the scope of delivery of the SIMATIC Drive Controller. Additional blanking plugs are available as accessories.

Note The maximum permissible cable length is 100 m.

Pin assignment of a DRIVE-CLiQ interface

Table 3- 10 Pin assignment of DRIVE-CLiQ interfaces X100 to X103

View

Pin Signal name
1 TXP 2 TXN 3 RXP 4 5 6 RXN 7 8 A + (24 V)
B M (0 V)

Type of signal Meaning

Output

Transmit data +

Output

Transmit data -

Input

Receive data +

-

Reserved; no connection

-

Reserved; no connection

Input

Receive data -

-

Reserved; no connection

-

Reserved; no connection

Voltage Output Voltage supply for DRIVE-CLiQ,  450 mA

Voltage Output Ground for 24 V

SIMATIC Drive Controller

56

Equipment Manual, 11/2019, A5E46600370-AA

3.6
3.6.1

Wiring and block diagrams

Connecting 3.6 Wiring and block diagrams

SIMATIC Drive Controller block diagram
The figure below shows a simplified block diagram of the SIMATIC Drive Controller.

1) USB interfaces have no assigned function 2) No function (exception: lamp test at POWER ON)
Figure 3-2 SIMATIC Drive Controller block diagram

See also

Digital inputs and outputs of X122, X132 and X142 (Page 50)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

57

Connecting 3.6 Wiring and block diagrams

3.6.2

Onboard digital inputs/digital outputs of X122, X132 and X142
The figure below shows the wiring and block diagram of the digital inputs and digital inputs/outputs of the SIMATIC Drive Controller.



Connection removes electrical isolation

Figure 3-3 Wiring and block diagram of onboard digital inputs and digital inputs/outputs

SIMATIC Drive Controller

58

Equipment Manual, 11/2019, A5E46600370-AA

Connecting 3.6 Wiring and block diagrams

Note Open input of digital inputs
An open input is interpreted as "low". So that the digital inputs will function, connect terminal M1 or M2. The alternatives are as follows: · Connect the coupled reference ground of the digital inputs to M1 or M2. · Connect a jumper to terminal M and terminal M1 (or between M and M2). This removes
the electrical isolation for these digital inputs.
The interfaces of the onboard I/O are described in section Digital inputs and outputs of X122, X132 and X142 (Page 50).

3.6.3

DRIVE-CLiQ interfaces X100 to X103

DRIVE-CLiQ wiring of an axis group
The figure below shows a possible DRIVE-CLiQ wiring of an axis group.

Figure 3-4 Example of a DRIVE-CLiQ wiring of an axis group

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

59

Connecting 3.6 Wiring and block diagrams

Wiring rules

Neither ring wiring nor double wiring of components is permitted in the DRIVE-CLiQ wiring. In the case of a Motor Module, you must connect the power cable to the motor and the associated encoder.

Further information
You can find more information on DRIVE-CLiQ wiring in the following:
 SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual, section "Connecting"
 SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/us/en/view/109754299) function manual, section "Rules for wiring with DRIVE-CLiQ"

SIMATIC Drive Controller

60

Equipment Manual, 11/2019, A5E46600370-AA

Interrupts, diagnostics alarms, error messages and system alarms

4

4.1

Status and error displays

4.1.1

Overview

Location of status displays
The figure below shows the location of the status displays on the SIMATIC Drive Controller.
LEDs  to  indicate the operating states of the CPU. LEDs  and  indicate the operating states of SINAMICS Integrated. The 7-segment display  shows additional status information in certain operating states. The ACT LED  indicates write/read accesses to the
SIMATIC memory card.

 RUN/STOP LED, green/yellow  ERROR LED, red/yellow  MAINT LED, yellow  RDY LED, red/green/yellow  COM LED, red/green/yellow  No function (exception: LED is lit yellow during lamp test at POWER ON)  7-segment display  ACT LED, yellow
Figure 4-1 SIMATIC Drive Controller status displays

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

61

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays
LED display during reset
At POWER ON, the SIMATIC Drive Controller performs a reset. During the reset, all LEDs are lit yellow (lamp test).
LED display in FREEZE state
The FREEZE state signifies a "continuous reset". You can only exit this reset by switching the power supply of the Drive Controller off and back on again. While in Freeze state, the LEDs retain their last display status and the RUN/STOP LED flashes red. The 7-segment display is reset, during which all 7 segments including the two dots are lit.

SIMATIC Drive Controller

62

Equipment Manual, 11/2019, A5E46600370-AA

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

4.1.2

Status and error display of the CPU

Meaning of the RUN/STOP, ERROR and MAINT LEDs
The SIMATIC Drive Controller has three LEDs for displaying the current operating state and the diagnostics status of the CPU. The following table shows the meaning of the various combinations of colors for the RUN/STOP, ERROR and MAINT LEDs.

Table 4- 1 Meaning of the LEDs

RUN/STOP LED LED off LED off
LED lit green LED lit green LED lit green
LED lit green
LED lit yellow LED lit yellow LED lit yellow LED lit yellow LED flashes yel-
low

ERROR LED LED off
LED flashes red LED off
LED flashes red LED off
LED off
LED off LED off LED flashes red LED lit red LED off

MAINT LED LED off LED off

Meaning Missing or insufficient supply voltage on the CPU.
An error has occurred.

LED off LED off
LED lit yellow
LED flashes yellow
LED flashes yellow
LED off LED flashes yel-
low LED lit yellow
LED off

CPU is in RUN mode.
A diagnostics event is pending. Service data backup in RUN ended with error. Maintenance demanded for the plant. The affected hardware must be checked/replaced within a short period of time. Active Force job PROFIenergy pause Maintenance required for the plant. The affected hardware must be checked/replaced within a foreseeable period of time. Bad configuration Firmware update successfully completed.
CPU is in STOP mode.
The program on the SIMATIC memory card is causing an error. CPU defective
Update of an incompatible SINAMICS Integrated firmware was refused.
CPU is performing internal activities during STOP, e.g. startup after STOP. CPU stores service data Download of the user program from the SIMATIC memory card

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

63

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

RUN/STOP LED LED lit yellow
LED flashes yellow/green LED flashes yel-
low
LED flashes yellow/green
LED lit yellow
LED flashes red

ERROR LED LED lit red LED off
LED off
LED flashes red
LED lit yellow X
Any LED status

MAINT LED LED off LED off

Meaning Service data backup in STOP ended with error
Startup (transition from RUN  STOP)

LED flashes yellow
LED flashes yellow
LED lit yellow
X Any LED status

User action prompted after "Service data backup" during power up
Startup (CPU booting) Test of LEDs during startup, inserting a module. LED flashing test Lamp test at POWER ON Note: All six LEDs and the ACT-LED on the card slot are lit yellow. Freeze This state can only be exited by switching the component off and back on again.

SIMATIC Drive Controller

64

Equipment Manual, 11/2019, A5E46600370-AA

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

4.1.3

Status and error display of SINAMICS Integrated

RDY LED states

Table 4- 2 SINAMICS Integrated RDY LED

RDY LED

Meaning

LED off LED lit green

Electronics power supply is missing or is outside the permissible tolerance range
The component is ready for operation. Cyclic DRIVE-CLiQ communication is active or SINAMICS Integrated is waiting for first commissioning. Commissioning/reset

LED flashes green (0.5 Hz)
LED lit yellow
LED flashes yellow (2 Hz)

System is booting and DRIVE-CLiQ communication is being established.
Firmware update of components is complete, waiting for POWER ON of the component.  Remedy: Perform POWER ON of the respective component Firmware update of the connected DRIVE-CLiQ components in progress.

LED flashes yellow (0.5 Hz)
LED lit red
LED flashes red (2 Hz)
LED flashes greenyellow (2 Hz)

Component has at least one fault.
General errors  Remedy: Check parameter assignment/configuration Firmware could not be started. (for example, update error, drive firmware not compatible with CPU or missing, CRC check failed) Component detection via LED is activated (p0124[0]). Note The two possibilities depend on the status of the LED at time of activation via p0124[0] = 1.

LED flashes redyellow (2 Hz)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

65

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

COM LED states

Table 4- 3 SINAMICS Integrated COM LED

COM LED LED off
LED lit green LED flashes green
(0.5 Hz)
LED flashes red (2 Hz)

Meaning Cyclic communication has not (yet) taken place. Note PROFIdrive is ready for communication when the SINAMICS Integrated is ready for operation (see RDY LED). Cyclic communication is active. Synchronization complete.
Cyclic communication is not yet fully active. Possible causes: · The controller is not transferring setpoints. · In isochronous mode, synchronization is not yet complete.
Cyclic bus communication has been interrupted or could not be established. Remedy: Eliminate fault

4.1.4

ACT LED and interface LEDs

Meaning of ACT LED
The ACT LED is located next to the memory card slot and indicates write/read accesses to the SIMATIC memory card.

Table 4- 4 ACT LED

ACT LED LED off

Meaning No access to the SIMATIC memory card
Access to the SIMATIC memory card

LED flickers yellow

If you remove the SIMATIC memory card during a write operation, the following problems may occur:

 The data content of a file is incomplete.

 The file is no longer readable or no longer exists.

 The entire data content is corrupted.

Regarding the removal of the SIMATIC memory card, note also the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183).

SIMATIC Drive Controller

66

Equipment Manual, 11/2019, A5E46600370-AA

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

Meaning of the LEDs of the PROFINET interface X130, X150, X160
For diagnostic purposes, each of the RJ45 sockets is equipped with a LINK LED and and ACTIVITY LED. The LEDs are used to display the following status information of the respective PROFINET interface.

Table 4- 5 LEDs of PROFINET interface X130, X150, X160

RJ45 socket

LINK LED LED off
LED flashes green
LED lit green LED lit yellow LED lit green LED lit yellow

ACTIVITY LED LED off
­

Meaning
There is no communication connection between the PROFINET interface of the SIMATIC Drive Controller and the communication partner. No data is currently being sent/received via the PROFINET interface.
There is no LINK connection.
The "LED flashing test" is being performed.

­
­
LED flickers yellow
LED flickers yellow

A 10/100 Mbps communication connection exists between the PROFINET interface of the SIMATIC Drive Controller and a communication partner.
A 1000 Mbps communication connection exists between the PROFINET interface of the SIMATIC Drive Controller and a communication partner.
Data is currently being received/transmitted at 10/100 Mbps by a communication partner via the PROFINET interface of the SIMATIC Drive Controller.
Data is currently being received/transmitted at 1000 Mbps by a communication partner via the PROFINET interface of the SIMATIC Drive Controller.

See also

View of SIMATIC Drive Controller without front covers (Page 33)

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

67

Interrupts, diagnostics alarms, error messages and system alarms 4.1 Status and error displays

4.1.5

7-segment display
In addition to the LED display, the 7-segment display indicates further status information during commissioning and cyclic operation.

Table 4- 6 7-segment display

7-segment display

Meaning Missing or insufficient supply voltage on the CPU

HW states before the start of the CPU firmware

Startup of the CPU

Startup of CPU complete (0 = STOP or RUN state)

Function selection (1 = Save service data)

Save service data function active (d = data)

Exit function selection mode (E = Exit)

Reset See also
68

Freeze While in Freeze state, the LEDs retain their last display status and the RUN/STOP Led flashes red.
At POWER ON, the SIMATIC Drive Controller performs a reset. During a reset, all segments including the two dots are briefly lit (lamp test).
View of SIMATIC Drive Controller without front covers (Page 33)
SIMATIC Drive Controller Equipment Manual, 11/2019, A5E46600370-AA

4.2
4.2.1

Interrupts, diagnostics alarms, error messages and system alarms 4.2 Interrupts, diagnostics and system messages
Interrupts, diagnostics and system messages
Interrupts, diagnostics and system messages
For information on "Interrupts", refer to the STEP 7 online help. For information on "Diagnostics" and "System alarms", refer to the Diagnostics (https://support.industry.siemens.com/cs/ww/en/view/59192926) function manual.

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

69

Technical specifications

5

Technical specifications of SIMATIC Drive Controller

Article number General information
Product type designation HW functional status Product function · I&M data

6ES7615-4DF10-0AB0
CPU 1504D TF FS01
Yes; I&M0 to I&M3

6ES7615-7DF10-0AB0 CPU 1507D TF

· Isochronous mode

Yes; With minimum OB 6x cycle of 500 µs

Engineering with
· STEP 7 TIA Portal configurable/integrated as V16 of version

Integrated drive control

· Number of axes for servo control, max.

6

· Number of axes for vector control, max.

6

· Number of axes for V/f control, max.

12

· Remark
Configuration control via dataset
Control elements Number of keys Mode selector switch
Supply voltage Type of supply voltage permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Mains buffering · Mains/voltage failure stored energy time

Alternative control modes; drive control based on SINAMICS S120 CU320-2 (firmware version V5.x); functional subset compared to CU320-2: no DCC/DCB, EPOS, free function blocks, etc.); see manual for details
Yes
1; FUNCT button 1
24 V DC 20.4 V 28.8 V Yes
3 ms; Refers to the power supply on the CPU section

· Repeat rate, min.

1 event every 10 s

SIMATIC Drive Controller

70

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number Input current
Current consumption (rated value)
Current consumption, max. Inrush current, max. I²t Power loss Power loss, typ. Memory Number of slots for SIMATIC memory card SIMATIC memory card required Work memory · integrated (for program) · integrated (for data) Load memory · Plug-in (SIMATIC Memory Card), required · Plug-in (SIMATIC Memory Card), max. Backup · maintenance-free CPU-blocks Number of elements (total) DB · Number range
· Size, max.
FB · Number range · Size, max.
FC · Number range · Size, max.
OB · Size, max. · Number of free cycle OBs · Number of time alarm OBs · Number of delay alarm OBs · Number of cyclic interrupt OBs

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

0.65 A; Without load on inputs/outputs, without supply via DRIVECLiQ/USB interface 13.1 A; With load 6 A; Rated value 0.62 A²·s

52 W

1 Yes

2 Mbyte 4 Mbyte

6 Mbyte 20 Mbyte

12 Mbyte; Recommended at least when integrated drive is used 32 Gbyte

Yes

12 000; Blocks (OB, FB, FC, DB) and UDTs

1 ... 60 999; subdivided into: number range that can be used by the user: 1 ... 59 999, and number range of DBs created via SFC 86: 60 000 ... 60 999

4 Mbyte; For DBs with absolute addressing, the max. size is 64 KB

16 Mbyte; For DBs with absolute addressing, the max. size is 64 KB

0 ... 65 535 1 Mbyte

0 ... 65 535 1 Mbyte

1 Mbyte 100 20 20 20; with minimum OB 3x cycle of 100 µs

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

71

Technical specifications

Article number · Number of process alarm OBs
· Number of DPV1 alarm OBs
· Number of isochronous mode OBs
· Number of technology synchronous alarm OBs
· Number of startup OBs
· Number of asynchronous error OBs
· Number of synchronous error OBs
· Number of diagnostic alarm OBs Nesting depth
· per priority class Counters, timers and their retentivity S7 counter
· Number Retentivity
­ adjustable IEC counter
· Number Retentivity
­ adjustable S7 times
· Number Retentivity
­ adjustable IEC timer
· Number Retentivity
­ adjustable Data areas and their retentivity
Retentive data area (incl. timers, counters, flags), max. Flag · Number, max.
· Number of clock memories Data blocks
· Retentivity adjustable
· Retentivity preset

6ES7615-4DF10-0AB0 50 3 3 2
100 4 2 1

6ES7615-7DF10-0AB0

24; Up to 8 possible for F-blocks

2 048 Yes Any (only limited by the main memory) Yes 2 048 Yes Any (only limited by the main memory) Yes 768 kbyte; In total; available retentive memory for bit memories, timers, counters, DBs, and technology data (axes): 700 KB 16 kbyte 8; 8 clock memory bit, grouped into one clock memory byte Yes No

SIMATIC Drive Controller

72

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number Local data
· per priority class, max. Address area
Number of IO modules I/O address area
· Inputs · Outputs per integrated IO subsystem
­ Inputs (volume) ­ Outputs (volume) Subprocess images · Number of subprocess images, max. Hardware configuration Number of distributed IO systems Number of DP masters · integrated · Via CM
Number of IO Controllers · integrated · Via CM
PtP CM · Number of PtP CMs
Time of day Clock
· Type · Backup time · Deviation per day, max. Operating hours counter · Number Clock synchronization · supported · to DP, master · in AS, master · in AS, slave · on Ethernet via NTP

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

64 kbyte; max. 16 KB per block

16 384; max. number of modules / submodules
32 kbyte; All inputs are in the process image 32 kbyte; All outputs are in the process image

32 kbyte 32 kbyte

32

64
1 Expansion via CMs / CPs (PROFIBUS, PROFINET, Ethernet) not possible; these CMs / CPs can only be operated in a central rack
2 Expansion via CMs / CPs (PROFIBUS, PROFINET, Ethernet) not possible; these CMs / CPs can only be operated in a central rack
The number of connectable PtP CMs (distributed) is only limited by the number of available slots

Hardware clock 6 wk; At 40 °C ambient temperature, typically 10 s; Typ.: 2.4 s
16
Yes Yes Yes Yes Yes

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

73

Technical specifications

Article number

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

Digital inputs

integrated channels (DI)

28; max. depending on parameterization

Digital inputs, parameterizable

Yes; 12 DI, 8 DI/DQ (X122/X132, SINAMICS Integrated) + 8 DI/DQ (X142, PLC)

Source/sink input

P-reading

Input characteristic curve in accordance with IEC Yes 61131, type 3

Digital input functions, parameterizable

· Freely usable digital input

Yes; Max. 20 (X122/X132) + max. 8 (X142)

· Probe

Yes; Max. 8 (X122/X132) + max. 8 (X142)

· Digital input with time stamp

Yes; Max. 8 (X142); e.g. for probes

· Counter

Yes; Max. 8 (X142); event/cycle duration measurement

· Digital input with oversampling

Yes; Max. 8 (X142); 32-fold oversampling

Input voltage

· Type of input voltage

DC

· Rated value (DC)

24 V

· for signal "0"

-3 to +5V

· for signal "1"

+15 to +30V

· permissible voltage at input, min.

-30 V

· permissible voltage at input, max.

30 V

Input current · for signal "1", typ.

4 mA

Input delay (for rated value of input voltage) · Minimum pulse width for program reactions
for standard inputs ­ parameterizable

5 µs for X122/X132/X142 (DI/DQ as DI; for X142 with filter setting 1 µs)
No; For X122/X132

­ for "0" to "1", typ.

For X122/X132: 10 µs (DI) / 5 µs (DI/DQ as DI)

for interrupt inputs ­ parameterizable

Yes; Identical to those for technological functions

for technological functions ­ parameterizable

Yes; For X142, additionally adjustable input filter: 1 µs / 125 µs

­ with "0" to "1", typ.

5 µs; For X142; HW delay

­ with "1" to "0", typ.

5 µs; For X142; HW delay

Cable length · shielded, max.
· unshielded, max.

30 m; For technological functions: Shielding of the DI recommended depending on the requirements
30 m

SIMATIC Drive Controller

74

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number Digital outputs
Type of digital output integrated channels (DO) Current-sinking Current-sourcing
Digital outputs, parameterizable
Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input minimum pulse duration Digital output functions, parameterizable · Freely usable digital output · Digital output with time stamp · PWM output
­ Cycle duration, parameterizable
­ ON period, min. ­ ON period, max. ­ Resolution of the duty cycle · Digital output with oversampling Switching capacity of the outputs · with resistive load, max. · on lamp load, max. Load resistance range · lower limit Output voltage · Type of output voltage · Rated value (DC) · for signal "0", max. · for signal "1", min. Output current · for signal "1" rated value · for signal "1" permissible range, min. · for signal "1" permissible range, max.

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

Transistor 16; max. depending on parameterization Yes; With High Speed output Yes; Optionally as a P-switch or high-speed push-pull switch (highspeed output) Yes; 8 DI/DQ (X122/X132, SINAMICS Integrated) + 8 DI/DQ (X142, PLC) Yes; electronic/thermal X122/X132: 1.4 A / X142: 0.9 A (high-speed output: 0.7 A)
X122/X132: max. -60 V / X142: max. -64.5 V Yes 2 µs; For high-speed output, single pulse

Yes; Max. 8 (X122/X132) + max. 8 (X142)
Yes; Max. 8 (X142); e.g. for output cams
Yes; Max. 8 (X142)
Yes; Base frequency 1 / 2 / 4 / 8 / 16 kHz; specification of interpulse period ratio over 32-bit pattern 0 % 100 % 3.125 % Yes; Max. 8 (X142)

0.5 A; 0.4 A for high-speed output 5 W

48 ; with 24 V DC supply

DC 24 V 28.8 V 20.4 V

0.5 A; 0.4 A for high-speed output 2 mA 0.6 A; 0.48 A for high-speed output

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

75

Technical specifications
Article number Output delay with resistive load
· "0" to "1", typ. · "1" to "0", typ. for technological functions
­ "0" to "1", typ. ­ "1" to "0", typ. Parallel switching of two outputs · for logic links · for uprating · for redundant control of a load Switching frequency · with resistive load, max. · with inductive load, max. · on lamp load, max. Total current of the outputs · Current per module, max. Cable length · shielded, max. · unshielded, max. Interfaces Number of PROFINET interfaces Number of PROFIBUS interfaces Number of USB interfaces Number of DRIVE-CLiQ interfaces
1. Interface Interface types
· Number of ports · integrated switch · RJ 45 (Ethernet) Protocols · IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server · Media redundancy
76

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

100 µs; For X122/X132; at 48 ohm load 150 µs; For X122/X132; at 48 ohm load

1 µs; For X142 1 µs; For X142 as a high-speed output; 150 µs for standard output

Yes; For technological functions and high-speed outputs: No No Yes; For technological functions and high-speed outputs: No

35 kHz; With High Speed output, 1 kHz with standard output 2 Hz; Max. 1 J per channel 11 Hz

8 A

30 m 30 m

3 1 2; USB 3.0 (without function) 4; DRIVE-CLiQ interfaces (24 V / 450 mA per interface for connecting encoders/measuring systems)

3 Yes Yes; X150
Yes; IPv4 Yes Yes Yes Yes Yes Yes; MRP Automanager according to IEC 62439-2 Edition 2.0
SIMATIC Drive Controller Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number PROFINET IO Controller Services
­ PG/OP communication

6ES7615-4DF10-0AB0 Yes

6ES7615-7DF10-0AB0

­ S7 routing

Yes

­ Isochronous mode

Yes

­ Direct data exchange

Yes; Requirement: IRT and isochronous mode (MRPD optional)

­ shortest clock pulse

500 µs

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes

­ Prioritized startup

Yes; Max. 32 PROFINET devices

­ Number of connectable IO Devices, max. 256; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET

­ Of which IO devices with IRT, max.

64

­ Number of connectable IO Devices for 256 RT, max.

­ of which in line, max.

256

­ Number of IO Devices that can be simul- 8; in total across all interfaces taneously activated/deactivated, max.

­ Number of IO Devices per tool, max.

8

­ Updating times
Update time for IRT ­ for send cycle of 500 µs

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
500 µs to 8 ms

­ for send cycle of 1 ms

1 ms to 16 ms

­ for send cycle of 2 ms

2 ms to 32 ms

­ for send cycle of 4 ms

4 ms to 64 ms

­ With IRT and parameterization of "odd" send cycles

Update time = set "odd" send clock (any multiple of 125 µs: 375 µs, 625 µs ... 3 875 µs)

Update time for RT ­ for send cycle of 500 µs

500 µs to 256 ms

­ for send cycle of 1 ms

1 ms to 512 ms

­ for send cycle of 2 ms

2 ms to 512 ms

­ for send cycle of 4 ms

4 ms to 512 ms

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

77

Technical specifications

Article number PROFINET IO Device Services
­ PG/OP communication

6ES7615-4DF10-0AB0 Yes

6ES7615-7DF10-0AB0

­ S7 routing

Yes

­ Isochronous mode

No

­ shortest clock pulse

500 µs

­ Open IE communication

Yes

­ IRT

Yes

­ MRP ­ MRPD

Yes; MRP Automanager acc. to IEC 62439-2 Edition 2.0; MRP Manager; MRP Client; max. number of devices in the ring: 50
Yes; Requirement: IRT

­ PROFIenergy

Yes; per user program

­ Shared device

Yes

­ Number of IO Controllers with shared de- 4 vice, max.

­ Asset management record

Yes; per user program

2. Interface

Interface types

· Number of ports

1

· integrated switch

No

· RJ 45 (Ethernet)

Yes; X160

Protocols · IP protocol

Yes; IPv4

· PROFINET IO Controller

Yes

· PROFINET IO Device

Yes

· SIMATIC communication

Yes

· Open IE communication

Yes

· Web server

Yes

· Media redundancy

No

PROFINET IO Controller

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Direct data exchange

No

­ Open IE communication

Yes

­ IRT

No

SIMATIC Drive Controller

78

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number ­ MRP

6ES7615-4DF10-0AB0 No

6ES7615-7DF10-0AB0

­ MRPD

No

­ PROFIenergy

Yes

­ Prioritized startup

No

­ Number of connectable IO Devices, max. 128; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET
­ Number of connectable IO Devices for 128 RT, max.

­ of which in line, max.

128

­ Number of IO Devices that can be simul- 8; in total across all interfaces taneously activated/deactivated, max.

­ Number of IO Devices per tool, max.

8

­ Updating times
Update time for RT ­ for send cycle of 1 ms

The minimum value of the update time also depends on communication share set for PROFINET IO, on the number of IO devices, and on the quantity of configured user data
1 ms to 512 ms

PROFINET IO Device

Services

­ PG/OP communication

Yes

­ S7 routing

Yes

­ Isochronous mode

No

­ Open IE communication

Yes

­ IRT

No

­ MRP

No

­ MRPD

No

­ PROFIenergy

Yes; per user program

­ Prioritized startup

No

­ Shared device

Yes

­ Number of IO Controllers with shared de- 4 vice, max.

­ Asset management record

Yes; per user program

3. Interface

Interface types

· Number of ports

1

· integrated switch

No

· RJ 45 (Ethernet)

Yes; X130

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

79

Technical specifications

Article number Protocols
· IP protocol · PROFINET IO Controller · PROFINET IO Device · SIMATIC communication · Open IE communication · Web server 4. Interface Interface types · Number of ports · RS 485 Protocols · PROFIBUS DP master · PROFIBUS DP slave · SIMATIC communication Interface types RJ 45 (Ethernet) · 100 Mbps · 1000 Mbps · Autonegotiation · Autocrossing · Industrial Ethernet status LED RS 485 · Transmission rate, max. Protocols Number of connections · Number of connections, max. · Number of connections reserved for
ES/HMI/web · Number of connections via integrated inter-
faces · Number of S7 routing paths
Redundancy mode · H-Sync forwarding

6ES7615-4DF10-0AB0
Yes; IPv4 No No Yes Yes Yes

6ES7615-7DF10-0AB0

1 Yes; X126
Yes No Yes

Yes Yes; Only at the X130 interface Yes Yes Yes; LINK and ACTIVITY
12 Mbit/s

320; Via integrated interfaces of the CPU 10
320
64; in total, only 16 S7-Routing connections are supported via PROFIBUS
Yes

SIMATIC Drive Controller

80

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number SIMATIC communication
· S7 communication, as server · S7 communication, as client · User data per job, max. Open IE communication · TCP/IP
­ Data length, max. ­ several passive connections per port,
supported · ISO-on-TCP (RFC1006)
­ Data length, max. · UDP
­ Data length, max. ­ UDP multicast · DHCP · SNMP · DCP · LLDP Web server · HTTP · HTTPS PROFIBUS DP master · Number of connections, max. Services ­ PG/OP communication ­ S7 routing ­ Data record routing ­ Isochronous mode ­ Equidistance ­ Number of DP slaves
­ Activation/deactivation of DP slaves

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

Yes Yes See online help (S7 communication, user data size)

Yes 64 kbyte Yes
Yes 64 kbyte Yes 2 kbyte; 1 472 bytes for UDP broadcast Yes; Max. 5 multicast circuits No Yes Yes Yes

Yes; Standard and user pages Yes; Standard and user pages

48; for the integrated PROFIBUS DP interface

Yes Yes Yes Yes Yes 125; In total, up to 1 000 distributed I/O devices can be connected via AS-i, PROFIBUS or PROFINET Yes

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

81

Technical specifications

Article number OPC UA
· Runtime license required

6ES7615-4DF10-0AB0 Yes; "Small" license required

6ES7615-7DF10-0AB0 Yes; "Large" license required

· OPC UA client

Yes

­ Application authentication

Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of connections, max.

40

­ Number of nodes of the client interfaces, 5 000 max.

­ Number of elements for one call of

300

OPC_UA_NodeGetHandleList/OPC_UA_

ReadList/OPC_UA_WriteList, max.

­ Number of elements for one call of

20

OPC_UA_NameSpaceGetIndexList, max.

­ Number of elements for one call of

100

OPC_UA_MethodGetHandleList, max.

­ Number of simultaneous calls of the cli- 1 ent instructions per connection (except OPC_UA_ReadList,OPC_UA_WriteList,O PC_UA_MethodCall), max.

­ Number of simultaneous calls of the cli- 5 ent instructions OPC_UA_ReadList,OPC_UA_WriteList and OPC_UA_MethodCall, max.

­ Number of registerable nodes, max.

5 000

­ Number of registerable method calls of 100 OPC_UA_MethodCall, max.

­ Number of inputs/outputs when calling 20 OPC_UA_MethodCall, max.

· OPC UA server ­ Application authentication

Yes; Data access (read, write, subscribe), method call, custom address space
Yes

­ Security policies ­ User authentication

Available security policies: None, Basic128Rsa15, Basic256Rsa15, Basic256Sha256
"anonymous" or by user name & password

­ Number of sessions, max.

64

­ Number of accessible variables, max.

200 000

­ Number of registerable nodes, max.

50 000

­ Number of subscriptions per session,

20

max.

­ Sampling interval, min.

10 ms

SIMATIC Drive Controller

82

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number ­ Publishing interval, min.

6ES7615-4DF10-0AB0 10 ms

6ES7615-7DF10-0AB0

­ Number of server methods, max.

100

­ Number of inputs/outputs per server

20

method, max.

­ Number of monitored items, max.

10 000; for 1 s sampling interval and 1 s send interval

­ Number of server interfaces, max.

10

­ Number of nodes for user-defined server 30 000 interfaces, max.

Further protocols · MODBUS

Yes; MODBUS TCP

Media redundancy · Switchover time on line break, typ.

200 ms; For MRP, bumpless for MRPD

· Number of stations in the ring, max.

50

Isochronous mode

Isochronous operation (application synchronized Yes; With minimum OB 6x cycle of 500 µs up to terminal)

Equidistance

Yes

Jitter, max.

1 µs

S7 message functions

Number of login stations for message functions, 32 max.

Program alarms

Yes

Number of configurable program messages, max.

10 000; Program messages are generated by the "Program_Alarm" block, ProDiag or GRAPH

Number of loadable program messages in RUN, 5 000 max.

Number of simultaneously active program alarms

· Number of program alarms

1 000

· Number of alarms for system diagnostics

1 000

· Number of alarms for motion technology

160

objects

Test commissioning functions Joint commission (Team Engineering) Status block Single step Number of breakpoints

Yes; Parallel online access possible for up to 10 engineering systems Yes; Up to 16 simultaneously (in total across all ES clients) No 20

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

83

Technical specifications

Article number Status/control
· Status/control variable · Variables · Number of variables, max.
­ of which status variables, max. ­ of which control variables, max. Forcing · Forcing, variables · Number of variables, max. Diagnostic buffer · present · Number of entries, max. ­ of which powerfail-proof Traces · Number of configurable Traces Diagnostics indication LED · RUN/STOP LED · ERROR LED · MAINT LED · ACT LED · RDY LED · COM LED · Connection display LINK TX/RX Supported technology objects Motion Control · Number of available Motion Control resources for technology objects (except cam disks) · Required Motion Control resources ­ per speed-controlled axis ­ per positioning axis ­ per synchronous axis ­ per external encoder ­ per output cam ­ per cam track ­ per probe

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

Yes Inputs/outputs, memory bits, DBs, distributed I/Os, timers, counters

200; per job 200; per job

Peripheral inputs/outputs 200

Yes 3 200 1 000

8; Up to 512 KB of data per trace are possible

Yes Yes Yes Yes; For memory card access Yes Yes Yes

Yes 2 400

12 800

40 80 160 80 20 160 40

SIMATIC Drive Controller

84

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number
· Number of available Extended Motion Control resources for technology objects

6ES7615-4DF10-0AB0 120

6ES7615-7DF10-0AB0 420

· Required Extended Motion Control resources

­ for each cam

2

­ for each set of kinematics

30

­ Per leading axis proxy

3

· Positioning axis

­ Number of positioning axes at motion

10

55

control cycle of 4 ms (typical value)

­ Number of positioning axes at motion

20

110

control cycle of 8 ms (typical value)

Controller · PID_Compact

Yes; Universal PID controller with integrated optimization

· PID_3Step

Yes; PID controller with integrated optimization for valves

· PID-Temp

Yes; PID controller with integrated optimization for temperature

Counting and measuring

· High-speed counter

Yes

Integrated Functions Number of counters Counting frequency (counter) max.
Counting functions · Continuous counting

8; Event/cycle duration measurement 32 kHz
Yes

Measuring functions Measuring range
­ Cycle duration measurement, min.

10 µs; 5 µs minimum pulse width

­ Cycle duration measurement, max.

178 s

Accuracy ­ Cycle duration measurement

Sampling of the time period with 41.67 ns increments

Potential separation Potential separation digital inputs
· between the channels

Yes; 12 DI (X122/X132), in 2 groups of 6 DI each

Potential separation digital outputs · between the channels

No; 8 DI/DQ (X122/X132) and 8 DI/DQ (X142)

Isolation Isolation tested with
Degree and class of protection IP degree of protection

707 V DC (type test) IP20

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

85

Technical specifications

Article number Standards, approvals, certificates
CE mark cULus RCM (formerly C-TICK) KC approval EAC (formerly Gost-R) Suitable for safety functions Highest safety class achievable in safety mode
· Performance level according to ISO 13849-1

6ES7615-4DF10-0AB0

6ES7615-7DF10-0AB0

Yes Yes Yes Yes Yes Yes; e.g. emergency stop, acknowledgment button

PLd (PLe if exclusively F-CPU is used)

· SIL acc. to IEC 61508

SIL 2 (SIL 3 if exclusively F-CPU is used)

Probability of failure (for service life of 20 years and repair time of 100 hours)
­ Low demand mode: PFDavg in accordance with SIL2

< 14.00E-04

­ Low demand mode: PFDavg in accordance with SIL3

< 2.00E-05 PLd (if exclusively F-CPU is used)

­ High demand/continuous mode: PFH in < 14.00E-09 accordance with SIL2

­ High demand/continuous mode: PFH in < 1.00E-09 (if exclusively F-CPU is used) accordance with SIL3

Ambient conditions Ambient temperature during operation
· min.

0 °C

· max.

55 °C

Ambient temperature during storage/transportation

· min.

-40 °C; Long-term storage: -25 °C

· max.

70 °C; Long-term storage: +55 °C

Altitude during operation relating to sea level · Installation altitude above sea level, max.
· Ambient air temperature-barometric pressure-altitude

4 000 m; Above an altitude of 2 000 m, the max. ambient temperature decreases by 7 °C every 1 000 m
Permissible air pressure: 620 hPa ... 1 060 hPa

Configuration Programming Programming language
­ LAD

Yes; incl. failsafe

­ FBD

Yes; incl. failsafe

­ STL

Yes

­ SCL

Yes

­ GRAPH

Yes

SIMATIC Drive Controller

86

Equipment Manual, 11/2019, A5E46600370-AA

Technical specifications

Article number

6ES7615-4DF10-0AB0

Know-how protection

· User program protection/password protection Yes

6ES7615-7DF10-0AB0

· Copy protection

Yes

· Block protection

Yes

Access protection

· Protection level: Write protection

Yes

· Protection level: Read/write protection

Yes

· Protection level: Write protection for Failsafe Yes

· Protection level: Complete protection

Yes

Cycle time monitoring · lower limit

adjustable minimum cycle time

· upper limit

adjustable maximum cycle time

Dimensions Width Height Depth
Weights Weight, approx.
Other Note:

50 mm 300 mm 226 mm; 270 mm with spacer (included in scope of supply)
2 200 g
fanless operation

SIMATIC Drive Controller

Equipment Manual, 11/2019, A5E46600370-AA

87

Dimension drawing

A

Figure A-1 Dimension drawing of SIMATIC Drive Controller
Note If you install more than one SIMATIC Drive Controller or SINAMICS S120 CU320-2 side-byside, use a horizontal spacing of 50 mm for the drilled holes to compensate for the tolerances.

SIMATIC Drive Controller

88

Equipment Manual, 11/2019, A5E46600370-AA

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)
SIMATIC ET 200MP IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Iann_ted_rsruy_ps_ttse,_md_ima_gens_os_astgi_cess_, e_rr_or____4_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______5_ _Di_m_en_si_on_d_ra_w_in_g ________A_ _Re_s_po_n_se_ti_m_es__________B_

08/2013
A5E32346748-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32346748-AA  08/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This technical manual supplements the ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214) system manual. Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals support you in commissioning the system.

Conventions

Please also observe notes marked as follows:
Note A note contains important information on the product, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides automation and drive products with industrial security functions that support the secure operation of plants or machines. They are an important component in a holistic industrial security concept. With this in mind, our products undergo continuous development. We therefore recommend that you keep yourself informed with respect to our product updates. Please find further information and newsletters on this subject at: (http://support.automation.siemens.com)
To ensure the secure operation of a plant or machine it is also necessary to take suitable preventive action (e.g. cell protection concept) and to integrate the automation and drive components into a state-of-the-art holistic industrial security concept for the entire plant or machine. Any third-party products that may be in use must also be taken into account. Please find further information at: (http://www.siemens.com/industrialsecurity)

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

3

Preface

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

4

Manual, 08/2013, A5E32346748-AA

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................... 9

2.1

Properties .......................................................................................................................................9

3 Wiring ................................................................................................................................................... 11

3.1

Terminal assignment....................................................................................................................11

3.2

Block diagram ..............................................................................................................................12

3.3

Setting the PROFIBUS DP address.............................................................................................12

4 Interrupts, diagnostics, error and system messages .............................................................................. 15

4.1

Diagnostics via LED display.........................................................................................................15

4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8

Alarms ..........................................................................................................................................17 Diagnostics alarms.......................................................................................................................17 Slave diagnostics .........................................................................................................................18 Station statuses 1 to 3 .................................................................................................................19 Master PROFIBUS address.........................................................................................................20 Identifier-related diagnostics ........................................................................................................21 Module status...............................................................................................................................22 Channel-specific diagnostics .......................................................................................................23 Invalid configuration states of the ET 200MP on PROFIBUS DP................................................24

4.3 4.3.1 4.3.2 4.3.3

Interrupts ......................................................................................................................................25 Evaluating interrupts of ET 200MP ..............................................................................................31 Triggering of a diagnostic interrupt ..............................................................................................31 Triggering of a hardware interrupt................................................................................................32

5 Technical specifications ........................................................................................................................ 33

5.1

Technical specifications ...............................................................................................................33

A Dimension drawing ............................................................................................................................... 37

A.1

Dimension drawing IM 155-5 DP ST............................................................................................37

B Response times .................................................................................................................................... 39

B.1

Response times of the ET 200MP ...............................................................................................39

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

5

Table of contents

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

6

Manual, 08/2013, A5E32346748-AA

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the ET 200MP distributed I/O system consists of a system manual, function manuals and product manuals.
The STEP 7 information system (Online Help) also helps you configure and program your automation system.

Overview of the documentation for the IM 155-5 DP ST interface module

Table 1- 1 Documentation for the IM 155-5 DP ST interface module

Topic System description
Communication

Documentation
System manual ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/vi ew/en/59193214)

Most important contents · Application planning · Installation · Wiring · Commissioning

· Maintenance

Function manual: PROFIBUS with STEP 7 V12 ·

(http://support.automation.siemens.com/WW/vi ew/en/59193579)

·

·

PROFIBUS basics PROFIBUS functions PROFIBUS diagnostics

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

7

Documentation guide

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

8

Manual, 08/2013, A5E32346748-AA

Product overview

2.1

Properties

Order number
6ES7155-5BA00-0AB0

View of the module

2

Figure 2-1 View of the IM 155-5 DP ST interface module

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

9

Product overview 2.1 Properties

Properties

 Technical properties ­ Connects the ET 200MP distributed I/O system with PROFIBUS DP ­ Bus connection via RS485 interface ­ 24V DC power supply (SELV/PELV) ­ Supports ET 200MP I/O modules
 Supported system functions ­ PROFIBUS DP ­ Identification data I&M 0 to 3 ­ Operation as DPV1 slave ­ Firmware update via PROFIBUS DP. You can find additional information in the ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59193214) system manual.

Maximum configuration
 244 bytes I/O data per station
 The integrated power supply of the interface module feeds 14 W into the backplane bus. The interface module can supply up to 12 I/O modules. The exact number of operable modules is determined by the power budget (see relevant section in the ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214) system manual).

PROFIBUS connector
The 9-pin sub D PROFIBUS connector is included in the product package of the IM 155-5 DP ST interface module and available as accessory.
You can find additional information in the function manual, Designing interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) in the section Connecting the bus shield for bus cables.

See also

GSD file (http://support.automation.siemens.com/WW/view/en/10805317/133300)

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

10

Manual, 08/2013, A5E32346748-AA

Wiring

3

3.1

Terminal assignment

24V DC power supply

Table 3- 1

Terminal assignment 24V DC power supply

View

Signal name1) 1L+ 2L+ 1M 2M

Designation 24 V DC 24V DC (for looping through)2) Ground Ground (for looping through)2)

1) 1L+and 2L+, as well as 1Mand 2Mare bridged internally. 2) Permitted value 10 A

PROFIBUS DP with RS485 interface
The following table shows the signal names and the designations of the terminal assignment for the PROFIBUS DP interface.

Table 3- 2 Terminal assignment PROFIBUS DP with RS485 interface

View

Signal name 1 2 3 RxD/TxD-P 4 RTS 5 M5V2 6 P5V2 7 8 RxD/TxD-N 9 -

Designation Data line B Request To Send Ground (from station) Supply plus (from station) Data line A -

Additional information
You can find additional information on connecting the interface module and on the accessories in the ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59193214) system manual.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

11

Wiring 3.2 Block diagram

3.2

Block diagram

Block diagram

Figure 3-1 Block diagram of the IM155-5 DP ST interface module

3.3

Setting the PROFIBUS DP address

Introduction

Set the PROFIBUS DP address for the PROFIBUS DP on the IM 155-5 DP ST interface module. By setting the PROFIBUS DP address, you specify where the ET 200MP is to be addressed on the PROFIBUS DP.

Requirements

 Valid PROFIBUS DP addresses are 1 to 125.
 Each PROFIBUS DP address may be assigned only once on the PROFIBUS DP.
 The set PROFIBUS DP address must match the PROFIBUS DP address specified for the ET 200MP in the configuration software.

Required tools
Screwdriver 3 - 3.5 mm

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

12

Manual, 08/2013, A5E32346748-AA

Wiring 3.3 Setting the PROFIBUS DP address
Setting the PROFIBUS DP address
1. Open the front cover of the interface module. 2. Use a screwdriver to set the required PROFIBUS address via the DIP switch. 3. Close the front cover.

 Interface module IM 155-5 DP ST  PROFIBUS DP address  Example: PROFIBUS DP address
Figure 3-2 Setting the PROFIBUS DP address
Note Validity of the PROFIBUS DP address The IM 155-5 DP ST interface module does not apply a configured PROFIBUS DP address until after a POWER OFF/POWER ON transition.
Changing the PROFIBUS DP address
You can change the PROFIBUS DP address in exactly the same way as you set it. A change to the PROFIBUS DP address only takes effect for the ET 200MP after a POWER OFF/POWER ON transition on the interface module.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

13

Wiring 3.3 Setting the PROFIBUS DP address

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

14

Manual, 08/2013, A5E32346748-AA

Interrupts, diagnostics, error and system messages

4

4.1

Diagnostics via LED display

Introduction

Diagnostics by means of LED display is an initial tool for error localization. In order to localize errors still further, you usually need to evaluate the display of the module status in STEP 7 or the diagnostics buffer of the CPU. The diagnostics buffer contains plain text information on the error that has occurred. For example, you can find the number of the relevant error OB in the plain text information.

LED display

The figure below shows the LED display on the interface module.

 RUN (green)  ERROR (red)  MAINT (yellow)
Figure 4-1 LED display on the interface module

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

15

Interrupts, diagnostics, error and system messages 4.1 Diagnostics via LED display

Meaning of the RUN/ERROR/MAINT LED displays on the interface module

Table 4- 1 RUN Off On
Flashes
On Not relevant
On

Meaning of the RUN/ERROR/MAINT LED displays on the interface module

LEDs ERROR
Off On Off
Not relevant Flashes
On

MAINT Off On Off
Not relevant
Not relevant
Off

Meaning

Remedy

Supply voltage at interface module missing or too low

Check the supply voltage or switch it on on the interface module.

Test of LEDs during startup: The three LEDs light up simultaneously for approximately 0.25 s.

Interface module is deactivated.

Activate the interface module with the configuration software or the user program.

Interface module is not configured.

Configure the interface module with the configuration software.

ET 200MP starts up.

-

ET 200MP is configured.

ET 200MP is currently

-

exchanging data with the DP

master.

Group error and group error channels

Evaluate the diagnostics data and correct the error.

The set configuration does not correspond to the actual configuration of the ET 200MP.

Check the configuration of the ET 200MP to determine whether a module is missing or faulty, or whether a nonconfigured module has been plugged in.

Invalid configuration states

See section Invalid configuration states of the ET 200MP on PROFINET DP (Page 24).

Invalid PROFIBUS address (0,126,127)

Set the configured PROFIBUS address at the DIP switch and then switch on the interface module again.

Note Parameter assignment error in the I/O module
If incorrect parameters are assigned for an I/O module (for example, substitute value outside the value range), the I/O module switches to non-configured state. The RUN LED (green) flashes on the I/O module.
The IM 155-5 DP ST interface module does not indicate a parameter assignment error in the I/O module.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

16

Manual, 08/2013, A5E32346748-AA

4.2

Alarms

Interrupts, diagnostics, error and system messages 4.2 Alarms

4.2.1

Diagnostics alarms

Actions after a diagnostics alarm in DPV1 mode
The error is entered in the channel diagnostics in the diagnostics frame:  In DPV1 mode, diagnostics can be reported as diagnostic interrupts.  After a diagnostics alarm, this is
­ Entered as diagnostic interrupt block in the diagnostics frame. ­ Stored in the diagnostics buffer of the CPU.  The ERROR LED of the interface module flashes.  The diagnostic interrupt OB (OB 82) is called, if available.  Acknowledgment of diagnostic interrupt (a new interrupt is then possible)

Maximum length of the diagnostics frame
The maximum frame length for the ET 200MP distributed I/O system with IM155-5 DP ST interface module (DPV1 mode) is 244 bytes.

Reading out the diagnostics data

Table 4- 2 Reading out the diagnostics data with STEP 7

Automation system with DP master
SIMATIC S7

Application
Slave diagnostics data as plain text in the "DP slave diagnostics" tab in the STEP 7 user interface Instruction "DP NRM_DG" (SFC 13) Reading out slave diagnostics (store in the data area of the user program) Instruction "RD_REC" (SFC 59) Reading out data records of the S7 diagnostics data (store in the data area of the user program) Instruction "RDREC" (SFB 52) Reading data records from the DP slave Instruction "RALRM" (SFB 54) Receiving interrupts from the interrupt OBs

See...
"Diagnosing hardware" in the STEP 7 online help SFC, see STEP 7 online help
See System and Standard Functions reference manual
SFB, see STEP 7 online help (system functions/function blocks)
SFB, see STEP 7 online help (system functions/function blocks)

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

17

Interrupts, diagnostics, error and system messages 4.2 Alarms

4.2.2

Slave diagnostics
The figure below shows the structure of the slave diagnostics.
Note The length of the diagnostics frame for the IM 155-5 DP ST varies between 6 and 244 bytes, depending on the number of diagnostic entries actually present. You can identify the length of the last received diagnostics frame in STEP 7 by referring to the RET_VAL parameter of the SFC 13.

Figure 4-2 Configuration of the slave diagnostics DP

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

18

Manual, 08/2013, A5E32346748-AA

Interrupts, diagnostics, error and system messages 4.2 Alarms

4.2.3

Station statuses 1 to 3
Station states 1 to 3 provide an overview of the status of a DP slave.

Structure of station status 1 (byte 0)

Table 4- 3 Structure of station status 1 (byte 0)

Bit

Meaning

Cause/Remedy

0

1: The DP slave is not responding to the DP · Is the correct PROFIBUS address set on

master.

the DP slave?

· Is the bus connector plugged in?

· Is the DP slave connected to the voltage supply?

· Is the RS485 repeater properly configured?

1

1: The DP slave is not yet ready to

exchange data.

· Wait, the DP slave is currently starting up.

2

1: The configuration data transferred from · Has the correct station type or the

the DP master to the DP slave does not

correct DP slave configuration been

match the DP slave configuration.

entered in the configuration software?

3

1: External diagnostics is available. (Group · Evaluate the ID-specific diagnostics, the

diagnostics display)

module status, and/or the channel

diagnostics. As soon as all errors have

been eliminated, bit 3 is reset. The bit is

set again when there is a new

diagnostics alarm in the bytes of the

above-mentioned diagnostics.

4

1: The required function is not supported by · Check the configuration.

the DP slave (for example, changing the

PROFIBUS address via software).

5

1: The DP master cannot interpret the

response of the DP slave.

· Check the bus configuration.

6

1: The DP slave type does not match the · Has the correct station type been

software configuration.

specified in the configuration software?

7

1: Parameters have been assigned to the · The bit is always 1, for example, if you

DP slave by a different DP master (not the

access the DP slave with the

one that currently has access to the DP slave).

programming device or another DP master.

· The "master PROFIBUS address" diagnostic byte contains the PROFIBUS address of the DP master that assigned parameters to the DP slave.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

19

Interrupts, diagnostics, error and system messages 4.2 Alarms

Structure of station status 2 (byte 1)

Table 4- 4 Structure of station status 2 (byte 1)

Bit

Meaning

0

1: The DP slave parameters need to be reassigned.

1

1: A diagnostics alarm is present. The DP slave cannot operate until the problem is

eliminated (static diagnostics alarm).

2

1: The bit on the DP slave is always "1".

3

1: The watchdog is activated for this DP slave.

4

1: The DP slave has received the "FREEZE" control command.1

5

1: The DP slave has received the "SYNC" control command.1

6

0: Bit is always "0".

7

1: The DP slave is disabled, that is, it has been removed from the processing in

progress.

1 The bit is updated only if another diagnostics alarm changes also.

Structure of station status 3 (byte 2)

Table 4- 5 Structure of station status 3 (byte 2)

Bit 0 to 6
7

Meaning 0: Bits are always set to "0". 1: · There are more diagnostic alarms pending than the DP slave is able to store.
· The DP master cannot enter all the diagnostics alarms sent by the DP slave in its (channel) diagnostics buffer.

4.2.4

Master PROFIBUS address
The master PROFIBUS address diagnostics byte contains the PROFIBUS address of the DP master:
 That assigned parameters to the DP slave
 That has read and write access to the DP slave
The master PROFIBUS address is located in byte 3 of the slave diagnostics.
If the DP slave parameters were not assigned by the DP master, the master PROFIBUS diagnostic byte address contains "0xFF".

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

20

Manual, 08/2013, A5E32346748-AA

4.2.5

Interrupts, diagnostics, error and system messages 4.2 Alarms
Identifier-related diagnostics
The identifier-related diagnostics indicates whether or not modules of the ET 200MP distributed I/O system have errors. Identifier-related diagnostics starts at byte 6 and comprises 3 bytes. The following figure shows the structure of the identifier-rated diagnostics of the IM 1555 DP ST: interface module

Figure 4-3 Structure of the identifier-related diagnostics

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

21

Interrupts, diagnostics, error and system messages 4.2 Alarms

4.2.6

Module status
The module status indicates the status of the configured modules and provides more information on the identifier-related diagnostics with respect to the configuration. The module status begins after the identifier-related diagnostics and comprises 8 bytes.
The following figure shows the structure of the module status of the IM 155-5 DP ST interface module

Figure 4-4 Module status structure

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

22

Manual, 08/2013, A5E32346748-AA

4.2.7

Interrupts, diagnostics, error and system messages 4.2 Alarms
Channel-specific diagnostics
Channel-related diagnostics provide information about channel errors in modules and details of the identifier-related diagnostics. Channel-related diagnostic data starts after the module status. Channel-related diagnostics do not affect the module status. The following figure shows the structure of the identifier-rated diagnostics of the IM 155-5 DP ST interface module

Figure 4-5 Structure of the channel diagnostics

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

23

Interrupts, diagnostics, error and system messages 4.2 Alarms

4.2.8

Invalid configuration states of the ET 200MP on PROFIBUS DP

Invalid configuration states
The following tables shows invalid configuration states of the ET 200MP distributed I/O system. The incorrect configuration states lead to the failure of the interface module or prevent the exchange of user data with the I/O modules. Invalid configuration states are mapped to the module status of slot 1 (power status) or slot 2 (interface module).

Table 4- 6 Invalid configuration states on the ET 200MP

Invalid configuration states
Power budget fault (overload) Power supply module detected Permitted number of I/O modules exceeded No U connector detected on an IM port More than one bus master module (IM/CPU) detected Communication has failed with slot x

Signaling

Module status

Slot

Module fault (01) Slot 1 (power status) Wrong module (10) Slot 1 (power status) Module fault (01) Slot 2 (interface module) Module fault (01) Slot 2 (interface module) Module fault (01) Slot 2 (interface module) Module fault (01) Slot 2 (interface module)

You can find additional information on the module status in the section Module status (Page 22).

Additional information
You can find additional information on maximum configuration and on power budget in the ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59193214) system manual.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

24

Manual, 08/2013, A5E32346748-AA

Interrupts, diagnostics, error and system messages 4.3 Interrupts

4.3

Interrupts

Definition

The interrupt section of the slave diagnostic information indicates the interrupt type and the event that led to an interrupt being triggered. The interrupt section comprises a maximum 58 bytes.

Position in the diagnostic frame
The interrupt section is located after the channel diagnostics (only in DPV1 mode).
Example: If 3 channel-related diagnostic entries are pending, the interrupt section starts at byte 26.

Data record

The diagnostics data of a module can be up to 58 bytes in length and is located in data records 0 and 1:
 Data record 0 contains 4 bytes of diagnostic data describing the current state of an automation system. DS0 is part of the header information of OB 82 (local data bytes 8 to 11).
 Data record 1 contains the 4 bytes of diagnostic data that are also contained in data record 0, and additional 6 bytes DS1, and up to 8 channel diagnostic entries, each of which comprises 6 bytes in Siemens S7+ format.
DS0 and DS1 can be read with SFC 59 (RD_REC) or SFB 52 (RDREC).

List of Contents
The contents of the interrupt information depend on the interrupt type:
 For diagnostic interrupts, diagnostic data record 1 (up to 58 bytes) is sent as interrupt status information (starting at byte x+4).
 The status interruption for hardware interrupts is 4 bytes in length.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

25

Interrupts, diagnostics, error and system messages 4.3 Interrupts
Structure of interrupts
The interrupt section for the ET 200MP distributed I/O system is structured as follows:

Figure 4-6 Structure of the interrupt status of the interrupt section

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

26

Manual, 08/2013, A5E32346748-AA

Diagnostic interrupt, byte x+4 to x+7 (DS 0)

Interrupts, diagnostics, error and system messages 4.3 Interrupts

Figure 4-7 Structure of bytes x+4 to x+7 for diagnostic interrupt (DS 0)

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

27

Interrupts, diagnostics, error and system messages 4.3 Interrupts Diagnostic interrupt from the modules, starting at byte x+8
Figure 4-8 Structure starting at byte x+8

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

28

Manual, 08/2013, A5E32346748-AA

Interrupts, diagnostics, error and system messages 4.3 Interrupts
Diagnostic interrupt from the modules, starting at byte x+14
The channel error entries start at byte x+14. A channel error entry is 6 bytes long and can occur up to 8 times starting at byte x+14.

Figure 4-9 Structure starting at byte x+14 The following table explains the channel error entries.

Channel number Channel properties
Channel error type

Description

0 to 0x7FFF: Channel number for channel error

0x8000: Entire submodule

Bit 0 to 7

00H: Free data type

01H: bit

02H: 2 bit

03H: 4 bit

04H: byte

05H: word

06H: Double word

07H: 2 double word

08H to FFH: Reserve

Bit 8

0B: Single channel

1B: Channel group

Bit 9, 10

00H: Diagnostics

01H: Maintenance demanded

02H: Maintenance required

03H: Reserve

Bit 11, 12 00H: Channel error-free

01H: Incoming diagnostics

02H: Outgoing diagnostics

03H: Outgoing diagnostics, but other diagnostics are also pending on this channel

Bit 13 to 15 00H: Reserve

01H: Input channel

02H: Output channel

03H: Input/output channel

Refer to respective manual for explanation.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

29

Interrupts, diagnostics, error and system messages 4.3 Interrupts
Example of a Diagnostic Interrupt

Figure 4-10 Example of a Diagnostic Interrupt

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

30

Manual, 08/2013, A5E32346748-AA

Interrupts, diagnostics, error and system messages 4.3 Interrupts
Hardware interrupt of digital and analog input modules

Figure 4-11 Structure as of Byte x+4 for hardware interrupt

4.3.1

Evaluating interrupts of ET 200MP

Introduction

With certain process states/errors, the DP slave in each case creates an interrupt block with the corresponding information in the diagnostics frame (DPV1 interrupt mechanism). Regardless of this, the diagnostic status of the DP slave is displayed in the identifier-related diagnostics, in the module status, and in the channel diagnostics.

Interrupts in DPV1 mode
The ET 200MP distributed I/O system supports the following interrupts:  Diagnostic interrupts  Hardware interrupts

4.3.2

Triggering of a diagnostic interrupt

Triggering a diagnostic interrupt
For an incoming or outgoing event (e.g. wire break on a channel of an I/O module), the module triggers a diagnostic interrupt if this is configured accordingly.
The CPU interrupts processing of the user program and processes the diagnostic interrupt OB (OB 82). The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

31

Interrupts, diagnostics, error and system messages 4.3 Interrupts

4.3.3

Triggering of a hardware interrupt

Triggering a hardware interrupt
When a hardware interrupt occurs, the CPU interrupts user program execution and processes the hardware interrupt block OB, e.g., OB 40. The event that triggered the interrupt is added to the start information of the hardware interrupt OB.
Note Diagnostics "Hardware interrupt lost" (from I/O module)
Do not use hardware interrupts for functional purposes (e.g. cyclic generation of hardware interrupts).
If the hardware interrupt load is too high, hardware interrupts can get lost depending on the number of I/O modules and the communication load.

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

32

Manual, 08/2013, A5E32346748-AA

Technical specifications

5

5.1

Technical specifications

Technical specifications of the IM 155-5 DP ST

6ES7155-5BA00-0AB0

General information

Hardware version

01

Firmware version

V1.0.0

Vendor identifier (VendorID)

81AAh

Product function

I&M data

Yes; IM0 to IM3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V12.0 SP1

STEP 7 can be configured/integrated as of version as of V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / 5.1

Supply voltage

Type of supply voltage

DC

Rated value (DC)

24 V

Valid range low limit (DC)

20.4 V

Valid range high limit (DC)

28.8 V

Reverse polarity protection

Yes

Power and voltage failure backup

Power/voltage failure backup time

5 ms

Input current

Current consumption (rated value)

0.2 A; at 24 V DC and without load

Current consumption, max.

1.2 A; at 20.4 V DC and max. load

Inrush current, max.

4 A

I²t

0.09 A²s

Power

Incoming power to the backplane bus

14 W

Power loss

Power loss, typ.

4 W; typical

Address area

Address space per module

Address space per module, max.

128 byte; per input/output

Address space per station

Address space per station, max.

244 byte; per input/output

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

33

Technical specifications 5.1 Technical specifications

Hardware configuration System power supply can be plugged in to left of IM Number of permissible power segments Modules per rack, max. Interfaces Number of PROFIBUS interfaces 1. Interface Protocols
· PROFIBUS DP slave
Interface hardware RS 485 Transmission rate, max. Protocols PROFIBUS Services · SYNC capability
· FREECE capability
· DPV1
Interrupts/diagnostics/status information Status display Interrupts Interrupts Diagnostic alarms Diagnostic functions Diagnostic indicator LED RUN LED ERROR LED MAINT LED Electrical isolation between backplane bus and electronics between PROFIBUS DP and all other circuit components between supply and all other circuits Permitted potential difference Between different circuits Insulation Insulation tested with

6ES7155-5BA00-0AB0 No 1 12; I/O modules 1
Yes
12 Mbps
Yes Yes Yes
Yes Yes Yes Yes; green LED Yes; red LED Yes; yellow LED No Yes No 75 V DC / 60 V AC 707 V DC (type test)

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

34

Manual, 08/2013, A5E32346748-AA

Ambient conditions Operating temperature Horizontal installation, min. Horizontal installation, max. Vertical installation, min. Vertical installation, max. Dimensions Width Height Depth Weights Weight, approx.

Technical specifications 5.1 Technical specifications
6ES7155-5BA00-0AB0
0 °C 60 °C 0 °C 40 °C
35 mm 147 mm 129 mm
360 g

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

35

Technical specifications 5.1 Technical specifications

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

36

Manual, 08/2013, A5E32346748-AA

Dimension drawing

A

A.1

Dimension drawing IM 155-5 DP ST
The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Dimensional drawings of the IM 155-5 DP ST interface module

Figure A-1 Dimensional drawing of the IM 155-5 DP ST interface module, front and side views

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

37

Dimension drawing A.1 Dimension drawing IM 155-5 DP ST Dimensional drawing of the IM 155-5 DP ST interface module, side view with open front cover
Figure A-2 Dimensional drawing of the IM 155-5 DP ST interface module, side view with open front cover

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

38

Manual, 08/2013, A5E32346748-AA

Response times

B

B.1

Response times of the ET 200MP

Introduction

The response time of the IM 155-5 DP ST is made up of:  The minimum slave interval for the IM plus  The backplane bus cycle time.

Backplane bus cycle time
The backplane bus cycle time is the time the interface module requires to output new output data, read new input data and then copy it to the PROFIBUS send buffer. The backplane bus cycle time in s is made up as follows:  (amount of output data in bytes) x 1.6958 + 77.786 (rounded) plus  (amount of input data in bytes) x 0.3481 + 33.587 (rounded) plus  Operating system processing time (500 s).

Example configuration for the calculation of the backplane bus cycle time
The following are used in the example:

Table B- 1 Example configuration for the calculation of the backplane bus cycle time

I/O module
Analog output module AQ 4xU/I ST Analog output module AQ 4xU/I ST with value status Digital output module DQ 32x24VDC/0.5A ST with value status Digital input module DI 32x24VDC HF Analog input module AI 8xU/I/RTD/TC ST Sum

Output data in bytes 8 8 4 20

Input data in bytes 1 4 4 16 25

IM 155-5 DP ST interface module (6ES7155-5BA00-0AB0)

Manual, 08/2013, A5E32346748-AA

39

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

SIMATIC
ET 200MP Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)
Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Wiring

3

Interrupts and diagnostic, error, and system alarms

4

Technical specifications

5

Dimension drawing

A

08/2019
A5E38017683-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E38017683-AB  08/2019 Subject to change

Copyright © Siemens AG 2017 - 2019. All rights reserved

Preface

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Purpose of the documentation
This manual supplements the system manual S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792). Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals support you in commissioning the system.

Conventions

Please also observe notes marked as follows:
Note A note contains important information on the product, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

3

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide ............................................................................................ 5

2 Product overview .................................................................................................................................... 7

2.1

Properties ................................................................................................................................. 7

2.2

Functions.................................................................................................................................. 9

3 Wiring ................................................................................................................................................... 12

3.1

Terminal assignment.............................................................................................................. 12

3.2

Block diagram ........................................................................................................................ 13

4 Interrupts and diagnostic, error, and system alarms............................................................................... 14

4.1

Status and error displays ....................................................................................................... 14

4.2 4.2.1 4.2.2

Interrupts ................................................................................................................................ 17 Triggering of a diagnostic interrupt ........................................................................................ 18 Triggering of a hardware interrupt.......................................................................................... 18

4.3 4.3.1 4.3.2 4.3.3 4.3.4

Alarms .................................................................................................................................... 19 Diagnostic alarms................................................................................................................... 19 Channel diagnostics............................................................................................................... 20 Invalid configuration states of the ET 200MP on PROFINET IO ........................................... 21 STOP of the IO controller and recovery of the IO device ...................................................... 21

5 Technical specifications ........................................................................................................................ 22

A Dimension drawing ............................................................................................................................... 26

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

4

Manual, 08/2019, A5E38017683-AB

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

5

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

6

Manual, 08/2019, A5E38017683-AB

Product overview

2.1

Properties

Article number
6ES7155-5AA00-0AA0

View of the module

2

Properties

Figure 2-1 View of the IM 155-5 PN BA interface module
 Technical properties ­ Connects the ET 200MP distributed I/O system with PROFINET IO ­ 24V DC power supply (SELV/PELV) ­ PROFINET IO connection using RJ45 bus connector
 Supported functions (Page 9)

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

7

Product overview 2.1 Properties

Maximum configuration
The integrated power supply of the interface module feeds 14 W into the backplane bus. Up to 12 I/O modules can be supplied this way. The exact number of operable modules is determined by the power budget (see relevant section in the S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual).
The interface module IM 155-5 PN BA does not support any additional power supply (PS) modules.

Maximum amount of I/O data
You can operate a maximum of 64 byte inputs and 64 byte outputs per station.

Accessories

A detailed list of the available accessories is available in the system manual S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

8

Manual, 08/2019, A5E38017683-AB

Product overview 2.2 Functions

2.2

Functions

PROFINET IO

The interface module supports the following PROFINET IO functions:  Integrated switch with 2 ports  Supported Ethernet services: ping, arp, SNMP, LLDP  Port diagnostics  Disabling ports  Minimum update time 1 ms  Device replacement without programming device  Media redundancy (MRP)  Shared device with two IO Controllers  Module-internal Shared Input/Shared Output (MSI/MSO)  Identification data I&M 0 to 3  Firmware update via PROFINET IO  Reset to factory settings via PROFINET IO  Module division into submodules  PROFIsafe (as of FW version V4.3.0)

Note Docking system
The interface module IM155-5 PN BA cannot be used as a docking station. The use as a docking unit (function: IO devices changing during operation) in a docking system is supported.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

9

Product overview 2.2 Functions

Requirements

The following requirements apply for the usage of the PROFINET IO functions with the IM 155-5 PN BA interface module:
You use the following as the design software:
 STEP 7 (TIA Portal) as of V15.1 with HSP_V15_1_0187_001_ET200MP_PN_BA_4.3
 With GSD file: The usability of the PROFINET IO functions depends on the configuration software (Siemens and/or third party). Below, the usability of the PROFINET IO functions is described for STEP 7 only.
­ STEP 7 as of V5.5 SP3
­ STEP 7 (TIA Portal as of V15.1)
The GSD file can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/view/68189683).
With GSD file no F-modules can be used.GSD

Cabling with fixed connection setting
If you set a fixed connection setting of the port in STEP 7, you should also deactivate "Autonegotiation/Autocrossover".
You can find additional information in the STEP 7 online help and
 as of STEP 7 V15, in the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Device replacement without programming device
It is easy to replace IO devices that support this function:
 The device name does not have to be assigned with the programming device.
The replaced IO device is assigned the device name by the IO controller. The IO controller uses the configured topology and the neighboring relationships determined by the IO devices for this purpose. All involved devices must support the LLDP protocol (Link Layer Discovery Protocol). The configured target topology must match the actual topology.
IO devices that have been used in another configuration must be reset to the factory settings before they can be used again (see S7-1500, ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual).
You can find additional information in the STEP 7 online help and
 as of STEP 7 V15, in the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

10

Manual, 08/2019, A5E38017683-AB

Product overview 2.2 Functions

Media redundancy
Function for safeguarding communication and system availability. A ring topology ensures that an alternative communication path is made available if a transmission link fails.
You can find additional information in the STEP 7 online help and
 as of STEP 7 V15, in the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Shared device

IO device which makes its data available to multiple IO Controllers.
You can find additional information in the STEP 7 online help and
 as of STEP 7 V15, in the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Submodules

The IM 155-5 PN BA interface module supports the module division of I/O modules into up to 9 submodules. This allows parts of an I/O module to be separately configured and assigned parameters. It is possible to assign each of these submodules to different IO controllers. The functions  Firmware update  Write I&M data  Calibration can only be executed if you have configured Submodule 1 during configuration.

Module-internal Shared Input/Shared Output (MSI/MSO)
The Module-internal Shared Input function allows an input module to make its input data available to a further IO Controller. Each controller has read access to the same channels.
The Module-internal Shared Output function allows an output module to make its output data available to a further IO Controller. One IO controller has write access. A further IO controller can have read access to the same channels.
You can find more information on this topic in the STEP 7 online help and
 As of STEP 7 V14, in the PROFINET with STEP 7 V14 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

11

Wiring

3

3.1

Terminal assignment

24 V DC supply voltage
The following table shows the signal names and the descriptions of the terminal assignment for a 24 V DC supply voltage.

Table 3- 1 Terminal assignment 24 V DC supply voltage

View

Signal name1 1L+ 2L+ 1M 2M

Description 24 V DC 24 V DC (for looping through)2 Ground Ground (for looping through)2

1 1L+ and 2L+ as well as 1M and 2M are bridged internally. 2 Maximum 10 A permitted.

PROFINET interface X1 Port 2
If autonegotiation is disabled, the RJ-45 socket (X1 Port 2) has the switch assignment (MDI-X).

Reference

You can find additional information on connecting the interface module and on the accessories (RJ45 bus connector) in the system manual S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

12

Manual, 08/2019, A5E38017683-AB

Wiring 3.2 Block diagram

3.2

Block diagram

Block diagram
The following figure shows the block diagram of the interface module IM 155-5 PN BA.

   
X80 24 VDC
PN X1 P1

Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage Infeed of supply voltage PROFINET interface X1 Port 1

PN X1 P2 PROFINET interface X1 Port 2

L+ M RN ER MT X1 P1, X1 P2

24 VDC supply voltage Ground LED RUN (green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX (green/yellow)

Figure 3-1 Block diagram of the IM 155-5 PN BA interface module

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

13

Interrupts and diagnostic, error, and system alarms

4

4.1

Status and error displays

Introduction

Diagnostics by means of LED display is an initial tool for error localization. To further limit the error, you usually evaluate the display of the CPU, the display of the module status in STEP 7 or the diagnostics buffer of the CPU. The buffer contains plain text information on the error that has occurred. For example, you will find the number of the appropriate error OB there.

LED display

The figure below shows the LED display on the IM 155-5 PN BA interface module.

 RUN (green)  ERROR (red)  MAINT (yellow)  P1 LINK/TX/RX (green/yellow)  P2 LINK/TX/RX (green/yellow)
Figure 4-1 LED display on the interface module

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

14

Manual, 08/2019, A5E38017683-AB

Interrupts and diagnostic, error, and system alarms 4.1 Status and error displays

Meaning of the LEDs RUN / ERROR / MAINT

Table 4- 1 Meaning of the LEDs RUN / ERROR / MAINT

RUN Off On Flashes
On Not relevant
Flashes

LEDs ERROR
Off On Off
Not relevant Flashes
Flashes

Meaning

Remedy

MAINT Off On Off

Supply voltage not present at interface module or too small
Test of LEDs during startup: The three LEDs light up simultaneously for approximately 0.25 s. Interface module is deactivated.
Interface module is not configured.

Not relevant

ET 200MP starts up.
ET 200MP is reset to factory settings.
ET 200MP is currently exchanging data with the IO controller.

Check the supply voltage or turn it on at the interface module. ---
Activate the interface module with the configuration software or the user program. Configure the interface module with the configuration software. ---

Not relevant
Flashes

Group error and group error channels
The set configuration does not correspond to the actual configuration of the ET 200MP.
Invalid configuration states
Parameter assignment error in the I/O module
"Node flash test" is performed. (The LEDs P1 and P2 of the PROFINET interface are also flashing.) Hardware or firmware defective. (The LEDs P1 and P2 of the PROFINET interface are not flashing.)

Evaluate the diagnostics data and correct the error. Check the design of the ET 200MP to see whether a module is missing or defective, or whether a non-configured module is inserted. See chapter Invalid configuration states of the ET 200MP on PROFINET IO (Page 21) Evaluate the display of the module status in STEP 7 and correct the error in the corresponding I/O module. ---
Replace the interface module.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

15

Interrupts and diagnostic, error, and system alarms 4.1 Status and error displays

Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

Table 4- 2 Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

LEDs P1 LINK/TX/RX, P2 LINK/TX/RX
Off
On
flickers Flashes

Meaning

Remedy

There is no Ethernet connection between the

Check whether the bus cable to the switch/IO

PROFINET interface of your PROFINET device controller is interrupted.

and a communication partner (e.g. IO controller).

There is an Ethernet connection between the

---

PROFINET interface of your PROFINET device

and a communication partner (e.g., IO controller).

There is active data traffic (sending/receiving) via --the Ethernet connection.

"Node flash test" is performed. (The LEDs

---

RUN/ERROR/MAINT are also flashing.)

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

16

Manual, 08/2019, A5E38017683-AB

Interrupts and diagnostic, error, and system alarms 4.2 Interrupts

4.2

Interrupts

Introduction

The I/O device generates interrupts as a reaction to specific error events. Interrupts are evaluated based on the I/O controller used.

Evaluating interrupts with I/O controllers
The ET 200MP distributed I/O system supports the following interrupts:
 Diagnostic interrupts
 Hardware interrupts
In the event of an interrupt, interrupt OBs are automatically called in the CPU of the IO controller.
Information on the cause and class of the error is already available, based on the OB number and start information.
Detailed information on the error event can be obtained in the error OB using the instruction "RALRM" (read additional interrupt information).

System diagnostics
In STEP 7 (TIA Portal) as of V14, innovative system diagnostics is available for devices of the S7-1500 automation system and ET 200MP. Independently of the cyclical user program, alarms are made available on the display of the S7-1500 CPU, to the S7-1500 CPU web server, to the HMI device and in STEP 7.
For additional information on the system diagnostics, refer to the System Diagnostics function manual. (https://support.industry.siemens.com/cs/ww/en/view/59192926).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

17

Interrupts and diagnostic, error, and system alarms 4.2 Interrupts

4.2.1

Triggering of a diagnostic interrupt

Triggering of a diagnostic interrupt
For an incoming or outgoing event (e.g., wire break on a channel of an I/O module), the module triggers a diagnostic interrupt if this is configured accordingly in STEP 7 (TIA Portal).
The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.

4.2.2

Triggering of a hardware interrupt

Triggering of a hardware interrupt
When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the hardware interrupt OB. The event that triggered the interrupt is entered in the start information of the hardware interrupt OB.
Note Diagnostics "Hardware interrupt lost" (from I/O module) Avoid creating hardware interrupts cyclically. If the hardware interrupt load is too high, hardware interrupts can get lost depending on the number of I/O modules and the communication load.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

18

Manual, 08/2019, A5E38017683-AB

4.3

Alarms

Interrupts and diagnostic, error, and system alarms 4.3 Alarms

4.3.1

Diagnostic alarms

Requirement

In order to generate diagnostics, the IM 155-5 PN BA interface module parameters must have been assigned once.

Actions after a diagnostic alarm
There can be more than one diagnostic alarm at the same time. Actions initiated by diagnostic alarms:
 The ERROR LED of the interface module flashes.
 Diagnostic data is reported as diagnostic interrupts to the CPU of the IO controller and can be read via data records.
 Incoming diagnostic alarms are saved to the diagnostic buffer of the IO controller.
 The diagnostic interrupt OB is called.
You can find additional information in the STEP 7 online help.

Reading out the diagnostic data

Table 4- 3 Reading out the diagnostic data with STEP 7

Automation system with IO controller
SIMATIC S7

Application

See...

Diagnostic data as plain text in STEP 7 using online view and diagnostic view
Instruction "RDREC" Read data records from the IO device
Instruction "RALRM" Receive interrupts from the IO device

STEP 7 online help PROFINET with STEP 7 V15 function manual (https://support.industry.siemen s.com/cs/ww/en/view/49948856)

Additional information on the data records for PROFINET IO
You can find the structure of the diagnostic data records and programming examples in the programming manual From PROFIBUS DP to PROFINET IO (https://support.industry.siemens.com/cs/ww/en/view/19289930) and in the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/24000238).

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

19

Interrupts and diagnostic, error, and system alarms 4.3 Alarms
Causes of error and troubleshooting
The error causes and corrective measures of the diagnostic alarms are described in the manuals for the I/O modules (https://support.industry.siemens.com/cs/ww/en/ps/14039/man) in the Interrupts/Diagnostic alarms section.

4.3.2

Channel diagnostics

Function

Channel diagnostics provides information about channel faults in modules. Channel faults are mapped as channel diagnostic data in IO diagnostic data records. The "RDREC" instruction is used to read the data record.

Structure of the diagnostic data records
The data records supported by the ET 200MP are based on the standard PROFINET IO Application Layer Service Definition V2.3.
You can purchase the standard from the PROFIBUS User Organization on the Internet (https://www.profibus.com).

Codes of the extended channel diagnostics
With the IM 155-5 PN BA interface module, the following extended channel diagnostics are reported by the Interface module in slot 1:

Table 4- 4 Extended channel diagnostics IM 155-6 PN BA

ChannelErrorType
0x0601 0x0602 0x0602 0x0602 0x0610
0x0610

ExtendedChannel ErrorType 0x0682 0x0692 0x0696 0x0697 0x06B1
0x06B2

Associated value Diagnostics (AddValue)

Slot
Slot 0
0
1 (Interface module slot) 0

Communication has failed with slot <No.> Permitted number of I/O modules exceeded No U connector detected on an IM port More than one bus master module (IM/CPU) detected Power budget error (overload has been detected in at least one power segment)
Error IM power supply: Power supply not active or power supply active

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

20

Manual, 08/2019, A5E38017683-AB

Interrupts and diagnostic, error, and system alarms 4.3 Alarms
Additional information
You can find additional information on maximum configuration, power budget and power segments in the S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.

4.3.3

Invalid configuration states of the ET 200MP on PROFINET IO

Invalid configuration states
The following invalid configuration states of the ET 200MP lead to a short failure of the ET 200MP IO device or prevent the exchange of user data with the I/O modules.
 Number of modules exceeds maximum configuration
 Faulty backplane bus (e.g., additional IM present).

Additional information
You can find additional information on maximum configuration and on power budget in the s7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.

See also:

Status and error displays (Page 14)

4.3.4

STOP of the IO controller and recovery of the IO device

STOP of the SIMATIC IO controller
Diagnostic data received from the IO device while the IO controller is in STOP state does not initiate a call of the corresponding OBs when the IO controller goes into RUN. You have to read the data record E00CH using the "RDREC" in the startup OB. This record contains all diagnostic data for the slots assigned to an IO controller in an IO device.

Recovery of the SIMATIC IO device
If you want to read the diagnostic data in the STOP state of the IO controller, you have to read the E00CH data record using the "RDREC" instruction. This record contains all diagnostic data for the slots assigned to an IO controller in an IO device.

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

21

Technical specifications

5

Technical specifications of the IM 155-5 PN BA

Article number General information
Product type designation HW functional status Firmware version Vendor identification (VendorID) Device identifier (DeviceID) Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFINET as of GSD version/GSD revision
Configuration control via user data via dataset
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Short-circuit protection
Mains buffering · Mains/voltage failure stored energy time
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t
Power Infeed power to the backplane bus

6ES7155-5AA00-0AA0
IM 155-5 PN BA FS02 V4.3.0 0x002A 0X0312
Yes; I&M0 to I&M3
V15.1 with HSP 187
V5.5 SP3 / -
V2.3 / -
No No
24 V 20.4 V 28.8 V Yes Yes
5 ms
1 A 1.7 A 2.8 A 0.04 A²·s
14 W

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

22

Manual, 08/2019, A5E38017683-AB

Technical specifications

Article number Power loss
Power loss, typ. Address area Address space per module
· Address space per module, max. Address space per station
· Address space per station, max. Hardware configuration
Integrated power supply System power supply can be plugged in to left of IM Number of permissible power segments Rack · Modules per rack, max. Submodules · Number of submodules per station, max. Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports
· integrated switch
· RJ 45 (Ethernet)
· BusAdapter (PROFINET) Protocols
· PROFINET IO Device
· Media redundancy Interface types RJ 45 (Ethernet)
· Transmission procedure
· 100 Mbps
· Autonegotiation
· Autocrossing Protocols PROFINET IO Device Services
­ Isochronous mode ­ Open IE communication

6ES7155-5AA00-0AA0 3 W
64 byte; per input / output
64 byte; per input / output
Yes No 1 12; I/O modules
108; 9 submodules / I/O modules
1; 2 ports (switch) RJ45
2 Yes Yes No
Yes Yes
PROFINET with 100 Mbit/s full duplex (100BASE-TX) Yes Yes Yes
No Yes

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

23

Technical specifications

Article number ­ IRT
­ PROFIenergy
­ Prioritized startup ­ Shared device
­ Number of IO Controllers with shared device, max.
Redundancy mode · MRP
· MRPD
· PROFINET system redundancy (S2) Open IE communication
· TCP/IP
· SNMP
· LLDP Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance Interrupts/diagnostics/status information Status indicator Alarms Diagnostics function Diagnostics indication LED · RUN LED
· ERROR LED
· MAINT LED
· Connection display LINK TX/RX Potential separation
between backplane bus and electronics between PROFINET and all other circuits between supply and all other circuits Permissible potential difference between different circuits Isolation Isolation tested with Standards, approvals, certificates Network loading class

6ES7155-5AA00-0AA0 No No No Yes 2
Yes No No
Yes Yes Yes
No No
Yes Yes Yes
Yes; Green LED Yes; Red LED Yes; Yellow LED Yes; 2x green-yellow LEDs
No Yes; 1500 V AC No
Safety extra low voltage SELV
707 V DC (type test)
2

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

24

Manual, 08/2019, A5E38017683-AB

Technical specifications

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Altitude during operation relating to sea level
· Installation altitude above sea level, max.
Dimensions Width Height Depth
Weights Weight, approx.

6ES7155-5AA00-0AA0
0 °C 60 °C 0 °C 40 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual
35 mm 147 mm 129 mm
236 g

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

25

Dimension drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimension drawings of the IM 155-5 PN BA interface module

Figure A-1 Dimension drawing of the IM 155-5 PN BA interface module, front and side views

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

26

Manual, 08/2019, A5E38017683-AB

Dimension drawing
Figure A-2 Dimension drawing of theIM 155-5 PN BA interface module, side view with open front cover

Interface module IM 155-5 PN BA (6ES7155-5AA00-0AA0)

Manual, 08/2019, A5E38017683-AB

27

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

SIMATIC
ET 200MP IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)
Equipment Manual

Preface

Guide to documentation

1

Product overview

2

Wiring

3

Parameter

4

Interrupts and diagnostic, error, and system alarms

5

Technical specifications

6

Dimension drawing

A

Response times

B

03/2020
A5E32840985-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32840985-AC  03/2020 Subject to change

Copyright © Siemens AG 2014 - 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792). Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the system.

Conventions

Please also observe notes labeled as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product, or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

4

Equipment Manual, 03/2020, A5E32840985-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Guide to documentation .......................................................................................................................... 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ................................................................................................................................ 11

2.2 2.2.1 2.2.2 2.2.3

Functions ................................................................................................................................14 PROFINET IO .........................................................................................................................14 Configuration control (option handling)...................................................................................20 System redundancy on S7-400H............................................................................................20

3 Wiring ................................................................................................................................................... 21

3.1

Pin assignment .......................................................................................................................21

3.2

Block diagram .........................................................................................................................22

4 Parameter............................................................................................................................................. 23

4.1

Parameters .............................................................................................................................23

4.2 4.2.1 4.2.2

Description of parameters.......................................................................................................23 Connection to supply voltage L+ ............................................................................................23 Configuration control (option handling)...................................................................................25

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5

Configuration control (option handling)...................................................................................25 Configuration control and control data record ........................................................................25 Feedback data record .............................................................................................................29 Configure configuration control without empty slots ...............................................................31 Extending the configuration ....................................................................................................33 Combining configurations .......................................................................................................35

5 Interrupts and diagnostic, error, and system alarms............................................................................... 37

5.1

Status and error displays ........................................................................................................37

5.2 5.2.1 5.2.2

Interrupts .................................................................................................................................40 Triggering of a diagnostic interrupt .........................................................................................41 Triggering of a hardware interrupt ..........................................................................................41

5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5

Alarms .....................................................................................................................................42 Diagnostic alarms ...................................................................................................................42 Maintenance events................................................................................................................44 Channel diagnostics................................................................................................................45 Invalid configuration states of the ET 200MP on PROFINET IO ............................................50 STOP of the IO controller and recovery of the IO device .......................................................51

6 Technical specifications ........................................................................................................................ 52

A Dimension drawing ............................................................................................................................... 56

B Response times .................................................................................................................................... 58

B.1

Response times of the ET 200MP ..........................................................................................58

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

5

Guide to documentation

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

7

Guide to documentation

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

8

Equipment Manual, 03/2020, A5E32840985-AC

Guide to documentation

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

9

Guide to documentation

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

10

Equipment Manual, 03/2020, A5E32840985-AC

Product overview

2.1

Properties

Order number
6ES7155-5AA00-0AC0

View of the module

2

Figure 2-1 View of the IM 155-5 PN HF interface module

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

11

Product overview 2.1 Properties

Properties

 Technical properties ­ Connects the ET 200MP distributed I/O system with PROFINET IO ­ 24 VDC supply voltage (SELV/PELV) ­ PROFINET IO connection using RJ45 bus connector ­ Pulling and plugging I/O modules on the active backplane bus (multi hot swapping) You can find additional information, in the Active backplane bus (https://support.industry.siemens.com/cs/ww/en/view/109769815)Equipment Manual.
 Supported functions (Page 14)

Maximum configuration
 512 bytes I/O data per station
 The integrated power supply of the interface module feeds 14 W into the backplane bus. Up to 12 I/O modules can be supplied with this. The exact number of operable modules is determined by the power budget (see relevant section in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792)).
 A maximum of one power supply module (PS) upstream from the interface module and two downstream from the interface module is possible.
 If you use a power supply module (PS) upstream from the interface module, the maximum possible configuration is a total of 32 modules (up to 30 modules downstream from the interface module).

Maximum amount of I/O data (PROFINET IO)
Maximum amount of I/O data The sum of the gross data for all I/O controllers for input and output data must not exceed the following value:  4000 bytes
Maximum gross data length per IO controller (for input and output data): Without system redundancy S2:  1020 bytes With system redundancy S2:  2 x 1020 bytes

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

12

Equipment Manual, 03/2020, A5E32840985-AC

Product overview 2.1 Properties
The actual gross data length for input and output data depends on the number and type of I/O modules used and is calculated as follows:  Actual gross data length = net data length + number of I/O submodules (without user
data, input or output data) + number of I/O modules (input and output data) + 4 bytes for interface module + 1 byte for active backplane bus The result of the actual gross data length calculation applies to both input and output data.
Maximum gross data length per IO controller (for input and output data): Without system redundancy S2:  512 bytes With system redundancy S2:  2 x 512 bytes

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

13

Product overview 2.2 Functions

2.2

Functions

2.2.1

PROFINET IO

Introduction

The interface module supports the following PROFINET IO functions:  Integrated switch with 2 ports  Supported Ethernet services: ping, arp, SNMP, LLDP  Port diagnostics  Deactivating ports  Isochronous real-time communication (IRT)  Minimum update time 250 s  Prioritized startup  Device replacement without PG  Media redundancy (MRP)  Media redundancy with planned duplication (MRPD)  Shared Device with up to four IO controllers  Module-internal Shared Input/Shared Output (MSI/MSO)  Isochronous mode of process data  Identification data I&M 0 to 3  Firmware update via PROFINET IO  Reset to factory settings via PROFINET IO  Configuration control (option handling)  System redundancy on S7-400H  System redundancy S2  IO devices changing during operation ("alternative partners")
­ Docking station

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

14

Equipment Manual, 03/2020, A5E32840985-AC

Product overview 2.2 Functions

Requirements

The table below shows the software requirements for a configuration with the IM 155-5 PN HF interface module:

Table 2- 1 Requirements

PROFINET IO function
Real-time communication Isochronous real-time communication (IRT) Prioritized startup Device replacement without PG Media redundancy (MRP) Media redundancy with planned duplication (MRPD) Shared Device · with up to two IO control-
lers · with up to four IO control-
lers Isochronous mode System redundancy on S7-400H System redundancy S2 IO devices changing during operation ("alternative partners") · Docking station

Configuration software

with GSD file1)

STEP 7 V5.5 SP3 or higher
X X

STEP 7 (TIA Portal) V13 or higher X X

X

X

X

X

X

X

X

X

X -
X X As of V5.6

X2) X2)
As of V15.1

STEP 7 (TIA Portal) V13 or higher
X X
X X
X -
-
X -
As of V15.1 As of V15.1

1) The usability of the PROFINET IO functions depends on the configuration software (Siemens and/or third party). Below, the usability of the PROFINET IO functions is described for STEP 7 only.
2) No validity check of Shared Device projects

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

15

Product overview 2.2 Functions
Isochronous real-time communication
Synchronized transmission method for cyclic exchange of IRT data between PROFINET devices. A reserved bandwidth is available in the send cycle for IRT data. The reserved bandwidth ensures that IRT data can be transferred at reserved synchronized intervals, without being influenced by other network loads (e.g., TCP/IP communication, or additional real-time communication). A topological configuration is required for IRT.
Note IO controller as sync master with IRT communication We recommend operating the IO controller as sync master when configuring IRT communication. Otherwise, IO devices with IRT and RT configuration could fail as a result of sync master failure.
You can find additional information on configuration of synchronized PROFINET devices in sync domains in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual  As of STEP 7 V5.5, in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual
Prioritized startup
Prioritized startup denotes the PROFINET functionality for accelerating the startup of IO devices operated in a PROFINET IO system with RT communication. The function reduces the time that the correspondingly configured IO devices require to return to the cyclic user data exchange in the following cases:  After the supply voltage has returned  After a station has returned  After activation of IO devices
Note Dependency of the startup time The startup time depends on the number and type of modules. You can optimize the startup time by · Inserting no more than 12 I/O modules · Inserting no power supply module.
The prioritized startup function with the requirements listed in the note above is not available for IRT communication and media redundancy.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

16

Equipment Manual, 03/2020, A5E32840985-AC

Product overview 2.2 Functions
You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual  As of STEP 7 V5.5, in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual
Cabling with fixed connection setting
If you set a fixed connection setting of the port in STEP 7, you should also deactivate "Autonegotiation/Autocrossover". You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual  As of STEP 7 V5.5, in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual
Device replacement without PG
It is easy to replace IO devices that support this function:  The device name does not have to be assigned with the PG. The replaced IO device is assigned the device name by the IO controller. The IO controller uses the configured topology and the neighbor relationships determined by the IO devices for this purpose. All involved devices must support the LLDP protocol (Link Layer Discovery Protocol). The configured preset topology must match the actual topology. IO devices that have been used in another configuration must be reset to the factory settings before they can be used again (see system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792)). You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual  As of STEP 7 V5.5, in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual
Media redundancy (MRP)
Function for safeguarding communication and plant availability. A ring topology ensures that an alternative communication path is made available if a transmission route fails. You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual  As of STEP 7 V5.5, in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

17

Product overview 2.2 Functions

Media redundancy with planned duplication (MRPD)
If media redundancy is to be achieved in the case of short update times (together with IRT), you must use the MRP extension "Media redundancy with planned duplication (MRPD)".
You can find additional information in the STEP 7 online help and
 As of STEP 7 V12, in the PROFINET with STEP 7 (http://support.automation.siemens.com/WW/view/en/49948856) function manual
 As of STEP 7 V5.5, in the PROFINET System Description (http://support.automation.siemens.com/WW/view/en/19292127) manual

Shared Device

IO device that makes its data available to up to four IO controllers.
The interface module supports Shared Device operation at the submodule level. A prerequisite for using this function is that the I/O modules also support this.
Please note the following if the Engineering System does not perform a validity check of the Shared Device projects:
 Make sure that the configurations are consistent. In particular, the modules or submodules may only be assigned to one controller. Multiple assignment will result in an error; the module will only be available in the first controller.
 If you reconfigure Shared Device configurations without the validity check mentioned above, you have to commission the ET 200MP once again. This means that you have to reload the projects of all involved IO controllers to the specific CPU after reconfiguration and, if necessary, switch the interface module POWER OFF/POWER ON.
You can find additional information in the STEP 7 online help and
 As of STEP 7 V12, in the PROFINET with STEP 7 (http://support.automation.siemens.com/WW/view/en/49948856) function manual
 As of STEP 7 V5.5, in the PROFINET System Description (http://support.automation.siemens.com/WW/view/en/19292127) manual

Module-internal Shared Input/Shared Output (MSI/MSO)
The module-internal Shared Input function allows an input module to make its input data available to up to four IO controllers. Each controller has read access to the same channels.
The module-internal Shared Output function allows an output module to make its output data available to up to four IO controllers. One IO controller has write access. Up to three additional IO controllers can have read access to the same channels.
The combination of isochronous mode and Shared Device is not supported.
You can find additional information in the STEP 7 online help and
 As of STEP 7 V12, in the PROFINET with STEP 7 (http://support.automation.siemens.com/WW/view/en/49948856) function manual

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

18

Equipment Manual, 03/2020, A5E32840985-AC

Product overview 2.2 Functions
Isochronous mode of process data
The process data, transmission cycles via PROFINET IO, and the user program are synchronized to achieve maximum deterministics. The input data and output data of distributed I/O devices in the plant are detected and output simultaneously. The isochronous PROFINET IO cycle forms the clock generator for this. The combination of isochronous mode and Shared Device is not supported. You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual
System redundancy S2
An IO device with S2 system redundancy supports redundant ARs. In a redundant system, an IO device with system redundancy S2 has a redundant AR for each of the two CPUs (IO controllers). If one CPU fails, the IO device with S2 system redundancy remains accessible to the remaining IO controller via the AR. The interface module supports system redundancy S2 on S7-400H CPUs and on S71500R/H CPUs. You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual
IO devices changing during operation ("alternative partners") - docking station
You can use the PROFINET functionality "IO devices changing during operation" ("alternative partners"), e.g. for tool change for robots. Typical tools include:  Welding guns  Positioning tools for manufacturing parts You can find additional information in the STEP 7 online help and  As of STEP 7 V12, in the PROFINET with STEP 7
(http://support.automation.siemens.com/WW/view/en/49948856) function manual

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

19

Product overview 2.2 Functions

2.2.2

Configuration control (option handling)

Properties

Configuration control allows you to prepare your distributed I/O system for future extensions or changes. Configuration control means that you can configure the planned maximum configuration of your distributed I/O system in advance and vary it later in a flexible manner by means of the user program.

Reference

You can find more information  In chapter Configuration control (option handling) (Page 25)  On the Internet (http://support.automation.siemens.com/WW/view/en/29430270)  In the STEP 7 online help.

2.2.3

System redundancy on S7-400H

Interface to H-CPUs with system redundancy
When system redundancy is used, you can connect the IM 155-5 PN HF (6ES7155-5AA000AC0) interface module to CPUs 41x-5H PN/DP (version 6.0 or higher) of the S7-400.
These CPUs allow you to operate the interface module as a component of a redundant system.
Requirements for the IM 155-5 PN HF interface module:
 With STEP 7 V5.5 SP3 and higher, the IM 155-5 PN HF is configured as a system redundancy device.
 The connection setting (transmission medium/duplex) must be set to "Full duplex".
Examples of system redundancy can be found in the manual Fault-tolerant systems S7400H (http://support.automation.siemens.com/WW/view/en/60458386).

Combination of system redundancy and Shared Device
The IM 155-5 PN HF interface module can be connected to up to four IO controllers but only to one H-CPU pair. As a result, a combination of system redundancy and Shared Device operation is not possible when redundancy operation is used exclusively.
However, you can operate some of the I/O modules of the interface module in system redundancy on the H-CPU pair and the other I/O modules with up to two additional IO controllers in Shared Device operation.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

20

Equipment Manual, 03/2020, A5E32840985-AC

Wiring

3

3.1

Pin assignment

24 V DC supply voltage (X80)

Table 3- 1 Terminal assignment 24 V DC supply voltage

View Connector

Signal name 1)

Designation

1 1L+ 2 1M 3 2M
4 2L+

+ 24 V DC of the supply voltage
Ground of the supply voltage
Ground of the supply voltage for loopthrough 2)
+ 24 V DC of the supply voltage for loopthrough 2)

1) 1L+ and 2L+ as well as 1M and 2M are bridged internally 2) Maximum 10 A permitted

PROFINET IO with RJ45

Table 3- 2 PROFINET IO pin assignment with RJ45

Bottom view IM

Signal name 1 TD 2 TD_N 3 RD 4 GND 5 GND 6 RD_N 7 GND 8 GND

Designation Transmit data + Transmit data Receive data + Ground Ground Receive data Ground Ground

Additional information
You can find additional information on connecting the interface module and on accessories (RJ45 bus connector) in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

21

Wiring 3.2 Block diagram

3.2

Block diagram

Block diagram

   
X80 24 V DC
PN X1 P1

Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage Infeed of supply voltage PROFINET interface X1 port 1

PN X1 P2 PROFINET interface X1 port 2

L+ M RN ER MT X1 P1, X1 P2

24 V DC supply voltage Ground RUN LED (green) ERROR LED (red) MAINT LED (yellow) Link TX/RX LED (green/yellow)

Figure 3-1 Block diagram of the IM 155-5 PN HF interface module

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

22

Equipment Manual, 03/2020, A5E32840985-AC

Parameter

4

4.1

Parameters

Table 4- 1 Parameters for IM 155-5 PN HF interface module

Parameters
Connection to supply voltage L+
Configuration control

Value range
Connection/No connection
Disable/enable

Default setting Connection
Disable

Efficiency range ET 200MP
ET 200MP

4.2

Description of parameters

4.2.1

Connection to supply voltage L+

Parameter "Connection to supply voltage L+"
This parameter is used
 For diagnostics of the ET 200MP:
If the actual configuration is different from the preset configuration of the interface module supply voltage set with this parameter, the ET 200MP generates a diagnostic alarm.
 To check the power budget for the configuration with STEP 7 V13:
Depending on how the parameter is set, either the infeed power for the interface module into the backplane bus or the power consumption from the backplane bus is entered into the calculation of the power budget.
The default setting "Connection to supply voltage L+ " means that the front of the interface module is supplied with 24 VDC and feeds power into the backplane bus.
Note
We recommend that you always supply the front of the interface module with 24 VDC because if you then insert a power supply module (PS) upstream of the interface module, both the power of the power supply module (PS) and the power of the integrated power supply of the interface module are available for the I/O modules (power addition of PS infeed power + IM infeed power in power segment 1).
In this case, you do not have to change the default setting of the parameter in STEP 7.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

23

Parameter 4.2 Description of parameters

The setting "No connection to supply voltage L+" means that the interface module is not supplied with 24 VDC on the front. This can only be the case when a power supply module (PS) is inserted upstream from the interface module and supplies the interface module and the downstream modules. In the case of an interface module without power supply, its power consumption from the backplane bus must be considered as consumer in the power budget and the power segments must be formed accordingly.

Reference

See the section on the power budget and the forming of power segments in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Requirement

In order to generate diagnostics, the IM 155-5 PN HF interface module parameters must have been assigned once.

See also

Diagnostic alarms (Page 42)

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

24

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)

4.2.2

Configuration control (option handling)

"Configuration control" parameter
You can use this parameter to enable the configuration control function in the ET 200MP Distributed I/O System.
Note If you configure the enable, the ET 200MP distributed I/O system requires a control data record 196 from the user program in order for the ET 200MP distributed I/O system to operate the I/O modules.

Reference

You can find more information on the control data record in chapter Configuration control (option handling) (Page 25) and in the STEP 7 online help.

4.3

Configuration control (option handling)

4.3.1

Configuration control and control data record

Operating principle
You can use the configuration control to operate different real configurations (options) with a single configuration of the ET 200MP distributed I/O system. This is made possible by a configurable assignment of configured station modules to actually existing ones.
We distinguish between the following procedures:
 Configuring configuration control without empty slots (option handling)
 Expanding configuration (step-by-step commissioning)

Requirements

Enable the "Configuration control" parameter during configuration for this function. Control takes place with control data record 196 to specify the required configuration.
Configuration control is not ready for operation without control data record:
 All I/O modules of the ET 200MP distributed I/O system fail (substitute value behavior, if configured).
 The interface module continues to exchange data.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

25

Parameter 4.3 Configuration control (option handling)

Rules: Arrangement of the modules
The following table shows the slot number assignment:

Table 4- 2 Slot 0 1
2 - 31

Assignment of slot numbers

Modules

Note

Power supply module (optional)

Before the interface module

Interface module

Interface module (slot 1) is not an element of the configuration control, but rather controls this

I/O modules /

After the interface module

max. 2 power supply modules, depending

on the configuration variant

Control data record
A control data record 196 is defined for the configuration control that receives a slot assignment.

Table 4- 3 Control data record

Byte 0 1 2 3 4
5
: 4 + (max. slot - 1)

Element
Block length Block ID Version Version Assignment of configured slot 0 Assignment of configured slot 2 : Assignment of configured maximum slot

Code 4 + number of slots 196 3 0 Real slot 0
Real slot 2
: Real maximum slot

Explanation Header
Control element Describes in each element which real slot in the device is assigned to the configured slot.

Control element
Each element must include the following information about the slot:  Assignment of configured slot  real slot

Table 4- 4 Code of control element

Byte
Assignment of configured slot (e.g. in byte 5)

Bit 0 to 7

Meaning 01111111: Module not available 00000000 up to maximum slot: Real slot

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

26

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)
Special features
Special features you have to observe:
 Configuration control is controlled by the interface module (slot 1/submodule 1). To address the available data records:
­ In STEP 7 V5.5: use the diagnostic address of the interface module.
You can find it in the properties header of the interface module in the hardware configuration.
­ In STEP 7 (TIA Portal): use the HW ID of the interface module.
You can find it in the PLC tags > Default tag table > System constants. The default name is "IM155-5PN[Head]". Use the associated "value" for addressing.
You can find general information on writing a data record, for example, in the STEP 7 online help.
 The control data record is saved retentively in the interface module, so that it is not necessary to write the control data record 196 again at a restart if the configuration is unchanged.
 Slot entries outside the configured preset configuration are ignored.
 The control data record can be shortened. It must contain the entries up to the last slot of the current preset configuration.
 Each real slot may only exist once in the data record.
 A real slot may only be assigned to one configured slot.
 Power supply (PS) modules can also be subject to configuration control. Make sure to observe the information on maximum configuration (Page 11) and the section on the power budget in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792). Particularly for a power supply (PS) module on slot 0, we recommend that you avoid reconfiguration.
Note Modified configuration
When you write a control data record with modified configuration, there is a station failure followed by a restart of the station with the modified configuration.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

27

Parameter 4.3 Configuration control (option handling)

Combination of configuration control and Shared Device
The configuration control function in a Shared Device is therefore only for the modules of the IO controller that has subscribed to the interface module.
Modules that are assigned to another IO controller or not assigned at all cannot be specified as real slots (Shared Device on module level). A one-to-one assignment is implicitly assumed for the modules. When using the active backplane bus, a configured empty slot behaves in the same way as a module that is not assigned to an IO controller.
If a module intended for configuration control is subscribed by additional controllers (Shared Device on submodule level), only a one-to-one assignment is permitted for this module. Such a module cannot be deselected by the control data record (0x7F code for this slot in the control data record). This means the combination of "Configuration control" and "Shared Device on submodule level" is possible to a limited extent.

Error messages
The following error messages are returned if an error occurs during writing of the control data record:

Table 4- 5 Error messages

Error code 80B1H 80B5H 80B6H
80B8H

Meaning Invalid length Configuration control not configured Data record does not originate from the IO controller which subscribed to the interface module Parameter error

A parameter error may be caused by:

 Incorrect block ID in the header (not equal to 196)

 Invalid version identification in the header

 A reserve bit was set

 A configured slot was assigned to an invalid real slot (see section Combination of configuration control and Shared Device)

 Several configured slots refer to the same real slot

 With Shared Device on submodule level: Violation of defined restrictions (see section Combination of configuration control and Shared Device)

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

28

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)

4.3.2

Feedback data record

Feedback data record
The feedback data record provides information on the accuracy of the module assignment and gives you the chance to detect assignment errors in the control data record. The feedback data record is mapped by a separate data record 197.
The feedback data record exists only when configuration control is configured and always refers to the maximum quantity framework without interface module, i.e., 31 slots.
The following applies here:
 The power supply (PS) module is inserted in "Slot 0" before the interface module
 Starting from "Slot 2", a maximum of 30 modules follow after the interface module.
Partial reading of the feedback data record is possible.

Table 4- 6 Feedback data record

Byte 0 1 2 3 4 5 6 7 : 64 65

Element Block length Block ID Version
Slot 0 status Reserved Slot 2 status Reserved : Slot n status Reserved

Code 66 197 2 0 0/1 0 0/1 0 : Maximum slot 0

Meaning Header
Bit 0 = 1: · Configured module is inserted · Slot is marked as not available in the control
data record Bit 0 = 0: · Module pulled · Wrong module inserted* Bits 1 to 15: Reserved

* Not possible if the slot is marked as not available.

Note
The data in the feedback data record are always mapped for all modules. In a Shared Device configuration it is therefore irrelevant which controller the respective modules are assigned to.
As long as no control data record was sent, a one-to-one module assignment is assumed for the compilation of data record 197 (preset configuration  actual configuration).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

29

Parameter 4.3 Configuration control (option handling)

Error messages
The following error messages are returned if an error occurs during reading of the feedback data record:

Table 4- 7 Error messages
Error code 80B1H 80B5H 80B8H

Meaning Invalid length Configuration control not configured Parameter error

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

30

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)

4.3.3

Configure configuration control without empty slots

Operating principle
The modules actually not required do not exist. The configuration is pushed together to the left in the direction of IM 155-5 PN HF.

Figure 4-1 Configure configuration control without empty slots

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

31

Parameter 4.3 Configuration control (option handling)

Data record of the example
The following table shows the structure of the control data record for the above example.

Table 4- 8 Data record for example "Configure configuration control without empty slots"

Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Element Block length Block ID Version Version Slot 0 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot 7 Slot 8 Slot 9 Slot 10 Slot 11 Slot 12 Slot 13 Slot 14

Code 18 196 3 0 00000000B 00000010B 00000011B 00000100B 00000101B 01111111B 01111111B 00000110B 00000111B 01111111B 01111111B 00001000B 00001001B 00001010B

Explanation Header
The configured slot 0 is the real slot 0. The configured slot 2 is the real slot 2. The configured slot 3 is the real slot 3. The configured slot 4 is the real slot 4. The configured slot 5 is the real slot 5. The configured slot 6 does not exist. The configured slot 7 does not exist. The configured slot 8 is the real slot 6. The configured slot 9 is the real slot 7. The configured slot 10 does not exist. The configured slot 11 does not exist. The configured slot 12 is the real slot 8. The configured slot 13 is the real slot 9. The configured slot 14 is the real slot 10.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

32

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)

4.3.4

Extending the configuration

Operating principle
You can add modules at the end of the configuration with this procedure. The configured configuration can also be extended from the center based on freely selectable slot assignment.

Figure 4-2 Extending the configuration

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

33

Parameter 4.3 Configuration control (option handling)

Data record of the example
The following table shows the structure of the control data record for the above example.

Table 4- 9 Data record for example "Extending the configuration"

Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Element Block length Block ID Version Version Slot 0 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot 7 Slot 8 Slot 9 Slot 10 Slot 11 Slot 12 Slot 13

Code 17 196 3 0 00000000B 00000010B 00000011B 00000100B 00000101B 00001011B 00001100B 00001101B 00001001B 00001010B 00000110B 00000111B 00001000B

Explanation Header
The configured slot 0 is the real slot 0. The configured slot 2 is the real slot 2. The configured slot 3 is the real slot 3. The configured slot 4 is the real slot 4. The configured slot 5 is the real slot 5. The configured slot 6 is the real slot 11. The configured slot 7 is the real slot 12. The configured slot 8 is the real slot 13. The configured slot 9 is the real slot 9. The configured slot 10 is the real slot 10. The configured slot 11 is the real slot 6. The configured slot 12 is the real slot 7. The configured slot 13 is the real slot 8.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

34

Equipment Manual, 03/2020, A5E32840985-AC

Parameter 4.3 Configuration control (option handling)

4.3.5

Combining configurations

Operating principle
You can combine the different procedures with configuration control.

Figure 4-3 Combining configurations

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

35

Parameter 4.3 Configuration control (option handling)

Data record of the example
The following table shows the structure of the control data record for the above example.

Table 4- 10 Data record for example "Combining configurations"

Byte Element

0

Block length

1

Block ID

2

Version

3 Version

4

Slot 0

5 Slot 2

6

Slot 3

7

Slot 4

8

Slot 5

9 Slot 6

10 Slot 7

11 Slot 8

12 Slot 9

13 Slot 10

14 Slot 11

15 Slot 12

16 Slot 13

Code configuration 1 17 196 3 0 00000000B 00000010B 00000011B 00000100B 00000101B 01111111B
01111111B
00000110B
00000111B
00001000B
01111111B
01111111B
00001001B

Code configuration 2
00000000B 00000010B 00000011B 00000100B 00000101B 00000110B 00000111B 00001000B 00001001B 00001010B 00001100B 00001101B 00001011B

Explanation
Header
The configured slot 0 is the real slot 0. The configured slot 2 is the real slot 2. The configured slot 3 is the real slot 3. The configured slot 4 is the real slot 4. The configured slot 5 is the real slot 5. The configured slot 6 does not exist (configuration 1). The configured slot 6 is the real slot 6 (configuration 2). The configured slot 7 does not exist (configuration 1). The configured slot 7 is the real slot 7 (configuration 2). The configured slot 8 is the real slot 6 (configuration 1). The configured slot 8 is the real slot 8 (configuration 2). The configured slot 9 is the real slot 7 (configuration 1). The configured slot 9 is the real slot 9 (configuration 2). The configured slot 10 is the real slot 8 (configuration 1). The configured slot 10 is the real slot 10 (configuration 2). The configured slot 11 does not exist (configuration 1). The configured slot 11 is the real slot 12 (configuration 2). The configured slot 12 does not exist (configuration 1). The configured slot 12 is the real slot 13 (configuration 2). The configured slot 13 is the real slot 9 (configuration 1). The configured slot 13 is the real slot 11 (configuration 2).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

36

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms

5

5.1

Status and error displays

Introduction

Diagnostics by means of LED display is an initial tool for error localization. To narrow down the error, you usually evaluate the display of the CPU, the display of the module status in STEP 7 or the diagnostics buffer of the CPU. The buffer contains plain text information on the error that has occurred. For example, you will find the number of the appropriate error OB there.

LED display

The figure below shows the LED display on the IM 155-5 PN HF interface module.

 RUN (green)  ERROR (red)  MAINT (yellow)  P1 LINK/TX/RX (green/yellow)  P2 LINK/TX/RX (green/yellow)
Figure 5-1 LED display on the interface module

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

37

Interrupts and diagnostic, error, and system alarms 5.1 Status and error displays

Meaning of the LEDs RUN/ ERROR/ MAINT

Table 5- 1 Meaning of the LEDs RUN/ ERROR/ MAINT

RUN Off On Flashes
On Not relevant
Not relevant Flashes

LEDs ERROR
Off On Off
Not relevant Flashes
Not relevant Flashes

Meaning

Remedy

MAINT Off On Off
Not relevant

Supply voltage not present or too low at interface module
Test of LEDs during startup: The three LEDs light up simultaneously for approximately 0.25 s. Interface module is deactivated.
Interface module is not configured.
ET 200MP is starting up. ET 200MP is being reset to factory settings. ET 200MP is currently exchanging data with the IO controller.

Check the supply voltage or turn it on at the interface module. ---
Activate the interface module with the configuration software or the user program. Configure the interface module with the configuration software. ---

Not relevant
On Flashes

Group error and group error channels
The set configuration does not correspond to the actual configuration of the ET 200MP.
Invalid configuration states
Parameter assignment error in the I/O module
Maintenance
"Node flash test" is being performed. (The LEDs P1 and P2 of the PROFINET interface are also flashing.) Hardware or firmware defective. (The LEDs P1 and P2 of the PROFINET interface are not flashing.)

Evaluate the diagnostics and correct the error. Check the configuration of the ET 200MP to see whether a module is missing or defective, or whether a non-configured module is inserted. See section Invalid configuration states of the ET 200MP on PROFINET IO (Page 50) Evaluate the display of the module status in STEP 7 and correct the error in the corresponding I/O module. See section Maintenance events (Page 44)
---
Run a firmware update. If the error persists, contact Service & Support. Replace the interface module.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

38

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.1 Status and error displays

Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

Table 5- 2 Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

LEDs P1 LINK/TX/RX, P2 LINK/TX/RX
Off
On
Flickers Flashes

Meaning

Remedy

There is no Ethernet connection between the

Check whether the bus cable to the switch/IO

PROFINET interface of your PROFINET device controller is interrupted.

and a communication partner (e.g. IO controller).

There is an Ethernet connection between the

---

PROFINET interface of your PROFINET device

and a communication partner (e.g., IO controller).

There is active data traffic (sending/receiving) via --the Ethernet connection.

"Node flash test" is being performed. (The LEDs --RUN/ ERROR/ MAINT are also flashing.)

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

39

Interrupts and diagnostic, error, and system alarms 5.2 Interrupts

5.2

Interrupts

Introduction

The I/O device generates interrupts as a reaction to specific error events. Interrupts are evaluated based on the I/O controller used.

Evaluating interrupts with I/O controllers
The ET 200MP distributed I/O system supports the following interrupts:
 Diagnostic interrupts
 Hardware interrupts
In the event of an interrupt, interrupt OBs are automatically called in the CPU of the IO controller.
Information on the cause and class of the error is already available, based on the OB number and start information.
Detailed information on the error event can be obtained in the error OB using the instruction "RALRM" (read additional interrupt information).

System diagnostics
In STEP 7 (TIA Portal) as of V12, innovative system diagnostics is available for devices of the S7-1500 automation system and ET 200MP. Independently of the cyclical user program, alarms are made available on the display of the S7-1500 CPU, to the S7-1500 CPU web server, to the HMI device and in STEP 7.
For additional information on the system diagnostics, refer to the System diagnostics function manual (http://support.automation.siemens.com/WW/view/en/59192926).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

40

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.2 Interrupts

5.2.1

Triggering of a diagnostic interrupt

Triggering of a diagnostic interrupt
For an incoming or outgoing event (e.g., wire break on a channel of an I/O module), the module triggers a diagnostic interrupt if this is configured accordingly in STEP 7 (TIA Portal).
The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.

5.2.2

Triggering of a hardware interrupt

Triggering of a hardware interrupt
When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the hardware interrupt OB. The event that triggered the interrupt is entered in the start information of the hardware interrupt OB.
Note Diagnostics "Hardware interrupt lost" (from I/O module) Avoid creating hardware interrupts cyclically. If the hardware interrupt load is too high, hardware interrupts can get lost depending on the number of I/O modules and the communication load.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

41

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3

Alarms

5.3.1

Diagnostic alarms

Actions after a diagnostic alarm
There can be more than one diagnostic alarm at the same time. Each diagnostic alarm initiates the following actions:
 The ERROR LED of the interface module flashes.
 Diagnostics are reported as diagnostic interrupts to the CPU of the IO controller and can be read via data records.
 Incoming diagnostic alarms are saved to the diagnostic buffer of the IO controller.
 The diagnostic interrupt OB is called. If the diagnostic interrupt OB is not available, the IO controller goes into STOP mode.
You can find additional information in the STEP 7 online help.

Reading out the diagnostics

Table 5- 3 Reading out the diagnostics with STEP 7

Automation system with IO controller
SIMATIC S7

Application

See...

Diagnostics as plain text in STEP 7 using online view and diagnostic view
Instruction "RDREC" Read data records from the IO device
Instruction "RALRM" Receive interrupts from the IO device

Online help of STEP 7 and
· As of STEP 7 V12 PROFINET with STEP 7 V12 function manual (http://support.automation.si emens.com/WW/view/en/49 948856)
· As of STEP 7 V5.5 PROFINET System Description (http://support.automation.si emens.com/WW/view/en/19 292127) manual.

Additional information on the data records for PROFINET IO
You can find the structure of the diagnostic data records and programming examples in the programming manual From PROFIBUS DP to PROFINET IO (http://support.automation.siemens.com/WW/view/en/19289930) and in the application example on the Internet (http://support.automation.siemens.com/WW/view/en/24000238).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

42

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Causes of error and corrective measures
The error causes and corrective measures of the diagnostic alarms are described in the manuals for the I/O modules (http://support.automation.siemens.com/WW/view/en/67296522/133300) in the Interrupts/Diagnostic alarms section.

See also

Channel diagnostics (Page 45)

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

43

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.2

Maintenance events

Triggering of a maintenance event
The PROFINET interface of the interface module supports the diagnostic concept and maintenance concept in PROFINET according to the IEC 61158-6-10 standard. The goal is to detect and remove potential problems as soon as possible.
For the interface module, maintenance events signal to the user when a network component must be checked or replaced.
The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the maintenance event is entered in the start information of the diagnostic interrupt OB.
The interface module signals a maintenance event to the higher-level diagnostic system in the case of the following events:

Table 5- 4 Triggering of a maintenance event

Maintenance alarm Maintenance demanded MAINT LED is lit

Event Synchronization loss
Maintenance event of an I/O module

Meaning · No synchronization frame received
No synchronization frame was received by the sync master within the timeout period after parameter assignment or during operation. · Successive synchronization frames are located outside permitted limits (jitter)
The maintenance event of a power supply module is passed through.

System alarms in STEP 7

The maintenance information is generated in STEP 7 with the following system alarms:

 Maintenance demanded - indicated for each port by a yellow wrench icon device view or in the hardware configuration.

in the

You can find additional information in the STEP 7 online help.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

44

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.3

Channel diagnostics

Function

Channel diagnostics provides information about channel faults in modules. Channel faults are mapped as channel diagnostics in IO diagnostic data records. The "RDREC" instruction is used to read the data record.

Structure of the diagnostic data records
 As of firmware version V4.2: The IM 155-5 PN HF interface module maps channel faults by means of extended channel diagnostics.
The data records supported by the ET 200MP are based on the standard PROFINET IO Application Layer Service Definition V2.3.
 Firmware version lower than V4.2: The IM 155-5 PN HF interface module maps channel faults by means of manufacturer-specific diagnostic data records.
The data records are based on the PROFINET IO standard - Application Layer Service Definition V2.2.
You can purchase the standards from the PROFIBUS User Organization on the Internet (http://www.profibus.com).

Coding of the extended channel diagnostics (as of firmware version V4.2)
With the IM 155-5 PN HF interface module, the following extended channel diagnostics are reported by the interface module in slot 1:

Table 5- 5 Manufacturer-specific diagnostics in the USI

ChannelErrorType
0x0601 0x0602 0x0602 0x0602 0x0602 0x0602 0x0610
0x0610

ExtendedChannel ErrorType 0x0682 0x0692 0x069A 0x069B 0x0696 0x0697 0x06B1
0x06B2

Associated value Diagnostics (AddValue)

Slot

Communication with slot <No.> has failed

Slot

Permitted number of I/O modules exceeded

Slot

Interface module in incorrect slot

Slot

Permitted number of power supply modules exceeded

0

No U connector detected on an IM port

0

More than one bus master module (IM/CPU) detected

Slot

Power budget error (overload has been detected in at least one

power segment)

0

Error IM power supply: Power supply not active or power sup-

ply active

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

45

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Structure of the manufacturer-specific diagnostic data records (firmware version lower than V4.2)
The structure of the diagnostic data records is differentiated by the BlockVersion. The following BlockVersion applies to the IM 155-5 PN HF interface modules:

Table 5- 6 Structure of the manufacturer-specific diagnostic data records

IM 155-5 PN HF interface module 6ES7155-5AA00-0AC0

BlockVersion W#16#0101

Manufacturer-specific diagnostics in the User Structure Identifier (USI)
The following manufacturer-specific diagnostics are signaled in the USI with the IM 155-5 PN HF interface module:

Table 5- 7 Manufacturer-specific diagnostics in the USI

USI no. W#16#... 0001 0002 0003 0004 0005 0006 0007

Diagnostics Power budget error (overload has been detected in at least one power segment) Permitted number of power supply modules exceeded Permitted number of I/O modules exceeded No U connector detected on an IM port More than one bus master module (IM/CPU) detected Communication with slot <No.> has failed Error IM power supply: Power supply not active or power supply active

Additional information
You can find additional information on maximum configuration, power budget and power segments in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Structure USI = W#16#0001

Table 5- 8 Structure of USI = W#16#0001

Data block name USI

Contents W#16#0001

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

The first power segment with overload starts at slot: <No.>

Slot

B#16#00 to

B#16#1F

Note
Manufacturer-specific diagnostics in case of overload in an ET 200MP power segment

Bytes 2

1 1 1

1

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

46

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Structure USI = W#16#0002

Table 5- 9 Structure of the USI = W#16#0002

Data block name USI

Contents W#16#0002

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

The first surplus module is located in slot: <No.>

Slot

B#16#00 to

B#16#1F

Note
Manufacturer-specific diagnostics if the permitted number of power supply modules is exceeded

Bytes 2

1 1 1

1

USI structure = W#16#0003

Table 5- 10 USI structure = W#16#0003

Data block name USI

Contents W#16#0003

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

The first surplus module is located in slot: <No.>

Slot

B#16#20 to B#16#FF

Note
Manufacturer-specific diagnostics if the permitted number of I/O modules is exceeded

Bytes 2

1 1 1

1

USI structure = W#16#0004

Table 5- 11 USI structure = W#16#0004

Data block name USI

Contents W#16#0004

Followed by 4 reserved bytes Reserved Reserved Reserved Reserved

Note
Manufacturer-specific diagnostics if no U connector is detected on an IM port

Bytes 2

1 1 1 1

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

47

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

USI structure = W#16#0005

Table 5- 12 USI structure = W#16#0005

Data block name USI

Contents W#16#0005

Followed by 4 reserved bytes Reserved Reserved Reserved Reserved

USI structure = W#16#0006

Table 5- 13 USI structure = W#16#0006

Data block name USI

Contents W#16#0006

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Communication has failed with slot: <No.>

Slot

B#16#00 to B#16#1F

Note
Manufacturer-specific diagnostics if there is more than one bus master module (IM/CPU)

Bytes 2

1 1 1 1

Note
Manufacturer-specific diagnostics if the communication with a slot has failed

Bytes 2

1 1 1

1

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

48

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

USI structure = W#16#0007

Table 5- 14 USI structure = W#16#0007

Data block name

Contents

Note

USI

W#16#0007

Manufacturer-specific diagnostics if

the configuration of the interface

module power supply is different from

the parameterized configuration

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Error IM power supply: Power supply <bit 0 in the least significant byte can be 0 or 1>

Power supply of the interface module

B#16#00

Power supply of the interface module is not active.

B#16#01

Power supply of the interface module is active.

Bytes 2
1 1 1 1

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

49

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.4

Invalid configuration states of the ET 200MP on PROFINET IO

Invalid configuration states
The following invalid configuration states of the ET 200MP lead to a short failure of the ET 200MP IO device or prevent the exchange of user data with the I/O modules.
 More than two power supply modules (PS) inserted to the right of the interface module
 Number of modules exceeds maximum configuration
 Faulty backplane bus (e.g., additional IM present).
 I/O modules of a power segment consume more power than can be provided (overload). In the case of an overload, the interface module provides diagnostic information, cyclically checks the connection to the backplane bus and re-establishes it as soon as possible.

Additional information
You can find additional information on maximum configuration, power budget and power segments in the system manual S7-1500, ET 200MP Automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792).

See also:

Status and error displays (Page 37)

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

50

Equipment Manual, 03/2020, A5E32840985-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.5

STOP of the IO controller and recovery of the IO device

STOP of the SIMATIC IO controller
Diagnostics received from the IO device while the IO controller is in STOP state do not initiate a call of the corresponding OBs when the IO controller starts up. You have to read the data record E00CH using the "RDREC" instruction in the startup OB. This record contains all diagnostics for the slots assigned to an IO controller in an IO device.

Recovery of the SIMATIC IO device
If you want to read the diagnostics that occurred in the STOP state of the IO controller, you have to read the E00CH data record using the "RDREC" instruction. This record contains all diagnostics for the slots assigned to an IO controller in an IO device.

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

51

Technical specifications

6

Technical specifications of the IM 155-5 PN HF
The following table shows the technical specifications as of 03/2020. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/de/de/pv/6ES7155-5AA00-0AC0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Vendor identification (VendorID) Device identifier (DeviceID) Product function · I&M data
· Module swapping during operation (hot swapping)
· Isochronous mode
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFINET as of GSD version/GSD revision
Configuration control via user data via dataset
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Short-circuit protection
Mains buffering · Mains/voltage failure stored energy time

6ES7155-5AA00-0AC0
IM 155-5 PN HF FS03 V4.4 Yes 002AH 0X0312
Yes; I&M0 to I&M3 Yes; In combination with active backplane bus
Yes
V16 with HSP 308
V5.5 SP3 / -
V2.3 / -
No Yes
24 V 20.4 V 28.8 V Yes Yes
5 ms

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

52

Equipment Manual, 03/2020, A5E32840985-AC

Technical specifications

Article number Input current
Current consumption (rated value) Current consumption, max. Inrush current, max. I²t Power Infeed power to the backplane bus Power available from the backplane bus Power loss Power loss, typ. Address area Address space per module · Address space per module, max.
Address space per station · Address space per station, max.
Hardware configuration Integrated power supply System power supply can be plugged in to left of IM Number of permissible power segments
Rack · Modules per rack, max.
Submodules · Number of submodules per station, max.
Interfaces Number of PROFINET interfaces
1. Interface Interface types
· Number of ports
· integrated switch
· RJ 45 (Ethernet) Protocols
· PROFINET IO Device
· Media redundancy Interface types RJ 45 (Ethernet)
· Transmission procedure
· 100 Mbps
· Autonegotiation

6ES7155-5AA00-0AC0 0.2 A 1.2 A 9 A 0.09 A²·s 14 W 2.3 W 4.5 W
256 byte; per input / output
512 byte; per input / output
Yes Yes 3 30; I/O modules
256
1
2 Yes Yes
Yes Yes
PROFINET with 100 Mbit/s full duplex (100BASE-TX) Yes Yes

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

53

Technical specifications

Article number · Autocrossing
Protocols PROFINET IO Device Services
­ Isochronous mode ­ Open IE communication ­ IRT ­ PROFIenergy ­ Prioritized startup ­ Shared device ­ Number of IO Controllers with shared
device, max. Redundancy mode
· MRP
· MRPD
· PROFINET system redundancy (S2) ­ on S7-1500R/H ­ on S7-400H
· Redundant PROFINET configuration (R1)
· H-Sync forwarding Open IE communication
· TCP/IP
· SNMP
· LLDP Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance shortest clock pulse max. cycle Interrupts/diagnostics/status information Status indicator Alarms Diagnostics function Diagnostics indication LED · RUN LED
· ERROR LED
· MAINT LED

6ES7155-5AA00-0AC0 Yes
Yes Yes Yes No Yes Yes 4
Yes Yes Yes Yes Yes; With GSDML file as of STEP 7 V5.5 SP3 No Yes
Yes Yes Yes
Yes
Yes 250 µs 4 ms
Yes Yes Yes
Yes; green LED Yes; red LED Yes; Yellow LED

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

54

Equipment Manual, 03/2020, A5E32840985-AC

Technical specifications

Article number · Connection display LINK TX/RX
Potential separation between backplane bus and electronics between PROFINET and all other circuits between supply and all other circuits
Isolation Isolation tested with
Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Altitude during operation relating to sea level
· Installation altitude above sea level, max.
Connection method ET-Connection
· via BU/BA Send Dimensions
Width Height Depth Weights Weight, approx.

6ES7155-5AA00-0AC0 Yes; 2x green-yellow LEDs
No Yes; 1 500 V AC No
707 V DC (type test)
0 °C 60 °C 0 °C 40 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual
No
35 mm 147 mm 129 mm
350 g

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

55

Dimension drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimension drawings of the IM 155-5 PN HF interface module

Figure A-1 Dimension drawing of the IM 155-5 PN HF interface module, front and side views

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

56

Equipment Manual, 03/2020, A5E32840985-AC

Dimension drawing Dimension drawing of the IM 155-5 PN HF interface module, side view with open front cover
Figure A-2 Dimension drawing of the IM 155-5 PN HF interface module, side view with open front cover

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

57

Response times

B

B.1

Response times of the ET 200MP

Introduction

The response time of the IM 155-5 PN HF is made up of:  The update time configured for the IM as IO device. plus  The backplane bus cycle time.
Note Validity of the formula The following formula does not apply to Shared Device mode.

Backplane bus cycle time
The backplane bus cycle time is the time the interface module requires to output new output data, read new input data and then copy them to the PROFINET send buffer.
The backplane bus cycle time in s is made up as follows:
 (Number of output data in bytes + number of output addresses) x 0.0668 + 1.6131 (rounded up)
plus
 (Number of input data in bytes + number of input addresses) x 0.0959 + 2.5901 (rounded up)
plus
 Operating system processing time (500 s).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

58

Equipment Manual, 03/2020, A5E32840985-AC

Response times B.1 Response times of the ET 200MP

Example configuration for the calculation of the backplane bus cycle time
The following are used in the example:

Table B- 1 Example configuration for the calculation of the backplane bus cycle time

I/O module
Analog output module AQ 4xU/I ST Analog output module AQ 4xU/I ST with value status Digital output module DQ 32x24VDC/0.5A ST with value status Digital input module DI 32x24VDC HF Analog input module AI 8xU/I/RTD/TC ST Sum

Output data in bytes
8 8
4
20

Input data in bytes
1
4
4 16 25

Number of output addresses
1 1

Number of input addresses
-
1

1

1

-

1

-

1

3

4

Example calculation of the backplane bus cycle time
Backplane bus cycle time in s:  (20 + 3) x 0.0668 + 1.6131 = 3.1495  4 s (rounded up) plus  (25 + 4) x 0.0959 + 2.5901 = 5.3712  6 s (rounded up) plus  Operating system processing time 500 s Result of backplane bus cycle time Backplane bus cycle time = 510 s

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

Equipment Manual, 03/2020, A5E32840985-AC

59

Response times B.1 Response times of the ET 200MP

Calculating the response time
It is necessary to differentiate between two cases when calculating the response time of the IM 155-5 PN HF:
 Case 1: The configured update time is greater than/equal to the backplane bus cycle time.
Then:
Response time in s = backplane bus cycle time + configured update time
 Case 2: The configured update time is less than the backplane bus cycle time.
Then:
Response time in s = backplane bus cycle time + (configured update time x (backplane bus cycle time / configured update time)).
If the division of backplane bus cycle time / configured update time does not return an integer without remainder, an additional configured update time must be added next to the integer in the bracket.

Example calculation for case 1: The configured update time is greater than/equal to the backplane bus cycle time.
 Configured update time is, for example, 750 s  Backplane bus cycle time = 510 s Result of case 1 Response time of the IM 155-5 PN HF = 750 s + 510 s = 1260 s

Example calculation for case 2: The configured update time is less than the backplane bus cycle time.
 Configured update time is, for example, 500 s  Backplane bus cycle time = 510 s Result of case 2 Response time of the IM 155-5 PN HF = 510 s + (500 s x (510 s / 500 s) + 500 s) = 510 s + (500 s x 1 + 500 s) = 510 s + 1000 s = 1510 s

Reference

Additional information about performance measurements is available on the Internet (http://support.automation.siemens.com/WW/view/en/34677186/136000&cspltfrm=0&cssw=0 &csbinh=5).

IM 155-5 PN HF Interface Module (6ES7155-5AA00-0AC0)

60

Equipment Manual, 03/2020, A5E32840985-AC

SIMATIC
ET 200MP Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_nt_at_io_n _gu_id_e_______1_ _Pr_od_u_ct_ov_e_rv_ie_w _________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_r ____________4_ _Ienr_treor_rr,u_apn_tsd_asny_sd_ted_miag_anl_aors_mti_cs,_____5_ _Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______6_ _Di_m_en_si_on_d_ra_w_in_g _______A__ _Re_s_po_n_se_ti_m_es_________B__

11/2017
A5E03612323-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03612323-AC  09/2017 Subject to change

Copyright © Siemens AG 2013 - 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792). Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals support you in commissioning the system.

Conventions

Please also observe notes marked as follows:
Note A note contains important information on the product, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

4

Manual, 11/2017, A5E03612323-AC

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 11

2.1

Properties ................................................................................................................................ 11

2.2 2.2.1 2.2.2

Functions ................................................................................................................................13 PROFINET IO .........................................................................................................................13 Configuration control (option handling)...................................................................................19

3 Wiring ................................................................................................................................................... 20

3.1

Terminal assignment...............................................................................................................20

3.2

Block diagram .........................................................................................................................22

4 Parameter............................................................................................................................................. 23

4.1

Parameters .............................................................................................................................23

4.2 4.2.1 4.2.2

Description of parameters.......................................................................................................24 Connection to supply voltage L+ ............................................................................................24 Configuration control...............................................................................................................25

5 Interrupts and diagnostic, error, and system alarms............................................................................... 26

5.1

Status and error displays ........................................................................................................26

5.2 5.2.1 5.2.2

Interrupts .................................................................................................................................29 Triggering of a diagnostic interrupt .........................................................................................29 Triggering of a hardware interrupt ..........................................................................................30

5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5

Alarms .....................................................................................................................................30 Diagnostic alarms ...................................................................................................................30 Maintenance events................................................................................................................32 Channel diagnostics................................................................................................................33 Invalid configuration states of the ET 200MP on PROFINET IO ............................................38 STOP of the IO controller and recovery of the IO device .......................................................38

6 Technical specifications ........................................................................................................................ 39

A Dimension drawing ............................................................................................................................... 43

B Response times .................................................................................................................................... 45

B.1

Response times of the ET 200MP ..........................................................................................45

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

6

Manual, 11/2017, A5E03612323-AC

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

7

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

8

Manual, 11/2017, A5E03612323-AC

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

9

Documentation guide

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

10

Manual, 11/2017, A5E03612323-AC

Product overview

2.1

Properties

Article number
6ES7155-5AA01-0AB0

View of the module

2

Properties

Figure 2-1 View of the IM 155-5 PN ST interface module
 Technical properties ­ Connects the ET 200MP distributed I/O system with PROFINET IO ­ 24V DC power supply (SELV/PELV) ­ PROFINET IO connection using RJ45 bus connector
 Supported functions (Page 13)

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

11

Product overview 2.1 Properties
Maximum configuration
 512 bytes I/O data per station
 The integrated power supply of the interface module feeds 14 W into the backplane bus. Up to 12 I/O modules can be supplied this way. The exact number of operable modules is determined by the power budget (see relevant section in the ET 200MP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual).
 A maximum of one power supply module (PS) upstream from the interface module and two downstream from the interface module is possible.
 If you use a power supply module (PS) upstream from the interface module, the maximum possible configuration is a total of 32 modules (up to 30 modules downstream from the interface module).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

12

Manual, 11/2017, A5E03612323-AC

2.2

Functions

Product overview 2.2 Functions

2.2.1

PROFINET IO

Introduction

The interface module supports the following PROFINET IO functions:  Integrated switch with 2 ports  Supported Ethernet services: ping, arp, SNMP, LLDP  Port diagnostics  Disabling ports  Isochronous real-time communication  Minimum update time 250 s  Prioritized startup  Device replacement without PG (LLDP)  Media redundancy (MRP)  Shared device with up to two IO controllers  Module-internal Shared Input/Shared Output (MSI/MSO)  Isochronous mode of process data  Identification data I&M 0 to 3  Firmware update via PROFINET IO  Reset to factory settings via PROFINET IO  Configuration control (option handling)  Module division into submodules
Note Docking system You cannot use the IM155-5 PN ST interface module as docking station. The use as a docking unit (function: IO devices changing during operation) in a docking system is supported.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

13

Product overview 2.2 Functions

Requirements

The following requirements apply to a configuration with the IM 155-5 PN ST interface module:

Table 2- 1 Requirements

PROFINET IO function
Real-time communication Isochronous real-time communication Prioritized startup Device replacement without PG Media redundancy Shared device MSI/MSO Isochronous mode Interface module; order number 6ES7155-5AA010AB0

Configuration software

with GSD file1)

STEP 7 as of V5.5 SP3

STEP 7 (TIA Portal) as of V12

X

X

X

X

X

X

X

X

X

X

X

X

X

X

-

-

X

X

STEP 7 (TIA Portal) as of V12
X X
X X
X X2) X2) X X (STEP 7 V14 or higher with HSP 223)

1) The usability of the PROFINET IO functions depends on the configuration software (Siemens and/or third party). Below, the usability of the PROFINET IO functions is described for STEP 7 only.
2) Firmware version V2.0 or higher

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

14

Manual, 11/2017, A5E03612323-AC

Product overview 2.2 Functions
Isochronous real-time communication
Synchronized communication protocol for cyclic exchange of IRT data between PROFINET devices. A reserved bandwidth is available in the send cycle for IRT data. The reserved bandwidth ensures that IRT data can be transferred at reserved synchronized intervals, without being influenced by other network loads (e.g., TCP/IP communication, or additional real-time communication). A topological configuration is required for IRT.
Note IO controller as sync master with IRT communication We recommend operating the IO controller as sync master when configuring IRT communication. Otherwise, IO devices with IRT and RT configuration could fail as a result of sync master failure.
You can find additional information on configuration of synchronized PROFINET devices in sync domains in the STEP 7 online help and  as of STEP 7 V12, in the PROFINET with STEP 7 V14
(https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.  as of STEP 7 V5.5 in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

15

Product overview 2.2 Functions
Prioritized startup
Prioritized startup denotes the PROFINET functionality for accelerating the startup of IO devices operated in a PROFINET IO system with RT communication. The function reduces the time that the correspondingly configured IO devices require to return to the cyclic user data exchange in the following cases:  After the supply voltage has returned  After a station has returned  After activation of IO devices
Note Dependency on the startup time The startup time depends on the number and type of modules. You can optimize the startup time by · inserting no more than 12 I/O modules · inserting no power supply module.
The prioritized startup function with the requirements listed in the note above is not available for IRT communication and media redundancy. You can find additional information in the STEP 7 online help and  as of STEP 7 V12, in the PROFINET with STEP 7 V14
(https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.  as of STEP 7 V5.5 in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual.
Cabling with fixed connection setting
If you set a fixed connection setting of the port in STEP 7, you should also deactivate "Autonegotiation/Autocrossover". You can find additional information in the STEP 7 online help and  as of STEP 7 V12, in the PROFINET with STEP 7 V14
(https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.  as of STEP 7 V5.5 in the PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127) manual.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

16

Manual, 11/2017, A5E03612323-AC

Product overview 2.2 Functions

Device replacement without PG
It is easy to replace IO devices that support this function:
 The device name does not have to be assigned with the PG.
The replaced IO device is assigned the device name by the IO controller. The IO controller uses the configured topology and the neighboring relationships determined by the IO devices for this purpose. All involved devices must support the LLDP protocol (Link Layer Discovery Protocol). The configured target topology must match the actual topology.
IO devices that have been used in another configuration must be reset to the factory settings before they can be used again (see S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual).
You can find additional information in the STEP 7 online help and
 as of STEP 7 V12, in the PROFINET with STEP 7 V14 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.
 as of STEP 7 V5.5 in the PROFINET System Description (http://support.automation.siemens.com/WW/view/en/19292127) manual.

Media redundancy
Function for safeguarding communication and system availability. A ring topology ensures that an alternative communication path is made available if a transmission link fails.
You can find additional information in the STEP 7 online help and
 as of STEP 7 V12, in the PROFINET with STEP 7 V14 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.
 as of STEP 7 V5.5 in the PROFINET System Description (http://support.automation.siemens.com/WW/view/en/19292127) manual.

Shared device

IO device that makes its data available to up to two IO controllers.
As of firmware version V2.0, the interface module supports shared device functionality at the submodule level. A prerequisite for using this function is that the I/O modules also support this.
If the engineering system performs no plausibility check of the shared device projects, note the following: If you reconfigure shared device configurations without the above mentioned plausibility check, you must recommission the ET 200MP. This means that you have to reload the projects of all involved IO controllers in the specific CPU after reconfiguration and, if necessary, switch the interface module POWER OFF/POWER ON.
You can find additional information in the STEP 7 online help and
 as of STEP 7 V5.5 in the PROFINET System Description (http://support.automation.siemens.com/WW/view/en/19292127) manual.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

17

Product overview 2.2 Functions

Module-internal Shared Input/Shared Output (MSI/MSO)
The Module-internal Shared Input function allows an input module to make its input data available to up to two additional IO controllers. Each controller has read access to the same channels.
The Module-internal Shared Output function allows an output module to make its output data available to up to two IO controllers. One IO controller has write access. A second IO controller can have read access to the same channels.
You can find more information on this topic in the STEP 7 online help and
 As of STEP 7 V14, in the PROFINET with STEP 7 V14 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Isochronous mode of process data
The process data, transmission cycles via PROFINET IO, and the user program are synchronized to achieve ultimate deterministic. The input data and output data of distributed I/O devices in the system are detected and output simultaneously. The isochronous PROFINET IO cycle forms the corresponding clock generator.
To ensure problem-free isochronous mode, we recommend that you do not use acyclical services and that you limit diagnostic interrupts to the most crucial ones.
You can find additional information in the STEP 7 online help and
 as of STEP 7 V12, in the PROFINET with STEP 7 V14 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Submodules

The IM 155-5 PN ST interface module supports the module division of I/O modules in up to 4 submodules. This allows parts of an I/O module to be separately configured and parameterized. It is possible to assign each of these submodules to different IO controllers. The functions:  Firmware update  Write I&M data  Calibration can only be executed if you have configured submodule 1 during configuration.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

18

Manual, 11/2017, A5E03612323-AC

Product overview 2.2 Functions

2.2.2

Configuration control (option handling)

Properties

Configuration control allows you to prepare your distributed I/O system for future extensions or changes. Configuration control means that you can configure the planned maximum configuration of your distributed I/O system in advance and vary it later in a flexible manner by means of the user program.

Reference

You can find more information  in the S7-1500, ET 200MP system manual
(http://support.automation.siemens.com/WW/view/en/59191792)  on the Internet (http://support.automation.siemens.com/WW/view/en/29430270)  in the STEP 7 online help.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

19

Wiring

3

3.1

Terminal assignment

24V DC power supply
The following table shows the signal names and the descriptions of the pin assignment for a 24 V DC supply voltage.

Table 3- 1 Pin assignment 24 V DC supply voltage

View

Signal name1 1L+ 2L+ 1M 2M

Designation 24 V DC 24 V DC (for looping through)2 Ground Ground (for looping through)2

1 1L+ and 2L+ as well as 1M and 2M are bridged internally. 2 Maximum 10 A permitted.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

20

Manual, 11/2017, A5E03612323-AC

Wiring 3.1 Terminal assignment
PROFINET interface X1 with 2-port switch (X1 P1 R and X1 P2 R)
The pin assignment of the ports depends on the setting of the port option "Activate autonegotiation".
 Port P1 X1 R: When autonegotiation is deactivated, the RJ45 socket is allocated as data terminal equipment MDI (normal pin assignment).
 Port P2 X1 R: When autonegotiation is deactivated, the RJ45 socket is allocated as a switch MDI-X (crossed pin assignment).
 The following applies to both ports: When autonegotiation is activated, autocrossing is in effect and the RJ45 socket is allocated either as data terminal equipment MDI or a switch MDI-X.
The figure below shows the location of the PROFINET interface X1 and the connection socket for the 24 V DC supply voltage.

 Port P1 X1 R (front)  Port P2 X1 R (rear)  Connection socket 24 V DC supply voltage
Figure 3-1 Location of the PROFINET ports and the 24 V DC connection socket (view from below)
Note You need a screwdriver (max. blade width 2.5 mm) to remove the PROFINET plug.
Note IM 155-5 PN ST interface module (6ES7155-5AA00-0AB0) For the IM 155-5 PN ST with order number 6ES7155-5AA00-0AB0, note that the ports of the PROFINET interface X1 are offset by 90°.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

21

Wiring 3.2 Block diagram
Additional information
You can find additional information on connecting the interface module and on accessories (RJ45 bus connector) in the ET 200MP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.

3.2

Block diagram

Block diagram
The following figure shows a block diagram of the IM 155-5 PN ST interface module.

   
X80 24 V DC
PN X1 P1
PN X1 P2

Electronics PROFINET 2-port switch Backplane bus interface Internal supply voltage Infeed of supply voltage PROFINET interface X1 Port 1 PROFINET interface X1 Port 2

L+ M RN ER MT X1 P1, X1 P2

Figure 3-2 Block diagram of the IM 155-5 PN ST interface module

24 V DC supply voltage Ground RUN/STOP LED (yellow/green) ERROR LED (red) MAINT LED (yellow) LED Link TX/RX

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

22

Manual, 11/2017, A5E03612323-AC

Parameter

4

4.1

Parameters

Table 4- 1 Parameters for IM 155-5 PN ST interface module

Parameters Connection to supply voltage L+
Configuration control

Value range Connection/No connection
Disable/enable

Default setting Connection
Disable

Efficiency range ET 200MP
ET 200MP

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

23

Parameter 4.2 Description of parameters

4.2

Description of parameters

4.2.1

Connection to supply voltage L+

Parameter "Connection to supply voltage L+"
This parameter is used
 for diagnostics of the ET 200MP:
If the actual configuration is different from the required configuration of the interface module supply voltage set with this parameter, the ET 200MP generates a diagnostic alarm.
 to check the power budget for the configuration with STEP 7 V12:
Depending on how the parameter is set, either the infeed power for the interface module into the backplane bus or the power consumption from the backplane bus is entered into the calculation of the power budget.
The default setting "Connection to supply voltage L+ " means that the front of the interface module is supplied with 24 V DC and feeds power into the backplane bus.
Note
We recommend that you always supply the front of the interface module with 24V DC because if you then insert a power supply module (PS) upstream of the interface module, both the power of the power supply module (PS) and the power of the integrated power supply of the interface module are available for the I/O modules (power addition of PS infeed power + IM infeed power in power segment 1).
In this case, you do not have to change the default of the parameter in STEP 7.
The setting "No connection to supply voltage L+ means that the interface module is not supplied with 24 V DC on the front. This can only be the case when a power supply module (PS) is inserted upstream from the interface module and the power supply modules (PS) supply the interface module and the downstream modules. In the case of an interface module without power supply, its power consumption from the backplane bus must be considered as consumer in the power budget and the power segments must be formed accordingly.

Reference

See the section on the power budget and the forming of power segments in the ET 200MP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/59191792) System Manual.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

24

Manual, 11/2017, A5E03612323-AC

Parameter 4.2 Description of parameters

Requirement

In order to generate a diagnostics, the IM 155-5 PN ST interface module must have been configured once.

See also

Diagnostic alarms (Page 30)

4.2.2

Configuration control

"Configuration control" parameter
You can use this parameter to enable the configuration control function in the ET 200MP distributed I/O system.
Note
If you configure the enable, the ET 200MP distributed I/O system requires a control data record 196 from the user program in order for the ET 200MP distributed I/O system to operate the I/O modules.

Reference

For more information on configuration control, refer to the S7-1500, ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792) and to the STEP 7 online help.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

25

Interrupts and diagnostic, error, and system alarms

5

5.1

Status and error displays

Introduction

Diagnostics by means of LED display is an initial tool for error localization. To further limit the error, you usually evaluate the display of the CPU, the display of the module status in STEP 7 or the diagnostics buffer of the CPU. The buffer contains plain text information on the error that has occurred. For example, you will find the number of the appropriate error OB there.

LED display

The figure below shows the LED display on the IM 155-5 PN ST interface module.

 RUN (green)  ERROR (red)  MAINT (yellow)  P1 LINK/TX/RX (green/yellow)  P2 LINK/TX/RX (green/yellow)
Figure 5-1 LED display on the interface module

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

26

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.1 Status and error displays

Meaning of the LEDs RUN/ ERROR/ MAINT

Table 5- 1 Meaning of the LEDs RUN/ ERROR/ MAINT

RUN Off On Flashes
On Not relevant
Not relevant Flashes

LEDs ERROR
Off On Off
Not relevant Flashes
Not relevant Flashes

MAINT Off On
Off

Meaning
Supply voltage not present at interface module or too small Test of LEDs during startup: The three LEDs light up simultaneously for approximately 0.25 s. Interface module is deactivated.
Interface module is not configured.

Not relevant

ET 200MP starts up.
ET 200MP is reset to factory settings.
ET 200MP is currently exchanging data with the IO controller.

Remedy
Check the supply voltage or turn it on at the interface module. ---
Activate the interface module with the configuration software or the user program. Configure the interface module with the configuration software. ---

Not relevant
On Flashes

Group error and group error channels
The set configuration does not correspond to the actual configuration of the ET 200MP.
Invalid configuration states
Parameter assignment error in the I/O module
Maintenance
"Node flash test" is performed. (The LEDs P1 and P2 of the PROFINET interface are also flashing.) Hardware or firmware defective. (The LEDs P1 and P2 of the PROFINET interface are not flashing.)

Evaluate the diagnostics data and correct the error. Check the design of the ET 200MP to see whether a module is missing or defective, or whether a non-configured module is inserted. See chapter Invalid configuration states of the ET 200MP on PROFINET IO (Page 38) Evaluate the display of the module status in STEP 7 and correct the error in the corresponding I/O module. See chapter Maintenance events (Page 32)
---
Replace the interface module.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

27

Interrupts and diagnostic, error, and system alarms 5.1 Status and error displays

Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

Table 5- 2 Meaning of the LEDs P1 LINK/TX/RX, P2 LINK/TX/RX

LEDs P1 LINK/TX/RX, P2 LINK/TX/RX
Off
On
flickers Flashes

Meaning

Remedy

There is no Ethernet connection between the

Check whether the bus cable to the switch/IO

PROFINET interface of your PROFINET device controller is interrupted.

and a communication partner (e.g. IO controller).

There is an Ethernet connection between the

---

PROFINET interface of your PROFINET device

and a communication partner (e.g., IO controller).

There is active data traffic (sending/receiving) via --the Ethernet connection.

"Node flash test" is performed. (The LEDs

---

RUN/ERROR/MAINT are also flashing.)

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

28

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.2 Interrupts

5.2

Interrupts

Introduction

The I/O device generates interrupts as a reaction to specific error events. Interrupts are evaluated based on the I/O controller used.

Evaluating interrupts with I/O controllers
The ET 200MP distributed I/O system supports the following interrupts:
 Diagnostic interrupts
 Hardware interrupts
In the event of an interrupt, interrupt OBs are automatically called in the CPU of the IO controller.
Information on the cause and class of the error is already available, based on the OB number and start information.
Detailed information on the error event can be obtained in the error OB using the instruction "RALRM" (read additional interrupt information).

System diagnostics
In STEP 7 (TIA Portal) as of V12, innovative system diagnostics is available for devices of the S7-1500 automation system and ET 200MP. Independently of the cyclical user program, alarms are made available on the display of the S7-1500 CPU, to the S7-1500 CPU web server, to the HMI device and in STEP 7.
For additional information on the system diagnostics, refer to the System Diagnostics function manual. (https://support.industry.siemens.com/cs/ww/en/view/59192926).

5.2.1

Triggering of a diagnostic interrupt

Triggering of a diagnostic interrupt
For an incoming or outgoing event (e.g., wire break on a channel of an I/O module), the module triggers a diagnostic interrupt if this is configured accordingly in STEP 7 (TIA Portal).
The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

29

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.2.2

Triggering of a hardware interrupt

Triggering of a hardware interrupt
When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the hardware interrupt OB. The event that triggered the interrupt is entered in the start information of the hardware interrupt OB.
Note Diagnostics "Hardware interrupt lost" (from I/O module) Avoid creating hardware interrupts cyclically. If the hardware interrupt load is too high, hardware interrupts can get lost depending on the number of I/O modules and the communication load.

5.3

Alarms

5.3.1

Diagnostic alarms

Actions after a diagnostic alarm
There can be more than one diagnostic alarm at the same time. Actions initiated by diagnostic alarms:
 The ERROR LED of the interface module flashes.
 Diagnostic data is reported as diagnostic interrupts to the CPU of the IO controller and can be read via data records.
 Incoming diagnostic alarms are saved to the diagnostic buffer of the IO controller.
 The diagnostic interrupt OB is called. If the diagnostic interrupt OB is not available, the IO controller goes into STOP mode.
You can find additional information in the STEP 7 online help.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

30

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Reading out the diagnostic data

Table 5- 3 Reading out the diagnostic data with STEP 7

Automation system with IO controller
SIMATIC S7

Application
Diagnostic data as plain text in STEP 7 using online view and diagnostic view
Instruction "RDREC" Read data records from the IO device
Instruction "RALRM" Receive interrupts from the IO device

See...
Online help of STEP 7 and
· as of STEP 7 V12 PROFINET with STEP 7 V12 function manual (http://support.automation.siemens.c om/WW/view/en/49948856)
· as of STEP 7 V5.5 PROFINET System Description (https://support.industry.siemens.co m/cs/ww/en/view/19292127) manual.

Additional information on the data records for PROFINET IO
You can find the structure of the diagnostic data records and programming examples in the programming manual From PROFIBUS DP to PROFINET IO (https://support.industry.siemens.com/cs/ww/en/view/19289930) and in the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/24000238).

Causes of error and troubleshooting
The causes of error and troubleshooting of the diagnostic alarms are described in the device manuals of the I/O modules in the section Interrupts/Diagnostic alarms.

See also

Channel diagnostics (Page 33)

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

31

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.2

Maintenance events

Triggering of a maintenance event
The PROFINET interface of the interface module supports the diagnostic concept and maintenance concept in PROFINET according to the IEC 61158-6-10 standard. The goal is to detect and remove potential problems as soon as possible.
For the interface module, maintenance events signal to the user when a network component must be checked or replaced.
The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the maintenance event is entered in the start information of the diagnostic interrupt OB.
The interface module signals a maintenance event to the higher-level diagnostic system in case of the following events:

Table 5- 4 Triggering of a maintenance event

Maintenance alarm Maintenance demanded MAINT LED is lit

Event Synchronization loss
Maintenance event of an I/O module

Meaning · No synchronization frame received
No synchronization frame was received by the sync master within the timeout period after parameter assignment or during operation. · Successive synchronization frames are located outside permitted limits (jitter)
The maintenance event of a power supply module is passed through.

System alarms in STEP 7

The maintenance information is generated in STEP 7 with the following system alarms:

 Maintenance demanded - indicated for each port by a yellow wrench icon device view or in the hardware configuration.

in the

You can find additional information in the STEP 7 online help.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

32

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.3

Channel diagnostics

Function

Channel diagnostics provides information about channel faults in modules. Channel faults are mapped as channel diagnostic data in IO diagnostic data records. The "RDREC" instruction is used to read the data record.

Structure of the diagnostic data records
 Firmware version V4.0 or higher: The IM 155-5 PN ST interface module maps channel faults by means of extended channel diagnostics.
The data records supported by the ET 200MP are based on the standard PROFINET IO Application Layer Service Definition V2.3.
 Firmware version lower than V4.0: The IM 155-5 PN ST interface module maps channel faults by means of manufacturer-specific diagnostic data records.
The data records are based on the PROFINET IO standard - Application Layer Service Definition V2.2.
You can purchase the standards from the PROFIBUS User Organization on the Internet (http://www.profibus.com).

Coding of the extended channel diagnostics (as of firmware version V4.0)
With the IM 155-5 PN ST interface module, the following extended channel diagnostics are reported by the Interface module in slot 1:

Table 5- 5 Manufacturer-specific diagnostics in the USI

ChannelErrorType
0x0601 0x0602 0x0602 0x0602 0x0602 0x0610
0x0610

ExtendedChannel ErrorType 0x0682 0x0692 0x069B 0x0696 0x0697 0x06B1
0x06B2

Associated value Diagnostics (AddValue)

Slot

Communication with slot <No.> has failed

Slot

Permitted number of I/O modules exceeded

Slot

Permitted number of power supply modules exceeded

0

No U connector detected on an IM port

0

More than one bus master module (IM/CPU) detected

Slot

Power budget error (overload has been detected in at least one

power segment)

0

Error IM power supply: Power supply not active or power sup-

ply active

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

33

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Structure of the manufacturer-specific diagnostic data records (firmware version lower than V4.0)
The structure of the diagnostic data records is differentiated by the BlockVersion. The following BlockVersion applies to the IM 155-5 PN ST interface modules:

Table 5- 6 Structure of the manufacturer-specific diagnostic data records

IM 155-5 PN ST interface module 6ES7155-5AA00-0AB0

BlockVersion W#16#0101

Manufacturer-specific diagnostics in the User Structure Identifier (USI)
The following manufacturer-specific diagnostic data is signaled in the USI with the IM 155-5 PN ST interface module:

Table 5- 7 Manufacturer-specific diagnostics in the USI

USI no. W#16#... 0001 0002 0003 0004 0005 0006 0007

Diagnostics Power budget error (overload has been detected in at least one power segment) Permitted number of power supply modules exceeded Permitted number of I/O modules exceeded No U connector detected on an IM port More than one bus master module (IM/CPU) detected Communication with slot <No.> has failed Error IM power supply: Power supply not active or power supply active

Structure USI = W#16#0001

Table 5- 8 Structure of USI = W#16#0001

Data block name USI

Contents W#16#0001

The first power segment with overload starts at slot: <No.>

Slot

B#16#00 to B#16#1F

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Note
Manufacturer-specific diagnostic data in case of overload in an ET 200MP power segment

Bytes 2

1

1 1 1

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

34

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

Structure USI = W#16#0002

Table 5- 9 Structure of the USI = W#16#0002

Data block name USI

Contents W#16#0002

The first surplus module is located in slot: <No.>

Slot

B#16#00 to B#16#1F

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Note
Manufacturer-specific diagnostic data if the permitted number of power supply modules is exceeded

Bytes 2

1

1 1 1

USI structure = W#16#0003

Table 5- 10 USI structure = W#16#0003

Data block name USI

Contents W#16#0003

The first surplus module is located in slot: <No.>

Slot

B#16#20 to B#16#FF

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Note
Manufacturer-specific diagnostic data if the permitted number of I/O modules is exceeded

Bytes 2

1

1 1 1

USI structure = W#16#0004

Table 5- 11 USI structure = W#16#0004

Data block name USI

Contents W#16#0004

Followed by 4 reserved bytes Reserved Reserved Reserved Reserved

Note
Manufacturer-specific diagnostic data if no U connector is detected on an IM port

Bytes 2

1 1 1 1

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

35

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

USI structure = W#16#0005

Table 5- 12 USI structure = W#16#0005

Data block name USI

Contents W#16#0005

Followed by 4 reserved bytes Reserved Reserved Reserved Reserved

USI structure = W#16#0006

Table 5- 13 USI structure = W#16#0006

Data block name USI

Contents W#16#0006

Communication has failed with slot: <No.>

Slot

B#16#00 to B#16#1F

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Note
Manufacturer-specific diagnostic data if there is more than one bus master module (IM/CPU)

Bytes 2

1 1 1 1

Note
Manufacturer-specific diagnostic data if the communication with a slot has failed

Bytes 2

1

1 1 1

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

36

Manual, 11/2017, A5E03612323-AC

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

USI structure = W#16#0007

Table 5- 14 USI structure = W#16#0007

Data block name

Contents

Note

USI

W#16#0007

Manufacturer-specific diagnostic data

if the configuration of the interface

module power supply is different from

the parameterized configuration

Error IM power supply: Power supply <bit 0 in the least significant byte can be 0 or 1>

Power supply of the interface module

B#16#00

Power supply of the interface module is not active.

B#16#01

Power supply of the interface module is active.

Followed by 3 reserved bytes

Reserved

Reserved

Reserved

Bytes 2
1
1 1 1

Additional information
You can find additional information on maximum configuration, power budget and power segments in the ET 200MP Distributed I/O System (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

37

Interrupts and diagnostic, error, and system alarms 5.3 Alarms

5.3.4

Invalid configuration states of the ET 200MP on PROFINET IO

Invalid configuration states
The following invalid configuration states of the ET 200MP lead to a short failure of the ET 200MP IO device or prevent the exchange of user data with the I/O modules.
 More than two power supply modules (PS) inserted to the right of the interface module
 Number of modules exceeds maximum configuration
 Faulty backplane bus (e.g., additional IM present).
 I/O modules of a power segment consume more power than can be provided (overload). In the case of an overload, the interface module provides diagnostic information, cyclically checks the connection to the backplane bus and re-establishes it as soon as possible.

Additional information
You can find additional information on maximum configuration, power budget and power segments in the ET 200MP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/59191792) System Manual.

See also:

Status and error displays (Page 26)

5.3.5

STOP of the IO controller and recovery of the IO device

STOP of the SIMATIC IO controller
Diagnostic data received from the IO device while the IO controller is in STOP state does not initiate a call of the corresponding OBs when the IO controller goes into RUN. You have to read the data record E00CH using the "RDREC" in the startup OB. This record contains all diagnostic data for the slots assigned to an IO controller in an IO device.

Recovery of the SIMATIC IO device
If you want to read the diagnostic data in the STOP state of the IO controller, you have to read the E00CH data record using the "RDREC" instruction. This record contains all diagnostic data for the slots assigned to an IO controller in an IO device.

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

38

Manual, 11/2017, A5E03612323-AC

Technical specifications

Technical specifications of the IM 155-5 PN ST

Article number General information
Product type designation HW functional status Firmware version Vendor identification (VendorID) Device identifier (DeviceID) Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFINET as of GSD version/GSD revision
Configuration control via user data via dataset
Supply voltage Type of supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Short-circuit protection
Mains buffering · Mains/voltage failure stored energy time
Input current Current consumption (rated value) Current consumption, max. Inrush current, max. I²t

6ES7155-5AA01-0AB0
IM 155-5 PN ST FS01 V4.1.0 0x002A 0X0312
Yes; I&M0 to I&M3
V14 or higher with HSP 0223 / integrated with V15 or higher GSDML V2.32
V2.3 / -
No Yes
DC 24 V 20.4 V 28.8 V Yes Yes
10 ms
0.2 A 1.2 A 9 A 0.09 A²·s

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0) Manual, 11/2017, A5E03612323-AC

6
39

Technical specifications

Article number Power
Infeed power to the backplane bus Power available from the backplane bus Power loss Power loss, typ. Address area Address space per module · Address space per module, max. Address space per station · Address space per station, max. Hardware configuration Integrated power supply System power supply can be plugged in to left of IM Number of permissible power segments Rack · Modules per rack, max. Interfaces Number of PROFINET interfaces 1. Interface Interface types · Number of ports
· integrated switch
· RJ 45 (Ethernet) Functionality
· PROFINET IO Device
· Media redundancy Interface types RJ 45 (Ethernet)
· Transmission procedure
· 100 Mbps
· Autonegotiation
· Autocrossing

6ES7155-5AA01-0AB0 14 W 2.3 W 4.5 W
256 byte; per input / output
512 byte; per input / output
Yes Yes 3 30; I/O modules
1
2 Yes Yes
Yes Yes; PROFINET MRP
PROFINET with 100 Mbit/s full duplex (100BASE-TX) Yes Yes Yes

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

40

Manual, 11/2017, A5E03612323-AC

Article number PROFINET IO Device Services
­ Isochronous mode
­ IRT
­ MRP
­ MRPD
­ PROFINET system redundancy
­ PROFIenergy
­ Prioritized startup
­ Shared device
­ Number of IO Controllers with shared device, max.
Open IE communication · TCP/IP
· SNMP
· LLDP Isochronous mode
Isochronous operation (application synchronized up to terminal) Equidistance shortest clock pulse max. cycle Interrupts/diagnostics/status information Status indicator Alarms Diagnostic functions Diagnostics indication LED · RUN LED
· ERROR LED
· MAINT LED
· Connection display LINK TX/RX Potential separation
between backplane bus and electronics between PROFINET and all other circuits between supply and all other circuits Isolation Isolation tested with

6ES7155-5AA01-0AB0
Yes Yes Yes No No No Yes Yes 2
Yes Yes Yes
Yes
Yes 250 µs 4 ms
Yes Yes Yes
Yes; Green LED Yes; Red LED Yes; yellow LED Yes; 2x green-yellow LEDs
No Yes No
707 V DC (type test)

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0) Manual, 11/2017, A5E03612323-AC

Technical specifications 41

Technical specifications
Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min. · horizontal installation, max. · vertical installation, min. · vertical installation, max. Connection method ET-Connection · via BU/BA Send Dimensions Width Height Depth

6ES7155-5AA01-0AB0
0 °C 60 °C 0 °C 40 °C
No
35 mm 147 mm 129 mm

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

42

Manual, 11/2017, A5E03612323-AC

Dimension drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings of the IM 155-5 PN ST interface module

Figure A-1 Dimensional drawing of the IM 155-5 PN ST interface module, front and side views

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

43

Dimension drawing Dimensional drawing of the IM 155-5 PN ST interface module, side view with open front cover
Figure A-2 Dimensional drawing of the IM 155-5 PN ST interface module, side view with open front cover

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

44

Manual, 11/2017, A5E03612323-AC

Response times

B

B.1

Response times of the ET 200MP

Introduction

The response time of the IM 155-5 PN ST is made up of:  the update time configured for the IM as IO device. plus  the backplane bus cycle time.
Note Validity of the formula The following formula does not apply to shared device mode.

Backplane bus cycle time
The backplane bus cycle time is the time the interface module requires to output new output data, read new input data and then copy it to the PROFINET send buffer. The backplane bus cycle time in s is made up as follows:  (number of output data in bytes + number of output addresses) x 0.0668 + 1.6131
(rounded) plus  (number of input data in bytes + number of input addresses) x 0.0959 + 2.5901 (rounded) plus  Operating system processing time (500 s).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

45

Response times B.1 Response times of the ET 200MP

Example configuration for the calculation of the backplane bus cycle time
The following are used in the example:

Table B- 1 Example configuration for the calculation of the backplane bus cycle time

I/O module
Analog output module AQ 4xU/I ST Analog output module AQ 4xU/I ST with value status Digital output module DQ 32x24VDC/0.5A ST with value status Digital input module DI 32x24VDC HF Analog input module AI 8xU/I/RTD/TC ST Sum

Output data in bytes
8 8
4
20

Input data in bytes
1
4
4 16 25

Number of output addresses
1 1

Number of input addresses -
1

1

1

-

1

-

1

3

4

Example calculation of the backplane bus cycle time
Backplane bus cycle time in s:  (20 + 3) x 0.0668 + 1.6131 = 3.1495  4 s (rounded) plus  (25 + 4) x 0.0959 + 2.5901 = 5.3712  6 s (rounded) plus  Operating system processing time 500 s Result of backplane bus cycle time Backplane bus cycle time = 510 s

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

46

Manual, 11/2017, A5E03612323-AC

Response times B.1 Response times of the ET 200MP
Calculating the response time
It is necessary to differentiate between two cases when calculating the response time of the IM 155-5 PN ST:  Case 1: The configured update time is greater than/equal to the backplane bus cycle
time. Then: Response time in s = backplane bus cycle time + configured update time  Case 2: The configured update time is less than the backplane bus cycle time. Then: Response time in s = backplane bus cycle time + (configured update time x (backplane bus cycle time / configured update time)). If the division backplane cycle time / configured update time does not return an integer without remainder, an additional configured update time must be added next to the integer in the bracket.
Example calculation Case 1: The configured update time is greater than/equal to the backplane bus cycle time.
 Configured update time is, for example, 750 s  Backplane bus cycle time = 510 s Result of case 1 Response time of the IM 155-5 PN ST = 750 s + 510 s = 1260 s
Example calculation Case 2: The configured update time is less than the backplane bus cycle time.
 Configured update time is, for example, 500 s  Backplane bus cycle time = 510 s Result of case 2 Response time of the IM 155-5 PN ST = 510 s + (500 s x (510 s / 500 s) + 500 s) ) = 510 s + (500 s x 1 + 500 s) = 510 s + 1000 s = 1510 s
Establishing the PROFINET response time for typical configurations on the PROFINET IO.
A typical PROFINET IO configuration consists of an IO controller with multiple IO devices that are connected by cable or IWLAN to the IO controller. Additional loads, such as programming devices (PGs), HMI devices (Panels) or additional S7 stations, can be present as data receiving stations on the PROFINET line. You can find the measured values of the PROFINET response time for a typical configuration in this application example (https://support.industry.siemens.com/cs/ww/en/view/21869080).

Interface module IM 155-5 PN ST (6ES7155-5AA01-0AB0)

Manual, 11/2017, A5E03612323-AC

47

SIMATIC
S7-1500/ET 200MP Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_s_al_ar_m_s ________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

12/2016
A5E32363711-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32363711-AD  12/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change: Schematic circuit diagram has been updated.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

4

Manual, 12/2016, A5E32363711-AD

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

3.1

Wiring and block diagram ...................................................................................................... 13

4 Address space ...................................................................................................................................... 14

4.1

Address space ....................................................................................................................... 14

5 Diagnostics alarms................................................................................................................................ 18

5.1

Status and error displays ....................................................................................................... 18

6 Technical specifications ........................................................................................................................ 20

A Dimensional drawing............................................................................................................................. 23

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

6

Manual, 12/2016, A5E32363711-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

8

Manual, 12/2016, A5E32363711-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

10

Manual, 12/2016, A5E32363711-AD

Product overview

2.1

Properties

Part number:

6ES7521-1BL10-0AA0

View of the module

2

Properties

Figure 2-1 View of the DI 32x24VDC BA module
The module has the following technical properties:  32 digital inputs; electrically isolated in groups of 16  Rated input voltage 24 VDC  Suitable for switches and 2-/3-/4-wire proximity switches  Hardware compatible with digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Module-internal Shared Input (MSI)

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher

Configurable submodules / submodules for Shared Device

V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or
STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:
 Front connector (push-in terminals) including cable tie
 Labeling strips
 U connector
 Universal front door
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

12

Manual, 12/2016, A5E32363711-AD

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and outlines various wiring options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte d).

 Backplane bus interface
M Ground

CHx RUN ERROR

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

Figure 3-1 Block diagram and terminal assignment

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

13

Address space

4

4.1

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of DI 32x24VDC BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 1 Configuration options Configuration

Short designation/ module name in the
GSD file

1 x 32-channel without value status 4 x 8-channel without value status

DI 32x24VDC BA DI 32x24VDC BA S

1 x 32-channel with value status for DI 32x24VDC BA MSI module-internal Shared Input with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or
STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

14

Address space 4.1 Address space
Address space for configuration as 1 x 32-channel DI 32x24VDC BA
The figure below shows the address space assignment for configuration as a 1 x 32-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a" to "d" are printed on the module. "IB a", for example, stands for module start address input byte a.

Figure 4-1 Address space for configuration as 1 x 32-channel DI 32x24VDC BA
Address space for configuration as 4 x 8-channel DI 32x24VDC BA S
For the configuration as a 4 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. Unlike the 1 x 32-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 8-channel DI 32x24VDC BA S

Address space for configuration as 1 x 32-channel DI 32x24VDC BA MSI
The channels 0 to 31 of the module are copied to up to 4 submodules with configuration 1 x 32-channel module (Module-internal Shared Input, MSI). Channels 0 to 31 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

15

Address space 4.1 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready). The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 32-channel DI 32x24VDC BA MSI with value status

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

16

Manual, 12/2016, A5E32363711-AD

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 32-channel DI 32x24VDC BA MSI with value status
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

17

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows you the LED displays (status and error displays) of the DI 32x24VDC BA.

Figure 5-1 LED displays of the module DI 32x24VDC BA

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

18

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

LED CHx

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the input signal.
1 = Status of the input signal.

Remedy ---
---

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

19

Technical specifications

6

Technical specifications of the DI 32x24VDC BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7521-1BL10-0AA0
DI 32x24VDC BA FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DI

Yes

Counters

No

MSI

Yes

Supply voltage

Rated value (DC)

24 V

Valid range, low limit (DC)

20.4 V

Valid range, high limit (DC)

28.8 V

Power

Power consumption from the backplane bus

1.05 W

Power loss

Power loss, typ.

3 W

Digital inputs

Number of inputs

32

Configurable digital inputs

No

Sinking/sourcing input

Sinking input

Input characteristic curve acc. to IEC 61131, type Yes 3

Input voltage

Type of input voltage

DC

Rated value (DC)

24 V

for signal "0"

-30 to +5 V

for signal "1"

+11 to +30 V

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

20

Technical specifications

Input current for signal "1", typ. Input delay (for rated value of input voltage) For standard inputs
· Configurable

2.7 mA

6ES7521-1BL10-0AA0

No

· with "0" to "1", min.

3 ms

· with "0" to "1", max.

4 ms

· with "1" to "0", min.

3 ms

· with "1" to "0", max.

4 ms

For interrupt inputs

· Configurable

No

for technological functions

· Configurable

No

Cable length shielded, max. unshielded, max. Encoders Connectable encoders 2-wire sensor
· Permitted quiescent current (2-wire sensor), max.

1000 m 600 m
Yes 1.5 mA

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Interrupts

Diagnostics interrupt

No

Hardware interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

No

Channel status display

Yes; green LED

For channel diagnostics

No

For module diagnostics

No

Electrical isolation

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

21

Technical specifications

Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and power supply of the electronics Isolation Isolation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7521-1BL10-0AA0
No 16 Yes No
707 V DC (type test)
0 °C 60  0 °C 40 °C
Yes
25 mm 147 mm 129 mm
260 g
Delivery includes 40-pin push-in front connector

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

22

Manual, 12/2016, A5E32363711-AD

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 32x24VDC BA module

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

Manual, 12/2016, A5E32363711-AD

23

Index
Figure A-2 Dimensional drawing of the DI 32x24VDC BA module, side view with open front cover

Digital input module DI 32x24VDC BA (6ES7521-1BL10-0AA0)

24

Manual, 12/2016, A5E32363711-AD

SIMATIC
S7-1500/ET 200MP DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/a_dd_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

10/2018
A5E03485935-AG

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485935-AG  10/2018 Subject to change

Copyright © Siemens AG 2013 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  Clock synchronization possible in counting mode. In the technical specifications, the
counting frequency is increased from 1 kHz to 3 kHz.  New licensing conditions and copyright information of the Open Source Software  New technical specifications

Conventions

CPU: The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
DI mode: DI 32x24VDC HF as digital input module with 32 digital inputs (channels 0 to 31).
Counting mode: DI 32x24VDC HF as digital input module with 2 counters (channels 0 and 1) and 30 digital inputs (channels 2 to 31).

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

4

Manual, 10/2018, A5E03485935-AG

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................13 Count....................................................................................................................................... 13

3 Wiring ................................................................................................................................................... 14

4 Parameters/address space ................................................................................................................... 16

4.1 4.1.1 4.1.2 4.1.3 4.1.4

Parameter ...............................................................................................................................16 Parameters DI mode...............................................................................................................16 Explanation of the parameters of the DI mode .......................................................................17 Parameters of the Counting mode..........................................................................................18 Explanation of the parameters of the Counting mode ............................................................20

4.2 4.2.1 4.2.2 4.2.3

Address space ........................................................................................................................22 Address space DI mode..........................................................................................................23 Address space Counting mode...............................................................................................27 Examples of counting..............................................................................................................31

5 Interrupts/diagnostics alarms................................................................................................................. 35

5.1

Status and error displays ........................................................................................................35

5.2

Interrupts .................................................................................................................................37

5.3

Diagnostics alarms..................................................................................................................39

6 Technical specifications ........................................................................................................................ 40

A Dimensional drawing............................................................................................................................. 44

B Parameter data records......................................................................................................................... 46

B.1

Parameter assignment and structure of the parameter data records.....................................46

B.2

Structure of the parameter data records DI mode ..................................................................47

B.3

Structure of the parameter data records Counting mode .......................................................49

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

6

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

8

Manual, 10/2018, A5E03485935-AG

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

9

Product overview

2.1

Properties

Article number:
6ES7521-1BL00-0AB0

View of the module

2

Figure 2-1 View of the DI 32x24VDC HF module

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

10

Manual, 10/2018, A5E03485935-AG

Product overview 2.1 Properties

Properties

The module has the following technical properties:  32 digital inputs; electrically isolated in groups of 16
­ of which channel 0 and 1 optionally with counter function  Rated input voltage 24 V DC  Configurable input delay: 0.05 ms to 20 ms  Configurable diagnostics (per channel)  Configurable hardware interrupt (per channel)  Suitable for switches and 2-/3-/4-wire proximity switches  Hardware compatible with digital input module DI 16x24VDC HF (6ES7521-1BH00-0AB0) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device
Channel 0 and 1 optionally with counter function*

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.1.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

--- / X

V12 or higher

X

V12 or higher

X

V12 or higher

---

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13, SP1 with HSP 0118 or higher

X (PROFINET IO only)

* Requirement for counter function: Interface module IM 155-5 firmware version V3.0 or higher or CPU S7-15XX firmware version V1.7 or higher

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

11

Product overview 2.1 Properties

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01 FS02

Firmware version V1.0.0 to V2.1.x V1.0.0 to V2.1.x

FS03 FS04

V2.1.2 to V2.1.x V2.2.0 or higher

Note Upgrade possible between V1.0.0 to V2.1.x
Downgrade possible from V2.1.x to V2.1.2
Downgrade possible from V2.1.1 to V1.0.0
Upgrade to downgrade possible between V2.1.2 and V2.1.x
Upgrade and downgrade possible between V2.2.0 and higher

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component must be ordered separately:
Front connectors, including potential jumpers and cable ties
For more information on accessories, refer to the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

12

Manual, 10/2018, A5E03485935-AG

Product overview 2.2 Functions

2.2

Functions

2.2.1

Count

Introduction

As of firmware version V2.1.0 of the module you have the option of using channels 0 and 1 in the "Count" mode. The other channels can be used as standard inputs (DI mode).
If do not use channels 0 and 1 in the "Count" mode, these channels can also be used as digital inputs. The two channels 0 and 1 can only be used as counter inputs together.
When counting, the edges of the digital input are acquired and evaluated accordingly e.g.:
 For counting single items up to a maximum limit
 For applications with repeating counting procedures

Reference

You will find the basics and additional information on the counting function in the function manual Counting, measuring and position detection (http://support.automation.siemens.com/WW/view/en/59709820).

Counting with channel 0 and channel 1
You control the counting function via the IO addresses of the module. These IO addresses are also known as the control interface (output addresses) and feedback interface (input addresses), see section Address space Counting mode (Page 27). If you set the parameters of channels 0 and 1 for counting, you then have the following options:  You influence the behavior if one of the counting limits is exceeded using
­ Stop counting.
­ Continue counting.
 The bit STS_DQ (bit in the feedback interface) signals that the counted value is in one of the following ranges depending on the parameter assignment:
­ Between a comparison value and the high counting limit.
­ Between a comparison value and the low counting limit.
 You can set a parameter for a hardware interrupt if a comparison event occurs for DQ.
 You can define counting limits and comparison values for counting from 0 ... 4294967295 (232-1).
 You can set start values or have the user program set load values for counting.
The count direction is only up.

Reference

You will find examples of counting with channels 0 and 1 in the section Examples of counting (Page 31)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

13

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You will find information on wiring the front connector, establishing a cable shield, etc in the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) in section Wiring.
Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte d). You can set parameters so that channels 0 and 1 are used for counting. Channels 2 to 31 can continue to be used as digital inputs.

 Backplane bus interface
xL+ Supply voltage 24 V DC xM Ground

CHx RUN ERROR PWR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green/red) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

14

Wiring
Resistor circuitry of the encoders
To detect a wire break, it is necessary that enough quiescent current is flowing even when the encoder contacts are open. Connect a resistor of 25 k to 45 k with 0.25 W to the encoder contacts for this reason.
Figure 3-2 Resistor circuitry of the encoders
Tip: Using the potential jumpers
If you want to supply both load groups with the same potential (non-isolated), use the potential jumpers supplied with the front connector. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals 19 and 39 (xL+) and between terminals 20
and 40 (xM). 3. Use the terminals 39 and 40 to distribute the potential to the next module

Figure 3-3 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

15

Parameters/address space

4

4.1

Parameter

DI 32x24VDC HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The parameters that can be set depend on whether you use the module in standard mode or in counter mode. You will find the parameters in section Parameters DI mode (Page 16) or section Parameters of the Counting mode (Page 18). The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter reassignment in the user program, the parameters are transferred to the module with the WRREC instruction (parameter reassignment in RUN) using data records; see section Parameter assignment and structure of the parameter data records (Page 46).

4.1.1

Parameters DI mode

Parameters of the DI 32x24VDC HF in the DI mode
In the following table, you will find the parameters in the "DI mode". These parameters apply to channels 0 to 31.

Table 4- 1 Settable parameters and their defaults in the DI mode

Parameter

Range of values Default setting

Diagnostics

· No

Yes/No

No

supply voltage L+

· Wire break

Yes/No

No

Parameter reassignment in RUN

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the hardware catalog as of STEP 7, V13 SP1 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel*

Channel

group**

Yes

Channel

Channel

group**

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

16

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.1 Parameter

Parameter

Range of values Default setting

Input delay
Hardware interrupt*** · Rising edge · Falling edge · Rising and falling edge

0.05 ms, 0.1 ms, 0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms

3.2 ms; for isochronous mode 0.05 ms (cannot be changed)

Yes/No

No

Yes/No

No

Yes/No

No

Parameter reassignment in RUN
Yes

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 or GSD file PROFINET IO

Channel

Channel group**

Yes

Channel

Channel

Yes

Channel

Channel

Yes

Channel

Channel

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this message burst by enabling diagnostics for one channel only.
** The scope can be assigned for each channel during parameter assignment in RUN.
*** For the configuration as a 4 x 8-channel module, a maximum of 16 hardware interrupts can be configured (channels 0 to 15).

4.1.2

Explanation of the parameters of the DI mode

No supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling diagnostics if the line to the encoder is interrupted.

Input delay

This parameter can be used to suppress signal disruptions. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

17

Parameters/address space 4.1 Parameter
Hardware interrupt
Specifies whether or not a hardware interrupt is disabled or with which of the following events a hardware interrupt is generated.  Rising edge  Falling edge  Rising and falling edge

4.1.3

Parameters of the Counting mode

Parameters of the DI 32x24VDC HF Count in the Counting mode
If you want to use the module for counting, you need to set the module parameters as DI 32x24VDC HF Count. For channels 0 and channel 1, the following parameter settings are then possible. For channels 2 to 31, the parameter settings apply as with the DI 32x24VDC HF, , see section Parameters DI mode (Page 16).

Table 4- 2 Settable parameters and their defaults in the Counting mode

Parameter
Diagnostics · No
supply voltage L+ · Wire break Input delay
Hardware interrupt

Range of values

Default setting

Parameter reassignment in RUN

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the hardware catalog as of STEP 7, V13 SP1 with HSP 0118 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes/No

No

Yes

Channel*

---

Yes/No

No

Yes

Channel

---

0.05 ms, 0.1 ms, 3.2 ms;

Yes

Channel

---

0.4 ms, 1.6 ms, for isochro-

3.2 ms, 12.8 ms, nous mode

20 ms

0.05 ms

(cannot be

changed)

· Disable

Disable

Yes

Channel

---

· Comparison event occurred for DQ

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

18

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.1 Parameter

Parameter
Set output DQ
Edge selection High counting limit Comparison value Start value Behavior when a counting limit is exceeded

Range of values

Default setting

Parameter reassignment in RUN

· Between a comparison value and the high counting limit

Between a Yes comparison value and the high counting limit

· Between a comparison value and the low counting limit

· On rising edge On rising

Yes

· On falling edge edge

· On rising and falling edge

0 ... 4294967295 4294967295 Yes

0 ... 4294967295** 1

Yes

0 ... 4294967295** 0

Yes

· Stop counting Stop counting Yes

· Continue counting

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 with HSP 0118 or GSD file PROFINET IO

Channel

---

Channel

---

Channel

---

Channel

---

Channel

---

Channel

---

* If you enable diagnostics for multiple channels, you will receive an alarm storm on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by enabling diagnostics for one channel only.
** Comparison value or start value must be less than or equal to the value for the high counting limit.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

19

Parameters/address space 4.1 Parameter

4.1.4

Explanation of the parameters of the Counting mode

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling diagnostics if the line to the encoder is interrupted.

Input delay

This parameter can be used to suppress signal disruptions. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.

Hardware interrupt
Specifies whether or not a hardware interrupt is generated by the event "Comparison event occurred for DQ" (rising edge at STS_DQ).

Set output DQ

With this parameter, you specify the behavior of the STS_DQ bit in the feedback interface. You can assign this bit in the user program, for example, with a hardware output, see Address space Counting mode (Page 27).

Behavior

Meaning

Between a comparison value and the high counting limit

STS_DQ bit is set if the following condition is met: Comparison value < = counted value < = high counting limit

Between a

STS_DQ bit is set if the following condition is met:

comparison value and the low counting Low counting limit < = counted value < = comparison value limit

Edge selection

With this parameter you specify which edge is used to count. You can select the following options:  On rising edge  On falling edge  On rising and falling edge

High counting limit
With this parameter you limit the counting range. You can enter a value up to 4294967295 (232 - 1).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

20

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.1 Parameter

Comparison value
With this parameter you specify the count value at which the digital output DQ (STS_DQ bit of the feedback interface) switches due to the selected comparison event.

Start value

With this parameter, you specify the value at which counting begins and is continued if defined events occur. The following condition must be met:
Low counting limit < = start value < = high counting limit.

Behavior when a counting limit is exceeded
With this parameter, you specify the behavior if a counting limit is exceeded.

Behavior Stop counting
Continue counting

Meaning
After a counting limit is exceeded, the counting procedure is aborted and the STS_GATE bit (internal gate) is reset.
To restart the counting, the SW_GATE bit must be reset via the control interface and set again.
After a counting limit is exceeded, the counted value is set to the other counting limit and counting is continued.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

21

Parameters/address space 4.2 Address space

4.2

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

The letters "a to d" are printed onto the module. "EB a" for example, stands for module start address input byte a.

Configuration options of DI 32x24VDC HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration

Short designation/ module name in the
GSD file

1 x 32-channel without value status 1 x 32-channel with value status 4 x 8-channel without value status

DI 32x24VDC HF DI 32x24VDC HF QI DI 32x24VDC HF S

4 x 8-channel with value status

DI 32x24VDC HF S QI

1 x 32-channel with value status for

DI 32x24VDC HF MSI

module-internal Shared Input with up to 4

submodules

1 x 32 channel with value status (channel DI 32x24VDC HF Count 0 and channel 1 for counting, channels 2 to 31 as digital inputs).

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher

V12 or higher

X

V12 or higher

X

V13 update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13, SP1 with HSP 0118 or higher

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  DI 32x24VDC HF QI  DI 32x24VDC HF S QI  DI 32x24VDC HF MSI  DI 32x24VDC HF Count An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

22

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space

4.2.1

Address space DI mode

Address space for configuration as 32-channel DI 32x24VDC HF QI
The following figure shows the assignment of the address space for the configuration as a 32-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.

Figure 4-1 Address space for configuration as 32-channel DI 32x24VDC HF QI

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

23

Parameters/address space 4.2 Address space
Address space for configuration as 4 x 8-channel DI 32x24VDC HF S QI
For the configuration as a 4 x 8-channel module, the channels of the module are divided into four submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of I/O controllers depends on the interface module being used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 32-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 8-channel DI 32x24VDC HF S QI
Address space for configuration as 1 x 32-channel DI 32x24VDC HF MSI
The channels 0 to 31 of the module are copied in up to four submodules with configuration 1 x 32-channel module (Module-internal shared input, MSI). Channels 0 to 31 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels. The number of I/O controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

24

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space
The following figure shows the assignment of the address space with submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 32-channel DI 32x24VDC HF MSI with value status

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

25

Parameters/address space 4.2 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 32-channel DI 32x24VDC HF MSI with value status
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V15 (http://support.automation.siemens.com/WW/view/en/49948856).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

26

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space

4.2.2

Address space Counting mode

Address space for configuration as 1 x 32-channel DI 32x24VDC Count
The address space of channel 0 and channel 1 used for counting consists of the control and feedback interface. The Count function is controlled directly via the two interfaces. With suitable parameter assignment, a hardware interrupt is triggered.
If you use the module in the "Counting mode" (channels 0 and 1), the module occupies the following address areas:
 16 bytes in the process image output (control interface).
 24 bytes in the process image input (feedback interface).

Control interface
The following figure shows the address assignment of the module in the process image output. You use the control interface for example to start the counter or to set the counter value. With the "SW gate" control bit you open and close the software gate of the corresponding channel.

Figure 4-5 Assignment of the address space of the control interface of the DI 32x24VDC Count (bytes 0 to 7)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

27

Parameters/address space 4.2 Address space

Figure 4-6 Assignment of the address space of the control interface of the DI 32x24VDC Count (bytes 8 to 15)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

28

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space
Feedback interface
The following figure shows the address assignment of the module in the process image input. The feedback interface for the counters (channels 0 and 1) begins at input byte x+8. Via the feedback interface, the user program receives current counted values and status information from the module.

Figure 4-7 Assignment of the address space of the feedback interface of the DI 32x24VDC Count (bytes 0 to 15)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

29

Parameters/address space 4.2 Address space

Figure 4-8 Assignment of the address space of the feedback interface of the DI 32x24VDC Count (bytes 16 to 23)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

30

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space

4.2.3

Examples of counting
In this section, you will find examples of the behavior of the counter and how you can specify this behavior. You specify the properties of the counter in the parameter assignment.

Behavior when a counting limit is exceeded - Stop counting
The following section describes the effects of the parameter "Behavior when a counting limit is exceeded = Stop counting". To control the counter, the bits of the control byte of the control interface are used, see section Address space Counting mode (Page 27)
Counting begins at the current counted value (the SW_GATE is set in the control byte). Bit sequence in the control byte of the control interface 0000 1000.
After the high counting limit is violated, counting is aborted (counting stops) and the counted value jumps to the low counting limit = 0. The STS_GATE bit is reset.
To restart the counting, the SW_GATE bit must be reset via the control interface and set again.
Whether or not counting is started again with the current counter value or with the start value depends on the command byte in the control interface. Bit sequence in control byte of the control interface:
 bit 0 to 2 = "000" Start with current counter value
 bit 0 to 2 = "010" Start with start value
If the SW_GATE bit is reset in the control byte of the control interface before reaching the high counting limit, counting is stopped.
The following figure shows an example of the principle of stopping counting when a counting limit is exceeded.

Figure 4-9 Principle: Stop counting

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

31

Parameters/address space 4.2 Address space Behavior when a counting limit is exceeded - Continue counting
The following section describes the effects of the parameter "Behavior when a counting limit is exceeded = Continue counting". To control the counter, the bits of the control byte of the control interface are used, see section Address space Counting mode (Page 27), subsection Control interface. Counting begins at the current counted value (the SW-GATE is set in the control byte). Bit sequence in the control byte of the control interface 0000 1000. After the high counting limit is exceeded, the counted value jumps to the low counting limit = 0 and counting is continued. If the SW_GATE bit is reset in the control byte of the control interface before reaching the high counting limit, counting is stopped. The following figure shows an example of the principle of continuing counting when a counting limit is exceeded.
Figure 4-10 Principle: Continue counting

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

32

Manual, 10/2018, A5E03485935-AG

Parameters/address space 4.2 Address space
Set output DQ - behavior of the STS_DQ bit
The following section shows the behavior of the STS_DQ bit with the parameter assignment "Set output DQ = between comparison value and high counting limit". The STS_DQ bit is set to 1 when the comparison value < = counted value <= high counting limit is reached. As an option, a hardware interrupt can be enabled in the parameter assignment. This is generated with the parameter rising edge of the STS_DQ bit. The following figure shows an example of the behavior of the STS_DQ bit between the comparison value and high counting limit.
Figure 4-11 Behavior of the STS_DQ bit and hardware interrupt
The following section shows the behavior of the STS_DQ bit with the parameter assignment "Set output DQ = between low counting limit and comparison value". The STS_DQ bit is set to 1 when the low counting limit < = counted value < = comparison value is reached. As an option, a hardware interrupt can be enabled in the parameter assignment. This is generated with the parameter rising edge of the STS_DQ bit.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

33

Parameters/address space 4.2 Address space
The following figure shows an example of the behavior of the STS_DQ bit between the low counting limit and comparison value.

Figure 4-12 Behavior of the STS_DQ bit and hardware interrupt

Counting limits

The counting limits define the range of values of the counted value used. The counting limits can be set in the parameters and can be changed with the user program during runtime.
Configurable high counting limit: 4294967295 (232 -1).
Low counting limit (not settable): 0
You can continue or terminate (automatic gate stop) counting if a counting limit is exceeded, see the parameter "Behavior when a counting limit is exceeded".

Start value/load value
The start value is specified in the parameter assignment with STEP 7 (TIA Portal). The load value can be changed by the user program. Both values must be between the low counting limit and high counting limit.

Comparison values
You specify a comparison value per channel that can control the feedback bit STS_DQ regardless of the user program. When the current counted value corresponds to the comparison condition set in the parameters, the feedback bit STS_DQ is set. You can use the feedback bit STS_DQ to control a digital output of a digital output module.
The comparison values can be set in the parameters and can be changed during runtime via the user program with parameter data record 0/1.

Gate control

The opening and closing of the software gate (SW-GATE) defines the time window in which the count signals are acquired. The software gate is controlled by the user program.

Reference

You can find additional information on the counting functionality in the function manual S71500, ET 200MP, ET 200SP counting, measuring and position detection (http://support.automation.siemens.com/WW/view/en/59709820).

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

34

Manual, 10/2018, A5E03485935-AG

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows you the LED displays (status and error displays) of DI 32x24VDC HF.

Figure 5-1 LED displays of the module DI 32x24VDC HF

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

35

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic reports can be found in chapter Diagnostics alarms (Page 39).

RUN and ERROR LED
Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Flashes Flashes

Meaning

Remedy

Voltage missing or too low at backplane bus

· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are inserted.

The module starts and flashes until --the valid parameter assignment is set.

Module is configured

Indicates module errors (at least one Evaluate the diagnostics data and eliminate the error error at one channel, e.g., wire break). (e.g., wire break).

Hardware defective

Replace the module.

PWR1 and PWR2 LED
Table 5- 2 PWR1 and PWR2 status indication

LED PWR1 / PWR2 Off On

Meaning

Remedy

Supply voltage L+ too low or missing Check supply voltage L+.

Supply voltage L+ is present and OK ---

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

36

Manual, 10/2018, A5E03485935-AG

Interrupts/diagnostics alarms 5.2 Interrupts

CHx LED
Table 5- 3 CHx status display

LED CHx Off On On

Meaning

0 = Status of the input signal

---

Remedy

1 = Status of the input signal

---

Diagnostics: Wire break Supply voltage L+ too low or missing

Check the wiring. When using simple switches, deactivate diagnostics or connect a resistor (25 k ... 45 k) to the encoder contacts.
Check supply voltage L+

5.2

Interrupts

Digital input module DI 32x24VDC HF supports diagnostic and hardware interrupts.

You can find detailed information on the error event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostics interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:  Rising edge  Falling edge  Rising and falling edge  Comparison event occurred for DQ (only in "Counting mode")

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

37

Interrupts/diagnostics alarms 5.2 Interrupts
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The figure below shows the assignment to the bits of the local data double word 8.

Figure 5-2 Start information of the organization block

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#1F

It follows the error event that triggered the hardware interrupt.

Event

B#16#01

B#16#02

B#16#05

Comment
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (chan- 1 nel 0 to channel 31 of the module)

Rising edge

1

Falling edge

Comparison event occurred for DQ (only in "Counting mode")

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

38

Manual, 10/2018, A5E03485935-AG

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR-LED flashes for each diagnostics event on the module. The diagnostics alarms can, for example, be read out in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break*

Error code 6H

Parameter assign- 10H ment error
Load voltage missing 11H
Hardware interrupt 16H lost

Meaning Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Corrective measures Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics

· Connect a resistor of 25 k to 45 k to the encoder contacts

· The module cannot evaluate parame- Correct the parameter assignment ters for the channel

· Incorrect parameter assignment

Supply voltage L+ of the module is missing
The module cannot trigger an interrupt because the previous interrupt was not acknowledged; possibly a configuration error

Connect supply voltage L+ to module/channel
· Change interrupt processing in the CPU and, if necessary, edit the module parameters.
· The error persists until the module is assigned new parameters

* If the supply voltage fails in case of a pending wire break diagnostics, the value status momentarily indicates an incorrect value.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

39

Technical specifications

6

Technical specifications of the DI 32x24VDC HF
The following table shows the technical specifications as of 10/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7521-1BL00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DI
· Counter
· Oversampling
· MSI
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Power Power available from the backplane bus

6ES7521-1BL00-0AB0
DI 32x24VDC HF FS01 V2.2.0 Yes
Yes; I&M0 to I&M3
V13 SP1 / -
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes Yes No Yes
24 V 20.4 V 28.8 V Yes
40 mA; 20 mA per group with 24 V DC supply
1.1 W

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

40

Manual, 10/2018, A5E03485935-AG

Technical specifications

Article number Power loss
Power loss, typ. Digital inputs
Number of digital inputs Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop
· Freely usable digital input
· Counter ­ Number, max. ­ Counting frequency, max. ­ Counting width ­ Counting direction up/down
Input voltage · Type of input voltage
· Rated value (DC)
· for signal "0"
· for signal "1" Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable ­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max.

6ES7521-1BL00-0AB0
4.2 W
32 Yes P-reading Yes
Yes Yes
2 3 kHz; FS04 and FW V2.2.0 or higher 32 bit Up
DC 24 V -30 to +5V +11 to +30V
2.5 mA
Yes; 0.05 / 0.1 / 0.4 / 1.6 / 3.2 / 12.8 / 20 ms 0.05 ms 20 ms 0.05 ms 20 ms
Yes
Yes
1 000 m 600 m

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

41

Technical specifications

Article number Encoder Connectable encoders
· 2-wire sensor
­ permissible quiescent current (2-wire sensor), max.
Isochronous mode Isochronous operation (application synchronized up to terminal) Filtering and processing time (TCI), min. Bus cycle time (TDP), min.
Interrupts/diagnostics/status information Diagnostics function
Alarms · Diagnostic alarm
· Hardware interrupt Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit Diagnostics indication LED
· RUN LED
· ERROR LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus
· between the channels and the power supply of the electronics
Isolation Isolation tested with

6ES7521-1BL00-0AB0
Yes 1.5 mA
Yes 80 µs; At 50 s filter time 250 µs Yes Yes Yes
Yes Yes; to I < 350 µA No
Yes; Green LED Yes; Red LED Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED
Yes 16 Yes No
707 V DC (type test)

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

42

Manual, 10/2018, A5E03485935-AG

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max.
Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

6ES7521-1BL00-0AB0
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
260 g

Tolerances of the programmable input delay

Table 6- 1 Tolerances of the programmable input delay

Input delay 0.05 ms 0.1 ms 0.4 ms 1.6 ms 3.2 ms (preset) 12.8 ms 20 ms

Tolerance range 43 s to 57 s 86 s to 114 s 344 s to 456 s 1.5 ms to 1.9 ms 3 ms to 4 ms 12 ms to 15 ms 19 ms to 23 ms

Technical specifications

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

43

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 32x24VDC HF module

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

44

Manual, 10/2018, A5E03485935-AG

Dimensional drawing
Figure A-2 Dimensional drawing of the DI 32x24VDC HF module, side view with open front cover

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

45

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
DI mode: no dependencies. You can assign the individual parameters in any combination.
Counting mode: The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Comparison value Start value

Dependent parameters 0 ... high counting limit 0 ... high counting limit

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the input delay values of selected channels can be edited without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 31. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

46

Parameter data records B.2 Structure of the parameter data records DI mode
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module device manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

B.2

Structure of the parameter data records DI mode

Assignment of data record and channel
For the configuration with 1 x 32 channels, the parameters are located in data records 0 to 31 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 30 for channel 30  Data record 31 for channel 31 For the configuration as a 4 x 8-channel module, the module has 4 submodules with eight channels each. The parameters for the channels are located in data records 0 to 7 and are assigned as follows:  Data records 0 to 7 for channels 0 to 7 (submodule 1)  Data records 0 to 7 for channels 8 to 15 (submodule 2)  Data records 0 to 7 for channels 16 to 23 (submodule 3)  Data records 0 to 7 for channels 24 to 31 (submodule 4) Address the respective submodule for data record transfer.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

47

Parameter data records B.2 Structure of the parameter data records DI mode
Structure of a data record in the DI mode
The example in the following figure shows the structure of data record 0 for channel 0. The structure of channels 1 to 31 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 3

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

48

Manual, 10/2018, A5E03485935-AG

Parameter data records B.3 Structure of the parameter data records Counting mode

B.3

Structure of the parameter data records Counting mode

Assignment of data record and channel
For the configuration with 1 x 32 channels, the parameters are located in data records 0 to 31 and are assigned as follows:  Data record 0 for channel 0 with counting function  Data record 1 for channel 1 with counting function  Data record 2 for channel 2 (structure as in DI mode)  ...  Data record 30 for channel 30 (structure as in DI mode)  Data record 31 for channel 31 (structure as in DI mode)
Structure of data record 0 of the Counting mode
The example in the figure below shows the structure of data record 0 for channel 0. The structure of channel 1 is identical, the values are located in data record 1. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

49

Parameter data records B.3 Structure of the parameter data records Counting mode

Figure B-2 Structure of data record 0: Bytes 0 to 4

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

50

Manual, 10/2018, A5E03485935-AG

Parameter data records B.3 Structure of the parameter data records Counting mode

Figure B-3 Structure of data record 0: Bytes 5 to 17
Keep in mind that the counter is stopped and reset to the start value when you change count parameters. Changing the parameters "Diagnostics" and "Hardware interrupts" does not have an effect on the counter.
Structure of data records 2 to 31
The structure of data records 2 to 31 for channels 2 to 31 is identical to the structure in the DI mode, see section Structure of the parameter data records DI mode (Page 47), figure Structure of data record 0: Bytes 0 to 3.

DI 32x24VDC HF digital input module (6ES7521-1BL00-0AB0)

Manual, 10/2018, A5E03485935-AG

51

SIMATIC
S7-1500/ET 200MP Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_s_al_ar_m_s ________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

12/2016
A5E32363114-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32363114-AD  12/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change: Schematic circuit diagram has been updated.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

4

Manual, 12/2016, A5E32363114-AD

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

3.1

Wiring and block diagram ...................................................................................................... 13

4 Address space ...................................................................................................................................... 14

4.1

Address space ....................................................................................................................... 14

5 Diagnostics alarms................................................................................................................................ 18

5.1

Status and error displays ....................................................................................................... 18

6 Technical specifications ........................................................................................................................ 20

A Dimensional drawing............................................................................................................................. 23

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

6

Manual, 12/2016, A5E32363114-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

8

Manual, 12/2016, A5E32363114-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

10

Manual, 12/2016, A5E32363114-AD

Product overview

2.1

Properties

Part number:

6ES7521-1BH10-0AA0

View of the module

2

Properties

Figure 2-1 View of the DI 16x24VDC BA module
The module has the following technical properties:  16 digital inputs; electrically isolated in groups of 16  Rated input voltage 24 VDC  Suitable for switches and 2-/3-/4-wire proximity switches

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Module internal shared input (MSI)

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher

Configurable submodules / submodules for Shared Device

V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:
 Front connector (push-in terminals) including cable tie
 Labeling strips
 U connector
 Universal front door
For more information on accessories, refer to the system manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

12

Manual, 12/2016, A5E32363114-AD

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and outlines various wiring options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte b).

 Backplane bus interface
M Ground

CHx RUN ERROR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

13

Address space

4

4.1

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of DI 16x24VDC BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 1 Configuration options

Configuration

Short designation/ module name in the
GSD file

1 x 16-channel without value status 2 x 8-channel without value status

DI 16x24VDC BA DI 16x24VDC BA S

1 x 16-channel with value status for DI 16x24VDC BA MSI module-internal Shared Input with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or
STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

Address space for configuration as 1 x 16-channel DI 16x24VDC BA
The figure below shows the address space assignment for configuration as a 1 x 16-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.
The letters "a" through "b" are printed on the module. "IB a", for example, stands for module start address input byte a.

Figure 4-1 Address space for configuration as 1 x 16-channel DI 16x24VDC BA

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

14

Address space 4.1 Address space
Address space for configuration as 2 x 8-channel DI 16x24VDC BA S
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.
Figure 4-2 Address space for configuration as 2 x 8-channel DI 16x24VDC BA S

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

15

Address space 4.1 Address space
Address space for configuration as 1 x 16-channel DI 16x24VDC BA MSI
The channels 0 to 15 of the module are copied in up to four submodules with configuration 1 x 16-channel module (Module-internal shared input, MSI). Channels 0 to 15 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready). The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 16-channel DI 16x24VDC BA MSI with value status

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

16

Manual, 12/2016, A5E32363114-AD

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DI 16x24VDC BA MSI with value status
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

17

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows you the LED displays (status and error displays) of the DI 16x24VDC BA.

Figure 5-1 LED displays of the module DI 16x24VDC BA

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

18

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning
Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are inserted. ---
Replace the module.

LED CHx

Table 5- 2 CHx status display

LED CHx Off On

Meaning

0 = Status of the input signal.

---

1 = Status of the input signal.

---

Remedy

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

19

Technical specifications

6

Technical specifications of the DI 16x24VDC BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7521-1BH10-0AA0
DI 16x24VDC BA FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DI

Yes

Counters

No

MSI

Yes

Supply voltage

Rated value (DC)

24 V

Valid range, low limit (DC)

20.4 V

Valid range, high limit (DC)

28.8 V

Power

Power consumption from the backplane bus

1.05 W

Power loss

Power loss, typ.

1.8 W

Digital inputs

Number of inputs

16

Configurable digital inputs

No

Sinking/sourcing input

Sinking input

Input characteristic curve acc. to IEC 61131, type Yes 3

Input voltage

Type of input voltage

DC

Rated value (DC)

24 V

for signal "0"

-30 to +5 V

for signal "1"

+11 to +30 V

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

20

Technical specifications

Input current for signal "1", typ. Input delay (for rated value of input voltage) For standard inputs
· Configurable

2.7 mA

6ES7521-1BH10-0AA0

No

· with "0" to "1", min.

3 ms

· with "0" to "1", max.

4 ms

· with "1" to "0", min.

3 ms

· with "1" to "0", max.

4 ms

For interrupt inputs

· Configurable

No

for technological functions

· Configurable

No

Cable length shielded, max. unshielded, max. Encoders Connectable encoders 2-wire sensor
· Permitted quiescent current (2-wire sensor), max.

1000 m 600 m
Yes 1.5 mA

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Interrupts

Diagnostics interrupt

No

Hardware interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

No

Channel status display

Yes; green LED

For channel diagnostics

No

For module diagnostics

No

Electrical isolation

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

21

Technical specifications

Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Isolation Isolation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7521-1BH10-0AA0
No 16 Yes
707 V DC (type test)
0 °C 60  0 °C 40 °C
Yes
25 mm 147 mm 129 mm
230 g
Delivery includes 40-pin push-in front connector

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

22

Manual, 12/2016, A5E32363114-AD

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 16x24VDC BA module

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

Manual, 12/2016, A5E32363114-AD

23

Index
Figure A-2 Dimensional drawing of the DI 16x24VDC BA module, side view with open front cover

Digital input module DI 16x24VDC BA (6ES7521-1BH10-0AA0)

24

Manual, 12/2016, A5E32363114-AD

SIMATIC
S7-1500/ET 200MP DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

08/2018
A5E03485952-AG

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485952-AG  07/2018 Subject to change

Copyright © Siemens AG 2013 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  Clock synchronization possible in counting mode. In the technical specifications the
counting frequency increased from 1 kHz to 3 kHz.  New licensing conditions and copyright information of the Open Source Software  New technical specifications

Conventions

CPU: The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
DI mode: DI 16x24VDC HF as digital input module with 16 digital inputs (channels 0 to 15).
Counting mode: DI 16x24VDC HF as digital input module with 2 counters (channels 0 and 1) and 14 digital inputs (channels 2 to 15).

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

4

Manual, 08/2018, A5E03485952-AG

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................13 Count....................................................................................................................................... 13

3 Wiring ................................................................................................................................................... 14

4 Parameters/address space ................................................................................................................... 16

4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5

Parameter ...............................................................................................................................16 Parameters .............................................................................................................................16 Parameters DI mode...............................................................................................................17 Explanation of the parameters of the DI mode .......................................................................18 Parameters of the Counting mode..........................................................................................19 Explanation of the parameters of the Counting mode ............................................................20

4.2 4.2.1 4.2.2 4.2.3

Address space ........................................................................................................................22 Address space DI mode..........................................................................................................23 Address space Counting mode...............................................................................................25 Examples of counting..............................................................................................................30

5 Interrupts/diagnostics alarms................................................................................................................. 34

5.1

Status and error displays ........................................................................................................34

5.2

Interrupts .................................................................................................................................36

5.3

Diagnostics alarms..................................................................................................................38

6 Technical specifications ........................................................................................................................ 39

A Dimensional drawing............................................................................................................................. 43

B Parameter data records......................................................................................................................... 45

B.1

Parameter assignment and structure of the parameter data records.....................................45

B.2

Structure of the parameter data records DI mode ..................................................................47

B.3

Structure of the parameter data records Counting mode .......................................................49

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

6

Manual, 08/2018, A5E03485952-AG

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

8

Manual, 08/2018, A5E03485952-AG

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

9

Product overview

2.1

Properties

Article number:
6ES7521-1BH00-0AB0

View of the module

2

Properties
10

Figure 2-1 View of the DI 16x24VDC HF module
The module has the following technical properties:  16 digital inputs; electrically isolated in groups of 16
­ of which channel 0 and 1 optionally with counter function  Rated input voltage 24 V DC  Configurable input delay: 0.05 ms to 20 ms  Configurable diagnostics (per channel)  Configurable hardware interrupt (per channel)  Suitable for switches and 2-/3-/4-wire proximity switches
DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0) Manual, 08/2018, A5E03485952-AG

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device
Channel 0 and 1 optionally with counter function*

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.1.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

--- / X

V12 or higher

X

V12 or higher

X

V12 or higher

---

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13, SP1 with HSP 0118 or higher

X (PROFINET IO only)

* Requirement for counter function: Interface module IM 155-5 firmware version V3.0 or higher or CPU S7-15XX firmware version V1.7 or higher

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01 FS02

Firmware version V1.0.0 to V2.1.x V1.0.0 to V2.1.x

FS03 FS04

V2.1.2 to V2.1.x V2.2.0 or higher

Note Upgrade possible between V1.0.0 to V2.1.x
Downgrade possible from V2.1.x to V2.1.2
Downgrade possible from V2.1.1 to V1.0.0
Upgrade to downgrade possible between V2.1.2 and V2.1.x
Upgrade and downgrade possible between V2.2.0 and higher

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

11

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component must be ordered separately:
Front connectors, including potential jumpers and cable ties
For more information on accessories, refer to the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

12

Manual, 08/2018, A5E03485952-AG

2.2

Functions

Product overview 2.2 Functions

2.2.1

Count

Introduction

As of firmware version V2.1.0 of the module you have the option of using channels 0 and 1 in the "Count" mode. The other channels can be used as standard inputs (DI mode). If do not use channels 0 and 1 in the "Count" mode, these channels can also be used as digital inputs. The two channels 0 and 1 can only be used as counter inputs together. When counting, the edges of the digital input are acquired and evaluated accordingly e.g.:  For counting single items up to a maximum limit
 For applications with repeating counting procedures

Reference

You will find the basics and additional information on the counting function in the function manual Counting, measuring and position detection (http://support.automation.siemens.com/WW/view/en/59709820).

Counting with channel 0 and channel 1
You control the counting function via the IO addresses of the module. These IO addresses are also known as the control interface (output addresses) and feedback interface (input addresses), see section AUTOHOTSPOT.
If you set the parameters of channels 0 and 1 for counting, you then have the following options:  You influence the behavior if one of the counting limits is exceeded using
­ Stop counting.
­ Continue counting.
 The bit STS_DQ (bit in the feedback interface) signals that the counted value is in one of the following ranges depending on the parameter assignment:
­ Between a comparison value and the high counting limit.
­ Between a comparison value and the low counting limit.
 You can set a parameter for a hardware interrupt if a comparison event occurs for DQ.
 You can define counting limits and comparison values for counting from 0 ... 4294967295 (232-1).
 You can set start values or have the user program set load values for counting.
The count direction is only up.

Reference

You will find examples of counting with channels 0 and 1 in the section Examples of counting (Page 30)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

13

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte b). You can set parameters so that channels 0 and 1 are used for counting. Channels 2 to 15 can continue to be used as digital inputs.

 Backplane bus interface
L+ Supply voltage 24 V DC M Ground

CHx RUN ERROR PWR

Channel or channel status LED (green/red) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 3-1 Block diagram and terminal assignment

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

14

Manual, 08/2018, A5E03485952-AG

Wiring
Resistor circuitry of the encoders
To detect a wire break, it is necessary that enough quiescent current is flowing even when the encoder contacts are open. Connect a resistor of 25 k to 45 k with 0.25 W to the encoder contacts for this reason.
Figure 3-2 Resistor circuitry of the encoders
Tip: Using the potential jumpers
Use the potential jumpers supplied with the front connector if you want to distribute the 24V DC supply voltage to a neighboring module. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals 19 and 39 (L+) and between terminals 20
and 40 (M). 3. Use the terminals 39 and 40 to distribute the potential to the next module

Figure 3-3 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

15

Parameters/address space

4

4.1

Parameter

4.1.1

Parameters

DI 16x24VDC HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The parameters that can be set depend on whether you use the module in standard mode or in counter mode. You will find the parameters in section Parameters DI mode (Page 17) or section Parameters of the Counting mode (Page 19). The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter reassignment in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 45).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

16

Parameters/address space 4.1 Parameter

4.1.2

Parameters DI mode

Parameters of the DI 16x24VDC HF in the DI mode
In the table below you will find the parameters in the DI mode. These parameters apply to channels 0 to 15.

Table 4- 1 Settable parameters and their defaults in the DI mode

Parameter

Range of values

Diagnostics · No
supply voltage L+ · Wire break
Input delay

Yes/No
Yes/No
0.05 ms, 0.1 ms, 0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms

Hardware interrupt*** · Rising edge

Yes/No

· Falling edge

Yes/No

· Rising and falling edge Yes/No

Default setting

Parameter reassignment in RUN

Range of effectiveness with configuration software, e.g. STEP 7
Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 or GSD file PROFINET IO

No

Yes

No

Yes

3.2 ms;

Yes

for isochronous

mode 0.05 ms

(cannot be

changed)

Channel* Channel Channel

Channel group**
Channel group**
Channel group**

No

Yes

Channel

Channel

No

Yes

Channel

Channel

No

Yes

Channel

Channel

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this alarm surge by enabling diagnostics for one channel only.
** The scope can be assigned for each channel during parameter assignment in RUN.
*** For the configuration as a 4 x 8-channel module, a maximum of 16 hardware interrupts can be configured (channels 0 to 15).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

17

Parameters/address space 4.1 Parameter

4.1.3

Explanation of the parameters of the DI mode

No supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling diagnostics if the line to the encoder is interrupted.

Input delay

This parameter can be used to suppress signal disruptions. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.

Hardware interrupt
Specifies whether or not a hardware interrupt is disabled or with which of the following events a hardware interrupt is generated.  Rising edge  Falling edge  Rising and falling edge

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

18

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.1 Parameter

4.1.4

Parameters of the Counting mode

Parameters of the DI 16x24VDC HF Count in the Counting mode
If you want to use the module for counting, you need to set the module parameters as DI 16x24VDC HF Count. For channels 0 and channel 1, the following parameter settings are then possible. For channels 2 to 15, the parameter settings apply as with the DI 16x24VDC HF, , see section Parameters DI mode (Page 17).

Table 4- 2 Settable parameters and their defaults in the Counting mode

Parameter

Range of values

Default setting

Parameter reassignment in RUN

Diagnostics · No
supply voltage L+ · Wire break Input delay
Hardware interrupt Set output DQ
Edge selection
High counting limit

Yes/No

No

Yes

Yes/No

No

Yes

0.05 ms, 0.1 ms, 0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms
· Disable

3.2 ms; Yes for isochronous mode 0.05 ms (cannot be changed)
Disable Yes

· Comparison event occurred for DQ

· Between a comparison Between Yes

value and the high count- a compar-

ing limit

ison value and the

· Between a comparison high

value and the low count- counting

ing limit

limit

· On rising edge · On falling edge

On rising Yes edge

· On rising and falling edge

0 ... 4294967295

42949672 Yes 95

Range of effectiveness with configuration software, e.g. STEP 7
Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 with HSP 0118 or GSD file PROFINET IO

Channel*

---

Channel

---

Channel

---

Channel

---

Channel

---

Channel

---

Channel

---

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

19

Parameters/address space 4.1 Parameter

Parameter

Range of values

Comparison value
Start value
Behavior when a counting limit is exceeded

0 ... 4294967295** 0 ... 4294967295** · Stop counting · Continue counting

Default setting
1 0 Stop counter

Parameter reassignment in RUN
Yes Yes Yes

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the hardware catalog as of STEP 7, V13 SP1 with HSP 0118 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

---

Channel

---

Channel

---

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this alarm surge by enabling diagnostics for one channel only. ** Comparison value or start value must be less than or equal to the value for the high counting limit.

4.1.5

Explanation of the parameters of the Counting mode

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling diagnostics if the line to the encoder is interrupted.

Input delay

This parameter can be used to suppress signal disruptions. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.

Hardware interrupt
Specifies whether or not a hardware interrupt is generated by the event "Comparison event occurred for DQ" (rising edge at STS_DQ).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

20

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.1 Parameter

Set output DQ

With this parameter, you specify the behavior of the STS_DQ bit in the feedback interface. You can assign this bit in the user program, for example, with a hardware output, see AUTOHOTSPOT.

Behavior

Meaning

Between a comparison value and the high counting limit

STS_DQ bit is set if the following condition is met: Comparison value < = counted value < = high counting limit

Between a

STS_DQ bit is set if the following condition is met:

comparison value and the low counting Low counting limit < = counted value < = comparison value limit

Edge selection

With this parameter you specify which edge is used to count. You can select the following options:  On rising edge  On falling edge  On rising and falling edge

High counting limit
With this parameter you limit the counting range. You can enter a value up to 4294967295 (232 - 1).

Comparison value
With this parameter you specify the count value at which the digital output DQ (STS_DQ bit of the feedback interface) switches due to the selected comparison event.

Start value

With this parameter, you specify the value at which counting begins and is continued if defined events occur. The following condition must be met:
Low counting limit < = start value < = high counting limit.

Behavior when a counting limit is exceeded
With this parameter, you specify the behavior if a counting limit is exceeded.

Behavior Stop counting
Continue counting

Meaning
After a counting limit is exceeded, the counting procedure is aborted and the STS_GATE bit (internal gate) is reset.
To restart the counting, the SW_GATE bit must be reset via the control interface and set again.
After a counting limit is exceeded, the counted value is set to the other counting limit and counting is continued.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

21

Parameters/address space 4.2 Address space

4.2

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

The letters "a to b" are printed onto the module. "EB a" for example, stands for module start address input byte a.

Configuration options of DI 16x24VDC HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration

Short designation/ module name in the
GSD file

1 x 16-channel without value status 1 x 16-channel with value status 2 x 8-channel without value status

DI 16x24VDC HF DI 16x24VDC HF QI DI 16x24VDC HF S

2 x 8-channel with value status

DI 16x24VDC HF S QI

1 x 16-channel with value status for

DI 16x24VDC HF MSI

module-internal shared input with up to 4

submodules

1 x 16-channel with value status (channel DI 16x24VDC HF 0 and channel 1 for counting, channels 2 Count to 15 as digital inputs)

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3
or higher
X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13, SP1 with HSP 0118 or higher

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  DI 16x24VDC HF QI,  DI 16x24VDC HF S QI  DI 16x24VDC HF MSI  DI 16x24VDC HF Count An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

22

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space

4.2.1

Address space DI mode

Address space for configuration as 16-channel DI 16x24VDC HF QI
The figure below shows the assignment of the address space for the configuration as a 16-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.

Figure 4-1 Address space for configuration as 16-channel DI 16x24VDC HF QI with value status
Address space for configuration as 2 x 8-channel DI 16x24VDC HF S QI
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 8-channel DI 16x24VDC HF S QI

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

23

Parameters/address space 4.2 Address space
Address space for configuration as 1 x 16-channel DI 16x24VDC HF MSI
The channels 0 to 15 of the module are copied in up to four submodules with configuration 1 x 16-channel module (Module-internal shared input, MSI). Channels 0 to 15 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of IO controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule involved.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).
The following figure shows the assignment of the address space with submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DI 16x24VDC HF MSI

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

24

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DI 16x24VDC HF MSI
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (http://support.automation.siemens.com/WW/view/en/49948856).

4.2.2

Address space Counting mode

Address space for configuration as 1 x 16-channel DI 16x24VDC Count
The address space of channel 0 and channel 1 used for counting consists of the control and feedback interface. The Count function is controlled directly via the two interfaces. With suitable parameter assignment, a hardware interrupt is triggered.
If you use the module in the "Counting mode" (channels 0 and 1), the module occupies the following address areas:
 16 bytes in the process image output (control interface).
 20 bytes in the process image input (feedback interface).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

25

Parameters/address space 4.2 Address space
Control interface
The figure below shows the address assignment of the module in the process image output. You use the control interface, for example, to start the counter or to set the counter value. With the "SW gate" control bit you open and close the software gate of the corresponding channel.

Figure 4-5 Assignment of the address space of the control interface of the DI 16x24VDC Count (bytes 0 to 7)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

26

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space

Figure 4-6 Assignment of the address space of the control interface of the DI 16x24VDC Count (bytes 8 to 15)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

27

Parameters/address space 4.2 Address space
Feedback interface
The figure below shows the address assignment of the module in the process image input. The feedback interface for the counters (channels 0 and 1) begins at input byte x+4. Via the feedback interface, the user program receives current counted values and status information from the module.

Figure 4-7 Assignment of the address space of the feedback interface of the DI 16x24VDC Count (bytes 0 to 11)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

28

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space

Figure 4-8 Assignment of the address space of the feedback interface of the DI 16x24VDC Count (bytes 12 to 19)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

29

Parameters/address space 4.2 Address space

4.2.3

Examples of counting
In this section, you will find examples of the behavior of the counter and how you can specify this behavior. You specify the properties of the counter in the parameter assignment.

Behavior when a counting limit is exceeded - Stop counting
The following section describes the effects of the parameter "Behavior when a counting limit is exceeded = Stop counting". To control the counter, the bits of the control byte of the control interface are used, see section Address space Counting mode (Page 25)
Counting begins at the current counted value (the SW_GATE is set in the control byte). Bit sequence in the control byte of the control interface 0000 1000.
After the high counting limit is violated, counting is aborted (counting stops) and the counted value jumps to the low counting limit = 0. The STS_GATE bit is reset.
To restart the counting, the SW_GATE bit must be reset via the control interface and set again.
Whether or not counting is started again with the current counter value or with the start value depends on the command byte in the control interface. Bit sequence in control byte of the control interface:
 bit 0 to 2 = "000" Start with current counter value
 bit 0 to 2 = "010" Start with start value
If the SW_GATE bit is reset in the control byte of the control interface before reaching the high counting limit, counting is stopped.
The following figure shows an example of the principle of stopping counting when a counting limit is exceeded.

Figure 4-9 Principle: Stop counting

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

30

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space
Behavior when a counting limit is exceeded - Continue counting
The following section describes the effects of the parameter "Behavior when a counting limit is exceeded = Continue counting". To control the counter, the bits of the control byte of the control interface are used, see section Address space Counting mode (Page 25), subsection Control interface. Counting begins at the current counted value (the SW-GATE is set in the control byte). Bit sequence in the control byte of the control interface 0000 1000. After the high counting limit is exceeded, the counted value jumps to the low counting limit = 0 and counting is continued. If the SW_GATE bit is reset in the control byte of the control interface before reaching the high counting limit, counting is stopped. The following figure shows an example of the principle of continuing counting when a counting limit is exceeded.
Figure 4-10 Principle: Continue counting

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

31

Parameters/address space 4.2 Address space
Set output DQ - behavior of the STS_DQ bit
The following section shows the behavior of the STS_DQ bit with the parameter assignment "Set output DQ = between comparison value and high counting limit". The STS_DQ bit is set to 1 when the comparison value < = counted value <= high counting limit is reached. As an option, a hardware interrupt can be enabled in the parameter assignment. This is generated with the parameter rising edge of the STS_DQ bit. The following figure shows an example of the behavior of the STS_DQ bit between the comparison value and high counting limit.
Figure 4-11 Behavior of the STS_DQ bit and hardware interrupt
The following section shows the behavior of the STS_DQ bit with the parameter assignment "Set output DQ = between low counting limit and comparison value". The STS_DQ bit is set to 1 when the low counting limit < = counted value < = comparison value is reached. As an option, a hardware interrupt can be enabled in the parameter assignment. This is generated with the parameter rising edge of the STS_DQ bit.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

32

Manual, 08/2018, A5E03485952-AG

Parameters/address space 4.2 Address space
The following figure shows an example of the behavior of the STS_DQ bit between the low counting limit and comparison value.

Figure 4-12 Behavior of the STS_DQ bit and hardware interrupt

Counting limits

The counting limits define the range of values of the counted value used. The counting limits can be set in the parameters and can be changed with the user program during runtime.
Configurable high counting limit: 4294967295 (232 -1).
Low counting limit (not settable): 0
You can continue or terminate (automatic gate stop) counting if a counting limit is exceeded, see the parameter "Behavior when a counting limit is exceeded".

Start value/load value
The start value is specified in the parameter assignment with STEP 7 (TIA Portal). The load value can be changed by the user program. Both values must be between the low counting limit and high counting limit.

Comparison values
You specify a comparison value per channel that can control the feedback bit STS_DQ regardless of the user program. When the current counted value corresponds to the comparison condition set in the parameters, the feedback bit STS_DQ is set. You can use the feedback bit STS_DQ to control a digital output of a digital output module.
The comparison values can be set in the parameters and can be changed during runtime via the user program with parameter data record 0/1.

Gate control

The opening and closing of the software gate (SW-GATE) defines the time window in which the count signals are acquired. The software gate is controlled by the user program.

Reference

You can find additional information on the counting functionality in the function manual S71500, ET 200MP, ET 200SP counting, measuring and position detection (http://support.automation.siemens.com/WW/view/en/59709820).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

33

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of DI 16x24VDC HF.

Figure 5-1 LED displays of the DI 16x24VDC HF module

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

34

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic reports can be found in chapter Diagnostics alarms (Page 38).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Flashes Flashes

Meaning

Solution

Voltage missing or too low at backplane · Switch on the CPU and/or the system power supply

bus

modules.

· Verify that the U connectors are inserted.

· Check whether too many modules are inserted.

The module starts and flashes until the --valid parameter assignment is set.

Module is configured

Indicates module errors (at least one error at one channel, e.g., wire break).
Hardware defective

Evaluate the diagnostics data and eliminate the error (e.g., wire break).
Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Solution Check supply voltage L+.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning 0 = Status of the input signal
1 = Status of the input signal
Diagnostics: Wire break

Supply voltage L+ too low or missing

Solution ---
---
Check the wiring. When using simple switches, deactivate diagnostics or connect a resistor (25 k ... 45 k) to the encoder contacts. Check supply voltage L+.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

35

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Digital input module DI 16x24VDC HF supports diagnostic and hardware interrupts.

You can find detailed information on the error event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostics interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Rising edge
 Falling edge
 Rising and falling edge
 Comparison event occurred for DQ (only in "Counting mode")
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment to the bits of double word 8 in local data.

Figure 5-2 Start information of the organization block

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

36

Manual, 08/2018, A5E03485952-AG

Interrupts/diagnostics alarms 5.2 Interrupts

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#0F

It follows the error event that triggered the hardware interrupt.

Event

B#16#01

B#16#02

B#16#05

Comment
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (chan- 1 nel 0 to channel 15 of the module)

Rising edge

1

Falling edge

Comparison event occurred for DQ (only in "Counting mode")

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

37

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is output for each diagnostics event and the ERROR LED flashes on the module. The diagnostics alarms can, for example, be read from the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break*

Error code 6H

Parameter assign- 10H ment error
Load voltage missing 11H
Hardware interrupt 16H lost

Meaning Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Corrective measures Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics

· Connect a resistor of 25 k to 45 k to the encoder contacts

· The module cannot evaluate parame- Correct the parameter assignment ters for the channel

· Incorrect parameter assignment

Supply voltage L+ of the module is missing
The module cannot trigger an interrupt because the previous interrupt was not acknowledged; possibly a configuration error

Connect supply voltage L+ to module/channel
· Change interrupt processing in the CPU and, if necessary, edit the module parameters.
· The error persists until the module is assigned new parameters

* If the supply voltage fails in case of a pending wire break diagnostics, the value status momentarily indicates an incorrect value.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

38

Manual, 08/2018, A5E03485952-AG

Technical specifications

6

Technical specifications of the DI 16x24VDC HF
The following table shows the technical specifications as of 08/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7521-1BH00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DI
· Counter
· Oversampling
· MSI
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Power Power available from the backplane bus

6ES7521-1BH00-0AB0
DI 16x24VDC HF FS04 V2.2.0 Yes
Yes; I&M0 to I&M3
V13 SP1 / -
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes Yes No Yes
24 V 20.4 V 28.8 V Yes
20 mA; with 24 V DC supply
1.1 W

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

39

Manual, 08/2018, A5E03485952-AG

Technical specifications

Article number Power loss
Power loss, typ. Digital inputs
Number of digital inputs Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop
· Freely usable digital input
· Counter ­ Number, max. ­ Counting frequency, max. ­ Counting width ­ Counting direction up/down
Input voltage · Type of input voltage
· Rated value (DC)
· for signal "0"
· for signal "1" Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable ­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max.

6ES7521-1BH00-0AB0
2.6 W
16 Yes P-reading Yes
Yes Yes
2 3 kHz 32 bit Up
DC 24 V -30 to +5V +11 to +30V
2.5 mA
Yes; 0.05 / 0.1 / 0.4 / 1.6 / 3.2 / 12.8 / 20 ms 0.05 ms 20 ms 0.05 ms 20 ms
Yes
Yes
1 000 m 600 m

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

40

Manual, 08/2018, A5E03485952-AG

Article number Encoder Connectable encoders
· 2-wire sensor ­ permissible quiescent current (2-wire sensor), max.
Isochronous mode Isochronous operation (application synchronized up to terminal) Filtering and processing time (TCI), min. Bus cycle time (TDP), min.
Interrupts/diagnostics/status information Diagnostics function
Alarms · Diagnostic alarm
· Hardware interrupt Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit Diagnostics indication LED
· RUN LED
· ERROR LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus
· between the channels and the power supply of the electronics
Isolation Isolation tested with

6ES7521-1BH00-0AB0
Yes 1.5 mA
Yes 80 µs; At 50 s filter time 250 µs Yes Yes Yes
Yes Yes; to I < 350 µA No
Yes; Green LED Yes; Red LED Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED
No 16 Yes No
707 V DC (type test)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0) Manual, 08/2018, A5E03485952-AG

Technical specifications 41

Technical specifications

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max.
Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

6ES7521-1BH00-0AB0
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
240 g

Tolerances of the programmable input delay

Table 6- 1 Tolerances of the programmable input delay

Input delay 0.05 ms 0.1 ms 0.4 ms 1.6 ms 3.2 ms (preset) 12.8 ms 20 ms

Tolerance range 43 s to 57 s 86 s to 114 s 344 s to 456 s 1.5 ms to 1.9 ms 3 ms to 4 ms 12 ms to 15 ms 19 ms to 23 ms

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

42

Manual, 08/2018, A5E03485952-AG

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 16x24VDC HF module

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

43

Manual, 08/2018, A5E03485952-AG

Dimensional drawing
Figure A-2 Dimensional drawing of the DI 16x24VDC HF module, side view with open front cover

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

44

Manual, 08/2018, A5E03485952-AG

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
DI mode: no dependencies. You can assign the individual parameters in any combination.
Counting mode: The following table lists the parameters that depend on one another:

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Comparison value Start value

Dependent parameters 0 ... high counting limit 0 ... high counting limit

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the input delay values of selected channels can be edited without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 15. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

45

Manual, 08/2018, A5E03485952-AG

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module device manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

46

Manual, 08/2018, A5E03485952-AG

Parameter data records B.2 Structure of the parameter data records DI mode

B.2

Structure of the parameter data records DI mode

Assignment of data record and channel
For the configuration with 1 x 16 channels, the parameters are located in data records 0 to 15 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 14 for channel 14  Data record 15 for channel 15 For the configuration as a 2 x 8-channel module, the module has two submodules with eight channels each. The parameters for the channels are located in data records 0 to 7 and are assigned as follows:  Data records 0 to 7 for channels 0 to 7 (submodule 1)  Data records 0 to 7 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

47

Parameter data records B.2 Structure of the parameter data records DI mode
Structure of a data record in the DI mode
The example in the figure below shows the structure of data record 0 for channel 0. The structure of channels 1 to 15 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 3

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

48

Manual, 08/2018, A5E03485952-AG

Parameter data records B.3 Structure of the parameter data records Counting mode

B.3

Structure of the parameter data records Counting mode

Assignment of data record and channel
For the configuration with 1 x 16 channels, the parameters are located in data records 0 to 15 and are assigned as follows:  Data record 0 for channel 0 with counting function  Data record 1 for channel 1 with counting function  Data record 2 for channel 2 (structure as in DI mode)  ...  Data record 14 for channel 14 (structure as in DI mode)  Data record 15 for channel 15 (structure as in DI mode)

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

49

Parameter data records B.3 Structure of the parameter data records Counting mode
Structure of data record 0 of the Counting mode
The example in the figure below shows the structure of data record 0 for channel 0. The structure of channel 1 is identical, the values are located in data record 1. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-2 Structure of data record 0: Bytes 0 to 4

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

50

Manual, 08/2018, A5E03485952-AG

Parameter data records B.3 Structure of the parameter data records Counting mode

Figure B-3 Structure of data record 0: Bytes 5 to 17
Keep in mind that the counter is stopped and reset to the start value when you change count parameters. Changing the parameters "Diagnostics" and "Hardware interrupts" does not have an effect on the counter.
Structure of data records 2 to 15
The structure of data records 2 to 15 for channels 2 to 15 is identical to the structure in the DI mode, see section Structure of the parameter data records DI mode (Page 47), figure Structure of data record 0: Bytes 0 to 3.

DI 16x24VDC HF Digital Input Module (6ES7521-1BH00-0AB0)

Manual, 08/2018, A5E03485952-AG

51

SIMATIC
S7-1500/ET 200MP DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_a_la_rm_s_________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E03486159-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03486159-AD  09/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

4

Manual, 09/2016, A5E03486159-AD

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Address space ...................................................................................................................................... 15

4.1

Address space ....................................................................................................................... 15

5 Diagnostic alarms ................................................................................................................................. 19

5.1

Status and error displays ....................................................................................................... 19

6 Technical specifications ........................................................................................................................ 21

A Dimensional drawing............................................................................................................................. 24

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

6

Manual, 09/2016, A5E03486159-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

8

Manual, 09/2016, A5E03486159-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

10

Manual, 09/2016, A5E03486159-AD

Product overview

2.1

Properties

Article number
6ES7521-1BH50-0AA0

View of the module

2

Properties

Figure 2-1 View of the DI 16x24VDC SRC BA module
The module has the following technical properties:  16 digital inputs; electrically isolated in groups of 16  Reading M  Rated input voltage 24 V DC  Suitable for switches and 2-/3-/4-wire proximity switches

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update
Identification data I&M0 to I&M3 Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device
Configurable after interface module IM 155-5 DP ST

V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 or higher

X

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

12

Manual, 09/2016, A5E03486159-AD

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Wiring and block diagram
The figure below shows you how to connect the module and channel addressing (input byte a to input byte b)

 Backplane bus interface
L+ Supply voltage 24 V DC

CHx RUN ERROR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

13

Wiring
Tip: Using the potential jumpers
Use the potential jumpers supplied with the front connector if you want to distribute the 24V DC supply voltage to a neighboring module. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals 19 and 39 (L+) and between terminals 20
and 40 (M). 3. Use the terminals 39 and 40 to distribute the potential to the next module

Figure 3-2 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

14

Manual, 09/2016, A5E03486159-AD

Address space

4

4.1

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of DI 16x24VDC SRC BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 1 Configuration options

Configuration

Short designation/ module name in the
GSD file

1 x 16-channel without value status DI 16x24VDC SRC BA 2 x 8-channel without value status DI 16x24VDC SRC BA S

1 x 16-channel with value status for DI 16x24VDC SRC BA MSI module-internal shared input with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the DI 16x24VDC SRC BA MSI module.
An additional bit is assigned to each channel for the value status. In contrast to the modules with diagnostics capability, the module only shows information regarding the parameter assignment of the first submodule (basic submodule) in the value status.
The module does not supply a value status for the read-in digital value.

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

15

Address space 4.1 Address space
Address space for configuration as DI 16x24VDC SRC BA
The following figure shows the address space allocation for the configuration as 16-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module - "EB a", for example, stands for module start address input byte a.
Figure 4-1 Address space for configuration as 16-channel DI 16x24VDC SRC BA
Address space for configuration as 2 x 8-channel DI 16x24VDC SRC BA S
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.
Figure 4-2 Address space for configuration as 2 x 8-channel DI 16x24VDC SRC BA

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

16

Manual, 09/2016, A5E03486159-AD

Address space 4.1 Address space
Address space for configuration as 1 x 16-channel DI 16x24VDC SRC BA MSI
The channels 0 to 15 of the module are copied in up to four submodules with configuration 1 x 16-channel module (Module-internal shared input, MSI). Channels 0 to 15 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the basic submodule parameters have not yet been assigned (not ready). The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 16-channel DI 16x24VDC SRC BA MSI

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

17

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DI 16x24VDC SRC BA MSI
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

18

Manual, 09/2016, A5E03486159-AD

Diagnostic alarms

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of DI 16x24VDC SRC BA.

5

Figure 5-1 LED displays of the module DI 16x24VDC SRC BA

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

19

Diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On
Flashes

Off Off Flashes

Module starts up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the input signal
1 = Status of the input signal

Remedy ---
---

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

20

Manual, 09/2016, A5E03486159-AD

Technical specifications

6

Technical specifications of the DI 16x24VDC SRC BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7521-1BH50-0AA0
DI 16x24VDC SRC BA FS01 V2.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V12 / V12

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DI

Yes

Counters

No

MSI

Yes

Supply voltage

Valid range, low limit (DC) Valid range, high limit (DC)

20.4 V 28.8 V

Power

Power consumption from the backplane bus Power loss Power loss, typ.

0.9 W 2.8 W

Digital inputs

Number of inputs Configurable digital inputs Sinking/sourcing input Input characteristic curve acc. to IEC 61131, type 3 Input voltage Type of input voltage Rated value (DC) for signal "0" for signal "1"

16 No reading m Yes
DC 24 V -5 to +30 V -11 to -30 V

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

21

Technical specifications

Input current for signal "1", typ. Input delay (for rated value of input voltage) For standard inputs
· Configurable

4.5 mA

6ES7521-1BH50-0AA0

No

· with "0" to "1", min.

3 ms

· with "0" to "1", max.

4 ms

· with "1" to "0", min.

3 ms

· with "1" to "0", max.

4 ms

For interrupt inputs

· Configurable

No

for technological functions

· Configurable

No

Cable length shielded, max. unshielded, max. Encoders Connectable encoders 2-wire sensor
· Permitted quiescent current (2-wire sensor), max.

1000 m 600 m
Yes 1.5 mA

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Interrupts

Diagnostics interrupt

No

Hardware interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

No

Channel status display

Yes; green LED

For channel diagnostics

No

For module diagnostics

No

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

22

Manual, 09/2016, A5E03486159-AD

Technical specifications

Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Isolation Isolation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7521-1BH50-0AA0
No 16 Yes
707 V DC (type test)
0 °C 60  0 °C 40 °C
Yes
35 mm 147 mm 129 mm
230 g

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

23

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 16x24VDC SRC BA module

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

24

Manual, 09/2016, A5E03486159-AD

Dimensional drawing
Figure A-2 Dimensional drawing of the DI 16x24VDC SRC BA module, side view with open front cover

DI 16x24VDC SRC BA Digital Input Module (6ES7521-1BH50-0AA0)

Manual, 09/2016, A5E03486159-AD

25

SIMATIC
S7-1500/ET 200MP Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Wiring

3

Address space

4

Diagnostic alarms

5

Technical specifications

6

Dimensional drawing

A

07/2020
A5E48025116-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E48025116-AA  07/2020 Subject to change

Copyright © Siemens AG 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

3

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

4

Equipment Manual, 07/2020, A5E48025116-AA

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide ........................................................................................... 6

2 Product overview ................................................................................................................................... 8

2.1

Properties ............................................................................................................................ 8

3 Wiring .................................................................................................................................................. 10

3.1

Wiring and block diagrams ................................................................................................. 10

3.2

Terminal assignment X10 and X11. .................................................................................... 11

3.3

Connecting a module with a connection module ................................................................ 14

3.4

Wiring of the module ......................................................................................................... 16

3.5

Fuse .................................................................................................................................. 18

4 Address space ...................................................................................................................................... 20

5 Diagnostic alarms ................................................................................................................................ 26

5.1

Status and error displays .................................................................................................... 26

6 Technical specifications....................................................................................................................... 28

A Dimensional drawing........................................................................................................................... 32

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

5

S7-1500 / ET 200MP Documentation Guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

6

Equipment Manual, 07/2020, A5E48025116-AA

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

7

Product overview

2.1

Properties

Article number
6ES7521-1BP00-0AA0

View of the module

2

Properties

Figure 2-1 View of the DI 64x24VDC SNK/SRC BA module
The module has the following technical properties: · 64 digital inputs; electrically isolated in 4 groups of 16 · Sourcing input or sinking input, depending on wiring · Rated input voltage 24 V DC · Suitable for switches and 2-/3-/4-wire proximity switches

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

8

Equipment Manual, 07/2020, A5E48025116-AA

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Module-internal Shared Input (MSI) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
as of V16 and HSP 0319

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

X X X (PROFINET IO only) X (PROFINET IO only)

--- / X X X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can be ordered as spare parts: · U connector · Universal front door with the article number: 6ES7 591-8AA00-0AA0 You can find additional information in the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

Other components
The following must be ordered separately: · SIMATIC TOP connect connection module · Pre-fabricated connecting cable with IDC connectors For additional information, see section Connecting a module with a connection module (Page 14)

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

9

Wiring

3

3.1

Wiring and block diagrams

This section contains the block diagram of the module and the terminal assignment.

Wiring and block diagram
The following figure shows the terminal assignment and the assignment of the channels. · Inputs: Channel 0 to 31 to connector X10 · Inputs: Channel 32 to 63 to connector X11



Backplane bus interface

CHx



Terminal for "sinking" operating mode RUN



Terminal for "sourcing" operating mode ERROR

Figure 3-1 Block diagram and terminal assignment

Channel Status display LED (green) Error display LED (red)

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

10

Equipment Manual, 07/2020, A5E48025116-AA

Wiring 3.2 Terminal assignment X10 and X11.

3.2

Terminal assignment X10 and X11.

The following figure shows the assignment of the channels to the addresses.

Figure 3-2 Front view of the module without front door

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

11

Wiring 3.2 Terminal assignment X10 and X11.

Terminal and address assignment
For connecting sensors or actuators, we recommend using the SIMATIC TOP connect preassembled connecting cables and the SIMATIC TOP connect connection modules. However, if you choose another wiring option, you will need the following tables.

Table 3- 1 Assignment for connector X10 of the module

Terminal 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2

Channel ---
2COM * Channel 31 Channel 30 Channel 29 Channel 28 Channel 27 Channel 26 Channel 25 Channel 24
--2COM * Channel 23 Channel 22 Channel 21 Channel 20 Channel 19 Channel 18 Channel 17 Channel 16

Assignment for inputs to X10

Address -----
x+3.7 x+3.6 x+3.5 x+3.4 x+3.3 x+3.2 x+3.1 x+3.0 ----x+2.7 x+2.6 x+2.5 x+2.4 x+2.3 x+2.2 x+2.1 x+2.0

Terminal 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1

Channel ---
1COM ** Channel 15 Channel 14 Channel 13 Channel 12 Channel 11 Channel 10 Channel 9 Channel 8
--1COM ** Channel 7 Channel 6 Channel 5 Channel 4 Channel 3 Channel 2 Channel 1 Channel 0

Address -----
x+1.7 x+1.6 x+1.5 x+1.4 x+1.3 x+1.2 x+1.1 x+1.0 -----
x.7 x.6 x.5 x.4 x.3 x.2 x.1 x.0

* 2M for Sinking (sinking input) connection type/ 2L+ for Sourcing (sourcing input) connection type ** 1M for Sinking (sinking input) connection type/ 1L+ for Sourcing (sourcing input) connection type

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

12

Equipment Manual, 07/2020, A5E48025116-AA

Wiring 3.2 Terminal assignment X10 and X11.

Table 3- 2 Assignment for the connector X11 of the module

Terminal 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39

Channel Channel 32 Channel 33 Channel 34 Channel 35 Channel 36 Channel 37 Channel 38 Channel 39
3COM * ---
Channel 40 Channel 41 Channel 42 Channel 43 Channel 44 Channel 45 Channel 46 Channel 47
3COM * ---

Assignment for inputs to X11

Address x+4.0 x+4.1 x+4.2 x+4.3 x+4.4 x+4.5 x+4.6 x+4.7 ----x+5.0 x+5.1 x+5.2 x+5.3 x+5.4 x+5.5 x+5.6 x+5.7 -----

Terminal 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Channel Channel 48 Channel 49 Channel 50 Channel 51 Channel 52 Channel 53 Channel 54 Channel 55 4COM **
--Channel 56 Channel 57 Channel 58 Channel 59 Channel 60 Channel 61 Channel 62 Channel 63 4COM **
---

Address x+6.0 x+6.1 x+6.2 x+6.3 x+6.4 x+6.5 x+6.6 x+6.7 ----x+7.0 x+7.1 x+7.2 x+7.3 x+7.4 x+7.5 x+7.6 x+7.7 -----

* 3M for Sinking (sinking input) connection type/ 3L+ for Sourcing (sourcing input) connection type ** 4M for Sinking (sinking input) connection type/ 4L+ for Sourcing (sourcing input) connection type

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

13

Wiring 3.3 Connecting a module with a connection module

3.3

Connecting a module with a connection module

Component for connecting
To connect sensors, you need 2 connection modules per module. The connection modules are connected to the module with pre-assembled connecting cables.
You can find additional information on the components of the SIMATIC TOP connect system cabling, e.g. for connecting connection modules, in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).
Note Common supply
If you use the listed SIMATIC TOP connect connection modules, then all 32 channels of a connection module have a common supply. This means that 2 groups of 16 channels each are supplied by common potential.

You can find the required components in the tables below.

Table 3- 3 SIMATIC TOP connect connection module

Components
Connection modules for digital inputs

Typ Description e

Connection technology

TP1 1-wire connection, without LED (sinking input)

- Screw terminals - Push-in system

1-wire connection, with LED (sink- - Screw terminals

ing input)

- Push-in system

1-wire connection, with LED (sourcing input)

- Screw terminals - Push-in system

TP3 3-wire connection, without LED - Screw terminals

(sinking input)

- Push-in system

3-wire connection, with LED (sink- - Screw terminals

ing input)

- Push-in system

Article number
6ES7924-2AA20-0AA0 6ES7924-2AA20-0AC0 6ES7924-2AA20-0BA0 6ES7924-2AA20-0BC0
6ES7924-2AK20-0BA0 6ES7924-2AK20-0BC0
6ES7924-2CA20-0AA0 6ES7924-2CA20-0AC0
6ES7924-2CA20-0BA0 6ES7924-2CA20-0BC0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1
Pack of 1 Pack of 1
Pack of 1 Pack of 1
Pack of 1 Pack of 1

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

14

Equipment Manual, 07/2020, A5E48025116-AA

Wiring 3.3 Connecting a module with a connection module

Table 3- 4 Connecting cables SIMATIC TOP connect Components

Length

Pre-assembled connecting cable with IDC connector an both 1.0 m

ends

2.0 m

· IDC connector 40-pin for the I/O module

2.5 m

· IDC connector 50-pin for the SIMATIC TOP connect con- 3.0 m nection module

Article number
6ES7923-5BB00-0GB0 6ES7923-5BC00-0GB0 6ES7923-5BC50-0GB0 6ES7923-5BD00-0GB0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1

Support for selecting hardware components
We recommend you use the TIA Selection Tool for planning your project. The TIA Selection Tool is available free of charge as a desktop version for download or as a cloud version, refer to the Internet (https://new.siemens.com/global/en/products/automation/topic-areas/tia/tiaselection-tool.html).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

15

Wiring 3.4 Wiring of the module

3.4

Wiring of the module

Requirement

· The I/O modules are installed on the mounting rail. · The supply voltage of the station is switched off.

Procedure

1. Plug the two SIMATIC TOP connect connecting cables with the 40-pin IDC connector into X10 and X11.
Note when plugging: ­  The nob on the left edge of connector X11 ­  The nob on the right edge of connector X10

Figure 3-3 Connect the SIMATIC TOP connect 40-pin connecting cable to the module
2. Guide the SIMATIC TOP connect connecting cables down to the module. 3. Guide a cable tie around the module at the fixing points and connect the SIMATIC TOP
connect cables.

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

16

Equipment Manual, 07/2020, A5E48025116-AA

4. Tighten the cable tie for the strain relief.

Wiring 3.4 Wiring of the module

Figure 3-4 Fastening the cable tie for the strain relief
5. Plug the SIMATIC TOP connect connecting cables with the 50-pin IDC connector into the SIMATIC TOP connect connection module.
Additional information
You can find out how to wire the SIMATIC TOP connect connection module in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

17

Wiring 3.5 Fuse

3.5

Fuse

Miniature circuit breaker
The supply lines of groups are to be protected with a 4 A miniature circuit breaker with tripping characteristic C or B.
Below, you see the connection for "Sourcing" mode and for "Sinking" mode.

Figure 3-5 "Sourcing" mode

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

18

Equipment Manual, 07/2020, A5E48025116-AA

Wiring 3.5 Fuse

Figure 3-6 "Sinking" mode

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

19

Address space

4

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DI 64x24VDC SNK/SRC BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file. When you configure the module by means of the GSD file, the configurations are available under different short designations/module names. The following configurations are possible:

Table 4- 1 Configuration options

Configuration
1 x 64-channel without value status 8 x 8-channel without value status 1 x 64-channel with value status for moduleinternal Shared Input (MSI) with up to 4 submodules

Short designation/module name in the GSD file
DI 64x24VDC SNK/SRC BA DI 64x24VDC SNK/SRC BA S DI 64x24VDC SNK/SRC BA MSI

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog
of STEP 7 (TIA Portal) as of V16 and HSP 0319
X X (PROFINET IO only) X (PROFINET IO only)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X X (PROFINET IO only) X (PROFINET IO only)

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

20

Equipment Manual, 07/2020, A5E48025116-AA

Address space
Address space for configuration as 1 x 64-channel DI 64x24VDC SNK/SRC BA
The figure below shows the address space assignment for configuration as a 1 x 64-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB a" for example, stands for module start address input byte a.
Figure 4-1 Address space for configuration as 1 x 64-channel DI 64x24VDC SNK/SRC BA

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

21

Address space
Address space for configuration as 8 x 8-channel DI 64x24VDC SNK/SRC BA S
For the configuration as an 8 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 64-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 8 x 8-channel DI 64x24VDC SNK/SRC BA S
Address space for configuration as 1 x 64-channel DI 64x24VDC SNK/SRC BA MSI
The channels 0 to 63 of the module are copied in up to 4 submodules for the configuration as 1 x 64-channel module (module-internal shared input, MSI). Channels 0 to 63 are then available with identical input values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

22

Equipment Manual, 07/2020, A5E48025116-AA

Address space The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 64-channel DI 64x24VDC SNK/SRC BA MSI with value status

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

23

Address space The figure below shows the assignment of the address space with submodules 3 and 4.

Figure 4-4 Address space for configuration as 1 x 64-channel DI 64x24VDC SNK/SRC BA MSI with value status

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

24

Equipment Manual, 07/2020, A5E48025116-AA

Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V16 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

25

Diagnostic alarms

5

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the DI 64x24VDC SNK/SRC BA.

Figure 5-1 LED display of the module DI 64x24VDC SNK/SRC BA

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

26

Equipment Manual, 07/2020, A5E48025116-AA

Diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On
Flashes

Off Off Flashes

Module starts up Module is ready Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Replace the module.

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

27

Technical specifications

6

Technical specifications of DI 64x24VDC SNK/SRC BA
The following table shows the technical specifications as of 07/2020. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td).
Enter the article number or the short designation of the module on the website.

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode
· Prioritized startup Engineering with
· STEP 7 TIA Portal configurable/integrated from version
· STEP 7 configurable/integrated from version
· PROFIBUS from GSD version/GSD revision Operating mode
· DI
· Counter
· Oversampling
· MSI Power
Power available from the backplane bus Power loss
Power loss, typ. Digital inputs
Number of digital inputs Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3

6ES7521-1BP00-0AA0
DI 64x24VDC BA From FS01 V1.0.0 Yes
Yes; I&M0 to I&M3 No No
V16 with HSP 0319 / V17
V5.5 SP3 / -
V1.0 / V5.1
Yes No No Yes
0.6 W
4.8 W
64 No Yes Yes

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

28

Equipment Manual, 07/2020, A5E48025116-AA

Technical specifications

Article number Number of simultaneously controllable inputs
· Number of simultaneously controllable inputs
Input voltage · Rated value (DC) ­ 24 V DC · for signal "0"
· for signal "1" Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable ­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max. Encoder Connectable encoders
· 2-wire sensor ­ permissible quiescent current (2-wire sensor), max.
Interrupts/diagnostics/status information Diagnostics function
Alarms · Diagnostic alarm
· Hardware interrupt Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error

6ES7521-1BP00-0AA0 64; see additional description in the manual
24 V Yes -30 to +5 V +11 to +30V
2.7 mA
No 3 ms 4 ms 3 ms 4 ms
No
No
1 000 m 600 m
Yes 1.5 mA
No No No
No No No No

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

29

Technical specifications

Article number Diagnostics indication LED
· RUN LED

6ES7521-1BP00-0AA0 Yes; green LED

· ERROR LED

Yes; red LED

· MAINT LED

No

· Monitoring of the supply voltage (PWR-LED) Yes; via SIMATIC TOP connect connection module

· Channel status display

Yes; via SIMATIC TOP connect connection module

· for channel diagnostics

No

· for module diagnostics

No

Potential separation

Potential separation channels

· between the channels

No

· between the channels, in groups of · between the channels and backplane bus

16; 32 when using SIMATIC TOP connect connection module
Yes

Isolation Isolation tested with
Standards, approvals, certificates Suitable for safety functions
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

707 V DC (type test) No
-30 °C

· horizontal installation, max.

60 °C

· vertical installation, min.

-30 °C

· vertical installation, max.

40 °C

Altitude during operation relating to sea level · Installation altitude above sea level, max.

5 000 m

Dimensions Width Height Depth
Weights Weight, approx.
Other Note:

35 mm 147 mm 129 mm
250 g
Please order cable and connection modules separately

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

30

Equipment Manual, 07/2020, A5E48025116-AA

Technical specifications
Power reduction (derating) depending on the mounting position and ambient temperature (per module)
The following graphs show the number of channels that can be used simultaneously depending on the mounting position of the S7-1500/ET 200MP automation system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system Figure 6-1 Information on channels used simultaneously (per module)

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

31

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 64x24VDC SNK/SRC BA module

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

32

Equipment Manual, 07/2020, A5E48025116-AA

Dimensional drawing
Figure A-2 Dimension drawing of the DI 64x24VDC SNK/SRC BA module, side view with open front cover

Digital input module DI 64x24VDC SNK/SRC BA (6ES7521-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48025116-AA

33

SIMATIC
S7-1500/ET 200MP Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_a_la_rm_s____5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

12/2016
A5E35681478-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35681478-AC  12/2016 Subject to change

Copyright © Siemens AG 2015 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in these system manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change: Technical specifications have been updated: Module is M/P reading.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

4

Manual, 12/2016, A5E35681478-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

3.1

Wiring and block diagram ...................................................................................................... 13

4 Parameters/address space ................................................................................................................... 15

4.1

Parameters............................................................................................................................. 15

4.2

Declaration of parameters...................................................................................................... 16

4.3

Address space ....................................................................................................................... 17

5 Interrupts/diagnostic alarms .................................................................................................................. 21

5.1

Status and error displays ....................................................................................................... 21

5.2

Interrupts ................................................................................................................................ 23

5.3

Diagnostics alarms................................................................................................................. 25

6 Technical specifications ........................................................................................................................ 26

A Dimensional drawing............................................................................................................................. 30

A.1

Dimensional drawing.............................................................................................................. 30

B Parameter data records ........................................................................................................................ 32

B.1

Parameter assignment and structure of the parameter data records .................................... 32

B.2

Structure of the parameter data records ................................................................................ 33

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

6

Manual, 12/2016, A5E35681478-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

8

Manual, 12/2016, A5E35681478-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

10

Manual, 12/2016, A5E35681478-AC

Product overview

2.1

Properties

Part number:

6ES7521-7EH00-0AB0

View of the module

2

Properties

Figure 2-1 View of the module DI 16x24...125VUC HF
The module has the following technical properties:  16 digital inputs; electrically isolated in groups of 1  Rated input voltage 24 V UC to 125 V UC  Configurable diagnostics (per channel)  Configurable hardware interrupt (per channel)  Programmable input delay (only with DC)  Suitable for switches and 2-/3-/4-wire proximity switches

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module internal shared input (MSI)
Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V13 SP1
with HSP 0142

GSD file in STEP 7 (TIA Portal) as of V12 or STEP 7 as of V5.5 SP3

X

--- / X

X

X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front cover

Other components
The following component must be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

12

Manual, 12/2016, A5E35681478-AC

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and outlines various wiring options.
You can find information on wiring the front connector, establishing a cable shield, etc. in the system manual S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

Note Do not insert the potential jumpers included with the front connector!

Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte b).

 Backplane bus interface

CHx RUN ERROR

Channel or channel status LED (green/red) Status display LED (green) Error display LED (red)

Figure 3-1 Block diagram and terminal assignment

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

13

Wiring 3.1 Wiring and block diagram
Resistor circuitry of the encoders
To detect a wire break, it is necessary that enough quiescent current is flowing even when the encoder contacts are open. Connect a resistor to the encoder contacts for this reason, see figure below.

Rated input voltage: 24 VUC 48 VUC 125 VUC

Resistance: 16 k ... 21 k with 1.0 W 37 k ... 53 k with 0.5 W 101 k ... 156 k with 0.25 W

Figure 3-2 Resistor circuitry of the encoders

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

14

Manual, 12/2016, A5E35681478-AC

Parameters/address space

4

4.1

Parameters

DI 16x24...125VUC HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter assignment in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 32).

Table 4- 1 Configurable parameters and their defaults

Parameter
Diagnostics · Wire break
Input delay
Hardware interrupt · Rising edge · Falling edge · Rising and falling
edge

Range of values

Default setting

Parameter reassignment in RUN

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the hardware catalog as of STEP 7, V13 SP1 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes/No

No

Yes

0.05 ms, 0.1 ms,

· 20 ms

Yes

0.4 ms, 1.6 ms, 3.2 ms, 12.8 ms, 20 ms

·

Fixed 20 ms for AC

Channel Channel

Channel group (CH0 to CH7, CH8 to CH15) Channel group (CH0 to CH7, CH8 to CH15)

Yes/No Yes/No Yes/No

No

Yes

Channel

Channel

No

Yes

Channel

Channel

No

Yes

Channel

Channel

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

15

Parameters/address space 4.2 Declaration of parameters

Note Input delay for AS input voltages
If you are operating channels of the module with an AC input voltage, you must set the input delay for these channels at 20 ms.
If you set a different input delay, the input signal might be incorrectly altered and the wrong value read.

4.2

Declaration of parameters

Wire break

Enabling diagnostics if the line to the encoder is interrupted.

Input delay

This parameter can be used to suppress signal disruptions. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.

Hardware interrupt
Specifies whether or not a hardware interrupt is disabled or with which of the following events a hardware interrupt is generated.  Rising edge  Falling edge  Rising and falling edge

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

16

Manual, 12/2016, A5E35681478-AC

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

The letters "a" and "b" are printed on the module. "IB a" for example, stands for module start address input byte a.

Configuration options of DI 16x24...125VUC HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration

Short designation/ module name in the
GSD file

1 x 16-channel without value status
1 x 16-channel with value status
2 x 8-channel without value status

DI 16x24...125VUC HF
DI 16x24...125VUC HF QI DI 16x24...125VUC HF S

2 x 8-channel with value status

DI 16x24...125VUC HF S QI

1 x 16-channel with value status for module-internal shared input with up to 4 submodules

DI 16x24...125VUC HF MSI

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7
(TIA Portal) V13 SP1 with HSP 0142
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

X X (PROFINET IO only) X (PROFINET IO only) X (PROFINET IO only)

X X (PROFINET IO only) X (PROFINET IO only) X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  DI 16x24...125VUC HF QI,  DI 16x24...125VUC HF S QI  DI 16x24...125VUC HF MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

17

Parameters/address space 4.3 Address space
Address space for configuration as 16-channel DI 16x24...125VUC HF QI
The figure below shows the assignment of the address space for the configuration as a 16-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.

Figure 4-1 Address space for configuration as 16-channel DI 16x24...125VUC HF QI with value status
Address space for configuration as 2 x 8-channel DI 16x24...125VUC HF S QI
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 8-channel DI 16x24...125VUC HF S QI

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

18

Manual, 12/2016, A5E35681478-AC

Parameters/address space 4.3 Address space
Address space for configuration as 1 x 16-channel DI 16x24...125VUC HF MSI
The channels 0 to 15 of the module are copied in up to four submodules with configuration 1 x 16-channel module (Module-internal shared input, MSI). Channels 0 to 15 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of IO controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule involved.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).
The following figure shows the assignment of the address space with submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DI 16x24...125VUC HF MSI

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

19

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DI 16x24...125VUC HF MSI
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

20

Manual, 12/2016, A5E35681478-AC

Interrupts/diagnostic alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of module.

Figure 5-1 LED displays of the module DI 16x24...125VUC HF

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

21

Interrupts/diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is ready.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

LED CHx

Table 5- 2 CHx status display

LED CHx Off On On

Meaning 0 = Status of the input signal.
1 = Status of the input signal.
Diagnostics: Wire break or hardware interrupt lost

Remedy ---
---
Check the wiring. When using simple switches, disable diagnostics or connect a resistor to the encoder contacts.

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

22

Manual, 12/2016, A5E35681478-AC

Interrupts/diagnostic alarms 5.2 Interrupts

5.2

Interrupts

Digital input module DI 16x24...125VUC HF supports diagnostic and hardware interrupts.

You can find detailed information on the error event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostics interrupt
The module generates a diagnostic interrupt at the following events:  Wire break  Parameter assignment error  Hardware interrupt lost

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Rising edge
 Falling edge
 Rising and falling edge
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment to the bits of double word 8 in local data.

Figure 5-2 Start information of the organization block

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

23

Interrupts/diagnostic alarms 5.2 Interrupts

Structure of the additional interrupt information

Table 5- 3 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#0F

It follows the error event that triggered the hardware interrupt.

Event

B#16#01

B#16#02

Comment
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (chan- 1 nel 0 to channel 15 of the module)

Rising edge

1

Falling edge

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

24

Manual, 12/2016, A5E35681478-AC

Interrupts/diagnostic alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code
6H

Parameter as-

10H

signment error

Hardware interrupt 16H lost

Meaning

Corrective measures

Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics

· Connect encoder contacts with resistor: ­ 16 k ... 21 k with 1.0 W at 24 VUC ­ 37 k ... 53 k with 0.5 W at 48 VUC ­ 101 k ... 156 k with 0.25 W at 125 VUC

· The module cannot evaluate parameters for the channel

Correct the parameter assignment

· Incorrect parameter assignment

The module cannot trigger an interrupt Change interrupt processing in the CPU and edit because the previous interrupt was the module parameters if necessary (the error pernot acknowledged; possibly a configu- sists until the module is assigned new parameters). ration error

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

25

Technical specifications

6

Technical specifications of the DI 16x24...125VUC HF

Order number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DI
· Counter
· Oversampling
· MSI
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital inputs Number of digital inputs Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3

6ES7521-7EH00-0AB0
DI 16x24 ... 125VUC HF FS01 V1.0.0 Yes
Yes; I&M0 to I&M3
V13 SP1 / -
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes No No Yes
1.2 W
2.2 W; At 24 V DC; 6.0 W at 125 V AC
16 Yes Yes Yes; at 24 V DC

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

26

Manual, 12/2016, A5E35681478-AC

Technical specifications

Order number Input voltage
· Type of input voltage
· Rated value (DC)
· Rated value (AC)
· for signal "0"
· for signal "1" Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable
­ at "0" to "1", min. ­ at "0" to "1", max. ­ at "1" to "0", min. ­ at "1" to "0", max. for interrupt inputs ­ parameterizable for counter/technological functions ­ parameterizable Cable length · shielded, max.
· unshielded, max. Encoder Connectable encoders
· 2-wire sensor ­ permissible quiescent current (2-wire sensor), max.
Isochronous mode Isochronous operation (application synchronized up to terminal)
Interrupts/diagnostics/status information Diagnostics function
Alarms · Diagnostic alarm
· Hardware interrupt

6ES7521-7EH00-0AB0 AC/DC 24 V; 48 V, 125 V 24 V; 48 V, 125 V (50 - 60 Hz) -5 ... +5 V +11 V DC to +146 V DC
3 mA; at 24 V DC
Yes; 0.05 / 0.1 / 0.4 / 1.6 / 3.2 / 12.8 / 20 ms parameterizable with DC, 20 ms fixed with AC 0.05 ms 20 ms 0.05 ms 20 ms
Yes
No
1 000 m 600 m
Yes 1.5 mA
No
Yes Yes Yes

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

27

Technical specifications

Order number Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit Diagnostics indication LED
· RUN LED
· ERROR LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus Permissible potential difference
between different circuits Isolation
Isolation tested with Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Decentralized operation
Prioritized startup Dimensions
Width Height Depth Weights Weight, approx.

6ES7521-7EH00-0AB0
No Yes; To I < 550 µA No
Yes; Green LED Yes; Red LED No
Yes; Green LED Yes; Red LED Yes; Red LED
Yes 1 Yes
146 V DC/132 V AC
2 000 V DC
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
240 g

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

28

Manual, 12/2016, A5E35681478-AC

Technical specifications
Power reduction (derating) in relation to the mounting position and ambient temperature (per module)
The following graphs show the number of channels (CHx) that can be used simultaneously in relation to the mounting position of the S7-1500/ET 200MP automation system and the ambient temperature.

Figure 6-1 Information on channels used simultaneously (per module):

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

29

Dimensional drawing

A

A.1

Dimensional drawing
The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DI 16x24...125VUC HF module

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

30

Manual, 12/2016, A5E35681478-AC

Dimensional drawing A.1 Dimensional drawing
Figure A-2 Dimension drawing of the DI 16x24...125VUC HF module, side view with open front cover

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

31

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the input delay values of selected channels can be edited without having an effect on the other channels).

Parameter assignment in RUN
The "WRREC" instruction is used to transfer the parameters to the module using data records 0 to 15. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the device manual for the PROFIBUS DP interface module in the Internet.

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

32

Manual, 12/2016, A5E35681478-AC

Parameter data records B.2 Structure of the parameter data records

B.2

Structure of the parameter data records

Assignment of data record and channel
For the configuration with 1 x 16-channel, the parameters are located in data records 0 to 15 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 14 for channel 14  Data record 15 for channel 15 For the configuration as a 4 x 8-channel module, the module has 4 submodules with eight channels each. The parameters for the channels are located in data records 0 to 7 and are assigned as follows:  Data records 0 to 7 for channels 0 to 7 (submodule 1)  Data records 0 to 7 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

Manual, 12/2016, A5E35681478-AC

33

Parameter data records B.2 Structure of the parameter data records
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 15. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 3

Digital input module DI 16x24...125VUC HF (6ES7521-7EH00-0AB0)

34

Manual, 12/2016, A5E35681478-AC

SIMATIC
S7-1500/ET 200MP DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_a_la_rm_s_________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E03485975-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485975-AD  09/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

4

Manual, 09/2016, A5E03485975-AD

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Address space ...................................................................................................................................... 14

4.1

Address space ....................................................................................................................... 14

5 Diagnostic alarms ................................................................................................................................. 18

5.1

Status and error displays ....................................................................................................... 18

6 Technical specifications ........................................................................................................................ 20

A Dimensional drawing............................................................................................................................. 23

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

6

Manual, 09/2016, A5E03485975-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

8

Manual, 09/2016, A5E03485975-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

10

Manual, 09/2016, A5E03485975-AD

Product overview

2.1

Properties

Article number
6ES7521-1FH00-0AA0

View of the module

2

Properties

Figure 2-1 View of the DI 16x230VAC BA module
The module has the following technical properties:  16 digital inputs; electrically isolated in groups of 4  Rated input voltage 120/230 V AC  Suitable for switches and 2-/3-/4-wire AC proximity switches (alternating voltage)

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Module-internal Shared Input (MSI)

V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher

Configurable submodules / submodules for Shared Device
Configurable after interface module IM 155-5 DP ST

V2.0.0 or higher V2.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 or higher

X

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

12

Manual, 09/2016, A5E03485975-AD

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note Do not insert the potential jumpers included with the front connector!
Wiring and block diagram
The figure below shows you how to wire the module and the assignment of the channels to the addresses (input byte a to input byte b).

 Backplane bus interface

CHx

xN Supply voltage AC

RUN

ERROR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

13

Address space

4

4.1

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

The letters "a to d" are printed on the module - "EB a", for example, stands for module start address input byte a.

Configuration options of DI 16x230VAC BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 1 Configuration options

Configuration
1 x 16-channel without value status 2 x 8-channel without value status 1 x 16-channel with value status for module-internal shared input with up to 4 submodules

Short designation/ module name in the
GSD file
DI 16x230VAC BA
DI 16x230VAC BA S
DI 16x230VAC BA MSI

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher

V12 or higher

X

V13 Update 3 or higher (PROFINET IO only)
V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)
X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the DI 16x230VAC BA MSI module.
An additional bit is assigned to each channel for the value status. In contrast to the modules with diagnostics capability, the module only shows information regarding the parameter assignment of the first submodule (basic submodule) in the value status.
The module does not supply a value status for the read-in digital value.

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

14

Manual, 09/2016, A5E03485975-AD

Address space 4.1 Address space
Address space for configuration as DI 16x230VAC BA
The following figure shows the address space allocation for the configuration as 16-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.
Figure 4-1 Address space for configuration as 16-channel DI 16x230VAC BA
Address space for configuration as 2 x 8-channel DI 16x230VAC BA S
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 8-channel DI 16x24VDC SRC BA S
Address space for configuration as 1 x 16-channel DI 16x230VAC BA MSI
The channels 0 to 15 of the module are copied in up to four submodules with configuration 1 x 16-channel module (Module-internal shared input, MSI). Channels 0 to 15 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

15

Address space 4.1 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the basic submodule parameters have not yet been assigned (not ready). The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 16-channel DI 16x230VAC BA MSI

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

16

Manual, 09/2016, A5E03485975-AD

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DI 16x230VAC BA MSI
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

17

Diagnostic alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the DI 16x230VAC BA.

5

Figure 5-1 LED displays of the module DI 16x230VAC BA

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

18

Manual, 09/2016, A5E03485975-AD

Diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On
Flashes

Off Off Flashes

Module starts up Module is ready Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the input signal
1 = Status of the input signal

Remedy ---
---

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

19

Technical specifications

6

Technical specifications of the DI 16x230VAC BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7521-1FH00-0AA0
DI 16x230VAC BA FS01 V2.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V12 / V12

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DI

Yes

Counters

No

MSI

Yes

Power

Power consumption from the backplane bus

1 W

Power loss

Power loss, typ.

4.9 W

Digital inputs Number of inputs Configurable digital inputs Sinking/sourcing input Input characteristic curve acc. to IEC 61131, type 1 Input voltage Type of input voltage Rated value (AC) for signal "0" for signal "1" Input current for signal "1", typ.

16 No Sinking input Yes
AC 230 V; 120/230 V AC, 50 / 60 Hz 0 V AC to 40 V AC 79 V AC to 264 V AC
11 mA; at 230 V AC and 5.5 mA at 120 V AC

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

20

Manual, 09/2016, A5E03485975-AD

Technical specifications

Input delay (for rated value of input voltage)

For standard inputs

· Configurable

No

6ES7521-1FH00-0AA0

· with "0" to "1", max.

25 ms

· with "1" to "0", max.

25 ms

For interrupt inputs

· Configurable

No

for technological functions

· Configurable

No

Cable length shielded, max. unshielded, max. Encoders Connectable encoders 2-wire sensor
· Permitted quiescent current (2-wire sensor), max.

1000 m 600 m
Yes 2 mA

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Interrupts

Diagnostics interrupt

No

Hardware interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

No

Channel status display

Yes; green LED

For channel diagnostics

No

For module diagnostics

Yes; red LED

Electrical isolation

Electrical isolation of channels

Between the channels

No

Between the channels, in groups of

4

Between the channels and backplane bus

Yes

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

21

Technical specifications
Permitted potential difference Between different circuits
Isolation Isolation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7521-1FH00-0AA0
250 V AC between the channels and the backplane bus; 500 V AC between the channels
3100 V DC
0 °C 60  0 °C 40 °C
Yes
35 mm 147 mm 129 mm
300 g

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

22

Manual, 09/2016, A5E03485975-AD

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 16x24VAC BA module

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

Manual, 09/2016, A5E03485975-AD

23

Dimensional drawing
Figure A-2 Dimensional drawing of the DI 16x24VAC BA module, side view with open front cover

DI 16x230VAC BA Digital Input Module (6ES7521-1FH00-0AA0)

24

Manual, 09/2016, A5E03485975-AD

SIMATIC
S7-1500/ET 200MP Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_s_al_ar_m_s ________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E32364205-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32364205-AC  11/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

4

Manual, 09/2016, A5E32364205-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Address space ...................................................................................................................................... 15

4.1

Address space ....................................................................................................................... 15

5 Diagnostics alarms................................................................................................................................ 20

5.1

Status and error displays ....................................................................................................... 20

6 Technical specifications ........................................................................................................................ 22

A Dimensional drawing............................................................................................................................. 26

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

6

Manual, 09/2016, A5E32364205-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

8

Manual, 09/2016, A5E32364205-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

10

Manual, 09/2016, A5E32364205-AC

Product overview

2.1

Properties

Article number
6ES7522-1BL10-0AA0

View of the module

2

Figure 2-1 View of the DQ 32x24VDC/0.5A BA module

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

11

Product overview 2.1 Properties

Properties

The digital module has the following technical properties:  32 DO; electrically isolated in groups of 8  Rated output voltage 24 V DC  Rated output current 0.5 A per channel  Suitable for solenoid valves, DC contactors, and indicator lights  Hardware compatible with digital output module DQ 16x24VDC/0.5A BA
(6ES7522-1BH10-0AA0) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Module-internal Shared Output (MSO)

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher

Configurable submodules / submodules for Shared Device

V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
V13 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher
--- / X

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:
 Front connector (push-in terminals) including cable tie
 Labeling strips
 U connector
 Universal front door
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

12

Manual, 09/2016, A5E32364205-AC

Wiring

3

This section contains the block diagram of the module and outlines various wiring options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

13

Wiring
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels to the addresses (output byte a to output byte d).



Backplane bus interface

xL+

Supply voltage 24 V DC

xM

Ground

CHx RUN ERROR PWR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Note
Upon activation of the 24 V supply voltage, there is a "1" signal at the module outputs for approx. 50 s.

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

14

Manual, 09/2016, A5E32364205-AC

Address space

4

4.1

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 32x24VDC/0.5A BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 1 Configuration options

Configuration

Short designation/module name in the GSD file

1 x 32-channel without value status 4 x 8-channel without value status

DQ 32x24VDC/0.5A BA DQ 32x24VDC/0.5A BA S

1 x 32-channel with value status for module- DQ 32x24VDC/0.5A BA MSO internal Shared Output with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

15

Address space 4.1 Address space
Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A BA
The figure below shows the address space assignment for configuration as a 1 x 32-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module- "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A BA with value status
Address space for configuration as 4 x 8-channel DQ 32x24VDC/0.5A BA S
For the configuration as a 4 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 32-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 8-channel DQ 32x24VDC/0.5A BA S

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

16

Manual, 09/2016, A5E32364205-AC

Address space 4.1 Address space
Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A BA MSO
For the configuration as a 1 x 32-channel module (module-internal Shared Output, MSO), channels 0 to 31 of the module are copied to multiple submodules. Channels 0 to 31 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 31.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 31. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode.  The basic submodule is not yet configured.

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

17

Address space 4.1 Address space
The figure below shows the assignment of the address space for submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A BA MSO with value status

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

18

Manual, 09/2016, A5E32364205-AC

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A BA MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

19

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows you the LED displays (status and error displays) of the DQ 32x24VDC/0.5A BA.

Figure 5-1 LED displays of the module DQ 32x24VDC/0.5A BA

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

20

Manual, 09/2016, A5E32364205-AC

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

LED PWR1/PWR2/PWR3/PWR4

Table 5- 2 PWR1/PWR2/PWR3/PWR4 status display

LED PWRx Off On

Meaning Supply voltage L+ too low or missing.
Supply voltage L+ is present and OK.

Remedy Check the L+ supply voltage.
---

LED CHx

Table 5- 3 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal.
1 = Status of the output signal.

Remedy ---
---

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

21

Technical specifications

6

Technical specifications of the DQ 32x24VDC/0.5 A BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7522-1BL10-0AA0
DQ 32x24VDC/0,5A BA FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSO

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection
Input current

24 V 20.4 V 28.8 V Yes; through internal protection with 7 A per group

Current consumption, max.

60 mA

Output voltage

Rated value (DC)

24 V

Power Power consumption from the backplane bus Power loss

1.15 W

Power loss, typ.

3.8 W

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

22

Manual, 09/2016, A5E32364205-AC

Technical specifications

Digital outputs Number of outputs Sourcing output Short-circuit protection · Response threshold, typ.

6ES7522-1BL10-0AA0
32 Yes Yes 1 A

Limitation of inductive shutdown voltage to Control of a digital input Switching capacity of outputs With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage For signal "1", min. Output current For signal "1" rated value For signal "1" permitted range, max. For signal "0" residual current, max. Output delay with resistive load "0" to "1", max. "1" to "0", max. Parallel connection of two outputs For logic operations For increased performance For redundant control of a load Switching frequency With resistive load, max. With inductive load, max. With lamp load, max. Total current of outputs Current per channel, max. Current per group, max. Current per module, max. Cable length shielded, max. unshielded, max. Isochronous mode

L+ (-53 V) Yes
0.5 A 5 W
48  12 k
L+ (-0.8 V)
0.5 A 0.5 A 0.5 mA
100 µs 500 µs
Yes No Yes
100 Hz 0.5 Hz; according to IEC 60947-5-1, DC-13 10 Hz
0.5 A; see additional description in the manual 4 A; see additional description in the manual 16 A; see additional description in the manual
1000 m 600 m

Isochronous mode (application synchronized up to No terminal)

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

23

Technical specifications

Interrupts/diagnostics/status information Diagnostics function Substitute values can be applied Interrupts Diagnostic interrupt Diagnostics alarms Monitoring of supply voltage Wire break Short-circuit Group error Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Insulation Insulation tested with Distributed operation Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7522-1BL10-0AA0
No No
No
No No No No
Yes; green LED Yes; red LED Yes; green LED Yes; green LED No No
No 8 Yes
707 V DC (type test)
Yes
25 mm 147 mm 129 mm
280 g
Delivery includes 40-pin push-in front connector

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

24

Manual, 09/2016, A5E32364205-AC

Technical specifications Power reduction (derating) to aggregate current of outputs (per group)
The following graphs show the loading capacity of the outputs in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per group)

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

25

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 32x24VDC/0.5A BA module

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

26

Manual, 09/2016, A5E32364205-AC

Dimensional drawing
Figure A-2 Dimensional drawing of the DQ 32x24VDC/0.5A BA module, side view with open front cover

Digital output module DQ 32x24VDC/0.5A BA (6ES7522-1BL10-0AA0)

Manual, 09/2016, A5E32364205-AC

27

SIMATIC
S7-1500/ET 200MP Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

06/2018
A5E35683508-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35683508-AC  08/2018 Subject to change

Copyright © Siemens AG 2015 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:  New licensing conditions and copyright information of the Open Source Software  The module features a switching cycle counter as of firmware version V1.1.0.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

4

Manual, 06/2018, A5E35683508-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................13 Switching cycle counter ..........................................................................................................13

3 Wiring ................................................................................................................................................... 15

4 Parameters/address space ................................................................................................................... 17

4.1

Parameters .............................................................................................................................17

4.2

Description of parameters.......................................................................................................19

4.3

Address space ........................................................................................................................20

5 Interrupts/diagnostics alarms................................................................................................................. 26

5.1

Status and error displays ........................................................................................................26

5.2

Interrupts .................................................................................................................................28

5.3

Diagnostics alarms..................................................................................................................29

6 Technical specifications ........................................................................................................................ 30

A Dimensional drawing............................................................................................................................. 35

A.1

Dimensional drawing...............................................................................................................35

B Parameter data records......................................................................................................................... 37

B.1

Parameter assignment............................................................................................................37

B.2

Structure of parameter data sets DS 64 - 95 ..........................................................................39

B.3

Structure of data set DS 129 ..................................................................................................40

B.4

Structure of data set DS 130 ..................................................................................................42

B.5

Structure of data set DS 131 ..................................................................................................44

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

6

Manual, 06/2018, A5E35683508-AC

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

8

Manual, 06/2018, A5E35683508-AC

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

9

Product overview

2.1

Properties

Article number
6ES7522-1BL01-0AB0

View of the module

2

Figure 2-1 View of the DQ 32x24VDC/0.5A HF module

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

10

Manual, 06/2018, A5E35683508-AC

Product overview 2.1 Properties

Properties

The module has the following technical properties:  32 DO; electrically isolated in groups of 8  Rated output voltage 24 V DC  Rated output current 0.5 A per channel  Configurable substitute values (per channel)  Configurable diagnostics (per channel)  Suitable for solenoid valves, DC contactors, and indicator lights  Switching cycle counter for connected actuators, e.g. solenoid valves  Hardware compatible with digital output module:
­ DQ 16x24VDC/0.5A ST (6ES7522-1BH00-0AB0) ­ DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0) ­ DQ 32x24VDC/0.5A ST (6ES7522-1BL00-0AB0) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device Switching cycle counter

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher
V1.1.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V13, SP1
with HSP 0143

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

X

--- / X

X

X

X

X

X

---

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

as of V15.0 with HSP0247

X

· PROFINET IO only

(PROFINET IO only)

· Central operation with a S7-1500 CPU is supported

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

11

Product overview 2.1 Properties

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01
FS02

Firmware version
V1.0.0 V1.1.0

Note
Upgrade to V1.1.0 not possible Upgrade and downgrade possible between V1.1.0 and higher

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front cover

Other components
The following component must be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

12

Manual, 06/2018, A5E35683508-AC

2.2

Functions

Product overview 2.2 Functions

2.2.1

Switching cycle counter
The function records the number of switching cycles of the output and thus the switching cycles of a connected actuator, such as those of solenoid valves. When the specified number of switching cycles is reached, the "Limit value warning" maintenance interrupt is triggered, provided it is configured and enabled. When replacing the actuator, you can reset the switching cycle counter from the user program.
When replacing modules, you have the option of pre-initializing the switching cycle counter from the user program.

Typical areas of application:
 Recording the number of switching cycles of the connected devices, e.g. solenoid valves or load contactors
 Predictive maintenance

Advantages

 You configure this function instead of programming.
 "Monitoring" of each individual channel is possible. You can select which outputs are "monitored".
 You can adapt the plant configuration flexibly and individually.
 Easy to service and maintain. You can enable and disable the switching cycle counter via the user program.
 Increase in plant availability. You can schedule actuator replacement in advance for the next maintenance cycle.

Requirement

Firmware version as of V1.1.0 of the module.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

13

Product overview 2.2 Functions

Configuration

You configure the switching cycle counter with the following parameters:  Switching cycle counter enabled/disabled  Trigger maintenance interrupt when the limit is reached  Set limit for maintenance interrupt

How it works

The module counts the switching cycles by evaluating the rising edges of an output signal. If the module detects a rising edge, the switching cycle counter (24-bit) for the respective channel is incremented. After an overflow of the switching cycle counter, it starts again with 0.
If you activate the "Maintenance switching cycles" parameter, the "Limit warning" of the maintenance interrupt is triggered when the limit is exceeded. Alternatively, activate the maintenance interrupt in the parameter data sets starting at DS 64.
The current counter states are stored on the module cyclically (approx. every 20 seconds) and retentively. The switching cycle counters are reset each time the module is restarted (power off/on).
You activate the function with the "Switching cycle counter" parameter or in the parameter data sets starting at DS 64.
You can read the current counter states with data set DS 129. Data set DS 129 contains the counter status for each channel in UDINT format.
You can read the limits for each channel in UDINT format with data set DS 130.
Data set DS 131 enables you to overwrite the current counter value for each switching cycle counter.
You can set a limit for each switching cycle counter with the "Switching cycle limit" parameter or with data set DS 131.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

14

Manual, 06/2018, A5E35683508-AC

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, establishing a cable shield, etc. in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels to the addresses (output byte a to output byte d).

 Backplane bus interface
xL+ Supply voltage 24 V DC xM Ground CHx Channel or channel status LED
(green/red)

MAINT RUN ERROR PWR

Figure 3-1 Block diagram and terminal assignment

LED maintenance display (yellow) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

15

Wiring
Note When the 24 V supply voltage is switched on at each channel, there is a "1" signal at the module outputs for approx. 50 s.
Tip: Using the potential jumpers
Use the potential jumpers supplied with the front connector if you want to connect the four load groups to the same potential (non-isolated). This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between the following terminals:
­ 9 and 29 (L+) ­ 10 and 30 (M) ­ 19 and 39 (L+) ­ 20 and 40 (M). 3. Insert the jumpers between terminals 29 and 39, as well as 30 and 40. 4. Use the terminals 9 and 10 to loop the potential to the next module.

Figure 3-2 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

16

Manual, 06/2018, A5E35683508-AC

Parameters/address space

4

4.1

Parameters

DQ 32x24VDC/0.5A HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter assignment in RUN) and data sets; see section Parameter assignment (Page 37)

Table 4- 1 Configurable parameters and their defaults

Parameters
Diagnostics · No supply voltage L+
· Short circuit to ground
· Maintenance switching cycles
· Switching cycle counter

Range of values

Default setting

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7, V13 SP1 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes/No

No

Yes

Channel*

Channel group

(CH0 to CH7, CH8 to CH15,

CH16 to CH23, CH24 to CH31)

Yes/No

No

Yes

Channel*

Channel group

(CH0 to CH7, CH8 to CH15,

CH16 to CH23, CH24 to CH31)

Yes/No

No

Yes

Channel

---

(as of V15.0 with HSP0247)

Yes/No

No

Yes

Channel

---

(as of V15.0 with HSP0247)

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

17

Parameters/address space 4.1 Parameters

Parameters
· Wire break Reaction to CPU STOP Switching cycle limits Switching cycle limit

Range of values Default setting

Yes/No

No

· Turn off

Turn off

· Keep last value

· Output substitute value 1

Parameter assignment in RUN
Yes
Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7, V13 SP1 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel*

Channel group

(CH0 to CH7, CH8 to CH15,

CH16 to CH23, CH24 to CH31)

Channel

Channel

0 ... 16777214 0

Yes

Channel

---

(as of V15.0 with HSP0247)

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

18

Manual, 06/2018, A5E35683508-AC

Parameters/address space 4.2 Description of parameters

4.2

Description of parameters

No supply voltage
Enabling of the diagnostics, for lacking or insufficient supply voltage L+.

Short circuit to ground
Enabling of the diagnostics if a short-circuit of the actuator supply (CHx) to ground occurs.

Maintenance switching cycles
You use this parameter to enable the maintenance interrupt "Limit value warning" when the switching cycle limit is violated.
You configure the limit with the parameter "Switching cycle limit" for each channel CHx.

Switching cycle counter
Channel-by-channel enable of switching cycle counter (Page 13).

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Reaction to CPU STOP
Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.

Switching cycle limit
Defines the limit channel-by-channel. If this value is exceeded, the "Limit value warning" maintenance interrupt is signaled.
Enter an integer value between 0 and 16777214. Refer to the data sheet of the connected actuator. We recommend that you do not enter this maximum value, but instead set it to 80% or 90%, for example, so that you have enough time to replace the actuator as a preventive measure.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

19

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of DQ 32x24VDC/0.5A HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options Configuration

Abbreviation/module name in the GSD file

1 x 32-channel without value status 1 x 32-channel with value status
4 x 8-channel without value status
4 x 8-channel with value status
1 x 32-channel with value status for module-internal Shared Output with up to 4 submodules

DQ 32x24VDC/0.5A HF
DQ 32x24VDC/0.5A HF QI
DQ 32x24VDC/0.5A HF S
DQ 32x24VDC/0.5A HF S QI
DQ 32x24VDC/0.5A HF MSO

Configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V13 SP1 with HSP 0143
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3
or higher
X

X

X

X (PROFINET IO only)
X (PROFINET IO only)
X (PROFINET IO only)

X (PROFINET IO only)
X (PROFINET IO only)
X (PROFINET IO only)

Note Substitute value behavior in shared device operation with the following configuration (V1.0 only): · 4 x 8-channel with / without value status
If the system is in shared device mode and one of the IO controllers involved goes into STOP or fails due to a communication failure, for example, all submodules of the output module perform the configured substitute value reaction (e.g. shutdown).
This means that even when only one IO controller fails, the other IO controllers associated with the shared device no longer control the assigned submodule of the output module.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

20

Manual, 06/2018, A5E35683508-AC

Parameters/address space 4.3 Address space
Value status (Quality Information, QI)
The value status is always activated for the following module names:  DQ 32x24VDC/0.5A HF QI  DQ 32x24VDC/0.5A HF S QI  DQ 32x24VDC/0.5A HF MSO An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).
Note The maintenance interrupt "Limit value warning" has no effect on the value status.
Address space for configuration as 32-channel DQ 32x24VDC/0.5A HF
The following figure shows the assignment of the address space for the configuration as a 32-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed onto the module. "QB a" stands for module start address output byte a.

Figure 4-1 Address space for configuration as 32-channel DQ 32x24VDC/0.5A HF with value status

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

21

Parameters/address space 4.3 Address space
Address space for configuration as 4 x 8-channel DQ 32x24VDC/0.5A HF S QI
For the configuration as a 4 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device.
The number of IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Contrary to the 1 x 32-channel module configuration, each of the four submodules has a freely assignable start address. The addresses for the respective value status of a submodule can also be assigned by the user.

Figure 4-2 Address space for configuration as 4 x 8-channel DQ 32x24VDC/0.5A HF S QI with value status

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

22

Manual, 06/2018, A5E35683508-AC

Parameters/address space 4.3 Address space
Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A HF MSO
For the configuration as a 1 x 32-channel module (module-internal Shared Output, MSO), channels 0 to 31 of the module are copied to multiple submodules. Channels 0 to 31 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 31.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 31. The number of IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

23

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space for submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A HF S MSO with value status

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

24

Manual, 06/2018, A5E35683508-AC

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 32-channel DQ 32x24VDC/0.5A HF S MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

25

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of module.

Figure 5-1 LED displays of the DQ 32x24VDC/0.5A HF module

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

26

Manual, 06/2018, A5E35683508-AC

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays. Remedial measures for diagnostic reports can be found in section Diagnostics alarms (Page 29).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., short-circuit to ground). Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., check the cables). Replace the module.

LED MAINT

Table 5- 2 MAINT status display

LED MAINT Off On

Meaning

0 = No maintenance interrupt is pending.

---

1 = The maintenance interrupt "Limit value

---

warning" is pending.

Solution

LED PWR1/PWR2/PWR3/PWR4

Table 5- 3 PWR1/PWR2/PWR3/PWR4 status display

LED PWRx Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Solution Check the L+ supply voltage.
---

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

27

Interrupts/diagnostics alarms 5.2 Interrupts

LED CHx

Table 5- 4 CHx status display

LED CHx Off On On

Meaning 0 = Status of the output signal
1 = Status of the output signal
· Wire break or short-circuit to ground · Supply voltage L+ missing or too low

Solution ---
---
· Correct the process wiring · Check the supply voltage.

5.2

Interrupts

The digital output module DQ 32x24VDC/0.5A HF supports diagnostic interrupts and maintenance interrupts

For detailed information on the error event, refer to the diagnostic interrupt organization block with the "RALRM" instruction (read additional interrupt information) and to the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  No supply voltage L+  Short circuit to ground  Wire break  Parameter assignment error

Maintenance interrupt
The module generates a maintenance interrupt at the following events:  Limit value warning

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

28

Manual, 06/2018, A5E35683508-AC

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. You can read the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short circuit to ground
Wire break*

Error code 1H
6H

Parameter assign- 10H ment error
Load voltage missing 11H Limit value warning 17H

Meaning Short-circuit or overload at the channel Actuator circuit impedance too high.
Wire break between the module and actuator Channel not connected (open)

Corrective measures Check the wiring/actuator. Check the ambient temperature. Use different actuator type or wire differently, e.g. use lines with bigger cross-section Connect the cable
· Disable diagnostics

· Connect an actuator to a resistor in the load resistance range

· The module cannot evaluate parameters for the channel

Correct the parameter assignment

· Incorrect parameter assignment

Supply voltage L+ of the module is missing
The configured limit for switching cycles has been exceeded.

Connect supply voltage L+ to module/channel
· Replace actuator as a precautionary measure

· Reset counter with DS131

* Wire break is also reported for short-circuit of actuator supply to L+. This can lead to inappropriate diagnostics for redundant load control.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

29

Technical specifications

6

Technical specifications of the DQ 32x24VDC/0.5 A HF
The following table shows the technical specifications as of 06/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/denpv/6ES7522-1BL01-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version Product function · I&M data Engineering with · STEP 7 TIA Portal configurable/integrated
as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSO
· Integrated operating cycle counter Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.

6ES7522-1BL01-0AB0
DQ 32x24VDC/0.5A HF FS02 V1.1.0
Yes; I&M0 to I&M3
V13 SP1 / -
V1.0 / V5.1
V2.3 / -
Yes No No No
No Yes Yes
24 V 20.4 V 28.8 V Yes; through internal protection with 7 A per group
60 mA

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

30

Manual, 06/2018, A5E35683508-AC

Technical specifications

Article number Output voltage
Rated value (DC) Power
Power available from the backplane bus Power loss
Power loss, typ. Digital outputs
Type of digital output Number of digital outputs Current-sourcing Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input Switching capacity of the outputs · with resistive load, max.
· on lamp load, max. Load resistance range
· lower limit
· upper limit Output voltage
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max.
· "1" to "0", max. Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max.

6ES7522-1BL01-0AB0
24 V
1.1 W
3.5 W
Transistor 32 Yes Yes; Clocked electronically 1 A L+ (-53 V) Yes
0.5 A 5 W
48  12 k
L+ (-0.8 V)
0.5 A 0.5 A 0.5 mA
100 µs 500 µs
Yes No Yes
100 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13 10 Hz

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

31

Technical specifications

Article number Total current of the outputs
· Current per channel, max.
· Current per group, max.
· Current per module, max. Cable length
· shielded, max.
· unshielded, max. Isochronous mode
Isochronous operation (application synchronized up to terminal) Execution and activation time (TCO), min. Bus cycle time (TDP), min. Interrupts/diagnostics/status information Diagnostics function Substitute values connectable Alarms · Diagnostic alarm Diagnostic messages · Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error Diagnostics indication LED
· RUN LED
· ERROR LED
· MAINT LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus Isolation
Isolation tested with

6ES7522-1BL01-0AB0
0.5 A; see additional description in the manual 4 A; see additional description in the manual 16 A; see additional description in the manual
1 000 m 600 m
Yes 70 µs 250 µs
Yes Yes
Yes
Yes Yes Yes Yes
Yes; Green LED Yes; Red LED Yes; yellow LED Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED
No 8 Yes
707 V DC (type test)

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

32

Manual, 06/2018, A5E35683508-AC

Technical specifications

Article number

6ES7522-1BL01-0AB0

Standards, approvals, certificates

Suitable for safety-related tripping of standard Yes; From FS02 modules

Highest safety class achievable for safety-related tripping of standard modules

· Performance level according to ISO 13849- PL d 1

· Category according to ISO 13849-1

Cat. 3

· SILCL according to IEC 62061

SILCL 2

Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

Yes
35 mm 147 mm 129 mm
280 g

Residual current at signal state "0":
Note Due to the Diagnostics: Wire break function, there is a low level of residual current in the "0" signal state at the output, which may cause the display diodes to flicker. This residual current does not depend on the setting for the wire break diagnostics parameter.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

33

Technical specifications Power reduction (derating) to aggregate current of outputs (per group)
The following graphs show the loading capacity of the digital outputs in relation to the mounting position of the S71500 / Distributed I/O System ET 200MP automation system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per group)

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

34

Manual, 06/2018, A5E35683508-AC

Dimensional drawing

A

A.1

Dimensional drawing
The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DQ 32x24VDC/0.5A HF module

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

35

Dimensional drawing A.1 Dimensional drawing
Figure A-2 Dimension drawing of the DQ 32x24VDC/0.5A HF module, side view with open front cover

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

36

Manual, 06/2018, A5E35683508-AC

Parameter data records

B

B.1

Parameter assignment
The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "setting the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option of changing the module parameters in RUN (e.g. the reaction of the individual channels to CPU STOP can be changed in RUN without affecting the other channels)

Changing parameters in RUN
The WRREC instruction is used to transfer the parameters to the module using data sets 64 to 95. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

37

Parameter data records B.1 Parameter assignment
Assignment of data record and channel
For the configuration as a 1 x 32-channel module, the parameters are located in data sets 64 to 95 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data set 94 for channel 30  Data set 95 for channel 31 For the configuration as a 4 x 8-channel module, the module has 4 submodules with eight channels each. The parameters for the channels are located in data records 64 to 71 and are assigned as follows:  Data records 64 to 71 for channels 0 to 7 (submodule 1)  Data records 64 to 71 for channels 8 to 15 (submodule 2)  Data sets 64 to 71 for channels 16 to 23 (submodule 3)  Data sets 64 to 71 for channels 24 to 31 (submodule 4) Address the respective submodule for data record transfer.

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

38

Manual, 06/2018, A5E35683508-AC

Parameter data records B.2 Structure of parameter data sets DS 64 - 95

B.2

Structure of parameter data sets DS 64 - 95

Structure of data sets 64 to 95
The figure below shows the structure of data set 64 for channel 0 as an example. The structure is identical for channels 1 to 31. The values in byte 0 and byte 1 are fixed and may not be changed.
Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

39

Parameter data records B.3 Structure of data set DS 129

B.3

Structure of data set DS 129

Structure of data set 129
You can read the current states of the switching cycle counters with data set 129. The counter status is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 129 for 32 channels.

Figure B-2 Structure of data set 129: Byte 0 to 127

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

40

Manual, 06/2018, A5E35683508-AC

Parameter data records B.3 Structure of data set DS 129 The following figure shows you the structure of data set 129 for 4 submodules with 8 channels each.
Figure B-3 Structure of data set 129: Byte 0 to 31

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

41

Parameter data records B.4 Structure of data set DS 130

B.4

Structure of data set DS 130

Structure of data set 130
The limits of the switching cycle counters are read out with data set 130. The set value is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 130 for 32 channels.

Figure B-4 Structure of data set 130: Byte 0 to 127

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

42

Manual, 06/2018, A5E35683508-AC

Parameter data records B.4 Structure of data set DS 130 The following figure shows you the structure of data set 130 for 4 submodules with 8 channels each.
Figure B-5 Structure of data set 130: Byte 0 to 31

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

Manual, 06/2018, A5E35683508-AC

43

Parameter data records B.5 Structure of data set DS 131

B.5

Structure of data set DS 131

Structure of data set 131
The following figure shows you the structure of data set 131. Enable a parameter by setting the corresponding bit to "1".

Figure B-6 Structure of data set 131: Bytes 0 to 7

Digital output module DQ 32x24VDC/0.5A HF (6ES7522-1BL01-0AB0)

44

Manual, 06/2018, A5E35683508-AC

SIMATIC
S7-1500/ET 200MP Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Ad_d_re_ss_s_pa_c_e __________4_ _Di_ag_n_os_tic_s_al_ar_m_s ________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_

09/2016
A5E32364017-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32364017-AC  11/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

4

Manual, 09/2016, A5E32364017-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Address space ...................................................................................................................................... 15

4.1

Address space ....................................................................................................................... 15

5 Diagnostics alarms................................................................................................................................ 19

5.1

Status and error displays ....................................................................................................... 19

6 Technical specifications ........................................................................................................................ 21

A Dimensional drawing............................................................................................................................. 25

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

6

Manual, 09/2016, A5E32364017-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

8

Manual, 09/2016, A5E32364017-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

10

Manual, 09/2016, A5E32364017-AC

Product overview

2.1

Properties

Article number
6ES7522-1BH10-0AA0

View of the module

2

Properties

Figure 2-1 View of the DQ 16x24VDC/0.5A BA module
The digital module has the following technical properties:  16 digital outputs, electrically isolated in groups of 8  Rated output voltage 24 V DC  Rated output current 0.5 A per channel  Suitable for solenoid valves, DC contactors, and indicator lights

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

V13 or higher

--- / X

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:
 Front connector (push-in terminals) including cable tie
 Labeling strips
 U connector
 Universal front door
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

12

Manual, 09/2016, A5E32364017-AC

Wiring

3

This section contains the block diagram of the module and outlines various wiring options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

13

Wiring
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels to the addresses (output byte a and output byte b).

 Backplane bus interface
xL+ Supply voltage 24 V DC xM Ground

CHx RUN ERROR PWR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Note
Upon activation of the 24 V supply voltage, there is a "1" signal at the module outputs for approx. 50 s.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

14

Manual, 09/2016, A5E32364017-AC

Address space

4

4.1

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 16x24VDC/0.5A BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 1 Configuration options Configuration

Short designation/module name in the GSD file

1 x 16-channel without value status 2 x 8-channel without value status

DQ 16x24VDC/0.5A BA DQ 16x24VDC/0.5A BA S

1 x 16-channel with value status for DQ 16x24VDC/0.5A BA MSO module-internal Shared Output with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

15

Address space 4.1 Address space
Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A BA
The figure below shows the address space assignment for configuration as a 1 x 16-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module- "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A BA
Address space for configuration as 2 x 8-channel DQ 16x24VDC/0.5A BA S
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 8-channel DQ 32x24VDC/0.5A BA S
Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A BA MSO
For the configuration as a 1 x 16-channel module (module-internal Shared Output, MSO), channels 0 to 15 of the module are copied to multiple submodules. Channels 0 to 16 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 15.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 15. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

16

Manual, 09/2016, A5E32364017-AC

Address space 4.1 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode.  The basic submodule is not yet configured. The figure below shows the assignment of the address space for submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A BA MSO with value status

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

17

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A BA MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

18

Manual, 09/2016, A5E32364017-AC

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows you the LED displays (status and error displays) of the DQ 16x24VDC/0.5A BA.

Figure 5-1 LED displays of the module DQ 16x24VDC/0.5A BA

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

19

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

LED PWR1/PWR2

Table 5- 2 PWR1/PWR2 status display

LED PWRx Off On

Meaning Supply voltage L+ too low or missing.
Supply voltage L+ is present and OK.

Remedy Check the L+ supply voltage.
---

LED CHx

Table 5- 3 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal.
1 = Status of the output signal.

Remedy ---
---

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

20

Manual, 09/2016, A5E32364017-AC

Technical specifications

6

Technical specifications of the DQ 16x24VDC/0.5A BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7522-1BH10-0AA0
DQ 16x24VDC/0,5A BA FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSO

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection
Input current

24 V 20.4 V 28.8 V Yes; through internal protection with 7 A per group

Current consumption, max.

30 mA

Output voltage

Rated value (DC)

24 V

Power Power consumption from the backplane bus Power loss

1.15 W

Power loss, typ.

2.2 W

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

21

Technical specifications

Digital outputs Number of outputs Sourcing output Short-circuit protection · Response threshold, typ.

6ES7522-1BH10-0AA0
16 Yes Yes 1 A

Limitation of inductive shutdown voltage to Control of a digital input Switching capacity of outputs With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage For signal "1", min. Output current For signal "1" rated value For signal "1" permitted range, max. For signal "0" residual current, max. Output delay with resistive load "0" to "1", max. "1" to "0", max. Parallel connection of two outputs For logic operations For increased performance For redundant control of a load Switching frequency With resistive load, max. With inductive load, max. With lamp load, max. Total current of outputs Current per channel, max. Current per group, max. Current per module, max. Cable length shielded, max. unshielded, max. Isochronous mode

L+ (-53 V) Yes
0.5 A 5 W
48  12 k
L+ (-0.8 V)
0.5 A 0.5 A 0.5 mA
100 µs 500 µs
Yes No Yes
100 Hz 0.5 Hz; according to IEC 60947-5-1, DC-13 10 Hz
0.5 A; see additional description in the manual 4 A; see additional description in the manual 8 A; see additional description in the manual
1000 m 600 m

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values can be applied

No

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

22

Manual, 09/2016, A5E32364017-AC

Technical specifications

Interrupts Diagnostic interrupt Diagnostics alarms Monitoring of supply voltage Wire break Short-circuit Group error Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Insulation Insulation tested with Distributed operation Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7522-1BH10-0AA0
No
No No No No
Yes; green LED Yes; red LED Yes; green LED Yes; green LED No No
No 8 Yes
707 V DC (type test)
Yes
25 mm 147 mm 129 mm
230 g
Delivery includes 40-pin push-in front connector

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

23

Technical specifications Power reduction (derating) to aggregate current of outputs (per group)
The following derating graphs show the loading capacity of the outputs in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per group)

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

24

Manual, 09/2016, A5E32364017-AC

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 16x24VDC/0.5A BA module

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

Manual, 09/2016, A5E32364017-AC

25

Dimensional drawing
Figure A-2 Dimensional drawing of the DQ 16x24VDC/0.5A BA module, side view with open front cover

Digital output module DQ 16x24VDC/0.5A BA (6ES7522-1BH10-0AA0)

26

Manual, 09/2016, A5E32364017-AC

SIMATIC
S7-1500/ET 200MP Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

06/2018
A5E35683409-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35683409-AC  08/2018 Subject to change

Copyright © Siemens AG 2015 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:  New licensing conditions and copyright information of the Open Source Software  The module features a switching cycle counter as of firmware version V1.1.0.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

4

Manual, 06/2018, A5E35683409-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................13 Switching cycle counter ..........................................................................................................13

3 Wiring ................................................................................................................................................... 15

4 Parameters/address space ................................................................................................................... 17

4.1

Parameters .............................................................................................................................17

4.2

Description of parameters.......................................................................................................19

4.3

Address space ........................................................................................................................20

5 Interrupts/diagnostics alarms................................................................................................................. 25

5.1

Status and error displays ........................................................................................................25

5.2

Interrupts .................................................................................................................................27

5.3

Diagnostics alarms..................................................................................................................28

6 Technical specifications ........................................................................................................................ 29

A Dimensional drawing............................................................................................................................. 34

A.1

Dimensional drawing...............................................................................................................34

B Parameter data records......................................................................................................................... 36

B.1

Parameter assignment............................................................................................................36

B.2

Structure of parameter data sets DS 64 - 79 ..........................................................................38

B.3

Structure of data set DS 129 ..................................................................................................39

B.4

Structure of data set DS 130 ..................................................................................................41

B.5

Structure of data set DS 131 ..................................................................................................43

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

6

Manual, 06/2018, A5E35683409-AC

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

8

Manual, 06/2018, A5E35683409-AC

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

9

Product overview

2.1

Properties

Article number
6ES7522-1BH01-0AB0

View of the module

2

Figure 2-1 View of the DQ 16x24VDC/0.5A HF module

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

10

Manual, 06/2018, A5E35683409-AC

Product overview 2.1 Properties

Properties

The module has the following technical properties:  16 digital outputs, electrically isolated in groups of 8  Rated output voltage 24 V DC  Rated output current 0.5 A per channel  Configurable substitute values (per channel)  Configurable diagnostics (per channel)  Suitable for solenoid valves, DC contactors, and indicator lights  Switching cycle counter for connected actuators, e.g. solenoid valves  Hardware compatible with digital output module DQ 16x24VDC/0.5A ST
(6ES7522-1BH00-0AB0). The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Module-internal Shared Output (MSO) Configurable submodules / submodules for Shared Device Switching cycle counter

Configuration software

Firmware version of the module

STEP 7 (TIA Portal) as of V13, SP1
with HSP 0143

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V1.0.0 or higher

X

--- / X

V1.0.0 or higher

X

X

V1.0.0 or higher

X

X

V1.0.0 or higher

X

---

V1.0.0 or higher

X

X

(PROFINET IO only)

(PROFINET IO only)

V1.0.0 or higher

X

X

(PROFINET IO only)

(PROFINET IO only)

V1.1.0 or higher as of V15.0 with HSP0247

X

· PROFINET IO only

(PROFINET IO only)

· Central operation with a S7-1500 CPU is supported

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01 FS02

Firmware version V1.0.0 V1.1.0

Note Upgrade to V1.1.0 not possible
Upgrade and downgrade possible between V1.1.0 and higher

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

11

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

12

Manual, 06/2018, A5E35683409-AC

2.2

Functions

Product overview 2.2 Functions

2.2.1

Switching cycle counter
The function records the number of switching cycles of the output and thus the switching cycles of a connected actuator, such as those of solenoid valves. When the specified number of switching cycles is reached, the "Limit value warning" maintenance interrupt is triggered, provided it is configured and enabled. When replacing the actuator, you can reset the switching cycle counter from the user program.
When replacing modules, you have the option of pre-initializing the switching cycle counter from the user program.

Typical areas of application:
 Recording the number of switching cycles of the connected devices, e.g. solenoid valves or load contactors
 Predictive maintenance

Advantages

 You configure this function instead of programming.
 "Monitoring" of each individual channel is possible. You can select which outputs are "monitored".
 You can adapt the plant configuration flexibly and individually.
 Easy to service and maintain. You can enable and disable the switching cycle counter via the user program.
 Increase in plant availability. You can schedule actuator replacement in advance for the next maintenance cycle.

Requirement

Firmware version as of V1.1.0 of the module.

Configuration

You configure the switching cycle counter with the following parameters:  Switching cycle counter enabled/disabled  Trigger maintenance interrupt when the limit is reached  Set limit for maintenance interrupt

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

13

Product overview 2.2 Functions

How it works

The module counts the switching cycles by evaluating the rising edges of an output signal. If the module detects a rising edge, the switching cycle counter (24-bit) for the respective channel is incremented. After an overflow of the switching cycle counter, it starts again with 0.
If you activate the "Maintenance switching cycles" parameter, the "Limit warning" of the maintenance interrupt is triggered when the limit is exceeded. Alternatively, activate the maintenance interrupt in the parameter data sets starting at DS 64.
The current counter states are stored on the module cyclically (approx. every 20 seconds) and retentively. The switching cycle counters are reset each time the module is restarted (power off/on).
You activate the function with the "Switching cycle counter" parameter or in the parameter data sets starting at DS 64.
You can read the current counter states with data set DS 129. Data set DS 129 contains the counter status for each channel in UDINT format.
You can read the limits for each channel in UDINT format with data set DS 130.
Data set DS 131 enables you to overwrite the current counter value for each switching cycle counter.
You can set a limit for each switching cycle counter with the "Switching cycle limit" parameter or with data set DS 131.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

14

Manual, 06/2018, A5E35683409-AC

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, establishing a cable shield, etc. in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels to the addresses (output byte a and output byte b).

 Backplane bus interface
xL+ Supply voltage 24 V DC xM Ground CHx Channel or channel status LED
(green/red)

MAINT RUN ERROR PWR

LED maintenance display (yellow) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 3-1 Block diagram and terminal assignment

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

15

Wiring
Note When the 24 V supply voltage is switched on at each channel, there is a "1" signal at the module outputs for approx. 50 s.
Tip: Using the potential jumpers
If you want to supply both load groups with the same potential (non-isolated), use the potential jumpers supplied with the front connector. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals
­ 9 and 29 (L+) ­ 10 and 30 (M) ­ 19 and 39 (L+) ­ 20 and 40 (M) 3. Insert the jumpers between terminals 29 and 39, as well as 30 and 40. 4. Use the terminals 19 and 20 to distribute the potential to the next module.

Figure 3-2 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

16

Manual, 06/2018, A5E35683409-AC

Parameters/address space

4

4.1

Parameters

DQ 16x24VDC/0.5 HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter assignment in RUN) and data sets; see section Parameter assignment (Page 36)

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Diagnostics

· No supply voltage L+

Yes/No

No

· Short circuit to ground

Yes/No

No

· Maintenance switching

Yes/No

No

cycles

· Switching cycle counter

Yes/No

No

· Wire break

Yes/No

No

Parameter assignment in RUN
Yes Yes Yes Yes Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)
Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 or GSD file PROFINET IO

Channel*
Channel*
Channel (as of V15.0 with HSP0247) Channel (as of V15.0 with HSP0247) Channel*

Channel group (CH0 to CH7, CH8 to CH15) Channel group (CH0 to CH7, CH8 to CH15) ---
---
Channel group (CH0 to CH7, CH8 to CH15)

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

17

Manual, 06/2018, A5E35683409-AC

Parameters/address space 4.1 Parameters

Parameters Reaction to CPU STOP

Range of values

Default setting

· Turn off

Turn off

· Keep last value

· Output substitute value 1

Parameter assignment in RUN
Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the GSD file hardware catalog PROFIBUS DP as of STEP 7, V13 SP1 or GSD file PROFINET IO

Channel

Channel

Switching cycle limits Switching cycle limit

0 ... 16777214

0

Yes

Channel

---

(as of V15.0 with HSP0247)

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

18

Manual, 06/2018, A5E35683409-AC

Parameters/address space 4.2 Description of parameters

4.2

Description of parameters

No supply voltage
Enabling of the diagnostics, for lacking or insufficient supply voltage L+.

Short circuit to ground
Enabling of the diagnostics if a short-circuit of the actuator supply (CHx) to ground occurs.

Maintenance switching cycles
You use this parameter to enable the maintenance interrupt "Limit value warning" when the switching cycle limit is violated.
You configure the limit with the parameter "Switching cycle limit" for each channel CHx.

Switching cycle counter
Channel-by-channel enable of switching cycle counter (Page 13).

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Reaction to CPU STOP
Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.

Switching cycle limit
Defines the limit channel-by-channel. If this value is exceeded, the "Limit value warning" maintenance interrupt is signaled.
Enter an integer value between 0 and 16777214. Refer to the data sheet of the connected actuator. We recommend that you do not enter this maximum value, but instead set it to 80% or 90%, for example, so that you have enough time to replace the actuator as a preventive measure.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

19

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of DQ 16x24VDC/0.5A HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration

Short designation/module name in the GSD file

Configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V13 SP1 with
HSP 0143

GSD file in STEP 7 (TIA Portal) V12
or higher or STEP 7 V5.5 SP3 or higher

1 x 16-channel without value status

DQ 16x24VDC/0.5A HF

X

X

1 x 16-channel with value status

DQ 16x24VDC/0.5A HF QI

X

X

2 x 8-channel without value status

DQ 16x24VDC/0.5A HF S

X

X

(PROFINET IO only) (PROFINET IO only)

2 x 8-channel with value status

DQ 16x24VDC/0.5A HF S QI

X

X

(PROFINET IO only) (PROFINET IO only)

1 x 16-channel with value status for

DQ 16x24VDC/0.5A HF

module-internal Shared Output with up to MSO

4 submodules

X (PROFINET IO only)

X (PROFINET IO only)

Note Substitute value behavior in shared device operation with the following configuration (V1.0 only): · 2 x 8-channel with / without value status
If the system is in shared device mode and one of the IO controllers involved goes into STOP or fails due to a communication failure, for example, all submodules of the output module perform the configured substitute value reaction (e.g. shutdown).
This means that even when only one IO controller fails, the other IO controllers associated with the shared device no longer control the assigned submodule of the output module.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

20

Manual, 06/2018, A5E35683409-AC

Parameters/address space 4.3 Address space
Value status (Quality Information, QI)
The value status is always activated for the following module names:  DQ 16x24VDC/0.5A HF QI  DQ 16x24VDC/0.5A HF S QI  DQ 16x24VDC/0.5A HF MSO An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).
Note The maintenance interrupt "Limit value warning" has no effect on the value status.
Address space for configuration as 16-channel DQ 16x24VDC/0.5A HF
The following figure shows the assignment of the address space for the configuration as a 16-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed onto the module. "QB a" stands for module start address output byte a.

Figure 4-1 Address space for configuration as 16-channel DQ 16x24VDC/0.5A HF with value status

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

21

Parameters/address space 4.3 Address space
Address space for configuration as 2 x 8-channel DQ 16x24VDC/0.5A HF S QI
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device.
The number of IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address. The addresses for the respective value status of a submodule can also be assigned by the user.

Figure 4-2 Address space for configuration as 2 x 8-channel DQ 16x24VDC/0.5A HF S QI with value status
Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A HF MSO
For the configuration as a 1 x 16-channel module (module-internal shared output, MSO), channels 0 to 15 of the module are copied to multiple submodules. Channels 0 to 15 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:
 The IO controller to which submodule 1 is assigned has write access to outputs 0 to 15.
 The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 15.
The number of IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

22

Manual, 06/2018, A5E35683409-AC

Parameters/address space 4.3 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state. The following figure shows the assignment of the address space for submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A HF S MSO with value status

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

23

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DQ 16x24VDC/0.5A HF S MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

24

Manual, 06/2018, A5E35683409-AC

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of module.

Figure 5-1 LED displays of the DQ 16x24VDC/0.5A HF module

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

25

Manual, 06/2018, A5E35683409-AC

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 28).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., short-circuit to ground). Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., check the cables). Replace the module.

LED MAINT

Table 5- 2 MAINT status display

LED MAINT Off On

Meaning

0 = No maintenance interrupt is pending.

---

1 = The maintenance interrupt "Limit value

---

warning" is pending.

Solution

PWR1 and PWR2 LED

Table 5- 3 PWR1 and PWR2 status indication

LED PWRx Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Solution Check the L+ supply voltage.
---

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

26

Manual, 06/2018, A5E35683409-AC

LED CHx

Table 5- 4 CHx status display

LED CHx Off On On

Meaning 0 = Status of the output signal
1 = Status of the output signal
· Wire break or short-circuit to ground · Supply voltage L+ missing or too low

Interrupts/diagnostics alarms 5.2 Interrupts
Solution ----· Correct the process wiring · Check the supply voltage.

5.2

Interrupts

The digital output module DQ 16x24VDC/0.5A HF supports diagnostic interrupts and maintenance interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  No supply voltage L+  Short circuit to ground  Wire break  Parameter assignment error

Maintenance interrupt
The module generates a maintenance interrupt at the following events:  Limit value warning

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

27

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. You can read the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short circuit to ground
Wire break*

Error code 1H
6H

Parameter assignment 10H error

Load voltage missing

11H

Limit value warning

17H

Meaning Short-circuit or overload at the channel Actuator circuit impedance too high.
Wire break between the module and actuator Channel not connected (open)
· The module cannot evaluate parameters for the channel.
· Incorrect parameter assignment Supply voltage L+ of the module is missing The configured limit for switching cycles has been exceeded.

Corrective measures Check the wiring/actuator. Check the ambient temperature. Use different actuator type or wire differently, e.g. use lines with bigger cross-section Connect the cable
· Disable diagnostics · Connect a resistor to the actuator
contacts in the load resistance range Correct the parameter assignment
Connect supply voltage L+ to module/channel · Replace actuator as a precaution-
ary measure · Reset counter with DS131

* Wire break is also reported for short-circuit of actuator supply to L+. This can lead to inappropriate diagnostics for redundant load control.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

28

Manual, 06/2018, A5E35683409-AC

Technical specifications

6

Technical specifications of the DQ 16x24VDC/0.5A HF
The following table shows the technical specifications as of 06/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7522-1BH01-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data Engineering with · STEP 7 TIA Portal configurable/integrated
as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSO
· Integrated operating cycle counter Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection

6ES7522-1BH01-0AB0
DQ 16x24VDC/0.5A HF FS02 V1.1.0 Yes
Yes; I&M0 to I&M3
V13 SP1 / -
V1.0 / V5.1
V2.3 / -
Yes No No No
No Yes Yes
24 V 20.4 V 28.8 V Yes; through internal protection with 7 A per group

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

29

Manual, 06/2018, A5E35683409-AC

Technical specifications

Article number Input current
Current consumption, max. Output voltage
Rated value (DC) Power
Power available from the backplane bus Power loss
Power loss, typ. Digital outputs
Type of digital output Number of digital outputs Current-sourcing Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input Switching capacity of the outputs · with resistive load, max.
· on lamp load, max. Load resistance range
· lower limit
· upper limit Output voltage
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max.
· "1" to "0", max. Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load

6ES7522-1BH01-0AB0
30 mA
24 V
1.1 W
2 W
Transistor 16 Yes Yes; Clocked electronically 1 A L+ (-53 V) Yes
0.5 A 5 W
48  12 k
L+ (-0.8 V)
0.5 A 0.5 A 0.5 mA
100 µs 500 µs
Yes No Yes

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

30

Manual, 06/2018, A5E35683409-AC

Technical specifications

Article number Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per channel, max.
· Current per group, max.
· Current per module, max. Cable length
· shielded, max.
· unshielded, max. Isochronous mode
Isochronous operation (application synchronized up to terminal) Execution and activation time (TCO), min. Bus cycle time (TDP), min. Interrupts/diagnostics/status information Diagnostics function Substitute values connectable Alarms · Diagnostic alarm Diagnostic messages · Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error Diagnostics indication LED
· RUN LED
· ERROR LED
· MAINT LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics

6ES7522-1BH01-0AB0
100 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13 10 Hz
0.5 A; see additional description in the manual 4 A; see additional description in the manual 8 A; see additional description in the manual
1 000 m 600 m
Yes 70 µs 250 µs
Yes Yes
Yes
Yes Yes Yes Yes
Yes; Green LED Yes; Red LED Yes; yellow LED Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

31

Technical specifications

Article number Potential separation Potential separation channels
· between the channels

6ES7522-1BH01-0AB0 No

· between the channels, in groups of

8

· between the channels and backplane bus Yes

Isolation

Isolation tested with

707 V DC (type test)

Standards, approvals, certificates

Suitable for safety-related tripping of standard Yes; From FS02 modules

Highest safety class achievable for safety-related tripping of standard modules

· Performance level according to ISO 13849- PL d 1

· Category according to ISO 13849-1

Cat. 3

· SILCL according to IEC 62061

SILCL 2

Ambient conditions

Ambient temperature during operation

· horizontal installation, min.

0 °C

· horizontal installation, max.

60 °C

· vertical installation, min.

0 °C

· vertical installation, max.

60 °C

Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

Yes
35 mm 147 mm 129 mm
230 g

Residual current at signal state "0":
Note Due to the Diagnostics: Wire break function, there is a low level of residual current in the "0" signal state at the output, which may cause the display diodes to flicker. This residual current does not depend on the setting for the wire break diagnostics parameter.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

32

Manual, 06/2018, A5E35683409-AC

Technical specifications Power reduction (derating) to aggregate current of outputs (per group)
The following graphs show the loading capacity of the digital outputs in relation to the mounting position of the S71500 / Distributed I/O System ET 200MP automation system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per group)

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

33

Dimensional drawing

A

A.1

Dimensional drawing
The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DQ 16x24VDC/0.5A HF module

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

34

Dimensional drawing A.1 Dimensional drawing
Figure A-2 Dimension drawing of the DQ 16x24VDC/0.5A HF module, side view with open front cover

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

35

Parameter data records

B

B.1

Parameter assignment
The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the modules in RUN (e.g. the response of selected channels to the CPU-STOP state can be changed in RUN without having an effect on the other channels)

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data sets 64 to 79. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

36

Parameter data records B.1 Parameter assignment
Assignment of data record and channel
For the configuration as a 1 x 16-channel module, the parameters are located in data sets 64 to 79 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data set 78 for channel 14  Data set 79 for channel 15 For the configuration as a 2 x 8-channel module, the module has 2 submodules with eight channels each. The parameters for the channels are located in data records 64 to 71 and are assigned as follows:  Data records 64 to 71 for channels 0 to 7 (submodule 1)  Data records 64 to 71 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

37

Parameter data records B.2 Structure of parameter data sets DS 64 - 79

B.2

Structure of parameter data sets DS 64 - 79

Structure of data sets 64 to 79
The figure below shows the structure of data set 64 for channel 0 as an example. The structure is identical for channels 1 to 15. The values in byte 0 and byte 1 are fixed and may not be changed.
Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

38

Manual, 06/2018, A5E35683409-AC

Parameter data records B.3 Structure of data set DS 129

B.3

Structure of data set DS 129

Structure of data set 129
You can read the current states of the switching cycle counters with data set 129. The counter status is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 129 for 16 channels.

Figure B-2 Structure of data set 129: Byte 0 to 63

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

39

Parameter data records B.3 Structure of data set DS 129
The following figure shows you the structure of data set 129 for 2 submodules with 8 channels each.
Figure B-3 Structure of data set 129: Byte 0 to 31

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

40

Manual, 06/2018, A5E35683409-AC

Parameter data records B.4 Structure of data set DS 130

B.4

Structure of data set DS 130

Structure of data set 130
The limits of the switching cycle counters are read out with data set 130. The set value is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 130 for 16 channels.

Figure B-4 Structure of data set 130: Byte 0 to 63

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

41

Parameter data records B.4 Structure of data set DS 130
The following figure shows you the structure of data set 130 for 2 submodules with 8 channels each.
Figure B-5 Structure of data set 130: Byte 0 to 31

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

42

Manual, 06/2018, A5E35683409-AC

Parameter data records B.5 Structure of data set DS 131

B.5

Structure of data set DS 131

Structure of data set 131
The following figure shows you the structure of data set 131. Enable a parameter by setting the corresponding bit to "1".

Figure B-6 Structure of data set 131: Bytes 0 to 7

Digital output module DQ 16x24VDC/0.5A HF (6ES7522-1BH01-0AB0)

Manual, 06/2018, A5E35683409-AC

43

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_

_Di_m_en_si_on_a_l d_ra_w_in_g _______A_

_Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

09/2016
A5E35683139-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35683139-AB  11/2016 Subject to change

Copyright © Siemens AG 2015 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in these system manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

4

Manual, 09/2016, A5E35683139-AB

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 15

4.1

Parameters............................................................................................................................. 15

4.2

Description of parameters ...................................................................................................... 15

4.3

Address space ....................................................................................................................... 16

5 Interrupts/diagnostics alarms................................................................................................................. 21

5.1

Status and error displays ....................................................................................................... 21

5.2

Interrupts ................................................................................................................................ 23

5.3

Diagnostics alarms................................................................................................................. 23

6 Technical specifications ........................................................................................................................ 24

A Dimensional drawing............................................................................................................................. 27

A.1

Dimensional drawing.............................................................................................................. 27

B Parameter data records ........................................................................................................................ 29

B.1

Parameter assignment and structure of the parameter data records .................................... 29

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

6

Manual, 09/2016, A5E35683139-AB

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

8

Manual, 09/2016, A5E35683139-AB

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

10

Manual, 09/2016, A5E35683139-AB

Product overview

2.1

Properties

Article number
6ES7522-5EH00-0AB0

View of the module

2

Properties

Figure 2-1 View of the DQ 16x24...48VUC/125VDC/0.5A ST module
The module has the following technical properties:  16 digital outputs; electrically isolated in groups of 1  Rated output voltage 24 V DC (24 V DC to 125 V DC / 24 V UC to 48 V UC)  Rated output current 0.5 A per channel  Configurable substitute values (per channel)  Suitable for solenoid valves, DC contactors, and indicator lights

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V13,
SP1 with HSP 0142

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

X

--- / X

X

X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

12

Manual, 09/2016, A5E35683139-AB

Wiring

3

This section contains the block diagram of the module and outlines various wiring options.
You can find information on wiring the front connector, establishing a cable shield, etc. in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

13

Wiring
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels to the addresses (output byte a and output byte b). Note Do not insert the potential jumpers included with the front connector!

 Backplane bus interface

CHx RUN ERROR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

Note
When the supply voltage is switched on at each channel, there is a "1" signal at the module outputs for approx. 50 s.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

14

Manual, 09/2016, A5E35683139-AB

Parameters/address space

4

4.1

Parameters

DQ 16x24...48VUC/125VDC/0.5A ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter assignment in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 29).

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Parameter assignment in RUN

Reaction to CPU · Turn off

STOP

· Keep last value

Turn off Yes

· Output substitute value 1

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7, V13 SP1 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

Channel

4.2

Description of parameters

Reaction to CPU STOP
Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

15

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

The letters "a and b" are printed onto the module. "IB a" for example, stands for module start address input byte a.

Configuration options of DQ 16x24...48VUC/125VDC/0.5A ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration

Short designation/module name in the GSD file

Configuration software, e.g., STEP 7 (TIA Portal)

1 x 16-channel without value status

DQ 16x24...48VUC/125VDC/0.5A ST

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V13 SP1 with
HSP 0142
X

GSD file in STEP 7 (TIA Portal) V12
or higher or STEP 7 V5.5 SP3 or higher
X

1 x 16-channel with value DQ 16x24...48VUC/125VDC/0.5A ST QI

X

X

status

2 x 8-channel without value DQ 16x24...48VUC/125VDC/0.5A ST S status

X (PROFINET IO only)

X (PROFINET IO only)

2 x 8-channel with value status

DQ 16x24...48VUC/125VDC/0.5A ST S QI

X

(PROFINET IO only)

X (PROFINET IO only)

1 x 16-channel with value status for module-internal Shared Output with up to 4 submodules

DQ 16x24...48VUC/125VDC/0.5A ST MSO

X (PROFINET IO only)

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 DQ 16x24...48VUC/125VDC/0.5A ST QI
 DQ 16x24...48VUC/125VDC/0.5A ST S QI
 DQ 16x24...48VUC/125VDC/0.5A ST MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

16

Manual, 09/2016, A5E35683139-AB

Parameters/address space 4.3 Address space
Address space for configuration as 16-channel DQ 16x24...48VUC/125VDC/0.5A ST
The following figure shows the assignment of the address space for the configuration as a 16-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.
Figure 4-1 Address space for configuration as 16-channel DQ 16x24...48VUC/125VDC/0.5A ST with value status

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

17

Parameters/address space 4.3 Address space
Address space for configuration as 2 x 8-channel DQ 16x24...48VUC/125VDC/0.5A ST S QI
For the configuration as a 2 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device.
The number of IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Contrary to the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address. The addresses for the respective value status of a submodule can also be assigned by the user.

Figure 4-2 Address space for configuration as 2 x 8-channel DQ 16x24...48VUC/125VDC/0.5A ST S QI with value status
Address space for configuration as 1 x 16-channel DQ 16x24...48VUC/125VDC/0.5A ST MSO
For the configuration as a 1 x 16-channel module (module-internal shared output, MSO), channels 0 to 15 of the module are copied to multiple submodules. Channels 0 to 15 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:
 The IO controller to which submodule 1 is assigned has write access to outputs 0 to 15.
 The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 15.
The number of IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

18

Manual, 09/2016, A5E35683139-AB

Parameters/address space 4.3 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state. The following figure shows the assignment of the address space for submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DQ 16x24...48VUC/125VDC/0.5A ST S MSO with value status

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

19

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space with submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DQ 16x24...48VUC/125VDC/0.5A ST S MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

20

Manual, 09/2016, A5E35683139-AB

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of module.

Figure 5-1 LED displays of the module DQ 16x24...48VUC/125VDC/0.5A ST

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

21

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays. Remedial measures for diagnostics alarms can be found in section Diagnostics alarms (Page 23).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set.
Module is configured
Indicates module errors (at least one error at one channel, e.g., parameter assignment error). Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., check the cables).
Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal
1 = Status of the output signal

Remedy ---
---

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

22

Manual, 09/2016, A5E35683139-AB

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST supports diagnostic interrupts.

For detailed information on the error event, refer to the diagnostic interrupt organization block with the "RALRM" instruction (read additional interrupt information) and to the STEP 7 online help.

Diagnostics interrupt
The module generates a diagnostic interrupt at the following event: Parameter assignment error

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. You can read the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 5- 3 Diagnostics alarm, meaning and corrective measures

Diagnostics alarm
Parameter assignment error

Error code 10H

Meaning
· The module cannot evaluate parameters for the channel.
· Incorrect parameter assignment

Corrective measures Correct the parameter assignment

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

23

Technical specifications

6

Technical specifications of the DQ 16x24...125VUC/0.5A ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7522-5EH00-0AB0
DQ 16x24 ... 48VUC/125VDC/0,5A ST FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 SP1 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSO

Yes

Output voltage

Rated value (DC) Rated value (AC)

24 V; 48 V, 125 V 24 V; 48 V (50 - 60 Hz)

Power

Power consumption from the backplane bus Power loss Power loss, typ.

2 W 3.8 W

Digital outputs

Number of outputs Sinking output Sourcing output Limitation of inductive shutdown voltage to Control of a digital input

16 Yes Yes 200 V (suppressor diode) Yes

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

24

Manual, 09/2016, A5E35683139-AB

Technical specifications

6ES7522-5EH00-0AB0

Switching capacity of outputs

With resistive load, max.

0.5 A

With lamp load, max.

40 W; at 125 VDC, 10 W at 48 VUC, 5 W at 24 VUC

Output voltage

For signal "1", min.

L+ (-1.0 V)

Output current

For signal "1" rated value

0.5 A

For signal "1" permitted range, max.

0.6 A

Output delay with resistive load

"0" to "1", max.

5 ms

"1" to "0", max.

5 ms

Parallel connection of two outputs

For logic operations

Yes

For increased performance

No

For redundant control of a load

Yes

Switching frequency

With resistive load, max.

25 Hz

With inductive load, max.

0.5 Hz

With lamp load, max.

10 Hz

Total current of outputs

Current per channel, max.

0.5 A

Current per group, max.

0.5 A

Current per module, max.

8 A

Cable length

shielded, max.

1000 m

unshielded, max.

600 m

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

25

Technical specifications

Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Permitted potential difference Between different circuits Insulation Insulation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed operation Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7522-5EH00-0AB0
Yes; green LED Yes; red LED No Yes; green LED No Yes; red LED
Yes 1 Yes
125 V DC / 48 V AC
2000 V DC
0 °C 60  0 °C 40 °C
Yes
35 mm 147 mm 129 mm
230 g

Note External fuse for outputs
The outputs have to be protected by an external fuse. Recommendation: Siemens 2A 3NW6002-4 in fuse holder 3NW7014-4.
When installed in a danger area according to the National Electric Code (NEC), the fuse must only be removed with the correct tool when the module is not in an explosion-proof zone.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

26

Manual, 09/2016, A5E35683139-AB

Dimensional drawing

A

A.1

Dimensional drawing
The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DQ 16x24...48VUC/125VDC/0.5A ST module

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

27

Dimensional drawing A.1 Dimensional drawing
Figure A-2 Dimension drawing of the DQ 16x24...48VUC/125VDC/0.5A ST module, side view with open front cover

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

28

Manual, 09/2016, A5E35683139-AB

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the modules in RUN (e.g. the response of selected channels to the CPU-STOP state can be changed in RUN without having an effect on the other channels)

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 79. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

Manual, 09/2016, A5E35683139-AB

29

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel
For the configuration as a 1 x 16-channel module, the parameters are located in data records 64 to 79 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15 For the configuration as a 2 x 8-channel module, the module has 2 submodules with eight channels each. The parameters for the channels are located in data records 64 to 71 and are assigned as follows:  Data records 64 to 71 for channels 0 to 7 (submodule 1)  Data records 64 to 71 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 15. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 16x24...48VUC/125VDC/0.5A ST (6ES7522-5EH00-0AB0)

30

Manual, 09/2016, A5E35683139-AB

SIMATIC
S7-1500/ET 200MP Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Di_ag_n_os_tic_a_la_rm_s_________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

09/2016
A5E34934069-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E34934069-AB  11/2016 Subject to change

Copyright © Siemens AG 2015 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

CPU: The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

4

Manual, 09/2016, A5E34934069-AB

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 15

4.1

Parameters............................................................................................................................. 15

4.2

Declaration of parameters...................................................................................................... 15

4.3

Address space ....................................................................................................................... 16

5 Diagnostic alarms ................................................................................................................................. 21

5.1

Status and error displays ....................................................................................................... 21

6 Technical specifications ........................................................................................................................ 23

A Dimensional drawing............................................................................................................................. 27

B Parameter data records ........................................................................................................................ 29

B.1

Parameter assignment and structure of the parameter data records .................................... 29

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

6

Manual, 09/2016, A5E34934069-AB

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

8

Manual, 09/2016, A5E34934069-AB

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

10

Manual, 09/2016, A5E34934069-AB

Product overview

2.1

Properties

Article number
6ES7522-5FH00-0AB0

View of the module

2

Properties

Figure 2-1 View of the DQ 16x230VAC/1A ST module
The module has the following technical properties:  16 digital outputs (Triac)  Rated output voltage 120 V/230 V AC  Rated output current 1A (per channel)  Configurable substitute values (per channel)  Suitable for solenoid valves, DC contactors, indicator lights and smaller single phase
drives

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO)

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher

Configurable submodules/submodules for shared device

V1.0.0 or higher

Configuration software

STEP 7 as of V13 SP1 with
HSP 0119

GSD file in STEP 7 , V12 or higher STEP 7 V5.5 SP3 or higher

X

--- / X

X

--- / X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 and with a GSD file.

Accessories

The following components are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
For more information on accessories, refer to the S7-1500, ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

12

Manual, 09/2016, A5E34934069-AB

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500, ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Note Do not insert the potential jumpers included with the front connector!

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

13

Wiring
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels. The individual channels are connected with a TRIAC (Triode for Alternating Current).

 TRIAC 16x  Backplane bus interface

CHx RUN ERROR

Channel or channel status LED (green) Status display LED (green) Error display LED (red)

Figure 3-1 Block diagram and terminal assignment

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

14

Manual, 09/2016, A5E34934069-AB

Parameters/address space

4

4.1

Parameters

DQ 16x230VAC/1A ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The table below lists the parameters that can be set. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (reconfiguration in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 29).

Table 4- 1 Configurable parameters and their defaults

Parameter

Range of values

Default

Reaction to CPU · Turn off

STOP

· Keep last value

· Output substitute value 1

Turn off

Reconfiguration in RUN
Yes

Range of effectiveness with configuration software, e.g. STEP 7

Integrated in the hardware catalog STEP 7, SP1 with HSP 0119 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

Channel

4.2

Declaration of parameters

Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state or when the connection to the CPU is interrupted.

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

15

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 16x230VAC/1A ST
You can configure the module with STEP 7 or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration
1 x 16-channel without value status 2 x 8-channel without value status 1 x 16-channel with value status for module-internal Shared Output with up to 4 submodules

Short designation/module name in the GSD file
DQ 16x230VAC/1A ST DQ 16x230VAC/1A ST S DQ 16x230VAC/1A ST MSO

Configuration software, e.g., STEP 7

Integrated in hardware catalog STEP 7 V13,
SP1 or higher with HSP 0119
X

GSD file in STEP 7 V12 or higher or
STEP 7 V5.5 SP3 or higher
X

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the DQ 16x230VAC/1A ST MSO.
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

16

Manual, 09/2016, A5E34934069-AB

Parameters/address space 4.3 Address space
Address space for configuration as 16-channel DQ 16x230VAC/1A ST
The figure below shows the address space allocation for the configuration as 16-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to b" are printed on the module; "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 16-channel DQ 16x230VAC/1A ST
Address space for configuration as 2 x 8-channel DQ 16x230VAC/1A ST S
For the configuration as a 2 x 8-channel module, the channels of the module are divided into two submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of I/O controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 8-channel DQ 16x230VAC/1A ST S
Note Substitute value behavior in shared device operation with 2 x 8-channel configuration If the system is in shared device mode and one of the associated IO controllers goes into STOP or fails due to, for example, a communication failure, all submodules of the output module follow the configured substitute value behavior (e.g. switch off). This means that even when only one IO controller fails, the other IO controllers associated with the shared device no longer control the assigned submodule of the output module.

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

17

Parameters/address space 4.3 Address space
Address space for configuration as 1 x 16-channel DQ 16x230VAC/1A ST MSO
For the configuration as a 1 x 16-channel module (module-internal Shared Output, MSO), channels 0 to 15 of the module are copied to multiple submodules. Channels 0 to 15 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 15.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 15. The number of IO controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

18

Manual, 09/2016, A5E34934069-AB

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space for submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DQ 16x230VAC/1A ST MSO with value status

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

19

Parameters/address space 4.3 Address space
The figure below shows the assignment of the address space for submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DQ 16x230VAC/1A ST MSO with value status
You will find information on the module-internal shared input/shared output (MSI/MSO) function in the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) in the section Moduleinternal shared input/shared output (MSI/MSO).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

20

Manual, 09/2016, A5E34934069-AB

Diagnostic alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of DQ 16x230VAC/1A ST.

5

Figure 5-1 LED displays of the module DQ 16x230VAC/1A ST

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

21

Diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays.

RUN and ERROR LED

Table 5- 1 RUN and ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On
Flashes

Off Off Flashes

The module starts and flashes until the valid parameter assignment is set. Module parameters assigned
Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal
1 = Status of the output signal

Solution ---
---

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

22

Manual, 09/2016, A5E34934069-AB

Technical specifications

6

Technical specifications of the DQ 16x230VAC/1A ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7522-5FH00-0AB0
DQ 16x230VAC/1A ST (Triac) FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 SP1 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSO

Yes

Output voltage

Rated value (AC)

120/230 V AC, 50 / 60 Hz

Power Power consumption from the backplane bus Power loss Power loss, typ. Digital outputs

1.2 W 11.1 W

Number of outputs Sinking output Sourcing output Short-circuit protection Switching capacity of outputs With resistive load, max. With lamp load, max.

16 Yes Yes No
1 A 50 W

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

23

Technical specifications

6ES7522-5FH00-0AB0

Output voltage

For signal "1", min.

L1 (-1.5 V) at maximum output current; L1 (-8.5 V) at minimum output current

Output current

For signal "1" rated value

1 A

For signal "1" permitted range, min.

10 mA

For signal "1" permitted range, max.

15 A; max. 1 AC cycle

For signal "0" residual current, max.

2 mA

Output delay with resistive load

"0" to "1", max.

1 AC cycle

"1" to "0", max.

1 AC cycle

Parallel connection of two outputs

For logic operations

No

For increased performance

No

For redundant control of a load

Yes

Switching frequency

With resistive load, max.

10 Hz

With inductive load, max.

0.5 Hz

With lamp load, max.

1 Hz

Total current of outputs

Current per channel, max.

1 A; see additional description in the manual

Current per group, max.

2 A; see additional description in the manual

Current per module, max.

10 A; see additional description in the manual

Triac outputs

Size of motor starter according to NEMA, max.

4

Cable length

shielded, max.

1000 m

unshielded, max.

600 m

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

24

Manual, 09/2016, A5E34934069-AB

Technical specifications

Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Permitted potential difference Between different circuits
Insulation Insulation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed operation Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7522-5FH00-0AB0
Yes; green LED Yes; red LED No Yes; green LED No Yes; red LED
No 2 Yes
250 V AC between the channels and the backplane bus; 500 V AC between the channels
3100 V DC
0 °C 60  0 °C 60 
Yes
35 mm 147 mm 129 mm
310 g

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

25

Technical specifications
Power reduction (derating) to aggregate current of outputs (per module)
The following graphs show the loading capacity of the outputs in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per module)

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

26

Manual, 09/2016, A5E34934069-AB

Dimensional drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DQ 16x230VAC/1A ST module

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

27

Dimensional drawing
Figure A-2 Dimension drawing of the DQ 16x230VAC/1A ST module, side view with open front cover

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

28

Manual, 09/2016, A5E34934069-AB

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the response of selected channels to the CPU STOP state can be changed in RUN without having an effect on the other channels).

Changing parameters in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 79. The parameters set in STEP 7 are not changed in the CPU, which means the parameters set in STEP 7 are valid again after a restart.
The parameters are only checked for plausibility by the module after the transfer.

STATUS output parameter
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module device manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

Manual, 09/2016, A5E34934069-AB

29

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel
For the configuration as a 1 x 16-channel module, the parameters are located in data records 64 to 79 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15
For the configuration as a 2 x 8-channel module, the module has 2 submodules with eight channels each. The parameters for the channels are located in data records 64 to 71 and are assigned as follows:  Data records 64 to 71 for channels 0 to 7 (submodule 1)  Data records 64 to 71 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.
Data record structure
The example in the figure below shows the structure of data record 64 for channel 0. The structure of channels 1 to 16 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 16x230VAC/1A ST Triac (6ES7522-5FH00-0AB0)

30

Manual, 09/2016, A5E34934069-AB

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

SIMATIC
S7-1500/ET 200MP Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)
Equipment Manual

Preface

Documentation guide

1

Product overview

2

Wiring

3

Parameters/address space

4

5 Interrupts/diagnostics alarms

Technical specifications

6

Dimensional drawing

A

Parameter data records

B

04/2020
A5E34934019-AD

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E34934019-AD  05/2020 Subject to change

Copyright © Siemens AG 2015 - 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version Compared to the previous version, this manual contains the following change: The module features a switching cycle counter as of firmware version V1.1.0.

Conventions

CPU: The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".
Please also observe notes marked as follows:
Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

4

Equipment Manual, 04/2020, A5E34934019-AD

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ................................................................................................................................. 6

2 Product overview ..................................................................................................................................... 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................13 Switching cycle counter ..........................................................................................................13

3 Wiring ...................................................................................................................................................... 15

4 Parameters/address space ...................................................................................................................... 18

4.1

Parameters .............................................................................................................................18

4.2

Declaration of parameters ......................................................................................................19

4.3

Address space ........................................................................................................................20

5 Interrupts/diagnostics alarms ................................................................................................................... 26

5.1

Status and error displays ........................................................................................................26

5.2

Interrupts .................................................................................................................................28

5.3

Diagnostics alarms..................................................................................................................29

6 Technical specifications ........................................................................................................................... 30

A Dimensional drawing ............................................................................................................................... 36

B Parameter data records ........................................................................................................................... 38

B.1

Parameter assignment and structure of the parameter data records.....................................38

B.2

Structure of data sets 64 to 79................................................................................................40

B.3

Structure of data set DS 129 ..................................................................................................41

B.4

Structure of data set DS 130 ..................................................................................................43

B.5

Structure of data set DS 131 ..................................................................................................45

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

6

Equipment Manual, 04/2020, A5E34934019-AD

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

7

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

8

Equipment Manual, 04/2020, A5E34934019-AD

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

9

Product overview

2.1

Properties

Article number 6ES7522-5HH00-0AB0

View of the module

2

Figure 2-1 View of the DQ 16x230VAC/2A ST module

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

10

Equipment Manual, 04/2020, A5E34934019-AD

Product overview 2.1 Properties

Properties

The module has the following technical properties:  16 digital outputs (relays)  Supply voltage of the 24 V DC relay coils  Rated output voltage 230 V AC (24 V DC up to 120 V DC/24 V AC up to 230 V AC)  Rated output current 2 A per channel  Configurable substitute values (per channel)  Configurable diagnostics  Switching cycle counter for relay contacts  Suitable for solenoid valves, DC contactors, and indicator lights The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device Switching cycle counter

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher
V1.1.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V13 SP1 with
HSP 0119

GSD file in
STEP 7 (TIA Portal) as of V12 or

X X X X (PROFINET IO only) X (PROFINET IO only) V15.1 or higher with HSP0282
· PROFINET IO only
· Central operation with an S7-1500 CPU

STEP 7 V5.5 SP3 or higher --- / X --- / X X X
(PROFINET IO only) X
(PROFINET IO only) X
(PROFINET IO only)

You configure the module with STEP 7 (TIA Portal) or with a GSD file.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

11

Product overview 2.1 Properties

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01 FS02

Firmware version V1.0.0 V1.1.0

Note
Upgrade to V1.1.0 not possible
Upgrade and downgrade possible between V1.1.0 and higher

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
For example, you order the front connector including the potential bridge and cable tie separately.
You can find additional information on accessories and the article numbers in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

12

Equipment Manual, 04/2020, A5E34934019-AD

2.2

Functions

Product overview 2.2 Functions

2.2.1

Switching cycle counter
The "Switching cycle counter" function records the number of switching cycles of the integrated relay contact. When the "Limit value warning" maintenance alarm is configured and enabled, the "Limit value warning" maintenance alarm is triggered when the specified number of switching cycles is reached.

Typical areas of application:
 Recording the number of switching cycles of the integrated relay contacts
 Predictive maintenance so maintenance and service intervals are more predictable, for example

Advantages

 No programming required, because the switching cycle counter is integrated into the module.
 "Monitoring" of each individual channel is possible. Select which outputs are "monitored".
 The system configuration is flexible and individually adaptable.
 Increase in plant availability. You can foresee a module or actuator replacement in advance for the next maintenance cycle.

Requirement

Firmware version as of V1.1.0 of the module.

Configuration

The switching cycle counter for the integrated relay contacts is always activated. Configure the maintenance alarm to monitor the channels with the following parameters:  Trigger maintenance interrupt when the limit is reached  Set limit for maintenance interrupt

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

13

Product overview 2.2 Functions

How it works

The module counts the switching cycles by evaluating the rising edges of an output signal. If the module detects a rising edge, the switching cycle counter (24-bit) for the respective channel is incremented. The counter stops when the high limit is reached.
If you activate the "Maintenance switching cycles" parameter, the "Limit value warning" of the maintenance alarm is signaled when the limit is exceeded. Alternatively, activate the maintenance interrupt in the parameter data sets starting at DS 64.
The current counter states are stored on the module cyclically (approx. every 20 seconds) and retentively. The switching cycle counters are reset each time the module is restarted (power off/on). If there is no supply voltage, the switching cycle counter stops.
You can read the current counter states with data set DS 129 (Page 41). Data set DS 129 contains the counter status for each channel in UDINT format.
You can read the limits for each channel in UDINT format with data set DS 130 (Page 43).
You can set a limit for each switching cycle counter with the "Switching cycle limit" parameter or data set DS 131 (Page 45).
Note:
The number of permissible switching cycles depends on the type and size of the load. We recommend setting the switching cycle counter to 90% of the actual service life of the contacts, for example. You then still have adequate time to preemptively replace the module.
You can find the permissible number of switching cycles in theTechnical specifications (Page 30).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

14

Equipment Manual, 04/2020, A5E34934019-AD

Wiring

3

This section contains the block diagram of the module and outlines various wiring options.
You will find information on wiring the front connector, establishing a cable shield, etc in the S7-1500/ET 200MP system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792) in section Wiring.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

15

Wiring
Wiring and block diagram The example in the following figure shows the terminal assignment and the assignment of the channels. The individual channels are connected with a relay.
Note Note that the 24 V DC supply voltage for this module must always be supplied by terminals 19/20 and 39/40. Use the supplied potential jumpers for this purpose.

 Relay 16x  Backplane bus interface
L+ Power supply 24 V DC for relay contacts
M Ground

CHx RUN ERROR
MAINT PWR

Figure 3-1 Block diagram and terminal assignment

Channel or channel status LED (green) Status display LED (green) Error display LED (red)
LED maintenance display (yellow) POWER supply voltage LED (green)

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

16

Equipment Manual, 04/2020, A5E34934019-AD

Wiring
Tip: Using the potential jumpers Use the potential jumpers supplied with the front connector if you want to distribute the 24 V DC supply voltage to a neighboring module. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals 19 and 39 (L+) and between terminals 20 and 40 (M). 3. Use the terminals 39 and 40 to loop the potential to the next module.

Figure 3-2 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

17

Parameters/address space

4

4.1

Parameters

DQ 16x230VAC/2A ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The table below lists the parameters that can be set. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module with the WRREC instruction (reconfiguration in RUN) using data records; see section Parameter assignment and structure of the parameter data records (Page 38).

Table 4- 1 Configurable parameters and their defaults

Parameter

Range of values

Default

Diagnostics No supply voltage L+ Reaction to CPU STOP
Maintenance switching cycle counter Switching cycle limits Switching cycle counter limit

Yes/No
· Turn off · Keep last value · Output substitute
value 1

No Turn off

Yes/No

No

0 to 16777214

0

Reconfiguration Range of effectiveness with configu-

in RUN

ration software, e.g. STEP 7

GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Module

Module

Yes

Channel

Channel

Yes Yes

Channel

---

Channel

---

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

18

Equipment Manual, 04/2020, A5E34934019-AD

Parameters/address space 4.2 Declaration of parameters

4.2

Declaration of parameters

No supply voltage L+ Enabling of the diagnostics at no or insufficient supply voltage L+.
Reaction to CPU STOP Determines the reaction of the output to the CPU going into STOP state or when the connection to the CPU is interrupted.
Maintenance switching cycles You use this parameter to enable the maintenance alarm "Limit value warning" when the switching cycle counter limit is violated. You configure the limit with the parameter "Switching cycle limit" for each channel CHx.
Switching cycle limit Defines the limit value channel-by-channel. If this value is exceeded, the "Limit value warning" maintenance alarm is signaled. Enter an integer value between 0 and 16777214.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

19

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 16x230VAC/2A ST You can configure the module with STEP 7 or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration

Short designation/module name in the GSD file

1 x 16-channel without value status 1 x 16-channel with value status 2 x 8-channel without value status

DQ 16x230VAC/2A ST DQ 16x230VAC/2A ST QI DQ 16x230VAC/2A ST S

2 x 8-channel with value status

DQ 16x230VAC/2A ST S QI

1 x 16-channel with value status for module-internal Shared Output with up to 4 submodules

DQ 16x230VAC/2A ST MSO

Configuration software, e.g., STEP 7

Integrated in hardware catalog STEP 7 V13,
SP1 or higher with HSP 0119
X X X (PROFINET IO only) X (PROFINET IO only) X (PROFINET IO only)

GSD file in STEP 7 as of V12 or
STEP 7 as of V5.5 SP3
X X X (PROFINET IO only) X (PROFINET IO only) X (PROFINET IO only)

Note Substitute value behavior in shared device operation with the following configuration (V1.0 only): · 2 x 8-channel with / without value status
If the system is in shared device mode and one of the IO controllers involved goes into STOP or fails due to a communication failure, for example, all submodules of the output module perform the configured substitute value reaction (e.g. shutdown).
This means that even when only one IO controller fails, the other IO controllers associated with the shared device no longer control the assigned submodule of the output module.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

20

Equipment Manual, 04/2020, A5E34934019-AD

Parameters/address space 4.3 Address space
Value status (Quality Information, QI) The value status is always activated for the following modules:  DQ 16x230VAC/2A ST QI  DQ 16x230VAC/2A ST S QI  DQ 16x230VAC/2A ST MSO An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).
Note Limit value warning The maintenance alarm "Limit value warning" has no effect on the value status.
Address space for configuration as 16-channel DQ 16x230VAC/2A ST QI The following figure shows the assignment of the address space for the configuration as a 16-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to b" are printed on the module; "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 16-channel DQ 16x230VAC/2A ST QI with value status

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

21

Parameters/address space 4.3 Address space Address space for configuration as 2 x 8-channel DQ 16x230VAC/2A ST S QI
For the configuration as a 2 x 8-channel module, the channels of the module are divided into two submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of IO controllers depends on the interface module being used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 16-channel module configuration, each of the two submodules has a freely assignable start address. The addresses for the respective value status of a submodule can also be assigned by the user.
Figure 4-2 Address space for configuration as 2 x 8-channel DQ 16x230VAC/2A ST S QI with value status

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

22

Equipment Manual, 04/2020, A5E34934019-AD

Parameters/address space 4.3 Address space
Address space for configuration as 1 x 16-channel DQ 16x230VAC/2A ST MSO For the configuration as a 1 x 16-channel module (module-internal Shared Output, MSO), channels 0 to 15 of the module are copied to multiple submodules. Channels 0 to 15 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 15.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 15. The number of IO controllers depends on the interface module being used. Observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

23

Parameters/address space 4.3 Address space
The figure below shows the assignment of the address space for submodules 1 and 2 and the value status.

Figure 4-3 Address space for configuration as 1 x 16-channel DQ 16x230VAC/2A ST MSO with value status

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

24

Equipment Manual, 04/2020, A5E34934019-AD

Parameters/address space 4.3 Address space
The figure below shows the assignment of the address space for submodules 3 and 4 and the value status.

Reference

Figure 4-4 Address space for configuration as 1 x 16-channel DQ 16x230VAC/2A ST MSO with value status
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V15 (http://support.automation.siemens.com/WW/view/en/49948856).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

25

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the DQ 16x230VAC/2A ST.

5

Figure 5-1 LED displays of the DQ 16x230VAC/2A ST module

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

26

Equipment Manual, 04/2020, A5E34934019-AD

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostics alarms can be found in the section Diagnostics alarms (Page 29).

RUN and ERROR LED

Table 5- 1 RUN and ERROR status and error displays

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Flashes Flashes

Meaning Voltage missing or too low at backplane bus
The module starts and flashes until the valid parameter assignment is set. Module parameters assigned Indicates module error because supply voltage L+ is missing Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Check the supply voltage L+ at the terminals 19 and 20 or 39 and 40. Replace the module.

LED MAINT

Table 5- 2 MAINT status display

LED MAINT Off On

Meaning 0 = No maintenance interrupt is pending.
1 = The maintenance interrupt "Limit value warning" is pending.

Solution ---
Perform maintenance.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

27

Interrupts/diagnostics alarms 5.2 Interrupts

PWR LED

Table 5- 3 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

CHx LED

Table 5- 4 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal
1 = Status of the output signal

Solution Check the supply voltage L+ at the terminals 19 and 20 or 39 and 40. ---
Solution -----

5.2

Interrupts

The digital output module DQ 16x230VAC/2A ST supports diagnostics interrupts and maintenance alarms.

Diagnostic interrupt The module generates a diagnostic interrupt at the following event:  Missing supply voltage L+  Parameter assignment error

Maintenance alarm The module generates a maintenance alarm at the following event: Limit value warning.
Detailed information You can find detailed information on the event in the error organization block with the "RALRM" instruction (read alarm status information) and in the STEP 7 online help.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

28

Equipment Manual, 04/2020, A5E34934019-AD

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostic interrupt is generated and the ERROR LED flashes on the module for each diagnostics message. You can read out the diagnostics interrupts, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/78324181).

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm
Parameter assignment error

Error code 10H

No load voltage

11H

Limit value warning

17H

Meaning
The module cannot evaluate parameters for the channel
Incorrect parameter assignment
Supply voltage L+ of the module is missing
The configured limit for switching cycles has been exceeded.

Corrective measures Correct the parameter assignment
Connect supply voltage L+ to module/channel · Replace module / actuator as a
precautionary measure

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

29

Technical specifications

6

Technical specifications of the DQ 16x230VAC/2A ST
The following table shows the technical specifications as of 04/2020. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7522-5HH00-0AB0/td?dl=en).

Article number General information
HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DQ
· DQ with energy-saving function
· PWM
· Oversampling
· MSO
· Integrated operating cycle counter Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection

6ES7522-5HH00-0AB0
From FS02 V1.1.0 Yes
Yes; I&M0 to I&M3 No
V13 SP1 / -
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes No No No Yes Yes; FW V1.1.0 or higher
24 V 20.4 V 28.8 V Yes

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

30

Equipment Manual, 04/2020, A5E34934019-AD

Technical specifications

Article number Input current
Current consumption, max. Output voltage
Rated value (AC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital outputs Type of digital output Number of digital outputs Current-sinking Current-sourcing Digital outputs, parameterizable Short-circuit protection Controlling a digital input Size of motor starters according to NEMA, max.
Switching capacity of the outputs · on lamp load, max.
Output current · for signal "1" rated value
· for signal "1" permissible range, min.
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per channel, max.
· Current per group, max.
· Current per module, max.

6ES7522-5HH00-0AB0
185 mA
230 V; 24 V DC to 120 V DC / 24 V AC to 230 V AC
0.8 W
5 W
Relays 16 Yes Yes Yes No Yes 5
50 W (230 V AC), 5 W (24 V DC)
2 A 10 mA; 10 V 2 A; thermal continuous current 0 A
Yes No Yes
1 Hz 0.5 Hz 1 Hz
2 A; see additional description in the manual 4 A; see additional description in the manual 32 A; see additional description in the manual

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

31

Technical specifications

Article number Relay outputs
· Number of relay outputs · Rated supply voltage of relay coil L+ (DC) · Current consumption of relays (coil current
of all relays), typ. · external protection for relay outputs · Contact connection (internal) · Number of operating cycles, max. · Relay approved acc. to UL 508 Switching capacity of contacts
­ with inductive load, max. ­ with resistive load, max. Cable length · shielded, max. · unshielded, max. Interrupts/diagnostics/status information Diagnostics function Substitute values connectable Alarms · Diagnostic alarm Diagnostic messages · Monitoring the supply voltage · Wire-break · Short-circuit Diagnostics indication LED · RUN LED · ERROR LED · MAINT LED · Monitoring of the supply voltage (PWRLED) · Channel status display · for channel diagnostics · for module diagnostics

6ES7522-5HH00-0AB0
16 24 V 185 mA
Miniature circuit breaker B10 / B16 No see additional description in the manual No
2 A; see additional description in the manual 2 A; see additional description in the manual
1 000 m 600 m
Yes Yes
Yes
Yes No No
Yes; green LED Yes; red LED Yes; Yellow LED Yes; green LED
Yes; green LED No Yes; red LED

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

32

Equipment Manual, 04/2020, A5E34934019-AD

Technical specifications

Article number Potential separation Potential separation channels
· between the channels

6ES7522-5HH00-0AB0 No

· between the channels, in groups of

2

· between the channels and backplane bus Yes

· Between the channels and load voltage L+ Yes

Permissible potential difference between different circuits
Isolation Isolation tested with
Standards, approvals, certificates Suitable for safety functions
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

250 V AC between the channels and the supply voltage L+; 250 V AC between the channels and the backplane bus; 500 V AC between the channels
Between channels: 3 100 V DC; between channels backplane bus: 3 100 V DC; between L+ and backplane bus: 707 V DC (type test)
No
-25 °C; From FS02

· horizontal installation, max.

60 °C

· vertical installation, min.

-25 °C; From FS02

· vertical installation, max.

40 °C

Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

Yes
35 mm 147 mm 129 mm
350 g

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

33

Technical specifications

Details on the number of switching cycles
The following tables list the permissible number of switching cycles depending on the applied voltage and current load. Different values apply in each case to resistive and inductive loads.

Table 6- 1 Switching capacity and service life of relay contacts for resistive load

For resistive load Voltage
24 V DC
60 V DC 120 V DC 24 V AC 48 V AC 60 V AC 120 V AC
230 V AC

Current
2.0 A 1.0 A 0.5 A 0.5 A 0.2 A 1.5 A 1.5 A 1.0 A 2.0 A 1.0 A 0.5 A 2.0 A 1.0 A 0.5 A

Number of switching cycles (typ.) 0.1 million 0.2 million 1.0 million 0.2 million 0.6 million 1.5 million 1.5 million 1.5 million 1.0 million 1.5 million 2.0 million 1.0 million 1.5 million 2.0 million

Table 6- 2 Switching capacity and lifetime of the relay contacts for inductive load

For inductive load Voltage
24 V DC
60 V DC 120 V DC 24 V AC 48 V AC 60 V AC 120 V AC
230 V AC

Current
2.0 A 1.0 A 0.5 A 0.5 A 0.2 A 1.5 A 1.5 A 1.5 A 2.0 A 1.0 A 0.5 A 2.0 A 1.0 A 0.5 A

Number of switching cycles (typ.) 0.05 million 0.1 million 0.5 million 0.1 million 0.3 million 1.0 million 1.0 million 1.0 million 0.7 million 1.0 million 1.5 million 0.7 million 1.0 million 1.5 million

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

34

Equipment Manual, 04/2020, A5E34934019-AD

Technical specifications
Power reduction (derating) of outputs according to number of channels The following graphs show the number of usable channels in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature. The total current of the outputs remains unaffected.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Information on power reduction of outputs according to number of channels

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

35

Dimensional drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the DQ 16x230VAC/2A ST module

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

36

Equipment Manual, 04/2020, A5E34934019-AD

Dimensional drawing
Figure A-2 Dimension drawing of the DQ 16x230VAC/2A ST module, side view with open front cover

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

37

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the response of selected channels to the CPU STOP state can be changed in RUN without having an effect on the other channels).

Changing parameters in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 79. The parameters set in STEP 7 are not changed in the CPU, which means the parameters set in STEP 7 are valid again after a restart.
The parameters are only checked for plausibility by the module after the transfer.

STATUS output parameter
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module in the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

38

Equipment Manual, 04/2020, A5E34934019-AD

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel For the configuration as a 1 x 16-channel module, the parameters are located in data records 64 to 79 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 78 for channel 14  Data record 79 for channel 15
For the configuration as a 2 x 8-channel module, the module has 2 submodules with eight channels each. The parameters for the channels are located in data records 64 to 71 and are assigned as follows:  Data records 64 to 71 for channels 0 to 7 (submodule 1)  Data records 64 to 71 for channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.
Assignment of data record for the switching cycle counter The parameters for the switching cycle counter are located in the data records 129 to 130 and are assigned as follows: Data record 129 for channels 0 to 15 to read the counter values Data record 130 for channels 0 to 15 to read the limit values
For the configuration as a 2 x 8-channel module, the module has 2 submodules with eight channels each. The parameters for the switching cycle counter are located in the data records 129 to 130 and are assigned as follows:  Data records 129 for channels 0 to 7 (submodule 1) and channels 8 to 15 (submodule 2)  Data records 130 for channels 0 to 7 (submodule 1) and channels 8 to 15 (submodule 2) Address the respective submodule for data record transfer.

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

39

Parameter data records B.2 Structure of data sets 64 to 79

B.2

Structure of data sets 64 to 79

Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 16. The values in byte 0 and byte 1 are fixed and may not be changed.
Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

40

Equipment Manual, 04/2020, A5E34934019-AD

Parameter data records B.3 Structure of data set DS 129

B.3

Structure of data set DS 129

Structure of data set 129
You can read the current states of the switching cycle counters with data set 129. The counter status is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 129 for 16 channels.

Figure B-2 Structure of data set 129: Byte 0 to 63

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

41

Parameter data records B.3 Structure of data set DS 129
The following figure shows you the structure of data set 129 for 2 submodules with 8 channels each.
Figure B-3 Structure of data set 129: Byte 0 to 31

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

42

Equipment Manual, 04/2020, A5E34934019-AD

Parameter data records B.4 Structure of data set DS 130

B.4

Structure of data set DS 130

Structure of data set 130
The limits of the switching cycle counters are read out with data set 130. The set value is supplied for each channel in UDINT format. The length of the data set results from the number of channels in the selected submodule.
The following figure shows you the structure of data set 130 for 16 channels.

Figure B-4 Structure of data set 130: Byte 0 to 63

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

43

Parameter data records B.4 Structure of data set DS 130
The following figure shows you the structure of data set 130 for 2 submodules with 8 channels each.
Figure B-5 Structure of data set 130: Byte 0 to 31

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

44

Equipment Manual, 04/2020, A5E34934019-AD

Parameter data records B.5 Structure of data set DS 131

B.5

Structure of data set DS 131

Structure of data set 131 The following figure shows you the structure of data set 131 for 16 channels. Enable a parameter by setting the corresponding bit to "1".

Figure B-6 Structure of data set 131: Bytes 0 to 7

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

Equipment Manual, 04/2020, A5E34934019-AD

45

Parameter data records B.5 Structure of data set DS 131
The following figure shows you the structure of data set 131 for 2 submodules with 8 channels each.
Figure B-7 Structure of data set 131: Bytes 0 to 7

Digital output module DQ 16x230VAC/2A ST Relay (6ES7522-5HH00-0AB0)

46

Equipment Manual, 04/2020, A5E34934019-AD

SIMATIC
S7-1500/ET 200MP Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Di_ag_n_os_tic_a_la_rm_s_________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

09/2016
A5E03485733-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485733-AD  11/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

4

Manual, 09/2016, A5E03485733-AD

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 14

4.1

Parameters............................................................................................................................. 14

4.2

Address space ....................................................................................................................... 15

5 Diagnostic alarms ................................................................................................................................. 18

5.1

Status and error displays ....................................................................................................... 18

6 Technical specifications ........................................................................................................................ 20

A Dimensional drawing............................................................................................................................. 24

B Parameter data records ........................................................................................................................ 26

B.1

Parameter assignment and structure of the parameter data records .................................... 26

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

6

Manual, 09/2016, A5E03485733-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

8

Manual, 09/2016, A5E03485733-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

10

Manual, 09/2016, A5E03485733-AD

Product overview

2.1

Properties

Article number
6ES7522-5FF00-0AB0

View of the module

2

Properties

Figure 2-1 View of the DQ 8x230VAC/2A ST module
The module has the following technical properties:  8 digital outputs (Triac)  Rated output voltage 120 V/230 V AC  Rated output current 2 A  Configurable substitute values (per channel)  Suitable for solenoid valves, DC contactors, indicator lights and smaller single phase
drives

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO)

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher

Configurable after interface module IM 155-5 DP ST

V2.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

--- / X

V12 or higher

X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 or higher

X

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following components are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

12

Manual, 09/2016, A5E03485733-AD

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Note Do not insert the potential jumpers included with the front connector!
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels.

 Backplane bus interface

CHx RUN ERROR

Channel or channel status LED (green/red) Status display LED (green) Error display LED (red)

Figure 3-1 Block diagram and terminal assignment

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

13

Parameters/address space

4

4.1

Parameters

DQ 8x230VAC/2A ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter reassignment in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 26).

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Diagnostics
Reaction to CPU STOP

· Turn off · Keep last value · Output substitute value 1

Default setting Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Turn off

Yes

Channel

Channel

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

14

Manual, 09/2016, A5E03485733-AD

Parameters/address space 4.2 Address space

4.2

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 8x230VAC/2A ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status for module-internal Shared Output with up to 4 submodules

Short designation/module name in the GSD file
DQ 8x230VAC/2A ST DQ 8x230VAC/2A ST MSO

Configuration software, e.g., STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the DQ 8x230VAC/2A ST MSO module. An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).
Address space for configuration as 8-channel DQ 8x230VAC/2A ST
The following figure shows the assignment of the address space for the configuration as a 8-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module; "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 8-channel DQ 8x230VAC/2A ST

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

15

Parameters/address space 4.2 Address space
Address space for configuration as 1 x 8-channel DQ 8x230VAC/2A ST MSO
For the configuration as a 1 x 8-channel module (module-internal Shared Output, MSO), channels 0 to 7 of the module are copied to multiple submodules. Channels 0 to 7 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 7.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 7. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

16

Manual, 09/2016, A5E03485733-AD

Parameters/address space 4.2 Address space
The following figure shows the assignment of the address space for submodules 1, 2, 3, and 4 and the value status.

Reference

Figure 4-2 Address space for configuration as 1 x 8-channel DQ 8x230VAC/2A ST S MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

17

Diagnostic alarms

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of DQ 8x230VAC/2A ST.

5

Figure 5-1 LED displays of the module DQ 8x230VAC/2A ST

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

18

Manual, 09/2016, A5E03485733-AD

Diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On
Flashes

Off Off Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal
1 = Status of the output signal

Remedy ---
---

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

19

Technical specifications

6

Technical specifications of the DQ 8x230VAC/2A ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7522-5FF00-0AB0
DQ 8x230VAC/2A ST (Triac) FS01 V2.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V12 / V12

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSO

Yes

Output voltage

Rated value (AC)

120/230 V AC, 50 / 60 Hz

Power Power consumption from the backplane bus Power loss Power loss, typ. Digital outputs

0.9 W 10.8 W

Number of outputs Sourcing output Short-circuit protection Switching capacity of outputs With resistive load, max. With lamp load, max. Output voltage For signal "1", min.

8 Yes No
2 A 50 W
L1 (-1.5 V) at maximum output current; L1 (-8.5 V) at minimum output current

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

20

Manual, 09/2016, A5E03485733-AD

Technical specifications

6ES7522-5FF00-0AB0

Output current

For signal "1" rated value

2 A

For signal "1" permitted range, min.

10 mA

For signal "1" permitted range, max.

15 A; max. 1 AC cycle

For signal "0" residual current, max.

2 mA

Output delay with resistive load

"0" to "1", max.

1 AC cycle

"1" to "0", max.

1 AC cycle

Parallel connection of two outputs

For logic operations

No

For increased performance

No

For redundant control of a load

Yes

Switching frequency

With resistive load, max.

10 Hz

With inductive load, max.

0.5 Hz

With lamp load, max.

1 Hz

Total current of outputs

Current per channel, max.

2 A; see additional description in the manual

Current per group, max.

2 A; see additional description in the manual

Current per module, max.

10 A; see additional description in the manual

Triac outputs

Size of motor starter according to NEMA, max.

5

Cable length

shielded, max.

1000 m

unshielded, max.

600 m

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

No

Channel status display

Yes; green LED

For channel diagnostics

No

For module diagnostics

Yes; red LED

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

21

Technical specifications

Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and load voltage L1 Permitted potential difference Between different circuits
Insulation Insulation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed operation Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7522-5FF00-0AB0
Yes 1 Yes Yes
250 V AC between the channels and the backplane bus; 500 V AC between the channels
3100 V DC
0 °C 60  0 °C 40 °C
Yes
35 mm 147 mm 129 mm
290 g

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

22

Manual, 09/2016, A5E03485733-AD

Technical specifications
Power reduction (derating) to aggregate current of outputs (per module)
The following graphs show the loading capacity of the outputs in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per module)

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

23

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 8x230VAC/2A ST module

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

24

Manual, 09/2016, A5E03485733-AD

Dimensional drawing
Figure A-2 Dimensional drawing of the DQ 8x230VAC/2A ST module, side view with open front cover

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

25

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the response of selected channels to the CPU-STOP state can be changed in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 71. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module device manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

26

Manual, 09/2016, A5E03485733-AD

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel
The channel parameters of the module are included in data records 64 to 71 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  Data record 66 for channel 2  Data record 67 for channel 3  Data record 68 for channel 4  Data record 69 for channel 5  Data record 70 for channel 6  Data record 71 for channel 7
Data record structure
The example in the following figure shows the structure of data record 64 for channel 0. The structure of channels 1 to 7 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 8x230VAC/2A ST Triac (6ES7522-5FF00-0AB0)

Manual, 09/2016, A5E03485733-AD

27

SIMATIC
S7-1500/ET 200MP DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

06/2018
A5E03485650-AF

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485650-AF  08/2018 Subject to change

Copyright © Siemens AG 2013 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:  New licensing conditions and copyright information of the Open Source Software  The module features a switching cycle counter as of firmware version V2.2.0.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

4

Manual, 06/2018, A5E03485650-AF

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1 2.2.2

Functions ................................................................................................................................13 Pulse-width modulation (PWM) ..............................................................................................13 Switching cycle counter ..........................................................................................................17

3 Wiring ................................................................................................................................................... 19

4 Parameters/address space ................................................................................................................... 21

4.1 4.1.1 4.1.2 4.1.3 4.1.4

Parameters .............................................................................................................................21 DQ operating mode parameter ...............................................................................................22 Explanation of the parameters of DQ mode ...........................................................................23 Pulse width modulation operating mode parameter ...............................................................24 Explanation of the parameters of pulse width modulation mode ............................................25

4.2 4.2.1 4.2.2

Address space ........................................................................................................................26 Address space operating mode DQ........................................................................................27 Address space operating mode pulse-width modulation ........................................................29

5 Interrupts/diagnostics alarms................................................................................................................. 30

5.1

Status and error displays ........................................................................................................30

5.2

Interrupts .................................................................................................................................32

5.3

Diagnostics alarms..................................................................................................................33

6 Technical specifications ........................................................................................................................ 34

A Dimensional drawing............................................................................................................................. 41

B Parameter data records......................................................................................................................... 43

B.1

Parameter assignment............................................................................................................43

B.2

Structure of parameter data sets DS 64 - 71 ..........................................................................45

B.3

Structure of data set DS 129 ..................................................................................................46

B.4

Structure of data set DS 130 ..................................................................................................47

B.5

Structure of data set DS 131 ..................................................................................................48

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

6

Manual, 06/2018, A5E03485650-AF

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

8

Manual, 06/2018, A5E03485650-AF

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

9

Product overview

2.1

Properties

Article number
6ES7522-1BF00-0AB0

View of the module

2

Figure 2-1 View of the DQ 8x24VDC/2A HF module

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

10

Manual, 06/2018, A5E03485650-AF

Product overview 2.1 Properties

Properties

The module has the following technical properties:  8 digital outputs, electrically isolated in groups of 4
­ of which optional channels 0 and 4 are available for pulse width modulation (PWM).  Rated output voltage 24 V DC  Rated output current 2 A  Configurable substitute values (per channel)  Configurable diagnostics (per channel)  Suitable for solenoid valves, contactors, DC contactors and indicator lights  Switching cycle counter for connected actuators, e.g. solenoid valves The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO) Pulse-width modulation (PWM) for channel 0 and 4 Switching cycle counter

Configuration software

Firmware version of the module

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V1.0.0 or higher

V12 or higher

--- / X

V1.0.0 or higher

V12 or higher

X

V1.0.0 or higher

V12 or higher

X

V2.0.0 or higher

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V2.1.0 or higher

as of V13, SP1 with HSP 0178

X (PROFINET IO only)

V2.2.0 or higher as of V15.0 with HSP0247

X

· PROFINET IO only

(PROFINET IO only)

· Central operation with a S7-1500 CPU is supported

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

11

Product overview 2.1 Properties

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01
FS02
FS03

Firmware version Note

V1.0.0 to V2.1.0 V1.0.0 to V2.1.0 V2.2.0

Upgrade and downgrade possible between V1.0.0 and V2.1.0
Upgrade and downgrade possible between V1.0.0 and V2.1.0
Upgrade and downgrade possible between V2.2.0 and higher

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP. (https://support.industry.siemens.com/cs/ww/en/view/59191792)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

12

Manual, 06/2018, A5E03485650-AF

2.2

Functions

Product overview 2.2 Functions

2.2.1

Pulse-width modulation (PWM)
Channels 0 and 4 of the module support the pulse width modulation (PWM) function. The pulse width modulation function can be used to easily generate periodic pulses with a constant rated voltage and a variable pulse duration for the above-mentioned channels.

Advantages

 Automatic generation of periodic signals (without user program).  Possibility of power reduction, e.g. in solenoid valves.

Typical areas of application:
 Control of proportional valves and way values (e.g. energy saving by reducing the holding current).
 Heating control e.g. via an external additional power unit.

Requirement

Firmware version as of V2.1.0 of the module.

Rules

Channels 0 and 4 can be used together and individually in pulse width modulation mode. The remaining channels can continue to be used as digital outputs.

Configuration

You configure the pulse width modulation with the following parameters:  Pulse width modulation mode for activating the function  Pulse width modulation (time period)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

13

Product overview 2.2 Functions

How it works

In the pulse width modulation mode, the two outputs (channels 0 and 4) provide one pulse width modulated output signal.
Pulse width modulation is characterized by its time period (frequency) and its duty factor (also referred to as ON period or Duty Cycle ). The duty factor describes the relation between pulse duration and time period.
The pulse duration is derived from the time period and the duty factor: Pulse duration = duty factor x time period.
Example for duty factor of 50% and time period of 10 ms:
Pulse duration 0.5 x 10 ms = 5 ms
You define the duty factor for channels 0 and 4 in the user program using the output value (0 ... 1000) in the process image output; see section Address space operating mode pulsewidth modulation (Page 29).
The output signal is a square wave signal (pulse sequence of on and off pulses).

 Time period T (2 to 100 ms); Frequency of the pulse width modulation: f = 1/T (10 to 500 Hz)  Pulse duration (duty factor x time period)
Figure 2-2 How pulse width modulation works
Minimum pulse duration
The minimum pulse duration is 300 s due to the hardware. The duty factor can be adjusted from 0.0 to 100.0%. The time period can be adjusted from 2 to 100 ms. Example: If you configure a time period of 2 ms and set a duty factor of 10% for the output, this results in a pulse duration of 200 s. In fact, the output works with a minimum pulse duration of 300 s.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

14

Manual, 06/2018, A5E03485650-AF

Product overview 2.2 Functions
Pulse waveform
The pulse duration of the actual signal profile is slightly longer than the specified, ideal pulse duration. The figure below shows the reaction of the output to control by PWM. The blue line shows the specified, ideal signal profile (square wave signal), with which the output is controlled. The red dashed line shows the actual signal profile on the output terminal, caused by the externally connected load.
 Time period  Pulse duration (duty factor x time period)
Figure 2-3 Pulse waveform at output terminal

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

15

Product overview 2.2 Functions
Example for energy saving by reducing the holding current
High starting current is required to activate a solenoid valve. When the solenoid valve is activated, the current requirement is lower; it only has to be held in position. This timedependent current requirement can be met well with the PWM function.
The "ValveControl" function block shown below sets the holding current required by a solenoid valve only after the configured time (HoldTime) has expired. You can generate the required holding current with a duty factor (PWM duty cycle << 100%). While "HoldTime" is running, the output is set (duty factor = 100 %) to generate a high starting torque for the solenoid valve.
FUNCTION_BLOCK "ValveControl" { S7_Optimized_Access := 'FALSE' } VERSION : 0.1 VAR_INPUT
OutputTrigger : Bool; // Binary control of the output HoldTime : Time; // Lenght of time until the PWM output begins PWM_DutyCycle : Int; // PWM duty cycle after hold time END_VAR VAR_OUTPUT PWM_Out : Int; // Value for PWM output END_VAR VAR Hold_TON {OriginalPartName := 'TON'; LibVersion := '1.0'} : TON; END_VAR
BEGIN
#Hold_TON(IN:=#OutputTrigger, PT:=#HoldTime);
IF #OutputTrigger = FALSE THEN #PWM_Out := 0; RETURN;
END_IF; IF #Hold_TON.Q THEN // Hold time expired => switch to PWM mode #PWM_Out := #PWM_DutyCycle;
ELSE // Control output to 100% during hold time #PWM_Out := 1000;
END_IF;
END_FUNCTION_BLOCK

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

16

Manual, 06/2018, A5E03485650-AF

Product overview 2.2 Functions

2.2.2

Switching cycle counter
The function records the number of switching cycles of the output and thus the switching cycles of a connected actuator, such as those of solenoid valves. When the specified number of switching cycles is reached, the "Limit value warning" maintenance interrupt is triggered, provided it is configured and enabled. When replacing the actuator, you can reset the switching cycle counter from the user program.
When replacing modules, you have the option of pre-initializing the switching cycle counter from the user program.

Typical areas of application:
 Recording the number of switching cycles of the connected devices, e.g. solenoid valves or load contactors
 Predictive maintenance

Advantages

 You configure this function instead of programming.
 "Monitoring" of each individual channel is possible. You can select which outputs are "monitored".
 You can adapt the plant configuration flexibly and individually.
 Easy to service and maintain. You can enable and disable the switching cycle counter via the user program.
 Increase in plant availability. You can schedule actuator replacement in advance for the next maintenance cycle.

Requirement

Firmware version as of V2.2.0 of the module.

Configuration

You configure the switching cycle counter with the following parameters:  Switching cycle counter enabled/disabled  Trigger maintenance interrupt when the limit is reached  Set limit for maintenance interrupt

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

17

Product overview 2.2 Functions

How it works

The module counts the switching cycles by evaluating the rising edges of an output signal. If the module detects a rising edge, the switching cycle counter (24-bit) for the respective channel is incremented. After an overflow of the switching cycle counter, it starts again with 0.
If you activate the "Maintenance switching cycles" parameter, the "Limit warning" of the maintenance interrupt is triggered when the limit is exceeded. Alternatively, activate the maintenance interrupt in the parameter data sets starting at DS 64.
The current counter states are stored on the module cyclically (approx. every 20 seconds) and retentively. The switching cycle counters are reset each time the module is restarted (power off/on).
You activate the function with the "Switching cycle counter" parameter or in the parameter data sets starting at DS 64.
You can read the current counter states with data set DS 129. Data set DS 129 contains the counter status for each channel in UDINT format.
You can read the limits for each channel in UDINT format with data set DS 130.
Data set DS 131 enables you to overwrite the current counter value for each switching cycle counter.
You can set a limit for each switching cycle counter with the "Switching cycle limit" parameter or with data set DS 131.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

18

Manual, 06/2018, A5E03485650-AF

Wiring

3

This section contains the block diagram of the module and outlines various wiring options. You can find information on wiring the front connector, establishing a cable shield, etc. in the "Wiring" section of system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Wiring and block diagram
The example in the following figure shows the terminal assignment and the assignment of the channels. You can optionally assign parameters to channels 0 and channel 4 for pulse width modulation mode.



Backplane bus interface

xL+

Supply voltage 24 V DC

xM

Ground

CHx

Channel or channel status LED

(green/red)

Figure 3-1 Block diagram and terminal assignment

MAINT RUN ERROR PWR

LED maintenance display (yellow) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

19

Wiring Wiring of the outputs for channels 0 and 4 for inductive load
If you set the channel 0 and channel 4 for the pulse width modulation mode, then you need to wire the outputs CH0 and CH4 with an external diode (blocking voltage UR > 60 V; letthrough current IF > 1.5 A); see figure below.
Figure 3-2 Wiring of the outputs for inductive load

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

20

Manual, 06/2018, A5E03485650-AF

Parameters/address space

4

4.1

Parameters

DQ 8x24VDC/2A HF parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter assignment in RUN) and data records; see chapter Parameter assignment (Page 43).

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

21

Parameters/address space 4.1 Parameters

4.1.1

DQ operating mode parameter

DQ 8x24VDC/2A HF parameters
The table below lists the parameters in DQ mode. These parameters apply to channels 0 to 7.

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Parameter assignment in RUN

Diagnostics · No supply voltage L+
· Short circuit to ground
· Maintenance switching cycles

Yes/No Yes/No Yes/No

· Switching cycle counter Yes/No

No

Yes

No

Yes

No

Yes

No

Yes

Reaction to CPU STOP

· Turn off

Turn off

Yes

· Keep last value
· Output substitute value 1

Switching cycle limits

Switching cycle limit

0 ... 16777214

0

Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel*
Channel
Channel (as of V15.0 with HSP0247) Channel (as of V15.0 with HSP0247) Channel

Channel group Channel group ---
---
Channel

Channel

---

(as of V15.0 with HSP0247)

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

22

Manual, 06/2018, A5E03485650-AF

Parameters/address space 4.1 Parameters

4.1.2

Explanation of the parameters of DQ mode

No supply voltage
Enabling of the diagnostics, for lacking or insufficient supply voltage L+.

Short circuit to ground
Enabling of the diagnostics if a short-circuit of the actuator supply to ground occurs.

Maintenance switching cycles
You use this parameter to enable the maintenance interrupt "Limit value warning" when the switching cycle limit is violated.
You configure the limit with the parameter "Switching cycle limit" for each channel CHx.

Switching cycle counter
Channel-by-channel enable of switching cycle counter (Page 17).

Reaction to CPU STOP
Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.

Switching cycle limit
Defines the limit channel-by-channel. If this value is exceeded, the "Limit value warning" maintenance interrupt is signaled.
Enter an integer value between 0 and 16777214. Refer to the data sheet of the connected actuator. We recommend that you do not enter this maximum value, but instead set it to 80% or 90%, for example, so that you have enough time to replace the actuator as a preventive measure.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

23

Parameters/address space 4.1 Parameters

4.1.3

Pulse width modulation operating mode parameter

DQ 8x24VDC/2A HF parameters
The table below lists the parameters in pulse width modulation mode. These parameters apply to channels 0 and 4.

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Default setting Parameter assignment in RUN

Diagnostics
· No supply voltage L+

Yes/No

No

Yes

· Short circuit to ground

Yes/No

No

Yes

Reaction to CPU

· Turn off

Turn off

Yes

STOP

· Keep last value

Operating mode

· Digital output (DQ) Digital output Yes · Pulse width modula- DQ
tion

Pulse width modulati- 2 ... 100 ms* on
(Period duration)

10 ms

No

* 20 ... 1000 [x 0.1] with GSD file

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7 (TIA Portal) as of V 13 SP1 GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

---

Channel

---

Channel

---

Channel

---

Module

---

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

24

Manual, 06/2018, A5E03485650-AF

Parameters/address space 4.1 Parameters

4.1.4

Explanation of the parameters of pulse width modulation mode

Missing supply voltage
Enabling of the diagnostics for missing or insufficient supply voltage L+.

Short-circuit to ground
Enabling of the diagnostics if a short-circuit of the actuator supply to ground occurs.

Reaction to CPU STOP
Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.

Operating mode
Specifies the operating mode in which the channels 0 and 4 of the module are operated.  Digital output DQ as digital output channel  Pulse width modulation, see section Pulse-width modulation (PWM) (Page 13)

Pulse width modulation time period
Specifies the period duration and therefore the frequency of the pulse width modulation. See sectionPulse-width modulation (PWM) (Page 13)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

25

Parameters/address space 4.2 Address space

4.2

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of DQ 8x24VDC/2A HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status 1 x 8-channel with value status for module-internal Shared Output with up to 4 submodules 1 x 8-channel with value status (channel 0 and channel 4 for PWM)

Short designation/module name in the GSD file
DQ 8x24VDC/2A HF DQ 8x24VDC/2A HF QI DQ 8x24VDC/2A HF MSO
DQ 8x24VDC/2A HF PWM

Configuration software, e.g., STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

X

X

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

as of V13 SP1 with HSP 0178

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  DQ 8x24VDC/2A HF QI  DQ 8x24VDC/2A HF MSO  DQ 8x24VDC/2A HF PWM An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).
Note The maintenance interrupt "Limit value warning" has no effect on the value status.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

26

Manual, 06/2018, A5E03485650-AF

Parameters/address space 4.2 Address space

4.2.1

Address space operating mode DQ

Address space for configuration as 8-channel DQ 8x24VDC/2A HF
The following figure shows the assignment of the address space for the configuration as a 8channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.
The letter "a" is are printed on the module; "AB a" stands for module start address output byte a.

Figure 4-1 Address space for configuration as 8-channel DQ 8x24VDC/2A HF with value status
Address space for configuration as 1 x 8-channel DQ 8x24VDC/2A HF MSO
For the configuration as a 1 x 8-channel module (module-internal Shared Output, MSO), channels 0 to 7 of the module are copied to multiple submodules. Channels 0 to 7 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 7.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 7. The number of usable IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

27

Parameters/address space 4.2 Address space
The following figure shows the assignment of the address space for submodules 1, 2, 3, and 4 and the value status.

Reference

Figure 4-2 Address space for configuration as 1 x 8-channel DQ 8x24VDC/2A HF MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

28

Manual, 06/2018, A5E03485650-AF

Parameters/address space 4.2 Address space

4.2.2

Address space operating mode pulse-width modulation

Address space for configuration as 1 x 8-channel DQ 8x24VDC/2A PWM
If you use the module in the "Pulse width modulation mode" (channels 0 and 4), the module uses the following address spaces:
 6 bytes in the process image output
 1 byte in the process image input

Allocation of the process image
If you have set "Pulse width modulation" mode for channels 0 and 4 in the parameter, bits 0 and 4 have no significance. Enter the on-load factor (duty factor) in the following output bytes; see the figure below.

Figure 4-3 Allocation in the process image output The figure below shows the address assignment of the module.

Figure 4-4 Allocation in the process image of the inputs

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

29

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of DQ 8x24VDC/2A HF.

5

Figure 5-1 LED displays of the DQ 8x24VDC/2A HF module

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

30

Manual, 06/2018, A5E03485650-AF

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 33).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., short-circuit to ground). Hardware defective.

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., check the cables). Replace the module.

LED MAINT

Table 5- 2 MAINT status display

LED MAINT Off On

Meaning

0 = No maintenance interrupt is pending.

---

1 = The maintenance interrupt "Limit value

---

warning" is pending.

Solution

LED PWR

Table 5- 3 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing.
Supply voltage L+ is present and OK.

Solution Check supply voltage L+.
---

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

31

Interrupts/diagnostics alarms 5.2 Interrupts

LED CHx

Table 5- 4 CHx status display

LED CHx Off On On

Meaning 0 = Status of the output signal.

Solution ---

1 = Status of the output signal.

---

Channel parameters assigned (channel fault pending; a short-circuit to ground is pending at the respective channel).
Supply voltage L+ too low or missing.

Check the wiring and remedy the short-circuit to ground.
Check supply voltage L+.

5.2

Interrupts

The digital output module DQ 8x24VDC/2A HF supports diagnostic interrupts and maintenance interrupts.

You can find detailed information on the error event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  No supply voltage L+  Short circuit to ground  Parameter assignment error

Maintenance interrupt
The module generates a maintenance interrupt at the following events:  Limit value warning

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

32

Manual, 06/2018, A5E03485650-AF

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short-circuit to ground*

Error code 1H

Parameter assignment 10H error

Load voltage missing

11H

Limit value warning

17H

Meaning Short-circuit or overload at the channel
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment
Supply voltage L+ of the module is missing The configured limit for switching cycles has been exceeded.

Corrective measures Check the wiring/actuator. Check the ambient temperature. Correct the parameter assignment
Connect supply voltage L+ to module/channel · Replace actuator as a precaution-
ary measure · Reset counter with DS131

* This diagnostic message can be output with pulse duration <500 microseconds in pulse width modulation mode. Disable the diagnostics of pulse duration < 500 µs.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

33

Technical specifications

6

Technical specifications of the DQ 8x24VDC/2A HF
The following table shows the technical specifications as of 06/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7522-1BF00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data Engineering with · STEP 7 TIA Portal configurable/integrated
as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSO
· Integrated operating cycle counter

6ES7522-1BF00-0AB0
DQ 8x24VDC/2A HF FS03 V2.2.0 Yes
Yes; I&M0 to I&M3
V13 SP1 / -
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes Yes; with an application Yes No
No Yes Yes

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

34

Manual, 06/2018, A5E03485650-AF

Technical specifications

Article number Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Output voltage Rated value (DC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital outputs Type of digital output Number of digital outputs Current-sourcing Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input
Digital output functions, parameterizable · Freely usable digital output
· PWM output
­ Number, max. ­ Cycle duration, parameterizable ­ ON period, min. ­ ON period, max. ­ Resolution of the duty cycle ­ Minimum pulse duration Switching capacity of the outputs · on lamp load, max. Load resistance range · lower limit
· upper limit Output voltage
· for signal "1", min.

6ES7522-1BF00-0AB0
24 V 20.4 V 28.8 V Yes; through internal protection with 10 A per group
40 mA; 20 mA per group, no output is activated.
24 V
0.9 W
5.6 W; 6.8 W for PWM operation
Transistor 8 Yes Yes 3 A -17 V Yes
Yes Yes 2 Yes; 2 ... 100 ms continuous 0 % 100 % 0.1 % 300 µs
10 W
12  4 k
L+ (-0.8 V)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

35

Technical specifications

Article number Output current
· for signal "1" rated value · for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", typ. · "0" to "1", max. · "1" to "0", typ. · "1" to "0", max. Parallel switching of two outputs · for logic links · for uprating · for redundant control of a load Switching frequency · with resistive load, max. · with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per channel, max. · Current per group, max. · Current per module, max. Cable length · shielded, max. · unshielded, max. Isochronous mode Isochronous operation (application synchronized up to terminal) Interrupts/diagnostics/status information Diagnostics function Substitute values connectable Alarms · Diagnostic alarm

6ES7522-1BF00-0AB0
2 A 2.4 A; Note derating specification for PWM operation 0.5 mA
80 µs 100 µs 300 µs 500 µs
Yes No Yes
100 Hz; With PWM operation: 500 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13; max. 500 Hz with PWM operation only with external circuit; see additional description in the manual 10 Hz
2 A; see additional description in the manual 8 A; see additional description in the manual 16 A; see additional description in the manual
1 000 m 600 m
No
Yes Yes
Yes

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

36

Manual, 06/2018, A5E03485650-AF

Article number Diagnostic messages
· Monitoring the supply voltage

6ES7522-1BF00-0AB0 Yes

· Wire-break

No

· Short-circuit

Yes

· Group error

Yes

Diagnostics indication LED · RUN LED

Yes; Green LED

· ERROR LED

Yes; Red LED

· MAINT LED

Yes; yellow LED

· Monitoring of the supply voltage (PWRLED)

Yes; Green LED

· Channel status display

Yes; Green LED

· for channel diagnostics

Yes; Red LED

· for module diagnostics

Yes; Red LED

Potential separation

Potential separation channels

· between the channels

No

· between the channels, in groups of

4

· between the channels and backplane bus Yes

Isolation

Isolation tested with

707 V DC (type test)

Standards, approvals, certificates

Suitable for safety-related tripping of standard Yes; From FS03 modules

Highest safety class achievable for safety-related tripping of standard modules

· Performance level according to ISO 13849- PL d 1

· Category according to ISO 13849-1

Cat. 3

· SILCL according to IEC 62061

SILCL 2

Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

Yes
35 mm 147 mm 129 mm
240 g

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0) Manual, 06/2018, A5E03485650-AF

Technical specifications 37

Technical specifications
Power reduction (derating) to aggregate current of outputs (per group)
The following graphs show the loading capacity of the outputs in relation to the mounting position and the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on total current of outputs (per group)

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

38

Manual, 06/2018, A5E03485650-AF

Technical specifications
DQ mode and PWM mode with switching frequency max. 100 Hz
The following graphs apply to resistive loads and inductive loads with max. 2 A total current of the outputs per channel. Inductive loads in PWM mode require additional wiring to an external diode; see section Wiring (Page 19). You can find the total current of the outputs for each channel or for each module in the technical specifications.



Horizontal mounting of the system



Vertical mounting of the system

Figure 6-2 Details on total current of outputs (per group) in the DQ and PWM operating modes

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

39

Technical specifications
PWM mode with switching frequency max. 500 Hz
The following graphs apply to resistive loads and inductive loads with max. 2 A total current of the outputs per channel. Inductive loads require additional wiring with an external diode, see section Wiring (Page 19). You can find the total current of the outputs for each channel or for each module in the technical specifications.



Horizontal mounting of the system



Vertical mounting of the system

Figure 6-3 Details on total current of outputs (per group) in the PWM operating mode

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

40

Manual, 06/2018, A5E03485650-AF

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 8x24VDC/2A HF module

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

41

Dimensional drawing
Figure A-2 Dimensional drawing of the DQ 8x24VDC/2A HF module, side view with open front cover

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

42

Manual, 06/2018, A5E03485650-AF

Parameter data records

B

B.1

Parameter assignment
The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the response of selected channels to the CPU-STOP state can be changed in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data sets 64 to 71. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

43

Parameter data records B.1 Parameter assignment
Assignment of data record and channel
The channel parameters of the module are included in data sets 64 to 71 and are assigned as follows:  Data set 64 for channel 0 (PWM operating mode possible)  Data record 65 for channel 1  Data set 66 for channel 2  Data set 67 for channel 3  Data set 68 for channel 4 (PWM operating mode possible)  Data set 69 for channel 5  Data set 70 for channel 6  Data set 71 for channel 7

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

44

Manual, 06/2018, A5E03485650-AF

Parameter data records B.2 Structure of parameter data sets DS 64 - 71

B.2

Structure of parameter data sets DS 64 - 71

Structure of data sets 64 to 71
The figure below shows the structure of data set 64 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed.
Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data set 64: Bytes 0 to 3

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

45

Parameter data records B.3 Structure of data set DS 129

B.3

Structure of data set DS 129

Structure of data set 129
You can read the current states of the switching cycle counters with data set 129. The counter status is supplied for each channel in UDINT format.
The following figure shows you the structure of data set 129.

Figure B-2 Structure of data set 129: Byte 0 to 31

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

46

Manual, 06/2018, A5E03485650-AF

Parameter data records B.4 Structure of data set DS 130

B.4

Structure of data set DS 130

Structure of data set 130
The limits of the switching cycle counters are read out with data set 130. The set value is supplied for each channel in UDINT format.
The following figure shows you the structure of data set 130.

Figure B-3 Structure of data set 130: Byte 0 to 31

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

Manual, 06/2018, A5E03485650-AF

47

Parameter data records B.5 Structure of data set DS 131

B.5

Structure of data set DS 131

Structure of data set 131
The following figure shows you the structure of data set 131. Enable a parameter by setting the corresponding bit to "1".

Figure B-4 Structure of data set 131: Bytes 0 to 7

DQ 8x24VDC/2A HF Digital Output Module (6ES7522-1BF00-0AB0)

48

Manual, 06/2018, A5E03485650-AF

SIMATIC
S7-1500/ET 200MP Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Wiring

3

Address space

4

Diagnostics alarms

5

Technical specifications

6

Dimensional drawing

A

07/2020
A5E48024569-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E48024569-AA  07/2020 Subject to change

Copyright © Siemens AG 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

3

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

4

Equipment Manual, 07/2020, A5E48024569-AA

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide ........................................................................................... 6

2 Product overview ................................................................................................................................... 8

2.1

Properties ............................................................................................................................ 8

3 Wiring .................................................................................................................................................. 10

3.1

Wiring and block diagram .................................................................................................. 10

3.2

Terminal assignment X10 and X11. .................................................................................... 11

3.3

Connecting a module with a connection module ................................................................ 14

3.4

Wiring of the module ......................................................................................................... 15

3.5

Fuse .................................................................................................................................. 17

4 Address space ...................................................................................................................................... 18

5 Diagnostics alarms............................................................................................................................... 25

5.1

Status and error displays .................................................................................................... 25

6 Technical specifications....................................................................................................................... 27

A Dimensional drawing........................................................................................................................... 31

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

5

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

6

Equipment Manual, 07/2020, A5E48024569-AA

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

7

Product overview

2.1

Properties

Article number
6ES7522-1BP00-0AA0

View of the module

2

Properties

Figure 2-1 View of the DQ 64x24VDC/0.3A BA module
The digital module has the following technical properties: · 64 digital outputs, electrically isolated in 4 groups of 16
­ P switching (sourcing) · Rated output voltage 24 V DC · Rated output current 0.3 A per channel · Suitable for solenoid valves, DC contactors, and indicator lights

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

8

Equipment Manual, 07/2020, A5E48024569-AA

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Module-internal Shared Output (MSO) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
as of V16 and HSP 0319

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

X X X (PROFINET IO only) X (PROFINET IO only)

--- / X X X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can be ordered as spare parts: · U connector · Universal front door with the article number: 6ES7 591-8AA00-0AA0 You can find additional information in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Other components
The following must be ordered separately: · SIMATIC TOP connect connection module · Pre-fabricated connecting cable with IDC connectors For additional information, see section Connecting a module with a connection module (Page 14)

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

9

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and the terminal assignment.

Wiring and block diagram
The following figure shows the terminal assignment and the assignment of the channels. · Outputs: Channel 0 to 31 to connector X10. · Outputs: Channel 32 to 63 to connector X11



Backplane bus interface

CHx RUN ERROR

Figure 3-1 Block diagram and terminal assignment

Channel Status display LED (green) Error display LED (red)

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

10

Equipment Manual, 07/2020, A5E48024569-AA

Wiring 3.2 Terminal assignment X10 and X11.

3.2

Terminal assignment X10 and X11.

The following figure shows the assignment of the channels to the addresses.

Figure 3-2 Front view of the module without front door

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

11

Wiring 3.2 Terminal assignment X10 and X11.

Terminal and address assignment
For connecting actuators, we recommend using the SIMATIC TOP connect pre-assembled connecting cables and SIMATIC TOP connect connection modules. However, if you choose another wiring option, you will need the following tables.

Table 3- 1 Assignment for connector X10 of the module

Terminal 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2

Channel 2L+ 2M
Channel 31 Channel 30 Channel 29 Channel 28 Channel 27 Channel 26 Channel 25 Channel 24
2L+ 2M Channel 23 Channel 22 Channel 21 Channel 20 Channel 19 Channel 18 Channel 17 Channel 16

Assignment for outputs to X10

Address -----
x+3.7 x+3.6 x+3.5 x+3.4 x+3.3 x+3.2 x+3.1 x+3.0
----x+2.7 x+2.6 x+2.5 x+2.4 x+2.3 x+2.2 x+2.1 x+2.0

Terminal 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1

Channel 1L+ 1M
Channel 15 Channel 14 Channel 13 Channel 12 Channel 11 Channel 10 Channel 9 Channel 8
1L+ 1M Channel 7 Channel 6 Channel 5 Channel 4 Channel 3 Channel 2 Channel 1 Channel 0

Address -----
x+1.7 x+1.6 x+1.5 x+1.4 x+1.3 x+1.2 x+1.1 x+1.0
----x.7 x.6 x.5 x.4 x.3 x.2 x.1 x.0

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

12

Equipment Manual, 07/2020, A5E48024569-AA

Wiring 3.2 Terminal assignment X10 and X11.

Table 3- 2 Assignment for the connector X11 of the module

Terminal 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39

Assignment for outputs to X11

Channel Channel 32 Channel 33 Channel 34 Channel 35 Channel 36 Channel 37 Channel 38 Channel 39
3M 3L+ Channel 40 Channel 41 Channel 42 Channel 43 Channel 44 Channel 45 Channel 46 Channel 47 3M 3L+

Address x+4.0 x+4.1 x+4.2 x+4.3 x+4.4 x+4.5 x+4.6 x+4.7 ----x+5.0 x+5.1 x+5.2 x+5.3 x+5.4 x+5.5 x+5.6 x+5.7 -----

Terminal 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Channel Channel 48 Channel 49 Channel 50 Channel 51 Channel 52 Channel 53 Channel 54 Channel 55
4M 4L+ Channel 56 Channel 57 Channel 58 Channel 59 Channel 60 Channel 61 Channel 62 Channel 63 4M 4L+

Address x+6.0 x+6.1 x+6.2 x+6.3 x+6.4 x+6.5 x+6.6 x+6.7 ----x+7.0 x+7.1 x+7.2 x+7.3 x+7.4 x+7.5 x+7.6 x+7.7 -----

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

13

Wiring 3.3 Connecting a module with a connection module

3.3

Connecting a module with a connection module

Component for connecting
To connect actuators, you need 2 connection modules per module. The connection modules are connected to the module with pre-assembled connecting cables.
You can find additional information on the components of the SIMATIC TOP connect system cabling, e.g. for connecting connection modules, in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).
Note Common supply
If you use the listed SIMATIC TOP connect connection modules, then all 32 channels of a connection module have a common supply. This means that 2 groups of 16 channels each are supplied by common potential.

You can find the required components in the tables below.

Table 3- 3 SIMATIC TOP connect connection module

Components
Connection modules for digital outputs

Typ Description e

Connection technology

TP1 1-wire connection, without LED - Screw terminals - Push-in system

1-wire connection, with LED - Screw terminals - Push-in system
TP3 3-wire connection, without LED - Screw terminals - Push-in system

3-wire connection, with LED

- Screw terminals - Push-in system

Article number

Delivery quantity

6ES7924-2AA20-0AA0 Pack of 1 6ES7924-2AA20-0CA0 Pack of 1

6ES7924-2AA20-0BA0 Pack of 1 6ES7924-2AA20-0BC0 Pack of 1

6ES7924-2CA20-0AA0 Pack of 1 6ES7924-2CA20-0AC0 Pack of 1

6ES7924-2CA20-0

Pack of 1

BA0 6ES7924-2CA20- Pack of 1 0BC0

Table 3- 4 Connecting cables SIMATIC TOP connect

Components

Length

Pre-assembled connecting cable with IDC connector an both ends
· IDC connector 40-pin for the I/O module
· IDC connector 50-pin for the SIMATIC TOP connect connection module

1.0 m 2.0 m 2.5 m 3.0 m

Article number

Delivery quantity

6ES7923-5BB00-0GB0 Pack of 1

6ES7923-5BC00-0GB0 Pack of 1

6ES7923-5BC50-0GB0 Pack of 1

6ES7923-5BD00-0GB0 Pack of 1

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

14

Equipment Manual, 07/2020, A5E48024569-AA

Wiring 3.4 Wiring of the module
Support for selecting hardware components
We recommend you use the TIA Selection Tool for planning your project. The TIA Selection Tool is available free of charge as a desktop version for download or as a cloud version, refer to the Internet (https://new.siemens.com/global/en/products/automation/topic-areas/tia/tiaselection-tool.html).

3.4

Wiring of the module

Requirement

· The I/O modules are installed on the mounting rail. · The supply voltage of the station is switched off.

Procedure

1. Plug the two SIMATIC TOP connect connecting cables with the 40-pin IDC connector into X10 and X11.
Note when plugging: ­  The nob on the left edge of connector X11 ­  The nob on the right edge of connector X10

Figure 3-3 Connect the SIMATIC TOP connect 40-pin connecting cable to the module
2. Guide the SIMATIC TOP connect connecting cables down to the module. 3. Guide a cable tie around the module at the fixing points and connect the SIMATIC TOP
connect cables.

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

15

Wiring 3.4 Wiring of the module
4. Tighten the cable tie for the strain relief.
Figure 3-4 Fastening the cable tie for the strain relief 5. Plug the SIMATIC TOP connect connecting cables with the 50-pin IDC connector into the
SIMATIC TOP connect connection module.
Additional information
You can find out how to wire the SIMATIC TOP connect connection module in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

16

Equipment Manual, 07/2020, A5E48024569-AA

Wiring 3.5 Fuse

3.5

Fuse

Miniature circuit breaker
The supply lines are to be protected with a 6 A miniature circuit breaker with tripping characteristic B.

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

17

Address space

4

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 64x24VDC/0.3A BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file. When you configure the module by means of the GSD file, the configurations are available under different short designations/module names. The following configurations are possible:

Table 4- 1 Configuration options Configuration
1 x 64-channel without value status 8 x 8-channel without value status 1 x 64-channel with value status for moduleinternal Shared Output (MSO) with up to 4 submodules

Short designation/module name in the
GSD file
DQ 64x24VDC/0.3A BA DQ 64x24VDC/0.3A BA S DQ 64x24VDC/0.3A BA MSO

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog
of STEP 7 (TIA Portal) as of V16 and HSP 0319
X X (PROFINET IO only) X (PROFINET IO only)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X X (PROFINET IO only) X (PROFINET IO only)

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

18

Equipment Manual, 07/2020, A5E48024569-AA

Address space
Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A BA
The figure below shows the address space assignment for configuration as a 1 x 64-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB a" stands for module start address output byte a.
Figure 4-1 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A BA

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

19

Address space
Address space for configuration as 8 x 8-channel DQ 64x24VDC/0.3A BA S
For the configuration as an 8 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 64-channel module configuration, each of the eight submodules has a freely assignable start address.
Figure 4-2 Address space for configuration as 8 x 8-channel DQ 64x24VDC/0.3A BA S

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

20

Equipment Manual, 07/2020, A5E48024569-AA

Address space
Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A BA MSO
For the configuration as a 1 x 64-channel module (module-internal Shared Output, MSO), channels 0 to 63 of the module are copied to multiple submodules. Channels 0 to 63 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device: · The IO controller to which submodule 1 is assigned has write access to outputs 0 to 63. · The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0
to 63. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: · Value is incorrect, for example, because the supply voltage is missing. · IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: · Value is incorrect, for example, because the supply voltage is missing. · IO controller of the basic submodule is in STOP mode. · The basic submodule is not yet configured.

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

21

Address space The figure below shows the assignment of the address space for submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A BA MSO with value status

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

22

Equipment Manual, 07/2020, A5E48024569-AA

Address space The figure below shows the assignment of the address space with submodules 3 and 4.

Figure 4-4 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A BA MSO with value status

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

23

Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V16 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

24

Equipment Manual, 07/2020, A5E48024569-AA

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of DQ 64x24VDC/0.3A BA.

Figure 5-1 LED displays of the module DQ 64x24VDC/0.3A BA

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

25

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning
Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are inserted. ---
Replace the module.

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

26

Equipment Manual, 07/2020, A5E48024569-AA

Technical specifications

6

Technical specifications of DQ 64x24VDC/0.3A BA
The following table shows the technical specifications as of 07/2020. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td).
Enter the article number or the short designation of the module on the website.

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode
· Prioritized startup Engineering with
· STEP 7 TIA Portal configurable/integrated from version
· STEP 7 configurable/integrated from version
· PROFIBUS from GSD version/GSD revision Operating mode
· DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSO
· Integrated operating cycle counter

6ES7522-1BP00-0AA0
DQ 64x24VDC/0.3A BA From FS01 V1.0.0 Yes
Yes; I&M0 to I&M3 No No
V16 with HSP 0319 / V17
V5.5 SP3 / -
V1.0 / V5.1
Yes No No No
No Yes No

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

27

Technical specifications

Article number Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Output voltage Rated value (DC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital outputs Type of digital output Number of digital outputs Current-sinking Current-sourcing Digital outputs, parameterizable Short-circuit protection Limitation of inductive shutdown voltage to Controlling a digital input
Switching capacity of the outputs · with resistive load, max.
· on lamp load, max. Load resistance range
· lower limit
· upper limit Output voltage
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max.
· "1" to "0", max.

6ES7522-1BP00-0AA0
24 V 19.2 V 28.8 V Yes; through internal protection with 7 A per group
90 mA; without load
24 V
0.6 W
3.5 W
Transistor 64 No Yes No Yes L+ (-53 V) Yes
0.3 A 5 W
80  10 k
L+ (-0.8 V)
0.3 A 0.3 A 0.5 mA
100 µs 500 µs

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

28

Equipment Manual, 07/2020, A5E48024569-AA

Technical specifications

Article number Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per channel, max.
· Current per group, max.
· Current per module, max. Total current of the outputs (per module) horizontal installation
­ up to 60 °C, max. vertical installation
­ up to 40 °C, max. Cable length
· shielded, max.
· unshielded, max. Interrupts/diagnostics/status information
Diagnostics function Substitute values connectable Alarms · Diagnostic alarm
· Maintenance interrupt Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error

6ES7522-1BP00-0AA0 Yes No Yes
100 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13 10 Hz
0.3 A 2 A 8 A
8 A
8 A
1 000 m 600 m
No No No No
No No No No

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

29

Technical specifications

Article number Diagnostics indication LED
· RUN LED

6ES7522-1BP00-0AA0 Yes; green LED

· ERROR LED

Yes; red LED

· MAINT LED

No

· Monitoring of the supply voltage (PWR-LED) Yes; via SIMATIC TOP connect connection module

· Channel status display

Yes; via SIMATIC TOP connect connection module

· for channel diagnostics

No

· for module diagnostics

No

Potential separation

Potential separation channels

· between the channels

No

· between the channels, in groups of · between the channels and backplane bus

16; 32 when using SIMATIC TOP connect connection module
Yes

Isolation Isolation tested with
Standards, approvals, certificates Suitable for safety functions Suitable for safety-related tripping of standard modules
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

707 V DC (type test) No No
-30 °C

· horizontal installation, max.

60 °C

· vertical installation, min.

-30 °C

· vertical installation, max.

40 °C

Altitude during operation relating to sea level · Installation altitude above sea level, max.

5 000 m

Dimensions Width Height Depth
Weights Weight, approx.
Other Note:

35 mm 147 mm 129 mm
270 g
Please order cable and connection modules separately

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

30

Equipment Manual, 07/2020, A5E48024569-AA

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 64x24VDC/0.3A BA module

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

Equipment Manual, 07/2020, A5E48024569-AA

31

Dimensional drawing
Figure A-2 Dimension drawing of the DQ 64x24VDC/0.3A BA module, side view with open front cover

Digital output module DQ 64x24VDC/0.3A BA (6ES7522-1BP00-0AA0)

32

Equipment Manual, 07/2020, A5E48024569-AA

SIMATIC
S7-1500/ET 200MP Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Wiring

3

Address space

4

Diagnostics alarms

5

Technical specifications

6

Dimensional drawing

A

07/2020
A5E48024817-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E48024817-AA  07/2020 Subject to change

Copyright © Siemens AG 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

3

Preface
Open Source Software Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

4

Equipment Manual, 07/2020, A5E48024817-AA

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide ........................................................................................... 6

2 Product overview................................................................................................................................... 8

2.1

Properties ............................................................................................................................ 8

3 Wiring .................................................................................................................................................. 10

3.1

Wiring and block diagram .................................................................................................. 10

3.2

Terminal assignment X10 and X11. .................................................................................... 11

3.3

Connecting a module with a connection module ................................................................ 14

3.4

Wiring of the module ......................................................................................................... 15

3.5

Fuse .................................................................................................................................. 17

4 Address space ...................................................................................................................................... 18

5 Diagnostics alarms............................................................................................................................... 25

5.1

Status and error displays .................................................................................................... 25

6 Technical specifications....................................................................................................................... 27

A Dimensional drawing........................................................................................................................... 31

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

5

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

6

Equipment Manual, 07/2020, A5E48024817-AA

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

7

Product overview

2.1

Properties

Article number 6ES7522-1BP50-0AA0

View of the module

2

Properties

Figure 2-1 View of the DQ 64x24VDC/0.3A SNK BA module
The digital module has the following technical properties: · 64 digital outputs, electrically isolated in 4 groups of 16
­ M switching (sinking) · Rated output voltage 24 V DC · Rated output current 0.3 A per channel · Suitable for solenoid valves, DC contactors, and indicator lights

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

8

Equipment Manual, 07/2020, A5E48024817-AA

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Module-internal Shared Output (MSO) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V16 and HSP 0319
X X X (PROFINET IO only) X (PROFINET IO only)

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher
--- / X X X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can be ordered as spare parts: · U connector · Universal front door with the article number: 6ES7 591-8AA00-0AA0 You can find additional information in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Other components The following must be ordered separately: · SIMATIC TOP connect connection module · Pre-fabricated connecting cable with IDC connectors For additional information, see section Connecting a module with a connection module (Page 14)

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

9

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and the terminal assignment.

Wiring and block diagram The following figure shows the terminal assignment and the assignment of the channels. · Outputs: Channel 0 to 31 to connector X10 · Outputs: Channel 32 to 63 to connector X11

 Backplane bus interface Figure 3-1 Block diagram and terminal assignment

CHx RUN ERROR

Channel Status display LED (green) Error display LED (red)

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

10

Equipment Manual, 07/2020, A5E48024817-AA

Wiring 3.2 Terminal assignment X10 and X11.

3.2

Terminal assignment X10 and X11.

The following figure shows the assignment of the channels to the addresses.

Figure 3-2 Front view of the module without front door

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

11

Wiring 3.2 Terminal assignment X10 and X11.

Terminal and address assignment
For connecting sensors or actuators, we recommend using the SIMATIC TOP connect preassembled connecting cables and the SIMATIC TOP connect connection modules. However, if you choose another wiring option, you will need the following tables.

Table 3- 1 Assignment for connector X10 of the module

Terminal 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2

Assignment for outputs to X10

Channel

Address

Terminal

2L+

---

39

2M

---

37

Channel 31

x+3.7

35

Channel 30

x+3.6

33

Channel 29

x+3.5

31

Channel 28

x+3.4

29

Channel 27

x+3.3

27

Channel 26

x+3.2

25

Channel 25

x+3.1

23

Channel 24

x+3.0

21

2L+

---

19

2M

---

17

Channel 23

x+2.7

15

Channel 22

x+2.6

13

Channel 21

x+2.5

11

Channel 20

x+2.4

9

Channel 19

x+2.3

7

Channel 18

x+2.2

5

Channel 17

x+2.1

3

Channel 16

x+2.0

1

Channel 1L+ 1M
Channel 15 Channel 14 Channel 13 Channel 12 Channel 11 Channel 10 Channel 9 Channel 8
1L+ 1M Channel 7 Channel 6 Channel 5 Channel 4 Channel 3 Channel 2 Channel 1 Channel 0

Address -----
x+1.7 x+1.6 x+1.5 x+1.4 x+1.3 x+1.2 x+1.1 x+1.0
----x.7 x.6 x.5 x.4 x.3 x.2 x.1 x.0

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

12

Equipment Manual, 07/2020, A5E48024817-AA

Wiring 3.2 Terminal assignment X10 and X11.

Table 3- 2 Assignment for the connector X11 of the module

Terminal
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39

Channel /
Channel 32 Channel 33 Channel 34 Channel 35 Channel 36 Channel 37 Channel 38 Channel 39
3M 3L+ Channel 40 Channel 41 Channel 42 Channel 43 Channel 44 Channel 45 Channel 46 Channel 47 3M 3L+

Assignment for outputs to X11

Address

Terminal

x+4.0

2

x+4.1

4

x+4.2

6

x+4.3

8

x+4.4

10

x+4.5

12

x+4.6

14

x+4.7

16

---

18

---

20

x+5.0

22

x+5.1

24

x+5.2

26

x+5.3

28

x+5.4

30

x+5.5

32

x+5.6

34

x+5.7

36

---

38

---

40

Channel / address Channel 48 Channel 49 Channel 50 Channel 51 Channel 52 Channel 53 Channel 54 Channel 55
4M 4L+ Channel 56 Channel 57 Channel 58 Channel 59 Channel 60 Channel 61 Channel 62 Channel 63 4M 4L+

Address
x+6.0 x+6.1 x+6.2 x+6.3 x+6.4 x+6.5 x+6.6 x+6.7
----x+7.0 x+7.1 x+7.2 x+7.3 x+7.4 x+7.5 x+7.6 x+7.7 -----

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

13

Wiring 3.3 Connecting a module with a connection module

3.3

Connecting a module with a connection module

Component for connecting
To connect actuators, you need 2 connection modules per module. The connection modules are connected to the module with pre-assembled connecting cables.
You can find additional information on the components of the SIMATIC TOP connect system cabling, e.g. for connecting connection modules, in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).
Note Common supply
If you use the listed SIMATIC TOP connect connection modules, then all 32 channels of the connection module have a common supply. This means that 2 groups of 16 channels each are supplied by common potential.

You can find the required components in the tables below.

Table 3- 3 SIMATIC TOP connect connection module

Components
Connection modules for digital outputs

Typ Description e

Connection technology Article number

TP1 1-wire connection, without LED - Screw terminals - Push-in system

6ES7924-2AA20-0AA0 6ES7924-2AA20-0AC0

1-wire connection, with LED - Screw terminals - Push-in system
TP3 3-wire connection, without LED - Screw terminals - Push-in system

6ES7924-2AM20-0BA0 6ES7924-2AM20-0BC0 6ES7924-2CA20-0AA0 6ES7924-2CA20-0AC0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1 Pack of 1 Pack of 1

Table 3- 4 Connecting cables SIMATIC TOP connect
Components
Pre-assembled connecting cable with IDC connector an both ends · IDC connector 40-pin for the I/O module · IDC connector 50-pin for the SIMATIC TOP connect connection
module

Length
1.0 m 2.0 m 2.5 m 3.0 m

Article number
6ES7923-5BB00-0GB0 6ES7923-5BC00-0GB0 6ES7923-5BC50-0GB0 6ES7923-5BD00-0GB0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1

Support for selecting hardware components
We recommend you use the TIA Selection Tool for planning your project. The TIA Selection Tool is available free of charge as a desktop version for download or as a cloud version, refer to the Internet (https://new.siemens.com/global/en/products/automation/topic-areas/tia/tiaselection-tool.html).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

14

Equipment Manual, 07/2020, A5E48024817-AA

Wiring 3.4 Wiring of the module

3.4

Wiring of the module

Requirement

· The I/O modules are installed on the mounting rail. · The supply voltage of the station is switched off.

Procedure

1. Plug the two SIMATIC TOP connect connecting cables with the 40-pin IDC connector into X10 and X11.
Note when plugging: ­  The nob on the left edge of connector X11 ­  The nob on the right edge of connector X10

Figure 3-3 Connect the SIMATIC TOP connect 40-pin connecting cable to the module
2. Guide the SIMATIC TOP connect connecting cables down to the module. 3. Guide a cable tie around the module at the fixing points and connect the SIMATIC TOP
connect cables.

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

15

Wiring 3.4 Wiring of the module
4. Tighten the cable tie for the strain relief.
Figure 3-4 Fastening the cable tie for the strain relief
5. Plug the SIMATIC TOP connect connecting cables with the 50-pin IDC connector into the SIMATIC TOP connect connection module.
Additional information You can find out how to wire the SIMATIC TOP connect connection module in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

16

Equipment Manual, 07/2020, A5E48024817-AA

Wiring 3.5 Fuse

3.5

Fuse

Miniature circuit breaker
The supply lines, max. 16 outputs of a group, are to be protected with a 4 A miniature circuit breaker with tripping characteristic B or C.
The connection module is to be protected with a 6 A miniature circuit breaker with tripping characteristic B.

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

17

Address space

4

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 64x24VDC/0.3A SNK BA You can configure the module with STEP 7 (TIA Portal) or with a GSD file. When you configure the module by means of the GSD file, the configurations are available under different short designations/module names. The following configurations are possible:

Table 4- 1 Configuration options Configuration
1 x 64-channel without value status 8 x 8-channel without value status 1 x 64-channel with value status for moduleinternal Shared Output (MSO) with up to 4 submodules

Short designation/module name in the
GSD file
DQ 64x24VDC/0.3A SNK BA DQ 64x24VDC/0.3A BA SNK S DQ 64x24VDC/0.3A BA SNK MSO

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog
of STEP 7 (TIA Portal) as of V16 and HSP 0319
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X

X (PROFINET IO only)
X (PROFINET IO only)

X (PROFINET IO only)
X (PROFINET IO only)

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

18

Equipment Manual, 07/2020, A5E48024817-AA

Address space Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A SNK BA
The figure below shows the address space assignment for configuration as a 1 x 64-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB a" stands for module start address output byte a.
Figure 4-1 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A SNK BA

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

19

Address space Address space for configuration as 8 x 8-channel DQ 64x24VDC/0.3A SNK BA S
For the configuration as an 8 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 64-channel module configuration, each of the eight submodules has a freely assignable start address.
Figure 4-2 Address space for configuration as 8 x 8-channel DQ 64x24VDC/0.3A SNK BA S

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

20

Equipment Manual, 07/2020, A5E48024817-AA

Address space
Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A SNK BA MSO For the configuration as a 1 x 64-channel module (module-internal Shared Output, MSO), channels 0 to 63 of the module are copied to multiple submodules. Channels 0 to 63 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device: · The IO controller to which submodule 1 is assigned has write access to outputs 0 to 63. · The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 63. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: · IO controller of the basic submodule is in STOP mode. · The basic submodule is not yet configured.

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

21

Address space The figure below shows the assignment of the address space for submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A SNK BA MSO with value status

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

22

Equipment Manual, 07/2020, A5E48024817-AA

Address space The figure below shows the assignment of the address space with submodules 3 and 4.

Figure 4-4 Address space for configuration as 1 x 64-channel DQ 64x24VDC/0.3A SNK BA MSO with value status

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

23

Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V16 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

24

Equipment Manual, 07/2020, A5E48024817-AA

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of DQ 64x24VDC/0.3A SNK BA.

Figure 5-1 LED displays of the DQ 64x24VDC/0.3A SNK BA module

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

25

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Replace the module.

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

26

Equipment Manual, 07/2020, A5E48024817-AA

Technical specifications

6

Technical specifications of DQ 64x24VDC/0.3A SNK BA
The following table shows the technical specifications as of 07/2020. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td).
Enter the article number or the short designation of the module on the website.

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode
· Prioritized startup Engineering with
· STEP 7 TIA Portal configurable/integrated from version
· STEP 7 configurable/integrated from version
· PROFIBUS from GSD version/GSD revision Operating mode
· DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSO
· Integrated operating cycle counter

6ES7522-1BP50-0AA0
DQ 64x24VDC/0.3A BA From FS01 V1.0.0 Yes
Yes; I&M0 to I&M3 No No
V16 with HSP 0319 / V17
V5.5 SP3 / -
V1.0 / V5.1
Yes No No No
No Yes No

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

27

Technical specifications

Article number Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Output voltage Rated value (DC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital outputs Type of digital output Number of digital outputs Current-sinking Current-sourcing Digital outputs, parameterizable Short-circuit protection
Limitation of inductive shutdown voltage to Controlling a digital input Switching capacity of the outputs · with resistive load, max.
· on lamp load, max. Load resistance range
· lower limit
· upper limit Output voltage
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max.
· "1" to "0", max.

6ES7522-1BP50-0AA0
24 V 19.2 V 28.8 V Yes; Through internal protection with 4 A per group
90 mA; without load
24 V
0.6 W
4.7 W
Transistor 64 Yes No No No; external fusing necessary, max. 4 A per group, tripping characteristic type B or C L+ (-53 V) Yes
0.3 A 5 W
80  10 k
M+ (0.5 V)
0.3 A 0.3 A 0.5 mA
100 µs 500 µs

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

28

Equipment Manual, 07/2020, A5E48024817-AA

Technical specifications

Article number Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per channel, max.
· Current per group, max.
· Current per module, max. Total current of the outputs (per module) horizontal installation
­ up to 60 °C, max. vertical installation
­ up to 40 °C, max. Cable length
· shielded, max.
· unshielded, max. Interrupts/diagnostics/status information
Diagnostics function Substitute values connectable Alarms · Diagnostic alarm
· Maintenance interrupt Diagnostic messages
· Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error

6ES7522-1BP50-0AA0 Yes No Yes
100 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13 10 Hz
0.3 A 2 A 8 A
8 A
8 A
1 000 m 600 m
No No No No
No No No No

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

29

Technical specifications

Article number Diagnostics indication LED
· RUN LED

6ES7522-1BP50-0AA0 Yes; green LED

· ERROR LED

Yes; red LED

· MAINT LED

No

· Monitoring of the supply voltage (PWR-LED) Yes; via SIMATIC TOP connect connection module

· Channel status display

Yes; via SIMATIC TOP connect connection module

· for channel diagnostics

No

· for module diagnostics

No

Potential separation

Potential separation channels

· between the channels

No

· between the channels, in groups of · between the channels and backplane bus

16; 32 when using SIMATIC TOP connect connection module
Yes

Isolation Isolation tested with
Standards, approvals, certificates Suitable for safety functions Suitable for safety-related tripping of standard modules
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

707 V DC (type test) No No
-30 °C

· horizontal installation, max.

60 °C

· vertical installation, min.

-30 °C

· vertical installation, max.

40 °C

Altitude during operation relating to sea level · Installation altitude above sea level, max.

5 000 m

Dimensions Width Height Depth
Weights Weight, approx.
Other Note:

35 mm 147 mm 129 mm
270 g
Please order cable and connection modules separately

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

30

Equipment Manual, 07/2020, A5E48024817-AA

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 64x24VDC/0.3A SNK BA module

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48024817-AA

31

Dimensional drawing
Figure A-2 Dimension drawing of the DQ 64x24VDC/0.3A SNK BA module, side view with open front cover

Digital output module DQ 64x24VDC/0.3A SNK BA (6ES7522-1BP50-0AA0)

32

Equipment Manual, 07/2020, A5E48024817-AA

SIMATIC
S7-1500/ET 200MP Digital input/output module DI 32x24VDC SNK/SRC/ DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)
Equipment Manual

Preface

S7-1500 / ET 200MP Documentation Guide

1

Product overview

2

Wiring

3

Address space

4

Diagnostics alarms

5

Technical specifications

6

Dimensional drawing

A

07/2020
A5E48027024-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E48027024-AA  07/2020 Subject to change

Copyright © Siemens AG 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

3

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

4

Equipment Manual, 07/2020, A5E48027024-AA

Table of contents

Preface ................................................................................................................................................... 3

1 S7-1500 / ET 200MP Documentation Guide ........................................................................................... 6

2 Product overview ................................................................................................................................... 8

2.1

Properties ............................................................................................................................ 8

3 Wiring .................................................................................................................................................. 11

3.1

Wiring and block diagram .................................................................................................. 11

3.2

Terminal assignment X10 and X11 ..................................................................................... 12

3.3

Connecting a module with a connection module ................................................................ 15

3.4

Wiring of the module ......................................................................................................... 17

3.5

Fuse .................................................................................................................................. 19

4 Address space ...................................................................................................................................... 21

5 Diagnostics alarms............................................................................................................................... 29

5.1

Status and error displays .................................................................................................... 29

6 Technical specifications....................................................................................................................... 31

A Dimensional drawing........................................................................................................................... 36

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

5

S7-1500 / ET 200MP Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

6

Equipment Manual, 07/2020, A5E48027024-AA

S7-1500 / ET 200MP Documentation Guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

7

Product overview

2.1

Properties

Part number:

6ES7523-1BP50-0AA0

2

Figure 2-1 View of the module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

8

Equipment Manual, 07/2020, A5E48027024-AA

Product overview 2.1 Properties

Properties

The module has the following technical properties: · Digital inputs
­ 32 digital inputs; electrically isolated in 2 groups of 16 ­ Sourcing input or sinking input, depending on wiring ­ Rated input voltage 24 VDC ­ Suitable for switches and 2-/3-/4-wire proximity switches · Digital outputs ­ 32 digital outputs, electrically isolated in 2 groups of 16 ­ Sinking output ­ Rated output voltage 24 VDC ­ Rated output current 0.3 A per channel ­ Suitable for solenoid valves, DC contactors, and indicator lights The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Module-internal Shared Input (MSI) / Shared Output (MSO) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
as of V16 and HSP 0319

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

X X X (PROFINET IO only) X (PROFINET IO only)

--- / X X X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can be ordered as spare parts: · U connector · Universal front door with the article number: 6ES7 591-8AA00-0AA0 You can find additional information in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

9

Product overview 2.1 Properties
Other components
The following must be ordered separately: · SIMATIC TOP connect connection module · Pre-fabricated connecting cable with IDC connectors For additional information, see section Connecting a module with a connection module (Page 15)

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

10

Equipment Manual, 07/2020, A5E48027024-AA

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and the terminal assignment.

Wiring and block diagram
The following figure shows the terminal assignment and the assignment of the channels. · Inputs: Channel 0 to 31 to connector X10. · Outputs: Channel 0 to 31 to connector X11.



Backplane bus interface



Connection type sinking



Connection type sourcing

CHx RUN ERROR

Figure 3-1 Block diagram and terminal assignment

Channel Status display LED (green) Error display LED (red)

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

11

Wiring 3.2 Terminal assignment X10 and X11

3.2

Terminal assignment X10 and X11

The following figure shows the assignment of the channels to the addresses.

Figure 3-2 Front view of the module without front door

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

12

Equipment Manual, 07/2020, A5E48027024-AA

Wiring 3.2 Terminal assignment X10 and X11

Terminal and address assignment
For connecting sensors or actuators, we recommend using the SIMATIC TOP connect preassembled connecting cables and the SIMATIC TOP connect connection modules. However, if you choose another wiring option, you will need the following tables.

Table 3- 1 Assignment for connector X10 of the module

Terminal 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2

Channel ---
2COM * Channel 31 Channel 30 Channel 29 Channel 28 Channel 27 Channel 26 Channel 25 Channel 24
--2COM * Channel 23 Channel 22 Channel 21 Channel 20 Channel 19 Channel 18 Channel 17 Channel 16

Assignment for inputs to X10

Address -----
x+3.7 x+3.6 x+3.5 x+3.4 x+3.3 x+3.2 x+3.1 x+3.0 ----x+2.7 x+2.6 x+2.5 x+2.4 x+2.3 x+2.2 x+2.1 x+2.0

Terminal 39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1

Channel ---
1COM ** Channel 15 Channel 14 Channel 13 Channel 12 Channel 11 Channel 10 Channel 9 Channel 8
--1COM ** Channel 7 Channel 6 Channel 5 Channel 4 Channel 3 Channel 2 Channel 1 Channel 0

Address -----
x+1.7 x+1.6 x+1.5 x+1.4 x+1.3 x+1.2 x+1.1 x+1.0
----x.7 x.6 x.5 x.4 x.3 x.2 x.1 x.0

* 2M for Sinking (sinking input) connection type/ 2L+ for Sourcing (sourcing input) connection type ** 1M for Sinking (sinking input) connection type/ 1L+ for Sourcing (sourcing input) connection type

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

13

Wiring 3.2 Terminal assignment X10 and X11

Table 3- 2 Assignment for the connector X11 of the module

Terminal 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39

Channel Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7
3M 3L+ Channel 8 Channel 9 Channel 10 Channel 11 Channel 12 Channel 13 Channel 14 Channel 15 3M 3L+

Assignment for outputs to X11

Address x.0 x.1 x.2 x.3 x.4 x.5 x.6 x.7 -----
x+1.0 x+1.1 x+1.2 x+1.3 x+1.4 x+1.5 x+1.6 x+1.7
-----

Terminal 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

Channel Channel 16 Channel 17 Channel 18 Channel 19 Channel 20 Channel 21 Channel 22 Channel 23
4M 4L+ Channel 24 Channel 25 Channel 26 Channel 27 Channel 28 Channel 29 Channel 30 Channel 31 4M 4L+

Address x+2.0 x+2.1 x+2.2 x+2.3 x+2.4 x+2.5 x+2.6 x+2.7 ----x+3.0 x+3.1 x+3.2 x+3.3 x+3.4 x+3.5 x+3.6 x+3.7 -----

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

14

Equipment Manual, 07/2020, A5E48027024-AA

Wiring 3.3 Connecting a module with a connection module

3.3

Connecting a module with a connection module

Component for connecting
To connect actuators or sensors, you need 2 connection modules per module. The connection modules are connected to the module with pre-assembled connecting cables.
You can find additional information on the components of the SIMATIC TOP connect system cabling, e.g. for connecting connection modules, in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).
Note Common supply
If you use the listed SIMATIC TOP connect connection modules, then all 32 channels of a connection module have a common supply. This means that 2 groups of 16 channels each are supplied by common potential.

You can find the required components in the tables below.

Table 3- 3 SIMATIC TOP connect connection module

Components
Connection modules for digital inputs

Typ Description e

Connection technology

TP1 1-wire connection, without LED - Screw terminals

(sinking input)

- Push-in system

1-wire connection, with LED (sinking input)

- Screw terminals - Push-in system

Article number
6ES7924-2AA20-0AA0 6ES7924-2AA20-0AC0 6ES7924-2AA20-0BA0 6ES7924-2AA20-0BC0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1

1-wire connection, with LED (sourcing input)

- Screw terminals - Push-in system

6ES7924-2AK20-0BA0 6ES7924-2AK20-0BC0

Pack of 1 Pack of 1

TP3 3-wire connection, without LED - Screw terminals

(sinking input)

- Push-in system

6ES7924-2CA20-0AA0 6ES7924-2CA20-0AC0

Pack of 1 Pack of 1

3-wire connection, with LED (sinking input)

- Screw terminals - Push-in system

6ES7924-2CA20-0BA0 6ES7924-2CA20-0BC0

Pack of 1 Pack of 1

Connection modules for digital outputs

TP1 1-wire connection, without LED - Screw terminals

(sinking output)

- Push-in system

1-wire connection, with LED (sinking output)

- Screw terminals - Push-in system

TP3 3-wire connection, without LED - Screw terminals

(sinking output)

- Push-in system

6ES7924-2AA20-0AA0 6ES7924-2AA20-0AC0
6ES7924-2AM20-0BA0 6ES7924-2AM20-0BC0 6ES7924-2CA20-0AA0 6ES7924-2CA20-0AC0

Pack of 1 Pack of 1 Pack of 1 Pack of 1 Pack of 1 Pack of 1

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

15

Wiring 3.3 Connecting a module with a connection module

Table 3- 4 Connecting cables SIMATIC TOP connect Components

Length

Pre-assembled connecting cable with IDC connector an both ends · IDC connector 40-pin for the I/O module · IDC connector 50-pin for the SIMATIC TOP connect connection
module

1.0 m 2.0 m 2.5 m 3.0 m

Article number
6ES7923-5BB00-0GB0 6ES7923-5BC00-0GB0 6ES7923-5BC50-0GB0 6ES7923-5BD00-0GB0

Delivery quantity Pack of 1 Pack of 1 Pack of 1 Pack of 1

Support for selecting hardware components
We recommend you use the TIA Selection Tool for planning your project. The TIA Selection Tool is available free of charge as a desktop version for download or as a cloud version, refer to the Internet (https://new.siemens.com/global/en/products/automation/topic-areas/tia/tiaselection-tool.html).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

16

Equipment Manual, 07/2020, A5E48027024-AA

Wiring 3.4 Wiring of the module

3.4

Wiring of the module

Requirement

· The I/O modules are installed on the mounting rail. · The supply voltage of the station is switched off.

Procedure

1. Plug the two SIMATIC TOP connect connecting cables with the 40-pin IDC connector into X10 and X11.
Note when plugging: ­  The nob on the left edge of connector X11 ­  The nob on the right edge of connector X10

Figure 3-3 Connect the SIMATIC TOP connect 40-pin connecting cable to the module
2. Guide the SIMATIC TOP connect connecting cables down to the module. 3. Guide a cable tie around the module at the fixing points and connect the SIMATIC TOP
connect cables.

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

17

Wiring 3.4 Wiring of the module
4. Tighten the cable tie for the strain relief.
Figure 3-4 Fastening the cable tie for the strain relief 5. Plug the SIMATIC TOP connect connecting cables with the 50-pin IDC connector into the
SIMATIC TOP connect connection module.
Additional information
You can find out how to wire the SIMATIC TOP connect connection module in the equipment manual SIMATIC TOP connect for S7-1500 and ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/95924607).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

18

Equipment Manual, 07/2020, A5E48027024-AA

Wiring 3.5 Fuse

3.5

Fuse

Miniature circuit breaker
Inputs
The supply lines of groups are to be protected with a 4 A miniature circuit breaker with tripping characteristic C or B.
Below, you see the connection for "Sourcing" mode and for "Sinking" mode.
Outputs
The supply lines, max. 16 outputs of a group, are to be protected with a 4 A miniature circuit breaker with tripping characteristic B or C.
The connection module is to be protected with a 6 A miniature circuit breaker with tripping characteristic B.

Figure 3-5 "Sourcing" mode for the inputs

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

19

Wiring 3.5 Fuse
Figure 3-6 "Sinking" mode for the inputs

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

20

Equipment Manual, 07/2020, A5E48027024-AA

Address space

4

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image input/output.

Configuration options of DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file. When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names. The following configurations are possible:

Table 4- 1 Configuration options Configuration
1 x 64-channel without value status (1 x 32 digital inputs and 1 x 32 digital outputs) 8 x 8-channel without value status (4 x 8 digital inputs and 4 x 8 digital outputs)
1 x 64-channel with value status for up to 4 submodules (each 1 x 32 channels for module-internal Shared Input or module-internal Shared Output)

Short designation/ module name in the
GSD file
DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA S DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI or MSO

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog of STEP 7 (TIA Portal)
as of V16 and HSP 0319
X

GSD file in STEP 7 (TIA Portal) V12
or higher or STEP 7
V5.5 SP3 or higher
X

X

X

(PROFINET IO only) (PROFINET IO only)

X

X

(PROFINET IO only) (PROFINET IO only)

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

21

Address space
Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA
The figure below shows the address space assignment for configuration as a 1 x 64-channel module (32 digital inputs / 32 digital outputs). You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "EB a (IB a)" stands for module start address input byte and "AB x (QB x)" stands for module start address output byte.
Figure 4-1 Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

22

Equipment Manual, 07/2020, A5E48027024-AA

Address space
Address space for configuration as 8 x 8-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA S
For the configuration as an 8 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 64-channel module configuration, each of the eight submodules has a freely assignable start address.
Figure 4-2 Address space for configuration as 8 x 8-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA S

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

23

Address space
Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI/MSO
For configuration as a 1 x 64-channel module (module-internal Shared Input, MSI / moduleinternal Shared Output, MSO), the channels for inputs or outputs are copied to multiple submodules. Each of the channels are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a Shared Device: · The IO controller to which submodule 1 is assigned has write access to output channels
0 to 31 and read access to the input channels 0 to 31. · The IO controllers to which submodule 2, 3 or 4 is assigned have read access to the input
channels or output channels 0 to 31. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) for inputs The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).
Value status (Quality Information, QI) for outputs The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0: · IO controller of the basic submodule is in STOP mode. · The basic submodule is not yet configured.

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

24

Equipment Manual, 07/2020, A5E48027024-AA

Address space
The figure below shows the assignment of the address space with submodule 1 and the value status.

Figure 4-3 Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI/MSO

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

25

Address space
The figure below shows the assignment of the address space with submodule 2 and the value status.

Figure 4-4 Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI/MSO

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

26

Equipment Manual, 07/2020, A5E48027024-AA

Address space
The figure below shows the assignment of the address space with submodule 3 and the value status.

Figure 4-5 Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI/MSO

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

27

Address space
The figure below shows the assignment of the address space with submodule 4 and the value status.

Reference

Figure 4-6 Address space for configuration as 1 x 64-channel DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA MSI/MSO
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section "Module-internal shared input / Module-internal shared output (MSI/MSO)" of the function manual PROFINET with STEP 7 V16 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

28

Equipment Manual, 07/2020, A5E48027024-AA

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA.

Figure 5-1 LED displays of the DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA module

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

29

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Replace the module.

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

30

Equipment Manual, 07/2020, A5E48027024-AA

Technical specifications

6

Technical specifications of the DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA
The following table shows the technical specifications as of 07/2020. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td).
Enter the article number or the short designation of the module on the website.

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode
· Prioritized startup Engineering with
· STEP 7 TIA Portal configurable/integrated from version
· STEP 7 configurable/integrated from version
· PROFIBUS from GSD version/GSD revision Operating mode
· DI
· Counter
· DQ
· DQ with energy-saving function
· PWM
· Cam control (switching at comparison values)
· Oversampling
· MSI
· MSO
· Integrated operating cycle counter

6ES7523-1BP50-0AA0
DI 32 x 24 V DC / DQ 32 x 24 V DC/0.3A SNK BA From FS01 V1.0.0 Yes
Yes; I&M0 to I&M3 No No
V16 with HSP 0319 / V17
V5.5 SP3 / -
V1.0 / V5.1
Yes No Yes No No No
No Yes Yes No

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

31

Technical specifications

Article number Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Output voltage Rated value (DC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital inputs Number of digital inputs Digital inputs, parameterizable Source/sink input Input characteristic curve in accordance with IEC 61131, type 3
Number of simultaneously controllable inputs · Number of simultaneously controllable inputs
horizontal installation ­ up to 60 °C, max.
vertical installation ­ up to 40 °C, max.
Input voltage · Rated value (DC)
· for signal "0"
· for signal "1"
Input current · for signal "1", typ.
Input delay (for rated value of input voltage) for standard inputs
­ parameterizable
­ at "0" to "1", min.
­ at "0" to "1", max.
­ at "1" to "0", min.
­ at "1" to "0", max. for interrupt inputs
­ parameterizable

6ES7523-1BP50-0AA0 24 V 19.2 V 28.8 V Yes; Through internal protection with 4 A per group 45 mA; without load 24 V 0.6 W 4.7 W 32 No Yes Yes
32
32
16
24 V -30 to +5 V +11 to +30V
2.7 mA
No 3 ms 4 ms 3 ms 4 ms
No

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

32

Equipment Manual, 07/2020, A5E48027024-AA

Technical specifications

Article number for technological functions
­ parameterizable Cable length
· shielded, max.
· unshielded, max. Digital outputs
Type of digital output Number of digital outputs Current-sinking Current-sourcing Digital outputs, parameterizable Short-circuit protection
Limitation of inductive shutdown voltage to Controlling a digital input Switching capacity of the outputs · with resistive load, max.
· on lamp load, max. Load resistance range
· lower limit
· upper limit Output voltage
· for signal "1", min. Output current
· for signal "1" rated value
· for signal "1" permissible range, max.
· for signal "0" residual current, max. Output delay with resistive load
· "0" to "1", max.
· "1" to "0", max. Parallel switching of two outputs
· for logic links
· for uprating
· for redundant control of a load Switching frequency
· with resistive load, max.
· with inductive load, max.
· on lamp load, max.

6ES7523-1BP50-0AA0
No
1 000 m 600 m
Transistor 32 Yes No No No; external fusing necessary, max. 4 A per group, tripping characteristic type B or C L+ (-53 V) Yes
0.3 A 5 W
80  10 k
M+ (0.5 V)
0.3 A 0.3 A 0.5 mA
100 µs 500 µs
Yes No Yes
100 Hz 0.5 Hz; According to IEC 60947-5-1, DC-13 10 Hz

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

33

Technical specifications

Article number Total current of the outputs
· Current per channel, max.

6ES7523-1BP50-0AA0 0.3 A

· Current per group, max.

2 A

· Current per module, max.

4 A

Total current of the outputs (per module)

horizontal installation

­ up to 60 °C, max.

4 A

vertical installation

­ up to 40 °C, max.

4 A

Cable length · shielded, max.

1 000 m

· unshielded, max.

600 m

Encoder

Connectable encoders

· 2-wire sensor

Yes

­ permissible quiescent current (2-wire sensor), max.

1.5 mA

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values connectable

No

Alarms

· Diagnostic alarm

No

· Maintenance interrupt

No

· Hardware interrupt

No

Diagnostic messages

· Monitoring the supply voltage

No

· Wire-break

No

· Short-circuit

No

· Group error

No

Diagnostics indication LED · RUN LED

Yes; green LED

· ERROR LED

Yes; red LED

· MAINT LED

No

· Monitoring of the supply voltage (PWR-LED) Yes; via SIMATIC TOP connect connection module

· Channel status display

Yes; via SIMATIC TOP connect connection module

· for channel diagnostics

No

· for module diagnostics

No

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

34

Equipment Manual, 07/2020, A5E48027024-AA

Technical specifications

Article number Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus Isolation
Isolation tested with Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Altitude during operation relating to sea level
· Installation altitude above sea level, max. Dimensions
Width Height Depth Weights Weight, approx. Other Note:

6ES7523-1BP50-0AA0
No 16; 32 when using SIMATIC TOP connect connection module Yes
707 V DC (type test)
-30 °C 60 °C -30 °C 40 °C
5 000 m
35 mm 147 mm 129 mm
250 g
Please order cable and connection modules separately

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

35

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA module

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

36

Equipment Manual, 07/2020, A5E48027024-AA

Dimensional drawing
Figure A-2 Dimension drawing of the DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA module, side view with open front cover

Digital input/output module DI 32x24VDC SNK/SRC/DQ 32x24VDC/0.3A SNK BA (6ES7523-1BP50-0AA0)

Equipment Manual, 07/2020, A5E48027024-AA

37

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

SIMATIC
S7-1500/ET 200MP Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)
Equipment Manual

Preface

Documentation guide

1

Product overview

2

Wiring

3

Parameters/address space

4

5 Interrupts/diagnostics alarms

Technical specifications

6

Dimensional drawing

A

Parameter data records

B

04/2020
A5E03485590-AE

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03485590-AE  04/2020 Subject to change

Copyright © Siemens AG 2013 - 2020. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version Compared to the previous version, this manual contains the following change: The module features a switching cycle counter as of firmware version V2.1.0.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

4

Equipment Manual, 04/2020, A5E03485590-AE

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ................................................................................................................................. 6

2 Product overview ..................................................................................................................................... 10

2.1

Properties ................................................................................................................................ 10

2.2 2.2.1

Functions ................................................................................................................................12 Switching cycle counter ..........................................................................................................12

3 Wiring ...................................................................................................................................................... 14

4 Parameters/address space ...................................................................................................................... 17

4.1

Parameters .............................................................................................................................17

4.2

Explanation of parameters......................................................................................................18

4.3

Address space ........................................................................................................................19

5 Interrupts/diagnostics alarms ................................................................................................................... 22

5.1

Status and error displays ........................................................................................................22

5.2

Interrupts .................................................................................................................................24

5.3

Diagnostics alarms..................................................................................................................25

6 Technical specifications ........................................................................................................................... 26

A Dimensional drawing ............................................................................................................................... 33

B Parameter data records ........................................................................................................................... 35

B.1

Parameter assignment and structure of the parameter data records.....................................35

B.2

Structure of the data records DS 64 to 71 ..............................................................................37

B.3

Structure of data set DS 129 ..................................................................................................38

B.4

Structure of data set DS 130 ..................................................................................................39

B.5

Structure of data set DS 131 ..................................................................................................40

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

6

Equipment Manual, 04/2020, A5E03485590-AE

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

7

Documentation guide

Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

8

Equipment Manual, 04/2020, A5E03485590-AE

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

9

Product overview

2.1

Properties

Article number 6ES7522-5HF00-0AB0

View of the module

2

Figure 2-1 View of the DQ 8x230VAC/5A ST module

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

10

Equipment Manual, 04/2020, A5E03485590-AE

Product overview 2.1 Properties

Properties

The module has the following technical properties:  8 digital outputs (relays)  Supply voltage of the 24 V DC relay coils  Rated output voltage 230 V AC (24 V DC up to 120 V DC/24 V AC up to 230 V AC)  Rated output current 5 A  Configurable substitute values (per channel)  Assignable diagnostics (per channel group)  Switching cycle counter for relay contacts  Suitable for solenoid valves, DC contactors, and indicator lights The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO)
Switching cycle counter

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.1.0 or higher

Configuration software

STEP 7 (TIA Portal)
V12 or higher V12 or higher V12 or higher V13 Update 3 or higher (PROFINET IO only) V15.1 or higher with
HSP0282 · PROFINET IO only

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher
--- / X X X X
(PROFINET IO only) X
(PROFINET IO only)

· Central operation with a S7-1500 CPU

You configure the module with STEP 7 (TIA Portal) or with a GSD file.

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01

Firmware version V1.0.0 to V2.0.0

FS02

V1.0.0 to V2.0.0

FS03

V2.1.0

Note
Upgrade and downgrade possible between V1.0.0 and V2.0.0
Upgrade and downgrade possible between V1.0.0 and V2.0.0
Upgrade and downgrade possible between V2.1.0 and higher

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

11

Product overview 2.2 Functions

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Labeling strips  U connector  Universal front door

Other components
For example, you order the front connector including the potential bridge and cable tie separately.
You can find additional information on accessories and the article numbers in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

2.2

Functions

2.2.1

Switching cycle counter
The "Switching cycle counter" function records the number of switching cycles of the integrated relay contact. When the "Limit value warning" maintenance alarm is configured and enabled, the "Limit value warning" maintenance alarm is triggered when the specified number of switching cycles is reached.

Typical areas of application:
 Recording the number of switching cycles of the integrated relay contacts
 Predictive maintenance so maintenance and service intervals are more predictable, for example

Advantages

 No programming required, because the switching cycle counter is integrated into the module.
 "Monitoring" of each individual channel is possible. Select which outputs are "monitored".
 The system configuration is flexible and individually adaptable.
 Increase in plant availability. You can foresee a module or actuator replacement in advance for the next maintenance cycle.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

12

Equipment Manual, 04/2020, A5E03485590-AE

Product overview 2.2 Functions

Requirement

Firmware version V2.1.0 or higher of the module.

Configuration

The switching cycle counter for the integrated relay contacts is always activated. Configure the maintenance alarm to monitor the channels with the following parameters:  Trigger maintenance alarm when the limit is reached  Set limit for maintenance alarm

How it works

The module counts the switching cycles by evaluating the rising edges of an output signal. If the module detects a rising edge, the switching cycle counter (24-bit) for the respective channel is incremented. The counter stops when the high limit is reached.
If you activate the "Maintenance switching cycles" parameter, the "Limit value warning" of the maintenance alarm is signaled when the limit is exceeded. Alternatively, activate the maintenance alarm in the parameter data records starting at DS 64.
The current counter states are stored on the module cyclically (approx. every 20 seconds) and retentively. The switching cycle counters are reset each time the module is restarted (power off/on). If there is no supply voltage, the switching cycle counter stops.
You can read the current counter states with data set DS 129 (Page 38). Data set DS 129 contains the counter status for each channel in UDINT format.
You can read the limits for each channel in UDINT format with data set DS 130 (Page 39).
You can set a limit for each switching cycle counter with the "Switching cycle limit" parameter or data set DS 131 (Page 40).
Note:
The number of permissible switching cycles depends on the type and size of the load. We recommend setting the switching cycle counter to 90 % of the actual service life of the contacts, for example. You then still have adequate time to preemptively replace the module.
You can find the permissible number of switching cycles in theTechnical specifications (Page 26).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

13

Wiring

3

This section contains the block diagram of the module and outlines various wiring options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

14

Equipment Manual, 04/2020, A5E03485590-AE

Wiring
Wiring and block diagram The example in the following figure shows the terminal assignment and the assignment of the channels.
Note Note that the 24V DC supply voltage for this module must always be supplied by terminals 19/20 and terminals 39/40. Use the included potential jumpers for this purpose.

 Relay 8x  Backplane bus interface
L+ Power supply 24 V DC for relay contacts
M Ground

CHx RUN ERROR MAINT PWR

Channel or channel status LED (green) Status display LED (green) Error display LED (red) LED maintenance display (yellow) POWER supply voltage LED (green)

Figure 3-1 Block diagram and terminal assignment

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

15

Wiring
Tip: Using the potential jumpers Use the potential jumpers supplied with the front connector if you want to distribute the 24 V DC supply voltage to a neighboring module. This helps you to avoid having to terminate two wires to one terminal. Proceed as follows: 1. Connect the 24 V DC supply voltage to terminals 19 and 20. 2. Insert the potential jumpers between terminals 19 and 39 (L+) and between terminals 20 and 40 (M). 3. Use the terminals 39 and 40 to loop the potential to the next module.

Figure 3-2 Using the potential jumpers
Note Ensure that the maximum current load of 8 A per potential jumper is not exceeded.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

16

Equipment Manual, 04/2020, A5E03485590-AE

Parameters/address space

4

4.1

Parameters

DQ 8x230VAC/5A ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (parameter reassignment in RUN) and data records; see chapter Parameter assignment and structure of the parameter data records (Page 35).

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Parameter assignment in RUN

Diagnostics

· Missing supply voltage L+ Yes/No

No

Yes

Reaction to CPU STOP

· Turn off

Turn off

Yes

· Keep last value

· Output substitute value 1

Maintenance switching cycle

Yes/No

No

Yes

counter

Switching cycle limits

Switching cycle counter limit

0 to 16777214 0

Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file PROFINET IO

GSD file PROFIBUS DP

Channel group Channel

Channel group Channel

Channel

---

Channel

---

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

17

Parameters/address space 4.2 Explanation of parameters

4.2

Explanation of parameters

No supply voltage Enabling of the diagnostics, for lacking or insufficient supply voltage L+.
Reaction to CPU STOP Determines the reaction of the output when the CPU goes into the STOP state or when the connection to the CPU is interrupted.
Maintenance switching cycles You use this parameter to enable the maintenance alarm "Limit value warning" when the switching cycle counter limit is violated. You configure the limit with the parameter "Switching cycle limit" for each channel CHx.
Switching cycle limit Defines the limit value channel-by-channel. If this value is exceeded, the "Limit value warning" maintenance alarm is signaled. Enter an integer value between 0 and 16777214.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

18

Equipment Manual, 04/2020, A5E03485590-AE

Parameters/address space 4.3 Address space

4.3

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image output/input.

Configuration options of DQ 8x230VAC/5A ST You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different short designations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status 1 x 8-channel with value status for module-internal Shared Output with up to 4 submodules

Short designation/module name in the GSD file
DQ 8x230VAC/5A ST DQ 8x230VAC/5A ST QI DQ 8x230VAC/5A ST MSO

Configuration software, e.g., STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7
(TIA Portal)
X X V13 Update 3 or higher (PROFINET IO only)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X
X
X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 DQ 8x230VAC/5A ST QI
 DQ 8x230VAC/5A ST MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Note Limit value warning The maintenance alarm "Limit value warning" has no effect on the value status.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

19

Parameters/address space 4.3 Address space
Address space for configuration as 8-channel DQ 8x230VAC/5A ST The following figure shows the assignment of the address space for the configuration as a 8-channel module with value status. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module; "QB a", for example, stands for module start address output byte a.

Figure 4-1 Address space for configuration as 8-channel DQ 8x230VAC/5A ST with value status
Address space for configuration as 1 x 8-channel DQ 8x230VAC/5A ST MSO For the configuration as a 1 x 8-channel module (module-internal Shared Output, MSO), channels 0 to 7 of the module are copied to multiple submodules. Channels 0 to 7 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device:  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 7.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 7. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule involved. For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

20

Equipment Manual, 04/2020, A5E03485590-AE

Parameters/address space 4.3 Address space
The following figure shows the assignment of the address space for submodules 1, 2, 3, and 4 and the value status.

Reference

Figure 4-2 Address space for configuration as 1 x 8-channel DQ 8x230VAC/5A ST S MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

21

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the DQ 8x230VAC/5A ST.

5

Figure 5-1 LED displays of the DQ 8x230VAC/5A ST module

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

22

Equipment Manual, 04/2020, A5E03485590-AE

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostics alarms can be found in the section Diagnostics alarm (Page 25).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Flashes

Off

On

Off

On

Flashes

Flashes Flashes

Meaning Voltage missing or too low at backplane bus
The module starts and flashes until the valid parameter assignment is set. Module is configured Indicates module error because supply voltage L+ is missing Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error. Replace the module.

LED MAINT

Table 5- 2 MAINT status display

LED MAINT Off On

Meaning 0 = No maintenance interrupt is pending.
1 = The maintenance interrupt "Limit value warning" is pending.

Solution ---
Perform maintenance.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

23

Interrupts/diagnostics alarms 5.2 Interrupts

PWR LED

Table 5- 3 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

CHx LED

Table 5- 4 CHx status display

LED CHx Off On

Meaning 0 = Status of the output signal
1 = Status of the output signal

Solution Check the L+ supply voltage. ---
Solution -----

5.2

Interrupts

The digital output module DQ 8x230VAC/5A ST supports diagnostics interrupts and maintenance alarms.

Diagnostics interrupt The module generates a diagnostics interrupt at the following event:  Missing supply voltage L+  Parameter assignment error

Maintenance alarm The module generates a maintenance alarm at the following event: Limit value warning.
Detailed information You can find detailed information on the event in the error organization block with the "RALRM" instruction (read alarm status information) and in the STEP 7 online help.

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

24

Equipment Manual, 04/2020, A5E03485590-AE

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. You can read out the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.
If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/78324181).

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm
Parameter assignment error

Error code 10H

Load voltage missing

11H

Limit value warning

17H

Meaning
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment
Supply voltage L+ of the module is missing The configured limit for switching cycles has been exceeded.

Corrective measures Correct the parameter assignment
Connect supply voltage L+ to module/channel · Replace module / actuator as a
precautionary measure

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

25

Technical specifications

6

Technical specifications of the DQ 8x230VAC/5A ST
The following table shows the technical specifications as of 04/2020. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7522-5HF00-0AB0/td?dl=en).

Article number General information
HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · DQ
· DQ with energy-saving function
· PWM
· Oversampling
· MSO
· Integrated operating cycle counter Supply voltage
Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection

6ES7522-5HF00-0AB0
FS02 V2.1.0 Yes
Yes; I&M0 to I&M3 No
V12 / V12
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
Yes No No No Yes Yes; FW V2.1.0 or higher
24 V 20.4 V 28.8 V Yes

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

26

Equipment Manual, 04/2020, A5E03485590-AE

Technical specifications

Article number Input current
Current consumption, max. Output voltage
Rated value (AC)
Power Power available from the backplane bus
Power loss Power loss, typ.
Digital outputs Type of digital output Number of digital outputs Current-sinking Current-sourcing Digital outputs, parameterizable Short-circuit protection Controlling a digital input Size of motor starters according to NEMA, max.
Switching capacity of the outputs · on lamp load, max.

6ES7522-5HF00-0AB0
80 mA
230 V; 24 V DC to 120 V DC / 24 V AC to 230 V AC
0.8 W
5 W
Relays 8 Yes Yes Yes No possible 5
1 500 W; 10 000 operating cycles

· Low energy/fluorescent lamps with electronic control gear

10x 58 W (25 000 operating cycles)

· Fluorescent tubes, conventionally compen- 1x 58 W (25 000 operating cycles) sated

· Fluorescent tubes, uncompensated

10x 58 W (25 000 operating cycles)

Output current

· for signal "1" rated value

5 A

· for signal "1" permissible range, min.

5 mA; 10 V

· for signal "1" permissible range, max.

8 A; thermal continuous current

· for signal "0" residual current, max.

0 A

Parallel switching of two outputs

· for logic links

Yes

· for uprating

No

· for redundant control of a load

Yes

Switching frequency · with resistive load, max.

2 Hz

· with inductive load, max.

0.5 Hz

· on lamp load, max.

2 Hz

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

27

Technical specifications

Article number Total current of the outputs
· Current per channel, max. · Current per group, max. · Current per module, max. Relay outputs · Number of relay outputs · Rated supply voltage of relay coil L+ (DC) · Current consumption of relays (coil current
of all relays), typ. · external protection for relay outputs
· Contact connection (internal) · Number of operating cycles, max.
· Relay approved acc. to UL 508
Switching capacity of contacts ­ with inductive load, max. ­ with resistive load, max.
Cable length · shielded, max. · unshielded, max.
Interrupts/diagnostics/status information Diagnostics function Substitute values connectable
Alarms · Diagnostic alarm
Diagnostic messages · Monitoring the supply voltage · Wire-break · Short-circuit

6ES7522-5HF00-0AB0
8 A; see additional description in the manual 8 A; see additional description in the manual 64 A; see additional description in the manual
8 24 V 80 mA
With miniature circuit breaker with characteristic B for: cos  1.0: 600 A cos  0.5 ... 0.7: 900 A with 8 A Diazed fuse: 1 000 A No 4 000 000; see additional description in the manual Yes; 250 V AC/5 A g.p.; 120 V AC TV-4 tungsten; A300, R300
see additional description in the manual see additional description in the manual
1 000 m 600 m
Yes Yes
Yes
Yes No No

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

28

Equipment Manual, 04/2020, A5E03485590-AE

Technical specifications

Article number Diagnostics indication LED
· RUN LED

6ES7522-5HF00-0AB0 Yes; green LED

· ERROR LED

Yes; red LED

· MAINT LED

Yes; Yellow LED

· Monitoring of the supply voltage (PWRLED)

Yes; green LED

· Channel status display

Yes; green LED

· for channel diagnostics

No

· for module diagnostics

Yes; red LED

Potential separation Potential separation channels
· between the channels

Yes; Switching of different phases permitted

· between the channels, in groups of

1

· between the channels and backplane bus Yes

· Between the channels and load voltage L+ Yes

Permissible potential difference between different circuits
Isolation Isolation tested with
Standards, approvals, certificates Suitable for safety functions
Ambient conditions Ambient temperature during operation
· horizontal installation, min.

250 V AC between the channels and the supply voltage L+; 250 V AC between the channels and the backplane bus; 500 V AC between the channels
Between channels: 3 100 V DC; between channels backplane bus: 3 100 V DC; between L+ and backplane bus: 707 V DC (type test)
No
-30 °C; From FS03

· horizontal installation, max.

60 °C

· vertical installation, min.

-30 °C; From FS03

· vertical installation, max.

40 °C

Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

Yes
35 mm 147 mm 129 mm
350 g

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

29

Technical specifications
Power reduction (derating) to aggregate current of outputs (per channel) The following graphs show the loading capacity of the relay contacts in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on aggregate current of outputs (per channel)

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

30

Equipment Manual, 04/2020, A5E03485590-AE

Technical specifications

Details on the number of switching cycles
The following tables list the permissible number of switching cycles depending on the applied voltage and current load. Different values apply in each case to resistive and inductive loads.

Table 6- 1 Switching capacity and service life of relay contacts for resistive load

For resistive load Voltage 24 V DC
60 V DC 120 V DC 24 V AC 48 V AC 60 V AC 120 V AC
230 V AC

Current
8.0 A 5.0 A 2.5 A 2.0 A 1.5 A 0.5 A 0.5 A 0.2 A 0.1 A 8.0 A 8.0 A 2.0 A 8.0 A 2.0 A 8.0 A 5.0 A 4.0 A 2.0 A 1.0 A 0.5 A 8.0 A 5.0 A 4.0 A 2.5 A 2.0 A 1.0 A 0.5 A 0.2 A 0.1 A

Number of switching cycles (typ.) 0.1 million 0.2 million 0.7 million 1.0 million 2.0 million 4.0 million 4.0 million 1.6 million 2.0 million 0.1 million 0.1 million 1.6 million 0.1 million 1.2 million 0.1 million 0.2 million 0.3 million 0.5 million 0.7 million 1.5 million 0.1 million 0.2 million 0.3 million 0.4 million 0.5 million 0.7 million 1.5 million 1.7 million 2.0 million

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

31

Technical specifications

Table 6- 2 Switching capacity and lifetime of the relay contacts for inductive load

For inductive load Voltage 24 V DC
60 V DC 120 V DC 24 V AC 48 V AC 60 V AC 120 V AC
230 V AC

Current
2.5 A 2.0 A 1.0 A 0.5 A 0.2 A 0.5 A 0.3 A 0.1 A 0.2 A 3.0 A 1.5 A 3.0 A 1.5 A 3.0 A 5.0 A 3.0 A 2.0 A 1.0 A 0.5 A 5.0 A 3.0 A 2.5 A 2.0 A 1.0 A 0.5 A 0.2 A 0.1 A

Number of switching cycles (typ.) 0.25 million 0.3 million 0.5 million 1.0 million 2.0 million 0.5 million 1.0 million 1.2 million 0.5 million 0.5 million 1.0 million 0.4 million 1.0 million 0.3 million 0.1 million 0.2 million 0.3 million 0.7 million 2.0 million 0.1 million 0.2 million 0.4 million 0.3 million 0.7 million 2.0 million 3.0 million 4.0 million

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

32

Equipment Manual, 04/2020, A5E03485590-AE

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in the appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DQ 8x230VAC/5A ST module

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

33

Dimensional drawing
Figure A-2 Dimensional drawing of the DQ 8x230VAC/5A ST module, side view with open front cover

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

34

Equipment Manual, 04/2020, A5E03485590-AE

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When a GSD file is used to configure a module, dependencies can arise when "assigning the parameters".
There are no dependencies for this module. You can assign the individual parameters in any combination.

Parameter assignment in the user program
You have the option to reconfigure the module in RUN (e.g. the response of selected channels to the CPU-STOP state can be changed in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 71. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module in the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

35

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel The channel parameters of the module are included in data records 64 to 71 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  Data record 66 for channel 2  Data record 67 for channel 3  Data record 68 for channel 4  Data record 69 for channel 5  Data record 70 for channel 6  Data record 71 for channel 7
Assignment of data record for the switching cycle counter The parameters for the switching cycle counter are located in the data records 129 to 130 and are assigned as follows:  Data record 129 for channel 0 to 7 to read the counter values  Data record 130 for channel 0 to 7 to read the limit values

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

36

Equipment Manual, 04/2020, A5E03485590-AE

Parameter data records B.2 Structure of the data records DS 64 to 71

B.2

Structure of the data records DS 64 to 71

Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed.
Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 3

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

37

Parameter data records B.3 Structure of data set DS 129

B.3

Structure of data set DS 129

Structure of data set 129
You can read the current states of the switching cycle counters with data set 129. The counter status is supplied for each channel in UDINT format.
The following figure shows you the structure of data set 129.

Figure B-2 Structure of data set 129: Byte 0 to 31

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

38

Equipment Manual, 04/2020, A5E03485590-AE

Parameter data records B.4 Structure of data set DS 130

B.4

Structure of data set DS 130

Structure of data set 130
The limits of the switching cycle counters are read out with data set 130. The set value is supplied for each channel in UDINT format.
The following figure shows you the structure of data set 130.

Figure B-3 Structure of data set 130: Byte 0 to 31

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

Equipment Manual, 04/2020, A5E03485590-AE

39

Parameter data records B.5 Structure of data set DS 131

B.5

Structure of data set DS 131

Structure of data set 131 The following figure shows you the structure of data set 131. Enable a parameter by setting the corresponding bit to "1".

Figure B-4 Structure of data set 131: Bytes 0 to 7

Digital output module DQ 8x230VAC/5A ST Relay (6ES7522-5HF00-0AB0)

40

Equipment Manual, 04/2020, A5E03485590-AE

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

S7-1500/ET 200MP

_W_iri_ng_______________3_

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA

_Ad_d_re_ss_s_pa_c_e __________4_

(6ES7523-1BL00-0AA0)
Manual

_Di_ag_n_os_tic_s_a_lar_m_s ________5_

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

09/2016
A5E32364588-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32364588-AC  09/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual.
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

4

Manual, 09/2016, A5E32364588-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

3.1

Wiring and block diagram ...................................................................................................... 13

4 Address space ...................................................................................................................................... 14

4.1

Address space ....................................................................................................................... 14

5 Diagnostics alarms................................................................................................................................ 21

5.1

Status and error displays ....................................................................................................... 21

6 Technical specifications ........................................................................................................................ 23

A Dimensional drawing............................................................................................................................. 28

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

6

Manual, 09/2016, A5E32364588-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

8

Manual, 09/2016, A5E32364588-AC

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

10

Manual, 09/2016, A5E32364588-AC

Product overview

2.1

Properties

Part number:

6ES7523-1BL00-0AA0

View of the module

2

Figure 2-1 View of the DI 16x24VDC/DQ 16x24VDC/0.5A BA module

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  Digital inputs
­ 16 digital inputs; electrically isolated in groups of 16 ­ Rated input voltage 24 VDC ­ Suitable for switches and 2-/3-/4-wire proximity switches  Digital outputs ­ 16 digital outputs, electrically isolated in groups of 8 ­ Rated output voltage 24 VDC ­ Rated output current 0.5 A per channel ­ Suitable for solenoid valves, DC contactors, and indicator lights The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Module-internal Shared Input (MSI) / Shared Output (MSO) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or
STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following components are supplied with the module and can also be ordered separately as spare parts:
 Front connector (push-in terminals) including cable tie
 Labeling strips
 U connector
 Universal front door
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

12

Manual, 09/2016, A5E32364588-AC

Wiring

3

3.1

Wiring and block diagram

This section contains the block diagram of the module and outlines various wiring options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Wiring and block diagram
The figure below shows you how to connect the module and the assignment of the channels to the addresses (input byte a and b, output byte c and d).

 Backplane bus interface
xL+ Supply voltage 24 V DC xM Ground

CHx RUN ERROR PWR

Channel or channel status LED (green) Status display LED (green) Error display LED (red) POWER supply voltage LED (green)

Figure 3-1 Block diagram and terminal assignment

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

13

Address space

4

4.1

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image input/output.

Configuration options of DI 16x24VDC/DQ 16x24VDC/0.5A BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 1 Configuration options Configuration

Short designation/ module name in the GSD
file

1 x 32-channel without value status (1 x 16 digital inputs and 1 x 16 digital outputs)
4 x 8-channel without value status (2 x 8 digital inputs and 2 x 8 digital outputs)

DI 16x24VDC/ DQ 16x24VDC/0.5 BA
DI 16x24VDC/ DQ 16x24VDC/0.5 BA S

1 x 32-channel with value status for up to 4 submodules (each 1 x 16 channels for moduleinternal Shared Input or Shared Output)

DI 16x24VDC/ DQ 16x24VDC/0.5 BA MSI or MSO

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher

V13 or higher

X

V13 Update 3 or higher (PROFINET IO only)
V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)
X (PROFINET IO only)

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

14

Manual, 09/2016, A5E32364588-AC

Address space 4.1 Address space
Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA
The figure below shows the address space assignment for configuration as a 1 x 32-channel module (16 digital inputs / 16 digital outputs). You can freely assign the start address for the module. The addresses of the channels are derived from the start address. The letters "a to d" are printed on the module- "EB a", for example, stands for module start address input byte a.
Figure 4-1 Address space for configuration as 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA
Address space for configuration as 4 x 8-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA S
For the configuration as a 4 x 8-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 32-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 8-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA S

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

15

Address space 4.1 Address space
Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA MSI/MSO
For configuration as a 1 x 32-channel module (module-internal Shared Input, MSI/Shared Output, MSO), the channels for inputs or outputs 0 to 15 of the module are copied to multiple submodules. Each of the channels 0 to 15 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a Shared Device:  The IO controller to which submodule 1 is assigned has write access to output channels 0
to 15 and read access to the input channels 0 to 15.  The IO controllers to which submodule 2, 3 or 4 is assigned have read access to the input
channels or output channels 0 to 15. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) for inputs The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status is not relevant. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).
Value status (Quality Information, QI) for outputs The meaning of the value status depends on the submodule involved. For the 1st submodule (=basic submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode. For the 2nd to 4th submodule (=MSO submodule), the value status 1 indicates that the output value specified by the user program is actually output at the module terminal. Possible causes for value status = 0:  Value is incorrect, for example, because the supply voltage is missing.  IO controller of the basic submodule is in STOP mode.  The basic submodule is not yet configured.

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

16

Manual, 09/2016, A5E32364588-AC

Address space 4.1 Address space The figure below shows the assignment of the address space with submodule 1 and the value status.
Figure 4-3 Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA MSI/MSO

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

17

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodule 2 and the value status.

Figure 4-4 Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA MSI/MSO

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

18

Manual, 09/2016, A5E32364588-AC

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodule 3 and the value status.

Figure 4-5 Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA MSI/MSO

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

19

Address space 4.1 Address space
The figure below shows the assignment of the address space with submodule 4 and the value status.

Reference

Figure 4-6 Address space for configuration as 1 x 32-channel DI 16x24VDC/DQ 16x24VDC/0.5A BA MSI/MSO
You can find information on the module-internal shared input/shared output (MSI/MSO) function in the section Module-internal shared input/shared output (MSI/MSO) of the function manual PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

20

Manual, 09/2016, A5E32364588-AC

Diagnostics alarms

5

The module has no selectable diagnostics. Diagnostics alarms, for example, cannot be output with STEP 7 (TIA Portal).

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the DI 16x24VDC/DQ 16x24VDC/0.5A BA.

Figure 5-1 LED displays of the module DI 16x24VDC/DQ 16x24VDC/0.5A BA

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

21

Diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The tables below explain the meaning of the status and error displays.

LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On
Flashes

Off Off Flashes

Module is starting up. Module is ready. Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Replace the module.

LED PWRx

Table 5- 2 PWRx status display

LED PWRx Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

LED CHx

Table 5- 3 CHx status display

LED CHx

Meaning

0 = Status of the input/output signal.

---

Off

1 = Status of the input/output signal.

---

On

Remedy

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

22

Manual, 09/2016, A5E32364588-AC

Technical specifications

6

Technical specifications of the DI 16x24VDC/DQ 16x24VDC/0.5A BA

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7523-1BL00-0AA0
DI 16x24VDC / DQ16x24VDC/0.5A BA FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

DI

Yes

Counters

No

DQ

Yes

DQ with energy-saving function

No

PWM

No

Oversampling

No

MSI

Yes

MSO

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes; with internal protection with 7 A per group
30 mA

Output voltage

Rated value (DC)

24 V

Power

Power consumption from the backplane bus Power loss Power loss, typ.

1.1 W 3.45 W

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

23

Technical specifications

Digital inputs Number of inputs Configurable digital inputs Sinking/sourcing input Input characteristic curve acc. to IEC 61131, type 3 Input voltage Type of input voltage Rated value (DC) for signal "0" for signal "1" Input current for signal "1", typ. Input delay (for rated value of input voltage) For standard inputs · Configurable
· with "0" to "1", min.
· with "0" to "1", max.
· with "1" to "0", min.
· with "1" to "0", max.
For interrupt inputs · Configurable
Cable length shielded, max. unshielded, max. Digital outputs Number of outputs Sourcing output Short-circuit protection · Response threshold, typ.
Limitation of inductive shutdown voltage to Activation of a digital input Switching capacity of the outputs With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage for signal "1", min.

6ES7523-1BL00-0AA0
16 No Sinking input Yes
DC 24 V -30 to +5 V +11 to +30 V
2.7 mA
No 3 ms 4 ms 3 ms 4 ms
No
1000 m 600 m
16 Yes Yes 1 A L+ (-53 V) Yes
0.5 A 5 W
48  12 k
L+ (-0.8 V)

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

24

Manual, 09/2016, A5E32364588-AC

Technical specifications

Output current For signal "1" rated value For signal "1" permitted range, max. For signal "0" residual current, max. Output delay with resistive load "0" to "1", max. "1" to "0", max. Parallel connection of two outputs For logical operations For increased performance For redundant activation of a load Switching frequency With resistive load, max. With inductive load, max. With lamp load, max. Total current of the outputs Current per channel, max. Current per group, max. Current per module, max. Cable length shielded, max. unshielded, max. Encoders Connectable encoders 2-wire sensor
· Permitted quiescent current (2-wire sensor), max.

6ES7523-1BL00-0AA0
0.5 A 0.5 A 0.5 mA
100 µs 500 µs
Yes No Yes
100 Hz 0.5 Hz 10 Hz
0.5 A; see additional description in the manual 4 A; see additional description in the manual 8 A; see additional description in the manual
1000 m 600 m
Yes 1.5 mA

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

No

Substitute values can be applied

No

Interrupts

Diagnostics interrupt

No

Hardware interrupt

No

Diagnostics alarms

Monitoring of supply voltage

No

Wire break

No

Short-circuit

No

Group error

No

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

25

Technical specifications

Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Isolation Isolation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7523-1BL00-0AA0
Yes; green LED Yes; red LED Yes; green LED Yes; green LED No No
No 8 Yes
707 V DC (type test)
0 °C 60  0 °C 40 °C
Yes
25 mm 147 mm 129 mm
280 g
Delivery includes 40-pin push-in front connector

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

26

Manual, 09/2016, A5E32364588-AC

Technical specifications Power reduction (derating) to total current of outputs (per group)
The following graphs show the loading capacity of the outputs in relation to the mounting position of the S71500 automation system/ET 200MP distributed I/O system and the ambient temperature.
 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Details on total current of outputs (per group)

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

27

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front cover, are provided in this appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the DI 16x24VDC/DQ 16x24VDC/0.5A BA module

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

28

Manual, 09/2016, A5E32364588-AC

Dimensional drawing
Figure A-2 Dimensional drawing of the DI 16x24VDC/DQ 16x24VDC/0.5A BA module, side view with open front cover

Digital input/output module DI 16x24VDC/DQ 16x24VDC/0.5A BA (6ES7523-1BL00-0AA0)

Manual, 09/2016, A5E32364588-AC

29

SIMATIC
S7-1500/ET 200MP Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E36649087-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36649087-AB  09/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Functions that relate in general to the systems are described in these system manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  As of firmware version V1.1.0, the module supports the following functions:
­ Measuring range adjustment ­ Scaling of measured values  Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information regarding the product described in the documentation or its handling, or draws special attention to a section of the documentation.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

4

Manual, 09/2016, A5E36649087-AB

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

2.2 2.2.1 2.2.2

Functions................................................................................................................................ 14 Measuring range adjustment ................................................................................................. 14 Scaling of measured values ................................................................................................... 17

3 Wiring ................................................................................................................................................... 21

4 Parameters/address space ................................................................................................................... 25

4.1

Measuring types and ranges.................................................................................................. 25

4.2

Parameters............................................................................................................................. 26

4.3

Declaration of parameters...................................................................................................... 29

4.4

Address space ....................................................................................................................... 32

5 Interrupts/diagnostics alarms................................................................................................................. 39

5.1

Status and error displays ....................................................................................................... 39

5.2

Interrupts ................................................................................................................................ 41

5.3

Diagnostics alarms................................................................................................................. 43

6 Technical specifications ........................................................................................................................ 44

A Dimensional drawing............................................................................................................................. 48

B Parameter data records ........................................................................................................................ 50

B.1

Parameter assignment ........................................................................................................... 50

B.2

Structure of the parameter data records without scaling of measured values ...................... 52

B.3

Structure of the parameter data records with scaling of measured values ........................... 55

B.4

Codes for measurement types/measuring ranges and limits for hardware interrupts ........... 58

C Representation of analog values ........................................................................................................... 60

C.1

Representation of input ranges.............................................................................................. 61

C.2

Representation of analog values in voltage measuring ranges ............................................. 62

C.3

Representation of analog values in the current measuring ranges ....................................... 63

C.4

Measured values for wire break diagnostic ........................................................................... 64

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

6

Manual, 09/2016, A5E36649087-AB

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

8

Manual, 09/2016, A5E36649087-AB

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

10

Manual, 09/2016, A5E36649087-AB

Product overview

2.1

Properties

Article number
6ES7531-7NF00-0AB0

View of the module

2

Figure 2-1 View of the AI 8xU/I HF module

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  8 electrically isolated analog inputs  Voltage measurement type can be set per channel  Current measurement type can be set per channel  Two operating modes
­ Fast: shortest integration time 2.5 ms ­ Standard: shortest integration time 7.5 ms  Resolution 16 bits including sign  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits per channel) The module supports the following functions:

Table 2- 1

Version dependencies of the module functions

Function

Firmware version of the module

Configuration software

STEP 7 (TIA Portal) as of V13,
SP1 and HSP 0166

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device Measuring range adjustment Scaling of measured values

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher
V1.1.0 or higher

X X X X (PROFINET IO only) X (PROFINET IO only) V14 or higher and HSP 0186 (only PROFINET IO)

--- / X X X X
(PROFINET IO only) X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

12

Manual, 09/2016, A5E36649087-AB

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

13

Product overview 2.2 Functions

2.2

Functions

2.2.1

Measuring range adjustment

Introduction

The measuring range adjustment is available for current and voltage measuring ranges. Live zero measuring ranges are not supported.

Function

The measuring range adjustment is an adjustment of the measuring range at the sensor.
It allows you to increase the resolution for a configurable part of the measuring range in S7 format.
 You activate the function in STEP 7 (TIA Portal) via the "Measuring range adjustment" parameter.
 The "Measuring range adjustment high limit" parameter sets the high limit of the measuring range in mV or A.
 The "Measuring range adjustment low limit" parameter sets the low limit of the measuring range in mV or A.
Note · The "Measuring range adjustment" function can be used in combination with the
"Measured value scaling" function, see also Scaling of measured values (Page 17). · When the "Measuring range adjustment high limit" and "Measuring range adjustment low
limit" parameters are too close together, resolution may be lost, which means it may no longer be possible to show every value.

Rules

 The limits of the measuring range adjustment must be selected within the nominal range of the base measuring range. They are specified in integers.
 The measuring range adjustment is resolved depending on the base measuring range from 0H to 6C00H or 9400H to 6C00H.
 Underranges/overranges apply in accordance with the S7 format and the base measuring range.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

14

Manual, 09/2016, A5E36649087-AB

Example

Product overview 2.2 Functions

The following values result, for example:

Table 2- 2 Example of measuring range adjustment

Measuring range adjustment
Base measuring range Adjusted measuring range Measuring range adjustment high limit
Measuring range adjustment low limit

Measuring range resolution

Bipolar

Unipolar

±10 V

0 mA to 20 mA

+2 V to +5 V

+2 mA to +15 mA

5000 mV (S7: +27648)

15 mA (S7: +27648)

2000 mV (S7: -27648)

2 mA (S7: 0)

The following example illustrates the effect of a measuring range adjustment:

Figure 2-2 Example of a measuring range adjustment

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

15

Product overview 2.2 Functions
Example of a configuration
The following figure shows an example of a configuration with a measuring range adjustment of 2000 mV to 5000 mV.

Figure 2-3 Example of a measuring range adjustment in STEP 7 (TIA Portal)

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

16

Manual, 09/2016, A5E36649087-AB

2.2.2

Scaling of measured values

Product overview 2.2 Functions

Introduction

The measured value scaling can be combined with the measuring range adjustment. In this case, the measuring range is adjusted first and then the representation of the measuring range is scaled.

Function

With measured value scaling, the user data of the module is displayed in REAL format (32bit floating point) instead of S7 format.
The representation of the measuring range is defined by the following parameters:
 The "Scaled high nominal range limit" parameter sets the desired display value (in REAL format) for the high nominal range limit of the measuring range.
 The "Scaled low nominal range limit" parameter sets the desired display value (in REAL format) for the low nominal range limit of the measuring range.

Note

Effects of inversion

·

It is possible to set the "Scaled high nominal range limit" parameter lower than the

"Scaled low nominal range limit" parameter, whereby the representation of the measuring

range will be inverted compared to the terminal value (V, mA).

·

Overflow/underflow and hardware interrupts are always based on representation in

REAL format. A terminal value of > 11.76 V triggered an underflow for an inverted

measured value scaling. Hardware interrupts react similarly.

Substitute value for underflow/overflow

With measured value scaling, the substitute value is minus infinity for underflow (FF80 0000H) and plus infinity for overflow (7F80 0000H).
Resolution at the parameter "Scaled high/low nominal range limit"

When the Parameter "Scaled high nominal range limit" and "Scaled low nominal range limit" parameters are too close together, resolution may be lost, which means it may no longer be possible to show every value.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

17

Product overview 2.2 Functions

Example

The following values result, for example:

Table 2- 3 Example of measured value scaling

Base measuring range S7 format Scaling of measured values

Low nominal range limit -10 V -27648 1.00

High nominal range limit +10 V +27648 7.00

As shown in the table, -10 V corresponds to 1.00 and +10 V corresponds to 7.00.

Combination with measuring range adjustment
If the measuring range adjustment is enabled in addition to measured value scaling, first the measuring range is adjusted and then the representation of the measuring range scaled. The table below shows an example of the combination of measured value scaling and measuring range adjustment.

Table 2- 4 Example for a combination of measured value scaling and measuring range adjustment

Measuring range adjustment S7 format Scaling of measured values

Low nominal range limit -4000 mV -27648 1.00

High nominal range limit 8000 mV +27648 7.00

As shown in the table, -4 V corresponds to 1.00 and +8 V corresponds to 7.00.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

18

Manual, 09/2016, A5E36649087-AB

Product overview 2.2 Functions

Configuration

The following figures show examples of a configuration in STEP 7 (TIA Portal): Configuration of measured value scaling

Figure 2-4 Configuration of measured value scaling

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

19

Product overview 2.2 Functions
Configuration with measuring range adjustment and measured value scaling In the configuration example, a measuring range adjustment of -4000 mV to 8000 mV is displayed and additionally converted to a scaled high and low nominal range limit of 1.00 to 7.00.

Figure 2-5 Configuration with measuring range adjustment and measured value scaling

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

20

Manual, 09/2016, A5E36649087-AB

Wiring

3

The section below includes the block diagram of the module and various wiring options. You can find information on wiring the front connector, establishing a cable shield, etc in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers included with the front connector!

Abbreviations used
Meaning of the abbreviations used in the following figures:

Un+/UnIn+/InL+ M

Voltage input channel n (voltage only) Current input channel n (current only) Supply voltage connection Ground connection

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). Use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

21

Wiring
Block diagram and pin assignment for voltage measurement
The example in the figure below shows the pin assignment for a voltage measurement.

 Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

22

Manual, 09/2016, A5E36649087-AB

Wiring
Block diagram and terminal assignment for 4-wire transducer for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transducers.

 Connector 4-wire transducer  Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and terminal assignment for 4-wire transducer for current measurement

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

23

Wiring
Block diagram and terminal assignment for 2-wire transducer for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transducers.

 Connector 2-wire transducer
 Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx
RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and terminal assignment for 2-wire transducer for current measurement

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

24

Manual, 09/2016, A5E36649087-AB

Parameters/address space

4

4.1

Measuring types and ranges

Introduction

The module is set to voltage measuring type with measuring range ±10 V by default. You need to reassign the module parameters with STEP 7 if you want to use a different measuring type or range.
The following table shows the measuring types and the respective measuring range.

Measurement type Voltage
Current 2WMT (2-wire transducer) Current 4WMT (4-wire transducer) Deactivated

Measuring range
1 V to 5 V ±2.5 V ±5 V ±10 V 4 mA to 20 mA
4 mA to 20 mA 0 mA to 20 mA ±20 mA -

Representation of analog values
See Appendix Representation of analog values in voltage measuring ranges (Page 62).
See Appendix Representation of analog values in the current measuring ranges (Page 63).

The tables of the input ranges, overflow, undershoot range, etc. are available in appendix Representation of analog values (Page 60).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

25

Parameters/address space 4.2 Parameters

4.2

Parameters

Parameters of AI 8xU/I HF
The AI 8xU/I HF is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of a GSD file and the configuration software of any provider. The module does not check the validity of the configured properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment (Page 50).
The following parameter settings for the channels are possible:

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Diagnostics

· Missing supply voltage Yes/No

No

L+

· Overflow

Yes/No

No

· Underflow

Yes/No

No

· Wire break
· Current limit for wire break diagnostics 2)

Yes/No (Voltage: 1 V to 5 V Current: 4 mA to 20 mA)
1.185 mA or 3.6 mA

No 1.185 mA

Configuration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware cata-
log STEP 7 (TIA Portal) as of V13 or GSD file PROFINET
IO

GSD file PROFIBUS DP

Yes

Channel 1)

Module 3)

Yes

Channel

Module 3)

Yes

Channel

Module 3)

Yes

Channel

Module 3)

Yes

Channel

--- 4)

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

26

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.2 Parameters

Parameters

Range of values

Default setting

Measuring · Measurement type · Measuring range

See section Measur- Voltage

ing types and rang-

es (Page 25)

±10 V

· Operating mode

Standard Fast

Standard

· Interference frequency 400 Hz

suppression

60 Hz

50 Hz

50 Hz

10 Hz

· Smoothing

None/low/medium/hi None gh

· Measuring range adjustment

· Disable · Enable

Disable

· Measuring range ad- Value within the

High limit

justment high limit (mV nominal range of the

or µA)

measuring range

greater than lower

limit

· Measuring range adjustment low limit (mV or µA)

Value within the

Low limit

nominal range of the

measuring range

smaller than high

limit

· Scaled high nominal range limit

Scale · High limit

High limit

· Low limit

· Scaled low nominal range limit

Scale · High limit

Low limit

· Low limit

Configuration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware cata-
log STEP 7 (TIA Portal) as of V13 or GSD file PROFINET
IO

GSD file PROFIBUS DP

Yes

Channel

Channel

Yes

Channel

Channel

Yes

Channel

--- 4)

Yes

Channel

Module

Yes

Channel

Channel

Yes

Channel

Channel

Yes

Channel

Channel 4)

Yes

Channel

Channel 4)

Yes

Channel

---

Yes

Channel

---

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

27

Parameters/address space 4.2 Parameters

Parameters

Range of values

Hardware interrupt · Hardware interrupt high Yes/No
limit 1
· Hardware interrupt low Yes/No limit 1
· Hardware interrupt high Yes/No limit 2
· Hardware interrupt low Yes/No limit 2

Default setting

Configuration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware cata-
log STEP 7 (TIA Portal) as of V13 or GSD file PROFINET
IO

GSD file PROFIBUS DP

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this message burst by assigning the diagnostics function to one channel only.
2) When "Wire break" diagnostics is disabled, the current limit of 1.185 mA applies to the value status. For measured values below 1.185 mA, the value status is always: 0 = fault.
3) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 7.
4) You can set the current limit for wire break diagnostics, the "Hardware interrupt" parameter, the "Measuring range adjustment high and low limit" and the hardware interrupt limits in the user program with data records 0 to 7.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

28

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics if the measured value violates the low limit.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input or the applied voltage is too low.

Current limit for wire break diagnostics
Threshold for reporting wire breaks. The value can be set to 1.185 mA or 3.6 mA, depending on the sensor used.

Interference frequency suppression
Suppresses the interference affecting analog input modules that is caused by the frequency of the AC voltage network used.
The frequency of the AC voltage network can negatively affect the measured value, in particular when measuring in low voltage ranges and with thermocouples. With this parameter, the user specifies the line frequency that is predominant in the plant.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

29

Parameters/address space 4.3 Declaration of parameters

Smoothing

The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels.
Smoothing time = number of module cycles (k) x cycle time of the module.
The following figure shows after how many module cycles the smoothed analog value is almost 100%, depending on the set smoothing. Is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-1 Smoothing with AI 8xU/I HF
Hardware interrupt 1 or 2
Enable a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.
Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.
High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

30

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.3 Declaration of parameters
Operating mode Fast / Standard
You can use this parameter to determine the operating mode for the module.  Fast mode; easy integration time with less frequency suppression (minimal integration
time 2.5 ms)  Standard mode; triple integration time with higher frequency suppression (minimal
integration time 7.5 ms)
Measuring range adjustment
With this parameter, you disable or enable the measuring range adjustment function.
Measuring range adjustment high limit
With this parameter, you specify the high limit of the measuring range.
Measuring range adjustment low limit
With this parameter, you specify the low limit of the measuring range.
Scaled high nominal range limit
With this parameter, you set the desired display value (in REAL) for the high nominal range limit of the measuring range.
Scaled low nominal range limit
With this parameter, you set the desired display value (in REAL) for the low nominal range limit of the measuring range.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

31

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 8xU/I HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status 8 x 1-channel without value status
8 x 1-channel with value status
1 x 8-channel with value status for moduleinternal shared input with up to 4 submodules 1 x 8-channel with value status for scaling of measured values

Short designation/ module name in the
GSD file
AI 8xU/I HF AI 8xU/I HF QI AI 8xU/I HF S AI 8xU/I HF S QI AI 8xU/I HF MSI
AI 8xU/I HF Scale

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal)
as of V13, SP1 and HSP 0166
X

GSD file in STEP 7 (TIA Portal)
V12 or higher or STEP 7 V5.5 SP3 or
higher
X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

V14 or higher with HSP 0186
(PROFINET IO only)

X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 8xU/I HF QI  AI 8xU/I HF S QI  AI 8xU/I HF MSI  AI 8xU/I HF Scale An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

32

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I HF and AI 8xU/I HF QI
The figure below shows the address space assignment with the configuration as 1 x 8channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Figure 4-2 Address space for configuration as 1 x 8-channel AI 8xU/I HF with value status

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

33

Parameters/address space 4.4 Address space
Address space for configuration as 8 x 1-channel AI 8xU/I HF S and AI 8xU/I HF S QI
For the configuration as a 8 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable submodules is dependent on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 8-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-3 Address space for configuration as 8 x 1-channel AI 8xU/I HF S QI with value status

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

34

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I HF MSI
The channels 0 to 7 of the module are copied in up to four submodules with configuration 1 x 8-channel module (Module-internal shared input, MSI). Channels 0 to 7 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

35

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 1 and 2.

Figure 4-4 Address space for configuration as 1 x 8-channel AI 8xU/I HF MSI with value status

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

36

Manual, 09/2016, A5E36649087-AB

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 3 and 4.

Figure 4-5 Address space for configuration as 1 x 8-channel AI 8xU/I HF MSI with value status

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

37

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I HF and Scale
The figure below shows the address space assignment for configuration as a 1 x 8-channel module for scaling (Scale) of the measured values. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Reference

Figure 4-6 Address space for configuration as 1 x 8-channel AI 8xU/I HF MSI Scale with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

38

Manual, 09/2016, A5E36649087-AB

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AI 8xU/I HF.

5

Figure 5-1 LED displays of the module AI 8xU/I HF

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

39

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 43).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules. · Verify that the U connectors are inserted. · Check whether too many modules are inserted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled
Channel configured and OK.
Channel is configured (channel error pending). Diagnostic alarm: e.g. wire break

Remedy ---
---
Check the wiring. Disable diagnostics.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

40

Manual, 09/2016, A5E36649087-AB

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 8xU/I HF supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the RALRM instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Overflow  Underflow  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Violation of high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment of the local data double word 8 by the start information of the hardware interrupt organization block.

Figure 5-2 OB start information

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

41

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

It follows the error event that triggered the hardware interrupt.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

42

Manual, 09/2016, A5E36649087-AB

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing

11H

Meaning Impedance of sensor circuit too high
Wire break between the module and sensor Channel not connected (open)
Measuring range violated Measuring range violated · The module cannot evaluate pa-
rameters for the channel · Incorrect parameter assignment. Supply voltage L+ of the module is missing

Remedy Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel Check the measuring range Check the measuring range Correct the parameter assignment
Connect supply voltage L+ to module/channel

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the previous "Wire break" diagnostics and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors are subjected to the diagnostics, select all check boxes under "Diagnostics".

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

43

Technical specifications

6

Technical specifications of the AI 8xU/I HF

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7531-7NF00-0AB0
AI 8xU/I HF FS01 V1.1.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Measuring range scalable

No

Measured values scalable

Yes

Measuring range adjustment

Yes

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V14 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSI

Yes

CiR Configuration in RUN

Configuration in RUN possible Calibration in RUN possible Supply voltage Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection

Yes Yes
24 V 20.4 V 28.8 V Yes

Input current

Current consumption, max.

50 mA; with 24 V DC supply

Power Power consumption from the backplane bus Power loss

0.85 W

Power loss, typ.

1.9 W

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

44

Manual, 09/2016, A5E36649087-AB

Technical specifications

Analog inputs Number of analog inputs · For current measurement
· For voltage measurement
Permissible input voltage for voltage input (destruction limit), max. Permissible input current for current input (destruction limit), max. Input ranges (rated values), voltages 1 V to 5 V Input resistance (1 V to 5 V) -10 V to +10 V Input resistance (-10 V to +10 V) -2.5 to +2.5 V Input resistance (-2.5 to +2.5 V) -5 V to +5 V Input resistance (-5 V to +5 V) Input ranges (rated values), currents 0 mA to 20 mA Input resistance (0 mA to 20 mA)
-20 mA to +20 mA Input resistance (-20 mA to +20 mA)
4 mA to 20 mA Input resistance (4 mA to 20 mA)
Cable length shielded, max. Analog value generation for the inputs Integration and conversion time/resolution per channel Resolution with overrange (bit including sign), max. Configurable integration time Integration time (ms)
Basic conversion time, including integration time (ms) Interference voltage suppression for interference frequency f1 in Hz Basic execution time of the module (all channels enabled)

8 8 8 28.8 V
40 mA

6ES7531-7NF00-0AB0

Yes 100 k Yes 100 k Yes 100 k Yes 100 k
Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC
800 m

16 bit
Yes Fast mode: 2.5 / 16.67 / 20 / 100 ms; standard mode: 7.5 / 50 / 60 / 300 ms Fast mode: 4 / 18 / 22 / 102 ms; standard mode: 9 / 52 / 62 / 302 ms 400 / 60 / 50 / 10 Hz
Corresponds to the channel with the highest basic conversion time

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

45

Technical specifications

6ES7531-7NF00-0AB0

Smoothing of the measured values

Configurable

Yes

Level: None

Yes

Level: Weak

Yes

Level: Medium

Yes

Level: Strong

Yes

Encoders

Connection of the signal encoders

For voltage measurement

Yes

for current measurement as 2-wire transducer

Yes; with external transmitter supply

for current measurement as 4-wire transducer

Yes

Errors/accuracies

Linearity error (in relation to input range), (+/-)

0.02%

Temperature error (in relation to input range), (+/-) 0.005%/K

Crosstalk between the inputs, max.

-80 dB

Repeat accuracy in settled state at 25 °C (in rela- 0.02% tion to input range), (+/-)

Operational limit in overall temperature range

Voltage in relation to input range, (+/-)

0.1%

Current in relation to input range, (+/-)

0.1%

Basic error limit (operational limit at 25 °C)

Voltage in relation to input range, (+/-)

0.05%

Current in relation to input range, (+/-)

0.05%

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency

Series-mode interference (peak of the interference 80 dB; in Standard mode, 40 dB in Fast mode < rated value of the input range), min.

Common mode voltage, max.

60 V DC / 30 V AC

Common mode interference, min.

80 dB

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Interrupts

Diagnostic interrupt

Yes

Limit interrupt

Yes; two high limits and two low limits each

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for 1 to 5 V and 4 to 20 mA

Overflow/underflow

Yes

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

46

Manual, 09/2016, A5E36649087-AB

Technical specifications

Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and power supply of the electronics Permitted potential difference Between different circuits
Isolation Isolation tested with
Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7531-7NF00-0AB0
Yes; green LED Yes; red LED Yes; green LED Yes; green LED Yes; red LED Yes; red LED
Yes 1 Yes Yes
60 V DC / 30 V AC; Isolation measured for 120 V AC basic isolation: Between the channels and supply voltage L+, between the channels and the backplane bus, between the channels
2000 V DC between the channels and the supply voltage L+, 2000 V DC between the channels and the backplane bus, 2000 V DC between the channels, 707 V DC (type test) between the supply voltage L+ and the backplane bus
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
280 g

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

47

Dimensional drawing

A

This appendix contains the dimensional drawing of the module installed on a mounting rail and with a shield bracket. Always adhere to the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the AI 8xU/I HF module

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

48

Manual, 09/2016, A5E36649087-AB

Dimensional drawing
Figure A-2 Dimension drawing of the AI 8xU/I HF module, side view with open front cover

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

49

Parameter data records

B

B.1

Parameter assignment
The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Current limit for wire break Wire break
Hardware interrupt limits

Dependent parameters
Only for measuring type current with measuring range 4 mA to 20 mA.
Only for measuring type resistance with measuring range 1V to 5 V and current with measuring range 4 mA to 20 mA.
Only if hardware interrupts are enabled.

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).
Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 7. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart. The parameters are only checked for plausibility by the module after the transfer to the module.
Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

50

Manual, 09/2016, A5E36649087-AB

Parameter data records B.1 Parameter assignment
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
For the configuration as a 1 x 8-channel module, the parameters are located in data records 0 to 7 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 6 for channel 6  Data record 7 for channel 7 For configuration 8 x 1-channel, the module has 8 submodules with one channel each. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  ...  Data record 0 for channel 6 (submodule 7)  Data record 0 for channel 7 (submodule 8) Address the respective submodule for data record transfer.
Dependency of the parameter data records
The structure of the parameter data record differs depending on the configuration:  28 bytes data length for configuration without scaling of the measured values, see section
Structure of the parameter data records without scaling of measured values (Page 52).  40 bytes data length for configuration with scaling of the measured values, see section
Structure of the parameter data records with scaling of measured values (Page 55).

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

51

Parameter data records B.2 Structure of the parameter data records without scaling of measured values

B.2

Structure of the parameter data records without scaling of measured

values

Structure of a data record without scaling of the measured values

The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed.

Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Byte 0 to 6 without scaling of measured values

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

52

Manual, 09/2016, A5E36649087-AB

Parameter data records B.2 Structure of the parameter data records without scaling of measured values

Figure B-2 Structure of data record 0: Byte 7 to 11 without scaling of measured values

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

53

Parameter data records B.2 Structure of the parameter data records without scaling of measured values

See also

Figure B-3 Structure of data record 0: Byte 12 to 27 without scaling of measured values
Codes for measurement types/measuring ranges and limits for hardware interrupts (Page 58)

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

54

Manual, 09/2016, A5E36649087-AB

B.3

Parameter data records B.3 Structure of the parameter data records with scaling of measured values
Structure of the parameter data records with scaling of measured values
Structure of a data record with scaling of the measured values The example in the figure below shows the structure of data record 0 for channel 0 for scaling of measured values. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-4 Structure of data record 0: Byte 0 to 6 for scaling of measured values

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

55

Parameter data records B.3 Structure of the parameter data records with scaling of measured values

Figure B-5 Structure of data record 0: Byte 7 to 11 for scaling of measured values

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

56

Manual, 09/2016, A5E36649087-AB

Parameter data records B.3 Structure of the parameter data records with scaling of measured values

See also

Figure B-6 Structure of data record 0: Byte 12 to 39 for scaling of measured values
Codes for measurement types/measuring ranges and limits for hardware interrupts (Page 58)

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

57

Parameter data records B.4 Codes for measurement types/measuring ranges and limits for hardware interrupts

B.4

Codes for measurement types/measuring ranges and limits for

hardware interrupts

Codes for measuring types
The following table lists all measuring types of the analog input module along with their codes. Enter these codes in byte 2 of the respective data record.

Table B- 2 Code for the measuring type
Measurement type Deactivated Voltage Current 4-wire transducer Current 2-wire transducer

Code 0000 0000 0000 0001 0000 0010 0000 0011

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes in byte 3 of the respective data record.

Table B- 3 Code for the measuring range
Measuring range Voltage ±2.5 V ±5 V ±10 V 1 V to 5 V Current 4-wire transducer 0 mA to 20 mA 4 mA to 20 mA ±20 mA Current 2-wire transducer 4 mA to 20 mA

Code
0000 0111 0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100
0000 0011

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

58

Manual, 09/2016, A5E36649087-AB

Parameter data records B.4 Codes for measurement types/measuring ranges and limits for hardware interrupts

Hardware interrupt limits
The following tables list the valid hardware interrupt limits. The limit values depend on the selected measuring type and range. The values that you can set for hardware interrupts (high/low limit) must not exceed the respective rated measuring range.
Enter the limits in bytes 12 to 19 or 12 to 27 of the corresponding data record.

Table B- 4 Limits of hardware interrupts for voltage and current

Voltage

Current

±2.5 V, ±5 V, ±10 V 1 V to 5 V ±20 mA

32510 -32511

32510 -4863

32510 -32511

4 mA to 20 mA, 0 mA to 20 mA
32510
-4863

High limit Low limit

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

59

Representation of analog values

C

Introduction

This appendix shows the analog values for all measuring ranges supported by the AI 8xU/I HF analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Decimal 1

Hexadecimal 1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

60

Manual, 09/2016, A5E36649087-AB

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The tables below set out the digitized representation of the input ranges separately for bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Units

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Units

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

61

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

C.2

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring ranges ±10 V, ±5 V and ±2.5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V >5.879 V

11.759 V 5.879 V

±2.5 V >2.939 V 2.939 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

2.5 V 1.875 V 90.4 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

- 1.875 V - 2.5 V

-11.759 V -5.879 V

< -

< -5.879 V

11.759 V

- 2.939 V <-2.939 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 5 Voltage measuring range 1 to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

62

Manual, 09/2016, A5E36649087-AB

C.3

Representation of analog values C.3 Representation of analog values in the current measuring ranges

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 6 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA < -23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 7 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range

0 to 20 mA

4 to 20 mA

>23.52 mA

>22.81 mA

23.52 mA

22.81 mA

20 mA 15 mA 723.4 nA 0 mA

20 mA 16 mA 4 mA + 578.7 nA 4 mA

-3.52 mA <- 3.52 mA

1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

Manual, 09/2016, A5E36649087-AB

63

Representation of analog values C.4 Measured values for wire break diagnostic

C.4

Measured values for wire break diagnostic

Measured values on diagnostic event "wire break", dependent on diagnostics enables
Error events initiate a diagnostics entry and trigger a diagnostics interrupt if configured accordingly.

Table C- 8 Measured values for wire break diagnostic

Format S7

Parameter assignment
· "Wire break" diagnostics enabled · "Overflow/Underflow" diagnostics
enabled or disabled ("Wire break" diagnostics takes priority over "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
enabled
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
disabled

Measured values

32767

7FFFH

-32767 8000 H -32767 8000 H

Explanation "Wire break" or "Open circuit" diagnostic alarm
· Measured value after leaving the undershoot range
· Diagnostic alarm "Low limit violated" Measured value after leaving the undershoot range

Analog Input Module AI 8xU/I HF (6ES7531-7NF00-0AB0)

64

Manual, 09/2016, A5E36649087-AB

SIMATIC
S7-1500/ET 200MP Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

12/2016
A5E03484886-AE

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03484886-AE  12/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual: S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) automation system.
Functions that relate in general to the systems are described in these system manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  Updated technical specifications "common mode interference"

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system.
Please also observe notes marked as follows:

Note
A note contains important information regarding the product described in the documentation or its handling, or draws special attention to a section of the documentation.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

4

Manual, 12/2016, A5E03484886-AE

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

2.2 2.2.1

Functions................................................................................................................................ 13 Oversampling for inputs ......................................................................................................... 13

3 Wiring ................................................................................................................................................... 15

4 Parameters/address space ................................................................................................................... 19

4.1

Measuring types and ranges.................................................................................................. 19

4.2

Parameters............................................................................................................................. 20

4.3

Declaration of parameters...................................................................................................... 22

4.4

Address space ....................................................................................................................... 24

5 Interrupts/diagnostics alarms................................................................................................................. 31

5.1

Status and error displays ....................................................................................................... 31

5.2

Interrupts ................................................................................................................................ 33

5.3

Diagnostics alarms................................................................................................................. 35

6 Technical specifications ........................................................................................................................ 36

A Dimensional drawing............................................................................................................................. 42

B Parameter data records ........................................................................................................................ 44

B.1

Parameter assignment and structure of the parameter data records .................................... 44

C Representation of analog values ........................................................................................................... 49

C.1

Representation of input ranges.............................................................................................. 50

C.2

Representation of analog values in voltage measuring ranges ............................................. 51

C.3

Representation of analog values in the current measuring ranges ....................................... 52

C.4

Measured values for wire break diagnostic ........................................................................... 53

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

6

Manual, 12/2016, A5E03484886-AE

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

8

Manual, 12/2016, A5E03484886-AE

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

10

Manual, 12/2016, A5E03484886-AE

Product overview

2.1

Properties

Article number
6ES7531-7NF10-0AB0

View of the module

2

Figure 2-1 View of the AI 8xU/I HS module

Properties

The module has the following technical properties:  8 analog inputs  Voltage or current measuring type can be set per channel  Resolution 16 bits including sign  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits
per channel)  High-speed update of measured values

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Calibration in runtime Module internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device Oversampling

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.1.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

V12 or higher

--- / X

V12 or higher

X

V12 or higher

X

V12 or higher

---

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V14 or higher and HSP 0186

---

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file. The oversampling function requires isochronous mode and can therefore only be configured with STEP 7 (TIA Portal).

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

12

Manual, 12/2016, A5E03484886-AE

2.2

Functions

Product overview 2.2 Functions

2.2.1

Oversampling for inputs

Function

Oversampling is defined as the transfer of data in constant bus cycle segments (sub-cycles), whereby n sub-cycles correspond to one PROFINET bus cycle. The configured number n of sub-cycles corresponds to one data cycle. Each sub-cycle reads in a measured value.
Oversampling is useful whenever you require acquisition of data with high time resolution but without using an extremely short PROFINET bus cycle and thus fast CPU cycles.
With oversampling, a PROFINET bus cycle is divided into constant bus sub-cycles:
 One 16-bit value is read in per channel in each sub-cycle.
 The shortest possible sub-cycle is 62.5 s.
 Sub-cycles are possible in increments of 2 to 16. The following applies here: Isochronous data cycle / number of sub-cycles  permitted sub-cycle duration (62.5 s).

Typical areas of applications
Quality-monitoring measurements, for example when recording pressure trends during the blowing process of PET bottle production.

Requirements

 Firmware version V2.1.0 or higher of the module.  Isochronous mode has to be set.

Configuration

You configure the oversampling function by means of the sampling rate parameter.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

13

Product overview 2.2 Functions
Chronological sequence
The recorded input data of a data cycle (send clock) is copied into the interface module in the next data cycle and is available for the module in the data cycle after that. The figure below shows the chronological sequence for oversampling with 10 sub-cycles.

n

Recorded value from Cycle n

Figure 2-2 Chronological sequence with oversampling

Sampling interval
The duration of a sub-cycle corresponds to the sampling time. The bus cycle time TDP (send clock for isochronous mode) is specified in the configuration software. The actual sampling interval of the module results from this time divided by the set sampling rate (2-16).

Figure 2-3 Example for the calculation of the sampling interval

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

14

Manual, 12/2016, A5E03484886-AE

Wiring

3

This section contains the block diagram of the module and various wiring options. You can find information on wiring the front connector, establishing a cable shield, etc in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792)hotspot text system manual.
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers included with the front connector!

Abbreviations used
Meaning of the abbreviations used in the following figures:

Un+/UnIn+/InUVn L+ M MANA CHx PWR

Voltage input channel n (voltage only) Current input channel n (current only) Supply voltage at channel n for 2-wire transmitters (2WT) Supply voltage connection Ground connection Reference potential of the analog circuit Channel or display of the channel status Display for the supply voltage

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). Use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

15

Wiring
Block diagram and pin assignment for voltage measurement
The example in the figure below shows the pin assignment for a voltage measurement.

 Analog-to-Digital Converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Figure 3-2 Block diagram and pin assignment for voltage measurement

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

16

Manual, 12/2016, A5E03484886-AE

Wiring
Block diagram and pin assignment for 4-wire transmitter for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transmitters.

 Wiring 4-wire transmitter  Analog-to-Digital Converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and pin assignment for 4-wire transmitter for current measurement

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

17

Wiring
Block diagram and pin assignment for 2-wire transmitter for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transmitters.

 Wiring 2-wire transmitter  Analog-to-Digital Converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and pin assignment for 2-wire transmitter for current measurement

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

18

Manual, 12/2016, A5E03484886-AE

Parameters/address space

4

4.1

Measuring types and ranges

Introduction

The module is set to voltage measuring type with measuring range ±10 V by default. You need to reassign the module parameters with STEP 7 if you want to use a different measuring type or range.
The following table shows the measuring types and the respective measuring range.

Measuring type Voltage
Current 2WMT (2-wire transmitter) Current 4WMT (4-wire transmitter)
Deactivated

Measuring range 1 V to 5 V ±5 V ±10 V 4 mA to 20 mA
4 mA to 20 mA 0 mA to 20 mA ±20 mA -

The tables of the input ranges, overflow, undershoot range, etc. are available in appendix Representation of analog values (Page 49).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

19

Parameters/address space 4.2 Parameters

4.2

Parameters

Parameters of the AI 8xU/I HS
The AI 8xU/I HS is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of a GSD file and the configuration software of any provider. The module does not check the validity of the configured properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 44).
The following parameter settings are possible:

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values Default setting

AI configuration Sampling rate (for the oversampling function) Diagnostics · Missing supply volt-
age L+
· Overflow
· Underflow
· Wire break

1...16 val-

1

ues/cycle

Yes/No

No

Yes/No

No

Yes/No

No

Yes/No

No

(Voltage: 1 V to 5 V

Current: 4 mA to 20 mA)

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

GSD file PROFIBUS DP

No

Module

---

(not GSD file)

Yes

Channel 1)

Yes

Channel

Yes

Channel

Yes

Channel

Module 3)
Module 3) Module 3) Module 3)

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

20

Manual, 12/2016, A5E03484886-AE

Parameters/address space 4.2 Parameters

Parameters
· Current limit for wire break diagnostics 2)
Measuring · Measurement type · Measuring range
· Smoothing: Hardware interrupt · Hardware interrupt
high limit 1 · Hardware interrupt
low limit 1 · Hardware interrupt
high limit 2 · Hardware interrupt
low limit 2

Range of values
1.185 mA or 3.6 mA

Default setting
1.185 mA

Parameter assignment in RUN
Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO
Channel

GSD file PROFIBUS DP
--- 4)

See section

Voltage Yes

Measuring types

and ranges

±10 V

Yes

(Page 19)

None/low/medium None

Yes

/high

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Channel Channel Channel
Channel Channel Channel Channel

Channel Channel Channel
--- 4) --- 4) --- 4) --- 4)

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this message burst by assigning the diagnostics function to one channel only.
2) When "Wire break" diagnostics is disabled, the current limit of 1.185 mA applies to the value status. For measured values below 1.185 mA, the value status is always: 0 = fault.
3) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 7.
4) You can set the current limit for wire break diagnostics, the "Hardware interrupt" parameter and the hardware interrupt limits in the user program with data records 0 to 7.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

21

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Sampling rate

Specifies the number of sub-cycles per isochronous data cycle for the for the oversampling function.

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics if the measured value violates the low limit.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input or the applied voltage is too low.

Current limit for wire break diagnostics
Threshold for reporting wire breaks. The value can be set to 1.185 mA or 3.6 mA, depending on the sensor used.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

22

Manual, 12/2016, A5E03484886-AE

Smoothing

Parameters/address space 4.3 Declaration of parameters
The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels. Smoothing time = number of module cycles (k) x cycle time of the module. The following figure shows after how many module cycles the smoothed analog value is almost 100%, depending on the set smoothing. Is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-1 Smoothing with AI 8xU/I HS
Hardware interrupt 1 or 2
Enable a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.
Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.
High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

23

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 8xU/I HS
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status 8 x 1-channel without value status
8 x 1-channel with value status
1 x 8-channel with value status for module-internal shared input with up to 4 submodules 1 x 8-channel without value status for oversampling

Short designation/ module name in the
GSD file
AI 8xU/I HS AI 8xU/I HS QI AI 8xU/I HS S
AI 8xU/I HS S QI
AI 8xU/I HS MSI
---

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3
or higher
X

V12 or higher

X

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V14 or higher with HSP 0186

---

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 8xU/I HS QI  AI 8xU/I HS S QI  AI 8xU/I HS MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

24

Manual, 12/2016, A5E03484886-AE

Parameters/address space 4.4 Address space
Address space of the AI 8xU/I HS and AQ 8xU/I HS QI
The following figure shows the address space allocation for the configuration as 8-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Figure 4-2 Address space for configuration as 1 x 8-channel AI 8xU/I HS with value status

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

25

Parameters/address space 4.4 Address space
Address space for configuration as 8 x 1-channel AI 8xU/I HS QI and AI 8xU/I HS S QI
For the configuration as a 8 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable submodules is dependent on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 8-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-3 Address space for configuration as 8 x 1-channel AI 8xU/I HS S QI with value status

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

26

Manual, 12/2016, A5E03484886-AE

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I HS MSI
The channels 0 to 7 of the module are copied in up to four submodules with configuration 1 x 8-channel module (Module-internal shared input, MSI). Channels 0 to 7 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable submodules is dependent on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

27

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 1 and 2.

Figure 4-4 Address space for configuration as 1 x 8-channel AI 8xU/I HS MSI with value status

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

28

Manual, 12/2016, A5E03484886-AE

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-5 Address space for configuration as 1 x 8-channel AI 8xU/I HS MSI with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

29

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I HS for oversampling
The following figure shows the address space assignment with the configuration as 8-channel module for the oversampling function. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. Writing always starts from IB x. If fewer than 16 sub-cycles are set, the addresses that are then unused are filled with 7FFFH. "IB x" stands, for example, for the module start address input byte x.

Figure 4-6 Address space for configuration as 1 x 8-channel AI 8xU/I HS for oversampling

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

30

Manual, 12/2016, A5E03484886-AE

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of AI 8xU/I HS.

5

Figure 5-1 LED displays of the module AI 8xU/I HS

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

31

Manual, 12/2016, A5E03484886-AE

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms.

RUN and ERROR LED
Table 5- 1 Status and error displays RUN and ERROR

LED

Meaning

Remedy

RUN Off

ERROR

Voltage missing or too low at backplane bus. · Switch on the CPU and/or the system power

Off

supply modules.

· Verify that the U connectors are inserted.

· Check to see if too many modules are inserted.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED
Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

CHx LED
Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled

Remedy ---

Channel configured and OK.

---

Channel is configured (channel error pending). Check the wiring.

Diagnostic alarm: e.g. wire break

Disable diagnostics.

See also

Diagnostics alarms (Page 35)

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

32

Manual, 12/2016, A5E03484886-AE

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 8xU/I HS supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the RALRM instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Overflow  Underflow  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Violation of high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The diagram below shows the assignment to the bits of double word 8 in local data.

Figure 5-2 OB start information

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

33

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI

W#16#0001

(User Structure Identifier)

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

It follows the error event that triggered the hardware interrupt.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

34

Manual, 12/2016, A5E03484886-AE

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing

11H

Meaning Impedance of sensor circuit too high
Wire break between the module and sensor Channel not connected (open)
Measuring range violated Measuring range violated · The module cannot evaluate pa-
rameters for the channel · Incorrect parameter assignment. Supply voltage L+ of the module is missing

Remedy Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel Check the measuring range Check the measuring range Correct the parameter assignment
Connect supply voltage L+ to module/channel

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the "Wire break" diagnostics first and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors can be diagnosed reliably, select all check boxes under "Diagnostics".

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

35

Technical specifications

6

Technical specifications of the AI 8xU/I HS
Order number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Measuring range scalable
· Scalable measured values
· Adjustment of measuring range Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision Operating mode
· Oversampling
· MSI CiR ­ Configuration in RUN
Reparameterization possible in RUN Calibration possible in RUN Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Input current Current consumption, max. Encoder supply 24 V encoder supply · Short-circuit protection
· Output current, max.

6ES7531-7NF10-0AB0
AI 8xU/I HS FS01 V2.1.0 Yes
Yes; I&M0 to I&M3 No No No
V14 / V5.5 SP3 / V1.0 / V5.1 V2.3 / -
Yes Yes
Yes Yes
24 V 20.4 V 28.8 V Yes
240 mA; with 24 V DC supply
Yes 53 mA

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

36

Technical specifications

Order number Power
Power available from the backplane bus Power loss
Power loss, typ. Analog inputs
Number of analog inputs · For current measurement · For voltage measurement permissible input voltage for voltage input (destruction limit), max. permissible input current for current input (destruction limit), max. Input ranges (rated values), voltages · 0 to +5 V · 0 to +10 V · 1 V to 5 V · Input resistance (1 V to 5 V) · -10 V to +10 V · Input resistance (-10 V to +10 V) · -2.5 V to +2.5 V · -25 mV to +25 mV · -250 mV to +250 mV · -5 V to +5 V · Input resistance (-5 V to +5 V) · -50 mV to +50 mV · -500 mV to +500 mV · -80 mV to +80 mV Input ranges (rated values), currents · 0 to 20 mA · Input resistance (0 to 20 mA)
· -20 mA to +20 mA · Input resistance (-20 mA to +20 mA)
· 4 mA to 20 mA · Input resistance (4 mA to 20 mA)

6ES7531-7NF10-0AB0
1.15 W
3.4 W
8 8 8 28.8 V 40 mA
No No Yes 50 k Yes 100 k No No No Yes 50 k No No No
Yes 41 ; Plus approx. 42 ohms for overvoltage protection by PTC Yes 41 ; Plus approx. 42 ohms for overvoltage protection by PTC Yes 41 ; Plus approx. 42 ohms for overvoltage protection by PTC

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

37

Technical specifications
Order number Input ranges (rated values), thermocouples
· Type B · Type C · Type E · Type J · Type K · Type L · Type N · Type R · Type S · Type T · Type TXK/TXK(L) to GOST Input ranges (rated values), resistance thermometer · Cu 10 · Cu 10 according to GOST · Cu 50 · Cu 50 according to GOST · Cu 100 · Cu 100 according to GOST · Ni 10 · Ni 10 according to GOST · Ni 100 · Ni 100 according to GOST · Ni 1000 · Ni 1000 according to GOST · LG-Ni 1000 · Ni 120 · Ni 120 according to GOST · Ni 200 · Ni 200 according to GOST · Ni 500 · Ni 500 according to GOST · Pt 10 · Pt 10 according to GOST
38

6ES7531-7NF10-0AB0
No No No No No No No No No No No
No No No No No No No No No No No No No No No No No No No No No
Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0) Manual, 12/2016, A5E03484886-AE

Technical specifications

Order number · Pt 50 · Pt 50 according to GOST · Pt 100 · Pt 100 according to GOST · Pt 1000 · Pt 1000 according to GOST · Pt 200 · Pt 200 according to GOST · Pt 500 · Pt 500 according to GOST
Input ranges (rated values), resistors · 0 to 150 ohms · 0 to 300 ohms · 0 to 600 ohms · 0 to 3000 ohms · 0 to 6000 ohms · PTC
Cable length · shielded, max.
Analog value generation for the inputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max. · Basic execution time of the module (all channels released)
Smoothing of measured values · parameterizable · Step: None · Step: low · Step: Medium · Step: High

6ES7531-7NF10-0AB0 No No No No No No No No No No
No No No No No No
800 m
16 bit 62.5 µs; independent of number of activated channels
Yes Yes Yes Yes Yes

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

39

Technical specifications

Order number Encoder Connection of signal encoders
· for voltage measurement

6ES7531-7NF10-0AB0 Yes

· for current measurement as 2-wire transducer

Yes

­ Burden of 2-wire transmitter, max.

820 

· for current measurement as 4-wire transducer

Yes

· for resistance measurement with two-wire connection

No

· for resistance measurement with three-wire connection

No

· for resistance measurement with four-wire connection

No

Errors/accuracies Linearity error (relative to input range), (+/-) Temperature error (relative to input range), (+/-) Crosstalk between the inputs, max. Repeat accuracy in steady state at 25 °C (relative to input range), (+/)
Operational error limit in overall temperature range
· Voltage, relative to input range, (+/-)

0.02 % 0.005 %/K -60 dB 0.02 %
0.3 %

· Current, relative to input range, (+/-)

0.3 %

Basic error limit (operational limit at 25 °C) · Voltage, relative to input range, (+/-)

0.2 %

· Current, relative to input range, (+/-)

0.2 %

Interference voltage suppression for f = n x (f1 +/- 1 %), f1 = interference frequency
· Common mode voltage, max.

10 V

Isochronous mode Isochronous operation (application synchronized up to terminal) Filtering and processing time (TCI), min. Bus cycle time (TDP), min.
Interrupts/diagnostics/status information Diagnostics function
Alarms
· Diagnostic alarm

Yes 80 µs 250 µs
Yes
Yes

· Limit value alarm
Diagnostic messages · Monitoring the supply voltage

Yes; two upper and two lower limit values in each case
Yes

· Wire-break

Yes; only for 1 ... 5 V and 4 ... 20 mA

· Overflow/underflow

Yes

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

40

Manual, 12/2016, A5E03484886-AE

Technical specifications

Order number Diagnostics indication LED
· RUN LED
· ERROR LED
· Monitoring of the supply voltage (PWR-LED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus
· between the channels and the power supply of the electronics Permissible potential difference
between the inputs (UCM) Between the inputs and MANA (UCM) Isolation Isolation tested with Ambient conditions Ambient temperature during operation · horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Decentralized operation
Prioritized startup Dimensions
Width Height Depth Weights Weight, approx.

6ES7531-7NF10-0AB0
Yes; Green LED Yes; Red LED Yes; Green LED Yes; Green LED Yes; Red LED Yes; Red LED
No 8 Yes Yes
20 V DC 10 V DC
707 V DC (type test)
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
300 g

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

41

Dimensional drawing

A

This appendix contains the dimensional drawing of the module installed on a mounting rail and with a shield bracket. Always adhere to the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the AI 8xU/I HS module

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

42

Dimensional drawing
Figure A-2 Dimensional drawing of the AI 8xU/I HS module, side view with open front panel

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

43

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Current limit for wire break Wire break
Hardware interrupt limits

Dependent parameters Only for measuring type current with measuring range 4 mA to 20 mA.
Only for measuring type resistance with measuring range 1V to 5 V and current with measuring range 4 mA to 20 mA.
Only if hardware interrupts are enabled.

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 7. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

44

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
For the configuration as a 1 x 8-channel module, the parameters are located in data records 0 to 7 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 6 for channel 6  Data record 7 for channel 7 For configuration 8 x 1-channel, the module has 8 submodules with one channel each. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  ...  Data record 0 for channel 6 (submodule 7)  Data record 0 for channel 7 (submodule 8) Address the respective submodule for data record transfer.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

45

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

46

Manual, 12/2016, A5E03484886-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-2 Structure of data record 0: Bytes 7 to 27
Note · You can only configure the oversampling function with STEP 7 (TIA Portal) via the
sampling rate parameter.

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

47

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measuring types
The following table lists all measuring types of the analog input module along with their codes. Enter these codes at byte 2 of the respective data record (see previous figure).

Table B- 2 Code for the measuring type
Measurement type Deactivated Voltage Current 4-wire transmitter Current 2-wire transmitter

Code 0000 0000 0000 0001 0000 0010 0000 0011

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes at byte 3 of the respective data record (see previous figure).

Table B- 3 Code for the measuring range
Measuring range Voltage ±5 V ±10 V 1 V to 5 V Current 4-wire transmitter 0 mA to 20 mA 4 mA to 20 mA ±20 mA Current 2-wire transmitter 4 mA to 20 mA

Code
0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100
0000 0011

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not exceed the respective rated measuring range.
The following tables list the valid hardware interrupt limits. The limit values depend on the selected measuring type and range.

Table B- 4 Limits of hardware interrupts for voltage and current

Voltage ± 5 V, ± 10 V 1 V to 5 V

Current ±20 mA

32510 -32511

32510 -4863

32510 -32511

4 mA to 20 mA, 0 mA to 20 mA
32510
-4863

High limit Low limit

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

48

Manual, 12/2016, A5E03484886-AE

Representation of analog values

C

Introduction

This chapter shows the analog values for all measuring ranges supported by the AI 8xU/I HS analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Decimal 1

Hexadecimal 1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

49

Manual, 12/2016, A5E03484886-AE

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The following tables set out the digitalized representation of the input ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Units

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Units

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

50

Manual, 12/2016, A5E03484886-AE

C.2

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring range ±10 V and ±5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V >5.879 V

11.759 V 5.879 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

-11.759 V -5.879 V < -11.759 V < -5.879 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 5 Voltage measuring range 1 to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

51

Representation of analog values C.3 Representation of analog values in the current measuring ranges

C.3

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 6 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA < -23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 7 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range

0 to 20 mA

4 to 20 mA

>23.52 mA

>22.81 mA

23.52 mA

22.81 mA

20 mA 15 mA 723.4 nA 0 mA

20 mA 16 mA 4 mA + 578.7 nA 4 mA

-3.52 mA <- 3.52 mA

1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

52

Manual, 12/2016, A5E03484886-AE

Representation of analog values C.4 Measured values for wire break diagnostic

C.4

Measured values for wire break diagnostic

Measured values on diagnostic event "wire break", dependent on diagnostics enables
Error events initiate a diagnostics entry and trigger a diagnostics interrupt if configured accordingly.

Table C- 8 Measured values for wire break diagnostic

Format S7

Parameter assignment
· "Wire break" diagnostics enabled · "Overflow/Underflow" diagnostics
enabled or disabled ("Wire break" diagnostics takes priority over "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
enabled
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
disabled

Measured values

32767

7FFFH

-32767 8000 H -32767 8000 H

Explanation "Wire break" or "Open circuit" diagnostic alarm
· Measured value after leaving the undershoot range
· Diagnostic alarm "Low limit violated" Measured value after leaving the undershoot range

Analog Input Module AI 8xU/I HS (6ES7531-7NF10-0AB0)

Manual, 12/2016, A5E03484886-AE

53

SIMATIC
S7-1500/ET 200MP Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_W_iri_ng_______________3_

_Pa_ra_m_e_te_rs_/a_dd_re_ss_s_pa_c_e ____4_

_In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

_Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_

Representation of analog values

C

03/2019
A5E44792324-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E44792324-AA  02/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

4

Manual, 03/2019, A5E44792324-AA

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 18

4.1

Measuring types and ranges ..................................................................................................18

4.2

Parameters .............................................................................................................................20

4.3

Declaration of parameters ......................................................................................................23

4.4

Address space ........................................................................................................................25

5 Interrupts/diagnostics alarms................................................................................................................. 31

5.1

Status and error displays ........................................................................................................31

5.2

Interrupts .................................................................................................................................33

5.3

Diagnostics alarms..................................................................................................................35

6 Technical specifications ........................................................................................................................ 36

A Dimensional drawing............................................................................................................................. 43

B Parameter data records......................................................................................................................... 45

B.1

Parameter assignment and structure of the parameter data records.....................................45

C Representation of analog values ........................................................................................................... 52

C.1

Representation of input ranges...............................................................................................53

C.2

Representation of analog values in voltage measuring ranges..............................................54

C.3

Representation of analog values in the current measuring ranges ........................................55

C.4

Representation of the analog values of resistance-based sensors/resistance

thermometers ..........................................................................................................................56

C.5

Measured values for wire break diagnostic ............................................................................59

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

6

Manual, 03/2019, A5E44792324-AA

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

8

Manual, 03/2019, A5E44792324-AA

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

9

Product overview

2.1

Properties

Article number
6ES7531-7QF00-0AB0

View of the module

2

Figure 2-1 View of the AI 8xU/I/R/RTD BA module

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

10

Manual, 03/2019, A5E44792324-AA

Product overview 2.1 Properties

Properties

The module has the following technical properties:  8 analog inputs  Voltage measurement type can be set per channel  Current measurement type can be set per channel  Resistor measurement type can be set per channel  Resistance thermometer (RTD) measuring type can be set per channel  Resolution 16 bits including sign  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits
per channel) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Calibration in runtime Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
----V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V15.1 and
HSP 0275
X

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher
X

X

X

X

X

---

---

---

---

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front door

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

11

Product overview 2.1 Properties
Other components
For example, you order the front connector including the potential bridge and cable tie separately. You can find additional information on accessories and the article number in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

12

Manual, 03/2019, A5E44792324-AA

Wiring

3

This section contains the block diagram of the module and outlines various connection options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers supplied with the front connector.

Abbreviations used
Meaning of the abbreviations used in the following figures:

Un+/UnMn+/MnIn+/InIc n+/Ic nMANA

Voltage input channel n (voltage only) Measuring input channel n Current input channel n (current only) Current output for RTD, channel n Reference potential of the analog circuit

Infeed element

The module does not require supply voltage through the infeed element. The infeed element is inserted on the front connector and serves solely for shielding.

Figure 3-1 Infeed element

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

13

Wiring
Block diagram and pin assignment for voltage measurement
The example in the following figure shows the pin assignment for voltage measurement.

 Analog-to-digital converter (ADC)  Backplane bus interface  Infeed element (for shielding only)  Equipotential bonding cable (optional)

CHx RUN ERROR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

14

Manual, 03/2019, A5E44792324-AA

Wiring
Connection: 4-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transmitters.

 Analog-to-digital converter (ADC)  Backplane bus interface  Infeed element (for shielding only)  Equipotential bonding cable (optional)

CHx RUN ERROR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red)

Figure 3-3 Block diagram and pin assignment for current measurement

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

15

Wiring
Connection: 2-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transmitters.

 Analog-to-digital converter (ADC)  Backplane bus interface  Infeed element (for shielding only)  Equipotential bonding cable (optional)

CHx RUN ERROR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red)

Figure 3-4 Block diagram and pin assignment for current measurement

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

16

Manual, 03/2019, A5E44792324-AA

Wiring
Connection: 2-wire and 3-wire connection of resistance sensors or resistance thermometers (RTD)
The example in the following figure shows the pin assignment for 2-wire and 3-wire connections of resistance sensors or resistance thermometers.

 3-wire connection  2-wire connection  Analog-to-digital converter (ADC)  Backplane bus interface  Infeed element (for shielding only)

CHx RUN ERROR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red)

Figure 3-5 Block diagram and pin assignment for 2-wire, 3-wire connection

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

17

Parameters/address space

4

4.1

Measuring types and ranges

Introduction
18

The module is set to voltage measurement type with measuring range ±10 V by default. You need to reassign the module parameters with STEP 7 if you want to use a different measurement type or range.
Deactivate the input if it is not going to be used. The module cycle time is shortened and the interference factors that lead to failure of the module (for example, triggering a hardware interrupt) are avoided.
The following table shows the measurement types and the respective measuring range.

Table 4- 1 Measurement types and measuring ranges

Measurement type Voltage
Current 2WMT (2-wire transmitter) Current 4WMT (4-wire transmitter) Resistor (2-wire connection) Resistor (3-wire connection) Thermal resistor RTD (3-wire connection)
Disabled

Measuring range ±50 mV ±500 mV ±1 V 1 V to 5 V ±5 V ±10 V 4 mA to 20 mA
0 mA to 20 mA 4 mA to 20 mA ±20 mA
PTC 600  6000  PT100 Standard/Climate PT1000 Standard/Climate Ni100 Standard/Climate Ni1000 Standard/Climate LG-Ni1000 Standard/Climatic -

Representation of analog values See Representation of analog values in voltage measuring ranges (Page 54)
See Representation of analog values in the current measuring ranges (Page 55)
See Representation of the analog values of resistance-based sensors/resistance thermometers (Page 56)
-

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0) Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.1 Measuring types and ranges
The tables of the input ranges, overflow, underrange, etc. are available in the appendix Representation of analog values (Page 52).
Note Wire break in voltage measuring ranges "Wire break" diagnosis can be configured for the "Voltage" measurement type with the "Measuring range 1 to 5 V". No "wire break" diagnostics is available for the other measuring ranges. If there is a wire break for these measuring ranges, the channel supplies a random value as an input value. This random value can also lie within the valid value range.
Using PTC resistors
PTC resistors are suitable for temperature monitoring of electrical devices, such as motors, drives, and transformers. Use Type A PTC resistors (PTC thermistor) in accordance with DIN/VDE 0660, part 302. In doing so, follow these steps: 1. Choose "Resistor (2-wire terminal)" and "PTC" in STEP 7. 2. Connect the PTC using 2-wire connection technology. If you enable the "Underflow" diagnostics in STEP 7, it will be signaled for resistance values <18 . In this case, this diagnostic signifies "Short-circuit in the wiring". The following figure shows the address space assignment for the AI 8xU/I/R/RTD BA module with PTC resistors.

Figure 4-1 Address space for the AI 8xU/I/R/RTD BA module with PTC resistors

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

19

Parameters/address space 4.2 Parameters
The diagram below shows the temperature profile and the corresponding switching points.

Figure 4-2 Temperature profile and the corresponding switching points

4.2

Parameters

Parameters of AI 8xU/I/R/RTD BA
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 45).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

20

Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.2 Parameters

The following parameter settings for the channels are possible:

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Parameter assignment in RUN

Diagnostics · Overflow · Underflow · Common mode error · Wire break 1) Measuring · Measuring type · Measuring range · Temperature coefficient
· Temperature unit
· Interference frequency suppression
· Smoothing

Yes/No Yes/No Yes/No Yes/No

No

Yes

No

Yes

No

Yes

No

Yes

See chapter Meas- Voltage Yes

uring types and

ranges (Page 18)

±10 V

Yes

Pt: 0.003851

0.003851 Yes

Pt: 0.003902

Pt: 0.003916

Pt: 0.003920

Ni: 0.00618

Ni: 0.00672

LG-Ni: 0.005000

· Kelvin (K)

°C

Yes

· Fahrenheit (°F) · Celsius (°C)

400 Hz

50 Hz

Yes

60 Hz

50 Hz

10 Hz

None/low/medium/hi None

Yes

gh

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Channel Channel Channel Channel

Module 2) Module 2) Module 2) Module 2)

Channel Channel Channel

Channel Channel Channel

Channel

Module

Channel

Module

Channel

Channel

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

21

Parameters/address space 4.2 Parameters

Parameters

Range of values

Hardware interrupts · Hardware interrupt low
limit 1
· Hardware interrupt high limit 1
· Hardware interrupt low limit 2
· Hardware interrupt high limit 2

Yes/No Yes/No Yes/No Yes/No

Default setting
No

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Yes

Channel

--- 3)

No

Yes

Channel

--- 3)

No

Yes

Channel

--- 3)

No

Yes

Channel

--- 3)

1) If "Wire break" diagnostics and "Value status" are deactivated, the module reports overflow / underflow (7FFFH / 8000H) in the event of a wiring error. The alarm depends on whether the connected cables are faulty.
Recommendation: Activate the "Wire break" diagnostics to obtain the correct value. 2) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 7. 3) You can configure the limits for hardware interrupts in the user program with data records 0 to 7.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

22

Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics when the measured value violates the low limit.

Common mode error
Enabling of diagnostics if the valid common mode voltage is exceeded.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input or the applied voltage is too low.

Temperature coefficient
The temperature coefficient depends on the chemical composition of the material. In Europe, only one value is used per sensor type (default value).
The temperature coefficient ( value) indicates by how much the resistance of a specific material changes relatively if the temperature increases by 1 °C.
The further values facilitate a sensor-specific setting of the temperature coefficient and enhance accuracy.

Interference frequency suppression
At analog input modules, this suppresses interference caused by the frequency of the AC network.
The frequency of the AC voltage network may interfere with measured values, particularly for measurements within narrow voltage ranges. For this parameter, the user defines the mains frequency prevailing on his system.

Smoothing

The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels.
Smoothing time = number of module cycles (k) x cycle time of the module.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

23

Parameters/address space 4.3 Declaration of parameters
The following figure shows the number of module cycles after which the smoothed analog value is almost 100%, depending on the set smoothing. It is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-3 Smoothing for AI 8xU/I/R/RTD BA
Hardware interrupt 1 or 2
Enabling of a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.
Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.
High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

24

Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 8xU/I/R/RTD BA
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration
1 x 8-channel without value status 1 x 8-channel with value status 8 x 1-channel without value status 8 x 1-channel with value status 1 x 8-channel with value status for module-internal shared input with up to 4 submodules

Short designation/ module name in the
GSD file
AI 8xU/I/R/RTD BA AI 8xU/I/R/RTD BA QI AI 8xU/I/R/RTD BA S
AI 8xU/I/R/RTD BA S QI AI 8xU/I/R/RTD BA MSI

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrate in the hardware catalog STEP 7 (TIA Portal) as of V15.1 and HSP 0275 or
V16
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

X

X

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 8xU/I/R/RTD BA QI  AI 8xU/I/R/RTD BA S QI  AI 8xU/I/R/RTD BA MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

25

Parameters/address space 4.4 Address space
Address space of AI 8xU/I/R/RTD BA
The following figure shows the address space allocation for the configuration as 8-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Figure 4-4 Address space for configuration as 1 x 8-channel AI 8xU/I/R/RTD BA with value status

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

26

Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.4 Address space
Address space for configuration as 8 x 1-channel AI 8xU/I/R/RTD BA QI
For the configuration as a 8 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 8-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-5 Address space for configuration as 8 x 1-channel AI 8xU/I/R/RTD BA S QI with value status

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

27

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I/R/RTD BA MSI
The channels 0 to 7 of the module are copied in up to four submodules with configuration 1 x 8-channel module (Module-internal shared input, MSI). Channels 0 to 7 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the first submodule (=basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

28

Manual, 03/2019, A5E44792324-AA

Parameters/address space 4.4 Address space
The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-6 Address space for configuration as 1 x 8-channel AI 8xU/I/R/RTD BA MSI with value status

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

29

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Reference
30

Figure 4-7 Address space for configuration as 1 x 8-channel AI 8xU/I/R/RTD BA MSI with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V15 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.
Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0) Manual, 03/2019, A5E44792324-AA

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AI 8xU/I/R/RTD BA.

5

Figure 5-1 LED displays of the AI 8xU/I/R/RTD BA module

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

31

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 35).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LEDs RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are insert-
ed. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

CHx LED

Table 5- 2 CHx status display

LED CHx/COMP Off On On

Meaning Channel disabled
Channel configured and OK.
Channel is configured (channel error pending). Diagnostic alarm: e.g. wire break

Remedy ---
---
Check the wiring. Disable diagnostics.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

32

Manual, 03/2019, A5E44792324-AA

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 8xU/I/R/RTD BA supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Wire break  Overflow  Underflow  Common mode error  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Above high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The diagram below shows the assignment to the bits of double word 8 in local data.

Figure 5-2 OB start information

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

33

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 3 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

The event that triggered the hardware interrupt follows.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

34

Manual, 03/2019, A5E44792324-AA

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/78324181).

Table 5- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Common mode error 118H

Meaning Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Solution Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel

Measuring range violated Measuring range violated
· The module cannot evaluate parameters for the channel

Check the measuring range Check the measuring range Correct the parameter assignment

· Incorrect parameter assignment

Valid common mode voltage exceeded

Check the wiring, e.g. sensor ground connections, use equipotential cables

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the "Wire break" diagnostics first and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors can be diagnosed reliably, select all check boxes under "Diagnostics".

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

35

Technical specifications

6

Technical specifications of AI 8xU/I/R/RTD BA
The following table shows the technical specifications as of 03/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7531-7QF00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · Oversampling
· MSI
CiR ­ Configuration in RUN Reparameterization possible in RUN Calibration possible in RUN
Power Power available from the backplane bus
Power loss Power loss, typ.

6ES7531-7QF00-0AB0 AI 8xU/I/R/RTD BA FS01 V1.0.0 Yes
Yes; I&M0 to I&M3
V15.1 / V16 V5.5 SP3 / V1.0 / V5.1 V2.3 / -
No Yes
Yes No 0.85 W 0.9 W

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

36

Manual, 03/2019, A5E44792324-AA

Technical specifications

Article number Analog inputs
Number of analog inputs · For current measurement
· For voltage measurement
· For resistance/resistance thermometer measurement
permissible input voltage for voltage input (destruction limit), max. permissible input current for current input (destruction limit), max. Constant measurement current for resistancetype transmitter, typ. Technical unit for temperature measurement adjustable Input ranges (rated values), voltages · 0 to +5 V
· 0 to +10 V
· 1 V to 5 V
· Input resistance (1 V to 5 V)
· -1 V to +1 V
· Input resistance (-1 V to +1 V)
· -10 V to +10 V
· Input resistance (-10 V to +10 V)
· -2.5 V to +2.5 V
· -25 mV to +25 mV
· -250 mV to +250 mV
· -5 V to +5 V
· Input resistance (-5 V to +5 V)
· -50 mV to +50 mV
· Input resistance (-50 mV to +50 mV)
· -500 mV to +500 mV
· Input resistance (-500 mV to +500 mV)
· -80 mV to +80 mV

6ES7531-7QF00-0AB0
8 8 8 8
12 V; 12 V continuous, 30 V for max. 1 s
40 mA
230 ... 370 µA
Yes; °C/°F/K
No No Yes 10 M Yes 10 M Yes 10 M No No No Yes 10 M Yes 10 M Yes 10 M No

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

37

Technical specifications

Article number Input ranges (rated values), currents
· 0 to 10 mA

6ES7531-7QF00-0AB0 No

· 0 to 20 mA

Yes

· Input resistance (0 to 20 mA) · -20 mA to +20 mA

25 ; Plus approx. 42 ohms for overvoltage protection by PTC
Yes

· Input resistance (-20 mA to +20 mA) · 4 mA to 20 mA

25 ; Plus approx. 42 ohms for overvoltage protection by PTC
Yes

· Input resistance (4 mA to 20 mA)
Input ranges (rated values), thermocouples · Type B

25 ; Plus approx. 42 ohms for overvoltage protection by PTC
No

· Type C

No

· Type E

No

· Type J

No

· Type K

No

· Type L

No

· Type N

No

· Type R

No

· Type S

No

· Type T

No

· Type U

No

· Type TXK/TXK(L) to GOST

No

Input ranges (rated values), resistance thermometer

· Cu 10

No

· Cu 10 according to GOST

No

· Cu 50

No

· Cu 50 according to GOST

No

· Cu 100

No

· Cu 100 according to GOST

No

· Ni 10

No

· Ni 10 according to GOST

No

· Ni 100

Yes; Standard/climate

· Input resistance (Ni 100)

10 M

· Ni 100 according to GOST

No

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

38

Manual, 03/2019, A5E44792324-AA

Article number · Ni 1000 · Input resistance (Ni 1000) · Ni 1000 according to GOST · LG-Ni 1000 · Input resistance (LG-Ni 1000) · Ni 120 · Ni 120 according to GOST · Ni 200 · Ni 200 according to GOST · Ni 500 · Ni 500 according to GOST · Pt 10 · Pt 10 according to GOST · Pt 50 · Pt 50 according to GOST · Pt 100 · Input resistance (Pt 100) · Pt 100 according to GOST · Pt 1000 · Input resistance (Pt 1000) · Pt 1000 according to GOST · Pt 200 · Pt 200 according to GOST · Pt 500 · Pt 500 according to GOST
Input ranges (rated values), resistors · 0 to 150 ohms · 0 to 300 ohms · 0 to 600 ohms · Input resistance (0 to 600 ohms) · 0 to 3000 ohms · 0 to 6000 ohms · Input resistance (0 to 6000 ohms) · PTC · Input resistance (PTC)

6ES7531-7QF00-0AB0 Yes; Standard/climate 10 M No Yes; Standard/climate 10 M No No No No No No No No No No Yes; Standard/climate 10 M No Yes; Standard/climate 10 M No No No No No
No No Yes 10 M No Yes 10 M Yes 10 M

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0) Manual, 03/2019, A5E44792324-AA

Technical specifications 39

Technical specifications

Article number Cable length
· shielded, max.

6ES7531-7QF00-0AB0 200 m; 50 m at 50 mV

Analog value generation for the inputs Measurement principle
Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.

integrating 16 bit

· Integration time, parameterizable

Yes

· Integration time (ms)

2,5 / 16,67 / 20 / 100 ms

· Basic conversion time, including integration 10 / 24 / 27 / 107 ms time (ms)

­ additional conversion time for wirebreak monitoring

4 ms (to be considered in R/RTD/U 1 to 5 V measurement)

­ additional conversion time for resistance measurement

8 ms

· Interference voltage suppression for inter- 400 / 60 / 50 / 10 Hz ference frequency f1 in Hz

Smoothing of measured values

· parameterizable

Yes

· Step: None

Yes

· Step: low

Yes

· Step: Medium

Yes

· Step: High

Yes

Encoder

Connection of signal encoders

· for voltage measurement

Yes

· for current measurement as 2-wire transducer

Yes; with external supply

· for current measurement as 4-wire trans- Yes ducer

· for resistance measurement with two-wire Yes; Only for PTC connection

· for resistance measurement with three-wire Yes; All measuring ranges except PTC; internal

connection

compensation of the cable resistances

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

40

Manual, 03/2019, A5E44792324-AA

Technical specifications

Article number

6ES7531-7QF00-0AB0

Errors/accuracies

Linearity error (relative to input range), (+/-) 0.1 %

Temperature error (relative to input range), (+/- 0.006 %/K )

Crosstalk between the inputs, max.

-50 dB

Repeat accuracy in steady state at 25 °C (rela- 0.1 % tive to input range), (+/-)

Operational error limit in overall temperature range

· Voltage, relative to input range, (+/-)

0.5 %

· Current, relative to input range, (+/-)

0.5 %

· Resistance, relative to input range, (+/-)

0.5 %

· Resistance thermometer, relative to input range, (+/-)

Ptxxx Standard: ±1.2 K, Ptxxx Climate: ±0.8 K, Nixxx Standard: ±0.8 K, Nixxx Climate: ±0.8 K

Basic error limit (operational limit at 25 °C) · Voltage, relative to input range, (+/-)

0.3 %

· Current, relative to input range, (+/-)

0.3 %

· Resistance, relative to input range, (+/-)

0.3 %

· Resistance thermometer, relative to input range, (+/-)

Ptxxx Standard: ±1.0 K, Ptxxx Climate: ±0.5 K, Nixxx Standard: ±0.5 K, Nixxx Climate: ±0.5 K

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency
· Series mode interference (peak value of interference < rated value of input range), min.

40 dB

· Common mode voltage, max.

4 V

· Common mode interference, min.

60 dB

Interrupts/diagnostics/status information

Diagnostics function

Yes

Alarms

· Diagnostic alarm

Yes

· Limit value alarm
Diagnostic messages · Monitoring the supply voltage

Yes; two upper and two lower limit values in each case
No

· Wire-break

Yes; Only for 1 ... 5 V, 4 ... 20 mA, R, and RTD

· Short-circuit

No

· Group error

No

· Overflow/underflow

Yes

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

41

Technical specifications

Article number Diagnostics indication LED
· RUN LED
· ERROR LED
· MAINT LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus Permissible potential difference
between the inputs (UCM) Between the inputs and MANA (UCM) Isolation Isolation tested with Ambient conditions Ambient temperature during operation · horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Decentralized operation
Prioritized startup Dimensions
Width Height Depth Weights Weight, approx.

6ES7531-7QF00-0AB0
Yes; Green LED Yes; Red LED No No
Yes; Green LED Yes; Red LED Yes; Red LED
No 8 Yes
8 V DC 4 V DC
707 V DC (type test)
0 °C 60 °C 0 °C 40 °C
No
35 mm 147 mm 129 mm
250 g

Additional information
You can learn how to calculate the cycle time of the module with an example provided on the Internet (https://support.industry.siemens.com/cs/ww/en/view109761283).

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

42

Manual, 03/2019, A5E44792324-AA

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the AI 8xU/I/R/RTD BA module

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

43

Dimensional drawing
Figure A-2 Dimension drawing of the AI 8xU/I/R/RTD BA module, side view with open front cover

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

44

Manual, 03/2019, A5E44792324-AA

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Wire break
Common mode error Measurement type resistance (3-wireconnection) Hardware interrupt limits Temperature unit Kelvin (K)

Dependent parameters Only for measurement type resistance 3-wire connection, thermal resistor RTD, voltage with measuring range 1 to 5 V and current with measuring range 4 to 20 mA. Only with measurement type voltage and current Only with measuring range 600  and 6000 .
Only if hardware interrupts are enabled. Only with measurement type thermal resistor (RTD) standard.

Parameter assignment in the user program
The module parameters can be assigned in RUN (for example, measuring ranges of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 7. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

45

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. The description of the WRREC instruction and the error codes is available in the STEP 7 online help.
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
For the configuration as a 1 x 8-channel module, the parameters are located in data records 0 to 7 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 6 for channel 6  Data record 7 for channel 7 For configuration 8 x 1-channel, the module has 8 submodules with one channel each. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  ...  Data record 0 for channel 6 (submodule 7)  Data record 0 for channel 7 (submodule 8) Address the respective submodule for data record transfer.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

46

Manual, 03/2019, A5E44792324-AA

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

47

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-2 Structure of data record 0: Bytes 7 to 27

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

48

Manual, 03/2019, A5E44792324-AA

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measurement types
The following table lists all measurement types of the analog input module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 2 Code for the measurement type

Measurement type Deactivated Voltage Current, 2-wire transmitter Current, 4-wire transmitter Resistance, 3-wire-connection *) Resistance, 2-wire connection **) Thermal resistor linear, 3-wire connection

Code 0000 0000 0000 0001 0000 0011 0000 0010 0000 0101 0000 0110 0000 1000

*) Only for the following measuring ranges: 600 , 6 k **) only for measuring range PTC

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes accordingly at byte 3 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 3 Code for the measuring range
Measuring range Voltage ±50 mV ±500 mV ±1 V ±5 V ±10 V 1 V to 5 V Current, 4-wire transmitter 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code
0000 0001 0000 0100 0000 0101 0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

49

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Current, 2-wire transmitter 4 mA to 20 mA Resistor 600  6 k PTC Thermal resistor Pt100 Climate Ni100 Climate Pt100 standard Ni100 standard Pt1000 standard Ni1000 standard Pt1000 Climate Ni1000 Climate LG-Ni1000 standard LG-Ni1000 Climate

0000 0011
0000 0011 0000 0101 0000 1111
0000 0000 0000 0001 0000 0010 0000 0011 0000 0101 0000 0110 0000 1001 0000 1010 0001 1100 0001 1101

Codes for temperature coefficients
The following table lists all temperature coefficients along with their codes for temperature measurements with the thermal resistors. You need to enter these codes in byte 4 of the data records 0 to 6 (see Fig. Structure of data record 0: bytes 0 to 6).

Table B- 4 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720 LG-Ni 0.005000

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001
0000 1010

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not violate the over/underrange of the respective rated measuring range.

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

50

Manual, 03/2019, A5E44792324-AA

Parameter data records B.1 Parameter assignment and structure of the parameter data records

The following tables list the valid hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 5 Voltage limits
Voltage ±50 mV, ±500 mV, ±1 V, ±5 V, ±10 V 32510 -32511

1 V to 5 V 32510 -4863

High limit Low limit

Table B- 6 Current and resistance limits

Current ±20 mA
32510 -32511

4 mA to 20 mA / 0 mA to 20 mA
32510
-4863

Resistor (all configurable measuring ranges)
32510 1

High limit Low limit

Table B- 7 Limits for thermal resistor Pt xxx Standard and Pt xxx Climatic

Thermal resistor

Pt xxx Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt xxx Climate

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 8 Limits for thermal resistor Ni xxx Standard and Ni xxx Climatic

Thermal resistor

Ni xxx Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni xxx Climate

°F

K

31099

---

-15699

---

High limit Low limit

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

51

Representation of analog values

C

Introduction

This appendix shows the analog values for all measuring ranges supported by the AI 8xU/I/R/RTD BA analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog module.

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Decimal 1

Hexadecimal 1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

52

Manual, 03/2019, A5E44792324-AA

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The following tables set out the digitalized representation of the input ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

53

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

C.2

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring ranges ±10 V, ±5 V, ±1 V,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V

>5.879 V

11.759 V

5.879 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

-11.759 V < -11.759 V

-5.879 V < -5.879 V

±1 V > 1.176 V 1.176 V
1 V 0.75 V 36.17 µV 0 V
-0.75 V -1 V
-1.176 V < -1.176 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 5 Voltage measuring ranges ±500 mV and ±50 mV

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±500 mV

±50 mV

>587.9 mV

> 58.8 mV

587.9 mV

58.8 mV

500 mV 375 mV 18.08 µV 0 mV

50 mV 37.5 mA 1.81 µV 0 mV

-375 mV -500 mV

-37.5 mV -50 mV

-587.9 mV <-587.9 mV

-58.8 mV < -58.8 mV

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

54

Manual, 03/2019, A5E44792324-AA

C.3

Representation of analog values C.3 Representation of analog values in the current measuring ranges

Table C- 6 Voltage measuring range 1 to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 7 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA < -23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

55

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 8 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <- 3.52 mA

4 to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

C.4

Representation of the analog values of resistance-based

sensors/resistance thermometers

The following tables list the decimal and hexadecimal values (codes) of the possible resistance-based sensor ranges.

Table C- 9 Resistance sensors of 600  and 6000 

Values dec 32767 32511 27649 27648 20736 1 0

hex 7FFF 7EFF 6C01 6C00 5100 1 0

Resistive transmitter range

600 

6000 

>705.53 

>7055.3 

705.53 

7055.3 

600  450  21.70 m 0 

6000  4500  217 m 0 

Overflow Overshoot range
Rated range

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

56

Manual, 03/2019, A5E44792324-AA

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

The following tables list the decimal and hexadecimal values (codes) of the supported resistance thermometers.

Table C- 10 Resistance thermometers Pt 100 and Pt 1000 Standard

Pt x00 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt x00 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt x00 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 11 Resistance thermometers Pt 100 and Pt 1000 Climate

Pt x00 Climate/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt x00 Climate/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

57

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 12 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Standard

Ni x00 standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni x00 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni x00 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 13 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Climate

Ni x00 Climate in °C Values

(1 digit = 0.01 °C)

dec

> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex
7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni x00 Climate in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -76.00 -76.01 : -157.00 < - 157.00

Values dec
32767 31100 : 26601 26600 : -7600 -7601 : -15700 -32768

hex
7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

58

Manual, 03/2019, A5E44792324-AA

Representation of analog values C.5 Measured values for wire break diagnostic

C.5

Measured values for wire break diagnostic

Measured values on diagnostic event "wire break", dependent on diagnostics enables
Error events initiate a diagnostics entry and trigger a diagnostics interrupt if configured accordingly.

Table C- 14 Measured values for wire break diagnostic

Format S7

Parameter assignment
· "Wire break" diagnostics enabled · "Overflow/Underflow" diagnostics
enabled or disabled ("Wire break" diagnostics takes priority over "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
enabled
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
disabled

Measured values

32767

7FFFH

-32767 8000 H -32767 8000 H

Explanation "Wire break" or "Open circuit" diagnostic alarm
· Measured value after leaving the undershoot range
· Diagnostic alarm "Low limit violated" Measured value after leaving the undershoot range

Analog Input Module AI 8xU/I/R/RTD BA (6ES7531-7QF00-0AB0)

Manual, 03/2019, A5E44792324-AA

59

SIMATIC
S7-1500/ET 200MP Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

08/2018
A5E03484864-AE

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03484864-AE  07/2018 Subject to change

Copyright © Siemens AG 2014 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  New licensing conditions and copyright information of the Open Source Software  New technical specifications

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

4

Manual, 08/2018, A5E03484864-AE

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 21

4.1

Measuring types and ranges ..................................................................................................21

4.2

Parameters .............................................................................................................................24

4.3

Declaration of parameters ......................................................................................................27

4.4

Address space ........................................................................................................................30

5 Interrupts/diagnostics alarms................................................................................................................. 36

5.1

Status and error displays ........................................................................................................36

5.2

Interrupts .................................................................................................................................39

5.3

Diagnostics alarms..................................................................................................................41

6 Technical specifications ........................................................................................................................ 42

A Dimensional drawing............................................................................................................................. 52

B Parameter data records......................................................................................................................... 54

B.1

Parameter assignment and structure of the parameter data records.....................................54

B.2

Structure of a data record for dynamic reference temperature...............................................65

C Representation of analog values ........................................................................................................... 67

C.1

Representation of input ranges...............................................................................................68

C.2

Representation of analog values in voltage measuring ranges..............................................69

C.3

Representation of analog values in the current measuring ranges ........................................71

C.4

Representation of the analog values of resistance-based sensors/resistance

thermometers ..........................................................................................................................72

C.5

Representation of analog values for thermocouples ..............................................................75

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

6

Manual, 08/2018, A5E03484864-AE

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

8

Manual, 08/2018, A5E03484864-AE

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

9

Product overview

2.1

Properties

Article number
6ES7531-7KF00-0AB0

View of the module

2

Figure 2-1 View of the AI 8xU/I/RTD/TC ST module

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

10

Manual, 08/2018, A5E03484864-AE

Product overview 2.1 Properties

Properties

The module has the following technical properties:  8 analog inputs  Voltage measurement type can be set per channel  Current measurement type can be set per channel  Measuring type resistance adjustable for channel 0, 2, 4 and 6  Measuring type resistance thermometers (RTD) adjustable for channel 0, 2, 4 and 6  Thermocouple (TC) measurement type can be set per channel  Resolution 16 bits including sign  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits
per channel) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Calibration in runtime Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device
Configurable after interface module IM 155-5 DP ST

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher
X

V12 or higher

X

V12 or higher

X

V12 or higher

---

V12 or higher

X

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 or higher

X

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

11

Product overview 2.1 Properties

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Hardware functional status FS01 FS02 FS03

Firmware version V1.0.0 to V2.0.x V1.0.0 to V2.0.x V2.1.0 to V2.1.x

FS04

V2.2.0 or higher

Note Upgrade to downgrade possible between V1.0.0 and V2.0.x
Upgrade to downgrade possible between V2.1.0 and V2.1.x
Upgrade and downgrade possible between V2.2.0 and higher

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

12

Manual, 08/2018, A5E03484864-AE

Wiring

3

This section contains the block diagram of the module and outlines various connection options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
You can find additional information on compensating the reference junction temperature in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094), the structure of a data record in the section Structure of a data record for dynamic reference temperature (Page 65).
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers supplied with the front connector.

Abbreviations used
Meaning of the abbreviations used in the following figures:

Un+/UnMn+/MnIn+/InIc n+/Ic nUVn Comp+/CompIComp+/ICompL+ M MANA

Voltage input channel n (voltage only) Measuring input channel n Current input channel n (current only) Current output for RTD, channel n Supply voltage at channel n for 2-wire transmitters (2WMT) Compensation input Current output for compensation Connection for supply voltage Ground connection Reference potential of the analog circuit

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

13

Wiring Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). You can use terminals 42 (L+) and 43 (M) to loop the potential to the next module.
Figure 3-1 Power supply element wiring

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

14

Manual, 08/2018, A5E03484864-AE

Wiring
Block diagram and pin assignment for voltage measurement
The example in the following figure shows the pin assignment for voltage measurement.

 Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

15

Wiring
Connection: 4-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transmitters.

 Wiring 4-wire transmitter  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and pin assignment for current measurement

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

16

Manual, 08/2018, A5E03484864-AE

Wiring
Connection: 2-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transmitters.

 Wiring 2-wire transmitter  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and pin assignment for current measurement

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

17

Wiring
Connection: 2-, 3- and 4-wire connection of resistance-based sensors or thermal resistors (RTD)
The example in the following figure shows the pin assignment for 2-, 3- and 4-wire connections of resistance-based sensors or thermal resistors.

 4-wire connection  3-wire connection  2-wire connection  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-5 Block diagram and pin assignment for 2-, 3- and 4-wire connections

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

18

Manual, 08/2018, A5E03484864-AE

Wiring
Connection: Non-grounded thermocouples for external/internal compensation and connection of a resistance thermometer (RTD) at the reference channel
The following figure shows an example of the pin assignment of non-grounded thermocouples for external/internal compensation and the connection of a resistance thermometer (RTD) at the reference channel.

 Wiring of a thermocouple (non-grounded) for internal compen- CHx

sation

 Wiring of a thermocouple (non-grounded) for external compen- RUN

sation

 Wiring of a resistance thermometer (RTD) at the reference

ERROR

channel

 Analog-to-digital converter (ADC)

PWR

 Backplane bus interface

 Supply voltage via power supply element

 Equipotential bonding cable (optional)

Channel or 9 x channel status (green/red) Status display LED (green)
Error display LED (red)
LED for power supply (green)

Figure 3-6 Block diagram and pin assignment for non-grounded thermocouples and resistance thermometers

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

19

Wiring
Connection: Grounded thermocouples for internal compensation
The following figure shows an example of the pin assignment for grounded thermocouples for internal compensation.

 Wiring of a thermocouple (grounded) for internal compen-
sation
 Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx
RUN ERROR PWR

Channel or 9 x channel status (green/red)
Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-7 Block diagram and pin assignment for grounded thermocouples

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

20

Manual, 08/2018, A5E03484864-AE

Parameters/address space

4

4.1

Measuring types and ranges

Introduction

The module is set to voltage measurement type with measuring range ±10 V by default. You need to reassign the module parameters with STEP 7 if you want to use a different measurement type or range.
Deactivate the input if it is not going to be used. The module cycle time is shortened and the interference factors that lead to failure of the module (for example, triggering a hardware interrupt) are avoided.
The following table shows the measurement types and the respective measuring range.

Table 4- 1 Measurement types and measuring ranges

Measurement type Voltage
Current 2WMT (2-wire transmitter) Current 4WMT (4-wire transmitter) Resistor (2-wire connection) Resistor (3-wire connection) (4-wire connection)

Measuring range ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V 1 V to 5 V ±5 V ±10 V 4 mA to 20 mA
0 mA to 20 mA 4 mA to 20 mA ±20 mA
PTC 150  300  600  6000 

Representation of analog values See Representation of analog values in voltage measuring ranges (Page 69)
See Representation of analog values in the current measuring ranges (Page 71)
See Representation of the analog values of resistance-based sensors/resistance thermometers (Page 72)

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

21

Parameters/address space 4.1 Measuring types and ranges

Measurement type Thermal resistor RTD (3-wire connection) (4-wire connection)
Thermocouple (TC)
Disabled

Measuring range PT100 Standard/Climate
PT200 Standard/Climate
PT500 Standard/Climate
PT1000 Standard/Climate
Ni100 Standard/Climate Ni1000 Standard/Climate LG-Ni1000 Standard/Climatic
Type B Type E Type J
Type K Type N
Type R Type S
Type T
-

Representation of analog values
See Representation of analog values for thermocouples (Page 75) -

The tables of the input ranges, overflow, underrange, etc. are available in the appendix Representation of analog values (Page 67).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

22

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.1 Measuring types and ranges
Using PTC resistors
PTC resistors are suitable for temperature monitoring of electrical devices, such as motors, drives, and transformers. Use Type A PTC resistors (PTC thermistor) in accordance with DIN/VDE 0660, part 302. In doing so, follow these steps: 1. Choose "Resistor (2-wire terminal)" and "PTC" in STEP 7. 2. Connect the PTC using 2-wire connection technology. If you enable the "Underflow" diagnostics in STEP 7, it will be signaled for resistance values <18 . In this case, this diagnostic signifies "Short-circuit in the wiring". The following figure shows the address space assignment for the AI 8xU/I/RTD/TC ST module with PTC resistors.
Figure 4-1 Address space for the AI 8xU/I/RTD/TC ST module with PTC resistors The diagram below shows the temperature profile and the corresponding switching points.

Figure 4-2 Temperature profile and the corresponding switching points

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

23

Parameters/address space 4.2 Parameters
Measured value acquisition with PTC resistors
If faults occur (for example supply voltage L+ missing) that make it impossible to acquire measured values with PTC resistors, the corresponding channels (IR x/IR x+1) report overflow (7FFFH). If the value status (QI) is enabled, the value 0 = incorrect is output in the corresponding bit.

4.2

Parameters

AI 8xU/I/RTD/TC ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 54).
The following parameter settings for the channels are possible:

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Parameter assignment in RUN

Diagnostics · Missing supply voltage L+ Yes/No

No

Yes

· Overflow

Yes/No

No

Yes

· Underflow

Yes/No

No

Yes

· Common mode error

Yes/No

No

Yes

· Reference channel error Yes/No

No

Yes

· Wire break 1)

Yes/No

No

Yes

· Current limit for wire break 1.185 mA or 3.6 mA 1.185 mA Yes diagnostics 2)

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Channel 3) Channel Channel Channel Channel Channel Channel

Module 4) Module 4) Module 4) Module 4) Module 4) Module 4) --- 5)

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

24

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.2 Parameters

Parameters

Range of values

Default setting

Parameter assignment in RUN

Measuring · Measuring type · Measuring range

See chapter Meas- Voltage Yes

uring types and

ranges (Page 21)

±10 V

Yes

· Temperature coefficient · Temperature unit

Pt: 0.003851 Pt: 0.003902 Pt: 0.003916 Pt: 0.003920 Ni: 0.00618 Ni: 0.00672 LG-Ni: 0.005000
· Kelvin (K)

0.003851 Yes

°C

Yes

· Fahrenheit (°F)

· Celsius (°C)

· Interference frequency suppression

400 Hz 60 Hz

50 Hz

Yes

50 Hz

10 Hz

· Smoothing

None/low/medium/hi None

Yes

gh

· Reference junction for TC · Fixed reference Internal

Yes

temperature

reference

· Dynamic refer- junction

ence tempera-

ture

· Internal reference junction

· Reference channel of the module

· Fixed reference tempera- Temperature ture

25 °C

Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Channel Channel Channel

Channel Channel Channel

Channel

Module

Channel

Module

Channel Channel

Channel
Module 5) · Dynamic ref-
erence temperature · Internal reference junction

Channel

--- 5)

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

25

Parameters/address space 4.2 Parameters

Parameters

Range of values

Hardware interrupts · Hardware interrupt low
limit 1
· Hardware interrupt high limit 1
· Hardware interrupt low limit 2
· Hardware interrupt high limit 2

Yes/No Yes/No Yes/No Yes/No

Default setting
No

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Yes

Channel

--- 5)

No

Yes

Channel

--- 5)

No

Yes

Channel

--- 5)

No

Yes

Channel

--- 5)

1) Only for measurement type Resistance, Resistance Thermometer RTD: If "Wire break" diagnostics and "Value status" are deactivated, the module reports overflow or underflow (7FFFh or 8000h) in case of a wiring error. The alarm depends on whether the connected cables are faulty.
Recommendation: Activate the "Wire break" diagnostics. The active check for wire break reliably detects wiring errors and the module reports overflow (7FFFH).
2) When "Wire break" diagnostics is disabled, the current limit of 1.185 mA applies to the value status. For measured values below 1.185 mA, the value status is always: 0 = fault.
3) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.

You can prevent this message burst by assigning the diagnostics function to one channel only. 4) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 7. 5) You can set the current limit for wire break diagnostics, the setting "Fixed reference temperature" and "Reference chan-
nel of the module" as well as the limits for hardware interrupts in the user program with data records 0 to 7.

Parameters of the reference channel
You cannot configure the reference channel with GSD file. You have to transfer the reference channel to the module with data record 8.
If you want to change the default settings, you have to transfer the parameters to the module with data record 8, see chapter Parameter assignment and structure of the parameter data records (Page 54).
The diagnostics "Common mode error" and "Reference channel error" cannot be configured for the reference channel.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

26

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics when the measured value violates the low limit.

Common mode error
Enabling of diagnostics if the valid common mode voltage is exceeded.
Enable the Common mode error diagnostics when 2WMT is connected, for example, to check for a short circuit to MANA or a wire break. If you do not need the Common mode error diagnostics, disable the parameter.

Reference channel error
 Enable diagnostics for an error at the temperature compensation channel, e.g. wire break.
 Dynamic reference temperature compensation type is configured and no reference temperature has been transferred to the module yet.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input or the applied voltage is too low.

Current limit for wire break diagnostics
Threshold for reporting wire breaks. The value can be set to 1.185 mA or 3.6 mA, depending on the sensor used.

Temperature coefficient
The temperature coefficient depends on the chemical composition of the material. In Europe, only one value is used per sensor type (default value).
The temperature coefficient ( value) indicates by how much the resistance of a specific material changes relatively if the temperature increases by 1 °C.
The further values facilitate a sensor-specific setting of the temperature coefficient and enhance accuracy.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

27

Parameters/address space 4.3 Declaration of parameters

Interference frequency suppression
At analog input modules, this suppresses interference caused by the frequency of the AC network.
The frequency of the AC network may corrupt measurements, particularly in the low voltage ranges and when thermocouples are being used. For this parameter, the user defines the mains frequency prevailing on his system.

Smoothing

The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels.
Smoothing time = number of module cycles (k) x cycle time of the module.
The following figure shows the number of module cycles after which the smoothed analog value is almost 100%, depending on the set smoothing. It is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-3 Smoothing with AI 8xU/I/RTD/TC ST

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

28

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.3 Declaration of parameters

Reference junction for TC
The following settings can be configured for the reference junction parameter:

Table 4- 3 Possible parameter assignments for the reference junction parameter TC

Setting Fixed reference temperature Dynamic reference temperature
Internal reference junction Reference channel of the module

Description
The reference junction temperature is configured and stored in the module as a fixed value.
The reference junction temperature is transferred in the user program from the CPU to the module by data records 192 to 199 using the WRREC (SFB 53) instruction.
The reference junction temperature is determined using an integrated sensor of the module.
The reference junction temperature is determined using an external resistance thermometer (RTD) at the reference channel (COMP) of the module.

Hardware interrupt 1 or 2
Enabling of a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.

Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.

High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

29

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 8xU/I/RTD/TC ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 4 Configuration options

Configuration

Short designation/
module name in the GSD file

1 x 8-channel without value status 1 x 8-channel with value status 8 x 1-channel without value status

AI 8xU/I/RTD/T C ST
AI 8xU/I/RTD/T C ST QI
AI 8xU/I/RTD/T C ST S

8 x 1-channel with value status

AI 8xU/I/RTD/T C ST S QI

1 x 8-channel with value status for module- AI 8xU/I/RTD/T internal shared input with up to 4 submod- C ST MSI ules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

V12 or higher

X

V13 Update 3 or higher (PROFINET IO only)
V13 Update 3 or higher (PROFINET IO only)
V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)
X (PROFINET IO only)
X (PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 8xU/I/RTD/TC ST QI  AI 8xU/I/RTD/TC ST S QI  AI 8xU/I/RTD/TC ST MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

30

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.4 Address space
Address space of AI 8xU/I/RTD/TC ST
The following figure shows the address space allocation for the configuration as 8-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Figure 4-4 Address space for configuration as 1 x 8-channel AI 8xU/I/RTD/TC ST with value status

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

31

Parameters/address space 4.4 Address space
Address space for configuration as 8 x 1-channel AI 8xU/I/RTD/TC ST QI
For the configuration as a 8 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 8-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-5 Address space for configuration as 8 x 1-channel AI 8xU/I/RTD/TC ST S QI with value status

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

32

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AI 8xU/I/RTD/TC ST MSI
The channels 0 to 7 of the module are copied in up to four submodules with configuration 1 x 8-channel module (Module-internal shared input, MSI). Channels 0 to 7 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

33

Parameters/address space 4.4 Address space
The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-6 Address space for configuration as 1 x 8-channel AI 8xU/I/RTD/TC ST MSI with value status

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

34

Manual, 08/2018, A5E03484864-AE

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Reference

Figure 4-7 Address space for configuration as 1 x 8-channel AI 8xU/I/RTD/TC ST MSI with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

35

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of AI 8xU/I/RTD/TC ST.

5

Figure 5-1 LED displays of the module AI 8xU/I/RTD/TC ST

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

36

Manual, 08/2018, A5E03484864-AE

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LEDs RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are insert-
ed. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

37

Interrupts/diagnostics alarms 5.1 Status and error displays

CHx and COMP LED

Table 5- 3 CHx and COMP status indication

LED CHx/COMP Off On On

Meaning Channel disabled
Channel configured and OK.
Channel is configured (channel error pending). Diagnostic alarm: e.g. wire break

Remedy ---
---
Check the wiring. Disable diagnostics.

See also

Diagnostics alarms (Page 41)

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

38

Manual, 08/2018, A5E03484864-AE

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 8xU/I/RTD/TC ST supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Overflow  Underflow  Common mode error  Reference channel error  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Above high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The diagram below shows the assignment to the bits of double word 8 in local data.

Figure 5-2 OB start information

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

39

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

The event that triggered the hardware interrupt follows.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

40

Manual, 08/2018, A5E03484864-AE

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code
6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

Reference channel

15H

error

Common mode error 118H

Meaning

Solution

Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel

Measuring range violated Measuring range violated
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment

Check the measuring range Check the measuring range Correct the parameter assignment

Supply voltage L+ of the module is missing Connect supply voltage L+ to module/channel

Invalid reference temperature for the used TC channel with compensation

Check the resistance thermometer. For the compensation with data record, restore communication to the module/station.

Valid common mode voltage exceeded Causes when a 2WT is connected, e.g.:

Check the wiring, e.g. sensor ground connections, use equipotential cables

· Wire break · Galvanic connection to MANA

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the "Wire break" diagnostics first and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors can be diagnosed reliably, select all check boxes under "Diagnostics".

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

41

Technical specifications

6

Technical specifications of the AI 8xU/I/RTD/TC ST
The following table shows the technical specifications as of 08/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7531-7KF00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
· Measuring range scalable
· Scalable measured values
· Adjustment of measuring range
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · Oversampling
· MSI
CiR ­ Configuration in RUN Reparameterization possible in RUN Calibration possible in RUN
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection

6ES7531-7KF00-0AB0
AI 8xU/I/RTD/TC ST FS04 V2.0.0 Yes
Yes; I&M0 to I&M3 No No No
V12 / V12
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
No Yes
Yes Yes
24 V 20.4 V 28.8 V Yes

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

42

Technical specifications

Article number Input current
Current consumption, max. Encoder supply 24 V encoder supply
· Short-circuit protection
· Output current, max.
Power Power available from the backplane bus
Power loss Power loss, typ.
Analog inputs Number of analog inputs · For current measurement
· For voltage measurement
· For resistance/resistance thermometer measurement
· For thermocouple measurement permissible input voltage for voltage input (destruction limit), max. permissible input current for current input (destruction limit), max. Constant measurement current for resistancetype transmitter, typ.
Technical unit for temperature measurement adjustable

6ES7531-7KF00-0AB0
240 mA; with 24 V DC supply
Yes 20 mA; Max. 47 mA per channel for a duration < 10 s
0.7 W
2.7 W
8 8 8 4
8 28.8 V
40 mA
150 Ohm, 300 Ohm, 600 Ohm, Pt100, Pt200, Ni100: 1.25 mA; 6 000 Ohm, Pt500, Pt1000, Ni1000, LG-Ni1000: 0.625 mA; PTC: 0.472 mA Yes; °C/°F/K

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

43

Technical specifications

Article number Input ranges (rated values), voltages
· 0 to +5 V · 0 to +10 V · 1 V to 5 V · Input resistance (1 V to 5 V) · -1 V to +1 V · Input resistance (-1 V to +1 V) · -10 V to +10 V · Input resistance (-10 V to +10 V) · -2.5 V to +2.5 V · Input resistance (-2.5 V to +2.5 V) · -25 mV to +25 mV · -250 mV to +250 mV · Input resistance (-250 mV to +250 mV) · -5 V to +5 V · Input resistance (-5 V to +5 V) · -50 mV to +50 mV · Input resistance (-50 mV to +50 mV) · -500 mV to +500 mV · Input resistance (-500 mV to +500 mV) · -80 mV to +80 mV · Input resistance (-80 mV to +80 mV) Input ranges (rated values), currents · 0 to 20 mA · Input resistance (0 to 20 mA)
· -20 mA to +20 mA · Input resistance (-20 mA to +20 mA)
· 4 mA to 20 mA · Input resistance (4 mA to 20 mA)

6ES7531-7KF00-0AB0
No No Yes 100 k Yes 10 M Yes 100 k Yes 10 M No Yes 10 M Yes 100 k Yes 10 M Yes 10 M Yes 10 M
Yes 25 ; Plus approx. 42 ohms for overvoltage protection by PTC Yes 25 ; Plus approx. 42 ohms for overvoltage protection by PTC Yes 25 ; Plus approx. 42 ohms for overvoltage protection by PTC

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

44

Manual, 08/2018, A5E03484864-AE

Article number Input ranges (rated values), thermocouples
· Type B · Input resistance (Type B) · Type C · Type E · Input resistance (Type E) · Type J · Input resistance (type J) · Type K · Input resistance (Type K) · Type L · Type N · Input resistance (Type N) · Type R · Input resistance (Type R) · Type S · Input resistance (Type S) · Type T · Input resistance (Type T) · Type TXK/TXK(L) to GOST

6ES7531-7KF00-0AB0
Yes 10 M No Yes 10 M Yes 10 M Yes 10 M No Yes 10 M Yes 10 M Yes 10 M Yes 10 M No

Technical specifications

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

45

Technical specifications

Article number

6ES7531-7KF00-0AB0

Input ranges (rated values), resistance thermometer

· Cu 10

No

· Cu 10 according to GOST

No

· Cu 50

No

· Cu 50 according to GOST

No

· Cu 100

No

· Cu 100 according to GOST

No

· Ni 10

No

· Ni 10 according to GOST

No

· Ni 100

Yes; Standard/climate

· Input resistance (Ni 100)

10 M

· Ni 100 according to GOST

No

· Ni 1000

Yes; Standard/climate

· Input resistance (Ni 1000)

10 M

· Ni 1000 according to GOST

No

· LG-Ni 1000

Yes; Standard/climate

· Input resistance (LG-Ni 1000)

10 M

· Ni 120

No

· Ni 120 according to GOST

No

· Ni 200 according to GOST

No

· Ni 500

No

· Ni 500 according to GOST

No

· Pt 10

No

· Pt 10 according to GOST

No

· Pt 50

No

· Pt 50 according to GOST

No

· Pt 100

Yes; Standard/climate

· Input resistance (Pt 100)

10 M

· Pt 100 according to GOST

No

· Pt 1000

Yes; Standard/climate

· Input resistance (Pt 1000)

10 M

· Pt 1000 according to GOST

No

· Pt 200

Yes; Standard/climate

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

46

Manual, 08/2018, A5E03484864-AE

Technical specifications

Article number · Input resistance (Pt 200)

6ES7531-7KF00-0AB0 10 M

· Pt 200 according to GOST

No

· Pt 500

Yes; Standard/climate

· Input resistance (Pt 500)

10 M

· Pt 500 according to GOST

No

Input ranges (rated values), resistors

· 0 to 150 ohms

Yes

· Input resistance (0 to 150 ohms)

10 M

· 0 to 300 ohms

Yes

· Input resistance (0 to 300 ohms)

10 M

· 0 to 600 ohms

Yes

· Input resistance (0 to 600 ohms)

10 M

· 0 to 3000 ohms

No

· 0 to 6000 ohms

Yes

· Input resistance (0 to 6000 ohms)

10 M

· PTC

Yes

· Input resistance (PTC)

10 M

Thermocouple (TC)

Temperature compensation

­ parameterizable

Yes

­ internal temperature compensation

Yes

­ external temperature compensation via Yes RTD

­ Compensation for 0 °C reference point Yes; fixed value can be set temperature

­ Reference channel of the module

Yes

Cable length · shielded, max.

800 m; for U/I, 200 m for R/RTD, 50 m for TC

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

47

Technical specifications

Article number Analog value generation for the inputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.

6ES7531-7KF00-0AB0 16 bit

· Integration time, parameterizable

Yes

· Integration time (ms)

2,5 / 16,67 / 20 / 100 ms

· Basic conversion time, including integration 9 / 23 / 27 / 107 ms time (ms)

­ additional conversion time for wirebreak monitoring

9 ms (to be considered in R/RTD/TC measurement)

­ additional conversion time for resistance measurement
· Interference voltage suppression for interference frequency f1 in Hz

150 ohm, 300 ohm, 600 ohm, Pt100, Pt200, Ni100: 2 ms, 6000 ohm, Pt500, Pt1000, Ni1000, LG-Ni1000, PTC: 4 ms
400 / 60 / 50 / 10 Hz

· Time for offset calibration (per module)

Basic conversion time of the slowest channel

Smoothing of measured values

· parameterizable

Yes

· Step: None

Yes

· Step: low

Yes

· Step: Medium

Yes

· Step: High

Yes

Encoder

Connection of signal encoders

· for voltage measurement

Yes

· for current measurement as 2-wire trans- Yes ducer

­ Burden of 2-wire transmitter, max.

820 

· for current measurement as 4-wire trans- Yes ducer

· for resistance measurement with two-wire Yes; Only for PTC connection

· for resistance measurement with three-wire Yes; All measuring ranges except PTC; internal

connection

compensation of the cable resistances

· for resistance measurement with four-wire Yes; All measuring ranges except PTC connection

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

48

Manual, 08/2018, A5E03484864-AE

Technical specifications

Article number

6ES7531-7KF00-0AB0

Errors/accuracies

Linearity error (relative to input range), (+/-) 0.02 %

Temperature error (relative to input range), (+/- 0.005 %/K; With TC type T 0.02 ± % / K )

Crosstalk between the inputs, max.

-80 dB

Repeat accuracy in steady state at 25 °C (rela- 0.02 % tive to input range), (+/-)

Temperature error of internal compensation ±6 °C

Operational error limit in overall temperature range

· Voltage, relative to input range, (+/-)

0.3 %

· Current, relative to input range, (+/-)

0.3 %

· Resistance, relative to input range, (+/-)

0.3 %

· Resistance thermometer, relative to input range, (+/-)

Ptxxx standard: ±1.5 K, Ptxxx climate: ±0.5 K, Nixxx standard: ±0.5 K, Nixxx climate: ±0.3 K

· Thermocouple, relative to input range, (+/-)
Basic error limit (operational limit at 25 °C) · Voltage, relative to input range, (+/-)

Type B: > 600 °C ±4.6 K, type E: > -200 °C ±1.5 K, type J: > -210 °C ±1.9 K, type K: > -200 °C ±2.4 K, type N: > -200 °C ±2.9 K, type R: > 0 °C ±4.7 K, type S: > 0 °C ±4.6 K, type T: > -200 °C ±2.4 K
0.1 %

· Current, relative to input range, (+/-)

0.1 %

· Resistance, relative to input range, (+/-)

0.1 %

· Resistance thermometer, relative to input range, (+/-)

Ptxxx standard: ±0.7 K, Ptxxx climate: ±0.2 K, Nixxx standard: ±0.3 K, Nixxx climate: ±0.15 K

· Thermocouple, relative to input range, (+/-)
Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency
· Series mode interference (peak value of interference < rated value of input range), min.

Type B: > 600 °C ±1.7 K, type E: > -200 °C ±0.7 K, type J: > -210 °C ±0.8 K, type K: > -200 °C ±1.2 K, type N: > -200 °C ±1.2 K, type R: > 0 °C ±1.9 K, type S: > 0 °C ±1.9 K, type T: > -200 °C ±0.8 K
40 dB

· Common mode voltage, max.

10 V

· Common mode interference, min.

60 dB

Isochronous mode
Isochronous operation (application synchro- No nized up to terminal)

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

49

Technical specifications

Article number Interrupts/diagnostics/status information
Diagnostics function Alarms
· Diagnostic alarm
· Limit value alarm
Diagnostic messages · Monitoring the supply voltage
· Wire-break
· Overflow/underflow Diagnostics indication LED
· RUN LED
· ERROR LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels
· between the channels, in groups of
· between the channels and backplane bus
· between the channels and the power supply of the electronics
Permissible potential difference between the inputs (UCM) Between the inputs and MANA (UCM)
Isolation Isolation tested with
Standards, approvals, certificates Suitable for applications according to AMS 2750 Suitable for applications according to CQI-9

6ES7531-7KF00-0AB0
Yes
Yes Yes; two upper and two lower limit values in each case
Yes Yes; Only for 1 to 5 V, 4 to 20 mA, TC, R, and RTD Yes
Yes; Green LED Yes; Red LED Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED
No 8 Yes Yes
20 V DC 10 V DC
707 V DC (type test)
Yes; Declaration of Conformity, see online support entry 109757262 Yes; Based on AMS 2750 E

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

50

Manual, 08/2018, A5E03484864-AE

Article number Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max.
Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.
Other Note:

Technical specifications
6ES7531-7KF00-0AB0
0 °C 60 °C 0 °C 40 °C
No
35 mm 147 mm 129 mm
310 g
Additional basic error and noise for integration time = 2.5 ms: Voltage: ±250 mV (±0.02%), ±80 mV (±0.05%), ±50 mV (±0.05%); resistance: 150 ohms ±0.02%; resistance thermometer: Pt100 climate: ±0.08 K, Ni100 climate: ±0.08 K; thermocouple: Type B, R, S: ±3 K, type E, J, K, N, T: ±1 K

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

51

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the AI 8xU/I/RTD/TC ST module

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

52

Dimensional drawing
Figure A-2 Dimensional drawing of the AI 8xU/I/RTD/TC ST module, side view with open front panel

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

53

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Current limit for wire break Wire break
Common mode error Reference channel error Measuring type resistance (4-wire connection, 3-wire connection) Measuring type resistance (4-wire connection, 3-wire connection, 2-wire connection) Measuring type thermal resistor RTD (4-wire connection, 3-wire connection) Hardware interrupt limits Fixed reference temperature
Temperature unit Kelvin (K)

Dependent parameters Only for measuring type current with measuring range 4 mA to 20 mA. Only for measuring type resistance, thermal resistor RTD, thermocouple TC, voltage with measuring range 1V to 5 V and current with measuring range 4 mA to 20 mA. Only for measuring type voltage, current and thermocouple TC. Only for measuring type thermocouple TC. Only for measuring range 150 , 300 , 600  and 6000 .
Configurable for even channels (0, 2, 4 and 6) only. The following odd channel (1, 3, 5, 7) must be deactivated.
Only if hardware interrupts are enabled. Only if the value Fixed reference temperature is configured at parameter Reference junction for TC. Only for measuring type thermal resistor RTD and for thermocouple TC.

Parameter assignment in the user program
The module parameters can be assigned in RUN (for example, measuring ranges of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
Instruction WRREC is used to transfer the parameters by means of data records 0 to 7 and 8. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

54

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. The description of the WRREC instruction and the error codes is available in the STEP 7 online help.
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
The parameters in data records 0 to 7 and in data record 8 are available for 1x 8-channel configuration and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 6 for channel 6  Data record 7 for channel 7  Data record 8 for the reference channel (COMP) For configuration 8 x 1-channel, the module has 8 submodules with one channel each and one submodule for the reference channel. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  ...  Data record 0 for channel 6 (submodule 7)  Data record 0 for channel 7 (submodule 8)  Data record 0 for the reference channel (COMP) (submodule 9) Address the respective submodule for data record transfer.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

55

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

56

Manual, 08/2018, A5E03484864-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-2 Structure of data record 0: Bytes 7 to 27

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

57

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Structure of data record 8, reference channel (COMP) of the module
The reference channel compensates the measured value for channels 0 to 7. The figure below shows the structure of data record 8. Enable a parameter by setting the corresponding bit to "1".

Figure B-3 Structure of data record 8, reference channel of the module: Bytes 0 to 27

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

58

Manual, 08/2018, A5E03484864-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measurement types
The following table lists all measurement types of the analog input module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 2 Code for the measurement type

Measurement type Deactivated Voltage Current, 2-wire transmitter Current, 4-wire transmitter Resistance, 4-wire connection *) **) Resistance, 3-wire connection *) **) Resistance, 2-wire connection *) ***) Thermal resistor linear, 4-wire connection *) Thermal resistor linear, 3-wire connection *) Thermocouple

Code 0000 0000 0000 0001 0000 0011 0000 0010 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1010

*) only possible for channels 0, 2, 4 and 6 **) only for the following measuring ranges: 150 , 300 , 600 , 6 k ***) only for measuring range PTC

Special feature for configuration
If you configure one of the following measuring types at one of the channels 0, 2, 4 and 6:  Resistance, 4-wire connection  Resistance, 3-wire connection  Resistance, 2-wire connection  Thermal resistor linear, 4-wire connection  Thermal resistor linear, 3-wire connection then one of the following channels must be disabled. Example: You have configured "Resistance, 4-wire connection" at channel 0; channel 1 must be disabled. You have configured "Resistance, 2-wire connection" at channel 2; channel 3 must be disabled.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

59

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes accordingly at byte 3 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 3 Code for the measuring range
Measuring range Voltage ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V ±5 V ±10 V 1 V to 5 V Current, 4-wire transmitter 0 mA to 20 mA 4 mA to 20 mA ±20 mA Current, 2-wire transmitter 4 mA to 20 mA Resistor 150  300  600  6 k PTC

Code
0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100
0000 0011
0000 0001 0000 0010 0000 0011 0000 0101 0000 1111

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

60

Manual, 08/2018, A5E03484864-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Thermal resistor Pt100 Climate Ni100 Climate Pt100 standard Ni100 standard Pt500 standard Pt1000 standard Ni1000 standard Pt200 Climate Pt500 Climate Pt1000 Climate Ni1000 Climate Pt200 standard LG-Ni1000 standard LG-Ni1000 Climate Thermocouple B N E R S J T K

0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010 0000 1011 0001 1100 0001 1101
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

61

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measuring ranges, reference channel (COMP) of the module
The following table lists all measuring ranges along with their codes for the reference channel (COMP). Enter these codes in byte 3 of data record 8 (see figure Structure of data record 8, reference channel of the module: Bytes 0 to 27).

Table B- 4 Code for the measuring range, reference channel (COMP)

Measuring range Thermal resistor Pt100 Climate Ni100 Climate Pt100 standard Ni100 standard Pt500 standard Pt1000 standard Ni1000 standard Pt200 Climate Pt500 Climate Pt1000 Climate Ni1000 Climate Pt200 standard LG-Ni1000 standard LG-Ni1000 Climate

Code
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010 0000 1011 0001 1100 0001 1101

Codes for temperature coefficients
The following table lists all temperature coefficients along with their codes for temperature measurements with the thermal resistors. You need to enter these codes in
 byte 4 of data record 8 (see figure, Structure of data record 8, reference channel of the module: bytes 0 to 27) and
 byte 4 of data records 0, 2, 4, 6 and 8 (see figure, Structure of data record 0: Bytes 0 to 6)

Table B- 5 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720 LG-Ni 0.005000

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001
0000 1010

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

62

Manual, 08/2018, A5E03484864-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Valid values for fixed reference temperatures
The values that you can set for fixed reference temperatures must be in the valid range of values. The resolution is a tenth of a degree.

Table B- 6 Valid values for fixed reference temperatures

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default)

Decimal -1450 to 1550 -2290 to 3110 1282 to 3276

Hexadecimal FA56H to 60EH F70EH to CCCH 502H to 10BAH

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not violate the over/underrange of the respective rated measuring range.
The following tables list the valid hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 7 Voltage limits

Voltage ±50 mV, ±80 mV, ±250 mV, ±500 mV, ±1 V, ±2.5 V, ±5 V, ±10 V 32510
-32511

1 V to 5 V
32510 -4863

High limit Low limit

Table B- 8 Current and resistance limits

Current ±20 mA
32510 -32511

4 mA to 20 mA / 0 mA to 20 mA
32510
-4863

Resistor (all configurable measuring ranges)
32510 1

High limit Low limit

Table B- 9 Limits for thermocouple types B, C, E, and J

Thermocouple

Type B

°C

°F

K

20699 32765 23431

1

321 2733

°C 11999 -2699

Type E

°F

K

21919 14731

-4539 33

°C 14499 -2099

Type J °F
26419 -3459

K 17231
633

High limit Low limit

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

63

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Table B- 10 Limits for thermocouples type K, N, R, and S

Thermocouple

Type K

°C

°F

16219 29515

-2699 -4539

K 18951
33

°C 15499 -2699

Type N

°F

K

28219 18231

-4539 33

Types R, S

°C

°F

K

20189 32765 22921

-1699 -2739 1033

High limit Low limit

Table B- 11 Limits for thermocouple type T

Thermocouple

Type T

°C

°F

5399 10039

-2699 -4539

K 8131
33

High limit Low limit

Table B- 12 Limits for thermal resistor Pt xxx Standard and Pt xxx Climatic

Thermal resistor

Pt xxx Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt xxx Climate

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 13 Limits for thermal resistor Ni xxx Standard and Ni xxx Climatic

Thermal resistor

Ni xxx Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni xxx Climate

°F

K

31099

---

-15699

---

High limit Low limit

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

64

Manual, 08/2018, A5E03484864-AE

Parameter data records B.2 Structure of a data record for dynamic reference temperature

B.2

Structure of a data record for dynamic reference temperature
The WRREC instruction is used to transfer the reference junction temperature via data record 192 to data record 199 to the module.
The description of the WRREC instruction can be found in the online help from STEP 7.
If you have set the "Dynamic reference temperature" value for the "Reference junction" parameter, the module expects a new data record at least every 5 minutes. If the module does not receive a new data record within this time, it generates the "Reference channel error" diagnostics message.

Assignment of data record and channel
The following assignment applies if no submodules (1 x 8-channel) are configured for the module:  Data record 192 for channel 0  Data record 193 for channel 1  Data record 194 for channel 2  Data record 195 for channel 3  Data record 196 for channel 4  Data record 197 for channel 5  Data record 198 for channel 6  Data record 199 for channel 7 If eight submodules (8 x 1-channel) are configured for the module, each submodule has only one channel. The parameters of the channel are in data record 192. Background: Each submodule you address for the data record transfer has only one channel.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

65

Parameter data records B.2 Structure of a data record for dynamic reference temperature
Structure of data record 192 for dynamic reference temperature
The following figure shows an example of the structure of data record 192 for channel 0. The structure for data records 193 to 199 is identical.

Figure B-4 Structure of data record 192

Valid values for fixed temperature compensation
You can enter the selectable values at byte 1 of the data record for the corresponding channel. The selectable values must lie within the permitted value range, see following table. The resolution is a tenth of a degree.

Table B- 14 Valid values for temperature compensation via data record

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default) Celsius (climatic) Fahrenheit (climatic) Kelvin (climatic)

Decimal -1450 to 1550 -2290 to 3110 1282 to 3276 -14500 to 15500 -22900 to 31100 12820 to 32760

Hexadecimal FA56H to 60EH F70EH to C26H 502H to CCCH C75CH to 3C8CH A68CH to 797CH 3214H to 7FF8H

Additional information
For more information on compensation of the reference junction temperature via data record refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual in the internet.

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

66

Manual, 08/2018, A5E03484864-AE

Representation of analog values

C

Introduction

This chapter shows the analog values for all measuring ranges supported by the AI 8xU/I/RTD/TC ST analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog module.

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Decimal 1

Hexadecimal 1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

67

Manual, 08/2018, A5E03484864-AE

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The following tables set out the digitalized representation of the input ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

68

Manual, 08/2018, A5E03484864-AE

C.2

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring ranges ±10 V, ±5 V, ±2.5 V, ±1 V,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V >5.879 V

11.759 V 5.879 V

±2.5 V >2.940 V 2.940 V

±1 V > 1.176 V 1.176 V

Range
Overflow Overshoot range

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

2.5 V 1.875 V 90.4 µV 0 V

1 V 0.75 V 36.17 µV 0 V

Rated range

-7.5 V -10 V

-3.75 V -5 V

-11.759 V -5.879 V < -11.759 V < -5.879 V

-1.875 V -2.5 V
-2.940 V < -2.940 V

-0.75 V -1 V
-1.176 V < -1.176 V

Undershoot range
Underflow

Table C- 5 Voltage measuring ranges ±500 mV, ±250 mV, ±80 mV, and ±50 mV,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±500 mV

±250 mV

>587.9 mV > 294.0 mV

587.9 mV 294.0 mV

±80 mV > 94.1 mV 94.1 mV

±50 mV > 58.8 mV 58.8 mV

Range
Overflow Overshoot range

500 mV 375 mV 18.08 µV 0 mV

250 mV 187.5 mV 9.04 µV 0 mV

80 mV 60 mV 2.89 µV 0 mV

50 mV 37.5 mA 1.81 µV 0 mV

Rated range

-375 mV -500 mV

-187.5 mV -250 mV

-60 mV -80 mV

-587.9 mV -294.0 mV -94.1 mV <-587.9 mV < -294.0 mV < -94.1 mV

-37.5 mV -50 mV
-58.8 mV < -58.8 mV

Undershoot range
Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

69

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

Table C- 6 Voltage measuring range 1 to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

70

Manual, 08/2018, A5E03484864-AE

C.3

Representation of analog values C.3 Representation of analog values in the current measuring ranges

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 7 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA < -23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 8 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <- 3.52 mA

4 to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

71

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

C.4

Representation of the analog values of resistance-based

sensors/resistance thermometers

The following tables list the decimal and hexadecimal values (codes) of the possible resistance-based sensor ranges.

Table C- 9 Resistance-based sensors of 150 , 300 , 600 , and 6000 

Values dec 32767 32511 27649 27648 20736 1 0

hex 7FFF 7EFF 6C01 6C00 5100 1 0

Resistive transmitter range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

6000  >7055.3  7055.3 
6000  4500  217 m 0 

Overflow Overshoot range
Rated range

The following tables list the decimal and hexadecimal values (codes) of the supported resistance thermometers.

Table C- 10 Thermal resistors Pt 100, Pt 200, Pt 500 and Pt 1000 Standard

Pt x00 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt x00 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt x00 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

72

Manual, 08/2018, A5E03484864-AE

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 11 Thermal resistors Pt 100, Pt 200, Pt 500 and Pt 1000 Climate

Pt x00 Climate/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt x00 Climate/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Table C- 12 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Standard

Ni x00 standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni x00 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni x00 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

73

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 13 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Climate

Ni x00 Climate in °C Values

(1 digit = 0.01 °C)

dec

> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex
7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni x00 Climate in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -76.00 -76.01 : -157.00 < - 157.00

Values dec
32767 31100 : 26601 26600 : -7600 -7601 : -15700 -32768

hex
7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

74

Manual, 08/2018, A5E03484864-AE

Representation of analog values C.5 Representation of analog values for thermocouples

C.5

Representation of analog values for thermocouples

The following tables list the decimal and hexadecimal values (codes) of the supported thermocouples.

Table C- 14 Thermocouple type B

Type B in °C
> 2070.0 2070.0 : 1820.1 1820.0 : 250.0 249.9 : 0.0 < 0.0

Values
dec 32767 20700 : 18201 18200 : 2500 2499 : 0 -32768

hex 7FFF 50DC : 4719 4718 : 09C4 09C3 : 0 8000

Type B in °F
> 3276.6 3276.6 : 2786.6 2786.5 : 482.0 481.9 : 32.0 < 32.0

Values
dec 32767 32766 : 27866 27865 : 4820 4819 : 320 -32768

hex 7FFF 7FFE : 6CDA 6CD9 : 12D4 12D3 : 0140 8000

Type B in K
> 2343.2 2343.2 : 2093.3 2093.2 : 523.2 523.1 : 273.2 < 273.2

Values
dec 32767 23432 : 20933 20932 : 5232 5231 : 2732 32768

hex 7FFF 5B88 : 51C5 51C4 : 1470 1469 : 0AAC 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Table C- 15 Thermocouple type E

Type E in °C
> 1200.0 1200.0 : 1000.1 1000.0 : -270.0 < -270.0

Values dec 32767 12000 : 10001 10000 : -2700 -32768

hex 7FFF 2EE0 : 2711 2710 : F574 8000

Type E in °F
> 2192.0 2192.0 : 1832.2 1832.0 : -454.0 < -454.0

Values dec 32767 21920 : 18322 18320 : -4540 -32768

hex 7FFF 55A0 : 4792 4790 : EE44 8000

Type E in K
> 1473.2 1473.2 : 1273.3 1273.2 : 0 <0

Values dec 32767 14732 : 12733 12732 : 0 -32768

hex 7FFF 398C : 31BD 31BC : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

75

Representation of analog values C.5 Representation of analog values for thermocouples

Table C- 16 Thermocouple type J

Type J in °C
> 1450.0 1450.0 : 1200.1 1200.0 : -210.0 < -210.0

Values dec 32767 14500 : 12001 12000 : -2100 -32768

hex 7FFF 38A4 : 2EE1 2EE0 : F7CC 8000

Type J in °F
> 2642.0 2642.0 : 2192.2 2192.0 : -346.0 < -346.0

Values dec 32767 26420 : 21922 21920 : -3460 -32768

hex 7FFF 6734 : 55A2 55A0 : F27C 8000

Type J in K
> 1723.2 1723.2 : 1473.3 1473.2 : 63.2 < 63.2

Values dec 32767 17232 : 14733 14732 : 632 -32768

hex 7FFF 4350 : 398D 398C : 0278 8000

Range Overflow Overshoot range
Rated range
Underflow

Table C- 17 Thermocouple type K

Type K in °C
> 1622.0 1622.0 : 1372.1 1372.0 : -270.0 < -270.0

Values dec 32767 16220 : 13721 13720 : -2700 -32768

hex 7FFF 3F5C : 3599 3598 : F574 8000

Type K in °F
> 2951.6 2951.6 : 2501.7 2501.6 : -454.0 < -454.0

Values dec 32767 29516 : 25017 25016 : -4540 -32768

hex 7FFF 734C : 61B9 61B8 : EE44 8000

Type K in K
> 1895.2 1895.2 : 1645.3 1645.2 : 0 < 0

Values dec 32767 18952 : 16453 16452 : 0 -32768

hex 7FFF 4A08 : 4045 4044 : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Table C- 18 Thermocouple type N

Type N in °C
> 1550.0 1550.0 : 1300.1 1300.0 : -270.0 < -270.0

Values
dec 32767 15500 : 13001 13000 : -2700 -32768

hex 7FFF 3C8C : 32C9 32C8 : F574 8000

Type N in °F
> 2822.0 2822.0 : 2372.2 2372.0 : -454.0 < -454.0

Values
dec 32767 28220 : 23722 23720 : -4540 -32768

hex 7FFF 6E3C : 5CAA 5CA8 : EE44 8000

Type N in K
> 1823.2 1823.2 : 1573.3 1573.2 : 0 < 0

Values
dec 32767 18232 : 15733 15732 : 0 -32768

hex 7FFF 4738 : 3D75 3D74 : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

76

Manual, 08/2018, A5E03484864-AE

Representation of analog values C.5 Representation of analog values for thermocouples

Table C- 19 Thermocouple type R and S

Type R, S Values

in °C

dec

> 2019.0 32767

2019.0 20190

:

:

1769.1 17691

1769.0 17690

:

:

-50.0

-500

-50.1

-501

:

:

-170.0 -1700

< -170.0 -32768

hex 7FFF 4EDE : 451B 451A : FE0C FE0B : F95C 8000

Type R, S Values

in °F

dec

> 3276.6 32767

3276.6 32766

:

:

3216.4 32164

3216.2 32162

:

:

-58.0

-580

-58.1

-581

:

:

-274.0 -2740

< -274.0 -32768

hex 7FFF 7FFE : 7DA4 7DA2 : FDBC FDBB : F54C 8000

Types R, S in K
> 2292.2 2292.2 : 2042.3 2042.2 : 223.2 223.1 : 103.2 < 103.2

Values
dec 32767 22922 : 20423 20422 : 2232 2231 : 1032 < 1032

hex 7FFF 598A : 4FC7 4FC6 : 08B8 08B7 : 0408 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Table C- 20 Thermocouple type T

Type T in °C
> 540.0 540.0 : 400.1 400.0 : -270.0 < -270.0

Values dec 32767 5400 : 4001 4000 : -2700 -32768

hex 7FFF 1518 : 0FA1 0FA0 : F574 8000

Type T in °F
> 1004.0 1004.0 : 752.2 752.0 : -454.0 < -454.0

Values dec 32767 10040 : 7522 7520 : -4540 -32768

hex 7FFF 2738 : 1D62 1D60 : EE44 8000

Type T in K
> 813.2 813.2 : 673.3 673.2 : 3.2 < 3.2

Values dec 32767 8132 : 6733 6732 : 32 -32768

hex 7FFF 1FC4 : 1AAD 1AAC : 0020 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog input module AI 8xU/I/RTD/TC ST (6ES7531-7KF00-0AB0)

Manual, 08/2018, A5E03484864-AE

77

ein

SIMATIC
S7-1500/ET 200MP Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E36647959-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36647959-AB  09/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Functions that relate in general to the systems are described in these system manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:
 As of firmware version V1.1.0, the module supports the scalable measuring range function.
 Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information regarding the product described in the documentation or its handling, or draws special attention to a section of the documentation.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

4

Manual, 09/2016, A5E36647959-AB

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

2.2 2.2.1 2.2.2

Functions................................................................................................................................ 13 Scalable measuring range ..................................................................................................... 13 Configuration.......................................................................................................................... 18

3 Wiring ................................................................................................................................................... 19

4 Parameters/address space ................................................................................................................... 24

4.1

Measuring types and ranges.................................................................................................. 24

4.2

Parameters............................................................................................................................. 27

4.3

Declaration of parameters...................................................................................................... 31

4.4

Address space ....................................................................................................................... 34

5 Interrupts/diagnostics alarms................................................................................................................. 41

5.1

Status and error displays ....................................................................................................... 41

5.2

Interrupts ................................................................................................................................ 43

5.3

Diagnostics alarms................................................................................................................. 45

6 Technical specifications ........................................................................................................................ 46

A Dimensional drawing............................................................................................................................. 54

B Parameter data records ........................................................................................................................ 56

B.1

Parameter assignment and structure of the parameter data records .................................... 56

B.2

Structure of the data record for dynamic reference temperature........................................... 66

B.3

Structure of data record 235 for scalable measuring range .................................................. 68

C Representation of analog values ........................................................................................................... 71

C.1

Representation of input ranges.............................................................................................. 72

C.2

Representation of analog values in voltage measuring ranges ............................................. 73

C.3
C.3.1 C.3.2 C.3.3 C.3.4 C.3.5 C.3.6

Analog value representation for resistance-type transmitters / resistance thermometers ......................................................................................................................... 74 Resistance-type transmitters 150, 300, 600, 6000 Ohm ....................................................... 74 Thermal resistor Pt 10, 50, 100, 200, 500, 1000 Standard/GOST ........................................ 74 Thermal resistor Ni 10, 100, 120, 200, 500, 1000, LG-Ni 1000 Standard ............................. 75 Thermal resistor Ni 10, 100, 120, 200, 500, 1000, LG-Ni 1000 Climatic ............................... 76 Thermal resistor Ni 10, 100, 120, 200, 500, 1000 GOST Standard ...................................... 77 Thermal resistor Cu 10, 50, 100 Standard/Climatic/GOST ................................................... 78

C.4

Representation of analog values for thermocouples ............................................................. 80

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

6

Manual, 09/2016, A5E36647959-AB

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

8

Manual, 09/2016, A5E36647959-AB

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

10

Manual, 09/2016, A5E36647959-AB

Product overview

2.1

Properties

Article number
6ES7531-7PF00-0AB0

View of the module

2

Figure 2-1 View of the AI 8xU/R/RTD/TC HF module

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  9 electrically isolated analog inputs  Measurement type can be set for each channel:
­ Voltage ­ Resistor ­ Thermal resistor (RTD) ­ Thermocouple (TC) including external compensation via CH 8 (reference channel)  Resolution 16 bits including sign  Two operating modes: ­ Fast: shortest integration time 2.5 ms ­ Standard: shortest integration time 7.5 ms  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits per channel)  Supports thermoresistors and thermocouples according to the GOST standard The module supports the following functions:

Table 2- 1

Version dependencies of the module functions

Function

Configuration software

Firmware version of the module

STEP 7 (TIA Portal) as of V13,
SP1 and HSP 0166

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Module internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device Scalable measuring range

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher
V1.1.0 or higher

X X X X (PROFINET IO only) X (PROFINET IO only) V14 or higher and HSP 0186 (only PROFINET IO)

--- / X X X X
(PROFINET IO only) X
(PROFINET IO only) X
(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

12

Manual, 09/2016, A5E36647959-AB

Product overview 2.2 Functions

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

2.2

Functions

2.2.1

Scalable measuring range

Introduction

The scalable measuring range is available for the temperature measuring ranges of thermal resistors (RTD) standard and thermocouples (TC). The measuring ranges for voltage, resistor and thermal resistor climatic are not supported.

Function

The scalable measuring range is a limited section of a measuring range supported by the module.
It allows you to increase the resolution for a configurable section.
 The "Measuring range resolution" parameter determines the resolution to 2 or 3 decimal places.
 The "Measuring range center" parameter determines the temperature over which the scalable measuring range is symmetrically spanned.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

13

Product overview 2.2 Functions

Typical areas of applications
Temperature measurements and temperature controls with high resolution save energy and are required for:  Manufacturing of special glass  Manufacturing of semiconductors  Heat processes / heat treatment in metals for the aerospace industry.

Value ranges

Table 2- 2 Value ranges for the scalable measuring range

Scalable measuring range
Overflow High limit Measuring range center Low limit Underflow

Measuring range resolution

2 decimal places > 325.11

3 decimal places > 32.511

325.11

32.511

0

0

-325.12

-32.512

<-325.12

<-32.512

Values hex.
7FFFH 7EFFH 0H 8100H 8000H

To obtain the absolute temperature, the measuring range center in the user program (as offset) must be calculated with the value of the user data of the scalable measuring range.

The measuring range center is always output in the user data as the value "0". The user data is correspondingly mapped to the bipolar input ranges in S7 format. Underflow/overflow is also formed in accordance with the limits of S7.

Rules

 The measuring range center must be within the nominal range of the underlying measuring range. It is specified in integers.
 The scalable measuring range is spanned symmetrically over the measuring range center. Depending on the resolution, different value ranges result.
 The scalable measuring range is limited by underflow and overflow of the underlying measuring range:
If the low limit is violated, the scaled measuring range is cut off at the underflow.
If the high limit is violated, the scaled measuring range is cut off at the overflow.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

14

Manual, 09/2016, A5E36647959-AB

Examples

Product overview 2.2 Functions
The following example shows the scaled measuring range with 2 decimal places for a thermal resistor Pt 100 standard. At the scaled measuring range with 2 decimal places, the measured value lies between 325.12 K and +325.11 K around the measuring range center. In the figure, the measuring range center is drawn at 300 °C.

Figure 2-2 Scalable measuring range with 2 decimal places

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

15

Product overview 2.2 Functions
The following example shows the scaled measuring range with 3 decimal places for a thermal resistor Pt 100 standard. At the scaled measuring range with 3 decimal places, the measured value lies between 32.512 K and +32.511 K around the measuring range center. In the figure, the measuring range center is drawn at 300 °C.
Figure 2-3 Scalable measuring range with 3 decimal places

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

16

Manual, 09/2016, A5E36647959-AB

Product overview 2.2 Functions
The following example shows the scaled measuring range with 2 decimal places for a thermal resistor Pt 100 standard. At the scaled measuring range with 2 decimal places, the measured value lies between 325.12 K and +325.11 K around the measuring range center. In the figure, the measuring range center is drawn at 850 °C. The measuring range is cut off at 150.00 K, because the limit to the overflow has been exceeded at 1000 °C (clipping).
Figure 2-4 Scalable measuring range with 2 decimal places that is cut off at the overflow (clipping).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

17

Product overview 2.2 Functions

2.2.2

Configuration

Requirements

 Firmware version V1.1.0 or higher of the module.  Selection of a valid temperature measuring range.

Configuration

The function is activated using the "Scalable measuring range" parameter. The following figure shows an example for the configuration:

Reference

Figure 2-5 Configuration for the scalable measuring range
You can find additional information on configuration in the STEP 7 online help. In the user program, you can evaluate the status and the limits of the scalable measuring range with data record 235, see Appendix (Page 68).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

18

Manual, 09/2016, A5E36647959-AB

Wiring

3

This section contains the block diagram of the module and outlines various connection options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
You can find additional information on compensating the reference junction temperature in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094), the structure of a data record in the section Structure of the data record for dynamic reference temperature (Page 66).
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers included with the front connector!

Abbreviations used
Meaning of the abbreviations used in the following figures:

Un+/UnMn+/MnIc n+/Ic nL+ M

Voltage input channel n (voltage only) Measuring input channel n Current output for RTD, channel n Supply voltage connection Ground connection

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). You can use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

19

Wiring
Block diagram and pin assignment for voltage measurement
The example in the following figure shows the pin assignment for voltage measurement.

 Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

20

Manual, 09/2016, A5E36647959-AB

Wiring
Connection: 2, 3 and 4-wire connection of resistance-type transmitters or resistance thermometers (RTD)
The example in the following figure shows the pin assignment for 2, 3 and 4-wire connections of resistance-type transmitters or resistance thermometers.

 4-wire connection
 3-wire connection  2-wire connection  Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx
RUN ERROR PWR

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and terminal assignment for 2, 3, and 4-wire connection

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

21

Wiring
Connection: Non-grounded thermocouples for external/internal compensation and connection of a resistance thermometer (RTD) to channel 8 (CH8) or the reference channel
The following figure shows an example of the pin assignment of non-grounded thermocouples for external/internal compensation and the connection of a resistance thermometer (RTD) at the reference channel.

 Wiring of a thermocouple (non-grounded) for internal compensa- CHx

tion

 Wiring of a thermocouple (non-grounded) for external compensa- RUN

tion

 Analog-to-Digital Converter (ADC)

ERROR

 Electrical isolation

PWR

 Backplane bus interface

 Supply voltage via power supply element

 Backplane bus interface potential bonding cable (optional)

Channel or 9 x channel status (green/red) Status display LED (green)
Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and pin assignment for non-grounded thermocouples and resistance thermometers

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

22

Manual, 09/2016, A5E36647959-AB

Wiring
Connection: Grounded thermocouples for internal compensation
The following figure shows an example of the pin assignment for grounded thermocouples for internal compensation.

 Wiring of a thermocouple (grounded) for internal compensa-
tion
 Analog-to-Digital Converter (ADC)  Electrical isolation  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx
RUN ERROR PWR

Figure 3-5 Block diagram and pin assignment for grounded thermocouples

Channel or 9 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

23

Parameters/address space

4

4.1

Measuring types and ranges

Introduction

The module has a default measurement type resistance thermometer RTD (4-wire connection) and the measuring range Pt100 Standard. You need to reassign the module parameters with STEP 7 if you want to use a different measurement type or range.
You use temperature coefficients to determine the measuring ranges for resistance thermometers / thermocouples according to the GOST standard. You can find the adjustable temperature coefficients in the Parameter assignment and structure of the parameter data records (Page 56) section in the table Coding for temperature coefficient.
You can find the analog values for the usable resistance thermometer / thermocouples in the sections Analog value representation for resistance-type transmitters / resistance thermometers (Page 74) and Representation of analog values for thermocouples (Page 80).
The following table shows the measuring types and the respective measuring range.

Table 4- 1 Measuring types and ranges

Measurement type Voltage
Resistor (2-wire connection)
Resistor (3-wire connection) (4-wire connection)

Measuring range ±25 mV ±50 mV ±80 mV ±250 mV ±500 mV ±1 V 150  300  600  6000  PTC 150  300  600  6000 

Representation of analog values
See Appendix Representation of analog values in voltage measuring ranges (Page 73).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

24

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.1 Measuring types and ranges

Measurement type Thermal resistor RTD (2-wire connection) (3-wire connection) (4-wire connection)
Thermocouple TC
Deactivated

Measuring range Pt10 Standard/Climatic Pt50 Standard/Climatic Pt100 Standard/Climatic Pt200 Standard/Climatic Pt500 Standard/Climatic Pt1000 Standard/Climatic Ni10 Standard/Climatic Ni100 standard/climate Ni120 Standard/Climatic Ni200 Standard/Climatic Ni500 Standard/Climatic Ni1000 standard/climate LG-Ni1000 standard/climate Cu10 Standard/Climatic Cu50 Standard/Climatic Cu100 Standard/Climatic Type B Type C Type E Type J Type K Type N Type R Type S Type T Type TXK -

Representation of analog values
See Appendix Representation of analog values for thermocouples (Page 80).

The tables of the input ranges, overflow, undershoot range, etc. are available in appendix Representation of analog values (Page 71).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

25

Parameters/address space 4.1 Measuring types and ranges
Using PTC resistors
PTC resistors are suitable for temperature monitoring of electrical devices, such as motors, drives, and transformers. Use Type A PTC resistors (PTC thermistor) in accordance with DIN/VDE 0660, part 302. In doing so, follow these steps: 1. Select "Resistor 2-wire terminal" and "PTC" in STEP 7. 2. Connect the PTC using 2-wire connection technology. If you enable the "Underflow" diagnostics in STEP 7, it will be signaled for resistance values <18 . In this case, this diagnostic signifies "Short-circuit in the wiring". The following figure shows the address space assignment for the AI 8xU/R/RTD/TC HF module with PTC resistors.
Figure 4-1 Address space for the AI 8xU/R/RTD/TC HF module with PTC resistors The diagram below shows the temperature profile and the corresponding switching points.

Figure 4-2 Temperature profile and the corresponding switching points

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

26

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.2 Parameters
Measured value acquisition with PTC resistors
If faults occur (for example supply voltage L+ missing) that make it impossible to acquire measured values with PTC resistors, the corresponding channels (IB x/IB x+1) report overflow (7FFFH). If the value status (QI) is enabled, the value 0 = fault is output in the corresponding bit.

4.2

Parameters

Parameters of AI 8xU/R/RTD/TC HF
The AI 8xU/R/RTD/TC HF is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of a GSD file and the configuration software of any provider. The module does not check the validity of the configured properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 56).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

27

Parameters/address space 4.2 Parameters

The following parameter settings for the channels are possible:

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Diagnostics · Missing supply voltage L+ · Overflow · Underflow · Reference channel error · Wire break Measuring · Measurement type

Yes/No Yes/No Yes/No Yes/No Yes/No
See section Measuring types and ranges (Page 24)

· Measuring range

· Operating mode · Temperature coefficient
· Temperature unit

· Standard · Fast
Pt: 0.003851 Pt: 0.003902 Pt: 0.003910 GOST Pt: 0.003916 Pt: 0.003920 Ni: 0.006170 GOST Ni: 0.006180 Ni: 0.006720 Cu: 0.00426 GOST Cu: 0.00427 Cu: 0.00428 GOST LG-Ni: 0.005000
· Kelvin (K) · Fahrenheit (°F) · Celsius (°C)

Default setting

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

GSD file PROFIBUS DP

No

Yes

Channel 1)

Module 2)

No

Yes

Channel

Module 2)

No

Yes

Channel

Module 2)

No

Yes

Channel

Module 2)

No

Yes

Channel

Module 2)

Thermal

Yes

resistor RTD

(4-wire con-

nection

Pt100 stand- Yes ard

Standard

Yes

Channel

Channel

Channel Channel

Channel --- 4)

0.003851

Yes

Channel

Channel

°C

Yes

Channel

Module

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

28

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.2 Parameters

Parameters
· Interference frequency suppression
· Smoothing · Reference junction for TC

Range of values

Default setting

400 Hz

50 Hz

60 Hz

50 Hz

10 Hz

None/low/medium/hig None h

· Fixed reference temperature

Internal reference junction

· Dynamic reference temperature

· Internal reference junction

· Reference channel of the module 3)

Parameter assignment in RUN
Yes
Yes Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

Module

Channel Channel

Channel
Module 4) · Dynamic ref-
erence temperature · Internal reference junction · Reference channel of the module

· Fixed reference tempera- Temperature ture

25 °C

Yes

· Scalable measuring range · Disable

Disable

Yes

· Enable

· Measuring range resolu- · 2 decimal places 2 decimal

Yes

tion

· 3 decimal places places

· Measuring range center Value within the nomi- 0

Yes

nal range of the

measuring range

Channel Channel Channel Channel

--- 4) Channel 4) Channel 4) Channel 4)

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

29

Parameters/address space 4.2 Parameters

Parameters

Range of values

Hardware interrupts · Hardware interrupt low
limit 1
· Hardware interrupt high limit 1
· Hardware interrupt low limit 2
· Hardware interrupt high limit 2

Yes/No Yes/No Yes/No Yes/No

Default setting

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

GSD file PROFIBUS DP

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.
2) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 8.
3) The setting is only possible for channels 0 to 7. If you use the "Reference channel of the module" setting for at least one channel, you need to operate channel 8 with the resistance thermometer RTD measurement type.
4) You can configure the "Fixed reference temperature" setting and the limits for hardware interrupts in the user program with data records 0 to 8.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

30

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics when the measured value falls below the underrange or for voltage measurement ranges of ± 25 mV to ± 1.0 V if the inputs are not connected.

Reference channel error
 Enable diagnostics for an error at the temperature compensation channel, e.g. wire break.
 Dynamic reference temperature compensation type is configured and no reference temperature has been transferred to the module yet.

Wire break

Enable for diagnostics to check the cable resistances.

Temperature coefficient
The temperature coefficient depends on the chemical composition of the material. In Europe, only one value is used per sensor type (default value).
The temperature coefficient ( value) indicates by how much the resistance of a specific material changes relatively if the temperature increases by 1 °C.
The further values facilitate a sensor-specific setting of the temperature coefficient and enhance accuracy.

Interference frequency suppression
Suppresses the interference affecting analog input modules that is caused by the frequency of the AC voltage network used.
The frequency of the AC voltage network can negatively affect the measured value, in particular when measuring in low voltage ranges and with thermocouples. With this parameter, the user specifies the line frequency that is predominant in the plant.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

31

Parameters/address space 4.3 Declaration of parameters

Smoothing

The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels.
Smoothing time = number of module cycles (k) x cycle time of the module.
The following figure shows after how many module cycles the smoothed analog value is almost 100%, depending on the set smoothing. Is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-3 Smoothing with AI 8xU/R/RTD/TC HF

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

32

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.3 Declaration of parameters

Reference junction for TC
The following settings can be configured for the reference junction parameter:

Table 4- 3 Possible parameter assignments for the reference junction parameter TC

Setting Fixed reference temperature Dynamic reference temperature
Internal reference junction Reference channel of the module

Description
The reference junction temperature is configured and stored in the module as a fixed value.
The reference junction temperature is transferred in the user program from the CPU to the module by data records 192 to 200 using the WRREC (SFB 53) instruction.
The reference junction temperature is determined using an integrated sensor of the module.
The reference junction temperature is determined using an external resistance thermometer (RTD) at the reference channel (CH8) of the module.

Hardware interrupt 1 or 2
Enable a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.

Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.

High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Operating mode Fast / Standard
You can use this parameter to determine the operating mode for the module.
 Fast mode; easy integration time with less frequency suppression (minimal integration time 2.5 ms)
 Standard mode; triple integration time with higher frequency suppression (minimal integration time 7.5 ms)

Scalable measuring range
With this parameter, you disable or enable the scalable measuring range function.

Measuring range resolution
With this parameter, you determine the resolution to 2 or 3 decimal places.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

33

Parameters/address space 4.4 Address space
Measuring range center
With this parameter, you determine the temperature over which the scaled measuring range is symmetrically spanned. The value must be within the nominal range of the underlying measuring range. It is specified in integers. Maximum = overflow (scaled measuring range) Minimum = underflow (scaled measuring range)

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 8xU/R/RTD/TC HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 4 Configuration options

Configuration
1 x 9-channel without value status 1 x 9-channel with value status 9 x 1-channel without value status 9 x 1-channel with value status 1 x 9-channel with value status for module-internal shared input with up to 4 submodules

Short designation/ module name in the GSD file
AI 8xU/R/RTD/TC HF AI 8xU/R/RTD/TC HF QI AI 8xU/R/RTD/TC HF S AI 8xU/R/RTD/TC HF S QI AI 8xU/R/RTD/TC HF MSI

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal) as of V13, SP1 and HSP 0166
X

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5
SP3 or higher
X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

34

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.4 Address space
Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 8xU/R/RTD/TC HF QI  AI 8xU/R/RTD/TC HF S QI  AI 8xU/R/RTD/TC HF MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).
Address space of the AI 8xU/R/RTD/TC HF and AI 8xU/R/RTD/TC HF QI
The following figure shows the address space allocation for the configuration as a 9-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.

Figure 4-4 Address space for configuration as 1 x 9-channel AI 8xU/R/RTD/TC HF with value status

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

35

Parameters/address space 4.4 Address space
Address space for configuration as 9 x 1-channel AI 8xU/R/RTD/TC HF S and AI 8xU/R/RTD/TC HF S QI
For the configuration as a 9 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device.
The number of usable submodules is dependent on the interface module used. Observe the information in the manual for the particular interface module.
In contrast to the 1 x 9-channel module configuration, each of the nine submodules has a freely assignable start address.

Figure 4-5 Address space for configuration as 9 x 1-channel AI 8xU/R/RTD/TC HF S QI with value status

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

36

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 9-channel AI 8xU/R/RTD/TC HF MSI
The channels 0 to 8 of the module are copied in up to 4 submodules for the configuration as 1 x 9-channel module (module-internal shared input, MSI). Channels 0 to 8 are then available with identical input values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of usable submodules is dependent on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI)
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

37

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 1 and 2.

Figure 4-6 Address space for configuration as 1 x 9-channel AI 8xU/R/RTD/TC HF MSI with value status

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

38

Manual, 09/2016, A5E36647959-AB

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 3 and 4.

Figure 4-7 Address space for configuration as 1 x 9-channel AI 8xU/R/RTD/TC HF MSI with value status

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

39

Parameters/address space 4.4 Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

40

Manual, 09/2016, A5E36647959-AB

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AI 8xU/R/RTD/TC HF.

5

Figure 5-1 LED displays of the module AI 8xU/R/RTD/TC HF

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

41

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 45).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LEDs RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are insert-
ed. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Remedy Check supply voltage L+.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled
Channel configured and OK.
Channel is configured (channel error pending). Diagnostic alarm: e.g. wire break

Remedy ---
---
Check the wiring. Disable diagnostics.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

42

Manual, 09/2016, A5E36647959-AB

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 8xU/R/RTD/TC HF supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the RALRM instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Overflow  Underflow  Reference channel error  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Violation of high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment of the local data double word 8 by the start information of the hardware interrupt organization block.

Figure 5-2 OB start information

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

43

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

It follows the error event that triggered the hardware interrupt.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

44

Manual, 09/2016, A5E36647959-AB

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 5 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

Reference channel

15H

error

Meaning Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Remedy Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics

· Connect the channel

Measuring range violated Measuring range violated
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment.

Check the measuring range Check the measuring range Correct the parameter assignment

Supply voltage L+ of the module is missing
Invalid reference temperature for the used TC channel with compensation

Connect supply voltage L+ to module
Check compensation with reference channel parameterization or thermoresistor. Check communication to the module/station for the compensation with data record.

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the previous "Wire break" diagnostics and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors are subjected to the diagnostics, select all check boxes under "Diagnostics".

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

45

Technical specifications

6

Technical specifications of the AI 8xU/R/RTD/TC HF

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7531-7PF00-0AB0
AI 8xU/R/RTD/TC HF FS01 V1.1.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Measuring range scalable

Yes

Measured values scalable

No

Measuring range adjustment

No

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V14 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSI

Yes

CiR Configuration in RUN

Configuration in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes
55 mA; with 24 V DC supply

Power

Power consumption from the backplane bus Power loss Power loss, typ.

0.85 W 1.9 W

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

46

Manual, 09/2016, A5E36647959-AB

Technical specifications

Analog inputs Number of analog inputs
· For voltage measurement
· For resistance/resistance thermometer measurement
· for thermocouple measurement
Permissible input voltage for voltage input (destruction limit), max. Technical unit for temperature measurement, can be set Input ranges (rated values), voltages -1 to +1 V Input resistance (-1 to +1 V) -25 mV to +25 mV Input resistance (-25 mV to +25 mV) -250 to +250 mV Input resistance (-250 to +250 mV) -50 mV to +50 mV Input resistance (-50 mV to +50 mV) -500 mV to +500 mV Input resistance (-500 mV to +500 mV) -80 mV to +80 mV Input resistance (-80 mV to +80 mV) Input ranges (rated values), thermocouples Type B Input resistance (type B) Type C Input resistance (Type C) Type E Input resistance (type E) Type J Input resistance (type J) Type K Input resistance (type K) Type N Input resistance (type N) Type R Input resistance (type R) Type S Input resistance (type S) Type T Input resistance (type T) Type TXK/TXK(L) according to GOST

6ES7531-7PF00-0AB0
8; plus an additional RTD (reference) channel 8; plus an additional RTD (reference) channel 8; plus an additional RTD (reference) channel
8; plus an additional RTD (reference) channel 20 V
Yes; °C / °F / K
Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M
Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

47

Technical specifications

Input resistance (Type TXK/TXK(L) according to GOST) Input ranges (rated values), resistance thermometer Cu 10 Input resistance (Cu 10) Cu 10 according to GOST Input resistance (Cu 10 according to GOST) Cu 50 Input resistance (Cu 50) Cu 50 according to GOST Input resistance (Cu 50 according to GOST) Cu 100 Input resistance (Cu 100) Cu 100 according to GOST Input resistance (Cu 100 according to GOST) Ni 10 Input resistance (Ni 10) Ni 10 to GOST Input resistance (Ni 10 according to GOST) Ni 100 Input resistance (Ni 100) Ni 100 according to GOST Input resistance (Ni 100 according to GOST) Ni 1000 Input resistance (Ni 1000) Ni 1000 to GOST Input resistance (Ni 1000 according to GOST) LG-Ni 1000 Input resistance (LG-Ni 1000) Ni 120 Input resistance (Ni 120) Ni 120 to GOST Input resistance (Ni 120 according to GOST) Ni 200 Input resistance (Ni 200) Ni 200 to GOST Input resistance (Ni 200 according to GOST) Ni 500 Input resistance (Ni 500) Ni 500 to GOST Input resistance (Ni 500 according to GOST) Pt 10 Input resistance (Pt 10)

10 M

6ES7531-7PF00-0AB0

Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

48

Manual, 09/2016, A5E36647959-AB

Technical specifications

Pt 10 according to GOST Input resistance (Pt 10 according to GOST) Pt 50 Input resistance (Pt 50) Pt 50 according to GOST Input resistance (Pt 50 according to GOST) Pt 100 Input resistance (Pt 100) Pt 100 according to GOST Input resistance (Pt 100 according to GOST) Pt 1000 Input resistance (Pt 1000) Pt 1000 according to GOST Input resistance (Pt 1000 according to GOST) Pt 200 Input resistance (Pt 200) Pt 200 according to GOST Input resistance (Pt 200 according to GOST) Pt 500 Input resistance (Pt 500) Pt 500 according to GOST Input resistance (Pt 500 according to GOST) Input ranges (rated values), resistors 0 to 150 ohm Input resistance (0 to 150 ohm) 0 to 300 ohm Input resistance (0 to 300 ohm) 0 to 600 ohm Input resistance (0 to 600 ohm) 0 to 6000 ohm Input resistance (0 to 6000 ohm) PTC Input resistance (PTC)

6ES7531-7PF00-0AB0 Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M Yes; Standard/Climatic 10 M
Yes 10 M Yes 10 M Yes 10 M Yes 10 M Yes 10 M

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

49

Technical specifications

Thermocouple (TC) Temperature compensation · Configurable

6ES7531-7PF00-0AB0 Yes

· Internal temperature compensation

Yes

· External temperature compensation via RTD Yes

· Compensation for 0 °C reference point temperature

Yes, fixed value can be set

· Reference channel of the module

Yes; 9th channel that can be used regardless of the parameterization of the other channels than as the genuine 9th RTD channel or for compensation for TC measurement

Cable length

shielded, max.

800 m; with U; 200 m with R/RTD/TC

Analog value generation for the inputs

Integration and conversion time/resolution per channel

Resolution with overrange (bit including sign), max.

16 bit

Configurable integration time

Yes

Integration time (ms)

Fast mode: 2.5 / 16.67 / 20 / 100 ms; standard mode: 7.5 / 50 / 60 / 300 ms

Basic conversion time, including integration time Fast mode: 4 / 18 / 22 / 102 ms; standard mode:

(ms)

9 / 52 / 62 / 302 ms

· Additional conversion time for wire break moni- Thermocouples. 150 Ohm, 300 Ohm, 600 Ohm,

toring

Cu10, Cu50, Cu100, Ni10, Ni50, Ni100, Ni120,

Ni200, Pt10, Pt50, Pt100, Pt200: 4 ms; 6 kilohm,

Ni500, Ni1000, LG-Ni1000, Pt500, Pt1000: 13 ms

Interference voltage suppression for interference 400 / 60 / 50 / 10 Hz frequency f1 in Hz

Basic execution time of the module (all channels Corresponds to the channel with the highest

enabled)

basic conversion time

Smoothing of the measured values

Configurable

Yes

Level: None

Yes

Level: Weak

Yes

Level: Medium

Yes

Level: Strong

Yes

Encoders

Connection of the signal encoders

For voltage measurement

Yes

for resistance measurement with two-wire connec- Yes tion

for resistance measurement with three-wire con- Yes; all measuring ranges except PTC; internal

nection

compensation of line resistance

For resistance measurement with four-wire connection

Yes; all measuring ranges except PTC

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

50

Manual, 09/2016, A5E36647959-AB

Technical specifications

6ES7531-7PF00-0AB0

Errors/accuracies

Linearity error (in relation to input range), (+/-)

0.02%

Temperature error (in relation to input range), (+/-) 0.005%/K

Crosstalk between the inputs, max.

-80 dB

Repeat accuracy in settled state at 25 °C (in rela- 0.02% tion to input range), (+/-)

Temperature errors of internal compensation

+/-1.5 °C

Operational limit in overall temperature range

Voltage in relation to input range, (+/-)

0.1%

Resistance in relation to input range, (+/-)

0.1%

Resistance thermometer in relation to input range, Cuxxx Standard: ±0.5 K, Cuxxx Climatic: ±0.5 K,

(+/-)

Ptxxx Standard: ±1 K, Ptxxx Climatic: ±0.5 K,

Nixxx Standard: ±0.5 K, Nixxx Climatic: ±0.3 K

Thermocouple, relative to input range, (+/-)

Type B: > 600 °C ±2 K, Type E: > -200 °C ±1 K, Type J: > -210 °C ±1 K, Type K: > -200 °C ±2 K, Type N: > -200 °C ±2 K, Type R: > 0 °C ±2 K, Type S: > 0 °C ±2 K, Type T: > -200 °C ±1 K, Type C: ±4 K, Type TXK/TXK(L): ±1 K

Basic error limit (operational limit at 25 °C)

Voltage in relation to input range, (+/-)

0.05%

Resistance in relation to input range, (+/-)

0.05%

Resistance thermometer in relation to input range, Cuxxx Standard: ±0.3 K, Cuxxx Climatic: ±0.2 K,

(+/-)

Ptxxx Standard: ±0.5 K, Ptxxx Climatic: ±0.2 K,

Nixxx Standard: ±0.3 K, Nixxx Climatic: ±0.15 K

Thermocouple, relative to input range, (+/-)

Type B: > 600 °C ±1 K, Type E: > -200 °C ±0.5 K, Type J: > -210 °C ±0.5 K, Type K: > -200 °C ±1 K, Type N: > -200 °C ±1 K, Type R: > 0 °C ±1 K, Type S: > 0 °C ±1 K, Type T: > -200 °C ±0.5 K, Type C: ±2 K, Type TXK/TXK(L): ±0.5 K

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency

Series-mode interference (peak of the interference 80 dB; in Standard mode, 40 dB in Fast mode < rated value of the input range), min.

Common mode voltage, max.

60 V DC / 30 V AC

Common mode interference, min.

80 dB

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Interrupts

Diagnostic interrupt

Yes

Limit interrupt

Yes; two high limits and two low limits each

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for TC. R. RTD

Overflow/underflow

Yes

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

51

Technical specifications

Diagnostics indicator LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and power supply of the electronics Permitted potential difference Between different circuits
Isolation Isolation tested with
Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

6ES7531-7PF00-0AB0
Yes; green LED Yes; red LED Yes; green LED Yes; green LED Yes; red LED Yes; red LED
Yes 1 Yes Yes
60 V DC / 30 V AC; Isolation measured for 120 V AC basic isolation: Between the channels and supply voltage L+, between the channels and the backplane bus, between the channels
2000 V DC between the channels and the supply voltage L+, 2000 V DC between the channels and the backplane bus, 2000 V DC between the channels, 707 V DC (type test) between the supply voltage L+ and the backplane bus
0 °C 60 °C 0 °C 40 °C
Yes
35 mm 147 mm 129 mm
290 g
Cable compensation is performed alternately to measurement with the R/RTD three-wire measurement. Two module cycles are thus required for a measured value.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

52

Manual, 09/2016, A5E36647959-AB

Technical specifications
Additional information
You can learn how to calculate the cycle time of the module with an example provided on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109037127).

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

53

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installations in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the AI 8xU/R/RTD/TC HF module

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

54

Manual, 09/2016, A5E36647959-AB

Dimensional drawing
Figure A-2 Dimension drawing of the AI 8xU/R/RTD/TC HF module, side view with open front cover

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

55

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Wire break
Reference channel error Resistance measurement type (4-wire connection. 3-wire connection) Hardware interrupt limits Fixed reference temperature
Temperature unit Kelvin (K)

Dependent parameters Only for measurement type Resistance, Resistance Thermometer RTD, Thermocouple TC. Only for measuring type thermocouple TC. Only for measuring range 150 , 300 , 600  and 6000 .
Only if hardware interrupts are enabled. Only if the value Fixed reference temperature is configured at parameter Reference junction for TC. Only for measuring type thermistor RTD and for thermocouple TC.

Parameter assignment in the user program
The module parameters can be assigned in RUN (for example, measuring ranges of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters via data records 0 to 8. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

56

Manual, 09/2016, A5E36647959-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
The parameters in data records 0 to 9 and in data record 9 are available for 1x 9-channel configuration and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  ...  Data record 6 for channel 6  Data record 7 for channel 7  Data record 8 for channel 8 (reference channel) For configuration 9 x 1-channel, the module has 9 submodules with one channel each and one submodule for the reference channel. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  ...  Data record 0 for channel 6 (submodule 7)  Data record 0 for channel 7 (submodule 8)  Data record 0 for channel 8 (submodule 9) or reference channel Address the respective submodule for data record transfer.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

57

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 8. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Byte 0 to 5

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

58

Manual, 09/2016, A5E36647959-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-2 Structure of data record 0: Byte 6 to 9

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

59

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-3 Structure of data record 0: Byte 10 to 27:

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

60

Manual, 09/2016, A5E36647959-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measuring types
The following table lists all measuring types of the analog input module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 2 Code for the measuring type

Measurement type Deactivated Voltage Resistor, 4-wire connection *) Resistor, 3-wire connection *) Resistor, 2-wire connection Thermal resistor linear, 4-wire connection Thermal resistor linear, 3-wire connection Thermal resistor linear, 2-wire connection Thermocouple TC

Code 0000 0000 0000 0001 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010

*) Only for the following measuring ranges: 150 , 300 , 600 , 6 k

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes accordingly at byte 3 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 3 Code for the measuring range
Measuring range Voltage ±25 mV ±50 mV ±80 mV ±250 mV ±500 mV ±1 V Resistor 150  300  600  6000  PTC

Code
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101
0000 0001 0000 0010 0000 0011 0000 0101 0000 1111

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

61

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Thermal resistor Pt100 climate Ni100 climate Pt100 standard Ni100 standard Pt500 standard Pt1000 standard Ni1000 standard Pt200 climate Pt500 climate Pt1000 climate Ni1000 climate Pt200 standard Ni120 Standard Ni120 Climatic Cu10 Climatic Cu10 Standard Ni200 Standard Ni200 Climatic Ni500 Standard Ni500 Climatic Pt10 Standard Pt10 Climatic Pt50 Standard Pt50 Climatic Cu50 Standard Cu50 Climatic Cu100 Standard Cu100 Climatic LG-Ni1000 standard LG-Ni1000 climate Ni10 Standard Ni10 Climatic Thermocouple B N E R S J T K C TXK

0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010 0000 1011 0000 1100 0000 1101 0000 1110 0000 1111 0001 0000 0001 0001 0001 0010 0001 0011 0001 0100 0001 0101 0001 0110 0001 0111 0001 1000 0001 1001 0001 1010 0001 1011 0001 1100 0001 1101 0001 1110 0001 1111
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000 0000 1010 0000 1011

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

62

Manual, 09/2016, A5E36647959-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for temperature coefficients
The following table lists all temperature coefficients along with their codes for temperature measurements with the resistance thermometers. You need to enter these codes in byte 4 of the data records 0, 2, 4, 6 and 8 (see Fig. Structure of data record 0: bytes 0 to 6).

Table B- 4 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 0.003910 GOST Ni xxx 0.006180 0.006720 0.006170 GOST LG-Ni 0.005000 Cu xxx 0.00426 GOST 0.00427 0.00428 GOST

Code
0000 0000 0000 0001 0000 0010 0000 0011 0000 0101
0000 1000 0000 1001 0000 0111
0000 1010
0000 1011 0000 1100 0000 1101

Valid values for fixed reference temperatures
The values that you can set for fixed reference temperatures must be within the nominal range of the thermocouple used and within the permitted value range. See table below. The resolution is a tenth of a degree.

Table B- 5 Valid values for fixed reference temperatures

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default)

Decimal -1450 to 1550 -2290 to 3110 1282 to 3276

Hexadecimal FA56H to 60EH F70EH to CCCH 502H to 10BAH

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

63

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not exceed the over/underrange of respective rated measuring range.
The following tables list the valid hardware interrupt limits. The limit values depend on the selected measuring type and range.

Table B- 6 Limits for voltage and resistance

Voltage ±25 mV, ±50 mV, ±80 mV, ±250 mV, ±500 mV, ±1 V
32510
-32511

Resistor 150 , 300 , 600 , 6 k
32510 1

High limit Low limit

Table B- 7 Limits for thermocouple types B, C, E, and J

Thermocouple

Type B

Type C

°C °F

K

°C °F

K

2069 3276 2343 2499 3276 2773

9

5

1

9

5

1

1 321 2733 -1199 -1839 1533

Type E

°C °F

K

1199 2191 1473

9

9

1

-2699 -4539 33

Type J

°C

°F

K

1449 2641 1723

9

9

1

-2099 -3459 633

High limit
Low limit

Table B- 8 Limits for thermocouples type K, N, R, and S

Thermocouple

Type K

°C

°F

16219 29515

-2699 -4539

K 18951
33

°C 15499 -2699

Type N

°F

K

28219 18231

-4539 33

Types R, S

°C

°F

K

20189 32765 22921

-1699 -2739 1033

High limit Low limit

Table B- 9 Limits for thermocouple type T and TXK

Thermocouple

Type T

°C

°F

5399 10039

-2699 -4539

K 8131
33

°C 10499 -1999

Type TXK

°F

K

19219 13231

-3279 733

High limit Low limit

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

64

Manual, 09/2016, A5E36647959-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Table B- 10 Limits for resistance thermometer Pt xxx Standard and Pt xxx Climate

Thermal resistor

Pt xxx standard

(0.003851, 0.003902, 0.003910, 0.003916, 0.003920)

°C

°F

K

9999

18319

12731

-2429

-4053

303

Pt xxx climate

(0.003851, 0.003902, 0.003916, 0.003910, 0.003920)

°C

°F

K

15499

31099

---

-14499

-22899

---

High limit Low limit

Table B- 11 Limits for resistance thermometer Ni xxx Standard and Ni xxx Climate

Thermal resistor

Ni xxx Standard

(0.006180, 0.006720)

°C

°F

K

2949

5629

5681

-1049

-1569

1683

Ni xxx Climate

(0.006180, 0.006720)

°C

°F

K

15499

31099

---

-10499

-15699

---

High limit Low limit

Table B- 12 Limits for resistance thermometer Ni 0.006170 Standard and Ni 0.006170 Air

Thermal resistor

Ni 0.006170 Standard

°C

°F

K

2123

4142

4855

-1049

-1569

1683

Ni 0.006170 Climatic

°C

°F

K

15499

31099

---

-10499

-15699

---

High limit Low limit

Table B- 13 Limits for resistance thermometer Cu xxx Standard

Thermal resistor

Cu 0.00426 Standard

°C

°F

K

2399 4639 5131

-599 -759 2133

Cu 0.00427 Standard

°C

°F

K

3119 5935 5851

-2399 -3999

333

Cu 0.00428 Standard

°C

°F

K

2399 4639 5131

-2199 -3639 533

High limit Low limit

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

65

Parameter data records B.2 Structure of the data record for dynamic reference temperature

Table B- 14 Limits for resistance thermometer Cu xxx Climatic

Thermal resistor

Cu xxx Climatic

(0.00426, 0.00427, 0.00428)

°C

°F

K

17999 32765 ---

-5999 -7599 ---

High limit Low limit

B.2

Structure of the data record for dynamic reference temperature
The WRREC instruction is used to transfer the reference junction temperature via data record 192 to data record 200 to the module.
The description of the WRREC instruction can be found in the online help from STEP 7.
If you have set the "Dynamic reference temperature" value for the "Reference junction" parameter, the module expects a new data record at least every 5 minutes. If the module does not receive a new data record within this time, it generates the "Reference channel error" diagnostics message.

Assignment of data record and channel
The following assignment applies if no submodules (1 x 9-channel) are configured for the module:  Data record 192 for channel 0  Data record 193 for channel 1  Data record 194 for channel 2  Data record 195 for channel 3  Data record 196 for channel 4  Data record 197 for channel 5  Data record 198 for channel 6  Data record 199 for channel 7  Data record 200 for channel 8 If nine submodules (9 x 1-channel) are configured for the module, each submodule has only one channel. The parameters of the channel are in data record 192. Background: Each submodule you address for the data record transfer has only one channel.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

66

Manual, 09/2016, A5E36647959-AB

Parameter data records B.2 Structure of the data record for dynamic reference temperature
Structure of data record 192 for dynamic reference temperature
The following figure shows you an example of the structure of data record 192 for channel 0. The structure for data records 193 to 200 is identical.

Figure B-4 Structure of data record 192

Valid values for fixed temperature compensation
You can enter the selectable values at byte 1 of the data record for the corresponding channel. The values that you can set must be within the nominal range of the thermocouple used and within the permitted value range. See table below. The resolution corresponds to one tenth of a degree with the "Standard" temperature unit and one hundredth of a degree with the "Climatic" temperature unit.

Table B- 15 Valid values for temperature compensation via data record

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default) Celsius (climatic) Fahrenheit (climatic) Kelvin (climatic)

Decimal -1450 to 1550 -2290 to 3110 1282 to 3276 -14500 to 15500 -22900 to 31100 12820 to 32760

Hexadecimal FA56H to 60EH F70EH to C26H 502H to CCCH C75CH to 3C8CH A68CH to 797CH 3214H to 7FF8H

Additional information
You can find additional information on compensation of the reference junction temperature via data record in the Analog value processing function manual (https://support.industry.siemens.com/cs/ww/en/view/67989094) on the Internet.

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

67

Parameter data records B.3 Structure of data record 235 for scalable measuring range

B.3

Structure of data record 235 for scalable measuring range

Evaluation in the user program
In the user program, you can evaluate the status and the limits of the scalable measuring range with data record 235, which may result by reaching underflow/overflow.
Structure of data record 235

Figure B-5 Structure of data record 235

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

68

Manual, 09/2016, A5E36647959-AB

Parameter data records B.3 Structure of data record 235 for scalable measuring range
Header information
The figure below shows the structure of the header information.

Figure B-6 Structure header information of data record 235

Parameters

The figure below shows the structure of the parameter. If the corresponding bit is set to "1", the parameter is activated. * x = 2 + (channel number x 8)

Figure B-7 Structure of data record 235 - channel parameter byte x to x+7

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

69

Parameter data records B.3 Structure of data record 235 for scalable measuring range

Description of the parameters from data record 235

Table B- 16 Description of the parameters from data record 235

Parameter Scalable measuring range enabled Clipping
Resolution Measuring range center
Overflow/underflow

Description 1 = Function is active for this channel.
1 = Scalable measuring range cut off at the overflow/underflow of the underlying measuring range.
2 or 3 decimal places
Temperature in whole °C / °F / K ("working point" for the scaling)
Limits of the scalable measuring range

Example

The following example shows the values for a thermal resistor Pt 100 Standard, °C:

Table B- 17 Example of a thermal resistor Pt 100 Standard

Hex. value 10H 08H 03H 02H 02EEH 61A8H
8100H

Dec. value 16 8 3 2 750 25000
-32512

Evaluation of data record 235 V1.0 8 bytes Scalable measuring range active and clipped (clipping) Resolution: 2 decimal places Measuring range center: 750 °C Overflow (Maximum): 250.00 + 750 = 1000.00 °C Scalable measuring range is clipped at the overflow. Underflow (Minimum): -325.12 + 750 = 424.88 °C

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

70

Manual, 09/2016, A5E36647959-AB

Representation of analog values

C

Introduction

This appendix shows the analog values for all measuring ranges supported by the AI 8xU/R/RTD/TC HF analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog module.

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Decimal 1

Hexadecimal 1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

71

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The tables below set out the digitized representation of the input ranges separately for bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

72

Manual, 09/2016, A5E36647959-AB

C.2

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring ranges ±25 mV and ±1 V,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±25 mV

±1 V

>29.4 mV > 1.176 V

29.4 mV

1.176 V

Range
Overflow Overshoot range

25 mV 18.75 mV 904.2 µV 0 V

1 V 0.75 V 36.17 µV 0 V

Rated range

-18.75 mV -25 mV

-0.75 V -1 V

-29.4 mV

-1.176 V

<-29.40 mV < -1.176 V

Undershoot range Underflow

Table C- 5 Voltage measuring ranges ±500 mV, ±250 mV, ±80 mV, and ±50 mV,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±500 mV

±250 mV

>587.9 mV > 294.0 mV

587.9 mV 294.0 mV

±80 mV > 94.1 mV 94.1 mV

±50 mV > 58.8 mV 58.8 mV

Range
Overflow Overshoot range

500 mV 375 mV 18.08 µV 0 mV

250 mV 187.5 mV 9.04 µV 0 mV

80 mV 60 mV 2.89 µV 0 mV

50 mV 37.5 mA 1.81 µV 0 mV

Rated range

-375 mV -500 mV

-187.5 mV -250 mV

-60 mV -80 mV

-587.9 mV -294.0 mV -94.1 mV <-587.9 mV < -294.0 mV < -94.1 mV

-37.5 mV -50 mV
-58.8 mV < -58.8 mV

Undershoot range
Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

73

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

C.3

Analog value representation for resistance-type transmitters /

resistance thermometers

C.3.1

Resistance-type transmitters 150, 300, 600, 6000 Ohm
The following tables list the decimal and hexadecimal values (codes) of the possible resistance-based sensor ranges.

Table C- 6 Resistance-based sensors of 150 , 300 , 600 , and 6000 

Values dec 32767 32511 27649 27648 20736 1 0

hex 7FFF 7EFF 6C01 6C00 5100 1 0

Resistive transmitter range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

6000  >7055.3  7055.3 
6000  4500  217 m 0 

Overflow Overshoot range
Rated range

C.3.2

Thermal resistor Pt 10, 50, 100, 200, 500, 1000 Standard/GOST

Thermal resistor Pt x0 Standard and Pt x0 GOST Standard

Table C- 7 Thermal resistor Pt x0 Standard (0.003851, 0.003916, 0.003902, 0.003920) and Pt x0 GOST Standard (0.003910)

Pt x0 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Units dec hex

32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt x0 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Units dec
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt x00 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Units dec
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

74

Manual, 09/2016, A5E36647959-AB

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

Thermal resistor Pt x0 and Pt x0 GOST Climatic

Table C- 8 Thermal resistor Pt x0 Standard (0.003851, 0.003916, 0.003902, 0.003920) and Pt x0 GOST Climatic (0.003910)

Pt x0 Climatic in °C (1 digit = 0.01 °C)
> 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Units
dec 32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex 7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt x0 Climatic in °F Units (1 digit = 0.01 °F) dec

> 311.00

32767

311.00

31100

:

:

266.01

26601

266.00

26600

:

:

-184.00

-18400

-184.01

-18401

:

:

-229.00

-22900

< -229.00

-32768

hex 7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

C.3.3

Thermal resistor Ni 10, 100, 120, 200, 500, 1000, LG-Ni 1000 Standard
The following tables list the decimal and hexadecimal values (codes) of the possible resistance thermometer ranges.

Table C- 9 Thermal resistor Ni x0, LG-Ni 1000 Standard (0.00500, 0.006180, 0.006720)

Ni x0 Standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Units

dec

hex

32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni x0 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Units

dec

hex

32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni x0 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Units dec
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

75

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

C.3.4

Thermal resistor Ni 10, 100, 120, 200, 500, 1000, LG-Ni 1000 Climatic
The following tables list the decimal and hexadecimal values (codes) of the possible resistance thermometer ranges.

Table C- 10 Thermal resistor Ni x0 and LG-Ni 1000 Climatic (0.00500. 0.006180. 0.006720) and Ni x0 GOST Climatic (0.006170)

Ni x0 Climatic in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

Units dec
32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex
7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni x0 Climatic in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -76.00 -76.01 : -157.00 < - 157.00

Units dec
32767 31100 : 26601 26600 : -7600 -7601 : -15700 -32768

hex
7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

76

Manual, 09/2016, A5E36647959-AB

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

C.3.5

Thermal resistor Ni 10, 100, 120, 200, 500, 1000 GOST Standard
The following tables list the decimal and hexadecimal values (codes) of the possible resistance thermometer ranges.

Table C- 11 Thermal resistor Ni x0 GOST Standard (0.006170)

Ni x0 GOST Standard in °C (1 digit = 0.1 °C) > 212.4 212.4 : 180.1 180.0 : -60.0 -60.1 : -105.0 < -105.0

Units dec. hex.

32767 2124 : 1801 1800 : -600 -601 : -1050 -32768

7FFF 084C : 0709 0708 : FDA8 FDA7 : FBE6 8000

Ni x0 GOST Standard in °F (1 digit = 0.1 °F) > 414.3 414.3 : 356.1 356.0 : -76.0 -76.1 : -157.0 < -157.0

Units

dec.

hex.

32767 4143 : 3561 3560 : -760 -761 : -1570 -32768

7FFF 102F : 0DE9 0DE8 : FD08 FD07 : F9DE 8000

Ni x0 GOST Standard in K (1 digit = 0.1 K) > 485.6 486.6 : 453.3 453.2 : 213.2 213.1 : 168.2 < 168.2

Units dec.
32767 4856 : 4533 4532 : 2132 2131 : 1682 32768

hex.
7FFF 12F8 : 11B5 11B4 : 854 853 : 692 8000

Range
Overflow Overrange Rated range Underrange Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

77

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

C.3.6

Thermal resistor Cu 10, 50, 100 Standard/Climatic/GOST

Thermal resistor Cu 10, 50, 100 Standard (0.00427)

Table C- 12 Thermal resistor Cu 10, 50, 100 Standard (0.00427)

Cu 10 standard in °C (1 digit = 0.1 °C) > 312.0 312.0 : 260.1 260.0 : -200.0 -200.1 : -240.0 < -240.0

Units dec.
32767 3120 : 2601 2600 : -2000 -2001 : -2400 -32768

hex.
7FFF C30 : A29 A28 : F830 F82F : F6A0 8000

Cu 10 standard in °F (1 digit = 0.1 °F) > 593.6 593.6 : 500.1 500.0 : -328.0 -328.1 : -400.0 < -400.0

Units dec.
32767 5936 : 5001 5000 : -3280 -3281 : -4000 -32768

hex.
7FFF 1730 : 12D5 1389 : F330 F32F : F060 8000

Cu 10 standard in K (1 digit = 0.1 K) > 585.2 585.2 : 533.3 533.2 : 73.2 73.1 : 33.2 < 33.2

Units dec.
32767 5852 : 5333 5332 : 732 731 : 332 32768

hex.
7FFF 16DC : 14D5 14D4 : 2DC 2DB : 14C 8000

Range
Overflow Overrange Nominal range Underrange Underflow

Thermal resistor Cu 10, 50, 100 GOST Standard (0.00426)

Table C- 13 Thermal resistor Cu 10, 50, 100 GOST Standard (0.00426)

Cu x0 Standard in °C (1 digit = 0.1 °C) > 240.0 240.0 : 200.1 200.0 : -50.0 -50.1 : -60.0 < - 60.00

Units dec.
32767 2400 : 2001 2000 : -500 -501 : -600 -32768

hex.
7FFF 0960 : 07D1 07D0 : FE0C FE0B : FDA8 8000

Cu x0 standard in °F (1 digit = 0.1 °F) > 464.0 464.0 : 392.1 392.0 : -58.0 -58.1 : -76.0 < - 76.0

Units dec.
32767 4640 : 3921 3920 : -580 -581 : -760 -32768

hex.
7FFF 1220 : 0F51 0F50 : FDBC FDBB : FD08 8000

Cu x0 standard in K (1 digit = 0.1 K) > 513.2 513.2 : 473.3 473.2 : 222.2 223.1 : 213.2 < 213.2

Units dec.
32767 5132 : 4733 4732 : 2232 2231 : 2132 32768

hex.
7FFF 140C : 127D 127C : 8B8 8B7 : 854 8000

Range
Overflow Overrange
Nominal range Underrange Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

78

Manual, 09/2016, A5E36647959-AB

Representation of analog values C.3 Analog value representation for resistance-type transmitters / resistance thermometers

Thermal resistor Cu 10, 50, 100 GOST Standard (0.00428)

Table C- 14 Thermal resistor Cu 10, 50, 100 GOST Standard (0.00428)

Cu x0 standard in °C (1 digit = 0.1 °C) > 240.0 240.0 : 200.1 200.0 : -180.0 -180.1 : -220.0 < - 220.0

Units dec.
32767 2400 : 2001 2000 : -1800 -1801 : -2200 -32768

hex.
7FFF 0960 : 07D1 07D0 : F8F8 F8F7 : F768 8000

Cu x0 standard in °F (1 digit = 0.1 °F) > 464.0 464.0 : 392.1 392.0 : -292.0 -292.1 : -364.0 < - 364.0

Units dec.
32767 4640 : 3921 3920 : -2920 -2921 : -3640 -32768

hex.
7FFF 1220 : 0F51 0F50 : F498 F497 : F1C8 8000

Cu x0 standard in K (1 digit = 0.1 K) > 513.2 513.2 : 473.3 473.2 : 93.2 93.1 : 53.2 < 53.2

Units dec.
32767 5132 : 4733 4732 : 932 931 : 532 32768

hex.
7FFF 140C : 127D 127C : 3A4 3A3 : 214 8000

Range
Overflow Overrange
Nominal range Underrange Underflow

Thermal resistor Cu x0 Climatic (0.00427) and Cu x0 Gost Climatic (0.00426 and 0.00428)

Table C- 15 Thermal resistor Cu 10, 50, 100 Climatic and Cu 10, 50, 100 GOST Climatic

Cu x0 Climatic Units

in °C

dec.

(1 digit = 0.01 °C)

> 180.00 180.00 : 150.01 150.00 : -50.00 -50.01 : -60.00 < - 60.00

32767 18000 : 15001 15000 : -5000 -5001 : -6000 -32768

hex.
7FFF 4650 : 3A99 3A98 : EC78 EC77 : E890 8000

Cu x0 Climatic in °F (1 digit = 0.01 °F) > 325.11 327.66 : 280.01 280.00 : - 58.00 -58.01 : -76.00 < - 76.00

Units dec.
32767 32766 : 28001 28000 : -5800 -5801 : -7600 -32768

hex.
7FFF 7FFE : 6D61 6D60 : I958 E957 : E250 8000

Range
Overflow Overrange Nominal range Underrange Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

79

Representation of analog values C.4 Representation of analog values for thermocouples

C.4

Representation of analog values for thermocouples

The following tables list the decimal and hexadecimal values (codes) of the supported thermocouples.

Table C- 16 Thermocouple type B

Type B in °C
> 2070.0 2070.0 : 1820.1 1820.0 : 250.0 249.9 : 0.0 < 0.0

Values
dec. 32767 20700 : 18201 18200 : 2500 2499 : 0 -32768

hex. 7FFF 50DC : 4719 4718 : 09C4 09C3 : 0 8000

Type B in °F
> 3276.6 3276.6 : 2786.6 2786.5 : 482.0 481.9 : 32.0 < 32.0

Values
dec. 32767 32766 : 27866 27865 : 4820 4819 : 320 -32768

hex. 7FFF 7FFE : 6CDA 6CD9 : 12D4 12D3 : 0140 8000

Type B in K
> 2343.2 2343.2 : 2093.3 2093.2 : 523.2 523.1 : 273.2 < 273.2

Values
dec. 32767 23432 : 20933 20932 : 5232 5231 : 2732 32768

hex. 7FFF 5B88 : 51C5 51C4 : 1470 1469 : 0AAC 8000

Range Overflow Overrange
Nominal range Underrange
Underflow

Table C- 17 Thermocouple Type C

Type C in °C
> 2500.0 2500.0 : 2300.1 2300.0 : 0.0 -0.1 : -120.0 < -120.0

Values
dec. 32767 25000 : 23001 23000 : 0 -1 : -1200 -32768

hex. 7FFF 61A8 : 59D9 59D8 : 0000 FFFF : FB50 8000

Type C in °F
> 3276.6 3276.6 : 2786.6 2786.5 : 32.0 31.9 : -184.0 < -184.0

Values
dec. 32767 32766 : 27866 27865 : 320 319 : -1840 -32768

hex. 7FFF 7FFE : 6CDA 6CD9 : 0140 013F : F8D0 8000

Type C in °K
> 2773.2 2773.2 : 2573.3 2573.2 : 273.2 273.1 : 153.2 < 153.2

Values
dec. 32767 27732 : 25733 25732 : 2732 2731 : 1532 32768

hex. 7FFF 6C54 : 6485 6484 : 0AAC 0AAB : 05FC 8000

Range Overflow Overrange
Nominal range Underrange
Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

80

Manual, 09/2016, A5E36647959-AB

Representation of analog values C.4 Representation of analog values for thermocouples

Table C- 18 Thermocouple type E

Type E in °C
> 1200.0 1200.0 : 1000.1 1000.0 : -270.0 < -270.0

Values dec. 32767 12000 : 10001 10000 : -2700 -32768

hex. 7FFF 2EE0 : 2711 2710 : F574 8000

Type E in °F
> 2192.0 2192.0 : 1832.2 1832.0 : -454.0 < -454.0

Values dec. 32767 21920 : 18322 18320 : -4540 -32768

hex. 7FFF 55A0 : 4792 4790 : EE44 8000

Type E in K
> 1473.2 1473.2 : 1273.3 1273.2 : 3.2 < 3.2

Values dec. 32767 14732 : 12733 12732 : 32 -32768

hex. 7FFF 398C : 31BD 31BC : 0020 8000

Range Overflow Overrange
Nominal range
Underflow

Table C- 19 Thermocouple type J

Type J in °C
> 1450.0 1450.0 : 1200.1 1200.0 : -210.0 < -210.0

Values dec. 32767 14500 : 12001 12000 : -2100 -32768

hex. 7FFF 38A4 : 2EE1 2EE0 : F7CC 8000

Type J in °F
> 2642.0 2642.0 : 2192.2 2192.0 : -346.0 < -346.0

Values dec. 32767 26420 : 21922 21920 : -3460 -32768

hex. 7FFF 6734 : 55A2 55A0 : F27C 8000

Type J in K
> 1723.2 1723.2 : 1473.3 1473.2 : 63.2 < 63.2

Values dec. 32767 17232 : 14733 14732 : 632 -32768

hex. 7FFF 4350 : 398D 398C : 0278 8000

Range Overflow Overrange
Nominal range
Underflow

Table C- 20 Thermocouple type K

Type K in °C
> 1622.0 1622.0 : 1372.1 1372.0 : -270.0 < -270.0

Values
dec. 32767 16220 : 13721 13720 : -2700 -32768

hex. 7FFF 3F5C : 3599 3598 : F574 8000

Type K in °F
> 2951.6 2951.6 : 2501.7 2501.6 : -454.0 < -454.0

Values
dec. 32767 29516 : 25017 25016 : -4540 -32768

hex. 7FFF 734C : 61B9 61B8 : EE44 8000

Type K in K
> 1895.2 1895.2 : 1645.3 1645.2 : 3.2 < 3.2

Values
dec. 32767 18952 : 16453 16452 : 32 -32768

hex. 7FFF 4A08 : 4045 4044 : 0020 8000

Range Overflow Overrange
Nominal range
Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

81

Representation of analog values C.4 Representation of analog values for thermocouples

Table C- 21 Thermocouple type N

Type N in °C
> 1550.0 1550.0 : 1300.1 1300.0 : -270.0 < -270.0

Values dec. 32767 15500 : 13001 13000 : -2700 -32768

hex. 7FFF 3C8C : 32C9 32C8 : F574 8000

Type N in °F
> 2822.0 2822.0 : 2372.2 2372.0 : -454.0 < -454.0

Values dec. 32767 28220 : 23722 23720 : -4540 -32768

hex. 7FFF 6E3C : 5CAA 5CA8 : EE44 8000

Type N in K
> 1823.2 1823.2 : 1573.3 1573.2 : 3.2 < 3.2

Values dec. 32767 18232 : 15733 15732 : 32 -32768

hex. 7FFF 4738 : 3D75 3D74 : 0020 8000

Range Overflow Overrange
Nominal range
Underflow

Table C- 22 Thermocouple type R and S

Type R, S Values

in °C

dec.

> 2019.0 32767

2019.0 20190

:

:

1769.1 17691

1769.0 17690

:

:

-50.0

-500

-50.1

-501

:

:

-170.0 -1700

< -170.0 -32768

hex. 7FFF 4EDE : 451B 451A : FE0C FE0B : F95C 8000

Type R, S Values

in °F

dec.

> 3276.6 32767

3276.6 32766

:

:

3216.4 32164

3216.2 32162

:

:

-58.0

-580

-58.1

-581

:

:

-274.0 -2740

< -274.0 -32768

hex. 7FFF 7FFE : 7DA4 7DA2 : FDBC FDBB : F54C 8000

Types R, S in K
> 2292.2 2292.2 : 2042.3 2042.2 : 223.2 223.1 : 103.2 < 103.2

Values
dec. 32767 22922 : 20423 20422 : 2232 2231 : 1032 < 1032

hex. 7FFF 598A : 4FC7 4FC6 : 08B8 08B7 : 0408 8000

Range Overflow Overrange
Nominal range Underrange
Underflow

Table C- 23 Thermocouple type T

Type T in °C
> 540.0 540.0 : 400.1 400.0 : -270.0 < -270.0

Values dec. 32767 5400 : 4001 4000 : -2700 -32768

hex. 7FFF 1518 : 0FA1 0FA0 : F574 8000

Type T in °F
> 1004.0 1004.0 : 752.2 752.0 : -454.0 < -454.0

Values dec. 32767 10040 : 7522 7520 : -4540 -32768

hex. 7FFF 2738 : 1D62 1D60 : EE44 8000

Type T in K
> 813.2 813.2 : 673.3 673.2 : 3.2 < 3.2

Values dec. 32767 8132 : 6733 6732 : 32 -32768

hex. 7FFF 1FC4 : 1AAD 1AAC : 0020 8000

Range Overflow Overrange
Nominal range
Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

82

Manual, 09/2016, A5E36647959-AB

Representation of analog values C.4 Representation of analog values for thermocouples

Table C- 24 Thermocouple type TXK/XKL GOST

Type

Values

TXK /XKL dec. in °C

> 1050.0 32767

1050.0 10500

:

:

800.1

8001

800.0

8000

:

:

-200.0 -2000

< -200.0 -32768

hex.
7FFF 2904 : 1FA1 1F40 : F830 8000

Type

Values

TXK /XKL dec. in °F

> 1922.0 32767

1922.0 19220

:

:

1472.1 14721

1472.0 14720

:

:

-328.0 -3280

< -328.0 -32768

hex.
7FFF 4B14 : 3981 3980 : F330 8000

Type TXK/XKL in K > 1323.2 1323.2 : 1073.3 1073.2 : 73.2 < 73.2

Values dec.
32767 13232 : 10733 10732 : 732 -32768

hex.
7FFF 33B0 : 29ED 29EC : 02DC 8000

Range
Overflow Overrange
Nominal range Underflow

Analog Input Module AI 8xU/R/RTD/TC HF (6ES7531-7PF00-0AB0)

Manual, 09/2016, A5E36647959-AB

83

SIMATIC
S7-1500/ET 200MP Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)
Manual

_Pr_ef_ac_e_______________ _G_uid_e_to_d_o_cu_m_en_ta_tio_n______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E32366209-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32366209-AC  11/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

4

Manual, 09/2016, A5E32366209-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Guide to documentation .......................................................................................................................... 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 14

3.1

Wiring and block diagrams..................................................................................................... 14

4 Parameters/address space ................................................................................................................... 23

4.1

Measurement types and ranges ............................................................................................ 23

4.2

Parameters............................................................................................................................. 26

4.3

Declaration of parameters...................................................................................................... 29

4.4

Address space ....................................................................................................................... 32

5 Interrupts/diagnostics alarms................................................................................................................. 37

5.1

Status and error displays ....................................................................................................... 37

5.2

Interrupts ................................................................................................................................ 39

5.3

Diagnostics alarms................................................................................................................. 41

6 Technical specifications ........................................................................................................................ 42

A Dimension drawing ............................................................................................................................... 50

B Parameter data records ........................................................................................................................ 52

B.1

Parameter assignment and structure of the parameter data records .................................... 52

B.2

Structure of a data record for dynamic reference temperature.............................................. 61

C Representation of analog values ........................................................................................................... 63

C.1

Representation of input ranges.............................................................................................. 64

C.2

Representation of analog values in voltage measuring ranges ............................................. 65

C.3

Representation of analog values in the current measuring ranges ....................................... 66

C.4

Representation of the analog values of resistance-based sensors/resistance

thermometers ......................................................................................................................... 67

C.5

Representation of analog values for thermocouples ............................................................. 70

C.6

Measured values for wire break diagnostics.......................................................................... 73

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

6

Manual, 09/2016, A5E32366209-AC

Guide to documentation

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

7

Guide to documentation

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

8

Manual, 09/2016, A5E32366209-AC

Guide to documentation
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

9

Guide to documentation

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

10

Manual, 09/2016, A5E32366209-AC

Product overview

2.1

Properties

Article number
6ES7531-7QD00-0AB0

View of the module

2

Figure 2-1 View of the AI 4xU/I/RTD/TC ST module

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  4 analog inputs  Resolution 16 bits including sign  Voltage measurement type can be set per channel  Current measurement type can be set per channel  Resistance measurement type can be set for channel 0 and 2  Resistance thermometer (RTD) measurement type can be set for channel 0 and 2  Thermocouple (TC) measurement type can be set per channel  Configurable diagnostics (per channel)  Hardware interrupt on limit violation can be set per channel (two low and two high limits
per channel) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Calibration in runtime Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Input (MSI)
Configurable submodules / submodules for Shared Device

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
V13 or higher with HSP 0102

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3
or higher
X

V13 or higher with

X

HSP 0102

V13 or higher with

X

HSP 0102

V13 or higher with

X

HSP 0102

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher (PROFINET IO only)

X (PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

12

Manual, 09/2016, A5E32366209-AC

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Front connector (push-in terminals) including cable tie  Shield bracket  Shield terminal  Power supply element (push-in terminals)  Labeling strips  U connector  Universal front door You can find additional information on accessories in the system manual System manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

13

Wiring

3

3.1

Wiring and block diagrams

This section contains the block diagram of the module and outlines various connection options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

You can find additional information on compensating the reference junction temperature in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094), the structure of a data record in the section Structure of a data record for dynamic reference temperature (Page 61).

Note You may use and combine the different wiring options for all channels.

Abbreviations used
Un+/UnMn+/MnIn+/InIc n+/Ic nUVn L+ M MANA

Voltage input channel n (voltage only) Measuring input channel n Current input channel n (current only) Current output for RTD, channel n Supply voltage at channel n for 2-wire transmitters (2WMT) Connection for supply voltage Ground connection Reference potential of the analog circuit

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

14

Manual, 09/2016, A5E32366209-AC

Wiring 3.1 Wiring and block diagrams Pin assignment for the power supply element The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 43 (M).
Figure 3-1 Power supply element wiring

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

15

Wiring 3.1 Wiring and block diagrams
Connection: Voltage measurement
The example in the following figure shows the pin assignment for voltage measurement.

 Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

16

Manual, 09/2016, A5E32366209-AC

Wiring 3.1 Wiring and block diagrams
Connection: 4-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transmitters.

 Wiring 4-wire transmitter  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Figure 3-3 Block diagram and pin assignment for current measurement

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

17

Wiring 3.1 Wiring and block diagrams
Connection: 2-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transmitters.

 Wiring 2-wire transmitter  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and pin assignment for current measurement with 2-wire transmitter

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

18

Manual, 09/2016, A5E32366209-AC

Wiring 3.1 Wiring and block diagrams
Connection: 2-wire connection of resistance-based sensors or thermal resistors (RTD)
The example in the figure below shows the pin assignment for 2-wire connection of resistance sensors or thermal resistors.

 2-wire connection  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Figure 3-5 Block diagram and pin assignment for 2-wire connection

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

19

Wiring 3.1 Wiring and block diagrams
Connection: 3- and 4-wire connection of resistance sensors or thermal resistors (RTD)
The example in the figure below shows the pin assignment for 3- and 4-wire connection of resistance-based sensors or thermal resistors.

 4-wire connection  3-wire connection  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-6 Block diagram and pin assignment for 3- and 4-wire connection

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

20

Manual, 09/2016, A5E32366209-AC

Wiring 3.1 Wiring and block diagrams
Connection: Thermocouples for external/internal compensation
The figure below shows an example of the pin assignment for thermocouples for external or internal compensation.

 Wiring of a thermocouple for internal compensation  Wiring of a thermocouple for external compensation  Analog digital converter  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx RUN ERROR PWR

Figure 3-7 Block diagram and pin assignment for the thermocouple

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

21

Wiring 3.1 Wiring and block diagrams
Connection: Grounded thermocouples for internal compensation
The following figure shows an example of the pin assignment for grounded thermocouples for internal compensation.

 Wiring of a thermocouple (grounded) for internal
compensation
 Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)

CHx
RUN ERROR PWR

Channel or 4 x channel status (green/red)
Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-8 Block diagram and pin assignment for grounded thermocouple

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

22

Manual, 09/2016, A5E32366209-AC

Parameters/address space

4

4.1

Measurement types and ranges

Introduction

The module is set to voltage measurement type with measuring range ±10 V by default. You need to reassign the module parameters with STEP 7 if you want to use a different measurement type or range.
Deactivate the input if it is not going to be used. The module cycle time is shortened and the interference factors that lead to failure of the module (for example, triggering a hardware interrupt) are avoided.

Measurement types and ranges
The following table shows the measurement types and the respective measuring range.

Table 4- 1 Measurement types and measuring ranges

Measurement type Voltage
Current 2WMT (2-wire transmitter) Current 4WMT (4-wire transmitter) Resistor (2-wire connection) Resistor (3-wire connection) (4-wire connection)

Measuring range ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V 1 V to 5 V ±5 V ±10 V 4 mA to 20 mA
0 mA to 20 mA 4 mA to 20 mA ±20 mA
PTC 150  300  600  6000 

Representation of analog values See Representation of analog values in voltage measuring ranges (Page 65)
See Representation of analog values in the current measuring ranges (Page 66)
See Representation of the analog values of resistance-based sensors/resistance thermometers (Page 67)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

23

Parameters/address space 4.1 Measurement types and ranges

Measurement type Thermal resistor RTD (3-wire connection) (4-wire connection)
Thermocouple (TC)
Disabled

Measuring range PT100 Standard/Climate PT200 Standard/Climate PT500 Standard/Climate PT1000 Standard/Climate Ni100 Standard/Climate Ni1000 Standard/Climate LG-Ni1000 Standard/Climatic Type B Type E Type J Type K Type N Type R Type S Type T -

Representation of analog values
See Representation of analog values for thermocouples (Page 70)

The tables of the input ranges, overflow, underrange, etc. are available in the appendix Representation of analog values (Page 63).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

24

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.1 Measurement types and ranges
Special features for the use of PTC resistors
PTC resistors are suitable for temperature monitoring of electrical devices, such as motors, drives, and transformers. Use Type A PTC resistors (PTC thermistor) in accordance with DIN/VDE 0660, part 302. In doing so, follow these steps: 1. Choose "Resistor (2-wire terminal)" and "PTC" in STEP 7. 2. Connect the PTC using 2-wire connection technology. If you enable the "Underflow" diagnostics in STEP 7, it will be signaled for resistance values <18 . In this case, this diagnostic signifies "Short-circuit in the wiring". The figure below shows the address space assignment for AI 4xU/I/RTD/TC ST with PTC resistors.
Figure 4-1 Address space for AI 4xU/I/RTD/TC ST with PTC resistors The diagram below shows the temperature profile and the corresponding switching points.

Figure 4-2 Temperature profile and the corresponding switching points

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

25

Parameters/address space 4.2 Parameters
Special features of the measured value acquisition with PTC resistors
If faults occur (for example supply voltage L+ missing) that make it impossible to acquire measured values with PTC resistors, the corresponding channels (IB x/IB x+1) report overflow (7FFFH). If the value status (QI) is enabled, the value 0 = incorrect is output in the corresponding bit.

4.2

Parameters

AI 4xU/I/RTD/TC ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 52).
The following parameter settings are possible:

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Diagnostics

· No supply voltage L+

Yes/No

No

· Overflow

Yes/No

No

· Underflow

Yes/No

No

· Common mode error

Yes/No

No

· Reference junction

Yes/No

No

· Wire break

Yes/No

No

· Current limit for wire break 1.185 mA or 3.6 mA 1.185 mA diagnostics 2)

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel 1)

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Module 3) Module 3) Module 3) Module 3) Module 3) Module 3) --- 4)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

26

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.2 Parameters

Parameters
Measuring · Measurement type · Measuring range · Temperature coefficient
· Temperature unit · Interference frequency
suppression · Smoothing · Reference junction
· Fixed reference temperature

Range of values

Default setting

See section Measurement types and ranges (Page 23)

Voltage ±10 V

Pt: 0.003851 Pt: 0.003902 Pt: 0.003916 Pt: 0.003920 Ni: 0.00618 Ni: 0.00672 LG-Ni: 0.005000
· Kelvin (K) · Fahrenheit (°F)

0.003851 °C

· Celsius (°C)

400 Hz 60 Hz 50 Hz 10 Hz
None/low/medium/hi gh
· Fixed reference temperature
· Dynamic reference temperature

50 Hz
None Internal reference junction

· Internal reference junction

Temperature

25 °C

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel

Yes

Channel

Yes

Channel

Channel Channel Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Module
Module
Channel Module 4) · Dynamic ref-
erence temperature · Internal reference junction
--- 4)

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

27

Parameters/address space 4.2 Parameters

Parameters

Range of values

Hardware interrupts · Hardware interrupt low
limit 1
· Hardware interrupt high limit 1
· Hardware interrupt low limit 2
· Hardware interrupt high limit 2

Yes/No Yes/No Yes/No Yes/No

Default setting
No

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

No

Yes

Channel

--- 4)

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this alarm surge by assigning the diagnostics function to one channel only.
2) When "Wire break" diagnostics is disabled, the current limit of 1.185 mA is applied to the value status. For measured values below 1.185 mA, the value status is always: 0 = fault.
3) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 3.
4) You can set the current limit for wire break diagnostics, the setting "Fixed reference temperature" as well as the limits for hardware interrupts in the user program with data records 0 to 3.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

28

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

No supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics if the measured value violates the high limit.

Underflow

Enabling of the diagnostics when the measured value falls below the underrange or for voltage measurement ranges of ± 50 mV to ± 2.5 V if the inputs are not connected.

Common mode error
Enabling of diagnostics if the valid common mode voltage is exceeded.
Enable the Common mode error diagnostics when 2WMT is connected, for example, to check for a short circuit to groundANA or a wire break. If you do not need the Common mode error diagnostics, disable the parameter.

Reference junction
Enabling of the diagnostics reference junction when the TC channel has no reference temperature or incorrect reference temperature.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input or the applied voltage is too low.

Current limit for wire break diagnostics
Threshold for reporting wire breaks. The value can be set to 1.185 mA or 3.6 mA, depending on the sensor used.

Temperature coefficient
The temperature coefficient depends on the chemical composition of the material. In Europe, only one value is used per sensor type (default value).
The temperature coefficient ( value) indicates by how much the resistance of a specific material changes relatively if the temperature increases by 1 °C.
The further values facilitate a sensor-specific setting of the temperature coefficient and enhance accuracy.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

29

Parameters/address space 4.3 Declaration of parameters

Interference frequency suppression
At analog input modules, this suppresses interference caused by the frequency of AC mains.
The frequency of AC network may corrupt measurements, particularly in the low voltage ranges, and when thermocouples are being used. For this parameter, the user defines the mains frequency prevailing on his system.

Smoothing

The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels.
Smoothing time = number of module cycles (k) x cycle time of the module.
The following figure shows the number of module cycles after which the smoothed analog value is almost 100%, depending on the set smoothing. It is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-3 Smoothing with AI 4xU/I/RTD/TC ST

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

30

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.3 Declaration of parameters

Reference junction
The following settings can be configured for the reference junction parameter:

Table 4- 3 Possible parameter assignments for the reference junction parameter TC

Setting Fixed reference temperature Dynamic reference temperature
Internal reference junction

Description
The reference junction temperature is configured and stored in the module as a fixed value.
The reference junction temperature is transferred in the user program from the CPU to the module by data records 192 to 195 using the WRREC (SFB 53) instruction.
The reference junction temperature is determined using an integrated sensor of the module.

Hardware interrupt 1 or 2
Enabling of a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.

Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.

High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

31

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image of the inputs.

Configuration options of AI 4xU/I/RTD/TC ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 4 Configuration options Configuration

Short designation/module name in the GSD file

1 x 4-channel without value status 1 x 4-channel with value status 4 x 1-channel without value status

AI 4xU/I/RTD/TC ST AI 4xU/I/RTD/TC ST QI AI 4xU/I/RTD/TC ST S

4 x 1-channel with value status

AI 4xU/I/RTD/TC ST S QI

1 x 4-channel with value status for module- AI 4xU/I/RTD/TC ST MSI internal shared input with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)
V13 or higher with HSP 0102

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X

V13 or higher with

X

HSP 0102

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 4xU/I/RTD/TC ST QI  AI 4xU/I/RTD/TC ST S QI  AI 4xU/I/RTD/TC ST MSI An additional bit is assigned to each channel for the value status. The value status bit indicates if the read in digital value is valid. (0 = value is incorrect).

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

32

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 4-channel AI 4xU/I/RTD/TC ST QI
The figure below shows the address space assignment for configuration as a 1 x 4-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" stands, for example, for the module start address input byte x.
Figure 4-4 Address space for configuration as 1 x 4-channel AI 4xU/I/RTD/TC ST QI with value status

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

33

Parameters/address space 4.4 Address space
Address space for configuration as 4 x 1-channel AI 4xU/I/RTD/TC ST S QI
For the configuration as a 4 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 4-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-5 Address space for configuration as 4 x 1-channel AI 4xU/I/RTD/TC ST S QI with value status
Address space for configuration as 1 x 4-channel AI 4xU/I/RTD/TC ST MSI
The channels 0 to 3 of the module are copied in up to 4 submodules with configuration 1 x 4-channel module (Module-internal shared input, MSI). Channels 0 to 3 are then available with identical input values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The number of available submodules depends on the used interface module. Please observe the information in the manual for the particular interface module.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

34

Manual, 09/2016, A5E32366209-AC

Parameters/address space 4.4 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect. For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready). The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-6 Address space for configuration as 1 x 4-channel AI 4xU/I/RTD/TC ST MSI with value status

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

35

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Reference

Figure 4-7 Address space for configuration as 1 x 4-channel AI 4xU/I/RTD/TC ST MSI with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

36

Manual, 09/2016, A5E32366209-AC

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AI 4xU/I/RTD/TC ST.

5

Figure 5-1 LED displays of the module AI 4xU/I/RTD/TC ST

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

37

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostics alarms can be found in the section Diagnostics alarms (Page 41).

LED RUN/ERROR
Table 5- 1 RUN/ERROR status and error displays

LEDs RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid configuration is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are insert-
ed. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED
Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Solution Check supply voltage L+.
---

CHx LED
Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled.
Channel configured and OK.
Channel is configured (channel error pending). Diagnostics alarm: e.g. wire break

Solution ---
---
Check the wiring Disable diagnostics.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

38

Manual, 09/2016, A5E32366209-AC

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 4xU/I/RTD/TC ST supports the following diagnostic and hardware interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Wire break  Overflow  Underflow  Common mode error  Reference junction  Parameter assignment error

Hardware interrupt
The module generates a hardware interrupt at the following events:
 Low limit violated 1
 High limit violated 1
 Low limit violated 2
 Above high limit 2
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The diagram below shows the assignment to the bits of double word 8 in local data.

Figure 5-2 OB start information

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

39

Interrupts/diagnostics alarms 5.2 Interrupts

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 4 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

The event that triggered the hardware interrupt follows.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

40

Manual, 09/2016, A5E32366209-AC

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3
Table 5- 5

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.
Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Wire break

Error code 6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

Reference channel

15H

error

Common mode error 118H

Channel temporarily

1FH

unavailable

Meaning Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Solution Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel

Measuring range violated Measuring range violated
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment

Check the measuring range Check the measuring range Correct the parameter assignment

Supply voltage L+ of the module is missing
Reference temperature of the reference junction for the operated TC channel with compensation is invalid.
Valid common mode voltage exceeded
Causes when a 2WT is connected, e.g.:

Connect supply voltage L+ to module/channel
Check the resistance thermometer. For the compensation with data record, restore communication to the module/station.
Check the wiring, e.g. sensor ground connections, use equipotential cables

· Wire break · Galvanic connection to MANA

User calibration is active.
Channel currently not providing current/valid values.

Exit user calibration.

Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the "Wire break" diagnostics first and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors can be diagnosed reliably, select all check boxes under "Diagnostics".

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

41

Technical specifications

6

Technical specifications of the AI 4xU/I/RTD/TC ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7531-7QD00-0AB0
AI 4xU/I/RTD/TC ST FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Scalable measuring range

No

Scalable measured values

No

Measuring range adjustment

No

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13.0.2

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSI

Yes

CiR Configuration in RUN

Parameter assignment in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes
140 mA; with 24 V DC supply

Encoder supply

24 V encoder supply Short-circuit protection Output current, max. Power Power consumption from backplane bus

Yes 53 mA
0.7 W

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

42

Technical specifications

Power loss Power loss, typ. Analog inputs Number of analog inputs
· For current measurement
· For voltage measurement
· For resistance/resistance thermometer measurement
· For thermocouple measurement
Permissible input voltage for voltage input (destruction limit), max. Permissible input current for current input (destruction limit), max. Technical unit for temperature measurement, can be set Analog input with oversampling Standardization of measured values Input ranges (rated values), voltages 0 to +5 V 0 to +10 V 1 V to 5 V Input resistance (1 V to 5 V) -1 V to +1 V Input resistance (-1 V to +1 V) -10 V to +10 V Input resistance (-10 V to +10 V) -2.5 V to +2.5 V Input resistance (-2.5 V to +2.5 V) -25 mV to +25 mV -250 mV to +250 mV Input resistance (-250 mV to +250 mV) -5 V to +5 V Input resistance (-5 V to +5 V) -50 mV to +50 mV Input resistance (-50 mV to +50 mV) -500 mV to +500 mV Input resistance (-500 mV to +500 mV) -80 mV to +80 mV Input resistance (-80 mV to +80 mV)

6ES7531-7QD00-0AB0
2.3 W
4 4 4 2
4 28.8 V
40 mA
Yes; °C / °F / K
No No
No No Yes 100 k Yes 10 M Yes 100 k Yes 10 M No Yes 10 M Yes 100 k Yes 10 M Yes 10 M Yes 10 M

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

43

Technical specifications

Input ranges (rated values), currents 0 mA to 20 mA Input resistance (0 mA to 20 mA)
-20 mA to +20 mA Input resistance (-20 mA to +20 mA)
4 mA to 20 mA Input resistance (4 mA to 20 mA)
Input ranges (rated values), thermocouples Type B Input resistance (type B) Type C Type E Input resistance (type E) Type J Input resistance (type J) Type K Input resistance (type K) Type L Type N Input resistance (type N) Type R Input resistance (type R) Type S Input resistance (type S) Type T Input resistance (type T) Type U Type TXK/TXK(L) according to GOST Input ranges (rated values), resistance thermometer Cu 10 Cu 10 according to GOST Cu 50 Cu 50 according to GOST Cu 100 Cu 100 according to GOST Ni 10 Ni 10 according to GOST Ni 100 Input resistance (Ni 100) Ni 100 according to GOST

6ES7531-7QD00-0AB0
Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC
Yes 10 M No Yes 10 M Yes 10 M Yes 10 M No Yes 10 M Yes 10 M Yes 10 M Yes 10 M No No
No No No No No No No No Yes; Standard/Climate 10 M No

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

44

Manual, 09/2016, A5E32366209-AC

Ni 1000 Input resistance (Ni 1000) Ni 1000 according to GOST LG-Ni 1000 Input resistance (LG-Ni 1000) Ni 120 Ni 120 according to GOST Ni 200 Ni 200 according to GOST Ni 500 Ni 500 according to GOST Pt 10 Pt 10 according to GOST Pt 50 Pt 50 according to GOST Pt 100 Input resistance (Pt 100) Pt 100 according to GOST Pt 1000 Input resistance (Pt 1000) Pt 1000 according to GOST Pt 200 Input resistance (Pt 200) Pt 200 according to GOST Pt 500 Input resistance (Pt 500) Pt 500 according to GOST Input ranges (rated values), resistors 0 ohm to 150 ohm Input resistance (0 ohm to 150 ohm) 0 ohm to 300 ohm Input resistance (0 ohm to 300 ohm) 0 ohm to 600 ohm Input resistance (0 ohm to 600 ohm) 0 to 3000 Ohm 0 ohm to 6000 ohm Input resistance (0 ohm to 6000 ohm) PTC Input resistance (PTC)

Technical specifications
6ES7531-7QD00-0AB0 Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No No No No No No No No No No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No
Yes 10 M Yes 10 M Yes 10 M No Yes 10 M Yes 10 M

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

45

Technical specifications

Thermocouple (TC) Temperature compensation · Configurable

6ES7531-7QD00-0AB0 Yes

· Internal temperature compensation

Yes

· External temperature compensation via RTD Yes

· Compensation for 0 °C reference point temperature

Yes, fixed value can be set

· Reference channel of the module

No

Cable length

shielded, max.

800 m; for U/I, 200 m for R/RTD, 50 m for TC

Analog value generation for the inputs

Integration and conversion time/resolution per channel

Resolution with overrange (bit including sign), max.

16 bit

Configurable integration time

Yes

Integration time (ms)

2.5 / 16.67 / 20 / 100 ms

Basic conversion time including integration time (ms)

9 / 23 / 27 / 107 ms

· Additional conversion time for wire break moni- 9 ms (to be included in R/RTD/TC measurement) toring

· Additional conversion time for wire break measurement
Interference voltage suppression at interference frequency f1 in Hz Time for offset calibration (per module) Smoothing of the measured values Configurable Level: None Level: Weak Level: Medium Level: Strong Encoders Connection of the signal encoders For voltage measurement for current measurement as 2-wire transducer · Load of 2-wire transmitter, max.

150 Ohm, 300 Ohm, 600 Ohm, Pt100. Pt200. Ni100: 2 ms, 6000 Ohm, Pt500. Pt1000. Ni1000. LG-Ni1000. PTC: 4 ms 400 / 60 / 50 / 10
Basic conversion time of the slowest channel
Yes Yes Yes Yes Yes
Yes Yes 820 

for current measurement as 4-wire transducer
for resistance measurement with two-wire connection
for resistance measurement with three-wire connection
For resistance measurement with four-wire connection

Yes Yes; only for PTC
Yes; all measuring ranges except PTC; internal compensation of line resistance Yes; all measuring ranges except PTC

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

46

Manual, 09/2016, A5E32366209-AC

Technical specifications

6ES7531-7QD00-0AB0

Errors/accuracies

Linearity error (in relation to input range), (+/-)

0.02%

Temperature error (in relation to input range), (+/-) 0.005%/K; for TC typ. T 0.02 +/- %/K

Crosstalk between the inputs, max.

-80 dB

Repeat accuracy in settled state at 25 °C (in rela- 0.02% tion to input range), (+/-)

Temperature errors of internal compensation

+/-6 °C

Operational limit in the entire temperature range

Voltage in relation to input range, (+/-)

0.3%

Current in relation to input range, (+/-)

0.3%

Resistance in relation to input range, (+/-)

0.3%

Resistance thermometer in relation to input range, 0.3%; Ptxxx Standard: ±1.5 K, Ptxxx Climatic:

(+/-)

±0.5 K, Nixxx Standard: ±0.5 K, Nixxx Climatic:

±0.3 K

Thermocouple in relation to input range, (+/-)

0.3%; Type B: > 600 °C ±4.6 K, Type E: > -200 °C ±1.5 K, Type J: > -210 °C ±1.9 K, Type K: > 200 °C ±2.4 K, Type N: > -200 °C ±2.9 K, Type R: > 0 °C ±4.7 K, Type S: > 0 °C ±4.6 K, Type T: > -200 °C ±2.4 K

Basic error limit (operational limit at 25 °C)

Voltage in relation to input range, (+/-)

0.1%

Current in relation to input range, (+/-)

0.1%

Resistance in relation to input range, (+/-)

0.1%

Resistance thermometer in relation to input range, 0.1%; Ptxxx Standard: ±0.7 K, Ptxxx Climatic:

(+/-)

±0.2 K, Nixxx Standard: ±0.3 K, Nixxx Climatic:

±0.15 K

Thermocouple in relation to input range, (+/-)

0.1%; Type B: > 600 °C ±1.7 K, Type E: > -200 °C ±0.7 K, Type J: > -210 °C ±0.8 K, Type K: > 200 °C ±1.2 K, Type N: > -200 °C ±1.2 K, Type R: > 0 °C ±1.9 K, Type S: > 0 °C ±1.9 K, Type T: > -200 °C ±0.8 K

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency

Series mode interference (peak value of interfer- 40 dB ence < rated value of input range), min.

Common mode voltage, max.

10 V

Common mode interference, min.

60 dB

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Interrupts

Diagnostic interrupt

Yes

Limit interrupt

Yes; two high limits and two low limits each

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

47

Technical specifications

Diagnostics alarms Monitoring of supply voltage Wire break
Overflow/underflow Diagnostics display LED RUN LED ERROR LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics For module diagnostics Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and power supply of the electronics Permissible potential difference Between the inputs (UCM) Between the inputs and MANA (UCM) Insulation Insulation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup

6ES7531-7QD00-0AB0
Yes Yes; only for 1 ... 5 V, 4 ... 20 mA, TC, R and RTD Yes
Yes; green LED Yes; red LED Yes; green LED Yes; green LED Yes; red LED Yes; red LED
No 4 Yes Yes
20 V DC 10 V DC
707 V DC (type test)
0 °C 60  0 °C 40 °C
No

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

48

Manual, 09/2016, A5E32366209-AC

Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

Technical specifications
6ES7531-7QD00-0AB0
25 mm 147 mm 129 mm
210 g
Package includes 40-pin push-in front connector Additional basic error and noise for integration time = 2.5 ms: Voltage: ±250 mV (±0.02%), ±80 mV (±0.05%), ±50 mV (±0.05%); resistance: 150 Ohm (±0.02%); resistance thermometer: Pt100 Climatic: ±0.08 K, Ni100 Climatic: ±0.08 K; thermocouple: Type B, R, S: ±3 K, Type E, J, K, N, T: ±1 K

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

49

Dimension drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the AI 4xU/I/RTD/TC ST module

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

50

Dimension drawing
Figure A-2 Dimension drawing of the AI 4xU/I/RTD/TC ST module, side view with open front panel

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

51

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Current limit for wire break Wire break
Common mode error Reference junction Measurement type resistance (4-wire connection, 3-wire connection, 2-wire connection) Measurement type thermistor RTD (4-wire connection, 3-wire connection) Hardware interrupt limits Fixed reference temperature

Dependent parameters Only for measurement type current with measuring range 4 to 20 mA. Only for measurement type resistance, thermistor RTD, thermocouple TC, voltage with measuring range 1V to 5 V and current with measuring range 4 to 20 mA. Only for measuring type voltage, current and thermocouple TC. Only for measurement type thermocouple TC. Configurable for even channels (0 and 2) only. The next odd channel (1 and 3) must be disabled.
Only if hardware interrupts are enabled. Only if the Reference junction parameter and the Fixed reference temperature value is configured.

Parameter assignment in the user program
The module parameters can be assigned in RUN (for example, measuring ranges of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 0 to 3. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

52

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Output parameter STATUS
If errors occur during the transfer of parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. The description of the WRREC instruction and the error codes is available in the STEP 7 online help.
Operation of the module downstream from a PROFIBUS DP interface module
If the module is operated downstream from a IM PROFIBUS DP interface module, the parameter data records 0 and 1 cannot be read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module product manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
For the configuration as a 1 x 4-channel module, the parameters are located in data records 0 to 3 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  Data record 2 for channel 2  Data record 3 for channel 3 For configuration 1 x 4-channel, the module has 4 submodules with one channel each. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  Data record 0 for channel 2 (submodule 3)  Data record 0 for channel 3 (submodule 4) Address the respective submodule for data record transfer.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

53

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The example in the following figure shows the structure of data record 0 for channel 0. The structure of channels 1 to 3 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

54

Manual, 09/2016, A5E32366209-AC

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Figure B-2 Structure of data record 0: Bytes 7 to 27

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

55

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measurement types
The following table lists all measurement types of the analog input module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 2 Code for the measurement type

Measurement type Disabled Voltage Current, 2-wire transmitter Current, 4-wire transmitter Resistance, 4-wire connection *) **) Resistance, 3-wire connection *) **) Resistance, 2-wire connection *) ***) Thermal resistor linear, 4-wire connection *) Thermal resistor linear, 3-wire connection *) Thermocouple

Code 0000 0000 0000 0001 0000 0011 0000 0010 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1010

*) only possible for channels 0 and 2 **) only for the following measuring ranges: 150 , 300 , 600 , 6 k ***) only for measuring range PTC

Special feature for configuration
When you set one of the following measurement types at channel 0 or channel 2:  Resistance, 4-wire connection  Resistance, 3-wire connection  Resistance, 2-wire connection  Thermal resistor linear, 4-wire connection  Thermal resistor linear, 3-wire connection then one of the following channels must be disabled. Example: You have configured "Resistance, 4-wire connection" at channel 0; channel 1 must be disabled. You have configured "Resistance, 2-wire connection" at channel 2; channel 3 must be disabled.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

56

Manual, 09/2016, A5E32366209-AC

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes accordingly at byte 3 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 3 Code for the measuring range
Measuring range Voltage ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V ±5 V ±10 V 1 V to 5 V Current, 4-wire transmitter 0 mA to 20 mA 4 mA to 20 mA ±20 mA Current, 2-wire transmitter 4 mA to 20 mA Resistor 150  300  600  6 k PTC

Code
0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100
0000 0011
0000 0001 0000 0010 0000 0011 0000 0101 0000 1111

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

57

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Thermal resistor Pt100 climatic Ni100 climatic Pt100 standard Ni100 standard Pt500 standard Pt1000 standard Ni1000 standard Pt200 Climatic Pt500 climatic Pt1000 climatic Ni1000 Climatic Pt200 standard LG-Ni1000 standard LG-Ni1000 Climatic Thermocouple B N E R S J T K

0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010 0000 1011 0001 1100 0001 1101
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000

Codes for temperature coefficients
The following table lists all temperature coefficients along with their codes for temperature measurements with the thermal resistors. These codes must be entered in byte 4 of the corresponding data record.

Table B- 4 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720 LG-Ni 0.005000

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001
0000 1010

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

58

Manual, 09/2016, A5E32366209-AC

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Valid values for fixed reference temperatures
The values that you can set for fixed reference temperatures must be in the valid range of values. The resolution is a tenth of a degree.

Table B- 5 Valid values for fixed reference temperatures

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default)

Dec -1450 to 1550 -2290 to 3110 1282 to 3276

Hex FA56H to 60EH F70EH to CCCH 502H to 10BAH

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not violate the over/underrange of the respective rated measuring range.
The following tables list the valid hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 6 Voltage limits

Voltage ±50 mV, ±80 mV, ±250 mV, ±500 mV, ±1 V, ±2.5 V, ±5 V, ±10 V 32510
-32511

1 V to 5 V
32510 -4863

High limit Low limit

Table B- 7 Current and resistance limits

Current ±20 mA
32510 -32511

4 to 20 mA / 0 to 20 mA
32510
-4863

Resistor (all configurable measuring ranges)
32510 1

High limit Low limit

Table B- 8 Limits for thermocouple types B, C, E, and J

Thermocouple

Type B

°C

°F

K

20699 32765 23431

1

321 2733

°C 11999 -2699

Type E

°F

K

21919 14731

-4539 33

°C 14499 -2099

Type J °F
26419 -3459

K 17231
633

High limit Low limit

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

59

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Table B- 9 Limits for thermocouples type K, N, R, and S

Thermocouple

Type K

°C

°F

16219 29515

-2699 -4539

K 18951
33

°C 15499 -2699

Type N

°F

K

28219 18231

-4539 33

Types R, S

°C

°F

K

20189 32765 22921

-1699 -2739 1033

High limit Low limit

Table B- 10 Limits for thermocouple type T

Thermocouple

Type T

°C

°F

5399 10039

-2699 -4539

K 8131
33

High limit Low limit

Table B- 11 Limits for thermal resistor Pt xxx Standard and Pt xxx Climatic

Thermal resistor

Pt xxx Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt xxx Climatic

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 12 Limits for thermal resistor Ni xxx Standard and Ni xxx Climatic

Thermal resistor

Ni xxx Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni xxx Climatic

°F

K

31099

---

-15699

---

High limit Low limit

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

60

Manual, 09/2016, A5E32366209-AC

Parameter data records B.2 Structure of a data record for dynamic reference temperature

B.2

Structure of a data record for dynamic reference temperature
The WRREC instruction is used to transfer the reference junction temperature via data record 192 to data record 195 to the module.
The description of the WRREC instruction can be found in the online help from STEP 7.
If you have set the "Dynamic reference temperature" value for the "Reference junction" parameter, the module expects a new data record at least every 5 minutes. If the module does not receive a new data record within this time, it generates the "Reference channel error" diagnostics message.

Assignment of data record and channel
The following assignment applies if no submodules (1 x 4-channel) are configured for the module:  Data record 192 for channel 0  Data record 193 for channel 1  Data record 194 for channel 2  Data record 195 for channel 3

Structure of data record 192 for dynamic reference temperature
The following figure shows an example of the structure of data record 192 for channel 0. The structure for data records 193 to 195 is identical.

Figure B-3 Structure of data record 192

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

61

Parameter data records B.2 Structure of a data record for dynamic reference temperature

Valid values for fixed temperature compensation
You can enter the selectable values at bytes 2 and 3 of the data record for the corresponding channel. The selectable values must lie within the permitted value range, see following table. The resolution is a tenth of a degree.

Table B- 13 Valid values for temperature compensation via data record

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default) Celsius (climatic) Fahrenheit (climatic) Kelvin (climatic)

Dec -1450 to 1550 -2290 to 3110 1282 to 3276 -14500 to 15500 -22900 to 31100 12820 to 32760

Hex FA56H to 60EH F70EH to C26H 502H to CCCH C75CH to 3C8CH A68CH to 797CH 3214H to 7FF8H

Additional information
For more information on compensation of the reference junction temperature via data record refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual in the internet.

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

62

Manual, 09/2016, A5E32366209-AC

Representation of analog values

C

Introduction

This section shows the analog values for all measuring ranges supported by the AI 4xU/I/RTD/TC ST analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog module.

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Dec

Hex

1

1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

63

Manual, 09/2016, A5E32366209-AC

Representation of analog values C.1 Representation of input ranges

C.1

Representation of input ranges
The tables below set out the digitized representation of the input ranges by bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

64

Manual, 09/2016, A5E32366209-AC

C.2

Representation of analog values C.2 Representation of analog values in voltage measuring ranges

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4 Voltage measuring ranges ±10 V, ±5 V, ±2.5 V, ±1 V,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V >5.879 V

11.759 V 5.879 V

±2.5 V >2.940 V 2.940 V

±1 V > 1.176 V 1.176 V

Range
Overflow Overshoot range

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

2.5 V 1.875 V 90.4 µV 0 V

1 V 0.75 V 36.17 µV 0 V

Rated range

-7.5 V -10 V

-3.75 V -5 V

-11.759 V -5.879 V < -11.759 V < -5.879 V

-1.875 V -2.5 V
-2.940 V < -2.940 V

-0.75 V -1 V
-1.176 V < -1.176 V

Undershoot range
Underflow

Table C- 5 Voltage measuring ranges ±500 mV, ±250 mV, ±80 mV, and ±50 mV,

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±500 mV

±250 mV

>587.9 mV > 294.0 mV

587.9 mV 294.0 mV

±80 mV > 94.1 mV 94.1 mV

±50 mV > 58.8 mV 58.8 mV

Range
Overflow Overshoot range

500 mV 375 mV 18.08 µV 0 mV

250 mV 187.5 mV 9.04 µV 0 mV

80 mV 60 mV 2.89 µV 0 mV

50 mV 37.5 mA 1.81 µV 0 mV

Rated range

-375 mV -500 mV

-187.5 mV -250 mV

-60 mV -80 mV

-587.9 mV -294.0 mV -94.1 mV <-587.9 mV < -294.0 mV < -94.1 mV

-37.5 mV -50 mV
-58.8 mV < -58.8 mV

Undershoot range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

65

Representation of analog values C.3 Representation of analog values in the current measuring ranges

Table C- 6 Voltage measuring range 1 V to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 V to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Overshoot range Rated range
Undershoot range Underflow

C.3

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 7 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA <-23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

66

Manual, 09/2016, A5E32366209-AC

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 8 Current measuring ranges 0 to 20 mA and 4 to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 mA to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <- 3.52 mA

4 mA to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

C.4

Representation of the analog values of resistance-based

sensors/resistance thermometers

The following tables list the decimal and hexadecimal values (codes) of the possible resistance-based sensor ranges.

Table C- 9 Resistance-based sensors of 150 , 300 , 600 , and 6000 

Values dec 32767 32511 27649 27648 20736 1 0

hex 7FFF 7EFF 6C01 6C00 5100 1 0

Resistance-based sensor range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

6000  >7055.3  7055.3 
6000  4500  217 m 0 

Overflow Overshoot range
Rated range

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

67

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

The following tables list the decimal and hexadecimal values (codes) of the supported resistance thermometers.

Table C- 10 Resistance thermometers Pt 100, Pt 200, Pt 500 and Pt 1000 Standard

Pt x00 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt x00 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt x00 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 11 Thermal resistors Pt 100, Pt 200, Pt 500 and Pt 1000 Climatic

Pt x00 Climatic/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt x00 Climatic/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

68

Manual, 09/2016, A5E32366209-AC

Representation of analog values C.4 Representation of the analog values of resistance-based sensors/resistance thermometers

Table C- 12 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Standard

Ni x00 standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni x00 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni x00 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overshoot range Rated range
Undershoot range Underflow

Table C- 13 Thermal resistors Ni 100, Ni 1000, LG-Ni 1000 Climatic

Ni x00 Climatic in °C (1 digit = 0.01 °C)
> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

Values
dec 32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex 7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni x00 climatic in °F Values (1 digit = 0.01 °F) dec

> 311.00

32767

311.00

31100

:

:

266.01

26601

266.00

26600

:

:

-76.00

-7600

-76.01

-7601

:

:

-157.00

-15700

< - 157.00

-32768

hex 7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

69

Representation of analog values C.5 Representation of analog values for thermocouples

C.5

Representation of analog values for thermocouples

The following tables list the decimal and hexadecimal values (codes) of the supported thermocouples.

Table C- 14 Thermocouple type B

Type B in °C
> 2070,0 2070,0 : 1820.1 1820.0 : 250.0 249.9 : 0,0 < 0.0

Values
dec 32767 20700 : 18201 18200 : 2500 2499 : 0 -32768

hex 7FFF 50DC : 4719 4718 : 09C4 09C3 : 0 8000

Type B in °F
> 3276.6 3276.6 : 2786.6 2786.5 : 482.0 481,9 : 32,0 < 32.0

Values
dec 32767 32766 : 27866 27865 : 4820 4819 : 320 -32768

hex 7FFF 7FFE : 6CDA 6CD9 : 12D4 12D3 : 0140 8000

Type B in K
> 2343.2 2343.2 : 2093.3 2093.2 : 523.2 523,1 : 273,2 < 273.2

Values
dec 32767 23432 : 20933 20932 : 5232 5231 : 2732 32768

hex 7FFF 5B88 : 51C5 51C4 : 1470 1469 : 0AAC 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Table C- 15 Thermocouple type E

Type E in °C
> 1200.0 1200,0 : 1000.1 1000.0 : -270.0 < -270.0

Values dec 32767 12000 : 10001 10000 : -2700 -32768

hex 7FFF 2EE0 : 2711 2710 : F574 8000

Type E in °F
> 2192,0 2192.0 : 1832.2 1832.0 : -454.0 < -454.0

Values dec 32767 21920 : 18322 18320 : -4540 -32768

hex 7FFF 55A0 : 4792 4790 : EE44 8000

Type E in K
> 1473.2 1473.2 : 1273.3 1273.2 : 0 <0

Values dec 32767 14732 : 12733 12732 : 0 -32768

hex 7FFF 398C : 31BD 31BC : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

70

Manual, 09/2016, A5E32366209-AC

Representation of analog values C.5 Representation of analog values for thermocouples

Table C- 16 Thermocouple type J

Type J in °C
> 1450.0 1450,0 : 1200.1 1200.0 : -210.0 < -210.0

Values dec 32767 14500 : 12001 12000 : -2100 -32768

hex 7FFF 38A4 : 2EE1 2EE0 : F7CC 8000

Type J in °F
> 2642.0 2642.0 : 2192.2 2192.0 : -346.0 < -346.0

Values dec 32767 26420 : 21922 21920 : -3460 -32768

hex 7FFF 6734 : 55A2 55A0 : F27C 8000

Type J in K
> 1723.2 1723.2 : 1473.3 1473.2 : 63.2 < 63.2

Values dec 32767 17232 : 14733 14732 : 632 -32768

hex 7FFF 4350 : 398D 398C : 0278 8000

Range Overflow Overshoot range
Rated range
Underflow

Table C- 17 Thermocouple type K

Type K in °C
> 1622.0 1622.0 : 1372.1 1372.0 : -270.0 < -270.0

Values dec 32767 16220 : 13721 13720 : -2700 -32768

hex 7FFF 3F5C : 3599 3598 : F574 8000

Type K in °F
> 2951.6 2951.6 : 2501.7 2501.6 : -454.0 < -454.0

Values dec 32767 29516 : 25017 25016 : -4540 -32768

hex 7FFF 734C : 61B9 61B8 : EE44 8000

Type K in K
> 1895,2 1895.2 : 1645.3 1645,2 : 0 < 0

Values dec 32767 18952 : 16453 16452 : 0 -32768

hex 7FFF 4A08 : 4045 4044 : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Table C- 18 Thermocouple type N

Type N in °C
> 1550,0 1550,0 : 1300,1 1300,0 : -270,0 < -270,0

Values
dec 32767 15500 : 13001 13000 : -2700 -32768

hex 7FFF 3C8C : 32C9 32C8 : F574 8000

Type N in °F
> 2822,0 2822,0 : 2372,2 2372,0 : -454,0 < -454,0

Values
dec 32767 28220 : 23722 23720 : -4540 -32768

hex 7FFF 6E3C : 5CAA 5CA8 : EE44 8000

Type N in K
> 1823,2 1823,2 : 1573,3 1573,2 : 0 < 0

Values
dec 32767 18232 : 15733 15732 : 0 -32768

hex 7FFF 4738 : 3D75 3D74 : 0000 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

71

Representation of analog values C.5 Representation of analog values for thermocouples

Table C- 19 Thermocouple type R and S

Type R, S Values

in °C

dec

> 2019.0 32767

2019.0 20190

:

:

1769.1 17691

1769.0 17690

:

:

-50.0

-500

-50,1

-501

:

:

-170,0 -1700

< -170.0 -32768

hex 7FFF 4EDE : 451B 451A : FE0C FE0B : F95C 8000

Type R, S Values

in °F

dec

> 3276.6 32767

3276.6 32766

:

:

3216.4 32164

3216.2 32162

:

:

-58.0

-580

-58,1

-581

:

:

-274,0 -2740

< -274.0 -32768

hex 7FFF 7FFE : 7DA4 7DA2 : FDBC FDBB : F54C 8000

Types R, S in K
> 2292.2 2292.2 : 2042.3 2042,2 : 223,2 223.1 : 103.2 < 103.2

Values
dec 32767 22922 : 20423 20422 : 2232 2231 : 1032 < 1032

hex 7FFF 598A : 4FC7 4FC6 : 08B8 08B7 : 0408 8000

Range
Overflow Overshoot range
Rated range
Undershoot range
Underflow

Table C- 20 Thermocouple type T

Type T in °C
> 540,0 540,0 : 400,1 400,0 : -270,0 < -270,0

Values dec 32767 5400 : 4001 4000 : -2700 -32768

hex 7FFF 1518 : 0FA1 0FA0 : F574 8000

Type T in °F
> 1004,0 1004,0 : 752,2 752,0 : -454,0 < -454,0

Values dec 32767 10040 : 7522 7520 : -4540 -32768

hex 7FFF 2738 : 1D62 1D60 : EE44 8000

Type T in K
> 813,2 813,2 : 673,3 673,2 : 3,2 < 3,2

Values dec 32767 8132 : 6733 6732 : 32 -32768

hex 7FFF 1FC4 : 1AAD 1AAC : 0020 8000

Range Overflow Overshoot range
Rated range
Underflow

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

72

Manual, 09/2016, A5E32366209-AC

Representation of analog values C.6 Measured values for wire break diagnostics

C.6

Measured values for wire break diagnostics

Measured values on diagnostics event "wire break", dependent on diagnostics enables
Error events initiate a diagnostics entry and trigger a diagnostics interrupt if configured accordingly.

Table C- 21 Measured values for wire break diagnostics

Format S7

Parameter assignment
· "Wire break" diagnostics enabled · "Overflow/Underflow" diagnostics
enabled or disabled ("Wire break" diagnostics takes priority over "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
enabled
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
disabled

Measured values

32767

7FFFH

-32767 8000 H -32767 8000 H

Explanation "Wire break" or "Open circuit" diagnostics alarm
· Measured value after leaving the undershoot range
· Diagnostics alarm "Low limit violated" Measured value after leaving the undershoot range

Analog Input Module AI 4xU/I/RTD/TC ST (6ES7531-7QD00-0AB0)

Manual, 09/2016, A5E32366209-AC

73

SIMATIC
S7-1500/ET 200MP Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E03484776-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03484776-AD  09/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual: S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792) automation system.
Functions that relate in general to the systems are described in these manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:
 As of firmware version V2.1.0, the module supports the oversampling function.
 Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information regarding the product described in the documentation or its handling, or draws special attention to a section of the documentation.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

4

Manual, 09/2016, A5E03484776-AD

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

2.2 2.2.1

Functions................................................................................................................................ 13 Oversampling for outputs ....................................................................................................... 13

3 Wiring ................................................................................................................................................... 15

4 Parameters/address space ................................................................................................................... 18

4.1

Output ranges ........................................................................................................................ 18

4.2

Parameters............................................................................................................................. 19

4.3

Declaration of parameters...................................................................................................... 21

4.4

Address space ....................................................................................................................... 22

5 Interrupts/diagnostics alarms................................................................................................................. 30

5.1

Status and error displays ....................................................................................................... 30

5.2

Interrupts ................................................................................................................................ 32

5.3

Diagnostics alarms................................................................................................................. 33

6 Technical specifications ........................................................................................................................ 34

A Dimensional drawing............................................................................................................................. 40

B Parameter data records ........................................................................................................................ 42

B.1

Parameter assignment and structure of the parameter data records .................................... 42

C Representation of analog values ........................................................................................................... 46

C.1

Representation of output ranges............................................................................................ 47

C.2

Representation of analog values in the voltage output ranges.............................................. 48

C.3

Representation of analog values in the current output ranges .............................................. 49

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

6

Manual, 09/2016, A5E03484776-AD

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

8

Manual, 09/2016, A5E03484776-AD

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

10

Manual, 09/2016, A5E03484776-AD

Product overview

2.1

Properties

Article number
6ES7532-5HF00-0AB0

View of the module

2

Figure 2-1 View of the AQ 8xU/I HS module

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  Channel-based selection of 8 analog outputs  Selection of channels for current output  Selection of channels for voltage output  Resolution: 16 bits including sign  Configurable diagnostics (per channel)  Fast updating of the output values The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode Calibration in runtime Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device
Oversampling

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.1.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

X

V12 or higher

X

V12 or higher

X

V12 or higher

---

V12 or higher

X

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V14 or higher and

---

HSP 0186

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file. The oversampling function requires isochronous mode and can therefore only be configured with STEP 7 (TIA Portal).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

12

Manual, 09/2016, A5E03484776-AD

Product overview 2.2 Functions

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front door

Other components
The following component can be ordered separately:
Front connectors, including potential jumpers and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

2.2

Functions

2.2.1

Oversampling for outputs

Function

Oversampling is defined as the transfer of data in constant bus cycle segments (sub-cycles), whereby n sub-cycles correspond to one PROFINET bus cycle. A data packet is transmitted from the controller to the module, which outputs the packet in n constant bus sub-cycles.
Oversampling is useful whenever you require output of data with high time resolution but without using an extremely short PROFINET bus cycle and thus fast CPU cycles.
With oversampling, a PROFINET bus cycle is divided into constant bus sub-cycles:
 Each sub-cycle outputs a 16-bit value per channel.
 The shortest possible sub-cycle is 125 s.
 Sub-cycles are possible in increments of 2 to 16. The following applies here: Isochronous data cycle / number of sub-cycles  permitted sub-cycle duration (125 s).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

13

Product overview 2.2 Functions

Typical area of application
Controlling of a feed valve because output data can be controlled exactly at the current position of the machine.

Requirements

 Firmware version V2.1.0 or higher of the module.  Isochronous mode has to be set.

Configuration

You configure the oversampling function by means of the output rate parameter.

Chronological sequence
The existing output data of a data cycle (send clock) is copied into the interface module in the next data cycle and is available for the module in the data cycle after that.
The figure below shows the chronological sequence for oversampling with 10 sub-cycles.

n

Output value from cycle n

Figure 2-2 Chronological sequence with oversampling

Output interval

The duration of a sub-cycle corresponds to the output interval. The bus cycle time TDP (send clock for isochronous mode) is specified in the configuration software. The actual output interval of the module results from this time divided by the set sampling rate (2-16).

Figure 2-3 Example for the calculation of the output interval

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

14

Manual, 09/2016, A5E03484776-AD

Wiring

3

This section contains the block diagram of the module and outlines various connection options.
You can find information on wiring the front connector, establishing a cable shield, etc in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers included with the front connector!

Abbreviations used
Meaning of the abbreviations used in the figures below:

QVn QIn Sn+/SnL+ M MANA CHx PWR

Voltage output channel Current output channel Sense line channel Supply voltage connection Ground connection Reference potential of the analog circuit Channel or display of the channel status Display for the supply voltage

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). Use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

15

Wiring
Block diagram and terminal assignment for the voltage output
The example in the figure below shows the pin assignment for a voltage measurement.  2-wire connection, no compensation for line impedance.  4-wire connection with compensation for line impedance is displayed.

 2-wire connection (jumper at the front connector)  4-wire connection  Digital Analog Converter (DAC)  Backplane bus interface  Supply voltage via power supply element

CHx RUN ERROR PWR

Figure 3-2 Block diagram and terminal assignment for the voltage output

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

16

Manual, 09/2016, A5E03484776-AD

Wiring
Block diagram and terminal assignment for a current output
The following figure shows an example of the terminal assignment for current output circuitry.

 Load on current outputs  Digital Analog Converter (DAC)  Backplane bus interface  Supply voltage via power supply element

CHx RUN ERROR PWR

Channel or 8 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and terminal assignment for a current output

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

17

Parameters/address space

4

4.1

Output ranges

The module is set to voltage output type by default with output range ±10 V. You need to edit the module parameters with STEP 7 if you want to use a different output range or output type.

Output type and output ranges

Output type Voltage
Current
Deactivated

Output range
1 V to 5 V 0 V to 10 V ±10 V
0 mA to 20 mA 4 mA to 20 mA ±20 mA
-

Representation of analog values
See Appendix Representation of analog values in the voltage output ranges (Page 48).
See Appendix Representation of analog values in the current output ranges (Page 49).

The tables of the output ranges, overflow, overrange, etc. are available in the Appendix Representation of analog values (Page 46).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

18

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.2 Parameters

4.2

Parameters

Parameters of AQ 8xU/I HS
The AQ 8xU/I HS is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of a GSD file and the configuration software of any provider. The module does not check the validity of the configured properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to chapter Parameter assignment and structure of the parameter data records (Page 42).

Table 4- 1 Configurable parameters and their defaults

Parameters
AQ configuration Output rate (for the oversampling function) Diagnostics · Missing supply voltage
L+ · Wire break · Short circuit to ground · Overflow · Underflow

Range of values Default setting

1...16 val-

1

ues/cycle

Yes/No

No

Yes/No

No

Yes/No

No

Yes/No

No

Yes/No

No

Parameter assignment in RUN
No
No No No No No

Scope with configuration software, e.g., STEP 7 (TIA Portal)
Integrated in the GSD file hardware cata- PROFIBUS DP log STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

Module

---

(not GSD file)

Channel 1)
Channel Channel Channel Channel

Module 2)
Module 2) Module 2) Module 2) Module 2)

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

19

Parameters/address space 4.2 Parameters

Parameters
Output · Output type · Output range · Reaction to CPU STOP

Range of values Default setting Parameter assignment in RUN

Voltage/current Voltage

Yes

See chapter

±10 V

Yes

output ranges

(Page 18)

· Turn off

Turn off

Yes

· Keep last value

· Output substitute value
4)

Scope with configuration software, e.g., STEP 7 (TIA Portal)
Integrated in the GSD file hardware cata- PROFIBUS DP log STEP 7 (TIA Portal) as of V12 or GSD file PROFINET IO

Channel Channel

Channel Channel

Channel

Channel 3)
· Turn off · Keep last
value

· Substitute value

See Parameter 0

Yes

Channel

--- 3)

assignment and

structure of the

parameter data

records

(Page 42)

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault.
You can prevent this message burst by assigning the diagnostics function to one channel only. 2) You can set the effective range of the diagnostics for each channel in the user program with data records 64 to 71. 3) You can configure the setting "Output substitute value" and the substitute value in the user program by means of data
records 64 to 71.

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. A short-circuit detection is not possible for small output values; the output voltages must therefore be below -0.5 V or above +0.5 V.

Open-circuit detection
The diagnostics for open circuit can be configured for the current output type. An open-circuit detection is not possible for small output values; the output voltages must therefore be below -3 mA or above +3 mA.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

20

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Output rate

Specifies the number of sub-cycles per isochronous data cycle for the for the oversampling function.

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Short circuit to ground
Enabling of the diagnostics if a short-circuit of the output to MANA occurs.

Overflow

Enabling of the diagnostics when the output value exceeds the overrange.

Underflow

Enabling of the diagnostics when the output value violates the underrange.

Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state.

Substitute value
The substitute value is the value that the module outputs in case of a CPU STOP.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

21

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of AQ 8xU/I HS
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 2 Configuration options

Configuration

Abbreviation/module name in the GSD file

1 x 8-channel without value status 1 x 8-channel with value status 8 x 1-channel without value status

AQ 8xU/I HS AQ 8xU/I HS QI AQ 8xU/I HS S

8 x 1-channel with value status

AQ 8xU/I HS S QI

1 x 8-channel with value status for moduleinternal Shared Output with up to 4 submodules
1 x 8-channel without value status for oversampling

AQ 8xU/I HS MSO ---

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12
or higher or STEP 7 V5.5 SP3 or higher

V12 or higher

X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V14 or higher with HSP

---

0186

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 AQ 8xU/I HS QI
 AQ 8xU/I HS S QI
 AQ 8xU/I HS MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

22

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.4 Address space
Address space of the AQ 8xU/I HS and AQ 8xU/I HS QI
The following figure shows the address space allocation for the configuration as 8-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB x" stands, for example, for the module start address output byte x.

Figure 4-1 Address space for configuration as 1 x 8-channel AQ 8xU/I HS with value status

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

23

Parameters/address space 4.4 Address space
Address space for configuration as 8 x 1-channel AQ 8xU/I HS QI and AQ 8xU/I HS S QI
For the configuration as a 8 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable submodules is dependent on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 8-channel module configuration, each of the eight submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 8 x 1-channel AQ 8xU/I HS S QI with value status

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

24

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 8-channel AQ 8xU/I HS MSO
For the configuration as a 1 x 8-channel module (module-internal Shared Output, MSO), channels 0 to 7 of the module are copied to multiple submodules. Channels 0 to 7 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device.  The IO controller to which submodule 1 is assigned has write access to outputs 0 to 7.  The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs
0 to 7. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

25

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 8-channel AQ 8xU/I HS MSO with value status

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

26

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 3 and 4.

Figure 4-4 Address space for configuration as 1 x 8-channel AQ 8xU/I HS MSO with value status

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

27

Parameters/address space 4.4 Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Address space for configuration as 1 x 8-channel AQ 8xU/I HS for oversampling
The following figure shows the address space assignment with the configuration as 8channel module for the oversampling function. You can freely assign the start address for the module. The addresses of the channels are derived from the start address.
Writing always starts from QB x. If fewer than 16 sub-cycles are set, the addresses that are then unused are ignored.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

28

Manual, 09/2016, A5E03484776-AD

Parameters/address space 4.4 Address space
"QB x" stands, for example, for the module start address output byte x.

Figure 4-5 Address space for configuration as 1 x 8-channel AI 8xU/I HS for oversampling

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

29

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of the AQ 8xU/I HS.

Figure 5-1 LED displays of the AQ 8xU/I HS module

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

30

Manual, 09/2016, A5E03484776-AD

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms.

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules. · Verify that the U connectors are inserted. · Check to see if too many modules are inserted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Remedy Check the L+ supply voltage.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel deactivated
Channel configured and OK
Diagnostic alarm: e.g., wire break, overflow, underflow

Remedy ---
---
Check the wiring. Disable diagnostics.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

31

Interrupts/diagnostics alarms 5.2 Interrupts

See also

Diagnostics alarms (Page 33)

5.2

Interrupts

The analog output module AQ 8xU/I HS supports diagnostic interrupts.

You can find detailed information on the event in the error organization block with the RALRM instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Short circuit to ground  Wire break  Overflow  Underflow  Parameter assignment error

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

32

Manual, 09/2016, A5E03484776-AD

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm

Error code

Short circuit to ground 1H

Wire break

6H

Meaning Overload at output Short-circuit of output QV to MANA Encoder circuit impedance too high

Wirebreak between the module and actuator
Channel not connected (open)

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

The output value set by the user program exceeds the valid rated range/overshoot range.
The output value set by the user program undershoots the valid rated range/undershoot range.
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment.
Supply voltage L+ of the module is missing

Remedy Eliminate overload Eliminate the short-circuit Use a different actuator type or modify the wiring, for example, use cables with larger cross-section Connect the cable
· Disable the channel ("output type" parameter)
· Connect the channel Correct the output value
Correct the output value
Correct the parameter assignment
Connect supply voltage L+ to module

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

33

Technical specifications

6

Technical specifications of the AQ 8xU/I HS

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7532-5HF00-0AB0
AQ 8xU/I HS FS01 V2.1.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Scalable output range

No

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V14 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

Yes

MSO

Yes

CiR Configuration in RUN

Configuration in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes
260 mA; with 24 V DC supply

Power

Power consumption from the backplane bus

1.15 W

Power loss

Power loss, typ.

7 W

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

34

Manual, 09/2016, A5E03484776-AD

Technical specifications

Analog outputs Number of analog outputs Voltage output, short-circuit protection Voltage output, short-circuit current, max. Current output, open-circuit voltage, max. Cycle time (all channels), min.
Output ranges, voltage 0 V to 10 V 1 V to 5 V -10 V to +10 V Output ranges, current 0 mA to 20 mA -20 mA to +20 mA 4 mA to 20 mA Connection of actuators for voltage output two-wire connection for voltage output four-wire connection for current output two-wire connection Load resistance (in the rated output range) for voltage outputs, min. for voltage outputs, capacitive load, max. for current outputs, max. for current outputs, inductive load, max. Cable length shielded, max. Analog value generation for the outputs Integration and conversion time/resolution per channel Resolution with overrange (bit including sign), max. Conversion time (per channel)
Settling time for resistive load for capacitive load for inductive load

6ES7532-5HF00-0AB0
8 Yes 45 mA 20 V 125 µs; regardless of the number of activated channels
Yes Yes Yes
Yes Yes Yes
Yes Yes Yes
1 k 100 nF 500  1 mH
200 m
16 bit
50 µs; regardless of the number of activated channels
30 µs; see additional description in the manual 100 µs; see additional description in the manual 100 µs; see additional description in the manual

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

35

Technical specifications

6ES7532-5HF00-0AB0

Errors/accuracies

Output ripple (relative to output range, bandwidth 0.02% 0 to 50 kHz), (+/-)

Linearity error (relative to output range), (+/-)

0.15%

Temperature error (in relation to output range), (+/-)

0.002%/K

Crosstalk between outputs, max.

-100 dB

Repeat accuracy in settled state at 25 °C (in rela- 0.05% tion to output range), (+/-)

Operational limit in overall temperature range

Voltage in relation to output range, (+/-)

0.3%

Current in relation to output range, (+/-)

0.3%

Basic error limit (operational limit at 25 °C)

Voltage in relation to output range, (+/-)

0.2%

Current in relation to output range, (+/-)

0.2%

Isochronous mode

Isochronous mode (application synchronized up to Yes terminal)

Execution and activation time (TCO), min.

100 µs

Bus cycle time (TDP), min.

250 µs

Interrupts/diagnostics/status information

Diagnostics function

Yes

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

Yes

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for output type current

Short-circuit

Yes; only for output type voltage

Overflow/underflow

Yes

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

Yes; green LED

Channel status display

Yes; green LED

For channel diagnostics

Yes; red LED

For module diagnostics

Yes; red LED

Electrical isolation

Electrical isolation of channels

Between the channels

No

Between the channels, in groups of

8

Between the channels and backplane bus

Yes

Between the channels and load voltage L+

Yes

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

36

Manual, 09/2016, A5E03484776-AD

Technical specifications

Permitted potential difference between S- and MANA (UCM) Isolation Isolation tested with Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7532-5HF00-0AB0
8 V DC
707 V DC (type test)
No
35 mm 147 mm 129 mm
325 g

Derating depending on overall length, ambient temperature and output type (per module)
The following trends show the number of channels (CHx) that can be used simultaneously in horizontal and vertical installation of the S7-1500 automation system/ET 200MP distributed I/O system depending on the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Information on channels used simultaneously (per module) for output type: Current and voltage

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

37

Technical specifications
Note All eight channels can be used in the case of voltage outputs with load resistances > 5 k and ambient temperatures up to 40° (vertical installation) or up to 60° (horizontal installation).
Settling times for voltage outputs
The settling time for voltage outputs is influenced mainly by the capacitive load.

Figure 6-2 Typical settling times for voltage outputs

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

38

Manual, 09/2016, A5E03484776-AD

Technical specifications
Settling times for current outputs
The settling time for current outputs increases when the load impedance rises.

See also

Figure 6-3 Typical settling times for current outputs Parameters (Page 19)

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

39

Dimensional drawing

A

This appendix contains the dimensional drawing of the module installed on a mounting rail and with a shield bracket. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the AQ 8xU/I HS module

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

40

Manual, 09/2016, A5E03484776-AD

Dimensional drawing
Figure A-2 Dimensional drawing of the AQ 8xU/I HS module, side view with open front panel

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

41

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Short circuit to ground Wire break Substitute value

Dependent parameters
With output type voltage only With output type current only Only if Reaction to CPU STOP -> Output substitute value is configured

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 71. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

42

Manual, 09/2016, A5E03484776-AD

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You obtain the diagnostics data records 0 and 1 with the read back parameter data records 0 and 1. You can find additional information in the Interrupts section of the manual for the PROFIBUS DP interface module on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
The channel parameters in data records 64 to 71 are available for 1x 8-channel configuration and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  ...  Data record 70 for channel 6  Data record 71 for channel 7 For configuration 8 x 1-channel, the module has 8 submodules with one channel each. The parameters for the channel are available in data record 64 and are assigned as follows:  Data record 64 for channel 0 (submodule 1)  Data record 64 for channel 1 (submodule 2)  ...  Data record 64 for channel 5 (submodule 6)  Data record 64 for channel 6 (submodule 7)  Data record 64 for channel 7 (submodule 8) Address the respective submodule for data record transfer.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

43

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 7. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Data record structure: Bytes 0 to 7
Note You can only configure the oversampling function with STEP 7 (TIA Portal) via the output rate parameter.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

44

Manual, 09/2016, A5E03484776-AD

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Output type codes
The following table lists all output types of the analog output module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 2 Code for the output type
Output type Deactivated Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for the output ranges
The table below contains all output ranges of the analog output module with their codes. Enter these codes at byte 3 of the data record for the corresponding channel (see the previous figure).

Table B- 3 Output range code
Output range for voltage 1 V to 5 V 0 V to 10 V ±10 V Output range for current 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Valid substitute values
The following table lists all output ranges for the valid substitute values. Enter these substitute values at bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). You can find the binary representation of the output ranges in section Representation of analog values (Page 46).

Table B- 4 Valid substitute value for the output range

Output range ±10 V 1 V to 5 V 0 V to 10 V ±20 mA 4 mA to 20 mA 0 mA to 20 mA

Valid substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

45

Representation of analog values

C

Introduction

This appendix describes the analog values for all output ranges supported by the AQ 8xU/I HS analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

dec

hex

1

1H

Analog value

high byte

low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

46

Manual, 09/2016, A5E03484776-AD

Representation of analog values C.1 Representation of output ranges

C.1

Representation of output ranges
The tables below set out the digitalized representation of the output ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 2 Bipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117,589
117,589 100,004 100,000 0,003617 0,000 -0,003617 -100,000 -100,004 -117,593 -117,593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 3 Unipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 0

Output value in %
117,589
117,589 100,004 100,000 0,003617 0,000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

47

Representation of analog values C.2 Representation of analog values in the voltage output ranges

C.2

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 4 Voltage output range ±10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-75 % -100 %
-117.593 % <-117.593 %

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V
-11.76 V -11.76 V

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Table C- 5 Voltage output range 0 V to 10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 % <0 %

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 V to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Overshoot range
Rated range Minimum output value

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

48

Manual, 09/2016, A5E03484776-AD

C.3

Representation of analog values C.3 Representation of analog values in the current output ranges

Table C- 6 Voltage output range 1 V to 5 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-25 % <-25 %

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Voltage output range 1 V to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 7 Current output range ±20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-75 % -100 %
-117.593 % <-117.593 %

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA -723.4 nA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

Manual, 09/2016, A5E03484776-AD

49

Representation of analog values C.3 Representation of analog values in the current output ranges

Table C- 8 Current output range 0 to 20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 % <0 %

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 mA to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Minimum output value

Table C- 9 Current output range 4 to 20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-25 % <-25 %

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 mA to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA 4 mA
0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Analog output module AQ 8xU/I HS (6ES7532-5HF00-0AB0)

50

Manual, 09/2016, A5E03484776-AD

SIMATIC
S7-1500/ET 200MP Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E36633205-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E36633205-AB  09/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Functions that relate in general to the systems are described in these manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:
 As of firmware version V1.1.0, the module supports the isochronous mode function.
 Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016:

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information regarding the product described in the documentation or its handling, or draws special attention to a section of the documentation.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

4

Manual, 09/2016, A5E36633205-AB

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

5

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 16

4.1

Output ranges ........................................................................................................................ 16

4.2

Parameters............................................................................................................................. 17

4.3

Declaration of parameters...................................................................................................... 19

4.4

Address space ....................................................................................................................... 20

5 Interrupts/diagnostics alarms................................................................................................................. 25

5.1

Status and error displays ....................................................................................................... 25

5.2

Interrupts ................................................................................................................................ 27

5.3

Diagnostics alarms................................................................................................................. 28

6 Technical specifications ........................................................................................................................ 29

A Dimensional drawing............................................................................................................................. 35

B Parameter data records ........................................................................................................................ 37

B.1

Parameter assignment and structure of the parameter data records .................................... 37

C Representation of analog values ........................................................................................................... 41

C.1

Representation of output ranges............................................................................................ 42

C.2

Representation of analog values in the voltage output ranges.............................................. 43

C.3

Representation of analog values in the current output ranges .............................................. 45

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

6

Manual, 09/2016, A5E36633205-AB

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

8

Manual, 09/2016, A5E36633205-AB

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

10

Manual, 09/2016, A5E36633205-AB

Product overview

2.1

Properties

Article number
6ES7532-5ND00-0AB0

View of the module

2

Figure 2-1 View of the AQ 4xU/I HF module

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

11

Product overview 2.1 Properties

Properties

The module has the following technical properties:  4 electrically isolated analog outputs  Selection of channels for voltage output  Selection of channels for current output  Resolution: 16 bits including sign  Configurable diagnostics (per channel)
The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Isochronous mode
Calibration in runtime Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.1.0 or higher
V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of V13,
SP1 and HSP 0166
X

GSD file in STEP 7 (TIA Portal) as of V12 or STEP 7 as of V5.5 SP3
--- / X

X

X

X

X

V14 or higher and

---

HSP 0186

(PROFINET IO only)

X

---

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

X (PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front cover

Other components
The following component can be ordered separately: Front connectors, including potential jumpers and cable ties You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

12

Manual, 09/2016, A5E36633205-AB

Wiring

3

This section contains the block diagram of the module and outlines various connection options.
You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Note · You may use and combine the different wiring options for all channels. · Do not insert the potential jumpers included with the front connector!

Abbreviations used
Meaning of the abbreviations used in the following figures:

QVn QIn Sn+/SnL+ M MANA 0 bis 3

Voltage output channel Current output channel Sense line channel Supply voltage connection Ground connection Reference potential of the analog circuit

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). Use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

13

Wiring
Block diagram and terminal assignment for the voltage output
The following figure shows an example of the wiring options:  2-wire connection, without compensation for line resistances.  4-wire connection, with compensation for line resistances.

 2-wire connection (jumper at the front connector)  4-wire connection  Digital Analog Converter (DAC)  Electrical isolation  Backplane bus interface  Power via supply module

CHx RUN ERROR PWR

Figure 3-2 Block diagram and terminal assignment for the voltage output

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

14

Manual, 09/2016, A5E36633205-AB

Wiring
Block diagram and terminal assignment for the current output
The following figure shows an example of the terminal assignment for current output circuitry.

 Load on current outputs  Digital Analog Converter (DAC)  Electrical isolation  Backplane bus interface  Power via supply module

CHx RUN ERROR PWR

Figure 3-3 Block diagram and terminal assignment for the current output

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

15

Parameters/address space

4

4.1

Output ranges

The module is set to voltage output type by default with output range ±10 V. You need to edit the module parameters with STEP 7 if you want to use a different output range or output type.

Output type and output ranges
The following table shows the output type and the respective output ranges.

Table 4- 1 Output type and output ranges

Output type Voltage
Current
Deactivated

Output range 1 V to 5 V 0 V to 10 V ±10 V 0 to 20 mA 4 to 20 mA ±20 mA -

Representation of analog values See Appendix Representation of analog values in the voltage output ranges (Page 43).
See Appendix Representation of analog values in the current output ranges (Page 45).
-

The tables of the output ranges, overflow, overshoot range, etc. are available in the appendix Representation of analog values (Page 41).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

16

Manual, 09/2016, A5E36633205-AB

Parameters/address space 4.2 Parameters

4.2

Parameters

Parameters of AQ 4xU/I HF
The AQ 4xU/I HF is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of the GSD file and the configuration software of any provider. The module does not check the validity of the parameterized properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; see chapter Parameter assignment and structure of the parameter data record. (Page 37)
The following parameter settings for the channels are possible:

Table 4- 2 Configurable parameters and their defaults

Parameters
Diagnostics · Missing supply voltage
L+ · Wire break · Short circuit to M · Underflow · Overflow

Range of values

Default setting

Parameter assignment in RUN

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7 (TIA Portal) as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel 1)

Module 2)

Channel Channel Channel Channel

Module 2) Module 2) Module 2) Module 2)

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

17

Parameters/address space 4.3 Declaration of parameters

Parameters
Output · Output type

Range of values

Default setting

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog as of STEP 7 (TIA Portal) as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Current/voltage Voltage

Yes

Channel

Channel

· Output range

See section

±10 V

Yes

Output ranges

(Page 16)

· Reaction to CPU STOP · Turn off

Turn off

Yes

· Keep last value

· Output substitute value

Channel Channel

Channel Channel

· Substitute value

See Table B-4 0 Valid substitute value for the output range (Page 40)

Yes

Channel

Channel

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.
2) You can set the effective range of the diagnostics for each channel in the user program with data records 64 to 67.

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. Short-circuit detection is not possible for small output values. The output voltages must therefore be below -0.1 V or above +0.1 V.

Open-circuit detection
The diagnostics for open circuit can be configured for the current output type. Wire break detection is not possible for small output values; the output voltages must therefore be below -0.4 mA or above +0.4 mA.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

18

Manual, 09/2016, A5E36633205-AB

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Short-circuit to ground
Enabling of the diagnostics if a short-circuit of the output to MANA occurs.

Overflow

Enabling of the diagnostics when the output value exceeds the overrange.

Underflow

Enabling of the diagnostics when the output value violates the underrange.

Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state.

Substitute value
The substitute value is the value that the module outputs in case of a CPU STOP.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

19

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of AQ 4xU/I HF
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration

Abbreviation/module name
in the GSD file

1 x 4-channel without value status 1 x 4-channel with value status 4 x 1-channel without value status

AQ 4xU/I HF AQ 4xU/I HF QI AQ 4xU/I HF S

4 x 1-channel with value status

AQ 4xU/I HF S QI

1 x 4-channel with value status for module- AQ 4xU/I HF MSO internal Shared Output with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7 (TIA Portal)
as of V13 SP1 with HSP 0166
X

GSD file in STEP 7 (TIA Portal)
V12 or higher or STEP 7 V5.5 SP3 or
higher
X

X

X

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

X

X

(PROFINET IO only)

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 AQ 4xU/I HF QI
 AQ 4xU/I HF S QI
 AQ 4xU/I HF MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

20

Manual, 09/2016, A5E36633205-AB

Parameters/address space 4.4 Address space
Address space of the AQ 4xU/I HF
The following figure shows the address space allocation for the configuration as 4-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB x" stands, for example, for the module start address output byte x.
Figure 4-1 Address space for configuration as 1 x 4-channel AQ 4xU/I HF with value status

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

21

Parameters/address space 4.4 Address space
Address space for configuration as 4 x 1-channel AQ 4xU/I HF S QI
For the configuration as a 4 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable submodules is dependent on the interface module used. Observe the information in the manual for the particular interface module. Contrary to the 1 x 4-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 1-channel AQ 4xU/I HF S QI with value status

Address space for configuration as 1 x 4-channel AQ 4xU/I HF MSO
For the configuration as a 1 x 4-channel module (module-internal Shared Output, MSO), channels 0 to 3 of the module are copied to multiple submodules. Channels 0 to 3 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device.
 The IO controller to which submodule 1 is assigned has write access to outputs 0 to 3.
 The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 3.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

22

Manual, 09/2016, A5E36633205-AB

Parameters/address space 4.4 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state. The following figure shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 4-channel AQ 4xU/I HF MSO with value status

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

23

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodules 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 4-channel AQ 4xU/I HF MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

24

Manual, 09/2016, A5E36633205-AB

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AQ 4xU/I HF.

Figure 5-1 LED displays of the module AQ 4xU/I HF

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

25

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic reports can be found in chapter Diagnostics alarms (Page 28).

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective

Remedy
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Remedy Check the supply voltage.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel deactivated
Channel configured and OK
Diagnostic alarm: e.g., wire break, overflow, underflow

Remedy ---
---
Check the wiring. Disable diagnostics.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

26

Manual, 09/2016, A5E36633205-AB

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

The analog output module AQ 4xU/I HF supports diagnostics interrupts.

You can find detailed information on the event in the error organization block with the RALRM instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Short circuit to ground  Wire break  Overflow  Underflow  Parameter assignment error

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

27

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes for each diagnostics event on the module. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short-circuit to ground
Wire break

Error code 1H
6H

Meaning Overload at output Short-circuit of output QV to MANA Encoder circuit impedance too high

Wirebreak between the module and actuator
Channel not connected (open)

Overflow

7H

Underflow

8H

Parameter assignment error 10H

Load voltage missing

11H

The output value set by the user program exceeds the valid rated range/overshoot range.
The output value set by the user program undershoots the valid rated range/undershoot range.
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment.
Supply voltage L+ of the module is missing

Remedy Eliminate overload Eliminate the short-circuit Use a different actuator type or modify the wiring, for example, use cables with larger cross-section Connect the cable
· Disable the channel ("output type" parameter)
· Connect the channel Correct the output value
Correct the output value
Correct the parameter assignment
Connect supply voltage L+ to module

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

28

Manual, 09/2016, A5E36633205-AB

Technical specifications

6

Technical specifications of the AQ 4xU/I HF

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7532-5ND00-0AB0
AQ 4xU/I HF FS01 V1.1.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V14 / -

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSO

Yes

CiR Configuration in RUN

Configuration in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes
160 mA; with 24 V DC supply

Power

Power consumption from the backplane bus

0.95 W

Power loss

Power loss, typ.

5 W

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

29

Technical specifications

Analog outputs Number of analog outputs Voltage output, short-circuit protection Voltage output, short-circuit current, max. Current output, open-circuit voltage, max. Cycle time (all channels), min.
Output ranges, voltage 0 V to 10 V 1 V to 5 V -10 V to +10 V Output ranges, current 0 mA to 20 mA -20 mA to +20 mA 4 mA to 20 mA Connection of actuators for voltage output two-wire connection for voltage output four-wire connection for current output two-wire connection Load resistance (in the rated output range) for voltage outputs, min. for voltage outputs, capacitive load, max. for current outputs, max. for current outputs, inductive load, max. Cable length shielded, max. Analog value generation for the outputs Integration and conversion time/resolution per channel Resolution with overrange (bit including sign), max. Conversion time (per channel)
Settling time for resistive load for capacitive load for inductive load

6ES7532-5ND00-0AB0
4 Yes 24 mA 22 V 125 µs; regardless of the number of activated channels
Yes Yes Yes
Yes Yes Yes
Yes Yes Yes
1 kOhm; 0.5 kOhm at 1 to 5 V 1 µF 750  10 mH
800 m; for current, 200 m for voltage
16 bit
125 µs; regardless of the number of activated channels
0.2 ms; see additional description in the manual 1.8 ms; see additional description in the manual 2 ms; see additional description in the manual

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

30

Manual, 09/2016, A5E36633205-AB

Technical specifications

6ES7532-5ND00-0AB0

Errors/accuracies

Output ripple (relative to output range, bandwidth 0.02% 0 to 50 kHz), (+/-)

Linearity error (relative to output range), (+/-)

0.015 %

Temperature error (in relation to output range), (+/-)

0.002%/K

Crosstalk between outputs, max.

-100 dB

Repeat accuracy in settled state at 25 °C (in rela- 0.005 % tion to output range), (+/-)

Operational limit in overall temperature range

Voltage in relation to output range, (+/-)

±10 V; 0 V to 10 V: ±0.12 %; 1 V to 5 V: ±0.1 %

Current in relation to output range, (+/-)

±20 mA; 0 mA to 20 mA: ±0.2 %; 4 mA to 20 mA: ±0.12 %

Basic error limit (operational limit at 25 °C)

Voltage in relation to output range, (+/-)

0.06 %

Current in relation to output range, (+/-)

0.1%

Isochronous mode

Isochronous mode (application synchronized up to Yes terminal)

Execution and activation time (TCO), min.

100 µs

Bus cycle time (TDP), min.

250 µs

Interrupts/diagnostics/status information

Diagnostics function

Yes

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

Yes

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for output type current

Short-circuit

Yes; only for output type voltage

Overflow/underflow

Yes

Diagnostics indicator LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

Yes; green LED

Channel status display

Yes; green LED

For channel diagnostics

Yes; red LED

For module diagnostics

Yes; red LED

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

31

Technical specifications

Electrical isolation Electrical isolation of channels Between the channels Between the channels, in groups of Between the channels and backplane bus Between the channels and load voltage L+ Permitted potential difference Between different circuits
Isolation Isolation tested with
Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx.

6ES7532-5ND00-0AB0
Yes 1 Yes Yes
60 V DC / 30 V AC; Isolation measured for 120 V AC basic isolation: Between the channels and supply voltage L+, between the channels and the backplane bus, between the channels
2000 V DC between the channels and the supply voltage L+, 2000 V DC between the channels and the backplane bus, 2000 V DC between the channels, 707 V DC (type test) between the supply voltage L+ and the backplane bus
Yes
35 mm 147 mm 129 mm
300 g

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

32

Manual, 09/2016, A5E36633205-AB

Technical specifications
Settling times for voltage outputs
The settling time for voltage outputs is influenced mainly by the capacitive load.

Figure 6-1 Typical settling times for voltage outputs

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

33

Technical specifications
Settling times for current outputs
The figure below illustrates the dependence of the settling time of load resistance and the inductive load.

Figure 6-2 Typical settling times for current outputs

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

34

Manual, 09/2016, A5E36633205-AB

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the AQ 4xU/I HF module

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

35

Dimensional drawing
Figure A-2 Dimension drawing of the AQ 4xU/I HF module, side view with open front cover

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

36

Manual, 09/2016, A5E36633205-AB

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Short circuit to M Wire break Substitute value

Dependent parameters
With output type voltage only With output type current only Only if Reaction to CPU STOP -> Output substitute value is configured

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 67. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

37

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel
The channel parameters in data records 64 to 67 are available for 1x 4-channel configuration and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  Data record 66 for channel 2  Data record 67 for channel 3 For configuration 4 x 1-channel, the module has 4 submodules with one channel each. The parameters for the channel are available in data record 64 and are assigned as follows:  Data record 64 for channel 0 (submodule 1)  Data record 64 for channel 1 (submodule 2)  Data record 64 for channel 2 (submodule 3)  Data record 64 for channel 3 (submodule 4) Address the respective submodule for data record transfer.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

38

Manual, 09/2016, A5E36633205-AB

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The figure below shows the structure of data record 64 for channel 0 as an example. The structure is identical for channels 1 to 3. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 7

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

39

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Output type codes
The following table lists all output types of the analog output module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 2 Code for the output type
Output type Deactivated Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for the output ranges
The following table lists all voltage and current output ranges of the analog output module along with their codes. In each case, enter these codes at byte 3 of the respective data record (see previous figure).

Table B- 3 Output range code
Output range for voltage 1 V to 5 V 0 V to 10 V ±10 V Output range for current 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Valid substitute values
The following table lists all output ranges for the valid substitute values. Enter these substitute values at bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). The binary representation of output ranges is available on the Internet in the function manual Analog value processing for SIMATIC in the appendix (Page 42).

Table B- 4 Valid substitute value for the output range

Output range ±10 V 1 V to 5 V 0 V to 10 V ±20 mA 4 mA to 20 mA 0 mA to 20 mA

Valid substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

40

Manual, 09/2016, A5E36633205-AB

Representation of analog values

C

Introduction

This appendix describes the analog values for all output ranges supported by the AQ 4xU/I HF analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign

Values

dec

hex

16

1

1H

Analog value

high byte

low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

41

Representation of analog values C.1 Representation of output ranges

C.1

Representation of output ranges
The tables below set out the digitalized representation of the output ranges separately for bipolar and unipolar ranges. The resolution is 16 bits.

Table C- 2 Bipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 3 Unipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

42

Manual, 09/2016, A5E36633205-AB

C.2

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 4 Voltage output range ±10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-75 % -100 %

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V

-117.593 % <-117.593 %

-27649 -32512 <-32512

93FF 8100 < 8100

-11.76 V -11.76 V

Range Maximum output value Overshoot range
Rated range
Undershoot range Minimum output value

Table C- 5 Voltage output range 0 V to 10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 % <0 %

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 V to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Overshoot range Rated range
Minimum output value

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

43

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Table C- 6 Voltage output range 1 V to 5 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-25 % <-25 %

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 < E500

Voltage output range 1 V to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Range Maximum output value Overshoot range Rated range
Undershoot range Minimum output value

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

44

Manual, 09/2016, A5E36633205-AB

C.3

Representation of analog values C.3 Representation of analog values in the current output ranges

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 7 Current output range ±20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-75 % -100 %
-117.593 % <-117.593 %

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA -723.4 nA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Table C- 8 Current output range 0 to 20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 % <0 %

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 mA to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Minimum output value

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

Manual, 09/2016, A5E36633205-AB

45

Representation of analog values C.3 Representation of analog values in the current output ranges

Table C- 9 Current output range 4 to 20 mA

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-25 % <-25 %

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 mA to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA 4 mA
0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Analog Output Module AQ 4xU/I HF (6ES7532-5ND00-0AB0)

46

Manual, 09/2016, A5E36633205-AB

SIMATIC
S7-1500/ET 200MP Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

08/2018
A5E03484696-AE

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03484696-AE  07/2018 Subject to change

Copyright © Siemens AG 2012 - 2018. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in these manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following changes:  New licensing conditions and copyright information of the Open Source Software  New technical specifications

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109757558).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

4

Manual, 08/2018, A5E03484696-AE

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

3 Wiring ................................................................................................................................................... 13

4 Parameters/address space ................................................................................................................... 16

4.1

Output ranges .........................................................................................................................16

4.2

Parameters .............................................................................................................................17

4.3

Declaration of parameters ......................................................................................................19

4.4

Address space ........................................................................................................................20

5 Interrupts/diagnostics alarms................................................................................................................. 25

5.1

Status and error displays ........................................................................................................25

5.2

Interrupts .................................................................................................................................27

5.3

Diagnostics alarms..................................................................................................................28

6 Technical specifications ........................................................................................................................ 29

A Dimensional drawing............................................................................................................................. 33

B Parameter data records......................................................................................................................... 35

B.1

Parameter assignment and structure of the parameter data records.....................................35

C Representation of analog values ........................................................................................................... 39

C.1

Representation of output ranges ............................................................................................40

C.2

Representation of analog values in the voltage output ranges ..............................................41

C.3

Representation of analog values in the current output ranges ...............................................43

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

6

Manual, 08/2018, A5E03484696-AE

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

8

Manual, 08/2018, A5E03484696-AE

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

9

Product overview

2.1

Properties

Article number
6ES7532-5HD00-0AB0

View of the module

2

Properties

Figure 2-1 View of the AQ 4xU/I ST module
The module has the following technical properties:  4 analog outputs  Selection of channels for voltage output  Selection of channels for current output  Resolution: 16 bits including sign  Configurable diagnostics (per channel)

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

10

Manual, 08/2018, A5E03484696-AE

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M3 Parameter assignment in RUN Calibration in runtime Module-internal Shared Output (MSO)
Configurable submodules / submodules for Shared Device
Configurable after interface module IM 155-5 DP ST

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V2.0.0 or higher
V2.0.0 or higher
V2.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V12 or higher

--- / X

V12 or higher

X

V12 or higher

X

V12 or higher

X

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X (PROFINET IO only)

V13 or higher

X

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Compatibility

The following table shows the compatibility of the modules and the dependencies between hardware functional status (FS) and firmware version (FW) used:

Accessories

Hardware functional status FS01 FS02 FS03 FS04

Firmware version V1.0.0 to V2.0.x V1.0.0 to V2.0.x V2.1.0 V2.2.0 or higher

Note Upgrade to downgrade possible between V1.0.0 and V2.0.x
No upgrade or downgrade possible Upgrade and downgrade possible between V2.2.0 and higher

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strips  U connector  Universal front door

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

11

Product overview 2.1 Properties
Other components
The following component can be ordered separately: Front connectors, including potential jumpers and cable ties You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

12

Manual, 08/2018, A5E03484696-AE

Wiring

3

This section contains the block diagram of the module and outlines various connection options. You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Note You may use and combine the different wiring options for all channels. Do not insert the potential jumpers supplied with the front connector.

Abbreviations used
QVn QIn Sn+/SnL+ M MANA

Voltage output channel Current output channel Sense line channel Connection for supply voltage Ground connection Reference potential of the analog circuit

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 44 (M). Use terminals 42 (L+) and 43 (M) to loop the potential to the next module.

Figure 3-1 Power supply element wiring

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

13

Wiring
Block diagram and pin assignment for the voltage output
The following figure shows an example of the wiring options:  2-wire connection, without compensation for line resistances.  4-wire connection, with compensation for line resistances.

 2-wire connection (jumper at the front connector) CHx

 4-wire connection

RUN

 Digital-to-analog converter (DAC)

ERROR

 Backplane bus interface

PWR

 Supply voltage via power supply module

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for the voltage output

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

14

Manual, 08/2018, A5E03484696-AE

Wiring
Block diagram and pin assignment for the current output
The following figure shows an example of the pin assignment for current output circuitry.

 Load on current outputs  Digital-to-analog converter (DAC)  Backplane bus interface  Supply voltage via power supply module

CHx RUN ERROR PWR

Channel or 4 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and pin assignment for the current output

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

15

Parameters/address space

4

4.1

Output ranges

The module is set to voltage output type by default with output range ±10 V. You need to edit the module parameters with STEP 7 if you want to use a different output range or output type.

Output type and output ranges
The following table shows the output type and the respective output ranges.

Table 4- 1 Output type and output ranges

Output type Voltage
Current
Disabled

Output range 1 V to 5 V 0 V to 10 V ±10 V 0 mA to 20 mA 4 mA to 20 mA ±20 mA -

Representation of analog values See Representation of analog values in the voltage output ranges (Page 41)
See Representation of analog values in the current output ranges (Page 43)
-

The tables of the output ranges, overflow, overrange, etc. are provided in the appendix Representation of analog values (Page 39).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

16

Manual, 08/2018, A5E03484696-AE

Parameters/address space 4.2 Parameters

4.2

Parameters

AQ 4xU/I ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; see chapter Parameter assignment and structure of the parameter data record. (Page 35)

Table 4- 2 Configurable parameters and their defaults

Parameters
Diagnostics · Missing supply voltage
L+ · Wire break · Short circuit to M · Underflow · Overflow

Range of values Default setting Parameter assignment in RUN

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Yes/No

No

Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Channel*

Module**

Channel Channel Channel Channel

Module** Module** Module** Module**

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

17

Parameters/address space 4.2 Parameters

Parameters

Range of values Default setting Parameter assignment in RUN

Output · Output type

Current/voltage Voltage

Yes

· Output range

See chapter

±10 V

Yes

Output ranges

(Page 16)

· Reaction to CPU STOP · Turn off

Turn off

Yes

· Keep last value

· Output substitute value

· Substitute value

See Table B-4 0

Yes

Valid substitute

value for the

output range

(Page 38)

Scope with configuration software, e.g., STEP 7 (TIA Portal)

GSD file

GSD file

PROFINET IO PROFIBUS DP

Channel Channel

Channel Channel

Channel

Channel

Channel

Channel

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this message burst by assigning the diagnostics function to one channel only.
** You can set the effective range of the diagnostics for each channel in the user program with data records 64 to 67.

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. A short-circuit detection is not possible for small output values; the output voltages must therefore be below -0.1 V or above +0.1 V.

Open-circuit detection
The diagnostics for open circuit can be configured for the current output type. An open-circuit detection is not possible for small output values; the output voltages must therefore be below -0.2 mA or above +0.2 mA.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

18

Manual, 08/2018, A5E03484696-AE

Parameters/address space 4.3 Declaration of parameters

4.3

Declaration of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Short-circuit to ground
Enabling of the diagnostics if a short-circuit of the output to MANA occurs.

Overflow

Enabling of the diagnostics when the output value exceeds the overrange.

Underflow

Enabling of the diagnostics when the output value violates the underrange.

Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state.

Substitute value
The substitute value is the value that the module outputs in case of a CPU STOP.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

19

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of AQ 4xU/I ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration

Abbreviation/module name
in the GSD file

1 x 4-channel without value status 1 x 4-channel with value status 4 x 1-channel without value status

AQ 4xU/I ST AQ 4xU/I ST QI AQ 4xU/I ST S

4 x 1-channel with value status

AQ 4xU/I ST S QI

1 x 4-channel with value status for module- AQ 4xU/I ST MSO internal Shared Output with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V12 or higher

GSD file in STEP 7 (TIA Portal)
V12 or higher or STEP 7 V5.5 SP3 or
higher
X

V12 or higher

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 AQ 4xU/I ST QI
 AQ 4xU/I ST S QI
 AQ 4xU/I ST MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

20

Manual, 08/2018, A5E03484696-AE

Parameters/address space 4.4 Address space
Address space of the AQ 4xU/I ST
The following figure shows the address space allocation for the configuration as 4-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB x" stands, for example, for the module start address output byte x.
Figure 4-1 Address space for configuration as 1 x 4-channel AQ 4xU/I ST with value status

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

21

Parameters/address space 4.4 Address space
Address space for configuration as 4 x 1-channel AQ 4xU/I ST S QI
For the configuration as a 4 x 1-channel module, the channels of the module are divided into multiple submodules. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module. Unlike the 1 x 4-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 4 x 1-channel AQ 4xU/I ST S QI with value status

Address space for configuration as 1 x 4-channel AQ 4xU/I ST MSO
For the configuration as a 1 x 4-channel module (module-internal Shared Output, MSO), channels 0 to 3 of the module are copied to multiple submodules. Channels 0 to 3 are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device.
 The IO controller to which submodule 1 is assigned has write access to outputs 0 to 3.
 The IO controllers to which submodule 2, 3, or 4 is assigned have read access to outputs 0 to 3.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

22

Manual, 08/2018, A5E03484696-AE

Parameters/address space 4.4 Address space
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state. The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 4-channel AQ 4xU/I ST MSO with value status

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

23

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 4-channel AQ 4xU/I ST MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

24

Manual, 08/2018, A5E03484696-AE

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows the LED displays (status and error displays) of AQ 4xU/I ST.

Figure 5-1 LED displays of the AQ 4xU/I ST module

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

25

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic reports can be found in chapter Diagnostics alarms (Page 28).

RUN and ERROR LED
Table 5- 1 Status and error displays RUN and ERROR

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid parameter assignment is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check whether too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED
Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Solution Check the supply voltage.
---

CHx LED
Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel deactivated
Channel configured and OK
Diagnostics alarm: e.g., wire break, overflow, underflow

Solution ---
---
Check the wiring. Disable diagnostics.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

26

Manual, 08/2018, A5E03484696-AE

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

The analog output module AQ 4xU/I ST supports diagnostic interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Short-circuit to ground  Wire break  Overflow  Underflow  Parameter assignment error

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

27

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

If the module is operated distributed with PROFIBUS DP in an ET 200MP system, you have the option to read out diagnostics data with the instruction RDREC or RD_REC using data record 0 and 1. The structure of the data records is available on the Internet in the "Manual for interface module IM 155-5 DP ST (6ES7155-5BA00-0AB0)".

Table 5- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short-circuit to ground
Wire break

Error code 1H
6H

Overflow

7H

Underflow

8H

Parameter assign- 10H ment error

Load voltage missing 11H

Meaning Overload at output Short-circuit of output QV to MANA Actuator circuit impedance too high
Wirebreak between the module and actuator Channel not connected (open)

Solution Eliminate overload Eliminate the short-circuit Use a different actuator type or modify the wiring, for example, use cables with larger cross-section Connect the cable
· Disable the channel ("output type" parameter)
· Connect the channel

The output value set by the user program violates the valid rated range/overrange.
The output value set by the user program violates the valid rated range/underrange.
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment

Correct the output value Correct the output value Correct the parameter assignment

Supply voltage L+ of the module is miss- Connect supply voltage L+ to module ing

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

28

Manual, 08/2018, A5E03484696-AE

Technical specifications

6

Technical specifications of the AQ 4xU/I ST
The following table shows the technical specifications as of 08/2018. You will find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/de/en/pv/6ES7532-5HD00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
· Output range scalable
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Operating mode · Oversampling
· MSO
CiR ­ Configuration in RUN Reparameterization possible in RUN Calibration possible in RUN
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.

6ES7532-5HD00-0AB0
AQ 4xU/I ST FS04 V2.2.0 Yes
Yes; I&M0 to I&M3 No
V12 / V12
V5.5 SP3 / -
V1.0 / V5.1
V2.3 / -
No Yes
Yes Yes
24 V 20.4 V 28.8 V Yes
190 mA; with 24 V DC supply

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

29

Technical specifications

Article number Power
Power available from the backplane bus Power loss
Power loss, typ. Analog outputs
Number of analog outputs Voltage output, short-circuit protection Voltage output, short-circuit current, max. Current output, no-load voltage, max. Cycle time (all channels), min.
Output ranges, voltage · 0 to 10 V
· 1 V to 5 V
· -5 V to +5 V
· -10 V to +10 V Output ranges, current
· 0 to 20 mA
· -20 mA to +20 mA
· 4 mA to 20 mA Connection of actuators
· for voltage output two-wire connection
· for voltage output four-wire connection
· for current output two-wire connection Load impedance (in rated range of output)
· with voltage outputs, min.
· with voltage outputs, capacitive load, max.
· with current outputs, max.
· with current outputs, inductive load, max. Cable length
· shielded, max. Analog value generation for the outputs Integration and conversion time/resolution per channel
· Resolution with overrange (bit including sign), max.
· Conversion time (per channel)

6ES7532-5HD00-0AB0
0.6 W
4 W
4 Yes 24 mA 22 V 3.2 ms; independent of number of activated channels
Yes Yes No Yes
Yes Yes Yes
Yes Yes Yes
1 k; 0.5 kOhm at 1 to 5 V 1 µF 750  10 mH
800 m; for current, 200 m for voltage
16 bit
0.5 ms

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

30

Manual, 08/2018, A5E03484696-AE

Technical specifications

Article number Settling time
· for resistive load

6ES7532-5HD00-0AB0 1.5 ms

· for capacitive load

2.5 ms

· for inductive load

2.5 ms

Errors/accuracies

Output ripple (relative to output range, bandwidth 0 to 50 kHz), (+/-)

0.02 %

Linearity error (relative to output range), (+/-) 0.15 %

Temperature error (relative to output range), (+/-)

0.002 %/K

Crosstalk between the outputs, max.

-100 dB

Repeat accuracy in steady state at 25 °C (rela- 0.05 % tive to output range), (+/-)

Operational error limit in overall temperature range

· Voltage, relative to output range, (+/-)

0.3 %

· Current, relative to output range, (+/-)

0.3 %

Basic error limit (operational limit at 25 °C) · Voltage, relative to output range, (+/-)

0.2 %

· Current, relative to output range, (+/-)

0.2 %

Isochronous mode

Isochronous operation (application synchro- No nized up to terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Substitute values connectable

Yes

Alarms

· Diagnostic alarm

Yes

Diagnostic messages

· Monitoring the supply voltage

Yes

· Wire-break

Yes; Only for output type "current"

· Short-circuit

Yes; Only for output type "voltage"

· Overflow/underflow

Yes

Diagnostics indication LED · RUN LED

Yes; Green LED

· ERROR LED

Yes; Red LED

· Monitoring of the supply voltage (PWRLED)

Yes; Green LED

· Channel status display

Yes; Green LED

· for channel diagnostics

Yes; Red LED

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

31

Technical specifications

Article number · for module diagnostics

6ES7532-5HD00-0AB0 Yes; Red LED

Potential separation

Potential separation channels

· between the channels

No

· between the channels, in groups of

4

· between the channels and backplane bus Yes

· Between the channels and load voltage L+ Yes

Permissible potential difference between S- and MANA (UCM)
Isolation Isolation tested with
Decentralized operation Prioritized startup
Dimensions Width Height Depth
Weights Weight, approx.

8 V DC
707 V DC (type test)
No
35 mm 147 mm 129 mm
310 g

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

32

Manual, 08/2018, A5E03484696-AE

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the AQ 4xU/I ST module

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

33

Dimensional drawing
Figure A-2 Dimensional drawing of the AQ 4xU/I ST module, side view with open front panel

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

34

Manual, 08/2018, A5E03484696-AE

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Short circuit to M Wire break Substitute value

Dependent parameters
With output type voltage only With output type current only Only if Reaction to CPU STOP -> Output substitute value is configured

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 to 67. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
The module ignores errors that occurred during the transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

35

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Operation of the module behind a PROFIBUS DP interface module
If the module is operated behind a PROFIBUS DP interface module, the parameter data records 0 and 1 are not read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module device manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).
Assignment of data record and channel
The channel parameters in data records 64 to 67 are available for 1x 4-channel configuration and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1  Data record 66 for channel 2  Data record 67 for channel 3 For configuration 4 x 1-channel, the module has 4 submodules with one channel each. The parameters for the channel are available in data record 64 and are assigned as follows:  Data record 64 for channel 0 (submodule 1)  Data record 64 for channel 1 (submodule 2)  Data record 64 for channel 2 (submodule 3)  Data record 64 for channel 3 (submodule 4) Address the respective submodule for data record transfer.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

36

Manual, 08/2018, A5E03484696-AE

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The example in the following figure shows the structure of data record 64 for channel 0. The structure of channels 1 to 3 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 7

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

37

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Output type codes
The following table lists all output types of the analog output module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 2 Code for the output type
Output type Deactivated Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for the output ranges
The following table lists all voltage and current output ranges of the analog output module along with their codes. In each case, enter these codes at byte 3 of the respective data record (see previous figure).

Table B- 3 Output range code
Output range for voltage 1 V to 5 V 0 V to 10 V ±10 V Output range for current 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Valid substitute values
The following table lists all output ranges for the valid substitute values. Enter these substitute values at bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). The binary representation of output ranges is available on the Internet in Function Manual Analog value processing for SIMATIC.

Table B- 4 Valid substitute value for the output range

Output range ±10 V 1 V to 5 V 0 V to 10 V ±20 mA 4 mA to 20 mA 0 mA to 20 mA

Valid substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

38

Manual, 08/2018, A5E03484696-AE

Representation of analog values

C

Introduction

This appendix describes the analog values for all output ranges supported by the AQ 4xU/I ST analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign

Values

dec

hex

16

1

1H

Analog value

high byte

low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

39

Representation of analog values C.1 Representation of output ranges

C.1

Representation of output ranges
The tables below set out the digitalized representation of the output ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 2 Bipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117,589
117,589 100,004 100,000 0,003617 0,000 -0,003617 -100,000 -100,004 -117,593 -117,593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 3 Unipolar output ranges

Value dec.
32511
32511 27649 27648 1 0 0

Output value in %
117,589
117,589 100,004 100,000 0,003617 0,000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

40

Manual, 08/2018, A5E03484696-AE

C.2

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 4 Voltage output range ±10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-75 % -100 %

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V

-117.593 % <-117.593 %

-27649 -32512 <-32512

93FF 8100 < 8100

-11.76 V -11.76 V

Range Maximum output value Overshoot range
Rated range
Undershoot range Minimum output value

Table C- 5 Voltage output range 0 V to 10 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 % <0 %

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 V to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Overshoot range Rated range
Minimum output value

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

41

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Table C- 6 Voltage output range 1 V to 5 V

Values
>117.589 % 117.589 %
100 % 75 % 0.003617 % 0 %
-25 % <-25 %

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 < E500

Voltage output range 1 V to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Range Maximum output value Overshoot range Rated range
Undershoot range Minimum output value

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

42

Manual, 08/2018, A5E03484696-AE

C.3

Representation of analog values C.3 Representation of analog values in the current output ranges

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 7 Current output range ±20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%
-117.593% <-117.593%

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA -723.4 nA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Table C- 8 Current output range 0 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 mA to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Minimum output value

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

Manual, 08/2018, A5E03484696-AE

43

Representation of analog values C.3 Representation of analog values in the current output ranges

Table C- 9 Current output range 4 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 mA to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA 4 mA - 578.7 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0)

44

Manual, 08/2018, A5E03484696-AE

SIMATIC
S7-1500/ET 200MP Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)
Manual

_Pr_ef_ac_e_______________ _G_uid_e_to_d_o_cu_m_en_ta_tio_n______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g ____C__

09/2016
A5E32366632-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32366632-AC  11/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in these manuals.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

4

Manual, 09/2016, A5E32366632-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Guide to documentation .......................................................................................................................... 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 13

3.1

Wiring and block diagrams..................................................................................................... 13

4 Parameters/address space ................................................................................................................... 16

4.1

Output ranges ........................................................................................................................ 16

4.2

Parameters............................................................................................................................. 17

4.3

Explanation of parameters ..................................................................................................... 18

4.4

Address space ....................................................................................................................... 19

5 Interrupts/diagnostics alarms................................................................................................................. 23

5.1

Status and error displays ....................................................................................................... 23

5.2

Interrupts ................................................................................................................................ 25

5.3

Diagnostics alarms................................................................................................................. 25

6 Technical specifications ........................................................................................................................ 26

A Dimension drawing ............................................................................................................................... 30

B Parameter data records ........................................................................................................................ 32

B.1

Parameter assignment and structure of the parameter data records .................................... 32

C Representation of analog values ........................................................................................................... 36

C.1

Representation of output ranges............................................................................................ 36

C.2

Representation of analog values in the voltage output ranges.............................................. 37

C.3

Representation of analog values in the current output ranges .............................................. 39

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

6

Manual, 09/2016, A5E32366632-AC

Guide to documentation

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

7

Guide to documentation

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

8

Manual, 09/2016, A5E32366632-AC

Guide to documentation
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

9

Guide to documentation

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

10

Manual, 09/2016, A5E32366632-AC

Product overview

2.1

Properties

Article number
6ES7532-5NB00-0AB0

View of the module

2

Properties

Figure 2-1 View of the AQ 2xU/I ST module
The module has the following technical properties:  2 analog outputs  Resolution: 16 bits including sign  Selection of channels for voltage output  Selection of channels for current output  Configurable diagnostics (per channel)

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

11

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Calibration in runtime Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Output (MSO) Configurable submodules / submodules for Shared Device

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)

GSD file in STEP 7 (TIA Portal) V12 or higher, or STEP 7 V5.5 SP3 or higher

V13 or higher with HSP 0102

--- / X

V13 or higher with HSP 0102

X

V13 or higher with HSP 0102

X

V13 or higher with HSP 0102

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Front connector (push-in terminals) including cable tie  Shield bracket  Shield terminal  Power supply element (push-in terminals)  Labeling strips  U connector  Universal front door You can find additional information on accessories in the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

12

Manual, 09/2016, A5E32366632-AC

Wiring

3

3.1

Wiring and block diagrams

This section contains the block diagram of the module and outlines various connection options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Note You may use and combine the different wiring options for all channels.

Abbreviations used
QVn QIn Sn+/SnL+ M MANA

Voltage output channel Current output channel Sense line channel Connection for supply voltage Ground connection Reference potential of the analog circuit

Pin assignment for the power supply element
The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 43 (M).

Figure 3-1 Power supply element wiring

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

13

Wiring 3.1 Wiring and block diagrams
Connection: Voltage output
The example in the figure below shows the pin assignment for voltage outputs with:  2-wire connection, without compensation for line resistances.  4-wire connection, with compensation for line resistances.

 2-wire connection  4-wire connection  Digital-to-analog converter (DAC)  Backplane bus interface  Supply voltage via power supply module

CHx RUN ERROR PWR

Channel or 2 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for the voltage output

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

14

Manual, 09/2016, A5E32366632-AC

Wiring 3.1 Wiring and block diagrams
Connection: Current output
The example in the figure below shows the pin assignment for current outputs.

 Load on current outputs  Digital-to-analog converter (DAC)  Backplane bus interface  Supply voltage via power supply module

CHx RUN ERROR PWR

Channel or 2 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and pin assignment for the current output

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

15

Parameters/address space

4

4.1

Output ranges

Introduction

The module is set to voltage output type by default with output range ±10 V. You need to edit the module parameters with STEP 7 if you want to use a different output range or output type.

Output type and output ranges
The following table shows the output type and the respective output ranges.

Table 4- 1 Output type and output ranges

Output type Voltage
Current
Disabled

Output range 1 V to 5 V 0 V to 10 V ±10 V 0 mA to 20 mA 4 mA to 20 mA ±20 mA -

Representation of analog values See Representation of analog values in the voltage output ranges (Page 37)
See Representation of analog values in the current output ranges (Page 39)
-

The tables of the output ranges, overflow, overrange, etc. are provided in the appendix Representation of analog values (Page 36).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

16

Manual, 09/2016, A5E32366632-AC

Parameters/address space 4.2 Parameters

4.2

Parameters

AQ 2xU/I ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; see section Parameter assignment and structure of the parameter data record. (Page 32)

Table 4- 2 Configurable parameters and their defaults

Parameters

Range of values

Default setting

Diagnostics

· No supply voltage L+ Yes/No

No

· Wire break

Yes/No

No

· Short-circuit to

Yes/No

No

ground

· Underflow

Yes/No

No

· Overflow

Yes/No

No

Output parameters · Output type

Current/voltage

Voltage

· Output range
· Reaction to CPU STOP

See section Output ranges (Page 16)
· Turn off
· Keep last value

±10 V Turn off

· Output substitute value

· Substitute value

Must be in the valid volt-

0

age/current output range; see

Table B-4 Valid substitute

value for the output range

(Page 35)

Parameter assignment in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel*

Yes

Channel

Yes

Channel

Module Module Module

Yes

Channel

Yes

Channel

Module Module

Yes

Channel

Yes

Channel

Yes

Channel

Channel Channel
Channel

Yes

Channel

Channel

* If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this alarm surge by assigning the diagnostics function to one channel only.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

17

Parameters/address space 4.3 Explanation of parameters
Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. A short-circuit detection is not possible for small output values; the output voltages must therefore be below -0.1 V or above +0.1 V.
Wire break detection
The diagnostics for wire break can be configured for the current output type. Wire break detection is not possible for small output values; the output voltages must therefore be below -0.2 mA or above +0.2 mA.

4.3

Explanation of parameters

No supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Wire break

Enabling of the diagnostics if the line to the actuator is broken.

Short-circuit to ground
Enabling of the diagnostics if a short-circuit of the output to MANA occurs.

Overflow

Enabling of the diagnostics when the output value exceeds the over range.

Underflow

Enabling of the diagnostics when the output value violates the under range.

Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state.

Substitute value
The substitute value is the value that the module outputs in case of a CPU STOP.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

18

Manual, 09/2016, A5E32366632-AC

Parameters/address space 4.4 Address space

4.4

Address space

The module can be configured in various ways in STEP 7. Depending on the configuration, additional/different addresses are assigned in the process image of the outputs/inputs.

Configuration options of AQ 2xU/I ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 3 Configuration options

Configuration

Short designation/module name
in the GSD file

1 x 2-channel without value status 1 x 2-channel with value status 2 x 1-channel without value status

AQ 2xU/I ST AQ 2xU/I ST QI AQ 2xU/I ST S

2 x 1-channel with value status

AQ 2xU/I ST S QI

1 x 2-channel with value status for AQ 2xU/I ST MSO module-internal shared output with up to 4 submodules

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog STEP 7 (TIA Portal)
V13 or higher with HSP 0102

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7
V5.5 SP3 or higher
X

V13 or higher with HSP 0102

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

Value status (Quality Information, QI)
The value status is always activated for the following module names:
 AQ 2xU/I ST QI
 AQ 2xU/I ST S QI
 AQ 2xU/I ST MSO
An additional bit is assigned to each channel for the value status. The bit for the value status indicates if the output value specified by the user program is actually pending at the module terminal (0 = value is incorrect).

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

19

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 2-channel AQ 2xU/I ST
The figure below shows the address space assignment for configuration as a 1 x 2-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "QB x" stands, for example, for the module start address output byte x.
Figure 4-1 Address space for configuration as 1 x 2-channel AQ 2xU/I ST with value status
Address space for configuration as 2 x 1-channel AQ 2xU/I ST S QI
The channels of the module are divided up into several submodules with configuration as 2 x 1-channel module. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Observe the information in the manual for the particular interface module. Unlike the 1 x 2-channel module configuration, each of the four submodules has a freely assignable start address.

Figure 4-2 Address space for configuration as 2 x 1-channel AQ 2xU/I ST S QI with value status

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

20

Manual, 09/2016, A5E32366632-AC

Parameters/address space 4.4 Address space
Address space for configuration as 1 x 2-channel AQ 2xU/I ST MSO
The channels 0 to 1 of the module are copied to several submodules with configuration as 1 x 2-channel module (module internal Shared Output, MSO). Channels 0 to 1 are then available with identical values in different submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device.  The IO controller to which submodule 1 is assigned has write access to the outputs 0 and
1.  The IO controllers to which submodules 2, 3 or 4 are assigned have write access to the
outputs 0 and 1. The number of IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) The meaning of the value status depends on the submodule on which it occurs. For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state. For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule is not yet configured (not ready).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state. The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-3 Address space for configuration as 1 x 2-channel AQ 2xU/I ST MSO with value status

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

21

Parameters/address space 4.4 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Reference

Figure 4-4 Address space for configuration as 1 x 2-channel AQ 2xU/I ST MSO with value status
You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

22

Manual, 09/2016, A5E32366632-AC

Interrupts/diagnostics alarms

5

5.1

Status and error displays

LED displays

The following figure shows you the LED displays (status and error displays) of AQ 2xU/I ST.

Figure 5-1 LED displays of the module AQ 2xU/I ST

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

23

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostics alarms can be found in section Diagnostics alarms (Page 25).

LED RUN/ERROR
Table 5- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid configuration is set. Module is configured
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are in-
serted. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

PWR LED
Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ too low or missing
Supply voltage L+ is present and OK

Solution Check supply voltage L+.
---

CHx LED
Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled
Channel configured and OK
Diagnostics alarm: e.g., wire break, overflow, underflow

Solution ---
---
Check the wiring. Disable diagnostics.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

24

Manual, 09/2016, A5E32366632-AC

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

The analog output module AQ 2xU/I ST supports diagnostic interrupts.

You can find detailed information on the error event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:  Missing supply voltage L+  Short-circuit to ground  Wire break  Overflow  Underflow  Parameter assignment error

5.3
Table 5- 4

Diagnostics alarms
A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.
Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm Short-circuit to ground

Error code
1H

Wire break

6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

Channel temporarily

1FH

unavailable

Meaning

Solution

Overload at output

Eliminate overload

Short-circuit of output QV to MANA

Eliminate the short-circuit

Actuator circuit impedance too high

Use a different actuator type or modify the wiring, for example, use cables with larger cross-section

Wirebreak between the module and actuator Connect the cable

Channel not connected (open)

· Disable the channel ("output type" parameter)

· Connect the channel

The output value set by the user program violates the valid rated range/overrange.

Correct the output value

The output value set by the user program violates the valid rated range/underrange.

Correct the output value

· The module cannot evaluate parameters Correct the parameter assignment for the channel

· Incorrect parameter assignment

Supply voltage L+ of the module is missing Connect supply voltage L+ to module

User calibration is active.

Exit user calibration.

Channel currently not providing current/valid values.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

25

Technical specifications

6

Technical specifications of the AQ 2xU/I ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7532-5NB00-0AB0
AQ 2xU/I ST FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Scalable output range

No

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13.0.2

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSO

Yes

CiR Configuration in RUN

Parameter assignment in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage

Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection Input current Current consumption, max.

24 V 20.4 V 28.8 V Yes
110 mA; with 24 V DC supply

Power

Power consumption from backplane bus

0.65 W

Power loss

Power loss, typ.

2.7 W

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

26

Manual, 09/2016, A5E32366632-AC

Technical specifications

Analog outputs Number of analog outputs Voltage output, short-circuit protection Voltage output, short-circuit current, max. Current output, open-circuit voltage, max. Cycle time (all channels), min.
Output ranges, voltage 0 V to 10 V 1 V to 5 V -5 V to +5 V -10 V to +10 V Output ranges, current 0 mA to 20 mA -20 mA to +20 mA 4 mA to 20 mA Connection of actuators for voltage output two-wire connection for voltage output four-wire connection for current output two-wire connection Load resistance (in the rated output range) for voltage outputs, min. for voltage outputs, capacitive load, max. for current outputs, max. for current outputs, inductive load, max. Cable length shielded, max. Analog value generation for the outputs Integration and conversion time/resolution per channel Resolution with overrange (bit including sign), max. Conversion time (per channel) Settling time for resistive load for capacitive load for inductive load Errors/accuracies Output ripple (in relation to output range, bandwidth 0 kHz to 50 kHz), (+/-) Linearity error (in relation to output range), (+/-) Temperature error (in relation to output range), (+/-) Crosstalk between outputs, max. Repeat accuracy in settled state at 25 °C (in relation to output range), (+/-)

6ES7532-5NB00-0AB0
2 Yes 24 mA 22 V 3.2 ms; regardless of the number of activated channels
Yes Yes No Yes
Yes Yes Yes
Yes Yes Yes
1 kOhm; 0.5 kOhm at 1 to 5 V 1 µF 750  10 mH
800 m; for current, 200 m for voltage
16 bit
0.5 ms
1.5 ms 2.5 ms 2.5 ms
0.02%
0.15% 0.002%/K
-100 dB 0.05%

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

27

Technical specifications

6ES7532-5NB00-0AB0

Operational limit in the entire temperature range

Voltage in relation to output range, (+/-)

0.3%

Current in relation to output range, (+/-)

0.3%

Basic error limit (operational limit at 25 °C)

Voltage in relation to output range, (+/-)

0.2%

Current in relation to output range, (+/-)

0.2%

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

Yes

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for output type current

Short-circuit

Yes; only for output type voltage

Overflow/underflow

Yes

Diagnostics display LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

Yes; green LED

Channel status display

Yes; green LED

For channel diagnostics

Yes; red LED

For module diagnostics

Yes; red LED

Electrical isolation

Electrical isolation of channels

Between the channels

No

Between the channels, in groups of

2

Between the channels and backplane bus

Yes

Between the channels and load voltage L+

Yes

Permissible potential difference

between S- and MANA (UCM)

8 V DC

Insulation

Insulation tested with

707 V DC (type test)

Ambient conditions

Ambient temperature during operation

Horizontal mounting position, min.

0 °C

Horizontal mounting position, max.

60 

Vertical mounting position, min.

0 °C

Vertical mounting position, max.

40 °C

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

28

Manual, 09/2016, A5E32366632-AC

Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

Technical specifications
6ES7532-5NB00-0AB0 No 25 mm 147 mm 129 mm 200 g Package includes 40-pin push-in front connector

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

29

Dimension drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimension drawing of the AQ 2xU/I ST module

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

30

Manual, 09/2016, A5E32366632-AC

Dimension drawing
Figure A-2 Dimension drawing of the AQ 2xU/I ST module, side view with open front panel

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

31

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Short-circuit to ground Wire break Substitute value

Dependent parameters
Only with voltage output type With current output type only Only if Reaction to CPU STOP -> Output substitute value is configured

Parameter assignment in the user program
You have the option to assign module parameters in RUN (e.g., the voltage or current values of selected channels can be edited in RUN without having an effect on the other channels).

Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records 64 and 65. The parameters set in STEP 7 do not change in the CPU, which means the parameters set in STEP 7 are still valid after a restart.
The parameters are only checked for plausibility by the module after the transfer to the module.

Output parameter STATUS
If errors occur during the transfer of parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

32

Manual, 09/2016, A5E32366632-AC

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Assignment of data record and channel
For the configuration as a 1 x 2-channel module, the parameters are located in data records 64 and 65 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1 For configuration 2 x 1-channel, the module has 2 submodules with one channel each. The parameters for the channel are available in data record 64 and are assigned as follows:  Data record 64 for channel 0 (submodule 1)  Data record 64 for channel 1 (submodule 2) Address the respective submodule for data record transfer.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

33

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Data record structure
The example in the figure below shows the structure of data record 64 for channel 0. The structure of channel 1 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 64: Bytes 0 to 7

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

34

Manual, 09/2016, A5E32366632-AC

Parameter data records B.1 Parameter assignment and structure of the parameter data records

Codes for the output type
The following table lists all output types of the analog output module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 2 Code for the output type
Output type Disabled Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for the output ranges
The following table lists all voltage and current output ranges of the analog output module along with their codes. In each case, enter these codes at byte 3 of the respective data record (see previous figure).

Table B- 3 Code for the output range
Output range for voltage 1 V to 5 V 0 V to 10 V ±10 V Output range for current 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Valid substitute values
The following table lists all output ranges for the valid substitute values. Enter these substitute values at bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). The binary representation of output ranges is available on the Internet in the function manual Analog value processing for SIMATIC.

Table B- 4 Valid substitute value for the output range

Output range ±10 V 1 V to 5 V 0 V to 10 V ±20 mA 4 mA to 20 mA 0 mA to 20 mA

Valid substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

35

Representation of analog values

C

Introduction

This appendix describes the analog values for all output ranges supported by the AQ 2xU/I ST analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Dec

Hex

1

1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

C.1

Representation of output ranges

The tables below set out the digitized representation of the output ranges, separated by bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 2 Bipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

36

Manual, 09/2016, A5E32366632-AC

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Table C- 3 Unipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

C.2

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 4 Voltage output range ±10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V

-117.593% <-117.593%

-27649 -32512 <-32512

93FF 8100 < 8100

-11.76 V -11.76 V

Range Maximum output value Overshoot range
Rated range
Undershoot range Minimum output value

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

37

Representation of analog values C.2 Representation of analog values in the voltage output ranges

Table C- 5 Voltage output range 0 V to 10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 V to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Table C- 6 Voltage output range 1 V to 5 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 < E500

Voltage output range 1 V to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Range Maximum output value Overshoot range Rated range
Minimum output value
Range Maximum output value Overshoot range Rated range
Undershoot range Minimum output value

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

38

Manual, 09/2016, A5E32366632-AC

C.3

Representation of analog values C.3 Representation of analog values in the current output ranges

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 7 Current output range ±20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%
-117.593% <-117.593%

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA -723.4 nA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Table C- 8 Current output range 0 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 mA to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Minimum output value

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

Manual, 09/2016, A5E32366632-AC

39

Representation of analog values C.3 Representation of analog values in the current output ranges

Table C- 9 Current output range 4 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 mA to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA 4 mA - 578.7 nA 0 mA 0 mA

Range Maximum output value Overshoot range
Rated range Undershoot range Minimum output value

Analog Output Module AQ 2xU/I ST (6ES7532-5NB00-0AB0)

40

Manual, 09/2016, A5E32366632-AC

SIMATIC
S7-1500/ET 200MP Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)
Manual

_Pr_ef_ac_e_______________ _G_uid_e_to_d_o_cu_m_en_ta_ti_on______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs_/a_dd_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_s_al_ar_m_s ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_s______B_ _An_a_lo_g _va_lu_e _pr_oc_es_s_ing_____C__

09/2016
A5E32368757-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32368757-AC  11/2016 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that relate in general to the systems are described in this system manual.
The information provided in this manual and in the system/function manuals supports you in commissioning the systems.

Changes compared to previous version
Compared to the previous version, this manual contains the following change:
Original texts of the license conditions and copyright notes for open-source software are available on the Internet as of 09/2016.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system, as well as for interface modules of the ET 200MP distributed I/O system. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

4

Manual, 09/2016, A5E32368757-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

5

Table of contents

Preface ................................................................................................................................................... 4

1 Guide to documentation .......................................................................................................................... 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ............................................................................................................................... 11

3 Wiring ................................................................................................................................................... 14

3.1

Wiring and block diagrams..................................................................................................... 14

4 Parameters/address space ................................................................................................................... 25

4.1

Measurement types and ranges ............................................................................................ 25

4.2

Output type and output ranges .............................................................................................. 28

4.3

Parameters............................................................................................................................. 29

4.4

Explanation of parameters ..................................................................................................... 33

4.5

Address space ....................................................................................................................... 37

5 Interrupts/diagnostics alarms................................................................................................................. 45

5.1

Status and error displays ....................................................................................................... 45

5.2

Interrupts ................................................................................................................................ 47

5.3

Diagnostics alarms................................................................................................................. 49

6 Technical specifications ........................................................................................................................ 51

A Dimension drawing ............................................................................................................................... 60

B Parameter data records ........................................................................................................................ 62

B.1

Parameter assignment and structure of the parameter data records .................................... 62

B.2

Structure of a data record for input channels......................................................................... 64

B.3

Structure of a data record for output channels ...................................................................... 72

B.4

Structure of a data record for dynamic reference temperature.............................................. 75

C Analog value processing ....................................................................................................................... 77

C.1 C.1.1 C.1.2 C.1.3
C.1.4 C.1.5

Representation of input ranges.............................................................................................. 78 Representation of analog values in voltage measuring ranges ............................................. 79 Representation of analog values in the current measuring ranges ....................................... 80 Representation of the analog values of resistance-based sensors/resistance thermometers ......................................................................................................................... 81 Representation of analog values for thermocouples ............................................................. 84 Measured values for wire break diagnostics.......................................................................... 87

C.2 C.2.1 C.2.2

Representation of output ranges............................................................................................ 88 Representation of analog values in the voltage output ranges.............................................. 89 Representation of analog values in the current output ranges .............................................. 90

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

6

Manual, 09/2016, A5E32368757-AC

Guide to documentation

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

7

Manual, 09/2016, A5E32368757-AC

Guide to documentation

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

8

Manual, 09/2016, A5E32368757-AC

Guide to documentation
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system - separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

9

Guide to documentation

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

10

Manual, 09/2016, A5E32368757-AC

Product overview

2.1

Properties

Article number
6ES7534-7QE00-0AB0

View of the module

2

Figure 2-1 View of the AI 4xU/I/RTD/TC/ AQ 2xU/I ST module

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

11

Manual, 09/2016, A5E32368757-AC

Product overview 2.1 Properties

Properties

The module has the following technical properties:  Analog inputs
­ 4 analog inputs ­ Resolution 16 bits including sign ­ Voltage measurement type can be set per channel ­ Current measurement type can be set per channel ­ Resistance measurement type can be set for channel 0 and 2 ­ Resistance thermometer (RTD) measurement type can be set for channel 0 and 2 ­ Thermocouple (TC) measurement type can be set per channel ­ Configurable diagnostics (per channel) ­ Hardware interrupt on limit violation can be set per channel (two low and two high
limits per channel)  Analog outputs
­ 2 analog outputs ­ Resolution: 16 bits including sign ­ Selection of channels for voltage output ­ Selection of channels for current output ­ Configurable diagnostics (per channel) The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function

Firmware version of the module

Firmware update Calibration in runtime Identification data I&M0 to I&M3 Parameter assignment in RUN Module-internal Shared Input (MSI) / Shared Output (MSO)
Configurable submodules / submodules for Shared Device

V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal)
V13 or higher with HSP 0102

GSD file in STEP 7 (TIA Portal) V12 or higher, or
STEP 7 V5.5 SP3 or higher
X

V13 or higher with HSP 0102

X

V13 or higher with HSP 0102

X

V13 or higher with HSP 0102

X

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

V13 Update 3 or higher

X

(PROFINET IO only)

(PROFINET IO only)

You can configure the module with STEP 7 (TIA Portal) and with a GSD file.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

12

Manual, 09/2016, A5E32368757-AC

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:  Front connector (push-in terminals) including cable tie  Shield bracket  Shield terminal  Power supply element (push-in terminals)  Labeling strips  U connector  Universal front door You can find additional information on accessories in the system manual S7-1500/ET 20MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

13

Wiring

3

3.1

Wiring and block diagrams

This section contains the block diagram of the module and outlines various connection options.

You can find information on wiring the front connector, creating a cable shield, etc. in the Wiring section of the system manual S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/59191792).

You can find additional information on compensating the reference junction temperature in the function manual Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094), the structure of a data record in the section Structure of a data record for dynamic reference temperature (Page 75).

Note You may use and combine the different wiring options for all channels.

Abbreviations used
Un+/UnMn+/MnIn+/InIc n+/Ic nUVn QVn QIn Sn+/SnL+ M MANA

Voltage input channel n (voltage only) Measuring input channel n Current input channel n (current only) Current output for RTD, channel n Supply voltage at channel n for 2-wire transmitters (2WMT) Voltage output channel Current output channel Sense line channel Connection for supply voltage Ground connection Reference potential of the analog circuit

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

14

Wiring 3.1 Wiring and block diagrams Pin assignment for the power supply element The power supply element is plugged onto the front connector for powering the analog module. Wire the supply voltage to terminals 41 (L+) and 43 (M).
Figure 3-1 Power supply element wiring

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

15

Wiring 3.1 Wiring and block diagrams
Connection: Voltage measurement
The example in the following figure shows the pin assignment for voltage measurement.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)  Voltage measurement

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-2 Block diagram and pin assignment for voltage measurement

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

16

Manual, 09/2016, A5E32368757-AC

Wiring 3.1 Wiring and block diagrams
Connection: 4-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 4-wire transmitters.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)  Wiring 4-wire transmitter

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-3 Block diagram and pin assignment for 4-wire transmitters for current measurement

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

17

Wiring 3.1 Wiring and block diagrams
Connection: 2-wire transmitters for current measurement
The example in the following figure shows the pin assignment for current measurement with 2-wire transmitters.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable (optional)  Wiring 2-wire transmitter

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-4 Block diagram and pin assignment for 2-wire transmitters for current measurement

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

18

Manual, 09/2016, A5E32368757-AC

Wiring 3.1 Wiring and block diagrams
Connection: 2-wire connection of resistance-based sensors or thermal resistors (RTD)
The example in the figure below shows the pin assignment for 2-wire connection of resistance sensors or thermal resistors.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable  2-wire connection

CHx RUN ERROR PWR

Figure 3-5 Block diagram and pin assignment for 2-wire connection

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

19

Wiring 3.1 Wiring and block diagrams
Connection: 3- and 4-wire connection of resistance-based sensors or thermal resistors (RTD)
The example in the figure below shows the pin assignment for 3- and 4-wire connection of resistance-based sensors or thermal resistors.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable  4-wire connection  3-wire connection

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-6 Block diagram and pin assignment for 3- and 4-wire connection

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

20

Manual, 09/2016, A5E32368757-AC

Wiring 3.1 Wiring and block diagrams
Connection: Thermocouples for external / internal compensation
The figure below shows an example of the pin assignment for thermocouples for external or internal compensation.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable  Wiring of a thermocouple for internal compensation  Wiring of a thermocouple for external compensation

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-7 Block diagram and pin assignment for thermocouples and resistance thermometers

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

21

Wiring 3.1 Wiring and block diagrams
Connection: Grounded thermocouples for internal compensation
The following figure shows an example of the pin assignment for grounded thermocouples for internal compensation.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Equipotential bonding cable  Wiring of a thermocouple (grounded) for internal
compensation

CHx RUN ERROR PWR

Figure 3-8 Block diagram and pin assignment for grounded thermocouples

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

22

Manual, 09/2016, A5E32368757-AC

Wiring 3.1 Wiring and block diagrams
Connection: Voltage output
The figure below shows an example of the pin assignment for the circuits of the voltage outputs with:  2-wire connection, without compensation for line resistances.  4-wire connection, with compensation for line resistances.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  2-wire connection  4-wire connection

CHx RUN ERROR PWR

Figure 3-9 Block diagram and pin assignment for the voltage output

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

23

Wiring 3.1 Wiring and block diagrams
Connection: Current output
The following figure shows an example of the pin assignment for current output circuitry.

 Digital-to-analog converter (DAC)  Analog-to-digital converter (ADC)  Backplane bus interface  Supply voltage via power supply element  Current output

CHx RUN ERROR PWR

Channel or 6 x channel status (green/red) Status display LED (green) Error display LED (red) LED for power supply (green)

Figure 3-10 Block diagram and pin assignment for the current output

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

24

Manual, 09/2016, A5E32368757-AC

Parameters/address space

4

4.1

Measurement types and ranges

Introduction

By default, the module has the voltage measurement type and the measuring range ±10 V for the inputs You need to reassign the module parameters with STEP 7 if you want to use a different measurement type or range.
Deactivate the input if it is not going to be used. The module cycle time is shortened and the interference factors that lead to failure of the module (for example, triggering a hardware interrupt) are avoided.

Measurement types and ranges
The following table shows the measurement types and the respective measuring range.

Table 4- 1 Measurement types and measuring ranges

Measurement type Voltage
Current 2WMT (2-wire transmitter) Current 4WMT (4-wire transmitter) Resistor (2-wire connection) Resistor (3-wire connection) (4-wire connection)

Measuring range ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V 1 V to 5 V ±5 V ±10 V 4 mA to 20 mA
0 mA to 20 mA 4 mA to 20 mA ±20 mA
PTC 150  300  600  6000 

Representation of analog values See Representation of analog values in voltage measuring ranges (Page 79)
See Representation of analog values in the current measuring ranges (Page 80)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

25

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.1 Measurement types and ranges

Measurement type Thermal resistor RTD (3-wire connection) (4-wire connection)
Thermocouple (TC)
Disabled

Measuring range PT100 Standard/Climate PT200 Standard/Climate PT500 Standard/Climate PT1000 Standard/Climate Ni100 Standard/Climate Ni1000 Standard/Climate LG-Ni1000 Standard/Climatic Type B Type E Type J Type K Type N Type R Type S Type T -

Representation of analog values See Representation of the analog values of resistance-based sensors/resistance thermometers (Page 81)
See Representation of analog values for thermocouples (Page 84)

The tables of the input ranges, overflow, underrange, etc. are available in the appendix Representation of input ranges (Page 78).

Special features for the use of PTC resistors
PTC resistors are suitable for temperature monitoring of electrical devices, such as motors, drives, and transformers.
Use Type A PTC resistors (PTC thermistor) in accordance with DIN/VDE 0660, part 302. In doing so, follow these steps:
1. Choose "Resistor (2-wire terminal)" and "PTC" in STEP 7.
2. Connect the PTC using 2-wire connection technology.
If you enable the "Underflow" diagnostics in STEP 7, it will be signaled for resistance values <18 . In this case, this diagnostic signifies "Short-circuit in the wiring".
The figure below shows the address space assignment for AI 4xU/I/RTD/TC/ AQ 2xU/I ST with PTC resistors.

Figure 4-1 Address space for AI 4xU/I/RTD/TC/ AQ 2xU/I ST with PTC resistors

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

26

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.1 Measurement types and ranges The diagram below shows the temperature profile and the corresponding switching points.
Figure 4-2 Temperature profile and the corresponding switching points
Special features of the measured value acquisition with PTC resistors
If faults occur (for example supply voltage L+ missing) that make it impossible to acquire measured values with PTC resistors, the corresponding channels (IB x/IB x+1) report overflow (7FFFH). If the value status (QI) is enabled, the value 0 = incorrect is output in the corresponding bit.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

27

Parameters/address space 4.2 Output type and output ranges

4.2

Output type and output ranges

Introduction

The module is set to voltage output type for the outputs by default with output range ±10 V. You need to edit the module parameters with STEP 7 if you want to use a different output range or output type.

Output types and output ranges
The following table shows the output type and the respective output ranges.

Table 4- 2 Output type and output ranges

Output type Voltage
Current
Disabled

Output range 1 V to 5 V 0 V to 10 V ±10 V 0 mA to 20 mA 4 mA to 20 mA ±20 mA -

Representation of analog values See Representation of analog values in the voltage output ranges (Page 89)
See Representation of analog values in the current output ranges (Page 90)
-

The tables of the output ranges, nominal range, overrange, etc. are provided in the appendix Representation of output ranges (Page 88).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

28

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.3 Parameters

4.3

Parameters

AI 4xU/I/RTD/TC/ AQ 2xU/I ST parameters
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the configurable parameters depends on the type of configuration. The following configurations are possible:
 Central operation with a S7-1500 CPU
 Distributed operation on PROFINET IO in an ET 200MP system
 Distributed operation on PROFIBUS DP in an ET 200MP system
When assigning parameters in the user program, use the WRREC instruction to transfer the parameters to the module by means of data records; refer to the section Parameter assignment and structure of the parameter data records (Page 62).
The following parameter settings are possible:

Table 4- 3 Configurable parameters and their defaults

Parameters

Range of values

Inputs Diagnostics · No supply voltage L+ Yes/No

· Overflow

Yes/No

· Underflow

Yes/No

· Common mode error Yes/No

· Reference junction Yes/No

· Wire break

Yes/No

· Current limit for wire 1.185 mA or break diagnostics 2) 3.6 mA

Default setting

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

1.185 mA Yes

Channel 1) Channel Channel Channel Channel Channel Channel

Module 3) Module 3) Module 3) Module 3) Module 3) Module 3) --- 4)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

29

Parameters/address space 4.3 Parameters

Parameters

Range of values

Default setting

Measuring · Measurement type · Measuring range · Temperature coeffi-
cient
· Temperature unit
· Reference junction
· Fixed reference temperature
· Interference frequency suppression
· Smoothing

See section Measurement types and ranges (Page 25)

Voltage ±10 V

Pt: 0.003851 Pt: 0.003902 Pt: 0.003916 Pt: 0.003920 Ni: 0.00618 Ni: 0.00672 LG-Ni: 0.005000
· Kelvin (K)

0.003851 °C

· Fahrenheit (°F)

· Celsius (°C)

· Fixed reference Internal

temperature

reference

· Dynamic refe- junction

rence tempera-

ture

· Internal reference junction

Temperature

25 °C

400 Hz

50 Hz

60 Hz

50 Hz

10 Hz

No-

None

ne/low/medium/high

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel

Yes

Channel

Yes

Channel

Channel Channel Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Module
Module 4) · Dynamic reference
temperature · Internal reference
junction
--- 4) Module
Channel

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

30

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.3 Parameters

Parameters

Range of values

Default setting

Hardware interrupts

· Hardware interrupt Yes/No

No

low limit 1

· Hardware interrupt Yes/No

No

high limit 1

· Hardware interrupt Yes/No

No

low limit 2

· Hardware interrupt Yes/No

No

high limit 2

Outputs

Diagnostics

· No supply voltage L+ Yes/No

No

· Wire break

Yes/No

No

· Short-circuit to

Yes/No

No

ground

· Overflow

Yes/No

No

· Underflow

Yes/No

No

Output parameters · Output type · Output range

See section Output Voltage type and output ranges (Page 28) ±10 V

· Reaction to CPU STOP

· Turn off

Turn off

· Keep last value

· Output substitute value

Reconfiguration in RUN

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Yes

Channel

--- 4)

Yes

Channel

--- 4)

Yes

Channel

--- 4)

Yes

Channel

--- 4)

Yes

Channel 1)

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Module 3) Module 3) Module 3)
Module 3) Module 3)
Channel Channel Channel

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

31

Parameters/address space 4.3 Parameters

Parameters · Substitute value

Range of values

Default setting

Must be in the valid 0 voltage/current output range; see table Valid substitute value for the output range

Reconfiguration in RUN
Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware catalog STEP 7, as of V13 or GSD file PROFINET IO

GSD file PROFIBUS DP

Channel

Channel

1) If you enable diagnostics for multiple channels, you will receive an alarm surge on failure of the supply voltage because each enabled channel will detect this fault. You can prevent this alarm surge by assigning the diagnostics function to one channel only.
2) When "Wire break" diagnostics is disabled, the current limit of 1.185 mA is applied to the value status. For measured values below 1.185 mA, the value status is always: 0 = fault.
3) You can set the effective range of the diagnostics for each channel in the user program with data records 0 to 3.
4) You can set the current limit for wire break diagnostics, the setting "Fixed reference temperature" as well as the limits for hardware interrupts in the user program with data records 0 to 3.

Short-circuit detection
The diagnostics for short circuit to ground can be configured for the voltage output type. A short-circuit detection is not possible for small output values; the output voltages must therefore be below -0.1 V or above +0.1 V.

Wire break detection
The diagnostics for wire break can be configured for the current output type. Wire break detection is not possible for small output values; the output voltages must therefore be below -0.2 mA or above +0.2 mA.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

32

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.4 Explanation of parameters

4.4

Explanation of parameters

Missing supply voltage L+
Enabling of the diagnostics, with missing or too little supply voltage L+.

Overflow

Enabling of the diagnostics when the measured value or output value violates the overrange.

Underflow

Enabling of the diagnostics when the measured value or output value violates the underrange.

Common mode error
Enabling of diagnostics if the valid common mode voltage is exceeded.
Enable the Common mode error diagnostics when 2WMT is connected, for example, to check for a short circuit to groundANA or a wire break. If you do not need the Common mode error diagnostics, disable the parameter.

Reference junction
Enabling of the diagnostics reference junction when the TC channel has no reference temperature or incorrect reference temperature.

Wire break

Enabling of the diagnostics if the module has no current flow or the current is too weak for the measurement at the corresponding configured input, the applied voltage is too low, or the wire to the actuator is broken.

Current limit for wire break diagnostics
Threshold for reporting wire breaks. The value can be set to 1.185 mA or 3.6 mA, depending on the sensor used.

Temperature coefficient
The temperature coefficient depends on the chemical composition of the material. In Europe, only one value is used per sensor type (default value).
The temperature coefficient ( value) indicates by how much the resistance of a specific material changes relatively if the temperature increases by 1 °C.
The further values facilitate a sensor-specific setting of the temperature coefficient and enhance accuracy.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

33

Parameters/address space 4.4 Explanation of parameters

Reference junction
The following settings can be configured for the reference junction parameter:

Table 4- 4 Possible settings for the reference junction parameter

Setting Fixed reference temperature Dynamic reference temperature
Internal reference junction

Description
The reference junction temperature is configured and stored in the module as a fixed value.
The reference junction temperature is transferred in the user program from the CPU to the module by data records 192 to 195 using the WRREC (SFB 53) instruction.
The reference junction temperature is determined using an integrated sensor of the module.

Interference frequency suppression
At analog input modules, this suppresses interference caused by the frequency of the AC network.
The frequency of the AC network may corrupt measurements, particularly in the low voltage ranges and when thermocouples are being used. For this parameter, the user defines the mains frequency prevailing on his system.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

34

Manual, 09/2016, A5E32368757-AC

Smoothing

Parameters/address space 4.4 Explanation of parameters
The individual measured values are smoothed using filtering. The smoothing can be set in 4 levels. Smoothing time = number of module cycles (k) x cycle time of the module. The following figure shows the number of module cycles after which the smoothed analog value is almost 100%, depending on the set smoothing. It is valid for each signal change at the analog input.

 None (k = 1)  Weak (k = 4)  Medium (k = 16)  Strong (k = 32)
Figure 4-3 Smoothing with AI 4xU/I/RTD/TC/ AQ 2xU/I ST
Hardware interrupt 1 or 2
Enabling of a hardware interrupt at violation of high limit 1 or 2 or low limit 1 or 2.
Low limit 1 or 2
Specifies the low limit threshold that triggers hardware interrupt 1 or 2.
High limit 1 or 2
Specifies the high limit threshold that triggers hardware interrupt 1 or 2.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

35

Parameters/address space 4.4 Explanation of parameters
Short-circuit to ground
Enabling of the diagnostics if a short-circuit of the output to MANA occurs.
Reaction to CPU STOP
Determines the reaction of the output to the CPU going into STOP state.
Substitute value
The substitute value is the value that the module outputs in case of a CPU STOP.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

36

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.5 Address space

4.5

Address space

The module can be configured differently in STEP 7; see following table. Depending on the configuration, additional/different addresses are assigned in the process image input/output.

Configuration options of AI 4xU/I/RTD/TC/ AQ 2xU/I ST
You can configure the module with STEP 7 (TIA Portal) or with a GSD file.
When you configure the module by means of the GSD file, the configurations are available under different abbreviations/module names.
The following configurations are possible:

Table 4- 5 Configuration options Configuration
1 x 6-channel without value status 1 x 6-channel with value status 6 x 1-channel without value status
6 x 1-channel with value status
1 x 6-channel with value status with up to 4 submodules (1 x 4-channel for module-internal Shared Input and 1 x 2-channel for module-internal Shared Output)

Short designation/module name in the GSD file
AI 4xU/I/RTD/TC/ AQ 2xU/I ST AI 4xU/I/RTD/TC/ AQ 2xU/I ST QI AI 4xU/I/RTD/TC/ AQ 2xU/I ST S
AI 4xU/I/RTD/TC/ AQ 2xU/I ST S QI
AI 4xU/I/RTD/TC/ AQ 2xU/I ST MSI or MSO

Configuration software, e.g., with STEP 7 (TIA Portal)

Integrated in hardware catalog
STEP 7 (TIA Portal)
V13 or higher with HSP 0102

GSD file in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
X

V13 or higher with

X

HSP 0102

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

V13 Update 3 or higher
(PROFINET IO only)

X
(PROFINET IO only)

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

37

Parameters/address space 4.5 Address space
Value status (Quality Information, QI)
The value status is always activated for the following module names:  AI 4xU/I/RTD/TC/ AQ 2xU/I ST QI  AI 4xU/I/RTD/TC/ AQ 2xU/I ST S QI  AI 4xU/I/RTD/TC/ AQ 2xU/I ST MSI An additional bit is assigned to each channel for the value status. The value status bit indicates  whether the read in digital value is valid. (0 = value is incorrect).  whether the output value specified by the user program is actually pending at the module
terminal (0 = value is incorrect).
Address space for configuration as 1 x 6-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST QI
The figure below shows the address space assignment for configuration as a 1 x 6-channel module. You can freely assign the start address for the module. The addresses of the channels are derived from the start address. "IB x" for example, stands for module start address input byte x. "QB x" for example, stands for module start address output byte x.

Figure 4-4 Address space for configuration as 1 x 6-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST QI with value status

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

38

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.5 Address space
Address space for configuration as 6 x 1-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST S QI
The channels of the module are divided up into several submodules with configuration as 6 x 1-channel module. The submodules can be assigned to different IO controllers when the module is used in a shared device. The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module. Unlike the 1 x 6-channel module configuration, each of the six submodules has a freely assignable start address.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

39

Parameters/address space 4.5 Address space

Figure 4-5 Address space for configuration as 6 x 1-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST S QI with value status

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

40

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.5 Address space
Address space for configuration as 1 x 6-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST MSI/MSO
For the configuration as a 1 x 6-channel module (module-internal Shared Input, MSI/Shared Output, MSO), the channels for inputs 0 to 3 and outputs 0 to 1 of the module are copied to 4 submodules. Each of the input/output channels are then available with identical values in various submodules. These submodules can be assigned to up to four IO controllers when the module is used in a shared device.
 The IO controller to which submodule 1 is assigned has write access to output channels 0 and 1 and read access to the input channels 0 to 3.
 The IO controllers to which submodule 2, 3 or 4 is assigned have read access to output channels 0 and 1 and read access to the input channels 0 to 3.
The number of usable IO controllers depends on the interface module used. Please observe the information in the manual for the particular interface module.
Value status (Quality Information, QI) for inputs
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (= basic submodule), the value status 0 indicates that the value is incorrect.
For the 2nd to 4th submodule (=MSI submodule), the value status 0 indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).
Value status (Quality Information, QI) for outputs
The meaning of the value status depends on the submodule on which it occurs.
For the 1st submodule (=basic submodule), the value status 0 indicates that the value is incorrect or that the IO controller of the basic submodule is in STOP state.
For the 2nd to 4th submodule (=MSO submodule), the value status 0 indicates that the value is incorrect or one of the following errors has occurred:
 The basic submodule is not yet configured (not ready).
 The connection between the IO controller and the basic submodule has been interrupted.
 The IO controller of the basic submodule is in STOP or POWER OFF state.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

41

Parameters/address space 4.5 Address space
The figure below shows the assignment of the address space with submodules 1 and 2.

Figure 4-6 Address space for configuration as 1 x 6-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST MSI/MSO with value status

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

42

Manual, 09/2016, A5E32368757-AC

Parameters/address space 4.5 Address space
The following figure shows the assignment of the address space with submodule 3 and 4.

Figure 4-7 Address space for configuration as 1 x 6-channel AI 4xU/I/RTD/TC/ AQ 2xU/I ST MSI/MSO with value status

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

43

Parameters/address space 4.5 Address space

Reference

You can find information on the Shared Input/Output (MSI/MSO) function in the section Module-Internal Shared Input/Output (MSI/MSO) of the PROFINET with STEP 7 V13 (https://support.industry.siemens.com/cs/ww/en/view/49948856) function manual.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

44

Manual, 09/2016, A5E32368757-AC

Interrupts/diagnostics alarms

5.1

Status and error displays

LED displays

The figure below shows the LED displays (status and error displays) of AI 4xU/I/RTD/TC/ AQ2xU/I ST.

5

Figure 5-1 LED displays of the module AI 4xU/I/RTD/TC/ AQ2xU/I ST

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

45

Manual, 09/2016, A5E32368757-AC

Interrupts/diagnostics alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Corrective measures for diagnostics alarms can be found in the section Diagnostics alarms (Page 49).
LED RUN/ERROR

Table 5- 1 RUN/ERROR status and error displays

LEDs RUN ERROR

Off

Off

Meaning Voltage missing or too low at backplane bus.

Flashes On On
Flashes

Off Off Flashes Flashes

The module starts and flashes until the valid configuration is set. Module is configured.
Indicates module errors (at least one error at one channel, e.g., wire break). Hardware defective.

PWR LED

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted. · Check to see if too many modules are insert-
ed. ---
Evaluate the diagnostics data and eliminate the error (e.g., wire break). Replace the module.

Table 5- 2 PWR status display

LED PWR Off On

Meaning Supply voltage L+ to module too low or missing
Supply voltage L+ is present and OK.

Solution Check supply voltage L+.
---

CHx LED

Table 5- 3 CHx status display

LED CHx Off On On

Meaning Channel disabled.
Channel configured and OK.
Channel is configured (channel error pending). Diagnostics alarm: e.g. wire break

Solution ---
---
Check the wiring. Disable diagnostics.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

46

Manual, 09/2016, A5E32368757-AC

Interrupts/diagnostics alarms 5.2 Interrupts

5.2

Interrupts

Analog input module AI 4xU/I/RTD/TC/ AQ 2xU/I ST supports diagnostics and hardware interrupts.

You can find detailed information on the event in the error organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Diagnostic interrupt
The module generates a diagnostic interrupt at the following events:

Table 5- 4 Diagnostics interrupt for inputs and outputs

Event
Missing supply voltage L+ Overflow Underflow Common mode error Reference junction Wire break Short-circuit to ground Parameter assignment error

Inputs x x x x x x --x

Diagnostic interrupt

Outputs x x x ----x x x

Hardware interrupt for inputs
The module generates a hardware interrupt at the following events:  Low limit violated 1  High limit violated 1  Low limit violated 2  Above high limit 2

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

47

Interrupts/diagnostics alarms 5.2 Interrupts
The module channel that triggered the hardware interrupt is entered in the start information of the organization block. The diagram below shows the assignment to the bits of double word 8 in local data.

Figure 5-2 OB start information

Reaction when reaching limits 1 and 2 at the same time
If the two high limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for high limit 1 first. The configured value for high limit 2 is irrelevant. After processing the hardware interrupt for high limit 1, the module triggers the hardware interrupt for high limit 2.
The module has the same reaction when the low limits are reached at the same time. If the two low limits 1 and 2 are reached at the same time, the module always signals the hardware interrupt for low limit 1 first. After processing the hardware interrupt for low limit 1, the module triggers the hardware interrupt for low limit 2.

Structure of the additional interrupt information

Table 5- 5 Structure of USI = W#16#0001

Data block name

Contents

USI (User Structure Identifier)

W#16#0001

The channel that triggered the hardware interrupt follows.

Channel

B#16#00 to B#16#n

The event that triggered the hardware interrupt follows.

Event

B#16#03

B#16#04

B#16#05

B#16#06

Remark
Additional interrupt info for hardware interrupts of the I/O module

Bytes 2

Number of the event-triggering channel (n = 1 number of module channels -1)

Low limit violated 1

1

High limit violated 1

Low limit violated 2

Violation of high limit 2

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

48

Manual, 09/2016, A5E32368757-AC

Interrupts/diagnostics alarms 5.3 Diagnostics alarms

5.3

Diagnostics alarms

A diagnostics alarm is generated and the ERROR LED flashes on the module for each diagnostics event. The diagnostics alarms can be read out in the diagnostics buffer of the CPU, for example. You can evaluate the error codes with the user program.

Table 5- 6 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm

Error code

Short-circuit to ground 1H

Wire break

6H

Overflow

7H

Underflow

8H

Parameter assignment 10H error

Load voltage missing 11H

Reference channel

15H

error

Common mode error 118H

Channel temporarily

1FH

unavailable

Meaning Overload at output Short-circuit of output QV to MANA Impedance of encoder circuit too high
Wire break between the module and sensor Channel not connected (open)

Solution Eliminate overload Eliminate the short-circuit Use a different encoder type or modify the wiring, for example, using cables with larger cross-section Connect the cable
· Disable diagnostics · Connect the channel

Measuring range violated
The output value set by the user program violates the valid rated range/overrange
Measuring range violated
The output value set by the user program violates the valid rated range/underrange
· The module cannot evaluate parameters for the channel
· Incorrect parameter assignment

Check the measuring range Correct the output value
Check the measuring range Correct the output value
Correct the parameter assignment

Supply voltage L+ of the module is missing
Reference temperature of the reference junction for the operated TC channel with compensation is invalid.
Valid common mode voltage exceeded
Causes when a 2WT is connected, e.g.:

Connect supply voltage L+ to module/channel
Check the resistance thermometer. For the compensation with data record, restore communication to the module/station.
Check the wiring, e.g. sensor ground connections, use equipotential cables

· Wire break · Galvanic connection to MANA

User calibration is active.
Channel currently not providing current/valid values.

Exit user calibration.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

49

Interrupts/diagnostics alarms 5.3 Diagnostics alarms
Diagnostics alarms with value status (QI)
If you configure the module with value status (QI), the module always checks all errors even if the respective diagnostics is not enabled. But the module cancels the inspection as soon as it detects the first error, regardless if the respective diagnostics has been enabled or not. The result may be that enabled diagnostics may not be displayed.
Example: You have enabled "Underflow" diagnostics, but the module detects the "Wire break" diagnostics first and aborts after this error message. The "Underflow" diagnostics is not detected.
Recommendation: To ensure that all errors can be diagnosed reliably, select all check boxes under "Diagnostics".

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

50

Manual, 09/2016, A5E32368757-AC

Technical specifications

6

Technical specifications of the AI 4xU/I/RTD/TC/ AQ 2xU/I ST

General information Product type designation Hardware functional status Firmware version · FW update possible

6ES7534-7QE00-0AB0
AI 4xU/I/RTD/TC / AQ 2xU/I ST FS01 V1.0.0 Yes

Product function

I&M data

Yes; I&M0 to I&M3

Scalable measuring range

No

Scalable measured values

No

Measuring range adjustment

No

Scalable output range

No

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

V13 / V13.0.2

STEP 7 can be configured/integrated as of version V5.5 SP3 / -

PROFIBUS as of GSD version/GSD revision

V1.0 / V5.1

PROFINET as of GSD version/GSD revision

V2.3 / -

Operating mode

Oversampling

No

MSI

Yes

MSO

Yes

CiR Configuration in RUN

Parameter assignment in RUN possible

Yes

Calibration in RUN possible

Yes

Supply voltage Rated value (DC) Valid range, low limit (DC) Valid range, high limit (DC) Reverse polarity protection

24 V 20.4 V 28.8 V Yes

Input current

Current consumption, max.

200 mA; with 24 V DC supply

Encoder supply

24 V encoder supply Short-circuit protection Output current, max.

Yes 61 mA

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

51

Manual, 09/2016, A5E32368757-AC

Technical specifications

Power Power consumption from backplane bus Power loss Power loss, typ. Analog inputs Number of analog inputs
· For current measurement
· For voltage measurement
· For resistance/resistance thermometer measurement
· For thermocouple measurement
Permissible input voltage for voltage input (destruction limit), max. Permissible input current for current input (destruction limit), max. Technical unit for temperature measurement, can be set Analog input with oversampling Standardization of measured values Input ranges (rated values), voltages 0 to +5 V 0 to +10 V 1 V to 5 V Input resistance (1 V to 5 V) -1 V to +1 V Input resistance (-1 V to +1 V) -10 V to +10 V Input resistance (-10 V to +10 V) -2.5 V to +2.5 V Input resistance (-2.5 V to +2.5 V) -25 mV to +25 mV -250 mV to +250 mV Input resistance (-250 mV to +250 mV) -5 V to +5 V Input resistance (-5 V to +5 V) -50 mV to +50 mV Input resistance (-50 mV to +50 mV) -500 mV to +500 mV Input resistance (-500 mV to +500 mV) -80 mV to +80 mV Input resistance (-80 mV to +80 mV)

6ES7534-7QE00-0AB0
0.7 W
3.3 W
4 4 4 2
4 28.8 V
40 mA
Yes; °C / °F / K
No No
No No Yes 100 k Yes 10 M Yes 100 k Yes 10 M No Yes 10 M Yes 100 k Yes 10 M Yes 10 M Yes 10 M

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

52

Manual, 09/2016, A5E32368757-AC

Technical specifications

Input ranges (rated values), currents 0 mA to 20 mA Input resistance (0 mA to 20 mA)
-20 mA to +20 mA Input resistance (-20 mA to +20 mA)
4 mA to 20 mA Input resistance (4 mA to 20 mA)
Input ranges (rated values), thermocouples Type B Input resistance (type B) Type C Type E Input resistance (type E) Type J Input resistance (type J) Type K Input resistance (type K) Type L Type N Input resistance (type N) Type R Input resistance (type R) Type S Input resistance (type S) Type T Input resistance (type T) Type U Type TXK/TXK(L) according to GOST Input ranges (rated values), resistance thermometer Cu 10 Cu 10 according to GOST Cu 50 Cu 50 according to GOST Cu 100 Cu 100 according to GOST Ni 10 Ni 10 according to GOST Ni 100 Input resistance (Ni 100) Ni 100 according to GOST

6ES7534-7QE00-0AB0
Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC Yes 25 ; plus approx. 42 ohm for overvoltage protection by PTC
Yes 10 M No Yes 10 M Yes 10 M Yes 10 M No Yes 10 M Yes 10 M Yes 10 M Yes 10 M No No
No No No No No No No No Yes; Standard/Climate 10 M No

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

53

Technical specifications
Ni 1000 Input resistance (Ni 1000) Ni 1000 according to GOST LG-Ni 1000 Input resistance (LG-Ni 1000) Ni 120 Ni 120 according to GOST Ni 200 Ni 200 according to GOST Ni 500 Ni 500 according to GOST Pt 10 Pt 10 according to GOST Pt 50 Pt 50 according to GOST Pt 100 Input resistance (Pt 100) Pt 100 according to GOST Pt 1000 Input resistance (Pt 1000) Pt 1000 according to GOST Pt 200 Input resistance (Pt 200) Pt 200 according to GOST Pt 500 Input resistance (Pt 500) Pt 500 according to GOST Input ranges (rated values), resistors 0 ohm to 150 ohm Input resistance (0 ohm to 150 ohm) 0 ohm to 300 ohm Input resistance (0 ohm to 300 ohm) 0 ohm to 600 ohm Input resistance (0 ohm to 600 ohm) 0 to 3000 Ohm 0 ohm to 6000 ohm Input resistance (0 ohm to 6000 ohm) PTC Input resistance (PTC)

6ES7534-7QE00-0AB0 Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No No No No No No No No No No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No Yes; Standard/Climate 10 M No
Yes 10 M Yes 10 M Yes 10 M No Yes 10 M Yes 10 M

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

54

Manual, 09/2016, A5E32368757-AC

Technical specifications

Thermocouple (TC) Temperature compensation · Configurable
· Internal temperature compensation
· External temperature compensation via RTD
· Compensation for 0 °C reference point temperature
· Reference channel of the module
Cable length shielded, max. Analog outputs Number of analog outputs Voltage output, short-circuit protection Voltage output, short-circuit current, max. Current output, open-circuit voltage, max. Cycle time (all channels), min.
Output ranges, voltage 0 V to 10 V 1 V to 5 V -5 V to +5 V -10 V to +10 V Output ranges, current 0 mA to 20 mA -20 mA to +20 mA 4 mA to 20 mA Connection of actuators for voltage output two-wire connection for voltage output four-wire connection for current output two-wire connection Load resistance (in the rated output range) for voltage outputs, min. for voltage outputs, capacitive load, max. for current outputs, max. for current outputs, inductive load, max. Cable length shielded, max.

6ES7534-7QE00-0AB0
Yes Yes Yes Yes, fixed value can be set
No
800 m; for U/I, 200 m for R/RTD, 50 m for TC
2 Yes 24 mA 22 V 3.2 ms; ±0.5 ms, regardless of the number of activated channels
Yes Yes No Yes
Yes Yes Yes
Yes Yes Yes
1 kOhm; 0.5 kOhm at 1 to 5 V 1 µF 750  10 mH
800 m; for current, 200 m for voltage

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

55

Technical specifications

6ES7534-7QE00-0AB0

Analog value generation for the inputs

Integration and conversion time/resolution per channel

Resolution with overrange (bit including sign), max.

16 bit

Configurable integration time

Yes

Integration time (ms)

2.5 / 16.67 / 20 / 100 ms

Basic conversion time including integration time (ms)

9 / 23 / 27 / 107 ms

· Additional conversion time for wire break moni- 9 ms toring

· Additional conversion time for wire break measurement
Interference voltage suppression at interference frequency f1 in Hz Time for offset calibration (per module) Smoothing of the measured values Configurable Level: None Level: Weak Level: Medium Level: Strong Analog value generation for the outputs Integration and conversion time/resolution per channel Resolution with overrange (bit including sign), max. Conversion time (per channel) Settling time for resistive load for capacitive load for inductive load Encoders Connection of the signal encoders For voltage measurement for current measurement as 2-wire transducer
· Load of 2-wire transmitter, max.

150 Ohm, 300 Ohm, 600 Ohm, Pt100. Pt200. Ni100: 2 ms, 6000 Ohm, Pt500. Pt1000. Ni1000. LG-Ni1000. PTC: 4 ms 400 / 60 / 50 / 10
Basic conversion time of the slowest channel
Yes Yes Yes Yes Yes
16 bit
0.5 ms
1.5 ms 2.5 ms 2.5 ms
Yes Yes 820 

for current measurement as 4-wire transducer

Yes

for resistance measurement with two-wire connec- Yes; only for PTC tion

for resistance measurement with three-wire con- Yes; all measuring ranges except PTC; internal

nection

compensation of line resistance

For resistance measurement with four-wire connection

Yes; all measuring ranges except PTC

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

56

Manual, 09/2016, A5E32368757-AC

Technical specifications

Errors/accuracies Linearity error (in relation to input range), (+/-) Temperature error (in relation to input range), (+/-) Crosstalk between the inputs, max. Repeat accuracy in settled state at 25 °C (in relation to input range), (+/-) Output ripple (in relation to output range, bandwidth 0 kHz to 50 kHz), (+/-) Linearity error (in relation to output range), (+/-) Temperature error (in relation to output range), (+/-) Crosstalk between outputs, max. Repeat accuracy in settled state at 25 °C (in relation to output range), (+/-) Temperature errors of internal compensation Operational limit in the entire temperature range Voltage in relation to input range, (+/-) Current in relation to input range, (+/-) Resistance in relation to input range, (+/-) Resistance thermometer in relation to input range, (+/-)
Thermocouple in relation to input range, (+/-)
Voltage in relation to output range, (+/-) Current in relation to output range, (+/-) Basic error limit (operational limit at 25 °C) Voltage in relation to input range, (+/-) Current in relation to input range, (+/-) Resistance in relation to input range, (+/-) Resistance thermometer in relation to input range, (+/-)
Thermocouple in relation to input range, (+/-)
Voltage in relation to output range, (+/-) Current in relation to output range, (+/-)

6ES7534-7QE00-0AB0
0.02% 0.005%/K; for TC typ. T 0.02 +/- %/K -80 dB 0.02%
0.02%
0.15% 0.002%/K
-100 dB 0.05%
+/-6 °C
0.3% 0.3% 0.3% 0.3%; Ptxxx Standard: ±1.5 K, Ptxxx Climatic: ±0.5 K, Nixxx Standard: ±0.5 K, Nixxx Climatic: ±0.3 K 0.3%; Type B: > 600 °C ±4.6 K, Type E: > -200 °C ±1.5 K, Type J: > -210 °C ±1.9 K, Type K: > 200 °C ±2.4 K, Type N: > -200 °C ±2.9 K, Type R: > 0 °C ±4.7 K, Type S: > 0 °C ±4.6 K, Type T: > -200 °C ±2.4 K 0.3% 0.3%
0.1% 0.1% 0.1% 0.1%; Ptxxx Standard: ±0.7 K, Ptxxx Climatic: ±0.2 K, Nixxx Standard: ±0.3 K, Nixxx Climatic: ±0.15 K 0.1%; Type B: > 600 °C ±1.7 K, Type E: > -200 °C ±0.7 K, Type J: > -210 °C ±0.8 K, Type K: > 200 °C ±1.2 K, Type N: > -200 °C ±1.2 K, Type R: > 0 °C ±1.9 K, Type S: > 0 °C ±1.9 K, Type T: > -200 °C ±0.8 K 0.2% 0.2%

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

57

Technical specifications

6ES7534-7QE00-0AB0

Interference voltage suppression for f = n x (f1 +/1 %), f1 = interference frequency

Series mode interference (peak value of interfer- 40 dB ence < rated value of input range), min.

Common mode voltage, max.

10 V

Common mode interference, min.

60 dB

Isochronous mode

Isochronous mode (application synchronized up to No terminal)

Interrupts/diagnostics/status information

Diagnostics function

Yes

Substitute values can be applied

Yes

Interrupts

Diagnostic interrupt

Yes

Limit interrupt

Yes; two high limits and two low limits each

Diagnostics alarms

Monitoring of supply voltage

Yes

Wire break

Yes; only for input type 1 ... 5 V, 4 ... 20 mA, TC, R, RTD and output type current

Short-circuit

Yes; only for output type voltage

Overflow/underflow

Yes

Diagnostics display LED

RUN LED

Yes; green LED

ERROR LED

Yes; red LED

Monitoring of supply voltage (PWR LED)

Yes; green LED

Channel status display

Yes; green LED

For channel diagnostics

Yes; red LED

For module diagnostics

Yes; red LED

Electrical isolation

Electrical isolation analog inputs

Between the channels

No

Between the channels, in groups of

4

Between the channels and backplane bus

Yes

Between the channels and load voltage L+

Yes

Electrical isolation analog outputs

Between the channels

No

Between the channels, in groups of

2

Between the channels and backplane bus

Yes

Between the channels and load voltage L+

Yes

Permissible potential difference

Between the inputs (UCM)

20 V DC

Between the inputs and MANA (UCM)

10 V DC

between S- and MANA (UCM)

8 V DC

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

58

Manual, 09/2016, A5E32368757-AC

Insulation Insulation tested with Ambient conditions Ambient temperature during operation Horizontal mounting position, min. Horizontal mounting position, max. Vertical mounting position, min. Vertical mounting position, max. Distributed mode Prioritized startup Dimensions Width Height Depth Weights Weight, approx. Miscellaneous Note:

Technical specifications
6ES7534-7QE00-0AB0
707 V DC (type test)
0 °C 60  0 °C 40 °C
No
25 mm 147 mm 129 mm
250 g
Package includes 40-pin push-in front connector Additional basic error and noise for integration time = 2.5 ms: Voltage: ±250 mV (±0.02%), ±80 mV (±0.05%), ±50 mV (±0.05%); resistance: 150 Ohm (±0.02%); resistance thermometer: Pt100 Climatic: ±0.08 K, Ni100 Climatic: ±0.08 K; thermocouple: Type B, R, S: ±3 K, Type E, J, K, N, T: ±1 K

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

59

Dimension drawing

A

The dimension drawing of the module on the mounting rail, as well as a dimension drawing with open front panel are provided in the appendix. Always adhere to the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1Dimension drawing of the AI 4xU/I/RTD/TC/ AQ 2xU/I ST module

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

60

Dimension drawing
Figure A-2 Dimension drawing of the AI 4xU/I/RTD/TC/ AQ 2xU/I ST module, side view with open front panel

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

61

Parameter data records

B

B.1

Parameter assignment and structure of the parameter data records

The data records of the module have an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO.

Dependencies for configuration with GSD file
When configuring the module with a GSD file, remember that the settings of some parameters are dependent on each other. The parameters are only checked for plausibility by the module after the transfer to the module.
The following table lists the parameters that depend on one another.

Table B- 1 Dependencies of parameters for configuration with GSD file

Device-specific parameters (GSD file) Current limit for wire break
Wire break
Common mode error Reference junction Measurement type resistance (4-wire connection, 3-wire connection, 2-wire connection) Measurement type thermistor RTD (4-wire connection, 3-wire connection) Hardware interrupt limits Fixed reference temperature
Short-circuit to ground Wire break Substitute value

Dependent parameters Only for measurement type current with measuring range 4 mA to 20 mA. Only for measurement type resistance, thermistor RTD, thermocouple TC, voltage with measuring range 1V to 5 V and current with measuring range 4 to 20 mA. Only for measuring type voltage, current and thermocouple TC. Only for measurement type thermocouple TC.
Configurable for even channels (0 and 2) only. The next odd channel (1 and 3) must be disabled.
Only if hardware interrupts are enabled. Only if the Reference junction parameter and the Fixed reference temperature value is configured. With output type voltage only With output type current only Only if Reaction to CPU STOP -> Output substitute value is configured

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

62

Parameter data records B.1 Parameter assignment and structure of the parameter data records
Parameter assignment in the user program
The module parameters can be assigned in RUN (for example, measuring ranges of selected channels can be edited in RUN without having an effect on the other channels).
Parameter assignment in RUN
The WRREC instruction is used to transfer the parameters to the module using data records. The parameters set with STEP 7 are not changed in the CPU, which means the parameters set in STEP 7 will be valid after a restart. The parameters are only checked for plausibility by the module after the transfer to the module.
Output parameter STATUS
If errors occur during the transfer of parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. However, a corresponding error code is written to the STATUS output parameter. The description of the WRREC instruction and the error codes is available in the STEP 7 online help.
Operation of the module downstream from a PROFIBUS DP interface module
If the module is operated downstream from a IM PROFIBUS DP interface module, the parameter data records 0 and 1 cannot be read back. You get the diagnostics data records 0 and 1 for the read back parameter data records 0 and 1. You can find more information in the Interrupts section of the PROFIBUS DP interface module product manual on the Internet (http://support.automation.siemens.com/WW/view/en/78324181).

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

63

Parameter data records B.2 Structure of a data record for input channels

B.2

Structure of a data record for input channels

Assignment of data record and channel
For the configuration as a 1 x 4-channel module, the parameters are located in data records 0 to 3 and are assigned as follows:  Data record 0 for channel 0  Data record 1 for channel 1  Data record 2 for channel 2  Data record 3 for channel 3 For configuration 4 x 1-channel, the module has 4 submodules with one channel each. The parameters for the channel are available in data record 0 and are assigned as follows:  Data record 0 for channel 0 (submodule 1)  Data record 0 for channel 1 (submodule 2)  Data record 0 for channel 2 (submodule 3)  Data record 0 for channel 3 (submodule 4) Address the respective submodule for data record transfer.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

64

Manual, 09/2016, A5E32368757-AC

Parameter data records B.2 Structure of a data record for input channels
Data record structure
The figure below shows the structure of data record 0 for channel 0 as an example. The structure is identical for channels 1 to 3. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-1 Structure of data record 0: Bytes 0 to 6

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

65

Parameter data records B.2 Structure of a data record for input channels

Figure B-2 Structure of data record 0: Bytes 7 to 27

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

66

Manual, 09/2016, A5E32368757-AC

Parameter data records B.2 Structure of a data record for input channels

Codes for measurement types
The following table lists all measurement types of the analog input module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 2 Code for the measurement type

Measurement type Disabled Voltage Current, 2-wire transmitter Current, 4-wire transmitter Resistance, 4-wire connection *) **) Resistance, 3-wire connection *) **) Resistance, 2-wire connection *) ***) Thermal resistor linear, 4-wire connection *) Thermal resistor linear, 3-wire connection *) Thermocouple

Code 0000 0000 0000 0001 0000 0011 0000 0010 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1010

*) only possible for channels 0 and 2 **) only for the following measuring ranges: 150 , 300 , 600 , 6 k ***) only for measuring range PTC

Special feature for configuration
If you assign one of the following measurement types on channel 0 or 2, then the next channel must always be disabled.
 Resistance, 4-wire connection
 Resistance, 3-wire connection
 Resistance, 2-wire connection
 Thermal resistor linear, 4-wire connection
 Thermal resistor linear, 3-wire connection
Example:
You have configured "Resistance, 4-wire connection" at channel 0; channel 1 must be disabled. You have configured "Resistance, 2-wire connection" at channel 2; channel 3 must be disabled.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

67

Parameter data records B.2 Structure of a data record for input channels

Codes for measuring ranges
The following table lists all measuring ranges of the analog input module along with their codes. Enter these codes accordingly at byte 3 of the data record for the corresponding channel (see the figure Structure of data record 0: Bytes 7 to 27).

Table B- 3 Code for the measuring range
Measuring range Voltage ±50 mV ±80 mV ±250 mV ±500 mV ±1 V ±2.5 V ±5 V ±10 V 1 V to 5 V Current, 4-wire transmitter 0 mA to 20 mA 4 mA to 20 mA ±20 mA Current, 2-wire transmitter 4 mA to 20 mA Resistor 150  300  600  6 k PTC

Code
0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000 0000 1001 0000 1010
0000 0010 0000 0011 0000 0100
0000 0011
0000 0001 0000 0010 0000 0011 0000 0101 0000 1111

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

68

Manual, 09/2016, A5E32368757-AC

Parameter data records B.2 Structure of a data record for input channels

Thermal resistor Pt100 Climate Ni100 Climate Pt100 standard Ni100 standard Pt500 standard Pt1000 standard Ni1000 standard Pt200 Climate Pt500 Climate Pt1000 Climate Ni1000 Climate Pt200 standard LG-Ni1000 standard LG-Ni1000 Climate Thermocouple B N E R S J T K

0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111 0000 1000 0000 1001 0000 1010 0000 1011 0001 1100 0001 1101
0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0111 0000 1000

Codes for temperature coefficient
The following table lists all temperature coefficients along with their codes for temperature measurements with the thermal resistors. You must enter these codes in each case in byte 4 of the data record for the corresponding channel (refer to the figure Structure of data record 0: Bytes 0 to 6)

Table B- 4 Codes for temperature coefficient
Temperature coefficient Pt xxx 0.003851 0.003916 0.003902 0.003920 Ni xxx 0.006180 0.006720 LG-Ni 0.005000

Code
0000 0000 0000 0001 0000 0010 0000 0011
0000 1000 0000 1001
0000 1010

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

69

Parameter data records B.2 Structure of a data record for input channels

Valid values for fixed reference temperatures
The values that you can set for fixed reference temperatures must be in the valid range of values. The resolution is a tenth of a degree.

Table B- 5 Valid values for fixed reference temperatures

Temperature unit Celsius (default) Fahrenheit (default) Kelvin (default)

Dec -1450 to 1550 -2290 to 3110 1282 to 3276

Hex FA56H to 60EH F70EH to CCCH 502H to 10BAH

Hardware interrupt limits
The values that you can set for hardware interrupts (high/low limit) must not violate the over/underrange of the respective rated measuring range.
The following tables list the valid hardware interrupt limits. The limits depend on the selected measurement type and measuring range.

Table B- 6 Voltage limits

Voltage ±50 mV, ±80 mV, ±250 mV, ±500 mV, ±1 V, ±2.5 V, ±5 V, ±10 V 32510
-32511

1 V to 5 V
32510 -4863

High limit Low limit

Table B- 7 Current and resistance limits

Current ±20 mA
32510 -32511

4 mA to 20 mA / 0 mA to 20 mA
32510
-4863

Resistor (all configurable measuring ranges)
32510 1

High limit Low limit

Table B- 8 Limits for thermocouple types B, C, E, and J

Thermocouple

Type B

°C

°F

20699 32765

1

321

K 23431
2733

°C 11999 -2699

Type E

°F

K

21919 14731

-4539 33

°C 14499 -2099

Type J °F
26419 -3459

K 17231
633

High limit Low limit

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

70

Manual, 09/2016, A5E32368757-AC

Parameter data records B.2 Structure of a data record for input channels

Table B- 9 Limits for thermocouples type K, N, R, and S

Thermocouple

Type K

°C

°F

K

16219 29515 18951

-2699 -4539 33

°C 15499 -2699

Type N

°F

K

28219 18231

-4539 33

Types R, S

°C

°F

K

20189 32765 22921

-1699 -2739 1033

High limit Low limit

Table B- 10 Limits for thermocouple type T

Thermocouple

Type T

°C

°F

5399 10039

-2699 -4539

K 8131
33

High limit Low limit

Table B- 11 Limits for thermal resistor Pt xxx Standard and Pt xxx Climatic

Thermal resistor

Pt xxx Standard

°C

°F

K

9999

18319

12731

-2429

-4053

303

°C 15499 -14499

Pt xxx Climate

°F

K

31099

---

-22899

---

High limit Low limit

Table B- 12 Limits for thermal resistor Ni xxx Standard and Ni xxx Climatic

Thermal resistor

Ni xxx Standard

°C

°F

K

2949

5629

5681

-1049

-1569

1683

°C 15499 -10499

Ni xxx Climate

°F

K

31099

---

-15699

---

High limit Low limit

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

71

Parameter data records B.3 Structure of a data record for output channels

B.3

Structure of a data record for output channels

Assignment of data record and channel
For the configuration as a 1 x 2-channel module, the parameters are located in data records 64 and 65 and are assigned as follows:  Data record 64 for channel 0  Data record 65 for channel 1 For configuration 2 x 1-channel, the module has 2 submodules with one channel each. The parameters for the channel are available in data record 64 and are assigned as follows:  Data record 64 for channel 0 (submodule 1)  Data record 64 for channel 1 (submodule 2) Address the respective submodule for data record transfer.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

72

Manual, 09/2016, A5E32368757-AC

Parameter data records B.3 Structure of a data record for output channels
Data record structure
The example in the figure below shows the structure of data record 64 for channel 0. The structure of channel 1 is identical. The values in byte 0 and byte 1 are fixed and may not be changed. Enable a parameter by setting the corresponding bit to "1".

Figure B-3 Structure of data record 64: Bytes 0 to 7

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

73

Parameter data records B.3 Structure of a data record for output channels

Codes for the output type
The following table lists all output types of the analog output module along with their codes. Enter these codes at byte 2 of the data record for the corresponding channel (see the previous figure).

Table B- 13 Code for the output type
Output type Disabled Voltage Current

Code 0000 0000 0000 0001 0000 0010

Codes for the output ranges
The following table lists all voltage and current output ranges of the analog output module along with their codes. In each case, enter these codes at byte 3 of the respective data record (see previous figure).

Table B- 14 Code for the output range
Output range for voltage 1 V to 5 V 0 V to 10 V ±10 V Output range for current 0 mA to 20 mA 4 mA to 20 mA ±20 mA

Code 0000 0011 0000 0010 0000 0000 Code 0000 0001 0000 0010 0000 0000

Valid substitute values
The following table lists all output ranges for the valid substitute values. Enter these substitute values at bytes 6 and 7 of the data record for the corresponding channel (see the previous figure). The binary representation of output ranges is available on the Internet in the function manual Analog value processing for SIMATIC.

Table B- 15 Valid substitute value for the output range

Output range ±10 V 1 V to 5 V 0 V to 10 V ±20 mA 4 mA to 20 mA 0 mA to 20 mA

Valid substitute value -32512 ... +32511 -6912 ... +32511 0 ... +32511 -32512 ... +32511 -6912 ... +32511 0 ... +32511

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

74

Manual, 09/2016, A5E32368757-AC

Parameter data records B.4 Structure of a data record for dynamic reference temperature

B.4

Structure of a data record for dynamic reference temperature
The WRREC instruction is used to transfer the reference junction temperature via data record 192 to data record 195 to the module. Data records 192 to 195 cannot be read back.
The description of the WRREC instruction can be found in the STEP 7 online help.
If you have set the "Dynamic reference temperature" value for the "Reference junction" parameter, the module expects a new data record at least every 5 minutes. If the module does not receive a new data record within this time, it generates the "Reference channel error" diagnostics message.

Assignment of data record and channel
Data records and channels are assigned as follows:  Data record 192 for channel 0  Data record 193 for channel 1  Data record 194 for channel 2  Data record 195 for channel 3

Structure of data record 192 for dynamic reference temperature
The following figure shows an example of the structure of data record 192 for channel 0. The structure for data records 193 to 195 is identical.

Figure B-4 Structure of data record 192

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

75

Parameter data records B.4 Structure of a data record for dynamic reference temperature

Valid values for temperature compensation
You can enter the selectable values at bytes 2 and 3 of the data record for the corresponding channel. The selectable values must lie within the permitted value range, see following table. The resolution is a tenth of a degree.

Table B- 16 Valid values for temperature compensation via data record

Temperature unit Celsius (standard) Fahrenheit (standard) Kelvin (standard) Celsius (climatic) Fahrenheit (climatic) Kelvin (climatic)

Dec -1450 to 1550 -2290 to 3110 1282 to 3276 -14500 to 15500 -22900 to 31100 12820 to 32760

Hex FA56H to 60EH F70EH to C26H 502H to CCCH C75CH to 3C8CH A68CH to 797CH 3214H to 7FF8H

Additional information
For more information on compensation of the reference junction temperature via data record refer to the Analog value processing (http://support.automation.siemens.com/WW/view/en/67989094) function manual in the internet.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

76

Manual, 09/2016, A5E32368757-AC

Analog value processing

C

Introduction

This section shows the analog values for all measuring ranges supported by the AI 4xU/I/RTD/TC/ AQ 2xU/I ST analog module.

Measured value resolution
Each analog value is written left aligned to the tags. The bits marked with "x" are set to "0".
Note This resolution does not apply to temperature values. The digitalized temperature values are the result of a conversion in the analog module.

Table C- 1 Resolution of the analog values

Resolution in bits including sign
16

Values

Dec

Hex

1

1H

Analog value

High byte

Low byte

Sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

77

Manual, 09/2016, A5E32368757-AC

Analog value processing C.1 Representation of input ranges

C.1

Representation of input ranges
The tables below set out the digitized representation of the input ranges by bipolar and unipolar input ranges. The resolution is 16 bits.

Table C- 2 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table C- 3 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 range 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Undershoot 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 range 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

78

Manual, 09/2016, A5E32368757-AC

C.1.1

Analog value processing C.1 Representation of input ranges

Representation of analog values in voltage measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible voltage measuring ranges.

Table C- 4
Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

Voltage measuring ranges ±10 V, ±5 V, ±2.5 V, ±1 V,

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±10 V

±5 V

>11.759 V >5.879 V

11.759 V 5.879 V

±2.5 V >2.940 V 2.940 V

±1 V > 1.176 V 1.176 V

10 V 7.5 V 361.7 µV 0 V

5 V 3.75 V 180.8 µV 0 V

2.5 V 1.875 V 90.4 µV 0 V

1 V 0.75 V 36.17 µV 0 V

-7.5 V -10 V

-3.75 V -5 V

-1.875 V -2.5 V

-0.75 V -1 V

-11.759 V -5.879 V <-11.759 V <-5.879 V

-2.940 V <-2.940 V

-1.176 V <-1.176 V

Range Overflow Over range Rated range
Under range Underflow

Table C- 5 Voltage measuring ranges ±500 mV, ±250 mV, ±80 mV, and ±50 mV

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Voltage measuring range

±500 mV

±250 mV

>587.9 mV > 294.0 mV

587.9 mV 294.0 mV

±80 mV > 94.1 mV 94.1 mV

±50 mV > 58.8 mV 58.8 mV

Range
Overflow Over range

500 mV 375 mV 18.08 µV 0 mV

250 mV 187.5 mV 9.04 µV 0 mV

80 mV 60 mV 2.89 µV 0 mV

50 mV 37.5 mA 1.81 µV 0 mV

Rated range

-375 mV -500 mV

-187.5 mV -250 mV

-60 mV -80 mV

-587.9 mV -294.0 mV -94.1 mV <-587.9 mV <-294.0 mV <-94.1 mV

-37.5 mV -50 mV
-58.8 mV <-58.8 mV

Under range Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

79

Analog value processing C.1 Representation of input ranges

Table C- 6 Voltage measuring range 1 V to 5 V

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Voltage measuring range 1 V to 5 V >5.704 V 5.704 V
5 V 4 V 1 V + 144.7 µV 1 V
0.296 V < 0.296 V

Range Overflow Over range Rated range
Under range Underflow

C.1.2

Representation of analog values in the current measuring ranges
The following tables list the decimal and hexadecimal values (codes) of the possible current measuring ranges.

Table C- 7 Current measuring range ±20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 8000

Current measuring range ±20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-15 mA -20 mA
-23.52 mA <-23.52 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

80

Manual, 09/2016, A5E32368757-AC

Analog value processing C.1 Representation of input ranges

Table C- 8 Current measuring ranges 0 mA to 20 mA and 4 mA to 20 mA

Values dec 32767 32511 27649 27648 20736 1 0 -1 -4864 -32768

hex 7FFF 7EFF 6C01 6C00 5100 1 0 FFFF ED00 8000

Current measuring range 0 mA to 20 mA >23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA
-3.52 mA <- 3.52 mA

4 mA to 20 mA >22.81 mA 22.81 mA
20 mA 16 mA 4 mA + 578.7 nA 4 mA
1.185 mA < 1.185 mA

Overflow Overshoot range Rated range
Undershoot range Underflow

C.1.3

Representation of the analog values of resistance-based sensors/resistance thermometers
The following tables list the decimal and hexadecimal values (codes) of the possible resistance-based sensor ranges.

Table C- 9 Resistance-based sensors of 150 , 300 , 600 , and 6000 

Values dec 32767 32511 27649 27648 20736 1 0

hex 7FFF 7EFF 6C01 6C00 5100 1 0

Resistance-based sensor range

150 

300 

>176.38 

>352.77 

176.38 

352.77 

150  112.5  5.43 m 0 

300  225  10.85 m 0 

600  >705.53  705.53 
600  450  21.70 m 0 

6000  >7055.3  7055.3 
6000  4500  217 m 0 

Overflow Overshoot range
Rated range

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

81

Analog value processing C.1 Representation of input ranges

The following tables list the decimal and hexadecimal values (codes) of the supported resistance thermometers.

Table C- 10 Resistance thermometers Pt 100, Pt 200, Pt 500 and Pt 1000 Standard

Pt x00 Standard in °C (1 digit = 0.1°C) > 1000.0 1000.0 : 850.1 850.0 : -200.0 -200.1 : -243.0 < -243.0

Values dec
32767 10000 : 8501 8500 : -2000 -2001 : -2430 -32768

hex
7FFF 2710 : 2135 2134 : F830 F82F : F682 8000

Pt x00 Standard in °F (1 digit = 0.1 °F) > 1832.0 1832.0 : 1562.1 1562.0 : -328.0 -328.1 : -405.4 < -405.4

Values dec
32767 18320 : 15621 15620 : -3280 -3281 : -4054 -32768

hex
7FFF 4790 : 3D05 3D04 : F330 F32F : F02A 8000

Pt x00 Standard in K (1 digit = 0.1 K) > 1273.2 1273.2 : 1123.3 1123.2 : 73.2 73.1 : 30.2 < 30.2

Values dec
32767 12732 : 11233 11232 : 732 731 : 302 32768

hex
7FFF 31BC : 2BE1 2BE0 : 2DC 2DB : 12E 8000

Range
Overflow Overshoot range Rated range
Under range
Underflow

Table C- 11 Resistance thermometers Pt 100, Pt 200, Pt 500 and Pt 1000 Climatic

Pt x00 Climatic/ in °C (1 digit = 0.01 °C) > 155.00 155.00 : 130.01 130.00 : -120.00 -120.01 : -145.00 < -145.00

Values dec
32767 15500 : 13001 13000 : -12000 -12001 : -14500 -32768

hex
7FFF 3C8C : 32C9 32C8 : D120 D11F : C75C 8000

Pt x00 Climatic/ in °F (1 digit = 0.01 °F) > 311.00 311.00 : 266.01 266.00 : -184.00 -184.01 : -229.00 < -229.00

Values dec
32767 31100 : 26601 26600 : -18400 -18401 : -22900 -32768

hex
7FFF 797C : 67E9 67E8 : B820 B81F : A68C 8000

Range
Overflow Overshoot range Rated range
Under range
Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

82

Manual, 09/2016, A5E32368757-AC

Analog value processing C.1 Representation of input ranges

Table C- 12 Resistance thermometers Ni 100, Ni 1000, LG-Ni 1000 Standard

Ni x00 standard in °C (1 digit = 0.1 °C) > 295.0 295.0 : 250.1 250.0 : -60.0 -60.1 : -105.0 < -105.0

Values dec
32767 2950 : 2501 2500 : -600 -601 : -1050 -32768

hex
7FFF B86 : 9C5 9C4 : FDA8 FDA7 : FBE6 8000

Ni x00 Standard in °F (1 digit = 0.1 °F) > 563.0 563.0 : 482.1 482.0 : -76.0 -76.1 : -157.0 < -157.0

Values dec
32767 5630 : 4821 4820 : -760 -761 : -1570 -32768

hex
7FFF 15FE : 12D5 12D4 : FD08 FD07 : F9DE 8000

Ni x00 Standard in K (1 digit = 0.1 K) > 568.2 568.2 : 523.3 523.2 : 213.2 213.1 : 168.2 < 168.2

Values dec
32767 5682 : 5233 5232 : 2132 2131 : 1682 32768

hex
7FFF 1632 : 1471 1470 : 854 853 : 692 8000

Range
Overflow Overshoot range Rated range
Under range
Underflow

Table C- 13 Resistance thermometers Ni 100, Ni 1000, LG-Ni 1000 Climatic

Ni x00 Climatic in °C (1 digit = 0.01 °C)
> 155.00 155.00 : 130.01 130.00 : -60.00 -60.01 : -105.00 < - 105.00

Values
dec 32767 15500 : 13001 13000 : -6000 -6001 : -10500 -32768

hex 7FFF 3C8C : 32C9 32C8 : E890 E88F : D6FC 8000

Ni x00 climatic in °F Values (1 digit = 0.01 °F) dec

> 311.00

32767

311.00

31100

:

:

266.01

26601

266.00

26600

:

:

-76.00

-7600

-76.01

-7601

:

:

-157.00

-15700

< - 157.00

-32768

hex 7FFF 797C : 67E9 67E8 : E250 E24F : C2AC 8000

Range Overflow Overshoot range Rated range
Under range
Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

83

Analog value processing C.1 Representation of input ranges

C.1.4

Representation of analog values for thermocouples
The following tables list the decimal and hexadecimal values (codes) of the supported thermocouples.

Table C- 14 Thermocouple type B

Type B in C
> 2070.0 2070.0 : 1820.1 1820.0 : 250.0 249.9 : 0.0 < 0.0

Values
dec 32767 20700 : 18201 18200 : 2500 2499 : 0 -32768

hex 7FFF 50DC : 4719 4718 : 09C4 09C3 : 0 8000

Type B in °F
> 3276.6 3276.6 : 2786.6 2786.5 : 482.0 481.9 : 32.0 < 32.0

Values
dec 32767 32766 : 27866 27865 : 4820 4819 : 320 -32768

hex 7FFF 7FFE : 6CDA 6CD9 : 12D4 12D3 : 0140 8000

Type B in K
> 2343.2 2343.2 : 2093.3 2093.2 : 523.2 523.1 : 273.2 < 273.2

Values
dec 32767 23432 : 20933 20932 : 5232 5231 : 2732 32768

hex 7FFF 5B88 : 51C5 51C4 : 1470 1469 : 0AAC 8000

Range Overflow Over range
Rated range
Under range
Underflow

Table C- 15 Thermocouple type E

Type E in °C
> 1200.0 1200.0 : 1000.1 1000.0 : -270.0 < -270.0

Values dec 32767 12000 : 10001 10000 : -2700 -32768

hex 7FFF 2EE0 : 2711 2710 : F574 8000

Type E in °F
> 2192.0 2192.0 : 1832.2 1832.0 : -454.0 < -454.0

Values dec 32767 21920 : 18322 18320 : -4540 -32768

hex 7FFF 55A0 : 4792 4790 : EE44 8000

Type E in K
> 1473.2 1473.2 : 1273.3 1273.2 : 0 <0

Values dec 32767 14732 : 12733 12732 : 0 -32768

hex 7FFF 398C : 31BD 31BC : 0000 8000

Range Overflow Over range
Rated range
Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

84

Manual, 09/2016, A5E32368757-AC

Analog value processing C.1 Representation of input ranges

Table C- 16 Thermocouple type J

Type J in °C
> 1450.0 1450.0 : 1200.1 1200.0 : -210.0 < -210.0

Values dec 32767 14500 : 12001 12000 : -2100 -32768

hex 7FFF 38A4 : 2EE1 2EE0 : F7CC 8000

Type J in °F
> 2642.0 2642.0 : 2192.2 2192.0 : -346.0 < -346.0

Values dec 32767 26420 : 21922 21920 : -3460 -32768

hex 7FFF 6734 : 55A2 55A0 : F27C 8000

Type J in K
> 1723.2 1723.2 : 1473.3 1473.2 : 63.2 < 63.2

Values dec 32767 17232 : 14733 14732 : 632 -32768

hex 7FFF 4350 : 398D 398C : 0278 8000

Range Overflow Over range
Rated range
Underflow

Table C- 17 Thermocouple type K

Type K in °C
> 1622.0 1622.0 : 1372.1 1372.0 : -270.0 < -270.0

Values dec 32767 16220 : 13721 13720 : -2700 -32768

hex 7FFF 3F5C : 3599 3598 : F574 8000

Type K in °F
> 2951.6 2951.6 : 2501.7 2501.6 : -454.0 < -454.0

Values dec 32767 29516 : 25017 25016 : -4540 -32768

hex 7FFF 734C : 61B9 61B8 : EE44 8000

Type K in K
> 1895.2 1895.2 : 1645.3 1645.2 : 0 < 0

Values dec 32767 18952 : 16453 16452 : 0 -32768

hex 7FFF 4A08 : 4045 4044 : 0000 8000

Range Overflow Over range
Rated range
Underflow

Table C- 18 Thermocouple type N

Type N in °C
> 1550.0 1550.0 : 1300.1 1300.0 : -270.0 < -270.0

Values
dec 32767 15500 : 13001 13000 : -2700 -32768

hex 7FFF 3C8C : 32C9 32C8 : F574 8000

Type N in °F
> 2822.0 2822.0 : 2372.2 2372.0 : -454.0 < -454.0

Values
dec 32767 28220 : 23722 23720 : -4540 -32768

hex 7FFF 6E3C : 5CAA 5CA8 : EE44 8000

Type N in K
> 1823.2 1823.2 : 1573.3 1573.2 : 0 < 0

Values
dec 32767 18232 : 15733 15732 : 0 -32768

hex 7FFF 4738 : 3D75 3D74 : 0000 8000

Range Overflow Over range
Rated range
Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

85

Analog value processing C.1 Representation of input ranges

Table C- 19 Thermocouple type R and S

Type R, S Values

in °C

dec

> 2019.0 32767

2019.0 20190

:

:

1769.1 17691

1769.0 17690

:

:

-50.0

-500

-50.1

-501

:

:

-170.0 -1700

< -170.0 -32768

hex 7FFF 4EDE : 451B 451A : FE0C FE0B : F95C 8000

Type R, S Values

in °F

dec

> 3276.6 32767

3276.6 32766

:

:

3216.4 32164

3216.2 32162

:

:

-58.0

-580

-58.1

-581

:

:

-274.0 -2740

< -274.0 -32768

hex 7FFF 7FFE : 7DA4 7DA2 : FDBC FDBB : F54C 8000

Types R, S in K
> 2292.2 2292.2 : 2042.3 2042.2 : 223.2 223.1 : 103.2 < 103.2

Values
dec 32767 22922 : 20423 20422 : 2232 2231 : 1032 < 1032

hex 7FFF 598A : 4FC7 4FC6 : 08B8 08B7 : 0408 8000

Range Overflow Over range
Rated range
Under range
Underflow

Table C- 20 Thermocouple type T

Type T in °C
> 540.0 540.0 : 400.1 400.0 : -270.0 < -270.0

Values dec 32767 5400 : 4001 4000 : -2700 -32768

hex 7FFF 1518 : 0FA1 0FA0 : F574 8000

Type T in °F
> 1004.0 1004.0 : 752.2 752.0 : -454.0 < -454.0

Values dec 32767 10040 : 7522 7520 : -4540 -32768

hex 7FFF 2738 : 1D62 1D60 : EE44 8000

Type T in K
> 813.2 813.2 : 673.3 673.2 : 3.2 < 3.2

Values dec 32767 8132 : 6733 6732 : 32 -32768

hex 7FFF 1FC4 : 1AAD 1AAC : 0020 8000

Range Overflow Over range
Rated range
Underflow

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

86

Manual, 09/2016, A5E32368757-AC

Analog value processing C.1 Representation of input ranges

C.1.5

Measured values for wire break diagnostics

Measured values on diagnostics event "wire break", dependent on diagnostics enables
Error events initiate a diagnostics entry and trigger a diagnostics interrupt if configured accordingly.

Table C- 21 Measured values for wire break diagnostics

Format S7

Parameter assignment
· "Wire break" diagnostics enabled · "Overflow/Underflow" diagnostics
enabled or disabled ("Wire break" diagnostics takes priority over "Overflow/Underflow" diagnostics)
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
enabled
· "Wire break" diagnostics disabled · "Overflow/Underflow" diagnostics
disabled

Measured values

32767

7FFFH

-32767 8000 H -32767 8000 H

Explanation "Wire break" or "Open circuit" diagnostics alarm
· Measured value after leaving the under range
· Diagnostics alarm "Low limit violated" Measured value after leaving the under range

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

87

Analog value processing C.2 Representation of output ranges

C.2

Representation of output ranges
The tables below set out the digitalized representation of the output ranges by bipolar and unipolar range. The resolution is 16 bits.

Table C- 22 Bipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Undershoot range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < -32512 are specified, the output value is limited to -117.593%.

Table C- 23 Unipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Overshoot range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589%. ** When values < 0 are specified, the output value is limited to 0%.

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

88

Manual, 09/2016, A5E32368757-AC

C.2.1

Analog value processing C.2 Representation of output ranges

Representation of analog values in the voltage output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible voltage output ranges.

Table C- 24 Voltage output range ±10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-75% -100%

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400

Voltage output range ±10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V -361.7 µV -7.5 V -10 V

-117.593% <-117.593%

-27649 -32512 <-32512

93FF 8100 < 8100

-11.76 V -11.76 V

Range Maximum output value Over range
Rated range
Under range Minimum output value

Table C- 25 Voltage output range 0 V to 10 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Voltage output range 0 V to 10 V 11.76 V 11.76 V
10 V 7.5 V 361.7 µV 0 V 0 V

Range Maximum output value Over range Rated range
Minimum output value

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

89

Analog value processing C.2 Representation of output ranges

Table C- 26 Voltage output range 1 V to 5 V

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 < E500

Voltage output range 1 V to 5 V 5.70 V 5.70 V
5 V 4 V 1 V +144.7 µV 1 V 1 V -144.7 µV 0 V 0 V

Range Maximum output value Over range Rated range
Under range Minimum output value

C.2.2

Representation of analog values in the current output ranges
The tables below list the decimal and hexadecimal values (codes) of the possible current output ranges.

Table C- 27 Current output range ±20 mA

Values
>117.589% 117.589%
100 % 75% 0.003617 % 0%
-75% -100%
-117.593% <-117.593%

dec >32511 32511 27649 27648 20736 1 0 -1 -20736 -27648 -27649 -32512 <-32512

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF AF00 9400 93FF 8100 <8100

Current output range ±20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA -723.4 nA -15 mA -20 mA
-23.52 mA -23.52 mA

Range Maximum output value Over range
Rated range Under range Minimum output value

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

90

Manual, 09/2016, A5E32368757-AC

Analog value processing C.2 Representation of output ranges

Table C- 28 Current output range 0 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0% <0%

dec >32511 32511 27649 27648 20736 1 0 <0

hex >7EFF 7EFF 6C01 6C00 5100 1 0 <0

Current output range 0 mA to 20 mA 23.52 mA 23.52 mA
20 mA 15 mA 723.4 nA 0 mA 0 mA

Range Maximum output value Over range
Rated range Minimum output value

Table C- 29 Current output range 4 mA to 20 mA

Values
>117.589% 117.589%
100% 75% 0.003617% 0%
-25% <-25%

dec >32511 32511 27649 27648 20736 1 0 -1 -6912 <-6912

hex >7EFF 7EFF 6C01 6C00 5100 1 0 FFFF E500 <E500

Current output range 4 mA to 20 mA 22.81 mA 22.81 mA
20 mA 16 mA 4 mA 4 mA
0 mA 0 mA

Range Maximum output value Over range
Rated range Under range Minimum output value

Analog Input/Output Module AI 4xU/I/RTD/TC/ AQ 2xU/I ST (6ES7534-7QE00-0AB0)

Manual, 09/2016, A5E32368757-AC

91

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Co_n_fig_u_rin_g/_ad_d_re_ss_s_pa_c_e ____4_ _Imn_etes_rsrua_pg_tess/_di_ag_n_os_tic________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_

_Di_m_en_si_on_a_l d_ra_w_in_g _______A_

_Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

06/2018
A5E31870371-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31870371-AB  05/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Preface

Purpose of the documentation
This manual includes module-specific information on wiring, diagnostics and the technical specifications of the technology module.
General information regarding design and commissioning of the S7-1500 or ET 200MP is available in the S7-1500 or ET 200MP system manuals.
The counting and measuring functions of the TM Count 2x24V technology module are described in more detail in the Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820) Function Manual.

Conventions

Please observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

3

Preface
Open Source Software
Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information on this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109740777).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

4

Manual, 06/2018, A5E31870371-AB

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ................................................................................................................................ 11

2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5

Functions ................................................................................................................................14 Detection of counting signals ..................................................................................................14 Measured value determination ...............................................................................................15 Switching the outputs at comparison values ..........................................................................15 Position input for Motion Control.............................................................................................16 Additional functions.................................................................................................................16

3 Wiring ................................................................................................................................................... 18

3.1

Pin assignment and block diagram.........................................................................................18

4 Configuring/address space.................................................................................................................... 23

4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5

Operating with "Counting and measurement" technology object ...........................................23 Configuring .............................................................................................................................. 23 Reaction to CPU STOP ..........................................................................................................24 Parameter setting....................................................................................................................25 Address space ........................................................................................................................30 Isochronous mode ..................................................................................................................31

4.2 4.2.1 4.2.2 4.2.3 4.2.4

Position input for "Motion Control" technology object.............................................................32 Configuring .............................................................................................................................. 32 Parameter setting....................................................................................................................33 Address space ........................................................................................................................35 Isochronous mode ..................................................................................................................35

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.5.1 4.3.5.2 4.3.6

Manual operation (without technology object) ........................................................................36 Configuring .............................................................................................................................. 36 Reaction to CPU STOP ..........................................................................................................38 Parameter setting....................................................................................................................39 Address space ........................................................................................................................44 Control and feedback interface...............................................................................................45 Assignment of the control interface ........................................................................................45 Assignment of the feedback interface.....................................................................................48 Isochronous mode ..................................................................................................................52

5 Interrupts/diagnostic messages ............................................................................................................. 53

5.1

Status and error display ..........................................................................................................53

5.2

Diagnostic alarms ...................................................................................................................56

5.3

Hardware interrupts ................................................................................................................59

6 Technical specifications ........................................................................................................................ 61

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

5

Table of contents

A Dimensional drawing............................................................................................................................. 69

B Parameter data record .......................................................................................................................... 71

B.1

Parameter assignment and structure of parameter data record ............................................ 71

B.2

Parameter validation error ..................................................................................................... 77

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

6

Manual, 06/2018, A5E31870371-AB

Documentation guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA. You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx). Changes and supplements to the manuals are documented in a Product Information. You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

8

Manual, 06/2018, A5E31870371-AB

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

10

Manual, 06/2018, A5E31870371-AB

Product overview

2

2.1

Properties

Article number
6ES7550-1AA00-0AB0

Firmware version
This manual describes the properties of the module with firmware version V1.3.

View of the module

Figure 2-1 View of the TM Count 2x24V module

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

11

Product overview 2.1 Properties

Properties

The TM Count 2x24V technology module has the following properties:  Technical properties
­ Two channels ­ Interfaces:
24 V encoder signals A, B and N from sourcing, sinking or push-pull encoders and sensors 24 V encoder supply, short-circuit-proof DI0, DI1 and DI2 digital input signals (per channel) DQ0 and DQ1 digital output signals (per channel) Supply voltage L+ ­ Count range: 32 bits ­ Monitoring of encoder signals for wire break channel by channel ­ Hardware interrupts can be configured channel by channel ­ Input filters for suppression of interferences at encoder inputs and digital inputs can be configured  Supported encoder/signal types ­ 24 V incremental encoder with N signal ­ 24 V incremental encoder without N signal ­ 24 V pulse encoder with direction signal ­ 24 V pulse encoder without direction signal ­ 24 V pulse encoder with up/down counting signal  Supported system functions ­ Isochronous mode ­ Firmware update ­ Identification data I&M

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

12

Manual, 06/2018, A5E31870371-AB

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the functions

Function
Firmware update
I&M identification data
Parameter reassignment in RUN
Isochronous mode
Counting/measuring
Operating with "Counting and measurement" technology object Position input for "Motion Control" technology object Operating with "Measuring input" technology object Position value range of 32 bits

Firmware version of
module
V1.0 or higher
V1.0 or higher
V1.0 or higher
V1.0 or higher
V1.0 or higher
V1.0 or higher
V1.0 or higher
V1.3 or higher
V1.3 or higher

Configurable as of

STEP 7 (TIA Portal)

GSD

PROFINET IO

PROFIBUS DP

V13

X

--

V13

X

X

V13

X

X

V13

--

--

V13

X

X

V13

--

--

V13

--

--

V15 with

--

--

HSP0256

V15 with

X

X

HSP0256

Accessories

The following components are supplied with the technology module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strip  U-connector

Other components
The following component needs to be ordered separately:
 Front connectors, including potential jumpers and cable ties
You can find information on the front connector in system manual S7-1500 / ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792), section "Accessories".

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

13

Product overview 2.2 Functions

2.2

Functions

2.2.1

Detection of counting signals
Counting is the detecting and adding up of events. The counters of the technology module detect encoder signals and pulses and evaluate them accordingly. The count direction can be specified using encoder or pulse signals or through the user program.
You can control the counting processes with the digital inputs. In addition, you can read the signal state of the respective digital input via the feedback interface.
You can specify the counter characteristics using the functions described below.

Counting limits

The counting limits define the counter value range used. The counting limits are configurable and can be modified during runtime with the user program.
You can configure the behavior of the counter at the counting limits.

Start value

You can configure a start value within the counting limits. The start value can be modified during runtime with the user program.

Gate control

You can define the time window in which the count signals are acquired with the hardware gate (HW gate) and software gate (SW gate).

Capture (Latch)
You can configure an external reference signal edge that triggers the saving of the current counter value as Capture value. The following external signals can trigger the Capture function:
 Rising or falling edge of a digital input
 Both edges of a digital input
 Rising edge of the N signal at the encoder input
The "Frequency of Capture function" parameter specifies whether the function is executed at each configured edge or only once after each enable.

Measuring input
If you use Position input for Motion Control (Page 16), you can use the "Measuring input" technology object to execute a measuring input function with a hardware digital input.

Hardware interrupts
The technology module can trigger a hardware interrupt in the CPU, for example, if a comparison event occurs, in the event of overflow or underflow, in the event of a zero crossing of the counter and/or of a change of count direction (direction reversal). You can specify which events during operation are to trigger a hardware interrupt.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

14

Manual, 06/2018, A5E31870371-AB

Product overview 2.2 Functions

2.2.2

Measured value determination
The following high-accuracy measurement functions are available (accuracy up to 100 ppm):  Frequency measurement with the unit of hertz  Period measurement with the unit of seconds  Velocity measurement with a flexibly adaptable unit

Update time

You can configure the interval at which the technology module updates the measured values cyclically as the update time.

Gate control

You can define the time window in which the count signals are acquired with the hardware gate (HW gate) and software gate (SW gate).

2.2.3

Switching the outputs at comparison values
The available digital outputs DQ0 and DQ1 can be directly activated/switched by the specified comparison values or via the user program. The comparison values are configurable and can be modified during runtime with the user program. This enables very fast reaction times to be achieved.

Comparison values in the Counting mode
You define two comparison values in the Counting mode. If the current counter value meets the configured comparison condition, the corresponding digital output can be set to directly initiate control processes in the process.

Comparison values in the Measuring mode
You define two comparison values in the Measuring mode. If the current measured value meets the configured comparison condition, the corresponding digital output can be set to directly initiate control processes in the process.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

15

Product overview 2.2 Functions

2.2.4

Position input for Motion Control
You can use the technology module for position detection for the following axis technology objects of S7-1500 Motion Control :
 TO_PositioningAxis
 TO_SynchronousAxis
 TO_ExternalEncoder
In this operating mode, you can use the measuring input technology object (TO_MeasuringInput) to execute a measuring input function with hardware digital input DI1.

Additional information
You can find a detailed description of the use of Motion Control and its configuration in the following:
 Function manual S7-1500 Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59381279)
 Function manual S7-1500T Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109481326)

2.2.5

Additional functions

Synchronization
You can configure the edge of an external reference signal that loads the counter with the specified start value. The following external signals can trigger a synchronization:
 Rising or falling edge of a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input depending on the level of the assigned digital input
The "Frequency of synchronization" parameter specifies whether the function is executed at each configured edge or only once after each enable.

Hysteresis

You can specify a hysteresis for the comparison values within which a digital output will be prevented from switching again.

Diagnostic interrupt
The technology module can trigger diagnostic interrupts. You enable the diagnostic interrupts in the device configuration.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

16

Manual, 06/2018, A5E31870371-AB

Product overview 2.2 Functions

Input filter

To suppress interference, you can configure an input filter for the 24 V encoder inputs and for the digital inputs.

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables counter values and measured values to be acquired in a defined system cycle.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

17

Wiring

3

3.1

Pin assignment and block diagram

You connect the encoder signals, the digital input and output signals and the encoder supplies to the 40-pin front connector of the technology module. In addition, you connect the supply voltage for supplying the module and digital outputs and for producing the encoder supply voltages to the 4-pin power supply element.

You can find the pin assignment of the front connector and the power supply element in the following two sections.

You can find information on wiring the front connector, shielding the cable, etc., in system manual S7-1500 / ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792), section Wiring.

Supply voltage L+/M
You connect the supply voltage to terminals L+ (terminal 41/42) and M (terminal 43/44). An internal protection circuit protects the technology module from reverse polarity of the supply voltage. The technology module monitors whether the supply voltage is connected.

Pin assignment for the power supply element
The power supply element is plugged onto the front connector and serves to supply the technology module. For this, you must connect the supply voltage to terminal 41 (L+) and terminal 44 (M). Use terminal 42 (L+) and terminal 43 (M) to loop the supply voltage through to the next module.

Figure 3-1 Connection of power supply element

L+

Supply voltage 24 V DC

M

Ground for supply voltage

Encoder supply
For supplying the encoders and sensors connected to the digital inputs, the technology module provides a 24 V DC supply voltage at output 24VDC (terminal 9) with reference to M (terminal 10). The voltage is monitored for short-circuit and overload.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

18

Manual, 06/2018, A5E31870371-AB

Wiring 3.1 Pin assignment and block diagram
Digital inputs DI0, DI1 and DI2
The digital inputs are used for gate control, synchronization and the Capture function. The digital inputs of the two counter channels are not isolated from one another.
Input delay for digital inputs
In order to suppress signal noise you can configure an input delay for the digital inputs.
Note If you select the "None" or "0.05 ms" option, you must use shielded cables for connection of the digital inputs.
Digital outputs DQ0 and DQ1
The digital outputs of the two counter channels are not isolated from one another. The digital outputs are 24 V sourcing outputs in reference to M and can carry a rated load current of 0.5 A. They are protected against overload and short-circuit. Relays and contactors can be directly connected without an external protective circuit. You can find information on the maximum possible operating frequencies and the inductance values of the inductive loads connected to the digital outputs in section Technical specifications (Page 61).
24 V encoder signals/count signals
The 24 V encoder signals are designated with the letters A, B and N. You can connect the following encoder types:  Incremental encoder with N signal:
The A, B and N signals are connected using the correspondingly marked terminals. The A and B signals are the two 90° phase-shifted incremental signals. N is the zero mark signal that supplies one pulse per revolution.  Incremental encoder without N signal: The A and B signals are connected using the correspondingly marked terminals. The A and B signals are the two 90° phase-shifted incremental signals. The N terminal remains unconnected.  Pulse encoder without direction signal: The counting signal is connected to the A terminal. The count direction can be specified via the control interface. The B and N terminals remain unconnected.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

19

Wiring 3.1 Pin assignment and block diagram
 Pulse encoder with direction signal:
The counting signal is connected to the A terminal. The direction signal is connected to the B terminal. Counting down takes place at a high level of the direction signal. The N terminal remains unconnected.
 Pulse encoder with up/down counting signal:
The up count signal is connected to the A terminal. The down counting signal is connected to the B terminal. The N terminal remains unconnected.
The inputs of the two counter channels are not isolated from each other. The inputs are isolated from the backplane bus.
You can connect the following encoders or sensors to the A, B and N inputs:
 Sourcing output: The A, B and N inputs are switched by the encoder or sensor to 24VDC .
 Sinking output: The A, B and N inputs are switched by the encoder or sensor to ground M .
 Push-pull: The A, B and N inputs are switched by the encoder or sensor alternately to 24VDC and ground M . Monitoring for wire break is possible with this type of encoder/sensor. The procedure of the wire break detection (alternate switching) requires that, in the event of a fault (wire break), the count can also change without a counting pulse until the wire break is detected.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

20

Manual, 06/2018, A5E31870371-AB

Wiring 3.1 Pin assignment and block diagram

Pin assignment for the front connector
The table below shows the pin assignment of the front connector.

Table 3- 1 Pin assignment of the front connector

View

Signal name

Designation

24 V incremental encoder

24 V pulse encoder

Counter channel 0

with signal N

without signal N

with direction signal

without direction signal

Up/ Down

1 CH0.A

Encoder signal A

Counting signal A

Up counting signal A

2 CH0.B

Encoder signal B

Direction signal

--

Down count-

B

ing signal B

3 CH0.N Encoder sig-

--

nal N

4 DI0.0

Digital input DI0

5 DI0.1

Digital input DI1

6 DI0.2

Digital input DI2

7 DQ0.0

Digital output DQ0

8 DQ0.1

Digital output DQ1

Encoder supply and ground of the two counter channels

9 24VDC

Encoder supply 24 V DC

10 M

Ground for encoder supply, digital inputs and digital outputs

Counter channel 1

11 CH1.A

Encoder signal A

Counting signal A

Up counting signal A

12 CH1.B

Encoder signal B

Direction signal

--

Down count-

B

ing signal B

13 CH1.N Encoder sig-

--

nal N

14 DI1.0

Digital input DI0

15 DI1.1

Digital input DI1

16 DI1.2

Digital input DI2

17 DQ1.0

Digital output DQ0

18 DQ1.1

Digital output DQ1

19 - --

--

40

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

21

Wiring 3.1 Pin assignment and block diagram

Block diagram

You must ground the shields of the cables between encoder and technology module both through the shield support at the front connector (shield bracket and terminal) and at the encoder.
The figure below shows the block diagram of the technology module with two connected incremental encoders.



Electrical isolation



Shield support at the front connector



Technology and backplane bus interface



Input filter



Supply voltage via power supply element



Equipotential bonding



Incremental encoder

Figure 3-2 Block diagram with two incremental encoders

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

22

Manual, 06/2018, A5E31870371-AB

Configuring/address space

4

4.1

Operating with "Counting and measurement" technology object

4.1.1

Configuring

Introduction

You configure the technology module and assign its parameters with STEP 7 (TIA Portal). The technology object is used to control and monitor the functions of the technology module.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM Count 2x24V

Distributed operation · with an S7-1500 CPU ·
·

S7-1500 automation system ET 200MP distributed I/O system TM Count 2x24V

Configuration software STEP 7 (TIA Portal):
· Device configuration with hardware configuration
· Parameter setting with High_Speed_Counter technology object

In the user program
High_Speed_Counter instruction

Additional information
You can find a detailed description of the counting and measurement functions and their configuration in the following:
 Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)
 Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"
You can find a detailed description of the use of Motion Control and its configuration in the following:

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

23

Configuring/address space 4.1 Operating with "Counting and measurement" technology object
Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256. You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852). You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

4.1.2

Reaction to CPU STOP
You set the reaction of the technology module to a STOP of the CPU on a channel-bychannel basis in the basic parameters of the device configuration.

Table 4- 1 Reaction of technology module to CPU STOP

Option Continue operation Output substitute value
Keep last value

Meaning
The technology module remains fully functional. Incoming count pulses are processed. The digital outputs continue to switch according to the parameter assignment.
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the start value and the digital outputs switch according to the parameter assignment.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition.
If a digital output with the "At comparison value for a pulse duration" function is set at CPU STOP, the digital output is reset after the pulse duration elapses.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the start value and the digital outputs switch according to the parameter assignment.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

24

Manual, 06/2018, A5E31870371-AB

4.1.3

Configuring/address space 4.1 Operating with "Counting and measurement" technology object
Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 71).
You set the parameters of the module as follows in this operating mode:
1. Insert the module from the hardware catalog under "Technology modules".
2. Set the device configuration in the hardware configuration. "Operating with "Counting and measurement" technology object" must be set as the operating mode.
3. Insert the High_Speed_Counter technology object from the project tree in folder "Technology objects > Add new object > Counting and measurement". You can find information on configuring with a technology object in function manual Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820).
4. Open the configuration of the High_Speed_Counter technology object, e.g. using the Configuration button in the instruction for the technology object.
5. Set the parameters of the technology object.
6. Download the project to the CPU.
Note
The "Operating with "Counting and measurement" technology object" and "Manual operation (without technology object)" operating modes apply to one channel in each case. As a result, you can also use a module with both operating modes.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

25

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameters of the TM Count 2x24V
The following parameter settings are possible in the hardware configuration:

Table 4- 2 Settable parameters and their default setting

Parameter

Value range

Reaction to CPU STOP

· Output substitute value

· Keep last value

· Continue operation

Enable diagnostic interrupt · Deactivated

on wire break

· Activated

Enable additional diagnos- · Deactivated

tic interrupts

· Activated

Hardware interrupt: New Capture value available

· Deactivated · Activated

Hardware interrupt: Syn- · Deactivated

chronization of the counter by an external signal

·

Activated

Hardware interrupt: Gate start

· Deactivated · Activated

Hardware interrupt: Gate stop

· Deactivated · Activated

Hardware interrupt: Overflow (high counting limit violated)
Hardware interrupt:Underflow (low counting limit violated)
Hardware interrupt: Direction reversal

· Deactivated · Activated
· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Zero crossing

· Deactivated · Activated

Hardware interrupt: Comparison event for DQ0 occurred
Hardware interrupt: Comparison event for DQ1 occurred

· Deactivated · Activated
· Deactivated · Activated

Default setting
Output substitute value

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

26

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

The following parameter settings are possible in the technology object:

Table 4- 3 Settable parameters and their default setting

Parameter

Value range

Default setting

Signal type

· Pulse (A) · Pulse (A) and direction (B)

Pulse (A) and direction (B)

· Count up (A), count down (B) · Incremental encoder (A, B phase-
shifted) · Incremental encoder (A, B, N)

Signal evaluation for counter inputs

· Single · Double

Single

· Quadruple

Invert direction (counter inputs)

· Deactivated · Activated

Deactivated

Filter frequency for counter inputs

· 100 Hz · 200 Hz · 500 Hz

200 kHz

· 1 kHz

· 2 kHz · 5 kHz

· 10 kHz

· 20 kHz · 50 kHz

· 100 kHz

· 200 kHz

Sensor type

· Sourcing output

Sourcing output

· Sinking output

· Push-pull (sinking and sourcing output)

Reaction to signal N

· No reaction to signal N · Synchronization at signal N · Capture at signal N

No reaction to signal N

Frequency of synchronization

· Once · Periodic

Once

Frequency of Capture func- · Once

tion

· Periodic

Once

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

27

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter

Value range

Counting high limit Start value Counting low limit Reaction to violation of a counting limit

-2147483648...2147483647 -2147483648...2147483647 -2147483648...2147483647 · Stop counting · Continue counting

Reset when counting limit is violated

· To opposite counting limit · To start value

Reaction to gate start

· Set to start value · Continue with current value

Set function of DI

· Gate start/stop (level-triggered)

· Gate start (edge-triggered)

· Gate stop (edge-triggered)

· Synchronization

· Enable synchronization at signal N

· Capture

· Digital input without function

Input delay for digital inputs · None

· 0.05 ms

· 0.1 ms · 0.4 ms

· 0.8 ms

· 1.6 ms · 3.2 ms

· 12.8 ms

· 20 ms

Edge selection for DI

· At rising edge

· At falling edge

· At rising and falling edge

Select level for DI

· Active with high level · Active with low level

Behavior of counter value after Capture with DI

· Continue counting
· Set to start value and continue counting

Comparison value 0 Comparison value 1

-2147483648...2147483647 -2147483648...2147483647

Default setting

Parameter reassignment in
RUN

2147483647

Yes

0

Yes

-2147483648

Yes

Continue counting Yes

Scope HSP for STEP 7
(TIA Portal)
Channel Channel Channel Channel

To opposite

Yes

counting limit

Continue with

Yes

current value

· DI0: Gate

Yes

start/stop (lev-

el-triggered)

· DI1: Digital input without function

· DI2: Digital input without function

0.1 ms

Yes

Channel Channel Channel
Channel

At rising edge

Yes

Channel

Active with high Yes level
Continue counting Yes

0

Yes

10

Yes

Channel Channel
Channel Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

28

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter Operating mode

Value range

Default setting

· Use count value as reference

Use count value

· Use measured value as reference as reference

Parameter reassignment in
RUN
No

Scope HSP for STEP 7
(TIA Portal)
Channel

Set output

· Use by user program
· Between comparison value and high limit / measured value >= comparison value

DQ0, DQ1:

Yes

Between comparison value and high limit

Channel

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

Count direction of DQ func- · Up

tion

· Down

· In both directions

In both directions Yes

Channel

Pulse duration [ms/10] Substitute value for DQ0

0...65535 · 0

5000 (corre-

Yes

sponds to 0.5 s)

0

Yes

Channel Channel

· 1

Substitute value for DQ1 · 0

0

Yes

Channel

· 1

Hysteresis (in increments) Measured variable

0...255 · Frequency · Period

0

Yes

Channel

Frequency

Yes

Channel

· Velocity

Update time [ms] of measuring function
Time base for velocity measurement

0...25000
· 1 ms · 10 ms

10

Yes

Channel

60 s

Yes

Channel

· 100 ms · 1s

· 60 s

Increments per unit

1...65535

1

Yes

Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

29

Configuring/address space 4.1 Operating with "Counting and measurement" technology object
Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection in sections Basic parameters and Configuring the High_Speed_Counter available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

4.1.4

Address space

Address space of the technology module

Table 4- 4 Size of input and output addresses of the TM Count 2x24V when operating with "Counting and measurement" technology object

Size per counting channel Total size

Inputs 16 bytes 32 bytes

Outputs 12 bytes 24 bytes

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

30

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.5

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables counter values and measured values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. The output signals switch immediately if the relevant comparison condition is met. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "Synchronous Cycle" (e.g. OB61) in this operating mode. The High_Speed_Counter instruction is called in the assigned OB.
The update time for the measured value is synchronized with the system cycle in a suitable ratio and, if necessary, adapted in length. If you set "0", the measured value is updated once per system cycle.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the counter value and the measured value as well as status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.

Isochronous mode parameters
In isochronous mode, the "Filter frequency" parameter can affect the isochronous mode parameters of the sync domain.
Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change the parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.
Additional information
You can find a detailed description of isochronous mode in the following:
 Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)
 Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

31

Configuring/address space 4.2 Position input for "Motion Control" technology object

4.2

Position input for "Motion Control" technology object

4.2.1

Configuring

Introduction

You configure the technology module and assign its parameters with STEP 7 (TIA Portal). The technology object is used to control and monitor the functions of the technology module.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM Count 2x24V

Distributed operation · with an S7-1500 CPU ·

S7-1500 automation system
ET 200MP distributed I/O system

· TM Count 2x24V

Configuration software STEP 7 (TIA Portal):
· Device configuration with hardware configuration
· Parameter setting with axis and measuring input technology objects

In the user program Motion Control instructions

Additional information
You can find a detailed description of the use of Motion Control and its configuration in the following:  Function manual S7-1500 Motion Control available for download on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/59381279)  Function manual S7-1500T Motion Control available for download on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/109481326)  Information system of STEP 7 (TIA Portal) under "Using technology functions > Motion
Control > Motion Control (S7-1200, S7-1500)" You can find a description of configuring the technology module for position detection in the following:  Function manual Counting, Measurement and Position Detection available for download
on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)  Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting,
measurement and position input > Counting, measurement and position input (S7-1500)"
Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256. You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852). You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

32

Manual, 06/2018, A5E31870371-AB

4.2.2

Configuring/address space 4.2 Position input for "Motion Control" technology object
Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. You set the parameters of the module as follows in this operating mode: 1. Insert the module from the hardware catalog under "Technology modules". 2. Set the device configuration and the parameters of the module in the hardware
configuration. "Position input for "Motion Control" technology object" must be set as the operating mode. 3. Insert the axis technology object and, if necessary, the measuring input technology object from the project tree in folder "Technology objects > Add new object > Motion Control". You can find information on configuring with axis technology objects in function manual S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326). 4. Open the configuration of the axis technology object, e.g. using the Configuration button
in the respective instruction for the technology object. 5. Set the parameters of the technology objects. 6. Download the project to the CPU.
Note This operating mode applies automatically to both channels of the technology module.

Parameters of the TM Count 2x24V
The following parameter settings are possible:

Table 4- 5 Settable parameters and their default setting

Parameter

Value range

Signal type
Invert direction (counter inputs) Signal evaluation for counter inputs

· Pulse (A) · Pulse (A) and direction (B) · Count up (A), count down (B) · Incremental encoder (A, B phase-
shifted) · Incremental encoder (A, B, N)
· Deactivated · Activated
· Single · Double · Quadruple

Default setting
Pulse (A) and direction (B)

Scope
HSP for STEP 7 (TIA Portal)
Channel

Deactivated Single

Channel Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

33

Configuring/address space 4.2 Position input for "Motion Control" technology object

Parameter

Value range

Default setting

Filter frequency for counter inputs
Sensor type
Signal selection for reference mark 0 Measuring input Increments per revolution / steps per revolution Reference speed Enable diagnostic interrupt on wire break Enable additional diagnostic interrupts

· 100 Hz

200 kHz

· 200 Hz

· 500 Hz

· 1 kHz

· 2 kHz

· 5 kHz

· 10 kHz

· 20 kHz

· 50 kHz

· 100 kHz

· 200 kHz

· Sourcing output

Sourcing output

· Sinking output

· Push-pull (sinking and sourcing output)

· DI0

DI0

· Signal N of incremental encoder

DI1

DI1

1...65535

1

6.00...210000.00 U/min · Deactivated · Activated
· Deactivated · Activated

3000.00 U/min Deactivated
Deactivated

Scope HSP for STEP 7
(TIA Portal) Channel
Channel
Channel Channel Channel Channel Channel Channel

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, section Module parameters (position input for Motion Control) available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

34

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.2 Position input for "Motion Control" technology object

4.2.3

Address space

Address space of the technology module

Table 4- 6 Size of input and output addresses of the TM Count 2x24V with position input for "Motion Control" technology object

Size per counting channel Total size

Inputs 16 bytes 32 bytes

Outputs 4 bytes 8 bytes

4.2.4

Isochronous mode
The technology module supports the "Isochronous mode" system function. Counter values can be acquired in a fixed system cycle with this system function.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "MC-Servo" in this operating mode. Isochronous mode is needed when using the output cam and cam track technology objects. When the measuring input technology is used in combination with hardware digital input DI1, isochronous mode is not needed.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the counter value and the status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.

Isochronous mode parameters
In isochronous mode, the "Filter frequency" parameter can affect the isochronous mode parameters of the sync domain.
Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change the parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.

Additional information
You can find a detailed description of isochronous mode in the following:
 Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)
 Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

35

Configuring/address space 4.3 Manual operation (without technology object)

4.3

Manual operation (without technology object)

4.3.1

Configuring

Introduction

You configure the technology module and assign its parameters with the configuration software.
The functions of the technology module are controlled and checked by the user program via the control and feedback interface.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM Count 2x24V

Configuration software STEP 7 (TIA Portal):
· Device configuration and parameter setting with hardware configuration

In the user program
Direct access to control and feedback interface in the I/O data

Distributed operation · with an S7-1500 CPU ·
·

S7-1500 automation system ET 200MP distributed I/O system TM Count 2x24V

STEP 7 (TIA Portal):
· Device configuration and parameter setting with hardware configuration

Distributed operation · S7-300/400 or S7-1200 auto-

with an S7-300/400

mation system

CPU

· ET 200MP distributed I/O

system

· TM Count 2x24V

Distributed operation · with an S7-1200 CPU
·

S7-300/400 or S7-1200 automation system
ET 200MP distributed I/O system

STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration
STEP 7:
Device configuration and parameter setting with GSD file
STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration

· TM Count 2x24V

Distributed operation · Third-party automation system Third-party configuration soft-

in a third-party system

· ET 200MP distributed I/O system

ware:
Device configuration and parameter setting with GSD file

· TM Count 2x24V

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

36

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

Additional information
You can find a detailed description of the counting and measurement functions and their configuration in the following:
 Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)
 Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"

Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256.
You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852).
You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

GSD file

You can find the respective GSD file for the ET 200SP distributed I/O system for download on the Internet:
 GSD file for PROFINET IO (http://support.automation.siemens.com/WW/view/en/68189683)
 GSD file for PROFIBUS DP (http://support.automation.siemens.com/WW/view/en/80206700)

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

37

Configuring/address space 4.3 Manual operation (without technology object)

4.3.2

Reaction to CPU STOP
You set the reaction of the technology module to a STOP of the CPU on a channel-bychannel basis in the basic parameters of the device configuration.

Table 4- 7 Reaction of technology module to CPU STOP

Option Continue operation Output substitute value
Keep last value

Meaning
The technology module remains fully functional. Incoming count pulses are processed. The digital outputs continue to switch according to the parameter assignment.
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the start value and the digital outputs switch according to the parameter assignment.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition.
If a digital output with the "At comparison value for a pulse duration" function is set at CPU STOP, the digital output is reset after the pulse duration elapses.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the start value and the digital outputs switch according to the parameter assignment.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

38

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

4.3.3

Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 71).
You set the parameters of the module as follows in this operating mode:

Parameter setting using...

Basic procedure

Hardware configuration in STEP 7 1. Insert the module from the hardware catalog under "Technology modules".

(TIA Portal)

2. Set the device configuration and the parameters of the module in the hardware

configuration.

"Manual operation (without technology object)" must be set as the operating mode.

3. Download the project to the CPU.

Hardware configuration with GSD file for distributed operation on PROFINET IO

1. Install the current PROFINET GSD file. You will then find the module in the hardware catalog under "Other field devices > PROFINET IO > I/O".
2. Set the parameters in the hardware configuration. You can find information on the respective dependencies of the parameters in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820).
3. Download the project to the CPU.

Hardware configuration with GSD file for distributed operation on PROFIBUS DP

1. Install the current PROFIBUS GSD file. You will then find the module in the hardware catalog under "Other field devices > PROFIBUS DP > I/O".
2. Set the parameters in the hardware configuration. You can find information on the respective dependencies of the parameters in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820). The parameters marked with 1 in the following tables are not configurable in the PROFIBUS GSD file.
3. Download the project to the CPU. The parameters marked with 1 in the following tables are downloaded with their default setting.
4. If necessary, set the parameters marked with 1 in the user program using data record 128.

Note
The "Operating with "Counting and measurement" technology object" and "Manual operation (without technology object)" operating modes apply to one channel in each case. As a result, you can also use a module with both operating modes.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

39

Configuring/address space 4.3 Manual operation (without technology object)

Parameters of the TM Count 2x24V
The following parameter settings are possible:

Table 4- 8 Settable parameters and their default setting

Parameter

Value range

Operating mode3

· Counting · Measuring

Reaction to CPU STOP1

· Output substitute value · Keep last value · Continue operation

Substitute value for DQ01

· 0 · 1

Substitute value for DQ11

· 0 · 1

Enable diagnostic interrupt · Deactivated

on wire break2

· Activated

Enable additional diagnostic · Deactivated

interrupts

· Activated

Hardware interrupt: New Capture value available1

· Deactivated · Activated

Hardware interrupt: Synchronization of the counter by an external signal1
Hardware interrupt: Gate start1

· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Gate stop1

· Deactivated · Activated

Hardware interrupt: Overflow (high counting limit violated)1
Hardware interrupt:Underflow (low counting limit violated)1
Hardware interrupt: Direction reversal1

· Deactivated · Activated
· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Zero crossing1

· Deactivated · Activated

Default setting Counting

Parameter reassignment in
RUN
No

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

Output substitute Yes value

Channel

0

Yes

0

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel Channel Channel Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Deactivated

Yes

Deactivated

Yes

Channel Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

40

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter
Hardware interrupt: Comparison event for DQ0 occurred1 Hardware interrupt: Comparison event for DQ1 occurred1 Signal type
Invert direction (counter inputs)1 Signal evaluation for counter inputs Filter frequency for counter inputs1
Sensor type
Reaction to signal N1
Frequency of synchronization1

Value range
· Deactivated · Activated

Default setting Deactivated

Parameter reassignment in
RUN
Yes

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

· Deactivated · Activated

Deactivated

Yes

Channel

· Pulse (A) · Pulse (A) and direction (B) · Count up (A), count down (B) · Incremental encoder (A, B
phase-shifted) · Incremental encoder (A, B, N)
· Deactivated · Activated
· Single · Double · Quadruple
· 100 Hz · 200 Hz · 500 Hz · 1 kHz · 2 kHz · 5 kHz · 10 kHz · 20 kHz · 50 kHz · 100 kHz · 200 kHz
· Sourcing output · Sinking output · Push-pull (sinking and sourc-
ing output)
· No reaction to signal N · Synchronization at signal N · Capture at signal N
· Once · Periodic

Pulse (A) and direc- Yes tion (B)

Deactivated

Yes

Single

Yes

200 kHz

Yes

Sourcing output

Yes

No reaction to sig- Yes nal N

Once

Yes

Channel Channel Channel Channel
Channel Channel Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

41

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Default setting

Parameter reassignment in
RUN

Frequency of Capture func- · Once

tion1

· Periodic

Once

Yes

High counting limit1 Start value1 Counting low limit1
Reaction to violation of a counting limit

-2147483648...2147483647 -2147483648...2147483647 -2147483648...2147483647 · Stop counting · Continue counting

2147483647

Yes

0

Yes

-2147483648

Yes

Continue counting Yes

Reset when counting limit is · To opposite counting limit

violated

· To start value

To opposite count- Yes ing limit

Reaction to gate start

· Set to start value · Continue with current value

Continue with cur- Yes rent value

Set function of DI

· Gate start/stop (leveltriggered)
· Gate start (edge-triggered) · Gate stop (edge-triggered) · Synchronization · Enable synchronization at
signal N · Capture · Digital input without function

· DI0: Gate

Yes

start/stop (level-

triggered)

· DI1: Digital input without function

· DI2: Digital input without function

Select level for DI1

· Active with high level · Active with low level

Active with high

Yes

level

Edge selection for DI1

· At rising edge

At rising edge

Yes

· At falling edge

· At rising and falling edge

Behavior of counter value after Capture with DI 1

· Continue counting

Continue counting Yes

· Set to start value and continue counting

Scope HSP for STEP 7
(TIA Portal); GSD file
Channel Channel Channel Channel Channel Channel Channel Channel
Channel Channel
Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

42

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Default setting

Input delay for digital inputs1 · · · · · · · · ·

None 0.05 ms 0.1 ms 0.4 ms 0.8 ms 1.6 ms 3.2 ms 12.8 ms 20 ms

0.1 ms

Set output

· Use by user program
· Between comparison value and high limit / measured value >= comparison value

DQ0, DQ1:
Between comparison value and high limit

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

Comparison value 01
Comparison value 11
Count direction of DQ function1

-2147483648...2147483647 -2147483648...2147483647 · Up · Down · In both directions

0 10 In both directions

Pulse duration [ms/10]1

0...65535

Hysteresis (in increments)1 Measured variable

0...255 · Frequency · Period · Velocity

5000 (corresponds to 0.5 s)
0
Frequency

Update time [ms] of the

0...25000

10

measuring function1

Parameter reassignment in
RUN Yes
Yes
Yes Yes Yes Yes Yes Yes Yes

Scope HSP for STEP 7
(TIA Portal); GSD file
Channel
Channel
Channel Channel Channel Channel Channel Channel Channel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

43

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Time base for velocity measurement1
Increments per unit1

· 1 ms · 10 ms · 100 ms · 1s · 60 s 1...65535

Default setting 60 s

Parameter reassignment in
RUN
Yes

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

1

Yes

Channel

1 Because the number of parameters is limited to a maximum of 244 bytes per station in the PROFIBUS GSD configuration, the possible parameter assignments are limited. The parameters are preassigned default settings in the module. If your PROFIBUS master supports the "Write/read data record" function, you can set these parameters using data record 128.
2 When a GSD file is used, this diagnostic interrupt is enabled with the "Enable additional diagnostic interrupts" parameter and is then not separately configurable.
3 When configuring with a GSD file, you determine the operating mode when you select the module name.

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, sections Basic parameters and Manual operation available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

4.3.4

Address space

Address space of the technology module

Table 4- 9 Size of input and output addresses of the TM Count 2x24V with manual operation

Size per counting channel Total size

Inputs 16 bytes 32 bytes

Outputs 12 bytes 24 bytes

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

44

Manual, 06/2018, A5E31870371-AB

4.3.5

Configuring/address space 4.3 Manual operation (without technology object)
Control and feedback interface
Note The control and feedback interface is compatible with the control and feedback interface of the TM Count 1x24V, TM PosInput 2 and TM PosInput 1 technology modules of the S7-1500 automation system.

4.3.5.1

Assignment of the control interface
The user program uses the control interface to influence the behavior of the technology module.

Control interface per channel
The following table shows the assignment of the control interface:

Byte offset from start address Channel
0/1  
0 12 ... ... 3 15

Bit 7

4 16 ... ... 7 19

8 20

9 21

EN_

CAPTURE

10 22 SET_DIR

11 23

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

SLOT_0:

DINT or REAL: Load value (meaning of the value is specified in LD_SLOT_0)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

SLOT_1:

DINT or REAL: Load value (meaning of the value is specified in LD_SLOT_1)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

LD_SLOT_1

LD_SLOT_0

EN_

EN_

SET_DQ1 SET_DQ0

TM_

TM_

SYNC_DN SYNC_UP

CTRL_DQ1 CTRL_DQ0

Reserved

RES_ EVENT

Reserved

SW_GATE
RES_ ERROR

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

45

Configuring/address space 4.3 Manual operation (without technology object)

Explanations
Control bit/value EN_CAPTURE EN_SYNC_DN EN_SYNC_UP LD_SLOT_m
RES_EVENT RES_ERROR Reserved SET_DIR SET_DQ0 SET_DQ1

Explanations Use this bit to enable the Capture function. Resetting this bit resets a set EVENT_CAP in the feedback interface. Use this bit to enable the synchronization of the counter when counting in downward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. Use this bit to enable the synchronization of the counter when counting in upward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. Use this load request to specify the meaning of the value in SLOT_m:
· 0000 means: No action, idle
· 0001 means: Load counter value
· 0010 not permitted
· 0011 means: Load start value
· 0100 means: Load comparison value 0
· 0101 means: Load comparison value 1
· 0110 means: Load counting low limit
· 0111 means: Load counting high limit
· 1000 to 1111 not permitted The technology module executes the respective action as soon as LD_SLOT_m changes. If values are loaded simultaneously using LD_SLOT_0 and LD_SLOT_1, the value from SLOT_0 is internally applied first and then the value from SLOT_1 . This can produce unexpected intermediate states. Use this bit to trigger the reset of the saved events in the EVENT_ZERO, EVENT_OFLW, EVENT_UFLW, EVENT_CMP0, EVENT_CMP1 feedback bits. Use this bit to trigger the reset of the saved error states LD_ERROR and ENC_ERROR . Reserve bits must be set to 0. Use this bit to specify the count direction for signal type "Pulse (A)".
· 0 means: Up
· 1 means: Down
Use this bit to set digital output DQ0 when TM_CTRL_DQ0 is set to 0. In the case of the function "After set command from CPU until comparison value", SET_DQ0 is effective regardless of TM_CTRL_DQ0 as long as the counter value is not equal to the comparison value. Use this bit to set digital output DQ1 when TM_CTRL_DQ1 is set to 0. In the case of the function "After set command from CPU until comparison value", SET_DQ1 is effective regardless of TM_CTRL_DQ1 as long as the counter value is not equal to the comparison value.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

46

Manual, 06/2018, A5E31870371-AB

Control bit/value SW_GATE
TM_CTRL_DQ0 TM_CTRL_DQ1

Configuring/address space 4.3 Manual operation (without technology object)
Explanations Use this bit to open and close the software gate when using an incremental encoder or pulse encoder. Together, the software gate and the hardware gate form the internal gate. The technology module only counts when the internal gate is open. · 0 means: Software gate closed · 1 means: Software gate open The digital inputs of the technology module externally control the hardware gate. The hardware gate can be activated by parameter assignment. The software gate cannot be deactivated. Use this bit to enable the technological function of digital output DQ0. · 0 means: SET_DQ0 defines the state of DQ0 · 1 means: assigned function defines the state of DQ0 Use this bit to enable the technological function of digital output DQ1. · 0 means: SET_DQ1 defines the state of DQ1 · 1 means: assigned function defines the state of DQ1

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

47

Configuring/address space 4.3 Manual operation (without technology object)

4.3.5.2

Assignment of the feedback interface
The user program receives current values and status information from the technology module by means of the feedback interface.

Feedback interface per channel
The following table shows the assignment of the feedback interface:

Byte offset from start address Channel
0/1  
0 16 ... ... 3 19
4 20 ... ... 7 23
8 24 ... ... 11 27
12 28
13 29

Bit 7

Bit 6

Reserved

14 30 STS_DI2
15 31 STS_M_ INTERVAL

STS_DI1
EVENT_ CAP

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

COUNT_VALUE: DINT: Current counter value

CAPTURED_VALUE: DINT: The last acquired Capture value

MEASURED_VALUE: REAL: Current measured value

Reserved
STS_ SW_GATE
STS_DI0 EVENT_
SYNC

STS_ READY
STS_DQ1 EVENT_
CMP1

LD_STS_ SLOT_1
STS_DQ0 EVENT_
CMP0

LD_ERROR
LD_STS _SLOT_0
STS_GATE EVENT_ OFLW

ENC_ ERROR
RES _EVENT
_ACK
STS_CNT
EVENT_ UFLW

Bit 0
POWER_ ERROR Reserved STS_DIR EVENT_ ZERO

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

48

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

Explanations

Feedback bit/value Explanations CAPTURED_VALUE This DINT value indicates the last acquired Capture value.
The following external signals can trigger the Capture function:

· Rising or falling edge of a digital input

· Both edges of a digital input
The "Frequency of Capture function" parameter specifies whether the function is executed at each configured edge or only once after each enable.

COUNT_VALUE

This DINT value indicates the current counter value.

ENC_ERROR

This bit indicates that one of the following errors has occurred at the encoder signals (retentive) for the respective technology module:

· Wire break of digital input A, B or N (with push-pull encoder)

· Invalid transition of A/B signals (with incremental encoder)
If you have enabled the diagnostic interrupts, the respective diagnostic interrupt is triggered in the event of encoder signal errors. For information on the meaning of the diagnostic interrupts, refer to the manual for the respective technology module.

The bit is reset once you have acknowledged the error with RES_ERROR .

EVENT_CAP

This bit indicates that a Capture event has occurred and a counter value has been saved in CAPTURED_VALUE . You reset the status by resetting EN_CAPTURE .

EVENT_CMP0

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ0 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP0 is not set.

EVENT_CMP1

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ1 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP1 is not set.

EVENT_OFLW

This bit indicates the saved status that the counter value had an overflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_SYNC

When an incremental or pulse encoder is used, this bit indicates the saved status that the counter was loaded with the start value by an external reference signal (synchronization). You reset the status by resetting EN_SYNC_UP or EN_SYNC_DN .

EVENT_UFLW

This bit indicates the saved status that the counter value had an underflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_ZERO

This bit indicates the saved status that the counter value or position value had a zero crossing. You reset the status by acknowledgment with RES_EVENT.
When the "Zero crossing" hardware interrupt is enabled, for system-related reasons it can also be triggered if "0" is outside the configured value range.

LD_ERROR

This bit indicates that an error occurred (latching) during loading via the control interface. The loaded values were not applied. When using an incremental or pulse encoder, one of the following conditions is not fulfilled:

· Low counting limit <= counter value <= high counting limit

· Low counting limit <= start value <= high counting limit

· Low counting limit <= comparison value 0/1 <= high counting limit The bit is reset once you have acknowledged the error with RES_ERROR .

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

49

Configuring/address space 4.3 Manual operation (without technology object)

Feedback bit/value Explanations

LD_STS_SLOT_0

This bit indicates by a status change (toggling) that the load request for SLOT_0 (LD_SLOT_0) was detected and performed.

LD_STS_SLOT_1

This bit indicates by a status change (toggling) that the load request for SLOT_1 (LD_SLOT_1) was detected and performed.

MEASURED_VALUE This value indicates the current measured value with data type REAL:

· Frequency: The mean frequency is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the unit of hertz.
· Period: The mean period is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the unit of seconds.

POWER_ERROR
RES_EVENT_ACK Reserved STS_CNT STS_DI0 STS_DI1 STS_DI2 STS_DIR

· Velocity: The mean velocity is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the configured unit.
The measured values are returned as a signed value. The sign indicates whether the counter value went up or down in the relevant time interval.
The update time is asynchronous to the opening of the internal gate, i.e. the update time is not started when the gate opens. After the internal gate closes, the last calculated measured value continues to be returned.
This bit indicates that supply voltage L+ is not present or is too low or the front connector is not inserted. If you have enabled the diagnostic interrupts (Page 56), the diagnostics interrupt "Supply voltage missing" is triggered at a supply voltage error.
When supply voltage L+ is available at a sufficient level once again, POWER_ERROR is automatically set to 0.
This bit indicates that the reset of event bit EVENT_SYNC, EVENT_CMP0, EVENT_CMP1, EVENT_OFLW, EVENT_UFLW, EVENT_ZERO is active.
Reserved bits are set to 0.
This bit indicates that at least one count pulse or a position value change has occurred in the last ca. 0.5 s.
This bit indicates the status of digital input DI0.
This bit indicates the status of digital input DI1.
This bit indicates the status of digital input DI2.
This bit indicates the count direction of the last count pulse or the direction of the last position value change.

· 0 means: Down · 1 means: Up

STS_DQ0 STS_DQ1 STS_GATE

This bit indicates the status of digital output DQ0. This bit indicates the status of digital output DQ1. This bit indicates the status of the internal gate when using an incremental or pulse encoder.

· 0 means: Gate closed

· 1 means: Gate open

STS_M_INTERVAL This bit indicates that at least one count pulse or a position value change was detected in the previous measurement interval.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

50

Manual, 06/2018, A5E31870371-AB

Configuring/address space 4.3 Manual operation (without technology object)

Feedback bit/value STS_READY
STS_SW_GATE

Explanations This bit indicates that the technology module supplies valid user data. The technology module has been started up and configured. This bit indicates the status of the software gate.
· 0 means: Gate closed · 1 means: Gate open

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

51

Configuring/address space 4.3 Manual operation (without technology object)

4.3.6

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables counter values and measured values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. The output signals switch immediately if the relevant comparison condition is met. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "Synchronous Cycle" (e.g. OB61) in this operating mode. The input and output data are processed in the assigned OB.
The update time for the measured value is synchronized with the system cycle in a suitable ratio and, if necessary, adapted in length. If you set "0", the measured value is updated once per system cycle.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the counter value and the measured value as well as status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.

Isochronous mode parameters
In isochronous mode, the "Filter frequency" parameter can affect the isochronous mode parameters of the sync domain.
Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change the parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.
Additional information
You can find a detailed description of isochronous mode in the following:
 Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)
 Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

52

Manual, 06/2018, A5E31870371-AB

Interrupts/diagnostic messages

5

5.1
LEDs

Status and error display
The following figure shows you the LED displays (status and error displays) of TM Count 2x24V.

Figure 5-1 LED displays of the TM Count 2x24V

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

53

Interrupts/diagnostic messages 5.1 Status and error display

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 56).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

RUN Off
Flashes On On
Flashes

LEDs ERROR
Off
Off Off Flashes Flashes

MAINT Off
Off Off Off Flashes

Meaning

Remedy

Missing or insufficient voltage on the backplane bus

Switch on the CPU and/or the system power supply modules.

· Check whether the U connectors are plugged in correctly.

· Check whether too many modules are plugged in.

Technology module parameters not set ---

Technology module parameters set and no module diagnostics
Technology module parameters set and module diagnostics (at least one error is present)
Hardware or firmware defective

Evaluate the diagnostic alarms and eliminate the error.
Replace the technology module.

Table 5- 2 PWR/24VDC/ERROR status displays

PWR Off Off On On On

LEDs 24VDC
Off Off On Off Off

ERROR Off
Flashing1 Off Off
Flashing1

Meaning

Remedy

Supply voltage too low or missing

· Check the supply voltage.
· Make sure that the front connector is correctly inserted.

Supply voltage is present and OK

---

Short-circuit or overload at the encoder ·

supply

·

·

Correct the encoder wiring. Check the loads connected to the encoder supply. Check the supply voltage.

1 Only when diagnostic interrupts enabled

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

54

Manual, 06/2018, A5E31870371-AB

Interrupts/diagnostic messages 5.1 Status and error display

Channel LEDs
The CHn.A, CHn.B, CHn.N and DIn.m LEDs indicate the current level of the associated signals. The LEDs of the DQn.m digital outputs indicate the desired state.
The UP and DN LEDs indicate the logical counting direction.
The flashing frequency of the channel LEDs is limited to approximately 12 Hz. If higher frequencies are present, the channel LEDs will flash at 12 Hz instead of indicating the current status.

Table 5- 3 Status displays CHn.m/DIn.m/DQn.m

LEDs CHn.m/DIn.m/DQn.m
Off
On
On (CHn.m/DQn.m)

Meaning
Counter input/digital input/digital output at 0 level Counter input/digital input/digital output at 1 level Diagnostic alarm: e.g. wire break, short-circuit

Remedy ----Check the wiring or the connected load.

Table 5- 4 Status displays CHn.UP/CHn.DN

CHn.UP

LEDs

CHn.DN

Off

Off

On

Off

Off

On

On

On

Meaning
No count pulse has been detected for the last 0.5 s.
The last count pulse has incremented the counter and took place no more than 0.5 s ago. The last count pulse has decremented the counter and took place no more than 0.5 s ago. Invalid transition of A/B signals

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

55

Interrupts/diagnostic messages 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Enabling of diagnostic interrupts
You enable the diagnostic interrupts in the device configuration with the basic parameters. The technology module can trigger the following diagnostic interrupts:

Table 5- 5 Possible diagnostic interrupts

Diagnostic interrupt · Parameter error · Hardware interrupt lost1 · Internal error · Watchdog tripped. Module is defective. · Wire break at digital input A, B or N
· Supply voltage missing · Short-circuit / overload at external encoder supply · Error at digital outputs · Supply voltage error2 · Invalid transition of A/B signals · Overtemperature

Monitoring Monitoring is always active. A diagnostic interrupt is triggered each time an error is detected.
Monitoring is active if a push-pull switching encoder has been configured. When an error is detected, a diagnostic interrupt is only triggered if "Enable diagnostic interrupt on wire break" is activated in the device configuration. Monitoring is always active. When an error is detected, a diagnostic interrupt is only triggered if "Enable additional diagnostic interrupts" is activated in the device configuration.

1 Not available in "Position input for "Motion Control"" technology object" operating mode
2 No longer available as of module version V1.3. This case is then taken into account by the diagnostic interrupt "Supply voltage missing".

Reactions to a diagnostic interrupt
The following happens when an event occurs that triggers a diagnostic interrupt:
 The ERROR LED flashes red.
Once you have remedied the error, the ERROR LED goes out.
 The S7-1500 CPU interrupts processing of the user program. The diagnostic interrupt OB (e.g. OB 82) is called. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.
 The S7-1500 CPU remains in RUN even if no diagnostic interrupt OB is present in the CPU. The technology module continues working unchanged if this is possible despite the error.
You can obtain detailed information on the error event in the error organization block with instruction "RALRM" (Read additional alarm information), in the information system of STEP 7 and in function manual Diagnostics (https://support.industry.siemens.com/cs/ww/en/view/59192926), section "System diagnostics in user program".
If the module is operated as a distributed module with PROFIBUS DP in an ET 200MP system, you have the option of reading out diagnostic data with the RDREC or RD_REC instruction using data record 0 and 1. You can find the structure of the data records in the manual for the IM 155-5 DP ST interface module available for download on the Internet (https://support.industry.siemens.com/cs/ww/de/view/78324181).

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

56

Manual, 06/2018, A5E31870371-AB

Interrupts/diagnostic messages 5.2 Diagnostic alarms

Diagnostic alarms
The display of diagnostics is in plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program.
The following diagnostics can be signaled:

Table 5- 6 Diagnostic alarms, their meaning and remedies

Diagnostic alarm
Parameter error Hardware interrupt lost

Error code 10H
16H

Internal error
Watchdog tripped. Module is defective.

100H 103H

Supply voltage miss- 10AH ing

Short-circuit / overload at external encoder supply

10EH

Error at digital out- 10FH puts

Supply voltage error1

110H

Invalid transition of 500H A/B signals

Meaning

Remedy

The received parameter data record is invalid Check parameter data record

· Module cannot issue interrupt because a preceding interrupt has not yet been processed

· Change interrupt processing in the CPU and re-assign technology module parameters correspondingly

· Possible cause: Too many hardware inter- · Check frequency of interrupts from the

rupts in too short a time

process

Technology module defective Firmware error Technology module defective · Missing or insufficient supply voltage L+ · Wiring of supply voltage L+ faulty · Front connector not inserted correctly

Replace technology module Run firmware update Replace technology module · Check supply voltage L+ · Check wiring of supply voltage L+ · Insert front connector correctly

· Error at encoder supply · Possible causes:
­ Short circuit ­ Overload

· Check encoder wiring
· Check consumers connected to encoder supply

· Error at the digital outputs (LED display DQn.m lit red)
· Possible causes: ­ Short circuit ­ Overload

· Check encoder wiring at the digital outputs
· Check consumers connected to the digital outputs

· Error at supply voltage L+ · Possible causes:
­ Low voltage ­ Wiring of supply voltage L+ faulty

· Check supply voltage L+ · Check wiring of supply voltage L+

· Time profile of signals A and B of the incremental encoder does not meet certain requirements (relative phase shift of the two signals is too small)
· Possible causes: ­ Signal frequency too high ­ Encoder faulty ­ Process wiring faulty

· Check process wiring · Check encoder/sensor · Check parameter assignment

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

57

Interrupts/diagnostic messages 5.2 Diagnostic alarms

Diagnostic alarm
Wire break at digital input A, B or N

Error code
505H

Overtemperature

506H

Meaning

Remedy

Channel not connected Resistance of encoder circuit too high
Interruption of the line between technology module and encoder Sensor used is sourcing output or sinking output only Possible causes: · Short-circuit or overload at the digital out-
puts or output of the encoder supply · Ambient temperature outside specifica-
tions · Contamination in the module prevents
cooling

Connect the channel · Use a different encoder type or modify
the wiring, for example, use shorter cables with larger cross-sections · Check encoders Check process wiring
Correct parameter assignment
· Check process wiring · Improve cooling · Check connected loads

1 No longer available as of module version V1.3. This case is then taken into account by the diagnostic interrupt "Supply voltage missing".

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

58

Manual, 06/2018, A5E31870371-AB

Interrupts/diagnostic messages 5.3 Hardware interrupts

5.3

Hardware interrupts

Introduction

For the technology module, you can configure which events are to trigger a hardware interrupt during operation.

What is a hardware interrupt?
The technology module will trigger a hardware interrupt as configured in response to specific events/states. When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the assigned hardware interrupt OB. The event that triggered the interrupt is entered in the start information of the assigned hardware interrupt OB by the CPU.

Lost hardware interrupt
If an event occurs that is to trigger a hardware interrupt and the preceding event has not yet been processed, another hardware interrupt cannot be triggered. The hardware interrupt is lost and the diagnostic interrupt "Lost hardware interrupt" is triggered.

Enabling of hardware interrupts
A hardware interrupt is triggered when the condition for the change of the respective status or event bit in the feedback interface is met. You enable the hardware interrupts in the device configuration with the basic parameters. You can configure hardware interrupts to be triggered for the following event types:  Opening of internal gate (gate start)  Closing of internal gate (gate stop)  Overflow (high counting limit violated)  Underflow (low counting limit violated)  Comparison event for DQ0 has occurred  Comparison event for DQ1 has occurred  Zero crossing3  New Capture value available1  Synchronization of the counter by an external signal  Direction reversal2 1 Only configurable in Counting mode 2 Feedback bit STS_DIR is preassigned with "0". If the first counter value change occurs in the downwards direction directly after switching on the technology module, no hardware interrupt is triggered.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

59

Interrupts/diagnostic messages 5.3 Hardware interrupts
3 When the "Zero crossing" hardware interrupt is enabled, for system-related reasons it can also be triggered if "0" is outside the configured value range. You can activate any combination of events to trigger hardware interrupts. You can obtain detailed information on the event in the hardware interrupt organization block with instruction "RALRM" (Read additional alarm information) and in the information system of STEP 7. Which channel of the module and which event has triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment to the bits of the local data double word 8.
Figure 5-2 Start information of the organization block

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

60

Manual, 06/2018, A5E31870371-AB

Technical specifications

6

Article number General information
Product type designation Firmware version · FW update possible Product function · I&M data Engineering with · PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision Installation type/mounting
Rail mounting Supply voltage Load voltage L+
· Rated value (DC)
· permissible range, lower limit (DC)
· permissible range, upper limit (DC)
· Reverse polarity protection Input current
Current consumption, max. Encoder supply
Number of outputs 24 V encoder supply
· 24 V
· Short-circuit protection
· Output current, max. Power
Power available from the backplane bus Power loss
Power loss, typ. Address area Occupied address area
· Inputs
· Outputs

6ES7550-1AA00-0AB0 TM Count 2x24V V1.3 Yes
Yes; I&M0 to I&M3
GSD Revision 5 V2.3 / -
Yes; S7-1500 mounting rail
24 V 19.2 V 28.8 V Yes
75 mA; without load 1; A common 24V encoder supply for both channels Yes; L+ (-0.8 V) Yes 1 A; total current of all encoders/channels
1.3 W 4 W
16 byte; Per channel 12 byte; per channel; 4 bytes for Motion Control

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

61

Technical specifications

Article number Digital inputs
Number of digital inputs Digital inputs, parameterizable Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop · Capture · Synchronization · Freely usable digital input Input voltage · Type of input voltage · Rated value (DC) · for signal "0" · for signal "1" · permissible voltage at input, min.
· permissible voltage at input, max. Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable ­ at "0" to "1", min. ­ at "1" to "0", min. for counter/technological functions ­ parameterizable Cable length · shielded, max. · unshielded, max.

6ES7550-1AA00-0AB0
6; 3 per channel Yes Yes
Yes Yes Yes Yes
DC 24 V -5 ... +5 V +11 to +30V -30 V; -5 V continuous, -30 V brief reverse polarity protection 30 V
2.5 mA
Yes; none / 0.05 / 0.1 / 0.4 / 0.8 / 1.6 / 3.2 / 12.8 / 20 ms 6 µs; for parameterization "none" 6 µs; for parameterization "none"
Yes
1 000 m 600 m

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

62

Manual, 06/2018, A5E31870371-AB

Technical specifications

Article number Digital outputs
Type of digital output Number of digital outputs Digital outputs, parameterizable Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input Digital output functions, parameterizable · Switching tripped by comparison values · Freely usable digital output Switching capacity of the outputs · with resistive load, max. · on lamp load, max. Load resistance range · lower limit · upper limit Output voltage · Type of output voltage · for signal "1", min. Output current · for signal "1" rated value · for signal "1" permissible range, max. · for signal "1" minimum load current · for signal "0" residual current, max. Output delay with resistive load · "0" to "1", max. · "1" to "0", max. Switching frequency · with resistive load, max. · with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per module, max. Cable length
· shielded, max. · unshielded, max.

6ES7550-1AA00-0AB0
Transistor 4; 2 per channel Yes Yes; electronic/thermal 1 A L+ (-33 V) Yes
Yes Yes
0.5 A; Per digital output 5 W
48  12 k
DC 23.2 V; L+ (-0.8 V)
0.5 A; Per digital output 0.6 A; Per digital output 2 mA 0.5 mA
50 µs 50 µs
10 kHz 0.5 Hz; Acc. to IEC 60947-5-1, DC-13; observe derating curve 10 Hz
2 A
1 000 m 600 m

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

63

Technical specifications

Article number Encoder Connectable encoders
· 2-wire sensor

6ES7550-1AA00-0AB0 Yes

­ permissible quiescent current (2-wire sensor), max.

1.5 mA

Encoder signals, incremental encoder (asymmetrical) · Input voltage

24 V

· Input frequency, max.

200 kHz

· Counting frequency, max.

800 kHz; with quadruple evaluation

· Cable length, shielded, max. · Signal filter, parameterizable

600 m; depending on input frequency, encoder and cable quality; max. 50 m at 200 kHz
Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes and zero track

· Pulse encoder

Yes

· Pulse encoder with direction

Yes

· Pulse encoder with one impulse signal per count

Yes

direction

Encoder signal 24 V ­ permissible voltage at input, min.

-30 V

­ permissible voltage at input, max.

30 V

Interface types

· Source/sink input

Yes

· Input characteristic curve in accordance with IEC

Yes

61131, type 3

Isochronous mode Isochronous operation (application synchronized up to terminal) Filtering and processing time (TCI), min. Bus cycle time (TDP), min.

Yes
130 µs 250 µs

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

64

Manual, 06/2018, A5E31870371-AB

Technical specifications

Article number Interrupts/diagnostics/status information Alarms
· Diagnostic alarm · Hardware interrupt Diagnostic messages · Monitoring the supply voltage · Wire-break · Short-circuit · A/B transition error at incremental encoder Diagnostics indication LED · RUN LED · ERROR LED · MAINT LED · Monitoring of the supply voltage (PWR-LED) · Channel status display · for channel diagnostics · Status indicator backward counting (green) · Status indicator forward counting (green) Integrated Functions Number of counters Counting frequency (counter) max. Counting functions · Can be used with TO High_Speed_Counter · Continuous counting · Counter response parameterizable · Hardware gate via digital input · Software gate · Event-controlled stop · Synchronization via digital input · Counting range, parameterizable Comparator
­ Number of comparators ­ Direction dependency ­ Can be changed from user program

6ES7550-1AA00-0AB0
Yes Yes
Yes Yes Yes Yes
Yes; Green LED Yes; Red LED Yes; yellow LED Yes; Green LED Yes; Green LED Yes; Red LED Yes Yes
2 800 kHz; with quadruple evaluation
Yes Yes Yes Yes Yes Yes Yes Yes
2; Per channel Yes Yes

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

65

Technical specifications
Article number Position detection
· Incremental acquisition · Suitable for S7-1500 Motion Control Measuring functions · Measuring time, parameterizable · Dynamic measurement period adjustment · Number of thresholds, parameterizable Measuring range
­ Frequency measurement, min. ­ Frequency measurement, max. ­ Cycle duration measurement, min. ­ Cycle duration measurement, max. Accuracy ­ Frequency measurement
­ Cycle duration measurement
­ Velocity measurement
Potential separation Potential separation channels
· between the channels · between the channels and backplane bus · Between the channels and load voltage L+ Isolation Isolation tested with Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max. · vertical installation, min. · vertical installation, max. Decentralized operation to SIMATIC S7-300 to SIMATIC S7-400 to SIMATIC S7-1200 to SIMATIC S7-1500 to standard PROFIBUS master to standard PROFINET controller
66

6ES7550-1AA00-0AB0
Yes Yes
Yes Yes 2
0.04 Hz 800 kHz 1.25 µs 25 s
100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation
No Yes No
707 V DC (type test)
0 °C 60 °C; Please note derating for inductive loads 0 °C 40 °C; Please note derating for inductive loads
Yes Yes Yes Yes Yes Yes
Technology module TM Count 2x24V (6ES7550-1AA00-0AB0) Manual, 06/2018, A5E31870371-AB

Article number Dimensions
Width Height Depth Weights Weight, approx.

6ES7550-1AA00-0AB0
35 mm 147 mm 129 mm
250 g

Technical specifications

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

67

Technical specifications
Derating information for total current of outputs
If the digital outputs of the TM Count 2x24V are operated with inductive loads, you should derate the total current of the loads at the digital outputs of the technology module. The total current is the sum of the load currents at all digital outputs of the module (all channels, without encoder supply). The following derating curve shows the load capacity of the digital outputs depending on the ambient temperature and mounting position under the following conditions:  Maximum switching frequency at digital outputs of 0.5 Hz  Load resistance: 48  (IEC 947-5-1)  Load inductance: 1150 mH (IEC 947-5-1)

 Vertical installation of the system  Horizontal installation of the system
Figure 6-1 Total current depending on ambient temperature and mounting position for inductive loads
Note If the switching frequency is greater than 0.5 Hz or there is greater inductance at the digital outputs, the total current must be reduced further.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

68

Manual, 06/2018, A5E31870371-AB

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the TM Count 2x24V technology module

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

69

Dimensional drawing
Figure A-2 Dimensional drawing of the TM Count 2x24V module, side view with open front panel

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

70

Manual, 06/2018, A5E31870371-AB

Parameter data record

B

B.1

Parameter assignment and structure of parameter data record
You have the option of reassigning module parameters with the user program while the CPU is in RUN. The parameters are transferred to the module using data record 128, e.g. with the WRREC instruction.
If an error occurs while transferring or validating parameters with the WRREC instruction, the module continues operating with the existing parameter assignment. A corresponding error code is then written to the STATUS output parameter. If no errors occur, the STATUS output parameter contains the length of the actually transferred data.
You can find a description of the WRREC instruction and the error codes in section Parameter validation error (Page 77) or in the online help of STEP 7 (TIA Portal).

Structure of data record 128 for operation with technology object and manual operation
The following table shows you the structure of data record 128 for TM Count 2x24V with 2 channels for operation with technology object and manual operation without technology object. The values in byte 0 to byte 3 are fixed and must not be changed. The value in byte 4 can only be changed by means of new parameter assignment and not in RUN mode.
Note
After each writing of data record 128, the module is set to its startup state and the counter value is set to the start value. If "Continue operation" is set for Reaction to CPU STOP, the module is then only set to its startup state when data record 128 has been changed.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

71

Parameter data record B.1 Parameter assignment and structure of parameter data record

Table B- 1 Data record 128: Operating modes "Operating with "Counting and measurement" technology object", "Manual operation (without technology object)"

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

0...3

Header

0

Major Version = 0

Minor Version = 2

1

Length of the parameter data per channel = 48

2

Reserved2

3

Reserved2

4...51

Counter channel 0

52...99

Counter channel 1

4/52

Operating mode

4/52 Reserved2

Operating mode:

0000B: Not permitted

0001B: Counting

0010B: Measuring

0011 to 1111B: Not permitted

5/53

Basic parameters

5/53 Reserved2

Enable additional diagnostic interrupts1

Reaction to CPU STOP:
00B: Output substitute value
01B: Keep last value

10B: Continue operation

11B: Not permitted

6...7/ 54...55

Counter inputs

6/54 Sensor type:

Signal evaluation:

Signal type:

00B: Sourcing output

00B: Single

0000B: Pulse (A)

01B: Sinking output

01B: Double

0001B: Pulse (A) and direction (B)

10B: Push-pull (sinking and sourcing output)

10B: Quadruple

0010B: Count up (A), count down (B)

11B: Not permitted

11B: Not permitted

0011B: Incremental encoder (A, B phase-shifted)

0100B: Incremental encoder (A, B, N)

0101 to 1111B: Not permitted

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

72

Manual, 06/2018, A5E31870371-AB

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

7/55 Reaction to signal N:

00B: No reaction to signal N

01B: Synchronization at signal N

Bit 5

Bit 4

Bit 3

Bit 2

Invert direction1

Enable diagnostic interrupt on wire break1

Filter frequency3: 0000B: 100 Hz 0001B: 200 Hz 0010B: 500 Hz 0011B: 1 kHz

Bit 1

Bit 0

10B: Capture at signal N

0100B: 2 kHz

11B: Not permitted

0101B: 5 kHz

0110B: 10 kHz

0111B: 20 kHz

1000B: 50 kHz

1001B: 100 kHz

1010B: 200 kHz

8...9/ 56...57

1011 to 1111B: Not permitted Hardware interrupts1

8/56 Reserved2 Reserved2 Reserved2 Change of Underflow Overflow Gate stop

direction (low count- (high count-

ing limit

ing limit

violated) violated)

Gate start

9/57 Synchroni- New Capzation of the ture value counter by available an external signal

Reserved2

Zero cross- Reserved2 ing

Comparison event for DQ1 has occurred

Reserved2

Comparison event for DQ0 has occurred

10...15/ 58...63

Behavior of DQ0/1

10/58 Set output (DQ1):

Set output (DQ0):

0000B: Use by user program

0000B: Use by user program

0001B: Between comparison value and high limit; Measuring: Measured value >= comparison value

0001B: Between comparison value and high limit; Measuring: Measured value >= comparison value

0010B: Between comparison value and low limit; Measuring: Measured value <= comparison value

0010B: Between comparison value and low limit; Measuring: Measured value <= comparison value

0011B: At comparison value for a pulse duration

0011B: At comparison value for a pulse duration

0100B: Between comparison value 0 and 1

0100B: Not permitted

0101B: After set command from CPU until comparison 0101B: After set command from CPU until comparison

value

value

0110B: Not between comparison value 0 and 1

0110 to 1111B: Not permitted

0111 to 1111B: Not permitted

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

73

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

11/59 Count direction (DQ1):

00B: Not permitted

01B: Up

Bit 5

Bit 4

Count direction (DQ0): 00B: Not permitted 01B: Up

Bit 3

Bit 2

Bit 1

Bit 0

Reserved2

Reserved2

Substitute value for DQ1

Substitute value for DQ0

10B: Down

10B: Down

11B: In both directions

11B: In both directions

12/60

Pulse duration (DQ0):

13/61

WORD: Value range in ms/10: 0 to 65535D

14/62

Pulse duration (DQ1):

15/63

WORD: Value range in ms/10: 0 to 65535D

16/64

Behavior of DI0

16/64

Behavior of counter value after Capture (DI0):

Edge selection (DI0): 00B: Not permitted4 01B: At rising edge 10B: At falling edge

Select level Reserved2 (DI0):
0B: Active with high level

Set function of DI (DI0): 000B: Gate start/stop (level-triggered) 001B: Gate start (edge-triggered) 010B: Gate stop (edge-triggered)

0B: Contin- 11B: At rising and falling ue counting edge

1B: Active with low level

011B: Synchronization 100B: Enable synchronization at signal N

1B: Set to start value and continue counting

101B: Capture 110B: Digital input without function 111B: Not permitted

17/65

Behavior of DI1:

See Byte 16

18/66

Behavior of DI2:

See Byte 16

19/67

Frequency of synchronization:

Reserved2

Frequency of Capture function:

Input delay: 0000B: None 0001B: 0.05 ms

0B: Once

0B: Once 0010B: 0.1 ms

0011B: 0.4 ms

1B: Periodic

1B: Periodic 0100B: 0.8 ms

0101B: 1.6 ms

0110B: 3.2 ms

0111B: 12.8 ms

1000B: 20 ms

1001 to 1111B: Not permitted

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

74

Manual, 06/2018, A5E31870371-AB

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

20...43/ 68...91

Values

20...23/ 68...71

High counting limit: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

24...27/ 72...75

Comparison value 0: Operating mode Counting: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH;
Measuring operating mode: REAL: Floating-point number in the configured unit of the measured quantity

28...31/

Comparison value 1:

76...79 Operating mode Counting: DWORD: Value range: ­2147483648 to 2147483647D: or 80000000 to 7FFFFFFFH;

Measuring operating mode: REAL: Floating-point number in the configured unit of the measured quantity

32...35/ 80...83

Start value: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

36...39/ 84...87

Low counting limit: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

40...43/ 88...91

Update time: DWORD: Value range in s: 0 to 25000000D

44/92

Counter behavior at limits and gate start

44/92 Reaction to gate start:

Reaction to violation of a counting limit: Reset when counting limit is violated:

00B: Set to start value

000B: Stop counting

000B: To opposite counting limit

01B: Continue with current 001B: Continue counting value

001B: To start value

10 to 11B: Not permitted 010 to 111B: Not permitted

010 to 111B: Not permitted

45/93

Specify measured value

45/93 Reserved2

Time base for velocity measurement: Measured variable:

000B: 1 ms

00B: Frequency

001B: 10 ms

01B: Period

010B: 100 ms

10B: Velocity

011B: 1 s

11B: Not permitted

100B: 60 s/1 min

101 to 111B: Not permitted

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

75

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit  Byte channel 0/1
 46/94 47/95 48/96
49...51/ 97...99

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Increments per unit: WORD: Value range: 1 to 65535D
Set hysteresis range: Value range: 0 to 255D
Reserved2

Bit 1

Bit 0

1 You activate the respective parameter by setting the associated bit to 1.
2 Reserved bits must be set to 0.
3 In isochronous mode, the parameter can affect the isochronous mode parameters of the sync domain. Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change the parameter in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.
4 Applies to: Set function of DI = 001B; 010B; 011B; 101B

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

76

Manual, 06/2018, A5E31870371-AB

Parameter data record B.2 Parameter validation error

B.2
WRREC

Parameter validation error
If you make the parameter settings in STEP 7 (TIA Portal) or in STEP 7 , the parameter values are checked before they are transferred to the technology module. This process prevents parameter errors.
In other use cases, the technology module checks the transferred parameter data record. If the technology module finds invalid or inconsistent parameter values, it outputs an error code (see below). The new parameter data record is rejected in this case, and work continues with the current parameter values until a valid parameter data record has been transferred.

When the CPU is in RUN, you can change the parameter data record with the instruction WRREC (Write Record). In case of errors, the WRREC instruction returns corresponding error codes in the STATUS parameter.
Example:
Let us assume that an invalid value, for example 9, is written to the module for the operating mode with WRREC. As a consequence, the module rejects the entire parameter data record. You can recognize this by evaluating the STATUS output parameter of the WRREC instruction. The STATUS output parameter is output as an ARRAY[1..4] of BYTE data with the value 16#DF80E111:

Example of WRREC STATUS data DFH 80H
E1H 11H

Address

Meaning

STATUS[1] STATUS[2]
STATUS[3] STATUS[4]

Error when writing a data record via PROFINET IO (IEC 61158-6) Error when reading or writing a data record via PROFINET IO (IEC 61158-6) Module-specific error Error code from the table below: The "Operating mode" parameter has an invalid value.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

77

Parameter data record B.2 Parameter validation error

Error codes

The following table shows the module-specific error codes and their meaning for parameter data record 128.

Table B- 2 Error codes for parameter validation

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

B0

00

Data record number unknown

DF 80

B1

01

Length of data record incorrect

DF 80

B2

00

Slot invalid or not accessible

Remedy
Enter valid number for data record. Enter valid value for data record length. · Check whether module is inserted or removed.

· Check assigned values for parameters of the WRREC instruction.

DF 80

E0

01

Wrong version

· Check byte 0.

· Enter valid values.

DF 80

E0

02

Error in the header information

· Check byte 1.

· Correct the length of the parameter blocks.

DF 80

E1

00

Parameter invalid: No detailed information

available

Check all parameter values.

DF 80

E1

11

"Operating mode" parameter invalid

Enter valid parameter value.

DF 80

E1

12

"Reaction to CPU STOP" parameter invalid

Enter valid parameter value.

DF 80

E1

13

"Signal type" parameter invalid

Enter valid parameter value.

DF 80

E1

14

"Sensor type" parameter invalid

Enter valid parameter value.

DF 80

E1

15

"Filter frequency" parameter invalid

Enter valid parameter value.

DF 80

E1

16

"Reaction to signal N" parameter invalid

Enter valid parameter value.

DF 80

E1

17

"Set function of DI" parameter invalid

Enter valid parameter value.

DF 80

E1

18

"Set function of DI" parameter configured the Enter different parameter values for DIn.0 and DIn.1.

same for DIn.0 and DIn.1.

DF 80

E1

19

· "Edge selection" parameter invalid

· Enter valid parameter value.

· "Gate start (edge-triggered)" configured as function for DIn.m and "At rising and falling edge"

· Configure "Gate start (edge-triggered)" as function for DIn.m only together with "At rising edge" or "At falling edge"

· "Gate stop (edge-triggered)" configured as function for DIn.m and "At rising and falling edge"

· Configure "Gate stop (edge-triggered)" as function for DIn.m only together with "At rising edge" or "At falling edge"

· "Synchronization" configured as function for · Configure "Synchronization" as function for DIn.m

DIn.m and "At rising and falling edge"

only together with "At rising edge" or "At falling

edge"

DF 80

E1

1A

"Input delay" parameter invalid

Enter valid parameter value.

DF 80

E1

1B

"Set output" parameter invalid

Enter valid parameter value.

DF 80

E1

1C

"Count direction" parameter invalid

Enter valid parameter value.

DF 80

E1

1D

"Reset when counting limit is violated" parame- Enter valid parameter value.

ter invalid

DF 80

E1 1E "Reaction to violation of a counting limit" parameter invalid

Enter valid parameter value.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

78

Manual, 06/2018, A5E31870371-AB

Parameter data record B.2 Parameter validation error

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

E1

20

"Reaction to gate start" parameter invalid

DF

80

E1

211,5 · Low counting limit > comparison value 0

Remedy
Enter valid parameter value. · Low counting limit < comparison value 0

· Low counting limit > comparison value 1

· Low counting limit < comparison value 1

DF

80

E1

221,5 · Counting high limit < comparison value 0

· High counting limit > comparison value 0

· Counting high limit < comparison value 1 · High counting limit > comparison value 1

DF 80

E1

23

· "Start value" parameter invalid

· "Low counting limit" parameter invalid

Enter valid parameter value: Start value > low counting limit

DF 80

E1

24

· "Start value" parameter invalid

· "High counting limit" parameter invalid

Enter valid parameter value: Start value < high counting limit

DF 80

E1

25

"Update time" parameter invalid

Enter parameter value from range 0 to 25000000D.

DF

80

E1

262 "Reference speed" parameter invalid

Enter parameter value from range 6.00 to 210000.00D.

DF 80

E1

27

"Measured variable" parameter invalid

Enter valid parameter value.

DF 80

E1

28

"Time base for velocity measurement" parame- Enter valid parameter value.

ter invalid

DF 80

E1

29

"Increments per unit" parameter invalid

Enter valid parameter value.

DF 80

E1

2A

· "High counting limit" parameter invalid

· "Low counting limit" parameter invalid

Enter valid parameter value: Low counting limit < high counting limit

DF

80

E1

2B3 · "Comparison value 0" parameter invalid

· "Comparison value 1" parameter invalid

Enter valid parameter value: Comparison value 0 < comparison value 1

DF 80

E1

2C

"Signal evaluation" parameter invalid

Enter valid parameter value.

DF 80

E1

2D

· "Between comparison value 0 and 1" con- · Configure "Between comparison value 0 and 1"

figured for DQn.0

only for DQn.1

· "Not between comparison value 0 and 1" configured for DQn.0

· "Not between comparison value 0 and 1" configured only for DQn.1

· "Between comparison value 0 and 1" configured for DQn.1, but "Use by user program" not configured for DQn.0

· Only configure "Between comparison value 0 and 1" for DQn.1 when "Use by user program" is configured for DQn.0

· "Not between comparison value 0 and 1" · Only configure "Not between comparison value 0

configured for DQn.1, but "Use by user pro-

and 1" for DQn.1 when "Use by user program" is

gram" not configured for DQn.0

configured for DQn.0

DF 80

E1

2E

"Capture" configured for DIn.m in "Measuring" Do not configure "Capture" for DIn.m in "Measuring"

operating mode

operating mode.

DF

80

E1

364 "Counting high limit" parameter invalid

Enter valid parameter value.

DF

80

E1

374,5 · "Comparison value 0" parameter invalid

Enter valid parameter value.

· "Comparison value 1" parameter invalid

DF

80

E1

384 "Start value" parameter invalid

DF

80

E1

394 "Counting low limit" parameter invalid

Enter valid parameter value. Enter valid parameter value.

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

Manual, 06/2018, A5E31870371-AB

79

Parameter data record B.2 Parameter validation error

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

E1

3A4 "Count direction for synchronization" parameter

invalid

DF 80

E1

F0

Reserved bit is not set to 0.

Remedy
Enter valid parameter value. Set reserved bit to 0.

1 Only for "Counting" operating mode 2 Only for "Position input for technology object "Motion Control"" operating mode 3 Only for DQn.1 functions "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" 4 Only for operating mode "Fast Mode" 5 Not for DQn.m function "Use by user program" or "Digital output without function"

Technology module TM Count 2x24V (6ES7550-1AA00-0AB0)

80

Manual, 06/2018, A5E31870371-AB

SIMATIC
S7-1500/ET 200MP Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Co_n_fig_u_rin_g/_ad_d_re_ss_s_pa_c_e ____4_ _Imn_etes_rsrua_pg_tess/_di_ag_n_os_tic________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

06/2018
A5E03982218-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03982218-AB  05/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Preface

Purpose of the documentation
This manual includes module-specific information on wiring, diagnostics and the technical specifications of the technology module.
General information regarding design and commissioning of the S7-1500 or ET 200MP is available in the S7-1500 and ET 200MP System Manuals.
The counting and measuring functions and position input of the TM PosInput 2 technology module are described in more detail in the Counting, measurement and position input (http://support.automation.siemens.com/WW/view/en/59709820) Function Manual.

Conventions

Please observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

3

Preface
Open Source Software
Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information on this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109740777).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

4

Manual, 06/2018, A5E03982218-AB

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 Product overview .................................................................................................................................. 11

2.1

Properties ................................................................................................................................ 11

2.2 2.2.1 2.2.1.1 2.2.1.2 2.2.2 2.2.3 2.2.4 2.2.5

Functions ................................................................................................................................14 Acquisition of encoder signals ................................................................................................14 Position input with SSI absolute encoder ...............................................................................14 Counting with incremental or pulse encoder ..........................................................................16 Measured value determination ...............................................................................................17 Switching the outputs at comparison values ..........................................................................17 Position input for Motion Control.............................................................................................18 Additional functions.................................................................................................................19

3 Wiring ................................................................................................................................................... 20

3.1

SSI encoder signals ................................................................................................................22

3.2

RS422 encoder signals...........................................................................................................24

3.3

TTL encoder signals ...............................................................................................................28

4 Configuring/address space.................................................................................................................... 32

4.1 4.1.1 4.1.2 4.1.3 4.1.3.1 4.1.3.2 4.1.4 4.1.5

Operating with "Counting and measurement" technology object ...........................................32 Configuring .............................................................................................................................. 32 Reaction to CPU STOP ..........................................................................................................33 Parameter setting....................................................................................................................34 Parameters (SSI absolute encoder) .......................................................................................35 Parameters (incremental or pulse encoder) ...........................................................................39 Address space ........................................................................................................................43 Isochronous mode ..................................................................................................................43

4.2 4.2.1 4.2.2 4.2.2.1 4.2.2.2 4.2.3 4.2.4

Position input for ""Motion Control"" technology object ..........................................................45 Configuring .............................................................................................................................. 45 Parameter setting....................................................................................................................46 Parameters (SSI absolute encoder) .......................................................................................47 Parameters (incremental or pulse encoder) ...........................................................................49 Address space ........................................................................................................................50 Isochronous mode ..................................................................................................................51

4.3 4.3.1 4.3.2 4.3.3 4.3.3.1 4.3.3.2

Manual operation (without technology object) ........................................................................52 Configuring .............................................................................................................................. 52 Reaction to CPU STOP ..........................................................................................................54 Parameter setting....................................................................................................................55 Parameters (SSI absolute encoder) .......................................................................................56 Parameters (incremental or pulse encoder) ...........................................................................60

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

5

Table of contents

4.3.4 4.3.5 4.3.5.1 4.3.5.2 4.3.6

Address space ....................................................................................................................... 64 Control and feedback interface .............................................................................................. 65 Assignment of the control interface........................................................................................ 65 Assignment of the feedback interface.................................................................................... 68 Isochronous mode ................................................................................................................. 72

5 Interrupts/diagnostic messages ............................................................................................................. 73

5.1

Status and error display ......................................................................................................... 73

5.2

Diagnostic alarms................................................................................................................... 76

5.3

Hardware interrupts ............................................................................................................... 80

6 Technical specifications ........................................................................................................................ 82

A Dimensional drawing............................................................................................................................. 91

B Parameter data record .......................................................................................................................... 93

B.1

Parameter assignment and structure of parameter data record ............................................ 93

B.2

Parameter validation error ................................................................................................... 100

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

6

Manual, 06/2018, A5E03982218-AB

Documentation guide
The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

1

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

7

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

8

Manual, 06/2018, A5E03982218-AB

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

9

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

10

Manual, 06/2018, A5E03982218-AB

Product overview

2

2.1

Properties

Article number
6ES7551-1AB00-0AB0

Firmware version
This manual describes the properties of the module with firmware version V1.3.

View of the module

Figure 2-1 View of the TM PosInput 2 module

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

11

Product overview 2.1 Properties

Properties

The TM PosInput 2 technology module has the following properties:  Technical properties
­ Two channels ­ Interfaces:
SSI encoder signals D und C or RS422/TTL encoder signals A, B and N 5 V and 24 V encoder supply, short-circuit-proof DI0 and DI1 digital input signals (per channel) DQ0 and DQ1 digital output signals (per channel) Supply voltage L+ ­ Count range: 32 bits ­ Channel-by-channel monitoring of encoder signals for wire break, short-circuit and faulty supply voltage ­ Hardware interrupts can be configured channel by channel ­ Input filters for suppression of interferences at encoder inputs and digital inputs can be configured  Supported encoder/signal types ­ SSI absolute encoder ­ RS422/TTL incremental encoder with N signal ­ RS422/TTL incremental encoder without N signal ­ RS422/TTL pulse encoder with direction signal ­ RS422/TTL pulse encoder without direction signal ­ RS422/TTL pulse encoder with up/down count signal  Supported system functions ­ Isochronous mode ­ Firmware update ­ Identification data I&M

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

12

Manual, 06/2018, A5E03982218-AB

Product overview 2.1 Properties

The module supports the following functions:

Table 2- 1 Version dependencies of the functions

Function
Firmware update I&M identification data Parameter reassignment in RUN Isochronous mode Counting/measuring Operating with "Counting and measurement" technology object Position input for "Motion Control" technology object Operating with "Measuring input" technology object Position value range of 32 bits

Firmware version of module
V1.0 or higher V1.0 or higher V1.0 or higher V1.0 or higher V1.0 or higher V1.0 or higher

Configurable as of

STEP 7 (TIA Portal)

GSD

PROFINET IO

PROFIBUS DP

V13

X

--

V13

X

X

V13

X

X

V13

--

--

V13

X

X

V13

--

--

V1.0 or higher

V13

--

--

V1.3 or higher V15 with

--

--

HSP0256

V1.3 or higher V15 with

X

X

HSP0256

Accessories

The following components are supplied with the technology module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Power supply element  Labeling strip  U-connector

Other components
The following component needs to be ordered separately:
 Front connectors, including potential jumpers and cable ties
You can find information on the front connector in system manual S7-1500 / ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792), section "Accessories".

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

13

Product overview 2.2 Functions

2.2

Functions

2.2.1

Acquisition of encoder signals

2.2.1.1

Position input with SSI absolute encoder
You can use the TM PosInput 2 technology module with an SSI absolute encoder for position detection. The technology module reads the position via a synchronous, serial interface from the SSI absolute encoder and sends it to the controller.
You can switch the digital outputs of the technology module exactly at defined position values, independently of the user program. Position input with an SSI absolute encoder does not involve gate control.

Gray-code and dual-code
Gray-code and dual-code SSI absolute encoders are supported.

Range for position value
You can specify a frame length of 10 bits to 40 bits for the SSI absolute encoder. The configurable bit numbers of the LSB and the MSB of the position value in the frame define the value range. The technology module can read in a position value with a maximum length of 32 bits and transfer it to the controller.

Complete SSI frame
Instead of having a measured variable returned, you can choose to have the least significant 32 bit of the current unprocessed SSI frame returned. This provides you with encoderspecific additional bits, such as error bits, in addition to the position value. If the SSI frame is shorter than 32 bits, the complete SSI frame is returned right-aligned and the top unused bits are returned with "0" in the feedback interface.

Capture (Latch)
You can configure the edge of an external reference signal that triggers saving of the current position value as a Capture value. The following external signals can trigger the Capture function:
 Rising or falling edge of a digital input
 Both edges of a digital input
The "Frequency of Capture function" parameter specifies whether the function is executed at each configured edge or only once after each enable.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

14

Manual, 06/2018, A5E03982218-AB

Product overview 2.2 Functions
Measuring input
If you use Position input for Motion Control (Page 18), you can use the "Measuring input" technology object to execute a measuring input function with a hardware digital input.
Hardware interrupts
The technology module can trigger a hardware interrupt in the CPU when a comparison event, zero crossing and/or direction reversal occurs. You can specify which events during operation are to trigger a hardware interrupt.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

15

Product overview 2.2 Functions

2.2.1.2

Counting with incremental or pulse encoder
Counting is the detecting and adding up of events. The counters of the technology module detect encoder signals and pulses and evaluate them accordingly. The count direction can be specified using encoder or pulse signals or through the user program.
You can control the counting processes with the digital inputs. In addition, you can read the signal state of the respective digital input via the feedback interface.
You can specify the counter characteristics using the functions described below.

Counting limits

The counting limits define the counter value range used. The counting limits are configurable and can be modified during runtime with the user program.
You can configure the behavior of the counter at the counting limits.

Start value

You can configure a start value within the counting limits. The start value can be modified during runtime with the user program.

Gate control

You can define the time window in which the count signals are acquired with the hardware gate (HW gate) and software gate (SW gate).

Capture (Latch)
You can configure an external reference signal edge that triggers the saving of the current counter value as Capture value. The following external signals can trigger the Capture function:
 Rising or falling edge of a digital input
 Both edges of a digital input
 Rising edge of signal N at the encoder input
The "Frequency of Capture function" parameter specifies whether the function is executed at each configured edge or only once after each enable.

Measuring input
If you use Position input for Motion Control (Page 18), you can use the "Measuring input" technology object to execute a measuring input function with a hardware digital input.

Hardware interrupts
The technology module can trigger a hardware interrupt in the CPU when, for example, a comparison event, zero crossing and/or a change of count direction (direction reversal) occurs. You can specify which events during operation are to trigger a hardware interrupt.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

16

Manual, 06/2018, A5E03982218-AB

Product overview 2.2 Functions

2.2.2

Measured value determination
The following high-accuracy measurement functions are available (accuracy up to 100 ppm):  Frequency measurement with the unit of hertz  Period measurement with the unit of seconds  Velocity measurement with a flexibly adaptable unit  Complete SSI frame instead of a measured quantity

Update time

You can configure the interval at which the technology module updates the measured values cyclically as the update time.

Gate control for incremental and pulse encoders
You can define the time window in which the count signals are acquired with the hardware gate (HW gate) and software gate (SW gate).

2.2.3

Switching the outputs at comparison values
The available digital outputs DQ0 and DQ1 can be directly activated/switched by the specified comparison values or via the user program. The comparison values are configurable and can be modified during runtime with the user program. This enables very fast reaction times to be achieved.

Comparison values in the Counting/Position input operating mode
In Counting/Position input operating mode you specify two position or counter values as comparison values depending on the encoder. If the current position or counter value meets the configured comparison condition, the corresponding digital output can be set to directly initiate control processes in the process.

Comparison values in the Measuring mode
You define two comparison values in the Measuring mode. If the current measured value meets the configured comparison condition, the corresponding digital output can be set to directly initiate control processes in the process.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

17

Product overview 2.2 Functions

2.2.4

Position input for Motion Control
You can use the technology module for position detection for the following axis technology objects of S7-1500 Motion Control :
 TO_PositioningAxis
 TO_SynchronousAxis
 TO_ExternalEncoder
In this operating mode, you can use the measuring input technology object (TO_MeasuringInput) to execute a measuring input function with hardware digital input DI1.

Additional information
You can find a detailed description of the use of Motion Control and its configuration in the following:
 Function manual S7-1500 Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59381279)
 Function manual S7-1500T Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109481326)

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

18

Manual, 06/2018, A5E03982218-AB

Product overview 2.2 Functions

2.2.5

Additional functions

Synchronization for incremental and pulse encoder
You can configure the edge of an external reference signal that loads the counter with the specified start value. The following external signals can trigger a synchronization:
 Rising or falling edge of a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input depending on the level of the assigned digital input
The "Frequency of synchronization" parameter specifies whether the function is executed at each configured edge or only once after each enable.

Hysteresis

You can specify a hysteresis for the comparison values within which a digital output will be prevented from switching again.

Diagnostic interrupt
The technology module can trigger diagnostic interrupts. You enable the diagnostic interrupts in the device configuration.

Input filter

To suppress interference, you can configure an input filter for the RS422/TTL encoder inputs and for the digital inputs.

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables position, counter and measured values to be acquired in a defined system cycle.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

19

Wiring

3

You connect the encoder signals, the digital input and output signals and the encoder supplies to the 40-pin front connector of the technology module. In addition, you connect the supply voltage for supplying the module and digital outputs and for producing the encoder supply voltages to the 4-pin power supply element.
You can find the pin assignment of the front connector and the power supply element in the following two sections.
You can find information on wiring the front connector, shielding the cable, etc., in system manual S7-1500 / ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792), section Wiring.
Supply voltage L+/M
You connect the supply voltage to terminals L+ (terminal 41/42) and M (terminal 43/44). An internal protection circuit protects the technology module from reverse polarity of the supply voltage. The technology module monitors whether the supply voltage is connected.
Pin assignment for the power supply element
The power supply element is plugged onto the front connector and serves to supply the technology module. For this, you must connect the supply voltage to terminal 41 (L+) and terminal 44 (M). Use terminal 42 (L+) and terminal 43 (M) to loop the supply voltage through to the next module.

Figure 3-1 Connection of power supply element

L+

Supply voltage 24 V DC

M

Ground for supply voltage

Encoder supplies
For supplying the encoders and sensors connected to the digital inputs, the technology module provides 24 V DC and 5 V DC supply voltages at outputs 24VDC (terminal 9/29) and 5VDC (terminal 7/27) with reference to M (terminal 8/28). For supplying the sensors connected to the digital inputs, the technology module provides a 24 V DC supply voltage at output 24VDC (terminal 9/29). Both voltages are monitored for short-circuit and overload.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

20

Manual, 06/2018, A5E03982218-AB

Wiring
Digital inputs DI0 and DI1
The digital inputs are used for gate control, synchronization and the Capture function. The digital inputs of the two channels are not isolated from one another.
Input delay for digital inputs
You can use this parameter to suppress signal noise at the digital inputs of a channel. Changes to the signal are only detected if they remain stable for longer than the configured input delay time.
Note If you select the "None" or "0.05 ms" option, you must use shielded cables for connection of the digital inputs.
Digital outputs DQ0 and DQ1
The digital outputs of the two channels are not isolated from one another. The digital outputs are 24 V sourcing outputs in reference to M and can carry a rated load current of 0.5 A. They are protected against overload and short-circuit. Relays and contactors can be directly connected without an external protective circuit. You can find information on the maximum possible operating frequencies and the inductance values of the inductive loads connected to the digital outputs in section Technical specifications (Page 82).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

21

Wiring 3.1 SSI encoder signals

3.1

SSI encoder signals

SSI encoder signals
The TM PosInput 2 can process SSI encoder signals. These are designated with data and clock and use the RS422 signal standard.
An RS422 encoder signal uses a pair of wires and the information is transmitted as differential voltage. This ensures interference-free transmission of RS422 encoder signals even with high frequencies over long distances. The RS422 wire pairs must be twisted together in the cable.
The SSI encoder signals data and clock are connected via the D and C terminals. The N terminals remain unconnected. The inputs are not isolated from each other. The inputs are isolated from the backplane bus.

Pin assignment for the front connector
The table below shows the pin assignment of the front connector.

Table 3- 1 Pin assignment of the front connector

Designation
Channel 0 SSI data signal +D SSI data signal -D SSI clock signal +C SSI clock signal -C -- -- Encoder supply 5 V DC Ground for encoder supplies and digital inputs

Signal name

+CH0.A/D

1

-CH0.A/D

2

+CH0.B/C

3

-CH0.B/C

4

+CH0.N

5

-CH0.N

6

5VDC

7

M

8

Encoder supply 24 V DC 24VDC

9

Ground for encoder sup- M

10

plies and digital inputs

Digital input DI0 Digital input DI1 -- -- Digital output DQ0 Digital output DQ1 -- Digital output ground --

DI0.0 DI0.1 -- -- DQ0.0 DQ0.1 -- M --

11 12 13 14 15 16 17 18 19 - 20

View

Signal name
Channel 1 21 +CH1.A/D 22 -CH1.A/D 23 +CH1.B/C 24 -CH1.B/C 25 +CH1.N 26 -CH1.N 27 5VDC 28 M

29 24VDC 30 M

31 32 33 34 35 36 37 38 39 - 40

DI1.0 DI1.1 -- -- DQ1.0 DQ1.1 -- M --

Designation
SSI data signal +D SSI data signal -D SSI clock signal +C SSI clock signal -C
-- -- Encoder supply 5 V DC Ground for encoder supplies and digital inputs Encoder supply 24 V DC Ground for encoder supplies and digital inputs Digital input DI0 Digital input DI1 -- -- Digital output DQ0 Digital output DQ1 -- Digital output ground --

Note Potential jumpers may not be inserted in the front connector.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

22

Manual, 06/2018, A5E03982218-AB

Wiring 3.1 SSI encoder signals

Block diagram

You must ground the shields of the cables between encoder and technology module both through the shield support at the front connector (shield bracket and terminal) and at the encoder.
The figure below shows the block diagram of the technology module with one connected SSI absolute encoder.



Electrical isolation



Encoder supply, optionally 5 V DC or 24 V DC, according to the specification of the encoder manufacturer



Technology and backplane bus interface



Shield support at the front connector



Input filter



Supply voltage via power supply element



Equipotential bonding



RS422 incremental encoder

Figure 3-2 Block diagram with SSI absolute encoder

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

23

Wiring 3.2 RS422 encoder signals

3.2

RS422 encoder signals

RS422 encoder signals/count signals
The TM PosInput 2 can process encoder signals that use the RS422 signal standard. These counting encoder signals are designated with the letters A, B and N.
An RS422 encoder signal uses a pair of wires and the counter information is transmitted as differential voltage. This ensures interference-free transmission of RS422 encoder signals even with high frequencies over long distances. The RS422 wire pairs must be twisted together in the cable.
You can connect the following encoder types:
 RS422 incremental encoder with N signal:
The encoder signals A, B and N are connected using the correspondingly marked terminals. A and B are the two incremental signals phase-shifted by 90°. N is the zero mark signal that supplies one pulse per revolution.
 RS422 incremental encoder without N signal:
The encoder signals A and B are connected using the correspondingly marked terminals. A and B are the two incremental signals phase-shifted by 90°. The N terminals remain unconnected.
 RS422 pulse encoder without direction signal:
The counting signal is connected to the A terminals. The count direction can be specified via the control interface. The B and N terminals remain unconnected.
 RS422 pulse encoder with direction signal:
The counting signal is connected to the A terminals. The direction signal is connected to the B terminals. Counting down takes place at a high level of the direction signal. The N terminals remain unconnected.
 RS422 pulse encoder with up/down count signal
The up counting signal is connected to the A terminals. The down counting signal is connected to the B terminals. The N terminals remain unconnected.
The inputs are not isolated from each other. The inputs are isolated from the backplane bus.
Note
The RS422 signal standard offers greater interference immunity than the TTL signal standard. If your incremental encoder or pulse encoder supports the RS422 and the TTL signal standard, we recommend using the RS422 signal standard.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

24

Manual, 06/2018, A5E03982218-AB

Wiring 3.2 RS422 encoder signals

Pin assignment for the front connector
The table below shows the pin assignment of the front connector.

Table 3- 2 Pin assignment of the front connector

View

Signal name
Channel 0 1 +CH0.A/D
2 -CH0.A/D
3 +CH0.B/C
4 -CH0.B/C
5 +CH0.N
6 -CH0.N
7 5VDC 8 M 9 24VDC 10 M 11 DI0.0 12 DI0.1 13 -- 14 -- 15 DQ0.0 16 DQ0.1 17 -- 18 M 19 - -- 20

RS422 incremental encoder

with signal N

without signal N

Designation RS422 pulse encoder

with direction without direc-

signal

tion signal

Up/ Down

Encoder signal +A

Counting signal +A

Up counting signal +A

Encoder signal -A

Counting signal -A

Up counting signal -A

Encoder signal +B Direction signal

--

+B

Down counting signal +B

Encoder signal -B

Direction signal

--

-B

Down counting signal -B

Encoder

--

signal +N

Encoder

--

signal -N

Encoder supply 5 V DC

Ground for encoder supplies and digital inputs

Encoder supply 24 V DC

Ground for encoder supplies and digital inputs

Digital input DI0

Digital input DI1

--

--

Digital output DQ0

Digital output DQ1

--

Digital output ground

--

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

25

Wiring 3.2 RS422 encoder signals

View

Signal name
Channel 1 21 +CH1.A/D
22 -CH1.A/D
23 +CH1.B/C
24 -CH1.B/C
25 +CH1.N
26 -CH1.N
27 5VDC 28 M 29 24VDC 30 M 31 DI1.0 32 DI1.1 33 -- 34 -- 35 DQ1.0 36 DQ1.1 37 -- 38 M 39 - -- 40

RS422 incremental encoder

with signal N

without signal N

Designation RS422 pulse encoder

with direction without direc-

signal

tion signal

Up/ Down

Encoder signal +A

Counting signal +A

Up counting signal +A

Encoder signal -A

Counting signal -A

Up counting signal -A

Encoder signal +B Direction signal

--

Down counting

+B

signal +B

Encoder signal -B

Direction signal

--

Down counting

-B

signal -B

Encoder

--

signal +N

Encoder

--

signal -N

Encoder supply 5 V DC

Ground for encoder supplies and digital inputs

Encoder supply 24 V DC

Ground for encoder supplies and digital inputs

Digital input DI0

Digital input DI1

--

--

Digital output DQ0

Digital output DQ1

--

Digital output ground

--

Note Potential jumpers may not be inserted in the front connector.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

26

Manual, 06/2018, A5E03982218-AB

Wiring 3.2 RS422 encoder signals

Block diagram

You must ground the shields of the cables between encoder and technology module both through the shield support at the front connector (shield bracket and terminal) and at the encoder.
The figure below shows the block diagram of the technology module with one connected RS422 incremental encoder.



Electrical isolation



Encoder supply, optionally 5 V DC or 24 V DC, according to the specification of the encoder manufacturer



Technology and backplane bus interface



Shield support at the front connector



Input filter



Supply voltage via power supply element



Equipotential bonding



RS422 incremental encoder

Figure 3-3 Block diagram with RS422 incremental encoder

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

27

Wiring 3.3 TTL encoder signals

3.3

TTL encoder signals

TTL encoder signals/counting signals
The TM PosInput 2 can process encoder signals that use the TTL signal standard. The counting encoder signals are designated with the letters A, B and N. An encoder signal with TTL standard uses a single cable.
You can connect the following encoder types:
 TTL incremental encoder with N signal:
The encoder signals A, B and N are connected using the correspondingly marked terminals. A and B are the two incremental signals phase-shifted by 90°. N is the zero mark signal that supplies one pulse per revolution.
 TTL incremental encoder without N signal:
The encoder signals A and B are connected using the correspondingly marked terminals. A and B are the two incremental signals phase-shifted by 90°. The N terminal remains unconnected.
 TTL pulse encoder without direction signal:
The counting signal is connected to the A terminal. The count direction can be specified via the control interface. The B and N terminals remain unconnected.
 TTL pulse encoder with direction signal:
The counting signal is connected to the A terminal. The direction signal is connected to the B terminal. Counting down takes place at a high level of the direction signal. The N terminal remains unconnected.
 TTL pulse encoder with up/down counting signal
The up counting signal is connected to the A terminal. The down counting signal is connected to the B terminal. The N terminal remains unconnected.
The inputs are not isolated from each other. The inputs are isolated from the backplane bus.
Note
The RS422 signal standard offers greater interference immunity than the TTL signal standard. If your incremental encoder or pulse encoder supports the RS422 and the TTL signal standard, we recommend using the RS422 signal standard.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

28

Manual, 06/2018, A5E03982218-AB

Wiring 3.3 TTL encoder signals

Pin assignment for the front connector
The table below shows the pin assignment of the front connector.

Table 3- 3 Pin assignment of the front connector

View

Signal name
Channel 0 1 +CH0.A/D
2 -CH0.A/D 3 +CH0.B/C
4 -CH0.B/C 5 +CH0.N
6 -CH0.N 7 5VDC 8 M 9 24VDC 10 M 11 DI0.0 12 DI0.1 13 -- 14 -- 15 DQ0.0 16 DQ0.1 17 -- 18 M 19 - -- 20

TTL incremental encoder

with signal N

without signal N

Designation

TTL pulse encoder

with direction without direc-

signal

tion signal

Up/ Down

Encoder signal A

Counting signal A

Up counting signal A

--

Encoder signal B

Direction signal

--

B

Down counting signal B

--

Encoder

--

signal N

--

Encoder supply 5 V DC

Ground for encoder supplies and digital inputs

Encoder supply 24 V DC

Ground for encoder supplies and digital inputs

Digital input DI0

Digital input DI1

--

--

Digital output DQ0

Digital output DQ1

--

Digital output ground

--

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

29

Wiring 3.3 TTL encoder signals

View

Signal name

Designation

TTL incremental encoder

TTL pulse encoder

with signal N

without signal N

with direction without direc-

signal

tion signal

Up/ Down

Channel 1

21 +CH1.A/D

Encoder signal A

Counting signal A

Up counting signal A

22 -CH1.A/D

--

23 +CH1.B/C

Encoder signal B

Direction signal

--

Down counting

B

signal B

24 -CH1.B/C

--

25 +CH1.N

Encoder

--

signal N

26 -CH1.N

--

27 5VDC

Encoder supply 5 V DC

28 M

Ground for encoder supplies and digital inputs

29 24VDC

Encoder supply 24 V DC

30 M

Ground for encoder supplies and digital inputs

31 DI1.0

Digital input DI0

32 DI1.1

Digital input DI1

33 --

--

34 --

--

35 DQ1.0

Digital output DQ0

36 DQ1.1

Digital output DQ1

37 --

--

38 M

Digital output ground

39 - --

--

40

Note Potential jumpers may not be inserted in the front connector.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

30

Manual, 06/2018, A5E03982218-AB

Wiring 3.3 TTL encoder signals

Block diagram

You must ground the shields of the cables between encoder and technology module both through the shield support at the front connector (shield bracket and terminal) and at the encoder.
The figure below shows the block diagram of the technology module with one connected TTL incremental encoder.



Electrical isolation



Encoder supply, optionally 5 V DC or 24 V DC, according to the specification of the encoder manufacturer



Technology and backplane bus interface



Shield support at the front connector



Input filter



Supply voltage via power supply element



Equipotential bonding



RS422 incremental encoder

Figure 3-4 Block diagram with TTL incremental encoder

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

31

Configuring/address space

4

4.1

Operating with "Counting and measurement" technology object

4.1.1

Configuring

Introduction

You configure the technology module and assign its parameters with STEP 7 (TIA Portal). The technology object is used to control and monitor the functions of the technology module.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM PosInput 2

Distributed operation · with an S7-1500 CPU ·

S7-1500 automation system
ET 200MP distributed I/O system

· TM PosInput 2

Configuration software STEP 7 (TIA Portal):
· Device configuration with hardware configuration
· Parameter setting with "Counting and measurement" technology object

In the user program
For incremental/pulse encoder:
High_Speed_Counter instruction
For SSI absolute encoder:
SSI_Absolute_Encoder instruction

Additional information
You can find a detailed description of the counting and measurement functions and their configuration in the following:  Function manual Counting, Measurement and Position Detection available for download
on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)  Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting,
measurement and position input > Counting, measurement and position input (S7-1500)"
Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256. You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852). You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

32

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.2

Reaction to CPU STOP

Reaction to CPU STOP
You set the reaction of the technology module to a STOP of the CPU on a channel-bychannel basis in the basic parameters of the device configuration.

Table 4- 1 Reaction of technology module to CPU STOP

Option Continue operation Output substitute value
Keep last value

Meaning
The technology module remains fully functional. Incoming count pulses are processed or the position value is read in. The digital outputs continue to switch according to the parameter assignment.
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition.
If a digital output with the "At comparison value for a pulse duration" function is set at CPU STOP, the digital output is reset after the pulse duration elapses.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

33

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.3

Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 93).
You set the parameters of the module as follows in this operating mode:
1. Insert the module from the hardware catalog under "Technology modules".
2. Set the device configuration in the hardware configuration. "Operating with "Counting and measurement" technology object" must be set as the operating mode.
3. Insert the High_Speed_Counter or SSI_Absolute_Encoder technology object from the project tree in folder "Technology objects > Add new object > Counting and measurement". You can find information on configuring with a technology object in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820).
4. Open the configuration of the respective technology object, e.g. using the Configuration button in the respective instruction for the technology object.
5. Set the parameters of the technology object.
6. Download the project to the CPU.
Note
The "Operating with "Counting and measurement" technology object" and "Manual operation (without technology object)" operating modes apply to one channel in each case. As a result, you can also use a module with both operating modes.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

34

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.3.1

Parameters (SSI absolute encoder)

Parameters of the TM PosInput 2 with SSI absolute encoder
The following parameter settings are possible in the hardware configuration:

Table 4- 2 Settable parameters and their default setting (SSI absolute encoder)

Parameter

Value range

Default setting

Reaction to CPU STOP
Enable diagnostic interrupt on wire break
Enable additional diagnostic interrupts
Hardware interrupt: New Capture value available
Hardware interrupt: Direction reversal
Hardware interrupt: Zero crossing
Hardware interrupt: Comparison event for DQ0 occurred Hardware interrupt: Comparison event for DQ1 occurred

· Output substitute value · Keep last value · Continue operation · Deactivated · Activated
· Deactivated · Activated · Deactivated · Activated · Deactivated · Activated · Deactivated · Activated · Deactivated · Activated
· Deactivated · Activated

Output substitute value
Deactivated Deactivated Deactivated Deactivated Deactivated Deactivated Deactivated

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

35

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

The following parameter settings are possible in the technology object:

Table 4- 3 Settable parameters and their default setting (SSI absolute encoder)

Parameter

Value range

Default setting

Frame length Code type Transmission rate
Monoflop time
Parity
Bit number LSB of the position value Bit number MSB of the position value Invert direction (counter inputs) Set function of DI

10 bits...40 bits · Gray · Dual
· 125 kHz · 250 kHz · 500 kHz · 1 MHz · 1.5 MHz · 2 MHz
· Automatically · 16 µs · 32 µs · 48 µs · 64 µs
· None · Even · Odd 0...38
1...39
· Deactivated · Activated
· Capture · Digital input without function

Input delay for digital inputs · None · 0.05 ms · 0.1 ms · 0.4 ms · 0.8 ms · 1.6 ms · 3.2 ms · 12.8 ms · 20 ms

13 bits Gray 125 kHz
Automatically
None
0 12 Deactivated DI0, DI1: Digital input without function 0.1 ms

Parameter reassignment in
RUN Yes
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

36

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter

Value range

Edge selection for DI

· At rising edge

Default setting At rising edge

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

· At falling edge · At rising and falling edge

Frequency of Capture func- · Once tion
· Periodic

Once

Yes

Channel

Comparison value 0 Comparison value 1 Operating mode

-2147483648...2147483647

0

Yes

-2147483648...2147483647

10

Yes

· Use position value (SSI abso- Use position value No

lute value) as reference

(SSI absolute value) as reference

· Use measured value as refer-

ence

Channel Channel Channel

Set output

· Use by user program
· Between comparison value and high limit / measured value >= comparison value

DQ0, DQ1:

Yes

Between comparison value and high limit

Channel

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

Count direction of DQ func- · Up tion
· Down · In both directions

In both directions

Yes

Channel

Pulse duration [ms/10] Substitute value for DQ0

0...65535 · 0

5000 (corresponds to Yes 0.5 s)

0

Yes

Channel Channel

· 1

Substitute value for DQ1 · 0

0

Yes

Channel

· 1

Hysteresis (in increments) 0...255

0

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

37

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter

Value range

Measured variable
Update time [ms] of measuring function Time base for velocity measurement
Increments per unit

· Frequency · Period · Velocity · Complete SSI frame 0...25000
· 1 ms · 10 ms · 100 ms · 1s · 60 s 1...65535

Default setting Frequency

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

10

Yes

Channel

60 s

Yes

Channel

1

Yes

Channel

NOTICE
Too high an encoder speed can supply the wrong rotation direction
If an SSI absolute encoder rotates so fast that more than half the value range is covered within one module cycle1, the velocity and rotation direction are no longer calculated correctly. As a result, the following may function incorrectly: · DQ functions · Feedback bits EVENT_OFLW, EVENT_UFLW, EVENT_ZERO, EVENT_CMP0,
EVENT_CMP1 and STS_DIR
1 Non-isochronous mode: 500 s; isochronous mode: PROFINET cycle time
Note
If you use an SSI absolute encoder whose value range does not correspond to a power of 2, the calculated velocity measurement can be incorrect at the moment of the overflow.

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection in sections Basic parameters and Configuring the SSI_Absolute_Encoder available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

38

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.3.2

Parameters (incremental or pulse encoder)

Parameters of the TM PosInput 2 with incremental or pulse encoder
The following parameter settings are possible in the hardware configuration:

Table 4- 4 Settable parameters and their default setting (incremental or pulse encoder)

Parameter

Value range

Reaction to CPU STOP

· Output substitute value · Keep last value

· Continue operation

Enable diagnostic interrupt · Deactivated

on wire break

· Activated

Enable additional diagnos- · Deactivated

tic interrupts

· Activated

Hardware interrupt: New Capture value available

· Deactivated · Activated

Hardware interrupt: Synchronization of the counter by an external signal
Hardware interrupt: Gate start

· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Gate stop

· Deactivated · Activated

Hardware interrupt: Overflow (high counting limit violated)
Hardware interrupt:Underflow (low counting limit violated)
Hardware interrupt: Direction reversal

· Deactivated · Activated
· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Zero crossing

· Deactivated · Activated

Hardware interrupt: Comparison event for DQ0 occurred
Hardware interrupt: Comparison event for DQ1 occurred

· Deactivated · Activated
· Deactivated · Activated

Default setting
Output substitute value

Parameter reassignment in
RUN
Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

39

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

The following parameter settings are possible in the technology object:

Table 4- 5 Settable parameters and their default setting (incremental or pulse encoder)

Parameter

Value range

Default setting

Signal type
Signal evaluation for counter inputs Invert direction (counter inputs) Filter frequency for counter inputs
Interface standard Reaction to signal N
Frequency of synchronization Frequency of Capture function Counting high limit Start value Counting low limit

· Pulse (A) · Pulse (A) and direction (B) · Count up (A), count down (B) · Incremental encoder (A, B phase-
shifted) · Incremental encoder (A, B, N)
· Single · Double · Quadruple
· Deactivated · Activated
· 100 Hz · 200 Hz · 500 Hz · 1 kHz · 2 kHz · 5 kHz · 10 kHz · 20 kHz · 50 kHz · 100 kHz · 200 kHz · 500 kHz · 1 MHz
· RS422, symmetrical · TTL (5 V), asymmetrical
· No reaction to signal N · Synchronization at signal N · Capture at signal N
· Once · Periodic
· Once · Periodic -2147483648...2147483647 -2147483648...2147483647 -2147483648...2147483647

Pulse (A) and direction (B)
Single Deactivated 200 kHz
RS422, symmetrical No reaction to signal N Once Once 2147483647 0 -2147483648

Parameter reassignment in
RUN Yes

Scope HSP for STEP 7
(TIA Portal)
Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

40

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter

Value range

Reaction to violation of a counting limit

· Stop counting · Continue counting

Reset when counting limit is violated

· To opposite counting limit · To start value

Reaction to gate start

· Set to start value

· Continue with current value

Set function of DI

· Gate start/stop (level-triggered)

· Gate start (edge-triggered)

· Gate stop (edge-triggered)

· Synchronization

· Enable synchronization at signal N

· Capture

· Digital input without function

Input delay for digital inputs · None

· 0.05 ms

· 0.1 ms

· 0.4 ms

· 0.8 ms

· 1.6 ms

· 3.2 ms

· 12.8 ms

· 20 ms

Edge selection for DI

· At rising edge

· At falling edge

· At rising and falling edge

Select level for DI

· Active with high level

· Active with low level

Behavior of counter value after Capture with DI

· Continue counting · Set to start value and continue
counting

Comparison value 0

-2147483648...2147483647

Comparison value 1 Operating mode

-2147483648...2147483647 · Use count value as reference

· Use measured value as reference

Default setting Continue counting

Parameter reassignment in
RUN Yes

To opposite

Yes

counting limit

Continue with

Yes

current value

· DI0: Gate

Yes

start/stop (level-

triggered)

· DI1: Digital input without function

0.1 ms

Yes

At rising edge

Yes

Active with high Yes level
Continue counting Yes

0

Yes

10

Yes

Use count value No as reference

Scope HSP for STEP 7
(TIA Portal) Channel Channel Channel Channel
Channel
Channel Channel Channel Channel Channel Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

41

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

Parameter
Set output
Count direction of DQ function Pulse duration [ms/10] Substitute value for DQ0 Substitute value for DQ1 Hysteresis (in increments) Measured variable Update time [ms] of measuring function Time base for velocity measurement
Increments per unit

Value range

Default setting

· Use by user program
· Between comparison value and high limit / measured value >= comparison value

DQ0, DQ1:
Between comparison value and high limit

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

· Up

In both directions

· Down

· In both directions

0...65535 · 0

5000 (corresponds to 0.5 s)
0

· 1

· 0

0

· 1

0...255

0

· Frequency

Frequency

· Period

· Velocity

0...25000

10

· 1 ms

60 s

· 10 ms

· 100 ms

· 1s

· 60 s

1...65535

1

Parameter reassignment in
RUN Yes
Yes Yes Yes Yes Yes Yes Yes Yes
Yes

Scope HSP for STEP 7
(TIA Portal) Channel
Channel Channel Channel Channel Channel Channel Channel Channel
Channel

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection in sections Basic parameters and Configuring the High_Speed_Counter available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

42

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.1 Operating with "Counting and measurement" technology object

4.1.4

Address space

Address space of the technology module

Table 4- 6 Size of input and output addresses of the TM PosInput 2 when operating with "Counting and measurement" technology object

Size per channel Total size

Inputs 16 bytes 32 bytes

Outputs 12 bytes 24 bytes

4.1.5

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables position, counter and measured values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. The output signals switch immediately if the relevant comparison condition is met. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "Synchronous Cycle" (e.g. OB61) in this operating mode. The High_Speed_Counter or SSI_Absolute_Encoder instruction is called in the assigned OB.
The update time for the measured value is synchronized with the system cycle in a suitable ratio and, if necessary, adapted in length. If you set "0", the measured value is updated once per system cycle.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the position or counter value and the measured value as well as status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

43

Configuring/address space 4.1 Operating with "Counting and measurement" technology object
Isochronous mode parameters
In isochronous mode, the following parameter can affect the isochronous mode parameters of the sync domain.  Filter frequency  Frame length  Transmission rate  Monoflop time  Parity Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change one or more of the indicated parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.
Additional information
You can find a detailed description of isochronous mode in the following:  Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for
download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)  Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

44

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

4.2

Position input for ""Motion Control"" technology object

4.2.1

Configuring

Introduction

You configure the technology module and assign its parameters with STEP 7 (TIA Portal). The technology object is used to control and monitor the functions of the technology module.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM PosInput 2

Distributed operation · with an S7-1500 CPU ·

S7-1500 automation system
ET 200MP distributed I/O system

· TM PosInput 2

Configuration software STEP 7 (TIA Portal):
· Device configuration with hardware configuration
· Parameter setting with axis and measuring input technology objects

In the user program Motion Control instructions

Additional information
You can find a detailed description of the use of Motion Control and its configuration in the following:  Function manual S7-1500 Motion Control available for download on the Internet
(https://support.industry.siemens.com/cs/ww/en/view/59381279)
 Function manual S7-1500T Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109481326)
 Information system of STEP 7 (TIA Portal) under "Using technology functions > Motion Control > Motion Control (S7-1200, S7-1500)"
You can find a description of configuring the technology module for position detection in the following:  Function manual Counting, Measurement and Position Detection available for download
on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)
 Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"
Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256. You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852). You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

45

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

4.2.2

Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available.
You set the parameters of the module as follows in this operating mode:
1. Insert the module from the hardware catalog under "Technology modules".
2. Set the device configuration and the parameters of the module in the hardware configuration. "Position input for "Motion Control" technology object" must be set as the operating mode.
3. Insert an axis technology object and, if necessary, the measuring input technology object from the project tree in folder "Technology objects > Add new object > Motion Control" . You can find information on configuring with axis technology objects in function manual S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326).
4. Open the configuration of the axis technology object, e.g. using the Configuration button in the respective instruction for the technology object.
5. Set the parameters of the technology objects.
6. Download the project to the CPU.
Note
This operating mode applies automatically to both channels of the technology module.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

46

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

4.2.2.1

Parameters (SSI absolute encoder)

Parameters of the TM PosInput 2 with SSI absolute encoder
The following parameter settings are possible:

Table 4- 7 Settable parameters and their default setting (SSI absolute encoder)

Parameter

Value range

Default setting

Invert direction (counter inputs)

· Deactivated · Activated

Frame length Code type

10 bits...40 bits · Gray · Dual

Transmission rate

· 125 kHz · 250 kHz · 500 kHz · 1 MHz · 1.5 MHz · 2 MHz

Monoflop time

· Automatically · 16 µs · 32 µs · 48 µs · 64 µs

Parity

· None · Even · Odd

Bit number LSB of the position value
Bit number MSB of the position value
Measuring input
Steps per revolution Number of revolutions1 (read-only)
Reference speed

0...38
1...39
DI1 1...65535 --
6.00...210000.00 U/min

Deactivated 13 bits Gray 125 kHz
Automatically
None
0 12 DI1 1 -- 3000.00 U/min

Scope HSP for STEP 7
(TIA Portal) Channel Channel Channel Channel
Channel
Channel
Channel Channel Channel Channel Channel Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

47

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

Parameter

Value range

Enable diagnostic interrupt on wire break
Enable additional diagnostic interrupts

· Deactivated · Activated
· Deactivated · Activated

1 STEP 7 (TIA Portal) V15.1 or higher

Default setting Deactivated Deactivated

Scope HSP for STEP 7
(TIA Portal) Channel
Channel

NOTICE Too high an encoder speed can falsify a position value The function of an axis technology object is based on the assumption that an SSI absolute encoder never changes by more than half the value range within one module cycle1. Ensure that this condition is always met when configuring your system. 1 Non-isochronous mode: 500 s; isochronous mode: PROFINET cycle time

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, section Module parameters (position input for Motion Control) available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

48

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

4.2.2.2

Parameters (incremental or pulse encoder)

Parameters of the TM PosInput 2 with incremental or pulse encoder
The following parameter settings are possible:

Table 4- 8 Settable parameters and their default setting (incremental or pulse encoder)

Parameter

Value range

Signal type
Invert direction (counter inputs) Signal evaluation for counter inputs Filter frequency for counter inputs
Interface standard Signal selection for reference mark 0 Measuring input Increments per revolution / steps per revolution

· Pulse (A) · Pulse (A) and direction (B) · Count up (A), count down (B) · Incremental encoder (A, B phase-
shifted) · Incremental encoder (A, B, N)
· Deactivated · Activated
· Single · Double · Quadruple
· 100 Hz · 200 Hz · 500 Hz · 1 kHz · 2 kHz · 5 kHz · 10 kHz · 20 kHz · 50 kHz · 100 kHz · 200 kHz · 500 kHz · 1 MHz
· RS422, symmetrical · TTL (5 V), asymmetrical
· DI0 · Signal N of incremental encoder DI1 1...65535

Default setting
Pulse (A) and direction (B)

Scope
HSP for STEP 7 (TIA Portal)
Channel

Deactivated Single 200 kHz

Channel Channel Channel

RS422, symmetrical Channel

DI0

Channel

DI1

Channel

1

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

49

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

Parameter

Value range

Reference speed Enable diagnostic interrupt on wire break
Enable additional diagnostic interrupts

6.00...210000.00 U/min · Deactivated · Activated
· Deactivated · Activated

1 STEP 7 (TIA Portal) V15.1 or higher

Default setting
3000.00 U/min Deactivated

Scope
HSP for STEP 7 (TIA Portal)
Channel Channel

Deactivated

Channel

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, section Module parameters (position input for Motion Control) available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

4.2.3

Address space

Address space of the technology module

Table 4- 9 Size of input and output addresses of the TM PosInput 2 with position input for "Motion Control" technology object

Size per channel Total size

Inputs 16 bytes 32 bytes

Outputs 4 bytes 8 bytes

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

50

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.2 Position input for ""Motion Control"" technology object

4.2.4

Isochronous mode
The technology module supports the "Isochronous mode" system function. Position and counter values can be acquired in a fixed system cycle with this system function.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "MC-Servo" in this operating mode. Isochronous mode is needed when using the output cam and cam track technology objects. When the measuring input technology is used in combination with hardware digital input DI1, isochronous mode is not needed.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the position or counter value as well as status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.
Isochronous mode parameters
In isochronous mode, the following parameter can affect the isochronous mode parameters of the sync domain.  Filter frequency  Frame length  Transmission rate  Monoflop time  Parity Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change one or more of the indicated parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.

Additional information
You can find a detailed description of isochronous mode in the following:
 Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)
 Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

51

Configuring/address space 4.3 Manual operation (without technology object)

4.3

Manual operation (without technology object)

4.3.1

Configuring

Introduction

You configure the technology module and assign its parameters with the configuration software.
The functions of the technology module are controlled and checked by the user program via the control and feedback interface.

System environment
The technology module can be used in the following system environments:

Applications

Components required

Central operation

· S7-1500 automation system

with an S7-1500 CPU · TM PosInput 2

Configuration software STEP 7 (TIA Portal):
· Device configuration and parameter setting with hardware configuration

In the user program
Direct access to control and feedback interface in the I/O data

Distributed operation · with an S7-1500 CPU ·
·

S7-1500 automation system ET 200MP distributed I/O system TM PosInput 2

STEP 7 (TIA Portal):
· Device configuration and parameter setting with hardware configuration

Distributed operation · S7-300/400 or S7-1200 auto-

with an S7-300/400

mation system

CPU

· ET 200MP distributed I/O

system

· TM PosInput 2

Distributed operation · with an S7-1200 CPU
·

S7-300/400 or S7-1200 automation system
ET 200MP distributed I/O system

STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration
STEP 7:
Device configuration and parameter setting with GSD file
STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration

· TM PosInput 2

Distributed operation · Third-party automation system Third-party configuration soft-

in a third-party system

· ET 200MP distributed I/O system

ware:
Device configuration and parameter setting with GSD file

· TM PosInput 2

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

52

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Additional information
You can find a detailed description of the counting and measurement functions and their configuration in the following:
 Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820)
 Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"

Hardware Support Packages (HSP)
If firmware version V1.3 of the module is not yet integrated in your TIA Portal Version V15, you can integrate a corresponding module using HSP0256.
You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852).
You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options > Support packages > Download from the Internet".

GSD file

You can find the respective GSD file for the ET 200MP distributed I/O system for download on the Internet:
 GSD file for PROFINET IO (http://support.automation.siemens.com/WW/view/en/68189683)
 GSD file for PROFIBUS DP (http://support.automation.siemens.com/WW/view/en/80206700)

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

53

Configuring/address space 4.3 Manual operation (without technology object)

4.3.2

Reaction to CPU STOP

Reaction to CPU STOP
You set the reaction of the technology module to a STOP of the CPU on a channel-bychannel basis in the basic parameters of the device configuration.

Table 4- 10 Reaction of technology module to CPU STOP

Option Continue operation Output substitute value
Keep last value

Meaning
The technology module remains fully functional. Incoming count pulses are processed or the position value is read in. The digital outputs continue to switch according to the parameter assignment.
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition.
If a digital output with the "At comparison value for a pulse duration" function is set at CPU STOP, the digital output is reset after the pulse duration elapses.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

54

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

4.3.3

Parameter setting
You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 93).
You set the parameters of the module as follows in this operating mode:

Parameter setting using... Hardware configuration in STEP 7 (TIA Portal)
Hardware configuration with GSD file for distributed operation on PROFINET IO
Hardware configuration with GSD file for distributed operation on PROFIBUS DP

Basic procedure
1. Insert the module from the hardware catalog under "Technology modules".
2. Set the device configuration and the parameters of the module in the hardware configuration. "Manual operation (without technology object)" must be set as the operating mode.
3. Download the project to the CPU.
1. Install the current PROFINET GSD file. You will then find the module in the hardware catalog under "Other field devices > PROFINET IO > I/O".
2. Set the parameters in the hardware configuration. You can find information on the respective dependencies of the parameters in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820).
3. Download the project to the CPU.
1. Install the current PROFIBUS GSD file. You will then find the module in the hardware catalog under "Other field devices > PROFIBUS DP > I/O".
2. Set the parameters in the hardware configuration. You can find information on the respective dependencies of the parameters in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820). The parameters marked with 1 in the following tables are not configurable in the PROFIBUS GSD file.
3. Download the project to the CPU. The parameters marked with 1 in the following tables are downloaded with their default setting.
4. If necessary, set the parameters marked with 1 in the user program using data record 128.

Note
The "Operating with "Counting and measurement" technology object" and "Manual operation (without technology object)" operating modes apply to one channel in each case. As a result, you can also use a module with both operating modes.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

55

Configuring/address space 4.3 Manual operation (without technology object)

4.3.3.1

Parameters (SSI absolute encoder)

Parameters of the TM PosInput 2 with SSI absolute encoder
The following parameter settings are possible:

Table 4- 11 Settable parameters and their default setting (SSI absolute encoder)

Parameter

Value range

Default setting

Operating mode3

· Position input · Measuring

Reaction to CPU STOP1

· Output substitute value · Keep last value · Continue operation

Substitute value for DQ01

· 0 · 1

Substitute value for DQ11

· 0 · 1

Enable diagnostic interrupt · Deactivated

on wire break2

· Activated

Enable additional diagnostic · Deactivated

interrupts

· Activated

Hardware interrupt: New Capture value available1

· Deactivated · Activated

Hardware interrupt: Direction reversal1

· Deactivated · Activated

Hardware interrupt: Zero crossing1

· Deactivated · Activated

Hardware interrupt: Comparison event for DQ0 occurred1
Hardware interrupt: Comparison event for DQ1 occurred1
Invert direction1 (counter inputs)

· Deactivated · Activated
· Deactivated · Activated
· Deactivated · Activated

Frame length Code type

10 bits...40 bits · Gray · Dual

Counting Output substitute value
0 0 Deactivated Deactivated Deactivated Deactivated Deactivated Deactivated Deactivated Deactivated 13 bits Gray

Parameter reassignment in
RUN
No

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

56

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Transmission rate

· 125 kHz · 250 kHz · 500 kHz · 1 MHz · 1.5 MHz · 2 MHz

Monoflop time1

· Automatically · 16 µs · 32 µs · 48 µs · 64 µs

Parity

· None · Even · Odd

Bit number LSB of the position value
Bit number MSB of the position value
Set function of DI

0...38 1...39
· Capture · Digital input without function

Input delay for digital inputs1

· None · 0.05 ms · 0.1 ms · 0.4 ms · 0.8 ms · 1.6 ms · 3.2 ms · 12.8 ms · 20 ms

Edge selection for DI1

· At rising edge · At falling edge · At rising and falling edge

Frequency of Capture func- · Once

tion1

· Periodic

Default setting 125 kHz

Parameter reassignment in
RUN
Yes

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

Automatically

Yes

Channel

None

Yes

Channel

0

Yes

12

Yes

DI0, DI1: Digital

Yes

input without func-

tion

0.1 ms

Yes

Channel Channel Channel
Channel

At rising edge

Yes

Channel

Once

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

57

Configuring/address space 4.3 Manual operation (without technology object)

Parameter Set output
Comparison value 01 Comparison value 11 Count direction of DQ function1 Pulse duration [ms/10]1 Hysteresis (in increments)1 Measured variable
Update time [ms] of the measuring function1

Value range

Default setting

· Use by user program

DQ0, DQ1:

· Between comparison value

Between compari-

and high limit / measured value son value and high

>= comparison value

limit

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

-2147483648...2147483647 -2147483648...2147483647 · Up

0 10 In both directions

· Down

· In both directions

0...65535
0...255 · Frequency

5000 (corresponds to 0.5 s)
0
Frequency

· Period · Velocity

· Complete SSI frame

0...25000

10

Parameter reassignment in
RUN Yes
Yes Yes Yes
Yes Yes Yes
Yes

Scope HSP for STEP 7
(TIA Portal); GSD file
Channel
Channel Channel Channel
Channel Channel Channel
Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

58

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Time base for velocity measurement1
Increments per unit1

· 1 ms · 10 ms · 100 ms · 1s · 60 s 1...65535

Default setting 60 s

Parameter reassignment in
RUN
Yes

Scope
HSP for STEP 7 (TIA Portal); GSD file
Channel

1

Yes

Channel

1 Because the number of parameters is limited to a maximum of 244 bytes per station in the PROFIBUS GSD configuration, the possible parameter assignments are limited. The parameters are preassigned default settings in the module. If your PROFIBUS master supports the "Write/read data record" function, you can set these parameters using data record 128.
2 When a GSD file is used, this diagnostic interrupt is enabled with the "Enable additional diagnostic interrupts" parameter and is then not separately configurable.
3 When configuring with a GSD file, you determine the operating mode when you select the module name.

NOTICE Too high an encoder speed can supply the wrong rotation direction If an SSI absolute encoder rotates so fast that more than half the value range is covered within one module cycle1, the velocity and rotation direction are no longer calculated correctly. As a result, the following may function incorrectly: · DQ functions · Feedback bits EVENT_OFLW, EVENT_UFLW, EVENT_ZERO, EVENT_CMP0,
EVENT_CMP1 and STS_DIR
1 Non-isochronous mode: 500 s; isochronous mode: PROFINET cycle time
Note If you use an SSI absolute encoder whose value range does not correspond to a power of 2, the calculated velocity measurement can be incorrect at the moment of the overflow.

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, sections Basic parameters and Manual operation available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

59

Configuring/address space 4.3 Manual operation (without technology object)

4.3.3.2

Parameters (incremental or pulse encoder)

Parameters of the TM PosInput 2 with incremental or pulse encoder
The following parameter settings are possible:

Table 4- 12 Settable parameters and their default setting (incremental or pulse encoder)

Parameter

Value range

Operating mode3

· Counting · Measuring

Reaction to CPU STOP1

· Output substitute value · Keep last value · Continue operation

Substitute value for DQ01

· 0 · 1

Substitute value for DQ11

· 0 · 1

Enable diagnostic interrupt · Deactivated

on wire break2

· Activated

Enable additional diagnostic · Deactivated

interrupts

· Activated

Hardware interrupt: New Capture value available1

· Deactivated · Activated

Hardware interrupt: Synchronization of the counter by an external signal1
Hardware interrupt: Gate start1

· Deactivated · Activated
· Deactivated · Activated

Hardware interrupt: Gate stop1

· Deactivated · Activated

Hardware interrupt: Overflow (high counting limit violated)1
Hardware interrupt:Underflow (low counting limit violated)1
Hardware interrupt: Direction reversal1

· Deactivated · Activated
· Deactivated · Activated
· Deactivated · Activated

Default setting Counting

Parameter reassignment in RUN

Scope
HSP for STEP 7 (TIA Portal); GSD file

No

Channel

Output substitute Yes value

Channel

0

Yes

0

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel Channel Channel Channel

Deactivated

Yes

Deactivated

Yes

Deactivated

Yes

Channel Channel Channel

Deactivated

Yes

Channel

Deactivated

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

60

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter
Hardware interrupt: Zero crossing1 Hardware interrupt: Comparison event for DQ0 occurred1 Hardware interrupt: Comparison event for DQ1 occurred1 Signal type
Signal evaluation for counter inputs Filter frequency for counter inputs1
Invert direction1 (counter inputs) Reaction to signal N1
Frequency of synchronization1

Value range
· Deactivated · Activated · Deactivated · Activated

Default setting Deactivated

Parameter reassignment in RUN

Scope
HSP for STEP 7 (TIA Portal); GSD file

Yes

Channel

Deactivated

Yes

Channel

· Deactivated · Activated

Deactivated

Yes

Channel

· Pulse (A) · Pulse (A) and direction (B) · Count up (A), count down (B) · Incremental encoder (A, B
phase-shifted) · Incremental encoder (A, B, N)
· Single · Double · Quadruple
· 100 Hz · 200 Hz · 500 Hz · 1 kHz · 2 kHz · 5 kHz · 10 kHz · 20 kHz · 50 kHz · 100 kHz · 200 kHz · 500 kHz · 1 MHz
· Deactivated · Activated
· No reaction to signal N · Synchronization at signal N · Capture at signal N
· Once · Periodic

Pulse (A) and direc- Yes tion (B)

Single

Yes

200 kHz

Yes

Deactivated

Yes

No reaction to sig- Yes nal N

Once

Yes

Channel Channel Channel
Channel Channel Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

61

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Frequency of Capture func- · Once

tion1

· Periodic

Default setting Once

Parameter reassignment in RUN

Scope
HSP for STEP 7 (TIA Portal); GSD file

Yes

Channel

Interface standard

· RS422, symmetrical · TTL (5 V), asymmetrical

RS422, symmetrical Yes

Channel

Counting high limit1 Start value1 Counting low limit1 Reaction to violation of a counting limit

-2147483648...2147483647 -2147483648...2147483647 -2147483648...2147483647 · Stop counting · Continue counting

2147483647

Yes

0

Yes

-2147483648

Yes

Continue counting Yes

Channel Channel Channel Channel

Reset when counting limit is · To opposite counting limit

violated

· To start value

To opposite count- Yes ing limit

Channel

Reaction to gate start

· Set to start value · Continue with current value

Continue with cur- Yes rent value

Channel

Set function of DI

· Gate start/stop (level-triggered) · DI0: Gate

Yes

· Gate start (edge-triggered) · Gate stop (edge-triggered) · Synchronization · Enable synchronization at

start/stop (leveltriggered)
· DI1: Digital input without function

signal N

· Capture

· Digital input without function

Channel

Select level for DI1

· Active with high level · Active with low level

Active with high

Yes

level

Channel

Edge selection for DI1

· At rising edge

At rising edge

Yes

· At falling edge

· At rising and falling edge

Channel

Behavior of counter value · Continue counting

Continue counting Yes

after Capture with DI 1

· Set to start value and continue

counting

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

62

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Parameter Input delay for digital inputs1
Set output
Comparison value 01 Comparison value 11 Count direction of DQ function1 Pulse duration [ms/10]1 Hysteresis (in increments)1 Measured variable Update time [ms] of the measuring function1

Value range

Default setting

· None

0.1 ms

· 0.05 ms

· 0.1 ms

· 0.4 ms

· 0.8 ms

· 1.6 ms

· 3.2 ms

· 12.8 ms

· 20 ms

· Use by user program

DQ0, DQ1:

· Between comparison value

Between compari-

and high limit / measured value son value and high

>= comparison value

limit

· Between comparison value and low limit / measured value <= comparison value

· At comparison value for a pulse duration

· After set command from CPU until comparison value

· Between comparison value 0 and 1

· Not between comparison value 0 and 1

-2147483648...2147483647 -2147483648...2147483647 · Up

0 10 In both directions

· Down

· In both directions

0...65535
0...255 · Frequency

5000 (corresponds to 0.5 s)
0
Frequency

· Period

· Velocity

0...25000

10

Parameter reassignment in RUN

Scope
HSP for STEP 7 (TIA Portal); GSD file

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

63

Configuring/address space 4.3 Manual operation (without technology object)

Parameter

Value range

Time base for velocity measurement1
Increments per unit1

· 1 ms · 10 ms · 100 ms · 1s · 60 s 1...65535

Default setting 60 s

Parameter reassignment in RUN

Scope
HSP for STEP 7 (TIA Portal); GSD file

Yes

Channel

1

Yes

Channel

1 Because the number of parameters is limited to a maximum of 244 bytes per station in the PROFIBUS GSD configuration, the possible parameter assignments are limited. The parameters are preassigned default settings in the module. If your PROFIBUS master supports the "Write/read data record" function, you can set these parameters using data record 128.
2 When a GSD file is used, this diagnostic interrupt is enabled with the "Enable additional diagnostic interrupts" parameter and is then not separately configurable.
3 When configuring with a GSD file, you determine the operating mode when you select the module name.

Explanation of parameters
You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, sections Basic parameters and Manual operation available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820).

4.3.4

Address space

Address space of the technology module

Table 4- 13 Size of input and output addresses of the TM PosInput 2 with manual operation

Size per channel Total size

Inputs 16 bytes 32 bytes

Outputs 12 bytes 24 bytes

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

64

Manual, 06/2018, A5E03982218-AB

4.3.5

Configuring/address space 4.3 Manual operation (without technology object)
Control and feedback interface
Note The control and feedback interface is compatible with the control and feedback interface of the TM PosInput 1, TM Count 2x24V and TM Count 1x24V technology modules of the S7-1500 automation system.

4.3.5.1

Assignment of the control interface
The user program uses the control interface to influence the behavior of the technology module.

Control interface per channel
The following table shows the assignment of the control interface:

Byte offset from start address Channel
0/1  
0 12 ... ... 3 15

Bit 7

4 16 ... ... 7 19

8 20

9 21

EN_

CAPTURE

10 22 SET_DIR

11 23

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

SLOT_0:

DINT or REAL: Load value (meaning of the value is specified in LD_SLOT_0)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

SLOT_1:

DINT or REAL: Load value (meaning of the value is specified in LD_SLOT_1)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

LD_SLOT_1

LD_SLOT_0

EN_

EN_

SET_DQ1 SET_DQ0

TM_

TM_

SYNC_DN SYNC_UP

CTRL_DQ1 CTRL_DQ0

Reserved

RES_ EVENT

Reserved

SW_GATE
RES_ ERROR

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

65

Configuring/address space 4.3 Manual operation (without technology object)

Explanations
Control bit/value EN_CAPTURE EN_SYNC_DN EN_SYNC_UP LD_SLOT_m
RES_EVENT Reserved RES_ERROR SET_DIR SET_DQ0 SET_DQ1

Explanations Use this bit to enable the Capture function. Resetting this bit resets a set EVENT_CAP in the feedback interface. Use this bit to enable the synchronization of the counter when counting in downward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. Use this bit to enable the synchronization of the counter when counting in upward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. Use this load request to specify the meaning of the value in SLOT_m:
· 0000 means: No action, idle
· 0001 means: Load counter value (for incremental or pulse encoder)
· 0010 not permitted
· 0011 means: Load start value (for incremental or pulse encoder)
· 0100 means: Load comparison value 0
· 0101 means: Load comparison value 1
· 0110 means: Load counting low limit (for incremental or pulse encoder)
· 0111 means: Load counting high limit (for incremental or pulse encoder)
· 1000 to 1111 not permitted The technology module executes the respective action as soon as LD_SLOT_m changes. If values are loaded simultaneously using LD_SLOT_0 and LD_SLOT_1, the value from SLOT_0 is internally applied first and then the value from SLOT_1 . This can produce unexpected intermediate states. Use this bit to trigger the reset of the saved events in the EVENT_ZERO, EVENT_OFLW, EVENT_UFLW, EVENT_CMP0, EVENT_CMP1 feedback bits. Reserve bits must be set to 0. Use this bit to trigger the reset of the saved error states LD_ERROR and ENC_ERROR . Use this bit to specify the count direction for signal type "Pulse (A)".
· 0 means: Up
· 1 means: Down
Use this bit to set digital output DQ0 when TM_CTRL_DQ0 is set to 0. In the case of the function "After set command from CPU until comparison value", SET_DQ0 is effective regardless of TM_CTRL_DQ0 as long as the counter value is not equal to the comparison value. Use this bit to set digital output DQ1 when TM_CTRL_DQ1 is set to 0. In the case of the function "After set command from CPU until comparison value", SET_DQ1 is effective regardless of TM_CTRL_DQ1 as long as the counter value is not equal to the comparison value.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

66

Manual, 06/2018, A5E03982218-AB

Control bit/value SW_GATE
TM_CTRL_DQ0 TM_CTRL_DQ1

Configuring/address space 4.3 Manual operation (without technology object)
Explanations Use this bit to open and close the software gate when using an incremental encoder or pulse encoder. Together, the software gate and the hardware gate form the internal gate. The technology module only counts when the internal gate is open. · 0 means: Software gate closed · 1 means: Software gate open The digital inputs of the technology module externally control the hardware gate. The hardware gate can be activated by parameter assignment. The software gate cannot be deactivated. Use this bit to enable the technological function of digital output DQ0. · 0 means: SET_DQ0 defines the state of DQ0 · 1 means: assigned function defines the state of DQ0 Use this bit to enable the technological function of digital output DQ1. · 0 means: SET_DQ1 defines the state of DQ1 · 1 means: assigned function defines the state of DQ1

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

67

Configuring/address space 4.3 Manual operation (without technology object)

4.3.5.2

Assignment of the feedback interface
The user program receives current values and status information from the technology module by means of the feedback interface.

Feedback interface per channel
The following table shows the assignment of the feedback interface:

Byte offset from start address Channel
0/1   0 16 ... ... 3 19 4 20 ... ... 7 23 8 24 ... ... 11 27 12 28
13 29
14 30 15 31

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

COUNT_VALUE: DINT: Current counter value or position value

CAPTURED_VALUE: DINT: The last acquired Capture value

MEASURED_VALUE: REAL: Current measured value or DWORD: Complete SSI frame

Reserved

Reserved
STS_M_ INTERVAL

STS_DI1
EVENT_ CAP

Reserved
STS_SW_ GATE
STS_DI0 EVENT_
SYNC

STS_ READY
STS_DQ1
EVENT_ CMP1

LD_STS_ SLOT_1
STS_DQ0
EVENT_ CMP0

LD_ERROR ENC_ ERROR

LD_STS_ RES_EVEN

SLOT_0

T_ACK

STS_GATE STS_CNT

EVENT_ OFLW

EVENT_ UFLW

Bit 0
POWER_ ERROR Reserved STS_DIR EVENT_ ZERO

Note Validity of the position value
The position value of an SSI absolute encoder is valid when STS_READY is set to 1 and ENC_ERROR is set to 0. STS_READY is set to 0 while the module starts up.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

68

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Explanations

Feedback bit/value Explanations CAPTURED_VALUE This DINT value indicates the last acquired Capture value.
The following external signals can trigger the Capture function:

· Rising or falling edge of a digital input

· Both edges of a digital input
The "Frequency of Capture function" parameter specifies whether the function is executed at each configured edge or only once after each enable.

COUNT_VALUE

This DINT value indicates the current counter value or position value.
If you use an SSI absolute encoder with a position value length up to 31 bits, the position value is treated as unsigned and as a positive value and can assume values between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, the MSB of the position value corresponds to the sign and the position value can assume values between ­2147483648 and 2147483647. If you use a 32-bit position value for the comparison function, the position value is interpreted as DINT.

ENC_ERROR

This bit indicates that one of the following errors has occurred at the encoder signals (retentive) for the respective technology module:

· Invalid transition of A/B signals (with incremental encoder)

· RS422/TTL error

· SSI encoder error or SSI frame error (with SSI absolute encoder)
If you have enabled the diagnostic interrupts, the respective diagnostic interrupt is triggered in the event of encoder signal errors. For information on the meaning of the diagnostic interrupts, refer to the manual for the respective technology module.

The bit is reset once you have acknowledged the error with RES_ERROR .

EVENT_CAP

This bit indicates that a Capture event has occurred and a counter value has been saved in CAPTURED_VALUE . You reset the status by resetting EN_CAPTURE .

EVENT_CMP0

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ0 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP0 is not set.

EVENT_CMP1

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ1 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP1 is not set.

EVENT_OFLW

This bit indicates the saved status that the counter value had an overflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_SYNC

When an incremental or pulse encoder is used, this bit indicates the saved status that the counter was loaded with the start value by an external reference signal (synchronization). You reset the status by resetting EN_SYNC_UP or EN_SYNC_DN .

EVENT_UFLW

This bit indicates the saved status that the counter value had an underflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_ZERO

This bit indicates the saved status that the counter value or position value had a zero crossing. You reset the status by acknowledgment with RES_EVENT.
When the "Zero crossing" hardware interrupt is enabled, for system-related reasons it can also be triggered if "0" is outside the configured value range.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

69

Configuring/address space 4.3 Manual operation (without technology object)

Feedback bit/value LD_ERROR

Explanations
This bit indicates that an error occurred (latching) during loading via the control interface. The loaded values were not applied. When using an incremental or pulse encoder, one of the following conditions is not fulfilled:

· Low counting limit <= counter value <= high counting limit

· Low counting limit <= start value <= high counting limit

· Low counting limit <= comparison value 0/1 <= high counting limit When using an SSI absolute encoder, one of the following conditions is not fulfilled:

· 0 <= position value <= maximum position value

· 0 <= comparison value 0/1 <= maximum position value The bit is reset once you have acknowledged the error with RES_ERROR .

LD_STS_SLOT_0 LD_STS_SLOT_1

This bit indicates by a status change (toggling) that the load request for SLOT_0 (LD_SLOT_0) was detected and performed.
This bit indicates by a status change (toggling) that the load request for SLOT_1 (LD_SLOT_1) was detected and performed.

MEASURED_VALUE This value indicates the current measured value with data type REAL or the complete SSI frame with data type DWORD:

· Frequency: The mean frequency is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the unit of hertz.

· Period: The mean period is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the unit of seconds.

· Velocity: The mean velocity is calculated from the time profile of the count pulses or position value changes in one measurement interval and returned as a floating-point number in the configured unit.

· Complete SSI frame: Instead of a measured quantity, the least significant 32 bits of the unprocessed current SSI frame are returned. This provides you with encoder-specific additional bits, such as error bits, in addition to the position value. If the SSI frame is shorter than 32 bits, the complete SSI frame is returned right-aligned and the top unused bits are returned with "0" in the feedback interface.
The measured values are returned as a signed value. The sign indicates whether the counter value or position value went up or down in the relevant time interval.
The update time is asynchronous to the opening of the internal gate, i.e. the update time is not started when the gate opens. After the internal gate closes, the last calculated measured value continues to be returned.

POWER_ERROR RES_EVENT_ACK

This bit indicates that supply voltage L+ is not present or is too low or the front connector is not inserted. If you have enabled the diagnostic interrupts (Page 76), the diagnostic interrupt "Load voltage missing" is triggered at a supply voltage error.
When supply voltage L+ is available at a sufficient level once again, POWER_ERROR is automatically set to 0.
This bit indicates that the reset of event bit EVENT_SYNC, EVENT_CMP0, EVENT_CMP1, EVENT_OFLW, EVENT_UFLW, EVENT_ZERO is active.

Reserved

Reserved bits are set to 0.

STS_CNT STS_DI0

This bit indicates that at least one count pulse or a position value change has occurred in the last ca. 0.5 s.
This bit indicates the status of digital input DI0.

STS_DI1

This bit indicates the status of digital input DI1.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

70

Manual, 06/2018, A5E03982218-AB

Configuring/address space 4.3 Manual operation (without technology object)

Feedback bit/value STS_DIR
STS_DQ0 STS_DQ1 STS_GATE
STS_M_INTERVAL STS_READY STS_SW_GATE

Explanations This bit indicates the count direction of the last count pulse or the direction of the last position value change.
· 0 means: Down
· 1 means: Up
This bit indicates the status of digital output DQ0.
This bit indicates the status of digital output DQ1.
This bit indicates the status of the internal gate when using an incremental or pulse encoder.
· 0 means: Gate closed
· 1 means: Gate open Note: In order for the counting logic including the gate control to operate correctly, the startup of the technology module must finish correctly at least once with a connected incremental or pulse encoder (STS_READY auf 1). If a connected encoder is not yet ready during the startup, the function of feedback bit STS_GATE is delayed until the encoder for the technology module is available. When the technology module starts up without a connected encoder, the startup does not finish correctly and STS_READY as well as STS_GATE remain set to 0. As soon as an encoder is connected, the startup finishes and STS_GATE functions correctly. An encoder error after a finished startup has no effect on STS_GATE.
This bit indicates that at least one count pulse or a position value change was detected in the previous measurement interval.
This bit indicates that the technology module supplies valid user data. The technology module has been started up and configured.
This bit indicates the status of the software gate.
· 0 means: Gate closed
· 1 means: Gate open

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

71

Configuring/address space 4.3 Manual operation (without technology object)

4.3.6

Isochronous mode
The technology module supports the "Isochronous mode" system function. This system function enables position, counter and measured values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized. The output signals switch immediately if the relevant comparison condition is met. A status change of a digital input immediately triggers the specified reaction of the technology module and the change of the status bit of the digital input in the feedback interface.
Use an OB of type "Synchronous Cycle" (e.g. OB61) in this operating mode. The input and output data are processed in the assigned OB.
The update time for the measured value is synchronized with the system cycle in a suitable ratio and, if necessary, adapted in length. If you set "0", the measured value is updated once per system cycle.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the time the input data is read in (Ti), the position or counter value and the measured value as well as status bits are acquired and made available in the feedback interface for retrieval in the current bus cycle.

Isochronous mode parameters
In isochronous mode, the following parameter can affect the isochronous mode parameters of the sync domain.
 Filter frequency
 Frame length
 Transmission rate
 Monoflop time
 Parity
Because the isochronous mode parameters are not checked in RUN, overflows can occur if you change one or more of the indicated parameters in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment.

Additional information
You can find a detailed description of isochronous mode in the following:
 Function manual Isochronous Mode (STEP 7 (TIA Portal) V15.1 or higher) available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401)
 Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

72

Manual, 06/2018, A5E03982218-AB

Interrupts/diagnostic messages

5

5.1
LEDs

Status and error display
The following figure shows you the LED displays (status and error displays) of TM PosInput 2.

Figure 5-1 LED displays of the TM PosInput 2

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

73

Interrupts/diagnostic messages 5.1 Status and error display

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic alarms (Page 76).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

RUN Off
Flashes On On
Flashes

LEDs ERROR
Off
Off Off Flashes Flashes

MAINT Off
Off Off Off Flashes

Meaning

Remedy

Missing or insufficient voltage on the backplane bus

Switch on the CPU and/or the system power supply modules.

· Check whether the U connectors are plugged in correctly.

· Check whether too many modules are plugged in.

Technology module parameters not set ---

Technology module parameters set and no module diagnostics
Technology module parameters set and module diagnostics (at least one error is present)
Hardware or firmware defective

Evaluate the diagnostic alarms and eliminate the error.
Replace the technology module.

Table 5- 2 PWR/24VDC/5VDC/ERROR status displays

PWR
Off Off On On On

LEDs 24VDC/ 5VDC
Off
Off
On
Off
Off

ERROR

Meaning

Remedy

Off Flashing1
Off Off Flashing1

Supply voltage too low or missing

· Check the supply voltage.
· Make sure that the front connector is correctly inserted.

Supply voltage is present and OK

---

Short-circuit or overload at the encoder ·

supply

·

·

Correct the encoder wiring. Check the loads connected to the encoder supply. Check the supply voltage.

1 Only when diagnostic interrupts enabled

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

74

Manual, 06/2018, A5E03982218-AB

Interrupts/diagnostic messages 5.1 Status and error display

Channel LEDs
The CHn.A, CHn.B, CHn.N and DIn.m LEDs indicate the current level of the associated signals. The LEDs of the DQn.m digital outputs indicate the desired state.
The flashing frequency of the channel LEDs is limited to approximately 12 Hz. If higher frequencies are present, the channel LEDs will flash at 12 Hz instead of indicating the current status.
When an SSI absolute encoder is used, the CHn.D and CHn.C LEDs are lit green during transfer of the encoder frame and are lit red if an error occurred. The CHn.D and CHn.C LEDs are off when no encoder frame is being transferred or if an error has occurred for which the diagnostic interrupt is not enabled.

Table 5- 3 Status displays CHn.m/DIn.m/DQn.m

LEDs CHn.m/DIn.m/DQn.
m
Off
On
On (CHn.m/DQn.m)

Meaning
Counter input/digital input/digital output at 0 level Counter input/digital input/digital output at 1 level Diagnostic alarm: e.g. wire break, short-circuit

Remedy
----Check the wiring or the connected load.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

75

Interrupts/diagnostic messages 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Enabling of diagnostic interrupts
You enable the diagnostic interrupts in the device configuration with the basic parameters. The technology module can trigger the following diagnostic interrupts:

Table 5- 4 Possible diagnostic interrupts

Diagnostic interrupt · Parameter error · Hardware interrupt lost1 · Internal error · Watchdog tripped. Module is defective. · RS422/TTL error
· Supply voltage missing · Short-circuit / overload at external encoder supply · Error at digital outputs · Supply voltage error2 · SSI encoder error · Invalid transition of A/B signals · Overtemperature

Monitoring Monitoring is always active. A diagnostic interrupt is triggered each time an error is detected.
Monitoring is always active. When an error is detected, a diagnostic interrupt is only triggered if "Enable diagnostic interrupt on wire break" is activated in the device configuration. Monitoring is always active. When an error is detected, a diagnostic interrupt is only triggered if "Enable additional diagnostic interrupts" is activated in the device configuration.

1 Not available in "Position input for "Motion Control"" technology object" operating mode
2 No longer available as of module version V1.3. This case is then taken into account by the diagnostic interrupt "Supply voltage missing".

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

76

Manual, 06/2018, A5E03982218-AB

Interrupts/diagnostic messages 5.2 Diagnostic alarms
Reactions to a diagnostic interrupt
The following happens when an event occurs that triggers a diagnostic interrupt:
 The ERROR LED flashes red.
Once you have remedied the error, the ERROR LED goes out.
 The S7-1500 CPU interrupts processing of the user program. The diagnostic interrupt OB (e.g. OB 82) is called. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.
 The S7-1500 CPU remains in RUN even if no diagnostic interrupt OB is present in the CPU. The technology module continues working unchanged if this is possible despite the error.
You can obtain detailed information on the error event in the error organization block with instruction "RALRM" (Read additional alarm information), in the information system of STEP 7 and in function manual Diagnostics (https://support.industry.siemens.com/cs/ww/en/view/59192926), section "System diagnostics in user program".
If the module is operated as a distributed module with PROFIBUS DP in an ET 200MP system, you have the option of reading out diagnostic data with the RDREC or RD_REC instruction using data record 0 and 1. You can find the structure of the data records in the manual for the IM 155-5 DP ST interface module available for download on the Internet (https://support.industry.siemens.com/cs/ww/de/view/78324181).

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

77

Interrupts/diagnostic messages 5.2 Diagnostic alarms

Diagnostic alarms
The display of diagnostics is in plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program.
The following diagnostics can be signaled:

Table 5- 5 Diagnostic alarms, their meaning and remedies

Diagnostic alarm Parameter error

Error code
10H

Hardware interrupt lost 16H

Internal error
Watchdog tripped. Module is defective.

100H 103H

Supply voltage missing 10AH

Short-circuit / overload 10EH at external encoder supply
Error at digital outputs 10FH

Supply voltage error1 110H

Meaning

Remedy

The received parameter data record is invalid

Check parameter data record

· Module cannot issue interrupt because · Change interrupt processing in the

a preceding interrupt has not yet been

CPU and re-assign technology module

processed

parameters correspondingly

· Possible cause: Too many hardware · Check frequency of interrupts from the

interrupts in too short a time

process

Technology module defective Firmware error Technology module defective

Replace technology module Run firmware update Replace technology module

· Missing or insufficient supply voltage L+
· Wiring of supply voltage L+ faulty · Front connector not inserted correctly

· Check supply voltage L+ · Check wiring of supply voltage L+ · Insert front connector correctly

· Error at encoder supply · Possible causes:
­ Short circuit ­ Overload

· Check encoder wiring
· Check consumers connected to encoder supply

· Error at the digital outputs (LED display DQn.m lit red)
· Possible causes: ­ Short circuit ­ Overload

· Check encoder wiring at the digital outputs
· Check consumers connected to the digital outputs

· Error at supply voltage L+ · Possible causes:
­ Low voltage ­ Wiring of supply voltage L+ faulty

· Check supply voltage L+ · Check wiring of supply voltage L+

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

78

Manual, 06/2018, A5E03982218-AB

Interrupts/diagnostic messages 5.2 Diagnostic alarms

Diagnostic alarm
Invalid transition of A/B signals

Error code
500H

RS422/TTL error

502H

SSI encoder error

503H

Overtemperature

506H

Meaning

Remedy

· Time profile of signals A and B of the incremental encoder does not meet certain requirements (relative phase shift of the two signals is too small)
· Possible causes: ­ Signal frequency too high ­ Encoder faulty ­ Process wiring faulty

· Check process wiring · Check encoder/sensor · Check parameter assignment

· Error at connection of the RS422 encoder, TTL encoder or SSI absolute encoder
· Possible causes: ­ Wire break ­ No encoder connected ­ Cable too long ­ Short circuit ­ Overload ­ External voltage ­ Overtemperature ­ Parameter assignment error

· Check process wiring · Check encoder/sensor · Check parameter assignment

· Error at SSI absolute encoder connec- · Check process wiring

tion

· Check SSI absolute encoder

· Possible causes:

· Check parameter assignment

­ Wire break

­ Cable too long

­ Frame error (error of the start bit or stop bit)

­ Parity error

­ Parameter assignment error

· Short-circuit or overload at the digital · Check process wiring

outputs or outputs of the encoder sup- · Improve cooling

ply

· Check connected loads

· Ambient temperature outside specifi-

cations

· Contamination in the module prevents cooling

1 No longer available as of module version V1.3. This case is then taken into account by the diagnostic interrupt "Supply voltage missing".

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

79

Interrupts/diagnostic messages 5.3 Hardware interrupts

5.3

Hardware interrupts

Introduction

For the technology module, you can configure which events are to trigger a hardware interrupt during operation.

What is a hardware interrupt?
The technology module will trigger a hardware interrupt as configured in response to specific events/states. When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the assigned hardware interrupt OB. The event that triggered the interrupt is entered in the start information of the assigned hardware interrupt OB by the CPU.

Lost hardware interrupt
If an event occurs that is to trigger a hardware interrupt and the preceding event has not yet been processed, another hardware interrupt cannot be triggered. The hardware interrupt is lost and the diagnostic interrupt "Lost hardware interrupt" is triggered.

Enabling of hardware interrupts
A hardware interrupt is triggered when the condition for the change of the respective status or event bit in the feedback interface is met. You enable the hardware interrupts in the device configuration with the basic parameters. You can configure hardware interrupts to be triggered for the following event types:  Opening of internal gate (gate start)1  Closing of internal gate (gate stop)1  Overflow (counting high limit violated)1  Underflow (counting low limit violated)1  Comparison event for DQ0 has occurred  Comparison event for DQ1 has occurred  Zero crossing4  New Capture value available2  Synchronization of the counter by an external signal1  Direction reversal3 1 Not for SSI absolute encoder 2 Only configurable in the Counting/Position input operating mode 3 Feedback bit STS_DIR is preassigned with "0". A hardware interrupt is not triggered when the first counter value or position value is changed immediately after switching on the technology module in down direction. 4 When the hardware interrupt is enabled, for system-related reasons it can also be triggered if "0" is outside the configured value range.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

80

Manual, 06/2018, A5E03982218-AB

Interrupts/diagnostic messages 5.3 Hardware interrupts
You can activate any combination of events to trigger hardware interrupts. You can obtain detailed information on the event in the hardware interrupt organization block with instruction "RALRM" (Read additional alarm information) and in the information system of STEP 7. Which channel of the module and which event has triggered the hardware interrupt is entered in the start information of the organization block. The following figure shows the assignment to the bits of the local data double word 8.
Figure 5-2 Start information of the organization block

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

81

Technical specifications

6

Article number General information
Product type designation Firmware version · FW update possible Product function · I&M data Engineering with · PROFIBUS as of GSD version/GSD revision · PROFINET as of GSD version/GSD revision Installation type/mounting Rail mounting Supply voltage Load voltage L+ · Rated value (DC) · permissible range, lower limit (DC) · permissible range, upper limit (DC) · Reverse polarity protection Input current Current consumption, max. Encoder supply Number of outputs 5 V encoder supply · 5V · short-circuit protection · Output current, max. 24 V encoder supply · 24 V · Short-circuit protection · Output current, max. Power Power available from the backplane bus Power loss Power loss, typ.
82

6ES7551-1AB00-0AB0 TM PosInput 2 V1.3 Yes
Yes; I&M0 to I&M3
GSD Revision 5 V2.3 / -
Yes; S7-1500 mounting rail
24 V 19.2 V 28.8 V Yes
75 mA; without load 4; One 5V and 24V encoder supply per channel Yes; 5.2 V ±2 % Yes 300 mA; Per channel
Yes; L+ (-0.8 V) Yes 300 mA; Per channel
1.3 W 5.5 W
Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

Technical specifications

Article number Address area Occupied address area
· Inputs · Outputs Digital inputs Number of digital inputs Digital inputs, parameterizable Input characteristic curve in accordance with IEC 61131, type 3 Digital input functions, parameterizable · Gate start/stop · Capture · Synchronization · Freely usable digital input Input voltage · Type of input voltage · Rated value (DC) · for signal "0" · for signal "1" · permissible voltage at input, min.
· permissible voltage at input, max. Input current
· for signal "1", typ. Input delay (for rated value of input voltage) for standard inputs
­ parameterizable ­ at "0" to "1", min. ­ at "1" to "0", min. for counter/technological functions ­ parameterizable Cable length · shielded, max. · unshielded, max.

6ES7551-1AB00-0AB0
16 byte; Per channel 12 byte; per channel; 4 bytes for Motion Control
4; 2 per channel Yes Yes
Yes; only for pulse and incremental encoders Yes Yes; only for pulse and incremental encoders Yes
DC 24 V -5 ... +5 V +11 to +30V -30 V; -5 V continuous, -30 V brief reverse polarity protection 30 V
2.5 mA
Yes; none / 0.05 / 0.1 / 0.4 / 0.8 / 1.6 / 3.2 / 12.8 / 20 ms 6 µs; for parameterization "none" 6 µs; for parameterization "none"
Yes
1 000 m 600 m

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

83

Technical specifications
Article number Digital outputs
Type of digital output Number of digital outputs Digital outputs, parameterizable Short-circuit protection · Response threshold, typ. Limitation of inductive shutdown voltage to Controlling a digital input Digital output functions, parameterizable · Switching tripped by comparison values · Freely usable digital output Switching capacity of the outputs · with resistive load, max. · on lamp load, max. Load resistance range · lower limit · upper limit Output voltage · Type of output voltage · for signal "1", min. Output current · for signal "1" rated value · for signal "1" permissible range, max. · for signal "1" minimum load current · for signal "0" residual current, max. Output delay with resistive load · "0" to "1", max. · "1" to "0", max. Switching frequency · with resistive load, max. · with inductive load, max.
· on lamp load, max. Total current of the outputs
· Current per module, max. Cable length
· shielded, max. · unshielded, max.
84

6ES7551-1AB00-0AB0
Transistor 4; 2 per channel Yes Yes; electronic/thermal 1 A L+ (-33 V) Yes
Yes Yes
0.5 A; Per digital output 5 W
48  12 k
DC 23.2 V; L+ (-0.8 V)
0.5 A; Per digital output 0.6 A; Per digital output 2 mA 0.5 mA
50 µs 50 µs
10 kHz 0.5 Hz; Acc. to IEC 60947-5-1, DC-13; observe derating curve 10 Hz
2 A
1 000 m 600 m
Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

Technical specifications

Article number Encoder signals, incremental encoder (symmetrical)
· Input voltage

6ES7551-1AB00-0AB0 RS 422

· Input frequency, max.

1 MHz

· Counting frequency, max.

4 MHz; with quadruple evaluation

· Cable length, shielded, max.

32 m; at 1 MHz

· Signal filter, parameterizable

Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes and zero track

· Pulse encoder

Yes

· Pulse encoder with direction

Yes

· Pulse encoder with one impulse signal per count

Yes

direction

Encoder signals, incremental encoder (asymmetrical) · Input voltage

5 V TTL (push-pull encoders only)

· Input frequency, max.

1 MHz

· Counting frequency, max.

4 MHz; with quadruple evaluation

· Signal filter, parameterizable

Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes

· Incremental encoder with A/B tracks, 90° phase offset Yes and zero track

· Pulse encoder

Yes

· Pulse encoder with direction

Yes

· Pulse encoder with one impulse signal per count

Yes

direction

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

85

Technical specifications

Article number Encoder signals, absolute encoder (SSI)
· Input signal · Telegram length, parameterizable · Clock frequency, max.
· Binary code · Gray code · Cable length, shielded, max.
· Parity bit, parameterizable · Monoflop time · Multiturn · Singleturn Interface types · TTL 5 V · RS 422 Isochronous mode Isochronous operation (application synchronized up to terminal) Filtering and processing time (TCI), min. Bus cycle time (TDP), min. Interrupts/diagnostics/status information Alarms · Diagnostic alarm · Hardware interrupt Diagnostic messages · Monitoring the supply voltage · Wire-break · Short-circuit · A/B transition error at incremental encoder · Telegram error at SSI encoder

6ES7551-1AB00-0AB0
to RS-422 10 ... 40 bit 2 MHz; 125 kHz, 250 kHz, 500 kHz, 1 MHz, 1.5 MHz or 2 MHz Yes Yes 320 m; Cable length, RS-422 SSI absolute encoders, Siemens type 6FX2001-5, 24 V supply: 125 kHz, 320 meters shielded, max.; 250 kHz, 160 meters shielded, max.; 500 kHz, 60 meters shielded, max.; 1 MHz, 20 meters shielded, max. 1.5 MHz, 10 meters shielded, max.; 2 MHz, 8 meters shielded, max. Yes 16, 32, 48, 64 µs & automatic Yes Yes
Yes; push-pull encoders only Yes
Yes
130 µs; only for pulse and incremental encoders 250 µs
Yes Yes
Yes Yes Yes Yes Yes

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

86

Manual, 06/2018, A5E03982218-AB

Technical specifications

Article number Diagnostics indication LED
· RUN LED · ERROR LED · MAINT LED · Monitoring of the supply voltage (PWR-LED) · Channel status display · for channel diagnostics Integrated Functions Number of counters Counting frequency (counter) max. Counting functions · Can be used with TO High_Speed_Counter · Continuous counting · Counter response parameterizable · Hardware gate via digital input · Software gate · Event-controlled stop · Synchronization via digital input · Counting range, parameterizable Comparator
­ Number of comparators ­ Direction dependency ­ Can be changed from user program Position detection · Incremental acquisition · Absolute acquisition · Suitable for S7-1500 Motion Control

6ES7551-1AB00-0AB0
Yes; Green LED Yes; Red LED Yes; yellow LED Yes; Green LED Yes; Green LED Yes; Red LED
2 4 MHz; with quadruple evaluation
Yes; only for pulse and incremental encoders Yes Yes Yes Yes Yes Yes Yes
2; Per channel Yes Yes
Yes Yes Yes

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

87

Technical specifications
Article number Measuring functions
· Measuring time, parameterizable · Dynamic measurement period adjustment · Number of thresholds, parameterizable Measuring range
­ Frequency measurement, min. ­ Frequency measurement, max. ­ Cycle duration measurement, min. ­ Cycle duration measurement, max. Accuracy ­ Frequency measurement
­ Cycle duration measurement
­ Velocity measurement
Potential separation Potential separation channels
· between the channels · between the channels and backplane bus · Between the channels and load voltage L+ Isolation Isolation tested with Ambient conditions Ambient temperature during operation · horizontal installation, min. · horizontal installation, max. · vertical installation, min. · vertical installation, max. Decentralized operation to SIMATIC S7-300 to SIMATIC S7-400 to SIMATIC S7-1200 to SIMATIC S7-1500 to standard PROFIBUS master to standard PROFINET controller

6ES7551-1AB00-0AB0
Yes Yes 2
0.04 Hz 4 MHz 0.25 µs 25 s
100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation 100 ppm; depending on measuring interval and signal evaluation
No Yes No
707 V DC (type test)
0 °C 60 °C; Please note derating for inductive loads 0 °C 40 °C; Please note derating for inductive loads
Yes Yes Yes Yes Yes Yes

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

88

Manual, 06/2018, A5E03982218-AB

Article number Dimensions
Width Height Depth Weights Weight, approx.

6ES7551-1AB00-0AB0
35 mm 147 mm 129 mm
325 g

Technical specifications

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

89

Technical specifications
Derating information for total current of outputs
If the digital outputs of the TM PosInput 2 are operated with inductive loads, you should derate the total current of the loads at the digital outputs of the respective channel. The total current is the sum of the load currents at all digital outputs of a channel (without encoder supply). The following derating curve shows the load capacity of the digital outputs depending on the ambient temperature and mounting position under the following conditions:  Maximum switching frequency at digital outputs of 0.5 Hz  Load resistance: 48  (IEC 947-5-1)  Load inductance: 1150 mH (IEC 947-5-1)



Vertical installation of the system



Horizontal installation of the system

Figure 6-1 Total current depending on ambient temperature and mounting position for inductive loads

Note
If the switching frequency is greater than 0.5 Hz or there is greater inductance at the digital outputs, the total current must be reduced further.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

90

Manual, 06/2018, A5E03982218-AB

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the TM PosInput 2 technology module

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

91

Dimensional drawing
Figure A-2 Dimensional drawing of the TM PosInput 2 module, side view with open front panel

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

92

Manual, 06/2018, A5E03982218-AB

Parameter data record

B

B.1

Parameter assignment and structure of parameter data record
You have the option of reassigning module parameters with the user program while the CPU is in RUN. The parameters are transferred to the module using data record 128, e.g. with the WRREC instruction.
If an error occurs while transferring or validating parameters with the WRREC instruction, the module continues operating with the existing parameter assignment. A corresponding error code is then written to the STATUS output parameter. If no errors occur, the STATUS output parameter contains the length of the actually transferred data.
You can find a description of the WRREC instruction and the error codes in section Parameter validation error (Page 100) or in the online help of STEP 7 (TIA Portal).

Structure of data record 128 for operation with technology object and manual operation
The following table shows you the structure of data record 128 for TM PosInput 2 with 2 channels for operation with technology object and manual operation without technology object. The values in byte 0 to byte 3 are fixed and must not be changed. The value in byte 4 can only be changed by means of new parameter assignment and not in RUN mode.
Note
After each writing of data record 128, the module is set to its startup state and the counter value is set to the start value. If "Continue operation" is set for Reaction to CPU STOP, the module is then only set to its startup state when data record 128 has been changed.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

93

Parameter data record B.1 Parameter assignment and structure of parameter data record

Table B- 1 Data record 128: Operating modes "Operating with "Counting and measurement" technology object", "Manual operation (without technology object)"

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

0...3

Header

0

Major Version = 0

Minor Version = 2

1

Length of the parameter data per channel = 48

2

Reserved2

3

Reserved2

4...51

Channel 0

52...99

Channel 1

4/52

Operating mode

4/52 Reserved2

Operating mode:

0000B: Not permitted

0001B: Counting / Position input

0010B: Measuring

0011 to 1111B: Not permitted

5/53

Basic parameters

5/53 Interface standard:

Reserved2

Enable additional diagnostic interrupts1

Reaction to CPU STOP:
00B: Output substitute value
01B: Keep last value

0B: RS422, symmetrical

10B: Continue operation

1B: TTL (5 V), asymmetrical

11B: Not permitted

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

94

Manual, 06/2018, A5E03982218-AB

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

6...7/ 54...55

Counter inputs (parameters for incremental and pulse encoders)

6/54 Reserved2

Signal evaluation:

Signal type:

00B: Single

0000B: Pulse (A)

01B: Double

0001B: Pulse (A) and direction (B)

10B: Quadruple

0010B: Count up (A), count down (B)

11B: Not permitted

0011B: Incremental encoder (A, B phase-shifted)

0100B: Incremental encoder (A, B, N)

0101B: Absolute encoder (SSI)

7/55 Reaction to signal N:
00B: No reaction to signal N
01B: Synchronization at signal N

Invert direction1

Enable diagnostic interrupt on wire break1

0110 to 1111B: Not permitted Filter frequency4: 0000B: 100 Hz
0001B: 200 Hz

10B: Capture at signal N

0010B: 500 Hz

11B: Not permitted

0011B: 1 kHz

0100B: 2 kHz

0101B: 5 kHz

0110B: 10 kHz

0111B: 20 kHz

1000B: 50 kHz

1001B: 100 kHz

1010B: 200 kHz

1011B: 500 kHz

1100B: 1 MHz

1101 to 1111B: Not permitted

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

95

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

6...7/ 54...55

Counter inputs (parameters for SSI absolute encoder)

6/54 Monoflop time4:

Code type: Signal type:

000B: Automatically

0B: Gray

0000B: Pulse (A)

001B: 16 µs

1B: Dual

0001B: Pulse (A) and direction (B)

010B: 32 µs

0010B: Count up (A), count down (B)

011B: 48 µs

0011B: Incremental encoder (A, B phase-shifted)

100B: 64 µs

0100B: Incremental encoder (A, B, N)

101 to 111B: Not permitted

0101B: Absolute encoder (SSI)

7/55

Parity4: 00B: None 01B: Even 10B: Odd

Invert direction1

Enable diagnostic interrupt on wire break1

0110 to 1111B: Not permitted Reserved2 Transmission rate4:
000B: 125 kHz 001B: 250 kHz 010B: 500 kHz

11B: Not permitted

011B: 1 MHz

100B: 1.5 MHz

101B: 2 MHz

8...9/ 56...57

Hardware interrupts1)

110 to 111B: Not permitted

8/56

Reserved2

Reserved2

Reserved2

Change of direction

Underflow (low counting limit violated)

Overflow (high counting limit violated)

Gate stop3

Gate start3

9/57

Synchronization of the counter by an external signal3)

New Capture value available

Reserved2

Zero cross- Reserved2 ing

Comparison event for DQ1 has occurred

Reserved2

Comparison event for DQ0 has occurred

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

96

Manual, 06/2018, A5E03982218-AB

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

10...15/ 58...63

Behavior of a DQ

10/58 Set output (DQ1):

Set output (DQ0):

0000B: Use by user program

0000B: Use by user program

0001B: Between comparison value and high limit; Measuring: Measured value >= comparison value

0001B: Between comparison value and high limit; Measuring: Measured value >= comparison value

0010B: Between comparison value and low limit; Measuring: Measured value <= comparison value

0010B: Between comparison value and low limit; Measuring: Measured value <= comparison value

0011B: At comparison value for a pulse duration

0011B: At comparison value for a pulse duration

0100B: Between comparison value 0 and 1

0100B: Not permitted

0101B: After set command from CPU until comparison 0101B: After set command from CPU until comparison

value

value

0110B: Not between comparison value 0 and 1

0110 to 1111B: Not permitted

11/59

0111 to 1111B: Not permitted

Count direction (DQ1):

Count direction (DQ0):

00B: Not permitted

00B: Not permitted

01B: Up

01B: Up

Reserved2

Reserved2

Substitute value for DQ1

Substitute value for DQ0

10B: Down

10B: Down

11B: In both directions

11B: In both directions

12/60

Pulse duration (DQ0):

13/61

WORD: Value range in ms/10: 0 to 65535D

14/62

Pulse duration (DQ1):

15/63

WORD: Value range in ms/10: 0 to 65535D

16/64

Behavior of DI0

16/64

Behavior of counter value after Capture3 (DI0):

Edge selection (DI0): 00B: Not permitted5 01B: At rising edge 10B: At falling edge

Select level Reserved2 (DI0):
0B: Active with high level

Set function of DI (DI0): 000B: Gate start/stop (level-triggered)3 001B: Gate start (edge-triggered)3 010B: Gate stop (edge-triggered)3

0B: Contin- 11B: At rising and falling ue counting edge

1B: Active with low level

011B: Synchronization3 100B: Enable synchronization at signal N3

1B: Set to start value and continue counting

101B: Capture 110B: Digital input without function 111B: Not permitted

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

97

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

17/65

Behavior of DI1:

See Byte 16

18/66

Reserved2

19/67

Frequency of synchronization:4

Reserved2

Frequency of Capture function:

Input delay: 0B: Once 0001B: 0.05 ms

0B: Once

0B: Once 0010B: 0.1 ms

0011B: 0.4 ms

1B: Periodic

1B: Periodic 0100B: 0.8 ms

0101B: 1.6 ms

0110B: 3.2 ms

0111B: 12.8 ms

1000B: 20 ms

1001 to 1111B: Not permitted

20...43/ 68...91

Values

20...23/ 68...71

Counting high limit3: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

24...27/ 72...75

Comparison value 0: Operating mode Counting: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH;
Measuring operating mode: REAL: Floating-point number in the configured unit of the measured quantity

28...31/ 76...79

Comparison value 1: Operating mode Counting: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH;
Measuring operating mode: REAL: Floating-point number in the configured unit of the measured quantity

32...35/ 80...83
36...39/ 84...87

Start value3: DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH
Counting low limit3 DWORD: Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

40...43/ 88...91

Update time: DWORD: Value range in s: 0 to 25000000D

44/92

Counter behavior at limits and gate start

44/92 Behavior at gate start3: Reaction to violation of a counting limit3: Reset when counting limit is violated3:

00B: Set to start value

000B: Stop counting

000B: To opposite counting limit

01B: Continue with current 001B: Continue counting value

001B: To start value

10 to 11B: Not permitted 010 to 111B: Not permitted

010 to 111B: Not permitted

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

98

Manual, 06/2018, A5E03982218-AB

Parameter data record B.1 Parameter assignment and structure of parameter data record

Bit 

Byte channel
0/1 

Bit 7

45/93

45/93 Reserved2

Bit 6

46/94 47/95 48/96
49...51/ 97...99 49/97 Reserved2
50/98 Reserved2
51/99 Reserved2

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Specify measured value Time base for velocity measurement: 000B: 1 ms 001B: 10 ms 010B: 100 ms 011B: 1 s 100B: 60 s/1 min 101 to 111B: Not permitted
Increments per unit: WORD: Value range: 1 to 65535D
Set hysteresis range: Value range: 0 to 255D Parameters for SSI absolute encoder

Measured variable: 00B: Frequency 01B: Period 10B: Velocity 11B: Complete SSI frame

Frame length4: Value range: 10 to 40D Bit number LSB of the position value: Value range: 0 to 38D Bit number MSB of the position value: Value range: 1 to 39D

1 You activate the respective parameter by setting the associated bit to 1. 2 Reserved bits must be set to 0 3 For signal type "Absolute encoder (SSI)", the following applies: Reserved2 4 In isochronous mode, the parameter can affect the isochronous mode parameters of the sync domain. Because the
isochronous mode parameters are not checked in RUN, overflows can occur if you change the parameter in RUN. To prevent overflows, select the option with the largest time required in the offline parameter assignment. 5 Applies to: Set function of DI = 001B; 010B; 011B; 101B

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0)

Manual, 06/2018, A5E03982218-AB

99

Parameter data record B.2 Parameter validation error

B.2
WRREC

Parameter validation error
If you make the parameter settings in STEP 7 (TIA Portal) or in STEP 7 , the parameter values are checked before they are transferred to the technology module. This process prevents parameter errors.
In other use cases, the technology module checks the transferred parameter data record. If the technology module finds invalid or inconsistent parameter values, it outputs an error code (see below). The new parameter data record is rejected in this case, and work continues with the current parameter values until a valid parameter data record has been transferred.

When the CPU is in RUN, you can change the parameter data record with the instruction WRREC (Write Record). In case of errors, the WRREC instruction returns corresponding error codes in the STATUS parameter.
Example:
Let us assume that an invalid value, for example 9, is written to the module for the operating mode with WRREC. As a consequence, the module rejects the entire parameter data record. You can recognize this by evaluating the STATUS output parameter of the WRREC instruction. The STATUS output parameter is output as an ARRAY[1..4] of BYTE data with the value 16#DF80E111:

Example of WRREC STATUS data DFH 80H
E1H 11H

Address

Meaning

STATUS[1] STATUS[2]
STATUS[3] STATUS[4]

Error when writing a data record via PROFINET IO (IEC 61158-6) Error when reading or writing a data record via PROFINET IO (IEC 61158-6) Module-specific error Error code from the table below: The "Operating mode" parameter has an invalid value.

100

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

Parameter data record B.2 Parameter validation error

Error codes

The following table shows the module-specific error codes and their meaning for parameter data record 128 when using an incremental or pulse encoder.

Table B- 2 Error codes for parameter validation (incremental or pulse encoder)

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

B0

00

Data record number unknown

DF 80

B1

01

Length of data record incorrect

DF 80

B2

00

Slot invalid or not accessible

Remedy
Enter valid number for data record. Enter valid value for data record length. · Check whether module is inserted or removed.

· Check assigned values for parameters of the WRREC instruction.

DF 80

E0

01

Wrong version

· Check byte 0.

· Enter valid values.

DF 80

E0

02

Error in the header information

· Check byte 1.

· Correct the length of the parameter blocks.

DF 80

E1

00

Parameter invalid: No detailed information

available

Check all parameter values.

DF 80

E1

11

"Operating mode" parameter invalid

Enter valid parameter value.

DF 80

E1

12

"Reaction to CPU STOP" parameter invalid

Enter valid parameter value.

DF 80

E1

13

"Signal type" parameter invalid

Enter valid parameter value.

DF 80

E1

15

"Filter frequency" parameter invalid

Enter valid parameter value.

DF 80

E1

16

"Reaction to signal N" parameter invalid

Enter valid parameter value.

DF 80

E1

17

"Set function of DI" parameter invalid

Enter valid parameter value.

DF 80

E1

18

"Set function of DI" parameter configured the Enter different parameter values for DIn.0 and DIn.1.

same for DIn.0 and DIn.1.

DF 80

E1

19

· "Edge selection" parameter invalid

· Enter valid parameter value.

· "Gate start (edge-triggered)" configured as · Configure "Gate start (edge-triggered)" as function

function for DIn.m and "At rising and falling

for DIn.m only together with "At rising edge" or "At

edge"

falling edge"

· "Gate stop (edge-triggered)" configured as · Configure "Gate stop (edge-triggered)" as function

function for DIn.m and "At rising and falling

for DIn.m only together with "At rising edge" or "At

edge"

falling edge"

· "Synchronization" configured as function for · Configure "Synchronization" as function for DIn.m

DIn.m and "At rising and falling edge"

only together with "At rising edge" or "At falling

edge"

DF 80

E1

1A

"Input delay" parameter invalid

Enter valid parameter value.

DF 80

E1

1B

"Set output" parameter invalid

Enter valid parameter value.

DF 80

E1

1C

"Count direction" parameter invalid

Enter valid parameter value.

DF 80

E1

1D

"Reset when counting limit is violated" parame- Enter valid parameter value.

ter invalid

DF 80

E1 1E "Reaction to violation of a counting limit" parameter invalid

Enter valid parameter value.

DF 80

E1

20

"Reaction to gate start" parameter invalid

Enter valid parameter value.

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

101

Parameter data record B.2 Parameter validation error

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

E1

211,4 · Low counting limit > comparison value 0

· Low counting limit > comparison value 1

Remedy
· Low counting limit < comparison value 0 · Low counting limit < comparison value 1

DF 80

E1

221,4 · Counting high limit < comparison value 0

· High counting limit > comparison value 0

· Counting high limit < comparison value 1 · High counting limit > comparison value 1

DF 80

E1

23

· "Start value" parameter invalid

· "Low counting limit" parameter invalid

Enter valid parameter value: Start value > low counting limit

DF 80

E1

24

· "Start value" parameter invalid

· "High counting limit" parameter invalid

Enter valid parameter value: Start value < high counting limit

DF 80

E1

25

"Update time" parameter invalid

Enter parameter value from range 0 to 25000000D.

DF 80

E1

262 "Reference speed" parameter invalid

Enter parameter value from range 6.00 to 210000.00D.

DF 80

E1

27

"Measured variable" parameter invalid

Enter valid parameter value.

DF 80

E1

28

"Time base for velocity measurement" parame- Enter valid parameter value.

ter invalid

DF 80

E1

29

"Increments per unit" parameter invalid

Enter valid parameter value.

DF 80

E1

2A

· "High counting limit" parameter invalid

· "Low counting limit" parameter invalid

Enter valid parameter value: Low counting limit < high counting limit

DF 80

E1

2B3 · "Comparison value 0" parameter invalid

· "Comparison value 1" parameter invalid

Enter valid parameter value: Comparison value 0 < comparison value 1

DF 80

E1

2C

"Signal evaluation" parameter invalid

Enter valid parameter value.

DF 80

E1

2D

· "Between comparison value 0 and 1" con- · Configure "Between comparison value 0 and 1"

figured for DQn.0

only for DQn.1

· "Not between comparison value 0 and 1" configured for DQn.0

· "Not between comparison value 0 and 1" configured only for DQn.1

· "Between comparison value 0 and 1" configured for DQn.1, but "Use by user program" not configured for DQn.0

· Only configure "Between comparison value 0 and 1" for DQn.1 when "Use by user program" is configured for DQn.0

· "Not between comparison value 0 and 1" · Only configure "Not between comparison value 0

configured for DQn.1, but "Use by user pro-

and 1" for DQn.1 when "Use by user program" is

gram" not configured for DQn.0

configured for DQn.0

DF 80

E1

2E

"Capture" configured for DIn.m in "Measuring" Do not configure "Capture" for DIn.m in "Measuring"

operating mode

operating mode.

DF 80

E1

F0

Reserved bit is not set to 0.

Set reserved bit to 0.

1 Only for "Counting" operating mode 2 Only for "Position input for "Motion Control"" technology object 3 Only for DQn.1 functions "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" 4 Not for DQn.m function "Use by user program"

102

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

Parameter data record B.2 Parameter validation error

The following table shows the module-specific error codes and their meaning for parameter data record 128 when using an SSI absolute encoder.

Table B- 3 Error codes for parameter validation (SSI absolute encoder)

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

B0

00

Data record number unknown

DF 80

B1

01

Length of data record incorrect

DF 80

B2

00

Slot invalid or not accessible

Remedy
Enter valid number for data record. Enter valid value for data record length. · Check whether module is inserted or removed.

· Check assigned values for parameters of the WRREC instruction.

DF 80

E0

01

Wrong version

· Check byte 0.

· Enter valid values.

DF 80

E0

02

Error in the header information

· Check byte 1.

· Correct the length of the parameter blocks.

DF 80

E1

00

Parameter invalid: No detailed information

available

Check all parameter values.

DF 80

E1

11

"Operating mode" parameter invalid

Enter valid parameter value.

DF 80

E1

12

"Reaction to CPU STOP" parameter invalid

Enter valid parameter value.

DF 80

E1

13

"Signal type" parameter invalid

Enter valid parameter value.

DF 80

E1

18

"Set function of DI" parameter configured the Enter different parameter values for DIn.0 and DIn.1.

same for DIn.0 and DIn.1.

DF 80

E1

19

· "Edge selection" parameter invalid

Enter valid parameter value.

DF 80

E1

1A

"Input delay" parameter invalid

Enter valid parameter value.

DF 80

E1

1B

"Set output" parameter invalid

Enter valid parameter value.

DF 80

E1

1C

"Count direction" parameter invalid

Enter valid parameter value.

DF 80

E1

25

"Update time" parameter invalid

Enter parameter value from range 0 to 25000000D.

DF

80

E1

261 "Reference speed" parameter invalid

Enter parameter value from range 6.00 to 210000.00D.

DF 80

E1

27

"Measured variable" parameter invalid

Enter valid parameter value.

DF 80

E1

28

"Time base for velocity measurement" parame- Enter valid parameter value.

ter invalid

DF 80

E1

29

"Increments per unit" parameter invalid

Enter valid parameter value.

DF

80

E1

2B2 · "Comparison value 0" parameter invalid

· "Comparison value 1" parameter invalid

Enter valid parameter value: Comparison value 0 < comparison value 1

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

103

Parameter data record B.2 Parameter validation error

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

E1

2D

· "Between comparison value 0 and 1" con-

figured for DQn.0

Remedy
· Configure "Between comparison value 0 and 1" only for DQn.1

· "Not between comparison value 0 and 1" configured for DQn.0

· "Not between comparison value 0 and 1" configured only for DQn.1

· "Between comparison value 0 and 1" configured for DQn.1, but "Use by user program" not configured for DQn.0

· Only configure "Between comparison value 0 and 1" for DQn.1 when "Use by user program" is configured for DQn.0

· "Not between comparison value 0 and 1" · Only configure "Not between comparison value 0

configured for DQn.1, but "Use by user pro-

and 1" for DQn.1 when "Use by user program" is

gram" not configured for DQn.0

configured for DQn.0

DF 80

E1

2E

"Capture" configured for DIn.m in "Measuring" Do not configure "Capture" for DIn.m in "Measuring"

operating mode

operating mode.

DF 80

E1

2F

"Set function of DI" parameter invalid

Enter valid parameter value.

DF 80

E1

30

"Monoflop time" parameter invalid

Enter valid parameter value.

DF 80

E1

31

"Transmission rate" parameter invalid

Enter valid parameter value.

DF 80

E1

32

"Parity" parameter invalid

Enter valid parameter value.

DF 80

E1

33

"Frame length" parameter invalid

Enter valid parameter value.

DF 80

E1

34

· Bit number LSB of the position value < 0

· Bit number LSB of the position value >= 0

· Bit number LSB of the position value > Bit number MSB of the position value

· Bit number LSB of the position value < Bit number MSB of the position value

· (Bit number MSB of the position value)  (Bit number LSB of the position value) >= 31
· Bit number MSB of the position value > Frame length

· (Bit number MSB of the position value)  (Bit number LSB of the position value) < 32
· Bit number MSB of the position value <= Frame length

DF 80

E1

35

"0" configured for "Pulse duration" parameter Enter valid parameter value.

DF 80

E1

F0

Reserved bit is not set to 0.

Set reserved bit to 0.

1 Only for "Position input for "Motion Control"" technology object" operating mode 2 Only for DQn.1 functions "Between comparison value 0 and 1" and "Not between comparison value 0 and 1"

104

Technology module TM PosInput 2 (6ES7551-1AB00-0AB0) Manual, 06/2018, A5E03982218-AB

Technology module
TSMIMTAiTmICer DIDQ 16x24V (6ES75521AA000AB0) ET 200MP/S7-1500 Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Co_n_fig_u_rin_g/_ad_d_re_ss_s_pa_c_e ____4_ _Imn_etes_rsrua_pg_tess/_di_ag_n_os_tic________5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_ _O_pe_n_S_ou_rc_e_So_ft_w_ar_e _____C__

08/2014
A5E34078538-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E34078538-AA  08/2014 Subject to change

Copyright © Siemens AG 2014. All rights reserved

Preface

Purpose of the documentation
This manual includes module-specific information on wiring, diagnostics and the technical specifications of the technology module.
General information regarding design and commissioning of the ET 200MP or S7-1500 is available in the ET 200MP or S7-1500 system manuals.
The "Time-based IO" technology supported by the TM Timer DIDQ 16x24V technology module is described in detail in the function manual High-precision input/output with Timebased IO (http://support.automation.siemens.com/WW/view/en/82527590).

Conventions

Please observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

4

Manual, 08/2014, A5E34078538-AA

Preface
Open Source Software Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this in the appendix.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties................................................................................................................................. 9

2.2 2.2.1 2.2.2 2.2.3

Functions................................................................................................................................ 12 Detection of the input signals................................................................................................. 12 Switching the outputs ............................................................................................................. 14 Additional functions ................................................................................................................ 16

3 Connecting .............................................................................................................................................. 17

3.1

Pin assignment....................................................................................................................... 17

4 Configuring/address space ...................................................................................................................... 29

4.1

Configuring............................................................................................................................. 29

4.2

Reaction to CPU STOP ......................................................................................................... 30

4.3

Address space ....................................................................................................................... 31

4.4

Parameters............................................................................................................................. 31

4.5 4.5.1 4.5.2

Control and feedback interface .............................................................................................. 33 Assignment of the control interface........................................................................................ 33 Assignment of the feedback interface.................................................................................... 37

5 Interrupts/diagnostic messages ............................................................................................................... 41

5.1

Status and error displays ....................................................................................................... 41

5.2

Trigger a diagnostic interrupt ................................................................................................. 44

5.3

Diagnostic alarms................................................................................................................... 45

6 Technical specifications ........................................................................................................................... 46

A Dimension drawing .................................................................................................................................. 54

B Parameter data record ............................................................................................................................. 56

C Open Source Software ............................................................................................................................ 61

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

6

Manual, 08/2014, A5E34078538-AA

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the ET 200MP and S7-1500 systems consists of the respective system manuals, function manuals and device manuals.
The STEP 7 information system (TIA Portal) also helps you to configure and program your automation system.

Overview of the documentation for TM Timer DIDQ 16x24V technology module
The following table lists further documentation that you will need when using the TM Timer DIDQ 16x24V technology module.

Table 1- 1 Documentation for TM Timer DIDQ 16x24V technology module

Topic System description
Configuring interference-free controllers

Documentation

Most important contents

System Manual

·

ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/

·

view/en/59193214)

·

·

S7-1500 Automation System (http://support.automation.siemens.com/WW/ view/en/59191792) system manual

Application planning Installation Connecting Commissioning

·

Designing interference-free controllers (http://support.automation.siemens.com/WW/

·

view/en/59193566) Function Manual

·

Basics Electromagnetic compatibility Lightning protection

Time-based IO

Function manual

·

High-precision input/output with Time-based IO

·

(http://support.automation.siemens.com/WW/ ·

view/en/82527590)

·

Basics Configuration Programming Diagnostics

Isochronous mode PROFINET with STEP 7

·

(http://support.automation.siemens.com/WW/ view/en/49948856) function manual

·

·

Benefits Use Parameter settings

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

7

Documentation guide
SIMATIC manuals All current manuals for the SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

8

Manual, 08/2014, A5E34078538-AA

Product overview

2.1

Properties

Article number 6ES7552-1AA00-0AB0

View of the module

2

Figure 2-1 View of the TM Timer DIDQ 16x24V module

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

9

Product overview 2.1 Properties

Properties

The TM Timer DIDQ 16x24V technology module has the following properties:  Technical properties
­ 16 digital inputs and outputs, electrically isolated in groups of 8 ­ Various combinations of digital inputs and outputs can be configured:
0 digital inputs and 16 digital outputs (for cam applications with numerous outputs) 3 digital inputs and 13 digital outputs (for applications similar to FM 352 applications) 4 digital inputs and 12 digital outputs (for flexible mixed operation) 8 digital inputs and 8 digital outputs (for probe and incremental encoder) ­ Rated output voltage 24V DC ­ Rated output current 0.5 A or 0.1 A (high-speed operation) per digital output ­ 24 V encoder supply output, short-circuit proof ­ Configurable substitute values (per digital output) ­ Two supply voltages L+ ­ Configurable diagnostics ­ Configurable input filters for suppression of interference at digital inputs  Supported encoder/signal types for digital inputs ­ 24 V incremental encoder with A and B signals ­ 24 V pulse encoder with one signal  Supported functions ­ Time stamp function for inputs and outputs (resolution 1 s) ­ Counting (counting range 32-bit) ­ Oversampling for inputs and outputs ­ Pulse width modulation  Supported system functions ­ Isochronous mode ­ Firmware Update ­ Identification data I&M

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

10

Manual, 08/2014, A5E34078538-AA

Product overview 2.1 Properties

Accessories

The following components are supplied with the technology module and can also be ordered separately as spare parts:  Shield bracket  Shield terminal  Labeling strip  U-connector

Other components The following component needs to be ordered separately:  Front connectors, including potential jumpers and cable ties

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

11

Product overview 2.2 Functions

2.2

Functions

2.2.1

Detection of the input signals
You can configure up to eight digital inputs for the technology module. You can evaluate the signals at the digital inputs for the following functions:

Time stamp detection (Timer DI)
The technology module can detect an associated time stamp for an edge at a digital input. The time stamp indicates when the edge was detected in relation to a time base. These time stamps can be used, for example, to calculate a time difference.
The time stamp is based on the "Time-based IO" technology supported by the technology module and requires isochronous mode.
Hardware enable (HW enable)
You can configure a hardware enable by a digital input for the detection of time stamps. A hardware enable defines the time window in which the time stamps are acquired. You can override the hardware enable via the control interface (Page 33) with the respective SETEN bit.
The figure below shows an example for the detection of time stamps at rising and falling edges with enable of the DI0 through the high level of the DI1:

Counting

R Associated time stamp detected at rising DI0-edge

F

Associated time stamp detected at falling DI0 edge

Counting refers to the recording and adding up of events. You can configure up to four counters for the technology module. You can use incremental encoders and pulse encoders at the digital inputs. The two phase-shifted signals from an incremental encoder are evaluated four times. Only the rising or falling edges are counted with the signal of a pulse encoder.
A counter starts at 0, goes up to 232-1 and starts again at 0 (overflow). The technology module can also count down if an incremental encoder is used. The counter value is returned in the feedback interface (Page 37) as a 32-bit value for each digital input.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

12

Manual, 08/2014, A5E34078538-AA

Product overview 2.2 Functions

Oversampling

The Oversampling function is used by the technology module to detect the status of the respective digital input for each application cycle (for example, OB61) at 32 points in time at regular intervals. The 32 states are returned together in the feedback interface (Page 37) as a 32-bit value.
Oversampling requires isochronous mode. If the OB of the type "Synchronous Cycle" works with a clock different than the send clock, you must use the TIO_SYNC instruction.
The figure below shows an example for Oversampling of DI0:

TAPP MSB LSB

Application cycle Most significant bit Least significant bit

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

13

Product overview 2.2 Functions

2.2.2

Switching the outputs
You can configure up to 16 digital outputs for the technology module. You can configure the following functions for switching the digital outputs:

Time-controlled switching (Timer DQ)
The use of time stamps enables reproducibility of controlled operations with very accurate time. Using this function, the technology module outputs edges at the respective digital output at precisely defined points in time. For example, you can implement a defined reaction time between input and output in conjunction with a digital input.
The Timer function is based on Time-based IO and requires isochronous mode.
Hardware enable (HW enable)
You can configure a hardware enable by means of a digital input for a Timer digital output. A hardware enable defines the time window in which the respective digital output can be set. The resetting of the digital output is independent of the hardware enable. You can override the hardware enable via the control interface (Page 33) with the respective SETEN bit.
The figure below shows an example for the output of rising and falling edges with enable of the DQ0 through the high level of the DI1:

R Specified time of a rising DQ0-edge

F

Specified time of a falling DQ0-edge

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

14

Manual, 08/2014, A5E34078538-AA

Product overview 2.2 Functions

Pulse width modulation (PWM)
The Pulse width modulation function enables you to specify the time period in the hardware configuration and the pulse-pause ratio in the control interface (Page 33) for the respective digital output. The setpoint for the pulse-pause ratio is a percentage and is evaluated with an accuracy of about 3%.

Oversampling

The Oversampling function is used by the technology module to output 32 states at regular intervals for each application cycle (for example, OB61). This allows up to 32 edges at the respective digital output per application cycle.
The 32 states are sent via the control interface (Page 33) as a 32-bit string for the respective digital output to the technology module.
Oversampling requires isochronous mode. If the OB of the type "Synchronous Cycle" works with a clock different than the send clock, you must use the TIO_SYNC instruction.
The figure below shows an example for Oversampling of DQ0:

TAPP MSB LSB

Application cycle Most significant bit Least significant bit

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

15

Product overview 2.2 Functions

2.2.3

Additional functions

Isochronous mode The technology module supports the system function "isochronous mode" in distributed mode on PROFINET. This system function is required for the following functions of the technology module:  Time stamp detection (Timer DI)  Time-controlled switching (Timer DQ)  Oversampling of digital input  Oversampling of digital output In isochronous mode, the cycle of the user program, the transmission of the input signals and processing in the technology module are synchronized.
Data processing The time stamp, counter values and Oversampling bit string as well as status bits are detected at the time Ti and made available in the feedback interface for retrieval in the current bus cycle. The output of the current Oversampling bit stings is started at the time To.
Diagnostic interrupt The technology module can trigger a diagnostic interrupt (Page 44), among other things, if no supply voltage is available or if there is an error at the digital outputs.

Input filter

To suppress interferences, you can configure an input filter for the digital inputs.

Distributed application You can use the technology module in a distributed system by means of an interface module in the ET 200MP distributed I/O device. The following applications are possible:
 Distributed operation in an S7-1500 system
 Distributed operation in an S7-300/400 system

Centralized application You can use the technology module centrally in the S7-1500 automation system.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

16

Manual, 08/2014, A5E34078538-AA

Connecting

3

3.1

Pin assignment

You connect the encoder signals, digital input and digital output signals, encoder supplies and the supply voltage to the 40-pin front connector of the technology module to supply the module and the digital outputs.

Information on wiring the front connector, creating the cable shield, etc. is available in the ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59193214) system manual and in the Connecting section of the S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Pin assignment for the front connector
The pin assignment of the front connector depends on the channel configuration of the TM Timer DIDQ 16x24V.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

17

Connecting 3.1 Pin assignment

The following table shows the pin assignment of the front connector for channel configuration "0 inputs, 16 outputs".

Table 3- 1 Pin assignment of the front connector , channel configuration "0 inputs, 16 outputs"

Designation --
Ground for digital outputs DQ0 to DQ7
Supply voltage DC 24 V for digital outputs DQ0 to DQ7*
Ground for supply voltage 1L+

Signal name -- 1
2 3 4 5 6 7 8 9 1M 10 1M 11 1M 12 1M 13 1M 14 1M 15 1M 16 1M 17 1M 18 1L+ 19
1M 20

View

Signal name

Designation

21 DQ0

Digital output DQ0

22 DQ1

Digital output DQ1

23 DQ2

Digital output DQ2

24 DQ3

Digital output DQ3

25 DQ4

Digital output DQ4

26 DQ5

Digital output DQ5

27 DQ6

Digital output DQ6

28 DQ7

Digital output DQ7

29 --

--

30

31 DQ8

Digital output DQ8

32 DQ9

Digital output DQ9

33 DQ10

Digital output DQ10

34 DQ11

Digital output DQ11

35 DQ12

Digital output DQ12

36 DQ13

Digital output DQ13

37 DQ14

Digital output DQ14

38 DQ15

Digital output DQ15

39 2L+

Supply voltage DC 24 V for

digital outputs DQ8 to DQ15*

40 2M Ground for supply voltage 2L+

* If you would like to supply both load groups with a shared voltage, insert the potential jumpers between terminals 19 and 39 as well as 20 and 40.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

18

Manual, 08/2014, A5E34078538-AA

Connecting 3.1 Pin assignment

The following table shows the pin assignment of the front connector for channel configuration "3 inputs, 13 outputs".

Table 3- 2 Pin assignment of the front connector , channel configuration "3 inputs, 13 outputs"

Designation Digital input DI0 Digital input DI1
-- Digital input DI3
--
Ground for encoder supply, digital inputs DI0, DI1 and DI3 and digital
outputs DQ2 and DQ4 to DQ7
Supply voltage DC 24 V for digital inputs DI0, DI1 and DI3 and digital
outputs DQ2 and DQ4 to DQ7* Ground for supply voltage 1L+

Signal name DI0 1 DI1 2 -- 3 DI3 4 -- 5
6 7 8 9 1M 10 1M 11 1M 12 1M 13 1M 14 1M 15 1M 16 1M 17 1M 18 1L+ 19
1M 20

View

Signal name

Designation

21 DQ0 Encoder supply 24 V for DI0

22 DQ1 Encoder supply 24 V for DI1

23 DQ2

Digital output DQ2

24 DQ3 Encoder supply 24 V for DI3

25 DQ4

Digital output DQ4

26 DQ5

Digital output DQ5

27 DQ6

Digital output DQ6

28 DQ7

Digital output DQ7

29 --

--

30

31 DQ8

Digital output DQ8

32 DQ9

Digital output DQ9

33 DQ10

Digital output DQ10

34 DQ11

Digital output DQ11

35 DQ12

Digital output DQ12

36 DQ13

Digital output DQ13

37 DQ14

Digital output DQ14

38 DQ15

Digital output DQ15

39 2L+ Supply voltage DC 24 V for digital outputs DQ8 to DQ15*

40 2M

Ground for supply voltage 2L+

* If you would like to supply both load groups with a shared voltage, insert the potential jumpers between terminals 19 and 39 as well as 20 and 40.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

19

Connecting 3.1 Pin assignment

The following table shows the pin assignment of the front connector for channel configuration "4 inputs, 12 outputs".

Table 3- 3 Pin assignment of the front connector , channel configuration "4 inputs, 12 outputs"

Designation
-- Digital input DI1
-- Digital input DI3
-- Digital input DI5
-- Digital input DI7
-- Ground for encoder supply, digital inputs DI1, DI3, DI5 and DI7 and digital outputs DQ0, DQ2, DQ4 and DQ6
Supply voltage DC 24 V for digital inputs DI1, DI3, DI5 and DI7 and digital outputsDQ0, DQ2, DQ4 and
DQ6* Ground for supply voltage 1L+

Signal name -- 1 DI1 2 -- 3 DI3 4 -- 5 DI5 6 -- 7 DI7 8 -- 9 1M 10 1M 11 1M 12 1M 13 1M 14 1M 15 1M 16 1M 17 1M 18 1L+ 19
1M 20

View

Signal name

Designation

21 DQ0

Digital output DQ0

22 DQ1 Encoder supply 24 V for DI1

23 DQ2

Digital output DQ2

24 DQ3 Encoder supply 24 V for DI3

25 DQ4

Digital output DQ4

26 DQ5 Encoder supply 24 V for DI5

27 DQ6

Digital output DQ6

28 DQ7 Encoder supply 24 V for DI7

29

--

--

30

31 DQ8

Digital output DQ8

32 DQ9

Digital output DQ9

33 DQ10

Digital output DQ10

34 DQ11

Digital output DQ11

35 DQ12

Digital output DQ12

36 DQ13

Digital output DQ13

37 DQ14

Digital output DQ14

38 DQ15

Digital output DQ15

39

2L+ Supply voltage DC 24 V for

digital outputs DQ8 to DQ15*

40

2M

Ground for supply voltage

2L+

* If you would like to supply both load groups with a shared voltage, insert the potential jumpers between terminals 19 and 39 as well as 20 and 40.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

20

Manual, 08/2014, A5E34078538-AA

Connecting 3.1 Pin assignment

The following table shows the pin assignment of the front connector for channel configuration "8 inputs, 8 outputs".

Table 3- 4 Pin assignment of the front connector , channel configuration "8 inputs, 8 outputs"

Designation
Digital input DI0 Digital input DI1 Digital input DI2 Digital input DI3 Digital input DI4 Digital input DI5 Digital input DI6 Digital input DI7
-- Ground for encoder supply and digital inputs DI0 to DI7
Supply voltage DC 24 V for digital inputs DI0 to DI7*
Ground for supply voltage 1L+

Signal name DI0 1 DI1 2 DI2 3 DI3 4 DI4 5 DI5 6 DI6 7 DI7 8 -- 9 1M 10 1M 11 1M 12 1M 13 1M 14 1M 15 1M 16 1M 17 1M 18 1L+ 19
1M 20

View

Signal name

Designation

21 DQ0 Encoder supply 24 V for DI0

22 DQ1 Encoder supply 24 V for DI1

23 DQ2 Encoder supply 24 V for DI2

24 DQ3 Encoder supply 24 V for DI3

25 DQ4 Encoder supply 24 V for DI4

26 DQ5 Encoder supply 24 V for DI5

27 DQ6 Encoder supply 24 V for DI6

28 DQ7 Encoder supply 24 V for DI7

29 --

--

30

31 DQ8

Digital output DQ8

32 DQ9

Digital output DQ9

33 DQ10

Digital output DQ10

34 DQ11

Digital output DQ11

35 DQ12

Digital output DQ12

36 DQ13

Digital output DQ13

37 DQ14

Digital output DQ14

38 DQ15

Digital output DQ15

39 2L+

Supply voltage DC 24 V for

digital outputs DQ8 to DQ15*

40 2M Ground for supply voltage 2L+

* If you would like to supply both load groups with a shared voltage, insert the potential jumpers between terminals 19 and 39 as well as 20 and 40.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

21

Connecting 3.1 Pin assignment

Block diagram

The figure below shows the block diagram of the technology module for the use of all 16 digital outputs.

 Electrical isolation  Technology and backplane bus interface  Input filter for supply voltage
Figure 3-1 Block diagram for use of 16 digital outputs
When you connect the encoder you must, depending on the configured input delay and potential effect of interference, ground the shields of the cables between encoder and technology module both through the shield connection element at the front connector (shield bracket and terminal) and at the encoder.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

22

Manual, 08/2014, A5E34078538-AA

Connecting 3.1 Pin assignment
The figure below shows the block diagram of the technology module with four connected incremental encoders.

 Electrical isolation  Technology and backplane bus interface  24 V supply for respective incremental encoder  Input filter for supply voltage  Equipotential bonding  Shield support at the front connector  Incremental encoder with A and B signals
Figure 3-2 Block diagram with incremental encoders

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

23

Connecting 3.1 Pin assignment
The following figure shows the block diagram of the technology module to which four pulse encoders and four sensors are connected.

 Electrical isolation  Technology and backplane bus interface  24 V supplies for pulse encoders and sensors  Input filter for supply voltage  Equipotential bonding  Shield support at the front connector  Pulse encoder with signal A
Figure 3-3 Block diagram with pulse encoders and sensors
Note
If you want to use Timer digital inputs and high-speed outputs at the same time, you should minimize the effects of interference by electrically isolating the supply to the inputs and outputs via the terminal pairs 19 and 20 and 39 and 40.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

24

Manual, 08/2014, A5E34078538-AA

Connecting 3.1 Pin assignment

Supply voltage

The digital inputs and outputs of the technology module are divided into two load groups that are supplied with DC 24 V. The digital inputs DI0 to DI7 and digital outputs DQ0 to DQ7 are supplied via the 1L+ and 1M connections. The digital outputs DQ8 to DQ15 are supplied via the 2L+ and 2M connections.
You can supply both load groups electrically isolated or non-isolated. If you want to supply both load groups with the same potential (non-isolated), use potential jumpers to loopthrough the supply voltage from the load group already supplied to another load group.
The technology module monitors the supply voltage connections. When a load group is not supplied, the lack of supply voltage generates a diagnostic interrupt (Page 45). If you want to prevent this reaction when using only one load group, insert the potential jumpers.
An internal protective circuit protects the technology module against damage due to reversed polarity of the supply voltage. Unexpected conditions can occur at the digital outputs with reversed polarity of the supply voltage.

Note Note that a maximum current load of 8 A per potential jumper must not be exceeded.

Digital inputs DI0 to DI7
You can use three, four or eight digital inputs, whereby the number of digital outputs that can be used is reduced accordingly. The technology module can evaluate the edges at the digital inputs for the following functions:

Table 3- 5 Evaluation of the signals at the digital inputs

Evaluation of the signals for ... Usable digital inputs

DI0 DI1 DI2 DI3 DI4 DI5 DI6 DI7

Time stamp detection

















Hardware enable for time stamp detection

--



--



--



--



Hardware enable for timecontrolled switching

--



--



--



--



Counting with incremental

















encoder with signals A and B

Counting with pulse encoder



--



--



--



--

with signal A

Oversampling

















Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

25

Connecting 3.1 Pin assignment

When you use the counting function, you can connect the following encoder types with 24 V signals to the digital inputs:
 Incremental encoder with signals A and B:
Signals A and B are each connected via the connections of the digital input pairs DI0/DI1, DI2/DI3, DI4/DI5 and DI6/DI7. Signals A and B are the two incremental signals phaseshifted by 90°.
 Pulse encoder / sensor with signal A:
Signal A is connected via the connection of the digital input DI0, DI2, DI4 or DI6.
The digital inputs are not electrically isolated from each other or from the digital outputs DQ0 to DQ7. The digital inputs are electrically isolated from the digital outputs DQ8 to DQ15 and the backplane bus.

Input filters for digital inputs You can configure an input filter for each digital input to suppress interference. Signals with a pulse duration below the configured input delay are suppressed.
You can specify the following values for the input delay:
 None (input delay of 4 s, minimum pulse width of 3 s)
 0.05 ms
 0.1 ms (default)
 0.4 ms
 0.8 ms
The input delay has the following effect on the functions of the signal evaluation at the digital inputs:

Table 3- 6 Influence of the input delay

Function Time stamp detection Counting
Oversampling

Influence of the input delay
The detected time stamp is moved by the input delay. The counter value that was valid at time Ti minus the input delay is returned. The detected states are moved together by the input delay.

Note
If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs. To increase the accuracy of the time stamp function, we recommend the use of shielded cables even for longer input delays. The use of shielded cables limits the jitter to maximum of 1 s.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

26

Manual, 08/2014, A5E34078538-AA

Connecting 3.1 Pin assignment
Encoder supply When you use the digital inputs, you can connect incremental encoders and pulse encoders. The terminal opposite the digital input provides the respective DC 24 V supply voltage with reference to 1M and a rated load current of 0.5 A to supply an encoder. The voltage is fed from the 1L+/1M supply voltage and monitored for short-circuit and overload.
Note Note that a total current of 1.2 A for all encoder supplies must not be exceeded.
Note The outputs of the technology module are disabled during its startup. As a result. the encoder supply can be disabled briefly after an interruption of the PROFINET connection of the associated system.
Digital outputs DQ0 to DQ15 You can use 8, 12, 13 or 16 digital outputs, whereby the number of digital inputs that can be used is reduced accordingly. The digital outputs can be switched directly at defined points in time or via the user program. Alternatively, you can output pulse width modulation or Oversampling at the respective digital output. The digital outputs DQ0 to DQ7 are electrically isolated from the digital outputs DQ8 to DQ15 and the backplane bus, but not from the digital inputs. The digital outputs DQ8 to DQ15 are electrically isolated from the digital outputs DQ0 to DQ7; the digital inputs are electrically isolated from the backplane bus. You can use each of the digital outputs as a high-speed output or as a sourcing output:  High-speed output (default): The digital output works as fast push-pull switch and can carry a rated load current of 0.1 A. A push-pull switch is alternately switched to DC 24 V and ground. This makes for very steep edges.  Sourcing output: The digital output works as 24 V sourcing output in reference to M and can carry a rated load current of 0.5 A.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

27

Connecting 3.1 Pin assignment
The digital outputs are protected from overload and short-circuit.
NOTICE Overtemperature from unsuitable loads A high-speed output generates edges that are very steep. This creates very powerful charge reversals for the connected load, which can overheat the load at very high switching frequencies. The connected load must therefore be approved for high input frequencies.
Note If you use a digital output as sourcing output, the switch-off response / switch-off edge depends on the load. Thus, it is possible that very short pulses cannot be output correctly.
Note Relays and contactors can be connected direct without external circuitry.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

28

Manual, 08/2014, A5E34078538-AA

Configuring/address space

4

4.1

Configuring

Introduction

The technology module is configured and assigned parameters with the configuration software.
The technology module functions are controlled and monitored by the user program.

System environment The technology module can be used in the following system environments:

Table 4- 1 Applications of the technology module with PROFINET IO

Applications
Distributed operation in an S7-1500 system

Components required
· S7-1500 automation system
· ET 200MP distributed I/O system
· TM Timer DIDQ 16x24V

Configuration software
STEP 7 (TIA Portal):
Device configuration and parameter settings with hardware configuration (HWCN)

Central operation in an · S7-1500 system
·

Distributed operation ·

in an S7-300/400 sys-

tem

·

·

S7-1500 automation system TM Timer DIDQ 16x24V
S7-300/400 automation system ET 200MP distributed I/O system TM Timer DIDQ 16x24V

STEP 7 (TIA Portal):
Device configuration and parameter settings with hardware configuration (HWCN)
STEP 7 (TIA Portal):
Device configuration and parameter settings with hardware configuration (HWCN)

* on request

In the user program
Time stamp functions:
TIO instructions TIO_SYNC, TIO_DI and TIO_DQ
Counting, PWM and Oversampling:
Direct access to the control and feedback interface (Page 33) of the TM Timer DIDQ 16x24V in the I/O data
Counting and PWM:
Direct access to the control and feedback interface (Page 33) of the TM Timer DIDQ 16x24V in the I/O data
Time stamp functions*, counting, PWM and Oversampling:
Direct access to the control and feedback interface (Page 33) of the TM Timer DIDQ 16x24V in the I/O data

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

29

Configuring/address space 4.2 Reaction to CPU STOP
Additional information You can find a detailed description of the time stamp functions and their configuration with the TIO instructions TIO_SYNC, TIO_DI and TIO_DQ in:  High-precision input/output with Time-based IO function manual available as download on the Internet (http://support.automation.siemens.com/WW/view/en/82527590)  In the STEP 7 (TIA Portal) information system under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"

4.2

Reaction to CPU STOP
You set the response of the technology module to CPU STOP for each channel in the basic parameters.

Table 4- 2 Response of the technology module to CPU STOP depending on parameter assignment

Reaction to CPU STOP Output substitute value
Keep last value

Meaning
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: If you are using counters, the counter values are set to 0 and the digital outputs switch according to the parameter assignment and the setpoints.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition. The last valid period duration with the last valid pulse-pause ratio is output for a configured pulse width modulation until the next STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: If you are using counters, the counter values are set to 0 and the digital outputs switch according to the parameter assignment and the setpoints.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

30

Manual, 08/2014, A5E34078538-AA

Configuring/address space 4.3 Address space

4.3

Address space

Address space of the technology module

Table 4- 3 Range

Range of the input addresses and output addresses of the TM Timer DIDQ 16x24V

Inputs 44 bytes

Outputs 74 bytes

Additional information
A description on how to use the control and feedback interface of TM Timer DIDQ 16x24V can be found in the chapter Control and feedback interface (Page 33).

4.4

Parameters

You can use various parameters in the hardware configuration to define the properties of the technology module in STEP 7 (TIA Portal). Depending on the settings, not all parameters are available. You can change the parameter assignment in the user program using data record 128 (Page 56).

Parameters of the TM Timer DIDQ 16x24V You can configure the following parameters:

Table 4- 4 Configurable parameters and their defaults

Parameter Channel configuration of the module PWM period for the digital outputs
Reaction to CPU STOP

Value range Basic parameters · 0 inputs, 16 outputs · 3 inputs, 13 outputs · 4 inputs, 12 outputs · 8 inputs, 8 outputs
· 10 ms · 5 ms · 2 ms · 1 ms · 0.5 ms · 0.2 ms
· Output substitute value · Keep last value

Default setting 0 inputs, 16 outputs 10 ms
Output substitute value

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

31

Configuring/address space 4.4 Parameters

Parameter Enable diagnostic interrupts
Operating mode of the digital output
Substitute value for the digital output High-speed output (0.1 A) Invert input or output signal HW enable by the digital input Level selection for HW enable Configuration DI group
Invert counting direction (incremental encoder) Operating mode of the digital input
Input delay for the digital input
Signal evaluation for counters Configuration DQ/DI group

Value range · Disabled · Enabled
Channel parameters · Timer DQ · Oversampling · Pulse width modulation PWM
· 0 · 1
· Disabled · Enabled
· Disabled · Enabled
· Level-triggered · Edge-triggered
· Active with high level · Active with low level
· Incremental encoder (A, B phase-shifted) · Timer-DI with enable input · Use inputs individually
· Disabled · Enabled
· Counter · Timer-DI · Oversampling
· None · 0.05 ms · 0.1 ms · 0.4 ms · 0.8 ms
· At rising edge · At falling edge
· Timer DQ with enable input · Use input/output individually

Default setting Disabled
Timer DQ
0 Enabled Disabled Level-triggered Active with high level Incremental encoder (A, B phase-shifted) Disabled Timer-DI
0.1 ms
At rising edge Timer DQ with enable input

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

32

Manual, 08/2014, A5E34078538-AA

Configuring/address space 4.5 Control and feedback interface

4.5

Control and feedback interface

Direct access to the control and feedback interface on the PROFINET is not necessary for distributed operation in a S7-1500 system to use the time stamp functions. The TIO instructions TIO_SYNC, TIO_DI and TIO_DQ are available for this case. You can find a detailed description of the use of the TIO instructions in the High-precision input/output with Time-based IO function manual available as download on the Internet (http://support.automation.siemens.com/WW/view/en/82527590).

Additional information on using the control and feedback interface is available in the section Configuring (Page 29).

4.5.1

Assignment of the control interface
The user program uses the control interface to influence the behavior of the technology module.

Control interface The following table shows control interface assignment:

Table 4- 5 Control interface of the technology module

Offset to the start address
Byte 0

Parameter
SET_DQ (DQ0 ... DQ7)

Byte 1

SET_DQ (DQ8 ... DQ15)

Meaning
Bit 7: Set DQ7 Bit 6: Set DQ6 Bit 5: Set DQ5 Bit 4: Set DQ4 Bit 3: Set DQ3 Bit 2: Set DQ2 Bit 1: Set DQ1 Bit 0: Set DQ0 Bit 7: Set DQ15 Bit 6: Set DQ14 Bit 5: Set DQ13 Bit 4: Set DQ12 Bit 3: Set DQ11 Bit 2: Set DQ10 Bit 1: Set DQ9 Bit 0: Set DQ8

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

33

Configuring/address space 4.5 Control and feedback interface

Offset to the start address
Byte 2

Parameter
SETEN (DI0/DQ0 ... DI7/DQ7)

Byte 3 Bytes 4 to 7

SETEN (DQ8 ... DQ15)
TEC_OUT (DQ0)

Bytes 8 to 11 Bytes 12 to 15 Bytes 16 to 19 Bytes 20 to 23 Bytes 24 to 27 Bytes 28 to 31 Bytes 32 to 35 Bytes 36 to 39 Bytes 40 to 43 Bytes 44 to 47 Bytes 48 to 51 Bytes 52 to 55 Bytes 56 to 59 Bytes 60 to 63 Bytes 64 to 67

TEC_OUT (DQ1) TEC_OUT (DQ2) TEC_OUT (DQ3) TEC_OUT (DQ4) TEC_OUT (DQ5) TEC_OUT (DQ6) TEC_OUT (DQ7) TEC_OUT (DQ8) TEC_OUT (DQ9) TEC_OUT (DQ10) TEC_OUT (DQ11) TEC_OUT (DQ12) TEC_OUT (DQ13) TEC_OUT (DQ14) TEC_OUT (DQ15)

Meaning

Bit 7: Override hardware enable for DI7 or DQ7 Bit 6: Override hardware enable for DI6 or DQ6 Bit 5: Override hardware enable for DI5 or DQ5 Bit 4: Override hardware enable for DI4 or DQ4 Bit 3: Override hardware enable for DI3 or DQ3 Bit 2: Override hardware enable for DI2 or DQ2 Bit 1: Override hardware enable for DI1 or DQ1 Bit 0: Override hardware enable for DI0 or DQ0 Bits 0 to 7: Override hardware enable for DQ8 to DQ15

For DQ operating mode "Timer DQ":
Byte 0...1: OFF TIME: Starting time stamp of the module for resetting the DQ0 Bytes 2 to 3: ON TIME: Starting time stamp of the module for setting the DQ0
See bytes 4 to 7

For DQ operating mode "Oversampling":
Bytes 0 to 3:
32 states for Oversampling

For DQ operating mode "Pulse width modulation PWM":
Bytes 0 to 2:
Reserved; bits must be set to 0
Byte 3:
Pulse-pause ratio for PWM as a percentage

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

34

Manual, 08/2014, A5E34078538-AA

Configuring/address space 4.5 Control and feedback interface

Offset to the start address
Byte 68

Parameter
SEL EDGESEL (DI1)

Byte 69 Byte 70 Byte 71 Bytes 72 to 73

REARM SEL EDGESEL (DI0) REARM SEL (DI3) SEL (DI2) SEL (DI5) SEL (DI4) SEL (DI7) SEL (DI6) STW MSL
-- SYN

Meaning
Bits 5...7: edge selection for time stamp detection DI1: 000B: Reserved 001B: Rising edges only 010B: Falling edges only 011B: Rising and falling edge (order depending on occurrence) 100B: Reserved 101B: First rising, then falling edge 110B: First falling, then rising edge 111B: Reserved Bit 4: cyclic time stamp detection for DI1 Bits 0...3: See SEL (DI1)
See byte 68
See byte 68
See byte 68
Bits 12...15: sign of life counter (Master Sign of Life) Bits 1...11: Reserved; bits must be set to 0 Bit 0: Synchronization of the module with the user program

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

35

Configuring/address space 4.5 Control and feedback interface

Notes on the control bits

Control bit SEL (DIm) SET_DQm SETEN (DIm/DQm)
STW
TEC_OUT (DQm)

Notes
This value is supplied by the TIO instruction TIO_DI.
You can use this bit to set the DQm digital output in the DQ operating mode "Timer DQ".
You can use this bit to override the hardware enable that is configured for a digital input DIm or digital output DQm.
This value is controlled by the TIO instruction TIO_SYNC.
Detailed information is available on request.
If you use the time stamp function for the respective digital output DQm, the TIO instruction TIO_DQ returns the two output time stamps for the module in this value.
If you use the Oversampling function for the respective digital output DQm, you specify the 32 states with this value.
If you use pulse width modulation for the respective digital output DQm, you specify the pulsepause ratio with this value as percentage. The following overview shows how the technology module evaluates the specified percentage.

Pulse-pause ratio for PWM
You specify the setpoint for the pulse-pause ratio as a percentage. The technology module outputs the following pulse-pause ratio in each case:

Setpoint in %

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

Output value in %

0

3.13

6.25

9.38

12.50

15.63

18.75

21.88

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

25

28.13

31.25

34.38

37.50

40.63

43.75

46.88

50

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

53.13

56.25

59.38

62.50

65.63

68.75

71.88

75

78.13

80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

81.25

84.38

87.50

90.63

93.75

96.88

100

Additional information
Detailed information about the time stamp function is available from Technical Supporton request.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

36

Manual, 08/2014, A5E34078538-AA

Configuring/address space 4.5 Control and feedback interface

4.5.2

Assignment of the feedback interface
The user program receives current values and status information from the technology module by means of the feedback interface.

Feedback interface The following table shows the assignment of the feedback interface:

Table 4- 6 Feedback interface of the technology module

Offset to the start address Byte 0
Byte 1
Byte 2
Byte 3

Parameter

Meaning

STS_DI (DI0 ... DI7)
QI (DI0 ... DI7)
QI (DQ0 ... DQ7)
QI (DQ08 ... DQ15)

Bit 7: Status DI7 (when DI7 is used) Bit 6: Status DI6 (when DI6 is used) Bit 5: Status DI5 (when DI5 is used) Bit 4: Status DI4 (when DI4 is used) Bit 3: Status DI3 (when DI3 is used) Bit 2: Status DI2 (when DI2 is used) Bit 1: Status DI1 (when DI1 is used) Bit 0: Status DI0 (when DI0 is used) Bit 7: Quality Information DI7 Bit 6: Quality Information DI6 Bit 5: Quality Information DI5 Bit 4: Quality Information DI4 Bit 3: Quality Information DI3 Bit 2: Quality Information DI2 Bit 1: Quality Information DI1 Bit 0: Quality Information DI0 Bit 7: Quality Information DQ7 Bit 6: Quality Information DQ6 Bit 5: Quality Information DQ5 Bit 4: Quality Information DQ4 Bit 3: Quality Information DQ3 Bit 2: Quality Information DQ2 Bit 1: Quality Information DQ1 Bit 0: Quality Information DQ0 Bit 7: Quality Information DQ15 Bit 6: Quality Information DQ14 Bit 5: Quality Information DQ13 Bit 4: Quality Information DQ12 Bit 3: Quality Information DQ11 Bit 2: Quality Information DQ10 Bit 1: Quality Information DQ9 Bit 0: Quality Information DQ8

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

37

Configuring/address space 4.5 Control and feedback interface

Offset to the start address Bytes 4 to 7
Bytes 8 to 11 Bytes 12 to 15 Bytes 16 to 19 Bytes 20 to 23 Bytes 24 to 27 Bytes 28 to 31 Bytes 32 to 35 Byte 36
Byte 37
Byte 38
Byte 39
Byte 40

Parameter

Meaning

TEC_IN (DI0)
TEC_IN (DI1) TEC_IN (DI2) TEC_IN (DI3) TEC_IN (DI4) TEC_IN (DI5) TEC_IN (DI6) TEC_IN (DI7) EN (DI1/DQ1) LEC (DI1) EN (DI0/DQ0) LEC (DI0) EN (DI3/DQ3) LEC (DI3) EN (DI2/DQ2) LEC (DI2) EN (DI5/DQ5) LEC (DI5) EN (DI4/DQ4) LEC (DI4) EN (DI7/DQ7) LEC (DI7) EN (DI6/DQ6) LEC (DI6) EN (DQ15) EN (DQ14) EN (DQ13) EN (DQ12) EN (DQ11) EN (DQ10) EN (DQ9) EN (DQ8)

For DI operating mode "Timer DI":
Byte 0...1: 2nd TIME/OFF TIME: Second input time stamp of module Byte 2...3: 1st TIME/ON TIME: First input time stamp of module See bytes 4 to 7

For DI operating mode "Incremental encoder (A, B phase-shifted)" or "Counter":
Current counter value

Bit 7: DI1 active as Timer DI or DQ1 active as Timer DQ Bit 4...6: Lost edge counter for DI1 Bit 3: DI0 active as Timer DI or DQ0 active as Timer DQ Bit 0...2: Lost edge counter for DI0 See byte 36

Bit 7: DQ15 active as Timer DQ Bit 6: DQ14 active as Timer DQ Bit 5: DQ13 active as Timer DQ Bit 4: DQ12 active as Timer DQ Bit 3: DQ11 active as Timer DQ Bit 2: DQ10 active as Timer DQ Bit 1: DQ9 active as Timer DQ Bit 0: DQ8 active as Timer DQ

For DI operating mode "Oversampling":
Oversampling value

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

38

Manual, 08/2014, A5E34078538-AA

Configuring/address space 4.5 Control and feedback interface

Offset to the start address Byte 41 Bytes 42 to 43

Parameter

Meaning

Layout Property Module-specific value

ZSW SSL

Bits 12...15: sign of life counter (Slave Sign of Life)

--

Bits 10 to 11: Reserved

SYNC Bit 8: Module is synchronized with the user program

Channel Bits 4 to 7 and 9: Number of the respective DI or DQ address

Channel Bits 0 to 3: Operating mode of the respective DI or DQ mode

Notes on the feedback bits

Feedback bit STS_DI (DIm) EN (DIm/DQm)
Layout Property LEC (DIm) QI (DIm)
QI (DQm)
TEC_IN (DIm)
ZSW

Notes
This bit indicates the status of respective digital input DIm.
This bit indicates that
· The respective digital input is active as Timer DI and, if required, is enabled, or
· The respective digital output is active as Timer DQ and, if required, is enabled. For digital inputs and digital outputs with the operating modes "Counter", "Oversampling", "Pulse Width Modulation PWM" and for level-controlled hardware enable, this bit is permanently "0".
This value is a module-specific constant and used by the TIO instructions for the recognition of the technology module.
This value indicates the number of edges at the respective digital input DIm for which no time stamp could be stored. The module can count a maximum of seven edges per application cycle. The counter is reset with each new application cycle.
This bit indicates that an error has occurred at the respective digital input.
0 means: Supply voltage 1L+ not available or too low or front connector is not plugged
1 means: Supply voltage is present and OK
If the diagnostic interrupts are enabled, a diagnostic interrupt is triggered when there is a problem with the 1L+ supply voltage. Refer to the section Diagnostic alarms (Page 45) for details on the diagnostic interrupts.
This bit indicates that an error has occurred at the respective digital output.
0 means: Short-circuit, overload or overtemperature
1 means: Supply voltage is present and OK
If the diagnostic interrupts are enabled, a diagnostic interrupt is triggered when there is fault at the digital output. Refer to the section Diagnostic alarms (Page 45) for details on the diagnostic interrupts.
If you use the time stamp function for the respective digital input DIm, this value returns the two input time stamps for the module. The input time stamps are read by the TIO instruction TIO_DI and converted to the TIO_Time.
If you use the counting function for the respective digital input DIm, this value returns the current counter value.
If you use the Oversampling function for the respective digital input DIm, this value returns the 32 states of the DIm.
This value is controlled by the technology module and is used for communication with the TIO instruction TIO_SYNC.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

39

Configuring/address space 4.5 Control and feedback interface
Additional information Detailed information about the time stamp function is available from Technical Supporton request.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

40

Manual, 08/2014, A5E34078538-AA

Interrupts/diagnostic messages

5

5.1
LEDs

Status and error displays
The figure below shows the LEDs (status and error displays) of the TM Timer DIDQ 16x24V.

Figure 5-1 LEDs of the TM Timer DIDQ 16x24V

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

41

Interrupts/diagnostic messages 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in the section Diagnostic alarms (Page 45).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

RUN Off
Flashes On On
Flashes

LEDs ERROR
Off
Off
Off Flashes Flashes

MAINT Off Off Off Off
Flashes

Meaning

To correct or avoid errors

Supply voltage from CPU/power supply Check or switch on the supply voltage

module not present or too low

at the PS, at the CPU or at the interface

module.

The technology module starts and

--

flashes until parameter assignment is

complete

The parameters of the technology module have been assigned.

Indicates a group error (at least one error pending)

Evaluate the diagnostic alarms and eliminate the error.

Hardware or firmware defective

Replace the technology module.

Table 5- 2 PWRm/DQm*/ERROR status displays

PWRm Off
On On

LEDs DQm*
Off
On On

ERROR Flashes
Off Flashes

Meaning

To correct or avoid errors

Supply voltage too low or missing Supply voltage is present and OK

· Check the supply voltage. · Make sure that the front connector is
correctly inserted.
--

Short-circuit or overload at the encoder · Correct the encoder wiring.

supply

· Check the loads connected to the

encoder supply.

* Applies for DQ0 to DQ7 when used as encoder supply

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

42

Manual, 08/2014, A5E34078538-AA

Interrupts/diagnostic messages 5.1 Status and error displays

ChannelLEDs
The DIm LEDs indicate the current level of the associated signals. The LEDs of the digital outputs DQm indicate the desired state.
The flashing frequency of the channel LEDs is limited to approximately 14 Hz. If higher frequencies are present, the channel LEDs will flash at 14 Hz instead of indicating the current status.

Table 5- 3 Status displays DIm/DQm*

LEDs DIm/DQm* Off On On
(DQm)

Meaning Digital input / digital output at 0 level
Digital input / digital output at 1 level
Diagnostic alarm: e.g. "Error at digital outputs"

* Applies for DQm when used as digital output

To correct or avoid errors --
--
Check the wiring or the connected load.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

43

Interrupts/diagnostic messages 5.2 Trigger a diagnostic interrupt

5.2

Trigger a diagnostic interrupt

Enabling the diagnostic interrupts You enable the diagnostic interrupts at the basic parameters. The technology module can trigger the following diagnostic interrupts:

Table 5- 4 Possible diagnostic interrupts
Diagnostic interrupt · Internal error · Watchdog tripped. Module is defective.
· No supply voltage · Short-circuit or overload at encoder supply · Error at the digital outputs · Supply voltage error · Overtemperature

Monitoring
Monitoring is always active. A diagnostic interrupt is triggered each time an error is detected.
Monitoring is always active. A detected error only triggers a diagnostic interrupt if "Enable diagnostic interrupts" has been enabled in the device parameters. The diagnostic interrupts are not enabled in the default setting.

Reactions to a diagnostic interrupt
The following happens when an event occurs that triggers a diagnostic interrupt:
 The ERROR LED flashes.
Once you have remedied the error, the ERROR LED goes out.
 The S7-1500 CPU interrupts processing of the user program. The diagnostic interrupt OB (e.g. OB 82) is called. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.
 The S7-1500 CPU remains in RUN even if no diagnostic interrupt OB is present in the CPU. The technology module continues working unchanged if this is possible despite the error.
Detailed information on the error event is available with the instruction "RALRM" (read additional interrupt information).

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

44

Manual, 08/2014, A5E34078538-AA

Interrupts/diagnostic messages 5.3 Diagnostic alarms

5.3

Diagnostic alarms

Diagnostic alarms
If a diagnostic alarm is pending, the ERROR-LED is flashing.
The diagnostics are displayed as plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program.
The technology module only has one channel as far as diagnostics is concerned. Channel number "0" is therefore displayed for each diagnostic.
The following diagnostics can be signaled:

Table 5- 5 Diagnostic alarms, their meaning and remedies
Diagnostic alarm Error Meaning code

To correct or avoid errors

Internal error
Watchdog tripped. Module is defective.
No supply voltage

100H 103H
10AH

Short-circuit or overload at encoder supply

10EH

Error at the digital 10FH outputs

Supply voltage error

110H

Overtemperature 506H

Technology module defective Firmware error Technology module defective

Replace technology module Run firmware update Replace technology module

No 1L+ and/or 2L+ supply voltage for the technology module
Front connector not inserted correctly · Error at encoder supply · Possible causes:
­ Short-circuit ­ Overload

Feed 1L+ supply voltage (terminal 19) and/or 2L+ (terminal 39) to the technology module
Insert front connector correctly
· Correct encoder wiring
· Check consumers connected to encoder supply

· Error at the digital outputs (DQm LED lights up red)
· Possible causes: ­ Short-circuit ­ Overload

· Correct wiring at the digital outputs
· Check consumers connected to the digital outputs

· Error at 1L+ and/or 2L+ supply voltage
· Possible causes: ­ Low voltage ­ Wiring of 1L+ and/or 2L+ supply voltage defective

· Check the 1L+ and/or 2L+ supply voltage
· Check the wiring of 1L+ and/or 2L+ supply voltage

· Possible causes:
­ Short-circuit or overload at the digital outputs or output of the encoder supply
­ Ambient temperature outside specifications

· Correct process wiring · Improve cooling · Check connected loads

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

45

Technical specifications

6

Product type designation General information Product function I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version Installation type/mounting Rail mounting possible Supply voltage Load voltage 1L+ Rated value (DC) Low limit of valid range (DC) High limit of valid range (DC) Reverse polarity protection Load voltage 2L+ Rated value (DC) Low limit of valid range (DC) High limit of valid range (DC) Reverse polarity protection Input current from load voltage 1L+ (no load), max. from load voltage 2L+ (no load), max. Encoder supply Number of outputs 24 V encoder supply 24 V Short-circuit protection Output current, max.
Power Power from the backplane bus Power loss Power loss, typ.

6ES7552-1AA00-0AB0 TM Timer DIDQ 16x24V
Yes; I&M 0
V13 Update 3
Yes; S7-1500 mounting rail
24 V 19.2 V 28.8 V Yes; against destruction
24 V 19.2 V 28.8 V Yes; against destruction
40 mA; without load 30 mA; without load
8; max. depending on parameter assignment
Yes; L+ (-0.8 V) Yes 1.2 A; total current of all encoders / channels, max. 0.5 A per output
1.3 W
5 W

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

46

Technical specifications

Address area Occupied address area Inputs Outputs Digital inputs Number of inputs · In groups of Digital inputs, configurable Input characteristics to IEC 61131, Type 3 Digital input functions, configurable Digital input with time stamp · Number, max. Counter · Number, max. Counter for incremental encoder · Number, max. Digital input with oversampling · Number, max. Hardware enable for digital input · Number, max. Hardware enable for digital output · Number, max. Input voltage Type of input voltage Rated value, DC For signal "0" For signal "1" Permitted voltage at input, min. Permitted voltage at input, max. Input current for signal "1", typ. Input delay (at rated value of input voltage) Minimum pulse width for program reaction For standard inputs · Configurable
· at "0" to "1", min.
· at "1" to "0", min.

6ES7552-1AA00-0AB0
44 bytes 74 bytes
8; max. depending on parameter assignment 8 Yes Yes
Yes 8 Yes 4 Yes 4 Yes 8 Yes 4 Yes 4
DC 24 V -30 V to +5 V +11 V to +30 V -30 V 30 V
2.5 mA
3 µs; with parameter assignment "none"
Yes; none / 0.05 / 0.1 / 0.4 / 0.8 ms) 4 µs; with parameter assignment "none" 4 µs; with parameter assignment "none"

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

47

Technical specifications

Cable length Cable length shielded, max.
Cable length unshielded, max.
Digital outputs Type of digital output Number of outputs · In groups of M switching Sourcing Digital outputs, configurable Short-circuit protection · Response threshold, typ.
Limiting of inductive shutdown voltage to Control of a digital input Digital output functions, configurable Digital output with time stamp · Number, max. PWM output · Number, max. Digital output with oversampling · Number, max. Output switching capacity With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage Type of output voltage for signal "0", max. for signal "1", min. Output current for signal "1" rated value for signal "1" permissible range, max.
for signal "1" minimum load current for signal "0" residual current, max.

6ES7552-1AA00-0AB0
1000 m; depending on sensor, cable quality and edge slope 600 m; depending on sensor, cable quality and edge slope
Transistor 16; max. depending on parameter assignment 8 Yes; with high-speed output Yes Yes Yes; electronic/thermal 1.7 A with standard output; 0.5 A with high-speed output -0.8 V Yes
Yes 16 Yes 16 Yes 16
0.5 A; 0.1 A with high-speed output 5 W; 1 W with high-speed output
48 ; 240 Ohm with high-speed output 12 k
DC 1 V; with high-speed output 23.2 V; L+ (-0.8 V)
0.5 A; 0.1 A with high-speed output, note derating 0.6 A; 0.12 A with high-speed output, note derating 2 mA 0.5 mA

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

48

Manual, 08/2014, A5E34078538-AA

Technical specifications

Output delay with resistive load "0" to "1", max.
"1" to "0", max.
Switching frequency With resistive load, max.
With lamp load, max. Total current of outputs Max. current per group Max. current per module Cable length Cable length shielded, max. Cable length unshielded, max. Encoders Supported encoders Incremental encoder (asymmetric) 24 V initiator 2-wire sensor · Permitted quiescent current (2-wire sensor),
max.

6ES7552-1AA00-0AB0
1 µs; for high-speed output, 5 µs with standard output 1 µs; for high-speed output, 6 µs with standard output
100 kHz; for high-speed output, 10 kHz with standard output 10 Hz
4 A 8 A; note derating
1000 m; depending on load and cable quality 600 m; depending on load and cable quality
Yes Yes Yes 1.5 mA

Encoder signals, incremental encoders (asymmetrical) Input voltage Input frequency, max. Counting frequency, max. Cable length shielded, max.
Incremental encoder with A/B tracks, phaseshifted by 90° Pulse encoder 24 V encoder signal · Permitted voltage at input, min.

24 V 50 kHz 200 kHz; with quadruple evaluation 600 m; depends on input frequency, encoder and cable quality; max. 200 m with 50 kHz Yes
Yes
-30 V

· Permitted voltage at input, max.

30 V

Interface hardware Input characteristics to IEC 61131, Type 3 Isochronous mode Isochronous mode (application synchronized until terminal) Bus cycle time (TDP), min. Jitter, max.

Yes
Yes 250 µs 1 µs

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

49

Technical specifications

Interrupts/diagnostics/status information Activation of substitute values Interrupts Diagnostic interrupt Diagnostic alarms Diagnostics Monitoring of supply voltage Short-circuit LED diagnostics display RUN LED ERROR LED MAINT LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics Integrated functions Number of counters Counting frequency (counters), max. Counting functions Continuous counting Electrical isolation Electrical isolation channels Between the channels and the backplane bus Permitted potential difference Between different circuits Isolation Isolation tested with Ambient conditions Operating temperature Horizontal installation, min. Horizontal installation, max. Vertical installation, min. Vertical installation, max. Distributed operation At SIMATIC S7-1500 Dimensions Width Height Depth Weights Weight, approx.

6ES7552-1AA00-0AB0
Yes
Yes
Yes Yes Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; green LED Yes; green LED Yes; red LED
4 200 kHz; with quadruple evaluation
Yes
Yes
75 V DC / 60 V AC (basic isolation)
707 V DC (type test)
0 °C 60 °C 0 °C 40 °C; note derating
Yes
35 mm 147 mm 129 mm
320 g

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

50

Manual, 08/2014, A5E34078538-AA

Technical specifications
Derating information for standardized total current of outputs If the digital outputs of the TM Timer DIDQ 16x24V are operated with resistive loads, you should derate the standardized total current of the loads at the digital outputs for each load group of the technology module. The standardized total current is the standardized total of the mean output currents at all digital outputs and encoder supplies related to its nominal current in each case. You should derate only if the system is mounted vertically. The following derating curve shows the load capacity of the digital outputs for each load group depending on the ambient temperature and mounting position:
 Vertical installation of the system  Horizontal installation of the system
Figure 6-1 Standardized total current for each load group depending on ambient temperature and mounting position for resistive loads

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

51

Technical specifications

Example
The following table shows the calculation of the standardized total current for each load group for the channel configuration "3 inputs, 13 outputs":

Table 6- 1 Calculation of the standardized total current (1L+)

Digital output
DQ0 DQ1 DQ2 DQ3 DQ4 DQ5 DQ6 DQ7

Load group of the supply voltage 1L+

Use as encoder High-speed

supply

output (0.1 A)

Output current

Nominal value according to parameter as-
signment

Mean value

Mean value in relation to the nominal value

Yes

--

0.5 A

0.3 A

60 %

Yes

--

0.5 A

0.4 A

80 %

No

No

0.5 A

0.5 A

100 %

Yes

--

0.5 A

0.4 A

80 %

No

Yes

0.1 A

0.05 A

50 %

No

No

0.5 A

0.15 A

30 %

No

Yes

0.1 A

0.09 A

90 %

No

No

0.5 A

0.35 A

70 %

Total

560 %

Standardized total current = total / number of outputs = 560 % / 8 outputs

70 %

Table 6- 2 Calculation of the standardized total current (2L+)

Digital output
DQ8 DQ9 DQ10 DQ11 DQ12 DQ13 DQ14 DQ15

Load group of the supply voltage 2L+

Use as encoder High-speed

supply

output (0.1 A)

Output current

Nominal value according to parameter as-
signment

Mean value

Mean value in relation to the nominal value

--

Yes

0.1 A

0.05 A

50 %

--

Yes

0.1 A

0.07 A

70 %

--

No

0.5 A

0.5 A

100 %

--

No

0.5 A

0.4 A

80 %

--

Yes

0.1 A

0.09 A

90 %

--

No

0.5 A

0.15 A

30 %

--

Yes

0.1 A

0.04 A

40 %

--

No

0.5 A

0.25 A

50 %

Total

510 %

Standardized total current = total / number of outputs = 510 % / 8 outputs

64 %

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

52

Manual, 08/2014, A5E34078538-AA

Technical specifications
For the determination of the maximum ambient temperature for the technology module, the higher standardized total current of the two load groups is considered. In this example, it amounts to 70 %. With a standardized total current of 70 % and vertical mounting of the system, the ambient temperature according to the derating curve may amount to a maximum of approx. 38 °C.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

53

Dimension drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of the TM Timer DIDQ 16x24V technology module

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

54

Dimension drawing
Figure A-2 Dimensional drawing of the TM Timer DIDQ 16x24V module, side view with open front panel

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

55

Parameter data record

B

You may edit the module parameters in RUN. The WRREC instruction is used to transfer the parameters to the module using data record 128.
If errors occur during the transfer or validation of parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. A corresponding error code is then written to the STATUS output parameter. If no errors occur, the STATUS output parameter contains the length of the actually transferred data.
The description of the WRREC instruction and the error codes is available in the STEP 7 online help (TIA Portal).

Structure of data record
The following table shows you the structure of data record 128 for TM Timer DIDQ 16x24V. The values in byte 0 to byte 3 are fixed and may not be changed.

Table B- 1 Parameter data record 128

Bit  Byte
 0...3
0 1 2 3 4...7 4
5
6 7

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Reserved2)

Major Version = 0

Length of the parameter data = 36

Reserved2)

Header Minor Version = 1

Reserved2)
Reserved2) Reserved2)

Basic parameters

PWM period for the digital outputs:

0000B: 10 ms

0001B: 5 ms

0010B: 2 ms

0011B: 1 ms

0100B: 0.5 ms

0101B: 0.2 ms

0110 to 1111B: Reserved

Enable diagnostic interrupt1)

Reaction to CPU STOP:
00B: Output substitute value

01B: Keep last value

10 to 11B: Reserved

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

56

Parameter data record

Bit 
Byte 
8...9 8

Bit 7 Reserved2)

Bit 6

9 Reserved2)

8...9

8 High-speed Substitute

output

value

(0.1 A)1

9 10...11
10

Reserved2) Reserved2)

11 Reserved2)

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Invert input signal1
Invert output signal1

Channel parameters for DI0

HW enable with next digital input1

Operating mode of the digital input: 0000B: Timer-DI 0001B: Reserved

0010B: Oversampling

0011B: Counter

0100B: Incremental encoder (A, B phase-shifted)

0101 to 1111B: Reserved

Input delay / Filter frequency:

0000B: None

0001B: 0.05 ms

0010B: 0.1 ms

0011B: 0.4 ms

0100B: 0.8 ms

0101 to 1110B: Reserved

1111B: 50 kHz

Channel parameters for DQ0

HW enable with next digital input1

Operating mode of the digital output: 0000 to 0111B: Reserved 1000B: Timer DQ

1001B: Reserved

1010B: Oversampling

1011B: PWM

1100 to 1111B: Reserved

Invert input signal1

Channel parameters for DI1 Reserved2) Operating mode of the digital input:
0000B: Timer-DI 0001B: Reserved 0010B: Oversampling 0011 to 1111B: Reserved Input delay: 0000B: None 0001B: 0.05 ms 0010B: 0.1 ms 0011B: 0.4 ms 0100B: 0.8 ms 0101 to 1111B: Reserved

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

57

Parameter data record

Bit 

Byte 

Bit 7

10...11

10 High-speed output (0.1 A)1

Bit 6
Substitute value

11 Reserved2) 12...13 14...15 16...17 18...19 20...21 22...23 24...25 26...27 28...29 30...31 32...33 34...35 36...37 38...39

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Invert output signal1

Channel parameters for DQ1 Reserved2) Operating mode of the digital output:
0000 to 0111B: Reserved 1000B: Timer DQ 1001B: Reserved 1010B: Oversampling 1011B: PWM 1100 to 1111B: Reserved

Channel parameters for DI2/DQ2: See bytes 8 and 9
Channel parameters for DI3/DQ3: See bytes 10 and 11
Channel parameters for DI4/DQ4: See bytes 8 and 9
Channel parameters for DI5/DQ5: See bytes 10 and 11
Channel parameters for DI6/DQ6: See bytes 8 and 9
Channel parameters for DI7/DQ7: See bytes 10 and 11
Channel parameters for DQ8: See bytes 10 and 11
Channel parameters for DQ9: See bytes 10 and 11
Channel parameters for DQ10: See bytes 10 and 11
Channel parameters for DQ11: See bytes 10 and 11
Channel parameters for DQ12: See bytes 10 and 11
Channel parameters for DQ13: See bytes 10 and 11
Channel parameters for DQ14: See bytes 10 and 11
Channel parameters for DQ15: See bytes 10 and 11

1) You enable a specific parameter by setting the corresponding bit to 1. 2) Must be set to 0.

Bit 0

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

58

Manual, 08/2014, A5E34078538-AA

Parameter data record

Counting

The following table shows the properties for counting that you can set in the channel parameters of the respective digital input:

Table B- 2 Setting options for counting

Operating mode for counting
Counter (0011B)

Usable digital inputs
· DI0 · DI1 · DI2

"Invert input signal" set to...

0
Counting of rising edges

1
Counting of falling edges

Incremental en- ·

coder (A, B phase-

shifted) (0100B)

·

·

·

DI0 with DI1 (all bits of the channel parameters for DI1 are set to 0)
DI2 with DI3 (all bits of the channel parameters for DI3 are set to 0)
DI4 with DI5 (all bits of the channel parameters for DI5 are set to 0)
DI6 with DI7 (all bits of the channel parameters for DI7 are set to 0)

Counting direction not inverted

Counting direction inverted

Hardware enable (HW enable)
You can use a hardware enable by an enable input for the operating modes "Timer DI" and "Timer DQ". You set a hardware enable with bit 4 of the respective channel parameter.
You can set a hardware enable for the following inputs and outputs:

Table B- 3 Hardware enable options

Digital input / digital output DI0 or DQ0 DI2 or DQ2 DI4 or DQ4 DI6 or DQ6

Hardware enable by digital input... DI1 DI3 DI5 DI7

You set a hardware enable with the channel parameters of the enable input "Operating mode" and "Invert" signal input:

Table B- 4 Setting options for enable input

Operating mode

"Invert input signal" set to...

0

1

Oversampling (0010B) Hardware enable by High level

Hardware enable by Low level

Timer DI (0000B)

When using the SIMOTION control system only

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

59

Parameter data record

Input filter

The following overview shows the input filters that can be set for specific operating modes of a digital input:

Table B- 5 Setting options for the input filter

Operating mode of the digital input · Timer DI (0000B) · Oversampling (0010B)

Type of input filter Input delay

· Counter (0011B)
· Incremental encoder (A, B phaseshifted) (0100B)

Filter frequency

Assignable values
· None · 0.05 ms · 0.1 ms · 0.4 ms · 0.8 ms
50 kHz (cannot be changed)

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

60

Manual, 08/2014, A5E34078538-AA

Open Source Software

C

For Resellers: In order to avoid infringements of the license conditions by the reseller or the buyer, the instructions and license conditions provided here must be passed on to the buyers.
License Conditions and Disclaimers for Open Source Software and other licensing software
The Open Source software listed below is used in unmodified form or in a form we have modified as well as other license software listed below in the "digital modules, analog modules, technology modules, communication modules and power supply modules of the SIMATIC S7-1500, ET 200MP" Copyright Siemens AG, 2013-2014 (hereinafter referred to as "Product").
Liability for Open Source Software
The Open Source software is provided free of charge. We are liable for the Product including the Open Source software contained in it pursuant to the license conditions applicable to the Product. We explicitly reject any liability for the use of Open Source software beyond the program sequence intended for the Product. Furthermore, any liability for defects resulting from modifications to the Open Source software is excluded.
We do not provide any technical support for the Product if it has been modified.
Please read the license conditions and copyright information of Open Source software as well as other licensing software:

Component
Dinkumware C/C++ Library - 5.01

Open Source Software[Yes/No]
NO

GNU GCC libstdc++ / YES libsupc++ - 4.4.1

libgcc - 4.4.1

YES

Acknowledgements

Copyright Information / File
LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT DINKUMWARE C/C++ LIBRARY - 5.01
LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT GNU GCC LIBSTDC++ / LIBSUPC++ - 4.4.1
LICENSE AND COPYRIGHT INFORMATION FOR COMPONENT LIBGCC - 4.4.1

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

61

Manual, 08/2014, A5E34078538-AA

Open Source Software

Commercial Software: Dinkumware C/C++ Library - 5.01
Enclosed you'll find the license conditions and copyright notices applicable for Commercial Software Dinkumware C/C++ Library - 5.01
License conditions:
1 Copyright (c) 1991-1999 Unicode, Inc. All Rights reserved. This file is provided as-is by Unicode, Inc. (The Unicode Consortium).No claims are made as to fitness for any particular purpose. Nowarranties of any kind are expressed or implied. The recipientagrees to determine applicability of information provided. If thisfile has been provided on optical media by Unicode, Inc., the soleremedy for any claim will be exchange of defective media within 90days of receipt.Unicode, Inc. hereby grants the right to freely use the informationsupplied in this file in the creation of products supporting theUnicode Standard, and to make copies of this file in any form forinternal or external distribution as long as this notice remainsattached.
2 © Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
3 Copyright © 1994 Hewlett-Packard CompanyPermission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. HewlettPackard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.
Copyrights:
copyright 1992 - 2006 by p.j. plauger and jim brodie. all rights reserved.
copyright 1992-2006 by p.j. plauger. all rights reserved.ip
copyright 1992-2006 by p.j. plauger. portions derived from work copyright 1994 by hewlettpackard company. all rights reserved
Copyright 1992-2006 by dinkumware, ltd. all rights reserved
copyright 1992-2006 by dinkumware, ltd. portions derived from work copyright 2001 by william e. kempf. all rights reserved
copyright 1994 hewlettpackard company
copyright 1994 by hewlettpackard company
copyright william e. kempf 2001
copyright 1989-2006 by p.j. plauger. all rights reserved
copyright (c) by p.j. plauger. all rights reserved.
copyright (c) by dinkumware, ltd. all rights reserved.
copyright (c) unicode, inc. all rights reserved.
(c) copyright william e. kempf 2001
copyright (c) hewlettpackard company

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

62

Manual, 08/2014, A5E34078538-AA

Open Source Software
copyright (c) by p.j. plauger. all rights reserved. copyright 2006 by dinkumware, ltd. copyright (c) by p.j. plauger, licensed by dinkumware, ltd. all rights reserved. the dinkum cec++ library reference is copyright (c) by p.j. plauger. this code is protected by copyright. all rights reserved. the dinkum cc++ library reference is copyright (c) by p.j. plauger. this code is protected by copyright. all rights reserved. dinkum compleat library, vc++ package (vc++ compilers only) the dinkum compleat library and the dinkum compleat library reference are copyright (c) by p.j. plauger. all rights reserved.
Open Source Software: GNU GCC libstdc++ / libsupc++ - 4.4.1 Enclosed you'll find the license conditions and copyright notices applicable for Open Source Software GNU GCC libstdc++ / libsupc++ - 4.4.1

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

63

Open Source Software
License conditions:
1 License
There are two licenses affecting GNU libstdc++: one for the code, and one for the documentation.
There is a license section in the FAQ regarding common questions. If you have more questions, ask the FSF or the gcc mailing list. The Code: GPL
The source code is distributed under the GNU General Public License version 3, with the addition under section 7 of an exception described in the "GCC Runtime Library Exception, version 3.1" as follows (or see the file COPYING.RUNTIME):
GCC RUNTIME LIBRARY EXCEPTION
Version 3.1, 31 March 2009
Copyright (C) 2009 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This GCC Runtime Library Exception ("Exception") is an additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that bears a notice placed by the copyright holder of the file stating that the file is governed by GPLv3 along with this Exception.
When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

64

Manual, 08/2014, A5E34078538-AA

Open Source Software
0. Definitions.
A file is an "Independent Module" if it either requires the Runtime Library for execution after a Compilation Process, or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library.
"GCC" means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions published by the FSF.
"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.
"Target Code" refers to output from any compiler for a real or virtual target processor architecture, in executable form or suitable for input to an assembler, loader, linker and/or execution phase. Notwithstanding that, Target Code does not include data in any format that is used as a compiler intermediate representation, or used for producing a compiler intermediate representation.
The "Compilation Process" transforms code entirely represented in non-intermediate languages designed for human-written code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as starting with the output of the generators or preprocessors.
A Compilation Process is "Eligible" if it is done using GCC, alone or with other GPL-compatible software, or if it is done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC intermediate representations would not qualify as an Eligible Compilation Process.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

65

Open Source Software
1. Grant of Additional Permission.
You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules, even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the licensing of the Independent Modules.
2. No Weakening of GCC Copyleft.
The availability of this Exception does not imply any general presumption that third-party software is unaffected by the copyleft requirements of the license of GCC.
Hopefully that text is self-explanatory. If it isn't, you need to speak to your lawyer, or the Free Software Foundation. The Documentation: GPL, FDL
The documentation shipped with the library and made available over the web, excluding the pages generated from source comments, are copyrighted by the Free Software Foundation, and placed under the GNU Free Documentation License version 1.2. There are no Front-Cover Texts, no Back-Cover Texts, and no Invariant Sections.
For documentation generated by doxygen or other automated tools via processing source code comments and markup, the original source code license applies to the generated files. Thus, the doxygen documents are licensed GPL.
If you plan on making copies of the documentation, please let us know. We can probably offer suggestions. 2 This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Under Section 7 of GPL version 3, you are granted additional permissions described in the GCC Runtime Library Exception, version 3.1, as published by the Free Software Foundation. You should have received a copy of the GNU General Public License and a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

66

Manual, 08/2014, A5E34078538-AA

Open Source Software
3 // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. // (C) Copyright Jeremy Siek 2000. Permission to copy, use, modify, // sell and distribute this software is granted provided this // copyright notice appears in all copies. This software is provided // "as is" without express or implied warranty, and with no claim as // to its suitability for any purpose.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

67

Open Source Software
4 // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the, 2009 Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. /* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * Copyright (c) 1996,1997 * Silicon Graphics * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

68

Manual, 08/2014, A5E34078538-AA

Open Source Software
5 // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. /* * * Copyright (c) 1996,1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

69

Open Source Software
6 This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3, or (at your option) any later // version. // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. // Permission to use, copy, modify, sell, and distribute this software // is hereby granted without fee, provided that the above copyright // notice appears in all copies, and that both that copyright notice // and this permission notice appear in supporting documentation. None // of the above authors, nor IBM Haifa Research Laboratories, make any // representation about the suitability of this software for any // purpose. It is provided "as is" without express or implied // warranty. /** * @file splay_tree_.hpp * Contains an implementation class for splay_tree_. */ /* * This implementation uses an idea from the SGI STL (using a "header" node * which is needed for efficient iteration). Following is the SGI STL * copyright. * * Copyright (c) 1996,1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * * Copyright (c) 1994 * Hewlett-Packard Company *

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

70

Manual, 08/2014, A5E34078538-AA

Open Source Software
* Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty.
7 This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. /* * Copyright (c) 1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. Silicon Graphics makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty.
8 Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

71

Open Source Software
9 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

72

Manual, 08/2014, A5E34078538-AA

Open Source Software
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

73

Open Source Software
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

74

Manual, 08/2014, A5E34078538-AA

Open Source Software
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

75

Open Source Software
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

76

Manual, 08/2014, A5E34078538-AA

Open Source Software
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

77

Open Source Software
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

78

Manual, 08/2014, A5E34078538-AA

Open Source Software

Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

79

Open Source Software
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

80

Manual, 08/2014, A5E34078538-AA

Open Source Software

9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

81

Open Source Software
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

82

Manual, 08/2014, A5E34078538-AA

Open Source Software
conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

83

Open Source Software
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

84

Manual, 08/2014, A5E34078538-AA

Open Source Software

17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.

END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box".

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

85

Open Source Software

You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
10 Disclaimer and Copyright</h2> <p>Revised 16 February, 2004</p>&copy; Copyright Ami Tavory and Vladimir Dreizin, IBM-HRL, 2004, and Benjamin Kosnik, Red Hat, 2004. <p>Permission to use, copy, modify, sell, and distribute this software is hereby granted without fee, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation.</p> <p>None of the above authors, nor IBM Haifa Research Laboratories, Red Hat, or both, make any representation about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.<
11 # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available.
12 This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 Free Software Foundation, Inc. This file is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 This file is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved.
15 Permission to use, copy, modify, sell, and distribute this software is hereby granted without fee, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation. None of the above authors, nor IBM Haifa Research Laboratories, make any representation about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

86

Manual, 08/2014, A5E34078538-AA

Open Source Software

16 This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it.
17 This Makefile.in is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http:www.boost.org/LICENSE_1_0.txt) ----------------------------------------------------------------------------Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyrights:
C) Copyright Jeremy Siek 2000
Copyright 1994 Hewlett-Packard Company
Copyright 1998 by Information Technology Industry Council
Copyright &copy; 2007 Free Software Foundation, Inc
Copyright (C) Microsoft Corporation 1984-2002

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

87

Open Source Software

Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation
Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation
Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2009 Free Software Foundation
Copyright (C) 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2004, 2009 Free Software Foundation
Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2007, 2009 Free Software Foundation
Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2007, 2009 Free Software Foundation
Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2007, 2009 Free Software Foundation
Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation
Copyright (C) 1994, 1999, 2000, 2003, 2005, 2009 Free Software Foundation, Inc.
Copyright (C) 1994, 1999, 2000, 2003, 2009 Free Software Foundation, Inc.
Copyright (C) 1994, 1999, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
Copyright (C) 1994, 1999, 2001, 2003, 2009 Free Software Foundation, Inc.
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

88

Manual, 08/2014, A5E34078538-AA

Open Source Software

Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 2006, 2007, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2009 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2009 Free Software Foundation
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2006, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

89

Open Source Software

Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2004, 2009 Free Software Foundation Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2002, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2004, 2007, 2009 Free Software Foundation Copyright (C) 1997, 1998, 1999, 2000, 2004, 2009 Free Software Foundation Copyright (C) 1997, 1998, 1999, 2001, 2002, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2001, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2002, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 2009, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. Copyright (C) 1997, 1999, 2000, 2001, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 1999, 2001, 2002, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. Copyright (C) 1997-1999, 2001, 2009 Free Software Foundation, Inc. Copyright (C) 1997-1999, 2009 Free Software Foundation, Inc. Copyright (C) 1998, 1999 Greg Colvin and Beman Dawes Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2003, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

90

Manual, 08/2014, A5E34078538-AA

Open Source Software

Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2001, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2001, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2002, 2003, 2005, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2002, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2000, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2000, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2002, 2003, 2004, 2009 Free Software Foundation Copyright (C) 1999, 2001, 2002, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2003, 2004, 2009 Free Software Foundation

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

91

Open Source Software

Copyright (C) 1999, 2001, 2003, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2001, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2001, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2005, 2009 Free Software Foundation Copyright (C) 1999, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2003, 2009 Free Software Foundation Copyright (C) 1999, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 1999, 2009 Free Software Foundation, Inc. Copyright (C) 1999-2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 1999-2001, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002 Free Software Foundation Copyright (C) 2000, 2001, 2002 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

92

Manual, 08/2014, A5E34078538-AA

Open Source Software

Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2005, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2003, 2007, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2009 Free Software Foundation Copyright (C) 2000, 2001, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2001, 2009 Free Software Foundation Copyright (C) 2000, 2002, 2003, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2003, 2004, 2009 Free Software Foundation Copyright (C) 2000, 2002, 2003, 2005, 2009 Free Software Foundation Copyright (C) 2000, 2002, 2003, 2009 Free Software Foundation Copyright (C) 2000, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2004, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2003, 2004, 2009 Free Software Foundation Copyright (C) 2000, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2003, 2009 Free Software Foundation Copyright (C) 2000, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2000, 2005, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

93

Open Source Software

Copyright (C) 2000, 2009 Free Software Foundation, Inc. Copyright (C) 2001 Free Software Foundation, Inc. Copyright (C) 2001 Free Software Foundation, Inc Benjamin Kosnik <bkoz@redhat.com>, 2001. Copyright (C) 2001, 2002, 2003 Peter Dimov Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2004, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2004, 2005, 2006, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

94

Manual, 08/2014, A5E34078538-AA

Open Source Software

Copyright (C) 2001, 2002, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2004, 2005, 2008 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2004, 2005, 2009 Free Software Foundation Copyright (C) 2001, 2002, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2004, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2002, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2005, 2009 Free Software Foundation Copyright (C) 2001, 2003, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2003, 2009 Free Software Foundation Copyright (C) 2001, 2003, 2009 Free Software Foundation Copyright (C) 2001, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2004, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2001, 2009 Free Software Foundation Copyright (C) 2001, 2009 Free Software Foundation, Inc. Copyright (C) 2002 Peter Dimov Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2004, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2004, 2005, 2009 Free Software Foundation Copyright (C) 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

95

Open Source Software

Copyright (C) 2002, 2003, 2004, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2009 Free Software Foundation Copyright (C) 2002, 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2004, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2004, 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2004, 2009 Free Software Foundation Copyright (C) 2002, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002, 2009 Free Software Foundation Copyright (C) 2002, 2009 Free Software Foundation, Inc. Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2007, 2009 Free Software Foundation Copyright (C) 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2009 Free Software Foundation Copyright (C) 2003, 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2006, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

96

Manual, 08/2014, A5E34078538-AA

Open Source Software

Copyright (C) 2003, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2009 Free Software Foundation Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2003, 2009 Free Software Foundation Copyright (C) 2003, 2009 Free Software Foundation, Inc. Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. Copyright (C) 2004, 2005 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2005, 2009 Free Software Foundation Copyright (C) 2004, 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2004, 2009 Free Software Foundation Copyright (C) 2004, 2009 Free Software Foundation, Inc. Copyright (C) 2005 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

97

Open Source Software

Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2005, 2008, 2009 Free Software Foundation Copyright (C) 2005, 2009 Free Software Foundation Copyright (C) 2005, 2009 Free Software Foundation, Inc. Copyright (C) 2006 Free Software Foundation, Inc. Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2006, 2007, 2009 Free Software Foundation Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2006, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2006, 2009 Free Software Foundation Copyright (C) 2006, 2009 Free Software Foundation Copyright (C) 2006, 2009 Free Software Foundation, Inc. Copyright (C) 2006-2007, 2009 Free Software Foundation, Inc. Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2007, 2008, 2009 Free Software Foundation Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2007, 2009 Free Software Foundation Copyright (C) 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2008, 2009 Free Software Foundation Copyright (C) 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2009 Free Software Foundation Copyright (C) 2009 Free Software Foundation, Inc. Copyright (c) 1994 Hewlett-Packard Company Copyright (c) 1996 Silicon Graphics Computer Systems, Inc. Copyright (c) 1996,1997 Silicon Graphics

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

98

Manual, 08/2014, A5E34078538-AA

Open Source Software
Copyright (c) 1996,1997 Silicon Graphics Computer Systems, Inc. Copyright (c) 1996-1997 Silicon Graphics Computer Systems, Inc. Copyright (c) 1996-1998 Silicon Graphics Computer Systems, Inc. Copyright (c) 1996-1999 Silicon Graphics Computer Systems, Inc. Copyright (c) 1997 Silicon Graphics Computer Systems, Inc. Copyright (c) 1997-1999 Silicon Graphics Computer Systems, Inc. Copyright (c) 1998 Silicon Graphics Computer Systems, Inc. Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. Copyright 2008 FSF Copyright Ami Tavory and Vladimir Dreizin, IBM-HRL, 2004, and Benjamin Kosnik, Red Hat, 2004. Copyright © 1999 The Open Group/The Institute of Electrical and Electronics Engineers, Inc. Copyright © 1999 ISO Copyright © 2000 Addison Wesley Longman, Inc. Copyright © 2000 Addison Wesley, Inc. Copyright © 2002 OOPSLA Copyright © 2004, 2005, 2006, 2007 Free Software Foundation, Inc Copyright © 2004, 2005, 2006, 2007 Free Software Foundation, Inc Copyright © 2007 FSF Copyright © 2007 Free Software Foundation, Inc.
Open Source Software: libgcc - 4.4.1 Enclosed you'll find the license conditions and copyright notices applicable for Open Source Software libgcc - 4.4.1

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0)

Manual, 08/2014, A5E34078538-AA

99

Open Source Software
License conditions:
1 GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Under Section 7 of GPL version 3, you are granted additional permissions described in the GCC Runtime Library Exception, version 3.1, as published by the Free Software Foundation. You should have received a copy of the GNU General Public License and a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>.
GCC RUNTIME LIBRARY EXCEPTION
Version 3.1, 31 March 2009
Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This GCC Runtime Library Exception ("Exception") is an additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that bears a notice placed by the copyright holder of the file stating that the file is governed by GPLv3 along with this Exception.
When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception.

100

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software
0. Definitions.
A file is an "Independent Module" if it either requires the Runtime Library for execution after a Compilation Process, or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library.
"GCC" means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions published by the FSF.
"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.
"Target Code" refers to output from any compiler for a real or virtual target processor architecture, in executable form or suitable for input to an assembler, loader, linker and/or execution phase. Notwithstanding that, Target Code does not include data in any format that is used as a compiler intermediate representation, or used for producing a compiler intermediate representation.
The "Compilation Process" transforms code entirely represented in non-intermediate languages designed for human-written code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as starting with the output of the generators or preprocessors.
A Compilation Process is "Eligible" if it is done using GCC, alone or with other GPL-compatible software, or if it is done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC intermediate representations would not qualify as an Eligible Compilation Process.
1. Grant of Additional Permission.
You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules, even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the licensing of the Independent Modules.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

101

Open Source Software

2. No Weakening of GCC Copyleft.
The availability of this Exception does not imply any general presumption that third-party software is unaffected by the copyleft requirements of the license of GCC.

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.

102

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software

Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided),

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

103

Open Source Software
that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.

104

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

105

Open Source Software
a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.

106

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

107

Open Source Software
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.

108

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

109

Open Source Software
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.

110

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

111

Open Source Software
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

112

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

Open Source Software

16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

113

Open Source Software
<program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>. 2 This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it.
Copyrights: Copyright (C) 2003 Free Software Foundation, Inc. Copyright (C) 2005, 2006, 2009 Free Software Foundation Copyright (C) 2007, 2009 Free Software Foundation, Inc. Copyright (C) 2008, 2009 Free Software Foundation, Inc. Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.

114

Technology module TM Timer DIDQ 16x24V (6ES75521AA000AB0) Manual, 08/2014, A5E34078538-AA

SIMATIC
S7-1500/ET 200MP Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Co_n_fig_u_rin_g/_ad_d_re_ss_s_pa_c_e ____4_ _In_te_rru_p_ts/_di_ag_n_os_tic_a_la_rm_s____5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

12/2016
A5E38896703-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E38896703-AA  12/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual includes module-specific information on wiring, diagnostics and the technical specifications of the technology module.
Generally-applicable information on installation and commissioning of the S7-1500 or ET 200MP is available in System Manual "S7-1500, ET 200MP Automation System".

Conventions

Please observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

4

Manual, 12/2016, A5E38896703-AA

Preface
Open Source Software Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information on this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109740777).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

5

Table of contents

Preface ...................................................................................................................................................... 4

1 Documentation guide ................................................................................................................................. 7

2 Product overview ..................................................................................................................................... 11

2.1

Properties............................................................................................................................... 11

2.2 2.2.1 2.2.2

Functions................................................................................................................................ 14 Pulse Train Output (PTO) ...................................................................................................... 14 Isochronous mode ................................................................................................................. 16

3 Connecting .............................................................................................................................................. 17

3.1

Pin assignment....................................................................................................................... 17

4 Configuring/address space ...................................................................................................................... 26

4.1

Configuring............................................................................................................................. 26

4.2

Reaction to CPU STOP ......................................................................................................... 28

4.3

Address space ....................................................................................................................... 28

4.4

Parameters............................................................................................................................. 29

4.5 4.5.1 4.5.2 4.5.3

Control and feedback interface .............................................................................................. 34 Assignment of the control interface........................................................................................ 34 Assignment of the feedback interface.................................................................................... 38 Enabling the pulse output ...................................................................................................... 42

5 Interrupts/diagnostic alarms..................................................................................................................... 44

5.1

Status and error displays ....................................................................................................... 44

5.2

Diagnostic alarms................................................................................................................... 47

6 Technical specifications ........................................................................................................................... 49

A Dimensional drawing ............................................................................................................................... 54

B Parameter data record ............................................................................................................................. 56

B.1

Parameter assignment and structure of the parameter data record...................................... 56

B.2

Parameter validation error ..................................................................................................... 61

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

6

Manual, 12/2016, A5E38896703-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

7

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

8

Manual, 12/2016, A5E38896703-AA

Documentation guide
"mySupport" - CAx data In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

9

Documentation guide

SIMATIC Automation Tool You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

10

Manual, 12/2016, A5E38896703-AA

Product overview

2.1

Properties

Article number 6ES7553-1AA00-0AB0

View of the module

2

Figure 2-1 View of the TM PTO 4 module

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

11

Product overview 2.1 Properties

Introduction

The technology module enables you to connect up to four stepper motor axes to an S7-1500 system. The module is linked to technology objects by means of an implementation of the PROFIdrive frame 3 and forms the interface to the drive. The number of steps that are output is returned as the actual position value.

Properties

The TM PTO 4 technology module has the following properties:  Technical properties
­ 4 channels, quantity can be configured, channel-by-channel parameter assignment ­ Interfaces:
RS422/TTL(5 V) or 24 V pulse output signals P/A and D/B for the PTO function (per channel, max. 1 MHz for RS422, max. 200 kHz for 24 V / TTL (5 V)) Digital input signals DI0 and DI1 for the reference switch, measuring input, ready input functions (per channel) Digital output signal DQ0 for the PTO or drive enable function (per channel) Digital output signal DQ1 for the PTO function (per channel) Digital input/output signal DIQ2 for the drive enable or ready input function (per channel) Supply voltage L+ ­ Configurable diagnostics (per channel) ­ Configurable interpulse period for auto reverse ­ Configurable input delay: none, 0.05 ms ... 20 ms  Supported signal types for pulse output ­ Pulse encoder with direction signal ­ Pulse encoder with forward signal and backward signal ­ Incremental encoder with two signals with a 90° phase shift  Supported system functions ­ Isochronous mode ­ Firmware Update ­ Identification data I&M

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

12

Manual, 12/2016, A5E38896703-AA

Product overview 2.1 Properties

Accessories

The following components are supplied with the technology module and can also be ordered separately as spare parts:  Shield bracket  Shield clamp  Infeed element  Labeling strip  U-connector

Other components The following component needs to be ordered separately:  Front connectors, including potential jumpers and cable ties

See also

For more information on accessories, see System Manual S7-1500, ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

13

Product overview 2.2 Functions

2.2

Functions

2.2.1

Pulse Train Output (PTO)

Applications

Pulse Train Output is a simple and universal interface between a SIMATIC controller and a drive. PTO is supported worldwide by many stepper and servo drives and is used in many positioning applications, such as for adjustment axes and feed axes.
PTO is also referred to as the pulse/direction interface. The pulse/direction interface comprises two signals. The frequency of the pulse output represents the speed and the number of pulses that are output represents the distance to be traversed. The direction output defines the traversing direction. The position specification is thereby accurate to within one increment. The pulse/direction interface is especially well-suited for operation with the technology objects TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis.

Control

The control of the pulse output channels is provided above all with S7-1500 Motion Control by means of the technology objects TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis . The control and feedback interface (Page 34) of the channels is an implementation of the PROFIdrive interface with standard frame 3.
For a detailed description of configuring the technology module with the axis technology objects, see Function Manual S7-1500T Motion Control, section "Configuring", which is available for download on theInternet (https://support.industry.siemens.com/cs/ww/en/view/109481326).

Signal types

The technology module supports the following four signal types:
 Pulse (P) and direction (D): One output (P) controls the pulses and one output (D) controls the direction. D is 'high' (active) when pulses are generated in the negative direction. D is 'low' (inactive) when pulses are generated in the positive direction.

 Positive direction of rotation  Negative direction of rotation

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

14

Manual, 12/2016, A5E38896703-AA

Product overview 2.2 Functions
 Count up (A), count down (B): One output (A) outputs pulses for positive directions and another output (B) outputs pulses for negative directions.

 Positive direction of rotation  Negative direction of rotation
 Incremental encoder (A, B phase-shifted): Output pulses are output by both outputs at the specified velocity, but phase-shifted by 90 degrees. This involves a single pulse output in which the duration of the pulse is the time between two transitions of signal A while signal B is in low state. A positive direction of rotation is generated at a positive edge of signal A while signal B is in low state. A negative direction of rotation is generated at a negative edge of signal A while signal B is in low state.

A precedes B (positive direction of rotation)

A follows B (negative direction of rotation)

Number of pulses

Number of pulses

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

15

Product overview 2.2 Functions

 Incremental encoder (A, B phase-shifted, quadruple): Output pulses are output by both outputs at the specified velocity, but phase-shifted by 90 degrees. This signal type involves a quadruple pulse output in which each edge transition corresponds to one increment. Therefore, a complete period of signal A contains four increments. In this way, it is possible, for example, to use two outputs, each with 100 kHz signal frequency, to output a control signal that supplies 400,000 increments per second. Whether count pulses are generated in the positive or negative direction of rotation depends on the edge direction of one signal and the logic state of the other signal in each case.

A precedes B (positive direction of rotation)

A follows B (negative direction of rotation)

Number of pulses

Number of pulses

2.2.2

Isochronous mode
The technology module supports the system function "isochronous mode" in distributed mode on PROFINET.
In isochronous mode, the cycle of the user program, the transmission of the input and output data and the processing in the technology module are synchronized with each other.

Data processing
At time Ti the current position value is acquired and made available in the feedback interface for retrieval in the current bus cycle. At time To the pulse output is adjusted to the current speed setpoint.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

16

Manual, 12/2016, A5E38896703-AA

Connecting

3

3.1

Pin assignment

You connect the pulse output signals, digital input signals and digital output signals to the 40-pin front connector of the technology module. In addition, you connect the supply voltage for supplying the module and the digital outputs to the 4-pin infeed element.

For information on wiring the front connector, connecting the cable shield, etc., see System ManualS7-1500, ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792), section Wiring.

Pin assignment for the front connector
The table below shows the pin assignment of the front connector for the respective signal interface.

Table 3- 1 Pin assignment of the front connector

View

Signal name

Channel 0

1 CH0.P/A

2 /CH0.P/A

3 CH0.D/B

4 /CH0.D/B

5 DQ0.0

6 DQ0.1

7 DI0.0

8 DI0.1

9 DIQ0.2

Channel 1

10 CH1.P/A

11 /CH1.P/A

12 CH1.D/B

13 /CH1.D/B

14 DQ1.0

15 DQ1.1

16 DI1.0

17 DI1.1

18 DIQ1.2

19

--

20

24 V, asymmetrical --
Pulse signal P/A Pulse signal D/B
--
Pulse signal P/A Pulse signal D/B

Designation RS422, symmetrical

TTL (5 V), asymmetrical

Pulse signal P/A Inverted pulse signal P/A
Pulse signal D/B Inverted pulse signal D/B
Digital output DQ0 --
Digital input DI0 Digital input DI1 Digital input/output DIQ2

Pulse signal P/A --
Pulse signal D/B --
Digital output DQ0 --

Pulse signal P/A Inverted pulse signal P/A
Pulse signal D/B Inverted pulse signal D/B
Digital output DQ0 --
Digital input DI0 Digital input DI1 Digital input/output DIQ2
--

Pulse signal P/A --
Pulse signal D/B --
Digital output DQ0 --

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

17

Connecting 3.1 Pin assignment

View

Signal name

Channel 2

21 CH2.P/A

22 /CH2.P/A

23 CH2.D/B

24 /CH2.D/B

25 DQ2.0

26 DQ2.1

27 DI2.0

28 DI2.1

29 DIQ2.2

Channel 3

30 CH3.P/A

31 /CH3.P/A

32 CH3.D/B

33 /CH3.D/B

34 DQ3.0

35 DQ3.1

36 DI3.0

37 DI3.1

38 DIQ3.2

39

M

40

M

24 V, asymmetrical

Designation RS422, symmetrical

TTL (5 V), asymmetrical

--
Pulse signal P/A Pulse signal D/B

Pulse signal P/A Inverted pulse signal P/A
Pulse signal D/B Inverted pulse signal D/B
Digital output DQ0 --
Digital input DI0 Digital input DI1 Digital input/output DIQ2

Pulse signal P/A --
Pulse signal D/B --
Digital output DQ0 --

--

Pulse signal P/A

Pulse signal P/A

Inverted pulse signal P/A

--

Pulse signal D/B

Pulse signal D/B

Inverted pulse signal D/B

--

Pulse signal P/A

Digital output DQ0

Digital output DQ0

Pulse signal D/B

--

--

Digital input DI0

Digital input DI1

Digital input/output DIQ2

Ground for digital outputs, digital inputs and pulse signals of the technology module

Note Use of jumper links in the front connector is not permitted.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

18

Manual, 12/2016, A5E38896703-AA

Connecting 3.1 Pin assignment
Pin assignment for the infeed element The infeed element is inserted into the front connector and serves to supply power to the technology module. You must connect the supply voltage to terminal 41 (L+) and terminal 44 (M) for this.

Figure 3-1 Infeed element wiring

L+

24 V DC supply voltage

M

Ground for supply voltage

Behavior of the digital outputs following a wire break at the ground connection of the outputs
Due to the characteristics of the output driver used in the module, a wire break causes approximately 10 mA supply current to drain from the digital outputs via a parasitic diode. This behavior may lead to a high signal state even at outputs that are not set. Depending on the nature of the load, 10 mA may be enough to activate a load with high signal state.
Duplicate wiring of ground
To prevent unintended switching of the outputs in the event of a ground connection wire break, follow these steps:
1. Route the first ground connection from terminal 44 to the ground connection of the central power supply of the system.
2. Route the second ground connection from terminal 43 to the ground connection of the central power supply of the system.
If one of the two ground connection cables is interrupted, the outputs are maintained at the required potential by the remaining ground connection.
WARNING
Wire break at ground connection Always connect two cables to the ground connection of the central power supply of the system.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

19

Connecting 3.1 Pin assignment
Circuit diagram The figure below shows an example circuit diagram of the technology module. In this example, four channels are used with the RS422, 5 V-TTL and 24 V signal interfaces:

          , 

Electrical isolation Technology and backplane bus interface Input filter for supply voltage Supply voltage via infeed element Duplicate wiring to the ground connection of the central power supply of the system Shield connection at the front connector Equipotential bonding LEDs per channel Twisted-pair cables Motor with drive stage at RS422 signal interface Motor with drive stage at 24 V signal interface Motor with drive stage at TTL signal interface

Figure 3-2 Circuit diagram when using RS422, 5 V-TTL and 24 V signal interfaces

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

20

Manual, 12/2016, A5E38896703-AA

Connecting 3.1 Pin assignment

Supply voltage L+/M
Connect the supply voltage (24 V DC) to the L+ and M connections. An internal protective circuit protects the technology module from polarity reversal of the supply voltage. The technology module monitors the connection of the supply voltage.
ThePWR LED (Page 44) at terminal 19 indicates the presence of supply voltage.

RS422/TTL and 24 V pulse output signals
The technology module can output pulse signals either via the RS422/TTL or 24 V signal interface for each channel. The pulse signals are designated with P/A and D/B.
A TTL pulse signal and a 24 V pulse signal use a single wire. An RS422 pulse signal uses a pair of wires and the pulse information is transmitted as differential voltage. This ensures interference-free transmission of RS422 encoder signals, even of higher-frequency signals over longer distances. The RS422 wire pairs must be twisted in the cable and terminated with a 100  resistance.
For an overview of the signal types you can output, see section Pulse Train Output (PTO) (Page 14).
When the RS422/TTL signal interface is used, you connect the P/A signal to the Chn.P/A connections and the D/B signal to the CHn.D/B connections. When the 24 V signal interface is used, you connect the P/A signal to digital output DQn.0 and the D/B signal to digital output DQn.1. When the 5 V TTL signal interface is used, you must provide a resistance of 220  to 1 k between connection CHn.P/A and ground M as well as between connection CHn.D/B and ground M.
The outputs of the channels are not electrically isolated from each other. The outputs are electrically isolated from the backplane bus.

Digital inputs DI0, DI1 and DIQ2
Up to three digital inputs are available per channel. The digital inputs are used for additional functions for the respective drive control:

Function Reference switch input
Measuring input
"Drive ready" input

Meaning
You can use a reference switch at digital input DIn.0 to synchronize the reference mark with the current position of the drive axis.
You can use a measuring input at digital input DIn.1 to save the current position of the drive axis.
You can use digital input DIn.0, DIn.1 or DIQn.2 as an input for the ready signal of the drive.

The digital inputs of the channels are not electrically isolated from each other. The digital inputs are electrically isolated from the backplane bus.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

21

Connecting 3.1 Pin assignment

Interpulse period following auto reverse You can configure the minimum amount of time the technology module must pause the pulse output following reversal of the direction of rotation. After the interpulse period elapses, the pulse output is resumed.
You can specify the following values for the interpulse period:
 0 (default)
 1 ms
 4 ms
 10 ms

Input delay

This parameter can be used to suppress signal noise at the digital inputs of a channel. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. You can specify the following values for the input delay:  None
(input delay of 4 s, minimum pulse width of 3 s)  0.05 ms  0.1 ms (default)  0.4 ms  0.8 ms  1.6 ms  3.2 ms  12.8 ms  20 ms

Note
If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

22

Manual, 12/2016, A5E38896703-AA

Connecting 3.1 Pin assignment
Digital outputs DQ0, DQ1 and DIQ2 Up to three digital outputs are available per channel. When you use the "RS422, symmetrical / TTL (5 V), asymmetrical" signal interface, you can use digital output DQn.0 to enable the drive. When the "24 V, asymmetrical" signal interface is used, you connect the P/A signal to digital output DQn.0 and the D/B signal to digital output DQn.1. In this case, you can use digital output DIQn.2 to enable the drive. The digital outputs of the channels are not electrically isolated from each other. The digital outputs are electrically isolated from the backplane bus. The digital outputs are 24 V current-sourcing switches in relation to M. DQn.0 and DQn.1 can be loaded with 0.1 A rated load current and DQn.2 can be loaded with 0.5 A rated load current. The digital outputs are protected from overload and short-circuit.
Note Relays and contactors can be connected direct without external circuitry.
Possible combinations of the DI and DQ functions The possible combinations of additional DI and DQ functions are dependent on the signal interface:  Reference switch input (RS, Reference Switch)  Measuring input (MI, Measuring Input)  "Drive ready" input (DR, Drive Ready)  Drive enable output (ED, Enable Drive)

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

23

Connecting 3.1 Pin assignment

When you use the "RS422, symmetrical / TTL (5 V), asymmetrical" signal interface, you have the following possible combinations for the named functions:

Table 3- 2 Possible combinations for "RS422, symmetrical / TTL (5 V), asymmetrical" signal interface

DIn.0
-- RS RS RS RS RS RS RS RS -- -- -- -- DR DR DR DR DR DR -- -- -- RS RS RS

DIn.1
-- -- -- -- -- MI MI MI MI MI MI MI MI -- -- -- MI MI MI DR DR DR DR DR DR

Input -- -- DR DR -- -- DR DR -- -- DR DR -- -- -- -- -- -- -- -- -- -- -- -- --

DIQn.2 Output -- -- -- -- ED -- -- -- ED -- -- -- ED -- -- ED -- -- ED -- -- ED -- -- ED

DQn.0
-- -- -- ED -- -- -- ED -- -- -- ED -- -- ED -- -- ED -- -- ED -- -- ED --

DQn.1
Not supported

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

24

Manual, 12/2016, A5E38896703-AA

Connecting 3.1 Pin assignment

When you use the "24 V, asymmetrical" signal interface, you have the following possible combinations for the named functions:

Table 3- 3 Possible combinations for "24 V, asymmetrical" signal interface

DIn.0
-- RS -- RS -- RS RS RS RS -- -- -- DR DR DR DR -- -- RS RS

DIn.1
-- -- -- -- -- -- MI MI MI MI MI MI -- -- MI MI DR DR DR DR

Input -- -- DR DR -- -- -- DR -- -- DR -- -- -- -- -- -- -- -- --

DIQn.2 Output -- -- -- -- ED ED -- -- ED -- -- ED -- ED -- ED -- ED -- ED

DQn.0 P/A signal

DQn.1 D/B signal

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

25

Configuring/address space

4

4.1

Configuring

Introduction

The technology module is configured and assigned parameters with the configuration software.
The technology module functions are controlled and monitored by the user program.

System environment The technology module can be used in the following system environments:

Table 4- 1 Possible applications of the technology module

Possible applications
Central operation in an S7-1500 system

Components required
· S7-1500 automation system
· TM PTO 4

Distributed opera- · tion in an S7-1500 system ·
·

S7-1500 automation system
ET 200MP distributed I/O system
TM PTO 4

Distributed opera- · tion in an S7-1200 system ·
·

S7-1200 automation system
ET 200MP distributed I/O system
TM PTO 4

Distributed opera- ·

tion in an

S7-300/400 sys-

tem

·

·

S7-300/400 automation system
ET 200MP distributed I/O system
TM PTO 4

Configuration software

In the user program

STEP 7 (TIA Portal):
· Device configuration and parameter setting with hardware configuration

Motion Control instructions

· Parameter setting with axis technology object for Motion Control

STEP 7 (TIA Portal):

· Device configuration and parameter setting with hardware configuration
· Parameter setting with axis technology object for Motion Control
(PROFINET IO and PROFIBUS DP1)
STEP 7 (TIA Portal):

· Device configuration and parameter setting with hardware configuration

· Parameter setting with TO_PositioningAxis technology object
(PROFINET IO and PROFIBUS DP1)

STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration (PROFINET IO and PROFIBUS DP1)
STEP 7:
Device configuration and parameter setting of the module with GSD file (PROFINET IO)

Direct access to control and feedback interface (Page 34) of the technology module control in the IO data

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

26

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.1 Configuring

Possible applications

Components required

Distributed opera- · Third-party automation

tion in a third-

system

party system

· ET 200MP distributed I/O

system

· TM PTO 4

Configuration software
Third-party configuration software: Device configuration and parameter setting of the module with GSD file (PROFINET IO)

In the user program

1 When using the technology module on PROFIBUS DP, you can use a maximum of three channels.

Control using a technology object
For a detailed description of configuring the technology module with axis technology objects TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis, refer to the following:
 Function Manual S7-1500T Motion Control, section "Configuring", which is available for download on theInternet (https://support.industry.siemens.com/cs/ww/en/view/109481326)
 Information system of STEP 7 (TIA Portal), under "Using technology functions > Motion Control > Motion Control (S7-1200, S7-1500, S7-1500T) > Configuring (S7-1500, S7-1500T) > Configuring technology modules for Motion Control (S7-1500, S7-1500T)"

Hardware Support Package (HSP)
If the technology module is not yet integrated in your TIA Portal version, you can integrate it as of TIA Portal V14 with HSP0181.
The Hardware Support Packages (HSP) are available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852).
Alternatively, they can be accessed for downloading via the menu bar of STEP 7 (TIA Portal): "Options > Support Packages > Download from the Internet".

GSD file for PROFINET IO
The GSD file for the ET 200MP distributed I/O system on PROFINET IO is available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/68189683).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

27

Configuring/address space 4.2 Reaction to CPU STOP

4.2

Reaction to CPU STOP
The following overview shows the reaction of the technology module to a transition of the CPU to STOP. The reaction is not configurable.

Table 4- 2 Reaction of technology module to CPU STOP

RUN-STOP transition STOP-RUN transition

Reaction of technology module
The technology module executes a Coast Stop (OFF2), which causes the pulse output to stop. If you are using a drive enable, the corresponding digital output is reset immediately.
The control interface is no longer evaluated. The feedback interface continues returning the last acquired values. The feedback interface continues signaling diagnostic information using the Fault_Present and Sensor_Error bits.
Active functions, such as for the reference switch, are aborted.
The configuration of the technology module is not reset. The feedback interface keeps the last acquired position value (G1_XIST1).

4.3

Address space

Address space of the technology module

Table 4- 3 Range of the input addresses and output addresses of the TM PTO 4

Channel configuration
1 channel 2 channels 3 channels 4 channels

Address space Inputs 18 bytes 36 bytes 54 bytes 72 bytes

Outputs 10 bytes 20 bytes 30 bytes 40 bytes

Additional information
For a description of the control and feedback interface of the technology module, see section Control and feedback interface (Page 34).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

28

Manual, 12/2016, A5E38896703-AA

4.4

Configuring/address space 4.4 Parameters

Parameters
You can use various parameters to define the properties of the technology module. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 56).
You have the following options for setting the module's parameters:

Parameter setting via ...
Hardware configuration in STEP 7 (TIA Portal) with HSP in the case of centralized operation in an S7-1500 system

Basic procedure
1. Install the appropriate HSP file. 2. Select an appropriate CPU under "Add new device > Control-
ler > SIMATIC S7-1500".
3. Select the module in the hardware catalog under "Technology modules".
4. Set the device configuration and the parameters of the module in the hardware configuration.
5. Set the parameters of the technology object. 6. Download the parameter assignment to the module.

Hardware configuration in STEP 7 (TIA Portal) with HSP in the case of distributed operation in an S7-1500 system

1. Install the appropriate HSP file.
2. Select an appropriate IM in the hardware catalog under "Distributed I/O > ET200MP".
3. Select the module in the hardware catalog under "Technology modules".
4. Set the device configuration and the parameters of the module in the hardware configuration.
5. Set the parameters of the technology object.
6. Download the parameter assignment to the module.

Hardware configuration using GSD file for distributed operation on the PROFINET IO

1. Install the current PROFINET GSD file.
2. Select an appropriate IM in the hardware catalog under "Other field devices > PROFINET IO > I/O".
3. Select the module in the hardware catalog under "Technology modules".
4. Set the parameters of the module in the hardware configuration.
5. Download the parameter assignment to the module.

You will find the parameters in the following table.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

29

Configuring/address space 4.4 Parameters

Parameters of the TM PTO 4 The following parameter settings are possible:

Table 4- 4 Configurable parameters and their defaults

Parameter

Value range

Default setting

Channel configuration
Signal type
Signal interface
Interpulse period following auto reverse Enable diagnostic interrupts Increments per revolution Reference speed Maximum speed

· 4 channels · 3 channels

4 channels

· 2 channels

· 1 channel

· Pulse (P) and direction (D)

Pulse (P) and direction (D)

· Count up (A), count down (B)

· Incremental encoder (A, B phaseshifted)

· Incremental encoder (A, B phaseshifted, quadruple)

· 24 V, asymmetrical
· RS422, symmetrical / TTL (5 V), asymmetrical

24 V, asymmetrical

· 0 ms

0 ms

· 1 ms · 4 ms

· 10 ms

· Disabled

Disabled

· Enabled

1...1000000

200

1,0...20000,0 U/min 3000,0
Dependent on signal 3000,0 interface, signal evaluation, increments per revolution and reference speed (see following table)

Re-configuration in RUN
No

Effective range with configuration software: HSP or GSD file for PROFINET IO
Module

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

30

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.4 Parameters

Parameter

Value range

Default setting

Quick stop time (OFF3) Ramp stop time (OFF1) Use drive enable Drive enable output Use DI0 as reference switch Reference switch edge selection Use DI1 as measuring input Use "Drive ready" "Drive ready" input
Input delay
Tolerated number of sign-of-life errors

1...65535 ms 1...65535 ms · Disabled · Enabled
· DQ0 · DIQ2
· Disabled · Enabled
· At positive edge · At negative edge
· Disabled · Enabled
· Disabled · Enabled
· DI0 · DI1 · DIQ2
· None · 0.05 ms · 0.1 ms · 0.4 ms · 0.8 ms · 1.6 ms · 3.2 ms · 12.8 ms · 20 ms 0...65535

1000 ms 5000 ms Disabled DQ0 Disabled At positive edge Disabled Disabled DI0 0.1 ms
1

Re-configuration in RUN
Yes Yes Yes

Effective range with configuration software: HSP or GSD file for PROFINET IO
Channel
Channel
Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Yes

Channel

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

31

Configuring/address space 4.4 Parameters

The following table shows the calculation of the value range of the maximum speed:

Table 4- 5 Value range of the maximum speed

Signal interface
24 V, asymmetrical TTL (5 V), asymmetrical RS422, symmetrical

Value range of the maximum speed

Low limit

High limit (the smaller of the two values applies)

Signal evaluation "Single"
0.1 Hz * 60 / (increments per revolution)

Signal evaluation "Quadruple"
0.1 Hz * 60 *4 / (increments per revolution)

Signal evaluation "Single"

Signal evaluation "Quadruple"

· 2 * reference speed · 2 * reference speed

· 200000 Hz * 60 /

· 200000 Hz * 60 *4 /

(increments per revo-

(increments per revo-

lution)

lution)

· 2 * reference speed · 2 * reference speed

· 1000000 Hz * 60 / · 1000000 Hz * 60 *4 /

(increments per revo-

(increments per revo-

lution)

lution)

Description of parameters

Parameter Channel configuration
Signal type Signal interface

Description Selection of the number of channels used. The channels are assigned in ascending order.
Selection of the type of PTO pulse output (Page 14).
Selection of the interface used for the pulse output:

· 24 V, asymmetrical: The channel outputs 24 V signals at terminals DQm.0 and DQm.1.

· RS422, symmetrical / TTL (5 V), asymmetrical: The channel outputs either RS422 signals at terminals P/A and D/B and the respective inverted terminals or 5 V TTL signals at terminals P/A and D/B.

Interpulse period follow- Selection of the minimum time between a change in direction and the out-

ing

put of the first pulse in the new direction.

auto reverse

Enable diagnostic interrupts

Enables the following diagnostic interrupts (Page 47): · Supply voltage missing

Increments per revolution

· Error at digital outputs
The detected error is indicated for the respective channel with feedback bits (Page 38)Fault_Present and Sensor_Error.
Input of the number of steps (also micro steps) that correspond to one revolution of the drive.
This parameter must match the "Increments per revolution" parameter in the "Data exchange with encoder" tab of the axis technology object.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

32

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.4 Parameters

Parameter Reference speed
Maximum speed
Bits in incr. actual value (G1_XIST1)
Quick stop time (OFF3)
Ramp stop time (OFF1) Use drive enable Drive enable output Use DI0 as reference switch
Reference switch edge selection
Use DI1 as measuring input
Use "Drive ready" "Drive ready" input
Input delay
Tolerated number of sign-of-life errors

Description Input of the speed at which the drive rotates with a speed setpoint of 100%. The permitted value range for the speed setpoint is -200% ... +200%. This parameter must match the "Reference speed" parameter in the "Data exchange with drive" tab of the axis technology object.
Input of the maximum permitted speed for the application. The value must not exceed twice the reference speed. This parameter must match the "Maximum speed" parameter in the "Data exchange with drive" tab of the axis technology object.
Specifies the number of bits for the fine resolution coding in the incremental actual position value G1_XIST1. The value is always "0" for this module. This parameter must match the "Bits in incr. actual value (Gn_XIST1)" parameter in the "Data exchange with encoder" tab of the axis technology object.
Input of the time taken to execute a fast stop from maximum speed to standstill.
Input of the time taken to execute a stop from maximum speed to standstill.
Enables use of the drive enable signal at a hardware output (Page 17).
Selection of the hardware output (Page 17) that is used to enable the drive. Only available for selection and effective if "Use drive enable" is enabled.
Enables use of the reference switch signal at the hardware input DI0 (Page 17). You can synchronize the reference mark with the current position of the drive axis using the reference switch signal.
Selection of the edge at DI0 that triggers detection of the reference mark. Only available for selection and effective if "Use DI0 as reference switch" is enabled.
Enables use of the measuring input signal at hardware input DI1 (Page 17). You can save the current position of the drive axis using the measuring input signal.
Enables use of the ready signal of the drive at a hardware input (Page 17).
Selection of the hardware input (Page 17) to which the ready signal of the drive is connected and read in. Only available for selection and effective if "Use "Drive ready"" is enabled.
Selection of the input delay for the signal at the respective digital input for noise suppression. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. The input delay applies to all the used hardware inputs of the channel.
Input of how many Master Sign-Of-Life errors are tolerated by the module. If the number is exceeded, this triggers an error message via return bit (Page 38) Sensor_Error. 65535 means: No monitoring for sign-of-life errors

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

33

Configuring/address space 4.5 Control and feedback interface

4.5

Control and feedback interface

Direct access to the control and feedback interface is not needed for use of the module in an S7-1500 or S7-1200 system. For this case an S7-1500 system has the TO_SpeedAxis, TO_PositioningAxis and TO_SynchronousAxis technology objects, and an S7-1200 system has the TO_PositioningAxis technology object. For a detailed description of configuring the technology module with the axis technology objects, see Function Manual S7-1500T Motion Control, section "Configuring", which is available for download on theInternet (https://support.industry.siemens.com/cs/ww/en/view/109481326).

The control and feedback interface of the channels is a partial implementation of the PROFIdrive interface "frame 3". Additional information on using the control and feedback interface is available in the section Configuring (Page 26).

4.5.1

Assignment of the control interface
The user program uses the control interface to influence the behavior of the technology module.

Control interface The following table shows control interface assignment:

Table 4- 6 Control interface of the technology module

Byte offset from start address
 0...1
0
1
2...5
6...7
6 7

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

STW1: Control word 1

Reserved1

Control_ by_PLC

Fault_ Acknowledge

Enable_ Setpoint

Unfreeze_ Ramp_ Generator6

Enable_ Ramp_ Generator

Enable_ Operation

No_Quick_ Stop_OFF3

NSOLL_B: DINT: Normalized speed setpoint in N4 format

STW2: Control word 2

UINT: Master_Sign-Of-Life

Reserved1

Reserved1

Bit 1
Reserved1 No_Coast_ Stop_OFF2

Bit 0 On_OFF1

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

34

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.5 Control and feedback interface

Byte offset from start address

8...9

Bit 7

8

Acknowl-

edging_

Sensor_

Error

9

Mode

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Activate_ Parking_ Sensor7
Command_ 2_Request

Request_ Absolute_ value_ Cyclically3
Command_ 1_Request

G1_STW: Encoder control word
Request_ Home_ Set_Home_ Position_ Position2 Mode2

Reserved1

Command_ Function_4_ Function_3_ Function_2_ Function_1_ 0_Request Request 4,5 Request 4,5 Request 5 Request

1 Must be set to 0. 2 This command is not supported by the module. If you set the bit, error code F01H is returned in G1_XIST2. 3 This command is not supported by the module. If you set the bit, error code 8H is returned in G1_XIST2. 4 This command is not supported for the "Acquire measuring input value" function. If you set the bit, error code 6H is
returned in G1_XIST2. 5 This command is not supported for the "Detect reference mark" function. If you set the bit, error code 4H is returned in
G1_XIST2. 6 This command is not supported by the module. The bit is not evaluated. 7 This command is not supported by the module. If you set the bit, error code 3H is returned in G1_XIST2.

Description of control bits

Control bit/value STW1 Control_by_PLC
On_OFF1 No_Coast_Stop_OFF2
No_Quick_Stop_OFF3
Enable_Operation

Description
0 means: Coast Stop (OFF2): Pulse output cannot be controlled by the user program on the CPU. 1 means: Valid values for control of the pulse output will be sent to the module from the user program on the CPU. 0 means: OFF1: The pulse output returns to state S2 (Page 42). If you are using a drive enable, the corresponding digital output is reset as soon as the drive comes to a standstill. 1 means: Pulse output is switched on. 0 means: Coast Stop (OFF2): The pulse output is stopped and returns to state S1 (Page 42). If you are using a drive enable, the corresponding digital output is reset immediately. 1 means: The "Coast Stop (OFF2)" command is withdrawn. 0 means: Quick stop (OFF3): The drive stops within the configured quick stop time. The pulse output is stopped and returns to state S1 (Page 42). If you are using a drive enable, the corresponding digital output is reset as soon as the drive comes to a standstill. 1 means: The "Quick stop (OFF3)" command is withdrawn. 0 means: The pulse output returns to state S3 (Page 42). 1 means: Pulse output is enabled. The drive accelerates to the speed setpoint.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

35

Configuring/address space 4.5 Control and feedback interface

Control bit/value

Description

Enable_Ramp_Generator

0 means: The pulse output is stopped but remains in state S4 (Page 42).

1 means: Each speed change is controlled along on a ramp by the ramp generator.

Enable_Setpoint

0 means: The ramp generator stops the drive within the configured ramp stop time. State S4 (Page 42) is retained. 1 means: The speed setpoint is specified in NSOLL_B for the ramp generator.

Fault_Acknowledge

You use this bit to acknowledge an error.

NSOLL_B

You use this value to specify the setpoint for the drive axis velocity as a percentage in N4 format.

The permitted value range for the speed setpoint is -200% ... +200%1 of the reference speed. The DINT value maps the value range linearly. This means 100% corresponds to the value 40000000H. The resolution is 9.3 * 10-8%.

STW2

Master_Sign-Of-Life

When you control the module in isochronous mode using technology objects, this value is used by the technology object as the Master sign-of-life.

When you control the module in non-isochronous mode without technology objects, you must set this value to 0. When you control the module in isochronous mode without a technology object, we recommend that you also set this value to 0.

G1_STW

Acknowledging_Sensor_Error You use this bit to acknowledge an error that occurred during feedback of the actual encoder value.

Function_1_Request

When you use the "Reference mark search" function, you use this bit to specify that the reference mark is to be detected using the configured edge (Page 56) of reference switch input DIn.0 and saved in G1_XIST2.

When you use the "Measurement on the fly" function, you use this bit to specify that a measuring input value is to be acquired using the positive edge of digital input DIn.1 and saved in G1_XIST2.

Function_2_Request

You use this bit to specify that a measuring input value is to be acquired using the negative edge of digital input DIn.1.

Command_0_Request, Command_1_Request, Command_2_Request

You use this value to specify how the function selected with the Mode bit will be used: 000 means: Do nothing 001 means: Enable function

010 means: Read out value in G1_XIST2

011 means: Disable function

100 to 111 means: Invalid

Mode

0 means: Reference mark search: Detect reference mark using the configured edge of reference switch input DIn.0

1 means: Measurement on the fly: Acquire measuring input value using measuring input DIn.1

1 The exact maximum speed setpoint is +(200  2-30)%

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

36

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.5 Control and feedback interface Reference mark search The following figure shows an example of the sequence of the detection and readout of the reference mark:
Figure 4-1 Detecting the reference mark
Measurement on the fly The following figure shows an example of the sequence of the acquisition and the readout of the measuring input value:

Figure 4-2 Acquiring the measuring input value

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

37

Configuring/address space 4.5 Control and feedback interface

4.5.2

Assignment of the feedback interface
The user program receives current values and status information from the technology module by means of the feedback interface.

Feedback interface The following table shows the assignment of the feedback interface:

Table 4- 7 Feedback interface of the technology module

Byte offset from start address
 0...1
0
1
2...5 6...7
6 7 8...9 8
9 10...13 14...17

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

ZSW1: Status word 1

Reserved

f_or_n_ reached_ or_ exceeded

Control_

Reserved

Requested

Reserved

Switching_ On_ Inhibited

Quick_ Stop_Not_ Activated_ OFF3

Coast_ Stop_Not_ Activated_ OFF2

Fault_ Present

Operation_ Enabled

Ready_

Ready_

To_Operate To_Switch_

On

NIST_B: DINT: Current normalized actual speed value in N4 format

ZSW2: Status word 2

UINT: Slave_Sign-Of-Life

Reserved

Reserved

G1_ZSW: Encoder status word

Sensor_ Error

Parking_ Sensor_ Executed1

Transmit_ Absolute_ Value_ Cyclically1

Reserved

Requirement_of_ Acknowledgement_ Detected

Reserved

Probe_1_D eflected

Reserved

Value_2_ Active

Value_1_ Active

Reserved

Function_2_ Function_1_

Active

Active

G1_XIST1: DINT: Current actual encoder value

G1_XIST2: DINT: Error code or measuring input value or reference mark

1 Not supported by the module.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

38

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.5 Control and feedback interface

Description of feedback bits

Feedback bit/value ZSW1 Control_Requested
f_or_n_reached_or_ exceeded Ready_To_Switch_On Ready_To_Operate Operation_Enabled Fault_Present
Coast_Stop_Not_ Activated_OFF2 Quick_Stop_Not_ Activated_OFF3 Switching_On_Inhibited NIST_B
ZSW2 Slave_Sign-Of-Life
G1_ZSW Probe_1_Deflected
Requirement_of_ Acknowledgement_Detected Sensor_Error
Function_1_Active
Function_2_Active
Value_1_Active
Value_2_Active

Description
This bit indicates that the module is ready to receive values from the user program for controlling the pulse output. This bit indicates that the actual speed value has reached or exceeded the configured maximum speed. This bit indicates that the pulse output is ready to switch on. This bit indicates that the pulse output is ready to operate. This bit indicates that operation of the drive is enabled and the speed setpoint is being output. This bit indicates that a fault has occurred in the supply voltage or at a digital output. Error code 1H is returned. This bit indicates that the drive will not perform a Coast Stop (OFF2).
This bit indicates that the drive will not perform a Quick Stop (OFF3)
This bit indicates that the pulse output is not yet ready to switch on. This value indicates the actual value of the drive axis velocity as a percentage in N4 format relative to the reference speed.
When you control the module in isochronous mode using technology objects, this value is used by the technology object as the Slave sign-of-life. When you control the module without technology objects, this bit is set to 0.
When you use the "Measurement on the fly" function, this bit indicates the state of digital input DIn.1. This bit indicates that the acknowledgement of an error is being processed.
This bit indicates that an error has occurred during feedback of position value G1_XIST1. The meaning of the returned error codes can be found in the following table. If you use the "Reference mark search" function, this bit indicates that use of reference switch input DIn.0 is enabled. When you use the "Measurement on the fly" function, this bit indicates that use of the positive edge of measurement sensing input DIn.1 is enabled. This bit indicates that use of the negative edge of measurement sensing input DIn.1 is enabled. When you use the "Reference mark search" function, this bit indicates that the reference mark has been saved in G1_XIST2 using reference switch input DIn.0. When you use the "Measurement on the fly" function, this bit indicates that a measuring input value has been saved in G1_XIST2 using the positive edge of digital input DIn.1. This bit indicates that a measuring input value has been saved in G1_XIST2 using the negative edge of digital input DIn.1.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

39

Configuring/address space 4.5 Control and feedback interface

Feedback bit/value G1_XIST1
G1_XIST2

Description
This value is the incremental actual position value. G1_XIST1 corresponds to the number of output pulses, which control the speed of the drive.
If an error has occurred, G1_XIST2 indicates the associated error code. For the meaning of the error codes, see the table below.
When you use the "Reference mark search" function, this value returns the detected reference mark.
When you use the "Measurement on the fly" function, this value returns the acquired measuring input value.

Error codes

G1_XIST2 can contain the following error codes:

Error code 1H
3H 4H
5H
6H

Name

Meaning

Sensor group error
Sensor pause failed Reference mark detection aborted
Read reference mark aborted
Measuring input value acquisition aborted

G1_XIST1 is invalid. One of the following errors occurred during feedback of the actual position value.
· Missing supply voltage · Undervoltage · Short-circuit or overload at the digital output
A sensor pause (Sensor parking) is not supported.
· The Function_2_Request, Function_3_Request or Function_4_Request bit was set to 1 while the "Reference mark search" function was active.
· The Mode bit was set to 1 while the "Reference mark search" function was active.
· CPU STOP while the "Reference mark search" function was active.
· G1_XIST2 does not contain a valid value for the reference mark.
· The Mode bit was set to 1 while the reference mark was being read from G1_XIST2.
· CPU STOP while the reference mark was being read from G1_XIST2.
· The Function_3_Request or Function_4_Request bit was set to 1 while the "Measurement on the fly" function was active.
· The Mode bit was set to 0 while the "Measurement on the fly" function was active.
· CPU STOP while the "Measurement on the fly" function was active.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

40

Manual, 12/2016, A5E38896703-AA

Configuring/address space 4.5 Control and feedback interface

Error code 7H
8H F01H F02H

Name

Meaning

Read measuring input value aborted
Absolute value acquisition aborted Command not supported Sign-of-life error (Master Sign-Of-Life)

· G1_XIST2 does not contain a valid value of the measuring input.
· The Mode bit was set to 0 while the measuring input value was being read from G1_XIST2.
· CPU STOP while the measuring input value was being read from G1_XIST2.
The Request_Absolute_value_Cyclically bit is not supported by the module. The module returns only incremental encoder values. The command is not supported by the module.
The number of tolerated errors of the Master sign-of-life (control value Master_Sign-Of-Life) was exceeded.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

41

Configuring/address space 4.5 Control and feedback interface

4.5.3

Enabling the pulse output

State diagram

The following figure shows the state diagram for enabling the pulse output:

Figure 4-3 State diagram for the operation enable
42

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0) Manual, 12/2016, A5E38896703-AA

Procedure

Configuring/address space 4.5 Control and feedback interface
To enable the pulse output, follow these steps:
1. Set the Control_by_PLC, Enable_Setpoint and Enable_Ramp_Generator control bits to TRUE and the On_OFF1, No_Coast_Stop_OFF2, No_Quick_Stop_OFF3 and Enable_Operation bits to FALSE. State S1 is reached: Switching on of the pulse output is still inhibited. The feedback bit Switching_On_Inhibited is set to TRUE.
2. Set the On_OFF1 and No_Quick_Stop_OFF3 control bits to TRUE. State S2 is reached: The pulse output is ready to switch on. The feedback bit Ready_To_Switch_On is set to TRUE. The feedback bit Switching_On_Inhibited is set to FALSE.
3. Set the On_OFF1 control bit to TRUE. State S3 is reached: The pulse output is ready to switch on. The feedback bit Ready_To_Operate is set to TRUE.
4. Set the Enable_Operation control bit to TRUE.
5. If you have configured a drive enable output, set it to high level. The drive is enabled.
6. If you have configured a ready input, wait for the ready signal of the drive. As soon as the ready input is at high level, state S4 is reached: Operation is enabled. The pulse output starts. The feedback bit Operation_Enabled is set to TRUE.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

43

Interrupts/diagnostic alarms

5

5.1
LEDs

Status and error displays
The figure below shows the LED displays (status and error displays) of the TM PTO 4.

Figure 5-1 LED displays of the TM PTO 4

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

44

Manual, 12/2016, A5E38896703-AA

Interrupts/diagnostic alarms 5.1 Status and error displays

Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in the section Diagnostic alarms (Page 47).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

RUN Off
Flashes On On
Flashes

LEDs ERROR
Off
Off Off Flashes Flashes

MAINT Off
Off Off Off Flashes

Meaning

To correct or avoid errors

No voltage or too low voltage on back- · Switch on the CPU/IM and/or the

plane bus

system power supply modules.

· Check whether the voltage connectors are inserted.

· Check whether too many modules are inserted.

Technology module starts up and

--

flashes until completion of the valid

parameter assignment

The parameters of the technology module have been assigned.

Indicates module errors (an error is present on at least one channel)

Evaluate the diagnostic alarms and eliminate the error.

Hardware or firmware defective

Replace the technology module.

Table 5- 2 PWR/ERROR status displays

LEDs

PWR

ERROR

Off

Flashes

On

Off

On

Flashes

Meaning Supply voltage too low or missing
Supply voltage is present and OK Indicates module errors (an error is present on at least one channel)

To correct or avoid errors
· Check the supply voltage. · Make sure that the front connect-
or is correctly inserted. --
Evaluate the diagnostic alarms and eliminate the error.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

45

Interrupts/diagnostic alarms 5.1 Status and error displays

Channel LEDs
The CHn.P/A, CHn.D/B, and DIn.m LEDs and the LEDs of DIQn.2 used as digital inputs indicate the current level of the associated signals. The LEDs of digital outputs DQn.m and of DIQn.2 used as digital outputs indicate the desired state.
The flashing frequency of the channel LEDs is limited to approximately 24 Hz. If higher frequencies are present, the channel LEDs do not indicate the current status but instead flash at 24 Hz.

Table 5- 3 Status displays CHn.m/DIn.m/DQn.m/DIQn.2

LEDs CHn.m/DIn.m/ DQn.m/DIQn.2
Off
On
On (DQn.m/DIQn.2)

Meaning
Pulse output/digital input/digital output at 0 level Pulse output/digital input/digital output at 1 level Diagnostic alarm: e.g. "Error at digital outputs"

To correct or avoid errors
-- --
· Evaluate the diagnostic alarm. · Check the wiring or the connected
load.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

46

Manual, 12/2016, A5E38896703-AA

Interrupts/diagnostic alarms 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Enabling the diagnostic interrupts You enable the diagnostic interrupts at the basic parameters. The technology module can trigger the following diagnostic interrupts:

Table 5- 4 Possible diagnostic interrupts

Diagnostic interrupt · Parameter assignment error · Internal error · Watchdog tripped. Module is defective.
· Supply voltage missing · Error at the digital outputs

Monitoring Monitoring is always active. A diagnostic interrupt is triggered each time an error is detected.
Monitoring is always active. A detected error only triggers a diagnostic interrupt if "Enable diagnostic interrupts" has been enabled during device configuration. The diagnostic interrupts are not enabled in the default setting.

Reactions to a diagnostic interrupt
The following happens when an event occurs that triggers a diagnostic interrupt:
 The ERROR LED flashes.
Once you have remedied the error, the ERROR LED goes out.
 The S7-1500 CPU interrupts processing of the user program. The diagnostic interrupt OB (e.g. OB 82) is called. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.
 The S7-1500 CPU remains in RUN even if no diagnostic interrupt OB is present in the CPU. The technology module continues working unchanged if this is possible despite the error.
Detailed information on the error event is available with the instruction "RALRM" (read additional interrupt information).

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

47

Interrupts/diagnostic alarms 5.2 Diagnostic alarms

Diagnostic alarms
The diagnostics are displayed as plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program. The respective channel number is shown for each diagnostic information.
The following diagnostics can be signaled:

Table 5- 5 Diagnostic alarms, their meaning and remedies
Diagnostic alarm Error Meaning code

To correct or avoid errors

Parameter as-

10H

signment error

Supply voltage

11H

missing

Internal error
Watchdog tripped. Module is defective.
Error at the digital outputs1,2

100H 103H
10FH

Received parameter data record invalid
Undervoltage Wiring of supply voltage L+ faulty Supply voltage L+ of the technology module missing Front connector not inserted correctly Technology module defective Firmware error Technology module defective
· Error at the digital outputs (LED display DQn.m lights up red)
· Possible causes: ­ Short-circuit ­ Overload

Check parameter data record
Check supply voltage L+ Check wiring of supply voltage L+ Feed supply voltage L+ to the technology module via terminal 41 Insert front connector correctly Replace technology module Run firmware update Replace technology module
· Correct wiring at the digital outputs · Check consumers connected to the
digital outputs

1 Digital outputs DQ0.0, DQ0.1, DQ1.0 and DQ1.1 have shared diagnostics. Digital outputs DQ2.0, DQ2.1, DQ3.0 and DQ3.1 have shared diagnostics.
2 Diagnostics for short-circuit and overload are effective only for 24 V outputs and only up to an output frequency of approximately 100 Hz. The module is otherwise protected from irrevocable damage caused by short-circuit at the outputs, and the diagnostic alarm is not displayed.

CAUTION
Cross-channel diagnostics of the digital outputs
The digital outputs of channels 0 and 1 as well as channels 2 and 3 have shared diagnostics. As a result, when there is an error at one digital output, faults are automatically signaled for two channels and the pulse output of both channels is stopped.
Ensure that this fault scenario is taken into consideration when using multiple channels.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

48

Manual, 12/2016, A5E38896703-AA

Technical specifications

6

General information

6ES7553-1AA00-0AB0

Product type designation

TM PTO 4

Number of channels

4; axes

Product function

I&M data

Yes; I&M0 to I&M3

Isochronous mode

Yes

Engineering with

STEP 7 TIA Portal can be configured/integrated as of version

STEP 7 V14

STEP 7 can be configured/integrated as of version V5.5 SP3 with GSD file / -

PROFINET as of GSD version/GSD revision

GSDML V2.32

Installation type/mounting

Rail mounting possible

Yes; S7-1500 mounting rail

Supply voltage

Load voltage L+ Rated value (DC) Low limit of valid range (DC) High limit of valid range (DC) Reverse polarity protection

24 V 19.2 V 28.8 V Yes

Input current Current consumption, max. Power

70 mA; without load

Power from the backplane bus

1.3 W

Power loss

Power loss, typ.

4 W

Address area · Inputs

18 bytes; per channel

· Outputs

10 bytes; per channel

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

49

Technical specifications

Digital inputs Number of inputs Digital inputs configurable Input characteristics to IEC 61131, Type 3 Digital input functions, configurable Synchronization Measuring input Drive ready Input voltage Type of input voltage Nominal value (DC) For signal "0" For signal "1" Permitted voltage at input, min. Permitted voltage at input, max. Input current for signal "1", typ. Input delay (at rated value of input voltage) For standard inputs · Configurable
· at "0" to "1", min.
· at "1" to "0", min.
For technological functions · Configurable
Cable length Shielded, max. Unshielded, max. Digital outputs Number of outputs · In groups of
Current sinking Current sourcing Digital outputs configurable Short-circuit protection · Response threshold, typ.
Control of a digital input

6ES7553-1AA00-0AB0
12; 3 per channel, including 1 DIQ Yes Yes
Yes Yes Yes
DC 24 V -5 ... +5 V +11 ... +30 V -5 V 30 V
2.5 mA
Yes; none / 0.05 / 0.1 / 0.4 / 0.8 / 1.6 / 3.2 / 12.8 / 20 ms 4 µs; with parameter assignment "none" 4 µs; with parameter assignment "none"
Yes
1000 m 600 m
12; 3 per channel, including 1 DIQ
Yes; push-pull for DQn.0 und DQn.1 Yes Yes
0.2 A for DQn.0 and DQn.1, 0.9 A for DIQn.2 Yes

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

50

Manual, 12/2016, A5E38896703-AA

Technical specifications

Digital output functions, configurable PTO (Pulse Train Output) signal interface · 24 V asymmetrical
· RS 422 symmetrical
· TTL (5 V) asymmetrical PTO (Pulse Train Output) signal type · Pulse and direction
· Count up, count down
· Incremental encoder (A, B phase-shifted)
· Incremental encoder (A, B phase-shifted, quadruple)
Output switching capacity With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage Type of output voltage for signal "1", min. Output current for signal "1" rated value for signal "1" permissible range, max. for signal "1" minimum load current for signal "0" residual current, max. Output delay with resistive load "0" to "1", typ. "1" to "0", typ. Switching frequency With resistive load, max. With inductive load, max.
With lamp load, max. With 24 V asymmetrical signal interface With RS 422 symmetrical signal interface With TTL (5 V) asymmetrical signal interface Cable length Shielded, max.

6ES7553-1AA00-0AB0
Yes Yes Yes; min. 2.4 V, min. 220 ohm
Yes Yes Yes Yes
0.1 A; 0.5 A for DIQn.2 1 W; 5 W for DIQn.2
240 ; 48  for DIQn.2 12 k
DC 23 V; L+ (-2.0 V)
0.1 A; 0.5 A for DIQn.2 0.12 A; 0.6 A for DIQn.2 2 mA 0.5 mA
1 µs; 28 µs for DIQn.2 1 µs; 25 µs for DIQn.2
1 kHz; for DIQn.2 0.5 Hz; according to IEC 60947-5-1, DC-13, for DIQn.2 10 Hz; for DIQn.2 200 kHz; for DQn.0 and DQn.1 1 MHz 200 kHz
320 m; RS422 / TTL Siemens Type 6FX2001-5: 125 kHz, 320 m; 250 kHz, 160 m; 500 kHz, 60 m; 1 MHz, 32 m; 24 V (DQn.m / DIQn.2): 10 kHz, 600 m; 200 kHz, 50 m

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

51

Technical specifications

Isochronous mode Isochronous mode (application synchronized until terminal) Bus cycle time (TDP), min. Jitter, max. Interrupts/diagnostics/status information Diagnostics function Interrupts Diagnostic interrupt Diagnostic alarms Monitoring of supply voltage Short-circuit Group error LED diagnostics display RUN LED ERROR LED MAINT LED Monitoring of supply voltage (PWR LED) Channel status display For channel diagnostics Electrical isolation Electrical isolation channels Between channels Between the channels and backplane bus Between the channels and load voltage L+ Isolation Isolation tested with Ambient conditions Ambient temperature in operation Horizontal installation, min. Horizontal installation, max. Vertical installation, min. Vertical installation, max. Distributed operation on SIMATIC S7-300 on SIMATIC S7-400 on SIMATIC S7-1200 on SIMATIC S7-1500 on Standard PROFINET Controller

6ES7553-1AA00-0AB0
Yes
250 µs; 375 µs, when all 4 channels are used 1 µs
Yes
Yes
Yes Yes; thermal overload protection Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; green LED Yes; green LED Yes; red LED
No Yes No
707 V DC (type test)
0 °C 60 °C; note derating 0 °C 40 °C; note derating
Yes; via control and feedback interface Yes; via control and feedback interface Yes Yes Yes; via control and feedback interface

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

52

Manual, 12/2016, A5E38896703-AA

Technical specifications

Dimensions Width Height Depth Weights Weight, approx.

6ES7553-1AA00-0AB0
35 mm 147 mm 129 mm
300 g

Note Derating information for output current
In the following cases, the maximum output current is reduced to 0.05 A for digital outputs DQn.m and 0.1 A for digital outputs DIQn.2: · When the system is mounted vertically, as of an ambient temperature of 30 °C.
In addition, you may only use channels 0 to 2 in this case. · When the system is mounted horizontally, as of an ambient temperature of 50 °C.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

53

Dimensional drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure A-1 Dimensional drawing of technology module TM PTO 4

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

54

Manual, 12/2016, A5E38896703-AA

Dimensional drawing
Figure A-2 Dimensional drawing of the TM PTO 4 module, side view with open front panel

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

55

Parameter data record

B

B.1

Parameter assignment and structure of the parameter data record
You have the option to change the parameter assignment of the module with the user program while the CPU is in RUN. The parameters are transferred to the module using the using data record 128, for example with the instruction WRREC.
If errors occur during the transfer or validation of parameters with the WRREC instruction, the module continues operation with the previous parameter assignment. A corresponding error code is then written to the STATUS output parameter. If no errors occur, the STATUS output parameter contains the length of the actually transferred data.
The description of the WRREC instruction and the error codes is available in the section Parameter validation error (Page 61) or in the online help of STEP 7 (TIA Portal).

Structure of data record 128 The following tables show you the structure of data record 128 for TM PTO 4. The values in byte 0 to byte 3 are fixed and may not be changed. The channels are assigned in ascending order.
Note The impulse output will be stopped for transfer of data record 128. For this reason, only transfer the data record when the drive is at a standstill.
Note If you are using less than four channels, data record 128 is shortened accordingly. When using the technology module on PROFIBUS DP, you can use a maximum of three channels.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

56

Manual, 12/2016, A5E38896703-AA

Parameter data record B.1 Parameter assignment and structure of the parameter data record

Table B- 1 Parameter data record 128: Overall module

Bit  Byte 
0...3 0 1 2 3
4...31 32...59 60...87 88...115

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Header

Major Version = 0

Minor Version = 1

Length of parameter data per channel = 28

Reserved2

Reserved2

Channel 0

Channel 1 (if used)

Channel 2 (if used)

Channel 3 (if used)

2 Reserved bits must be set to 0.

Bit 0

Table B- 2 Parameter data record 128: Channel parameters

Bit  Byte 
4/32/ 60/88
5/33/ 61/89

Bit 7 Reserved2
Reserved2

Bit 6
Signal interface: 0B: 24 V, asymmetrical 1B: RS422, symmetrical / TTL (5 V), asymmetrical

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Basic parameters

Enable diagnostic interrupts1

Reaction to CPU STOP: 000B: Coast Stop and reset drive enable 001 to 111B: Invalid

Operating mode

Signal evaluation3

Signal type:

00B: Single

0000B: Invalid

01B: Invalid

0001B: Pulse (P) and direction (D)

10B: Quadruple

0010B: Count up (A), count down (B)

11B: Invalid

0011B: Incremental encoder (A, B phase-shifted) 0100 to 1111B: Invalid

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

57

Parameter data record B.1 Parameter assignment and structure of the parameter data record

Bit 

Byte 

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Digital inputs

6/34/ 62/90

Reference switch edge selection:

Input delay: 0000B: None 0001B: 0.05 ms

0B: At positive edge

0010B: 0.1 ms 0011B: 0.4 ms

1B: At negative edge

0100B: 0.8 ms 0101B: 1.6 ms

0110B: 3.2 ms

0111B: 12.8 ms

1000B: 20 ms

1001 to 1111B: Invalid

Values

7/35/ 63/91

Interpulse period at direction reversal: UINT: Value range in ms: 0 to 255D

8...11/ 36...39/ 64...67/ 92...95

Reference speed: REAL: Value range in rpm: 1.0 to 20000.0D:

12...15/ 40...43/ 68...71/ 96...99

Increments per revolution: DINT: Value range in rpm: 1 to 1000000D

16...19/ 44...47/ 72...75/ 100...103

Maximum speed: REAL: Value range is dependent on signal interface, signal evaluation, increments per revolution and reference
speed, see following table

20...21/ 48...49/ 76...77/ 104...105

Quick stop time (OFF3): UINT: Value range in ms: 1 to 65535D

22...23/ 50...51/ 78...79/ 106...107

Ramp stop time (OFF1): UINT: Value range in ms: 1 to 65535D

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

58

Manual, 12/2016, A5E38896703-AA

Parameter data record B.1 Parameter assignment and structure of the parameter data record

Bit  Byte 

Bit 7

24...25/ Reserved2 52...53/ 80...81/ 108...109
26/54/ Use drive 82/110 enable1

27/55/ 83/111

Use DI0 as reference switch1

28/56/ 84/112

Use DI1 as measuring input1

29/57/ Use "Drive 85/113 ready"1

30...31/ 58...59/ 86...87/ 114...115

Bit 6

Bit 5

Bit 4

Bit 3

Hardware inputs/outputs

Bit 2

Reserved2

Drive enable output:

00000B: DQn.04

00001B: Invalid

00010B: DIQn.2

00011 to 11111B: Invalid

Reserved2

Reference switch input:

00000B: DIn.0

00001 to 11111B: Invalid

Reserved2

Measuring input:

00000B: Invalid

00001B: DIn.1

00010 to 11111B: Invalid

Reserved2

"Drive ready" input:

00000B: DIn.0

00001B: DIn.1

00010B: DIQn.2

00011 to 11111B: Invalid

Tolerated number of sign-of-life errors: UINT: Value range: 0 to 65535D
65535D means: No monitoring for errors of Master sign-of-life

Bit 1

1 You enable the respective parameter by setting the corresponding bit to 1. 2 Reserved bits must be set to 0. 3 Only available for signal type "Incremental encoder (A, B phase-shifted)" 4 Only available for "RS422, symmetrical / TTL (5 V), asymmetrical"signal interface

Bit 0

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

59

Parameter data record B.1 Parameter assignment and structure of the parameter data record

Maximum speed The following table shows the calculation of the value range of the maximum speed:

Table B- 3 Value range of the maximum speed

Signal interface
24 V, asymmetrical TTL (5 V), asymmetrical RS422, symmetrical

Value range of the maximum speed

Low limit

High limit (the smaller of the two values applies)

Signal evaluation "Single"
0.1 Hz * 60 / (increments per revolution)

Signal evaluation "Quadruple"
0.1 Hz * 60 *4 / (increments per revolution)

Signal evaluation "Single"

Signal evaluation "Quadruple"

· 2 * reference speed · 2 * reference speed

· 200000 Hz * 60 /

· 200000 Hz * 60 *4 /

(increments per revo-

(increments per revo-

lution)

lution)

· 2 * reference speed · 2 * reference speed

· 1000000 Hz * 60 / · 1000000 Hz * 60 *4 /

(increments per revo-

(increments per revo-

lution)

lution)

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

60

Manual, 12/2016, A5E38896703-AA

Parameter data record B.2 Parameter validation error

B.2
WRREC

Parameter validation error
If you make the parameter setting in STEP 7 (TIA Portal) , the parameter values are checked before they are transferred to the technology module. This process prevents parameter errors.
In other use cases, the technology module checks the transferred parameter data record. If the technology module finds invalid or inconsistent parameter values, it outputs an error code (see below). The new parameter data record is rejected in this case, and work continues with the current parameter values until a valid parameter data record has been transferred.

When the CPU is in RUN, you can change the parameter data record with the instruction WRREC (Write Record). In case of errors, the WRREC instruction returns corresponding error codes in the STATUS parameter.
Example:
Let us assume that when WRREC is executed, an invalid value, for example 9, is written to the module for the signal type. As a consequence, the module rejects the entire parameter data record. You can recognize this by evaluating the STATUS output parameter of the WRREC instruction. The STATUS output parameter is output as an ARRAY[1..4] of BYTE data with the value 16#DF80E111:

Example of WRREC STATUS data DFH 80H
E1H 13H

Address

Meaning

STATUS[1] STATUS[2]
STATUS[3] STATUS[4]

Error when writing a data record via PROFINET IO (IEC 61158-6) Error when reading or writing a data record via PROFINET IO (IEC 61158-6) Module-specific error Error code from the table below: The "Signal type" parameter has an invalid value.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

Manual, 12/2016, A5E38896703-AA

61

Parameter data record B.2 Parameter validation error

Error codes

The following table shows the module-specific error codes and their meaning for parameter data record 128.

Table B- 4 Error codes for parameter validation

Error code in STATUS parame- Meaning ter (hexadecimal)

Byte 0 Byte 1 Byte 2 Byte 3

DF 80

B0

00

Data record number unknown

DF 80

B1

00

Length of data record incorrect

DF 80

B2

00

Slot invalid or not accessible

DF 80

E0

01

Wrong version

DF 80

E0

02

Error in the header information

DF 80

E1

00

Parameter invalid: No detailed information

available

DF 80

E1

12

"Reaction to CPU STOP" parameter invalid

DF 80

E1

13

"Signal type" parameter invalid

DF 80

E1

1A

"Input delay" parameter invalid

DF 80

E1

26

"Reference speed" parameter invalid

DF 80

E1

29

"Increments per revolution" parameter invalid

DF 80

E1

50

"Maximum speed" parameter invalid

DF 80

E1

51

"Quick stop time (OFF3)" parameter invalid

DF 80

E1

52

"Ramp stop time (OFF1)" parameter invalid

DF 80

E1

2C

"Signal evaluation" parameter invalid

DF 80

E1

40

"Reference switch input" parameter invalid

DF 80

E1

41

"Measuring input" parameter invalid

DF 80

E1

44

"Drive enable output" parameter invalid

DF 80

E1

45

""Drive ready" input" parameter invalid

DF 80

E1

46

DIQn.2 configured as ready input and drive

enable output

DF 80

E1

47

· DIn.0 configured as reference switch input

and ready input

· DIn.1 configured as measuring input and ready input

Remedy
Enter valid number for data record Enter valid value for data record length. · Check whether module is inserted or removed. · Check assigned values for parameters of the
WRREC instruction.
· Check byte 0. · Enter valid values.
· Check byte 1. · Correct length of parameter blocks. Check all parameter values.
Enter parameter value 000B. Enter valid parameter value. Enter valid parameter value. Enter parameter value from range 1.0 to 20000.0D taking into account the dependencies (Page 60). Enter parameter value from range 1 to 1000000D taking into account the dependencies (Page 60). Enter parameter value from the valid range (Page 60) in each case. Enter parameter value from range 1 to 65535D. Enter parameter value from range 1 to 65535D. Enter valid parameter value. Enter valid parameter value. Enter valid parameter value. Enter valid parameter value. Enter valid parameter value. Configure DIQn.2 either as ready input or as drive enable output. · Configure DIQn.0 either as reference switch input
or as ready input. · Configure DIQn.1 either as measuring input or as
ready input.

Technology Module TM PTO 4 (6ES7553-1AA00-0AB0)

62

Manual, 12/2016, A5E38896703-AA

SIMATIC
S7-1500/ET 200MP Technology Module TM NPU (6ES7556-1AA00-0AB0)
Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_Pr_od_u_ct_o_ve_rv_ie_w_________2_

_W_iri_ng_______________3_

Configuration / address space

4

_Pr_og_ra_m_m_in_g___________5_ _Di_ag_n_os_tic_s____________6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______7_ _Di_m_en_s_ion_d_ra_w_in_g ________A_

03/2019
A5E46384784-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46384784-AA  03/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500, ET 200MP automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792). Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals support you in commissioning the system.

Conventions

Please also observe notes marked as follows:
Note A note contains important information on the product, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

3

Preface
Open Source Software
Open-source software is used in the firmware of the module. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109765637).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

4

Manual, 03/2019, A5E46384784-AA

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2

Operator controls and display elements .................................................................................12

2.3

Functions ................................................................................................................................13

3 Wiring ................................................................................................................................................... 15

3.1

Terminal assignment...............................................................................................................15

3.2

Block diagram .........................................................................................................................18

4 Configuration / address space ............................................................................................................... 19

4.1

Configuration of the TM NPU..................................................................................................19

4.2

Address space and address assignment................................................................................20

5 Programming ........................................................................................................................................ 22

6 Diagnostics ........................................................................................................................................... 23

6.1

Status and error displays ........................................................................................................23

6.2

Diagnostics alarms..................................................................................................................26

7 Technical specifications ........................................................................................................................ 27

A Dimension drawing ............................................................................................................................... 30

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

6

Manual, 03/2019, A5E46384784-AA

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (https://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (https://support.industry.siemens.com/my/ww/en/CAxOnline).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (https://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

8

Manual, 03/2019, A5E46384784-AA

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

9

Product overview

2.1

Properties

Article number
6ES7556-1AA00-0AB0

View of the module

2

Figure 2-1 View of the TM NPU technology module

Technology Module TM NPU (6ES7556-1AA00-0AB0)

10

Manual, 03/2019, A5E46384784-AA

Properties

Product overview 2.1 Properties

 Technical properties ­ Processing of neural networks ­ Processing of data from connected sensors ­ Processing of I/O data from the user program ­ Data exchange between CPU and TM NPU via process image ­ USB 3.1 port, type A

Table 2- 1 Version dependencies of the module functions

Function
Processing of neural networks Connection of sensors via USB interface Firmware update Identification data I&M0 to I&M3

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher V1.0.0 or higher

Configuration software STEP 7 (TIA Portal)
as of V15.1 and HSP 0279 as of V15.1 and HSP 0279
as of V15.1 and HSP 0279 as of V15.1 and HSP 0279

SIMATIC memory cards
You download the application-specific files with the help of a SIMATIC memory card to the TM NPU. The application-specific files include the files for the application and the neural networks.
You can use the following SIMATIC memory card:

Article number 6ES7954-8LPxx-0AA0

Capacity 2 GB

Applicable sensors
Sensors can be connected via the integrated USB interface of the TM NPU. For TM NPU with V1.0.0, the USB camera from Intel, type RealSense D435, has been approved.

Accessories

The following accessories are supplied with the module and can also be ordered separately as spare parts:
 Supply voltage connection plug
 U connector
 Universal front door
You can find additional information on accessories and the article numbers in the system manual of the S7-1500, ET 200MP Automation System (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

11

Product overview 2.2 Operator controls and display elements

2.2

Operator controls and display elements

The following figure shows the operator control and display elements of the TM NPU technology module.

 RUN, ERROR and MAINTENANCE LEDs  Slot for the SIMATIC memory card  LINK: LED display for the Ethernet interface port  PWR: LED display for external 24 V DC supply voltage  USB 3.1 interface  Ethernet interface  Connection for external 24 V DC supply voltage
Figure 2-2 Operator controls and display elements

Technology Module TM NPU (6ES7556-1AA00-0AB0)

12

Manual, 03/2019, A5E46384784-AA

Product overview 2.3 Functions

2.3

Functions

Ongoing automation requires more and more computing power and the use of technologies with artificial intelligence (AI). The TM NPU technology module comes equipped with a processor with AI capability; this processor enables fast and efficient processing of large amounts of data over neural networks. The AI processor is particularly well suited for image processing by means of so-called Convolutional Neural Networks (CNN).

Field of application
The TM NPU can be used in the S7-1500 automation system and in the ET 200MP distributed I/O system; it enables scalable solutions from the field level over the control and edge level all the way to the business management level and cloud.

Figure 2-3 Automation levels of the TM NPU
Principle of operation
The TM NPU enables the evaluation of input data, such as video and CPU data, through neural networks.
The data of connected sensors (e.g. cameras) as well as data from the CPU user program, is processed at high speed in the TM NPU over neural networks. The TM NPU transmits the processing result via the backplane bus to the CPU which then evaluates the data in the user program.

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

13

Product overview 2.3 Functions

Typical areas of application:
 Visual quality check in production plants  Pick-and-place applications  Image-guided robotic systems

Advantages

 Less programming and engineering work  Design of flexible and precise production processes

Technology Module TM NPU (6ES7556-1AA00-0AB0)

14

Manual, 03/2019, A5E46384784-AA

Wiring

3.1

Terminal assignment

Introduction

The following plug connectors are located on the bottom of the TM NPU:  Connector of external 24 V DC supply voltage (X80)  Connector for USB 3.1 interface, type A (X60)  Connector for Ethernet interface, RJ 45 (X1P1)

3

 USB 3.1 interface  Ethernet interface  Connector for power supply
Figure 3-1 TM NPU interfaces - Bottom view

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

15

Wiring 3.1 Terminal assignment

24 V DC supply voltage
The following table shows the signal names and the descriptions of the terminal assignment for a 24 V DC supply voltage.
Table 3- 1 Terminal assignment 24 V DC supply voltage

View

Signal name1 1L+ 2L+ 1M 2M

Description 24 V DC 24 V DC (for looping through)2 Ground Ground (for looping through)2

1 1L+ and 2L+ as well as 1M and 2M are bridged internally. 2 Maximum 10 A permitted. The length of the connectable 24 V DC supply line is limited to max. 30 m for EMC reasons.
USB 3.1 interface
The USB 3.1 interface is designed with a type A connection socket. The plug connector does not have a strain relief. You should therefore use a cable tie for strain relief of the USB cable. Use a 2.5 mm wide cable tie for strain relief. The figure below shows the TM NPU with installed cable tie.

Figure 3-2 Strain relief for USB cable
Only connect sensors and cables to the USB interface in which the shield and ground signal are galvanically isolated.
For sensors and cables whose shield and ground (PIN 4) are connected to each other, an incorrect current flows over the cable shield in case the ground of the 24 V DC supply breaks down. The impermissible current flows over the shield spring of the module and the grounded mounting rail.
When you use components in which the shield and ground signal are already connected to each other, the power supply of the TM NPU should come from an electrically isolated 24 V DC supply. Do not connect the ground of this 24 V DC supply to the functional earthing (FE).
Note that the shield and the ground signal in the camera are connected to each other in the recommended USB camera RealSense D435.

Technology Module TM NPU (6ES7556-1AA00-0AB0)

16

Manual, 03/2019, A5E46384784-AA

Wiring 3.1 Terminal assignment

Ethernet interface
The Ethernet interface has been designed as an RJ 45 socket (X1 Port 1). In TM NPU modules with V1.0.0, the interface cannot be used yet.

Reference

You can find additional information on connecting the technology module in the system manual of the S7-1500, ET 200MP Automation System (https://support.industry.siemens.com/cs/ww/en/view/59191792).

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

17

Wiring 3.2 Block diagram

3.2

Block diagram

Block diagram
The following figure shows the block diagram of the TM NPU technology module.

  
X50
X80 24 VDC
IE X1 P1
USB 3.1 X60

Electronics Backplane bus interface Internal supply voltage Slot for memory card Supply voltage connection Ethernet interface USB interface

L+ M RN ER MT LINK PWR

Figure 3-3 Block diagram of the TM NPU technology module

24 VDC supply voltage Ground LED RUN (green) ERROR LED (red) MAINT LED (yellow) LINK LED (green) PWR LED (green)

Technology Module TM NPU (6ES7556-1AA00-0AB0)

18

Manual, 03/2019, A5E46384784-AA

Configuration / address space

4

4.1

Configuration of the TM NPU

Configuration of the TM NPU
The TM NPU can be configured with STEP 7 (TIA Portal) as of V15.1 with HSP 0279. You specify the properties of the module while configuring the module with STEP 7:  Size of the address space used in the process image  Start address of the inputs  Start address of the outputs You can find a configuration example of the TM NPU in the description of the application example. You can obtain the application example from your SIEMENS representative.

Use with fail-safe modules
When you are using TM NPU technology modules as well as fail-safe modules, first insert all fail-safe modules followed by the TM NPU.
Rule: Fail-safe modules must always be inserted starting on the left.
It is important to observe the slot rule because otherwise the fail-safe modules do not receive a PROFIsafe address and do not start.

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

19

Configuration / address space 4.2 Address space and address assignment

4.2

Address space and address assignment

CPU and TM NPU exchange their data via the process image. You specify the size of the process image when configuring the TM NPU.

The TM NPU with V1.0.0 works with a process image of 256 bytes for inputs and 256 bytes for outputs.

Address space and address assignment
In the process image of the inputs and outputs, the first two bytes are always reserved for the control and status information. You can use all other addresses for communication and data transfer with the running application (app).
The figures below show the address space assignment for the configuration with 256 bytes for inputs and 256 bytes for outputs. You can freely assign the start addresses.

Figure 4-1 Address assignment in PII

Figure 4-2 Address assignment in PIQ

Technology Module TM NPU (6ES7556-1AA00-0AB0)

20

Manual, 03/2019, A5E46384784-AA

Configuration / address space 4.2 Address space and address assignment Control and status information The following two figures show the assignment and meaning of the status and control bytes. Status byte 0 provides information regarding the validity of the processed data. If the processed data is invalid, status byte 1 provides additional information on the cause.
Figure 4-3 Status bytes in the PII The control bytes 0 and 1 are reserved for a later version of the module.
Figure 4-4 Control bytes in the PIQ

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

21

Programming

5

The application-specific program for the TM NPU consists of multiple program parts that you download to the module memory from a SIMATIC memory card:  Application program  Neural network
Application program
The application program (app) takes over communication with the module firmware and reads the data from the connected sensors. The app also takes over the data exchange with the neural network.
Neural network
The neural network processes the read data based on a learned AI model and transfers the result to the application program.
Application example
The application example contains two files for two executable programs for object identification with application, neural networks and detailed description. The description supplements the TM NPU manual and covers the following topics:  Configuring the TM NPU with STEP 7 (TIA Portal)  Downloading the application and the neural networks to the TM NPU  Displaying the results on the HMI device or in the watch table  Use of function blocks for control of data exchange between CPU and TM NPU  Procedure for changing and expanding the programs by customer-specific objects You can obtain the application example and the associated documentation from your SIEMENS representative.

Technology Module TM NPU (6ES7556-1AA00-0AB0)

22

Manual, 03/2019, A5E46384784-AA

Diagnostics

6

6.1

Status and error displays

Introduction

Diagnostics by means of LED display is an initial tool for error localization. To further limit the error, you usually evaluate the display of the CPU, the display of the module status in STEP 7 or the diagnostics buffer of the CPU. The buffer contains plain text information on the error that has occurred. For example, you will find the number of the appropriate error OB there.

LED display

The figure below shows the LED displays of the technology module TM NPU.

 RUN (green)  ERROR (red)  MAINT (yellow)  LINK (green)  PWR (green)
Figure 6-1 LED display on the technology module

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

23

Diagnostics 6.1 Status and error displays

LED displays RUN/ERROR/MAINT

Table 6- 1 Meaning of the LEDs RUN / ERROR / MAINT

RUN Off
Flashes On On
Flashes

LEDs ERROR
Off
Off Off Flashes
Flashes

Meaning

Remedy

MAINT Off

No or too little supply voltage via backplane · bus.
·

Switch on the CPU or IM and/or the system power supply modules.
Check that the U connectors are inserted.

· Check whether too many modules are inserted.

The technology module starts and waits

---

Off until the valid parameter assignment is set.

Parameter assignment of the technology --Off module is valid.

Module error, e.g. no supply voltage

Check the supply voltage.

Off Firmware update running.

---

Communication between AI-capable processor and backplane bus is faulty.

· Switch the supply voltage off and on again.

· Switch off the supply voltage, download files for the application and neural network, switch on supply voltage again.

Hardware or firmware defective. Flashes

Replace the technology module.

PWR LED display

Table 6- 2 Meaning of the PWR LED display

LED PWR Off On

Meaning External supply voltage too low or missing.
External supply voltage is present and OK.

Remedy Check the external supply voltage.
---

Technology Module TM NPU (6ES7556-1AA00-0AB0)

24

Manual, 03/2019, A5E46384784-AA

Diagnostics 6.1 Status and error displays

LINK LED display

Table 6- 3 Meaning of the LINK LED display

LINK LED
Off
Flashes three times in the interval
Flashes four times in the interval
Flashes five times in the interval

Meaning No data exchange with the application.
Module downloads the file with the application.
Module is in data exchange mode.
Module downloads the file for the neural network.

Remedy Downloading the files for the application and neural network. ---
---
---

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

25

Diagnostics 6.2 Diagnostics alarms

6.2

Diagnostics alarms

Diagnostics alarms
A diagnostic interrupt is generated and the ERROR LED flashes on the module for each diagnostics event. You can read out the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can analyze the error code with the user program.

Table 6- 4 Diagnostics alarms, their meaning and corrective measures

Diagnostics alarm
Parameter assignment error

Error code 10H

No load voltage

11H

Communication error

13H

Channel/component tem- 1FH porarily not available

Meaning The module cannot evaluate parameters for the channel. Incorrect parameter assignment. External supply voltage of the module is missing. Firmware update running.
Communication error due to interrupted data connection between the AIcapable processor and the backplane bus.

Corrective measures Correct the parameter assignment.
Connect external supply voltage to module/channel. Wait for completion of the firmware update. · Download the data for the applica-
tion and neural networks. · Switch the external supply voltage
off and on again.

Diagnostic interrupt
For an incoming or outgoing event, the module triggers a diagnostics interrupt if this is configured accordingly in STEP 7 (TIA Portal). The CPU interrupts user program execution and executes the diagnostic interrupt OB. The event that triggered the interrupt is entered in the start information of the diagnostic interrupt OB.
The module generates a diagnostic interrupt at the following event:
 Parameter assignment error
 Missing supply voltage
You can find detailed information on the event in the organization block with the "RALRM" instruction (read additional interrupt info) and in the STEP 7 online help.

Technology Module TM NPU (6ES7556-1AA00-0AB0)

26

Manual, 03/2019, A5E46384784-AA

Technical specifications

7

Technical specifications TM NPU
The following table shows the technical specifications as of 03/2019. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/ww/en/pv/6ES7556-1AA00-0AB0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
· Artificial intelligence/processing of neural networks
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
Installation type/mounting Mounting position Rail mounting Control cabinet installation
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Short-circuit protection
Input current Current consumption (rated value) Current consumption, max.

6ES7556-1AA00-0AB0
TM NPU 01 V1.0 Yes
Yes Yes
STEP 7 V15.1 or higher
- / -
- / -
horizontal set up Yes Yes
24 V 19.2 V 28.8 V Yes Yes
0.35 A; 24 V input voltage, USB load of 800 mA 0.5 A

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

27

Technical specifications

Article number Power
Power available from the backplane bus Power consumption from the backplane bus (balanced) Power loss Power loss, typ. Processor Processor type Address area Address space per module · Inputs
· Outputs
Interfaces Number of Ethernet interfaces Number of USB interfaces Ethernet interface USB port SD card slot
1. Interface Interface types
· Number of ports
· integrated switch
· RJ 45 (Ethernet)
2. Interface Interface type Isolated
Interface types · Number of ports
· USB
· Output current of the interface, max. USB port
· USB specification
· Design of the USB ports Web server
· supported Interrupts/diagnostics/status information
Status indicator Alarms Diagnostics function

6ES7556-1AA00-0AB0
0.65 W 1.1 W
3.3 W
2x LEON processor with 700 MHz
254 byte; +2 bytes QI and application-specific status bytes 254 byte
1 1 Yes Yes Yes
1 No Yes
USB No
1 Yes 900 mA
USB 3.1 USB type A socket
No
Yes No Yes

Technology Module TM NPU (6ES7556-1AA00-0AB0)

28

Manual, 03/2019, A5E46384784-AA

Technical specifications

Article number Diagnostics indication LED
· RUN LED
· ERROR LED
· MAINT LED
· Monitoring of the supply voltage (PWRLED)
Permissible potential difference between different circuits
Isolation Isolation tested with
Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max. Decentralized operation
to SIMATIC S7-300 to SIMATIC S7-1500 to standard PROFIBUS master to standard PROFINET controller Dimensions Width Height Depth Weights Weight, approx.

6ES7556-1AA00-0AB0
Yes Yes Yes Yes
Safety extra low voltage SELV
707 V DC between USB load voltage and backplane bus (type test); 1 500 V AC between Ethernet and functional ground (type test)
0 °C 40 °C
Yes Yes No Yes
35 mm 147 mm 129 mm
290 g

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

29

Dimension drawing

A

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.
Dimensional drawings of the TM NPU technology module

Figure A-1 Dimensional drawing of the TM NPU technology module, front and side views

Technology Module TM NPU (6ES7556-1AA00-0AB0)

30

Manual, 03/2019, A5E46384784-AA

Dimension drawing
Figure A-2 Dimensional drawing of the TM NPU technology module, side view with open front cover

Technology Module TM NPU (6ES7556-1AA00-0AB0)

Manual, 03/2019, A5E46384784-AA

31

SIWAREX WP521/WP522
Weighing systems Electronic Weighing System SIWAREX WP521/WP522
Manual

_Fo_re_w_or_d_____________1_ _Do_c_um_e_n_tat_io_n _gu_id_e_______2_ _Pr_od_u_ct_o_ve_rv_ie_w_________3_ _In_sta_ll_at_ion_a_n_d _co_nn_e_ct_io_n ____4_ _Co_m_m_is_si_on_in_g__________5_ _Sfuc_nac_lteio_pna_sra_m_e_te_rs_a_nd_______6_ _Al_ar_m_lo_gg_in_g___________7_ _Co_m_m_a_nd_s____________8_ _CSIo_Mm_AmT_uIC_ni_cSa7_t-io1_n5_0w0_ith________9_ _Co_m_m_u_ni_ca_tio_n_vi_a _M_od_b_us___1_0_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns_____1_1_ _Ac_c_es_so_ri_es___________1_2_ _Ap_p_en_d_ix_____________A_

04/2016
A5E36695225A

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

Document order number: A5E36695225A  04/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Table of contents

1 Foreword ................................................................................................................................................ 9

1.1

Purpose of the manual..............................................................................................................9

1.2

Conventions ..............................................................................................................................9

1.3

Security messages....................................................................................................................9

1.4

Industrial Security .....................................................................................................................9

2 Documentation guide ............................................................................................................................ 11

3 Product overview .................................................................................................................................. 13

3.1

Properties ................................................................................................................................ 13

3.2

Area of application ..................................................................................................................15

3.3

System integration in SIMATIC...............................................................................................16

3.4

Customer benefits...................................................................................................................16

3.5

Product package .....................................................................................................................17

3.6

Overview of the functions .......................................................................................................17

3.7 3.7.1 3.7.2

Overview of configuration options...........................................................................................18 Configuration with the PC .......................................................................................................18 Configuration via the Modbus interface ..................................................................................19

4 Installation and connection .................................................................................................................... 21

4.1

Installation guideline ...............................................................................................................21

4.2

Pin assignment .......................................................................................................................21

4.3

Connecting the load cells........................................................................................................24

4.4

Shield connection....................................................................................................................27

4.5

Supply voltage L+/M ...............................................................................................................28

4.6

Digital inputs DI0, DI1 and DI2 ...............................................................................................29

4.7

Digital outputs DQ0, DQ1, DQ2 and DQ3 ..............................................................................30

4.8

Connection of RS485 serial interface .....................................................................................30

4.9

Connection of Siebert display via RS485 ...............................................................................31

4.10

Connection of the Ethernet interface ......................................................................................31

5 Commissioning ..................................................................................................................................... 35

5.1

Basic tasks ..............................................................................................................................35

5.2

Ex-works settings of the operating switch ..............................................................................36

5.3

Factory-set parameters...........................................................................................................38

5.4

Commissioning tools...............................................................................................................38

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

3

Table of contents

5.5 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.5.9 5.5.10

Start-up with the operator panel and the Ready-for-use software ......................................... 38 Restriction of access .............................................................................................................. 38 Start........................................................................................................................................ 39 Specification of basic values 1............................................................................................... 40 Specification of basic values 2............................................................................................... 41 Selecting the calibration method............................................................................................ 41 Defining the calibration weights ............................................................................................. 42 Setting calibration points ........................................................................................................ 43 Calibrating the scale automatically ........................................................................................ 44 Performing the automatic calibration ..................................................................................... 45 Checking the scale following calibration ................................................................................ 45

5.6 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5

Service with the SIWATOOL program ................................................................................... 46 General .................................................................................................................................. 46 Windows and functions of SIWATOOL .................................................................................. 47 Available help options ............................................................................................................ 49 Recording scale traces .......................................................................................................... 49 Offline parameter assignment ................................................................................................ 50

5.7 5.7.1 5.7.2 5.7.3 5.7.4 5.7.5 5.7.6 5.7.6.1 5.7.6.2 5.7.6.3 5.7.6.4 5.7.7 5.7.8

Commissioning with SIWATOOL ........................................................................................... 51 IP address for SIWAREX ....................................................................................................... 51 Entering a known SIWAREX IP address ............................................................................... 51 Determining an unknown IP address ..................................................................................... 52 Setting up a network .............................................................................................................. 52 Start........................................................................................................................................ 52 Calibration method ................................................................................................................. 53 Selecting the calibration method............................................................................................ 53 Calibration with calibration weight.......................................................................................... 54 Automatic calibration (= calibration without calibration weight) ............................................. 58 Receive all data...................................................................................................................... 63 Firmware update with SIWATOOL......................................................................................... 64 Firmware update with SIMATIC TIA Portal ............................................................................ 65

6 Scale parameters and functions ............................................................................................................ 67

6.1

Parameters and functions ...................................................................................................... 67

6.2

DR 2 command code ............................................................................................................. 67

6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.3.8 6.3.9 6.3.10 6.3.11 6.3.12 6.3.13 6.3.14 6.3.15

DR 3 calibration parameters .................................................................................................. 67 Overview ................................................................................................................................ 67 Scale name ............................................................................................................................ 71 Unit of weight ......................................................................................................................... 71 Gross identifier ....................................................................................................................... 71 Minimum weighing range ....................................................................................................... 72 Maximum weighing range ...................................................................................................... 72 Calibration weights 0, 1, 2 and calibration digits 0, 1, 2 ........................................................ 72 Scale interval.......................................................................................................................... 72 Automatic zero adjustment .................................................................................................... 72 Filling/emptying mode ............................................................................................................ 72 Weight simulation................................................................................................................... 72 Filter sequence....................................................................................................................... 73 Maximum tare load ................................................................................................................ 73 Maximum negative zero setting limit (semi-automatically) .................................................... 73 Maximum positive zero setting limit (semi-automatically)...................................................... 73

SIWAREX WP521/WP522

4

Manual, 04/2016, A5E36695225A

Table of contents

6.3.16 6.3.17 6.3.18 6.3.19 6.3.20 6.3.21
6.4 6.4.1 6.4.2
6.5 6.5.1 6.5.2
6.6 6.6.1 6.6.2 6.6.3 6.6.4 6.6.5
6.7 6.7.1 6.7.2 6.7.3 6.7.4 6.7.5
6.8 6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.8.6 6.8.7 6.8.8
6.9
6.10
6.11 6.11.1 6.11.2 6.11.3 6.11.4 6.11.5 6.11.6 6.11.7 6.11.8 6.11.9 6.11.10
6.12 6.12.1

Standstill range .......................................................................................................................74 Standstill time..........................................................................................................................74 Standstill waiting time .............................................................................................................74 Low-pass filter limit frequency ................................................................................................75 Low-pass filter number............................................................................................................75 Period the average value filter ................................................................................................76
Performing calibration .............................................................................................................76 Calibration with calibration weights.........................................................................................76 Automatic calibration...............................................................................................................79
DR 4 output the calculated adjustment digits .........................................................................79 Overview .................................................................................................................................79 Calibration digits 0, 1, 2 (calculated).......................................................................................80
DR 5 zeroing memory .............................................................................................................80 Overview .................................................................................................................................80 Effective tare weight - from specification ................................................................................81 Effective tare weight (semi-automatic)....................................................................................81 Current zero tracking weight...................................................................................................82 Dead load................................................................................................................................82
DR 6 limit settings ...................................................................................................................82 Overview .................................................................................................................................82 Basis of limits ..........................................................................................................................84 Limit value 1 ON, limit value 2 ON, limit value 1 OFF, limit value 2 OFF ...............................84 Limit "Empty" ON ....................................................................................................................85 Delay time for limits.................................................................................................................85
DR 7 interface parameters......................................................................................................86 Overview .................................................................................................................................86 Assignment for digital input 0, 1, 2..........................................................................................88 Input filtering (hardware setting) .............................................................................................88 Assignment for digital output 0, 1, 2, 3 ...................................................................................89 Reaction of the digital outputs to fault or CPU stop................................................................89 Replacement value for DQ 0, 1, 2, 3 ......................................................................................89 Trace recording cycle..............................................................................................................90 Trace storage method.............................................................................................................90
DR 8 date and time .................................................................................................................90
DR 9 module information ........................................................................................................91
DR 10 load cell parameters ....................................................................................................92 Overview .................................................................................................................................92 50/60 Hz toggling ....................................................................................................................94 Number of support points .......................................................................................................94 Load cell characteristic value..................................................................................................94 Rated load of a load cell .........................................................................................................94 Overload limit ..........................................................................................................................94 Impedance reference value ....................................................................................................95 Permissible impedance deviation ...........................................................................................95 Load cell manufacturer ...........................................................................................................95 Load cell order number ...........................................................................................................95
DR 11 channel status/channel activation................................................................................95 Overview .................................................................................................................................95

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

5

Table of contents

6.12.2
6.13 6.13.1 6.13.2 6.13.3 6.13.4 6.13.5 6.13.6 6.13.7 6.13.8 6.13.9
6.14 6.14.1 6.14.2 6.14.3 6.14.4 6.14.5 6.14.6 6.14.7 6.14.8 6.14.9
6.15 6.15.1 6.15.2
6.16 6.16.1 6.16.2
6.17 6.17.1 6.17.2
6.18 6.18.1 6.18.2
6.19 6.19.1 6.19.2 6.19.3 6.19.4 6.19.5 6.19.6 6.19.7 6.19.8
6.20 6.20.1 6.20.2 6.20.3 6.20.4 6.20.5

Channel status / channel activation ....................................................................................... 96
DR 12 Ethernet parameters ................................................................................................... 97 Overview ................................................................................................................................ 97 Device MAC address ............................................................................................................. 99 IP address .............................................................................................................................. 99 Subnet mask .......................................................................................................................... 99 Gateway ............................................................................................................................... 100 Device name ........................................................................................................................ 100 Unit identifier channel 1 or channel 2................................................................................... 100 Modbus TCP port number channel 1 or channel 2 .............................................................. 100 Byte swap............................................................................................................................. 100
DR 13 RS485 parameters.................................................................................................... 101 Overview .............................................................................................................................. 101 RS485 protocol .................................................................................................................... 102 RS485 baud rate .................................................................................................................. 103 RS485 character parity ........................................................................................................ 103 RS485 termination ............................................................................................................... 103 Byte swap............................................................................................................................. 103 RS485 Modbus address ...................................................................................................... 103 Decimal place for Siebert indicator ...................................................................................... 103 Modbus RTU message frame delay .................................................................................... 104
DR 14 SIMATIC interface parameters ................................................................................. 104 Overview .............................................................................................................................. 104 Selection of process value 1, 2 ............................................................................................ 105
DR 15 tare default values .................................................................................................... 106 Overview .............................................................................................................................. 106 Default tare weight ............................................................................................................... 106
DR 16 simulation value ........................................................................................................ 107 Overview .............................................................................................................................. 107 Weight simulation specification ............................................................................................ 107
DR 18 digital output control specifications ........................................................................... 108 Overview .............................................................................................................................. 108 Specification for digital output 0, 1, 2, 3 ............................................................................... 109
DR 30 current process values.............................................................................................. 109 Overview .............................................................................................................................. 109 Gross process weight .......................................................................................................... 112 Net process weight .............................................................................................................. 112 Tare process weight............................................................................................................. 113 Gross / net weight ................................................................................................................ 113 Gross / net weight with increased resolution (x 10) ............................................................. 113 Gross process weight 2 ....................................................................................................... 113 Refresh counter for process values ..................................................................................... 113
DR 31 advanced current process values ............................................................................. 113 Overview .............................................................................................................................. 113 Unfiltered digit value ............................................................................................................ 115 Filtered digit value after the first filter ................................................................................... 115 Digits filtered ........................................................................................................................ 115 Current status of input 0, 1, 2............................................................................................... 115

SIWAREX WP521/WP522

6

Manual, 04/2016, A5E36695225A

Table of contents

6.20.6 6.20.7 6.20.8 6.20.9

Current status of digital output 0, 1, 2, 3...............................................................................115 Current status of DIP switch .................................................................................................115 Refresh counter for process values ......................................................................................116 Current load cell signal in mV ...............................................................................................116

6.21

DR 32 alarm display..............................................................................................................116

6.22 6.22.1 6.22.2

DR 34 ASCII main display value...........................................................................................119 Overview ...............................................................................................................................119 Content of main display as ASCII string ...............................................................................120

6.23

DR 48 date and time 2 (for Modbus) ....................................................................................120

7 Alarm logging...................................................................................................................................... 123

7.1

Message types......................................................................................................................123

7.2

Message paths......................................................................................................................123

7.3

Evaluating messages with the help of SIWATOOL ..............................................................124

7.4

Detecting messages with the help of FB SIWA ....................................................................124

7.5 7.5.1 7.5.2 7.5.3 7.5.4 7.5.5

Message list ..........................................................................................................................124 Introduction ...........................................................................................................................124 System status message list ..................................................................................................124 Technology error message list..............................................................................................125 Message list data and operating errors with additional information .....................................125 Messages by LEDs on the module .......................................................................................130

8 Commands ......................................................................................................................................... 133

8.1

Overview ...............................................................................................................................133

8.2

Command lists ......................................................................................................................133

8.3

Command groups of SIWAREX WP521/WP522 ..................................................................135

9 Communication with SIMATIC S7-1500............................................................................................... 137

9.1

General information ..............................................................................................................137

9.2

System environment .............................................................................................................137

9.3

Memory requirements for SIWAREX communication...........................................................138

9.4

Creating the hardware configuration.....................................................................................138

9.5

Diagnostic messages............................................................................................................141

9.6

Triggering a hardware interrupt ............................................................................................142

9.7

Ethernet approvals................................................................................................................143

9.8

Calling of function block ........................................................................................................144

9.9

Working with the function block ............................................................................................147

9.10

I/O interface of function block ...............................................................................................149

9.11

Error codes of function block ................................................................................................149

10 Communication via Modbus ................................................................................................................ 151

10.1

General information ..............................................................................................................151

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

7

Table of contents

10.2

Special feature of Modbus TCP/IP connection to SIWAREX WP522 ................................. 151

10.3

Principle of data transmission .............................................................................................. 151

10.4

Data record concept............................................................................................................. 153

10.5

Command mailboxes ........................................................................................................... 153

10.6

Reading registers ................................................................................................................. 153

10.7

Writing registers ................................................................................................................... 154

11 Technical specifications .......................................................................................................................157

11.1

Technical specifications ....................................................................................................... 157

11.2

Electrical, EMC and climatic requirements .......................................................................... 161

11.3

Approvals ............................................................................................................................. 166

12 Accessories .........................................................................................................................................169

12.1

Configuration package ......................................................................................................... 169

A Appendix .............................................................................................................................................171

A.1

Technical support................................................................................................................. 171

A.2

ESD Guidelines.................................................................................................................... 172

A.3

List of abbreviations ............................................................................................................. 173

Index ...................................................................................................................................................175

SIWAREX WP521/WP522

8

Manual, 04/2016, A5E36695225A

Foreword

1

1.1

Purpose of the manual

This manual contains module-specific information about the wiring, diagnostic and technical specifications of the technology module.

Information about the design and commissioning of the S7-1500 or the ET 200MP in general can be found in the system manual for S7-1500 or ET 200MP.

1.2

Conventions

Observe the notes labeled as follows:

Note
A note contains important information about the product described in the documentation, about handling the product, or about a part of the documentation to which special attention should be given.

1.3

Security messages

Siemens provides automation and drive products with industrial security functions that support the secure operation of plants or machines. They are an important component in a holistic industrial security concept. With this in mind, our products undergo continuous development. We therefore recommend that you keep yourself informed with respect to our product updates. Detailed technical information can be found at: http://support.automation.siemens.com.

To ensure the secure operation of a plant or machine it is also necessary to take suitable preventive action (e.g. cell protection concept) and to integrate the automation and drive components into a state-of-the-art holistic industrial security concept for the entire plant or machine. Products used from other manufacturers should also be taken into account here. You will find further information under: http://www.siemens.com/industrialsecurity.

1.4

Industrial Security

SIWAREX WP521/WP522 is intended for use in secure networks (closed) and is not protected against unauthorized data traffic.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

9

Foreword 1.4 Industrial Security
Devices connected to a company network or to the Internet must be protected against unauthorized access, e.g. through application of firewalls and network segmenting. For more information about Industrial Security, visit (http://www.siemens.com/industrialsecurity)

SIWAREX WP521/WP522

10

Manual, 04/2016, A5E36695225A

Documentation guide

2

Introduction

The documentation for the SIMATIC and SIWAREX is modular and includes topics related to your automation system.
The complete documentation for the S7-1500 and ET 200MP systems consists of the respective system manuals, function manuals and device manuals.
You are also supported by the information system from STEP 7 (TIA Portal) during the configuration and programming of your automation system.

Overview of the documentation for the SIWAREX WP 521/WP522 technology module
The following table shows documents that you need to use the SIWAREX WP521/WP522 technology module.

Table 2- 1 Documentation for the SIWAREX WP521/WP522 technology module

Topic System description
Designing interference-free controllers
Weighing with SIWAREX WP521/WP522

Documentation

Most important contents

S7-1500 Automation System (https://support.industry.siemens.com/cs/docu ment/59191792) System Manual

· Application planning · Assembly · Connecting

System manual

· Commissioning

Distributed I/O System ET 200MP

(http://support.automation.siemens.com/WW/vi

ew/de/45604716)

· Basics

Designing interference-free controllers (https://support.industry.siemens.com/cs/docu ment/59193566/simatic-s7-1500-et-200mp-et-

· Electromagnetic compatibility

200sp-et-200al-designing-interference-free- · Lightning protection

controllers?dti=0&lc=en-WW) Function Manual

· Module design

SIWAREX WP521/WP522 Electronic Weighing System Device Manual

·

Assembly

· Connecting

· Weighing functions

· Communication

· Technical specifications

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge from the Internet (https://support.industry.siemens.com).

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

11

Documentation guide

SIWAREX WP521/WP522

12

Manual, 04/2016, A5E36695225A

Product overview

3.1

Properties

Article number

SIWAREX WP521 - 7MH4 980-1AA01 SIWAREX WP522 - 7MH4 980-2AA01

3

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

13

Product overview 3.1 Properties
View of the modules

Image 3-1 SIWAREX WP521/WP522 module 14

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Properties

Product overview 3.2 Area of application
The TM SIWAREX WP521/WP522 technology module has the following features:  Technical properties  Width: 35 mm  WP521 one weighing channel, WP522 two weighing channels  Interfaces:
­ Supply voltage L+ ­ Load cell connection for strain gauge load cell in 6 or 4-wire system (per channel), 1 to
4 mV/V ­ Digital input signals DI0, DI1 and DI2 (per channel) ­ Digital output signals DQ0, DQ1, DQ2, DQ3 (per channel) ­ RS485 with Modbus RTU or for connecting the remote display (per channel) ­ Ethernet interface with SIWATOOL protocol and Modbus TCP/IP (once for each
channel)  Channel-by-channel monitoring of load cells for wire breakage  Hardware interrupts can be configured channel by channel  Input filter for suppressing interference with programmable digital inputs  Supported functions:
­ Scale calibration with weights or automatically ­ Signal filtering with average value filter and low-pass filter ­ 3 limits ­ Tare ­ Set to zero ­ Trace (signal recording) ­ Firmware update ­ Identification data I&M ­ Commissioning with SIWATOOL (service tool for PC)

3.2

Area of application

The electronic weighing system described here is the optimal solution everywhere signals from weighing or force sensors are to be acquired and processed. SIWAREX WP521/WP522 offers high accuracy as an electronic weighing system.

The applications for which the SIWAREX WP521/WP522 is equipped include the following:

 Non-automatic weighing to OIML R76 (not legal-for-trade)

 Level monitoring of silos and bunkers

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

15

Product overview 3.3 System integration in SIMATIC
 Platform scale  Scales in hazardous areas (with SIWAREX IS Ex interface)

3.3

System integration in SIMATIC

The electronic weighing system described here is a technology module for the SIMATIC S71500. It can be freely configured within the automation solution, including the weighing application. An optimal solutions can be found for a variety of systems with the right combination of SIMATIC modules. Fast customized and industry specific solutions can be developed using the configuration package and the "Ready for use" application for SIMATIC.

3.4
16

Image 3-2 Figure SIWAREX WP521/WP522 installed next to SIMATIC 1500-CPU
Customer benefits
The electronic weighing system described here features significant advantages:  Uniform design technology and consistent communication in SIMATIC S7-1500  Configuration via an HMI panel or PC  Standardized configuration option in the SIMATIC TIA Portal  Weight measurement with a resolution of 4 million parts  High accuracy 0.05 %  High measuring rate of 100/120 Hz (effective interference suppression)  Monitoring of limits
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Product overview 3.5 Product package
 Flexible adaptation to different requirements  Easy adjustment of the scales using the SIWATOOL program  Automatic adjustment without calibration weights possible  Replacement of module without renewed scale calibration  Use in Ex Zone 2 / ATEX approval  Intrinsically safe load cell for use in hazardous area Zone 1 (SIWAREX IS option)  Diagnostic functions

3.5

Product package

The product package of the SIWAREX WP521/WP522 includes:

 SIWAREX WP521/WP522 module

The following components are supplied with the technology module and can also be ordered separately as spare parts:

 Shield bracket

 Shield terminal

 Power supply element

 Labeling strip

 U-connector

Other components The following components must be ordered separately:  Front connectors, including potential jumpers and cable ties  Front connector 35 mm with push-in system

Note
We recommend using the SIWAREX WP521/WP522 configuration package to configure the SIWAREX WP521/WP522 electronic weighing system. The configuration package is not included in the product package of the module:  Accessories (Page 169).

3.6

Overview of the functions

The primary task of the electronic weighing system is measuring and recording the current weight value. The integration in SIMATIC provides the possibility to process the weight value directly in the PLC (Programmable Logic Controller).

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

17

Product overview 3.7 Overview of configuration options
The SIWAREX WP521 / WP522 is calibrated ex factory. This enables both automatic adjustment of the scale without calibration weights and modules to be exchanged without having to re-adjust the scale.
The Ethernet interface enables connection of a PC for configuring the electronic weighing system or the connection of automation systems of any kind (Modbus TCP / IP).
The SIWAREX WP521/WP522 electronic weighing system can also be used in hazardous areas (Zone 2). The load cell is powered intrinsically safe for Zone 1 applications via the optional Ex interface, SIWAREX IS.
The SIWAREX WP521/WP522 can also be used independent of the automation system in stand-alone mode. This scenarios provide numerous configuration options.
The user himself can determine the HMI device. However, the HMI device must support Modbus RTU or TCP/IP. A custom operating style can be implemented.
The SIWAREX WP521/WP522 can be controlled remotely without a separate, local HMI device. An HMI device can be used for multiple scales. The configuration possibilities are almost unlimited.

3.7

Overview of configuration options

3.7.1

Configuration with the PC
The scale parameters can be quickly adjusted using the "SIWATOOL" PC configuration software, which offers Windows convenience.
The program enables you to commission the scale without knowledge of automation technology. If service is required, the processes in the scale can be analyzed and tested independent of the automation system or operator panel using the PC. Reading the diagnostic buffer from the SIWAREX module is very helpful when analyzing events.
The following figure shows the layout of the individual program windows.

SIWAREX WP521/WP522

18

Manual, 04/2016, A5E36695225A

Product overview 3.7 Overview of configuration options

3.7.2

Image 3-3 Overview of the SIWATOOL WP522 program window
SIWATOOL not only provides support for adjusting the scale, but also in the analysis of the diagnostics buffer, which can be saved together with the parameters after reading the module. The display of the current scale state can be adjusted. The program can be switched between several languages.
Configuration via the Modbus interface
Alternatively, the configuration can also be performed on a SIMATIC panel, which is connected directly to the SIWAREX module. In this case, the SIWAREX module behaves as a Modbus slave. The configuration software project package includes loadable HMI software for a SIMATIC Panel TP700 Comfort. In general, all SIMATIC HMI Comfort Panels can be used for direct Modbus communication. The use of SIMATIC HMI Basic Panels is currently not possible. A direct connection between SIMATIC HMI Panels and SIWAREX WP521/WP522 via Modbus RTU is not approved. The parameters for the SIWAREX module can also be edited on an external system, a PC for example, and transferred to the electronic weighing system via Modbus RTU or TCP/IP. You can find a detailed description of the mapping of the holding register in section  Scale parameters and functions. (Page 67)

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

19

Product overview 3.7 Overview of configuration options

SIWAREX WP521/WP522

20

Manual, 04/2016, A5E36695225A

Installation and connection

4

4.1

Installation guideline

When assembling the SIMATIC components with the electronic weighing system described herein, you must adhere to the guidelines for setup, assembly and wiring the SIMATIC S71500 (see documentation tree).

This manual also describes the specific aspects of assembly and wiring the electronic weighing system.

4.2

Pin assignment

Connect the load cells, the digital input and digital output signals to the 40-pin front connector of the technology module. In addition, connect the 4-pin feed element to the supply voltage to supply the module and digital outputs.

The next two sections detail the pin assignment for the front connector and the power supply element.

You can find information on wiring front connectors, creating a cable shield, etc. in the in section "Connecting" section of the Automation System S7-1500 (https://support.industry.siemens.com) system manual and Distributed I/O System ET 200MP (https://support.industry.siemens.com) system manual.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

21

Installation and connection 4.2 Pin assignment

Pin assignment for the front connector
The following tables show the pin assignment of the front connector.

Load cell EXC+
Load cell EXC-
Load cell SIG+
Load cell SIG-
Load cell SEN+
Load cell SEN-
RS485, D+
RS485, D-
DQ.L+ (24V DQ)
DQ.M (0V DQ)
DQ.0
DQ.1
DQ.2
DQ.3
DI.0
DI.1
DI.2
DI.M (0V DI)
L+ (if jumpered)
M (if jumpered)

WP521 ST

1

21

2

22

3

23

4

24

5

25

6

26

7

27

8

28

9

29

10 30

11 31 12 32 13 33 14 34 15 35 16 36 17 37 18 38

(Pins 21 ... 38 unusable)

19 39 L+ (of 41, 42)

20 40 M (of 43, 44)

44 1 2
L+

44 3 4
M

Pins 19 and 39 jumperable
Pins 20 and 40 jumperable

Pin assignment of WP521

SIWAREX WP521/WP522

22

Manual, 04/2016, A5E36695225A

Load cell EXC+
Load cell EXC-
Load cell SIG+
Load cell SIG-
Load cell SEN+
Load cell SEN-
RS485, D+
RS485, D-
DQ.L+ (24V DQ)
DQ.M (0V DQ)
DQ.0
DQ.1
DQ.2
DQ.3
DI.0
DI.1
DI.2
DI.M (0V DI)
L+ (if jumpered)
M (if jumpered)

WP522 ST

1

21

2

22

3

23

4

24

5

25

6

26

7

27

8

28

9

29

10

30

11

31

12

32

13

33

14

34

15 35

16

36

17

37

18

38

19

39 L+ (of 41, 42)

20

40 M (of 43, 44)

44 1 2
L+

44 3 4
M

Installation and connection 4.2 Pin assignment
Pins 9 and 29 jumperable Pins 10 and 30 jumperable
Pins 19 and 39 jumperable Pins 20 and 40 jumperable

Pin assignment of WP522

Pin assignment for the power supply element
The power supply element is plugged onto the front connector and serves to supply the technology module. For this purpose, you need to connect the supply voltage to terminal 41 (L+) and terminal 44 (M). Use terminal 42 (L+) and terminal 43 (M) to loop the supply voltage to the next module.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

23

Installation and connection 4.3 Connecting the load cells

Image 4-1 Power supply element

L+

DC 24V supply voltage

M

Ground for supply voltage

4.3

Connecting the load cells

Overview

Pickups equipped with strain gauges (EMS full bridge) can be connected to the electronic weighing system SIWAREX WP521/WP522 to meet the following requirements.
 Identifier 1.... 4 mV/V
 A supply voltage of 5 V is permitted
The power supply for the load cells is 4.85 V.
To test the maximum possible number of load cells that can be connected to a WP521/WP522, the following condition must be met:
 Scale operation without Ex interface: (input resistance of load cell) / (number of load cells) > 40 Ohm
 Weighing mode with EX interface: (input resistance of load cell) / (number of load cells) > 50 Ohm

SIWAREX WP521/WP522

24

Manual, 04/2016, A5E36695225A

Installation and connection 4.3 Connecting the load cells
Connection with 4-wire or 6-wire system
The connection options are shown in the following two figures.

Image 4-2 Connection of strain gauge load cell with 4-wire system

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

25

Installation and connection 4.3 Connecting the load cells

Image 4-3 Connection of load cell with 6-wire system

Rules

Observe the following rules when connecting analog (strain gauge) load cells:
1. The use of a junction box (SIWAREX JB junction box) is required when more than one load cell is connected (the load cells must be connected in parallel). If the distance of a load cell to the SIWAREX WP521/WP522 or terminal box is greater than the available length of the load cell cable, the SIWAREX EB extension box should be used.
2. The cable shield is always applied at the cable gland of the junction box (SIWAREX JB) or the extension box. If there is a risk of equipotential bonding through the cable shield, connect a equipotential equalization conductor parallel to the load cell cable.

SIWAREX WP521/WP522

26

Manual, 04/2016, A5E36695225A

Installation and connection 4.4 Shield connection
3. Twisted wire pairs that are also shielded are required for the specified cables: ­ Sensor cable (+) and (-) ­ Measuring voltage cable (+) and (-) ­ Supply voltage cable (+) and (-)

Image 4-4 Shielding in the screw gland
We recommended that you use the cables listed in chapter  Accessories (Page 169). 4. The shield must be connected to ground in the immediate vicinity of the SIWAREX
WP521/WP522. The maximum distance between the SIWAREX WP521/WP522 and the load cell is applicable when the recommended cables are used.

Table 4- 1
Labeling SigSig+ SenSen+ ExcExc+

Load cell connections on the module
Function Measurement cable load cell Measurement cable load cell Sensor cable load cell Sensor cable load cell + Supply load cell Supply load cell +

4.4

Shield connection

You need to ground the shields of the load cell cables via the shield on the front connector (shield bracket and terminal) ground.

Ensure that the shield support for the shielded cables are correctly assembled. This is the only way to ensure the immunity of the system.

A cable is shielded to attenuate the effects of magnetic, electrical and electromagnetic interference on the cable. Interference on the cable shielding is discharged to the ground through a conductive cable shield bus. To avoid this interference from becoming a source of interference itself, ensure the connection to ground has a low impedance .

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

27

Installation and connection 4.5 Supply voltage L+/M
Only use cables with a braided shield (see recommended cable in the section Accessories (Page 169)). The coverage of the shield should be at least 80%.

Image 4-5 Front connector with a shielded cable and 24V connection

4.5

Supply voltage L+/M

Connect the supply voltage (24 V DC) to terminals L+ and M. An internal protection circuit protects the technology module from reverse polarity of the supply voltage. The technology module monitors whether the supply voltage is connected.

SIWAREX WP521/WP522

28

Manual, 04/2016, A5E36695225A

Installation and connection 4.6 Digital inputs DI0, DI1 and DI2

4.6

Digital inputs DI0, DI1 and DI2

There are three digital inputs per weighing channel available. The digital inputs can be assigned to scale commands per configuration.

CAUTION Unknown assignment of digital inputs
If the assignment of the digital inputs is not known at the time of connection, This may damage parts of the system.
Do not create a connection with the digital inputs before you know the assignment.

The digital inputs are not permanently assigned to commands in the delivery state. The assignment of the digital inputs to commands is made during commissioning by setting parameters of the data record DR7. The digital inputs of the two SIWAREX WP522 scale channels are electrically isolated from each other. Input filter for digital inputs The following values can be specified for the input delay:  None  5 ms  10 ms (preset)  15 ms  20 ms  25 ms  30 ms  35 ms  40 ms

Note If you select "No", you must use shielded cables to connect the digital inputs.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

29

Installation and connection 4.7 Digital outputs DQ0, DQ1, DQ2 and DQ3

4.7

Digital outputs DQ0, DQ1, DQ2 and DQ3

There are four digital outputs available per weighing channel. The digital outputs DQ0, DQ1, DQ2, DQ3 may be assigned to the status or messages by the specified parameters. They can also be controlled directly via a SIMATIC program or via DR18.

CAUTION
Unknown assignment of digital outputs
The assignment of the digital outputs is not known at the time of connection. Digital outputs can be active immediately after turning on the power supply. This may damage parts of the system.
Do not create a connection with the digital outputs before you know the assignment of the digital outputs.

The digital outputs have no fixed assignment to process data ex factory. The assignment of the digital inputs to function and the reaction to failure is made during commissioning by setting parameters of the data record DR7.
The digital outputs of the two SIWAREX WP522 scale channels are electrically isolated from each other.
The digital outputs are 24 V sourcing with respect to M and with a nominal load current of 0.5A. They are protected against overload and short-circuit.
Note
Direct connection of relays and contactors is not possible without external wiring. You can find information about the maximum possible operating frequencies and the inductance of the inductive load on the digital outputs in the section Technical specifications (Page 157).

4.8
30

Connection of RS485 serial interface
The following devices can be connected to the serial interface:  Display from the Siebert company, type S102  Operator Panels or other HMI devices with RS485 and Modbus protocol RTU  Communication partner with Modbus protocol RTU

Table 4- 2 Connection of RS485 serial interface

Labeling EIA-485 D+ EIA-485 D-

Function RS485 data line + for feeding in of bus signal RS485 data line - for feeding in of bus signal

When a SIWAREX WP521/WP522 module forms the end of an RS485 network, the termination of the bus network can be switched per configuration.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Installation and connection 4.9 Connection of Siebert display via RS485

4.9

Connection of Siebert display via RS485

A Siebert display S102 with the order no. S102-W6/14/0R-000/0B-SM can be connected to the RS485 interface of the weighing module. Connect a 24 V DC supply to the Siebert display, and connect the latter to the RS485 interface of the weighing module as shown in the following diagram.

Image 4-6 Connection of Siebert display S102
The RS485 interface in DR13 is set as follows:  RS-485 protocol: SIEBERT Display S102  Baud rate: 9 600 bit/s  Character parity: Even The S102 is set as follows:

Table 4- 3 Settings of Siebert display S102

Menu item 1 Interface 9 Station address
t Timeout C F Segment test

Setting 485 01
2 0.0 ----* 8.8.8

Meaning

RS485 interface

Address meaning:

Address Weight value

01

Verifiable weight

02

Total

03

Net

04

Tare

e.g. timeout after 2 seconds

No decimal point

No segment test when switching on

Segment test when switching on

4.10

Connection of the Ethernet interface
An RJ45 connector is used for the connection.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

31

Installation and connection 4.10 Connection of the Ethernet interface
The following devices can be connected to the Ethernet interface:  PC service and commissioning program SIWATOOL or Web browser  Operator panels or other HMI devices with Ethernet and Modbus protocol TCP/IP  Communication partner with Modbus protocol TCP/IP To remove the plug-in connector without a tool (screwdriver), you should ensured that the cable has a plug with sufficiently long release lever, see as an example in the figure below.

Image 4-7 Connection socket for an Ethernet cable

Image 4-8 Ethernet cable connected to module

SIWAREX WP521/WP522

32

Manual, 04/2016, A5E36695225A

Installation and connection 4.10 Connection of the Ethernet interface
Image 4-9 Press the Ethernet cable into the socket Ethernet socket on the bottom of the enclosure, plug with extended release lever
Image 4-10 Ethernet plug with release lever

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

33

Installation and connection 4.10 Connection of the Ethernet interface

SIWAREX WP521/WP522

34

Manual, 04/2016, A5E36695225A

Commissioning

5

5.1

Basic tasks

Commissioning consists mainly of checking the mechanical scale structure, setting parameters, calibration, and verification of the envisaged functionality.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

35

Commissioning 5.2 Ex-works settings of the operating switch

5.2

Ex-works settings of the operating switch

The module has two DIP switches located on the left in the upper part of the enclosure (accessible through the vent). Both switches are in the up position ex factory.

Image 5-1 Switch position in the enclosure

SIWAREX WP521/WP522

36

Manual, 04/2016, A5E36695225A

Commissioning 5.2 Ex-works settings of the operating switch

Switch

Switch


Specifies the operating environment Currently no function

Image 5-2 Switch functions

Switch 

Switch position Up Down

Operating environment Integrated in SIMATIC mode Stand-alone mode (without SIMATIC controller)

"Integrated in SIMATIC mode" set.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

37

Commissioning 5.3 Factory-set parameters
Connected to an S7-1500 CPU, stand-alone mode (DIP 1 in lower position) can be useful, because SIWAREX WP521/WP522 then remains fully functional even in the case of a CPU stop and can be operated (e.g. through an HMI device directly connected via Modbus, through a coupled PC or through the digital inputs)
Note
If the switch  is set to the lower position while the SIWAREX module is operating with
SIMATIC, the SIWAREX module does not perform a reset when there is a loss of power supply for the SIMATIC CPU.

5.3 5.4
5.5
5.5.1

Factory-set parameters
The electronic weighing system described here is provided with factory-set parameters. The parameters have been provided for a typical 100 kg scale based on three load cells. Parameters which can be entered in % or time are preset in such a way that they provide good results for most applications. A quick start can be carried out with these default parameters (see chapter Start-up with the operator panel and the Ready-for-use software (Page 38)).
Commissioning tools
The following options are available for commissioning the electronic weighing system:  Operator Panel  SIWATOOL The SIWATOOL program allows you to commission the scale without an Operator Panel and without an automation system. In the event of a fault, additional SIWATOOL diagnostics functions enable fast analysis of the cause.
Start-up with the operator panel and the Ready-for-use software
Restriction of access
Note The example project "Ready-for-use" does not restrict access. If operation of the scale/system is implemented based on this configuration example, restriction of access is recommended, e.g. by using passwords with the support of the engineering tools.

SIWAREX WP521/WP522

38

Manual, 04/2016, A5E36695225A

5.5.2

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software
Start
The quick start is performed in this example with a TP700 Comfort Panel connected directly to the WP521/WP522. The panel communicates directly via Modbus TCP/IP or via the SIMATIC S7-1500 CPU. To carry out the quick start, select the "1.0 Setup" function in the main menu and then "1.2 Quick Start". You will be guided through the individual tasks for setting the most important parameters. The remaining parameters are factory-set in such a way that they can be used in most cases without any changes. All parameter inputs must be saved by clicking on the diskette icon.

Image 5-3 Quick Start 1 of 6

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

39

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software

5.5.3

Specification of basic values 1
The basic parameters can be entered first, e.g. the scale name, unit of weight or gross weight ID.

Image 5-4 Quick Start 2

SIWAREX WP521/WP522

40

Manual, 04/2016, A5E36695225A

5.5.4

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software
Specification of basic values 2
The load cell parameters are entered in this step.

5.5.5

Image 5-5 Quick Start 3
Selecting the calibration method

Image 5-6 Quick Start 4

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

41

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software
The module can always be calibrated in two different ways:  Using reference weights: in the case of a calibration with weights, mechanical influences
of the scale construction are also partially taken into account.  Without weights, using the technical specifications of the connected load cell(s): in the
case of automatic calibration, the accuracy of the scale is influenced by the mechanical properties to a greater extent than with calibration using reference weights. With both methods, make sure that the mechanical properties of the scale are flawless prior to calibration.

5.5.6

Defining the calibration weights

Image 5-7 Quick Start 5
In step 5 you enter the calibration weights which are to be positioned on the scale during the calibration. If the scale is not empty and the current contents are known, you can define an "Calibration weight 0" with the current contents of the scale. With an empty scale, this parameter remains as 0 kg. "Calibration weight 1" usually defines the first reference point of the scale characteristic. A further reference point ("Calibration weight 2") can also be set in addition. This is optional, and may not be necessary depending on the mechanical properties of the scale.
Note that the interval between the calibration weights must be at least 2% of the nominal load of the scale. With a 1 000 kg scale, a calibration weight of at least 20 kg must therefore be used.

SIWAREX WP521/WP522

42

Manual, 04/2016, A5E36695225A

5.5.7

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software
Setting calibration points

Image 5-8 Quick Start 6
Carry out the calibration commands at the end of the quick start:
1. Carry out the "Set calibration weight 0" command. The "Calibration weight 0" defined in step 5 is now visible in the display.
2. Place the "Calibration weight 1" defined in step 5 on the scale construction, and execute the "Set calibration weight 1" command.
3. If an "Calibration weight 2" was selected: Place the "Calibration weight 2" defined in step 5 on the scale construction, and execute the "Set calibration weight 2" command.
4. Calibration of the scale is now complete. Return to the start screen by clicking on the house icon.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

43

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software

5.5.8

Calibrating the scale automatically
The scale can also be calibrated without weights. To do this, it is essential to enter data specific to the load cells, and the scale must be empty.

Image 5-9 Quick Start 5
The number of points of support corresponds with a silo, for example, to the number of clamps or feet of the silo. A quadratic platform scale with a load cell at each corner has 4 support points. The characteristic values of the individual load cells are required to calculate the average characteristic value of the cells.
The formula for the calculation is: (characteristic value cell 1 + characteristic value cell 2 + .... characteristic value cell n) / n
If the exact characteristic values are unknown, it is permissible to also use rounded-off numbers (e.g. 1.0 mV/V, 2.0 mV/V). The nominal load of one single load cell (not the nominal load of the complete scale!) must subsequently be defined.

SIWAREX WP521/WP522

44

Manual, 04/2016, A5E36695225A

5.5.9

Commissioning 5.5 Start-up with the operator panel and the Ready-for-use software
Performing the automatic calibration

Image 5-10 Quick Start 6
Subsequently enter the "Perform automatic calibration" command with the scale empty. The scale is calibrated directly, and clicking on the house icon returns you to the start screen.

5.5.10

Checking the scale following calibration
If the scale is only used for company-internal purposes, a simple check is sufficient.
Perform the following steps:
1. The scale is unloaded and shows "0 kg".
2. Place a known reference weight on the scale. Check the displayed value.
3. If a second known reference weight is available, place it on the scale in addition. Check whether the scale displays the sum of the reference weights.
4. Remove the reference weights from the scale. Check that the display is "0 kg" again.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

45

Commissioning 5.6 Service with the SIWATOOL program

5.6

Service with the SIWATOOL program

5.6.1

General
You can use the SIWATOOL program to commission the scale independently of the SIMATIC automation system. The program is included in the configuration package. Install the SIWATOOL program (SIWATOOL folder) on your PC for commissioning. You have 3 options when selecting the SIWAREX module:  Selection SIWAREX WP521ST  Selection SIWAREX WP522STA - for channel A  Selection SIWAREX WP522STB - for channel B

SIWAREX WP521/WP522

46

Manual, 04/2016, A5E36695225A

5.6.2

Windows and functions of SIWATOOL

Commissioning 5.6 Service with the SIWATOOL program

 Control elements for SIWATOOL and operation  Offline values of the SIWAREX module

of the scale

 Parameter list of the SIWATOOL module

 Online values of the connected SIWAREX module

Image 5-11 Layout of the SIWATOOL user interface

The message window shows the current contents of the message buffer of the SIWAREX module. The most recent message is in the top line.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

47

Commissioning 5.6 Service with the SIWATOOL program
In order to archive data, all data can be exported from the SIWAREX module and saved as a file or printed.
Note You can edit all data in the SIWAREX module in online mode. The changes are not automatically imported to the corresponding scale data block in the SIMATIC CPU.
Select the appropriate data record in order to send or receive it (e.g.: "Calibration parameter (DR3)") and call the command list with a right mouse click.
The data record is sent from the PC to the SIWAREX WP521/WP522 using "Send data record". The data record is sent from the SIWAREX WP521/WP522 to the PC using "Receive data record". The complete data record (all parameters of the data record) is always transferred, not just individual parameters! For example, if data record 3 is to be sent, right-click on "Calibration Parameter (DR3)". The command list is then opened with the option for sending the respective data record to the weighing module or for reading it from the module. All data records can only be sent to or read from the SIWAREX as complete packets. It is not possible to read or write individual parameters within a data record. Different parameter-settings between PC and SIWAREX are marked in red in the SIWATOOL:

Therefore the complete data record must initially be received for every change to parameters within it.

SIWAREX WP521/WP522

48

Manual, 04/2016, A5E36695225A

Commissioning 5.6 Service with the SIWATOOL program
The desired parameter can then be edited, and the data record returned.
Note If the data record is not received, the danger exists that different PC parameters will be sent to the scale and overwrite previously active and intentionally defined parameters.
Online parameter trends can be recorded and played back using the recorder function located at the top right-hand edge of SIWATOOL. You can use the "Configure recorder" button to select the data records to be recorded and to set the save parameters. The playback speed can be set using a slider.

5.6.3 5.6.4

Available help options
SIWATOOL offers various help options for operation:  Info card
You can select the "Info" item directly underneath the individual data records in the navigation tree. This info card explains how the data record influences the scale behavior.  Tooltip If you move the mouse over a button or parameter, a corresponding help text is displayed.  Help Click on the menu option "Help" to call up the SIWATOOL help. The Help can be opened separately.
Recording scale traces
Scale traces can be recorded and exported using SIWATOOL. The recording is started and stopped using commands, and recorded traces can also be deleted. The trace recording cycle is set in data record DR7. A dialog box appears with the "Export trace data" button. The trace is displayed in this window as a table or graphic, and the data can be exported to csv or Excel and then processed further. The commands for starting and stopping are present in the "Trace commands" group (yellow memory card icon) in SIWATOOL. All important measured values, messages and changes in status are recorded.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

49

Commissioning 5.6 Service with the SIWATOOL program

Image 5-12 Reading trace as a table

5.6.5
50

Image 5-13 Reading trace as a chart
Offline parameter assignment
All scale parameters can be edited and saved without an electronic weighing system. This reduces the setup time. You can thus prepare the parameters for several scales in your office, and subsequently transfer them to the electronic weighing system during setup. Data from one scale currently in operation can be exported and used to set up another scale.
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

5.7
5.7.1
5.7.2

Commissioning with SIWATOOL

Commissioning 5.7 Commissioning with SIWATOOL

IP address for SIWAREX
The factory-set IP address is 192.168.0.21. This address is also preset in SIWATOOL. The connection to a SIWAREX module can be established immediately. The network card used must be configured for this network. If the connection is to be established to a specific SIWAREX module, its IP address must be set in SIWATOOL. The setting is carried out with the menu item "Communication/Set Ethernet Configuration...". If the IP address of a SIWAREX module is unknown, it can be determined using the additional program "Primary Setup Tool". The program is included in the SIWAREX configuration package. During the setup, a new IP address can be assigned to the module using SIWATOOL.
Note Please also observe the Security information (Page 9).
The assignment of a new IP address to a SIWAREX module is necessary if several SIWAREX modules are present in one network. The following ports are used by SIWAREX:  SIWATOOL for SIWAREX WP521 port: 23006  SIWATOOL for SIWAREX WP522 channel A: port 23006, channel B: port 23007  Modbus TCP/IP for SIWAREX WP521: Port: 502  Modbus TCP/IP for SIWAREX WP521/WP522: Port: 502
or  Modbus TCP/IP for SIWAREX WP522 channel A: port configurable, channel B: port
configurable  FTP for firmware download port: 69

Entering a known SIWAREX IP address
To establish a connection to a SIWAREX module, enter the IP address in SIWATOOL. Under the menu item "Communication", select "Set Ethernet Configuration...". Enter the IP address of the SIWAREX module in the following window. To activate the IP address and establish a connection to the SIWAREX module, subsequently click on "Online".

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

51

Commissioning 5.7 Commissioning with SIWATOOL

5.7.3

Determining an unknown IP address
If the IP address of a connected SIWAREX module is unknown, it can be determined using the program "Primary Setup Tool". The program is included in the configuration package (Page 169).
Install the program "Primary Setup Tool". When started, the program can determine the Siemens devices present in the network.
The MAC (Media Access Control) address can be read on the front of the SIWAREX module. Every device has an MAC address which is unique worldwide.
The IP address can be determined from the identified MAC address. The Primary Setup Tool also allows the IP address of a SIWAREX module to be set/changed.
Additional information on the Primary Setup Tool can be found in the associated manual.

5.7.4

Setting up a network
Several SIWAREX modules can be connected together in a network via a switch. Via the network, you can use SIWATOOL to assign parameters to and start the various modules or connect a common Operator Panel.
Note Please also observe the Security information (Page 9).

5.7.5

Start
When starting the SIWATOOL program, first select the SIWAREX WP521ST or SIWAREX WP522STA (channel A) or SIWAREX 522STB (channel B) using the "Device selection" window.

The IP address of the module can be selected in the "Communication" menu.

SIWAREX WP521/WP522

52

Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL

Click "Online" to establish communication to the SIWAREX.

See also

Service with the SIWATOOL program (Page 46)

5.7.6 5.7.6.1

Calibration method
Selecting the calibration method
The SIWAREX module can always be calibrated in two different ways:  Using reference weights: in the case of a calibration with weights, mechanical influences
of the scale construction are also partially taken into account.  Without weights, using the technical specifications of the connected load cell(s): in the
case of automatic calibration, the accuracy of the scale is influenced by the mechanical properties to a greater extent than with calibration using reference weights. With both methods, make sure that the mechanical properties of the scale are flawless prior to calibration.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

53

Commissioning 5.7 Commissioning with SIWATOOL

5.7.6.2

Calibration with calibration weight
When calibrating using a calibration weight, the identified parameters in DR3 / Basic parameters are checked or entered:

Unit of weight: The unit of weight can be selected from a list. Maximum weighing range: Exceeding the maximum weighing range (= the maximum material to be weighed) is indicated in DS30, status 1-2, at parameter "Max 9e". If the maximum weighing range is exceeded, this bit is set to TRUE. Resolution d: The resolution d can be defined in accordance with EN 45501 (0.0001 to 50). This parameter is used for the weight display in the SIWATOOL software. Calibration weight 1: The calibration weight 1 and its corresponding calibration digits define the characteristic curve of the scale. A minimum calibration weight must be used as calibration weight 1; with a load cell characteristic value of:  1 mV/V: 8% of the total rated load of all load cells  2 mV/V: 4% of the total rated load of all load cells  4 mV/V: 2% of the total rated load of all load cells

SIWAREX WP521/WP522

54

Manual, 04/2016, A5E36695225A

Example

Commissioning 5.7 Commissioning with SIWATOOL
Number of load cells: 3 units Nominal load of one single load cell: 100 kg Load cell characteristic value: 2 mV/V The minimum calibration weight which can be used for the calibration is: 4% x 3 x 100 kg = 12 kg Once the above-mentioned parameters have been set in the PC, they must be sent to the SIWAREX. Service mode must be switched on first. The DR3 can only be sent and the calibration commands executed with service mode switched on.

After switching on service mode, a red wrench icon is displayed in the SIWATOOL next to the weight value.
The DR3 is subsequently sent to the SIWAREX by a right-click on "Calibration parameters (DR3)" and execution of "Send data record".
All parameter settings in DR3 are now identical again between PC and SIWAREX, and all parameters of DR3 are displayed again in black. Following transmission of the parameters to the SIWAREX, and with a empty scale ­ i.e. only the mechanical dead load (e.g. empty container) bears on the load cells ­ the "Calibration point 0 valid" command is executed:

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

55

Commissioning 5.7 Commissioning with SIWATOOL

The calibration weight 1 defined in DR3 is subsequently applied to the scale.

SIWAREX WP521/WP522

56

Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL
The "Calibration point 1 valid" command is then executed:

Service mode is switched off again:

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

57

Commissioning 5.7 Commissioning with SIWATOOL
The calibration is then finished, and the correct weight value is now displayed in SIWATOOL. Read back DR3 During the calibration, the SIWAREX internally changes its calibration digits. This means that obsolete parameter values are now present in SIWATOOL. These are displayed in red, e.g.:

The DR3 must be read back in order to again achieve calibration digits in the SIWATOOL which are consistent with the SIWAREX:

5.7.6.3
58

Checking the scale following calibration If the scale is only used for company-internal purposes, a simple check is sufficient. Perform the following steps: 1. The scale is unloaded and shows "0 kg". 2. Place one or more known test weights on the scale (but not the calibration weight which
was used during the calibration, so as to check other weight points of the scale in addition to the calibration weight). Check the displayed weight value in the SIWATOOL. 3. Remove the test weights from the scale. Check that the display is "0 kg" again.
Automatic calibration (= calibration without calibration weight)
The scale can also be calibrated without a weight. To do this, the parameters identified in bold type in DR3 / Basic parameters are checked or entered, and the data specific to the load cells specified in DR10: In addition, it is essential that the scale is empty. Checking or entering the parameters identified in bold type in DR3 / Basic parameters:
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL

Unit of weight: The unit of weight can be selected from a list. Maximum weighing range: Exceeding the maximum weighing range (= the maximum material to be weighed) is indicated in DR30, status 1-2, at parameter "Max 9e". If the maximum weighing range is exceeded, this bit is set to TRUE. Resolution d: The resolution d can be defined in accordance with EN 45501 (0.0001 to 50). Once the above-mentioned parameters have been entered, the parameters modified in the PC must be sent to the SIWAREX. Service mode must be switched on first. The DR3 and DR10 can only be sent and the calibration commands executed with service mode switched on:

After switching on service mode, a red wrench icon is displayed in the SIWATOOL next to the weight value:
The DR3 is subsequently sent to the SIWAREX by a right-click on "Calibration parameters (DR3)" and execution of "Send data record":

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

59

Commissioning 5.7 Commissioning with SIWATOOL
All parameter settings in DR3 are now identical again between PC and SIWAREX, and all parameters of DR3 are displayed again in black. The data specific to the load cells is subsequently specified in DR10:

Number of support points:
The number of support points corresponds with a silo, for example, to the number of clamps or feet of the silo. A quadratic platform scale with a load cell at each corner has 4 support points.
Characteristic value (mV/V):
This parameter is the mean value of the characteristic values of all connected
load cells (e.g.: characteristic value = 2.018 mV/V). The exact characteristic value of a load cell can be obtained from its test report or directly read off it.
If the characteristic values of the individual load cells are unknown, the value "1.0" can be assumed for 1mV/V load cells, the value "2.0" for 2mV/V load cells etc.
Nominal load of one single load cell
Specifying the nominal load of one single load cell
The DR10 is subsequently sent to the SIWAREX by a right-click on "Load cell parameters (DR10)" and execution of "Send data record":

SIWAREX WP521/WP522

60

Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL
All parameter settings in DR10 are now identical again between PC and SIWAREX, and all parameters of DR10 are displayed again in black. Following transmission of the parameters to the SIWAREX, and with a empty scale ­ i.e. only the mechanical dead load (e.g. empty container) bears on the load cells ­ the "Automatic calibration" command is executed:

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

61

Commissioning 5.7 Commissioning with SIWATOOL
Service mode is switched off again:

The calibration is then finished, and the correct weight value is now displayed in SIWATOOL. Read back DR3 During the calibration, the SIWAREX internally changes its calibration digits and the calibration weight. This means that obsolete parameter values are now present in SIWATOOL. These are displayed in red, e.g.:

The DR3 must be read back in order to again achieve calibration digits and the calibration weight in the SIWATOOL which are consistent with the SIWAREX:

SIWAREX WP521/WP522

62

Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL

5.7.6.4

Image 5-14 Receive data record
Checking the scale following calibration If the scale is only used for company-internal purposes, a simple check is sufficient. Perform the following steps: 1. The scale is unloaded and shows "0 kg". 2. Place one or more known test weights on the scale. Check the displayed weight value in
the SIWATOOL. 3. Remove the test weights from the scale. Check that the display is "0 kg" again.
Receive all data
Activate the "Receive all data" function in the communication menu.

All parameters can now been saved as a backup file on the hard disk. If a module is replaced, the backup file can be downloaded to the new module within a few seconds. At the time of input of the backup file, the scale is directly in the calibrated state again ­ without a new calibration.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

63

Commissioning 5.7 Commissioning with SIWATOOL

5.7.7

Firmware update with SIWATOOL
New firmware versions can be transferred to the SIWAREX module using SIWATOOL. In order to transfer the firmware, the Windows firewall must be configured in such a way that SIWATOOL is registered as an approved program. The FTP protocol is used for the transfer. Firewalls or other protection software can interfere or prevent the transmission of data via the FTP protocol. In such cases, the respective protective mechanism must be temporarily deactivated for the duration of the update, or an alternative PC used.
The latest firmware version can be found under Industry Online Support (http://support.automation.siemens.com/WW/view/de/10807015/133100).
Note
The SIWAREX module parameters are preassigned with default values after the transfer of the new firmware.
You should therefore export and save the original parameter values prior to the firmware update. Following the firmware update, the saved data can be converted by SIWATOOL to the new firmware version.

Saving existing parameters  Export the current parameters
Select the "Receive all data records" function from the menu under "Communication". The current parameter set is then transferred to SIWATOOL.  Save the current data record in a file.
Transferring the new firmware version to the SIWAREX module
Note During the firmware transfer, the SIWAREX module works restricted with the old firmware version and the new firmware is loaded in the background. For this reason, you must not switch off the module during the firmware transfer.
1. Set the SIMATIC CPU to "STOP". 2. Register with SIWATOOL on the SIWAREX module. 3. Use the function button to start the firmware download. 4. Select the current firmware file under "Firmware Download" 5. Click the "Start transfer" button. Following the transfer, the SIWAREX module must be switched off and then on again. This activates the new firmware.

SIWAREX WP521/WP522

64

Manual, 04/2016, A5E36695225A

Commissioning 5.7 Commissioning with SIWATOOL

5.7.8

Image 5-15 Downloading the firmware with SIWATOOL
Firmware update with SIMATIC TIA Portal
If necessary, the SIMATIC TIA Portal can be used to perform the firmware update of the SIWAREX WP521/WP522 module. You can update the firmware of a module using a firmware file. To update the firmware, proceed as follows: 1. Make sure the module is not in use. 2. Open the module in the online and diagnostics view. 3. Select the "Firmware Update" group in the "Functions" folder. 4. Click on the "Browse" button in the "Firmware Loader" area to select the path to the
firmware update files. 5. Select one of these files. The table then lists all modules for which an update is possible
with the selected firmware file. 6. Click "Start Upgrade". If the selected file can be interpreted by the module, it is loaded
into the module. 7. If the operating mode of the CPU needs to be changed, you are prompted via dialogs.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

65

Commissioning 5.7 Commissioning with SIWATOOL
WARNING Prohibited system states possible An S7-1500 CPU goes immediately to STOP mode when the firmware update begins, which may affect the operation of an online process or machine. Unexpected operation of a process or machine can lead to death or serious injury and/or property damage.
Note After performing a firmware update, you must replace the affected module by the same module with the current firmware version in the hardware configuration of your project. The configuration will then comply with the actual existing configuration again.
A station can restart after activating the firmware. This will result in the failure of all modules of the station. If the corresponding CPU is in RUN mode, activation of the firmware can cause access errors or other impairments of the user program even including sustained CPU STOP.

SIWAREX WP521/WP522

66

Manual, 04/2016, A5E36695225A

Scale parameters and functions

6

6.1
6.2 6.3
6.3.1

Parameters and functions
The electronic weighing system used here can be used for non-automatic weighing, for examples, as a platform scale or hopper scale. They are not legal-for-trade. All parameters are set to default values in the factory. You can restore the configuration to factory settings using the "Load factory settings" command. The default parameters are set such that the scale is immediately ready for operation. The weight value indicates changes in weight on the load cell, but only corresponds to the actual weight following a calibration. You do not need to re-enter all parameters. The advantage of this solution is that you can decide which default values are to be retained and which parameters need to be adapted for your application. All parameters are divided into data records (DR). The data records are organized in steps (tasks) to be implemented during commissioning or during the process. The scale functions governed by the parameters are also described in the parameter description below. First, the parameters of a given data record are displayed in a table. The detailed parameter description for the parameters of this data record then follows. When it receives new parameters, the SIWAREX module runs a validation check. In the event of a parameter assignment error, the data record is not applied (not saved) by the SIWAREX module and a data/operator error is reported.
DR 2 command code
DR 2 is a special data record used to transfer commands to the SIWAREX module by SIWATOOL.
DR 3 calibration parameters
Overview
The calibration parameters need to be checked and if necessary modified for all scales. The scale is basically defined by calibration parameters and calibration operation. Any changes in data record DR 3 require the service operation of the module to be activated. If service mode is not active, all parameter inputs are directly rejected with an error.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

67

Scale parameters and functions 6.3 DR 3 calibration parameters

Procedure  Check all parameters and modify them as required  Transfer the DR 3 data record from SIWATOOL to the scales  Adjust the scales  Transfer the DR 3 data record from the scales to SIWATOOL

Table 6- 1 Assignment of data record 3

Variable

Note

Data record number

Contains no. of data record

Length

Data record length information

Application

Information about which application the DR belongs to

Version ID

Information about the current data record version

Scale name header

Maximum length and actual length of string for scale name

Scale name (Page 71)

Scale name specified by user

Unit of weight Unit of weight (Page 71)

Gross identifier Abbreviation for

(Page 71)

brutto/gross

(B or G)

Reserve

Reserve

Reserve

Reserve

Minimum weighing range (Page 72)1)

Minimum number d

Maximum weighing range (Page 72) 1)

Maximum weight

Calibration weight 01) (usually the zero point)

Calibration weight 11)

Type
USHORT USHORT USHORT USHORT UBYTE[2]
CHAR[12] USHORT USHORT USHORT USHORT USHORT
FLOAT
FLOAT FLOAT

Length (bytes)
2 2 2 2 2
12 2 2 2 2 2
4
4 4

Read write Protection r r r
r
rw
rw rw rw
rw rw rw
rw
rw
rw

Write Default protection

-

3

-

116

-

141

-

1

r

12,12

r

" "

r

2

r

0

-

0

r

0

r

20

r

100

r

0

r

100

Min.

Max.

Modbus

registers

-

-

1000

-

-

1001

-

-

1002

1

65635

1003

-

-

1004

-

-

1005

0

6

1011

0

1

1012

-

-

1013

-

-

1014

0

65535

1015

> weigh- 9.999.999 1016 ing_range _min

1

9.999.999 1018

1

9.999.999 1020

SIWAREX WP521/WP522

68

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.3 DR 3 calibration parameters

Variable

Note

Type

Scale interval (Page 72) 1)
Automatic zero adjustment (Page 72)
Currency
Weight simulation (Page 72)
Bit 5 Bit 6 Filter sequence
Bit 8 Bit 9 Bit 10 Bit 11 Bit 12

Calibration weight 2
Calibration digits 0 determined during calibration with calibration weight 0
Calibration digits 1 determined during calibration with calibration weight 1
Calibration digits 2 determined during calibration with calibration weight 2
Resolution weighing range 1 (1*10**k, 2*10**k, 5*10**k]; k: -3 ... 2)
0: auto. zero adjustment off 1: auto. zero adjustment on
Reserve
0: Filling 1: Emptying
Weight simulation
Bit 5: Reserve
Bit 6: Reserve
0: Low-pass filter before average value filter 1: Average value filter before lowpass filter
Bit 8: Reserve
Bit 9: Reserve
Bit 10: Reserve
Bit 11: Reserve
Bit 12: Reserve

FLOAT LONG
LONG
LONG
FLOAT
BIT
BIT BIT BIT BIT BIT BIT BIT
BIT BIT BIT BIT BIT

Length Read Write Default Min.

(bytes) write Pro-

protection

tection

4

rw

r

0

1

4

rw

r

0

0

4

rw

r

2000 0

4

rw

r

0

0

4

rw

r

0.1

0.0001

0

rw

r

0

0

0

rw

r

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

0

rw

r

0

0

Max.

Modbus registers

9.999.999 1022 3.999.999 1024

3.999.999 1026

3.999.999 1028

50

1030

1

1036.16

1

1036.15

1

1036.14

1

1036.13

1

1036.12

1

1036.11

1

1036.10

1

1036.9

1

1036.8

1

1036.7

1

1036.6

1

1036.5

1

1036.4

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

69

Scale parameters and functions 6.3 DR 3 calibration parameters

Variable

Note

Type

Length Read Write Default Min.

(bytes) write Pro-

protection

tection

Bit 13

Bit 13: Reserve BIT

0

rw

r

0

0

Bit 14

Bit 14: Reserve BIT

0

rw

r

0

0

Bit 15

Bit 15: Reserve BIT

2

rw

r

0

0

Reserve

USHORT 2

rw

r

0

0

Maximum tare Tare maximum FLOAT 4 load (Page 73) [in % of WRmax ]

rw

r

100

0

Reserve

FLOAT 4

rw

r

0

0

Reserve

FLOAT 4

rw

r

0

0

Maximum

Negative range of FLOAT 4

rw

r

1

0

negative zero the semi-

setting limit

automatic zeroing

(semi-

[in % of maximum

automatically) weighing range

(Page 73)

WRmax]

Maximum

Positive range of FLOAT 4

positive zero the semi-

setting limit

automatic zeroing

(semi-

[in % of maximum

automatically) weighing range

(Page 73)

WRmax]

rw

r

3.0

0

Standstill

Standstill range FLOAT 4

rw

r

1

0

range

(in d)

(Page 74)

Standstill time Standstill time 1 in TIME

4

rw

r

(Page 74)

ms

2000 10

Standstill wait- Waiting time until TIME

4

rw

-

0

0

ing time

standstill.

(Page 74)

0: standstill-

dependent scale

command, if there

is no standstill,

immediately re-

jected.

> 0: Maximum

waiting time until

command is exe-

cuted

Low-pass filter Low-pass filter 1 - FLOAT 4

rw

r

2

0

limit frequency cutoff frequency:

(Page 75)

0: Filter disabled

Low-pass filter Filter order

USHORT 2

rw

r

4

1

number (Page 75)

Low-pass filter 1

Reserve

Reserve

USHORT 2

rw

-

0

-

Max.

Modbus registers

1 1 1 6 250
100.0 100.0 100.0

1036.3 1036.2 1036.1 1033 1034
1036 1038 1040

100.0

1042

9.999.999 1044

10000 10000

1046 1048

50

1050

4

1052

-

1053

SIWAREX WP521/WP522

70

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.3 DR 3 calibration parameters

Variable

Note

Type

Length Read Write Default Min.

(bytes) write Pro-

protection

tection

FLOAT 4

rw

-

0

Reserve

Period the

Averaging period USHORT 2

average value of the average

filter (Page 76) value filter in ms

rw

r

100

0

1) Parameter for calculation of calibration points with theoretical calibration

Max.

Modbus registers

10000

1054 1056

6.3.2

Scale name
You can select any name, but it may not exceed 12 characters. You can enter any designation.

6.3.3

Unit of weight
A number is specified as the weight unit. The defined unit of weight applies to all weight specifications. Entries are not be converted if the unit of weight has changed. Codes for weight unit:  0: "mg"  1: "g"  2: "kg"  3: "t"  4: "oz" (ounce)  5: "lb" (pound)  6: "T" (= short tons)  7: "TL" (= long tons)

6.3.4

Gross identifier
The gross identifier specifies the letter, B (for brutto) or G (for gross), to be used in the display for gross weights. The identifier is specified by a number. Codes for brutto/gross identifier:  0: "B"  1: "G"

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

71

Scale parameters and functions 6.3 DR 3 calibration parameters

6.3.5

Minimum weighing range
The minimum weighing range with the unit "d" (resolution) is set during the calibration.
The factory setting is 0 d. Falling below the minimum weighing range is displayed in the status of the scale.

6.3.6

Maximum weighing range
The maximum weight is defined during commissioning. The maximum weight depends on the number and type of load cells used.

6.3.7

Calibration weights 0, 1, 2 and calibration digits 0, 1, 2
The calibration weights and corresponding calibration digits define the characteristic curve of the scales. A detailed description can be found in section Performing calibration (Page 76).

6.3.8

Scale interval
The scale interval for the weighing range can be defined in accordance with EN 45501 (0.0001 to 50).

6.3.9

Automatic zero adjustment
If necessary, the scales can be set semi-automatically to zero by the user by means of the "Zeroing" command.
The automatic adjustment sets the scale to zero without a further command in the event of slow zero drifting. Slow drift is assumed if the OIML R76 criteria for this are met.

6.3.10

Filling/emptying mode
With filling, the net weight increases when the scale is loaded. At discharge weighing, the net weight increases when the scale is unloaded.

6.3.11

Weight simulation
For test purposes, weight simulation can be enabled instead of actual weighing. The simulated weight is specified using the DR 16 data record. Weight simulation can, in certain situations, facilitate scale testing and commissioning. The simulated weight is indicated on the main display with the word "TEST".

SIWAREX WP521/WP522

72

Manual, 04/2016, A5E36695225A

6.3.12

Scale parameters and functions 6.3 DR 3 calibration parameters
Filter sequence
The weighing signal can pass through the low-pass and average value filter. The parameter is used to determine which filter is first passed through.

6.3.13

Maximum tare load
The weighing module accepts any external tare specification which is less than the maximum tare load (percentage of maximum weighing range). Tare commands are also accepted provided that the current gross weight is less than the configured maximum tare load.

6.3.14

Maximum negative zero setting limit (semi-automatically)
Zeroing defines the current weight of the scales as zero.
You can restrict the effect of the zeroing function by defining limits. The limitation is based not on the current gross weight, but rather on the weight which the scales would display had there been no zeroing (time of scale calibration).

6.3.15

Maximum positive zero setting limit (semi-automatically)
You can restrict the effect of the zeroing function by defining limits. The limitation is based not on the current weight, but rather on the weight which the scales would display had there been no zeroing (time of scale calibration).

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

73

Scale parameters and functions 6.3 DR 3 calibration parameters

6.3.16

Standstill range
Standstill monitoring checks whether the scales are correctly balanced. Scale standstill is registered if the weight changes by less than a specified fluctuation in d (standstill value) over a specified time (standstill time). Standstill monitoring is used in static scale mode (commands: zeroing, taring). The diagram below illustrates how standstill monitoring works.

Image 6-1 Standstill monitoring

6.3.17

Standstill time
Standstill monitoring checks whether the scales are correctly balanced. Scale standstill is registered if the weight changes by less than a specified fluctuation in d (standstill value) over a specified time (standstill time). Standstill monitoring is used in static scale mode (with the following commands: zeroing, taring).

6.3.18
74

Standstill waiting time
Standstill waiting time is a maximum waiting time for standstill upon the execution of a command which depends on standstill (taring, zeroing, registering). A technology message is generated if the command cannot be executed during the standstill waiting time because there is no standstill.
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.3 DR 3 calibration parameters
If the standstill waiting time is equal to zero, a command requiring standstill is rejected immediately if there is no standstill.

6.3.19

Low-pass filter limit frequency
There is a critically damped low-pass filter for suppressing faults. The diagram below shows the step response of the filter (f = 2 Hz). The entry "0" means that the filter is switched off. A limit frequency of between 0.01 and 20.0 Hz can be specified.

Image 6-2 Step-forced response of the digital low-pass filter when f = 2 Hz
The definition of the limit frequency is extremely important for the suppression of faults. Defining the limit frequency defines the "speed" of the scales' response to changes in the measured value.
A value of 5 Hz, for example, results in a relatively rapid response to a change in weight; a value of 0.5 Hz makes the scales "slower".

6.3.20

Low-pass filter number
The number of the filter defines the effect of damping. Values 1...4 can be specified. The higher the selected filter number, the higher the effect.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

75

Scale parameters and functions 6.4 Performing calibration

6.3.21

Period the average value filter
The average value filter is used to steady the weight against random interference. The weight value is based on average values that are incurred in the specified period.

6.4

Performing calibration

6.4.1
76

Calibration with calibration weights
The incoming analog measured value from the load cells is converted into a digital value in an analog-to-digital converter. A weight is calculated using this digital value. This weight is then used by all weighing module functions for messages and for determining the status.
The characteristic curve of the measuring system must be defined before the weight can be calculated from the digital value. In the simplest case, the characteristic curve is defined with points 0 and 1. The first working point (point 0) is defined by the empty scale (no load) at their own weight. The load cells return a voltage measurement to the weighing module as a result of the weight of the scales themselves. Following analog-to-digital conversion of the measured voltage, the zero point is assigned to the digital value (calibration digits for the zero point).
If the scales are loaded with a defined standard weight (e.g. 50% of the measuring range), the new digital value returned by the analog-to-digital converter is assigned the standard weight.
The characteristic curve can also be determined with a third point, which must be higher than point 1.
Make sure that the difference between two calibration weights is at least 40 000 digits, as the calibration command may otherwise be rejected.
The calibration procedure involves the following steps:
 Activation of service mode using the "Service mode on" command.
 Define the calibration weight and other parameters of the DR 3 data record.
 Transfer the DR 3 data record to the scales.
 Trigger "Adjustment weight 0 valid" for empty scales.
 Load the scale with the defined standard weight.
 Trigger "Adjustment weight 1 valid".
 Transfer data record DR 3 from the scale to SIWATOOL and save the data on a data medium.
You must follow the correct calibration sequence with increasing calibration weights.

Load cell characteristic value 1 mV/V 2 mV/V 4 mV/V

Calibration digit 1 (ca.) when rated load is 1 000 000 2 000 000 4 000 000

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.4 Performing calibration
This defines the characteristic curve and the scale can now calculate weights for the full measuring range. The diagram below illustrates the relationship between calibration digits and the calibration weight.

Image 6-3 Calibration digits and calibration weight

Load L=0 Lo
L1
Lmax Lmax +10 %

Comment Load cells empty Calibration weight 0 "Zero point"
Calibration weight 1

Load 0 kg e.g. 60 kg

Rated load of the load cell(s)
Rated weight + approximately 10%

e.g. 100 kg e.g. approx. 110 kg

Digits Approx. 0
e.g. B. 70 682 for calibration point 0
e.g. 308 452 for adjustment digits 1
1 000 000
1 090 000

You do not need to perform calibration if the calibration digits and the calibration weights are known to the weighing module described here. They are simply sent to SIWAREX by data record DR 3 and the scale is ready for use immediately.

The SIWATOOL program facilitates rapid calibration.

Following commissioning and calibration, all data records must be read from the weighing module and saved as a scale file.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

77

Scale parameters and functions 6.4 Performing calibration
Identical scales can be put into operation immediately. Connect the PC to the new scale and enable the "Send all data records" function in service mode. This transfers the parameters for calibration weights and calibration digits, and the characteristic curve is determined immediately. The same applies when you change a weighing module.
Note Two working points are usually sufficient for determining the scale's characteristic curve. An additional working point is only required for non-linear systems. Specification of negative calibration points is not possible. However, the characteristic can also be used in the negative range down to -2 000 000 digits. To achieve this, the characteristic curve generated in the positive range is extended into the negative range.

Image 6-4 Linearizing the scale's characteristic curve

Load L=0 Lo
L1
L2
Lmax Lmax +10 %

Comment Load cells empty
Calibration weight 0 "Zero point"
Calibration weight 1

Load 0 kg e.g. 60 kg

Calibration weight 2

e.g. 80 kg

Rated load of the load cell(s)
Rated weight + approximately 10%

e.g. 100 kg e.g. approx. 110 kg

Digits Approx. 0
e.g. B. 76 082 for calibration point 0
e.g. 386 452 for adjustment digits 1
e.g. 451 367 for adjustment digits 2
1 000 000
1 090 000

SIWAREX WP521/WP522

78

Manual, 04/2016, A5E36695225A

6.4.2

Scale parameters and functions 6.5 DR 4 output the calculated adjustment digits
Automatic calibration
Scales can be rapidly commissioned with automatic calibration. The accuracy of the scale greatly depends on the entered parameters and the mechanical properties of the scale. However, you achieve the best level of accuracy for the scales by using calibration weights. During initial commissioning with automatic calibration, you must reset the module using the "Load factory settings" command. Subsequently specify the load cell parameters in data record 10. Command 82 "Perform automatic calibration" then uses this data and the currently applied dead load to calculate the characteristic curve of the scale. The characteristic curve is active immediately.
Note The characteristic curve data in data record 3 active prior to execution of command 82 is directly overwritten.
Automatic calibration requires the following criteria:  Correct mechanical installation of the scale  Scale is empty (only mechanical installation (= dead load) present on the cells)  Load cells are evenly loaded  There are no shunt circuits

6.5

DR 4 output the calculated adjustment digits

6.5.1

Overview
Data record DR 4 outputs the digits calculated from the automatic scale calibration and the calibration check. This data record cannot be sent to the scales.

Table 6- 2 Assignment of data record 4

Variable
Data record number Length
Application

Note

Type

Length Read Default Min. (bytes) write

Contains no. of USHORT 2

r

4

-

data record

Data record length USHORT 2

r

28

-

information

Information about USHORT 2 which application the DR belongs to

r

141

-

Max. -

Modbus Register 1200
1201
1202

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

79

Scale parameters and functions 6.6 DR 5 zeroing memory

Variable Version ID Calibration digits 0, 1, 2 (calculated) (Page 80)
Reserve 1 Reserve 2 Reserve 3

Note

Type

Length Read Default Min. (bytes) write

Information about USHORT 2

r

1

1

the current data

record version

Calibration digits 0 LONG

4

r

0

0

(calculated):

calibration digits

calculated by

'automatic calibra-

tion'

Calibration digits 1 LONG

4

r

0

0

(calculated):

calibration digits

calculated by

'automatic calibra-

tion'

Calibration digits 2 LONG

4

r

0

0

(calculated):

calibration digits

calculated by

'automatic calibra-

tion'

Reserve

SHORT 2

r

0

-

Reserve

USHORT 2

r

0

-

Reserve

FLOAT 4

r

0

-

Max. 65635

Modbus Register 1203

1600000

1204

1600000

1206

1600000

1208

-

1210

-

1211

-

1212

6.5.2

Calibration digits 0, 1, 2 (calculated)
The calculation is based on the parameters from DR 10 and is executed using command no. 82 or 83.

6.6

DR 5 zeroing memory

6.6.1

Overview
Data record DR 5 displays the current values in the tare memory and the zeroing memory.
Procedure  Check all parameters  Transfer the data record to the scales

SIWAREX WP521/WP522

80

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.6 DR 5 zeroing memory

Table 6- 3 Assignment of data record 5

Variable

Note

Type

Length Read Default Min. (bytes) write

Protection

Data record Contains no. of data USHORT 2

r

5

-

number

record

Length

Data record length

USHORT 2

r

40

-

information

Application

Information about

USHORT 2

which application the

DR belongs to

r

141

-

Version ID Information about the USHORT 2

r

1

1

current data record

version

Effective tare Current tare weight FLOAT

4

rw

0

0

weight - from (tare setting)

specification

(Page 81)

Effective tare Current tare weight FLOAT

4

rw

0

0

weight (semi- (semi-automatic)

automatic)

(Page 81)

Current zero Current zero weight FLOAT

4

rw

0

-

tracking

(zero adjustment)

weight

(Page 82)

Dead load Dead load calculated FLOAT

4

r

0

-

(Page 82)

during automatic

calibration

Reserve 1 Reserve

SHORT 2

rw

0

-

Reserve 2 Reserve

USHORT 2

rw

0

-

Reserve 3 Reserve

FLOAT

4

rw

0

-

Max.

Modbus Register

-

1214

-

1215

-

1216

65635

1217

-

1218

-

1220

-

1226

-

1228

-

1230

-

1231

-

1232

6.6.2

Effective tare weight - from specification
A tare weight can be specified in data record DR 15. You can activate a pre-defined tare weight with a 1013 command. From this point on, the activated tare weight is factored into the weight calculations. The "Delete tare" command deactivates the active tare weight. This does not delete the specification in data record DR 15.

6.6.3

Effective tare weight (semi-automatic)
The corresponding command (see command 1011) applies the current gross weight as the active tare weight. From this point on, the activated tare weight is factored into the weight calculations. The "Delete tare" command deactivates the active tare weight.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

81

Scale parameters and functions 6.7 DR 6 limit settings

6.6.4

Current zero tracking weight
The current zero tracking weight is recorded in this parameter if automatic zero tracking is activated.

6.6.5

Dead load
The characteristic curve of the scales is determined during calibration. When there is no load, the main display returns "0". The dead load is the weight of the empty scales, i.e. the weight of the scales themselves.

6.7

DR 6 limit settings

6.7.1

Overview
The switch-on and switch-off values for the limits are configured in data record DR 6.
Procedure  Check all parameters and modify them as required  Transfer the data record to the scales

Table 6- 4 Variable

Assignment of data record 6

Note

Type

Data record number Length
Application
Version ID

Contains no. of data record
Data record length information
Information about which application the DR belongs to
Information about the current data record version

USHORT USHORT USHORT
USHORT

Length RW (bytes)

2

r

2

r

2

r

2

r

Default 6

Min. Max.

-

-

Modbus Register 1234

60

-

-

1235

141

-

-

1236

1

1

65635 1237

SIWAREX WP521/WP522

82

Manual, 04/2016, A5E36695225A

Variable

Note

Type

Basis of limits

"Gross/Net - based on USHORT limit 1 and 2

0: GW 1 and GW 2 are based on gross (specified as percentage, min: -200, max: 200%)

1: GW 1 and GW 2 are based on net (specified as percentage, min: -200, max: 200%)

2: GW 1 and GW 2 are absolute values and based on gross

3: GW 1 and GW 2 are absolute values and based on net

Note: The blank value then functions either as a percentage or absolute value (weight), but is always based on gross."

Reserve

Reserve

USHORT

Limit 1 ON (Page 84)

Switch-on point for limit value 1 (% of measuring range)

FLOAT

Reserve

LONG

Limit 1 OFF Switch-off point for (Page 84) limit value 1 (% of
measuring range)

FLOAT

Reserve

LONG

Limit 2 ON (Page 84)

Switch-on point for limit value 2 (% of measuring range)

FLOAT

Reserve

Limit 2 OFF Switch-off point for (Page 84) limit value 2 (% of
measuring range)

FLOAT

Reserve

LONG

Limit "Empty" ON (Page 85)

Limit "Empty" ON (always based on gross) (% if measuring range)

FLOAT

Length RW (bytes)

2

rw

2

rw

4

rw

4

rw

4

rw

4

rw

4

rw

4

rw

4

rw

4

rw

Scale parameters and functions 6.7 DR 6 limit settings

Default 0

Min. Max.

0

3

Modbus Register 1238

0

0

-

1239

99

9.999. 9.999.9 1240

999 99

0

-

-

1242

98

-

-

1244

9.999. 9.999.9

999 99

0

-

-

1246

50

-

-

1248

9.999. 9.999.9

999 99

1250

49

-

-

1252

9.999. 9.999.9

999 99

0

0

-

1254

1

-

-

1256

9.999. 9.999.9

999 99

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

83

Scale parameters and functions 6.7 DR 6 limit settings

Variable

Note

Type

Delay time for limits (Page 85)
Reserve 2 Reserve 3 Reserve 4

Uniform delay time for: TIME
· Switch ON / OFF limit 1
· Switch ON / OFF limit 2
· Switch ON blank message

(OFF delay empty alarm = 0 fixed) in ms Reserve
Reserve
Reserve

USHORT USHORT FLOAT

Length RW (bytes)

4

rw

2

rw

2

rw

4

rw

Default 0

Min. Max. Modbus

Register

0

999999 1258

9

0

-

-

1260

0

-

-

1261

0

-

-

1262

6.7.2

Basis of limits
The limits can be interpreted differently, depending on the selected reference quantity. Gross/Net - based on limit (GW) 1 and 2:
Val Ref. ue 0 GW 1 and GW 2 are based on gross (specified as percentage, min: -200%, max: 200%) 1 GW 1 and GW 2 are based on net (specified as percentage, min: -200%, max: 200%) 2 GW 1 and GW 2 are absolute weight values and based on gross 3 GW 1 and GW 2 are absolute weight values and based on net
Note The blank value then functions either as a percentage or absolute weight value, but is always based on gross.

6.7.3

Limit value 1 ON, limit value 2 ON, limit value 1 OFF, limit value 2 OFF
The switch-on and switch-off points can be specified separately for each limit value as a percentage of the measuring range. This allows both minimum and maximum value violation monitoring with hysteresis. A delay time for switch-on and switch-off can also be specified. Either the current net weight or the current gross weight can be selected as the reference value for limits 1 and 2.

SIWAREX WP521/WP522

84

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.7 DR 6 limit settings
Maximum value monitoring is implemented with the following specifications:  Switch-on value > switch-off value Minimum value monitoring is implemented with the following specification:  Switch-on value < switch-off value The diagram below illustrates the function of limit values 1 and 2.

6.7.4 6.7.5

Image 6-5 Limit value configuration
Limit "Empty" ON
The value for the empty range is a limit value below which the weighing module registers and returns the status "empty". The values are entered as a percentage of the measuring range. The "Empty" limit always refers to the current gross weight in the scale.
Delay time for limits
Uniform delay time for:  Switch ON / OFF limit 1  Switch ON / OFF limit 2  Switch ON blank message
(OFF delay blank message =0 fixed) This is specified in ms.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

85

Scale parameters and functions 6.8 DR 7 interface parameters

6.8

DR 7 interface parameters

6.8.1

Overview
Data record DR 7 contains the parameters for defining the properties of the available I/O (digital inputs, digital outputs, serial interfaces). If a port is not used, the default values can be retained.
Procedure  Change the parameters if necessary  Transfer the data record to the scales

Table 6- 5 Assignment of data record 7

Variable

Note

Data record number

Contains no. of data record

Length

Data record length information

Application

Information about which application the DR belongs to

Version ID

Information about the current data record version

Assignment for Assignment for input 0: digital input 0, Code 0: No command assigned 1, 2 (Page 88) 1 ... 32767: Command triggered by
a rising edge (01 transition)

32769...65535 (command code + 32768): Command triggered by a falling edge (10 transition)

Assignment for input 1: Encoding like input 0

Assignment for input 2: Encoding like input 0

Reserve

Input filtering (hardware setting) (Page 88)

0: No filtering 1: 5 ms 2: 10 ms 3: 15 ms 4: 20 ms 5: 25 ms 6: 30 ms 7: 40 ms

Type USHORT USHORT USHORT USHORT USHORT
USHORT USHORT USHORT USHORT

Length (bytes) 2 2 2 2 2
2 2 2 2

Read Dewrite fault

r

7

r

48

r

141

r

1

rw

0

rw

0

rw

0

rw

0

rw

2

Min. Max. - -

Modbus Register 1300

- - -

1301 1302

1 65635 1303

0 0x7FFF 1304

0 0x7FFF 1305

0 0x7FFF 1306

0 1999 1307

0 8

1308

SIWAREX WP521/WP522

86

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.8 DR 7 interface parameters

Variable

Note

Type

Assignment for Assignment for output 1:

digital output 0, 1, 2, 3 (Page 89)

0-31: Status info 33: Specified by S7 interface 34: Reserved special code for de-

faults

USHORT

100-131: Inverted status information

255: (Compatibility) output deactivated

1000-1015: Operating error

1100-1115: Inverted operating error

2000-2047: Technological error

2100-2147: Inverted technological error

3000-3047: Data or command error

3100-3147: Inverted data or command error

Assignment for output 1: (see Output 0)

USHORT

Assignment for output 2: (see Output 0)

USHORT

Assignment for output 3: (see Output 0)

USHORT

Monitoring of the digital outputs

Monitoring of the digital outputs and USHORT their supply voltage
0: Monitoring of outputs inactive

1: Monitoring of outputs active

Reaction of the digital outputs to fault or CPU stop (Page 89)

Reaction of the digital outputs to module fault or SIMATIC CPU stop:
0: All outputs are switched off
1: The corresponding predefined state value is applied

USHORT

2: Outputs are not switched off, work continues

3: All outputs are switched on

Reserve

Reserve

USHORT

Reserved

USHORT

Replacement value for DQ 0, 1, 2, 3 (Page 89)

Predefined state of digital output DQ BIT 1 on error or SIMATIC CPU Stop
Predefined state of digital output DQ BIT 2 on error or SIMATIC CPU Stop

Predefined state of digital output DQ BIT 3 on error or SIMATIC CPU Stop

Predefined state of digital output DQ BIT 4 on error or SIMATIC CPU Stop

Length (bytes) 2
2 2 2 2
2
2 2 0 0 0 0

Read Dewrite fault

rw

0

rw

0

rw

0

rw

0

rw

1

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

Min. Max. Modbus Register
0 0xFFFF 1309

0 0xFFFF 1310

0 0xFFFF 1311

0 0xFFFF 1312

0 1

1313

0 2

1314

0 1 0 1 0 1
0 1
0 1
0 1

1315 1316 1317.16
1317.15
1317.14
1317.13

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

87

Scale parameters and functions 6.8 DR 7 interface parameters

Variable

Note

Trace recording cycle (Page 90)

Trace recording cycle. Every nth measured value is recorded.
For example:
n=1: 10 ms n=10: 100 ms

Type USHORT

Length (bytes)
2

Read Dewrite fault

rw

1

Min. Max. 1 1000

1 000: 10 s

Trace storage 0: Trace recording runs as circular BIT

0

method

buffer

(Page 90)

1: Trace is stopped when trace

memory is full

Reserve 1

Reserve

LONG

4

Reserve 2

Reserve

FLOAT 4

rw

0

0 1

rw

0

rw

0

0

-

0

-

Modbus Register 1318
1319.16
1320 1322

6.8.2

Assignment for digital input 0, 1, 2
A command trigger can be assigned to a digital input. The assignment is made with the command number:  Command lists (Page 133).
Assignment for input 0, 1, 2, 3:

Code 0 1...32767 32769...65535

Assignment Not assigned
Command triggered by a rising edge (01 transition) (Command code + 32768): Command triggered by a falling edge (10 transition)

6.8.3

Input filtering (hardware setting)
To ensure that the inputs do not respond too quickly to the signal change, a minimum signal pending time can be specified. The pending signal is not processed further until this time has elapsed.
The following values can be set:

Value 0 1 2 3 8

Duration of signal queuing No filtering 5 ms 10 ms 15 ms 40 ms

Value 4 5 6 7

Duration of signal queuing 20 ms 25 ms 30 ms 35 ms

SIWAREX WP521/WP522

88

Manual, 04/2016, A5E36695225A

6.8.4 6.8.5 6.8.6

Scale parameters and functions 6.8 DR 7 interface parameters

Assignment for digital output 0, 1, 2, 3
A status display can be assigned to a digital input. This is done on the basis of the bit number.
Assignment for output 0, 1, 2, 3:

Code Hex 0 ... 1F 21 22 Code FF

Status display Bit no. of the status flags from byte 0 .. 3 from data record 30 Control of output via data record 18 Control of output via SIMATIC S7 I/O Output always disabled

Reaction of the digital outputs to fault or CPU stop
This parameter can be used to determine the reaction of the digital outputs to a fault in the SIWAREX module.

Value 0 1 2 3

Response All outputs are switched off The corresponding predefined state value is applied Outputs are not switched off (continue) Switch on all outputs

Replacement value for DQ 0, 1, 2, 3
The outputs are usually reset following a module fault (operating error) or SIMATIC CPU STOP. This response is the default setting. If an output is to be set following a fault, this response is defined using this parameter. The "State of digital outputs on error or SIMATIC CPU Stop" parameter must also be set to "Replacement output upon operating error activated". The replacement value definition is then valid.
NOTICE Risk to the plant If an output is set following a fault (operating error), this can pose a risk for the plant. Ensure that the parameters are correctly set.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

89

Scale parameters and functions 6.9 DR 8 date and time

6.8.7

Trace recording cycle
The trace function is used for the continuous recording of measured values. The n parameter sets the recording rate.

Value n=1 n=10 n=100 N=1 000

Response Recording every 10 ms Recording every 100 ms Recording every second Recording every 10 s

6.8.8

Trace storage method
This parameter is used to specify the response of the trace memory.

Value 0 1

Response Trace recording runs as circulating memory Trace is stopped when the trace memory is full

6.9

DR 8 date and time

The current date and time is specified or read using data record DR 8. The clock is not buffered and can only continue to function without power for about 30 seconds. If you are using the Modbus protocol, data record DR 48 must be used for the date and time.

Procedure  Set the date and time  Transfer the data record to the scales

Table 6- 6 Assignment of data record 8

Variable

Note

Type

Length RW (bytes)

Data record Contains no. of data record

USHORT 2

r

number

Length

Data record length information USHORT 2

r

Application Information about which appli- USHORT 2

r

cation the DR belongs to

Default Min.

8

-

16

-

141

-

Max. -

Modbus registers
1330

-

1331

-

1332

SIWAREX WP521/WP522

90

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.10 DR 9 module information

Variable

Note

Type

Length RW (bytes)

Version ID Information about the current USHORT 2

r

data record version

Date and time

SIMATIC DTL format

DTL

12

rw

Default Min.

1

1

DTL#197 0-01-0100:00:00. 0

Max. Modbus registers
65635 1333

-

1334

6.10

DR 9 module information
No entries can be made in data record DR 9. This data record provides information on the inner workings of the SIWAREX module. This information is used to identify the module at the manufacturer plant (e.g. in the event of repairs). The entries in the data record are of no importance to the user for operation.

Table 6- 7 Assignment of data record 9

Variable

Note

Type

Length RW (bytes)

Data record Contains no. of data record USHORT 2

r

number

Length

Data record length infor-

USHORT 2

r

mation

Application Information about which

USHORT 2

r

application the DR belongs

to

Version ID Information about the current USHORT 2

r

data record version

Order num- Maximum and actual string UBYTE[2] 2

r

ber - header length for the order number

Order num- Order number of the module CHAR[16] 16

r

ber

7MH ..

Serial num- String header ber - header

UBYTE[2] 2

r

Serial num- Serial number " XXX00001" CHAR[12] 12

r

ber

Firmware String header type - header

UBYTE[2] 2

r

Firmware Reference V - Release

CHAR[2] 2

r

type

B - Test

etc.

FW - Version Version 1. - 1st digit

USHORT 2

r

FW - Version Version 2. - 2nd digit

USHORT 2

r

Default

Min.

9

-

68

-

201

-

1

1

16,16

-

"7MH4980- *AA01"

12,12

-

" "

-

2.2

-

'V '

-

1

-

0

-

Max. -
65 635 -
-
-

Modus register 1340 1341 1342
1343 1344 1345 1353 1354 1360
1361
1362 1363

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

91

Scale parameters and functions 6.11 DR 10 load cell parameters

Variable

Note

Type

Length RW (bytes)

FW - Version Version 3. - 3rd digit

USHORT 2

r

Hardware ES hardware version number USHORT 2

r

version

(e.g. 03)

number

OS version String header header

UBYTE[2] 2

r

OS version Reference V - Release

CHAR[2] 2

r

(loader) -

B - Test

designation etc.

OS version (loader) designation

e.g. version n

USHORT 2

r

HW device Read from HW and entered USHORT 2

r

ID and HW here

revision ID Byte 0: HW device ID

Byte 1: HW revision ID

Reserve

Reserve

USHORT 4

r

Reserve

Reserve

USHORT 4

r

Reserve

0

FLOAT

4

r

Default 0 1
2.2 'V '
'V '
0
0 0 0

Min. Max.

-

-

-

-

Modus register 1364
1365

-

-

-

-

1366 1367

-

-

1368

-

-

1369

-

-

-

-

-

-

1370 1371 1372

6.11

DR 10 load cell parameters

6.11.1

Overview
The parameters of the analog load cells must be checked prior to the automatic calibration and modified if necessary. Only the parameters identified by bold font and asterisk (*) need be entered.
Procedure  Check the parameters and modify them as required  Transfer the data record to the scales  Adjust the scales

SIWAREX WP521/WP522

92

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.11 DR 10 load cell parameters

Table 6- 8 Assignment of data record 10

Variable

Note

Type

Length RW De-

(bytes)

fault

Data record number

Contains no. of data record USHORT 2

r

10

Length

Data record length information

USHORT 2

r

92

Application

Information about which application the DR belongs to

USHORT 2

r

141

Version ID

Information about the current USHORT 2 data record version

r

1

50/60 Hz tog- 50/60 Hz toggling gling (Page 94)

USHORT 2

rw 0

Number of support points (Page 94) 1)

Number of support points

USHORT 2

rw 0

Load cell char- Characteristic value of the FLOAT 4

acteristic value load cell (n) [mV/V], the

(Page 94) 1)

mean value is used if there is

more than one cell.

rw 2

Rated load of a Nominal load of one single FLOAT 4

load cell

load cell

(Page 94) 1)

rw 60

Overload limit Default in % based on con- FLOAT 2

(Page 94)

figured LC characteristic

value as of which overload is

reported.

rw 100

Setpoint range specification FLOAT 4

Impedance

(rated value) in ohms;

reference value 0 = No impedance check

(Page 95)

rw 0

Min. 1 0 0 >0.1
0
0

Max. 65635 1 8 10
1000
-10000

Modbus registers 1400 1401 1402
1403 1404 1405
1406
1408
1410
1412

Permissible

Default as percentage based FLOAT 4

rw 3

0

20

impedance

on impedance value (per-

deviation

missible range: impedance

(Page 95)

value ±x%)

Reserve

Reserve

SHORT 2

rw 0

Header LC manufacturer

Header for load cell manufacturer

UBYTE[2] 2

rw 24,24

Load cell manu- Manufacturer of load cells CHAR[24] 24

rw

facturer

used

(Page 95)

Reserve

Reserve

USHORT 2

rw 0

Header LC order Header for load cell order

number

number

UBYTE[2] 2

rw 24,24

1414
1416 1417 1418
1430 1431

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

93

Scale parameters and functions 6.11 DR 10 load cell parameters

Variable

Note

Load cell order number (Page 95)
Reserve

Order number of load cells used
Reserve

Type

Length RW De- Min.

(bytes)

fault

CHAR[24] 24

rw

FLOAT 4

rw 0

1) Parameter for calculation of calibration points with theoretical calibration

Max.

Modbus registers 1432
1444

6.11.2

50/60 Hz toggling
To improve the suppression of faults caused by the supply network, you can specify the network frequency for signal filtering. The measuring rate is 100 Hz for the 50 Hz setting, and 120 Hz for the 60 Hz setting.

6.11.3

Number of support points
If no anchor points are used, the number of support points is equal to the number of load cells.
If anchor points are used in addition to load cells, the number of support points is equal to the total number of load cells and fixed support points.

6.11.4

Load cell characteristic value
The load cell characteristic value is required to correctly interpret the output voltage from the load cell. This specification is also necessary for determining load cell overload. The exact value can be entered if the measurement log for the load cell is available. The mean value can be entered if there is more than one load cell.
Example
Characteristic value = 2.018 mV/V

6.11.5

Rated load of a load cell
The rated load of a load cell is required for checking the maximum weighing range of the scales. The rated load is entered in the specified units of weight.

6.11.6
94

Overload limit
The parameter causes the weight value to be checked for exceeding the overload. The default is specified as a % value and acts on the specified characteristic value of the load cell. An operating error is reported in case of overload.
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

6.11.7

Scale parameters and functions 6.12 DR 11 channel status/channel activation
Impedance reference value
This parameter is used to activate the total impedance of the connected load cells. The impedance of the load cells can be monitored together with the allowable impedance deviation. The current impedance can be entered or taken the current measurement (DR31) per command during commissioning. Parameter specified in ohms; 0 = No impedance check

6.11.8

Permissible impedance deviation
The permissible deviation is given in % of the impedance reference value. Exceeding the value is displayed in the status area of the scale.

6.11.9

Load cell manufacturer
The commissioning engineer can enter the manufacturer of the load cell here.

6.11.10

Load cell order number
The commissioning engineer can enter the order number of the load cell here.

6.12

DR 11 channel status/channel activation

6.12.1

Overview
Data record DR 11 is used to activate and deactivate the weighing channel. Procedure  Enter the desired state for the weighing channel  Transfer the data record to the scales

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

95

Scale parameters and functions 6.13 DR 12 Ethernet parameters

Table 6- 9 Allocation of data record 11

Variable

Note

Type

Length RW Default Min. (bytes)

Data record

Contains no. of data USHORT 2

r

11

-

number

record

Length

Data record length USHORT 2

r

12

-

information

Application

Information about

USHORT 2

r

141

-

which application the

DR belongs to

Version ID

Information about the USHORT 2

r

1

1

current data record

version

Channel activa- Channel activation: USHORT 2

rw 1

0

tion

0: Channel deactivat-

ed

1: Channel activated

Reserve R

Reserve

USHORT 2

rw 0

0

Max. Modbus registers

-

1460

-

1461

-

1462

65635 1463

1

1464

-

1465

6.12.2

Channel status / channel activation
The factory setting is "Weighing channel activated". The user has the option of deactivating the channel, for example, to prevent operating errors because the load cells are not yet connected for this channel or because the scale should go into operation at later time.
Deactivation suppresses diagnostic errors, process data is output with 0. The module can be pre-configured in this state.

SIWAREX WP521/WP522

96

Manual, 04/2016, A5E36695225A

6.13

DR 12 Ethernet parameters

Scale parameters and functions 6.13 DR 12 Ethernet parameters

6.13.1

Overview
Before the SIWAREX module can be integrated into an Ethernet network, the Ethernet parameters need to be configured.

Table 6- 10 Assignment of data record 12

Variable

Note

Type

Length RW (bytes)

Data record num- Contains no. of data

USHORT 2

r

ber

record

Length

Data record length infor- USHORT 2

r

mation

Application

Information about which USHORT 2

r

application the DR be-

longs to

Version ID

Information about the

USHORT 2

r

current data record ver-

sion

Device MAC ad- Device MAC address 1 USHORT 2

r

dress (Page 99) Device MAC address 2 USHORT 2

r

Device MAC address 3 USHORT 2

r

Device MAC address 4 USHORT 2

r

Device MAC address 5 USHORT 2

r

Device MAC address 6 USHORT 2

r

IP address (Page 99)

IP address x.n.n.n IP address n.x.n.n

USHORT 2

rw

USHORT 2

rw

IP address n.n.x.n

USHORT 2

rw

IP address n.n.n.x

USHORT 2

rw

Subnet mask

Subnet mask x.n.n.n

USHORT 2

rw

(Page 99)

Subnet mask n.x.n.n

USHORT 2

rw

Subnet mask n.n.x.n

USHORT 2

rw

Subnet mask n.n.n.x

USHORT 2

rw

Gateway (Page 100)

Gateway x.n.n.n Gateway n.x.n.n

USHORT 2

rw

USHORT 2

rw

Gateway n.n.x.n

USHORT 2

rw

Gateway n.n.n.x

USHORT 2

rw

Device name

Current device name

UBYTE[2] 2

rw

(Page 100)

header

Current device name

CHAR[32] 32

rw

Unit identifier channel 1

Reserve

SHORT 2

rw

Default Min. Max.

12

-

-

100

-

-

141

-

-

1

1

65635

0x0

0

255

0x30 0

255

0x05 0

255

0xD5 0

255

0xB0 0

255

0x16 0

255

192

0

255

168

0

255

0

0

255

21

0

255

255

0

255

255

0

255

255

0

255

0

0

255

192

0

255

168

0

255

0

0

255

21

0

255

-1

-1

255

Modbus registers 1500
1501
1502
1503
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522
1523 1539

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

97

Scale parameters and functions 6.13 DR 12 Ethernet parameters

Variable

Note

Type

Length RW (bytes)

TCP port channel "Modbus TCP: TCP port, USHORT 4

rw

1

is addressed with chan-

nel 1 as the base chan-

nel.

TCP port channel "Modbus TCP: TCP port, USHORT 4

rw

1

is addressed with chan-

nel 1 as the base chan-

nel.

Reserve

RESERVE

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Byte swap for text "0: Normal

rw

fields

1: The two characters in

a Modbus register are

transferred in the wrong

order"

Byte swap for 16- "0: big endian (MSB first) BIT

rw

bit values

1: little endian (LSB first)"

Byte swap for the "0: big endian (MSB first) BIT

rw

two halves of a 32-bit value

1: little endian (LSB first)"

(INT32/FLOAT)

Word swap for 32- "0: big endian (MSW first) BIT

rw

bit integers (inter- 1: little endian (LSW changing the two first)" Modbus registers)

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Unit identifier channel 2

Reserve

SHORT 2

rw

TCP port channel "Modbus TCP: TCP port, USHORT

rw

2

is addressed with chan-

nel 1 as the base chan-

nel.

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Reserve

Reserve

BIT

rw

Default Min. Max.

502

1

49151

502

1

49151

0

0

1

0

0

1

0

0

1

0

0

1

0

0

1

0

0

1

0

0

1

0

0

1

1

0

1

0

0

1

0

0

1

1

0

1

0

0

0

0

0

0

0

0

-1

-1

502

1 1 1 1 255
49151

1 1 1 1 1

Modbus registers 1540
1540
1541.16 1541.15 1541.14 1541.13 1541.12 1541.11 1541.10 1541.9 1541.8
1541.7
1541.6
1541.5
1541.4 1541.3 1541.2 1541.1 1542 1543
1544.16 1544.15 1544.14 1544.13 1544.12

SIWAREX WP521/WP522

98

Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.13 DR 12 Ethernet parameters

Variable

Note

Type

Reserve

Reserve

BIT

Reserve

Reserve

BIT

Reserve

Reserve

BIT

Byte swap for text "0: Normal

BIT

fields

1: The two characters in

a Modbus register are

transferred in the wrong

order"

Byte swap for 16- "0: Normal

BIT

bit values

1: The two characters in

a Modbus register are

transferred in the wrong

order"

Byte swap for the two halves of a 32-bit value (INT32/FLOAT)

"0: big endian (MSB first) BIT 1: little endian (LSB first)"

Word swap for 32- "0: big endian (MSW first) BIT bit integers (inter- 1: little endian (LSW changing the two first)" Modbus registers)

Reserve

Reserve

BIT

Reserve

Reserve

BIT

Reserve

Reserve

BIT

Reserve

Reserve

BIT

Reserve

Reserve

SHORT

Reserve

Reserve

FLOAT

Reserve

Reserve

FLOAT

Length RW (bytes)
rw rw rw rw
rw
rw
rw
rw rw rw rw rw rw rw

Default Min. Max.

0

0

1

0

0

1

0

0

1

1

0

1

0

0

1

0

0

1

1

0

1

0

0

1

0

0

1

0

0

1

0

0

1

0

0

0

Modbus registers 1544.11 1544.10 1544.9 1544.8
1544.7
1544.6
1544.5
1544.4 1544.3 1544.2 1544.1 1545 1546 1548

6.13.2

Device MAC address
Each SIWAREX module has a unique MAC address. This MAC address cannot be changed by the user.

6.13.3

IP address
Assign the IP address using the Primary Setup Tool, SIWATOOL, or via the SIMATIC (see chapter "Ethernet approvals (Page 143)").

6.13.4

Subnet mask
Assign the subnet mask of your network.

SIWAREX WP521/WP522

Manual, 04/2016, A5E36695225A

99

Scale parameters and functions 6.13 DR 12 Ethernet parameters

6.13.5

Gateway
If a gateway is used between the SIWAREX WP251/WP522 and the communication partner, you enter the address of the gateway here.
If a gateway is not present, enter the IP address of the SIWAREX module.

6.13.6

Device name
This parameter can be used to assign a name to the weighing module in the Ethernet network. The length of the name is limited to 32 characters. Empty spaces must be filled by "x".

6.13.7

Unit identifier channel 1 or channel 2
This parameter is used to create a logical connection via Modbus TCP/IP. The parameter pairs "Unit identifier" and "Port number" determines the logical connection of a channel with the Modbus master if a common IP address is used.
If there is only one IP address available for the module and the same port number is used (e.g. 502), the unit identifier must be different in order for each weighing channel to create a logically separate connection.

6.13.8

Modbus TCP port number channel 1 or channel 2
This parameter is used to create a logical connection via Modbus TCP/IP. The parameter pairs "Unit identifier" and "Port number" determines the logical connection of a channel with the Modbus master if a common IP address is used.
If there is only one IP address available for the module and the same unit identifier is used (e.g. 2), the port number must be different in order for each weighing channel to create a logically separate connection.

6.13.9

Byte swap
With these parameters, the byte order of variables in the communication via Modbus TCP/IP is determined.

100

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

6.14

DR 13 RS485 parameters

Scale parameters and functions 6.14 DR 13 RS485 parameters

6.14.1

Overview
The parameters which define the response of the RS485 interface are specified in data record DR 13. If the interface is not used, the default values can be retained.
Procedure  Check the parameters and modify them as required  Transfer the data record to the scales

Table 6- 11 Assignment of data record 13

Variable

Note

Data record number

Contains no. of data record

Length

Data record length information

Application

Information about which application the data record belongs to

Version ID

Information about the current data record version

RS485 protocol 0: No protocol

(Page 102)

1: MODBUS RTU

2: SIEBERT display

RS485 baud 0: 9 600 bps rate (Page 103) 1: 19 200 bits/s
2: 38 400 bits/s 3: 57 600 bits/s 4: 115 000 bps

RS485 charac- Character parity

ter parity

0: Even

(Page 103)

1: Odd

Bit 1

Reserve

Reserve

Bit 3

Reserve

Bit 4

Reserve

Bit 5

Reserve

Bit 6

Reserve

RS485 termi- Activation of the RS485

nation

termination

Type USHORT USHORT USHORT
USHORT
USHORT
USHORT
BIT
BIT BIT BIT BIT BIT BIT BIT

Length RW (bytes)

2

r

2

r

2

r

2

r

2

rw

2

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

Default Min.

13

-

24

-

141

-

1

1

1

0

3

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Max. -

Modbus registers 1558
1559
1560

65635

1561

2

1562

6

1563

1

1564.16

1

1564.15

1

1564.14

1

1564.13

1

1564.12

1

1564.11

1

1564.10

1

1564.9

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

101

Scale parameters and functions 6.14 DR 13 RS485 parameters

Variable

Note

Type

Byte swap for text fields

"0: Normal

BIT

1: The two characters in a Modbus register are transferred in the wrong order"

Byte swap for 16-bit values

"0: big endian (MSB first) BIT
1: little endian (LSB first)"

Byte swap for "0: big endian (MSB first) BIT

the two halves of a 32-bit value

1: little endian (LSB first)"

(INT32/FLOAT)

Word swap for "0: big endian (MSW

BIT

32-bit integers first)

(interchanging the two Modbus registers)

1: little endian (LSW first)"

Bit 12

Reserve

BIT

Bit 13

Reserve

BIT

Bit 14

Reserve

BIT

Bit 15

Reserve

BIT

RS485 Modbus MODBUS address for

address

Vito module

(Page 103)

USHORT

Decimal place for Siebert indicator (Page 103)

Decimal place for Siebert display

SHORT

MODBUS RTU Delay time for response

frame delay

with MODBUS RTU in

ms (RS485)

USHORT

Reserve 3

Reserve

FLOAT

Length RW (bytes)

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

2

rw

2

rw

2

rw

2

rw

4

rw

Default Min.

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

20

1

0

-

0

-

0

-

Max. 1

Modbus registers
1564.8

1

1564.7

1

1564.6

1

1564.5

1

1564.4

1

1564.3

1

1564.2

1

1564.1

255

1565

-

1566

-

1567

-

1568

6.14.2

RS485 protocol
This parameter defines the protocol for communication via the RS485 interface.

Value 0 1 2

Protocol No communication/protocol Modbus RTU SIEBERT display

102

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

6.14.3

Scale parameters and functions 6.14 DR 13 RS485 parameters

RS485 baud rate
This parameter defines the baud rate for the RS485 interface.

Value 0 1 2 3 4

Baud rate 9 600 bps 19 200 bps 38 400 bps 57 600 bps 115 000 bps

6.14.4

RS485 character parity
This parameter defines the character parity for the RS485 interface.

Value 0 1

Character parity Even Odd

6.14.5

RS485 termination
A termination resistor is switched internally with these parameters.

6.14.6

Byte swap
The byte order of variables in the communication via Modbus RTU is determined with these parameters.

6.14.7

RS485 Modbus address
This parameter defines the Modbus address (1 to 230) for communication via the RS485 interface with the Modbus protocol.

6.14.8

Decimal place for Siebert indicator
A fixed decimal place must be specified if a Siebert indicator is used. The following values are permitted: 0 ... 4

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

103

Scale parameters and functions 6.15 DR 14 SIMATIC interface parameters

6.14.9

Modbus RTU message frame delay
These parameters specify the delay time (in ms) expected by the module replying to a master request for data.

6.15

DR 14 SIMATIC interface parameters

6.15.1

Overview
The parameters which define the response of the SIMATIC interface are specified in data record DR 14. It is possible to define the process values to be output on the basis of the I/O area.
Procedure  Check the parameters and modify them as required  Transfer the data record to the scales

Table 6- 12 Assignment of data record 14

Variable

Note

Type

Length RW

Default

Min.

(bytes)

Data record Contains no. of USHORT 2

r

14

-

number

data record

Length

Data record

USHORT 2

r

16

-

length infor-

mation

Application

Information

USHORT 2

r

141

-

about which

application the

DR belongs to

Version ID

Information

USHORT 2

r

1

1

about the current

data record ver-

sion

Selection of Selection of

USHORT 2

rw

4

0

process value process value 1

1, 2

(S7 I/O inter-

(Page 105)

face): Code for

selection of pro-

cess variable to

be updated

Max. -
-

Modbus registers 1570
1571
1572

65635

1573

10

1574

104

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.15 DR 14 SIMATIC interface parameters

Variable

Note

Type

Length RW

Default

Min.

(bytes)

Selection of

USHORT 2

rw

10

0

process value 2

(S7 I/O inter-

face): Code for

selection of pro-

cess variable to

be updated

Possible Simatic SHORT 2

rw

1

1

mode

Reserve 2

Reserve

USHORT 2

rw

0

0

Max. 10

Modbus registers
1575

4

1576

-

1577

6.15.2

Selection of process value 1, 2
The weighing module can communicate with an S7-1500 CPU in two ways: Just via the I/O or by reading out complete data records. The I/O is faster and exhibits a higher performance. Two free-definable channels are available in the S7 I/O (process value 1 and process value 2). Users can decide which scale values (see table) are to be made available cyclically at these two parameters of the PLC.

Table 6- 13 Selection table for process value 1,2

Process value No process selected Gross process Net process Tare process Legal trade G/N weight G/N weight_x10 Gross-2-process-value Reserve Filtered digit intermediate value Unfiltered digit value Filtered digit value "Array: Status DI/DQs (PW[0.1]) Refresh counter (PW[2,3])", see Table 6-18 Assignment of data record 31 (Page 114) Reserve Reserve Reserve Async. error bits (32-bit): bits 0..15: Operating error BTF (word 0) bits 16..31: Technology error TNF (word 2), see Table 6-19 Assignment of data record 32 (Page 116)

Decimal code 0 1 2 3 4 5 6 7 8 9 10 11
12 13 14 15

From DR 30 30 30 30 30 30 30 31 31 31 31
32

Format FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT FLOAT LONG LONG LONG USHORT USHORT
LONG

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

105

Scale parameters and functions 6.16 DR 15 tare default values

See also

Overview (Page 113) DR 32 alarm display (Page 116)

6.16

DR 15 tare default values

6.16.1

Overview
Data record DR 15 is used for external specification of the tare weight.
Procedure  Enter the tare weight  Transfer the data record to the scales  Activate the tare weight with a command

Table 6- 14 Assignment of data record 15

Variable Note

Type

Length RW (bytes)

Data record Contains no. of USHOR 2

r

number

data record

T

Length

Data record

USHOR 2

r

length infor-

T

mation

Application Information about USHOR 2

r

which application T

the DR belongs

to

Version ID Information about USHOR 2

r

the current data T

record version

Default tare Tare manual

FLOAT 4

rw

weight

(Page 106)

Reserve R Reserve

SHORT 2

rw

Default

Min.

15

-

16

-

141

-

Max. -
-

Modbus registers 1578
1579
1580

1

1

65635

1581

0

0

Depends 1582

on specifi-

cation in

DR 3

0

0

-

1584

6.16.2

Default tare weight
If a tare weight is to be used, first it must be entered in DR15 and then activated with the command "Set Tare 1 (1013)" . The tare weight must not exceed the maximum values specified in data record DR 3.

106

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

6.17

DR 16 simulation value

Scale parameters and functions 6.17 DR 16 simulation value

6.17.1

Overview
Specifying a weight value using data record DR 16 disables the measuring input of the SIWAREX module and "simulates" a weight with the specified value. The SIWAREX module must first be released for simulation mode in DR 3 and then switched to simulation mode with command no. 3.
Procedure  Release simulation mode in DR 3  Enter the weight to be simulated  Transfer the data record to the SIWAREX module  Start the simulation using command "Weight simulation on (3)"  Stop the simulation using command "Weight simulation off (4)"

Table 6- 15 Assignment of data record 16

Variable

Note

Type

Data record Contains no. of data record number

Length

Data record length information

Application

Information about which application the data record belongs to

Version ID

Information about the current data record version

Weight simulation specification (Page 107)

Weight value specification (only relevant if simulation mode is enabled)

USHORT USHORT USHORT
USHORT FLOAT

Reserve

Reserve

FLOAT

Length RW (bytes)

2

r

2

r

2

r

2

r

4

rw

2

rw

Default Min.

16

-

Max. -

Modbus registers
1598

16

-

-

1599

141

-

-

1600

1

1

65635 1601

0

maxi- maxi- 1602

mum mum

weigh- weigh-

ing

ing

range range

0

0

-

1604

6.17.2

Weight simulation specification
Only use weight simulation values which are within the measuring range of the scales. The word "TEST" is displayed on the main display during simulation and a status bit is set. From the start of simulation onward, all parameterized limits, inputs and outputs etc. refer to the simulation weight.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

107

Scale parameters and functions 6.18 DR 18 digital output control specifications

6.18

DR 18 digital output control specifications

6.18.1

Overview
If a digital output is defined in data record DR 7 for control with data record DR 18 (see Assignment for digital output 0, 1, 2, 3 (Page 89)), you can control this output with data record DR 18. Transfer is always for all four digital outputs. Only outputs which have been configured for control via DR 18 (see DR7 interface parameters (Page 86)) are activated or deactivated according to the content of data record DR 18.
Procedure
 Check or adapt the desired parameter settings of the digital outputs in data record 7
 Define the value for digital output 0, 1, 2, 3
 Transfer the data record to the scales

Table 6- 16 Assignment of data record 18

Variable

Note

Type

Data record number Length
Application
Version ID
Specification for digital output 0, 1, 2, 3 (Page 109)

Contains no. of data record
Data record length information
Information about which application the DR belongs to
Information about the current data record version
Specification of digital output 0=1 -> DA0 output active (only if assignment Code 21 is assigned to the output, see DR 7)
Specification of digital output 1=1 -> DA1 output active (only if assignment Code 21 is assigned to the output, see DR 7)
Specification of digital output 2=1 -> DA2 output active (only if assignment Code 21 is assigned to the output, see DR 7)

USHORT USHORT USHORT USHORT BIT
BIT
BIT

Length RW (bytes)

2

r

2

r

2

r

2

r

0

rw

0

rw

0

rw

Default Min.

18

-

12

-

141

-

1

1

0

0

0

0

0

0

Max. -

Modbus registers
1606

-

1607

-

1608

65635 1609

1

1610.16

1

1610.15

1

1610.14

108

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.19 DR 30 current process values

Variable
Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15 Reserve 1

Note

Type

Specification of digital output 3=1 -> DA3 output active (only if assignment Code 21 is assigned to the output, see DR 7) Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve Reserve

BIT
BIT BIT BIT BIT BIT BIT BIT BIT BIT BIT BIT BIT USHORT

Length RW (bytes)

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

0

rw

2

rw

2

rw

Default Min.

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

-

Max. 1

Modbus registers
1610.13

1

1610.12

1

1610.11

1

1610.10

1

1610.9

1

1610.8

1

1610.7

1

1610.6

1

1610.5

1

1610.4

1

1610.3

1

1610.2

1

1610.1

-

1611

6.18.2

Specification for digital output 0, 1, 2, 3
Digital outputs 0 to 3 can be controlled using data record 18 with this parameter. This function can be used for commissioning purposes, for example.
Note The reaction of the controlled outputs in the case of SIMATIC CPU stop, failure or module fault can be determined by the user in DR 7.

6.19

DR 30 current process values

6.19.1

Overview
Current states and process values in the scales can be monitored using process values and advanced process values from data record DR 31. Monitoring selected data during commissioning is extremely useful as it helps you to optimize parameters.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

109

Scale parameters and functions 6.19 DR 30 current process values

Procedure
 Read data record DR 30 via a time-controlled OB
 Display/analyze the required tags
It is not always necessary to cyclically read data record DR 30. If corresponding process tags have already been selected in DR 14 (Page 104), they are sent to the scale data block over the I/O interface using the FB. In this case, you can use these tags and also all status bits without the data communication.

Table 6- 17 Assignment of data record 30

Variable

Note

Type

Data record number Length Application
Version ID
1/4d zero Max 9e/-20d
Tared Manual tare set (pT) Reserve Waiting for standstill

Contains no. of data record

USHORT

Data record length information

USHORT

Information about which USHORT application the data record belongs to

Information about the current data record version

USHORT

Set if gross less than ± BIT 0.25e

Set if the weight has BIT exceeded the gross weighing range by more than 9 display steps (d)

Set if tare memory is BIT not equal to zero

Set if the tare memory BIT is assigned an external specified value 1

BIT

Set if module is waiting BIT for standstill to execute command

Length RW (bytes)

2

r

2

r

2

r

2

r

2

r

0

r

0

r

0

r

0

r

0

r

Standstill Reserve Empty Limit value 1 Limit value 2 Min violated

Set if standstill condition BIT is met
BIT
Set if "Empty" condition BIT is met
Limit value 1 has re- BIT sponded
Limit value 2 has re- BIT sponded
Set if min. is violated BIT

0

r

0

r

0

r

0

r

0

r

0

r

Default Min. Max.

30

-

-

68

-

-

141

-

-

1

1

255

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

Modbus registers 3000 3001 3002
3003
3004.16 3004.15
3004.14 3004.13
3004.12 3004.11
3004.10 3004.9 3004.8 3004.7 3004.6 3004.5

110

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.19 DR 30 current process values

Variable

Note

Type

Reserve

BIT

Channel active Channel is set active BIT

Channel dis- 1= Status comes from BIT play channel B channel B

Channel dis- 1= Status comes from BIT play channel A channel A

Reserve

BIT

Reserve

BIT

Reserve

BIT

Reserve

BIT

Impedance error

Set when leaving the BIT setpoint range of impedance

Wrong time Wrong time due to

BIT

empty buffer. Reset

clock.

Trace active

Set when trace is run- BIT ning

Operator error Set with synchroniza- BIT by digital input tion error by command
to digital input

Calibration characteristic curve implausible

Points of calibration

BIT

characteristic curve are

not plausible or com-

plete

Service mode Service mode is active BIT

Simulation mode

Simulations mode is

BIT

active

Reserve

BIT

Reserve

BIT

CPU stop or CPU failure

Set when switch S1 is BIT OFF (operation with SIMATIC) and S7 CPU has failed or ODIS is active

Startup

Startup has taken

BIT

place, is deleted again

after 5 seconds

Status fault

Operating error pending BIT

Gross process Gross weight (process

weight

value)

(Page 112)

FLOAT

Net process weight (Page 112)

Net weight (process value)

FLOAT

Length RW (bytes)

Default Min. Max.

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

0

r

0

-

-

0

r

0

0

r

0

-

-

-

-

0

r

0

-

-

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

-

-

-

-

-

-

-

-

-

-

0

r

0

0

r

0

4

r

0

4

r

0

-

-

-

-

-

-

-

-

Modbus registers 3004.4 3004.3 3004.2 3004.1 3005.16 3005.15 3005.14 3005.13 3005.12
3005.11
3005.10 3005.9
3005.8
3005.7 3005.6 3005.5 3005.4 3005.3
3005.2
3005.1 3006
3008

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

111

Scale parameters and functions 6.19 DR 30 current process values

Variable

Note

Type

Tare process weight (Page 113)
Gross / net weight (Page 113)
Gross / net weight with increased resolution (x 10) (Page 113)
Gross process weight 2 (Page 113)
Percentage gross weight based on maximum capacity (DR3)
Refresh counter for process values (Page 113)
Date and time

Tare weight (process value)
Gross or net weight
Legal trade Gross/Net weight x10
Gross weight after first filter
Percentage gross weight based on maximum capacity (rounded to one decimal place)
Refresh counter incremented by 1 if weight values were changed
SIMATIC DTL format

FLOAT FLOAT FLOAT
FLOAT FLOAT
USHORT DTL

Length RW (bytes)

4

r

4

r

4

r

4

r

4

r

2

r

12

rw

Reserve Reserve Reserve

SHORT

2

r

FLOAT

4

r

FLOAT

4

r

Default Min. Max.

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

0

-

-

DTL#197 0-01-0100:00:00. 0

0

-

-

0

-

-

0

-

-

Modbus registers 3010 3012 3014
3016 3018
3020
3021
3029 3030 3032

6.19.2

Gross process weight
The current gross weight. The rounding is performed according to the specifications in data record DR 3 with the parameter "Automatic zero adjustment (Page 72)".

6.19.3

Net process weight
The current net weight. The rounding is performed according to the specifications in data record DR 3 with the parameter "Automatic zero adjustment (Page 72)".

112

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

6.19.4

Scale parameters and functions 6.20 DR 31 advanced current process values
Tare process weight
The current tare weight. The rounding is performed according to the specifications in data record DR 3 with the parameter "Automatic zero adjustment (Page 72)".

6.19.5

Gross / net weight
The current weight for the main display. Resolution corresponds setting in data record DR 3 Scale interval (Page 72).

6.19.6

Gross / net weight with increased resolution (x 10)
The current weight for the main display in higher resolution. Resolution corresponds setting in data record DR 3 Scale interval (Page 72) x 10.

6.19.7

Gross process weight 2
The current gross weight after the first filter. Since the value was not even filtered with filter 2, it is usually filtered weaker than the gross process value.

6.19.8

Refresh counter for process values
Measured values are calculated every 10 ms in the SIWAREX module. A counter is incremented by 1 each time. Once the counter reaches the value 65536, it starts again from zero. The counter can be used as a time stamp for data record DR 30.

6.20

DR 31 advanced current process values

6.20.1

Overview
Current states and process values in the scales can be monitored using advanced process values and process values (DR 30). This data is not required for standard operation of the scales.
Monitoring selected data during trial operation is extremely useful as it helps you to optimize parameters.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

113

Scale parameters and functions 6.20 DR 31 advanced current process values

Procedure  Read data record DR 31  Display/analyze the required tags

Table 6- 18 Assignment of data record 31

Variable Note

Type

Length RW (bytes)

Data record Contains no. of data record USHORT 2

r

number

Length

Data record length information USHORT 2

r

Application Information about which ap- USHORT 2

r

plication the data record be-

longs to

Version ID Information about the current USHORT 2

r

data record version

Unfiltered Unfiltered digital value from LONG

4

r

digit value the AD converter

(Page 115)

Filtered

Filtered digit intermediate

LONG

4

r

digit value value of the AD converter

after the after the first filter

first filter

(Page 115)

Digits fil- Filtered digit value from the LONG

4

r

tered

AD converter after the second

(Page 115) filter

Load cell Currently measured imped- FLOAT 4

r

impedance ance of the load cells in ohms

Current

Current status of input 0

BIT

0

r

status of

Current status of input 1

BIT

0

r

input 0, 1, 2

(Page 115) Current status of input 2

BIT

0

r

Current status of input 3

BIT

0

r

Bit 4

Reserve

BIT

0

r

Bit 5

Reserve

BIT

0

r

Bit 6

Position of DIP switch 1

BIT

0

r

Bit 7

Position of DIP switch 2

BIT

0

r

Current

Current status of output 0

BIT

0

r

status of

Current status of output 1

BIT

0

r

digital output 0, 1, 2,

Current status of output 2

BIT

0

r

3

Current status of output 3

BIT

0

r

(Page 115)

Reserve

BIT

0

r

Reserve

BIT

0

r

Reserve

BIT

0

r

Reserve

BIT

2

r

Default Min.

31

-

32

-

101

-

1

1

0

-

0

-

0

-

0

-

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Max.
-
-
65635
-
-
-
-
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1

Modbus registers 3300
3301 3302
3303
3304
3306
3308
3310
3312.16 3312.15 3312.14 3312.13 3312.12 331211 3312.10 3312.9 3312.8 3312.7 3312.6 3312.5
3312.4 3312.3 3312.2 3312.1

114

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.20 DR 31 advanced current process values

Variable Note

Type

Length RW (bytes)

Refresh

Refresh counter incremented USHORT 2

r

counter for by 1 if weight values were

process

changed

values

(Page 116)

Current

Currently measured load cell FLOAT 4

r

load cell signal

signal in

mV

(Page 116)

Default Min.

0

-

0

-

Max. -
-

Modbus registers 3313
3314

6.20.2

Unfiltered digit value
The unfiltered digit value is the internal measured value immediately before filtering.

6.20.3

Filtered digit value after the first filter
Filtered digit value is the internal measured value immediately after the first filtering.

6.20.4

Digits filtered
Filtered digit value is the internal measured value after the filtering with the first and second filters.

6.20.5

Current status of input 0, 1, 2
This parameter allows you to check the current status of the digital inputs.

6.20.6

Current status of digital output 0, 1, 2, 3
This parameter allows you to check the current status of the digital outputs.

6.20.7

Current status of DIP switch
Switch 1: ON - Operation without SIMATIC (stand-alone mode) OFF - Operation in SIMATIC Switch 2:

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

115

Scale parameters and functions 6.21 DR 32 alarm display
No meaning

6.20.8

Refresh counter for process values
Measured values are calculated every 10 ms in the SIWAREX module. A counter is incremented by 1 each time. Once the counter reaches the value 65536, it starts again from zero. The counter can used like a time stamp for the data record DR 30/31.

6.20.9

Current load cell signal in mV
Display of currently measured signal voltage of the load cell(s) in mV.

6.21

DR 32 alarm display
Data record DR 32 is used in the Modbus communication with Modbus master.
Operating errors or technology errors are reported spontaneously and the bit display is extended approximately 3 seconds so that there is enough time to register the message. The operating errors are displayed as long as the error is pending.
Data and operating errors are treated as follows.
If a function which is used to write to the holding register is completed with an error, the data or operator error reported can be read from data record DR 32. The messages are displayed for 3 seconds and do not need to be acknowledged from the SIWAREX module.
The exact cause of a parameter or operating error can be determined through additional information. The additional information is provided in the message list (section Message list (Page 124)).
At successful completion of a function for writing to the SIWAREX register, data record DR 32 does not have to be polled.

Table 6- 19 Assignment of data record 32

Variable

Note

Type

Length RW Default Min Max Mod-

(bytes)

. .

bus

regis-

ters

Data record number

Contains no. of data record USHORT 2

r

32

- - 3500

Length

Data record length information USHORT 2

r

28

- - 3501

Application

Information about which appli- USHORT 2 cation the DR belongs to

r

141

- - 3502

Version ID

Information about the current USHORT 2 data record version

r

1

1 655 3503 35

1000 Operating error pend- At least one operating error Bit_0

0

ing

has occurred (= 1 as long as

an operating error is pending)

r

0

- - 3504

116

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.21 DR 32 alarm display

Variable

Note

Type

1108 Short-circuit
1104 Undervoltage 1109 Fault digital outputs
1105 Overload 1106 Underload 1102 ADU error 1003 Checksum error (parameter) 1004 Checksum error (program) 1001 Watchdog Unable to connect to SIMATIC 2000 Technological error detected 2001 Timeout tare or zero
2002 Trace overloaded
Cold restart
Download error
-

Short-circuit to power supply Bit_1 line to the load cell

Undervoltage at SENSE input Bit_2

Fault digital outputs (overtemperature, no ext. supply voltage)

Bit_3

Overload

Bit_4

Load low

Bit_5

Reserve

Bit_6

A/D converter error

Bit_7

Reserve

Bit_8

Checksum error with parame- Bit_9 ters

Reserve

Bit_10

Checksum error in program code

Bit_11

Reserve

Bit_12

Restart after fatal error

Bit_13

Reserve

Bit_14

The firmware must be updated Bit_15 using the new TIA Portal

At least one technology is a Bit_0 fault is pending (group error)

Taring or zeroing is not possible because no standstill occurred within the waiting period.

Bit_1

The configured cycle for the trace recording cannot be processed: Reading in progress or the buffer is full, data recording has stopped

Bit_2

Reserve

Bit_3

Reserve

Bit_4

Restart after power failure or Bit_5 firmware update

FW download aborted or rejected

Bit_6

Reserve

Bit_7

Reserve

Bit_8

Reserve

Bit_9

Reserve

Bit_10

Reserve

Bit_11

Length (bytes)
0

RW Default

r

0

Min Max Mod-

. .

bus

regis-

ters

- - 3504

0

r

0

0

r

0

- - 3504 - - 3504

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

0

r

0

1

r

0

0

r

0

0

r

0

- - 3504 - - 3504 - - 3504 - - 3504 - - 3504 - - 3504
- - 3504 - - 3504
- - 3504 - - 3504 - - 3504 - - 3504
- - 3505
- - 3505

0

r

0

- - 3505

0

r

0

0

r

0

0

r

0

- - 3505 - - 3505 - - 3505

0

r

0

- - 3505

1

r

0

- - 3505

0

r

0

- - 3505

0

r

0

- - 3505

0

r

0

- - 3505

0

r

0

- - 3505

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

117

Scale parameters and functions 6.21 DR 32 alarm display

Variable

Note

Type

Default parameters loaded
Factory settings restored
-

Reserve
Reserve
Note to users about the newly loaded parameters
Note to users about the newly loaded parameters
Reserve

5000 Data or command error

Group fault

6050 Command unknown Issued command code unknown.

6051 Command currently not possible

"Additional information" contains additional information

6052 Error service command

"Additional information" contains additional information

6053 Calibration command All commands for adjustment,

error

calibration

6054 Scale command error "Additional information" contains additional information

6055 Scale command error "Additional information" contains additional information

6056 Memory command error

"Additional information" contains additional information

7050 Unknown data record Requested DR unknown

7051 Parameter input cur- "Additional information" con-

rently not possible

tains additional information

7052 Parameter change not "Additional information" conpossible due to write pro- tains additional information tection

7053 Error in calibration parameter DR3

"Additional information" contains additional information

7054 Parameter error DR5 "Additional information" contains additional information

7055 Parameter error DR6 "Additional information" contains additional information

7056 Parameter error DR7 "Additional information" contains additional information

7057 Parameter error DR8/DR48

"Additional information" contains additional information

7058 Parameter error in DR10 or DR11

"Additional information" contains additional information

7059 Error in interface parameters DR12-DR14

"Additional information" contains additional information

Bit_12 Bit_13 Bit_14 Bit_15 Bit_0Bit_15 Bit_0 Bit_1 Bit_2 Bit_3 Bit_4 Bit_5 Bit_6 Bit_7 Bit_8 Bit_9 Bit_10
Bit_11 Bit_12 Bit_13 Bit_14 Bit_15 Bit_0 Bit_1

Length RW Default Min Max Mod-

(bytes)

. .

bus

regis-

ters

0

r

0

- - 3505

0

r

0

- - 3505

0

r

0

- - 3505

1

r

0

- - 3505

0

r

0

0

0

- - 35063507
- - 3508

0

0

- - 3508

0

r

0

- - 3508

0

r

0

- - 3508

0

r

0

- - 3508

0

r

0

- - 3508

0

r

0

- - 3508

1

r

0

- - 3508

0

r

0

0

r

0

- - 3508 - - 3508

0

r

0

- - 3508

0

r

0

0

r

0

0

r

0

0

r

0

1

r

0

0

r

0

0

r

0

- - 3508 - - 3508 - - 3508 - - 3508 - - 3508 - - 3509 - - 3509

118

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.22 DR 34 ASCII main display value

Variable

Note

Type

Length (bytes)

7060 Error in extended

"Additional information" con- Bit_2

0

parameters DR15 DR19 tains additional information

-

Reserve

Bit_3-

0

Bit_15

Additional information about Additional information about USHORT 1 data and operating errors data and operating errors (see
Additional Information list)

Data and operating error code

Error number (see error list) USHORT 2

Reserve

Reserve

USHORT 2

RW Default

r

0

r

0

r

0

r

0

r

0

Min Max Mod-

. .

bus

regis-

ters

- - 3509

- - 35093510
- - 3511

- - 3512 - - 3513

6.22

DR 34 ASCII main display value

6.22.1

Overview
The ASCII weight value corresponds to the value on the main display of the scale and can be used in addition to the main display for an auxiliary display / operating display.

Table 6- 20 Assignment of data record 34

Variable

Note

Type

Length RW (bytes)

Data record Contains no. of data record

USHORT 2

r

number

Length

Data record length information USHORT 2

r

Application Information about which appli- USHORT 2

r

cation the DR belongs to

Version ID Information about the current USHORT 2

r

data record version

ASCII dis- Maximum length and actual

UBYTE[2] 2

r

play string length of string

header

Content of For display of legal-for-trade CHAR[16] 16

r

main display weight value, legal-for-trade

as ASCII resolution, etc. (see below)

string

(Page 120)

Default Min.

34

-

26

-

101

-

1

1

16,2

-

" "

-

Max. -

Modbus registers
4000

-

4001

-

4002

65635 4003

-

4004

-

4005

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

119

Scale parameters and functions 6.23 DR 48 date and time 2 (for Modbus)

6.22.2

Content of main display as ASCII string
The following values can be displayed in non-automatic weighing instruments (NAWI) applications:

Display content Standard display Increased resolution (temporarily) Net process display Gross process display Tare display (temporary) same as during preset tare active Weight simulation active Display overflow Operator error

Activation per command 710 701 (only possible in "Standard display" mode) 714 715 705 705
3 -

Identifier B/G x
n
T p
B -

6.23
120

DR 48 date and time 2 (for Modbus)
The current date and time can be set or read via data record DR 48. The clock is not buffered and can only continue to function without power for about 30 seconds. Data record DR 8 is used for date and time when the Modbus protocol is not used.
Procedure
 Set the date and time
 Transfer the data record to the SIWAREX module

Table 6- 21 Table 8- 27 Assignment of data record 48

Variable
Data record number Length
Application
Version ID
Year Month Day

Note
Contains no. of data record

Type USHORT

Length RW (bytes)

2

r

Data record length USHORT 2

r

information

Information about

USHORT 2

r

which application the

data record belongs

to

Information about the USHORT 2

r

current data record

version

Year number

USHORT 2

rw

Month

USHORT 2

rw

Day in the month

USHORT 2

rw

Default Min.

48

-

24

-

141

-

1

1

2015 1 1

2012 1 1

Max. -

Modbus registers
4500

-

4501

-

4502

6563 4503 5
4504 12 4505 31 4506

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Scale parameters and functions 6.23 DR 48 date and time 2 (for Modbus)

Variable Note

Hour
Minute
Second
Millisecond
Day of the week

Hour Minute Second Millisecond
Day of the week

Type
USHORT USHORT USHORT USHORT

Length RW (bytes)

2

rw

2

rw

2

rw

2

rw

Default Min.

0

0

0

0

0

0

0

0

USHORT 2

rw 1

1

Max.
23 59 59 999

Modbus registers 4507 4508 4509 4510

7

4511

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

121

Alarm logging

7

7.1

Message types

The messages in the electronic weighing system described here are divided into three types.

Operating messages
System status messages can be generated spontaneously at any time by an unexpected event. They include internal and external hardware problems which can occur spontaneously during weighing.

Technological error
Technology errors occur spontaneously due to the weighing process.
The status bits are not messages in contrast. The status indicators describe the status of the scale in normal operation and can always be observed and evaluated.

Data and operating errors
The data and operating errors are always a response to a command due to a plausibility check.
These are data errors if a plausibility error has been detected in a data packet which was sent to the module and receipt of the packet has been rejected by the module.
These are operating errors if the module cannot execute the sent command in its current operating state.

7.2

Message paths

You can read out the messages using different paths. You define the path for forwarding and processing of messages during configuration.

The messages are processed for two basic purposes:

 For display or recording on an operator panel for the operator

 For linking in the control software to control specific reactions in the process.

The following message paths are possible:

 Output of the message buffer to the SIWATOOL program (takes place automatically)

 Output by means of function block as bit field in Scale data block

 Certain operating errors can be transmitted as diagnostic interrupts to the SIMATIC CPU and evaluated by OB82

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

123

Alarm logging 7.3 Evaluating messages with the help of SIWATOOL

7.3

Evaluating messages with the help of SIWATOOL

The electronic weighing system has a message buffer for each weighing channel. The buffer can contain up to 60 entries. If the number of alarms in the alarm buffer exceeds 60, the oldest entry is overwritten. The message buffer can be read out at any time with the help of SIWATOOL (menu item "Read out all data records") and saved together with the scale parameters. This facilitates the detection, analysis and correction of errors in the system.

7.4

Detecting messages with the help of FB SIWA

All messages of the SIWAREX module can be fully detected and processed in the controller using the SIWAREX WP521/WP522 function block. The messages can be evaluated directly in a signaling system by means of a bit signaling area in the scale data block. The message texts are stored in the signaling system. The message text is output when a bit becomes "1".

7.5

Message list

7.5.1

Introduction
The message list is an overview of all messages that the SIWAREX module can generate. A message can be quickly identified by the message code (number).

7.5.2

System status message list

Operator error (code 1000 to 1999) 1000 Operating error pending 1001 Watchdog
1003 Checksum incorrect parameter 1004 Checksum incorrect program 1008 Firmware version not compatible 1102 ADU error
1104 Undervoltage

Error code 1000 1001
1003 1004 1008 1102
1104

Description and remedy
Group message, at least one operating error exists.
Watchdog, error is displayed for at least 10 seconds. A serious error has occurred in the function of SIWAREX, e.g. program error, severe electromagnetic influence on device, etc.
Contact the SIWAREX Support if the error occurs multiple times.
Checksum error at parameter. Critical error because the parameters are no longer safe.
Checksum error program code. Critical error because the program is no longer safe.
The firmware must be updated via the TIA Portal.
AD converter error when reading in the measured value. If the error occurs again, make sure that the EMC recommendations are observed (chapter Electrical, EMC and climatic requirements (Page 161)).
Undervoltage at sensor cables

124

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Operator error (code 1000 to 1999) 1105 Overload 1106 Underload 1108 Short-circuit 1109 Fault digital outputs

Alarm logging 7.5 Message list

Error code 1105 1106 1108 1109

Description and remedy Overload of scale (ca. 110%) Underload of scale (ca. -10%) Short-circuit to power supply line to the load cell Fault digital outputs (overtemperature, no ext. supply voltage)

7.5.3

Technology error message list

Technology error (code 2000 to 4999) 2000 Technological error detected 2001 Taring/zeroing timeout

Error code 2000 2001

2002 Trace overloaded

2002

2005 Restart after voltage dip 2006 Download error

2005 2006

Description and remedy
Group message, at least one technology error exists
Taring of scale or set to zero is not possible because a standstill was not reached during the standstill time. The command was discarded.
The configured recording rate for trace cannot be processed. Set a slower recording rate (section "Trace recording cycle (Page 90)")
Restart after power failure or firmware download.
A firmware download was canceled/rejected, e.g. because the transferred file is invalid.

7.5.4

Message list data and operating errors with additional information
Additional information is available for most data or command errors. The cause of the error is described in more detail using this information. If a data or command error bit is set, the additional information is filled accordingly at the same time. In this way, both the error bits as well as the additional information must be analyzed together in order to locate the cause of the error in the program.

Data and operating errors
5000 Data or command error 6050 Command unknown 6051 Command currently not possible
6052 Error service command

Error code 5000

Supplementary info
-

6050

-

6051

-

6052

4500 4501 4502
4510 4516

Description
Group error, at least one data or command error is pending
Given command code unknown. Check the command code. The desired command could not be executed because, for example, another process is running at this time. Additional information contains more detailed information. , because fault is pending , because there is no standstill , because already waiting for standstill Command from the group service commands could not be executed. Additional information contains more detailed information. , because no service mode active , because no service activated for other channel

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

125

Alarm logging 7.5 Message list

Data and operating errors Error code 6053 Calibration command 6053 error
6054 Scale command error 6054

Supplementary info
4510 4520 4521 4522 4523 4524

6056 Memory command error

6056

7050 Unknown data record
7051 Parameter input currently not possible

7050 7051

7053 Error in calibration parameter DR3

7053

4500 4501 4502 4530 4531
4500 4550 -
4510
3323 3199 3247 3247 3323 3199 3086 3087 3088 3081 3083 3085 3248 3288 3333 3335

Description
Command from the group adjustment commands failed. Additional information contains more detailed information. , because no service mode active , because distance of adjustment digits too low , because order of calibration points wrong , because calibration is not yet complete , because adjustment digits are out of range , because calibration weight 0 Command from the group weighing commands (zero, tare, etc.) could not be executed. Additional information contains more detailed information. , because fault is pending , because there is no standstill , because already waiting for standstill , because weight outside allowable tare range , because weight outside allowable zero range Trace command was rejected. Additional information contains more detailed information. , because fault is pending , because trace memory full Requested data record is unknown. Parameter input is currently not possible. Additional information contains more detailed information. , because no service mode active Additional Information refers to the non-plausible parameter in DR3 Unit of weight Gross identifier Reserve 1a Reserve 1b Unit of weight Gross identifier Calibration weight 0 Calibration weight 1 Calibration weight 2 Adjustment digits 0 (measured) Adjustment digits 1 (measured) Adjustment digits 2 (measured) Resolution Maximum tare load Negative zeroing value Positive zeroing value

126

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Alarm logging 7.5 Message list

Data and operating errors Error code 7054 Parameter error DR5 7054

Supplementary info 3274 3317 3316 3175 3236 3906 4510 4520 4521 4524 4610 4611 4612

7055 Parameter error DR6 7055

3105 3115 3116 3118 3124 4510 4530 4531

3433 3203 3202 3206 3205 3150 2451

7056 Parameter error DR7 7056

4640
3055 3056 3057

Description
Standstill value Standstill time Waiting period Cut-off frequency low-pass filter 1 Order no. low-pass filter 1 Period average value filter , because no service mode active , because distance of adjustment digits too low , because order of calibration points wrong , because calibration weight 0 , because of error in Max - Min weighing range , because resolution not allowed , because the cutoff frequency of the low-pass filter TP1 is too low Additional Information refers to the non-plausible parameter in DR5 Effective tare manual Effective tare - semiautomatic Zero value Current zero value auto. Dead load , because no service mode active , because weight outside allowable tare range , because weight outside allowable zero range Additional Information refers to the non-plausible parameter in DR6 Basis of limits Limit 1 on value Limit 1 off value Limit 2 on value Limit 2 off value Blank value Uniform delay time for - Switch ON / OFF limit 1 - Switch ON / OFF limit 2 - Switch ON blank message , because specification in percent outside the permissible range Additional Information refers to the non-plausible parameter in DR7 Assignment for digital input 0 Assignment for digital input 1 Assignment for digital input 2

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

127

Alarm logging 7.5 Message list

Data and operating errors
7057 Parameter error DR8/DR48 7058 Parameter error in DR10 and DR11
7059 Error in interface parameters DR12-DR14

Error code
7057 7058
7059

Supplementary info 3162 3059 3060 3061 3062 3884 3881 3882 3312 4650 4651 4652 4653
3121
3283 3227 3180 3228 3888 1107 3889 3324 3890 3891 4510 4660 1190
3138 3103 3102 4107 3892 4108 3893 3253

Description
Filter settings for the digital inputs Assignment for digital output 0 Assignment for digital output 1 Assignment for digital output 2 Assignment for digital output 3 Monitoring of the digital outputs and their supply voltage Reaction of digital outputs to errors (independent of switch) Reaction of digital outputs at CPU stop or failure Trace recording cycle , because DQ.0 assignment not possible , because DQ.1 assignment not possible , because DQ.2 assignment not possible , because DQ.3 assignment not possible Additional Information refers to the non-plausible parameter in DR8 / DR48 Date and time Additional Information refers to the non-plausible parameter in DR10 Switch 50/60Hz Number of support points LC parameter Rated load Overload limit Impedance reference value Permissible impedance deviation String header Load cell manufacturer Load cell order number , because no service mode active , because input range exceeded (parameter * overload limit) Channel status Additional Information refers to the non-plausible parameter in DR12 - DR14 Device MAC address 1 IP address x.n.n.n Gateway x.n.n.n Unit identifier channel 1 TCP port channel 1 Unit identifier channel 2 TCP port channel 2 RS485 protocol

128

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Alarm logging 7.5 Message list

Data and operating errors
7060 Error in extended parameters DR15 DR19

Error code 7060

Supplementary info 3250 3221 3126 3895 3264 3265 4510 4670 4671 4672 4673 4674

3897 4530

Description
RS485 baud rate Modbus address RTU (RS485) Decimal place remote display Modbus RTU message frame delay Selection process value 1 (S7 I/O interface) Selection process value 2 (S7 I/O interface) , because no service mode active , because selection code is not defined for process values 1 , because selection code is not defined for process values 2 , because MAC address is not identical , because IP address is invalid , because Modbus TCP port invalid Additional Information refers to the non-plausible parameter in DR15 - DR19 Tare default value , because weight outside allowable tare range

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

129

Alarm logging 7.5 Message list

7.5.5
LED name

Messages by LEDs on the module
The LEDs on the front of the SIWAREX module signal the following status and error messages.

Symbol

Sym- LED name bol

Status scale A (CH 0)

A

Service mode

Limit 1 triggered

Limit 2 triggered

Limit 3 triggered

Standstill

Maximum weight Status load cell Activate RS485 com.
Status digital outputs Dig. Output 0 active Dig. Output 1 active Dig. Output 2 active Dig. Output 3 active Dig. Input 0 active Dig. Input 1 active Dig. Input 2 active LAN Rx/Tx (channelspec.) LAN LINK, Rx/Tx (PHY)
Voltage channel A OK

Max LC COM R/T DQ P .0 .1 .2 .3 .0 .1 .2 LAN R/T LAN LK, R/T PWR

B Status scale B (CH 1) Service mode
Limit 1 triggered

Limit 2 triggered

Limit 3 triggered

Standstill

Max LC COM R/T DQ P .0 .1 .2 .3 .0 .1 .2 LAN R/T LAN LK, R/T PWR

Maximum weight Status load cell Activate RS485 com.
Status digital outputs Dig. Output 0 active Dig. Output 1 active Dig. Output 2 active Dig. Output 3 active Dig. Input 0 active Dig. Input 1 active Dig. Input 2 active LAN Rx/Tx (channel-spec.)
(free)
Voltage channel B OK

130

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Alarm logging 7.5 Message list

As with all S7-1500 technology and signal modules, there are 3 LEDs in the colors green, red and yellow located at the top of the area. The following table explains the dynamic meaning of the LEDs.

Table 7- 1 Dynamic meaning of the LEDs

LED

Status

Meaning

RUN LED Green

2Hz S7-end module startup

SF/ERROR Red LED
MAINT LED /

Ready for operation
2Hz System fault (module/channel diagnostics alarm pending, e.g. operating errors or firmware update) [red LED flashes for at least 3 seconds] Maintenance LED - without function for WP52x
2Hz

D (diagnos- Red tics)
Green

2Hz Operating error pending (e.g. also: Stand-alone configured, but S7 communication Stand-alone mode active (possible to continue work without operational S7 CPU) Ready
2Hz Service mode active

(off)

Normal operation

Limit 1 responded

Limit 2 responded

Limit 3 triggered

(off)

No standstill

Status standstill pending

Max

Red

2Hz Weighing range exceeded

LC

Red

2Hz Load cell error

COM R/T

Measured LC impedance outside the configured setpoint range
Load cell status OK
RS485 communication active (Receive/Transmit) Pulse 0.5s for transmitting/receiving a message frame; Modbus reception: Activation independent of slave address. Permanent with "Siebert" configuration, since transmitted regularly

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

131

Alarm logging 7.5 Message list

LED LAN R/T
DQ P

Status

Meaning

LAN communication to this channel active (only Siwatool/Modbus TCP ­ not with FTP, for example)

Pulse 0.5s for transmitting/receiving a frame  transforms into continuous light during active Siwatool/Modbus link.

WP522: This LED is channel-specific driven for communication via channel-specific TCP ports

(off)

There is no output voltage and none of the outputs is assigned a function

Red

2Hz No output voltage or is at least one of the outputs DQ.x has a fault (overload)

DQ.x DI.x LAN LK R/T
PWR

Digital outputs ready; trigger at Simatic failure or stop, output replacement values if required Digital outputs ready; no monitoring of SIMATIC function (stand-alone operation) Digital output x active (high level) Digital input x active (high level) (status is detected after filtering) Link: There is an Ethernet connection to a remote station Receive/Transmit: Pulse when an Ethernet frame is sent or received Status of local channel 24V supply available

xxx = LED ON = LED flashes

132

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Commands

8

8.1

Overview
The commands for the electronic weighing system described here can be transmitted by several interfaces:  by the Operator Panel via the controller to the SIWAREX module  by the Operator Panel directly to the SIWAREX module  by SIWATOOL directly to the SIWAREX module  by the digital inputs after corresponding assignment in data record DR 7 A data or command error is signaled if a command cannot be executed or if the sent data record is rejected. Detailed descriptions of the commands can be found in the following command lists:  Table 8-1 Command 1 ... 99: Service commands (Page 133)  Table 8-2 Commands 450 ... 499: Trace commands (Page 134)  Table 8-3 Commands 700 to 899: HMI display switching (Page 134)  Table 8-4 Commands 1000 ... : Basic functions for weighing commands (Page 135)  Command groups of SIWAREX WP521/WP522 (Page 135)

8.2

Command lists

The commands for the electronic weighing system described here are summarized in the following list:

Table 8- 1 Command 1 ... 99: Service commands

Command code 1 2 3

Command Service mode On Service mode Off Test mode On (simulation)

4

Test mode Off (simulation)

11

Load factory setting

Description
Turn on service mode
Turn off service mode
Turn on test mode. The simulation value from data record 16 is used instead of the measured value for calculation of the process values.
Switch off test mode.
The command resets the SIWAREX to the "ex works" status. Then: - All parameters and stored data are loaded with the default values - All message buffers (diagnostic buffer, trace memory, etc.) are reset

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

133

Commands 8.2 Command lists

Command code Command

12

Load standard parameters

31

Reserve

51

Reserve

60

Calibration point 0 valid

61

Calibration point 1 valid

62

Calibration point 2 valid

81

Characteristic shift

82

Perform automatic calibration

83

Perform calibration check

907

Apply load cell impedance

Description Like "Load factory settings" (command code 11), but interface settings for Ethernet and Modbus RTU are not reset to the factory setting.
Calibration point 0 valid / save values for calibration point 0.
Calibration point 1 valid / save values for calibration point 1.
Calibration point 2 valid / save values for calibration point 2.
Move calibration characteristic. The command defines the current weight of the scale as the new zero point (0 kg) and shifts the complete characteristic without changing the gradient. The command can be used, for example, in order to compensate parts used for mounting calibration weights on the scale at the end of the calibration.
Calculating the scale characteristic curve with reference to the load cell from data record 10. The calculated characteristic curve is entered directly in data record 3 and 4, and thus activated immediately after executing the command. The scale must be empty when the command is executed.
The command calculates the theoretical digital values in·relation to the calibration weights using the load cell parameters from data record 10 and the adjustment weights 0, 1 and 2 from data record 3. The output of these theoretical digits is made in data record 4. The function can be used to check the plausibility of adjustment digits in data record 3, which have been determined in a legal-for-trade calibration.
The currently measured impedance value (DS31) is transferred to the DS 10.

Table 8- 2 Commands 450 ... 499: Trace commands

Command code Command

451

Trace RAM on

452

Trace RAM off

454

Delete trace RAM

Description Start permanent tracing Stop permanent tracing Delete tracing memory.

Table 8- 3 Commands 700 to 899: HMI display switching

Command code 701 705 710
714

Command
Increased resolution Display current tare weight Activate standard display
N Process value

Description
Increased resolution on the main display Current tare weight on the main display Activate standard display gross/net (main display) Show net process weight on the main display

134

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

8.3

Commands 8.3 Command groups of SIWAREX WP521/WP522

Command code 715
716

Command
B Process value B process value after first filter

Description
Show gross process weight on the main display Gross process weight after the first filter

Table 8- 4 Commands 1000 ... : Basic functions for weighing commands

Command code 1001 1011 1012 1013 1016

Command Set to zero Tare Delete tare Valid tare SIMATIC tare specification

Description Zeroing (semi-automatic) Taring (semi-automatic) Delete current tare weight Activate default tare Specified tare weight from SIMATIC I/O interface

Command groups of SIWAREX WP521/WP522
The following commands can be triggered in the scale data block DB_SCALE in the area CMD1 to CMD3:

Table 8- 5 Command groups of SIWAREX WP521/WP522

Command group 1 ... 999
2000 + X
4000 + X
7001 7002

Description
Commands are passed by the function module to the module via data record DR 2 (scale, weighing, display, trace commands). The meanings of the commands correspond to the command list (see  Command lists (Page 133)).
Reading of a data record, X corresponds to the data record number.
Example: Data record 3 transmitted by SIWAREX module to SIMATIC CPU  2000 + 3 = command code 2003
Writing of a data record, X corresponds to the data record number.
Example: Data record 3 transmitted by SIMATIC CPU to the SIWAREX module  4000 + 3 = command code 4003
Read all data - Read all data from the SIWAREX to the CPU
Write all data - Write all data from the CPU to the SIWAREX (service mode has to be turned on)

Additional information on transmission of commands from the control program by means of the SIMATIC interface is available in chapter Communication with SIMATIC S7-1500 (Page 137).

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

135

Commands 8.3 Command groups of SIWAREX WP521/WP522

136

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500

9

9.1 9.2

General information
A SIWAREX WP521 occupies 32 bytes, a SIWAREX WP522 occupies 64 bytes in the I/O area of the CPU.
The effect of the mode switch setting (see section "Ex-works settings of the operating switch (Page 36)") on the reaction to CPU failure or stop must be taken into account. If the switch is set to SIMATIC operation ex factory, the user use the parameters in DR7 to determine how the module reacts to CPU failure or stop.
The function block can be used to read the current process values of the scale (weight, status). It is also possible to set the scale parameters and issue commands (taring, zeroing, etc.). A separate call of the FB is required for each weighing channel.
The function blocks described above including HMI configurations can be downloaded as a completed example project ("ready-for-use") at: Example project "ready-for-use" (https://support.industry.siemens.com/cs/document/94109373/tia-portal-project%E2%80%9Eready-for-use%E2%80%9C-for-siwarex-wp521/wp522?dti=0&lc=en-WW)
The latest firmware versions for the weighing modules can be downloaded at:Firmware (https://support.industry.siemens.com/cs/document/75231231/firmware-siwarexwp231?dti=0&lc=en-WW)

System environment
The technology module can be used in the following system environments:

Possible applications Central operating in an S7-1500 system
Distributed operation with S7-1500 and ET200MP

Required components S7-1500 automation system
Distributed I/O System ET 200MP

Configuration software
STEP 7 (TIA Portal):
Device configuration with the hardware configuration (HWCN)

In the user program
Control by a SIWAREX FB and instance DB

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

137

Communication with SIMATIC S7-1500 9.3 Memory requirements for SIWAREX communication

9.3

Memory requirements for SIWAREX communication
The memory requirement is summarized in the following table.

Table 9- 1 Properties of the function block
FB properties Read weight & status Drop commands Transfer parameters Work memory requirement in CPU Load memory requirements in CPU
n = number of weighing channels

FB call per weighing channel YES YES YES 15600 bytes + n x 2 650 bytes 232000 Byte + n x 62000 Byte

9.4

Creating the hardware configuration

As of TIA Portal V14, SIWAREX WP521/WP522 is integrated as standard in the hardware profile as an S7-1500 technology module.

An HSP is available for integration in TIA Portal V13 at:Hardware Support Package (https://support.industry.siemens.com/cs/document/73514020/hardware-support-package(hsp)-for-siwarex-wp231-in-tia-portal-v11-sp2-for-products%3A-7mh49602aa01?dti=0&lc=en-WW)

138

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.4 Creating the hardware configuration

Image 9-1 Configuration in the TIA Portal
The SIWAREX WP521 or SIWAREX WP522 module can be placed directly next to the S71500 CPU via drag-and-drop.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

139

Communication with SIMATIC S7-1500 9.4 Creating the hardware configuration

Image 9-2 Configuration with S7-1500 CPU
TIA Portal automatically assigns a separate I/O start address and a HW ID for every SIWAREX present in the project. These two parameters are relevant for calling the function block, and can be obtained from the properties of the respective module. The address range is always in the region of the I/O image of the automation system.

Image 9-3 Addressing of the SIWAREX WP522 module in TIA Portal

140

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.5 Diagnostic messages

Image 9-4 HW ID of module in TIA Portal

9.5

Diagnostic messages

The DIAG LED flashes red if a diagnostic message is pending. Diagnostic results are displayed as plain text in STEP 7 (TIA Portal) via the online and diagnostics view. You can evaluate the error code via the OB82 user program.

The following diagnostic messages can be generated:

Table 9- 2 Diagnostic messages

Diagnostic message Short-circuit

Error code 01H

Under voltage

02H

Overload

07H

Load low

08H

Error

09H

ADC error

0BH

DQ error

0CH

Parameter checksum error 0DH

Checksum error program

0EH

No load voltage

11H

Meaning

Remedy

Short-circuit in the load cell Check line up to load cell supply

Under-voltage of sense lines Voltage drop to the load cell to high. Check cause.

High limit for sensor voltage Overload of the scale elimi-

exceeded

nated

Low limit for sensor voltage undershot

Check mechanics of the scale, check the wiring of the sensor.

Internal module error, fault Replace technology module

Signal conversion by ADC faulty

EMC faults may be responsible for this error

Fault in digital outputs

Check supply voltage for DQs, check for overload

The checksum for the pa- Load factory setting for parameter integrity is incorrect rameters.

The checksum for the pa- Reload firmware, replace rameter integrity is incorrect module

No L+ for technology module Check supply voltage on BaseUnit

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

141

Communication with SIMATIC S7-1500 9.6 Triggering a hardware interrupt

Diagnostic message Hardware interrupt lost

Error code 16H

Module temporarily unavail- 1FH able

Meaning
Technology module cannot generate an interrupt, because previous alarm has not yet been processed
Normal operation of the module is not possible, because a firmware update is being performed, for example.

Remedy Change interrupt processing in the CPU, re-configure technology module.
Wait until module goes into normal operation.

9.6

Triggering a hardware interrupt

You can configure which events are to trigger a hardware interrupt for the SIWAREX module.

Based on the configuration, the SIWAREX module triggers a hardware interrupt for specific events/limits. When a hardware interrupt occurs, the CPU interrupts execution of the user program and processes the associated hardware interrupt OB. The event that triggered the interrupt is entered by the CPU into the start information of the associated hardware interrupt OB.

Activation of the hardware interrupts
For the device configuration of the SIWAREX module, you can activate the hardware interrupts in the TIA Portal under "Basic parameters > Channel 0 or 1> Hardware interrupts".

Lost hardware interrupt
When an event that triggers a hardware interrupt occurs and a previous event of the same kind has not yet been processed, no further hardware interrupt is triggered. The hardware interrupt is lost. Depending on the configuration, this can result in a "Lost hardware interrupt lost" diagnostic alarm.

142

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.7 Ethernet approvals

No hardware interrupts are activated by default. One result of triggering a hardware interrupt is that the following two variables are entered in the start information of the associated hardware interrupt OB:  EventType: One byte with a set bit  IChannel: Number of the channel that triggered the hardware interrupt

Table 9- 3 Table of event bits
Hardware interrupt Limit 1 OFF  ON Limit 1 ON  OFF Limit 2 OFF  ON Limit 2 ON  OFF Limit 3 OFF  ON Limit 3 ON  OFF

EventType bit 0 1 2 3 4 5

Image 9-5 Configuration of hardware interrupts

9.7

Ethernet approvals

It may be necessary to restrict the communication options via Ethernet for reasons of data security. It is recommendable to deactivate surplus interfaces.

Note Please also observe the Security information (Page 9).

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

143

Communication with SIMATIC S7-1500 9.8 Calling of function block
The settings in HW Config only take effect in "SIMATIC mode", see Ex-works settings of the operating switch (Page 36). The restriction of Ethernet Modbus communication can be performed per configuration of the ports in data record DR12 (port number = 0)

Image 9-6 Ethernet approvals

9.8

Calling of function block

This description is based on using the "SIWAREX_WP52X" block (FB1552) with data record communication and the following data:

 Start address SIWAREX WP521/WP522: 68 (see 

 HW ID SIWAREX WP521/WP522: 257 (see  Image 9-4 HW ID of module in TIA Portal (Page 141)

 Instance data block number of the function block: DB521

The function block can be integrated at the desired position in the user program using drag and drop. Calling of the FB must be carried out cyclically in the control program.

FB "SIWAREX WP52X" is called once in OB1 for the SIWAREX WP521 module. For the SIWAREX WP522 module, FB "SIWAREX_52X" is called once for each channel.

144

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.8 Calling of function block

Image 9-7 Call block for SIWAREX WP521

Image 9-8 Call block for SIWAREX WP522

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

145

Communication with SIMATIC S7-1500 9.8 Calling of function block

Image 9-9 Call the block for SIWAREX WP521/WP522 in the user program

Function block parameter ADDR
HW_ID
DB_NO LIFEBIT

Description
Start address WP521/WP522 (see  Creating the hardware configuration (Page 138))
HW ID WP521/WP522 (see  Creating the hardware configuration (Page 138))
Number of FB-internal instance DB
Optional status bit can be used to monitor communication

The generated instance DB (DB521 in this case) has multi-instance capability and includes all data records of the WP52X, as well as all the necessary parameters for data communication between the CPU and the weighing module.

A separate FB call must be made in the user program for each weighing module. In this manner, each scale receives its own instance DB (or a section of the multi-instance DB is

146

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.9 Working with the function block
assigned to each scale) which provides the respective scale parameters. The input and output parameters of the FB must be adapted for each call.

9.9

Working with the function block

Data records in SIWAREX weighing modules
All parameters in SIWAREX weighing modules are structured in data records. These data records must be considered as connected packages and can only be respectively read into the CPU or written to the SIWAREX as complete packages. Reading or writing of a single parameter within a data record is not possible. You can find a description of all data records and their parameters in chapter  Scale parameters and functions (Page 67).
Reading and writing of data records is carried out using special command codes which can be sent with three command mailboxes handled according to priority within the instance DB:

Image 9-10 CMD command mailboxes
As shown in the graphics, a command mailbox always consists of a command code (Int) and four bits (Bool). A command is set by entering the desired command code in the "i_CMD_CODE" parameter and setting the respective command trigger "bo_CMD_TRIGGER". The status bits "bo_CMD_InProgress" (command being processed), "bo_CMD_FinishedOk" (command finished without errors) and "bo_CMD_FinishedError" (command rejected or finished with error) can be evaluated in the user program.
In addition, the three command mailboxes are managed and processed according to priority. CMD1 has the highest priority, CMD3 has the lowest priority. If all three command mailboxes are triggered simultaneously by the user program, for example, the function block initially processes CMD1, then CMD2, and finally CMD3. Cyclic triggering of command mailbox 3 is

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

147

Communication with SIMATIC S7-1500 9.9 Working with the function block

also interrupted by intermediate sending of a command in mailbox 2 or 1 for processing of the respective command.
Note Cyclic triggering of the CMD1 command mailbox makes it impossible to send commands in mailbox 2 or 3.

A summary of all existing command codes can be found in chapter Command lists (Page 133).

The following equation for generation of a corresponding command code applies to the reading of data records from the SIWAREX to the data block:

Command code = 2000 + X

(X = desired data record number)

The following equation for generation of a corresponding command code applies to the writing of data records from the data block to the SIWAREX:

Command code = 4000 + X

(X = desired data record number)

Example
148

The following example clarifies the actions with command mailboxes and data records:
"Calibration weight 1" is to be set to a value of 12.5 by the CPU. Since "Calibration weight 1" is a parameter of data record 3 (see section  Scale parameters and functions (Page 67)), service mode must be first activated. This can be done with command code "1" (see section  Command lists (Page 133)).
The variable "i_CMD_CODE" must therefore be assigned the value "1" and the associated "bo_CMD_TRIGGER" set to TRUE. Subsequently, the module is directly in service mode (DIAG LED flashes green):
i_CMD_CODE = 1
bo_CMD_TRIGGER = TRUE
Since only complete data records can be read or written, it is recommendable to now read data record 3 into the CPU. This is carried out using command code 2003 (see chapter  Command lists (Page 133)):
i_CMD_CODE = 2003
bo_CMD_TRIGGER = TRUE
All current data from data record 3 are now present in the data block. The calibration weight is then set as desired to a value of 12.5:
CALIB_WEIGHT_1 = 12.5
The modified data record 3 must now be written into the SIWAREX again. This is carried out using command code 4003 (see chapter  Command lists (Page 133)):
i_CMD_CODE = 4003
bo_CMD_TRIGGER = TRUE
The new calibration weight is now present in the SIWAREX and can be used. Service mode for the module should subsequently be switched off again using command "2".
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication with SIMATIC S7-1500 9.10 I/O interface of function block
This procedure for reading and writing data records is identical for all data records.

9.10

I/O interface of function block
The following scale parameters are available cyclically in the data block in the controller without special reading of data records or can be sent to the scale without sending of data records:

Table 9- 4 I/O data of function block

Parameter (read) SCALE_STATUS_1 (UINT) SCALE_STATUS_2 (UINT) PROCESS_VAL_1 (REAL) PROCESS_VAL_2 (REAL) OPERATION_ERRORS TECHNOLOGICAL_ERRORS_1 TECHNOLOGICAL_ERRORS_2 TECHNOLOGICAL_ERRORS_3 DATA_CMD_ERROR_1 DATA_CMD_ERROR_2 DATA_CMD_ERROR_3 ADD_INFO Parameter (write) TARE_VALUE (REAL) DIGIT_OUTPUT (UINT)

Meaning Bytes 0 & 1 of the scale status (see data record 30) Bytes 2 & 3 of the scale status (see data record 30) Scale value in accordance with selection in data record 14 Scale value in accordance with selection in data record 14 Operating error according to Message list (Page 124) Technology messages according to Message list (Page 124) Technology messages according to Message list (Page 124) Technology messages according to Message list (Page 124) Data command error according to Message list (Page 124) Data command error according to Message list (Page 124) Data command error according to Message list (Page 124) Additional information data / operator errors
Tare default value of S7 I/Os (activate with command 1016) Default values for digital outputs, if they have assigned as an "S7 interface" function in data record 7.

9.11

Error codes of function block
States and errors of the FB.

Table 9- 5 Statuses/errors when working with the function block

Error bit bo_ApplIDError bo_ApplIDDRError bo_SFBError bo_RdPerError bo_LifeBitError bo_StartUpError bo_WrongFW bo_InvalidCMD

Error description Address module does not match the function block Data record does not match the inserted module Runtime error during transmission of data record Reading of I/O data failed SIWAREX no longer responds Command was sent although StartUp is still TRUE Data record version does not match the firmware An invalid command code was sent

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

149

Communication with SIMATIC S7-1500 9.11 Error codes of function block

Error bit bo_DataOperationError bo_StartUp

Error description Synchronous data operation error has occurred Startup synchronization of module running

Note
If execution of the function block is faulty, the variables shown do not correspond to the actual status in the module.

150

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication via Modbus

10

10.1 10.2 10.3

General information
The current process values and parameters can be exchanged via the RS485 interface with Modbus RTU or the Ethernet interface with Modbus TCP/IP. It is possible to use both interfaces for the communication.
Note Please also observe the Security information (Page 9).
The following chapters describe the specifications for handling communication. The following functions can be executed:  Export parameters from the electronic weighing system  Write parameters  Export current process values  Monitor messages
Special feature of Modbus TCP/IP connection to SIWAREX WP522
There are two ways to communicate with two scale channels via Modbus TCP/IP:  Communication for both weighing channels vis port 502. The register numbers of the data
record tables for weighing channel B can be increased by the offset value 5000.  Communication for both channels via freely configurable ports. The register numbers
indicated in the record tables apply to both weighing channels. The assignment of a new IP address to a SIWAREX module is necessary if several SIWAREX modules are present in one network.  Modbus TCP/IP for SIWAREX WP521: Port: 502  Modbus TCP/IP for SIWAREX WP521/WP522: Port: 502 or  Modbus TCP/IP for SIWAREX WP522 channel A: port configurable, channel B: port
configurable
Principle of data transmission
This description is valid for communication via Modbus RTU and Modbus TCP/IP.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

151

Communication via Modbus 10.3 Principle of data transmission

The standardized MODBUS protocol is used for communication. The master function is always in the connected communication partner, while the SIWAREX module is always the slave.
Data transfer is bidirectional. The master function is always in the connected module which "controls" the communication with corresponding requests to the respective SIWAREX module address. The SIWAREX module is always the slave and responds to the requests of the master, provided that the address matches, with a response frame.
Each Modbus partner has its own address. The SIWAREX module has the default address 1. This address can be changed as a parameter (e.g. in SIWATOOL). This address is without significance if the Ethernet interface is used because the connection is based on the IP address.
If the RS485 interface is used, the following character frame is valid:

Start bit Number of data bits Parity Stop bit

1 8 Even 1

The following baud rates can be set:

 9 600 bit/s

 19 200 bit/s (default setting)

 38 400 bit/s

 57 600 bit/s

 115 000 bit/s

Functions which can be used by the master are listed below. The structure and contents of the registers are shown in chapter "Scale parameters and functions (Page 67)".

Service Read Holding Registers Write Single Register Write Multiple Registers

Function code 03 06 16

Usage Read one or more 16-bit parameter registers Write a single parameter register Write multiple registers

If a request of the master is answered by the SIWAREX module (slave), the SIWAREX module sends a response frame with or without errors. In the case of a response without error message, the response frame contains the received function code; in the case of errors, the highest bit of the function code is set. This corresponds to the Modbus standard. Afterwards, the master requests the data record DR 32 to check which process-related data or operator errors exist.

152

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

10.4

Communication via Modbus 10.4 Data record concept
Data record concept
The register assignment is an image of the data records. The chapter  Scale parameters and functions (Page 67) describes the data records, variables and functions, including the register addresses. The data records are always checked as complete data packets for plausibility. For this reason, you must follow a specific procedure to change individual parameters.

10.5

Command mailboxes
Corresponding command codes must be sent in order to execute commands and to read and write data records in the Modbus buffer memories. These are described in more detail in chapter  Command lists (Page 133). The following tables list the Modbus registers used to process these commands:

Table 10- 1 Command mailbox 1: Highest priority

Variable CMD1_CODE CMD1_TRIGGER CMD1_STATUS CMD1_QUIT

Note Code of command to be executed Trigger for starting the command 0=job running; 1=job finished (1 cycle) 0=no error; <>0=error code

Type USHORT USHORT USHORT USHORT

Modbus registers 910 911 912 913

Table 10- 2 Command mailbox 2: Average priority

Variable CMD2_CODE CMD2_TRIGGER CMD2_STATUS CMD2_QUIT

Note Code of command to be executed Trigger for starting the command 0=job running; 1=job finished (1 cycle) 0=no error; <>0=error code

Type USHORT USHORT USHORT USHORT

Modbus registers 920 921 922 923

Table 10- 3 Command mailbox 3: Low priority

Variable CMD3_CODE CMD3_TRIGGER CMD3_STATUS CMD3_QUIT

Note Code of command to be executed Trigger for starting the command 0=job running; 1=job finished (1 cycle) 0=no error; <>0=error code

Type USHORT USHORT USHORT USHORT

Modbus registers 930 931 932 933

10.6

Reading registers
The method for reading registers depends on whether they belong to the writable data records (DR 3 to DR 29) or can only be read as current values (DR 30 to DR 34).

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

153

Communication via Modbus 10.7 Writing registers
If you wish to read the registers from the data records DR 3 to DR 29, you must first export these as a complete data record to the internal output buffer. All Modbus registers of the individual parameters can be found in chapter  Scale parameters and functions (Page 67).
Example A parameter is to be read from data record 3 (DR 3).  First, write register CMD3_CODE with 2003 (2000 plus the number of the data record =
read data record).  Then write "1" for CMD3_TRIGGER. DR3 is now updated in the Modbus buffer.  It is now possible to read one or more registers with the corresponding variable(s). The
data consistency of the registers read at this time is guaranteed. You can find all further command numbers in chapter  Command lists (Page 133).
Example A current measured value is to be read out from DR 30.  The register can be directly requested because its contents are automatically refreshed in the SIWAREX module at the specified measuring rate of 100 Hz and are always available up-to-date.

10.7
154

Writing registers
If you wish to write registers from the data records DR 3 to DR 29, you must first export the corresponding data record to the internal output buffer using an appropriate command. Individual registers can then be written. The complete data record must subsequently be written internally using an appropriate command. A plausibility check of the complete data record is carried out in the process.
Example A parameter from DR 3 is to be written.  First, write register CMD3_CODE with 2003 (2000 plus the number of the data record).  Then write "1" for CMD3_TRIGGER. DR 3 is now updated in the Modbus memory.  Now you can write or make changes in one or more registers with the corresponding
variable. If you want to transfer the written/changed register to the scale, you need to write the entire data record:  First, write register CMD3_CODE with 4003 (4000 plus the number of the data record = write data record).  Then write "1" for CMD3_TRIGGER.  The data record is then transferred to the process memory in the SIWAREX module. All registers of the data record are checked for plausibility in the process. If the plausibility check fails, the complete data record is not written and a message is output to the user (from the area of data/operator errors).
SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Communication via Modbus 10.7 Writing registers
You can find all further command numbers in chapter  Command lists (Page 133). A document for working with SIWAREX WP521/WP522 and Modbus is also available online Modbus communication of the WP521/WP522 (https://support.industry.siemens.com/cs/document/77913998/how-does-the-modbuscommunication-of-the-wp231-work?dti=0&lc=en-WW).

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

155

Communication via Modbus 10.7 Writing registers

156

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications

11

11.1

Technical specifications
A scale can be connected to the SIWAREX WP521. Two separate scales can be connected to the SIWAREX WP522. The weighing functionality is available 2x.
24 V power supply
Note The 24 V DC nominal power supply, all interfaces and all I/O circuits must be powered from sources with safety extra-low voltage that fulfill the requirements SELV, PELV according to IEC 61140 or NEC Class 2 meet.

Table 11- 1 Technical specifications: Power supply 24 V DC

Rated voltage
Static low / high limits
Dynamic low / high limits Non-periodic overvoltages
Maximum current consumption (without digital inputs/outputs, see table)
Module power loss typical (without digital inputs/outputs, see table)

24 V DC 19.2 / 28.8 V DC 18.5 / 30.2 V DC 35 V DC for 500 ms with a recovery time of 50 s WP521: 120 mA, WP522: 200 mA @ 24 V DC
WP521: 2.4 W, WP522: 3.9 W

Power supply from SIMATIC S7 backplane bus

Table 11- 2 Technical specifications: Power supply backplane

Current consumption from SIMATIC S7-1500 backplane bus

Typical 35 mA @15 V

Load cell interface analog (with WP522 1x per weighing channel)

Table 11- 3 Technical specifications: Load cell interface

Error limit according to DIN1319-1 at 20 °C +10 K1)

Measuring accuracy

Class

to OIML R76-1:2006/EN45501:2015 Resolution

(not certified)

Error percentage pi

Step voltage

 0.05 % v.E. III 3000d 0.4 0.5 µV/e

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

157

Technical specifications 11.1 Technical specifications

Accuracy delivery state2) Sampling rate Input signal resolution Measuring range Common mode voltage range strain gauge feed 3) Short-circuit and overload protection Connection Sensor voltage monitoring Min. DMS input resistance per channel
Max. DMS output resistance Temperature coefficient range Temperature coefficient zero point Linearity error Measured value filtering

without Ex-i interface SIWAREX IS
with Ex-i interface SIWAREX IS

Electrical isolation 50 Hz / 60 Hz noise suppression CMRR Input resistance
Cable length4)

Signal cable Sensor cable Special cable

typ. 0.1 % v.E. 100 Hz ± 4 000 000 ± 4 mV/V 0.25 V to +4.75 V 4.85 V DC ± 3 % Yes 6-wire  4.0 V 40 
50  @ type 7MH4710-5BA 100  @ type 7MH4710-5CA 4 100   ± 5 ppm/K v. E.  ± 0.015 V/K  0.005 % Low-pass and average value filter configurable (DR3) Typ. 500 V AC > 90 dB
typ. 20*106  typ. 100*106  max. 800 m

1) Relative accuracy! (Absolute accuracy can only be achieved with local calibration with calibration standards)
2) Accuracy for module exchange or theoretical calibration decisive 3) Value applies to the sensor; voltage drops on lines are compensated up to 5 volts 4) When using SIWAREX cable 7MH4702-8AG

Digital outputs DQ (for WP522 4x per weighing channel)
In case of fault or SIMATIC CPU stop, the configured value is always applied to the digital output.
A freewheeling diode is provided on the consumer for inductive loads at the digital output.

Table 11- 4 Technical specifications: Digital outputs

Number per weighing channel Supply voltage range Max. output current per output Max. total current for all outputs Update rate (FW)

4 (High Side Switch) 19.2 ... 28.8 V DC 0.5 A (ohmic load) 2.0 A 100

158

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications 11.1 Technical specifications

Switching delay
RDSON Short-circuit proof Electrical isolation Cable length (meters)

typ. 65 µs Turn-On @IL = 500 mA typ. 110 µs Turn-Off @IL = 100 mA < 0.2  Yes 500 V AC Max. 500 m shielded, 150 m unshielded

Digital inputs DI (for WP522 3x per weighing channel)

Table 11- 5 Technical specifications: Digital inputs

Number of inputs Rated voltage Supply voltage range Current consumption @ 24 V DC Surge voltage Signal level logic 1 (max) Signal level logic 0 (max) Sampling rate (FW) Configurable filtering (DS 7) 1) Electrical isolation Type in accordance with EN 61131-2: 2007

3 24 V DC max. DC 30 V 4 mA 35 V DC for 0.5 s 15 V DC, input current typ. 3 mA @24 V DC 5 V DC, input current  2.0 mA 10 ms 0 to 40 ms in intervals of 5ms 500 V AC Type 1 to 3

1) Signal changes shorter than the programmed time are recorded)

RS485 interface (for WP522 1x per weighing channel)

Table 11- 6 Technical specifications: RS-485
Standard Baud rate Data bits Parity Stop bits Terminating resistors (can be activated) Electrical isolation Transfer protocol
Cable length

EIA-485 up to 115 Kbps* 7 or 8 even | odd | none 1 or 2 390  / 220  / 390  500 V AC ASCII for remote display, Siebert company and Modbus RTU  115 Kbps max. 1 000 m (Fieldbus 2-core, shielded, e.g. 6XV1830-0EH10)

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

159

Technical specifications 11.1 Technical specifications

Ethernet (available only 1x)

Table 11- 7 Technical specifications: Ethernet

Standard Transmission speed Electrical isolation Transfer protocol Autonegotiation Auto MDI-X Cable lengths

IEEE 802.3

10/100 Mbps (automatic detection)

1 500 V AC

TCP/IP, Modbus TCP

Yes

Yes

Cable Cat 5e UTP (unshielded)

max. 50 m

Cable Cat 5e SF/UTP max. 100 m (shielded)

Dimensions and weight

Table 11- 8 Technical specifications: Dimensions and weight

Dimensions W x H x D (packaged) Dimensions W x H x D (unpackaged) Weight (packaged)

41 x 191 x 164 mm 35 x 147 x 129 mm WP 521ST: 0.37kg WP 522ST: 0.42 kg

Mechanical requirements and data

Table 11- 9 Rated conditions in accordance with IEC 60721

Mode Storage/transport

IEC 60721-3-3 Class 3M3, stationary use, weather-proofed
IEC 60721-3-2 Class 2M2 without precipitation

Technical specifications: Mechanical requirements and data

Testing Vibrational load during operation
Shock load during operation
Vibration load during transport

Standards

Test values

IEC 61131-2:2007 5 ... 8.4 Hz: 3.5 mm deflection

IEC 60068-2-6:2007 8.4 ... 150 Hz: 9.8 m/s2 (=1G)

Test Fc

IEC 61131-2:2007 150 m/s2 (approx. 15 g), half-sine

IEC 60068-2-27:2008 Duration: 11 ms

Test Ea

IEC 60068-2-6:2007 5 ... 8.4 Hz: 3.5 mm deflection

Test Fc

8.4 ...500 Hz: 9.8 m/s2

160

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications 11.2 Electrical, EMC and climatic requirements

Testing Shock load during transport
Free fall

Standards

Test values

IEC 60068-2-27:2008 250 m/s2 (25G), half sine

Test Ea

Duration: 6ms

IEC 61131-2:2007

In product packaging: 300 mm drop height

IEC 60068-2-31:2008 In shipping package: Test Ec, procedure 1 1.0 m drop height

11.2

Electrical, EMC and climatic requirements
Electrical protection and safety requirements

Fulfilled requirement Safety regulations Protection class
IP degree of protection
Air gaps and creepage distances

Standards IEC 61010-1:2010 +C1:2011 + C2:2013 IEC 61010-2-201:2014 IEC 61131-2:2007 UL 508:2003 CSA C22.2 No.142:1990 IEC 61140:2001 + A1:2004 IEC 61131-2:2007
IP 20 according to IEC 60529 1991 +A1:2000
IEC 60664:2007 IEC 61131-2:2007 IEC 61010-1:2010 UL 508:2003 CSA C22.2 No. 142:1990

Comments
To maintain the safety characteristics of extra-low voltage circuits, external connections to communications ports, analog circuits, as well as all 24 V DC nominal power supplies and all I/O circuits must be powered by approved sources that fulfill the requirements according to the various standards for SELV, PELV, NEC Class 2, voltage limited or power limited. The ground connection for the DIN rail serves as a functional ground for dissipating interference currents. IP20: · Protection against contact with
standard probe · Protection against solid bodies with
diameters in excess of 12.5mm · No special protection against water Overvoltage category II Pollution degree 2

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

161

Technical specifications 11.2 Electrical, EMC and climatic requirements

Fulfilled requirement Isolation stability
Use in hazardous areas
Electromagnetic compatibility

Standards IEC 61131-2:2007 CSA C22.2, No. 142:1990 UL508:2003
IEC 60079-0:2009 IEC 60079-15:2010
IEC 61000-6-2:2004 IEC 61000-6-4:2007+ A1:2011

Comments
Ethernet port:
1 500 V AC (shield and signals)
Other electrical circuits:
Test voltage: 500 V AC or 707 V DC
When installing the modules in hazardous areas, the special operating conditions must be taken into consideration in accordance with SIWAREX Product Information ­ "Use of SIWAREX Modules in a Zone 2 Hazardous Area" A5E02192786A.
All shielded cables must be grounded at both ends to comply with the requirements for electromagnetic compatibility.
If the shielded cable is routed out of the hazardous area for explosion-proof equipment, both ends of the cable shield must be connected to the potential equalization.
To comply with the requirements for lightning strikes, additional measures are required (see footnotes Table 12-11) for installation in Zone A according to IEC 61131-2: 2007.

162

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications 11.2 Electrical, EMC and climatic requirements

Electromagnetic compatibility

Table 11- 10 Requirements: Emitted interference in industrial environment according to EN 61000-6-4

Comments Emission of radio interferences (electromagnetic fields)
Emission on 24 V power supply lines
Emission on wired Ethernet

Standard Class A industrial environment: · IEC/CISPR 16-2-3: 2006 · EN55016-2-3:2006
Class A: Industrial environment: · IEC/CISPR 16-2-1: 2009 · EN 55016-2-1: 2004
EN 61000-6-4:2007+A1:2011 IEC/CISPR 22: 2008 EN55022: 2010

Limits
· 30 ­ 230MHz, 40dB(mV/m) Q
· 230 ­ 1000MHz, 47dB(mV/m) Q
· 1 GHz to 3 GHz / 76 dB(mV/m) peak, 56 dB(mV/m) average
· 3 GHz to 6 GHz / 80 dB(mV/m)
Class A: Industrial environment
· 0.15 ... 0.5 MHz, 79 dB (V) Q
· 0.15 ... 0.5 MHz, 66 dB (V) M
· 0.5 ... 30 MHz, 73 dB (V) Q · 0.5 ... 30 MHz, 60 dB (V) M
0.15 ... 0.5 MHz:
· 53 dB (A) ... 43 dB (A) Q · 40 dB (A) ­ 30 dB (A) M 0.5 ... 30 MHz:
· 43 dB (A) Q / 30 dB (A) M

Table 11- 11 Requirements: Interference immunity in industrial environment according to EN 61000-6-2

Comments Burst pulses on power supply cables Burst pulses on data and signal cables
Electrostatic discharge (ESD)
Electrostatic air discharge (ESD)

Standard
EN 61000-4-4:2004 EN 45501:2015 OIML R 76:2006 NAMUR NE21:2011 EN 61326-1:2006 EN 61131-2:2007
EN 61000-4-2:2009 EN 45501:2015 OIML R 76:2006 NAMUR NE21:2011 EN 61326-1:2006 EN 61131-2:2007

Severity level ±2.4 kV 5/50ns/5kHz ±2.4 kV 5/50ns / 100kHz ±2.4 kV 5/50ns/5kHz ±2.4 kV 5/50ns / 100kHz
2, 4, 6 kV direct/indirect
2, 4, 6, 8 kV

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

163

Technical specifications 11.2 Electrical, EMC and climatic requirements

Comments Surge on power supply cables

Standard
IEC 61131-2 :2007 NAMUR NE21 :2011 EN 61326-1 :2006 OIML R76 -2:2006 EN 61000-4-5 :2006 EN 45501:2015

Severity level ZONE A acc. to IEC 61131-22): ±1.0 kV line to line ±2.0 kV line to earth
ZONE B to IEC 61131-2: ±0.5 kV line to line ±1.0 kV line to earth

Surge on data and signal cables

ZONE A acc. to IEC 61131-23): ±1.0 kV line to line
±2.0 kV line to earth

Electromagnetic RF fields Induced conducted interference

IEC 61131-2 :2007 NAMUR NE21 :2011 EN 61326-1 :2006 OIML R76-2 :2006 EN 61000-4-3:2006 +A1:2008+A2:2010 EN 45501:2015
IEC 61131-2 :2007 NAMUR NE21 :2011 EN 61326-1 :2006 OIML R76-2 :2006 EN 61000-4-6 :2009

ZONE B to IEC 61131-2: ±1.0 kV line to earth 80MHz ­ 2.7 GHz: 20V/m
10 kHz ­ 80MHz: 12Veff

1) Not applicable for shielded cables and symmetrical ports
2) An external fuse must be provided to comply with the requirement (e.g. Lightning conductor BVTAD24, Dehn & Söhne company)
3) An external fuse must be provided to comply with the requirement (e.g. Lightning conductor BSPM4BE24, Dehn & Söhne company)

NOTICE
Radio interference is possible
This is a device of class A. The device may cause radio interference in residential areas. Implement appropriate measures (e.g.: use in 8MC cabinets) to prevent radio interference.

164

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications 11.2 Electrical, EMC and climatic requirements

Ambient conditions
The SIWAREX WP521/WP522 is designed for use under the following conditions in SIMATIC S7-1500. Also observe the operating conditions of the S7-1500 system.

Table 11- 12 Operating conditions to IEC 60721

Mode Storage/transport

IEC 60721-3-3 Class 3K3, stationary use, weather-proofed
IEC 60721-3-2 Class 2K4 without precipitation

Table 11- 13 Climatic requirements

Comments Operating temperature:
Storage and transport temperature Relative humidity

Ambient conditions Vertical installation in 0 to +40 °C S7-1500 Horizontal installation 0 to +60 °C in S7-1500
-40 to +70 °C
5 to 95 %

Pollutant concentration

Atmospheric pressure

Operation

SO2: < 0.5 ppm H2S: < 0.1 ppm; IEC 60068-2-13

For transport and storage

IEC 60068-2-13

Application areas
No condensation; corresponds to relative humidity (RH) stress level 2 to DIN IEC 61131-2 RH < 60 % no condensation 1080 to 795 hPa (operation) (-1 000 to + 2 000 m above sea level) 1 080 to 660 hPa (storage) (-1 000 to +3 500 m above sea level)

Reliability Mean Time Between Failure (MTBF) The MTBF calculation results in the following values for the modules:

Table 11- 14 MTBF
Electronic Weighing System SIWAREX WP521 SIWAREX WP522

MTBF in years 50 years @TA = 40°C 33 years @TA = 40°C

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

165

Technical specifications 11.3 Approvals

11.3

Approvals

NOTICE
Safety guidelines for applications in hazardous areas
For applications in hazardous areas, the safety instructions in the document "Product Information - Use of SIWAREX Modules in a Zone 2 Hazardous Area (https://support.industry.siemens.com/cs/?lc=en-DE)" are to be observed.

Note The latest valid approvals for SIWAREX WP521/WP522 can be found on the rating plate of the module.
CE mark (https://support.industry.siemens.com/cs/document/65692972/decl aration-of-conformity-ec-eu-declaration-of-conformitymanufacturer?dti=0&lc=en-WW) cULus approval (https://support.industry.siemens.com/cs/document/74442065/gen eral-product-approval-ul-ul?dti=0&lc=en-WW) - pending
FM approval for Zone 2 - pending

ATEX approval (https://support.industry.siemens.com/cs/document/81803667/foruse-in-hazardous-locations-manufacturer-declartionmanufacturer?dti=0&lc=en-WW) - pending For Category 3 Equipment according to EU Directive 2014/34/EU (ATEX) IECEx approval - pending For category 3 equipment
KC mark For use in S. Korea

166

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Technical specifications 11.3 Approvals
RCM mark For use in Australia and New Zealand
EAC mark pending For use in the Eurasian Customs Union The modules are RoHS-compliant according to EU Directive 2016/65/EU.

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

167

Accessories

12

12.1

Configuration package

Ordering data Description Configuration Package SIWAREX WP521/WP522 · SIWATOOL program for adjustment of scales during commissioning · Software "Ready for use"
This contains the SIMATIC S7 blocks for operation with SIMATIC S71500 and a project for SIMATIC Operator Panel KTP600 · Product manuals in several languages Product Manual SIWAREX WP521/WP522 in various languages
SIWAREX WP521/WP522 "Ready for Use"
Front connector 35 mm with screw-type system
Front connector 35 mm with push-in system
Ethernet patch cable CAT5 For connecting the SIWAREX with a PC (SIWATOOL), a SIMATIC CPU, a panel, etc. Digital remote display The digital remote displays can be connected directly to the SIWAREX WP521/WP522 via the RS485 interface. Suitable remote display: S102 Siebert Industrieelektronik GmbH Postfach 1180 D-66565 Eppelborn, Germany Tel.: 06806/980-0 Fax: 06806/980-999 Internet: www.siebert.de (www.siebert.de) Detailed information can be obtained from the manufacturer. SIWAREX JB junction box for parallel connection of load cells

Order number 7MH4980-1AK01
Free download from the Internet WP521/WP522 Manuals (https://support.indust ry.siemens.com) Free download from the Internet "Ready for Use" (https://support.indust ry.siemens.com) 6ES7592-1AM000XB0 6ES7592-1BM000XB0
7MH4 710-1BA

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

169

Accessories 12.1 Configuration package

Ordering data

Description SIWAREX EB extension box For extending load cell cables Ex interface, type SIWAREX IS With ATEX approval for intrinsically-safe connection of load cells, including manual, suitable for the load cell groups SIWAREX CS, U, M, FTA, and P
· With short-circuit current < 199 mA DC

Order number 7MH4 710-2AA
7MH4 710-5BA

· With short-circuit current < 137 mA DC

7MH4 710-5CA

Cable (optional) Cable Li2Y 1 x 2 x 0.75 ST + 2 x (2 x 0.34 ST) - CY

7MH4 702-8AG

· To connect SIWAREX CS, U, M, P, A, WP521/WP522 to the junction box (JB), extension box (EB) or Ex interface (Ex-I) or between two JBs, for fixed laying

· Occasional bending is possible · 10.8 mm outer diameter

· For ambient temperature -20 ... +70 °C

Cable Li2Y 1 x 2 x 0.75 ST + 2 x (2 x 0.34 ST) - CY, blue sheath

7MH4 702-8AF

· To connect junction box (JB) or extension box (EB) in hazardous area and Ex interface (Ex-I), for fixed laying

· Occasional bending is possible, blue PVC insulating sheath, approx. 10.8 mm outer diameter

· For ambient temperature -20 ... +70 °C

170

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Appendix

A

A.1

Technical support

Technical Support
You can contact Technical Support for weighing technology:
 E-mail (mailto:support.automation@siemens.com)
 Tel.: +49 (721) 595-2811
You can contact Technical Support for all IA and DT products:
 Via the Internet with the Support Request: Documentation (https://support.industry.siemens.com/cs/products?dtp=Manual&pnid=17781&lc=en-WW)
 Tel.: +49 (911) 895-7222
 Fax: +49 (911) 895-7223
You can find additional information about our technical support on the Internet at Technical support (https://support.industry.siemens.com/cs/start?lc=en-WW)

Service & Support on the Internet
In addition to our documentation, we offer a comprehensive knowledge base online on the Internet at:
Support request (https://support.industry.siemens.com/My/ww/en/requests)
There you will find:
 The latest product information, FAQs, downloads, tips and tricks.
 Our newsletter, providing you with the latest information about your products.
 A Knowledge Manager to find the right documents for you.
 Our bulletin board, where users and specialists share their knowledge worldwide.
 You can find your local contact partner for Industry Automation and Drives Technologies in our partner database.
 Information about on-site service, repairs, spare parts and much more is available under "Services".

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

171

Appendix A.2 ESD Guidelines
Additional Support
Please contact your local Siemens representative and offices if you have any questions about the products described in this manual and do not find the right answers. Find your contact partner at: Partner (http://www.automation.siemens.com/aspa_app/?ci=yes&lang=en) A signpost to the documentation of the various products and systems is available at: Industry Online Support (https://support.industry.siemens.com/cs/?lc=en-DE)

A.2

ESD Guidelines

Definition of ESD
All electronic modules are equipped with large-scale integrated ICs or components. Due to their design, these electronic elements are highly sensitive to overvoltage, and thus to any electrostatic discharge.
The electrostatic sensitive components/modules are commonly referred to as ESD devices. This is also the international abbreviation for such devices.
ESD modules are identified by the following symbol:

NOTICE Overvoltage on modules ESD devices can be destroyed by voltages well below the threshold of human perception. These static voltages develop when you touch a component or electrical connection of a device without having drained the static charges present on your body. The electrostatic discharge current may lead to latent failure of a module, that is, this damage may not be significant immediately, but in operation may cause malfunction.
Electrostatic charging
Anyone who is not connected to the electrical potential of their surroundings can be electrostatically charged. The figure below shows the maximum electrostatic voltage which may build up on a person coming into contact with the materials indicated. These values correspond to IEC 801-2 specifications.

172

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Appendix A.3 List of abbreviations

Image A-1 Electrostatic voltages which an operator can be subjected to
Basic protective measures against electrostatic discharge:
 Ensure good equipotential bonding: When handling electrostatic sensitive devices, ensure that your body, the workplace and packaging are grounded. This prevents electrostatic charge.
 Avoid direct contact: As a general rule, only touch electrostatic sensitive devices when this is unavoidable (e.g. during maintenance work). Handle the modules without touching any chip pins or PCB traces. In this way, the discharged energy can not affect the sensitive devices.
Discharge your body before you start taking any measurements on a module. Do so by touching grounded metallic parts. Always use grounded measuring instruments.

A.3

List of abbreviations

ASCII B CPU DB FB HMI HSP HW

American Standard Code for Information Interchange Gross weight Central processor, in this case SIMATIC CPU Data block SIMATIC S7 function block Human machine interface (e.g. SIMATIC Operator Panel) Hardware Support Package Hardware

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

173

Appendix A.3 List of abbreviations
IM N NAWI NAW OIML OP PC pT RAM PLC STEP 7 T TM TP UDT WRP LC NR

Interface module Net weight Non-automatic weighing instrument Non-automatic scales Organisation Internationale de Metrologie Legale Operator Panel (SIMATIC) Personal computer Preset tare (predefined tare weight with manual taring) Random Access Memory (read/write memory) Programmable logic controller Programming device software for SIMATIC S7 Tare weight Technology module Touch Panel (SIMATIC) Universal Data Type (S7) Write protection Load cell(s) Numerical range

174

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

Index
A
Abbreviations, 173 Additional Support, 172 Alarm buffer, 123 Automatic calibration, 58 Average characteristic value, 44
B
Backup file, 63
C
Calibration methods, 53 Calibration with calibration weight, 54 Climatic requirements, 165 Command groups, 135 Communication with SIMATIC S7-1500, 137 Configuration package, 169 Connections, 18 Customer Support Hotline, 171
D
Data and operating messages, 125 Data records, 67 Data security, 143 Date, 90 Default values, 67 Delay time, 104 Diagnostic messages, 141 DIP switch, 36
E
Electromagnetic compatibility, 163 Error code, 125 Error messages, 130 ESD guidelines, 172
F
Filter sequence, 73

Firmware update, 64
G
Guidelines ESD guidelines, 172
H
Hardware interrupt, 142 Hotline, 171
I
Immunity, 163 Internet, 171
L
LEDs, 130 Limit base, 84
M
Messages, 123 Modbus, 151 Module replacement, 63 MTBF, 165
O
OB82, 123 Operating messages, 124 Overview of the functions, 17
R
Rated load, 44 Ready for Use, 169 Reliability, 165
S
S7-1500 CPU, 105

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

175

Index
Safety requirements, 161 Service, 171 SIWATOOL, 46, 52 Specification of basic values, 40 Status messages, 130 Support, 171
T
Technical specifications, 157 Technology messages, 125 Time, 90
W
Weight unit, 71

176

SIWAREX WP521/WP522 Manual, 04/2016, A5E36695225A

 CM PtP RS422/485 BA communication _Pr_ef_ac_e_______________

module (6ES75401AB000AA0)

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP CM PtP RS422/485 BA communication module (6ES75401AB000AA0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Pr_og_ra_m_m_in_g___________5_ _Er_ro_r a_n_d_sy_st_em__m_es_sa_g_es____6_

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______7_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

01/2013
A5E03777484-01

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03777484-01  12/2012 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This device manual complements the system manual S7 1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792). General functions of the S7-1500 are described in the S7-1500 Automation System System Manual.

Conventions

This documentation contains figures of the described device. The figures may differ slightly from the devices supplied. Please also observe notes marked as follows:
Note A note contain important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

4

Manual, 01/2013, A5E03777484-01

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Accessories..................................................................................................................................11

2.3

Functions......................................................................................................................................12

2.4

Properties of the RS422/485 interface.........................................................................................14

3 Connecting .............................................................................................................................................. 15

3.1

RS422/485 (X27) interface of the communication module ..........................................................15

3.2

Installation guidelines...................................................................................................................16

4 Parameters/address space ...................................................................................................................... 17

4.1

Parameter assignment.................................................................................................................17

4.2

Reaction to CPU STOP ...............................................................................................................17

4.3

Address space .............................................................................................................................18

5 Programming ........................................................................................................................................... 19

6 Error and system messages .................................................................................................................... 21

7 Technical specifications........................................................................................................................... 23

A Dimensional drawing ............................................................................................................................... 27

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

5

Table of contents

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

6

Manual, 01/2013, A5E03777484-01

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the S7-1500 and ET 200MP automation systems consists of system manuals, function manuals and manuals.
The STEP 7 information system (Online Help) also helps you configure and program your automation system.

Overview of the documentation provided for the CM PtP RS422/485 BA communication module
The following table lists additional references that you will need when using the CM PtP RS422/485 BA communication module.

Table 1- 1 Documentation for the CM PtP RS422/485 BA communication module

Topic System description

Documentation

Key content

System manual S7 -1500 Automation System · Application planning

(http://support.automation.siemens.com/WW/vi ew/en/59191792)

·

Installation

System manual ET 200MP distributed I/O

· Connecting

system

· Addressing

(http://support.automation.siemens.com/WW/vi · Commissioning

ew/en/59193214)

System manual ET 200SP distributed I/O

· Maintenance

system

(http://support.automation.siemens.com/WW/vi

ew/en/58649293)

Power supply manuals

· Connecting

(http://support.automation.siemens.com/WW/vi ew/en/59173914)

·

Interrupt, error and

system messages

CPU manuals

(http://support.automation.siemens.com/WW/vi · Technical specifications

ew/en/56926947)

· Dimensional drawing

Function manual EMC/EMI compatible

· Basics

installation of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

7

Documentation guide

Topic
Point-to-point communication

Documentation
Function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/vi ew/en/59057093)

Key content
· Basic information · Data transmission
functions · Diagnostics functions

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge on the Internet (http://www.siemens.com/automation/service&support).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

8

Manual, 01/2013, A5E03777484-01

Product overview

2.1

Properties

Order number 6ES7540-1AB00-0AA0

View of the module

2

Figure 2-1 CM PtP RS422/485 BA view

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

9

Product overview 2.1 Properties

Properties

The communication module has the following properties:  Technical properties
­ RS422/485 interface ­ short-circuit proof ­ electrically disconnected ­ Protocols: 3964(R), Freeport and USS with instructions  Supported system functions ­ Firmware update ­ Identification data I&M0 ­ Parameter re-assignment in CPU RUN mode (using instructions) ­ Diagnostic interrupts

Additional information
Additional information on the properties of the CM PtP RS422/485 BA can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).
Additional information on the properties of the S7-1500 and associated modules can be found in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

10

Manual, 01/2013, A5E03777484-01

Product overview 2.2 Accessories

2.2

Accessories

Scope of delivery
The scope of delivery of the communication module includes a U connector for connection to the backplane bus.

Connecting cables
Connecting cables are available in the standard lengths: 5 m, 10 m and 50 m (each with a 15-pin sub D connector).

Table 2- 1 Order numbers of connecting cables

Connecting cables for CM PtP RS422/485 BA CM PtP RS422/485 HF X27 interface (RS422/485)

Type
X27 (RS 422), 5 m X27 (RS 422), 10 m X27 (RS 422), 50 m

Order number
6ES7902­3AB00­0AA0 6ES7902­3AC00­0AA0 6ES7902­3AG00­0AA0

Online catalog

Additional order numbers for S7-1500 can be found on the Internet (http://www.siemens.com/industrymall) in the online catalog and online ordering system.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

11

Product overview 2.3 Functions

2.3

Functions

Introduction

The communication module allows you to exchange data between your own and other programmable controllers or computers by means of a point-to-point connection, and to connect various devices from a variety of manufacturers.

Functionality of the CM PtP RS422/485 BA The CM PtP RS422/485 BA communication module offers the following functionality:  RS422/485 interface  Data transmission rate: 300 to 19200 bps  Maximum frame length: 1 kbyte  Transmission protocols: Freeport and 3964(R)
Note The USS protocol can be implemented with instructions included in STEP 7 (TIA Portal).

Hardware components of a point-to-point connection
You require certain hardware components for a point-to-point connection with the CM PtP RS422/485 BA.

Components Central processor unit (CPU) Accessories: Memory card CM PtP RS422/485 BA communication module
Connecting cable

Function ... executes the user program.
... communicates with a communication partner (point-to-point) by means of the interface. ... connects the CM PtP RS422/485 BA communication module with the communication partner.

U connector Optional: Power supply module (PS)

... provides the mechanical and electrical connection between the modules.
... converts the line voltage (120/230 VAC or 24 VDC) into the operating voltage of 15 VDC required for supply of the S7-1500.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

12

Manual, 01/2013, A5E03777484-01

Product overview 2.3 Functions

System environment The communication module can be used in the following system environments:

Applications Central operation in an S7-1500 system
Distributed operation in an S7-1500 system
Distributed operation in an S7-300/400 system
Distributed operation in a third-party system

Components required · CPU 151x · CM PtP RS422/485 BA · Power supply (optional)

Configuration STEP 7 (TIA Portal)

· CPU 151x

STEP 7 (TIA Portal)

· IM 155-5 · CM PtP RS422/485 BA · Power supply (optional)

· CPU 31x / CPU 41x · IM 155-5 · CM PtP RS422/485 BA

STEP 7 (TIA Portal) STEP 7 with integration of a GSD file

· Third-party programmable controller GSD file imported to/installed in the

· IM 155-5

engineering system 1)

· CM PtP RS422/485 BA

1) Information on using the communication module in a third-party system is available in the programming and operating manual CM PtP operation with PROFINET controller (http://support.automation.siemens.com/WW/view/en/59062563).

Additional information
Information on configuring and programming the CM PtP RS422/485 BA communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

13

Product overview 2.4 Properties of the RS422/485 interface

2.4

Properties of the RS422/485 interface

Definition Properties

The RS422/485 (X27) interface is a differential voltage interface for serial data transmission.

The RS422/485 (X27) interface has the following properties and meets the following requirements:

Type Front connector: RS422 signals: RS485 signals:
Max. data transmission rate: Max. cable length:
Standard:

Differential voltage interface 15-pin sub-D female connector, with screw lock T (A), R (A), T (B), R (B), GND; isolated R/T (A), R/T (B), GND; all signals isolated against backplane bus and load voltage 19.2 kbps
1200 m; cable type LIYCY 3 x 2 x 0.14. T(A)/T(B) and R(A)/R(B) twisted in pairs DIN 66259 Parts 1 and 3, EIA-RS422/485, CCITT V.11

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

14

Manual, 01/2013, A5E03777484-01

Connecting

3

3.1

RS422/485 (X27) interface of the communication module

Terminal assignment
The table below shows the terminal assignment for the 15-pin sub D female connector in the front panel of the communication module.

Table 3- 1 Terminal assignment for the 15-pin sub D female connector of the integrated interface of the communication module

RS422/485* female connector

Pin Designation
1 2 T (A) 3 4 R (A)/T (A) -

5 -

      

6
7 8  9  10
 11


GND T (B) + R (B)/T (B) +

12 13 14 15 -

Input/output
Output Input Input/output Output Input Input/output -

Meaning
Send data (four-wire mode) Receive data (four-wire mode) Receive/send data (two-wire mode) Functional ground (isolated) Send data (four-wire mode) Receive data (four-wire mode) Receive/send data (two-wire mode) -

* View from the front

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

15

Connecting 3.2 Installation guidelines
Connecting cables Standard connecting cables of various lengths (see chapter Accessories (Page 11)) are available for connection with a communication partner which also has a 15-pin sub-D female connector. Please note that you must only use shielded connector casings and cables. A large surface area of the cable shield must be in contact with the connector casing on both sides.
CAUTION Cable shield - GND Never connect the cable shield to the GND, as this could destroy the modules. GND (pin 8) must always be connected on both sides, as this could otherwise also destroy the modules.

3.2

Installation guidelines

To take into consideration
The general installation guidelines must be taken into consideration (see function manual EMC/EMI compatible installation of control systems (http://support.automation.siemens.com/WW/view/en/59193566)).
The cable shield must be installed on a grounding rail to maintain the EMC values (electromagnetic compatibility).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

16

Manual, 01/2013, A5E03777484-01

Parameters/address space

4

4.1

Parameter assignment

Introduction

You configure and assign the parameters of the communication module with STEP 7 (TIA Portal V12 or later) or with STEP 7 with integration of a GSD file.

Additional information The device manual of the communication module is supplemented by the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and the TIA Portal information system. There you will find information on the following topics:  Operating modes  Receive buffer  Data flow control  Transmission integrity  Data transmission - protocol specific  Programming/configuring in STEP 7 (TIA Portal)  Module-specific instructions  Diagnostics

4.2

Reaction to CPU STOP

Ongoing transmissions are aborted when the higher-level control (CPU) goes to STOP.

Frames in the receive buffer are retained. With a corresponding configuration in the properties dialog of the communication module, you can automatically clear the receive buffer on the communication module during CPU startup.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

17

Parameters/address space 4.3 Address space

4.3

Address space

Address space of the communication module
The input addresses of the communications module total 8 bytes. The input addresses are automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal). Output addresses are not required.
Hardware identification (not freely configurable)
The hardware identification (HW ID) is automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal).
The hardware ID is issued along with the diagnostic messages to localize the module. In addition, the HW identification is required for S7-1500 at the communication instructions in order to identify the communication module. For S7-300/400, the communication module is identified by the start address of the input data.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

18

Manual, 01/2013, A5E03777484-01

Programming

5

Overview of the instructions
Communication between the CPU, the communication module and a communication partner takes place by means of special instructions and protocols that support the corresponding communication modules. The instructions process the exchange of data between the CPU and the communication module. They must be called cyclically from the user program. Data transmission takes place asynchronously across several cycles.
The transmission protocols are implemented on the communication module. The protocol is used to adapt the interface of the communication module to the interface of the communication partner.

Instruction Port_Config
Send_Config
Receive_Config
P3964_Config
Send_P2P Receive_P2P
Receive_Reset
Get_Features
Set_Features
USS_Port_Scan USS_Drive_Control USS_Read_Param
USS_Write_Param

Meaning
You use the Port_Config instruction to dynamically assign basic interface parameters.
You use the Send_Config (send configuration) instruction to dynamically assign serial send parameters of a protocol.
You use the Receive_Config (receive configuration) instruction to dynamically assign serial receive parameters of a protocol.
You use the P3964_Config (protocol configuration) instruction to dynamically assign the parameters of the 3964(R) procedure.
You use the Send_P2P instruction to send data to a communication partner.
You use the Receive_P2P instruction to receive data from a communication partner.
You use the Receive_Reset instruction to delete the receive buffer of the communication module.
You use the Get_Features instruction to read expanded functions supported by the communication module.
You use the Set_Features instruction to set expanded functions supported by the communication module.
You use the USS_Port_Scan instruction to communicate using the USS.
You use the USS_Drive_Control instruction to exchange data with a drive.
You use the USS_Read_Param instruction to read parameters from the drive.
You use the USS_Write_Param instruction to change parameters in the drive.

The instructions are part of STEP 7 (TIA Portal). The instructions are available in the "Instructions" task card under Communication > Communication processor.

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

19

Programming
Additional information Additional information on programming the communication modules can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

20

Manual, 01/2013, A5E03777484-01

Error and system messages

6

LED displays of the communication module
The figure below shows the LED displays of the CM PtP RS422/485 BA communication module with open front panel.



 

 LED display RUN  LED display ERROR  LED display MAINT  LED display TXD  LED display RXD
Figure 6-1 CM PtP RS422/485 BA view

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

21

Error and system messages

Meaning of the LED displays for RUN/ERROR/(MAINT)

RUN Off Flashes On On

LED

Meaning

Solution

ERROR Off Off Off
Flashes

MAINT Off Off Off Off

Supply voltage not present or too low at Check the power supply of the station. communication module
CM in startup, parameters not assigned --yet
CM configured and ready for operation ---
Group error (at least one error pending) Evaluate the diagnostics data and eliminate the error. 1)

1) Information on startup and diagnostics of the communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

Meaning of LED displays for TXD/RXD (under the front panel)

LED

TXD

RXD

Flashes

Off

Off

Flashes

Meaning Interface is transmitting Interface is receiving

Solution -----

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

22

Manual, 01/2013, A5E03777484-01

Technical specifications

7

Product type designation General information · I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version PROFIBUS as of GSD version/GSD revision PROFINET as of GSD version/GSD revision Installation type/mounting · Rail mounting possible
Supply voltage Voltage type of supply voltage Input current · Current consumption (rated value)
Power · Power from the backplane bus
Power loss · Power loss, typ.
Address area Occupied address area · Inputs
Interfaces 1. Interface Interface hardware · RS 422
· RS 485

6ES7540-1AB00-0AA0 CM PtP RS422/485 BA Yes; I&M 0 V12.0 / V12.0 V5.5 SP2 or higher with a GSD file - / V2.3 Yes; S7-1500 mounting rail System power supply 33 mA; from backplane bus 0.65 W 0.6 W
8 bytes
Yes Yes

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

23

Technical specifications

Interface hardware RS 485 · Transmission rate, max. · Max. cable length RS 422 · Transmission rate, max. · Max. cable length · 4-wire full duplex connection · 4-wire multipoint connection Protocols Integrated protocols Freeport · Frame length, max. · Bits per character · Number of stop bits · Parity 3964 (R) · Frame length, max. · Bits per character · Number of stop bits · Parity Frame buffer · Buffer memory for frames · Number of frames which can be buffered Interrupts/diagnostics/status information Interrupts · Diagnostic interrupt · Hardware interrupt Diagnostic messages Diagnostics · Wire break Diagnostics display LED · RUN LED · ERROR LED · Receive RxD · Send TxD

6ES7540-1AB00-0AA0
19.2 kbps 1200 m
19.2 kbps 1200 m Yes No
1 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
1 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
2 kbyte 255
Yes No
Yes Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; yellow LED

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

24

Manual, 01/2013, A5E03777484-01

Technical specifications

Electrical isolation · between backplane bus and interface Insulation Insulation tested with Ambient conditions Operating temperature · Horizontal installation, min. · Horizontal installation, max. · Vertical installation, min. · Vertical installation, max. Distributed operation · At SIMATIC S7-300 · At SIMATIC S7-400 · At SIMATIC S7-1500 · At Standard Profinet Controller · Supports Fast Startup Dimensions · Width · Height · Depth Weights · Weight, approx.

6ES7540-1AB00-0AA0 Yes
707 V DC
0 °C 60 °C 0 °C 40 °C
Yes Yes Yes Yes Yes
35 mm 147 mm 127 mm
0.22 kg

Additional general technical specifications for SIMATIC S7-1500 are available in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

25

Technical specifications

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

26

Manual, 01/2013, A5E03777484-01

Dimensional drawing

A

This appendix contains the dimensional drawing of the communication module installed on a mounting rail and with a shield bracket. Always observe the specified dimensions for installation in cabinets, control rooms, etc.


   


  Figure A-1 Dimensional drawing of the CM PtP RS422/485 BA communication module

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

Manual, 01/2013, A5E03777484-01

27

Dimensional drawing

Figure A-2

 
Dimensional drawing of the CM PtP RS422/485 BA communication module with open front panel

CM PtP RS422/485 BA communication module (6ES75401AB000AA0)

28

Manual, 01/2013, A5E03777484-01

 CM PtP RS422/485 HF communication _Pr_ef_ac_e_______________

module (6ES75411AB000AB0)

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP CM PtP RS422/485 HF communication module (6ES75411AB000AB0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Pr_og_ra_m_m_in_g___________5_ _Er_ro_r a_n_d_sy_st_em__m_es_sa_g_es____6_

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______7_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

01/2013
A5E03790709-01

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03790709-01  11/2012 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This device manual complements the system manual S7 1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792). General functions of the S7-1500 are described in the S7-1500 Automation System System Manual.

Conventions

This documentation contains figures of the described device. The figures may differ slightly from the devices supplied. Please also observe notes marked as follows:
Note A note contain important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

4

Manual, 01/2013, A5E03790709-01

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Accessories..................................................................................................................................11

2.3

Functions......................................................................................................................................12

2.4

Properties of the RS422/485 interface.........................................................................................14

3 Connecting .............................................................................................................................................. 15

3.1

RS422/485 (X27) interface of the communication module ..........................................................15

3.2

Installation guidelines...................................................................................................................16

4 Parameters/address space ...................................................................................................................... 17

4.1

Parameter assignment.................................................................................................................17

4.2

Reaction to CPU STOP ...............................................................................................................17

4.3

Address space .............................................................................................................................18

5 Programming ........................................................................................................................................... 19

6 Error and system messages .................................................................................................................... 21

7 Technical specifications........................................................................................................................... 23

7.1

Technical specifications ...............................................................................................................23

A Dimensional drawing ............................................................................................................................... 27

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

5

Table of contents

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

6

Manual, 01/2013, A5E03790709-01

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the S7-1500 and ET 200MP automation systems consists of system manuals, function manuals and manuals.
The STEP 7 information system (Online Help) also helps you configure and program your automation system.

Overview of the documentation provided for the CM PtP RS422/485 HF communication module
The following table lists additional references that you will need when using the CM PtP RS422/485 HF communication module.

Table 1- 1 Documentation for the CM PtP RS422/485 HF communication module

Topic System description

Documentation

Key content

System manual S7 -1500 Automation System · Application planning

(http://support.automation.siemens.com/WW/vi ew/en/59191792)

·

Installation

System manual ET 200MP distributed I/O

· Connecting

system

· Addressing

(http://support.automation.siemens.com/WW/vi · Commissioning

ew/en/59193214)

System manual ET 200SP distributed I/O

· Maintenance

system

(http://support.automation.siemens.com/WW/vi

ew/en/58649293)

Power supply manuals

· Connecting

(http://support.automation.siemens.com/WW/vi ew/en/59173914)

·

Interrupt, error and

system messages

CPU manuals

(http://support.automation.siemens.com/WW/vi · Technical specifications

ew/en/56926947)

· Dimensional drawing

Function manual EMC/EMI compatible

· Basics

installation of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

7

Documentation guide

Topic
Point-to-point communication

Documentation
Function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/vi ew/en/59057093)

Key content
· Basic information · Data transmission
functions · Diagnostics functions

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge on the Internet (http://www.siemens.com/automation/service&support).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

8

Manual, 01/2013, A5E03790709-01

Product overview

2.1

Properties

Order number 6ES7541-1AB00-0AB0

View of the module

2

Figure 2-1 CM PtP RS422/485 HF view

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

9

Product overview 2.1 Properties

Properties

The communication module has the following properties:  Technical properties
­ RS422/485 interface ­ short-circuit proof ­ electrically disconnected ­ Protocols: 3964(R), Modbus master (RTU), Modbus slave (RTU), Freeport and USS
with instructions  Supported system functions
­ Firmware update ­ Identification data I&M0 ­ Diagnostic interrupts ­ Parameter re-assignment in CPU RUN mode (using instructions)

Additional information
Additional information on the properties of the CM PtP RS422/485 HF can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).
You can find additional information on the design of the S7-1500 and the associated modules in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

10

Manual, 01/2013, A5E03790709-01

Product overview 2.2 Accessories

2.2

Accessories

Scope of delivery
The scope of delivery of the communication module includes a U connector for connection to the backplane bus.

Connecting cables
Connecting cables are available in the standard lengths: 5 m, 10 m and 50 m (each with a 15-pin sub D connector).

Table 2- 1 Order numbers of connecting cables

Connecting cables for CM PtP RS422/485 BA CM PtP RS422/485 HF X27 interface (RS422/485)

Type
X27 (RS 422), 5 m X27 (RS 422), 10 m X27 (RS 422), 50 m

Order number
6ES7902­3AB00­0AA0 6ES7902­3AC00­0AA0 6ES7902­3AG00­0AA0

Online catalog

Additional order numbers for S7-1500 can be found on the Internet (http://www.siemens.com/industrymall) in the online catalog and online ordering system.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

11

Product overview 2.3 Functions

2.3

Functions

Introduction

The communication module allows you to exchange data between your own and other programmable controllers or computers by means of a point-to-point connection, and to connect various devices from a variety of manufacturers.

Functionality of the CM PtP RS422/485 HF The CM PtP RS422/485 HF communication module offers the following functionality:  RS422/485 interface  Data transmission rate: 300 to 115.2 kbps  Maximum frame length: 4 kbyte  Transmission protocols: Freeport, 3964(R) and Modbus
Note The USS protocol can be implemented with instructions included in STEP 7 (TIA Portal).

Hardware components of a point-to-point connection
You require certain hardware components for a point-to-point connection with the CM PtP RS422/485 HF.

Components Central processor unit (CPU) Accessories: Memory card CM PtP RS422/485 HF communication module
Connecting cable

Function ... executes the user program.
... communicates with a communication partner (point-to-point) by means of the interface. ... connects the CM PtP RS422/485 HF communication module with the communication partner.

U connector Optional: Power supply module (PS)

... provides the mechanical and electrical connection between the modules.
... converts the line voltage (120/230 VAC or 24 VDC) into the operating voltage of 15 VDC required for supply of the S7-1500.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

12

Manual, 01/2013, A5E03790709-01

Product overview 2.3 Functions

System environment The communication module can be used in the following system environments:

Applications Central operation in an S7-1500 system
Distributed operation in an S7-1500 system
Distributed operation in an S7-300/400 system
Distributed operation in a third-party system

Components required · CPU 151x · CM PtP RS422/485 HF · Power supply (optional)

Configuration STEP 7 (TIA Portal)

· CPU 151x

STEP 7 (TIA Portal)

· IM 155-5 · CM PtP RS422/485 HF · Power supply (optional)

· CPU 31x / CPU 41x · IM 155-5 · CM PtP RS422/485 HF

STEP 7 (TIA Portal) STEP 7 with integration of a GSD file

· Third-party programmable controller GSD file imported to/installed in the

· IM 155-5

engineering system 1)

· CM PtP RS422/485 HF

1) Information on using the communication module in a third-party system is available in the programming and operating manual CM PtP operation with PROFINET controller (http://support.automation.siemens.com/WW/view/en/59062563).

Additional information
Information on configuring and programming the CM PtP RS422/485 HF communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

13

Product overview 2.4 Properties of the RS422/485 interface

2.4

Properties of the RS422/485 interface

Definition Properties

The RS422/485 (X27) interface is a differential voltage interface for serial data transmission.

The RS422/485 (X27) interface has the following properties and meets the following requirements:

Type Front connector: RS422 signals: RS485 signals:
Max. data transmission rate: Max. cable length:
Standard:

Differential voltage interface 15-pin sub-D female connector, with screw lock T (A), R (A), T (B), R (B), GND; isolated R/T (A), R/T (B), GND; all signals isolated against backplane bus and load voltage 115.2 kbps
· 250 m for 115.2 kbps · 500 m for 38.4 kbps · 1200 m for up to19.2 kbps Cable type LIYCY 3 x 2 x 0.14. T(A)/T(B) and R(A)/R(B) twisted in pairs DIN 66259 Parts 1 and 3, EIA-RS422/485, CCITT V.11

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

14

Manual, 01/2013, A5E03790709-01

Connecting

3

3.1

RS422/485 (X27) interface of the communication module

Terminal assignment
The table below shows the terminal assignment for the 15-pin sub D female connector in the front panel of the communication module.

Table 3- 1 Terminal assignment for the 15-pin sub D female connector of the integrated interface of the communication module

RS422/485* female connector

Pin Designation
1 2 T (A) 3 4 R (A)/T (A) -

5 -

      

6
7 8  9  10
 11


GND T (B) + R (B)/T (B) +

12 13 14 15 -

Input/output
Output Input Input/output Output Input Input/output -

Meaning
Send data (four-wire mode) Receive data (four-wire mode) Receive/send data (two-wire mode) Functional ground (isolated) Send data (four-wire mode) Receive data (four-wire mode) Receive/send data (two-wire mode) -

* View from the front

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

15

Connecting 3.2 Installation guidelines
Connecting cables Standard connecting cables of various lengths (see chapter Accessories (Page 11)) are available for connection with a communication partner which also has a 15-pin sub-D female connector. Please note that you must only use shielded connector casings and cables. A large surface area of the cable shield must be in contact with the connector casing on both sides.
CAUTION Cable shield - GND Never connect the cable shield to the GND, as this could destroy the modules. GND (pin 8) must always be connected on both sides, as this could otherwise also destroy the modules.

3.2

Installation guidelines

To take into consideration
The general installation guidelines must be taken into consideration (see function manual EMC/EMI compatible installation of control systems (http://support.automation.siemens.com/WW/view/en/59193566)).
The cable shield must be installed on a grounding rail to maintain the EMC values (electromagnetic compatibility).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

16

Manual, 01/2013, A5E03790709-01

Parameters/address space

4

4.1

Parameter assignment

Introduction

You configure and assign the parameters of the communication module with STEP 7 (TIA Portal V12 or later) or with STEP 7 with integration of a GSD file.

Additional information The device manual of the communication module is supplemented by the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and the TIA Portal information system. There you will find information on the following topics:  Operating modes  Receive buffer  Data flow control  Transmission integrity  Data transmission - protocol specific  Programming/configuring in STEP 7 (TIA Portal)  Module-specific instructions  Diagnostics

4.2

Reaction to CPU STOP

Ongoing transmissions are aborted when the higher-level control (CPU) goes to STOP.

Frames in the receive buffer are retained. With a corresponding configuration in the properties dialog of the communication module, you can automatically clear the receive buffer on the communication module during CPU startup.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

17

Parameters/address space 4.3 Address space

4.3

Address space

Address space of the communication module
The input addresses of the communications module total 8 bytes. The input addresses are automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal). Output addresses are not required.
Hardware identification (not freely configurable)
The hardware identification (HW ID) is automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal).
The hardware ID is issued along with the diagnostic messages to localize the module. In addition, the HW identification is required for S7-1500 at the communication instructions in order to identify the communication module. For S7-300/400, the communication module is identified by the start address of the input data.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

18

Manual, 01/2013, A5E03790709-01

Programming

5

Overview of the instructions
Communication between the CPU, the communication module and a communication partner takes place by means of special instructions and protocols that support the corresponding communication modules. The instructions process the exchange of data between the CPU and the communication module. They must be called cyclically from the user program. Data transmission takes place asynchronously across several cycles.
The transmission protocols are implemented on the communication module. The protocol is used to adapt the interface of the communication module to the interface of the communication partner.

Instruction Port_Config
Send_Config
Receive_Config
P3964_Config
Send_P2P Receive_P2P
Receive_Reset
Signal_Get
Signal_Set Get_Features
Set_Features
USS_Port_Scan USS_Drive_Control USS_Read_Param
USS_Write_Param
Modbus_Comm_Load

Meaning
You use the Port_Config instruction to dynamically assign basic interface parameters.
You use the Send_Config (send configuration) instruction to dynamically assign serial send parameters of a protocol.
You use the Receive_Config (receive configuration) instruction to dynamically assign serial receive parameters of a protocol.
You use the P3964_Config (protocol configuration) instruction to dynamically assign the parameters of the 3964(R) procedure.
You use the Send_P2P instruction to send data to a communication partner.
You use the Receive_P2P instruction to receive data from a communication partner.
You use the Receive_Reset instruction to delete the receive buffer of the communication module.
You use the Signal_Get instruction to read the RS232 accompanying signals.
You use the Signal_Set instruction to set the RS232 accompanying signals.
You use the Get_Features instruction to read expanded functions supported by the communication module.
You use the Set_Features instruction to set expanded functions supported by the communication module.
You use the USS_Port_Scan instruction to communicate using the USS.
You use the USS_Drive_Control instruction to exchange data with a drive.
You use the USS_Read_Param instruction to read parameters from the drive.
You use the USS_Write_Param instruction to change parameters in the drive.
The instruction Modbus_Comm_Load allows you to configure the port of the communication module for Modbus RTU.

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

19

Programming

Instruction Modbus_Master
Modbus_Slave

Meaning
The instruction Modbus_Master allows you to communicate as Modbus master by means of the PtP port.
The instruction Modbus_Slave allows you to communicate as Modbus slave by means of the PtP port.

The instructions are part of STEP 7 (TIA Portal). The instructions are available in the "Instructions" task card under Communication > Communication processor.

Additional information
Additional information on programming the communication modules can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

20

Manual, 01/2013, A5E03790709-01

Error and system messages

6

LED displays of the communication module
The figure below shows the LED displays of the CM PtP RS422/485 HF communication module with open front panel.



 

 LED display RUN  LED display ERROR  LED display MAINT  LED display TXD  LED display RXD
Figure 6-1 CM PtP RS422/485 HF view

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

21

Error and system messages

Meaning of the LED displays for RUN/ERROR/(MAINT)

RUN Off Flashes On On

LED

Meaning

Solution

ERROR Off Off Off
Flashes

MAINT Off Off Off Off

Supply voltage not present or too low at Check the power supply of the station. communication module
CM in startup, parameters not assigned --yet
CM configured and ready for operation ---
Group error (at least one error pending) Evaluate the diagnostics data and eliminate the error. 1)

1) Information on startup and diagnostics of the communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

Meaning of LED displays for TXD/RXD (under the front panel)

LED

TXD

RXD

Flashes

Off

Off

Flashes

Meaning Interface is transmitting Interface is receiving

Solution -----

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

22

Manual, 01/2013, A5E03790709-01

Technical specifications

7

7.1

Technical specifications

Product type designation General information · I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version PROFIBUS as of GSD version/GSD revision PROFINET as of GSD version/GSD revision Installation type/mounting · Rail mounting possible
Supply voltage Voltage type of supply voltage Input current · Current consumption (rated value)
Power · Power from the backplane bus
Power loss · Power loss, typ.
Address area Occupied address area · Inputs
Interfaces 1. Interface Interface hardware · RS 422
· RS 485

6ES7541-1AB00-0AB0 CM PtP RS422/485 HF Yes; I&M 0 V12.0 / V12.0 V5.5 SP2 or higher with a GSD file - / V2.3 Yes; S7-1500 mounting rail System power supply 33 mA; from backplane bus 0.65 W 0.6 W
8 bytes
Yes Yes

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

23

Technical specifications 7.1 Technical specifications

Interface hardware RS 485 · Transmission rate, max. · Max. cable length RS 422 · Transmission rate, max. · Max. cable length · 4-wire full duplex connection · 4-wire multipoint connection Protocols Integrated protocols Freeport · Frame length, max. · Bits per character · Number of stop bits · Parity 3964 (R) · Frame length, max. · Bits per character · Number of stop bits · Parity Modbus RTU master Address area · Max. number of slaves Modbus RTU slave Address area Frame buffer · Buffer memory for frames · Number of frames which can be buffered

6ES7541-1AB00-0AB0
115.2 kbps 1200 m
115.2 kbps 1200 m Yes No
4 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
4 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
1 to 247, extended 1 to 65,535 32
1 to 247, extended 1 to 65,535 8 kbyte 255

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

24

Manual, 01/2013, A5E03790709-01

Technical specifications 7.1 Technical specifications

Interrupts/diagnostics/status information Interrupts · Diagnostic interrupt · Hardware interrupt Diagnostic messages Diagnostics · Wire break Diagnostics display LED · RUN LED · ERROR LED · Receive RxD · Send TxD Electrical isolation · between backplane bus and interface Insulation Insulation tested with Ambient conditions Operating temperature · Horizontal installation, min. · Horizontal installation, max. · Vertical installation, min. · Vertical installation, max. Distributed operation · At SIMATIC S7-300 · At SIMATIC S7-400 · At SIMATIC S7-1500 · At Standard Profinet Controller · Supports Fast Startup Dimensions · Width · Height · Depth Weights · Weight, approx.

6ES7541-1AB00-0AB0
Yes No
Yes Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; yellow LED
Yes
707 V DC (Type Test)
0 °C 60 °C 0 °C 40 °C
Yes Yes Yes Yes Yes
35 mm 147 mm 127 mm
0.22 kg

Additional general technical specifications for SIMATIC S7-1500 are available in the system manual (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

25

Technical specifications 7.1 Technical specifications

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

26

Manual, 01/2013, A5E03790709-01

Dimensional drawing

A

This appendix contains the dimensional drawing of the communication module installed on a mounting rail and with a shield bracket. Always observe the specified dimensions for installation in cabinets, control rooms, etc.


   


  Figure A-1 Dimensional drawing of the CM PtP RS422/485 HF communication module

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

Manual, 01/2013, A5E03790709-01

27

Dimensional drawing

Figure A-2

 
Dimensional drawing of the CM PtP RS422/485 HF communication module with open front panel

CM PtP RS422/485 HF communication module (6ES75411AB000AB0)

28

Manual, 01/2013, A5E03790709-01

 CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)
SIMATIC
S7-1500 / ET 200MP CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/A_dd_re_ss_s_p_ac_e____4_ _Pr_og_ra_m_m_in_g___________5_ _Er_ro_r a_n_d_sy_st_em__m_es_sa_g_es____6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______7_ _Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

01/2013
A5E03777472-01

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03777472-01  11/2012 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This device manual complements the system manual S7 1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792). General functions of the S7-1500 are described in the S7-1500 Automation System System Manual.

Conventions

This documentation contains figures of the described device. The figures may differ slightly from the devices supplied. Please also observe notes marked as follows:
Note A note contain important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

4

Manual, 01/2013, A5E03777472-01

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Accessories..................................................................................................................................11

2.3

Functions......................................................................................................................................12

2.4

Properties of the RS232 interface................................................................................................14

3 Connecting .............................................................................................................................................. 15

3.1

RS232 interface of the communications module .........................................................................15

3.2

Installation guidelines...................................................................................................................16

4 Parameters/Address space...................................................................................................................... 17

4.1

Parameter assignment.................................................................................................................17

4.2

Reaction to CPU STOP ...............................................................................................................17

4.3

Address space .............................................................................................................................18

5 Programming ........................................................................................................................................... 19

6 Error and system messages .................................................................................................................... 21

7 Technical specifications........................................................................................................................... 23

A Dimensional drawing ............................................................................................................................... 27

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

5

Table of contents

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

6

Manual, 01/2013, A5E03777472-01

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the S7-1500 and ET 200MP automation systems consists of system manuals, function manuals and manuals.
The STEP 7 information system (Online Help) also helps you configure and program your automation system.

Overview of the documentation provided for the CM PtP RS232 BA communications module
The following table lists further references that you will need when using the CM PtP RS232 BA communications module.

Table 1- 1 Documentation for the CM PtP RS232 BA communications module

Topic System description

Documentation

Key content

System manual S7 -1500 Automation System · Application planning

(http://support.automation.siemens.com/WW/vi ew/en/59191792)

·

Installation

System manual ET 200MP distributed I/O

· Connecting

system

· Addressing

(http://support.automation.siemens.com/WW/vi · Commissioning

ew/en/59193214)

System manual ET 200SP distributed I/O

· Maintenance

system

(http://support.automation.siemens.com/WW/vi

ew/en/58649293)

Power supply manuals

· Connecting

(http://support.automation.siemens.com/WW/vi ew/en/59173914)

·

Interrupt, error and

system messages

CPU manuals

(http://support.automation.siemens.com/WW/vi · Technical specifications

ew/en/56926947)

· Dimensional drawing

Function manual EMC/EMI compatible

· Basics

installation of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

7

Documentation guide

Topic
Point-to-point communication

Documentation
Function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/vi ew/en/59057093)

Key content
· Basic information · Data transmission
functions · Diagnostics functions

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge on the Internet (http://www.siemens.com/automation/service&support).

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

8

Manual, 01/2013, A5E03777472-01

Product overview

2.1

Properties

Order number 6ES7540-1AD00-0AA0

View of the module

2

Figure 2-1 CM PtP RS232 BA view

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

9

Product overview 2.1 Properties

Properties

The communication module has the following properties:  Technical properties
­ RS232 interface ­ short-circuit proof ­ electrically disconnected ­ Protocols: 3964(R), Freeport and USS with instructions  Supported system functions ­ Firmware update ­ Identification data I&M0 ­ Parameter re-assignment in CPU RUN mode (using instructions) ­ Diagnostic interrupts

Additional information
Additional information on the properties of the CM PtP RS232 BA can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).
Information on the properties of the S7-1500 and associated modules can be found in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

10

Manual, 01/2013, A5E03777472-01

Product overview 2.2 Accessories

2.2

Accessories

Scope of delivery
The scope of delivery of the communication module includes a U connector for connection to the backplane bus.

Connecting cables
The following connecting cables can be ordered separately in the standard lengths: 5 m, 10 m and 15 m (each with a 9-pin sub D female connector).

Table 2- 1 Order numbers of connecting cables

Connecting cables for CM PtP RS232 BA CM PtP RS232 HF RS232 interface

Type
RS232, 5 m RS232, 10 m RS232, 15 m

Order number
6ES7902­1AB00­0AA0 6ES7902­1AC00­0AA0 6ES7902­1AD00­0AA0

Online catalog

Additional order numbers for S7-1500 can be found on the Internet (http://www.siemens.com/industrymall) in the online catalog and online ordering system.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

11

Product overview 2.3 Functions

2.3

Functions

Introduction

The communication module allows you to exchange data between your own and other programmable controllers or computers by means of a point-to-point connection, and to connect various devices from a variety of manufacturers.

Functionality of the CM PtP RS232 BA The CM PtP RS232 BA communications module offers the following functionality:  RS232 interface  Data transmission rate: 300 to 19200 bps  Maximum frame length: 1 kbyte  Transmission protocols: Freeport and 3964(R)
Note The USS protocol can be implemented with instructions included in STEP 7 (TIA Portal).

Hardware components of a point-to-point connection
You require certain hardware components for a point-to-point connection with the CM PtP RS232 BA.

Components CPU module Accessories: Memory card CM PtP RS232 BA communications module
Connecting cable

Function ... executes the user program.
... communicates with a communication partner (point-to-point) by means of the interface. ... connects the CM PtP RS232 BA communications module with the communication partner.

U connector Optional: Power supply module (PS)

... provides the mechanical and electrical connection between the modules.
... converts the line voltage (120/230V AC or 24V DC) into the operating voltage required to supply the S7-1500.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

12

Manual, 01/2013, A5E03777472-01

Product overview 2.3 Functions

System environment The communication module can be used in the following system environments:

Applications Central operation in an S7-1500 system
Distributed operation in an S7-1500 system
Distributed operation in an S7-300/400 system
Distributed operation in a third-party system

Components required · CPU 151x · CM PtP RS232 BA · Power supply (optional)

Configuration STEP 7 (TIA Portal)

· CPU 151x

STEP 7 (TIA Portal)

· IM 155-5 · CM PtP RS232 BA · Power supply (optional)

· CPU 31x / CPU 41x · IM 155-5 · CM PtP RS232 BA

STEP 7 (TIA Portal) STEP 7 with integration of a GSD file

· Third-party programmable controller GSD file imported to/installed in the

· IM 155-5

engineering system 1)

· CM PtP RS232 BA

1) Information on using the communication module in a third-party system is available in the programming and operating manual CM PtP operation with PROFINET controller (http://support.automation.siemens.com/WW/view/en/59062563).

Additional information
Information on configuration and programming of the CM PtP RS232 BA communications module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and in the information system of the TIA Portal.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

13

Product overview 2.4 Properties of the RS232 interface

2.4

Properties of the RS232 interface

Definition Properties

The RS232 interface is a voltage interface used for serial data transmission.

Table 2- 2 The RS232 interface has the following properties and meets the following requirements:

Type Front connector RS232 signals
Max. data transmission rate max. cable length Standard

Voltage interface 9-pin sub-D male connector with screw lock TXD, RXD, RTS, CTS, DTR, DSR, RI, DCD, GND; all signals isolated against the backplane bus and load voltage 19.2 kbps
15 m, cable type LIYCY 9 x 0.14 DIN 66020, DIN 66259, EIA-RS 232C, CCITT V.24/V.28

RS232 signals

Table 2- 3 The table below shows the meaning of the individual RS232 accompanying signals.

Signal TXD RXD RTS
CTS
DTR DSR RI DCD

Designation Transmit Data Receive Data Request To Send
Clear To Send
Data Terminal Ready Data Set Ready Ring Indicator Data Carrier Detect

Meaning
Transmit data; transmit cable logically held to "1" by communication module in idle state. Receive data; receive cable logically held to "1" by communication partner in idle state. Request to send RTS set to "ON": Communication module ready to send; signals to the communication partner that there is data ready to send RTS set to "OFF": Communication module not ready to send Clear to send CTS set to "ON": Signals "clear to send" to the communication partner CTS set to "OFF": Signals "Not clear to send" to the communication partner DTR set to "ON": Communications module switched on, ready for operation DTR set to "OFF": Communications module not switched on, not ready for operation DSR set to "ON": Communication partner signals "ready for operation" DSR set to "OFF": Communication partner not switched on, not ready for operation Incoming call when connecting a modem Carrier signal when connecting a modem. The communication partner signals with a high level that it detects incoming data on the cable.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

14

Manual, 01/2013, A5E03777472-01

Connecting

3

3.1

RS232 interface of the communications module

Terminal assignment
The table below shows the terminal assignment for the 9-pin sub D male connector in the front panel of the communications module.

Table 3- 1 Terminal assignment for the sub D male connector of the integrated interface of the communications module

Male connector of the

Pin

Designation

communications module

Input/output

1

DCD Data Carrier Detect

Input

2

RXD Receive Data

Input



















3

TXD Transmit Data

Output

4

DTR Data Terminal Ready

Output

5

GND Ground

-

6

DSR Data Set Ready

Input

7

RTS Request To Send

Output

8

CTS Clear To Send

Input

9

RI Ring Indicator

Input

* View from the front

Meaning
Received signal level Receive data Transmit data Data terminal ready Functional ground (isolated) Data set ready Request to send Clear to send Incoming call

Connecting cables
Standard connecting cables of various lengths (see chapter Accessories (Page 11)) are available for connection with a communication partner which also has a 9-pin sub-D male connector.
Please note that you must only use shielded connector casings and cables. A large surface area of the cable shield must be in contact with the connector casing on both sides.
NOTICE
Never connect the cable shield with the GND, as this could destroy the interfaces. GND must always be connected on both sides (pin 5), otherwise the modules could be destroyed.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

15

Connecting 3.2 Installation guidelines

3.2

Installation guidelines

To take into consideration
The general installation guidelines must be taken into consideration (see function manual EMC/EMI compatible installation of control systems (http://support.automation.siemens.com/WW/view/en/59193566)).
The cable shield must be installed on a grounding rail to maintain the EMC values (electromagnetic compatibility).

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

16

Manual, 01/2013, A5E03777472-01

Parameters/Address space

4

4.1

Parameter assignment

Introduction

You configure and assign the parameters of the communication module with STEP 7 (TIA Portal V12 or later) or with STEP 7 with integration of a GSD file.

Additional information The device manual of the communication module is supplemented by the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and the TIA Portal information system. There you will find information on the following topics:  Operating modes  Receive buffer  Data flow control  Transmission integrity  Data transmission - protocol specific  Programming/configuring in STEP 7 (TIA Portal)  Module-specific instructions  Diagnostics

4.2

Reaction to CPU STOP

Ongoing transmissions are aborted when the higher-level control (CPU) goes to STOP.

Frames in the receive buffer are retained. With a corresponding configuration in the properties dialog of the communication module, you can automatically clear the receive buffer on the communication module during CPU startup.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

17

Parameters/Address space 4.3 Address space

4.3

Address space

Address space of the communication module
The input addresses of the communications module total 8 bytes. The input addresses are automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal). Output addresses are not required.
Hardware identification (not freely configurable)
The hardware identification (HW ID) is automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal).
The hardware ID is issued along with the diagnostic messages to localize the module. In addition, the HW identification is required for S7-1500 at the communication instructions in order to identify the communication module. For S7-300/400, the communication module is identified by the start address of the input data.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

18

Manual, 01/2013, A5E03777472-01

Programming

5

Overview of the instructions
Communication between the CPU, the communication module and a communication partner takes place by means of special instructions and protocols that support the corresponding communication modules. The instructions process the exchange of data between the CPU and the communication module. They must be called cyclically from the user program. Data transmission takes place asynchronously across several cycles.
The transmission protocols are implemented on the communication module. The protocol is used to adapt the interface of the communication module to the interface of the communication partner.

Instruction Port_Config Send_Config Receive_Config P3964_Config Send_P2P Receive_P2P Receive_Reset Signal_Get Signal_Set Get_Features Set_Features USS_Port_Scan USS_Drive_Control USS_Read_Param USS_Write_Param

Meaning
You use the Port_Config instruction to dynamically assign basic interface parameters.
You use the Send_Config (send configuration) instruction to dynamically assign serial send parameters of a port.
You use the Receive_Config (receive configuration) instruction to dynamically assign serial receive parameters of a port.
You use the P3964_Config (protocol configuration) instruction to dynamically assign the parameters of the 3964(R) procedure.
You use the Send_P2P instruction to send data to a communication partner.
You use the Receive_P2P instruction to receive data from a communication partner.
You use the Receive_Reset instruction to delete the receive buffer of the communication module.
You use the Signal_Get instruction to read the RS232 accompanying signals.
You use the Signal_Set instruction to set the RS232 accompanying signals.
You use the Get_Features instruction to read expanded functions supported by the communication module.
You use the Set_Features instruction to set expanded functions supported by the communication module.
You use the USS_Port_Scan instruction to communicate via the USS network.
You use the USS_Drive_Control instruction to exchange data with a drive.
You use the USS_Read_Param instruction to read parameters from the drive.
You use the USS_Write_Param instruction to change parameters in the drive.

The instructions are part of STEP 7 (TIA Portal). The instructions are available in the "Instructions" task card under Communication > Communication processor.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

19

Programming
Additional information Additional Information on programming the communication modules is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and in the TIA Portal information system.

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

20

Manual, 01/2013, A5E03777472-01

Error and system messages

6

LED displays of the communication module
The figure below shows the LED displays of the CM PtP RS232 BA communication module with open front panel.

  


 LED display RUN  LED display ERROR  LED display MAINT  LED display TXD  LED display RXD
Figure 6-1 CM PtP RS232 BA view

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

21

Error and system messages

Meaning of the LED displays for RUN/ERROR/(MAINT)

RUN Off Flashes On Off

LED

Meaning

Solution

ERROR Off Off Off
Flashes

MAINT Off Off Off Off

Supply voltage not present or too low at Check the power supply of the station. communication module
CM in startup, parameters not assigned --yet
CM configured and ready for operation ---
Group error (at least one error pending) Evaluate the diagnostics data and eliminate the error. 1)

1) Information on startup and diagnostics of the communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

Meaning of LED displays for TXD/RXD (under the front panel)

LED

TXD

RXD

Flashes

Off

Off

Flashes

Meaning Interface is transmitting Interface is receiving

Solution -----

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

22

Manual, 01/2013, A5E03777472-01

Technical specifications

7

Product type designation General information · I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version PROFIBUS as of GSD version/GSD revision PROFINET as of GSD version/GSD revision Installation type/mounting · Rail mounting possible
Supply voltage Voltage type of supply voltage Input current · Current consumption (rated value)
Power · Power from the backplane bus
Power loss · Power loss, typ.
Address area Occupied address area · Inputs
Interfaces 1. Interface Interface hardware · RS 232
Interface hardware RS 232 · Transmission rate, max.
· Max. cable length RS-232 accompanying signals

6ES7540-1AD00-0AA0 CM PtP RS232 BA Yes; I&M 0 V12.0 / V12.0 V5.5 SP2 or higher with a GSD file - / V2.3 Yes; S7-1500 mounting rail System power supply 35 mA; from backplane bus 0.65 W 0.6 W
8 bytes
Yes
19.2 kbps 15 m RTS, CTS, DTR, DSR, RI, DCD

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

23

Technical specifications

Protocols Integrated protocols Freeport · Frame length, max. · Bits per character · Number of stop bits · Parity 3964 (R) · Frame length, max. · Bits per character · Number of stop bits · Parity Frame buffer · Buffer memory for frames · Number of frames which can be buffered Interrupts/diagnostics/status information Interrupts · Diagnostic interrupt · Hardware interrupt Diagnostic messages Diagnostics · Wire break Diagnostics display LED · RUN LED · ERROR LED · Receive RxD · Send TxD Electrical isolation · between backplane bus and interface Insulation Insulation tested with Ambient conditions Operating temperature · Horizontal installation, min. · Horizontal installation, max. · Vertical installation, min. · Vertical installation, max.

6ES7540-1AD00-0AA0
1 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
1 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any
2 kbyte 255
Yes No
Yes Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; yellow LED
Yes
707 V DC (Type Test)
0 °C 60 °C 0 °C 40 °C

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

24

Manual, 01/2013, A5E03777472-01

Technical specifications

Distributed operation · At SIMATIC S7-300 · At SIMATIC S7-400 · At SIMATIC S7-1500 · At Standard Profinet Controller · Supports Fast Startup Dimensions · Width · Height · Depth Weights · Weight, approx.

6ES7540-1AD00-0AA0
Yes Yes Yes Yes Yes
35 mm 147 mm 127 mm
0.22 kg

Additional general technical specifications for SIMATIC S7-1500 are available in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

25

Technical specifications

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

26

Manual, 01/2013, A5E03777472-01

Dimensional drawing

A

The dimensional drawing of the communications module installed on a mounting rail and a dimensional drawing with open front panel are provided in the appendix. Always observe the specified dimensions for installations in cabinets, control rooms, etc.


   


  Figure A-1 Dimensional drawing of the CM PtP RS232 BA communications module

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

Manual, 01/2013, A5E03777472-01

27

Dimensional drawing

Figure A-2

 
Dimensional drawing of the CM PtP RS232 BA communications module with open front panel

CM PtP RS232 BA communication module (6ES7540-1AD00-0AA0)

28

Manual, 01/2013, A5E03777472-01

 CM PtP RS232 HF

_Pr_ef_ac_e_______________

(6ES75411AD000AB0) communication
module 
SIMATIC
S7-1500/ET 200MP CM PtP RS232 HF (6ES75411AD000AB0) communication module
Manual

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Pr_og_ra_m_m_in_g___________5_ _Er_ro_r a_n_d_sy_st_em__m_es_sa_g_es____6_

_Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______7_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

01/2013
A5E03790665-01

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03790665-01  11/2012 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This device manual complements the system manual S7 1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792). General functions of the S7-1500 are described in the S7-1500 Automation System System Manual.

Conventions

This documentation contains figures of the described device. The figures may differ slightly from the devices supplied. Please also observe notes marked as follows:
Note A note contain important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

4

Manual, 01/2013, A5E03790665-01

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Accessories..................................................................................................................................11

2.3

Functions......................................................................................................................................12

2.4

Properties of the RS232 interface................................................................................................14

3 Connecting .............................................................................................................................................. 15

3.1

RS232 interface of the communications module .........................................................................15

3.2

Installation guidelines...................................................................................................................16

4 Parameters/address space ...................................................................................................................... 17

4.1

Parameter assignment.................................................................................................................17

4.2

Reaction to CPU STOP ...............................................................................................................17

4.3

Address space .............................................................................................................................18

5 Programming ........................................................................................................................................... 19

6 Error and system messages .................................................................................................................... 21

7 Technical specifications........................................................................................................................... 23

A Dimensional drawing ............................................................................................................................... 27

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

5

Table of contents

CM PtP RS232 HF (6ES75411AD000AB0) communication module

6

Manual, 01/2013, A5E03790665-01

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the S7-1500 and ET 200MP automation systems consists of system manuals, function manuals and manuals.
The STEP 7 information system (Online Help) also helps you configure and program your automation system.

Overview of the documentation provided for the CM PtP RS232 HF communication module
The following table lists additional references that you will need when using the CM PtP RS232 HF communication module.

Table 1- 1 Documentation for the CM PtP RS232 HF communication module

Topic System description

Documentation

Key content

System manual S7 -1500 Automation System · Application planning

(http://support.automation.siemens.com/WW/vi ew/en/59191792)

·

Installation

System manual ET 200MP distributed I/O

· Connecting

system

· Addressing

(http://support.automation.siemens.com/WW/vi · Commissioning

ew/en/59193214)

System manual ET 200SP distributed I/O

· Maintenance

system

(http://support.automation.siemens.com/WW/vi

ew/en/58649293)

Power supply manuals

· Connecting

(http://support.automation.siemens.com/WW/vi ew/en/59173914)

·

Interrupt, error and

system messages

CPU manuals

(http://support.automation.siemens.com/WW/vi · Technical specifications

ew/en/56926947)

· Dimensional drawing

Function manual EMC/EMI compatible

· Basics

installation of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

7

Documentation guide

Topic
Point-to-point communication

Documentation
Function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/vi ew/en/59057093)

Key content
· Basic information · Data transmission
functions · Diagnostics functions

SIMATIC manuals
All current manuals for the SIMATIC products are available for download free of charge on the Internet (http://www.siemens.com/automation/service&support).

CM PtP RS232 HF (6ES75411AD000AB0) communication module

8

Manual, 01/2013, A5E03790665-01

Product overview

2.1

Properties

Order number 6ES7541-1AD00-0AB0

View of the module

2

Figure 2-1 CM PtP RS232 HF view

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

9

Product overview 2.1 Properties

Properties

The communication module has the following properties:  Technical properties
­ RS232 interface ­ short-circuit proof ­ electrically disconnected ­ Protocols: 3964(R), Modbus master (RTU), Modbus slave (RTU), Freeport and USS
with instructions  Supported system functions
­ Firmware update ­ Identification data I&M0 ­ Parameter re-assignment in CPU RUN mode (using instructions) ­ Diagnostic interrupts

Additional information
Additional information on the properties of the CM PtP RS232 HF can be found in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).
Information on the properties of the S7-1500 and associated modules can be found in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS232 HF (6ES75411AD000AB0) communication module

10

Manual, 01/2013, A5E03790665-01

Product overview 2.2 Accessories

2.2

Accessories

Scope of delivery
The scope of delivery of the communication module includes a U connector for connection to the backplane bus.

Connecting cables
The following connecting cables can be ordered separately in the standard lengths: 5 m, 10 m and 15 m (each with a 9-pin sub D female connector).

Table 2- 1 Order numbers of connecting cables

Connecting cables for CM PtP RS232 BA CM PtP RS232 HF RS232 interface

Type
RS232, 5 m RS232, 10 m RS232, 15 m

Order number
6ES7902­1AB00­0AA0 6ES7902­1AC00­0AA0 6ES7902­1AD00­0AA0

Online catalog

Additional order numbers for S7-1500 can be found on the Internet (http://www.siemens.com/industrymall) in the online catalog and online ordering system.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

11

Product overview 2.3 Functions

2.3

Functions

Introduction

The communication module allows you to exchange data between your own and other programmable controllers or computers by means of a point-to-point connection, and to connect various devices from a variety of manufacturers.

Functionality of the CM PtP RS232 HF The CM PtP RS232 HF communication module offers the following functionality:  RS232 interface  Data transmission rate: 300 to 115200 bps  Maximum frame length: 4 kbyte  Transmission protocols: Freeport, 3964(R) and Modbus
Note The USS protocol can be implemented with instructions included in STEP 7 (TIA Portal).

Hardware components of a point-to-point connection
You require certain hardware components for a point-to-point connection with the CM PtP RS232 HF.

Components CPU module Accessories: Memory card CM PtP RS232 HF communication module
Connecting cable

Function ... executes the user program.
... communicates with a communication partner (point-to-point) by means of the interface. ... connects the CM PtP RS232 HF communication module with the communication partner.

U connector Optional: Power supply module (PS)

... provides the mechanical and electrical connection between the modules.
... converts the line voltage (120/230V AC or 24V DC) into the operating voltage required to supply the S7-1500.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

12

Manual, 01/2013, A5E03790665-01

Product overview 2.3 Functions

System environment The communication module can be used in the following system environments:

Applications Central operation in an S7-1500 system
Distributed operation in an S7-1500 system
Distributed operation in an S7-300/400 system
Distributed operation in a third-party system

Components required · CPU 151x · CM PtP RS232 HF · Power supply (optional)

Configuration STEP 7 (TIA Portal)

· CPU 151x

STEP 7 (TIA Portal)

· IM 155-5 · CM PtP RS232 HF · Power supply (optional)

· CPU 31x / CPU 41x · IM 155-5 · CM PtP RS232 HF

STEP 7 (TIA Portal) STEP 7 with integration of a GSD file

· Third-party programmable controller GSD file imported to/installed in the

· IM 155-5

engineering system 1)

· CM PtP RS232 HF

1) Information on using the communication module in a third-party system is available in the programming and operating manual CM PtP operation with PROFINET controller (http://support.automation.siemens.com/WW/view/en/59062563).

Additional information
Information on configuring and programming the CM PtP RS232 HF communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

13

Product overview 2.4 Properties of the RS232 interface

2.4

Properties of the RS232 interface

Definition Properties

The RS232 interface is a voltage interface used for serial data transmission.

The RS232 interface has the following properties and meets the following requirements:

Type Front connector RS232 signals
Max. data transmission rate max. cable length Standard

Voltage interface 9-pin sub-D male connector with screw lock TXD, RXD, RTS, CTS, DTR, DSR, RI, DCD, GND; all signals isolated against the backplane bus and load voltage 115.2 kbps
15 m, cable type LIYCY 9 x 0.14 DIN 66020, DIN 66259, EIA-RS 232C, CCITT V.24/V.28

RS232 signals The table below shows the meaning of the individual RS232 accompanying signals.

Table 2- 2 Signals of the RS232 interface

Signal TXD RXD RTS
CTS
DTR DSR RI DCD

Designation Transmit Data Receive Data Request To Send
Clear To Send
Data Terminal Ready Data Set Ready Ring Indicator Data Carrier Detect

Meaning
Transmit data; transmit cable logically held to "1" by communication module in idle state. Receive data; receive cable logically held to "1" by communication partner in idle state. Request to send RTS set to "ON": Communication module ready to send; signals to the communication partner that there is data ready to send RTS set to "OFF": Communication module not ready to send Clear to send CTS set to "ON": Signals "clear to send" to the communication partner CTS set to "OFF": Signals "Not clear to send" to the communication partner DTR set to "ON": Communications module switched on, ready for operation DTR set to "OFF": Communications module not switched on, not ready for operation DSR set to "ON": Communication partner signals "ready for operation" DSR set to "OFF": Communication partner not switched on, not ready for operation Incoming call when connecting a modem Carrier signal when connecting a modem. The communication partner signals with a high level that it detects incoming data on the cable.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

14

Manual, 01/2013, A5E03790665-01

Connecting

3

3.1

RS232 interface of the communications module

Terminal assignment
The table below shows the terminal assignment for the 9-pin sub D male connector in the front panel of the communications module.

Table 3- 1 Terminal assignment for the sub D male connector of the integrated interface of the communications module

Male connector of the

Pin

Designation

communications module

Input/output

1

DCD Data Carrier Detect

Input

2

RXD Receive Data

Input



















3

TXD Transmit Data

Output

4

DTR Data Terminal Ready

Output

5

GND Ground

-

6

DSR Data Set Ready

Input

7

RTS Request To Send

Output

8

CTS Clear To Send

Input

9

RI Ring Indicator

Input

* View from the front

Meaning
Received signal level Receive data Transmit data Data terminal ready Functional ground (isolated) Data set ready Request to send Clear to send Incoming call

Connecting cables
Standard connecting cables of various lengths (see chapter Accessories (Page 11)) are available for connection with a communication partner which also has a 9-pin sub-D male connector.
Please note that you must only use shielded connector casings and cables. A large surface area of the cable shield must be in contact with the connector casing on both sides.
NOTICE
Never connect the cable shield with the GND, as this could destroy the interfaces. GND must always be connected on both sides (pin 5), otherwise the modules could be destroyed.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

15

Connecting 3.2 Installation guidelines

3.2

Installation guidelines

To take into consideration
The general installation guidelines must be taken into consideration (see function manual EMC/EMI compatible installation of control systems (http://support.automation.siemens.com/WW/view/en/59193566)).
The cable shield must be installed on a grounding rail to maintain the EMC values (electromagnetic compatibility).

CM PtP RS232 HF (6ES75411AD000AB0) communication module

16

Manual, 01/2013, A5E03790665-01

Parameters/address space

4

4.1

Parameter assignment

Introduction

You configure and assign the parameters of the communication module with STEP 7 (TIA Portal V12 or later) or with STEP 7 with integration of a GSD file.

Additional information The device manual of the communication module is supplemented by the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and the TIA Portal information system. There you will find information on the following topics:  Operating modes  Receive buffer  Data flow control  Transmission integrity  Data transmission - protocol specific  Programming/configuring in STEP 7 (TIA Portal)  Module-specific instructions  Diagnostics

4.2

Reaction to CPU STOP

Ongoing transmissions are aborted when the higher-level control (CPU) goes to STOP.

Frames in the receive buffer are retained. With a corresponding configuration in the properties dialog of the communication module, you can automatically clear the receive buffer on the communication module during CPU startup.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

17

Parameters/address space 4.3 Address space

4.3

Address space

Address space of the communication module
The input addresses of the communications module total 8 bytes. The input addresses are automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal). Output addresses are not required.
Hardware identification (not freely configurable)
The hardware identification (HW ID) is automatically assigned for each communications module when you specify the device configuration in STEP 7 (TIA Portal).
The hardware ID is issued along with the diagnostic messages to localize the module. In addition, the HW identification is required for S7-1500 at the communication instructions in order to identify the communication module. For S7-300/400, the communication module is identified by the start address of the input data.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

18

Manual, 01/2013, A5E03790665-01

Programming

5

Overview of the instructions
Communication between the CPU, the communication module and a communication partner takes place by means of special instructions and protocols that support the corresponding communication modules. The instructions process the exchange of data between the CPU and the communication module. They must be called cyclically from the user program. Data transmission takes place asynchronously across several cycles.
The transmission protocols are implemented on the communication module. The protocol is used to adapt the interface of the communication module to the interface of the communication partner.

Instruction Port_Config Send_Config Receive_Config P3964_Config Send_P2P Receive_P2P Receive_Reset Signal_Get Signal_Set Get_Features Set_Features USS_Port_Scan USS_Drive_Control USS_Read_Param USS_Write_Param Modbus_Comm_Load

Meaning
You use the Port_Config instruction to dynamically assign basic interface parameters.
You use the Send_Config (send configuration) instruction to dynamically assign serial send parameters of a port.
You use the Receive_Config (receive configuration) instruction to dynamically assign serial receive parameters of a port.
You use the P3964_Config (protocol configuration) instruction to dynamically assign the parameters of the 3964(R) procedure.
You use the Send_P2P instruction to send data to a communication partner.
You use the Receive_P2P instruction to receive data from a communication partner.
You use the Receive_Reset instruction to delete the receive buffer of the communication module.
You use the Signal_Get instruction to read the RS232 accompanying signals.
You use the Signal_Set instruction to set the RS232 accompanying signals.
You use the Get_Features instruction to read expanded functions supported by the communication module.
You use the Set_Features instruction to set expanded functions supported by the communication module.
You use the USS_Port_Scan instruction to communicate via the USS network.
You use the USS_Drive_Control instruction to exchange data with a drive.
You use the USS_Read_Param instruction to read parameters from the drive.
You use the USS_Write_Param instruction to change parameters in the drive.
The instruction Modbus_Comm_Load allows you to configure the port of the communication module for Modbus RTU.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

19

Programming

Instruction Modbus_Master
Modbus_Slave

Meaning
The instruction Modbus_Master allows you to communicate as Modbus master by means of the PtP port.
The instruction Modbus_Slave allows you to communicate as Modbus slave by means of the PtP port.

The instructions are part of STEP 7 (TIA Portal). The instructions are available in the "Instructions" task card under Communication > Communication processor.

Additional information
Additional information on programming the communication modules is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093) and in the TIA Portal information system.

CM PtP RS232 HF (6ES75411AD000AB0) communication module

20

Manual, 01/2013, A5E03790665-01

Error and system messages

6

LED displays of the communication module
The figure below shows the LED displays of the CM PtP RS232 HF communication module with open front panel.



 

 LED display RUN  LED display ERROR  LED display MAINT  LED display TXD  LED display RXD
Figure 6-1 CM PtP RS232 HF view

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

21

Error and system messages

Meaning of the LED displays for RUN/ERROR/(MAINT)

RUN Off Flashes On Off

LED

Meaning

Solution

ERROR Off Off Off
Flashes

MAINT Off Off Off Off

Supply voltage not present or too low at Check the power supply of the station. communication module
CM in startup, parameters not assigned --yet
CM configured and ready for operation ---
Group error (at least one error pending) Evaluate the diagnostics data and eliminate the error. 1)

1) Information on startup and diagnostics of the communication module is available in the function manual CM PtP - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).

Meaning of LED displays for TXD/RXD (under the front panel)

LED

TXD

RXD

Flashes

Off

Off

Flashes

Meaning Interface is transmitting Interface is receiving

Solution -----

CM PtP RS232 HF (6ES75411AD000AB0) communication module

22

Manual, 01/2013, A5E03790665-01

Technical specifications

7

Product type designation General information · I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version PROFIBUS as of GSD version/GSD revision PROFINET as of GSD version/GSD revision Installation type/mounting · Rail mounting possible
Supply voltage Voltage type of supply voltage Input current · Current consumption (rated value)
Power · Power from the backplane bus
Power loss · Power loss, typ.
Address area Occupied address area · Inputs
Interfaces 1. Interface Interface hardware · RS 232
Interface hardware RS 232 · Transmission rate, max.
· Max. cable length RS-232 accompanying signals Protocols Integrated protocols Freeport

6ES7541-1AD00-0AB0 CM PtP RS232 HF Yes; I&M 0 V12.0 / V12.0 V5.5 SP2 or higher with a GSD file - / V2.3 Yes; S7-1500 mounting rail System power supply 35 mA; from backplane bus 0.65 W 0.6 W
8 bytes
Yes
115.2 kbps 15 m RTS, CTS, DTR, DSR, RI, DCD

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

23

Technical specifications

· Frame length, max. · Bits per character · Number of stop bits · Parity 3964 (R) · Frame length, max. · Bits per character · Number of stop bits · Parity Modbus RTU master Address area · Max. number of slaves Modbus RTU slave Address area Frame buffer · Buffer memory for frames · Number of frames which can be buffered Interrupts/diagnostics/status information Interrupts · Diagnostic interrupt · Hardware interrupt Diagnostic messages Diagnostics · Wire break Diagnostics display LED · RUN LED · ERROR LED · Receive RxD · Send TxD Electrical isolation · between backplane bus and interface Insulation Insulation tested with Ambient conditions Operating temperature · Horizontal installation, min. · Horizontal installation, max.

4 kbyte

6ES7541-1AD00-0AB0

7 or 8

1 or 2 bits

None, even, odd, always 1, always 0, any

4 kbyte 7 or 8 1 or 2 bits None, even, odd, always 1, always 0, any

1 to 247, extended 1 to 65,535 1

1 to 247, extended 1 to 65,535
8 kbyte 255

Yes No
Yes Yes
Yes; green LED Yes; red LED Yes; yellow LED Yes; yellow LED
Yes
707 V DC (Type Test)
0 °C 60 °C

CM PtP RS232 HF (6ES75411AD000AB0) communication module

24

Manual, 01/2013, A5E03790665-01

Technical specifications

· Vertical installation, min. · Vertical installation, max. Distributed operation · At SIMATIC S7-300 · At SIMATIC S7-400 · At SIMATIC S7-1500 · At Standard Profinet Controller · Supports Fast Startup Dimensions · Width · Height · Depth Weights · Weight, approx.

0 °C 40 °C

6ES7541-1AD00-0AB0

Yes Yes Yes Yes Yes

35 mm 147 mm 127 mm

0.22 kg

Additional general technical specifications for SIMATIC S7-1500 are available in the system manual S7 -1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

25

Technical specifications

CM PtP RS232 HF (6ES75411AD000AB0) communication module

26

Manual, 01/2013, A5E03790665-01

Dimensional drawing

A

This appendix contains the dimensional drawing of the communication module installed on a mounting rail and with a shield bracket. Always observe the specified dimensions for installation in cabinets, control rooms, etc.


   


  Figure A-1 Dimensional drawing of the CM PtP RS232 HF communication module

CM PtP RS232 HF (6ES75411AD000AB0) communication module

Manual, 01/2013, A5E03790665-01

27

Dimensional drawing

Figure A-2

 
Dimensional drawing of the CM PtP RS232 HF communication module with open front panel

CM PtP RS232 HF (6ES75411AD000AB0) communication module

28

Manual, 01/2013, A5E03790665-01

SIMATIC
S7-1500/ET 200MP Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _Di_ag_n_os_tic_a_la_rm_s_________5_ _Te_c_hn_ic_al_sp_e_cif_ic_at_ion_s______6_ _Di_m_en_si_on_a_l d_ra_w_in_g _______7_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd______A__

03/2019
A5E45488510-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E45488510-AA  02/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation
This manual supplements the ET 200MP Distributed I/O System (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual. It describes functions that generally affect the ET 200MP distributed I/O system.
The information provided in the present manual, the system manual and the function manuals enables you to commission the ET 200MP distributed I/O system.

Conventions

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that can be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this in the appendix.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

4

Manual, 03/2019, A5E45488510-AA

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2

Functions ................................................................................................................................12

2.3

Replacing the IO-Link Master CM 8xIO-Link communication module....................................12

2.4

Reset communication module to factory settings ...................................................................13

3 Connecting ........................................................................................................................................... 14

3.1

Wiring and block diagram .......................................................................................................14

4 Parameters/address space ................................................................................................................... 17

4.1

Parameters .............................................................................................................................17

4.2

Declaration of parameters ......................................................................................................19

4.3

Address space ........................................................................................................................21

5 Diagnostic alarms ................................................................................................................................. 26

5.1

Status and error displays ........................................................................................................26

5.2

Diagnostic alarms ...................................................................................................................29

6 Technical specifications ........................................................................................................................ 31

7 Dimensional drawing............................................................................................................................. 34

7.1

Dimensional drawing...............................................................................................................34

A Parameter data record .......................................................................................................................... 36

A.1

Parameter assignment and structure of parameter data set ..................................................36

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

6

Manual, 03/2019, A5E45488510-AA

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (https://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (https://support.industry.siemens.com/my/ww/en/CAxOnline).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

7

Documentation guide

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (https://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

8

Manual, 03/2019, A5E45488510-AA

Documentation guide

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

9

Product overview

2.1

Properties

Article number
6ES7547-1JF00-0AB0

View of the module

2

Properties

Figure 2-1 View of the IO-Link Master CM 8xIO-Link communication module
The module has the following technical properties:  IO-Link master according to IO-Link specification V1.1  Communication module with 8 ports (channels)  Data transmission rate COM1 (4.8 kbaud), COM2 (38.4 kbaud), COM3 (230.4 kbaud)  Standard DI mode  Suitable for connecting up to eight IO-Link devices (3-wire connection) or eight standard
encoders.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

10

Manual, 03/2019, A5E45488510-AA

Product overview 2.1 Properties

 Configurable diagnostics can be set for each channel  Automatic backup of the device parameters during replacement of the IO-Link device
(only for V1.1 devices)  Configuration limits:
­ Max. 32 bytes input and output data per port ­ Max. 240 bytes input and output data per module The module supports the following functions:  Firmware update  Identification and maintenance data (I&M)  IO-Link port configuration with S7-PCT  IO-Link port configuration with STEP7 or GSD (without S7-PCT)  Variable address range of I/O data with up to 240 byte inputs and 240 byte outputs  Master Backup with function block IO_LINK_MASTER  Port Qualifier Information (PQI)  I&M 0 to 3 The module can be used with the following engineering tools:

Table 2- 1 Engineering tools

Firmware version of the module
V1.0 (in CPU/PROFINET/PROFIBU S station)

S7-PCT As of V3.5 SP1

STEP 7 (TIA Portal) As of V15.1

GSD file X

Accessories/spare parts
The following accessories/spare parts are available for the module and can also be ordered separately:  Labeling strips  U connector  Universal front cover

Additional information
You can find more information on accessories in the ET 200MP Distributed I/O System (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual in the Accessories/Spare parts section.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

11

Product overview 2.2 Functions

2.2

Functions

IO-Link is a point-to-point connection between a master and a device. Both conventional and intelligent sensors/actuators can be used as devices at the IO-Link via unshielded standard cables using proven 3-wire technology. IO-Link is backward compatible to conventional sensors. The switching state and data channels are designed with trusted 24 V DC technology.

Reference

Additional information can be found in the IO-Link System (https://support.automation.siemens.com/WW/view/en/65949252) function manual.

2.3

Replacing the IO-Link Master CM 8xIO-Link communication module

Master Backup
You can back up the parameters of your module with the function block "IO_LINK_MASTER_8".
The "IO_LINK_MASTER_8" function block is used to read all relevant IO-Link device and IO-Link Master parameters. The parameters can be stored retentively at a central location, such as in a data block in the IO controller.
The status of the IO-Link devices or IO-Link ports stored in the IO-Link Master can be restored with the "IO_LINK_MASTER_8" function block. As a result, the IO-Link ports and the IO-Link Master are configured with the values stored in the master backup.
A typical application is the restoration of parameters after replacement of the IO-Link Master.

Module as of V 1.0

Firmware version Function block IO_LINK_MASTER_8 as of V 1.0.0

Compatibility table of the firmware versions

Note Availability Note that the Master Backup function is available only for IO-Link devices that are specified for the IO-Link Standard as of V1.1.
You can find additional information on the master backup functions in the section 'Integration into the automation system' in the IO-Link System (https://support.industry.siemens.com/cs/ww/en/view/65949252) function manual.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

12

Manual, 03/2019, A5E45488510-AA

Product overview 2.4 Reset communication module to factory settings

2.4

Reset communication module to factory settings

Effects of resetting to the factory settings
Use the "Reset to factory settings" function to restore the parameter assignments of your IO-Link Master CM 8xIO-Link communication module made with S7-PCT to the factory state. After a "Reset to factory settings", the parameters of the IO-Link Master CM 8xIO-Link communication module are assigned as follows:  The ports are in DI mode  The ports are mapped to the relative addresses 0.0 ... 0.7  The PortQualifier is disabled  I&M data 1 to 3 is deleted
Note The master backup of the IO-Link Master is deleted and the delivery condition is restored. You should reset a removed IO-Link Master CM 8xIO-Link communication module to the factory settings before you place it in storage.

Procedure

To perform a "Reset to factory settings", proceed as described in the S7-PCT online help.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

13

Connecting

3

3.1

Wiring and block diagram

This section includes the block diagram of the communication module IO-Link Master CM 8xIO-Link with the terminal assignments for 3-wire and 5-wire connection of IO-Link devices or 2-wire and 3-wire connection in DI operating mode.

You can use and combine the different wiring options for all channels.

Ensure that all devices are connected to the SELV/PELV power supply (or equivalent).

NOTICE
Internal transducer supply
Use only the supply voltage (USn/M) made available by the IO-Link Master CM 8xIO-Link communication module to supply the IO-Link device (L+/L-).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

14

Manual, 03/2019, A5E45488510-AA

Connecting 3.1 Wiring and block diagram
Wiring: 3-wire and 5-wire connection of IO-Link devices
The example in the following figure shows the terminal assignment of the communication module IO-Link Master CM 8xIO-Link (3- and 5-conductor connection of IO-Link devices).



Reverse polarity protection



Backplane bus interface



IO-Link circuitry



Device, 3-wire connection



Device, 5-wire connection

M

Ground

L+

Supply voltage 24 V DC

USn RUN ERROR PWR C/Qn Cn
Qn

Supply voltage (positive) Status display LED (green) Error display LED (red) Power LED (green) Port n Port status/channel error LED (green/red) LED channel status in standard DI mode (green)

Figure 3-1 Block diagram and terminal assignment for 3-wire and 5-wire connection of IO-Link devices

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

15

Connecting 3.1 Wiring and block diagram
Wiring: 2-wire and 3-wire connection in DI operating mode
The example in the following figure shows the terminal assignment of the IO-Link Master CM 8xIO-Link communication module in DI operating mode.

 Reverse polarity protection  Backplane bus interface  IO-Link circuitry  Sensor, 3-wire connection  Sensor, 2-wire connection
M Ground
L+ Supply voltage 24 V DC

USn RUN ERROR PWR C/Qn Cn Qn

Supply voltage (positive) Status display LED (green) Error display LED (red) Power LED (green) Port n Port status/channel error LED (green/red) LED channel status in standard DI mode (green)

Figure 3-2 Terminal assignment for 2-wire and 3-wire connection in DI operating mode

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

16

Manual, 03/2019, A5E45488510-AA

Parameters/address space

4

4.1

Parameters

Parameters (GSD file)
The following table shows the general parameters for the IO-Link Master CM 8xIO-Link communication module.
The default settings of the parameters are marked in bold in the "Value ranges" column.

Table 4- 1 General parameters (GSD file)

Parameters Diagnostics Diagnostics: No supply voltage L+

Value range · Disable

· Enable

Diagnostics: Port

· Disable

· Enable

Master parameter Port Qualifier Information (PQI)

· Disable

· Enable

Port configuration without S7-PCT · Disable

· Enable

Effective range Module Port (channel)
Module Module

The following table shows the port parameters for the IO-Link Master CM 8xIO-Link communication module.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

17

Manual, 03/2019, A5E45488510-AA

Parameters/address space 4.1 Parameters

Table 4- 2 Port parameter (GSD file)

Parameters Port configuration Operating mode
Length of the input data* Length of output data Vendor ID*** Device ID*** Inspection Level/Data Storage***

Value range

Default

· IO-Link Autostart

IO-Link Autostart

· IO-Link Manual · DI

· Deactivated

depending on the selected input/output type**
depending on the selected input/output type**
Manufacturer ID of the connected IO-Link device
Device ID of the connected IOLink device
· Identical type (V1.0) without Backup&Restore

depending on the selected input/output type** depending on the selected input/output type** 0
0
Type-compatible (V1.1) with Backup&Restore

· Type-compatible (V1.1) without Backup&Restore

· Type-compatible (V1.1) with Backup&Restore

· Type-compatible (V1.1) with Restore

* If PQI is activated, 1 byte less space remains for input data of the device. For example: GSD setting 16 bytes = 15 bytes + PQI
** Make sure not to exceed the maximum possible length of the input or output data for all ports. *** Only effective if you use the "IO-Link Manual" port mode.

Maximum possible length of the input or output data
Example: You have selected the configuration 64I/64Q. You have assigned 4 bytes of input data to the first port. For the remaining ports, you can assign a total of 60 bytes of input data.

Reference

You can find additional information on the Vendor ID and Device ID on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109748852).

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

18

Manual, 03/2019, A5E45488510-AA

Parameters/address space 4.2 Declaration of parameters

4.2

Declaration of parameters

Diagnostics: No supply voltage L+
Enabling the diagnostic alarm for missing or insufficient supply voltage L+.
Diagnostics: Port
This parameter allows the enabling of the diagnostics for the selected port. The possible diagnostics are dependent on the IO-Link device used. Additional information about the diagnostic interrupts can be found in the description of the utilized IO-Link device.
Port Qualifier Information
This parameter releases the Port Qualifier Information (PQI). The PQI provides information on the port status and the IO-Link device status.
Port configuration without S7-PCT
This parameter enables the port configuration without S7-PCT for the module.
Operating mode
This parameter determines the mode in which you operate the selected port. You can select from the following options:  IO-Link Autostart  IO-Link Manual  DI  Deactivated The setting of the port is granular and you can combine the operating modes as you like.
IO-Link Autostart The connected IO-Link device starts automatically (Plug&Play functionality). The IO-Link device is immediately ready for operation.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

19

Parameters/address space 4.2 Declaration of parameters
IO-Link Manual If the Vendor ID and Device ID match the connected device, the connected IO-Link device is automatically started. In other words, in contrast to "IO-Link Autostart", the system checks here whether the correct device is connected. You need to configure the Device ID / Vendor ID to enable this. You need to store the Vendor ID and Device ID of the connected IO-Link device in STEP 7. In addition, you can select the inspection level for data storage:  Identical type (V1.0) without Backup&Restore  Type-compatible (V1.1) without Backup&Restore  Type-compatible (V1.1) with Backup&Restore  Type-compatible (V1.1) with Restore You can find instructions for determining the Vendor ID and Device ID on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109748852).
DI The port operates as standard digital input.
Deactivated The port is deactivated.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

20

Manual, 03/2019, A5E45488510-AA

Parameters/address space 4.3 Address space

4.3

Address space

Configuration options of the communication module IO-Link Master CM 8xIO-Link
The size of the input and output addresses of the IO-Link Master CM 8xIO-Link communication module with firmware version V1.0 are 32 bytes per port in each case.
The following table provides an overview of the configuration options of the supported address areas for I/O data:

Module configuration
8 byte inputs 8 byte outputs 16 byte inputs 0 byte outputs 16 byte inputs 16 byte outputs 24 byte inputs 16 byte outputs 32 byte inputs 32 byte outputs 40 byte inputs 32 byte outputs 64 byte inputs 64 byte outputs 72 byte inputs 64 byte outputs 128 byte inputs 128 byte outputs 136 byte inputs 128 byte outputs 240 byte inputs 240 byte outputs

IM 155-5 PN BA
X

IM 155-5 PN ST
X

IM 155-5 PN HF
X

IM 155-5 DP ST
X

S7-1500 CPU
X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

-

X

X

X

X

-

X

-

X

X

-

X

-

X

X

-

X

-

X

X

-

X

-

X

X

-

X

The IO area defined for an ET 200MP limits the number of IO modules per station. The interface module supports a maximum of 512 bytes for input and output data for all I/O modules in the station. Exceptions are 2 interface modules: IM 155-5 PN BA, which only supports 64 bytes, and IM 155-5 DP ST with a limit of 244 bytes per station.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

21

Parameters/address space 4.3 Address space

The following table provides an overview of the maximum address spaces for the respective interface modules.

IM
IM 155-5 PN BA IM 155-5 PN ST IM 155-5 PN HF IM 155-5 DP ST

Firmware version
V4.0.2 V4.1.0 V3.0.1 V3.0.0

Max. address space per station 64 bytes 512 bytes 512 bytes 244 bytes

Max. address space per module 64 bytes 256 bytes 256 bytes 32 bytes

Note IO-Link Master behind an IM 155-5 DP ST
In connection with an IM 155-5 DP ST, you configure the IO-Link master exclusively using a GSD file. Install the corresponding GSD file. You can find this for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/80206700).

Port configuration CPU
With an IO-Link Master CM 8xIO-Link, you can commission the IO-Link ports of the IO-Link Master or the connected IO-Link devices in two different ways:  Port configuration with STEP7 or GSD (without S7-PCT)  Port configuration with S7-PCT
Port configuration with STEP7 or GSD (without S7-PCT)
Requirements You have selected the "Port configuration without S7-PCT" check box in the configuration of the IO-Link master in STEP 7. Procedure You configure the IO-Link master directly in STEP 7:  Activate the diagnostics  Configuration of the I/O data lengths for each port  Activating the Port Qualifier Information (PQI)  Port mode:
­ Operation in "IO-Link Autostart" mode (default) ­ Operation in "IO-Link Manual" mode ­ Operated as DI ­ Deactivated

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

22

Manual, 03/2019, A5E45488510-AA

Parameters/address space 4.3 Address space
Port configuration with S7-PCT
Requirements You have cleared the "Port configuration without S7-PCT" check box in the configuration of the IO-Link master in STEP 7. Procedure You configure the IO-Link Master ports with the Port Configuration Tool S7-PCT, V3.5 SP1 or higher. In doing so, select the IO-Link device from the device catalog of S7-PCT and assign the device to an IO-Link port.
Port Qualifier Information (PQI)
You can activate the Port Qualifier Information (PQI) for your IO-Link Master.
Note Port Qualifier Information (PQI) If you have activated the Port Qualifier Information (PQI), it is always transferred with the size 1 byte together with the input data of the IO-Link device. PQI is not available for 8 bytes input / 8 bytes output.
The figure below shows the structure of the PQI byte.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

23

Parameters/address space 4.3 Address space

Figure 4-1 Structure of the PQI byte Description of the PQI byte:

Name Device availability
Device error
Port Qualifier

Value 0 1 0 1 0 1

Meaning IO-Link device is not available IO-Link device is in the "Preoperate" or "Operate" state No error An error or warning has occurred. IO data is not valid IO data is valid

Position of the PQI byte in the process image (example):

Figure 4-2 Address space IO-Link Master
In the example above, 16 bytes are set for port 1, the IO-Link device transfers the data in bytes 0 to 7 and the PQI byte is set to byte 15.
Note Restriction The graphic only applies to the input range.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

24

Manual, 03/2019, A5E45488510-AA

Parameters/address space 4.3 Address space
Standard DI mode
The following figure shows the assignment of the address space of a port for the IO-Link Master CM 8xIO-Link, if you have configured the port as a digital input.

Reference

Figure 4-3 Address space of the inputs of the IO-Link Master CM 8xIO-Link in standard DI mode
You can find additional information in the IO-Link System (https://support.automation.siemens.com/WW/view/en/65949252) function manual.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

25

Diagnostic alarms

5

5.1

Status and error displays

LED display

Cn Qn PWR n
Figure 5-1

Port status/channel error Channel status in standard DI mode Supply voltage L+ Channel number
LED display

Meaning of the LED displays
The following tables show the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in the Diagnostic alarms (Page 29) chapter.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

26

Manual, 03/2019, A5E45488510-AA

Diagnostic alarms 5.1 Status and error displays

RUN and ERROR LED

Table 5- 1 Status and error displays RUN and ERROR

LED

Meaning

RUN ERROR

Voltage missing or too low at back-

Off

Off plane bus.

Flashes On On
Flashes

The module starts up and flashes until Off the valid parameter assignment is set.
Module parameters are assigned. Off
Indicates module errors (at least one Flashes error is present on one channel, e.g.
wire break).
The hardware is defective. Flashes

Solution
· Switch on the CPU and/or the system power supply modules.
· Verify that the U connectors are inserted.
· Check whether too many modules are inserted.
-
Evaluate the diagnostics and eliminate the error (e.g. wire break).
Replace the module.

LED PWR

Table 5- 2 POWER status display

LED P Off
On (green)

Meaning

Solution

Supply voltage L+ too low or missing. Check the supply voltage L+.

Supply voltage L+ is present and OK. -

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

27

Diagnostic alarms 5.1 Status and error displays

Cn LEDs

Valid for IO-Link port in port status.

Table 5- 3 Status displays of LEDs C1 to C8

C1 to C8 Off
Flashes (green) On (green)
On (red)

Meaning The port is disabled or in standard DI mode.
The port is in IO-Link mode, the device is not connected or the port is not connected with the configured device. Port in IO-Link mode, device not connected
· Wire break or short-circuit to ground · Supply voltage L+ missing or too low · IO-Link device error

Qn LEDs

Valid for the IO-Link port that is in standard DI mode.

Table 5- 4 Status displays of LEDs Q1 to Q8

Q1 to Q8 Off
On (green)

Meaning Process signal = 0 in standard DI mode, deactivated or in IO-Link mode
Process signal = 1 in standard DI mode

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

28

Manual, 03/2019, A5E45488510-AA

Diagnostic alarms 5.2 Diagnostic alarms

5.2

Diagnostic alarms

For each diagnostics event, a diagnostic alarm is issued and the ERROR LED flashes red on the communication module. You can read out the diagnostics alarms, for example, in the diagnostics buffer of the CPU. You can evaluate the error codes with the user program.

Table 5- 5 Error types

Diagnostic alarm Short-circuit

Error code
1H

Undervoltage

2H

Overvoltage

3H

Overheating

5H

Wire break

6H

Overflow

7H

Underflow

8H

Error

9H

Configuration

10H

error

Meaning (IO-Link error code)
· Short-circuit in the process cables on the IO-Link device (1804H) · Short-circuit on IO device (7710H) · Supply voltage too low (5111H, 5112H) · Supply voltage too high (5110H) · Temperature exceeded on master (1805H) · Temperature exceeded on device (4000H, 4210H) · No IO-Link device connected · There is a break in the signal line to the IO-Link device · IO-Link device cannot communicate due to another error (1800H) · Process tag range exceeded (8C10H) · Measuring range exceeded (8C20H) · Process tag range too low (8C30H) · All IO-Link error codes which are not listed here are mapped to
this error · Incorrect device (1802H) · Vendor ID and Device ID not defined (1817H) · Process data length of the IO-Link device exceeded (1818H) · No cycle time configured (1819H) · Could not configure IO-Link Master (1882H, 1883H) · Storage error (1886H) · Process data length exceeded (1887H) · PQI not supported (1889H) · Device was not configured correctly (6320H, 6321H, 6350H)

IO-Link Master
X
X X

IO-Link device
X X X
X

X
X X X

X

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

29

Diagnostic alarms 5.2 Diagnostic alarms

Diagnostic alarm
Supply voltage missing

Error code
11H

Defective fuse 12H

Safety shutdown 19H

External fault

1 AH

Meaning (IO-Link error code)
· L+ supply voltage too low (<20 V) (1890H) · L+ supply voltage for device missing (1806H) · L+ supply voltage for device too low (<20 V) (1807H) · Fuse on device is defective (5101H) · Serious error (master has to be replaced) (1880H) · Error in data storage (1809H, 180AH, 180BH, 180CH, 180DH) · More than 6 errors are pending simultaneously on the IO-Link
device (1808H) · Consistency error in electronic coding element (1885H) · Process data length exceeded (1887H)

IO-Link Master
X

IO-Link device

X X X

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

30

Manual, 03/2019, A5E45488510-AA

Technical specifications

6

Technical specifications of the IO-Link Master CM 8xIO-Link communication module

Article number General information
Product type designation HW functional status Firmware version · FW update possible
Product function · I&M data
Engineering with · STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFIBUS as of GSD version/GSD revision
· PROFINET as of GSD version/GSD revision
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection
Input current Current consumption, max.
Encoder supply Number of outputs
Output current · Rated value
24 V encoder supply · Short-circuit protection
IO-Link Number of ports · of which simultaneously controllable IO-Link protocol 1.0

6ES7547-1JF00-0AB0 CM 8xIO-Link FS01 V1.0.0 Yes
Yes; I&M0 to I&M3
V15.1 with HSP 274
Configurable via GSD file
GSD as of Revision 5
GSDML V2.34
24 V 20.4 V 28.8 V Yes 50 mA; without load 8 1 A; 4 A total current per module
Yes; per channel, electronic
8 8 Yes

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

31

Manual, 03/2019, A5E45488510-AA

Technical specifications

Article number IO-Link protocol 1.1 Cycle time, min. Size of process data, input per port Size of process data, input per module Size of process data, output per port Size of process data, output per module Memory size for device parameter Master backup Configuration without S7-PCT Cable length unshielded, max.
Operating modes · IO-Link
· DI
· DQ Time Based IO
­ TIO IO-Link IN ­ TIO IO-Link OUT ­ TIO IO-Link IN/OUT Connection of IO-Link devices · Port type A
· Port type B Interrupts/diagnostics/status information Alarms
· Diagnostic alarm
Diagnostic messages · Monitoring the supply voltage
· Wire-break
· Short-circuit
· Group error Diagnostics indication LED
· Monitoring of the supply voltage (PWRLED)
· Channel status display
· for channel diagnostics
· for module diagnostics Potential separation Potential separation channels
· between the channels

6ES7547-1JF00-0AB0 Yes 2 ms 33 byte; max. 240 byte; max. 32 byte; max. 240 byte; max. 2 kbyte; for each port Yes Yes 20 m
Yes Yes No
No No No
Yes Yes; 24 V DC via external terminal
Yes; The port diagnosis is available in the IO-Link mode only.
Yes Yes Yes Yes
Yes; Green LED
Yes; Green LED Yes; Red LED Yes; Red LED
No

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

32

Manual, 03/2019, A5E45488510-AA

Technical specifications

Article number · between the channels and backplane bus
Isolation Isolation tested with
Ambient conditions Ambient temperature during operation
· horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max. Dimensions
Width Height Depth

6ES7547-1JF00-0AB0 Yes
707 V DC (type test)
0 °C 60 °C; Observe derating 0 °C 40 °C; Observe derating
35 mm 147 mm 129 mm

Power reduction (derating) to total current of outputs, per module,
The following derating curves show the load capacity of the transducer supply outputs in relation to the mounting position and the ambient temperature.

 Horizontal mounting of the system  Vertical mounting of the system
Figure 6-1 Derating curve, IO-Link master

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

33

Dimensional drawing

7

7.1

Dimensional drawing

The dimensional drawing of the module on the mounting rail, as well as a dimensional drawing with open front panel, are provided in the appendix. Always observe the specified dimensions for installation in cabinets, control rooms, etc.

Figure 7-1 Dimensional drawing of the IO-Link Master CM 8xIO-Link module

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

34

Manual, 03/2019, A5E45488510-AA

Dimensional drawing 7.1 Dimensional drawing
Figure 7-2 Dimensional drawing of the IO-Link Master CM 8xIO-Link module, side view with open front cover

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

35

Parameter data record

A

A.1

Parameter assignment and structure of parameter data set
The data record of the module has an identical structure, regardless of whether you configure the module with PROFIBUS DP or PROFINET IO. With data record 128, you can reconfigure the module in your user program regardless of your programming.
The following figures describe the structure of data record 128 as of firmware version V1.0.

Configuration in the user program
You can configure the modules in runtime.

Changing parameters in RUN
The "WRREC" instruction is used to transfer the parameters to the module using data record 128. The parameters set with STEP 7 are not changed in the CPU by this action. This means the parameters set in STEP 7 are still valid after a restart.

Output parameter STATUS
If errors occur when transmitting parameters with the "WRREC" instruction, the module continues operation with the previous parameter assignment. The STATUS output parameter contains a corresponding error code.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7 online help.

Error message

The module always checks all the values of the transferred data record. Only if all the values were transferred without errors does the module apply the values from the data record.
The instruction WRREC for writing data records returns corresponding error codes when errors occur in the parameter STATUS.
The following table shows the module-specific error codes and their meaning for the parameter data record 128:

Table A- 1 Error message

Error code 80B1H 80E0H 80E1H

Meaning Error in data length Error in header information Parameter error

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

36

Manual, 03/2019, A5E45488510-AA

Structure of data record 128

Parameter data record A.1 Parameter assignment and structure of parameter data set

Figure A-1 Structure of data record 128
Header information
The figure below shows the structure of the header information.
Figure A-2 Header information

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

37

Parameter data record A.1 Parameter assignment and structure of parameter data set IO-Link start parameters
The following figure shows the structure of the IO-Link start parameter. Activate a parameter by setting the corresponding bit to "1".
Figure A-3 IO-Link start parameters

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

38

Manual, 03/2019, A5E45488510-AA

Parameter data record A.1 Parameter assignment and structure of parameter data set
Port parameter
The following figure shows an extract from the structure of the port parameter. Activate a parameter by setting the corresponding bit to "1". If you have selected IO-Link Manual operating mode, you must enter the Vendor ID (byte x+5 and x+6) and Device ID (byte x+7 to x+10) yourself. You can find the Vendor ID and Device ID in the IODD of the IO-Link device being used.

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

Manual, 03/2019, A5E45488510-AA

39

Parameter data record A.1 Parameter assignment and structure of parameter data set
Figure A-4 Port parameter

Communication module IO-Link Master CM 8xIO-Link (6ES7547-1JF00-0AB0)

40

Manual, 03/2019, A5E45488510-AA

SIMATIC NET S7-1500 - PROFINET CM 1542-1
Operating Instructions

_Pr_ef_ac_e_______________ _Pr_op_e_rti_es_a_nd_f_un_c_tio_ns______1_ _LE_D_s_______________2_ _Icno_smta_mll_aist_sioion_n,_icno_gn,_noep_cet_rina_gtio_unp_, ____3_ _Co_n_fig_u_ra_tio_n,_p_ro_gr_am_m_i_ng____4_ _Di_ag_n_os_tic_s_an_d_u_pk_e_ep______5_ _Te_c_hn_ic_al_sp_e_cif_ic_at_ion_s______6_ _Ap_p_ro_va_ls_____________7_ _Do_c_um_e_n_tat_io_n _re_fe_re_nc_es____A__

01/2017
C79000-G8976-C355-03

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

C79000-G8976-C355-03  01/2017 Subject to change

Copyright © Siemens AG 2014 - 2016. All rights reserved

Preface
Validity of this manual
This document contains information on the following product: Communications module CM 1542-1 Article number 6GK7 542-1AX00-0XE0 Hardware product version 1 Firmware version V2.0 Communications module for SIMATIC S7-1500
View of the CM

 LEDs for status and error displays  LED display of the Ethernet ports X1 P1 and X1 P2  Type plate  PROFINET interface: 2 x 8-pin RJ-45 jack  Label with MAC address

Figure 1

View of the CM 1542-1 with closed (left) and open (right) front cover

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

3

Preface
Address label: Unique MAC address preset for the CM
When supplied, the CM has a total of 3 default MAC addresses with the following assignment:  PROFINET interface
The MAC address of the PROFINET interface is printed on the housing. (visible in STEP 7 if nodes are reachable)  One MAC address for each of the 2 Ethernet ports of the PROFINET interface The MAC addresses of the Ethernet ports are required only for detection and evaluation of neighborhood and topology relations (LLDP).
Abbreviations and names
 CP In this document, the term "CP" is also used instead of the full product name.
 STEP 7 The name STEP 7 is used to mean the STEP 7 Professional configuration tool.
Purpose of the manual
These Operating Instructions supplement the S7-1500 system manual. With the information in this manual and the system manual, you will be able to commission the CM.
New in this release
 Firmware version V2.0 with the following new functions: ­ PROFINET IO device, with the following functions among others: iDevice and prioritized startup, see section Communication services (Page 11). ­ Can be used as PROFINET IO controller in standard machines See section CM in multiple use IO systems (standard machines) (Page 32). ­ IP routing via the backplane bus See section IP routing (Page 31). The new functions can be configured with the STEP 7 version specified in the section Project engineering (Page 17).
 Editorial revision
Replaced edition
Release 07/2014

CM 1542-1

4

Operating Instructions, 01/2017, C79000-G8976-C355-03

Preface

Current manual release on the Internet
You will also find the current version of these operating instructions on the Internet pages of Siemens Automation Customer Support Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/man):

Structure of the documentation
The following documents supplement these operating instructions for the CM 1542-1. You will find links to the documents on the Internet in the appendix Documentation references (Page 49).

Table 1

Documentation for the CM 1542-1

Topic
System description

Documentation System manual: S7-1500 Automation System

Most important contents · Application planning · Installation

· Connecting up

· Commissioning

Module properties Power supplies manual Signal modules manual

· Connecting up
· Parameter assignment/addressing

· Interrupts, error messages, diagnostics and system alarms

· Technical specifications

· Dimension drawing

System diagnos- System diagnostics function manual tics

· Overview
· Diagnostics evaluation for hardware/software

Communication Communication function manual

· Overview

Function manual PROFINET with STEP 7 Professional

· PROFINET basics · PROFINET functions

· PROFINET diagnostics

Web Server function manual

· Function

· Operation

Interference-free installation of control systems

Interference-free installation of control systems · Basics

function manual

· Electromagnetic compatibil-

ity

· Lightning protection

· Housing selection

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

5

Preface

Topic Memory concept
Cycle and response times

Documentation

Most important contents

Structure and Use of the CPU Memory function · Structure

manual

· How it works

· Use

Cycle and response times

· Basics

· Calculations

CM documentation in the SIMATIC NET Manual Collection (article number A5E00069051)
The "SIMATIC NET Manual Collection" DVD contains the device manuals and descriptions of all SIMATIC NET products current at the time it was created. It is updated at regular intervals.

Version History / Current Downloads for the SIMATIC NET S7 CPs
The "Version History/Current Downloads for SIMATIC NET S7 CPs" provides information on all CPs available up to now for SIMATIC S7 (Industrial Ethernet, PROFIBUS) and IE/PB Link.
The current version of these documents can be found on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/109474421)

License conditions
Note Open source software The product contains open source software. Read the license conditions for open source software carefully before using the product.
You will find license conditions in the following document on the supplied data medium:  OSS_CM15421_86.pdf

Firmware

The firmware is signed and encrypted. This ensures that only firmware created by Siemens can be downloaded to the device.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.

CM 1542-1

6

Operating Instructions, 01/2017, C79000-G8976-C355-03

Preface
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit Link: (http://www.siemens.com/industrialsecurity) Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under Link: (http://www.siemens.com/industrialsecurity).
FAQs on the Internet
You will find detailed information (FAQs) on using the CM described here on the Internet at the following address (entry type "FAQ"): Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/faq)
SIMATIC NET glossary
Explanations of many of the specialist terms used in this documentation can be found in the SIMATIC NET glossary. You will find the SIMATIC NET glossary on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/50305045)
Recycling and disposal
The product is low in pollutants, can be recycled and meets the requirements of the WEEE directive 2012/19/EU "Waste Electrical and Electronic Equipment". Do not dispose of the product at public disposal sites. For environmentally friendly recycling and the disposal of your old device contact a certified disposal company for electronic scrap or your Siemens contact. Keep to the local regulations. You will find information on returning the product on the Internet pages of Siemens Industry Online Support: Link: (https://support.industry.siemens.com/cs/ww/en/view/109479891)

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

7

Preface

CM 1542-1

8

Operating Instructions, 01/2017, C79000-G8976-C355-03

Table of contents

Preface ................................................................................................................................................... 3

1 Properties and functions........................................................................................................................ 11

1.1

Communication services.........................................................................................................11

1.2

Further functions .....................................................................................................................12

1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6

Configuration limits and performance data .............................................................................13 Transmission and reaction times ............................................................................................13 Connection resources .............................................................................................................13 Characteristic data Open User Communication incl. e-mail ...................................................14 Characteristics of S7 communication .....................................................................................15 PROFINET IO characteristic data...........................................................................................16 Rack components ...................................................................................................................16

1.4 1.4.1 1.4.2

Requirements for use..............................................................................................................17 Project engineering .................................................................................................................17 Programming ..........................................................................................................................17

2 LEDs..................................................................................................................................................... 19

3 Installation, connecting up, commissioning, operation ........................................................................... 21

3.1 3.1.1 3.1.2 3.1.3 3.1.4

Important notes on using the device.......................................................................................21 Notices on use in hazardous areas ........................................................................................21 Notices on use in hazardous areas according to ATEX / IECEx ............................................22 Notices regarding use in hazardous areas according to UL HazLoc .....................................23 Notices on use in hazardous areas according to FM .............................................................23

3.2

Installing and commissioning the CM 1542-1 .........................................................................24

3.3

Terminal assignment...............................................................................................................25

3.4

Mode of the CPU - effect on the CM.......................................................................................25

4 Configuration, programming .................................................................................................................. 27

4.1

Security recommendations .....................................................................................................27

4.2 4.2.1

Network settings .....................................................................................................................30 Fast Ethernet ..........................................................................................................................30

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5

IP configuration .......................................................................................................................30 Points to note about IP configuration......................................................................................30 Restart after detection of a duplicate IP address in the network ............................................31 Remove retentive storage of the IP address if there are duplicate addresses.......................31 IP routing.................................................................................................................................31 CM in multiple use IO systems (standard machines) .............................................................32

4.4

Media redundancy ..................................................................................................................33

4.5

Time-of-day synchronization...................................................................................................33

4.6

Program blocks for OUC.........................................................................................................34

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

9

Table of contents

5 Diagnostics and upkeep ........................................................................................................................ 37

5.1

Diagnostics options ................................................................................................................ 37

5.2

SNMP ..................................................................................................................................... 37

5.3

Replacing a module without a programming device .............................................................. 39

6 Technical specifications ........................................................................................................................ 41

7 Approvals ............................................................................................................................................. 43

A Documentation references .................................................................................................................... 49

A.1

Introduction to the documentation.......................................................................................... 49

A.2

System manual S7-1500........................................................................................................ 49

A.3

Diagnostics............................................................................................................................. 50

A.4

Communication ...................................................................................................................... 50

A.5

Interference-free installation of control systems .................................................................... 51

A.6

Memory concept..................................................................................................................... 51

A.7

Cycle and response times...................................................................................................... 51

Index .................................................................................................................................................... 53

CM 1542-1

10

Operating Instructions, 01/2017, C79000-G8976-C355-03

Properties and functions

1

1.1

Communication services

The CM supports the following communications services:
 PROFINET IO PROFINET IO allows direct access to IO devices over Industrial Ethernet. ­ Real-Time communication (RT) ­ Isochronous Real-Time communication (IRT) ­ Media redundancy MRP ­ Device replacement without exchangeable storage medium ­ IO controller ­ IO device (iDevice, Shared Device, Prioritized startup) ­ Isochronous real time
 Open User Communication Open User Communication supports the following communications services via the CM using programmed or configured communications connections: ­ TCP (complying with RFC 793), ISO-on-TCP (complying with RFC 1006) and UDP (complying with RFC 768) With the interface via TCP connections, the CM supports the socket interface to TCP/IP available on practically every end system. ­ Multicast with UDP The multicast mode is made possible by selecting a suitable IP address when configuring connections. A maximum of six multicast groups are supported via UDP.
 S7 communication ­ PG communication ­ Operator control and monitoring functions (HMI communication) ­ Data exchange over S7 connections

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

11

Properties and functions 1.2 Further functions

1.2

Further functions

Timeofday synchronization over Industrial Ethernet using the NTP mode (NTP: Network Time Protocol)
The CM sends timeofday queries at regular intervals to an NTP server and synchronizes its local time of day.
The time is also be forwarded automatically to the CPU modules in the S7 station allowing the time to be synchronized in the entire S7 station.

Media redundancy (MRP)
Within an Ethernet network with a ring topology, the CM supports the media redundancy protocol MRP. You can assign the role of "Client" or "Manager (Auto)" to the CM.

Addressable with the factoryset MAC address
To assign the IP address to a new CM (direct from the factory), it can be accessed using the preset MAC address on the interface being used. Online address assignment is made in STEP 7.

SNMP agent

The CM supports data queries using SNMP in version V1 (Simple Network Management Protocol).
For details, see section SNMP (Page 37).

IP configuration - IPv4
The essential features of IP configuration for the CM:
 The CM supports the use of IP addresses according to IPv4.
 You can configure how and with which method the CM is assigned the IP address, the subnet mask and the address of a gateway.
 The IP configuration and the connection configuration (IPv4) can also be assigned to the CM by the user program (for program blocks refer to the section Programming (Page 17)).
Note: Does not apply to S7 connections.

IP routing

The CM supports static IP routing (IPv4) to other CM 1542-1 V2.0 / CP 1543-1 V2.0 in an S7-1500 system.
For details, see section IP routing (Page 31).

CM 1542-1

12

Operating Instructions, 01/2017, C79000-G8976-C355-03

Properties and functions 1.3 Configuration limits and performance data
Access to the Web server of the CPU
Via the LAN interface of the CM, you have access to the Web server of the CPU. With the aid of the Web server of the CPU, you can read out module data from a station. Note the special description of the Web server; refer to the section Documentation references (Page 49)
Note Web server access using the HTTPS protocol The Web server of a SIMATIC S7-1500 station is located in the CPU. For this reason, when there is secure access (HTTPS) to the Web server of the station using the IP address of the CM 1542-1, the SSL certificate of the CPU is displayed.

1.3

Configuration limits and performance data

1.3.1

Transmission and reaction times

Measured values on the Internet
Note Measured values of transmission and reaction times in PROFINET networks for a series of configurations can be found on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/25209605)

1.3.2

Connection resources

Characteristic
Total number of freely usable connections on Industrial Ethernet

Explanation / values 64 configurable connections, 1 PG connection The value applies to the total number of connections of the following types:
· Connections for open communications services

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

13

Properties and functions 1.3 Configuration limits and performance data
Note Connection resources CPU dependent Depending on the CPU type, different numbers of connection resources are available. The number of connection resources is the decisive factor for the number of configurable connections. This means that the values that can actually be achieved may be lower than specified in this section "Properties and functions" describing the CM.

1.3.3

Characteristic data Open User Communication incl. e-mail
Open User Communication (OUC) provides access to communication over TCP, ISO-onTCP and UDP connections.

Characteristic Number of connections
Maximum data length for program blocks LAN interface max. data field length generated by the CM per protocol data unit(TPDU = transport protocol data unit)

Explanation / values
· Max. number of connections in total (configured and programmed:
(ISO-on-TCP + TCP + UDP + e-Mail)  64
of which: ­ TCP connections: 0 ... 64 1) ­ ISO-on-TCP connections: 0 ... 64 ­ Total number of UDP connections (specified and free) that can be
configured: 0 ... 64 ­ Connection for e.mail: 0 ... 64;
only one e-mail can be processed at any one time Notes: · 1) Avoid overload at receiving end
The flow control on TCP connections cannot control permanent overload of the recipient. You should therefore make sure that the processing capabilities of a receiving CM are not permanently exceeded by the sender (approximately 150 200 messages per second). Program blocks allow the transfer of user data in the following lengths: 1. ISO-on-TCP, TCP: 1 - 64 kbytes 2. UDP: 1 - 1452 bytes 3. E-mail (job header + user data): 1 - 256 bytes e-mail attachment:  64 kbytes
· For sending ­ ISO-on-TCP, TCP: 1452 bytes / TPDU
· For receiving ­ ISO-on-TCP: 512 bytes / TPDU ­ TCP: 1452 bytes / TPDU

CM 1542-1

14

Operating Instructions, 01/2017, C79000-G8976-C355-03

Properties and functions 1.3 Configuration limits and performance data

Note Connection resources of the CPU
Depending on the CPU type, different numbers of connection resources are available. The number of connection resources is the decisive factor for the number of configurable connections. This means that the values that can actually be achieved may be lower than specified in this section describing the CM.
You will find detailed information on the topic of connection resources in the function manual /4/ (Page 50).

Restrictions for UDP
 Restrictions UDP broadcast / multicast
To avoid overloading the CP due to high broadcast / multicast frame traffic, the receipt of UDP broadcast / multicast on the CP is limited
 UDP frame buffering
Length of the frame buffer: At least 7360 bytes
Following a buffer overflow, newly arriving frames that are not fetched by the user program are discarded.

1.3.4

Characteristics of S7 communication
S7 communication provides data transfer via the ISO-on-TCP protocol.

Characteristic
Total number of freely usable S7 connections on Industrial Ethernet
LAN interface - data field length generated by CM per protocol data unit (PDU = protocol data unit)

Explanation / values Max. 64
· for sending: 480 bytes / PDU · for receiving: 480 bytes / PDU

Note Maximum values for an S7-1500 station
Depending on the CPU you are using, there are limit values for the S7-1500 station. Note the information in the relevant documentation.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

15

Properties and functions 1.3 Configuration limits and performance data

1.3.5

PROFINET IO characteristic data

Configuration limits of the CM as an IO controller
The CM supports the following maximum configuration as a PROFINET IO controller:

Characteristic Number of operable PROFINET IO devices

Explanation / values 128, of which: · Max. 64 IRT devices

Size of the input area over all PROFINET IO devices *)

Max. 8192 bytes

Size of the output area over all PROFINET IO devices

Max. 8192 bytes

Size of the IO data area per submodule of a module in an IO · Inputs: 256 bytes

device

· Outputs: 256 bytes

Size of the consistency area for a submodule

256 bytes

*) The diagnostics addresses of the PROFINET IO devices cannot be used as an input on the IO controller. The data area of the inputs is reduced by the diagnostics addresses used.

1.3.6

Rack components
When using the CM type described here, the following limits apply:  The number of CMs that can be operated in a rack depends on the CPU type being used.
By operating several CMs, you can increase the configuration limits listed in the section Properties and functions (Page 11) for the station as the whole. The CPU does, however, have set limits for the entire configuration. Note the information in the documentation of the CPU, refer to the section Documentation references (Page 49)
Note Power supply via the CPU adequate or additional power supply modules required You can operate a certain number of modules in the S7-1500 station without an additional power supply. Make sure that you keep to the specified power feed to the backplane bus for the particular CPU type. Depending on the configuration of the S71500 station you may need to provide additional power supply modules.

CM 1542-1

16

Operating Instructions, 01/2017, C79000-G8976-C355-03

1.4

Requirements for use

Properties and functions 1.4 Requirements for use

1.4.1

Project engineering

Software for configuration and online functions
To configure the CP, the following configuration tool is required:

STEP 7 version STEP 7 Professional V13 STEP 7 Professional V14

Functions of the CM
Most functions of the CM can be configured.
The full functionality of the CM can be configured with the new functions of the firmware version according to Preface (Page 3).

Downloading the configuration data
When there is a download to the CPU, the CM is supplied with the relevant configuration data. The configuration data can be downloaded to the CPU via a memory card or any Ethernet/PROFINET interface of the S7-1500 station.

1.4.2

Programming

Program blocks
For communications services, there are preprogrammed program blocks (instructions) available as the interface in your STEP 7 user program.
Table 1- 1 Instructions for communications services

Protocol TCP ISO-on-TCP
UDP
E-mail

Program block (instruction) Establish connection and send/receive data via:
· TSEND_C / TRCV_C or
· TCON, TSEND / TRCV (Termination of the connection possible using TDISCON)

System data type · TCON_IP_v4 · TCON_Configured · TCON_QDN
· TCON_IP_RFC

· TCON, TUSEND/TURCV (Termination of the connection possible using TDISCON)

· TCON_IP_v4 · TCON_QDN

· TMAIL_C

· TMail_V4 · TMAIL_FQDN

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

17

Properties and functions 1.4 Requirements for use

Table 1- 2 Instructions for configuration tasks

Function
Configuration of the Ethernet interface

Program block (instruction) · T_CONFIG

System data type · CONF_DATA

For more detailed information, refer to section Auto-Hotspot.

Refer to the documentation of the program blocks in the online help of STEP 7.

See also

Program blocks for OUC (Page 34)

CM 1542-1

18

Operating Instructions, 01/2017, C79000-G8976-C355-03

LEDs

2

 RUN/STOP  ERROR  MAINT  X1 P1 LINK/ACT  X1 P2 LINK/ACT
Figure 2-1 LED display of the CM 1542-1 (without front cover)

Meaning of the LED displays
The CM 1542-1 has 3 LEDs to display the current operating status and the diagnostics status and these have the following meanings:  RUN/STOP (single color green)  ERROR (single color red)  MAINT (single color yellow) The following table shows the meaning of the various combinations of colors of the RUN, ERROR and MAINT LEDs.
Table 2- 1 Meaning of the LEDs

RUN/STOP LED off
LED lit green

ERROR LED off LED lit red

MAINT LED off LED lit yellow

Meaning No supply voltage on the CM or supply voltage too low
LED test during startup

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

19

LEDs

RUN/STOP LED lit green LED lit green LED lit green LED lit green LED lit green LED lit green LED flashing green LED flashing green

ERROR LED lit red
LED off LED flashing red
LED off LED off
LED flashing red LED off
LED flashing red

MAINT LED off LED off LED off

Meaning CM startup
CM is in RUN mode. No disruptions. A diagnostics event has occurred.

LED lit yellow

Maintenance is demanded.

· Maintenance is required LED flashing yellow · Downloading the user program

-

Duplicate IP address detected.

Ethernet interface unreachable.

LED off

· No CM configuration exists · Loading firmware

Module fault LED flashing yellow (LEDs flashing synchronized)

Meaning of the LED displays of the PROFINET ports: X1 P1 / X1 P2
To signal whether a connection exists and data is being transferred each port has a twocolor LED (green/yellow):
 X1 P1 LINK/ACT
 X1 P2 LINK/ACT
The following table shows the meaning of the various color combinations of the LEDs X1 P1 and X1 P2.
Table 2- 2 Meaning of the LEDs

X1 P1 LINK/ACT / X1 P2 LINK/ACT

green off

yellow off

flashing green green on

yellow off yellow off

green on

yellow flickers

Meaning
No connection to PROFINET There is no Ethernet connection between the Ethernet interface of the CM and the communications partner. At the current time, there is no data being received/sent via the Ethernet interface. The "node flash test" is being performed.
Connection to PROFINET exists There is an Ethernet connection between the Ethernet interface of the CM and a communications partner. At the current time, data is being received/sent via the Ethernet interface of the Ethernet device of a communications partner on Ethernet.

CM 1542-1

20

Operating Instructions, 01/2017, C79000-G8976-C355-03

Installation, connecting up, commissioning, operation

3

3.1

Important notes on using the device

Safety notices on the use of the device
Note the following safety notices when setting up and operating the device and during all associated work such as installation, connecting up or replacing the device.
WARNING
LAN attachment
A LAN or LAN segment with the attachments belonging to it should be within a single lowvoltage supply system and within a single building. Make sure that the LAN is in an of type A environment according to IEEE 802.3 or in a type 0 environment according to IEC TR 62101.
Never establish a direct electrical connection to TNV networks (telephone network) or WANs (Wide Area Network).

3.1.1

Notices on use in hazardous areas
WARNING EXPLOSION HAZARD DO NOT OPEN WHEN ENERGIZED.
WARNING The equipment is designed for operation with Safety Extra-Low Voltage (SELV) by a Limited Power Source (LPS). This means that only SELV / LPS complying with IEC 60950-1 / EN 60950-1 / VDE 0805-1 must be connected to the power supply terminals. The power supply unit for the equipment power supply must comply with NEC Class 2, as described by the National Electrical Code (r) (ANSI / NFPA 70). If the equipment is connected to a redundant power supply (two separate power supplies), both must meet these requirements.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

21

Installation, connecting up, commissioning, operation 3.1 Important notes on using the device
WARNING EXPLOSION HAZARD Do not connect or disconnect cables to or from the device when a flammable or combustible atmosphere is present.
WARNING EXPLOSION HAZARD Replacing components may impair suitability for Class 1, Division 2 or Zone 2.
WARNING When used in hazardous environments corresponding to Class I, Division 2 or Class I, Zone 2, the device must be installed in a cabinet or a suitable enclosure.

3.1.2

Notices on use in hazardous areas according to ATEX / IECEx
WARNING Requirements for the cabinet/enclosure To comply with EU Directive 94/9 (ATEX95), the enclosure or cabinet must meet the requirements of at least IP54 in compliance with EN 60529.
WARNING Cable If the cable or conduit entry point exceeds 70 °C or the branching point of conductors exceeds 80 °C, special precautions must be taken. If the equipment is operated in an air ambient in excess of 50 °C, only use cables with admitted maximum operating temperature of at least 80 °C.
WARNING Take measures to prevent transient voltage surges of more than 40% of the rated voltage. This is the case if you only operate devices with SELV (safety extra-low voltage).

CM 1542-1

22

Operating Instructions, 01/2017, C79000-G8976-C355-03

3.1.3

Installation, connecting up, commissioning, operation 3.1 Important notes on using the device
Notices regarding use in hazardous areas according to UL HazLoc
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only. This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.
WARNING EXPLOSION HAZARD You may only connect or disconnect cables carrying electricity when the power supply is switched off or when the device is in an area without inflammable gas concentrations.

3.1.4

Notices on use in hazardous areas according to FM
WARNING EXPLOSION HAZARD You may only connect or disconnect cables carrying electricity when the power supply is switched off or when the device is in an area without inflammable gas concentrations.
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only. This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.
WARNING EXPLOSION HAZARD The equipment is intended to be installed within an ultimate enclosure. The inner service temperature of the enclosure corresponds to the ambient temperature of the module. Use installation wiring connections with admitted maximum operating temperature of at least 30 ºC higher than maximum ambient temperature.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

23

Installation, connecting up, commissioning, operation 3.2 Installing and commissioning the CM 1542-1

3.2

Installing and commissioning the CM 1542-1

Installation and commissioning
WARNING Read the system manual "S7-1500 Automation System" Prior to installation, connecting up and commissioning, read the relevant sections in the system manual "S7-1500 Automation System" (see section Documentation references (Page 49)). Make sure that the power supply is turned off when installing/uninstalling the devices.
NOTICE No plugging and pulling during operation The CM must not be pulled or plugged during operation.

Configuration

One requirement for the commissioning of the CM is the completeness of the STEP 7 project data.

Procedure for installation and commissioning

Step 1
2
3 4 5

Execution
When installing and connecting up, keep to the procedures described for installing I/O modules in the system manual "S7-1500 Automation System".

Notes and explanations

Connect the CM to Industrial Ethernet via the RJ45 jack.
Where necessary, connect another component to the remaining free RJ45 jack.

Underside of the CM

Turn on the power supply.

Close the front covers of the module and keep them closed during operation.
The remaining steps in commissioning involve downloading the STEP 7 project data.

The STEP 7 project data of the CM is transferred when you download to the station. To load the station, connect the engineering station on which the project data is located to the Ethernet interface of the CPU.
You will find more detailed information on loading in the following sections of the STEP 7 online help:

· "Compiling and loading project data"

· "Using online and diagnostics functions"

CM 1542-1

24

Operating Instructions, 01/2017, C79000-G8976-C355-03

Installation, connecting up, commissioning, operation 3.3 Terminal assignment

3.3

Terminal assignment

PROFINET interface X1 with 2-port switch
The table below shows the pin assignment of the ports of the PROFINET interface (RJ-45 jack). The assignment corresponds to the Ethernet standard IEEE 802.3.

Table 3- 1

Pin assignment of the PROFINET interface with 2-port switch

View

No. Terminal

Designation

1

TD

Transmit Data +

2

TD_N Transmit Data -

3

RD

Receive Data +

4

GND

Ground

5

GND

Ground

6

RD_N Receive Data -

7

GND

Ground

8

GND

Ground

3.4

Mode of the CPU - effect on the CM

You can change the mode of the CPU between RUN and STOP using the STEP 7 configuration software. Depending on the operating status of the CPU, the CM behaves as described below.

Changing the CPU from RUN to STOP
When the CPU is in STOP mode, the CM remains in RUN mode.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

25

Installation, connecting up, commissioning, operation 3.4 Mode of the CPU - effect on the CM

CM 1542-1

26

Operating Instructions, 01/2017, C79000-G8976-C355-03

Configuration, programming

4

4.1

Security recommendations

Keep to the following security recommendations to prevent unauthorized access to the system.

General

 You should make regular checks to make sure that the device meets these recommendations and other internal security guidelines if applicable.
 Evaluate your plant as a whole in terms of security. Use a cell protection concept with suitable products.
 Do not connect the device directly to the Internet. Operate the device within a protected network area.
 Keep the firmware up to date. Check regularly for security updates of the firmware and use them.
 Check regularly for new features on the Siemens Internet pages.
­ Here you will find information on network security:
Link: (http://www.siemens.com/industrialsecurity)
­ Here you will find information on Industrial Ethernet security:
Link: (http://w3.siemens.com/mcms/industrial-communication/en/ie/industrial-ethernetsecurity/Seiten/industrial-security.aspx)
­ You will find an introduction to the topic of industrial security in the following publication:
Link: (http://w3app.siemens.com/mcms/infocenter/dokumentencenter/sc/ic/InfocenterLangu agePacks/Netzwerksicherheit/6ZB5530-1AP010BA4_BR_Netzwerksicherheit_en_112015.pdf)

Physical access
Restrict physical access to the device to qualified personnel.

Network attachment
Do not connect the CM directly to the Internet. If a connection from the CM to the Internet is required, arrange for suitable protection before the CM, for example a SCALANCE S with firewall.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

27

Configuration, programming 4.1 Security recommendations

Security functions of the product
Use the options for security settings in the configuration of the station. These includes among others:
 Protection levels
Configure access to the CPU under "Protection and Security".
 Security function of the communication
­ Use the secure protocol variant HTTPS when accessing the Web server of the CPU
­ If you doe not require access to the Web server, leave access to the Web server of the CPU (CPU configuration) and to the Web server of the CP disabled.
 Protection of the passwords for access to program blocks
Protect the passwords stored in data blocks for the program blocks from being viewed. You will find information on the procedure in the STEP 7 information system under the keyword "Know-how protection".

Passwords

 Define rules for the use of devices and assignment of passwords.  Regularly update the passwords to increase security.  Only use passwords with a high password strength. Avoid weak passwords for example
"password1", "123456789" or similar.  Make sure that all passwords are protected and inaccessible to unauthorized personnel.
See also the preceding section for information on this.  Do not use one password for different users and systems.

Protocols

Secure and non-secure protocols  Only activate protocols that you require to use the system.  Use secure protocols when access to the device is not prevented by physical protection
measures.
Table: Meaning of the column titles and entries The following table provides you with an overview of the open ports on this device.  Protocol / function
Protocols that the device supports.  Port number (protocol)
Port number assigned to the protocol.

CM 1542-1

28

Operating Instructions, 01/2017, C79000-G8976-C355-03

Configuration, programming 4.1 Security recommendations

 Default of the port ­ Open The port is open at the start of the configuration. ­ Closed The port is closed at the start of the configuration.
 Port status ­ Open The port is always open and cannot be closed. ­ Open after configuration The port is open if it has been configured. ­ Open (login, when configured) As default the port is open. After configuring the port, the communications partner needs to log in. ­ Open with block call The port is only opened when a suitable program block is called.
 Authentication Specifies whether or not the protocol authenticates the communications partner during access.

Protocol / function DHCP
DCP DCE S7 communication NTP
HTTP SNMP PROFINET SMTP

Port number (protocol) 68 (UDP)
93 (UDP) 135 (TCP) 102 (TCP)

Default of the port
Open
Open Open Open

Port status
Open after configuration (only outgoing) Open Open Open

123 (UDP)
80 (TCP) 161 (UDP) 34964 (UDP) 25 (TCP)

Closed
Closed Open Open Closed

Open after configuration (only outgoing)
Open after configuration
Open
Open
Open with block call (only outgoing)

Authentication
No
No No No
No
No No No No

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

29

Configuration, programming 4.2 Network settings

4.2

Network settings

4.2.1

Fast Ethernet

Automatic setting
Only "Automatic" for automatic detection and "TP 100 Mbps full duplex" can be set for the transmission rate of the connection. The Ethernet interface of the CM is set to autosensing as default.
Note In normal situations, the basic setting ensures troublefree communication.

Autocrossing mechanism
With the integrated autocrossing mechanism, it is possible to use a standard cable to connect the PC/PG. A crossover cable is not necessary.
Note Connecting a switch To connect a switch, that does not support the autocrossing mechanism, use a crossover cable.

4.3

IP configuration

4.3.1

Points to note about IP configuration

Configured S7 and OUC connections cannot be operated if the IP address is assigned using DHCP
Note If you obtain the IP address using DHCP, any S7 and OUC connections you may have configured will not work. Reason: The configured IP address is replaced by the address obtained via DHCP during operation.

CM 1542-1

30

Operating Instructions, 01/2017, C79000-G8976-C355-03

Configuration, programming 4.3 IP configuration

4.3.2

Restart after detection of a duplicate IP address in the network
To save you timeconsuming troubleshooting in the network, during startup the CM detects double addressing in the network.

Behavior when the CM starts up
If double addressing is detected when the CM starts up, the CM changes to RUN and cannot be reached via the Ethernet interface. The ERROR LED flashes.

4.3.3

Remove retentive storage of the IP address if there are duplicate addresses
The IP address and the device name of the CM 1542-1 remain installed retentively:
If, for example during startup, the CM detects a duplicate address in another network, the CM is not connected to the network. The CM changes to RUN and cannot be reached via the Ethernet interface.
To be able to connect the CM to the network, you can remove the retentively stored IP address as follows:
1. Remove the memory card of the CPU.
2. Using DCP with the Primary Setup Tool (PST) and with the CPU in STOP, set the IP address of the CM to 0.0.0.0 without configuration.
You have removed the retentively stored IP address of the CM. The CM can be connected into the network.
3. Insert the memory card in the CPU again.

4.3.4

IP routing

IP routing via the backplane bus
The CM supports static IP routing (IPv4) to other CM 1542-1 / CP 1543-1 as of firmware version V2.0.
You can use IP routing, for example, for Web server access by lower-level modules.
With IP routing, he data throughput is limited to 1Mbps. Remember this in terms of the number of modules involved and the expected data traffic via the backplane bus.

Configuration

IP routing must be activated in at least 2 modules of a station.
IP routing runs via the configured default router. If you use several CMs/CPs in a station, of the modules in the station only one may be configured as a router.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

31

Configuration, programming 4.3 IP configuration

4.3.5

CM in multiple use IO systems (standard machines)

Multiple use IO system in standard machines
In PROFINET IO controller mode, the CM can be used in standard machines of the same type.
After configuration, the address parameters of the CM are adapted to the required settings. With suitable configuration of the CM, the lower-level IO devices adopt the address parameters from the CM.

Requirements in the configuration
In terms of configuration it is assumed that the standard machine is delivered with a configured PROFINET IO system and the CM is the IO controller to which several IO devices are assigned in the PROFINET IO system.
The following requirements must be met in the configuration:
 PROFINET IO system
In the configuration of the PROFINET IO system, the option "Multiple use IO system" was activated in the "General" tab. This makes the IO system a standard machine project in the STEP 7 project.
 IO controller (CM) > PROFINET interface
­ In the Ethernet addresses of the CM, the following option is activated under "PROFINET": "PROFINET device name is set directly at the device"
­ In the advanced options the following option is activated in the interface options: "Permit overwriting of device names of all assigned IO devices"
 IO devices > PROFINET interface
With the lower-level IO devices there are also some settings to be made that are described in the STEP 7 information system.
Help in the STEP 7 information system
You will find the required information in the STEP 7 information system with the following search term:
 Creating a standard machine project

Changing address parameters at runtime
After the standard machine has started up, you can adapt the preset address parameters using the following methods:  Using the following STEP 7 commissioning tools:
­ Primary Setup Tool (PST) ­ PRONETA

CM 1542-1

32

Operating Instructions, 01/2017, C79000-G8976-C355-03

Configuration, programming 4.4 Media redundancy
 From the user program using the program block "IP_CONFIG"  Using the program block "T_CONFIG"

4.4

Media redundancy

You can use the CM in a ring topology with media redundancy.

For more detailed information on configuration, refer to the STEP 7 online help of the "Media redundancy" parameter group.

4.5

Time-of-day synchronization

Note Recommendation for setting the time
Synchronization with a external clock at intervals of approximately 10 seconds is recommended. This achieves as small a deviation as possible between the internal time and the absolute time.

Procedure

The CM supports the following mode for time-of-day synchronization:  NTP (NTP: Network Time Protocol)

Configuration

For information on configuration, refer to the STEP 7 online help of the "Time-of-day synchronization" parameter group.
 Accept time of day from non-synchronized NTP servers
The paramter has the following effect:
­ If the option is enabled, the CP also accepts the time-of-day from non-synchronized NTP servers with stratum 16.
­ If the option is disabled, the response is as follows: If the CP receives a time of day frame from an unsynchronized NTP server with stratum 16, the time of day is not set according to the frame. In this case, none of the NTP servers is displayed as "NTP master" in the diagnostics; but rather only as being "reachable".

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

33

Configuration, programming 4.6 Program blocks for OUC

4.6

Program blocks for OUC

Programming Open User Communication (OUC)
The instructions (program blocks) listed below are required for the following communication services via Ethernet:  TCP  ISO-on-TCP  UDP (Multicast)  E-mail For this, create suitable program blocks. The program block can be found in STEP 7 in the "Instructions > Communication > Open user communication" window. You will find details on the program blocks in the information system of STEP 7.
Note Different program block versions Note that in STEP 7 you cannot use different versions of a program block in a station.

Supported program blocks for OUC
The following instructions in the specified minimum version are available for programming Open User Communication:  TSEND_C V3.1 / TRCV_C V3.1
Compact blocks for connection establishment/termination and for sending and receiving data or  TCON V4.0 / TDISCON V2.1 Connection establishment / connection termination  TUSEND V4.0 / TURCV V4.0 Sending and receiving data via UDP  TSEND V4.0 / TRCV V4.0 Sending and receiving data via TCP or ISOonTCP  TMAIL_C V4.0 Sending e-mails Note the description of TMAIL_C as of version V4.0 in the STEP 7 information system.

CM 1542-1

34

Operating Instructions, 01/2017, C79000-G8976-C355-03

Configuration, programming 4.6 Program blocks for OUC
Connection establishment and termination
Connections are established using the program block TCON. Note that a separate program block TCON must be called for each connection. A separate connection must be established for each communications partner even if identical blocks of data are being sent. After a successful transfer of the data, a connection can be terminated. A connection is also terminated by calling "TDISCON".
Note Connection abort If an existing connection is aborted by the communications partner or due to disturbances on the network, the connection must also be terminated by calling TDISCON. Make sure that you take this into account in your programming.

Connection descriptions in system data types (SDTs)
For the connection description, the blocks listed above use the parameter CONNECT (or MAIL_ADDR_PARAM with TMAIL_C). The connection description is stored in a data block whose structure is specified by the system data type (SDT).
Creating an SDT for the data blocks You create the SDT required for every connection description as a data block. You generate the SDT type in STEP 7 by entering the name (e.g. "TCON_IP_V4") in the "Data type" box manually in the declaration table of block instead of selecting an entry from the "Data type" drop-down list. The corresponding SDT is then created with its parameters. The following SDTs can be used.  Configured connections:
­ TCON_Configured For transferring frames via TCP
 Programmed connections: ­ TCON_IP_V4 For transferring frames via TCP or UDP ­ TCON_QDN For transferring frames via TCP or UDP ­ TCON_IP_RFC For transferring frames via ISO-on-TCP ­ TMail_V4 For transferring e-mails addressing the e-mail server using an IPv4 address ­ TMail_FQDN For transferring e-mails addressing the e-mail server using the host name

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

35

Configuration, programming 4.6 Program blocks for OUC
You will find the description of the SDTs with their parameters in the STEP 7 information system under the relevant name of the SDT.

CM 1542-1

36

Operating Instructions, 01/2017, C79000-G8976-C355-03

Diagnostics and upkeep

5

5.1

Diagnostics options

Diagnostics options
You have the following diagnostics options available for the module:  The LEDs of the module
For information on the LED displays, refer to the section LEDs (Page 19).  STEP 7: The "Diagnostics" tab in the Inspector window
Here, you can obtain the following information on the selected module: ­ Information on the online status of the module  STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu Here, you can obtain static information on the selected module: ­ General information on the module ­ Diagnostics status ­ Information on the PROFINET interface You will find further information on the diagnostics functions of STEP 7 in the STEP 7 online help.  Web diagnostics With the aid of Web diagnostics of the CPU, you read the diagnostics data from an S7 station via the Web browser on the PG/PC.  Display of the CPU Using the CPU display, read out diagnostics data from an S7 station on the PG/PC. You can only use diagnostics via the CPU display if the S7 station is suitably configured.

5.2

SNMP

SNMP (Simple Network Management Protocol)
SNMP is a protocol for diagnostics and managing networks and nodes in the network. To transmit data, SNMP uses the connectionless UDP protocol.
The information on the properties of SNMP-compliant devices is entered in MIB files (MIB = Management Information Base).

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

37

Diagnostics and upkeep 5.2 SNMP
You will find detailed information on SNMP and the Siemens Automation MIB in the manual "Diagnostics and Configuration with SNMP" that you will find on the Internet: /3/ (Page 50)
Range of performance of the CM
The CM supports the following SNMP versions:  SNMPv1 Traps are not supported by the CP. The CM supports the following MIBs:  MIB II (acc. to RFC1213)
The CM supports the following groups of MIB objects: ­ System ­ Interfaces ­ IP ­ ICMP ­ TCP ­ UDP ­ SNMP  LLDP MIB  MRP Monitoring  Siemens Automation MIB
Write permissions
Write access is permitted only for the following MIBs and MIB objects:  Siemens Automation MIB, group "System"
The group returns status information about the CM interfaces. Write access is permitted only for the following MIB objects: ­ sysContact ­ sysLocation ­ sysName
A set sysName is sent as the host name using DHCP option 12 to the DHCP server to register with a DNS server.  MRP Monitoring, object "mrpDomainResetRoundTripDelays" A write command "resetDelays(1)" to the object sets the values of "mrpDomainRoundTripDelayMax" and "mrpDomainRoundTripDelayMin" to zero. For all other MIB groups and objects, only read access is possible for security reasons.

CM 1542-1

38

Operating Instructions, 01/2017, C79000-G8976-C355-03

Diagnostics and upkeep 5.3 Replacing a module without a programming device

Access permissions using community names
The CM uses the following community strings to control the rights for authentication of the access to its SNMP agent via SNMPv1:

Table 5- 1 Access rights and authentication in the SNMP agent

Type of access Read access Read and write access
*) Note the use of lowercase letters!

Community string for authentication *) public private

5.3

Replacing a module without a programming device

General procedure
The configuration data of the CM is stored on the CPU. This makes it possible to replace this module with a module of the same type (identical article number) without a PG.

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

39

Diagnostics and upkeep 5.3 Replacing a module without a programming device

CM 1542-1

40

Operating Instructions, 01/2017, C79000-G8976-C355-03

Technical specifications

6

Note the information in the System description of SIMATIC S7-1500 (Page 49).
In addition to the information in the system description, the following technical specifications apply to the module.

Table 6- 1 Technical specifications of the CM 1542-1

Technical specifications Article number Attachment to Industrial Ethernet Number

6GK7 542-1AX00-0XE0 1

Design

PROFINET interface with 2port switch, 2 x RJ-45 jack

Properties

100BASE-TX, IEEE 802.3-2005, half duplex/full duplex, autocrossover, autonegotiation, galvanically isolated

Transmission speed

10 / 100 Mbps

Aging time

5 minutes

Special features of the ports X1 P1 Integration in ring topology / MRP possible and X1 P2

Electrical data Power supply via S7-1500 backplane bus

15 V

Current consumption From backplane bus

220 mA maximum

Effective power loss

3.3 W

Insulation tested with

707 VDC (type test)

Permitted ambient conditions

Ambient temperature

· During operation with the rack · 0  to +60  installed horizontally

· During operation with the rack · 0  to +40  installed vertically

· During storage

· -40  to +70 

· During transportation Relative humidity · During operation

· -40  to +70  ·  95% at 25 °C, no condensation

Contaminant concentration

Acc. to ISA-S71.04 severity level G1, G2, G3

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

41

Technical specifications

Technical specifications Design, dimensions and weight Module format Degree of protection Weight Dimensions (W x H x D) Installation options Permitted cable lengths 0 ... 55 m
0 ... 85 m

Compact module S7-1500, single width IP20 400 g 35 x 142 x 129 mm Mounting in an S7-1500 rack (Alternative combinations per length range) *
· Max. 55 m IE TP Torsion Cable with IE FC RJ45 Plug 180 · Max. 45 m IE TP Torsion Cable with IE FC RJ45 + 10 m
TP Cord via IE FC RJ45 Outlet
· Max. 85 m IE FC TP Marine/Trailing/Flexible/FRNC/Festoon/Food Cable with IE FC RJ45 Plug 180
· Max. 75 m IE FC TP Marine/Trailing/Flexible/FRNC/Festoon/Food Cable + 10 m TP Cord via IE FC RJ45 Outlet

0 ... 100 m

· Max. 100 m IE FC TP Standard Cable with IE FC RJ45 Plug 180
· Max. 90 m IE FC TP Standard Cable + 10 m TP Cord via IE FC RJ45 Outlet

Product functions **

* For details, refer to the IK PI catalog, cabling technology

** You will find the product functions in the section Properties and functions (Page 11).

CM 1542-1

42

Operating Instructions, 01/2017, C79000-G8976-C355-03

Approvals

7

Approvals issued
Note Issued approvals on the type plate of the device
The specified approvals - with the exception of the certificates for shipbuilding - have only been obtained when there is a corresponding mark on the product. You can check which of the following approvals have been granted for your product by the markings on the type plate. The approvals for shipbuilding are an exception to this.
Certificates for shipbuilding and national approvals
The device certificates for shipbuilding and special national approvals can be found in Siemens Industry Online Support on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/cert)
EC declaration of conformity
The product meets the requirements and safety objectives of the following EC directives and it complies with the harmonized European standards (EN) for programmable logic controllers which are published in the official documentation of the European Union.
 2014/34/EU (ATEX explosion protection directive)
Directive of the European Parliament and the Council of 26 February 2014 on the approximation of the laws of the member states concerning equipment and protective systems intended for use in potentially explosive atmospheres, official journal of the EU L96, 29/03/2014, pages. 309-356
 2014/30/EU (EMC)
EMC directive of the European Parliament and of the Council of February 26, 2014 on the approximation of the laws of the member states relating to electromagnetic compatibility; official journal of the EU L96, 29/03/2014, pages. 79-106
 2011/65/EU (RoHS)
Directive of the European Parliament and of the Council of 8 June 2011 on the restriction of the use of certain hazardous substances in electrical and electronic equipment
The EC Declaration of Conformity is available for all responsible authorities at:
Siemens Aktiengesellschaft Division Process Industries and Drives Process Automation DE-76181 Karlsruhe Germany

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

43

Approvals

IECEx ATEX

You will find the EC Declaration of Conformity on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/cert) The current versions of the standards can be seen in the EC Declaration of Conformity and in the certificates.
The product meet the requirements of explosion protection according to IECEx. IECEx classification: Ex nA IIC T4 Gc The product meets the requirements of the following standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' You can see the current versions of the standards in the IECEx certificate that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/cert) The conditions must be met for the safe deployment of the product according to the section Notices on use in hazardous areas according to ATEX / IECEx (Page 22). You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)
The product meets the requirements of the EC directive:2014/34/EC "Equipment and Protective Devices for Use in Potentially Explosive Atmospheres". Applied standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' The current versions of the standards can be seen in the EC Declaration of Conformity, see above. ATEX approval: II 3 G Ex nA IIC T4 Gc Test number: DEKRA 12 ATEX 0240X The conditions must be met for the safe deployment of the product according to the section Notices on use in hazardous areas according to ATEX / IECEx (Page 22).

CM 1542-1

44

Operating Instructions, 01/2017, C79000-G8976-C355-03

EMC
RoHS c(UL)us

Approvals
You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find here:  In the SIMATIC NET Manual Collection in
"All documents" > "Use of subassemblies/modules in a Zone 2 Hazardous Area"  On the Internet at the following address:
Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)
Until 19.04.2016 the product meets the requirements of the EC Directive 2014/30/EU "Electromagnetic Compatibility" (EMC directive). Applied standards:  EN 61000-6-4
Electromagnetic compatibility (EMC) - Part 6-4: Generic standards - Emission standard for industrial environments  EN 61000-6-2 Electromagnetic compatibility (EMC) - Part 6-2: Generic standards - Immunity for industrial environments
The product meets the requirements of the EC directive 2011/65/EU on the restriction of the use of certain hazardous substances in electrical and electronic equipment. Applied standard:  EN 50581:2012
Applied standards:  Underwriters Laboratories, Inc.: UL 61010-1 (Safety Requirements for Electrical
Equipment for Measurement, Control, and Laboratory Use - Part 1: General Requirements)  IEC/UL 61010-2-201 (Safety requirements for electrical equipment for measurement, control and laboratory use. Particular requirements for control equipment)  Canadian Standards Association: CSA C22.2 No. 142 (Process Control Equipment) Report / UL file: E 85972 (NRAG, NRAG7)

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

45

Approvals

cULus Hazardous (Classified) Locations
Underwriters Laboratories, Inc.: cULus IND. CONT. EQ. FOR HAZ. LOC. Applied standards:  ANSI ISA 12.12.01  CSA C22.2 No. 213-M1987 APPROVED for Use in:  Cl. 1, Div. 2, GP. A, B, C, D T3...T6  Cl. 1, Zone 2, GP. IIC T3...T6 Ta: Refer to the temperature class on the type plate of the CP Report / UL file: E223122 (NRAG, NRAG7) Note the conditions for the safe deployment of the product according to the section Notices regarding use in hazardous areas according to UL HazLoc (Page 23).
Note For devices with C-PLUG memory: The C-PLUG memory module may only be inserted or removed when the power is off.

CSA FM

CSA Certification Mark Canadian Standard Association (CSA) nach Standard C 22.2 No. 142:  Certification Record 063533­C-000
Factory Mutual Approval Standards:  Class 3600  Class 3611  Class 3810  ANSI/ISA 61010-1 Report Number 3049847 Class I, Division 2, Group A, B, C, D, T4 Class I, Zone 2, Group IIC, T4 You will find the temperature class on the type plate on the module.

CM 1542-1

46

Operating Instructions, 01/2017, C79000-G8976-C355-03

Approvals
Australia - RCM
The product meets the requirements of the AS/NZS 2064 standards (Class A).

Canada

This class A digital device meets the requirements of the Canadian standard ICES-003.
AVIS CANADIEN Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada.

MSIP  - For Korea only
A ( )
  (A)         ,      .
Note that in terms of the emission of interference, this device corresponds to limit class A. This device can be used in all areas except for residential environments.

Current approvals
SIMATIC NET products are regularly submitted to the relevant authorities and approval centers for approvals relating to specific markets and applications.
If you require a list of the current approvals for individual devices, consult your Siemens contact or check the Internet pages of Siemens Industry Online Support:
Link: (https://support.industry.siemens.com/cs/ww/en/ps/15341/cert)

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

47

Approvals

CM 1542-1

48

Operating Instructions, 01/2017, C79000-G8976-C355-03

Documentation references

A

A.1

Introduction to the documentation

Where to find Siemens documentation
 Article numbers
You will find the article numbers for the Siemens products of relevance here in the following catalogs:
­ SIMATIC NET - Industrial Communication / Industrial Identification, catalog IK PI
­ SIMATIC - Products for Totally Integrated Automation and Micro Automation, catalog ST 70
You can request the catalogs and additional information from your Siemens representative. You will also find the product information in the Siemens Industry Mall at the following address:
Link: (https://mall.industry.siemens.com)
 Manuals on the Internet
You will find SIMATIC NET manuals on the Internet pages of Siemens Industry Online Support:
Link: (https://support.industry.siemens.com/cs/ww/en/ps/15247/man)
Go to the required product in the product tree and make the following settings:
Entry type "Manuals"
 Manuals on the data medium
You will find manuals of SIMATIC NET products on the data medium that ships with many of the SIMATIC NET products.

A.2
/1/

System manual S7-1500
SIMATIC S7-1500 Automation System System Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59191792)

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

49

Documentation references A.3 Diagnostics

A.3
/2/
/3/

Diagnostics
SIMATIC SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Diagnostics Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59192926)
SIMATIC NET Diagnostics and configuration with SNMP Diagnostics manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/ps/15392/man)

A.4
/4/
/5/
/6/

Communication
SIMATIC SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Communication Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59192925)
SIMATIC SIMATIC PROFINET with STEP 7 V14 Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/49948856)
SIMATIC SIMATIC S7-1500, ET 200SP, ET 200pro Web Server Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59193560)

CM 1542-1

50

Operating Instructions, 01/2017, C79000-G8976-C355-03

A.5
/7/
A.6
/8/
A.7
/9/

Documentation references A.5 Interference-free installation of control systems
Interference-free installation of control systems
SIMATIC SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL Interference-free Installation of Control Systems Function Manual Siemens AG Interference-free installation of control systems (https://support.industry.siemens.com/cs/ww/en/view/59193566)
Memory concept
SIMATIC S7-1500, ET 200SP, ET 200pro Structure and Use of the CPU Memory Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59193101)
Cycle and response times
SIMATIC SIMATIC S7-1500, ET 200SP, ET 200pro Cycle and Response Times Function Manual Siemens AG Link: (https://support.industry.siemens.com/cs/ww/en/view/59193558)

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

51

Documentation references A.7 Cycle and response times

CM 1542-1

52

Operating Instructions, 01/2017, C79000-G8976-C355-03

Index

A
Autocrossing mechanism, 30 Autosensing, 30
C
Changing mode (RUN / STOP), 25 CONF_DATA, 18 Configuration of the Ethernet interface, 18 Connecting a switch, 30 Connection resources, 14 Crossover cable, 30

Installation and commissioning, 24 Procedure, 24
Instructions, 17 IP address
Via DHCP, 30 IP configuration IPv4, 12 IP routing, 31 IRT, 11 ISO-on-TCP (RFC 1006), 11 ISO-on-TCP connections, 14, 17
L
LEDs, 19

D
Data storage of the configuration data of the CM, 39 Diagnostics options, 37 Disposal, 7 Documentation for CM 1542-1, 5 Double addressing in the network, 31 Downloading project data, 24 Downloads, 6

M
MAC address, 12 MAC Address, 3 Manual Collection, 6 Maximum data length for program blocks, 14 Media redundancy, 11, 12 MIB, 37 Multicast
via UDP, 11

E
E-mail, 14 E-mail connections, 17 EMC - electromagnetic compatibility, 43 Ethernet interface
Configuration, 18 Ethernet port, 3

N
NTP, 33 NTP mode, 12 Number
of operable CMs, 16 Number of connections, 14

G
Glossary, 7
H
HMI communication, 11
I
iDevice, 11

O
Open User Communication, 11 OUC (Open User Communication), 34 Overall configuration limits, 16
P
PG communication, 11 Plugging in, 24 Power supply modules
Additional, 16

CM 1542-1

Operating Instructions, 01/2017, C79000-G8976-C355-03

53

Index
PROFINET interface, 3 Program blocks, 17 Pulling, 24
R
Recycling, 7
S
S7 communication, 11 S7 connections
Number of freely usable, 15 Safety notices, 21 Shared Device, 11 SIMATIC NET glossary, 7 SIMATIC NET Manual Collection, 6 SNMP, 37 SNMP agent, 12 Special notes
Connecting a switch, 30 STEP 7, 4 STEP 7 (version), 17 System data types, 17 System data types (SDTs), 35
T
T_CONFIG, 18 TCON, 17 TCON_..., 17 TCP (RFC 793), 11 TCP connections, 14, 17 Time synchronization, 12 Time-of-day synchronization, 33 TMail_..., 17 TMAIL_C, 17 TSEND/TRCV, 17
U
UDP Restrictions, 15
UDP (RFC 768), 11 UDP connections, 14 UDP frame buffering, 15
V
Version history, 6
54

W
Web server, 13
CM 1542-1 Operating Instructions, 01/2017, C79000-G8976-C355-03

SIMATIC NET S7-1500 - PROFIBUS CM 1542-5
Operating Instructions

_Pr_ef_ac_e_______________ _G_uid_e_to_t_he_d_oc_u_m_en_ta_tio_n____1_ _Pr_od_u_ct_o_ve_rv_ie_w,_fu_n_ct_ion_s____2_ _Icno_smta_mll_aist_sioion_n,_icno_gn,_noep_cet_rina_gtio_unp_, ____3_ _Co_n_fig_u_ra_tio_n,_p_ro_gr_am_m_i_ng____4_ _Di_ag_n_os_tic_s_an_d_u_pk_e_ep______5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______6_ _Ap_p_ro_va_ls_____________7_

10/2016
C79000-G8976-C290-03

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

C79000-G8976-C290-03  10/2016 Subject to change

Copyright © Siemens AG 2013 - 2016. All rights reserved

Preface
Purpose of the documentation
This device manual supplements the system manual of the automation system S7-1500 and the function manuals. All functions that go beyond the system are described in the system manual. With the information in this manual and the system manual, you will be able to commission the CM 1542-5 communications module.
Abbreviations and names
 CM In this document, the term "CM" (communications module) is used instead of the full product name "CM 1542-5".
 STEP 7 The name STEP 7 is used to mean the STEP 7 Professional configuration tool.
New in this release
 New firmware version V2.0 Support of FDL  Editorial revision
Replaced edition
Release 11/2014
Current manual release on the Internet
You will also find the current version of this manual on the Internet pages of Siemens Industry Online Support: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15671/man)
Sources of information and other documentation
See section Guide to the documentation (Page 7).

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

3

Preface
License conditions
Note Open source software The product contains open source software. Read the license conditions for open source software carefully before using the product.
You will find license conditions in the following document on the supplied data medium:  OSS_CM15425_86.pdf
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit Link: (http://www.siemens.com/industrialsecurity) Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under Link: (http://www.siemens.com/industrialsecurity).
SIMATIC NET glossary
Explanations of many of the specialist terms used in this documentation can be found in the SIMATIC NET glossary. You will find the SIMATIC NET glossary on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/50305045)

CM 1542-5

4

Operating Instructions, 10/2016, C79000-G8976-C290-03

Table of contents

Preface ................................................................................................................................................... 3

1 Guide to the documentation .................................................................................................................... 7

2 Product overview, functions..................................................................................................................... 9

2.1

Product data..............................................................................................................................9

2.2

Application ..............................................................................................................................10

2.3

Further functions .....................................................................................................................11

2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6

Configuration limits and performance data .............................................................................12 Configuration limits - number of CMs .....................................................................................12 Transmission speeds supported.............................................................................................12 Characteristic data of the DP interface ...................................................................................13 Characteristic data of FDL communication.............................................................................14 Characteristics of S7 communication .....................................................................................14 Performance data / operation .................................................................................................15

2.5 2.5.1 2.5.2

Requirements for use..............................................................................................................15 Project engineering .................................................................................................................15 Programming ..........................................................................................................................15

2.6

LEDs .......................................................................................................................................16

2.7

PROFIBUS interface...............................................................................................................18

3 Installation, connecting up, commissioning, operation ........................................................................... 19

3.1 3.1.1 3.1.2 3.1.3

Important notes on using the device.......................................................................................19 Notes on use in hazardous areas ...........................................................................................19 Notes on use in hazardous areas according to ATEX / IECEx ..............................................20 Notes on use in hazardous areas according to UL HazLoc ...................................................20

3.2

Installing and commissioning the CM 1542-5 .........................................................................21

3.3

Pin assignment PROFIBUS ....................................................................................................22

3.4

Mode of the CPU - effect on the CM.......................................................................................22

4 Configuration, programming .................................................................................................................. 25

4.1

Configuration in STEP 7 .........................................................................................................25

4.2

Program blocks for communication and distributed I/O..........................................................25

4.3

Program blocks for FDL ..........................................................................................................26

5 Diagnostics and upkeep ........................................................................................................................ 33

5.1

Diagnostics options.................................................................................................................33

5.2

DP slave diagnostics...............................................................................................................34

5.3

Standard diagnostics ..............................................................................................................35

5.4

Device-specific diagnostics in DP-V1 .....................................................................................37

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

5

Table of contents

5.5

DP diagnostics frames when the CPU is in STOP ................................................................ 39

5.6

Replacing a module without a programming device .............................................................. 39

6 Technical specifications ........................................................................................................................ 41

7 Approvals ............................................................................................................................................. 43

Index .................................................................................................................................................... 49

CM 1542-5

6

Operating Instructions, 10/2016, C79000-G8976-C290-03

Guide to the documentation

1

Introduction

The documentation of the SIMATIC products has a modular structure and covers topics relating to your automation system.
The complete documentation for the S7-1500 system consists of a system manual, function manuals and device manuals.
The STEP 7 information system (online help) also supports you in configuring and programming your automation system.

Overview of the documentation on communication with S7-1500
The following table lists additional documents, which supplement this description of CM 1542-5 and are available in the Internet.

Table 1- 1 Documentation for the CM 1542-5

Topic
System description

Documentation
System manual: S7-1500 Automation System (https://support.industry.siemens.com/cs/ww/e n/view/59191792)

Module properties

Device manual: Power supplies (https://support.industry.siemens.com/cs/ww/e n/ps/13721/man)
Device manual: Signal modules (https://support.industry.siemens.com/cs/ww/e n/ps/13743/man)

System diagnostics

Function manual: System diagnostics (https://support.industry.siemens.com/cs/ww/e n/view/59192926)

Communication

Function manual: Communication (https://support.industry.siemens.com/cs/ww/e n/view/59192925)
Function manual PROFINET with STEP 7 (https://support.industry.siemens.com/cs/ww/e n/view/49948856)

Most important contents · Application planning · Installation · Connecting · Commissioning
· Connecting · Parameter assignment/
addressing · Interrupts, error messages,
diagnostics and system alarms · Technical specifications · Dimensional drawing
· Overview · Diagnostics evaluation for
hardware/software
· Overview
· PROFINET basics · PROFINET functions · PROFINET diagnostics

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

7

Guide to the documentation

Topic
Interference-free installation of control systems
Memory concept
Cycle and response times Analog value processing

Documentation Function manual PROFIBUS with STEP 7 (https://support.industry.siemens.com/cs/ww/e n/view/59193579)
Function manual: Web Server (https://support.industry.siemens.com/cs/ww/e n/view/59193560) Function Manual: Interference-free installation of control systems (https://support.industry.siemens.com/cs/ww/e n/view/59193566)
Function manual: Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/ww/e n/view/59193101)
Function manual: Cycle and Response Times (https://support.industry.siemens.com/cs/ww/e n/view/59193566) Function manual: Analog value processing (https://support.industry.siemens.com/cs/ww/e n/view/67989094)

Most important contents · PROFIBUS basics · PROFIBUS functions · PROFIBUS diagnostics
· Function · Operation
· Basics · Electromagnetic compatibil-
ity · Lightning protection · Housing selection
· Design · Principle of operation · Use
· Basics · Calculations
· Wiring options · Tables of measured values

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet: Link: (http://www.siemens.com/automation/service&support)

CP/CM documentation in the SIMATIC NET Manual Collection (article number A5E00069051)
The "SIMATIC NET Manual Collection" DVD contains the device manuals and descriptions of all SIMATIC NET products current at the time it was created. It is updated at regular intervals.

Version History / current downloads for the SIMATIC NET S7-CPs/CMs
The "Version History/Current Downloads for SIMATIC NET S7 CPs (PROFIBUS)" provides information on all CPs available up to now for SIMATIC S7 (PROFIBUS). You will find the document on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/view/67225941)

CM 1542-5

8

Operating Instructions, 10/2016, C79000-G8976-C290-03

Product overview, functions

2

2.1

Product data

Article number, validity and product names
This description contains information on the following product:
CM 1542-5 article number 6GK7 542-5DX00-0XE0 hardware product version 1 firmware version V2.0 communications module CM 1542-5 for connection of S7-1500 to PROFIBUS DP.

View of the module

 LEDs  Type plate  PROFIBUS interface: 1 x 9-pin D-sub female connector (RS-485)
Figure 2-1 CM 1542-5 with closed (left) and open (right) front cover

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

9

Product overview, functions 2.2 Application

2.2

Application

Application

The communications module CM 1542-5 is intended for operation in an S7-1500 automation system. The CM 1542-5 allows the connection of an S7-1500 station to a PROFIBUS fieldbus system.
As an alternative, the CM can be operated in the following modes:
 Class 1 DP master
 DP slave

Supported communications services
In its current configuration, the CM 1542-5 communications module supports the following communications services:  PROFIBUS DP master (class 1)
­ PROFIBUS DP according to EN 50170 DPV1, DP master ­ DP master mode for DP slaves complying with the PROFIBUS DPV0 and DPV1
standard ­ DP master mode for Siemens DP slaves ­ Direct data exchange (DP slave to DP slave)
As a DP master, the CM 1542-5 is capable of enabling direct data exchange for "its" DP slaves. ­ SYNC / FREEZE The outputs or inputs can be synchronized by the user program using system function DPSYNC_FR.  PROFIBUS DP slave PROFIBUS DP according to EN 50170 DPV1, DP slave
Note DP master or DP slave Note that the CM 1542-5 supports operation either as DP master or DP slave.
 FDL The CM handles the FDL communication using program blocks of Open User Communication (OUC) see section Configuration, programming (Page 25).
 S7 communication ­ PG communication for uploading / downloading of S7 configuration, diagnostics and routing ­ Operator control and monitoring functions (HMI communication) ­ Data exchange over S7 connections

CM 1542-5

10

Operating Instructions, 10/2016, C79000-G8976-C290-03

Product overview, functions 2.3 Further functions
 Data record routing / field device parameter assignment You can use the CM as a router for data records intended for field devices (DP slaves). Data records from devices that are not connected directly to PROFIBUS and therefore have no direct access to the DP slaves are forwarded to the DP slaves by the CM.
The services of the CM 1542-5 listed above can be used independently at the same time.
Note Requirement for FDL, data record routing, loading of configuration/diagnostics data For the functions FDL, data record routing and loading configuration and diagnostics data the CM must either be operated in the mode DP master mode or as a DP slave with the option "Test, Commissioning and Routing" enabled.

2.3

Further functions

Enabling /disabling DP slave - in the standard system
DP slaves can be activated and deactivated by the user program using system function D_ACT_DP.

Diagnostics requests
As a DP master (class 1), the CM 1542-5 supports diagnostics requests of a DP master (class 2).

Getting the bus topology in a DP master system
The CM 1542-5 operating as DP master supports the measurement of the PROFIBUS bus topology in a DP master system using a diagnostics repeater (DP slave).
System function DP_TOPOL in the user program can instruct diagnostics repeaters to measure the PROFIBUS BUS topology in a DP master system.

Time-of-day synchronization - time master or time slave
The CM 1542-5 can be enabled for time-of-day synchronization. As an alternative, the CM can be configured as time master or time slave on PROFIBUS.
 Time master: The CM is synchronized using the time of day in the S7-1500 station and outputs the time of day on PROFIBUS. The output interval can be set.
 Time slave: The CM receives time-of-day frames on PROFIBUS and outputs the time within the S7-1500 station. The output interval within the S7-1500 station is set permanently to 10 seconds.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

11

Product overview, functions 2.4 Configuration limits and performance data

Note Recommendation for setting the time It is advisable to set the time-of-day master so that time-of-day frames are sent at intervals of approximately 10 seconds. This achieves as small a deviation as possible between the internal time and the absolute time.
Web diagnostics
With the aid of Web diagnostics of the CPU, you read the diagnostics data from an S7 station via the Web browser on the PG/PC. In terms of the CM, the Web pages provide the following information:  Module and status information  Special information on the DP master system (status of the DP slaves)

2.4

Configuration limits and performance data

2.4.1 2.4.2

Configuration limits - number of CMs
When using the CM type described here, the following limits apply:  The number of CMs that can be operated in a rack depends on the CPU type being used.
Refer to the information in the system manual (hardware configuration), see Guide to the documentation (Page 7).
Transmission speeds supported
The transmission speed is set in STEP 7.
Note Remember the cable length For the selected transmission speed, the permitted cable length must be kept to.
For this refer to the information in the PROFIBUS function manual: Link: (https://support.industry.siemens.com/cs/ww/en/view/59193579)

CM 1542-5

12

Operating Instructions, 10/2016, C79000-G8976-C290-03

Product overview, functions 2.4 Configuration limits and performance data

2.4.3

Characteristic data of the DP interface

Characteristic data of DP mode
No special program blocks are required for DP mode. The interfacing to the distributed I/O is by direct I/O access or using program blocks (SFCs/SFBs) of the CPU.

Table 2- 1 Characteristic data of DP mode

Characteristic Max. number of operable DP slaves Max. size of the input area of all DP slaves Max. size of the output area of all DP slaves Maximum number of inputs per DP slave Maximum number of outputs per DP slave Max. size of the consistent area for a module

Explanation / values 125 * 8 KByte 8 KByte 244 Byte 244 Byte 128 Byte

* When using DP slaves with extensive configuration data e.g. SINAMICS devices, the number of DP slaves that can be operated on the CM sinks.

Diagnostics requests
As a DP master (class 1), the CM 1542-5 supports diagnostics requests of a DP master (class 2).

DP startup behavior
Note Increasing the default value for startup parameters - configuration of the CPU
In some situations, it is necessary to increase the default value for the startup parameter "Parameter assignment time for the distributed I/O" in the configuration of the CPU: · A large number of modules (DP slaves) is configured. · When a high value is configured for the constant bus cycle time in the network properties
of the PROFIBUS DP line.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

13

Product overview, functions 2.4 Configuration limits and performance data

2.4.4

Characteristic data of FDL communication

Characteristic data FDL
The characteristic data is important when operating FDL connections (specified, free layer 2 (SDA and SDN), broadcast, multicast):

Table 2- 2 Characteristic data FDL
Characteristic Total number of FDL connections that can be operated Size of the transferable data area for FDL connections

Explanation / values 30 max.
· 1...240 bytes max. per specified FDL connection (for sending and receiving):
· Free layer 2 broadcast and multicast: Up to 236 bytes of user data can be transferred per job. The job header occupies an additional 4 bytes.

Note Connection resources of the CPU
Depending on the CPU type, different numbers of connection resources are available. The number of connection resources is the decisive factor for the number of configurable connections. For this reason, lower values than specified here can result.
You will find detailed information on the topic of connection resources in the "Communication" function manual, see Communication (http://support.automation.siemens.com/WW/view/en/59192925).

2.4.5

Characteristics of S7 communication

Characteristics of S7 communication
The following information is important when operating S7 connections:

Table 2- 3 Characteristics of S7 connections

Characteristic
Number of S7 connections via PROFIBUS

Explanation / values Operable in total: Max. 48 The value depends on the S7-1500 CPU being used.

Note PG or HMI functions or data record routing
If PG or HMI functions or data record routing are used, a suitable number of S7 connections must be reserved during configuration!

CM 1542-5

14

Operating Instructions, 10/2016, C79000-G8976-C290-03

Product overview, functions 2.5 Requirements for use
Help provided by STEP 7
The number of connections on PROFIBUS shown in the table above can vary due to other influencing factors. The STEP 7 configuration tool displays warnings and help messages as soon as limit values are exceeded.

2.4.6

Performance data / operation

Measured values of transfer or reaction times
Measured values of transfer and reaction times in Ethernet, PROFIBUS and PROFINET networks for a series of configurations can be found on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/view/25209605)

2.5

Requirements for use

2.5.1

Project engineering

Configuration

For configuring the CM the following version of STEP 7 is required:

STEP 7 version STEP 7 Professional V14

Functions of the CM
The full functionality of the CP 1542-5 (6GK7 542-5DX00-0XE0) can be configured.

Downloading configuration data
When the configuration data is loaded on the CPU, the CM is supplied with the relevant configuration data. The configuration data can be downloaded to the CPU via PROFIBUS or any PROFINET interface of the S7-1500 station.

2.5.2

Programming

Programming

For programming the CM the following version of STEP 7 is required:

STEP 7 version STEP 7 Professional V14

Functions of the CM
The full functionality of the CP 1542-5 (6GK7 542-5DX00-0XE0) can be programmed.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

15

Product overview, functions 2.6 LEDs

Use of FDL

For programming and using FDL, the following minimum firmware versions are required.  CM: V2.0  CPU: V2.0

2.6

LEDs

The status and error displays of the CM 1542-5 are described below.

You can find additional information on "Interrupts" in the STEP 7 online help.

You can find additional information on "Diagnostics" and "System alarms" in the function manual on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/view/59192926)

LED display

The following figure shows the LEDs of the CM 1542-5.

 RUN/STOP LED  ERROR LED  MAINT LED
Figure 2-2 LED display of the CM 1542-5 (without front cover)

CM 1542-5

16

Operating Instructions, 10/2016, C79000-G8976-C290-03

Product overview, functions 2.7 PROFIBUS interface

Meaning of the LED displays
The CM 1542-5 has 3 LEDs to display the current operating status and the diagnostics status and these have the following meanings:

· RUN/STOP LED · ERROR LED · MAINT LED

(one-color LED: green) (one-color LED: red) (one-color LED: yellow)

The following table shows the meaning of the various combinations of colors of the RUN/STOP, ERROR and MAINT LEDs.

Table 2- 4 Meaning of the LEDs RUN/STOP LED ERROR LED

LED off

LED off

LED lit green

LED lit red

LED lit green

LED lit red

LED lit green

LED off

LED flashing green

LED off

LED lit green LED flashing red

LED lit green

LED off

LED lit green

LED off

LED flashing green

LED flashing red

MAINT LED LED off
LED lit yellow LED off LED off LED off

Meaning No supply voltage on the CM or supply voltage too low. LED test during startup
Startup (booting the CM)
CM is in RUN mode. No disruptions No CM configuration exists Loading firmware

LED off
LED lit yellow
LED flashing yellow
LED flashing yellow

A diagnostics event has occurred. Maintenance is demanded. Maintenance is required.
Module fault

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

17

Product overview, functions 2.7 PROFIBUS interface

2.7

PROFIBUS interface

9-pin D-sub female connector (PROFIBUS)
The PROFIBUS connector is located behind the cover of the housing. The interface is a 9pin D-sub female connector operating according to the RS-485 standard.
You also have the option of connecting to optical PROFIBUS networks via an Optical Bus Terminal OBT or an Optical Link Module OLM.
You will find the pin assignment of the D-sub socket in section Pin assignment PROFIBUS (Page 22).

CM 1542-5

18

Operating Instructions, 10/2016, C79000-G8976-C290-03

Installation, connecting up, commissioning, operation

3

3.1

Important notes on using the device

Safety notices on the use of the device
Note the following safety notices when setting up and operating the device and during all associated work such as installation, connecting up or replacing the device.

3.1.1

Notes on use in hazardous areas
WARNING The device may only be operated in an environment with pollution degree 1 or 2 (see IEC 60664-1).
WARNING EXPLOSION HAZARD Do not connect or disconnect cables to or from the device when a flammable or combustible atmosphere is present.
WARNING EXPLOSION HAZARD Replacing components may impair suitability for Class 1, Division 2 or Zone 2.
WARNING When used in hazardous environments corresponding to Class I, Division 2 or Class I, Zone 2, the device must be installed in a cabinet or a suitable enclosure.
WARNING DIN rail In the ATEX and IECEx area of application only the Siemens DIN rail 6ES5 710-8MA11 may be used to mount the modules.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

19

Installation, connecting up, commissioning, operation 3.1 Important notes on using the device

3.1.2

Notes on use in hazardous areas according to ATEX / IECEx

WARNING
Requirements for the cabinet/enclosure
To comply with EU Directive 94/9 (ATEX95), the enclosure or cabinet must meet the requirements of at least IP54 in compliance with EN 60529.

WARNING
If the cable or conduit entry point exceeds 70 °C or the branching point of conductors exceeds 80 °C, special precautions must be taken. If the equipment is operated in an air ambient in excess of 50 °C, only use cables with admitted maximum operating temperature of at least 80 °C.

WARNING
Take measures to prevent transient voltage surges of more than 40% of the rated voltage. This is the case if you only operate devices with SELV (safety extra-low voltage).

3.1.3

Notes on use in hazardous areas according to UL HazLoc
WARNING EXPLOSION HAZARD You may only connect or disconnect cables carrying electricity when the power supply is switched off or when the device is in an area without inflammable gas concentrations.
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only. This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.

CM 1542-5

20

Operating Instructions, 10/2016, C79000-G8976-C290-03

Installation, connecting up, commissioning, operation 3.2 Installing and commissioning the CM 1542-5

3.2

Installing and commissioning the CM 1542-5

WARNING
Read the system manual "S7-1500 Automation System"
Prior to installation, connecting up and commissioning, read the relevant sections in the system manual "S7-1500 Automation System" (references to documentation, refer to the section Guide to the documentation (Page 7)).
Make sure that the power supply is turned off when installing/uninstalling the devices.

Configuration

One requirement for the commissioning of the CP is the completeness of the STEP 7 project data.

Procedure for installation and commissioning

Step 1
3 4 5
6

Execution
When installing and connecting up, keep to the procedures described for installing I/O modules in the system manual "S7-1500 Automation System".

Notes and explanations

Connect the CM to PROFIBUS via the Lower surface of the CM RS-485 socket.

Turn on the power supply.

Close the front covers of the module and keep them closed during operation.

The remaining steps in commissioning involve downloading the STEP 7 project data.

The STEP 7 project data of the CM is transferred when you download to the station. To load the station, connect the engineering station on which the project data is located to the Ethernet/MPI interface of the CPU.

You will find more detailed information on loading in the following sections of the STEP 7 online help:

· Downloading project data

· Using online and diagnostics functions

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

21

Installation, connecting up, commissioning, operation 3.3 Pin assignment PROFIBUS

3.3

Pin assignment PROFIBUS

PROFIBUS interface
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of RS485 interface.

Table 3- 1

Terminal assignment PROFIBUS interface

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line A Request To Send Data reference potential (from station) Supply plus (from station) Data line B -

Note PROFIBUS interface
The CM provides no 24 VDC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter 6ES7972-0CB20-0XA0) are therefore not operational on the interface).

3.4

Mode of the CPU - effect on the CM

You can change the mode of the CPU between RUN and STOP using STEP 7 or the switch.

Depending on the operating status of the CPU, the CM behaves as described below.

Changing the CPU from STOP to RUN
 Programmed connections are established.  In DP master mode:
­ Change from CLEAR to the OPERATE mode  In DP slave mode:
­ Going diagnostics interrupt to the master ­ Current input data is transferred.

CM 1542-5

22

Operating Instructions, 10/2016, C79000-G8976-C290-03

Installation, connecting up, commissioning, operation 3.4 Mode of the CPU - effect on the CM
Changing the CPU from RUN to STOP
The reaction is as follows in STOP:  Programmed connections are terminated.  In DP master mode:
Change to the CLEAR mode  In DP slave mode:
­ Input data is sent to the DP master with the value "0" and a DP diagnostics alarm is sent.
 Regardless of the mode, the following functions remain enabled: ­ The configuration and diagnostics of the CM Relevant system connections for configuration, diagnostics and PG channel routing still exist. ­ Data record routing ­ S7 routing function ­ Time-of-day synchronization ­ Configured connections remain established.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

23

Installation, connecting up, commissioning, operation 3.4 Mode of the CPU - effect on the CM

CM 1542-5

24

Operating Instructions, 10/2016, C79000-G8976-C290-03

Configuration, programming

4

4.1

Configuration in STEP 7

Configuration in STEP 7
You configure the CM in SIMATIC STEP 7. You will find the required version in the section Project engineering (Page 15).
You will find complete information on configuration in the STEP 7 information system.

Loading and saving the configuration data
When you load the station, the project data of the station including the configuration data of the CP is stored on the CPU. You will find information on loading the station in the STEP 7 information system.

4.2

Program blocks for communication and distributed I/O

Program blocks (instructions) for communications services
For communications services, there are preprogrammed program blocks (instructions) available as the interface in your STEP 7 user program.

Table 4- 1 Instructions for PROFIBUS DP

System blocks and system functions DPSYC_FR DPNRM_DG DP_TOPOL WRREC RDREC GETIO SETIO GETIO_PART SETIO_PART D_ACT_DP DPRD_DAT DPWR_DAT RALRM

Meaning when used with CM
DP slaves synchronize / freeze inputs (SYNC/FREEZE instruction) Reading the diagnostics data of a DP slave Detecting the topology for the DP master system Writing the data record of a DP slave Reading the data record of a DP slave Reading the process image of a DP standard slave Transferring the process image of a DP standard slave Reading the process image partition of a DP standard slave Transferring the process image partition of a DP standard slave Disable / enable DP slaves Reading consistent data of a DP standard slave (user data) Writing consistent data of a DP standard slave Event-driven reading of interrupt information (diagnostics, pull/plug, hardware interrupt) and DPV1-specific interrupts (update, status, vendorspecific interrupt)

Refer to the documentation of the program blocks in the information system of STEP 7.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

25

Configuration, programming 4.3 Program blocks for FDL
Calling program blocks (instructions) for distributed I/O
Several calls are necessary for the instructions of the distributed I/O. The time required to process the job depends on load, round-trip time and transmission speed. If these instructions are called in a loop within one cycle, the cycle time could be exceeded. Exception: Only one call is required for RALRM "receive alarm". Program blocks for DPV1 according to the PNO standard (PROFIBUS user organization):  RDREC
"Read data record from a DP slave" corresponds to SFC59 in terms of function  WRREC
"Write data record to a DP slave" corresponds to SFC58 in terms of function  RALRM
"Read interrupt information from a DP slave" - call in an interrupt OB

4.3

Program blocks for FDL

Program blocks of Open User Communication (OUC) for FDL
To use the bus access protocol FDL (Fieldbus Data Link) use the program blocks of Open User Communication (OUC). For this, create a suitable program blocks. You will find details on the program blocks in the information system of STEP 7.
The end point of an FDL connection is an S7-1500 CPU with communications module CM 1542-5. For the required firmware versions of the modules, see section Programming (Page 15).

Supported program blocks for OUC
The following instructions in the specified minimum version are available for programming Open User Communication to use FDL:
 TSEND_C V3.1 / TRCV_C V3.1
Compact blocks for connection establishment and for sending and receiving data via a configured or programmed connection
or
 TCON V4.0 / TDISCON V2.1
Connection establishment / connection termination

CM 1542-5

26

Operating Instructions, 10/2016, C79000-G8976-C290-03

Configuration, programming 4.3 Program blocks for FDL
 TSEND V4.0 / TRCV V4.0 Sending or receiving data over a configured connection
 TUSEND V4.0 / TURCV V4.0 Sending or receiving data over a configured connection With these blocks the connection parameters can be changed at runtime.
The program block can be found in STEP 7 in the "Instructions > Communication > Open User Communication" window.
Connection description of the type "TCON_FDL"
To reference the connection description, the blocks "TCON" and "TSEND_C / TRCV_C" use the CONNECT patrameter. The connection description is stored in a data block whose structure is specified by the system data type (SDT) "TCON_FDL".
Creating an SDT for the data block You create the SDT required for every connection description as a data block. You generate the SDT type in STEP 7 by entering the name ("TCON_FDL") in the "Data type" box manually in the declaration table of block instead of selecting an entry from the "Data type" drop-down list. The SDT is then created with its preset parameters. For FDL the following SDTs are used:  TCON_FDL
For transferring data via FDL You will find the description of TCON_FDL in the STEP 7 information system (keyword "TCON_FDL").
Programmed connection establishment or termination with TCON / TDISCON
Connections are established using the program block TCON. Note that a separate program block TCON must be called for each connection. A separate connection must be established for each communications partner even if identical blocks of data are being sent. After a successful transfer of the data, a connection can be terminated. A connection is also terminated by calling "TDISCON".
Note Connection abort If an existing connection is aborted by the communications partner or due to disturbances on the network, the connection must also be terminated by calling TDISCON. Make sure that you take this into account in your programming.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

27

Configuration, programming 4.3 Program blocks for FDL

Configured and programmed FDL connections
The following types of FDL connections can be established:  Configured FDL connections
These connection types are configured in the STEP 7 program editor, see below. TSEND / TRCV or TUSEND / TURCV are used as the blocks. ­ Specified connection
Fully configured connection between two partners ­ Unspecified connection
Configured connection with an unspecified partner ­ Broadcast connection
Connection with all connected partners ­ Multicast connection
Connection with several defined partners  Programmed FDL connections
These connection types cannot be configured in the STEP 7 program editor. Instead for these connection types either calling TCON along with TSEND/TRCV or TUSEND/TURCV is required or TSEND_C / TRCV_C. ­ Specified connection
Fully configured connection between two partners ­ Unspecified connection
Configured connection with an unspecified partner ­ Unspecified Layer 2 connection
Programmed FDL-Verbindung with an unspecified partner with free layer 2 access ­ Broadcast connection
Connection to all connected partners ­ Multicast connection
Connection to several defined partners The specific settings for the individual connection types are explained in the STEP 7 information system in TCON_FDL.

Setting up a configured FDL connection using TSEND_C
Proceed as follows to set up a configured FDL connection in STEP 7: 1. Create a TSEND_C instruction in the program editor.
You will be prompted to create the relevant data block. 2. Select the TSEND_C instruction and navigate in the Inspector window to "Properties" >
"Configuration" > parameter group "Connection parameters". 3. In type of configuration, select "Use configured connection"

CM 1542-5

28

Operating Instructions, 10/2016, C79000-G8976-C290-03

Configuration, programming 4.3 Program blocks for FDL
4. In connection type, select "FDL". 5. Under End point, select the partner end point. Use one of the two following partner end
points. ­ CPU S7-1500 with CM 1542-5 ­ Unspecified 6. Select the following interfaces under Interfaces: ­ Local: PROFIBUS interface of CM 1542-5 ­ Specified partner: PROFIBUS interface of CM 1542-5 7. Select the setting <new> under Connection data. This creates a new connection between the two partners. The figure below shows a fully configured FDL connection in STEP 7.

Figure 4-1 Configuring the FDL connection
8. Configure the further block parameters.
Setting up a programmed FDL connection using TSEND_C
To set up a programmed FDL connection in STEP 7, follow the steps below: 1. Create a TSEND_C instruction in the program editor.
You will be prompted to create the relevant data block. 2. Program the block parameters.
Interconnect the CONNECT parameter of the TCON instruction with the previously created variable "FDL_Connection" of the data type TCON_FDL. The FDL connection is established and used for sending and receiving data.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

29

Configuration, programming 4.3 Program blocks for FDL
Setting up an FDL connection in the user program
For programmed communication via FDL, you need to create and program the data block of the system data type TCON_FDL yourself and call it directly at the instruction. Follow these steps: 1. Create a global data block in the project tree. 2. In the global data block create a variable of the data type TCON_FDL.
The following example shows the global data block "FDL_connection" with the variable "FDL_connection" of the data type TCON_FDL.

Figure 4-2 Programming an FDL connection
3. In the data block program the parameters of the FDL cconnection, e.g. the PROFIBUS addresses.
The type of connection is specified with the "ServiceId" parameter. You will find details in the STEP 7 information system.
4. Create a TCON instruction in the program editor.
5. Interconnect the CONNECT parameter of the TCON instruction with the previously created variable "FDL_Connection" of the data type TCON_FDL.
In the example below, the CONNECT parameter of the TCON instruction is interconnected with the tag "FDL_Connection" (data type TCON_FDL).

Figure 4-3 Example: TCON instruction for FDL connection

CM 1542-5

30

Operating Instructions, 10/2016, C79000-G8976-C290-03

Configuration, programming 4.3 Program blocks for FDL
The parameters of TCON_FDL You will find information on the parameters of TCON_FDL in the STEP 7 information system. Note the special features of the parameters "RemoteSAP" and "RemotePBAddress":  RemoteSAP = 255, RemotePBAddress = 255
If you program the value 255 both for RemoteSAP and RemotePBAddress, data transfer from every partner will be accepted regardless of its SAP.  RemoteSAP = 255, RemotePBAddress = specified If you program the value 255 for RemoteSAP and assign a specified value for RemotePBAddress, data transfer from the specified partner via each of its programmed SAPs will be accepted via this connection.  RemoteSAP = specified, RemotePBAddress = 255 If you program a specific value for RemoteSAP and assign the value 255 for RemotePBAddress, data transfer from every partner with the specified address will be accepted via this connection.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

31

Configuration, programming 4.3 Program blocks for FDL

CM 1542-5

32

Operating Instructions, 10/2016, C79000-G8976-C290-03

Diagnostics and upkeep

5

5.1

Diagnostics options

Diagnostics options
You have the following diagnostics options available for the module:
 The LEDs of the module
Diagnostics using the LEDs is the first means of narrowing down errors/faults. To narrow the error/fault down even further, evaluate the message on the display of the S7-1500 CPU. If errors/faults occur, you can also identify them using the Web server or by evaluating the diagnostics buffer of the CPU. The diagnostics buffer of the CPU contains plain language information about the error/fault that has occurred. The diagnostics buffer is accessible via STEP 7, the display and the Web server.
For information on the LED displays, refer to the section LEDs (Page 16).
 STEP 7: The "Diagnostics" tab in the Inspector window
Here, you can obtain the following information on the selected module:
­ Entries in the diagnostics buffer of the CPU
­ Information on the online status of the module
 STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu
Here, you can obtain static information on the selected module:
­ General information on the module
­ Diagnostics status
­ Information on the PROFIBUS interface
You can obtain further information on the diagnostics functions of STEP 7 in the STEP 7 online help.
 DP diagnostics
The DP diagnostics of the CM is described below.
The evaluation of diagnostics data records requested by the DP master and the diagnostics interrupts or diagnostics alarms of the DP slaves is handled in the user program of the DP master station.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

33

Diagnostics and upkeep 5.2 DP slave diagnostics

5.2

DP slave diagnostics

DP-V1 slave: Diagnostics interrupt
The diagnostics data is transferred as a diagnostics interrupt. Diagnostics interrupts must be acknowledged by the DP master.

Supported diagnostics functions
The CM 1542-5 supports the following blocks of DP diagnostics:  Standard diagnostics (6 bytes)  Identifier-related diagnostics (2 to 17 bytes), depending on the number of configured
transfer areas  Module status (5 to 35 bytes), depending on the number of configured transfer areas  If it exists: Diagnostics interrupt (8 bytes)

User program (DP master)
To read out the diagnostics data of the DP slave (DP single diagnostics), use the "DPNRM_DG" instruction on the DP master.
Diagnostics interrupts of DP-V1 slaves are evaluated in the user program of the master using the "RALRM" instruction.
You will find the required parameter assignment for the instructions in the STEP 7 online help.
Below, there is an overview of the structure of the diagnostics data.

Overview of standard diagnostics
Byte 0 1 2 3
4...5

Standard diagnostics Meaning
Station status 1 Station status 2 Station status 3 Master address Vendor ID of the slave

Overview of device-specific diagnostics
The device-specific diagnostics data depends on the protocol variant operating on the DP slave:
 DP-V1 slave

CM 1542-5

34

Operating Instructions, 10/2016, C79000-G8976-C290-03

Diagnostics and upkeep 5.3 Standard diagnostics

Table 5- 1
Byte 0 1
2 3
4...62

Overview of device-specific diagnostics of the CM with DP-V1 slaves

Device-specific diagnostics

Meaning

Header

Variant Interrupt type

Variant Status type

Slot number

Variant Interrupt specifier

Variant Status specifier

Module-specific diagnostics data

5.3

Standard diagnostics

The coding of the standard diagnostics bytes is explained below.

Byte 0: Station status 1
Table 5- 2 Structure of station status byte 1

Bit no. 7
6 5 4 3
2 1 0

Name Master_Lock
Parameter_Fault Invalid_Slave_Response Service_Not_Supported Ext_Diag
Slave_Config_Check_Fault Station_Not_Ready Station_Non_Existent

Explanation The DP slave was assigned parameters by a different DP master. The DP slave can only be read by the configured productive DP master. This bit is set by the DP master when its bus address differs from the configured address.
The last received parameter assignment frame was bad or not permitted. The DP slave sets this bit. Solution: Check the parameter settings for illegal parameters.
This bit is set by the DP master when no plausible response has been received from the DP slave.
This bit is set by the DP master when the master has requested a function that is not supported by the DP slave. Solution: Change the parameter setting to disable the function on the master.
This bit is set by the slave.
· Bit =1: There is diagnostics data in the slave-specific diagnostics area. The diagnostics data can be evaluated in the user program of the master.
· Bit =0: There may be status information in the slave-specific diagnostics area. The status information can be evaluated in the user program of the master.
The configuration data sent by the DP master is rejected by the DP slave. Cause: Configuration error. Solution: Change configuration.
The DP slave is not ready for productive data exchange. This is a temporary status that cannot be influenced by the DP master.
The DP slave is not reacting on the bus. This bit is set by the DP master 1 (the slave sets this bit permanently to 0). If the bit is set, the diagnostic bits have the state of the last diagnostics alarm or the initial value.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

35

Diagnostics and upkeep 5.3 Standard diagnostics

Byte 1: Station status 2

Table 5- 3 Structure of station status byte 2

Bit no. 7
6 5 4 3 2
1

Name Deactivated
Reserved Sync_Mode Freeze_Mode Watchdog_On Status_From_Slave
Static_Diag

0

Parameter_Request

Explanation The DP slave was identified as being not active in the local parameter record and it is not polled cyclically.
- reserved -
The DP slave is in SYNC mode. The bit is set by the slave.
The DP slave is in FREEZE mode. The bit is set by the slave.
Watchdog monitoring is active on the DP slave. The bit is set by the slave.
Bit =1: The diagnostics information comes from the DP slave. The bit is set permanently to 1 by the slave.
Static diagnostics If the DP slave sets this bit, the DP master must fetch diagnostics data from the DP slave until the DP slave resets the bit. The DP slave sets this bit, for example when it is not capable of data transfer.
The DP slave sets this bit when it needs to have new parameters assigned and be reconfigured. If bit 0 and bit 1 are both set, bit 0 has the higher priority.

Byte 2: Station status 3

Table 5- 4 Structure of station status byte 3

Bit no. 7
6...0

Name Ext_Data_Overflow
Reserved

Explanation If this bit is set, there is more diagnostics information available than indicated in the diagnostics data. This data cannot be displayed.
- reserved -

Byte 3: Master address
The address of the DP master that assigned parameters to this DP slave is entered in the "Master_Add" byte.
If the DP slave did not have parameters assigned to it by any DP master, the DP slave sets the address 255 in this byte.

Bytes 4 and 5: Vendor ID of the slave ("Ident_Number")
The vendor ID ("Ident_Number") for the DP slave type is entered in bytes 4 and 5. This identifier can be used to identify the slave.
The more significant part of the value is in byte 5.

CM 1542-5

36

Operating Instructions, 10/2016, C79000-G8976-C290-03

Diagnostics and upkeep 5.4 Device-specific diagnostics in DP-V1

5.4

Device-specific diagnostics in DP-V1

There are two variants of device-specific diagnostics with DP-V1 slaves:

 Interrupt type

 Status type

The two variants differ from each other in the coding of byte 1, bit 7 of the device-specific diagnostics data. The difference is component-specific.

Byte 0: Header
The two most significant bits have the value 00. This identifies the "module-specific diagnostics data" field (see bytes 4... 62) as a whole.
The remaining six bits indicate the length of the data field including byte 0.

Byte 1: Variant "Interrupt type"

Table 5- 5 Structure of byte 1 of the device-specific diagnostics (variant "interrupt type")

Bit no. 7
6...0

Value 0 Alarm_Type 0 1 2 3 4 5 6 7...31 32...126 127

Meaning Interrupt

Meaning

- reserved Diagnostics interrupt Hardware interrupt Pull interrupt Plug interrupt Status interrupt Update interrupt - reserved Vendor-specific - reserved -

If status interrupts are received in quick succession, older status interrupts may be overwritten by newer interrupts.

Byte 1: Variant "Status type"

Table 5- 6 Structure of byte 1 of the device-specific diagnostics (variant "status type")

Bit no. 7

Value 1

Meaning Meaning Status information

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

37

Diagnostics and upkeep 5.4 Device-specific diagnostics in DP-V1

Bit no. 6...0

Status_Type 0 1 2 3...31 32...126 127

Meaning
- reserved Status information Modul_Status (see also bytes 4...62) - reserved Vendor-specific - reserved -

Byte 2: Slot number
Slot number (1...n) of the slave module 0 is the placeholder for the entire device.

Byte 3: Variant "Interrupt specifier"

Table 5- 7 Structure of byte 3 of the device-specific diagnostics (variant "interrupt specifier")

Bit no. 7...3 2

Seq_No Add_Ack

1...0 Alarm_Specifier 0 1

2

3

Meaning Unique identifier of an interrupt alarm If this bit is set, the DP-V1 master is indicating that this interrupt expects an acknowledgement in the form of a WRITE job.
No further distinction Interrupt appears, slot disrupted The slot generates an interrupt due to an error. Interrupt disappears, slot OK The slot generates the interrupt and indicates that it has no further errors. Interrupt disappears, slot still disrupted The slot generates an interrupt and indicates that it has further errors.

Byte 3: Variant "Status specifier"

Table 5- 8 Structure of byte 3 of the device-specific diagnostics (variant "status specifier")

Bit no. 7...2 1...0

- reserved Status_Specifier 0 1 2 3

Meaning
No further distinction Status appears Status disappears - reserved -

CM 1542-5

38

Operating Instructions, 10/2016, C79000-G8976-C290-03

Diagnostics and upkeep 5.5 DP diagnostics frames when the CPU is in STOP

Bytes 4...62: Module-specific diagnostics: General coding
This byte contains data with module-specific information that is described in the relevant module documentation. The relevant module is identified by the slot (byte 2).

Bytes 4...62: Module-specific diagnostics with "status type" and "module status"
With the variant "status type" of the device-specific diagnostics of DP-V1 slaves (see byte 1, bit 7) and the setting "Modul_Status" (see byte 1, bits 0...6), there are two status bits here for each slot (= module). Bits not required are set to 0.

Table 5- 9 Structure of the bytes for module-specific diagnostics data

Byte Bit
4 5 ... 62

7

6

Module status 4

Module status 8

...

Module status 236

Bit assignment

5

4

3

2

Module status 3

Module status 2

Module status 7

Module status 6

...

...

Module status 235 Module status 234

The status bits are coded as follows:

1

0

Module status 1

Module status 5

...

Module status 233

Table 5- 10 Meaning of the values of the status bits

Value 00 01 10 11

Meaning Data valid Data invalid - error (for example short-circuit) Data invalid - wrong module Data invalid - no module plugged in

5.5

DP diagnostics frames when the CPU is in STOP

DP diagnostics frames when the CPU is in STOP
All diagnostics frames from DPV0 standard slaves and all DP interrupt frames from DPS7/DPV1 standard slaves arriving when the CPU is in STOP are forwarded to the CPU. During module startup, the diagnostics frames must then be evaluated by a suitable user program.

5.6

Replacing a module without a programming device

General procedure
The configuration data of the CM is stored on the CPU. This means that this module can be replaced by a module of the same type (identical article number) without using a PG.

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

39

Diagnostics and upkeep 5.6 Replacing a module without a programming device

CM 1542-5

40

Operating Instructions, 10/2016, C79000-G8976-C290-03

Technical specifications

6

Note the information in the System description of SIMATIC S7-1500 (Page 7).
In addition to the information in the system description, the following technical specifications apply to the module.

Technical specifications - CM 1542-5 Product name Article number Connection to PROFIBUS · Number
· Design

CM 1542-5 6GK7 542-5DX00-0XE0
1 x PROFIBUS interface D-sub socket (RS-485)

· Transmission speed
Electrical data Power supply · Via S7-1500 backplane bus

9.6 kbps, 19.2 kbps, 45.45 kbps, 93.75 kbps, 187.5 kbps, 500 kbps, 1.5 Mbps, 3 Mbps, 6 Mbps, 12 Mbps
15 V

Current consumption · From backplane bus

200 mA

Power dissipation Insulation Insulation tested with Design, dimensions and weight Module format Degree of protection Weight Dimensions (W x H x D) Installation options Product functions *

3 W
707 VDC (type test)
Compact module S7-1500, single width IP20 Approx. 400 g 35 x 142 x 129 mm Mounting in an S7-1500 rack

* You will find the product functions in the section Configuration limits and performance data (Page 12).

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

41

Technical specifications

CM 1542-5

42

Operating Instructions, 10/2016, C79000-G8976-C290-03

Approvals

7

Approvals issued
Note Issued approvals on the type plate of the device
The specified approvals - with the exception of the certificates for shipbuilding - have only been obtained when there is a corresponding mark on the product. You can check which of the following approvals have been granted for your product by the markings on the type plate. The approvals for shipbuilding are an exception to this.

Certificates for shipbuilding and national approvals
The device certificates for shipbuilding and special national approvals can be found in Siemens Industry Online Support on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15671/cert)
EC declaration of conformity
The product meets the requirements and safety objectives of the following EC directives and it complies with the harmonized European standards (EN) for programmable logic controllers which are published in the official documentation of the European Union.
 2014/34/EU (ATEX explosion protection directive)
Directive of the European Parliament and the Council of 26 February 2014 on the approximation of the laws of the member states concerning equipment and protective systems intended for use in potentially explosive atmospheres, official journal of the EU L96, 29/03/2014, pages. 309-356
 2014/30/EU (EMC)
EMC directive of the European Parliament and of the Council of February 26, 2014 on the approximation of the laws of the member states relating to electromagnetic compatibility; official journal of the EU L96, 29/03/2014, pages. 79-106
 2011/65/EU (RoHS)
Directive of the European Parliament and of the Council of 8 June 2011 on the restriction of the use of certain hazardous substances in electrical and electronic equipment
The EC Declaration of Conformity is available for all responsible authorities at:
Siemens Aktiengesellschaft Division Process Industries and Drives Process Automation DE-76181 Karlsruhe Germany

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

43

Approvals

IECEx

You will find the EC Declaration of Conformity on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15671/cert)
The product meet the requirements of explosion protection according to IECEx. IECEx classification: Ex nA IIC T4 Gc The product meets the requirements of the following standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' You can see the current versions of the standards in the IECEx certificate that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15671/cert) The conditions must be met for the safe deployment of the CP according to the section Notes on use in hazardous areas according to ATEX / IECEx (Page 20). You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)

ATEX

The product meets the requirements of the EC directive:2014/34/EC "Equipment and Protective Devices for Use in Potentially Explosive Atmospheres". Applied standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' The current versions of the standards can be seen in the EC Declaration of Conformity, see above. ATEX approval: II 3 G Ex nA IIC T4 Gc Test number: DEKRA 12 ATEX 0240X The conditions must be met for the safe deployment of the CP according to the section Notes on use in hazardous areas according to ATEX / IECEx (Page 20).

CM 1542-5

44

Operating Instructions, 10/2016, C79000-G8976-C290-03

EMC
RoHS c(UL)us

Approvals
You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find here:  In the SIMATIC NET Manual Collection in
"All documents" > "Use of subassemblies/modules in a Zone 2 Hazardous Area"  On the Internet at the following address:
Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)
Until 19.04.2016 the CP meets the requirements of the EC Directive 2014/30/EU "Electromagnetic Compatibility" (EMC directive). Applied standards:  EN 61000-6-4
Electromagnetic compatibility (EMC) - Part 6-4: Generic standards - Emission standard for industrial environments  EN 61000-6-2 Electromagnetic compatibility (EMC) - Part 6-2: Generic standards - Immunity for industrial environments
The CP meets the requirements of the EC directive 2011/65/EU on the restriction of the use of certain hazardous substances in electrical and electronic equipment. Applied standard:  EN 50581:2012
Applied standards:  Underwriters Laboratories, Inc.: UL 61010-1 (Safety Requirements for Electrical
Equipment for Measurement, Control, and Laboratory Use - Part 1: General Requirements)  IEC/UL 61010-2-201 (Safety requirements for electrical equipment for measurement, control and laboratory use. Particular requirements for control equipment)  Canadian Standards Association: CSA C22.2 No. 142 (Process Control Equipment) Report / UL file: E 85972 (NRAG, NRAG7)

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

45

Approvals

cULus Hazardous (Classified) Locations
Underwriters Laboratories, Inc.: cULus IND. CONT. EQ. FOR HAZ. LOC. Applied standards:  ANSI ISA 12.12.01  CSA C22.2 No. 213-M1987 APPROVED for Use in:  Cl. 1, Div. 2, GP. A, B, C, D T3...T6  Cl. 1, Zone 2, GP. IIC T3...T6 Ta: Refer to the temperature class on the type plate of the CP Report / UL file: E223122 (NRAG, NRAG7) CULUS Listed 7RA9 IND. CONT. EQ. FOR HAZ. LOC. Note the conditions for the safe deployment of the product according to the section Notes on use in hazardous areas according to UL HazLoc (Page 20).
Note For devices with C-PLUG memory: The C-PLUG memory module may only be inserted or removed when the power is off.

CSA FM

CSA Certification Mark Canadian Standard Association (CSA) nach Standard C 22.2 No. 142:  Certification Record 063533­C-000
Factory Mutual Approval Standards:  Class 3600  Class 3611  Class 3810  ANSI/ISA 61010-1 Report Number 3049847 Class I, Division 2, Group A, B, C, D, T4 Class I, Zone 2, Group IIC, T4 You will find the temperature class on the type plate on the module.

CM 1542-5

46

Operating Instructions, 10/2016, C79000-G8976-C290-03

Approvals
Australia - RCM
The product meets the requirements of the AS/NZS 2064 standards (Class A).
AVIS CANADIEN
Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada. This class A digital device meets the requirements of the Canadian standard ICES-003.
Current approvals
SIMATIC NET products are regularly submitted to the relevant authorities and approval centers for approvals relating to specific markets and applications. If you require a list of the current approvals for individual devices, consult your Siemens contact or check the Internet pages of Siemens Industry Online Support: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15671/cert)

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

47

Approvals

CM 1542-5

48

Operating Instructions, 10/2016, C79000-G8976-C290-03

Index

B
Bus topology, 11
C
Cable length, 12 Characteristic data (DP), 13 Characteristic data (FDL), 14 Characteristics (S7 communication), 14 CM, 3 Configuration, 15 Configuration data
Downloading, 15 Connection resources of the CPU, 14

F
FDL connections, 10 Field device parameter assignment, 10 Firmware
CM, 16 CPU, 16
G
Glossary, 4
H
HMI functions, 14

D
Data record routing, 10, 14 Diagnostics options, 33 Diagnostics repeater (DP slave), 11 Diagnostics requests, 11 Diagnostics requirements, 13 Direct data exchange, 10 Downloading project data, 21 Downloads, 8 DP diagnostics, 33 DP diagnostics frames when the CPU is in STOP, 39 DP master
Master mode, 23 DP master (class 1), 10, 11 DP masters (class 2), 11 DP mode
General characteristic data, 13 DP slave, 10, 11
Slave mode, 23 DP slaves
Quantity, 13

I
Installation and commissioning, 21 Instruction
DE_ACT, 11
M
Measured values Transfer/reaction times, 15
Module replacement, 39
N
Number of operable CMs, 12
O
Operating mode of the CPU, 22 OUC (Open User Communication), 26

E
EMC - electromagnetic compatibility, 43

P
PG functions, 14 PG/OP communication, 10 PROFIBUS
DP-V0 and DPV1 standard, 10

CM 1542-5

Operating Instructions, 10/2016, C79000-G8976-C290-03

49

Index
PROFIBUS DP EN 50170 DPV1, 10
PROFIBUS interface, 22
R
RS-485 interface, 22 RS-485 socket, 21
S
S7 communication, 10 S7 connections, 10, 14 S7 routing function, 23 Safety notices, 19 Siemens DP slave, 10 SIMATIC NET glossary, 4 SIMATIC NET Manual Collection, 8 Startup parameters DP, 13 STEP 7, 3 SYNC/FREEZE, 10
T
TCON_FDL, 26, 30 Time master, 11 Time slave, 11 Time synchronization, 23 Time-of-day synchronization, 11 Transmission speed, 12
V
Version history, 8
W
Web diagnostics, 12 S7 connections, 12

CM 1542-5

50

Operating Instructions, 10/2016, C79000-G8976-C290-03

CP 1542-5
SIMATIC NET S7-1500 - PROFIBUS CP 1542-5
Manual

_Pr_ef_ac_e_______________

_Gu_id_e_to_t_he_d_oc_u_m_en_ta_tio_n____1_

_Pr_od_u_ct_o_ve_rv_ie_w _________2_

_Fu_n_cti_on_a_l c_ha_ra_c_te_ris_tic_s_____3_

_Re_q_ui_re_m_en_ts_fo_r _us_e_______4_

_Ccoo_mn_nme_isc_stiino_gn_iunp_g /__________5_

Interrupts, diagnostics

messages, error and

6

system alarms

_Te_ch_n_ic_al_sp_e_cif_ic_at_ion_s______7_

_Ap_p_ro_va_ls_____________8_

11/2014
C79000-G8976-C326-03

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

C79000-G8976-C326-03  11/2014 Subject to change

Copyright © Siemens AG 2013 - 2014. All rights reserved

Preface

Purpose of the documentation
This device manual supplements the system manual of the S7-1500 automation system and the function manuals. All functions that go beyond the system are described in the system manual.
With the information in this manual and the system manual, you will be able to commission the CP 1542-5.
See also Guide to the documentation (Page 7)

Conventions

Make sure you read the special notices below:
Note A notice contains important information on the product described in the documentation, handling the product or about parts of the documentation you should pay particular attention to.

Names

 In this document, the term "CP" is also used instead of the full product name.  The name STEP 7 is used to mean the STEP 7 Professional configuration tool.

SIMATIC NET glossary
Explanations of many of the specialist terms used in this documentation can be found in the SIMATIC NET glossary. You will find the SIMATIC NET glossary here:  SIMATIC NET Manual Collection or product DVD
The DVD ships with certain SIMATIC NET products.  On the Internet under the following entry ID:
50305045 (http://support.automation.siemens.com/WW/view/en/50305045)

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

3

Preface

License conditions
Note Open source software Read the license conditions for open source software carefully before using the product.
You will find license conditions in the following documents on the supplied data medium:  DOC_OSS-S7CMCP_74.pdf  DOC_OSS-CP1542-5_76.pdf

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. For more information about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-specific newsletter. For more information, visit http://support.automation.siemens.com.

Trademarks

The following and possibly other names not identified by the registered trademark sign ® are registered trademarks of Siemens AG:
SIMATIC NET, CP 1542-5

CP 1542-5

4

Manual, 11/2014, C79000-G8976-C326-03

Table of contents

Preface ................................................................................................................................................... 3

1 Guide to the documentation .................................................................................................................... 7

2 Product overview .................................................................................................................................... 9

2.1

Properties .................................................................................................................................. 9

2.2

Further functions .....................................................................................................................11

3 Functional characteristics...................................................................................................................... 13

3.1

Transmission speeds supported.............................................................................................13

3.2

Characteristic data of the DP interface ...................................................................................13

3.3

Characteristics of S7 communication .....................................................................................14

4 Requirements for use............................................................................................................................ 15

4.1

Configuration limits .................................................................................................................15

4.2

Project engineering .................................................................................................................15

4.3

Programming ..........................................................................................................................15

5 Connecting up / commissioning............................................................................................................. 17

5.1

Important notes on using the device.......................................................................................17

5.2

Installing and commissioning the CP 1542-5 .........................................................................19

5.3

Replacing a module without a programming device...............................................................21

5.4

Mode of the CPU - effect on the CP .......................................................................................22

6 Interrupts, diagnostics messages, error and system alarms................................................................... 23

6.1

Status and error display of the CP..........................................................................................23

6.2

Diagnostics options.................................................................................................................25

6.3

DP slave diagnostics...............................................................................................................25

6.4

Standard diagnostics ..............................................................................................................27

6.5

Device-specific diagnostics in DP-V1 .....................................................................................29

6.6

DP diagnostics frames when the CPU is in STOP .................................................................32

7 Technical specifications ........................................................................................................................ 33

8 Approvals.............................................................................................................................................. 35

Index..................................................................................................................................................... 39

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

5

Table of contents

CP 1542-5

6

Manual, 11/2014, C79000-G8976-C326-03

Guide to the documentation

1

Introduction

The documentation of the SIMATIC products has a modular structure and covers topics relating to your automation system.
The complete documentation for the S7-1500 system consists of a system manual, function manuals and device manuals.
The STEP 7 information system (online help) also supports you when configuring and programming your automation system.

Overview of the documentation on communication with S7-1500
The following table lists additional documents that supplement this description of the CP 1542-5 and are available in the Internet.

Table 1- 1 Documentation for the CP 1542-5

Topic
System description

Documentation
System manual: S7-1500 Automation System (http://support.automation.siemens.com/WW/vi ew/en/59191792)

Most important contents · Application planning · Installation · Connecting

· Commissioning

Module properties Device manual: Power supplies

· Connecting

(http://support.automation.siemens.com/WW/vi ew/en/57251228)

·

Parameter assignment/ addressing

Device manual: Signal modules (http://support.automation.siemens.com/WW/vi · Interrupts, error messages,

ew/en/59174020)

diagnostics and system

alarms

· Technical specifications

· Dimensional drawing

System diagnostics

Function manual: System diagnostics

· Overview

(http://support.automation.siemens.com/WW/vi ew/en/59192926)

·

Diagnostics evaluation for hardware/software

Communication

Function manual: Communication

· Overview

(http://support.automation.siemens.com/WW/vi

ew/en/59192925)

Function manual: PROFINET with STEP 7 V12 · PROFINET basics

(http://support.automation.siemens.com/WW/vi ew/en/49948856)

·

PROFINET functions

· PROFINET diagnostics

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

7

Guide to the documentation

Topic
Interference-free installation of control systems
Memory concept
Cycle and response times Analog value processing

Documentation

Most important contents

Function manual: PROFIBUS with STEP 7 V12 ·

(http://support.automation.siemens.com/WW/vi ew/en/59193579)

·

·

PROFIBUS basics PROFIBUS functions PROFIBUS diagnostics

Function manual: Web Server

· Function

(http://support.automation.siemens.com/WW/vi ew/en/59193560)

·

Operation

Function Manual: Interference-free installation · Basics

of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic compatibil-

ew/en/59193566)

ity

· Lightning protection

· Housing selection

Function manual: Structure and Use of the

· Design

CPU Memory (http://support.automation.siemens.com/WW/vi

·

Principle of operation

ew/en/59193101)

· Use

Function manual: Cycle and Response Times · Basics

(http://support.automation.siemens.com/WW/vi ew/en/59193566)

·

Calculations

Function manual: Analog value processing

· Wiring options

(http://support.automation.siemens.com/WW/vi ew/en/59193559)

·

Tables of measured values

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).
CP/CM documentation in the Manual Collection (article number A5E00069051)
The "SIMATIC NET Manual Collection" DVD contains the device manuals and descriptions of all SIMATIC NET products current at the time it was created. It is updated at regular intervals.
Version History / Current Downloads for the SIMATIC NET S7 CPs/CMs
The "Version History/Current Downloads for SIMATIC NET S7 CPs (PROFIBUS)" provides information on all CPs available up to now for SIMATIC S7 (PROFIBUS). An up-to-date version of this document can be found on the Internet (http://support.automation.siemens.com/WW/view/en/9836605)

CP 1542-5

8

Manual, 11/2014, C79000-G8976-C326-03

Product overview

2

2.1

Properties

Article number, validity and product names
This description contains information on the following product:
CP 1542-5 Article number6GK7 542-5FX00-0XE0 Hardware product version 1 Firmware version V1.0
Communications processor for connecting SIMATIC S7-1500 to PROFIBUS DP.

View of the CP

 LEDs  Type plate  PROFIBUS interface: 1 x 9-pin D-sub female connector (RS-485)
Figure 2-1 View of the CP 1542-5 with closed (left) and open (right) front cover

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

9

Product overview 2.1 Properties

Application

The communications processor CP 1542-5 is intended for operation in an S7-1500 automation system. The CP 1542-5 allows the connection of an S7-1500 station to a PROFIBUS fieldbus system.

Supported communications services
In its current configuration, the CP 1542-5 supports the following communications services:  PROFIBUS DP master (class 1)
­ PROFIBUS DP according to EN 50170 DPV1, DP master ­ DP master mode for DP slaves complying with the PROFIBUS DPV0 and DPV1
standard ­ DP master mode for Siemens DP slaves ­ Direct data exchange (DP slave to DP slave)
As a DP master, the CP 1542-5 is capable of enabling direct data exchange for "its" DP slaves. ­ SYNC / FREEZE The outputs or inputs can be synchronized by the user program using system function DPSYNC_FR.  PROFIBUS DP slave PROFIBUS DP according to EN 50170 DPV1, DP slave
Note DP master or DP slave Please note, however: The CP 1542-5 only supports operation either as DP master or DP slave.
 S7 communication ­ PG communication for uploading / downloading of S7 configuration, diagnostics and routing ­ Operator control and monitoring functions (HMI communication) ­ Data exchange via S7 connections
The services of the CP 1542-5 listed above can be used independently at the same time.

CP 1542-5

10

Manual, 11/2014, C79000-G8976-C326-03

Product overview 2.2 Further functions

2.2

Further functions

Enabling /disabling DP slave - in the standard system
DP slaves can be activated and deactivated by the user program using system function D_ACT_DP.
Diagnostics requests
As a DP master (class 1), the CP 1542-5 supports diagnostics requests of a DP master (class 2).
Getting the bus topology in a DP master system
The CP 1542-5 operating as DP master supports the measurement of the PROFIBUS bus topology in a DP master system using a diagnostics repeater (DP slave). System function DP_TOPOL in the user program can instruct diagnostics repeaters to measure the PROFIBUS BUS topology in a DP master system.
Time-of-day synchronization - time master or time slave
The CP 1542-5 can be enabled for time-of-day synchronization. As an alternative, the CP can be configured as time master or time slave on PROFIBUS.  Time master: The CP is synchronized using the time of day in the S7-1500 station and
outputs the time of day on PROFIBUS. The output interval can be set.  Time slave: The CP receives time-of-day frames on PROFIBUS and outputs the time
within the S7-1500 station. The output interval within the S7-1500 station is set permanently to 10 seconds.
Note Recommendation for setting the time It is advisable to set the time-of-day master so that time-of-day frames are sent at intervals of approximately 10 seconds. This achieves as small a deviation as possible between the internal time and the absolute time.

Web diagnostics
With the aid of Web diagnostics of the CPU, you read the diagnostics data from an S7 station via the Web browser on the PG/PC. In terms of the CP, the Web pages provide the following information:  Module and status information  Special information on the DP master system (status of the DP slaves)

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

11

Product overview 2.2 Further functions

CP 1542-5

12

Manual, 11/2014, C79000-G8976-C326-03

Functional characteristics

3

Note Measured values of transfer or reaction times
Measurements of transfer and reaction times in Ethernet, PROFIBUS and PROFINET networks for a series of configurations can be found on the Internet (http://support.automation.siemens.com/WW/view/en/25209605)

3.1

Transmission speeds supported

The transmission speed is set with the SIMATIC STEP 7 configuration software.

Note Remember the cable length The permitted cable length must be kept to depending on the transmission speed.

Refer to the information in the section Technical specifications (Page 33)

3.2

Characteristic data of the DP interface

General characteristic data
No special program blocks are required for DP mode. The interfacing to the distributed I/O is by direct I/O access or using program blocks (SFCs/SFBs) of the CPU.

Table 3- 1 General characteristic data of DP mode
Characteristic Number of operable DP slaves Max. size of the input area of all DP slaves Max. size of the output area of all DP slaves Maximum size of the input area per DP slave Maximum size of the output area per DP slave Max. size of the consistent area for a module

Explanation / values 32 2 Kbytes 2 Kbytes 244 bytes 244 bytes 128 bytes

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

13

Functional characteristics 3.3 Characteristics of S7 communication
Diagnostics requests
As a DP master (class 1), the CP 1542-5 supports diagnostics requests of a DP master (class 2).
DP startup behavior
Note Increasing the default value for startup parameters - configuration of the CPU In some situations, it is necessary to increase the default value for the startup parameter "Parameter assignment time for the distributed I/O" in the configuration of the CPU: · When there is a large number of modules (DP slaves) configured that can be assigned
parameters. · When a high value is configured for the constant bus cycle time in the network properties
of the PROFIBUS DP line.

3.3

Characteristics of S7 communication

General characteristic data
The following information is important when operating S7 connections:

Table 3- 2 General characteristics of S7 connections

Characteristic
Number of S7 connections that can be operated via PROFIBUS

Explanation / values Operable in total: Max. 16 The value depends on the S71500 CPU being used.

CP 1542-5

14

Manual, 11/2014, C79000-G8976-C326-03

Requirements for use

4

4.1

Configuration limits

When using the CP type described here, the following limits apply:

 The number of CPs that can be operated in a rack depends on the CPU type being used.

Note the information in the documentation of the CPU, see Guide to the documentation (Page 7)

4.2

Project engineering

Configuration and downloading the configuration data
When the configuration data is downloaded to the CPU, the CP 1542-5 is supplied with the configuration information. The configuration data can be downloaded to the CPU via PROFIBUS or any PROFINET interface of the S7-1500 station.
The following version of STEP 7 is required:

STEP 7 version and additional modules STEP 7 Professional V12 SP1

Functions of the CP
The full functionality of the CP 1542-5 (6GK7 542 5FX00 0XE0) can be configured

4.3

Programming

Program blocks
For communications services, there are preprogrammed program blocks (instructions) available as the interface in your STEP 7 user program.

Table 4- 1 Instructions for PROFIBUS DP

System blocks and system functions DPSYC_FR DPNRM_DG DP_TOPOL WRREC

Meaning when used with CP
DP slaves synchronize / freeze inputs (SYNC/FREEZE instruction) Reading the diagnostics data of a DP slave Detecting the topology for the DP master system Writing the data record of a DP slave

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

15

Requirements for use 4.3 Programming

System blocks and system functions RDREC GETIO SETIO GETIO_PART SETIO_PART D_ACT_DP DPRD_DAT DPWR_DAT RALRM

Meaning when used with CP
Reading the data record of a DP slave Reading the process image of a DP standard slave Transferring the process image of a DP standard slave Reading the process image partition of a DP standard slave Transferring the process image partition of a standard DP slave Disable / enable DP slaves Reading consistent data of a DP standard slave Writing consistent data of a DP standard slave Event-driven reading of interrupt information (diagnostics, pull/plug, hardware interrupt) and DPV1-specific interrupts (update, status, vendorspecific interrupt)

Refer to the documentation of the program blocks in the online help of STEP 7

Calling program blocks (instructions) for distributed I/O
Several calls are necessary for the instructions of the distributed I/O.
The time required to process the job depends on load, round-trip time and transmission speed. If these instructions are called in a loop within one cycle, the cycle time could be exceeded.
Exceptions:
 Only one call is required for the RALRM instruction "receive alarm".
Program blocks for DPV1 (according to the PNO standard) 1):
 Instruction RDREC "Read data record from a DP slave" corresponds to SFC59 in terms of function
 Instruction WRREC "Write data record to a DP slave" corresponds to SFC58 in terms of function
 Instruction RALRM "Read interrupt information from a DP slave" - call in an interrupt OB
1) PNO: PROFIBUS Users Organization

See also

8797900 (http://support.automation.siemens.com/WW/view/en/8797900)

CP 1542-5

16

Manual, 11/2014, C79000-G8976-C326-03

Connecting up / commissioning

5

5.1

Important notes on using the device

Safety notices on the use of the device
The following safety notices must be adhered to when setting up and operating the device and during all associated work such as installation, connecting up, replacing devices or opening the device.

General notices
WARNING
Safety extra low voltage
The equipment is designed for operation with Safety Extra-Low Voltage (SELV) by a Limited Power Source (LPS). (This does not apply to 100 V...240 V devices.)
This means that only SELV / LPS complying with IEC 60950-1 / EN 60950-1 / VDE 0805-1 must be connected to the power supply terminals. The power supply unit for the equipment power supply must comply with NEC Class 2, as described by the National Electrical Code (r) (ANSI / NFPA 70). There is an additional requirement if devices are operated with a redundant power supply:
If the equipment is connected to a redundant power supply (two separate power supplies), both must meet these requirements.

General notices on use in hazardous areas
WARNING Risk of explosion when connecting or disconnecting the device EXPLOSION HAZARD DO NOT CONNECT OR DISCONNECT EQUIPMENT WHEN A FLAMMABLE OR COMBUSTIBLE ATMOSPHERE IS PRESENT.

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

17

Connecting up / commissioning 5.1 Important notes on using the device
WARNING Replacing components EXPLOSION HAZARD SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR CLASS I, DIVISION 2 OR ZONE 2.
WARNING Requirements for the cabinet/enclosure When used in hazardous environments corresponding to Class I, Division 2 or Class I, Zone 2, the device must be installed in a cabinet or a suitable enclosure.
WARNING Restricted area of application This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only.
WARNING Restricted area of application This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.
WARNING LAN attachment A LAN or LAN segment with the attachments belonging to it should be within a single lowvoltage supply system and within a single building. Make sure that the LAN is in an of type A environment according to IEEE 802.3 or in a type 0 environment according to IEC TR 62101. Never establish a direct electrical connection to TNV networks (telephone network) or WANs (Wide Area Network).
General notices on use in hazardous areas according to ATEX
WARNING Requirements for the cabinet/enclosure To comply with EU Directive 94/9 (ATEX95), this enclosure must meet the requirements of at least IP54 in compliance with EN 60529.

CP 1542-5

18

Manual, 11/2014, C79000-G8976-C326-03

Connecting up / commissioning 5.2 Installing and commissioning the CP 1542-5
WARNING Suitable cables for temperatures in excess of 70 °C If the cable or conduit entry point exceeds 70°C or the branching point of conductors exceeds 80°C, special precautions must be taken. If the device is operated at ambient temperatures above 50°C, the permitted temperature range of the selected cable must be suitable for the temperatures actually measured.
WARNING Protection against transient voltage surges Provisions shall be made to prevent the rated voltage from being exceeded by transient voltage surges of more than 40%. This criterion is fulfilled, if supplies are derived from SELV (Safety Extra-Low Voltage) only.

5.2

Installing and commissioning the CP 1542-5

WARNING
Read the system manual "S7-1500 Automation System"
Prior to installation, connecting up and commissioning, read the relevant sections in the system manual "S7-1500 Automation System" (references to documentation, refer to the section Guide to the documentation (Page 7)).
Make sure that the power supply is turned off when installing/uninstalling the devices.

Configuration

Commissioning the CP fully is only possible if the STEP 7 project data is complete.

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

19

Connecting up / commissioning 5.2 Installing and commissioning the CP 1542-5

Procedure for installation and commissioning

Step 1
3 4 5
6

Execution

Notes and explanations

When installing and connecting up, keep to the procedures described for installing I/O modules in the system manual "S7-1500 Automation System".

Connect the CP to PROFIBUS via the Underside of the CP RS-485 socket.

Turn on the power supply.

Close the front covers of the module and keep them closed during operation.

The remaining steps in commissioning involve downloading the STEP 7 project data.

The STEP 7 project data of the CP is transferred when you download to the station. To load the station, connect the engineering station on which the project data is located to the Ethernet/MPI interface of the CPU.

You will find more detailed information on loading in the following sections of the STEP 7 online help:

· Downloading project data

· Using online and diagnostics functions

CP 1542-5

20

Manual, 11/2014, C79000-G8976-C326-03

Connecting up / commissioning 5.3 Replacing a module without a programming device

PROFIBUS interface
The table below shows the terminal assignment of the PROFIBUS interface. The assignment corresponds to the standard assignment of RS485 interface.

Table 5- 1

Terminal assignment PROFIBUS interface

View

Signal name

1

-

2

-

3 RxD/TxD-P

4

RTS

5

M5V2

6

P5V2

7

-

8 RxD/TxD-N

9

-

Designation Data line B Request To Send Data reference potential (from station) Supply plus (from station) Data line A -

Note PROFIBUS interface
The CP provides no 24 VDC power supply on the PROFIBUS interface. I/O devices (for example, PC adapter 6ES7972-0CB20-0XA0) are therefore not operational on the interface).

5.3

Replacing a module without a programming device

General procedure
The configuration data of the CP is stored on the CPU. This means that this module can be replaced by a module of the same type (identical article number) without using a PG.

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

21

Connecting up / commissioning 5.4 Mode of the CPU - effect on the CP

5.4

Mode of the CPU - effect on the CP

You can change the mode of the CPU between RUN and STOP using the STEP 7 configuration software.

Depending on the operating status of the CPU, the CP behaves as described below.

Changing the CPU from STOP to RUN:
The CP loads configured and/or downloaded data into the work memory and then changes to RUN mode.

Changing the CPU from RUN to STOP:
The reaction is as follows in STOP:  DP master mode: Change to the CLEAR mode.  DP slave mode: Input data is sent to the DP master with the value "0" and a DP
diagnostics alarm is sent.  The following functions remain enabled:
­ The configuration and diagnostics of the CP (system connections for configuration, diagnostics, and PG channel routing are retained);
­ S7 routing function ­ Time-of-day synchronization

CP 1542-5

22

Manual, 11/2014, C79000-G8976-C326-03

Interrupts, diagnostics messages, error and system alarms

6

The status and error displays of the CP 1542-5 are described below.
You can find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on "Diagnostics" and "System alarms" in the System diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

6.1

Status and error display of the CP

LED display

The following figure shows the LEDs of the CP 1542-5 .

 RUN/STOP LED  ERROR LED  MAINT LED
Figure 6-1 LED display of the CP 1542-5 (without front cover)

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

23

Interrupts, diagnostics messages, error and system alarms 6.1 Status and error display of the CP

Meaning of the LED displays
The CP 1542-5 has 3 LEDs to display the current operating status and the diagnostics status and these have the following meanings:

· RUN/STOP LED · ERROR LED · MAINT LED

(one-color LED: green) (one-color LED: red) (one-color LED: yellow)

The following table shows the meaning of the various combinations of colors of the RUN/STOP, ERROR and MAINT LEDs.

Table 6- 1 Meaning of the LEDs RUN/STOP LED ERROR LED

LED off

LED off

LED lit green

LED lit red

LED lit green

LED lit red

LED lit green

LED off

LED flashing green

LED off

LED lit green LED flashing red

LED lit green

LED off

LED lit green

LED off

LED flashing green

LED flashing red

MAINT LED LED off
LED lit yellow LED off LED off LED off

Meaning No supply voltage on the CP or supply voltage too low. LED test during startup
Startup (booting the CP)
CP is in RUN mode. No disruptions No CP configuration exists Loading firmware

LED off
LED lit yellow
LED flashing yellow
LED flashing yellow

A diagnostics event has occurred.
Maintenance, maintenance is demanded. Maintenance is required. Downloading the user program
Module fault

Diagnostics with LEDs
Diagnostics using the LEDs is the first means of narrowing down errors/faults. To narrow the error/fault down even further, evaluate the message on the display of the S7-1500 CPU. If errors/faults occur, you can also identify them using the Web server or by evaluating the diagnostics buffer of the CPU. The diagnostics buffer of the CPU contains plain language information about the error/fault that has occurred. The diagnostics buffer is accessible via STEP 7, the display and the Web server.

CP 1542-5

24

Manual, 11/2014, C79000-G8976-C326-03

Interrupts, diagnostics messages, error and system alarms 6.2 Diagnostics options

6.2

Diagnostics options

Diagnostics options
You have the following diagnostics options available for the module:  The LEDs of the module
For information on the LED displays, refer to the section Status and error display of the CP (Page 23).  STEP 7: The "Diagnostics" tab in the Inspector window Here, you can obtain the following information on the selected module: ­ Entries in the diagnostics buffer of the CPU ­ Information on the online status of the module  STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu Here, you can obtain static information on the selected module: ­ General information on the module ­ Diagnostics status ­ Information on the PROFIBUS interface You can obtain further information on the diagnostics functions of STEP 7 in the STEP 7 online help.  DP diagnostics The DP diagnostics of the CP is described below. The evaluation of diagnostics data records requested by the DP master and the diagnostics interrupts or diagnostics alarms of the DP slaves is handled in the user program of the DP master station.

6.3

DP slave diagnostics

DP-V1 slave: Diagnostics interrupt
The diagnostics data is transferred as a diagnostics interrupt. Diagnostics interrupts must be acknowledged by the DP master.

Supported diagnostics functions
The CP 1542-5 supports the following blocks of DP diagnostics:  Standard diagnostics (6 bytes)  Identifier-related diagnostics (2 to 17 bytes), depending on the number of configured
transfer areas  Module status (5 to 35 bytes), depending on the number of configured transfer areas  If it exists: Diagnostics interrupt (8 bytes)

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

25

Interrupts, diagnostics messages, error and system alarms 6.3 DP slave diagnostics

User program (DP master)
To read out the diagnostics data of the DP slave (DP single diagnostics), use the "DPNRM_DG" instruction on the DP master.
Diagnostics interrupts of DP-V1 slaves are evaluated in the user program of the master using the "RALRM" instruction.
You will find the required parameter assignment for the instructions in the STEP 7 online help.
Below, there is an overview of the structure of the diagnostics data.

Overview of standard diagnostics
Byte 0 1 2 3
4...5

Standard diagnostics Meaning
Station status 1 Station status 2 Station status 3 Master address Vendor ID of the slave

Overview of device-specific diagnostics
The device-specific diagnostics data depends on the protocol variant operating on the DP slave:
 DP-V1 slave

Table 6- 2
Byte 0 1
2 3
4...62

Overview of device-specific diagnostics of the CP with DP-V1 slaves

Device-specific diagnostics

Meaning

Header

Variant Interrupt type

Variant Status type

Slot number

Variant Interrupt specifier

Variant Status specifier

Module-specific diagnostics data

CP 1542-5

26

Manual, 11/2014, C79000-G8976-C326-03

Interrupts, diagnostics messages, error and system alarms 6.4 Standard diagnostics

6.4

Standard diagnostics

The coding of the standard diagnostics bytes is explained below.

Byte 0: Station status 1

Table 6- 3 Structure of station status byte 1

Bit no. 7
6 5 4 3
2 1 0

Name Master_Lock
Parameter_Fault Invalid_Slave_Response Service_Not_Supported Ext_Diag
Slave_Config_Check_Fault Station_Not_Ready Station_Non_Existent

Explanation
The DP slave was assigned parameters by a different DP master. The DP slave can only be read by the configured productive DP master. This bit is set by the DP master when its bus address differs from the configured address.
The last received parameter assignment frame was bad or not permitted. The DP slave sets this bit. Solution: Check the parameter settings for illegal parameters.
This bit is set by the DP master when no plausible response has been received from the DP slave.
This bit is set by the DP master when the master has requested a function that is not supported by the DP slave. Solution: Change the parameter setting to disable the function on the master.
This bit is set by the slave.
· Bit =1: There is diagnostics data in the slave-specific diagnostics area. The diagnostics data can be evaluated in the user program of the master.
· Bit =0: There may be status information in the slave-specific diagnostics area. The status information can be evaluated in the user program of the master.
The configuration data sent by the DP master is rejected by the DP slave. Cause: Configuration error. Solution: Change configuration.
The DP slave is not ready for productive data exchange. This is a temporary status that cannot be influenced by the DP master.
The DP slave is not reacting on the bus. This bit is set by the DP master 1 (the slave sets this bit permanently to 0). If the bit is set, the diagnostic bits have the state of the last diagnostics alarm or the initial value.

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

27

Interrupts, diagnostics messages, error and system alarms 6.4 Standard diagnostics

Byte 1: Station status 2

Table 6- 4 Structure of station status byte 2

Bit no. 7
6 5 4 3 2
1

Name Deactivated
Reserved Sync_Mode Freeze_Mode Watchdog_On Status_From_Slave
Static_Diag

0

Parameter_Request

Explanation
The DP slave was identified as being not active in the local parameter record and it is not polled cyclically. - reserved -
The DP slave is in SYNC mode. The bit is set by the slave.
The DP slave is in FREEZE mode. The bit is set by the slave. Watchdog monitoring is active on the DP slave. The bit is set by the slave.
Bit =1: The diagnostics information comes from the DP slave. The bit is set permanently to 1 by the slave.
Static diagnostics If the DP slave sets this bit, the DP master must fetch diagnostics data from the DP slave until the DP slave resets the bit. The DP slave sets this bit, for example when it is not capable of data transfer.
The DP slave sets this bit when it needs to have new parameters assigned and be reconfigured. If bit 0 and bit 1 are both set, bit 0 has the higher priority.

Byte 2: Station status 3

Table 6- 5 Structure of station status byte 3

Bit no. 7
6...0

Name Ext_Data_Overflow
Reserved

Explanation
If this bit is set, there is more diagnostics information available than indicated in the diagnostics data. This data cannot be displayed.
- reserved -

Byte 3: Master address
The address of the DP master that assigned parameters to this DP slave is entered in the "Master_Add" byte.
If the DP slave did not have parameters assigned to it by any DP master, the DP slave sets the address 255 in this byte.

Bytes 4 and 5: Vendor ID of the slave ("Ident_Number")
The vendor ID ("Ident_Number") for the DP slave type is entered in bytes 4 and 5. This identifier can be used to identify the slave.
The more significant part of the value is in byte 5.

CP 1542-5

28

Manual, 11/2014, C79000-G8976-C326-03

Interrupts, diagnostics messages, error and system alarms 6.5 Device-specific diagnostics in DP-V1

6.5

Device-specific diagnostics in DP-V1

There are two variants of device-specific diagnostics with DP-V1 slaves:

 Interrupt type

 Status type

The two variants differ from each other in the coding of byte 1, bit 7 of the device-specific diagnostics data. The difference is component-specific.

Byte 0: Header
The two most significant bits have the value 00. This identifies the "module-specific diagnostics data" field (see bytes 4... 62) as a whole.
The remaining six bits indicate the length of the data field including byte 0.

Byte 1: Variant "Interrupt type"

Table 6- 6 Structure of byte 1 of the device-specific diagnostics (variant "interrupt type")

Bit no. 7
6...0

Value 0 Alarm_Type 0 1 2 3 4 5 6 7...31 32...126 127

Meaning Interrupt

Meaning

- reserved Diagnostics interrupt Hardware interrupt Pull interrupt Plug interrupt Status interrupt Update interrupt - reserved Vendor-specific - reserved -

If status interrupts are received in quick succession, older status interrupts may be overwritten by newer interrupts.

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

29

Interrupts, diagnostics messages, error and system alarms 6.5 Device-specific diagnostics in DP-V1

Byte 1: Variant "Status type"

Table 6- 7 Structure of byte 1 of the device-specific diagnostics (variant "status type")

Bit no. 7
6...0

Value 1 Status_Type 0 1 2 3...31 32...126 127

Meaning Meaning Status information
- reserved Status information Modul_Status (see also bytes 4...62) - reserved Vendor-specific - reserved -

Byte 2: Slot number
Slot number (1...n) of the slave module 0 is the placeholder for the entire device.

Byte 3: Variant "Interrupt specifier"

Table 6- 8 Structure of byte 3 of the device-specific diagnostics (variant "interrupt specifier")

Bit no. 7...3 2

Seq_No Add_Ack

1...0 Alarm_Specifier 0 1

2

3

Meaning Unique identifier of an interrupt alarm If this bit is set, the DP-V1 master is indicating that this interrupt expects an acknowledgement in the form of a WRITE job.
No further distinction Interrupt appears, slot disrupted The slot generates an interrupt due to an error. Interrupt disappears, slot OK The slot generates the interrupt and indicates that it has no further errors. Interrupt disappears, slot still disrupted The slot generates an interrupt and indicates that it has further errors.

CP 1542-5

30

Manual, 11/2014, C79000-G8976-C326-03

Interrupts, diagnostics messages, error and system alarms 6.5 Device-specific diagnostics in DP-V1

Byte 3: Variant "Status specifier"

Table 6- 9 Structure of byte 3 of the device-specific diagnostics (variant "status specifier")

Bit no. 7...2 1...0

- reserved Status_Specifier 0 1 2 3

Meaning
No further distinction Status appears Status disappears - reserved -

Bytes 4...62: Module-specific diagnostics: General coding
This byte contains data with module-specific information that is described in the relevant module documentation. The relevant module is identified by the slot (byte 2).

Bytes 4...62: Module-specific diagnostics with "status type" and "module status"
With the variant "status type" of the device-specific diagnostics of DP-V1 slaves (see byte 1, bit 7) and the setting "Modul_Status" (see byte 1, bits 0...6), there are two status bits here for each slot (= module). Bits not required are set to 0.

Table 6- 10 Structure of the bytes for module-specific diagnostics data

Byte Bit
4 5 ... 62

7

6

Module status 4

Module status 8

...

Module status 236

Bit assignment

5

4

3

2

Module status 3

Module status 2

Module status 7

Module status 6

...

...

Module status 235 Module status 234

The status bits are coded as follows:

1

0

Module status 1

Module status 5

...

Module status 233

Table 6- 11 Meaning of the values of the status bits

Value 00 01 10 11

Meaning Data valid Data invalid - error (for example short-circuit) Data invalid - wrong module Data invalid - no module plugged in

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

31

Interrupts, diagnostics messages, error and system alarms 6.6 DP diagnostics frames when the CPU is in STOP

6.6

DP diagnostics frames when the CPU is in STOP

DP diagnostics frames when the CPU is in STOP
All diagnostics frames from DPV0 standard slaves and all DP interrupt frames from DPS7/DPV1 standard slaves arriving when the CPU is in STOP are forwarded to the CPU. During module startup, the diagnostics frames must then be evaluated by a suitable user program.

CP 1542-5

32

Manual, 11/2014, C79000-G8976-C326-03

Technical specifications

7

Note the information in the System description of SIMATIC S7-1500 (Page 7).
In addition to the information in the system description, the following technical specifications apply to the module.

Product type name
Connection to PROFIBUS · Number Design of the PROFIBUS interface · Connector · Transmission speed
Electrical data Power supply · via S7-1500 backplane bus Current consumption · From backplane bus · Power dissipation

6GK7 542-5FX00-0XE0 CP 1542-5
1 x PROFIBUS interface
1 x D-sub female connector (RS-485) 9.6 Kbps, 19.2 Kbps, 45.45 Kbps 93.75 Kbps, 187.5 Kbps, 500 Kbps 1.5 Mbps, 3 Mbps, 6 Mbps, 12 Mbps
15 V
100 mA 1.5 W

Insulation Insulation tested with

707 VDC (type test)

Design, dimensions and weight Module format Degree of protection Weight Dimensions (W x H x D) Installation options

Compact module S7-1500, single width IP20 Approx. 270 g 35 x 142 x 129 mm Mounting in an S7-1500 rack

Product functions * * You will find the product functions in the section Functional characteristics (Page 13).

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

33

Technical specifications

CP 1542-5

34

Manual, 11/2014, C79000-G8976-C326-03

Approvals

8

Approvals issued
Note Issued approvals on the type plate of the device
The specified approvals - with the exception of the certificates for shipbuilding - have only been obtained when there is a corresponding mark on the product. You can check which of the following approvals have been granted for your product by the markings on the type plate. The approvals for shipbuilding are an exception to this.

Certificates for shipbuilding and national approvals
The device certificates for shipbuilding and special national approvals can be found on the pages of Siemens Automation Customer Support on the Internet (http://support.automation.siemens.com/WW/news/en/10805878)
Under this entry, go to the required product and select the following settings: "Entry list" tab > entry type "Certificates".

Standards and test specifications
The device meets the following standards and test specifications. The test criteria for the module are based on these standards and test specifications.

IEC 61131­2

The SIMATIC NET S7 CPs described in this manual fulfill the requirements and criteria of the IEC 61131-2 standard (Programmable Logic Controllers, Part 2: equipment requirements and verifications).

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

35

Approvals

CE mark

The SIMATIC NET S7-CPs described in this manual fulfill the requirements and protection goals of the following EC directives and meet the harmonized European standards (EN) that have been published for the programmable logic controllers in the official journals of the European communities:
 2004/108/EEC "Electromagnetic Compatibility" (EMC Directive)
 94/9/EC "Equipment and protective systems intended for use in potentially explosive atmospheres" (Explosion Protection Directive)
The EC Declarations of Conformity are available for the responsible authorities according to the above-mentioned EC Directive at the following address:
 Siemens Aktiengesellschaft Industry Automation Industrielle Kommunikation SIMATIC NET Postfach 4848 D-90327 Nürnberg
You will find the EC Declaration of Conformity at the following address / under the following entry ID on the Internet (http://support.automation.siemens.com/WW/view/en/16689636)

EMC directive

The SIMATIC NET S7 CPs listed above are designed for use in an industrial environment.

Field of application Industry

Requirements Emission
EN 61000­6­4

Immunity to interference EN 61000­6­2

Explosion Protection Directives
Complying with EN 60079 (electrical apparatus for potentially explosive atmospheres; Type of protection "n") EN 60079-15, EN 60079-0 II 3 G Ex nA IIC T4 Gc DEKRA 12 ATEX 0240X
Note When using (installing) SIMATIC NET products in hazardous area zone 2, make absolutely sure that the associated conditions are adhered to! You will find these conditions here: · In the SIMATIC NET Manual Collection under
"All Documents" > "Use of subassemblies/modules in a Zone 2 Hazardous Area"

CP 1542-5

36

Manual, 11/2014, C79000-G8976-C326-03

Approvals

Notice for Australia - C-TICK
The above listed SIMATIC NET S7 CPs meet the requirements of the standard AS/NZS 2064 (Class A).
Notices for Canada
This class A digital device meets the requirements of the Canadian standard ICES-003.
AVIS CANADIEN
Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada.
UL and CSA approval
Note You will recognize the approval, UL/CSA or cULus, assigned to your product from the mark on the rating plate.

UL approval

UL Recognition Mark Underwriters Laboratories (UL) nach Standard UL 508:  Report E 85972

CSA approval

CSA Certification Mark Canadian Standard Association (CSA) nach Standard C 22.2 No. 142:
 Certification Record 063533­C-000

cULus Approval, Hazardous Location
CULUS Listed 7RA9 IND. CONT. EQ. FOR HAZ. LOC. Underwriters Laboratories Inc. complying with  UL 508 (Industrial Control Equipment)  CSA C22.2 No. 142 (Process Control Equipment)  ANSI ISA 12.12.01, CSA C22.2 No. 213-M1987 (Hazardous Location)  CSA­213 (Hazardous Location) APPROVED for Use in  Cl. 1, Div. 2, GP. A, B, C, D T3...T6  Cl. 1, Zone 2, GP. IIC T3...T6

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

37

Approvals

You will find the temperature class on the type plate on the module.
WARNING Explosion Hazard Do not disconnect while circuit is live unless area is known to be non hazardous. Explosion Hazard Substitution of components may impair suitability for Class I, Division 2.
Note This equipment is suitable for use in Class I, Division 2, Group A, B, C, D or non-hazardous locations only.
Note For devices with C-PLUG memory: The C-PLUG memory module may only be inserted or removed when the power is off.
Note This plant has to be mounted according to the NEC (National Electrical Code) stipulations. When used in environments according to class I, division 2 (see above) , the SIMATIC NET S7 CPs must be mounted in an enclosure.

FM approval

Factory Mutual Approval Standard Class Number 3611, Class I, Division 2, Group A, B, C, D, T3...T6 or Class I, Zone 2, Group IIC, T3...T6. You will find the temperature class on the type plate on the module.

WARNING
Personal injury and damage to property may occur.
In hazardous areas, personal injury or property damage can result if you create or break an electrical circuit during operation of a SIMATIC NET S7 CP (for example, by means of plugin connections, fuses, switches).
WARNING - EXPLOSION HAZARD: DO NOT DISCONNECT EQUIPMENT WHEN A FLAMMABLE OR COMBUSTIBLE ATMOSPHERE IS PRESENT.
When used in hazardous locations (division 2 or zone 2), the device must be installed in an enclosure.

CP 1542-5

38

Manual, 11/2014, C79000-G8976-C326-03

Index

A
ATEX, 18

DP slave, 10, 11 Operation as, 10
DP slave mode, 22 DP slaves
General characteristic data, 13

B
Bus topology, 11
C
Cabinet, 18 Cable length, 13 Cables for temperatures in excess of 70 °C, 19 Calling program blocks (instructions) for distributed I/O, 16 CE mark, 36 Changeover
CPU from RUN to STOP, 22 CPU from STOP to RUN, 22 Characteristic data, 13, 14 Configuration data Configuration and downloading, 15 CSA Approval, 37 C-Tick Approval, 37
D
Diagnostics, 23 Diagnostics options, 25 Diagnostics repeater (DP slave), 11 Diagnostics requests, 11, 14, 14 Direct data exchange, 10 Downloading project data, 20 Downloads, 8 DP diagnostics, 25 DP diagnostics frames when the CPU is in STOP, 32 DP master
Operation as, 10 DP master (class 1), 10, 11 DP master mode, 22 DP masters (class 2), 11 DP mode
General characteristic data, 13

E
EMC - electromagnetic compatibility, 36 Error status codes, 23
F
FM Approval, 38
G
Glossary, 3
H
Hazardous area, 17 Hazardous areas according to ATEX, 18
I
IEC 61131-2, 35 Installation and commissioning, 20 Instruction
ALARM, 16 D_ACT_DP, 16 DE_ACT, 11 DP_TOPOL, 15 DPNRM_DG, 15 DPRD_DAT, 16 DPSYC_FR, 15 DPWR_DAT, 16 GETIO, 16 GETIO_PART, 16, 16 RALARM, 16 RALRM, 16 RDREC, 16, 16 SETIO, 16 WRREC, 15, 16 Interrupts, 23

CP 1542-5

Manual, 11/2014, C79000-G8976-C326-03

39

Index
L
Limitations Number of operable CPs, 15
M
Manual Collection, 8 Measured values
of values of transfer or reaction times, 13 Module replacement, 21
N
Number of operable CPs, 15
O
Operating mode of the CPU, 22
P
PG/OP communication, 10 PROFIBUS
DP-V0 and DPV1 standard, 10 PROFIBUS DP
EN 50170 DPV1, 10 PROFIBUS interface, 21 Program blocks, 16 Protection against transient voltage surges, 19
R
Replacing components, 18 RS-485 interface, 21 RS-485 socket, 20
S
S7 communication, 10 S7 connections, 14
General characteristic data, 14 S7 routing function, 22 Safety extra low voltage, 17 Safety notices, 17 Siemens DP slave, 10 SIMATIC NET glossary, 3 SIMATIC NET Manual Collection, 8 Startup parameters, 14 Status and error displays, 23
40

STEP 7, 3, 15 SYNC / FREEZE, 10 System alarms, 23
T
Time master, 11 Time slave, 11 Time-of-day synchronization, 11, 22 Transmission speed, 13
U
UL Approval, 37
V
Version history, 8
W
Web diagnostics, 11 S7 connections, 11
CP 1542-5 Manual, 11/2014, C79000-G8976-C326-03

SIMATIC NET S7-1500 - Industrial Ethernet CP 1543-1
Operating Instructions

_Pr_ef_ac_e_______________ _G_uid_e_to_t_he_d_oc_u_m_en_ta_tio_n____1_ _Pr_od_u_ct_o_ve_rv_ie_w,_fu_n_ct_ion_s____2_ _Icno_smta_mll_aist_isoion_n,_icno_gn,_noep_cet_irna_gtio_unp_, ____3_ _Co_n_fig_u_ra_tio_n,_p_ro_gr_am_m_i_ng____4_ _Di_ag_n_os_tic_s_a_nd_u_pk_e_ep______5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Ap_p_ro_va_ls_____________7_

05/2017
C79000-G8976-C289-07

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

C79000-G8976-C289-07  05/2017 Subject to change

Copyright © Siemens AG 2013 - 2017. All rights reserved

Preface

Purpose of the documentation
This manual supplements the S7-1500 system manual.
With the information in this manual and the system manual, you will be able to commission the communications processor.

New in this issue
 Firmware version V2.1 with the following new functions: ­ Extended security settings using IP routing via the backplane bus See section IP routing (Page 35).

Version history

Firmware version V2.0 with the following new functions:  Secure OUC (Open User Communication) via TCP/IP  Secure Mail: New system data types (SDTs) for transferring e-mails
Alternative: Non secure transfer via port 25 or secure transfer via port 587  Operation as FTP server: Access to the SIMATIC memory card of the CPU  IP routing via the backplane bus

Replaced edition
Edition 10/2016

Current manual release on the Internet
You will find the current version of this manual on the Internet pages of Siemens Industry Online Support:
Link: (https://support.industry.siemens.com/cs/ww/en/ps/15340/man)

Sources of information and other documentation
See section Guide to the documentation (Page 9).

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

3

Preface

Abbreviations and names
 CP In this document, the term "CP" is also used instead of the full product name.
 STEP 7 The name STEP 7 is used to mean the STEP 7 Professional configuration tool.

Conventions

Make sure you read the special notices below:
Note A notice contains important information on the product described in the documentation, handling the product or about parts of the documentation you should pay particular attention to.

See also

Program blocks for OUC (Page 44) Configuring the FTP server function (Page 49)

License conditions
Note Open source software The product contains open source software. Read the license conditions for open source software carefully before using the product.
You will find license conditions in the following document on the supplied data medium:  OSS_CP15431_86.pdf

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.

CP 1543-1

4

Operating Instructions, 05/2017, C79000-G8976-C289-07

Preface

Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit Link: (http://www.siemens.com/industrialsecurity)
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under Link: (http://www.siemens.com/industrialsecurity).

Firmware

Firmware

The firmware is signed and encrypted. This ensures that only firmware created by Siemens can be downloaded to the device.

SIMATIC NET glossary
Explanations of many of the specialist terms used in this documentation can be found in the SIMATIC NET glossary.
You will find the SIMATIC NET glossary on the Internet at the following address:
Link: (https://support.industry.siemens.com/cs/ww/en/view/50305045)

Recycling and disposal
The product is low in pollutants, can be recycled and meets the requirements of the WEEE directive 2012/19/EU "Waste Electrical and Electronic Equipment".
Do not dispose of the product at public disposal sites. For environmentally friendly recycling and the disposal of your old device contact a certified disposal company for electronic scrap or your Siemens contact.
Keep to the local regulations.
You will find information on returning the product on the Internet pages of Siemens Industry Online Support: Link: (https://support.industry.siemens.com/cs/ww/en/view/109479891)

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

5

Preface

CP 1543-1

6

Operating Instructions, 05/2017, C79000-G8976-C289-07

Table of contents

Preface................................................................................................................................... 3

1 Guide to the documentation ....................................................................................................... 9

2 Product overview, functions.......................................................................................................11

2.1

Product data...................................................................................................................... 11

2.2

Communication services.................................................................................................... 12

2.3

Further functions ............................................................................................................... 13

2.4

Industrial Ethernet Security................................................................................................ 15

2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5

Configuration limits and performance data ......................................................................... 16 General characteristic data ................................................................................................ 16 Characteristics for Open User Communication (OUC) and FETCH/WRITE ........................ 16 Characteristics of S7 communication ................................................................................. 18 Characteristic data for FTP / FTPS mode........................................................................... 19 Characteristics security...................................................................................................... 19

2.6 2.6.1 2.6.2 2.6.3

Requirements for use ........................................................................................................ 20 Configuration limits............................................................................................................ 20 Project engineering............................................................................................................ 20 Programming..................................................................................................................... 21

2.7

LEDs................................................................................................................................. 22

2.8

Gigabit interface ................................................................................................................ 24

3 Installation, connecting up, commissioning, operation....................................................................25

3.1 3.1.1 3.1.2 3.1.3 3.1.4

Important notes on using the device .................................................................................. 25 Notes on use in hazardous areas ...................................................................................... 25 Notes on use in hazardous areas according to ATEX / IECEx............................................ 26 Notes on use in hazardous areas according to UL HazLoc ................................................ 27 General notices on use in hazardous areas according to FM ............................................. 27

3.2

Installing and commissioning the CP 1543-1...................................................................... 28

3.3

Mode of the CPU - effect on the CP................................................................................... 29

4 Configuration, programming ......................................................................................................31

4.1

Security recommendations ................................................................................................ 31

4.2

Network settings................................................................................................................ 34

4.3 4.3.1 4.3.2 4.3.3

IP configuration ................................................................................................................. 35 Points to note about IP configuration ................................................................................. 35 Restart after detection of a duplicate IP address in the network.......................................... 35 IP routing........................................................................................................................... 35

4.4 4.4.1 4.4.1.1

Security............................................................................................................................. 36 VPN .................................................................................................................................. 36 Creating VPN tunnel communication between S7-1500 stations ........................................ 37

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

7

Table of contents

4.4.1.2
4.4.1.3 4.4.1.4 4.4.2 4.4.2.1 4.4.2.2 4.4.2.3 4.4.2.4 4.4.3 4.4.3.1 4.4.3.2 4.4.4

Successfully establishing VPN tunnel communication between the CP 1543-1 and SCALANCE M....................................................................................................................39 VPN tunnel communication with SOFTNET Security Client.................................................39 CP as passive subscriber of VPN connections....................................................................40 Firewall ..............................................................................................................................41 Firewall sequence when checking incoming and outgoing frames.......................................41 Notation for the source IP address (advanced firewall mode)..............................................41 HTTP and HTTPS not possible with IPv6............................................................................41 Firewall settings for connections via a VPN tunnel ..............................................................41 Online functions .................................................................................................................42 Online diagnostics via port 8448 .........................................................................................42 Online diagnostics and downloading to station with the firewall activated ............................42 Filtering of the system events .............................................................................................43

4.5

Time-of-day synchronization...............................................................................................43

4.6

Program blocks for OUC.....................................................................................................44

4.7 4.7.1 4.7.2

Setting up FTP communication...........................................................................................47 The program block FTP_CMD (FTP client function) ............................................................47 Configuring the FTP server function....................................................................................49

4.8

IP access protection with programmed communications connections..................................52

5 Diagnostics and upkeep........................................................................................................... 53

5.1

Diagnostics options ............................................................................................................53

5.2

Diagnostics with SNMP ......................................................................................................53

5.3

Replacing a module without a programming device ............................................................56

6 Technical specifications ........................................................................................................... 57

7 Approvals.............................................................................................................................. 59

Index .................................................................................................................................... 65

CP 1543-1

8

Operating Instructions, 05/2017, C79000-G8976-C289-07

Guide to the documentation

1

Introduction

The documentation of the SIMATIC products has a modular structure and covers topics relating to your automation system.
The complete documentation for the S7-1500 system consists of a system manual, function manuals and device manuals.
The STEP 7 information system (online help) also supports you in configuring and programming your automation system.

Overview of the documentation on communication with S7-1500
The following table lists additional documents, which supplement this description of CP 1543-1 and are available in the Internet.

Table 1- 1 Configuration tools for the CP 1543-1

Topic System description
System diagnostics
Communication

Documentation System manual: S7-1500 Automation System (https://support.industry.siemens.com/cs/ww/e n/view/59191792)
Function manual: System diagnostics (https://support.industry.siemens.com/cs/ww/e n/view/59192926)
Function manual: Communication (https://support.industry.siemens.com/cs/ww/e n/view/59192925) Function manual: Web Server (https://support.industry.siemens.com/cs/ww/e n/view/59193560) Manual Industrial Ethernet Security (https://support.industry.siemens.com/cs/ww/e n/ps/15326/man)

Most important contents · Application planning · Installation · Connecting · Commissioning
· Overview · Diagnostics evaluation for
hardware/software · Overview
· Function · Operation
· Overview and description of the security functions in Industrial Ethernet

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

9

Guide to the documentation

Topic
Interference-free installation of control systems Cycle and response times

Documentation SIMATIC NET - Industrial Ethernet / PROFINET - system manual
· Industrial Ethernet Link: (https://support.industry.siemens.com/cs/w w/de/view/27069465)
· Passive network components Link: (https://support.industry.siemens.com/cs/w w/en/view/84922825)
Function Manual: Interference-free installation of control systems (https://support.industry.siemens.com/cs/ww/e n/view/59193566)
Function manual: Cycle and Response Times (https://support.industry.siemens.com/cs/ww/e n/view/59193558)

Most important contents · Ethernet networks · Network configuration · Network components
· Basics · Electromagnetic compatibil-
ity · Lightning protection · Housing selection · Basics · Calculations

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet: Link: (http://www.siemens.com/automation/service&support)

CP documentation in the Manual Collection (article number A5E00069051)
The "SIMATIC NET Manual Collection" DVD contains the device manuals and descriptions of all SIMATIC NET products current at the time it was created. It is updated at regular intervals.

Version History / Current Downloads for the SIMATIC NET S7 CPs
The "Version History/Current Downloads for SIMATIC NET S7 CPs (Industrial Ethernet)" document provides information on all CPs available up to now for SIMATIC S7 (Industrial Ethernet).
The current versions of the document can be found on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/view/109474421)

CP 1543-1

10

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions

2.1

Product data

Article number, validity and product names
This description contains information on the following product
CP 1543-1 article number 6GK7 543-1AX00-0XE0 hardware product version 2 firmware version V2.1 communications processor for SIMATIC S7-1500

View of the CP 1543-1

2

 LEDs for status and error displays  LED displays of the Ethernet interface for connection status and activity  Type plate  Ethernet port: 1 x 8-pin RJ-45 jack
The padlock icon symbolizes the interface to the external, non-secure subnet.
 Label with MAC address
Figure 2-1 View of the CP 1543-1 with closed (left) and open (right) front cover

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

11

Product overview, functions 2.2 Communication services

Address label: Unique MAC address preset for the CP
The CP ships with a default MAC address:
The MAC address is printed on the housing.
If you configure a MAC address (ISO transport connections), we recommend that you use the MAC address printed on the module for module configuration! This ensures that you assign a unique MAC address in the subnet!

Application

The CP is intended for operation in an S7-1500 automation system. It allows the S7-1500 to be connected to Industrial Ethernet.
With a combination of different security measures such as firewall and protocols for data encryption, the CP protects the S7-1500 or even entire automation cells from unauthorized access. It also protects the communication between the S7 station and communications partners from spying and manipulation.

2.2

Communication services

The CP supports the following communication services:
 Open User Communication (OUC)
Open User Communication supports the following communications services via the CP using programmed or configured communications connections:
­ ISO transport (complying with ISO/IEC 8073)
­ TCP (complying with RFC 793), ISO-on-TCP (complying with RFC 1006) and UDP (complying with RFC 768)
With the interface via TCP connections, the CP supports the socket interface to TCP/IP available on practically every end system.
­ Multicast over UDP connection
The multicast mode is made possible by selecting a suitable IP address when configuring connections.
­ Sending e-mail via SMTP (port 25) or SMTPS (port 587) with "SMTP-Auth" for authentication on an e-mail server.
 S7 communication
­ PG communication
­ Operator control and monitoring functions (HMI communication)
­ Data exchange over S7 connections

CP 1543-1

12

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.3 Further functions
 IT functions ­ FTP functions (File Transfer Protocol FTP/FTPS) for file management and access to data blocks on the CPU (client and server functions). ­ For e-mail see above (OUC)
 FETCH/WRITE ­ FETCH/WRITE services as server (corresponding to S5 protocol) via ISO transport, ISO-on-TCP and TCP connections The S7-1500 with the CP is always the server (passive connection establishment). The fetch or write access (client function with active connection establishment ) is performed by a SIMATIC S5 or a third-party device / PC.

2.3

Further functions

Timeofday synchronization over Industrial Ethernet using the NTP mode (NTP: Network Time Protocol)
The CP sends timeofday queries at regular intervals to an NTP server and synchronizes its local time of day.
The time is also be forwarded automatically to the CPU modules in the S7 station allowing the time to be synchronized in the entire S7 station.
Security function: The CP supports the NTP (secure) protocol for secure time-of-day synchronization and transfer of the time of day.

Addressable with the factoryset MAC address
To assign the IP address to a new CP (direct from the factory), it can be accessed using the preset MAC address on the interface being used. Online address assignment is made in STEP 7.

SNMP agent

The CP supports data queries over SNMP in version V1 (Simple Network Management Protocol). It delivers the content of certain MIB objects according to the MIB II standard and Automation System MIB.
If security is enabled, the CP supports SNMPv3 for transfer of network analytical information protected from eavesdropping.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

13

Product overview, functions 2.3 Further functions

IP configuration - IPv4 and IPv6
The essential features of IP configuration for the CP:
 The CP supports the use of IP addresses according to IPv4 and IPv6.
 You can configure how and with which method the CP is assigned the IP address, the subnet mask and the address of a gateway.
 The IP configuration and the connection configuration (IPv4) can also be assigned to the CP by the user program (for program blocks refer to the section Programming (Page 21)).
Note: Does not apply to S7 connections.

IP routing

The CP supports static IP routing (IPv4) to other CM 1542-1 V2.0 / CP 1543-1 V2.0. For details, see section IP routing (Page 35).

IPv6 addresses - area of use on the CP
An IP address according to IPv6 can be used for the following communications services:  FTP server mode  FETCH/WRITE access (CP is server)  FTP client mode with addressing via a program block  E-mail transfer with addressing via a program block

Access to the Web server of the CPU
Via the LAN interface of the CP, you have access to the Web server of the CPU. With the aid of the Web server of the CPU, you can read out module data from a station.
Note the special description of the Web server; refer to the section Guide to the documentation (Page 9)
Note Web server access using the HTTPS protocol
The Web server of a SIMATIC S7-1500 station is located in the CPU. For this reason, when there is secure access (HTTPS) to the Web server of the station using the IP address of the CP 1543-1, the SSL certificate of the CPU is displayed.

S5/S7 addressing mode for FETCH/WRITE
The addressing mode can be configured for FETCH/WRITE access as S7 or S5 addressing mode. The addressing mode specifies how the position of the start address is identified during data access (S7 addressing mode applies only to data blocks / DBs).
Read the additional information in the online help of STEP 7.

CP 1543-1

14

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.4 Industrial Ethernet Security

2.4

Industrial Ethernet Security

All-round protection - the task of Industrial Ethernet Security
With Industrial Ethernet Security, individual devices, automation cells or network segments of an Ethernet network can be protected. The data transfer from the external network connected to the CP 1543-1 can be protected by a combination of different security measures:  Data espionage (FTPS, HTTPS)  Data manipulation  Unauthorized access Secure underlying networks can be operated via additional Ethernet/PROFINET interfaces implemented by the CPU or additional CPs.
Security functions of the CP for the S7-1500 station
As result of using the CP, the following security functions are accessible to the S7-1500 station on the interface to the external network:  Firewall
­ IP firewall with stateful packet inspection (layer 3 and 4) ­ Firewall also for Ethernet "non-IP" frames according to IEEE 802.3 (layer 2) ­ Bandwidth limitation ­ Global firewall rules The firewall protective function can be applied to the operation of single devices, several devices, or entire network segments.  Logging To allow monitoring, events can be stored in log files that can be read out using the configuration tool or can be sent automatically to a syslog server.  FTPS (explicit mode) For encrypted transfer of files.  NTP (secure) For secure time-of-day synchronization and transmission  SMTPS Foe secure transfer of e-mails via port 587  SNMPv3 For secure transmission of network analysis information safe from eavesdropping Observe the information in section Security recommendations (Page 31).

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

15

Product overview, functions 2.5 Configuration limits and performance data

2.5

Configuration limits and performance data

2.5.1

General characteristic data

Characteristic
Total number of freely usable connections on Industrial Ethernet

Explanation / values 118 The value applies to the total number of connections of the following types:
· S7 connections · Connections for open communications services · FTP (FTP client)

Note
Connection resources of the CPU
Depending on the CPU type, different numbers of connection resources are available. The number of connection resources is the decisive factor for the number of configurable connections. This means that the values that can actually be achieved may be lower than specified in this section describing the CP.

2.5.2

Characteristics for Open User Communication (OUC) and FETCH/WRITE
Open User Communication (OUC) provides access to communication over TCP, ISO-onTCP, ISO transport and UDP connections.

CP 1543-1

16

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.5 Configuration limits and performance data

The following characteristics are important (OUC + FETCH/WRITE):

Characteristic Number of connections
Maximum data length for program blocks
LAN interface max. data field length generated by CP per protocol data unit(TPDU = transport protocol data unit)

Explanation / values
· Number of configured and programmed +connections in total (ISO transport + ISO-on-TCP + TCP + UDP + FETCH/WRITE + e-mail): Max. 118
Of which maximum: ­ TCP connections: 1...118 1) ­ ISO-on-TCP connections: 1...118 ­ ISO transport connections: 1...118 ­ Total number of UDP connections (specified and free) that can be
configured: 1...118 ­ Connection for e-mail: 1 ­ Connections for FETCH/WRITE: 1...16 Notes: 1)Avoid receive overload The flow control on TCP connections cannot control permanent overload of the recipient. You should therefore make sure that the processing capabilities of a receiving CP are not permanently exceeded by the sender (approximately 150200 messages per second). Program blocks allow the transfer of user data in the following lengths:
· ISO-on-TCP, TCP, ISO transport: 1 to 64 kB · UDP: 1 to 1452 bytes
· E-mail ­ Job header + user data: 1 to 256 bytes ­ E-mail attachment: up to 64 kbytes
· sending
ISO transport, ISOonTCP, TCP: 1452 bytes / TPDU
· receiving ­ ISO transport: 512 bytes / TPDU ­ ISO-on-TCP: 1452 bytes / TPDU ­ TCP: 1452 bytes / TPDU

Note
Connection resources of the CPU
Depending on the CPU type, different numbers of connection resources are available. The number of connection resources is the decisive factor for the number of configurable connections. This means that the values that can actually be achieved may be lower than specified in this section describing the CP.
You will find detailed information on the topic of connection resources in the "Communication" function manual, refer to the section Guide to the documentation (Page 9).

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

17

Product overview, functions 2.5 Configuration limits and performance data
Restrictions for UDP
 Restrictions UDP broadcast / multicast) To avoid overloading the CP due to high broadcast / multicast frame traffic, the receipt of UDP broadcast / multicast on the CP is limited
 UDP frame buffering Length of the frame buffer: At least 7360 bytes Following a buffer overflow, newly arriving frames that are not fetched by the user program are discarded.

2.5.3

Characteristics of S7 communication
S7 communication provides data transfer via the ISO Transport or ISO-on-TCP protocols.

Feature Total number of freely usable S7 connections on Industrial Ethernet LAN interface - data field length generated by CP per protocol data unit (PDU = protocol data unit)
Number of reserved OP connections Number of reserved PG connections Number of reserved connections for Web

Explanation / values Max. 118
· for sending: 480 bytes / PDU · for receiving: 480 bytes / PDU
4 4 2

Note Maximum values for an S7-1500 station
Depending on the CPU you are using, there are limit values for the S7-1500 station. Note the information in the relevant documentation.

CP 1543-1

18

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.5 Configuration limits and performance data

2.5.4

Characteristic data for FTP / FTPS mode

TCP connections for FTP
FTP actions are transferred from the CP over TCP connections. Depending on the mode, the following characteristic data applies:
 FTP in client mode:
You can use a maximum of 32 FTP sessions. Up to 2 TCP connections are occupied per activated FTP session (1 control connection and 1 data connection).
 FTP in server mode:
You can operate a maximum of 16 FTP sessions at the same time. Up to 2 TCP connections are occupied per activated FTP session (1 control connection and 1 data connection).

Program block FTP_CMD (FB40) for FTP client mode
For communication, use the FTP program block FTP_CMD.
The block execution time in FTP depends on the reaction times of the partner and the length of the user data. A generally valid statement is therefore not possible.

2.5.5

Characteristics security

IPsec tunnel (VPN)
VPN tunnel communication allows the establishment of secure IPsec tunnel communication with one or more security modules.

Configuration limits Number of IPsec tunnels

Value 16 maximum

Firewall rules (advanced firewall mode)
The maximum number of firewall rules in advanced firewall mode is limited to 256. The firewall rules are divided up as follows:  Maximum 226 rules with individual addresses  Maximum 30 rules with address ranges or network addresses
(e.g. 140.90.120.1 - 140.90.120.20 or 140.90.120.0/16)  Maximum 128 rules with limitation of the transmission speed ("bandwidth limitation")

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

19

Product overview, functions 2.6 Requirements for use

2.6

Requirements for use

2.6.1

Configuration limits
When using the CP type described here, the following limits apply:
 The number of CPs that can be operated in a rack depends on the CPU type being used.
By operating several CPs, you can increase the configuration limits listed below for the station as the whole. The CPU does, however, have set limits for the entire configuration. The size of the configuration made available by a CP can be increased by using more than one CP within the framework of the system limits.
Observe the information in the documentation on the CPU; see section Guide to the documentation (Page 9)
Note Power supply via the CPU adequate or additional power supply modules required
You can operate a certain number of modules in the S7-1500 station without an additional power supply. Make sure that you keep to the specified power feed to the backplane bus for the particular CPU type. Depending on the configuration of the S71500 station you may need to provide additional power supply modules.

2.6.2

Project engineering

Configuration and downloading the configuration data
When the configuration data is downloaded to the CPU, the CP is supplied with the relevant configuration. The configuration data can be downloaded to the CPU via a memory card or any Ethernet/PROFINET interface of the S7-1500 station.
The following version of STEP 7 is required:

STEP 7 version STEP 7 Professional V12 SP1 or higher

Functions of the CP
The full functionality of the CP 1543-1 (6GK7 543-1AX00-0XE0) can be configured.

CP 1543-1

20

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.6 Requirements for use

2.6.3

Programming

Program blocks
For communications services, there are preprogrammed program blocks (instructions) available as the interface in your STEP 7 user program.

Table 2- 1 Instructions for communications services

Protocol TCP ISO-on-TCP ISO
UDP
E-mail
FTP

Program block (instruction) Establish connection and send/receive data via: · TSEND_C/TRCV_C or · TCON, TSEND/TRCV
(termination of the connection using TDISCON possible)
· TCON, TUSEND/TURCV (termination of the connection using TDISCON possible)
· TMAIL_C
· FTP_CMD

System data type · TCON_IP_v4 · TCON_Configured · TCON_IP_RFC · TCON_ISOnative
· TCON_IP_v4
· TMail_v4* · TMail_v6* · TMAIL_FQDN* · FTP_CONNECT_IPV4* · FTP_CONNECT_IPV6* · FTP_CONNECT_NAME* · FTP_FILENAME* · FTP_FILENAME_PART*

*User-defined data type

Table 2- 2 Instructions for configuration tasks

Function
Configuration of the Ethernet interface

Program block (instruction) · T_CONFIG

System data type · CONF_DATA

Refer to the documentation of the program blocks in the online help of STEP 7.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

21

Product overview, functions 2.7 LEDs

2.7

LEDs

LEDs

 RUN LED  ERROR LED  MAINT LED  LINK/ACT LED  Reserve LED
Figure 2-2 LED display of the CP 1543-1 (without front cover)

Meaning of the LED displays of the CP
The CP has the following 3 LEDs to display the current operating status and the diagnostics status:

· RUN · ERROR · MAINT

(one-color LED: green) (one-color LED: red) (one-color LED: yellow)

CP 1543-1

22

Operating Instructions, 05/2017, C79000-G8976-C289-07

Product overview, functions 2.7 LEDs

The following table shows the meaning of the various combinations of colors of the RUN, ERROR and MAINT LEDs.

Table 2- 3 Meaning of the LEDs "RUN", "ERROR", "MAINT"

RUN LED off LED lit green LED lit green LED lit green LED lit green LED lit green LED lit green
LED flashing green
LED flashing green

ERROR LED off LED lit red LED lit red LED off LED flashing red LED off LED off
LED off
LED flashing red

MAINT LED off LED lit yellow LED off LED off LED off LED lit yellow LED flashing yellow LED off

Meaning No supply voltage on the CP or supply voltage too low. LED test during startup
Startup (booting the CP)
CP is in RUN mode. No disruptions A diagnostics event has occurred.
Maintenance, maintenance is demanded. Maintenance is required. Downloading the user program
No CP configuration exists Loading firmware

LED flashing yellow

Module fault (LEDs flashing synchronized)

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

23

Product overview, functions 2.8 Gigabit interface

Meaning of the LED displays of the Ethernet interface: X1 P1
The LED LINK/ACT (two color green/yellow) is assigned to the port of the Ethernet interface. The table below shows the LED patterns.

Table 2- 4 Meaning of the "LINK/ACT" LED

LINK/ACT

green off

yellow off

flashing green green on

yellow off yellow off

green on

yellow flickers

Meaning No connection to Ethernet There is no Ethernet connection between the Ethernet interface of the CP and the communications partner. At the current time, there is no data being received/sent via the Ethernet interface. The "node flash test" is being performed.
Connection to Ethernet exists. There is an Ethernet connection between the Ethernet interface of your CP and a communications partner. At the current time, data is being received/sent via the Ethernet interface of the Ethernet device of a communications partner on Ethernet.

2.8

Gigabit interface

Ethernet interface with gigabit specification and security access
The CP has an Ethernet interface according to the gigabit standards IEEE 802.3. The Ethernet interface supports autocrossing, autonegotiation and autosensing.
The Ethernet interface allows a secure connection to external networks via a firewall. The CP provides the following protective function:
 Protection of the S7-1500 station in which the CP is operated;
 Protection of the underlying company networks connected to the other interfaces of the S7-1500 station.
You will find the pin assignment of the sub RJ-45 jack in section Installing and commissioning the CP 1543-1 (Page 28).

CP 1543-1

24

Operating Instructions, 05/2017, C79000-G8976-C289-07

Installation, connecting up, commissioning, operation

3

3.1

Important notes on using the device

Safety notices on the use of the device
Note the following safety notices when setting up and operating the device and during all associated work such as installation, connecting up or replacing the device.
WARNING
LAN attachment
A LAN or LAN segment with the attachments belonging to it should be within a single lowvoltage supply system and within a single building. Make sure that the LAN is in an of type A environment according to IEEE 802.3 or in a type 0 environment according to IEC TR 62101.
Never establish a direct electrical connection to TNV networks (telephone network) or WANs (Wide Area Network).

3.1.1

Notes on use in hazardous areas
WARNING The device may only be operated in an environment with pollution degree 1 or 2 (see IEC 60664-1).
WARNING EXPLOSION HAZARD Do not connect or disconnect cables to or from the device when a flammable or combustible atmosphere is present.
WARNING EXPLOSION HAZARD Replacing components may impair suitability for Class 1, Division 2 or Zone 2.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

25

Installation, connecting up, commissioning, operation 3.1 Important notes on using the device
WARNING When used in hazardous environments corresponding to Class I, Division 2 or Class I, Zone 2, the device must be installed in a cabinet or a suitable enclosure.
WARNING DIN rail In the ATEX and IECEx area of application only the Siemens DIN rail 6ES5 710-8MA11 may be used to mount the modules.

3.1.2

Notes on use in hazardous areas according to ATEX / IECEx
WARNING Requirements for the cabinet/enclosure To comply with EU Directive 94/9 (ATEX95), the enclosure or cabinet must meet the requirements of at least IP54 in compliance with EN 60529.
WARNING If the cable or conduit entry point exceeds 70 °C or the branching point of conductors exceeds 80 °C, special precautions must be taken. If the equipment is operated in an air ambient in excess of 50 °C, only use cables with admitted maximum operating temperature of at least 80 °C.

WARNING
Take measures to prevent transient voltage surges of more than 40% of the rated voltage. This is the case if you only operate devices with SELV (safety extra-low voltage).

CP 1543-1

26

Operating Instructions, 05/2017, C79000-G8976-C289-07

3.1.3 3.1.4

Installation, connecting up, commissioning, operation 3.1 Important notes on using the device
Notes on use in hazardous areas according to UL HazLoc
WARNING EXPLOSION HAZARD You may only connect or disconnect cables carrying electricity when the power supply is switched off or when the device is in an area without inflammable gas concentrations.
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only. This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.
General notices on use in hazardous areas according to FM
WARNING EXPLOSION HAZARD You may only connect or disconnect cables carrying electricity when the power supply is switched off or when the device is in an area without inflammable gas concentrations.
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only. This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations only.
WARNING EXPLOSION HAZARD The equipment is intended to be installed within an ultimate enclosure. The inner service temperature of the enclosure corresponds to the ambient temperature of the module. Use installation wiring connections with admitted maximum operating temperature of at least 30 ºC higher than maximum ambient temperature.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

27

Installation, connecting up, commissioning, operation 3.2 Installing and commissioning the CP 1543-1

3.2

Installing and commissioning the CP 1543-1

Installation and commissioning
WARNING Read the system manual "S7-1500 Automation System" Prior to installation, connecting up and commissioning, read the relevant sections in the system manual "S7-1500 Automation System" (references to documentation, refer to the section Guide to the documentation (Page 9)). Make sure that the power supply is turned off when installing/uninstalling the devices.

Configuration

Commissioning the CP fully is only possible if the STEP 7 project data is complete.

Procedure for installation and commissioning

Step 1
2 3 4 5

Execution
When installing and connecting up, keep to the procedures described for installing I/O modules in the system manual "S7-1500 Automation System".
Connect the CP to Industrial Ethernet via the RJ45 jack.

Notes and explanations Underside of the CP

Turn on the power supply.

Close the front covers of the module and keep them closed during operation.

The remaining steps in commissioning involve downloading the STEP 7 project data.

The STEP 7 project data of the CP is transferred when you download to the station. To load the station, connect the engineering station on which the project data is located to the Ethernet interface of the CPU.
You will find more detailed information on loading in the following sections of the STEP 7 online help:

· "Compiling and loading project data"

· "Using online and diagnostics functions"

CP 1543-1

28

Operating Instructions, 05/2017, C79000-G8976-C289-07

Installation, connecting up, commissioning, operation 3.3 Mode of the CPU - effect on the CP

Ethernet interface
The table below shows the pin assignment of the Ethernet interface (RJ-45 jack). The assignment corresponds to the Ethernet standard IEEE 802.3.

Table 3- 1 Pin assignment of the Ethernet interface

View

Pin 10/100 Mbps operation

10/100 Mbps or gigabit operation

Signal name Pin assignment Signal name Pin assignment

1

TD

Transmit Data + D1+

D1 bidirectional +

2

TD_N Transmit Data - D1-

D1 bidirectional -

3

RD

Receive Data + D2+

D2 bidirectional +

4

GND

Ground

D3+

D3 bidirectional +

5

GND

Ground

D3-

D3 bidirectional -

6

RD_N Receive Data - D2-

D2 bidirectional -

7

GND

Ground

D4+

D4 bidirectional +

8

GND

Ground

D4-

D4 bidirectional -

You will find additional information on the topics of "Connecting up" and "Accessories (RJ-45 plug)" in the system manual: Link: (https://support.industry.siemens.com/cs/ww/en/view/59191792)

3.3

Mode of the CPU - effect on the CP

You can change the mode of the CPU between RUN and STOP using the STEP 7 configuration software.

Depending on the operating status of the CPU, the CP behaves as described below.

Changing the CPU from RUN to STOP:
When the CPU is in STOP mode, the CP remains in RUN and behaves as follows:  For established connections (ISO transport, ISOonTCP, TCP, UDP connections), the
following applies depending on the configuration: ­ Programmed connections are retained. ­ Configured connections are terminated.  The following functions remain enabled: ­ The configuration and diagnostics of the CP (system connections for configuration,
diagnostics, and PG channel routing are retained); ­ Web diagnostics ­ S7 routing function ­ Time-of-day synchronization

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

29

Installation, connecting up, commissioning, operation 3.3 Mode of the CPU - effect on the CP
Note RUN/STOP LED of the CP The green RUN/STOP LED of the CP continues to be lit green regardless of the STOP mode of the CPU.

CP 1543-1

30

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming

4

4.1

Security recommendations

Keep to the following security recommendations to prevent unauthorized access to the system.

General

 You should make regular checks to make sure that the device meets these recommendations and other internal security guidelines if applicable.
 Evaluate your plant as a whole in terms of security. Use a cell protection concept with suitable products.
 Do not connect the device directly to the Internet. Operate the device within a protected network area.
 Keep the firmware up to date. Check regularly for security updates of the firmware and use them.
 Check regularly for new features on the Siemens Internet pages.
­ Here you will find information on network security:
Link: (http://www.siemens.com/industrialsecurity)
­ Here you will find information on Industrial Ethernet security:
Link: (http://w3.siemens.com/mcms/industrial-communication/en/ie/industrial-ethernetsecurity/Seiten/industrial-security.aspx)
­ You will find an introduction to the topic of industrial security in the following publication:
Link: (http://w3app.siemens.com/mcms/infocenter/dokumentencenter/sc/ic/InfocenterLangu agePacks/Netzwerksicherheit/6ZB5530-1AP010BA4_BR_Netzwerksicherheit_en_112015.pdf)

Physical access
Restrict physical access to the device to qualified personnel.

Network attachment
Do not connect the PC directly to the Internet. If a connection from the CP to the Internet is required, arrange for suitable protection before the CP, for example a SCALANCE S with firewall.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

31

Configuration, programming 4.1 Security recommendations

Security functions of the product
Use the options for security settings in the configuration of the product. These includes among others:
 Protection levels
Configure access to the CPU under "Protection and Security".
 Security function of the communication
­ Enable the security functions of the CP and set up the firewall.
If you connect to public networks, you should use the firewall. Think about the services you want to allow access to the station via public networks. By using the "bandwidth restriction" of the firewall, you can restrict the possibility of flooding and DoS attacks.
The FETCH/WRITE functionality allows you to access any data of your PLC. The FETCH/WRITE functionality should not be used in conjunction with public networks.
­ Use the secure protocol variants HTTPS, FTPS, NTP (secure) and SNMPv3.
­ Use the program blocks for secure OUC communication (Secure OUC).
­ Leave access to the Web server of the CPU (CPU configuration) and to the Web server of the CP disabled.
 Protection of the passwords for access to program blocks
Protect the passwords stored in data blocks for the program blocks from being viewed. You will find information on the procedure in the STEP 7 information system under the keyword "Know-how protection".
 Logging function
Enable the function in the security configuration and check the logged events regularly for unauthorized access.

Passwords

 Define rules for the use of devices and assignment of passwords.  Regularly update the passwords to increase security.  Only use passwords with a high password strength. Avoid weak passwords for example
"password1", "123456789" or similar.  Make sure that all passwords are protected and inaccessible to unauthorized personnel.
See also the preceding section for information on this.  Do not use one password for different users and systems.

Protocols

Secure and non-secure protocols
 Only activate protocols that you require to use the system.
 Use secure protocols when access to the device is not prevented by physical protection measures.

CP 1543-1

32

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.1 Security recommendations

Table: Meaning of the column titles and entries The following table provides you with an overview of the open ports on this device.  Protocol / function
Protocols that the device supports.  Port number (protocol)
Port number assigned to the protocol.  Default of the port
­ Open The port is open at the start of the configuration.
­ Closed The port is closed at the start of the configuration.
 Port status ­ Open The port is always open and cannot be closed. ­ Open after configuration The port is open if it has been configured. ­ Open (login, when configured) As default the port is open. After configuring the port, the communications partner needs to log in. ­ Open with block call The port is only opened when a suitable program block is called.
 Authentication Specifies whether or not the protocol authenticates the communications partner during access.

Protocol / function DHCP
DCP DCE

Port number (protocol) 68 (UDP)
93 (UDP) 135 (TCP)

Default of the port
Open
Open Open

Port status
Open after configuration (only outgoing) Open Open

S7 communication
Online security diagnostics
NTP

102 (TCP) 8448 (TCP) 123 (UDP)

HTTP HTTPS

80 (TCP) 443 (TCP)

Open Closed Closed Closed Closed

Open
Open after configuration
Open after configuration (only outgoing) Open after configuration Open after configuration

Authentication No No Yes, when security is enabled. No
No No Yes

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

33

Configuration, programming 4.2 Network settings

Protocol / function FTP
FTPS
SNMP SMTP
SMTPS

Port number (protocol) 20 (TCP) 21 (TCP) 989 (TCP) 990 (TCP) 161 (UDP) 25 (TCP)
587 (TCP)

Default of the port Closed Closed Open Closed Closed

Port status
Open after configuration
Open after configuration
Open after configuration Open with block call (only outgoing) Open with block call (only outgoing)

Authentication No Yes Yes (with SNMPv3) No No

4.2

Network settings

Automatic setting
The Ethernet interface of the CPU is set permanently to autosensing.
Note In normal situations, the basic setting ensures troublefree communication.

Autocrossing mechanism
With the integrated autocrossing mechanism, it is possible to use a standard cable to connect the PC/PG. A crossover cable is not necessary.
Note Connecting a switch To connect a switch, that does not support the autocrossing mechanism, use a crossover cable.

CP 1543-1

34

Operating Instructions, 05/2017, C79000-G8976-C289-07

4.3

IP configuration

Configuration, programming 4.3 IP configuration

4.3.1

Points to note about IP configuration

Configured S7 and OUC connections cannot be operated if the IP address is assigned using DHCP
Note If you obtain the IP address using DHCP, any S7 and OUC connections you may have configured will not work. Reason: The configured IP address is replaced by the address obtained via DHCP during operation.

4.3.2

Restart after detection of a duplicate IP address in the network
To save you timeconsuming troubleshooting in the network, during startup the CP detects double addressing in the network.

Behavior when the CP starts up
If double addressing is detected when the CP starts up, the CP changes to RUN and cannot be reached via the Ethernet interface. The ERROR LED flashes.

4.3.3

IP routing

IP routing via the backplane bus
The CP supports static IP routing (IPv4) to other CM 1542-1 / CP 1543-1. You can use IP routing, for example, for Web server access by lower-level modules.
With IP routing, the data throughput is limited to 1Mbps. Remember this in terms of the number of modules involved and the expected data traffic via the backplane bus.

Configuration

You can activate the IP routing in STEP 7 via the function "IP routing between communication modules". In the security settings, the corresponding function is called "IP routing via the backplane bus". When you activate the function, additional IP firewall rules are created which you can modify in the advanced firewall mode of the security settings.
IP routing runs via the configured default router. If you use several CPs in a station, of the modules in the station only one may be configured as a router.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

35

Configuration, programming 4.4 Security

4.4

Security

Note the range and application of the security functions of the CP in the section Industrial Ethernet Security (Page 15).

For the configuration limits, see section Characteristics security (Page 19).

The security functions are configured in STEP 7.

4.4.1

VPN

What is VPN?

Virtual Private Network (VPN) is a technology for secure transportation of confidential data in public IP networks, for example the Internet. With VPN, a secure connection (= tunnel) is set up and operated between two secure IT systems or networks via a non-secure network.
One of the main characteristics of the VPN tunnel is that it forwards all network packets regardless of higher protocols (HTTP, FTP).
The data traffic between two network components is transported practically unrestricted through another network. This allows entire networks to be connected together via a neighboring network.

Properties

 VPN forms a logical subnet that is embedded in a neighboring (assigned) network. VPN uses the usual addressing mechanisms of the assigned network, however in terms of the data, it transports its own network packets and therefore operates independent of the rest of this network.
 VPN allows communication of the VPN partners with the assigned network.
 VPN is based on tunnel technology, can be individually configured, is customer-specific and is self-contained.
 Communication between the VPN partners is protected from eavesdropping or manipulation by using passwords, public keys or a digital certificate (= authentication).

Areas of application
 Local area networks can be connected together securely via the Internet ("site-to-site" connection).
 Secure access to a company network ("end-to-site" connection).
 Secure access to a server ("end-to-end" connection).
 Communication between two servers is possible without being accessible to third parties ("end-to-end" or "host-to-host" connection).
 Ensuring information security in networked automation systems.

CP 1543-1

36

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.4 Security

 Securing the computer systems including the associated data communication within an automation network or secure remote access via the Internet.
 Secure remote access from a PC/programming device to automation devices or networks protected by security modules is possible via public networks.

Cell protection concept
With Industrial Ethernet Security, individual devices, automation cells or network segments of an Ethernet network can be protected:
 The access to individual devices or even to entire automation cells protected by security modules is allowed.
 Secure connections via non-secure network structures becomes possible.
Due to the combination of different security measures such as firewall, NAT/NAPT routers and VPN via IPsec tunnels, security modules protect against the following:
 Data espionage
 Data manipulation
 Unwanted access

4.4.1.1

Creating VPN tunnel communication between S7-1500 stations

Requirements

To create a VPN tunnel between two S7-1500 stations, the following requirements must be met:
 Two S7-1500 stations have been configured.
 Both CPs are configured with a firmware version  V1.1.
 The Ethernet interfaces of the two stations are located in the same subnet.

Note Communication also possible via an IP router
Communication between the two S7-1500 stations is also possible via an IP router. To use this communications path, however, you need to make further settings.

Procedure

To create a VPN tunnel, you need to work through the following steps: 1. Create a security user.
If the security user has already been created: Log on as a user. 2. Select the "Activate security features" check box.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

37

Configuration, programming 4.4 Security
3. Create the VPN group and assign security modules. 4. Configure properties of the VPN group.
Configure local VPN properties of the two CPs. You will find a detailed description of the individual steps in the following paragraphs of this section.
Creating a security user
To create a VPN tunnel, you require appropriate configuration rights. To activate the security functions, you need to create at least one security user. 1. In the local security settings of the CP, click the "User logon" button.
Result: A new window opens. 2. Enter the user name, password and confirmation of the password. 3. Click the "User login" button.
You have created a new security user. The security functions are now available to you. With all further logons, log on as user.
Selecting the "Activate security features" check box
 After logging on, select the "Activate security features" check box for both CPs. You now have the security functions available for both CPs.
Creating the VPN group and assigning security modules
Note Current date and current time of day on the security modules When using secure communication (for example HTTPS, VPN...), make sure that the security modules involved have the current time of day and the current date. Otherwise the certificates used will not be evaluated as valid and the secure communication will not work.
1. In the global security settings, select the entry "Firewall" > "VPN groups" > "Add new VPN group".
2. Double-click on the entry "Add new VPN group", to create a VPN group. Result: A new VPN group is displayed below the selected entry.
3. In the global security settings, double-click on the entry "VPN groups" > "Assign module to a VPN group".
4. Assign the security modules between which VPN tunnels will be established to the VPN group.

CP 1543-1

38

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.4 Security
Configuring properties of the VPN group
1. Double-click on the newly created VPN group. Result: The properties of the VPN group are displayed under "Authentication".
2. Enter a name for the VPN group. Configure the settings of the VPN group in the properties. These properties define the default settings of the VPN group that you can change at any time.
Note Specifying the VPN properties of the CP You specify the VPN properties of the required CP in the local properties of the module ("Security" > "Firewall" > "VPN")

Result

You have created a VPN tunnel. The firewalls of the CPs are activated automatically: The "Activate firewall" check box is selected as default when you create a VPN group. You cannot deselect the check box.
 Download the configuration to all modules that belong to the VPN group.

4.4.1.2

Successfully establishing VPN tunnel communication between the CP 1543-1 and SCALANCE M
Creating VPN tunnel communication between the CP 1543-1 and SCALANCE M is the same as described in Procedure for S7-1500 stations (Page 37).
VPN tunnel communication will only be established if you have selected the check box "Perfect Forward Secrecy" in the global security settings of the created VPN group ("VPN groups > Authentication").
If the check box is not selected, the CP 1543-1 rejects establishment of the tunnel.

4.4.1.3

VPN tunnel communication with SOFTNET Security Client
Creating VPN tunnel communication between the CP SOFTNET Security Client and CP 1543-1 is the same as described in Procedure for S7-1500 stations (Page 37).

VPN tunnel communication works only if the internal node is disabled
Under certain circumstances the establishment of VPN tunnel communication between SOFTNET Security Client and the CP 1543-1 fails.
SOFTNET Security Client also attempts to establish VPN tunnel communication to a lowerlevel internal node. This communication establishment to a non-existing node prevents the required communication establishment to the CP 1543-1.
To establish successful VPN tunnel communication to the CP 1543-1, you need to disable the internal node.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

39

Configuration, programming 4.4 Security

Use the procedure for disabling the node as explained below only if the described problem occurs. Disable the node in the SOFTNET Security Client tunnel overview: 1. Remove the checkmark in the "Enable active learning" check box.
The lower-level node initially disappears from the tunnel list. 2. In the tunnel list, select the required connection to the CP 1543-1. 3. With the right mouse button, select "Enable all members" in the shortcut menu.
The lower-level node appears again temporarily in the tunnel list. 4. Select the lower-level node in the tunnel list. 5. With the right mouse button, select "Delete entry" in the shortcut menu. Result: The lower-level node is now fully disabled. VPN tunnel communication to the CP 1543-1 can be established.

4.4.1.4

CP as passive subscriber of VPN connections

Setting permission for VPN connection establishment with passive subscribers
If the CP is connected to another VPN subscriber via a gateway, you need to set the permission for VPN connection establishment to "Responder".
This is the case in the following typical configuration:
VPN subscriber (active)  gateway (dyn. IP address)  Internet  gateway (fixed IP address)  CP (passive)
Configure the permission for VPN connection establishment for the CP as a passive subscriber as follows:
1. In STEP 7, go to the devices and network view.
2. Select the CP.
3. Open the parameter group "VPN" in the local security settings.
4. For each VPN connection with the CP as a passive VPN subscriber, change the default setting "Initiator/Responder" to the setting "Responder".

CP 1543-1

40

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.4 Security

4.4.2

Firewall

4.4.2.1

Firewall sequence when checking incoming and outgoing frames
Each incoming or outgoing frame initially runs through the MAC firewall (layer 2). If the frame is discarded at this level, it is not checked by the IP firewall (layer 3). This means that with suitable MAC firewall rules, IP communication can be restricted or blocked.

4.4.2.2

Notation for the source IP address (advanced firewall mode)
If you specify an address range for the source IP address in the advanced firewall settings of the CP 1543-1, make sure that the notation is correct:  Separate the two IP addresses only using a hyphen.
Correct: 192.168.10.0-192.168.10.255  Do not enter any other characters between the two IP addresses.
Incorrect: 192.168.10.0 - 192.168.10.255 If you enter the range incorrectly, the firewall rule will not be used.

4.4.2.3

HTTP and HTTPS not possible with IPv6
It is not possible to use HTTP and HTTPS communication on the Web server of the station using the IPv6 protocol.
If the firewall is enabled in the local security settings in the entry "Firewall > Predefined IPv6 rules": The selected check boxes "Allow HTTP" and "Allow HTTPS" have no function.

4.4.2.4

Firewall settings for connections via a VPN tunnel

IP rules in advanced firewall mode
If you have configured connections between CPs, note the following setting if you operate the CPs in advanced firewall mode.
In the parameter group "Security > Firewall > IP rules" select the setting "Allow" for tunnel connections.
If you do not enable the option, the VPN connection is terminated and re-established.
This applies to connections between a CP 1543-1 and for example a CP 343-1 Advanced, CP 443-1 Advanced, CP 1628 or CP 1243-1.

See also

Online diagnostics and downloading to station with the firewall activated (Page 42)

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

41

Configuration, programming 4.4 Security

4.4.3

Online functions

4.4.3.1

Online diagnostics via port 8448

Security diagnostics without opening port 102
If you want to perform security diagnostics without opening port 102, follow the steps below: 1. Select the CP in STEP 7. 2. Open the "Online & diagnostics" shortcut menu (right mouse button). 3. In the parameter group "Security > Status" click the "Connect online" button. In this way you perform the security diagnostics via port 8448.

4.4.3.2

Online diagnostics and downloading to station with the firewall activated

Setting the firewall for online functions
With the security functions enabled, follow the steps outlined below:
1. In the global security settings (see project tree), select the entry "Firewall > Services > Define services for IP rules".
2. Select the "ICMP" tab.
3. Insert a new entry of the type "Echo Reply" and another of the type "Echo Request".
4. Now select the CP in the S7 station.
5. Enable the advanced firewall mode in the local security settings of the CP in the "Security > Firewall" parameter group.
6. Open the "IP rules" parameter group.
7. In the table, insert a new IP rule for the previously created global services as follows:
­ Action: Allow; "From external -> To station " with the globally created "Echo request" service
­ Action: Allow; "From station -> to external" with the globally created "Echo reply" service
8. For the IP rule for the Echo Request, enter the IP address of the engineering station in "Source IP address". This ensures that only ICMP frames (ping) from your engineering station can pass through the firewall.

CP 1543-1

42

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.5 Time-of-day synchronization

4.4.4

Filtering of the system events

Communications problems if the value for system events is set too high
If the value for filtering the system events is set too high, you may not be able to achieve the maximum performance for the communication. The high number of output error messages can delay or prevent the processing of the communications connections.
In "Security > Log settings > Configure system events", set the "Level:" parameter to the value "3 (Error)" to ensure the reliable establishment of the communications connections.

4.5

Time-of-day synchronization

General rules

The CP supports the following mode for timeofday synchronization:  NTP mode (NTP: Network Time Protocol)

Note Recommendation for setting the time
Synchronization with a external clock at intervals of approximately 10 seconds is recommended. This achieves as small a deviation as possible between the internal time and the absolute time.
Note Special feature of time-of-day synchronization using NTP
If the option "Accept time from non-synchronized NTP servers" is not selected, the response is as follows:
If the CP receives a time of day frame from an unsynchronized NTP server with stratum 16, the time of day is not set according to the frame. In this case, none of the NTP servers is displayed as "NTP master" in the diagnostics; but rather only as being "reachable".

Security

In the extended NTP configuration, you can create and manage additional NTP servers.
Note Ensuring a valid time of day
If you use security functions, a valid time of day is extremely important. If you do not obtain the time-of-day from the station (CPU), we therefore recommend that you use the NTP (secure) method.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

43

Configuration, programming 4.6 Program blocks for OUC

Configuration

For more detailed information on configuration, refer to the STEP 7 online help of the "Timeof-day synchronization" parameter group.

4.6

Program blocks for OUC

Programming Open User Communication (OUC)
The instructions (program blocks) listed below are required for the following communication services via Ethernet:  ISO transport  TCP  ISO-on-TCP  UDP (Multicast)  E-mail For this, create suitable program blocks. The program block can be found in STEP 7 in the "Instructions > Communication > Open user communication" window. You will find details on the program blocks in the information system of STEP 7.
Note Different program block versions Note that in STEP 7 you cannot use different versions of a program block in a station.

Supported program blocks for OUC
The following instructions in the specified minimum version are available for programming Open User Communication:  TSEND_C V3.1 / TRCV_C V3.1
Compact blocks for connection establishment/termination and for sending and receiving data or  TCON V4.0 / TDISCON V2.1
Connection establishment / connection termination  TUSEND V4.0 / TURCV V4.0
Sending and receiving data via UDP

CP 1543-1

44

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.6 Program blocks for OUC
 TSEND V4.0 / TRCV V4.0 Sending and receiving data via TCP or ISOonTCP
 TMAIL_C V4.0 Sending e-mails Note the description of TMAIL_C as of version V4.0 in the STEP 7 information system.
Connection establishment and termination
Connections are established using the program block TCON. Note that a separate program block TCON must be called for each connection. A separate connection must be established for each communications partner even if identical blocks of data are being sent. After a successful transfer of the data, a connection can be terminated. A connection is also terminated by calling "TDISCON".
Note Connection abort If an existing connection is aborted by the communications partner or due to disturbances on the network, the connection must also be terminated by calling TDISCON. Make sure that you take this into account in your programming.
Connection descriptions in system data types (SDTs)
For the connection description, the blocks listed above use the parameter CONNECT (or MAIL_ADDR_PARAM with TMAIL_C). The connection description is stored in a data block whose structure is specified by the system data type (SDT).
Creating an SDT for the data blocks You create the SDT required for every connection description as a data block. You generate the SDT type in STEP 7 by entering the name (e.g. "TCON_IP_V4") in the "Data type" box manually in the declaration table of block instead of selecting an entry from the "Data type" drop-down list. The corresponding SDT is then created with its parameters.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

45

Configuration, programming 4.6 Program blocks for OUC
The following SDTs can be used.  Configured connections:
­ TCON_Configured For transferring frames via TCP
 Programmed connections: ­ TCON_IP_V4 For transferring frames via TCP or UDP ­ TCON_IP_V4_SEC For the secure transfer of frames via TCP ­ TCON_QDN For transferring frames via TCP or UDP ­ TCON_QDN_SEC For the secure transfer of frames via TCP ­ TCON_IP_RFC For transferring frames via ISO-on-TCP ­ TCON_ISOnative For transferring frames via ISO transport ­ TMail_V4 For transferring e-mails addressing the e-mail server using an IPv4 address ­ TMail_V6 For transferring e-mails addressing the e-mail server using an IPv6 address ­ TMail_FQDN For transferring e-mails addressing the e-mail server using the host name ­ TMail_V4_SEC For secure transfer of e-mails addressing the e-mail server using an IPv4 address ­ TMail_V6_SEC For secure transfer of e-mails addressing the e-mail server using an IPv6 address ­ TMail_QDN_SEC For secure transfer of e-mails addressing the e-mail server using the host name
You will find the description of the SDTs with their parameters in the STEP 7 information system under the relevant name of the SDT. You can find a description of the parameters of SDTs TMail_V4_SEC, TMail_V6_SEC and TMail_QDN_SEC in the online help section on TCON_IP_V4_SEC.

CP 1543-1

46

Operating Instructions, 05/2017, C79000-G8976-C289-07

4.7

Setting up FTP communication

Configuration, programming 4.7 Setting up FTP communication

4.7.1

The program block FTP_CMD (FTP client function)

Meaning

Using the FTP_CMD instruction, you can establish FTP connections and transfer files from and to an FTP server.
Note Block versions
You can use the version V2.x of FTP_CMD in a station only in conjunction with a CPU and a CP V2.x V2.x.
As soon as the station obtains a CPU V1.x or CP V1.x, you must use FTP_CMD in the older version V1.x (e.g. V1.4). To do this, change the version of the "SIMATIC NET CP" library to V3.4. You can then select an older version of the block.
The table below shows the compatibility.

Table 4- 1 Compatibility of the block FTP_CMD with versions of the CPU and CP

FTP_CMD V1.5 V1.5 V2.0

CPU V1.x Any V2.x

CP 1543-1 Any V1.x V2.x

Data transfer is possible using FTP or FTPS (secure SSL connections).

Note
FTPS: Comparing certificates
FTPS requires a comparison of the certificates between FTP server and FTP client. If the FTP server is configured outside the STEP 7 project of the FTP client, the certificate needs to be imported from the FTP server. Import the certificate of the FTP server as a trusted certificate in the certificate manager.

How it works

The FTP_CMD instruction references a job block (ARG) in which the FTP command is specified. Depending on the type of FTP command (CMD), this job block uses different data structures for parameter assignment. Suitable data types (UDTs) are available for these various structures.
The following diagram shows the call structure:

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

47

Configuration, programming 4.7 Setting up FTP communication

Job blocks

The following data structures are used for the job blocks:  Connection establishment
Various data structures are available for the connection establishment using the following types of access: ­ FTP_CONNECT_IPV4: Connection establishment with IP addresses according to IPv4 ­ FTP_CONNECT_IPV6: Connection establishment with IP addresses according to IPv6 ­ FTP_CONNECT_NAME: Connection establishment with server name (DNS)  Data transfer For the data transfer, two different data structures are available: ­ FTP_FILENAME: Data structure for access to a complete file ­ FTP_FILENAME_PART: Data structure for read access to a data area

Data transfer in the File_DB
The data transfer is achieved using data blocks containing a header for job data and the area for the user data. The data block is specified in the job buffer.

Requirements in the CPU configuration
Use the following settings to allow FTP access:
 For all data blocks being used as file DBs, disable the "Optimized block access" attribute.
 Only when using a CPU V1.x and a CP V1.1.x: Enable the "Access via PUT/GET communication" option in the configuration data of the CPU under "Protection & Security" (PUT/GET must be released).

FTP access using the FTP_CMD instruction - parameters for command types NOOP and QUIT
Supply the FTP_CMD with a reference to a job block with the following command types as well:

CP 1543-1

48

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.7 Setting up FTP communication
CMD = 0 (NOOP) CMD = 5 (QUIT) The content of the job block is not evaluated when these command types execute, the type (UDT) of the specified job block is therefore unimportant.
Note Response if the reference to the FTP job block is missing If this reference is not supplied, the command is not executed. The instruction remains blocked in an apparent execution status without any feedback to the user program on the interface.
Evaluating the "LOCKED" and "NEW" status bits from the FTP_CMD program block
 In version 1.2 of the "FTP_CMD" program block, the status bits "LOCKED" and "NEW" of the FILE_DB_HEADER are not evaluated. With the functions of the FTP server or when using the same file DB, the possibility of multiple simultaneous access to the same data area cannot be excluded. This can lead to data inconsistency.
 As of version 1.5 of the "FTP_CMD" program block, the status bits "LOCKED" and "NEW" of the FILE_DB_HEADER are set correctly. The two status bits are evaluated. Version 1.5 is available as of STEP 7 Professional V12 SP1.
Note Avoiding data inconsistency Make sure that you do not access the same file DB more than once at the same time.

4.7.2

Configuring the FTP server function

CP configuration
Configure the FTP server function of the CP in the following parameter group.  With security functions disabled: "FTP server configuration"  With security functions enabled: "Security > FTP server configuration"

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

49

Configuration, programming 4.7 Setting up FTP communication
Requirements in the CPU configuration and programming
Use the following settings to allow FTP access:  In the CPU configuration in "Protection & Security > Connection mechanisms":
Disable the option "Access via PUT/GET communication...".  As file DBs create data blocks of the type "Array of byte".  For all data blocks being used as file DBs, disable the "Optimized block access" attribute.
S7-1500 CP as FTP server
The functionality described here allows you to transfer data in the form of files to or from an S7-1500 station using FTP commands. At the same time, the conventional FTP commands for reading, writing and managing files can also be used. Access to the following data of the S7-1500 is possible:  RAM of the CP
Name of the directory: /ram  Data blocks of the CPU Name of the directory: /cpu1 / DBx "DBx" is the name of the relevant data block e.g. DB10.  SIMATIC memory card of the CPU The function is supported as of CP firmware V2.0 and CPU firmware V2.0. Name of the directory: /mmc_cpu1 Access to the following folders of the SIMATIC memory card is possible: ­ /DATALOGS
Directory for log files ­ /RECIPES
Directory for recipe files
Note FTP access to the SIMATIC memory card of the CPU: CPU STOP possible Note that the cards have a limited capacity If the memory space of the SIMATIC memory card is completely occupied due to storage of large amounts of data, the CPU changes to STOP. · Use a card with adequate storage capacity. · Avoid writing large amounts of data often to the SIMATIC memory card using FTP.

CP 1543-1

50

Operating Instructions, 05/2017, C79000-G8976-C289-07

Configuration, programming 4.7 Setting up FTP communication
Reading/writing via DBs of the CPU
To transfer data with FTP via data blocks, create the required DBs in the CPU. Due to their special structure, these are known as file DBs. When it receives an FTP command, the CP acting as FTP server queries its assignment table to find out how the data blocks used for file transfer in the CPU will be mapped to files. You make the data block assignment in the STEP 7 configuration of the CP (FTP configuration).

Figure 4-1 S7 CPU with CP 1543-1 as FTP server for the S7 CPU data

DB assignment in STEP 7
The fields of the table in the data block assignment in STEP 7 have the following meaning and syntax:

Column title Meaning
Example

CPU Assignment of the CPU
Selectable from dropdown list

DB
No. of the data block (file DB)
Selectable from dropdown list

cpu1 [PLC_1]

20

File name
The file name assigned to the file DB
Automatic name proposal; entry can editable.
cpu1_db20.dat

Comment Informal comment
Measured values plant 1

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

51

Configuration, programming 4.8 IP access protection with programmed communications connections
Notes on the syntax The following applies to the file name of a file DB:  The file name begins with "cpuX" (where X=1 for S7-1500).
Note Keep to the notation (lower case for "cpu" and no leading spaces at the start of the row). Otherwise, the files will not be recognized.
 Length: maximum 64 characters (including "cpuX")
FTPS access only with security functions enabled
FTPS access to the S7-1500 station as an FTP server is only possible if a user with suitable rights has been created in the STEP 7 project. This means that the security functions must be enabled on the CP. For this, security settings are available in the global user administration.

4.8

IP access protection with programmed communications connections

Restrictions with programmed connections and configured security functions
In principle, it is possible to set up communications connections program-controlled using the program block TCON and at the same time by configuring the firewall.
When configuring specified connections (active endpoints) in STEP 7, the IP addresses of the partners are not entered automatically in the firewall configuration.
The configuration of IP access protection and the aspects of activated security are described in the online help of STEP 7.

CP 1543-1

52

Operating Instructions, 05/2017, C79000-G8976-C289-07

Diagnostics and upkeep

5

5.1

Diagnostics options

Diagnostics options
You have the following diagnostics options available for the module:  The LEDs of the module
For information on the LED displays, refer to the section LEDs (Page 22).  STEP 7: The "Diagnostics" tab in the Inspector window
Here, you can obtain the following information on the selected module: ­ Information on the online status of the module  STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu Here, you can obtain static information on the selected module: ­ General information on the module ­ Diagnostics status ­ Information on the Ethernet interface ­ Security (with security enabled) You can obtain further information on the diagnostics functions of STEP 7 in the STEP 7 online help.  SNMP You will find detailed information about the supported functions in the section Diagnostics with SNMP (Page 53).

5.2

Diagnostics with SNMP

Requirement

The requirement for using SNMP is the enabling of the function in the configuration.

SNMP (Simple Network Management Protocol)
SNMP is a protocol for diagnostics and managing networks and nodes in the network. To transmit data, SNMP uses the connectionless UDP protocol.
The information on the properties of SNMP-compliant devices is entered in MIB files (MIB = Management Information Base).

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

53

Diagnostics and upkeep 5.2 Diagnostics with SNMP
You will find detailed information on SNMP and the Siemens Automation MIB in the manual "Diagnostics and Configuration with SNMP" that you will find on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15392/man)
Performance range of the CP
The CP supports the following SNMP versions:  SNMPv1  SNMPv3 (with activated Security functions) Traps are not supported by the CP.
Supported MIBs in SNMPv1
The CP supports the following MIBs:  MIB II (acc. to RFC1213)
The CP supports the following groups of MIB objects: ­ System ­ Interfaces ­ IP ­ ICMP ­ TCP ­ UDP ­ SNMP  LLDP MIB  Siemens Automation MIB Note the rights for writing to the MIB objects, see the next section (SNMPv3).

CP 1543-1

54

Operating Instructions, 05/2017, C79000-G8976-C289-07

Diagnostics and upkeep 5.2 Diagnostics with SNMP

Supported MIB objects in SNMPv3
If SNMPv3 is enabled, the CP returns the contents of the following MIB objects:  MIB II (acc. to RFC1213)
The CP supports the following groups of MIB objects: ­ System ­ Interfaces
The "Interfaces" MIB object provides status information about the CP interfaces. ­ IP (IPv4/IPv6) ­ ICMP ­ TCP ­ UDP ­ SNMP The following groups of the standard MIB II are not supported: ­ Adress Translation (AT) ­ EGP ­ Transmission  LLDP MIB  Siemens Automation MIB Note that write access is permitted only for the following MIB objects of the "System" group: ­ sysContact ­ sysLocation ­ sysName
A set sysName is sent as the host name using DHCP option 12 to the DHCP server to register with a DNS server. For all other MIB objects and groups, only read access is possible for security reasons.

Access rights using community names (SNMPv1)
TCP uses the following community strings to control the permissions for access to the SNMP agent:

Table 5- 1 Access rights in the SNMP agent
Type of access Read access Read and write access
*) Note the use of lowercase letters!

Community string *) public private

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

55

Diagnostics and upkeep 5.3 Replacing a module without a programming device

5.3

Replacing a module without a programming device

General procedure
The configuration data of the CP is stored on the CPU. This makes it possible to replace this module with a module of the same type (identical article number) without a PG.
Note Configured MAC address is adopted When setting the ISO protocol, remember that MAC address set previously during configuration is transferred by the CPU to the new CP module.

Module replacement: Special feature of IP address assignment from a DHCP server (IPv4)
During configuration of the CP you can specify the IP configuration in the properties dialog; one option is to obtain the IP address from a DHCP server.
Note Recommendation: Configuring a client ID
When replacing modules, remember that the factoryset MAC address of the new module is different from the previous module. When the factoryset MAC address of the new module is sent to the DHCP server, this will return either a different or no IP address.
Ideally, you should therefore configure IP as follows: · Always configure a client ID and configure your DHCP server accordingly. This makes
sure that after replacing the module, you always obtain the same IP address from the DHCP server.
If, in exceptional situations, you have configured a new MAC address instead of the MAC address set in the factory, the configured MAC address will always be transferred to the DHCP server. In this case, the new CP also has the same IP address as the previous module.

CP 1543-1

56

Operating Instructions, 05/2017, C79000-G8976-C289-07

Technical specifications

6

Note the information in the System description of SIMATIC S7-1500 (Page 9).
In addition to the information in the system description, the following technical specifications apply to the module.

Technical specifications - CP 1543-1

Product name

CP 1543-1

Article number

6GK7 543-1AX00-0XE0

Attachment to Industrial Ethernet

· Number

1 x Ethernet (gigabit) interface

· Design

RJ-45 jack

· Transmission speed

10 / 100/ 1000 Mbps

Electrical data Power supply · via S7-1500 backplane bus 15 V

Current consumption · From backplane bus

350 mA

· Power dissipation

5.3 W

Insulation

Insulation tested with

707 VDC (type test)

Design, dimensions and weight

Module format

Compact module S7-1500, single width

Degree of protection

IP20

Weight

Approx. 350 g

Dimensions (W x H x D)

35 x 142 x 129 mm

Installation options

Mounting in an S7-1500 rack

Permitted cable lengths

(Alternative combinations per length range) *

0 ... 55 m

· Max. 55 m IE TP Torsion Cable with IE FC RJ45 Plug 180

· Max. 45 m IE TP Torsion Cable with IE FC RJ45 + 10 m TP Cord via IE FC RJ45 Outlet

0 ... 85 m

· Max. 85 m IE FC TP Marine/Trailing/Flexible/FRNC/Festoon/Food Cable with IE FC RJ45 Plug 180
· Max. 75 m IE FC TP Marine/Trailing/Flexible/FRNC/Festoon/Food Cable + 10 m TP Cord via IE FC RJ45 Outlet

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

57

Technical specifications

Technical specifications - CP 1543-1

0 ... 100 m

· Max. 100 m IE FC TP Standard Cable with IE FC RJ45 Plug 180

· Max. 90 m IE FC TP Standard Cable + 10 m TP Cord via IE FC RJ45 Outlet

Product functions **

* For details, refer to the IK PI catalog, cabling technology

** You will find the product functions in the section Product overview, functions (Page 11).

CP 1543-1

58

Operating Instructions, 05/2017, C79000-G8976-C289-07

Approvals

7

Approvals issued
Note Issued approvals on the type plate of the device
The specified approvals - with the exception of the certificates for shipbuilding - have only been obtained when there is a corresponding mark on the product. You can check which of the following approvals have been granted for your product by the markings on the type plate. The approvals for shipbuilding are an exception to this.
Certificates for shipbuilding and national approvals
The device certificates for shipbuilding and special national approvals can be found in Siemens Industry Online Support on the Internet: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15340/cert)
EC declaration of conformity
The product meets the requirements and safety objectives of the following EC directives and it complies with the harmonized European standards (EN) for programmable logic controllers which are published in the official documentation of the European Union.  2014/34/EU (ATEX explosion protection directive)
Directive of the European Parliament and the Council of 26 February 2014 on the approximation of the laws of the member states concerning equipment and protective systems intended for use in potentially explosive atmospheres, official journal of the EU L96, 29/03/2014, pages. 309-356  2014/30/EU (EMC)
EMC directive of the European Parliament and of the Council of February 26, 2014 on the approximation of the laws of the member states relating to electromagnetic compatibility; official journal of the EU L96, 29/03/2014, pages. 79-106  2011/65/EU (RoHS) Directive of the European Parliament and of the Council of 8 June 2011 on the restriction of the use of certain hazardous substances in electrical and electronic equipment The EC Declaration of Conformity is available for all responsible authorities at: Siemens Aktiengesellschaft Division Process Industries and Drives Process Automation

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

59

Approvals

IECEx ATEX

DE-76181 Karlsruhe Germany You will find the EC Declaration of Conformity on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15340/cert) The current versions of the standards can be seen in the EC Declaration of Conformity and in the certificates.
The product meet the requirements of explosion protection according to IECEx. IECEx classification: Ex nA IIC T4 Gc The product meets the requirements of the following standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' You can see the current versions of the standards in the IECEx certificate that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/ps/15340/cert) The conditions must be met for the safe deployment of the product according to the section Notes on use in hazardous areas according to ATEX / IECEx (Page 26). You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find on the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)
The product meets the requirements of the EC directive:2014/34/EC "Equipment and Protective Devices for Use in Potentially Explosive Atmospheres". Applied standards:  EN 60079-0
Hazardous areas - Part 0: Equipment - General requirements  EN 60079-15
Explosive atmospheres - Part 15: Equipment protection by type of protection 'n' The current versions of the standards can be seen in the EC Declaration of Conformity, see above. ATEX approval: II 3 G Ex nA IIC T4 Gc Test number: DEKRA 12 ATEX 0240X The conditions must be met for the safe deployment of the product according to the section Notes on use in hazardous areas according to ATEX / IECEx (Page 26).

CP 1543-1

60

Operating Instructions, 05/2017, C79000-G8976-C289-07

Approvals

You should also note the information in the document "Use of subassemblies/modules in a Zone 2 Hazardous Area" that you will find here:
 In the SIMATIC NET Manual Collection in "All documents" > "Use of subassemblies/modules in a Zone 2 Hazardous Area"
 On the Internet at the following address: Link: (https://support.industry.siemens.com/cs/ww/en/view/78381013)

EMC

Until 19.04.2016 the product meets the requirements of the EC Directive 2014/30/EU "Electromagnetic Compatibility" (EMC directive).
Applied standards:
 EN 61000-6-4
Electromagnetic compatibility (EMC) - Part 6-4: Generic standards - Emission standard for industrial environments
 EN 61000-6-2
Electromagnetic compatibility (EMC) - Part 6-2: Generic standards - Immunity for industrial environments

RoHS

The product meets the requirements of the EC directive 2011/65/EU on the restriction of the use of certain hazardous substances in electrical and electronic equipment.
Applied standard:
 EN 50581:2012

c(UL)us

Applied standards:
 Underwriters Laboratories, Inc.: UL 61010-1 (Safety Requirements for Electrical Equipment for Measurement, Control, and Laboratory Use - Part 1: General Requirements)
 IEC/UL 61010-2-201 (Safety requirements for electrical equipment for measurement, control and laboratory use. Particular requirements for control equipment)
 Canadian Standards Association: CSA C22.2 No. 142 (Process Control Equipment)
Report / UL file: E 85972 (NRAG, NRAG7)

cULus Hazardous (Classified) Locations
Underwriters Laboratories, Inc.: cULus IND. CONT. EQ. FOR HAZ. LOC.

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

61

Approvals

Applied standards:  ANSI ISA 12.12.01  CSA C22.2 No. 213-M1987 APPROVED for Use in:  Cl. 1, Div. 2, GP. A, B, C, D T3...T6  Cl. 1, Zone 2, GP. IIC T3...T6 Ta: Refer to the temperature class on the type plate of the CP Report / UL file: E223122 (NRAG, NRAG7) Note the conditions for the safe deployment of the product according to the section Notes on use in hazardous areas according to UL HazLoc (Page 27).
Note For devices with C-PLUG memory: The C-PLUG memory module may only be inserted or removed when the power is off.

CSA

CSA Certification Mark Canadian Standard Association (CSA) nach Standard C 22.2 No. 142:
 Certification Record 063533­C-000

FM
Factory Mutual Approval Standards:  Class 3600  Class 3611  Class 3810  ANSI/ISA 61010-1 Report Number 3049847 Class I, Division 2, Group A, B, C, D, T4 Class I, Zone 2, Group IIC, T4 You will find the temperature class on the type plate on the module.

Australia - RCM
The product meets the requirements of the AS/NZS 2064 standards (Class A).

CP 1543-1

62

Operating Instructions, 05/2017, C79000-G8976-C289-07

Approvals

Canada

This class A digital device meets the requirements of the Canadian standard ICES-003.
AVIS CANADIEN Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada.

MSIP  - For Korea only
A ( )
  (A)         ,      .
Note that in terms of the emission of interference, this device corresponds to limit class A. This device can be used in all areas except for residential environments.

Current approvals
SIMATIC NET products are regularly submitted to the relevant authorities and approval centers for approvals relating to specific markets and applications.
If you require a list of the current approvals for individual devices, consult your Siemens contact or check the Internet pages of Siemens Industry Online Support:
Link: (https://support.industry.siemens.com/cs/ww/en/ps/15340/cert)

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

63

Approvals

CP 1543-1

64

Operating Instructions, 05/2017, C79000-G8976-C289-07

Index

A
Autocrossing mechanism, 34 Autosensing, 34
B
Bandwidth limitation, 15 Block execution time, 19
C
Cell protection concept VPN, 37
Changing CPU mode From RUN to STOP, 29
Commissioning Completeness of the STEP 7 project data, 28
Configuration, 28 Configuration and downloading the configuration data, 20 Configuration of the Ethernet interface, 21
Instruction, 21 Connecting a switch, 34 Connection resources of the CPU, 16 Connections for Web
Number, 18 Crossover cable, 34
D
Data storage of the configuration data of the CP, 56 DHCP server, 56 Diagnostics options, 53 Disposal, 5 Double addressing in the network, 35 Downloading project data, 28 Downloads, 10
E
E-mail, 12, 17, 21 EMC - electromagnetic compatibility, 59 Ethernet interface, 11, 24
Pin assignment, 29

F
FETCH/WRITE, 13, 17 S5/S7 addressing mode, 14
Firewall, 15 Firewall configuration, 52 Firmware version, 11 FTP, 21, 47 FTP (FTP client), 16 FTP in client mode
Configuration limits, 19 FTP in server mode
Configuration limits, 19 FTP_CMD, 47 FTPS, 47 FTPS - Security, 52 FTPS (explicit mode), 15
G
Gateway, 40 Gigabit specification, 24 Global firewall rules, 15 Glossary, 5
H
Hardware product version, 11 HMI communication, 12
I
Installation and commissioning, 28 Procedure, 28
Instruction FTP_CMD, 19, 21 T_CONFIG, 21 TCON, TSEND/TRCV, 21 TDISCON, 21 TMAIL_C, 21 TSEND_C/TRCV_C, 21 TUSEND/TURCV, 21
IP access protection, 52

CP 1543-1

Operating Instructions, 05/2017, C79000-G8976-C289-07

65

Index

IP address IPv6, 14 Via DHCP, 35
IP configuration IPv4 / IPv6, 14
IP routing, 35 IPsec tunnel
Number, 19 ISO, 21 ISO transport (complying with RFC 8073), 12 ISO transport connections, 17 ISO-on-TCP, 21 ISO-on-TCP (acc. to RFC 1006), 12 ISO-on-TCP connections, 17 IT functions, 13
L
LED display, 22 Logging, 15
M
MAC address, 11, 13, 56 Manual Collection, 10 Maximum data length for program blocks, 17 MIB, 53 Module replacement
Special feature of IP address assignment from a DHCP server (IPv4), 56 Multicast via UDP, 12
N
NTP (secure), 15, 43 NTP mode, 13 NTP server, 43 Number
Operable CPs, 20 Number of connections, 17
O
Online help of STEP 7, 28 OP connections
Number, 18 Open User Communication (OUC), 12 OUC (Open User Communication), 44 Overall configuration limits, 20

P
Passive VPN connection establishment, 40 PG communication, 12 PG connections
Number, 18 Port 8448, 42 Power supply modules
Additional, 20 PROFINET interface
LEDs, 24 Program block, (Instruction) Programmed communications connections, 52
R
Recycling, 5
S
S5/S7 addressing mode, 14 S7 communication, 12 S7 connections, 12, 16
Number of freely usable, 18 S7 routing function, 29 Safety notices, 25 Security diagnostics without port 102, 42 Security SDTs, 45 SIMATIC NET, 10 SIMATIC NET glossary, 5 SMTPS, 15 SNMP, 53 SNMP agent, 13 SNMPv3, 15 Special notes
Connecting a switch, 34 Ensuring a valid time of day, 43 Recommendation for setting the time, 43 Response if the reference to the FTP job block is missing, 49 Stateful packet inspection (layer 3 and 4), 15 STEP 7, 4, 20 System data type CONF_DATA, 21 FTP_CONNECT_IPV4, 21 FTP_CONNECT_IPV6, 21 FTP_CONNECT_NAME, 21 FTP_FILENAME, 21 FTP_FILENAME_PART, 21 TCON_Configured, 21 TCON_IP_v4, 21, 21 TCON_ISOnative, 21, 21

CP 1543-1

66

Operating Instructions, 05/2017, C79000-G8976-C289-07

TMAIL_FQDN, 21 TMail_v4, 21 TMail_v6, 21 System data types (SDTs), 45
T
TCON, 52 TCP, 21 TCP (acc. to RFC 793), 12 TCP connections, 17 TCP connections for FTP, 19 Time synchronization, 13 Time-of-day synchronization, 29
U
UDP Restrictions, 18
UDP (acc. to RFC 768), 12 UDP connections, 17 UDP frame buffering, 18
V
Version history, 10 Virtual Private Network
Definition, 36 VPN, (Virtual Private Network)
Areas of application, 36 Cell protection concept, 37
W
Web diagnostics, 29 Web server, 14
CP 1543-1 Operating Instructions, 05/2017, C79000-G8976-C289-07

Index 67

Index

CP 1543-1

68

Operating Instructions, 05/2017, C79000-G8976-C289-07

 Power supply module PS 25W 24VDC _Pr_ef_ac_e_______________

(6ES7505-0KA00-0AB0)

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs____________4_ _Ienr_treo_rrrua_pn_tds,_sdta_iatu_gsn_om_seti_scs_aalga_erm_s s_, ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

_Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

01/2013
A5E31825931-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31825931-AA  01/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Preface

Purpose of this documentation
This manual supplements the system manuals:
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)
 ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214)
Functions that concern the systems in general are described in these manuals.
The information in this manual along with the system manuals/function manuals will enable you to commission the systems.

Conventions

The term "CPU" as used in this manual refers to both the central modules of the S7-1500 automation system and to the interface modules of the ET 200MP distributed I/O system. Please observe notes labeled as follows:
Note A note contains important information about the product described in the documentation and its use, or about a specific section of the documentation to which you should pay particular attention.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

4

Manual, 01/2013, A5E31825931-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Control and display elements.......................................................................................................11

3 Wiring ...................................................................................................................................................... 13

3.1

Wiring the power supply module..................................................................................................13

4 Parameters .............................................................................................................................................. 15

4.1

Parameters...................................................................................................................................15

5 Interrupts, diagnostic alarms, error and status messages........................................................................ 17

5.1

Status and error displays .............................................................................................................17

5.2

Diagnostic alarms ........................................................................................................................19

5.3

Interrupts ......................................................................................................................................21

6 Technical specifications........................................................................................................................... 23

A Dimensional drawing ............................................................................................................................... 25

A.1

Dimensional drawing....................................................................................................................25

B Parameter data record............................................................................................................................. 27

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

5

Table of contents

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

6

Manual, 01/2013, A5E31825931-AA

Documentation guide

1

Introduction

The modular documentation of the S7-1500 and ET 200MP system families covers all aspects of your automation system.
The documentation consists of different modules that are divided into system manuals, function manuals and manuals.
The following table provides an overview of the documents that complement this manual. Information in the manual overrides specifications in the system manual.

Overview of the documentation for the power supply module PS 25W 24VDC
The table below lists additional documentation for using the PS 25W 24VDC benötigen. power supply module.

Table 1- 1 Documentation for the power supply module PS 25W 24VDC

Topic

Documentation

Most important contents

System description

System manual

·

S7-1500 automation system (http://support.automation.siemens.com/WW/vie

·

w/en/59191792)

·

System manual

·

ET 200MP distributed I/O system

·

(http://support.automation.siemens.com/WW/vie

w/en/59193214)

·

Application planning Installation Wiring Commissioning Standards and approvals Electromagnetic compatibility

· Mechanical and climatic ambient conditions

Designing interference-free controllers

Function manual

·

Designing interference-free controllers (http://support.automation.siemens.com/WW/vie

·

w/en/59193566)

·

Basics Electromagnetic compatibility Lightning protection

System diagnostics

Function manual

·

System diagnostics

·

(http://support.automation.siemens.com/WW/vie

w/en/59192926)

Overview
Hardware/software diagnostics evaluation

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

7

Documentation guide

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

8

Manual, 01/2013, A5E31825931-AA

Product overview

2.1

Properties

Order number 6ES7505-5KA00-0AB0

View of the module

2

Figure 2-1 View of the PS 25W 24VDC module

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

9

Product overview 2.1 Properties

Properties

The PS 25W 24VDC power supply module permits the use of additional modules. The power supply module has the following properties:  Technical properties
­ Rated input voltage 24 V DC (SELV) ­ Output power 25 W ­ Mains buffering ­ Functional electrical isolation from the bus  Supported functions ­ Firmware update ­ Identification data I&M0 to I&M4 ­ Configuring in RUN ­ Diagnostic alarms ­ Diagnostic interrupts

Accessories

The following components are supplied with the power supply module:  Power connector  U connector These components are also available as spare parts.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

10

Manual, 01/2013, A5E31825931-AA

Product overview 2.2 Control and display elements

2.2

Control and display elements

The following figure shows the control and connection elements of the PS 25W 24VDC behind the front cover as well as the power connector.





 
 LED displays indicating the current operating state and diagnostic status of the PS  On/off switch  Connection for the power supply by means of the power connector  Power connector, inserted in delivery state
Figure 2-2 View of the PS 25W 24VDC (without front cover) and of the power connector

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

11

Product overview 2.2 Control and display elements

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

12

Manual, 01/2013, A5E31825931-AA

Wiring

3

3.1

Wiring the power supply module

Mains connection
WARNING Installation instructions Risk of death or serious injury. Observe the general installation instructions applicable in your country when wiring the power supply module. Fuse the power cables according to their conductor cross-section.
The following applies to mains connection of the power supply module using the power connector:  The power connector provides connection of the input voltage to the power supply
module with touch protection.  The power connector provides permanent wiring.  The power connector features an internal strain relief.  The power connector ensures reverse polarity protection.  A coding element is used on the power connector to assign it to a specific type of power
supply module. A connector coded for 230V AC cannot be inserted into a 24 V DC power supply module.
DANGER Do not manipulate or omit the coding element Changes to the coding element can result in dangerous states in your plant and/or damage to the outputs of the I/O modules. In order to avoid damage, do not manipulate the coding. The coding element may not be omitted.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

13

Wiring 3.1 Wiring the power supply module

Cables

You need flexible cables to wire power to the power supply module. The conductor crosssection must be 1.5 mm2 (AWG: 16). The diameter of a 3 x 1.5 mm2 sheathed cable can be no more than 8.5 mm. The ground conductor of flexible cables must be longer than the two other conductors. The fusing must meet the requirements of the corresponding control cabinet.
DANGER
Input voltage
Risk of death or serious injury.
The input voltage of the PS 25W 24VDC must be supplied as safety extra low voltage (SELV).

Reference

Information on installation of the power supply module and wiring of the power connector is available in the system manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792).
Siemens recommends the use of devices from the SITOP family of products for applications with load power supplies. Wiring information is available in the documentation for the load power supply.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

14

Manual, 01/2013, A5E31825931-AA

Parameters

4

4.1

Parameters

Parameters of the PS 25W 24VDC
For parameter assignment of the module with STEP 7, you specify the properties of the module using various parameters. The table below shows the configurable parameters.
When the parameters are assigned in the user program, they are transferred to the module with the WRREC instruction (configuring in RUN), see section Parameter data record (Page 27).

Table 4- 1 Configurable parameters and their defaults

Parameters Diagnostic/maintenance · Supply voltage missing
· Switch position Off

Value range
Yes/No Yes/No

Default
No No

Configuring in RUN
Yes Yes

Note Diagnostic alarms without supply voltage
Even when there is no supply voltage or when the On/Off switch is set to "Off", the power supply module of the CPU or the IM is supplied with enough voltage by the backplane bus that it can generate a diagnostic alarm. The entire diagnostic functionality is still available.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

15

Parameters 4.1 Parameters

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

16

Manual, 01/2013, A5E31825931-AA

Interrupts, diagnostic alarms, error and status messages

5

5.1

Status and error displays

Introduction

Diagnostics by means of LEDs is a basic tool for troubleshooting. Usually, you can pinpoint the source of error more precisely by analyzing the module status information in STEP 7, or in the diagnostic buffer of the CPU. These locations contain the corresponding error information in plain text.

LED displays

The following figure shows the LED displays (status and error displays) of the PS 25W 24VDC.







 RUN-LED  ERROR-LED  MAINT-LED
Figure 5-1 LED displays of the PS 25W 24VDC

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

17

Interrupts, diagnostic alarms, error and status messages 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays. You can find remedial measures for diagnostic alarms in the section Diagnostic alarms (Page 19).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

RUN

LED ERROR

Off

Off

On

On

Not Flashing relevant

Off

Flashing

Not

Off

relevant

Flashing Flashing

MAINT Off
On Not relevant Not relevant
On
Flashing

Meaning
OFF, PS supplies no bus voltage · External error and diagnostics is not enabled · PS not supplied in the system, no supply voltage
connected to the PS and no supply voltage connected to CPU/IM.
Startup, all LED displays illuminate briefly after system startup or module startup after firmware update. Startup, PS supplies bus voltage, PS waiting for parameter assignment
Error, PS supplies no bus voltage · No supply voltage and diagnostics not enabled · Internal error
Maintenance demanded, PS supplies no bus voltage · Switch is off; supply is present and diagnostics is
enabled
Malfunction LED displays flash permanently

Remedy
Supply PS with voltage Check supply voltage Switch on PS
-
-
Evaluate diagnostic alarms and carry out appropriate remedial measures, see section Diagnostic alarms (Page 19) Switch on PS
Replace PS

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

18

Manual, 01/2013, A5E31825931-AA

Interrupts, diagnostic alarms, error and status messages 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Diagnostic alarms
The following table shows the meaning of the diagnostic alarms and possible remedial measures for the respective cause.
One of the following "LED images" indicates directly on the PS that a diagnostic alarm was triggered.
 The red ERROR-LED is flashing.
Indicates external or internal errors.
 The yellow MAINT-LED is lit.
Maintenance; a maintenance request is active.
 All three LEDs are flashing permanently
The PS is in "Defective" state.
In STEP 7, the diagnostic results are displayed in plain text by means of the online and diagnostic view. You can read the diagnostic data records by means of the "RDREC" instruction.

Table 5- 2 Diagnostic alarms, their meaning and remedies

Diagnostic alarm
External error Supply voltage missing

Error code Dec.
266D

Internal error Overtemperature 5D

Overvoltage backplane bus

267D

Low

281D

voltage/overload in

the power segment

Error in the power 282D segment

Meaning Hex.

Reacti Remedial measures on

010AH No supply voltage, or incorrect

1

insertion of the power connector

into the PS.

Check the supply voltage.

0005H Overtemperature on the printed 3 circuit board.

010BH High EMC interference or a

3

defective PS, CPU or IM inserted.

0119H A voltage dip below the valid limit 2 has been detected in the power segment to the right of the PS.
011AH PS or module to the right of the 2 PS is defective.

Check PS load. Isolate PS from mains. Wait one minute before you power on the PS again.
Eliminate electromagnetic interference. Check inserted modules and bus connectors. Isolate PS from mains. Wait one minute before you power on the PS again.
Check the modules in the affected segment; replace if necessary. Switch off the PS at the switch, then switch on again.
Replace the defective module. Switch off the PS at the switch, then switch on again.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

19

Interrupts, diagnostic alarms, error and status messages 5.2 Diagnostic alarms

Diagnostic alarm
Safety shutdown
Maintenance Switch turned off Malfunction Module failure

Error code Dec. 285D
268D
256D

Meaning

Hex. 011DH

Reliable operation of the module is no longer guaranteed.

Reacti Remedial measures on

3

Check ambient conditions. Isolate PS

from mains. Wait one minute before

you power on the PS again.

010CH The PS is switched off.

1

Switch on PS.

0100H PS failure.

3

Replace PS.

External errors, internal errors and malfunctions
 External errors occur outside the PS. In the parameterization, specify whether or not an external error can trigger a diagnostic alarm. By default, external errors do not trigger diagnostic alarms.
 Internal errors occur inside the PS. If still possible, an internal error always triggers a diagnostic alarm.
 A malfunction is a static state; the PS must be sent in for repair. If still possible, a defect always triggers a diagnostic alarm.

Explanation of the reactions
1. No power at the power segment to the right of the PS. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus.
2. The modules to the right of the PS are switched off.
3. The PS is switched off retentively. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus. You cannot switch on the module unless you have eliminated the error and disconnected power to the PS for approximately one minute.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

20

Manual, 01/2013, A5E31825931-AA

Interrupts, diagnostic alarms, error and status messages 5.3 Interrupts

5.3

Interrupts

What is a diagnostic interrupt? You can determine reactions to internal or external errors in the user program, by programming a diagnostic interrupt which interrupts cyclic program execution on the CPU and triggers the diagnostic interrupt OB (OB82). The event which led to the interrupt is entered in the start information of the OB82.
Trigger of a diagnostic interrupt Events that can trigger a diagnostic alarm can also trigger a diagnostic interrupt:  Supply voltage missing  Overtemperature  Overvoltage on the backplane bus  Low voltage/overload in the power segment  Error in the power segment  Safety shutdown  Switch position Off  Malfunction
Reactions to a diagnostic interrupt You can find the CPU reaction to a diagnostic interrupt in the function manual System diagnostics (http://support.automation.siemens.com/WW/view/en/59192926). Detailed information on the error event is available in the diagnostic interrupt OB by executing the "RALRM" instruction (read additional interrupt information) and in the STEP 7 Online Help.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

21

Interrupts, diagnostic alarms, error and status messages 5.3 Interrupts

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

22

Manual, 01/2013, A5E31825931-AA

Technical specifications

6

Technical specifications of the PS 25W 24VDC

Product type designation General information Hardware version Firmware version Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version FH technology Redundancy · Capable of redundancy
· For increasing performance Supply voltage · Rated value (DC)
· Valid range low limit (DC)
· Valid range high limit (DC)
· Reverse polarity protection
· Short-circuit protection Power failure backup · Power failure backup time Input current · Rated value at 24 V DC Output current · Short-circuit protection Power · Power feed to the backplane bus Power loss · Power loss at rated conditions Interrupts/diagnostics/status information · Status display

6ES7505-0KA00-0AB0 PS 25W 24VDC E01 V1.0.0 V12.0 / V12.0 V5.5 SP3 or higher
Yes Yes
24 V; SELV static 19.2 V, dynamic 18.5 V static 28.8 V, dynamic 30.2 V Yes Yes
20 ms
1.3 A
Yes
25 W
6.2 W
Yes

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

23

Technical specifications

Electrical isolation · Primary/secondary
Insulation Insulation tested with EMC Immunity to surge voltages · on the supply lines in accordance with IEC
61000-4-5
Degree of protection and protection class Degree of protection to EN 60529 · Protection class Dimensions · Width · Height · Depth Weights · Weight, approx.

6ES7505-0KA00-0AB0
Yes; electrical isolation for max. 60 V AC/75 V DC (basic insulation)
707 V DC (type test)
Yes; +/- 1 kV (according to IEC 61000-4-5; 1995; symm. surge), +/- 2 kV (according to IEC 610004-5; 1995; unsymm. surge), no external protective circuit required
IP20 3; with ground conductor
35 mm 147 mm 129 mm
350 g

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

24

Manual, 01/2013, A5E31825931-AA

Dimensional drawing

A

A.1

Dimensional drawing

Dimensional drawing of the PS 25W 24VDC This appendix includes the dimensional drawing of the power supply module mounted on a mounting rail and with shielding clamp. You must take into consideration the dimensions when mounting in cabinets, in switch rooms, etc.


   

 
Figure A-1 Dimensional drawing of the PS 25W 24VDC module

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

25

Dimensional drawing A.1 Dimensional drawing
This drawing shows the dimensions of the module with open front cover.
 
Figure A-2 Dimensional drawing of the PS 25W 24VDC module from side with open front cover

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

26

Manual, 01/2013, A5E31825931-AA

Parameter data record

B

Parameter assignment in the user program You have the option to re-parameterize the power supply module in RUN mode of CPU.
Changing parameters in RUN mode The parameters for the power supply module are contained in data record 0. You can use the WRREC instruction to transfer the configurable parameters to the power supply module. The parameters assigned in STEP 7 are not changed permanently in the CPU, which means the parameters assigned in STEP 7 are valid again after a restart.
Output parameter RET_VAL The power supply module ignores errors that occur during transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the RET_VAL output parameter. If no error occurs, the length of the data actually transferred is entered in RET_VAL. RET_VAL is 4 bytes long and structured as follows:  Byte1: Function_Num, general error code  Byte2: Error_Decode, location of the error detection  Byte3: Error_Code_1, error detection  Byte4: Error_Code_2, manufacturer-specific expansion of the error detection
The description of the WRREC instruction and the general error codes are available in the STEP 7 online help.
Module-specific errors are displayed by means of Error_Code_1 = 224D or Error_Code_1 = 225D.

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

Manual, 01/2013, A5E31825931-AA

27

Parameter data record

Manufacturer-specific expansions of the error detection of the WRREC instruction have the following meaning:

Table B- 1 Manufacturer-specific expansions of the error detection of the WRREC instruction

Error_Code 1
224D Error in the data record header

Error_Code 2 1 D
2 D

225 D

1 D

Error in the net data

16 D

(parameters) entered in the

data record

Meaning
The version entered in the data record header is not supported by the module or reserved bits of the version are set.
The net length entered in the data record header is incorrect.
Diagnostic interrupt enable is incorrect
Reserved parameters are not 0

Data record structure
The following figure shows the structure of the data record 0.
 A fixed bit pattern is entered in byte 0. It indicates the version of the data record structure. Each time a data record is written, the module checks the written data and accepts only data records with major version 1.
 Byte 1 specifies the maximum data length that can be used for parameter data.
 Byte 2 contains the parameter data.
 Bytes 3 to 11 are reserved.
To enable a parameter in byte 2, set the corresponding bit to "1". The corresponding diagnostics is then activated, for example, for supply voltage monitoring. If you set the corresponding bit to "0", the diagnostics is deactivated.
You are not permitted to change byte 0, byte 1 or bytes 3 to 11.

%\WH %\WH %\WH

 
 


0LQRUYHUVLRQ 0DMRUYHUVLRQ
/HQJWKRIWKHSDUDPHWHUGDWD 'DWDOHQJWKE\WHV
(QDEOHGLDJQRVWLFV 'LDJQRVWLFVIRUVXSSO\YROWDJHPRQLWRULQJ 'LDJQRVWLFVIRUVZLWFKSRVLWLRQ


%\WHVWR        
Figure B-1 Structure of data record 0

Power supply module PS 25W 24VDC (6ES7505-0KA00-0AB0)

28

Manual, 01/2013, A5E31825931-AA

 Power supply module PS 60W

_Pr_ef_ac_e_______________

24/48/60VDC (6ES7505-0RA00-0AB0) _Do_c_um_e_n_tat_io_n _gu_id_e_______1_

SIMATIC
S7-1500/ET 200MP Power supply module PS 60W 24/48/60VDC (6ES7505-0RA000AB0)
Manual

_Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs____________4_ _Ienr_treo_rrrua_pn_tds,_sdta_iatu_gsn_oa_slatir_cm_asla_rm_s_, ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_

_Di_m_en_s_ion_a_l d_ra_w_in_g _______A_

_Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

01/2013
A5E31826009-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31826009-AA  01/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Preface

Purpose of the documentation
This manual complements the system manuals:
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)
 ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214)
Functions that generally concern the systems are described in these manuals.
The information provided in this manual and in the system/function manuals support you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product, or on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

4

Manual, 01/2013, A5E31826009-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Operating and display elements ..................................................................................................11

3 Wiring ...................................................................................................................................................... 13

3.1

Wiring the power supply module..................................................................................................13

4 Parameters .............................................................................................................................................. 15

4.1

Parameters...................................................................................................................................15

5 Interrupts, diagnostic alarms, error and status alarms ............................................................................. 17

5.1

Status and error displays .............................................................................................................17

5.2

Diagnostic alarms ........................................................................................................................19

5.3

Interrupts ......................................................................................................................................21

6 Technical specifications........................................................................................................................... 23

A Dimensional drawing ............................................................................................................................... 25

A.1

Dimensional drawing....................................................................................................................25

B Parameter data record............................................................................................................................. 27

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

5

Table of contents

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

6

Manual, 01/2013, A5E31826009-AA

Documentation guide

1

Introduction

The modular documentation of the S7-1500 and ET 200MP system families covers all aspects of your automation system.
The documentation consists of different modules that are divided into system manuals, function manuals and manuals.
The following table provides an overview of the documents that complement this manual. Information in the manual overrides specifications in the system manual.

Overview of the documentation for the power supply module PS 60W 24/48/60VDC
The table below lists additional documentation for using the PS 60W 24/48/60VDC benötigen. power supply module.

Table 1- 1 Documentation for the power supply module PS 60W 24/48/60VDC

Topic

Documentation

Most important contents

System description

System manual

· Application planning

S7-1500 automation system (http://support.automation.siemens.com/WW/vie

·

Installation

w/en/59191792)

· Wiring

System manual

· Commissioning

ET 200MP distributed I/O system

· Standards and approvals

(http://support.automation.siemens.com/WW/vie

w/en/59193214)

· Electromagnetic

compatibility

· Mechanical and climatic ambient conditions

Designing

Function manual

· Basics

interference-free controllers

Designing interference-free controllers (http://support.automation.siemens.com/WW/vie

·

Electromagnetic

w/en/59193566)

compatibility

· Lightning protection

System diagnostics

Function manual

· Overview

System diagnostics

· Hardware/software

(http://support.automation.siemens.com/WW/vie

diagnostics evaluation

w/en/59192926)

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

7

Documentation guide

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

8

Manual, 01/2013, A5E31826009-AA

Product overview

2.1

Properties

Order number 6ES7505-0RA00-0AB0

View of the module

2

Figure 2-1 View of the PS 60W 24/48/60VDC module

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

9

Product overview 2.1 Properties

Properties

The PS 60W 24/48/60VDC power supply module supports the use of additional modules. The power supply module has the following properties:  Technical properties
­ Rated input voltages 24/48/60 VDC ­ Output power 60 W ­ Power failure backup ­ Electrical isolation to the bus, safe electrical separation to EN 61131-2  Supported functions ­ Firmware update ­ Identification data I&M0 to I&M4 ­ Configuration in RUN ­ Diagnostic alarms ­ Diagnostic interrupts

Accessories

The following components are supplied with the power supply module:  Power connector  U connector These components are also available as spare parts.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

10

Manual, 01/2013, A5E31826009-AA

Product overview 2.2 Operating and display elements

2.2

Operating and display elements

The following figure shows the control and connection elements of the PS 60W 24/48/60VDC behind the front panel as well as the power connector.

 

 
 LED displays indicating the current operating state and diagnostic status of the PS  On/off switch  Power inlet for the power connector  Power connector; inserted in delivery state
Figure 2-2 View of the PS 60W 24/48/60VDC (without front panel) and of the power connector

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

11

Product overview 2.2 Operating and display elements

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

12

Manual, 01/2013, A5E31826009-AA

Wiring

3

3.1

Wiring the power supply module

Mains connection
WARNING Installation instructions Risk of death or serious injury. Observe the general installation instructions applicable in your country when wiring the power supply module. Fuse the power cables according to their conductor cross-section.
The following applies to mains connection of the power supply module using the power connector:  The power connector provides connection of the input voltage to the power supply
module with touch protection.  The power connector provides permanent wiring.  The power connector features an internal strain relief.  The power connector ensures reverse polarity protection.  A coding element is used on the power connector to assign it to a specific type of power
supply module. A connector coded for 230V AC cannot be inserted into a 24 V DC power supply module.
DANGER Do not manipulate or omit the coding element Changes to the coding element can result in dangerous states in your plant and/or damage to the outputs of the I/O modules. In order to avoid damage, do not manipulate the coding. The coding element may not be omitted.

Cables

You need flexible cables to wire power to the power supply module. The conductor crosssection must be 1.5 mm2 (AWG: 16). The diameter of a 3 x 1.5 mm2 sheathed cable can be no more than 8.5 mm. The ground conductor of flexible cables must be longer than the two other conductors. The fusing must meet the requirements of the corresponding control cabinet.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

13

Wiring 3.1 Wiring the power supply module

Reference

Information on installation of the power supply module and wiring of the power connector is available in the system manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792).
Siemens recommends the use of devices from the SITOP family of products for applications with load power supplies. Wiring information is available in the documentation for the load power supply.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

14

Manual, 01/2013, A5E31826009-AA

Parameters

4

4.1

Parameters

Parameters of the PS 60W 24/48/60VDC
Specify the module properties at the various parameters in the course of your STEP 7 parameterization. The following table lists the configurable parameters.
The parameters you define in the user program are transferred to the module by means of WRREC instruction (Configuration in RUN); see chapter Parameter data record (Page 27).

Table 4- 1 Configurable parameters and their defaults

Parameters Diagnostic/maintenance · Supply voltage missing
· Switch position Off

Range of values
Yes/No Yes/No

Defaults
No No

Configuration in RUN
Yes Yes

Note
Diagnostic alarms without supply voltage
Regardless of whether the supply voltage is missing or the On/Off switch is set to "Off", the power supply module of the CPU or the IM is still capable of generating diagnostic alarms because it is provided sufficient power from the backplane bus. The entire diagnostic functionality is still available.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

15

Parameters 4.1 Parameters

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

16

Manual, 01/2013, A5E31826009-AA

Interrupts, diagnostic alarms, error and status alarms

5

5.1

Status and error displays

Introduction

Diagnostics by means of LEDs is a basic tool for troubleshooting. Usually, you can pinpoint the source of error more precisely by analyzing the module status information in STEP 7, or in the diagnostic buffer of the CPU. These locations contain the corresponding error information in plain text.

LED displays

The following figure shows the LED displays (status and error displays) of PS 60W 24/48/60VDC.







 RUN LED  ERROR LED  MAINT LED
Figure 5-1 LED displays of PS 60W 24/48/60VDC

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

17

Interrupts, diagnostic alarms, error and status alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays. You can find remedial measures for diagnostic alarms in chapter Diagnostic alarms (Page 19).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

LED

Meaning

RUN

ERROR MAINT

OFF; PS returns no bus voltage

Off

Off

Off · External error; diagnostics is disabled

· PS not powered in the system, no supply voltage at the PS and CPU/IM.

On

On

Not Flashing relevant

Off

Flashing

On
Not relevant

Startup; all LED displays are lit briefly after system startup, or during module restart after firmware update.
Startup, PS returns bus voltage, PS waiting for parameterization

Not relevant

Error, PS supplies no bus voltage
· Supply voltage missing and diagnostics is enabled

· Internal error

Not

Maintenance request, PS returns no bus voltage

Off

relevant

On · Switch is off; power is present and diagnostics is

enabled

Malfunction Flashing Flashing Flashing LEDs flash persistently

Remedy
Switch on power to the PS Check the supply voltage Switch on PS
-
-
Evaluate diagnostic alarms and take appropriate remedial measures; see chapter Diagnostic alarms (Page 19) Switch on PS
Replace PS

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

18

Manual, 01/2013, A5E31826009-AA

Interrupts, diagnostic alarms, error and status alarms 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Diagnostic alarms
The following table shows the meaning of the diagnostic alarms and possible remedial measures for the respective cause.
One of the following "LED images" indicates directly on the PS that a diagnostic alarm was triggered.
 The red ERROR-LED is flashing.
Indicates external or internal errors.
 The yellow MAINT-LED is lit.
Maintenance; a maintenance request is active.
 All three LEDs are flashing permanently
The PS is in "Defective" state.
In STEP 7, the diagnostic results are displayed in plain text by means of the online and diagnostic view. You can read the diagnostic data records by means of the "RDREC" instruction.

Table 5- 2 Diagnostic alarms, their meaning and remedies

Diagnostic alarm
External error Supply voltage missing

Error code Dec.
266D

Internal error Overtemperature 5D

Overvoltage backplane bus

267D

Low

281D

voltage/overload in

the power segment

Error in the power 282D segment

Meaning Hex.

Reacti Remedial measures on

010AH No supply voltage, or incorrect

1

insertion of the power connector

into the PS.

Check the supply voltage.

0005H Overtemperature on the printed 3 circuit board.

010BH High EMC interference or a

3

defective PS, CPU or IM inserted.

0119H A voltage dip below the valid limit 2 has been detected in the power segment to the right of the PS.
011AH PS or module to the right of the 2 PS is defective.

Check PS load. Isolate PS from mains. Wait one minute before you power on the PS again.
Eliminate electromagnetic interference. Check inserted modules and bus connectors. Isolate PS from mains. Wait one minute before you power on the PS again.
Check the modules in the affected segment; replace if necessary. Switch off the PS at the switch, then switch on again.
Replace the defective module. Switch off the PS at the switch, then switch on again.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

19

Interrupts, diagnostic alarms, error and status alarms 5.2 Diagnostic alarms

Diagnostic alarm
Safety shutdown
Maintenance Switch turned off Malfunction Module failure

Error code Dec. 285D
268D
256D

Meaning

Hex. 011DH

Reliable operation of the module is no longer guaranteed.

Reacti Remedial measures on

3

Check ambient conditions. Isolate PS

from mains. Wait one minute before

you power on the PS again.

010CH The PS is switched off.

1

Switch on PS.

0100H PS failure.

3

Replace PS.

External errors, internal errors and malfunctions
 External errors occur outside the PS. In the parameterization, specify whether or not an external error can trigger a diagnostic alarm. By default, external errors do not trigger diagnostic alarms.
 Internal errors occur inside the PS. If still possible, an internal error always triggers a diagnostic alarm.
 A malfunction is a static state; the PS must be sent in for repair. If still possible, a defect always triggers a diagnostic alarm.

Explanation of the reactions
1. No power at the power segment to the right of the PS. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus.
2. The modules to the right of the PS are switched off.
3. The PS is switched off retentively. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus. You cannot switch on the module unless you have eliminated the error and disconnected power to the PS for approximately one minute.

See also

S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

20

Manual, 01/2013, A5E31826009-AA

Interrupts, diagnostic alarms, error and status alarms 5.3 Interrupts

5.3

Interrupts

What is a diagnostic interrupt? You can determine reactions to internal or external errors in the user program, by programming a diagnostic interrupt which interrupts cyclic program execution on the CPU and triggers the diagnostic interrupt OB (OB82). The event which led to the interrupt is entered in the start information of the OB82.
Trigger of a diagnostic interrupt Events that can trigger a diagnostic alarm can also trigger a diagnostic interrupt:  Supply voltage missing  Overtemperature  Overvoltage on the backplane bus  Low voltage/overload in the power segment  Error in the power segment  Safety shutdown  Switch position Off  Malfunction
Reactions to a diagnostic interrupt You can find the CPU reaction to a diagnostic interrupt in the function manual System diagnostics (http://support.automation.siemens.com/WW/view/en/59192926). Detailed information on the error event is available in the diagnostic interrupt OB by executing the "RALRM" instruction (read additional interrupt information) and in the STEP 7 Online Help.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

21

Interrupts, diagnostic alarms, error and status alarms 5.3 Interrupts

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

22

Manual, 01/2013, A5E31826009-AA

Technical specifications

6

Technical specifications of the PS 60W 24/48/60VDC

Product type designation General information Hardware version Firmware version Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version FH technology Redundancy · Capable of redundancy
· For increasing performance Supply voltage · Rated value (DC)
· Valid range low limit (DC)
· Valid range high limit (DC)
· Reverse polarity protection
· Short-circuit protection Power failure backup · Power failure backup time Input current · Rated value at 24 V DC
· Rated value at 48 V DC
· Rated value at 60 V DC Output current · Short-circuit protection Power · Power feed to the backplane bus Power loss · Power loss at rated conditions

6ES7505-0RA00-0AB0 PS 60W 24/48/60V DC E01 V1.0.0 V12.0 / V12.0 V5.5 SP3 or higher
Yes Yes
24 V / 48 V / 60 V static 19.2 V, dynamic 18.5 V static 72 V, dynamic 75.5 V Yes Yes
20 ms
3 A 1.5 A 1.2 A
Yes
60 W
12 W

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

23

Technical specifications

Interrupts/diagnostics/status information · Status display Electrical isolation · Primary/secondary
Insulation Insulation tested with EMC Immunity to surge voltages · on the supply lines in accordance with IEC
61000-4-5
Degree of protection and protection class Degree of protection to EN 60529 · Protection class Dimensions · Width · Height · Depth Weights · Weight, approx.

6ES7505-0RA00-0AB0
Yes
Yes; electrical isolation for 230 V AC (reinforced insulation)
2500 V DC 2s (routine test)
Yes; +/- 1 kV (according to IEC 61000-4-5; 1995; symm. surge), +/- 2 kV (according to IEC 610004-5; 1995; unsymm. surge), no external protective circuit required
IP20 1; with ground conductor
70 mm 147 mm 129 mm
600 g

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

24

Manual, 01/2013, A5E31826009-AA

Dimensional drawing

A

A.1

Dimensional drawing

Dimensional drawing of PS 60W 24/48/60VDC This appendix includes the dimensional drawing of the power supply module that is installed on a mounting rail with shielding bracket. Take the dimensions into account for installation in cabinets, control rooms, etc.


   

 
Figure A-1 Dimensional drawing of PS 60W 24/48/60VDC module

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

25

Dimensional drawing A.1 Dimensional drawing
This figure shows the dimensions of the module with open front panel.
 
Figure A-2 Dimensional drawing of PS 60W 24/48/60VDC module, side view with open front panel

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

26

Manual, 01/2013, A5E31826009-AA

Parameter data record

B

Parameter assignment in the user program You have the option to re-parameterize the power supply module in RUN mode of CPU.
Changing parameters in RUN mode The parameters for the power supply module are contained in data record 0. You can use the WRREC instruction to transfer the configurable parameters to the power supply module. The parameters assigned in STEP 7 are not changed permanently in the CPU, which means the parameters assigned in STEP 7 are valid again after a restart.
Output parameter RET_VAL The power supply module ignores errors that occur during transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the RET_VAL output parameter. If no error occurs, the length of the data actually transferred is entered in RET_VAL. RET_VAL is 4 bytes long and structured as follows:  Byte1: Function_Num, general error code  Byte2: Error_Decode, location of the error detection  Byte3: Error_Code_1, error detection  Byte4: Error_Code_2, manufacturer-specific expansion of the error detection
The description of the WRREC instruction and the general error codes are available in the STEP 7 online help.
Module-specific errors are displayed by means of Error_Code_1 = 224D or Error_Code_1 = 225D.

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

Manual, 01/2013, A5E31826009-AA

27

Index

Manufacturer-specific expansions of the error detection of the WRREC instruction have the following meaning:

Table B- 1 Manufacturer-specific expansions of the error detection of the WRREC instruction

Error_Code 1
224D Error in the data record header

Error_Code 2 1 D
2 D

225 D

1 D

Error in the net data

16 D

(parameters) entered in the

data record

Meaning
The version entered in the data record header is not supported by the module or reserved bits of the version are set.
The net length entered in the data record header is incorrect.
Diagnostic interrupt enable is incorrect
Reserved parameters are not 0

Data record structure
The following figure shows the structure of the data record 0.
 A fixed bit pattern is entered in byte 0. It indicates the version of the data record structure. Each time a data record is written, the module checks the written data and accepts only data records with major version 1.
 Byte 1 specifies the maximum data length that can be used for parameter data.
 Byte 2 contains the parameter data.
 Bytes 3 to 11 are reserved.
To enable a parameter in byte 2, set the corresponding bit to "1". The corresponding diagnostics is then activated, for example, for supply voltage monitoring. If you set the corresponding bit to "0", the diagnostics is deactivated.
You are not permitted to change byte 0, byte 1 or bytes 3 to 11.

%\WH %\WH %\WH

 
 


0LQRUYHUVLRQ 0DMRUYHUVLRQ
/HQJWKRIWKHSDUDPHWHUGDWD 'DWDOHQJWKE\WHV
(QDEOHGLDJQRVWLFV 'LDJQRVWLFVIRUVXSSO\YROWDJHPRQLWRULQJ 'LDJQRVWLFVIRUVZLWFKSRVLWLRQ


%\WHVWR        
Figure B-1 Structure of data record 0

Power supply module PS 60W 24/48/60VDC (6ES7505-0RA00-0AB0)

28

Manual, 01/2013, A5E31826009-AA

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RPBre0fa0ce-0AB0)

Documentation guide

1

SIMATIC
S7-1500/ET 200MP Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Product overview

2

Wiring

3

Parameters

4

Interrupts, diagnostic alarms, error and status alarms

5

Manual

Technical specifications

6

Dimensional drawing

A

Parameter data record

B

01/2019
A5E39450002-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E39450002-AB  06/2019 Subject to change

Copyright © Siemens AG 2017 - 2019. All rights reserved

Preface

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500/ET 200MP Automation System (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Functions that generally relate to the system are described in this manual.
The information provided in this manual and in the system/function manuals support you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Also observe notes marked as follows:
Note
A note contains important information on the product described in the documentation, on the handling of the product, or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place.
Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

3

Preface
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109741045).

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

4

Manual, 01/2019, A5E39450002-AB

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Product overview .................................................................................................................................. 10

2.1

Properties ................................................................................................................................ 10

2.2

Operating and display elements .............................................................................................12

3 Wiring ................................................................................................................................................... 13

3.1

Wiring the power supply module.............................................................................................13

4 Parameters ........................................................................................................................................... 15

4.1

Parameters .............................................................................................................................15

5 Interrupts, diagnostic alarms, error and status alarms............................................................................ 16

5.1

Status and error displays ........................................................................................................16

5.2

Diagnostic alarms ...................................................................................................................18

5.3

Interrupts .................................................................................................................................19

6 Technical specifications ........................................................................................................................ 20

A Dimensional drawing............................................................................................................................. 22

B Parameter data record .......................................................................................................................... 24

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, the CPU 1516pro-2 PN based on SIMATIC S7-1500 and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. For CPU 1516pro-2 PN you use the corresponding operating instructions. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

6

Manual, 01/2019, A5E39450002-AB

Documentation guide

General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

7

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

8

Manual, 01/2019, A5E39450002-AB

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independently of the TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 Localization of the CPU by means of LED flashing
 Reading out CPU error information
 Reading the CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

9

Product overview

2.1

Properties

Order number
6ES7505-0RB00-0AB0

View of the module

2

Figure 2-1 View of the PS 60W 24/48/60VDC HF module

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

10

Manual, 01/2019, A5E39450002-AB

Product overview 2.1 Properties

Properties

The PS 60W 24/48/60VDC HF power supply module supports the use of additional modules. Advantage over the "standard" power supply module: To save a higher volume of data retentively in case of power failure, the PS 60W 24/48/60VDC HF supplies power to the CPU. The PS 60W 24/48/60VDC HF has the following properties:  Technical properties
­ Rated input voltages 24/48/60 VDC ­ Output power 60 W ­ Power failure backup ­ Electrical isolation to the bus, safe electrical separation according to EN 61131-2 The module supports the following functions:

Table 2- 1 Version dependencies of the module functions

Function
Firmware update Identification data I&M0 to I&M4 Configuration in RUN Diagnostic alarms Diagnostic interrupts Only configurable on LH side next to interface module / CPU Extended retentivity of the CPU data area in the event of a power failure

Firmware version of the module
V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher V1.0.0 or higher
V1.0.0 or higher

Configuration software

STEP 7 (TIA Portal) as of
V14 SP1
X

GSD file in STEP 7 (TIA Portal) V12 or higher,
or STEP 7 V5.5 SP3 or higher

X

X

X

X

X

X

(PROFINET IO only)

X

---

(only with CPU S7-1500 firmware version V2.1 or
higher)

Accessories

The following components are supplied with the power supply module:  Power connector  U connector These components are also available as spare parts.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

11

Product overview 2.2 Operating and display elements

2.2

Operating and display elements

The following figure shows the control and connection elements of the PS 60W 24/48/60VDC HF behind the front panel as well as the power connector.

 LED displays indicating the current operating state and diagnostic status of the PS  On/off switch  Power inlet for the power connector  Power connector; inserted in delivery state
Figure 2-2 View of the PS 60W 24/48/60VDC HF (without front panel) and of the power connector

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

12

Manual, 01/2019, A5E39450002-AB

Wiring

3

3.1

Wiring the power supply module

Mains connection
WARNING Installation instructions Risk of death or serious injury. Observe the general installation instructions applicable in your country when wiring the power supply module. Fuse the power cables according to their conductor cross-section.
The following applies to mains connection of the power supply module using the power connector:  The power connector provides connection of the input voltage to the power supply
module with touch protection.  The power connector provides permanent wiring.  The power connector features an internal strain relief.  The power connector ensures reverse polarity protection.  A coding element is used on the power connector to assign it to a specific type of power
supply module. A connector coded for 230V AC cannot be inserted into a 24 V DC power supply module.
DANGER Do not manipulate or omit the coding element Changes to the coding element can result in dangerous states in your plant and/or damage to the outputs of the I/O modules. In order to avoid damage, do not manipulate the coding. The coding element may not be omitted.

Cables

You need flexible cables to wire power to the power supply module. The conductor crosssection must be 1.5 mm2 (AWG: 16). The diameter of a 3 x 1.5 mm2 sheathed cable can be no more than 8.5 mm. The ground conductor of flexible cables must be longer than the two other conductors. The fusing must meet the requirements of the corresponding control cabinet.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

13

Wiring 3.1 Wiring the power supply module

Reference

For information on installation of the power supply module and wiring of the power connector, refer to the system manual S7-1500/ET 200MP Automation System (https://support.industry.siemens.com/cs/ww/en/view/59191792).
Siemens recommends the use of devices from the SITOP family of products for applications with load power supplies. Wiring information is available in the documentation for the load power supply.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

14

Manual, 01/2019, A5E39450002-AB

Parameters

4

4.1

Parameters

Parameters of the PS 60W 24/48/60VDC HF
The PS 60W 24/48/60VDC HF is usually already integrated in the hardware catalog of STEP 7 (TIA Portal). In this case, STEP 7 (TIA Portal) checks the configured properties for plausibility during configuration.
However, you can also assign parameters to the module by means of a GSD file and the configuration software of any provider. The module does not check the validity of the configured properties until after the configuration has been loaded.
When you assign the module parameters in STEP 7, you use various parameters to specify the module properties. The following table lists the configurable parameters. The effective range of the parameters that can be set depends on the type of configuration. The following configurations are possible:
 Central operation with an S7-1500 CPU (with STEP 7 TIA Portal V14 SP1 or higher)
 Distributed operation on PROFINET IO in an ET 200MP system (with GSD file PROFINET IO in STEP 7 (TIA Portal) V12 or higher or STEP 7 V5.5 SP3 or higher
For parameter assignment in the user program, the parameters are transferred to the module using the WRREC instruction (reparameterization in RUN) and data records; see section Parameter data record (Page 24).

Table 4- 1 Configurable parameters and their defaults

Parameters

Range of values Default setting

Diagnostics / maintenance

· Supply voltage moni- Yes/No

No

toring *

· Switch position Off * Yes/No

No

Parameter assignment in RUN
Yes Yes

Scope with configuration software, e.g., STEP 7 (TIA Portal)

Integrated in the hardware cata-
log STEP 7 (TIA Portal) V14 SP1 or higher or
GSD file PROFINET IO

GSD file PROFIBUS DP

Module

---

Module

---

* In case of central operation of a S7-1500 CPU with firmware V2.1.0 or higher the diagnostics are not displayed in the diagnostics buffer to ensure reliable backup of the extended retentive data.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

15

Interrupts, diagnostic alarms, error and status alarms

5

5.1

Status and error displays

Introduction

Diagnostics by means of LEDs is a basic tool for troubleshooting. Usually, you can pinpoint the source of error more precisely by analyzing the module status information in STEP 7, or in the diagnostic buffer of the CPU. These locations contain the corresponding error information in plain text.

LED displays

The following figure shows the LED displays (status and error displays) of the PS 60W 24/48/60VDC HF.

 RUN LED  ERROR LED  MAINT LED
Figure 5-1 LED displays of PS 60W 24/48/60VDC HF

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

16

Manual, 01/2019, A5E39450002-AB

Interrupts, diagnostic alarms, error and status alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays. You can find remedial measures for diagnostic alarms in chapter Diagnostic alarms (Page 18).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

LED

Meaning

RUN Off

ERROR MAINT

Off

Off

OFF; PS returns no bus voltage · External error; diagnostics is disabled

· PS not powered in the system, no supply voltage at the PS and CPU/IM.

On Flashing
Off

On Not rele-
vant
Flashing

On
Not relevant

Startup; all LED displays are lit briefly after system startup, or during module restart after firmware update.
Startup, PS returns bus voltage, PS waiting for parameterization

Not relevant

Error, PS supplies no bus voltage
· Supply voltage missing and diagnostics is enabled

· Internal error

Not rele-

Maintenance request, PS returns no bus voltage

Off

vant

On · Switch is off; power is present and diagnostics is

enabled

Malfunction Flashing Flashing Flashing LEDs flash persistently

Remedy
Switch on power to the PS Check the supply voltage Switch on PS
-
-
Evaluate diagnostic alarms and take appropriate remedial measures; see chapter Diagnostic alarms (Page 18) Switch on PS
Replace PS

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

17

Interrupts, diagnostic alarms, error and status alarms 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Diagnostic alarms
The following table shows the meaning of the diagnostic alarms and possible remedial measures for the respective cause.
One of the following "LED images" indicates directly on the PS that a diagnostic alarm was triggered.
 The red ERROR-LED is flashing.
Indicates external or internal errors.
 The yellow MAINT-LED is lit.
Maintenance; a maintenance request is active.
 All three LEDs are flashing permanently
The PS is in "Defective" state.
In STEP 7, the diagnostic results are displayed in plain text by means of the online and diagnostic view. You can read the diagnostic data records by means of the "RDREC" instruction.

Table 5- 2 Diagnostic alarms, their meaning and remedies

Diagnostic alarm
External error Supply voltage missing

Error code Dec.
266D

Internal error Overtemperature 5D

Overvoltage back- 267D plane bus

Safety shutdown 285D

Maintenance Switch turned off Malfunction Module failure

268D 256D

Meaning Hex.

Reac- Remedial measures tion

010AH No supply voltage, or incorrect

1

insertion of the power connector

into the PS.

Check the supply voltage.

0005H Overtemperature on the printed 2 circuit board.
010BH High EMC interference or a defec- 2 tive PS, CPU or IM inserted.
011DH Reliable operation of the module 2 is no longer guaranteed.

Check PS load. Isolate PS from mains. Wait one minute before you power on the PS again.
Eliminate electromagnetic interference. Check inserted modules and bus connectors. Isolate PS from mains. Wait one minute before you power on the PS again.
Check ambient conditions. Isolate PS from mains. Wait one minute before you power on the PS again.

010CH The PS is switched off.

1

Switch on PS.

0100H PS failure.

3

Replace PS.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

18

Manual, 01/2019, A5E39450002-AB

Interrupts, diagnostic alarms, error and status alarms 5.3 Interrupts
External errors, internal errors and malfunctions
 External errors occur outside the PS. In the parameterization, specify whether or not an external error can trigger a diagnostic alarm. By default, external errors do not trigger diagnostic alarms.
 Internal errors occur inside the PS. If still possible, an internal error always triggers a diagnostic alarm.
 A malfunction is a static state; the PS must be sent in for repair. If still possible, a defect always triggers a diagnostic alarm.
Explanation of the reactions
The PS is switched off retentively. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus. You cannot switch on the module unless you have eliminated the error and disconnected power to the PS for approximately one minute.

5.3

Interrupts

What is a diagnostic interrupt?
You can determine reactions to internal or external errors in the user program, by programming a diagnostic interrupt which interrupts cyclic program execution on the CPU and triggers the diagnostic interrupt OB (OB82). The event which led to the interrupt is entered in the start information of the OB82.

Trigger of a diagnostic interrupt
Events that can trigger a diagnostic alarm can also trigger a diagnostic interrupt:  Supply voltage missing  Overtemperature  Overvoltage on the backplane bus  Safety shutdown  Switch position Off  Malfunction

Reactions to a diagnostic interrupt
You can find the CPU reaction to a diagnostic interrupt in the function manual System diagnostics (http://support.automation.siemens.com/WW/view/en/59192926).
Detailed information on the error event is available in the diagnostic interrupt OB by executing the "RALRM" instruction (read additional interrupt information) and in the STEP 7 Online Help.

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

19

Technical specifications

6

Technical specifications of the PS 60W 24/48/60VDC HF
Article number General information
Product type designation HW functional status Firmware version Engineering with · STEP 7 TIA Portal configurable/integrated as of version
Supply voltage Rated value (DC) permissible range, lower limit (DC) permissible range, upper limit (DC) Reverse polarity protection Short-circuit protection
Mains buffering · Mains/voltage failure stored energy time
Input current Rated value at 24 V DC Rated value at 48 V DC Rated value at 60 V DC Inrush current, max.
Output current Short-circuit protection
Power Infeed power to the backplane bus
Power loss Power loss at nominal rating conditions
Interrupts/diagnostics/status information Status indicator
Isolation Isolation tested with
EMC Interference immunity against voltage surge
· on the supply lines acc. to IEC 61000-4-5

6ES7505-0RB00-0AB0
PS 60 W 24/48/60 V DC HF E01 V1.0.0
V14 SP1
24 V / 48 V / 60 V Static 19.2 V, dynamic 18.5 V Static 72 V, dynamic 75.5 V Yes Yes
20 ms
3 A 1.5 A 1.2 A  8 A for t  1 s
Yes
60 W
12 W
Yes
2 500 V DC (type test)
Yes; ±1 kV (acc. to IEC 61000-4-5; 1995; surge symm.), ±2 kV (acc. to IEC 61000-4-5; 1995; surge asymm.), no external protective circuit required

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

20

Manual, 01/2019, A5E39450002-AB

Article number Degree and class of protection
Degree of protection acc. to EN 60529 Equipment protection class Dimensions Width Height Depth Weights Weight, approx.

Technical specifications
6ES7505-0RB00-0AB0 IP20 I, with protective conductor 105 mm 147 mm 129 mm 865 g

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

21

Dimensional drawing

A

Dimensional drawing of PS 60W 24/48/60VDC HF
This appendix includes the dimensional drawing of the power supply module that is installed on a mounting rail with shielding bracket. Take the dimensions into account for installation in cabinets, control rooms, etc.
The following figure shows the front view and the side view of the module

Figure A-1 Dimensional drawing of the PS 60W 24/48/60VDC HF module

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

22

Manual, 01/2019, A5E39450002-AB

Dimensional drawing The following figure shows the side view of the module with open front panel.
Figure A-2 Dimensional drawing of the PS 60W 24/48/60VDC HF module

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

23

Parameter data record

B

Parameter assignment in the user program
You have the option to re-parameterize the power supply module in RUN mode of CPU.

Changing parameters in RUN mode
The parameters of the power supply module are in data record 0. Using the instruction WRREC the adjustable parameters can be transferred to the power supply module. The parameters assigned in STEP 7 are not changed permanently in the CPU, which means the parameters assigned in STEP 7 are valid again after a restart.

Output parameter RET_VAL
The power supply module ignores errors that occur during transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the RET_VAL output parameter. If no error occurs, the length of the data actually transferred is entered in RET_VAL. RET_VAL is 4 bytes long and structured as follows:  Byte1: Function_Num, general error code
 Byte2: Error_Decode, location of the error detection
 Byte3: Error_Code_1, error detection
 Byte4: Error_Code_2, manufacturer-specific expansion of the error detection
The description of the WRREC instruction and the general error codes are available in the STEP 7 online help. Module-specific errors are displayed by means of Error_Code_1 = 224D or Error_Code_1 = 225D. Manufacturer-specific expansions of the error detection of the WRREC instruction have the following meaning:

Table B- 1 Manufacturer-specific expansions of the error detection of the WRREC instruction

Error_Code 1 224D Error in the data record header
225 D Errors in the net data entered in the data record (parameter)

Error_Code 2 1 D
2 D 1 D 16 D

Meaning
The version entered in the data record header is not supported by the module or reserved bits of the version are set.
The net length entered in the data record header is incorrect.
Diagnostic interrupt enable is incorrect
Reserved parameters are not 0

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

24

Manual, 01/2019, A5E39450002-AB

Parameter data record
Data record structure
The following figure shows the structure of the data record 0.  A fixed bit pattern is entered in byte 0. It indicates the version of the data record structure.
Each time a data record is written, the module checks the written data and accepts only data records with major version 1.  Byte 1 specifies the maximum data length that can be used for parameter data.  Byte 2 contains the parameter data.  Bytes 3 to 11 are reserved. To enable a parameter in byte 2, set the corresponding bit to "1". The corresponding diagnostics is then activated, for example, for supply voltage monitoring. If you set the corresponding bit to "0", the diagnostics is deactivated. You are not permitted to change byte 0, byte 1 or bytes 3 to 11.
Figure B-1 Structure of data record 0

Power supply module PS 60W 24/48/60VDC HF (6ES7505-0RB00-0AB0)

Manual, 01/2019, A5E39450002-AB

25

 Power supply module PS 60W
120/230V AC/DC (6ES7507-0RA00-
0AB0)
SIMATIC
S7-1500/ET 200MP Power supply module PS 60W 120/230V AC/DC (6ES75070RA00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _W_iri_ng_______________3_ _Pa_ra_m_e_te_rs____________4_ _Ienr_treo_rrrua_pn_tds,_sdta_iatu_gsn_oa_slatir_cm_asla_rm_s_, ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_a_l d_ra_w_in_g _______A_ _Pa_ra_m_e_te_r d_a_ta_re_co_rd_______B_

01/2013
A5E31826073-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31826073-AA  01/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Preface

Purpose of the documentation
This manual complements the system manuals:
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)
 ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214)
Functions that generally concern the systems are described in these manuals.
The information provided in this manual and in the system/function manuals support you in commissioning the systems.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 automation system and for interface modules of the ET 200MP distributed I/O system. Also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product, or on the section of the documentation to which particular attention should be paid.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

3

Preface
Copyright notice for the open-source software used
Open-source software is used in the firmware of the product described. The open-source software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the following copyright notices.
© Copyright William E. Kempf 2001 Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. William E. Kempf makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Copyright © 1994 Hewlett-Packard Company Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided ``as is'' without express or implied warranty.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

4

Manual, 01/2013, A5E31826073-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Operating and display elements ..................................................................................................11

3 Wiring ...................................................................................................................................................... 13

3.1

Wiring the power supply module..................................................................................................13

4 Parameters .............................................................................................................................................. 17

4.1

Parameters...................................................................................................................................17

5 Interrupts, diagnostic alarms, error and status alarms ............................................................................. 19

5.1

Status and error displays .............................................................................................................19

5.2

Diagnostic alarms ........................................................................................................................21

5.3

Interrupts ......................................................................................................................................23

6 Technical specifications........................................................................................................................... 25

A Dimensional drawing ............................................................................................................................... 27

A.1

Dimensional drawing....................................................................................................................27

B Parameter data record............................................................................................................................. 29

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

5

Table of contents

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

6

Manual, 01/2013, A5E31826073-AA

Documentation guide

1

Introduction

The modular documentation of the S7-1500 and ET 200MP system families covers all aspects of your automation system.
The documentation consists of different modules that are divided into system manuals, function manuals and manuals.
The following table provides an overview of the documents that complement this manual. Information in the manual overrides specifications in the system manual.

Overview of the documentation for the power supply module PS 60W 120/230VAC
The table below lists additional documentation for using the PS 60W 120/230VAC benötigen. power supply module.

Table 1- 1 Documentation for the power supply module PS 60W 120/230VAC

Topic System description
Designing interference-free controllers System diagnostics

Documentation System manual S7-1500 automation system (http://support.automation.siemens.com/ WW/view/en/59191792) System manual ET 200MP distributed I/O system (http://support.automation.siemens.com/ WW/view/en/59193214)
Function manual Designing interference-free controllers (http://support.automation.siemens.com/ WW/view/en/59193566)
Function manual System diagnostics (http://support.automation.siemens.com/ WW/view/en/59192926)

Most important contents · Application planning · Installation · Wiring · Commissioning · Standards and approvals · Electromagnetic compatibility · Mechanical and climatic ambient
conditions
· Basics · Electromagnetic compatibility · Lightning protection
· Overview · Hardware/software diagnostics
evaluation

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

7

Documentation guide

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

8

Manual, 01/2013, A5E31826073-AA

Product overview

2.1

Properties

Order number 6ES7507-0RA00-0AB0

View of the module

2

Figure 2-1 View of the PS 60W 120/230V AC/DC module

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

9

Product overview 2.1 Properties

Properties

The PS 60W 120/230V AC/DC power supply module supports the use of additional modules. The power supply module has the following properties:  Technical properties
­ Rated input voltages 120 V AC/DC and 230 V AC/DC ­ Output power 60 W ­ Power failure backup ­ Electrical isolation to the bus, safe electrical separation to EN 61131-2  Supported functions ­ Firmware update ­ Identification data I&M0 to I&M4 ­ Configuration in RUN ­ Diagnostic alarms ­ Diagnostic interrupts

Accessories

The following components are supplied with the power supply module:  Power connector  U connector These components are also available as spare parts.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

10

Manual, 01/2013, A5E31826073-AA

Product overview 2.2 Operating and display elements

2.2

Operating and display elements

The following figure shows the control and connection elements of the PS 60W 120/230 V UC behind the front panel as well as the power connector.

 

 
 LED displays indicating the current operating state and diagnostic status of the PS  On/off switch  Power inlet for the power connector  Power connector; inserted in delivery state
Figure 2-2 View of the PS 60W 120/230V AC/DC (without front panel) and of the power connector

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

11

Product overview 2.2 Operating and display elements

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

12

Manual, 01/2013, A5E31826073-AA

Wiring

3

3.1

Wiring the power supply module

Mains connection
WARNING Installation instructions Risk of death or serious injury. Observe the general installation instructions applicable in your country when wiring the power supply module. Fuse the power cables according to their conductor cross-section.
The following applies to mains connection of the power supply module using the power connector:  The power connector provides connection of the input voltage to the power supply
module with touch protection.  The power connector provides permanent wiring.  The power connector features an internal strain relief.  A coding element is used on the power connector to assign it to a specific type of power
supply module. A connector coded for 230V AC cannot be inserted into a 24 V DC power supply module.
DANGER Do not manipulate or omit the coding element Changes to the coding element can result in dangerous states in your plant and/or damage to the outputs of the I/O modules. In order to avoid damage, do not manipulate the coding. The coding element may not be omitted.

Cables

You need flexible cables to wire power to the power supply module. The conductor crosssection must be 1.5 mm2 (AWG: 16). You must fuse conductors with a cross-section of 1.5 mm2 externally with a 16 A circuit breaker (B or C characteristic). The diameter of a 3 x 1.5 mm2 sheathed cable can be no more than 8.5 mm. The ground conductor of flexible cables must be longer than the two other conductors. The fusing must meet the requirements of the corresponding control cabinet.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

13

Wiring 3.1 Wiring the power supply module
Note You can operate the PS 60W AC in vertical mode at 120V AC/DC in the first segment only. The clearance next to the PS should be at least 70 mm; see the figure below.

0RGXOH 0RGXOH 0RGXOH 0RGXOH 0RGXOH



36 &38,0 0RGXOH 0RGXOH 0RGXOH
:$&

2XWSXW'&9 ,QSXW9$&'&

! PP

2SWLRQDO30

,QSXW$&

Figure 3-1 Vertical mode

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

14

Manual, 01/2013, A5E31826073-AA

Reference

Wiring 3.1 Wiring the power supply module
For information on installation of the power supply module and wiring of the power connector, refer to the system manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792). Siemens recommends the use of devices from the SITOP family of products for applications with load power supplies. Wiring information is available in the documentation for the load power supply.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

15

Wiring 3.1 Wiring the power supply module

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

16

Manual, 01/2013, A5E31826073-AA

Parameters

4

4.1

Parameters

Parameters of the PS 60W 120/230V AC/DC
Specify the module properties at the various parameters in the course of your STEP 7 parameterization. The following table lists the configurable parameters.
The parameters you define in the user program are transferred to the module by means of WRREC instruction (Configuration in RUN); see chapter Parameter data record (Page 29).

Table 4- 1 Configurable parameters and their defaults

Parameters Diagnostic/maintenance · Supply voltage missing
· Switch position Off

Range of values
Yes/No Yes/No

Defaults
No No

Configuration in RUN
Yes Yes

Note
Diagnostic alarms without supply voltage
Regardless of whether the supply voltage is missing or the On/Off switch is set to "Off", the power supply module of the CPU or the IM is still capable of generating diagnostic alarms because it is provided sufficient power from the backplane bus. The entire diagnostic functionality is still available.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

17

Parameters 4.1 Parameters

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

18

Manual, 01/2013, A5E31826073-AA

Interrupts, diagnostic alarms, error and status alarms

5

5.1

Status and error displays

Introduction

Diagnostics by means of LEDs is a basic tool for troubleshooting. Usually, you can pinpoint the source of error more precisely by analyzing the module status information in STEP 7, or in the diagnostic buffer of the CPU. These locations contain the corresponding error information in plain text.

LED displays

The following figure shows the LED displays (status and error displays) of the PS 60W 120/230V AC/DC.







 RUN LED  ERROR LED  MAINT LED
Figure 5-1 LED displays of the PS 60W 120/230V AC/DC

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

19

Interrupts, diagnostic alarms, error and status alarms 5.1 Status and error displays

Meaning of the LED displays
The following table explains the meaning of the status and error displays. You can find remedial measures for diagnostic alarms in chapter Diagnostic alarms (Page 21).

Table 5- 1 Status and error displays RUN/ERROR/MAINT

LED

Meaning

RUN

ERROR MAINT

OFF; PS returns no bus voltage

Off

Off

Off · External error; diagnostics is disabled

· PS not powered in the system, no supply voltage at the PS and CPU/IM.

On

On

Not Flashing relevant

Off

Flashing

On
Not relevant

Startup; all LED displays are lit briefly after system startup, or during module restart after firmware update.
Startup, PS returns bus voltage, PS waiting for parameterization

Not relevant

Error, PS supplies no bus voltage
· Supply voltage missing and diagnostics is enabled

· Internal error

Not

Maintenance request, PS returns no bus voltage

Off

relevant

On · Switch is off; power is present and diagnostics is

enabled

Malfunction Flashing Flashing Flashing LEDs flash persistently

Remedy
Switch on power to the PS Check the supply voltage Switch on PS
-
-
Evaluate diagnostic alarms and take appropriate remedial measures; see chapter Diagnostic alarms (Page 21) Switch on PS
Replace PS

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

20

Manual, 01/2013, A5E31826073-AA

Interrupts, diagnostic alarms, error and status alarms 5.2 Diagnostic alarms

5.2

Diagnostic alarms

Diagnostic alarms
The following table shows the meaning of the diagnostic alarms and possible remedial measures for the respective cause.
One of the following "LED images" indicates directly on the PS that a diagnostic alarm was triggered.
 The red ERROR-LED is flashing.
Indicates external or internal errors.
 The yellow MAINT-LED is lit.
Maintenance; a maintenance request is active.
 All three LEDs are flashing permanently
The PS is in "Defective" state.
In STEP 7, the diagnostic results are displayed in plain text by means of the online and diagnostic view. You can read the diagnostic data records by means of the "RDREC" instruction.

Table 5- 2 Diagnostic alarms, their meaning and remedies

Diagnostic alarm
External error Supply voltage missing

Error code Dec.
266D

Internal error Overtemperature 5D

Overvoltage backplane bus

267D

Low

281D

voltage/overload in

the power segment

Error in the power 282D segment

Safety shutdown 285D

Meaning Hex.

Reacti Remedial measures on

010AH No supply voltage, or incorrect

1

insertion of the power connector

into the PS.

Check the supply voltage.

0005H Overtemperature on the printed 3 circuit board.

010BH High EMC interference or a

3

defective PS, CPU or IM inserted.

0119H A voltage dip below the valid limit 2 has been detected in the power segment to the right of the PS.
011AH PS or module to the right of the 2 PS is defective.
011DH Reliable operation of the module 3 is no longer guaranteed.

Check PS load. Isolate PS from mains. Wait one minute before you power on the PS again.
Eliminate electromagnetic interference. Check inserted modules and bus connectors. Isolate PS from mains. Wait one minute before you power on the PS again.
Check the modules in the affected segment; replace if necessary. Switch off the PS at the switch, then switch on again.
Replace the defective module. Switch off the PS at the switch, then switch on again.
Check ambient conditions. Isolate PS from mains. Wait one minute before you power on the PS again.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

21

Interrupts, diagnostic alarms, error and status alarms 5.2 Diagnostic alarms

Diagnostic alarm
Maintenance Switch turned off Malfunction Module failure

Error code Dec.
268D
256D

Meaning Hex. 010CH The PS is switched off. 0100H PS failure.

Reacti Remedial measures on

1

Switch on PS.

3

Replace PS.

External errors, internal errors and malfunctions
 External errors occur outside the PS. In the parameterization, specify whether or not an external error can trigger a diagnostic alarm. By default, external errors do not trigger diagnostic alarms.
 Internal errors occur inside the PS. If still possible, an internal error always triggers a diagnostic alarm.
 A malfunction is a static state; the PS must be sent in for repair. If still possible, a defect always triggers a diagnostic alarm.

Explanation of the reactions
1. No power at the power segment to the right of the PS. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus.
2. The modules to the right of the PS are switched off.
3. The PS is switched off retentively. Alarm is only generated if the PS is still powered by the CPU or IM via the backplane bus. You cannot switch on the module unless you have eliminated the error and disconnected power to the PS for approximately one minute.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

22

Manual, 01/2013, A5E31826073-AA

Interrupts, diagnostic alarms, error and status alarms 5.3 Interrupts

5.3

Interrupts

What is a diagnostic interrupt? You can determine reactions to internal or external errors in the user program, by programming a diagnostic interrupt which interrupts cyclic program execution on the CPU and triggers the diagnostic interrupt OB (OB82). The event which led to the interrupt is entered in the start information of the OB82.
Trigger of a diagnostic interrupt Events that can trigger a diagnostic alarm can also trigger a diagnostic interrupt:  Supply voltage missing  Overtemperature  Overvoltage on the backplane bus  Low voltage/overload in the power segment  Error in the power segment  Safety shutdown  Switch position Off  Malfunction
Reactions to a diagnostic interrupt You can find the CPU reaction to a diagnostic interrupt in the function manual System diagnostics (http://support.automation.siemens.com/WW/view/en/59192926). Detailed information on the error event is available in the diagnostic interrupt OB by executing the "RALRM" instruction (read additional interrupt information) and in the STEP 7 Online Help.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

23

Interrupts, diagnostic alarms, error and status alarms 5.3 Interrupts

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

24

Manual, 01/2013, A5E31826073-AA

Technical specifications

6

Technical specifications of the PS 60W 120/230V AC/DC

Product type designation General information Hardware version Firmware version Engineering with STEP 7 TIA Portal can be configured/integrated as of version STEP 7 can be configured/integrated as of version FH technology Redundancy · Capable of redundancy
· For increasing performance Supply voltage Type of supply voltage · Rated value (DC)
· Valid range low limit (DC)
· Valid range high limit (DC)
· Rated value (AC)
· Valid range low limit (AC)
· Valid range high limit (AC)
· Short-circuit protection Mains frequency · Rated value 50 Hz
· Valid range, low limit
· Valid range, high limit Power failure backup · Power failure backup time

6ES7507-0RA00-0AB0 PS 60W 120/230V AC/DC
E01 V1.0.0
V12.0 / V12.0 V5.5 SP3 or higher
Yes Yes
AC/DC 120 V / 230 V 88 V 300 V 120 V / 230 V 85 V 264 V Yes
Yes 47 Hz 63 Hz
20 ms

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

25

Technical specifications

Input current · Rated value at 120 V DC · Rated value at 230 V DC · Rated value at 120 V AC · Rated value at 230 V AC Output current · Short-circuit protection Power · Power feed to the backplane bus Power loss · Power loss at rated conditions Interrupts/diagnostics/status information · Status display Electrical isolation · Primary/secondary Insulation Insulation tested with EMC Immunity to surge voltages · on the supply lines in accordance with IEC
61000-4-5
Degree of protection and protection class Degree of protection to EN 60529 · Protection class Dimensions · Width · Height · Depth Weights · Weight, approx.

0.6 A 0.3 A 0.6 A 0.34 A

6ES7507-0RA00-0AB0

Yes

60 W

12 W

Yes

Yes

2500 V DC 2s (routine test)

Yes; +/- 1 kV (according to IEC 61000-4-5; 1995; symm. surge), +/- 2 kV (according to IEC 610004-5; 1995; unsymm. surge), no external protective circuit required
IP20 1; with ground conductor
70 mm 147 mm 129 mm
600 g

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

26

Manual, 01/2013, A5E31826073-AA

Dimensional drawing

A

A.1

Dimensional drawing

Dimensional drawing of the PS 60W 120/230V AC/DC This appendix includes the dimensional drawing of the power supply module that is installed on a mounting rail with shielding bracket. Take the dimensions into account for installation in cabinets, control rooms, etc.


   

 
Figure A-1 Dimensional drawing of the PS 60W 120/230V AC/DC module

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

27

Dimensional drawing A.1 Dimensional drawing
This figure shows the dimensions of the module with open front panel.
 
Figure A-2 Dimensional drawing of the PS 60W 120/230V AC/DC module, side view with open front panel

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

28

Manual, 01/2013, A5E31826073-AA

Parameter data record

B

Parameter assignment in the user program You have the option to re-parameterize the power supply module in RUN mode of CPU.
Changing parameters in RUN mode The parameters for the power supply module are contained in data record 0. You can use the WRREC instruction to transfer the configurable parameters to the power supply module. The parameters assigned in STEP 7 are not changed permanently in the CPU, which means the parameters assigned in STEP 7 are valid again after a restart.
Output parameter RET_VAL The power supply module ignores errors that occur during transfer of parameters with the WRREC instruction and continues operation with the previous parameter assignment. However, a corresponding error code is written to the RET_VAL output parameter. If no error occurs, the length of the data actually transferred is entered in RET_VAL. RET_VAL is 4 bytes long and structured as follows:  Byte1: Function_Num, general error code  Byte2: Error_Decode, location of the error detection  Byte3: Error_Code_1, error detection  Byte4: Error_Code_2, manufacturer-specific expansion of the error detection
The description of the WRREC instruction and the general error codes are available in the STEP 7 online help.
Module-specific errors are displayed by means of Error_Code_1 = 224D or Error_Code_1 = 225D.

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

Manual, 01/2013, A5E31826073-AA

29

Parameter data record

Manufacturer-specific expansions of the error detection of the WRREC instruction have the following meaning:

Table B- 1 Manufacturer-specific expansions of the error detection of the WRREC instruction

Error_Code 1
224D Error in the data record header

Error_Code 2 1 D
2 D

225 D

1 D

Error in the net data

16 D

(parameters) entered in the

data record

Meaning
The version entered in the data record header is not supported by the module or reserved bits of the version are set.
The net length entered in the data record header is incorrect.
Diagnostic interrupt enable is incorrect
Reserved parameters are not 0

Data record structure
The following figure shows the structure of the data record 0.
 A fixed bit pattern is entered in byte 0. It indicates the version of the data record structure. Each time a data record is written, the module checks the written data and accepts only data records with major version 1.
 Byte 1 specifies the maximum data length that can be used for parameter data.
 Byte 2 contains the parameter data.
 Bytes 3 to 11 are reserved.
To enable a parameter in byte 2, set the corresponding bit to "1". The corresponding diagnostics is then activated, for example, for supply voltage monitoring. If you set the corresponding bit to "0", the diagnostics is deactivated.
You are not permitted to change byte 0, byte 1 or bytes 3 to 11.

%\WH %\WH %\WH

 
 


0LQRUYHUVLRQ 0DMRUYHUVLRQ
/HQJWKRIWKHSDUDPHWHUGDWD 'DWDOHQJWKE\WHV
(QDEOHGLDJQRVWLFV 'LDJQRVWLFVIRUVXSSO\YROWDJHPRQLWRULQJ 'LDJQRVWLFVIRUVZLWFKSRVLWLRQ


%\WHVWR        
Figure B-1 Structure of data record 0

Power supply module PS 60W 120/230V AC/DC (6ES7507-0RA00-0AB0)

30

Manual, 01/2013, A5E31826073-AA

 Load power supply module
PM 70 W 120/230VAC
(6EP1332-4BA00)
SIMATIC
S7-1500/ET 200MP Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tio_n____________3_ _Pa_ra_m_e_te_r ____________4_ _Astl_aatru_ms_sm,_dei_sasg_ang_oes_stic_, _er_ro_r a_n_d ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_se_t________B_

01/2013
A5E31691456-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31691456-AA  02/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of this documentation
This manual supplements the system manuals:
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)
 ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214)
General system functions are described there.
The information in this manual along with the System/Function manuals enables you to commission the systems.

Conventions

In the following, if "CPU" is mentioned, then this refers to the central modules of the S7-1500 automation system, as well as the interface modules of the ET 200MP distributed I/O. Also observe the notes marked as follows:
Note A note refers to important information about the product described in the documentation, for handling the product or to the part of the documentation to which special attention should be given.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

3

Preface

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

4

Manual, 01/2013, A5E31691456-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Operator controls and display elements ......................................................................................11

3 Connection .............................................................................................................................................. 13

3.1

Connecting up the power supply module.....................................................................................13

4 Parameter................................................................................................................................................ 15

5 Alarms, diagnostic, error and status messages ....................................................................................... 17

5.1

Status and error displays .............................................................................................................17

5.2

Diagnostic messages...................................................................................................................19

5.3

Alarms ..........................................................................................................................................19

6 Technical specifications........................................................................................................................... 21

A Dimension drawing .................................................................................................................................. 23

B Parameter data set .................................................................................................................................. 25

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

5

Table of contents

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

6

Manual, 01/2013, A5E31691456-AA

Documentation guide

1

Introduction

The documentation of the S7-1500 and ET 200MP system families has a modular structure, and includes topics associated with your automation system.
The complete documentation comprises various modules, which are subdivided into System Manuals, Function Manuals and Equipment Manuals.
An overview of the documents, which supplement this Manual, is provided in the following table.

Overview of the documentation for the power supply module PM 70 W 120/230 VAC
The following table lists additional documentation, which you require when using the load power supply module PM 70 W 120/230 VAC .

Table 1- 1 Documentation for the PM 70 W 120/230 VAC load power supply module

Subject Description of the system
Configuring control systems so that they are interferenceproof System diagnostics

Documentation

Most important content

System Manual

 Planning its use

S7-1500 automation system (http://support.automation.siemens.com/WW/vie



Installation

w/en/59191792)

 Connection

System Manual

 Commissioning

ET 200MP distributed I/O system

 Standards and approvals

(http://support.automation.siemens.com/WW/vie

w/en/59193214)

 Electromagnetic

compatibility

 Mechanical and climatic environmental conditions

Function Manual

 Basic principles

Configuring control systems so that they are interference-proof

 Electromagnetic

(http://support.automation.siemens.com/WW/vie

compatibility

w/en/59193566)

 Lightning protection

Function Manual

 Overview

System diagnostics

 Diagnostics evaluation,

(http://support.automation.siemens.com/WW/vie

hardware/software

w/en/59192926)

SIMATIC Manuals
In the Internet (http://www.siemens.com/automation/service&support) you will find all of the current manuals for SIMATIC products, that you can download at no charge.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

7

Documentation guide

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

8

Manual, 01/2013, A5E31691456-AA

Product overview

2.1

Properties

Order number 6EP1332-4BA00

View of the module

2

Figure 2-1 View of the PM 70 W 120/230 VAC load power supply module

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

9

Product overview 2.1 Properties

Properties

The load power supply module PM 70 W 120/230 VAC feeds input and output circuits (load circuits) as well as sensors and actuators The load power supply module has the following properties:  Technical properties
­ Rated input voltage 120/230 V AC, 50/60 Hz ­ Automatic voltage range switchover ­ 24 V DC rated output voltage ­ 3 A rated output current ­ 70 W output power ­ Power failure buffering

Accessories

The following components can be supplied with the power module:  Line connector  Pluggable 24 V DC output terminal

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

10

Manual, 01/2013, A5E31691456-AA

Product overview 2.2 Operator controls and display elements

2.2

Operator controls and display elements

The following diagram shows the operating and connection elements of the PM 70 W 120/230 VAC load power supply module behind the front cover, the line connector and the pluggable 24 V DC output terminal

 LED displays showing the actual operating state and diagnostics state of the PM  On / off switch  Power supply connection via the line connector  Line connector, inserted when delivered  Pluggable 24 V DC output terminal, inserted when delivered
Figure 2-2 View of the PM 70 W 120/230 VAC power supply module (without front cover), the line connector and the pluggable 24 V DC output terminal

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

11

Product overview 2.2 Operator controls and display elements

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

12

Manual, 01/2013, A5E31691456-AA

Connection

3

3.1

Connecting up the power supply module

Line connection
WARNING Installation instructions Death or severe injury can occur. When connecting up the power supply module, carefully observe the general installation instructions that are valid in your particular country. Protect the line connection cables corresponding to the cable cross-section.
The following applies to the line connection of the load power supply module with the line connector:  The line connector allows the supply voltage to be connected to the load power supply
with touch protection.  The line connector facilitates permanent wiring to be established.  The line connector has a strain relief mechanism.  When supplied, every line connector is assigned to a power supply module type using a
coding element. A connector, coded for 230 V AC, cannot be inserted in a 24 V DC power supply module.

24 V DC output The following applies to the 24 V DC output of the load power supply module with pluggable 24 V DC output terminal:  The 24 V DC output terminal allows loads to be connected with a 24 V DC input.  The 24 V DC output terminal facilitates permanent wiring to be established.  The 24 V DC output terminal guarantees protection against reverse polarity.

Cables

You must use flexible cables to connect the load power supply module. The wire crosssection can be 0.5 mm² up to 2.5 mm2 (AWG: 24 to 12). A miniature circuit breaker or motor circuit breaker must be provided at the input side.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

13

Connection 3.1 Connecting up the power supply module

Clearance to adjacent modules
For a horizontal system configuration (cable outlet towards the bottom), no installation clearances are required to the right-hand adjacent module; on the other hand, if there is a module to the left, then a minimum clearance of 10 mm must be provided.
For vertical system configurations (cable outlet to the right), a minimum clearance of 25 mm must be maintained to the upper adjacent module. If there is a lower adjacent module, then a minimum clearance of 20 mm must be maintained

Reference

Information on installing the load power supply module and wiring the line connector and the pluggable 24 V DC output terminal is provided in the System Manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/de/59191792) and in the operating instructions for the load power supply module.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

14

Manual, 01/2013, A5E31691456-AA

Parameter

4

PM 70 W 120/230 VAC parameters The PM 70 W 120/230 VAC power supply module cannot be parameterized via STEP 7.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

15

Parameter

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

16

Manual, 01/2013, A5E31691456-AA

Alarms, diagnostic, error and status messages

5

5.1

Status and error displays

Introduction

The diagnostics provided by the LEDs provides the first resource to locate faults.

LED displays

The LED displays (status and error displays) of the PM 70 W 120/230 VAC load power supply module can be seen in the following diagram.







 RUN LED  ERROR LED  MAINT LED
Figure 5-1 LED displays of the PM 70 W 120/230 VAC load power supply module

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

17

Alarms, diagnostic, error and status messages 5.1 Status and error displays

Meaning of the LED displays
The significance of the status and error displays of the PM 70 W 120/230 VAC power supply module are explained in the following table.

Table 5- 1 RUN/ERROR/MAINT status and error displays

RUN off on off
off

LED ERROR

MAINT

off

off

off

off

on

off

off

on

Meaning

Remedy

POWER OFF PM deactivated  No power at the PM  Standby switch in the "lower" position  Device inactive  No 24 V DC output voltage
POWER ON The PM supplies a 24 V DC output voltage  Line supply voltage is available at the PM  Standby switch in the "upper" position  Device active and in the regular operating mode  24 V DC output voltage is available
ERROR PM is operating in the overload mode  Line supply voltage is available at the PM  Standby switch in the "upper" position  Device is active, however, in the "Overload"
operating mode  The connected load draws more current than the
PM can supply  24 V DC output voltage drops
MAINTENANCE PM is in the standby mode  Line supply voltage is available at the PM  Standby switch in the "lower" position  Device is active, however, in the standby mode  No 24 V DC output voltage

Check the line supply Supply the PM with power Switch on the PM
-
Reduce the load current drawn by the connected load Install a load power supply with a higher rating
Switch on the PM by bringing the standby switch into the "upper" position

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

18

Manual, 01/2013, A5E31691456-AA

Alarms, diagnostic, error and status messages 5.2 Diagnostic messages

5.2

Diagnostic messages

The PM 70 W 120/230 VAC load power supply module does not initiate diagnostic messages in the CPU or STEP 7. You can identify the device status directly at the PM based on the "LED statuses", as explained in Chapter Status and error displays (Page 17).

5.3

Alarms

The PM 70 W 120/230 VAC load power supply module does not initiate any alarms in the CPU or STEP 7. You can identify the device status directly at the PM based on the "LED statuses", as explained in Chapter Status and error displays (Page 17).

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

19

Alarms, diagnostic, error and status messages 5.3 Alarms

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

20

Manual, 01/2013, A5E31691456-AA

Technical specifications

6

Technical data of the PM 70 W 120/230 VAC load power supply module

Product type designation General Information Hardware product version Firmware version Engineering mit can be configured in the STEP 7 TIA-Portal / integrated from version can be configured in STEP 7 / integrated from version PROFIBUS from GSD version / GSD revision Power supply  Rated value (AC)
 Permissible range, lower limit (AC)
 Permissible range, upper limit (AC) Input current  Rated value at 120 VAC
 Rated value at 230 VAC Mains frequency  Rated value 50 Hz
 Rated value 60 Hz
 Permissible range, lower limit
 Permissible range, upper limit e Line and power failure bypass  Line/power failure bypass time Output current  Rated value
 Short-circuit protection Power  24 V DC output power

6EP1332-4BA00 PM 70 W 120/230 VAC
1 Not applicable
Not applicable Not applicable Not applicable
120 V or 230 V (automatic switchover) 85 V or 170 V 132 V or 264 V
1.40 A 0.80 A
Yes Yes 45 Hz 65 Hz
20 ms
3 A Yes
194 W

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

21

Technical specifications

Power loss  Power loss, typical. Alarms / diagnostics / status information  Status display Electrical isolation  Primary/secondary Degree of protection and protection class  Degree of protection to EN 60529  Protection class Dimensions  Width  Height  Depth Weights  Weight, approx.

10.6 W

6EP1332-4BA00

Yes (using the device LEDs)

Yes
IP20 I with protective conductor
50 mm 147 mm 129 mm
452 g

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

22

Manual, 01/2013, A5E31691456-AA

Dimension drawing

A

Dimension drawing of the PM 70 W 120/230 VAC load power supply module
The dimension drawing of the load power supply module, mounted on a rail with shield bar, is provided in this attachment. These dimensions must be taken into account when mounting in cabinets, switchgear rooms etc.

Figure A-1 Dimension drawing of the PM 70 W 120/230 VAC load power supply module

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

23

Dimension drawing This drawing shows the module dimensions with the front cover open.
Figure A-2 Dimension drawing of the PM 70 W 120/230VAC load power supply module, side view with the front cover open

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

24

Manual, 01/2013, A5E31691456-AA

Parameter data set

B

The PM 70 W 120/230 VAC load power supply module does not provide any way of assigning parameters.

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

Manual, 01/2013, A5E31691456-AA

25

Parameter data set

Load power supply module PM 70 W 120/230VAC (6EP1332-4BA00)

26

Manual, 01/2013, A5E31691456-AA

 Load power supply module
PM 190 W 120/230 VAC
(6EP1333-4BA00)
SIMATIC
S7-1500/ET 200MP Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tio_n____________3_ _Pa_ra_m_e_te_r ____________4_ _Astl_aatru_ms_sm,_dei_sasg_ang_oes_stic_, _er_ro_r a_n_d ___5_ _Te_c_hn_ic_al_sp_e_ci_fic_at_io_ns______6_ _Di_m_en_s_ion_d_ra_w_in_g ________A_ _Pa_ra_m_e_te_r d_a_ta_se_t________B_

01/2013
A5E31691095-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31691095-AA  01/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of this documentation
This manual supplements the system manuals:
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792)
 ET 200MP distributed I/O system (http://support.automation.siemens.com/WW/view/en/59193214)
General system functions are described there.
The information in this manual along with the System/Function manuals enables you to commission the systems.

Conventions

In the following, if "CPU" is mentioned, then this refers to the central modules of the S7-1500 automation system, as well as the interface modules of the ET 200MP distributed I/O. Also observe the notes marked as follows:
Note A note refers to important information about the product described in the documentation, for handling the product or to the part of the documentation to which special attention should be given.

Note on IT security
Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com).
You can register for a product-specific newsletter here.
For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity).
Products used from other manufacturers should also be taken into account here.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

3

Preface

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

4

Manual, 01/2013, A5E31691095-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 7

2 Product overview ....................................................................................................................................... 9

2.1

Properties.......................................................................................................................................9

2.2

Operating and display elements ..................................................................................................11

3 Connection .............................................................................................................................................. 13

3.1

Connecting up the power supply module.....................................................................................13

4 Parameter................................................................................................................................................ 15

5 Alarms, diagnostic, error and status messages ....................................................................................... 17

5.1

Status and error displays .............................................................................................................17

5.2

Diagnostic messages...................................................................................................................19

5.3

Alarms ..........................................................................................................................................19

6 Technical specifications........................................................................................................................... 21

A Dimension drawing .................................................................................................................................. 23

B Parameter data set .................................................................................................................................. 25

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

5

Table of contents

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

6

Manual, 01/2013, A5E31691095-AA

Documentation guide

1

Introduction

The documentation of the S7-1500 and ET 200MP system families has a modular structure, and includes topics associated with your automation system.
The complete documentation comprises various modules, which are subdivided into System Manuals, Function Manuals and Equipment Manuals.
An overview of the documents, which supplement this Manual, is provided in the following table.

Overview of the documentation for the power supply module PM 190 W 120/230 VAC
The following table lists additional documentation that you require when using the load power supply module PM 190 W 120/230 VAC .

Table 1- 1 Documentation for the PM 190 W 120/230 VAC load power supply module

Subject Description of the system
Configuring control systems so that they are interferenceproof System diagnostics

Documentation

Most important content

System Manual

 Planning its use

S7-1500 automation system (http://support.automation.siemens.com/WW/vie



Installation

w/en/59191792)

 Connection

System Manual

 Commissioning

ET 200MP distributed I/O system

 Standards and approvals

(http://support.automation.siemens.com/WW/vie

w/en/59193214)

 Electromagnetic

compatibility

 Mechanical and climatic environmental conditions

Function Manual

 Basic principles

Configuring control systems so that they are interference-proof

 Electromagnetic

(http://support.automation.siemens.com/WW/vie

compatibility

w/en/59193566)

 Lightning protection

Function Manual

 Overview

System diagnostics

 Diagnostics evaluation,

(http://support.automation.siemens.com/WW/vie

hardware/software

w/en/59192926)

SIMATIC Manuals
In the Internet (http://www.siemens.com/automation/service&support) you will find all of the current manuals for SIMATIC products, which you can download at no charge.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

7

Documentation guide

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

8

Manual, 01/2013, A5E31691095-AA

Product overview

2.1

Properties

Order number 6EP1333-4BA00

View of the module

2

Figure 2-1 View of the PM 190 W 120/230 VAC load power supply module

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

9

Product overview 2.1 Properties

Properties

The load power supply module PM 190 W 120/230 VAC feeds input and output circuits (load circuits) as well as sensors and actuators The load power supply module has the following properties:  Technical properties
­ Rated input voltage 120/230 V AC, 50/60 Hz ­ Automatic voltage range switchover ­ 24 V DC rated output voltage ­ 8 A rated output current ­ 190 W output power ­ Power failure buffering

Accessories

The following components can be supplied with the power module:  Line connector  Pluggable 24 V DC output terminal

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

10

Manual, 01/2013, A5E31691095-AA

Product overview 2.2 Operating and display elements

2.2

Operating and display elements

The following diagram shows the operating and connection elements of the PM 190 W 120/230 VAC load power supply module behind the front cover, the line connector and the pluggable 24 V DC output terminal

 LED displays showing the actual operating state and diagnostics state of the PM  On / off switch  Power supply connection via the line connector  Line connector, inserted when delivered  Pluggable 24 V DC output terminal, inserted when delivered
Figure 2-2 View of the PM 190 W 120/230 VAC power supply module (without front cover), the line connector and the pluggable 24 V DC output terminal

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

11

Product overview 2.2 Operating and display elements

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

12

Manual, 01/2013, A5E31691095-AA

Connection

3

3.1

Connecting up the power supply module

Line connection
WARNING Installation instructions Death or severe injury can occur. When connecting up the power supply module, carefully observe the general installation instructions that are valid in your particular country. Protect the line connection cables corresponding to the cable cross-section.
The following applies to the line connection of the load power supply module with the line connector:  The line connector allows the supply voltage to be connected to the load power supply
with touch protection.  The line connector facilitates permanent wiring to be established.  The line connector has a strain relief mechanism.  When supplied, every line connector is assigned to a power supply module type using a
coding element. A connector, coded for 230 V AC, cannot be inserted in a 24 V DC power supply module.

24 V DC output The following applies to the 24 V DC output of the load power supply module with pluggable 24 V DC output terminal:  The 24 V DC output terminal allows loads to be connected with a 24 V DC input.  The 24 V DC output terminal facilitates permanent wiring to be established.  The 24 V DC output terminal guarantees protection against reverse polarity.

Cables

You must use flexible cables to connect the load power supply module. The wire crosssection can be 0.5 mm² up to 2.5 mm2 (AWG: 24 to 12). A miniature circuit breaker or motor circuit breaker must be provided at the input side.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

13

Connection 3.1 Connecting up the power supply module

Clearance to adjacent modules
For a horizontal system configuration (cable outlet towards the bottom), no installation clearances are required to the right-hand adjacent module; on the other hand, if there is a module to the left, then a minimum clearance of 10 mm must be provided.
For vertical system configurations (cable outlet to the right), a minimum clearance of 25 mm must be maintained to the upper adjacent module. If there is a lower adjacent module, then a minimum clearance of 20 mm must be maintained

Reference

Information on installing the load power supply module and wiring the line connector and the pluggable 24 V DC output terminal is provided in the System Manual S7-1500 automation system (http://support.automation.siemens.com/WW/view/de/59191792) and in the operating instructions for the load power supply module.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

14

Manual, 01/2013, A5E31691095-AA

Parameter

4

PM 190 W 120/230 VAC parameters The PM 190 W 120/230 VAC power supply module cannot be parameterized via STEP 7.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

15

Parameter

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

16

Manual, 01/2013, A5E31691095-AA

Alarms, diagnostic, error and status messages

5

5.1

Status and error displays

Introduction

The diagnostics provided by the LEDs provides the first resource to locate faults.

LED displays

The LED displays (status and error displays) of the PM 190 W 120/230 VAC load power supply module can be seen in the following diagram.







 RUN LED  ERROR LED  MAINT LED
Figure 5-1 LED displays of the PM 190 W 120/230 VAC load power supply module

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

17

Alarms, diagnostic, error and status messages 5.1 Status and error displays

Meaning of the LED displays
The significance of the status and error displays of the PM 190 W 120/230 VAC power supply module are explained in the following table.

Table 5- 1 RUN/ERROR/MAINT status and error displays

RUN off on off
off

LED ERROR

MAINT

off

off

off

off

on

off

off

on

Meaning

Remedy

POWER OFF PM deactivated  No power at the PM  Standby switch in the "lower" position  Device inactive  No 24 V DC output voltage
POWER ON The PM supplies a 24 V DC output voltage  Line supply voltage is available at the PM  Standby switch in the "upper" position  Device active and in the regular operating mode  24 V DC output voltage is available
ERROR PM is operating in the overload mode  Line supply voltage is available at the PM  Standby switch in the "upper" position  Device is active, however, in the "Overload"
operating mode  The connected load draws more current than the
PM can supply  24 V DC output voltage drops
MAINTENANCE PM is in the standby mode  Line supply voltage is available at the PM  Standby switch in the "lower" position  Device is active, however, in the standby mode  No 24 V DC output voltage

Check the line supply Supply the PM with power Switch on the PM
-
Reduce the load current drawn by the connected load Install a load power supply with a higher rating
Switch on the PM by bringing the standby switch into the "upper" position

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

18

Manual, 01/2013, A5E31691095-AA

Alarms, diagnostic, error and status messages 5.2 Diagnostic messages

5.2

Diagnostic messages

The PM 190 W 120/230 VAC load power supply module does not initiate diagnostic messages in the CPU or STEP 7. You can identify the device status directly at the PM based on the "LED statuses", as explained in Chapter Status and error displays (Page 17).

5.3

Alarms

The PM 190 W 120/230 VAC load power supply module does not initiate any alarms in the CPU or STEP 7. You can identify the device status directly at the PM based on the "LED statuses", as explained in Chapter Status and error displays (Page 17).

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

19

Alarms, diagnostic, error and status messages 5.3 Alarms

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

20

Manual, 01/2013, A5E31691095-AA

Technical specifications

6

Technical data of the PM 190 W 120/230 VAC load power supply module

Product type designation General Information Hardware product version Firmware version Engineering mit can be configured in the STEP 7 TIA-Portal / integrated from version can be configured in STEP 7 / integrated from version PROFIBUS from GSD version / GSD revision Power supply  Rated value (AC)
 Permissible range, lower limit (AC)
 Permissible range, upper limit (AC) Input current  Rated value at 120 VAC
 Rated value at 230 VAC Mains frequency  Rated value 50 Hz
 Rated value 60 Hz
 Permissible range, lower limit
 Permissible range, upper limit e Line and power failure bypass  Line/power failure bypass time Output current  Rated value
 Short-circuit protection Power  24 V DC output power

6EP1333-4BA00 PM 190 W 120/230 VAC
1 Not applicable
Not applicable Not applicable Not applicable
120 V or 230 V (automatic switchover) 85 V or 170 V 132 V or 264 V
3.70 A 1.70 A
Yes Yes 45 Hz 65 Hz
20 ms
8 A Yes
194 W

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

21

Technical specifications

Power loss  Power loss, typical. Alarms / diagnostics / status information  Status display Electrical isolation  Primary/secondary Degree of protection and protection class  Degree of protection to EN 60529  Protection class Dimensions  Width  Height  Depth Weights  Weight, approx.

19.6 W

6EP1333-4BA00

Yes (using the device LEDs)

Yes
IP20 I with protective conductor
75 mm 147 mm 129 mm
736 g

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

22

Manual, 01/2013, A5E31691095-AA

Dimension drawing

A

Dimension drawing of the PM 190 W 120/230 VAC load power supply module
The dimension drawing of the load power supply module, mounted on a rail with shield bar, is provided in this attachment. These dimensions must be taken into account when mounting in cabinets, switchgear rooms etc.

Figure A-1 Dimension drawing of the PM 190 W 120/230 VAC load power supply module

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

23

Dimension drawing This drawing shows the module dimensions with the front cover open.
Figure A-2 Dimension drawing of the PM 190 W 120/230VAC load power supply module, side view with the front cover open

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

24

Manual, 01/2013, A5E31691095-AA

Parameter data set

B

The PM 190 W 120/230 VAC load power supply module does not provide any way of assigning parameters.

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

Manual, 01/2013, A5E31691095-AA

25

Parameter data set

Load power supply module PM 190 W 120/230 VAC (6EP1333-4BA00)

26

Manual, 01/2013, A5E31691095-AA

SIMATIC TOP connect for S7-1500 and _Pr_ef_ac_e_______________

ET200MP

_Sa_fe_ty_n_ot_es____________1_

_Do_c_um_e_n_tat_io_n _gu_id_e_______2_

_Pr_od_u_ct_o_ve_rv_ie_w_________3_

SIMATIC TOP connect for S7-1500 and ET200MP
Manual

_Co_n_ne_c_tin_g____________4_ _Wco_inrin_neg_cSt_ItMo_At_hTe_ICI/_OT_Om_Po_du_le_s ____5_ _Te_c_hn_ic_al_sp_e_cif_ic_at_ion_s______6_

_En_v_iro_nm_e_n_t ___________7_

_Di_m_en_si_on_d_ra_w_in_gs_______A__

_Ci_rc_ui_t d_ia_gr_am_s_________B__

_Sp_a_re_p_ar_ts_/ A_c_ce_s_so_rie_s____C__

_Se_rv_ic_e_an_d_S_up_p_or_t ______D__

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

 04/2014 Subject to change

Copyright © Siemens AG . All rights reserved

Preface

Purpose of this documentation
This documentation provides important information on wiring the I/O modules (input and output modules) of the S7-1500 SIMATIC controller and the ET 200MP modular I/O system with SIMATIC TOP connect system cabling.

Basic knowledge required General knowledge about automation is needed to understand this documentation.

Scope of this documentation
This documentation applies to all SIMATIC products in the S7-1500 product family with ET 200MP.

Conventions

Please also observe the notes marked as follows:
Note A note contains important information about the product described, about handling the product or about a specific section of the documentation that requires particular attention.

Recycling and disposal The products can be recycled as their components are low in pollutants. For the environmentally friendly recycling and disposal of your old device, please contact a certificated disposal service for electronic scrap.
Additional support  You will find information on the technical support service in the appendix to this documentation.  The technical documentation for the various SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).  You will find the online catalog and online ordering system on the Internet (http://mall.automation.siemens.com).

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

3

Table of contents

Preface ........................................................................................................................................ 3

1 Safety notes ................................................................................................................................. 7

2 Documentation guide ..................................................................................................................... 9

3 Product overview......................................................................................................................... 11

3.1

What is SIMATIC TOP connect system cabling?..................................................................... 11

3.2

Components........................................................................................................................... 14

3.3

Connectable I/O modules ....................................................................................................... 17

4 Connecting ................................................................................................................................. 19

4.1

Safety regulations................................................................................................................... 19

4.2

Wiring rules ............................................................................................................................ 21

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5

Connecting components ......................................................................................................... 22 Assembling the round-sheath ribbon cable ............................................................................. 24 Wiring the front connector module .......................................................................................... 26 Connecting the connecting cable and supply voltage to the front connector module................ 27 Connecting the connecting cable to the terminal module......................................................... 31 Connecting the actuators/sensors to the terminal module ....................................................... 32

4.4

Labeling terminal modules...................................................................................................... 32

5 Wiring SIMATIC TOP connect to the I/O modules............................................................................ 33

5.1

SIMATIC TOP connect components and selection guide ........................................................ 33

5.2

Note on connecting digital I/O modules................................................................................... 39

5.3

Note on connecting the 2 A output module ............................................................................. 41

5.4

Note on connecting analog I/O modules ................................................................................. 43

5.5

Shield connection of the signal cables .................................................................................... 45

6 Technical specifications ............................................................................................................... 49

6.1

Standards and approvals........................................................................................................ 49

6.2

Electromagnetic compatibility ................................................................................................. 51

6.3

Shipping and storage conditions ............................................................................................. 52

6.4

Mechanical and climatic ambient conditions............................................................................ 52

6.5

Technical specifications for front connector modules .............................................................. 54

6.6

Technical specifications for connecting cables........................................................................ 56

6.7

Technical specifications for terminal modules ......................................................................... 57

7 Environment ............................................................................................................................... 69

A Dimension drawings .................................................................................................................... 71

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

5

Table of contents

A.1

Front connector modules.........................................................................................................71

A.2

Terminal modules for 16-pin connecting cable .........................................................................80

A.3

Terminal modules for 50-pin connecting cable .........................................................................86

B Circuit diagrams.......................................................................................................................... 89

B.1

Circuit diagrams for front connector modules ...........................................................................89

B.2

Circuit diagrams, terminal modules for 16-pin connecting cable ...............................................94

B.3

Circuit diagrams, terminal modules for 50-pin connecting cable .............................................105

C Spare parts / Accessories ...........................................................................................................111

C.1

Accessories ..........................................................................................................................111

D Service and Support...................................................................................................................113

Index ........................................................................................................................................115

SIMATIC TOP connect for S7-1500 and ET200MP

6

Manual,

Safety notes

1

Warning
When electrical devices are operated, parts of these devices will necessarily carry dangerous voltages.
If these devices are not correctly handled/operated, this can result in death or severe injury as well as significant material damage.
Only appropriately qualified personnel may work on or in the vicinity of this device.
This device can only function correctly and safely if it is transported, stored, set up and installed correctly.
Before installation or maintenance work can begin, the system's main switch must be switched off and measures taken to prevent it being switched on again.
If this instruction is not followed, touching live parts can result in death or serious injury.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

7

Documentation guide

2

Introduction

The documentation for the SIMATIC products is modular in structure and covers a wide range of subjects relating to your automation system.
The complete documentation for SIMATIC products in the S7-1500 product family with ET 200MP comprises the system manual, the function manuals and the product manuals.
The TIA Selection Tool will also help you to select and order the right system cabling for your SIMATIC S7-1500.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

9

Documentation guide

Overview of documentation for SIMATIC S71500 / ET200MP
The tables below set out the documentation for SIMATIC S7-1500 / ET 200MP with the relevant content for system cabling.

Table 2- 1 Documentation for SIMATIC S7-1500 / ET 200MP system cabling

Subject

Documentation

System description S7-1500 Automation System system manual (http://support.automation.siemens.com/WW/view/en/59191792)

ET 200MP distributed I/O device system manual (http://support.automation.siemens.com/WW/view/en/59193214)

Digital modules

DQ 16 x 24 V DC/0.5A ST digital output module (http://support.automation.siemens.com/WW/view/en/59193401)

DQ 32 x 24 V DC/0.5A ST digital output module (http://support.automation.siemens.com/WW/view/en/59193400)

DQ 8 x 24 V DC/2A HF digital output module (http://support.automation.siemens.com/WW/view/en/59193089)

DI 16 x 24 V DC HF digital input module (http://support.automation.siemens.com/WW/view/en/59193001)

DI 16 x 24 V DC SRC BA digital input module (http://support.automation.siemens.com/WW/view/en/59191844)

DI 32 x 24 V DC HF digital input module (http://support.automation.siemens.com/WW/view/en/59192896)

Analog modules

AQ 4 x U/I ST analog output module (http://support.automation.siemens.com/WW/view/en/59191850)

AQ 8 x U/I HS analog output module (http://support.automation.siemens.com/WW/view/en/59193551)

AI 8 x U/I/RTD/TC ST analog input module (http://support.automation.siemens.com/WW/view/en/59193205)

AI 8 x U/I HS analog input module (http://support.automation.siemens.com/WW/view/en/59193206)

Key content · Connecting
· Block diagram · Connecting · Technical specifications · Dimension drawings
· Block diagram · Connecting · Technical specifications · Dimension drawings

SIMATIC manuals
The latest versions of all SIMATIC manuals are available on the Internet (http://www.siemens.com/automation/service&support) for download.

SIMATIC TOP connect for S7-1500 and ET200MP

10

Manual,

Product overview

3

3.1

What is SIMATIC TOP connect system cabling?

Introduction

SIMATIC TOP connect system cabling is an efficient way to connect the I/O modules (input and output modules) of the SIMATIC controller S7-1500 I/O and ET 200MP. SIMATIC TOP connect uses standardized connectors and reduces the wiring work required.
There are two types of connection:
 Fully modular connection: for connecting sensors and actuators in the field.
 Flexible connection: for simple wiring inside the control cabinet.

Area of application
SIMATIC TOP connect allows you to wire actuators and sensors "locally" to one or more terminal modules. Connection to the I/O modules takes place via connecting cable.

Figure 3-1 SIMATIC TOP connect with an S7-1500

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

11

Product overview 3.1 What is SIMATIC TOP connect system cabling?

Installation

System cabling with SIMATIC TOP connect always consists of the following components:  The front connector module with either
­ One or more 16-pin male connectors for connecting the connecting cables or ­ One 50-pin male connector for connecting the connecting cable  One or more terminal modules  One or more connecting cables with plug connectors at the ends

Fully modular connection
The fully modular connection for the system cabling comprises the following components:
 A front connector module  for connection to the SIMATIC S7-1500 or
ET200MP I/O modules
 Connecting cables , pre-assembled or by the meter  Terminal modules , for connection to sensors and actuators in the field 

Figure 3-2 Fully modular connection
The components can be combined to suit the application and connected with simple plug-in connections. The terminal modules are used instead of conventional terminal blocks and act as the interface to the sensors and actuators.
In addition to the terminal module versions with screw-type terminals or push-in systems, there are also versions with LED signaling and signal conditioning, for example, from 230 V AC to 24 V DC.

SIMATIC TOP connect for S7-1500 and ET200MP

12

Manual,

Product overview 3.1 What is SIMATIC TOP connect system cabling?
Flexible connection The flexible connection for the system cabling comprises a front connector module  for connection to the SIMATIC S7-1500 or ET200MP digital I/O modules. The front connector is already wired with 20 or 40 single wires  which connect the SIMATIC S7-1500 or ET200MP digital I/O modules directly to the sensors and actuators in the control cabinet.
Figure 3-3 Flexible connection The single wires (cross-section: 0.5 mm²) are available in different lengths and in the following designs:  H05V-K cable (PVC insulation)  H05Z-K (halogen-free insulation)  UL/CSA approval

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

13

Product overview 3.2 Components

3.2

Components

This section gives you an overview of the components of the SIMATIC TOP connect system cabling.

Components for fully modular connection
The table below lists the components for fully modular connection of the SIMATIC TOP connect system cabling.

Table 3- 1 Components for fully modular connection of SIMATIC TOP connect

Component Front connector module

Function

Figure

Front connector modules are modified front connectors and are plugged into the I/O module to be wired. The front connector module has IDC female connectors for connecting the connecting cables. Front connector modules are available in the following designs:

· For DI/DO digital modules (power supply with push-in or screw-type terminals)

· For 2A digital output 1 x 8 DO (power supply with push-in or screwtype terminals)

· For analog modules

SIMATIC TOP connect for S7-1500 and ET200MP

14

Manual,

Component Connecting cable
Terminal module

Product overview 3.2 Components

Function
Connecting cables connect the front connector module with the terminal modules. Connecting cables are available in the following versions:
· 16-pin and 50-pin round cable (shielded or unshielded), preassembled¹ Max. length 10 m
· 16-pin round-sheath ribbon cable (shielded or unshielded), for assembly by the user² Max. length 30 m
· 2 x 16-pin round-sheath ribbon cable (unshielded), for assembly by the user² Max. length 30 m
¹Pre-assembled: One IDC connector (insulation
displacement connector) (flat socket) at each end.
²For assembly by the user. See "Assembling round-sheath
ribbon cables".
Digital and analog terminal modules in S7-1500 design are available for connecting the I/O signals. These are attached to the standard mounting rail.
The terminal modules are available in the following connecting systems:
· Push-in system
· Screw-type terminals All digital terminal modules also have LED for channel display.

Figure

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

15

Product overview 3.2 Components

Accessories for fully modular connection The following components can be ordered separately or as spare part:

Table 3- 2 Accessories for fully modular connection of SIMATIC TOP connect

Accessories Labels
Shield plate
Shield connection clamps for the shield plate IDC connector (insulation displacement connector), 16-pin
Crimping pliers for IDC connectors (insulation displacement connectors)

Function
Labels (20 x 7 mm, pale turquoise) in the S7-1500 design are available for labeling the terminal modules.
The shield plate can be fitted onto the terminal module for analog signals. The terminal module with the fitted shield plate is fastened to the standard mounting rail.
The shield connection clamps provide contact plating for cable shields on the shield plate.
Round-sheath ribbon cables only:
The IDC connector (insulation displacement connector) is crimped onto the pre-assembled round-sheath ribbon cable.
The IDC connectors (insulation displacement connectors) are crimped onto the pre-assembled round-sheath ribbon cable using the crimping pliers.

Components for flexible connection
The table below lists the components for flexible connection of the SIMATIC TOP connect system cabling.

Table 3- 3 Components for flexible connection of SIMATIC TOP connect

Component
Front connector with single wires

Function
Up to 16 or 32 digital input and output channels can be connected directly to the I/O with a front connector with single wires. The single wires are fitted with screw-type contacts in the front connector and are cut off straight at the other end.
The wires can be easily identified as they are marked at regular intervals in accordance with the pin designations on the front connector. The front connectors are available in the following designs:
· For 16 DI/DO modules
· For 32 DI/DO modules

Figure

SIMATIC TOP connect for S7-1500 and ET200MP

16

Manual,

Product overview 3.3 Connectable I/O modules

3.3

Connectable I/O modules
The tables below list all input and output modules of the SIMATIC controller S7-1500 and ET 200MP that can be connected with the SIMATIC TOP connect fully modular connection.

Table 3- 4 Connectable I/O modules, for terminal modules with 16-pin connecting cables

I/O module (digital, analog) DI 16x24 VDC, 0.05 ms ... 20 ms, type 3 DI 16x24 VDC, 3 ms type 1; sourcing DI 32x24 VDC, 0.05 ms ... 20 ms, type 3 DO 16x24 VDC, 0.5 A, substitute values DQ 8x24 VDC, 2 amperes DO 32x24 VDC, 0.5 A, substitute values AO 4xU, I, 16-bit, 0.3 % AQ 8xU, I, HS correct AI 8xU, I, 14-bit, 0.3 % AI 8xU, I, R, RTD, TC, 16-bit, 0.3 %

Article number 6ES7 521-1BH00-0AB0 6ES7 521-1BH50-0AB0 6ES7 521-1BL00-0AB0 6ES7 522-1BH00-0AB0 6ES7 522-1BF00-0AB0 6ES7 522-1BL00-0AB0 6ES7 532-5HD00-0AB0 6ES7 532-5HF00-0AB0 6ES7 531-7NF10-0AB0 6ES7 531-7KF00-0AB0

Table 3- 5 Connectable I/O modules, for terminal modules with 50-pin connecting cables

I/O module (digital, analog) DI 16x24 VDC, 0.05 ms ... 20 ms, type 3 DI 16x24 VDC, 3 ms type 1; sourcing DI 32x24 VDC, 0.05 ms ... 20 ms, type 3 DO 16x24 VDC, 0.5 A, substitute values DO 32x24 VDC, 0.5 A, substitute values AO 4xU, I, 16-bit, 0.3 % AQ 8xU, I, HS correct AI 8xU, I, 14-bit, 0.3 % AI 8xU, I, R, RTD, TC, 16-bit, 0.3 %

Article number 6ES7 521-1BH00-0AB0 6ES7 521-1BH50-0AB0 6ES7 521-1BL00-0AB0 6ES7 522-1BH00-0AB0 6ES7 522-1BL00-0AB0 6ES7 532-5HD00-0AB0 6ES7 532-5HF00-0AB0 6ES7 531-7NF10-0AB0 6ES7 531-7KF00-0AB0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

17

Connecting

4

4.1

Safety regulations

Introduction

When used in plants or systems, SIMATIC TOP connect system cabling is subject to special rules and regulations in line with the area of application.
This section provides an overview of the most important rules for connecting SIMATIC TOP connect.
Rules and regulations governing the integration of the S7-1500 into a plant or system can also be found under "Rules and regulations" in the S7-1500 system manual (http://support.automation.siemens.com/WW/view/en/59191792).

Specific application
Please observe the safety and accident prevention regulations that apply to specific applications, for example, the machinery directives.

Supply voltage

Please note the following points about line voltage:
 For stationary plants and systems without an all-pole line disconnector, there must be a disconnector unit (all-pole) fitted in the building installation.
 Any fluctuation/deviation in the line voltage from the rated value must be within the permitted tolerance for all S7-1500 electric circuits.

24 V DC supply
Please note the following points for 24 V DC supply:
 Power supplies for 24 V DC must have secure electrical isolation in accordance with IEC 60364-4-41.
 Surge arrestors must be fitted to protect against lighting and overvoltage.
You will find components for lightning and overvoltage protection in the "Designing interference-free controllers" function manual (http://support.automation.siemens.com/WW/view/en/59193566).

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

19

Connecting 4.1 Safety regulations

Protection from electric shock
The S7-1500 automation system mounting rail must be connected (conductive connection) to the protective conductor to prevent electric shock.

Protection from external electrical interference
The following section details the points to note to prevent electrical interference and faults:
 You must make sure that each plant or system fitted with an S7-1500 is connected to a protective conductor with a sufficient cross-section to deal with electromagnetic interference.
 For supply, signal and bus cables, you must make sure that the cables are correctly routed and installed.
 For signal and bus cables, you must make sure that an open circuit or crossover will not result in undefined plant or system states.

Reference

Further information is available in the "Designing interference-free controllers" function manual.

SIMATIC TOP connect for S7-1500 and ET200MP

20

Manual,

Connecting 4.2 Wiring rules

4.2

Wiring rules

The table below sets out the wiring rules for connecting the I/O module supply voltage to the terminal module or front connector module.

For information on push-in connections, please see Connecting the connecting cable and supply voltage to the front connector module (Page 27).

Table 4- 1 Wiring rules

Wiring rules for ...
Connectable cable cross-sections
Solid cables Flexible cables ... Without end sleeve
... With end sleeve In accordance with DIN 46228/1
... With end sleeve In accordance with DIN 46228/4 with plastic collar
Number of cables per connection
Max. diameter of insulation
Stripped length of the cables
... Without insulating collar
... With insulating collar
Blade of the screwdriver
Tightening torque for connecting the cables

Terminal module Push-in system

Screw-type terminal

Front connector module

Push-in system

Screw-type terminal

No 0.2 to 2.5 mm² 0.2 to 2.5 mm²
0.2 to 2.5 mm²

0.5 to 2.5 mm²
(2.5 mm² with crimp in accordance with EN 60947-1)

0.5 to 1.5 mm² 0.25 to 1.5 mm²
0.25 to 0.75 mm²

0.5 to 2.5 mm² 0.25 to 1.5 mm²
0.25 to 1.5 mm²

Combination of 1 or 2 conductors to make up the cross-sections specified above (in total) in one end sleeve.

3.1 mm

3.1 mm

0.6 x 3.5

0.6 x 3.5 0.4 Nm

8 + 1 mm

10 mm

8 + 1 mm

10 mm

SD 0.6 x 3.5 DIN 5264 SD 0.6 x 3.5 DIN 5264

0.4 Nm

See also

Connecting the connecting cable and supply voltage to the front connector module (Page 27)

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

21

Connecting 4.3 Connecting components

4.3

Connecting components

Introduction

WARNING Risk of electrocution Touching live parts can result in death or serious injury. Before you connect a module, make sure that it is disconnected from the power supply.
The procedure for connecting the front connector modules is basically the same as for the standard front connectors. The connection of standard front connectors is described in detail in the S7-1500 system manual under "Connecting" (http://support.automation.siemens.com/WW/view/en/59191792). Before connecting the front connector modules, read the following sections of the S7-1500 system manual:  Wiring front connectors for I/O modules without shield connection element  Preparing and wiring front connectors for I/O modules without shield connection element  Wiring front connectors for I/O modules with shield connection element  Preparing front connectors for I/O modules with shield connection element  Bringing the front connector into final position

SIMATIC TOP connect for S7-1500 and ET200MP

22

Manual,

Connecting 4.3 Connecting components

Abbreviations used The meanings of the abbreviations in the figures below are as follows:

AI BR M L+ Mn ICn+/ICnUn+/UnIn+/InCOMP+/COMPIComp+/ICompUV UCM UISO MANA

Analog input module Potential bridges Connection for ground Connection for supply voltage Measuring input, channel n Current output power supply, thermal resistance (RTD), channel n Voltage input, channel n Current input, channel n Compensation input Current output power supply, compensation Feed voltage at channel for 2-wire transducer Potential difference between reference points of the measuring inputs / the analog ground MANA Potential difference between reference points of the measuring inputs and the central grounding point Reference point of the analog ground

Wiring sequence

Step 1
2 3 4

Action Prepare the connecting cable

Assembling the round-sheath ribbon cable

Wiring the front connector module

Round-sheath ribbon cable already assembled

Connecting the connecting cable to the terminal module

Wire the terminal module inputs and outputs

See section Assembling the round-sheath ribbon cable (Page 24) ­
Wiring the front connector module (Page 26) Connecting the connecting cable and supply voltage to the front connector module (Page 27) Connecting the connecting cable to the terminal module (Page 31)

See also

Assembling the round-sheath ribbon cable (Page 24) Wiring the front connector module (Page 26) Connecting the connecting cable and supply voltage to the front connector module (Page 27) Connecting the connecting cable to the terminal module (Page 31)

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

23

Connecting 4.3 Connecting components

4.3.1

Assembling the round-sheath ribbon cable
Note Connecting cable assembly is only required for round-sheath ribbon cables (16-pin and 2 x 16-pin). Round cables are already assembled.

Maximum cable length
The length of the connecting cable (round-sheath ribbon cable) between the SIMATIC controller and the terminal modules must not exceed 30 m.

Connecting the round-sheath ribbon cable to connectors
Note Each connecting end of the round-sheath ribbon cable needs to be fitted with connectors for connecting to the front connector module and the terminal module. Follow the steps below for each of the ends.

1. Cut the round-sheath ribbon cable to the required length. The maximum length is 30 m.
2. Remove part of the cable sheath at each end of the round-sheath ribbon cable. The table below sets out the length of sheathing to be removed.

Connection end

1 x 16 wires shielded/unshielded

Top connector, front connector module

Approx. 130 mm

Bottom connector,

Approx. 80 mm

front connector module

Terminal module connector

Approx. 40 mm

2 x 16 wires, unshielded Outer flat ribbon cable Inner flat ribbon cable Approx. 130 mm

Approx. 80 mm

100 mm

100 mm

SIMATIC TOP connect for S7-1500 and ET200MP

24

Manual,

Connecting 4.3 Connecting components
3. Thread the round-sheath ribbon cable into the 16-pin connector at the "terminal module connector" connection side.
NOTICE Incorrectly connecting the round-sheath ribbon cable will cause malfunctions. There is a mark on the connector to prevent incorrect connection.
When you insert the cable, make sure that the triangular mark  is pointing to the wire marked , as shown in the figure below.

Figure 4-1 Wire marked to prevent incorrect connection 4. Use the crimping pliers to crimp the end of the cable into the connector. 5. Run the round-sheath ribbon cable back over the top of the connector.
Figure 4-2 Running round-sheath ribbon cable back over top of connector 6. Lay the round-sheath ribbon cable up against the connector.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

25

Connecting 4.3 Connecting components
7. Latch the cable grip  on the connector into place.

Figure 4-3 Fitting the strain relief
8. Repeat steps 3 ­ 5 to connect the round-sheath cable connector to the "lower connector, front connector module" and the "upper connector, front connector module" connection ends.

4.3.2

Wiring the front connector module

Introduction

This section explains how to wire the front connector modules.
Note Please also read Wiring SIMATIC TOP connect to the I/O modules (Page 33) for special connection examples and the criteria for selecting front connector modules.

Functions of the front connector module
The front connector module is used to connect the connecting cable to the I/O module. The supply voltage cables for the modules can also be connected to the front connector module.

See also

Wiring SIMATIC TOP connect to the I/O modules (Page 33)

SIMATIC TOP connect for S7-1500 and ET200MP

26

Manual,

Connecting 4.3 Connecting components

4.3.3

Connecting the connecting cable and supply voltage to the front connector module

Requirements

 Supply voltages are switched off
 Cables have been prepared in line with the terminal system used; see the wiring rules under Wiring rules (Page 21).

Connecting the connecting cable to the front connector module
WARNING Risk of electrocution Touching live parts can result in death or serious injury. Before you connect a module, make sure that it is disconnected from the power supply.

Note The example here shows the connection of a 16-pin connecting cable to the front connector module. Follow the same procedure as applicable for 50-pin connecting cables.
1. Switch off the load current supply. 2. Lift up the front flap of the I/O module until it snaps into place.

Figure 4-4 Front flap of the I/O module open (example)

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

27

Connecting 4.3 Connecting components
3. Place the front connector in the pre-wiring position. This is done by fitting the bottom of the front connector into the I/O module and swiveling up the front connector until it latches into place.
Figure 4-5 Front connector module in the pre-wiring position (example)
Note In this position, the front connector module is still protruding from the I/O module (see figure above). The front connector module and I/O module are not yet electrically connected. The pre-wiring position makes it easy to wire the front connector module. 4. If required, connect the cables for the I/O module supply voltage to the front connector module. 5. Connect the connecting cables to the front connector module.

Figure 4-6 Connecting the supply voltage cables and connecting cables to the front connector module (example)

SIMATIC TOP connect for S7-1500 and ET200MP

28

Manual,

Connecting 4.3 Connecting components
Note Make sure that you follow the correct assignment when connecting the supply voltage cables for the I/O module and connecting cables to the front connector module: -The assignment of supply voltage cables to connecting cable connections -The assignment of connecting cable connections to the address bytes of the module The correct assignment is set out in the diagram and key below.

Number
       

Connection to Supply voltage + Supply voltage + Supply voltage Supply voltage Supply voltage + Supply voltage + Supply voltage Supply voltage -

Assigned byte a c a c b d b d

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

29

Connecting 4.3 Connecting components
6. With push-in terminal: Insert the wire fitted with end sleeve into the duct. 7. When using a round-sheath ribbon cable:
Twist down each connecting cable by 90° and give it one turn. 8. Insert the strain relief (cable tie) provided for the cabling into the front connector module.
The strain relief holds the cabling (supply voltage cables and connecting cables) in the cable storage space of the I/O module.

See also

Figure 4-7 Fitted strain relief (example) 9. Run the connecting cables and the cables for the I/O module supply voltage down and
out of the I/O module.
Wiring rules (Page 21)

SIMATIC TOP connect for S7-1500 and ET200MP

30

Manual,

Connecting 4.3 Connecting components

4.3.4

Connecting the connecting cable to the terminal module

Introduction

This section details how to wire the terminal modules.
Note Please also follow the instructions in the section Wiring SIMATIC TOP connect to the I/O modules (Page 33). These include the selection criteria for the terminal modules and information on wiring.

Terminal module function The terminal module is the interface between the connection cables from the field and the SIMATIC S7-1500 or ET200MP. The supply voltage cables for the I/O modules can also be connected to the terminal module.
Fitting the terminal module and connecting cable 1. Fasten the terminal module to a 35 mm standard mounting rail (DIN EN 60715). 2. Connect the connecting cable to the terminal module as shown in the figure below.

See also

Figure 4-8 Connecting the connecting cable to the terminal module Wiring SIMATIC TOP connect to the I/O modules (Page 33)

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

31

Connecting 4.4 Labeling terminal modules

4.3.5

Connecting the actuators/sensors to the terminal module
The connecting cables of the actuators/sensors are connected to the terminals of the terminal module. Terminal modules are available with the following types of terminal:  Screw-type terminal  Push-in system

4.4

Labeling terminal modules

Introduction

The terminal modules are identified using labels. The labels are perforated and are attached to the front flap of the terminal module.
The following types of labels are available:
 For terminal modules in S7-1500 design

Preparing and attaching labels 1. Tear out the completed label. 2. Insert the label into the holder  on the outside of the front flap.

Figure 4-9 Label holder with labels (example)

SIMATIC TOP connect for S7-1500 and ET200MP

32

Manual,

Wiring SIMATIC TOP connect to the I/O modules

5

Introduction

You can use SIMATIC TOP connect system cabling to wire I/O modules with actuators/sensors. The SIMATIC TOP connect components used depend on the following factors:
 The I/O module to be wired and
 The connection system (screw-type terminal / push-in system, 1-wire, 3-wire, 2 A connection, relay or optocoupler).

5.1

SIMATIC TOP connect components and selection guide

Components for 16-pin connecting cable
The table below lists the SIMATIC TOP connect system cabling components for a 16-pin connecting cable.

Components of SIMATIC TOP connect system cabling

Front connector modules

...for digital I/O modules

...for 2 A output module

...for analog modules

Voltage supply with - Screw-type terminals - Push-in system
Voltage supply with - Screw-type terminals - Push-in system

6ES7921-5AB20-0AA0 6ES7921-5AH20-0AA0
6ES7921-5AD00-0AA0 6ES7921-5AJ00-0AA0 6ES7921-5AK20-0AA0

Terminal modules TP1
TP2 TP3
TPF

...digital, for 1-wire connection, without LED ...digital, for 1-wire connection, with LED
...digital, for 2-ampere modules, without LED, digital ...digital, for 3-wire connection, without LED ...digital, for 3-wire connection, with LED
...for 3-wire connection, with LED, digital and fuse in the signal path

- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in terminals

6ES7924-0AA20-0AA0 6ES7924-0AA20-0AC0
6ES7924-0AA20-0BA0 6ES7924-0AA20-0BC0
6ES7924-0BB20-0AA0 6ES7924-0BB20-0AC0
6ES7924-0CA20-0AA0 6ES7924-0CA20-0AC0
6ES7924-0CA20-0BA0 6ES7924-0CA20-0BC0
6ES7924-0CL20-0BA0 6ES7924-0CL20-0BC0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

33

Wiring SIMATIC TOP connect to the I/O modules 5.1 SIMATIC TOP connect components and selection guide

Components of SIMATIC TOP connect system cabling
TPS ...for 3-wire connection with LED, digital and switch in the signal path
TPA ...for analog modules, without LED

TPRi 230 V
TPRi 110 V
TPRo

Digital, with LED Digital, without LED Digital, with LED

TPOo Digital, with LED

- Screw-type terminal - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system
- Screw-type terminals - Push-in system

6ES7924-0CH20-0BA0 6ES7924-0CH20-0BC0
6ES7924-0CC20-0AA0 6ES7924-0CC20-0AC0
6ES7924-0BE20-0BA0 6ES7924-0BE20-0BC0
6ES7924-0BG20-0BA0 6ES7924-0BG20-0BC0
6ES7924-0BD20-0BA0 6ES7924-0BD20-0BC0
6ES7924-0BF20-0BA0 6ES7924-0BF20-0BC0

Pre-assembled round cable
Round-sheath ribbon cable 1 x 16-pin, 0.14 mm² Round-sheath ribbon cable 2 x 16-pin, 0.14 mm²

Length 0.5 m 1.0 m 1.5 m 2.0 m 2.5 m 3.0 m 4.0 m 5.0 m 6.5 m 8.0 m 10.0 m Length 30 m 60 m 30 m 60 m

Unshielded 6ES7923-0BA50-0CB0 6ES7923-0BB00-0CB0 6ES7923-0BB50-0CB0 6ES7923-0BC00-0CB0 6ES7923-0BC50-0CB0 6ES7923-0BD00-0CB0 6ES7923-0BE00-0CB0 6ES7923-0BF00-0CB0 6ES7923-0BG50-0CB0 6ES7923-0BJ00-0CB0 6ES7923-0CB00-0CB0 Unshielded 6ES7923-0CD00-0AA0 6ES7923-0CG00-0AA0 6ES7923-2CD00-0AA0 6ES7923-2CG00-0AA0

Shielded ...not available 6ES7923-0BB00-0DB0 ...not available 6ES7923-0BC00-0DB0 6ES7923-0BC50-0DB0 6ES7923-0BD00-0DB0 6ES7923-0BE00-0DB0 6ES7923-0BF00-0DB0 6ES7923-0BG50-0DB0 6ES7923-0BJ00-0DB0 6ES7923-0CB00-0DB0 Shielded 6ES7923-0CD00-0BA0 6ES7923-0CG00-0BA0 ...not available ...not available

Accessories

16-pin IDC connectors for the round-sheath ribbon cable (x 8)
Crimping pliers for fitting the 16-pin IDC connectors
20 x 7 mm label, pale turquoise, for fitting to terminal modules (x 340)

6ES7921-3BE10-0AA0 6ES7928-0AA00-0AA0 3RT1900-1SB20

SIMATIC TOP connect for S7-1500 and ET200MP

34

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.1 SIMATIC TOP connect components and selection guide

Selection guide for 16-pin connecting cable
The tables below list the SIMATIC TOP connect system cabling components which you can use to wire the I/O modules of the automation system.

TP1

TP2 TP3

With With Withou With With

out LED t LED out LED

LED

LED

TPF TPS TPA TPRi 230 V
LED LED With With fuse switch out LED
LED

TPRi 110 V
With LED

TPRo TPOo
With With LED LED

...I/O modules, connectable with...

Front connector module for ...

X X

X

X

X

X

X

X

DI 16 x 24 VDC HF 6ES7521-1BH000AB0

X X

DI 16 x 24 VDC SRC BA 6ES7521-1BH500AB0

X X

X

X

X

X

X

X

DI 32 x 24 VDC HF 6ES7521-1BL000AB0

X X

X

X

X

X

X

X

DQ 16 x 24 VDC/0.5A ST 6ES7522-1BH000AB0

X X

X

X

X

X

X

X

DQ 32 x 24 VDC/0.5A ST 6ES7522-1BL000AB0

Front connector module 6ES7921-5AB20-0AA0 6ES7921-5AH20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

35

Manual,

36

SIMATIC TOP connect for S7-1500 and ET200MP

X

X

X X

Front connector module 6ES7921-5AK20-0AA0

Front connector module 6ES7921-5AD00-0AA0 6ES7921-5AJ00-0AA0

AQ 8 x U/I ST

AQ 4 x U/I ST

AI 8 x U/I HS

AI 8 x U/I/RTD/TC ST DQ 8 x 24 VDC/2A HF

6ES7532-5HF00-0AB0 6ES7532-5HD00-0AB0 6ES7531-7NF10-0AB0 6ES7531-7KF00-0AB0 6ES7522-1BF00-0AB0

X

TPRo TPOo
With With LED LED

TPRi 110 V
With LED

TPF TPS TPA TPRi 230 V
LED LED With With fuse switch out LED
LED

LED

LED

out LED t LED out LED

Front connector module for ...
...I/O modules, connectable with...

With With Withou With With

TP2 TP3

TP1

Wiring SIMATIC TOP connect to the I/O modules 5.1 SIMATIC TOP connect components and selection guide

Wiring SIMATIC TOP connect to the I/O modules 5.1 SIMATIC TOP connect components and selection guide

Components for 50-pin connecting cable
The table below lists the SIMATIC TOP connect system cabling components for a 50-pin connecting cable.

Components of SIMATIC TOP connect system cabling

Front connector modules

...for digital I/O modules

...for analog modules

Voltage supply with - Screw-type terminals - Push-in system

6ES7921-5CB20-0AA0 6ES7921-5CH20-0AA0
6ES7921-5CK20-0AA0

Terminal modules TP1 TP3 TPA

...digital, for 1-wire connection, without - Screw-type terminals

LED

- Push-in system

...digital, for 1-wire connection, with LED

- Screw-type terminals - Push-in system

...digital, for 3-wire connection, without - Screw-type terminals

LED

- Push-in system

...digital, for 3-wire connection, with LED

- Screw-type terminals - Push-in system

...for analog modules, without LED

- Screw-type terminals - Push-in system

6ES7924-2AA20-0AA0 6ES7924-2AA20-0AC0
6ES7924-2AA20-0BA0 6ES7924-2AA20-0BC0
6ES7924-2CA20-0AA0 6ES7924-2CA20-0AC0
6ES7924-2CA20-0BA0 6ES7924-2CA20-0BC0
6ES7924-2CC20-0AA0 6ES7924-2CC20-0AC0

Pre-assembled round cable with IDC connectors

Length 0.5 m 1.0 m 1.5 m 2.0 m 2.5 m 3.0 m 4.0 m 5.0 m 6.5 m 8.0 m 10.0 m

Unshielded 6ES7923-5BA50-0CB0 6ES7923-5BB00-0CB0 6ES7923-5BB50-0CB0 6ES7923-5BC00-0CB0 6ES7923-5BC50-0CB0 6ES7923-5BD00-0CB0 6ES7923-5BE00-0CB0 6ES7923-5BF00-0CB0 6ES7923-5BG50-0CB0 6ES7923-5BJ00-0CB0 6ES7923-5CB00-0CB0

Shielded ...not available 6ES7923-5BB00-0DB0 ...not available 6ES7923-5BC00-0DB0 6ES7923-5BC50-0DB0 6ES7923-5BD00-0DB0 6ES7923-5BE00-0DB0 6ES7923-5BF00-0DB0 6ES7923-5BG50-0DB0 6ES7923-5BJ00-0DB0 6ES7923-5CB00-0DB0

Accessories

20 x 7 mm label, pale turquoise, for fitting to terminal modules (x 340)

3RT1900-1SB20

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

37

Wiring SIMATIC TOP connect to the I/O modules 5.1 SIMATIC TOP connect components and selection guide

Selection guide for 50-pin connecting cable
The tables below list the SIMATIC TOP connect system cabling components which you can use to wire the I/O modules of the automation system.

Front connector module for ... Front connector module 6ES7921-5CB20-0AA0 6ES7921-5CH20-0AA0
Front connector module 6ES7921-5CK20-0AA0

...I/O modules, connectable with...
DI 16 x 24 VDC HF 6ES7521-1BH00-0AB0 DI 16 x 24 VDC SRC BA 6ES7521-1BH50-0AB0
DI 32 x 24 VDC HF 6ES7521-1BL00-0AB0 DQ 16 x 24 VDC/0.5A ST 6ES7522-1BH00-0AB0 DQ 32 x 24 VDC/0.5A ST 6ES7522-1BL00-0AB0 AI 8 x U/I/RTD/TC ST 6ES7531-7KF00-0AB0
AI 8 x U/I HS 6ES7531-7NF10-0AB0
AQ 4 x U/I ST 6ES7532-5HD00-0AB0
AQ 8 x U/I ST 6ES7532-5HF00-0AB0

TP1
Without LED

With LED

X

X

X

X

X

X

X

X

X

TP3
Without LED

With LED

X

X

X

X

X

X

X

X

X

TPA Without LED
X X X X

1-wire or 3-wire connection
With a 1-wire or 3-wire connection, you can connect the supply voltage for the I/O modules either at the front connector module or at the terminal module.

SIMATIC TOP connect for S7-1500 and ET200MP

38

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.2 Note on connecting digital I/O modules

5.2

Note on connecting digital I/O modules

Introduction

This section contains information on connecting digital I/O modules with SIMATIC TOP connect.
Note The information provided here does not apply to the 2 A output module. For connecting the 2 A output module, please see Note on connecting the 2 A output module (Page 41).

Using potential bridges If you want to supply load groups with the same potential (non-isolated), use the potential bridges provided with the front connector module. This saves you having to wire a terminal point with two wires.
The detailed application can be found in the manual for the I/O module to be wired, described for the front connector. You can find an overview of this documentation under "Documentation guide (Page 9)". The procedure described in the front connector documentation can also be followed for the front connector modules.
The potential bridges can be wired either to the front connector module or to the terminal module.
NOTICE High continuous current damages components.
The current must not exceed the maximum current carrying capacity of 8 A per potential bridge.
Make sure when you wire the potential bridges that no continuous current of over 8 A per potential bridge can occur.
Note
The potential bridges are usually inserted in the front connector module.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

39

Wiring SIMATIC TOP connect to the I/O modules 5.2 Note on connecting digital I/O modules
Terminal module assignment for 1-wire connection

Front view of terminal module, 1-wire connection

Terminal assignment
Top row, terminals for:
· 2 x M for ground potential  · Bit 0; 2; 4; 6 

Bottom row, terminals for:
· 2 x L+ for positive potential  · Bit 1; 3; 5; 7 

Terminal module assignment for 3-wire connection

Front view of terminal module, 3-wire connection

Terminal assignment
Top row, terminals for:
· Bits 0 to 7 

Middle row, terminals for:
· M potential (all bridged internally) 

Bottom row, terminals for:
· L+ potential (all bridged internally) 

See also

Note on connecting the 2 A output module (Page 41) Documentation guide (Page 9)

SIMATIC TOP connect for S7-1500 and ET200MP

40

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.3 Note on connecting the 2 A output module

5.3

Note on connecting the 2 A output module

Introduction

This section contains information on connecting the 2 A output module (2 amperes) with SIMATIC TOP connect.

Connecting the supply voltage
Note Before starting work, make sure you have read the wiring rules in Wiring rules (Page 21).
The potential supply must be at the front connector module, and a supplementary ground connection to the terminal module is required for this purpose. To create this ground connection, follow these steps. 1. Connect the supply voltage to each of the two potential clamps on the front connector
module using separate cables. 2. In addition to the connecting cable, connect one cable for M1 or M2 to each terminal
module. 3. Connect M1 / M2 with a separate cable to the front connector module and terminal
module. The potential of M1 and M2 can be bridged.

 2-ampere front connector module  Standard connecting cable between front connector module and terminal module  Additional connecting cable for M1 and M2  2 A output module

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

41

Wiring SIMATIC TOP connect to the I/O modules 5.3 Note on connecting the 2 A output module
Terminal module assignment for 2 A connection

Front view of 2 A terminal module

Terminal assignment, left Top row
Terminals 0 to 3 : CH0 to CH3

Terminal assignment, right Top row
Terminals 0 to 3 : CH4 to CH7

Middle row
M1 potential  (all "M1" terminal
points bridged internally)

Middle row
M2 potential  (all "M2" terminal
points bridged internally)

Bottom row
M1 potential  (all "M1" terminal
points bridged internally)

Bottom row
M2 potential  (all "M2" terminal
points bridged internally)

See also

Wiring rules (Page 21)

SIMATIC TOP connect for S7-1500 and ET200MP

42

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.4 Note on connecting analog I/O modules

5.4

Note on connecting analog I/O modules

Up to four analog terminal modules can be connected to the 40 clamping points of an analog I/O module. Two terminal modules can be connected to each side of the I/O module.

The alphabetically labeled clamping points of the analog terminal module are connected to the numbered clamping points of the I/O module as shown in the table below.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

43

Wiring SIMATIC TOP connect to the I/O modules 5.4 Note on connecting analog I/O modules

Terminal module

A B C D E F G H

Terminal module

A B C D E F G H

Clamping points I/O module, left I/O module, right

1

21

2

22

3

23

4

24

5

25

6

26

7

27

8

28

9

29

10

30

11

31

12

32

13

33

14

34

15

35

16

36

17

37

18

38

19

39

20

40

Terminal module

A B C D E F G H

Terminal module

A B C D E F G H

Notes
Clamping points 17 to 20 and 37 to 40 of the I/O module are also labeled 17 to 20 and 37 to 40 on the analog terminal module.
Clamping points L+; M; +; -; of the analog terminal module are auxiliary terminals and are not connected to the I/O module.
There is an electrical connection between all clamping points with the same designation (labeling) on the analog terminal module (multiplication terminal).

SIMATIC TOP connect for S7-1500 and ET200MP

44

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.5 Shield connection of the signal cables

5.5

Shield connection of the signal cables

Shield connection options There are two options for grounding the signal cable shield:  At the I/O module with the shield connection element of the front connector/front connector module; see S7-1500 function manual, Connections, Front connectors (http://support.automation.siemens.com/WW/view/en/59191792) for the I/O modules.  At the terminal module directly with a shield plate; see the description below.
Attaching the shield plate to the terminal module The shield plate is used to connect the shield. 1. Position the shield plate on the back of the terminal module with the gaps in the shield plate fitted over the corresponding parts on the terminal module.

Figure 5-1 Fit the shield plate over the back of the terminal module (example)

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

45

Wiring SIMATIC TOP connect to the I/O modules 5.5 Shield connection of the signal cables
2. Push the shield plate up against the terminal module and up.

Figure 5-2 Position shield plate and push up
3. Check that the latch  has fully engaged.
The latch holds the shield plate in the correct position.

Figure 5-3 Shield plate with latch engaged
4. Mount the terminal module with attached shield plate on the standard mounting rail. The shield plate connects the terminal module to the grounded mounting rail.
5. Position the shield of the signal cables with the shield connection terminals on the shield plate.

SIMATIC TOP connect for S7-1500 and ET200MP

46

Manual,

Wiring SIMATIC TOP connect to the I/O modules 5.5 Shield connection of the signal cables
Connecting the connecting cable to the shield at the front connector module The connecting cables have two pre-prepared points for shield connection. These points are protected by a protective sheath (shrink-on sheath) on delivery, which will need to be removed at the required place.
Which shield connection point you need depends on the location of the connection in the front connector module. For connection in the upper position, use the shield connection point
shown in . For connection in the upper position, use the shield connection point shown in .

Figure 5-4 Shield connection in different connection positions
Procedure 1. Uncover the cable sheath by removing the protective sheath (shrink-on sheath) at the
required place. 2. Push the shield clamp over the connecting cable shield. 3. Connect the connecting cable to the front connector module. 4. Push the shield clamp up over the shield clip to connect the cable shield
.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

47

Technical specifications

6

Introduction

The technical specifications contain:
 The standards and test values satisfied by the terminal modules of the SIMATIC TOP connect system cabling.
 The technical specifications for the components of the SIMATIC TOP connect system cabling.

Technical specifications of the I/O modules
The technical specifications of the I/O modules are also available in the product manuals for the relevant modules. Please see the overview of documentation on SIMATIC TOP connect system cabling under Documentation guide (Page 9).
If the information in this document differs from that in the product manuals, the product manuals take priority.

See also

Documentation guide (Page 9)

6.1

Standards and approvals

Introduction

This section sets out the standards and test values satisfied by the terminal modules of the SIMATIC TOP connect system cabling.
Note Components of the SIMATIC TOP connect system cabling The valid marks and approvals are printed on the components of the SIMATIC TOP connect system cabling.

Reference

The corresponding certificates for the marks and approvals can be found on the Internet under Service & Support (http://www.siemens.com/automation/service&support).

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

49

Technical specifications 6.1 Standards and approvals

CE marking

The SIMATIC TOP connect cabling system satisfies the requirements and objectives of the following EC directives and satisfies the Harmonized European Standards (EN) for Programmable Logic Controllers which were published in the official journals of the European Community:
 2006/95/EC "Electrical Equipment Designed for Use within Certain Voltage Limits" (LowVoltage Directive)
 2004/108/EC "Electromagnetic Compatibility" (EMC Directive)

The EC declarations of conformity are held for the competent authorities by: Siemens Aktiengesellschaft Industry Sector I IA AS FA WF AMB Postfach 1963 D-92209 Amberg

These files are also available for download from the Customer Support pages, under "Declaration of Conformity".

cULus approval Underwriters Laboratories Inc., to  UL 508 (Industrial Control Equipment)  C22.2 No. 142 (Process Control Equipment)

IEC 61131

The SIMATIC TOP connect system cabling meets the requirements and criteria of the IEC 61131-2 standard (Programmable Logic Controllers, Part 2: Equipment Requirements and Tests).

Industrial applications SIMATIC products are designed for industrial applications.

Field of application Industry

Noise emission requirements EN 61000-6-4: 2007

Noise immunity requirements EN 61000-6-2: 2005

SIMATIC TOP connect for S7-1500 and ET200MP

50

Manual,

Technical specifications 6.2 Electromagnetic compatibility
Use in residential areas
Note SIMATIC TOP connect system cabling and the S7-1500 automation system are designed for use in industrial areas; their use in residential areas could interfere with radio and TV reception.
To operate SIMATIC TOP connect system cabling and S7-1500 automation systems in a residential area, the RF emission must comply with Limit Value Class B to EN 55011. Suitable measures for achieving RF interference Limit Class B include, for example:  Fitting the cabling system and automation system in grounded control cabinets/control
boxes  Use of noise filters in the supply lines

6.2

Electromagnetic compatibility

Definition

Electromagnetic compatibility (EMC) is the capacity of an electrical installation to function satisfactorily in its electromagnetic environment without affecting that environment. SIMATIC TOP connect system cabling also satisfies, among others, the requirements of EMC legislation for the European internal market. A prerequisite is S7-1500 system compliance with specifications and directives for electrical design.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

51

Technical specifications 6.3 Shipping and storage conditions

6.3

Shipping and storage conditions

Introduction

SIMATIC TOP connect system cabling meets IEC 61131-2 requirements for shipping and storage conditions. The specifications below apply to modules that are shipped or stored in their original packaging.

Shipping and storage conditions for modules

Type of condition Drop test (in transport package) Temperature Air pressure
Relative humidity Sinusoidal vibrations in accordance with IEC 60068-2-6 Shock conforming to IEC 60068-2-27

Permissible range 1 m From -40 °C to +70 °C From 1080 to 660 hPa (corresponds to an altitude of -1000 to 3500 m) 5% to 95%, without condensation 5 to 9 Hz: 3.5 mm 9 to 500 Hz: 9.8 m/s² 250 m/s², 6 ms, 1000 shocks

6.4

Mechanical and climatic ambient conditions

Operating conditions SIMATIC TOP connect system cabling is designed for stationary use in weather-proof locations. The conditions of use meet the requirements of DIN IEC 60721-3-3:
 Class 3M3 (mechanical requirements)
 Class 3K3 (climatic requirements)

SIMATIC TOP connect for S7-1500 and ET200MP

52

Manual,

Technical specifications 6.4 Mechanical and climatic ambient conditions

Testing mechanical ambient conditions

Testing for... Vibration
Shock Continuous shock

Test standard Vibration test complying with IEC 60068-2-6 (sine)
Shock, tested to IEC 60068-2-27
Shock, tested to IEC 60068-2-27

Remarks
Vibration type: Frequency cycles with a rate of change of 1 octave/minute. 5 Hz  f  8.4 Hz, constant amplitude 7 mm
8.4 Hz  f  150 Hz, constant acceleration 2 g
Vibration duration: 10 frequency cycles per axis in each of the 3 axes which are perpendicular to each other
Type of shock: Half-sine
Shock intensity: 15 g peak value, 11 ms duration
Direction of shock: 3 shocks each in +/­ direction in each of the three perpendicular axes
Type of shock: Half-sine shock intensity: 250 m/s2 peak value, 6 ms duration
Direction of shock: 1000 shocks each in +/­ direction in each of the three perpendicular axes

Reduction of vibrations
If your SIMATIC TOP connect system cabling is exposed to severe shocks or vibration, take appropriate measures to reduce the acceleration or amplitude. We recommend fitting the SIMATIC TOP connect cabling system to shock-absorbent material (for example, metal shock absorbers).

Ambient climatic conditions
SIMATIC TOP connect system cabling components may only be used in the ambient climatic conditions specified in the technical specifications.
Please see the following sections.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

53

Technical specifications 6.5 Technical specifications for front connector modules

6.5

Technical specifications for front connector modules

Table 6- 1 Technical specifications front connector module for digital input and output modules

For digital input and output modules, for 16-pin connecting cable: 6ES7921-5AB20-0AA0 and 6ES7921-5AH20-0AA0

Type of supply voltage

DC

Rated value

24 V

Lower limit of admissible range (DC)

20.4 V

Upper limit of admissible range (DC)

28.8 V

Max. permissible continuous current

Per connector pin

1 A

Max. permissible total current per group

At 40 °C (mounted horizontally)

3 A

At 60 °C (mounted horizontally)

2 A

At 40 °C (mounted vertically)

2 A

Permissible ambient temperature

0 to 60 °C

Table 6- 2 Technical specifications front connector module for digital output modules (2-ampere)

For digital output modules, for 16-pin connecting cable: 6ES7921-5AD00-0AA0 and 6ES7921-5AJ000AA0

Type of supply voltage

DC

Rated value

24 V

Lower limit of admissible range (DC)

20.4 V

Upper limit of admissible range (DC)

28.8 V

Max. permissible continuous current

Per connector pin

1 A

Max. permissible total current per group

At 40 °C (mounted horizontally)

6 A

At 60 °C (mounted horizontally)

3 A

At 25 °C (mounted vertically)

6 A

At 40 °C (mounted vertically)

2.5 A

Permissible ambient temperature

0 to 60 °C

SIMATIC TOP connect for S7-1500 and ET200MP

54

Manual,

Technical specifications 6.5 Technical specifications for front connector modules

Table 6- 3 Technical specifications front connector module for analog input and output modules

For analog input and output modules, for 16-pin connecting cable: 6ES7921-5AK20-0AA0

Type of supply voltage

DC

Rated value

24 V

Lower limit of admissible range (DC)

20.4 V

Upper limit of admissible range (DC)

28.8 V

Max. permissible continuous current

Per connector pin

0.5 A

Permissible ambient temperature

0 to 60 °C

Table 6- 4 Technical specifications front connector module for digital input and output modules

For digital input and output modules, for 50-pin connecting cable: 6ES7921-5CB20-0AA0 and 6ES7921-5CH20-0AA0

Type of supply voltage

DC

Rated value

24 V

Lower limit of admissible range (DC)

20.4 V

Upper limit of admissible range (DC)

28.8 V

Max. permissible continuous current

Per connector pin

1 A

Max. permissible total current per group

At 40 °C (mounted horizontally)

2 A

At 60 °C (mounted horizontally)

2 A

At 40 °C (mounted vertically)

2 A

Permissible ambient temperature

0 to 60 °C

Table 6- 5 Technical specifications front connector module for analog input and output modules

For analog input and output modules, for 50-pin connecting cable: 6ES7921-5CK20-0AA0

Type of supply voltage

DC

Rated value

24 V

Lower limit of admissible range (DC)

20.4 V

Upper limit of admissible range (DC)

28.8 V

Max. permissible continuous current

Per connector pin

0.5 A

Permissible ambient temperature

0 to 60 °C

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

55

Technical specifications 6.6 Technical specifications for connecting cables

6.6

Technical specifications for connecting cables

Table 6- 6 Connecting cables

For 6ES7923 - * connecting cables

Type of supply voltage

DC

Operating voltage

max. 60 V

Max. permissible continuous current

Per signal line

1 A

Permissible total current per group

16-pin

4 A / byte

50-pin

2 A / byte

External diameter of pre-fabricated round cable

Unshielded

16-pin: Approx. 6.5 mm

50-pin: Approx. 10.5 mm

Shielded

16-pin: Approx. 7 mm

50-pin: Approx. 11 mm

External diameter of round-sheath ribbon cable to be assembled

1 x 16-pin, unshielded

Approx. 9.5 mm

1 x 16-pin, shielded

Approx. 10.5 mm

2 x 16-pin, unshielded

Approx. 11.5 mm

Permissible ambient temperature

0 to 60 °C

SIMATIC TOP connect for S7-1500 and ET200MP

56

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

6.7

Technical specifications for terminal modules

Note
The "x" in the article numbers is a placeholder for the terminal module version with push-in or screw-type terminals.
In place of the "x", there is either an "A" for the version with screw-type terminals or a "C" for the version with a push-in system.

Terminal modules for 16-pin connecting cable

Table 6- 7 Technical specifications for terminal modules TP1 and TP3 without LED

Terminal modules TP1 and TP3, 16-pin

1-wire connection without LED 6ES7924-0AA20-0Ax0

3-wire initiators without LED 6ES7924-0CA20-0Ax0

Type of supply voltage

DC

Operating voltage

max. 50 V

Max. permissible continuous current per signal 1 A

Max. permissible total current (power supply)

4 A / byte

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2,

CSA C22.2 No 142 UL 508, VDE 0160,

Overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

1-wire connection

Approx. 40 x 58 x 50

6ES7924-0AA20-0Ax0

For 3-wire initiators

Approx. 57 x 76 x 60

6ES7924-0CA20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

57

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 8 Technical specifications for terminal modules TP1 and TP3 with LED

Terminal modules TP1 and TP3, 16-pin

1-wire connection with LED 6ES7924-0AA20-0Bx0

3-wire initiators with LED 6ES7924-0CA20-0Bx0

Type of supply voltage

DC

Operating voltage

max. 24 V

Max. permissible continuous current per signal 1 A

Max. permissible total current (power supply)

4 A / byte

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

1-wire connection 6ES7924-0AA20-0Bx0

Approx. 40 x 58 x 50

For 3-wire initiators 6ES7924-0CA20-0Bx0

Approx. 57 x 76 x 60

Table 6- 9 Technical specifications for terminal module TPA

Terminal modules TPA, 16-pin, for analog modules in S7-1500 or ET200MP 6ES7924-0CC20-0Ax0 series

Type of supply voltage

DC

Operating voltage

max. 50 V

Max. permissible continuous current per signal 1 A line

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

6ES7924-0CC20-0Ax0

Approx. 57 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

58

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 10 Technical specifications for terminal module TPF with LED

Terminal modules TPF (use), 3-wire initiators with LED, incl. fuse in the signal path 6ES7924-0CL20-0Bx0

Type of supply voltage

DC

Operating voltage

max. 24 V

Max. permissible continuous current per signal 1 A (limited with 0.6 A microfuse)

Max. permissible total current (power supply)

4 A / byte

Fuse

Factory fittings

5 mm x 20 mm microfuse

0.6 A / 250 V quick-response

General data

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160,0 overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

For 3-wire initiators with fuse 6ES7924-0CL200Bx0

Approx. 57 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

59

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 11 Technical specifications for terminal module TPS with LED

Terminal modules TPS (witch), 3-wire initiators with LED, incl. switch in the signal path 6ES7924-0CH20-0Bx0

Type of supply voltage

DC

Operating voltage

max. 24 V

Max. permissible continuous current per signal 1 A

Max. permissible total current (power supply)

4 A / byte

Switch

Type

DIP slide switch

Activation during operation

Activation during operation permitted,

Max. switching capacity 10VA,

ON = "top" position, set to "ON"

General data

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2,

CSA C22.2 No 142 UL 508, VDE 0160,

Overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

For 3-wire initiators with disconnector 6ES7924- Approx. 57 x 76 x 60 0CH20-0Bx0

Table 6- 12 Technical specifications for terminal module TP2 without LED

Terminal modules TP2, 2 A modules without LED 6ES7924-0BB20-0Ax0

Type of supply voltage

DC

Operating voltage

max. 50 V

Max. permissible continuous current per signal 2 A

Connection to SIMATIC fitted for

16-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2,

CSA C22.2 No 142 UL 508, VDE 0160,

Overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

For 2 A modules 6ES7924-0BB20-0Ax0

Approx. 57 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

60

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 13 Technical specifications for terminal module TPRi 230 V

Terminal module TPRi 230 V with relay for inputs 6ES7924-0BE20-0Bx0 Energizing side Operating voltage for coil Input circuit Contact side Number of relay outputs Contact design Switching capacity (resistive load)
Switching frequency Service life Mechanical Electrical
Connection to SIMATIC fitted for Operating temperature Mounting position Clearances and creepage distances
Dimensions (W x H x D) in mm 6ES7924-0BE20-0Bx0

230 V AC / from 207 ­ 264 V AC Suppressor diode
8 NO contacts Single contact, 1 NO contact max. 50 mA / 24 V DC max. 50 mA / 48 V DC max. 50 mA / 60 V DC Recommended minimum load  5mA 500 cycles/minute
10 x 106 switching cycles 3 x 106 switching cycles at 230 V AC/50 mA/ cos  =1 16-pin IDC connector with fitted strain relief 0 ... +60° C Any IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2
Approx. 130 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

61

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 14 Technical specifications for terminal module TPRi 110 V

Terminal module TPRi 110 V with relay for inputs 6ES7924-0BG20-0Bx0 Energizing side Operating voltage for coil Input circuit Contact side Number of relay outputs Contact design Switching capacity (resistive load)
Switching frequency Service life Mechanical Electrical
Connection to SIMATIC fitted for Operating temperate Mounting position Clearances and creepage distances
Dimensions (W x H x D) in mm 6ES7924-0BG20-0Bx0

115 V AC / from 103 ­ 132 V AC Suppressor diode
8 NO contacts Single contact, 1 NO contact max. 50 mA / 24 V DC max. 50 mA / 48 V DC max. 50 mA / 60 V DC Recommended minimum load  5mA 500 cycles/minute
10 x 106 switching cycles 3 x 106 switching cycles at 230 V AC/50 mA/ cos  =1 16-pin IDC connector with fitted strain relief 0 ... +60° C Any IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2
Approx. 130 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

62

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 15 Technical specifications for terminal module TPRo

Terminal module TPRo with relays for outputs 6ES7924-0BD20-0Bx0 Energizing side Operating voltage for coil Input circuit
Contact side Number of relay outputs Contact design Switching capacity (resistive load)
Switching frequency Service life Mechanical Electrical
Inductive loads
Connection to SIMATIC fitted for Operating temperate Mounting position Clearances and creepage distances
Dimensions (W x H x D) in mm 6ES7924-0BG20-0Bx0

24 V DC 19 - 28.8 V Reverse polarity protection and freewheeling diodes
8 NO contacts Single contact, 1 NO contact max. 4 A / 250 V AC max. 3 A / 30 V DC max. 0.6 A / 48 V DC max. 0.4 A / 60 V DC Recommended minimum load  1 mA 6 cycles/minute
3 x 106 switching cycles 5 x 104 switching cycles at 230 V AC/4 A/ cos  = 1, 6 x per minute To protect the relay contacts, inductive loads must be dampened externally with an effective protective circuit. No measures are provided for this in the TPR. 16-pin IDC connector with fitted strain relief 0 ... +60° C Any IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2
Approx. 100 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

63

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 16 Technical specifications for terminal module TPOo

Terminal module TPOo optocoupler for outputs 6ES7924-0BF20-0Bx0 Input data for supply voltage Potential connection (L1/M1) Status display "L1" Input data for switching inputs Number of switching inputs
Input voltage "off" Input voltage "on" Input current Status display "on" Output data for supply voltage Operating voltage Vop (L2/M2, L3/M3) Vop with conditional reverse polarity protection
Current consumption Total current Switching outputs Number Short-circuit protection
Output voltage Output current Lamp load Short-circuit response On/Off-delay Switching frequency
"Overload" fault display
Wire break display active Recommended conductor cross-section for cable Group fault messages SF1, SF2 Monitored channels

24 V DC (20.4 ... 28.8 V DC) Green LED
8 channels (channel 0 ... 7) With reverse polarity protection 0 V DC (0 ... 5 V DC) 24 V DC (15 ... 28.8 V DC) min. 5 mA with 20 V DC, per channel Green LED per channel
24 V DC (20 ... 30 V DC), one per group of 4 Up to 30 V DC (Protected against reverse polarity if the ground potential of the output load is directly connected to the 0 V supply of the power supply unit.) Approx. 10 mA at 24 V DC + output currents max. 16 A per group of 4
8 channels (channel 0 ... 7) When Vop < 24 V DC or 20 ... 30 V DC/max. 20 A No continuous short-circuit protection, max. duration approx. 60 min. Typ. Vop ­ 0.5 V (for input "on") Max. 4 A per channel max. 40 W at 24 V per channel Clocked output signal (approx. 2 ... 20 ms) Typ. 100 s / 250 s with resistive load max. 500 Hz with 4 A resistive load (square wave voltage, pulse/pause 1:1) Red LED per channel, in the event of wire break or short-circuit When output "off" and Rload > 2 MOhm 1.5 mm 2
SF1: Channels 0 ... 3, SF2: Channels 4 ... 7

SIMATIC TOP connect for S7-1500 and ET200MP

64

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

Terminal module TPOo optocoupler for outputs 6ES7924-0BF20-0Bx0 Voltage VSF1, VSF2 No error at the switching output Wire break at the switching output Short-circuit at the switching output Current ISF1, ISF2 General data Connection to SIMATIC fitted for Degree of protection Operating temperature Mounting position Connecting terminals Stripped length Conductor cross-section Finely stranded without end sleeve With end sleeve for screw-type terminals With end sleeve, push-in system Screwdriver Tightening torque of screw-type terminals Weight Screw model Push-in model Clearances and creepage distances
Dimensions (W x H x D) in mm 6ES7924-0BF20-0Bx0

Typ. Vop ­ 2 V Approx. 0 V 0 V to Vop, clocked min. 4 mA/max. 200 mA
16-pin IDC connector with fitted strain relief IP20 0 ... 60 °C Any, except overhead Screw-type terminal or push-in system 9 mm
0.5 ... 2.5 mm2 0.5 ... 2.5 mm2 in accordance with DIN 46222-1 0.2 ... 2.5 mm2 According to DIN 5264 B 0.6 x 3.5 mm 0.4 ... 0.7 Nm
0.29 kg 0.25 kg IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2
Approx. 130 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

65

Technical specifications 6.7 Technical specifications for terminal modules
Terminal modules for 50-pin connecting cable

Table 6- 17 Technical specifications for terminal modules TP1 and TP3 without LED

Terminal modules TP1 and TP3, 50-pin

1-wire connection without LED 6ES7924-2AA20-0Ax0

3-wire initiators without LED 6ES7924-2CA20-0Ax0

Type of supply voltage

DC

Operating voltage

max. 50 V

Max. permissible continuous current per signal 1 A

Max. permissible total current (power supply)

2 A / byte

Connection to SIMATIC fitted for

50-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2,

CSA C22.2 No 142 UL 508, VDE 0160,

Overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

1-wire connection 6ES7924-2AA20-0Ax0

Approx. 100 x 76 x 60

For 3-wire initiators 6ES7924-2CA20-0Ax0

Approx. 175 x 76 x 60

Table 6- 18 Technical specifications for terminal modules TP1 and TP3 with LED

Terminal modules TP1 and TP3, 50-pin

1-wire connection with LED 6ES7924-2AA20-0Bx0

3-wire initiators with LED 6ES7924-2CA20-0Bx0

Type of supply voltage

DC

Operating voltage

max. 24 V

Max. permissible continuous current per signal 1 A

Max. permissible total current (power supply)

2 A / byte

Connection to SIMATIC fitted for

50-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

1-wire connection 6ES7924-2AA20-0Bx0

Approx. 100 x 76 x 60

For 3-wire initiators 6ES7924-2CA20-0Bx0

Approx. 175 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

66

Manual,

Technical specifications 6.7 Technical specifications for terminal modules

Table 6- 19 Technical specifications for terminal module TPA

Terminal modules TPA, 50-pin, for analog modules in S7-1500 or ET200MP 6ES7924-2CC20-0Ax0 series

Type of supply voltage

DC

Operating voltage

max. 50 V

Max. permissible continuous current per signal 1 A line

Connection to SIMATIC fitted for

50-pin IDC connector with fitted strain relief

Operating temperature

0 to + 60° C

Mounting position

Any

Clearances and creepage distances

IEC 60664-1, IEC61131-2, CSA C22.2 No 142 UL 508, VDE 0160, overvoltage category II, pollution degree 2

Dimensions (W x H x D) in mm

For analog modules 6ES7924-2CC20-0Ax0

Approx. 130 x 76 x 60

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

67

Environment

7

The device conforms to the RoHS Directive. No materials used release silicone.

Disposal provisions

The packaging and packing products are recyclable and should be recycled. The product itself must not be disposed of in the household waste.

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

69

Dimension drawings

A.1
Views

Front connector modules

All views in the dimension drawings below are numbered. The following applies:

Number
 

View Front view View from left

Note All dimensions in millimeters (mm).

A

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

71

Dimension drawings A.1 Front connector modules Front connector module 6ES7921-5AB20-0AA0
8-bit, for digital modules
Figure A-1 6ES79215AB20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

72

Manual,

Front connector module 6ES7921-5AH20-0AA0 8-bit, for digital modules

Dimension drawings A.1 Front connector modules

Figure A-2 6ES7921-5AH20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

73

Dimension drawings A.1 Front connector modules Front connector module 6ES7921-5AK20-0AA0
8-bit, for analog modules
Figure A-3 6ES7921-5AK20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

74

Manual,

Front connector module 6ES7921-5AD00-0AA0 8-bit, for 2 A modules

Dimension drawings A.1 Front connector modules

Figure A-4 6ES7921-5AD00-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

75

Dimension drawings A.1 Front connector modules Front connector module 6ES7921-5AJ00-0AA0
8-bit, for 2 A modules
Figure A-5 6ES7921-5AJ00-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

76

Manual,

Front connector module 6ES7921-5CB20-0AA0 32-bit, for digital modules

Dimension drawings A.1 Front connector modules

Figure A-6 6ES7921-5CB20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

77

Dimension drawings A.1 Front connector modules Front connector module 6ES7921-5CH20-0AA0
32-bit, for digital modules
Figure A-7 6ES7921-5CH20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

78

Manual,

Front connector module 6ES7921-5CK20-0AA0 32-bit, for analog modules

Dimension drawings A.1 Front connector modules

Figure A-8 6ES7921-5CK20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

79

Dimension drawings A.2 Terminal modules for 16-pin connecting cable

A.2

Terminal modules for 16-pin connecting cable

Views

All views in the dimension drawings below are numbered. The following applies:

Number
  

View Front view Front view with front flap closed Left view with front flap closed

Note All dimensions in millimeters (mm).

Note
The dimensions for terminal modules with screw-type terminals are the same as for those with the push-in system.

SIMATIC TOP connect for S7-1500 and ET200MP

80

Manual,

Terminal module 6ES7924-0AA20-0AA0 TP1 without LED

Dimension drawings A.2 Terminal modules for 16-pin connecting cable

Figure A-9 6ES7924-0AA20-0AA0
Terminal module 6ES7924-0AA20-0BA0 TP1 with LED

Figure A-10 6ES7924-0AA20-0BA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

81

Dimension drawings A.2 Terminal modules for 16-pin connecting cable
Terminal module 6ES7924-0BB20-0AA0 TP2 without LED

Figure A-11 6ES7924-0BB20-0AA0
Terminal module 6ES7924-0CA20-0AA0 TP3 without LED

Figure A-12 6ES7924-0CA20-0AA0 82

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Terminal module 6ES7924-0CA20-0BA0 TP3 with LED

Dimension drawings A.2 Terminal modules for 16-pin connecting cable

Figure A-13 6ES7924-0CA20-0BA0
Terminal module 6ES7924-0CC20-0AA0 TPA without LED

Figure A-14 6ES7924-0CC20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

83

Dimension drawings A.2 Terminal modules for 16-pin connecting cable Terminal module 6ES7924-0BE20-0BA0
TPRi 230 V with LED
Figure A-15 6ES7924-0BE20-0BA0
Terminal module 6ES7924-0BG20-0BA0 TPRi 110 V with LED
Figure A-16 6ES7924-0BG20-0BA0

SIMATIC TOP connect for S7-1500 and ET200MP

84

Manual,

Terminal module 6ES7924-0BD20-0BA0 TPRo with LED

Dimension drawings A.2 Terminal modules for 16-pin connecting cable

Figure A-17 6ES7924-0BD20-0BA0
Terminal module 6ES7924-0BF20-0BA0 TPOo with LED
Figure A-18 6ES7924-0BF20-0BA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

85

Dimension drawings A.3 Terminal modules for 50-pin connecting cable

A.3

Terminal modules for 50-pin connecting cable
All views in the dimension drawings below are numbered. The following applies:

Number
  

View Front view Front view with front flap closed Left view with front flap closed

Note All dimensions in millimeters (mm).

Note
The dimensions for terminal modules with screw-type terminals are the same as for those with the push-in system.

Terminal module 6ES7924-2AA20-0AA0 TP1 without LED

Figure A-19 6ES7924-2AA20-0AA0 86

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Terminal module 6ES7924-2AA20-0BA0 TP1 with LED

Dimension drawings A.3 Terminal modules for 50-pin connecting cable

Figure A-20 6ES7924-2AA20-0BA0
Terminal module 6ES7924-2CA20-0AA0 TP3 without LED

Figure A-21 6ES7924-2CA20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

87

Dimension drawings A.3 Terminal modules for 50-pin connecting cable
Terminal module 6ES7924-2CA20-0BA0 TP3 with LED

Figure A-22 6ES7924-2CA20-0BA0
Terminal module 6ES7924-2CC20-0AA0 TPA without LED

Figure A-23 6ES7924-2CC20-0AA0 88

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams

B.1

Circuit diagrams for front connector modules

Front connector modules 6ES7921-5AB20-0AA0 and 6ES7921-5AH20-0AA0 For digital I/O modules Front connector module with potential supply
Connecting terminals in Screw-type system: 6ES7921-5AB20-0AA0 Push-in system: 6ES7921-5AH20-0AA0

B

Figure B-1 6ES7921-5AB20-0AA0 and 6ES7921-5AH20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

89

Circuit diagrams B.1 Circuit diagrams for front connector modules Front connector module 6ES7921-5AD00-0AA0 and 6ES7921-5AJ00-0AA0
For 2-ampere digital output modules Front connector module with potential supply Connecting terminals in Screw-type system: 6ES7921-5AD00-0AA0 Push-in system: 6ES7921-5AJ00-0AA0
Figure B-2 6ES7921-5AD00-0AA0 and 6ES7921-5AJ00-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

90

Manual,

Circuit diagrams B.1 Circuit diagrams for front connector modules Front connector module 6ES7921-5AK20-0AA0 For analog I/O modules Front connector module for connecting 4 x 16-pin connecting cables Article number 6ES7921-5AK20-0AA0
Figure B-3 6ES7921-5AK20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

91

Circuit diagrams B.1 Circuit diagrams for front connector modules Front connector modules 6ES7921-5CB20-0AA0 and 6ES7921-5CH20-0AA0
For digital I/O modules Front connector module with potential supply Connecting terminals in Screw-type system: 6ES7921-5CB20-0AA0 Push-in system: 6ES7921-5CH20-0AA0
Figure B-4 6ES7921-5CB20-0AA0 and 6ES7921-5CH20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

92

Manual,

Circuit diagrams B.1 Circuit diagrams for front connector modules Front connector module 6ES7921-5CK20-0AA0 For analog I/O modules Front connector module for connecting 50-pin connecting cable Article number 6ES7921-5CK20-0AA0
Figure B-5 6ES7921-5CK20-0AA0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

93

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable

B.2

Circuit diagrams, terminal modules for 16-pin connecting cable

Terminal module 6ES7924-0AA20-0Ax0 Terminal module TP1 For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-0AA20-0AA0 Push-in system: 6ES7924-0AA20-0AC0

Figure B-6 6ES7924-0AA20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

94

Manual,

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable
Terminal module 6ES7924-0AA20-0Bx0 Terminal module Tp1 with LED For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-0AA20-0BA0 Push-in system: 6ES7924-0AA20-0BC0

Figure B-7 6ES7924-0AA20-0Bx0
Terminal module 6ES7924-0BB20-0Ax0 Terminal module TP2 For S7-300 / ET200M / S7-1500 / ET200MP, for 8-ampere output module Connecting terminals in Screw-type system 6ES7924-0BB20-0AA0 Push-in system 6ES7924-0BB20-0AC0

Figure B-8 6ES7924-0BB20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

95

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0BD20-0Ax0
Terminal module TPRo For S7-300 / ET200M / S7-1500 / ET200MP Connecting terminals in Screw-type system: 6ES7924-0BD20-0AA0 Push-in system: 6ES7924-0BD20-0AC0
Figure B-9 6ES7924-0BD20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

96

Manual,

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0BE20-0Ax0 Terminal module TPRi 230 V For S7-300 / ET200M / S7-1500 / ET200MP Connecting terminals in Screw-type system: 6ES7924-0BE20-0AA0 Push-in system: 6ES7924-0BE20-0AC0
Figure B-10 6ES7924-0BE20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

97

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable
Terminal module 6ES7924-0BF20-0Ax0 Terminal module TPOo For S7-300 / ET200M / S7-1500 / ET200MP
Connecting terminals in Screw-type system: 6ES7924-0BF20-0AA0 Push-in system: 6ES7924-0BF20-0AC0

Figure B-11 6ES7924-0BF20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

98

Manual,

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0BG20-0Ax0 Terminal module TPRi 110 V For S7-300 / ET200M / S7-1500 / ET200MP Connecting terminals in Screw-type system: 6ES7924-0BG20-0AA0 Push-in system:6ES7924-0BG20-0AC0
Figure B-12 6ES7924-0BG20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP

Manual,

99

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0CA20-0Ax0
Terminal module TP3 without LED For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables) Connecting terminals in Screw-type system: 6ES7924-0CA20-0AA0 Push-in system: 6ES7924-0CA20-0AC0
Figure B-13 6ES7924-0CA20-0Ax0

100

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0CA20-0Bx0 Terminal module TP3 with LED For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables) Connecting terminals in Screw-type system:6ES7924-0CA20-0BA0 Push-in system: 6ES7924-0CA20-0BC0
Figure B-14 6ES7924-0CA20-0Bx0

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

101

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0CC20-0Ax0
Terminal module TPA (S7-1500) For S7-1500 / ET200MP Connecting terminals in Screw-type system: 6ES7924-0CC20-0AA0 Push-in system: 6ES7924-0CC20-0AC0
Figure B-15 6ES7924-0CC20-0Ax0

102

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0CH20-0Bx0 Terminal module TPS, with LED switch For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables) Connecting terminals in Screw-type system: 6ES7924-0CH20-0BA0 Push-in system: 6ES7924-0CH20-0BC0
Figure B-16 6ES7924-0CH20-0Bx0

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

103

Circuit diagrams B.2 Circuit diagrams, terminal modules for 16-pin connecting cable Terminal module 6ES7924-0CL20-0Bx0
Terminal module TPF with LED fuse For S7-300 / ET200M / S7-1500 / ET200MP, for 8 I/O (16-pin connecting cables) Connecting terminals in Screw-type system: 6ES7924-0CL20-0BA0 Push-in system: 6ES7924-0CL20-0BC0
Figure B-17 6ES7924-0CL20-0Bx0

104

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams B.3 Circuit diagrams, terminal modules for 50-pin connecting cable

B.3

Circuit diagrams, terminal modules for 50-pin connecting cable

Note
All terminal modules for 50-pin connecting cables are for use with S7-1500 and ET200MP only.

Terminal module 6ES7924-2AA20-0Ax0 Terminal module TP1 without LED For S7-1500 / ET200MP 32 I/O (50-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-2AA20-0AA0 Push-in system: 6ES7924-2AA20-0AC0

Figure B-18 6ES7924-2AA20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

105

Circuit diagrams B.3 Circuit diagrams, terminal modules for 50-pin connecting cable
Terminal module 6ES7924-2AA20-0Bx0 Terminal module TP1 with LED For S7-1500 / ET200MP 32 I/O (50-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-2AA20-0BA0 Push-in system: 6ES7924-2AA20-0BC0

Figure B-19 6ES7924-2AA20-0Bx0

106

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams B.3 Circuit diagrams, terminal modules for 50-pin connecting cable
Terminal module 6ES7924-2CA20-0Ax0 Terminal module TP3 For S7-1500 / ET200MP 32 I/O (50-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-2CA20-0AA0 Push-in system: 6ES7924-2CA20-0AC0

Figure B-20 6ES7924-2CA20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

107

Circuit diagrams B.3 Circuit diagrams, terminal modules for 50-pin connecting cable
Terminal module 6ES7924-2CA20-0Bx0 Terminal module TP3 with LED For S7-1500 / ET200MP 32 I/O (50-pin connecting cables)
Connecting terminals in Screw-type system: 6ES7924-2CA20-0BA0 Push-in system: 6ES7924-2CA20-0BC0

Figure B-21 6ES7924-2CA20-0Bx0

108

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Circuit diagrams B.3 Circuit diagrams, terminal modules for 50-pin connecting cable Terminal module 6ES7924-2CC20-0Ax0 Terminal module TPA for S7-1500 / ET200MP analog modules Connecting terminals in Screw-type system: 6ES7924-2CC20-0AA0 Push-in system: 6ES7924-2CC20-0AC0
Figure B-22 6ES7924-2CC20-0Ax0

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

109

Spare parts / Accessories

C

C.1

Accessories

Accessories for SIMATIC TOP connect system cabling

Designation Labels for fitting to terminal modules in the S7-1500 design, pack of 340, plug-in IDC connector (insulation displacement connector), set of 8 with 8 strain reliefs Pliers for IDC connectors (insulation displacement connectors) for assembling the round-sheath ribbon cable Shield plate TPA for 8 bits, set of 4 Shield plate TPA for 32 bits, set of 4 Shield connection clamps for shield plate SIMATIC end, set of 10 Shield connection clamps for shield plate field end  2x 2...6 mm, set of 2 Shield connection clamps for shield plate field end  3...8 mm, set of 2 Shield connection clamps for shield plate field end  4...13 mm, set of 2 Relay for TPRo 24 V DC, set of 4 Relay for TPRi 230 V AC, set of 4 Relay for TPRo 230 V AC, set of 4 Relay for TPRo 60 V DC, set of 4 Relay for TPRi 110 V AC, set of 4 0.6 A fuses, set of 10 Enclosure cover for terminal module TP1 8-bit, set of 4 Enclosure cover for terminal module TP2 / TP3 / TPA 8-bit, set of 4 Enclosure cover for terminal module TP3 32-bit, set of 4 Enclosure cover for terminal module TPS / TPRo 8-bit and TP1 32-bit, set of 4 Enclosure cover for terminal module TPF / TPRi / TPOo 8-bit and TPA 32-bit, set of 4 Round-sheath ribbon cable with 16 wires, 30 m long, unshielded Round-sheath ribbon cable with 16 wires, 30 m long, shielded Round-sheath ribbon cable with 16 wires, 60 m long, unshielded Round-sheath ribbon cable with 16 wires, 60 m long, shielded Round-sheath ribbon cable with 2 x 16 wires, 30 m long, unshielded Round-sheath ribbon cable with 2 x 16 wires, 60 m long, unshielded

Order number 3RT1900-1SB20 6ES7921-3BE10-0AA0 6ES7928-0AA00-0AA0
6ES7928-1AA20-4AA0 6ES7928-1BA20-4AA0 6ES7590-5BA00-0AA0 6ES7390-5AB00-0AA0 6ES7390-5BA00-0AA0 6ES7390-5CA00-0AA0 6ES7928-3AA20-4AA0 6ES7928-3BA20-4AA0 6ES7928-3CA20-4AA0 6ES7928-3DA20-4AA0 6ES7928-3EA20-4AA0 6ES7928-6AA20-0AA0 6ES7928-5AA20-4AA0 6ES7928-5BA20-4AA0 6ES7928-5CA20-4AA0 6ES7928-5DA20-4AA0 6ES7928-5EA20-4AA0 6ES7923-0CD00-0AA0 6ES7923-0CD00-0BA0 6ES7923-0CG00-0AA0 6ES7923-0CG00-0BA0 6ES7923-2CD00-0AA0 6ES7923-2CG00-0AA0

Online catalog and ordering system
The online catalog and the online ordering system can be found on the Industry Mall homepage:
Industry Mall (http://www.siemens.com/industrymall).

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

111

Service and Support

D

Online support

The comprehensive online information platform on all aspects of our Service & Support is available at any time and from any location in the world.
You will find the online support on the Internet at:
Service & Support (http://www.siemens.com/automation/service&support).

Technical support You can access technical support for all IA/DT products as follows:  Phone: + 49 (0) 911 895 7222  E-mail (mailto:support.automation@siemens.com)  Internet: Web form for support request (http://www.siemens.com/automation/supportrequest)

Technical documentation on the Internet
The technical documentation for the various SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).

Homepage

You can find news about the SIMATIC TOP connect on the Internet (http://www.automation.siemens.com/mcms/automation/de/automatisierungssysteme/system verkabelung/simatic-top-connect).

Contacts

At your service locally, around the globe: for consulting, sales, training, service, support, spare parts ... for every product supplied by Industry Automation and Drive Technologies.
To find your contact person, please go to our Contacts Database on the Internet (http://www.siemens.com/automation/partner).

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

113

Index

A
Accessories for fully modular connection, 16 Area of application, 11 Attaching the shield plate to the terminal module, 45

I
IDC connector, 16 Crimping pliers for IDC connectors, 16
IEC 61131, 50 Industrial applications, 50

C

Components

L

Connecting cable, 15

Labeling

Flexible connection, 16

Terminal modules, 32

For 16-pin connecting cable, 33

Labeling terminal modules, 32

For 50-pin connecting cable, 37

Labels, 32

Front connector module, 14

Low-Voltage Directive, 50

Terminal module, 15

Components for 16-pin connecting cable

Selection guide for 16-pin connecting cable, 33

M

Components for 50-pin connecting cable Selection guide for 50-pin connecting cable, 37

Marks and approvals, 49

Components for flexible connection, 16

Components for fully modular connection, 14 Connectable I/O modules

O

16-pin connecting cable, 17

Overview of documentation, 10

50-pin connecting cable, 17

Connecting digital I/O modules, 39

Connecting terminal modules, 32

P

Connecting the 2 A output module., 41 Connecting the connecting cable to the front connector module, 27 Crimping pliers for IDC connectors, 16

Pre-wiring position, 28 Protection from electric shock, 20 Protection from external electrical interference, 20

cULus approval, 50

S

E
EC directives, 50 Electromagnetic compatibility, 50 Electromagnetic compatibility, 50 EMC Directive, 50
F

Selection guide 16-pin connecting cable, 35 50-pin connecting cable, 38
Shield connection, 45 Front connector module, 47 Shield plate, 45
Shield plate, 45 Standards, 49

Flexible connection, 13 Fully modular connection, 12 Functions of the front connector module, 26

T
Terminal module function, 31 Test values, 49

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

115

Index
U
Use in residential areas, 51
W
Wiring rules Front connector modules, 21 Terminal modules, 21
Wiring sequence, 23

116

SIMATIC TOP connect for S7-1500 and ET200MP Manual,

Active backplane bus

SIMATIC S7-1500, ET 200MP Active backplane bus
Equipment Manual

Preface

Documentation guide

1

Description

2

Mounting

3

Operation

4

Configure

5

Maintenance and service

6

7 Alarm and system messages

Technical specifications

8

Dimension drawings

9

Spare parts/accessories

10

List of I/O modules

A

03/2020
A5E46240468-AA

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E46240468-AA  02/2020 Subject to change

Copyright © Siemens AG 2020. All rights reserved

Preface

Purpose of the documentation
This documentation provides important information on the active backplane bus for the ET 200MP distributed I/O system.

Basic knowledge required A basic knowledge of automation engineering is required to understand the documentation.

Scope of the documentation This documentation applies to all products from the SIMATIC ET 200MP product family.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7" (TIA Portal).

Recycling and disposal
The products are low in pollutants and can be recycled. For ecologically compatible recycling and disposal of your old device, contact a certificated waste disposal service for electronic scrap.

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Open Source Software
Open-source software is used in the firmware of the I/O modules. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109739516).

Active backplane bus

4

Equipment Manual, 03/2020, A5E46240468-AA

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ................................................................................................................................. 6

2 Description................................................................................................................................................. 8

2.1

Application area and function ...................................................................................................8

2.2

Properties ................................................................................................................................ 10

3 Mounting.................................................................................................................................................. 12

4 Operation................................................................................................................................................. 16

5 Configure ................................................................................................................................................. 18

5.1

Configure ................................................................................................................................18

5.2

Configuration of the active backplane bus in the TIA Portal...................................................19

6 Maintenance and service ......................................................................................................................... 21

7 Alarm and system messages................................................................................................................... 22

8 Technical specifications ........................................................................................................................... 23

9 Dimension drawings ................................................................................................................................ 25

10 Spare parts/accessories .......................................................................................................................... 26

A List of I/O modules................................................................................................................................... 27

Index........................................................................................................................................................ 29

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

5

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Active backplane bus

6

Equipment Manual, 03/2020, A5E46240468-AA

Documentation guide

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

7

Description

2

2.1
Benefits

Application area and function
The benefits of the active backplane bus are:  Reaction-free replacement of a defective module:
­ Without the CPU reporting a station failure ­ Without disturbing modules in the station  Startup with one or more module gaps. You have the option of plugging in additional modules later.  Startup with configuration control is possible. You have the possibility to re-configure your plant.

Active backplane bus

8

Equipment Manual, 03/2020, A5E46240468-AA

Application

Description 2.1 Application area and function
The area of application is everywhere where plant downtimes are not desired. The availability of the plant has the highest priority. The areas of application are, for example:  Logistics
­ High-bay storage facilities ­ Baggage conveyors at airports ­ Letter and paper sorting systems in postal logistics  Infrastructure ­ Water/waste water ­ Tunnels  Continuous processes that must not be interrupted due to the technical process management ­ Semiconductor industry ­ Chemical ­ Pharmaceutical ­ Battery manufacturing  Applications in which plant operation must be maintained as long as possible because, for example, a service technician is not immediately available. ­ Offshore installations (oil platforms) ­ Compressors along gas pipelines that maintain the working pressure  Other applications ­ Signal boxes in railway engineering ­ Shipbuilding

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

9

Description 2.2 Properties

2.2

Properties

Article number 6ES7590-0BL00-0AA0
View of the active backplane bus

Figure 2-1 Active backplane bus
The active backplane bus is placed in an S7-1500 mounting rail. The mounting rail must be longer than the active backplane bus. There must be enough space for the fixing screws of the mounting rail.

Properties

The active backplane bus can be used with:

Designation
IM 155-5 PN HF Digital input modules DI and F-DI Digital output modules DQ and F-DQ Analog input modules AI Analog output modules AQ System power supply Technology modules Communications modules

Article number

As of hardware functional status

6ES7155-5AA00-0AC0 FS01

See List of I/O modules (Page 27)

as of firmware version V4.4

The active backplane bus supports:

 Identification data I&M 0 to 3

 Firmware update

 Prioritized startup

Active backplane bus

10

Equipment Manual, 03/2020, A5E46240468-AA

Description 2.2 Properties

The following restriction applies for operating with an active backplane bus
Pulling and plugging during operation (hotswap) cannot be performed in isochronous mode.
If any I/O module is plugged or unplugged in a station configured for isochronous mode, the connection to the controller is re-established and the I/O modules are temporarily inaccessible.

Maximum configuration
The active backplane bus can be equipped with a maximum of 12 modules in addition to the interface module.

Accessories

You order the following accessories separately:  Slot protection  Mounting rail See also Spare parts/accessories (Page 26)

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

11

Mounting

3

Mounting the mounting rail
Note No screws behind the active backplane bus Note that behind the active backplane bus, no screws are available for mounting the mounting rail. Otherwise, the active backplane bus cannot be mounted.
System power supply With active backplane bus, a system power supply supplies power to the entire station. Which means also to the I/O modules plugged in to the left of the bus. You can plug the system power supply into any slot to the right of the IM.
Note System power supply You must not plug any system power supply to the left of the interface module.

Active backplane bus

12

Equipment Manual, 03/2020, A5E46240468-AA

Mounting
Place the active backplane bus in the mounting rail and mount the modules Below we will show you how to mount the active backplane bus. 1. Tilt the active backplane bus forward and insert it diagonally into the mounting rail. 2. Push the active backplane bus backwards.

Figure 3-1 Insert the active backplane bus into the mounting rail
3. Hook the interface module on the rail. You may only plug in one interface module. The interface module must be plugged into the first slot.
4. Swivel the interface module downwards so that the contacts are connected to the active backplane bus.
5. Align the active backplane bus with the interface module. 6. Tighten the screws for the interface module (tightening torque 1.5 Nm).

Figure 3-2 Mounting the interface module on the active backplane bus

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

13

Mounting
7. Install the I/O module on the mounting rail. Align a 25 mm or 35 mm wide I/O module with the arrows. A 70 mm wide I/O module covers 2 slots.
8. Swing the I/O module downwards so that the contacts are connected to the active backplane bus.
9. Tighten the screw for the I/O module (tightening torque 1.5 Nm). 10.Repeat the process for all I/O modules that you want to mount.
Figure 3-3 Mounting the I/O module on the active backplane bus
11.If you have empty slots on the active backplane bus, then you must provide these slots with a slot protection (see Operation (Page 16)).
12.A "BACKPLANE" sticker is enclosed for the active backplane bus. Use this sticker to identify the interface module. So you can see even with a fully equipped active backplane bus that the I/O modules can be pulled without any reaction.

Active backplane bus

14

Equipment Manual, 03/2020, A5E46240468-AA

Mounting
Slots of I/O modules Note Slots The empty slots need to be provided with a slot protection. The slot protection is used to secure mechanically and to protect the contacts.



Slot protection

Figure 3-4 Active backplane bus equipped with modules and slot protection

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

15

Operation

4

With the active backplane bus, you can remove and insert  Plugging and unplugging I/O modules without reaction on the station or the CPU goes
into STOP,  Plugging I/O modules into slots previously left free without the CPU going into STOP.
Pulling and plugging interface modules The interface module cannot be pulled and plugged reaction-free. The interface module must not be pulled or plugged under load.
Removing and inserting I/O modules I/O modules can be pulled and inserted reaction-free. 1. The front connector of the I/O modules may only be disconnected and plugged when deenergized. 2. For the I/O modules, pull the front connector out of the I/O module using the unlocking strap. Swivel the front connector downward and remove it from the groves. 3. Then you may pull the I/O module. 4. When plugging in, proceed in reverse order (see also S7-1500 Automation System system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792)).
Pulling and plugging power supply module A power supply module cannot be pulled and plugged without reaction. A power supply module can only be pulled and plugged when de-energized.
Use in explosive area Zone 2
WARNING Pulling or plugging a module is prohibited in a potentially explosive atmosphere. If you pull or plug a module or connector during operation, there is a risk of sparking. Sparks can cause an explosion in the hazardous area. Death or serious bodily injury as well as damage to property can be the result. Do not pull or plug the module or the connectors until one of the following two conditions is met: The area is no longer hazardous or the device and its plug connectors are deenergized.
See product information Deployment of the modules in zone 2 hazardous atmospheres (https://support.industry.siemens.com/cs/ww/de/view/19692172).

Active backplane bus

16

Equipment Manual, 03/2020, A5E46240468-AA

Slots of I/O modules They have an installation with empty slots. You can plug in additional I/O modules during operation.

Operation

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

17

Configure

5

5.1

Configure

Configure

You configure the IM 155-5 PN HF with STEP 7 or the configuration software of another manufacturer.

Configuration software STEP 7 (TIA Portal) TIA Portal V16 with HSP0318 "Insert" the IM on slot 1. Insert the I/O modules on slots 2 to 13.

GSD file GSDML V2.34 "Insert" the active backplane bus on slot 0.

Note GSD file
When configuring using the GSD file, more than 12 I/O modules can theoretically be configured. However physically a maximum of 12 I/O modules are pluggable. If you nevertheless configure more than 12 I/O modules, the IM 155-5 PN HF reports the message "Module cannot be reached".
Note GSD file and 70 mm wide system power supply
If you are plugging a 70 mm wide system power supply, note that this system power supply physically occupies 2 slots. When configuring using the GSD file, you must then leave an empty slot after the system power supply in the configuration. Otherwise, the IM 155-5 PN HF reports the setpoint/actual difference as a "Configuration error".

Active backplane bus

18

Equipment Manual, 03/2020, A5E46240468-AA

Configure 5.2 Configuration of the active backplane bus in the TIA Portal

5.2

Configuration of the active backplane bus in the TIA Portal

The representation of a station in the graphics area of the device view consists of 2 main areas:

 Rack area  Module area (slots)
Replacing a rack To replace the U-connector rack for an active backplane bus, you can use the "Change device" function. Switch to the device view. Then there are 2 options for starting the "Change device" function:  Via the shortcut menu ­ Right-click in the rack area (1) or on the name of the rack (in the figure above e.g. "Rail_0"). ­ Select "Change device" from the shortcut menu. A dialog window opens. ­ Select another rack and click "OK". The replacement of the rack starts.

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

19

Configure 5.2 Configuration of the active backplane bus in the TIA Portal
 Via drag-and-drop ­ The hardware catalog is open. Select the "Rack" folder and navigate through the subfolders to the desired rack. ­ Select the desired rack. ­ Drag the rack into the rack area (1) and place it there.



Rack area



Module area (slots)

Note

Contrary to plugging modules, the replacement of a rack cannot be started by doubleclicking on the catalog entry. The reason for this is that a double-click only works if there is slot free and permitted available. However, only one permissible area is available for a rack, which is always automatically occupied by the standard rack type when a device is plugged in the network view.
With ET 200MP, a representative module is automatically created in slot 0 when replacing into the active backplane rack. This module reflects the diagnostics and parameters of the active backplane bus according to the characteristics of the selected rack.

Additional information You can find more information in the STEP 7.

Active backplane bus

20

Equipment Manual, 03/2020, A5E46240468-AA

Maintenance and service

6

Cycle for pulling and plugging
The active backplane bus serves to increase the system availability. It is designed for occasional pulling and plugging of I/O modules for expansion or in case of faults.

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

21

Alarm and system messages

7

Pull/plug interrupt Each pulling and plugging action of a configured module results in a pull/plug interrupt. OB 83 is started when a configured module is pulled in RUN mode. If OB 83 is not programmed, the CPU switches to STOP. When plugging a module into a configured slot in the RUN state, OB 83 is started and the parameter assignment is made if the module matches. You can find additional information in the STEP 7 online help.
Firmware update The firmware update is possible:  Firmware update of the IM 155-5 PN HF or the active backplane bus leads to a restart of the station. Pull/plug interrupts of the plugged modules can be reported during a firmware update of the active backplane bus.  Firmware update of a I/O module leads to a restart of this I/O module only. Other I/O modules are not affected.  Firmware update of a I/O module in isochronous mode results in a restart of the station.

Active backplane bus

22

Equipment Manual, 03/2020, A5E46240468-AA

Technical specifications

8

Technical specifications of the active backplane bus
The following table shows the technical specifications as of 03/2020. You can find a data sheet including daily updated technical specifications on the Internet (https://support.industry.siemens.com/cs/de/en/pv/6ES7590-0BL00-0AA0/td?dl=en).

Article number General information
Product type designation HW functional status Firmware version · FW update possible Product function · I&M data
· Isochronous mode
· Prioritized startup Engineering with
· STEP 7 TIA Portal configurable/integrated as of version
· STEP 7 configurable/integrated as of version
· PROFINET as of GSD version/GSD revision
Power Power available from the backplane bus
Power loss Power loss, typ.
Hardware configuration Slots
· Grid size
· Number of slots ­ of which for CPU, max. ­ of which for IM, max. ­ of which for PS, max. ­ of which for IO/CM/CP/TM, max. ­ of which for F-IO, max.
· Number of single-width slots, max.

6ES7590-0BL00-0AA0
Active backplane ST 1+12 slot FS01 V1.0.0 Yes
Yes; I&M0 to I&M3 Yes Yes
V16
V5.6 and higher
V2.34 / -
2 W
2 W
35 mm; Utilization of 25 mm-wide modules possible 13 0 1 12; Max. 2 PS per station 12 12 12

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

23

Technical specifications

Article number Isochronous mode
Isochronous operation (application synchronized up to terminal) Standards, approvals, certificates CE mark UL approval FM approval RCM (formerly C-TICK) KC approval EAC (formerly Gost-R) Ambient conditions Ambient temperature during operation · horizontal installation, min.
· horizontal installation, max.
· vertical installation, min.
· vertical installation, max.
Ambient temperature during storage/transportation
· min.
· max.
Altitude during operation relating to sea level · Installation altitude above sea level, max.
Dimensions Width Height Depth
Weights Weight, approx.

6ES7590-0BL00-0AA0
Yes
Yes Yes Yes Yes Yes Yes
-30 °C 60 °C -30 °C 40 °C
-40 °C 70 °C
5 000 m; Restrictions for installation altitudes > 2 000 m, see manual
434 mm 99 mm 14 mm
352 g

Use up to 5000 m
When using the active backplane bus up to 5000 m, see S7-1500/ET 200MP Automation System system manual (https://support.industry.siemens.com/cs/ww/en/view/59191792).
A current list of S7-1500 I/O modules that can be operated at elevations above 2,000 m can be found in the product information SIMATIC S7-1500/ET200 MP product information "Using the S7-1500 automation system / ET 200MP distributed I/O system over 2000 m above sea level" (https://support.industry.siemens.com/cs/ww/en/view/109763260).

Active backplane bus

24

Equipment Manual, 03/2020, A5E46240468-AA

Dimension drawings

9

Dimension drawing of the active backplane bus
This section contains a dimension drawing of the active backplane bus mounted on a mounting rail.

Figure 9-1 Dimension drawing of active backplane bus front and side view

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

25

Spare parts/accessories

10

Accessories for the active backplane bus

Table 10- 1 Accessories

Designation Slot protection, 5 units Mounting rail · Mounting rail, 482 mm (with drill holes)
· Mounting rail, 530 mm (with drill holes)
· Mounting rail, 830 mm (with drill holes)
· Mounting rail, 2000 mm (without drill holes) for cutting to length

Article number 6ES7590-0CA00-0AA0
6ES7590-1AE80-0AA0 6ES7590-1AF30-0AA0 6ES7590-1AJ30-0AA0 6ES7590-1BC00-0AA0

The active backplane bus is placed in an S7-1500 mounting rail. The mounting rail must be longer than the active backplane bus to provide enough space for the IM 155-5 PN HF and the fixing screws.

Active backplane bus

26

Equipment Manual, 03/2020, A5E46240468-AA

List of I/O modules

A

List of interface modules
The following table contains the IM 155-5 PN and the HW and FW versions starting at which it can be used.

Designation IM 155-5 PN HF

Article number 6ES7155-5AA00-0AC0

as of hardware functional status
FS01

as of firmware version V4.4

List of the modules
The following table contains the modules of the S7-1500 for the active backplane bus and as of which HW and FW version they can be used.
The I/O modules as of delivery date 03/2020 can be used without restrictions.

Designation

Article number

DI 16x24VDC HF DI 16x24VDC BA DI 32x24VDC HF DI 32x24VDC BA DI 16x24...125VUC HF DI 16x24VDC SRC BA DI 16x230VAC BA DQ 16x24VDC/0.5A ST DQ 16x24VDC/0.5A HF DQ 16x24VDC/0.5A BA DQ 32x24VDC/0.5A ST DQ 32x24VDC/0.5A HF DQ 32x24VDC/0.5A BA DQ 8x24VDC/2A HF DQ 16x24...48VUC/125VDV/0.5A ST DQ 8x230V/5A ST Relay DQ 8x230VAC/2A ST Triac DQ 16x230VAC/2A ST relay DQ 16Vx230VAC/1A ST Triac DI 16x24VDC/ DQ 16xDC24VDC/0.5A BA

6ES7521-1BH00-0AB0 6ES7521-1BH10-0AA0 6ES7521-1BL00-0AB0 6ES7521-1BL10-0AA0 6ES7521-7EH00-0AB0 6ES7521-1BH50-0AA0 6ES7521-1FH00-0AA0 6ES7522-1BH00-0AB0 6ES7522-1BH01-0AB0 6ES7522-1BH10-0AA0 6ES7522-1BL00-0AB0 6ES7522-1BL01-0AB0 6ES7522-1BL10-0AA0 6ES7522-1BF00-0AB0 6ES7522-5EH00-0AB0
6ES7522-5HF00-0AB0 6ES7522-5FF00-0AB0 6ES7522-5HH00-0AB0 6ES7522-5FH00-0AB0 6ES7523-1BL00-0AA0

as of hardware functional status FS02 FS01 FS02 FS01 FS01 FS02 FS02 FS02 FS01 FS01 FS02 FS01 FS01 FS02 FS01

as of firmware version
V2.0.1 V1.0.0 V2.0.1 V1.0.0 V1.0.0 V2.0.0 V2.0.0 V2.0.2 V1.0.0 V1.0.0 V2.0.2 V1.0.0 V1.0.0 V2.0.0 V1.0.0

FS02 FS02 FS01 FS01 FS01

V2.0.0 V2.0.0 V1.0.0 V1.0.0 V1.0.0

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

27

List of I/O modules

Designation
F-DI 16x24VDC F-DQ 8x24VDC/2A PPM AI 8xU/I/RTD/TC ST AI 8xU/I/R/RTD BA AI 8xU/I/R/RTD/TC HF AI 4xU/I/RTD/TC ST AI 8xU/I HS AI 8xU/I HF AQ 2xU/I ST AQ 4xU/I ST AQ 4xU/I HF AQ 8xU/I HS AI 4xU/I/RTD/TC/AQ 2xU/I ST PS 25W 24VDC PS 60W 24/48/60VDC PS 60 W 120/230V AC/DC TM Count 2x24V TM PosInput 2 TM Timer DIDQ 16x24V TM PTO 4 TM SIWAREX WP521 ST TM SIWAREX WP522 ST TM NPU CM PtP RS232 BA CM PtP RS232 HF CM PtP RS422/485 BA CM PtP RS422/485 HF CM 8xIO-Link

Article number
6ES7526-1BH00-0AB0 6ES7526-2BF00-0AB0 6ES7531-7KF00-0AB0 6ES7531-7QF00-0AB0 6ES7531-7PF00-0AB0 6ES7531-7QD00-0AB0 6ES7531-7NF10-0AB0 6ES7531-7NF00-0AB0 6ES7532-5NB00-0AB0 6ES7532-5HD00-0AB0 6ES7532-5ND00-0AB0 6ES7532-5HF00-0AB0 6ES7534-7QE00-0AB0 6ES7505-0KA00-0AB0 6ES7505-0RA00-0AB0 6ES7507-0RA00-0AB0 6ES7550-1AA00-0AB0 6ES7551-1AB00-0AB0 6ES7552-1AA00-0AB0 6ES7553-1AA00-0AB0 7MH4980-1AA01 7MH4980-2AA01 6ES7556-1AA00-0AB0 6ES7540-1AD00-0AA0 6ES7541-1AD00-0AB0 6ES7540-1AB00-0AA0 6ES7541-1AB00-0AB0 6ES7547-1JF00-0AB0

as of hardware functional status FS01 FS03 FS02 FS01 FS01 FS01 FS01 FS01 FS01 FS02 FS01 FS01 FS01 FS02 FS03 FS03 FS01 FS01 FS01 FS01 FS01 FS01 FS01 FS01 FS01 FS01 FS01 FS01

as of firmware version
V1.0.2 V1.0.2 V2.0.1 V1.0.0 V1.0.0 V1.0.0 V1.0.1 V1.0.0 V1.0.0 V2.0.0 V1.0.0 V1.0.0 V1.0.0 V1.0.1 V1.0.1 V1.0.1 V1.0.0 V1.0.0 V1.0.0 V1.0.0 V1.1.0 V1.1.0 V1.0.0 V1.0.3 V1.0.3 V1.0.3 V1.0.3 V1.0.0

Active backplane bus

28

Equipment Manual, 03/2020, A5E46240468-AA

Index

A
Accessories, 11, 26 Active backplane bus
Installing, 13 Application, 9 Article number, 10

Pulling and plugging I/O modules, 16 Interface module, 16 Power supply module, 16
R
Replacing racks, 19

B
Benefits, 8
C
Configure, 18 Cycle for pulling and plugging, 21

S
Slot protection, 13, 17, 26 Slots, 13, 17
T
Technical specifications, 23

D
Dimensional drawing, 25

V
View, 10

F
Firmware update, 22
I
Installation, 13

M
Maximum configuration, 11 Modules for the active backplane bus, 27 Mounting rail, 26
O
OB 83, 22

P
Properties, 10 Pull/plug interrupt, 22

Active backplane bus

Equipment Manual, 03/2020, A5E46240468-AA

29

Digital input module
F-DI 16x24VDC (6ES7526-1BH00-0AB0) SIMATIC
ET 200MP Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _AF-p_I/pO_lic_mato_iod_nusl_eo_f t_he_________5_ _Imn_etes_rsrua_pg_tess/_di_ag_n_os_tic________6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______7_ _Re_s_po_n_se_ti_m_es__________A_ _O_pe_n_So_u_rc_e_So_ft_w_ar_e ______B_

01/2016
A5E03858068-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03858068-AA  01/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500 Automation System. You can find information on the functions that apply generally to the S7-1500 automation system and the ET 200MP distributed I/O system in the system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).
The information provided in this manual and the system manual enables you to commission the S7-1500 automation system and ET 200MP distributed I/O system.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe the notes identified as follows:
Note A note includes important information on the product described in the documentation, on handling the product or on the part of the documentation to which particular attention should be paid.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

4

Manual, 01/2016, A5E03858068-AA

Preface
Important note for maintaining the operational safety of your system
Note
The operators of systems with safety-related characteristics must adhere to specific operational safety requirements. The supplier is also obliged to comply with special product monitoring measures. Siemens informs system operators by means of personal notifications about product developments and properties which may be or become important issues in terms of operational safety.
You should subscribe to the corresponding notifications in order to obtain the latest information and to allow you to make any necessary modifications to your system.
Log in to Industry Online Support. Follow the links below and click on "Email on update" on the right-hand side in each case: · SIMATIC S7-300/S7-300F
(https://support.industry.siemens.com/cs/products?pnid=13751&lc=en-WW) · SIMATIC S7-400/S7-400H/S7-400F/FH
(https://support.industry.siemens.com/cs/products?pnid=13828&lc=en-WW) · SIMATIC S7-1500/SIMATIC S7-1500F
(https://support.industry.siemens.com/cs/products?pnid=13716&lc=en-WW) · SIMATIC S7-1200/SIMATIC S7-1200F
(https://support.industry.siemens.com/cs/products?pnid=13683&lc=en-WW) · Distributed I/O (https://support.industry.siemens.com/cs/products?pnid=14029&lc=en-
WW) · STEP 7 (TIA Portal)
(https://support.industry.siemens.com/cs/products?pnid=14340&lc=en-WW)
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

5

Preface
Open Source Software
Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this in the appendix.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

6

Manual, 01/2016, A5E03858068-AA

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 9

1.1

Guide to documentation S7-1500 / ET 200MP .........................................................................9

2 Product overview .................................................................................................................................. 12

2.1

Properties ................................................................................................................................ 12

3 Connecting ........................................................................................................................................... 15

3.1

Block diagram .........................................................................................................................15

4 Parameters/address space ................................................................................................................... 17

4.1

Parameters .............................................................................................................................17

4.2 4.2.1 4.2.1.1 4.2.1.2 4.2.2 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4 4.2.3 4.2.3.1 4.2.3.2 4.2.3.3 4.2.3.4 4.2.4 4.2.4.1 4.2.4.2 4.2.4.3 4.2.4.4 4.2.4.5 4.2.4.6 4.2.4.7

Explanation of parameters ......................................................................................................20 F-parameters ..........................................................................................................................20 Behavior after channel fault ....................................................................................................20 Reintegration after channel fault.............................................................................................20 Parameters of the sensor supply ............................................................................................21 Supplied channels...................................................................................................................21 Short-circuit test activated ......................................................................................................21 Time for short-circuit test ........................................................................................................22 Startup time of sensors after short-circuit test ........................................................................23 Parameters of the channel pairs.............................................................................................23 Sensor evaluation ...................................................................................................................23 Discrepancy behavior .............................................................................................................24 Discrepancy time ....................................................................................................................25 Reintegration after discrepancy error .....................................................................................26 Parameters of the channels ....................................................................................................26 Channel activated ...................................................................................................................26 Input delay ..............................................................................................................................27 Channel failure acknowledge..................................................................................................28 Pulse extension.......................................................................................................................28 Chatter monitoring ..................................................................................................................28 Number of signal changes ......................................................................................................29 Monitoring window ..................................................................................................................29

4.3

Address space ........................................................................................................................30

5 Applications of the F-I/O module ........................................................................................................... 32

5.1

Applications of the F-DI 16x24VDC ........................................................................................32

5.2

Application 1: Safety mode SIL3/Cat.3/PLd ...........................................................................34

5.3

Application 2: Safety mode SIL3/Cat.3/PLe ...........................................................................37

5.4 5.4.1 5.4.2

Application 3: Safety mode SIL3/Cat.4/PLe ...........................................................................41 Application 3.1 (SIL3/Cat.4/PLe) ............................................................................................42 Use case 3.2 (SIL3/Cat.4/PLe) ...............................................................................................44

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

7

Table of contents

6 Interrupts/diagnostic messages ............................................................................................................. 47

6.1

Status and error displays ....................................................................................................... 47

6.2

Interrupts ................................................................................................................................ 50

6.3

Diagnostic alarms................................................................................................................... 51

7 Technical specifications ........................................................................................................................ 57

A Response times .................................................................................................................................... 60

B Open Source Software.......................................................................................................................... 62

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

8

Manual, 01/2016, A5E03858068-AA

Documentation guide

1

1.1

Guide to documentation S7-1500 / ET 200MP

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, Motion Control, Web server. You can download the documentation free of charge from the Internet (http://www.automation.siemens.com/mcms/industrial-automation-systemssimatic/en/manual-overview/tech-doc-controllers/Pages/Default.aspx). Changes and supplements to the manuals are documented in a Product Information. You can download the product information free of charge from the Internet.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

9

Documentation guide 1.1 Guide to documentation S7-1500 / ET 200MP

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (http://support.automation.siemens.com/WW/view/en/86140384).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet.

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

10

Manual, 01/2016, A5E03858068-AA

Documentation guide 1.1 Guide to documentation S7-1500 / ET 200MP
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

11

Product overview

2.1

Properties

Order number
6ES7526-1BH00-0AB0

View of the module

2

Image 2-1 View of the F-DI 16x24VDC module

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

12

Manual, 01/2016, A5E03858068-AA

Properties

Product overview 2.1 Properties
 Technical properties ­ Fail-safe digital module for use in the S7-1500 automation system and in the ET 200MP distributed I/O system. ­ PROFIsafe ­ PROFIsafe address type 2 ­ Supports the RIOforFA-Safety profile (on S7-1500 F-CPUs) ­ 16 inputs (SIL3/Category 3/PLd) or 8 inputs (SIL3/Category 4/PLe) ­ 4 outputs for sensor supply ­ Use of various interconnection types are possible (1oo1 & 1oo2) ­ Supply voltage L+ ­ Sink input (P-reading) ­ Suitable for connection of 3/4-wire sensors according to IEC 61131:2007, type 1 ­ Channel-specific assignable input delay 0.4 ms to 20 ms ­ Internal short-circuit-proof sensor supplies for each channel group ­ External sensor supply possible ­ Status display RUN (green LED) ­ Status display module diagnostics (red LED) ­ Status display channel status/channel diagnostics per input (green/red LED) ­ Status display supply voltage (green LED) ­ Diagnostics, e.g., short-circuit, channel-specific ­ Diagnostics, e.g., load voltage missing, module-specific ­ Channel-specific or module-wide passivation
 Supported functions ­ Firmware update ­ I&M identification data
WARNING The fail-safe performance characteristics in the technical specifications apply for a mission time of 20 years and a repair time of 100 hours. If a repair within 100 hours is not possible, switch off the supply voltage of the affected module before 100 hours expires. Follow the repair procedure described in section Diagnostic alarms (Page 51).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

13

Product overview 2.1 Properties

Accessories

The following accessories are supplied with the module and can also be ordered as spare part:  Labeling strips  U-connector  Universal front cover  Electronic coding element

Additional components
The following component is to be ordered separately:
 Front connector incl. potential bridges and cable ties
You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

14

Manual, 01/2016, A5E03858068-AA

Connecting

3

3.1

Block diagram

This section includes the block diagram with the general pin assignment of the F-module.

For information on parameter assignment of the F-module, refer to "Parameters/address space (Page 17)".

Information on different connection options is available in the section Applications of the F-I/O module (Page 32).

You can find information on wiring the front connectors and creating the cable shielding, etc., in the Wiring section of the system manual Automation System S7-1500 (http://support.automation.siemens.com/WW/view/en/59191792).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

15

Connecting 3.1 Block diagram

Block diagram

The following figure shows the assignment of channels to addresses (input byte a and input byte b).

 Backplane bus interface  Microcontroller 1  Microcontroller 2
 Reverse polarity protection
USn Internal sensor supply n DIn Input bit n
Image 3-1 Block diagram of the F-DI 16x24VDC

L+ M CH
PWR RUN ERROR

Supply voltage 24 V DC Chassis ground Channel or LED channel status, channel diagnostics (green, red) LED supply voltage (green) RUN LED (green) LED module diagnostics (red)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

16

Manual, 01/2016, A5E03858068-AA

Parameters/address space

4

4.1

Parameters

Parameters

WARNING
Diagnostic functions must be activated or deactivated in accordance with the application, see section Applications of the F-I/O module (Page 32).

Table 4- 1 Parameters for F-DI 16x24VDC

Parameter
F-parameters: Manual assignment of F-monitoring time
F-monitoring time F-source address F-destination address F-parameter signature (without address) Behavior after channel fault
Reintegration after channel fault
F-I/O DB manual number assignment
F-I/O DB-number F-I/O DB name DI parameters: Sensor supply

Value range

Parameter reassignment in RUN

· Disable

No

· Enable

1 to 65535 ms

No

1 to 65534

No

1 to 65534

No

0 to 65535

No

· Passivate channel

No

· Passivate the entire module

· Adjustable

No

· All channels automatically · All channels manually

· Disable

No

· Enable

--

No

--

No

Scope
Module
Module Module Module Module Module
Module
Module
Module Module

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

17

Parameters/address space 4.1 Parameters

Parameter Supplied channels
Short-circuit test activated Time for short-circuit test Startup time of sensors after short-circuit test Channel parameters Channel n, n+8 Sensor evaluation
Discrepancy behavior Discrepancy time Reintegration after discrepancy error Channel n Channel activated

Value range
Sensor supply 0: · No channels · Channels [0..3] · Channels [0..7] · Channels [0..15] Sensor supply 1: · No channels · Channels [4..7] Sensor supply 2: · No channels · Channels [8..11] · Channels [8..15] Sensor supply 3: · No channels · Channels [12..15]
· Disable · Enable 0.9 ms to 2 s 0.9 ms to 2 s

Parameter reassignment in RUN
No

Scope Channel group

No

Channel

No

Channel

No

Channel

· 1oo1 evaluation

No

· 1oo2 evaluation, equivalent
· 1oo2 evaluation, nonequivalent

· Supply value 0

No

· Supply last valid value

5 ms to 30 s

No

· Test 0-signal not necessary No

· Test 0-signal necessary

· Enable

No

· Disable

Channel pair
Channel pair Channel pair Channel pair
Channel

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

18

Manual, 01/2016, A5E03858068-AA

Input delay

Parameter

Channel failure acknowledge
Pulse extension
Chatter monitoring Number of signal changes Monitoring window

Parameters/address space 4.2 Explanation of parameters

Value range · 0.4 ms

Parameter reassignment in RUN
No

· 0.8 ms

· 1.6 ms · 3.2 ms

· 6.4 ms

· 10.0 ms · 12.8 ms

· 20.0 ms

The provided value range depends on the parameter assignment of the employed sensor supply.

· Manual

No

· Automatic

The value range offered depends on the F-CPU in use and on the configuration of the Fparameter "Reintegration after channel fault".

· --

No

· 0.5 s · 1s

· 2s

· Disable

No

· Enable

2 to 31

No

0 to 100 s

No

(If 0 s is configured, the monitor-

ing window is 0.5 s long.)

Scope Channel
Channel
Channel Channel Channel Channel

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

19

Parameters/address space 4.2 Explanation of parameters

4.2

Explanation of parameters

4.2.1 4.2.1.1 4.2.1.2
20

F-parameters
You must assign the PROFIsafe address (F-destination address together with F-source address) to the F-module before you put it into operation.  You define the F-source address using the "Basis for PROFIsafe addresses" parameter
in the F-CPU.  An F-destination address unique throughout the CPU is automatically assigned for each
F-module. You can manually change the F-destination addresses set in the hardware configuration. You can find information on F-parameters for the F-monitoring time, the PROFIsafe address assignment (F-source address, F-destination address) and the F I/O DB in the manual SIMATIC Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126).
Behavior after channel fault
This parameter is used to specify whether the entire F-module is passivated or just the faulty channel(s) in the event of channel faults:  "Passivate the entire module"  "Passivate channel"
Reintegration after channel fault
Use this parameter to select how the channels of the fail-safe module are reintegrated after a fault.
Use in S7-300/400 F-CPUs This parameter is always set to "Adjustable" when you use the fail-safe module in S7-300/400 F-CPUs. You make the required setting in the F-I/O DB of the fail-safe module.
Use in S7-1500 F-CPUs When using the fail-safe module in S7-1500 F-CPUs, you set this parameter in the STEP 7 dialog of the fail-safe module:  "Adjustable"  "All channels automatically"  "All channels manually" If you have set the "Behavior after channel fault" parameter to "Passivate channel", you enable individual setting of the reintegration type per channel with the parameter assignment "Adjustable". The reintegration type of the respective channel is specified with the "Channel failure acknowledge" channel parameter. If you have set the "Behavior after channel fault" parameter to "Passivate the entire module", you can only select the same reintegration type for all channels.
Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0) Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.2 Explanation of parameters

4.2.2

Parameters of the sensor supply

4.2.2.1

Supplied channels
With this parameter, you specify whether and which internal sensor supply supplies which channel groups. The choice taken applies to the entire channel group (CH0-3, 4-7, 8-11, 12-15).
The following options are available, for example:

Parameter assignment:

Left-hand module side

Sensor supply 0 supplies channels ...
0 to 3

Sensor supply 1 supplies channels ...
4 to 7

0 to 7

-

0 to 3

4 to 7

0 to 7

-

0 to 15

-

Meaning
Each channel group is supplied by its own internal sensor supply. The channel groups of the left-hand module side are supplied by the internal sensor supply VS0. The channel groups of the right-hand module side are supplied by the internal sensor supply VS2. The channel groups of the left-hand module side are supplied by the internal sensor supply VS0; the channel groups of the right-hand module side are supplied by the internal sensor supply VS2. All the channels of the module are supplied by the internal sensor supply VS0.

Parameter assignment:

Right-hand module side

Sensor supply 2 supplies channels ...
8 to 11

Sensor supply 3 supplies channels ...
12 to 15

8 to 11

12 to 15

8 to 15

-

8 to 15

-

-

-

You can also supply the sensors by means of an external sensor supply (parameter "None").

The selection of an internal sensor supply is required for using the short-circuit test.

See also

Short-circuit test activated (Page 21) Connecting (Page 15)

4.2.2.2

Short-circuit test activated
Here you enable the short-circuit detection for the channels of the F-module for which one of the internal sensor supplies is set ("Supplied channels").
The short-circuit test is always possible when you are using simple switches that do not have their own power supply. For switches with their own power supply, for example, 3/4-wire proximity switches or optical sensors with OSSD (Output Signal Switching Device) outputs, you must adapt the "Startup time of sensors after short-circuit test" parameter to match the sensor in use.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

21

Parameters/address space 4.2 Explanation of parameters
The short-circuit detection switches off the internal sensor supply briefly. The length of the deactivation period is equivalent to the configured "Time for sensor test". If a short-circuit is detected, the F-module triggers a diagnostic interrupt and the input is passivated. The following short-circuits are detected:  Short-circuit of input to L+  Short-circuit of the input of another channel when it has a 1 signal  Short-circuit between the input and sensor supply of another channel  Short-circuit between the sensor supply and the sensor supply of another channel If the short-circuit test is disabled, you must make your wiring short-circuit and cross-circuit proof or select a connection type (discrepancy, non-equivalent) which also detect the crosscircuits using discrepancy.
Note During the execution time of the short-circuit test (Time for short-circuit test + Startup time of sensors after short-circuit test), the last valid value of the input before the start of the shortcircuit test is passed to the F-CPU. The activation of the short-circuit test thus affects the response time of the respective channel or channel pair.

4.2.2.3

Time for short-circuit test

Function

When the short-circuit test is enabled, the corresponding internal sensor supply is switched off for the configured time. If the module does not detect a "0" signal at the input within the configured time, a diagnostics alarm is generated.
Note the following during parameter assignment:
 If the channel is passivated, this may be due to excessively high capacitance between sensor supply and input. This consists of the capacitance per unit length of the cable and the capacitance of the employed sensor. If the connected capacitance is not discharged within the configured time, you need to adjust the "Time for short-circuit test" parameter.
Note
During the execution time of the short-circuit test (Time for short-circuit test + Startup time of sensors after short-circuit test), the last valid value of the input before the start of the short-circuit test is passed to the F-CPU. The activation of the short-circuit test thus affects the response time of the respective channel or channel pair.
 The "Time for short-circuit test" has to be 0.5 ms greater than the set input delay.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

22

Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.2 Explanation of parameters

4.2.2.4

Startup time of sensors after short-circuit test

Function

In addition to the switch-off time ("Time for short-circuit test"), a startup time must be specified for performing the short-circuit test. You use this parameter to notify the module how long the utilized sensor needs to start up after turning on the internal sensor supply. This prevents an undefined input state due to transient reactions in the sensor.
Note the following during parameter assignment:
 This parameter must be greater than the transient recovery time of the employed sensor.
 Because the assigned time affects the response time of the module, we recommend that you set the time as short as possible but long enough so that your sensor can settle safely.
 The "Startup time of sensors after short-circuit test" must
­ be set to a value greater than the set input delay
­ be at least 1% of the "time for short-circuit test"
­ be 0.5 ms greater than the set input delay.

Requirement

The short-circuit test is enabled.

4.2.3

Parameters of the channel pairs

4.2.3.1

Sensor evaluation

Overview

Select the type of sensor evaluation with the "Evaluation of the sensors" parameter:  1oo1 evaluation  1oo2 evaluation, equivalent  1oo2 evaluation, non-equivalent

1oo1 evaluation
With a 1oo1 evaluation, the sensor occupies only one input channel.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

23

Parameters/address space 4.2 Explanation of parameters

1oo2 evaluation, equivalent/non-equivalent
With a 1oo2 evaluation equivalent/non-equivalent, two input channels are occupied by:
 a two-channel equivalent/non-equivalent sensor
 Two single-channel sensors
The input signals are compared internally for equivalence or non equivalence.
Note that in 1oo2 evaluation, two channels are combined into a channel pair. The number of available process signals of the F-module is reduced accordingly. The evaluation result is provided in the bit of the lower-order channel of the channel pair (channel n).

Discrepancy analysis
When using a two-channel sensor or two single-channel sensors which measure the same process variable, the sensors interact with a slight time delay due to the limited precision of their arrangement.
Discrepancy analysis for equivalence or non-equivalence is used for fail-safe inputs to detect errors caused by the time characteristic of two signals with the same functionality. The discrepancy analysis is initiated when different levels are detected in two associated input signals (when testing for non-equivalence: the same level). A check is made to determine whether the difference in levels (when testing for non equivalence: the same level) has disappeared after an assignable time period, the so-called discrepancy time. If not, there is a discrepancy error.

4.2.3.2

Discrepancy behavior

Function

For the "Discrepancy behavior", you assign the value that is supplied to the safety program in the F-CPU during a discrepancy between two relevant input channels, which means while discrepancy time is running. You assign the discrepancy behavior as follows:
 Supply last valid value"
 "Supply value 0"

Requirements

You have assigned the following:  "Sensor evaluation": "1oo2 evaluation, equivalent" or "1oo2 evaluation, non-equivalent"

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

24

Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.2 Explanation of parameters

Supply last valid value"
The most recent valid value (old value) before the discrepancy occurred is made available to the safety program in the F-CPU as soon as a discrepancy is detected between the signals of the two affected input channels. This value is supplied until the discrepancy disappears or the discrepancy time expires and a discrepancy error is detected. The sensor-actuator response time is correspondingly increased by this time.
This means the discrepancy time of connected sensors with 1oo2 evaluation must be adjusted to fast response times. It makes no sense, for example, if connected sensors with a discrepancy time of 500 ms trigger a time-critical shutdown. In the worst-case scenario, the sensor-actuator response time is extended by an amount approximately equal to the discrepancy time:
 For this reason, position the sensors in the process in such a way as to minimize discrepancy.
 Then select the shortest possible discrepancy time which is also sufficient to compensate for faulty triggering of discrepancy errors.

"Supply value 0"
As soon as a discrepancy between the signals of the two relevant input channels is detected, the value "0" is made available to the safety program in the F-CPU.
If you have set "Supply value 0", the sensor-actuator response time is not affected by the discrepancy time.

4.2.3.3

Discrepancy time

Function

You can set the discrepancy time for each channel pair.

Requirements

You have assigned the following:
 "Sensor evaluation": "1oo2 evaluation, equivalent" or "1oo2 evaluation, non-equivalent"
In most cases, a discrepancy time is started, but does not fully expire because the signal differences are cleared within a short time.
 Set the discrepancy time high enough that in the error-free case the difference between the two signals (when testing for non equivalence: the same levels) has always disappeared before the discrepancy time has expired.

Behavior while discrepancy time is running
While the programmed discrepancy time is running internally on the module, either the last valid value or "0" is returned to the safety program on the F-CPU by the input channels involved, depending on the parameter settings for the behavior at discrepancy.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

25

Parameters/address space 4.2 Explanation of parameters

Behavior after expiration of the discrepancy time
If no agreement (when checking for non equivalence: inequality) of the input signals exists once the assigned discrepancy time expires, for example, due to a break in a sensor wire, a discrepancy error is detected and the "Discrepancy error" diagnostic message containing information on which channels are faulty is generated.

4.2.3.4

Reintegration after discrepancy error

Function

This parameter specifies the criteria for when a discrepancy error is regarded as corrected, thus enabling reintegration of the relevant input channels. The following parameter assignment options are available:
 "Test 0-Signal necessary"
 "Test 0-Signal not necessary"

Requirements

You have assigned the following:  "Sensor evaluation": "1oo2 evaluation, equivalent" or "1oo2 evaluation, non-equivalent"

"Test 0-Signal necessary"
If you have assigned "Test 0-signal necessary", a discrepancy error is not regarded as corrected until a 0-signal is present at both of the relevant input channels.
If you are using non equivalent sensors, which means you have set "Sensor evaluation" to "1oo2 evaluation, non-equivalent", the result of the channel pair must provide a 0-Signal again.

"Test 0-Signal not necessary"
If you have assigned "Test 0-Signal not necessary", a discrepancy error is regarded as corrected when a discrepancy no longer exists at both of the relevant input channels.

4.2.4 4.2.4.1

Parameters of the channels
Channel activated
You hereby enable the corresponding channel for signal processing in the safety program.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

26

Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.2 Explanation of parameters

4.2.4.2

Input delay

Function

To suppress injected interference, you can set an input delay for a channel or a channel pair.
Interference pulses whose pulse time is less than the set input delay (in ms) are suppressed. Suppressed interference pulses are not visible in the process image input (PII).
A high input delay suppresses longer interference pulses, but results in a longer response time.
The set value for the input delay has to be smaller than the configured "Startup time of sensors after short-circuit test" and smaller than the configured "Time for short-circuit test".
With 1oo2 evaluation, the input delay of the lower-order channel (channel n) automatically applies to the higher-order channel (channel n+8).
Note
If there is an input delay < 3.2 ms, you have to use shielded cables.
Note
Due to the physical properties, there is a possibility of crosstalk between signals in the case of long, unshielded signal lines (see section "Electromagnetic compatibility" in the system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792)).
If the interference pulses occur with a short-circuit test, the fail-safe digital inputs are passivated. Increase the input delay or use shielded signal lines in order to prevent possible passivation of the fail-safe digital inputs and switch-off of the internal sensor supply.

See also

Technical specifications (Page 57) Response times (Page 60)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

27

Parameters/address space 4.2 Explanation of parameters

4.2.4.3

Channel failure acknowledge
Use in S7-1500 F-CPUs This parameter is only relevant if the fail-safe module is operated on an S7-1500 F-CPU, and can only be set if the F-parameter "Behavior after channel fault" is set to "Passivate channel" and the F-parameter "Reintegration after channel fault" is set to "Adjustable". The value of this parameter specifies how the channel should react to a channel fault:  Manual: A channel failure is reintegrated after manual acknowledgment.  Automatically: The channel is reintegrated automatically after a channel fault. Manual
acknowledgment is not necessary.
Use in S7-300/400 F-CPUs The value of this parameter is not relevant in the case of operation on S7-300/400 F-CPUs. There you set the corresponding property at the F-I/O DB by means of the ACK_NEC tag. For detailed information about the F-I/O DB, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

4.2.4.4

Pulse extension

Function

Pulse extension is a function to extend a digital input signal. A pulse on a digital input is extended to at least the assigned length. If the input pulse is already longer than the assigned length, the pulse is not changed.
The fail-safe electronic module only lengthens pulses with the value "0" because the basis of the safety concept is that there is a safe state for all process variables. For digital F-I/O, this is the value "0", which applies to sensors as well as to actuators.
The pulse extension can only be configured with 1oo1 evaluation.

4.2.4.5

Chatter monitoring

Function

Chatter monitoring is a process control function for digital input signals. It detects and reports unusual signal sequences in the process with 1oo1 evaluation, for example, an input signal fluctuating between "0" and "1" too frequently. The occurrence of such signal characteristics is an indication of faulty sensors or process control instability.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

28

Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.2 Explanation of parameters

Recognizing unusual signal patterns
An assigned monitoring window is available for each input channel. The monitoring window starts with the first signal change of the input signal. If the input signal changes within the monitoring window at least as often as the assigned "Number of signal changes", a chatter error is detected. If no chatter error is detected within the monitoring window, the next signal change restarts the monitoring window.
If a chatter error is detected, a diagnostic is signaled. If the chatter error does not occur for the monitoring window for three times the configured period, the diagnostic is reset.

Principle

The figure below shows the principle of chatter monitoring as a graphic.

4.2.4.6 4.2.4.7

Image 4-1 Figure chatter monitoring
Number of signal changes
Sets the number of signal changes after which a chatter error should be reported (value range: 2 to 31).
Monitoring window
Sets the time for the monitoring window of flutter monitoring. You can set times of 1 s to 100 s in whole seconds for the monitoring window. Enter 0 to configure a monitoring window of 0.5 s.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

29

Parameters/address space 4.3 Address space

4.3

Address space

Address assignment of the digital input module F-DI 16x24VDC
The digital input module F-DI 16x24VDC occupies the following address areas in the F-CPU:

Table 4- 2 Address assignment in the F-CPU

F-CPU S7-300/400 F-CPUs S7-1500 F-CPUs
x = Module start address

Occupied bytes in the F-CPU: In input range IB x + 0 to x + 7 IB x + 0 to x + 8

In output range QB x + 0 to x + 3 QB x + 0 to x + 4

Address assignment of the user data and the value status of digital input module F-DI 16x24VDC
The user data occupies the following addresses in the F-CPU out of all the assigned addresses of the digital input module F-DI 16x24VDC:

Table 4- 3 Address assignment through user data

Byte in the F-CPU
IB x + 0 Channel group a
IB x + 1 Channel group b
IB x + 2 Channel group a
IB x + 3 Channel group b

7 DI7 (CH7)
DI7 (CH15)
Value status for DI7
(CH7) Value status for DI7
(CH15)

x = Module start address

6 DI6 (CH6)
DI6 (CH14)
Value status for DI6
(CH6) Value status for DI6
(CH14)

Assigned bits in F-CPU per F-module:

5

4

3

2

DI5 (CH5)

DI4 (CH4)

DI3 (CH3)

DI2 (CH2)

DI5 (CH13)

DI4 (CH12)

DI3 (CH11)

DI2 (CH10)

Value status for DI5
(CH5)
Value status for DI5
(CH13)

Value status for DI4
(CH4)
Value status for DI4
(CH12)

Value status for DI3
(CH3)
Value status for DI3
(CH11)

Value status for DI2
(CH2)
Value status for DI2
(CH10)

1 DI1 (CH1)
DI1 (CH9)
Value status for DI1
(CH1) Value status for DI1
(CH9)

0 DI0 (CH0)
DI0 (CH8)
Value status for DI0
(CH0) Value status for DI0
(CH8)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

30

Manual, 01/2016, A5E03858068-AA

Parameters/address space 4.3 Address space
Note You may only access the addresses occupied by user data and value status. The other address areas occupied by the F-modules are assigned for functions including safety-related communication between the F-modules and F-CPU in accordance with PROFIsafe. 1oo2 evaluation of the sensors combines the two channels, e.g. CH0 (input bit DI0 in channel group a) with CH8 (input bit DI0 in channel group b). With 1oo2 evaluation of the sensors, you may only access the input bit from channel group a in the safety program, in this example CH0.
Additional information
For detailed information about F-I/O access and for evaluation and processing of the value status, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

31

Applications of the F-I/O module

5

5.1

Applications of the F-DI 16x24VDC

Selecting the application
The diagram below supports you in selecting the application that suits your fail-safe requirements. In the following sections, you will learn how to wire the F-module, the specific parameters you must assign in STEP 7 Safety and the errors that are detected.

Image 5-1 Selecting the application ­ digital input module F-DI 16x24VDC
WARNING The achievable safety class depends on the quality of the sensor and the duration of the mission time in accordance with IEC 61508:2010. If the quality of the sensor is lower than the quality required by the safety class, redundant sensors connected via two channels must be used and evaluated.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

32

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.2 Application 1: Safety mode SIL3/Cat.3/PLd

Conditions for achieving SIL/Cat./PL
The table below lists the conditions which have to be met for achieving at least the corresponding safety requirements.

Table 5- 1 Conditions for achieving SIL/Cat./PL

Application

Sensor evaluation

Sensor supply

1

1oo1

Any

2

1oo2

Internal, without short-circuit test

equivalent

External

3.1

1oo2

Internal, with short-circuit test

equivalent

3.2

1oo2

External or internal, with short-

non-equivalent

circuit test

Achievable SIL/Cat./PL
3 / 3 / d 3 / 3 / e
3 / 4 / e

Note
You can operate the various inputs of an F-DI module simultaneously in SIL3/Cat.3/PLd and in SIL3/Cat.3 or Cat.4/PLe. You only have to interconnect the inputs and assign parameters as described in the following sections.

Sensor requirements
Information on the safety-related use of sensors is available in the section Requirements for sensors and actuators for fail-safe modules of the system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

33

Applications of the F-I/O module 5.2 Application 1: Safety mode SIL3/Cat.3/PLd

5.2

Application 1: Safety mode SIL3/Cat.3/PLd

Wiring

The wiring is carried out on the front connector of the module. Refer to the "Wiring" section in the S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Sensor supply
The sensor supply can be powered internally or externally.

Wiring diagram ­ connecting one sensor via one channel
One sensor is connected via one channel (1oo1 evaluation) for each process signal.
The assignment of the input to an internal sensor supply of the module must take place according to the parameter assignment "Supplied channels" (see section Supplied channels (Page 21)).
You can also supply the sensor by means of an external sensor supply.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

34

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.2 Application 1: Safety mode SIL3/Cat.3/PLd
The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with one-channel connection of a sensor.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-2 One sensor connected via one channel, internal sensor supply (left) or external sensor supply (right)

WARNING To achieve SIL3/Cat.3/PLd using this wiring, you must use a qualified sensor.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

35

Applications of the F-I/O module 5.2 Application 1: Safety mode SIL3/Cat.3/PLd

Parameter assignment
Assign the following parameters for the corresponding channel:
Table 5- 2 Parameter assignment

Parameter
Sensor evaluation Supplied channels Short-circuit test activated

Channel with internal sensor supply 1oo1 evaluation Channels [x...y]
· Disable
· Enable*

Channel with external sensor supply
None Disable

*) optional. The selection of an internal sensor supply, however, is required for using the short-circuit test.

Fault detection

The following table presents fault detection according to the sensor supply and the parameter assignment for the short-circuit test:
Table 5- 3 Fault detection

Fault
Short-circuit of the input with other channels or other sensor supplies (short-circuit with other channels is detected only if they use a different sensor supply) Short-circuit between the input and associated sensor supply Short-circuit with L+ to DIn Short-circuit with M to DIn Discrepancy error Short-circuit with L+ to USn Short-circuit with M to USn or defective

Fault detection

Internal sensor supply and short-circuit test
activated Yes*

Internal sensor supply and short-circuit
test deactivated No

No

No

Yes

No

No

No

--

--

Yes

No

Yes

Yes

External sensor supply No
No No No -- -- --

*) Fault detection only if signals are corrupted. That is, the read signal differs from the sensor signal. If there is no signal corruption with respect to the sensor signal, fault detection is not possible and is not required from a safety standpoint.

See also
36

WARNING
If the short-circuit test is not activated or the sensor supply to digital inputs is set to "External sensor supply", the cable must be routed short-circuit proof.

Connecting (Page 15)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0) Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.3 Application 2: Safety mode SIL3/Cat.3/PLe

5.3

Application 2: Safety mode SIL3/Cat.3/PLe

Assigning inputs to each other
The digital input module F-DI 16x24VDC has 16 fail-safe inputs, DI0 to DI15 (SIL3). You can combine two of these inputs each to one input. You can combine the following inputs:  DI0 and DI8  DI1 and DI9  DI2 and DI10  DI3 and DI11  DI4 and DI12  DI5 and DI13  DI6 and DI14  DI7 and DI15 The process signals are provided by channels DI0, DI1, DI2, DI3, DI4, DI5, DI6 and DI7.
Note You can mix 1oo1 evaluation and 1oo2 evaluation in an F-DI module. You must interconnect and parameterize the inputs according to the fail-safe requirements (SIL3/Cat.3/PLd and SIL3/Cat.3 or Cat.4/PLe).

Wiring

The wiring is carried out on the front connector of the module. Refer to the "Wiring" section in the S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Sensor supply
The sensor supply can be powered internally or externally.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

37

Applications of the F-I/O module 5.3 Application 2: Safety mode SIL3/Cat.3/PLe
Wiring diagram ­ connecting a two-channel sensor equivalent
A two-channel sensor is connected equivalent to two inputs of the F-module for each process signal (1oo2 evaluation). You can also supply one or both sensor switches by means of an external sensor supply. The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with equivalent connection of a two-channel sensor.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-3 One two-channel sensor connected equivalently, internal sensor supply (top) or external sensor supply (bottom)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

38

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.3 Application 2: Safety mode SIL3/Cat.3/PLe
Wiring diagram ­ connecting two single-channel sensors via two channels
Two single-channel sensors that capture the same process value are connected to two inputs of the F-module for each process signal (1oo2 evaluation). You can also supply the sensors by means of an external sensor supply. The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with two-channel connection of two single-channel sensors.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-4 Two single-channel sensors connected via two channels, internal sensor supply (top) or external sensor supply (bottom)

WARNING To achieve SIL3/Cat.3/PLe using this wiring, you must use a qualified sensor.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

39

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

Parameter assignment
Assign the following parameters for the corresponding channel:

Table 5- 4 Parameter assignment

Parameter
Sensor evaluation Supplied channels Short-circuit test activated

Channel with internal sensor supply
1oo2 evaluation, equivalent Channels [x...y] Disable

Channel with external sensor supply
None

Fault detection

The following table presents fault detection according to the sensor supply and the parameter assignment for the short-circuit test:

Table 5- 5 Fault detection

Fault
Short-circuit within the channel pair Short-circuit with other channels or other sensor supplies Short-circuit with L+ to DIn Short-circuit with M to DIn Discrepancy error Short-circuit with L+ to USn Short-circuit with M to USn or defective

Fault detection

Internal sensor supply and short-circuit test deactivated
No

External sensor supply No

Yes*

Yes

Yes* Yes* Yes No Yes

Yes* Yes* Yes No
--

*) Fault detection only if signals are corrupted. That is, the read signal differs from the sensor signal (discrepancy error). If there is no signal corruption with respect to the sensor signal, fault detection is not possible and is not required from a safety standpoint.

See also

Connecting (Page 15)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

40

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

5.4

Application 3: Safety mode SIL3/Cat.4/PLe

Assigning inputs to each other
The digital input module F-DI 16x24VDC has 16 fail-safe inputs, DI0 to DI15 (SIL3). You can combine two of these inputs each to one input.
You can combine the following inputs:  DI0 and DI8  DI1 and DI9  DI2 and DI10  DI3 and DI11  DI4 and DI12  DI5 and DI13  DI6 and DI14  DI7 and DI15
The process signals are provided by channels DI0, DI1, DI2, DI3, DI4, DI5, DI6 and DI7.

Wiring

The wiring is carried out on the front connector of the module. Refer to the "Wiring" section in the S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

Sensor supply

The sensor must be supplied internally by at least one channel group for application 3.1. The sensor can be supplied internally or externally for application 3.2.

Requirements for applications in machine protection with Cat.4
Both conditions must be met for applications in machine protection with Cat.4:  The wiring between sensors and automation system and between automation system and
actuators must be designed with state-of-the-art engineering and standards to prevent short-circuits.
 The sensors must be wired as shown in sections Application 3.1 (SIL3/Cat.4/PLe) (Page 42) or Use case 3.2 (SIL3/Cat.4/PLe) (Page 44). You only need to detect one short-circuit because 2 faults are required to generate it. This means both signal cables in short-circuit have an isolation fault. A multiple short-circuit analysis is not required.
Procedures for locating all short-circuits are also permitted if single short-circuits are not located. One of the two conditions must be met for this purpose:  Short-circuits may not corrupt the read signals compared to the sensor signals.
 Short-circuits cause a corruption of the read signals compared to sensor signals in the direction that ensures safety.

See also

Connecting (Page 15)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

41

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

5.4.1

Application 3.1 (SIL3/Cat.4/PLe)

Wiring diagram ­ connecting a two-channel sensor via two channels
A two-channel sensor is connected to two inputs of the F-module for each process signal (1oo2 evaluation).
Supply the sensors from two different internal sensor supplies.
Alternatively, two single-channel sensors can be connected via two channels. In this case, the same process variable is acquired with two mechanically separate sensors.
The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with two-channel connection of one two-channel sensor or two single-channel sensors.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-5 One two-channel sensor connected via two channels (top) or two single-channel sensors connected via two channels (bottom); internal sensor supply

WARNING To achieve SIL3/Cat.4/PLe using this wiring, you must use a suitably qualified sensor.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

42

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

Parameter assignment
Assign the following parameters for the corresponding channel:

Table 5- 6 Parameter assignment
Parameter Sensor evaluation Supplied channels Short-circuit test activated

Channel with internal sensor supply 1oo2 evaluation, equivalent Channels [x...y] Enable

Fault detection

The following table presents fault detection according to the sensor supply and the parameter assignment for the short-circuit test:

Table 5- 7 Fault detection

Fault
Short-circuit within the channel pair Short-circuit with other channels or other sensor supplies Short-circuit with L+ to DIn
Short-circuit with M to DIn Discrepancy error Short-circuit with L+ to USn Short-circuit with M to USn or defective

Fault detection Internal sensor supply and short-circuit test activated
No Yes*
Yes* / Yes (for channel whose short-circuit test is activated) Yes* Yes Yes Yes

*) Fault detection only if signals are corrupted. That is, the read signal differs from the sensor signal (discrepancy error). If there is no signal corruption with respect to the sensor signal, fault detection is not possible and is not required from a safety standpoint.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

43

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

5.4.2

Use case 3.2 (SIL3/Cat.4/PLe)

Wiring diagram ­ connecting a non-equivalent sensor
A non-equivalent sensor is connected to two inputs of the F-module for each process signal (1oo2 evaluation, non-equivalent).
You can also supply the sensor by means of an external sensor supply.
The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with connection of a non-equivalent sensor.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-6 One non-equivalent sensor connected, internal sensor supply (top) or external sensor supply (bottom)

WARNING To achieve SIL3/Cat.4/PLe using this wiring, you must use a suitably qualified sensor.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

44

Manual, 01/2016, A5E03858068-AA

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe
Wiring diagram ­ connecting two single-channel sensors non-equivalent
Two single-channel sensors are connected non-equivalent to two inputs of the F-module for each process signal (1oo2 evaluation). You can also supply one or both sensors by means of an external sensor supply. The figure below shows an example of the pin assignment of the fail-safe digital input module F-DI 16x24VDC with non-equivalent connection of two single-channel sensors.

 Backplane bus interface  Microcontroller 1

 Microcontroller 2  Reverse polarity protection

Image 5-7 Two single-channel sensors connected non-equivalently, internal sensor supply (top) or external sensor supply (bottom)

WARNING To achieve SIL3/Cat.4/PLe using this wiring, you must use a suitably qualified sensor.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

45

Applications of the F-I/O module 5.4 Application 3: Safety mode SIL3/Cat.4/PLe

Parameter assignment
Assign the following parameters for the corresponding channel:

Table 5- 8 Parameter assignment

Parameter Sensor evaluation Supplied channels
Short-circuit test activated

Channel with internal sensor supply 1oo2 evaluation, non-equivalent Channels [x...y] · Disable · Enable*

Channel with external sensor supply
None Disable

*) optional. The selection of an internal sensor supply, however, is required for using the short-circuit test.

Fault detection

The following table presents fault detection according to the sensor supply and the parameter assignment for the short-circuit test:

Table 5- 9 Fault detection

Fault Short-circuit within the channel pair, with other channels or other sensor supplies Short-circuit with L+ to DIn Short-circuit with M to DIn Discrepancy error Short-circuit with L+ to USn
Short-circuit with M to USn or defective

Fault detection Yes
yes* / yes (for channel whose short-circuit test is activated) Yes* Yes
Yes, if internal sensor supply is used and short-circuit test activated
Yes, if internal sensor supply is activated

*) Fault detection only if signals are corrupted. That is, the read signal differs from the sensor signal (discrepancy error). If there is no signal corruption with respect to the sensor signal, fault detection is not possible and is not required from a safety standpoint.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

46

Manual, 01/2016, A5E03858068-AA

Interrupts/diagnostic messages

6

6.1

Status and error displays

LED displays

Image 6-1 LED displays of the F-DI 16x24VDC module
Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedies for diagnostic alarms can be found in section Diagnostic alarms (Page 51).
WARNING The RUN, ERROR LEDs and channel status/channel diagnostics LEDs of the inputs are not designed as safety-related LEDs and therefore may not be evaluated for safety-related activities.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

47

Interrupts/diagnostic messages 6.1 Status and error displays

RUN and ERROR LEDs

Table 6- 1 RUN and ERROR status and error displays

LED

RUN

ERROR

Off

Off

Flashing

Off

On

Off

Off

Flashing

On

Flashing

Flashing Flashing /
Alternately flashing

Meaning

Remedy

Missing or insufficient voltage on the backplane · Switch on the CPU and/or the system pow-

bus

er supply modules.

· Check whether the module is correctly plugged into the U-connector.

· Check whether too many modules are plugged in.

Module starts up and flashes up to the valid

---

parameter assignment.

Module parameters are assigned and module addressed.

Firmware is being updated.

Indicates diagnostic interrupts:
· Module fault (for example, supply voltage too high)
· Channel fault (for example, frequency too high).
· PROFIsafe communication error Operation in S7-1500 F-CPUs: At least one channel is waiting for user acknowledgment. Hardware defective.

Evaluate the diagnostics and eliminate or acknowledge the error. It may be necessary to remove and re-insert the module.
Replace the module.

· Operation in S7-1500 F-CPUs: The F-

Acknowledge the error (see manual SIMATIC

module expects user acknowledgment after Safety - Configuring and Programming

a module error. · Operation in S7-300/400 F-CPUs: At least

(http://support.automation.siemens.com/WW/vi ew/en/54110126)).

one channel is waiting for user acknowl-

edgment.

PWR LED

Table 6- 2 PWR status display

PWR LED Off On

Meaning Supply voltage L+ missing
Supply voltage L+ available

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

48

Manual, 01/2016, A5E03858068-AA

Interrupts/diagnostic messages 6.1 Status and error displays

CHx LED

Table 6- 3 Display channel status/channel diagnostics

Status CHx

Diagnostics CHx

Off

Off

On

Off

Off

On

/

Alternately flashing

Meaning Process signal = 0 and no channel diagnostics* Process signal = 1 and no channel diagnostics Process signal = 0 and channel diagnostics Channel waiting for user acknowledgment

* Operation in S7-300/400 F-CPUs only: If necessary, wait for user acknowledgment, if an additional channel is also waiting for user acknowledgment due to an error that occurred later.

CHx/Error LED with PROFIsafe address assignment

Table 6- 4 Channel status/channel diagnostics/Error display with PROFIsafe address assignment

Status CHx
Off
All are flashing

Diagnostics CHx
All on
Off

ERROR Meaning

Flashing Flashing

The PROFIsafe address does not match the configured PROFIsafe address
Identification of the F-module when assigning the PROFIsafe address

CHx/RUN/ERROR LED if supply voltage error occurs

Table 6- 5 Channel status/channel diagnostics/RUN/ERROR display if supply voltage error occurs

CHx status

Diagnostics CHx

Off

On

RUN On

ERROR Meaning

Flashing

Supply voltage too high or too low.
· Operation in S7-1500 F-CPUs: Module is waiting for user acknowledgment.
· Operation in S7-300/400 F-CPUs: Module is automatically reintegrated after the correction of the error.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

49

Interrupts/diagnostic messages 6.2 Interrupts

6.2

Interrupts

Introduction

The F-DI 16x24VDC fail-safe digital input module supports diagnostic interrupts.

Diagnostic interrupt
The F-module generates a diagnostic interrupt for each diagnostic alarm described in section Diagnostic alarms (Page 51).
The table below provides an overview of the diagnostic interrupts of the F-module . The diagnostic interrupts are assigned either to one channel or the entire F-module.
Table 6- 6 Diagnostic interrupts of the F-DI 16x24VDC

Diagnostic interrupt
Overtemperature Parameter error Supply voltage missing Mismatch of safety destination address (F_Dest_Add) Safety destination address not valid (F_Dest_Add) Safety source address not valid (F_Source_Add) Safety watchdog time value is 0 ms (F_WD_Time) Parameter F_SIL exceeds SIL from specific device application Parameter F_CRC_Length does not match the generated values Version of F-parameter set incorrectly CRC1 fault Save iParameter watchdog time exceeded Restore iParameter watchdog time exceeded Inconsistent iParameters (iParCRC error) F_Block_ID not supported Transmission error: Inconsistent data (CRC error) Transmission error: Timeout (watchdog time 1 or 2 expired) Module is defective Watchdog tripped Invalid/inconsistent firmware present Discrepancy failure, channel state 0/0 Discrepancy failure, channel state 0/1 Discrepancy failure, channel state 1/0 Discrepancy failure, channel state 1/1 Input signal not recorded unique

Fault code
5D 16D 17D 64D 65D 66D 67D 68D 69D 70D 71D 73D 74D 75D 76D 77D 78D 256D 259D 283D 768D 769D 770D 771D 773D

Signaled in application
1, 2, 3

Scope of diagnostic interrupt
F-module

Configurable No

2, 3

Channel

1, 2, 3

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

50

Manual, 01/2016, A5E03858068-AA

Diagnostic interrupt
Internal sensor supply short-circuit to P Overload or internal sensor supply short-circuit to ground Channel failure acknowledgment F-address memory not accessible Sensor signal flutters Frequency too high Undertemperature Input shorted to P Supply voltage too high Supply voltage too low

6.3

Diagnostic alarms

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Fault code
774D 775D 779D 781D 784D 785D 786D 796D 801D 802D

Signaled in application

Scope of diagnostic interrupt

Configurable Yes

F-module No

1

Channel

Yes

No

F-module

Channel

Yes

F-module No

Diagnostic alarms
Module faults are indicated as diagnostics (module status).
Once the fault is eliminated, the F-module must be reintegrated in the safety program. For additional information on passivation and reintegration of F-I/O, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Table 6- 7 Diagnostic alarms of the F-DI 16x24VDC

Diagnostic alarm Overtemperature
Parameter error

Fault code 5D
16D

Meaning An excessively high temperature was measured in the F-module.
Parameter errors include: · The F-module cannot use the parame-
ters (unknown, invalid combination, etc.). · The F-module parameters have not been configured.

Remedy
Operate the F-module within the specified temperature range (see Technical specifications (Page 57)) Once the temperature has been reduced and returns to the specified range, the F-module must be removed and inserted or the power switched OFF and ON.
Correct the parameter assignment.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

51

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Supply voltage missing

Fault code
17D

Mismatch of safety destina- 64D tion address (F_Dest_Add)
Safety destination address 65D not valid (F_Dest_Add)
Safety source address not 66D valid (F_Source_Add)
Safety watchdog time value is 67D 0 ms (F_WD_Time)
Parameter F_SIL exceeds 68D SIL from specific device application
Parameter F_CRC_Length 69D does not match the generated values
Version of F-parameter set 70D incorrectly

CRC1 fault

71D

Save iParameter watchdog 73D time exceeded

Restore iParameter watchdog 74D time exceeded

Inconsistent iParameters

75D

(iParCRC error)

F_Block_ID not supported

76D

Transmission error: Incon- 77D sistent data (CRC error)

Transmission error: Timeout 78D (watchdog time 1 or 2 expired)

Meaning

Remedy

Missing or insufficient supply voltage L+

· Check supply voltage L+ at the front connector
· Check the front connector

The firmware of the F-module has detected · Check the parameter assignment

a different F-destination address.

of the PROFIsafe driver and the

The firmware of the F-module has detected

PROFIsafe address assigned to

an illegal different F-destination address.

the F-module.

The firmware of the F-module has detected · Assign the PROFIsafe address to

a different F-source address.

the F-module (again).

The firmware of the F-module has detected

an invalid watchdog time.

The firmware of the F-module has detected a discrepancy between the SIL setting of the communication and the application.

The firmware of the F-module has detected a discrepancy in the CRC length.

The firmware of the F-module has detected an incorrect F_Par_Version or an invalid F_Block_ID.
The firmware of the F-module has detected inconsistent F-parameters.
iPar server does not respond to "save IPar" within 4.4 minutes.
iPar server does not respond to "restore IPar" within 4.4 minutes.
The firmware of the F-module has detected inconsistent iParameters.
The firmware of the F-module has detected an incorrect F_block_ID.
The firmware of the F-module has detected a CRC error.
Possible causes:

Check the parameter assignment of the iPar server. Check the parameter assignment of the iPar server. Check the parameter assignment.
Check the parameter assignment of the PROFIsafe driver.
· Check the communication connection between the F-module and F-CPU.

· The communication between the F-CPU · Eliminate the electromagnetic

and F-module is disturbed.

interference.

· Impermissibly high electromagnetic interference is present.

· An error occurred in the sign-of-life monitoring.

The firmware of the F-module has detected · Check the parameter assign-

a timeout.

ment.

Possible causes:

· Ensure that communication is

· The F-monitoring time is set incorrectly.

functioning correctly.

· A bus fault is present.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

52

Manual, 01/2016, A5E03858068-AA

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Module is defective
Watchdog tripped
Invalid/inconsistent firmware present
Discrepancy failure, channel state 0/0 Discrepancy failure, channel state 0/1 Discrepancy failure, channel state 1/0 Discrepancy failure, channel state 1/1

Fault code 256D
259D
283D
768D 769D 770D 771D

Meaning

Remedy

Possible causes:

· Impermissibly high electromagnetic interference is present.

· Eliminate the interference. The module must then be pulled and plugged, or the power switched OFF and ON.

· The F-module has detected an internal · If the F-module cannot be put

error and has reacted in a safety-related back into operation, consider re-

manner.

placing it.

Possible causes:

· Impermissibly high electromagnetic interference is present.

· Eliminate the interference. The module must then be pulled and plugged, or the power switched OFF and ON.

· The F-module has detected an internal · If the F-module cannot be put

error and has reacted in a safety-related back into operation, consider re-

manner.

placing it.

The firmware is incomplete and/or firmware · Perform a firmware update for all

added to the F-module is incompatible.

parts of the F-module and note

This leads to errors or functional limitations when operating the F-module.

any error messages.

· Use only firmware versions re-

leased for this F-module.

Possible causes:

· The process signal is faulty.

· Check the process signal.

· The sensor is defective.

· Replace the sensor.

· The configured discrepancy time is too · Check the parameter assignment

low.

of the discrepancy time.

· There is a short-circuit between an

· Check the process wiring.

unconnected sensor cable and the sen-

sor supply cable.

· Wire break in connected sensor cable or the sensor supply cable

· An error occurred during the discrepancy check.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

53

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm
Input signal not recorded unique

Fault code
773D

Internal sensor supply short- 774D circuit to P
Overload or internal sensor 775D supply short-circuit to ground

Meaning

Remedy

An error occurred during the plausibility check of the input signal between the processors.
Possible causes:
· The input signal is faulty, e.g., as a result of impermissibly high electromagnetic interference.

· Use shielded cables to reduce the EMC effects.
· Reduce the input frequency. · Check the wiring of the sensor.

· A high-frequency input signal is present, e.g., due to mutual interference of sensors or the signal being above the sampling frequency of the input signal.
· A momentary interruption/short-circuit of the sensor cable (loose contact) is present.

· The sensor/switch is bouncing.

Possible causes:
· There is a short-circuit of the internal sensor supply with L+.
· There is a short-circuit of two sensor supplies.
· The capacitance of the connected sensor for the configured test time is too high.

· Eliminate the short-circuit in the process wiring.
· Check the configured test time and the process wiring.
· Replace the sensor.

· The sensor is defective.

Possible causes:
· The internal sensor supply is shortcircuited to ground.
· Impermissibly high electromagnetic interference is present.

· Eliminate the overload.
· Eliminate the short-circuit in the process wiring.
· Check the "Sensor supply" parameter.

· Eliminate/reduce the electromagnetic interference.

Channel failure acknowledgment
F-address memory not accessible

779D 781D

A channel fault was detected. Confirmation is required to enable the channel.
The F-source address and F-destination address stored in the coding element cannot be accessed.

Confirm the channel fault.
Verify that the coding element is present or replace the coding element.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

54

Manual, 01/2016, A5E03858068-AA

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Sensor signal flutters
Frequency too high Undertemperature Input shorted to P Supply voltage too high Supply voltage too low

Fault code 784D
785D 786D 796D 801D 802D

Meaning

Remedy

Too many signal changes have occurred · within the time configured with the "Monitor-

ing window" parameter. ·
· The "Monitoring window" parameter

setting is too high.

·

· The "Number of signal changes" parameter setting is too low.

·

·

A momentary interruption/short-circuit of the sensor cable (loose contact) is pre-

·

sent.

Check the "Monitoring window" parameter.
Check the "Number of signal changes" parameter.
Check the process wiring.
Eliminate/reduce the electromagnetic interference.
Replace the sensor.

· Impermissibly high electromagnetic interference is present.

· The sensor/switch is bouncing.

· The sensor is defective.

The switching frequency of the encoder is too high. The minimum permissible temperature limit has been violated.
The input signal is short-circuited to L+. The supply voltage is too high. The supply voltage is too low.

Reduce the switching frequency of the sensor.
Operate the F-module within the specified temperature range (see Technical specifications (Page 57))
Eliminate the short-circuit.
Check the supply voltage.
Check the supply voltage.

Supply voltage outside the nominal range
If the supply voltage L+ is outside the specified value range, the ERROR LED flashes and the module is passivated.
When the voltage is then recovered (level must remain within the specified value for at least 1 minute, see Technical specifications (Page 57)), the ERROR LED stops flashing. The module remains passivated and waits for user acknowledgment.

Behavior in case of cross circuit/short-circuit to the sensor supply
When internal sensor supply is configured and short-circuit test is deactivated, short-circuits to ground at the sensor supplies are detected. Channels for which the relevant sensor supply is configured will be passivated.
When internal sensor supply is configured and short-circuit test is enabled, short-circuits to ground and potential at the sensor supply are detected. Channels for which the relevant sensor supply is configured will be passivated.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

55

Interrupts/diagnostic messages 6.3 Diagnostic alarms
Special features for fault detection
The detection of certain faults (short-circuits or discrepancy errors, for example) depends on the application, the wiring, and the parameter assignment of the short-circuit test and the sensor power supply. For this reason, tables on fault detection for the applications are presented under Applications of the F-I/O module (Page 32).
Generally applicable information on diagnostics
Information on diagnostics that pertains to all F-modules (for example, readout of diagnostics functions or passivation of channels) is available in the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

56

Manual, 01/2016, A5E03858068-AA

Technical specifications

7

Technical specifications of F-DI 16x24VDC

General information Product type designation Firmware version · FW update possible
Product function I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version Operating mode DI Supply voltage Rated value (DC) Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Input current Current consumption (rated value) Sensor supply Number of outputs Short-circuit protection
24 V sensor supply 24 V Short-circuit protection Output current, max.
Power Power consumption from the backplane bus Power loss Power loss, typ. Address range Address space per module Address space per module, max.

6ES7526-1BH00-0AB0
F-DI 16x24VDC
Yes
Yes; I&M0 to I&M3
V13 SP1 with HSP0086
Yes
24 V 19.2 V 28.8 V Yes
50 mA
4 Yes; electronic (response threshold 0.7 A to 1.8 A)
Yes; min. L+ (-1.5 V) Yes 300 mA; max. 100 mA with vertical mounting position
0.9 W
4.6 W
9 bytes

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

57

Technical specifications

Digital inputs Number of inputs m/p-reading Input characteristic curve according to IEC 61131, Type 1 Input voltage Rated value (DC) For "0" signal For "1" signal Input current For "1" signal, typ. Input delay (for rated value of input voltage) For standard inputs
· Configurable

6ES7526-1BH00-0AB0
16 Yes; p-reading Yes
24 V -30 ... +5 V +15 ... +30 V
3.7 mA
Yes

· For "0" to "1", min.

0.4 ms

· For "0" to "1", max.

20 ms

· For "1" to "0", min.

0.4 ms

· For "1" to "0", max.

20 ms

Cable length shielded, max. unshielded, max.

1000 m 500 m

Interrupts/diagnostics/status information

Interrupts Diagnostic interrupt Hardware interrupt Diagnostic alarms Diagnostics Monitoring of supply voltage Wire break Short-circuit Group error Diagnostics display LED RUN LED ERROR LED Channel status display For channel diagnostics For module diagnostics

Yes No
Yes Yes No Yes Yes
Yes; green LED Yes; red LED Yes; green LED Yes; red LED Yes; red LED

Electrical isolation

Electrical isolation, channels Between channels and backplane bus Permitted potential difference Between different circuits

Yes 75 V DC/60 V AC (basic insulation)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

58

Manual, 01/2016, A5E03858068-AA

Technical specifications

Insulation Insulation test voltage Standards, approvals, certificates Maximum achievable safety class in safety mode Performance level according to EN ISO 138491:2008 SIL according to IEC 61508 Low demand mode: PFDavg according to SIL3 High demand/continuous mode: PFH according to SIL3 Environmental conditions Ambient temperature in operation Horizontal installation, min. Horizontal installation, max. Vertical installation, min. Vertical installation, max. Dimensions Width Height Depth Weights Weight, approx.

6ES7526-1BH00-0AB0
707 VDC (type test)
PLe SIL 3 < 5.00E-05 < 1.00E-09 1/h
0 °C 60 °C 0 °C 40 °C
35 mm 147 mm 129 mm
280 g

Dimension drawing
See system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

59

Response times

A

Introduction

The next section shows the response times of the digital input module F-DI 16x24VDC. The response times of the digital input module F-DI 16x24VDC are included in the calculation of the F-system response time.

Definition of cycle time for fail-safe digital inputs
The cycle time indicates the time between the occurrence of an event and the transfer to the backplane bus.

Times required for the calculation
 Max. cycle time: Tcycle = 5 ms  Max. acknowledgment time (Device Acknowledgment Time): TDAT = 10 ms
The maximum response time in the case of fault (One Fault Delay Time, OFDT) is equivalent to the maximum response time with no faults (Worst Case Delay Time, WCDT).

Maximum response time with no faults (Worst Case Delay Time, WCDT) during 1oo1 evaluation
The following formula applies to a sensor supply without short-circuit test: t <= 2 * cycle time + input delay The following formula applies to a sensor supply with short-circuit test: t <= 2 * cycle time + input delay + T1 + T2

T1 Time for short-circuit test T2 Startup time of sensors after the short-circuit test

Maximum response time with no faults (Worst Case Delay Time, WCDT) during 1oo2 evaluation
The following formula applies to a sensor supply without short-circuit test: t <= 2 * cycle time + input delay+ discrepancy time* * Obsolete with discrepancy behavior "Supply value 0" The following formula applies to a sensor supply with short-circuit test: t <= 2 * cycle time + input delay+ max (T1p + T2p, T1s + T2s) + discrepancy time* * Obsolete with discrepancy behavior "Supply value 0"

T1p Test time for the sensor supply of sensor 1 T2p Startup time of sensor after the short-circuit test (sensor 1) T1s Test time for the sensor supply of sensor 2 T2s Startup time of sensor after the short-circuit test (sensor 2)

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

60

Manual, 01/2016, A5E03858068-AA

Response times

Maximum response time to external short-circuits
t <= max (120 ms, 2 * (n × cycle time) + sum [x=0...3](T1x + T2x)) + cycle time

T1x Time for the sensor test

T2x Startup time of sensors after the short-circuit test

n

Number of sensor supplies with activated short-circuit test

x

Sensor supply

Maximum response time to discrepancy errors during 1oo2 evaluation
t <= 2 * cycle time + input delay + discrepancy time + 2 * max (T1p + T2p, T1s + T2s)

n

Number of sensor supplies with activated short-circuit test

T1x Time for the sensor test

T2x Startup time of sensors after the short-circuit test

T1p Test time for the sensor supply of sensor 1

T2p Startup time of sensor after the short-circuit test (sensor 1)

T1s Test time for the sensor supply of sensor 2

T2s Startup time of sensor after the short-circuit test (sensor 2)

x

Sensor supply

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

61

Open Source Software

B

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

62

Manual, 01/2016, A5E03858068-AA

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

63

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

64

Manual, 01/2016, A5E03858068-AA

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

65

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

66

Manual, 01/2016, A5E03858068-AA

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

67

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

68

Manual, 01/2016, A5E03858068-AA

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

69

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

70

Manual, 01/2016, A5E03858068-AA

Open Source Software

Digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

Manual, 01/2016, A5E03858068-AA

71

SIMATIC S7-1500/ET 200MP Produktinformation zur Dokumentation des Digitaleingabemoduls F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Produktinformation
Security-Hinweise
Siemens bietet Produkte und Lösungen mit Industrial Security-Funktionen an, die den sicheren Betrieb von Anlagen, Systemen, Maschinen und Netzwerken unterstützen. Um Anlagen, Systeme, Maschinen und Netzwerke gegen Cyber-Bedrohungen zu sichern, ist es erforderlich, ein ganzheitliches Industrial Security-Konzept zu implementieren (und kontinuierlich aufrechtzuerhalten), das dem aktuellen Stand der Technik entspricht. Die Produkte und Lösungen von Siemens formen einen Bestandteil eines solchen Konzepts. Die Kunden sind dafür verantwortlich, unbefugten Zugriff auf ihre Anlagen, Systeme, Maschinen und Netzwerke zu verhindern. Diese Systeme, Maschinen und Komponenten sollten nur mit dem Unternehmensnetzwerk oder dem Internet verbunden werden, wenn und soweit dies notwendig ist und nur wenn entsprechende Schutzmaßnahmen (z. B. Firewalls und/oder Netzwerksegmentierung) ergriffen wurden. Weiterführende Informationen zu möglichen Schutzmaßnahmen im Bereich Industrial Security finden Sie unter (https://www.siemens.com/industrialsecurity). Die Produkte und Lösungen von Siemens werden ständig weiterentwickelt, um sie noch sicherer zu machen. Siemens empfiehlt ausdrücklich, Produkt-Updates anzuwenden, sobald sie zur Verfügung stehen und immer nur die aktuellen Produktversionen zu verwenden. Die Verwendung veralteter oder nicht mehr unterstützter Versionen kann das Risiko von Cyber-Bedrohungen erhöhen. Um stets über Produkt-Updates informiert zu sein, abonnieren Sie den Siemens Industrial Security RSS Feed unter (https://www.siemens.com/industrialsecurity).
Inhalt Diese Produktinformation enthält Ergänzungen und Korrekturen zur Dokumentation des Digitaleingabemoduls F-DI 16x24VDC (6ES7526-1BH00-0AB0). Die Produktinformation ist Bestandteil des gelieferten Produkts. Die darin enthaltenen Aussagen sind in Zweifelsfällen als aktueller anzusehen.

Unrestricted © Siemens AG 2020. Alle Rechte vorbehalten

A5E48022181-AA, 06/2020

1

Reaktionszeiten
Definition Reaktionszeit für fehlersichere Digitaleingänge Die Reaktionszeit gibt die Zeit des betrachteten Kanals zwischen einem Signalwechsel am Digitaleingang bis zum sicheren Bereitstellen des Sicherheitstelegramms am Rückwandbus an.
Maximale Reaktionszeit bei externen Kurzschlüssen max. Reaktionszeit = Eingangsverzögerung + T1 + 158 ms + 2 * Summe[x=0..3](T1x + T2x * korr)

T1 = Zeit für den Kurzschlusstest für den betrachteten Kanal x = aktivierte Geberversorgung T1x = Zeit für den Kurzschlusstest T2x = Hochlaufzeit des Gebers nach dem Kurzschlusstest korr = Korrekturfaktor = 1,03 Summenterm = Summe [x=0..3](T1x + T2x * korr): Summe aller Kurzschlusstest- und Hochlaufzeiten der aktivierten Geberversorgungen

Beispiele

Nachfolgend finden Sie ein Beispiel für die Berechnung der max. Reaktionszeit der F-DI 16x24VDC mit voreingestellter Parametrierung.

Kanal
0 - 3 4 - 7 8 - 11 12 15

Eingangsverzöger ung [ms] 3,2 3,2 3,2 3,2

Kurzschlusstest freigegeben freigegeben freigegeben freigegeben

T1 [ms] 4,2 4,2 4,2 4,2

T2 [ms] 4,2 4,2 4,2 4,2

Geberversorgun g 0 1 2 3

Summenterm [ms] 34,1

max. Reaktionszeit [ms] 233,6 233,6 233,6 233,6

Beispielrechnung: Summenterm = (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) = 34,1 ms

Nachfolgend finden Sie Beispiele für die Berechnung der max. Reaktionszeit der F-DI 16x24VDC in Abhängigkeit von der Parametrierung.

Kanal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Eingangsverzöger ung [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Kurzschluss- T1 T2 Geberversorgun

test

[ms] [ms] g

freigeben

3,7 3,7 0

freigeben

100 20 1

freigeben

2000 2000 2

sperren

-

-

3

Summenterm [ms] 4188,1

max. Reaktionszeit [ms] 8538,3 8538,3 8541,1 8541,1 8640,6 8644,2 8647,0 8647,0 10554,2 10554,2 10554,2 10554,2 - *) - *) - *) - *)

*) Bei deaktiviertem Kurzschlusstest werden externe Kurzschlüsse nicht erkannt.

Unrestricted
2

Produktinformation zur Dokumentation des Digitaleingabemoduls F-DI 16x24VDC (6ES7526-1BH00-0AB0) A5E48022181-AA, 06/2020

Beispielrechnung: Summenterm = (3,7 ms + 3,7 ms * 1,03) + (100 ms + 20 ms * 1,03) + (2000 ms + 2000 ms * 1,03) = 4188,1 ms

Kanal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Eingangsverzögerung [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Kurzschlusstest freigeben
freigeben

T1 [ms] 20
500

T2 [ms] 20
500

Geberversorgun g 0
2

Summenterm [ms] 1055,6

max. Reaktionszeit [ms] 2289,6 2289,6 2292,4 2292,4 2295,6 2299,2 2302,0 2302,0 2789,2 2789,2 2789,2 2789,2 2769,6 2770,8 2779,2 2789,2

Beispielrechnung: Summenterm = (20 ms + 20 ms * 1,03) + (500 ms + 500 ms * 1,03) = 1055,6 ms

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG DEUTSCHLAND

UPrnordeustkrtiicntfeodrmPraotdiounktzinufroDromkautmioennztuartiDonokduems eDnigtaittaiolenindgeasbDeimgiotadluelisngF-aDbIe1m6oxd2u4lVsDFC-D(I61E6Sx72542V6D-1CB(H60E0S-705A2B60-)1BH00-0AB0)

AA55EE4488002222118811--AAAA,, 0066//22002200

3

SIMATIC S7-1500/ET 200MP Product information for documentation of the digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Product Information
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept. Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place. For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity). Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Content This Product Information contains additional information and corrections relating to the documentation on the digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0). The Product Information is part of the product supplied. The statements provided in it should be considered more up-to-date than other documentation if uncertainties arise.

Unrestricted
4

© Siemens AG 2020. All rights reserved A5E48022181-AA, 06/2020

Response times
Definition of response time for fail-safe digital inputs The response time of the considered channel represents the interval between a signal change at the digital input and reliable availability of the safety frame on the backplane bus.
Maximum response time with external short-circuits Max. response time = Input delay + T1 + 158 ms + 2 * Sum[x=0..3](T1x + T2x * corr)

T1 = Short-circuit test time for the considered channel x = activated sensor supply T1x = Time for the short-circuit test T2x = Startup time of the sensor after the short-circuit test corr = correction factor = 1.03 Sum term = sum [x=0..3](T1x + T2x * corr): Sum of all short-circuit tests and startup times of the active sensor supplies

Examples

Below you will find an example for the calculation of the maximum response time of the F-DI 16x24VDC with default parameter assignment.

Chann Input delay [ms] el 0 to 3 3.2 4 to 7 3.2 8 to 3.2 11 12 to 3.2 15

Short-circuit test enabled enabled enabled

T1 [ms] 4.2 4.2 4.2

T2 [ms] 4.2 4.2 4.2

Sensor supply
0 1 2

enabled

4.2 4.2 3

Sum term [ms] 34.1

max. response time [ms] 233.6 233.6 233.6
233.6

Sample calculation: Sum term = (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) = 34.1 ms

Below you will find an example for the calculation of the maximum response time of the F-DI 16x24VDC depending on the parameter assignment.

Chann Input delay [ms] el

0

0.4

1

0.4

2

3.2

3

3.2

4

6.4

5

10

6

12.8

7

12.8

8

20

9

20

10

20

11

20

12

0.4

13

1.6

14

10

15

20

Short-circuit T1 T2 Sensor supply

test

[ms] [ms]

enable

3.7 3.7 0

enable

100 20 1

enable

2000 2000 2

disable

-

-

3

Sum term [ms] 4188.1

max. response time [ms] 8538.3 8538.3 8541.1 8541.1 8640.6 8644.2 8647.0 8647.0 10554.2 10554.2 10554.2 10554.2 - *) - *) - *) - *)

*) With short-circuit test deactivated, external short-circuits are not detected.

Unrestricted Product information for documentation of the digital input module F-DI 16x24VDC (6ES7526-1BH00-0AB0)

A5E48022181-AA, 06/2020

5

Sample calculation: Sum term = (3.7 ms + 3.7 ms * 1.03) + (100 ms + 20 ms * 1.03) + (2000 ms + 2000 ms * 1.03) = 4188.1 ms

Chann Input delay [ms] el

0

0.4

1

0.4

2

3.2

3

3.2

4

6.4

5

10

6

12.8

7

12.8

8

20

9

20

10

20

11

20

12

0.4

13

1.6

14

10

15

20

Short-circuit T1 T2 Sensor supply

test

[ms] [ms]

enable

20 20 0

enable

500 500 2

Sum term [ms] 1055.6

Sample calculation: Sum term = (20 ms + 20 ms * 1.03) + (500 ms + 500 ms * 1.03) = 1055.6 ms

max. response time [ms] 2289.6 2289.6 2292.4 2292.4 2295.6 2299.2 2302.0 2302.0 2789.2 2789.2 2789.2 2789.2 2769.6 2770.8 2779.2 2789.2

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG GERMANY

U6PAr5noErde4us8tc0rti2cint2ef1od8rm1-aAtAio,n06fo/2r 0d2o0cumentPartioodnuoctf

itnhfeordmigaittaiol ninfpourtdmocoudmuleenFt-aDtiIo1n6oxf24thVeDdCig(6itEaSl 7in5p2u6t-1mBoHd0u0le-0FA-DB0I 1) 6x24VDC (6ES7526-1BH00-0AB0) A5E48022181-AA, 06/2020

SIMATIC S7-1500/ET 200MP Information produit pour la documentation du module d'entrées TOR F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Information produit
Note relative à la sécurité
Siemens commercialise des produits et solutions comprenant des fonctions de sécurité industrielle qui contribuent à une exploitation sûre des installations, systèmes, machines et réseaux. Pour garantir la sécurité des installations, systèmes, machines et réseaux contre les cybermenaces, il est nécessaire de mettre en oeuvre - et de maintenir en permanence - un concept de sécurité industrielle global et de pointe. Les produits et solutions de Siemens constituent une partie de ce concept. Il incombe aux clients d'empêcher tout accès non autorisé à ses installations, systèmes, machines et réseaux. Ces systèmes, machines et composants doivent uniquement être connectés au réseau d'entreprise ou à Internet si et dans la mesure où cela est nécessaire et seulement si des mesures de protection adéquates (ex : pare-feu et/ou segmentation du réseau) ont été prises. Pour plus d'informations sur les mesures de protection pouvant être mises en oeuvre dans le domaine de la sécurité industrielle, rendez-vous sur (https://www.siemens.com/industrialsecurity). Les produits et solutions Siemens font l'objet de développements continus pour être encore plus sûrs. Siemens recommande vivement d'effectuer des mises à jour dès que celles-ci sont disponibles et d'utiliser la dernière version des produits. L'utilisation de versions qui ne sont plus prises en charge et la non-application des dernières mises à jour peut augmenter le risque de cybermenaces pour nos clients. Pour être informé des mises à jour produit, abonnez-vous au flux RSS Siemens Industrial Security à l'adresse suivante (https://www.siemens.com/industrialsecurity) :
Contenu Cette information produit comprend des compléments et des corrections pour la documentation du module d'entrées TOR FDI 16x24VDC (6ES7526-1BH00-0AB0). L'information produit fait partie de la livraison du produit. Les informations qui y sont contenues sont à considérer comme actuelles en cas de doute.

Unrestricted © Siemens AG 2020. Tous droits réservés

A5E48022181-AA, 06/2020

7

Temps de réaction
Définition du temps de réaction pour les entrées TOR de sécurité Le temps de réaction correspond au temps qui s'écoule entre un changement de signal sur l'entrée TOR et la mise à disposition du télégramme de sécurité sur le bus interne.
Temps de réaction maximal en cas de court-circuit externe Temps de réaction max. = retard d'entrée + T1 + 158 ms + 2 * somme[x=0..3](T1x + T2x * corr)

T1 = temps de test de court-circuit pour la voie correspondante x = alimentation de capteur activée T1x = temps de test de court-circuit T2x = temps de démarrage du capteur après le test de court-circuit corr = facteur de correction = 1,03 Terme de somme = somme [x=0..3](T1x + T2x * corr) : Somme de tous les temps de test de court-circuit et de démarrage des alimentations capteur activées

Exemples

Vous trouvez ci-après un exemple de calcul du temps de réaction max. du module F-DI 16x24VDC avec un paramétrage par défaut.

Voie
0 - 3 4 - 7 8 - 11 12 15

Retard à l'entrée [ms] 3,2 3,2 3,2 3,2

Test de court-circuit Validée Validée Validée Validée

T1 [ms] 4,2 4,2 4,2 4,2

T2 [ms] 4,2 4,2 4,2 4,2

Alimentation du capteur 0 1 2 3

Terme de somme [ms] 34,1

Temps de réaction max. [ms] 233,6 233,6 233,6 233,6

Exemple de calcul : Terme de somme = (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) = 34,1 ms

Vous trouvez ci-après des exemples de calcul du temps de réaction max. du module F-DI 16x24VDC en fonction du paramétrage.

Voie
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Retard à l'entrée [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Test de court-circuit valider
valider
valider
Inhiber

T1 T2 Alimentation du [ms] [ms] capteur 3,7 3,7 0

100 20 1

2000 2000 2

-

-

3

Terme de somme [ms] 4188,1

Temps de réaction max. [ms] 8538,3 8538,3 8541,1 8541,1 8640,6 8644,2 8647,0 8647,0 10554,2 10554,2 10554,2 10554,2 - *) - *) - *) - *)

*) Les courts-circuits externes ne sont pas détectés si le test de court-circuit est désactivé.

Unrestricted
8

Information produit pour la documentation du module d'entrées TOR F-DI 16x24VDC (6ES7526-1BH00-0AB0) A5E48022181-AA, 06/2020

Exemple de calcul : Terme de somme = (3,7 ms + 3,7 ms * 1,03) + (100 ms + 20 ms * 1,03) + (2000 ms + 2000 ms * 1,03) = 4188,1 ms

Voie
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Retard à l'entrée [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Test de court-circuit valider
valider

T1 [ms] 20
500

T2 [ms] 20
500

Alimentation du capteur 0
2

Terme de somme [ms] 1055,6

Temps de réaction max. [ms] 2289,6 2289,6 2292,4 2292,4 2295,6 2299,2 2302,0 2302,0 2789,2 2789,2 2789,2 2789,2 2769,6 2770,8 2779,2 2789,2

Exemple de calcul : Terme de somme = (20 ms + 20 ms * 1,03) + (500 ms + 500 ms * 1,03) = 1055,6 ms

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG ALLEMAGNE

UInnforermstraitcitoendpInrofodrumitaptioounr plaroddouciutmpoeunrtalatiodnocduummenotdautlieond'deuntmréoedsuTlOeRd'Fe-nDtIré1e6sxT2O4VRDFC-D(I61E6Sx72542V6D-1CB(H60E0S-705A2B60-)1BH00-0AB0)

AA55EE4488002222118811--AAAA,, 0066//22002200

9

SIMATIC S7-1500/ET 200MP Información del producto sobre la documentación del módulo de entradas digitales F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Información del producto
Información de seguridad
Siemens ofrece productos y soluciones con funciones de seguridad industrial con el objetivo de hacer más seguro el funcionamiento de instalaciones, sistemas, máquinas y redes. Para proteger las instalaciones, los sistemas, las máquinas y las redes de amenazas cibernéticas, es necesario implementar (y mantener continuamente) un concepto de seguridad industrial integral conforme al estado del arte. Los productos y las soluciones de Siemens constituyen una parte de este concepto. Los clientes son responsables de impedir el acceso no autorizado a sus instalaciones, sistemas, máquinas y redes. Dichos sistemas, máquinas y componentes solo deben estar conectados a la red corporativa o a Internet cuando y en la medida que sea necesario y siempre que se hayan tomado las medidas de protección adecuadas (p. ej. cortafuegos y segmentación de la red). Para obtener información adicional sobre las medidas de seguridad industrial que podrían ser implementadas, por favor visite (https://www.siemens.com/industrialsecurity). Los productos y las soluciones de Siemens están sometidos a un desarrollo constante con el fin de hacerlos más seguros. Siemens recomienda expresamente realizar actualizaciones en cuanto estén disponibles y utilizar únicamente las últimas versiones de los productos. El uso de versiones de los productos anteriores o que ya no sean soportadas y la falta de aplicación de las nuevas actualizaciones, puede aumentar el riesgo de amenazas cibernéticas. Para mantenerse informado de las actualizaciones de productos, recomendamos que se suscriba al Siemens Industrial Security RSS Feed en (https://www.siemens.com/industrialsecurity).
Contenido Esta información del producto contiene correcciones e información complementaria a la documentación del módulo de entradas digitales F-DI 16x24VDC (6ES7526-1BH00-0AB0). La información del producto forma parte del producto suministrado. En caso de duda, la información de producto prevalece sobre lo indicado en otras fuentes.

Unrestricted
10

© Siemens AG 2020. Reservados todos los derechos A5E48022181-AA, 06/2020

Tiempos de respuesta
Definición del tiempo de reacción para entradas digitales de seguridad El tiempo de reacción es el tiempo que transcurre desde un cambio de señal en la entrada digital hasta la entrega segura del telegrama de seguridad en el bus de fondo.
Tiempo de reacción máximo en cortocircuitos externos Tiempo de reacción máximo: retardo a la entrada + T1 + 158 ms + 2 * suma[x-0..3](T1x + T2x * corr)

T1 = tiempo de la prueba de cortocircuito del canal observado x = alimentación de sensor activada T1x = tiempo de la prueba de cortocircuito T2x = tiempo de arranque del sensor tras la prueba de cortocircuito corr = factor de corrección = 1,03 Expresión de suma: suma [x-0..3](T1x + T2x * corr): suma de todos los tiempos de prueba y arranque de las alimentaciones de sensores

Ejemplos

A continuación se muestran algunos ejemplos para calcular el tiempo de reacción máximo del F-DI 16x24VDC con la parametrización predeterminada.

Canal
0 - 3 4 - 7 8 - 11 12 15

Retardo a la entrada [ms] 3,2 3,2 3,2 3,2

Prueba de T1 cortocircuito [ms] habilitada 4,2 habilitada 4,2 habilitada 4,2 habilitada 4,2

T2 [ms] 4,2 4,2 4,2 4,2

Alimentación de sensor 0 1 2 3

Expresión de suma [ms] 34,1

Tiempo de reacción máx. [ms] 233,6 233,6 233,6 233,6

Ejemplo de cálculo: expresión de suma = (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) = 34,1 ms

A continuación se muestran algunos ejemplos para calcular el tiempo de reacción máximo del F-DI 16x24VDC HF en función de la parametrización.

Canal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Retardo a la entrada [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Prueba de T1 T2 Alimentación de Expresión de

cortocircuito [ms] [ms] sensor

suma [ms]

habilitar

3,7 3,7 0

4188,1

habilitar

100 20 1

habilitar

2000 2000 2

bloquear

-

-

3

Tiempo de reacción máx. [ms] 8538,3 8538,3 8541,1 8541,1 8640,6 8644,2 8647,0 8647,0 10554,2 10554,2 10554,2 10554,2 - *) - *) - *) - *)

*) Cuando se desactiva la prueba de cortocircuito, no se detectan cortocircuitos externos.

Unrestricted Información del producto sobre la documentación del módulo de entradas digitales F-DI 16x24VDC (6ES7526-1BH00-0AB0)

A5E48022181-AA, 06/2020

11

Ejemplo de cálculo: expresión de suma = (3,7 ms + 3,7 ms * 1,03) + (100 ms + 20 ms * 1,03) + (2000 ms + 2000 ms * 1,03) = 4188,1 ms

Canal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Retardo a la entrada [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Prueba de T1 T2 Alimentación de Expresión de

cortocircuito [ms] [ms] sensor

suma [ms]

habilitar

20 20 0

1055,6

habilitar

500 500 2

Tiempo de reacción máx. [ms] 2289,6 2289,6 2292,4 2292,4 2295,6 2299,2 2302,0 2302,0 2789,2 2789,2 2789,2 2789,2 2769,6 2770,8 2779,2 2789,2

Ejemplo de cálculo: expresión de suma = (20 ms + 20 ms * 1,03) + (500 ms + 500 ms * 1,03) = 1055,6 ms

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG ALEMANIA

U1IAn5n2foEre4rms8t0rai2ccit2óe1nd8d1e-Al pArI,no0df6ou/rc2mt0oa2cs0ioóbnredelal

pdroocduumcteontsaocbiróenladedlomcuómduelnotdaceióenntdraedl masóddiugliotadlees

eFn-DtrIa1d6axs2d4igViDtaCle(s6EFS-D7I51266x-12B4HVD00C-(06AEBS07)526-1BH00-0AB0) A5E48022181-AA, 06/2020

SIMATIC S7-1500/ET 200MP Informazioni sul prodotto relativa alla documentazione dell'unità di ingressi digitali F-DI 16x24VDC (6ES7526-1BH00-0AB0)
Informazioni sul prodotto
Avvertenze di sicurezza
Siemens commercializza prodotti e soluzioni dotati di funzioni Industrial Security che contribuiscono al funzionamento sicuro di impianti, soluzioni, macchine e reti. Al fine di proteggere impianti, sistemi, macchine e reti da minacce cibernetiche, è necessario implementare - e mantenere continuamente - un concetto di Industrial Security globale ed all'avanguardia. I prodotti e le soluzioni Siemens costituiscono soltanto una componente imprescindibile di questo concetto. È responsabilità dei clienti prevenire accessi non autorizzati ai propri impianti, sistemi, macchine e reti. Tali sistemi, macchine e componenti dovrebbero essere connessi unicamente a una rete aziendale o a internet se e nella misura in cui detta connessione sia necessaria e solo quando siano attive appropriate misure di sicurezza (ad es. impiego di firewall e segmentazione della rete). Per ulteriori informazioni relative a misure di Industrial Security implementabili potete visitare il sito (https://www.siemens.com/industrialsecurity). I prodotti e le soluzioni Siemens vengono costantemente perfezionate per incrementarne la sicurezza. Siemens raccomanda espressamente che gli aggiornamenti dei prodotti siano effettuati non appena disponibili e che siano utilizzate le versioni più aggiornate. L'utilizzo di versioni di prodotti non più supportate ed il mancato aggiornamento degli stessi incrementa il rischio di attacchi cibernetici. Per essere informati sugli update dei prodotti, potete iscrivervi a Siemens Industrial Security RSS Feed al sito (https://www.siemens.com/industrialsecurity).
Contenuto Le presenti informazioni sul prodotto contengono integrazioni e correzioni relativa alla documentazione dell'unità di ingressi digitali F-DI 16x24VDC (6ES7526-1BH00-0AB0). Le informazioni sul prodotto sono parte integrante del prodotto fornito. e, in caso di dubbio, hanno la priorità su qualsiasi altra affermazione.

Unrestricted © Siemens AG 2020. Tutti i diritti riservati

A5E48022181-AA, 06/2020

13

Tempi di reazione
Definizione del tempo di reazione per ingressi digitali fail-safe Il tempo di reazione indica il tempo, riferito al canale interessato, che intercorre tra una transizione di segnale sull'ingresso digitale e il caricamento sicuro del telegramma di sicurezza nel bus backplane.
Tempo di reazione max. ai cortocircuiti esterni Tempo di reazione max = ritardo di ingresso + T1 + 158 ms + 2 * somma[x=0..3](T1x + T2x * corr)

T1 = tempo per la prova di cortocircuito del canale interessato x = alimentazione encoder attivata T1x = tempo per la prova di cortocircuito T2x = tempo di avvio dell'encoder dopo la prova di cortocircuito corr. = fattore di correzione = 1,03 Termine addizione = somma [x=0..3](T1x + T2x * corr): Somma dei tempi complessivi di avvio e di prova cortocircuito degli alimentatori encoder attivi

Esempi

Nel seguito si riporta un esempio di calcolo del tempo di reazione max. di F-DI 16x24VDC con parametrizzazione preimpostata.

Canal e 0 - 3 4 - 7 8 - 11 12 15

Ritardo di ingresso [ms] 3,2 3,2 3,2 3,2

Short-circuit test attivato attivato attivato attivato

T1 [ms] 4,2 4,2 4,2 4,2

T2 [ms] 4,2 4,2 4,2 4,2

Sensor supply
0 1 2 3

Termine addizione [ms] 34,1

Tempo di reazione max. [ms] 233,6 233,6 233,6 233,6

Calcoli di esempio: Termine addizione = (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) + (4,2 ms + 4,2 ms * 1,03) = 34,1 ms

Nel seguito si riportano esempi di calcolo del tempo di reazione max. di F-DI 16x24VDC in funzione della parametrizzazione.

Canal e 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Ritardo di ingresso [ms] 0,4 0,4 3,2 3,2 6,4 10 12,8 12,8 20 20 20 20 0,4 1,6 10 20

Short-circuit T1 T2 Sensor supply

test

[ms] [ms]

enable

3,7 3,7 0

enable

100 20 1

enable

2000 2000 2

disable

-

-

3

Termine addizione [ms] 4188,1

Tempo di reazione max. [ms] 8538,3 8538,3 8541,1 8541,1 8640,6 8644,2 8647,0 8647,0 10554,2 10554,2 10554,2 10554,2 - *) - *) - *) - *)

*) Con la prova di cortocircuito disattivata, i cortocircuiti esterni non vengono rilevati.

Unrestricted
14

Informazioni sul prodotto relativa alla documentazione dell'unità di ingressi digitali F-DI 16x24VDC (6ES7526-1BH00-0AB0) A5E48022181-AA, 06/2020

Calcoli di esempio: Termine addizione = (3,7 ms + 3,7 ms * 1,03) + (100 ms + 20 ms * 1,03) + (2000 ms + 2000 ms * 1,03) = 4188,1 ms

Canal e 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Ritardo di ingresso Short-circuit

[ms]

test

0,4

enable

0,4

3,2

3,2

6,4

10

12,8

12,8

20

enable

20

20

20

0,4

1,6

10

20

T1 [ms] 20
500

T2 [ms] 20
500

Sensor supply 0
2

Termine addizione [ms] 1055,6

Tempo di reazione max. [ms] 2289,6 2289,6 2292,4 2292,4 2295,6 2299,2 2302,0 2302,0 2789,2 2789,2 2789,2 2789,2 2769,6 2770,8 2779,2 2789,2

Calcoli di esempio: Termine addizione = (20 ms + 20 ms * 1,03) + (500 ms + 500 ms * 1,03) = 1055,6 ms

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG GERMANIA

UInnforermstraizcitoendiIsnufol prmroadzoiottnoi rseullaptirvoadaoltltaodroeclautmiveanatlalazidoonceudmeelln'utnaiztiàondieindgelrle'usnsitdàigdiitainligFr-eDssI i1d6ixg2it4aVliDFC-D(I61E6Sx72542V6D-1CB(H60E0S-705A2B60-)1BH00-0AB0)

AA55EE4488002222118811--AAAA,, 0066//22002200

15

SIMATIC S7-1500/ET 200MP  F-DI 16x24VDC (6ES7526-1BH00-0AB0) 


Siemens  Siemens    / Internet  (https://www.siemens.com/industrialsecurity) Siemens Siemens    Siemens  RSS  (https://www.siemens.com/industrialsecurity)
  F-DI 16x24VDC (6ES7526-1BH00-0AB0)  .

Unrestricted
16

© Siemens AG 2020.  A5E48022181-AA, 06/2020


 
  =  + T1 + 158 ms + 2 * Sum[x=0..3](T1x + T2x * corr)

T1 =  x =  T1x =  T2x =  corr =  = 1.03  = sum [x=0..3](T1x + T2x * corr)



 F-DI 16x24VDC 

  [ms]
0  3 3.2 4  7 3.2 8  3.2 11 12  3.2 15


  


T1 [ms] 4.2 4.2 4.2

T2 [ms] 4.2 4.2 4.2


0 1 2

4.2 4.2 3

 [ms] 34.1

 [ms]
233.6 233.6 233.6
233.6

 = (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) + (4.2 ms + 4.2 ms * 1.03) = 34.1 ms

 F-DI 16x24VDC 

  [ms]

0

0.4

1

0.4

2

3.2

3

3.2

4

6.4

5

10

6

12.8

7

12.8

8

20

9

20

10

20

11

20

12

0.4

13

1.6

14

10

15

20

 

T1 T2  [ms] [ms] 3.7 3.7 0



100 20 1



2000 2000 2



-

-

3

*) 

 [ms] 4188.1

 [ms]
8538.3 8538.3 8541.1 8541.1 8640.6 8644.2 8647.0 8647.0 10554.2 10554.2 10554.2 10554.2 - *) - *) - *) - *)

Unrestricted  F-DI 16x24VDC (6ES7526-1BH00-0AB0) 

A5E48022181-AA, 06/2020

17

 = (3.7 ms + 3.7 ms * 1.03) + (100 ms + 20 ms * 1.03) + (2000 ms + 2000 ms * 1.03) = 4188.1 ms


0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

 [ms]
0.4 0.4 3.2 3.2 6.4 10 12.8 12.8 20 20 20 20 0.4 1.6 10 20

 

T1 T2  [ms] [ms] 20 20 0



500 500 2

 [ms] 1055.6

 = (20 ms + 20 ms * 1.03) + (500 ms + 500 ms * 1.03) = 1055.6 ms

 [ms]
2289.6 2289.6 2292.4 2292.4 2295.6 2299.2 2302.0 2302.0 2789.2 2789.2 2789.2 2789.2 2769.6 2770.8 2779.2 2789.2

Siemens AG Large Drives Applications Vogelweiherstr. 1-15 90441 NÜRNBERG 

U1A5n8Ere4s8t0ri2ct2e1d81-AFA-,D0I61/62x02240VDC

(6ES7526-1BH00-0AB0)



F-DI

16x24VDC

(6ES7526-1BH00-0AB0)  A5E48022181-AA, 06/2020

Digital output module
F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0) SIMATIC
ET 200MP Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)
Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_od_u_ct_o_ve_rv_ie_w_________2_ _Co_n_ne_c_tin_g____________3_ _Pa_ra_m_e_te_rs_/ad_d_re_ss_s_pa_c_e ____4_ _AF-p_I/pO_lic_mato_iod_nusl_eo_f t_he_________5_ _Imn_etes_rsrua_pg_tess/_di_ag_n_os_tic________6_ _Te_c_hn_ic_al_sp_e_ci_fic_at_ion_s______7_ _Re_s_po_n_se_ti_m_es__________A_ _Sw_it_ch_in_g_of_lo_a_ds_________B_ _O_pe_n_So_u_rc_e_So_ft_w_ar_e _____C__

01/2016
A5E03858037-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03858037-AA  01/2016 Subject to change

Copyright © Siemens AG 2016. All rights reserved

Preface

Purpose of the documentation
This manual supplements the system manual S7-1500 Automation System. You can find information on the functions that apply generally to the S7-1500 automation system and the ET 200MP distributed I/O system in the system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).
The information provided in this manual and the system manual enables you to commission the S7-1500 automation system and ET 200MP distributed I/O system.

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe the notes identified as follows:
Note A note includes important information on the product described in the documentation, on handling the product or on the part of the documentation to which particular attention should be paid.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

4

Manual, 01/2016, A5E03858037-AA

Preface
Important note for maintaining the operational safety of your system
Note
The operators of systems with safety-related characteristics must adhere to specific operational safety requirements. The supplier is also obliged to comply with special product monitoring measures. Siemens informs system operators by means of personal notifications about product developments and properties which may be or become important issues in terms of operational safety.
You should subscribe to the corresponding notifications in order to obtain the latest information and to allow you to make any necessary modifications to your system.
Log in to Industry Online Support. Follow the links below and click on "Email on update" on the right-hand side in each case: · SIMATIC S7-300/S7-300F
(https://support.industry.siemens.com/cs/products?pnid=13751&lc=en-WW) · SIMATIC S7-400/S7-400H/S7-400F/FH
(https://support.industry.siemens.com/cs/products?pnid=13828&lc=en-WW) · SIMATIC S7-1500/SIMATIC S7-1500F
(https://support.industry.siemens.com/cs/products?pnid=13716&lc=en-WW) · SIMATIC S7-1200/SIMATIC S7-1200F
(https://support.industry.siemens.com/cs/products?pnid=13683&lc=en-WW) · Distributed I/O (https://support.industry.siemens.com/cs/products?pnid=14029&lc=en-
WW) · STEP 7 (TIA Portal)
(https://support.industry.siemens.com/cs/products?pnid=14340&lc=en-WW)
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

5

Preface
Open Source Software
Open-source software is used in the firmware of the product described. Open Source Software is provided free of charge. We are liable for the product described, including the open-source software contained in it, pursuant to the conditions applicable to the product. Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software. For legal reasons, we are obliged to publish the original text of the license conditions and copyright notices. Please read the information relating to this in the appendix.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

6

Manual, 01/2016, A5E03858037-AA

Table of contents

Preface ................................................................................................................................................... 4

1 Documentation guide .............................................................................................................................. 9

1.1

Guide to documentation S7-1500 / ET 200MP .........................................................................9

2 Product overview .................................................................................................................................. 12

2.1

Properties ................................................................................................................................ 12

3 Connecting ........................................................................................................................................... 15

3.1

Block diagram .........................................................................................................................15

4 Parameters/address space ................................................................................................................... 18

4.1

Parameters .............................................................................................................................18

4.2 4.2.1 4.2.1.1 4.2.1.2 4.2.2 4.2.2.1 4.2.2.2 4.2.3 4.2.3.1 4.2.3.2 4.2.3.3 4.2.3.4 4.2.3.5 4.2.3.6 4.2.3.7

Explanation of parameters ......................................................................................................20 F-parameters ..........................................................................................................................20 Behavior after channel fault ....................................................................................................20 Reintegration after channel fault.............................................................................................20 DQ parameters .......................................................................................................................21 Maximum test period...............................................................................................................21 Operating mode of the output .................................................................................................21 Parameters of the channels ....................................................................................................21 Diagnostics: Wire break ..........................................................................................................21 Channel activated ...................................................................................................................21 Channel failure acknowledge..................................................................................................22 Max. readback time dark test..................................................................................................22 Disable dark test for 48 hours.................................................................................................25 Max. readback time switch-on test .........................................................................................26 Activated light test...................................................................................................................28

4.3

Address space ........................................................................................................................30

5 Applications of the F-I/O module ........................................................................................................... 32

5.1

Applications for the F-DQ 8x24VDC/2A PPM.........................................................................32

5.2

Application: Connecting a load per digital output, PM switching ............................................33

5.3

Application: Connection of loads per digital output to L+ and M, PM-switching mode...........34

5.4

Application: Connecting 2 loads in parallel per digital output, PM-switching mode ...............37

5.5

Application: Connecting a load per digital output, PP switching.............................................39

6 Interrupts/diagnostic messages ............................................................................................................. 41

6.1

Status and error displays ........................................................................................................41

6.2

Interrupts .................................................................................................................................44

6.3

Diagnostic alarms ...................................................................................................................46

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

7

Table of contents

7 Technical specifications ........................................................................................................................ 51

A Response times .................................................................................................................................... 54

B Switching of loads ................................................................................................................................. 55

B.1

Connecting capacitive loads .................................................................................................. 55

B.2

Switching of inductive loads................................................................................................... 57

C Open Source Software.......................................................................................................................... 58

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

8

Manual, 01/2016, A5E03858037-AA

Documentation guide

1

1.1

Guide to documentation S7-1500 / ET 200MP

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, Motion Control, Web server. You can download the documentation free of charge from the Internet (http://www.automation.siemens.com/mcms/industrial-automation-systemssimatic/en/manual-overview/tech-doc-controllers/Pages/Default.aspx). Changes and supplements to the manuals are documented in a Product Information. You can download the product information free of charge from the Internet.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

9

Documentation guide 1.1 Guide to documentation S7-1500 / ET 200MP

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (http://support.automation.siemens.com/WW/view/en/86140384).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet.

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

10

Manual, 01/2016, A5E03858037-AA

Documentation guide 1.1 Guide to documentation S7-1500 / ET 200MP
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

11

Product overview

2.1

Properties

Order number
6ES7526-2BF00-0AB0

View of the module

2

Image 2-1 View of the F-DQ 8x24VDC/2A PPM module

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

12

Manual, 01/2016, A5E03858037-AA

Properties

Product overview 2.1 Properties
 Technical properties ­ Fail-safe digital module for use in the S7-1500 automation system and in the ET 200MP distributed I/O system. ­ PROFIsafe ­ PROFIsafe address type 2 ­ Supports the RIOforFA-Safety profile (on S7-1500 F-CPUs) ­ 8 output PM-switching or PP-switching in 2 channel groups (SIL3/Cat.4/PLe) ­ Supply voltage L+ ­ Output current per output 2 A ­ Source output (PM/PP-switching) ­ Suitable for solenoid valves, DC contactors and signal lamps ­ Status display RUN (green LED) ­ Status display module diagnostics (red LED) ­ Status display channel status/channel diagnostics per output (green/red LED) ­ Status display supply voltage (green LED) ­ Diagnostics, e.g., short-circuit/wire break/load voltage missing, channel-specific ­ Channel-specific or module-wide passivation
 Supported functions ­ Firmware update ­ I&M identification data
WARNING The fail-safe performance characteristics in the technical specifications apply for a mission time of 20 years and a repair time of 100 hours. If a repair within 100 hours is not possible, switch off the supply voltage of the affected module before 100 hours expires. The module switches off independently after the 100 hours have expired. Follow the repair procedure described in section Diagnostic alarms (Page 46).

Accessories

The following accessories are supplied with the module and can also be ordered as spare part:  Labeling strips  U-connector  Universal front cover  Electronic coding element

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

13

Product overview 2.1 Properties
Additional components
The following component is to be ordered separately:  Front connector incl. potential bridges and cable ties You can find additional information on accessories in the S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792) system manual.
Passivation of fail-safe outputs over a long period of time
WARNING Unintentional activation of F-I/O with fail-safe outputs If an F-I/O with fail-safe outputs is passivated for a period longer than that specified in the safety parameters (> 100 hours) and the fault remains uncorrected, you need to exclude the possibility that the F-I/O can be activated unintentionally by a second fault, and thus place the F-system in a dangerous state. Even though it is highly unlikely that such hardware faults occur, you must prevent the unintentional activation of F-I/O with fail-safe outputs by using circuit measures or organizational measures. One possibility is the shutdown of the power supply of the passivated F-I/O within a time period of 100 hours, for example. The required measures are standardized for plants with product standards. For all other plants, the plant operator must create a concept for the required measures and have it approved by the inspector.
Property of the individual shutdown of F-modules with fail-safe outputs: A channel-specific shutdown occurs when a fault is detected. It is also possible to react to critical process states staggered over time or to perform safety-related shutdown of individual outputs.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

14

Manual, 01/2016, A5E03858037-AA

Connecting

3

3.1

Block diagram

This section includes:

 The block diagram with the general pin assignment of the F-module.

 An example for switching of loads with ground.

For information on parameter assignment of the F-module, refer to "Parameters/address space (Page 18)".

Information on different connection options is available in the section Applications of the F-I/O module (Page 32).

You can find information on wiring the front connectors and creating the cable shielding, etc., in the Wiring section of the system manual Automation System S7-1500 (http://support.automation.siemens.com/WW/view/en/59191792).

WARNING
To protect the F-module, always install an external fuse with the following properties for the load circuit: Circuit-breaker 24 V DC/16 A, tripping characteristic type B.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

15

Connecting 3.1 Block diagram
Block diagram
The following figure shows the assignment of channels to addresses.



Backplane bus interface



Microcontroller 1



P1 switch for channel groups 0 to 3



Microcontroller 2



P1 switch for channel groups 4 to 7



Reverse polarity protection

DQ-Pn Output bit n, channel n, P-switching

Note:

· In PP operation, the DQ M channels are not used.

· Terminal 19 and 39 (L+) bridged internally

· Terminal 20 and 40 (M) bridged internally

DQ-Mn L+ M CH
PWR RUN ERROR

Ground for output bit n, channel n, M-switching Supply voltage 24 V DC Chassis ground Channel or LED channel status, channel diagnostics (green, red) LED supply voltage (green) RUN LED (green) LED module diagnostics (red)

Note the maximum permissible cable cross-sections and use both terminals, if necessary.

Image 3-1 Block diagram of the F-DQ 8x24VDC/2A PPM

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

16

Manual, 01/2016, A5E03858037-AA

Connecting 3.1 Block diagram
Switching of loads with ground if the F-module is configured PM-switching
If the following two conditions are met, F-DQ 8x24VDC/2A PPM detects a short-circuit:  If loads that have a connection between chassis and ground are switched by the
F-DQ 8x24VDC/2A PPM (for example, to improve the EMC properties).  If chassis and ground are connected at the power supply unit. From the perspective of the F-module, the M-switch is bridged by the chassis-ground connection (refer to the diagram below for an example).

Image 3-2 Switching of grounded loads (resistance between chassis and ground)
Remedy:  Increase the parameters "Max. readback time dark test" and "Max. readback time switch-
on test".  Increase the value of the resistance between chassis and ground at the load end to more
than 100 k. Or:  Use the F-DQ 8x24VDC/2A PPM configured as a PP-switching module.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

17

Parameters/address space

4

4.1

Parameters

Parameters

WARNING
Diagnostic functions must be activated or deactivated in accordance with the application, see section Applications of the F-I/O module (Page 32).

Table 4- 1 Parameters for F-DQ 8x24VDC/2A PPM

Parameter

Value range

F-parameters: Manual assignment of F-monitoring time
F-monitoring time F-source address F-destination address F-parameter signature (without address) Behavior after channel fault
Reintegration after channel fault
F-I/O DB manual number assignment
F-I/O DB-number F-I/O DB name DQ parameters: Maximum test period
Operating mode of the output

· Disable · Enable 1 to 65535 ms 1 to 65534 1 to 65534 0 to 65535
· Passivate channel · Passivate the entire module · Adjustable · All channels automatically · All channels manually · Disable · Enable -- --
· 100 s · 1000 s · PM-switching mode · PP switching

Parameter reassignment in RUN

Scope

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

No

Module

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

18

Manual, 01/2016, A5E03858037-AA

Parameters/address space 4.1 Parameters

Parameter

Value range

Channel parameters in operating mode PM-switching:

Channel n

Diagnostics: Wire break

· Disable

Parameter reassignment in RUN
No

· Enable

Channel activated

· Disable

No

· Enable

Channel failure acknowledge

· Manual

No

Max. readback time dark test Disable dark test for 48 hours

· Automatic

The value range offered depends on the F-CPU in use and on the configuration of the F-parameter "Reintegration after channel fault".

0.8 to 400.0 ms

No

· Disable

No

· Enable

Max. readback time switch on 0.8 to 5.0 ms

No

test

Activated light test

· Disable

No

· Enable

Channel parameters in operating mode PP-switching:

Channel n

Diagnostics: Wire break

· Disable

No

· Enable

Channel activated

· Disable

No

· Enable

Channel failure acknowledge Max. readback time dark test

· Manual

No

· Automatic
The value range offered depends on the FCPU in use and on the configuration of the Fparameter "Reintegration after channel fault".

0.8 to 400.0 ms

No

Disable dark test for 48 hours Disable

No

Max. readback time switch on 0.8 to 5.0 ms

No

test

Activated light test

Enable

No

Scope
Channel Channel Channel
Channel Channel Channel Channel
Channel Channel 1...7 (Channel 0 always enabled) Channel
Module (Channel 0) Module Module (Channel 0) Module

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

19

Parameters/address space 4.2 Explanation of parameters

4.2

Explanation of parameters

4.2.1 4.2.1.1 4.2.1.2
20

F-parameters
You must assign the PROFIsafe address (F-destination address together with F-source address) to the F-module before you put it into operation.  You define the F-source address using the "Basis for PROFIsafe addresses" parameter
in the F-CPU.  An F-destination address unique throughout the CPU is automatically assigned for each
F-module. You can manually change the F-destination addresses set in the hardware configuration. You can find information on F-parameters for the F-monitoring time, the PROFIsafe address assignment (F-source address, F-destination address) and the F I/O DB in the manual SIMATIC Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126).
Behavior after channel fault
This parameter is used to specify whether the entire F-module is passivated or just the faulty channel(s) in the event of channel faults:  "Passivate the entire module"  "Passivate channel"
Reintegration after channel fault
Use this parameter to select how the channels of the fail-safe module are reintegrated after a fault.
Use in S7-300/400 F-CPUs This parameter is always set to "Adjustable" when you use the fail-safe module in S7-300/400 F-CPUs. You make the required setting in the F-I/O DB of the fail-safe module.
Use in S7-1500 F-CPUs When using the fail-safe module in S7-1500 F-CPUs, you set this parameter in the STEP 7 dialog of the fail-safe module:  "Adjustable"  "All channels automatically"  "All channels manually" If you have set the "Behavior after channel fault" parameter to "Passivate channel", you enable individual setting of the reintegration type per channel with the parameter assignment "Adjustable". The reintegration type of the respective channel is specified with the "Channel failure acknowledge" channel parameter. If you have set the "Behavior after channel fault" parameter to "Passivate the entire module", you can only select the same reintegration type for all channels.
Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0) Manual, 01/2016, A5E03858037-AA

4.2.2 4.2.2.1
4.2.2.2

Parameters/address space 4.2 Explanation of parameters
DQ parameters
Maximum test period
With this parameter, you specify the time within which the light, dark and switch on tests should be performed throughout the module. When this time expires, the tests are repeated. In case of a fault, the test time is reduced to 60 seconds.  Use "1000 s", for example, to conserve your actuators.  Use "100 s" to detect faults more quickly. The "Maximum test period" parameter is a module parameter, which means the test cycle for the entire fail-safe output module is performed within the configured maximum test time. If the bit pattern test is not performed within the configured time (or the shortened test time of 60 seconds in case of an error), the module goes into the error state.
Operating mode of the output
Chooses between PM and PP switching mode for the outputs. After re-parameterization of the operating mode, the power supply of the F-module must be switched OFF and ON.

4.2.3 4.2.3.1

Parameters of the channels
Diagnostics: Wire break
You can use a wire break test to monitor the connection from the output channel to the actuator. Selecting this check box enables the wire break monitoring for the relevant channel. You also have to activate the light test to detect a wire break with an output signal "0".
WARNING The diagnostics for wire break of the outputs is not designed for safety-related functions and can therefore not be evaluated for safety-related activities.

4.2.3.2

Channel activated
If you select this check box, the corresponding channel is enabled for signal processing in the safety program.
You can deactivate an unused channel with this parameter.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

21

Parameters/address space 4.2 Explanation of parameters

4.2.3.3

Channel failure acknowledge
Use in S7-1500 F-CPUs This parameter is only relevant if the fail-safe module is operated on an S7-1500 F-CPU, and can only be set if the F-parameter "Behavior after channel fault" is set to "Passivate channel" and the F-parameter "Reintegration after channel fault" is set to "Adjustable". The value of this parameter specifies how the channel should react to a channel fault:  Manual: A channel is not reintegrated until after manual acknowledgment.  Automatically: The channel is reintegrated automatically after a channel fault. Manual
acknowledgment is not necessary.
Use in S7-300/400 F-CPUs The value of this parameter is not relevant in the case of operation on S7-300/400 F-CPUs. There you set the corresponding property at the F-I/O DB by means of the ACK_NEC tag. For detailed information about the F-I/O DB, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

4.2.3.4

Max. readback time dark test

Function

Dark tests are shutdown tests with bit pattern test.
For a dark test, a test signal is switched to the output channel while the output channel is active (output signal "1"). The output channel is then switched off briefly (= "dark period") and read back (for PM operation, P- and M-readback, for PP operation only PP-readback). A sufficiently slow actuator does not respond to this and remains switched on.

 Readback (P-switch and M-switch do not switch simultaneously.)
Image 4-1 Functional principle of the dark test (PM switching)

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

22

Manual, 01/2016, A5E03858037-AA

Parameters/address space 4.2 Explanation of parameters

 Readback (The two P-switches do not switch simultaneously.)
Image 4-2 Functional principle of the dark test (PP switching)
This parameter allows you to set the time for the readback. If the expected signals could not be read back correctly after expiration of the readback time, the output channel is passivated. No new process values are switched to the output channels while a bit pattern is still active (switch test is carried out). This means that a higher maximum readback time for the dark test increases the response time of the F-module.
WARNING
Through the configured readback time dark test, short-circuits (cross-circuits) to a signal with a frequency greater than 1/(2 x configured readback time dark test) Hz cannot be recognized (50:50 sampling ratio). Short-circuits (cross-circuits) to an output of the same module are recognized.
The parameter also has an effect on the short-circuit detection (cross-circuit) with "1" signal when the output signal is changed from "1" to "0" with the safety program.
Setting readback time dark test
Because the fault reaction time is extended by the length of the readback time dark test, we recommend that you set the readback time dark test as low as possible, but high enough that the output channel is not passivated. In case of the "Connecting a load per digital output, PP switching" (Page 39) application, see the warnings and notes in the section describing the application. To determine the readback time required for your actuator, refer to the diagram in the section Switching capacitive loads (Page 55).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

23

Parameters/address space 4.2 Explanation of parameters
Setting readback time dark test with unknown actuator capacity
If the capacity of the actuator is not known, it may be necessary for you to determine the value for the readback time dark test by trial and error. This may also be necessary due to the part variances in the actuator or external influences. Proceed as follows:  Set the readback time dark test so that the output channel can be read back correctly but
your actuator does not respond yet.  For verification use the process value "1" with a minimum duration that corresponds to
the "maximum test time" parameter.  If the output channel is passivated sporadically, set a higher value for the maximum
readback time dark test.  If the output channel is passivated, the readback time dark test is too small for a
connected capacitive load. The discharge cannot take place during the configured readback time dark test. Increase the readback time dark test. If you have set the readback time dark test to the maximum value of 400 ms and there is still a passivation of the output channel, there is either an external fault or the connected capacity is outside the permitted range. To increase availability, we recommend that you maintain an interval to the determined limit for the times.
Test pulses of the dark test

* Output of test pulses only during test cycle. Image 4-3 Test pulses of the dark test The interval between two test pulses is 500 ms.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

24

Manual, 01/2016, A5E03858037-AA

4.2.3.5

Parameters/address space 4.2 Explanation of parameters
Disable dark test for 48 hours
Note Can only be configured for PM operation.
This option allows you to suppress the dark test. If the channel is permanently active (1) for 48 hours, one dark test pulse is applied at the channel once this time has expired. You must ensure the signal change from 1 to 0 at the channel yourself within 48 hours to prevent the dark test pulse. This also applies to the operating time if the operating time is < 48 hours. The dark test is suspended for another 48 hours after the signal change from 0 to 1. The dark test is permanently suppressed if the following condition is met:  A signal change from 1 to 0 takes place before the 48 hours have expired.
WARNING When you use the function "Disable dark test for 48 hours", cross-circuits and other errors are not detected. Also take into consideration the respective requirements of your product standards regarding error detection time.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

25

Parameters/address space 4.2 Explanation of parameters

4.2.3.6

Max. readback time switch-on test

Function

The switch on test is part of the bit pattern test.
PM operation
During the switch-on test in PM operation, the P-switch and M-switch of the output channel are alternately closed and read back when the output channel is inactive (output signal "0"). Contrary to the light test, no power flows through the connected load during the switch on test.

 Readback
Image 4-4 Functional principle of the switch on test (PM switching)
WARNING In case of an error, the bit pattern test can apply voltage to the load up to a duration that was configured with the "Maximum readback time switch on test" parameter. For capacitive loads, it can happen that these are not actively discharged in the event of an error. Therefore, always configure a maximum readback time that cannot activate the load under any circumstances.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

26

Manual, 01/2016, A5E03858037-AA

Parameters/address space 4.2 Explanation of parameters
PP operation The M-switch is meaningless during the switch-on test in PP operation. The switch-on test corresponds to the light test and current flows through the load. The light test is always activated in PP operation.
 Readback
Image 4-5 Functional principle of the switch on test (PP switching) This parameter allows you to set the time for the readback. If the signal was not read back correctly once the time has expired, the output channel is passivated. The switch on test detects the following faults:  Short-circuit to L+ with output signal "0"  Short-circuit to ground with output signal "0"
WARNING Through the configured readback time, short-circuits (cross-circuits) to an interfering signal with a frequency > 1 / (2 x configured readback time) Hz can be suppressed (50:50 sampling ratio). Short-circuits (cross-circuits) to an output of the same module are recognized.
Setting readback time switch on test
Because the fault reaction time is extended by the length of the set readback time, we recommend that you set the readback time as low as possible, but high enough that the output channel is not passivated. To determine the readback time required for your actuator, refer to the diagram in the section Switching capacitive loads (Page 55).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

27

Parameters/address space 4.2 Explanation of parameters

Setting readback time switch on test with unknown actuator capacity
If the capacitance of the actuator is not known, you may have to determine the required value for the readback time switch-on test by trial and error. This may also be necessary due to the part variances in the actuator or external influences.
Proceed as follows:
 Set the readback time switch on test in such a way that the output channel can be read back correctly but your actuator does not respond yet.
 For verification use the process value "0" with a minimum duration that corresponds to the "maximum test time" parameter. If you have not configured a light test, continue by changing the process value to "1" after the verification.
 If the output channel is passivated sporadically, set a higher value for the maximum readback time switch on test.
 If the output channel is passivated, the readback time is too small for a connected capacitive load. The charge of the capacitive load cannot take place during the configured readback time. Increase the readback time.
If you have set the readback time to the maximum value of 5 ms and there is still a passivation of the output channel, there is either an external fault or the connected capacity is outside the permitted range.
To increase availability, we recommend that you maintain an interval to the determined limit for the times.

4.2.3.7

Activated light test

Function

Overload and wire break are detected with a 0 signal at the output.
For a light test, a test signal is switched to the output channel while the output channel is inactive (output signal "0"). The output channel is switched on briefly during the light test (= "light period") and read back. A sufficiently slow actuator does not respond to this and remains switched off.
PM operation
In contrast to the switch on test, the P-switch and the M-switch switch at the same time during the light test and power flows through the connected load.

 Readback
Image 4-6 Functional principle of the light test (PM switching)

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

28

Manual, 01/2016, A5E03858037-AA

Parameters/address space 4.2 Explanation of parameters
PP operation The M-switch is meaningless during the light test in PP operation. The light test corresponds to the switch-on test and current flows through the load. The light test is always activated in PP operation.
 Readback
Image 4-7 Functional principle of the light test (PP switching) If the readback signals are incorrect, the signal is present for the configured readback time at the output channel before the fault causes passivation of the output channel. If the signal was not read back correctly once the maximum readback time switch on test has expired, the output channel is passivated. No new process values are switched to the output channels while a bit pattern is still active (switch test is carried out). This means that a higher maximum readback time switch on test for the light test increases the response time of the F-module.
Test pulses of the light test

* Output of test pulses only during test cycle. The module cycle is 5 ms. Image 4-8 Test pulses of the light test

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

29

Parameters/address space 4.3 Address space

A light pulse with the configured duration takes place within the configured maximum test time per output channel.
If a light pulse returns a fault, the same light pulse (which means the same bit pattern) is repeated once after 500 ms. If the fault is still present, the maximum test time is automatically reduced to 60 seconds and a diagnostic message is generated. If the fault is no longer present, the output channel is reintegrated after the next fault-free test cycle.

4.3

Address space

Address assignment of the digital output module F-DQ 8x24VDC/2A PPM
The digital output module F-DQ 8x24VDC/2A PPM occupies the following address areas in the F-CPU:

Table 4- 2 Address assignment in the F-CPU

F-CPU S7-300/400 F-CPUs S7-1500 F-CPUs
x = Module start address

Occupied bytes in the F-CPU: In input range x + 0 to x + 4 x + 0 to x + 5

In output range x + 0 to x + 4 x + 0 to x + 5

Address assignment of the user data and the value status of digital output module F-DQ 8x24VDC/2A PPM
The user data occupy the following addresses in the F-CPU out of all the assigned addresses of the digital output module F-DQ 8x24VDC/2A PPM:

Table 4- 3 Address assignment of user data in the input range

Byte in the F-CPU
IB x + 0

7
Value status DQ7
(CH7)

x = Module start address

6
Value status DQ6
(CH6)

Assigned bits in F-CPU per F-module:

5

4

3

2

Value status DQ5
(CH5)

Value status DQ4
(CH4)

Value status DQ3
(CH3)

Value status DQ2
(CH2)

1
Value status DQ1
(CH1)

0
Value status DQ0
(CH0)

Table 4- 4 Address assignment of user data in the output range

Byte in the F-CPU
QB x + 0

7 DQ7 (CH7)

x = Module start address

6 DQ6 (CH6)

Assigned bits in F-CPU per F-module:

5

4

3

2

DQ5 (CH5)

DQ4 (CH4)

DQ3 (CH3)

DQ2 (CH2)

1 DQ1 (CH1)

0 DQ0 (CH0)

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

30

Manual, 01/2016, A5E03858037-AA

Parameters/address space 4.3 Address space
Note You may only access the addresses occupied by user data and value status. The other address areas occupied by the F-modules are assigned for functions including safety-related communication between the F-modules and F-CPU in accordance with PROFIsafe.
Additional information
For detailed information about F-I/O access and for evaluation and processing of the value status, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

31

Applications of the F-I/O module

5

5.1

Applications for the F-DQ 8x24VDC/2A PPM

You achieve SIL3/Cat.4/PLe with the following applications.

The wiring is carried out on the front connector of the module. Refer to the "Wiring" section in the S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792) system manual.

See also

Connecting (Page 15)

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

32

Manual, 01/2016, A5E03858037-AA

Applications of the F-I/O module 5.2 Application: Connecting a load per digital output, PM switching

5.2

Application: Connecting a load per digital output, PM switching

Each of the 8 fail-safe digital outputs consists of a P-switch DQ-Pn and an M-switch DQ-Mn. You connect the load between the P-switch and the M-switch. The two switches are always activated so that voltage is applied to the load. This circuit achieves SIL3/Cat.4/PLe.

The figure below shows an example of the pin assignment of the fail-safe digital output module F-DQ 8x24VDC/2A PPM with connection of one load per digital output, PM switching.

WARNING
To protect the F-module, always install an external fuse with the following properties for the load circuit: Circuit-breaker 24 V DC/16 A, tripping characteristic type B.

 Backplane bus interface  Microcontroller 1  P1 switch for channel groups 0 to 3

 Microcontroller 2  P1 switch for channel groups 4 to 7  Reverse polarity protection

Image 5-1 Wiring diagram for 1 relay to 1 F-DQ of the digital output module F-DQ 8x24VDC/2A PPM, PM-switching mode

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

33

Applications of the F-I/O module 5.3 Application: Connection of loads per digital output to L+ and M, PM-switching mode

WARNING
In order to achieve SIL3/Cat.4/PLe with this wiring, you must install a qualified actuator, for example, in accordance with IEC 60947.

Parameter assignment
Assign the following parameter for the corresponding channel group:

Table 5- 1 Parameter
Parameter Operating mode of the output

PM-switching mode

5.3

Application: Connection of loads per digital output to L+ and M, PM-

switching mode

You can connect two relays using one fail-safe digital output. The following conditions should be kept in mind:

 Same reference potential

 The normally open contacts of the two relays must be connected in series.

This configuration achieves SIL3/Cat.4/PLe (process status readback required).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

34

Manual, 01/2016, A5E03858037-AA

Applications of the F-I/O module 5.3 Application: Connection of loads per digital output to L+ and M, PM-switching mode
The figure below shows an example of the pin assignment of the fail-safe digital output module F-DQ 8x24VDC/2A PPM with connection of loads per digital output to L+ and M, PM-switching mode.
WARNING To protect the F-module, always install an external fuse with the following properties for the load circuit: Circuit-breaker 24 V DC/16 A, tripping characteristic type B.

 Backplane bus interface  Microcontroller 1  P1 switch for channel groups 0 to 3

 Microcontroller 2  P1 switch for channel groups 4 to 7  Reverse polarity protection

Image 5-2 Wiring diagram for 2 relay to 1 F-DQ of the digital output module F-DQ 8x24VDC/2A PPM, PM-switching mode

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

35

Applications of the F-I/O module 5.3 Application: Connection of loads per digital output to L+ and M, PM-switching mode

WARNING
When two relays are connected to one digital output, as shown in the figure above, the "wire break" and "overload" faults are detected only at the P-switch of the output (not at the M-switch).
WARNING
With a cross circuit between P-switch and M-switch of the output, the module detects the fault and switches off the output. But the actuator is still supplied with power due to the external fault.
To avoid cross circuits between the P and M-switches of a fail-safe digital output, you should always wire the relay connection to the P and M-switches separately, in order to prevent any cross circuits. For example, as separately sheathed cables or in separate cable ducts.
Note
The digital output module F-DQ 8x24VDC/2A PPM performs a bit pattern test depending on the parameter assignment. For this, the module outputs up to 5 ms pulses depending on the parameter assignment. This test (switch-on test) is run with a time offset between the Pswitch and M-switch to prevent the actuator from being activated. This pulse may cause the corresponding relay to operated, which may reduce its mission time.
We therefore recommend adhering to the wiring scheme described below. See section Application: Connecting 2 loads in parallel per digital output, PM-switching mode (Page 37).

Parameter assignment
Assign the following parameter for the corresponding channel group:

Table 5- 2 Parameter
Parameter Operating mode of the output

PM-switching mode

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

36

Manual, 01/2016, A5E03858037-AA

Applications of the F-I/O module 5.4 Application: Connecting 2 loads in parallel per digital output, PM-switching mode

5.4

Application: Connecting 2 loads in parallel per digital output,

PM-switching mode

To protect against cross-circuits between P-switch and M-switch in fail-safe digital outputs, we recommend the following wiring scheme. This circuit achieves SIL3/Cat.4/PLe.

The figure below shows an example of the pin assignment of the fail-safe digital output module F-DQ 8x24VDC/2A PPM with connection of two parallel loads per digital output, PM-switching mode.

WARNING
To protect the F-module, always install an external fuse with the following properties for the load circuit: Circuit-breaker 24 V DC/16 A, tripping characteristic type B.

 Backplane bus interface  Microcontroller 1  P1 switch for channel groups 0 to 3

 Microcontroller 2  P1 switch for channel groups 4 to 7  Reverse polarity protection

Image 5-3 Wiring diagram for 2 relays in parallel to 1 F-DQ of the digital output module F-DQ 8x24VDC/2A PPM, PM-switching mode

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

37

Applications of the F-I/O module 5.4 Application: Connecting 2 loads in parallel per digital output, PM-switching mode

Note
With a parallel connection of two relays on one digital output (as shown above) the "wire break" fault is only detected if the wire break disconnects both relays from P or M. This diagnostics is not safety-related.
Note You can connect several actuators per output.
If several actuators are connected to an output, the diagnostics of each actuator affects the other ones.
This means: · A wire break is only signaled when several actuators are affected. · A single short-circuit affects multiple actuators.

Parameter assignment
Assign the following parameter for the corresponding channel group:

Table 5- 3 Parameter
Parameter Operating mode of the output

PM-switching mode

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

38

Manual, 01/2016, A5E03858037-AA

Applications of the F-I/O module 5.5 Application: Connecting a load per digital output, PP switching

5.5

Application: Connecting a load per digital output, PP switching

You connect the load between the P-switch DQ-Pn and chassis ground in this application. This circuit achieves SIL3/Cat.4/PLe.

The figure below shows an example of the pin assignment of the fail-safe digital output module F-DQ 8x24VDC/2A PPM with connection of one load per digital output, PP switching.

WARNING
To protect the F-module, always install an external fuse with the following properties for the load circuit: Circuit-breaker 24 V DC/16 A, tripping characteristic type B.

 Backplane bus interface  Microcontroller 1  P1 switch for channel groups 0 to 3

 Microcontroller 2  P1 switch for channel groups 4 to 7  Reverse polarity protection

Image 5-4 Wiring diagram for 1 relay to 1 F-DQ of the digital output module F-DQ 8x24VDC/2A PPM, PP switching

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

39

Applications of the F-I/O module 5.5 Application: Connecting a load per digital output, PP switching

WARNING
In order to achieve SIL3/Cat.4/PLe with this wiring, you must install a qualified actuator, for example, in accordance with IEC 60947.
WARNING
In PP operation, the actuator can no longer be shut down if a cross circuit has developed between a positive potential (e.g. L+) and DQ. To prevent cross circuits between a positive potential (e.g. L+) and DQ, you must route the cables used to connect the actuators in a cross-circuit-proof manner (for example, as separate, sheathed cables or in separate cable ducts).
WARNING
In this application, you have to connect two ground terminals for safety reasons. Otherwise, the maximum residual current at signal "0" (specified in the technical specifications) cannot be maintained if a single ground line is interrupted.
WARNING PP operation In the event of an error at a non-passivated, non-activated output, a brief 1-signal can occur with a duration of 2x max. cycle time (Tcycle) + max. readback time dark test (Trb).

Parameter assignment
Assign the following parameter for the corresponding channel group:

Table 5- 4 Parameter
Parameter Operating mode of the output

PP switching

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

40

Manual, 01/2016, A5E03858037-AA

Interrupts/diagnostic messages

6

6.1

Status and error displays

LED displays

Image 6-1 LED displays of the F-DQ 8x24VDC/2A PPM
Meaning of the LED displays
The following tables explain the meaning of the status and error displays. Remedies for diagnostic alarms can be found in section Diagnostic alarms (Page 46).
WARNING The RUN, ERROR LEDs and channel status/channel diagnostics LEDs of the outputs are not designed as safety-related LEDs and therefore may not be evaluated for safety-related activities.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

41

Interrupts/diagnostic messages 6.1 Status and error displays

RUN and ERROR LEDs

Table 6- 1 RUN/ERROR status and error displays

LED

RUN

ERROR

Off

Off

Flashing

Off

On

Off

Off

Flashing

On

Flashing

Flashing Flashing /
Alternately flashing

Meaning

Remedy

Missing or insufficient voltage on the backplane · Switch on the CPU and/or the system pow-

bus

er supply modules.

· Check whether the module is correctly plugged into the U-connector.

· Check whether too many modules are plugged in.

Module starts up and flashes up to the valid

---

parameter assignment.

Module parameters are assigned and module addressed.
Firmware is being updated.

Indicates diagnostic interrupts:
· Module fault (for example, supply voltage too high)
· Channel fault (for example, frequency too high).
· PROFIsafe communication error Operation in S7-1500 F-CPUs: At least one channel is waiting for user acknowledgment. Hardware defective.

Evaluate the diagnostics and eliminate or acknowledge the error. It may be necessary to remove and re-insert the module.
Replace the module.

· Operation in S7-1500 F-CPUs: The F-

Acknowledge the error (see manual SIMATIC

module expects user acknowledgment after Safety - Configuring and Programming

a module error. · Operation in S7-300/400 F-CPUs: At least

(http://support.automation.siemens.com/WW/vi ew/en/54110126)).

one channel is waiting for user acknowl-

edgment.

PWR LED

Table 6- 2 PWR status display

PWR Off On

Meaning Supply voltage L+ missing
Supply voltage L+ available

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

42

Manual, 01/2016, A5E03858037-AA

Interrupts/diagnostic messages 6.1 Status and error displays

CHx LED

Table 6- 3 Display channel status/channel diagnostics

Status CHx

Diagnostics CHx

Off

Off

On

Off

Off

On

/

Alternately flashing

Meaning Process signal = 0 and no channel diagnostics* Process signal = 1 and no channel diagnostics Process signal = 0 and channel diagnostics Channel waiting for user acknowledgment

* Operation in S7-300/400 F-CPUs only: If necessary, wait for user acknowledgment, if an additional channel is also waiting for user acknowledgment due to an error that occurred later.

CHx/ERROR LED with PROFIsafe address assignment

Table 6- 4 Channel status/channel diagnostics/ERROR display with PROFIsafe address assignment

Status CHx
Off
All are flashing

Diagnostics CHx
All on
Off

ERROR Meaning

Flashing Flashing

The PROFIsafe address does not match the configured PROFIsafe address
Identification of the F-module when assigning the PROFIsafe address

LED CHx/RUN/ERROR if supply voltage error occurs

Table 6- 5 Channel status/channel diagnostics/RUN/ERROR display if supply voltage error occurs

CHx sta- Diagnos-

tus

tics CHx

Off

On

RUN On

ERROR Meaning

Flashing

Supply voltage too high or too low.
· Operation in S7-1500 F-CPUs: Module is waiting for user acknowledgment.
· Operation in S7-300/400 F-CPUs: Module is automatically reintegrated after the correction of the error.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

43

Interrupts/diagnostic messages 6.2 Interrupts

6.2

Interrupts

Introduction

The F-DQ 8x24VDC/2A PPM fail-safe digital output module supports diagnostic interrupts.

Diagnostic interrupt
The F-module generates a diagnostic interrupt for each diagnostic alarm described in section Diagnostic alarms (Page 46). The table below provides an overview of the diagnostic interrupts of the F-module . The diagnostic interrupts are assigned either to one channel or the entire F-module.
WARNING
Before acknowledging the short-circuit diagnostic alarm, remedy the respective fault and validate your safety function. Follow the fault remedying procedure described in section Diagnostic alarms (Page 46).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

44

Manual, 01/2016, A5E03858037-AA

Table 6- 6 Diagnostic interrupts of the F-DQ 8x24VDC/2A PPM
Diagnostic interrupt
Overtemperature Wire break Parameter error Supply voltage missing Safety event Mismatch of safety destination address (F_Dest_Add) Safety destination address not valid (F_Dest_Add) Safety source address not valid (F_Source_Add) Safety watchdog time value is 0 ms (F_WD_Time) Parameter F_SIL exceeds SIL from specific device application Parameter F_CRC_Length does not match the generated values Version of F-parameter set incorrectly CRC1 fault Save iParameter watchdog time exceeded Restore iParameter watchdog time exceeded Inconsistent iParameters (iParCRC error) F_Block_ID not supported Transmission error: Inconsistent data (CRC error) Transmission error: Timeout (watchdog time 1 or 2 expired) Module is defective Watchdog tripped Short-circuit to L+ Short-circuit to ground Invalid/inconsistent firmware present Channel failure acknowledgment F-address memory not accessible Frequency too high Undertemperature Output defective Read back failure Overload Supply voltage too high Supply voltage too low

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Fault code 5D 6D 16D 17D 25D 64D 65D 66D 67D 68D 69D 70D 71D 73D 74D 75D 76D 77D 78D 256D 259D 261D 262D 283D 779D 781D 785D 786D 797D 798D 800D 801D 802D

Scope of diag- Configurable nostic interrupt

F-module

No

Channel

Yes

F-module

No

Channel

F-module

Channel

F-module

Channel

No

Channel

Channel

F-module

F-module

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

45

Interrupts/diagnostic messages 6.3 Diagnostic alarms

6.3

Diagnostic alarms

Diagnostic alarms
Module faults are indicated as diagnostics (module status).
Note You can connect several actuators per output. If several actuators are connected to an output, the diagnostics of each actuator affects the other ones. This means: · A wire break is only signaled when several actuators are affected. · A single short-circuit affects multiple actuators.

Once the fault is eliminated, the F-module must be reintegrated in the safety program. For additional information on passivation and reintegration of F-I/O, refer to the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Table 6- 7 Diagnostic alarms of the F-DQ 8x24VDC/2A PPM

Diagnostic alarm Overtemperature
Wire break

Fault code 5D
6D

Meaning

Remedy

An excessively high temperature was measured in the F-module.

Operate the F-module within the specified temperature range (see Technical specifications (Page 51))
Once the temperature has been reduced and returns to the specified range, the F-module must be removed and inserted or the power switched OFF and ON.

Possible causes:

· There is an interrupted cable between · Establish a cable connection.

the module and actuator.

· Disable the wire break detection for

· The channel is not connected (open).

the channel in the parameter as-

· A short-circuit exists.

signment.

· Eliminate the short-circuit.

Parameter error

16D Parameter errors include:

Correct the parameter assignment.

· The F-module cannot use the parameters (unknown, invalid combination, etc.).

· The F-module parameters have not been configured.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

46

Manual, 01/2016, A5E03858037-AA

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Supply voltage missing

Fault code
17D

Safety event

25D

Mismatch of safety destina- 64D tion address (F_Dest_Add)
Safety destination address 65D not valid (F_Dest_Add)

Safety source address not 66D valid (F_Source_Add)
Safety watchdog time value 67D is 0 ms (F_WD_Time)
Parameter F_SIL exceeds 68D SIL from specific device application

Parameter F_CRC_Length 69D does not match the generated values
Version of F-parameter set 70D incorrectly

CRC1 fault

71D

Save iParameter watchdog 73D time exceeded

Restore iParameter watch- 74D dog time exceeded

Inconsistent iParameters

75D

(iParCRC error)

F_Block_ID not supported 76D

Meaning
Missing or insufficient supply voltage L+
For safety purposes, channel was switched off due to an error on another channel. Possible causes:
· A short-circuit exists. · The capacitive load is too high (PP-
switching operation).
The firmware of the F-module has detected a different F-destination address. The firmware of the F-module has detected an illegal different F-destination address. The firmware of the F-module has detected a different F-source address. The firmware of the F-module has detected an invalid watchdog time. The firmware of the F-module has detected a discrepancy between the SIL setting of the communication and the application. The firmware of the F-module has detected a discrepancy in the CRC length.
The firmware of the F-module has detected an incorrect F_Par_Version or an invalid F_Block_ID. The firmware of the F-module has detected inconsistent F-parameters. iPar server does not respond to "save IPar" within 4.4 minutes. iPar server does not respond to "restore IPar" within 4.4 minutes. The firmware of the F-module has detected inconsistent iParameters. The firmware of the F-module has detected an incorrect block ID.

Remedy · Check supply voltage L+ at the
front connector · Check the front connector
· Correct the process wiring. · Increase the test times (dark, light,
switch-on tests). · Check the parameter assignment
of the PROFIsafe driver and the PROFIsafe address assigned to the F-module. · Assign the PROFIsafe address to the F-module (again).
Check the configuration/parameter assignment of the iPar server. Check the configuration/parameter assignment of the iPar server. Check the parameter assignment. Check the parameter assignment of the PROFIsafe driver.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

47

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm
Transmission error: Inconsistent data (CRC error)

Fault code
77D

Transmission error: Timeout 78D (watchdog time 1 or 2 expired)

Module is defective

256D

Watchdog tripped

259D

Short-circuit to L+

261D

Meaning

Remedy

The firmware of the F-module has detected a CRC error. Possible causes:
· The communication between the FCPU and F-module is disturbed.
· Impermissibly high electromagnetic interference is present.
· An error occurred in the sign-of-life monitoring.

· Check the communication connection between the F-module and F-CPU.
· Eliminate the electromagnetic interference.

The firmware of the F-module has de-

·

tected a timeout.

·

Possible causes:

· The F-monitoring time is set incorrectly.

· A bus fault is present.

Check the parameter assignment.
Ensure that communication is functioning correctly.

Possible causes: · Impermissibly high electromagnetic
interference is present.
· The F-module has detected an internal error and has reacted in a safetyrelated manner.

· Eliminate the interference. The module must then be pulled and plugged, or the power switched OFF and ON.
· If the F-module cannot be put back into operation, consider replacing it.

Possible causes: · Impermissibly high electromagnetic
interference is present.
· The F-module has detected an internal error and has reacted in a safetyrelated manner.

· Eliminate the interference. The module must then be pulled and plugged, or the power switched OFF and ON.
· If the F-module cannot be put back into operation, consider replacing it.

Short-circuit to L+ can mean:

· The output cable is short-circuited to ·

L+.

·

· The capacitive load between the

channels is too high (for example, due

to cable length)

You must eliminate the error within 100 hours; otherwise, the F-module is permanently passivated and an acknowledgment is no longer possible.

Correct the process wiring.
Increase the test times (dark, light, switch-on tests).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

48

Manual, 01/2016, A5E03858037-AA

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Short-circuit to ground

Fault code
262D

Invalid/inconsistent firmware 283D present

Channel failure acknowledgment
F-address memory not accessible

779D 781D

Frequency too high

785D

Undertemperature

786D

Output defective

797D

Meaning

Remedy

Short-circuit to ground can mean:

· Correct the process wiring.

· The output cable is short-circuited to · Increase the test times (dark, light,

ground.

switch-on tests).

· The output signal is short-circuited to ground.

· There is a short-circuit between two output channels.

· The capacitive load is too high.

You must eliminate the error within 100 hours; otherwise, the F-module is permanently passivated and an acknowledgment is no longer possible.

The firmware is incomplete and/or firm- · Perform a firmware update for all

ware added to the F-module is incompat-

parts of the F-module and note any

ible. This leads to errors or functional limitations when operating the F-module.

error messages.

· Use only firmware versions re-

leased for this F-module.

A channel fault was detected. Confirmation is required to enable the channel.
The F-source address and F-destination address stored in the coding element cannot be accessed.
The maximum switching frequency of the F-module has been exceeded.
The minimum permissible temperature limit has been violated.
The F-module has detected an internal error.
You must eliminate the error within 100 hours; otherwise, the F-module is permanently passivated and an acknowledgment is no longer possible.
Possible causes:

Confirm the channel fault.
Verify that the coding element is present or replace the coding element.
Reduce the switching frequency (see Technical specifications (Page 51)) Operate the F-module within the specified temperature range (see Technical specifications (Page 51)) · Increase the test times (dark, light,
switch-on tests). · Check the wiring. · Consider replacing the F-module.

· The capacitive load is too high.

· Short-circuit to L+ or M

· The F-module has detected an internal error and has reacted in a safetyrelated manner.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

49

Interrupts/diagnostic messages 6.3 Diagnostic alarms

Diagnostic alarm Read back failure
Overload
Supply voltage too high Supply voltage too low

Fault code 798D
800D
801D 802D

Meaning

Remedy

The F-module has detected an internal error.

· Increase the test times (dark, light, switch-on tests).

You must eliminate the error within 100 · If the error continues, consider

hours; otherwise, the F-module is permanently passivated and an acknowledg-

replacing the F-module.

ment is no longer possible.

Possible causes:

· Impermissibly high electromagnetic interference is present.

· The capacitive load is too high.
· The F-module has detected an internal error and has reacted in a safetyrelated manner.

The maximum permissible output current · Check the process wiring.

has been exceeded. The output stage has been switched off.
You must eliminate the error within 100

· Reduce the load or the load current.

hours; otherwise, the F-module is perma-

nently passivated and an acknowledg-

ment is no longer possible.

Possible causes:

· A short-circuit exists. · The connected load is too high.

The supply voltage is too high. The supply voltage is too low.

Check the supply voltage. Check the supply voltage.

Supply voltage outside the nominal range
If the supply voltage L+ is outside the specified value range, the ERROR LED flashes and the module is passivated.
When the voltage is then recovered (level must remain within the specified value for at least 1 minute, see Technical specifications (Page 51)), the ERROR LED stops flashing. The module remains passivated and waits for user acknowledgment.

Generally applicable information on diagnostics
Information on diagnostics that pertains to all fail-safe modules (for example, readout of diagnostics functions or passivation of channels) is available in the SIMATIC Safety ­ Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126) manual.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

50

Manual, 01/2016, A5E03858037-AA

Technical specifications

7

Technical specifications of F-DQ 8x24VDC/2A PPM

General information Product type designation Firmware version
· FW update possible
Product function I&M data Engineering with STEP 7 TIA Portal can be configured/integrated as of version Operating mode DQ Supply voltage Rated value (DC) Low limit of permitted range (DC) High limit of permitted range (DC) Reverse polarity protection Input current Current consumption (rated value) Output voltage Rated value (DC) Power Power consumption from the backplane bus Power loss Power loss, typ. Address range Address space per module Address space per module, max. Digital outputs Number of outputs M switching P switching Short-circuit protection Wire break detection
· Response threshold, typ.
Overload protection
· Response threshold, typ.
Voltage induced on current interruption limited to

6ES7526-2BF00-0AB0
F-DQ 8x24VDC/2A PPM
Yes
Yes; I&M0 to I&M3
V13 SP1 with HSP0086
Yes
24 V 19.2 V 28.8 V Yes
110 mA; without load
24 V
0.8 W
11 W
6 byte
8 Yes Yes Yes Yes 8 mA Yes 2.9 A PM switching: -24 V + (-47 V), PP switching: -24 V

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

51

Technical specifications

Switching capacity of outputs With resistive load, max. With lamp load, max. Load resistance range Low limit High limit Output voltage For "1" signal, min. Output current For "1" signal, rated value For "0" signal, residual current, max.
Switching frequency With resistive load, max. With inductive load, max. With lamp load, max. Total current of outputs Max. current per channel Total current of the outputs (per module) Horizontal mounting position
· Up to 40 , max.
· Up to 60 , max.
Vertical mounting position
· Up to 40 , max.
Cable length shielded, max. unshielded, max. Interrupts/diagnostics/status information Fail-safe values can be switched to Interrupts Diagnostic interrupt Diagnostic alarms Diagnostics Monitoring of supply voltage Wire break Short-circuit Group error Diagnostics display LED RUN LED ERROR LED Monitoring of the supply voltage (PWR-LED) Channel status display For channel diagnostics For module diagnostics

6ES7526-2BF00-0AB0
2 A 10 W
12  2000 
24 V; L+ (-0.5 V)
2 A 0.5 mA; PP switching or separate P and M-switch, PM-switching: max. 1 mA
30 Hz 0.1 Hz 10 Hz
2 A
16 A 8 A
8 A
1000 m 500 m
No
Yes
Yes Yes Yes Yes Yes
Yes; green LED Yes; red LED Yes Yes; green LED Yes; red LED Yes; red LED

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

52

Manual, 01/2016, A5E03858037-AA

Technical specifications

Electrical isolation Electrical isolation, channels Between channels Between channels and backplane bus Insulation Insulation test voltage Standards, approvals, certificates Maximum achievable safety class in safety mode Performance level according to EN ISO 138491:2008 SIL according to IEC 61508 Low demand mode: PFDavg according to SIL3 High demand/continuous mode: PFH according to SIL3 Environmental conditions Ambient temperature in operation Horizontal installation, min. Horizontal installation, max. Vertical installation, min. Vertical installation, max. Dimensions Width Height Depth Weights Weight, approx.

6ES7526-2BF00-0AB0
No Yes
707 VDC (type test)
PLe SIL 3 < 6.00E-05 < 2.00E-09 1/h
0 °C 60 °C 0 °C 40 °C
35 mm 147 mm 129 mm
300 g

Note
To reach the maximum cable length, it may be necessary to increase the settings for maximum readback time switch on test or maximum read-back time dark test.
We also recommend a more detailed consideration of the boundary conditions, such as EMC, cables used, cable guide, etc.

Dimension drawing
See system manual S7-1500 Automation System (http://support.automation.siemens.com/WW/view/en/59191792).

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

53

Response times

A

Introduction

The next section shows the response times of the digital output module F-DQ 8×24VDC/2A PPM. The response times of digital output module F-DQ 8×24VDC/2A PPM are included in the calculation of the F-system response time.

Definition of response time for fail-safe digital outputs
The response time represents the interval between an incoming safety message frame from the backplane bus and the signal change at the digital output.

Times required for the calculation
 Max. cycle time: Tcycle = 5 ms
 Max. acknowledgment time (Device Acknowledgment Time): TDAT = 10 ms
The maximum response time in the case of fault (One Fault Delay Time, OFDT) is equivalent to the maximum response time with no faults (Worst Case Delay Time, WCDT).
Assign the parameters for maximum readback time dark test (Maximum Readback Time, Trb) and a maximum readback time switch-on test (Maximum Readback Time Switch-On Test, Trb_swon) in STEP 7.

Maximum response time with no faults (Worst Case Delay Time, WCDT)
t <= 3 * cycle time + max (Trb, Trb_swon)

Maximum response time with detection of a channel fault by readback
t <= 4 * cycle time + 2 * max (Trb, Trb_swon)

Maximum response time with detection of a channel fault by bit pattern test
t <= 2 * cycle time + maximum test time

Maximum response time with detection of a wire break at "1" signal
t <= 3 * cycle time + 1000 ms (wire break detection) + max (Trb, Trb_swon)

Maximum response time with detection of an overload at "1" signal
t <= 4 * cycle time + max (Trb, Trb_swon)

Maximum response time with detection of an overload or wire break at "0" signal and light test activated.
t <= 2 * cycle time + maximum test time

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

54

Manual, 01/2016, A5E03858037-AA

Switching of loads

B

B.1

Connecting capacitive loads
If an F-DQ 8x24VDC/2A PPM digital output module is interconnected with loads that require little current and have capacitance, this can lead to detection of a short-circuit or overload. Reason: The capacitance cannot be sufficiently discharged or charged during the configured readback time of the bit pattern test.
The typical trends shown in the two figures below represent the correlation between load impedance and maximum switched load capacitance at a supply voltage of 24 V DC.

Image B-1 Switching of capacitive loads for the F-DQ 8x24VDC/2A PPM digital output module in PM-switching mode depending on the configured dark and light test times

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

55

Switching of loads B.1 Connecting capacitive loads

Image B-2 Switching of capacitive loads for the F-DQ 8x24VDC/2A PPM digital output module in PP-switching mode depending on the configured dark and light test times
The trends shown were plotted using a SIMATIC PS 307 10A power supply unit with a cable length of 25 m (cable cross-section of 1.5 mm2) between the output of the F-DQ 8x24VDC/2A PPM output module and the load.
Note The maximum readback time switch on test is only relevant if the light test is activated.
Remedy for detecting a short-circuit
1. Determine the load current and capacitance of the load. 2. Locate the operating point in the diagram above. 3. If the operating point is above the trend, select an actuator with higher current
consumption so that the new operating point is below the curve.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

56

Manual, 01/2016, A5E03858037-AA

Example

Switching of loads B.2 Switching of inductive loads
You have set a dark test time of 100 ms, a light test time of 2 ms and the PM-switching mode. You have set the load current to 20 mA and the capacity to 100 µF. The operating point is thus outside the range defined by the two trends (gray background). Solution: Select an actuator with higher current consumption. In this example, 40 mA. Alternatively, you can configure the parameter "Max. readback time dark test" with 200 ms.

B.2

Switching of inductive loads

Switching of inductive loads
Use the switchgear for control and auxiliary circuits according to the utilization category DC-13 in accordance with IEC 60947-5-1:2014.

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

57

Open Source Software

C

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

58

Manual, 01/2016, A5E03858037-AA

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

59

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

60

Manual, 01/2016, A5E03858037-AA

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

61

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

62

Manual, 01/2016, A5E03858037-AA

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

63

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

64

Manual, 01/2016, A5E03858037-AA

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

65

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

66

Manual, 01/2016, A5E03858037-AA

Open Source Software

Digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

Manual, 01/2016, A5E03858037-AA

67

SIMATIC ET 200MP Product information for the digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)
Product Information
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity). To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).
Content
This product information contains important information on the digital output module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0). The product information is part of the product supplied. The statements provided in it should be considered more up-to-date than other documentation if uncertainties arise.
Addition to the section "Max. readback time dark test"
WARNING You can configure the parameter "Max. readback time dark test" with a maximum of 100 ms for F-modules with firmware version 1.0.0.
Addition to the section "Operating mode of the output"
WARNING If the F-module with firmware version 1.0.0 has been configured with PP-switching mode, you need to change the "Behavior after channel fault" parameter from "Passivate channel" to "Passivate the entire module".
Correction in the section "Application: Connection of one load per digital output, PP-switching"
WARNING In PP operation, a cross-circuit between a positive potential (e.g. L+ or other signal lines) and DQ is detected by the module and it switches the output off. However, the connected actuator is still supplied with power due to the external fault. To prevent cross-circuits between a positive potential (e.g. L+ or other signal lines) and DQ, you must route the lines used to connect the actuators in a cross-circuit-proof manner (for example, as separate, sheathed cables or in separate cable ducts).

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

©ProSdieumcteinsfoArmGa2ti0o1n6f.oAr ltlhreigdhitgsitraelsoeurtvpeudt module F-DQ 8x24VDC/2A PPM (6ES7526-2BF00-0AB0)

AA55EE3377442288339911--AABB,, 0022//22001166

3

Cycle and response times

SIMATIC
S7-1500, S7-1500R/H, ET 200SP, ET 200pro Cycle and response times
Function Manual

Preface

Function manuals Documentation Guide

1

Program execution

2

Cyclic program execution

3

Event-driven program execution

4

Cycle and response times of

the S7-1500R/H redundant

5

system

11/2019
A5E03461504-AE

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03461504-AE  10/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface

Purpose of the documentation
The controller offers various options for program execution with different run priorities. Cyclic-driven and time-driven program execution have the largest share. The response times of a controller are therefore significantly determined by the processing cycles.
There is also the possibility of event-driven program execution. The event-driven program execution is normally limited to a few selected events.
This manual provides information on the following topics:
 Types of program execution
 Run priorities
 Cycle and response times, and the influences to which they are subject
 Configuration options for the optimization of your user program

Basic knowledge required The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the SIMATIC industrial automation system  Knowledge of the use of Windows-based computers  Knowledge of working with STEP 7

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)".

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

3

Preface

Scope of the documentation This documentation mainly covers the description of the CPU components of the cycle and response times of the following systems:
 SIMATIC S7-1500 automation system
 SIMATIC S7-1500R/H redundant system
 The CPUs of the ET 200SP distributed I/O system
 The CPUs of the ET 200pro distributed I/O system based on SIMATIC S7-1500
You can find links to more information on the ET 200MP, ET 200SP and ET 200pro distributed I/O systems at the corresponding points in this manual.

What's new in edition 11/2019 as compared to edition 10/2018?

What's new?
Changed contents

What are the customer benefits?

Where can I find information?

Improved visualization of the The visualization of the current communi- ·

communication load in the cation load and its effects on the cycle

web server

time helps you to find suitable values for

the parameterization of the communication

load.

·

In section Extension of cycle time due to communication load (Page 30)
In the Web Server (https://support.industry.sie mens.com/cs/ww/en/view/5 9193560) function manual

What's new in edition 10/2018 as compared to edition 09/2016?

What's new?
Changed contents

Scope of the function manual expanded to include CPUs of the S7-1500R/H redundant system

What are the customer benefits?
The determination of the cycle and response times of the S7-1500R/H redundant system follows the same principle as for the CPUs of the S7-1500 automation system.

Where can I find information?
Section Cycle and response times of the S7-1500R/H redundant system (Page 56)

What's new in the 09/2016 edition compared to the 02/2014 edition?

What's new?
Changed contents

Scope of the function manual expanded to include the CPUs of the ET 200SP distributed I/O system and CPU 1516pro-2 PN of the ET 200pro distributed I/O system

What are the customer benefits?

Where can I find information?

Functions that you will be familiar with from the SIMATIC S7-1500 CPUs are implemented in CPUs in other designs (ET 200SP) and in the CPU 1516pro-2 PN (degree of protection IP 65, IP 66 and IP 67).

Starting from section Program execution (Page 10)

Cycle and response times

4

Function Manual, 11/2019, A5E03461504-AE

Preface
Recycling and disposal For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

5

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Cycle and response times

6

Function Manual, 11/2019, A5E03461504-AE

Table of contents

Preface ...................................................................................................................................................... 3

1 Function manuals Documentation Guide ................................................................................................... 8

2 Program execution................................................................................................................................... 10

2.1

Principle of operation ..............................................................................................................10

2.2

Overload behavior...................................................................................................................12

3 Cyclic program execution ........................................................................................................................ 17

3.1

Cycle .......................................................................................................................................18

3.2 3.2.1 3.2.2 3.2.2.1 3.2.2.2 3.2.2.3 3.2.2.4

Cycle time ...............................................................................................................................20 Different cycle times................................................................................................................20 Influences on the cycle time ...................................................................................................24 Update time for process image partitions ...............................................................................24 User program execution time..................................................................................................26 Extension of cycle time due to communication load...............................................................30 Special consideration when PROFINET IO communication is configured on the 2nd PROFINET interface (X2) .......................................................................................................42

3.3

Time-driven program execution in cyclic interrupts ................................................................44

3.4

Response time for cyclic and time-driven program execution................................................46

3.5

Summary of response time with cyclic and time-controlled program execution.....................51

4 Event-driven program execution .............................................................................................................. 52

4.1

Response time of the CPUs when program execution is event-controlled ............................52

4.2

Process response time when program execution is event-driven ..........................................54

5 Cycle and response times of the S7-1500R/H redundant system ............................................................ 56

5.1

Introduction .............................................................................................................................56

5.2

Maximum cycle time and time errors ......................................................................................57

5.3 5.3.1 5.3.2 5.3.3 5.3.4

Influences on the cycle time of the S7-1500R/H redundant system.......................................59 Influences on the cycle time in RUN-Solo system state .........................................................59 Influences on the cycle time in SYNCUP system state ..........................................................59 Influences on the cycle time in RUN-Redundant system state ..............................................63 Influences on the cycle time when a CPU fails.......................................................................66

5.4

Response time of R/H CPUs ..................................................................................................69

5.5

Timetables for the RUN-Redundant system state ..................................................................72

Glossary .................................................................................................................................................. 75

Index........................................................................................................................................................ 81

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

7

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Cycle and response times

8

Function Manual, 11/2019, A5E03461504-AE

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

9

Program execution

2

2.1

Principle of operation

Introduction

You often program your user program with a program cycle OB, usually in OB 1. With complex applications, it is often necessary to comply with short response times required by the application. You can often meet the response time requirements by splitting the user program up into several parts with different response time requirements. The CPU offers a number of different OB types for this purpose, the properties (priority, frequency, etc.) of which can be adapted to meet your requirements.

Program organization
You can choose from the following types of program execution for running your user program:
Program execution in the cyclic program of the CPU:
The CPU executes the user program cyclically. When the execution has reached the end of a cycle, the program execution starts again in the next cycle. In the simplest case, you execute the entire user program in the cyclic program of the CPU. All tasks in the user program are then processed with equal rank. This also results in the same response times for all tasks.
In addition to program execution in the cyclic program, there is time-driven and event-driven program execution.
Time-driven execution:
In a complex user program, there are frequently portions with different response time requirements. You can optimize the response times by taking advantage of these differences in the requirements. To do so, you can break down the program parts with higher response time requirements into higher-priority OBs with shorter cycles, for example cyclic interrupt OBs.
The execution of these parts can thus occur at different frequencies and with different priorities.
Event-driven execution:
Depending on the I/O modules used, you can configure hardware interrupts for specific process events (such as an edge change of a digital input) that result in the call of the assigned hardware interrupt OB. The hardware interrupts have a higher priority and interrupt the cyclic program of the CPU. You can achieve very short response times in the CPU with hardware interrupts by directly triggering program execution.
Keep in mind that the time characteristics of your application becomes less predictable with intense use of hardware interrupts. The reason for this is that the time at which the triggering events occur can result in drastically different response times.
Tip: Use hardware interrupts only for a few selected events.
Special consideration for hardware interrupts: If you have assigned an OB to an event (hardware interrupt), the OB then has the priority of the event.

Cycle and response times

10

Function Manual, 11/2019, A5E03461504-AE

Program execution 2.1 Principle of operation
Using process image partitions
If you have distributed a program over various OBs, for example, due to different response time requirements, it is advisable and often necessary to assign the update of the used I/O data directly to these OBs. You can use process image partitions for this purpose.
You group the input and output data in a process image partition according to their use in the program and assign the data to the OB.
A process image partition of the inputs (PIPI) permits the associated input data for an OB program to be updated immediately before the OB program starts.
A process image partition of the outputs (PIPQ) permits the output data associated with an OB program to become effective on the outputs immediately after the OB program runs.
You have 32 (0 ... 31) process image partitions at your disposal. The I/O is assigned to the process image partition 0 by default (setting: "Automatic update"). Process image partition 0 is permanently assigned to cyclic execution.
You have to configure the "system-side update of process image partitions". You can find additional information on configuration of process image partitions in the online help for STEP 7 under the keyword "Assign process image/process image partition".
Interruptibility of program execution
Each organization block is processed according to the priority it has been assigned. You can adapt the priority according to the response time requirements for most organization blocks.
All program cycle OBs always have the lowest priority of 1. The highest priority is 26.
Communication tasks always have priority 15. If necessary, you can change the priority of your blocks and select a higher priority than the communication.
Organization blocks or system activities with higher priority interrupt organization blocks or system activities with lower priority. Organization blocks or system activities with higher priority interrupt thus extend the runtime of the interrupted organization blocks or system activities. If two pending tasks have the same priority, these tasks are processed in the order in which the relevant start events occurred.
Note Higher priority OBs
Communication functionality is strongly influenced by too many and/or runtime-intensive OBs with a priority > 15.
When using OBs with a priority  15, you should therefore consider the runtime load that they cause.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

11

Program execution 2.2 Overload behavior

Reference

You can find additional information on the subject of "priorities" in the "Events and OBs" section of the following manuals:
 S7-1500 automation system (https://support.industry.siemens.com/cs/ww/en/view/59191792) system manual
 S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual
 ET 200SP distributed I/O system (https://support.industry.siemens.com/cs/ww/en/view/58649293) system manual
 Operating instructions CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)
You can find additional information on organization blocks and their priorities for Motion Control on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109751049).

2.2

Overload behavior

CPU overload behavior
An occurring event triggers the execution of the associated OB. Depending on the OB priority and the current processor load, a time delay may occur before the OB is executed when there is an overload. The same event can therefore occur once or several times before the user program processes the OB belonging to the preceding event. The CPU handles such a situation as follows: The operating system queues the events in the queue associated with their priority in the order of their occurrence. The CPU then takes the oldest event for the highest priority and processes the associated OB. After the OB has been processed, the CPU processes the OB for the next event.
To control temporary overload situations, you can limit the number of queued events that originate from the same source. The next event is discarded as soon as the maximum number of pending triggers of a specific cyclic interrupt OB, for example, is reached.
Overload occurs when similar events occur faster than the CPU can process these events. Similar events are events from a single source, such as start events for a specific cyclic interrupt OB.

Cycle and response times

12

Function Manual, 11/2019, A5E03461504-AE

Program execution 2.2 Overload behavior
Configuration of the overload response In the properties of an organization block in which an overload can occur, you can select the response to overload under "Attributes" and "Event queuing".

Figure 2-1 Configuration of the overload response in the block properties
Events to be queued
The OB parameter "Events to be queued" is used to specify how many similar events the operating system places in the associated queue and therefore post-processes. If this parameter has the value 1, for example, exactly one event is stored temporarily.
If the maximum number of similar start events is reached in the queue, each additional start event is only counted and subsequently discarded. During the next scheduled processing of the event, the CPU provides the number of discarded start events in the "Event_Count" input parameter (in the start information). You can then react appropriately to the overload situation. The CPU then resets the counter for lost events to zero.
Note
Post-processing of cyclic events is often not desirable, as this can lead to an overload with OBs of the same or lower priority. Therefore, it is generally advantageous to discard similar events and to react to the overload situation during the next scheduled OB processing. A low value of the "Events to be queued" parameter mitigates an overload situation.
To ensure that the CPU processes the OB of at least one queued event, the minimum number of events to be queued is "1". The maximum number of events that can be queued is "12".

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

13

Program execution 2.2 Overload behavior

Report event overflow into diagnostic buffer
If the CPU first discards a start event of a cyclic interrupt OB, for example, its further behavior depends on the OB parameter "Report event overflow into diagnostic buffer". If you have selected the check box, the CPU enters the event in the diagnostic buffer for the overload situation at this event source. If an overload situation occurs again (overflow counter changes from 0 to 1), another diagnostic buffer entry is made at the next OB end.
Enable time error
The cyclic interrupt OB parameter "Enable time error" is used to specify whether the CPU is to call a time error OB when a specific overload level is reached for similar events. You use the OB parameter "Enable time error" to program a reaction to an overload before the limit for similar events is reached. The reaction occurs before the CPU discards similar events.
By default, the "Enable time error" parameter is not set.
Event threshold for time error
Select the "Enable time error" check box to enable the "Event threshold for time error" OB parameter. You use the "Event threshold for time error" OB parameter to specify how many similar events in the queue are permitted before the CPU calls a time error OB.
The following value range applies to the "Event threshold for time error" parameter:
1  "Event threshold for time error"  "Events to be queued".

Example 1

The following example shows the response of the CPU when multiple similar events occur faster than the CPU can process the associated OBs. In example 1, the user selected the following parameter assignment:

Figure 2-2 Example of parameter assignment for the overload behavior

Cycle and response times

14

Function Manual, 11/2019, A5E03461504-AE

Program execution 2.2 Overload behavior
The figure below shows the processing sequence as soon as an event calls an associated OB.

Example 2

Figure 2-3 Example 1
As soon as an occurring event calls an OB, the event occupies a slot of the OB. The occupied slot is free again as soon as the CPU has processed the event. If the CPU has not completed processing the OB of an occurring event, additional occurring events each occupy an additional slot of the OB during this time. As soon as this number exceeds the configured number of events to be queued, these events are discarded and counted by the overflow counter. When an OB which takes a long time to run is completed, the CPU creates an entry
in the diagnostic buffer and sets the overflow counter to zero (). After the CPU has
processed this long-running OP, the CPU then processes the OBs of the events that are queued one after the other. At the next new occurring event, the CPU writes the previous value of the reset overflow counter to the start information of the OB. The CPU then
processes the OB ().
In example 2, the user has selected the following parameter assignment:

Figure 2-4 Example of parameter assignment for the overload behavior

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

15

Program execution 2.2 Overload behavior
Contrary to example 1, the CPU in example 2 requests a time error as soon as the configured event threshold has been exceeded. An additional time error can then only occur if all slots of the OB have been free once in the meantime.
Figure 2-5 Example 2

Cycle and response times

16

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution

3

Validity

The statements of the section "Cyclic program execution" apply to the CPU components of the following systems:
 S7-1500 automation system
 ET 200MP and ET 200SP distributed I/O systems
 The CPUs of the ET 200pro distributed I/O system based on SIMATIC S7-1500
 S7-1500R/H redundant system (in RUN-Solo system state) In RUN-Redundant system state, the statements of section "Cycle and response times of the S7-1500R/H redundant system (Page 56)" apply.

Restrictions

With the S7-1500R/H redundant system, there are restrictions compared to the S7-1500 automation system. The S7-1500R/H redundant system does not support all hardware properties and firmware functions of the S7-1500 automation system (for example, it does not support PROFIBUS DP, central I/O, web server, etc.).
The restrictions are described in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

17

Cyclic program execution 3.1 Cycle

3.1

Cycle

Definition of cycle
A cycle includes the following sections:
 Automatic update of process image partition 0 of the outputs (PIPQ 0)
 Automatic update of process image partition 0 of the inputs (PIPI 0)
 Execution of the cyclic program
The process image partition 0 is automatically updated in the cycle. You assign the I/O addresses to these process image partitions (PIPI 0/PIPQ 0) when you configure the I/O modules via the "Automatic update" setting (default).

Figure 3-1 Assigning I/O addresses to process image partitions

Cycle and response times

18

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.1 Cycle
The figure below illustrates the phases that are passed through during a cycle. In the example below the user has configured a minimum cycle time. Updating of the process image partitions and processing of the cyclic program is completed before the end of the configured minimum cycle time. Therefore, the CPU waits until the configured minimum cycle time has expired before the next program cycle starts.

 Cycle control point at which the operating system starts measurement of the cycle time.  The CPU writes the states from the process image output to the output modules.  The CPU reads the status of the inputs at the input modules and writes the input data to the
process image input.
 The CPU processes the user program and executes the instructions specified in the program.  Wait phase until end of configured minimum cycle time
Figure 3-2 Cycle
Cycle control point When the cycle control point is reached, the CPU has completed the cycle program and is no longer executing OBs. All user data are consistent at this time. The requirement is that no communication that modifies user data (such as HMI communication or PUT/GET communication) is active.
The cycle control point marks:
 The end of a cycle and its cycle time statistics
 The start of the next cycle and its cycle time statistics
 The restart of the monitoring of the configured maximum cycle time (time-out counter is reset)
The cycle control point is reached depending on which of the following events occurred last:
 End of the last program cycle OB
 Expiry of the minimum cycle time (if configured)
After the cycle control point has been reached, the CPU executes the following steps:
1. Writes the process image outputs to the output modules
2. Reads in the status of the inputs from the input modules into the process image input
3. Executes the first program cycle OB

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

19

Cyclic program execution 3.2 Cycle time

3.2

Cycle time

Definition of cycle time The cycle time is the time the CPU needs for:  Updating the process image inputs/outputs  Executing the cyclic program  All program parts and system activities interrupting this cycle  Waiting for the minimum cycle time (if it is parameterized and is longer than the program execution time)

3.2.1

Different cycle times

Introduction

The cycle time (Tcyc) is not the same in each cycle because the processing times may vary. Causes of this include:  For example, different program runtimes:
­ Program loops ­ Conditional commands ­ Conditional block calls ­ Different program paths  Lengthening due to interruptions, for example: ­ Time-driven interrupt processing ­ Event-driven interrupt processing ­ Communication

Cycle and response times

20

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Causes of different cycle times The figure below shows the different cycle times Tcyc1 and Tcyc2 using an example. Because the cyclic program is interrupted by a cyclic interrupt OB in this example (for example: OB 30), the cycle time Tcyc2 is greater than Tcyc1. The cyclic interrupt OB in turn is interrupted by Motion Control functions and communication.

Figure 3-3 Possible causes of differing cycle times

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

21

Cyclic program execution 3.2 Cycle time

Minimum cycle time
In STEP 7, you can set a minimum cycle time for a CPU. The default setting for the minimum cycle time of the non-redundant CPUs is one millisecond. It is advisable to increase this setting in the following cases:
 To reduce the cycle time's fluctuation range.
 To make remaining computing time available for communication tasks. The CPU then processes these communication tasks until the minimum cycle time has expired. Making the remaining computing time available to communication tasks offers the following advantages:
­ Longer minimum cycle times prevent that process images are updated unnecessarily often and thus lead to less load on the backplane bus.
­ Longer minimum cycle times result in an increase in communication performance.

Maximum cycle time
The maximum cycle time is a configurable high limit of the cyclic program runtime. The task of the maximum cycle time is to monitor the response time required for the respective process.
The maximum cycle time of non-redundant CPUs is set to 150 ms by default. You can set this value from 1 ms to 6000 ms when assigning parameters to the CPU. When the time of the cycle currently being processed is longer than the maximum cycle time, the time error OB (OB 80) is called. You specify how the CPU responds to the time error with the user program in OB 80.
The following table shows the response of the CPU to the cycle time being exceeded with and without a configured OB 80:

Table 3- 1 Response of the CPU to cycle time being exceeded
Number of times cycle time is exceeded  First time cycle time is exceeded without OB 80  First time cycle time is exceeded with OB 80  Second time cycle time is exceeded with OB 80 

Operating mode STOP RUN STOP

Cycle and response times

22

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Cycle time statistics You can read the cycle time statistics either directly from STEP 7 ("Online tools" task card) or with the "RT_INFO" instruction. You can use the "RT_INFO" instruction to generate statistics in STEP 7 on the runtime of specific organization blocks for communication or for the user program. For example, this includes  The shortest and longest cycle time  The portions of runtime used for communication and the user program
Note Showing the cycle time statistics on the display and Web server With the S7-1500 CPUs, you also have the option of calling the cycle time statistics via the display of the CPU. As of firmware version 2.0 of the CPUs, the cycle time statistics are also displayed in the Web server.
To view the cycle time statistics directly in STEP 7, follow these steps: 1. Establish an online connection to the CPU with STEP 7. 2. Select the "Online tools" task card. Result: The diagram of the cycle time statistics is displayed in the cycle time section. The following figure shows an extract from STEP 7 with the cycle time statistics. In this example, the cycle time fluctuates between 7 ms and 12 ms. The current cycle time is 10 ms. The maximum cycle time that can be set in this example is 40 ms.

Reference

Figure 3-4 Cycle time statistics
You can find additional information on the runtime characteristics of the CPU with the "RT_INFO" instruction in the user program. The instruction includes information about:  The utilization of the CPU by the user program and communication in percentage  The runtimes of the individual OBs
Additional information on the "RT_INFO" instruction is available in the STEP 7 online help.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

23

Cyclic program execution 3.2 Cycle time

3.2.2

Influences on the cycle time

3.2.2.1

Update time for process image partitions

Estimating update time for process image partitions The update time of the process image partitions depends on the volume of assigned central and distributed I/O module data. You can estimate the update time using the following formula:
Base load for process image update + Number of words in the process image x copy time for central I/O + Number of words in the process image via DP x copy time for PROFIBUS I/O + Number of words in the process image via PROFINET x copy time for PROFINET I/O _______________________________________________________________________ = Update time of the process image partition

Update times of the process image partitions
The following table contains the times for estimating the typical update times of the process image partitions.

Table 3- 2 Data for estimating the typical update time of the process image partitions

Components

Basic load for updating process image partitions
Copy time for central I/O
Copy time for distributed I/O via PROFIBUS
Copy time for distributed I/O via PROFINET

1511(F)-1 PN 1511T(F)-1 PN 1511C-1 PN 1512C-1 PN 1513(F)-1 PN 35 s
9 s/word 0.5 s/word
0.5 s/word

Update times of the CPUs

S7-1500

1515(F)-2 PN

1517(F)-3 PN/DP 1518(F)-4 PN/DP

1515T(F)-2 PN 1516(F)-3 PN/DP

1517T(F)-3 PN/DP

1518(F)-4 PN/DP MFP

1516T(F)-3 PN/DP

30 s
8 s/word 0.5 s/word
0.5 s/word

7 s
5 s/word 0.4 s/word
0.4 s/word

5 s
4 s/word 0.3 s/word
0.3 s/word

Cycle and response times

24

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time

Components
Basic load for updating process image partitions Copy time for distributed I/O via PROFINET

Update time of the CPU in RUN-Solo system state

S7-1500R/H*

1513R-1 PN 35 s 0.5 s/word

1515R-2 PN 30 s 0.5 s/word

1517H-3 PN 7 s 0.4 s/word

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Components

Basic load for updating process image partitions Copy time for central I/O Copy time for distributed I/O via PROFIBUS Copy time for distributed I/O via PROFINET

1510SP(F)-1 PN 60 s 0.5 s/word 0.5 s/word 0.5 s/word

Update time of the CPU

ET 200SP

1512SP(F)-1 PN

1515SP(F)-PC

60 s 0.5 s/word 0.5 s/word 0.5 s/word

30 s 0.5 s/word 0.5 s/word 0.5 s/word

Note Update time of the backplane bus for ET 200SP CPUs
For the update time of the ET 200SP CPUs, observe also the information in table "Update time of the ET 200SP CPUs" of the section Response time for cyclic and time-driven program execution (Page 46).

Components
Basic load for updating process image partitions Copy time for central I/O Copy time for distributed I/O via PROFIBUS Copy time for distributed I/O via PROFINET

Update time of the CPU

ET 200pro

1513pro(F)-2 PN

1516pro(F)-2 PN

35 s 140 s/word 0.5 s/word 0.5 s/word

30 s 120 s/word 0.5 s/word 0.5 s/word

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

25

Cyclic program execution 3.2 Cycle time

3.2.2.2

User program execution time

Introduction

Organization blocks or system activities with higher priority interrupt organization blocks or system activities with lower priority, and thus extend their runtime.

Program execution time without interruptions
The user program has a certain runtime without interruptions. The runtime depends on the number of operations that are executed in the user program.
The following table contains the typical durations of operations.

Table 3- 3 Duration of an operation

Bit operations, typ.
Word operations, typ.
Fixed-point arithmetic, typ.
Floating-point arithmetic, typ.

1511(F)1 PN 1511T(F)1 PN 1511C-1 PN 60 ns
72 ns
96 ns
384 ns

1512C1 PN
48 ns 58 ns 77 ns 307 ns

1513(F)1 PN
40 ns 48 ns 64 ns 256 ns

S7-1500
1515(F)2 PN
1515T(F)2 PN

1516(F)3 PN/DP
1516T(F)3 PN/DP

30 ns 36 ns 48 ns 192 ns

10 ns 12 ns 16 ns 64 ns

1517(F)3 PN/DP 1517T(F)3 PN/DP
2 ns
3 ns
3 ns
12 ns

1518(F)4 PN/DP 1518(F)4 PN/DP MFP 1 ns
2 ns
2 ns
6 ns

Bit operations, typ.
Word operations, typ.
Fixed-point arithmetic, typ.
Floating-point arithmetic, typ.

1513R-1 PN 40 ns 48 ns 64 ns 256 ns

S7-1500R/H* in RUN-Solo system state

1515R-2 PN 30 ns

1517H-3 PN 2 ns

36 ns

3 ns

48 ns

3 ns

192 ns

12 ns

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Cycle and response times

26

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time

Bit operations, typ.
Word operations, typ.
Fixed-point arithmetic, typ.
Floating-point arithmetic, typ.

1510SP(F)-1 PN 72 ns 86 ns 115 ns 461 ns

ET 200SP 1512SP(F)-1 PN 48 ns
58 ns
77 ns
307 ns

1515SP(F)-PC 30 ns 36 ns 48 ns 192 ns

Bit operations, typ. Word operations, typ. Fixed-point arithmetic, typ. Floating-point arithmetic, typ.

1513pro(F)-2 PN 40 ns 48 ns 64 ns 256 ns

ET 200pro
1516pro(F)-2 PN 10 ns 12 ns 16 ns 64 ns

Note Instruction "RUNTIME"
Please note that the times specified in the tables are typical values. There can therefore be user programs that deviate from the specified typical values.
Make sure to check the runtime of critical program sequences beforehand with the "RUNTIME" instruction.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

27

Cyclic program execution 3.2 Cycle time

Extension due to nesting of higher-priority OBs and/or interrupts
The interruption of a user program by a higher-priority OB causes a certain basic time expenditure. Take account of this basic time expenditure in addition to the update time of the assigned process image partitions and the execution time of the contained user program. The following tables contain the typical times for the various interrupts and error events.

Table 3- 4 Basic time expenditure for an interrupt

Hardware interrupt Time-of-day interrupt Time-delay interrupt Cyclic interrupt

1511(F)-1 PN 1511T(F)-1 PN 1511C-1 PN 1512C-1 PN 1513(F)-1 PN 90 s 90 s 90 s 90 s

S7-1500

1515(F)-2 PN

1517(F)-3 PN/DP

1515T(F)-2 PN 1516(F)-3 PN/DP

1517T(F)-3 PN/DP

1516T(F)-3 PN/DP

80 s 80 s 80 s 80 s

20 s 20 s 20 s 20 s

1518(F)-4 PN/DP 1518(F)-4 PN/DP MFP
12 s 12 s 12 s 12 s

Hardware interrupt Time-of-day interrupt Time-delay interrupt Cyclic interrupt

1513R-1 PN 170 s 170 s 170 s 170 s

S7-1500R/H* in RUN-Solo system state

1515R-2 PN

1517H-3 PN

140 s 140 s 140 s 140 s

20 s 20 s 20 s 20 s

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Hardware interrupt Time-of-day interrupt Time-delay interrupt Cyclic interrupt

1510SP(F)-1 PN 90 s 90 s 90 s 90 s

ET 200SP
1512SP(F)-1 PN 90 s 90 s 90 s 90 s

1515SP(F)-PC 80 s 80 s 80 s 80 s

Hardware interrupt Time-of-day interrupt Time-delay interrupt Cyclic interrupt
28

1513pro(F)-2 PN 90 s 90 s 90 s 90 s

ET 200pro 1516pro(F)-2 PN 80 s 80 s 80 s 80 s
Cycle and response times Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time

Table 3- 5 Basic time expenditure for an error OB

Programming error
I/O access error Time error Diagnostic interrupt Module failure/recovery
Station failure/recovery

1511(F)-1 PN 1511T(F)-1 PN 1511C-1 PN 1512C-1 PN 1513(F)-1 PN 90 s 90 s 90 s 90 s 90 s
90 s

S7-1500

1515(F)-2 PN 1515T(F)-2 PN

1517(F)-3 PN/DP 1517T(F)-3 PN/DP

1516(F)-3 PN/DP

1516T(F)-3 PN/DP

80 s 80 s 80 s 80 s 80 s
80 s

20 s 20 s 20 s 20 s 20 s
20 s

1518(F)-4 PN/DP 1518(F)-4 PN/DP MFP
12 s 12 s 12 s 12 s 12 s 12 s

Programming error I/O access error
Time error Diagnostic interrupt Module failure/recovery Station failure/recovery

1513R-1 PN 170 s 170 s 170 s 170 s 170 s
170 s

S7-1500R/H* in RUN-Solo system state

1515R-2 PN

1517H-3 PN

140 s 140 s 140 s 140 s 140 s

20 s 20 s 20 s 20 s 20 s

140 s

20 s

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Programming error I/O access error Time error Diagnostic interrupt
Module failure/recovery Station failure/recovery

1510SP(F)-1 PN 90 s 90 s 90 s 90 s 90 s
90 s

ET 200SP 1512SP(F)-1 PN 90 s 90 s 90 s 90 s 90 s
90 s

1515SP(F)-PC 80 s 80 s 80 s 80 s 80 s
80 s

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

29

Cyclic program execution 3.2 Cycle time

CPU
Programming error I/O access error Time error Diagnostic interrupt Module failure/recovery Station failure/recovery

1513pro(F)-2 PN 90 s 90 s 90 s 90 s 90 s 90 s

ET 200pro
1516pro(F)-2 PN 80 s 80 s 80 s 80 s 80 s 80 s

Reference

You can find additional information on the topic of error handling in the Events and OBs section of the
 S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792) system manual
 S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual
 ET 200SP distributed I/O system (http://support.automation.siemens.com/WW/view/en/58649293) system manual
 In the CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416) operating instructions, each in the Events and OBs chapter
You can find additional information on the topic of the complete cycle time of a program in an FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/87668055).

3.2.2.3

Extension of cycle time due to communication load

Impact of communication on the cycle time
In the sequence model of the CPU, communication tasks are processed with priority 15. All program parts with priority > 15 (e.g. for Motion Control functions) are unaffected by communication.

Configured communication load
The CPU operating system provides the maximum specified percentage of total CPU processing power for communication tasks. The communication load can be set in STEP 7 for the CPUs of the S7 series. The default value when creating a CPU depends on the type and version of CPU used. If the processing power is not needed for communication, then the processing power is available to the operating system and the user program.
Communication is allocated the requisite computing time in 1 ms increments, with priority 15. At 50% communication load, 500 s of each 1 millisecond are used for communication.

Cycle and response times

30

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
The following formula may be used to estimate the extension of the cycle time by communication.
Figure 3-5 Formula: Impact of communication load
With a complete use of the communication load of 50% (default), the following value results:
Figure 3-6 Extension of cycle time due to communication load
The actual cycle time is up to twice as long as the cycle time without communication when you use the default communication load.
Dependency of maximum cycle time on the configured communication load The chart shows the nonlinear relationship between maximum cycle time and configured communication load with a cycle time without communication of 10 ms. In the example, there are no OBs with a priority > 1.

 CPUs 1516T(F)-3 PN/DP, 1517(F)-3 PN/DP, CPU 1517T(F)-3 PN/DP, CPU 1518(F)-4 PN/DP,
1518(F)-4 PN/DP MFP: The (minimum) communication load that can be set is 5%.
Figure 3-7 Maximum cycle time depending on the configured communication load

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

31

Cyclic program execution 3.2 Cycle time
Reducing the cycle time with a lower communication load You can reduce the setting for the communication load in the hardware configuration. If you set a communication load of 20% instead of 50%, for example, the cycle time extension due to the communication is reduced from a factor of 2 to 1.25.
Effect on the actual cycle time Communication is only one cause of extension of the cycle time. All configured events that extend the cycle time (e.g. hardware interrupts) mean that more asynchronous events can occur within a cycle. These asynchronous events further extend the cyclic program. The extension depends on the number of events that occur and are processed in the cycle.
Note Checking parameter changes · Check the effects of a value change on the "Cycle load due to communication" parameter
during system operation. You can use the "RT_INFO" instruction to determine which portions of runtime are used for communication and the user program. · Take the communication load into consideration when setting the maximum cycle time to prevent time errors (for example, exceeding the cycle time within a cycle) from occurring.
Effect of load on the actual cycle time The following examples show how the cycle time increases depending on the load. Example 1 Example 1 shows an OB 1 with a runtime of 100 ms. The runtime of OB 1 is neither interrupted by communication load nor by higher-priority OBs.
Figure 3-8 Cycle time without interruptions

Cycle and response times

32

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Example 2 Example 2 shows that the runtime of OB 1 increases by a factor of 2 to 200 ms with a communication load of 50%.
Figure 3-9 Cycle time with communication
Example 3 In example 3, OB 1 is interrupted every 20 ms by a cyclic higher-priority OB 30 (orange) with a runtime of 5 ms. The cycle time is extended to 135 ms by the higher-priority OB.
Figure 3-10 Cycle time with higher-priority OB
Example 4 In example 4, OB 1 is also interrupted by an OB 30 with priority 13. In addition, OB 1 and OB 30 are interrupted by communication tasks (priority 15). The cycle time increases to 400 ms.
Figure 3-11 Cycle time with higher-priority OB and communication load

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

33

Cyclic program execution 3.2 Cycle time
Example 5 In example 5, OB 1 is also interrupted by an OB 30 with priority 17. In addition, OB 1 is interrupted by communication tasks. Because the priority of OB 30 (priority 17) is higher than the priority of the communication tasks (priority 15), the interrupt points differ from example 4. The communication tasks suppressed by OB 30 are made up for within specific limits. Communication therefore completely suppresses the cyclic program within this time, 5 ms in the example. The cycle time increases to 400 ms, just like in example 4.
Figure 3-12 Cycle time with higher-priority OB and communication load
Cycle time curve for low and high loads The y-axis of the following diagram indicates the cycle time in %. The value 100% stands for a cycle time of the CPU without higher-priority OBs and without communication. The x-axis indicates the load in % which is caused by higher priority OBs.
The blue curve  of the diagram shows the course of the cycle time without communication load. The red curve  shows the course of the cycle time with maximum communication
and a parameterized communication load of 50%.

 Cycle time without communication load  Cycle time with maximum communication
Figure 3-13 Cycle time for low and high loads

Cycle and response times

34

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
The course of the two curves shows the extent to which the communication load and the load from the higher-priority OBs influence the cycle time. The longer the cycle time, the more the interruptions of OB 1 caused by higher-priority OBs and communication increase. If both the base load and the communication load are at 50%, no computing capacity remains for the cyclic program and a time error occurs.
Note Parameter assignment of the communication load When the load in higher-priority OBs is high, reduce the configurable communication load.
Note Parameter assignment of the communication load for the S7-1500R/H redundant system Due to the synchronization of data between primary CPU and backup CPU, the S7-1500R/H redundant system is subject to an additional synchronization load. Therefore, choose a lower value for the communication load than for a non-redundant system. Additional information on the particular features of the CPUs of the S7-1500R/H redundant system is available in the section Cycle and response times of the S7-1500R/H redundant system (Page 56).

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

35

Cyclic program execution 3.2 Cycle time
Display of program and communication load In the web server, you can find information on the current program/communication load and cycle time of your user program on the "Diagnostics > Runtime Information" web page.

Figure 3-14 Graphical display of program and communication load

Cycle and response times

36

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Program/communication load With the "Value refresh" function, you update the data displayed in the bar charts:  At intervals of 1 second  Automatic (as configured in STEP 7) With the "Measurement" function, you can decide which measurement the bar charts display. You can choose between:  The current measurement  The measurement of the longest cycle time
Figure 3-15 Program/communication load
The legend of the program/communication load shows information on the following values, highlighted in color:  "Program load cyclic program OBs"
Required calculation time in percent within a cycle for program cycle OBs  "Program load high-priority OBs"
Required calculation time in percent within a cycle for higher-priority OBs  "Current communication load"
Required calculation time in percent for current communication tasks within a cycle  "Maximum permissible communication load"
The configured maximum communication load as a percentage  "No-load operation"
There is no program/communication load Note If you have configured a minimum cycle time, it can occur that no-load operation shows a high percent value even though the value of the cycle time is also high. The reason for this is that the loads are recorded as mathematical average of the last second, but the cycle time relates to the last cycle.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

37

Cyclic program execution 3.2 Cycle time
Figure 3-16 Color legend
If you click on a specific color, the selected color is highlighted in the chart. If you click on a highlighted color, you remove the highlighting. Measurement of load distribution and cycle time The "Measurement of load distribution and cycle time" bar chart shows the percentage of the calculation time within a cycle for the following values:  "Program load cyclic program OBs"  "Program load high-priority OBs"  "Current communication load"  "No-load operation" Prognosis of load distribution and cycle time The "Prognosis of load distribution and cycle time" bar chart predicts whether the CPU can process the user program with maximum communication load within the maximum cycle time.
Example 1:

Figure 3-17 Cycle time < 70% of the maximum cycle time

Cycle and response times

38

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Example 1 shows that the CPU can process the user program within the maximum cycle time of 150 ms when the maximum communication load of 38% is reached. The predicted cycle time is < 70% of the configured maximum cycle time. Example 2:
Figure 3-18 Cycle time  70% of the maximum cycle time
In example 2, the CPU can also process the user program with maximum communication load within the maximum cycle time. However, the predicted cycle time is already at 129 ms. If the predicted cycle time is  70% of the maximum cycle time, the chart outputs a warning.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

39

Cyclic program execution 3.2 Cycle time
Example 3:

Figure 3-19 Cycle time longer than maximum cycle time
Example 3 shows that the CPU can no longer process the user program within the maximum cycle time when the maximum communication load is reached. If the predicted cycle time is longer than the maximum cycle time, the chart outputs an error message.
If it is predicted that the maximum cycle time will be exceeded, use the following controller in order to reduce the maximum communication load.

Figure 3-20 Controller for setting the maximum communication load

Cycle and response times

40

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Note Setting the communication load The controller predicts the effects of the changed communication load on the cycle time. You configure the maximum communication load in STEP 7.
Note For non-measurable fluctuations in the user program, e.g. for future changes in the user program, plan a sufficiently low value for the maximum communication load.
Note Due to the different calculation basis of cycle time and load, a steady state of the system is the prerequisite for displaying reliable measured values.
Progression of program/communication load If your browser supports the display of SVG (Scalable Vector Graphics), the display in the "Runtime information" tab is expanded to show the progression of the program/communication load. With the line charts in the "Trend for program/communication load" area, you can track the progression of the following values:  "Program load cyclic program OBs"  "Program load high-priority OBs"  "Current communication load" With the "Number of recorded measuring points" option, you can choose between the last 20 to 1 000 measured values for the display of the measured values. For the trend on the x-axis, you can choose between "Time" (CPU time) and "Measuring points" by clicking on the desired unit.
Note If you have selected the "Time" unit on the x-axis, all measured values that are more than 24 hours old are deleted automatically.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

41

Cyclic program execution 3.2 Cycle time

3.2.2.4

Figure 3-21 Line chart
Special consideration when PROFINET IO communication is configured on the 2nd PROFINET interface (X2)
If you configure the PROFINET IO communication at the 2nd PROFINET interface (X2) on the following CPUs as of firmware version 2.0, an additional system load occurs:
 CPU 1515(F)-2 PN
 CPU 1515T(F)-2 PN
 CPU 1516(F)-3 PN/DP
 CPU 1516T(F)-3 PN/DP
 CPU 1513(F)pro-2 PN
 CPU 1516(F)pro-2 PN
This additional system load has priority 26 and extends the runtime of the program. The execution of synchronous cycle interrupts or hardware interrupts, for example, can be delayed as a result.
The additional system load depends on:
 Communication traffic at the 2nd PROFINET interface (X2) The communication traffic at the interface in frames per second causes communication load as well as system load. You cannot limit the communication traffic using the "Communication load" parameter.
 Number of IO devices which the CPU at the 2nd PROFINET interface (X2) updates within a millisecond
You determine the additional system load with the "RT_INFO" (read RUNTIME statistics) instruction at the Mode parameter with mode 10 or mode 20.

Cycle and response times

42

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.2 Cycle time
Reducing additional system load You reduce the communication load at the 2nd PROFINET interface, e.g. with:  Fewer connected HMI devices or slower update cycles on the HMI devices  Less or slower communication with other CPUs Increase the update times in STEP 7 for all IO devices that are assigned to the 2nd PROFINET interface (X2): 1. Select the "IO Communication" in the "Network view" of STEP 7. 2. Set the "Update mode" parameter to "Adjustable". 3. Select a higher value for the "Update time [ms]" parameter in the drop-down list. 4. Repeat this setting for the other IO devices.
Figure 3-22 Increasing update times

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

43

Cyclic program execution 3.3 Time-driven program execution in cyclic interrupts

3.3

Time-driven program execution in cyclic interrupts

With a cyclic interrupt you have the option of having a specific OB processed in a time interval. The time interval is independent of the execution time of the cyclic program. A priority from 2 to 24 can be selected for the cyclic interrupt. This makes the priority of cyclic interrupts higher than the priority of the cyclic program. A cyclic interrupt increases the execution time of the cyclic program.

In STEP 7 the organization blocks OB 30 to OB 38 are intended for processing cyclic interrupts. You can create additional cyclic interrupts starting with organization block OB 123. The number of available organization blocks depends on the CPU used.

Cyclic interrupt

A cyclic interrupt is an interrupt initiated according to a defined cycle that causes a cyclic interrupt OB to be processed. A cyclic interrupt OB is assigned to the "Cyclic interrupt" event class.

Cycle of a cyclic interrupt
The cycle of a cyclic interrupt is defined as the time from the call of a cyclic interrupt OB to the next call of a cyclic interrupt OB.
The following figure shows an example of the cycle of a cyclic interrupt.

Figure 3-23 Call interval of a cyclic interrupt

Cycle and response times

44

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.3 Time-driven program execution in cyclic interrupts

Accuracy of a cyclic interrupt
Even if a cyclic interrupt is not delayed by a higher-priority OB or communication activities, the accuracy with which it is started is nevertheless subject to system-dependent fluctuations.
The following table shows the accuracy with which a cyclic interrupt is triggered:

Table 3- 6 Accuracy of cyclic interrupts

Cyclic interrupt

1511(F)-1 PN 1511T(F)-1 PN 1511C-1 PN 1512C-1 PN 1513(F)-1 PN ±90 s

S7-1500

1515(F)-2 PN 1515T(F)-2 PN

1517(F)-3 PN/DP 1517T(F)-3 PN/DP

1516(F)-3 PN/DP

1516T(F)-3 PN/DP

±80 s

±30 s

1518(F)-4 PN/DP 1518(F)-4 PN/DP MFP
±25 s

Cyclic interrupt

1513R-1 PN ±390 s

S7-1500R/H* in RUN-Solo system state

1515R-2 PN ±300 s

1517H-3 PN ±90 s

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Cyclic interrupt

1510SP(F)-1 PN ±90 s

ET 200SP 1512SP(F)-1 PN ±90 s

1515SP(F)-PC ±80 s

Cyclic interrupt

1513pro(F)-2 PN ±90 s

ET 200pro 1516pro(F)-2 PN ±80 s

Note Scope of validity
Please note that the accuracy data for the cyclic interrupt also applies to all other higherpriority execution levels/OBs.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

45

Cyclic program execution 3.4 Response time for cyclic and time-driven program execution
Processing sequence of cyclic interrupts
Note With several cyclic interrupt OBs with identical parameterization, the processing sequence of the cyclic interrupt OBs cannot be predicted. If you want to ensure a defined execution sequence of cyclic interrupt OBs with the same cycle time, configure a different phase offset in each case.
For information on how to assign parameters for cyclic interrupt OBs, refer to the STEP 7 online help.

3.4

Response time for cyclic and time-driven program execution

Introduction

In this section you learn:  How the response time is composed  How to calculate the response time

Definition

The response time in the case of cyclic or time-controlled program execution is the time between the detection of an input signal and the change of a connected output signal.

Cycle and response times

46

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.4 Response time for cyclic and time-driven program execution
Fluctuation in the response time of the CPU The actual response time of the CPU fluctuates between one and two cycles for cyclic program execution and between one and two cyclic interrupt cycles for time-controlled program execution. You should always assume the longest response time when configuring your system. The following figure shows the shortest and longest response times of the CPU to an event.

Factors

Figure 3-24 Shortest and longest response times of the CPU
To determine the process response time, you must take account of the following factors in addition to the CPU response time described above:  Delay of the inputs and outputs at the I/O module  Switching times of the sensors and actuators used  Update times for PROFINET IO or DP cycle times on PROFIBUS DP; update time of the
backplane bus for ET 200SP CPUs
Note Backplane bus of the S7-1500 CPUs The update time of the backplane bus of the S7-1500 CPUs can be ignored here.

Delay at the inputs and outputs of the modules The delay and cycle times can be found in the technical specifications of the I/O modules.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

47

Cyclic program execution 3.4 Response time for cyclic and time-driven program execution
Update times for PROFINET IO and DP cycle times on PROFIBUS DP When distributed I/O is used, the maximum response time is additionally extended by the bus transmission times of PROFIBUS or PROFINET. These bus transmission times occur during both the reading and output of the process image partitions. The bus transmission times correspond to the bus update cycle of the distributed device. PROFINET IO If you use STEP 7 to configure your PROFINET IO system, STEP 7 calculates the update time. To display the update time, follow these steps:  Select the PROFINET interface of the I/O module.  In the General tab, select "Advanced options > Real time settings > IO cycle". The update time is displayed in the "Update time" field and can be set for each IO device. PROFIBUS DP If you use STEP 7 to configure your PROFIBUS DP master system, STEP 7 calculates the DP cycle time. To display the DP cycle time, follow these steps:  Select the PROFIBUS subnet in the network view.  In the General tab of the Inspector window, navigate to the Bus parameters. The DP cycle time is displayed in the "Parameters" field at "Typical Ttr". The following figure illustrates the additional bus runtimes using distributed I/O.
Figure 3-25 Additional bus runtimes with distributed I/O
A further optimization of the response times is achieved by using isochronous mode.

Cycle and response times

48

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.4 Response time for cyclic and time-driven program execution

Update time of the backplane bus for ET 200SP CPUs
The following table shows the central (typical) update times of the backplane bus for the ET 200SP CPUs.

Table 3- 7 Update time of the ET 200SP CPUs

Update time of the CPU

ET 200SP

Update time for central I/O

1510SP(F)-1 PN

1512SP(F)-1 PN

1515SP(F)-PC

250 s to 1 ms, depending on number and type of central I/O modules1

1 The duration of the update time depends on the number of the I/O modules and their type (ST, HF, HS). The update time is set at 1 ms for a max. central I/O configuration with standard I/O modules. You can reduce the update time down to 250 s, for example, by using HF I/O modules and by reducing the number of modules.

The table below is an orientation guide. It shows the approximate relationship between the number of ET 200SP I/O modules and the bus cycle that is used. As an example, 8 bytes of I/O data per I/O module are assumed in the table.

Number of ET 200SP I/O modules 8 16 24 32 40 48 56 64

Input data (bytes) 64 128 192 256 320 384 448 512

Output data (bytes) 64 128 192 256 320 384 448 512

Used bus cycle (s) 250 250
281.25 312.5 343.75 375 406.25 437.5

For I/O modules with more than 32 bytes of I/O data, the bus cycle is calculated with an I/O module of 32 bytes. In this case the I/O module requires multiple bus cycles to update its I/O data.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

49

Cyclic program execution 3.4 Response time for cyclic and time-driven program execution

Reference

The following links provide additional information:
 Application example for determining the response time for PROFINET (http://support.automation.siemens.com/WW/view/en/21869080)
 Transmission times and isochronous mode in function manual PROFINET with STEP 7 V15 (http://support.automation.siemens.com/WW/view/en/49948856); see also the section "Tips on assembly"
 Transmission times and isochronous mode in function manual PROFIBUS with STEP 7 V15 (http://support.automation.siemens.com/WW/view/en/59193579); see also the section "Network settings"
 Delays at the input or output of the modules can be found in the manual for the respective device.
 Information on device-internal delays can be found in the manuals for the ET 200MP and ET 200SP distributed I/O systems.

Cycle and response times

50

Function Manual, 11/2019, A5E03461504-AE

Cyclic program execution 3.5 Summary of response time with cyclic and time-controlled program execution

3.5

Summary of response time with cyclic and time-controlled program

execution

Estimation of the shortest and longest response time The following formulas may be used to estimate the shortest and longest response time:
Estimation of the shortest response time The shortest response time is the sum of:

1 x delay of the input/output module for inputs + 1 x (update PROFINET IO or PROFIBUS DP)*; (update time of the backplane bus for the
ET 200SP CPUs) + 1 x transfer time of the process image input + 1 x execution of the user program + 1 x transfer time of the process image output + 1 x (update PROFINET IO or PROFIBUS DP)*; (update time of the backplane bus for the
ET 200SP CPUs) + 1 x delay of the input/output module for outputs _________________________________________________________________________________ = Shortest response time
* Time is dependent on the configuration and the extent of the network.
The shortest response time is equivalent to the sum of the cycle time plus the input and output delay times.
Estimation of the longest response time
The longest response time is the sum of:

1 x delay of the input/output module for inputs + 2 x (update PROFINET IO or PROFIBUS DP)*; (update time of the backplane bus for the
ET 200SP CPUs) + 2 x transfer time of the process image input + 2 x execution of the user program + 2 x transfer time of the process image output + 2 x (update PROFINET IO or PROFIBUS DP)*; (update time of the backplane bus for the
ET 200SP CPUs) + 1 x delay of the input/output module for outputs _________________________________________________________________________________ = Longest response time
* Time is dependent on the configuration and the extent of the network.
The longest response time is equivalent to the sum of twice the cycle time plus the delay times of the inputs and outputs. Twice the update time for PROFINET IO or twice the DP cycle time on PROFIBUS DP is added to the longest response time.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

51

Event-driven program execution

4

4.1

Response time of the CPUs when program execution is

event-controlled

Introduction

Hardware interrupts are used to detect events in the process in the user program and to react to them with an appropriate program. In STEP 7, the organization blocks OB 40 to OB 47 are intended for processing hardware alarms. You can create additional hardware interrupts starting with organization block OB 123. The number of available organization blocks depends on the CPU used.

Hardware interrupt
A hardware interrupt is an interrupt that occurs during the running program execution, due to an interrupt-triggering process event. The operating system calls the assigned interrupt OB; as a result, the execution of the program cycle or of lower priority program parts is interrupted. A hardware interrupt OB is assigned to the "Hardware interrupt" event class.

Interrupt response times of the CPUs for hardware interrupts
The interrupt response time starts with the occurrence of a hardware interrupt event in the CPU. The interrupt response time ends with the start of processing of the assigned hardware interrupt OB.
This time is subject to system-inherent fluctuations, and this is expressed using a minimum and maximum interrupt response time.

Cycle and response times

52

Function Manual, 11/2019, A5E03461504-AE

Event-driven program execution 4.1 Response time of the CPUs when program execution is event-controlled

The following table contains the length of the typical response times of the CPUs for hardware interrupts.

Table 4- 1 Response times of the CPUs for hardware interrupts

Interrupt re- Min. sponse times Max.

1511(F)-1 PN 1511T(F)-1 PN 1511C-1 PN 1512C-1 PN 1513(F)-1 PN 100 s 400 s

S7-1500

1515(F)-2 PN

1517(F)-3 PN/DP

1515T(F)-2 PN

1517T(F)-3 PN/DP

1516(F)-3 PN/DP 1516T(F)-3 PN/DP

90 s 360 s

30 s 120 s

1518(F)-4 PN/DP 1518(F)-4 PN/DP MFP
20 s 90 s

Interrupt re- Min. sponse times Max.

1513R-1 PN 100 s 400 s

S7-1500R/H* in RUN-Solo system state

1515R-2 PN

CPU 1517H-3 PN

90 s 360 s

30 s 120 s

* Additional information about cycle and response times of R/H CPUs is available in the section "Cycle and response times of the S7-1500R/H redundant system"

Interrupt re- Min. sponse times Max.

1510SP(F)-1 PN 100 s 400 s

ET 200SP 1512SP(F)-1 PN 100 s 400 s

1515SP(F)-PC 90 s 360 s

Interrupt response times

ET 200pro

Min. Max.

1513pro(F)-2 PN 100 s 400 s

1516pro(F)-2 PN

90 s 360 s

The specified times are extended:

 If higher-priority interrupts are queued for execution

 If the hardware interrupt OB is assigned to a process image partition

You can find these times in the tables in the section "Extension due to nesting of higherpriority OBs and/or interrupts" in the chapter User program execution time (Page 26).

If you need fast interrupt response times, do not assign a process image partition to the hardware interrupt OB and use direct access in the hardware interrupt OB instead.

You can find additional information on determining response times for PROFINET in the application example with the entry ID 21869080 on the Service&Support (http://support.automation.siemens.com/WW/view/en/21869080) Internet page.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

53

Event-driven program execution 4.2 Process response time when program execution is event-driven
Influence of input modules on the interrupt response times of hardware interrupts Digital input modules: Interrupt response time of hardware interrupts = internal interrupt processing time + input delay (see section Technical specifications in the relevant manual) Analog input modules: Interrupt response time of hardware interrupts = internal interrupt processing time + conversion time (see section Technical specifications in the relevant manual)
Impact of communication on interrupts Communication tasks are always processed by the CPU with priority 15. If you do not want the interrupt execution to be delayed or interrupted by communication, configure the interrupt execution with priority > 15. The default setting for interrupt execution is priority 16.
Special consideration when PROFINET IO communication is configured on the 2nd PROFINET interface (X2)
Additional information on this is available in section Special consideration when PROFINET IO communication is configured on the 2nd PROFINET interface (X2) (Page 42).

4.2

Process response time when program execution is event-driven

When program execution is event-driven, the process response time is determined by the following:

 Delay times of the input and output modules used

 Update times for PROFIBUS/PROFINET for distributed modules; update time of the backplane bus for ET 200SP CPUs

 Interrupt response time of CPU

 Runtimes of the interrupt OB including update of the process image partition

Cycle and response times

54

Function Manual, 11/2019, A5E03461504-AE

Event-driven program execution 4.2 Process response time when program execution is event-driven
The following figure shows the individual execution steps for event-driven program execution.

Figure 4-1 Schematic representation of event-driven program execution

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

55

Cycle and response times of the S7-1500R/H redundant system

5

5.1

Introduction

CPUs of the S7-1500R/H redundant system are designed as being redundant. The goal of the redundant configuration is to avoid production downtimes. When a CPU fails, the other CPU maintains control over the process.

Compared to non-redundant CPUs, the CPUs of the S7-1500R/H redundant system have the following special features:

 Longer cycle and response times

 Specific operating and system states

 Additional load and delays through synchronization

Contents of this section
This section describes the effects of the mode of operation of the S7-1500R/H redundant system on the cycle and response times.
It also describes how to estimate and control the cycle response times of the CPUs. This prevents excessive cycle times.
Note Classification of this chapter
The statements in the previous chapters describe the response of an individual CPU.
The section "Cycle and response times of the S7-1500R/H redundant system" supplements the information of the previous sections with information on the S7-1500R/H redundant system.

Cycle and response times

56

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.2 Maximum cycle time and time errors

5.2

Maximum cycle time and time errors

Maximum cycle time
As with non-redundant CPUs, you can parameterize a high limit of the cyclic program by setting the maximum cycle time.
The cycle time of redundant CPUs is usually longer as compared to non-redundant CPUs.
The factor by which the cycle time for redundant CPUs is higher than that for non-redundant CPUs depends very strongly on your specific automation task.
Note Maximum cycle time in SYNCUP system state
The length of the parameterized maximum cycle time also affects the SYNCUP system state.
If the following condition is fulfilled during the SYNCUP, the system initiates a transition to RUN-Redundant: The actual cycle time is  80% of the maximum cycle time over several cycles.
More information on this is available in section Influences on the cycle time in SYNCUP system state (Page 59). Maximum cycle time in RUN-Redundant system state
On the failure of one of the two CPUs, the cycle time also contains a dead time of up to 300 ms for R-CPUs and up to 50 ms for the H-CPU. You must schedule this time as cycle time reserve in case of failure of one of the two CPUs. Therefore, ensure that the longest cycle time plus this dead time is < 60% of the configured maximum cycle time in RUNRedundant system state. By doing so, you prevent the parameterized maximum cycle time from being exceeded in case of load fluctuations and delays due to synchronization.

Time error

As with non-redundant CPUs, you can specify the response to a time error for the CPUs of the S7-1500R/H redundant system. In RUN-Solo system state, the redundant CPUs behave like non-redundant CPUs when the maximum cycle time is exceeded (see section Cycle time (Page 20)).
In the SYNCUP and RUN-Redundant system states the redundant CPUs behave as follows:

Table 5- 1 Response of the S7-1500R/H redundant system when cycle time is exceeded, without OB 80

System state
SYNCUP RUN-Redundant

1st time cycle time is exceeded

Primary CPU RUN 1) RUN

Backup CPU STOP 1) STOP

2nd time cycle time is exceeded

Primary CPU

Backup CPU

STOP STOP

STOP STOP

1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the restart of the backup CPU, the primary CPU also goes into STOP mode and any running SYNCUP is aborted.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

57

Cycle and response times of the S7-1500R/H redundant system 5.2 Maximum cycle time and time errors

Table 5- 2 Response of S7-1500R/H redundant system when cycle time is exceeded with OB 80

System state
SYNCUP RUN-
Redundant

1st time cycle time is exceeded

Primary CPU
RUN-Syncup 1)
RUNRedundant

Backup CPU
SYNCUP 1)
RUNRedundant

2nd time cycle time is exceeded

Primary CPU RUN RUN

Backup CPU STOP STOP

3rd time cycle time is exceeded

Primary CPU STOP STOP

Backup CPU STOP STOP

1) If the time error occurs before the time of creation of the snapshot of the work memory contents, for example during the restart of the backup CPU, the primary CPU also goes into STOP mode and any running SYNCUP is aborted.

Note System state change after STOP with OB 80
The primary CPU also switches to STOP after the maximum cycle time has been exceeded three times in the same cycle.
Ensure that the actual maximum cycle time is < 60% of the parameterized maximum cycle time.

Switchover of the backup CPU to STOP operating state when the maximum cycle time is exceeded
A switchover of the backup CPU to STOP operating state reduces the synchronization load and relieves the load on the primary CPU.

Cycle and response times

58

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system

5.3

Influences on the cycle time of the S7-1500R/H redundant system

5.3.1

Influences on the cycle time in RUN-Solo system state

RUN-Solo system state
In RUN-Solo system state, the primary CPU is in RUN operating state. The primary CPU executes the cyclic, time- and interrupt-controlled program execution on its own. The backup CPU is in STOP operating state, is switched off or defective.

Influence on the cycle time
In RUN-Solo system state, the primary CPU behaves exactly the same as a standard CPU (non-redundant CPU) with regard to cycle time monitoring. Additional information on this is available in section "Cycle time (Page 20)".

5.3.2

Influences on the cycle time in SYNCUP system state

SYNCUP system state
In SYNCUP system state, the primary CPU is in RUN-Syncup operating state. The backup CPU is in SYNCUP operating state. The task of the SYNCUP system state is to synchronize the data of both CPUs so that the CPUs can subsequently work redundantly.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

59

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Influence on the cycle time The figure below shows the chronological behavior of primary CPU and backup CPU during the SYNCUP system state.

 Synchronization of data from the primary CPU to the backup CPU  Copying the load memory and terminating the asynchronous instructions  Snapshot of the work memory contents  Transfer of the work memory contents to the backup CPU  Backup CPU makes up the time lag to the primary CPU caused by the synchronization of data
Figure 5-1 Effects of the SYNCUP on the cycle times of the CPUs
In SYNCUP system state, all relevant data is synchronized from the primary CPU to the backup CPU. At the end of SYNCUP, the backup CPU makes up the time lag to the primary CPU caused by the synchronization.
CAUTION
SYNCUP system state · The synchronization of data, in particular the snapshot of the work memory contents,
extends the cycle time. In addition, most test and commissioning functions cannot be executed during SYNCUP. · During SYNCUP, hardware interrupts and diagnostic interrupts are processed with a very significant delay. · The cycle time increases greatly during the transition from SYNCUP system state to RUN-Redundant.
Therefore, only execute the SYNCUP during uncritical process states.
 Synchronization of data from the primary CPU to the backup CPU
During this phase all relevant contents of the load memory, work memory, and system memory of the primary CPU are synchronized to the backup CPU.

Cycle and response times

60

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
 Copying the load memory and terminating the asynchronous instructions
The primary CPU copies parts of its load memory from its SIMATIC memory card to the SIMATIC memory card of the backup CPU. The backup CPU restarts and automatically switches to SYNCUP operating state. The backup CPU copies the transferred load memory contents to its work memory. Data blocks, process image, etc. are immediately overwritten with current data from the primary CPU.
 Snapshot of the work memory contents
The primary CPU saves a consistent snapshot of its work memory contents at the next cycle control point.
 Transfer of work memory contents to the backup CPU
During this phase the consistent snapshot is transferred from the primary CPU to the backup CPU. The transfer of the work memory contents extends the cycle time. The time required for the transfer of the work memory contents depends on the performance capability of the CPU and the amount of work memory data.
 Backup CPU makes up the time lag to the primary CPU
During this phase the backup CPU makes up the time lag in program execution to the primary CPU. As in redundant mode, events are already synchronized during this phase as needed.
Note No switchover possible during SYNCUP If a fault occurs in the primary CPU during SYNCUP, no switchover to the backup CPU is possible. The SYNCUP is canceled and the backup CPU returns to STOP operating state.
Switchover from SYNCUP to RUN-Redundant The system checks continuously which cycle time would result from a change to the RUNRedundant system state. If this cycle time would be  80% of the maximum cycle time over multiple cycles, the transition is initiated.
Note Determination of the cycle time during the SYNCUP You can track the progress of the SYNCUP on the display of the primary CPU and backup CPU. At each cycle control point the backup CPU sends a status message on its program progress to the primary CPU. The display of the primary CPU indicates the duration of the time lag of the backup CPU. In addition to viewing the progress in the displays, the progress of the SYNCUP can also be read out using the "RT_INFO" instruction.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

61

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Reasons for cancellation of the SYNCUP Possible causes for the cancellation of the SYNCUP are:  The load of the user program or the load on the redundancy connections between primary and backup CPU is too high  The maximum cycle time of the primary CPU was exceeded An overview of all reasons for the cancellation of the SYNCUP and remedial measures is available in the system manual S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833).
Disable SYNCUP To avoid the described effects of the SYNCUP on the cycle times during critical process states, use the instruction "RH_CTRL". The "RH_CTRL" instruction can be used to disable the SYNCUP system state for the S7-1500R/H redundant system. If the disable is no longer required, the "RH_CTRL" instruction can be used to enable the SYNCUP system state once again. More information on the "RH_CTRL" instruction is available in the system manual S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833).
Minimum cycle time It is often necessary to set a longer minimum cycle time for the CPUs of the S7-1500R/H redundant system than for those of the non-redundant CPUs. Recommendation: Select the minimum cycle time so that the cyclic program does not have to be executed more frequently than your process requires. A longer minimum cycle time that has been adapted to your process optimizes the entire system. The computing power that is available per cycle by extending the minimum cycle time is then available for system tasks such as communication.
Note Too low cycle times Cycle times that are too low can result in an excessive synchronization load and thus terminate the SYNCUP.
Parameter assignment of the communication load
Note An increased synchronization load occurs in the SYNCUP system state. Because this synchronization load places a load on the cycle in addition to the communication, it is recommended to reduce the communication load to  30%.

Cycle and response times

62

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system

5.3.3

Influences on the cycle time in RUN-Redundant system state

RUN-Redundant system state
In RUN-Redundant system state, the primary CPU guides the process. The primary CPU continuously synchronizes itself with the backup CPU. In the event of a failure of the primary CPU, the backup CPU adopts its role and thus control over the process.

Cycle time without interruption of the cyclic program
In RUN-Redundant system state, the backup CPU has a time lag compared to the primary CPU. This time lag results from the time required for event-controlled synchronization of data from the primary CPU to the backup CPU.
The following figure shows the phases which the CPUs run through without an interruption of the cyclic program.

 Cycle time  Cycle of the backup CPU  Time lag  Cycle end and start of the next cycle (cycle control point)
Figure 5-2 Cycle time without interruption of the cyclic program
The cycle time  includes the cycle of the backup CPU  and the time lag  of the
backup CPU compared to the primary CPU. The time lag results from the time required for the synchronization of the data between primary CPU and backup CPU. The synchronization between primary CPU and backup CPU occurs automatically if required. The more data has to be synchronized between the CPUs during a cycle, the greater the time lag. The program cycle ends as soon as the backup CPU has reached the end of its cyclic program. The primary CPU starts the next cycle as soon as the backup CPU reports the cycle end to the
primary CPU .

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

63

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Extension of the cycle As with non-redundant CPUs, an occurring event and the associated OB can extend the cycle. Events can occur both during the execution of the cyclic program and during the time lag. In the following example the CPU must process a higher-priority OB (OB 30 with priority 7), while the primary CPU waits for the end of the cycle of the backup CPU. The figure below shows the phases which the CPUs run through in such a case.

 Cycle time  Cycle of the backup CPU  Time lag  Cycle end and start of the next cycle (cycle control point)
Figure 5-3 Processing of a higher-priority OB
64

Cycle and response times Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Execution of the cyclic program (CP with priority 1) is complete. While the primary CPU waits for the end of the cycle of the backup CPU, a higher priority OB (OB 30 with priority 7) starts. The primary CPU starts the next cycle as soon as the following conditions have been fulfilled:  The primary CPU has received the message from the backup CPU that the backup CPU
has finished processing the cyclic program.  The primary CPU has processed OB 30 and updated PIPQ1.
Note Due to the change of the run level and the synchronization, interruptions of the program cycle by higher-priority OBs result in a higher load. Interruptions of the program cycle extend the cycle time.

Differences between the synchronization times
The available bandwidth has a significant impact on the synchronization time.
With the R-CPUs both the synchronization of data and the synchronization of communication tasks operate over the PROFINET ring. 25% of the bandwidth is reserved for the synchronization.
With the H-CPU, synchronization works independently of the PROFINET ring over fiber optic cables. The full bandwidth on the PROFINET cable is available for PROFINET IO communication.
The table below provides an overview of performance features of R-CPUs and H-CPU.

Table 5- 3

Performance features of S7-1500R and S7-1500H

S7-1500R

CPU 1513R-1 PN

CPU 1515R-2 PN

S7-1500H CPU 1517H-3 PN

Performance

· Data transfer rate of 100 Mbps (for synchronization and communication)

· Data work memory: max. · Data work memory:

1.5 MB

max. 3 MB

· Code work memory: max. 300 KB

· Code work memory: max. 500 KB

· Significantly greater performance than S7-1500R due to ­ Separate redundancy connections over fiber-optic cables ­ Greater computing power
· Transmission rate of 1 Gbps (for the synchronization)
· Data work memory: max. 8 MB
· Code work memory: max. 2 MB

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

65

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system

Hardware

S7-1500R

CPU 1513R-1 PN

CPU 1515R-2 PN

S7-1500H CPU 1517H-3 PN

· The CPUs are identical in design with the respective · The CPUs each have two optical inter-

S7-1500 standard versions.

faces.

· The synchronization of the CPUs takes place over the · The synchronization of the CPUs

PROFINET ring.

operates independently of the

· The H-Sync-Forwarding function is recommended for all devices in the PROFINET ring.

PROFINET ring over fiber-optic cables.

· Part of the bandwidth on the PROFINET cable is

· The full bandwidth on the PROFINET

used to synchronize the CPUs. Less bandwidth is

cable is available for PROFINET IO

therefore available for PROFINET IO communication.

communication.

Technical specifications
More information about the technical specifications is available in the manuals of the specific CPUs.

5.3.4

Influences on the cycle time when a CPU fails
If one of the two CPUs fails during redundant operation, the other CPU controls the process alone. The system state then changes from RUN-Redundant to RUN-Solo. The CPU continues executing the user program in RUN operating state.
Note Dead time in case of a CPU failure On the failure of a CPU, the cycle time also contains a dead time of up to 300 ms for R-CPUs and up to 50 ms for the H-CPU. You must schedule this time as cycle time reserve for a CPU failure. To avoid excessive cycle times after a CPU failure, further increase the maximum cycle time by this value.
Note Change of the system state from RUN-Redundant to Run-Solo by the user If you deliberately trigger a change of the system state, e.g. by switching the backup CPU to STOP via the display, this will also extend the cycle time. However, the cycle time will not increase to the same extent as with switchover of the CPUs in the event of an error (failure of one of the CPUs).
Information on the causes for the failure of a CPU is available in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

Cycle and response times

66

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Failure of the primary CPU The figure below shows the impact of the failure of the primary CPU on the cycle time.

 Cycle time  Failure of the primary CPU  Backup CPU continues processing the program  Backup CPU no longer receives synchronization telegrams  Backup CPU waits for the monitoring time to expire  End of the monitoring time, switchover time and system state transition  Cycle time of the new primary CPU in RUN operating state
Figure 5-4 Impact of the failure of the primary CPU on the cycle time
The example shows the failure of the primary CPU  while it is processing the cyclic
program. The primary CPU no longer sends any synchronization telegrams to the backup
CPU. During the period , the backup CPU continues operating only on the basis of the synchronization data transferred before the failure of the primary CPU. At , the backup
CPU has reached the point in the program where the primary CPU stopped sending
synchronization telegrams. During the phase , the backup CPU waits to see whether data
will again be sent from the primary CPU after all. Because no synchronization data is transferred until the monitoring time has expired, the backup CPU becomes the new primary
CPU at point . The redundant system switches from RUN-Redundant system state to
RUN-Solo system state.
The cycle time  extends from the time processing of the cyclic program is started in RUN-
Redundant to the time when processing of the cyclic program ends in RUN-Solo.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

67

Cycle and response times of the S7-1500R/H redundant system 5.3 Influences on the cycle time of the S7-1500R/H redundant system
Because data can no longer be synchronized in the RUN-Solo system state, the cycle
time  is shorter than the cycle time .
Note Monitoring time The monitoring time is an internal time with fixed duration. You cannot assign parameters for the internal time. The monitoring time starts as soon as the synchronization data arrives at the backup CPU. If no synchronization data is received from the primary CPU, the system automatically performs a system state change after the monitoring time has expired.
Failure of the backup CPU The figure below shows the impact of the failure of the backup CPU on the cycle time.

 Cycle time  Failure of the backup CPU  Expiration of the monitoring time  System status transition  Cycle time of the primary CPU in RUN-Solo operating state
Figure 5-5 Impact of the failure of the backup CPU on the cycle time
The backup CPU fails before processing of the cyclic program has ended . The primary
CPU detects the failure of the backup CPU because no synchronization data has been
received until the monitoring time  has expired. The primary CPU terminates the
synchronization with the backup CPU. The redundant system switches from RUN-
Redundant system state to RUN-Solo system state .
Because no more data can be synchronized in RUN operating state, the cycle time  is shorter than the cycle time .

Cycle and response times

68

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.4 Response time of R/H CPUs

5.4

Response time of R/H CPUs

Relationship between the cycle time and response time The cycle time of the system also forms the basis for its response time. The response time depends, among other things, on the cycle time of the individual program cycles.
Fluctuation of the response time The actual response time fluctuates between one and two cycles during cyclic program execution. The actual response time fluctuates between one and two cyclic interrupt cycles for time-controlled program execution. You should always assume the longest response time when configuring your system. In the figure below the process image is updated immediately after the change of the encoder signal. The output can therefore respond to the signal change after a cycle has ended.

 Synchronization of the encoder signal change in the backup CPU  Time lag of the backup CPU to the primary CPU  Synchronization of the output signal change in the backup CPU  Time lag of the backup CPU to the primary CPU until actual output of the signal change to the IO devices in the
PROFINET ring
Figure 5-6 Shortest response time

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

69

Cycle and response times of the S7-1500R/H redundant system 5.4 Response time of R/H CPUs
In the figure below, the process image has already been updated by the time of the signal change. It therefore takes one cycle until the system detects the change and sets the input in the process image. The output signal is changed after an additional cycle.

 Synchronization of the encoder signal change in the backup CPU  Time lag of the backup CPU to the primary CPU  Synchronization of the output signal change in the backup CPU  Time lag of the backup CPU to the primary CPU until actual output of the signal change to the IO devices in the
PROFINET ring Figure 5-7 Longest response time
The cycle times include the time lag. The time lag of the backup CPU to the primary CPU depends on the synchronization load. The synchronization load results from the data to be synchronized in the user program and in the communication.
Note Effect of the time lag The synchronization and transfer of the changes requires computing time. The time lag therefore affects both CPUs (from the primary CPU to the backup CPU and from the backup CPU to the primary CPU). The slower the CPU and the slower and longer the synchronization connection, the greater the time lag.
Note Response time when downloading a modified user program into the R/H CPUs in the RUN-Redundant system state During the download process in the RUN-Redundant system state, the response time of the system is restricted compared with the normal redundant mode. The more changes the user program contains, the higher the impact on the response time.

Cycle and response times

70

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.4 Response time of R/H CPUs

Determination of cycle and response times
At the end of the cyclic program, the primary CPU waits until the backup CPU too has acknowledged the end of the cyclic program. The cycle time of the primary CPU therefore also includes the time lag of the backup CPU. The cycle is extended by the time lag.
Advantages
The fact that the cycle time includes the time lag of the backup CPU to the primary CPU offers the following advantages:
 By monitoring the cycle time in STEP 7, in the HMI or in the user program after SYNCUP, it is possible to determine the cycle time in the event of a failure of the primary CPU.
 During commissioning it is not necessary to perform complicated tests to determine whether the required response time can still be complied with if a CPU fails.
 During commissioning and ongoing operation you can estimate whether your automation task can meet the response times required for the process.
The same functions as those for the non-redundant CPUs are available for determining the cycle and response times:

Table 5- 4 Functions for determining the cycle and response times

Function
Defining the minimum cycle time and the maximum cycle time in STEP 7
Defining the desired response of the user program if the maximum cycle time has been exceeded
Reading out the cycle time statistics via STEP 7 and the display of the CPU
Reading out the cycle time and reading out the progress in the SYNCUP system state with the instruction "RT_INFO"

Additional information Section Cycle time (Page 20)
· Section Different cycle times (Page 20) · STEP 7 online help

Display of measurements (traces) which record special Function manual Using the trace and logic analyzer functions

time-critical signal characteristics

(http://support.automation.siemens.com/WW/view/en/64897128)

Reading out the progress of the SYNCUP system state S7-1500R/H redundant system

using the display of the CPU

(https://support.industry.siemens.com/cs/ww/en/view/109754833)

system manual

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

71

Cycle and response times of the S7-1500R/H redundant system 5.5 Timetables for the RUN-Redundant system state

5.5

Timetables for the RUN-Redundant system state

The following section describes the typical times of the CPUs of the S7-1500R/H redundant system in the RUN-Redundant system state.

Update times of the process image partitions
The following table contains the times for estimating the typical update times of the process image partitions.

Table 5- 5 Data for estimating the typical update time of the process image partitions

Update times of the CPUs in the RUN-Redundant system state

Basic load for updating process image partitions
Copy time for distributed I/O via PROFINET

CPU 1513R-1 PN 63 s
6.5 s/word

CPU 1515R-2 PN 57 s
6.5 s/word

CPU 1517H-3 PN 13 s
2.6 s/word

A table of the update times of the CPUs in the RUN-Solo system state is available in section Update time for process image partitions (Page 24).

Program execution time without interruptions
The user program has a certain runtime without interruptions. The runtime depends on the number of operations that are executed in the user program.
The following table contains the typical durations of operations.

Table 5- 6 Duration of an operation

Bit operations, typ. Word operations, typ. Fixed-point arithmetic, typ. Floating-point arithmetic, typ.

Program execution times of the CPUs in RUN-Redundant system state

CPU 1513R-1 PN 80 ns 96 ns 128 ns 512 ns

CPU 1515R-2 PN 60 ns 72 ns 96 ns 384 ns

CPU 1517H-3 PN 4 ns 6 ns 6 ns 24 ns

A table of the program execution times of the CPUs in the RUN-Solo system state is available in section User program execution time (Page 26).

Cycle and response times

72

Function Manual, 11/2019, A5E03461504-AE

Cycle and response times of the S7-1500R/H redundant system 5.5 Timetables for the RUN-Redundant system state

Extension due to nesting of higher-priority OBs and/or interrupts
The interruption of a user program at the end of an instruction by a higher-priority OB causes a certain basic time expenditure. Take account of this basic time expenditure in addition to the update time of the assigned process image partitions and the execution time of the contained user program. The following tables contain the typical times for the various interrupts and error events.

Table 5- 7 Basic time expenditure for an interrupt

Hardware interrupt Time-of-day interrupt Time-delay interrupt Cyclic interrupt

Basic time expenditure of the CPUs for an interrupt in the RUN-Redundant system state

CPU 1513R-1 PN 560 s 560 s 560 s 560 s

CPU 1515R-2 PN 430 s 430 s 430 s 430 s

CPU 1517H-3 PN 70 s 70 s 70 s 70 s

A table of the time expenditure of the CPUs for an interrupt in the RUN-Solo system state is available in section User program execution time (Page 26).

Table 5- 8 Basic time expenditure for an error OB

Programming error I/O access error Time error Diagnostic interrupt
Module failure/recovery Station failure/recovery

Basic time expenditure of the CPUs for an error OB in the RUN-Redundant system state

CPU 1513R-1 PN 560 s 560 s 560 s 560 s 560 s

CPU 1515R-2 PN 430 s 430 s 430 s 430 s 430 s

CPU 1517H-3 PN 70 s 70 s 70 s 70 s 70 s

560 s

430 s

70 s

A table with the basic time expenditure of the CPUs for an error OB in the RUN-Solo system state is available in section User program execution time (Page 26).

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

73

Cycle and response times of the S7-1500R/H redundant system 5.5 Timetables for the RUN-Redundant system state

Accuracy of a cyclic interrupt
Even if a cyclic interrupt is not delayed by a higher-priority OB or communication activities, the accuracy with which it is started is nevertheless subject to system-dependent fluctuations.
The following table shows the accuracy with which a cyclic interrupt is triggered:

Table 5- 9 Accuracy of cyclic interrupts

Cyclic interrupt

Accuracy of cyclic interrupts of the CPUs in the RUN-Redundant system state

CPU 1513R-1 PN ±5.8 ms

CPU 1515R-2 PN ±3.2 ms

CPU 1517H-3 PN ±1.6 ms

A table with the accuracy of cyclic interrupts of the CPUs in the RUN-Solo system state is available in section Time-driven program execution in cyclic interrupts (Page 44).

Note Scope of validity
Please note that the accuracy data for the cyclic interrupt also applies to all other higherpriority execution levels/OBs.

Interrupt response times for hardware interrupts
The interrupt response times of the CPUs start with the occurrence of a hardware interrupt event in the CPU and end with the start of the assigned hardware interrupt OB.
This time is subject to system-inherent fluctuations, and this is expressed using a minimum and maximum interrupt response time.
The following table contains the length of the typical response times of the CPUs for hardware interrupts.

Table 5- 10 Interrupt response times for hardware interrupts

Interrupt re- Min. sponse times Max.

Interrupt response times of the CPUs for hardware interrupts in the RUN-Redundant system state

CPU 1513R-1 PN

CPU 1515R-2 PN

CPU 1517H-3 PN

180 s 1420 s

150 s 1360 s

40 s 470 s

A table of the interrupt response times of the CPUs in the RUN-Solo system state is available in section Response time of the CPUs when program execution is event-controlled (Page 52).

Cycle and response times

74

Function Manual, 11/2019, A5E03461504-AE

Glossary

Backup CPU

Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in RUN-Redundant system state, the primary CPU guides the process. The backup CPU processes the user program synchronously and can take over the process management if the primary CPU fails.

Cycle time

The cycle time represents the time a CPU requires to process the user program once.

Data block

Data blocks (DBs) are data areas in the user program that contain user data. The following data blocks exist:
 Global data blocks which you can access from all code blocks.
 Instance data blocks that are assigned to a specific FB call.

Diagnostic interrupt See "Interrupt, diagnostic"

Diagnostics

Monitoring functions include:  The detection, localization and classification of errors, faults and alarms.  Displaying and further evaluation of errors, faults and alarms. They run automatically during plant operation. This increases the availability of systems by reducing commissioning times and downtimes.

Diagnostics buffer
The diagnostics buffer represents a backup memory in the CPU, used to store diagnostics events in their order of occurrence.

Distributed I/O system
System with I/O modules that are configured on a distributed basis, at a large distance from the CPU controlling them.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

75

Glossary

Firmware of the CPU
In SIMATIC, a distinction is made between the firmware of the CPU and user programs.
The firmware is a software embedded in electronic devices, which means it is permanently connected with the hardware functionally. It is usually saved in a flash memory, such as EPROM, EEPROM or ROM, and cannot be replaced by the user or only with special means or functions.
User program: see glossary entry "User program"

H-Sync Forwarding
H-Sync forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) only within the PROFINET ring.
In addition, H-Sync forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
S7-1500R: H-Sync forwarding is recommended for all PROFINET devices with only 2 ports in the PROFINET ring. All PROFINET devices with more than 2 ports (e.g. switch) in the PROFINET ring must support H-Sync forwarding.
S7-1500H: H-Sync Forwarding is not relevant for redundant S7-1500H systems.

I/O module

Device of the distributed I/O that is used as interface between the controller and the process.

Interrupt

The CPU's operating system distinguishes between various priority classes that control the execution of the user program. These priority classes include interrupts, such as hardware interrupts. When an interrupt occurs, the operating system automatically calls an assigned organization block. The required response is programmed in the organization block (for example, in an FB).

Interrupt, cyclic
The CPU generates a cyclic interrupt periodically within a parameterizable time grid and then processes the corresponding organization block.

Interrupt, diagnostics
Diagnostics-capable modules signal detected system errors to the CPU using diagnostic interrupts.

Cycle and response times

76

Function Manual, 11/2019, A5E03461504-AE

Glossary

Interrupt, hardware
A hardware interrupt is triggered by interrupt-triggering modules due to a certain event in the process. The hardware interrupt is reported to the CPU. The CPU then processes the assigned organization block according to the priority of this interrupt.

Interrupt, time-delay
The time-delay interrupt is one of the program execution priority classes of SIMATIC S7. The time-delay interrupt is generated after the expiration of a timer started in the user program. The CPU then processes the corresponding organization block.

Interrupt, time-of-day
The time-of-day interrupt is one of the program execution priority classes of SIMATIC S7. The time-of-day interrupt is generated depending on a specific date and time. The CPU then processes the corresponding organization block.

IO controller

See "PROFINET IO controller"

IO device

See "PROFINET IO device"

Operating states
Operating states describe the behavior of a single CPU at a specific time.
The CPUs of the SIMATIC standard systems have the STOP, STARTUP and RUN operating states.
The primary CPU of the redundant system S7-1500R/H has the operating states STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating states STOP, SYNCUP and RUN-Redundant.

Organization block
Organization blocks (OBs) form the interface between the CPU operating system and the user program. The organization blocks determine the order in which the user program is executed.

Parameter

 Tag of a STEP 7 code block:
 Tag for setting the behavior of a module (one or more per module). In as-delivered state, every module has an appropriate basic setting, which you can change by configuring in STEP 7. There are static and dynamic parameters.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

77

Glossary

Parameters, dynamic
Dynamic parameters of modules can be changed during operation by calling an SFC in the user program, for example, limit values of an analog input module.

Parameters, static
Static parameters of modules cannot be changed by the user program but only by the configuration in STEP 7, e.g. input delay of a digital input module.

Primary CPU

If the R/H system is in RUN-Redundant system state, the primary CPU guides the process. The backup CPU processes the user program synchronously and can take over the process management if the primary CPU fails.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then transfers the signal states of the input modules into the process image input. The CPU then executes the user program.

PROFINET

PROcess FIeld NETwork, open Industrial Ethernet standard which further develops PROFIBUS and Industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V. as an automation standard.

PROFINET IO

Communication concept for the realization of modular, distributed applications within the scope of PROFINET.

PROFINET IO controller
Device used to address connected I/O devices (e.g. distributed I/O systems). The IO controller exchanges input and output signals with assigned I/O devices. The IO controller often corresponds to the CPU in which the automation program is running.

PROFINET IO device
Distributed field device that can be assigned to one or more IO controllers (e.g. distributed I/O system, valve terminals, frequency converters, switches).

Cycle and response times

78

Function Manual, 11/2019, A5E03461504-AE

Glossary

Redundancy connection
The redundancy connection in an S7-1500R system is the PROFINET ring with MRP. The redundancy connection uses part of the bandwidth on the PROFINET cable to synchronize the CPUs, which means the bandwidth is not available for PROFINET IO communication.
Contrary to S7-1500R, PROFINET ring and redundancy connection are separate in an S7-1500H. The two redundancy connections are fiber-optic cables which directly connect the CPUs to each other via synchronization modules. The bandwidth on the PROFINET cable is available for PROFINET IO communication.

Redundant systems
Redundant systems are identified by the fact that important automation components are available in multiple units (redundant). Process control is maintained if a redundant component fails.

Retentivity

A memory area whose content is retained even after a power failure and after a transition from STOP to RUN is retentive. The non-retentive bit memory area, timers and counters are reset after a power failure and after a STOP-RUN transition.

System states

The system states of the S7-1500R/H redundant system result from the operating states of the primary and backup CPU. The term system state is used as a simplified expression that identifies the operating states of the two CPUs that occur at the same time. The S7-1500R/H redundant system features the STOP, STARTUP, RUN-Solo, SYNCUP and RUNRedundant system states.

TIA Portal

Totally Integrated Automation Portal
The TIA Portal is the key to the full performance capability of Totally Integrated Automation. The software optimizes all operating, machine and process sequences.

Timers

Timers are components of the CPU system memory. The operating system automatically updates the content of the "timer cells" asynchronously to the user program. STEP 7 instructions define the precise function of the timer cell (e.g. on-delay) and trigger its execution.

User program

In SIMATIC, a distinction is made between user programs and the firmware of the CPU.

Cycle and response times

Function Manual, 11/2019, A5E03461504-AE

79

Glossary

The user program contains all instructions, declarations and data by which a system or process can be controlled. The user program is assigned to a programmable module (for example, CPU, FM) and can be structured in smaller units.
Firmware: see glossary entry "Firmware of the CPU"

Cycle and response times

80

Function Manual, 11/2019, A5E03461504-AE

Index
C
Cycle Definition, 18
Cycle control point, 19 Cycle time
Definition, 20 Different, 21 Process image partition, 24 Update, 24 Cycle time statistics, 23
D
Dead time, 57, 66
E
Execution Event-driven, 10 Time-driven, 10
F
FAQ Total cycle time of a program, 30
H
Hardware interrupts, 10, 52
I
Instruction RE_TRIGR, 22 RT_Info, 23, 32, 42, 61, 71 RUNTIME, 27
Interrupt response times CPU, 52 R/H CPUs, 74
Interruptibility, 11
Cycle and response times Function Manual, 11/2019, A5E03461504-AE

M
Maximum cycle time, 22, 31, 57 Minimum cycle time, 19, 22, 62
O
OB 80 Time error OB, 22
P
Parameter Enable time error, 14 Event threshold for time error, 14 Events to be queued, 13 Report event overflow into diagnostic buffer, 14
Process image partitions, 11 Program execution, 10 Program execution in the cyclic program, 10 Program execution times
Without interruption, 26 Program execution times of R/H CPUs
Without interruption, 72 Program organization, 10
R
R/H CPUs Interrupt response times, 74
Response time Definition, 46
Response time of CPU, 47 Fluctuation, 47
Response time of R/H CPUs Fluctuation, 69
S
Synchronization in RUN-Redundant system state, 63 in SYNCUP system state, 59
81

Index
T
Time error OB OB 80, 22, 57
Times Basic expenditure for error OB, 29, 73 Basic expenditure for interrupts, 28, 73 Cyclic interrupts for S7-1500 CPUs, 45 Cyclic interrupts for S7-1500R/H-CPUs, 74 For one operation, 26, 29, 29, 29, 30, 73
U
Update times Backplane bus ET 200SP CPUs, 49 PROFIBUS DP, 48 PROFINET IO, 48 S7-1500 CPUs, 24 S7-1500R/H-CPUs, 72

Cycle and response times

82

Function Manual, 11/2019, A5E03461504-AE

Structure and Use of the CPU Memory

SIMATIC
S7-1500, S7-1500R/H, SIMATIC Drive Controller, ET 200SP, ET 200pro Structure and Use of the CPU Memory
Function Manual

Preface

Function manuals Documentation Guide

1

Memory areas and retentive memory

2

Memory usage and application examples

3

SIMATIC memory card

4

11/2019
A5E03461664-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03461664-AD  10/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface

Purpose of the documentation
This documentation describes the various memory areas of the following systems:  SIMATIC S7-1500 automation system  SIMATIC S7-1500R/H redundant system  SIMATIC Drive Controller  The CPUs of the ET 200SP distributed I/O system  The CPUs of the ET 200pro distributed I/O system based on SIMATIC S7-1500 The book also shows:  How to make the best use of the memory areas  How to reduce work memory utilization by:
­ Using recipes and data logs ­ Saving data blocks on the SIMATIC memory card

Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the SIMATIC industrial automation system  Knowledge about the use of computers  Proficiency with STEP 7

Conventions

STEP 7: in this documentation, "STEP 7" is used as a synonym for all versions of the "STEP 7 (TIA Portal)" configuring and programming software.

Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

3

Preface

Scope of the documentation
This documentation is valid for the central modules of the SIMATIC S7-1500, SIMATIC Drive Controller and ET 200SP systems and for ET 200pro.
The CPUs of the redundant system S7-1500R/H do not support all the memory objects described in this function manual. The limitations of the redundant S7-1500R/H system are pointed out where appropriate in the manual. You can find a list of the unsupported functions in the Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

What's new in edition 11/2019 as compared to edition 10/2018?

What's new?
Changed contents

Scope of the function manual expanded to include the CPUs of the SIMATIC Drive Controller

What are the customer benefits?
SIMATIC Drive Controller and SINAMICS Integrated support the memory structure familiar from the S7-1500 automation system.
Information on the special features of the SIMATIC Drive Controller is explained at the relevant points in the manual.

Where can I find information?
· In the corresponding sections of the manual
· SIMATIC Drive Controller (https://support.industry.sie mens.com/cs/ww/en/view/1 09766665) system manual

What's new in Edition 10/2018 compared to Edition 09/2016

What's new?
Changed contents

Scope of the function manual expanded to include the CPUs of the redundant system S7-1500R/H.

What are the customer benefits?

Where can I find information?

The CPUs of the redundant system S7- ·

1500R/H support the memory structure

familiar from the S7-1500 automation

system.

·

Information on the particularities of the redundant S7-1500R/H system is provided where appropriate in the manual.

In the corresponding sections of the manual
System manual Redundant System S7-1500R/H (https://support.industry.sie mens.com/cs/ww/en/view/1 09754833)

Structure and Use of the CPU Memory

4

Function Manual, 11/2019, A5E03461664-AD

Preface

What's new in Edition 09/2016 compared to Edition 01/2013

What's new? New contents
Changed contents

Analyzing memory requirements and memory usage
Memory requirements in load memory for downloading software changes
Service life of SIMATIC memory cards
Scope of the function manual expanded to include the CPUs of the ET 200SP distributed I/O system and the CPU 1516pro-2 PN

What are the customer benefits?

Where can I find information?

You have various options for analyzing the Section Memory requirements memory requirements and the memory and memory usage (Page 15) usage of the CPU:

· With STEP 7

· With the display of the CPU

· With the web server of the CPU

When loading software changes to the SIMATIC memory card, the files in question are only deleted after creation of the new files. For this reason, the CPU requires adequate free memory space on the SIMATIC memory card.

Section Memory requirements for downloading software changes (Page 28)

You have various options for creating memory space; these will be explained.

Using calculation examples of the service life of a SIMATIC memory card, you can estimate which SIMATIC memory card is required for your automation task.

Section Service life of the SIMATIC memory card (Page 63)

Functions that you will be familiar with

·

from the SIMATIC S7-1500 CPUs are

implemented in CPUs in other designs

(ET 200SP) and in the CPU 1516pro-2 PN

(degree of protection IP65, IP66 and

IP67).

·

Manual CPU 1510SP-1 PN (https://support.industry.sie mens.com/cs/ww/en/view/9 0157130)
Manual CPU 1512SP-1 PN (https://support.industry.sie mens.com/cs/ww/en/view/9 0157013)

· Operating instructions CPU 1516pro-2 PN (https://support.industry.sie mens.com/cs/ww/en/view/1 09482416)

Recycling and disposal
For environmentally friendly recycling and disposal of your old equipment, contact a certified electronic waste disposal company and dispose of the equipment according to the applicable regulations in your country.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

5

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Structure and Use of the CPU Memory

6

Function Manual, 11/2019, A5E03461664-AD

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

7

Table of contents

Preface ................................................................................................................................................... 3

1 Function manuals Documentation Guide ................................................................................................. 9

2 Memory areas and retentive memory .................................................................................................... 11

2.1 2.1.1

Memory areas ........................................................................................................................ 11 Specifics of the CPUs of the redundant system S7-1500R/H ............................................... 14

2.2

Memory requirements and memory usage ............................................................................ 15

2.3

Retentive memory areas ........................................................................................................ 21

2.4 2.4.1

Summary of retentive behavior .............................................................................................. 25 Retentive behavior of the memory objects ............................................................................ 25

2.5

Memory behavior when loading software changes................................................................ 26

2.6

Memory requirements for downloading software changes .................................................... 28

3 Memory usage and application examples.............................................................................................. 33

3.1

Memory usage for data blocks............................................................................................... 33

3.2

Memory usage for recipes ..................................................................................................... 35

3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5

Memory usage for data logging ............................................................................................. 37 Overview of data logging ....................................................................................................... 37 Data structure of the data logs............................................................................................... 39 Instructions for data logging ................................................................................................... 40 Example program for data logging......................................................................................... 41 Calculation of the data log size .............................................................................................. 47

4 SIMATIC memory card.......................................................................................................................... 51

4.1

SIMATIC memory card - Overview ........................................................................................ 51

4.2

Setting the card type .............................................................................................................. 58

4.3

Data transfer with SIMATIC memory cards ........................................................................... 60

4.4

Service life of the SIMATIC memory card.............................................................................. 63

4.5

Expanding the load memory of the CPUs of the redundant system S7-1500R/H ................. 68

Glossary ............................................................................................................................................... 69

Index .................................................................................................................................................... 75

Structure and Use of the CPU Memory

8

Function Manual, 11/2019, A5E03461664-AD

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

9

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Structure and Use of the CPU Memory

10

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory

2

2.1

Memory areas

The automation data is located in the automation system in different memory areas.

The offline data of the project created in STEP 7 is located on the hard disk of the programming device. The online data of the project is located in the load memory on the SIMATIC memory card. In addition, the work memory, retentive memory and other memory areas are located on the CPU.

The following figure shows an overview of the memory areas of the CPUs:

Figure 2-1 Memory areas

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

11

Memory areas and retentive memory 2.1 Memory areas

Load memory

Load memory is non-volatile memory for code blocks, data blocks, technology objects and the hardware configuration. This load memory is located on the SIMATIC memory card. STEP 7 transfers the project data from the programming device to the load memory.
You can copy additional data (for example HMI backups and other files) to the SIMATIC memory card using the web server or Explorer. This data can then be found in the load memory on the SIMATIC memory card.

Note An inserted SIMATIC memory card is required to operate the CPU.

Load memory: CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP
On these CPUs additional memory space is used in the load memory by:
 Linux runtime, which runs in parallel with the CPU runtime
 C/C++ runtime applications
 Files that are needed for C/C++ runtime applications
 CPU function libraries
Note CPU runtime
In the context of the CPU 1518-4 PN/DP MFP and the CPU 1518F-4 PN/DP MFP as well as the Open Development Kit (ODK), the term "CPU runtime" has the following meaning:
The CPU runtime is the runtime environment in which a CPU runtime application can be executed. CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP run a Linux runtime in parallel with the CPU runtime. The Linux runtime is the runtime environment for applications that are executable in Linux, e.g. C/C++ runtime applications.
For additional information on the CPUs, refer to the CPU 1518-4 PN/DP MFP (https://support.industry.siemens.com/cs/ww/en/view/109749061) manual and the CPU 1518(F)-4 PN/DP MFP (https://support.industry.siemens.com/cs/ww/en/view/109756478) product information. You can find information on creating C/C++ runtime applications in the SIMATIC S7-1500 ODK 1500S (https://support.industry.siemens.com/cs/ww/en/view/109752683) manual.

Structure and Use of the CPU Memory

12

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.1 Memory areas

Work memory

The work memory is volatile memory that contains the code and data blocks. The work memory is integrated into the CPU and cannot be extended. The work memory is only used in operation of the CPU.
In the CPUs, the work memory is divided into two areas:
 Code work memory: The code work memory contains runtime-relevant parts of the program code.
 Data work memory: The data work memory contains the runtime-relevant parts of the data blocks and technology objects. Tags of global data blocks, instance data blocks and technology objects are initialized with their start values at the operating states changes below. Retentive tags receive their actual values saved in the retentive memory.
­ STOP  STARTUP
­ POWER ON  STARTUP
­ POWER ON  STOP

Work memory of CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP
Additional work memory is needed for use of the CPU function libraries and C/C++ runtime applications.

Retentive memory
The retentive memory is non-volatile memory for saving a limited amount of data in the event of power failure.
The following actions delete certain memory objects of the retentive memory:
 Memory reset
 Reset to factory settings
You can find an overview of the retentive behavior of the individual memory objects in section Retentive behavior of the memory objects (Page 25).
You can find additional information on the memory reset and reset to factory settings functions in the following manuals:
 System manual S7-1500, ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792)
 SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual
 System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293)
 Operating instructions ET 200pro CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

13

Memory areas and retentive memory 2.1 Memory areas
Additional memory areas
Besides the memory areas that have been described for the user program and data, the CPU has additional memory areas available. The additional memory areas include the following:  Process images  Temporary local data The CPU-specific sizes can be found in the technical specifications for the respective CPU.

2.1.1

Specifics of the CPUs of the redundant system S7-1500R/H
The redundant system S7-1500R/H consists of two CPUs. There must be a SIMATIC memory card in each of the CPUs. We recommend the same memory size for each SIMATIC memory card. During redundant operation, both CPUs execute the user program in parallel. In so doing, one CPU takes the role of the leading CPU (Primary CPU) and one CPU takes the role of the following CPU (Backup CPU). If one CPU fails, the second CPU maintains control over the process.

Memory areas

The two CPUs of the redundant system S7-1500R/H have the same memory areas as the CPUs of non-redundant systems.
You create the hardware configuration of the offline project data only once in STEP 7 STEP 7 loads the offline project data into the current primary CPU. The system synchronizes all data required for redundant operation from the primary CPU to the backup CPU.
Both CPUs receive identical online project data. The online project data contains the hardware configuration of the H-system.

Structure and Use of the CPU Memory

14

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.2 Memory requirements and memory usage
Particularities of the retentive memory
Like for non-redundant CPUs, the retentive memory is a non-volatile memory. The retentive memory saves a limited amount of data in the event of power failure.
Each of the CPUs of the redundant system S7-1500R/H has its own retentive memory. If one of the CPUs changes to POWER OFF and the second CPU is still in RUN, the retentive data of the CPU in RUN continues to be updated. If the remaining CPU also goes from RUN to POWER OFF, the retentive memory of this CPU contains the more up-to-date retentive data. Note the following for when you switch the CPUs back to RUN afterwards.
Note Characteristics of retentive data after a STOP or POWER OFF of both CPUs
After a STOP or POWER OFF of both CPUs, switch the CPU with the more up-to-date data to RUN first. The more up-to-date data is located in the CPU that controlled the process before STOP or POWER OFF. This procedure gives you certainty that you are using the more up-to-date retentive data. The precondition for this is that you did not change any data using STEP 7 or the HMI while the CPUs were in STOP.
Redundancy ID
Unlike in a non-redundant CPU, an additional memory object is contained in the retentive memory of the respective redundant CPU. Each CPU saves its respective redundancy ID in this memory object. The redundancy IDs can assume the values 1 and 2. Different redundancy IDs are required for redundant operation in order to clearly identify the CPUs and assign the project data to the respective CPUs. For additional information on redundancy IDs of the CPUs, refer to the Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.
You can find an overview of the retentive behavior of the individual memory objects in section Retentive behavior of the memory objects (Page 25).

2.2

Memory requirements and memory usage

You can access information regarding the memory areas of the CPUs in the following ways depending on product family used:

Product family
S7-1500 S7-1500R/H SIMATIC Drive Controller ET 200SP ET 200pro CPU 151xpro-2 PN

Information regarding the memory areas of the CPU is accessible via:

STEP 7     

Web server  -  

Display   ----

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

15

Memory areas and retentive memory 2.2 Memory requirements and memory usage
Memory requirements of the program in the offline project
During creation or modification of a project, the display of memory utilization in STEP 7 shows you the size of the project in the following memories:  Load memory  Work memory  Retentive memory You can find this information for the CPU under "Program info" in the project tree, "Resources" tab.  Total size of the memory areas of the respective CPU project (in the figure below line
"Total:")  Memory requirements of the program elements (blocks, data types, objects for motion
technology and PLC tags)  Memory amounts in the respective memory area of the offline project (in figure below, line
"Used:")  Used inputs and outputs The following figure shows an overview of the utilization of the various memory areas of the "Resources" tab:
Figure 2-2 Display of the utilization of the various memory areas

Structure and Use of the CPU Memory

16

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.2 Memory requirements and memory usage
For a CPU, you can select the total size of the load memory in a drop-down list. Select the size of the load memory in accordance with the size of the SIMATIC memory card you are using. The percentage shown in the Load memory column depends on the selected size of the load memory. As soon as the memory size exceeds the size of the load memory of the memory card you are using, the sizes indicated turn red.
Note Determination of the memory utilization Note that the SIMATIC memory card also contains data other than the user program that you cannot determine using "Resources". This data includes: · Hardware configuration · Recipes, data logs and HMI backups (not supported for S7-1500R/H) · Non-SIMATIC files, such as PDF, etc. Therefore, the drop-down list with the size of your SIMATIC memory card only serves as a visual orientation aid.
Also refer to the FAQ "How do you estimate the memory requirements of your project in the load memory of a SIMATIC S7-1500" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/97553417).
Note Display of the memory utilization under "Program info" The display of the memory utilization in the program information is an offline display in STEP 7 and only shows the memory requirements of the program in the project. The program on the memory card of the CPU may differ, however, for example if the program: · is more up to date · contains blocks generated by other projects · contains blocks generated on the CPU

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

17

Memory areas and retentive memory 2.2 Memory requirements and memory usage
Data on the SIMATIC memory card
In addition to the program and the associated program elements (blocks, data types, objects for motion technology and PLC tags), the following data is also stored on the memory card:  Hardware configuration  Project information  Force jobs  Trace recordings (not supported for S7-1500R/H)  Symbols and comments The following further data may also be found on the memory card:  Recipes, data logs and HMI backups (not supported for S7-1500R/H)  Non-SIMATIC files that were copied to the memory card via the web server of the CPU or
offline in Windows Explorer (for example PDF files, etc.)
Display of the memory utilization in STEP 7
In online mode, the online function "Memory" provides you with the following up-to-date memory information:  Size of the total free and already allocated load memory on the SIMATIC memory card.  Size of the total free and already allocated work memory, separated by code and data.  Size of the total free and already allocated retain memory. The online function "Memory" can be found in Online & Diagnostics under "Diagnostics > Memory". You can access the functions under Online & Diagnostics in various ways:  In the project tree under each configured CPU.  In the project tree under Online access > Accessible devices, in order to display the
memory utilization of CPUs that were not configured in the project.  In all views of the device configuration (topology view, network view, device view) by
selecting a CPU with the right mouse button.

Figure 2-3 "Memory" online function
Note Fill levels of the CPUs of the redundant system S7-1500R/H The CPUs of the redundant system S7-1500R/H can have CPU-specific fill levels in nonredundant operation. The fill levels of the load memory of the CPUs can differ in redundant operation and nonredundant operation (e.g. due to stored PDF files or SIMATIC memory cards of different sizes). You can have the memory utilization of both CPU 1 and CPU 2 displayed in STEP 7.
Alternatively to the "Memory" online function, you will also find a display of the current memory functions on the "Online tools" task card in the "Memory" section.

Structure and Use of the CPU Memory

18

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.2 Memory requirements and memory usage
Display of the memory utilization on the display of the CPU
To obtain information about the available memory via the display, proceed as follows:  Select the "Diagnostics" menu on the display with the help of the arrow keys.  Select the "Used memory" command from the "Diagnostics" menu. Under the "Used memory" menu item, you can find information about the utilization of the various memory areas (see following figure). Note that the memory usage is a snapshot of the memory used at the time of the request and is not continuously updated.

To find out details about the respective memory areas (e.g. code work memory), select the required memory area with the help of the arrow keys (see following figure).

In the detail view, e.g. of the code work memory, the display provides you with the following information:  Memory space which is still available in the code work memory.  Memory space which is already allocated in the code work memory.  Total available memory space in the code work memory.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

19

Memory areas and retentive memory 2.2 Memory requirements and memory usage Display of the memory usage in the Web server
On the Web server, you can find information about the current usage of the individual memory areas on the Web page "Diagnostics" in the "Memory" tab. Detailed information about the use of the Web server can be found in the S7-1500 Web server (https://support.industry.siemens.com/cs/ww/en/view/59193560) function manual.
Figure 2-4 Display of the memory usage in the Web server Note Redundant system S7-1500R/H The web server is not supported by the CPUs of the redundant system S7-1500R/H.

Structure and Use of the CPU Memory

20

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.3 Retentive memory areas

2.3

Retentive memory areas

Introduction

The CPUs have a memory for storing retentive data at POWER OFF. You can find the size of the retentive memory in the technical specifications of the respective CPU.
You can find the utilization of the retentive memory of the configured CPU in STEP 7 offline under "Program info > Resources" or online under Online & diagnostics with "Diagnostics > Memory".
If you define data as retentive, its content is retained for the startup of a program after STOP or a power failure.
You can define the following data and objects as retentive:
 Tags of global data blocks
 Tags of instance data blocks of a function block
 Bit memories, timers and counters
Tags of technology objects are retentive, e.g. calibration values of absolute encoders. STEP 7 manages the retentivity of the technology object tags automatically. Hence, you do not have to configure retentivity.
The retentive tags of technology objects are unaffected by a memory reset. You can only delete these retentive tags with a reset to factory settings.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

21

Memory areas and retentive memory 2.3 Retentive memory areas
Tags of a global data block
In a global data block, you can define either individual tags from a block or all of its tags collectively as retentive, depending on the setting for the "Optimized block access" attribute:  "Optimized block access" activated: In the declaration table of the data block, you can
define individual tags as retentive.
Figure 2-5 Retentivity setting "Optimized block access" activated  "Optimized block access" not activated: In the declaration table of the data block, you can
only define the retentivity of all tags collectively.
Figure 2-6 Retentivity setting "Optimized block access" not activated You can find additional information on optimized and non-optimized data blocks in the Programming guideline for S7-1200/S7-1500 (https://support.industry.siemens.com/cs/de/de/view/90885040/en).
Tags of an instance data block of a function block
You can define the tags of the instance data block of a function block as retentive in STEP 7. Depending on the setting for the "Optimized block access" attribute, you can define retentivity either for individual tags from a block or for all of its tags collectively:  "Optimized block access" activated: In the interface of the function block, you can define
individual tags as retentive.  "Optimized block access" not activated: In the instance data block, you can only define
the retentivity of all tags collectively.

Structure and Use of the CPU Memory

22

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.3 Retentive memory areas
Creation of a data block in the user program
The instruction "CREATE_DB" is used to create a new data block in the load and/or work memory. For data blocks which you create in the load memory, depending on the selection for the ATTRIB parameter, the generated data block either has the property "retentive" or the property "non-retentive". Setting the retentivity for individual tags is not possible here. The "Optimized block access" attribute is disabled. You can find additional information on the "CREATE_DB" instruction in the STEP 7 online help under "Programming a PLC > Instructions > Extended instructions > Data block control > CREATE_DB: Create data block".
Note Redundant S7-1500R/H system The "CREATE_DB" instruction is not supported by the CPUs of the redundant system S71500R/H.
Tags of technology objects
Tags of technology objects are retentive, e.g. calibration values of absolute encoders. STEP 7 manages the retentivity of the technology object tags automatically. Hence, you do not have to configure retentivity. The retentive tags of technology objects are unaffected by a memory reset. They can be deleted only by a reset to factory settings.
Note Redundant S7-1500R/H system Technology objects are not supported by the CPUs of the redundant system S7-1500R/H.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

23

Memory areas and retentive memory 2.3 Retentive memory areas
Bit memories, timers and counters
You can define the number of retentive bit memories, timers and counters in STEP 7 in the PLC tag table using the "Retain" button.

Reference

Figure 2-7 Definition of the number of retentive bit memories, timers and counters (beginning at 0, continuing without gaps) using the "Retain" button
You can find additional information on setting the retentivity in the STEP 7 online help.

Structure and Use of the CPU Memory

24

Function Manual, 11/2019, A5E03461664-AD

2.4

Summary of retentive behavior

Memory areas and retentive memory 2.4 Summary of retentive behavior

2.4.1

Retentive behavior of the memory objects
This section gives an overview of the retentive behavior of the memory objects of the CPUs.
In addition to the retentive memory areas described, there are other objects with retentive characteristics, for example, the diagnostics buffer. These objects do not occupy any storage space in the retentive memory.
The following table shows the retentive behavior of the memory objects in the case of the following:
 STOP  STARTUP
 POWER ON  STARTUP
 POWER ON  STOP
 "Memory reset"
 "Reset to factory settings"

Table 2- 1 Retentive behavior of the memory objects

Memory object
Actual values of the data blocks, instance data blocks Bit memories, timers and counters - configured as retentive Bit memories, timers and counters - configured as non-retentive Retentive tags of technology objects (e.g. calibration values of absolute encoders) 2) Diagnostics buffer entries Operating hours counter Clock time Redundancy ID 3) x = content is retained ­ = object is initialized

STOP  STARTUP POWER ON  STARTUP POWER ON  STOP Can be set in the properties of
the DB in STEP 7 1) x
-
x
x x x x

Memory reset
-
-
-
x
x x x x

1) For DBs with optimized access the retentive behavior is configurable for specific tags. 2) Not for the CPUs of the redundant system S7-1500R/H 3) Only for the CPUs of the redundant system S7-1500R/H

Reset to factory settings
-
-
-
-
-

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

25

Memory areas and retentive memory 2.5 Memory behavior when loading software changes

Diagnostics buffer
The 500 most recent entries in the diagnostics buffer are retained after power failure and are not affected by a memory reset. The diagnostics buffer can be cleared only by a reset to factory settings. The entries in the diagnostics buffer do not occupy any memory space in the retentive memory.

Operating hours counter
The operating hours counters of the CPUs are retentive and are not affected by a memory reset. By resetting to factory settings, the operating hours counters are set to zero.

Clock time

The clock time of the CPUs is retentive and is not affected by a memory reset. A reset to factory settings resets the system time to 01.01.2012 00:00:00.

2.5

Memory behavior when loading software changes

Introduction

You can download software changes in STOP and RUN without affecting the actual values of previously loaded tags.
You load changes to the software in STEP 7 (in the project tree and with selected PLC station) under "Download to device > Software (only changes)".

Impact of software changes on PLC tags
You can load the following software changes without affecting the actual values of PLC tags that have already been loaded:  Name change  Comment change  Addition of new tags  Deletion of tags  Change of retentivity settings for Retentive memory areas (Page 21) The actual values are affected by loading the following software changes:  Data type change  Change to addresses

Structure and Use of the CPU Memory

26

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.5 Memory behavior when loading software changes

Memory reserve of global DBs and instance DBs
Each function block or data block with the "Optimized block access" attribute activated contains, by default, a memory reserve which you can use for subsequent interface changes. The memory reserve is initially not used. When you have compiled and loaded the block, and then observe that you want to reload interface changes, activate the memory reserve. All tags that you subsequently declare will be placed in the memory reserve. During the next load, the new tags are then initialized to their start values. Tags which have already been loaded are not reinitialized.
The setting of the memory reserve can be found in STEP 7 under the data block properties in the "Download without reinitialization" category.

Impacts of software changes on data blocks without memory reserve
If you are not using memory reserve, you can load the following software changes without this reinitializing the actual values of DB tags that have already been loaded:
 Start value change
 Comment change

Impacts of software changes on data blocks with memory reserve
If you are using the memory reserve for data blocks ("Optimized block access" attribute and "Enable download without reinitialization for retentive tags" button selected), you can load the following software changes. The actual values of previously downloaded DB tags are not reinitialized by this.
 Start value change
 Comment change
 Addition of new tags
If the button "Enable download without reinitialization for retentive tags" is deactivated, then all actual values of the data block are reinitialized on the next loading of the following software changes:
 Name change
 Data type change
 Retentivity change
 Deletion of tags
 Changes to the memory reserve settings
 Addition of new tags

Reference

You can find additional information on setting and activating the memory reserve and on downloading block changes in the STEP 7 online help under "Programming a PLC > Compiling and downloading PLC programs > Downloading blocks for S7-1200/1500 > Loading block extensions without reinitialization".

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

27

Memory areas and retentive memory 2.6 Memory requirements for downloading software changes

2.6

Memory requirements for downloading software changes

Memory requirements in RUN state
For the consistent and atomic execution of the complete download operation, the CPU requires adequate free memory space in the work memory and on the SIMATIC memory card. The files affected by loading the software changes to the CPU are only deleted after the new files have been created. This SIMATIC memory card therefore requires free memory space corresponding approximately to the space required for all program objects to be loaded on the memory card.
If this amount of memory is not available on your SIMATIC memory card, the following message is displayed in STEP 7 during the download operation to the CPU: "There is insufficient memory on the memory card for this amount of data."
In order to still enable the loading of changes to the CPU in such a case, we recommend one or more of the following options:
 Download in RUN state
­ Delete any files no longer required (e.g. CSV files, panel backups, etc.) on the memory card using the Web server.
­ Preferably, you should download extensive changes in RUN state in multiple steps or perform the download after each change step.
Note
RUN-Redundant Loading to the CPUs of the S7-1500R/H redundant system in the RUN-Redundant system state
Before a write function is performed, the system does not check whether there is enough free space on the SIMATIC memory cards of the CPUs for the function. Writing functions are online functions with the PG/PC, for example loading/deleting a block, test functions, loading a modified user program in the RUN-Redundant system state.
If insufficient memory is available on the SIMATIC memory card of a CPU:
· The CPU affected switches to STOP mode. ­ If insufficient memory is available on the SIMATIC memory card of the selected CPU (to which you wish to load), that CPU switches to STOP mode. The other CPU switches to RUN with the previous user program (redundant system  RUN-Solo system state). ­ If insufficient memory is available on the other CPU, that CPU switches to STOP mode. The selected CPU (to which you have loaded) switches to RUN with the modified user program (redundant system  RUN-Solo system state).
· The ERROR LED flashes red (temporary error)
· A corresponding error message is entered in the diagnostics buffer
If after that there is not enough free memory on the SIMATIC memory card of the other CPU either, this CPU remains in RUN. The CPU then responds like a standard CPU.

Structure and Use of the CPU Memory

28

Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.6 Memory requirements for downloading software changes
 Download in STOP state ­ If downloading in several steps is not possible, load extensive changes in STOP state.
 Use a larger memory card ­ In order to perform extensive downloads in RUN state of the CPU in the future, use a larger memory card. A description of how to change the memory card can be found in the section "Changing the memory card without loss of retentive data".
Impact of minor program changes on the load procedure Under the objects of a program, there are dependencies, e.g.  Of code blocks to called code blocks  Of code blocks to data blocks  Of data blocks to data types (PLC data types, FB types) This means that the load procedure for a minor change may be very time-consuming if the change affects a large number of dependent objects.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

29

Memory areas and retentive memory 2.6 Memory requirements for downloading software changes
Example: A STEP 7 program contains an organization block (OB), 20 functions (FC) and a data block (DB). The OB calls the 20 FCs. All the FCs access the DB. If you change the program code in one of the FCs, the following load procedure only contains the changed FC. If you change the data type of a tag in the DB, however, the following load procedure then contains all the FCs and the DB. The following figure shows the objects in the load procedure in a preview.

Figure 2-8 Preview for loading 30

Structure and Use of the CPU Memory Function Manual, 11/2019, A5E03461664-AD

Memory areas and retentive memory 2.6 Memory requirements for downloading software changes
To find the interdependencies of the individual objects, double-click "Program info" in the project tree. Change to the "Dependency structure" tab in the "Program info" dialog.

Figure 2-9 Dependency structure

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

31

Memory areas and retentive memory 2.6 Memory requirements for downloading software changes
Memory requirements in STOP state
Even when downloading in STOP state, a certain amount of reserve memory is required, because your CPU needs sufficient free memory on the memory card for consistent downloading of individual data blocks. The files affected by loading the data blocks are only deleted after the new files have been created. Therefore, for the modifications you must have available at least the memory requirement of the largest data block.
If insufficient reserve memory is available on your SIMATIC memory card when loading in STOP state, the following message is displayed in STEP 7 during the download to the CPU: "There is insufficient memory on the memory card for this amount of data."
In order to still enable the loading of changes to the CPU in such a case, we recommend one or more of the following options:
 Delete any files no longer required (e.g. CSV files, panel backups, etc.) from the memory card using the Web server.
 Use a larger memory card. A description of how to change the memory card can be found in the section "Changing the memory card without loss of retentive data".
Note
Please note that retentive data and possibly also project data is lost with the following three options. Therefore only use the following options described if the two options described previously did not lead to the desired result.
 In STEP 7, download your program to the CPU with menu command "Online > Download and reset PLC program".
 Remove the memory card from the slot of the CPU. Delete the content that is longer needed from the memory card with your programming device.
 Delete the entire contents, e.g. by formatting the memory card. A description of how to format the memory card can be found in the section "Formatting a SIMATIC memory card".
Note also the following FAQs:
 "When downloading to the S7-1500 CPU, why is the message "There is insufficient memory on the memory card for this amount of data" displayed although there is still enough memory available?" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/107108015).
 "Why can you not load the project data into the load memory of the S7-1500 CPU when the number of alarms and messages is too large?" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109751485).

Structure and Use of the CPU Memory

32

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples

3

3.1

Memory usage for data blocks

Processing sequence
 Storing data records in the load memory
STEP 7 stores individual data records in a non-runtime-relevant DB and downloads the DB to the CPU. In order to configure a non-runtime-relevant DB, you must enable the "Only store in load memory" block attribute. The data records then only use memory space in the load memory and not in the work memory.
 Working with data record data in the user program
You use the "READ_DBL" instruction to copy a data record from the DB in the load memory to a runtime-relevant DB in the work memory. As a result, the work memory only has to accommodate the data for the data record currently required. The user program can now access the data of the current data record.
 Saving back changed recipe data records
The "WRIT_DBL" instruction writes new or changed data records from the user program back to the load memory. The data written to the load memory is portable and not affected by a memory reset. To back up changed data records, you need to upload the data blocks and back them up on the PG/PC. You can find information on uploading data blocks in the STEP 7 online help under "Programming a PLC>Compiling and downloading blocks>Downloading blocks for S7-1200/1500>Uploading blocks from a memory card".

Figure 3-1 Processing sequence with "READ_DBL" and "WRIT_DBL"

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

33

Memory usage and application examples 3.1 Memory usage for data blocks
Note Redundant system S7-1500R/H The data block functions are not supported by the CPUs of the S7-1500R/H redundant system. You therefore cannot use non-runtime-relevant DBs.
Please also note the FAQ "How do you configure data blocks with the "Only store in load memory" attribute for the S7-1200/S7-1500?" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/53034113).
Note Instructions that access the SIMATIC memory card have a lower performance than instructions that access the work memory. The associated blocks (e.g. READ_DBL and WRIT_DBL) are therefore asynchronous. Their execution extends if necessary over several cycles.
NOTICE Service life of the SIMATIC memory card Only a limited number of delete and write operations are possible on the SIMATIC memory card. After expiration of the service life, there is a risk that the card can no longer be used. You can find additional information on the service life of the SIMATIC memory card in Service life of the SIMATIC memory card (Page 63).
Note Memory size of the SIMATIC memory card Use a SIMATIC memory card with sufficient memory for your particular purposes.

Structure and Use of the CPU Memory

34

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.2 Memory usage for recipes

3.2

Memory usage for recipes

Introduction

A recipe is a collection of parameter sets with the same structure. These recipe data records are located in a data block in the load memory, and do not occupy any storage space in the work memory. You have the option of reading individual recipe data records to a data block in the work memory and accessing the data in the user program. You can write a recipe data record that has been changed in the user program back to the recipe data block.
Recipes contain, for example, the related data of a particular batch in production. You can export recipe data records of a recipe DB as a csv file. A web browser can read data via the web server of the CPU, even when the CPU is in STOP state. You can also directly access the data of the SIMATIC memory card using a card reader on the programming device.
Note Redundant system S7-1500R/H
Recipes are not supported by the CPUs of the S7-1500R/H redundant system.

Import and export of recipe data
You have the option of exporting recipe data records of a recipe DB as a CSV file, and importing them from a CSV file into a DB. The CSV file is located in the "\recipes" directory on the SIMATIC memory card. You can open and process this file further with a spreadsheet program such as Microsoft Excel.
You can easily work with CSV files on the SIMATIC memory card via the web server of the CPU (e.g. rename, save to hard disk, delete, etc.). To avoid undesired manipulation, set access rights for the web server in STEP 7. You can find additional information on the Web server in the Web Server (http://support.automation.siemens.com/WW/view/en/59193560) function manual.
 Export of recipe data
The "RecipeExport" instruction exports all the recipe data records of a recipe DB from the load memory to a CSV file on the SIMATIC memory card. The CSV file has the same name as the recipe of the DB. The CSV file is stored in the "\recipes" directory on the SIMATIC memory card.
The "RecipeExport" instruction only exports valid and unencrypted recipe data records.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

35

Memory usage and application examples 3.2 Memory usage for recipes
 Import of recipe data The "RecipeImport" instruction imports all recipe data records from the CSV file into the recipe DB in the load memory. The name of the CSV file must match the name of the recipe DB.

Figure 3-2 Import and export of recipe data
Note
Asynchronous instructions Please note that the "RecipeExport" and "RecipeImport" instructions are asynchronous instructions. In contrast to synchronous instructions, this means the execution of an asynchronous instruction can extend over multiple calls before execution is completed. The CPU processes asynchronous instructions in parallel with the cyclic user program. A CPU can process several asynchronous instruction jobs in parallel. The CPU can process a maximum of 10 jobs of the instructions listed in parallel. You can find additional information about asynchronous instructions in the following manuals: · System manual S7-1500, ET 200MP
(http://support.automation.siemens.com/WW/view/en/59191792)
· System manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833)
· SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual
· System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293)
· Operating instructions ET 200pro CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)

Structure and Use of the CPU Memory

36

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging
Additional information
You can find additional information on the instructions for recipes in the STEP 7 online help under "Programming a PLC > Instructions > Instructions (S7-1200, S7-1500) > Extended instructions > Recipes and data logging > Recipe functions". Note also the application example "Using recipe functions for persistent data with SIMATIC S7-1200 and S7 1500" on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109479727).

3.3

Memory usage for data logging

3.3.1

Overview of data logging
With data logging, you save selected process values from the user program in a file, the data log. The data logs are saved on the SIMATIC memory card in csv format and stored in the "\datalogs" directory. A web browser can read data via the web server of the CPU, even when the CPU is in STOP state. You can also directly access the data of the SIMATIC memory card using a card reader on the programming device.
NOTICE
Service life of the SIMATIC memory card
Only a limited number of delete and write operations are possible on the SIMATIC memory card. Cyclic write operations to the SIMATIC memory card by the user program reduce the service life of the SIMATIC memory card. After expiration of the service life, there is a risk that the card can no longer be used. Therefore, use a SIMATIC memory card with sufficient memory for your particular purposes.
Information on the service life of the SIMATIC memory card can be found in the section Service life of the SIMATIC memory card (Page 63).
Note Memory size of the SIMATIC memory card
Use a SIMATIC memory card with sufficient memory for your particular purposes.
The "data logging" instructions can be used in your program to create, open, write, close or delete data logs. You decide which tags are logged by creating a data block that defines a single data log data record. Your data block is used as temporary storage for a new data log data record. New current values for the tags must be transferred into the data block during runtime by means of user program instructions. If all tag values have been updated, you can execute the "DataLogWrite" instruction, in order to transfer data from the data block into the data log.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

37

Memory usage and application examples 3.3 Memory usage for data logging
You manage your data logs with the integrated web server. You can download data logs from the standard "File Browser" website. After you have transferred a data log to your PC, you can analyze the data using popular spreadsheet programs, e.g. Microsoft Excel.
Note Redundant system S7-1500R/H Data logging is not supported by the CPUs of the redundant system S7-1500R/H.
The following figure shows the basic sequence for creating a data log:

Figure 3-3 Basic sequence during the creation of a data log

Structure and Use of the CPU Memory

38

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging

3.3.2

Data structure of the data logs

Introduction

You use the "DataLogCreate" instruction to create a data log in STEP 7. The NAME parameter assigns the data log a name. The DATA and HEADER parameters specify the data type of all data elements in a data log data record, and the header line of the data log. The RECORDS parameter indicates the maximum number of records in the data log.

NAME parameter for the "DataLogCreate" instruction
You use the NAME parameter to assign a name for the data log. This is the name under which the data log is saved in the "\datalogs" directory of the SIMATIC memory card.

DATA parameter for the "DataLogCreate" instruction
The DATA block parameter specifies the structure of the data log's records. The columns and data types of a data record in the data log are determined by the elements of the structure declaration or array declaration of this data buffer. Each element of a structure or array corresponds to a column in a row in the data log.

HEADER parameter for the "DataLogCreate" instruction
Using the HEADER block parameter, you can assign a heading in the header row to each column in the data log.

RECORDS parameter for the "DataLogCreate" instruction
The RECORDS parameter specifies the maximum number of records that can be stored in a data log. When the specified maximum number of data records in a data log is reached, the next write operation overwrites the oldest data record.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

39

Memory usage and application examples 3.3 Memory usage for data logging

3.3.3

Instructions for data logging

Overview

The following table gives an overview of the instructions for data logging. You will find the data logging instructions in "STEP 7" in the "Instructions" task card, under "Extended instructions > Recipe and data logging > Data Logging".

Table 3- 1 Overview of the data logging instructions

Name of the instruction "DataLogCreate": Create data log
"DataLogOpen": Open data log
"DataLogWrite": Write data log "DataLogClose": Close data log "DataLogNewFile": Data log in new file
"DataLogClear": Empty data log "DataLogDelete": Delete data log

Description
With the "DataLogCreate" instruction you create a data log. The data log is saved on the SIMATIC memory card in the "\datalogs" directory. You can use the data logging instructions to save process data. The amount of data in a data log depends on the available memory space on the SIMATIC memory card.
With the "DataLogOpen" instruction, you open an existing data log on the SIMATIC memory card. A data log must be open before you can write new data records to it.
The data log opens automatically when the "DataLogCreate" and "DataLogNewFile" instructions are executed.
A maximum of 10 data logs can be open at any one time. The data log to be opened can be selected using the ID or name of the data log.
The maximum file size of data logs is 2 GB.
A maximum number of 1000 data log files is possible with firmware version V2.0.
With the "DataLogWrite" instruction you write a data record into an existing data log. Use the ID parameter to select the data log to which the data record is to be written. To write a new data record, the data log must be open.
With the "DataLogClose" instruction, you close an open data log. You select the data log using the ID parameter.
When the CPU changes to STOP state, all open data logs are closed.
With the "DataLogNewFile" instruction you create a new data log. The new data log has the same properties as an already existing data log. By creating a new data log, you prevent cyclic overwriting of existing data records.
When the instruction is called it creates a new data log on the SIMATIC memory card using the name defined in the NAME parameter. You use the ID parameter to specify the ID of the old data log whose properties you want to apply to the new data log. The ID parameter then outputs the ID of the new data log.
The "DataLogClear" instruction deletes all data records in an existing data log. The header of the data log is not deleted (see description of parameter Data structure of the data logs (Page 39)).
The "DataLogDelete" instruction is used to delete a data log from the SIMATIC memory card.
Select the data log to be deleted using the NAME and ID parameters.

Structure and Use of the CPU Memory

40

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging
Note Asynchronous instructions
Note that the instructions in the table are asynchronous instructions.
In contrast to synchronous instructions, this means the execution of an asynchronous instruction can extend over multiple calls before execution is completed. The CPU processes asynchronous instructions in parallel with the cyclic user program.
A CPU can process several asynchronous instruction jobs in parallel. The CPU can process a maximum of 10 jobs of the instructions listed in the table in parallel.
You can find additional information about asynchronous instructions in the following manuals: · System manual S7-1500, ET 200MP
(http://support.automation.siemens.com/WW/view/en/59191792) · System manual ET 200SP Distributed I/O System
(https://support.industry.siemens.com/cs/ww/en/view/58649293) · SIMATIC Drive Controller
(https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual · Operating instructions ET 200pro CPU 1513pro-2 PN
(https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)

3.3.4

Example program for data logging
This example program shows the storing of process values for counter content, temperature, and pressure in a data log.
The example shows the basic functioning of the instructions for data logs. The complete program logic is not shown.
Note General use of data logs · Data logs are automatically opened after execution of the "DataLogCreate" and
"DataLogNewFile" instructions. · Data logs are automatically closed at a change of the CPU from RUN to STOP or a
restart of the CPU. · A data log must be open so that data can be written to the data log with the
"DataLogWrite" instruction. · A maximum of 10 data logs can be open at any one time, even when more than 10 data
logs exist.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

41

Memory usage and application examples 3.3 Memory usage for data logging
Tags of the data block
The following figure shows the tags of the "My_Datalog_Vars" data block. These tags are used by the "Data logging" instructions "DataLogCreate" and "DataLogNewFile". The "MyDataLogName" and "MyNEWDataLogName" tags are called in the NAME block parameter, and give the data logs a name. The "MyData" structure is called in the DATA block parameter and specifies the structure of the csv file. The three MyData tags temporarily store new values. The tag values at these DB addresses are transferred to a data log using the "DataLogWrite" instruction. The "MyDataLogHeaders" tag is called in the HEADER block parameter and specifies a header for the data log.
Figure 3-4 Declaration table with the data block's tags Network 1 A rising edge at REQ starts the creation of the data log.

Figure 3-5 Network 1 42

Structure and Use of the CPU Memory Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging
Network 2 Detect the output DONE of "DataLogCreate", because after the execution of "DataLogCreate" it is only set to 1 for one cycle.
Figure 3-6 Network 2 Network 3 A rising edge triggers the point in time at which new process values are stored in the MyData structure.
Figure 3-7 Network 3 Network 4 The state of the input EN is based on the point in time at which the execution of "DataLogCreate" was completed. One execution of "DataLogCreate" extends over multiple cycles, and must be completed before a write operation is executed. The rising edge at input REQ is the event that triggers an activated write operation.

Figure 3-8 Network 4

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

43

Memory usage and application examples 3.3 Memory usage for data logging
Network 5 Close the data log after the last data record has been written. After execution of the "DataLogWrite" instruction, which writes the last data record, the STATUS output is set to "1".
Figure 3-9 Network 5 Network 6 A rising edge at the input REQ of the instruction "DataLogOpen" simulates that the user presses a button on an HMI device, which opens a data log. If you open a data log in which all records are occupied by process data, then the next execution of the "DataLogWrite" instruction overwrites the oldest data record. You can however also preserve the old data log, and create a new data log instead. This is shown in network 7.

Figure 3-10 Network 6 44

Structure and Use of the CPU Memory Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging
Network 7 The ID parameter is an IN/OUT type. First you indicate the ID value of the existing data log whose structure you want to copy. After the "DataLogNewFile" instruction has been executed, a new and unique ID value for the new data log is written back into the address of the ID reference. The required detection DONE bit = TRUE is not shown. An example for the logic of the DONE bit can be found in networks 1, 2 and 4.

Figure 3-11 Network 7
The data logs created in the example program can be found on the CPU Web server's standard "File browser" Web page in the "\datalogs" folder. The following figure shows the standard Web page of the Web server using the example of the CPU 1516-3 PN/DP.

Figure 3-12 Standard "File browser" web page of the Web server

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

45

Memory usage and application examples 3.3 Memory usage for data logging
In the file browser, you can download the data logs created in the example program. It is not possible to delete or rename the data logs in the Web server. To delete a data log you either use the "DataLogDelete" instruction or you format the SIMATIC memory card. On the DataLogs web page, you can have all the data logs that you created displayed. You can call and empty the relevant data log file by clicking the icon .
Note Manipulation of the data logs using a card reader Do not delete or change the data logs using a card reader on the PG/PC. You can copy the data logs on the SIMATIC memory card, however, using a card reader on the PG/PC. The recommended medium for viewing, downloading (copying) and deleting data logs is the file browser of the web server, however. Direct file access via Windows Explorer brings with it the risk of inadvertent deletion of modification of data logs or system files. This can cause the files to be damaged or the SIMATIC memory card to become unusable.
Figure 3-13 Example - Data logs in the folder "\datalogs" of the file browser

Structure and Use of the CPU Memory

46

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging
Table 3- 2 Downloaded examples of data logs displayed in Microsoft Excel Two data records written in a data log which contains a maximum of five data records.
Five data records written in a data log which contains a maximum of five data records.

After another data record has been written, the 6th write operation overwrites the oldest data record (record 1) with data record 6. Another write operation overwrites data record 2 with data record 7, etc.

3.3.5

Calculation of the data log size
The maximum memory size is allocated when you create the data log. Besides ensuring enough memory space for all the data records, you must take into account the memory space of the following elements for the memory allocation:
 Data log header (if used)
 Time stamp header (if used)
 Data record index header
 Minimum block size
The formula below represents a method to help you determine the estimated size of your data log. Make sure that you observe the rule for the maximum size.
Data bytes of the data log = ((data bytes in a data record + time stamp bytes + 12 bytes) * number of data records)

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

47

Memory usage and application examples 3.3 Memory usage for data logging

Header

Header bytes of the data log = header character bytes + 2 bytes
Header character bytes  No data header and no time stamp = 7 bytes  No data header and time stamp (with time stamp header) = 21 bytes  Data header and no time stamp = Number of character bytes in all column headers
including separating commas  Data header and time stamp (with time stamp header) = Number of character bytes in all
column headers including separating commas + 21 bytes

Data
Data type Any Bool Byte Char Date DInt DTL DWORD Int LDT LReal Real Sint

Data bytes of the data log = ((data bytes in a data record + time stamp bytes + 12 bytes) * number of data records)
Data bytes in a data record
The DATA parameter of the "DataLogCreate" instruction points to a structure. The structure assigns the number of data fields and the data type of each data field for a data log data record.
Multiply the number of the respective data type with the number of bytes required for this data type. Repeat this step for each data type in a data record. Add all the data bytes to obtain the sum of all the data elements in a data record.
Size of the individual data types
The data in data logs is saved as character bytes in csv format (comma separated values). The table below shows the number of bytes that are required to save each data type.
Bytes 10 1 4 1 10 12 31 11 7 31 25 16 5

Structure and Use of the CPU Memory

48

Function Manual, 11/2019, A5E03461664-AD

Memory usage and application examples 3.3 Memory usage for data logging

Data type String
Time Tod UDInt UInt USInt WChar Word

Bytes Example 1: MyString String[10] The maximum character string size is specified with 10 characters. · Text character + automatic filling with spaces = 10 bytes · Quotation marks at the start and end + comma character = 3 bytes 10 + 3 = 13 bytes total Example 2: Mystring2 String If no size is specified in square brackets, 254 bytes are assigned by default. · Text character + automatic filling with spaces = 254 bytes · Quotation marks at the start and end + comma character = 3 bytes 254 + 3 = 257 bytes total 14 12 12 7 5 1 6

Number of data records in a data log
The RECORDS parameter of the "DataLogCreate" instruction specifies the maximum number of data records that can be stored in a data log.

Time stamp bytes in a data record
 No time stamp = 0 bytes  Time stamp = 22 bytes

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

49

Memory usage and application examples 3.3 Memory usage for data logging

Example for size of a CSV file
The figure "Open CSV file" shows a CSV file opened in a spreadsheet program with five written data records in one data log.
The figure "Size of the header and the data records" shows the size of the header used in the CSV file and the size of the individual data records on the SIMATIC memory card.
The figure "Column size" shows the size of the respective columns depending on the data type used.

Open CSV file

Size of the header and the data records

Column size
Each data record also has a separator comma. Therefore, the calculation of the total size per column also includes 1 byte for each separator comma. Note that the calculation of the size of the header, the data records and the columns is not an integral component of the open CSV file. The size information was added manually to illustrate the elements that make up the size of a data log. You can have the total size of a data log you have created as CSV file displayed in the web server on the "DataLogs" page.

Structure and Use of the CPU Memory

50

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card

4

4.1

SIMATIC memory card - Overview

Introduction

The automation system uses a SIMATIC memory card as the program memory. The SIMATIC memory card is a preformatted memory card compatible with the Windows file system. The memory card is available in different memory sizes and can be used for the following purposes:  Transportable data carrier  Program card  Firmware update card  Service data card When you transfer the user program to the CPU via an online connection, it is written to the SIMATIC memory card. The SIMATIC memory card must be in the card slot of the CPU for this. You can also write the SIMATIC memory card in the programming device or PC. A commercially available SD card reader is needed to read or write the SIMATIC memory card with the programming device or PC. You use this, for example, to copy files directly to the SIMATIC memory card with Windows Explorer.
Note The SIMATIC memory card is mandatory for operation of the CPU.

Note
SIMATIC memory cards of the redundant system S7-1500R/H
For the redundant system S7-1500R/H you need a SIMATIC memory card for each of the two CPUs. During redundant operation, both CPUs access the memory cards.
There must be a SIMATIC memory card in each of the CPUs. We recommend the same memory size for each SIMATIC memory card. Both memory cards must have enough memory reserve.

Note
SIMATIC memory card of the SIMATIC Drive Controller
In addition to the CPU data of the SIMATIC Drive Controller, you also store the configuration of the SINAMICS Integrated on the SIMATIC memory card.
A description of how to store the online and offline data can be found in the SIMATIC memory card section of the SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

51

SIMATIC memory card 4.1 SIMATIC memory card - Overview Labeling of the SIMATIC memory card
 Article number  Serial number  Production version  Memory size  Slider for setting the write protection:
· Slider up: not write-protected · Slider down: write-protected Figure 4-1 Labeling of the SIMATIC memory card

Structure and Use of the CPU Memory

52

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.1 SIMATIC memory card - Overview

Folders and files on the SIMATIC memory card
The following folders and files can be found on the SIMATIC memory card:

Table 4- 1 Folder structure

Folder FWUPDATE.S7S SIMATIC.S7S
SINAMICS.S7S**
SIMATIC.HMI DataLogs* Recipes* UserFiles*
Backups DUMP.S7S

Description
Firmware update files for CPU, I/O modules or SINAMICS Integrated** User program, i.e. all blocks (OBs, FCs, FBs, DBs) and system blocks, project data of the CPU SINAMICS Integrated project data The folder structure below the SINAMICS.S7S folder is based on the structure of a SINAMICS S120 memory card. HMI-relevant data DataLog files Recipe files You have to manually create the folder named "UserFiles" on the memory card for your user data. Only files in this folder (*.pdf, *.txt, *.csv, etc) are also loaded into the STEP 7 project with the "Upload device as new station" function. Files for backing up and restoring via the display Service data files

* The content of these folders is also loaded into the STEP 7 project with the "Upload device as new station" function. ** Only with SIMATIC Drive Controllers

Table 4- 2 File structure
File type S7_JOB.S7S SIMATIC.HMI\Backup\*.psb SIMATICHMI_Backups_DMS.bin __LOG__ crdinfo.bin *.pdf, *.txt, *.csv, etc.

Description
Job file Panel backup files Protected file (necessary for use of panel backup files in STEP 7) Protected system file (necessary for use of card) Protected system file (necessary for use of card) Additional file with different formats that you can also store in folders of the SIMATIC memory card If you store the files in the "UserFiles" folder, the files are stored in the STEP 7 project with "Upload device as new station" and can be used, for example, for restoring files in the event of a defective SIMATIC memory card.

Note
Supported file/directory names and hierarchy levels on the SIMATIC memory card
The following rules apply to file names, directory names and hierarchy levels on the SIMATIC memory card:
· Do not use any umlauts (ö, ä, ü, Ö, Ä, Ü) in file and/or directory names.
· Use a maximum of 60 characters for file and/or directory names.
· Use a maximum of 6 hierarchy levels for the directory structure of the SIMATIC memory card (for example: /mountpoint/1/2/3/4/5/6/file.txt). The operating system of the CPU supports directories of no more than 8 levels, where one level is reserved for the mount point and one for the actual file.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

53

SIMATIC memory card 4.1 SIMATIC memory card - Overview
Additional folders and files: CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP The SIMATIC memory card of the CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP also contain the following folders and files:  The following C/C++ runtime containers are located in the "/CppEnv1.MFP" directory on
the SIMATIC memory card and are mounted in the file system in Linux: ­ System.img  Mount point: "/etc/mfp" (system files) ­ User.img  Mount point: "/home" (home directories of users, for
C/C++ runtime application, for example) ­ Data.img  Mount point: "/var/userdata" (e.g. log data)  RAM-Disk  Mount point: "/var/volatile"
Note First-time startup of CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP with empty SIMATIC memory card When the CPU starts up for the first time with an empty SIMATIC memory card, the card is prepared for use with C/C++ runtime. This process takes up to three minutes. Do not turn off the CPU during this phase; the STOP LED flashes.
Note Impact on performance of the CPU 1518-4 PN/DP MFP and CPU 1518F-4 PN/DP MFP Depending on the type of programming, C/C++ runtime applications, such as mass storage accesses to the SIMATIC memory card, can affect the performance of the CPU.
You can find additional information on these CPUs in the CPU 1518-4 PN/DP MFP (https://support.industry.siemens.com/cs/ww/en/view/109749061) manual and the CPU 1518(F)-4 PN/DP MFP (https://support.industry.siemens.com/cs/ww/en/view/109756478) product information. You can find information on creating C/C++ runtime applications in the SIMATIC S7-1500 ODK 1500S (https://support.industry.siemens.com/cs/ww/en/view/109752683) manual.

Structure and Use of the CPU Memory

54

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.1 SIMATIC memory card - Overview
Using the serial number for copy protection
You can set up copy protection for CPUs that binds execution of the block to a specific SIMATIC memory card. You can then only execute the block if it is on the SIMATIC memory card with the specified serial number. You can find additional information about copy protection in the following manuals:  System manual S7-1500, ET 200MP Automation System
(http://support.automation.siemens.com/WW/view/en/59191792)  SIMATIC Drive Controller
(https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual and SINAMICS S120 Drive Functions (https://support.industry.siemens.com/cs/ww/en/view/109763287) function manual  System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293)  Operating instructions ET 200pro CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)
Note Redundant system S7-1500R/H The CPUs of the S7-1500R/H redundant system do not support the copy protection function.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

55

SIMATIC memory card 4.1 SIMATIC memory card - Overview
Removing a SIMATIC memory card from the CPU
Note Do not remove the SIMATIC memory card while a write operation is in progress. If you remove the memory card from the CPU during a write operation, the contents of the memory card may become invalid. The retentivity of the memory areas can then be lost. It may be necessary to delete the memory card from the PG and reload the program.
To remove the memory card, follow these steps:  Turn off the line voltage.
Note If there are no write accesses via the PG, you can even remove the memory card when the power is on and the operating state is STOP. In this case, first disconnect all communication connections as a precaution.
Inserting the SIMATIC memory card in the CPU in STOP state triggers a re-evaluation of the SIMATIC memory card. The CPU compares the content of the configuration on the SIMATIC memory card with the backed-up retentive data. If the backed-up retentive data matches the data of the configuration on the SIMATIC memory card, the retentive data is retained. If the data differs, the CPU automatically performs a memory reset. A memory reset deletes the retentive data on the CPU. After the memory reset, the CPU goes to STOP. With regard to removal of the SIMATIC memory card, note also the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/59457183).
Note Using the SIMATIC memory card as a firmware update card If you use the SIMATIC memory card as a firmware update card, removing and inserting the card will not result in the loss of retentive data.
Removing a SIMATIC memory card from Windows computers
If you are using the card in a commercially available card reader under Windows, use the "Eject" function before you remove the card from the card reader. If you remove the card without using the "Eject" function, you may lose data.

Structure and Use of the CPU Memory

56

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.1 SIMATIC memory card - Overview
Deleting contents of the SIMATIC memory card
You have the following options for deleting the content of the SIMATIC memory card:  Delete files with Windows Explorer  Format with STEP 7
Note Deletion of files and folders is permitted, with the exception of the "__LOG__" and "crdinfo.bin" system files. The CPU needs these system files. When you delete the files, you will no longer be able to use the SIMATIC memory card with the CPU. If you have deleted the "__LOG__" and "crdinfo.bin" system files, format the SIMATIC memory card as described in the following section.
Formatting a SIMATIC memory card
NOTICE Formatting the SIMATIC memory card Do not format the memory card with Windows tools. Formatting with Windows renders the memory card unusable by a CPU initially. You can find information on how to repair an inconsistent or incorrectly formatted card in the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/69063974).
To free up memory space on your SIMATIC memory card, you have the option of formatting the SIMATIC memory card. During formatting, the entire content of the memory card is deleted. The SIMATIC memory card may only be formatted in the CPU. With a SIMATIC memory card inserted, follow these steps:
Formatting with STEP 7:  Establish an online connection.  Open the online and diagnostics view of the CPU (either from the project context or via
"Accessible devices").  In the dialog window select "Functions > Format memory card" and then select the
"Format" button. Formatting via the display of the CPU  In the display of the CPU, select the menu "Settings" > "Card functions" > "Format card"
and confirm with OK.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

57

SIMATIC memory card 4.2 Setting the card type
Changing the memory card without loss of retentive data
You can change the memory card or use a larger SIMATIC memory card without losing the retentive data. When you switch off the CPU, the retentive data is backed up in the retentive memory of the CPU. While the CPU is switched off, you can remove the memory card and copy its content to a larger memory card. After switching on the CPU, the data backed up in the CPU when the CPU was switched off is restored.

4.2

Setting the card type

Introduction

You can use the SIMATIC memory card as a program card or as a firmware update card.

Procedure using STEP 7
1. To set the card type, insert the SIMATIC memory card into the card reader of the programming device.
2. Select the "SIMATIC Card Reader" folder in the project tree.
3. In the properties of the selected SIMATIC memory card, specify the card type:
 Program card
You use a program card as an external load memory for the CPU. It contains the complete user program for the CPU. The CPU transfers the user program from the load memory to the work memory. The user program runs in the work memory.
The following folders are created on the SIMATIC memory card:
­ SIMATIC.S7
­ SINAMICS.S7S (only with SIMATIC Drive Controller)
 Firmware update card
You can save firmware for a CPU and for I/O modules on a SIMATIC memory card. This enables you to perform a firmware update with the help of a specially prepared SIMATIC memory card.
The following folder is created on the SIMATIC memory card: FWUPDATE.S7S

Reference

You can find additional information in the STEP 7 online help.

Structure and Use of the CPU Memory

58

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.2 Setting the card type
Procedure using the job file
You can also set whether the SIMATIC memory card works as a program card or a firmware update card via the job file S7_JOB.S7S on the SIMATIC memory card. Entry in the job file:  PROGRAM: The SIMATIC memory card is used as a program card  FWUPDATE: The SIMATIC memory card is used as a firmware update card Proceed as follows: 1. Open the job file S7_JOB.S7S with an editor. 2. Overwrite the PROGRAM entry with FWUPDATE using the editor (or vice versa).
Do not use spaces, line breaks, or quotation marks. 3. Save the file under the existing file name.
Program card incl. firmware update files
If, for example, you want to deliver your project with a firmware that you have validated, you can store program data and firmware update files together on the memory card. Your customers then have the opportunity to upgrade the CPU to exactly this firmware version.
Note Note that depending on the tool used (e.g. STEP 7, Display, Web server), the firmware update files are also deleted when the "Program card" is reset.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

59

SIMATIC memory card 4.3 Data transfer with SIMATIC memory cards

4.3

Data transfer with SIMATIC memory cards

Saving objects from the project to the SIMATIC memory card
When the SIMATIC memory card is inserted in the programming device or in the external card reader, you can save the following objects from the project tree (STEP 7) to the SIMATIC memory card:
 Individual blocks (multiple selection possible) In this case, the transfer is consistent, i.e. the function takes dependencies between blocks due to block calls into account.
 CPU folder In this case, all the runtime-relevant objects, such as blocks and the hardware configuration, are saved to the SIMATIC memory card, just as with downloading.
 Service data In this case, the service data saved beforehand is saved to the SIMATIC memory card. You will find additional information on the service data in the following manuals:
­ System manual S7-1500, ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792)
­ System manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833)
­ SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual
­ System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293)
­ Operating instructions ET 200pro CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416).
You have the following options for performing the save operation:
 Save the objects using drag-and-drop.
 Use the "Card Reader/USB memory > Write to memory card" command in the "Project" menu.

Structure and Use of the CPU Memory

60

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.3 Data transfer with SIMATIC memory cards
Saving trace recordings to the SIMATIC memory card
The "Save measurements on device (memory card)" function allows you to save trace recordings on your SIMATIC memory card. Note Redundant system S7-1500R/H The CPUs of the redundant system S7-1500R/H do not support the saving of measurements on the SIMATIC memory card.
To access the corresponding dialog, proceed as follows: 1. In the project tree, select the "Traces" > "Trace". 2. In the work area, select "Configuration" > "Recording conditions" > "Measurements in the
device (memory card)" Response when number reached "Deactivate recording" repeats the measurements until the configured "Number of measurements" is reached. "Overwrite oldest recording" replaces the oldest measurement with the latest measurement when the configured "Number of measurements" is reached. Note, however, that continuously writing data to the SIMATIC memory card shortens its service life.
Figure 4-2 Dialog of settings for saving measurements on the memory card in STEP 7

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

61

SIMATIC memory card 4.3 Data transfer with SIMATIC memory cards

Number of measurements
The CPU supports a maximum of 999 measurements. The CPU writes the trace recordings to the load memory of the memory card. Meanwhile, the CPU pauses the checking of trigger conditions for the trace job. Once the CPU finishes saving the trace recordings, the CPU continues checking the trigger conditions.
NOTICE
Memory required on the SIMATIC memory card
When the trace function "Measurements on device (memory card)" requires more memory than is available on the SIMATIC memory card, undesired effects may result. Ensure there is always sufficient free memory space to use the "Measurements on device (memory card)" function.
In addition to the "Measurements on device (memory card)" trace function, other functions such as storing data logs use memory space on the SIMATIC memory card. Ensure there is always sufficient memory space available for all functions that use memory.
You can find additional information about trace measurements and trace recordings in the following:
 Function manual Using the Trace and Logic Analyzer Function (http://support.automation.siemens.com/WW/view/en/64897128)
 Function manual Web Server (http://support.automation.siemens.com/WW/view/en/59193560)
 STEP 7 online help

Firmware update using SIMATIC memory card
You can find information on how to perform a firmware update in the following:
 System manual S7-1500, ET 200MP Automation System (http://support.automation.siemens.com/WW/view/en/59191792)
 System manual Redundant System S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833)
 In the SIMATIC Drive Controller (https://support.industry.siemens.com/cs/ww/en/view/109766665) system manual
 System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293)
 Operating instructions ET 200pro CPU 1513pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109769507) and ET 200pro CPU 1516pro-2 PN (https://support.industry.siemens.com/cs/ww/en/view/109482416)

Reference

You can find additional information about the SIMATIC memory card in the STEP 7 online help.

Structure and Use of the CPU Memory

62

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.4 Service life of the SIMATIC memory card

4.4

Service life of the SIMATIC memory card

Calculation of the theoretical service life of a SIMATIC memory card serves as a decisionmaking aid for selecting which card you need for your automation task. The following examples only return a guide value, however. A precise calculation of the service life is not possible due to the fact that the description cannot cover all the theoretically possible scenarios.

Influences on the service life
You can influence the service life of SIMATIC memory cards by the following factors:  Card size and number of guaranteed write operations  Number of actual write operations
The number of physical write operations to the memory blocks of the card results from the number of write operations from the application.

Structure of a SIMATIC memory card
The internal flash memory of the SIMATIC memory card is organized in memory blocks. A memory block is a memory area of a fixed size. A write operation always addresses entire memory blocks on the SIMATIC memory card. When a memory block has been written once it must be deleted before it can be written again. The number of delete/write operations per memory block is limited. The service life of the SIMATIC memory card is measured by the maximum number of supported delete or write operations per memory block.
In contrast to delete or write operations, read operations have a negligible impact on the service life. Therefore, the impact of the read operations on the service life is not included in this calculation. A very high number of read operations can, however, influence the service life to a small extent.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

63

SIMATIC memory card 4.4 Service life of the SIMATIC memory card

Maximum number of write/delete operations
The internal controller of the memory card ensures that the available memory blocks are evenly used. In this way, a maximum number of write operations is possible on the SIMATIC memory card. Internal algorithms distribute the write accesses to the same logical memory area over changing physical memory areas in order to use the memory blocks evenly.
The following table shows the maximum possible number of write/delete operations as a function of the SIMATIC memory card used. The number of maximum write/delete operations of the respective SIMATIC memory card is also available online in the technical specifications of the respective SIMATIC memory card.

Memory size of the SIMATIC memory card * 4 MB 12 MB 24 MB 256 MB 2 GB 2 GB 32 GB

Article number
6ES7954-8LCxx-0AA0 6ES7954-8LExx-0AA0 6ES7954-8LFxx-0AA0 6ES7954-8LL03-0AA0 6ES7954-8LP01-0AA0 6ES7954-8LP02-0AA0 6ES7954-8LT03-0AA0

Max. number of write/delete operations per memory block 500 000 500 000 500 000 200 000 100 000 60 000 100 000

* The memory size figures named in the table are theoretical values. The actual existing memory size in practice is below the theoretical value. The reason for this is that the internal controller of the card and the file system reserve part of the existing memory for internal memory management.

Note Write or delete operations Write or delete operations, particularly repeated (cyclic) write/delete operations by the user program on the SIMATIC memory card reduces its service life. Cyclic execution of the following instructions reduces the service life of the memory card depending on the number of write operations and data: · "CREATE_DB" (with ATTRIB "Create DB in load memory") · "DataLogWrite" · "RecipeExport" · "RecipeImport" (if target DB in load memory) · "WRIT_DBL" · "SET_TIMEZONE"
Note also that, in addition to the cyclic write/delete operations, the writing or deleting of very large amounts of data also adversely affects the service life of the SIMATIC memory card.

Note Redundant system S7-1500R/H The CPUs of the S7-1500R/H redundant system do not support the instructions specified in the "Write or delete operations" note.

Structure and Use of the CPU Memory

64

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.4 Service life of the SIMATIC memory card
Guaranteed data retention time
If you do not use your SIMATIC memory card for an extended period of time, there is the risk that data contained on the memory card may no longer be readable after a certain amount of time. The guaranteed data retention time of a SIMATIC memory card is 10 years on delivery and with proper storage. With a number of  10% of the maximum write/delete operations, the data stored on the card has a retention time of 10 years. Please note that increasing numbers of write/delete operations to the card reduces its data retention time. If 90% of the maximum write/delete operations is reached, the guaranteed data retention time is reduced to 1 year. If 100% of the maximum write/delete operations is reached, the retention time of the saved data can no longer be guaranteed.
Determining the current usage level of a SIMATIC memory card in STEP 7
When you activate the "Aging of the SIMATIC memory card" option, you enter a threshold value as a percentage in the text box below. As soon as the service life of the SIMATIC memory card has reached the specified threshold value (e.g.: 80 %), the CPU outputs a diagnostics alarm and the MAINT LED lights up in yellow.
Figure 4-3 Enabled option "Aging of the SIMATIC memory card"

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

65

SIMATIC memory card 4.4 Service life of the SIMATIC memory card
Calculation of the theoretical service life of a SIMATIC memory card
We will use the following example as a basis for calculation: The user is using a new 256 MB memory card. In accordance with the table, this memory card type supports 200 000 write operations. After parameter changes, the user would like to write 200 DBs of 5 KB each to the SIMATIC memory card at a frequency of 50 times per day with the "RecipeExport" instruction. Step 1: Calculating the write operations First use the following formula to calculate the service life of the SIMATIC memory card:
We first use the sizes from the example in the formula "Write operations" as a basis for calculating the service life:  Size of the memory card: 256 MB = 268 435 456 bytes  Maximum number of write operations: 200 000  Number of written bytes: 1024 000 bytes (200 x 5 KB) If we use the sizes from the example in the formula, we obtain the following result:
Step 2: Calculating the service life Use the following formula to calculate the service life in years:
Note Net-gross factor Internal data (metadata) are also written to the SIMATIC memory card with each write operation. Due to this additional data, include the net-gross factor 100 when calculating the service life.
If we use the sizes from the example in the formula, we obtain the following result:

Structure and Use of the CPU Memory

66

Function Manual, 11/2019, A5E03461664-AD

SIMATIC memory card 4.4 Service life of the SIMATIC memory card

Calculation with more frequent write accesses and a higher number of bytes written
If the frequency of write accesses and the number of bytes written per day increases, the service life of the SIMATIC memory card is reduced.
The following table shows, based on empirical values, how the service life of a SIMATIC memory card with a size of 256 MB is reduced

Write accesses per day
50 100 400 400 400

Number of bytes written per instruction
1 024 000 1 024 000 1 024 000 2 048 000 4 096 000

Service life of the SIMATIC memory card in years 28.7 14.3 3.6 1.8 0.9

The following table shows how the same values impact the service life of a SIMATIC memory card with a size of 2 GB (6ES7954-8LP01-0AA0).

Write accesses per day
50 100 400 400 400

Number of bytes written per instruction
1 024 000 1 024 000 1 024 000 2 048 000 4 096 000

Service life of the SIMATIC memory card in years 114.9 57.5 14.4 7.2 3.6

The result shows that a high number of write accesses together with a high number of written bytes significantly shortens the service life of the SIMATIC memory card.

Reference

You can find an alternative method for calculating the service life of a SIMATIC memory card in an FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109482591).

GetSMCinfo instruction
When the SIMATIC memory card inserted, you can read out the following information in STEP 7 (TIA Portal) using the GetSMCinfo instruction:
 Memory size in (1 KB = 1 024 bytes)
 Memory space occupied in (1 KB = 1 024 bytes)
 Maintenance information: Previously used up portion of the service life in %
 Configured percentage of service life after which the CPU creates a diagnostics buffer entry.
You can find additional information on the GetSMCinfo instruction in the STEP 7 online help.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

67

SIMATIC memory card 4.5 Expanding the load memory of the CPUs of the redundant system S7-1500R/H

4.5

Expanding the load memory of the CPUs of the redundant system

S7-1500R/H

Memory requirements
If the memory space on one of the two SIMATIC memory cards is not sufficient, you can replace this card during operation of the redundant system S7-1500R/H.
Note To avoid errors on the SIMATIC memory card due to insufficient memory, use memory cards with enough memory space.

Expanding the load memory during operation
To expand the load memory of the CPUs of the redundant system S7-1500R/H during operation, follow these steps:

Action 1. Switch the first CPU to STOP while in redundant operation.
2. Remove the existing SIMATIC memory card from the CPU that is in STOP. Insert a larger SIMATIC memory card.
3. After the memory reset switch the CPU back to RUN. 4. Wait until the SYNCUP of the CPU is complete and then switch the
second CPU to STOP. 5. Remove the existing SIMATIC memory card from the CPU that is in
STOP. Insert a larger SIMATIC memory card. 6. After the memory reset, switch the CPU back to RUN. 7. Wait until the SyncUp of the CPU is complete.

System response The system changes to system state RUNSolo. The CPU performs a memory reset.
The CPU performs a SYNCUP. The system changes to system state RUNSolo again. The CPU performs a memory reset.
The CPU performs a SYNCUP. The CPUs now have a larger load memory and are in system state RUN-Redundant again.

Structure and Use of the CPU Memory

68

Function Manual, 11/2019, A5E03461664-AD

Glossary

Backup CPU

When the R/H system is in RUN-Redundant system state, the Primary CPU controls the process. The Backup CPU synchronously executes the user program and can take over the process control at a failure of the Primary CPU.

Bit memory

Bit memory is a component of the system memory of the CPU for saving intermediate results. You access the bit memory from the user program in bit, byte, word or double-word mode.

Code block

In SIMATIC S7, a code block contains a portion of the STEP 7 user program.

Consistent data
Consistent data is data whose content belongs together. Consistent data is read and written contiguously.

Counter

Counters are components of the system memory of the CPU. You can modify the content of the "counter cells" using STEP 7 instructions. Example: Count up or down.

Data block

Data blocks (DBs) are data areas in the user program that contain user data. The following data blocks are available:
 Global data blocks that you access from all code blocks.
 Instance data blocks that are assigned to a particular FB call.

Data log

Data logs are CSV files for the saving of tag values. The data logs are stored on the SIMATIC memory card in the "\datalogs" directory. Instructions in the user program write data records of tag values to a data log.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

69

Glossary

Diagnostics

Monitoring functions include:  Detection, localization, classification of errors, faults and alarms.  Display and further evaluation of errors, faults and alarms. The monitoring functions run automatically during system operation. This increases the availability of systems because commissioning times and downtimes are reduced.

Diagnostics buffer
The diagnostics buffer is a buffered memory area in the CPU in which diagnostics events are stored in their order of occurrence.

Firmware of the CPU
In SIMATIC, a distinction is made between the firmware of the CPU and user programs.
Firmware is software that is embedded in electronic devices, i.e. functionally connected permanently to the hardware. It is usually saved in a flash memory, EPROM, EEPROM or ROM and cannot be replaced by the user or can only be replaced with special tools or functions.
User program: see glossary entry "User program"

Firmware update
You use a firmware update to update the firmware of modules. A firmware update is performed, e.g. for functional extensions of a CPU or interface module.

Function block

A function block (FB) is a code block with static data. An FB allows you to pass parameters in the user program. Function blocks are thus suited for programming frequently recurring complex functions, such as closed-loop controls or operating states selection.

Global data block (DB)
Every function block, every function, and every organization block can read the data from a global data block, or write its own data to a global data block. This data is retained in the data block, even when the data block is exited.

I/O module

Device of the distributed I/O that is used as an interface between the controller and the process.

Structure and Use of the CPU Memory

70

Function Manual, 11/2019, A5E03461664-AD

Glossary

Instance data block (DB)
Each call of a function block in the STEP 7 user program is assigned a data block that is automatically generated. Values of the input, output and in/out parameters, as well as local block data, are stored in the instance data block.

IP address

The IP address is made up of four decimal numbers, each with a value range of 0 to 255. The decimal numbers are separated by a dot (e.g. 192.162.0.0). The IP address consists of the following:  Address of the network  Device address (PROFINET interface of the IO controller/IO devices)

Local data

This memory area accepts the temporary local data of a block for the duration of processing.

Memory reset

Procedure for setting the memories of the CPU to a defined initial state.

Operating states
Operating states describe the behavior of an individual CPU at any given point in time.
The CPUs of the SIMATIC standard systems feature the STOP, STARTUP and RUN operating states.
The primary CPU of the redundant system S7-1500R/H has the operating states STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating states STOP, SYNCUP and RUN-Redundant.

Optimized block access
Data blocks with optimized access have no fixed structure. In the declaration, the data elements only receive a symbolic name, and no fixed address within the block. The elements are automatically arranged in the block's available memory area in such a way that its capacity is optimally exploited.
In these data blocks, you can only address tags symbolically. For example, you would access the "FillState" tag in the "Data" DB as follows:
"Data".FillState
Optimized access offers the following advantages:
 The data is structured and saved in a manner that is optimal for the CPU used. This allows you to increase CPU performance.
 Access errors, e.g. from the HMI, are not possible.
 You can selectively define individual tags as retentive.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

71

Glossary

Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The organization blocks determine the order in which the user program is executed.

Parameter

 Variable of a STEP 7 code block
 Variable for setting the behavior of a module (one or more per module). In delivery state, each module has an appropriate basic setting that can be changed by configuring in STEP 7. There are static and dynamic parameters.

Parameters, dynamic
In contrast to static parameters, you can change dynamic parameters of modules during operation by calling an SFC in the user program, e.g. limit values of an analog input module.

Parameters, static
In contrast to dynamic parameters, you cannot change static parameters of modules with the user program but only by configuring in STEP 7, e.g. input delay of a digital input module.

Primary CPU

When the R/H system is in RUN-Redundant system state, the Primary CPU controls the process. The Backup CPU synchronously executes the user program and can take over the process control at a failure of the Primary CPU.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then reads the signal states of the input modules to the process image of the inputs. Then the CPU executes the user program.

Redundant systems
Redundant systems are characterized in that important automation components are present multiple times (redundantly). Process control is maintained if a redundant component fails.

Reset to factory settings
Resetting to factory settings restores the CPU settings to the delivery state.

Structure and Use of the CPU Memory

72

Function Manual, 11/2019, A5E03461664-AD

Glossary

Restart

A restart (warm restart) deletes all non-retentive bit memory and resets non-retentive DB contents to the start values from the load memory. Retentive bit memory and retentive DB contents are retained. Program execution begins at the call of the first startup OB.

Retentivity

A memory area whose content is retained after power failure and after a transition from STOP to RUN is retentive. The non-retentive bit memory area, timers and counters are reset after power failure and after a STOP to RUN transition.

SIMATIC memory card
Memory for the user program for programmable modules and communications processors. You can also use the SIMATIC memory card for exchange of user software and user data.

Standard access
Data blocks with standard access have a fixed structure. In the declaration, the data elements contain both a symbolic name and a fixed address within the block. The address is displayed in the "Offset" column.
In these data blocks, you can address tags both symbolically and absolutely:
"Data".FillState
DB1.DBW2

System states

The redundant S7-1500R/H system has various system states. The system states result from the operating states of the Primary and Backup CPUs. The concept of the system state is used to obtain a simplified expression that characterizes the simultaneously occurring operating states of the two CPUs. The following system states are available for the redundant system S7-1500R/H: STOP, STARTUP, RUN-Solo, SYNCUP and RUNRedundant.

Timer

Timers are components of the system memory of the CPU. The operating system automatically updates the content of the "timer cells" asynchronously to the user program. STEP 7 instructions specify the precise function of the timer cell (e.g. on delay) and trigger its execution.

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

73

Glossary

User program

In SIMATIC, a distinction is made between user programs and the firmware of the CPU.
The user program contains all instructions, declarations and data that enable a plant or process to be controlled. The user program is assigned to a programmable module (e.g. CPU, FM) and can be structured in smaller units.
Firmware: see glossary entry "Firmware of the CPU"

Structure and Use of the CPU Memory

74

Function Manual, 11/2019, A5E03461664-AD

Index

B
Bit memory, 24
C
C/C++, 12, 54 Counter, 24
D
Data block, 22, 27 Data logging
Data structure, 39 DataLogCreate, 39 Example program, 42 Overview of data logging, 37 Data retention time, 65 Diagnostics buffer, 26 Display, 19, 53, 57 Disposal, 5
F
FAQ Calculate service life SMC, 67 Configure data blocks, 34 Estimating memory requirements, 17 Formatting a SIMATIC memory card, 57 Insufficient load memory, 32 Load project data in load memory, 32 Removing a SIMATIC memory card, 56 Repairing the SIMATIC memory card, 57 Using recipe phases, 37
Function block, 22
I
Instructions Asynchronous, 36, 41 CREATE_DB, 23 DataLogClear, 40 DataLogClose, 40 DataLogCreate, 39, 40, 48 DataLogDelete, 40

DataLogNewFile, 40 DataLogOpen, 40 DataLogWrite, 40 GetSMCinfo, 67 READ_DBL, 33 RecipeExport, 35 RecipeImport, 36 WRIT_DBL, 33
L
Linux, 12, 54 Load memory, 12 Load memory S7-1500/H-CPUs, 68
M
Memory reserve, 27
O
Offline project, 14, 16 Offline project data, 11 Online project data, 11 Operating hours counter, 26
P
PLC tags, 26
R
Redundancy ID, 15 Redundant S7-1500R/H system, 68 Retentive data, 15, 56, 58 Retentive memory, 11, 13, 21
S7-1500R/H-CPUs, 15 Runtime, 12, 54
S
Scope, 4 SIMATIC memory card, 51, 58, 60
Basics, 51 Firmware card, 58

Structure and Use of the CPU Memory

Function Manual, 11/2019, A5E03461664-AD

75

Index
Possible applications, 60 Program card, 58 Repairing, 57 Updating firmware, 62 Software change, 26
T
Technology objects, 23 Timer, 24 Trace recordings, 61
W
Web server, 12, 20, 45, 62 Work memory, 11, 13

Structure and Use of the CPU Memory

76

Function Manual, 11/2019, A5E03461664-AD

Web server

Preface

Function manuals Documentation Guide

1

SIMATIC

General information

2

S7-1500, SIMATIC Drive Controller, Web pages

3

ET 200SP, ET 200pro

Web server

Function Manual

11/2019
A5E03484625-AG

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03484625-AG  10/2019 Subject to change

Copyright © Siemens AG 2012 - 2019. All rights reserved

Preface
Purpose of the documentation
This documentation supports you in the operation of the Web server. The Web server offers, among other things, web page access to diagnostic data and to process data of the CPU.
Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge in the field of automation technology  Knowledge of the SIMATIC industrial automation system  Experience of working with Windows-based computers  Knowledge about how to use STEP 7 (TIA Portal)
Scope of the documentation
This documentation is valid for CPUs as of firmware version V2.5 and contains illustrations of the Web server user interface. The illustrations used can be transferred to the following CPUs:  The CPUs of the SIMATIC S7-1500 automation system  The CPUs of the SIMATIC Drive controller  The CPUs of the ET 200SP Distributed I/O System  The CPUs 1516pro-2 PN and 1513pro-2 PN of the ET 200pro distributed I/O system The displayed illustrations can differ from the interface of the Web server in some details, e.g. depending on the browser used.

Web server

Function Manual, 11/2019, A5E03484625-AG

3

Preface

What's new in the Web Server function manual, Version 11/2019 compared to Version 12/2017

What's new? New contents

The CPU has an API (Application Programming Interface) as an interface for:
· Reading and writing CPU data
· Executing functions (e.g. backing up and restoring the CPU configuration, changing the operating state)
The Web API supports all common browsers and command line programs, such as cURL and Wget.

What are the customer benefits?
· Established standard mechanisms for creating Web pages:
Automation Web Programming commands (AWP commands) are no longer required for output of CPU data
· No dependency between custom Web pages and CPU program:
No synchronization between user program and Web server required by the SFC 99 instruction
· Lower communication load:
A smaller data packet is transferred between server and client (JSON instead of HTML of the custom Web page generated by the CPU). This improves the communication performance. The CPU needs less runtime to generate the information and make it available.
· Secure data traffic:

Where can I find information?
Section API (Application Programming Interface) (Page 158)

the Web API only supports the transmission protocol "HTTPS"

Changed contents

Scope of the function manual expanded to include the CPUs of the SIMATIC Drive Controller

Webserver functions which you are familiar with from the CPUs of the SIMATIC S7-1500 can now also be used on the CPUs of the SIMATIC Drive Controller.

· System Manual SIMATIC Drive Controller (https://support.industry.sie mens.com/cs/ww/en/view/1 09766665)
· Manual SIMATIC Drive Controller (https://support.industry.sie mens.com/cs/ww/en/view/1 09766666)

Web server

4

Function Manual, 11/2019, A5E03484625-AG

Preface

What's new in the Web Server function manual, Version 12/2017 compared to Version 09/2016

What's new? New contents
Changed contents

What are the customer benefits?

Where can I find the information?

New web page "User files"

You can download ASCII files (files in binary format) from the SIMATIC Memory Card, directory UserFiles\ to the web page and delete them.

Section User files (Page 115)

Time display as Coordinated The display of the UTC allows you to use

Universal Time (UTC) or as a uniform time for the web pages.

PLC local time

You can set the format of the time display

to Coordinated Universal Time (UTC) or

PLC local time (default setting).

Section Start page with general CPU information (Page 33)

Automated downloading, reading out and archiving of DataLogs

You can, for example, read out and archive DataLogs daily from one or more CPUs at a specific time via the Web server.

Section Automated reading out of data logs (Page 113)

Automatic downloading of DataLogs is realized either by the execution of scripts in, for example, Bash or via JavaScript on your HTML user page.

The "Permit access only with HTTPS" check box is activated in the default setting of a configured CPU.

The web pages are transmitted by default Section Configuring the Web via a secure connection and are protected server (Page 19) from attacks by third parties.

Web page "Module information": New column Device number

You can read the assignment of the device number to the device name.

Section Module information (Page 57)

Web page "Topology": Selection of the available PROFINET interfaces, for example X1, X2, CM 1542-1

You can select the topology display for the PROFINET interfaces X1, X2 and for connected PROFINET communication modules.

Section Topology (Page 72)

Web page "DataLogs": New You can delete DataLog files via the Web column for deleting DataLog server. files

Section DataLogs (Page 112)

Web page "Record": Changes in the display of Trace recordings

You can evaluate the Trace recordings in more detail through the extension of the display.

Section Record (Page 92)

Web page "Record": New arithmetic functions

In the case of completed measurements you can combine the measured signals mathematically with each other and this generate signals that were not recorded.

You can, for example, form the difference of two signals in order to better display the deviation of the current pressure of a boiler from the set setpoint value.

Web server

Function Manual, 11/2019, A5E03484625-AG

5

Preface

What's new in the Web Server function manual, Version 09/2016 compared to Version 12/2014

What's new? New contents

Handling of certificate modified
Four additional languages for the Web server interface

What are the customer benefits?

Where can I find the information?

You protect the web server connection against tapping or distortion of the communication through access via the secure transmission protocol "HTTPS" including a special web server certificate.

Section Configuring the Web server (Page 19)

You can set the Web server interface to the following languages:

Section Start page with general CPU information (Page 33)

· Korean

· Russian

· Turkish · Portuguese (Brazil)

Assignment of different project languages extended
"Start page" web page extended
"Diagnostics" web page extended by one tab: · "Program protection" · "Runtime information" · "Fail-safe" (with an F-
CPU)

You can assign up to three different project languages for comments, alarm texts and diagnostic information to the user interface languages of the Web server.
The display of the TIA project name immediately indicates whether the desired project is selected.
Here you can find information about:
· Know-how protection or copy protection of the PLC program
· Program/communication load and cycle time
· F-collective signatures, cycle times and runtimes of the F-runtime group(s)

Section Language settings (Page 29)
Section Start page with general CPU information (Page 33)
Section Diagnostics (Page 38)

"Alarms" web page extended
"Tag status" and "Watch tables" web pages extended

You can acknowledge alarms of the CPU via the Web server.
You can change the value of tags and write them to the CPU, also using the absolute address.

Section Alarms (Page 65)
· Section Tag status (Page 82)
· Section Watch tables (Page 85)

New web page "Online backup"
New "Motion Control diagnostics" web page
New "Record" web page

You can back up and restore the CPU configuration to/from the SIMATIC memory card via the Web server.

Section Online backup (Page 87)

You can monitor statuses, errors, technology alarms and the current values of configured technology objects (TOs) with the Web server without STEP 7.

Section Motion Control diagnostics (Page 49)

You can read, view and save trace recordings via the Web server and thus obtain plant and project information for diagnostics and maintenance without STEP 7.

Section Record (Page 92)

Web server

6

Function Manual, 11/2019, A5E03484625-AG

Preface

What's new?
Changed contents

What are the customer benefits?

Where can I find the information?

Extension of the validity

Functions that you will be familiar with

·

range of the function manual from the SIMATIC S7-1500 CPUs are

to the CPUs of the ET

implemented in CPUs in other designs

200SP distributed I/O sys- (ET 200SP) and in the CPU 1516pro-2 PN

tem and the CPU 1516pro-2 (degree of protection IP65, IP66 and

PN

IP67).

·

Manual CPU 1510SP-1 PN (https://support.industry.sie mens.com/cs/ww/en/view/9 0157130)
Manual CPU 1512SP-1 PN (https://support.industry.sie mens.com/cs/ww/en/view/9 0157013)

· Operating instructions CPU 1516pro-2 PN (https://support.industry.sie mens.com/cs/ww/en/view/1 09482416)

Web page "Watch tables": Note added on the maximum configuration limits.
Web page "User pages": Note added on the maximum size of the HTML pages.

Section Watch tables (Page 85)
Section User pages (Page 120)

Conventions

In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Web server

Function Manual, 11/2019, A5E03484625-AG

7

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Web server

8

Function Manual, 11/2019, A5E03484625-AG

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

Web server

Function Manual, 11/2019, A5E03484625-AG

9

Table of contents

Preface ................................................................................................................................................... 3

1 Function manuals Documentation Guide ............................................................................................... 12

2 General information .............................................................................................................................. 14

2.1

Properties of the Web server ................................................................................................. 14

2.2

Configuring the Web server ................................................................................................... 19

2.3

Language settings.................................................................................................................. 29

2.4

Updating and saving information ........................................................................................... 32

3 Web pages ........................................................................................................................................... 33

3.1

Start page with general CPU information .............................................................................. 33

3.2

Diagnostics............................................................................................................................. 38

3.3

Diagnostics buffer .................................................................................................................. 48

3.4

Motion Control diagnostics..................................................................................................... 49

3.5

Module information ................................................................................................................ 57

3.6

Firmware update .................................................................................................................... 62

3.7

Alarms .................................................................................................................................... 65

3.8

Communication ...................................................................................................................... 67

3.9 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5

Topology ................................................................................................................................ 72 Introduction ............................................................................................................................ 72 Graphical view........................................................................................................................ 73 Tabular view ........................................................................................................................... 76 Status overview...................................................................................................................... 78 Examples for graphical topology views.................................................................................. 79

3.10

Tag status .............................................................................................................................. 82

3.11

Watch tables .......................................................................................................................... 85

3.12

Online backup ........................................................................................................................ 87

3.13

Record.................................................................................................................................... 92

3.14 3.14.1

DataLogs .............................................................................................................................. 112 Automated reading out of DataLogs .................................................................................... 113

3.15 3.15.1

User files .............................................................................................................................. 115 Automatically read or upload user files ................................................................................ 117

Web server

10

Function Manual, 11/2019, A5E03484625-AG

Table of contents

3.16 3.16.1 3.16.1.1 3.16.1.2 3.16.1.3 3.16.1.4 3.16.1.5 3.16.1.6 3.16.2 3.16.3 3.16.4 3.16.5 3.16.5.1 3.16.5.2 3.16.5.3 3.16.5.4 3.16.5.5 3.16.5.6

User pages............................................................................................................................120 AWP commands ...................................................................................................................124 PLC tags ...............................................................................................................................125 Special tags ..........................................................................................................................129 Enum types ...........................................................................................................................131 Fragments .............................................................................................................................133 Arrays .................................................................................................................................... 135 Structures .............................................................................................................................. 136 Configuring user pages.........................................................................................................138 Programming the WWW instruction......................................................................................139 Defining the user page as start page....................................................................................141 Example of a user page ........................................................................................................143 Website for monitoring and controlling a wind turbine..........................................................143 Reading and displaying data from the CPU..........................................................................145 Using enum types .................................................................................................................147 Writing user inputs into the controller ...................................................................................148 Writing special tags...............................................................................................................149 HTML code of the user page "Remote Wind Turbine Monitor" ............................................150

3.17

Filebrowser ...........................................................................................................................154

3.18

Reading out service data ......................................................................................................155

3.19

Basic websites ......................................................................................................................156

3.20 3.20.1 3.20.2 3.20.2.1 3.20.2.2 3.20.2.3 3.20.2.4 3.20.2.5 3.20.2.6 3.20.2.7 3.20.3 3.20.4 3.20.5 3.20.5.1 3.20.5.2 3.20.5.3 3.20.5.4 3.20.5.5 3.20.6

API (Application Programming Interface) .............................................................................158 Web API ................................................................................................................................158 The available Web API methods ..........................................................................................161 Api.Login ...............................................................................................................................162 Api.GetPermissions ..............................................................................................................163 Api.Browse ............................................................................................................................164 Api.Version ............................................................................................................................ 165 Api.Ping ................................................................................................................................. 165 Api.GetCertificateUrl .............................................................................................................166 Api.Logout .............................................................................................................................166 Web API integration ..............................................................................................................166 Web API sessions.................................................................................................................169 Read and write process data ................................................................................................170 Supported data types............................................................................................................170 Parameter assignment of the block properties .....................................................................175 PlcProgram.Read .................................................................................................................. 176 PlcProgram.Write ..................................................................................................................177 PlcProgram.Browse ..............................................................................................................179 Website for monitoring and controlling a wind turbine..........................................................183

Glossary ............................................................................................................................................. 196

Index................................................................................................................................................... 200

Web server

Function Manual, 11/2019, A5E03484625-AG

11

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Web server

12

Function Manual, 11/2019, A5E03484625-AG

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Web server

Function Manual, 11/2019, A5E03484625-AG

13

General information

2

2.1

Properties of the Web server

Benefits of the Web server
The Web server enables monitoring and administering of the CPU by authorized users over a network. Evaluations, diagnostics, and modifications are thus possible over long distances. Monitoring and evaluation is possible without STEP 7, only a web browser is required. Note that you must take appropriate measures to protect the CPU from compromise (such as restricting network access, using firewalls).

Activating the Web server
The web server is deactivated in the delivery state of the CPU. This means that you must load a project in which the Web server is activated to enable access using the Web browser.

Security functions
The Web server provides the following security functions:  Access via the secure transmission protocol "HTTPS" using the CA-signed web server
certificate  User authorizations you can configure by means of user list  Activation for specific interfaces

Web server

14

Function Manual, 11/2019, A5E03484625-AG

General information 2.1 Properties of the Web server

Web browser

You need a web browser to access the HTML pages of the CPU.
The web browsers listed below have been tested for communication with the CPU. Other web browsers may also work, especially newer versions. However, if problems occur with web browsers not mentioned here that cannot be rectified, use one of the following tested web browsers:
 Microsoft Internet Explorer (Version 11.x)
 Microsoft Edge (Version 44.x)
 Google Chrome (Version 75.x)
 Mozilla Firefox (Version 64.x)
 Opera (Version 58.x)
 Mobile Safari and Chrome for iOS (iOS 12)
 Android browser (Android 7.x)
 Chrome for Android (Android 7.x to 8 (certificates work only to limited extent in Android 8))

Note If you are using Internet Explorer, disable "Compatibility view" in the settings ("Options" menu).
Note For access to display devices with low screen resolution, we recommend the use of basic websites, see section Basic websites (Page 156).
Note Older versions of the web browsers named above, which previously supported access to the HTML pages of the CPU, continue to allow this. However, these older versions do not support the new functions and HTML pages described in this edition.
Note Two reserved communication connections are available to the Web server for communication with the CPU. Depending on the web browser used, different numbers of connections to the CPU are established. If more connections are available, more communication connections will be established. If no more connections are available, display or functional problems may occur, because the Web server will reject all other communication connections apart from the two that are reserved. For this reason, the web pages may not load fully.

Web server

Function Manual, 11/2019, A5E03484625-AG

15

General information 2.1 Properties of the Web server
Note If you access the web server of the CPU using a communications processor (CP), ensure that the cache (temporary Internet files) is enabled in your browser. Choose the "Automatically" option in the cache settings of your browser. If the cache is disabled or if a setting other than "Automatically" is made in the cache settings of your browser, this may result in slow access times and incomplete display.
Note After a firmware update of the CPU, incorrect display of Web pages can occur in various Web browsers. This is caused by problems of the new CPU firmware with the cache of the Web browser. Solution: Press F5 or clear the Web browser cache.

Web server

16

Function Manual, 11/2019, A5E03484625-AG

General information 2.1 Properties of the Web server
Reading out data
With the Web server, you can read out the following data from the CPU and, in some cases, modify and write back the data to the CPU.  Start page with general CPU information (Page 33)  Information on Diagnostics (Page 38)
­ Identification ­ Program protection ­ Memory ­ Runtime information ­ Fail-safe (with an F CPU)  Contents of the diagnostics buffer (Page 48)  Module information (Page 57)  Firmware update (Page 62)  Alarms (Page 65)  Information on Communication (Page 67) ­ Important interface parameters ­ Port statistics ­ Display of the communication resources ­ Display of the communication connections  PROFINET-Topology (Page 72) ­ Graphical view (set and actual topology) ­ Table view (actual topology) ­ Status overview  Tag status (Page 82)  Watch tables (Page 85)  User pages (Page 120)  Filebrowser (Page 154)  DataLogs (Page 112)  User files (Page 115)  Online backup and restoration of the configuration (Page 87)  Diagnostic information for technology objects (Page 49)  Evaluation of trace recordings (Page 92)  Reading out service data (Page 155)  Basic websites (Page 156)
The HTML pages are described in more detail on the following pages.
Note Max. characters at data type WSTRING
Note that the data type WSTRING is limited to 254 characters for the display in the Web server. If the 254 characters are exceeded, the Web server does not display the superfluous characters.

Web server

Function Manual, 11/2019, A5E03484625-AG

17

General information 2.1 Properties of the Web server
Web access to the CPU via PG/PC, HMI devices and mobile terminal devices
Proceed as follows to access the Web server:
1. Use STEP 7 to download a project in which the web server is enabled to the CPU.
2. Connect the display device (PG/PC, HMI, mobile terminal device) with the CPU or a communication module using a PROFINET interface. If you are working with WLAN, activate the WLAN on the display device and establish a connection to the access point (e.g. SCALANCE W788-1RR or SCALANCE W784-1), which is in turn connected to the CPU.
3. Open the web browser on the display device.
4. Enter the IP address of the interface of the CPU which is connected to the client in the "Address" field of the web browser in the following format: http://a.b.c.d or https://a.b.c.d (example of input: http://192.168.3.141). The intro page of the CPU opens. From the intro page you can navigate to additional information.
Additional information on access using the secure transmission protocol "HTTPS" is available in the section Configuring the Web server (Page 19).
Additional information
Using a smartphone, you can access the Web server of the CPU either via WLAN or access to the CPU via the SIMATIC S7 app (using Web server functionality). You can find additional information in the FAQ entry ID 103473392 on the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/103473392) Internet page.
Note: The Web server must also be activated for access to the CPU via the SIMATIC S7 app.
The SIMATIC S7 app offers you additional functions. You can find a detailed application example with further documentation and example projects on the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/84133612) Internet page.

Web server

18

Function Manual, 11/2019, A5E03484625-AG

General information 2.2 Configuring the Web server

2.2

Configuring the Web server

To use the full functionality of the web server, the following settings in STEP 7 are necessary.

Procedure

You have opened the properties dialog of the CPU in STEP 7 in the project view.

Figure 2-1 Web server settings in STEP 7

Web server

Function Manual, 11/2019, A5E03484625-AG

19

General information 2.2 Configuring the Web server
Activate web server on this module
The web server is disabled in the default setting of a configured CPU. Proceed as follows to enable the Web server: 1. Open the "Devices & Networks" view by double-clicking in the project tree in STEP 7. 2. Select the desired CPU in the device, network or topology view. 3. Navigate to the "Web server" area in the Inspector window properties, "General" tab. 4. Select the "Activate web server on this module" check box.
The following note is output:
Figure 2-2 Security note upon activation of the Web server in STEP 7
Note When projects from deliveries are applied in which the Web server was already activated and configured on the module, this security note is not shown.

Web server

20

Function Manual, 11/2019, A5E03484625-AG

General information 2.2 Configuring the Web server
Creating and assigning a Web server certificate
The activation of the web server using the secure transmission protocol "HTTPS" requires a valid web server certificate. For SIMATIC S7-1500 CPUs with firmware V2.0 or higher, you must create the certificate for the web server of the CPU yourself with STEP 7 and assign it to the web server in the properties of the CPU. This certificate is also downloaded to the CPU automatically when the hardware configuration is downloaded. STEP 7 itself has a Certification Authority (CA) certificate, with which the device certificate (end-entity certificate) of the web server is signed.
Note When you update the firmware of a SIMATIC S7-1500 CPU or ET 200SP with firmware version < V2.0 to a firmware version  V2.0, a valid server certificate is automatically generated and used. The same applies to the replacement parts scenario in which a newer CPU replaces a CPU with firmware version < V2.0.
You can create different Web server certificates:  If you use the certificate manager in the global security settings, the certificate authority of
the project (CA certificate) signs the device certificate of the Web server. During loading, the CA certificate of the project is automatically loaded as well.  If you do not use the certificate manager in the global security settings, STEP 7 generates the device certificate as a self-signed certificate.
NOTICE Utilizing the full functionality of the Web server A valid CA-signed Web server certificate in the CPU is a requirement for: · User management with password-protected users · Saving and downloading diagnostic information in csv files · Using the following safety-related functions:
­ Backing up and restoring the CPU configuration To use the full functionality of the Web server, we therefore recommend that you use the Certificate Manager to create a CA-signed server certificate in the global security settings and assign it to the CPU.

Web server

Function Manual, 11/2019, A5E03484625-AG

21

General information 2.2 Configuring the Web server

Creating a self-signed server certificate
To create a self-signed Web server certificate, follow these steps:
1. in the Inspector window Properties of the CPU, "General" tab, navigate to the "Web server > Security" area.
2. Click the "Add" button in the drop-down list to select a certificate. The "Create a new certificate" dialog opens.
3. Select the "Self-signed" check box in the follow-up dialog.
4. Enter the parameters for the new certificate or confirm the default settings.
­ Select "Web server" in the "Usage" box.
­ Enter the IP address(es) of the interface(s) or the domain name of the configured CPU in the "Subject Alternative Name" field.
5. Click "OK" to confirm.
6. Compile and load the configuration into the CPU. The device certificate of the Web server is a component of the configuration.
Creating and assigning a CA-signed Web server certificate
To create a CA-signed Web server certificate, follow these steps:
1. In the Inspector window Properties of the CPU, "General" tab, navigate to the "Protection & Security > Certificate Manager" area and select the "Use global security settings for certificate manager" option. The "Global security settings" appear in the project tree.
Note
To edit the Certificate Manager in the global security settings, you require the "Configure security" configuration permission.
2. Log on as a user in the project tree in the "Global security settings > User logon" area. The "Administrator" role is the default for the first logon for a new project.
3. in the Inspector window Properties of the CPU, "General" tab, navigate to the "Web server > Security" area.
4. Click the "Add" button in the drop-down list to select a certificate. The "Create a new certificate" dialog opens.
5. In the follow-up dialog, select the "Signed by certificate authority" check box and select the certificate authority from the drop-down list.
6. Enter the parameters for the new certificate or confirm the default settings.
­ Select "Web server" in the "Usage" box.
­ Enter the IP address(es) of the interface(s) or the domain name of the configured CPU in the "Subject Alternative Name" field.
7. Click "OK" to confirm.
8. Compile and load the configuration in the CPU. The device certificate of the Web server and the CA certificate are components of the configuration.

Web server

22

Function Manual, 11/2019, A5E03484625-AG

General information 2.2 Configuring the Web server
NOTICE Addressing the Web server of the CPU via domain names If you enter the IP address(es) of the interface(s) of the configured CPU in the "Subject Alternative Name" field, the generated certificate may not be accepted by all Internet browsers. In addition, you must generate and load a new server certificate (end entity certificate) with each change of the IP address of an Ethernet interface of the CPU, since the identity of the CPU changes with the IP address. You can avoid this problem by addressing the Web server of the CPU using domain names instead of IP address(es), e.g. "myconveyer-cpu.room13.myfactory.com". For this purpose, you have to manage the domain names of your CPU via a DNS server.
Additional information For detailed information on local self-signed and global CA-signed certificates, on the "Public Key Infrastructure" (PKI) and on certificate management, refer to the Communications function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925) and to the STEP 7 online help, keyword "Secure Communication".

Web server

Function Manual, 11/2019, A5E03484625-AG

23

General information 2.2 Configuring the Web server
Permit access only with HTTPS
Note: The activation of the web server using the secure transmission protocol "HTTPS" requires a valid web server certificate in the CPU. See "Creating and assigning a Web server certificate" in the section above. To ensure secure access to the Web server the "Permit access only with HTTPS" check box is activated in the basic setting of a configured CPU. The web pages are transmitted by default via a secure connection and are protected from attacks by third parties. Note that in this case the URL of the CPU starts with "https://". The requirements for error-free HTTPS access to the CPU are as follows:  The current date/time must be set in the CPU.
Note
When using secure communication (e.g. HTTPS), make sure that the corresponding modules have the current time of day and the current date. Otherwise, the modules evaluate the used certificates as invalid and the secure connection will not be established.
 The IP address of the CPU must be assigned.  A valid server certificate offered by the CPU is installed in the Web browser.
NOTICE
Safety-related functions only possible with CA-signed Web server certificate
The safety-relevant functions, backup and restore the configuration of the CPU, see section Online backup (Page 87), are only possible with a CA-signed web server certificate.
A valid CA-signed web server certificate in the CPU is also required: · User management with password-protected users · Saving and downloading diagnostic information in csv files
To use the full functionality of the Web server, we therefore recommend that you use the Certificate Manager to create a CA-signed server certificate in the global security settings and assign it to the CPU.
If no CA-signed Web server certificate is installed, a warning is output recommending that you do not use the page. To view the page, you may need to "Add an exception", depending on the Web browser used. A valid CA certificate is available for download from the "Intro" web page under "Download certificate". You can find instructions for installing the certificate in the help system of your Web browser and in the FAQ with the entry ID 103528224 at the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/103528224) website.
Note
To protect against manipulation from the outside, download the certificate only in an environment that is guaranteed not to be compromised. Installation of the CA certificate has to be carried out once for each display device you wish to use.

Web server

24

Function Manual, 11/2019, A5E03484625-AG

General information 2.2 Configuring the Web server
Access protection
The certificate establishes an encrypted connection that prevents tapping or distortion of the communication but does not provide access protection. This means you have to protect your CPU from unauthorized access with the corresponding configuration in the user management. You can find additional information on the access protection in the online help for STEP 7, keyword: "Protection".
Enable automatic update
Automatic updating is activated in the default setting of a configured CPU. The following web pages are updated automatically:  Start page  Diagnostics (memory, runtime information, fail-safe)  Diagnostics buffer  Motion Control diagnostics  Module information  Alarms  Communication  Topology  Tag status  Watch tables  Record  DataLogs  User files  User-defined pages  Filebrowser
Note The default activation interval is 10 seconds. Larger data volumes or multiple HTTP/HTTPS-connections increase the update time.

Web server

Function Manual, 11/2019, A5E03484625-AG

25

General information 2.2 Configuring the Web server Setting the language for the Web
In total, you can assign up to three different project languages to the user interface languages of the Web server. In STEP 7, activate the project languages that you want to use and then assign one of the activated project languages to each of the web server interface languages. You can find additional information about the language settings and a description of how to assign a project language to the interface languages in the section Language settings (Page 29).
Amending user management
Note: A valid CA-signed Web server certificate in the CPU along with a secure HTTPS connection are required for user administration with password-protected users. See "Creating and assigning a Web server certificate" and "Permit access only with HTTPS" in this section.
Figure 2-3 User administration in STEP 7

Web server

26

Function Manual, 11/2019, A5E03484625-AG

General information 2.2 Configuring the Web server
In STEP 7, you can manage the user list in the "Web server > User administration" area. The user list provides the following options:  Create users  Specify access permissions  Assign passwords Users only have access to the options that are permanently linked to the access rights. You can assign different user rights depending on the CPU and firmware used. The available user rights can be selected in STEP 7 as follows:

Figure 2-4 Assignment of user rights in STEP 7
If you are not logged in, you automatically access the Web server as the user "Everybody". It does not matter in this case whether you have configured additional users.

Web server

Function Manual, 11/2019, A5E03484625-AG

27

General information 2.2 Configuring the Web server
User "Everybody" A user with the name "Everybody" is preset in the user list; this user has minimum access rights. These are read-only access to the intro page and start page. The user "Everybody" is defined without assigning a password, but you can assign all access authorizations available in STEP 7 to it. You can create a maximum of 20 users and a user "Everybody". Since the user "Everybody" is defined in STEP 7 without assigning a password, pay attention to which access authorizations you assign to this user. Individual authorizations, such as the ability to change the operating state, can represent a security risk. When assigning security-relevant authorizations, we recommend that you create a user with password protection in STEP 7.
WARNING
For an F-CPU, do not assign the user "Everybody" the access authorization "Perform changes as F-Admin". Make sure that you observe the warnings relating to this in the section "Restoring a backup of the safety program to an S7-300/1500 F-CPU" in the manual SIMATIC Safety Configuring and Programming (http://support.automation.siemens.com/WW/view/en/54110126).
Passwords should always be more than 8 characters in length and contain uppercase and lowercase characters as well as special characters and numbers (?!+%$1234...). Computer keyboard character strings and words from the dictionary are unsuitable. Change the password regularly.
Note When assigning rights, note that read and write access to the watch tables and the tag status is retained, even if you have deactivated the attribute "Accessible from HMI/OPC UA" in the PLC tag table when configuring the data block in STEP 7.
User-defined pages
In the "User-defined pages" area you can download your own web pages to the CPU and make your own web applications available via the web browser. You can find additional information in section User pages (Page 120).

Web server

28

Function Manual, 11/2019, A5E03484625-AG

General information 2.3 Language settings
Activation of the Web server for specific interfaces
In the area "Overview of interfaces", you have the option to enable access to the Web server.

Figure 2-5 Activation of access to the Web server via the interfaces

2.3

Language settings

Introduction

The Web server provides the user interface in the following languages:  German (Germany)  English (U.S.)  French (France)  Italian (Italy)  Spanish (traditional sort)  Japanese  Chinese (Simplified)  Korean  Russian  Turkish  Portuguese (Brazil)

Web server

Function Manual, 11/2019, A5E03484625-AG

29

General information 2.3 Language settings
Requirements for the availability of the East Asian languages
The following requirements must be met for the East Asian languages:  The appropriate package for the support of East Asian languages is installed on the
display device (such as PC). For additional information on installing files for East Asian languages, refer to your Windows documentation.  STEP 7 for East Asian languages is installed on the programming device for the configuration of the CPU.
Note SIMATIC HMI devices with Windows CE operating system do not support East Asian languages.
Requirements for multilingual output of text
In order for the web server to correctly display messages, comments and diagnostic information in the different project languages, you must assign one project language to each of the desired web server interface languages in STEP 7.
Note The project languages of the STEP 7 project that you want to assign must be activated and the corresponding texts (translations) must be available in the project. The project languages selection is available in the project tree under "Languages & Resources".

Web server

30

Function Manual, 11/2019, A5E03484625-AG

General information 2.3 Language settings
Setting the language for the Web
Once you have activated the Web server on your module, assign a project language of the STEP 7 project from the drop-down list to each interface language. 1. Navigate to the "Multilingual support" area in the Inspector window Properties of the CPU,
"General" tab. 2. Assign a project language from the drop-down list to each interface language of the Web
server.

Figure 2-6 Language settings for the web server in STEP 7
You can also assign interface languages the same project language, for example:
  Project language German for user interface language German, English (US) for
English, French for French.
  Project language English (US) for all other available interface languages of the Web
server.
In total, you can assign up to three different project languages of the STEP 7 project to the user interface languages of the web server.

Reference

You can find additional information on how to set the project language in STEP 7 in the online help for STEP 7, keyword: "Selecting project languages".

Web server

Function Manual, 11/2019, A5E03484625-AG

31

General information 2.4 Updating and saving information

2.4

Updating and saving information

Updating the screen content
Automatic updating is activated in the default setting. The preset update time is 10 s. You update the web pages manually via the function key <F5>.

Disabling automatic updating for an individual web page

Click

to temporarily deactivate automatic updating for a web page.

Note that the deactivation affects only the currently visited web page. Automatic updating is

activated again when you change to a different web page.

You reactivate automatic updating by clicking

.

Note
If the load on the CPU is very high during operation, for example, due to a large number of PROFINET interrupts or extensive communication jobs, the updating of web pages may be significantly delayed for the duration of this high CPU load.

Printing web pages
The Web server offers you a print preview on most web pages. Click the symbol to open it.
Created printouts always contain the current information in the CPU. This means that it is possible that the information in the print preview is more up-to-date than the information in the standard view.

Web server

32

Function Manual, 11/2019, A5E03484625-AG

Web pages

3

3.1

Start page with general CPU information

Connecting to the Web server
Establish a connection to the Web server by entering the IP address of the interface of the configured CPU which is connected to the client in the address bar of the web browser, for example, http://192.168.3.141 or https://192.168.3.141. The connection is set up and the "Intro" page opens.
The examples in the next section provide information about the different web pages.

Intro

The figure below shows the first page (Intro) called by the Web server.

Figure 3-1 Intro page of the web server of the CPU 1516-3 PN/DP
Click the NEXT link to go to the Web server pages.
Note Select the "Skip Intro" check box in order to skip the intro. The Web server will then take you directly to its start page in future. This setting is saved in the user profile of the current PC user. You can undo the setting "Skip Intro" by clicking the "Intro" link in the left-hand navigation bar of a web page.

Web server

Function Manual, 11/2019, A5E03484625-AG

33

Web pages 3.1 Start page with general CPU information
Setting the user interface language
You can change the language for the Web server interface, e.g., from English to German, in the upper right corner. This option is available to you on all web pages of the Web server.
Switching the time display
You can set the format of the time display to Coordinated Universal Time (UTC) or PLC local time (default setting) on the left next to the language setting.
Figure 3-2 Switching the time display You can switch the time display on all the Web pages that provide this drop-down list. The displayed PLC local time result from the time zone and Daylight Savings Time / Standard Time setting that are set in the CPU properties.

Figure 3-3 Setting the time in the CPU properties 34

Web server Function Manual, 11/2019, A5E03484625-AG

Start page

Web pages 3.1 Start page with general CPU information

The switchover has an effect on the following Web pages:

Table 3- 1 Switching the time display: Display on Web pages

Web pages
Start page Diagnostics buffer Alarms Online backup DataLogs File browser User files Save service data

Display as Coordinated Universal Time (UTC) or as PLC local time Last F-change Date and time of the diagnostic buffer entry Date and time of the alarms Backup file with date and time of the backup Date of change and time of change Date of change and time of change Date of change and time of change File with time stamp of the storage

The start page before login offers information as shown in the figure below. The image of the CPU with LEDs shows its current status at the time of the data request.

Figure 3-4 Start page before login

Web server

Function Manual, 11/2019, A5E03484625-AG

35

Web pages 3.1 Start page with general CPU information

Log in

To use the full functionality of the web pages, you must be logged in. Log in with a user name and password specified in the Web configuration in STEP 7. You now have corresponding permissions to access the web pages released for this user. If you have not configured a user, read-only access is granted to intro and start pages by default.
Note After carrying out your required actions, log out explicitly from the Web server by clicking "Logout" in order to minimize the risk of unauthorized external access.
Note Session timeout The timeout for each started session is 30 minutes. After each update/automatic update, the session is automatically extended by another 30 minutes.

Figure 3-5 Start page after login 36

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.1 Start page with general CPU information

 "General"

"General" contains information about the CPU whose web server you are currently connected to as well as the project name and the version of the TIA Portal with which the CPU was configured. The displayed TIA Portal version is at least required to load or edit the entire project.

 "Status"

"Status" contains information about the CPU status at the time of the query.

 "CPU operator panel"
In the area "CPU operator panel" you have the possibility to change the operating mode of the CPU ("RUN"/"STOP" buttons ) or to have the LEDs blink ("LED blink" button) with corresponding access rights.

Additional information for F-CPUs

Figure 3-6 Start page after login to an F-CPU

Web server

Function Manual, 11/2019, A5E03484625-AG

37

Web pages 3.2 Diagnostics

 "Fail-safe"

"Fail-safe" contains additional information on the F-CPU. Further information about the specification is available in the Programming and Operating Manual SIMATIC Safety Configuring and Programming (https://support.industry.siemens.com/cs/de/de/view/54110126/en?dl=en).

Reference

You can find additional information in the section Configuring the Web server (Page 19).

3.2

Diagnostics

Overview

The "Diagnostics" web page provides more information about the tabs:  Identification  Program protection  Memory  Runtime information  Fail-safe (with an F CPU)

"Identification" tab
The CPU characteristics are available in the "Identification" tab.

Figure 3-7 "Identification" tab 38

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.2 Diagnostics

"Identification"
The "Identification" info box contains the plant and location designation and the serial number. Plant and location identifiers can be configured in STEP 7 in the properties dialog of the CPU in the "General" tab.

"Order number"
The "Order number" info box contains the order number for the hardware.

"Version"

You can find the hardware, firmware and bootloader versions in the "Version" info box.

"Program protection" tab
The "Program protection" tab provides information on whether the PLC program contains know-how protection or copy protection.

Figure 3-8 "Program protection" tab
 "Know-how protection"
Information on whether the PLC program contains at least one block with know-how protection or not can be found in the info field "Know-how protection".

Web server

Function Manual, 11/2019, A5E03484625-AG

39

Web pages 3.2 Diagnostics

"Binding"

In the info field "Binding" you can find information on whether copy protection has been activated by binding at least one program block of the PLC program to the serial number of the CPU or memory card.
 "Binding"
 "No binding"
 "Binding mismatch": At least one block is bound to a different serial number (load process is rejected)

"Memory" tab

The "Memory" tab contains current values on the memory currently in use.

Figure 3-9 "Memory" tab

Web server

40

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.2 Diagnostics
"Runtime information" tab
Current information on program/communication load and cycle time can be found in the "Runtime information" tab. This enables you to see whether there may be runtime problems during execution of your user program.

Figure 3-10 "Runtime information" tab

Web server

Function Manual, 11/2019, A5E03484625-AG

41

Web pages 3.2 Diagnostics
Program-/Communication load With the "Value refresh" function, you update the data displayed in the bar charts:  At intervals of 1 second  Automatic (as configured in STEP 7) With the "Measurement" function, you can decide which measurement the bar charts display. You can choose between:  The current measurement  The measurement of the longest cycle time
Figure 3-11 Program-/Communication load
The legend of the program-/communication load shows information on the following values, highlighted in color:  "Program load cyclic program OBs"
required computing time in percent within a cycle for cyclic program OBs  "Program load high-priority OBs"
Required calculation time in percent within a cycle for higher-priority OBs  "Current communications load"
Required calculation time in percent for current communications tasks within a cycle  "Maximum permissible communication load"
The configured maximum communication load as a percentage  "No-load operation"
There is no program-/communication load Note When you have configured a minimum cycle time, it can happen that no-load operation displays a high percentage value, although the value of the cycle time is also high. The reason for this is that the loads are recorded as mathematical average of the last second, but the cycle time relates to the last cycle.

Web server

42

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.2 Diagnostics
Figure 3-12 Color legend If you click on a specific color, the selected color is highlighted in the chart. If you click on a highlighted color, you remove the highlighting. Measurement of load distribution and cycle time The "Measurement of load distribution and cycle time" bar chart shows the percentage of the calculation time within a cycle for the following values:  "Program load cyclic program OBs"  "Program load high-priority OBs"  "Current communications load"  "No-load operation" Prognosis of load distribution and cycle time The "Prognosis of load distribution and cycle time" bar chart predicts whether the CPU can process the user program with maximum communication load within the maximum cycle time.

Web server

Function Manual, 11/2019, A5E03484625-AG

43

Web pages 3.2 Diagnostics
Example 1:

Figure 3-13 Cycle time < 70% of the maximum cycle time
Example 1 shows that the CPU can process the user program within the maximum cycle time of 150 ms when the maximum communication load of 38% is reached. The predicted cycle time is < 70% of the configured maximum cycle time. Example 2:

Figure 3-14 Cycle time  70% of the maximum cycle time
In example 2, the CPU can also process the user program with maximum communication load within the maximum cycle time. However, the predicted cycle time is already at 129 ms. As soon as the predicted cycle time is  70% of the maximum cycle time, the chart outputs a warning.

Web server

44

Function Manual, 11/2019, A5E03484625-AG

Example 3:

Web pages 3.2 Diagnostics

Figure 3-15 Cycle time longer than maximum cycle time
Example 3 shows that the CPU can no longer process the user program within the maximum cycle time when the maximum communication load is reached. If the predicted cycle time is longer than the maximum cycle time, the chart outputs an error message.
If it is predicted that the maximum cycle time will be exceeded, use the following controller in order to reduce the maximum communication load.

Figure 3-16 Controller for setting the maximum communication load

Web server

Function Manual, 11/2019, A5E03484625-AG

45

Web pages 3.2 Diagnostics
Note Setting the communication load The controller predicts the effects of the changed communication load on the cycle time. You configure the maximum communication load in STEP 7.
Note For non-measurable fluctuations in the user program, e.g. for future changes in the user program, plan a sufficiently low value for the maximum communication load.
Note Due to the different acquisition bases of cycle time and load, a settled system state is required to display reliable measured values.
You can find additional information about the influence of the communication on the cycle time in the Cycle and Response Times (https://support.industry.siemens.com/cs/us/en/view/59193558) function manual.
Trend for program/communication load If your browser supports the display of SVG (Scalable Vector Graphics), the display in the "Runtime information" tab is expanded to show the trend for program/communication load. With the line charts in the "Trend for program/communication load" area, you can track the progression of the following values:  "Program load of the cyclic program OBs"  "Program load high-priority OBs"  "Current communications load" With the "Number of recorded measuring points" option, you can choose between the last 20 to 1 000 measured values for the display of the measured values.

Web server

46

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.2 Diagnostics
For the trend on the x-axis, you can choose between "Time" (CPU time) and "Samples" by clicking on the desired unit.
Note If you have selected the "Time" unit on the x-axis, all measured values that are more than 24 hours old are deleted automatically.

Figure 3-17 Line chart
"Fail-safe" tab (with an F-CPU)
The safety program of an F-CPU consists of one or two F-runtime groups. You can find their F-runtime group signature, cycle times (F-monitoring time) and runtimes in the "Fail-safe" tab.

Figure 3-18 "Fail-safe" tab

Web server

Function Manual, 11/2019, A5E03484625-AG

47

Web pages 3.3 Diagnostics buffer

3.3

Diagnostics buffer

Requirements

The web server is activated, languages are set, the text libraries are loaded and the project has been compiled and downloaded with STEP 7.

Diagnostics buffer
The content of the diagnostic buffer is displayed by the browser on the web page "Diagnostics buffer".

Figure 3-19 Diagnostics buffer
 "Diagnostics buffer entries 1-50"
The diagnostics buffer can accommodate different numbers of alarms depending on the CPU used. For information on the maximum number of diagnostics buffer entries, refer to the technical specifications of the CPU used. Select an interval for the entries from the drop-down list. Each interval comprises 50 entries.

Web server

48

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.4 Motion Control diagnostics

 "Event"

The "Event" info box contains the diagnostics interrupts with date and time.
Note that the diagnostic events are displayed in the project language of the STEP 7 project that is assigned to the current web server interface language. You can find out how to assign project languages to interface languages in section Language settings (Page 29).

 "Details"

This field outputs detailed information about a selected event. Select the corresponding
event from the  "Event" info field.

Saving diagnostics buffer entries
You can save diagnostics buffer entries to a csv file for further processing in a spreadsheet program or database program. Save the data by clicking the icon.
A dialog opens in which you can specify the file name and target directory.

3.4

Motion Control diagnostics

Overview

The Web server displays statuses, errors, technology alarms and the current values of the configured technology objects (TOs):  Speed-controlled axis (TO_SpeedAxis)  Positioning axis (TO_PositioningAxis)  Synchronous axis (TO_SynchronousAxis)  External encoder (TO_ExternalEncoder)  Measuring input (TO_MeasuringInput)  Output cam (TO_OutputCam)  Cam track (TO_CamTrack) The "Motion Control Diagnostics" web page provides detailed information on the configured technology objects in the following views:  Diagnostics  Service overview

Web server

Function Manual, 11/2019, A5E03484625-AG

49

Web pages 3.4 Motion Control diagnostics

Diagnostics

The "Diagnostics" view offers you:
  An overview list of the configured technology objects   The status and error messages of a selected technology object   Values and limits of the status of a selected axis/cam

 "Diagnostics" view
In the "Diagnostics" tab you will find an overview list of the configured technology objects with designation and type, which indicates whether the respective technology object is "released" and "referenced".
The technology object is enabled: The axis can be moved with motion jobs.
The technology object is homed: The relationship between the position in the technology object and the mechanical position was successfully created. The actual position value on the technology object is assigned to a reference mark.

Figure 3-20 Motion Control diagnostics: Status and error bits

Web server

50

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.4 Motion Control diagnostics

Meaning of the symbols in the "Status" column

Table 3- 2 Meaning of symbols

Symbol

Symbol color Green
Yellow
Red

Meaning
Component is OK Warning pending Error - component faulty or not available

Select the required technology object. The related diagnostics information is shown in the bottom tabs.

 "Status and error bits" tab
You use the "Status and error bits" tab to monitor the status and error messages for the technology object as in STEP 7.

Web server

Function Manual, 11/2019, A5E03484625-AG

51

Web pages 3.4 Motion Control diagnostics
 "Motion status"/"Cam track status" tab
You use the "Motion status" tab to monitor the motion status of the axis as in STEP 7.

Figure 3-21 Motion Control diagnostics: Motion status

Web server

52

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.4 Motion Control diagnostics
You use the "Cam track status" tab to monitor the cam track status as in STEP 7.

Figure 3-22 Motion Control diagnostics: Cam track status
Service overview
The "Service overview" view offers you:
  The status and diagnostic information for several technology objects   A filter option for selecting the displayed technology objects

Web server

Function Manual, 11/2019, A5E03484625-AG

53

Web pages 3.4 Motion Control diagnostics
 "Service overview" view
The "Service overview" shows the diagnostics information for several technology objects in table form.
Figure 3-23 Motion Control diagnostics, service overview: Status and error information

Web server

54

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.4 Motion Control diagnostics To select the information to be displayed, click the list symbol in the first column of the table. Make your selection in the next window. Click the list symbol again to leave the selection window.
Figure 3-24 Motion Control diagnostics, service overview: Configuring the status and error information

Web server

Function Manual, 11/2019, A5E03484625-AG

55

Web pages 3.4 Motion Control diagnostics
 Selection "Select technology objects"
You can make a selection of the displayed technology objects with the selection "Select technology objects".

Figure 3-25 Motion Control diagnostics, service overview: Status and error information - Select technology objects
Additional information
You can find additional information in the S7-1500(T) Motion Control function manuals on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109751049). You can find explanations of the diagnostics functions "Status and error bits" and "Motion status"/Cam track status" of the individual technology objects in the online help for STEP 7.

Web server

56

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.5 Module information

3.5

Module information

Module information
The status of a device is indicated by means of symbols and comments on the "Module information" web page.

Figure 3-26 Module information

Meaning of the symbols in the "Status" column

Table 3- 3 Meaning of symbols

Symbol

Symbol color Green Gray Gray
Red Black Green

Meaning
Component is OK
Deactivated PROFIBUS slaves or PROFINET devices.
State cannot be determined · "State cannot be determined" is displayed during system diagnostics for all
configured I/O modules and I/O systems after restart of the CPU. · However, this state can also be displayed temporarily during operation if a
diagnostics interrupt burst occurs for all modules. · It is not possible to determine the status of modules on a subsystem that is
connected to a CP. Component "not reachable" "Not reachable" is displayed when a module has been removed or a module has been configured but does not exist. No input or output data available. Input or output channels of the (sub)module are disabled. Maintenance required (Maintenance Required)

Yellow Red Red

Maintenance demanded (Maintenance Demanded) Error - component faulty or not available due to an incorrect type A module in a lower module level does not have the status "Component OK"

Web server

Function Manual, 11/2019, A5E03484625-AG

57

Web pages 3.5 Module information
Navigation to further module levels
The status of individual components/modules/submodules is displayed when you navigate to the further module levels:  To the next higher module level using the links in the display of the module levels  To the next lower module level using the links in the "Name" column

Figure 3-27 Navigation to further module levels

 "Module information"
Depending on the selected level, the table contains information on the rack, the DP master system, the PROFINET IO master system, the stations, the individual modules or the modules or submodules of the station.

 "Display of the module levels"
The links are used to access the "Module information" of the higher module levels.

 "Topology"

The two web pages, "Topology" and "Module information", are linked. A click on "Topology" of the selected module automatically takes you to this module in the graphic view of the set topology on the "Topology" web page. The module is displayed in the visible area of the "Topology" web page. The device header of the selected module flashes for a few seconds.

Web server

58

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.5 Module information

 "IP address"
If a link is available, you can use it to access the Web server of the configured device you selected.

 "Details"

Additional information about the selected module is provided in the "Status" and "Identification" tabs via the "Details" link.

 "Status" tab

The tab contains information about the status of the selected module when a fault or alarm exists.

 "Identification" tab
The tab contains data on the identification of the selected module.
Note This tab displays only the data configured offline of the module.

Web server

Function Manual, 11/2019, A5E03484625-AG

59

Web pages 3.5 Module information
 "Statistics" tab
The tab is only displayed for PROFINET IO devices and contains the following information on the communication statistics of the selected IO device:  "Total statistics - Sent data packages"
You can assess the data transmission on the transmit line based on the key data in this info box.  "Total statistics - Received data packages" You can assess the data transmission on the receive line based on the key data in this info box.  "Statistics port x - Sent data packages" You can assess the data transmission on the transmit line for each port based on the key data in this info box.  "Statistics port x - Received data packages" You can assess the data transmission on the receive line for each port based on the key data in this info box.

Reference

Figure 3-28 "Statistics" tab
You can find additional information in the "Statistics" tab in the section Communication (Page 67).

Web server

60

Function Manual, 11/2019, A5E03484625-AG

Example: Module information - module

Web pages 3.5 Module information

Figure 3-29 Example: Module information - module
Note If you are using the function Configuration control (option handling) in the central configuration of your plant, the information text in the headings area of the web page informs you that the status of the I/O modules may be displayed inconsistently. No corresponding text is displayed for the distributed I/O.
Example: Module information - submodule

Reference

Figure 3-30 Example: Module information - submodule
You can find additional information on the "Module information" in the online help for STEP 7, keyword: "Module information".

Web server

Function Manual, 11/2019, A5E03484625-AG

61

Web pages 3.6 Firmware update

3.6

Firmware update

Introduction

You update the firmware as a user with the corresponding access rights on the "Module information" web page at the module level. You will find information on user management in section Configuring the Web server (Page 19) under "Amending user management". You use an update file to update the firmware of the CPU, the display of the CPU, or the individual central or distributed modules. Note that all modules you want to update must be compatible with the TIA Portal as of V12.0.
Note
A firmware update is not possible if access is via a mobile terminal device with the "iOS" operating system.

Web server

62

Function Manual, 11/2019, A5E03484625-AG

Procedure

Web pages 3.6 Firmware update
The following steps are required to perform a firmware update:  Click on "Browse" in the Firmware Loader area.  Select the file you would like to use for the firmware update. You can find the available
firmware updates on the Service&Support page on the Internet (http://support.automation.siemens.com).

 Status of the selected firmware file  Button to execute the update
Figure 3-31 Module information, "Firmware" tab, "Ready for update" status
 If the status is "Ready for update", click "Run update". If the CPU is in RUN mode during the update, the following alarm is output:

Figure 3-32 Alarm after clicking "Run update"
Acknowledge the alarm output by clicking "OK". The CPU is set to STOP mode and the firmware update is executed.

Web server

Function Manual, 11/2019, A5E03484625-AG

63

Web pages 3.6 Firmware update
If you click "Cancel", the CPU remains in the current mode and the firmware update is canceled.
 A alarm informs you about the order number and version ID of the updated firmware once the update is complete. The CPU is automatically placed in RUN mode when the mode selector of the CPU is in RUN and when you acknowledge the alarm with "OK". This may take a few minutes; there is no progress indicator. If you click "Cancel", the CPU remains in STOP mode and you can run additional updates.

Reference

Figure 3-33 Alarm: Firmware successfully transferred
For additional information on the topic of firmware update, refer to the STEP 7 online help and the following FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67190848).

Web server

64

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.7 Alarms

3.7

Alarms

Requirements

The alarm texts were configured in the user-specific languages. For information about configuring alarm texts, refer to STEP 7 and to the Service&Support pages (http://www.siemens.com/automation/service&support).

Alarms

To receive compact information on fault analysis, we recommend that you always first read out the content of the alarm buffer. This is the most effective method to get an overview of the pending faults.
The browser displays the content of the alarm buffer on the "Alarms" web page.

Figure 3-34 Alarms

Web server

Function Manual, 11/2019, A5E03484625-AG

65

Web pages 3.7 Alarms

 "Alarms"

Alarms of the CPU are displayed in descending chronological order with date and time in info
box .
The alarm text parameter is an entry which contains the alarm texts configured for the corresponding fault definitions.
Note that the message texts are displayed in the project language of the STEP 7 project that is assigned to the current web server interface language. You can find out how to assign project languages to interface languages in section Language settings (Page 29).
Sorting
You also have the option to display the individual parameters of the currently displayed web page (max. 50 entries) sorted in ascending or descending order. For this purpose, click on one of the parameters in the column header:
 Alarm number
 Date
 Time (of the CPU)
 Alarm text
 Status
 Acknowledgment
The alarms are returned in chronological order when you click the "Date" entry. Incoming and outgoing events are output at the Status parameter.
If you have the appropriate user rights (see section Configuring the Web server (Page 19)), for alarms which can be acknowledged, a button is available to you in the "Acknowledgment" column with which you can acknowledge the alarm.

 "Details on alarm number"
You can view detailed alarm information in this info box. Select the corresponding alarm from
the info field .

Saving alarms

You can save alarms to a csv file for further processing in a spreadsheet program or database program. Save the data by clicking the icon.
A dialog opens in which you can specify the file name and target directory.

Web server

66

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.8 Communication

3.8

Communication

Overview

The "Communication" web page provides detailed information about the following tabs:  Parameters  Statistics  Resources  Connections

 "Parameter" tab
A summary of the information on the PROFINET and Ethernet interfaces of the selected CPU is available in the "Parameter" tab.

Figure 3-35 Parameters of the integrated PROFINET and Ethernet interfaces
 "Network connection"
The item "Network connection" includes information for identification of the integrated PROFINET and Ethernet interfaces of the corresponding CPU. The MAC address is located on the CPU above the respective PROFINET or Ethernet interface.
 "IP parameter"
This parameter includes information on the configured IP address and number of the subnet in which the corresponding CPU is located.

Web server

Function Manual, 11/2019, A5E03484625-AG

67

Web pages 3.8 Communication
 "Physical properties"
The following information on the interface hardware is available in the "Physical properties" field:  Port number  Link status  Settings  Mode  Connection medium

Web server

68

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.8 Communication
 "Statistics" tab
Information on the data transmission can be found on the "Statistics" tab.

Figure 3-36 "Statistics" tab with key data on data transmission
 "Total statistics - Sent data packages"
You can assess the data transmission on the transmit line based on the key data in this info box.

Web server

Function Manual, 11/2019, A5E03484625-AG

69

Web pages 3.8 Communication
 "Total statistics - Received data packages"
You can assess the data transmission on the receive line based on the key data in this info box.
 "Statistics Port x - Sent data packages"
You can assess the data transmission on the transmit line for each port based on the key data in this info box.
 "Statistics port x - Received data packages"
You can assess the data transmission on the receive line for each port based on the key data in this info box.
 The "Resources" tab
For information about the resource consumption of the connections, refer to the "Resources" tab.

Figure 3-37 "Resources" tab
 Number of connections
Under "Number of connections", you will find information on the maximum number of connections and the number of connections not assigned.
 Connections
The item "Connections" provides information on the number of connections reserved or used for ES, HMI, S7, OpenUser, web communication and other communication functions.

Web server

70

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.8 Communication
 "Connections" tab
The "Connections" tab contains information on the status of the communication connections.

 Status
 Details Reference

Figure 3-38 "Connections" tab
Under "Status", you will find an overview of the communication connections being established and the already established communication connections. For each connection, the table contains the following information: status of the connection, local ID, slot of gateway, remote address (IP address), the corresponding remote address type, method of connection, and type of connection.
Under "Details", you will find detailed information about the selected connection.
For an explanation of the error message displayed when a connection is interrupted or an attempt to establish a connection fails, refer to the STEP 7 online help.

Web server

Function Manual, 11/2019, A5E03484625-AG

71

Web pages 3.9 Topology

3.9

Topology

3.9.1

Introduction

Topology of the PROFINET devices
The "Topology" web page provides information on the topological configuration and status of the PROFINET devices on your PROFINET IO system.
There are three tabs for the following views:
 Graphical view (set and actual topology)
 Table view (actual topology only)
 Status overview (excluding topological correlations)
You can print the table view and status overview. Before printing, use the print preview of your browser and, if necessary, correct the format.

Set topology

The set topology is displayed if you have topologically interconnected the connections in the configuration with STEP 7.
This view identifies the topological assignment of PROFINET devices that have failed, the differences between the set and actual topology, and interchanged ports.
Note
The configured set topology is always displayed by default in the following scenarios: · When the "Topology" web page is called via the navigation bar · When you change from the overview of PROFINET IO devices on the "Module
information" web page to the "Topology" web page by means of the "Topology" link.
If a setpoint topology was not configured, the actual topology is displayed.

Actual topology
Displays the current topological structure of the "configured" PROFINET devices of a PROFINET IO system and the directly adjacent, non-configured PROFINET devices (display of the neighbor relationships, provided these can be determined; but the status of these adjacent PROFINET devices is not displayed).

Web server

72

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.9 Topology

3.9.2

Graphical view

Requirements

For error-free operation of the topology, the following conditions must be met:
 You have made the Language settings (Page 29).
 In the Topology Editor of STEP 7, you configured the topological interconnection of ports (requirement for display of the set topology and the corresponding topological target connections).
 The project has been compiled in STEP 7.
 The project is completely loaded.

Set and actual topology - graphical view
You can select the interface with the topology you want to display (X1, X2, X3 or PROFINET communication modules such as CM 1542-1) at the top left of the "Topology" Web page.

Figure 3-39 Graphical view - Set and actual topology

Web server

Function Manual, 11/2019, A5E03484625-AG

73

Web pages 3.9 Topology

Meaning of the colored connections in the set/actual topology:

Table 3- 4 Meaning of the colored connections in the set/actual topology

Connection Green Red Yellow

Meaning

Set topology

Actual topology

The current actual connection matches the configured target Connections detected connection.

Mismatch between the current actual connection and the configured target connection (e.g., port interchanged).

Connection diagnostics not possible. Causes:

-

· Malfunction of communication with a device (e.g., cable was removed)
· Connection to a passive component (e.g., switches or cables)
· Connection to devices/PROFINET devices on a different IO controller or IO subsystem.

 Configured and accessible PROFINET devices
Configured and accessible PROFINET devices are displayed in dark gray. Connections indicate the ports used to connect the PROFINET devices of a station.
 Configured but inaccessible PROFINET devices
Configured but inaccessible PROFINET devices are indicated in pink with red frame (e.g., device failure, cable disconnected).
 Deactivated devices
All deactivated, configured PROFINET devices are displayed in light gray.
 Interchanged ports
Interchanged ports are highlighted in red in the set topology view. The actual topology view indicates the actually connected ports, while the set topology view displays the configured target connections.

Web server

74

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.9 Topology
 PROFINET devices of a different PROFINET IO subsystem
 In the set topology: A PROFINET device of a different PROFINET IO subsystem is indicated by means of a green link (or red link for interchanged ports) if it is available on the bus and directly
adjacent to an accessible configured PROFINET device . If the PROFINET device of a
different PROFINET IO subsystem is inaccessible, it is identified by means of a yellow connecting line. The connection between two PROFINET devices which both belong to a different PROFINET IO subsystem cannot be identified and is always indicated in yellow color.  In the actual topology: The PROFINET device of a different PROFINET IO subsystem is not displayed unless it is directly adjacent to a configured PROFINET device. The PROFINET device is shown in light gray with a dashed line around the device header. The status of PROFINET devices of a different PROFINET IO subsystem is not displayed in the device header.
 Displaying faulty neighbor relationships
Devices from which the relation data could not be read completely or with error are highlighted in light gray with a red frame.
Note Displaying faulty neighbor relationships If a device does not have the matching firmware, the relationships cannot be displayed correctly. This means a firmware update of the respective device is required in case a faulty neighbor relationship is displayed.
Views after changes to the configuration
 If a device fails, it remains at the same position in the "Set topology" view. This error state is indicated with a red border around the device header and the icon .
 If a device fails, it is displayed in the "Actual topology" view. This error state is indicated separately in the bottom area with a red border around the device header and the icon .
Link between the "Topology" and "Module information" web pages
The two web pages, "Topology" and "Module information", are linked. A click on the header of a selected module in the topology view automatically takes you to this module on the "Module information" web page. You can find additional information on this in the section Module information (Page 57).

Web server

Function Manual, 11/2019, A5E03484625-AG

75

Web pages 3.9 Topology

Reference

Additional examples for graphical topology view are available in the section Examples for graphical topology views (Page 79).

3.9.3

Tabular view

Topology - tabular view
The "Tabular view" always shows the "Actual topology".

Figure 3-40 Topology - tabular view
 Meaning of the symbols relating to the status of the PROFINET devices
Table 3- 5 Meaning of the symbols relating to the status of the PROFINET devices Symbol Meaning
Configured and accessible PROFINET devices
Unconfigured and accessible PROFINET devices
Configured but inaccessible PROFINET devices
Devices for which neighbor relations cannot be determined, or for which the neighbor relationship could not be read out completely, or only with errors

Web server

76

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.9 Topology

 Meaning of the symbols relating to the module status of the PROFINET devices

Table 3- 6 Meaning of the symbols relating to the module status of the PROFINET devices

Symbol Color green

Meaning Component is OK.

gray

Deactivated PROFIBUS slaves or PROFINET devices

black
red green

State cannot be determined
· For example, "Status cannot be determined" is always displayed while the CPU is in STOP mode, or during startup evaluation of "Report system error" for all configured I/O modules and I/O systems after a CPU restart.
· However, this status can also be displayed temporarily during operation if a diagnostics interrupt burst occurs at all modules.
· It is not possible to determine the status of modules on a subsystem that is connected to a CP.
Component failed or is not reachable
· "Not reachable" is displayed for e.g. a module that has been removed or a module that has been configured but does not exist.
Maintenance required (Maintenance Required)

yellow Maintenance demanded (Maintenance Demanded)

red

Error - component faulty or not available due to an incorrect type.

-

A module in a lower module level does not have the status "Component OK".

Reference

For additional information on the "Report System Error" function, refer to the STEP 7 online help, keyword: "System diagnostics".

Web server

Function Manual, 11/2019, A5E03484625-AG

77

Web pages 3.9 Topology

3.9.4

Status overview

Topology - status overview
The "Status overview" provides a clear presentation of all PROFINET IO devices/PROFINET devices (without connection relations) on one page. A quick error diagnostics is possible based on the symbols that show the module statuses.
The overview also provides a link of the modules to the Web page Module information (Page 57).

Figure 3-41 Topology - status overview

Web server

78

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.9 Topology

3.9.5

Examples for graphical topology views
The following section shows, as an example, some displays of the different topology views for a simple project.

"Set topology" is OK
Here you see the connections as they are configured in the topology editor by STEP 7. The configuration and wiring match.

Figure 3-42 "Set topology" is OK
"Actual topology" is OK
Shows the actual layout of all configured devices that can be reached topologically.

Figure 3-43 "Actual topology" is OK

Web server

Function Manual, 11/2019, A5E03484625-AG

79

Web pages 3.9 Topology "Set topology" with failed device
If a device has failed in the meantime, this device remains in the same place in the "Set topology" view. The failed device is displayed with a red border around the device header and the icon.
Figure 3-44 "Set topology" with failed device
"Actual topology" with failed device
In the "Actual topology" view, the device that has failed in the meantime is displayed separately in the bottom area of the view. The failed device is displayed with a red border around the device header and the icon.

Figure 3-45 "Actual topology" with failed device

Web server

80

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.9 Topology "Set topology" with interchanged ports If a port was interchanged for a configured, directly adjacent PROFINET device, this device remains in the same place in the "Set topology" view. The interchanged connection is indicated by a red line.
Figure 3-46 "Set topology" with interchanged ports

Web server

Function Manual, 11/2019, A5E03484625-AG

81

Web pages 3.10 Tag status

3.10

Tag status

Tag status

The browser outputs the tag status on the web page of the same name.
Note Saving the tag status as a bookmark
When the page is exited, the entries made on it are not saved. If you want to monitor the same entered tags again later on, then create a bookmark in your Web browser for the "Tag status" page. Otherwise, you will have to enter the tags again when the page is reopened. If you have defined your user page as start page of the Web server, you cannot access the tag status via the saved bookmarks. You can find additional information in section Defining the user page as start page (Page 141).
Note Selected tag addresses are copied to the URL
The maximum number of characters for the URL of the tag status page is 2083. You can see the URL which corresponds to your current tag status page in the address bar of your Web browser. To monitor several tags, we recommend the use of the watch tables (Page 85).

Figure 3-47 Tag status

Web server

82

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.10 Tag status

 "Name"

In the "Name" text box, enter the address of the tag whose behavior you want to monitor. This may be a symbolic or absolute address.
 PLC tags (inputs and outputs, bit memories, times and counters) and DB tags in blocks with standard access have an absolute and a symbolic address.
 DB tags in blocks with optimized access have a symbolic address and no absolute address.
Example for access to the absolute address of a data block with standard access: The absolute address consists of the preceding address ID %, the number of the data block and the absolute address of the tags in the data block, separated by a period: %DB1.DBX1.0 = absolute addressing of the tags "DBX1.0" in the global data block "DB1".
Invalid entries are displayed in red font.

 "Display format"
Using the drop-down list box, select the desired display format of the respective variable. If the tag cannot be displayed in the desired format, it will be displayed in hexadecimal format.

 "Value"

Under "Value", the value of the corresponding operand is displayed in the selected format.

 "Modify value"
You can change the value of tags and write them to the CPU in this column. To transfer several changed values in one operation, click the "Apply" button below the table. To be able to read values and write values to the CPU, you need to have configured a user with the appropriate access rights in STEP 7. If the value you entered is not valid (e.g. binary value in a BOOL field), the entry is not applied and the corresponding input field remains empty. A specific message relating to this is not output. You can change the values of the following data types:  Bool, Byte  DWord, LWord, Word  Int, DInt, LInt, SInt, UDInt, UInt, ULInt, USInt  Real, LReal  LDT  Counter, Date  Time, LTime, Time_Of_Day, LTime_Of_Day, Timer  S5Time  Char, WChar, String

Note
The following generally applies: To be able to write data, the "Referrer" transfer must be activated in your Web browser (this is the default in all common browsers).

Web server

Function Manual, 11/2019, A5E03484625-AG

83

Web pages 3.10 Tag status

Special considerations when changing languages
You can change the language, e.g., from German to English, in the upper right corner. Note that the German mnemonics differ from those of the other languages.

For monitoring available data types
Basically, you can monitor all data types of PLC tags via the web server, which you can also monitor in STEP 7.
Note that structured data types such as ARRAY, STRUCT and DTL are not available as data types for PLC tags due to their data volume.

Reference

You can find additional information on the available data types in the STEP 7 online help, keyword: "Overview of the valid data types".

Web server

84

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.11 Watch tables

3.11

Watch tables

Watch tables

The browser displays the content of the configured, web-enabled watch tables on the web page of the same name.
Note
Please note that you can observe a maximum of 50 of the watch tables configured in STEP 7 in the Web server.
Each of these tables is displayed in the Web server with a maximum of 200 entries.
If you are monitoring many large watch tables in the Web server, the update time may increase due to the large data volumes.
The number of watch tables that you can monitor download into the CPU also depends on the size of the SIMATIC memory card used.

Figure 3-48 Watch tables

 Selection

Select one of the configured watch tables from the drop-down list.

 "Name"

The symbolic name of the tag is shown in this info box.

Web server

Function Manual, 11/2019, A5E03484625-AG

85

Web pages 3.11 Watch tables

 "Address"

The absolute address of the tags is displayed within this info field (if present, e.g. for inputs or outputs; DB tags in blocks with optimized access have no absolute address).

 "Format"

Select the display format of the respective tag from the drop-down list.

 "Value"

This column shows the values in the corresponding display format.

 "Modify value"
You can change the value of tags and write them to the CPU in this column. To be able to read values and write values to the CPU, you need to have configured a user with the appropriate access rights in STEP 7. If the value you entered is not valid (e.g. binary value in a BOOL field), the entry is not applied and the corresponding input field remains empty. A specific message relating to this is not output.
Note The following generally applies: To be able to write data, the "Referrer" transfer must be activated in your Web browser (this is the default in all common browsers).
Note that the comments are displayed in the project language of the STEP 7 project that is assigned to the current user interface language of the Web server. You can find out how to assign project languages to interface languages in section Language settings (Page 29).

Reference

You can find additional information on the available data types in the STEP 7 online help, keyword: "Overview of the valid data types".

Web server

86

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.12 Online backup

3.12

Online backup

Backing up and restoring the CPU configuration
You can back up a CPU configuration using the Web server with the corresponding access rights. If necessary, you can also restore this configuration at a later time using the Web server.
You can create as many backups as you want and store a variety of configurations for a CPU.
NOTICE
Prior to every restoration of the CPU configuration, always first perform an online backup of the current CPU configuration and save this backup file to a local directory of your PC.
This ensures that you can undo a restoration which failed (e.g. due to a damaged backup file) or which does not show the desired result.
Note
You can also perform online backup and restoration of the CPU configuration in STEP 7 (see STEP 7 online help, keyword: "Creating a backup of an S7 CPU").
When backing up using STEP 7, the backup file is saved within the STEP 7 project. With a backup using the Web server, the backup file is saved to a local directory of your PG/PC (e.g. "Downloads" directory). Web server backup files cannot be restored via STEP 7, nor can STEP 7 backup files be restored directly using the web server.
To restore a STEP 7 backup file using the web server, first save the STEP 7 backup file to a local directory of your programming device/PC (e.g. "Downloads" directory). From there, you can restore the backup with the Web server.
Note
The "Online backup" function is not available if you access the web server via: · a virtual IP address · a communication module (CM) · a communication processor (CP)

Requirements

 You access the CPU via the secure transmission protocol "HTTPS".
 A valid CA-signed certificate is installed in the Web browser; see section Configuring the Web server (Page 19).

Web server

Function Manual, 11/2019, A5E03484625-AG

87

Web pages 3.12 Online backup Online backup
Figure 3-49 Online backup

Web server

88

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.12 Online backup
Perform online backup of the configuration
To perform an online backup of the CPU configuration, proceed as follows: 1. Click the "Create online backup" button in the "PLC backup" area. 2. If the CPU is in RUN mode, the following alarm is output:
"Creation of an online backup requires PLC STOP. Do you want to set the PLC to STOP mode?" Acknowledge the alarm output by clicking "OK". The CPU is set to STOP mode and online backup is performed. (If you click "Cancel", the CPU remains in the current mode and the online backup is canceled.) 3. Save the backup file to a local directory of your PC. 4. Set the CPU back to RUN mode ("RUN" button in the "CPU operator panel" area of the start page).
Note During the execution of the online backup, some data is not available in the web page view of the web server.
Scope of the backup The backup includes all data needed to restore a particular state of a CPU, i.e. the specific combination of the configuration of the CPU with the current values of the user-related retentive data. The following data of the configuration of the CPU is backed up:  The contents of the SIMATIC memory card, e.g. configuration, program code, recipes and
archives, DataLogs The following user-relevant retentive data is backed up:  Retentive memory areas of data blocks, bit memories, counters and timers  Front-panel settings, dynamic IP configuration data, operating hours counters, retentive
Motion Control sensor data Note:  Entries in the diagnostic buffer are not included in the backup.  With a SIMATIC S7-1500 CPU, the current time is not saved.  The complete content of the SIMATIC memory card is saved, i.e. also any data stored on
the card (e.g. PDF files, GSD files).  The backup file is assigned the name of the CPU and the project with the time and date
of the backup, e.g. "2015-09-10_11-01_03_online backup_PLC69_machineControl.s7pbkp".  The backup file of an F-CPU also contains the collective signature of the safety program in the file name. Check whether it is the expected F-collective signature.  You can rename the backup, but you cannot make any changes to the contents of the backup.

Web server

Function Manual, 11/2019, A5E03484625-AG

89

Web pages 3.12 Online backup

Restoring the configuration
To restore the CPU configuration, follow these steps:
1. Enter the password of the currently logged-in user in the "Restore PLC" area.
2. Click the "Select file" button and select the backup file of the configuration that you want to restore.
3. Click "Restore selected online backup".
4. If the CPU is in RUN mode, the following alarm is output: "Download online backup to device. The CPU is set to STOP and the contents of the CPU will be overwritten. Do you want to continue?"
If the CPU is already in STOP mode, the following alarm is output: "Download online backup to device. The contents of the CPU will be overwritten. Do you want to continue?"
Acknowledge the alarm output by clicking "OK". The CPU is set to "STOP" mode if required, and the online backup is downloaded. (If you click "Cancel", the CPU remains in the current mode and downloading is canceled.)
5. An alarm informs you that you must not leave the web page during the "restore procedure". Acknowledge the alarm output by clicking "OK".
The restoration of the CPU configuration starts and you will be continuously informed of the current status:
­ "Download of online backup has been started."
­ "Checking backup file."
­ "Formatting memory card and resetting CPU."
6. If you have started the restoration procedure with a user name and password defined in the Web server configuration, you will be asked to enter these again after restoration of the CPU. Enter the required information and click "Login".
If you have started the restoration procedure as the user "Everybody" without a password (but with appropriate access rights), this prompt is not displayed.
Note
To restore the configuration of an F-CPU whose security program and/or password has been changed for the F-CPU in the meantime, you also need the access authorization "Perform changes as F-Admin"; see "Amending user management" in the section Configuring the Web server (Page 19).
WARNING
The authorization "Perform changes as F-Admin" on the web server without password protection (user "Everyone") is only for test purposes, commissioning, etc. i.e. only when the system is in productive operation. In this case, you have to ensure the security of the plant through other organizational measures, e.g. through spatial protection.
Before the transition to productive operation, you must remove the right "Perform changes as F-Admin" from the user "Everybody".
The password of the user of the web server with the right "Perform changes as FAdmin" must only be accessible to authorized persons.

Web server

90

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.12 Online backup
The restoration of the CPU configuration starts and you will be continuously informed of the current status: ­ "Loading configuration." ­ "Resetting CPU." This may take a few minutes. 7. When the procedure is complete, you will be logged out and the "Reload page..." button will be displayed. If you did not receive an error message during the restoration procedure, the restoration of the CPU configuration was successfully completed and you will receive a corresponding message. Click the "Reload page..." button and log on to the newly downloaded CPU configuration with your user name and password.
You will receive the following error message if: ­ the newly downloaded CPU configuration does not contain the same IP address as
the former one ­ the Web server is deactivated in the newly downloaded CPU configuration ­ the browser does not receive a response from the CPU after 3 minutes Error message: "The CPU is not reachable anymore. Please check the IP address and the Web server configuration. The result of the restore can be checked in the ASLog."

Web server

Function Manual, 11/2019, A5E03484625-AG

91

Web pages 3.13 Record

3.13

Record

Trace and logic analyzer function
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU.
The recordings are saved on the device and can be read out by users with appropriate access rights via the Web server and saved. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes in the Web server.

Requirements

 A trace configuration has been created, i.e. you have defined the recording and trigger conditions and selected the signals to be recorded.
­ Note: You can only display measurements stored on the SIMATIC memory card on the "Record" web page.
In order for the CPU to save the measurements on the SIMATIC memory card, you must make the following settings in the trace configuration in STEP 7:
1. Set the "Trigger mode" to "Trigger on tag".
2. Select the "Save measurements on device (memory card)" check box.
 You have transferred the trace configuration to the device and activated it there.
 You have been assigned the access right "The user is authorized to..." > "...query diagnostics" in the user administration of the Web server; see section Configuring the Web server (Page 19).

Web server

92

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record
Space requirements for storing trace recordings
The "Save measurements on device (memory card)" function in STEP 7 saves Trace recordings on your SIMATIC memory card.
Response when number reached The "Deactivate recording" parameter repeats the measurements until the configured "Number of measurements" is reached. The "Overwrite oldest recording" parameter replaces the oldest measurement with the latest measurement when the configured "Number of measurements" is reached. Please note, however, that continuously writing data to the SIMATIC memory card shortens its service life.

Figure 3-50 Dialog of the settings for saving measurements to the memory card in STEP 7
Number of measurements The CPU supports a maximum of 999 measurements. While the CPU writes the trace recordings to the load memory of the memory card, it pauses monitoring of the trigger conditions for the trace job. After the CPU has terminated the storing of Trace recordings, the CPU continues checking of the trigger conditions.
NOTICE Memory required on the SIMATIC memory card When the trace function "Measurements on device (memory card)" requires more memory than is available on the SIMATIC memory card, undesired effects may result. Ensure there is always sufficient free storage space to use the "Measurements on device (memory card)" function. In addition to the "Measurements on device (memory card)" Trace function, other functions, such as storing data logs, use memory space on the SIMATIC memory card. Make sure that enough memory space is available for all functions that occupy memory.
You can view the current values on the currently used space in the load memory in the "Memory" tab on the "Diagnostics" web page.

Web server

Function Manual, 11/2019, A5E03484625-AG

93

Web pages 3.13 Record
Additional information
The user interface of the "Trace" website is largely the same as that of the trace function in STEP 7. See the Using the trace and logic analyzer function manual (https://support.industry.siemens.com/cs/ww/en/view/64897128) and the online help for STEP 7 for more on this.
Displaying the trace recordings
The web page of the trace and logic analyzer function consists of several areas. The example in the figure below shows how the Web server user interface is divided when the "Trace" web page is first called.



Trace recordings



Toolbar of the trend diagram



Trend diagram and bit track



Signal tables

Figure 3-51 Trace start page without measurement

Web server

94

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record
Opening measurements
To open a measurement, right-click on a measurement to select it from the "Trace recordings" area. Then select the command "Show in chart" in the shortcut menu. The measurement is displayed in the "Curve diagram and bit track" area.

Figure 3-52 Displaying an individual measurement
To display multiple measurement at once, right-click on a measurement to select it from the "Trace recordings" area. Then select the command "Add to table" in the shortcut menu. The measurements are displayed in the "Curve diagram and bit track" area.

Figure 3-53 Displaying several measurements

Web server

Function Manual, 11/2019, A5E03484625-AG

95

Web pages 3.13 Record

Trace recordings
The "Trace recordings" area shows a list of all existing measurements, sorted by date and time of the trace recordings. A measurement always consists of a trace configuration with an associated recording.
The following table shows the special Web server shortcut menu commands in the Trace recordings area:

Table 3- 7 Web server shortcut menu commands in the trace recordings area

Shortcut menu command "Delete"
"Save as" "Show in chart" "Add in table"

Description Deletes the selected measurement on the memory card of the CPU. A confirmation dialog opens. After deletion, the display in the trend diagram is not automatically overwritten. Saves the selected measurement. Loads the selected measurement to the display area of the Web server. Inserts the selected measurement into the table in the "Measurements" tab.

Some data types offer the display of individual bit tracks. Enable the individual bit tracks of the signal opened in the signal table using the icon.

You can adjust the display of the signals in the signal table and with the toolbar of the curve diagram.

Figure 3-54 Trace measurement - All areas visible

Web server

96

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record

Toolbar of the trend diagram
As in STEP 7, the buttons on the function bar of the trend diagram provide you with tools for adjusting the display.
The following table shows the Web server buttons in the trend diagram toolbar:

Table 3- 8 Symbol

Buttons of the trend diagram toolbar
Function Open / add measurement

Save as

Undo move / zoom
Repeat move / zoom Snapshot Move view Zoom selection Vertical zoom selection Horizontal zoom selection Zoom in
Zoom out
Scaling Restore standard view
Display all Scale X automatically Scale Y automatically

Description
Opens measurements or adds measurement to an existing measurement.
Saves measurement(s) as a file with the extension .csv, .wtrc (SIMOTION format for saving Trace data) or .ttrecx (TIA Portal format for saving Trace data).
In addition to the measured data the command also saves the diagram, snapshots, marking and calculated signals.
Undoes the move / zoom function executed last. If you have carried out several move / zoom functions, you can undo these stepby-step.
Redoes the last undone move / zoom function. If you have undone several move / zoom functions, you can redo these step-by-step.
Saves the current view as a snapshot (see the section "Settings and displays of the Snapshot symbol").
Moves the display with a pressed mouse button - corresponds to the button in STEP 7.
Selection of an arbitrary range with the mouse button pressed. The button scales the display to the range selection.
Selection of a vertical range with the mouse button pressed. The button scales the display to the range selection.
Selection of a horizontal range with the mouse button pressed. The button scales the display to the range selection.
Enlargement of the display. The ranges of the X axis and Y axis are reduced every time the button is clicked. The curves are displayed larger.
Reduction of the display. The ranges of the X axis and Y axis are reduced every time the button is clicked. The curves are displayed smaller.
Scales all the signals or also only signal / signal group vertically and horizontally.
The button undoes scaling and move commands. The view is reset to the status at the time of loading of the measurement. Hidden signals are also reset but remain disabled.
The button moves all the signals completely into the display area without changing the relative positions of the signals to each other.
Automatic scaling of all visible signals on the horizontal X area.
Automatic scaling of all visible signals on the vertical Y area.

Web server

Function Manual, 11/2019, A5E03484625-AG

97

Web pages 3.13 Record

Symbol / /

Function Arrange in tracks
Unit switching of the time axis

Description Activate or deactivate the trace arrangement. When the trace arrangement is activated the signals are arranged among themselves with the relevant value axes. Signal groups are displayed in the same trace. This setting does not affect the display for the bit tracks. Switching the unit of the time axis You can enter the following information:

· Measuring points · Time (relative time related to the trigger time)

· Trigger stamp of the measurement points

Display measurement points

The button displays the measurement point as small circles on the curves.

Interpolation on/off

The buttons activate / deactivate the interpolation of the data of the trend diagram.

Grid

The button activates / deactivates the grid of the trend diagram

and regulates its brightness in the Levels 1 to 9.

Vertical measurement cursor

Display of vertical measurement cursor.

The vertical position of the two measurement cursors can be moved with the mouse.

The values of the signals and the difference between two measuring points are displayed in the signal table for all displayed signals and also in the trend diagram for the selected signal.

The measuring point or the relative/absolute time to the measurement cursors is displayed depending on the set unit of the time axis (X axis) in the movable pop-up window "Measuring points/Time values".

Horizontal measurement cursor

Display of the horizontal measurement cursors.

The horizontal position of the two measurement cursors can be moved with the mouse.

The Y values of the measurement cursor for the selected signal are displayed in the movable pop-up window "Y values".

Difference of the measurement cursor Display of the difference of the horizontal and vertical measurement cursors and the Y values at the intersections with the vertical measurement cursors.

Show legend

Showing or hiding of the legend in the curve diagram and the bit track labels.

Align the chart legend to the left

Display of the legend and the bit track labels on the left side of the curve diagram.

Align the chart legend to the right

Display of the legend and the bit track labels on the right side of the curve diagram.

Change background color

Changeover between various background colors.

Identification

The following table provides an overview of marked signal areas.
Note that selections are possible only for analog and real signals (no calculated signals).

All icons in the toolbar are equipped with tooltips.

Web server

98

Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record

Trend diagram

The trend diagram displays the selected signals of a recording. Bits are shown in the lower diagram as a bit track.



Trace recordings (minimized)



Toolbar of the trend diagram



Trend diagram and bit track



Signal table (minimized)

Figure 3-55 Trace measurement - only trend diagram visible

The following table shows the special Web server shortcut menu commands of a selected signal in the trend diagram:

Table 3- 9 Web server shortcut menu commands in the trend diagram area

Shortcut menu command "Scale Y automatically" "Hide signal"

Description Automatic scaling of the selected signal in Y direction. Hides the selected signal in the trend diagram.

Web server

Function Manual, 11/2019, A5E03484625-AG

99

Web pages 3.13 Record
Use of the trend diagram You can zoom the display area as you like. Measurement cursors (see " Toolbar of the
trend diagram") can be used to select individual values for display in the signal table. The following image shows how you can change the display area of the trend diagram as required with rulers and scroll bars.



Vertical ruler



Vertical scroll bar



Horizontal ruler



Horizontal scroll bar

Figure 3-56 Trace measurement - rulers and scroll bars

Using the vertical ruler
 If you click the vertical ruler at the top or the bottom, you increase the size of the display at the top or bottom.
 If you click the vertical ruler at the top or the bottom while keeping the shift key pressed, you scale both ends.
 If you click the vertical ruler at the top or the bottom while keeping the Ctrl key pressed, you move the display up or down.

Using the horizontal ruler
 If you click the horizontal ruler on the left or the right, you increase the size of the display on the left or right.
 If you click the horizontal ruler on the left or right while keeping the shift key pressed, you scale both ends.
 If you click the horizontal ruler on the left or the right while keeping the Ctrl key pressed, you move the display to the left or right.

100

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record

Using the mouse wheel
 If you activate the mouse wheel in the display, you move the display up or down.
 If you activate the mouse wheel in the display while keeping the shift key pressed, you move the display to the left or right.
 If you activate the mouse wheel in the display while keeping the Ctrl key pressed, you increase/reduce the size of the display at the position of the mouse pointer.

Signal tables

The signal tables list the signals of the selected measurement and provides setting options for some properties. The area of the signal tables is divided into the tabs "Measurements", "Signals" and "Calculated signal".

Settings and displays in the "Signals" tab
The following figure shows the signal table of the "Signals" tab.

Figure 3-57 Display in the "Signals" tab
The following table shows the settings and displays of the recorded signals of the "Signals" tab:

Column
Signal or error symbol

Description Signal symbol

Symbol for calculated signals (formulas)

Signal number Name

Selection for the display in the trend diagram
The point indicates that at least one bit has been selected for display as bit track for the signal in the bit selection. Automatically generated number of the signal The signal can be accessed via the signal number in the formulas. Display of the signal name A click on the name of a displayed signal updates the scale in the trend diagram.

Web server Function Manual, 11/2019, A5E03484625-AG

101

Web pages 3.13 Record
Column

Description Open bit selection Individual bits can also be selected for the following data types for display as a bit track in the lower curve diagram:
· Byte, Word, DWord, LWord · SInt, USInt, Int, UInt, DInt, UDInt, LInt, ULInt Example of an opened bit selection for the DWORD data type:

Data type Address
Color Signal group
Gray field for the chain icon of the signal group
Input field of the signal group Min. Y-scale Max. Y-scale Comment Y(t1) Y(t2) Y

Select or deselect the relevant bit for display by clicking the icon. Display of the data type Display of the address of the signal The field remains empty with optimized / type correct tags. Display and setting option for the color of the signal Display or input of the signal group name for one signal group The Y-scales are scaled identically for all signals of one signal group. Enter an identical signal group name for those signals that you want to scale identically. To remove signals from a signal group:
· Delete the signal group name. · Click the empty entry in the shortcut menu of the signal group Note that you cannot group binary signals. To add or delete the signal from a signal group, move the mouse pointer over the grey field or the chain icon ( or ), Clicking the chain icon adds the signal to a signal group or creates a new signal group. Clicking the chain icon removes the signal from the signal group. For a selected signal with signal group, the chain icon displays all signals of the same signal group. The input field displays the signal group name. As an alternative to the chain icon, you can assign or delete a group name via text input in this field. Display or input of the minimum value for the scaling of the signal Display or input of the maximum value for the scaling of the signal Display and input option for a comment about the signal Display of the value at the position of the first measuring cursor Display of the value at the position of the second measuring cursor Display of the value difference between the first and the second measuring cursor

102

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record

The following table shows the possible Web server shortcut menu commands of the "Signals" tab:

Table 3- 10 Web server shortcut menu commands of the "Signals" tab

Shortcut menu command "Scale Y automatically" "Show signal" "Hide signal" "Show all bits" "Hide all bits" "Use for determined signal" "Process calculated signal" "Delete calculated signal"

Description Automatic scaling of the selected signal in Y direction. Shows the signal in the trend diagram Hides the signal in the trend diagram Shows all the bits of a signal Hides all the bits of a signal Calculates a new signal based on the selected real signal Switches the selected calculated signal to the editing mode. Deletes the selected calculated signal

Settings and displays in the "Measurements" tab
The following figure shows the display of the "Measurements" tab and the shortcut menu of the "Alignment" column of a selected measurement.

Figure 3-58 Tab "Measurements" with shortcut menu

Web server Function Manual, 11/2019, A5E03484625-AG

103

Web pages 3.13 Record

The following table shows the settings and displays for the measurements:

Column

Description

Alignment of the measurements

Trigger/Sample

Alignment of the measurements in accordance with the trigger or measurement point.

The individual zero point for the measurement is predefined in the table under the "Alignment" column.

Time stamp (absolute time) Alignment of the measurements in accordance with their time stamp.

The signals are aligned in accordance with the time from the absolute time stamp.

Table columns

Static display of the measurement icon

Name Alignment
Offset
Time stamp Comment Shortcut menu commands "Save as WTRC" "Save as CSV" "Edit name" "Edit offset" "Edit comment" "Delete measurement"

Display and change options for the name Note that the name must be unique. Alignment of the measurement (only adjustable with the "Trigger/Sample" check box selected). Determines the individual zero point for a measurement. All signals for the measurement are displayed in relation to this zero point. The following settings are possible:
· Trigger · First sample after the trigger event · First sample · Last sampling
Offset related to the time axis Moves the measurement left or right by the offset stated on the time axis. If you enter solely a numerical value without a unit of measurement, the system automatically assigns the unit "ms" (for example 0=0ms, 100=100ms, 1000=1s, -1001=-1s 1ms , LT#2000ms=2s, LT#-3605000ms=-1h 5s , LT#-1h5s=-1h 5s ) Display of the trigger time Display and input option for a comment about the signal
Saves the measurement(s) as a file with the extension .csv, .wtrc (SIMOTION format for saving Trace data) or .ttrecx (TIA Portal format for saving Trace data). Exports a measurement as a file with the file extension .´csv. Note that the command only saves the measured data. The command does not save the diagram, snapshots, markings and calculated signals. Switches the name in editing mode Switches the offset in editing mode Switches the comment in editing mode Deletes the measurement

104

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record
Settings and displays in the "Calculated signal" tab
You can use this function to calculate new signals based on real signals. The system calculates the Y-values of the signal points in the process. To parameterize the signals to be calculated, open the "Calculated signal" tab. In the "General" section specify the name, the data type and color of a signal to be calculated. Note that the name of the signal to be calculated must differ from the name of a real signal.
Figure 3-59 "General" section of the "Calculated signal" tab Add the basic signals in the "Basic signals" section. The basic signals form the basis for calculating the new signal. You can change the default name of the variable in the "Name" column. You select real signals for the specification of the number of signal points to be calculated in the "Signal" column.

Figure 3-60 "Basic signals" section of the "Calculated signal" tab
Enter the code for the calculation of the Y values of the signal points in the "Calculated signal value" section. The section is divided into:  Basic mode (expression)  Advanced mode (JavaScript) Use the JavaScript syntax to enter the code for both modes. Take into account, however, that not the full JavaScript functionality is supported.

Web server Function Manual, 11/2019, A5E03484625-AG

105

Web pages 3.13 Record

Basic mode (expression) In this mode you use the following to create your code:  Standardized JavaScript expressions and operators (for example +, -, /, *, %, ~, &, |, ?, !)  Standardized math libraries  The tag names specified under "Basic signals"
(the system writes the Y-value directly to the tag name)

Figure 3-61 Basic mode (expression)

106

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record
Advanced mode (JavaScript) This mode offers you an advanced functional scope for the calculation of the Y value by means of a complex JavaScript code. You can, for example, specify own static tags for the iteration of code sections:

Figure 3-62 Advanced mode (JavaScript) The following table shows all the elements that you can use for your code:

if encodeURI
Infinity Object return switch
% !== ^ & &=
( ,
/*

var in decodeURI continue Number default
+ === ~ ?
) :
*/

Reserved words (case-sensitive)

Math

Array

catch

for

else

break

do

Date

case

parseFloat

new

case

parseInt

try

null

undefined

Operators

*=

!=

<=

--

/

>

++

-=

/=

+=

*

!

Delimiters

{

}

[

;

Comments

typeof escape
false true isNaN
|= = >= <
]

unescape delete String while throw
&& || == |
.

Web server Function Manual, 11/2019, A5E03484625-AG

107

Web pages 3.13 Record

Every signal point consists of the following attributes: 1. x (measuring point) 2. t (relative ^time in milliseconds) 3. y (Y value) 4. points (number of signal points that are available for the calculation of a new signal) In "Advanced Mode (JavaScript)" you can access all four attributes (e.g. "$1.y", "$1.t", "$1.x", $1.points[i].y, ...). The following function tables support you in writing expressions or complex code in JavaScript. The function table contains the functions used most often:

Figure 3-63 "Calculated signal" tab with function table

108

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record You also have the possibility to generate the JavaScript code of a real signal from the "Signals" tab. Alternatively you can also select one of predefined templates of the function table, change the code and generate a calculated signal.
Figure 3-64 Real signals of the "Signals" tab The following templates are available in the function table:  Numerical differentiation  Numerical integration  Arithmetic mean

Figure 3-65 Templates
To check the syntax, click the symbol "Check syntax" or generate the signal by clicking the icon in the toolbar. If the code has any errors, these are displayed to the right of the
"Check syntax" icon in red lettering. If the code does not have any errors, the "Syntax check successful" message is displayed.

Web server Function Manual, 11/2019, A5E03484625-AG

109

Web pages 3.13 Record

How does the system calculate a new signal? The system checks:  Whether you have selected a basic signal for the calculation of a new signal  The name of the signal to be calculated  The syntax of your JavaScript code Subsequently the system defines the counting of the measuring points and executes the code for each measuring point to be calculated. In each iteration the system stores the measuring points of the new signal on the basis of the following four attributes:  Measuring point  Relative time  Calculated Y value  Signal point with x-, t, y-values The course is displayed after calculation has been completed.
Example for calculating on the basis of a basic signal You use a single basic signal to calculate the new signal. The basic signal consists of 1000 measuring points. In this case the system carries out your written code a thousand times. The calculated signal then consists of 1000 calculated signal points with the same x- and t-values, but with own yvalues.
Import/export settings You can import/export certain parameters (formulas, calculation method, signal type and signal name. To import parameters, click the icon in the toolbar of the "Calculated signal" tab. To export parameters, click the icon in the toolbar of the "Calculated signal" tab.

110

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.13 Record

Settings and displays of the Snapshot icon

With the "Snapshot" icon in the toolbar of the trend diagram you save the current signal course in the form of a snapshot.

To create a snapshot of the signal course click the

icon. To manage the created

snapshots, click the arrow on the left next to the "Snapshot" icon and select the entry

"Manage snapshots".

Figure 3-66 Managing snapshots The following table shows the settings and displays of the "Managing snapshots" window.

Column
Name Time stamp Comment

Description Static display of the snapshot icon
Display and change options for the name Display of the creation time of the snapshot Display and input option for a comment The following table shows the possible shortcut menu commands:

Shortcut menu command "Restore snapshot" "Remove snapshot" "Edit name" "Edit comment"

Description Shows the measurement with the saved view in the "Diagram" tab. Deletes the snapshot. Switches the name in editing mode Switches the comment in editing mode

Note Delete measurement
If you delete a measurement of a calculated signal, all the associated snapshots are also deleted.

Web server Function Manual, 11/2019, A5E03484625-AG

111

Web pages 3.14 DataLogs

3.14

DataLogs

DataLogs

On the DataLogs web page, you can view all the DataLogs that you have created.
You can sort the DataLogs according to individual parameters in ascending or descending order. For this purpose, click on one of the parameters in the column header:
 Name
 Size
 Changed
You can download the relevant DataLog file by clicking the file name.
The "Active" column shows whether the respective DataLog file is used (is active) or not.
When the DataLog file is active, you can call (download) and empty the relevant DataLog file by clicking the icon . The file must be closed. The empty DataLog file is still maintained in the list of DataLogs.
You delete the DataLog file by clicking the icon in the "Delete" column. The file must be closed.
You close an opened DataLog file in STEP 7 by using the "DataLogClose" instruction.

Figure 3-67 DataLogs

112

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.14 DataLogs

3.14.1

Automated reading out of DataLogs
In addition to the downloading of individual DataLogs via the user interface of the Web server, you can download, read out and archive DataLogs. Automatic downloading of DataLogs is realized either by the execution of scripts in, for example, Bash or on your HTML user page via JavaScript.
A typical application for this functionality is the daily reading out and archiving of DataLogs from one or more CPUs at a specific time.

Calling up of the DataLogs from the SIMATIC memory card
The CPU makes a URL in the following format available so that you can download DataLogs automatically from the SIMATIC memory card of your CPU: http[s]://[ip]/DataLogs?Action=List
Enter the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS), for example https://192.168.2.132/DataLogs?Action=LIST. Subsequently call up the URL in your browser or command line interpreter.
The URL returns a list of the DataLogs on the SIMATIC memory card. Each entry returns the URL by which you download the corresponding DataLog.
For simple syntax analysis of the list by command line interpreters (such as Bash) or webbased programming languages (such as JavaScript) the individual URLs are separated by a line break <CR><LF>. The following example shows the syntax of two URLs that access the DataLog files Test.txt and Test2.txt:
/DataLogs?Path=/DataLogs/Test.txt&Action=DOWNLOAD&E=1<CR><LF>
/DataLogs?Path=/DataLogs/Test2.txt&Action=DOWNLOAD&E=1<CR><LF>
<CR><LF>
When the URLs are called successfully, the CPU returns the status code 200 OK. The CPU also returns this status code if no DataLogs exist on the SIMATIC memory card.
Note Access authorization to the CPU for the reading out of data
In order to download DataLogs from the CPU, the user has to dispose of reading rights on the CPU. If the user does not have the required rights, the CPU returns the status code 403 FORBIDDEN in the HTTP Response.

Downloading of the DataLogs via Bash scripts
The following example shows how you can download DataLogs automatically from the CPU by using a Bash script. Replace the URL of the example by the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS). wget --content-disposition -i "http://192.168.2.132/DataLogs?Action=LIST"

Web server Function Manual, 11/2019, A5E03484625-AG

113

Web pages 3.14 DataLogs
Downloading of the DataLogs via JavaScript
The following example shows how you can download DataLogs automatically by using JavaScript. Replace the URL of the example by the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS). <html>
<head> <title>DataLog JavaScript Test</title> <script type="text/javascript" src="jquery-
1.12.4.min.js"></script> </head> <body> <h1>DataLog JavaScript Test</h1> <div><button id="load">Load DataLogs</button></div> <div><ul id="list"></ul></div> <script type="text/javascript"> $('#load').click(function(){ $.get('http://192.168.2.132/DataLogs', {'Action': 'LIST'}, function(data){ $('#list').empty(); $.each(data.split(/\r\n/), function(){ if (this.length == 0) continue; $('#list').append('<li><a href="http://192.168.2.132' + this + '">' + this + '</a></li>'); }); }); }); </script> </body>
</html>

114

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.15 User files

3.15

User files

Introduction

You read and write with the instructions "FileReadC" (Compact Read Data of a File) or "FileWriteC" (Compact Write Data to a File) in STEP 7 ASCII files (files in binary format).

Requirements

You need to save the UserFiles in the "UserFiles" directory on the SIMATIC memory card. You specify the storage location in the path of the "FileReadC" or "FileWriteC" instruction. Path and file name for UserFiles have to fulfill the following rules:  The file name must not be longer than 55 characters.  The following characters are permitted for the directory and file name: 0 to 9, a to z in
upper- and lower-case, "-" and "_"  The path name must not start with "/", "\" or "."  The path name must not contain ".." Examples:  UserFiles\Lift16_DataBase.txt  UserFiles\2017-04-13_ErrorLog.bin

Web server Function Manual, 11/2019, A5E03484625-AG

115

Web pages 3.15 User files
"User files" Web page
The browser displays the content of the SIMATIC memory card, directory UserFiles\ on the "User files" Web page. You can sort the UserFiles according to the individual parameters in ascending or descending order. To do this, click on one of the parameters in the column header:  Name  Size  Changed You can download, delete, and upload files. You download the UserFile by clicking the file name. By clicking on the icon, you can delete the UserFile. The file must be closed.
Figure 3-68 User files view
NOTICE Size UserFiles When you open a large UserFile through this Web page, the processing times of the instructions that process this file can increase notably.

116

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.15 User files

3.15.1

Automatically read or upload user files
In addition to the Web server's user interface, you can automatically list, delete, download and upload UserFiles. Use JavaScript or Bash for this, for example.

Opening UserFiles from the SIMATIC memory card
The CPU makes a URL in the following format available so that you can list UserFiles automatically from the SIMATIC memory card of your CPU: http[s]://[ip]/UserFiles?Action=List
Enter the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS), e.g. https://192.168.2.132/UserFiles?Action=LIST. Subsequently call up the URL in your browser or command line interpreter.
The URL returns a list of the UserFiles on the SIMATIC memory card. Each entry returns the URL by which you download or delete the corresponding UserFile from the CPU. The actions to be performed are separated by a vertical line "|".
For simple syntax analysis of the list by web-based programming languages (such as JavaScript), the individual URLs are separated by a line break <CR><LF>. The following example shows the syntax of two URLs that access the UserFiles File1.csv and File2.csv:
File1.csv|/UserFiles?Name=File1.csv&Action=DOWNLOAD&E=1|/UserFiles?Name=File1.csv&Acti
on=DELETE&E=1<CR><LF>
File2.csv|/UserFiles?Name=File2.csv&Action=DOWNLOAD&E=1|/UserFiles?Name=File2.csv&Acti
on=DELETE&E=1<CR><LF>
<CR><LF>
When the URLs are called successfully, the CPU returns the status code 200 OK. The CPU also returns this status code if there are no UserFiles on the SIMATIC memory card.
Note Access authorization to the CPU for the reading out of data
In order to download UserFiles from the CPU, the user must have reading rights for the CPU. If the user does not have the required rights, the CPU returns the status code 403 FORBIDDEN in the HTTP Response.

Web server Function Manual, 11/2019, A5E03484625-AG

117

Web pages 3.15 User files
Uploading UserFiles to the SIMATIC memory card
The CPU makes a URL in the following format available so that you can upload UserFiles automatically to the SIMATIC memory card of your CPU: http[s]://[ip]/UserFiles?Action=UPLOAD
The following example shows how you can upload a UserFile to your HTML user page automatically using JavaScript.
Replace the URL of the example by the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS). <html>
<head> <title>UserFiles Upload</title>
</head> <body>
<form method="POST" action="https://192.168.2.132/UserFiles?Action=UPLOAD&E=1" enctype="multipart/form-data">
<input type="file" name="File" /> <input type="submit" /> </form> </body> </html>
When the upload of the UserFile is successful, the CPU returns the status code 201 CREATED. If the UserFile already exists on the SIMATIC memory card, the CPU returns the status code 409 CONFLICT.
Note Access authorization to the CPU for uploading data
In order to download UserFiles to the CPU, the user must have write rights for the CPU. If the user does not have the required rights, the CPU returns the status code 403 FORBIDDEN in the HTTP Response.
Downloading UserFiles via Bash scripts
The following example shows how you can download UserFiles automatically from the CPU using a Bash script. Replace the URL of the example by the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS). wget --content-disposition -i "http://192.168.2.132/UserFiles?Action=LIST"

118

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.15 User files
Downloading UserFiles via JavaScript
The following example shows how you can download UserFiles automatically using JavaScript. Replace the URL of the example by the correct IP address of the interface of your CPU at this URL and use the appropriate transfer protocol (HTTP or HTTPS). <html>
<head> <title>UserFiles JavaScript Test</title> <script type="text/javascript" src="jquery-
1.11.2.min.js"></script> </head> <body> <h1>UserFiles JavaScript Test</h1> <div><button id="load">Load UserFiles</button></div> <table
border="1"><thead><th>Name</th><th>Operation</th></thead><tbody id="list"></tbody></div>
<div><form method="POST" action="http://192.168.2.132/UserFiles?Action=UPLOAD&E=1" enctype="multipart/form-data"><input type="file" name="File" /><input type="submit" /></form></div><br>
<script type="text/javascript"> function Delete(url) { $.post('http://192.168.2.132/UserFiles' + url, {}, function(){ $('#load').click(); }); } $('#load').click(function(){ $('#list').empty(); $.get('http://192.168.2.132/UserFiles', {'Action': 'LIST'},
function(data){ $.each(data.split(/\r\n/), function(){ var data = this.split("|"); if (data.length == 3)
$('#list').append('<tr><td>'+decodeURIComponent(data[0])+'</td><td>< a href="http://192.168.2.132'+data[1]+'">Download</a><br><button type="button" onclick="Delete(\''+data[2]+'\')">Delete</button></td></tr>');
}); }); }); </script> </body> </html>

Web server Function Manual, 11/2019, A5E03484625-AG

119

Web pages 3.16 User pages

3.16

User pages

User pages

In the "User pages" area of the Web server you can upload HTML pages you have created yourself for reading out data of the target system.

Figure 3-69 User pages
You create the pages with an HTML editor of your choice from which you generate data blocks (Web control DB and Fragment DBs) in STEP 7 and download them to the CPU. The "WWW" instruction synchronizes the user program with the Web server on the CPU and initializes the Web server. With the first call of the "WWW" instruction, the link to the user page is displayed on the web page of the CPU. A click on the link opens the user page in a new window.
Note
Write access to user pages allows the process parameters and, thus, the operation of the CPU to be influenced. To prevent external manipulation, always assign a password for users with write access to user pages in the user management. You will find information on user management in section Configuring the Web server (Page 19) under "Amending user management".

120

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

Requirements

 You have assigned symbolic names to the tags you want to use on your web page in STEP 7 .
 In the Inspector window under "Properties > General > Web server", you have at least:
­ Activated the Web server
­ Assigned read-only or read and write permissions to the users for user pages (see section Configuring the Web server (Page 19))
 You have completed all necessary communication settings (IP address parameter, subnet mask, etc.).
 You have downloaded the configuration.
 You have created your user page in an HTML editor of your choice:
­ Automatic HTML pages, if you want to disable control of the page layout by means of the user program (requires at least one call of SFC 99). Changes in mode from RUN to STOP do not affect the call of the user pages.
­ Manual HTML pages, if you want to enable control of the page layout by means of the user program (cyclic call of SFC 99 required).

Web server Function Manual, 11/2019, A5E03484625-AG

121

Web pages 3.16 User pages
Creating user pages
You can use any HTML editor to create your own user page(s). Make sure that your HTML code complies with the standards of the W3C (World Wide Web Consortium), because STEP 7 does not check the HTML syntax in any way. In addition to the simple HTML code, you can also use JavaScript commands in your user pages.
Proceed as follows:
1. Create the HTML file for your user page with an HTML editor. To allow data from the CPU to be output on your web page, integrate the AWP commands as HTML comments (see section AWP commands (Page 124)).
2. Store the HTML file and all associated source files (e.g., *.gif, *.jpg, *.js, etc.) in a directory on your PG/PC and note the storage path.
3. Call the "WWW" instruction in STEP 7 and program it (see section Programming the WWW instruction (Page 139)).
4. Configure the user page in STEP 7 (see section Configuring user pages (Page 138)). In this way, you compile the contents of your HTML files, among other things, into data blocks.
5. Download the configuration and the user program to the CPU.
6. Open your user page with your display device by means of a web browser in the Web server of the CPU.
Note
Extensive HTML pages, especially those with a lot of images, take up a lot of space in the load memory. Make sure you select a SIMATIC memory card with enough memory to provide sufficient load memory.
If the sum of the HTML pages > 1 MB, performance losses may occur as only 1 MB data is saved in the cache.
We recommend that you create each individual file of an HTML page with a size not exceeding 512 KB; otherwise, problems can occur when sending the file from the Web server to the browser. You can view the size of the respective file in the file explorer of the directory.

122

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

Updating user pages
User pages are not updated automatically in the browser. You can program the HTML code so that the pages are updated automatically. Pages which read out data from the controller are always up-to-date due to regular updates.
Note If the HTML page contains form fields for data input, automatic update can impair the correct data input by the user.
To update the entire page automatically, you can add the following instruction to the <head> area of your HTML page, whereby the number "10" stands for the update interval in seconds: <meta http-equiv="refresh" content="10">

References

The description of a user page is available in the section Example of a user page (Page 143).
Additional help for visualization with user pages is available in the application examples on the Internet:
 Creating and using your own Web pages for S7-1200 (http://support.automation.siemens.com/WW/view/en/58862931)
 Creating and using your own Web pages for S7-1200 / S7-1500 (https://support.industry.siemens.com/cs/de/en/view/68011496)
 Visualizing with user-defined Web pages on SIMATIC CPUs with PROFINET interface (http://support.automation.siemens.com/WW/view/en/44212999)
 How do you integrate the string contents in your user-defined Web page of the S7-1500 CPU as of Firmware V1.6? (https://support.industry.siemens.com/cs/ww/en/view/98754370)
You will find more information on JavaScript commands in the ECMAScript specification on the Internet (http://www.ecma-international.org/ecma-262/5.1/).
For more information about how to automatically update web pages and how to incorporate user pages with relative path names, refer to the FAQ with entry ID 62543256 on the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/62543256) Internet page.

Web server Function Manual, 11/2019, A5E03484625-AG

123

Web pages 3.16 User pages

3.16.1

AWP commands

Overview

Automation Web Programming (AWP) commands are a special command syntax for exchanging data between the CPU and the user page (HTML file). AWP commands are entered as HTML comments and offer you the following options for your user-defined pages:  Reading PLC tags  Writing PLC tags  Reading special tags  Writing special tags  Defining enum types  Assigning enum types to tags  Defining data block fragments  Importing data block fragments  Accessing the values of an array  Accessing the values of a PLC tag of the data type STRUCT

General syntax
All AWP commands, except for the command for reading a PLC tag, have this structure: <!-- AWP_< command name and parameter> -->
Files including AWP commands:  must be UTF-8 encoded.
To define UTF-8 as the character set of the page, include the following line in your HTML code:
<meta http-equiv="content-type" content="text/html; charset utf-8">
Note Saving the HTML page Make sure that you save the file in the editor in UTF 8 character encoding as well.
 may not include the following sequence: ]]>  may not include the following sequence outside "read tag areas" (:="<Varname>":):  depending on the use, must identify special characters in tag names or data block names
with character escape sequences or quotation marks  are case-sensitive  should be additionally enclosed by JavaScript comments ("/*...*/") in JavaScript files

124

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

Overview of AWP commands

Table 3- 11 AWP commands

Function Reading PLC tags Writing PLC tags Reading special tags Writing special tags Defining enum types
Assigning enum types to tags
Defining data block fragments
Importing data block fragments Accessing the values of an array
Accessing the values of a PLC tag of the data type STRUCT

Representation :=<Varname>:
<!-- AWP_In_Variable Name='<Varname1>' -->
<!-- AWP_Out_Variable Name='<Typ>:<Name>' -->
<!-- AWP_In_Variable Name='<Typ>:<Name>' -->
<!-- AWP_Enum_Def Name='<Name Enum-Typ>' Values='0: "<Text_1>",1:"<Text_2>",...,x:"<Text_y>"' --> <!-- AWP_Enum_Ref Name='<Varname>' Enum='<Name Enum-Typ>' --> <!-- AWP_Start_Fragment Name='<Name>'[Type=<Typ>] [ID=<Id>] --> <!-- AWP_Import_Fragment Name='<Name>' -->
<!-- AWP_Start_Array Name='"<DB name>".<array name>' --> ... <!-- AWP_End_Array --> <!-- AWP_Start_Struct Name='"<DB name>".<struct name>' -> ... <!-- AWP_End_Struct -->

3.16.1.1

PLC tags

Introduction to PLC tags
User pages can read PLC tags from the CPU and write data to the CPU.
To do so, PLC tags must:
 be enclosed by double quotation marks ("...").
 also be enclosed by single quotation marks ('" ... "') or with quotation marks masked with a backslash ("\" ... "\").
 be specified by a PLC tag name.
 if the PLC tag name includes the characters \ (backslash) or ', identify these characters with the escape sequence \\ or \' as normal characters of the PLC tag name.
 be enclosed with single quotation marks ('...'), if an absolute address (input, output, bit memory) is used in the AWP command.

Web server Function Manual, 11/2019, A5E03484625-AG

125

Web pages 3.16 User pages

Reading PLC tags
These out-tags (output direction as seen from the controller) are inserted at any place in the HTML text with the syntax described below.
Syntax :=<Varname>:
<Varname> corresponds to the tag to be read from your STEP 7 project and can be a simple shared tag or a complete tag path to a structural element. Make sure that you use the name of the data block and not its number when you use data blocks.

Examples

:="Conveying speed": :="My_datablock".bitmemory1: :=%MW100:

Reading tags of the String and Character type
Below, these types of quotation marks are used in the explanation: single quotation marks ('), double quotation marks (").
As of firmware V1.6, with the "Read PLC tags" function, the CPU outputs tags of the String or Character type enclosed in single quotation marks to the browser. For example:
 "Varname".MyString = ABC string tag
 You read the tag in HTML using the function :="Varname".MyString:
 The Web server outputs the character string 'ABC' to the browser

126

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages
Using String or Character tags in expressions
On your HTML page, you use an expression in which the character string for reading a tag is enclosed in quotation marks, for example in forms. Possible HTML code used: <input type="text" name="appfield" value="myvalue"> If you read the displayed value for the "value" attribute from a PLC tag in this expression, the HTML code appears as follows: <input type="text" name="appfield" value=":="Varname".MyString:"> By reading the PLC tag, the Web server outputs the value 'ABC'. In HTML, the code is then represented as follows: <input type="text" name="appfield" value=" 'ABC' "> If you have used single quotes instead of double quotes in your HTML code to enclose the attributes, the web server passes on the content of the tag enclosed in two single quotes to the browser. As a result of this, the browser does not output the content of the String or Character tag, since two consecutive single quotation marks each form a closed sequence. The values to be read are located between these sequences and are not output by the browser. In this context, note in particular that the character string with double quotation marks is not identical to two single quotation marks even if they appear to be identical.
Note The code is not adapted automatically during an update to firmware as of V1.6. Adapt your HTML code if you have used single quotation marks to enclose attributes for the "Read PLC tags" function.
Figure 3-70 Example of HTML code with attribute in single quotation marks

Web server Function Manual, 11/2019, A5E03484625-AG

127

Web pages 3.16 User pages
Writing PLC tags
These in-tags (input direction as seen from the controller) are set on the browser page. This can take place in a form on your HTML page, for example, with text input or list selection boxes that correspond to the tags that can be written. The tags are either set in the HTTP header (by cookie or POST method) or in the URL (GET method) by the browser in the HTTP request and are then written by the web server into the respective PLC tag.
Note Write access during operation In order for data to be written to the CPU from a user page, a user with corresponding write rights must be set up and the user must be logged in as this user. This applies to all write accesses of web pages to the CPU.
Syntax <!-- AWP_In_Variable Name='"<Varname1>"' Name='"<Varname2>"' Name='"<Varname3>"' -->
If the name of the tag that you are using for the web application is not identical with the name of the PLC tag, you can assign it to a PLC tag with the "Use" parameter. <!-- AWP_In_Variable Name='<Varname_Webapp>' Use='<PLC_Varname>' -->
Examples with HTML input fields
<!-- AWP_In_Variable Name='"Target_Level"' --> <form method="post"> <p>Input Target Level: <input name='"Target_Level"' type="text"><input type="submit" value="Write to PLC"> </p> </form>
<!-- AWP_In_Variable Name='"Data_block_1".Braking' --> <form method="post"> <p>Braking: <input name='"Data_block_1".Braking' type="text"> <input type="submit" value="Write to PLC"></p> </form>
Example with HTML selection list
<!-- AWP_In_Variable Name='"Data_block_1".ManualOverrideEnable' --> <form method="post"> <select name='"Data_block_1".ManualOverrideEnable'> <option value=1>Yes</option> <option value=0>No</option> </select><input type="submit" value="submit setting"> </form>

128

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.1.2

Special tags

Special tags

The special tags are mainly the so-called HTTP tags that are defined in the definitions of the World Wide Web Consortium (W3C). Special tags are also used for cookies and server tags.

Reading special tags
The web server can read PLC tags and pass them to special tags in the HTTP response header. You can, for example, read out a path name from a PLC tag to redirect the URL to another storage location with the special tag "HEADER:Storage location".
Syntax <!-- AWP_Out_Varible Name='<Type>:<Name>' Use='<Varname>' -->
<Type> corresponds to the type of the special tag. Options are:  HEADER  COOKIE_VALUE  COOKIE_EXPIRES <Name> corresponds to the name of the HEADER tag or the cookie:  HEADER tags:
­ Status: HTTP status code (if no other value is set, status code 302 is returned). ­ Location: Path for redirection to another page. Status code 302 must be set. ­ Retry-After: Time for which the service is most likely not available. Status code 503
must be set.  COOKIE_VALUE:name: Value of the named cookies.  COOKIE_EXPIRES:name: Delay time of the named cookie in seconds.

Examples

The HTTP HEADER tag is written to the PLC tag of the same name: <!-- AWP_Out_Variable Name='"HEADER:Status"' -->
If the name of the special tag is not identical with the name of the PLC tag, you can assign it to a PLC tag with the "Use" parameter: <!-- AWP_Out_Variable Name='"HEADER:Status"' Use='"Status"' -->

Web server Function Manual, 11/2019, A5E03484625-AG

129

Web pages 3.16 User pages

Writing special tags
The web server allows you to write values of special tags written in the HTTP header to the CPU. In STEP 7, for example, you can store information on the cookie of a user page or on the user who accesses a page.
Syntax <!-- AWP_In_Variable Name='<Type>:<Name>' Use='Varname' -->
<Type> corresponds to the type of the special tag. Options are:  HEADER  SERVER  COOKIE_VALUE <Name> corresponds to the name of the HEADER tag or the cookie:  HEADER tags:
­ Accept-Language: Accepted or preferred language ­ User-Agent: Browser information ­ Authorization: Credentials for a requested resource  SERVER tags: ­ current_user_id: Indicates whether a user is logged in:
current_user_id=0: No user is logged on / user "Everybody" has access. current_user_id=1: At least one user is logged on. ­ current_user_name: User name of the logged-on user  COOKIE_VALUE:name: Value of the named cookies.

Examples

The HTTP SERVER tag is written to the PLC tag of the same name: <!-- AWP_In_Variable Name='"SERVER:current_user_id"' -->
The HTTP SERVER tag is written to the PLC tag "My_User ID": <!-- AWP_In_Variable Name='"SERVER:current_user_id"' Use='"My_UserID"' -->

130

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.1.3

Enum types

Enumeration types (enum types)
Enum types convert numerical values from the PLC program into texts or vice versa. The numerical values may also be assigned for use with several languages.

Define enum types
You can define enum types in your user pages and assign the values in an AWP command.
Syntax <!-- AWP_Enum_Def Name='<Name Enum-Typ>' Values='0:"<Text_1>", 1:"<Text_2>",...,x:"<Text_y>"' -->

Examples

To store German values as HTML file in the "de" folder of the HTML directory: <!-- AWP_Enum_Def Name="Enum1" Values='0:"an", 1:"aus", 2:"Störung"' -->
To store English values as HTML file in the "en" folder of the HTML directory: <!-- AWP_Enum_Def Name="Enum1" Values='0:"on", 1:"off", 2:"error"' ->

Assigning enum types to tags
The assignment of tags from the user program to the individual enum types takes place by means of a separate AWP command. The used tag can be used at a different location of the user pages in a read operation or in a write operation.
During a read operation, the web server replaces the value read from the CPU with the correspondingly defined enum text value. During a write operation, the web server replaces the defined enum text value with the corresponding integer value of the enumeration before the value is written to the CPU.
Syntax <!-- AWP_Enum_Ref Name='<Varname>' Enum="<Enum-Type>" -->
<Varname> is the symbolic tag name from the user program, <Enum-Type> of the previously defined name of the enum type.

Example for a declaration
<!-- AWP_Enum_Ref Name='"Alarm"' Enum="AlarmEnum" -->

Web server Function Manual, 11/2019, A5E03484625-AG

131

Web pages 3.16 User pages
Example of how to use when reading a tag
<!-- AWP_Enum_Def Name='AlarmEnum' Values='0:"No Alarm", 1:"Vessel is full", 2:"Vessel is empty"' --> <!-- AWP_Enum_Ref Name='"Alarm"' Enum="AlarmEnum" --> ... <p> The current value of "Alarm" is :="Alarm": </p>
If the value of "Alarm" in the CPU is 2, the HTML page shows 'The current value of "Alarm" is container is empty' because the definition of the enum type assigns the numerical value 2 to the character sequence "Container is empty".
Example of how to use when writing a tag
<!-- AWP_Enum_Def Name='AlarmEnum' Values='0:"No Alarm", 1:"Vessel is full", 2:"Vessel is empty"' --> <!-- AWP_In_Variable Name='"Alarm"' --> <!-- AWP_Enum_Ref Name='"Alarm"' Enum="AlarmEnum" --> ... <form method="post"> <p><input type="hidden" name ='"Alarm"' value='Vessel is full' /></p> <p><input type="submit" value='Set vessel is full' /></p> </form>
The value 1 is written to the PLC tag "Alarm" because the definition of the enum type assigns the numerical value 1 the text "Container is full".
Note that the name specified in "AWP_In_Variable" must be exactly the same as the name specified in "AWP_Enum_Ref".

132

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.1.4

Fragments

Fragments

Fragments are "logical sections" of a web page to be processed by the CPU individually.
Fragments are usually entire pages, but they can be individual elements, such as files (e.g. images) or documents.

Note
In each fragment in which enum texts are referenced by a PLC tag, this PLC tag must be assigned to the enum type name with the appropriate AWP command.

Defining fragments
A fragment extends to the beginning of the next fragment or to the end of the file.
Syntax <!-- AWP_Start_Fragment Name='<Name>' [Type="<Typ>"] [ID="<Id>"] -->
This command specifies the start of a fragment.  <Name> Specifies the name of the fragment. The name must start with a letter [a-zA-Z]
or an underscore ( _ ). This first character can be followed by letters, underscores or numbers [0-9].  <Type> Specifies the type of the fragment. ­ "manual": The application program is notified of the request for a fragment and can
react accordingly. The functionality of the fragment must be controlled with STEP 7 and the tags of the control DB. ­ "automatic": The page is edited automatically (default)  <Id> You can specify a numerical ID for the fragment. If no ID is assigned, the fragment is automatically assigned an ID. For manual pages (<Type>=manual), the fragment can be addressed with this ID in the user program of the CPU.
Note ID assignment Set the ID as low as possible because the highest ID influences the size of the Web control DB.
 <Modus> ­ "visible": The contents of the fragment are displayed on the user page (default). ­ "hidden": The contents of the fragment are not displayed on the user page.

Web server Function Manual, 11/2019, A5E03484625-AG

133

Web pages 3.16 User pages
Importing fragments
You can specify a fragment in an HTML page and import this fragment into other websites.
Note Ensure that no AWP command for importing fragments is positioned between an enum assignment and enum usage, because this import can result in the enum assignment being located in a different fragment than the enum usage.

Example Example

A company logo is to be displayed on all websites of a web application. The HTML code for the fragment that displays the company logo exists only once. You can import the fragment as many times and into as many HTML files as required.
Syntax <!-- AWP_Import_Fragment Name='<Name>' --> <Name> corresponds to the name of the fragment to be imported.
HTML code within a web page that creates a fragment for displaying an image: <!-- AWP_Start_Fragment Name='Mein_Firmenlogo' --> <p><img src="CompanyLogo.jpg"></p> HTML code that imports the created fragment into another web page: <!-- AWP_Import_Fragment Name='My_Company_Logo' -->

134

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.1.5

Arrays

Arrays

The Web server provides the user program commands AWP_Start_Array and AWP_End_Array for accessing all values of an array.
Only one-dimensional arrays are supported.
Multidimensional arrays of the form array[x][y] are not supported.

Syntax

<!-- AWP_Start_Array Name='"<DB name>".<array name>' --> ... Content of the array, utilized keywords: ArrayIndex and value.. <!-- AWP_End_Array -->

Parameter

 <Name> defines the name of the array with the elements you want to access. ­ You require the DB name and the name of the array corresponding to the data block structure defined in STEP 7. ­ The name must be within single or double quotation marks. ­ The DB name is within double quotation marks.
 <ArrayIndex> Index of an array element  <value> Value of an array element

Example

The example reads all elements of the "MyArray" structure in the "DB_Name" data block of the CPU and displays the index and the values of the tags on the user-defined web page.

<!-- AWP_Start_Array Name='"DB_Name".MyArray' --> Index: :=ArrayIndex: Value: :=value: <!-- AWP_End_Array -->
The code indicated above generates the following display: Index: 1 Value: 42 Index: 2 Value: 43 Index: 3 Value: 44

Web server Function Manual, 11/2019, A5E03484625-AG

135

Web pages 3.16 User pages

Representation of arrays of the BOOL data type
The output of arrays of the BOOL type is always filled to the next full 8 bits. This particular feature only occurs with BOOL arrays. Example: "DB_1".bitArray is a BOOL array with 5 elements. <!-- AWP_Start_Array Name='"DB_1".bitArray' --> :=ArrayIndex: -> :=value: <!-- AWP_End_Array -->
Edition: 0 -> Value from "DB_1".bitArray[0] 1 -> Value from "DB_1".bitArray[1] 2 -> Value from "DB_1".bitArray[2] 3 -> Value from "DB_1".bitArray[3] 4 -> Value from "DB_1".bitArray[4] 5 -> 0 6 -> 0 7 -> 0

3.16.1.6

Structures

Structures

The web server provides AWP commands for accessing structures in order to access the values of a PLC tag of the data type STRUCT.

Syntax

<!-- AWP_Start_Struct Name='"<DB name>".<struct name>' --> ... Content of structure ... <!-- AWP_End_Struct -->

Parameter

 <Name> defines the name of the structure with the elements you want to access. ­ You require the DB name and the name of the structure corresponding to the data block structure defined in STEP 7. ­ The name must be within single or double quotation marks. ­ The DB name is within double quotation marks.

136

Web server Function Manual, 11/2019, A5E03484625-AG

Example

Web pages 3.16 User pages
The example reads elements of the "MyStruct" structure in the "DB_Name" data blocks of the CPU and displays the value of the tag on the user-defined web page.

<!-- AWP_Start_Struct Name='"DB_Name".MyStruct' --> :=A: :=B: :=C: <!-- AWP_End_Struct -->
The code indicated above corresponds to the following commands: :="DB_Name".MyStruct.A: :="DB_Name".MyStruct.B: :="DB_Name".MyStruct.C:

Web server Function Manual, 11/2019, A5E03484625-AG

137

Web pages 3.16 User pages

3.16.2

Configuring user pages

Configuring user pages

Figure 3-71 Configure user-defined pages in STEP 7
To configure the user-defined pages in STEP 7, proceed as follows:
1. Select the CPU in the device configuration.
2. Open the settings in the Inspector window of the CPU under "Properties > General > Web server".
3. Select the folder on your display device in which you have saved your HTML page in the
"User-defined pages" area under  "HTML directory". 4. Enter the name of the HTML page under  "Default HTML page" that is to open when
you start the application.
5. You can also specify a name for your application under  "Application name". This
name is used to further divide or group the webpages. If an application name already exists, the URL is displayed in the following format: http://a.b.c.d/awp/<Application name>/<Page name>.html
6. In the "Extended" area, enter the file extensions that have to be checked for AWP
commands in input box  "Files with dynamic contents". By default, STEP 7 analyses
files with the extensions "htm" and "html". Here you can enter other file extensions that you have used when creating your user page.
7. You can accept the number for the Web DB  and the fragment DB start number  or
you can assign a new number of your choice that is not assigned.

138

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages
8. Click the button  "Create blocks" to create data blocks from the source files. The
generated data blocks are stored in the STEP 7 project tree in the folder "System blocks > Web server". These data blocks consist of a control data block (Web control DB) that controls the display of the webpages and one or several data block fragments (fragment DBs) with the compiled webpages. 9. In the network view, select the CPU to be loaded and then select the "Download to device" command in the "Online" menu to download the blocks. The compilation of the blocks is implicitly triggered before the download. If errors are signaled during this process, they must be remedied before you can download the configuration.
Deleting data blocks Click the "Delete block" button  to delete previously generated data blocks. STEP 7
deletes the Web Control DB and all fragment DBs from the project in which your userdefined pages are located.

3.16.3

Programming the WWW instruction

The WWW instruction
The instruction WWW initializes the Web server of the CPU or synchronizes the user-defined pages with the user program in the CPU. The Web Control DB is the input parameter for the WWW instruction and specifies the content of the pages as they are displayed in the fragment DBs, as well as the status and control information. STEP 7 creates the WebControl DB when you click on the "Generate blocks" button.
Note DB number of the web control DB.
If you change the DB number of the DB 333, the user pages in the Web server can no longer be reached at renewed downloading into the CPU. Error code W#16#007F is output at the parameter RET_VAL. Therefore observe the default setting DB 333 for the Web Control DB.
If you want to change the DB number nevertheless, you have to switch the CPU POWEROFF  POWER ON, so that the user pages in the Web server can be reached.

Web server Function Manual, 11/2019, A5E03484625-AG

139

Web pages 3.16 User pages

Programming the WWW instruction
The user program must execute the WWW instruction in order that the user-defined pages can be called in the Web server.

Table 3- 12 WWW instruction

LAD/FBD

SCL

Description

ret_val

Access to user pages by means

:=WWW(ctrl_db:=uint_in_) of the Web server

;

Parameters

The following table shows the parameters of the WWW instruction.

Table 3- 13 Parameters

Parameters CTRL_DB

Declaration Input

RET_VAL

Output

Data type DB_WWW
INT

Description
Data block that describes the user pages (Web control DB)
Error information

RET_VAL parameter
Table 3- 14 RET_VAL Error code (W#16#...) 0000 00xy
803A 8081 80C1

Explanation
No error has occurred. There are no pending website requests that must be released by the user program.
x: Indicates whether an error occurred during initialization of the Web Control DB (CTRL_DB): x=0: No errors occurred. x=1: Error(s) occurred. The error is encoded in the byte "CTRL_DB.last_error" of the Web Control DB. y: Number of the pending request. Several requests are possible (e.g., request "0" and "1" are pending: y="3"). y="1": Request "0" y="2": Request "1" y="4": Request "2" y="8": Request "3"
The specified Web Control DB does not exist on the CPU.
Incorrect version or incorrect format of the Web Control DB.
There are no resources available to initialize the Web application.

140

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.4

Defining the user page as start page

Defining the user page as start page
In addition to the default intro page, you can also define the start page of your user pages as the start page of the Web server.

Figure 3-72 Example of user page as start page of the Web server

Requirements

The following requirements must be met before the user page is displayed as the start page of the Web server:
 You have configured the user page as the start page.
 You have configured a user in STEP 7 whom you have assigned at least the authorization "... open user-defined web pages".
 The CPU is in RUN mode.

Web server Function Manual, 11/2019, A5E03484625-AG

141

Web pages 3.16 User pages

Procedure

To define the user-defined pages in STEP 7 as the start page of the web server, proceed as follows:
1. Select the CPU in the device configuration.
2. Open the settings in the Inspector window of the CPU under "Properties > General > Web server".
3. Select the entry "AWP1" in the area "Entry page" under "Select entry page".

Figure 3-73 Set user page as start page in STEP 7
4. Download the configuration to the CPU.
If you now enter the IP address of the CPU in the browser, a connection is automatically established to your user pages.
If you want to access the web pages of the CPU again, then link the web pages from your user-defined pages e.g. via the URL "http://a.b.c.d./Portal/Portal.mwsl?PriNav=Start" or "https://a.b.c.d/Portal/Portal.mwsl?PriNav=Start". The specification "a.b.c.d" is an example of the IP address of the configured CPU.
Example of link in HTML: <a href="/Portal/Portal.mwsl?PriNav=Start">SIMATIC web pages</a>
Note
If you define your user page as start page of the Web server, all direct access to the web pages of the CPU is disabled. This applies also to the bookmarks you saved for the web pages of the CPU as well as the page for reading out the service data.

Reading out service data
If you define your user page as start page of the Web server, all direct access to the web pages for reading out the service data is also disabled. If you want to continue to read out service data via the Web server when servicing is required, here is how you can link the service data page directly to your user page. Just as for the web pages of the CPU, link the service data page e.g. via the URL "http://a.b.c.d/save_service_data" or "https://a.b.c.d/save_service_data", the "a.b.c.d" here is an example of the IP address of the configured CPU.
Example of link in HTML: <a href="/save_service_data">Service data</a>

142

Web server Function Manual, 11/2019, A5E03484625-AG

Reference

Web pages 3.16 User pages
You can find additional information on the topic of user page as start page in the FAQ with entry ID 67184104 on the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/67184104) Internet page.

3.16.5

Example of a user page

3.16.5.1

Website for monitoring and controlling a wind turbine

Example of a user page
Here you see a user page for monitoring and controlling a wind turbine:

Figure 3-74 Overview of user page wind turbine
The user page was created in English in this example, but you can select any language you wish when you create your own user page.
In this application, each wind turbine of the wind farm in STEP 7 has a data block with specific data for the respective location and respective turbine.
The user page gives you the option to access the turbine remotely with a display device. Users can call the standard web pages of a CPU of a specific wind turbine and switch to the user page "Remote Wind Turbine Monitor", where they can view the turbine data. A user with the corresponding access permissions can also set the turbine into the manually controlled mode and thus control the tags for speed, orientation and angle of attack of the turbine by means of the website. The user can also specify a brake value regardless of manual or automatic control of the turbine.
STEP 7 checks the Boolean values for override of the automatic control and, if set, uses the values for speed, orientation and angle of attack of the turbine as defined by the user.

Web server Function Manual, 11/2019, A5E03484625-AG

143

Web pages 3.16 User pages

Files used

Three files are used in the application example:
 Wind_turbine.html: The user page in the figure shown above. The control data is accessed by AWP commands.
 Wind_turbine.css: The Cascading Style Sheet which includes the formatting specifications of the user page. The use is optional but can simplify the design of the user page.
 Wind_turbine.jpg: The background image displayed on the user page. The use of images is optional, user pages with lots of images require a lot more memory in the load memory.
These files are not part of your installation but they are described as an example below.

144

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages
Implementation
The user page uses AWP commands to read out values from the CPU as well as writing values to it. The user page also uses AWP commands for the definition of enum types, such as the assignment of tags to enum types for handling the ON/OFF settings. The user page is structured as follows:

 Header of the website with number and location of the wind turbine.  Atmospheric conditions at the turbine, wind speed, wind direction and current temperature are
displayed.
 Read-out power output.  Manual override: Activates manual override of the turbine. To make manual settings for speed,
orientation and angle of attack, the STEP 7 user program requires that manual override has been activated.
 Override of the orientation: Activates manual override of the turbine orientation.  Override of the angle of attack: Activates manual override of the angle of attack of the rotor
blades.
 By clicking this button, you transfer the override settings to the CPU.  Manual setting of a percentage value for braking. The setting "Manual override" is not required
to enter a brake value.
Figure 3-75 Overview of user page wind turbine
In addition, the user page uses an AWP command that writes the special tag to the tag table. The tag table contains the ID of the user who is currently accessing the page.

3.16.5.2

Reading and displaying data from the CPU

Example of HTML code for reading and displaying data from the CPU
This part of the HTML code is used to display the power output on the user page.

Web server Function Manual, 11/2019, A5E03484625-AG

145

Web pages 3.16 User pages
On the left-hand side the "Power Output": text is displayed, on the right-hand side, the value of the tags for the power output including the unit ("KW").
The AWP command :="Data_block_1".PowerOutput executes the read operation. The data block is referenced here by its symbolic name and not by its number ("Data_block_1" instead of "DB1").
The code used in the example is: <tr style="height:2%;"> <td> <p>Power output:</p> </td> <td> <p style="margin-bottom:5px;"> :="Data_block_1".PowerOutput: KW</p> </td> </tr>

146

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.5.3

Using enum types

Definition of enum types
The described user page uses enum types in three locations. "On" or "Off" is displayed for a Boolean value at these locations.
The enum type for "On" results in a value of 1, the enum type for "Off" results in a value of 0. The following statements from the HTML code of the user page show the declaration of an enum type with the name "OverrideStatus" and the values "0" and "1" for "Off" or "On" as well as the definition of an enum type reference from "OverrideStatus" to the tag "ManualOverrideEnable" in the data block "Data_block_1".
Note Assignment of enum types
If the user page writes into a tag by using an enum type, there has to be a declaration "AWP_In_Variable" for each "AWP_Enum_Ref" declaration.
The code used in the example is: <!-- AWP_In_Variable Name='"Data_block_1".ManualOverrideEnable' --> <!-- AWP_Enum_Def Name="OverrideStatus" Values='0:"Off",1:"On"' --> <!-- AWP_Enum_Ref Name='"Data_block_1".ManualOverrideEnable' Enum="OverrideStatus" -->
The following code describes a display box for displaying the current status of "ManualOverrideEnable". A normal read command for tags is used but because of the declared and referenced enum type, the website displays the values "On" and "Off" instead of "1" and "0". <td style="width:24%; border-top-style: Solid; border-top-width: 2px; border-top-color: #ffffff;"> <p>Manual override: :="Data_block_1".ManualOverrideEnable:</p> </td>
The following code describes a drop-down list for changing "ManualOverrideEnable" by the user. The drop-down list consists of the "Yes" and "No" options that are assigned to the "On" or "Off" values by means of the enum type reference. If you make no selection, the status remains the same. <select name='"Data_block_1".ManualOverrideEnable'> <option value=':"Data_block_1".ManualOverrideEnable:'> </option> <option value="On">Yes</option> <option selected value="Off">No</option> </select>
The drop-down list is included in the form on the website. The form is uploaded, when the user clicks on the "Submit override settings and values" button. If the user has selected "Yes", the value "1" is written in the tag "ManualOverrideEnable" in the "Data_block_1" data block; if the user has selected "No", the value "0" is written.

Web server Function Manual, 11/2019, A5E03484625-AG

147

Web pages 3.16 User pages

3.16.5.4

Writing user inputs into the controller

Setting options

The user page "Remote Wind Turbine Monitor" includes different AWP commands for writing data into the controller. A user with the corresponding access permissions can control the wind turbine manually, activate the override for the turbine speed and the turbine orientation as well as the angle of attack of the rotor blades with the declaration of different "AWP_In_Variable" write commands. The user can also specify floating-point numbers for turbine speed, orientation angle of attack and percentage of braking. The user page uses an HTTP command in the format "POST" to write the tags into the controller.
The code used in the example for setting the brake value is: <!-- AWP_In_Variable Name='"Data_block_1"' --> ... <tr sytle="vertical-align: top; height: 2%;"> <td style="width: 22%;"><p>Braking:</p></td> <td> <form method="POST"> <p><input name='"Data_block_1".Braking' size="10" type ="text"> %</p> </form> </td> </tr>
This excerpt from the HTML code first defines a "AWP_In_Variable" for the "Data_block_1" data block which enables the user page to write any number of tags into the data block. The text "Braking:" is displayed on the left-hand side; on the right-hand side is a box in which the user can make entries for the "Braking" tag in the data block.
The user page reads out the actual braking value from the controller and displays it in the text box. A user with the corresponding access permissions can then write a brake value that controls the braking process into the data block of the CPU.

Note
Declaration of data blocks
If you declare an entire data block by means of a "AWP_In_Variable", each tag in the data block can be written by means of the user page. If only certain tags in the data block are to be writable, you declare this specifically using <!-- AWP_In_Variable Name='"Data_block_1".Braking' -->, for example.

148

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages

3.16.5.5

Writing special tags

Using special tags
The user page "Remote Wind Turbine Monitor" writes the special tag "Server:current_user_id" into a tag of the CPU. The tag value contains the value "1" if a user is logged on and "0" if a user is not logged on. In this example, a user is logged on, so the tag value is set to "1". The special tag is written into the CPU by the user page and does not need a user interface.
The code used in the example is: <!-- AWP_in_variable Name="SERVER:current_user_id" Use="User_ID" -->

Web server Function Manual, 11/2019, A5E03484625-AG

149

Web pages 3.16 User pages

3.16.5.6

HTML code of the user page "Remote Wind Turbine Monitor"
The complete HTML code of the example user page "Remote Wind Turbine Monitor" as well as the used Cascading Style Sheet (CSS) is listed below.

Wind_turbine.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-This test program simulates a website for monitoring and operating a wind turbine. Required PLC tags and data block tags in STEP 7: PLC tag: User_ID: Int Data blocks: Data_block_1 Tags in Data_Block_1: TurbineNumber: Int WindSpeed: Real WindDirection: Real Temperature: Real PowerOutput: Real ManualOverrideEnable: Bool TurbineSpeed: Real YawOverride: Bool Yaw: Real PitchOverride: Bool Pitch: Real Braking: Real The user-defined website shows the current values for the PLC data and offers a drop-down list to specify the three Boolean values with the assigned enumeration type. The selected Boolean values as well as the data text boxes for speed, orientation and angle of attack of the turbine are uploaded with the "Send" button. The brake value can be specified without the "Send" button.
No actual STEP 7 program is required for using this page. The STEP 7 program would theoretically only respond to the values for speed, orientation and angle of attack of the turbine, if the assigned Boolean values were specified. The only requirement for STEP 7 is that the WWW instruction is called with the DB number of the generated data blocks for this page. --> --> <!-- AWP_In_Variable Name='"Data_block_1"' --> <!-- AWP_In_Variable Name='"Data_block_1".ManualOverrideEnable' Enum="OverrideStatus" --> <!-- AWP_In_Variable Name='"Data_block_1".PitchOverride' Enum="OverrideStatus" --> <!-- AWP_In_Variable Name='"Data_block_1".YawOverride' Enum="OverrideStatus" --> <!-- AWP_In_Variable Name="SERVER:current_user_id" Use="User_ID"--> <!-- AWP_Enum_Def Name="OverrideStatus" Values='0:"Off",1:"On"' -->

150

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"><link rel="stylesheet" href="Wind_turbine.css"> <title>Remote monitoring of wind turbines
</title> <body> <table cellpadding="0" cellspacing="2"> <tr style="height: 2%;"> <td colspan="2"> <h2>Remote Wind Turbine Monitor: Turbine #:="Data_block_1".TurbineNumber:</h2> </td> <tr style="height: 2%;"><td style="width: 25%;"><p>Wind speed:</p></ td> <td><p> :="Data_block_1".WindSpeed: km/h</p></td> </tr> <tr style="height: 2%;"> <td style="width: 25%;"><p>Wind direction:</p></td> <td><p> :="Data_block_1".WindDirection: deg.</p></td> </tr> <tr style="height: 2%;"><td style="width: 25%;"><p>Temperature:</p></ td> <td><p> :="Data_block_1".Temperature: deg. C</p></td> </tr> <tr style="height: 2%;"> <td style="width: 25%;"><p>Power output:</p></td> <td><p style="margin-bottom:5px;"> :="Data_block_1".PowerOutput: kW</p> </td> </tr> <form method="POST" action=""> <tr style="height: 2%;" > <td style="width=25%; border-top-style: Solid; border-top-width: 2px; border-top-color: #ffffff;"> <p>Manual override: :="Data_block_1".ManualOverrideEnable:</p> </td> <td class="Text">Set: <select name='"Data_block_1".ManualOverrideEnable'> <option value=':="Data_block_1".ManualOverrideEnable:'> </option> <option value="On">Yes</option> <option value="Off">No</option> </select> </td> </tr> <tr style="vertical-align: top; height: 2%;"><td style="width: 25%;"><p>Turbine speed:</p></td> <td> <p style="margin-bottom:5px;"><input name='"Data_block_1".TurbineSpeed' size="10" value=':="Data_block_1".TurbineSpeed:' type="text"> RPM</p> </td> </tr>

Web server Function Manual, 11/2019, A5E03484625-AG

151

Web pages 3.16 User pages
<tr style="vertical-align: top; height: 2%;"> <td style="width: 25%;"> <p>Yaw override: :="Data_block_1".YawOverride: </p> </td> <td class="Text">Set: <select name='"Data_block_1".YawOverride'> <option value=':="Data_block_1".YawOverride:'> </option> <option value="On">Yes</option> <option value="Off">No</option> </select> </td> </tr> <tr style="vertical-align: top; height: 2%;"> <td style="width: 25%;"> <p>Turbine yaw:</p> </td> <td> <p style="margin-bottom:5px;"><input name='"Data_block_1".Yaw' size="10" value=':="Data_block_1".Yaw:' type="text"> deg.</p> </td> </tr> <tr style="vertical-align: top; height: 2%;"> <td style="width: 25%;"> <p>Pitch override: :="Data_block_1".PitchOverride: </p> </td> <td class="Text">Set: <select name='"Data_block_1".PitchOverride'> <option value=':="Data_block_1".PitchOverride:'> </option> <option value="On">Yes</option> <option value="Off">No</option> </select> </td> </tr> <tr style="vertical-align: top; height: 2%;"> <td style="width=25%; border-bottom-style: Solid; borderbottomwidth: 2px; border-bottom-color: #ffffff;"> <p>Blade pitch:</p> </td> <td> <p style="margin-bottom:5px;"><input name='"Data_block_1".Pitch' size="10" value=':="Data_block_1".Pitch:' type="text"> deg.</p> </td> </tr> <tr style="height: 2%;"> <td colspan="2"> <input type="submit" value="Submit override settings and values"> </td> </tr> </form> <tr style="vertical-align: top; height: 2%;"> <td style="width: 25%;"><p>Braking:</p></td> <td> <form method="POST" action="">

152

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.16 User pages
<p> <input name='"Data_block_1".Braking' size="10" value=':="Data_block_1".Braking:' type="text"> %</p> </form> </td> </tr> </table> </body> </html>
Wind_turbine.css
BODY { background-image: url('./Wind_turbine.jpg') background-position: 0% 0%; background-repeat: no-repeat; background-size: cover;
H2 { font-family: Arial; font-weight: bold; font-size: 14.0pt; color: #FFFFFF; margin-top:0px; margin-bottom:10px;
} P {
font-family: Arial; font-weight: bold; color: #FFFFFF; font-size: 12.0pt; margin-top:0px; margin-bottom:0px; } TD.Text { font-family: Arial; font-weight: bold; color: #FFFFFF; font-size: 12.0pt; margin-top:0px; margin-bottom:0px; }

Web server Function Manual, 11/2019, A5E03484625-AG

153

Web pages 3.17 Filebrowser

3.17

Filebrowser

Requirements

Access rights must be assigned for the user in the user management.

Filebrowser

The contents of the SIMATIC memory card are displayed by the browser on the "Filebrowser" web page. This means, for example, that you can read and edit the log files generated by the CPU without having to use STEP 7.

Figure 3-76 Filebrowser view
The file browser lists all existing files and directories located on the SIMATIC memory card. You can download, delete, rename and upload the files. You can create, delete and rename the directories.
Note The Filebrowser only grants you read access to the "DataLogs", "Backups" and "UserFiles" directories.
Exception system files
The system files include the job file and all special directories including their contents to which the job file refers. System files are not displayed, and cannot be changed or deleted.

154

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.18 Reading out service data

3.18

Reading out service data
The Web server gives you the option to save service data. In addition to the content of the diagnostic buffer, they include additional information on the internal status of the CPU. If you should encounter a problem with the CPU that cannot be resolved otherwise, you therefore have the option to submit the service data to the Service&Support team.

Procedure

1. Enter the following address in the address bar of your web browser: "http://<CPU IP address>/save_service_data", e g. "http://192.168.3.141/save_service_data"
2. Your screen displays the service data page with a button for saving the service data.

Result

3. Save the service data locally on your display device by clicking on "Save ServiceData".
The data is stored in a .dmp file with the following naming convention: "<MLFB><Serial number><Time stamp>.dmp." The user can change the file name at a later time. Note If you have defined your user page as the start page, observe the note on reading out service data in section Defining the user page as start page (Page 141).

Web server Function Manual, 11/2019, A5E03484625-AG

155

Web pages 3.19 Basic websites

3.19

Basic websites

Web pages with reduced contents
Basic websites are offered for display devices with smaller screens, for example HMI, on the Web server. Basic websites are web pages with reduced content that are adapted to the requirements of small screens with low resolution. These sites do not support JavaScript for the sake of fast access. This means that not all standard websites are available as basic websites. The basic website can also have fewer functions than the standard website.
The switch to basic websites takes place automatically for HMI devices. You access basic websites from other end devices by entering the IP address of the configured and the extension "/basic" in the address bar of the Web browser, for example, http://192.168.3.141/basic or https://192.168.3.141/basic.
The following standard websites are also available as basic websites:
 Start page (in Basic: "Status")
 Diagnostics (without the "Program protection", "Runtime information" and "Fail-safe" tabs)
 Diagnostics buffer
 Memory usage
 Module information
 Alarms (without acknowledgment option)
 Communication
 Tag status
 Watch tables
 User pages
 Filebrowser (read access only)
 DataLogs
 Intro

156

Web server Function Manual, 11/2019, A5E03484625-AG

The basic websites are displayed as follows:

Web pages 3.19 Basic websites

Figure 3-77 Example basic websites, "Status" web page

Web server Function Manual, 11/2019, A5E03484625-AG

157

Web pages 3.20 API (Application Programming Interface)

3.20

API (Application Programming Interface)

3.20.1

Web API
The CPU offers you a Web-based API (Web API) as an interface for reading and writing CPU data.

Connection established between CPU, Web API and terminal device.
The following graphic shows an example of the Web API between CPU and terminal device.

 CPU  Terminal devices
Figure 3-78 Web API
Communication between the CPU and the terminal device takes place via PROFINET or WLAN integration.
Note Security information Please note that the following graphic only shows the role of the Web API between CPU and terminal device. For the correct setup of a secure WLAN connection, observe the Security information in the preface of this manual.

158

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Availability

The Web API is only available for CPUs as of firmware version from V2.8 for the following systems:  the CPUs of the S7-1500 automation system
(the CPUs of the S7-1500R/H redundant system are not supported)  the CPUs 1504D TF and 1507D TF of the SIMATIC Drive Controller  the CPUs 1513pro(F)-2 PN and 1516pro(F)-2 PN of the ET 200pro distributed I/O system  the CPUs 1510SP(F)-1 PN and 1512SP(F)-1 PN of the ET 200SP distributed I/O system The following requirements must be met before you can use the Web API.  You have assigned the correct firmware version ( V2.8) in the Hardware catalog of
STEP 7  You have created and configured a project and downloaded to the CPU.  You have selected the following checkbox in STEP 7
­ Activate web server on this module

API endpoint

As an RPC protocol, JSON-RPC V2.0 is based on HTTP. The Web API can be reached via POST Requests to the following URL:
https://[ip_address]/api/jsonrpc

An example of the required structure of an HTTP Request and HTTP Response for successfully making a Web API request can be found in the chapter Web API integration (Page 166).

Web server Function Manual, 11/2019, A5E03484625-AG

159

Web pages 3.20 API (Application Programming Interface)

Supported clients
The products and versions listed in the following table were tested for the Web API. The "Version" column lists the most recently tested version at the time of going to press. In addition, other Versions may also work, especially newer versions. However, if problems occur with versions not mentioned here that cannot be rectified, use one of the following tested versions:

Product * Chrome-based Desktop Web browser (e.g. Google Chrome) (https://chromium.woolyss.com/) Mozilla Firefox (https://www.mozilla.org/enUS/firefox/) Microsoft Internet Explorer
Microsoft Edge
Apple Safari
Opera SIMATIC HMI Panels Microsoft C# (https://docs.microsoft.com/enus/dotnet/api/system.net.webrequest?view=netfr amework-4.7.2) with WebRequest class and Json.Net library (https://www.newtonsoft.com/json) GNU Wget (https://www.gnu.org/software/wget/)
cURL (https://curl.haxx.se/)
Microsoft PowerShell

Version 75.x (Windows and Android)
64.x (long-term support)
11.x (Windows 7, Windows 10) 44.x Windows 10 12.x iOS 58.x 2 .Net Framework 4.7
1.20 Windows 7.63.x Windows 5.0

* Not included in the scope of delivery of the product described here

Supported functions Web API access with JavaScript for asynchronous requests
Web API access for pure HTTP requests and Json.Net for generating and parsing content
Web API access for pure HTTP requests, e.g. for automatic archiving of DataLogs
Web API access for pure HTTP Requests with Invoke WebRequest and ConvertTo-Json/ConvertFrom-Json for generating and parsing content

160

Web server Function Manual, 11/2019, A5E03484625-AG

3.20.2

Web pages 3.20 API (Application Programming Interface)
The available Web API methods
The following section gives an overview of all available Web API methods with extracts from the corresponding HTML code.
Note Files which contain Web API methods must be encoded and stored in the UTF-8 character encoding.
For detailed examples of an integration of the Web API into your web application, refer to the section Web API integration (Page 166).

Web server Function Manual, 11/2019, A5E03484625-AG

161

Web pages 3.20 API (Application Programming Interface)

3.20.2.1

Api.Login
The Api.Login method checks the login data of the user and on successful verification opens a new Web API session. The method requests the name and the password of the user in plain text as proof of authorization. The user name and the password are encrypted before they are transferred to the server.

Example

The following example shows the parameters required to call the Api.Login method.
{ "user": "User1", "password": "SecurePassword"
}
After successful authentication the user receives a token. The token shows the user as an authenticated user against the API.
{ "token": "eG9mcHdhaGR0dWVsdm5teGFxcGw=" }
Token
The token comprises a 28-byte string. The token is transferred in encrypted form.
For every additional request which requires authentication, you have to specify the assigned token. If further communication no longer takes place in the meantime, the token becomes invalid after maximum 2.5 minutes. Each new request within a session extends the validity of the token by another 2 to 2.5 minutes (calculated from the completion of the request processing by the server).
The token is not required for methods that do not require authentication. However, you can still enter the token.
When you call the Api.Ping method without a token, for example, the session is not extended because the CPU cannot assign a token to the user.
The following methods work with and without tokens:
 Api.Browse
 Api.Ping
 Api.GetPermissions

User "Everybody"
The "Everybody" user is defined without assignment of a password.
If you want to authenticate yourself as the user "Everybody", send "Everybody" as user and an empty password ("").
You can find a detailed description of the "Everybody" user in section Configuring the Web server (Page 19).

162

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Possible error messages
The following table shows the possible error messages of the Api.Login method.

Error code Error message

100

Login failed

101

Already authenticated

4

No resources

Meaning
The user name and/or password are not valid. Assign a reliable user name and password.
The current X-Auth token is already authenticated. Use Api.Logout before you authenticate yourself again.
The system does not have the required resources to carry out this request. Carry out the request again as soon as sufficient resources are available again.

3.20.2.2

Api.GetPermissions
After the successful login, the Api.GetPermissions returns a list of actions for whose execution the user is authorized.

Example

The following example shows the actions for which the user is authorized.
[ { "name": "read_value" }, { "name": "change_operating_mode" }
]

Checkable authorizations
You can use the Web API to check the authorizations for the following actions.

Action read_diagnostics read_value write_value acknowledge_alarms firmware_update open_user_pages read_file write_file change_operating_mode flash_leds backup_plc restore_plc failsafe_admin

User authorization Querying diagnostic data from the CPU without being permitted to change data Read process data from the CPU Write process data to the CPU Acknowledge alarms Install firmware updates on the CPU, central and distributed I/O modules Call user-defined pages on the CPU Reading the contents of files on the CPU Changing the contents of files and folders on the CPU Changing the operating state Request identification of the device Backing up the CPU configuration Restore configuration of the CPU Make fail-safe changes on the CPU

The Web API checks the authorization on the basis of the rights and passwords assigned in STEP 7 in the area "Web server > User administration".

A description of the user management can be found in section "Configuring the Web server (Page 19)".

Web server Function Manual, 11/2019, A5E03484625-AG

163

Web pages 3.20 API (Application Programming Interface)

3.20.2.3

Api.Browse
The Api.Browse method gives you a list of all methods that you can call via the Web API. This provides you with an overview of all the methods supported by the CPU.
No authorizations are needed for calling the Api.Browse method.

Example

The following example shows the HTTP request and a possible result of the request for the Api.Browse method.
POST /api/jsonrpc HTTP/1.1 Host: 192.168.3.14 Content type: application/json Content length: 48
[{"jsonrpc":"2.0","method":"Api.Browse","id":1}]
Response of the server:
[ { "name": "Api.Browse" }, { "name": "Api.GetCertificateUrl" }, { "name": "Api.GetPermissions" }, { "name": "Api.Login" }, { "name": "Api.Logout" }, { "name": "Api.Ping" }, { "name": "Api.Version" }, { "name": "PlcProgram.Browse" }, { "name": "PlcProgram.Read" }, { "name": "PlcProgram.Write" },
]

Note Checking authorizations
The Api.Browse methods does not filter the list of the available methods by the individual authorizations of users.
The list of available methods may therefore contain methods which the user may not execute without authorization.

Possible error messages
The following table shows the possible error messages of the Api.Browse method.

Error code Error message

4

No resources

Meaning The system does not have the necessary resources to execute the Web API request. Carry out the request again as soon as sufficient resources are available again.

164

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

3.20.2.4

Api.Version
Use the Api.Version method to request the current version number of the Web API. You can draw conclusions from the version number:
 The functions supported by the respective version
 the hardware release number of the CPU
This information allows you to implement applications that correspond to the functionality of the contacted CPU.
No authorizations are needed for calling the Api.Version method.

Example

The following example shows a possible result of calling the Api.Version method. 1.28

The version number is displayed as a floating -point number and is incremented with every release and every change in the Web API implementation.

3.20.2.5

Api.Ping
The Api.Ping method outputs a unique ID for the CPU used. You can use it to determine whether the CPU can be reached. The CPU ID comprises a 28-byte string. The system assigns a new, unique CPU ID after each restart (POWER ON - POWER OFF) or warm start of the CPU. By comparing this with previously output IDs, you can also determine whether the CPU was restarted in the meantime.
No authorizations are needed for calling the Api.Ping method.

Example

The following example shows the output of a CPU ID: "ZWlmbnJwZmplb3Nwd2l1Y3N3dWE="

Web server Function Manual, 11/2019, A5E03484625-AG

165

Web pages 3.20 API (Application Programming Interface)

3.20.2.6

Api.GetCertificateUrl
The Api.GetCertificateUrl method returns a relative URL (https://<IP> with which you can retrieve the SSL certificate of the web server.

Example

The following example shows the result of the Api.GetCertificateUrl method call.
"/MiniWebCA_Cer.crt" The method outputs a string with a relative URL to the CPU. If no certificate is available, the method outputs an empty string.

3.20.2.7

Api.Logout
The Api.Logout method removes the token from the list of active Web API sessions and ends the session.

3.20.3

Web API integration
In the following section you will find examples of how to integrate the Web-API into your application.

Structure of an HTTP Request and HTTP Response
The following section shows the example of the required structure of an HTTP Request and HTTP Response for successfully making a Web API request.
POST /api/jsonrpc HTTP/1.1 Host: 192.168.3.14 Content type: application/json Content length: 92
[{"jsonrpc":"2.0","method":"Api.Login","params":{"user":"User1","pas sword":"SecurePassword"},"id":999}]
HTTP/1.1 200 OK Content type: application/json Cache-Control: no-cache Pragma: no-cache Expires: 0 Access-Control-Allow Origin: * Access-Control-Allow Headers: Content-Type,X-Auth Token Access-Control-Allow Methods: POST,OPTIONS transfer-encoding: chunked date: Tue, 23 Apr 2019 17:50:31 GMT
[{"jsonrpc":"2.0","id":999,"result":{"token":"Sy8pe3VNv86rTMldzFBsYz mw12Lg"}}]

166

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
Web API examples
The following section contains related examples of how you can use the described methods in the Web API. The examples use HTML, JSON and JQuery library for asynchronous requests.
Note Information used in the examples Note that the names of the methods, parameters and the JavaScript code are specified without liability and can deviate from the current specification.

Example 1

Example 1 shows a client that wants to maintain a session with JavaScript. For this purpose, it sends a single heartbeat request using the Api.Ping method. If the intervals at which the heartbeat request is sent are less than 2 minutes, the user remains permanently logged in.
A permanent login is recommended for operating and monitoring tasks.
$.post({ url:"https://192.168.2.132/api/jsonrpc", headers:{
'X-Auth-Token':"Sy8pe3VNv86rTMldzFBsYzmw12Lg" }, data:JSON.stringify({jsonrpc:"2.0", method:"Api.Ping", id:1}), success:function(data){ console.log(data); } dataType:"text", contentType:"application/json" });

Note X-Auth-Token
To extend the session, you must send the token (X-Auth token) as an HTTP header to the CPU.
When you call the Api.Ping method without a token, the session is not extended because the CPU cannot assign a token to the user.
Example 3 shows an example of a token in the HTTP request.

In the example, the selected user has the necessary authorizations. The methods after the login request were successfully carried out, as the following result shows.
{jsonrpc:"2.0",id:1,result:"ZWlmbnJwZmplb3Nwd2l1Y3N3dWE="}

Web server Function Manual, 11/2019, A5E03484625-AG

167

Web pages 3.20 API (Application Programming Interface)

Example 2

Example 2 shows a client that wants to log on to the CPU with JavaScript and calls several methods using a bulk request.
$.post({ url:"https://192.168.2.132/api/jsonrpc", data:JSON.stringify([ {jsonrpc:"2.0", id:1, method:"Api.Login", params:{user:"Admin",password:"12345"} }, {jsonrpc:"2.0", id:2, method:"Api.GetPermissions" }, {jsonrpc:"2.0", id:3, method:"Api.GetMethods" }]), success: function(data){ console.log(data); }, dataType: "text", contentType: "application/json"});

The following section shows an example of a bulk request response. The selected user has the necessary authorizations. The methods after the login request were successfully carried out with the authorizations of the authenticated user.
[ {jsonrpc:"2.0",id:1, result:{ token:"d29kamV3cGxtdm5keHNhcXd1aXJ0empkZXN3cQ=="}}, {jsonrpc:"2.0",id:2,result:[ "read_value", "write_value", "diagnostics"]}, {jsonrpc:"2.0",id:3,result:[ "Api.Login", "Api.GetPermissions", "Api.GetMethods", "PlcProgram.Read", "PlcProgram.Write", "PlcProgram.Browse", "Api.Logout", "Api.Ping"]},
]

168

Web server Function Manual, 11/2019, A5E03484625-AG

Example 3

Web pages 3.20 API (Application Programming Interface)
Example 3 shows a bulk request for read and write access to a stack of tags in a single HTTP request. This procedure is recommended for bulk requests, as it is more efficient than a series of single accesses and therefore places less load on the CPU.
$.post({ url:"https://192.168.2.132/api/jsonrpc", data:JSON.stringify([ {jsonrpc:"2.0", id:1, method:"PlcProgram.Read", {jsonrpc:"2.0", id:2, method:"PlcProgram.Read", params:{var:"\"MyDB\".InvalidField"}, {jsonrpc:"2.0", id:3, method:"PlcProgram.Read", params:{tag:"MyDB.MyDate"} }, {jsonrpc:"2.0", id:4, method:"PlcProgram.Write", params:{tag:"\"BoilerControl\".TempSetPoint", value:9001} }]), success: function(data){ console.log(data); }, dataType: "text", contentType: "application/json", headers: { "X-Auth-Token":"d29kamV3cGxtdm5keHNhcXd1aXJ0empkZXN3cQ=="}});
The bulk request contains an invalid tag with an error message providing information about this. All other methods were successfully carried out, as the following result shows.
[ {jsonrpc:"2.0",id:1,result:{"value":42}}, {jsonrpc:"2.0",id:2,error:{code:-1,message:"Invalid tag name"}}, {jsonrpc:"2.0",id:3,result:{"value":"1990-01-01"}}, {jsonrpc:"2.0",id:4,result:true}, ]

3.20.4

Web API sessions

Timeout for Web API sessions
Note
If a Web API call is not made within a session before 120 seconds have elapsed, the CPU ends the session with a logout event. A timeout reset is initiated by every successful action of the user in which a toke is supplied.
Call the Api.GetPermission or Api.Ping method cyclically within the timeout grid to ensure that: · Your session remains active · Your authorizations for the call of other methods remain active

Web server Function Manual, 11/2019, A5E03484625-AG

169

Web pages 3.20 API (Application Programming Interface)

Limitations for Web API sessions
The CPU limits the number of active sessions. The following table shows the limitations based on the memory platform used.

CPUs S7-1510 to S7-1513 S7-1515 and S7-1516 S7-1517 and S7-1518

Limitation 50 100 200

Limitation of the active Web API sessions

If you request another authentication token and none are available, then the request is rejected.

Changes to CPU user administration
If the configuration of CPU user management changes (by downloading the HW configuration in the TIA Portal), e.g. password changed or user removed, the CPU ends all sessions with a logout event.

Security events
The CPU generates a security event for successful and failed logins. The CPU enters this security event in the diagnostics buffer.

3.20.5

Read and write process data

3.20.5.1

Supported data types

Binary representation
The Web API presents the values of primitive data types as pure binary data ("raw"). The binary data is formatted as a JSON array. Each element within an array is a numeric value between 0 and 255 and represents a single data byte.

Simple display ("simple")
The Web API formats primitive data types into a readable form while preserving the ability to process the data using a program. The following section describes how primitive data types are represented as JSON data type.

170

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Supported data types
The following table shows:  The data types supported by the Web API for reading and writing process values  the representation in the Web API  The respective match of the data type in the TIA Portal

Name of the data type Name of the data type Representation in the Web API

in the TIA Portal

in Web API

Bool

bool

Boolean JSON value. true oder false

Byte

Byte

JSON unsigned integer in a range from 0 to 255

USInt

usint

Word

word

JSON unsigned integer in a range from 0 to 65 535

UInt

uint

HW_ANY

hw_any

HW_IOSYSTEM

hw_iosystem

HW_DPMASTER

hw_dpmaster

HW_DEVICE

hw_device

HW_DPSLAVE

hw_dpslave

HW_IO

hw_io

HW_MODULE

hw_module

HW_SUBMODULE hw_submodule

HW_HSC

hw_hsc

HW_PWM

hw_pwm

HW_PTO

hw_pto

HW_INTERFACE

hw_interface

HW_IEPORT

hw_ieport

CONN_ANY

conn_any

CONN_PRG

conn_prg

CONN_OUC

conn_ouc

PORT

port

RTM

rtm_id

PIP

pip

DB_ANY

db_any

DB_WWW

db_www

DB_DYN

db_dyn

DWord

dword

JSON unsigned integer in a range from 0 to 4 294 967 295

UDInt

udint

AOM_IDENT

aom_ident

EVENT_ANY

event_any

EVENT_ATT

event_att

EVENT_HWINT

event_hwint

CONN_R_ID

conn_r_id

Web server Function Manual, 11/2019, A5E03484625-AG

171

Web pages 3.20 API (Application Programming Interface)

Name of the data type in the TIA Portal LWord ULInt SInt Int OB_ANY OB_DELAY OB_TOD OB_CYCLIC OB_ATT OB_PCYCLE OB_HWINT OB_DIAG OB_TIMEERROR OB_STARTUP DInt LInt
Real LReal
Character
WChar
String
WString
Date
Time_Of_Day
LTime_Of_Day

Name of the data type in Web API lword ulint sint int ob_any ob_delay ob_tod ob_cyclic ob_att ob_pcycle ob_hwint ob_diag ob_timeerror ob_startup dint lint
real lreal char
wchar
string
wstring
date
time_of_day
ltime_of_day

Representation in the Web API
JSON string with a numerical representation of an unsigned integer based on the number 10 in a range from 0 to 18 446 744 073 709 551 615 JSON signed integer in a range from -128 to 127 JSON signed integer in a range from -32 768 to 32 767
JSON signed integer in a range from -2 147 483 648 to 2 147 483 647. JSON string with a numerical representation of an unsigned integer based on the number 10 in a range from -9 223 372 036 854 775, 808 to 9 223 372 036 854 775 807 JSON floating-point number If the floating-point number is infinite or NaN (not-a-number), the Web API returns the value null when reading a tag of this type. JSON string with a single ASCII character in a valid range from 0 to 127 If a tag of this type is read with a value outside the valid range, the Web API outputs the value null. JSON string with a UTF-8 string that represents a single UCS-2 character in a valid range from 0 to 55 295. If a tag of this type is read with a value outside the valid range, the Web API returns the value null. JSON string with a UTF-8 string If a tag of this type is read with a value outside the valid UTF-8 string (max. length 254 characters), the Web API returns the value null. JSON string with a UTF-8 string that represents a USC-2 string in a valid range from 0 to 55 295. If a tag of this type is read with a value outside the valid range (max. length 254 characters), the Web API outputs the value null. JSON unsigned integer in a range from 0 to 65 535 This value represents the number of days since 01.01.1990. JSON unsigned integer in a range from 0 to 4 294 967 295 This value represents the number of milliseconds since the beginning of the day. JSON string with a numerical representation of an unsigned integer based on the number 10 in a range from 0 to 18 446 744 073 709 551 615 This value represents the number of nanoseconds since the beginning of the day.

172

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Name of the data type Name of the data type Representation in the Web API

in the TIA Portal

in Web API

Time

time

JSON signed integer in a range from -2 147 483 648 to 2 147 483 647)

This value represents the number of milliseconds since a user-defined point in time.

LTime

ltime

JSON string with a numerical representation of an unsigned integer based on the number 10 in a range from -9 223 372 036 854 775 808 to 9 223 372 036 854 775 807

This value represents the number of nanoseconds since a user-defined point in time.

S5Time

s5time

JSON object with the keys basic and value:

· The basic value is a JSON unsigned integer with a value of either 10, 100, 1000 or 10 000. The basic value represents the millisecond multiplier of the value value.

· The value value is a JSON unsigned integer in the range from 0 to 999. The basic value multiplied by the value value gives the timer interval in milliseconds.

Date_And_Time

date_and_time

JSON object with the keys year, month, date, hour, minute, second and day_of_week:

· year is a JSON unsigned integer with a value in the range from 1990 to 2089

· month is a JSON unsigned integer with a value in the range 1 to 12

· day is a JSON unsigned integer with a value in the range from 1 to 31

· hour is a JSON unsigned integer with a value in the range from 0 to 23

· minute is a JSON unsigned integer with a value in the range from 0 to 59

· second is a JSON floating point number with a value in the range 0 to 60

· day_of_week is a JSON string with a value of either sun, mon, tue, wed, thu, fri or sat

Web server Function Manual, 11/2019, A5E03484625-AG

173

Web pages 3.20 API (Application Programming Interface)

Name of the data type in the TIA Portal LDT
Struct IEC_COUNTER IEC_TIMER DTL IEC_LTIMER IEC_SCOUNTER IEC_DCOUNTER IEC_LCOUNTER IEC_UCOUNTER IEC_USCOUNTER IEC_UDCOUNTER IEC_ULCOUNTER ERROR_STRUCT NREF CREF

Name of the data type in Web API ldt
struct iec_counter iec_timer dtl iec_ltimer iec_scounter iec_dcounter iec_lcounter iec_ucounter iec_uscounter iec_udcounter iec_ulcounter error_struct nref cref

Representation in the Web API
JSON string with a numerical representation of an unsigned integer based on the number 10 in a range from 0 to 18 446 744 073 709 551 615 This value represents the number of nanoseconds since 01.01.1970 midnight (12:00:00.0 am). Structured data type whose data structure can be determined using the PlcProgram.Browse method.

Arrays

Arrays are displayed as JSON objects. The key is a string with a numeric representation of the index.
The following example shows the representation in the TIA Portal:

Figure 3-79 Representation in the TIA Portal
Addressing the user data
The Web API supports the following addressing formats:  Symbolic addressing of a tag in the tag, e.g. Tag_1  Symbolic addressing of a tag in a data block, e. g. "MyDB".Static_1

174

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

3.20.5.2

Parameter assignment of the block properties

Configuring access to the Web API in the TIA Portal
To restrict the read and write access to data blocks of your project, you can define the desired parameters in the attributes of the respective block.
To allow the Web API to access the data block, select the check box "DB accessible from Webserver".

Note F-blocks
Note that fail-safe blocks allow read access only. It is not possible to write tags into fail-safe blocks.

Parameter assignment for access to the Web API in tag tables
For read and write access of Web API to tags, the options "Accessible from HMI/OPC UA/Web API" and "Writable from HMI/OPC UA/Web API" must be enabled:

Figure 3-80 Tag table in the TIA Portal

Web server Function Manual, 11/2019, A5E03484625-AG

175

Web pages 3.20 API (Application Programming Interface)

3.20.5.3

PlcProgram.Read
The PlcProgram.Read method is used to read process data from the CPU. To call the PlcProgram.Read method, you need the "read_value" authorization.

Structure of the request
The following table informs you about the properties of the tag to be read.

Name "var" "mode"

Required
Yes optional, default is "simple"

Data type String String

Description
Name of the tag to be read
Enumeration that determines the response format for this method:
· "simple": returns tag values according to the "simple" representation in section "Supported data types (Page 170)"
· "raw": returns tag values according to the "raw" representation in section "Supported data types".

Examples

In the following example, the user requests a global tag in the "simple" representation.
{ "var": "\"MotorSpeed\""
}

In the following example, the user requests a global tag in the "raw" representation.
{ "var": "\"MyDB\".MyVariable", "mode": "raw"
}

Response structure
If the request to the server was successful, the server returns JSON data values. Examples The following example shows the result of reading a tag of type "int" in the "simple display".
-42 The following example shows the result of reading a tag of type "dword" in the "raw" display.
[ 1, 47, 233, 0 ]

176

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Possible error messages
The following table shows the possible error messages of the PlcProgram.Read method.

Error code 1 2
4
200
201 203
204

Error message

Meaning

Internal error

An internal error occurred while trying to perform the requested operation.

Permission denied The current authentication token is not authorized to call this method.

Log on with a user account that has sufficient privileges to call this method.

No resources

The system does not have the necessary resources to read the requested address.

Carry out the request again as soon as sufficient resources are available again.

Address does not The requested address does not exist or the web server cannot access the requested

exist

address.

Invalid address The structure of the name of the symbolic address is not correct.

Invalid array index The dimensions and limits of the array indexes do not correspond to the type information of the CPU.

Unsupported address

The data type of the address cannot be read.

3.20.5.4

PlcProgram.Write
The PlcProgram.Write method is used to write process data to the CPU. To call the PlcProgram.Write method, you need the "write_value" authorization.

Structure of the request
The following table informs you about the properties of the tag to be written.

Name "var" "value"
"mode"

Required Yes Yes

Data type String Variant

optional, default is Bool "simple"

Description
Name of the tag to be written
The value to be written; the value depends on the operating mode
Enumeration that specifies the format of "value":
· "simple": The user must specify the values according to the "simple" representation (see section "Supported data types").
· "raw": The user must specify the values according to the "raw" representation (see section "Supported data types").

Web server Function Manual, 11/2019, A5E03484625-AG

177

Web pages 3.20 API (Application Programming Interface)

Examples

In the following example, the user writes a global tag in the "simple" display. {
"var": "\"MotorSpeed\"", "value": 9001 }

In the following example, the user writes a tag to a data block in the "raw" representation. {
"var": "\"MyDB\".MyVariable", "value": [ 255, 77, 1, 99 ], "mode": "raw" }
In the following example, the user writes a string tag consisting of 10 characters to the "simple" representation: {
"var": "\"MyDB\".MyString", "value": "Short Str", "mode": "simple" }

In the following example, the user writes a string tag consisting of 10 characters with the text "Short Str" in the "raw" representation: {
"var": "\"MyDB\".MyString", "value": [ 10, 9, 83, 104, 111, 114, 116, 32, 83, 116, 114, 0 ], "mode": "raw" }

In the following example, the user writes a Wstring tag consisting of 6 characters in the "simple" representation: {
"var": "\"MyDB\".MyWString", "value": "Hello", "mode": "simple" }

In the following example, the user writes a string tag consisting of 6 characters with the text "Hello" in the display "raw": {
"var": "\"MyDB\".MyWString", "value": [ 0, 6, 0, 5, 0, 72, 0, 101, 0, 108, 0, 108, 0, 111, 0, 0 ], "mode": "raw" }

178

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Response structure
If the write operation was successful, the server returns the Boolean value "true".

Possible error messages
The following table shows the possible error messages of the PlcProgram.Read method.

Error code 1 2
4
200
201 203
204

Error message

Meaning

Internal error

An internal error occurred while trying to perform the requested operation.

Permission denied The current authentication token is not authorized to call this method.

Log on with a user account that has sufficient privileges to call this method.

No resources

The system does not have the necessary resources to read the requested address.

Carry out the request again as soon as sufficient resources are available again.

Address does not The requested address does not exist or the web server cannot access the requested

exist

address.

Invalid address The structure of the name of the symbolic address is not correct.

Invalid array index The dimensions and limits of the array indexes do not correspond to the type information of the CPU.

Unsupported address

The data type of the address cannot be written.

3.20.5.5

PlcProgram.Browse
The PlcProgram.Browse method allows you to search tags and the corresponding metadata according to your individual requirements.
To call the PlcProgram.Browse method, you need the "read_value" authorization.

Structure of the request
The following table informs you about the properties of the tag to be searched.

Name "var"
"mode"

Required
See "Description" column

Data type String

Yes

String

Description Name of the tag to be searched
· If "mode" = "var", this attribute is required. The Browse method searches for the tag to find the metadata of the tag.
· If "mode" = "children", this attribute is optional. The Browse method searches for the tag and returns a list of child tags and metadata.
Enumeration that determines the behavior of this method:
· "var": Displays information about the specified tag. · "children": Displays information about the direct children of the spe-
cified tag

Web server Function Manual, 11/2019, A5E03484625-AG

179

Web pages 3.20 API (Application Programming Interface)

Example 1

In the following example the user searches the root node of the CPU.
{ "mode": "children"
}

The following example shows a possible response from the server.
[ { "name": "TestDB", "has_children": true, "db_number": 2, "datatype": "datablock" }, { "name": "GenUsrMsg_Ret", "address": "%MW43", "area": "M", "datatype": "int" }
]

Example 2

In the following example, the user searches the descendants (children) of a data block.
{ "var": "\"MyDB\"", "mode": "children"
}

The following example shows a possible response from the server.
[ { "name": "Static_1", "db_number": 1, "datatype": "int" }, { "name": "Static_2", "db_number": 1, "datatype": "int" }
]

180

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

Example 3

In the following example, the user requests information about a specific tag.
{ "var": "\"MyDB\".MyStruct.MyField", "mode": "var"
}

The following example shows a possible response from the server.
[ { "name": "MyDateTimeValue", "db_number": 2, "datatype": "date_and_time", "array_dimensions": [ { "start_index": 0, "count": 3 } ] }
]

Response structure
The following tables show the structure of server responses to successful requests.

PlcProgram_Browse_Response (Objekt-Array)

Name

Required

Data type

Name

Yes

string

address

No

string

read_only

No

has_children

No

db_number

No

bool bool integer

Description
Tag name; can be used as a string identifier for the field.
Address of the tag in STEP 7; only applicable for the tags in the ranges M, I, Q, timer and counter and tags in non-optimized data blocks. The representation corresponds to the addresses in the watch tables in the TIA Portal.
Query whether the tag is a read-only tag The only valid value is "true". If the tag is to be written, this attribute does not appear.
Query whether the tag is a structured tag with child tags The only valid value is "true". If the tag is an unstructured data type, this attribute is not displayed.
Numerical data block identifier; appears at "datatype" = "datablock" and for each child element of a data block (with corresponding data block number)

Web server Function Manual, 11/2019, A5E03484625-AG

181

Web pages 3.20 API (Application Programming Interface)

PlcProgram_Browse_Response (Objekt-Array)

Name

Required

Data type

area

No

string

datatype

Yes

string

max_length

No

ar-

No

ray_dimensions

integer
PlcProgram_Browse_ Response_ArrayData

Description
Letter which defines the range (M/I/Q/timer/counter) of the tag. If the tag is not in one of these ranges, the attribute does not appear.
Data type of the tag For data blocks this is the data type "datablock"; for tags, see table in section "Supported data types". If the data type is not supported, the data type is "unsupported".
If the data type is a "string" or "wstring", this value is the maximum number of characters allowed in the tag.
Object arrays arranged from the most significant to the least significant array dimension. The attribute is only displayed if the tag is an array.

PlcProgram_Browse_Response_ArrayData (Objekt-Array)

Name

Required

Data type

start_index

Yes

integer

count

Yes

integer

Description
Start index for this array dimension, as specified in the TIA Portal project.
Number of elements in this array dimension

Possible error messages
The following table shows possible error messages of the PlcProgram.Browse method.

Error code 2 3
4 200 201 202 203

Error message

Meaning

Permission denied The current authentication token is not authorized to call this method.

Log on with a user account that has sufficient privileges to call this method.

System is busy

The desired operation cannot be performed because the system is currently performing a different request.

Restart the query as soon as the current operation is complete.

No resources

The system does not have the necessary resources to retrieve the type information.

Carry out the request again as soon as sufficient resources are available again.

Address does not The requested address does not exist or the web server cannot access the requested

exist

address.

Invalid address The structure of the name of the symbolic address is not correct.

Variable is not a structure

It is not possible to search the specific address because the tag is not a structured data type.

Invalid array index The dimensions and limits of the array indexes do not correspond to the type information of the CPU.

182

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)

3.20.6

Website for monitoring and controlling a wind turbine

Example of a user page
Here you see a user page for monitoring and controlling a wind turbine:

Figure 3-81 Overview of user page wind turbine

Web server Function Manual, 11/2019, A5E03484625-AG

183

Web pages 3.20 API (Application Programming Interface)
The user page was created in English in this example, but you can select any language you wish when you create your own user page. If you have the corresponding rights, you have read and write access to the turbine parameters via the Web API.

Figure 3-82 Overview user page wind turbine after login

Files used

The following files were used in this example:
 api.css: The Cascading Style Sheet which includes the formatting specifications of the user page. The use is optional but can simplify the design of the user page.
 index.html: The user page in the figure shown above.
 api.js: Example of using the Web API in JavaScript
 Wind_turbine.jpg: The background image displayed on the user page. The use of images is optional. User-defined pages with many images require a lot of space in the load memory.
In the following paragraphs you will find the respective code examples in the mentioned files, which are necessary for the implementation of the user page.

184

Web server Function Manual, 11/2019, A5E03484625-AG

api.css

Web pages 3.20 API (Application Programming Interface)
.modal { display: block; position: absolute; background-color: #f1f1f1; min-width: 160px; max-height: 600px; border-radius: 0.8rem; overflow-y: auto; padding: 20px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); top: 30%; left: 50%; z-index: 10; transform: translate(-50%, -50%);
}
.login { display: flex; flex-direction: column;
}
body { background-image: url("S_Kent_0005.jpeg"); background-position: 0% 0%; background-repeat: no-repeat; background-size: cover;
}
#browserarea { resize: none;
}
.tag-table { border-style: dashed; border-radius: 15px;
background:rgba(255, 255, 255, 0.7); padding: 10px; width: 80vw; }
body { font-family: 'Courier New', Courier, monospace /* text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px
white; */ }

Web server Function Manual, 11/2019, A5E03484625-AG

185

Web pages 3.20 API (Application Programming Interface)

index.html

<html> <head> <meta charset="UTF-8"> <title>[example] Turbine controls</title> <link rel="stylesheet" href="example_api.css" /> <script src="api.js"></script> </head> <body>
<span id="notice" style="display: inline-block">Please log in first</span><br>
<button id="btn-login" onclick="openModal()"> Login </button> <button id="btn-logout" onclick="apiLogout()" hidden> Log out </button>
<h1> Example controls for the turbine <span id="turbinenumber">#</span> </h1>
Turbine speed: <input id="turb-speed" readonly > <button onclick="updateTurbineSpeed()">Get current value</button><br>
Turbine speed (SP): <input id="turb-speed-sp" value="Not set" onchange="turbSpeed(this)" autocomplete="off"><br>
Turbine manual control: <select onchange="turbineSpeedOverride(this)" autocomplete="off">
<option value=""></option> <option value="false">NO</option> <option value="true">YES</option> </select> <br>
<h2>Read/Write multiple values</h2> <table id="tag-table-read" class="tag-table">
<tr> <th align="left">Turbine safe operating values</th> <th align="left">Safe Values</th> <th align="left">Update with values</th>
</tr> <tr>
<td>Turbine speed</td> <td id="turb-speed-val"></td> <td><input id="turb-speed-max-sp"></td> </tr> <tr> <td>Turbine acceleration</td> <td id="turb-accel-val"></td> <td ><input id="turb-accel-max-sp"></td> </tr> <tr> <td>Turbine jerk</td> <td id="turb-jerk-val"></td> <td><input id="turb-jerk-max-sp"></td> </tr>

186

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
</table><br> <button onclick="bulkReadValues()">Get current values</button> <button onclick="bulkWriteValues()">Update with desired values</button> <br>
You are using Api version: <span id="version-label"></span>
<div id="example-modal" class="modal"> <div class="login"> <h2>Login</h2> <p> You have to login as user to interact with the API</p> Username: <input id="username" type="text"></input> Password: <input id="userpassword" type="password"></input> <button onClick="apiLogin()">Submit</button> <button type="cancel" onClick='closeModal()'>Cancel</button> The IP address of the PLC: <input id="target-ip" value="https://<ip-address>"
type="text" autocomplete=off onchange="changeIp(this)"></input> </div>
</div> </body> </html>

Web server Function Manual, 11/2019, A5E03484625-AG

187

Web pages 3.20 API (Application Programming Interface)

api.js

"use-strict"
let messageId = 1
let TARGET_IP = "https://192.168.2.132/api/jsonrpc"
let AUTH_TOKEN = null
function ping() { if (AUTH_TOKEN !== null) { fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "Api.Ping" }) }) }
}
setInterval(ping, 50000)
function updateTurbineSpeed() { if (AUTH_TOKEN !== null) { fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Read", "params": { "var": "\"turbine_speed\"" } }) }) .then(response => response.json()) .then((data) => { let turbNum = document.getElementById("turb-speed") turbNum.value = data.result }) .catch(e => console.error(e)) }
}

188

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
function turbSpeed() { if (AUTH_TOKEN !== null) { let turbSp = document.getElementById("turb-speed-sp") fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Write", "params": { "var": "\"turbine_speed_sp\"", "value": parseFloat(turbSp.value) } }) }) .then(response => response.json()) .then((data) => { if (data.result) { console.log("Api responds with " + data.result) } else {throw "Something happened while writing value" } }) .catch(e => console.error(e)) }
}
function getTurbineNumber() { let label = document.getElementById("turbine-number") fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Read", "params": { "var": "\"turbineNumber\"" } }) }) .then(response => response.json()) .then((data) => { label.innerHTML = data.result }) .catch(e => console.error(e))
}

Web server Function Manual, 11/2019, A5E03484625-AG

189

Web pages 3.20 API (Application Programming Interface)
function turbineSpeedOverride(element) { if (AUTH_TOKEN !== null) { fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, // id can be omitted, in that case it is
a notification request "jsonrpc": "2.0", "method": "PlcProgram.Write", "params": { "var": "\"turbine_speed_override\"", "value": (element.value === "true") }
}) })
.then(response => response.json()) .then((data) => {
if (data.result) { console.log("Api responds with " + data.result)
} else {
throw "Something happened while writing value" } }) .catch(e => console.error(e)) } } function apiLogin() {
let input_user = document.getElementById("username").value let input_password = document.getElementById("userpassword").value
fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "Api.Login", "params": { user: input_user, password: input_password } })
})

190

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
.then(response => response.json()) .then((data) => {
AUTH_TOKEN = data.result.token document.getElementById("notice").innerHTML = "You are logged in"
getApiVersion() getTurbineNumber() bulkReadValues()
showBtn("btn-logout") hideBtn("btn-login") closeModal() }) .catch(e => console.error(e)) }
function bulkReadValues() {
if (AUTH_TOKEN !== null) { let turbSpeedMax = document.getElementById("turb-speed-val") let turbAccelMax = document.getElementById("turb-accel-val") let turbJerkMax = document.getElementById("turb-jerk-val") fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify([ { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Read", "params": { "var": "\"turbine_max_speed\"" } }, { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Read", "params": { "var": "\"turbine_max_acceleration\"" } }, { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Read", "params": { "var": "\"turbine_max_jerk\"" } }]) })

Web server Function Manual, 11/2019, A5E03484625-AG

191

Web pages 3.20 API (Application Programming Interface)
.then(response => response.json()) .then((data) => {
turbSpeedMax.innerHTML = data[0].result turbAccelMax.innerHTML = data[1].result turbJerkMax.innerHTML = data[2].result }) } }
function bulkWriteValues() {
if (AUTH_TOKEN !== null) { let turbSpeedMaxSp = document.getElementById("turb-speed-max-
sp") let turbAccelMaxSp = document.getElementById("turb-accel-max-
sp") let turbJerkMaxSp = document.getElementById("turb-jerk-max-sp")
fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify([ { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Write", "params": { "var": "\"turbine_max_speed\"", "value": parseFloat(turbSpeedMaxSp.value) } }, { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Write", "params": { "var": "\"turbine_max_acceleration\"", "value": parseFloat(turbAccelMaxSp.value) } }, { "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Write", "params": { "var": "\"turbine_max_jerk\"", "value": parseFloat(turbJerkMaxSp.value) } }])
})

192

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
.then(response => response.json()) .then((data) => {
bulkReadValues() }) } }
function getApiVersion() { let label = document.getElementById("version-label")
fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "Api.Version"
}) })
.then(response => response.json()) .then((data) => {
label.innerHTML = data.result }) .catch(e => console.error(e)) }
function browseRoot() { let textarea = document.getElementById("browserarea")
fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "PlcProgram.Browse", "params": { "mode": "children" } })
}) .then(response => response.json()) .then((data) => { textarea.value = JSON.stringify(data.result, null, 4) }) .catch(e => console.error(e))
}
function apiLogout() {

Web server Function Manual, 11/2019, A5E03484625-AG

193

Web pages 3.20 API (Application Programming Interface)
fetch(TARGET_IP, { method: "POST", headers: { "Content-type": "application/json", "X-Auth-Token": AUTH_TOKEN }, body: JSON.stringify({ "id": messageId++, "jsonrpc": "2.0", "method": "Api.Logout", })
}) .then(response => response.json()) .then((data) => { AUTH_TOKEN = null openModal() hideBtn("btn-logout") showBtn("btn-login") document.getElementById("notice").innerHTML = "Please log in
first" }) .catch(e => console.error(e))
}
function changeIp(element) { TARGET_IP = `${element.value}/api/jsonrpc .replace("//api", "/api")
}
function closeModal() { let modal = document.getElementById("example-modal") modal.style.display = "none"
}
function openModal() { let modal = document.getElementById("example-modal") modal.style.display = "block"
} function closeModal() {
let modal = document.getElementById("example-modal") modal.style.display = "none" }
function hideBtn(btnId) { let btn = document.getElementById(btnId) btn.style.display = "none"
}
function showBtn(btnId) { let btn = document.getElementById(btnId) btn.style.display = "block"
}

194

Web server Function Manual, 11/2019, A5E03484625-AG

Web pages 3.20 API (Application Programming Interface)
function openModal() { if (AUTH_TOKEN !== null) { alert("Already logged in.") } else { let modal = document.getElementById("example-modal") modal.style.display = "block" }
}

Web server Function Manual, 11/2019, A5E03484625-AG

195

Glossary

Automation system
An automation system is a programmable logic controller that consists of at least one CPU, various input and output modules, as well as operating and monitoring devices.

AWP

Automation Web Programming

AWP commands
Special command syntax for data exchange between CPU and HTML file.

Configuration

Systematic arrangement of individual modules (design).

CSS

A CSS (Cascading Style Sheet) specifies how an area or content marked up in HTML is displayed.

Device

Device that can send, receive or amplify data via the bus, e.g., IO controller.

Diagnostics

The detection, localization, classification, visualization and further evaluation of errors, malfunction and alarms.
Diagnostics provides monitoring functions that run automatically during plant operation. This increases the availability of plants by reducing commissioning times and downtimes.

Firewall

A firewall is used to restrict the network access based on sender or target address of the used services. The firewall decides based on specified rules which of the network packets it handles are forwarded and which are not. This way the firewall tries to prevent unauthorized network access.
It is not the function of a firewall to detect attacks. It only implements rules for network communication.

196

Web server Function Manual, 11/2019, A5E03484625-AG

Glossary

HTTP

Hypertext Transfer Protocol (HTTP). Protocol for data transmission across a network.

HTTPS

Hypertext Transfer Protocol Secure (HTTPS). Protocol for tap-proof transmission of sensitive data across a network.

Identification data
Identification data is stored on a module, and contains information which supports the user in  Checking the system configuration  Locating hardware changes in a system  Correcting errors in a system Modules can be clearly identified online using the identification data.

Master

The master in possession of the token is an active device. This master has the option to receive data from other devices and to send data to other devices.

PROFIBUS

PROcess FIeld BUS, process and field bus standard specified in standard IEC 61784-1:2002 Ed1 CP 3/1. It specifies functional, electrical, and mechanical properties for a bit-serial field bus system.
PROFIBUS is available with the protocols DP (= Distributed I/O), FMS (= Fieldbus Message Specification), PA (= Process Automation), or TF (= Technological Functions).

PROFINET

Within the framework of Totally Integrated Automation (TIA), PROFINET represents the consistent continuation of:
 PROFIBUS DP, the established field bus
 Industrial Ethernet, the communications bus for the cell level
Experience gained from both systems was and is being integrated into PROFINET.
PROFINET as an Ethernet-based automation standard from PROFIBUS International (previously PROFIBUS User Organization) defines a vendor-independent communication, automation, and engineering model.

Web server Function Manual, 11/2019, A5E03484625-AG

197

Glossary

PROFINET component
A PROFINET component includes the entire data of the hardware configuration, the parameters of the modules, and the corresponding user program. The PROFINET component is made up as follows:
 Technological Function
The (optional) technological (software) function includes the interface to other PROFINET components in the form of interconnectable inputs and outputs.
 Device
The device is the representation of the physical programmable controller or field device including the I/O, sensors and actuators, mechanical parts, and the device firmware.

PROFINET IO

As part of PROFINET, PROFINET IO is a communication concept that is used to implement modular, distributed applications.
PROFINET IO allows you to create automation solutions which are familiar to you from PROFIBUS.
PROFINET IO is implemented by the PROFINET standard for automation devices on the one hand, and on the other hand by the engineering tool STEP 7.
That is, you have the same application view in STEP 7, regardless of whether you configure PROFINET or PROFIBUS devices. Programming your user program is essentially the same for PROFINET IO and PROFIBUS DP if you use the extended blocks and system status lists for PROFINET IO.

PROFINET IO controller
Device used to address connected I/O devices. This means that the IO controller exchanges input and output signals with assigned field devices. The IO controller is often the controller on which the automation program runs.

PROFINET IO device
A distributed field device that is assigned to one of the IO controllers (e.g., remote IO, valve terminals, frequency converters, switches).

URL

Uniform Resource Locator (URL). Identifies and localizes a source, such as a web page, uniquely via the method of access used and the location of the source in computer networks.

198

Web server Function Manual, 11/2019, A5E03484625-AG

Glossary

UTF-8

Abbreviation for 8-bit UCS (Universal Character Set) transformation format. Most popular coding of Unicode characters.
Each Unicode character is assigned a specially coded byte string of variable length in this format. UTF-8 supports up to four bytes on which all Unicode characters can be mapped.

Web browser

Web browsers are visualization programs for web pages and can communicate with Web servers. Typical web browsers are, for example:  Microsoft Internet Explorer  Mozilla Firefox

Web server Function Manual, 11/2019, A5E03484625-AG

199

Index
A
Access restriction, 29 Activating the Web server, 20 Alarms, 65 Automatic updating, 25 AWP commands, 124
Arrays, 135 Enumeration types, 131 Fragments, 133 PLC tags, 125, 128 Special tags, 129 Structures, 136
B
Backup of configuration, 89 Binding, 40
C
CA certificate, 21 Certificate
Web server certificate, 21 Certificate manager
Global CA-signed certificate, 22 Global security settings, 22 Local CPU-specific certificate, 22 Communication, 67 Connections, 71 Parameters, 67 Resources, 70 Statistics, 69
200

Configuring Backup, 87 Restoring, 87
Copy protection, 40 CPU-specific certificate, 21
D
Diagnostics (Motion Control), 49 Diagnostics buffer, 48 Display of texts in different languages, 30
E
East Asian languages, 30
F
Fail-safe, 47 FAQs
Automatically updating web pages, 123 Download certificate, 24 Incorporating web pages with relative path names, 123 User page as start page, 143 Web server access via smartphone, 18 Filebrowser, 154 System files, 154 Firmware update, 62 F-runtime groups, 47
G
Global security settings, 22
Web server Function Manual, 11/2019, A5E03484625-AG

H
HTTPS, 24
I
Identification, 38 Diagnostics, 38 Module information, 59
K
Know-how protection, 39
L
Language settings, 29
M
Measurements (trace), 96 Memory, 40 Motion Control
Diagnostics, 49 Service overview, 49 Motion status, 52
P
Program protection, 39
R
Reading out service data, 155 Reading PLC tags
Overview, 126 String or character tags in expressions, 127 Tags of the String and Character type, 126 Restoring the configuration, 90 Runtime information, 41

S
Security functions, 14 Select technology objects, 56 Self-signed certificates, 21 Service overview, 54 Signal table (Trace), 101, 101 Start page, 33
Intro, 33 Log in, 36 Logout, 36 Statistics Communication, 69 Module information, 60 Status and error bits, 51
T
Tags writing, 83, 86
Technology objects Status, errors, technology alarms, 49
Topology, 72 Actual topology, 72 Examples, 79 Graphical view, 73 Set topology, 72 Status overview, 78 Tabular view, 76
Trace recordings, 94 Trend diagram (Trace), 97
U
Updating and saving, 32 Deactivating automatic updating, 32 Printing web pages, 32

Index

Web server Function Manual, 11/2019, A5E03484625-AG

201

Index
Saving alarms, 66 Saving diagnostics buffer entries, 49 Updating user pages, 123 User interface language assign to project language, 31 Setting, 34 User management, 26 User pages, 120 Configuring user pages, 138 Example user page, 143 User page as start page, 141 WWW instruction, 139 User-defined pages, 28
W
Web access Via HMI devices and mobile terminal devices, 18 Via PG/PC, 18
Web browser, 15 Web server
Certificate, 21 Properties, 14 Web server - web pages Tag status, 82 Watch table, 85 Web server certificate creating and assigning, 21 Web server language, 26

202

Web server Function Manual, 11/2019, A5E03484625-AG

SIMATIC STEP 7 (TIA Portal) options Target 1500STM for Simulink® V2.0
Programming Manual

_In_tro_d_uc_tio_n____________1_ _Se_c_ur_ity_in_fo_rm_a_tio_n________2_ _SSiu_epm_peo_nrts_I_nd_u_st_ry_O_nl_ine______3_ _In_du_st_ry_M_a_ll ___________4_ _Pr_od_u_ct_o_ve_rv_ie_w_________5_ _In_sta_ll_ing______________6_ _Ex_a_m_ple_o_f_a _wo_rk_fl_ow_______7_ _Us_in_g_an_e_x_am_p_le_p_ro_je_ct_____8_ _Fi_les_g_e_ne_ra_te_d_by_c_o_de_rs_____A_ _Re_fe_re_n_ce_d_m_od_e_ls________B_ _Ex_te_rn_a_l m_o_de__________C__ _PSaT_rEa_Pm_7e_te_r a_cc_e_ss_fr_om______D__ _Ac_c_es_s _to_in_te_rn_al_s_ign_a_ls_____E_ _Us_in_g_bu_s_o_bj_ec_ts_in_S_T_EP_7____F_ _Al_ar_m_s _____________G__

01/2018
A5E38915112-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E38915112-AC  01/2018 Subject to change

Copyright © Siemens AG 2016 - 2018. All rights reserved

Table of contents

1 Introduction ............................................................................................................................................. 5

1.1

Guide for this manual................................................................................................................5

1.2

Guide to documentation S7-1500 / ET 200MP .........................................................................7

2 Security information .............................................................................................................................. 11

3 Siemens Industry Online Support .......................................................................................................... 12

4 Industry Mall ......................................................................................................................................... 13

5 Product overview .................................................................................................................................. 14

5.1

Overview of functions..............................................................................................................14

5.2

Basic procedure ......................................................................................................................15

6 Installing ............................................................................................................................................... 16

6.1

System requirements ..............................................................................................................16

6.2

Installing Target 1500S ...........................................................................................................17

6.3

Licensing Target 1500S ..........................................................................................................19

6.4

Uninstalling Target 1500S ......................................................................................................21

6.5

Repairing Target 1500S..........................................................................................................22

7 Example of a workflow .......................................................................................................................... 23

7.1

Creating a Simulink model ......................................................................................................23

7.2

Description of Simulink parameters ........................................................................................24

7.3

Description of the Target 1500S options ................................................................................27

7.4

Description of the Target 1500S Openness options...............................................................29

7.5

Description of the Target 1500S Advanced options ...............................................................31

7.6

Importing SCL file automatically into STEP 7 after Simulink build .........................................34

7.7

Running Simulink build ...........................................................................................................35

7.8

The Diagnostic Viewer ............................................................................................................36

7.9

Loading and running the ODK application ..............................................................................37

8 Using an example project...................................................................................................................... 39

A Files generated by coders ..................................................................................................................... 40

B Referenced models ............................................................................................................................... 41

C External mode....................................................................................................................................... 43

C.1

The external mode ..................................................................................................................43

C.2

Setting communication parameters for external mode ...........................................................44

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

3

Table of contents

C.3

The function block CallExtMode ............................................................................................ 46

C.4

Establishing an external mode connection ............................................................................ 49

D Parameter access from STEP 7 ............................................................................................................ 50

D.1

Introduction ............................................................................................................................ 50

D.2

Enabling parameter access ................................................................................................... 50

D.3

The ReadWriteParameters function block ............................................................................. 51

D.4

Establishing parameter access .............................................................................................. 52

E Access to internal signals...................................................................................................................... 53

F Using bus objects in STEP 7 ................................................................................................................. 55

F.1

Bus objects............................................................................................................................. 55

G Alarms .................................................................................................................................................. 56

G.1

Alarms during the build process............................................................................................. 56

G.2

Information messages............................................................................................................ 56

G.3

Warnings ................................................................................................................................ 58

G.4

Error messages...................................................................................................................... 60

Index .................................................................................................................................................... 63

Target 1500STM for Simulink® V2.0

4

Programming Manual, 01/2018, A5E38915112-AC

Introduction

1

1.1

Guide for this manual

Purpose of the documentation
This documentation provides important information about installing and setting up SIMATIC Target 1500S for Simulink and generating an ODK object.

Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the SIMATIC industrial automation system  Knowledge of working with STEP 7  Use of Microsoft Windows operating systems  Proficiency with Mathworks MATLAB and Simulink

Validity of the documentation
This documentation is valid for the product SIMATIC Target 1500S for Simulink.

Notes

Please also observe notes labeled as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the part of the documentation to which particular attention should be paid.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

5

Introduction 1.1 Guide for this manual
Definitions and naming conventions
The following terms are used in this documentation:  Target 1500S: This term refers to the product SIMATIC Target 1500S for Simulink.  ODK: This term refers to the product Open Development Kit 1500S in the compatible
version.  SO: Shared Object. Output object after an ODK build.  SCL: Structure Control Language. Programming language in STEP7.  STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the
configuration and programming software "STEP 7 (TIA Portal V15 or higher)".  Matlab: Mathworks MATLAB
MATLAB and Simulink are registered trademarks of The MathWorks, Inc.  TIA Portal Openness: Automation interface of TIA Portal V15. Used by Target 1500S to
import from external sources.

Target 1500STM for Simulink® V2.0

6

Programming Manual, 01/2018, A5E38915112-AC

Introduction 1.2 Guide to documentation S7-1500 / ET 200MP

1.2

Guide to documentation S7-1500 / ET 200MP

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require.

Basic information
The System Manual and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200MP systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, wiring diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics regarding the SIMATIC S7-1500 and ET 200MP systems, e.g. diagnostics, communication, motion control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and supplements to the manuals are documented in a Product Information.
You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/68052815).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

7

Introduction 1.2 Guide to documentation S7-1500 / ET 200MP

Manual Collection S7-1500/ET 200MP
The Manual Collection contains the complete documentation on the SIMATIC S7-1500 automation system and the ET 200MP distributed I/O system gathered together in one file.
You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86140384).

SIMATIC S7-1500 comparison list for programming languages
The comparison list contains an overview of which instructions and functions you can use for which controller families.
You can find the comparison list on the Internet (https://support.industry.siemens.com/cs/ww/en/view/86630375).

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Target 1500STM for Simulink® V2.0

8

Programming Manual, 01/2018, A5E38915112-AC

Introduction 1.2 Guide to documentation S7-1500 / ET 200MP
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109482830).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).
SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of the TIA Portal. General function overview:  Network browsing and creation of a table showing the accessible devices in the network.  Flashing of device LEDs or HMI display to locate a device  Downloading of addresses (IP, subnet, gateway) to a device  Downloading the PROFINET name (station name) to a device  Placing a CPU in RUN or STOP mode  Setting the time in a CPU to the current time of your PG/PC  Downloading a new program to a CPU or an HMI device  Downloading from CPU, downloading to CPU or deleting recipe data from a CPU  Downloading from CPU or deleting data log data from a CPU  Backup/restore of data from/to a backup file for CPUs and HMI devices  Downloading service data from a CPU  Reading the diagnostics buffer of a CPU  Performing a CPU memory reset  Resetting devices to factory settings  Downloading a firmware update to a device You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

9

Introduction 1.2 Guide to documentation S7-1500 / ET 200MP

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the PROFINET network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET network and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a system.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).
The Manual Collection includes the complete documentation for distributed I/O system SIMATIC ET 200SP assembled in a single file.
You can find the Manual Collection on the Internet (http://support.automation.siemens.com/WW/view/en/84133942).

Target 1500STM for Simulink® V2.0

10

Programming Manual, 01/2018, A5E38915112-AC

Security information

2

Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

11

Siemens Industry Online Support

3

You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Target 1500STM for Simulink® V2.0

12

Programming Manual, 01/2018, A5E38915112-AC

Industry Mall

4

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

13

Product overview

5

5.1

Overview of functions

Basics

Mathworks Matlab is software for the primary solution of mathematical problems and their visualization.
Simulink is an add-on for Matlab for graphical modeling of systems and their simulation.

Target 1500S

Target 1500S is an add-on for Simulink, which generates an executable object for an ODKenabled controller from a Simulink model. It enables you to run a Simulink model on a controller.
Target 1500S automatically generates all the necessary blocks and files for this. An SCL and SO file is created from the generated C/C++ code.
The SCL file is imported as external source to STEP 7 and contains the generated function blocks.
The SO file contains the C/C++ implementation and is available to the CPU after transfer to the web server.

Target 1500STM for Simulink® V2.0

14

Programming Manual, 01/2018, A5E38915112-AC

Product overview 5.2 Basic procedure

5.2

Basic procedure

Overview of the individual steps
To run a Simulink model on a controller, follow these steps: 1. Create a model in Simulink. 2. Configure the properties of the model in Simulink. 3. Under "Code Generation", select Target 1500S as System Target File . 4. Adapt the parameters for Simulink and Target 1500S . 5. Start the build in Simulink.
The SO and SCL file is generated and stored in the output directory "outputs". 6. Transfer the SO file into the ODK 1500S folder in the Web server of the controller. 7. To import the SCL files after the build automatically to the STEP 7 project, enable the
"Import the generated SCL file to CPU(s)" option in the Target 1500S Openness options (Page 29). Steps 8 and 9 are automatically executed as a result. 8. Add the SCL file as an external source in STEP 7. 9. Generate blocks from the external source in STEP 7. 10.Call the required blocks in your S7 program. 11.Load the program onto the ODK-enabled controller. You can find more information on the ODK-relevant steps in the ODK manual (https://support.industry.siemens.com/cs/ww/en/ps/13914/man) of the corresponding version.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

15

Installing

6

6.1

System requirements

Requirements

Your PC must meet the following system requirements in order to use the Target 1500S:

Category Operating system Processor and memory
Operator interface SIMATIC Software
Additional software

Requirement · Microsoft Windows 7 SP1, 64-bit · Microsoft Windows 8.1, 64-bit · Microsoft Windows 10, 64-bit
PC system: · 100 MB of free space on the hard disk C:\ · At least systems with Intel Core i5 processor · 1.2 GHz or higher · At least 4 GB RAM
Monitor, keyboard and mouse. · SIMATIC ODK 1500S V2.0 or V2.5 · Optional: SIMATIC STEP 7 Professional (TIA Portal) V15 or higher with TIA Portal
Openness V15 · Optional: SIMATIC CPU 15xx, which supports ODK V2.0 or V2.5
· Matlab 2017b (64-bit) in the following configuration: ­ Matlab 9.3 ­ Matlab Coder 3.4 ­ Simulink 9.0 ­ Simulink Coder 8.13
· Java Runtime Environment (32-bit)

Target 1500STM for Simulink® V2.0

16

Programming Manual, 01/2018, A5E38915112-AC

Installing 6.2 Installing Target 1500S

6.2

Installing Target 1500S

To install Target 1500S, select the installation folder. Follow the instructions of the setup program.

If the setup program does not start automatically, manually start the "Start.exe" file by double clicking it.

Note
Use of antivirus software
To avoid problems during the installation, disable the antivirus software for the period of the installation or exclude the directory "C:\Program Files\Common Files\Siemens\Automation\Siemens Installer Assistant" and the directory in which Start.exe is located, for the antivirus software.

Note Order of the installed Target 1500S versions
When you install multiple versions, make sure that the older version is installed before the newer one. If problems occur, uninstall all versions and install these again in this order.

Requirements

 You have installed a compatible ODK 1500S version and a 32-bit Java Runtime Environment .
 You need administrator rights for this action.  Matlab and Simulink are installed in the required configuration.  Close all Matlab instances.

Procedure

1. Launch the "Start.exe" file manually with a double-click. 2. Select the language for performing the installation. 3. Confirm with "Next".
The "Configuration" view opens. 4. Click "Next" to confirm the list of components that are to be installed.
The check mark for Automation License Manager (ALM) cannot be removed.
Note Target 1500S is already installed If Target 1500S is already installed, you can select between "Repair (Page 22)" and "Uninstall (Page 21)" here.
5. Confirm with "Next".

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

17

Installing 6.2 Installing Target 1500S

6. Agree to the license conditions and safety information. 7. Confirm with "Next".
The "Overview" with the installation settings opens. 8. Start the installation with "Install"
The following directory is created: ProgramFiles(x86)%\Siemens\Automation\Target1500S\<current version> 9. Choose whether you want to carry out the licensing (Page 19) during the installation or at a later time.

Result

The installation is complete. All product languages were installed by default during the installation process. During the installation, Target 1500S was integrated in Simulink and the product help was created in the Windows Start menu.
Note
You can install ODK after Target. Close Matlab and other applications and then restart it after the installation.

Target 1500STM for Simulink® V2.0

18

Programming Manual, 01/2018, A5E38915112-AC

Installing 6.3 Licensing Target 1500S

6.3

Licensing Target 1500S

The software requires a product-specific license key that you install with the Automation License Manager. Each SIMATIC software product for automation that is subject to license (e.g., STEP 7) has its own license key. You must install the license key for each product.

Working with the Automation License Manager
The Automation License Manager is a product of Siemens AG and is used for managing license keys. The Automation License Manager is supplied on the installation data medium of this product by default and is transferred automatically during the installation process.
Software products that require license keys for operation register the requirement for license keys automatically in the Automation License Manager. If the Automation License Manager finds a valid license key for this software, the software can be used according to the conditions of use associated with this license key.

Certificate of license
A Certificate of License is included in the scope of delivery. It contains your unique license number. The license certificate serves as proof that you have a valid license key. Store this certificate in a safe place.
Note Obtaining a replacement license key You must have a valid certificate of license to get a replacement license key.

Recovering the license key in case of defective mass storage
If an error has occurred on the mass storage or USB flash drive containing your license key file, you can restore the license using the license certificate. You can find additional information in a FAQ (https://support.industry.siemens.com/cs/ww/en/view/772175).

License key

The download of Target 1500S allows you to access ordered license keys.
For access, you need:
 A personalized login that you can use to call all license keys assigned to you.
 An anonymous login that you can use to fetch an individual license key, and the corresponding license certificate. This document contains all data required for the anonymous download.
Additional information on the license key and the download is available in the Automation License Manager manual (https://support.industry.siemens.com/cs/ww/en/view/102770153).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

19

Installing 6.3 Licensing Target 1500S
Transferring the license key
The license key can be transferred during the installation or afterwards. If the USB flash drive with the relevant license key is inserted in the USB port of the PC at the start of installation, the license key will be transferred automatically during the installation. If the USB flash drive is not inserted at the start of installation, you have three options for installing the license key subsequently:  To transfer the license key manually from a network computer or other storage medium,
select the "Manual license transfer" button.  Insert the USB flash drive with license key, and select the "Retry license transfer" button.
The Automation License Manager opens in order to transfer the license key.  If you do not want to install a license key, select the "Skip license transfer" button.
Working without valid license key
For legal reasons, a valid license key is required for this product. If no valid license key is present on your PC, you cannot generate any projects and the system indicates the non-licensed mode with a message. You have the one-time option of activating a trial license. However, this license is valid for a limited period only and expires after 21 days. When the trial license has expired, an error message appears during the build process.
Manually transferring the license key subsequently
A message is displayed if you start the Target 1500S without transferred license key. If the Automation License Manager is not yet installed on your computer, you must install it beforehand. To manually transfer the license key for Target 1500S subsequently, follow these steps: 1. Start the installation of Target 1500S with administrator rights. 2. In the "License Transfer" section, select the "Manual license transfer" button.
A dialog box for synchronization of the license opens. 3. Select the destination and the source of the license key. 4. To transfer the license key, click the "Synchronize" button.
The license key is transferred.

Target 1500STM for Simulink® V2.0

20

Programming Manual, 01/2018, A5E38915112-AC

Installing 6.4 Uninstalling Target 1500S

6.4

Uninstalling Target 1500S

Requirement

 You need administrator rights for this action.  You have already installed Target 1500S .

Procedure

1. Launch the "Start.exe" file manually with a double-click. 2. Select the language for performing the installation. 3. Confirm with "Next".
The "Configuration" view opens. 4. Select the "Uninstall" option. 5. Confirm with "Next".

Result

 Target 1500S is removed from the Matlab environment.  The entry in the Start menu is deleted.  Target-specific folders are deleted.
Previously generated output of Target 1500S is not deleted.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

21

Installing 6.5 Repairing Target 1500S

6.5

Repairing Target 1500S

Requirement

 You require administrator rights for this procedure.  You have already installed Target 1500S .

Procedure

1. Launch the "Start.exe" file manually with a double-click. 2. Select the language for performing the installation. 3. Confirm with "Next".
The "Configuration" view opens. 4. Select the "Repair" option. 5. Confirm with "Next".

Result

Target 1500S is re-installed.

Target 1500STM for Simulink® V2.0

22

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow

7

7.1

Creating a Simulink model

Procedure

1. In Matlab, select the storage path for the model under "Current Folder". Alternatively, you can also set the storage path in the Simulink preferences under "File generation control".
2. Create the model in Simulink. You can also use a model provided by Simulink, for example Bouncing Ball .
3. Save the model.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

23

Example of a workflow 7.2 Description of Simulink parameters

7.2

Description of Simulink parameters

Some configuration parameters are preset when you select Target 1500S as the System Target File . To do so, select the system target file for Target_1500S (*.tlc) of the required version in the "Configuration Parameters".

Note Change/migrate the System Target File
If you change parameters in the "Configuration Parameters" and then want to change the System Target File, you need to first confirm the changes with the "Apply" button.
If you migrate an older version of the System Target File after a newer version, the parameters the applied. Parameters that are not present in the older version are set to the default value by the system.

Figure 7-1 Configuration parameters using the System Target File for Target 1500S V2.0 as an example
The default parameters are listed below. To successfully create an ODK object, you are not allowed to change some parameters. These parameters are marked in this product help with "(fixed)". Use the default values whenever possible. You can also set special Target 1500S options here.
Note Default parameters The system assigns default parameters, and these may overwrite existing entries.

Target 1500STM for Simulink® V2.0

24

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.2 Description of Simulink parameters

Requirement

You have selected Target 1500S as the System Target File .

Relevant parameters
Solver A dynamic system is modeled as a mathematical calculation in Simulink. This calculation is performed at certain time intervals to simulate the execution of the system. The size of this time interval is referred to as the "Step-Size". The method for calculating the states of a model is referred to here as solving the model.  Solver options
Determine the solver selection ­ Type (fixed): Fixed Step ­ Solver: auto (Automatic solver selection)  Tasking and sample time options ­ Periodic sample time constraint: Unconstrained ­ Tasking mode for periodic sample times: Treat each discrete rate as a separate task
(disabled)
Optimization  Code generation
You can select between "Tunable" and "Inlined" under "Default parameter behavior". Select "Tunable" if you want to allow parameter access from STEP 7. You can also change the parameter values during runtime. Select "Inlined" so that the values of the parameters are fixed and cannot be changed during runtime. The execution of the code is then faster.
Data Import/Export The "Save to workspace" area refers to the Matlab workspace.  Time  States  Output  Final States  Format  Limit data points to last  Decimation
Hardware Implementation  Device vendor: Intel  Device type: x86-32 (Windows32)

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

25

Example of a workflow 7.2 Description of Simulink parameters
Code Generation General  Language (fixed): C++  Makefile configuration (fixed): "Generate makefile" option disabled  Generate code only (fixed): "Generate code only" option enabled
Code Generation > Symbols  Maximum identifier length
The default value is 256. You can enter a higher value, but be aware of the ODK limits.
Code Generation > Debug  Verbose Build
This option is disabled by default. Only relevant information is displayed in the Diagnostic Viewer during the build process. Enable this option to get more detailed information during the build process.
Code Generation > Interface  Code interface packaging (fixed): Nonreusable function  Classic call interface (fixed): "Classic call interface" option disabled  Single output/update function (fixed): "Single output/update function" option enabled  MAT-file logging (fixed): "MAT-file logging" option disabled  Interface
Select "External mode (Page 43)" to use this. The settings are thereby made automatically. You can find the description of the individual parameters under "Setting communication parameters for external mode (Page 44)".
Code Generation > Target 1500S options The options are described in more detail under "Description of the Target 1500S options (Page 27)", "Description of the Target 1500S Openness options (Page 29)" and "Description of the Target 1500S Advanced options (Page 31)".

Target 1500STM for Simulink® V2.0

26

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.3 Description of the Target 1500S options

7.3

Description of the Target 1500S options

Some configuration parameters are preset when you select Target 1500S as the System Target File . The default parameters are listed below.

Requirement

You have selected Target 1500S as the System Target File .

Adjustable parameters

ODK 1500S version
Choose an installed ODK version from this list. All versions that are compatible with the installed Target version are shown. Restarting Matlab updates the list, if you have subsequently installed ODK.
Copy all referenced files (MATLAB or C files) to ODK project
Select this option to copy all Matlab source files into the ODK project. The ODK project can then still be compiled on a PC without a Matlab installation.
The referenced files are copied to the folder "<Model-Name>_Target_1500S_<current version>_grt_Output" under "references".

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

27

Example of a workflow 7.3 Description of the Target 1500S options
Parameter access with STEP 7 Select this option to generate special code for accessing model parameters from the S7 program.
Note Enable / disable Parameter access with STEP 7. If you enable the Parameter access with STEP 7 under "Optimization" in the "Code generation" area, select the setting "Tunable" from the "Default parameter behavior" selection. If you disable the Parameter access with STEP 7 under "Optimization" in the "Code generation" area, select the setting "Inlined" from the "Default parameter behavior" selection.
Enable STEP 7 access to internal model signals To obtain defined measurement points (internal signals) as output(s) of the FB "OneStep", enable this option. You can find additional information in the section "Access to internal signals (Page 53)".
Internal signal selection From this list, select the type of internal signals for the access from STEP 7.  All measurement points including test points
All measurement points are used as internal signals.  All measurement points excluding test points
All measurement points, excluding test points, are used as internal signals.  Only test points
Only measurement points defined as test point are used as internal signals.
Help To open the online help for Target 1500S , click on this button.
Online Support To open the Support website, click this button.

Target 1500STM for Simulink® V2.0

28

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.4 Description of the Target 1500S Openness options

7.4

Description of the Target 1500S Openness options

The generated SCL source file is automatically imported into a preset STEP 7 project via the automation interface of STEP 7 "TIA Portal Openness".

Some configuration parameters are preset when you select Target 1500S as the System Target File . The default parameters are listed below.

Additional information and application examples on "TIA Portal Openness" can be found on the Internet (https://support.industry.siemens.com/cs/products?search=Tia%20Portal%20Openness&mfn =ps&o=DefaultRankingDesc&lc=en-WW).

Requirements

 You have installed a compatible version of STEP 7 TIA Portal.  You have installed a compatible version of STEP 7 TIA Portal Openness.  You have selected Target 1500S as the System Target File .  You are included in the Computer Management in the user group "Siemens TIA
Openness" with your registered user and have restarted the operating system.

Parameters that can be set

Import the generated SCL file to CPU(s)
To automatically import the generated SCL files into the STEP 7 project after the build, enable this option for one or more CPUs.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

29

Example of a workflow 7.4 Description of the Target 1500S Openness options
TIA Portal project path Specify the path to the STEP 7 project into which the generated SCL file will be imported. For example: D:\tiaprojects\project\project.ap15
CPU name(s) Specify the name of the CPU in the STEP 7 project, into which the generated SCL file will be imported. Separate multiple CPUs with a comma. For example: cpu1, cpu2
Compile the CPU(s) after import To automatically compile the CPU after the import of the SCL file, enable this option.
Compile the TIA Portal project after import To automatically compile the STEP 7 project after the import of the SCL file, enable this option.
Note To ensure the consistency of the STEP 7 project, all CPUs in the project are compiled when the option "Compile the TIA Portal project after import" is selected. Including the CPUs that are not named under "CPU name(s)".

Target 1500STM for Simulink® V2.0

30

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.5 Description of the Target 1500S Advanced options

7.5

Description of the Target 1500S Advanced options

Some configuration parameters are preset when you select Target 1500S as the System Target File . The default parameters are listed below.

Requirement

You have selected Target 1500S as the System Target File .

Parameters that can be set

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

31

Example of a workflow 7.5 Description of the Target 1500S Advanced options
Hardware Interface ID (HW-Identifier) Enter the numerical value of the hardware identifier for the corresponding communications interface. The value must correspond to the value assigned under "Hardware identifier" for a communications interface in the TIA Portal. If the values do not match, the connection between Simulink and the controller cannot be established via External Mode.

Figure 7-2 Example for setting the hardware identifier

Target 1500STM for Simulink® V2.0

32

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.5 Description of the Target 1500S Advanced options
Connection ID Enter a value between 1 and 4095 for the Open User Communication in STEP 7 for the communication of the External Mode. The value must be unique for the STEP 7 user program.

Figure 7-3 Example of the setting of the connection ID in STEP 7
Allow OneStep and CallExtMode FBs to be called in different OBs To call the FB "CallExtMode" in a different block, such as "OneStep", enable this option.
Note This means that the possible memory for executing the ODK application will be reduced.
Heap size for dynamic memory allocation in kByte (HeapSize) Specify the memory for dynamic memory allocation in the ODK object numerically. You need a higher memory allocation when you attach more source files to create an ODK project. You can find additional information in the ODK documentation (https://support.industry.siemens.com/cs/ww/en/ps/13914/man).
Max block size for dynamic memory allocation in Byte (HeapMaxBlockSize) Specify the memory for dynamic memory allocation in the ODK object numerically. You need a higher memory allocation when you attach more source files to create an ODK project. You can find additional information in the ODK documentation (https://support.industry.siemens.com/cs/ww/en/ps/13914/man).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

33

Example of a workflow 7.6 Importing SCL file automatically into STEP 7 after Simulink build
Size of thread stack for a single ODK call in kByte (SyncCallStackSize) Numerically specify the memory for the thread stack of a call in the ODK application. The value must be between 1 and 1024. You can find additional information in the ODK documentation (https://support.industry.siemens.com/cs/ww/en/ps/13914/man).

7.6

Importing SCL file automatically into STEP 7 after Simulink build

You can automatically import the generated SCL file into a CPU in the STEP 7 project after the Simulink build. To do so, you can use the Simulink parameters "Code Generation > Target 1500S Openness Options".

Requirements

 You have installed a compatible version of STEP 7.  You have installed a compatible version of STEP 7 Openness.  You have selected Target 1500S as System Target File.  You are included in the Computer Management in the user group "Siemens TIA
Openness" with your registered user and have restarted the operating system.

Procedure

1. Enable the "Import the generated SCL file to CPU(s)" option in the Target 1500S Openness options (Page 29).
2. Enter the path of an existing STEP 7 project with file extension in the entry field "TIA Portal project path".
3. In the entry field "CPU name(s)", enter the name of the ODK capable CPU(s) into which the SCL file is to be imported.
If you want to enter multiple CPUs, separate them using commas.
4. Run the Simulink build.

Note First execution of the import The "Openness access" dialog appears the run the import the first time. To grant on-time access, select "Yes". To grant permanent access, select "Yes to all".

Target 1500STM for Simulink® V2.0

34

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.7 Running Simulink build

7.7

Running Simulink build

Procedure

1. Start the build process in Simulink via the menu "Code > C/C++ Code > Build Model". The system creates a new ODK Eclipse project in the following folder: C:\ProgramData\Siemens\Automation\ODK1500S\<ODK version>\workspace
2. If the ODK workspace is already being used by another Eclipse application, the dialog "ODK 1500S default workspace is locked" opens. Close the Eclipse application and confirm the dialog with "OK".
3. If there is already an ODK project of the same name in the ODK workspace, the dialog "Existing ODK Projekt" opens. Click "Yes" to replace the existing project in the ODK workspace. Click "No" to cancel the build process.
Note Regenerate model with other Target version If you re-generate a model with the same ODK version but a different version of the System Target Files , the existing ODK project will be overwritten.

Results

 The Diagnostic Viewer (Page 36) displays information about the build process.  A folder containing all generated files was created. The folder name is: <Model
name>_Target1500S_V<Current version>. The relevant files are stored in the "outputs" subfolder. You can find more information on the generated files in the appendix (Page 40).

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

35

Example of a workflow 7.8 The Diagnostic Viewer

7.8
Layout

The Diagnostic Viewer
The Diagnostic Viewer displays information about the build process.

Symbol

Designation Information

Meaning This alarm provides information about the progress of the build process.

Warning Error

This alarm does not abort the build process. You are made aware of special considerations and possible problems.
This alarm indicates an error that results in termination of the build process.

You can find the possible information, warning and error messages under Alarms (Page 56).

Target 1500STM for Simulink® V2.0

36

Programming Manual, 01/2018, A5E38915112-AC

Example of a workflow 7.9 Loading and running the ODK application

7.9

Loading and running the ODK application

The procedure for loading and executing an ODK application is described in the next steps. More information about the individual steps is provided in the manual of the Open Development Kit 1500S (https://support.industry.siemens.com/cs/ww/en/ps/13914/man).

Procedure

1. Open the Web server of the ODK-enabled S7-1500 CPU. 2. Upload the SO file to the ODK 1500S folder via "Filebrowser".

The SO file is transferred to the load memory. 3. Insert the SCL file in the project tree in STEP 7 as an external source. 4. Generate the program blocks from the external source in STEP 7 by right-clicking on the
SCL file > "Generate blocks from source". Depending on the parameters set, the following function blocks are created: ­ <Simulink model>_ Load ­ <Simulink model>_ Unload ­ <Simulink model>CallExtMode ­ <Simulink model>OneStep ­ <Simulink model>ReadWriteParameters 5. Load the application from the load memory to the work memory of the CPU with the instruction "<Simulink model>_ Load". 6. Run the application with the instruction "<Simulink model>OneStep".

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

37

Example of a workflow 7.9 Loading and running the ODK application
Note Run a modified SO file A modified SO file is only executed if the old SO file is unloaded using the function <Simulink-Model>_ Unload and the new SO file was loaded to work memory using the function <Simulink-Model>_ Load. If old SO files were not unloaded, these remain in the work memory and reduce the work memory. This can mean that no additional SO files can be loaded, as the work memory is too small. To empty the work memory, shut down your system and restart it. Make sure that the "old" SO files are unloaded before you load the new modified SO files.

Target 1500STM for Simulink® V2.0

38

Programming Manual, 01/2018, A5E38915112-AC

Using an example project

8

An example project is ready for you on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109482830) to help getting started with the Target 1500S.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

39

Files generated by coders

A

To create ODK-enabled data, the Target 1500S TLC is used in addition to the Simulink Coder . The generated files and their main functions are explained below.
Files created by Simulink Coder  <Simulink model>.cpp
This file has three main functions: ­ void <Simulink model>_step(void)
This function is called by the OneStep FB and runs the Simulink model. ­ void <Simulink model>_initialize(void)
This function is called by the <Simulink model>_Load FB. ­ void <Simulink model>_terminate(void)
This function is called by the <Simulink model>_UnLoad FB.  <Simulink model>.h
Files created by the Target 1500S TLC  <Simulink model>_ODK.odk
This file is used as input for the ODK code generator.  <Simulink model>_ODK.cpp
This file contains the execution of OnLoad-, OnUnload- and OneStep functions.  <Simulink model>_ODK.scl.additional
This file is only generated when external mode (Page 43) is activated. Target 1500S TLC generated a comment with the following information in the files:  Name and version of the Simulink model.  Name and date of creation of file.  Target 1500S version and the System Target File used.  ODK 1500S version  Versions of the Matlab configuration

Target 1500STM for Simulink® V2.0

40

Programming Manual, 01/2018, A5E38915112-AC

Referenced models

B

Since Version V1.0 Update 1, Target 1500S has been supporting the code generation of referenced models for controllers with ODK capability. With referenced modules, a parent model contains one or more referenced child models. A referenced child model can itself reference child models.

Special considerations for code generation with referenced models
Target 1500S detects referenced models and processes the models from the child models to the parent models during the build. The system creates an ODK Eclipse project at the end of the build.
You can configure the parameters for the parent model and the referenced child models differently under "Configuration Parameters (Page 24)". In the following table, you can see the response to the respective parameters.

Parameter

Response to homing

ODK 1500S version

Only the settings of the parent model area taken into consideration.


The settings are individually evaluated

Copy all referenced files to ODK project



Parameter Access with STEP 7



Enable STEP 7 access to internal model signals



Import the generated SCL file to CPU(s)



Hardware Interface ID



Connection ID



Allow OneStep and CallExtMode FBs to be called in  different OBs

Heap size for dynamic memory allocation



Max block size for dynamic memory allocation



Size of thread stack for a single ODK call



External mode

If the external mode (Page 43) is enabled in the parent model, it can also be used for the referenced child models contained therein.
For code generation, the "Interface" settings of the referenced child models are ignored and the settings of the parent model are used.
If you select a setting other than "External mode" or "None" for the child model under "Interface", an error message appears during the compiling.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

41

Referenced models
Independent build of child models
You can also run the build of child models independently of the referenced model. Data independent of the referenced model are created.

Target 1500STM for Simulink® V2.0

42

Programming Manual, 01/2018, A5E38915112-AC

External mode

C

C.1

The external mode
The external mode of Simulink enables you to monitor the model during runtime and change the parameters of the model online. For Simulink to be able to communicate with the model on the controller via external mode, external mode must be activated before starting the build process. In this case, the code is supplemented by communication code for the data exchange between Simulink and the controller. The communication is realized on the basis of TCP/IP.
DANGER Changes to the model only in the test environment Use the external mode for test purposes only. Changing the tag values while the plant is operating may result in severe damage to property and personal injury in the event of malfunctions or program errors. Make sure that dangerous states cannot occur before you use the "Modify" function. When using the external mode, note that no CPU password is required to control tags.

Activating external mode
Select the value "External mode" under "Code Generation > Interface > Data exchange > Interface" for the Simulink parameters (Page 24) to activate external mode.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

43

External mode C.2 Setting communication parameters for external mode

C.2

Setting communication parameters for external mode

 Transport layer (fixed) tcpip
 MEX-file arguments ­ IP address: IP address of the ODK-enabled controller which is to run the application. Default: '192.168.0.1' ­ Verbosity level (optional): Set the value "1" in order to obtain detailed information about the external mode in the "Diagnostic Viewer (Page 36)". ­ Port number (optional): The port number of the server for the TCP/IP connection (ODK-enabled controller). Default: 17725 ­ WaitForStart (optional): The simulation starts automatically as soon as the "OneStep" function is executed.
If you set the value to "1", the execution of the Simulink model does not start automatically. In this case, you need to restart the simulation in the Simulink window after the connection is made using the " " button.
Standard format: `<IPAddress>' By default, only the IP address of the target device is specified for the object file in the MEX-file arguments . All other communication parameters obtain the default value described. Example: '192.168.0.1' Extended format: `<IPAddress>' <VerbosityLevel> <PortNumber> <WaitForStart> Using a space for separation, you can set the value of the verbosity level, the port number and the flag for "WaitForStart". Example: '192.168.0.1' 0 17725 1
Note Pay attention to the apostrophes when entering the IP address.
When <PortNumber> is changed, you can either run a Simulink build, and transfer and load the new ODK application or adapt the port number at the "CallExtMode" block (see "The function block CallExtMode (Page 46)"). Adhere to the structure If you do not comply with the format specified in the examples, it is not possible to establish a connection.

Target 1500STM for Simulink® V2.0

44

Programming Manual, 01/2018, A5E38915112-AC

External mode C.2 Setting communication parameters for external mode
 Static memory buffer size This memory is required for communication of the external mode. Increasing "Static memory buffer size", however, simultaneously reduces the available memory for loading the ODK object. Adhere to the ODK limits. If necessary, you can enter a higher value or change your model.
Note Change the parameters of the external mode If you change the parameters of the external mode, you need to re-generate the Simulink model. Then update the STEP 7 user program and the SO file on the CPU (see "Loading and running the ODK application (Page 37)").

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

45

External mode C.3 The function block CallExtMode

C.3

The function block CallExtMode

Structure of the function block (FB)

The "<Simulink model>CallExtMode" FB has the following input parameters:  EnableExtMode (Bool)
To establish an external mode connection, set this parameter to "true" using a tag.  HW-Identifier (UInt)
Set the value of the hardware identifier for the communication interface in the Target 1500S options. The default value is "64".  LocalPort (UInt) Set the value of the port number in the interface options under "MEX-file arguments". Change the value to establish the external mode connection using a different CPU port.  OUC-Identifier Set the value for the OUC-Identifier in the Target 1500S options. The OUC-Identifier is the Connection ID for the Open User Communication. The value must be unique for the STEP 7 user program.

Target 1500STM for Simulink® V2.0

46

Programming Manual, 01/2018, A5E38915112-AC

External mode C.3 The function block CallExtMode
The "<Simulink model>CallExtMode" FB has the following output parameters:  STATUS
The status parameter has the type <Simulink model>ExtModeStatus_UDT (User Definied Datatype) and contains the following parameters: ­ Status_TCON (Word) ­ Status_TDISCON (Word) ­ Status_TRCV (Word) ­ Status_TSEND (Word) ­ Status_ODK (Int) ­ Status_ExtMode (Word) You can find the status descriptions for "TCON", "TDISCON", "TRCV", "TSEND" in the STEP 7 help. You can find the status descriptions for ODK in the manual (https://support.industry.siemens.com/cs/ww/en/ps/13914/man).
Note Special features of the option "Allow OneStep and CallExtMode FBs to be called in different OBs" If the option is disabled, call the "CallExtMode" FB in the same block (OB, FB) as "OneStep". Otherwise, the model calculation is not performed synchronously with the data connection. If the option is enabled, you can call the FB "CallExtMode" in a different block, such as "OneStep". Note the following when option is enabled: · The block which contains the FB "OneStep" must have a higher priority than the block
with the FB "CallExtMode". · The possible available memory for running ODK applications is reduced. · Call the FB "CallExtMode" in a cyclic OB. · If the cyclic interruption time is less than 100 s, interruptions in the graphs (scope) may
occur during the simulation of the module in Simulink.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

47

External mode C.3 The function block CallExtMode

Functionality of the block
The FB has the following tasks:  Communication between PC and controller.  Data transfer between Simulink and controller.

Return value for Status_ExtMode 0x0000 0x0001

Description
Return value after successful execution or initial state.
Not enough memory for the external mode.
The allocated memory may be too small for a complex Simulink model.
Increase the value in the interface options under "Static memory buffer size". To apply the value, generate the ODK object again.
"Static memory Buffer size", however, reduces the space available for the application at the same time.

Target 1500STM for Simulink® V2.0

48

Programming Manual, 01/2018, A5E38915112-AC

External mode C.4 Establishing an external mode connection

C.4

Establishing an external mode connection

Procedure

1. Call the FB "<Simulink model>CallExtMode" in the same cyclic organization block (OB) as the FB "<Simulink model> OneStep" and enable the access (EnableExtMode).
Note Run the OneStep FB before the external mode connection is made. Once the OneStep FB is called in the cyclic OB, simulation steps are performed. If the external mode connection is not yet established, these steps are lost. To prevent this, set the flag for "Wait For Start" to "1" in the interface options under "MEXfile arguments".
2. Select "External" as the simulation mode.

Result

3. As the simulation stop time, select the value "inf" for endless simulation or an appropriate value for your model.
Note Checking the solver settings Check whether the setting "fixed-step-size (fundamental sample time)" under "Solver > Additional options" is set appropriately for your model. You can find more information on the parameters in the Matlab / Simulink documentation.
4. To establish the external mode connection, click on the " " icon.
You can monitor the model during runtime of the controller and change parameters of the model online.
Note When the simulation is completed or canceled, the CPU must be switched from "STOP" to "RUN" in order to start a new connection with subsequent simulation. Data from the previous simulation is overwritten.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

49

Parameter access from STEP 7

D

D.1

Introduction
Certain parameters can be read and changed during runtime after activation of the parameter access in STEP 7. These parameters can be defined by you or provided directly by Simulink.
It is possible to read and change the model at the same time using external mode in order to test and adapt your model during runtime.

D.2

Enabling parameter access

Procedure

1. Enable the "Parameter access with STEP 7" in the Target 1500S options (Page 27).
2. In order to generate the UDT "<Simulink model>Params" and FB "<Simulink model>ReadWriteParameters" in the SCL file, select "Tunable" under "Default parameter behavior" in the Optimization options.
Note
You can also configure other tags as tunable. You can add the tags defined in Matlab workspace in the "Model Parameter configuration" area. To do this, suspend one of the following memory classes: · SimulinkGlobal · ExportedGlobal · ImportedExtern
The memory class "ImportedExternPointer" is not supported.
3. Compile the model and transfer the corresponding files to STEP 7 or the web server as before.

Target 1500STM for Simulink® V2.0

50

Programming Manual, 01/2018, A5E38915112-AC

Parameter access from STEP 7 D.3 The ReadWriteParameters function block

D.3

The ReadWriteParameters function block
In order to read and change parameters, you need the UDT "<Simulink model>Params" and the FB "<Simulink model>ReadWriteParameters".

Structure of the function block (FB)

The "<Simulink model>ReadWriteParameters" FB has the following input parameters:
 write (Bool)
To write the parameters from the S7 program to the Simulink model, set this value to "true". The values passed with the "inOutParams" parameter are processed by the Simulink model.
To read the parameters from the Simulink model, set this value to "false". The current values of the Simulink model parameters are written to a tag interconnected to "inOutParams".
The "<Simulink model>ReadWriteParameters" FB has the following parameters:
 inOutParams
The inOutParams has the type <Simulink model>Params UDT and is used for reading or writing parameters in the Simulink model.
The "<Simulink model>ReadWriteParameters" FB has the following output parameters:
 STATUS
This return value is automatically generated by ODK.
The return value is "0" when the execution is successful.
You can find information on the other error codes in the ODK manual (https://support.industry.siemens.com/cs/ww/en/ps/13914/man)
The values of the FB are initialized with "0" by default. The values are updated when read access takes place for the first time.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

51

Parameter access from STEP 7 D.4 Establishing parameter access

D.4

Establishing parameter access

Procedure

1. Generate blocks from the SCL file in STEP 7. 2. Use the blocks generated in STEP 7.
­ To set the values in the same cycle, call the "ReadWriteParameters" FB before "OneStep".
­ To set the values in the following cycle, call the "ReadWriteParameters" FB after "OneStep".
Note
Call the FB "<Simulink model>ReadWriteParameters" in the same cyclic OB as the FB "<Simulink model>OneStep".
The values of the FB are initialized with "0" by default. The values are updated when read access takes place for the first time.
Note
Changed model parameters in the S7 program are kept in the work memory. If the associated ODK object is re-initialized, the parameters are reset to the values set in Simulink.

Target 1500STM for Simulink® V2.0

52

Programming Manual, 01/2018, A5E38915112-AC

Access to internal signals

E

You can create measurement points in the Simulink model by giving a name to the model blocks.

Figure E-1 Example model with integrated signals
If you enable the option "Enable STEP 7 access to internal model signals" in the Target 1500S options (Page 27), these internal signals are generated as output in the FB "OneStep" during the generation of the code.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

53

Access to internal signals
Special features for the FB "OneStep"
Target 1500S defines the internal signals during the generation of the code in an ODK_STRUCT with the name "InternalModelSignals". The FB "OneStep" needs a new output parameter "OUT" with the name "internalSignals" for this purpose.
Properties of the signal

Figure E-2 Dialog box Signal Properties
1. Under "Signal name:", enter the name of the signal. 2. In the "Code Generation" tab, select a supported memory class under "Storage class:".
The following memory classes are supported:

Memory class Auto SimulinkGlobal ExportedGlobal ImportedExtern ImportedExternPointer Custom storage class

Support Yes, if it leads to "SimulinkGlobal". Yes Yes Yes No No

Target 1500STM for Simulink® V2.0

54

Programming Manual, 01/2018, A5E38915112-AC

Using bus objects in STEP 7

F

F.1

Bus objects

You can define bus objects in the Simulink model. These objects may include simple data types or additional bus objects.

Converting bus objects
Bus objects are compiled with the Simulink build in PLC data types for the S7 program.
The following figure shows bus objects in Simulink on the right and the generated PLC data types in STEP 7 on the left.

Reference

The bus object can be used as input/output parameter for the Simulink model. You can find more information about using PLC data types in the STEP 7 help system.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

55

Alarms

G

G.1

Alarms during the build process

Meaning of the alarms
 Information messages (Page 56) This alarm provides information about the progress of the build process.
 Warnings (Page 58) This alarm does not abort the build process. You are made aware of special considerations and possible problems.
 Error messages (Page 60) This alarm indicates an error that results in termination of the build process.

G.2

Information messages

Info no. 1 2
3 4 5 6
7

Alarm "Build of <SimulinkModel> with Target 1500S <Version> is started" "Generating Target 1500S specific files: <Filename> is generated <Filename> is generated ..." "Generating Simulink Model sources" "Creating ODK 1500S project <SimulinkModel>_ODK under <OutputPath>" "ODK 1500S Project <SimulinkModel>_ODK is created successfully" "Building ODK 1500S project <SimulinkModel>_ODK"
"<SimulinkModel>_ODK project build is finished successfully"

Meaning The build process starts
Files created by Target 1500S.
The Simulink Coder generates source files. ODK creates an ODK project.
The ODK project has been successfully created.
An ODK project is generated. If you have selected the "Verbose" option in the Options menu of the code generator, the Diagnostic Viewer displays each output. The ODK project creation was completed successfully.

Target 1500STM for Simulink® V2.0

56

Programming Manual, 01/2018, A5E38915112-AC

Alarms G.2 Information messages

Info no. 8
9 10 101 102 103 104 105 106 107 108 109

Alarm

Meaning

"<SimulinkModel> build is finished successfully.

The Simulink build was completed successfully.

<SimulinkModel>_ODK.scl and <SimulinkModel>_ODK.so files are available in folder "outputs".

The files "<Simulink model>_ODK.scl" and "<Simulink model>_ODK.so" are available in the "outputs" folder.

Web server (CPU):

Web server of the controller:

1. <SimulinkModel>_ODK.so file has to be uploaded 1. Load the file "<Simulink model>_ODK.so" into the

using the web server into ODK1500S folder.

ODK 1500S folder via the web server.

If the option "Import the SCL file generated by the build to a CPU" is deactivated or is activated but the operation is not successful, sources can be updated manually on TIA Portal:

If you have disabled the option "Import the SCL file generated by the build to a CPU" or if the execution was unsuccessful, you can update the sources manually via the TIA Portal. Proceed as follows for this:

1. Navigate to the CPU / 'External Source' area and 1. Navigate to the CPU in the area "External source"

import the <SimulinkModel>_ODK.scl file.

and import the file "<Simulink model>_ODK.scl".

2. Select the imported file and generate blocks out of 2. Select the imported files and right-click to generate

this source (right-click or Tool menu)

blocks from the source.

3. Integrate the blocks into your CPU program in order to load and execute it.

3. Integrate the blocks into your program to load and execute them.

You can find details about deploying an ODK 1500S You can find additional information in the ODK manual

Object to CPU in ODK 1500S documentation

(https://support.industry.siemens.com/cs/ww/en/view/1

(https://support.industry.siemens.com/cs/ww/en/view/ 09752683).

109752683)."

"Removing <SimulinkModel>_ODK from ODK 1500S You have confirmed the "Existing ODK Projekt" dialog

default workspace"

with "Yes".

The existing project is overwritten.

"<SimulinkModel>_ODK is removed from ODK 1500S default workspace"

You have confirmed the "Existing ODK Projekt" dialog with "Yes".

The existing project was overwritten.

"Openness workflow started"

The openness process starts.

"Checking for compatible TIA Portal and Openness The compatibility of STEP 7 and Openness plugin is

installations"

tested.

"Opening / attaching to the TIA Portal project <TiaPortalProjectName>"

The STEP 7 instance used is attached to the STEP 7 project.

"CPU <CpuName>: Searching for it in the TIA Portal Search for CPU(s) in the STEP 7 project. project"

"CPU <CpuName>: <SimulinkModel>_ODK.scl is being imported"

The SCL file is imported.

"CPU <CpuName>: Blocks are being generated out Blocks are generated from the SCL file. of the imported SCL source"

"CPU <CpuName>: CPU is being compiled"

You have selected the option "Compile the CPU(s) after import".

The CPU is being compiled.

"The TIA Portal project <TiaPortalProjectName> is being compiled"

You have selected the option "Compile the CPU(s) after import".

All CPUs within the STEP 7 project are compiled.

"Openness workflow finished successfully"

The Openness process was completed successfully.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

57

Alarms G.3 Warnings

G.3

Warnings

Warning no. 1 2 3
4 5
701 702

Alarm

Meaning

"Using `External Mode' can cause serious damage to property or injury to persons if there are functional disturbances or program errors.

If "External Mode" is enabled in the settings under "Code Generation", this alarm appears at the end of the build process.

Make sure that no dangerous situations can arise before you conduct a test with the `External Mode' function."

"'Default parameter behavior' shall be set to `Tunable' when `Parameter access with STEP 7' is checked.
Otherwise no parameter access is possible."

You have activated the "Parameter access with STEP 7" option and selected "Inlined" under "Default parameter behavior".
Set the selection to "Tunable".

"The syntax of the current MEX-file arguments is not correct. It might happen, that the External Mode cannot be established. The correct syntax:
'<IPAddress>' <VerbosityLevel> <PortNumber> <WaitForStart>
· IPAdress and PortNumber is related with your PLC.
· Set VerbosityLevel to 1 for getting detailed in diagnostic viewer.
· If WaitForStart is set to 1, the application will wait for the Simulink start command
Please check the SIMATIC Target 1500S documentation for further information."

The structure of the "MEX-file arguments" is incorrect. External mode may not run properly. The correct structure is: '<IPAddress>' <VerbosityLevel> <PortNumber> <WaitForStart>
· The IP address and port number depends on your controller.
· Set the VerbosityLevel to 1 in order to obtain detailed information in the Diagnostic Viewer.
· If WaitforStart is set to 1, the application waits for the start command from Simulink.

Establishing external mode communication will not be possible since `UpdateModelReferenceTargets' is set to `Always' for the model <SimulinkModel>. Please change it to another option in order to be able to use external mode.

Communication for the external mode cannot be set up because the "UpdateModelReferenceTargets" setting for the <SimulinkModel> is set to "Always". Change this to another setting to use external mode.

Since multiple number of instances of <ChildModel> is allowed to be referenced, STEP 7 access to some internal signals of this model may not be possible because 'SimulinkGlobal' or 'Auto' storage class definition has been detected.

Since multiple instances of the child model may be referenced, access from STEP 7 to some internal signals of this model may not be possible because the memory class "SimulinkGlobal" or "Auto" was selected.

For <ChildModel>, set 'Total number of instances allowed per top model' to 'One' or set storage class for internal signals to 'ExportedGlobal' or 'ImportedExtern' in order to access all internal signals.

To access all internal signals, set "Total number of instances allowed per top model" to "One" for the child module or set the memory class for internal signals to "ExportedGlobal" or "ImportedExtern".

"OpennessHandler.dll does not exist in the bin folder. The "OpennessHandler.dll" file does not exist in the Please repair or uninstall/install Target 1500S setup." "<TARGET_ROOT_DIR>\bin\" directory.

Repair or uninstall/install the Target 1500S.

"No compatible TIA Portal installed. Please install a compatible TIA Portal version in order to use this feature. A list of compatible TIA Portal versions can be found in the Target 1500S documentation."

You have installed no compatible STEP 7.
You can find the compatible STEP 7 versions at "Importing SCL file automatically into STEP 7 after Simulink build (Page 34)".

Target 1500STM for Simulink® V2.0

58

Programming Manual, 01/2018, A5E38915112-AC

Alarms G.3 Warnings

Warning no. 703
704 710 711 712
713
720
721 730 731 732 733 734 735 736 737 799 1000

Alarm

Meaning

"No compatible TIA Portal Openness installation found. Please install a compatible TIA Portal Openness in order to use this feature. A list of compatible TIA Portal Openness versions can be found in the Target 1500S documentation."

You have installed no compatible Openness plugin.
You can find the compatible Openness plugin at "Importing SCL file automatically into STEP 7 after Simulink build (Page 34)".

"Error while loading the Openness library"

An error has occurred while loading the Openness.dll.

"TIA Portal project path is empty. Please provide path The input box "TIA Portal project path" is empty. to an existing TIA Portal project with file extension." Specify the path with file extension.

"CPU name is empty. Please provide the name of the The input box "CPU name(s)" is empty.

CPU(s) within the TIA Portal project."

Specify the names of the CPU(s) in the project.

"CPU names are not in correct format. Please sepa- The CPU names entered in the entry field "CPU

rate multiple CPU names with comma."

name(s)" are not correct.

Separate multiple CPU names using commas.

"Provided path to TIA Portal project does not exist or is an invalid project path. Please provide path to a valid TIA Portal project with file extension."

The path entered in the entry field "TIA Portal project path" does not exist or is incorrect.
Specify the path with file extension.

"No CPU could be found in the TIA Portal project with The CPU name entered in the entry field "CPU

the provided CPU name. Please provide the name of name(s)" cannot be found.

the CPU within the TIA Portal project. If multiple CPUs Specify the names of the CPU(s) in the project.

shall be used, separate them with comma."

Separate multiple CPU names using commas.

"Generated SCL file does not exist in the ODK project The generated SCL file does not exist.

output directory. Please rebuild."

Restart the build process.

"Error while attaching to the TIA Portal instance"

An error occurred while attaching to the STEP 7 instance.

"Error while initiating the TIA Portal instance"

An error occurred while starting a new STEP 7 instance.

"Error while opening the TIA Portal project"

An error occurred while opening the STEP 7 project.

"Previously existing SCL source could not be deleted" An already existing SCL file with the same name cannot be deleted.

"The SCL file could not be imported as an external source"

The SCL file cannot be imported.

"Error while generating blocks from the imported SCL An error occurred while generating the blocks from

source"

the SCL file.

"Error while compiling the CPU"

An error occurred while compiling the CPU.

"Error while compiling the project"

An error occurred while compiling the project.

"Unknown error"

An error has occurred.

Building model with Target 1500S trial mode: <RemainingDaysInTrialPeriod> day(s) left

The model was created with the Target 1500S test version.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

59

Alarms G.4 Error messages

G.4

Error messages

Error no. 1 2 4 5
7
8 10 11
12

Alarm

Meaning

Depending on the error, the corresponding error mes- Appears in case of Target 1500S and Simulink Coder

sage is displayed.

error.

"Eclipse workspace is locked.
Please close any Eclipse instance(s) that might have locked ODK 1500S default workspace."

Close all affected Eclipse instances with a standard ODK Workspace, which is also used by Target 1500S.

Depending on the error, the corresponding error mes- Appears when an error occurs during the creation of

sage is displayed.

the ODK project.

"ODK 1500S Code Generator gives the following error If the code generator of ODK detects an error during

for <SimulinkModel>_ODK project:

the build process, this alarm appears.

<Fehlertext des ODK Code Generators>
Please refer to ODK 1500S documentation (https://support.industry.siemens.com/cs/ww/en/view/ 109752683) or contact customer support!"

You can find additional information in the ODK manual (https://support.industry.siemens.com/cs/ww/en/view/ 109752683) or by contacting Customer Support.

For Matlab versions older than R2016b:
"Only `SingleTasking' is allowed as tasking mode for Target 1500S <Version>. Please choose `SingleTasking' in the solver options menu in order to proceed with build."

Disable the option "Treat each discrete rate as a separate task" in the properties of the code generator under "Solver".

For Matlab version R2016b or higher:

"Only `SingleTasking' is allowed as tasking mode for Target 1500S <Version>. Please uncheck the option 'Treat each discrete rate as a separate task' under the solver options in order to proceed with build."

"'ImportedExternPointer' is not allowed as Storage Class for tunable parameters for Target 1500S <Version>. Please change Storage Class of <ParameterName> to other than `ImportedExternPointer' in order to proceed with build."

Select a different memory class than "ImportedExternPointer".

"No compatible ODK 1500S version is installed.

No compatible ODK version available.

Please first install a compatible version and restart MATLAB in order to proceed with build.

Install a compatible ODK 1500S version (Page 16) and restart Matlab.

A list of compatible ODK 1500S versions can be found in the Target 1500S documentation."

"The selected ODK 1500S version doesn't work

The selected ODK version is not working properly.

properly. The reason could be installation of the se- The reason can be the installation of the selected

lected ODK 1500S version failed due to some reason. ODK version failed.

ODK 1500S <OdkVersion> documentation describes, how to check the functionality of the ODK 1500S installation."

You can find information on checking the functionality in the ODK manual (https://support.industry.siemens.com/cs/ww/en/view/ 109752683).

"Size of input and output parameters of <SimulinkModel> reaches to the limits of ODK 1500S.
Please reconsider your model and try to reduce the size of your parameters in order to proceed with build."

The maximum ODK data volume is exceeded. Check the model and reduce the parameter size.

Target 1500STM for Simulink® V2.0

60

Programming Manual, 01/2018, A5E38915112-AC

Alarms G.4 Error messages

Error no. 13 15
16
17
18 20 21

Alarm

Meaning

"A parameter which exceeds limits of ODK 1500S maximum array size is defined in <SimulinkModel>.
Please reconsider your model and try to reduce the size of array which exceeds ODK 1500S limits in order to proceed with build."

The maximum array size is exceeded. Check the model and reduce the array size.

"<SimulinkModel> causes to exceed limits of ODK 1500S naming rules for generated functions or structs.
Please perform one of the following actions in order to proceed with build:

Prefix and function name are too long.
Reduce the value of "maximum identifier length" in the properties of the code generator under "Symbols" or shorten the name of the Simulink model.

1- Set `Maximum identifier length' in symbols options to a smaller value.

2- Set <SimulinkModel> to a shorter name."

"<Variable> name exceeds the limits of ODK 1500S maximum variable name size.
Please perform one of the following actions in order to proceed with build:

The tag name is too long.
Decrease the value of "maximum identifier length" in the properties of the code generator under "Symbols" or shorten the name of the tag.

1- Set `Maximum identifier length' in symbols option to a smaller value.

2- Set <Variable> to a shorter name."

"Because of the length of <SimulinkModel> name and path of your model, some generated files reach to the path limits of Windows.
Please perform one of the following actions in order to proceed with build:

The maximum Windows path length has been exceeded.
Shorten the name of the Simulink model or move your Simulink model to a shorter path.

1- Set your <SimulinkModel> name to a shorter string.

2- Move your <SimulinkModel> to a shorter path."

"An ODK 1500S project with same name as <SimulinkModel>_ODK exists in ODK 1500S default workspace. In order to proceed either change name of your <SimulinkModel> or remove/rename the project from workspace manually"

The ODK workspace already contains an ODK project with the same name.
Change the name of the Simulink model or delete/rename the existing project manually.

"An error occurred during removing <SimulinkModel>_ODK project from default workspace of ODK 1500S.
Please either change name of your <SimulinkModel> or remove/rename the project from workspace manually"

Removal of the ODK project from the workspace was unsuccessful.
Change the name of the Simulink model or delete/rename the project manually from the workspace.

"Build of <SimulinkModel>_ODK is failed due to the following error(s):

Generation of the ODK project was unsuccessful due to a compiler error.

<Error text coming from gcc compiler with the complete line and multiple errors>
Please enable `Verbose' mode in Code Generation Options to see the stack trace and contact customer support!"

Enable "Verbose" mode in the properties of the code generator to see the stack trace and contact Customer Support.

Target 1500STM for Simulink® V2.0

Programming Manual, 01/2018, A5E38915112-AC

61

Alarms G.4 Error messages

Error no. 22
23 24
1000 1001

Alarm
"'Device vendor' can be only selected as `Intel' and `Device type' can be only selected as `x86-32 (Windows32)' in hardware implementation options.
Please select the proper values in order to proceed with build."
"The maximum data size for external mode is 64k. The current used data (<sizeOfData>) exceeds this limit. Please reconsider your model and try to reduce the size of the parameters."
"An incompatible version of Java Runtime Environment (JRE) could be installed. Please prove, if the installed Java Runtime Environment (JRE) and its architecture (x86, x64) is compatible with the selected ODK 1500S Version.
ODK 1500S <ODK Version> documentation describes, how to check the functionality of the ODK 1500S installation."
License key missing
Retrieving license key not possible

Meaning Select "x86-32 (Windows32)" in the properties under "Device type".
The maximum data size for external mode is 64k. The data currently used exceeds this limit. Revise your model and reduce the size of the parameters.
No compatible JRE is installed on the PC. You can find information on checking the functionality in the ODK manual (https://support.industry.siemens.com/cs/ww/en/view/ 109752683).
The Target 1500S license was not transferred and the test version has expired. The ALM is not installed.

Target 1500STM for Simulink® V2.0

62

Programming Manual, 01/2018, A5E38915112-AC

Index
A
Access to internal signals, 54 Alarms, 56
Error messages, 60 Information messages, 56 Warnings, 58
B
Bus objects, 55
C
Certificate of license, 19
D
Diagnostic Viewer, 36
E
External mode, 43 CallExtMode function block, 46 Establish connection, 49 External mode parameters, 44
I
Importing an SCL file, 34 Installation
Installation procedure, 17 Licensing, 19 Repairing, 22 System requirements, 16 Uninstallation procedure, 21 Internal signals, 54
L
License key, 19
Target 1500STM for Simulink® V2.0 Programming Manual, 01/2018, A5E38915112-AC

O
ODK application Loading and running an ODK application, 37
P
Parameter Target 1500S Advanced options, 31 Target 1500S openness options, 29
Parameter access, 50 Enable parameter access, 50, 52 ReadWriteParameters function block, 51
Parameters External mode parameters, 44 Simulink parameters, 25 Target 1500S options, 27
R
Referenced models, 41
S
Simulink build, 35
63

SIMATIC STEP 7 (TIA Portal) Options Open Development Kit 1500S V2.5
Programming and Operating Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_nt_at_io_n _gu_id_e_______1_

_Pr_od_u_ct_ov_e_rv_ie_w _________2_

_In_sta_ll_at_ion_____________3_

_ _ _ _ _ _ _ _ _ _ _ Developing a CPU function

library for the Windows

4

environment

_ _ _ _ _ _ _ _ _ _ _ Developing a CPU function

library for the realtime

5

environment

_Drue_nvt_iemlo_ep_amp_epn_litc_oaft_ioa_nC_/C_++______6_

_Us_in_g_ex_a_m_pl_e p_ro_je_c_ts______7_

_Ge_n_er_al_c_on_di_tio_n_s _______A__

_ _ _ _ _ _ _ _ _ _ _ Syntax Interface file

<project>.odk for CPU

B

function libraries

_Cfoo_r dC_eP_gUe_nfu_enr_catti_oorn_ml_ibers_asr_aieg_ses____C__

_Hfue_nlcp_teio_rnf_ulinb_crat_iori_ness_fo_r_C_PU_____D__

_Ilinb_sratr_ruiec_sti_on_s_fo_r C_P_U_fu_n_ct_ion___E__

12/2017
A5E35253941-AD

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35253941-AD  12/2017 Subject to change

Copyright © Siemens AG 2014 - 2018. All rights reserved

Preface
Purpose of the documentation
This documentation describes the specific characteristics of the Open Development Kit (ODK) V2.5.
Definitions and naming conventions
The following terms are used in this documentation:  CPU: Designates the products named under "Scope of documentation".  ODK: Open Development Kit  MFP: Multifunctional platform  Windows: Designates the Microsoft operating systems supported by ODK.  STEP 7: For the designation of the configuring and programming software, we use "STEP
7" as a synonym for the version "STEP 7 (TIA Portal) V13 SP1 and higher".  DLL: Dynamic Link Library  SO: Shared Object  Visual Studio: Microsoft Visual Studio  TCF: Target Communication Framework
Basic knowledge required
This documentation is intended for engineers, programmers, and maintenance personnel with general knowledge of automation systems and programmable logic controllers. To understand this documentation, you need to have general knowledge of automation engineering. You also need basic knowledge of the following topics:  SIMATIC Industrial Automation System  PC-based automation  Using STEP 7  Use of Microsoft Windows operating systems  Programming with C/C++, C#, Visual Basic

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

3

Preface

Validity of the documentation
This documentation applies to use of ODK with the following products:  CPU 1505SP (T)(F)  CPU 1507S (F)  CPU 1518-4 PN/DP MFP (F)

Notes

Please also observe notes labeled as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).

Open Development Kit 1500S V2.5

4

Programming and Operating Manual, 12/2017, A5E35253941-AD

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Information about third-party software updates
This product contains third-party software. Siemens accepts liability with respect to updates/patches for the third-party software only when these are distributed by Siemens in the context of a Software Update Service contract or officially approved by Siemens. Otherwise, updates/patches are installed at the user's own risk. You can find more information in our Software Update Service (http://w3.siemens.com/mcms/automationsoftware/en/software-update-service/Pages/Default.aspx).

Notes on protecting administrator accounts
A user with administrator rights has extensive access and manipulation possibilities.
Therefore, make sure that the administrator account is adequately protected to prevent unauthorized changes. To do this, set secure passwords and use a standard user account for regular operation. Other measures, such as the use of security policies, should be applied as required.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

5

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 9

2 Product overview .................................................................................................................................. 10

2.1

Introduction to ODK 1500S .................................................................................................... 10

2.2

Development environments ................................................................................................... 15

2.3

Basic procedure ..................................................................................................................... 16

3 Installation ............................................................................................................................................ 18

3.1

System Requirements............................................................................................................ 18

3.2

Installing ODK ........................................................................................................................ 20

3.3

Licensing ODK 1500S............................................................................................................ 21

3.4

Subsequently integrating project template for Windows CPU function libraries in Visual

Studio ..................................................................................................................................... 24

3.5

Uninstalling ODK.................................................................................................................... 24

4 Developing a CPU function library for the Windows environment........................................................... 25

4.1 4.1.1 4.1.2 4.1.2.1 4.1.2.2 4.1.2.3 4.1.3 4.1.4 4.1.5 4.1.6 4.1.6.1 4.1.6.2 4.1.6.3 4.1.6.4 4.1.6.5 4.1.6.6 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3

Creating a CPU function library ............................................................................................. 25 Requirements......................................................................................................................... 25 Creating a project................................................................................................................... 25 Solution Explorer structure: C++ project ................................................................................ 26 Solution Explorer structure: C# project .................................................................................. 29 Solution Explorer structure: VB Project ................................................................................. 30 Generating a CPU function library ......................................................................................... 31 Defining the runtime properties of a CPU function library ..................................................... 32 Environment for loading or executing the CPU function library ............................................. 33 Defining functions and structures of a CPU function library .................................................. 34 Using ODK_VARIANT as parameter ..................................................................................... 38 Handling strings ..................................................................................................................... 39 Definition of the <Project>.odk file ......................................................................................... 39 Modifying the <Project>.odk file ............................................................................................. 41 Comments .............................................................................................................................. 43 Comments in Visual Basic ..................................................................................................... 45 Implementing functions .......................................................................................................... 46 General notes......................................................................................................................... 46 Callback functions .................................................................................................................. 46 Implementing custom functions ............................................................................................. 48

4.2

Transferring a CPU function library to the target system....................................................... 49

4.3

Importing and generating an SCL file in STEP 7 ................................................................... 50

Open Development Kit 1500S V2.5

6

Programming and Operating Manual, 12/2017, A5E35253941-AD

Table of contents

4.4 4.4.1 4.4.2 4.4.3

Executing a function................................................................................................................51 Loading functions....................................................................................................................51 Calling functions......................................................................................................................56 Unloading functions ................................................................................................................58

4.5 4.5.1

Remote debugging..................................................................................................................61 Performing remote debugging ................................................................................................62

5 Developing a CPU function library for the realtime environment............................................................. 65

5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.6.1 5.1.6.2 5.1.6.3 5.1.6.4 5.1.6.5 5.1.6.6 5.1.7 5.1.7.1 5.1.7.2 5.1.7.3 5.1.7.4 5.1.7.5

Creating a CPU function library ..............................................................................................65 Requirements .......................................................................................................................... 65 Creating a project....................................................................................................................65 Generating a CPU function library ..........................................................................................68 Defining the runtime properties of a CPU function library ......................................................69 Environment for loading or running the CPU function library .................................................70 Defining functions and structures of a CPU function library ...................................................72 Defining functions a CPU function library ...............................................................................72 Use of ODK_CLASSIC_DB as parameter ..............................................................................76 Handling strings ......................................................................................................................77 Definition of the <Project>.odk file ..........................................................................................78 Modifying the <Project>.odk file..............................................................................................80 Comments ............................................................................................................................... 80 Implementing functions ...........................................................................................................82 General notes .........................................................................................................................82 Callback functions...................................................................................................................82 Implementing custom functions ..............................................................................................84 Dynamic memory management..............................................................................................85 Debug (Test) ...........................................................................................................................87

5.2

Transferring a CPU function library to the target system........................................................90

5.3

Importing and generating an SCL file in STEP 7....................................................................92

5.4 5.4.1 5.4.2 5.4.3 5.4.4

Executing a function................................................................................................................93 Loading functions....................................................................................................................93 Calling functions......................................................................................................................96 Unloading functions ................................................................................................................99 Reading the trace buffer .......................................................................................................101

5.5 5.5.1 5.5.2

Post Mortem analysis............................................................................................................103 Introduction ...........................................................................................................................103 Execute post mortem analysis..............................................................................................104

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

7

Table of contents

6 Development of a C/C++ runtime application........................................................................................108

6.1

Install additional Eclipse plugins .......................................................................................... 108

6.2 6.2.1 6.2.2 6.2.3 6.2.4

Create C/C++ application..................................................................................................... 109 Requirements....................................................................................................................... 109 Creating a C/C++ Runtime Application project .................................................................... 110 Editing C/C++ code .............................................................................................................. 112 Generate C/C++ runtime application ................................................................................... 113

6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5

Load C/C++ runtime application in the target system.......................................................... 114 Configuring PuTTY .............................................................................................................. 114 Commissioning C/C++ Runtime........................................................................................... 116 Set up new connection to the target system in Eclipse ....................................................... 117 Load and execute C/C++ runtime application in the target system via Eclipse................... 119 Load and debug C/C++ runtime application in the target system via Eclipse ..................... 119

6.4 6.4.1 6.4.2

Execute C/C++ runtime application ..................................................................................... 121 Starting the application automatically .................................................................................. 121 Start application via secure shell ......................................................................................... 121

7 Using example projects........................................................................................................................123

A General conditions ...............................................................................................................................124

A.1

Number of loadable CPU function libraries.......................................................................... 124

A.2

Compatibility......................................................................................................................... 125

B Syntax Interface file <project>.odk for CPU function libraries................................................................126

B.1

Data types ............................................................................................................................ 126

B.2

Parameters........................................................................................................................... 129

C Code generator messages for CPU function libraries ...........................................................................131

C.1

Error messages of the code generator ................................................................................ 131

C.2

Warnings of the code generator........................................................................................... 134

D Helper functions for CPU function libraries ...........................................................................................135

D.1

C++ helper functions ............................................................................................................ 135

D.2

C#/VB helper functions ........................................................................................................ 139

E Instructions for CPU function libraries...................................................................................................142

E.1

"Load" instruction ................................................................................................................. 142

E.2

"Unload" instruction.............................................................................................................. 142

E.3

"GetTrace" instruction .......................................................................................................... 142

Index ...................................................................................................................................................143

Open Development Kit 1500S V2.5

8

Programming and Operating Manual, 12/2017, A5E35253941-AD

Documentation guide

1

Introduction

You can find all information required to use the software in this documentation for the Open Development Kit (ODK).

Overview of the documentation for the CPU
The following table lists additional documents which supplement this description and are available on the Internet.

Table 1- 1 Documentation for the CPU

Topic Description of CPU 1505SP and CPU 1507S
Description of the CPU 1518-4 PN/DP MFP Web server
Automation License Manager

Documentation Operating manual CPU 1505SP and CPU 1507S (http://support.automation.siemens.com/WW/vi ew/en/90466248/133300)
CPU 1518-4 PN/DP MFP (http://support.automation.siemens.com/WW/vi ew/en/109749061) manual
Function manual Web Server (http://support.automation.siemens.com/WW/vi ew/en/59193560)
Automation License Manager (https://support.industry.siemens.com/cs/docu ment/102770153/automation-licensemanager?dti=0&lc=en-WW) manual

Most important contents This documentation describes the complete functionality of the CPU 1505SP and CPU 1507S.
This documentation describes the full functionality of the CPU 1518-4 PN/DP MFP. Basics Function Operation Diagnostics via web server This documentation describes the full functionality of the Automation License Manager.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

9

Product overview

2

2.1

Introduction to ODK 1500S

Overview

ODK is a development kit that allows you to program custom functions and generate files that STEP 7 can call directly. ODK provides an interface for:  Windows environment
­ Execution on your Windows PC ­ Use of resources of your Windows PC ­ Use of operating system functions and system resources with access to external
hardware and software components  Realtime environment
­ Execution on your CPU ­ Synchronous function call (algorithmic, controllers) Calling multiple applications under Windows or in the realtime environment is possible. The CPU function libraries must be used in the STEP 7 program. C/C++ runtime applications running in SIMATIC S7-1500 MFP C/C++ Runtime can be used independently of the STEP 7 program.

Structure and design of a CPU function library
ODK supports the interface for calling custom high-level language programs from the controller program of the CPU.
ODK supports the following templates:
 Templates in different programming languages for Microsoft Visual Studio. This allows you to generate a DLL file. The C++, C# and Visual Basic programming languages are supported.
 A template for programming in Eclipse. This allows you to generate an SO file. ODK also supplies a class library for Eclipse. The C++ programming language is supported.
You can create a CPU function library for both the Windows and the real-time environment. The programming languages mentioned are available to you for this purpose.

Open Development Kit 1500S V2.5

10

Programming and Operating Manual, 12/2017, A5E35253941-AD

Product overview 2.1 Introduction to ODK 1500S
The ODK program can be executed in the following ways:
 Synchronous, i.e. executed as part of the CPU cycle (executed in the realtime environment).
 Asynchronous, i.e. started by the CPU program and ended in the background (executed in the Windows environment).
CPU function libraries can be run both under Windows (DLL) and in the realtime core of the CPU (SO). You call the functions of the DLL or SO file using instructions in the user program.
The CPU can perform functions in libraries that can be loaded dynamically. There are several possible functions in a CPU function library. There are specific function blocks for a CPU function library:
 Loading and unloading of the CPU function library.
 In each case a specific function block for calling a function.
The following illustration provides a schematic overview of how CPU function libraries run on a PC. This graphic applies to the S7-1500 Software Controller.

Figure 2-1 Running a CPU function library on a PC

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

11

Product overview 2.1 Introduction to ODK 1500S
The following illustration provides a schematic overview of how CPU function libraries run on a hardware CPU.
Figure 2-2 Running a CPU function library on a hardware CPU

Open Development Kit 1500S V2.5

12

Programming and Operating Manual, 12/2017, A5E35253941-AD

Structure and design of a C/C++ runtime application

Product overview 2.1 Introduction to ODK 1500S

Figure 2-3 Overview of the performance segment
You can use C/C++ runtime applications to implement parallel processes to the STEP 7 user program, for example, for pre-processing or transmitting data via Industrial Ethernet. A CPU can perform several tasks at the same time, the complexity of functions is reduced and the time required for implementation is reduced.
You can reuse existing C/C++ algorithms. In order to continue using existing technological know-how, you can integrate the existing C/C++ code via the Open Development Kit as C/C++ runtime applications in the SIMATIC S7-1500 MFP C/C++ Runtime.
Once you integrate the C/C++ sources, you can execute them on the CPU.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

13

Product overview 2.1 Introduction to ODK 1500S
The following options are available for communication between CPU Runtime and C/C++ Runtime:  On Open User Communication with the "TSTEND" and "TRCV" function blocks.  About the Communication protocol OPC UA.
Figure 2-4 Communication between CPU Runtime and C/C++ Runtime

Open Development Kit 1500S V2.5

14

Programming and Operating Manual, 12/2017, A5E35253941-AD

Product overview 2.2 Development environments

2.2

Development environments

The following development environments for creating an ODK project are available for selection.

 Microsoft Visual Studio for CPU function libraries for the Windows environment (DLL file).

 Eclipse CPU function libraries for the realtime environment (SO file) and C/C++ runtime applications.

Microsoft Visual Studio as a development environment
Use Microsoft Visual Studio. To help you develop a CPU function library, a template for a Microsoft Visual Studio project is included in the installation of ODK 1500S. The ODK template can be found under the entry of the corresponding programming language when a new project is created.

Eclipse as a development environment
Use Eclipse. To help you develop a C/C++ runtime application, a template for an Eclipse project is included in the installation of ODK 1500S. The template can be found in the folder "ODK 1500S Templates".

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

15

Product overview 2.3 Basic procedure

2.3

Basic procedure

The following sections describe the development tasks and procedures for the development and execution of a CPU function library/C/C++ runtime application:

 Developing a CPU function library for the Windows environment (Page 25)

 Developing a CPU function library for the realtime environment (Page 65)

 Development of a C/C++ runtime application (Page 108)

Figure 2-5 Overview of the development steps

Open Development Kit 1500S V2.5

16

Programming and Operating Manual, 12/2017, A5E35253941-AD

Product overview 2.3 Basic procedure

Overview of the development steps
To develop and execute a C/C++ runtime application/CPU function library, follow these steps:
1. Implement your function.
­ Implement your function for CPU function libraries in Visual Studio (DLL file) or Eclipse (SO file).
­ Implement your function for C/C++ runtime application in Eclipse.
2. Create the C/C++ runtime application, DLL or SO file and the SCL file.
3. Import the SCL file into STEP 7.
4. Write your user application in STEP 7.
5. Load the user program in the CPU and the C/C++ runtime application or DLL or SO file into the target system.

Result

Your C/C++ runtime application/CPU function library is loaded in the target system.
The CPU function library is loaded and executed by the user program in STEP 7.
The C/C++ runtime application is started via an entry in the "autostart.sh" file in the home directory of C/C++ Runtime.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

17

Installation

3

3.1

System Requirements

Requirements

Your PC must meet the following system requirements in order to use the ODK:

Category Operating system
Processor and memory
Mass storage
Operator interface SIMATIC software Supported PLCs Additional software

Requirements · Microsoft Windows 7 SP1, 64-bit · Microsoft Windows 8.1, 64-bit · Microsoft Windows 10, 64-bit
PC system: · At least systems with Intel Core i5 processor · 1.2 GHz or higher · At least 4 GB of RAM
Depending on the already installed components, you need up to 3 GB of free space on the hard disk C:\. The exact amount of space required is displayed during the installation. Note: The setup files are deleted when the installation is complete. Color monitor, keyboard and mouse or another pointing device (optional) supported by Microsoft Windows · SIMATIC STEP 7 Professional (TIA Portal) V15 or higher
All ODK or MFP supported SIMATIC CPUs (see next table) Not included in the product package: · Java Runtime 32-bit as of V1.7 (for Eclipse) · Microsoft Visual Studio C++ 2013 · Microsoft Visual Studio 2015 · Microsoft Visual Studio 2017 · Microsoft Visual Studio Community 2017 · Eclipse plugins (for MFP use) · SSH Client, for example PuTTY (for MFP use) · Microsoft Development Tool: Download Center (http://www.microsoft.com/en-
us/download/developer-tools.aspx)

Open Development Kit 1500S V2.5

18

Programming and Operating Manual, 12/2017, A5E35253941-AD

Installation 3.1 System Requirements

ODK 1500S V2.5 is compatible with the following devices (support for loadable function libraries depends on the device):

CPU 1505SP (T)(F) V2.5 CPU 1507S (F) V2.5 CPU 1518-4 PN/DP MFP (F)

CPU function library DLL (Windows) Yes Yes No

CPU function library SO (Real-time) Yes Yes Yes

C/C++ runtime application
No No Yes

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

19

Installation 3.2 Installing ODK

3.2

Installing ODK

To install the ODK, insert the Installation DVD. Follow the instructions of the setup program.

If the setup program does not start automatically, open the "Start.exe" file on the Installation DVD manually with a double-click.

Requirements

You need administrator rights for this procedure.
It is possible to operate different ODK versions on one PC at the same time. If the ODK version to be installed is already installed on the PC, you must first uninstall it or perform a repair installation.

Note Close applications before a repair installation/uninstall
Close all applications (especially ODK-related applications), before performing the repair installation/uninstall.

Procedure

If you want to use the Microsoft Visual Studio development environment, we recommend that you install this before ODK. To install ODK, follow these steps: 1. Start the "Start.exe" file from the Installation DVD manually with a double-click. 2. Select the language for performing the installation. 3. Confirm with "Next". 4. Click "Next" to confirm the list of components that are to be installed.
The check mark for Automation License Manager (ALM) cannot be removed. 5. Follow the instructions of the installation wizard. 6. Confirm the installation dialog with the "Install" button. 7. Choose whether you want to carry out the licensing (Page 21) during the installation or at
a later time.

Open Development Kit 1500S V2.5

20

Programming and Operating Manual, 12/2017, A5E35253941-AD

Result

Installation 3.3 Licensing ODK 1500S
The installation is complete. All product languages are installed by default during the installation process. The installation creates a shortcut in the Start menu of Windows. The setup program installs the following components:  "Eclipse" development environment for the development of a CPU function library for the
realtime environment or a C/C++ runtime application  Project templates for Eclipse
­ for the CPU function library for the realtime environment ­ for the C/C++ runtime application  Project templates for Visual Studio for Windows CPU function libraries  Tool to integrate Visual Studio templates  Installation script for MinGW32  Code generator  Online help  HelpStarter tool  Automation License Manager, if this is out of date or was not yet installed  Certificate of license (Certificate of License)

3.3

Licensing ODK 1500S

To create CPU function libraries, the software requires a product-specific license key that you install with the Automation License Manager. Each SIMATIC software product for automation that is subject to license (e.g., STEP 7) has its own license key. You must install the license key for each product.

Working with the Automation License Manager
The Automation License Manager is a product of Siemens AG and is used for managing license keys. The Automation License Manager is supplied on the installation data medium of this product by default and is transferred automatically during the installation process.
Software products that require license keys for operation register the requirement for license keys automatically in the Automation License Manager. If the Automation License Manager finds a valid license key for this software, the software can be used according to the conditions of use associated with this license key.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

21

Installation 3.3 Licensing ODK 1500S
Certificate of license
A Certificate of License is included in the scope of delivery. It contains your unique license number. The license certificate serves as proof that you have a valid license key. Store this certificate in a safe place.
Note Obtaining a replacement license key You must have a valid certificate of license to get a replacement license key.

Recovering the license key in case of defective mass storage
If a error has occurred on the mass storage or USB flash drive containing your license key file, contact your Siemens representative (http://www.siemens.com/automation/service&support). Make sure you have your certificate of license available for this.

License key

The license key for ODK 1500S is located on a USB flash drive that is included in the scope of delivery.
If the USB flash drive containing the license key is lost or damaged, you can contact Support (http://www.siemens.com/automation/service&support) to obtain a new license key. You need the certificate of license to receive a replacement license key from Siemens.
Handling of license key for download version of ODK 1500S
The download of ODK 1500S allows you to access ordered license keys.
For access, you need:
 A personalized login that you can use to fetch all license keys assigned to "your company".
 An anonymous login that you can use to fetch an individual license key, and the corresponding license certificate. This document contains all data required for the anonymous download.
Additional information on the license key and the download is available in the Automation License Manager manual (https://support.industry.siemens.com/cs/document/102770153/automation-licensemanager?dti=0&lc=en-WW).

Open Development Kit 1500S V2.5

22

Programming and Operating Manual, 12/2017, A5E35253941-AD

Installation 3.4 Subsequently integrating project template for Windows CPU function libraries in Visual Studio
Transferring the license key
The license key can be transferred during the installation or afterwards. If the USB flash drive with the relevant license key is inserted in the USB port of the PC at the start of installation, the license key will be transferred automatically during the installation. If the USB flash drive is not inserted at the start of installation, you have three options for installing the license key subsequently:  To transfer the license key manually from a network computer or other storage medium,
select the "Manual license transfer" button.  Insert the USB flash drive with license key, and select the "Retry license transfer" button.
The Automation License Manager opens in order to transfer the license key.  If you do not want to install a license key, select the "Skip license transfer" button.
Note Working without license key For legal reasons, a valid license key is required for this product. If no valid license key is present on your PC, you cannot generate any projects. An error message will inform you at regular intervals that no valid license key is present.
Manually transferring the license key subsequently
A message is displayed if you generate a project for a CPU function library without transferred license key. To manually transfer the license key for ODK subsequently, follow these steps: 1. Start the installation of ODK 1500S with administrator rights. 2. In the "License Transfer" section, select the "Manual license transfer" button.
A dialog box for synchronization of the license opens. 3. Select the destination and the source of the license key. 4. To transfer the license key, click the "Synchronize" button.
The license key is transferred.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

23

Installation 3.4 Subsequently integrating project template for Windows CPU function libraries in Visual Studio

3.4
Result

Subsequently integrating project template for Windows CPU function libraries in Visual Studio
When Visual Studio is already installed, the project template for Windows CPU function libraries is automatically installed during the ODK installation. If Visual Studio is installed later, you have the following options to integrate the project template for Windows CPU function libraries:  Perform a repair installation of ODK.  Run the integration manually. Call your ODK installation file
"ODK_VSTemplate_Integration.exe" in the "bin" folder.
The project templates for Windows CPU function libraries is installed for Visual Studio. You can find this under the corresponding programming language.

3.5

Uninstalling ODK

Procedure

To remove ODK from your PC, follow these steps: 1. Close all running programs, especially ODK-related applications. 2. Select the menu "Control Panel > Programs and Features", select the entry "SIMATIC
ODK 1500S" and click "Uninstall". 3. Select the "Uninstall" command in the shortcut menu.
A dialog box for uninstalling appears. 4. Follow the steps for uninstalling.

Result

ODK is removed.

Open Development Kit 1500S V2.5

24

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment

4

4.1

Creating a CPU function library

4.1.1

Requirements
The Microsoft Visual Studio development environment is not included in the scope of delivery of ODK.
You can find the Download Center for Microsoft development tools in the Internet (http://www.microsoft.com/en-us/download/developer-tools.aspx).

4.1.2

Creating a project
To help you develop a CPU function library, a project template for CPU function libraries for a project in Visual Studio is included in the installation of ODK 1500S. The template supports 32-bit and 64-bit applications.

Procedure

To create a project in Microsoft Visual Studio using the project template, follow these steps: 1. Open Microsoft Visual Studio as a development environment. 2. In the "File > New" menu, select the command "Project..."
The "New Project" dialog opens.

Figure 4-1 Creating a new project in Visual Studio
3. Select your preferred programming language and the corresponding project template (C++, C# or VB).
4. Enter a project name. 5. Click "OK" to confirm.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

25

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Result

The CPU function library is created using the project template and sets the following project settings:  Project settings for generating the DLL file  Automates the generation of the DLL and SCL file The project template set ups various structures depending on the programming language:  C++ project (Page 26)  C# project (Page 29)  VB Project (Page 30)

4.1.2.1

Solution Explorer structure: C++ project

Folder / file <project> Definition File
Generated Files
Header Files ODK Helpers
Resource Files Source Files STEP7

<project>.odk <project>.scl.additional
ODK_Types.h ODK_Functions.h ODK_Execution.cpp
ODK_CpuReadData.h ODK_CpuReadData.cpp ODK_CpuReadWriteData.h ODK_CpuReadWriteData.cpp ODK_StringHelper.h ODK_StringHelper.cpp
<project>.rc
<project>.cpp dllmain.cpp
<project>.scl

Description
ODK interface description S7 blocks that are appended to the <project>.scl file. Although the file is not part of the project template, the code generator processes the file. Files from this folder may not be edited! Definition of the ODK base types Function prototypes Implementation of the "Execute" method Header file Files from this folder may not be edited! Definition: Help functions for reading the data blocks Implementation: Help functions for reading the data blocks Definition: Help functions for reading/writing the data blocks Implementation: Help functions for reading/writing the data blocks Definition: Help functions S7 strings / W strings Implementation: Help functions S7 strings / W strings
Source Files Function code Implementation of the "dllmain" file Files from this folder may not be edited! S7 blocks

Open Development Kit 1500S V2.5

26

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

The C++ Native project template supports the following applications:

Configuration and platform Debug Win32 Release Win32 Debug x64 Release x64

Visual Studio Version older than 2015 Yes Yes To be created manually To be created manually

Visual Studio 2015 and later Yes Yes Yes Yes

Note Configuration of C/C++ Redistributables
Since the software controller contains the C/C++ redistributables for the release configuration, build the CPU function library with the configuration "Release".
To use the "Debug" configuration, add the redistributables for the debug configuration on the target system.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

27

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library Creating a CPU function library for x64 platform with Visual Studio version older than 2015
To create a project template for an x64 platform with a Visual Studio version older than 2015, proceed as follows: 1. Open the "Configuration Manager".
2. Create an x64 platform.
The "New Solution Platform" dialog opens.
Select "Win32" from the drop-down list box "Copy settings from:" .

Open Development Kit 1500S V2.5

28

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library
3. Define a solution configuration for an x64 platform.

4. Select "Debug" or "Release" from the drop-down list box "Active solution configuration" and "x64" from the drop-down list box "Platform".

4.1.2.2

Solution Explorer structure: C# project

Directory / file <project> Properties Definition File
Generated Files
ODK Helpers Source STEP7

AssemblyInfo.cs <project>.odk <project>.scl.additional
OdkTypes.cs OdkFunctions.cs OdkExecution.cs OdkReadVariant.cs OdkReadWriteVariant.cs <project>.cs <project>.scl

Description
ODK interface description S7 blocks that are appended to the <project>.scl file. The file is not part of the project template, but the code generator processes the file. Files from this folder may not be edited! Definition of the ODK base types Function prototypes Implementation of the "Execute" method Files from this folder may not be edited! Help functions for reading the data blocks Help functions for reading/writing the data blocks Source Files Function code Files from this folder may not be edited! S7 blocks

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

29

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

The C++ project template supports the following applications:

Configuration and platform Debug each CPU Release each CPU

Visual Studio Version older than 2015 Not supported Not supported

Visual Studio 2015 and later Yes Yes

4.1.2.3

Solution Explorer structure: VB Project

Directory / file <project path> My Project Definition File
Generated Files
ODK Helpers
Source STEP7

AssemblyInfo.vb <project>.odk <project>.scl.additional
OdkTypes.vb OdkFunctions.vb OdkExecution.vb OdkReadVariant.vb OdkReadWriteVariant.vb <project>.vb <project>.scl

Description
ODK interface description S7 blocks that are appended to the <project>.scl file. The file is not part of the project template, but the code generator processes the file. Files from this folder may not be edited! Definition of the ODK base types Function prototypes Implementation of the "Execute" method Files from this folder may not be edited! Help functions for reading the data blocks Help functions for reading/writing the data blocks Source Files Function code Files from this folder may not be edited! S7 blocks

The VB project template supports the following applications:

Configuration and platform Debug each CPU Release each CPU

Visual Studio Version older than 2015 Not supported Not supported

Visual Studio 2015 and later Yes Yes

Open Development Kit 1500S V2.5

30

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.3

Generating a CPU function library
The generation of the project data is divided into two automated steps.
 Pre-Build: Generation of the files created by default based on the changed <project>.odk file and generation of the SCL file.
 Actual-Build: Generation of the DLL file.

Procedure

To generate the project data, follow these steps: 1. Save all edited files. 2. In the "Build" menu, select the command "Build Solution".
Note C/C++ projects Perform the build of the CPU function library in the "Release" configuration, as the software controller has already installed the C/C++ Redistributables (Release Runtime files). To use the "Debug" configuration, copy the Debug Runtime files to the software controller.

Note The project data is only generated if the files have been changed.

Result

The generation of the project data is started. The automatically generated files are stored in the file system.
 DLL file: Project directory\<project>\<BuildConfiguration>\<project>.dll
 SCL file: Project directory\<project>\STEP7\<project>.scl

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

31

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.4

Defining the runtime properties of a CPU function library
The next step is to define the interface description of the CPU function library in the <project>.odk file. The file contains the following elements:  Comments  Parameters  Definitions of functions and structures

Procedure

To define the interface description in the <project>.odk file, follow these steps: 1. Open the <project>.odk file. 2. Change the elements depending on your requirements.

Description of the elements
Comments You can use comments for explanation purposes.
Parameters The definition of the parameters must be within a line of code. <parameter name>=<value> // optional comment The interfaces file supports the following parameters:

Parameter Context STEP7Prefix
FullClassName

Value user system <String>
<String>

Description
Specifies that the CPU function library is loaded in the context of a Windows user (Page 33).
Specifies that the CPU function library is loaded in the context of the Windows system (Page 33).
Describes the string that precedes your functions and is shown after importing the SCL file in STEP 7. The following characters are allowed: {A...Z, a...z, 1...9, -, _}
Umlauts are not permitted.
The project name is entered without spaces by default.
The parameter is required for the C# and VB programming languages.
To change the class names or namespace of the source files of the CPU function library, you need to adjust the "FullClassName" parameter.

Note Spaces in the project name With the STEP7 prefix, invalid characters are replaced by an underscore.

Open Development Kit 1500S V2.5

32

Programming and Operating Manual, 12/2017, A5E35253941-AD

4.1.5

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library
Environment for loading or executing the CPU function library
When the SCL file is imported into STEP 7 as an external source, the ODK instructions are created in the selected directory in STEP 7. The ODK instructions enable you to control your CPU function library regardless of the STEP 7 user program after programming and the initial loading. You can load up to 32 CPU function libraries. Depending on whether you have created the CPU function library for a 32-bit, 64-bit system or with the "Any CPU" option, this is loaded into a 32-bit or 64-bit ODK host process. You can choose one of two contexts for your CPU function library:  "System" context
Windows is started, a user can be logged on  "User" context
Windows is started, a user must be logged on The following graphic shows you when a CPU function library may be loaded depending on the context.

"System" context
Change the following line of code in your <project>.odk file to use the CPU function library in the system context (Session 0): Context=system
In the system context, the CPU function library is running without the logon of a Windows user. This means the CPU function library cannot be actively controlled with user interface elements such as message dialogs.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

33

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

"User" context

Change the following line of code in the <project>.odk file to use the CPU function library in the user context: Context=user
When you load the CPU function library in the user context, it automatically unloads as soon as the user logs off in Windows. The CPU function library can be actively controlled by Windows user interface elements such as message dialogs and provides access to additional resources of the Windows environment.
If multiple users are logged on to Windows, the CPU function library loads or unloads for the user, who has the current screen rights until he logs off in Windows.

4.1.6

Defining functions and structures of a CPU function library

Functions

Functions are defined by the following general lines of code: ODK_RESULT <FunctionName> ([<InOut identifier>] <data type> <tag name>, etc.);
The <project>.odk file is the ODK interface description for CPU function libraries. This is available for all supported programming languages.
The <project>.odk file contains an example function description by default. You can change this description and/or add more function descriptions. ODK_RESULT MyFunc1([IN] INT param1, [OUT] INT param2);

Syntax rules for functions
The following syntax rules apply to functions within the <project>.odk file:  Note that the function names are case-sensitive.  You can divide function definitions into multiple lines.  End a function definition with a semicolon.  TAB and SPACE are allowed.  Do not define a tag name in a function twice.  Do not use any keywords for the programming language that is used (for example
"EN / ENO" as parameter name)  Use ODK_RESULT only for the return values of the function.  The tag name must start with a letter or an underscore.  Illegal function names are displayed during generation in the development environment.  The following names are not allowed in combination of <STEP 7Prefix> and <function
name>: ODK_Load, ODK_Unld, ODK_ExcA, ODK_ExcS

Open Development Kit 1500S V2.5

34

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

<FunctionName>
Function names are valid with the syntax and character restrictions of the used programming language.
<InOut-Identifier>
There are three defined InOut-Identifiers. Use these in the following order: [IN], [OUT], [INOUT]
 [IN]: Specifies an input tag. The tag is copied to the function when it is called. This is constant and cannot be changed.
 [OUT]: Specifies an output tag. The tag is copied back after the function has been completed.
 [INOUT]: Specifies an input and output tag. The tag is copied to the function when it is called. This is not constant and can be changed. The tag is copied back after the function has been completed.
<DataType>
The data type defines the type of a tag. The following table defines the possible data types and their representation in the individual programming languages or STEP 7:
Elementary data types:

ODK data type ODK_DOUBLE

SIMATIC data type
LREAL

C++ data type double

C# data type double

ODK_FLOAT REAL

float

float

ODK_INT64 ODK_INT32 ODK_INT16 ODK_INT8 ODK_UINT64 ODK_UINT32 ODK_UINT16 ODK_UINT8 ODK_LWORD ODK_DWORD ODK_WORD ODK_BYTE ODK_BOOL

LINT DINT INT SINT ULINT UDINT UINT USINT LWORD DWORD WORD BYTE BOOL

long long long short char unsigned long long unsigned long unsigned short unsigned char unsigned long long unsigned long unsigned short unsigned char unsigned char

long int short sbyte ulong uint ushort byte ulong uint ushort byte bool

ODK_LTIME

LTIME

long long

long

ODK_TIME

TIME

long

int

VB data type
Double
Single
Long Integer Short SByte ULong UInteger UShort Byte ULong UInteger UShort Byte Boolean
Long
Integer

Description
64-bit floating point, IEEE 754 32-bit floating point, IEEE 754 64-bit signed integer 32-bit signed integer 16-bit signed integer 8-bit signed integer 64-bit unsigned integer 32-bit unsigned integer 16-bit unsigned integer 8-bit unsigned integer 64-bit bit string 32-bit bit string 16-bit bit string 8-bit bit string 1-bit bit string, remaining bits (1..7) are empty 64-bit during in nanoseconds 32-bit during in milliseconds

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

35

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

ODK data type ODK_LDT

SIMATIC data type
LDT

C++ data type unsigned long long

C# data type ulong

ODK_LTOD

LTOD

unsigned long long ulong

ODK_TOD

TOD

unsigned long

uint

ODK_WCHAR ODK_CHAR

WCHAR CHAR

wchar_t char

Complex data types:

char sbyte

VB data type ULong
ULong UInteger Char SByte

Description
64-bit date and time of the day in nanoseconds since 01/01/1970 00:00 64-bit time of the day in nanoseconds since midnight 32-bit time of the day in milliseconds since midnight 16-bit character 8-bit character

ODK data type ODK_DTL

SIMATIC data type
DTL

C++ data type struct ODK_DTL

ODK_S7WSTRI WSTRING NG

unsigned short

C# data type VB data type Description

OdkInternal. Dtl (class) string

OdkInternal. Dtl (class) String

Structure for date and time
Character string: · For SIMATIC and C++:

16-bit character with length max. and act. (4xUSINT)
· For other languages:

ODK_S7STRIN STRING G

unsigned char

string

String

native Character string: · For SIMATIC and C++:

8-bit character with length max. and act. (2xUSINT)
· For other languages:

ODK_VARIANT VARIANT

[ ]

ARRAY

struct ODK_VARIANT
[ ]

byte [ ] [ ]

byte [ ] [ ]

native
Classic data (each data type that can be serialized with classic data.)
Range of same data types.
You can use all data types as array except IN_DATA / INOUT_DATA / OUT_DATA.

User-defined data types:

User-defined data types (UDT) include structured data, especially the names and data types of this component and their order.

A user-defined data type can be defined in the ODK interface description with the keyword "ODK_STRUCT".

Open Development Kit 1500S V2.5

36

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library
Example
ODK_STRUCT <StructName>
{
<DataType> <TagName>;
...
};
The following syntax rules apply to the structure:  You can divide the structure into multiple lines.  The structure definition must end with a semicolon.  Any number of tabs and spaces between the elements is permitted.  It is not permitted to use any keywords for the generated language used (for example
"en / eno" as tag name). You can create additional structures within a structure.
<StructName> Structure names are valid with the syntax and character restrictions of the programming language and as defined for tag definitions in STEP 7. In STEP 7, the structure name is extended with the STEP 7 prefix.
<TagName> Tag names are subject to the syntax and character restrictions of the programming language.
Example The following code example explains the definitions of functions and structures. Sort the parameters by: IN, OUT, INOUT. //INTERFACE ... ODK_STRUCT MyStruct
{ ODK_DWORD myDword; ODK_S7STRING myString;
}; ODK_RESULT MyFct([IN] MyStruct myInStruct
,[OUT] MyStruct myOutStruct);

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

37

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.6.1

Using ODK_VARIANT as parameter
Restrictions of the data type ODK_VARIANT:
 When a parameter of the data type ODK_VARIANT is used, it is not permitted to use other parameters with the same InOut-Identifier, regardless of data type.
 With the data type ODK_VARIANT, an [OUT] is modeled as [INOUT] in the generated FB.
Example // INTERFACE ... // OK: ODK_RESULT MyFunc1([IN] ODK_VARIANT myClassicData); ODK_RESULT MyFunc2([IN] ODK_VARIANT myDataIn
, [OUT] ODK_VARIANT myDataOut , [INOUT] ODK_VARIANT myDataInout); // // NOT OK (Code Generator will throw an error): // If ODK_VARIANT is used for [IN], no other [IN] parameter // may be defined in this function ODK_RESULT MyFunc4([IN] ODK_VARIANT myClassicData , [IN] ODK_INT32 myint);
Application example for C++ #include "ODK_CpuReadData.h" ... ODK_RESULT MyFunc1 (const ODK_VARIANT& myClassicData) {
CODK_CpuReadData myReader(myClassicData); ODK_INT32 myInt1, myInt2; myReader.ReadS7DINT(0, myInt1); myReader.ReadS7DINT(4, myInt2); return myInt1 + myInt2; }
Helper functions (Page 135) of the following classes are available to help you access the data type ODK_VARIANT inside a user function:
 Class "CODK_CpuReadData"
 Class "CODK_CpuReadWriteData"
Note Size of the ODK_VARIANT tags
The size of the ODK_VARIANT tags is not known at the time of compiling and is therefore not checked during the compiling process. When selecting the other parameters, consider the possible size of the ODK_VARIANT parameter in your application.

Open Development Kit 1500S V2.5

38

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.6.2

Handling strings
You can define a maximum length for strings (String or WString). Define the maximum number of characters in square brackets directly after the data type:
 ODK_S7STRING[30] or
 ODK_S7WSTRING[1000]
Without limitation, a string has a default length of 254 characters.
In order to access the data types ODK_S7STRING or ODK_S7WSTRING within a user function, the string helper functions (Page 135) are available:

Example //INTERFACE ... ODK_RESULT MyFct(
[IN] ODK_S7STRING , [OUT] ODK_S7STRING[10] , [INOUT] ODK_S7STRING[20]

myStrHas254Chars myStrHas10Chars myStrArrayHas20Chars5Times[5]);

If you use [INOUT], you can set the string with a length that differs from the [INOUT of the function block in STEP 7.

4.1.6.3

Definition of the <Project>.odk file
The function prototypes and function blocks are generated based on the selected parameters in the <project>.odk file. Define the <project>.odk file for this.
By default, the <project>.odk file contains the following:
 Description
The possible data types that are used for the interface are described in comment lines. This simplifies the definition of the correct tag type for your task.
 Context=user
The CPU function library is loaded in the "User" context. You can change the parameter to Context=system.
 STEP7Prefix="<project>"
Sets a string for the SCL generation in front of the functions of the CPU function library. The string is visible in STEP 7. You can change the parameter. The string length of the prefix including the function name must not exceed a length of 125 characters (for example, ODK_App_SampleFunction)
 "SampleFunction" function definition
You can change this default function as you wish in the <project>.odk file and add more functions. The string length may not exceed a length of 125 characters. The associated function is located in the CPP file.
FullClassName="<OdkProject1.Source.CpuFunctionLibrary>"
The parameter is required for the C# and VB programming languages.
To change the class names or namespace of the source files of the CPU function library, you need to adjust the "FullClassName" parameter.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

39

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Example //INTERFACE Context=user STEP7Prefix=ODKProject FullClassName=ODKProject.Source.CpuFunctionLibrary

/*

* Elementary data types:

* ODK_DOUBLE

LREAL 64-bit floating point, IEEE 754

* ODK_FLOAT

REAL

32-bit floating point, IEEE 754

* ODK_INT64

LINT

64-bit signed integer

* ODK_INT32

DINT

32-bit signed integer

* ODK_INT16

INT

16-bit signed integer

* ODK_INT8

SINT

8-bit signed integer

* ODK_UINT64

ULINT 64-bit unsigned integer

* ODK_UINT32

UDINT 32-bit unsigned integer

* ODK_UINT16

UINT

16-bit unsigned integer

* ODK_UINT8

USINT 8-bit unsigned integer

* ODK_LWORD

LWORD 64-bit bit string

* ODK_DWORD

DWORD 32-bit bit string

* ODK_WORD

WORD

16-bit bit string

* ODK_BYTE

BYTE

8-bit bit string

* ODK_BOOL

BOOL

1-bit bit string

* ODK_LTIME

LTIME 64-bit duration in nanoseconds

* ODK_TIME

TIME

32-bit duration in milliseconds

* ODK_LDT

LDT

64 bit date and time of day

*

in nanoseconds

* ODK_LTOD

LTOD

64 bit time of day in nanoseconds

*

since midnight

* ODK_TOD

TOD

32 bit time of day in milliseconds

*

since midnight

* ODK_CHAR

CHAR

8 bit character

* ODK_WCHAR

WCHAR 16 bit character

* Complex Datatypes:

* ODK_DTL

DTL

structure for date and time

* ODK_S7STRING STRING character string with 8-bit characters

* ODK_VARIANT

VARIANT classic data (any datatype which can be

serialized

*

to classic data)

* ODK_S7WSTRING WSTRING character string with 16 bit characters

* []

ARRAY field of this datatype

* User Defined Datatype:

* ODK_STRUCT

UDT

user defined structure

* Return Datatype:

* ODK_RESULT

0x0000-0x6FFF function succeeded

*

(ODK_SUCCESS = 0x0000)

*

0xF000-0xFFFF function failed

*

(ODK_USER_ERROR_BASE = 0xF000)

*/

// Basic function in order to show // how to create a function in ODK 1500S. ODK_RESULT SampleFunction([IN] ODK_INT32
, [OUT] ODK_BOOL

myInt // integervalue // as input
myBool // bool value

Open Development Kit 1500S V2.5

40

Programming and Operating Manual, 12/2017, A5E35253941-AD

4.1.6.4

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

// as output , [INOUT] ODK_DOUBLE myReal);// double value
// as input // and output

Modifying the <Project>.odk file
The following examples show you how you can change the <project>.odk file to suit your needs. //INTERFACE Context=user STEP7Prefix=ODK_SampleApp_

ODK_RESULT GetString ([OUT] ODK_S7STRING myString);

ODK_RESULT Calculate ([IN] [IN] [OUT] [OUT] [INOUT] [INOUT]

ODK_INT64 ODK_DOUBLE ODK_FLOAT ODK_INT32 ODK_BYTE ODK_BYTE

In1, In2, Out1, Out2, InOut1[64], InOut2[64]);

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

41

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Function prototypes in the ODK file

Example for C++ ODK_RESULT GetString (
/*OUT*/ ODK_S7STRING myString[256]); #define _ODK_FUNCTION_GETSTRING ODK_RESULT GetString (/*OUT*/ ODK_S7STRING myString[256])

ODK_RESULT Calculate (

/*IN*/

const ODK_INT64& In1,

/*IN*/

const ODK_DOUBLE& In2,

/*OUT*/ ODK_FLOAT& Out1,

/*OUT*/ ODK_INT32& Out2,

/*INOUT*/ ODK_BYTE InOut1[64],

/*INOUT*/ ODK_BYTE InOut2[64]);

#define ODK_FUNCTION_CALCULATE ODK_RESULT Calculate(/*IN*/ const

ODK_INT64& In1,/*IN*/ 2480 const ODK_DOUBLE& In2,/*OUT*/ ODK_FLOAT&

Out1,/*OUT*/ ODK_INT32& Out2,/*INOUT*/ ODK_BYTE2481

InOut1[64],/*INOUT*/ ODK_BYTE InOut2[64])

#endif // ODK_FUNCTIONS_H

Example for C# namespace OdkInternal {
interface IOdkFunctions {
// declaration of the callback methods ushort OnLoad(); ushort OnUnload(); ushort OnRun(); ushort OnStop();

ushort GetString( /*OUT*/ out string myString);

ushort Calculate( /*IN*/ ref long In1, /*IN*/ ref double In2, /*OUT*/ out float Out1, /*OUT*/ out int Out2, /*INOUT*/ ref byte[] InOut1, /*INOUT*/ ref byte[] InOut2);
} }

Open Development Kit 1500S V2.5

42

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Example for VB Namespace Global.OdkInternal
Public Interface IOdkFunctions // declaration of the callback methods Function OnLoad() As UShort Function OnUnload () As UShort Function OnRun () As UShort Function OnStop () As UShort

Function GetString(

ByRef myString As String `OUT

) As UShort

Function Calculate(

ByRef In1 As Long,

`IN

ByRef In2 As Double,

`IN

ByRef Out1 As Float,

`OUT

ByRef Out2 As Integer, `OUT

ByRef InOut1() As Byte, `INOUT

ByRef InOut2() As Byte `INOUT

) As UShort

End Interface

End Namespace

4.1.6.5

Comments
The following examples for using comments are valid for C++ and C#. Differences to Visual Basic are available under "Comments in Visual Basic (Page 45)"
Comments are started with a double slash "//" and end automatically at the end of the line.
Alternatively, you can limit comments by /* <comment> */, which enables new lines in a comment. Characters after the end of the comment identifier "*/" are further processed by the code generator.

Comments for functions and structures
You place comments on functions and structures directly in front of the functions/structures.
These comments are transferred to the ODK_Functions.h/.cs/.vb and <project>.scl files.
In the <project>.scl file, the comments are copied to the block properties and duplicated in the code area of the function.
Observe the following rules:
 Comments for functions and structures must be located directly in front of the functions/structures (without blank line).
 The end of the comment is located in front of the ODK_RESULT or ODK_STRUCT keyword.
 You can use both identifiers "//" and "/* */" but not in combination within a comment.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

43

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Example // this comment did not appear in MyStruct, because of the empty line.

// comment MyStruct

// ...

ODK_STRUCT MyStruct

{

ODK_DWORD

myDword;

ODK_S7STRING myString;

};

/* comment MyFct ... */ ODK_RESULT MyFct([IN] MyStruct myInStruct
,[OUT] MyStruct myOutStruct);

Comments for tags in functions and structures
Comments for function and structure tags are placed directly in front of or behind the tag. These comments are transferred to the ODK_Functions.h/ and <project>.scl files. The following rules apply to comments in front of tags:  Comments must be directly in front of the tag (without blank line).  The end of the comment is the <InOut-Identifier> of the tags. The following rules apply to comments after tags:  Comments must be after the tag name (without blank line). The following general rules apply to comments for tags:  You can use both identifiers "//" and "/* */" but not in combination within a comment.  In the header file, the same comment identifier is used ("//" or "/* */").
Example ODK_STRUCT MyStruct {
// comment myDword BEFORE definition ODK_DWORD myDword;
ODK_S7STRING myString; /* comment myString AFTER definition */ };
ODK_RESULT MyFct([IN] MyStruct myInStruct // comment // myInStruct ... // ... "second line"
, [OUT] MyStruct myOutStruct); /* comment myOutStruct ... ...
*/

Open Development Kit 1500S V2.5

44

Programming and Operating Manual, 12/2017, A5E35253941-AD

4.1.6.6

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Comments in Visual Basic
Not all comments can be transferred unchanged from the Interface file to the VB source. The following rules are valid only for comments in Visual Basic:  Comments are marked with a apostrophe.  To mark multiple lines as comment, you need to set an apostrophe before each line.
Example:

<project>.odk /* Multi line comment 1
comment 2 comment 3*/ ODK_RESULT f1();

ODK_Functions.vb ` This file is AUTO GENERATED ... ` <automatically generated comment> ... ` Multi line comment 1 ` comment 2 ` comment 3 Function f1() As UShort

 Comments are not permitted in front of source code.

Set the InOut identifier after the function parameter.

Example:

<project>.odk ODK_RESULT f1([IN] ODK_BYTE b);

ODK_Functions.vb Function f1(
b As Byte ` [IN] ) As UShort

 Multi-line comments are not permitted between function parameters.

Set multiple comments in a line.

Example:

<project>.odk ODK_RESULT f1(
// c1 // c2 [IN] ODK_BYTE b // c3
// c4 );

ODK_Functions.vb Function f1(
b As Byte ` [IN] c1` c2` c3` c4 ) As UShort

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

45

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.7

Implementing functions

4.1.7.1

General notes
This section provides an overview of the basic topics relating to the implementation of functions in a Windows environment.
 The function call is not limited in time, because the function is called asynchronously.
 Traces are possible via OutputDebugString instructions
 All asynchronous functions are executed with equal priority - regardless of the priority of the OBs
 The complete Windows API (Application Programming Interface) and C++-Runtime library are available

4.1.7.2

Callback functions
The project template includes an execute file to define your functions.

Programming language C++ C# VB

Name of the execute file <project>.cpp <project>.cs <project>.vb

This execute file contains functions filled by default. This file does not necessarily need to be filled with additional user code to be usable. However, neither may the functions be deleted under any circumstances.

The empty function has the following code (using the "OnLoad()" function as an example):

You can define the following functions in the execute file:

 OnLoad(): Called after loading the CPU function library

 OnUnload(): Called before unloading the CPU function library

 OnRun(): Called when the CPU changes to RUN mode after the OnLoad() function

 OnStop(): Called when the CPU changes to the STOP mode and before the function OnUnload()

The following table provides an overview of the various actions to invoke the callback functions:

Current operating state New operating state

RUN

RUN

STOP

RUN

RUN STOP

STOP RUN

User action ODK_Load
ODK_Load in startup OB (e.g. OB100) <already loaded> <already loaded>

ODK action 1. OnLoad() 2. OnRun() 1. OnLoad() 2. OnRun()
OnStop() OnRun()

Open Development Kit 1500S V2.5

46

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

Current operating state New operating state

RUN

RUN

RUN any

SHUTDOWN / MRES any

User action ODK_Unload
<already loaded> <already loaded> Exit ODK host

ODK action 1. OnStop() 2. OnUnload()
OnStop()
1. OnStop() (optional, if not already executed)
2. OnUnload()

"OnLoad()" and "OnUnload()" function
The functions have a return value of type "ODK_RESULT" and typically provide information about the status of the "ODK_SUCCESS" value.
The following return values are possible:

Return value for "ODK_RESULT" ODK_SUCCESS = 0x0000
0x0001 ­ 0xEFFF 0xF000 ­ 0xFFFF ODK_USER_ERROR_BASE = 0xF000

Description Return value following a successful execution of the "OnLoad()" or "OnUnload()" function
Invalid values (system-internal)
You can define your own error values.
The loading stops and the CPU function library unloads for the "OnLoad()" function.
The CPU function library within the specified value range is still unloaded for the "OnUnload()" function.

"OnRun()" and "OnStop()" function
The functions have a return value of type "ODK_RESULT" and typically provide information about the status of the "ODK_SUCCESS" value.
The following return values are possible:

Return value for "ODK_RESULT" ODK_SUCCESS = 0x0000
0x0001 ­ 0xFFFF

Description Return value following a successful execution of the "OnRun()" or "OnStop()" function
No direct feedback to the user program is possible. The return value is sent to Windows (WindowsEventLog).

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

47

Developing a CPU function library for the Windows environment 4.1 Creating a CPU function library

4.1.7.3

Implementing custom functions
Once you have defined the ODK interface in the <project>.odk file, you must edit the functions of the CPU function library in the Project Source file.

Procedure

To edit the function of a CPU function library, follow these steps: 1. To generate the function prototypes, execute the build. 2. Open the project source file, or create a custom source file if necessary. 3. Transfer the function prototypes from <ODK_Functions.h>/<OdkFunctions.cs/vb> to the source file.
Note Use the function prototype macro to transfer the step 3 in the future when there is a change to the function parameters.
4. Edit the code of your CPU function library in the execute file.

CPU function library
The execute file contains a schematically represented function description by default. You can change this description with corresponding changes in the <project>.odk file and/or add more function descriptions.
Execute file based on C++ example #include "ODK_Functions.h"
EXPORT_API ODK_RESULT OnLoad (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnUnload (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnRun (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnStop (void) {
return ODK_SUCCESS; } ODK_RESULT SampleFunction( const ODK_INT32& myInt,
ODK_BOOL& myBool, ODK_DOUBLE& myReal) { return ODK_SUCCESS; }

Open Development Kit 1500S V2.5

48

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.2 Transferring a CPU function library to the target system

4.2

Transferring a CPU function library to the target system

Manually transfer the DLL file to a specific Windows folder on the target system (e.g. via a network share or USB flash drive). Use the standard Windows data transfer procedure to transfer of the CPU function library. The storage location in Windows is specified by a registry key. When loading an CPU function library, the ODK service automatically searches for the file in the path specified by the registry key.

Note CPU function library in the debug configuration
When the CPU function library has been transferred to the debug configuration, you also need to transfer the debug DLLs of the development environment to the target system.

The default value that describes the file path is: %ProgramData%\Siemens\Automation\ODK1500S\
Note Administrator rights Assign write permission to this folder only for the administrator. This prevents unauthorized personnel from uploading CPU function libraries. Please note: The setup of the SIMATIC S7-1500 Software Controller checks whether the file path already exists and the required administrator rights are assigned.
If not, the directory is renamed to "ODK1500S_OLD1" or "ODK1500S_OLD2" and a new directory with the correct access rights is created.

The Windows file system can hide the folder based on your setting. You can view the folder using the Windows option "Show hidden files, folders, and drives" in the Explorer menu "Organize > Folder and search options > View".
The registry key for 32-bit systems is: HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\Automation\ODK1500S\odk_app_path
The registry key for 64-bit systems is: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Siemens\Automation\ODK1500S\od k_app_path
You can change the default value of the registry key and thus adapt to the expected location for the DLL file to suit your needs.
Note Changing the path in the registry key
To protect the DLL file, select a storage location that is secured by access protection.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

49

Developing a CPU function library for the Windows environment 4.3 Importing and generating an SCL file in STEP 7

4.3

Importing and generating an SCL file in STEP 7

The following files are created when the project map is created:

 SCL file for importing into STEP 7

 All files depending on the configuration, e.g. DLL file

If STEP 7 is installed on another PC as the development environment, you must transfer the generated SCL file to the PC where the STEP 7 is installed.

Requirements
The project data were generated.

Procedure

To import and compile the SCL file, follow these steps: 1. Start STEP 7. 2. Open your project. 3. Select the project view. 4. Select the CPU in the project tree. 5. Select the "External Sources" subfolder.
The "Open" dialog box opens. 6. Navigate in the file system to the SCL file that was created during the generation of the
project data. 7. Confirm your selection with "Open".
The SCL file is imported. After completion of the import process, the SCL file is displayed in the "External Sources" folder. 8. You need to compile the SCL file before you can use the blocks in your project. 9. To do this, select the SCL file in "External sources" subfolder. 10.Select the "Generate blocks from source" command in the shortcut menu.

Result

STEP 7 creates the S7 blocks based on the selected SCL file.
The created blocks are now automatically displayed in the "Program blocks" folder below the selected CPU in the project tree. You can load the function blocks during the next download to the target device.

Open Development Kit 1500S V2.5

50

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.4 Executing a function

4.4

Executing a function

4.4.1

Loading functions

Introduction

Regardless of the context in which the CPU function library is running, the loading procedure consists of the following steps:
 Call the "<STEP7Prefix>_Load" instruction in the STEP 7 user program.
 In the Windows context, the loading process checks if a 32-bit or 64-bit process is required and starts the appropriate host. Each CPU function library runs in a separate Windows process (ODK_Host).
 The host loads the CPU function library and calls the "OnLoad()" function and then the "OnRun()" functions.

Note
Loading the same CPU function libraries with a modified <project>.odk file
When you load an CPU function library and subsequently change the <project>.odk file, we recommend that you unload your CPU function library first before you load the newly generated CPU function library. If the "<STEP7Prefix>_Unload" instruction is not executed, both CPU function libraries are in the memory. This can lead to insufficient memory being available for the CPU.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

51

Developing a CPU function library for the Windows environment 4.4 Executing a function

"<STEP7Prefix>_Load" instruction
A CPU function library is loaded by calling the "<STEP7Prefix>_Load" instruction in the STEP 7 user program.

REQ

<STEP7Prefix>_Load

DONE BUSY ERROR STATUS

The following table shows the parameters of the instruction "<STEP7Prefix>_Load":

Section Input Output Output Output
Output

Declaration REQ DONE BUSY ERROR
STATUS

Data type BOOL BOOL BOOL BOOL
INT

Description A rising edge activates the loading of the CPU function library.
Indicates that the instruction has finished loading the CPU function library.
Indicates that the instruction is still loading the CPU function library.
Indicates that an error occurred during the loading of the CPU function library. STATUS gives you more information about the possible cause.
Provides information about possible sources of error, if an error occurs during the loading of the CPU function library.

Input parameters
An edge transition (0 to 1) at the "REQ" input parameter starts the function.

Open Development Kit 1500S V2.5

52

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.4 Executing a function

Output parameters
The following table shows the information that is returned after loading.

DONE 0 0 0 1 1 0

BUSY 0 1 1 0 0 0

ERROR 0 0 0 0 0 1

STATUS 0x7000 =28672 0x7001 =28673 0x7002 =28674 0x7100 =28928 0x0000 =0 0x80A4 =-32604 0x80C2 =-32574
0x80C3 =-32573
0x8090 =-32624 0x8092 =-32622 0x8093 =-32621
0x8094 =-32620 0x8095 =-32619
0x8096 =-32618
0x8097 =-32617

Meaning No active loading
Loading in progress, first call
Loading in progress, ongoing call
CPU 1500 V2.0 and later: CPU function library is already loaded. Loading was performed successfully.
CPU function library could not be loaded. Start the ODK service manually or restart Windows. CPU function library could not be loaded. There are currently not enough resources available from Windows. Reload the CPU function library after a few seconds. CPU function library could not be loaded. The CPU currently does not have enough resources. Reload the CPU function library after a few seconds. CPU function library could not be loaded. An exception occurred during execution of the "OnLoad()" function.
CPU function library could not be loaded because the library name is invalid.
CPU function library could not be loaded because the CPU function library could not be found. Check the file name and path of the file. CPU function library could not be loaded. The CPU function library was created for the Windows user context, but no user is logged on.
CPU function library could not be loaded due to the following reasons: · The DLL file is not a CPU function library · An attempt has been made to load a 64-bit application into a 32-bit
system · Dependencies on other Windows DLL files could not be resolved.
­ Check that the release build of the CPU function library is used. ­ Check whether the "Visual C++ Redistributables" are installed
for the Visual Studio version you are using. · The CPU does not support the utilized ODK version.
The CPU function library could not be loaded because the internal identification is already being used by another loaded CPU function library. CPU 1500 V1.8 and earlier: CPU function library is already loaded.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

53

Developing a CPU function library for the Windows environment 4.4 Executing a function

DONE

BUSY

ERROR

STATUS 0x8098 =-32616 0x809B =-32613
0xF000 ­ 0xFFFF =-4096 ­ -1

Meaning The CPU function library could not be loaded because the CPU function library is currently being unloaded.
CPU 1500 V2.0 and later: The CPU function library could not be loaded and returns an invalid value (the values 0x0000 and 0xF000 - 0xFFFF are allowed)
CPU 1500 V2.0 and later: CPU function library could not be loaded. An error occurred during execution of the "OnLoad()" function.

Example

This example describes how the loading and execution of a Windows CPU function library can be implemented for the Windows environment in STEP 7 after communication disturbances.
When Windows is again available the CPU function library is loaded and the execution of the functions is again possible.
A communication disturbance can be caused by the following:
 Windows Restart (or Shut down)
 Windows Log off (if application in user area)
 TerminateProcess/ODK_Host crash
A flag is necessary for this (here: ODK_Loaded), which is set after successful loading and is reset following a faulty execution of the ODK function.
FUNCTION_BLOCK "ODK_AutoLoad" { S7_Optimized_Access := 'TRUE' } VERSION: 0.1
VAR ODK_Loaded : Bool;
END_VAL BEGIN
// Loading of the Windows-CPU function library IF NOT #ODK_Loaded THEN
// Toggle request flag if loading is not active IF NOT "ODKProject_Load_DB".BUSY THEN
"ODKProject_Load_DB".REQ := NOT "ODKProject_Load_DB".REQ; END_IF;
// Loading of the CPU function library "ODKProject_Load_DB"();
// Set "Loaded" flag if loading is successful IF "ODKProject_Load_DB".DONE THEN
#ODK_Loaded := true; END_IF; END_IF;
// Execute the ODK function(s) (only in loaded state)

Open Development Kit 1500S V2.5

54

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.4 Executing a function
IF #ODK_Loaded THEN // Toggle request flag if function call is not active IF NOT "ODKProjectSampleFunction_DB".BUSY THEN "ODKProjectSampleFunction_DB".REQ := NOT "ODKProjectSampleFunction_DB".REQ; END_IF;
// Execute the function "ODKProjectSampleFunction_DB"();
// The "Loaded" flag must be reset when // a) An error is present in the communication with Windows (0x80A4) // b) the CPU function library was already unloaded before this function call (0x8096) IF "ODKProjectSampleFunction_DB".STATUS = 16#80A4 OR "ODKProjectSampleFunction_DB".STATUS = 16#8096 THEN #ODK_Loaded := false; END_IF; END_IF; END_FUNCTION_BLOCK

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

55

Developing a CPU function library for the Windows environment 4.4 Executing a function

4.4.2

Calling functions

Introduction

Once the CPU function library is loaded, you can execute functions via your STEP 7 user program. This call is made from the corresponding "<STEP7Prefix>SampleFunction" instruction.
You can load up to 32 CPU function libraries at the same time.

"<STEP7Prefix>SampleFunction" instruction
A CPU function library is called by the "<STEP7Prefix>SampleFunction" instruction.

REQ myInt myReal

<STEP7Prefix>SampleFunction

The following table shows the parameters of the instruction "<STEP7Prefix>SampleFunction":

DONE BUSY ERROR STATUS myBool

Section

Declaration Data type

Automatically generated parameters

Input

REQ

BOOL

Output

DONE

BOOL

Output

BUSY

BOOL

Output

ERROR

BOOL

Output

STATUS

INT

User-defined parameter

Input

myInt

InOut

myReal

Output

myBool

Description
A rising edge of this input value activates the execution of the CPU function library. This output value indicates that the instruction has finished execution of the CPU function library. This output value indicates that the instruction is still unloading the CPU function library. This output value indicates that an error occurred during the execution of the CPU function library. The STATUS output value provides more information on this. This output value provides information about possible sources of error, if an error occurs during the execution of the CPU function library.
User-defined input tags User-defined input-output tags User-defined output tags

Input parameters
An edge transition (0 to 1) at the "REQ" input parameter starts the function.

Open Development Kit 1500S V2.5

56

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.4 Executing a function

Output parameters
The following table shows the information for the output parameters returned after execution.

DONE 0 0 0 1
0

BUSY 0 1 1 0
0

ERROR 0 0 0 0
1

STATUS Meaning

0x7000

No active process

=28672

0x7001

First call (asynchronous)

=28673

0x7002

Continuous call (asynchronous)

=28674

0x0000 ­ 0x6FFF

Function has been executed and returns a value between 0x0000 and 0x6FFF.

=0 ­ 28671 (ODK_SUCCESS = 0x0000)

0x80A4

CPU function library could not be executed for the following reasons:

=-32604

· The "<STEP7Prefix>_Unload" instruction was executed during a function execution. The function execution was aborted at the CPU end. Windows terminates the execution of the function normally. No return value is sent to the CPU.
Wait until the "<STEP7Prefix>_Unload" instruction has ended. Then load the CPU function library again.

· Windows is not available

· ODK service is not running Start the ODK service manually or restart Windows.

0x80C2 =-32574

CPU function library could not be executed. There are currently not enough resources available from Windows.
Execute the CPU function library again after a few seconds.

0x80C3 =-32573

CPU function library could not be executed. The CPU currently does not have enough resources.
Execute the CPU function library again after a few seconds.

0x8090 =-32624

CPU function library could not be executed. An error occurred during execution.

0x8091 =-32623

CPU function library could not be executed. A "STOP" occurred during the function call.

0x8096 =-32618

CPU function library could not be executed because the CPU function library was not loaded or unloading is not yet finished.

0x8098 =-32616

CPU function library could not be executed because the function is not supported.

0x8099 =-32615

CPU function library could not be executed because the maximum amount of input data (1 MB) was exceeded (declarations with "In" and "InOut")

0x809A =-32614

CPU function library could not be executed because the maximum amount of output data (1 MB) was exceeded (declarations with "Out" and "InOut")

0x809B =-32613

The function returns an invalid value (a value between 0x0000 and 0x6FFF; 0xF000 and 0xFFFF is permitted)

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

57

Developing a CPU function library for the Windows environment 4.4 Executing a function

DONE

BUSY

ERROR

STATUS 0x809C =-32612

Meaning Function uses an invalid data type: · IN_DATA

· INOUT_DATA · OUT_DATA

0xF000 ­ 0xFFFF
=-4096 ­ -1

CPU 1500 V2.0 and later:
The function could not be executed and returns a value between 0xF000 and 0xFFFF.
(ODK_USER_ERROR_BASE = 0xF000)

Note Call of function(s) influences the cycle time
When you call a function, the function parameters are copied. In particular in the case of large amounts of data or of structured data, this can lead to the cycle time being influenced.

4.4.3

Unloading functions

Introduction

The CPU function library is unloaded by calling the "<STEP7Prefix>_Unload" instruction. Call is made from the STEP 7 user program.
In addition to this call, the CPU function library is also automatically unloaded for the following reasons.
 The CPU is switched off
 The CPU is reset
 Windows is restarted
 Logoff off the Windows user (in the context of a Windows user)

Regardless of the context in which the CPU function library is running, the unloading procedure consists of the following steps:
 Call the "<STEP7Prefix>_Unload" instruction in the STEP 7 user program.
 From now on, no new executes can be carried out for this CPU function library. Still active executes are terminated at the CPU end. Windows terminates the execution of the function normally ("Unload" waits). No return value is sent to the CPU.
 The host calls the "OnStop()" and "OnUnload()" functions.
 The CPU function library is being unloaded.

Open Development Kit 1500S V2.5

58

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.4 Executing a function

"<STEP7Prefix>_Unload" instruction
A CPU function library is unloaded by calling the "<STEP7Prefix>_Unload" instruction in the STEP 7 user program.

REQ

<STEP7Prefix>_Unload

DONE BUSY ERROR STATUS

The following table shows the parameters of the instruction "<STEP7Prefix>_Unload":

Section Input Output Output Output
Output

Declaration REQ DONE BUSY ERROR
STATUS

Data type BOOL BOOL BOOL BOOL
INT

Description A rising edge activates the unloading of the CPU function library.
Indicates that the instruction has finished unloading the CPU function library.
Indicates that the instruction is still unloading the CPU function library.
Indicates that an error occurred during the unloading of the CPU function library. STATUS gives you more information about the possible cause.
Provides information about possible sources of error, if an error occurs during the unloading of the CPU function library.

Input parameters
An edge transition (0 to 1) at the "REQ" input parameter starts the function.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

59

Developing a CPU function library for the Windows environment 4.4 Executing a function

Output parameter STATUS
The following table shows the information that is returned after unloading.

DONE 0 0 0 1 0

BUSY 0 1 1 0 0

ERROR 0 0 0 0 1

STATUS 0x7000 =28672 0x7001 =28673 0x7002 =28674 0x0000 =0 0x80A4 =-32604
0x80C2 =-32574
0x80C3 =-32573
0x8090 =-32624 0x8096 =-32618 0x809B =-32613
0xF000 ­ 0xFFFF =-4096 ­ -1

Meaning No active unloading
Unloading in progress, the first call
Unloading in progress, ongoing call
Unloading was carried out successfully
CPU function library could not be unloaded for the following reasons: · Windows is not available Start the ODK service manually or restart Windows. CPU function library could not be unloaded. There are currently not enough resources available from Windows. Reload the CPU function library after a few seconds. CPU function library could not be unloaded. The CPU currently does not have enough resources. Reload the CPU function library after a few seconds. An exception occurred during the unloading of the CPU function library. The CPU function library has been unloaded nevertheless. CPU function library could not be unloaded because the CPU function library was not loaded or unloading is not yet finished. CPU 1500 V2.0 and later: The CPU function library could be unloaded and returns an invalid value (the values 0x0000 and 0xF000 - 0xFFFF are allowed) CPU 1500 V2.0 and later: CPU function library could be unloaded. An error occurred in the CPU function library during the execution of the "OnUnload()" function.

Open Development Kit 1500S V2.5

60

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.5 Remote debugging

4.5

Remote debugging

If you use Microsoft Visual Studio as a development environment, you can use the debugger for debugging.

You can use the remote debugger to debug a CPU function library on a target system without Visual Studio. It should be noted that the generated CPU function libraries (DLLs) are loaded into one of the following processes:

 ODK_Host_x86.exe process (32-bit)

 ODK_Host_x64.exe process (64-bit)

The required remote debugger is dependent on the Visual Studio version used on the host system and on the system type (32-bit/64-bit) of the target system.

Installed Visual Studio version Microsoft Visual Studio 2013
Microsoft Visual Studio 2015 Microsoft Visual Studio 2017

Link to the Download Center for the remote debugger
Microsoft Visual Studio 2013 Remote Debugger (https://msdn.microsoft.com/enus/library/bt727f1t(v=vs.120).aspx)
Microsoft Visual Studio 2015 Remote Debugger (https://msdn.microsoft.com/en-us/library/y7f5zaaa.aspx)
Microsoft Visual Studio 2017 Remote Debugger (https://www.visualstudio.com/downloads/)

After downloading, you can install the remote debugger on the target system.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

61

Developing a CPU function library for the Windows environment 4.5 Remote debugging

4.5.1

Performing remote debugging

Procedure

1. Start the Visual Studio remote debugger on the target system using "Start > All Programs > Visual Studio 20xx > Remote Debugger".
2. Configure the authentication. Select the "No authentication" option and select the "Allow any user to debug" check box. Observe the security information.
3. With a C++ CPU function library, copy the Visual Studio Debug DLLs from the folder "<installation path VS>\VC\redist\Debug_NonRedist\<ApplicationType>\Microsoft.<VS version>.DebugCRT" in the target folder. With a managed (C# / VB) CPU function library you can skip step 3. ­ Destination folder with 32-bit Windows and a 32-bit application: <windows install path>\System32 ­ Destination folder with 64-bit Windows and a 64-bit application: <windows install path>\System32 ­ Destination folder with 64-bit Windows and a 32-bit application: <windows install path>\SysWOW64
Note If you use Visual Studio 2015 or 2017, you also need the "ucrtbased.dll". If this DLL is not present in the target system, copy it from the host in the folder: With 32-bit Windows under Program Files\... With 64-bit Windows under Program Files (x86)\... ...\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.UniversalCRT.Debug\<Highest available version>\ Redist\Debug\<Application type (32/64-bit)>
4. Load the CPU function library on the target system in the folder "C:\ProgramData\Siemens\Automation\ODK1500S".
Note If the CPU function library is loaded, unload (Page 58) it before copying.

Open Development Kit 1500S V2.5

62

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the Windows environment 4.5 Remote debugging
5. Load (Page 51) the CPU function library on the target system. 6. Set the breakpoints in the source code and start the debugger via "Debug > Attach to
Process...". Select the following settings in the "Attach to Process" dialog: ­ Transport: Remote ­ Qualifier: IP address of the target system and port of the remote debugger. ­ Attach to:
Use the default value "Automatic: Managed (...) code" for managed CPU function libraries. Only for a C++ CPU function library: Click "Select...", and select the code type "Native" in the "Select Code Type" dialog.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

63

Developing a CPU function library for the Windows environment 4.5 Remote debugging

Debugging OnLoad/OnRun
To attach the debugger to the OnLoad() or OnRun() function, incorporate a wait loop at the start of OnLoad().
Example of a wait loop: EXPORT_API ODK_RESULT OnLoad (void) { #if defined _DEBUG // available in debug configuration, only
while (!IsDebuggerPresent()) // wait for debugger
{ Sleep(100);
} #endif
// your code for OnLoad() ...

Result

The debugger stops the execution of the code after the activated breakpoint.

Open Development Kit 1500S V2.5

64

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment

5

5.1
5.1.1

Creating a CPU function library
Requirements
 ODK is installed. The Eclipse development environment is installed.  You need administrator rights to create and edit an Eclipse project (CPU function library
for the realtime environment).
Note If you have to move the workspace to a different storage location, make sure you copy the entire workspace.

5.1.2

Creating a project
To help you develop a CPU function library, an Eclipse Project template is included in the installation of ODK 1500S.

Procedure

To create a CPU project in Eclipse using an ODK template, follow these steps: 1. Start Eclipse as a development environment. 2. In the "File > New" menu, select the command "Project..."
The "New Project" dialog opens.

Figure 5-1 Creating a new project with Eclipse

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

65

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library
3. Select the project-Template "C++ Project for CPU function library (CPU Runtime)" .

Figure 5-2 Selecting a template
4. Enter a project name. 5. Click "OK" to confirm.

Open Development Kit 1500S V2.5

66

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Result

The CPU function library for the realtime environment is created using the project template and sets the following project settings:  Project settings for generating the SO file  Automates the generation of the SO and SCL file The project template sets up the following Project Explorer by default:

Folder / file <project path> def
STEP7 scr_cg_priv src src_odk_helpers
release_so
launches

Description

<project>.odk <project>.scl.additional
<project>.scl ODK_Types.h ODK_Functions.h ODK_Execution.cpp

ODK interface description S7 blocks that are appended to the <project>.scl file. Although the file is not part of the project template, the code generator processes the file. Files from this folder may not be edited! S7 blocks Files from this folder may not be edited! Definition of the ODK base types Function prototypes Implementation of the "Execute" method

<project>.cpp

Function code: This file has always the suffix CPP, regardless of whether you are creating a C or C++ project.
Files from this folder may not be edited!

ODK_CpuReadData.h

Definition of the helper function for reading classic DBs.

ODK_CpuReadData.cpp Implementation of the helper function for reading classic DBs.

Definition of the helper function for reading/writing classic DBs. ODK_CpuReadWriteData.h

Implementation of the helper function for reading/writing classic ODK_CpuReadWriteData.cpp DBs.

ODK_StringHelper.h

Definition of the helper function for access to S7String/S7WString.

ODK_StringHelper.cpp

Implementation of the helper function for access to S7String/S7WString.

<project>.so <project>.debuginfo.so <project>.symbols

ODK Application Binary (release version) that must be transferred to the target system.
ODK Application Binary (debug version) that is required for the post mortem analysis.
Symbol information that is required for the post mortem analysis.

<project>.gdb.launch

Start for the post mortem analysis.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

67

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library
Note Invalid characters in the project name All invalid characters in the project name are automatically replaced by an underscore. These characters are allowed {A...Z, a...z, 1...9, -, _}. "My + first#project" becomes, for example, "My___first_project".

5.1.3

Generating a CPU function library
The generation of the project data is divided into two automated steps.
 Pre-Build: Generation of the files created by default based on the changed <Project>.odk file
 Build: Generation of the SO file

Procedure

To generate the project data, follow these steps: 1. Save all edited files. 2. In the "Build" menu, select the command "Build Project".

Note The project data is only generated if the files have been changed.

Result

The generation of the project data is started. The automatically generated files are stored in the file system.
 SO file: Project directory\<Project>\<BuildConfiguration>\<Project>.so
 SCL file: Project directory\<Project>\STEP7\<Project>.scl

Open Development Kit 1500S V2.5

68

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.4

Defining the runtime properties of a CPU function library
The next step is to define the interface description of the CPU function library in the <project>.odk file. The file contains the following elements:  Comments  Parameters  Definitions of functions and structures

Procedure

To define the interface description in the <project>.odk file, follow these steps: 1. Open the <project>.odk file. 2. Change the elements depending on your requirements.

Description of the elements
Comments You can use comments for explanation purposes.
Parameters The definition of the parameters must be within a line of code. <parameter name>=<value> // optional comment The interfaces file supports the following parameters:

Parameter Context Trace
HeapSize
HeapMaxBlockSize SyncCallParallelCount

Value realtime
on
off
[4...<Availabl e CPU memory (Page 124)>] k [8...<HeapSi ze>] [1...9] Default=3

Description Specifies that the CPU function library is loaded in the context of the realtime environment (Page 70). Specifies the trace function in the CPU function library. In this case, the CPU function library requires 32 KB if memory as an additional trace buffer. A "GetTrace" function block is created by default for use in a STEP 7. A "GetTrace" function block is created. The trace buffer contains only one trace entry with the contents: trace is off. Specifies a memory in KB that can be used as heap for these realtime applications.
Specifies the maximum memory size in bytes that can be allocated at one time. If a optional parameter and defines the maximum number of parallel calls in this CPU function library. The size of the memory which is reserved for calls in this CPU function library: SyncCallParallelCount * (SyncCallStackSize + SyncCallDataSize)

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

69

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Parameter SyncCallStackSize SyncCallDataSize
STEP7Prefix

Value [1...1024]k Default=32k [1...1024]k
Default=auto
<String>

Description
Is a optional parameter and defines the size of the thread stack for a call in this CPU function library. Each new call receives its own stack memory.
Is a optional parameter and defines the size of the data area for a call in this CPU function library. The data area contains IN, INOUT and OUT parameters. Each new call receives its own stack memory.
The required data size is automatically calculated by the code generator.
With an ODK_CLASSIC_DB, 65 KB is applied.
Describes the string that precedes your functions and is shown after importing the SCL file in STEP 7. The following characters are allowed: {A...Z, a...z, 1...9, -, _}
The project name is entered without spaces by default.

5.1.5

Environment for loading or running the CPU function library
When the SCL file is imported into STEP 7 as an external source, the ODK instructions are created in the selected directory in STEP 7. You can load up to 32 CPU function libraries.
You can load and run your CPU function library in the context of the realtime environment:

Realtime environment
Add the following line of code in your <project>.odk file to use the CPU function library in the context of the realtime environment: Context=realtime
In this context, the CPU function library is not running in a host process at the Windows end, but instead in the realtime environment. Because the CPU function library is loaded synchronously, it should be loaded in a startup OB (e.g. OB 100).
The number of loadable CPU function libraries (Page 124) is limited in the context of the realtime environment.
If the CPU function library has to be loaded in a cyclic OB (for example, OB 1), note the following loading times:

CPU CPU 1505SP CPU 1507S (with SSD)

Small SO file  Loading time 0.5 MB  20 ms 0.5 MB  20 ms

Large SO file  Loading time 3 MB  70 ms 5 MB  100 ms

Open Development Kit 1500S V2.5

70

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library
Determining the size of the CPU function library in the CPU memory
To determine the required size of the CPU function library in the CPU memory, follow these steps:
1. Open a command line dialog.
2. Enter the following path from the ODK installation folder (the appended option "-l" is a lower-case "L"): eclipse\ build_tools\x86_64_gcc_pc_elf_4.8.1-1\bin\x86_64-pc-elfreadelf.exe "StorageLocation\File.so>" -l
You can see the size of your CPU function library under the heading "Program Headers" in the "MemSiz" column.
Additional administrative memory is required for each CPU function library in addition to the amount specified here. The administrative memory can be calculated as follows:
Administrative memory = SyncCallParallelCount * (SyncCallStackSize + SyncCallDataSize)

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

71

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.6

Defining functions and structures of a CPU function library

5.1.6.1

Defining functions a CPU function library

Functions

Functions are defined by the following general lines of code: ODK_RESULT <FunctionName> ([<InOut identifier>] <data type> <tag name>, etc.);
The <project>.odk file contains an example function description by default. You can change this description and/or add more function descriptions. ODK_RESULT MyFunc1([IN] INT param1, [OUT] INT param2);

Syntax rules for functions
The following syntax rules apply to functions within the <project>.odk file:  Note that the function names are case-sensitive.  You can divide function definitions into multiple lines.  End a function definition with a semicolon.  TAB and SPACE are allowed.  Do not define a tag name in a function twice.  Do not use any keywords for the programming language that is used (for example
"EN / ENO" as parameter name)  Use ODK_RESULT only for the return values of the function.  The tag name must start with a letter or an underscore.  Illegal function names are displayed during generation in the development environment.  The following names are not allowed in combination of <STEP 7Prefix> and <function
name>: ODK_Load, ODK_Unld, ODK_ExcA, ODK_ExcS
<FunctionName> Function names are valid with the syntax and character restrictions of the used programming language.

Open Development Kit 1500S V2.5

72

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

<InOut-Identifier>
There are three defined InOut-Identifiers. Use these in the following order: [IN], [OUT], [INOUT]
 [IN]: Specifies an input tag. The tag is copied to the function when it is called. This is constant and cannot be changed.
 [OUT]: Specifies an output tag. The tag is copied back after the function has been completed.
 [INOUT]: Specifies an input and output tag. The tag is copied to the function when it is called. This is not constant and can be changed. The tag is copied back after the function has been completed.
<DataType>
The data type defines the type of a tag. The following tables define the possible data types and their method of representation in C++ or STEP 7:
Elementary data types:

ODK data type
ODK_DOUBLE ODK_FLOAT ODK_INT64 ODK_INT32 ODK_INT16 ODK_INT8 ODK_UINT64

SIMATIC data type LREAL REAL LINT DINT INT SINT ULINT

ODK_UINT32 ODK_UINT16 ODK_UINT8 ODK_LWORD

UDINT UINT USINT LWORD

ODK_DWORD ODK_WORD ODK_BYTE ODK_BOOL ODK_LTIME ODK_TIME ODK_LDT

DWORD WORD BYTE BOOL LTIME TIME LDT

ODK_LTOD

LTOD

ODK_TOD ODK_CHAR

TOD CHAR

C++ data type Description

double float long long long short char unsigned long long unsigned long unsigned short unsigned char unsigned long long unsigned long unsigned short unsigned char unsigned char long long long unsigned long long unsigned long long unsigned long char

64-bit floating point, IEEE 754 32-bit floating point, IEEE 754 64-bit signed integer 32-bit signed integer 16-bit signed integer 8-bit signed integer 64-bit unsigned integer
32-bit unsigned integer 16-bit unsigned integer 8-bit unsigned integer 64-bit bit string
32-bit bit string 16-bit bit string 8-bit bit string 1-bit bit string, remaining bits (1..7) are empty 64-bit during in nanoseconds 32-bit during in milliseconds 64-bit date and time of the day in nanoseconds since 01/01/1970 00:00 64-bit time of the day in nanoseconds since midnight
32-bit time of the day in milliseconds since midnight 8-bit character

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

73

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Complex data types:

ODK data type ODK_DTL

SIMATIC data type
DTL

ODK_S7STRING STRING

ODK_CLASSIC_ VARIANT DB

[ ]

ARRAY

C++ data type Description

ODK_DTL (struct) unsigned char
ODK_CLASSIC_ DB (struct) [ ]

Structure/class for date and time
Character string: · For SIMATIC and C++:
8-bit character with length max. and act. (2xUSINT) · For other languages:
native Classic DB (global or based on UDT)
Range of same data types. You can use all data types as an array except ODK_CLASSIC_DB.

User-defined data types:
User-defined data types (UDT) include structured data, especially the names and data types of this component and their order.
A user-defined data type can be defined in the user interface description with the keyword "ODK_STRUCT".
Example

ODK_STRUCT <StructName>

{

<DataType> <TagName>;

...

};
The following syntax rules apply to the structure:  You can divide the structure into multiple lines.  The structure definition must end with a semicolon.  Any number of tabs and spaces between the elements is permitted.  It is not permitted to use any keywords for the generated language used (for example
"en / eno" as tag name). You can create additional structures within a structure.

<StructName>
Structure names are valid with the syntax and character restrictions of the programming language and as defined for tag definitions in STEP 7.
In STEP 7, the structure name is extended with the STEP 7 prefix.

Open Development Kit 1500S V2.5

74

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library
<TagName>
Tag names are subject to the syntax and character restrictions of the programming language.
Example
The following code example explains the definitions of functions and structures. Sort the parameters by: IN, OUT, INOUT. //INTERFACE ... ODK_STRUCT MyStruct
{ ODK_DWORD myDword; ODK_S7STRING myString;
}; ODK_RESULT MyFct([IN] MyStruct myInStruct
,[OUT] MyStruct myOutStruct);

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

75

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.6.2

Use of ODK_CLASSIC_DB as parameter
The ODK_CLASSIC_DB data type may only be used with the InOut-Identifier [IN] and [INOUT]. If a parameter of data type ODK_CLASSIC_DB with InOut-Identifier [IN] or [INOUT] is used, no other parameters, regardless of the data type, can be used with the same InOutIdentifier.
Example // INTERFACE ... // OK: ODK_RESULT MyFunc1([IN] ODK_CLASSIC_DB myDB); ODK_RESULT MyFunc2([IN] ODK_CLASSIC_DB myDB1, [INOUT] ODK_CLASSIC_DB myDB2); // // NOT OK (Code Generator will throw an error): // ODK_CLASSIC_DB not permitted for [OUT] ODK_RESULT MyFunc3([OUT] ODK_CLASSIC_DB myDB); // if ODK_CLASSIC_DB is used for [IN], no other [IN] parameter may be // defined in this function ODK_RESULT MyFunc4([IN] ODK_CLASSIC_DB myDB, [IN] ODK_INT32 myint);
Application example for C++ #include "ODK_CpuReadData.h" ... ODK_RESULT MyFunc1 (const ODK_CLASSIC_DB& myDB) {
CODK_CpuReadData myReader(&myDB); ODK_INT32 myInt1, myInt2;
myReader.ReadS7DINT(0, myInt1); myReader.ReadS7DINT(4, myInt2);
return myInt1 + myInt2; }
In order to access the data type ODK_CLASSIC_DB within a user function, the helper functions (Page 135) of the following classes are available:
 Class "CODK_CpuReadData"
 Class "CODK_CpuReadWriteData"

Open Development Kit 1500S V2.5

76

Programming and Operating Manual, 12/2017, A5E35253941-AD

5.1.6.3

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Handling strings
You can define a maximum length for strings (String or WString). Define the maximum number of characters in square brackets directly after the data type:
 ODK_S7STRING[30] or
 ODK_S7WSTRING[1000]
Without limitation, a string has a default length of 254 characters.
In order to access the data types ODK_S7STRING or ODK_S7WSTRING within a user function, the string helper functions (Page 135) are available:

Example //INTERFACE ... ODK_RESULT MyFct(
[IN] ODK_S7STRING , [OUT] ODK_S7STRING[10] , [INOUT] ODK_S7STRING[20]

myStrHas254Chars myStrHas10Chars myStrArrayHas20Chars5Times[5]);

If you use [INOUT], you can set the string with a length that differs from the [INOUT of the function block in STEP 7.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

77

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.6.4

Definition of the <Project>.odk file
The function prototypes and function blocks are generated based on the selected parameters in the <project>.odk file. Define the <project>.odk file for this.
By default, the <project>.odk file contains the following:
 Description
The possible data types that are used for the interface are described in comment lines. This simplifies the definition of the correct tag type for your task.
 Context=realtime
The CPU function library is loaded in the context of the realtime environment.
 Trace=on
Specifies the trace function in the CPU function library. A "GetTrace" function block is created by default for use in a STEP 7.
When you define the "ODK_TRACE" instruction (Page 101), it is also compiled and executed. When you define the parameter Trace=on in the <project>.odk file, the instruction is automatically defined with the following code:
#define ODK_TRACE(msg, ...);
Example: ODK_TRACE("number=%d", 13);
Calling the instruction creates an entry in the trace buffer.
 HeapSize
Specifies a memory in KB that can be used as heap for these realtime applications.
 HeapMaxBlockSize
Specifies the maximum memory size in bytes that can be allocated at one time.
 STEP7Prefix="<project>"
Sets a string for the SCL generation in front of the functions of the CPU function library. This is visible in STEP 7. You can change the parameter. The string length of the prefix including function name must not exceed 125 characters (e.g. ODK_App_SampleFunction).
 "SampleFunction" function definition
You can change this default function as you wish in the <project>.odk file and add more functions. The string length may not exceed a length of 125 characters. The associated function is located in the CPP file.

Open Development Kit 1500S V2.5

78

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Example //INTERFACE Context=realtime Trace=on HeapSize=4k HeapMaxBlockSize=1024 STEP7Prefix=ODK_App

/*

* Elementary data types:

*

* ODK_DOUBLE

LREAL 64-bit floating point, IEEE 754

* ODK_FLOAT

REAL

32-bit floating point, IEEE 754

* ODK_INT64

LINT

64-bit signed integer

* ODK_INT32

DINT

32-bit signed integer

* ODK_INT16

INT

16-bit signed integer

* ODK_INT8

SINT

8-bit signed integer

* ODK_UINT64

ULINT 64-bit unsigned integer

* ODK_UINT32

UDINT 32-bit unsigned integer

* ODK_UINT16

UINT

16-bit unsigned integer

* ODK_UINT8

USINT 8-bit unsigned integer

* ODK_LWORD

LWORD 64-bit bit string

* ODK_DWORD

DWORD 32-bit bit string

* ODK_WORD

WORD

16-bit bit string

* ODK_BYTE

BYTE

8-bit bit string

* ODK_BOOL

BOOL

1-bit bit string

* ODK_LTIME

LTIME 64-bit duration in nanoseconds

* ODK_TIME

TIME

32-bit duration in milliseconds

* ODK_LDT

LDT

64 bit date and time of day

*

in nanoseconds

* ODK_LTOD

LTOD

64 bit time of day in nanoseconds

since midnight

* ODK_TOD

TOD

32 bit time of day in milliseconds

since midnight

* ODK_DTL

DTL

structure for date and time

* ODK_CHAR

CHAR

8 bit character

* ODK_S7STRING STRING character string with 8-bit characters

* ODK_CLASSIC_DB VARIANT classic DB (global or based on UDT)

* []

ARRAY field of this datatype

* User Defined Datatype:

* ODK_STRUCT

UDT

user defined structure

* Return data type:

* ODK_RESULT

0x0000 - 0x6FFF function succeeded

*

(ODK_SUCCESS = 0x0000)

*

0xF000 - 0xFFFF function failed

*

(ODK_USER_ERROR_BASE = 0xF000)

*/

ODK_RESULT SampleFunction([IN] ODK_INT32 , [OUT] ODK_BOOL , [INOUT] ODK_DOUBLE

myInt myBool myReal);

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

79

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.6.5

Modifying the <Project>.odk file
The following example shows you how you can change the <Project>.odk file to suit your needs. //INTERFACE Context=realtime Trace=on HeapSize=4k HeapMaxBlockSize=1024 STEP7Prefix=ODK_SampleApp_

ODK_RESULT GetString ([OUT] ODK_S7STRING myString);

ODK_RESULT Calculate ([IN] [IN] [OUT] [OUT] [INOUT] [INOUT]

ODK_INT64 ODK_DOUBLE ODK_FLOAT ODK_INT32 ODK_BYTE ODK_BYTE

In1, In2, Out1, Out2, InOut1[64], InOut2[64]);

5.1.6.6

Comments
Comments are started with a double slash "//" and end automatically at the end of the line.
Alternatively, you can limit comments by /* <comment> */, which enables new lines in a comment. Characters after the end of the comment identifier "*/" are further processed by the code generator.
Comments for Visual Basic are marked with a apostrophe.

Comments for functions and structures
You place comments on functions and structures directly in front of the functions/structures.
These comments are transferred to the ODK_Functions.h and <project>.scl files.
In the <project>.scl file, the comments are copied to the block properties and duplicated in the code area of the function.
Observe the following rules:
 Comments for functions and structures must be located directly in front of the functions/structures (without blank line).
 The end of the comment is located in front of the ODK_RESULT or ODK_STRUCT keyword.
 You can use both identifiers "//" and "/* */" but not in combination within a comment.

Open Development Kit 1500S V2.5

80

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Example // this comment did not appear in MyStruct, because of the empty line.

// comment MyStruct

// ...

ODK_STRUCT MyStruct

{

ODK_DWORD

myDword;

ODK_S7STRING myString;

};

/* comment MyFct ... */ ODK_RESULT MyFct([IN] MyStruct myInStruct
,[OUT] MyStruct myOutStruct);

Comments for tags in functions and structures
Comments for function and structure tags are placed directly in front of or behind the tag. These comments are transferred to the ODK_Functions.h/ and <project>.scl files. The following rules apply to comments in front of tags:  Comments must be located directly in front of the tag (without blank line)  The end of the comment is the <InOut-Identifier> of the tag The following rules apply to comments after tags:  Comments must be located after the tag name (without blank line) The following general rules apply to comments for tags:  You can use both identifiers "//" and "/* */" but not in combination within a comment.  In the header file, the same comment identifier is used ("//" or "/* */").
Example ODK_STRUCT MyStruct {
// comment myDword BEFORE definition ODK_DWORD myDword;
ODK_S7STRING myString; /* comment myString AFTER definition */ };
ODK_RESULT MyFct([IN] MyStruct myInStruct // comment // myInStruct ... // ... "second line"
, [OUT] MyStruct myOutStruct); /* comment myOutStruct ... ...
*/

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

81

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.7

Implementing functions

5.1.7.1

General notes
This section provides an overview of the basic topics relating to the implementation of functions in a realtime environment.
 The function call is limited in time
Since the function is called synchronously, the function call must be adjusted to the timing of the cycle.
 Trace functionality
ODK provides a trace function (Page 101) to check variables or the execution of functions in the realtime environment.
 The execution of synchronous functions can be interrupted by higher priority OBs (Page 96) running in the same CPU.
 Application size
The number of loadable CPU function libraries (Page 70) is limited in the context of the realtime environment.
 C++ Runtime library
Functions that need operating system functionality (threading) cannot be used

5.1.7.2

Callback functions
The project for the realtime CPU function library contains a CPP file (execute file: <project>.cpp) to define your functions. This CPP file contains functions filled by default. You do not necessarily have to fill these with additional user code to be usable. However, neither may the functions be deleted under any circumstances.
The empty function has the following code (using the "OnLoad()" function as an example): ODK_RESULT OnLoad (void) {
// place your code here return ODK_SUCCESS; }
You can define the following functions in the CPP file:
 OnLoad(): Called after loading the CPU function library
 OnUnload(): Called before unloading the CPU function library
 OnRun(): Called when the CPU changes to RUN mode after the OnLoad() function
 OnStop(): Called when the CPU changes to the STOP mode and before the function OnUnload()
The OnStop() function is terminated if the execution takes longer than 50 ms when CPU changes to STOP mode.

Open Development Kit 1500S V2.5

82

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

"OnLoad()" and "OnUnload()" function
The functions have a return value of type "ODK_RESULT" and typically provide information about the status of the "ODK_SUCCESS" value.
The following return values are possible:

Return value for "ODK_RESULT" ODK_SUCCESS = 0x0000
0x0001 ­ 0xEFFF 0xF000 ­ 0xFFFF ODK_USER_ERROR_BASE = 0xF000

Description Return value following a successful execution of the "OnLoad()" or "OnUnload()" function
Invalid values (system-internal)
You can define your own return values.
The loading stops and the CPU function library unloads for the "OnLoad()" function.
The CPU function library within the specified value range is still unloaded for the "OnUnload()" function.

"OnRun()" and "OnStop()" function
The functions have a return value of type "ODK_RESULT" and typically provide information about the status of the "ODK_SUCCESS" value.
The following return values are possible:

Return value for "ODK_RESULT" ODK_SUCCESS = 0x0000
0x0001 ­ 0xFFFF

Description
Default return value for a successful execution of the function "OnRun()" or "OnStop()"
Direct feedback to the user program is not possible because these functions are not called directly by the user at RUN/STOP mode transitions.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

83

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.7.3

Implementing custom functions
Once you have defined the ODK interface in the <project>.odk file, you must edit the functions of the CPU function library in the Project Source file.

Procedure

To edit the function of a CPU function library, follow these steps: 1. To generate the function prototypes, execute the build. 2. Open the project source file, or create a custom source file if necessary. 3. Transfer the function prototypes from <ODK_Functions.h>/<OdkFunctions.cs/vb> to the source file.
Note Use the function prototype macro to transfer the step 3 in the future when there is a change to the function parameters.
4. Edit the code of your CPU function library in the execute file.

CPU function library
The execute file contains a schematically represented function description by default. You can change this description with corresponding changes in the <project>.odk file and/or add more function descriptions.
Execute file based on C++ example #include "ODK_Functions.h"
EXPORT_API ODK_RESULT OnLoad (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnUnload (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnRun (void) {
return ODK_SUCCESS; } EXPORT_API ODK_RESULT OnStop (void) {
return ODK_SUCCESS; } ODK_RESULT SampleFunction( const ODK_INT32& myInt,
ODK_BOOL& myBool, ODK_DOUBLE& myReal) { return ODK_SUCCESS; }

Open Development Kit 1500S V2.5

84

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.7.4

Dynamic memory management

Introduction

ODK objects work with a dynamic memory management (heap). The following instructions and functionalities are supported by using the dynamic memory management:
 The new/delete and malloc/free instructions.
 STL (Standard Template Library)
 Software exceptions
The default setting for the heap size is 4 KB. The heap size can be from 4 KB up to the available memory of the CPU (Page 124). You change the heap size in the <project>.odk file using the following parameters:
 HeapSize
 HeapMaxBlockSize

Special features
Because the used memory area (heap) has been optimized with regard to realtime and cyclic processing, it has some special features:
 Blocks can only be allocated up to a specified size during the compiling time of the ODK object.
Note
You can specify the maximum block size with the HeapMaxBlockSize parameter in <project>.odk. However, this has an effect on the global memory use for CPU function libraries, because the management information of the following memories is required in addition to the actual heap:
size_heap_admin_data = HeapMaxBlockSize * 3
Example: Therefore, with a maximum block size of 100 KB, this project needs 300 KB of global data in addition to the heap. This data is used for heap administration.
You can find additional information under Environment for loading or running the CPU function library (Page 70).
 Blocks can initially be requested in any size. When the blocks are released again, they are entered in free lists. There is a free list in each case for all possible block sizes (up to HeapMaxBlockSize) so that later allocations can be performed in constant time.
There is, however, no merging of neighboring released blocks to form a larger block.
This means continuously recurring requests can be met faster than constantly different requests.
Example: The user allocates only blocks with 8 bytes until the heap is full. The user then releases everything again so that the heap is completely empty. An allocation of a block with 16 bytes is then no longer possible, however, because all free blocks are entered in the free list for 8 bytes and merging is not possible.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

85

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

Example

#include <assert.h> #include <exception> #include <vector> ...
// check parameter assert (NULL != myPointer);
// allocate heap memory with malloc() char* p1 = (char*) malloc(32); if (NULL == p1) {
ODK_TRACE("ERROR: malloc() failed"); } else {
ODK_TRACE("malloc() done"); // free allocated memory free(p1); ODK_TRACE("free() done"); }
// allocate heap memory with new() char* p2 = NULL; try {
p2 = new char [64]; ODK_TRACE("new done"); // delete allocated memory delete[] p2; ODK_TRACE("delete done"); } catch (std::exception& e) { ODK_TRACE("exception: %s", e.what()); } std::vector<int> vec; // empty vector of ints

Open Development Kit 1500S V2.5

86

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library

5.1.7.5

Debug (Test)
You have the possibility to write a custom test to debug the CPU function library for the realtime environment in a Windows environment. This will ensure the quality of the code.

Requirements

You need an Internet connection for this procedure. You need administrator rights for this procedure.

Procedure before the first debug process
To perform a test on a CPU function library for the realtime environment in a Windows environment, perform the following once:
1. Close Eclipse.
2. Open the "bin" folder of your ODK installation.
3. Run the "MinGW32_Install.cmd" file with the "Run as administrator" command from the shortcut menu.
A text editing dialog opens. The Windows prompt installs all necessary components.

4. Click on any button. MinGW32 is installed.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

87

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library Basic procedure
To perform the test, proceed as follows: 1. Open your project in Eclipse. 2. Change the debug environment to "Windows". To do this, select the "debug (win32)"
option in menu "Project > Build Configurations > Set Active".
3. Create the project as debug version. To do so, select the "Build Project" command in the "Project " menu.
4. If you debug the project for the first time, you must now set the debug configuration. Otherwise, continue with step 8.
5. To do this, select the "Debug Configurations" command in the "Run" menu. The "Debug Configurations" dialog opens.
6. To create a new application, select the entry "C/C++ Application" and select the "New" command in the context menu.
7. Configure your test environment.

Open Development Kit 1500S V2.5

88

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.1 Creating a CPU function library
8. Click the "Search Project" button to select your application.

9. Start the debug process by clicking the "Debug" button.
10.If you want to debug your project again, select the "Local C/C++ Application" command in the menu "Run > Debug as".

Result

Eclipse suggests a change in the debug perspective.
The test code is executed. The test code for the test is compiled only in the debug environment and is implemented in the "main()" function. This function is located in the <project>.cpp file.
The "main()" function offers you the following possibilities:
 Test data are provided and results can be reviewed.
 You can monitor tags of the function.
 You can use breakpoints to check the execution.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

89

Developing a CPU function library for the realtime environment 5.2 Transferring a CPU function library to the target system

Test code

The following sample code shows the default contents of the "main()" function. /*
* main() is defined for windows debugging, only. * Therefore all automatically invoked functions * (OnLoad, OnRun, OnStop, OnUnload) have to be called manually. */ #ifdef _DEBUG int main (int argc, char* argv[]) {
ODK_RESULT ret = ODK_SUCCESS; ret = OnLoad(); // error handling ret = OnRun(); // error handling
// place your test code here
ret = OnStop(); // error handling ret = OnUnload(); // error handling return ret; } #endif // _DEBUG

5.2

Transferring a CPU function library to the target system

Procedure

Manually transfer the SO file to the target system. Use the file explorer of the web server of the CPU to transfer the CPU function library. To transfer an SO file, follow these steps: 1. Enable the Web server in your STEP 7 project. 2. Open the web server of the CPU in the browser. 3. Open the "Filebrowser" menu.

Open Development Kit 1500S V2.5

90

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.2 Transferring a CPU function library to the target system
4. Open the following directory as the storage location for the CPU function libraries: \ODK1500S\

Figure 5-3 Transferring the SO file via the file explorer from the web server of the CPU
5. Click the "Browse" button. 6. Navigate in the file system to the SO file or copy the location from the properties of the
SO file in Eclipse. 7. Confirm the transfer of the SO file to the web server of the CPU by pressing the "Load
File" button.

Result

The SO file is transferred to the load memory of the CPU.
After a successful transfer, the SO file is loaded by calling the "<STEP7Prefix>_Load" instruction.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

91

Developing a CPU function library for the realtime environment 5.3 Importing and generating an SCL file in STEP 7

5.3

Importing and generating an SCL file in STEP 7

When generating the project data, the following files are created:

 SCL file for importing into STEP 7

 All files depending on the configuration, e.g. SO file

If STEP 7 is installed on another PC as the development environment, you must transfer the generated SCL file to the PC where the STEP 7 is installed.

Requirements
The project data were generated.

Procedure

To import and compile the SCL file, follow these steps: 1. Start STEP 7. 2. Open your project. 3. Select the project view. 4. Select the CPU in the project tree. 5. Select the "External Sources" subfolder.
The "Open" dialog box opens. 6. Navigate in the file system to the SCL file that was created during generation of the
project data or copy the storage location from the properties of the SCL file to Eclipse. 7. Confirm your selection with "Open".
The SCL file is imported. After completion of the import process, the SCL file is displayed in the "External Sources" folder. 8. Compile the SCL file before you use the blocks in your project. 9. To do this, select the SCL file in "External sources" subfolder. 10.Select the "Generate blocks from source" command in the shortcut menu.

Result

STEP 7 creates the S7 blocks based on the selected SCL file.
The "GetTrace" function block, which makes it possible to read the trace buffer, is created by default.
The created blocks are now automatically displayed in the "Program blocks" folder below the selected CPU in the project tree. You can load the function blocks during the next download to the target device.

Open Development Kit 1500S V2.5

92

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.4 Executing a function

5.4

Executing a function

5.4.1

Loading functions

Introduction

Regardless of the context in which the CPU function library is running, the loading procedure consists of the following steps:
 Call the "<STEP7Prefix>_Load" instruction in the STEP 7 user program.
 The loading process takes place synchronously
To avoid influencing the cycle time, load the CPU function library in startup OB (e.g. OB 100).
If the CPU function library has to be loaded in a cyclic OB (for example, OB 1), note the following loading times:

CPU CPU 1505SP CPU 1507S (with SSD)

Small SO file  Loading time 0.5 MB  20 ms 0.5 MB  20 ms

Large SO file  Loading time 3 MB  70 ms 5 MB  100 ms

 As soon as the "<STEP7Prefix>_Load" instruction returns after the first call, the CPU function library is loaded.

Note
Loading the same CPU function libraries with a modified <project>.odk file
When you load a CPU function library and subsequently change the <project>.odk file, we recommend that you unload your CPU function library first before you load the newly generated CPU function library. If the "<STEP7Prefix>_Unload" instruction is not executed, both CPU function libraries are in the memory. This can lead to insufficient memory being available for the CPU.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

93

Developing a CPU function library for the realtime environment 5.4 Executing a function

"<STEP7Prefix>_Load" instruction
A CPU function library is loaded by calling the "<STEP7Prefix>_Load" instruction in the STEP 7 user program.

REQ

<STEP7Prefix>_Load

DONE BUSY ERROR STATUS

The following table shows the parameters of the instruction "<STEP7Prefix>_Load":

Section Input Output Output Output
Output

Declaration REQ DONE BUSY ERROR
STATUS

Data type BOOL BOOL BOOL BOOL
INT

Description A rising edge activates the loading of the CPU function library.
Indicates that the instruction has finished loading the CPU function library.
Indicates that the instruction is still loading the CPU function library.
Indicates that an error occurred during the loading of the CPU function library. STATUS gives you more information about the possible cause of the error.
Provides information about possible sources of error, if an error occurs during the loading of the CPU function library.

Input parameters
An edge transition (0 to 1) at the "REQ" input parameter starts the function.

Open Development Kit 1500S V2.5

94

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.4 Executing a function

Output parameters
The following table shows the information that is returned after loading.

DONE 0 1 1 0

BUSY 0 0 0 0

ERROR 0 0 0 1

STATUS 0x7000 =28672 0x7100 =28928 0x0000 =0 0x80A4 =-32604 0x80C3 =-32573
0x8090 =-32624 0x8092 =-32622 0x8093 =-32621 0x8095 =-32619

Meaning No active loading
CPU 1500 V2.0 and later: CPU function library is already loaded. Loading was performed successfully.
CPU function library could not be loaded.
CPU function library could not be loaded. The CPU currently does not have enough resources. Unload the CPU function library before you load a new CPU function library or restart the CPU. CPU function library could not be loaded. An exception occurred during execution of the "OnLoad()" function. CPU function library could not be loaded because the library name is invalid. CPU function library could not be loaded because the CPU function library could not be found. Check the file name and path of the file. CPU function library could not be loaded due to the following reasons: · The SO file is not a CPU function library.

· The CPU does not support the utilized ODK version.

0x8096 =-32618

The CPU function library could not be loaded because the internal identification is already being used by another loaded CPU function library.

0x8097

CPU 1500 V1.8 and earlier:

=-32617 CPU function library is already loaded.

0x8098 =-32616

CPU function library could not be loaded because the CPU function library is currently being unloaded.

0x8099 =-32615

Unable to load the CPU function library because the instruction was not called in an OB with lowest priority. Use a Startup OB (e.g. OB100) or a Program cycle OB (e.g. OB1).

0x809B

CPU 1500 V2.0 and later:

=-32613

The CPU function library could not be loaded and returns an invalid value (the values 0x0000 and 0xF000 - 0xFFFF are allowed)

0xF000 ­ CPU 1500 V2.0 and later:

0xFFFF

CPU function library could not be loaded. An error occurred during

=-4096 ­ -1 execution of the "OnLoad()" function.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

95

Developing a CPU function library for the realtime environment 5.4 Executing a function

5.4.2

Calling functions

Introduction

Once the CPU function library is loaded, you can execute C functions via your STEP 7 user program. This call is made from the corresponding "<STEP7Prefix>SampleFunction" instruction.

Figure 5-4 Calling functions
The execution of synchronous functions can be interrupted by higher priority OBs running in the same CPU.  Call another ODK function  Call the same function
Therefore, when creating your CPU function library make sure that the function calls are implemented as re-entrant or avoid parallel execution. If you implement more than the number of parallel calls set in "SyncCallParallelCount", the function returns the status 0x80C3.

Open Development Kit 1500S V2.5

96

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.4 Executing a function

"<STEP7Prefix>SampleFunction" instruction
A CPU function library is called by the "<STEP7Prefix>SampleFunction" instruction.

myInt myReal

<STEP7Prefix>SampleFunction

The following table shows the parameters of the instruction "<STEP7Prefix>SampleFunction":

STATUS myBool

Section

Declaration Data type

Automatically generated parameters

Output

STATUS

INT

User-defined parameter

Input

myInt

InOut

myReal

Output

myBool

Description
This output value provides information about possible sources of error, if an error occurs during the execution of the CPU function library.
User-defined input tags User-defined input-output tags User-defined output tags

Output parameters The "<STEP7Prefix>SampleFunction" instruction only has the "STATUS" output parameter.
The following table shows the information for the output parameter returned after execution.

STATUS 0x0000 ­ 0x6FFF =0 ­ 28671 0x80A4 =-32604
0x80C3 =-32573 0x8090 =-32624
0x8091 =-32623

Meaning Function has been executed and returns a value between 0x0000 and 0x6FFF. (ODK_SUCCESS = 0x0000)
CPU function library could not be executed for the following reasons:
· A stack overflow was detected after execution of the function. To avoid sequential errors, unload the CPU function library. The developer of the CPU function library must ensure that the stack is not overwritten.
· The "<STEP7Prefix>_Unload" instruction was executed during a function execution. The execution of the function was interrupted and terminated immediately. No return value is sent to the CPU.
Wait until the "<STEP7Prefix>_Unload" instruction has ended. Then load the CPU function library again. CPU function library could not be executed. The CPU currently does not have enough resources. Pay attention to the maximum number of parallel calls (SyncCallParallelCount). CPU function library could not be executed. An exception occurred during execution. Each unhandled exception reduces the available heap size. An unhandled exception can damage the CPU function library and lead to this no longer being used for further calls. The CPU function library must be unloaded. The developer of the CPU function library must handle the exception and deliver an application-specific error value. CPU function library could not be executed. A "STOP" occurred during the function call.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

97

Developing a CPU function library for the realtime environment 5.4 Executing a function

STATUS 0x8096 =-32618 0x8098 =-32616
0x8099 =-32615 0x809A =-32614 0x809B =-32613 0xF000 ­ 0xFFFF =-4096 ­ -1

Meaning CPU function library could not be executed because the CPU function library was not loaded or unloading is not yet finished.
CPU function library could not be executed because the CPU function library is different than the ODK instructions (FBs) in STEP 7:
· older · newer · different parameters
CPU function libraries could not be executed because the maximum amount of input data (SyncCallDataSize) was exceeded (declarations with "In" and "InOut").
CPU function libraries could not be executed because the maximum amount of data (SyncCallDataSize) was exceeded (declarations with "In", "Out" and "InOut").
The function returns an invalid value (a value between 0x0000 and 0x6FFF; 0xF000 and 0xFFFF is allowed).
CPU 1500 V2.0 and later: The function could not be executed and returns a value between 0xF000 and 0xFFFF. (ODK_USER_ERROR_BASE = 0xF000)

Note Call of function(s) influences the cycle time
When you call a function, the function parameters are copied. In particular in the case of large amounts of data or of structured data, this can lead to the cycle time being influenced.

Open Development Kit 1500S V2.5

98

Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.4 Executing a function

5.4.3

Unloading functions

Introduction

The CPU function library is unloaded by calling the "<STEP7Prefix>_Unload" instruction. Call is made from the STEP 7 user program.
In addition to this call, the CPU function library is also automatically unloaded for the following reasons.
 The CPU is switched off
 The CPU is reset
Regardless of the context in which the CPU function library is running, the unloading procedure consists of the following steps:
 Call the "<STEP7Prefix>_Unload" instruction in the STEP 7 user program.
 From now on, no new executes can be carried out for this CPU function library. Executions still running are aborted. The execution of the function is interrupted and terminated immediately. No return value is sent to the CPU.
 The host calls the "OnStop()" and "OnUnload()" functions.
The unloading of the cycle time can be influenced because the "OnStop()" and "OnUnload()" functions are called synchronously.
 The CPU function library is being unloaded.

"<STEP7Prefix>_Unload" instruction
A CPU function library is unloaded by calling the "<STEP7Prefix>_Unload" instruction in the STEP 7 user program.

REQ

<STEP7Prefix>_Unload

DONE BUSY ERROR STATUS

The following table shows the parameters of the instruction "<STEP7Prefix>_Unload":

Section Input Output Output Output
Output

Declaration REQ DONE BUSY ERROR
STATUS

Data type BOOL BOOL BOOL BOOL
INT

Description A rising edge activates the unloading of the CPU function library.
Indicates that the instruction has finished unloading the CPU function library.
Indicates that the instruction is still unloading the CPU function library.
Indicates that an error occurred during the unloading of the CPU function library. STATUS gives you more information about the possible cause.
Provides information about possible sources of error, if an error occurs during the unloading of the CPU function library.

Open Development Kit 1500S V2.5

Programming and Operating Manual, 12/2017, A5E35253941-AD

99

Developing a CPU function library for the realtime environment 5.4 Executing a function

Input parameters
An edge transition (0 to 1) at the "REQ" input parameter starts the function.

Output parameter STATUS
The following table shows the information that is returned after unloading.

DONE 0 0 0 1 0

BUSY 0 1 1 0 0

ERROR 0 0 0 0 1

STATUS 0x7000 =28672 0x7001 =28673 0x7002 =28674 0x0000 =0 0x80A4 =-32604
0x80C3 =-32573 0x8090 =-32624 0x8096 =-32618 0x809B =-32613
0xF000 ­ 0xFFFF =-4096 ­ -1

Meaning No active unloading
Unloading in progress, the first call
Unloading in progress, ongoing call
Unloading was carried out successfully
CPU function library could not be unloaded. A communication error between the CPU and ODK occurred during the execution of the "OnUnload()" function. CPU function library could not be unloaded. The CPU currently does not have enough resources. An exception occurred during the unloading of the CPU function library. The CPU function library has been unloaded nevertheless. CPU function library could not be unloaded because the CPU function library was not loaded or unloading is not yet finished. CPU 1500 V2.0 and later: The CPU function library could be unloaded and returns an invalid value (the values 0x0000 and 0xF000 - 0xFFFF are allowed) CPU 1500 V2.0 and later: CPU function library could be unloaded. An error occurred in the CPU function library during the execution of the "OnUnload()" function.

100

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.4 Executing a function

5.4.4

Reading the trace buffer
ODK provides a trace function to check variables or the execution of functions in the realtime environment. The trace function supports the following elements:  An integrated trace buffer for each CPU function library.  An "ODK_TRACE" instruction that you can add to your code  A "GetTrace" function block, which makes it possible to read the trace buffer

"ODK_TRACE" instruction
If you define the "ODK_TRACE" instruction, it is also compiled and executed. When you define the parameter Trace=on in the <project>.odk file, the instruction is automatically defined with the following code: #define ODK_TRACE(msg, ...);
Example: ODK_TRACE("number=%d", 13);
Calling the instruction creates an entry in the trace buffer.
When you define the parameter Trace=off in the <project>.odk file, no trace data is written.
Trace data is written automatically when an exception occurs.

Reading the trace buffer
The "GetTrace" function block enables you to read the trace buffer. The entries of the trace buffer can be read in the following ways:  By a variable table in the web server of the CPU  By a variable table in STEP 7 (online)  On an HMI display The function block is included in the standard CPP file "<project>.cpp".

TraceCount

GetTrace STATUS

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

101

Developing a CPU function library for the realtime environment 5.4 Executing a function

Section Output Input Output

The following table shows the parameters of the "GetTrace" function block:

Declaration STATUS TraceCount TraceBuffer

Data type Description

INT

Number of trace entries actually read

INT

Number of trace entries to be read

Array [0..255] of String[125]

Trace string array for the user Each trace string consists of: · Date

· Time-of-day

· OB number

· File name

· Line number

· Trace text (trace implemented by the user)

Define the function block in the SCL file as follows: #ret := "ODK_App_MyFct_DB_1"(myInt:=4); IF (#ret > 0) { #ret := "ODK_App_GetTraces_DB_1"(TraceCount:=20); // ret_val = number of entries }
When the "GetTrace" function block is called in STEP 7, the instance block appears as follows:

102

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

5.5
5.5.1

Developing a CPU function library for the realtime environment 5.5 Post Mortem analysis
Post Mortem analysis
Introduction
You use the post mortem analysis to evaluate the system after an exception. The post mortem files map a snapshot at the time of the exception. You can analyze the dump with the post mortem analysis. It includes, for example:  Register  Stack  Local/global data  Transfer parameters  The exception number under "g_PostMortemExceptionNr" in the window "Expressions" An exception can be triggered by one of the following cases:  Execution of an illegal command
­ Division by zero ­ Access to protected memory  An exception triggered by the "throw" instruction but not handled by the "try...catch" instruction The objective of the post mortem analysis is to find the error within the CPU function library that caused the exception.
NOTICE Exception influences the cycle time When an exception occurs in your application, the complete application memory is buffered. This may take some milliseconds and influence the cycle time.
The post mortem files for the snapshot of the first exception are not created until the CPU changes from RUN to STOP. You can use it for the following post mortem analysis. They are stored in the following directory: <load memory>/ODK1500S The following files are created or overwritten during this process and can, for example, be downloaded via the web server:  <project>.ed
Binary dump of the shared object in which the exception has occurred  <project>.es
Stack at the time of the exception  <project>.er
Script for restoring the snapshot at the time of the exception

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

103

Developing a CPU function library for the realtime environment 5.5 Post Mortem analysis
NOTICE Insufficient load memory When there is not enough load memory, the post mortem files are not saved properly. Make sure that you have enough load memory for your applications.

5.5.2

Execute post mortem analysis

Procedure

To run a post mortem analysis, follow these steps:
1. Open Eclipse.
2. Load the post mortem files to the engineering PC via the web server. Load these files to the same directory in which the SO file is stored.

3. Select the required project.

104

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.5 Post Mortem analysis
4. Start the debugging in one of the following ways: ­ From Favorites:
­ Using "Debug Configurations"

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

105

Developing a CPU function library for the realtime environment 5.5 Post Mortem analysis
When you start a debug process for the first time, a dialog opens prompting you to select the required launch environment. Select the item "GDB (DSF) Hardware Debugging Launcher".
A dialog opens showing you the progress of the loading process for the post mortem image. The loading process can take several minutes, depending on the size of the post mortem image. 5. Select the required debug view.

106

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Developing a CPU function library for the realtime environment 5.5 Post Mortem analysis
6. Run the debug process.

The exception number is displayed as "g_PostMortemExceptionNr" in the window "Expressions".

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

107

Development of a C/C++ runtime application

6

6.1

Install additional Eclipse plugins

Requirement

 ODK is installed.  The Eclipse development environment is installed.

Procedure

1. Start Eclipse as a development environment. 2. Select the command "Install New Software..." in the menu bar under "Help".
The "Install" dialog opens. 3. Select the "--All Available Sites--" selection under "Work with:".

108

Figure 6-1 Install dialog

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Result

Development of a C/C++ runtime application 6.2 Create C/C++ application
4. Select the following plugins: ­ C/C++ Remote Launch ­ TCF Target Explorer ­ TCF Remote System Explorer You can filter the selection via the text box.
5. Confirm with "Next". 6. Accept the license provisions and install the plugin with "Finish".
The plugins are installed and Eclipse restarted.

6.2

Create C/C++ application

6.2.1

Requirements
 ODK is installed.  The Eclipse development environment is installed.  Additional Eclipse plugins are installed.  SSH client (for example, PuTTY) is installed.
Note Root rights The default user and the C/C++ application must not have any root rights. Create a new user to execute the C/C++ application. Performance and jitter influence through C/C++ application Depending on the programming type in the C/C++ application, CPU performance may be influenced by jitter. Know-how protection The customer is responsible for the C/C++ application and its know-how protection.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

109

Development of a C/C++ runtime application 6.2 Create C/C++ application

6.2.2

Creating a C/C++ Runtime Application project
A template for an Eclipse project is included in the installation of ODK 1500S to help you develop a C/C++ runtime application.

Procedure

To create a project in Eclipse using a C++-project ODK template, follow these steps: 1. Start Eclipse as a development environment. 2. In the "File > New" menu, select the command "Project..."
The "New Project" dialog opens.

Figure 6-2 Creating a new project with Eclipse 3. Select "C++ Project for MFP Linux application (CPU 1518MFP)" and confirm with "Next".

Figure 6-3 Selecting a template
4. Enter a project name. 5. Confirm with "Finish".

110

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Result

Development of a C/C++ runtime application 6.2 Create C/C++ application

The C/C++ project is created using the template for the C/C++ runtime application.
The template for the C/C++ runtime application configures the following data structure by default:

Project Explorer Project name:
src

<project>.cpp

launches
MFP 1518_release

<project>.gdb.launch
"<project>"

Description
Function code: This file always has the suffix CPP, regardless of whether you are creating a C or C++ project. Start for the post mortem analysis.
C/C++ Runtime Application Binary (release version) that must be transferred to the target system.

Note Spaces in the project name All spaces in the project name are automatically replaced by an underscore. In the example, "My first project" becomes "My_first_project".
Note If you need to store the workspace at another storage location, ensure that you copy the entire workspace.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

111

Development of a C/C++ runtime application 6.2 Create C/C++ application

6.2.3

Editing C/C++ code

Requirement

 You have created a project.  Eclipse is open

Procedure

1. Select the "<project>.cpp" file in the project folder under "src". The editing mask opens.

Figure 6-4 Editing a project 2. Edit the code.

112

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Development of a C/C++ runtime application 6.2 Create C/C++ application
3. To add the new C/C++ files to the project, right-click on the "src" folder and select "New > Source File" from the shortcut menu. The "New Source File" dialog opens.

Figure 6-5 Dialog box New Source File
4. Enter a name for the CPP file in the "Source File" and confirm with "Finish". The new CPP file is stored in the "src" folder.

6.2.4

Generate C/C++ runtime application
The generation of the project data runs in an automated "Build" and generates the C/C++ runtime application.

Requirement

A project has been created for the C/C++ runtime application.

Procedure

To generate the project data, follow these steps: 1. Select the project for the C/C++ runtime application. 2. Select the "Build Project" command in the "Project" menu in the system bar.
You can also select the "Build Project" command by right-clicking on the project for the C/C++ Runtime Application in the shortcut menu.
Note The project data is only generated if you have changed the files.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

113

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system

Result

The generation of the project data starts. The automatically generated files are stored in the file system.

6.3

Load C/C++ runtime application in the target system

6.3.1

Configuring PuTTY
You require a configured SSH client to establish a secure connection between Eclipse and the C++ Runtime of the CPU 1518MFP (for example, PuTTY).

Procedure based on "PuTTY" example
1. Start PuTTY. 2. Enter the target address "Host Name (or IP address)" (default address: 192.168.15.18) in
the text box. This is the IP address of the C/C++ Runtime and not the project IP address of the CPU. 3. Make sure that the following default settings are retained: ­ Port: 22 ­ Connection type: SSH

114

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system
4. To identify the PuTTY window and to create the association of the connection to the CPU in Eclipse, enter the title "CPU 1518MFP Linux Secure Connection" in the category "Window > Behavior" in the text box "Window title".
5. Enter the following values in the category "Connection > SSH > Tunnels". ­ Under "Source port" "1534" or "2345". ­ Under "Destination" "localhost:1534" or "localhost: 2345". In each case, confirm the entries with "Add".

6. Enter "CPU-1518MFP-Linux-Secure-Connection" in the category "Session" under "Saved Sessions" and confirm it with "Save".
7. To log on to the CPU 1518MFP, click "Open".

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

115

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system

6.3.2

Commissioning C/C++ Runtime

Requirement

 You have started the CPU 1518-4 PN/DP MFP (F).

Procedure

1. Start the secure shell client (for example, PuTTY).
2. Connect the secure shell client to the CPU 1518-4 PN/DP MFP (F) using the PuTTY configuration "CPU 1518MFP Linux Secure Connection" via the target address (default address: 192.168.15.18).
3. Type in the user name and password and establish a secure shell connection.
The default user name is "root".
The default password is displayed under "Overview > MFP > Default Password:".
4. Change the default password after the first startup of the CPU.
5. The CPU uses the default address 192.168.15.18 (static IP address).
To change the default address or activate DHCP, proceed as follows:
­ Open the script "network.sh" in the directory "/etc/mfp/etc". Edit the default address in the script:
#!/bin/sh ip address add 192.168.15.18/24 dev br0 # dhclient -i br0
Restart C/C++ Runtime to ensure that the CPU is accessible under the new IP address.
­ To activate DHCP, remove the hash "#" in front of dhclient -i br0 and comment out the line "ip address add 192.168.15.18/24 dev br0".
6. Start the TCF Agent with the following command:
/usr/sbin/tcf-agent ­d ­L- ­l0 ­sTCP:localhost
Note Automatic starting of the TCF agent
To automatically start the TCF Agent during startup, enter the command "/usr/sbin/tcfagent ­d ­L- ­l0 ­sTCP:localhost" in the script file "autostart.sh" (Page 121) in the directory "/home/<user>".
7. On the CPU 1518-4 PN/DP MFP (F), in the directory "/home/<user>" create a folder in which to load the application.

Reference

You can find more information on commissioning and the CPU 1518-4 PN/DP MFP (F) in the CPU manual (http://support.automation.siemens.com/WW/view/en/109749061).

116

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system

6.3.3

Set up new connection to the target system in Eclipse

Requirements

 An MFP is created in Eclipse.  An MFP is generated in Eclipse.

Procedure

Create a C/C++ remote application connection to the CPU 1518-4 PN/DP MFP (F). 1. Select the "Run Configurations..." command in the "Run" menu in the system bar.
The "Run Configurations" dialog opens. 2. Configure your connection.

Figure 6-6 "Run Configurations" dialog with example configuration of a connection

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

117

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system
3. To set up a new connection, click "New" in the "Main" tab under "Connection". The "New Connection" dialog opens.
4. Select "TCF" and confirm with "Next". 5. Fill the dialog as in the following figure and confirm with "Finish".

Result

Figure 6-7 New connection dialog 6. In the "Run Configurations" dialog, select the connection "localhost" under "Connections". 7. Apply the configuration settings with "Apply"
A new connection to target system has been established.

118

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system

6.3.4

Load and execute C/C++ runtime application in the target system via Eclipse

Procedure

Transfer the C/C++ runtime application to the target system. 1. Select the "Run Configurations..." command in the "Run" menu in the system bar.
The "Run Configurations" dialog opens. 2. Select the required configuration under "C/C++ Remote Application". 3. Run the loading process with "Run".

Result

Your program is executed on the CPU 1518-4 PN/DP MFP (F).

6.3.5

Load and debug C/C++ runtime application in the target system via Eclipse
To debug C/C++ applications, you have the option to write a custom test. This will ensure the quality of the code.

Procedure

To perform the test, proceed as follows: 1. Open your project in Eclipse. 2. In the "Run" menu, select the command "Debug Configurations".
The "Debug Configurations" dialog opens. 3. If you debug the project for the first time, you must now set the debug configuration.
Otherwise, continue with step 5.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

119

Development of a C/C++ runtime application 6.3 Load C/C++ runtime application in the target system
4. Configure your connection in the "Main" tab as described under Set up new connection to the target system in Eclipse (Page 117).

Result
120

Figure 6-8 Configuring the connection 5. Select the required configuration under "C/C++ Remote Application". 6. Start the debug process by clicking the "Debug" button.
Eclipse suggests a change in the debug perspective. The test code is executed.
Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Development of a C/C++ runtime application 6.4 Execute C/C++ runtime application

6.4

Execute C/C++ runtime application

6.4.1

Starting the application automatically
You can create an Autostart file which automatically calls the C/C++ Runtime Application during the startup of the C/C++ Runtime environment.

Procedure

1. Create a Shell Script file "autostart.sh". Example for the content of the file "autostart.sh":
#!/bin/sh echo "Hello world"
2. Save the file "autostart.sh" in the directory "/home/<user>".

Result

The "autostart.sh" file is called during the startup of the C/C++ Runtime environment at the end of the boot process.

6.4.2

Start application via secure shell

Requirement

The CPU is connected to a secure shell client.

Procedure

1. Open the secure shell client.
2. To decouple the application from the secure shell, enter the command "nohup" before calling the application.
3. Call the application via the secure shell client.

Result

The CPU executes the application.
Note The CPU executes the application also after the secure shell client has terminated.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

121

Development of a C/C++ runtime application 6.4 Execute C/C++ runtime application

122

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Using example projects

7

To facilitate your introduction , ODK 1500S offers example projects for both development environments. The example projects consist of the following elements:  A project for Microsoft Visual Studio or Eclipse  A compiled binary and SCL source that enables you to immediately test the example
projects  A STEP 7 example project
Storage location of example projects
 The example projects for the CPU function libraries are available on the Internet (https://support.industry.siemens.com/cs/document/106192387/simatic-odk-1500sexamples?dti=0&lc=en-WW) for download.
 The example projects for C/C++ runtime applications are available on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109749176) for download.
Using example projects
To open the example projects, follow these steps: 1. Transfer the example projects onto the hard disk of your PC. 2. Transfer the C/C++ runtime application, DLL or SO file to the target system.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

123

General conditions

A

A.1

Number of loadable CPU function libraries
You can load up to 32 CPU function libraries for Windows and realtime environment. Configuration limits for CPU function libraries:  CPU function libraries for the Windows environment:
­ Up to 32 parallel function calls (total) ­ Up to 1 MB input and output data (in total) ­ Up to 1 MB input data per function call ­ Up to 1 MB output data per function call

Note The memory for input and output parameters is allocated dynamically, depending on the quantity needed. The memory is allocated here in blocks of 8 KB each.
 Development of a CPU function library for the real time environment ­ Parallel function calls in a CPU function library defined by the parameter "SyncCallParallelCount" ­ Up to 32 parallel function calls (in total) ­ Up to 1 MB input data and output data per function call
Memory for loading CPU function libraries The available memory for loading of CPU function libraries is limited in the context of the real time environment. The table below provides an overview of the available memory of the different CPUs for loading CPU function libraries:

CPU CPU 1505SP (T)(F)
CPU 1507S (F)
CPU 1518-4 PN/DP MFP (F)

Memory available for loading 20 MB 50 MB 50 MB

Maximum size of the SO file 5.8 MB 9.8 MB 9.8 MB

The following restrictions are also in effect in the context of the realtime environment:

 SO file name may not exceed 56 characters.

124

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

A.2

General conditions A.2 Compatibility
Compatibility
If you use an ODK version V2.5, note the following:  Engineering:
A CPU function library project that was created with an ODK version < V2.5 is not compatible. You need to recreate a CPU function library in the version V2.5.  Runtime: A CPU function library that was created with an ODK version < V2.5 is not compatible with newer CPU versions.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

125

Syntax Interface file <project>.odk for CPU function libraries

B

B.1

Data types
The data type defines the type of a tag. The following table defines the possible data types and their representation in the individual program languages or in C++ or STEP 7:
Elementary data types:

ODK data type ODK_DOUBLE

SIMATIC data type
LREAL

C++ data type double

C# data type double

ODK_FLOAT REAL

float

float

ODK_INT64 ODK_INT32 ODK_INT16 ODK_INT8 ODK_UINT64 ODK_UINT32 ODK_UINT16 ODK_UINT8 ODK_LWORD ODK_DWORD ODK_WORD ODK_BYTE ODK_BOOL

LINT DINT INT SINT ULINT UDINT UINT USINT LWORD DWORD WORD BYTE BOOL

long long long short char unsigned long long unsigned long unsigned short unsigned char unsigned long long unsigned long unsigned short unsigned char unsigned char

long int short sbyte ulong uint ushort byte ulong uint ushort byte bool

ODK_LTIME LTIME

long long

long

ODK_TIME ODK_LDT

TIME LDT

long

int

unsigned long long ulong

ODK_LTOD

LTOD

unsigned long long ulong

ODK_TOD

TOD

unsigned long

uint

ODK_WCHAR WCHAR

wchar_t

char

ODK_CHAR CHAR

char

sbyte

VB data type
Double
Single
Long Integer Short SByte ULong UInteger UShort Byte ULong UInteger UShort Byte Boolean
Long
Integer ULong
ULong
UInteger
Char
SByte

Description
64-bit floating point, IEEE 754 32-bit floating point, IEEE 754 64-bit signed integer 32-bit signed integer 16-bit signed integer 8-bit signed integer 64-bit unsigned integer 32-bit unsigned integer 16-bit unsigned integer 8-bit unsigned integer 64-bit bit string 32-bit bit string 16-bit bit string 8-bit bit string 1-bit bit string, remaining bits (1..7) are empty 64-bit during in nanoseconds 32-bit during in milliseconds 64-bit date and time of the day in nanoseconds 64-bit time of the day in nanoseconds since midnight 32-bit time of the day in milliseconds since midnight Only for Windows: 16-bit character 8-bit character

126

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Syntax Interface file <project>.odk for CPU function libraries B.1 Data types

Complex data types:

ODK data type ODK_DTL

SIMATIC data type
DTL

ODK_S7STRING STRING

C++ data type struct ODK_DTL unsigned char

C# data type
OdkInternal. Dtl (class) string

ODK_S7WSTRING WSTRING unsigned short

string

ODK_VARIANT

VARIANT

struct ODK_VARIANT

byte [ ]

ODK_CLASSIC_D VARIANT B

[ ]

ARRAY

struct

-

ODK_CLASSIC_DB

[ ]

[ ]

VB data type Description

OdkInternal. Dtl (class) String String
byte [ ]
[ ]

Structure for date and time
Character string (8-bit character) with max. and act. length (2xUSINT)
Only for Windows: Character string (16-bit character) with max. and act. length (2xUINT)
For Windows only: Classic data (each data type that can be serialized with classic data.)
Only for realtime environment: Classic DB (global or based on UDT)
Range of same data types.
The maximum number of array elements is 220 (=1,048,576).
You can use all data types as array except IN_DATA / INOUT_DATA / OUT_DATA.

User-defined data types:

User-defined data types (UDT) include structured data, especially the names and the data types of this component and their order.

A user-defined data type can be defined in the user interface description with the keyword "ODK_STRUCT".

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

127

Syntax Interface file <project>.odk for CPU function libraries B.1 Data types
Example
ODK_STRUCT <StructName>
{
<DataType> <TagName>;
...
};
The following syntax rules apply to the structure:  You can divide the structure into multiple lines.  The structure definition must end with a semicolon.  Any number of tabs and spaces between the elements is permitted.  It is not permitted to use any keywords for the generated language used (for example
"en / eno" as tag name). Restrictions of the data type ODK_VARIANT:  When a parameter of the data type ODK_VARIANT is used, it is not permitted to use
other parameters with the same InOut-Identifier, regardless of data type.  With the data type ODK_VARIANT, an [OUT] is modeled as [INOUT] in the generated FB. Restrictions of the data type ODK_CLASSIC_DB:  The data type ODK_CLASSIC_DB can only be used with the InOut-Identifier [IN] and
[INOUT].  When a parameter of the data type ODK_CLASSIC_DB is used with the InOut-Identifier
[IN] or [INOUT], it is not permitted to use other parameters with the same InOut-Identifier, regardless of data type.

128

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Syntax Interface file <project>.odk for CPU function libraries B.2 Parameters

B.2

Parameters
The parameters of the <project>.odk file are different:  Developing a CPU function library for the Windows environment  Developing a CPU function library for the realtime environment

Parameters for the Windows environment
The definition of the parameters must be within a line of code. <parameter name>=<value> // optional comment
The <project>.odk file supports the following parameters:

Parameter Context
STEP7Prefix FullClassName

Value user system <String>
<String>

Description
Specifies that the CPU function library is loaded in the context of a Windows user.
Specifies that the CPU function library is loaded in the context of the Windows system.
Describes the string that precedes your functions and is shown after importing the SCL file in STEP 7. The following characters are allowed: {A...Z, a...z, 1...9, -, _}
The parameter is required for the C# and VB programming languages.
To change the class names or namespace of the source files of the CPU function library, you need to adjust the "FullClassName" parameter.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

129

Syntax Interface file <project>.odk for CPU function libraries B.2 Parameters

Parameters for the realtime environment
The definition of the parameters must be within a line of code. <parameter name>=<value> // optional comment
The <project>.odk file supports the following parameters:

Parameter Context Trace
HeapSize HeapMaxBlockSize SyncCallParallelCount
SyncCallStackSize SyncCallDataSize
STEP7Prefix

Value realtime
on
off
[4...<Availabl e CPU memory> (Page 124)]k [8...<HeapSi ze>] [1...9] Default=3
[1...1024]k Default=32k [1...1024]k
Default=auto <String>

Description Specifies that the CPU function library is loaded in the context of the real time environment. Specifies the trace function in the CPU function library. In this case, the CPU function library requires 32 KB if memory as an additional trace buffer. A "GetTrace" function block is created by default for use in a STEP 7. A "GetTrace" function block is created. The trace buffer contains only one trace entry with the contents: trace is off. Specifies a memory in KB that is used as heap for realtime applications.
Specifies the memory size in bytes that can be allocated at one time.
If a optional parameter and defines the maximum number of parallel calls in this CPU function library. The size of the memory which is reserved for calls in this CPU function library: SyncCallParallelCount * (SyncCallStackSize + SyncCallDataSize) Is a optional parameter and defines the size of the thread stack for a call in this CPU function library. Each new call contains a separate stack memory. Is a optional parameter and defines the size of the data area for a call in this CPU function library. The data area contains IN, INOUT and OUT parameters. Each new call contains a separate stack memory. The required data size is automatically calculated by the code generator. Describes the string that precedes your functions and is shown after importing the SCL file in STEP 7. The following characters are allowed: {A...Z, a...z, 1...9, -, _} By default the name is entered without blanks.

130

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Code generator messages for CPU function libraries

C

C.1

Error messages of the code generator

The code generator stops the build process and generates the following error messages:

File errors:

Error number 100
101

Error message
`<Project>.odk' is missing Context is missing in resource file

102

resource file `...' is missing

Possible solution
Rename the file to <project>.odk. Valid for Visual Studio only. One of the following resource files is faulty: · C++: <project>.rc · C#: AssemblyInfo.cs · VB: AssemblyInfo.vb Valid for Visual Studio only. One of the following resource files is missing: · C++: <project>.rc · C#: AssemblyInfo.cs · VB: AssemblyInfo.vb

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

131

Code generator messages for CPU function libraries C.1 Error messages of the code generator

Error number
103

Error message `...' write protected

110

license key missing

111

retrieve license key not possible

Parameter errors:

Possible solution
One of the following files is write-protected: · C++
­ <project>.rc (only for Visual Studio) ­ ODK_Types.h ­ ODK Functions.h ­ ODK_Execution.cpp · C# (only for Visual Studio) ­ AssemblyInfo.cs ­ OdkTypes.cs ­ OdkFunctions.cs ­ OdkExecution.cs · VB (for Visual Studio only) ­ AssemblyInfo.vb ­ OdkTypes.vb ­ OdkFunctions.vb ­ OdkExecution.vb · General ­ cg.tmp
Temporary file for the code generator to detect changes in the interface file. ­ <project>.scl
Transfer a current license key. Install the ALM with the version  6.0.

Error number 200
201 202
203
204 205
206
207
208

Error message

Possible solution

parameter `...' is not allowed for current con- The indicated parameter is not allowed here. text

missing `...' definition

The indicated parameter (Page 69) is not defined.

more than one definition for `...'

There is more than one definition for the indicated parameter (Page 69).

Context has to be one of `user' or `system' for Choose the context "system" or "user" for Visual Studio. Microsoft Visual Studio

Context has to be `realtime' for Eclipse

Choose the context "realtime" for Eclipse.

Trace has to be on or off

The "Trace" parameter must have the value "on" or "off" (only for realtime environment).

STEP7Prefix must not be longer than 120 characters

The STEP 7 prefix must not exceed 120 characters.

HeapSize has to be interval of [4...100000]k Ensure that the HeapSize parameter is within the value range [4...100000]k.

HeapMaxBlockSize has to be interval of [8...<HeapSize>]

Ensure that the HeapMaxBlockSize parameter is within the value range [8...<HeapSize>].

132

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Code generator messages for CPU function libraries C.1 Error messages of the code generator

Error number 209
210
211

Error message
SyncCallDataSize must be interval of [1...1024]k SyncCallStackSize must be interval of [1...1024]k SyncCallParallelCount must be interval of [1...9]
Syntax errors:

Possible solution
Ensure that the SyncCallDataSize parameter is within the value range [1...1024]k. Ensure that the SyncCallStackSize parameter is within the value range [1...1024]k. Ensure that the SyncCallParallelCount parameter is within the value range [1...9].

Error number 500 501
502 503
504
506 507
508
509 510 511
512
513
514
515
516 517
518
519
520

Error message

Possible solution

unexpected end-of-file found

Always end the file with a semicolon.

`...' should be alpha numeric

The following characters are allowed: a - z, A - Z, 0 - 9, _

Umlauts are not permitted.

`...' should be numeric

The following characters are allowed: 0 - 9

`...' undefined keyword

Use only the keywords [IN], [OUT] and [INOUT] and the defined data types.

... missing before ...

Add the character displayed by the error message.

missing space

Add a space.

`...' undefined type

Use only the defined data types.

`...' type not allowed

Observe the syntax rules in section Defining functions a CPU function library (Page 72)

`...' type redefinition

The function or parameter name is already assigned. Choose a different name.

`...' variable redefinition

The tag name is already assigned. Choose a different name.

Structure `...' must not be empty

Fill the structure with a data type.

`...' no valid name

Observe the syntax rules in section Defining functions a CPU function library (Page 72).

unexpected variable order (must be [IN], [OUT], [INOUT] order)

There are three defined InOut identifiers. Use these in the following order: [IN], [OUT], [INOUT]

size of ODK_S7STRING could not be bigger A string can have a maximum length of 254 characters. than 254

size of ODK_S7WSTRING could not be big- A Wstring can have a maximum length of 16382 characters. ger than 16382

Prefix + Function name `....' exceeds 125 characters

Prefix and function name together are longer than 125 characters.

variable name `...' exceeds 128 characters The tag name is longer than 128 characters.

'...' IN_BUFFER + INOUT_BUFFER could not Altogether, the InOut identifiers [IN] and [INOUT] in a function

be greater than 1 MB

must not exceed 1 MB.

'...' INOUT_BUFFER + OUT_BUFFER could Altogether, the InOut identifiers [OUT] and [INOUT] in a func-

not be greater than 1 MB

tion must not exceed 1 MB.

'...' needs '...k', but data size (SyncCallDataSize) is limited to '...k'

The amount of data is too high.

'...' has an array size of '...', but max. array size is limited to '...'

The maximum Array size is exceeded.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

133

Code generator messages for CPU function libraries C.2 Warnings of the code generator

Error number 521
522 523 524

Error message

Possible solution

no other variable in the same direction for ODK_CLASSIC_DB / ODK_VARIANT type
no array allowed for ODK_CLASSIC_DB / ODK_VARIANT type no [OUT] direction allowed for ODK_CLASSIC_DB type function declarations lead to identical hashes (change name of one parameter): `...', `...'

As soon as the data type ODK_CLASSIC_DB or ODK_VARIANT is used, no other parameter may defined with the same InOut identifier.
No Array may be defined for the data type ODK_CLASSIC_DB or ODK_VARIANT.
The InOut identifier [OUT] may not be defined for the ODK_CLASSIC_DB data type.
Change a parameter name.

C.2

Warnings of the code generator
The code generator continues to execute the build process and generates the following warnings:

Warning number
4100

Warning message

Description

built project with ODK 1500S trial mode - '...' Use the test version. The warning shows when the test version

day(s) left

runs.

134

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Helper functions for CPU function libraries

D

D.1

C++ helper functions

String helper functions for CPU function library for the Windows and realtime environment
The following helper functions provide access to S7 strings:

Helper functions Convert_S7STRING_to_SZSTR
Convert_SZSTR_to_S7STRING
Get_S7STRING_Length Get_S7STRING_MaxLength

Description Convert PLC string types to C/C++ string types ("char" array, null-terminated)
Convert C/C++ string types ("char" array, null-terminated) to PLC string types.
Returns the current length of a PLC string type.
Returns the maximum length of a PLC string type.

String helper functions for CPU function library for the Windows environment
The following helper functions provide access to S7WStrings:

Helper functions

Description

Convert_S7WSTRING_to_SZWSTR Convert PLC WString types to C/C++ WString types ("wchar_t" array, null-terminated)

Convert_SZWSTR_to_S7WSTRING Convert C/C++ WString types ("wchar_t" array, nullterminated) to PLC WString types.

Get_S7WSTRING_Length

Returns the current length of a PLC Wstring type.

Get_S7WSTRING_MaxLength

Returns the maximum length of a PLC WString type.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

135

Helper functions for CPU function libraries D.1 C++ helper functions

Class "CODK_CpuReadData" (Windows and real-time environment)
The "CODK_CpuReadData" class allows read access to classic DBs / classic data:

Value CODK_CpuReadData
SetBuffer ReadS7BOOL ReadS7BYTE ReadS7WORD ReadS7DWORD ReadS7LWORD ReadS7SINT ReadS7INT ReadS7DINT ReadS7LINT ReadS7USINT ReadS7UINT ReadS7UDINT ReadS7ULINT ReadS7REAL ReadS7LREAL ReadS7S5TIME ReadS7DATE ReadS7TIME ReadS7LTIME
ReadS7TIME_OF_DAY ReadS7LTIME_OF_DAY
ReadS7DATE_AND_TIME ReadS7DATE_AND_LTIME
ReadS7DTL
ReadS7CHAR ReadS7STRING_LEN
ReadS7STRING
ReadS7WCHAR

Description Class constructor, initializes the input data area and the data size. Initializes the input data area and the data size. Reads "bool" (1 byte) from the data area. Reads a "byte" (1 byte) from the data area. Reads a "word" (2 bytes) from the data area. Reads a "double word" (4 bytes) from the data area. Reads a "long word" (8 bytes) from the data area. Reads a "short integer" (1 byte) from the data area. Reads a "integer" (2 bytes) from the data area. Reads a "double integer" (4 bytes) from the data area. Reads "long integer" (8 bytes) from the data area. Reads a "unsigned short integer" (1 byte) from the data area. Reads a "unsigned integer" (2 bytes) from the data area. Reads a "unsigned double integer" (4 bytes) from the data area. Reads "unsigned long integer" (8 bytes) from the data area. Reads a "real number" (4 bytes) from the data area. Reads a "long real number" (8 bytes) from the data area. Reads a 16 bit (2 bytes) from the data area. Reads a date value (2 bytes) from the data area. Reads a time value (4 bytes) from the data area. Reads a time value (8 bytes) as nanoseconds from the data area. Reads the time of day (4 bytes) from the data area. Reads the time of day (8 bytes) as nanoseconds since midnight from the data area. Reads a general date and time area. Reads a date and time value (8 bytes) as nanoseconds since 01/01/1970 00:00 from the data area. Reads a date and time information (12 bytes) as a predefined structure from the data area. Reads a "char" (1 byte) from the data area. Reads the information of the string length for a S7 string in the data area. Reads an S7 string from the data area and returns it as language dependent string. The string is shortened when there is insufficient space in the target string. Only available for CPU function libraries for the Windows environment. Reads "wide char" (2 bytes) from the data area.

136

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Helper functions for CPU function libraries D.1 C++ helper functions

Value ReadS7WSTRING_LEN
ReadS7WSTRING

Description
Only available for CPU function libraries for the Windows environment.
Reads the information of the string length for a S7W string in the data area.
Only available for CPU function libraries for the Windows environment.
Reads an S7W string from the data area and returns it as language dependent string.
The string is shortened when there is insufficient space in the target string.

Class "CODK_CpuReadWriteData" (Windows and real-time environment)
The "CODK_CpuReadWriteData" class allows the following write accesses in addition to the all read accesses from "CODK_CpuReadData" to classic DBs / classic data:

Value CODK_CpuReadWriteData
SetBuffer LastByteChanged FirstByteChanged WriteS7BOOL WriteS7BYTE WriteS7WORD WriteS7DWORD WriteS7LWORD WriteS7SINT WriteS7INT WriteS7DINT WriteS7LINT WriteS7USINT WriteS7UINT WriteS7UDINT WriteS7ULINT WriteS7REAL WriteS7LREAL WriteS7S5TIME WriteS7DATE WriteS7TIME WriteS7LTIME WriteS7TIME_OF_DAY WriteS7LTIME_OF_DAY

Description Class constructor, initializes the output data area and the data size. Initializes the output data area and the data size. Retrieves the index of the last byte changed in the data area. Retrieves the index of the first byte changed in the data area. Writes a "bool" (1 byte) to the data area. Writes a "byte" (1 byte) to the data area. Writes a "word" (2 bytes) to the data area. Writes a "double word" (4 bytes) to the data area. Writes a "long word" (8 bytes) to the data area. Writes a "short integer" (1 byte) to the data area. Writes a "integer" (2 bytes) to the data area. Writes a "double integer" (4 bytes) to the data area. Writes a "long integer" (8 bytes) to the data area. Writes a "unsigned short integer" (1 byte) to the data area. Writes a "unsigned integer" (2 bytes) to the data area. Writes a "unsigned double integer" (4 bytes) to the data area. Writes a "unsigned long integer" (2 bytes) to the data area. Writes a "real number" (4 bytes) to the data area. Writes a "long real number" (8 bytes) to the data area. Writes a 16-bit (2 bytes) time value to the data area. Writes a date value (2 bytes) to the data area. Writes a time value (4 bytes) to the data area. Writes a time value (8 bytes) as nanoseconds to the data area. Writes a time of day (4 bytes) to the data area. Writes the time of day (8 bytes) as nanoseconds since midnight to the data area.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

137

Helper functions for CPU function libraries D.1 C++ helper functions

Value WriteS7DATE_AND_TIME WriteS7DATE_AND_LTIME WriteS7DTL WriteS7CHAR WriteS7STRING
WriteS7STRING_MAX_LEN
WriteS7WCHAR WriteS7WSTRING
WriteS7WSTRING_MAX_LEN

Description Writes a "System.DateTime" to the data area.
Writes a date and time value (8 bytes) as nanosecond since 01/01/1970 00:00 to the data area.
Writes a date and time information (12 bytes) as a predefined structure to the data area.
Writes a "char" (1 byte) to the data area.
Writes a S7 string to the data area.
The string is shortened when there is insufficient space in the target string.
If no maximum string length is set in the case of a "[OUT] Variant", the current string length is set as maximum string length.
Only available for CPU function libraries for the Windows environment.
Writes the maximum string length to an S7 string. Is only required for "[OUT] Variant".
Only available for CPU function libraries for the Windows environment.
Writes a "char" (2 bytes) to the data area.
Only available for CPU function libraries for the Windows environment. Writes an S7W string to the data area.
The string is shortened when there is insufficient space in the target string.
If no maximum string length is set in the case of a "[OUT] Variant", the current string length is set as maximum string length.
Only available for CPU function libraries for the Windows environment.
Writes the maximum string length to an S7W string. Is only required for "[OUT] Variant".

138

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Helper functions for CPU function libraries D.2 C#/VB helper functions

D.2

C#/VB helper functions

Access to classic data
For the C# and VB programming languages, the following classes are available for reading and writing in a classic data stream:  OdkReadVariant
Supports all "ReadS7..." methods.  OdkReadWriteVariant
Supports all "ReadS7..." and "WriteS7..." methods.

ReadS7 methods ReadS7Bool ReadS7Byte ReadS7Word ReadS7DWord
ReadS7LWord ReadS7Sint
ReadS7Int ReadS7Dint
ReadS7Lint
ReadS7USint
ReadS7Uint
ReadS7UDint
ReadS7ULint
ReadS7Real
ReadS7LReal
ReadS7S5Time
ReadS7Time ReadS7LTime ReadS7Date
ReadS7TimeOfDay ReadS7LTimeOfDay

WriteS7 methods WriteS7Bool WriteS7Byte WriteS7Word WriteS7DWord
WriteS7LWord WriteS7Sint
WriteS7Int WriteS7Dint
WriteS7Lint
WriteS7USint
WriteS7Uint
WriteS7UDint
WriteS7ULint
WriteS7Real
WriteS7LReal
WriteS7S5Time
WriteS7Time WriteS7LTime WriteS7Date
WriteS7TimeOfDay WriteS7LTimeOfDay

Description Writes/reads a "bool" (1 byte) to/to/from the data area. Writes/reads a "byte" (1 byte) to/from the data area. Writes/reads a "word" (2 bytes) to/from the data area. Writes/reads a "double word" (4 bytes) to/from the data area.
Writes/reads a "long word" (8 bytes) to/from the data area. Writes/reads a "short integer" (1 byte) to/from the data area.
Writes/reads a "integer" (2 bytes) to/from the data area. Writes/reads a "double integer" (4 bytes) to/from the data area.
Writes/reads a "long integer" (8 bytes) to/from the data area.
Writes/reads a "unsigned short integer" (1 byte) to/from the data area. Writes/reads a "unsigned integer" (2 bytes) to/from the data area. Writes/reads a "unsigned double integer" (4 bytes) to/from the data area. Writes/reads a "unsigned long integer" (8 bytes) to/from the data area. Writes/reads a "real number" (4 bytes) to/from the data area.
Writes/reads a "long real number" (8 bytes) to/from the data area. Writes/reads a 16-bit (2 bytes) time value to/from the data area.
Writes/reads a time value (4 bytes) to/from the data area. Writes/reads a time value (8 bytes) to/from the data area. Writes/reads a date and time value (2 bytes) to/from the data area. Writes/reads the time of day (4 bytes) to/from the data area. Writes/reads the time of day (8 bytes) to/from the data area.

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

139

Helper functions for CPU function libraries D.2 C#/VB helper functions

ReadS7 methods ReadS7DateAndTime ReadS7DateAndLTime ReadS7Dtl ReadS7Char ReadS7String
ReadS7StringCurLen ReadS7StringMaxLen ReadS7WChar ReadS7WString
ReadS7WStringCurLen ReadS7WStringMaxLen

WriteS7 methods WriteS7DateAndTime WriteS7DateAndLTime WriteS7Dtl WriteS7Char WriteS7String
WriteS7StringMaxLen WriteS7WChar WriteS7WString
WriteS7WStringMaxLen

Description Writes/reads a "System.DateTime" to/from the data area.
Writes/reads a date and time value (8 bytes) as nanoseconds since 01/01/1970 00:00 to/from the data area.
Writes/reads a date and time value (12 bytes) as a predefined structure to/from the data area.
Writes/reads a "char" (1 byte) to/from the data area.
Writes/reads an SIMATIC S7 string to/from the data area and returns it as language-dependent string.
The string is shortened when there is insufficient space in the target string.
If no maximum string length is set in the case of a "[OUT] Variant", the current string length is set as maximum string length.
Reads the current string length of a S7 string exception if the current string length is larger than the maximum string length.
Writes/reads the maximum string length to/from a S7 string.
Is only required for "[OUT] Variant".
Writes/reads a "wide char" (2 bytes) to/from the data area.
Writes/reads an S7W string to/from the data area and returns it as language dependent string.
The string is shortened when there is insufficient space in the target string.
If no maximum string length is set in the case of a "[OUT] Variant", the current string length is set as maximum string length.
Reads the current string length of a S7W string exception if the current string length is larger than the maximum string length.
Writes/reads the maximum string length to/from a S7W string. Is only required for "[OUT] Variant".

140

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Helper functions for CPU function libraries D.2 C#/VB helper functions
Access to classic DBs
Use in C# using OdkInternal;
public ushort SampleFunction (byte[] myDB) {
OdkReadVariant rv = new OdkReadVariant(myDB); int i = rv.ReadS7DINT(0); // do something with i return ODK_SUCSESS; }
Use in VB Imports OdkInternal;
Public Function SampleFunction (ByRef myDB As Byte[]) As UShort {
Dim wv As OdkReadWriteVariant = new OdkReadWriteVariant(myDB) Dim value As Short = 5 ` calculate the value somehow wv.WriteS7INT(8, value) return ODK_SUCSESS; }

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

141

Instructions for CPU function libraries

E

E.1

"Load" instruction
The "<STEP7Prefix>_Load" instruction has different parameters that depending on the development environment:
 Development of a CPU function library for the Windows environment (Page 51)
 Development of a CPU function library for the realtime environment (Page 93)

E.2

"Unload" instruction
The "<STEP7Prefix>_Unload" instruction has different parameters that depending on the development environment:
 Development of a CPU function library for the Windows environment (Page 58)
 Development of a CPU function library for the realtime environment (Page 99)

E.3
Section Output Input Output

"GetTrace" instruction
The function block (Page 101) "GetTrace" is included in the default CPPfile "<project>.cpp".

TraceCount

GetTrace STATUS

The following table shows the parameters of the "GetTrace" function block:

Declaration STATUS TraceCount TraceBuffer

Data type Description

INT

Number of trace entries actually read

INT

Number of trace entries to be read

Array [0..255] of String[125]

Trace string array for the user Each trace string consists of: · Date

· Time-of-day

· OB number

· File name

· Line number

· Trace text (trace implemented by the user)

142

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

Index
C
Callback functions Realtime, 82 Windows, 46
Calling functions Realtime, 96 Windows, 56
Certificate of license, 21 Commissioning
C/C++ Runtime, 116 Context Application, 33, 70 Context Realtime, 70 Context System, 33 Context User, 33 Creating a project
C/C++ runtime application, 110 Realtime, 65 Windows, 25 Customer service, 3
D
Debug (Test), 87 C/C++ runtime application, 119
Debug (Windows), 61 Defining functions, 34, 72 Defining runtime properties
Realtime, 69 Windows, 32 Definitions, 3 Development environments, 15 Development steps, 17 Documentation, 3 Dynamic memory, 85
G
Generating an application C/C++ runtime application, 113 Realtime, 68 Windows, 31

I
Implementing functions Custom functions, 48, 84 Realtime, 82 Windows, 46
Installation, 20 Licensing, 21
Internet Web sites (Siemens), 3
K
Knowledge required, 3
L
License key, 21 Loading functions
Realtime, 93 Windows, 51
M
Manuals, 3
P
Post Mortem analysis, 103 Product overview, 10
Basic procedure, 17 How it works, 10
S
Siemens contact information, 3 STEP 7 import
Realtime, 92 Windows, 50 Support, 3 Syntax rules, 34, 72 System requirements, 18

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

143

Index
T
Target group, 3 Technical support, 3 Trace buffer, 101 Transfer to target system
C/C++ application, 119 Create connection to the target system, 117 Realtime, 90 Windows, 49
U
Uninstalling, 24 Unloading functions
Realtime, 99 Windows, 58
W
Web sites (Siemens), 3

144

Open Development Kit 1500S V2.5 Programming and Operating Manual, 12/2017, A5E35253941-AD

S7-PLCSIM Advanced

SIMATIC S7-1500 S7-PLCSIM Advanced
Function Manual

Preface

Guide

1

Product overview

2

Installing

3

Communication paths

4

Simulation

5

Virtual time response

6

User interfaces (API)

7

Restrictions, messages and solution

8

List of abbreviations

A

11/2019
A5E37039512-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E37039512-AC  09/2019 Subject to change

Copyright © Siemens AG 2016 - 2019. All rights reserved

Preface

Purpose of the documentation
This function manual describes the simulation software, SIMATIC S7-PLCSIM Advanced V3.0. You can use this software to simulate and test your SIMATIC STEP 7 programs on a virtual controller.

Scope

This function manual is valid for the following order versions
 6ES7823-1FA01-0YA5 - SIMATIC S7-PLCSIM Advanced V3.0 Floating License (DVD)
 6ES7823-1FE01-0YA5 - SIMATIC S7-PLCSIM Advanced V3.0 Floating License (Download)
 6ES7823-1FA01-0YE5 - Upgrade SIMATIC S7-PLCSIM Advanced V2.0  V3.0 (DVD)
 6ES7823-1FE01-0YE5 - Upgrade SIMATIC S7-PLCSIM Advanced V2.0  V3.0 (Download)
The articles each contain one license for two instances.

Basic knowledge required
The software must only be used by qualified staff. The following knowledge is required:  Industrial Automation and Automation Technology  Programming with STEP 7 (TIA Portal)  SIMATIC CPUs and CPU programming  PC-based automation using S7-1500 and WinCC Runtime Advanced  Knowledge of programming with C++ or C#  PC technology  Windows operating system

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

3

Preface

Conventions

Conventions STEP 7: In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". We also abbreviate SIMATIC S7-PLCSIM Advanced V3.0 as "PLCSIM Advanced".
Also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Special information
Note Readme You can obtain updates to the function manual as downloads on the Internet (https://support.industry.siemens.com/cs/us/en/view/109739154).
Application examples The following application examples for S7-PLCSIM Advanced are available on the Internet: · SIMATIC S7-PLCSIM Advanced: Co-Simulation via API (1
(https://support.industry.siemens.com/cs/ww/en/view/109739660)) · Digitalization with TIA Portal: Virtual commissioning with SIMATIC and Simulink (2
(https://support.industry.siemens.com/cs/ww/en/document/109749187))

S7-PLCSIM Advanced

4

Function Manual, 11/2019, A5E37039512-AC

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (http://www.siemens.com/industrialsecurity).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

5

Table of contents

Preface ................................................................................................................................................... 3

1 Guide.................................................................................................................................................... 27

1.1

Documentation guide ............................................................................................................. 27

1.2

S7-PLCSIM products ............................................................................................................. 30

2 Product overview .................................................................................................................................. 32

2.1

What is S7-PLCSIM Advanced? ............................................................................................ 32

2.2

Compatibility during upgrade ................................................................................................. 33

2.3

Security for S7-PLCSIM Advanced........................................................................................ 34

2.4

Simulations support ............................................................................................................... 35

2.5

Supported CPUs .................................................................................................................... 36

2.6 2.6.1 2.6.2

Differences between a simulated and a real CPU ................................................................. 37 Restrictions for all supported CPUs ....................................................................................... 38 Notes ...................................................................................................................................... 39

3 Installing ............................................................................................................................................... 41

3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5

Introduction ............................................................................................................................ 41 System requirements ............................................................................................................. 41 Restrictions due to antivirus programs .................................................................................. 43 Licenses ................................................................................................................................. 44 Trial License ........................................................................................................................... 44 Installation log ........................................................................................................................ 47

3.2

S7-PLCSIM Advanced ........................................................................................................... 48

3.3

Installing S7-PLCSIM Advanced............................................................................................ 49

3.4

Changing S7-PLCSIM Advanced........................................................................................... 51

3.5

Repairing S7-PLCSIM Advanced........................................................................................... 52

3.6

Uninstalling S7-PLCSIM Advanced ....................................................................................... 53

4 Communication paths ........................................................................................................................... 54

4.1

Local communication ............................................................................................................. 55

4.2

Communication via TCP / IP.................................................................................................. 57

4.3

Enable distributed communication ......................................................................................... 60

S7-PLCSIM Advanced

6

Function Manual, 11/2019, A5E37039512-AC

Table of contents

5 Simulation............................................................................................................................................. 62

5.1 5.1.1 5.1.2 5.1.2.1 5.1.2.2 5.1.2.3 5.1.2.4 5.1.3 5.1.4 5.1.4.1 5.1.4.2 5.1.5 5.1.6 5.1.6.1 5.1.6.2 5.1.7

Simulate CPU .........................................................................................................................62 Basic procedure for the simulation .........................................................................................62 Control Panel - User interface ................................................................................................63 S7-PLCSIM Advanced Symbol...............................................................................................63 Graphical interface..................................................................................................................64 S7-PLCSIM Advanced Control Panel .....................................................................................65 Importing instances.................................................................................................................69 Download ................................................................................................................................71 Network addresses in the simulation ......................................................................................73 Siemens PLCSIM Virtual Ethernet Adapter ............................................................................73 PLCSIM Advanced instances .................................................................................................74 Simulate peripheral I/O ...........................................................................................................75 Simulate communication.........................................................................................................76 Communication services that can be simulated .....................................................................76 Communication between instances ........................................................................................77 Provide project data offline for simulation...............................................................................77

5.2 5.2.1 5.2.2 5.2.3 5.2.4

Simulate CPU with ODK functionality .....................................................................................79 Special features of ODK .........................................................................................................80 Loading functions....................................................................................................................83 Calling functions......................................................................................................................84 Unloading functions ................................................................................................................84

5.3

Simulating Motion Control.......................................................................................................85

6 Virtual time response ............................................................................................................................ 87

6.1

Speed up and slow down simulation ......................................................................................89

6.2

Stop simulation .......................................................................................................................90

6.3 6.3.1 6.3.2

Synchronize simulation partner ..............................................................................................92 Synchronize simulation partner cycle-controlled ....................................................................92 Synchronize simulation partner time-controlled......................................................................94

7 User interfaces (API)............................................................................................................................. 96

7.1 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6

Introduction .............................................................................................................................96 Access to instances ................................................................................................................98 User interfaces (API)...............................................................................................................99 Overview of user interfaces for native C++ ..........................................................................100 Overview of user interfaces for managed code ....................................................................105 Overview of data types for native C++..................................................................................108 Overview of data types for managed code ...........................................................................110

7.2 7.2.1 7.2.2 7.2.2.1 7.2.2.2 7.2.3 7.2.3.1

Initialize API ..........................................................................................................................111 Load API library ....................................................................................................................111 Native C++ ............................................................................................................................112 InitializeApi() .........................................................................................................................112 RuntimeApiEntry_Initialize ....................................................................................................114 .NET (C#) ..............................................................................................................................116 Initialize .................................................................................................................................116

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

7

Table of contents

7.3 7.3.1 7.3.1.1 7.3.1.2 7.3.1.3 7.3.1.4 7.3.2 7.3.2.1
7.4
7.5 7.5.1 7.5.2 7.5.3 7.5.3.1 7.5.4 7.5.4.1 7.5.4.2 7.5.4.3
7.6 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 7.6.5.1 7.6.5.2 7.6.5.3 7.6.5.4 7.6.5.5 7.6.6 7.6.7 7.6.8 7.6.8.1 7.6.8.2 7.6.8.3 7.6.8.4 7.6.8.5 7.6.8.6 7.6.8.7 7.6.8.8 7.6.8.9 7.6.8.10 7.6.9 7.6.9.1 7.6.9.2

Shut down API ..................................................................................................................... 117 Native C++ ........................................................................................................................... 117 DestroyInterface() ................................................................................................................ 118 RuntimeApiEntry_DestroyInterface...................................................................................... 119 FreeApi() .............................................................................................................................. 120 ShutdownAndFreeApi()........................................................................................................ 121 .NET (C#) ............................................................................................................................. 122 Shut down API ..................................................................................................................... 122
Global functions (Native C++).............................................................................................. 122
API ISimulationRuntimeManager......................................................................................... 127 Interfaces - Information and settings.................................................................................... 127 Simulation Runtime instances.............................................................................................. 129 Remote connections ............................................................................................................ 137 RunAutodiscover() ............................................................................................................... 142 Events for ISimulationRuntimeManager .............................................................................. 143 OnConfigurationChanged events......................................................................................... 144 OnRuntimeManagerLost events .......................................................................................... 147 OnAutodiscoverData events ................................................................................................ 150
API IInstances ...................................................................................................................... 151 Interfaces - Information and settings.................................................................................... 151 Controller - Information and settings.................................................................................... 157 Operating state..................................................................................................................... 166 Tag list.................................................................................................................................. 176 I/O access ............................................................................................................................ 182 Synchronizing inputs and outputs ........................................................................................ 182 I/O access via address - Reading ........................................................................................ 183 I/O access via address - Writing .......................................................................................... 191 I/O access via tag name - Reading...................................................................................... 199 I/O access via tag name - Writing ........................................................................................ 221 Settings for the virtual time .................................................................................................. 245 Cycle control ........................................................................................................................ 248 Acyclic services.................................................................................................................... 256 Overview .............................................................................................................................. 256 ReadRecordDone / WriteRecordDone ................................................................................ 258 AlarmNotification .................................................................................................................. 260 ProcessEvent ....................................................................................................................... 263 PullOrPlugEvent................................................................................................................... 265 StatusEvent .......................................................................................................................... 267 ProfileEvent .......................................................................................................................... 268 UpdateEvent ........................................................................................................................ 269 GetConfiguredProcessEvent ............................................................................................... 271 RackOrStationFaultEvent .................................................................................................... 272 Events for IInstances ........................................................................................................... 273 Events for operating state and cycle control ........................................................................ 273 Events for acyclic services ................................................................................................... 287

S7-PLCSIM Advanced

8

Function Manual, 11/2019, A5E37039512-AC

Table of contents

7.7 7.7.1 7.7.2 7.7.2.1 7.7.3 7.7.3.1
7.8 7.8.1 7.8.1.1 7.8.1.2 7.8.2 7.8.2.1 7.8.2.2 7.8.2.3 7.8.2.4 7.8.2.5 7.8.2.6 7.8.2.7 7.8.2.8 7.8.2.9 7.8.2.10 7.8.2.11 7.8.2.12 7.8.2.13 7.8.2.14 7.8.2.15 7.8.2.16 7.8.3 7.8.3.1 7.8.3.2 7.8.3.3 7.8.3.4 7.8.3.5 7.8.3.6 7.8.3.7 7.8.3.8 7.8.3.9 7.8.3.10 7.8.3.11 7.8.3.12 7.8.3.13 7.8.3.14 7.8.3.15 7.8.3.16 7.8.4 7.8.5 7.8.5.1 7.8.5.2 7.8.6 7.8.6.1 7.8.6.2 7.8.6.3

API IRemoteRuntimeManager ..............................................................................................296 Interfaces - Information and settings ....................................................................................296 Simulation Runtime instances ..............................................................................................300 Simulation Runtime instances (remote)................................................................................300 Events for IRemoteRuntimeManager ...................................................................................308 OnConnectionLost events ....................................................................................................308
Data types .............................................................................................................................311 DLL import functions (Native C++) .......................................................................................312 ApiEntry_Initialize .................................................................................................................. 312 ApiEntry_DestroyInterface ....................................................................................................312 Event callback functions (Native C++)..................................................................................313 EventCallback_VOID ............................................................................................................313 EventCallback_SRCC_UINT32_UINT32_INT32 ................................................................... 313 EventCallback_SRRSI_AD ...................................................................................................314 EventCallback_IRRTM ..........................................................................................................314 EventCallback_II_SREC_ST_SROS_SROS ......................................................................... 315 EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 .............................................316 EventCallback_II_SREC_ST .................................................................................................317 EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32...........................318 EventCallback_II_SREC_ST_SRLT_SRLM ..........................................................................319 EventCallback_II_SREC_ST_SDRI ......................................................................................320 EventCallback_II_SREC_ST_SDRI_BYTE ...........................................................................321 EventCallback_II_SREC_ST_UINT32_UINT32 ....................................................................322 EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32...........................................323 EventCallback_II_SREC_ST_UINT32_EPPET_UINT32 ....................................................... 324 EventCallback_II_SREC_ST_UINT32_ERSFET ..................................................................325 EventCallback_II_SREC_ST_UINT32 ................................................................................... 326 Delegate definitions (managed code) ...................................................................................327 Delegate_Void ....................................................................................................................... 327 Delegate_SRCC_UINT32_UINT32_INT32 ...........................................................................327 Delegate_SRRSI_AD ............................................................................................................328 Delegate_II_EREC_DT .........................................................................................................328 Delegate_II_EREC_DT_EOS_EOS ......................................................................................329 Delegate_II_EREC_DT_ELT_ELM ........................................................................................ 330 Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 .....................................................331 Delegate_IRRTM ..................................................................................................................332 Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 ...................................332 Delegate_II_EREC_DT_SDRI ...............................................................................................333 Delegate_II_EREC_DT_SDR ................................................................................................334 Delegate_SREC_ST_UINT32_EPPET_UINT32 ...................................................................335 Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32 .......................................................336 Delegate_SREC_ST_UINT32 ...............................................................................................337 Delegate_SREC_ST_UINT32_UINT32 .................................................................................338 Delegate_SREC_ST_UINT32_ERSFET ...............................................................................339 Definitions and constants......................................................................................................340 Unions (Native C++) .............................................................................................................341 UIP ........................................................................................................................................341 UDataValue ........................................................................................................................... 342 Structures .............................................................................................................................. 343 SDataValue ...........................................................................................................................344 SDVBNI ................................................................................................................................. 346 SDataValueByAddress .........................................................................................................347

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

9

Table of contents

7.8.6.4 7.8.6.5 7.8.6.6 7.8.6.7 7.8.6.8 7.8.6.9 7.8.6.10 7.8.6.11 7.8.6.12 7.8.6.13 7.8.6.14 7.8.6.15 7.8.6.16 7.8.6.17 7.8.6.18 7.8.7 7.8.7.1 7.8.7.2 7.8.7.3 7.8.7.4 7.8.7.5 7.8.7.6 7.8.7.7 7.8.7.8 7.8.7.9 7.8.7.10 7.8.7.11 7.8.7.12 7.8.7.13 7.8.7.14 7.8.7.15 7.8.7.16 7.8.7.17 7.8.7.18 7.8.7.19 7.8.7.20 7.8.7.21

SDataValueByAddressWithCheck ....................................................................................... 347 SDataValueByName ............................................................................................................ 348 SDataValueByNameWithCheck........................................................................................... 348 SConnectionInfo................................................................................................................... 349 SInstanceInfo ....................................................................................................................... 349 SDimension.......................................................................................................................... 350 STagInfo............................................................................................................................... 351 SIP ....................................................................................................................................... 353 SIPSuite4 ............................................................................................................................. 353 SOnSyncPointReachedResult ............................................................................................. 355 SDataRecordInfo.................................................................................................................. 357 SDataRecord........................................................................................................................ 358 SConfiguredProcessEvents ................................................................................................. 358 SDiagExtChannelDescription............................................................................................... 360 SAutodiscoverData .............................................................................................................. 362 Enumerations ....................................................................................................................... 362 ERuntimeErrorCode............................................................................................................. 364 EArea ................................................................................................................................... 369 EOperatingState................................................................................................................... 369 EOperatingMode .................................................................................................................. 370 ECPUType ........................................................................................................................... 371 ECommunicationInterface.................................................................................................... 373 ELEDType ............................................................................................................................ 373 ELEDMode ........................................................................................................................... 374 EPrimitiveDataType ............................................................................................................. 375 EDataType ........................................................................................................................... 377 ETagListDetails .................................................................................................................... 382 ERuntimeConfigChanged .................................................................................................... 383 EInstanceConfigChanged .................................................................................................... 383 EPullOrPlugEventType ........................................................................................................ 384 EProcessEventType ............................................................................................................ 384 EDirection............................................................................................................................. 385 EDiagProperty...................................................................................................................... 385 EDiagSeverity ...................................................................................................................... 386 ERackOrStationFaultType ................................................................................................... 387 ECycleTimeMonitoringMode................................................................................................ 387 EAutodiscoverType .............................................................................................................. 388

8 Restrictions, messages and solution ....................................................................................................389

8.1

Overview .............................................................................................................................. 389

8.2

Restrictions with fail-safe CPUs........................................................................................... 389

8.3

OPC UA server .................................................................................................................... 390

8.4

Web server ........................................................................................................................... 392

8.5

Backing up and restoring the configuration of a PLCSIM Advanced instance .................... 393

8.6

Restrictions for file paths...................................................................................................... 393

8.7

Restrictions for communications services............................................................................ 394

8.8

Restrictions for instructions .................................................................................................. 394

8.9

Restrictions to local communication via Softbus.................................................................. 395

S7-PLCSIM Advanced

10

Function Manual, 11/2019, A5E37039512-AC

Table of contents

8.10

Messages for communication via TCP/IP.............................................................................396

8.11

Restrictions of security with VMware vSphere Hypervisor (ESXi)........................................397

8.12

Monitoring overflow...............................................................................................................398

8.13

Deviating I/O values in the STEP 7 user program................................................................398

8.14

Multiple simulations and possible collision of IP addresses .................................................399

8.15

Lacking access to an IP address ..........................................................................................399

8.16

Simulation in standby mode..................................................................................................399

A List of abbreviations ............................................................................................................................ 400

Tables
Table 1- 1 Table 2- 1 Table 2- 2 Table 3- 1 Table 4- 1 Table 5- 1 Table 5- 2 Table 5- 3 Table 5- 4 Table 6- 1 Table 6- 2 Table 7- 1 Table 7- 2 Table 7- 3 Table 7- 4 Table 7- 5 Table 7- 6 Table 7- 7 Table 7- 8 Table 7- 9 Table 7- 10 Table 7- 11 Table 7- 12 Table 7- 13 Table 7- 14

Comparison of S7-PLCSIM products...........................................................................................30 Compatibility with CPU firmware versions ...................................................................................33 Supported CPUs .......................................................................................................................... 36 System requirements ................................................................................................................... 41 Local and distributed communication ..........................................................................................54 Assignment of the Ethernet interfaces, for example, for a CPU 1518-4 PN/DP..........................74 Supported communication options...............................................................................................76 ODK: Output parameter - Load functions ....................................................................................83 ODK: Output parameter - Call functions ......................................................................................84 Cycle-controlled operating modes (SingleStep) ..........................................................................92 Time-controlled operating modes (TimespanSynchronized) .......................................................94 Components of the Simulation Runtime ......................................................................................96 Overview of initializing and shutting down API - Native C++.....................................................100 Overview of global functions - Native C++.................................................................................101 Overview of API ISimulationRuntimeManager functions - Native C++......................................101 Overview of API ISimulationRuntimeManager events - Native C++..........................................102 Overview of IInstances functions - Native C++..........................................................................102 Overview of IInstances events - Native C++..............................................................................103 Overview of IRemoteRuntimeManager functions - Native C++.................................................104 Overview of IRemoteRuntimeManager events - Native C++.....................................................104 Overview of initializing and shutting down API - .NET (C#).......................................................105 Overview of ISimulationRuntimeManager functions - .NET (C#) ..............................................105 Overview of ISimulationRuntimeManager events - .NET (C#) ..................................................105 Overview of IInstances functions - .NET (C#)............................................................................106 Overview of IInstances events - .NET (C#) ...............................................................................107

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

11

Table of contents

Table 7- 15 Table 7- 16 Table 7- 17 Table 7- 18 Table 7- 19 Table 7- 20 Table 7- 21 Table 7- 22 Table 7- 23 Table 7- 24 Table 7- 25 Table 7- 26 Table 7- 27 Table 7- 28 Table 7- 29 Table 7- 30 Table 7- 31 Table 7- 32 Table 7- 33 Table 7- 34 Table 7- 35 Table 7- 36 Table 7- 37 Table 7- 38 Table 7- 39 Table 7- 40 Table 7- 41 Table 7- 42 Table 7- 43 Table 7- 44 Table 7- 45 Table 7- 46 Table 7- 47 Table 7- 48 Table 7- 49 Table 7- 50

Overview of IRemoteRuntimeManager functions - .NET (C#)...................................................108 Overview IRemoteRuntimeManager events - .NET (C#)...........................................................108 Overview of data types - Native C++ .........................................................................................108 Overview of data types - .NET (C#) ...........................................................................................110 InitializeApi() - Native C++ .........................................................................................................112 RuntimeApiEntry_Initialize - Native C++ ....................................................................................114 Initialize - .NET (C#) ...................................................................................................................116 DestroyInterface() - Native C++ .................................................................................................118 RuntimeApiEntry_DestroyInterface() - Native C++ ....................................................................119 FreeApi() - Native C++ ...............................................................................................................120 ShutdownAndFreeApi() - Native C++ ........................................................................................121 GetNameOfAreaSection() - Native C++.....................................................................................122 GetNameOfCPUType() - Native C++.........................................................................................122 GetNameOfCommunicationInterface() - Native C++ .................................................................123 GetNameOfDataType() - Native C++.........................................................................................123 GetNameOfErrorCode() - Native C++........................................................................................123 GetNameOfLEDMode() - Native C++ ........................................................................................123 GetNameOfLEDType() - Native C++ .........................................................................................123 GetNameOfOperatingMode() - Native C++ ...............................................................................124 GetNameOfErrorCode() - Native C++........................................................................................124 GetNameOfOperatingState() - Native C++ ................................................................................124 GetNameOfPrimitiveDataType() - Native C++...........................................................................124 GetNameOfTagListDetails() - Native C++ .................................................................................124 GetNameOfRuntimeConfigChanged() - Native C++..................................................................125 GetNameOfInstanceConfigChanged() - Native C++ .................................................................125 GetNameOfDirection() - Native C++ ..........................................................................................125 GetNameOfDiagSeverity() - Native C++....................................................................................125 GetNameOfRackOrStationFaultType() - Native C++.................................................................125 GetNameOfProcessEventType() - Native C++ ..........................................................................126 GetNameOfPullOrPlugEventType() - Native C++......................................................................126 GetNameOfCycleTimeMonitoringMode() - Native C++ .............................................................126 GetNameOfDiagProperty() - Native C++ ...................................................................................126 GetNameOfAutodiscoverType() - Native C++ ...........................................................................126 GetVersion() - Native C++..........................................................................................................127 Version { get; } - .NET (C#) ........................................................................................................127 IsInitialized() - Native C++..........................................................................................................128

S7-PLCSIM Advanced

12

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 51 Table 7- 52 Table 7- 53 Table 7- 54 Table 7- 55 Table 7- 56 Table 7- 57 Table 7- 58 Table 7- 59 Table 7- 60 Table 7- 61 Table 7- 62 Table 7- 63 Table 7- 64 Table 7- 65 Table 7- 66 Table 7- 67 Table 7- 68 Table 7- 69 Table 7- 70 Table 7- 71 Table 7- 72 Table 7- 73 Table 7- 74 Table 7- 75 Table 7- 76 Table 7- 77 Table 7- 78 Table 7- 79 Table 7- 80 Table 7- 81 Table 7- 82 Table 7- 83 Table 7- 84 Table 7- 85 Table 7- 86

IsInitialized { get; } - .NET (C#) ..................................................................................................128 IsRuntimeManagerAvailable() - Native C++ ..............................................................................128 IsRuntimeManagerAvailable { get; } - .NET (C#) .......................................................................128 Shutdown() - Native C++ ........................................................................................................... 129 Shutdown() - .NET (C#) ............................................................................................................. 129 GetRegisteredInstancesCount() - Native C++ ...........................................................................129 GetRegisteredInstanceInfoAt() - Native C++ .............................................................................130 RegisteredInstanceInfo { get; } - .NET (C#) ...............................................................................130 RegisterInstance() - Native C++ ................................................................................................ 131 RegisterInstance() - .NET (C#) ..................................................................................................132 RegisterCustomInstance() - Native C++ ....................................................................................133 RegisterCustomInstance() - .NET (C#)......................................................................................134 CreateInterface() - Native C++...................................................................................................135 CreateInterface() - .NET (C#) ....................................................................................................136 OpenPort() - Native C++ ............................................................................................................137 OpenPort() - .NET (C#) .............................................................................................................. 137 ClosePort() - Native C++............................................................................................................138 ClosePort() - .NET (C#) ............................................................................................................. 138 GetPort() - Native C++ ............................................................................................................... 138 Port { get; } - .NET (C#)..............................................................................................................138 GetRemoteConnectionsCount() - Native C++ ...........................................................................139 GetRemoteConnectionInfoAt()- Native C++ ..............................................................................139 RemoteConnectionInfo { get; } - .NET (C#) ...............................................................................139 RemoteConnect() - Native C++ ................................................................................................. 140 RemoteConnect() - .NET (C#) ...................................................................................................141 RunAutodiscover() - Native C++ ................................................................................................ 142 RunAutodiscover() - .NET (C#)..................................................................................................143 Events for ISimulationRuntimeManager ....................................................................................143 OnConfigurationChanged - .NET (C#).......................................................................................144 RegisterOnConfigurationChangedCallback() - Native C++ .......................................................144 RegisterOnConfigurationChangedEvent() - Native C++............................................................145 RegisterOnConfigurationChangedEvent() - .NET (C#)..............................................................145 UnregisterOnConfigurationChangedCallback() - Native C++ ....................................................145 UnregisterOnConfigurationChangedEvent() - Native C++ ........................................................146 UnregisterOnConfigurationChangedEvent() - .NET (C#) ..........................................................146 WaitForOnConfigurationChangedEvent() - Native C++.............................................................146

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

13

Table of contents

Table 7- 87 Table 7- 88 Table 7- 89 Table 7- 90 Table 7- 91 Table 7- 92 Table 7- 93 Table 7- 94 Table 7- 95 Table 7- 96 Table 7- 97 Table 7- 98 Table 7- 99 Table 7- 100 Table 7- 101 Table 7- 102 Table 7- 103 Table 7- 104 Table 7- 105 Table 7- 106 Table 7- 107 Table 7- 108 Table 7- 109 Table 7- 110 Table 7- 111 Table 7- 112 Table 7- 113 Table 7- 114 Table 7- 115 Table 7- 116 Table 7- 117 Table 7- 118 Table 7- 119 Table 7- 120 Table 7- 121 Table 7- 122

WaitForOnConfigurationChangedEvent - .NET (C#) .................................................................146 OnRuntimeManagerLost - .NET (C#) ........................................................................................147 RegisterOnRuntimeManagerLostCallback() - Native C++.........................................................147 RegisterOnRuntimeManagerLostEvent() - Native C++ .............................................................148 RegisterOnRuntimeManagerLostEvent() - .NET (C#) ...............................................................148 UnregisterOnRuntimeManagerLostCallback() - Native C++......................................................148 UnregisterOnRuntimeManagerLostEvent() - Native C++ ..........................................................149 UnregisterOnRuntimeManagerLostEvent() - .NET (C#) ............................................................149 WaitForOnRuntimeManagerLostEvent() - Native C++ ..............................................................149 WaitForOnRuntimeManagerLostEvent() - .NET (C#) ................................................................149 OnAutodiscoverData - .NET (C#) ..............................................................................................150 RegisterOnAutodiscoverCallback() - Native C++ ......................................................................150 UnregisterOnAutodiscoverCallback() - Native C++ ...................................................................150 Dispose() - .NET (C#) ................................................................................................................151 GetID() - Native C++ ..................................................................................................................151 ID { get; } - .NET (C#).................................................................................................................151 GetName() - Native C++ ............................................................................................................152 Name { get; } - .NET (C#)...........................................................................................................152 GetCPUType() - Native C++ ......................................................................................................153 SetCPUType() - Native C++.......................................................................................................153 CPUType { get; set; } - .NET (C#) ..............................................................................................153 GetCommunicationInterface() - Native C++...............................................................................154 SetCommunicationInterface() - Native C++ ...............................................................................154 CommunicationInterface { get; set; } - .NET (C#) ......................................................................155 GetInfo() - Native C++................................................................................................................155 Info { get; } - .NET (C#) ..............................................................................................................155 UnregisterInstance() - Native C++ .............................................................................................156 UnregisterInstance() - .NET (C#) ...............................................................................................156 GetControllerName() - Native C++ ............................................................................................157 ControllerName { get; } - .NET (C#) ...........................................................................................157 GetControllerShortDesignation() - Native C++ ..........................................................................158 ControllerShortDesignation { get; } - .NET (C#) .........................................................................158 GetControllerIPCount() - Native C++ .........................................................................................158 GetControllerIP() - Native C++...................................................................................................159 ControllerIP { get; } - .NET (C#) .................................................................................................159 GetControllerIPSuite4() Native C++...........................................................................................159

S7-PLCSIM Advanced

14

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 123 Table 7- 124 Table 7- 125 Table 7- 126 Table 7- 127 Table 7- 128 Table 7- 129 Table 7- 130 Table 7- 131 Table 7- 132 Table 7- 133 Table 7- 134 Table 7- 135 Table 7- 136 Table 7- 137 Table 7- 138 Table 7- 139 Table 7- 140 Table 7- 141 Table 7- 142 Table 7- 143 Table 7- 144 Table 7- 145 Table 7- 146 Table 7- 147 Table 7- 148 Table 7- 149 Table 7- 150 Table 7- 151 Table 7- 152 Table 7- 153 Table 7- 154 Table 7- 155 Table 7- 156 Table 7- 157 Table 7- 158

ControllerIPSuite4 { get; } - .NET (#) ......................................................................................... 159 SetIPSuite() - Native C++ .......................................................................................................... 160 SetIPSuite() - .NET (C#) ............................................................................................................ 160 GetStoragePath() - Native C++..................................................................................................161 SetStoragePath() - Native C++ ..................................................................................................162 StoragePath { get; set; } - .NET (C#) .........................................................................................162 ArchiveStorage() - Native C++...................................................................................................163 ArchiveStorage() - .NET (C#).....................................................................................................163 RetrieveStorage() - Native C++ .................................................................................................164 RetrieveStorage() - .NET (C#) ...................................................................................................164 CleanupStoragePath() - Native C++ ..........................................................................................165 CleanupStoragePath() - .NET (C#)............................................................................................165 PowerOn() - Native C++ ............................................................................................................ 166 PowerOn() - .NET (C#) .............................................................................................................. 168 PowerOff() - Native C++ ............................................................................................................ 170 PowerOff() - .NET (C#) .............................................................................................................. 170 Run() - Native C++ ..................................................................................................................... 171 Run() - .NET (C#).......................................................................................................................171 Stop() - Native C++ .................................................................................................................... 172 Stop() - .NET (C#) ...................................................................................................................... 172 GetOperatingState() - Native C++ .............................................................................................173 OperatingState { get; } - .NET (C#) ............................................................................................174 MemoryReset() - Native C++ ..................................................................................................... 175 MemoryReset() - .NET (C#).......................................................................................................175 UpdateTagList() - Native C++ ....................................................................................................177 UpdateTagList() - .NET (C#)......................................................................................................178 GetTagListStatus() - Native C++................................................................................................ 179 GetTagListStatus() - .NET (C#) .................................................................................................179 GetTagInfoCount() - Native C++................................................................................................180 GetTagInfos() - Native C++........................................................................................................180 TagInfos { get; } - .NET (C#) ......................................................................................................181 CreateConfigurationFile() - Native C++ .....................................................................................181 CreateConfigurationFile() - .NET (C#) .......................................................................................181 InputArea { get; } MarkerArea { get; } OutputArea { get; } - .NET (C#) ......................................183 GetAreaSize() - Native C++ .......................................................................................................183 AreaSize { get; } - .NET (C#)......................................................................................................183

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

15

Table of contents

Table 7- 159 Table 7- 160 Table 7- 161 Table 7- 162 Table 7- 163 Table 7- 164 Table 7- 165 Table 7- 166 Table 7- 167 Table 7- 168 Table 7- 169 Table 7- 170 Table 7- 171 Table 7- 172 Table 7- 173 Table 7- 174 Table 7- 175 Table 7- 176 Table 7- 177 Table 7- 178 Table 7- 179 Table 7- 180 Table 7- 181 Table 7- 182 Table 7- 183 Table 7- 184 Table 7- 185 Table 7- 186 Table 7- 187 Table 7- 188 Table 7- 189 Table 7- 190 Table 7- 191 Table 7- 192 Table 7- 193 Table 7- 194

ReadBit() - Native C++...............................................................................................................184 ReadBit() - .NET (C#).................................................................................................................185 ReadByte() - Native C++............................................................................................................186 ReadByte() - .NET (C#)..............................................................................................................186 ReadByte() - Native C++............................................................................................................187 ReadBytes() - .NET (C#)............................................................................................................188 ReadSignals() - Native C++ .......................................................................................................189 ReadSignals() - .NET (C#) .........................................................................................................190 WriteBit() - Native C++ ...............................................................................................................191 WriteBit() - .NET (C#).................................................................................................................192 WriteByte() - Native C++ ............................................................................................................193 WriteByte() - .NET (C#)..............................................................................................................194 WriteBytes() - Native C++ ..........................................................................................................195 WriteBytes() - .NET (C#) ............................................................................................................196 WriteSignals() - Native C++ .......................................................................................................197 WriteSignals() - .NET (C#) .........................................................................................................198 Read() - Native C++ ...................................................................................................................199 Read() - .NET (C#) .....................................................................................................................200 ReadBool() - Native C++............................................................................................................201 ReadBool() - .NET (C#)..............................................................................................................201 ReadInt8() - Native C++ .............................................................................................................202 ReadInt8() - .NET (C#)...............................................................................................................203 ReadInt16() - Native C++ ...........................................................................................................203 ReadInt16() - .NET (C#).............................................................................................................204 ReadInt32() - Native C++ ...........................................................................................................205 ReadInt32() - .NET (C#).............................................................................................................205 ReadInt64() - Native C++ ...........................................................................................................206 ReadInt64() - .NET (C#).............................................................................................................207 ReadUInt8() - Native C++ ..........................................................................................................208 ReadUInt8() - .NET (C#) ............................................................................................................208 ReadUInt16() - Native C++ ........................................................................................................209 ReadUInt16() - .NET (C#) ..........................................................................................................210 ReadUInt32() - Native C++ ........................................................................................................210 ReadUInt32() - .NET (C#) ..........................................................................................................211 ReadInt64() - Native C++ ...........................................................................................................212 ReadUInt64() - .NET (C#) ..........................................................................................................212

S7-PLCSIM Advanced

16

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 195 Table 7- 196 Table 7- 197 Table 7- 198 Table 7- 199 Table 7- 200 Table 7- 201 Table 7- 202 Table 7- 203 Table 7- 204 Table 7- 205 Table 7- 206 Table 7- 207 Table 7- 208 Table 7- 209 Table 7- 210 Table 7- 211 Table 7- 212 Table 7- 213 Table 7- 214 Table 7- 215 Table 7- 216 Table 7- 217 Table 7- 218 Table 7- 219 Table 7- 220 Table 7- 221 Table 7- 222 Table 7- 223 Table 7- 224 Table 7- 225 Table 7- 226 Table 7- 227 Table 7- 228 Table 7- 229 Table 7- 230

ReadFloat() - Native C++...........................................................................................................213 ReadFloat() - .NET (C#).............................................................................................................214 ReadDouble() - Native C++ .......................................................................................................215 ReadDouble() - .NET (C#) ......................................................................................................... 215 ReadChar() - Native C++ ........................................................................................................... 216 ReadChar() - .NET (C#) ............................................................................................................. 217 ReadWChar() - Native C++........................................................................................................218 ReadWChar() - .NET (C#) ......................................................................................................... 218 ReadSignals() - Native C++ ....................................................................................................... 219 ReadSignals() - .NET (C#) ......................................................................................................... 220 Write() - Native C++ ................................................................................................................... 222 Write() - .NET (C#) ..................................................................................................................... 223 WriteBool() - Native C++ ............................................................................................................ 224 WriteBool() - .NET (C#)..............................................................................................................224 WriteInt8() - Native C++ ............................................................................................................. 225 WriteInt8() - .NET (C#) ............................................................................................................... 226 WriteInt16() - Native C++ ........................................................................................................... 227 WriteInt16() - .NET (C#) ............................................................................................................. 227 WriteInt32() - Native C++ ........................................................................................................... 228 WriteInt32() - .NET (C#) ............................................................................................................. 229 WriteInt64() - Native C++ ........................................................................................................... 230 WriteInt64() - .NET (C#) ............................................................................................................. 230 WriteUInt8() - Native C++ .......................................................................................................... 231 WriteUInt8() - .NET (C#) ............................................................................................................ 232 WriteUInt16() - Native C++ ........................................................................................................ 233 WriteUInt16() - .NET (C#) .......................................................................................................... 233 WriteUInt32() - Native C++ ........................................................................................................ 234 WriteUInt32() - .NET (C#) .......................................................................................................... 235 WriteUInt64() - Native C++ ........................................................................................................ 236 WriteUInt64() - .NET (C#) .......................................................................................................... 236 WriteFloat() - Native C++ ...........................................................................................................237 WriteFloat() - .NET (C#) .............................................................................................................238 WriteDouble() - Native C++........................................................................................................239 WriteDouble() - .NET (C#) ......................................................................................................... 239 WriteChar() - Native C++ ........................................................................................................... 240 WriteChar() - .NET (C#) ............................................................................................................. 241

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

17

Table of contents

Table 7- 231 Table 7- 232 Table 7- 233 Table 7- 234 Table 7- 235 Table 7- 236 Table 7- 237 Table 7- 238 Table 7- 239 Table 7- 240 Table 7- 241 Table 7- 242 Table 7- 243 Table 7- 244 Table 7- 245 Table 7- 246 Table 7- 247 Table 7- 248 Table 7- 249 Table 7- 250 Table 7- 251 Table 7- 252 Table 7- 253 Table 7- 254 Table 7- 255 Table 7- 256 Table 7- 257 Table 7- 258 Table 7- 259 Table 7- 260 Table 7- 261 Table 7- 262 Table 7- 263 Table 7- 264 Table 7- 265 Table 7- 266

WriteWChar() - Native C++ ........................................................................................................242 WriteWChar() - .NET (C#)..........................................................................................................242 WriteSignals() - Native C++ .......................................................................................................243 WriteSignals() - .NET (C#) .........................................................................................................244 GetSystemTime() - Native C++..................................................................................................245 SetSystemTime() - Native C++ ..................................................................................................245 SystemTime { get; set; } - .NET (C#) .........................................................................................245 GetScaleFactor() - Native C++ ..................................................................................................246 SetScaleFactor() - Native C++ ...................................................................................................246 ScaleFactor { get; set; } - .NET (C#) ..........................................................................................247 GetOperatingMode() - Native C++.............................................................................................248 SetOperatingMode() - Native C++ .............................................................................................248 OperatingMode { get; set; } - .NET (C#).....................................................................................248 SetSendSyncEventInDefaultModeEnabled() - Native C++........................................................249 IsSendSyncEventInDefaultModeEnabled() - Native C++ ..........................................................249 IsSendSyncEventInDefaultModeEnabled { get; set; } - .NET (C#) ............................................249 GetOverwrittenMinimalCycleTime_ns() - Native C++ ................................................................250 SetOverwrittenMinimalCycleTime_ns() - Native C++ ................................................................250 OverwrittenMinimalCycleTime_ns { get; set; } - .NET (C#)........................................................251 RunToNextSyncPoint() - Native C++ .........................................................................................251 RunToNextSyncPoint() - .NET (C#) ...........................................................................................251 StartProcessing() - Native C++ ..................................................................................................252 StartProcessing() - .NET (C#) ....................................................................................................252 SetCycleTimeMonitoringMode() - Native C++ ...........................................................................253 SetCycleTimeMonitoringMode() - .NET (C#) .............................................................................254 GetCycleTimeMonitoringMode() - Native C++...........................................................................255 GetCycleTimeMonitoringMode() - .NET (C#).............................................................................255 Events: Read and write operations ............................................................................................256 API methods and associated events..........................................................................................257 ReadRecordDone() - Native C++...............................................................................................258 ReadRecordDone() - .NET (C#) ................................................................................................258 WriteRecordDone() - Native C++ ...............................................................................................259 WriteRecordDone() - .NET (C#).................................................................................................259 AlarmNotification() - Native C++ ................................................................................................260 AlarmNotification() - .NET (C#) ..................................................................................................262 ProcessEvent() - Native C++ .....................................................................................................263

S7-PLCSIM Advanced

18

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 267 Table 7- 268 Table 7- 269 Table 7- 270 Table 7- 271 Table 7- 272 Table 7- 273 Table 7- 274 Table 7- 275 Table 7- 276 Table 7- 277 Table 7- 278 Table 7- 279 Table 7- 280 Table 7- 281 Table 7- 282 Table 7- 283 Table 7- 284 Table 7- 285 Table 7- 286 Table 7- 287 Table 7- 288 Table 7- 289 Table 7- 290 Table 7- 291 Table 7- 292 Table 7- 293 Table 7- 294 Table 7- 295 Table 7- 296 Table 7- 297 Table 7- 298 Table 7- 299 Table 7- 300 Table 7- 301 Table 7- 302

ProcessEvent() - .NET (C#) .......................................................................................................264 PullOrPlugEvent() - Native C++ .................................................................................................265 PullOrPlugEvent() - .NET (C#)...................................................................................................266 StatusEvent() - Native C++ ........................................................................................................ 267 StatusEvent() - .NET (C#) .......................................................................................................... 267 ProfileEvent() - Native C++ ........................................................................................................ 268 ProfileEvent() - .NET (C#) .......................................................................................................... 269 UpdateEvent() - Native C++.......................................................................................................269 UpdateEvent() - .NET (C#) ........................................................................................................ 270 GetConfiguredProcessEvents() - Native C++............................................................................271 GetConfiguredProcessEvents() - .NET (C#)..............................................................................271 RackOrStationFaultEvent() - Native C++...................................................................................272 RackOrStationFaultEvent() - .NET (C#) ....................................................................................272 Events for IInstances ................................................................................................................. 273 OnOperatingStateChanged - .NET (C#) ....................................................................................274 RegisterOnOperatingStateChangedCallback() - Native C++ ....................................................274 RegisterOnOperatingStateChangedEvent() - Native C++ .........................................................274 UnregisterOnOperatingStateChangedCallback() - Native C++ .................................................276 UnregisterOnOperatingStateChangedEvent() - Native C++......................................................276 UnregisterOnOperatingStateChangedEvent() - .NET (C#) .......................................................276 WaitForOnOperatingStateChangedEvent() - Native C++..........................................................276 WaitForOnOperatingStateChangedEvent() - .NET (C#)............................................................277 OnLedChanged - .NET (C#) ......................................................................................................277 RegisterOnLedChangedCallback() - Native C++.......................................................................277 RegisterOnLedChangedEvent() - Native C++ ...........................................................................278 UnregisterOnLedChangedCallback() - Native C++ ...................................................................278 UnregisterOnLedChangedEvent() - Native C++ ........................................................................278 UnregisterOnLedChangedEvent() - .NET (C#)..........................................................................278 WaitForOnLedChangedEvent() - Native C++ ............................................................................279 WaitForOnLedChangedEvent() - .NET (C#) ..............................................................................279 OnConfigurationChanging - .NET (C#) ......................................................................................279 RegisterOnConfigurationChangingCallback() - Native C++ ......................................................280 RegisterOnConfigurationChangingEvent() - Native C++ ...........................................................280 UnregisterOnConfigurationChangingCallback() - Native C++ ...................................................280 UnregisterOnConfigurationChangingEvent() - Native C++........................................................281 UnregisterOnConfigurationChangingEvent() - .NET (C#)..........................................................281

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

19

Table of contents

Table 7- 303 Table 7- 304 Table 7- 305 Table 7- 306 Table 7- 307 Table 7- 308 Table 7- 309 Table 7- 310 Table 7- 311 Table 7- 312 Table 7- 313 Table 7- 314 Table 7- 315 Table 7- 316 Table 7- 317 Table 7- 318 Table 7- 319 Table 7- 320 Table 7- 321 Table 7- 322 Table 7- 323 Table 7- 324 Table 7- 325 Table 7- 326 Table 7- 327 Table 7- 328 Table 7- 329 Table 7- 330 Table 7- 331 Table 7- 332 Table 7- 333 Table 7- 334 Table 7- 335 Table 7- 336 Table 7- 337 Table 7- 338

WaitForOnConfigurationChangingEvent() - Native C++............................................................281 WaitForOnConfigurationChangingEvent() - .NET (C#)..............................................................281 OnConfigurationChanged - .NET (C#) .......................................................................................282 RegisterOnConfigurationChangedCallback() - Native C++ .......................................................282 RegisterOnConfigurationChangedEvent() - Native C++............................................................283 UnregisterOnConfigurationChangedCallback() - Native C++ ....................................................283 UnregisterOnConfigurationChangedEvent() - Native C++.........................................................283 UnregisterOnConfigurationChangedEvent() - .NET (C#) ..........................................................283 WaitForOnConfigurationChangedEvent() - Native C++.............................................................284 WaitForOnConfigurationChangedEvent() - .NET (C#) ..............................................................284 OnSyncPointReached - .NET (C#) ............................................................................................284 RegisterOnSyncPointReachedCallback() - Native C++.............................................................285 RegisterOnSyncPointReachedEvent() - Native C++ .................................................................285 UnregisterOnSyncPointReachedCallback() - Native C++ .........................................................285 UnregisterOnSyncPointReachedEvent() - Native C++ ..............................................................286 UnregisterOnSyncPointReachedEvent() - .NET (C#) ................................................................286 WaitForOnSyncPointReachedEvent() - Native C++ ..................................................................286 WaitForOnSyncPointReachedEvent() - .NET (C#) ....................................................................287 OnDataRecordRead - .NET (C#) ...............................................................................................287 OnDataRecordWrite - .NET (C#) ...............................................................................................287 RegisterOnDataRecordReadCallback() - Native C++ ...............................................................288 UnregisterOnDataRecordReadCallback() - Native C++ ............................................................288 RegisterOnDataRecordWriteCallback() - Native C++................................................................288 UnregisterOnDataRecordWriteCallback() - Native C++ ............................................................289 OnAlarmNotificationDone() - .NET (C#).....................................................................................289 RegisterOnAlarmNotificationDoneCallback() - Native C++ .......................................................289 UnregisterOnAlarmNotificationDoneCallback() - Native C++ ....................................................290 OnProcessEventDone() - .NET (C#)..........................................................................................290 RegisterOnProcessEventDoneCallback() - Native C++ ............................................................290 UnregisterOnProcessEventDoneCallback() - Native C++ .........................................................291 OnPullOrPlugEventDone() - .NET (C#) .....................................................................................291 RegisterOnPullOrPlugEventDoneCallback() - Native C++ ........................................................291 UnregisterOnPullOrPlugEventDoneCallback() - Native C++ .....................................................292 OnStatusEventDone() - .NET (C#) ............................................................................................292 RegisterOnStatusEventDoneCallback() - Native C++ ...............................................................292 UnregisterOnStatusEventDoneCallback() - Native C++ ............................................................293

S7-PLCSIM Advanced

20

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 339 Table 7- 340 Table 7- 341 Table 7- 342 Table 7- 343 Table 7- 344 Table 7- 345 Table 7- 346 Table 7- 347 Table 7- 348 Table 7- 349 Table 7- 350 Table 7- 351 Table 7- 352 Table 7- 353 Table 7- 354 Table 7- 355 Table 7- 356 Table 7- 357 Table 7- 358 Table 7- 359 Table 7- 360 Table 7- 361 Table 7- 362 Table 7- 363 Table 7- 364 Table 7- 365 Table 7- 366 Table 7- 367 Table 7- 368 Table 7- 369 Table 7- 370 Table 7- 371 Table 7- 372 Table 7- 373 Table 7- 374

OnProfileEventDone() - .NET (C#) ............................................................................................293 RegisterOnProfileEventDoneCallback() - Native C++ ...............................................................293 UnregisterOnProfileEventDoneCallback() - Native C++ ............................................................294 OnUpdateEventDone() - .NET (C#) ...........................................................................................294 RegisterOnUpdateEventDoneCallback() - Native C++..............................................................294 UnregisterOnUpdateEventDoneCallback() - Native C++ ..........................................................295 OnRackOrStationFaultEvent - .NET (C#) ..................................................................................295 RegisterOnRackOrStationFaultEventCallback() - Native C++ ..................................................295 UnregisterOnRackOrStationFaultEventCallback() - Native C++ ...............................................296 Dispose() - .NET (C#) ................................................................................................................ 296 GetVersion() - Native C++ ......................................................................................................... 297 Version { get; } - .NET (C#) ........................................................................................................ 297 GetIP() - Native C++ .................................................................................................................. 297 IP { get; } - .NET (C#) ................................................................................................................. 297 GetPort() - Native C++ ............................................................................................................... 298 Port { get; } - .NET (C#)..............................................................................................................298 GetRemoteComputerName() - Native C++ ...............................................................................298 RemoteComputerName { get; } - .NET (C#) ..............................................................................298 Disconnect() - Native C++..........................................................................................................299 Disconnect() - .NET (C#) ........................................................................................................... 299 GetRegisteredInstancesCount() - Native C++ ........................................................................... 300 GetRegisteredInstanceInfoAt() - Native C++ .............................................................................300 RegisterInstanceInfo { get; } - .NET (C#) ...................................................................................301 RegisterInstance() - Native C++ ................................................................................................ 301 RegisterInstance() - .NET (C#) ..................................................................................................303 RegisterCustomInstance() - Native C++ ....................................................................................304 RegisterCustomInstance() - .NET (C#)......................................................................................305 CreateInterface() - Native C++...................................................................................................306 CreateInterface() - .NET (C#) ....................................................................................................307 OnConnectionLost - .NET (C#)..................................................................................................308 RegisterOnConnectionLostCallback() - Native C++ ..................................................................308 RegisterOnConnectionLostEvent() - Native C++.......................................................................309 RegisterOnConnectionLostEvent() - .NET (C#).........................................................................309 UnregisterOnConnectionLostCallback() - Native C++ ...............................................................309 UnregisterOnConnectionLostEvent() - Native C++....................................................................310 UnregisterOnConnectionLostEvent() - .NET (C#) .....................................................................310

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

21

Table of contents

Table 7- 375 Table 7- 376 Table 7- 377 Table 7- 378 Table 7- 379 Table 7- 380 Table 7- 381 Table 7- 382 Table 7- 383 Table 7- 384 Table 7- 385 Table 7- 386 Table 7- 387 Table 7- 388 Table 7- 389 Table 7- 390 Table 7- 391 Table 7- 392 Table 7- 393 Table 7- 394 Table 7- 395 Table 7- 396 Table 7- 397 Table 7- 398 Table 7- 399 Table 7- 400 Table 7- 401 Table 7- 402 Table 7- 403 Table 7- 404 Table 7- 405 Table 7- 406 Table 7- 407 Table 7- 408 Table 7- 409 Table 7- 410

WaitForOnConnectionLostEvent() - Native C++........................................................................310 WaitForOnConnectionLostEvent() - .NET (C#)..........................................................................310 ApiEntry_Initialize - Native C++ .................................................................................................312 ApiEntry_DestroyInterface - Native C++ ....................................................................................312 EventCallback_VOID - Native C++ ............................................................................................313 EventCallback_SRCC_UINT32_UINT32_INT32 - Native C++...................................................313 EventCallback_SRRSI_AD - Native C++ ...................................................................................314 EventCallback_IRRTM - Native C++..........................................................................................314 EventCallback_II_SREC_ST_SROS_SROS - Native C++.........................................................315 EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 - Native C++.............................316 EventCallback_II_SREC_ST - Native C++.................................................................................317 EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32 - Native C++...........318 EventCallback_II_SREC_ST_SRLT_SRLM - Native C++..........................................................319 EventCallback_II_SREC_ST_SDRI - Native C++ ......................................................................320 EventCallback_II_SREC_ST_SDRI_BYTE - Native C++ ...........................................................321 EventCallback_II_SREC_ST_UINT32_UINT32 - Native C++ ....................................................322 EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32 - Native C++...........................323 EventCallback_II_SREC_ST_UINT32_EPPET_UINT32 - Native C++.......................................324 EventCallback_II_SREC_ST_UINT32_ERSFET - Native C++ ..................................................325 EventCallback_II_SREC_ST_UINT32 - Native C++ ..................................................................326 Delegate_Void - .NET (C#) ........................................................................................................327 Delegate_SRCC_UINT32_UINT32_INT32 - .NET (C#) .............................................................327 Delegate_SRRSI_AD - .NET (C#)..............................................................................................328 Delegate_II_EREC_DT - .NET (C#) ...........................................................................................328 Delegate_II_EREC_DT_EOS_EOS - .NET (C#) ........................................................................329 Delegate_II_EREC_DT_ELT_ELM - .NET (C#) .........................................................................330 Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 - .NET (C#) .......................................331 Delegate_IRRTM - .NET (C#) ....................................................................................................332 Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 - .NET (C#).....................332 Delegate_II_EREC_DT_SDRI - .NET (C#).................................................................................333 Delegate_II_EREC_DT_SDR - .NET (C#)..................................................................................334 Delegate_SREC_ST_UINT32_EPPET_UINT32 - .NET (C#).....................................................335 Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32 - Native C++ .......................................336 Delegate_SREC_ST_UINT32 - .NET (C#).................................................................................337 Delegate_SREC_ST_UINT32_UINT32 - .NET (C#) ..................................................................338 Delegate_SREC_ST_UINT32_ERSFET - .NET (C#).................................................................339

S7-PLCSIM Advanced

22

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 411 Table 7- 412 Table 7- 413 Table 7- 414 Table 7- 415 Table 7- 416 Table 7- 417 Table 7- 418 Table 7- 419 Table 7- 420 Table 7- 421 Table 7- 422 Table 7- 423 Table 7- 424 Table 7- 425 Table 7- 426 Table 7- 427 Table 7- 428 Table 7- 429 Table 7- 430 Table 7- 431 Table 7- 432 Table 7- 433 Table 7- 434 Table 7- 435 Table 7- 436 Table 7- 437 Table 7- 438 Table 7- 439 Table 7- 440 Table 7- 441 Table 7- 442 Table 7- 443 Table 7- 444 Table 7- 445 Table 7- 446

Definitions - Native C++ ............................................................................................................. 340 Constants - .NET (C#) ............................................................................................................... 340 UIP - Native C++ ........................................................................................................................ 341 UDataValue - Native C++ .......................................................................................................... 342 SDataValue - Native C++...........................................................................................................344 SDataValue - .NET (C#) ............................................................................................................ 345 SDVBNI - Native C++ ................................................................................................................ 346 SDVBNI - .NET (C#) .................................................................................................................. 347 SDataValueByAddress - Native C++ .........................................................................................347 SDataValueByAddress - .NET (C#) ...........................................................................................347 SDataValueByAddressWithCheck - Native C++........................................................................347 SDataValueByAddressWithCheck - .NET (C#) .........................................................................348 SDataValueByName - Native C++.............................................................................................348 SDataValueByName - .NET (C#)...............................................................................................348 SDataValueByNameWithCheck - Native C++ ...........................................................................348 SDataValueByNameWithCheck - .NET (C#) .............................................................................349 SConnectionInfo - Native C++ ...................................................................................................349 SConnectionInfo - .NET (C#) .....................................................................................................349 SInstanceInfo - Native C++........................................................................................................349 SInstanceInfo - .NET (C#)..........................................................................................................350 SDimension - Native C++ ..........................................................................................................350 SDimension - .NET (C#) ............................................................................................................350 STagInfo - Native C++ ............................................................................................................... 351 STagInfo - .NET (C#) ................................................................................................................. 352 SIP - .NET (C#) .......................................................................................................................... 353 SIPSuite4 - Native C++ .............................................................................................................. 353 SIPSuite4 - .NET (C#)................................................................................................................354 SOnSyncPointReachedResult - Native C++..............................................................................355 SOnSyncPointReachedResult - .NET (C#) ...............................................................................356 SDataRecordInfo - Native C++ .................................................................................................. 357 SDataRecordInfo - .NET (C#) ....................................................................................................357 SDataRecord - .NET (C#) .......................................................................................................... 358 SConfiguredProcessEvents - Native C++..................................................................................358 SConfiguredProcessEvents - .NET (C#) ...................................................................................359 SDiagExtChannelDescription - Native C++ ...............................................................................360 SDiagExtChannelDescription - .NET (C#) .................................................................................361

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

23

Table of contents

Table 7- 447 Table 7- 448 Table 7- 449 Table 7- 450 Table 7- 451 Table 7- 452 Table 7- 453 Table 7- 454 Table 7- 455 Table 7- 456 Table 7- 457 Table 7- 458 Table 7- 459 Table 7- 460 Table 7- 461 Table 7- 462 Table 7- 463 Table 7- 464 Table 7- 465 Table 7- 466 Table 7- 467 Table 7- 468 Table 7- 469 Table 7- 470 Table 7- 471 Table 7- 472 Table 7- 473 Table 7- 474 Table 7- 475 Table 7- 476 Table 7- 477 Table 7- 478 Table 7- 479 Table 7- 480 Table 7- 481 Table 7- 482

Error types according to PROFINET standard...........................................................................361 ExtChannelErrType error types..................................................................................................362 SAutodiscoverData - Native C++ ...............................................................................................362 SAutodiscoverData - .NET (C#) .................................................................................................362 ERuntimeErrorCode - Native C++ .............................................................................................364 ERuntimeErrorCode - .NET (C#) ...............................................................................................367 EArea - Native C++ ....................................................................................................................369 EArea - .NET (C#) ......................................................................................................................369 EOperatingState - Native C++ ...................................................................................................369 EOperatingState - .NET (C#) .....................................................................................................370 EOperatingMode - Native C++...................................................................................................370 EOperatingMode - .NET (C#).....................................................................................................370 ECPUType - Native C++ ............................................................................................................371 ECPUType - .NET (C#)..............................................................................................................372 ECommunicationInterface - Native C++ ....................................................................................373 ECommunicationInterface - .NET (C#) ......................................................................................373 ELEDType - Native C++.............................................................................................................373 ELEDType - .NET (C#) ..............................................................................................................374 ELEDMode - Native C++............................................................................................................374 ELEDMode - .NET (C#) .............................................................................................................374 EPrimitiveDataType - Native C++ ..............................................................................................375 EPrimitiveDataType - .NET (C#) ................................................................................................375 Compatible primitive data types - Reading ................................................................................375 Compatible primitive data types - Write .....................................................................................376 EDataType - Native C++ ............................................................................................................377 EDataType - .NET (C#)..............................................................................................................380 ETagListDetails - Native C++.....................................................................................................382 ETagListDetails - .NET (C#).......................................................................................................382 ERuntimeConfigChanged - Native C++ .....................................................................................383 ERuntimeConfigChanged - .NET (C#) .......................................................................................383 EInstanceConfigChanged - Native C++.....................................................................................383 EInstanceConfigChanged - .NET (C#).......................................................................................383 EPullOrPlugEventType - Native C++ .........................................................................................384 EPullOrPlugEventType - .NET (C#) ...........................................................................................384 EProcessEventType - Native C++ .............................................................................................384 EProcessEventType - .NET (C#) ...............................................................................................385

S7-PLCSIM Advanced

24

Function Manual, 11/2019, A5E37039512-AC

Table of contents

Table 7- 483 Table 7- 484 Table 7- 485 Table 7- 486 Table 7- 487 Table 7- 488 Table 7- 489 Table 7- 490 Table 7- 491 Table 7- 492 Table 7- 493 Table 7- 494

EDirection - Native C++ ............................................................................................................. 385 EDirection - .NET (C#) ............................................................................................................... 385 EDiagProperty - Native C++ ......................................................................................................385 EDiagProperty - .NET (C#) ........................................................................................................ 386 EDiagSeverity - Native C++ .......................................................................................................386 EDiagSeverity - .NET (C#) ......................................................................................................... 386 ERackOrStationFaultType - Native C++ ....................................................................................387 ERackOrStationFaultType - .NET (C#)......................................................................................387 ECycleTimeMonitoringMode - Native C++ ................................................................................387 ECycleTimeMonitoringMode - .NET (C#) ..................................................................................387 EAutodiscoverType - Native C++...............................................................................................388 EAutodiscoverType - .NET (C#) ................................................................................................388

Figures
Figure 2-1 Figure 3-1 Figure 3-2 Figure 3-3 Figure 4-1 Figure 4-2 Figure 4-3 Figure 4-4 Figure 4-5 Figure 4-6 Figure 4-7 Figure 5-1 Figure 5-2 Figure 5-3 Figure 5-4 Figure 5-5 Figure 5-6 Figure 5-7 Figure 5-8 Figure 5-9

Enable simulation capability.........................................................................................................35 Activating the Trial License ..........................................................................................................44 Trial License message ................................................................................................................. 45 Timeout alarm ..............................................................................................................................45 Local communication via Softbus ................................................................................................ 55 Local communication via TCP/IP .................................................................................................56 Distributed communication via Ethernet ......................................................................................57 Distributed communication via network adapters ........................................................................58 Distributed communications with PCs and virtual machines .......................................................59 Activate PLCSIM Virtual Switch ................................................................................................... 60 Accessible devices on the Virtual Ethernet Adapter ....................................................................61 PLCSIM Advanced Symbol..........................................................................................................63 Opening a graphical interface ...................................................................................................... 63 Example: Message in the taskbar................................................................................................63 Control Panel: Title bar ................................................................................................................64 Control Panel V3.0 ....................................................................................................................... 66 Control Panel: Importing instances ..............................................................................................70 Example: Download via the "PLCSIM Virtual Ethernet Adapter" (TCP/IP) after naming ............72 Structure of the MAC address for an instance.............................................................................74 Add card reader ...........................................................................................................................78

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

25

Table of contents

Figure 5-10 Figure 6-1 Figure 6-2 Figure 6-3 Figure 6-4 Figure 7-1 Figure 7-2 Figure 7-3 Figure 7-4 Figure 7-5 Figure 8-1 Figure 8-2

Preview of download dialog .........................................................................................................78 Freeze state of the virtual controller.............................................................................................90 Overview of the synchronization points .......................................................................................91 Example: Sequence in the SingleStep_CP operating mode........................................................93 Example: Sequence in the TimespanSynchronized_CP operating mode ...................................95 External applications and Simulation Runtime.............................................................................97 Access to instances with distributed communication ...................................................................98 API and external applications.......................................................................................................99 Read and write operations flowchart..........................................................................................256 Flowchart for the simulation of events .......................................................................................257 Example: Error code 63 .............................................................................................................396 Policy exceptions for VMware vSphere Hypervisor (ESXi)........................................................397

S7-PLCSIM Advanced

26

Function Manual, 11/2019, A5E37039512-AC

Guide

1

1.1

Documentation guide

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200SP distributed I/O system is arranged into three areas.

Basic information
System manuals and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500 and ET 200SP systems. The STEP 7 online help supports you in configuration and programming.

Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742691). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500 (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500 (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

27

Guide 1.1 Documentation guide

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (https://support.industry.siemens.com/My/ww/en/).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

TIA Selection Tool
The TIA Selection Tool can be used to select, configure and order devices for Totally Integrated Automation (TIA). It assembles the configuration editors for automation technology already familiar into a single tool.
With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

S7-PLCSIM Advanced

28

Function Manual, 11/2019, A5E37039512-AC

Guide 1.1 Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on different SIMATIC S7 stations as a bulk operation independent of TIA Portal. The SIMATIC Automation Tool provides a wide range of functions:  Scanning a PROFINET/Ethernet system network and identification of all connected CPUs  Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a
CPU  Transfer of the date and the PG/PC time converted to UTC time to the module  Program download to CPU  RUN/STOP mode switchover  CPU localization with LED flashing  Reading out CPU error information  Reading the CPU diagnostics buffer  Reset to factory settings  Firmware update of the CPU and connected modules You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

SIEMENS PRONETA (PROFINET network analysis) allows you to analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview automatically scans the PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

29

Guide 1.2 S7-PLCSIM products

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and the optimal use of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

1.2

S7-PLCSIM products

PLCSIM Advanced V3.0, PLCSIM V16 and PLCSIM V5.x

Table 1- 1 Comparison of S7-PLCSIM products

Function Runtime User interface Communication Supported CPU families

PLCSIM Advanced V3.0 Independent Control Panel Softbus, TCP/IP S7-1500 (C, T, F), ET 200SP, ET 200SP F

API for co-simulation1 Web server ODK OPC UA Process diagnostics S7 communication Open user communication Traces2 Motion3 Protected blocks (KHP) Multiple instances Support of distributed instances Virtual time

 , only via TCP/IP  , only via TCP/IP   , UDP only via TCP/IP    Up to 16 , only via TCP/IP


PLCSIM V16 Programming with STEP 7 Look&Feel of TIA Portal Softbus only S7-1200 (F), S7-1500 (C, T, F), ET 200SP, ET 200SP F  Softbus Softbus () () , for S7-1500 CPUs only Up to 2 -
-

PLCSIM V5.x Programming with STEP 7 Look&Feel of STEP 7 V5.x Softbus only S7-300, S7-300F S7-400, S7-400F
Softbus -
-

S7-PLCSIM Advanced

30

Function Manual, 11/2019, A5E37039512-AC

Guide 1.2 S7-PLCSIM products

Function
Connection of real CPUs/HMIs DNS usage Virtual memory card Communication between the instances

PLCSIM Advanced V3.0 , only via TCP/IP

PLCSIM V16 -

PLCSIM V5.x -



-

-



-

-

-

PLCSIM as of V12 and PLCSIM V5.x can be installed and

operated on the same PC or the same virtual machine.

-

Instances of PLCSIM as of V12 can communicate via Soft-

bus with PLCSIM V5.x.

PLCSIM Advanced 3.0 and PLCSIM V15 and higher can be -

installed and operated on the same PC or the same virtual

machine. The communication between the two applications cannot be simulated.

PLCSIM V5.4 SP8 is automatically installed with PLCSIM Advanced. The communication between the two applications can be simulated. Instances of PLCSIM Advanced can com-

municate via Softbus with PLCSIM V5.4 SP8.

1 Via C++ and C# programs and simulation software 2 Can be monitored with PLCSIM V16 in the TIA Portal; can also be monitored with PLCSIM Advanced V3.0 in the Web
server. 3 With PLCSIM V16 the axes are always in simulation mode irrespective of the axis configuration.
With PLCSIM Advanced V3.0 the axes can also be operated in "Real" mode over the API.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

31

Product overview

2

2.1

What is S7-PLCSIM Advanced?

Using PLCSIM Advanced, you can simulate your CPU programs on a virtual controller. You do not need any real controllers for this. You can configure your CPU with STEP 7 in the TIA Portal, program your application logic and then load the hardware configuration and the program into the virtual controller. From there you can run your program logic, observe the effects of simulated inputs and outputs and adapt your programs.

In addition to communicating via Softbus, PLCSIM Advanced provides a full Ethernet connection and can thus also communicate distributed.

PLCSIM Advanced enables interaction with native C++/C# programs or simulation software over the user interface (API).

Application areas
 Verification of the user program (TIA Portal)
 Automatic testing of the STEP 7 program
 Software in the loop simulation for the virtual commissioning of machine tools/production machines, production cells and production lines in a plant.

Advantages

The use of PLCSIM Advanced offers numerous advantages:  Improve quality of automation projects by early error detection  Avoid costs for hardware in simulation environments  Reduced response times  Reduce risk for commissioning  Earlier training of operator is possible  Increase production efficiency by optimizing program components  Increase efficiency during replacement of machine components  Increase efficiency during expansion of existing plants

S7-PLCSIM Advanced

32

Function Manual, 11/2019, A5E37039512-AC

Product overview 2.2 Compatibility during upgrade

2.2

Compatibility during upgrade

Compatibility of API and Runtime versions
PLCSIM Advanced V3.0 includes Runtime version V3.0 and API versions V1.0 (SP1) to V3.0.
The installation of PLCSIM Advanced V3.0 leads to an upgrade of an existing earlier version. The Runtime Manager of PLCSIM Advanced V3.0 is compatible with projects that were created with earlier API versions. You can therefore continue to use already created projects.
Note
An API with a higher version number (for example V3.0) cannot connect with an earlier Runtime version (for example V1.0).

Compatibility to TIA Portal and to CPU firmware versions
The firmware used in PLCSIM Advanced V3.0 corresponds to that of a CPU S7-15xx V2.8. The firmware is compatible to the TIA Portal versions V14 to V16.

Table 2- 1 Compatibility with CPU firmware versions

PLCSIM Advanced V1.0 SP1 V2.0 V2.0 SP1 V3.0

Supported CPU firmware version V1.8, V2.0 V1.8 to V2.5 V1.8 to V2.6 V1.8 to V2.8

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

33

Product overview 2.3 Security for S7-PLCSIM Advanced

2.3

Security for S7-PLCSIM Advanced

Restrictions for security
Note the following restrictions when using PLCSIM Advanced:
Authentication  The user interfaces (API) do not have options for authentication and authorization. There
is no protection using user accounts and passwords.  The Runtime Manager communication is not protected by authentication.
Communication  The multi-computer simulation communication is not encrypted.  A TCP/IP port is opened on the PC for cross-network communication.  The installed WinPcap program library provides access to TCP/IP network
communication.
Note For cross-computer communication, it is recommended to use a closed simulation network that is not connected to a production network.

Know-how protection
Note Know-how protected blocks If know-how-protected blocks for the simulation support are enabled, the know-how protection is limited.
Note CPU function libraries for ODK The SO files for ODK are not know-how-protected. The customer is responsible for the SO files and its know-how protection.

S7-PLCSIM Advanced

34

Function Manual, 11/2019, A5E37039512-AC

Product overview 2.4 Simulations support

2.4

Simulations support

Requirement for simulation
Note Enable simulation capability To use a STEP 7 project with simulation, you must select the "Support simulation during block compilation" option in the "Protection" tab in the properties of the project and confirm with OK.

Figure 2-1 Enable simulation capability
Know-how protection
If a know-how-protected block is to be used for the simulation, it must be unlocked by entering a password. Only through unlocking can the "Simulation with SIMATIC S7-PLCSIM Advanced" option in the tab "General > Compilation" in the properties of the block be activated. Additional information can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109754928).
Global libraries
You cannot use know-how protection with global libraries, because the libraries are writeprotected. The "Simulation with SIMATIC S7-PLCSIM Advanced" option must be set when generating the blocks (source of the blocks).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

35

Product overview 2.5 Supported CPUs

2.5

Supported CPUs

Supported CPUs from the S7-1500 family
PLCSIM Advanced V3.0 supports the simulation of the following CPUs:

Table 2- 2 Supported CPUs

Type Standard CPUs / Fail-safe CPUs
Compact CPUs1 ET 200SP CPUs Technology CPUs

Version V1.8 to V2.8 CPU 1511-1 PN CPU 1513-1 PN CPU 1515-2 PN CPU 1516-3 PN/DP CPU 1517-3 PN/DP CPU 1518-4 PN/DP CPU 1518-4 PN/DP ODK CPU 1518-4 PN/DP MFP CPU 1511C-1 PN CPU 1512C-1 PN CPU 1510SP-1 PN CPU 1512SP-1 PN CPU 1511T-1 PN CPU 1515T-2 PN CPU 1516T-3 PN/DP CPU 1517T-3 PN/DP

CPU 1511F-1 PN CPU 1513F-1 PN CPU 1515F-2 PN CPU 1516F-3 PN/DP CPU 1517F-3 PN/DP CPU 1518F-4 PN/DP CPU 1518F-4 PN/DP ODK CPU 1518F-4 PN/DP MFP
CPU 1510SP F-1 PN CPU 1512SP F-1 PN CPU 1511TF-1 PN CPU 1515TF-2 PN CPU 1516TF-3 PN/DP CPU 1517TF-3 PN/DP

1 The on-board I/O within the compact CPUs is not simulated. The simulation interface corresponds to the process image.

Unsupported CPUs
PLCSIM Advanced does not support the simulation of the following CPUs:  S7-1500R/H CPUs  S7-1200 CPUs  ET 200pro, ET 200pro F CPUs  ET 200SP Open Controller CPU 1515SP PC  Software Controller

S7-PLCSIM Advanced

36

Function Manual, 11/2019, A5E37039512-AC

Product overview 2.6 Differences between a simulated and a real CPU

2.6

Differences between a simulated and a real CPU

The virtual controller cannot fully simulate a real CPU down to the individual details. Even if a program is downloaded without errors to the CPU and running successfully, this does not necessarily mean that the virtual controller in the simulation behaves exactly like a real CPU.

Deterministic

PLCSIM Advanced runs on a PC with the Windows operating system. Therefore, the scan cycle time and the exact time of actions in PLCSIM Advanced are not the same as when these actions run on physical hardware. This is because that several programs share the processing resources on your PC.
To provide the best possible deterministic behavior under these conditions, PLCSIM Advanced as of V2.0 requires one free Core (CPU core) per instance.
If your program depends heavily on the time required to execute actions, then make sure that you do not evaluate your program based only on the results of the simulation time.

Know-how protection
Projects with know-how protection for blocks can only be simulated if they are enabled for simulation. You need the block password for this purpose.

Instructions

Instructions are simulated with a few exceptions, see Restrictions for instructions (Page 394).
Programs that are based on the instructions behave different than real CPUs in the simulation.

Display of the quantity structure
In STEP 7 the maximum quantity structure that is based on the CPU 1518-4 PN/DP is shown in the project navigation under "Program info" for all the CPUs.
The maximum quantity structure of the currently simulated CPU is displayed under "Online & diagnositics".

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

37

Product overview 2.6 Differences between a simulated and a real CPU

2.6.1

Restrictions for all supported CPUs

Bus systems

PLCSIM Advanced does not simulate bus systems (PROFINET IO, PROFIBUS DP, backplane bus).

I/O
PLCSIM Advanced simulates the real CPU, but not configured I/O modules and the on-board I/O of the compact CPUs.

Communication modules
PLCSIM Advanced does not support communication modules and the associated features such as "Access to PLC via communication module".

Process image partitions
Process image partitions are supported as with the real CPU.
Address spaces that are not assigned to a process image partition are updated at the cycle control point.

Diagnostics / diagnostic alarms
With PLCSIM Advanced, simple diagnostics buffer entries can be simulated according to PROFINET standard.
PROFIBUS-specific diagnostics (e.g. via DS0, DS1) and user-specific text lists are not supported.

Online and diagnostic functions
Some online and diagnostic functions are not very useful in the simulation and are therefore not supported. These include, for example, the functions "Format memory card" and "Firmware update".

Status indicators LED flashing
In STEP 7, you can have the LED displayed on an CPU flash using the "Extended download to device" dialog. PLCSIM Advanced does not simulate this function.

Data logging

PLCSIM Advanced does not simulate data logging.

S7-PLCSIM Advanced

38

Function Manual, 11/2019, A5E37039512-AC

Product overview 2.6 Differences between a simulated and a real CPU

Recipes

PLCSIM Advanced does not simulate the use of recipes.

Copy protection
PLCSIM Advanced does not simulate copy protection.

Limited support
PLCSIM Advanced simulates some functions to a limited extent. You can find an overview in the section Restrictions, messages and solution (Page 389).

2.6.2

Notes

Password transfer when module is replaced (S7-1500)
Depending on the firmware version of the CPUs affected (the CPU to be replaced and the replacement CPU), you are either offered an update to the latest algorithm or prompted to assign a new password because the replacement CPU cannot use the existing password configuration.
If the CPU to be replaced and the replacement CPU are identical in terms of the algorithm used, no action is required: the password configuration and the other parameter settings are transferred.
PLCSIM Advanced does not support any password encryption for CPU versions with firmware less than V2.0.
In order to use protection levels, the Web server and the access protection of the F-CPU in the simulation, click on the "Update password encryption" button. The button is located in the CPU properties in the "Protection & Security" tab under "Access level".

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

39

Product overview 2.6 Differences between a simulated and a real CPU
HMI devices and CPU protection levels
 PLCSIM Advanced supports HMI devices as of version 14. Connections to HMI devices prior to V14 are not supported.
 PLCSIM Advanced supports protection levels if the virtual S7-1500 controller is configured with a firmware version V2.0 or higher.
 It is possible to connect HMI devices as of V14 to virtual S7-1500 controllers that are configured with a firmware version V2.0 or higher, with or without protection levels.
 It is possible to connect HMI devices as of V14 to virtual S7-1500 controllers which are configured with a firmware version lower than V2.0 without protection levels.
Solution To establish a connection to the HMI device V13 or earlier, you have to update this HMI device to version V14. To establish a connection from the virtual controller that is configured with a firmware version lower than V2.0 to the HMI device, you have to remove existing protection levels from the project.
Safety system version V1.6 or V2.0 for fail-safe I/O
To successfully simulate and test a project with fail-safe input and output modules, you need to use safety system version V1.6 or V2.0 for the project. Simulation of the fail-safe input and output modules does not work correctly with an older version.
Priority for hardware interrupt OB
The hardware interrupts triggered via the PLCSIM Advanced API are transmitted in sequence to the user program. The priority of the assigned hardware interrupt OB determines the sequence of execution only if events occur simultaneously.

S7-PLCSIM Advanced

40

Function Manual, 11/2019, A5E37039512-AC

Installing

3

3.1
3.1.1

Introduction

System requirements
You should preferably install PLCSIM Advanced on a SIMATIC Field PG M5 Advanced or comparable PC.
For PLCSIM Advanced to operate efficiently, the following minimum requirements for computer hardware or for a virtual machine must be met.

Table 3- 1 System requirements

Processor
RAM Free hard disk space Screen resolution

Hardware

Virtual machine

· One logical Intel CoreTM i7-6820EQ core per started instance

· One virtual CPU per started instance has to be assigned to the VM

· At least one additional core for · A corresponding number of

the operating system

processors has to be physically

· At least one additional core for

available on the host

the additional active applications · At least one additional core for

the operating system

· At least one additional core for the additional active applications

· At least two cores, if STEP 7 (TIA Portal) is installed on the VM

· 1 GB per started instance

· 1 GB per started instance

· At least 4 GB for the Windows operating system

· At least 4 GB for the Windows operating system

· Additional RAM corresponding to · Additional RAM corresponding to

the requirements of the remain-

the requirements of the remain-

ing active applications

ing active applications

· At least 8 GB, if STEP 7 (TIA Portal) is installed on the VM

5 GB Minimum 1024 x 768

5 GB Minimum 1024 x 768

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

41

Installing 3.1 Introduction
Operating systems (64-bit versions)
PLCSIM Advanced V3.0 supports the following operating systems:  Windows 7 Home Premium  Windows 7 Professional SP1  Windows 7 Enterprise SP1  Windows 7 Ultimate SP1  Windows 10 Home Version 1809, 1903  Windows 10 Pro Version 1809, 1903  Windows 10 Enterprise Version 1809, 1903 (for SIMATIC Field PG M5)  Windows 10 (IoT) Enterprise 2016 LTSB  Windows 10 (IoT) Enterprise 2019 LTSC  Windows Server 2012 R2 StdE (full installation)  Windows Server 2016 Standard (full installation)  Windows Server 2019 Standard (full installation)
Note Make sure that the Windows operating system you are using is up to date.
Virtualization platforms
You can install STEP 7 and PLCSIM Advanced on a virtual machine. For this purpose, use one of the following virtualization platforms in the specified version or a newer version:  VMware vSphere Hypervisor (ESXi) 6.7  VMware Workstation Pro 15.0.2  VMware Player 15.0.2 The information that you need to install STEP 7 (TIA Portal) on a virtual machine is available on the Internet (https://support.industry.siemens.com/cs/ww/en/view/78788417).

S7-PLCSIM Advanced

42

Function Manual, 11/2019, A5E37039512-AC

3.1.2

Installing 3.1 Introduction
Restrictions due to antivirus programs
NOTICE Restrictions due to antivirus programs Virus scanners that monitor the behavior of processes and communication can have a significant impact on the performance of the runtime and communication of PLCSIM Advanced.
Note Readme You can obtain updates to the topic as downloads on the Internet (https://support.industry.siemens.com/cs/us/en/view/109739154).

Supported antivirus programs
PLCSIM Advanced supports Trend Micro Office Scan 12.0.
Known problems and limitations
Kaspersky When using the Anti-Virus virus scanner from Kaspersky, the network settings may not be set correctly during the installation of PLCSIM Advanced. The result is that communication via TCP/IP cannot be used (error code -50).
Remedy Check your network settings as described in the section Activating distributed communication (Page 60).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

43

Installing 3.1 Introduction

3.1.3

Licenses

Floating license
PLCSIM Advanced is supplied with a floating type license. It can be stored locally and shared for a network.
Note Validity A license is valid for two instances within a PLCSIM Advanced installation. PLCSIM Advanced V3.0 can only be used with a V3.0 license.
Handling of licenses is described in the Help for SIMATIC Automation License Manager (ALM).

3.1.4

Trial License
A license is available for the limited period of 21 days for S7-PLCSIM Advanced V3.0. After this Trial License has elapsed, the instance is no longer started.

Activating the Trial License
As soon as you start an instance in the Control Panel, the Automation License Manager (ALM) searches the network for a valid license. If a Floating License is available for S7-PLCSIM Advanced, the ALM offers the Trial License for activation.

Figure 3-1 Activating the Trial License

S7-PLCSIM Advanced

44

Function Manual, 11/2019, A5E37039512-AC

Installing 3.1 Introduction
A message at the start of the instances shows the remaining number of days.

Figure 3-2 Trial License message
Note Remote access With remote access, the message must be confirmed on the PC on which the instance was started.

Timeout alarm

If you do not confirm the message for the license in a certain amount of time, the instance is not started and the following message appears:

Figure 3-3 Timeout alarm
Solution Start the instance again and confirm the message for the license.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

45

Installing 3.1 Introduction
API functions for licenses
PLCSIM Advanced regularly checks whether a license is available. The following return values provide information about the status (for example, for C++):
 Return values for API function PowerOn() and callback function OnOperatingStateChanged
­ SREC_OK when a floating license is available.
­ SREC_WARNING_TRIAL_MODE_ACTIVE when an instance is started with the Trial License.
­ SREC_WARNING_RUNNING_ON_TIA_PORTAL_TEST_SUITE, no valid license for PLCSIM Advanced is available, but a "TIA Portal Test Suite" license. PLCSIM Advanced starts with this license. A download from the TIA Portal is possible, but the instance terminates without feedback if the download was not made from the TIA Portal Test Suite.
­ SREC_NOT_EMPTY, if no valid license for PLCSIM Advanced is available, but a "TIA Portal Test Suite" license is available. If this is the case, power-up from the Virtual SIMATIC Memory Card is not supported.
 Return value for callback function OnOperatingStateChanged
­ SREC_LICENSE_NOT_FOUND when the instance is automatically shut down after 21 days.

S7-PLCSIM Advanced

46

Function Manual, 11/2019, A5E37039512-AC

Installing 3.1 Introduction

3.1.5

Installation log
The log files contains automatically recorded information on the following installation processes:
 Installation of S7-PLCSIM Advanced
 Change or update of installation of S7-PLCSIM Advanced
 Repair of an existing installation of S7-PLCSIM Advanced
 Uninstallation of S7-PLCSIM Advanced
You can evaluate installation errors and warnings using the log files. You can troubleshoot the installation yourself or contact Siemens Technical Support. Product Support personnel need information from the installation log to analyze the problem. Send the folder with the log files as a ZIP file to Support.

Memory location of the installation log
The memory location of the log file depends on the operating system. To open the folder with the log files, enter the environment variable "%autinstlog%" in the address bar in Windows Explorer. Alternatively, you reach the appropriate directory by entering "cd %autinstlog%" in the command line.
The log files are named as follows:
 "SIA_S7-PLCSIM_Advanced_V03@<DATE_TIME>.log"
 "SIA_S7-PLCSIM_Advanced_V03@<DATE_TIME>_summary.log"

Setup_Report (CAB file)
The installation log and other required files are stored in a log file. This file can be found at "%autinstlog%\Reports\Setup_report.cab".
A separate CAB file with a date ID is saved for each installation.
If you need help during installation, send this CAB file to Siemens Technical Support for troubleshooting.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

47

Installing 3.2 S7-PLCSIM Advanced

3.2

S7-PLCSIM Advanced

The S7-PLCSIM Advanced package contains the following software:

 S7-PLCSIM Advanced

 Automation License Manager

 S7-PLCSIM V5.4

 .NET Framework

 WinPcap

The package is available as download and on DVD.  SIMATIC S7-PLCSIM Advanced V3.0 Floating License  Upgrade SIMATIC S7-PLCSIM Advanced V2.0  V3.0 After installing PLCSIM Advanced, keep the DVD in a secure, easily accessible place.
Setup program
You can use the Setup program to change, repair or uninstall your installation, if necessary.

S7-PLCSIM Advanced

48

Function Manual, 11/2019, A5E37039512-AC

Installing 3.3 Installing S7-PLCSIM Advanced

3.3

Installing S7-PLCSIM Advanced

Installation requirements
The Setup program starts automatically with a double-click on the download package or when you insert the DVD in the drive. Make sure that the following conditions are met before you begin the installation process:  The hardware and software of the computer meet the system requirements.  You have administrator rights on the installation computer.  No other programs are active. This also applies to the Siemens Automation License
Manager and other Siemens applications.  All S7-PLCSIM versions prior or equal to V14 are uninstalled.
Note Security settings For licensing via the ALM, you must agree during installation that port 4410 for TCP can be entered as an exception in the Windows Firewall (procedure step 5).
Note Use of virus scanners Note the information provided in section Restrictions due to antivirus programs (Page 43).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

49

Installing 3.3 Installing S7-PLCSIM Advanced
Installing S7-PLCSIM Advanced
To install, follow these steps:
1. Double-click the download package or insert the installation medium into the DVD drive of your computer. The setup program starts up automatically, provided you have not disabled the Autostart function on the computer. If the setup program does not start up automatically, start it manually by double-clicking the "Start.exe" file. The "General settings" window is displayed.
2. Click the "Read installation notes" button. After you have read the notes, close the file.
3. Click the "Read product information" button. After you have read the information, close the file.
4. Click the "Browse" button if you want to change the default installation path. The installation path must not exceed 89 characters. The path name must not contain any UNICODE characters. If you select a different installation path than the default installation path, the desktop icon may not be displayed correctly.
5. Click "Next". The window with the security settings is displayed. To continue the installation, select the check box at the bottom of the screen to accept changes to the security and permissions settings of your system.
6. Click "Next". The window with the installation settings is displayed. You can save or print a report of the settings by clicking "Save report" or "Print report". Check the settings for correctness. If you want to make any changes, click "Back" until you reach the point in the installation process where you want to make changes. Once you have completed your changes, click "Next".
7. The overview screen shows your installation details. Click the "Install" button. The installation then starts.
8. After completion of the setup program, you must restart your computer. Select "Yes, I want to restart the computer now" to restart the computer immediately or select "No, I will restart computer later" to restart the computer later.
9. Click "Restart". If the computer is not restarted, click "Finish".
Error during installation of S7-PLCSIM Advanced
When PLCSIM Advanced is installed, any existing installation of S7-PLCSIM is displayed.
A requirement for installation of S7-PLCSIM Advanced is that no other S7-PLCSIM installation prior or equal to V14 is located on the same computer.
Even though no installation of S7-PLCSIM is displayed in the "Programs and Features" list, it is still possible that the computer has an existing installation.
Remedy
Run the setup for S7-PLCSIM prior or equal to V14 and uninstall the program.
When the setup is not available, download the setup files for S7-PLCSIM via Siemens Mall (https://support.industry.siemens.com/cs/ww/en/view/65601780).

S7-PLCSIM Advanced

50

Function Manual, 11/2019, A5E37039512-AC

Installing 3.4 Changing S7-PLCSIM Advanced

3.4

Changing S7-PLCSIM Advanced

Requirements

The following conditions must be met before you can start changing the installation:  The hardware and software of the computer meet the system requirements.  You have administrator rights on the installation computer.  No other programs are active.

Procedure

To change your S7-PLCSIM Advanced installation, follow these steps: 1. Double-click the download package or insert the installation medium into the drive. The
setup program starts up automatically, provided you have not disabled the Autostart function on the computer. If the setup program does not start up automatically, start it manually by double-clicking the "Start.exe" file. 2. Follow the prompts until you reach the "Configuration" window. 3. Select the "Change upgrade" check box. 4. Follow the remaining prompts to change your installation. 5. Complete the installation operation by restarting your computer.
Note Target directory You cannot change the target directory because you are changing an existing installation.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

51

Installing 3.5 Repairing S7-PLCSIM Advanced

3.5

Repairing S7-PLCSIM Advanced

Requirements

The following conditions must be met before you can start repairing the installation:  The hardware and software meet the system requirements.  You have administrator rights on the installation computer.  No other programs are active.

Procedure

To repair your installation, follow these steps:
1. Double-click the download package or insert the installation medium into the drive. The setup program starts up automatically, provided you have not disabled the Autostart function on the computer. If the setup program does not start up automatically, start it manually by double-clicking the "Start.exe" file.
2. Follow the prompts until you reach the "Configuration" window. Select the "Repair" check box.
3. Follow the remaining prompts to repair your installation.
4. Complete the repair operation by restarting your computer.

S7-PLCSIM Advanced

52

Function Manual, 11/2019, A5E37039512-AC

Installing 3.6 Uninstalling S7-PLCSIM Advanced

3.6

Uninstalling S7-PLCSIM Advanced

You have two options for uninstalling S7-PLCSIM Advanced:

 You uninstall the program using the Windows Control Panel.

 You uninstall the entire product using the Setup program.

Uninstalling S7-PLCSIM Advanced using the Windows Control Panel
Proceed as follows: 1. Double-click the "Programs and Features" option in the Windows Control Panel. 2. Right-click "Siemens S7-PLCSIM Advanced V3.0" and select "Uninstall". 3. Follow the prompts for uninstallation. 4. Complete the uninstallation operation by restarting your computer.
If you do not perform a restart, the Runtime Manager continues running. If problems occur when uninstalling PLCSIM Advanced using the Windows Control Panel, use the installation medium for uninstalling.

Uninstalling S7-PLCSIM Advanced using the Setup program
Proceed as follows:
1. Double-click the download package or insert the installation medium into the drive. The setup program starts up automatically, provided you have not disabled the Autostart function on the computer. If the setup program does not start up automatically, start it manually by double-clicking the "Start.exe" file.
If you do not perform a restart, the Runtime Manager continues running.
2. Follow the prompts until you reach the "Configuration" window. Your previous installation is detected. Select the "Uninstall" check box.
3. Follow the prompts for uninstallation.
4. Complete the uninstallation operation by restarting your computer.
If you do not perform a restart, the Runtime Manager continues running.

Uninstalling additional software
During uninstalling the following software from the S7-PLCSIM Advanced package remains installed:  Automation License Manager  S7-PLCSIM V5.4  .NET Framework  WinPcap If you also want to uninstall this software, use the Windows Control Panel.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

53

Communication paths

4

Local and distributed communication
The following paths are open for communication between STEP 7 V15 or higher and the instances of PLCSIM Advanced user interfaces:

Table 4- 1 Local and distributed communication

Communication paths
Protocol Communication interface in PLCSIM Advanced STEP 7 and instances Communication... between STEP 7 and instances among instances via OPC UA server and Web server between an instance and a real hardware CPU
between an instance and a real HMI V14 and higher between an instance and a simulated HMI V14 and higher

Local Softbus PLCSIM
On a PC / VM
Yes Yes No No
No
Yes

Local

Distributed

TCP/IP

TCP/IP

PLCSIM Virtual PLCSIM Virtual Ethernet Adapter Ethernet Adapter

On a PC / VM Distributed

Yes

Yes

Yes

Yes

Yes

Yes

No

Yes

No

Yes

Yes

Yes

Softbus

Softbus is a communication path via a virtual software interface.
The communication is limited to a local PC or a virtual machine. The advantage here is that no data can be accidentally downloaded to a hardware CPU or communicate with real hardware.

Selecting a communication interface
You program the communication interface via the user interfaces (API) or select them in the Control Panel under "Online Access". The setting is valid for all generated instances. The default setting is the communication via "PLCSIM" (Softbus).
Additional network settings are necessary for the distributed communication via the "PLCSIM Virtual Ethernet Adapter" (TCP/IP), see Network addresses in the simulation (Page 73).

S7-PLCSIM Advanced

54

Function Manual, 11/2019, A5E37039512-AC

API functions for selecting the communication interface
 GetCommunicationInterface() (Page 154)  SetCommunicationInterface() (Page 154)  CommunicationInterface { get; set; } (Page 155)

See also

Interfaces - Information and settings (Page 151)

Communication paths 4.1 Local communication

4.1

Local communication

Local communication can be performed via the Softbus protocol or TCP/IP.

For local communication, the PLCSIM Advanced instance is on the same PC or on the same virtualization platform such as STEP 7 or another communication partner.

Local communication via Softbus
Local communication is performed via Softbus in PLCSIM Advanced by default.
This ensures that no data can be accidentally downloaded to a hardware CPU or that there is communication with real hardware.

Figure 4-1 Local communication via Softbus

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

55

Communication paths 4.1 Local communication
Local communication via TCP/IP
Communication is performed via the PLCSIM Virtual Ethernet Adapter, a virtual network interface that behaves like a real network interface. Note Local communication via TCP/IP Make sure that communication is only local and cannot be downloaded to real hardware. For this, there must be no other adapters of your Windows PC configured in the physical network and in the subnet protocol of the PLCSIM Virtual Ethernet adapter. Microsoft KB 175767 provides background.
Figure 4-2 Local communication via TCP/IP
Additional information
See error code SREC_COMMUNICATION_INTERFACE_NOT_AVAILABLE for the function PowerOn() in the section Operating state (Page 166).

S7-PLCSIM Advanced

56

Function Manual, 11/2019, A5E37039512-AC

Communication paths 4.2 Communication via TCP / IP

4.2

Communication via TCP / IP

Distributed communication
Distributed communication via TCP/IP means that the PLCSIM Advanced instances communicate with the other devices via the Virtual Switch . Communication is possible with real or simulated CPUs, real or simulated HMIs. The PLCSIM Virtual Switch must be activated on the PLCSIM Virtual Ethernet Adapter for instances on the network to be visible.
Example 1: Distributed communication
In the following example, STEP 7 is on a PC and the PLCSIM Advanced instances are on another PC or a virtual machine. The PCs are connected via their real Ethernet adapter.

Figure 4-3 Distributed communication via Ethernet

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

57

Communication paths 4.2 Communication via TCP / IP
Example 2: Distributed communication on a PC
In the following example, STEP 7 is on a PC and the PLCSIM Advanced instances are on a virtual machine on the same PC. PC and virtual machine are connected via the (virtual) network adapters.

Figure 4-4 Distributed communication via network adapters
Required settings in the "Virtual Machine Settings" dialog If you have opened STEP 7 (TIA Portal) and your project within the virtual machine, activate the following options for your online connection: 1. Open the "Virtual Machine Settings" dialog via the menu command "Player > Manage >
Virtual Machine Settings". 2. Then click "Network Adapter" in the "Hardware" tab and activate the following options in
the right window: ­ Connected ­ Connect at power on ­ Bridged: Connected directly to the physical network ­ Replicate physical network connection state 3. Click the "Configure Adapters" button and activate your network connection, for example "Intel(R)82574L LM Gigabit Network Connection". 4. Confirm the setting with OK and exit the "Virtual Machine Settings" dialog with OK.

S7-PLCSIM Advanced

58

Function Manual, 11/2019, A5E37039512-AC

Communication paths 4.2 Communication via TCP / IP
Example 3: Distributed communication
The following example shows a structure with PCs on which distributed STEP 7, PLCSIM Advanced instances and virtual machines with PLCSIM Advanced instances are running.

Figure 4-5 Distributed communications with PCs and virtual machines

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

59

Communication paths 4.3 Enable distributed communication

4.3

Enable distributed communication

By default, the PLCSIM Virtual Switch can only communicate locally. For a distributed, i.e. multi-computer, communication to be possible, you must activate the PLCSIM Virtual Switch for a real network adapter.

Note Network adapter
Make sure that only one network adapter of the PLCSIM Virtual Switch is activated. The Control Panel of PLCSIM Advanced checks the activation and may report an incorrect configuration (error code -50).

Activate PLCSIM Virtual Switch
To make the PLCSIM instances visible on the network and to reach other devices, activate the PLCSIM Virtual Switch in the Control Panel of PLCSIM Advanced or under Windows:
1. To do this, open the "Network and Sharing Center" in the Windows Control Panel.
2. Open the properties of the desired network adapter, for example, for the "Local Area Connection".
3. Select the check box for the "Siemens PLCSIM Virtual Switch" and confirm with OK.

Figure 4-6 Activate PLCSIM Virtual Switch

S7-PLCSIM Advanced

60

Function Manual, 11/2019, A5E37039512-AC

Communication paths 4.3 Enable distributed communication
Accessible devices
When the PLCSIM Virtual Switch is activated, STEP 7 shows the devices available on the Virtual Ethernet Adapter in the project tree.
Figure 4-7 Accessible devices on the Virtual Ethernet Adapter
Distributed communication via WLAN
When using distributed communication via WLAN, it may happen that the WinPcap program library installed by PLCSIM Advanced does not work with the integrated WLAN adapter of the PC. In this case, no WLAN connection can be established. Remedy Use the wired network adapter of the PC/notebook and connect a WLAN adapter upstream.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

61

Simulation

5

5.1

Simulate CPU

5.1.1

Basic procedure for the simulation
The following overview shows the basic steps to perform simulation with an instance of a virtual controller.

Requirements

The following requirements must be met for starting simulation via local communication:  STEP 7 as of V14 and S7-PLCSIM Advanced V3.0 are installed on the same PC.  The CPU hardware is configured in STEP 7.

Note Enable simulation support
In the "Protection" tab in the properties of the project in STEP 7, select the check box "Support simulation during block compilation"; see Simulations support (Page 35).

Create and activate an instance via the Control Panel
 Open PLCSIM Advanced Control Panel (see section Control Panel - User interface (Page 63))
 Open the "Start Virtual S7-1500 PLC" options  Enter a name for an instance  Select CPU type  Create an instance using the "Start" button
In STEP 7, perform the download and start the simulation
 Download the program to the virtual controller (see section Download (Page 71))  Switch the virtual controller to RUN to start the simulation  Perform diagnostics

S7-PLCSIM Advanced

62

Function Manual, 11/2019, A5E37039512-AC

5.1.2 5.1.2.1

Simulation 5.1 Simulate CPU
Control Panel - User interface
S7-PLCSIM Advanced Symbol
After installing PLCSIM Advanced, the following icons are on the Windows desktop:

Figure 5-1 PLCSIM Advanced Symbol
A double-click on the symbol opens the Control Panel for PLCSIM Advanced. If the Control Panel is in the background, it is moved to the foreground with another double-click. You can use Windows functions to permanently display the icon in the system tray of the taskbar.
Opening a graphical interface
Right-clicking the icon in the taskbar opens the Control Panel with the quick view. Doubleclick to start the Control Panel as a window.

Figure 5-2 Opening a graphical interface
You can use the mouse-over function to display messages about the current status of the instances.

Figure 5-3 Example: Message in the taskbar

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

63

Simulation 5.1 Simulate CPU

5.1.2.2

Graphical interface
The graphical interfaces synchronize by means of API commands. They are optional and are not needed to operate PLCSIM Advanced via the API.
S7-PLCSIM Advanced V3.0 provides the Control Panel with two views.
 Control Panel as quick view
Right-clicking on the icon in the taskbar opens the quick view.
Clicking on an empty area on the desktop minimizes the quick view. The instances are not affected.
 Control Panel as window
Double-clicking the icon on the desktop or in the taskbar opens the Control Panel as a window.

Control Panel as window
Unlike the quick view, you can operate the Control Panel with the buttons in the title bar. You can close this window without exiting the simulation Runtime process.

 Stores the Control Panel as icon in the taskbar.  No function. The window size cannot be changed.  Closes the Control Panel and stores it in the system tray of the taskbar.
The instances and the simulation Runtime process remain active.
This function therefore differs from the Exit function . The Exit function switches off the local instances, logs them off and closes the Control Panel.
 Pins the Control Panel on the screen so that it remains in the foreground.
Figure 5-4 Control Panel: Title bar

S7-PLCSIM Advanced

64

Function Manual, 11/2019, A5E37039512-AC

5.1.2.3 Design

S7-PLCSIM Advanced Control Panel
The Control Panel is available in English in version V3.0.

Simulation 5.1 Simulate CPU

 Online access  TCP/IP communication  Virtual time

Switch to select the communication interface Selection of network adapter for distributed communication Slider to adjust the scaling factor

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

65

Simulation 5.1 Simulate CPU

 Start Virtual S7-1500 PLC
· Name of the instance
· IP address · Subnet mask · Standard gateway

Opens and closes the input boxes for creating the instance (virtual controller).
Here you enter a unique name for the instance. Enter a minimum of 3, a maximum of 64 characters. If the name is unique in the network, the button "Start" is enabled.
The input boxes are visible when you switch the communication interface to "PLCSIM Virtual Ethernet Adapter". The IP address is entered automatically.

· CPU type

Here you select the type of CPU to be simulated.

· "Start" button
 Buttons  Instance list
 LED displays
 Icons  Runtime Manager Port  Virtual SIMATIC Memory
Card
 Display messages
 Function manual
 Exit

Create with the button and start the instance.
Buttons for operating the selected instances. The list shows the available local instances. The instances can be resorted using the mouse cursor. The meaning of the LED is displayed when you move the mouse over it. Icons for operating the instance Here you open a port on the local PC. Open an Explorer window here in which you select the path to the virtual memory card. Here you disable the PLCSIM Advanced messages in the Windows task bar for the duration of the operation. This is where you open the S7-PLCSIM Advanced Function Manual in a standard PDF viewer. Exit logs off all instances and closes the Control Panel.

Figure 5-5 Control Panel V3.0

Switch for communication interface
Use the switch to select the communication interface for all instances to be created:
 "PLCSIM" corresponds to the local communication via softbus (default).
 "PLCSIM Virtual Ethernet Adapter" corresponds to the communication via TCP/IP.
The setting applies to all other instances. The selected communication interface for starting an instance is maintained until all instances are shut down.
When an instance is already started, it sets "its" communication interface as the default for other instances.
To change the communication interface, switch off all instances and enable the other interface.

S7-PLCSIM Advanced

66

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.1 Simulate CPU

TCP/IP communication
You can select a real network adapter from the drop-down list during operation. You thus activate the PLCSIM Virtual Switch and establish TCP/IP communication between the instances and the real network.
The <Local> setting disables the PLCSIM Virtual Switch and disconnects the instances from the real network. Only local TCP/IP communication over virtual adapter is possible in this case.

Virtual time

Use the slider or the mouse wheel to select the scaling factor for the virtual time.
The selected scaling factor applies to the instances for which the virtual time is enabled.
Clicking on "Off" restores the default (1) again. For further information see Virtual and Real Time (Page 87).

Creating an instance (locally) and starting it
To create an instance, enter a unique name under "Instance Name". If the name already exists in the directory of the Virtual SIMATIC Memory Card, the existing instance is started.
In the "PLC-Type" drop-down list, select the type: "Unspecified CPU 1500" or "Unspecified ET 200SP CPU". Create the instance with the "Start" button and start this instance.
The instance / virtual controller is named with the first download from the TIA Portal.

Instance list

The list contains the instances that are available locally on the PC or virtualization platform. Instances that have already been started on the runtime API are detected and displayed in the list.
Select the operating mode of the instance with the "RUN" and "STOP" buttons. Select one or more instances for this purpose. Perform a memory reset with the "MRES" button.
The LED displays show the status of the instance that corresponds to those of the hardware CPU. RUN and STOP are displayed depending on the current operating state of the instance.
You can "operate" the instance with icons:
Apply scaling factor for the virtual time, disable virtual time,
Switch on instance ("PowerOn"), Switch off instance ("PowerOff"),
Switch off instance and log off from Runtime Manager ("Unregister")

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

67

Simulation 5.1 Simulate CPU
Runtime Manager Port
A remote connection can be established to another Runtime Manager via the specified port. The value must be greater than 1024. If you select the check box, the port remains stored. You can use the remote connection without having to make this setting every time you start the Control Panel. To use this functionality, the Control Panel must be started and running in the background.
Virtual SIMATIC Memory Card
The user program, the hardware configuration and the retentive data is stored on the Virtual SIMATIC Memory Card. Use the button to open an Explorer window in which you select the path to the virtual memory card or in which the path is displayed.
Display messages
Each time the panel starts, help information and messages relating to the Control Panel are displayed, for example, when changing the IP address or when a license is missing. Disable the display if you do not need the messages.
Exit - Log off all instances
 The command switches off all local instances on the PC or the VM and logs them off from the Runtime Manager and closes the Control Panel.
 This command closes the Runtime Manager if there are no remote connections to other Runtime Managers.
 If the Runtime Manager has remote connections to instances on additional PCs, these instances and the Runtime Manager continue to run.

S7-PLCSIM Advanced

68

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.1 Simulate CPU

5.1.2.4

Importing instances

Requirement

This function is only available if you do not start the Control Panel with admin rights.

Importing instances
You can use the drag-and-drop function to import instances from a folder directly into the instance list of the Control Panel.
1. Open a folder with instances, for example, using the "Virtual SIMATIC Memory Card" button.
2. Select one or more instances and drag them into the highlighted area.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

69

Simulation 5.1 Simulate CPU

Figure 5-6 Control Panel: Importing instances

S7-PLCSIM Advanced

70

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.1 Simulate CPU

5.1.3

Download

Requirements

You can download the STEP 7 project to the virtual controller when the following conditions are met:
 The instance is created via the Control Panel.
 The check box "Support simulation during block compilation" is selected.

Selecting the communication interface
In the Download dialog box, select the PG/PC interface:  "PLCSIM" for download via Softbus  "Siemens PLCSIM Virtual Ethernet Adapter" for download via TCP/IP  For distributed communication the real adapter that is connected to the network

Display in the download dialog
The dialog in STEP 7 at the first download of the CPU shows the compatible PLCSIM Advanced instances.
If the instance has not yet been configured after the first download only one interface is visible and it appears with the device type "CPU-1500 Simulation".
If the instance has been configured, the number of interfaces visible is determined my the number the CPU type has.
The lifelist shows the interfaces of an instance with their IP addresses.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

71

Simulation 5.1 Simulate CPU
Perform download
1. Select the PG/PC interface. 2. Click "Download".
 In the "Load preview" window, STEP 7 shows the message "The downloads are performed on a simulated CPU".  After the first download, the PLCSIM Advanced instance displays the CPU type.

Figure 5-7 Example: Download via the "PLCSIM Virtual Ethernet Adapter" (TCP/IP) after naming

S7-PLCSIM Advanced

72

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.1 Simulate CPU

5.1.4

Network addresses in the simulation

5.1.4.1

Siemens PLCSIM Virtual Ethernet Adapter

IP address

At the PLCSIM Virtual Ethernet Adapter you assign a static IP address or obtain an IP address via DHCP (default).

MAC address

A randomly generated MAC address is assigned to the PLCSIM Virtual Ethernet Adapter during its installation. PLCSIM Advanced only uses MAC addresses that are designated as "locally administered" (bit 2 in LSB). The Siemens-specific prefix is: 02-1B-1B Three bytes follow, which are determined at random.
Storage location This MAC address is stored in the registry key "PlcsimvminiMacAddress". You can overwrite this value.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

73

Simulation 5.1 Simulate CPU

5.1.4.2

PLCSIM Advanced instances

Detect CPUs and instances
If Ethernet interfaces of CPUs and PLCSIM Advanced instances are mixed in a network, the instances can be recognized by the "PLCSIM" suffix on the station type.

Structure of the MAC address for an instance
The following figure shows the structure of the dynamically generated, locally managed MAC address:

Figure 5-8 Structure of the MAC address for an instance
The MAC address tells you the PC on which a PLCSIM Advanced instance has been started.

Assignment of the Ethernet interfaces
Port configurations of the Ethernet interfaces cannot be simulated in PLCSIM Advanced V3.0. Topological interconnection is not supported. A MAC address for a port is reserved internally for each Ethernet interface.

Table 5- 1 Assignment of the Ethernet interfaces, for example, for a CPU 1518-4 PN/DP

Ethernet interface
IE 1 IE 1 / Port 1
IE 2 IE 2 / Port 1
IE 3 IE 3 / Port 1

Last digit of the MAC Address
...........0 ...........1
...........2 ...........3
...........4 ...........5

S7-PLCSIM Advanced

74

Function Manual, 11/2019, A5E37039512-AC

Example

Simulation 5.1 Simulate CPU
02-C0-A8-00-83-10 means: 02  locally managed MAC address of a PLCSIM Advanced instance
C0-A8-00-83  IP of the Siemens PLCSIM Virtual Ethernet adapter = 192.168.0.131 1  Instance 1 0  Ethernet interface IE 1 If no Virtual SIMATIC Memory Card is loaded during startup of PLCSIM Advanced, the interfaces of PLCSIM Advanced display instances with their locally managed MAC address.

5.1.5

Simulate peripheral I/O
The Runtime API writes to and reads from a memory area. This memory is synchronized with the internal process image of the virtual S7-1500 controller at the cycle control point and when calling cyclic and acyclic OBs (process image partitions, interrupts, events). The direct I/O accesses are made to this memory area. Only one process can access this memory at a given time.
The virtual controller must be in RUN to apply changes made by the API.
Note Dominance of the API when synchronizing
The API dominates when synchronizing. If the user program writes to the same address range as the API, the changes of the API overwrite those of the virtual controller.

See also

Deviating I/O values in the STEP 7 user program (Page 398)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

75

Simulation 5.1 Simulate CPU

5.1.6

Simulate communication

5.1.6.1

Communication services that can be simulated
PLCSIM Advanced V3.0 supports the following communication options:

Table 5- 2 Supported communication options

Communications options PG communication Open communication using TCP/IP
Open communication using ISO-onTCP
Open communication via UDP2
Communication via Modbus TCP2 E-mail2, 3 S7 communication
OPC UA Server2 Web server2, 3

Functionality / instructions On commissioning, testing, diagnostics · TSEND_C / TRCV_C · TSEND / TRCV · TCON1, 3 · T_DISCON
· TSEND_C / TRCV_C · TSEND / TRCV · TCON · T_DISCON
· TUSEND / TURCV · TCON · T_DISCON
· MB_CLIENT · MB_SERVER
· TMAIL_C
· PUT / GET · BSEND / BRCV · USEND / URCV Data exchange with OPC UA clients Data exchange via HTTP

1 When the "PLCSIM" interface (Softbus) is set, communication is performed internally via ISO-onTCP.
2 Only via the communications interface "PLCSIM Virtual Ethernet Adapter" (TCP/IP). "Access to PLC via communication module" is not supported.
3 Secure TCP communication is not supported.
Special conditions apply when communicating with TUSEND/TURCV, see Restrictions for communications services (Page 394).

TMAIL_C

When the TMAIL_C instruction is used, the mail server might not be located on the same PC as the PLCSIM Advanced instance.
Solution Make the mail server available via a different PC in the network.

S7-PLCSIM Advanced

76

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.1 Simulate CPU

5.1.6.2

Communication between instances
PLCSIM Advanced supports communication between instances. An instance may be a simulation in PLCSIM Advanced V2.0 or a simulation in WinCC Runtime as of V14.
You can run two instances of PLCSIM Advanced, which then communicate with each other. To enable instances to communicate with each other, they must have a unique IP address.

Each simulated CPU requires a unique IP address
If the CPUs have the same IP address, you cannot run multiple simulations. Each simulated CPU requires a unique IP address.
Make sure that the IP addresses in STEP 7 are unique before you start your simulations.

T-block instructions and UDP
PLCSIM Advanced simulates T-block connections for which the UDP protocol is configured only via the communication interface "PLCSIM Virtual Ethernet Adapter" (TCP/IP).

T-block instructions and data segmentation
PLCSIM Advanced implements T-block instructions with a data segmentation of 4 KB. A real CPU has data segmentation of 8192 bytes.
If you send more than 4 KB in a single TSEND instruction and receive data in ad hoc mode with a TRCV instruction, the TRCV instruction generates new data with only 4 KB. You must perform the TRCV instruction several times to receive additional bytes.

5.1.7

Provide project data offline for simulation

Simulations regardless of STEP 7
To perform simulations independent of STEP 7, you can save the user program and the hardware configuration in STEP 7 in a directory.

Saving retentive data securely
The retentive data is automatically saved when the virtual controllers are shut down.
To save the retentive data safely in the virtual SIMATIC Memory Card, the instances must be correctly logged off. Use one of the following functions for this:
 The PowerOff() API function

 In the Control Panel, the function "Shutdown instance" Exit function "Log off all instances"

, "Log off instance"

or the

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

77

Simulation 5.1 Simulate CPU
Provide project data offline
1. Create a "User-defined Card Reader" for your project data in the "Card Reader/USB storage" folder in the project tree of STEP 7 for the CPU.
2. In the "Load preview" dialog for the target device, select "PLC Simulation Advanced" as an action, click in the selection field for this.  The project is saved to the <Virtual Memory Card>\SIMATIC.S7S\OMSSTORE directory.
3. Save the folder "\SIMATIC.S7S" with the project data to a medium of your choice.
Figure 5-9 Add card reader

Figure 5-10 Preview of download dialog

S7-PLCSIM Advanced

78

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.2 Simulate CPU with ODK functionality

Provide project data for simulation
1. On the PC on which PLCSIM Advanced is installed, create the directory "\SIMATIC_MC" in the directory in which the instance saves its data.
2. Move the "\SIMATIC.S7S" folder to the directory you have created.  The instances can be started with the project data.

API functions

The project data can be used for an instance via the user interface. Use of the following functions for this:
API functions  GetStoragePath() (Page 161)  StoragePath { get; set; } (Page 162)  ArchiveStorage() (Page 163)  RetrieveStorage() (Page 164)

See also

Controller - Information and settings (Page 157)

5.2

Simulate CPU with ODK functionality

Introduction

The ODK is an engineering tool that allows the creation of high-level language applications for S7-1500 CPUs. You use it to generate function libraries that are used in the STEP 7 user program.
The ODK for PLCSIM Advanced V3.0 supports the programming language C ++.
You can find the description of the ODK in the Programming and Operating Manual "S7-1500 Open Development Kit 1500S", as of V2.5 Edition 12/2017: SIMATIC STEP 7 (TIA Portal) Options ODK 1500S (https://support.industry.siemens.com/cs/document/109752687)
Section 5 "Development of a CPU function library for the real-time environment" is relevant for ODK applications under PLCSIM Advanced.

Supported CPUs
PLCSIM Advanced V3.0 supports the ODK functionality of the following controllers:  CPU 1518(F)-4 PN/DP ODK  CPU 1518(F)-4 PN/DP MFP

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

79

Simulation 5.2 Simulate CPU with ODK functionality

5.2.1

Special features of ODK

Simulating CPU with ODK functionality with PLCSIM Advanced
The simulation of a CPU with ODK functionality requires a special start procedure.
You have the following options:
 Start the instances of a Virtual SIMATIC memory card that contains the project data for the CPU with ODK functionality.
 Before starting the instances, select the CPU type via the API, for example, "CPU1518MFP".

 After the first download, select the functions "Switch off instance" instance" in the Control Panel.

and "Shutdown

Note
If you perform the first download to a CPU with the type "Unspecified CPU 1500" via the PLCSIM Advanced Control Panel, no ODK1500S directory is created on the Virtual SIMATIC Memory Card. The CPU cannot be switched to RUN. In this case, you will find messages about missing ODK blocks (e.g. SFC 2013) in the diagnostics buffer.

Supported function libraries
PLCSIM Advanced V3.0 supports the following function libraries for the real-time environment:  CPU function library: Original Shared Object, SO file as for the hardware CPUs  PLCSIM Advanced function library (Windows Sync):
­ a 32-bit Windows DLL for ODK Runtime ­ a 64-bit Windows DLL for ODK Runtime
Note Do not mix function libraries When simulating with PLCSIM Advanced, only function libraries with the same binary format can be loaded at a time. If you want to use function libraries with a different binary format, all others must be unloaded first.
Note No know-how protection for SO files The SO files for ODK are not know-how-protected.

S7-PLCSIM Advanced

80

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.2 Simulate CPU with ODK functionality
Simulation of the ODK with PLCSIM Advanced
If you have loaded the TIA project on the PLCSIM Advanced and the instruction "<STEP7Prefix>_Load" was called for the first time, each PLCSIM Advanced instance starts another Windows process ("ODK client") in which the ODK application is executed synchronously with the STEP 7 user program. Which ODK client is started depends on the function library to be loaded:  "Siemens.Simatic.PlcSim.Vplc1500.ODKClient.so.exe" for an original Shared Object  "Siemens.Simatic.PlcSim.Vplc1500.ODKClient.x86.exe" for a 32-bit application  "Siemens.Simatic.PlcSim.Vplc1500.ODKClient.x64.exe" for a 64-bit application The executable files of these processes are in the same directory as those of the PLCSIM Advanced Instances ("Siemens.SIMATIC.Simulation.Runtime.Instance.exe").
Note PLCSIM Advanced does not support asynchronous ODK functions.

Error codes

The same error codes as described in the Programming and Operating Manual "S7-1500 Open Development Kit 1500S" apply to the instructions in the real-time environment. Error codes are also available for PLCSIM Advanced, because the ODK client processes can be closed unexpectedly and therefore an error handling is required.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

81

Simulation 5.2 Simulate CPU with ODK functionality
Restrictions for stack processing
Note Limitations for stack processing in the version of CPU function libraries for real-timeenvironment PLCSIM Advanced ignores the stack size for a CPU function library that is adjusted via the parameter <SyncCallStackSize>. PLCSIM Advanced always provides the maximum stack size of 1 MB. See Programming and Operating Manual "S7-1500 Open Development Kit 1500S" V2.5, section 5.1.4 Defining the runtime properties of a CPU function library.
PLCSIM Advanced cannot catch any Exceptions of the type "Stack Overflow" while CPU function libraries for the real-time environment (SO files) are being executed. When developing a CPU function library (SO file), make sure that the maximum stack size of 1 MB is not exceeded. An overflow of the stack leads to an undefined behavior and can lead to the termination of the ODK client process.
Note Limitations for heap processing in the version of CPU function libraries (Windows Sync) If a heap corruption occurs when executing a C/C++ function from a CPU function library (DLL file), then this program error is first ignored and execution of the function continues. Only after fully processing the function is the corresponding error code returned (0x8090). When developing a CPU function library (DLL file), make sure to avoid heap corruption. This way you ensure that after fully processing a C/C++ function no error code is returned.

S7-PLCSIM Advanced

82

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.2 Simulate CPU with ODK functionality

5.2.2

Loading functions

Loading functions - Instruction "<STEP7Prefix>_Load"
If you have loaded the TIA project on the PLCSIM Advanced and the instruction "<STEP7Prefix>_Load" was called for the first time, each PLCSIM Advanced instance starts another Windows process. The ODK client then attempts to load the function library which is specified in the SCL file. This is in the directory "<storage path of the instance> \SIMATIC_MC\ODK1500S". See GetStoragePath(), SetStoragePath() in the section Controller - Information and settings (Page 161).
The ODK client process continues until the instruction "<STEP7Prefix>_Unload" is called to unload the last loaded function library or until the process of the PLCSIM Advanced instance ends.
The function call is synchronous and returns after completion of the operation. The output parameter provides information on the progress status.

ODK error code for PLCSIM Advanced
The following table lists the error codes that apply in addition to the error codes that apply to the CPU specifically for ODK applications with PLCSIM Advanced:

Table 5- 3 ODK: Output parameter - Load functions

DONE 0

BUSY 0

ERROR 1

STATUS 0x80A4 = -32604

0

0

1

0x8095

= -32619

Description
· The ODK client process cannot be started. · A connection to the ODK client cannot be es-
tablished or has been interrupted.
· The ODK client process that is currently running expects a function library with a different binary format.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

83

Simulation 5.2 Simulate CPU with ODK functionality

5.2.3

Calling functions

Call functions - Instruction "<STEP7Prefix>SampleFunction"
When calling ODK functions, data is exchanged between the virtual controller and the function library.
The execution of a single function can be interrupted by the execution of higher prioritized OBs.
Technically, the execution of a function is an asynchronous instruction because it is executed in another process. However, the processes are synchronized via the virtual controller. This means that the function call does not return before either the function returns or the ODK client process is closed during the execution.

ODK error code for PLCSIM Advanced
The following table lists the error codes that apply in addition to the error codes that apply to the CPU specifically for ODK applications with PLCSIM Advanced:

Table 5- 4 ODK: Output parameter - Call functions

DONE 0

BUSY 0

ERROR 1

STATUS 0x80A4 = -32604

Description
· The connection to the ODK client was interrupted.

5.2.4

Unloading functions

Unload functions - Instruction "<STEP7Prefix>_Unload"
The CPU function library is unloaded by calling the instruction "<STEP7Prefix>_Unload". If no other function library is loaded or if the process of the PLCSIM Advanced instance is closed, then the ODK client process is shut down.
The function call is asynchronous, the call returns immediately. The output parameter informs about the progress status.

S7-PLCSIM Advanced

84

Function Manual, 11/2019, A5E37039512-AC

Simulation 5.3 Simulating Motion Control

5.3

Simulating Motion Control

Restrictions

PLCSIM Advanced simulates the real CPU, but not configured, connected technology modules or other I/O devices.
It is possible to download a STEP 7 project with technology modules for operation of motion control. However, the built-in logic of the technology modules is not part of the simulation. Therefore, the corresponding motion control instructions are not supported.

OB 91 and OB 92
If you convert a Motion Control project which contains the OB 91 and OB 92 from STEP 7 V13, then you cannot load this project to a PLCSIM Advanced.
Solution
Delete OB 91 and OB 92 in the project and recompile the project.
The OBs are thus created again with the simulation support required for PLCSIM Advanced. Compilation resets the properties of the blocks to the default values. Restore the required settings in the properties.

Overflow of motion control OBs
Due to the low performance of PCs, it may happen that a new motion control OB is started before the previous one has been completely calculated. This can put the CPU into the STOP operating state. In the diagnostics you will only find the note that a switch to STOP operating state has taken place.
Solution
Slow down the running of the virtual time to give the OB more time for processing.
Information on the scaling factor can be found in section Speed up and slow down simulation (Page 89).

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

85

Simulation 5.3 Simulating Motion Control
Simulation with external simulation software
Note In a virtual S7-1500 controller, the technology objects are connected to the process image. Simulation software can thus access the process image via the user interfaces (API) of PLCSIM Advanced and simulate the behavior of the other connected axes.
Simulation mode in STEP 7 The simulation mode in STEP 7 is a standard function of the technology objects and is independent of PLCSIM Advanced. If you want to move an axis in simulation mode, select the "Activate simulation" check box in STEP 7 under "Technology Object > Configuration> Basic Parameters > Simulation". No additional setting is required for a virtual axis.
Feedback of the axis position
The speed setpoint of the simulated drive is integrated into the actual position value with a time delay (PT1). The result of this calculation is returned to the technology object as position actual value of the axis.
Reference point approach of the axis
If you selected "Use zero mark via PROFIdrive frame" in STEP 7 for the reference point approach, PLCSIM Advanced responds immediately to any active (mode 2, 3, 8) or passive (mode 4, 5) reference point approach command (MC_Home). The actual position is predefined as the reference point.
Additional information
Information on "Setting in the drive and encoder connection" for actual value calculation of a virtual axis and on the topic "Virtual axis/Simulation" is available in the S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326) function manual. For more information, refer to the S7-1500 Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109739589) function manual and in the manuals for the supported SIMATIC controllers (https://support.industry.siemens.com/cs/ww/en/view/109744173).

S7-PLCSIM Advanced

86

Function Manual, 11/2019, A5E37039512-AC

Virtual time response

6

The virtual controller uses internally two types of clocks for simulation: A virtual clock and a real clock. The virtual clock is always the basis for the user program. It is used by components that are relevant for running the STEP 7 user program, such as cyclic OBs, cycle time monitoring, minimum cycle time, virtual system time and time calculations. Also, the time between two cycle control points is measured in virtual time. The virtual time can be accelerated or slowed for test purposes. The real clock always runs unchanged. It is used by components that are not subject to control processes, for example, communication with STEP 7.
Interruption of the process
Since PLCSIM Advanced runs in a Windows environment, Windows might temporarily suspend the virtual controller process. In such a case, both the virtual and the real clock stop in the virtual controller. They only continue to run when Windows resumes processing.
Virtual system time
When you start PLCSIM Advanced, the virtual system time of the virtual controller starts with the system time of Windows. The virtual system time is based on the virtual clock, i.e. if a scaling factor is used, the system time runs correspondingly faster or slower. All events that the virtual controller sends to the API provides a time stamp based on the system time.
Note Difference between system time and local time · System time: UTC ± 0 with daylight saving / standard time · Local time: UTC ± time zone with daylight saving time / winter time
API functions  GetSystemTime() (Page 245)  SetSystemTime() (Page 245)  SystemTime { get; set; } (Page 245)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

87

Virtual time response

Time offset

Note
Keep in mind that the time information of virtual system time and real local time differs by the time offset that is formed in addition to the selected scaling factor from the time zone offset and the daylight saving time/standard time offset.

Scaling factor

Using a scaling factor, you can speed up or slow down the virtual clock of the virtual controller for simulations.  The default is 1, i.e. the course of the virtual time corresponds to the course of real time.  Fast forward: A scaling factor greater than 1 accelerates the virtual clock.
Example: Scaling factor 2.0  The virtual time is running twice as fast.  Slow motion: A scaling factor less than 1 decelerates the virtual clock.
Example: Scaling factor 0.5  The progress of the virtual time slows down to 50%.
API functions  GetScaleFactor() (Page 246)  SetScaleFactor() (Page 246)  ScaleFactor { get; set; } (Page 247)

See also

Settings for the virtual time (Page 245)

S7-PLCSIM Advanced

88

Function Manual, 11/2019, A5E37039512-AC

Virtual time response 6.1 Speed up and slow down simulation

6.1

Speed up and slow down simulation

Influence of fast forward and slow motion
Simulations can be accelerated and slowed down. Fast forward and slow motion only affects time-based components, for example, cyclic OBs. Compared to the real time, they are performed more frequently with fast forward and less frequently with slow motion.
Fast forward and slow motion do not change the execution speed of the CPU machine codes. For example, the speed at which all operations of an OB1 cycle are executed does not change. The execution speed depends on the processor of the PC on which the virtual controller running. If you change the scaling factor, more or fewer cycle control points are reached in a given period of virtual time.
Note Performance
The performance depends on the size of your project, among other things.
If the scaling factor is too high and the cycle-time monitoring indicates that the PC was incapable of calculating the OB1 or cyclic OBs in the specified time, the virtual controller goes to STOP.
Recommendation: To avoid this, start with a small scaling factor and gradually increase it step-by-step while keeping the virtual controller in RUN.
If an overflow of events occurs, slow down the speed of the simulation. See Monitoring overflow (Page 398) and Cycle control (Page 248).

Fast forward

To speed up the virtual time, select a scaling factor greater than 1 in the Control Panel or in the API.

Slow motion

To slow down the virtual time, select a scaling factor less than 1 in the Control Panel or in the API.

API functions

 GetScaleFactor() (Page 246)  SetScaleFactor() (Page 246)  ScaleFactor { get; set; } (Page 247)

See also

Settings for the virtual time (Page 245)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

89

Virtual time response 6.2 Stop simulation

6.2

Stop simulation

Freeze state of the virtual controller
To stop a simulation and to synchronize a simulation partner, a virtual controller can be set to a freeze state via the API. When the virtual controller has reached a synchronization point, it sends the event OnSyncPointReached to the API clients.

Figure 6-1 Freeze state of the virtual controller
The following occurs in the freeze state:  The virtual time is stopped.  No OBs and no timers are running.  The user program is no longer executed.  The virtual controller is still accessible from the TIA Portal.  The input and output data of the virtual controller are in a consistent state.
Note Freeze state during downloading To complete a download in freeze state, the virtual controller must pass a cycle control point at the end of the download.
Note Freeze-state  operating state The freeze state is an internal operating state of the virtual controller. It does not correspond to RUN/STOP mode of a CPU. In the freeze state, the virtual controller maintains the last operating state. · The LED display on the Control Panel and on the Web server accordingly shows RUN or
STOP for instance. · The instance shows the operating state SROS_FREEZE / Freeze, see EOperatingState
(Page 369).

S7-PLCSIM Advanced

90

Function Manual, 11/2019, A5E37039512-AC

Virtual time response 6.2 Stop simulation
Synchronization points
A synchronization point always exists before inputs are read in, for example at the cycle control point or at the beginning of a cyclic OB.
Figure 6-2 Overview of the synchronization points
Trigger freeze state
To trigger the freeze state, following modes are available for the virtual controller:  SingleStep operating modes
See Synchronize simulation partner cycle-controlled (Page 92).  TimespanSynchronized operating modes
See Synchronize simulation partner time-controlled (Page 94). In Default operating mode, the virtual controller does not change into a freeze state. API functions  Settings for the cycle control (Page 248)  GetOperatingMode() (Page 248)  SetOperatingMode() (Page 248)  OperatingMode { get; set; } (Page 248)  EOperatingMode (Page 370)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

91

Virtual time response 6.3 Synchronize simulation partner

6.3

Synchronize simulation partner

6.3.1

Synchronize simulation partner cycle-controlled

SingleStep operating modes
Several simulation partners (clients) are synchronized cycle-controlled with the SingleStep operating modes of the virtual controller. The operating modes define the synchronization point at which the virtual controller changes to the freeze state and sends the OnSyncPointReached event.

Table 6- 1 Cycle-controlled operating modes (SingleStep)

Operating mode

Synchronization point

Minimum cycle time1

Cycle control point

Before reading in the process image partition

"C"

"P"

"T"

SingleStep_C



SingleStep_P



SingleStep_CP





SingleStep_CT





SingleStep_CPT







1 In addition, the minimum cycle time of the OB 1 is overwritten in this operating mode. When you define a minimum cycle time of 200 ms via the API, the minimum distance between two cycle control points is 200 virtual milliseconds. The default setting is 100 ms.

API functions / events  GetOverwrittenMinimalCycleTime_ns() (Page 250)  SetOverwrittenMinimalCycleTime_ns() (Page 250)  OverwrittenMinimalCycleTime_ns { get; set; } (Page 251)  RunToNextSyncPoint() (Page 251)  OnSyncPointReached (Page 284)  EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 (Page 316) /
Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 (Page 331)

Terminating the freeze state
The RunToNextSyncPoint() function cancels the freeze state and induces the virtual controller to continue running until the next synchronization point.
Switching to the Default operating mode also terminates the freeze state.

S7-PLCSIM Advanced

92

Function Manual, 11/2019, A5E37039512-AC

Example

Virtual time response 6.3 Synchronize simulation partner
The figure schematically shows the sequence in the SingleStep_CP operating mode. In addition to the OnSyncPointReached event the virtual controller also sends the virtual time since the last synchronization point of the same process image partition ID or of any process image partition ID has been reached (TimeSinceSameSyncPoint_ns / TimeSinceAnySyncPoint_ns). The RunToNextSyncPoint() function cancels the freeze state.

Figure 6-3 Example: Sequence in the SingleStep_CP operating mode
Changing the settings in the watch table
Note Selecting triggers for monitoring of tags in the SingleStep operating modes In TIA Portal the watch table in basic mode shows the values for outputs and bit memories before the processing. In order to display the tag values after the processing, select the extended mode for the watch table and then select "Permanently, at end of scan cycle" in the "Monitor with trigger" column.

See also

Cycle control (Page 248)

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

93

Virtual time response 6.3 Synchronize simulation partner

6.3.2

Synchronize simulation partner time-controlled

TimespanSynchronized operating modes
Several simulation partners (clients) are synchronized time-controlled with the TimespanSynchronized operating modes of the virtual controller. The operating modes define the synchronization point at which the virtual controller changes to the freeze state and sends the OnSyncPointReached event.

Table 6- 2 Time-controlled operating modes (TimespanSynchronized)

Operating mode
TimespanSynchronized_C TimespanSynchronized_CP TimespanSynchronized_P

Synchronization point

Cycle control point

Before reading in the process image partition

"C"

"P"









API functions / events  Settings for cycle control (Page 248)  StartProcessing() (Page 252)  OnSyncPointReached (Page 284)

Terminating the freeze state
The StartProcessing(t) function cancels the freeze state and induces the virtual controller to continue running at least as long as required (on the basis of the virtual time) before it changes back to the freeze state at the next synchronization point.
Switching to the Default operating mode also terminates the freeze state.

S7-PLCSIM Advanced

94

Function Manual, 11/2019, A5E37039512-AC

Example

Virtual time response 6.3 Synchronize simulation partner
The figure schematically shows the sequence in the TimespanSynchronized_CP operating mode. In addition to the OnSyncPointReached event the virtual controller also sends the runtime since the last call of the StartProcessing(t) (TimeSinceSameSyncPoint_ns / TimeSinceAnySyncPoint_ns) function. The StartProcessing() function cancels the freeze state.

Figure 6-4 Example: Sequence in the TimespanSynchronized_CP operating mode

Description

At least two clients are synchronized on the basis of a virtual period for the time-controlled operating modes. A client can be an instance of a virtual controller or an application that uses the Runtime API (API client). The synchronization must be performed by a synchronization master.
The synchronization master instructs a client to run for a specific period. The time period is specified by the master in nanoseconds. The client then runs for the expected period before he goes into the freeze state at the next synchronization point. Before switching to the freeze state, the client sends the master the exact amount of time that he currently needed. Thereafter, the master signals the next client to catch up.
API client as master
The API client as master signals each client when it should start. The master receives events from every client when they occur.
An API client can only "time manage" instances of a virtual controller. The API client does not receive events from other API clients. It cannot send messages to other API clients.

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

95

User interfaces (API)

7

7.1

Introduction

Components of the Simulation Runtime
The following components are relevant for handling the Simulation Runtime of PLCSIM Advanced:

Table 7- 1 Components of the Simulation Runtime

Components

Description

· "Siemens.Simatic.Simulation. Runtime.Manager.exe"
· "Siemens.Simatic.Simulation. Runtime.Instance.exe"

A Windows process that runs in the background. Main component of Runtime that manages all other Runtime components.
The process is started automatically as soon as an application attempts to initialize the Runtime API. It is ended automatically as soon as there is no longer any application running that initialized the Runtime API.
The process of the instance that loads a DLL of a virtual controller. Each virtual controller generates its own process.

· "Siemens.Simatic.Simulation. Runtime.Api.x86.dll"
· "Siemens.Simatic.Simulation. Runtime.Api.x64.dll"

API libraries that must load an application to use the Simulation Runtime. The libraries contain interfaces for native code and managed code.
The "Runtime.Api.x86.dll" is loaded exclusively by 32-bit applications, and the "Runtime.Api.x64.dll" by 64-bit applications.

· "SimulationRuntimeApi.h"

Header file that describes all data types that require a native C++ application to use the API library.

· "Siemens.Simatic.PlcSim.Vplc1500. ODK client process for a CPU function library (original

ODKClient.so.exe"

Shared Object)

· "Siemens.Simatic.PlcSim.Vplc1500. ODK client process for a 32-bit application ODKClient.x86.exe"

· "Siemens.Simatic.PlcSim.Vplc1500. ODK client process for a 64-bit application ODKClient.x64.exe"

S7-PLCSIM Advanced

96

Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction
External applications and Simulation Runtime
The following figure schematically presents the access of external applications to Simulation Runtime via the Runtime API. The Simulation Runtime Manager manages the Runtime instances. These load the libraries of the virtual controllers. An external application can be, for example, another simulation software or a graphical user interface (GUI).
Figure 7-1 External applications and Simulation Runtime

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

97

User interfaces (API) 7.1 Introduction

7.1.1

Access to instances

Access via the Control Panel and the API
You can access only one instance that is available locally on the PC via the Control Panel. It does not matter on which PC an instance was created and started. With distributed communication, the Runtime API accesses the instance of the other PCs via the Simulation Runtime Manager.

 Access to a local instance via the Control Panel  Access to a remote instance on the Runtime API
Figure 7-2 Access to instances with distributed communication

API functions

 Table 7-6 Overview of IInstances functions - Native C++ (Page 102)  Table 7-13 Overview of IInstances functions - .NET (C#) (Page 106)  Table 7-8 Overview of IRemoteRuntimeManager functions - Native C++ (Page 104)  Table 7-15 Overview of IRemoteRuntimeManager functions - .NET (C#) (Page 108)

See also

Overview of user interfaces for managed code (Page 105)

S7-PLCSIM Advanced

98

Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction

7.1.2

User interfaces (API)
The user interfaces of Simulation Runtime include functions you use, for example, to create instances, to change the operating state of a virtual controller, or to exchange I/O data. Simulation Runtime has the following user interfaces:  ISimulationRuntimeManager  IInstances  IRemoteRuntimeManager

API and external applications
The Runtime API makes the interfaces available to an external application.

 ISimulationRuntimeManager
Interface of the Runtime Manager. It is used to register new Runtime instances, to search through existing Runtime instances, and to receive an interface of a registered instance. Up to 16 instances can be registered in one Runtime Manager.
 IInstances
Interface of a Runtime instance. It is used to change the operating state of a virtual controller and to exchange I/O data. Each instance has a unique name and an ID.
Figure 7-3 API and external applications

S7-PLCSIM Advanced

Function Manual, 11/2019, A5E37039512-AC

99

User interfaces (API) 7.1 Introduction
Access to API functions and data types
Required functions and data types are available for native C++ and .NET (C#).  Overview of user interfaces for native C++ (Page 100)  Overview of data types for native C++ (Page 108)  Overview of user interfaces for managed code (Page 105)  Overview of data types for managed code (Page 110)
Note The list of tables in this manual gives you direct access to the description of the individual functions and data types.
Transfer parameters for API functions
All API functions that return a value using the function parameters expect a user-allocated memory area as a transfer parameter. Zero pointers are not permitted. Exceptions to this are the functions that return an interface of a virtual controller:  An ISimulationRuntimeManager interface  An IRemoteRuntimeManager interface  An IInstance interface

7.1.3

Overview of user interfaces for native C++

Initializing and shutting down API

Table 7- 2 Overview of initializing and shutting down API - Native C++

Actions Initialize API
Shut down API (Page 117) Logging off API library (Page 120)

Functions
InitializeApi (Page 112) RuntimeApiEntry_Initialize (Page 114) DestroyInterface RuntimeApiEntry DestroyInterface FreeApi ShutdownAndFreeApi

100

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction

Global functions

Table 7- 3 Overview of global functions - Native C++

Actions Global functions (Page 122)

Functions
GetNameOfAreaSection() GetNameOfCPUType() GetNameOfCommunicationInterface() GetNameOfDataType() GetNameOfLEDMode() GetNameOfLEDType() GetNameOfOperatingMode() GetNameOfOperatingState() GetNameOfPrimitiveDataType() GetNameOfTagListDetails() GetNameOfErrorCode() GetNameOfRuntimeConfigChanged() GetNameOfInstanceConfigChanged() GetNameOfDiagSeverity() GetNameOfDirection() GetNameOfRackOrStationFaultType() GetNameOfProcessEventType() GetNameOfPullOrPlugEventType() GetNameOfCycleTimeMonitoringMode() GetNameOfDiagProperty()
GetNameOfAutodiscoverType()

API ISimulationRuntimeManager

Table 7- 4 Overview of API ISimulationRuntimeManager functions - Native C++

Settings Interface (Page 127)
Simulation Runtime instances (Page 129)
Remote connections (Page 137)

Functions
GetVersion() IsInitialized() IsRuntimeManagerAvailable() Shutdown() GetRegisteredInstancesCount() GetRegisteredInstanceInfoAt() RegisterInstance() RegisterCustomInstance() CreateInterface() OpenPort() ClosePort() GetPort() GetRemoteConnectionsCount() GetRemoteConnectionInfoAt() RemoteConnect() RunAutodiscover()

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

101

User interfaces (API) 7.1 Introduction

Table 7- 5 Overview of API ISimulationRuntimeManager events - Native C++

Events OnConfigurationChanged (Page 144)
OnRuntimeManagerLost (Page 147)
OnAutodiscover (Page 150)

Functions
RegisterOnConfigurationChangedCallback() UnregisterOnConfigurationChangedCallback() RegisterOnConfigurationChangedEvent() UnregisterOnConfigurationChangedEvent() WaitForOnConfigurationChangedEvent() RegisterOnRuntimeManagerLostCallback() UnregisterOnRuntimeManagerLostCallback() RegisterOnRuntimeManagerLostEvent() UnregisterOnRuntimeManagerLostEvent() WaitForOnRuntimeManagerLostEvent() RegisterOnAutodiscoverCallback() UnregisterOnAutodiscoverCallback()

API IInstances

Table 7- 6 Overview of IInstances functions - Native C++

Settings Interface (Page 151)
Controller (Page 157)
Operating state (Page 166)
Tag list (Page 176) I/O access via address - Reading (Page 183) I/O access via address - Writing (Page 191)

Functions
GetID() GetName() GetCPUType() SetCPUType() GetCommunicationInterface() SetCommunicationInterface() GetInfo() UnregisterInstance() GetControllerName() GetControllerShortDesignation() GetControllerIPCount() GetControllerIP() GetControllerIPSuite4() SetIPSuite() GetStoragePath() SetStoragePath() ArchiveStorage() RetrieveStorage() CleanupStoragePath() PowerOn() PowerOff() Run() Stop() GetOperatingState() MemoryReset() UpdateTagList() GetTagListStatus() GetTagInfoCount() GetTagInfos() CreateConfigurationFile() GetAreaSize() ReadBit() ReadByte() ReadBytes() ReadSignals() WriteBit() WriteByte() WriteBytes() WriteSignals()

102

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction

Settings I/O access via tag name Reading (Page 199)
I/O access via tag name Writing (Page 221)
Virtual time (Page 245) Cycle control (Page 248)
Acyclic services (Page 256)

Functions
Read() ReadBool() ReadChar(), ReadWChar() ReadDouble() ReadFloat() ReadInt8(), ReadInt16(), ReadInt32(), ReadInt64() ReadUInt8(), ReadUInt16(), ReadUInt32(), ReadUInt64() ReadSignals() Write() WriteBool() WriteChar(), WriteWChar() WriteDouble() WriteFloat() WriteInt8(), WriteInt16(), WriteInt32(), WriteInt64(), WriteUInt8(), WriteUInt16(), WriteUInt32(), WriteUInt64() WriteSignals() GetSystemTime() SetSystemTime() GetScaleFactor() SetScaleFactor() GetOperatingMode() SetOperatingMode() SetSendSyncEventInDefaultModeEnabled() IsSendSyncEventInDefaultModeEnabled GetOverwrittenMinimalCycleTime_ns() SetOverwrittenMinimalCycleTime_ns() RunToNextSyncPoint() StartProcessing() SetCycleTimeMonitoringMode() GetCycleTimeMonitoringMode()

Table 7- 7 Overview of IInstances events - Native C++

Events OnOperatingStateChanged (Page 274)
OnLedChanged (Page 277)
OnConfigurationChanging (Page 279)
OnConfigurationChanged (Page 282)
OnSyncPointReached (Page 284)

Functions
RegisterOnOperatingStateChangedCallback() UnregisterOnOperatingStateChangedCallback() RegisterOnOperatingStateChangedEvent() UnregisterOnOperatingStateChangedEvent() WaitForOnOperatingStateChangedEvent() RegisterOnLedChangedCallback() UnregisterOnLedChangedCallback() RegisterOnLedChangedEvent() UnregisterOnLedChangedEvent() WaitForOnLedChangedEvent() RegisterOnConfigurationChangingCallback() UnregisterOnConfigurationChangingCallback() RegisterOnConfigurationChangingEvent() UnregisterOnConfigurationChangingEvent() WaitForOnConfigurationChangingEvent() RegisterOnConfigurationChangedCallback() UnregisterOnConfigurationChangedCallback() RegisterOnConfigurationChangedEvent() UnregisterOnConfigurationChangedEvent() WaitForOnConfigurationChangedEvent() RegisterOnSyncPointReachedCallback()UnregisterOnSyncPointReachedCallback() RegisterOnSyncPointReachedEvent()UnregisterOnSyncPointReachedEvent()WaitFo rOnSyncPointReachedEvent()

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

103

User interfaces (API) 7.1 Introduction

API IRemoteRuntimeManager

Table 7- 8 Overview of IRemoteRuntimeManager functions - Native C++

Settings Interface (Page 296)
Simulation Runtime instances (Page 300)

Functions
GetVersion() GetIP() GetPort() GetRemoteComputerName() Disconnect() GetRegisteredInstancesCount() GetRegisteredInstanceInfoAt() RegisterInstance() RegisterCustomInstance() CreateInterface()

Table 7- 9 Overview of IRemoteRuntimeManager events - Native C++

Events OnConnectionLost (Page 308)

Functions
RegisterOnConnectionLostCallback() UnregisterOnConnectionLostCallback() RegisterOnConnectionLostEvent() UnregisterOnConnectionLostEvent() WaitForOnConnectionLostEvent()

104

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction

7.1.4

Overview of user interfaces for managed code

Initializing and shutting down API

Table 7- 10 Overview of initializing and shutting down API - .NET (C#)

Actions Initialize API (Page 116) Shut down API (Page 122)

Functions Siemens.Simatic.Simulation.Runtime.SimulationRuntimeManager

API ISimulationRuntimeManager

Table 7- 11 Overview of ISimulationRuntimeManager functions - .NET (C#)

Settings Interface (Page 127)
Simulation Runtime instances (Page 129)
Remote connections (Page 137)

Functions
Version { get; } IsInitialized { get; } IsRuntimeManagerAvailable { get; } Shutdown() RegisterInstanceInfo { get; } RegisterInstance() RegisterCustomInstance() CreateInterface() OpenPort() ClosePort() Port { get; } RemoteConnectionInfo { get; } RemoteConnect() RunAutodiscover()

Table 7- 12 Overview of ISimulationRuntimeManager events - .NET (C#)

Events OnConfigurationChanged (Page 144)
OnRuntimeManagerLost (Page 147)
OnAutodiscover (Page 150)

Functions
OnConfigurationChanged RegisterOnConfigurationChangedEvent() UnregisterOnConfigurationChangedEvent() WaitForOnConfigurationChangedEvent() OnRuntimeManagerLost() RegisterOnRuntimeManagerLostEvent() UnregisterOnRuntimeManagerLostEvent() WaitForOnRuntimeManagerLostEvent() OnAutodiscoverData

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

105

User interfaces (API) 7.1 Introduction

API IInstances

Table 7- 13 Overview of IInstances functions - .NET (C#)

Settings Interface (Page 151)
Controller - Information and settings (Page 157)
Operating state (Page 166)
Tag list (Page 176) I/O access via address - Reading (Page 183)
I/O access via address - Writing (Page 191) I/O access via tag name Reading (Page 199)
I/O access via tag name Writing (Page 221)
Virtual time (Page 245)

Functions
Dispose () ID { get; } Name { get; } CPUType { get; set; } CommunicationInterface { get; } Info { get; } UnregisterInstance() ControllerName { get; } ControllerShortDesignation { get; } ControllerIPSuite4 { get; } SetIPSuite() StoragePath { get; set; } ArchiveStorage() RetrieveStorage() CleanupStoragePath() PowerOn() PowerOff() Run() Stop() OperatingState { get; } MemoryReset() UpdateTagList() GetTagListStatus() TagInfos { get; } CreateConfigurationFile() InputArea | MarkerArea | OutputArea { get; } AreaSize { get; } ReadBit() ReadByte() ReadBytes() ReadSignals() WriteBit() WriteByte() WriteBytes() WriteSignals() Read() ReadBool() ReadChar(), ReadWChar() ReadDouble() ReadFloat() ReadInt8(), ReadInt16(), ReadInt32(), ReadInt64() ReadUInt8(), ReadUInt16(), ReadUInt32(), ReadUInt64() ReadSignals() Write() WriteBool() WriteChar(), WriteWChar() WriteDouble() WriteFloat() WriteInt8(), WriteInt16(), WriteInt32(), WriteInt64(), WriteUInt8(),WriteUInt16(), WriteUInt32(), WriteUInt64() WriteSignals() SystemTime { get; set; } ScaleFactor { get; set; }

106

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.1 Introduction

Settings Cycle control (Page 248)
Acyclic services (Page 256)

Functions
OperatingMode { get; set; } IsSendSyncEventInDefaultModeEnabled { get; set; } OverwrittenMinimalCycleTime_ns { get; set; } RunToNextSyncPoint StartProcessing() SetCycleTimeMonitoringMode() GetCycleTimeMonitoringMode()

Table 7- 14 Overview of IInstances events - .NET (C#)

Events OnOperatingStateChanged (Page 274)
OnLedChanged (Page 277)
OnConfigurationChanging (Page 279)
OnConfigurationChanged (Page 282)
OnSyncPointReached (Page 284)

Functions
OnOperatingStateChanged RegisterOnOperatingStateChangedEvent() UnregisterOnOperatingStateChangedEvent() WaitForOnOperatingStateChangedEvent() OnLedChanged RegisterOnLedChangedEvent() UnregisterOnLedChangedEvent() WaitForOnLedChangedEvent() OnConfigurationChanging RegisterOnConfigurationChangingEvent() UnregisterOnConfigurationChangingEvent() WaitForOnConfigurationChangingEvent() OnConfigurationChanged RegisterOnConfigurationChangedEvent() UnregisterOnConfigurationChangedEvent() WaitForOnConfigurationChangedEvent() OnSyncPointReached RegisterOnSyncPointReachedEvent() UnregisterOnSyncPointReachedEvent() WaitForOnSyncPointReachedEvent()

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

107

User interfaces (API) 7.1 Introduction

API IRemoteRuntimeManager

Table 7- 15 Overview of IRemoteRuntimeManager functions - .NET (C#)

Settings Interface (Page 296)
Simulation Runtime instances (Page 129)

Functions
Dispose() Version { get; } IP { get; } Port { get; } RemoteComputerName { get; } Disconnect() RegisterInstanceInfo { get; } RegisterInstance() RegisterCustomInstance() CreateInterface()

Table 7- 16 Overview IRemoteRuntimeManager events - .NET (C#)

Events
OnConnectionLost() (Page 308)

Functions
OnConnectionLost() RegisterOnConnectionLostEvent() UnregisterOnConnectionLostEvent() WaitForOnConnectionLostEvent()

7.1.5

Overview of data types for native C++
The following table shows which data types are available for the simulation in Runtime Manager.

Table 7- 17 Overview of data types - Native C++

Data type

DLL import functions (Page 312)

ApiEntry_Initialize ApiEntry_DestroyInterface

Event callback functions (Page 313)

EventCallback_VOID EventCallback_SRCC_UINT32_UINT32_INT32 EventCallback_SRRSI_AD EventCallback_IRRTM EventCallback_II_SREC_ST_SROS_SROS EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 EventCallback_II_SREC_ST EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32 EventCallback_II_SREC_ST_SRLT_SRLM EventCallback_II_SREC_ST_SDRI EventCallback_II_SREC_ST_SDRI_BYTE EventCallback_II_SREC_ST_UINT32_UINT32 EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32 EventCallback_II_SREC_ST_UINT32_EPPET_UINT32 EventCallback_II_SREC_ST_UINT32_ERSFET EventCallback II SREC ST UINT32

Definitions and constants (Page 340)

Unions (Page 341)

UIP UDataValue

108

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Data type Structures (Page 343)
Enumerations (Page 364)

SDataValue SDVBNI SDataValueByAddress SDataValueByName SConnectionInfo SInstanceInfo SDimension STagInfo SIP SIPSuite4 SOnSyncPointReachedResult SDataValueByAddressWithCheck SDataValueByNameWithCheck SDataRecordInfo SDataRecord SConfiguredProcessEvents SDiagExtChannelDescription SAutodiscoverData ERuntimeErrorCode EArea EOperatingState EOperatingMode ECPUType ECommunicationInterface ELEDType ELEDMode EPrimitiveDataTypes EDataType ETagListDetails ERuntimeConfigChanged EInstanceConfigChanged EPullOrPlugEventType EProcessEventType EDirection EDiagProperty EDiagSeverity ERackOrStationFaultType ECycleTimeMonitoringMode EAutodiscoverType

User interfaces (API) 7.1 Introduction

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

109

User interfaces (API) 7.1 Introduction

7.1.6

Overview of data types for managed code
The following table shows which data types are available for the simulation in Runtime Manager.

Table 7- 18 Overview of data types - .NET (C#)

Data type

Delegate definitions (Page 327)
- Event handler methods

Delegate_Void Delegate_SRCC_UINT32_UINT32_INT32 Delegate_SRRSI_AD Delegate_IRRTM Delegate_II_EREC_DT_EOS_EOS Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 Delegate_II_EREC_DT Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 Delegate_II_EREC_DT_ELT_ELM Delegate_II_EREC_DT_SDRI Delegate_II_EREC_DT_SDR Delegate_SREC_ST_UINT32_UINT32 Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32 Delegate_SREC_ST_UINT32_EPPET_UINT32 Delegate_SREC_ST_UINT32_ERSFET Delegate SREC ST UINT32

Definitions and constants (Page 340)

Structures (Page 343)

SDataValue SDVBNI SDataValueByAddress SDataValueByName SConnectionInfo SInstanceInfo SDimension STagInfo SIP SIPSuite4 SOnSyncPointReachedResult SDataValueByAddressWithCheck SDataValueByNameWithCheck SDataRecordInfo SDataRecord SConfiguredProcessEvents SDiagExtChannelDescription SAutodiscoverData

Enumerations (Page 362)

ERuntimeErrorCode EArea EOperatingState EOperatingMode ECPUType ECommunicationInterface ELEDType ELEDMode EPrimitiveDataTypes EDataType ETagListDetails ERuntimeConfigChanged EInstanceConfigChanged EPullOrPlugEventType EProcessEventType EDirection EDiagProperty EDiagSeverity ERackOrStationFaultType ECycleTimeMonitoringMode EAutodiscoverType

110

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.2

Initialize API

User interfaces (API) 7.2 Initialize API

7.2.1

Load API library

Description

With PLCSIM Advanced the interfaces of the API V3.0 are not compatible with the interfaces of previous API versions. However, the Runtime Manager of PLCSIM Advanced V3.0 is compatible with the API of previous PLCSIM Advanced versions.
Earlier versions of the API are also installed during the installation of PLCSIM Advanced V3.0.
The default path is:
 C:\Program Files (x86)\Common Files\Siemens\PLCSIMADV\API\1.0
 C:\Program Files (x86)\Common Files\Siemens\PLCSIMADV\API\2.0
 C:\Program Files (x86)\Common Files\Siemens\PLCSIMADV\API\2.1
 C:\Program Files (x86)\Common Files\Siemens\PLCSIMADV\API\3.0
The installation path of PLCSIM Advanced is contained in the registry:
 Key: "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Siemens\Shared Tools\PLCSIMADV_SimRT"
 Value: "Path"
To maintain the path to the API, add the character string of the following subdirectory at the end: "API\<API version>" (e.g. "API\3.0").
When you use this path the API library (DLL) is loaded directly from the installation directory.

Reference

Additional information can be found in:
 For Native C++ in section InitializeApi() (Page 112).
 For .NET via the call of the function "System.Reflection.Assembly.LoadFile(string)" in the online documentation for MSDN.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

111

User interfaces (API) 7.2 Initialize API

7.2.2

Native C++

7.2.2.1

InitializeApi()

Description

The InitializeApi function loads the API library (DLL) and initializes the API. The function loads the version of the DLL that is compatible with the architecture of your application and which is also compatible with the header file of the API ("SimulationRuntimeApi.h").
To load the DLL, the function InitializeApi searches in the following directories one after the other:
 In the directory to which the parameter of the function leads (in_SimulationRuntimeApiDllPath)
 In the directory of your application that calls this function.
 In the installation directory of PLCSIM Advanced
If no DLL is available, the function accesses the next directory.
The function returns an interface to the Simulation Runtime Manager. Use this interface to create a new instance of the virtual controller or to obtain access to an existing instance.

Table 7- 19 InitializeApi() - Native C++

Syntax Parameters

ERuntimeErrorCode InitializeApi( ISimulationRuntimeManager** out_SimulationRuntimeManagerInterface
); ERuntimeErrorCode InitializeApi(
WCHAR* in_SimulationRuntimeApiDllPath, ISimulationRuntimeManager** inout_SimulationRuntimeManagerInterface );
· ISimulationRuntimeManager** out_SimulationRuntimeManagerInterface:

Pointer to a Runtime Manager interface pointer. The pointer must be initialized with NULL. The interface is created within the function. See Data types (Page 311).
· WCHAR* in_SimulationRuntimeApiDllPath:

The path to the Runtime API library.

112

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.2 Initialize API

Return values Example C++

Runtime error code SREC_OK SREC_WRONG_ARGUMENT
SREC_WRONG_VERSION

Condition
The function is successful.
The pointer to the Runtime Manager interface does not equal NULL.
· The required version of the interface is incompatible with the version used to compile the API.

· The version of the API is not compatible

with Runtime.

See Compatibility during upgrade (Page 33).

SREC_CONNECTION_ERROR

Unable to establish a connection to the Runtime Manager.

SREC_ERROR_LOADING_DLL

The API library cannot be loaded.

SREC_RUNTIME_NOT_AVAILABLE No Runtime Manager runs in this Windows user session.

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"

// Prepare The Variables ERuntimeErrorCode result = SREC_INVALID_ERROR_CODE; ISimulationRuntimeManager* api = NULL;

// Initialize The API And Get The RuntimeManager Interface result = InitializeApi(&api);

Note If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

113

User interfaces (API) 7.2 Initialize API

7.2.2.2

RuntimeApiEntry_Initialize

Description

Use the function RuntimeApiEntry_Initialize only if the API library (DLL) is to be loaded from a different directory than the directory of your application that calls this function.
When the API is initialized, the API library is first loaded and the Initialize function is then imported and called.
The function returns an interface to the Simulation Runtime Manager. Use this interface to create a new instance of the virtual controller or to obtain access to an existing instance.

Table 7- 20 RuntimeApiEntry_Initialize - Native C++

Syntax Parameters

__declspec(dllexport) ERuntimeErrorCode RuntimeApiEntry_Initialize( ISimulationRuntimeManager** out_SimulationRuntimeManagerInterface, UINT32 in_InterfaceVersion
); · ISimulationRuntimeManager**
out_SimulationRuntimeManagerInterface:

Pointer to a Runtime Manager interface pointer. The pointer must be initialized with NULL. The interface is created within the function. See Data types (Page 311).
· UINT32 in_InterfaceVersion:

Return values

Version of the API interface to be downloaded: DAPI_DLL_INTERFACE_VERSION.

Runtime error code SREC_OK

Condition The function is successful.

SREC_WRONG_ARGUMENT SREC_WRONG_VERSION

The pointer to the Runtime Manager interface does not equal NULL.
· The required version of the interface is incompatible with the version used to compile the API.

SREC_CONNECTION_ERROR SREC_RUNTIME_NOT_AVAILABLE

· The version of the API is not compatible with Runtime.
See Compatibility during upgrade (Page 33).
Unable to establish a connection to the Runtime Manager.
No Runtime Manager runs in this Windows user session.

114

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.2 Initialize API

Example C++

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"
// Prepare The Variables ERuntimeErrorCode result = SREC_INVALID_ERROR_CODE; HMODULE dllHandle = NULL; ApiEntry_Initialize Initialize = NULL; ISimulationRuntimeManager* api = NULL;
// Load The DLL And Import The "Initialize" Function (using the Win32 API) dllHandle = LoadLibrary(DAPI_DLL_NAME_X86); if ( dllHandle != NULL ) {
Initialize = (ApiEntry_Initialize)GetProcAddress(dllHandle, DAPI_ENTRY_INITIALIZE); }
// Initialize The API And Get The RuntimeManager Interface if ( Initialize != NULL ) {
result = Initialize(&api, DAPI_DLL_INTERFACE_VERSION); }

Note If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

115

User interfaces (API) 7.2 Initialize API

7.2.3

.NET (C#)

7.2.3.1

Initialize

Description

The entry point to the API is the static class Siemens.Simatic.Simulation.Runtime.SimulationRuntimeManager. The API is initialized when a function of this class is used the first time.

Table 7- 21 Initialize - .NET (C#)

Exceptions

Siemens.Simatic.Simulation.Runtime.SimulationInitializationException

Runtime error code

Condition

ERuntimeErrorCode.ConnectionError

Unable to establish a connection to the Runtime Manager.

ERuntimeErrorCode.WrongVersion

The version of the API is not compatible with Runtime.

See Compatibility during upgrade (Page 33).

ERuntimeErrorCode.RuntimeNotAvailable

No Runtime Manager runs in this Windows user session.

116

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.3

Shut down API

User interfaces (API) 7.3 Shut down API

7.3.1

Native C++

Basic procedure for deleting the user interfaces
To delete all user interfaces, generally follow these steps: 1. Delete the interfaces IInstances and IRemoteRuntimeManager. 2. Call the Shutdown() function of the ISimulationRuntimeManager interface. 3. Delete the ISimulationRuntimeManager interface. 4. Unload the API library (DLL) with the Win32 API-Funktion FreeLibrary().

Deleting the user interfaces via functions
Deleting the user interfaces is also possible via functions. If the API was initialized using the InitializeApi() function, you delete the user interfaces using the following functions:  FreeApi() (Page 120)  ShutdownAndFreeApi() (Page 121)

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

117

User interfaces (API) 7.3 Shut down API

7.3.1.1

DestroyInterface()

Description

A function pointer to the RuntimeApiEntry_DestroyInterface function. The function pointer DestoyInterface() is only valid if the InitializeApi function has been successfully called.
The function unloads the memory of an ISimulationRuntimeManager, IRemoteRuntimeManager or IInstance interface.

Table 7- 22 DestroyInterface() - Native C++

Syntax Parameters

ERuntimeErrorCode DestroyInterface( IBaseInterface* in_Interface
); · IBaseInterface* in_Interface:

Return values Example C++

The interface to be deleted.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_WRONG_ARGUMENT

The pointer to the interface is NULL.

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"

// The Interfaces ERuntimeErrorCode result; ISimulationRuntimeManager* api = NULL; IInstance* instance = NULL;

// Init the DLL and create an instance result = InitializeApi(&api); result = api->RegisterInstance(&instance);

// Destroy Instance Interfaces result = DestroyInterface(instance); instance = NULL;

118

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.3 Shut down API

7.3.1.2

RuntimeApiEntry_DestroyInterface

Description

Use the RuntimeApiEntry_DestroyInterface function only if the API library (DLL) is to be loaded from a different directory than the Startup directory of the application that calls this function.
If the API was initialized using the InitializeApi function, you select the DestroyInterface() (Page 118) function.
The function unloads the memory of an ISimulationRuntimeManager, IRemoteRuntimeManager or IInstance interface.

Table 7- 23 RuntimeApiEntry_DestroyInterface() - Native C++

Syntax Parameters

__declspec(dllexport) ERuntimeErrorCode RuntimeApiEntry_DestroyInterface(
IBaseInterface* in_Interface ); · IBaseInterface* in_Interface:

Return values Example C++

The interface to be deleted.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_WRONG_ARGUMENT

The pointer to the interface is NULL.

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"

// Prepare The Variables ERuntimeErrorCode result = SREC_INVALID_ERROR_CODE; HMODULE dllHandle = NULL; ApiEntry_DestroyInterface Destroy = NULL; IInstance* instance = NULL;

// Load The DLL And Import The "DestroyInterface" Function (using the Win32 API) dllHandle = LoadLibraryA(DAPI_DLL_NAME_X86); if ( dllHandle != NULL ) {
Destroy = (ApiEntry_ DestroyInterface)GetProcAddress(dllHandle, DAPI_ENTRY_DESTROY_INTERFACE); } ... // Frees the memory of an IInstance interface
result = Destroy(instance);

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

119

User interfaces (API) 7.3 Shut down API

7.3.1.3

FreeApi()

Description

The FreeApi() function unloads the library of the Runtime API.
This function can only be called after the successful call of the InitializeApi function. If the InitializeApi function was not called, the library must be unloaded using the Win32 API function FreeLibrary().

Table 7- 24 FreeApi() - Native C++

Syntax Parameters Return values
Example C++

ERuntimeErrorCode FreeApi();

None

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_API_NOT_INITIALIZED

The InitializeApi function was not called successfully.

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"

// The Interfaces ERuntimeErrorCode result; ISimulationRuntimeManager* api = NULL; IInstance* instance = NULL;

// Init the API result = InitializeApi(&api);

...

// Shutdown The API api->Shutdown(); result = DestroyInterface(api); api = NULL;
result = FreeApi();

120

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.3 Shut down API

7.3.1.4

ShutdownAndFreeApi()

Description

The ShutdownAndFreeApi() function shuts down the Runtime API, deletes the IRuntimeManager interface and unloads the library of the Runtime API.
This function can only be called after the successful call of the InitializeApi function. If the InitializeApi function was not called, the library must be unloaded using the Win32 APIFunktion FreeLibrary().

Table 7- 25 ShutdownAndFreeApi() - Native C++

Syntax Parameters

ERuntimeErrorCode ShutdownAndFreeApi( ISimulationRuntimeManager* in_SimulationRuntimeManagerInterface
); · ISimulationRuntimeManager* in_SimulationRuntimeManagerInterface:

Return values Example C++

The interface of the Runtime Manager to be deleted.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_API_NOT_INITIALIZED

The InitializeApi function was not called successfully.

SREC_WRONG_ARGUMENT

The pointer to the interface is NULL.

// Include The Headerfile Of The API #include "SimulationRuntimeApi.h"

// The Interfaces ERuntimeErrorCode result; ISimulationRuntimeManager* api = NULL; IInstance* instance = NULL;

// Init the API result = InitializeApi(&api);

...

// Shutdown The API result = ShutdownAndFreeApi(api); api = NULL;

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

121

User interfaces (API) 7.4 Global functions (Native C++)

7.3.2

.NET (C#)

7.3.2.1

Shut down API
You can terminate the .NET components of the API for the IInstance and IRemoteRuntimeManager interfaces by calling the Dispose (Page 151) function.
In addition these interfaces can also be cleared automatically by the .NET Garbage Collector.

Manually clearing the API
To manually clear the API, follow these steps: 1. Delete all interfaces. Interfaces - Information and settings (Page 151) 2. Call the Shutdown() (Page 127) function of the ISimulationRuntimeManager interface.

7.4

Global functions (Native C++)

The global functions GetNameOf... return the name of the enumeration entry (const WCHAR*).

GetNameOfAreaSection()

Table 7- 26 GetNameOfAreaSection() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfAreaSection( EArea in_AreaSection
); EArea in_AreaSection: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfCPUType()

Table 7- 27 GetNameOfCPUType() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfCPUType( ECPUType in_CPUType
); ECPUType in_CPUType: Enumeration entry const WCHAR*: Name of the enumeration entry

122

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.4 Global functions (Native C++)

GetNameOfCommunicationInterface()

Table 7- 28 GetNameOfCommunicationInterface() - Native C++

Syntax Parameters Return values

const WCHAR* GetNameOfCommunicationInterface( ECommunicationInterface in_CommunicationInterface
); ECommunicationInterface in_CommunicationInterface: Enumeration entry
const WCHAR*: Name of the enumeration entry

GetNameOfDataType()

Table 7- 29 GetNameOfDataType() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfDataType( EDataType in_DataType
); EDataType in_DataType: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfErrorCode()

Table 7- 30 GetNameOfErrorCode() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfErrorCode( ERuntimeErrorCode in_ErrorCode
); ERuntimeErrorCode in_ErrorCode: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfLEDMode()

Table 7- 31 GetNameOfLEDMode() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfLEDMode( ELEDMode in_LEDMode
); ELEDMode in_LEDMode: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfLEDType()

Table 7- 32 GetNameOfLEDType() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfLEDType( ELEDType in_LEDType
); ELEDType in_LEDType: Enumeration entry. const WCHAR*: Name of the enumeration entry

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

123

User interfaces (API) 7.4 Global functions (Native C++)

GetNameOfOperatingMode()

Table 7- 33 GetNameOfOperatingMode() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfOperatingMode( EOperatingMode in_OperatingMode
); EOperatingMode in_OperatingMode: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfErrorCode()

Table 7- 34 GetNameOfErrorCode() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfErrorCode( ERuntimeErrorCode in_ErrorCode
); ERuntimeErrorCode in_ErrorCode: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfOperatingState

Table 7- 35 GetNameOfOperatingState() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfOperatingState( EOperatingState in_OperatingState
); EOperatingState in_OperatingState: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfPrimitiveDataType

Table 7- 36 GetNameOfPrimitiveDataType() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfPrimitiveDataType( EPrimitiveDataType in_DataType
); EPrimitiveDataType in_DataType: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfTagListDetails

Table 7- 37 GetNameOfTagListDetails() - Native C++

Syntax

const WCHAR* GetNameOfTagListDetails(

Parameters Return values

ETagListDetails in_TagListDetails ); ETagListDetails in_TagListDetails: Enumeration entry const WCHAR*: Name of the enumeration entry

124

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.4 Global functions (Native C++)

GetNameOfRuntimeConfigChanged()

Table 7- 38 GetNameOfRuntimeConfigChanged() - Native C++

Syntax Parameters Return values

const WCHAR* GetNameOfRuntimeConfigChanged( ERuntimeConfigChanged in_RuntimeConfigChanged);
); ERuntimeConfigChanged in_RuntimeConfigChanged: Enumeration entry
const WCHAR*: Name of the enumeration entry

GetNameOfInstanceConfigChanged()

Table 7- 39 GetNameOfInstanceConfigChanged() - Native C++

Syntax Parameters Return values

const WCHAR* GetNameOfInstanceConfigChanged( EInstanceConfigChanged in_InstanceConfigChanged);
); EInstanceConfigChanged in_InstanceConfigChanged: Enumeration entry
const WCHAR*: Name of the enumeration entry

GetNameOfDirection()

Table 7- 40 GetNameOfDirection() - Native C++

Syntax
Parameter Return values

const WCHAR* GetNameOfDirection( EDirection in_Direction
); EDirection in_Direction: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfDiagSeverity()

Table 7- 41 GetNameOfDiagSeverity() - Native C++

Syntax
Parameter Return values

const WCHAR* GetNameOfDiagSeverity( EDiagSeverity in_DiagSeverity
); EDiagSeverity in_DiagSeverity: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfRackOrStationFaultType()

Table 7- 42 GetNameOfRackOrStationFaultType() - Native C++

Syntax Parameter Return values

const WCHAR* GetNameOfRackOrStationFaultType( ERackOrStationFaultType in_RackOrStationFaultType
); ERackOrStationFaultType in_RackOrStationFaultType: Enumeration entry
const WCHAR*: Name of the enumeration entry

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

125

User interfaces (API) 7.4 Global functions (Native C++)

GetNameOfProcessEventType()

Table 7- 43 GetNameOfProcessEventType() - Native C++

Syntax
Parameters Return values

const WCHAR*(GetNameOfProcessEventType( EProcessEventType in_ProcessEventType
); EProcessEventType in_ProcessEventType: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfPullOrPlugEventType()

Table 7- 44 GetNameOfPullOrPlugEventType() - Native C++

Syntax Parameters Return values

const WCHAR* GetNameOfPullOrPlugEventType( EPullOrPlugEventType in_PullOrPlugEventType
); EPullOrPlugEventType in_PullOrPlugEventType: Enumeration entry
const WCHAR*: Name of the enumeration entry

GetNameOfCycleTimeMonitoringMode()

Table 7- 45 GetNameOfCycleTimeMonitoringMode() - Native C++

Syntax Parameters Return values

const WCHAR* GetNameOfCycleTimeMonitoringMode( ECycleTimeMonitoringMode in_CycleTimeMonitoringMode
); ECycleTimeMonitoringMode in_CycleTimeMonitoringMode: Enumeration entry
const WCHAR*: Name of the enumeration entry

GetNameOfDiagProperty()

Table 7- 46 GetNameOfDiagProperty() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfDiagProperty( EDiagProperty in_DiagProperty
); EDiagProperty in_DiagProperty: Enumeration entry const WCHAR*: Name of the enumeration entry

GetNameOfAutodiscoverType()

Table 7- 47 GetNameOfAutodiscoverType() - Native C++

Syntax
Parameters Return values

const WCHAR* GetNameOfAutodiscoverType( EAutodiscoverType in_AutodiscoverType
); EAutodiscoverType in_AutodiscoverType: Enumeration entry const WCHAR*: Name of the enumeration entry

126

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

See also

EPrimitiveDataType (Page 375) EDataType (Page 377) Enumerations (Page 362)

User interfaces (API) 7.5 API ISimulationRuntimeManager

7.5

API ISimulationRuntimeManager

7.5.1

Interfaces - Information and settings

GetVersion() / Version { get; }
Returns the version of Runtime Manager. If the function fails, version 0.0 is returned.

Table 7- 48 GetVersion() - Native C++

Syntax Parameters Return values

UINT32 GetVersion();
None UINT32: Runtime Manager Version (HIWORD = Major, LOWORD = Minor)

Table 7- 49 Version { get; } - .NET (C#)

Syntax Parameters Return values

UInt32 Version { get; }
None Uint32: Runtime Manager Version (HIWORD = Major, LOWORD = Minor)

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

127

User interfaces (API) 7.5 API ISimulationRuntimeManager

IsInitialized() / IsInitialized { get; }
Returns a value that indicates whether the API was successfully initialized.

Table 7- 50 IsInitialized() - Native C++

Syntax Parameters Return values

bool IsInitialized();
None · false: If the API was not initialized. · true: If the API was initialized.

Table 7- 51 IsInitialized { get; } - .NET (C#)

Syntax Parameters Return values

bool IsInitialized { get; }
None · false: If the API was not initialized. · true: If the API was initialized.

IsRuntimeManagerAvailable() / IsRuntimeManagerAvailable { get; }
The function returns false when the connection to Runtime Manager is interrupted. This happens only when the Runtime Manager process is closed.
Subscribe to the OnRuntimeManagerLost() event to find out whether the connection is interrupted. See Events (Page 143).

Table 7- 52 IsRuntimeManagerAvailable() - Native C++

Syntax Parameters Return values

bool IsRuntimeManagerAvailable();
None · false: If the connection is interrupted. · true: If the connection is active.

Table 7- 53 IsRuntimeManagerAvailable { get; } - .NET (C#)

Syntax Parameters Return values

bool IsRuntimeManagerAvailable{ get; }
None · false: If the connection is interrupted. · true: If the connection is active.

128

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

Shutdown()

Ends communication with Runtime Manager and clears the interfaces. Call this function in the following cases:  Immediately before the API library (DLL) is unregistered (native C++).  When your application is no longer using Runtime Manager.

Table 7- 54 Shutdown() - Native C++

Syntax Parameters Return values

ERuntimeErrorCode Shutdown()

None Runtime error code SREC_OK

Condition The function is successful.

Table 7- 55 Shutdown() - .NET (C#)

Syntax Parameters Return values

void Shutdown()
None None

7.5.2

Simulation Runtime instances

GetRegisteredInstancesCount()
Returns the number of instances that are registered in Runtime Manager. If the function fails, the return value is 0.

Table 7- 56 GetRegisteredInstancesCount() - Native C++

Syntax Parameters Return values

UINT32 GetRegisteredInstancesCount();
None UINT32: Number of available instances.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

129

User interfaces (API) 7.5 API ISimulationRuntimeManager

GetRegisteredInstanceInfoAt()
Returns information about an already registered instance. You can use the ID or name to create an interface of this instance, see CreateInterface().

Table 7- 57 GetRegisteredInstanceInfoAt() - Native C++

Syntax Parameters

ERuntimeErrorCode GetRegisteredInstanceInfoAt( UINT32 in_Index, SInstanceInfo* out_InstanceInfo
); · UINT32 in_Index:

Index of the created instance from which you want to receive the information. The index must be less than the value you receive when you call GetRegisteredInstanceCount().
· SInstanceInfo* out_InstanceInfo:

Return values

The information with name and ID of the instance. See Data types (Page 340).

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_DOES_NOT_EXIST

There is no instance information for this index.

SREC_INDEX OUT_OF_RANGE

The index is greater than 15.

RegisteredInstanceInfo { get; }
Returns information about all already registered instances. Use the ID or name of this instance to create an interface of this instance, see CreateInterface().

Table 7- 58 RegisteredInstanceInfo { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

SInstanceInfo[] RegisteredInstanceInfo { get; }

None

SInstanceInfo[]: An array of information about all registered instances.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

130

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

RegisterInstance()
Registers a new instance of a virtual controller in Runtime Manager. Creates and returns an interface of this instance.

Table 7- 59 RegisterInstance() - Native C++

Syntax Parameters

ERuntimeErrorCode RegisterInstance( IInstance** out_InstanceInterface
); ERuntimeErrorCode RegisterInstance(
WCHAR* in_InstanceName, IInstance** out_InstanceInterface ); ERuntimeErrorCode RegisterInstance( ECPUType in_CPUType, IInstance** out_InstanceInterface ); ERuntimeErrorCode RegisterInstance( ECPUType in_CPUType, WCHAR* in_InstanceName, IInstance** out_InstanceInterface );
· ECPUType in_CPUType:

Defines which CPU type is simulated at the start of the instance. The default setting is "SRCT_1500_Unspecified".

When a different CPU type is loaded via STEP 7 or from the Virtual SIMATIC Memory Card, this CPU type applies.
· WCHAR* in_InstanceName:

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already exists, the name "Instance_#.#" is used, in which the second # is a counter that is incremented until the name is unique. The length of the name must be less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).
· IInstance** out_InstanceInterface:

Return values Example C++

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with ZERO. The interface is created within the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The name or the IInstance pointer is invalid.

SREC_LIMIT_REACHED

There are already 16 instances registered in Runtime Manager.

SREC_ALREADY_EXISTS

An instance with this name already exists.

ISimulationRuntimeManager * api = ZERO; ERuntimeErrorCode result = Initialize(&api);

// Example: How To Create And Register An Instance IInstance* psa = ZERO; if (result == SREC_OK) {
result = api->RegisterInstance(&psa); }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

131

User interfaces (API) 7.5 API ISimulationRuntimeManager
Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

Table 7- 60 RegisterInstance() - .NET (C#)

Syntax Parameters

IInstance RegisterInstance(); IInstance RegisterInstance(
string in_InstanceName ); IInstance RegisterInstance(
ECPUType in_CPUType ); IInstance RegisterInstance(
ECPUType in_CPUType string in_InstanceName );
· ECPUType in_CPUType:

Defines which CPU type is simulated at the start of the instance. The default setting is "ECPUType.Unspecified".

When a different CPU type is loaded via STEP 7 or from the Virtual SIMATIC Memory Card, this CPU type applies.
· string in_InstanceName:

Return values Exceptions

Name to be assigned to the instance. Every instance must have a unique

name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already exists, the name "Instance_#.#" is used, in which the second # is a counter that is incremented until the name is unique. The length of the name must be

less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).

If the function is successful, an interface of a virtual controller, otherwise a null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name is invalid.

ERuntimeErrorCode.LimitReached

There are already 16 instances registered in Runtime Manager.

ERuntimeErrorCode.AlreadyExists

An instance with this name already exists.

132

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

RegisterCustomInstance()
Registers a new instance of a virtual controller in Runtime Manager. Creates and returns an interface of this instance.

Table 7- 61 RegisterCustomInstance() - Native C++

Syntax Parameters

ERuntimeErrorCode RegisterCustomInstance( WCHAR* in_VplcDll, IInstance** out_InstanceInterface
); ERuntimeErrorCode RegisterCustomInstance(
WCHAR* in_VplcDll, WCHAR* in_InstanceName, IInstance** out_InstanceInterface );
· WCHAR* in_VplcDll:

The complete path to the DLL of the virtual controller that "Siemens.Simatic.Simulation.Runtime.Instance.exe" loads at PowerOn.
· WCHAR* in_InstanceName:

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already exists, the name "Instance_#.#" is used, in which the second # is a counter that is incremented until the name is unique. The length of the name must be less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).
· IInstance** out_InstanceInterface:

Return values Example C++

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with ZERO. The interface is created within the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The DLL name, the instance name or the IInstance pointer is invalid.

SREC_LIMIT_REACHED

There are already 16 instances registered in Runtime Manager.

SREC_ALREADY_EXISTS

An instance with this name already exists.

ISimulationRuntimeManager * api = ZERO; ERuntimeErrorCode result = Initialize(&api);

// Example: How To Create And Register An Instance IInstance* psa = ZERO; if (result == SREC_OK) {
result = api->RegisterCustomInstance(L"C:\\Temp\\vplc.dll"); }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

133

User interfaces (API) 7.5 API ISimulationRuntimeManager
Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

Table 7- 62 RegisterCustomInstance() - .NET (C#)

Syntax Parameters

IInstance RegisterCustomInstance( string in_VplcDll
); IInstance RegisterCustomInstance(
string in_VplcDll, string in_InstanceName );
· string in_VplcDll:

The complete path to the DLL of the virtual controller that "Siemens.Simatic.Simulation.Runtime.Instance.exe" loads at PowerOn.
· string in_InstanceName:

Return values Exceptions

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already

exists, the name "Instance_#.#" is used, in which the second # is a counter

that is incremented until the name is unique. The length of the name must be

less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).

If the function is successful, an interface of a virtual controller; otherwise a Null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name or the ID is invalid.

ERuntimeErrorCode.LimitReached

There are already 16 instances registered in Runtime Manager.

ERuntimeErrorCode.AlreadyExists

An instance with this name already exists.

134

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

CreateInterface()
Creates and returns an interface of an already registered instance of a virtual controller.
The instance could have been registered via the application or another application that uses the Simulation Runtime API.

Table 7- 63 CreateInterface() - Native C++

Syntax Parameters

ERuntimeErrorCode CreateInterface( WCHAR* in_InstanceName, IInstance** out_InstanceInterface
); ERuntimeErrorCode CreateInterface(
INT32 in_InstanceID, IInstance** out_InstanceInterface );
· INT32 in_InstanceID:

The ID of the registered instance from which you want to receive the interface. · WCHAR* in_InstanceName:

The name of the registered instance from which you want to receive the interface.
· IInstance** out_InstanceInterface:

Return values Example C++

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with ZERO. The interface is created within the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The name, the ID or the IInstance pointer is invalid.

SREC_DOES_NOT_EXIST

The instance is not registered in Runtime Manager.

ISimulationRuntimeManager * api = ZERO; ERuntimeErrorCode result = Initialize(&api);

Example C++

IInstance* psa1 = ZERO; IInstance* psa2 = ZERO; if (result == SREC_OK) {
result = api->CreateInterface(0, &psa1);
result = api->CreateInterface(0, &psa2); // psa2 will be the same as psa1 }
ISimulationRuntimeManager * api = ZERO; ERuntimeErrorCode result = Initialize(&api);

IInstance* psa = ZERO; if (result == SREC_OK)
{ result = api->CreateInterface(L"My SimulationRuntime Instance",
&psa);
}

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

135

User interfaces (API) 7.5 API ISimulationRuntimeManager
Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

Table 7- 64 CreateInterface() - .NET (C#)

Syntax Parameters

IInstance CreateInterface( string in_InstanceName
); IInstance CreateInterface(
INT32 in_InstanceID );
· INT32 in_InstanceID:

The ID of the registered instance from which you want to receive the interface. · string in_InstanceName:

Return values Exceptions

The name of the registered instance from which you want to receive the inter-

face.

If the function is successful, an interface of a virtual controller; otherwise a Null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name or the ID is invalid.

ERuntimeErrorCode.DoesNotExists

The instance is not registered in Runtime Manager.

136

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

7.5.3

Remote connections

OpenPort()

Opens a port to which another Runtime Manager can connect.

Table 7- 65 OpenPort() - Native C++

Syntax Parameters

ERuntimeErrorCode OpenPort( UINT16 in_Port
); · UINT16 in_Port:

Return values

The port. The value must be greater than 1024.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_ALREADY_EXISTS

A port is already open.

SREC_WRONG_ARGUMENT

The port is invalid.

SREC_CONNECTION_ERROR

The port cannot be opened.

Table 7- 66 OpenPort() - .NET (C#)

Syntax Parameters

void OpenPort( UInt16 in_Port
); · UInt16 in_Port:

Return values Exceptions

The port. The value must be greater than 1024.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.AlreadyExists A port is already open.

ERuntimeErrorCode.WrongArgument The port is invalid.

ERuntimeErrorCode.ConnectionError

The port cannot be opened.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

137

User interfaces (API) 7.5 API ISimulationRuntimeManager

ClosePort()

Closes an open port and all open connections that another Runtime Manager has created to this open port.

Table 7- 67 ClosePort() - Native C++

Syntax Parameters Exceptions

ERuntimeErrorCode ClosePort();

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_WARNING_INVALID_CALL

No port is open.

Table 7- 68 ClosePort() - .NET (C#)

Syntax
Parameters Return values Exceptions

void ClosePort( UInt16 in_Port
);

None

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

GetPort() / Port { get; }
Returns the open port. If no port is open or the function fails, the return value is 0.

Table 7- 69 GetPort() - Native C++

Syntax Parameters Return values

UINT16 GetPort();
None UINT16: The open port. 0, if no port is open.

Table 7- 70 Port { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

UInt16 Port { get; }
None UInt16: The open port. 0, if no port is open. None

138

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

GetRemoteConnectionsCount()
Supplies the number of open remote connections.

Table 7- 71 GetRemoteConnectionsCount() - Native C++

Syntax Parameters Return values

UINT32 GetRemoteConnectionsCount();
None UINT32: Number of open remote connections.

GetRemoteConnectionInfoAt()
Returns information about an open connection.

Table 7- 72 GetRemoteConnectionInfoAt()- Native C++

Syntax Parameters

ERuntimeErrorCode GetRemoteConnectionInfoAt( UINT32 in_Index, SConnectionInfo* out_ConnectionInfo
); · UINT32 in_Index:

Index of the connection information that is expected. · SConnectionInfo* out_ConnectionInfo:

Return values

The connection information for this index.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_INDEX_OUT_OF_RANGE

Connection information for this index does not exist.

RemoteConnectionInfo { get; }
Returns an array of information about all open connections.

Table 7- 73 RemoteConnectionInfo { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

SConnectionInfo[] RemoteConnectionInfo { get; }

None

SConnectionInfo[]: An array of information about all open connections.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

139

User interfaces (API) 7.5 API ISimulationRuntimeManager

RemoteConnect()
Creates a new connection to a remote Runtime Manager or uses an existing connection to create an IRemoteRuntimeManager interface.

Table 7- 74 RemoteConnect() - Native C++

Syntax Parameters

ERuntimeErrorCode RemoteConnect( UINT8 in_IP3, UINT8 in_IP2, UINT8 in_IP1, UINT8 in_IP0, UINT16 in_Port, IRemoteRuntimeManager** out_RemoteRuntimeManagerInterface
ERuntimeErrorCode RemoteConnect( UIP in_IP, UINT16 in_Port, IRemoteRuntimeManager** out_RunTimeManagerInterface
); · UINT8 in_IP3:
First part of the IP address of the remote PC. · UINT8 in_IP2:
Second part of the IP address of the remote PC. · UINT8 in_IP1:
Third part of the IP address of the remote PC.

Return values Example C++

UINT8 in_IP0:

Last part of the IP address of the remote PC. · UIP in_IP:

IP address of the remote PC. · UINT16 in_Port:

The port that is open on the remote PC. · IRemoteRuntimeManager** out_RemoteRuntimeManagerInterface:

Pointer to a remote Runtime Manager interface pointer. The pointer must be initialized with ZERO. The interface is created in the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_TIMEOUT

The function does not return on time.

SREC_CONNECTION_ERROR

The connection to the remote Runtime Manager cannot be established.

SREC_WRONG_ARGUMENT

IP, port or IInstance pointer is invalid.

SREC_WRONG_VERSION

The version of the API is not compatible with Runtime.

See Compatibility during upgrade (Page 33).

ISimulationRuntimeManager* api = ZERO; ERuntimeErrorCode result = Initialize(&api);

IRemoteRuntimeManager * client = ZERO;
if (result == SREC_OK) {
result = api->RemoteConnect(192,203,145,144, 4444, &client); }

140

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

Table 7- 75 RemoteConnect() - .NET (C#)

Syntax Parameters

IRemoteRuntimeManager RemoteConnect( string in_ConnectionString
); IRemoteRuntimeManager RemoteConnect(
SIP in_IP, UInt16 in_Port ); IRemoteRuntimeManager RemoteConnect( Byte in_IP3, Byte in_IP2, Byte in_IP1, Byte in_IP0, UInt16 in_Port );
· Byte in_IP3:

First part of the IP address of the remote PC. · Byte in_IP2:

Second part of the IP address of the remote PC. · Byte in_IP1:

Third part of the IP address of the remote PC. · Byte in_IP0:

Last part of the IP address of the remote PC. · string in_ConnectionString:

A string in the form of "<IP3>.<IP2>.<IP1>.<IP0>:<Port>" Example: "182.203.145.144:4444".
· SIP in_IP:

IP address of the remote PC. · UInt16 in_Port:

Return values Exceptions

The port that is open on the remote PC.

IRemoteRuntimeManager: Interface to the remote Runtime Manager.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.ConnectionError

Connection to the remote Runtime Manager cannot be established.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument IP or port is invalid.

ERuntimeErrorCode.WrongVersion

The version of the API is not compatible with Runtime.

See Compatibility during upgrade (Page 33).

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

141

User interfaces (API) 7.5 API ISimulationRuntimeManager

See also

Tag list (Page 176) Data types (Page 311)

7.5.3.1

RunAutodiscover()

Description

This function identifies all Runtime Managers that are on the network and that are ready to establish a remote connection.

Note The function identifies Runtime Managers as of PLCSIM Advanced V3.0.

Requirements

 The Runtime Manager must be running and allowing remote connections.
 The firewall of the remote PC must not block traffic on the selected UDP port.
 Devices in the local network (such as routers, switches, firewalls) must not block multicast packets of the selected class.

RunAutodiscover()
The function starts the identification of the Runtime Manager in the network.

Table 7- 76 RunAutodiscover() - Native C++

Syntax Parameters

ERuntimeErrorCode RunAutodiscover( UINT32 in_Timeout = 2000
); · UINT32 in_Timeout

A timeout value in milliseconds that defines how long the local Runtime Manager waits for responses from the Remote Manager.

A value between 500 ms and 30000 ms is valid.

Return values

Default: 2000 ms. Runtime error code SREC_OK SREC_WRONG_ARGUMENT SREC_AUTODISCOVER_ALREADY_RUNNIN G
SREC_TIMEOUT

Condition
The function is successful.
The timeout value is outside the permissible range.
A RunAutodiscover() call is already running in the background. Wait for the message SRRSI_DISCOVER_FINISHED in the callback function.
See EAutodiscoverType (Page 388).
Communication errors in the local Runtime Manager.

142

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

Table 7- 77 RunAutodiscover() - .NET (C#)

Syntax Parameters

void RunAutodiscover( UInt32 in_Timeout = 2000
); · UInt32 in_Timeout

A timeout value in milliseconds that defines how long the local Runtime Manager waits for responses from the Remote Manager.

A value between 500 ms and 30000 ms is valid.

Return values Exceptions

Default: 2000 ms.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.WrongArgument

The timeout value is outside the permissible range.

ERuntimeErrorCode.AutodiscoverAlreadyRunning

A RunAutodiscover() call is already running in the background. Wait for the message AutodiscoverFinished in the callback function.

See EAutodiscoverType (Page 388).

ERuntimeErrorCode.Timeout

Communication errors in the local Runtime Manager.

7.5.4

Events for ISimulationRuntimeManager

Events for runtime instances and remote connections
The following events are triggered for the ISimulationRuntimeManager interface:

Table 7- 78 Events for ISimulationRuntimeManager

Event OnConfigurationChanged (Page 144)
OnRuntimeManagerLost (Page 147) RunAutodiscover (Page 150)

Cause The Runtime Manager configuration has changed: · A new instance is registered. · An instance is removed. · A connection to a client is established. The Control Panel uses such an event to update the list of available instances. The connection to the Runtime Manager is interrupted.
The network searches for Runtime Managers which are ready to establish a remote connection.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

143

User interfaces (API) 7.5 API ISimulationRuntimeManager

7.5.4.1

OnConfigurationChanged events

OnConfigurationChanged
Registers or unregisters an event handler method.

Table 7- 79 OnConfigurationChanged - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SRCC_UINT32_UINT32_INT32 OnConfigurationChanged;
None. See Delegate_SRCC_UINT32_UINT32_INT32 (Page 327). None None The event handler method runs in a separate thread.

RegisterOnConfigurationChangedCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. The registration of a new callback function causes the previous callback function to be deleted.

Table 7- 80 RegisterOnConfigurationChangedCallback() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangedCallback( EventCallback_SRCC_UINT32_UINT32_INT32 in_CallbackFunction
); · EventCallback_SRCC_UINT32_UINT32_INT32 in_CallbackFunction:

Return values Note

A callback function to subscribe to an event. See EventCallback_SRCC_UINT32_UINT32_INT32 (Page 313). None
The event handler method runs in a separate thread.

144

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

RegisterOnConfigurationChangedEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registration of a new event object causes the previous event object to be deleted.

Table 7- 81 RegisterOnConfigurationChangedEvent() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangedEvent(); void RegisterOnConfigurationChangedEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

Table 7- 82 RegisterOnConfigurationChangedEvent() - .NET (C#)

Syntax Parameters Return values

void RegisterOnConfigurationChangedEvent();
None None

UnregisterOnConfigurationChangedCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 83 UnregisterOnConfigurationChangedCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangedCallback();
None None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

145

User interfaces (API) 7.5 API ISimulationRuntimeManager

UnregisterOnConfigurationChangedEvent()
Unregisters the event object.

Table 7- 84 UnregisterOnConfigurationChangedEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangedEvent();
None None

Table 7- 85 UnregisterOnConfigurationChangedEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnConfigurationChangedEvent();
None None

WaitForOnConfigurationChangedEvent()
The function blocks the program until the registered event object is set to the signaled state or the timeout interval is exceeded.

Table 7- 86 WaitForOnConfigurationChangedEvent() - Native C++

Syntax Parameters

bool WaitForOnConfigurationChangedEvent(); bool WaitForOnConfigurationChangedEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

Table 7- 87 WaitForOnConfigurationChangedEvent - .NET (C#)

Syntax Parameters

bool WaitForOnConfigurationChangedEvent(); bool WaitForOnConfigurationChangedEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

146

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

7.5.4.2

OnRuntimeManagerLost events

OnRuntimeManagerLost
Registers or unregisters an event handler method.

Table 7- 88 OnRuntimeManagerLost - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_Void OnRuntimeManagerLost;
None. See Delegate_Void (Page 327). None None The event handler method runs in a separate thread.

RegisterOnRuntimeManagerLostCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. The registration of a new callback function causes the previous callback function to be deleted.

Table 7- 89 RegisterOnRuntimeManagerLostCallback() - Native C++

Syntax Parameters

void RegisterOnRuntimeManagerLostCallback( EventCallback_VOID in_CallbackFunction
); · EventCallback_VOID in_CallbackFunction:

Return values Note

A callback function that subscribes to the event. See EventCallback_VOID (Page 313). None
The event handler method runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

147

User interfaces (API) 7.5 API ISimulationRuntimeManager

RegisterOnRuntimeManagerLostEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registration of a new event object causes the previous event object to be deleted.

Table 7- 90 RegisterOnRuntimeManagerLostEvent() - Native C++

Syntax Parameters

void RegisterOnRuntimeManagerLostEvent(); void RegisterOnRuntimeManagerLostEvent(
HANDLE* in_Event );
· None:

An internal event handle is registered. · HANDLE* in_Event:

Return values

A user-specific event handle is registered. None

Table 7- 91 RegisterOnRuntimeManagerLostEvent() - .NET (C#)

Syntax Parameters Return values

void RegisterOnRuntimeManagerLostEvent();
None None

UnregisterOnRuntimeManagerLostCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 92 UnregisterOnRuntimeManagerLostCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnRuntimeManagerLostCallback();
None None

148

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.5 API ISimulationRuntimeManager

UnregisterOnRuntimeManagerLostEvent()
Unregisters the event object.

Table 7- 93 UnregisterOnRuntimeManagerLostEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnRuntimeManagerLostEvent();
None None

Table 7- 94 UnregisterOnRuntimeManagerLostEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnRuntimeManagerLostEvent();
None None

WaitForOnRuntimeManagerLostEvent()
The function will block the program until the registered event object is set to the signaled state or the timeout interval is exceeded.

Table 7- 95 WaitForOnRuntimeManagerLostEvent() - Native C++

Syntax Parameters

bool WaitForOnRuntimeManagerLostEvent(); bool WaitForOnRuntimeManagerLostEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined timeout interval.

Table 7- 96 WaitForOnRuntimeManagerLostEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnRuntimeManagerLostEvent(); bool WaitForOnRuntimeManagerLostEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined timeout interval.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

149

User interfaces (API) 7.5 API ISimulationRuntimeManager

7.5.4.3

OnAutodiscoverData events

OnAutodiscoverData
Registers or unregisters an event handler method.

Table 7- 97 OnAutodiscoverData - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SRRSI_AD OnAutodiscoverData
None. See Delegate_SRRSI_AD (Page 328). None None The event handler method runs in a separate thread.

RegisterOnAutodiscoverCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. The registration of a new callback function causes the previous callback function to be deleted.

Table 7- 98 RegisterOnAutodiscoverCallback() - Native C++

Syntax Parameters

void RegisterOnAutodiscoverCallback( EventCallback_SRRSI_AD in_CallbackFunction
); · EventCallback_SRRSI_AD in_CallbackFunction:

Pointer to a user-defined callback function.

Return values

See EventCallback_SRRSI_AD (Page 314). None

UnregisterOnAutodiscoverCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 99 UnregisterOnAutodiscoverCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnAutodiscoverCallback( ); None None

150

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.6

API IInstances

User interfaces (API) 7.6 API IInstances

7.6.1

Interfaces - Information and settings

Dispose()

Deletes the managed interface and unloads the native components of the user interfaces.

Table 7- 100 Dispose() - .NET (C#)

Syntax Parameters Return values

void Dispose()
None None

GetID() / ID { get; }
Returns the instance ID. The ID is assigned by Runtime Manager when the instance is registered.

Table 7- 101 GetID() - Native C++

Syntax Parameters Return values

INT32 GetID();
None INT32: Instance ID

Table 7- 102 ID { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

UInt32 ID { get; }
None Uint32: Instance ID None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

151

User interfaces (API) 7.6 API IInstances

GetName() / Name { get; }
Returns the name of the instance.

Table 7- 103 GetName() - Native C++

Syntax Parameters

ERuntimeErrorCode GetName( WCHAR inout_Name[], UINT32 in_ArrayLength
); · WCHAR inout_Name[]:

A user-allocated storage for the name of the instance. The field length should be at least as long as DINSTANCE_NAME_MAX_LENGTH. See Definitions and constants (Page 340).
· UINT32 in_ArrayLength:

Return values Example C++

Field length (Wide character)

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_WRONG_ARGUMENT

The name does not fit in the storage.

ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);

IInstance* psa = NULL; if (result == SREC_OK) {
result = api->RegisterInstance(&psa); }

WCHAR name[DINSTANCE_NAME_MAX_LENGTH]; if (result == SREC_OK) {
result = psa->GetName(name, DINSTANCE_NAME_MAX_LENGTH);
}

Table 7- 104 Name { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

string Name { get; }

None

Name of the instance.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

152

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

GetCPUType()
Returns the CPU type of the virtual controller.

Table 7- 105 GetCPUType() - Native C++

Syntax Parameters Return values

ECPUType GetCPUType();
None An enumeration element that defines the CPU type. See ECPUType (Page 371).

SetCPUType()

Sets the CPU type of the virtual controller. A change of CPU type occurs only when the controller is restarted.

Table 7- 106 SetCPUType() - Native C++

Syntax Parameters

void SetCPUType(ECPUType in_Value); · ECPUType in_Value:

Defines which CPU type is simulated at the start of the instance.

Return values

When a different CPU type is loaded via STEP 7 or from the Virtual Memory Card, this CPU type applies.
None

CPUType { get; set; }
Returns or sets the CPU type of the virtual controller. A change of CPU type occurs only when the controller is restarted.
When a different CPU type is loaded via STEP 7 or from the Virtual Memory Card, this CPU type applies.

Table 7- 107 CPUType { get; set; } - .NET (C#)

Syntax Parameters Return values Exceptions

ECPUType CPUType { get; set; }
None An enumeration element that defines the CPU type. None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

153

User interfaces (API) 7.6 API IInstances

GetCommunicationInterface()
Returns the communication interface of the virtual controller: Local communication (Softbus) or TCPIP. A change of communication interface occurs only when the controller is restarted. All instances that are started must use the same communication interface.
PowerOn is prevented if a communication interface that is not used by the started instances is selected.

Table 7- 108 GetCommunicationInterface() - Native C++

Syntax Parameters Return values

ECommunicationInterface GetCommunicationInterface(); None · SRCI_NONE

Cannot be selected. Is returned if the instance interface is no longer valid. · SRCI_SOFTBUS

Is returned if the virtual controller uses the Softbus. · SRCI_TCPIP

Is returned if the virtual controller communicates over the virtual adapter.

SetCommunicationInterface()
Sets the communication interface of the virtual controller: Local communication (Softbus) or TCPIP. A change of communication interface occurs only when the controller is restarted. All instances that are started must use the same communication interface.
PowerOn is prevented if a communication interface that is not used by the started instances is selected.

Table 7- 109 SetCommunicationInterface() - Native C++

Syntax Parameters

void SetCommunicationInterface(ECommunicationInterface in_Value); · SRCI_NONE

Cannot be selected. · SRCI_SOFTBUS

Is set to activate communication via Softbus. · SRCI_TCPIP

Return values

Is set to activate communication over the virtual adapter. None

154

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

CommunicationInterface { get; set; }
Sets or returns the communication interface of the virtual controller: Local communication (Softbus) or TCPIP. A change of communication interface occurs only when the controller is restarted. All instances that are started must use the same communication interface.
PowerOn is prevented if a communication interface that is not used by the started instances is selected.

Table 7- 110 CommunicationInterface { get; set; } - .NET (C#)

Syntax Parameters Return values

ECommunicationInterface CommunicationInterface { get; set; } None · ECommunicationInterface.None

Cannot be selected. Is returned if the instance interface is no longer valid. · ECommunicationInterface.Softbus

Is returned if the virtual controller uses the Softbus. · ECommunicationInterface.TCPIP

Exceptions

Is returned if the virtual controller communicates over the virtual adapter. None

GetInfo() / Info { get; }
Returns a structure that provides information about the instance.

Table 7- 111 GetInfo() - Native C++

Syntax Parameters Return values

SInstanceInfo GetInfo();
None SInstanceInfo: A structure that provides information about the instance. See SInstanceInfo (Page 349).

Table 7- 112 Info { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

SInstanceInfo Info { get; }
None SInstanceInfo: A structure that provides information about the instance. None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

155

User interfaces (API) 7.6 API IInstances
UnregisterInstance()
Unregisters this instance from Runtime Manager.
Note Loss of the interfaces Other applications that are connected to this instance will lose their interface to this instance.

Table 7- 113 UnregisterInstance() - Native C++

Syntax Parameters Return values

ERuntimeErrorCode UnregisterInstance();

None Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time.

Table 7- 114 UnregisterInstance() - .NET (C#)

Syntax Parameters Return values Exceptions

void UnregisterInstance();

None

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

156

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.2

Controller - Information and settings

GetControllerName() / ControllerName { get; }
Returns the downloaded name of the virtual controller.

Table 7- 115 GetControllerName() - Native C++

Syntax Parameters

ERuntimeErrorCode GetControllerName( WCHAR inout_Name[], UINT32 in_ArrayLength
); · WCHAR inout_Name[]:

A user-allocated storage for the name. · UINT32 in_ArrayLength:

Return values

The length of the storage. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INDEX_OUT_OF_RANGE

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The name does not fit in the storage.

Table 7- 116 ControllerName { get; } - .NET (C#)

Syntax Parameters Return values
Exceptions

string ControllerName { get; }

None

string:

The downloaded name of the virtual controller.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

157

User interfaces (API) 7.6 API IInstances

GetControllerShortDesignation() / ControllerShortDesignation { get; }
Returns the downloaded short designation of the virtual controller.

Table 7- 117 GetControllerShortDesignation() - Native C++

Syntax Parameters

ERuntimeErrorCode GetControllerShortDesignation( WCHAR inout_ShortDesignation[], UINT32 in_ArrayLength
); · WCHAR inout_ShortDesignation[]:

A user-allocated storage for the short designation. · UINT32 in_ArrayLength:

Return values

The length of the storage. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INDEX_OUT_OF_RANGE

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The name does not fit in the storage.

Table 7- 118 ControllerShortDesignation { get; } - .NET (C#)

Syntax Parameters Return values
Exceptions

string ControllerShortDesignation { get; }

None

string:

The downloaded short designation of the virtual controller.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

GetControllerIPCount()
Returns the number of configured IP addresses of the virtual controller. If the function fails, the return value is 0.

Table 7- 119 GetControllerIPCount() - Native C++

Syntax Parameters Return values

UINT32 GetControllerIPCount();
None INT32: Number of configured IP addresses of the virtual controller.

158

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

GetControllerIP() / ControllerIP { get; }
Returns a configured IP address of the instance.

Table 7- 120 GetControllerIP() - Native C++

Syntax Parameters

UIP GetControllerIP(); UIP GetControllerIP(
UINT32 in_Index );
· WCHAR in_Index:

Return values

The index of the IP address you want to receive. The index must be less than the value you receive from GetControllerIPCount(). The default setting is 0.
UIP: IP address of the virtual controller. If the function fails, the return value is 0.

Table 7- 121 ControllerIP { get; } - .NET (C#)

Syntax Parameters Return values
Exceptions

string[] ControllerIP { get; }
None string: All downloaded IP addresses of the virtual controller. If the function fails, the field is empty. None

GetControllerIPSuite4() / ControllerIPSuite4 { get; }
Returns the IP suite instance. If the "Softbus" communication interface is used, the subnet mask and default gateway are 0.

Table 7- 122 GetControllerIPSuite4() Native C++

Syntax Parameters

SIPSuite4 GetControllerIPSuite4(); SIPSuite4 GetControllerIPSuite4(
UINT32 in_Index );
· WCHAR in_Index:

Return values

The index of the IP address you want to receive. The index must be less than the value you receive from GetControllerIPCount(). The default setting is 0.
SIPSuite4: The IP suite of the virtual controller. If the function fails, the return values are 0.

Table 7- 123 ControllerIPSuite4 { get; } - .NET (#)

Syntax Parameters Return values
Exceptions

SIPSuite4[] ControllerIPSuite4 { get; };
None SIPSuite4[]: All downloaded IP suites of the virtual controller. If the function fails, the field is empty. None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

159

User interfaces (API) 7.6 API IInstances

SetIPSuite()

Sets the IP suite of the network interface of a virtual controller.

Table 7- 124 SetIPSuite() - Native C++

Syntax Parameters

ERuntimeErrorCode SetIPSuite( UINT32 in_InterfaceID, SIPSuite4 in_IPSuite, bool in_IsRemanent
); · UINT32 in_InterfaceID:

The ID of the network interface. · SIPSuite4 in_IPSuite:

The IP suite that is to be assigned to the network interface. The IP suite contains the IP address, the subnet mask and the standard gateway.

If the communication interface is "Softbus", the subnet mask and standard gateway are ignored.
· bool in_IsRemanent:

If true, the IP suite is saved after restart of the virtual controller.

Return values

If the communication interface is "Softbus", this flag is ignored.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_DOES_NOT_EXIST

There is no network interface with this ID.

SREC_INVALID_OPERATING_STATE

The virtual controller has not yet completed the boot process or is already in the shutdown phase.

Table 7- 125 SetIPSuite() - .NET (C#)

Syntax Parameters

void SetIPSuite( UInt32 in_InterfaceID, SIPSuite4 in_IPSuite, bool in IsRemanent );
· UInt32 in_InterfaceID:

The ID of the network interface. · SIPSuite4 in_IPSuite:

If the communication interface is "Softbus", the subnet mask and standard gateway are ignored.
· bool in_IsRemanent:

If true, the IP suite is saved after restart of the virtual controller.

If the communication interface is "Softbus", this flag is ignored.

160

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.DoesNotExist There is no network interface with this ID.

ERuntimeErrorCode.InvalidOperatingState

The virtual controller has not yet completed the boot process or is already in the shutdown phase.

GetStoragePath()
Returns the full directory in which the instance stores its data.

Table 7- 126 GetStoragePath() - Native C++

Syntax Parameters

ERuntimeErrorCode GetStoragePath( WCHAR inout_StoragePath[], UINT32 in_ArrayLength
); · WCHAR inout_StoragePath[]:

A user-allocated storage for the storage path. The length of the array should be at least as long as DSTORAGE_PATH_MAX_LENGTH. See Data types (Page 311).
· UINT32 in_ArrayLength:

Return values

Length of the array (Wide character)

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INDEX_OUT_OF_RANGE

The path does not fit in the storage.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

161

User interfaces (API) 7.6 API IInstances

SetStoragePath()
Sets the full path of the directory in which the instance stores its data. This can also be a network share.
Set the path before you start the instance. A change to the path takes effect only when the controller is restarted.
If no path is set, the default setting: <My Documents>\Siemens\Simatic\Simulation\Runtime\Persistence\<Instance Name> is used.

Table 7- 127 SetStoragePath() - Native C++

Syntax Parameters

ERuntimeErrorCode SetStoragePath( WCHAR* in_StoragePath
); · WCHAR* in_StoragePath:

Return values

Full name of the storage path. The length of the name must be less than DSTORAGE_PATH_MAX_LENGTH. See Data types (Page 311).

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INDEX_OUT_OF_RANGE

The length of the path exceeds the limit.

SREC_WRONG_ARGUMENT

The path contains invalid characters.

StoragePath { get; set; }
Returns or sets the full path of the directory in which the instance stores its retentive data. This can also be a network share.
Set the path before you start the instance. A change to the path takes effect only when the controller is restarted.
If no path is set, the default setting: <My Documents>\Siemens\Simatic\Simulation\Runtime\Persistence\<Instance Name> is used.

Table 7- 128 StoragePath { get; set; } - .NET (C#)

Syntax Parameters Return values Exceptions

string StoragePath { get; set; }

None

string: The configured storage path.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.WrongArgument

The length of the path exceeds the limit. The path contains invalid characters.

162

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ArchiveStorage()
The user program, the hardware configuration and the retentive data is stored in a file, the Virtual SIMATIC Memory Card. ArchiveStorage() stores this file as a ZIP file. The instance of the virtual controller must be in OFF operating state for this.

Table 7- 129 ArchiveStorage() - Native C++

Syntax Parameters

ERuntimeErrorCode ArchiveStorage( WCHAR* in_FullFileName
); · WCHAR in_FullFileName:

Return values

The full path to the ZIP file. The path relates to directories of the computer

where the API is being called.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INVALID_OPERATING_STATE

The instance is not in OFF operating state.

SREC_INVALID_ARCHIVE_PATH

The archive path is invalid.

SREC_CREATE_DIRECTORIES_FAILED

The directory for the ZIP file could not be created.

SREC_ARCHIVE_STORAGE_FAILED

The ZIP file could not be created.

SREC_STORAGE_TRANSFER_ERROR

Error during network data transfer. Memory data between client and server computers do not match.

Table 7- 130 ArchiveStorage() - .NET (C#)

Syntax Parameters

void ArchiveStorage( string in_FullFileName
); · string in_FullFileName:

Return values Exceptions

The full path to the ZIP file. The path relates to directories of the computer

where the API is being called.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InvalidOperatingState

The instance is not in OFF operating state.

ERuntimeErrorCode.InvalidArchivePath ERuntimeErrorCode.CreateDirectoriesFailed

The archive path is invalid.
The directory for the ZIP file could not be created.

ERuntimeErrorCode.ArchiveStorageNotCreated ERuntimeErrorCode.StorageTransferError

The ZIP file could not be created.
Error during network data transfer. Memory data between client and server computers do not match.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

163

User interfaces (API) 7.6 API IInstances

RetrieveStorage()
RetrieveStorage() creates a Virtual SIMATIC Memory Card from the archived ZIP file. The virtual controller must be in OFF operating state for this.

Table 7- 131 RetrieveStorage() - Native C++

Syntax Parameters

ERuntimeErrorCode RetrieveStorage( WCHAR* in_FullFileName
); · WCHAR* in_FullFileName:

Return values

The full path to the ZIP file. The path relates to directories of the computer

where the API is being called.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INVALID_OPERATING_STATE

The instance is not in OFF operating state.

SREC_INVALID_ARCHIVE_PATH

The archive path is invalid.

SREC_DELETE_EXISTING_STORAGE_FAI LED

The old storage cannot be deleted.

SREC_RETRIEVE_STORAGE_FAILURE

The ZIP file cannot be unzipped.

SREC_STORAGE_TRANSFER_ERROR

Error during network data transfer. Memory data between client and server computers do not match.

Table 7- 132 RetrieveStorage() - .NET (C#)

Syntax Parameters

void RetrieveStorage( string in_FullFileName
); · string in_FullFileName:

Return values Exceptions

The full path to the ZIP file. The path relates to directories of the computer where the API is being called.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InvalidOperatingState

The instance is not in OFF operating state.

ERuntimeErrorCode.InvalidArchivePath ERuntimeErrorCode.DeleteExistingStorageFailed ERuntimeErrorCode.RetrieveStorageFailure ERuntimeErrorCode.StorageTransferError

The archive path is invalid.
The old storage cannot be deleted.
The ZIP file cannot be unzipped.
Error during network data transfer. Memory data between client and server computers do not match.

164

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

CleanupStoragePath()
The function deletes the directory with the Virtual SIMATIC Memory Card of a local instance or a remote instance. To do this, the function checks whether required and invalid files are available. Even if the directory is missing, the function is considered successful.
To make sure that the correct directory is deleted, the function checks if there are any files that need to be present in the Virtual SIMATIC Memory Card:
 "../SIMATIC_MC/sim_hwdb.ini"
 "../SIMATIC_MC/SIMATIC.S7S/"
 "../SIMATIC_MC/RData/"
To permanently delete the directory, only the following directories with files are also allowed:
 "../CrashDump/"
 "../Traces/"
The instance must be in OFF operating state ("PowerOff").

Table 7- 133 CleanupStoragePath() - Native C++

Syntax Return values

ERuntimeErrorCode CleanupStoragePath( );

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INVALID_OPERATING_STATE

The instance is not in OFF operating state.

SREC_DELETE_EXISTING_STORAGE_FAI LED

The directory with the memory cannot be

deleted.

SREC_INVALID_STORAGE

The memory is invalid. It contains files or directories that are not permitted.

Table 7- 134 CleanupStoragePath() - .NET (C#)

Syntax Return values Exceptions

void CleanupStoragePath( );

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InvalidOperatingState

The instance is not in OFF operating state.

ERuntimeErrorCode.DeleteExistingStorageFailed

The directory with the memory cannot be

deleted.

SREC_INVALID_STORAGE

The memory is invalid. It contains files or directories that are not permitted.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

165

User interfaces (API) 7.6 API IInstances

7.6.3

Operating state

PowerOn()

The function creates the process for the Simulation Runtime instance and starts the firmware of the virtual controller.

Table 7- 135 PowerOn() - Native C++

Syntax Parameters

ERuntimeErrorCode PowerOn(); ERuntimeErrorCode PowerOn(
UINT32 in_Timeout_ms ); · UINT32 in_Timeout_ms:

Return values

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.
­ Expected operating states if this function is successful: { SROS_STOP , SROS_RUN }

Runtime error code SREC_OK SREC_INTERFACE_REMOVED SREC_TIMEOUT SREC_ERROR_LOADING_DLL
SREC_STORAGE_PATH_ALREADY_IN_USE SREC_NO_STORAGE_PATH_SET
SREC_WARNING_ALREADY_EXISTS SREC_VIRTUAL_SWITCH_MISCONFIGURE D SREC_INSTANCE_NOT_RUNNING SREC_WARNING_UNSUPPORTED_PCAP_DR IVER

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The expected operating state does not occur on time.
The "Siemens.Simatic.Simulation.Runtime.Instan ce.exe" cannot load the "Siemens.Simatic.PlcSim.Vplc1500.dll".
The selected path for this instance is already being used by another instance.
The path could not be created. The length of the DSTORAGE_PATH_MAX_LENGTH characters might be exceeded.
Warning: The instance is started.
The virtual switch is configured incorrectly.
The process of the virtual controller is no longer running.
Warning: The PCAP driver used is not supported. PLCSIM Advanced supports WinPcap V4.1.3.
PLCSIM Advanced still tries to boot, but there may be limitations in TCP/IP communication.

166

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

SREC_WARNING_TRIAL_MODE_ACTIVE SREC_WARNING_RUNNING_ON_TIA_PORT AL_TEST_SUITE SREC_NOT_EMPTY SREC_COMMUNICATION_INTERFACE_NOT _AVAILABLE

Warning: No license available. You can use the instance without restrictions with the Trial License. Afterwards, the instance is shut down.
Warning: No valid license is available, but a "TIA Portal Test Suite" license.
PLCSIM Advanced starts with this license. A download from the TIA Portal is possible, but the instance terminates without feedback if the download was not made from the TIA Portal Test Suite.
Warning: No valid license for PLCSIM Advanced is available, but a "TIA Portal Test Suite" license.
If this is the case, power-up from the Virtual SIMATIC Memory Card is not supported.
For local communication via Softbus
PLCSIM Advanced cannot connect to the Softbus.
Solution
· Try again to establish the connection.
· Close PLCSIM Advanced and the TIA Portal and restart the applications.
· Reboot the PC.
· Repair the PLCSIM Advanced installation.
For TCP/IP communication
Another application is connected to the Softbus on your PC.
Solution
· Close all SIMATIC applications, e.g. TIA Portal, WinCC, PLCSIM.
· Reboot the PC.
· Repair the PLCSIM Advanced installation.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

167

User interfaces (API) 7.6 API IInstances

Table 7- 136 PowerOn() - .NET (C#)

Syntax Parameters

ERuntimeErrorCode PowerOn(); ERuntimeErrorCode PowerOn(
UInt32 in_Timeout_ms ); · UInt32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values

Expected operating states when this function is successful:

{ EOperatingState.Run, EOperatingState.Stop }

Runtime error code

Condition

ERuntimeErrorCode.OK

The function is successful.

ERuntimeErrorCode.WarningAlreadyExists ERuntimeErrorCode.WarningUnsupportedPcapDrive r

Warning: The instance is started.
Warning: The PCAP driver used is not supported. PLCSIM Advanced supports WinPcap V4.1.3.

PLCSIM Advanced still tries to boot, but there may be limitations in TCP/IP communication.

ERuntimeErrorCode.WarningTrialModeActive

Warning: No license available. You can use the instance without restrictions with the Trial License. Afterwards, the instance is shut down.

ERuntimeErrorCode.WarningRunningOnTiaPortalTe

Warning: No valid license is available,

stSuite

but a "TIA Portal Test Suite" license.

PLCSIM Advanced starts with this license. A download from the TIA Portal is possible, but the instance terminates without feedback if the download was not made from the TIA Portal Test Suite.

ERuntimeErrorCode.NotEmpty

Warning: No valid license for PLCSIM Advanced is available, but a "TIA Portal Test Suite" license.

If this is the case, power-up from the Virtual SIMATIC Memory Card is not supported.

168

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Exceptions

ERuntimeErrorCode.CommunicationInterfaceNotAv ailable

For local communication via Softbus
PLCSIM Advanced cannot connect to the Softbus.

Solution

· Try again to establish the connection.

· Close PLCSIM Advanced and the TIA Portal and restart the applications.

· Reboot the PC.

· Repair the PLCSIM Advanced installation.
For TCP/IP communication
Another application is connected to the Softbus on your PC.
Solution

· Close all SIMATIC applications, e.g. TIA Portal, WinCC, PLCSIM.

· Reboot the PC.

· Repair the PLCSIM Advanced installation.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The expected operating state does not occur on time.

ERuntimeErrorCode.ErrorLoadingDll

The "Siemens.Simatic.Simulation. Runtime.Instance.exe" cannot load the "Siemens.Simatic.PlcSim.Vplc1500.dll".

ERuntimeErrorCode.StoragePathAlreadyInUse

The selected path for this instance is already being used by another instance.

ERuntimeErrorCode.NoStoragePathSet

The path could not be created. The length of the DSTORAGE_PATH_MAX_LENGTH characters might be exceeded.

ERuntimeErrorCode.VirtualSwitchMisconfigured

The virtual switch is configured incorrectly.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is no longer running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

169

User interfaces (API) 7.6 API IInstances

PowerOff()

Shuts down the Simulation Runtime and closes its process.

Table 7- 137 PowerOff() - Native C++

Syntax Parameters

ERuntimeErrorCode PowerOff(); ERuntimeErrorCode PowerOff(
UINT32 in_Timeout_ms );
· UINT32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values

Expected operating state when this function is successful:

{ SROS_OFF }

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The expected operating state does not occur on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

Table 7- 138 PowerOff() - .NET (C#)

Syntax Parameters

void PowerOff(); void PowerOff(
UInt32 in_Timeout_ms ); · UInt32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values Exceptions

Expected operating state when this function is successful:

{ EOperatingState.Stop }

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The expected operating state does not occur on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

170

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Run()

User interfaces (API) 7.6 API IInstances

Calls on the virtual controller to change to RUN operating state.

Table 7- 139 Run() - Native C++

Syntax Parameters

ERuntimeErrorCode Run(); ERuntimeErrorCode Run(
UINT32 in_Timeout_ms ); · UINT32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values

Expected operating states if this function is successful:

{ SROS_STOP , SROS_RUN }

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The expected operating state does not occur on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

Table 7- 140 Run() - .NET (C#)

Syntax Parameters

void Run(); void Run(
Uint32 in_Timeout_ms );
· UInt32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values Exceptions

Expected operating states when this function is successful:

{ EOperatingState.Run }

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The expected operating state does not occur on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

171

User interfaces (API) 7.6 API IInstances

Stop()

Calls on the virtual controller to change to STOP operating state.

Table 7- 141 Stop() - Native C++

Syntax Parameters

ERuntimeErrorCode Stop(); ERuntimeErrorCode Stop(
UINT32 in_Timeout_ms ); · UINT32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values

Expected operating state when this function is successful:

{ SROS_STOP }

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The expected operating state does not occur on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

Table 7- 142 Stop() - .NET (C#)

Syntax Parameters

void Stop(); void Stop(
bool in_IsSynchronous ); · UInt32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values Exceptions

Expected operating state if this function is successful:

{ EOperatingState.Stop }

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The expected operating state does not occur on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

172

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

GetOperatingState() / OperatingState { get; }
Returns the operating state of the virtual controller. When the operating state changes, the OnOperatingStateChanged() (Page 274) event is triggered. For details about the operating state, see Data types (Page 369).

Table 7- 143 GetOperatingState() - Native C++

Syntax Parameters Return values

EOperatingState GetOperatingState();
None
· SROS_INVALID_OPERATING_STATE: If the function fails.
· SROS_OFF: If the Simulation Runtime instance is not running.
· SROS_BOOTING: If PowerOn() was called while in this state and the virtual controller is not yet ready to start the user program.
· SROS_STOP: If the virtual controller is in STOP state.
· SROS_STARTUP: If the user program is currently changing from STOP to RUN.
· SROS_RUN: If the user program is running.
· SROS_FREEZE:

If the user program is being stopped (Freeze status).
· SROS_HOLD: If the user program is set to HOLD when the breakpoint is reached.
· SROS_SHUTTING_DOWN: If PowerOff() was called but the virtual controller is still in the Shutdown phase.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

173

User interfaces (API) 7.6 API IInstances

Table 7- 144 OperatingState { get; } - .NET (C#)

Syntax Parameters Return values

EOperatingState OperatingState { get; }
None
· EOperatingState.InvalidOperatingState: If the function fails.
· EOperatingState.Off: If the Simulation Runtime instance is not running.
· EOperatingState.Booting: If PowerOn() was called while in this state and the virtual controller is not yet ready to start the user program.
· EOperatingState.Stop: If the virtual controller is in STOP state.
· EOperatingState.Startup: If the user program is currently changing from STOP to RUN.
· EOperatingState.Run: If the user program is running.
· EOperatingState.Freeze: If the user program is being stopped (Freeze status).
· EOperatingState.Hold: If the user program is set to HOLD when the breakpoint is reached.
· EOperatingState.ShuttingDown: If PowerOff() was called but the virtual controller is still in the Shutdown phase.

174

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

MemoryReset()

Shuts down the virtual controller, closes its processes and performs a restart.

Table 7- 145 MemoryReset() - Native C++

Syntax Parameters

ERuntimeErrorCode MemoryReset(); ERuntimeErrorCode MemoryReset(
UINT32 in_Timeout_ms );
· UINT32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values

Expected operating states if this function is successful:

{ SROS_STOP , SROS_RUN }

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The expected operating state does not occur on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

Table 7- 146 MemoryReset() - .NET (C#)

Syntax Parameters

void MemoryReset(); void MemoryReset(
UInt32 in_Timeout_ms ); · UInt32 in_Timeout_ms:

A timeout value in milliseconds.
­ If no timeout value is set, the function returns immediately. Subscribe to the OnOperatingStateChanged() event to find out when the operation has been completed.
­ If the value is greater than 0 (a value of 60000 is recommended), the function returns when the operation has been completed or after a timeout.

Return values Exceptions

Expected operating states when this function is successful:

{ EOperatingState.Run, EOperatingState.Stop }

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The expected operating state does not occur on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

175

User interfaces (API) 7.6 API IInstances

7.6.4

Tag list
Note Elements with data types not known to the API (EDataType.Unknown) are not included in the tag list.

UpdateTagList()
The function reads the tags from the virtual controller and writes them to the shared storage arranged by name. If the tag is an array or a structure, there are multiple entries. In the case of a structure, there is an entry for the structure itself and an additional entry for each structure element.
Entry_1: "StructName" Entry_2: "StructName.ElementName_1" .. Entry_N: "StructName.ElementName_n"
In the case of an array, in this example a two-dimensional array, there is an entry for the array itself and an additional entry for each array element.
Entry_1: "ArrayName" Entry_2: "ArrayName[a,b]", {a} and {b} correspond to the first index of the respective dimension) .. Entry_N: "ArrayName[x,y]", {x} and {y} correspond to the last index of the respective dimension)

176

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Memory for up to 500000 entries (not PLC tags) is reserved for the list. If the list becomes too large, the function returns the error/exception "NOT_ENOUGH_MEMORY".
If there are problems with the maximum number of entries and not all tags are needed, two filters can be used when refreshing the tag table.

Table 7- 147 UpdateTagList() - Native C++

Syntax Parameters

ERuntimeErrorCode UpdateTagList(); ERuntimeErrorCode UpdateTagList(
ETagListDetails in_TagListDetails ); ERuntimeErrorCode UpdateTagList(
ETagListDetails in_TagListDetails, bool in_IsHMIVisibleOnly ); ERuntimeErrorCode UpdateTagList( ETagListDetails in_TagListDetails, bool in_IsHMIVisibleOnly, WCHAR* in_DataBlockFilterList );
· ETagListDetails in_TagListDetails:

Every combination of the following four areas:

IO: Inputs and Outputs M: Bit memory CT: Counters and Timers DB: Data Blocks

The default setting is IOMCTDB.

Example: IOM reads only the tags from the area Inputs / Outputs and Bit memory.
· bool in_IsHMIVisibleOnly:

If true, only tags marked with "HMI Visible" are read. The default setting is true.
· WCHAR* in_DataBlockFilterList:

A string that includes the name of all data blocks that are supposed to be available in the tag table. The string must be in quotation marks.

Example: ""\"DB_1\", \"DB_2\" \"DB_3\"|\"DB_4\"\"DB_5\""

All characters within the quotation marks are interpreted as a DB name. If the data block does not exist in the PLC program, it is not added to the tag table memory. No error is triggered in the process.

For this list to be taken into consideration, in_DataBlockFilterList has to be unequal to NULL and in_TagListDetails has to contain "DB".

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

177

User interfaces (API) 7.6 API IInstances

Return values

Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_NOT_ENOUGH_MEMORY SREC_WARNING_ALREADY_EXISTS SREC_WRONG_ARGUMENT

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
More than 500000 entries are requested.
The tag table is current.
The syntax of in_DataBlockFilterList is invalid. The list has to be 3 characters long; the first and last character have to be a quotation mark.

Table 7- 148 UpdateTagList() - .NET (C#)

Syntax Parameters

void UpdateTagList(); void UpdateTagList(
ETagListDetails in_TagListDetails ); void UpdateTagList(
ETagListDetails in_TagListDetails, bool in_IsHMIVisibleOnly ); ERuntimeErrorCode UpdateTagList( ETagListDetails in_TagListDetails,
bool in_IsHMIVisibleOnly, string in_DataBlockFilterList );
· ETagListDetails in_TagListDetails:

Every combination of the following four areas:

IO: Inputs and Outputs M: Bit memory CT: Counters and Timers DB: Data Blocks

The default setting is IOMCTDB.

Example: IOM reads only the tags from the area Inputs / Outputs and Bit memory.
· bool in_IsHMIVisibleOnly:

If true, only tags marked with "HMI Visible" are read. The default setting is true.
· string in_DataBlockFilterList:

A string that includes the name of all data blocks that are supposed to be available in the tag table. The string must be in quotation marks.

Example: ""\"DB_1\", \"DB_2\" \"DB_3\"|\"DB_4\"\"DB_5\""

All characters within the quotation marks are interpreted as a DB name. If the data block does not exist in the PLC program, it is not added to the tag table memory. No error is triggered in the process.

For this list to be taken into consideration, in_DataBlockFilterList has to be unequal to NULL and in_TagListDetails has to contain "DB".

178

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.NotEnoughMemory

More than 500000 entries are requested.

ERuntimeErrorCode.WrongArgument

The syntax of in_DataBlockFilterList is invalid. The list has to be 3 characters long; the first and last character have to be a quotation mark.

GetTagListStatus()
Returns the current update status of the tag list storage. "inout_TagListDetails" is NONE, if the list needs to be updated.

Table 7- 149 GetTagListStatus() - Native C++

Syntax Parameters

ERuntimeErrorCode GetTagListStatus( ETagListDetails* out_TagListDetails, bool* out_IsHMIVisibleOnly
); · ETagListDetails out_TagListDetails:

Status of the tag list details. SRTLD_NONE when an update of the list is required. · bool out_IsHMIVisibleOnly:

Return values

If true, only tags marked with "HMI Visible" are available in the list.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

Table 7- 150 GetTagListStatus() - .NET (C#)

Syntax Parameters

void GetTagListStatus( out ETagListDetails out_TagListDetails, out bool out_IsHMIVisibleOnly
); · out ETagListDetails out_TagListDetails:

Status of the tag list details. ETagListDetails.None when an update of the list is required.
· out bool out_IsHMIVisibleOnly:

If true, only tags marked with "HMI Visible" are available in the list.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

179

User interfaces (API) 7.6 API IInstances

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

GetTagInfoCount()
Returns the number of entries in the tag list storage. If the function fails, the return value is 0.

Table 7- 151 GetTagInfoCount() - Native C++

Syntax Parameters Return values

UINT32 GetTagInfoCount();
None Number of entries in the tag list storage.

GetTagInfos() / TagInfos { get; }
Returns a list of all tags.

Table 7- 152 GetTagInfos() - Native C++

Syntax Parameters

ERuntimeErrorCode GetTagInfos( UINT32 in_BufferLength, STagInfo* inout_TagInfos, UINT32* out_TagCount
); · UINT32 in_BufferLength:

The number of elements that the storage can accommodate. · STagInfo* inout_TagInfos:

The user-allocated storage that accommodates the tags. · UINT32* out_TagCount:

Return values

Returns the number of tags that were written to the storage.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_INDEX_OUT_OF_RANGE

The elements do not fit in the storage.

180

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 153 TagInfos { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

STagInfo[] TagInfos { get; }

None

An array that contains all available entries of the storage.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

CreateConfigurationFile()
Writes all entries from the tag list to an XML file.

Table 7- 154 CreateConfigurationFile() - Native C++

Syntax Parameters

ERuntimeErrorCode CreateConfigurationFile( WCHAR* in_FullFileName
); · WCHAR* in_FullFileName:

Return values

Full file name of the XML file:

<Path> + <File name> + <File extension>.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The file name is invalid.

Table 7- 155 CreateConfigurationFile() - .NET (C#)

Syntax
Parameters Return values

void CreateConfigurationFile( string in_FullFileName
); None · string in_FullFileName:

Exceptions

File name of the XML file that is to be written to:

<Path> + <File name> + <File extension>.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The file name is invalid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

181

User interfaces (API) 7.6 API IInstances

7.6.5

I/O access

7.6.5.1

Synchronizing inputs and outputs

Description

In PLCSIM Advanced the complete scope of the input and output area is used (see GetAreaSize/AreaSize (Page 183)). This is also possible when no IO module is configured.
Inputs and outputs that are defined via configured IO modules are synchronized to the defined update of the process image partition (PIP).
Inputs and outputs that are not assigned to an IO module are synchronized in the cycle control point.
Note the following when synchronizing these inputs and outputs:
 Inputs can only be used as inputs.
You can write the values via the API, but values which are written via the user program (TIA Portal) are not visible in the API.
 Outputs can be used as output and as input.
You can write the values via the API and via the CPU / the user program (TIA Portal). If API and user program write to the same area, the values from the API will overwrite the vales from the user program.

182

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.5.2

I/O access via address - Reading

InputArea { get; }, MarkerArea { get; }, OutputArea { get; }
Returns an interface that you use to call the .NET functions in this section.

Table 7- 156 InputArea { get; } MarkerArea { get; } OutputArea { get; } - .NET (C#)

Syntax
Parameters Return values

IIOArea InputArea { get; } IIOArea MarkerArea { get; } IIOArea OutputArea { get; } None IIOArea: The interface is used to call the "I/O access via address" functions.

GetAreaSize() / AreaSize { get; }
Returns the size of the area in bytes.

Table 7- 157 GetAreaSize() - Native C++

Syntax Parameters

UINT32 GetAreaSize( EArea in_Area
); · EArea in_Area:

Return values

The area whose size you want to receive. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
UINT32: Size of the area in bytes. If the function was successful, the value is not equal to 0.

Table 7- 158 AreaSize { get; } - .NET (C#)

Syntax
Parameters Return values

UInt32 InputArea.AreaSize { get; } UInt32 MarkerArea.AreaSize { get; } UInt32 OutputArea.AreaSize { get; } None
Uint32: Size of the area in bytes. If the function was successful, the value is not equal to 0.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

183

User interfaces (API) 7.6 API IInstances

ReadBit()

Reads an individual bit from the area.
Note The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name (Page 199) and not via the address areas.

Table 7- 159 ReadBit() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadBit( EArea in_Area, UINT32 in_Offset, UINT8 in_Bit, bool* out_Value
); · EArea in_Area:

The area from which you want to read. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· UINT8 in_Bit:

The bit offset within the byte. The value must be between 0 and 7. · bool* out_Value:

Return values

Returns the bit value. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_INDEX_OUT_OF_RANGE SREC_WRONG_ARGUMENT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. Offset or bits are invaid. The area is invalid.

184

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 160 ReadBit() - .NET (C#)

Syntax Parameters

bool InputArea.ReadBit( UInt32 in_Offset, Byte in_Bit
); bool MarkerArea.ReadBit(
UInt32 in_Offset, Byte in_Bit ); bool OutputArea.ReadBit( UInt32 in_Offset, Byte in_Bit );
· UInt32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
· Byte in_Bit:

Return values Exceptions

The bit offset within the byte. The value must be between 0 and 7.

bool: Bit value

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invaid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

185

User interfaces (API) 7.6 API IInstances

ReadByte()

Reads an individual bit from the area.
Note The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name and not via the address areas.

Table 7- 161 ReadByte() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadByte( EArea in_Area, UINT32 in_Offset, BYTE* out Value);
· EArea in_Area:

The area from which you want to read. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· BYTE* out_Value:

Return values

Returns the byte value. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_INDEX_OUT_OF_RANGE SREC_WRONG_ARGUMENT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. Offset is invalid. The area is invalid.

Table 7- 162 ReadByte() - .NET (C#)

Syntax Parameters

Byte InputArea.ReadByte( UInt32 in_Offset
); Byte MarkerArea.ReadByte(
UInt32 in_Offset ); Byte OutputArea.ReadByte(
UInt32 in_Offset );
· UInt32 in_Offset:

Return values

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
Byte: Byte value.

186

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Exceptions

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

Offset is invalid.

ReadBytes()

Reads a byte array from the area.
Note The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name and not via the address areas.

Table 7- 163 ReadByte() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadBytes( EArea in_Area, UINT32 in_Offset, UINT32 in_BytesToRead, UINT32* out_BytesRead, BYTE inout_Values[]
); · EArea in_Area:

The area from which you want to read. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· UINT32 in_BytesToRead:

Contains the size of the value storage. · UINT32* out_BytesRead:

Returns the number of bytes that were just written to the value storage. · BYTE inout_Values[]:

The storage for the bytes that are read from the area.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

187

User interfaces (API) 7.6 API IInstances

Return values

Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_INDEX_OUT_OF_RANGE

SREC_WRONG_ARGUMENT

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset is outside the area size. No byte could be read.
The area is invalid.

Table 7- 164 ReadBytes() - .NET (C#)

Syntax Parameters

Byte[] InputArea.ReadBytes( UInt32 in_Offset, UInt32 in_BytesToRead
); Byte[] MarkerArea.ReadBytes(
UInt32 in_Offset, UInt32 in_BytesToRead ); Byte[] OutputArea.ReadBytes( UInt32 in_Offset, UInt32 in_BytesToRead );
· UInt32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
· UInt32 in_BytesToRead:

Return values Exceptions

The number of bytes to be read.

Byte[]: The read bytes.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset is outside the area size. No byte could be read.

188

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ReadSignals()

Structures and fields can be emulated through signal lists and be read by using the ReadSignals() function.
The function also takes into consideration the byte order (Endianness).
Only primitive data type signals are supported, but the function is not type-safe.

Note The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name (Page 199) and not via the address areas.

Table 7- 165 ReadSignals() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadSignals( EArea in_Area, SDataValueByAddress* inout_Signals, UINT32 in_SignalCount
); ERuntimeErrorCode ReadSignals(
EArea in_Area, SDataValueByAddressWithCheck* inout_Signals, UINT32 in_SignalCount, bool* out_SignalsHaveChanged );
· EArea in_Area:

The area from which you want to read. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· SDataValueByAddress* inout_Signals:

The signal list to be read. The result is stored in the structure. · SDataValueByAddressWithCheck* inout_Signals:

The signal list that is read. The result is stored in the structure. "ValueHasChanged" is set to true if the value of the signal has changed since the preceding call.
· UINT32 in_SignalCount:

Number of signals in the list. · bool* out_SignalsHaveChanged:

Signal error

Returns true if the value of at least one signal has changed since the preced-

ing call.

Error code

Condition

SREC_OK

The signal operation is successful.

SREC_DOES_NOT_EXIST

The entry does not exist in the stored tag table.

SREC_NOT_SUPPORTED

Access to entire structures or arrays is not supported.

SREC_TYPE_MISMATCH

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

189

User interfaces (API) 7.6 API IInstances

Return values

Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_WRONG_ARGUMENT SREC_SIGNAL_CONFIGURATION_ER ROR

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. The area is invalid. At least one signal error is in the list.

Table 7- 166 ReadSignals() - .NET (C#)

Syntax Parameters

void ReadSignals( ref SDataValueByAddress[] inout_Signals
); void ReadSignals(
ref SDataValueByAddressWithCheck[] inout_Signals out bool out_SignalsHaveChanged); );
· ref SDataValueByAddress[] inout_Signals:

The signal list to be read. · ref SDataValueByAddressWithCheck[] inout_Signals:

The signal list that is read. The result is stored in the structure. "ValueHasChanged" is set to true if the value of the signal has changed since the preceding call.
· out bool out_SignalsHaveChanged:

Return values Signal error
Exceptions

Returns true if the value of at least one signal has changed since the preceding call.

None

Runtime error code

Condition

ERuntimeErrorCode.OK

The signal operation is successful.

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invalid.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.SignalConfigurationError

At least one signal error is in the list.

190

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.5.3

I/O access via address - Writing

WriteBit()

Writes an individual bit to the area.
Note Data can be overwritten The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name (Page 221) and not via the address areas.

Table 7- 167 WriteBit() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteBit( EArea in_Area, UINT32 in_Offset, UINT8 in_Bit, bool in_Value
); · EArea in_Area:

The area that is to be written. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· UINT8 in_Bit:

The bit offset within the byte. The value must be between 0 and 7. · bool in_Value:

Return values

Bit value. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_INDEX_OUT_OF_RANGE SREC_WRONG_ARGUMENT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. Offset or bits are invaid. Area is invalid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

191

User interfaces (API) 7.6 API IInstances

Table 7- 168 WriteBit() - .NET (C#)

Syntax Parameters

void InputArea WriteBit( UInt32 in_Offset, Byte in_Bit, bool in_Value
); void MarkerArea WriteBit(
UInt32 in_Offset, Byte in_Bit, bool in_Value ); void OutputArea WriteBit( UInt32 in_Offset, Byte in_Bit, bool in_Value );
· UInt32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
· Byte in_Bit:

The bit offset within the byte. The value must be between 0 and 7. · bool in_Value:

Return values Exceptions

Bit value.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invaid.

192

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

WriteByte()

User interfaces (API) 7.6 API IInstances
Writes an individual byte to the area. Note Data can be overwritten The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name (Page 221) and not via the address areas.

Table 7- 169 WriteByte() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteByte( EArea in_Area, UINT32 in_Offset, BYTE in Value);
· EArea in_Area:

The area that is to be written. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· BYTE in_Value:

Return values

Byte value. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

SREC_INDEX_OUT_OF_RANGE SREC_WRONG_ARGUMENT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. Offset is invalid. Area is invalid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

193

User interfaces (API) 7.6 API IInstances

Table 7- 170 WriteByte() - .NET (C#)

Syntax Parameters

void InputArea.WriteByte( UInt32 in_Offset, Byte in_Value
); void MarkerArea.WriteByte(
UInt32 in_Offset, Byte in_Value ); void OutputArea.WriteByte( UInt32 in_Offset, Byte in_Value );
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
· BYTE in_Value:

Return values Exceptions

Byte value.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

Offset is invalid.

194

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WriteBytes()

Writes a byte array to the area.
Note Data can be overwritten The function allows access to the entire storage area of the virtual controller. In particular, do not write to bytes that belong to other applications or contain internal data, for example, qualifier bits for fail-safe I/O modules. Therefore, use access via the tag name (Page 221) and not via the address areas.

Table 7- 171 WriteBytes() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteBytes( EArea in_Area, UINT32 in_Offset, UINT32 in_BytesToWrite, UINT32* out_BytesWritten, BYTE in_Values[])
; · EArea in_Area:

The area that is to be written. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that GetAreaSize() returns.
· UINT32 in_BytesToWrite:

Contains the size of the array value to be written. · UINT32* out_BytesWritten:

Contains the number of bytes that were just written. · BYTE in_Values[]:

Return values

Byte array that is to be written to the area.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_INDEX_OUT_OF_RANGE

The offset is outside the area size. No byte could be written.

SREC_WRONG_ARGUMENT

The area is invalid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

195

User interfaces (API) 7.6 API IInstances

Table 7- 172 WriteBytes() - .NET (C#)

Syntax

UInt32 InputArea.WriteBytes( UInt32 in_Offset, Byte[] in_Values
); UInt32 InputArea.WriteBytes(
UInt32 in_Offset, UInt32 in_BytesToWrite, Byte[] in_Values

Parameters

); UInt32 MarkerArea.WriteBytes(
UInt32 in_Offset, Byte[] in_Values ); UInt32 MarkerArea.WriteBytes( UInt32 in_Offset, UInt32 in_BytesToWrite, Byte[] in_Values ); UInt32 OutputArea.WriteBytes( UInt32 in_Offset, Byte[] in_Values ); UInt32 OutputArea.WriteBytes( UInt32 in_Offset, UInt32 in_BytesToWrite, Byte[] in_Values );
· UINT32 in_Offset:

The byte offset within the area. The value must be between 0 and the value that AreaSize returns.
· UInt32 in_BytesToWrite:

Contains the number of bytes to be written. The value must be between 1 and the size of the array value.
· BYTE in_Value:

Return values Exceptions

Byte value.

Uint32: Contains the number of bytes that were just written.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset is outside the area size. No byte could be written.

196

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WriteSignals()

Writes multiple signals within an API call. The function also takes into consideration the byte order (Endianness).
The function supports only primitive data type signals, but it is not typical.

Note Data can be overwritten The function allows access to the entire storage area of the virtual controller. Therefore, use access via the tag name (Page 221) and not via the address areas.

Table 7- 173 WriteSignals() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteSignals( EArea in_Area, SDataValueByAddress* in_Signals, UINT32 in_SignalCount
); · EArea in_Area:

The area that is to be written. Permissible values: {SRA_INPUT, SRA_MARKER, SRA_OUTPUT}. See EArea (Page 369).
· SDataValueByAddress* inout_Signals:

The signal list to be written. · UINT32 in_SignalCount:

Signal error Return values

Number of signals in the list. Error code SREC_OK SREC_INDEX_OUT_OF_RANGE Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_SIGNAL_CONFIGURATION_ERROR SREC_WRONG_ARGUMENT

Condition The signal operation is successful. Offset or bits are invalid. Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The process of the virtual controller is not running. At least one signal error is in the list. The area is invalid.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

197

User interfaces (API) 7.6 API IInstances

Table 7- 174 WriteSignals() - .NET (C#)

Syntax Parameters

void InputArea.WriteSignals( SDataValueByAddress[] in_Signals
); void MarkerArea.WriteSignals(
SDataValueByAddress[] in_Signals ); void OutputArea.WriteSignals(
SDataValueByAddress[] in_Signals );
· SDataValueByAddress[] in_Signals:

Return values Signal error
Exceptions

The signal list to be written.

None

Error code

Condition

ERuntimeErrorCode.OK

The signal operation is successful.

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invalid.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.SignalConfigurationError

At least one signal error is in the list.

198

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.6.5.4

User interfaces (API) 7.6 API IInstances
I/O access via tag name - Reading
Individual access to IO data is used for displaying and writing values that are not refreshed regularly in a graphical user interface (GUI).
Note To simulate a regular exchange of signals, create a signal list for each set of signals. Use this signal list for all further accesses. Create a new list as soon as the set of signals changes. For the signal lists use the functions ReadSignals() and WriteSignals().

Read()

Reads the value of a PLC tag.

Table 7- 175 Read() - Native C++

Syntax Parameters

ERuntimeErrorCode Read( WCHAR* in_Tag, SDataValue* inout_Value
); · WCHAR* in_Tag:

The name of the PLC tag that is to be read. · SDataValue* inout_Value:

Contains the value and the expected type of the PLC tag. If the expected type is UNSPECIFIC, it is set to the stored type when the function was successful. The STRUCT type is not supported.

Return values

Structures and fields can be emulated through signal lists and be read by using the ReadSignals() function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_INDEX_OUT_OF_RANGE

The offset lies outside the area range. No value could be read.

SREC_DOES_NOT_EXIST

The entry does not exist in the stored tag list.

SREC_NOT_SUPPORTED

Access to entire structures or arrays is not supported.

SREC_TYPE_MISMATCH

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

SREC_NOT_UP_TO_DATE

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

199

User interfaces (API) 7.6 API IInstances

Table 7- 176 Read() - .NET (C#)

Syntax Parameters

SDataValue Read( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

SDataValue: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

200

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ReadBool()

Reads the value of a PLC tag.

Table 7- 177 ReadBool() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadBool( WCHAR* in_Tag, bool* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · bool* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 178 ReadBool() - .NET (C#)

Syntax Parameters

bool ReadBool( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

bool: Contains the value of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist The entry does not exist in the stored tag

list.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

201

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch ERuntimeErrorCode.NotUpToData

Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadInt8()

Reads the value of a PLC tag.

Table 7- 179 ReadInt8() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadInt8( WCHAR* in_Tag, INT8* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · INT8* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

202

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 180 ReadInt8() - .NET (C#)

Syntax Parameters

Int8 ReadInt8( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

Int8: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

ReadInt16()

Reads the value of a PLC tag.

Table 7- 181 ReadInt16() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadInt16( WCHAR* in_Tag, INT16* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · INT16* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

203

User interfaces (API) 7.6 API IInstances

SREC_DOES_NOT_EXIST SREC_NOT_SUPPORTED SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 182 ReadInt16() - .NET (C#)

Syntax Parameters

Int16 ReadInt16( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

Int16: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist The entry does not exist in the stored tag

list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

204

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ReadInt32()

Reads the value of a PLC tag.

Table 7- 183 ReadInt32() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadInt32( WCHAR* in_Tag, INT32* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · INT32* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 184 ReadInt32() - .NET (C#)

Syntax Parameters

Int32 ReadInt32( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

Int32: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

205

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadInt64()

Reads the value of a PLC tag.

Table 7- 185 ReadInt64() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadInt64( WCHAR* in_Tag, INT64* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · INT64* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
ERuntimeErrorCode.NotSupported
ERuntimeErrorCode.TypeMismatch
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

206

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 186 ReadInt64() - .NET (C#)

Syntax Parameters

Int64 ReadInt64( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

Int64: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

207

User interfaces (API) 7.6 API IInstances

ReadUInt8()

Reads the value of a PLC tag.

Table 7- 187 ReadUInt8() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadUInt8( WCHAR* in_Tag, UINT8* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · UINT8* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 188 ReadUInt8() - .NET (C#)

Syntax Parameters

UInt8 ReadUInt8( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

UInt8: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

208

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadUInt16()

Reads the value of a PLC tag.

Table 7- 189 ReadUInt16() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadUInt16( WCHAR* in_Tag, UINT16* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · UINT16* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

209

User interfaces (API) 7.6 API IInstances

Table 7- 190 ReadUInt16() - .NET (C#)

Syntax Parameters

UInt16 ReadUInt16( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

UInt16: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

ReadUInt32()

Reads the value of a PLC tag.

Table 7- 191 ReadUInt32() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadUInt32( WCHAR* in_Tag, UINT32* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · UINT32* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.

210

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

SREC_DOES_NOT_EXIST SREC_NOT_SUPPORTED SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

User interfaces (API) 7.6 API IInstances
The entry does not exist in the stored tag list. Access to entire structures or arrays is not supported. The expected type does not match the stored type. See Compatible primitive data types (Page 375). The stored tag list must be updated.

Table 7- 192 ReadUInt32() - .NET (C#)

Syntax Parameters

UInt32 ReadUInt32( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

Uint32: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist The entry does not exist in the stored tag

list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

211

User interfaces (API) 7.6 API IInstances

ReadUInt64()

Reads the value of a PLC tag.

Table 7- 193 ReadInt64() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadUInt64( WCHAR* in_Tag, UINT64* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · UINT64* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 194 ReadUInt64() - .NET (C#)

Syntax Parameters

UInt64 ReadUInt64( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

UInt64: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

212

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadFloat()

Reads the value of a PLC tag.

Table 7- 195 ReadFloat() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadFloat( WCHAR* in_Tag, float* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · float* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
ERuntimeErrorCode.IndexOutOfRange SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

213

User interfaces (API) 7.6 API IInstances

Table 7- 196 ReadFloat() - .NET (C#)

Syntax Parameters

float ReadFloat( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

float: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

214

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ReadDouble()
Reads the value of a PLC tag.

Table 7- 197 ReadDouble() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadDouble( WCHAR* in_Tag, double* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · double* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
ERuntimeErrorCode.IndexOutOfRange SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 198 ReadDouble() - .NET (C#)

Syntax Parameters

double ReadDouble( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

double: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

215

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadChar()

Reads the value of a PLC tag.

Table 7- 199 ReadChar() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadChar( WCHAR* in_Tag, char* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · char* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
ERuntimeErrorCode.IndexOutOfRange SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

216

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 200 ReadChar() - .NET (C#)

Syntax Parameters

sbyte ReadChar( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

sbyte: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

217

User interfaces (API) 7.6 API IInstances

ReadWChar()

Reads the value of a PLC tag.

Table 7- 201 ReadWChar() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadWChar( WCHAR* in_Tag, WCHAR* out_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be read. · WCHAR* out_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
ERuntimeErrorCode.IndexOutOfRange SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be read.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 202 ReadWChar() - .NET (C#)

Syntax Parameters

char ReadWChar( string in_Tag
)
· string in_Tag: The name of the PLC tag that is to be read.

Return values Exceptions

char: Contains the value and the type of the PLC tag.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be read.

218

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMismatch
ERuntimeErrorCode.NotUpToData

The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

ReadSignals()

Reads multiple signals within an API call. When the function is called for the first time, it stores internal information in the structures SDataValueByName* to improve the performance of the subsequent calls.

Note
To simulate a regular exchange of signals, create a signal list for each set of signals. Use this signal list for all further accesses. Create a new list as soon as the set of signals changes.

Table 7- 203 ReadSignals() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadSignals( SDataValueByName* inout_Signals, UINT32 in_SignalCount
); ERuntimeErrorCode ReadSignals(
SDataValueByNameWithCheck* inout_Signals, UINT32 in_SignalCount bool* out_SignalsHaveChanged );
· SDataValueByName* inout_Signals:

Contains the name, the value and the expected type of the PLC tag. If the expected type is UNSPECIFIC, it is set to the stored type when the function was successful. The STRUCT type is not supported.
· SDataValueByNameWithCheck* inout_Signals:

Contains the name, the value and the expected type of the PLC tag. If the expected type is UNSPECIFIC, it is set to the stored type when the function was successful. The STRUCT type is not supported. "ValueHasChanged" is set to true if the value of the signal has changed since the preceding call.
· UINT32 in_SignalCount:

The number of signals to be read. · bool* out_SignalsHaveChanged:

Returns true if the value of at least one signal has changed since the preceding call.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

219

User interfaces (API) 7.6 API IInstances

Signal error Return values

Runtime error code SREC_OK SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_INDEX_OUT_OF_RANGE Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_NOT_UP_TO_DATE SREC_SIGNAL_CONFIGURATION_ERROR

Condition
The signal operation is successful.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
Offset or bits are invalid.
Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The stored tag list must be updated.
At least one signal error is in the list.

Table 7- 204 ReadSignals() - .NET (C#)

Syntax Parameters

void ReadSignals( ref SDataValueByName[] inout_Signals
) void ReadSignals(
ref SDataValueByNameWithCheck[] inout_Signals out bool out_SignalsHaveChanged );
· ref SDataValueByName[] inout_Signals:

Contains the name, the value and the expected type of the PLC tag. If the expected type is UNSPECIFIC, it is set to the stored type when the function was successful. The STRUCT type is not supported.
· ref SDataValueByNameWithCheck[] inout_Signals:

Contains the name, the value and the expected type of the PLC tag. If the expected type is UNSPECIFIC, it is set to the stored type when the function was successful. The STRUCT type is not supported. "ValueHasChanged" is set to true if the value of the signal has changed since the preceding call.
· out bool out_SignalsHaveChanged:

Return values

Returns true if the value of at least one signal has changed since the preceding call.
SDataValue: Contains the value and the type of the PLC tag.

220

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.6.5.5

User interfaces (API) 7.6 API IInstances

Signal error Exceptions

Runtime error code

Condition

ERuntimeErrorCode.OK

The signal operation is successful.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invalid.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

I/O access via tag name - Writing
Individual access to IO data is used for displaying and writing values that are not refreshed regularly in a graphical user interface (GUI).
Note To simulate a regular exchange of signals, create a signal list for each set of signals. Use this signal list for all further accesses. Create a new list as soon as the set of signals changes. For the signal lists use the functions ReadSignals() and WriteSignals().

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

221

User interfaces (API) 7.6 API IInstances

Write()

Writes the value of a PLC tag.

Table 7- 205 Write() - Native C++

Syntax Parameters

ERuntimeErrorCode Write( WCHAR* in_Tag, SDataValue* in_Value
); · WCHAR* in_Tag:

The name of the PLC tag that is to be written. · SDataValue* in_Value:

Contains the value and the expected type of the PLC tag. The UNSPECIFIC and STRUCT types are not supported.

Return values

Structures and fields can be emulated through signal lists and then be read by using the ReadSignals() function and written by using the WriteSignals() function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_INDEX_OUT_OF_RANGE

The offset lies outside the area range. No value could be written.

SREC_DOES_NOT_EXIST

The entry does not exist in the stored tag list.

SREC_NOT_SUPPORTED

Access to entire structures or arrays is not supported.

SREC_TYPE_MISMATCH

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

SREC_NOT_UP_TO_DATE

The stored tag list must be updated.

SREC_WRONG_ARGUMENT

The expected type is UNSPECIFIC.

222

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 206 Write() - .NET (C#)

Syntax Parameters

void Write( string in_Tag SDataValue in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · SDataValue in_Value:

Contains the value and the expected type of the PLC tag. The UNSPECIFIC and STRUCT types are not supported.

Return values Exceptions

Structures and fields can be emulated through signal lists and then be written

by using the WriteSignals() function.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

ERuntimeErrorCode.WrongArgument The expected type is UNSPECIFIC.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

223

User interfaces (API) 7.6 API IInstances

WriteBool()

Writes the value of a PLC tag.

Table 7- 207 WriteBool() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteBool( WCHAR* in_Tag, bool in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · bool in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 208 WriteBool() - .NET (C#)

Syntax Parameters

void WriteBool( string in_Tag bool in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · bool in_Value:

Return values

Contains the value of the PLC tag. None

224

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Exceptions

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 376).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

WriteInt8()

Writes the value of a PLC tag.

Table 7- 209 WriteInt8() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteInt8( WCHAR* in_Tag, INT8 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · INT8 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

225

User interfaces (API) 7.6 API IInstances

Table 7- 210 WriteInt8() - .NET (C#)

Syntax Parameters

void WriteInt8( string in_Tag Int8 in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · Int8 in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

226

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WriteInt16()

Writes the value of a PLC tag.

Table 7- 211 WriteInt16() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteInt16( WCHAR* in_Tag, INT16 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · INT16 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 212 WriteInt16() - .NET (C#)

Syntax Parameters

void WriteInt16( string in_Tag Int16 in_Value
)
· string in_Tag: The name of the PLC tag that is to be written.
· Int16 in_Value: Contains the value of the PLC tag.

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

227

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData

The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

WriteInt32()

Writes the value of a PLC tag.

Table 7- 213 WriteInt32() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteInt32( WCHAR* in_Tag, INT32 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · INT32 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

228

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 214 WriteInt32() - .NET (C#)

Syntax Parameters

void WriteInt32( string in_Tag Int32 in_Value
)
· string in_Tag: The name of the PLC tag that is to be written.
· Int32 in_Value: Contains the value of the PLC tag.

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

229

User interfaces (API) 7.6 API IInstances

WriteInt64()

Writes the value of a PLC tag.

Table 7- 215 WriteInt64() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteInt64( WCHAR* in_Tag, INT64 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · INT64 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 216 WriteInt64() - .NET (C#)

Syntax Parameters

void WriteInt64( string in_Tag Int64 in_Value
)
· string in_Tag: The name of the PLC tag that is to be written.
· Int64 in_Value: Contains the value of the PLC tag.

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

230

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

WriteInt8()

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData

The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Writes the value of a PLC tag.

Table 7- 217 WriteUInt8() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteUInt8( WCHAR* in_Tag, UINT8 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · UINT8 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

231

User interfaces (API) 7.6 API IInstances

Table 7- 218 WriteUInt8() - .NET (C#)

Syntax Parameters

void WriteUInt8( string in_Tag UInt8 in_Value
)
· string in_Tag: The name of the PLC tag that is to be written.
· UInt8 in_Value: Contains the value of the PLC tag.

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

232

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WriteUInt16()

Reads the value of a PLC tag.

Table 7- 219 WriteUInt16() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteUInt16( WCHAR* in_Tag, UINT16 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · UINT16 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 220 WriteUInt16() - .NET (C#)

Syntax Parameters

void WriteUInt16( string in_Tag UInt16 in_Value
)
· string in_Tag: The name of the PLC tag that is to be written.
· UInt16 in_Value: Contains the value of the PLC tag.

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

233

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData

The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

WriteUInt32()

Writes the value of a PLC tag.

Table 7- 221 WriteUInt32() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteUInt32( WCHAR* in_Tag, UINT32 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · UINT32 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

234

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 222 WriteUInt32() - .NET (C#)

Syntax Parameters

void WriteUInt32( string in_Tag UInt32 in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · UInt32 in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

235

User interfaces (API) 7.6 API IInstances

WriteUInt64()

Writes the value of a PLC tag.

Table 7- 223 WriteUInt64() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteUInt64( WCHAR* in_Tag, UINT64 in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · UINT64 in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 224 WriteUInt64() - .NET (C#)

Syntax Parameters

void WriteUInt64( string in_Tag UInt64 in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · UInt64 in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

236

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData

The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

WriteFloat()

Writes the value of a PLC tag.

Table 7- 225 WriteFloat() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteFloat( WCHAR* in_Tag, float in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · float in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

237

User interfaces (API) 7.6 API IInstances

Table 7- 226 WriteFloat() - .NET (C#)

Syntax Parameters

void WriteFloat( string in_Tag float in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · float in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

238

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WriteDouble()

Writes the value of a PLC tag.

Table 7- 227 WriteDouble() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteDouble( WCHAR* in_Tag, double in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · double in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 228 WriteDouble() - .NET (C#)

Syntax Parameters

void WriteDouble( string in_Tag double in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · double in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

239

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.InstanceNotRunning ERuntimeErrorCode.IndexOutOfRange ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.NotSupported ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData

The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

WriteChar()

Writes the value of a PLC tag.

Table 7- 229 WriteChar() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteChar( WCHAR* in_Tag, char in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · char in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

240

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 230 WriteChar() - .NET (C#)

Syntax Parameters

void WriteChar( string in_Tag sbyte in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · sbyte in_Value:

Return values Exceptions

Contains the value of the PLC tag.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.IndexOutOfRange

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

241

User interfaces (API) 7.6 API IInstances

WriteWChar()

Writes the value of a PLC tag.

Table 7- 231 WriteWChar() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteWChar( WCHAR* in_Tag, WCHAR in_Value
);
· WCHAR* in_Tag:

The name of the PLC tag that is to be written. · WCHAR in_Value:

Return values

Contains the value of the PLC tag. Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_DOES_NOT_EXIST
SREC_NOT_SUPPORTED
SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.
The offset lies outside the area range. No value could be written.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.

Table 7- 232 WriteWChar() - .NET (C#)

Syntax Parameters

void WriteWChar( string in_Tag char in_Value
)
· string in_Tag:

The name of the PLC tag that is to be written. · char in_Value:

Return values

Contains the value of the PLC tag. None

242

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Exceptions

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

SREC_INDEX_OUT_OF_RANGE

The offset lies outside the area range. No value could be written.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMissmatch

The expected type does not match the stored type. See Compatible primitive data types (Page 375).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

WriteSignals()

Writes multiple signals within an API call. When the function is called for the first time, it stores internal information in the structures SDataValueByName* to improve the performance of the subsequent calls.

Note
To simulate a regular exchange of signals, create a signal list for each set of signals. Use this signal list for all further accesses. Create a new list as soon as the set of signals changes.

Table 7- 233 WriteSignals() - Native C++

Syntax Parameters

ERuntimeErrorCode WriteSignals( SDataValueByName* inout_Signals, UINT32 in_SignalCount
);
· SDataValueByName* inout_Signals:

Contains the name, the value and the expected type of the PLC tag. The UNSPECIFIC and STRUCT types are not supported.
· UINT32 in_SignalCount:

Signal error Return values

Number of signals. Error code SREC_INDEX_OUT_OF_RANGE
Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT

Condition Offset or bits are invalid. Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

243

User interfaces (API) 7.6 API IInstances

SREC_INSTANCE_NOT_RUNNING SREC_DOES_NOT_EXIST SREC_NOT_SUPPORTED SREC_TYPE_MISMATCH
SREC_NOT_UP_TO_DATE SREC_WRONG_ARGUMENT

The process of the virtual controller is not running.
The entry does not exist in the stored tag list.
Access to entire structures or arrays is not supported.
The expected type does not match the stored type. See Compatible primitive data types (Page 375).
The stored tag list must be updated.
The expected type is UNSPECIFIC.

Table 7- 234 WriteSignals() - .NET (C#)

Syntax Parameters

void WriteSignals( SDataValueByName[] in_Signals
)
· SDataValueByName:

Return values Signal error
Exceptions

Contains the name, the value and the expected type of the PLC tag. The UNSPECIFIC and STRUCT types are not supported.

None

Error code

Condition

ERuntimeErrorCode.IndexOutOfRange

Offset or bits are invalid.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.DoesNotExist

The entry does not exist in the stored tag list.

ERuntimeErrorCode.NotSupported

Access to entire structures or arrays is not supported.

ERuntimeErrorCode.TypeMismatch

The expected type does not match the stored type. See Compatible primitive data types (Page 376).

ERuntimeErrorCode.NotUpToData

The stored tag list must be updated.

ERuntimeErrorCode.WrongArgument The expected type is UNSPECIFIC.

244

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.6

Settings for the virtual time

GetSystemTime()
Returns the virtual system time of the virtual controller. Returns an empty structure when the function fails.

Table 7- 235 GetSystemTime() - Native C++

Syntax Parameters Return values

SYSTEMTIME GetSystemTime();
None SYSTEMTIME: System time of the virtual controller.

SetSystemTime()
Sets the virtual system time of the virtual controller. A system time between "Jan 1 1970 00:00:00:000" and "Dec 31 2200 23:59:59:999" is valid.

Table 7- 236 SetSystemTime() - Native C++

Syntax Parameters

ERuntimeErrorCode SetSystemTime( SYSTEMTIME in_SystemTime
); · SYSTEMTIME in_SystemTime:

Return values

System time that is to be set for the virtual controller.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The value is outside the limits.

SystemTime { get; set; }
Sets or returns the virtual system time of the virtual controller. A system time between "Jan 1 1970 00:00:00:000" and "Dec 31 2200 23:59:59:999" is valid.

Table 7- 237 SystemTime { get; set; } - .NET (C#)

Syntax Parameters Return values

DateTime SystemTime { get; set; }

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The value is outside the limits.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

245

User interfaces (API) 7.6 API IInstances

GetScaleFactor()
Returns the scaling factor with which the virtual time advances.

Table 7- 238 GetScaleFactor() - Native C++

Syntax Parameters Return values

double GetScaleFactor();
None double: Scaling factor of the virtual time.

SetScaleFactor()
Sets the scaling factor with which the virtual time advances.
Start with a small scaling factor and incrementally approach a scaling factor at which the virtual controller remains in RUN.
A value between 0.01 and 100 is valid. The default setting is 1.
 If the value is less than 1, the virtual time of the virtual controller runs X-times slower than the real time.
 If the value is greater than 1, the virtual time of the virtual controller runs X-times faster than the real time.
A change in the value during runtime only takes effect at the cycle control point.

Table 7- 239 SetScaleFactor() - Native C++

Syntax Parameters

ERuntimeErrorCode SetScaleFactor ( double in_Value
); · double in_Value:

Return values

Scaling factor of the virtual time. Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_TIMEOUT SREC_WRONG_ARGUMENT

Condition The function is successful. The instance is not registered in Runtime Manager. The function does not return on time. The value is outside the limits.

246

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ScaleFactor { get; set; }
Sets or returns the scaling factor with which the virtual time advances.
Start with a small scaling factor and incrementally approach a scaling factor at which the virtual controller remains in RUN.
A value between 0.01 and 100 is valid. The default setting is 1.
 If the value is less than 1, the virtual time of the virtual controller runs X-times slower than the real time.
 If the value is greater than 1, the virtual time of the virtual controller runs X-times faster than the real time.
A change in the value during runtime only takes effect at the cycle control point.

Table 7- 240 ScaleFactor { get; set; } - .NET (C#)

Syntax Parameters Return values Exceptions

double ScaleFactor { get; set; }

None

double: Scaling factor of the virtual time.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The value is outside the limits.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

247

User interfaces (API) 7.6 API IInstances

7.6.7

Cycle control

GetOperatingMode()
Returns the operating mode (Page 370) of the virtual controller.

Table 7- 241 GetOperatingMode() - Native C++

Syntax Parameters Return values

EOperatingMode GetOperatingMode();
None EOperatingMode: Operating mode of the virtual controller

SetOperatingMode()
Sets the operating mode of the virtual controller. A change in the value during runtime only takes effect at the synchronization point.

Table 7- 242 SetOperatingMode() - Native C++

Syntax Parameters

void SetOperatingMode( EOperatingMode in_OperatingMode
); · EOperatingMode in_OperatingMode:

Return values

Operating mode of the virtual controller

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

OperatingMode { get; set; }
Returns or sets the operating mode of the virtual controller. A change in the value during runtime only takes effect at the synchronization point.

Table 7- 243 OperatingMode { get; set; } - .NET (C#)

Syntax Parameters Return values Exceptions

EOperatingMode OperatingMode { get; set; }

None

EOperatingMode: Operating mode of the virtual controller

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

248

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

SetSendSyncEventInDefaultModeEnabled()
Sets the SendSyncEventInDefault mode. In this mode the OnSyncPointReached event is triggered after each cycle end in the Default operating mode. See OnSyncPointReached (Page 284).

Table 7- 244 SetSendSyncEventInDefaultModeEnabled() - Native C++

Syntax Parameters

ERuntimeErrorCode SetSendSyncEventInDefaultModeEnabled( bool in_Enable
); · bool in_Enable:

Return values

If true, the OnSyncPointReached event is triggered after each cycle in the Default operating mode.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

IsSendSyncEventInDefaultModeEnabled()
Returns the SendSyncEventInDefaultMode mode. When the function fails, the return value is false.

Table 7- 245 IsSendSyncEventInDefaultModeEnabled() - Native C++

Syntax Parameters Return values

bool IsSendSyncEventInDefaultModeEnabled();
None · false: The event is not triggered (unless the Sync-Freeze mode is active). · true: The event is triggered after every cycle.

IsSendSyncEventInDefaultModeEnabled { get; set; }
Returns or sets the SendSyncEventInDefaultMode mode. In this mode the OnSyncPointReached event is triggered after each cycle end for every operating mode. If the event is also to be received in the Default operating mode, set the return value to true. See OnSyncPointReached (Page 284).

Table 7- 246 IsSendSyncEventInDefaultModeEnabled { get; set; } - .NET (C#)

Syntax Parameters Return values
Exceptions

bool IsSendSyncEventInDefaultModeEnabled { get; set;}

None

· false: The event is not triggered (unless the Sync-Freeze mode is active).

· true: The event is triggered after every cycle.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

249

User interfaces (API) 7.6 API IInstances

GetOverwrittenMinimalCycleTime_ns()
Returns the overwritten minimum cycle time (in nanoseconds) that is used in the SingleStep_CT and SingleStep_CPT operating modes.

Table 7- 247 GetOverwrittenMinimalCycleTime_ns() - Native C++

Syntax Parameters Return values

INT64 GetOverwrittenMinimalCycleTime_ns();
None INT64: The overwritten minimum cycle time in nanoseconds.

SetOverwrittenMinimalCycleTime_ns()
Sets the overwritten minimum cycle time (in nanoseconds) that is used in the SingleStep_CT and SingleStep_CPT operating modes.
A value between 0 and 6000000000 is valid. The default setting is 100 ms.
A change in the value during runtime only takes effect at the cycle control point.

Table 7- 248 SetOverwrittenMinimalCycleTime_ns() - Native C++

Syntax Parameters

ERuntimeErrorCode SetOverwrittenMinimalCycleTime_ns( INT64 in_CycleTime_ns
); · INT64 in_CycleTime_ns:

Return values

The overwritten minimum cycle time in nanoseconds.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The value is outside the limits.

250

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

OverwrittenMinimalCycleTime_ns { get; set; }
Returns or sets the overwritten minimum cycle time in nanoseconds that is used in the SingleStep_CT and SingleStep_CPT operating modes.
A value between 0 and 6000000000 is valid. The default setting is 100 ms.
A change in the value during runtime only takes effect at the cycle control point.

Table 7- 249 OverwrittenMinimalCycleTime_ns { get; set; } - .NET (C#)

Syntax Parameters Return values Exceptions

Int64 OverwrittenMinimalCycleTime_ns { get; set; }

None

Int64: The overwritten minimum cycle time in nanoseconds.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The value is outside the limits.

RunToNextSyncPoint()
If the virtual controller is running in a SingleStep operating mode, it is stopped at the synchronization point (Freeze state). The RunToNextSyncPoint() function cancels the freeze state. The virtual controller continues to run until the next synchronization point.

Table 7- 250 RunToNextSyncPoint() - Native C++

Syntax Parameters Return values

ERuntimeErrorCode RunToNextSyncPoint();

None Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_TIMEOUT SREC_INSTANCE_NOT_RUNNING

Condition
The function is successful.
The instance is not registered in Runtime Manager.
The function does not return on time.
The process of the virtual controller is not running.

Table 7- 251 RunToNextSyncPoint() - .NET (C#)

Syntax Parameters Return values Exceptions

void RunToNextSyncPoint();

None

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

251

User interfaces (API) 7.6 API IInstances

StartProcessing()
If the virtual controller is running in a TimespanSynchronized operating mode, it is stopped at the synchronization point (Freeze state). The StartProcessing() function cancels the freeze state. The virtual controller will now run for at least the requested time before it changes to Freeze state at the next synchronization point.

Table 7- 252 StartProcessing() - Native C++

Syntax Parameters

ERuntimeErrorCode StartProcessing( INT64 in_MinimalTimeToRun_ns
); · INT64 in_MinimalTimeToRun_ns:

Return values

The minimum virtual time (in nanoseconds) that the virtual controller runs be-

fore it changes to Freeze state.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INSTANCE_NOT_RUNNING

The process of the virtual controller is not running.

SREC_WRONG_ARGUMENT

The value is less than 0.

Table 7- 253 StartProcessing() - .NET (C#)

Syntax Parameters

void StartProcessing( Int64 in_MinimalTimeToRun_ns
); · Int64 in_MinimalTimeToRun_ns:

Return values Exceptions

The minimum virtual time (in nanoseconds) that the virtual controller runs be-

fore it changes to Freeze state.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.InstanceNotRunning

The process of the virtual controller is not running.

ERuntimeErrorCode.WrongArgument The value is less than 0.

Additional information
For further information, see sections Virtual time response (Page 87), Stop simulation (Page 90).

252

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

SetCycleTimeMonitoringMode()
With this function the source of the timer for the maximum cycle time monitoring can be changed.

Table 7- 254 SetCycleTimeMonitoringMode() - Native C++

Syntax Parameter

ERuntimeErrorCode SetCycleTimeMonitoringMode( ECycleTimeMonitoringMode in_CycleTimeMonitoringMode
) ERuntimeErrorCode SetCycleTimeMonitoringMode(
ECycleTimeMonitoringMode in_CycleTimeMonitoringMode, INT64 in_MaxCycleTime_ns )
· ECycleTimeMonitoringMode in_CycleTimeMonitoringMode:

Select one of the following options for the maximum cycle time monitoring: ­ SRCTMM_DOWNLOADED:

The maximum cycle time from the project that was downloaded from STEP 7 is used as maximum cycle time monitoring.
­ SRCTMM_IGNORED (default):

A timer value of one minute is used as maximum cycle time monitoring to prevent a potential error in case of an overflow of cyclic events. See Monitoring overflow (Page 398).
­ SRCTMM_SPECIFIED:

A value that is specified with the in_MaxCycleTime_ns parameter is used as maximum cycle time monitoring.

Default: 150 ms. · INT64 in_MaxCycleTime_ns:

The user-specific value for the maximum cycle time monitoring.

Return values

A value between 1000000 and 60000000000 ns (1 millisecond to 1 minute) is valid. If no value is specified in the API, the default value of 150 ms applies.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The cycle time monitoring mode is invalid.

SREC_INDEX_OUT_OF_RANGE

The user-specific value for the maximum cycle time monitoring is outside the limits.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

253

User interfaces (API) 7.6 API IInstances

Table 7- 255 SetCycleTimeMonitoringMode() - .NET (C#)

Syntax

void SetCycleTimeMonitoringMode( ECycleTimeMonitoringMode in_CycleTimeMonitoringMode
)

Parameter
Return values Exceptions

void SetCycleTimeMonitoringMode( ECycleTimeMonitoringMode in_CycleTimeMonitoringMode, Int64 in_MaxCycleTime_ns
) · ECycleTimeMonitoringMode in_CycleTimeMonitoringMode:

Select one of the following options for the maximum cycle time monitoring: ­ ECycleTimeMonitoringMode.Downloaded:

The maximum cycle time from the project that was downloaded from STEP 7 is used as maximum cycle time monitoring.
­ ECycleTimeMonitoringMode.Ignored (default):

A timer value of one minute is used as maximum cycle time monitoring to prevent a potential error in case of an overflow of cyclic events. See Monitoring overflow (Page 398).
­ ECycleTimeMonitoringMode.Specified:

A value that is specified with the in_MaxCycleTime_ns parameter is used as maximum cycle time monitoring.

Default: 150 ms. · Int64 in_MaxCycleTime_ns:

The user-specific value for the maximum cycle time monitoring.

A value between 1000000 and 60000000000 ns (1 millisecond to 1 minute) is

valid. If no value is specified in the API, the default value of 150 ms applies.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument

The cycle time monitoring mode is invalid.

ERuntimeErrorCode.IndexOutOfRange

The user-specific value for the maximum cycle time monitoring is outside the limits.

254

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

GetCycleTimeMonitoringMode()
This function returns information on the source of the timer for the maximum cycle time monitoring.

Table 7- 256 GetCycleTimeMonitoringMode() - Native C++

Syntax Parameter

ERuntimeErrorCode GetCycleTimeMonitoringMode( ECycleTimeMonitoringMode* out_CycleTimeMonitoringMode, INT64* out_MaxCycleTime_ns
) · ECycleTimeMonitoringMode* out_CycleTimeMonitoringMode:

The configured mode for cycle time monitoring. The default setting is SRCTM_IGNORED.
· INT64 in_MaxCycleTime_ns:

Return values

The user-specific value for the maximum cycle time monitoring. If no value is

specified in the API, the default value of 150 ms is returned.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

Table 7- 257 GetCycleTimeMonitoringMode() - .NET (C#)

Syntax Parameter

void GetCycleTimeMonitoringMode( out ECycleTimeMonitoringMode out_CycleTimeMonitoringMode, out Int64 out_MaxCycleTime_ns
) · ECycleTimeMonitoringMode out_CycleTimeMonitoringMode:

The configured mode for cycle time monitoring. The default setting is ECycleTimeMonitoringMode.Ignored.
· Int64 in_MaxCycleTime_ns:

Return values Exceptions

The user-specific value for the maximum cycle time monitoring. If no value is

specified in the API, the default value of 150 ms is returned.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

255

User interfaces (API) 7.6 API IInstances

7.6.8

Acyclic services

7.6.8.1

Overview
The acyclic services of PLCSIM Advanced include:
 Read and write processes of parameter and status data from the user program of the PLC to the I/O modules
 Interrupt and event information which the I/O modules send to the CPU.

Read and write operations
Events triggered by the user program (TIA Portal), which have logged on for the notification:

Table 7- 258 Events: Read and write operations

SFB Name

52

RDREC

53

WRREC

API method (alarm) ReadRecordDone (Page 258) WriteRecordDone (Page 258)

API event for triggering the SFB OnDataRecordRead (Page 287) OnDataRecordWrite (Page 287)

Flowchart

Figure 7-4 Read and write operations flowchart 256

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

API methods and associated events
Events which are triggered by the I/O modules and associated API methods:

Table 7- 259 API methods and associated events

OB Name

API methods for triggering the OB (query)

82 Diagnostic error Inter- AlarmNotification (Page 260) rupt

4x Hardware Interrupt

ProcessEvent (Page 263)

83 Pull or Plug of module PullOrPlugEvent (Page 265)

55 Status

StatusEvent (Page 267)

57 Profile

ProfileEvent (Page 268)

56 Update

UpdateEvent (Page 269)

86 Rack or station failure RackOrStationFaultEvent (Page 272)

API event after OB execution (alarm)
OnAlarmNotificationDone (Page 289)
OnProcessEventDone (Page 290)
OnPullOrPlugEventDone (Page 291)
OnStatusEventDone (Page 292)
OnProfileEventDone (Page 293)
OnUpdateEventDone (Page 294)
OnRackOrStationFaultEventDone (Page 295)

Flowchart

Flowchart for the simulation of events which are triggered by the I/O modules.

Figure 7-5 Flowchart for the simulation of events

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

257

User interfaces (API) 7.6 API IInstances

7.6.8.2

ReadRecordDone / WriteRecordDone

ReadRecordDone()
With this API method, the simulation of an I/O module signals to the CPU that the asynchronous reading of a data record has been completed. The simulation hereby makes the read information available.

Table 7- 260 ReadRecordDone() - Native C++

Syntax Parameters

ERuntimeErrorCode ReadRecordDone( SDataRecordInfo in_RecordInfo, BYTE* in_Data, UINT32 in_Status
);
· SDataRecordInfo in_RecordInfo:

Structure which contains the data record information. See SDataRecordInfo (Page 357).
· BYTE* in_Data:

Byte array of the read data record with the length defined by DataSize in the structure SDataRecordInfo.
· UINT32 in_Status:

Return values

Status of the job execution Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_DOES_NOT_EXIST SREC_INDEX_OUT_OF_RANGE

SREC_TIMEOUT

Condition
The function is successful.
The instance is not registered in Runtime Manager.
No hardware identifier of the module.
The byte array of the read data record exceeds the length DDATARECORD_MAX_SIZE = 64000.
The function does not return on time.

Table 7- 261 ReadRecordDone() - .NET (C#)

Syntax Parameters

void ReadRecordDone( SDataRecordInfo in_RecordInfo, BYTE[] in_Data, UInt32 in_Status
);
· SDataRecordInfo in_RecordInfo:

Structure which contains the data record information. See SDataRecordInfo (Page 357).
· BYTE[] in_Data:

Byte array of the read data record with the length defined by DataSize in the structure SDataRecordInfo.
· UInt32 in_Status:

Status of the job execution

258

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Return values Exceptions

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.DoesNotExist No hardware identifier of the module.

ERuntimeErrorCode.IndexOutOfRange

The byte array of the read data record exceeds the length DataRecordMaxSize = 64000.

ERuntimeErrorCode.Timeout

The function does not return on time.

WriteRecordDone()
With this API method, the simulation of an I/O module signals to the CPU that the asynchronous writing of a data record has been completed.

Table 7- 262 WriteRecordDone() - Native C++

Syntax Parameters
Return values

ERuntimeErrorCode WriteRecordDone( SDataRecordInfo in_RecordInfo, UINT32 in_Status
);

· SDataRecordInfo in_RecordInfo:

Structure which contains the data record information. See SDataRecordInfo (Page 357).

· UINT32 in_Status:

Status of the job execution Runtime error code SREC_OK SREC_INTERFACE_REMOVED
SREC_DOES_NOT_EXIST SREC_TIMEOUT

Condition The function is successful. The instance is not registered in Runtime Manager. No hardware identifier of the module. The function does not return on time.

Table 7- 263 WriteRecordDone() - .NET (C#)

Syntax Parameters

void WriteRecordDone( SDataRecordInfo in_RecordInfo, UInt32 in_Status
); · SDataRecordInfo in_RecordInfo:

Structure which contains the data record information. See SDataRecordInfo (Page 357).
· UInt32 in_Status:

Return values Exceptions

Status of the job execution

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.DoesNotExist No hardware identifier of the module.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

259

User interfaces (API) 7.6 API IInstances

7.6.8.3

AlarmNotification

AlarmNotification()
This function triggers diagnostic alarms according to the PROFINET standard.
Each call of this function calls the OB 82 once, regardless of the number and the severity level of the transferred diagnostic entries.

Table 7- 264 AlarmNotification() - Native C++

Syntax Parameters

ERuntimeErrorCode AlarmNotification( UINT16 in_HardwareIdentifier, UINT16 in_ModuleState, UINT16 in_NumberOfDiagnosisEvents,
SDiagExtChannelDescription* in_ArrayOfDiagnosisEvents, UINT16* out_SequenceNumber );
· UINT16 in_HardwareIdentifier:
The hardware identifier of the module or submodule which sends the diagnostics entry. The identifier must belong to a hardware component in the currently loaded project.
· UINT16 in_ModuleState:
Module status. The following statuses are valid: DMODULE_STATE_OK = 0, DMODULE_STATE_ERROR = 1, DMODULE_STATE_MAINT_DEMANDED = 2, DMODULE_STATE_MAINT_REQUIRED = 4 The in_ModuleState parameter is derived from the sum (ORed) of the severity level in the SDiagExtChannelDescription field. If a diagnostic interrupt should be generated for both "Maintenance demanded" as well as "Maintenance required", select "6" as the module status.
· UINT16 in_NumberOfDiagnosisEvents:
Multiple diagnostic entries can be sent to the CPU with a single API call. Valid range: 0 to 16. 0 means that no diagnostics entry should appear for the submodule or the channel.
· SDiagExtChannelDescription* in_ArrayOfDiagnosisEvents:
Pointer to a field with diagnostic entries. The field must match the number of diagnostic entries. It can also be a zero pointer. For definitions, see SDiagExtChannelDescription (Page 360).
· UINT16* out_SequenceNumber:
PLCSIM Advanced assigns a unique consecutive number to each interrupt event. According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

260

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Return values

Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_WRONG_MODULE_STATE SREC_DOES_NOT_EXIST SREC_WRONG_MODULE_TYPE

SREC_WRONG_ARGUMENT SREC_TIMEOUT

User interfaces (API) 7.6 API IInstances
Condition The function is successful. The instance is not registered in Runtime Manager. The module is currently unplugged. No hardware identifier of the module. The channel number does not exist for the module. The value for the module status is invalid. The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

261

User interfaces (API) 7.6 API IInstances

Table 7- 265 AlarmNotification() - .NET (C#)

Syntax Parameters

void AlarmNotification( ushort in_HardwareIdentifier, ushort in_ModuleState, ushort in_NumberOfDiagnosisEvents,
SDiagExtChannelDescription [] in_ArrayOfDiagnosisEvents, Out ushort out_SequenceNumber );
· ushort in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the diagnostics entry.

The identifier must belong to a hardware component in the currently loaded project.
· ushort in_ModuleState:

Module status. The following statuses are valid:

ModuleState.Ok = 0, ModuleState.Error = 1, ModuleState.MaintenanceDemanded = 2, ModuleState.MaintenanceRequired = 4

The in_ModuleState parameter is derived from the sum (ORed) of the severity level in the SDiagExtChannelDescription field.

If a diagnostic interrupt should be generated for both "Maintenance demanded" as well as "Maintenance required", select "6" as the module status.
· ushort in_NumberOfDiagnosisEvents

Multiple diagnostic entries can be sent to the CPU with a single API call.

Valid range: 0 to 16. 0 means that no diagnostics entry should appear for the submodule or the channel.
· SDiagExtChannelDescription [] in_ArrayOfDiagnosisEvents:

Pointer to a field with diagnostic entries. The field must match the number of diagnostic entries. It can also be a zero pointer. For definitions, see SDiagExtChannelDescription (Page 360).
· Out ushort out_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each alarm event.

Exceptions

According to PROFINET standard the sequence number is 10 bits wide (1 to

7FFH). When the highest number is reached the numbering starts again at 1.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState

The module is currently unplugged.

ERuntimeErrorCode.DoesNotExist No hardware identifier of the module.

ERuntimeErrorCode.WrongArgument The value for the module status is invalid.

ERuntimeErrorCode.WrongModuleType

The channel number does not exist for the module.

ERuntimeErrorCode.Timeout

The function does not return on time.

262

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Example

ushort seqNumber; var In_ArrayOfDiagnosisEvent = new SDiagExtChannelDescription[] { new SDiagExtChannelDescription() {ChannelNumber = 0x8000, Error-
Type = 0x0001, ExtErrorType = 0, Direction = EDiagProperty.Appear,Severity =EDiagSeverity.MaintDemanded},
new SDiagExtChannelDescription() {ChannelNumber = 0x8000, ErrorType = 0x0002, ExtErrorType = 0, Direction = EDiagProperty.Appear,Severity =EDiagSeverity.Failure},
new SDiagExtChannelDescription() {ChannelNumber = 0x8000, ErrorType = 0x0003, ExtErrorType = 0, Direction = EDiagProperty.Appear,Severity =EDiagSeverity.MaintRequired},
Instance.AlarmNotification(269, 7, 3, In_ArrayOfDiagnosisEvent, out seqNumber); //ModuleState parameter is sum of the severities in the SDiagExtChannelDescription array above: 4+2+1

7.6.8.4

ProcessEvent

ProcessEvent()
Process events from central and distributed input modules can be simulated with this function.

Table 7- 266 ProcessEvent() - Native C++

Syntax Parameters

ERuntimeErrorCode ProcessEvent( UINT16 in_HardwareIdentifier, UINT16 in_Channel,
EProcessEventType in_ProcessEventType, UINT16* out SequenceNumber);
· UINT16 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the process event.

The identifier must belong to a hardware component in the currently loaded project.
· UINT16 in_Channel:

The channel of the IO module which sends the process event. · EProcessEventType in_ProcessEventType:

A value from the list of predefined types of events for S7 modules, see EProcessEventType (Page 384).
· UINT16* out_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

263

User interfaces (API) 7.6 API IInstances

Return values

Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_WRONG_MODULE_STATE SREC_DOES_NOT_EXIST SREC_NOT_SUPPORTED_BY_MODULE

SREC_TIMEOUT

Condition The function is successful. The instance is not registered in Runtime Manager. The module is currently unplugged. No hardware identifier of the module. The module is not supported by this user action. The function does not return on time.

Table 7- 267 ProcessEvent() - .NET (C#)

Syntax Parameters

void ProcessEvent( ushort in_HardwareIdentifier, ushort in_Channel, EProcessEventType in_ProcessEventType, Out ushort out_SequenceNumber );
· ushort in_HardwareIdentifier:

The hardware identifier of the module or submodule which generates the process event.

The identifier must belong to a hardware component in the currently loaded project.
· ushort in_Channel:

The channel of the IO module which generates the process event. · EProcessEventType in_ProcessEventType:

A value from the list of predefined types of events for S7 modules, see EProcessEventType (Page 384).
· Out ushort out_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

Return values Exceptions

According to PROFINET standard the sequence number is 10 bits wide (1 to

7FFH). When the highest number is reached the numbering starts again at 1.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState ERuntimeErrorCode.DoesNotExist

The module is currently unplugged. No hardware identifier of the module.

ERuntimeErrorCode.NotSupportedByModule

The module is not supported by this user action.

ERuntimeErrorCode.Timeout

The function does not return on time.

264

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.8.5

PullOrPlugEvent

PullOrPlugEvent()
This function triggers pull/plug events. The interrupt OB (OB 83) "Pull or plug of modules" is executed for these events.

Table 7- 268 PullOrPlugEvent() - Native C++

Syntax Parameters

ERuntimeErrorCode PullOrPlugEvent( UINT16 in_HardwareIdentifier, EPullOrPlugEventType in_PullOrPlugEventType, UINT16* out_SequenceNumber );
· UINT16 in_HardwareIdentifier:

The hardware identifier of the module or submodule which generates the pull/plug event.

The identifier must belong to a hardware component in the currently loaded project.
· EPullOrPlugEventType in_PullOrPlugEventType:

A value from the list of predefined types of pull/plug events, see EPullOrPlugEventType (Page 384).
· UINT16* out_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

Return values

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_WRONG_MODULE_STATE

The module is currently unplugged.

SREC_WRONG_MODULE_TYPE

The wrong module type was selected.

For example, if an onboard IO of a compact CPU is to be pulled.

SREC_NOT_SUPPORTED_BY_MODULE

The module is not supported by this user action.

SREC_DOES_NOT_EXIST

No hardware identifier of the module.

SREC_TIMEOUT

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

265

User interfaces (API) 7.6 API IInstances

Table 7- 269 PullOrPlugEvent() - .NET (C#)

Syntax Parameters

void PullOrPlugEvent( ushort in_HardwareIdentifier, EPullOrPlugEventType in_PullOrPlugEventType, Out ushort out_SequenceNumber );
· ushort in_HardwareIdentifier:

The hardware identifier of the module or submodule which generates the pull/plug event.

The identifier must belong to a hardware component in the currently loaded project.
· EPullOrPlugEventType in_PullOrPlugEventType:

A value from the list of predefined types of pull/plug events, see EPullOrPlugEventType (Page 384).
· Out ushort out_SequenceNumber

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

Return values Exceptions

According to PROFINET standard the sequence number is 10 bits wide (1 to

7FFH). When the highest number is reached the numbering starts again at 1.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState ERuntimeErrorCode.WrongModuleType

The module is currently unplugged.
The wrong module type was selected. For example, if an onboard IO of a compact CPU is to be pulled.

ERuntimeErrorCode.DoesNotExist No hardware identifier of the module.

ERuntimeErrorCode.NotSupportedByModule

The module is not supported by this user action.

ERuntimeErrorCode.Timeout

The function does not return on time.

266

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.8.6

StatusEvent

StatusEvent()

This function is used to trigger the status event OB (OB 55). Status events are only supported for modules in a distributed IO system.

Table 7- 270 StatusEvent() - Native C++

Syntax Parameters

ERuntimeErrorCode StatusEvent( UINT16 in_HardwareIdentifier, UINT16 in_Specifier );
· UINT16 in_HardwareIdentifier:

The hardware identifier of the module that generates the status event.

The identifier must belong to a hardware component in the currently loaded project.
· UINT16 in_Specifier:

Return values

The parameter is transferred to the interrupt frame as interrupt specifier. It is

available as input parameter of the OB 55 call.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_WRONG_MODULE_STATE

The module is currently unplugged.

SREC_NOT_SUPPORTED_BY_MODULE

The module is not supported by this user action.

SREC_DOES_NOT_EXIST

No hardware identifier of the module.

SREC_TIMEOUT

The function does not return on time.

Table 7- 271 StatusEvent() - .NET (C#)

Syntax Parameters

void StatusEvent( ushort in_HardwareIdentifier,
ushort in_Specifier );
· ushort in_HardwareIdentifier:

The hardware identifier of the module that generates the status event.

The identifier must belong to a hardware component in the currently loaded project.
· ushort in_Specifier:

Return values

The parameter is transferred to the interrupt frame as interrupt specifier. It is available as input parameter of the OB 55 call.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

267

User interfaces (API) 7.6 API IInstances

Exceptions

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState

The module is currently unplugged.

ERuntimeErrorCode.DoesNotExist No hardware identifier of the module.

ERuntimeErrorCode.NotSupportedByModule

The module is not supported by this user action.

ERuntimeErrorCode.Timeout

The function does not return on time.

7.6.8.7

ProfileEvent

ProfileEvent()

This function is used to trigger the Profile event OB (OB 57). Profile events are only supported for modules in a distributed IO system.

Table 7- 272 ProfileEvent() - Native C++

Syntax Parameters

ERuntimeErrorCode ProfileEvent( UINT16 in_HardwareIdentifier, UINT16 in_Specifier );
· UINT16 in_HardwareIdentifier:

The hardware identifier of the module that generates the profile event.

The identifier must belong to a hardware component in the currently loaded project.
· UINT16 in_Specifier:

Return values

The parameter is transferred to the interrupt frame as interrupt specifier. It is available as input parameter of the OB 57 call.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_WRONG_MODULE_STATE

The module is currently unplugged.

SREC_NOT_SUPPORTED_BY_MODULE

The module is not supported by this user action.

SREC_DOES_NOT_EXIST

No hardware identifier of the module.

SREC_TIMEOUT

The function does not return on time.

268

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 273 ProfileEvent() - .NET (C#)

Syntax Parameters

void ProfileEvent( ushort in_HardwareIdentifier, ushort in_Specifier );
· ushort in_HardwareIdentifier:

The hardware identifier of the module that generates the profile event.

The identifier must belong to a hardware component in the currently loaded project.
· ushort in_Specifier:

Return values Exceptions

The parameter is transferred to the interrupt frame as interrupt specifier. It is

available as input parameter of the OB 57 call.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState ERuntimeErrorCode.DoesNotExist

The module is currently unplugged. No hardware identifier of the module.

ERuntimeErrorCode.NotSupportedByModule

The module is not supported by this user action.

ERuntimeErrorCode.Timeout

The function does not return on time.

7.6.8.8

UpdateEvent

UpdateEvent()

This function is used to trigger the Update event OB (OB 56). Update events are only supported for modules in a distributed IO system.

Table 7- 274 UpdateEvent() - Native C++

Syntax Parameters

ERuntimeErrorCode UpdateEvent( UINT16 in_HardwareIdentifier, UINT16 in_Specifier );
· UINT16 in_HardwareIdentifier:

The hardware identifier of the module that triggers the update event.

The identifier must belong to a hardware component in the currently loaded project.
· UINT16 in_Specifier:

The parameter is transferred to the interrupt frame as interrupt specifier. It is available as input parameter of the OB 56 call.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

269

User interfaces (API) 7.6 API IInstances

Return values

Runtime error code SREC_OK
SREC_INTERFACE_REMOVED

SREC_WRONG_MODULE_STATE SREC_NOT_SUPPORTED_BY_MODULE

SREC_DOES_NOT_EXIST SREC_TIMEOUT

Condition The function is successful. The instance is not registered in Runtime Manager. The module is currently unplugged. The module is not supported by this user action. No hardware identifier of the module. The function does not return on time.

Table 7- 275 UpdateEvent() - .NET (C#)

Syntax Parameters

void UpdateEvent( ushort in_HardwareIdentifier, ushort in_Specifier );
· ushort in_HardwareIdentifier:

The hardware identifier of the module that triggers the update event.

The identifier must belong to a hardware component in the currently loaded project.
· ushort in_Specifier:

Return values Exceptions

The parameter is transferred to the interrupt frame as interrupt specifier. It is available as input parameter of the OB 56 call.

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.WrongModuleState ERuntimeErrorCode.DoesNotExist

The module is currently unplugged. No hardware identifier of the module.

ERuntimeErrorCode.NotSupportedByModule

The module is not supported by this user action.

ERuntimeErrorCode.Timeout

The function does not return on time.

270

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

7.6.8.9

GetConfiguredProcessEvent

GetConfiguredProcessEvents()
With this API method, the process events configured in the TIA Portal can be read out during runtime.
If no process events are present, SREC_OK is returned. The value for EventsCount is then 0.

Table 7- 276 GetConfiguredProcessEvents() - Native C++

Syntax Parameters

ERuntimeErrorCode GetConfiguredProcessEvents( UINT16* out_EventsCount, ); · SConfiguredProcessEvents* inout_ProcessEvents:

Pointer or reference to a user-defined memory which contains the field with the downloaded configured process events. The structure SConfiguredProcessEvents (Page 358) contains information about these process events.
· UINT16* out_EventsCount:

Return values

Pointer or reference to a tag which contains the number of configured process

events.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

Table 7- 277 GetConfiguredProcessEvents() - .NET (C#)

Syntax Parameters Return values
Exceptions

SConfiguredProcessEvents [] GetConfiguredProcessEvents( );

None

Field with configured process events and field size provide the number of configured process events.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

271

User interfaces (API) 7.6 API IInstances

7.6.8.10

RackOrStationFaultEvent

Description

This function is used to trigger the RackOrStationFault event OB (OB 86). These events are only supported for distributed devices.

Table 7- 278 RackOrStationFaultEvent() - Native C++

Syntax Parameter

ERuntimeErrorCode RackOrStationFaultEvent( UINT16 in_HardwareIdentifier,
ERackOrStationFaultType in_EventType );
· UINT16 in_HardwareIdentifier:

The hardware identifier of the device that sends the event. · ERackOrStationFaultType in_EventType:

Return values

A value from the list of predefined types of events, see ERackOrStation-

FaultType (Page 387).

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The instance is not registered in Runtime Manager.

SREC_WRONG_MODULE_TYPE

The specified HW identifier is not that of a distributed device.

SREC_WRONG_MODULE_STATE

The device with the specified HW identifier already reports the status Fault/Return.

SREC_DOES_NOT_EXIST

The specified HW identifier of the device does not exist.

SREC_TIMEOUT

The function does not return on time.

Table 7- 279 RackOrStationFaultEvent() - .NET (C#)

Syntax

void RackOrStationFaultEvent( ushort in_HardwareIdentifier,

Parameter Exceptions

ERackOrStationFaultType in_EventType );
· ushort in_HardwareIdentifier:

The hardware identifier of the device that sends the event. · ERackOrStationFaultType in_EventType:

A value from the list of predefined types of events, see ERackOrStation-

FaultType (Page 387).

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The instance is not registered in Runtime Manager.

272

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

ERuntimeErrorCode.DoesNotExist ERuntimeErrorCode.WrongModuleType ERuntimeErrorCode.WrongModuleState
ERuntimeErrorCode.Timeout

The specified HW identifier of the device does not exist.
The specified HW identifier is not that of a distributed device.
The device with the specified HW identifier already reports the status Fault/Return.
The function does not return on time.

7.6.9

Events for IInstances

7.6.9.1

Events for operating state and cycle control

Events for operating state and cycle control
The following events are triggered for the IInstances interface:

Table 7- 280 Events for IInstances

Event OnOperatingStateChanged (Page 274) OnLedChanged (Page 277) OnConfigurationChanging (Page 279)
OnConfigurationChanged (Page 282)
OnSyncPointReached (Page 284)

Cause The operating state of the virtual controller has changed.
The LED display of the virtual controller has changed. The configuration of the virtual controller changes: · During power up from the Virtual SIMATIC Memory Card · At the start of a download When this event is triggered, the stored tag list is reset. The configuration of the virtual controller has changed: · After power up from the Virtual SIMATIC Memory Card · At the end of a download · When the IP address changes
The virtual controller has reached a synchronization point. If the virtual controller is being operated in Default mode, the SendSyncEventInDefaultMode flag must be set to receive the event. See SendSyncEventInDefaultMode (Page 248).

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

273

User interfaces (API) 7.6 API IInstances

OnOperatingStateChanged events

OnOperatingStateChanged
Registers or unregisters an event handler method.

Table 7- 281 OnOperatingStateChanged - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_II_EREC_DT_EOS_EOS OnOperatingStateChanged;
None. See Delegate_II_EREC_DT_EOS_EOS (Page 329). None None The event handler method runs in a separate thread.

RegisterOnOperatingStateChangedCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 282 RegisterOnOperatingStateChangedCallback() - Native C++

Syntax Parameters

void RegisterOnOperatingStateChangedCallback( EventCallback_II_SREC_ST_SROS_SROS in_CallbackFunction
); · EventCallback_II_SREC_ST_SROS_SROS in_CallbackFunction:

Return values Note

A callback function that subscribes to the event. See EventCallback_II_SREC_ST_SROS_SROS (Page 315). None
The callback function runs in a separate thread.

RegisterOnOperatingStateChangedEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registering a new event object causes the previous event object to be deleted.

Table 7- 283 RegisterOnOperatingStateChangedEvent() - Native C++

Syntax Parameters

void RegisterOnOperatingStateChangedEvent(); void RegisterOnOperatingStateChangedEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

274

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Example C++ Example C++

// Thread 1 -------------------------------------------------ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);
IInstance* psa = NULL; if (result == SREC_OK) {
result = api->RegisterInstance(&psa); }
// Register the internal event object psa->RegisterOnOperatingStateChangedEvent();
// Thread 2 -------------------------------------------------while (condition) {
// Wait for the event to be set (timeout after 10s) bool isEventSet = psa>WaitForOnOperatingStateChangedEvent(10000); if (isEventSet) { // Do Something ... } } // Thread 1 -------------------------------------------------ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);
IInstance* psa = NULL; if (result == SREC_OK) {
result = api->RegisterInstance(&psa); }
// Create an event object HANDLE eventHandle = CreateEvent(NULL, FALSE, FALSE, NULL);
// Register the user created event object psa->RegisterOnOperatingStateChangedEvent(&eventHandle);
// Do Something ... // Clean up the handle CloseHandle(eventHandle);
// Thread 2 -------------------------------------------------while (condition) {
// Wait for the event to be set //OR: WaitForSingleObject(eventHandle, INFINITE); //psa>WaitForOnOperatingStateChangedEvent();
// Do Something ... }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

275

User interfaces (API) 7.6 API IInstances

UnregisterOnOperatingStateChangedCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 284 UnregisterOnOperatingStateChangedCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnOperatingStateChangedCallback();
None None

UnregisterOnOperatingStateChangedEvent()
Unregisters the event object.

Table 7- 285 UnregisterOnOperatingStateChangedEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnOperatingStateChangedEvent();
None None

Table 7- 286 UnregisterOnOperatingStateChangedEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnOperatingStateChangedEvent();
None None

WaitForOnOperatingStateChangedEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 287 WaitForOnOperatingStateChangedEvent() - Native C++

Syntax Parameters

bool WaitForOnOperatingStateChangedEvent(); bool WaitForOnOperatingStateChangedEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

276

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 288 WaitForOnOperatingStateChangedEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnOperatingStateChangedEvent(); bool WaitForOnOperatingStateChangedEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

OnLedChanged events

OnLedChanged
Registers or unregisters an event handler method.

Table 7- 289 OnLedChanged - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_II_EREC_DT_ELT_ELM OnLedChanged;
None. See Delegate_II_EREC_DT_ELT_ELM (Page 330). None None The event handler method runs in a separate thread.

RegisterOnLedChangedCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 290 RegisterOnLedChangedCallback() - Native C++

Syntax Parameters

void RegisterOnLedChangedCallback( EventCallback_II_SREC_ST_SRLT_SRLM in_CallbackFunction
); · EventCallback_II_SREC_ST_SRLT_SRLM in_CallbackFunction:

Return values Note

A callback function that subscribes to an event. See EventCallback_II_SREC_ST_SRLT_SRLM (Page 319). None
The callback function runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

277

User interfaces (API) 7.6 API IInstances

RegisterOnLedChangedEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registering a new event object causes the previous event object to be deleted.

Table 7- 291 RegisterOnLedChangedEvent() - Native C++

Syntax Parameters

void RegisterOnLedChangedEvent(); void RegisterOnLedChangedEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

UnregisterOnLedChangedCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 292 UnregisterOnLedChangedCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnLedChangedCallback();
None None

UnregisterOnLedChangedEvent()
Unregisters the event object.

Table 7- 293 UnregisterOnLedChangedEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnLedChangedEvent();
None None

Table 7- 294 UnregisterOnLedChangedEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnLedChangedEvent();
None None

278

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

WaitForOnLedChangedEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 295 WaitForOnLedChangedEvent() - Native C++

Syntax Parameters

bool WaitForOnLedChangedEvent(); bool WaitForOnLedChangedEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

Table 7- 296 WaitForOnLedChangedEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnLedChangedEvent(); bool WaitForOnLedChangedEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

OnConfigurationChanging events

OnConfigurationChanging
Registers or unregisters an event handler method.

Table 7- 297 OnConfigurationChanging - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_II_EREC_DT OnConfigurationChanging;
None. See Delegate_II_EREC_DT (Page 328). None None The event handler method runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

279

User interfaces (API) 7.6 API IInstances

RegisterOnConfigurationChangingCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 298 RegisterOnConfigurationChangingCallback() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangingCallback( EventCallback_II_SREC_ST in_CallbackFunction
); · EventCallback_II_SREC_ST in_CallbackFunction:

Return values Note

A callback function that subscribes to an event. See EventCallback_II_SREC_ST (Page 317). None The callback function runs in a separate thread.

RegisterOnConfigurationChangingEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registration of a new event object causes the previous event object to be deleted.

Table 7- 299 RegisterOnConfigurationChangingEvent() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangingEvent(); void RegisterOnConfigurationChangingEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

UnregisterOnConfigurationChangingCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 300 UnregisterOnConfigurationChangingCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangingCallback();
None None

280

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

UnregisterOnConfigurationChangingEvent()
Unregisters the event object.

Table 7- 301 UnregisterOnConfigurationChangingEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangingEvent();
None None

Table 7- 302 UnregisterOnConfigurationChangingEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnConfigurationChangingEvent();
None None

WaitForOnConfigurationChangingEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 303 WaitForOnConfigurationChangingEvent() - Native C++

Syntax Parameters

bool WaitForOnConfigurationChangingEvent(); bool WaitForOnConfigurationChangingEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

Table 7- 304 WaitForOnConfigurationChangingEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnConfigurationChangingEvent(); bool WaitForOnConfigurationChangingEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

281

User interfaces (API) 7.6 API IInstances

OnConfigurationChanged events

OnConfigurationChanged
Registers or unregisters an event handler method.

Table 7- 305 OnConfigurationChanged - .NET (C#)

Syntax Parameters
Return values Exceptions Note

event Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 OnConfigurationChanged; None. See Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 (Page 332). None None The event handler method runs in a separate thread.

RegisterOnConfigurationChangedCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 306 RegisterOnConfigurationChangedCallback() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangedCallback( EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32
in_CallbackFunction ); · EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32
in_CallbackFunction:

Return values Note

A callback function that subscribes to an event. See EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32 (Page 318). None
The callback function runs in a separate thread.

282

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

RegisterOnConfigurationChangedEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registering a new event object causes the previous event object to be deleted.

Table 7- 307 RegisterOnConfigurationChangedEvent() - Native C++

Syntax Parameters

void RegisterOnConfigurationChangedEvent(); void RegisterOnConfigurationChangedEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

UnregisterOnConfigurationChangedCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 308 UnregisterOnConfigurationChangedCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangedCallback();
None None

UnregisterOnConfigurationChangedEvent()
Unregisters the event object.

Table 7- 309 UnregisterOnConfigurationChangedEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnConfigurationChangedEvent();
None None

Table 7- 310 UnregisterOnConfigurationChangedEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnConfigurationChangedEvent();
None None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

283

User interfaces (API) 7.6 API IInstances

WaitForOnConfigurationChangedEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 311 WaitForOnConfigurationChangedEvent() - Native C++

Syntax Parameters

bool WaitForOnConfigurationChangedEvent(); bool WaitForOnConfigurationChangedEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

Table 7- 312 WaitForOnConfigurationChangedEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnConfigurationChangedEvent(); bool WaitForOnConfigurationChangedEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

OnSyncPointReached events

OnSyncPointReached
Registers or unregisters an event handler method.

Table 7- 313 OnSyncPointReached - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 OnSyncPointReached; None. See Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 (Page 331). None None The event handler method runs in a separate thread.

284

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

RegisterOnSyncPointReachedCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 314 RegisterOnSyncPointReachedCallback() - Native C++

Syntax Parameters

void RegisterOnSyncPointReachedCallback( EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32
in_CallbackFunction );
· EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 in_CallbackFunction:

Return values Note

A callback function that subscribes to an event. See EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 (Page 316). None
The callback function runs in a separate thread.

RegisterOnSyncPointReachedEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registering a new event object causes the previous event object to be deleted.

Table 7- 315 RegisterOnSyncPointReachedEvent() - Native C++

Syntax Parameters

void RegisterOnSyncPointReachedEvent(); void RegisterOnSyncPointReachedEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

UnregisterOnSyncPointReachedCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 316 UnregisterOnSyncPointReachedCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnSyncPointReachedCallback();
None None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

285

User interfaces (API) 7.6 API IInstances

UnregisterOnSyncPointReachedEvent()
Unregisters the event object.

Table 7- 317 UnregisterOnSyncPointReachedEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnSyncPointReachedEvent();
None None

Table 7- 318 UnregisterOnSyncPointReachedEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnSyncPointReachedEvent();
None None

WaitForOnSyncPointReachedEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 319 WaitForOnSyncPointReachedEvent() - Native C++

Syntax Parameters

SOnSyncPointReachedResult WaitForOnSyncPointReachedEvent(); SOnSyncPontReachedResult WaitForOnEndOfCycleOnSyncPointReachedEvent(
UINT32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · SOnSyncPointReachedResult:

A structure that supplies information about the event. See SOnSyncPointReachedResult (Page 355).

286

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

Table 7- 320 WaitForOnSyncPointReachedEvent() - .NET (C#)

Syntax Parameters

SOnSyncPointReachedResult WaitForOnSyncPointReachedEvent(); SOnSyncPointReachedResult WaitForOnSyncPointReachedEvent(
UInt32 in_Time_ms );
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · SOnSyncPointReachedResult:

A structure that supplies information about the event. See SOnSyncPointReachedResult (Page 355).

7.6.9.2

Events for acyclic services

OnDataRecordRead / OnDataRecordWrite events

OnDataRecordRead
Registers or unregisters an event handler method.

Table 7- 321 OnDataRecordRead - .NET (C#)

Syntax Parameter Return values Exceptions Note

event Delegate_II_EREC_DT_SDRI OnDataRecordRead;
None. See Delegate_II_EREC_DT_SDRI (Page 334). None None The Event-Handler Methode runs in a separate thread.

OnDataRecordWrite
Registers or unregisters an event handler method.

Table 7- 322 OnDataRecordWrite - .NET (C#)

Syntax Parameter Return values Exceptions Note

event Delegate_II_EREC_DT_SDR OnDataRecordWrite;
None. See Delegate_II_EREC_DT_SDR (Page 333). None None The event handler method runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

287

User interfaces (API) 7.6 API IInstances

RegisterOnDataRecordReadCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 323 RegisterOnDataRecordReadCallback() - Native C++

Syntax Parameters

void RegisterOnDataRecordReadCallback ( Event Callback_II_SREC_ST_SDRI in_CallbackFunction
); · EventCallback_II_SREC_ST_SDRI in_CallbackFunction:

Return values Note

A callback function that subscribes to the event. See EventCallback_II_SREC_ST_SDRI. None The callback function runs in a separate thread.

UnregisterOnDataRecordReadCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 324 UnregisterOnDataRecordReadCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnDataRecordReadCallback();
None None

RegisterOnDataRecordWriteCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 325 RegisterOnDataRecordWriteCallback() - Native C++

Syntax Parameters
Return values Note

void RegisterOnDataRecordWriteCallback ( EventCallback_II_SREC_ST_SDRI_BYTE in_CallbackFunction
);
· EventCallback_II_SREC_ST_SDRI_BYTE in_CallbackFunction: A callback function that subscribes to the event. See EventCallback_II_SREC_ST_SDRI_BYTE. None The callback function runs in a separate thread.

288

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

UnregisterOnDataRecordWriteCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 326 UnregisterOnDataRecordWriteCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnDataRecordWriteCallback();
None None

OnAlarmNotification events

OnAlarmNotificationDone()
Registers or unregisters an event handler method.

Table 7- 327 OnAlarmNotificationDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32_UINT32 OnAlarmNotificationDone;
None. See Delegate_SREC_ST_UINT32_UINT32 (Page 338). None None The event handler method runs in a separate thread.

RegisterOnAlarmNotificationDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 328 RegisterOnAlarmNotificationDoneCallback() - Native C++

Syntax Parameters

void RegisterOnAlarmNotificationDoneCallback ( Event Callback_II_SREC_ST_SDRI in_CallbackFunction
); · EventCallback_II_SREC_ST_UINT32_UINT32 in_CallbackFunction:

A callback function that subscribes to the event.

Return values Note

See EventCallback_II_SREC_ST_UINT32_UINT32 (Page 322). None The callback function runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

289

User interfaces (API) 7.6 API IInstances

UnregisterOnAlarmNotificationDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 329 UnregisterOnAlarmNotificationDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnAlarmNotificationDoneCallback ();
None None

OnProcessEvent events

OnProcessEventDone()
Registers or unregisters an event handler method.

Table 7- 330 OnProcessEventDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32 OnProcessEventDone; None. See Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32. (Page 336) None None The event handler method runs in a separate thread.

RegisterOnProcessEventDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 331 RegisterOnProcessEventDoneCallback() - Native C++

Syntax Parameters
Return values Note

· void RegisterOnProcessEventDoneCallback ( EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32
in_CallbackFunction );
· EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32 in_CallbackFunction:
A callback function that subscribes to the event. See EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32 (Page 323) None The callback function runs in a separate thread.

290

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

UnregisterOnProcessEventDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 332 UnregisterOnProcessEventDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnProcessEventDoneCallback ();
None None

OnPullOrPlugEvent events

OnPullOrPlugEventDone()
Registers or unregisters an event handler method.

Table 7- 333 OnPullOrPlugEventDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32_EPPET_UINT32 OnPullOrPlugEventDone;
None. See Delegate_SREC_ST_UINT32_EPPET_UINT32 (Page 335). None None The event handler method runs in a separate thread.

RegisterOnPullOrPlugEventDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 334 RegisterOnPullOrPlugEventDoneCallback() - Native C++

Syntax
Parameters
Return values Note

· void RegisterOnPullOrPlugEventDoneCallback ( EventCallback_II_SREC_ST_UINT32_EPPET_UINT32
in_CallbackFunction ); · EventCallback_II_SREC_ST_UINT32_EPPET_UINT32
in_CallbackFunction:
A callback function that subscribes to the event. See EventCallback_II_SREC_ST_UINT32_EPPET_UINT32 (Page 324). None The callback function runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

291

User interfaces (API) 7.6 API IInstances

UnregisterOnPullOrPlugEventDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 335 UnregisterOnPullOrPlugEventDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnPullOrPlugEventDoneCallback ();
None None

OnStatusEvent events

OnStatusEventDone()
Registers or unregisters an event handler method.

Table 7- 336 OnStatusEventDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32 OnStatusEventDone;
None. See Delegate_SREC_ST_UINT32 (Page 337). None None The event handler method runs in a separate thread.

RegisterOnStatusEventDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 337 RegisterOnStatusEventDoneCallback() - Native C++

Syntax Parameters
Return values Note

· void RegisterOnStatusEventDoneCallback ( EventCallback_II_SREC_ST_UINT32 in_CallbackFunction
); · EventCallback_II_SREC_ST_UINT32 in_CallbackFunction:
A callback function that subscribes to the event.
See EventCallback_II_SREC_ST_UINT32 (Page 326). None The callback function runs in a separate thread.

292

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

UnregisterOnStatusEventDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 338 UnregisterOnStatusEventDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnStatusEventDoneCallback ();
None None

OnProfileEvent events

OnProfileEventDone()
Registers or unregisters an event handler method.

Table 7- 339 OnProfileEventDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32 OnProfileEventDone;
None. See Delegate_SREC_ST_UINT32 (Page 337). None None The event handler method runs in a separate thread.

RegisterOnProfileEventDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 340 RegisterOnProfileEventDoneCallback() - Native C++

Syntax Parameters
Return values Note

· void RegisterOnProfileEventDoneCallback ( EventCallback_II_SREC_ST_UINT32 in_CallbackFunction
); · EventCallback_II_SREC_ST_UINT32 in_CallbackFunction:
A callback function that subscribes to the event.
See EventCallback_II_SREC_ST_UINT32 (Page 326). None The callback function runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

293

User interfaces (API) 7.6 API IInstances

UnregisterOnProfileEventDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 341 UnregisterOnProfileEventDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnProfileEventDoneCallback ();
None None

OnUpdateEvent events

OnUpdateEventDone()
Registers or unregisters an event handler method.

Table 7- 342 OnUpdateEventDone() - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_SREC_ST_UINT32 OnUpdateEventDone;
None. See Delegate_SREC_ST_UINT32 (Page 337). None None The event handler method runs in a separate thread.

RegisterOnUpdateEventDoneCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 343 RegisterOnUpdateEventDoneCallback() - Native C++

Syntax Parameters
Return values Note

· void RegisterOnUpdateEventDoneCallback ( EventCallback_II_SREC_ST_UINT32 in_CallbackFunction
); · EventCallback_II_SREC_ST_UINT32 in_CallbackFunction:
A callback function that subscribes to the event.
See EventCallback_II_SREC_ST_UINT32 (Page 326). None The callback function runs in a separate thread.

294

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.6 API IInstances

UnregisterOnUpdateEventDoneCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 344 UnregisterOnUpdateEventDoneCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnUpdateEventDoneCallback ();
None None

RackOrStationFault events

OnRackOrStationFaultEvent
Registers or unregisters an event handler method.

Table 7- 345 OnRackOrStationFaultEvent - .NET (C#)

Syntax Parameter Return values Exceptions Note

event Delegate_SREC_ST_UINT32_ERSFET OnRackOrStationFault;
None. See Delegate_SREC_ST_UINT32_ERSFET (Page 339). None None The event handler method runs in a separate thread.

RegisterOnRackOrStationFaultEventCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be deleted.

Table 7- 346 RegisterOnRackOrStationFaultEventCallback() - Native C++

Syntax Parameter

void RegisterOnRackOrStationFaultEventCallback ( EventCallback_II_SREC_ST_UINT32_ERSFET in_CallbackFunction ); · EventCallback_II_ SREC_ST_UINT32_ERSFET in_CallbackFunction.

A callback function that subscribes to the event.

Return values Note

See EventCallback_II_SREC_ST_UINT32_ERSFET (Page 325) None The callback function runs in a separate thread.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

295

User interfaces (API) 7.7 API IRemoteRuntimeManager

UnregisterOnRackOrStationFaultEventCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 347 UnregisterOnRackOrStationFaultEventCallback() - Native C++

Syntax Parameter Return values

void UnregisterOnRackOrStationFaultEventCallback ();
None None

7.7

API IRemoteRuntimeManager

7.7.1

Interfaces - Information and settings

Dispose()

Deletes the managed interface and unloads the native components of the user interfaces.
Note When the interface of the Remote Runtime Manager is deleted, no IInstance interface which was generated by the IRemoteRuntimeManager interface can be used. The .NET Garbage Collector clears its IRemoteRuntimeManager interface when no active references are present.

Table 7- 348 Dispose() - .NET (C#)

Syntax Parameters Return values

void Dispose()
None None

296

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.7 API IRemoteRuntimeManager

GetVersion()

Returns the version of the remote Runtime Manager. If the function fails, version 0.0 is returned.

Table 7- 349 GetVersion() - Native C++

Syntax Parameters Return values

UINT32 GetVersion();
None UINT32: Remote Runtime Manager Version (HIWORD = Major, LOWORD = Minor)

Table 7- 350 Version { get; } - .NET (C#)

Syntax Parameters Return values

UInt32 Version { get; }
None Uint32: Remote Runtime Manager Version (HIWORD = Major, LOWORD = Minor)

GetIP() / IP { get; }
Returns the IP address of the PC on which the remote Runtime Manager is running. If the function fails, the return value is 0.

Table 7- 351 GetIP() - Native C++

Syntax Parameters Return values

UIP GetIP();
None UIP: Returns the IP address of the PC on which the Runtime Manager is running.

Table 7- 352 IP { get; } - .NET (C#)

Syntax Parameters Return values

SIP IP { get; }
None SIP: Returns the IP address of the PC on which the Runtime Manager is running.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

297

User interfaces (API) 7.7 API IRemoteRuntimeManager

GetPort() / Port { get; }
Returns the open port of the PC on which the remote Runtime Manager is running. If the function fails, the return value is 0.

Table 7- 353 GetPort() - Native C++

Syntax Parameters Return values

UINT16 GetPort();
None UINT16: Open port of the PC on which the remote Runtime Manager is running.

Table 7- 354 Port { get; } - .NET (C#)

Syntax Parameters Return values

UInt16 Port { get; }
None UInt16: Open port of the PC on which the remote Runtime Manager is running.

GetRemoteComputerName() / RemoteComputerName { get; }
Returns the name of the PC on which the remote Runtime Manager is running.

Table 7- 355 GetRemoteComputerName() - Native C++

Syntax Parameters

ERuntimeErrorCode GetRemoteComputerName( WCHAR* inout_Name, UINT32 in_ArrayLength
); · WCHAR* inout_Name:

A user-allocated array for the computer name. · UINT32 in_ArrayLength:

Return values

The array length. The array should be longer than MAX_COMPUTERNAME_LENGTH.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The interface is disconnected from the remote Runtime Manager.

SREC_INDEX_OUT_OF_RANGE

The array is too small to accommodate the computer name.

Table 7- 356 RemoteComputerName { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

string RemoteComputerName { get; }

None

string: Name of the PC on which the remote Runtime Manager is running.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.IndexOutOfRange

The array is too small to accommodate the computer name.

298

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.7 API IRemoteRuntimeManager

Disconnect()

Closes the connection to the remote Runtime Manager.
Note All applications that are connected to the remote Runtime Manager lose this connection.

Table 7- 357 Disconnect() - Native C++

Syntax Parameters Return values

ERuntimeErrorCode Disconnect();
None Runtime error code SREC_OK SREC_INTERFACE_REMOVED

SREC_TIMEOUT

Condition The function is successful. The interface is disconnected from the remote Runtime Manager. The function does not return on time.

Table 7- 358 Disconnect() - .NET (C#)

Syntax Parameters Return values Exceptions

void Disconnect();

None

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

299

User interfaces (API) 7.7 API IRemoteRuntimeManager

7.7.2

Simulation Runtime instances

7.7.2.1

Simulation Runtime instances (remote)

GetRegisteredInstancesCount()
Returns the number of instances that are registered in Runtime Manager. If the function fails, the return value is 0.

Table 7- 359 GetRegisteredInstancesCount() - Native C++

Syntax Parameters Return values

UINT32 GetRegisteredInstancesCount();
None UINT32: Number of available instances.

GetRegisteredInstanceInfoAt()
Returns information about an already registered instance. You can use the ID or name to create an interface of this instance (see CreateInterface()).

Table 7- 360 GetRegisteredInstanceInfoAt() - Native C++

Syntax Parameters

ERuntimeErrorCode GetRegisteredInstanceInfoAt( UINT32 in_Index, SInstanceInfo* out_InstanceInfo
); · UINT32 in_Index:

Index of the created instance from which you want to receive the information. The index must be less than the value you receive when you call GetRegisteredInstanceCount().
· SInstanceInfo* out_InstanceInfo:

Return values

The information with name and ID of the instance. See SInstanceInfo

(Page 349).

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The interface is disconnected from the remote Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_INDEX OUT_OF_RANGE

There is no instance information for this index.

300

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.7 API IRemoteRuntimeManager

RegisteredInstanceInfo { get; }
Returns information about an already registered instance. You can use the ID or name of this instance to create an interface of this instance, see CreateInterface().

Table 7- 361 RegisterInstanceInfo { get; } - .NET (C#)

Syntax Parameters Return values Exceptions

SInstanceInfo[] RegisteredInstanceInfo { get; }

None

None

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

RegisterInstance()
Registers a new instance of a virtual controller in Runtime Manager. Creates and returns an interface of this instance.

Table 7- 362 RegisterInstance() - Native C++

Syntax Parameters

ERuntimeErrorCode RegisterInstance( IInstance** out_InstanceInterface
); ERuntimeErrorCode RegisterInstance(
WCHAR* in_InstanceName, IInstance** out_InstanceInterface ); ERuntimeErrorCode RegisterInstance( ECPUType in_CPUType, IInstance** out_InstanceInterface ); ERuntimeErrorCode RegisterInstance( ECPUType in_CPUType, WCHAR* in_InstanceName, IInstance** out_InstanceInterface );
· ECPUType in_CPUType:

Defines which CPU type is simulated at the start of the instance. The default setting is "SRCT_1500_Unspecified".

When a different CPU type is loaded via STEP 7 or from the Virtual SIMATIC Memory Card, this CPU type applies.
· WCHAR* in_InstanceName:

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already exists, the name "Instance_#.#" is used, in which the second # is a counter that is incremented until the name is unique. The length of the name must be less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).
· IInstance** out_InstanceInterface:

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with NULL. The interface is created within the function.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

301

User interfaces (API) 7.7 API IRemoteRuntimeManager

Return values Example C++

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The interface is disconnected from the remote Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The name or the IInstance pointer is invalid.

SREC_LIMIT_REACHED

There are already 16 instances registered in Runtime Manager.

SREC_ALREADY_EXISTS

An instance with this name already exists.

ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);

// Example: How To Create And Register An Instance // And To Get An Interface Of The Instance The Same Time IInstance* psa = NULL; if (result == SREC_OK) {
result = api->RegisterInstance(&psa); }

Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

302

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.7 API IRemoteRuntimeManager

Table 7- 363 RegisterInstance() - .NET (C#)

Syntax Parameters

IInstance RegisterInstance(); IInstance RegisterInstance(
string in_InstanceName ); IInstance RegisterInstance(
ECPUType in_CPUType ); IInstance RegisterInstance(
ECPUType in_CPUType string in_InstanceName );
· ECPUType in_CPUType:

Defines which CPU type is simulated at the start of the instance. The default setting is "ECPUType.Unspecified".

When a different CPU type is loaded via STEP 7 or from the Virtual SIMATIC Memory Card, this CPU type applies.
· string in_InstanceName:

Return values Exceptions

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is

given the name "Instance_#" (# is the ID of the instance). If this name already

exists, the name "Instance_#.#" is used, in which the second # is a counter

that is incremented until the name is unique. The length of the name must be

less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).

If the function is successful, an interface of a virtual controller. Otherwise, a Null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name is invalid.

ERuntimeErrorCode.LimitReached

There are already 16 instances registered in Runtime Manager.

ERuntimeErrorCode.AlreadyExists

An instance with this name already exists.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

303

User interfaces (API) 7.7 API IRemoteRuntimeManager

RegisterCustomInstance()
Registers a new instance of a virtual controller in Runtime Manager. Creates and returns an interface of this instance.

Table 7- 364 RegisterCustomInstance() - Native C++

Syntax Parameters

ERuntimeErrorCode RegisterCustomInstance( WCHAR* in_VplcDll, IInstance** out_InstanceInterface
); ERuntimeErrorCode RegisterCustomInstance(
WCHAR* in_VplcDll, WCHAR* in_InstanceName, IInstance** out_InstanceInterface );
· WCHAR* in_VplcDll:

The complete path to the DLL of the virtual controller that Siemens.Simatic.Simulation.Runtime.Instance.exe loads at PowerOn.
· WCHAR* in_InstanceName:

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already exists, the name "Instance_#.#" is used, in which the second # is a counter that is incremented until the name is unique. The length of the name must be less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).
· IInstance** out_InstanceInterface:

Return values Example C++

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with NULL. The interface is created within the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The interface is disconnected from the remote Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The DLL name, the instance name or the IInstance pointer is invalid.

SREC_LIMIT_REACHED

There are already 16 instances registered in Runtime Manager.

SREC_ALREADY_EXISTS

An instance with this name already exists.

ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);

// Example: How To Create And Register An Instance // And To Get An Interface Of The Instance The Same Time IInstance* psa = NULL; if (result == SREC_OK) {
result = api->RegisterCustomInstance("C:\\Temp\\vplc.dll"); }

304

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118).

User interfaces (API) 7.7 API IRemoteRuntimeManager

Table 7- 365 RegisterCustomInstance() - .NET (C#)

Syntax Parameters

IInstance RegisterCustomInstance( string in_VplcDll
); IInstance RegisterCustomInstance(
string in_VplcDll, string in_InstanceName );
· string in_VplcDll:

The complete path to the DLL of the virtual controller that Siemens.Simatic.Simulation.Runtime.Instance.exe loads at PowerOn.
· string in_InstanceName:

Return values Exceptions

Name to be assigned to the instance. Every instance must have a unique name. If no name is assigned when registering a new instance, the instance is given the name "Instance_#" (# is the ID of the instance). If this name already

exists, the name "Instance_#.#" is used, in which the second # is a counter

that is incremented until the name is unique. The length of the name must be

less than DINSTANCE_NAME_LENGTH. See Data types (Page 340).

If the function is successful, an interface of a virtual controller; otherwise a Null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name or the ID is invalid.

ERuntimeErrorCode.LimitReached

There are already 16 instances registered in Runtime Manager.

ERuntimeErrorCode.AlreadyExists

An instance with this name already exists.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

305

User interfaces (API) 7.7 API IRemoteRuntimeManager

CreateInterface()
Creates and returns an interface of an already registered instance of a virtual controller.
The instance could have been registered via the application or another application that uses the Simulation Runtime API.

Table 7- 366 CreateInterface() - Native C++

Syntax Parameters

ERuntimeErrorCode CreateInterface( WCHAR* in_InstanceName, IInstance** out_InstanceInterface
); ERuntimeErrorCode CreateInterface(
INT32 in_InstanceID, IInstance** out_InstanceInterface );
· INT32 in_InstanceID:

The ID of the registered instance from which you want to receive the interface. · WCHAR* in_InstanceName:

The name of the registered instance from which you want to receive the interface.
· IInstance** out_InstanceInterface:

Return values Example C++

Pointer to a Simulation Runtime interface pointer. The pointer must be initialized with NULL. The interface is created within the function.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_INTERFACE_REMOVED

The interface is disconnected from the remote Runtime Manager.

SREC_TIMEOUT

The function does not return on time.

SREC_WRONG_ARGUMENT

The name, the ID or the IInstance- pointer is invalid.

SREC_DOES_NOT_EXIST

The instance is not registered in Runtime Manager.

ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);

Example C++

IInstance* psa1 = NULL; IInstance* psa2 = NULL; if (result == SREC_OK) {
result = api->CreateInterface(0, &psa1);
result = api->CreateInterface(0, &psa2); // psa2 will be the same as psa1 }
ISimulationRuntimeManager * api = NULL; ERuntimeErrorCode result = Initialize(&api);

IInstance* psa = NULL; if (result == SREC_OK)
{ result = api->CreateInterface(L"My SimulationRuntime Instance",
&psa);
}

306

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Note Native C++ If you no longer require the interface, delete it. See DestroyInterface() (Page 118)

User interfaces (API) 7.7 API IRemoteRuntimeManager

Table 7- 367 CreateInterface() - .NET (C#)

Syntax Parameters

IInstance CreateInterface( string in_InstanceName
); IInstance CreateInterface(
INT32 in_InstanceID );
· INT32 in_InstanceID:

The ID of the registered instance from which you want to receive the interface. · string in_InstanceName:

Return values Exceptions

The name of the registered instance from which you want to receive the inter-

face.

If the function is successful, an interface of a virtual controller; otherwise a Null pointer.

Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException

Runtime error code

Condition

ERuntimeErrorCode.InterfaceRemoved

The interface is disconnected from the remote Runtime Manager.

ERuntimeErrorCode.Timeout

The function does not return on time.

ERuntimeErrorCode.WrongArgument The name or the ID is invalid.

ERuntimeErrorCode.DoesNotExists

The instance is not registered in Runtime Manager.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

307

User interfaces (API) 7.7 API IRemoteRuntimeManager

7.7.3

Events for IRemoteRuntimeManager

7.7.3.1

OnConnectionLost events

Description

The event is triggered when the connection to the Remote Runtime Manager has been terminated.

OnConnectionLost
Registers or unregisters an event handler method.

Table 7- 368 OnConnectionLost - .NET (C#)

Syntax Parameters Return values Exceptions Note

event Delegate_IRRTM OnConnectionLost;
None. See Delegate_IRRTM (Page 332) None None The event handler method runs in a separate thread.

RegisterOnConnectionLostCallback()
When the event occurs, the registered callback function is called. Only one callback function can be registered for the event. Registering a new callback function causes the previous callback function to be unregistered.

Table 7- 369 RegisterOnConnectionLostCallback() - Native C++

Syntax Parameters

void RegisterOnConnectionLostCallback( EventCallback_IRRTM in_CallbackFunction
); · EventCallback_IRRTM in_CallbackFunction:

Return values Note

A callback function that subscribes to an event. See EventCallback_IRRTM (Page 314). None
The callback function runs in a separate thread.

308

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.7 API IRemoteRuntimeManager

RegisterOnConnectionLostEvent()
When the event occurs, the registered event object is set to the signaled state. Only one event object can be registered for the event. Registration of a new event object causes the previous event object to be deleted.

Table 7- 370 RegisterOnConnectionLostEvent() - Native C++

Syntax Parameters

void RegisterOnConnectionLostEvent(); void RegisterOnConnectionLostEvent(
HANDLE* in_Event );
· None:

An internal event object is registered. · HANDLE* in_Event:

Return values

A handle for a user-specific event object. The event object is registered. None

Table 7- 371 RegisterOnConnectionLostEvent() - .NET (C#)

Syntax Parameters Return values

void RegisterOnConnectionLostEvent();
None None

UnregisterOnConnectionLostCallback()
Unregisters the callback function. When the event occurs, no callback function is called.

Table 7- 372 UnregisterOnConnectionLostCallback() - Native C++

Syntax Parameters Return values

void UnregisterOnConnectionLostCallback();
None None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

309

User interfaces (API) 7.7 API IRemoteRuntimeManager

UnregisterOnConnectionLostEvent()
Unregisters the event object.

Table 7- 373 UnregisterOnConnectionLostEvent() - Native C++

Syntax Parameters Return values

void UnregisterOnConnectionLostEvent();
None None

Table 7- 374 UnregisterOnConnectionLostEvent() - .NET (C#)

Syntax Parameters Return values

void UnregisterOnConnectionLostEvent();
None None

WaitForOnConnectionLostEvent()
The function blocks the program until the registered event object is in the signaled state or the timeout interval is exceeded.

Table 7- 375 WaitForOnConnectionLostEvent() - Native C++

Syntax Parameters

bool WaitForOnConnectionLostEvent(); bool WaitForOnConnectionLostEvent(
UINT32 in_Time_ms ) ;
· None:

The time limit is set to INFINITE. · UINT32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

Table 7- 376 WaitForOnConnectionLostEvent() - .NET (C#)

Syntax Parameters

bool WaitForOnConnectionLostEvent(); bool WaitForOnConnectionLostEvent(
UInt32 in_Time_ms ) ;
· None:

The time limit is set to INFINITE. · UInt32 in_Time_ms:

Return values

Value for the time limit in milliseconds. · true: If the event object was set to the signaled state. · false: If no event was received during the defined time limit.

310

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8

Data types

Note Unsupported data types The Runtime API does not support the STRING and WSTRING data types.

Supported data types
In PLCSIM Advanced V3.0, the Runtime API supports the data types of the S7-1500 CPUs.
Converting data types
When writing, data types are not transferred BCD-coded but mapped onto primitive data types. The data types Counter, Date and Time must be transferred to the API BDC-coded so that the values are written to the counter and no incorrect values are returned when reading. For these data types, you must perform a BCD conversion before writing and a BCD backconversion after reading.
Example: If the value 999 is transferred to the API as 2457H, then Write modifies the value 2457H to 999. Without BCD conversion, there is no UInt16 value and Write writes no value at all.
Additional information
For information on data types and conversion, refer to section "Data types" in the SIMATIC STEP 7 Basic/Professional (https://support.industry.siemens.com/cs/ww/en/view/109755202) System Manual.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

311

User interfaces (API) 7.8 Data types

7.8.1

DLL import functions (Native C++)

7.8.1.1

ApiEntry_Initialize

Description

Type of the central entry point for the API library (DLL).

Table 7- 377 ApiEntry_Initialize - Native C++

Syntax Parameters

typedef ERuntimeErrorCode(*ApiEntry_Initialize)( ISimulationRuntimeManager** out_RuntimeManagerInterface
); · ISimulationRuntimeManager**
out_SimulationRuntimeManagerInterface:

Pointer to a Runtime Manager interface pointer. The pointer must be initialized with NULL. The interface is created within the function.
· UINT32 in_InterfaceVersion:

Return values

Version of the API interface to be downloaded:

API_DLL_INTERFACE_VERSION.

Runtime error code

Condition

SREC_OK

The function is successful.

SREC_WRONG_ARGUMENT

The pointer to the Runtime Manager interface is NULL.

SREC_WRONG_VERSION

The version of the interface in use does not match the version of the API library (DLL).

SREC_CONNECTION_ERROR

Unable to establish a connection to the Runtime Manager.

7.8.1.2

ApiEntry_DestroyInterface

Description

Type of the entry point for DestroyInterface (Page 118).

Table 7- 378 ApiEntry_DestroyInterface - Native C++

Syntax Parameters

typedef ERuntimeErrorCode(*ApiEntry_DestroyInterface)( IBaseInterface* in_Interface
); · IBaseInterface* in_Interface:

Return values

The interface to be deleted. Runtime error code SREC_OK
SREC_WRONG_ARGUMENT

Condition The function is successful. The pointer to the interface is NULL.

312

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2

Event callback functions (Native C++)

7.8.2.1

EventCallback_VOID

Description

Table 7- 379 EventCallback_VOID - Native C++

Syntax Parameters Return values

typedef void (*EventCallback_VOID)();
None None

7.8.2.2

EventCallback_SRCC_UINT32_UINT32_INT32

Description

Table 7- 380 EventCallback_SRCC_UINT32_UINT32_INT32 - Native C++

Syntax Parameters
Return values

ERuntimeConfigChanged in_RuntimeConfigChanged, UINT32 in_Param1, UINT32 in_Param2, INT32 in_Param3
);

ERuntimeCon-

UInt32

figChanged

in_Param1

in_RuntimeConfi

gChanged

UInt32 in_Param2

SRCC_INSTANCE_R -

-

EGISTERED

SRCC_INSTANCE_U -

-

NREGISTERED

SRCC_CONNECTION _OPENED
SRCC_CONNECTION _CLOSED
SRCC_PORT_OPENE D SRCC_PORT_CLOSE D None

IP of the remote Runtime Manager
IP of the remote Runtime Manager
The open port
-

Port of the remote Runtime Manager Port of the remote Runtime Manager -
-

Int32 in_Param3
ID of the registered instance ID of the unregistered instance -
-
-

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

313

User interfaces (API) 7.8 Data types

7.8.2.3

EventCallback_SRRSI_AD

Description

Table 7- 381 EventCallback_SRRSI_AD - Native C++

Syntax Parameters

typedef void (*EventCallback_SRRSI_AD)( EAutodiscoverType in_AutodiscoverMsg, SAutodiscoverData in_AutodiscoverData
);
· in_AutodiscoverMsg:

A value from the list of predefined types of events, see EAutodiscoverType (Page 362).
­ SRRSI_DISCOVER_STARTED, if the identification process was started by successfully calling the function RunAutodisover().
­ SRRSI_DISCOVER_DATA, if a Runtime Manager in the network was determined by the identification process. For detailed information about the found Runtime Manager, see parameter in_AutodiscoverData.
­ SRRSI_DISCOVER_FINISHED, if the identification process was completed after the time defined by the "in_Timeout" parameter had elapsed.
­ SRRSI_DISCOVER_STARTED and SRRSI_DISCOVER_FINISHED are always triggered, even if no data is received.
· in_AutodiscoverData:

Return values

Data from the Remote Runtime Manager. The parameter contains valid data only if in_AutodiscoverMsg = SRRSI_DISCOVER_DATA. Otherwise it is initialized with 0. See SAutodiscoverData (Page 388).
None

7.8.2.4

EventCallback_IRRTM

Description

Table 7- 382 EventCallback_IRRTM - Native C++

Syntax Parameters

typedef void (*EventCallback_IRRTM)( IRemoteRuntimeManager* in_Sender
); · IRemoteRuntimeManager* in_Sender:

Return values

An interface of the remote Runtime Manager that receives this event. None

314

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.5

EventCallback_II_SREC_ST_SROS_SROS

Description

Table 7- 383 EventCallback_II_SREC_ST_SROS_SROS - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_SROS_SROS)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, EOperatingState in_PrevState, EOperatingState in_OperatingState
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· EOperatingState in_PrevState:

The operating state before the change. · EOperatingState in_OperatingState:

Return values Error codes

The current operating state. None Runtime error code SREC_OK SREC_WARNING_TRIAL_MODE_ACTIVE
SREC_LICENSE_NOT_FOUND SREC_COMMUNICATION_INTERFACE_NOT _AVAILABLE

Condition
The function is successful.
No license available. You can use the instance without restrictions with the Trial License. Afterwards, the instance is shut down.
Test mode has expired.
A problem has occurred with the selected communication interface. Check your settings.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

315

User interfaces (API) 7.8 Data types

7.8.2.6

EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32

Description

Table 7- 384 EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32_INT64_INT64_UINT32)(
IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, UINT32 in_PipId, INT64 in_TimeSinceSameSyncPoint_ns, INT64 in_TimeSinceAnySyncPoint_ns, UINT32 in_SyncPointCount );
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_PipId:

The ID of the process image partition (PIP) that triggers this event.

0 for the cycle control point (End of cycle). · INT64 in_TimeSinceSameSyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of the same process image partition ID was reached.

For the time-controlled operating modes (Page 94): The runtime since the last call of the StartProcessing() function.
· INT64 in_TimeSinceAnySyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of any process image partition ID was reached.

For the time-controlled operating modes (Page 94): The runtime since the last call of the StartProcessing() function.
· UINT32 in_SyncPointCount:

Return values

The number of synchronization points since the last event. If the events are triggered faster than they are received, multiple events are combined into one event. In this case, this value contains the number of cycles since the last event was received.
None

316

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.7

EventCallback_II_SREC_ST

Description

Table 7- 385 EventCallback_II_SREC_ST - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

Return values

The virtual system time of the virtual controller at the time when this event was triggered.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

317

User interfaces (API) 7.8 Data types

7.8.2.8

EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32

Description

Table 7- 386 EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_SRICC_UINT32_UINT32_UINT32_UINT32)(
IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, EInstanceConfigChanged in_InstanceConfigChanged, UINT32 in_Param1, UINT32 in_Param2, UINT32 in_Param3, UINT32 in_Param4 ); · IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

Return values

The virtual system time of the virtual controller at the time when this event

was triggered.

EInstanceConfigChanged in_Instance ConfigChanged

UINT32 in_Param1

UINT32 in_Param2

UINT32 in_Param3

UINT32 in_Param4

SRICC_HARDW -

-

-

-

ARE_SOFTWAR

E CHANGED

SRICC_IP_CH ANGED

The ID of the

The new IP

interface

The new sub- The new

net mask

standard

gateway

None

318

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.9

EventCallback_II_SREC_ST_SRLT_SRLM

Description

Table 7- 387 EventCallback_II_SREC_ST_SRLT_SRLM - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_SRLT_SRLM)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, ELEDType in_LEDType, ELEDMode in_LEDMode,
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· ELEDType in_LEDType:

The LED type that changed its state. · ELEDMode in_LEDMode:

Return values

The new state of the LED display. None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

319

User interfaces (API) 7.8 Data types

7.8.2.10

EventCallback_II_SREC_ST_SDRI

Description

Table 7- 388 EventCallback_II_SREC_ST_SDRI - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_SDRI)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, SDataRecordInfo in_DataRecordInfo
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· SDataRecordInfo in_DataRecordInfo:

Return values

The structure SDataRecordInfo contains the following information: ­ The HW identifier from which the CPU wants to read the data record ­ The index of the collected data record ­ The maximum size of the data record which the IO device can transfer.
None

320

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.11

EventCallback_II_SREC_ST_SDRI_BYTE

Description

Table 7- 389 EventCallback_II_SREC_ST_SDRI_BYTE - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_SDRI_BYTE)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, SDataRecordInfo in_DataRecordInfo const BYTE* in_Data
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· SDataRecordInfo in_DataRecordInfo:

The structure SDataRecordInfo contains the following information: ­ The HW identifier to which the CPU wants to write the data record ­ The index of the supplied data record ­ Size of data record · const BYTE* in_Data:

Return values

The data record. This pointer becomes invalid after the callback function has returned.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

321

User interfaces (API) 7.8 Data types

7.8.2.12

EventCallback_II_SREC_ST_UINT32_UINT32

Description

Table 7- 390 EventCallback_II_SREC_ST_UINT32_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32_UINT32)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, UINT32 in_HardwareIdentifier),
UINT32 in_SequenceNumber );
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SYSTEMTIME:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the diagnostics event.
· UINT32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

322

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.13

EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32

Description

Table 7- 391 EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32_UINT32_EPET_UINT32)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, UINT32 in_HardwareIdentifier,
UINT32 in_Channel, EProcessEventType in_ProcessEventType,
UINT32 in_SequenceNumber );
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_HardwareIdentifier:

The hardware identifier of the IO module that sends the process event. · UINT32 in_Channel:

The channel of the IO module which sends the process event. · EProcessEventType in_ProcessEventType:

A value from the list of predefined types of events for S7 modules, see EProcessEventType (Page 384).
· UINT32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

323

User interfaces (API) 7.8 Data types

7.8.2.14

EventCallback_II_SREC_ST_UINT32_EPPET_UINT32

Description

Table 7- 392 EventCallback_II_SREC_ST_UINT32_EPPET_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32_EPPET_UINT32)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SYSTEMTIME, UINT32 in_HardwareIdentifier,
EPullOrPlugEventType in_PullOrPlugEventType, UINT32 in_SequenceNumber );
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SYSTEMTIME:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the pull/plug event.
· EPullOrPlugEventType in_PullOrPlugEventType:

A value from the list of predefined types of events for S7 modules, see EPullOrPlugEventType (Page 384).
· UINT32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

324

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.2.15

EventCallback_II_SREC_ST_UINT32_ERSFET

Description

Table 7- 393 EventCallback_II_SREC_ST_UINT32_ERSFET - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32_ERSFET)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, UINT32 in_HardwareIdentifier,
ERackOrStationFaultType in_EventType );
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SYSTEMTIME:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the diagnostics event.
· ERackOrStationFaultType in_EventType:

Return values

A value from the list of predefined RackOrStationFault event types. See ERackOrStationFaultType (Page 387).
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

325

User interfaces (API) 7.8 Data types

7.8.2.16

EventCallback_II_SREC_ST_UINT32

Description

Table 7- 394 EventCallback_II_SREC_ST_UINT32 - Native C++

Syntax Parameters

typedef void (*EventCallback_II_SREC_ST_UINT32)( IInstance* in_Sender, ERuntimeErrorCode in_ErrorCode, SYSTEMTIME in_SystemTime, UINT32 in_HardwareIdentifier);
);
· IInstance* in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · SYSTEMTIME in_SYSTEMTIME:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which generates the status, update or Profile event.

Return values

The identifier must belong to a hardware component in the currently loaded project.
None

326

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3

Delegate definitions (managed code)

7.8.3.1

Delegate_Void

Description

Table 7- 395 Delegate_Void - .NET (C#)

Syntax Parameters Return values

delegate void Delegate_Void();
None None

7.8.3.2

Delegate_SRCC_UINT32_UINT32_INT32

Description

Table 7- 396 Delegate_SRCC_UINT32_UINT32_INT32 - .NET (C#)

Syntax Parameters
Return values

delegate void Delegate_SRCC_UINT32_UINT32_INT32(

ERuntimeConfigChanged in_RuntimeConfigChanged, UInt32 in_Param1, UInt32 in_Param2, Int32 in_Param3

);

ERuntimeCon-

UInt32

figChanged

in_Param1

in_RuntimeConfi

gChanged

UInt32 in_Param2

InstanceRegis- -

-

tered

InstanceUnreg- -

-

istered

ConnectionOpened
ConnectionClosed
PortOpened PortClosed None

IP of the Remote Runtime Manager
IP of the Remote Runtime Manager
The open port -

Port of the remote Runtime Manager
Port of the remote Runtime Manager -
-

Int32 in_Param3
ID of the registered instance ID of the unregistered instance -
-
-

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

327

User interfaces (API) 7.8 Data types

7.8.3.3

Delegate_SRRSI_AD

Description

Table 7- 397 Delegate_SRRSI_AD - .NET (C#)

Syntax Parameters

delegate void Delegate_SRRSI_AD( EAutodiscoverType in_AutodiscoverType, SAutodiscoverData in_AutodiscoverData
);
· in_AutodiscoverType

A value from the list of predefined types of events, see EAutodiscoverType (Page 388).
­ AutodiscoverStarted, if the identification process was started by successfully calling the function RunAutodisover().
­ AutodiscoverData, if a Runtime Manager in the network was determined by the identification process. For detailed information about the found Runtime Manager, see parameter in_AutodiscoverData.
­ AutodiscoverFinished, if the identification process is completed after the time defined by the parameter "in_Timeout" has elapsed.
­ AutodiscoverStarted and AutodiscoverFinished are always triggered, even if no data is received.
· in_AutodiscoverData

Return values

Data from the Remote Runtime Manager. The parameter contains valid data only if in_AutodiscoverType = AutodiscoverData. Otherwise it is initialized with 0. See SAutodiscoverData (Page 362).
None

7.8.3.4

Delegate_II_EREC_DT

Description

Table 7- 398 Delegate_II_EREC_DT - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

Return values

The virtual system time of the virtual controller at the time when this event was triggered.
None

328

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.5

Delegate_II_EREC_DT_EOS_EOS

Description

Table 7- 399 Delegate_II_EREC_DT_EOS_EOS - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_EOS_EOS( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, EOperatingState in_PrevState, EOperatingState in_OperatingState
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· EOperatingState in_PrevState:

The operating state before the change. · EOperatingState in_OperatingState:

Return values Error codes

The current operating state. None Runtime error code ERuntimeErrorCode.OK ERuntimeErrorCode.WarningTrialModeActive
ERuntimeErrorCode.LicenseNotFound ERuntimeErrorCode.CommunicationInterfaceNotAv ailable

Condition
The function is successful.
No license available. You can use the instance without restrictions with the Trial License. Afterwards, the instance is shut down.
Test mode has expired.
A problem has occurred with the selected communication interface. Check your settings.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

329

User interfaces (API) 7.8 Data types

7.8.3.6

Delegate_II_EREC_DT_ELT_ELM

Description

Table 7- 400 Delegate_II_EREC_DT_ELT_ELM - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_ELT_ELM( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, ELEDType in_LEDType, ELEDMode in_LEDMode,
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· ELEDType in_LEDType:

The LED type that changed its state. · ELEDMode in_LEDMode:

Return values

The new state of the LED display. None

330

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.7

Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32

Description

Table 7- 401 Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_UINT32_INT64_INT64_UINT32 ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_PipId, Int64 in_TimeSinceSameSyncPoint_ns, Int64 in_TimeSinceAnySyncPoint_ns, UInt32 in_SyncPointCount
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_PipId:

The ID of the process image partition (PIP) that triggers this event. 0 for the cycle control point (End of cycle).
· Int64 in_TimeSinceSameSyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of the same process image partition ID was reached.

Or the process time for the time-controlled operating modes (Page 94). · Int64 in_TimeSinceAnySyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of any process image partition ID was reached.

Or the process time for the time-controlled operating modes (Page 94). · UInt32 in_SyncPointCount:

Return values

The number of synchronization points since the last event. If the events are triggered faster than they are received, multiple events are combined into one event. In this case, this value contains the number of cycles since the last event was received.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

331

User interfaces (API) 7.8 Data types

7.8.3.8

Delegate_IRRTM

Description

Table 7- 402 Delegate_IRRTM - .NET (C#)

Syntax Parameters

delegate void Delegate_IRRTM( IRemoteRuntimeManager in_Sender,
);
· IRemoteRuntimeManager in_Sender:

Return values

An interface of the remote Runtime Manager that receives this event. None

7.8.3.9

Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32

Description

Table 7- 403 Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32 - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_SRICC_UINT32_UINT32_UINT32_UINT32(
IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, EInstanceConfigChanged in_InstanceConfigChanged, UInt32 in_Param1, UInt32 in_Param2, UInt32 in_Param3, UInt32 in_Param4 );
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

Return values

The virtual system time of the virtual controller at the time when this

event was triggered.

EInstanceConfigChanged in_Instance ConfigChanged

UInt32 in_Param1

UInt32 in_Param2

UInt32 in_Param3

UInt32 in_Param4

Hard-

-

-

-

-

wareSoft-

wareChanged

IPChanged The ID of the The new IP The new

The new

interface

subnet mask standard

gateway

None

332

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.10

Delegate_II_EREC_DT_SDRI

Description

Table 7- 404 Delegate_II_EREC_DT_SDRI - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_SDRI ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, SDataRecordInfo in_DataRecordInfo
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· SDataRecordInfo in_DataRecordInfo:

Return values

The structure SDataRecordInfo contains the following information: ­ The HW identifier to which the CPU wants to write the data record ­ The index of the supplied data record ­ Size of data record ­ The data record
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

333

User interfaces (API) 7.8 Data types

7.8.3.11

Delegate_II_EREC_DT_SDR

Description

Table 7- 405 Delegate_II_EREC_DT_SDR - .NET (C#)

Syntax Parameters

delegate void Delegate_II_EREC_DT_SDR ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, SDataRecord in_DataRecord
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· SDataRecord in_DataRecord:

Return values

The structure SDataRecord contains the following information: ­ The HW identifier to which the CPU wants to write the data record ­ The index of the supplied data record ­ Size of data record ­ The data record
None

334

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.12

Delegate_SREC_ST_UINT32_EPPET_UINT32

Description

Table 7- 406 Delegate_SREC_ST_UINT32_EPPET_UINT32 - .NET (C#)

Syntax Parameters

delegate void Delegate_SREC_ST_UINT32 ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_HardwareIdentifier,
EPullOrPlugEventType in_PullOrPlugEventType, UInt32 in_SequenceNumber );
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the pull/plug event.
· EPullOrPlugEventType in_PullOrPlugEventType:

A value from the list of predefined types of events for S7 modules, see EPullOrPlugEventType (Page 384).
· UInt32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to the PROFINET standard, the sequence number is only 10 bits wide, from 1 to 0x7FF. When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

335

User interfaces (API) 7.8 Data types

7.8.3.13

Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32

Description

Table 7- 407 Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32 - Native C++

Syntax Parameters

delegate void Delegate_SREC_ST_UINT32_UINT32_EPET_UINT32( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_HardwareIdentifier
UInt32 in_Channel, EProcessEventType in_ProcessEventType,
UInt32 in_SequenceNumber );
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_HardwareIdentifier:

The hardware identifier of the module or submodule that sends the process event.
· UInt32 in_Channel:

The channel of the IO module which sends the process event. · EProcessEventType in_ProcessEventType:

A value from the list of predefined types of events for S7 modules, see EProcessEventType (Page 384).
· UInt32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

336

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.14

Delegate_SREC_ST_UINT32

Description

Table 7- 408 Delegate_SREC_ST_UINT32 - .NET (C#)

Syntax Parameters

delegate void Delegate_SREC_ST_UINT32 ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_HardwareIdentifier
);
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_HardwareIdentifier:

Return values

The ID of the module which generates the status event, update event or profile event.
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

337

User interfaces (API) 7.8 Data types

7.8.3.15

Delegate_SREC_ST_UINT32_UINT32

Description

Table 7- 409 Delegate_SREC_ST_UINT32_UINT32 - .NET (C#)

Syntax Parameters

delegate void Delegate_SREC_ST_UINT32 ( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_HardwareIdentifier
UInt32 in_SequenceNumber );
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the diagnostics entry.
· UInt32 in_SequenceNumber:

PLCSIM Advanced assigns a unique consecutive number to each interrupt event.

According to PROFINET standard the sequence number is 10 bits wide (1 to 7FFH). When the highest number is reached the numbering starts again at 1.

Note

In a real hardware system the IO controller uses the sequence number to check if it has lost a hardware interrupt.

Return values

During the simulation, the sequence number creates the relation between interrupt request and the associated acyclic alarm.
None

338

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.3.16

Delegate_SREC_ST_UINT32_ERSFET

Description

Table 7- 410 Delegate_SREC_ST_UINT32_ERSFET - .NET (C#)

Syntax Parameters

delegate void Delegate_SREC_ST_UINT32_ERSFET( IInstance in_Sender, ERuntimeErrorCode in_ErrorCode, DateTime in_DateTime, UInt32 in_HardwareIdentifier,
ERackOrStationFaultType in_EventType );
· IInstance in_Sender:

An interface of the instance that receives this event. · ERuntimeErrorCode in_ErrorCode:

A possible error code. · DateTime in_DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 in_HardwareIdentifier:

The hardware identifier of the module or submodule which sends the diagnostics entry.
· ERackOrStationFaultType in_EventType:

Return values

A value from the list of predefined RackOrStationFault event types. See ERackOrStationFaultType (Page 387).
None

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

339

User interfaces (API) 7.8 Data types

7.8.4

Definitions and constants
The following identifiers are used in the API:

Table 7- 411 Definitions - Native C++

Identifier DINSTANCE_NAME_MAX_LENGTH

Value 64

DSTORAGE_PATH_MAX_LENGTH

130

DTAG_NAME_MAX_LENGTH

300

DTAG_ARRAY_DIMENSION

6

DCONTROLLER_NAME_MAX_LENGTH

128

DCONTROLLER_SHORT_DESIGNATION_MA X_LENGTH

32

DALARM_NOTIFICATION_MAX_DIAG_EVE NTS

100

DPROCESS_EVENT_NAME_MAX_LENGTH

123

DPROCESS_EVENTS_MAX_ITEMS

256

DMODULE_STATE_OK

0

DMODULE_STATE_ERROR

1

DMODULE_STATE_MAINT_DEMANDED

2

DMODULE_STATE_MAINT_REQUIRED

4

Description
The unique name of an instance must be less than this value.
The maximum path length to the virtual memory card. Including ZERO termination.
The maximum length of the name of a PLC tag. Including ZERO termination.
The maximum number of dimension for a multidimensional field.
The maximum length of the controller name. Including ZERO termination.
The maximum length of the abbreviation of the controller (CPU type). Including ZERO termination.
The maximum number of diagnostic events that are sent in a diagnostic alarm.
The maximum length of the name for the process event. Including NULL termination.
The maximum number of configurable process events.
AlarmNotification: Module status OK
AlarmNotification: Module status faulty
AlarmNotification: Maintenance demanded
AlarmNotification: Maintenance required

Table 7- 412 Constants - .NET (C#)

Identifier RuntimeConstants.InstanceNameLength

Value 64

RuntimeConstants.StoragePathMaxLength

130

RuntimeConstants.TagNameMaxLength

300

RuntimeConstants.TagArrayDimension

6

RuntimeConstants.ControllerNameMaxLength

128

RuntimeConstants.ControllerShortDesignatio

32

nMaxLength

ModuleState.Ok

0

ModuleState.Error

1

ModuleState. MaintenanceDemanded

2

ModuleState. MaintenanceRequired

4

Description
The unique name of an instance must be less than this value.
The maximum path length to the virtual memory card. Including ZERO termination.
The maximum length of the name of a PLC tag. Including ZERO termination.
The maximum number of dimension for a multidimensional field.
The maximum length of the controller name. Including ZERO termination.
The maximum length of the abbreviation of the controller (CPU type). Including ZERO termination.
AlarmNotification: Module status OK
AlarmNotification: Module status faulty
AlarmNotification: Maintenance demanded
AlarmNotification: Maintenance required

340

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.5

Unions (Native C++)

7.8.5.1

UIP

Description

Contains an IPv4 address.

Table 7- 413 UIP - Native C++

Syntax Member

union UIP {
DWORD IP; BYTE IPs[4]; };
· DWORD IP:

The IP address in a single DWORD · BYTE IPs[4]:

Example

The four elements of IP in descending order
Example for an IP address: 192.168.0.1
UIP.IP = 0xC0A80001 UIP.IPs[3] = 192, UIP.IPs[2] = 168, UIP.IPs[1] = 0, UIP.IPs[0] = 1

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

341

User interfaces (API) 7.8 Data types

7.8.5.2

UDataValue

Description

Contains the value of a PLC tag.

Table 7- 414 UDataValue - Native C++

Syntax

union UDataValue {
bool Bool; INT8 Int8; INT16 Int16; INT32 Int32; INT64 Int64; UINT8 UInt8; UINT16 UInt16; UINT32 UInt32; UINT64 UInt64; float Float; double Double; CHAR Char; WCHAR WChar; };

342

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Member

· bool Bool: 1 byte boolean value
· INT8 Int8: 1 byte integer with sign
· INT16 Int16: 2 byte integer with sign
· INT32 Int32: 4 byte integer with sign
· INT64 Int64: 8 byte integer with sign
· UINT8 UInt8: 1 byte integer without sign
· UINT16 UInt16: 2 byte integer without sign
· UINT32 UInt32: 4 byte integer without sign
· UINT64 UInt64: 8 byte integer without sign
· float Float: 4 byte floating-point value
· double Double: 8 byte floating-point value
· CHAR Char: 1 byte value character
· WCHAR WChar: 2 byte value character

7.8.6

Structures
The following structures are available:  SDataValue (Page 344)  SDVBNI (Page 346)  SDataValueByAddress (Page 347)  SDataValueByAddressWithCheck (Page 347)  SDataValueByName (Page 348)  SDataValueByNameWithCheck (Page 348)  SConnectionInfo (Page 349)

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types
343

User interfaces (API) 7.8 Data types

 SInstanceInfo (Page 349)  SDimension (Page 350)  STagInfo (Page 351)  SIP (Page 353)  SIPSuite4 (Page 353)  SOnSyncPointReachedResult (Page 355)  SDataRecordInfo (Page 357)  SDataRecord (Page 358)  SConfiguredProcessEvents (Page 358)  SDiagExtChannelDescription (Page 360)  SAutodiscoverData (Page 362)

7.8.6.1

SDataValue

Description

The structure contains the value and type of a PLC tag.

Table 7- 415 SDataValue - Native C++

Syntax Member

struct SDataValue {
UDataValue Value; EPrimitiveDataType Type; };
· UDataValue Value:

The value of the PLC tags · EPrimitiveDataType Type:

Type of PLC tag

344

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Table 7- 416 SDataValue - .NET (C#)

Syntax

struct SDataValue {
bool Bool { get; set; } Int8 Int8 { get; set; } Int16 Int16 { get; set; } Int32 Int32 { get; set; } Int64 Int64 { get; set; } UInt8 UInt8 { get; set; } UInt16 UInt16 { get; set; } UInt32 UInt32 { get; set; } UInt64 UInt64 { get; set; } float Float { get; set; } double Double { get; set; } sbyte Char { get; set; } char WChar { get; set; }
EPrimitiveDataType Type { get; set; } }

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

345

User interfaces (API) 7.8 Data types

Member

· bool Bool: 1 byte boolean value
· Int8 Int8: 1 byte integer with sign
· Int16 Int16: 2 byte integer with sign
· Int32 Int32: 4 byte integer with sign
· Int64 Int64: 8 byte integer with sign
· UntT8 UInt8: 1 byte integer without sign
· UInt16 UInt16: 2 byte integer without sign
· UInt32 UInt32: 4 byte integer without sign
· UInt64 UInt64: 8 byte integer without sign
· float Float: 4 byte floating-point value
· double Double: 8 byte floating-point value
· sbyte Char: 1 byte value character
· char WChar: 2 byte value character
· EPrimitiveDataType Type: Type of PLC tag

7.8.6.2

SDVBNI

Description

This structure is for internal use only. Do not change this structure.

Table 7- 417 SDVBNI - Native C++

Syntax

struct SDVBNI

346

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

Table 7- 418 SDVBNI - .NET (C#)

Syntax

struct SDVBNI

7.8.6.3

SDataValueByAddress

Description

This structure represents a PLC tag that is accessed via its address.

Table 7- 419 SDataValueByAddress - Native C++

Syntax

struct SDataValueByAddress {
UINT32 Offset; UINT8 Bit; SDataValue DataValue; ERuntimeErrorCode ErrorCode; };

Table 7- 420 SDataValueByAddress - .NET (C#)

Syntax

struct SDataValueByAddress {
UInt32 Offset; UInt8 Bit; SDataValue DataValue; ERuntimeErrorCode ErrorCode; }

7.8.6.4

SDataValueByAddressWithCheck

Description

This structure represents a PLC tag that is accessed via its address.

Table 7- 421 SDataValueByAddressWithCheck - Native C++

Syntax

struct SDataValueByAddressWithCheck {
UINT32 Offset; UINT8 Bit; SDataValue DataValue; ERuntimeErrorCode ErrorCode; bool ValueHasChanged; };

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

347

User interfaces (API) 7.8 Data types

Table 7- 422 SDataValueByAddressWithCheck - .NET (C#)

Syntax

struct SDataValueByAddressWithCheck {
UInt32 Offset; UInt8 Bit; SDataValue DataValue; ERuntimeErrorCode ErrorCode; bool ValueHasChanged; }

7.8.6.5

SDataValueByName

Description

This structure represents a PLC tag that is called by its name.

Table 7- 423 SDataValueByName - Native C++

Syntax

struct SDataValueByName {
WCHAR Name[DTAG_NAME_MAX_LENGTH]; SDataValue DataValue; ERuntimeErrorCode ErrorCode; SDVBNI Internal; };

Table 7- 424 SDataValueByName - .NET (C#)

Syntax

struct SDataValueByName {
String Name; SDataValue DataValue; ERuntimeErrorCode ErrorCode; SDVBNI Internal; }

7.8.6.6

SDataValueByNameWithCheck

Description

This structure represents a PLC tag that is called by its name.

Table 7- 425 SDataValueByNameWithCheck - Native C++

Syntax

struct SDataValueByNameWithCheck {
WCHAR Name[DTAG_NAME_MAX_LENGTH]; SDataValue DataValue; ERuntimeErrorCode ErrorCode; SDVBNI Internal; bool ValueHasChanged; };

348

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

Table 7- 426 SDataValueByNameWithCheck - .NET (C#)

Syntax

struct SDataValueByNameWithCheck {
String Name; SDataValue DataValue; ERuntimeErrorCode ErrorCode; SDVBNI Internal; bool ValueHasChanged; }

7.8.6.7

SConnectionInfo

Description

This structure contains the IP address and port of a TCP/IP connection.

Table 7- 427 SConnectionInfo - Native C++

Syntax

struct SConnectionInfo {
UIP IP; UINT16 Port; };

Table 7- 428 SConnectionInfo - .NET (C#)

Syntax

struct SConnectionInfo {
SIP IP; UInt16 Port; }

7.8.6.8

SInstanceInfo

Description

This structure contains an IPv4 address.

Table 7- 429 SInstanceInfo - Native C++

Syntax Member

struct SInstanceInfo {
INT32 ID; WCHAR Name[DINSTANCE_NAME_MAX_LENGTH]; };
· INT32 ID:

The ID of the instance · WCHAR Name[DINSTANCE_NAME_MAX_LENGTH]:

The name of the instance

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

349

User interfaces (API) 7.8 Data types

Table 7- 430 SInstanceInfo - .NET (C#)

Syntax Member

struct SInstanceInfo {
Int32 ID; String Name; }
· Int32 ID:

The ID of the instance · String name:

The name of the instance

7.8.6.9

SDimension

Description

This structure contains information about the dimension of a field.

Table 7- 431 SDimension - Native C++

Syntax

struct SDimension {
INT32 StartIndex; UINT32 Count; };

Table 7- 432 SDimension - .NET (C#)

Syntax

struct SDimension {
Int32 StartIndex; UInt32 Count; }

350

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.6.10

STagInfo

Description

This structure contains information about a PLC tag.

Table 7- 433 STagInfo - Native C++

Syntax Member

struct STagInfo {
WCHAR Name[DTAG_NAME_MAX_LENGTH]; EArea Area; EDataType DataType; EPrimitiveDataType PrimitiveDataType; UINT16 Size; UINT32 Offset; UINT8 Bit; UINT8 DimensionCount; UINT32 Index; UINT32 ParentIndex; SDimension Dimension[DTAG_ARRAY_DIMENSION]; };
· WCHAR Name[DTAG_NAME_MAX_LENGTH]:

The name of the tag · EArea area:

The CPU area where the tag is located. · EDataType DataType:

The CPU data type of the tag · EPrimitiveDataType PrimitiveDataType:

The primitive data type of the tag · UINT16 size:

The size of the tag in bytes · UINT32 offset:

The byte offset of the tag if it is not located in a data block. · UINT8 bit:

The bit offset of the tag if it is not located in a data block. · UINT8 DimensionCount:

The number of dimensions of the array. 0 if the tag is not a field. · UINT32 index:

The index of the tag · UINT32 ParentIndex:

If this tag is embedded in another tag (for example, an element of a structure), this value then displays the index of the parent tag. The value is 0 if the tag has no parent tag.
· SDimension Dimension[DTAG_ARRAY_DIMENSION]:

Information about each dimension of the field

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

351

User interfaces (API) 7.8 Data types

Table 7- 434 STagInfo - .NET (C#)

Syntax Member

public struct STagInfo {
String Name; EArea Area; EDataType DataType; EPrimitiveDataType PrimitiveDataType; UInt16 Size; UInt32 Offset; UInt8 Bit; UInt32 Index; UInt32 ParentIndex; SDimension[] Dimension; }
· String name:

The name of the tag · EArea area:

The CPU area where the tag is located. · EDataType DataType:

The CPU data type of the tag · EPrimitiveDataType PrimitiveDataType:

The primitive data type of the tag · UInt16 size:

The size of the tag in bytes. · UInt32 offset:

The byte offset of the tag if it is not located in a data block. · UInt8 bit:

The bit offset of the tag if it is not located in a data block. · UInt32 index:

The index of the tag · UInt32 ParentIndex:

If this tag is embedded in another tag (for example, an element of a structure), this value then displays the index of the parent tag. The value is 0 if the tag has no parent tag.
· SDimension[] Dimension:

Information about each dimension of the field. Empty, if the tag is not an array.

352

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.6.11

SIP

Description

This structure contains an IPv4 address.

Table 7- 435 SIP - .NET (C#)

Syntax Member

struct SIP {
byte[] IPArray { get; set; } UInt32 IPDWord { get; set; } string IPString { get; set; } }
· UInt32 IPDWord:

The IP address in a single DWORD · byte[] IPArray:

The four elements of IP in descending order · string IPString:

Example

The IPv4 address as a string
Example for an IP address: 192.168.0.1
SIP.IPDWord = 0xC0A80001 SIP.IPArray[3] = 192, SIP.IPArray[2] = 168, SIP.IPArray[1] = 0, SIP.IPArray[0] = 1 SIP.IPString = "192.168.0.1"

7.8.6.12

SIPSuite4

Description

This structure contains an IPv4 suite.

Table 7- 436 SIPSuite4 - Native C++

Syntax Member

struct SIPSuite4 {
UIP IPAddress; UIP SubnetMask; UIP DefaultGateway; };
· UIP IPAddress:

The IP address · UIP SubnetMask:

The subnet mask · UIP DefaultGateway:

The standard gateway

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

353

User interfaces (API) 7.8 Data types

Table 7- 437 SIPSuite4 - .NET (C#)

Syntax Member

struct SIPSuite4 {
SIP IPAddress; SIP SubnetMask; SIP DefaultGateway; }
· SIP IPAddress:

The IP address · SIP SubnetMask:

The subnet mask · SIP DefaultGateway:

The standard gateway

354

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.6.13

SOnSyncPointReachedResult

Description

This structure contains the results of the OnSyncPointReached event.

Table 7- 438 SOnSyncPointReachedResult - Native C++

Syntax Member

struct SOnSyncPointReachedResult {
ERuntimeErrorCode ErrorCode; SYSTEMTIME SystemTime; UINT32 PipId; INT64 TimeSinceSameSyncPoint_ns; INT64 TimeSinceAnySyncPoint_ns; UINT32 SyncPointCount; };
· ERuntimeErrorCode ErrorCode:
­ SREC_TIMEOUT, if no event was triggered during the defined time interval.
­ SREC_WARNING_INVALID_CALL, if no function RegisterOnSyncPointReachedEvent was called before.

See ERuntimeErrorCode (Page 364). · SYSTEMTIME SystemTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UINT32 PipId:

The ID of the process image partition (PIP) that triggers this event.

0 for the cycle control point (End of cycle). · INT64 TimeSinceSameSyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of the same process image partition ID was reached.

For the time-controlled operating modes (Page 94): The runtime since the last call of the StartProcessing() function.
· INT64 TimeSinceAnySyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of any process image partition ID was reached.

For the time-controlled operating modes (Page 94): The runtime since the last call of the StartProcessing() function.
· UINT32 SyncPointCount:

The number of synchronization points since the last event. If the events are triggered faster than they are received, multiple events are combined into one event. In this case, this value contains the number of cycles since the last event was received.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

355

User interfaces (API) 7.8 Data types

Table 7- 439 SOnSyncPointReachedResult - .NET (C#)

Syntax Member

struct SOnSyncPointReachedResult {
ERuntimeErrorCode ErrorCode; DateTime SystemTime; UInt32 PipId; Int64 TimeSinceSameSyncPoint_ns; Int64 TimeSinceAnySyncPoint_ns; UInt32 SyncPointCount; }
· ERuntimeErrorCode ErrorCode:
­ ERuntimeErrorCode.Timeout, if no event was triggered during the defined time interval.
­ WarningInvalidCall, if no function RegisterOnSyncPointReachedEvent was called before.

See ERuntimeErrorCode. · DateTime DateTime:

The virtual system time of the virtual controller at the time when this event was triggered.
· UInt32 PipId:

The ID of the process image partition (PIP) that triggers this event.

0 for the cycle control point (End of cycle). · Int64 TimeSinceSameSyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of the same process image partition ID was reached.

For the time-controlled operating modes: The runtime since the last call of the StartProcessing() function.
· Int64 TimeSinceAnySyncPoint_ns:

The virtual time (in nanoseconds) since the last synchronization point of any process image partition ID was reached.

For the time-controlled operating modes: The runtime since the last call of the StartProcessing() function.
· UInt32 SyncPointCount:

The number of synchronization points since the last event. If the events are triggered faster than they are received, multiple events are combined into one event. In this case, this value contains the number of cycles since the last event was received.

356

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.6.14

SDataRecordInfo

Description

This structure contains read/write data record information.

Table 7- 440 SDataRecordInfo - Native C++

Syntax Member

struct SDataRecordInfo {
UINT32 HardwareId; UINT32 RecordIdx; UINT32 DataSize; };
· UINT32 HardwareId:

The ID of the hardware module (hardware identifier) · UINT32 RecordIdx:

The data record number · UINT32 DataSize:

The data record size

Table 7- 441 SDataRecordInfo - .NET (C#)

Syntax Member

struct SDataRecordInfo {
UInt32 HardwareId; UInt32 RecordIdx; UInt32 DataSize; }
· UInt32 ID:

The ID of the hardware module · UInt32 RecordIdx:

The data record number · UInt32 DataSize:

The data record size

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

357

User interfaces (API) 7.8 Data types

7.8.6.15

SDataRecord

Description

This structure contains read/write data record information and data records.

Table 7- 442 SDataRecord - .NET (C#)

Syntax Member

struct SDataRecord { UInt32 HardwareId; byte[] Data }
· SDataRecordInfo Info:

The data record information, see SDataRecordInfo (Page 357) · byte[] Data:

The array length

7.8.6.16

SConfiguredProcessEvents

Description

This structure contains information about the configured process events.

Table 7- 443 SConfiguredProcessEvents - Native C++

Syntax Member

struct SConfiguredProcessEvents {
UINT16 HardwareIdentifier; UINT16 Channel; EProcessEventType ProcessEventType; WCHAR Name[DPROCESS_EVENT_NAME_MAX_LENGTH]; };
· UINT16 HardwareIdentifier:

The HW identifier · UINT16 Channel:

The channel of the IO module which generates the process event. · EProcessEventType ProcessEventType:

The type of the configured process event · WCHAR Name[DPROCESS_EVENT_NAME_MAX_LENGTH]:

The name of the process event

358

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

Table 7- 444 SConfiguredProcessEvents - .NET (C#)

Syntax Member

public struct SConfiguredProcessEvents {
ushort HardwareIdentifier; ushort Channel; EProcessEventType ProcessEventType; string Name; }
· ushort HardwareIdentifier:

The HW identifier · ushort Channel:

The channel of the IO module which generates the process event. · EProcessEventType ProcessEventType:

The type of the configured process event · String name:

The name of the process event

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

359

User interfaces (API) 7.8 Data types

7.8.6.17

SDiagExtChannelDescription

Description

This structure contains read/write data record information and data records.

Table 7- 445 SDiagExtChannelDescription - Native C++

Syntax Member

struct SDiagExtChannelDescription {
UINT16 ChannelNumber; UINT16 ErrorType; UINT16 ExtErrorType; EDiagSeverity Severity; EDiagProperty Direction; };
· UINT16 ChannelNumber:

If the interrupt relates to a specific channel of the IO device (e.g. short circuit), this parameter must contain the number of the faulty channel.

If the interrupt was generated by a module or submodule, the number of the channel must be set to 0x8000.
· UINT16 ErrorType:

The parameter defines error types according to PROFINET standard, see "Error types" section.
· EDiagSeverity Severity:

The value of the severity for the diagnostics, see EDiagSeverity (Page 386). · EDiagProperty Direction:

The value for the incoming/outgoing information, see EDiagProperty (Page 385).
· UINT16 ExtErrorType:

This parameter provides the option of defining more details for the diagnostic interrupt. This is helpful in combination with PDEV error types which are generated for CPU-internal modules. Should be 0 by default.

360

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Error types

User interfaces (API) 7.8 Data types

Table 7- 446 SDiagExtChannelDescription - .NET (C#)

Syntax Member

struct SDiagExtChannelDescription {
UInt16 ChannelNumber; UInt16 ErrorType; UInt16 ExtErrorType; EDiagSeverity Severity; EDiagProperty Direction; };
· UInt16 ChannelNumber:

If the interrupt relates to a specific channel of the IO device (e.g. short circuit), this parameter must contain the number of the faulty channel.

If the interrupt was generated by a module or submodule, the number of the channel must be set to 0x8000.
· UInt16 ErrorType:

The parameter defines error types according to PROFINET standard, see "Error types" section.
· EDiagSeverity Severity:

The value of the severity for the diagnostics, see EDiagSeverity (Page 386). · EDiagProperty Direction:

The value for the incoming/outgoing information, see EDiagProperty (Page 385).
· UInt16 ExtErrorType:

This parameter provides the option of defining more details for the diagnostic interrupt. This is helpful in combination with PDEV error types which are generated for CPU-internal modules. Should be 0 by default.

The following table contains important error types (ErrorType) according to PROFINET standard:

Table 7- 447 Error types according to PROFINET standard

Value 0x0000 0x0001 0x0002 0x0003 0x0004 0x0005 0x0006 0x0007 0x0008: 0x0009

Meaning Reserved / unknown error Short-circuit Undervoltage Overvoltage Overload Overtemperature Wire break High limit violated Low limit violated Error

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

361

User interfaces (API) 7.8 Data types

The following table contains error types ExtChannelErrorType for ChannelErrorType "Remote mismatch":

Table 7- 448 ExtChannelErrType error types

Value 0x0000 0x0001 to 0x7FFF 0x8000 0x8001 0x8002 0x8003

Meaning Reserved Manufacturer ID Peer name of station mismatch Peer name of port mismatch Peer RT_CLASS_3 mismatch Peer MAU Type mismatch

Use Interrupt/diagnostics Interrupt/diagnostics Interrupt/diagnostics Interrupt/diagnostics Interrupt/diagnostics

7.8.6.18

SAutodiscoverData

Description

This structure contains the IP address, the port, the Runtime version, and the name of the computer that has a Runtime Manager ready to make a remote connection.

Table 7- 449 SAutodiscoverData - Native C++

Syntax

public struct SAutodiscoverData {
UIP IP; UINT16 Port; DWORD RuntimeVersion; WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; };

Table 7- 450 SAutodiscoverData - .NET (C#)

Syntax

public struct SAutodiscoverData {
public SIP IP; public ushort Port; public uint RuntimeVersion; public string ComputerName; }

7.8.7

Enumerations
The following enumerations are available:  ERuntimeErrorCode (Page 364)  EArea (Page 369)  EOperatingState (Page 369)  EOperatingMode (Page 370)

362

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

See also

 ECPUType (Page 371)  ECommunicationInterface (Page 373)  ELEDType (Page 373)  ELEDMode (Page 374)  EPrimitiveDataType (Page 375)  EDataType (Page 377)  ETagListDetails (Page 382)  ERuntimeConfigChanged (Page 383)  EInstanceConfigChanged (Page 383)  EPullOrPlugEventType (Page 384)  EProcessEventType (Page 384)  EDirection (Page 385)  EDiagProperty (Page 385)  EDiagSeverity (Page 386)  ERackOrStationFaultType (Page 387)  ECycleTimeMonitoringMode (Page 387)  EAutodiscoverType (Page 388)
Global functions (Native C++) (Page 122)

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

363

User interfaces (API) 7.8 Data types

7.8.7.1

ERuntimeErrorCode

Description

This enumeration contains all error codes that are used by the Simulation Runtime API. Most API functions return one of these error codes. If the function is successful, the return value is always SREC_OK / OK. Errors are returned with negative values, warnings with positive values.

Table 7- 451 ERuntimeErrorCode - Native C++

Syntax

enum ERuntimeErrorCode {
SREC_OK = 0, SREC_INVALID_ERROR_CODE = -1, SREC_NOT_IMPLEMENTED = -2, SREC_INDEX_OUT_OF_RANGE = -3, SREC_DOES_NOT_EXIST = -4, SREC_ALREADY_EXISTS = -5, SREC_UNKNOWN_MESSAGE_TYPE = -6, SREC_INVALID_MESSAGE_ID = -7, SREC_WRONG_ARGUMENT = -8, SREC_WRONG_PIPE = -9, SREC_CONNECTION_ERROR = -10, SREC_TIMEOUT = -11, SREC_MESSAGE_CORRUPT = -12, SREC_WRONG_VERSION = -13, SREC_INSTANCE_NOT_RUNNING = -14, SREC_INTERFACE_REMOVED = -15, SREC_SHARED_MEMORY_NOT_INITIALIZED = -16, SREC_API_NOT_INITIALIZED = -17, SREC_WARNING_ALREADY_EXISTS = 18, SREC_NOT_SUPPORTED = -19, SREC_WARNING_INVALID_CALL = 20, SREC_ERROR_LOADING_DLL = -21, SREC_SIGNAL_NAME_DOES_NOT_EXIST = -22, SREC_SIGNAL_TYPE_MISMATCH = -23, SREC_SIGNAL_CONFIGURATION_ERROR = -24, SREC_NO_SIGNAL_CONFIGURATION_LOADED = -25, SREC_CONFIGURED_CONNECTION_NOT_FOUND = -26, SREC_CONFIGURED_DEVICE_NOT_FOUND = -27, SREC_INVALID_CONFIGURATION = -28, SREC_TYPE_MISMATCH = -29, SREC_LICENSE_NOT_FOUND = -30, SREC_NO_LICENSE_AVAILABLE = -31, SREC_WRONG_COMMUNICATION_INTERFACE = -32, SREC_LIMIT_REACHED = -33, SREC_NO_STORAGE_PATH_SET = -34, SREC_STORAGE_PATH_ALREADY_IN_USE = -35,

364

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types
SREC_MESSAGE_INCOMPLETE = -36, SREC_ARCHIVE_STORAGE_NOT_CREATED = -37, SREC_RETRIEVE_STORAGE_FAILURE = -38 SREC_INVALID_OPERATING_STATE = -39, SREC_INVALID_ARCHIVE_PATH = -40, SREC_DELETE_EXISTING_STORAGE_FAILED = -41, SREC_CREATE_DIRECTORIES_FAILED = -42, SREC_NOT_ENOUGH_MEMORY = -43, SREC_WARNING_TRIAL_MODE_ACTIVE = 44, SREC_NOT_RUNNING = -45, SREC_NOT_EMPTY = -46, SREC_NOT_UP_TO_DATE = -47, SREC_COMMUNICATION_INTERFACE_NOT_AVAILABLE = -48, SREC_WARNING_NOT_COMPLETE = 49, SREC_VIRTUAL_SWITCH_MISCONFIGURED = -50, SREC_RUNTIME_NOT_AVAILABLE = -51, SREC_IS_EMPTY = -52, SREC_WRONG_MODULE_STATE = -53, SREC_WRONG_MODULE_TYPE = -54, SREC_NOT_SUPPORTED_BY_MODULE = -55, SREC_INTERNAL_ERROR = -56, SREC_STORAGE_TRANSFER_ERROR = -57, SREC_ANOTHER_VARIANT_OF_PLCSIM_RUNNING = -58, SREC_ACCESS_DENIED = -59, SREC_NOT_ALLOWED_DURING_DOWNLOAD = -60 SREC_AUTODISCOVER_ALREADY_RUNNING = -61, SREC_INVALID_STORAGE = -62 SREC_WARNING_UNSUPPORTED_PCAP_DRIVER = 63, SREC_WARNING_RUNNING_ON_TIA_PORTAL_TEST_SUITE = 64
};

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

365

Table 7- 452 ERuntimeErrorCode - .NET (C#)

Syntax

enum ERuntimeErrorCode {
OK = 0, InvalidErrorCode = -1, NotImplemented = -2, IndexOutOfRange = -3, DoesNotExist = -4, AlreadyExists = -5, UnknownMessageType = -6, InvalidMessageId = -7, WrongArgument = -8, WrongPipe = -9, ConnectionError = -10, Timeout = -11, MessageCorrupt = -12, WrongVersion = -13, InstanceNotRunning = -14, InterfaceRemoved = -15, SharedMemoryNotInitialized = -16, ApiNotInitialized = -17, WarningAlreadyExists = 18, NotSupported = -19, WarningInvalidCall = 20, ErrorLoadingDll = -21, SignalNameDoesNotExist = -22, SignalTypeMismatch = -23, SignalConfigurationError = -24, NoSignalConfigurationLoaded = -25, ConfiguredConnectionNotFound = -26, ConfiguredDeviceNotFound = -27, InvalidConfiguration = -28, TypeMismatch = -29, LicenseNotFound = -30, NoLicenseAvailable = -31, WrongCommunicationInterface = -32, LimitReached = -33, NoStartupPathSet = -34, StartupPathAlreadyInUse = -35, MessageIncomplete = -36, ArchiveStorageNotCreated = -37, RetrieveStorageFailure = -38, InvalidOperatingState = -39, InvalidArchivePath = -40, DeleteExistingStorageFailed = -41, CreateDirectoriesFailed = -42, NotEnoughMemory = -43, WarningTrialModeActive = 44,

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

367

User interfaces (API) 7.8 Data types

NotRunning = -45, NotEmpty = -46, NotUpToDate = -47, CommunicationInterfaceNotAvailable = -48, WarningNotComplete = 49, RuntimeNotAvailable = -51, IsEmpty = -52, WrongModuleState = -53, WrongModuleType = -54, NotSupportedByModule = -55, InternalError = -56, StorageTransferError = -57, AnotherVariantOfPlcsimRunning = -58, AccessDenied = -59, NotAllowedDuringDownload = -60, AutodiscoverAlreadyRunning = -61, InvalidStorage = -62, WarningUnsupportedPcapDriver = 63, WarningRunningOnTiaPortalTestSuite = 64
}

368

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.2

EArea

Description

This enumeration contains all PLC areas that contain the available PLC tags.

Table 7- 453 EArea - Native C++

Syntax

enum EArea {
SRA_INVALID_AREA = 0, SRA_INPUT = 1, SRA_MARKER = 2, SRA_OUTPUT = 3, SRA_COUNTER = 4, SRA_TIMER = 5, SRA_DATABLOCK = 6,

SRA_ENUMERATION_SIZE = 7 };

Table 7- 454 EArea - .NET (C#)

Syntax

public enum EArea {
InvalidArea = 0, Input = 1, Marker = 2, Output = 3, Counter = 4, Timer = 5, DataBlock = 6, }

7.8.7.3

EOperatingState

Description

This enumeration contains all the operating states of a virtual controller.

Table 7- 455 EOperatingState - Native C++

Syntax

enum EOperatingState {
SROS_INVALID_OPERATING_STATE = 0, SROS_OFF = 1, SROS_BOOTING = 2, SROS_STOP = 3, SROS_STARTUP = 4, SROS_RUN = 5, SROS_FREEZE = 6, SROS_SHUTTING_DOWN = 7, SROS_HOLD = 8,

SROS_ENUMERATION_SIZE = 9 };

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

369

User interfaces (API) 7.8 Data types

Table 7- 456 EOperatingState - .NET (C#)

Syntax

enum EOperatingState {
InvalidOperatingState = 0, Off = 1, Booting = 2, Stop = 3, Startup = 4, Run = 5, Freeze = 6, ShuttingDown = 7, Hold = 8 }

7.8.7.4

EOperatingMode

Description

This enumeration contains all the operating modes of a virtual controller.

Table 7- 457 EOperatingMode - Native C++

Syntax

enum EOperatingMode {
SROM_DEFAULT = 0, SROM_SINGLE_STEP_C = 1, SROM_SINGLE_STEP_CT = 2, SROM_TIMESPAN_SYNCHNRONIZED_C = 3, SROM_SINGLE_STEP_P = 4, SROM_TIMESPAN_SYNCHNRONIZED_P = 5, SROM_SINGLE_STEP_CP = 6, SROM_SINGLE_STEP_CPT = 7, SROM_TIMESPAN_SYNCHNRONIZED_CP = 8 };

Table 7- 458 EOperatingMode - .NET (C#)

Syntax

public enum EOperatingMode {
Default = 0, SingleStep_C = 1, SingleStep_CT = 2, TimespanSynchronized_C = 3, SingleStep_P = 4, TimespanSynchronized_P = 5, SingleStep_CP = 6, SingleStep_CPT = 7, TimespanSynchronized_CP = 8 }

370

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.5

ECPUType

Description

This enumeration contains all CPU types that can be loaded in a virtual controller.

Table 7- 459 ECPUType - Native C++

Syntax

enum ECPUType {
SRCT_1500_Unspecified = 0x000005DC, SRCT_1511 = 0x000005E7, SRCT_1511v2 = 0x010005E7,
SRCT_1511v3 = 0x020005E7, SRCT_1513 = 0x000005E9, SRCT_1513v2 = 0x010005E9, SRCT_1513v3 = 0x020005E9 SRCT_1515 = 0x000005EB, SRCT_1515v2 = 0x010005EB, SRCT_1516 = 0x000005EC, SRCT_1516v2 = 0x010005EC, SRCT_1517 = 0x000005ED, SRCT_1518 = 0x000005EE, SRCT_1511C = 0x000405E7, SRCT_1511Cv2 = 0x010405E7, SRCT_1512C = 0x000405E8, SRCT_1512Cv2 = 0x010405E8, SRCT_1511F = 0x000105E7, SRCT_1511Fv2 = 0x010105E7, SRCT_1511Fv3 = 0x020105E7, SRCT_1513F = 0x000105E9, SRCT_1513Fv2 = 0x010105E9, SRCT_1513Fv3 = 0x020105E9, SRCT_1515F = 0x000105EB, SRCT_1515Fv2 = 0x010105EB, SRCT_1516F = 0x000105EC, SRCT_1516Fv2 = 0x010105EC, SRCT_1517F = 0x000105ED, SRCT_1518F = 0x000105EE, SRCT_1511T = 0x000805E7, SRCT_1515T = 0x000805EB, SRCT_1516T = 0x000805EC, SRCT_1517T = 0x000805ED, SRCT_1511TF = 0x000905E7, SRCT_1515TF = 0x000905EB, SRCT_1516TF = 0x000905EC, SRCT_1517TF = 0x000905ED, SRCT_1518ODK = 0x001005EE, SRCT_1518FODK = 0x001105EE, SRCT_1518MFP = 0x004005EE,
SRCT_1518FMFP = 0x004105EE, SRCT_ET200SP_Unspecified = 0x000205DC, SRCT_1510SP = 0x000205E6, SRCT_1510SPv2 = 0x010205E6, SRCT_1512SP = 0x000205E8, SRCT_1512SPv2 = 0x010205E8, SRCT_1510SPF = 0x000305E6, SRCT_1510SPFv2 = 0x010305E6, SRCT_1512SPF = 0x000305E8, SRCT_1512SPFv2 = 0x010305E8 }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

371

User interfaces (API) 7.8 Data types

Table 7- 460 ECPUType - .NET (C#)

Syntax

enum ECPUType {
CPU1500_Unspecified = 0x000005DC, CPU1511 = 0x000005E7, CPU1511v2 = 0x010005E7, CPU1513 = 0x000005E9, CPU1513v2 = 0x010005E9, CPU1511v3 = 0x020005E7, CPU1515 = 0x000005EB, CPU1515v2 = 0x010005EB, CPU1513v3 = 0x020005E9, CPU1516 = 0x000005EC, CPU1516v2 = 0x010005EC, CPU1517 = 0x000005ED, CPU1518 = 0x000005EE, CPU1511C = 0x000405E7, CPU1511Cv2 = 0x010405E7, CPU1512C = 0x000405E8, CPU1512Cv2 = 0x010405E8, CPU1511F = 0x000105E7, CPU1511Fv2 = 0x010105E7, CPU1511Fv3 = 0x020105E7, CPU1513F = 0x000105E9, CPU1513Fv2 = 0x010105E9, CPU1513Fv3 = 0x020105E9, CPU1515F = 0x000105EB, CPU1515Fv2 = 0x010105EB, CPU1516F = 0x000105EC, CPU1516Fv2 = 0x010105EC, CPU1517F = 0x000105ED, CPU1518F = 0x000105EE, CPU1511T = 0x000805E7, CPU1515T = 0x000805EB, CPU1516T = 0x000805EC, CPU1517T = 0x000805ED, CPU1511TF = 0x000905E7, CPU1515TF = 0x000905EB, CPU1516TF = 0x000905EC, CPU1517TF = 0x000905ED, CPU1518ODK = 0x001005EE, CPU1518FODK = 0x001105EE, CPU1518MFP = 0x004005EE, CPU1518FMFP = 0x004105EE, CPUET200SP_Unspecified = 0x000205DC, CPU1510SP = 0x000205E6, CPU1510SPv2 = 0x010205E6, CPU1512SP = 0x000205E8, CPU1512SPv2 = 0x010205E8, CPU1510SPF = 0x000305E6, CPU1510SPFv2 = 0x010305E6, CPU1512SPF = 0x000305E8, CPU1512SPFv2 = 0x010305E8 }

372

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.6

ECommunicationInterface

Description

This enumeration contains the available communication interfaces of a virtual controller.

Table 7- 461 ECommunicationInterface - Native C++

Syntax

enum ECommunicationInterface {
SRCI_NONE = 0, SRCI_SOFTBUS = 1, SRCI_TCPIP = 2, SRCI_ENUMERATION_SIZE = 3 };

Table 7- 462 ECommunicationInterface - .NET (C#)

Syntax

enum ECommunicationInterface {
None = 0, Softbus = 1, TCPIP = 2, }

7.8.7.7

ELEDType

Description

This list includes all types of LEDs of a virtual controller.

Table 7- 463 ELEDType - Native C++

Syntax

enum ELEDType {
SRLT_STOP = 0, SRLT_RUN = 1, SRLT_ERROR = 2, SRLT_MAINT = 3, SRLT_REDUND = 4, SRLT_FORCE = 5, SRLT_BUSF1 = 6, SRLT_BUSF2 = 7, SRLT_BUSF3 = 8, SRLT_BUSF4 = 9,

SRLT_ENUMERATION_SIZE = 10 };

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

373

User interfaces (API) 7.8 Data types

Table 7- 464 ELEDType - .NET (C#)

Syntax

enum ELEDType {
Stop = 0, Run = 1, Error = 2 Maint = 3, Redund = 4, Force = 5, Busf1 = 6, Busf2 = 7, Busf3 = 8, Busf4 = 9 }

7.8.7.8

ELEDMode

Description

This list contains all the LED states of a virtual controller.

Table 7- 465 ELEDMode - Native C++

Syntax

enum ELEDMode {
SRLM_OFF = 0, SRLM_ON = 1, SRLM_FLASH_FAST = 2, SRLM_FLASH_SLOW = 3, SRLM_INVALID = 4 };

Table 7- 466 ELEDMode - .NET (C#)

Syntax

enum ELEDMode {
Off = 0, On = 1, FlashFast = 2, FlashSlow = 3, Invalid = 4 }

374

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.9

EPrimitiveDataType

Description

This list contains all the primitive data types that are used by the I/O access functions.

Table 7- 467 EPrimitiveDataType - Native C++

Syntax

enum EPrimitiveDataType {
SRPDT_UNSPECIFIC = 0, SRPDT_STRUCT = 1, SRPDT_BOOL = 2, SRPDT_INT8 = 3, SRPDT_INT16 = 4, SRPDT_INT32 = 5, SRPDT_INT64 = 6, SRPDT_UINT8 = 7, SRPDT_UINT16 = 8, SRPDT_UINT32 = 9, SRPDT_UINT64 = 10, SRPDT_FLOAT = 11, SRPDT_DOUBLE = 12, SRPDT_CHAR = 13, SRPDT_WCHAR = 14 };

Table 7- 468 EPrimitiveDataType - .NET (C#)

Syntax

enum EPrimitiveDataType {
Unspecific = 0, Struct = 1, Bool = 2, Int8 = 3, Int16 = 4, Int32 = 5, Int64 = 6, UInt8 = 7, UInt16 = 8, UInt32 = 9, UInt64 = 10, Float = 11, Double = 12, Char = 13, WChar = 14 }

Compatible primitive data types
The following tables shows the primitive data types of the user interface (API) and the data types of the PLCSIM Advanced instance that are configured in the stored tag list. The data types that can be used as compatible are marked with "X".

Table 7- 469 Compatible primitive data types - Reading

API Bool

PLCSIM Advanced instance

INT

UINT

Float Dou- Char WChar

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

375

User interfaces (API) 7.8 Data types

8

16

32

64

8

16

32

64

ble

Bool

X

INT8

X

INT16

X

X

X

INT32

X

X

X

X

X

INT64

X

X

X

X

X

X

X

UINT8

X

UINT16

X

X

UINT32

X

X

X

UINT64

X

X

X

X

Float

X

Double

X

Char

X

WChar

X

Table 7- 470 Compatible primitive data types - Write

API

Bool

8

Bool

X

INT8

X

INT16

INT32

INT64

UINT8

UINT16

UINT32

UINT64

Float

Double

Char

WChar

INT

16

32

X

X

X

X

X

X

X

X

PLCSIM Advanced instance

UINT

64

8

16

32

64

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

Float Dou- Char WChar ble
X X X X

376

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

7.8.7.10

EDataType

Description

This enumeration contains all the PLC data types (STEP 7).

Table 7- 471 EDataType - Native C++

Syntax

enum EDataType {
SRDT_UNKNOWN = 0, SRDT_BOOL = 1,
SRDT_BYTE = 2, SRDT_CHAR = 3, SRDT_WORD = 4, SRDT_INT = 5, SRDT_DWORD = 6, SRDT_DINT = 7, SRDT_REAL = 8, SRDT_DATE = 9, SRDT_TIME_OF_DAY = 10, SRDT_TIME = 11, SRDT_S5TIME = 12, SRDT_DATE_AND_TIME = 14, SRDT_STRUCT = 17, SRDT_STRING = 19, SRDT_COUNTER = 28, SRDT_TIMER = 29, SRDT_IEC_Counter = 30, SRDT_IEC_Timer = 31, SRDT_LREAL = 48, SRDT_ULINT = 49, SRDT_LINT = 50, SRDT_LWORD = 51, SRDT_USINT = 52, SRDT_UINT = 53, SRDT_UDINT = 54, SRDT_SINT = 55, SRDT_WCHAR = 61, SRDT_WSTRING = 62, SRDT_LTIME = 64, SRDT_LTIME_OF_DAY = 65, SRDT_LDT = 66, SRDT_DTL = 67, SRDT_IEC_LTimer = 68, SRDT_IEC_SCounter = 69, SRDT_IEC_DCounter = 70, SRDT_IEC_LCounter = 71, SRDT_IEC_UCounter = 72, SRDT_IEC_USCounter = 73, SRDT_IEC_UDCounter = 74, SRDT_IEC_ULCounter = 75, SRDT_ERROR_STRUCT = 97, SRDT_NREF = 98, SRDT_CREF = 101,

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

377

SRDT_AOM_IDENT = 128, SRDT_EVENT_ANY = 129, SRDT_EVENT_ATT = 130, SRDT_EVENT_HWINT = 131, SRDT_HW_ANY = 144, SRDT_HW_IOSYSTEM = 145, SRDT_HW_DPMASTER = 146, SRDT_HW_DEVICE = 147, SRDT_HW_DPSLAVE = 148, SRDT_HW_IO = 149, SRDT_HW_MODULE = 150, SRDT_HW_SUBMODULE = 151, SRDT_HW_HSC = 152, SRDT_HW_PWM = 153, SRDT_HW_PTO = 154, SRDT_HW_INTERFACE = 155, SRDT_HW_IEPORT = 156, SRDT_OB_ANY = 160, SRDT_OB_DELAY = 161, SRDT_OB_TOD = 162, SRDT_OB_CYCLIC = 163, SRDT_OB_ATT = 164, SRDT_CONN_ANY = 168, SRDT_CONN_PRG = 169, SRDT_CONN_OUC = 170, SRDT_CONN_R_ID = 171, SRDT_PORT = 173,
SRDT_RTM = 174, SRDT PIP = 175

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

379

User interfaces (API) 7.8 Data types

Table 7- 472 EDataType - .NET (C#)

Syntax

public enum EDataType {
Unknown = 0, Bool = 1, Byte = 2, Char = 3, Word = 4, Int = 5, DWord = 6, DInt = 7, Real = 8, Date = 9, TimeOfDay = 10, Time = 11, S5Time = 12, DateAndTime = 14, Struct = 17, String = 19, Counter = 28, Timer = 29, IEC_Counter = 30, IEC_Timer = 31, LReal = 48, ULInt = 49, LInt = 50, LWord = 51, USInt = 52, UInt = 53, UDInt = 54, SInt = 55, WChar = 61, WString = 62, LTime = 64, LTimeOfDay = 65, LDT = 66, DTL = 67, IEC_LTimer = 68, IEC_SCounter = 69, IEC_DCounter = 70, IEC_LCounter = 71, IEC_UCounter = 72, IEC_USCounter = 73, IEC_UDCounte = 74, IEC_ULCounter = 75, ErrorStruct = 97,

380

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

NREF = 98, CREF = 101, Aom_Ident = 128, Event_Any = 129, Event_Att = 130, Event_HwInt = 131, Hw_Any = 144, Hw_IoSystem = 145, Hw_DpMaster = 146, Hw_Device = 147, Hw_DpSlave = 148, Hw_Io = 149, Hw_Module = 150, Hw_SubModule = 151, Hw_Hsc = 152, Hw_Pwm = 153, Hw_Pto = 154, Hw_Interface = 155, Hw_IEPort = 156, OB_Any = 160, OB_Delay = 161, OB_Tod = 162, OB_Cyclic = 163, OB_Att = 164, Conn_Any = 168, Conn_Prg = 169, Conn_Ouc = 170, Conn_R_ID = 171, Port = 173, Rtm = 174, Pip = 175

User interfaces (API) 7.8 Data types

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

381

User interfaces (API) 7.8 Data types

7.8.7.11

ETagListDetails

Description

This list contains all PLC areas that can be used as a filter to update the tag table.

Table 7- 473 ETagListDetails - Native C++

Syntax

enum ETagListDetails {
SRTLD_NONE = 0, SRTLD_IO = 1, SRTLD_M = 2, SRTLD_IOM = 3, SRTLD_CT = 4, SRTLD_IOCT = 5, SRTLD_MCT = 6, SRTLD_IOMCT = 7, SRTLD_DB = 8, SRTLD_IODB = 9, SRTLD_MDB = 10, SRTLD_IOMDB = 11, SRTLD_CTDB = 12, SRTLD_IOCTDB = 13, SRTLD_MCTDB = 14, SRTLD_IOMCTDB = 15 };

Table 7- 474 ETagListDetails - .NET (C#)

Syntax

enum ETagListDetails {
None = 0, IO = 1, M = 2, IOM = 3, CT = 4, IOCT = 5, MCT = 6, IOMCT = 7, DB = 8, IODB = 9, MDB = 10, IOMDB = 11, CTDB = 12, IOCTDB = 13, MCTDB = 14, IOMCTDB = 15 }

382

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.12

ERuntimeConfigChanged

Description

This list contains all possible causes of a OnConfigurationChanged event that the Runtime Manager sends.

Table 7- 475 ERuntimeConfigChanged - Native C++

Syntax

enum ERuntimeConfigChanged {
SRCC_INSTANCE_REGISTERED = 0, SRCC_INSTANCE_UNREGISTERED = 1 SRCC_CONNECTION_OPENED = 2, SRCC_CONNECTION_CLOSED = 3, SRCC_PORT_OPENED = 4, SRCC_PORT_CLOSED = 5 };

Table 7- 476 ERuntimeConfigChanged - .NET (C#)

Syntax

enum ERuntimeConfigChanged
{ InstanceRegistered = 0, InstanceUnregistered = 1, ConnectionOpened = 2, ConnectionClosed = 3, PortOpened = 4, PortClosed = 5
}

7.8.7.13

EInstanceConfigChanged

Description

This list contains all possible causes for a OnConfigurationChanged event that the virtual controller sends.

Table 7- 477 EInstanceConfigChanged - Native C++

Syntax

enum EInstanceConfigChanged {
SRICC_HARDWARE_SOFTWARE_CHANGED = 0, SRICC_IP_CHANGED = 1 };

Table 7- 478 EInstanceConfigChanged - .NET (C#)

Syntax

enum EInstanceConfigChanged {
HardwareSoftwareChanged = 0, IPChanged = 1 }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

383

User interfaces (API) 7.8 Data types

7.8.7.14

EPullOrPlugEventType

Description

This enumeration contains predefined types of pull/plug events for S7 modules.

Table 7- 479 EPullOrPlugEventType - Native C++

Syntax

enum EPullOrPlugEventType {
SR_PPE_UNDEFINED = 0, SR_PPE_PULL_EVENT = 1, SR_PPE_PLUG_EVENT = 2, SR_PPE_PLUG_EVENT_ERROR_REMAINS = 3, SR_PPE_PLUG_WRONG_MODULE_EVENT = 4 };

Table 7- 480 EPullOrPlugEventType - .NET (C#)

Syntax

enum EPullOrPlugEventType {
Undefined = 0, Pull = 1, Plug = 2, PlugErrorRemains = 3, PlugWrongModule = 4 }

7.8.7.15

EProcessEventType

Description

This enumeration contains predefined types of process events for S7 modules.

Table 7- 481 EProcessEventType - Native C++

Syntax

enum EProcessEventType {
SR_PET_UNDEFINED = 0, SR_PET_RISING_EDGE = 1, SR_PET_FALLING_EDGE = 2, SR_PET_LIMIT1_UNDERRUN = 3, SR_PET_LIMIT1_OVERRUN = 4, SR_PET_LIMIT2_UNDERRUN = 5, SR_PET_LIMIT2_OVERRUN = 6 };

384

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Table 7- 482 EProcessEventType - .NET (C#)

Syntax

enum EProcessEventType {
Undefined = 0, RisingEdge = 1, FallingEdge = 2, Limit_1_Underrun = 3, Limit_1_Overrun = 4, Limit_2_Underrun = 5, Limit_2_Overrun = 6 }

7.8.7.16

EDirection

Description

This enumeration contains properties of the diagnostic alarm.

Table 7- 483 EDirection - Native C++

Syntax

enum EDirection {
SRD_DIRECTION_INPUT = 0, SRD_DIRECTION_OUTPUT = 1 };

User interfaces (API) 7.8 Data types

Table 7- 484 EDirection - .NET (C#)

Syntax

enum EDirection {
Input = 0, Output = 1 }

7.8.7.17

EDiagProperty

Description

This enumeration contains the incoming/outgoing information of the diagnostic alarm.

Table 7- 485 EDiagProperty - Native C++

Syntax

enum EDiagProperty {
SRP_DIAG_APPEAR = 1, SRP_DIAG_DISAPPEAR = 2 };

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

385

User interfaces (API) 7.8 Data types

Table 7- 486 EDiagProperty - .NET (C#)

Syntax

enum EDiagProperty {
Appear = 1, Disappear = 2 }

7.8.7.18

EDiagSeverity

Description

This enumeration contains the severity of the diagnostic alarm (error, maintenance demanded, maintenance required).

Table 7- 487 EDiagSeverity - Native C++

Syntax

enum EDiagSeverity {
SRDS_SEVERITY_FAILURE = 0, SRDS_SEVERITY_MAINTENANCE_DEMANDED = 1, SRDS_SEVERITY_MAINTENANCE_REQUIRED = 2 };

Table 7- 488 EDiagSeverity - .NET (C#)

Syntax

enum EDiagSeverity {
Failure = 0, MaintDemanded = 1, MaintRequired = 2 }

386

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

User interfaces (API) 7.8 Data types

7.8.7.19

ERackOrStationFaultType

Description

This enumeration contains the types of the RackOrStationFault event.

Table 7- 489 ERackOrStationFaultType - Native C++

Syntax

enum ERackOrStationFaultType {
SR_RSF_FAULT = 0, SR_RSF_RETURN = 1 };

Table 7- 490 ERackOrStationFaultType - .NET (C#)

Syntax

enum ERackOrStationFaultType {
Fault = 0, Return = 1 }

7.8.7.20

ECycleTimeMonitoringMode

Description

This enumeration contains the sources of the timer for the maximum cycle time monitoring.

Table 7- 491 ECycleTimeMonitoringMode - Native C++

Syntax

enum ECycleTimeMonitoringMode {
SRCTMM_DOWNLOADED = 0, SRCTMM_IGNORED = 1, SRCTMM_SPECIFIED = 2 };

Table 7- 492 ECycleTimeMonitoringMode - .NET (C#)

Syntax

enum ECycleTimeMonitoringMode {
Downloaded = 0, Ignored = 1, Specified = 2 }

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

387

User interfaces (API) 7.8 Data types

7.8.7.21

EAutodiscoverType

Description

This enumeration is used in the Autodiscover Callback function.

Table 7- 493 EAutodiscoverType - Native C++

Syntax

enum EAutodiscoverType {
SRRSI_DISCOVER_STARTED = 0, SRRSI_DISCOVER_DATA = 1, SRRSI_DISCOVER_FINISHED = 2 };

Table 7- 494 EAutodiscoverType - .NET (C#)

Syntax

public enum EAutodiscoverType {
AutodiscoverStarted = 0, AutodiscoverData = 1, AutodiscoverFinished = 2 }

388

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Restrictions, messages and solution

8

8.1

Overview
Certain actions or events can lead to behavior in PLCSIM Advanced or in STEP 7 which deviates from that of a hardware CPU. Messages and possible solutions can be found in the following sections:  Restrictions with fail-safe CPUs (Page 389)  OPC UA server (Page 390)  Web server (Page 392)  Backing up and restoring the configuration of a PLCSIM Advanced instance (Page 393)  Restrictions for file paths (Page 393)  Restrictions for communications services (Page 394)  Restrictions for instructions (Page 394)  Restrictions to local communication via Softbus (Page 395)  Messages for communication via TCP/IP (Page 396)  Restrictions of security with VMware vSphere Hypervisor (ESXi) (Page 397)  Monitoring overflow (Page 398)  Deviating I/O values in the STEP 7 user program (Page 398)  Multiple simulations and possible collision of IP addresses (Page 399)  Lacking access to an IP address (Page 399)  Simulation in standby mode (Page 399)

8.2

Restrictions with fail-safe CPUs

Error downloading program changes
The error message "Corrupt" appears when downloading program changes to an F-CPU. The F-CPU remains in STOP mode when the "Start all" check box is selected.
Remedy Deselect the "Start all" check box in the "Load results" dialog. Once the download is complete, set the CPU to RUN mode manually using the RUN button.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

389

Restrictions, messages and solution 8.3 OPC UA server

8.3

OPC UA server

With OPC UA, data exchange is performed through an open, standardized and manufacturer-independent communication protocol. The CPU acting as the OPC UA server can communicate with OPC UA clients, for example, with HMI panels V14 and SCADA systems.

For technical reasons, the security settings in PLCSIM Advanced differ from a hardware CPU. Some features are disabled for simulations or are available to a limited extent.

Configuring OPC UA server
Start the instances via the communication interface "PLCSIM Virtual Ethernet Adapter" (TCP/IP) to use the OPC UA server.
The OPC UA server functionality is not available if communication takes place via the Softbus.

OPC UA security settings
Based on the OPC UA security settings, the same settings can be made in STEP 7 for the hardware CPU. However, PLCSIM Advanced does not take these security settings into consideration. This ensures that the user does not have his project change to perform a simulation.
NOTICE
OPC UA clients
OPC UA clients which are simulated with PLCSIM Advanced do not support security settings (certificates).
Therefore, select the check box "No Security" in the "Properties" tab for the OPC UA server.

390

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Restrictions, messages and solution 8.3 OPC UA server

Certificate

Note Do not use server certificates for secure connections PLCSIM Advanced uses its own certificate in the firmware and not that of STEP 7. The certificate need not be changed for simulations. However, it does not have the same security level as a downloaded server certificate and cannot be used for secure connections!
 Server Security Endpoints PLCSIM Advanced only supports Security Endpoint "none".
 Client certificate PLCSIM Advanced does not evaluate certificates the imported and configured in STEP 7 . PLCSIM Advanced accepts all client certificates automatically. This setting cannot be changed.
 User authentication PLCSIM Advanced does not use the user name configured in STEP 7. Only one logon is possible as "guest" or "anonymous".

User authorization for OPC UA
The PLCSIM Advanced license also contains the user authorization for OPC UA. The user authorization applies for two instances.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

391

Restrictions, messages and solution 8.4 Web server

8.4

Web server

The Web server integrated in a CPU enables monitoring and administering of the CPU by authorized users over a network. This permits evaluation and diagnostics over long distances.

Each PLCSIM Advanced instance can simulate its own Web server.

The simulation of the Web server is restricted under S7-PLCSIM Advanced V3.0:

 It is not possible to back up and restore a configuration via the Web server.

 The freeze state of a virtual controller is not shown as an internal operating state.

Configuring the Web server
S7 PLCSIM Advanced Start the instances via the communication interface "PLCSIM Virtual Ethernet Adapter" (TCP/IP) to use the Web server. The Web server functionality is not available if the communication is performed via the Softbus.
STEP 7 Configure the Web server in STEP 7 in the CPU properties.

Restricted Web server functionality
 Logon "PLCSIM" is preset as the user. There is no logon for users. A user configured in STEP 7 and his rights have no effect on the "PLCSIM" user.
 There is no access via the secure transmission protocol "HTTPS".  The information may not be fully displayed on some websites due to different data
handling.  There is no topology information.  "Online Backup&Restore" is not available.  FW updates are not supported.

Number of maximum connections
A fixed value of 384 is displayed in the Web server for the maximum possible number of connections.
Remedy The correct value can be found in the technical data for the loaded CPU.

392

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Restrictions, messages and solution 8.5 Backing up and restoring the configuration of a PLCSIM Advanced instance

8.5

Backing up and restoring the configuration of a PLCSIM Advanced

instance

Backing up and restoring the configuration
As of PLCSIM Advanced V2.0 it is possible to back up and restore a PLCSIM Advanced instance.
You can create as many backups as you want and store a variety of configurations for a PLCSIM Advanced instance.
You perform the backup and restore in the TIA Portal as you would in a real CPU.
Backup and restore via the Web server and (simulated) display are not supported.
A backup that was created with PLCSIM Advanced can only be used with PLCSIM Advanced.
It is not possible to restore the configuration of a real CPU with a backup from PLCSIM Advanced.

Requirements

 The configuration of a PLCSIM Advanced instance is backed up and restored over the TCP/IP protocol, Softbus is not supported.
 It is only possible to restore the configuration of a PLCSIM Advanced instance with the corresponding backup from PLCSIM Advanced.

8.6

Restrictions for file paths
The following restrictions apply for user interfaces which expect a path or a complete file name as the transfer parameter:

Restrictions for local paths
Restrictions for network paths

Write permissions to system-critical directories such as the Windows directory (%Windows%) or the program directories (%Program Files%, %Program Files (x86)%) are not allowed.
In this case the C++ user interface returns the error code SREC_WRONG_ARGUMENT. In this case the managed user interface returns an exception with the error code RuntimeErrorCode.WrongArgument.
In order to be able to use network paths, you must incorporate them as a network drive.
Otherwise, the C++ user interface returns the error code SREC_WRONG_ARGUMENT. The managed user interface returns an exception with the error code RuntimeErrorCode.WrongArgument.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

393

Restrictions, messages and solution 8.7 Restrictions for communications services

8.7

Restrictions for communications services

TUSEND / TURCV
When you run the UDP blocks TUSEND and TURCV via the "PLCSIM" communication interface (Softbus), you get error code 0x80C4 at the transmission end and receiving end: Temporary communications error. The specified connection is temporarily down.
Solution Set "PLCSIM Virtual Ethernet Adapter" (TCP/IP) as the communication interface in PLCSIM Advanced.
Secure TCP connections
PLCSIM Advanced does not support TLS (Transport Layer Security) and has no certificate management. It is therefore not possible to establish secure TCP connections from the simulation. This means that the following connections are not supported:  Secure OUC connections (Secure Open User Communication)  Secure connections to a mail server using TMAIL_C  HTTPS connections to the Web server

8.8

Restrictions for instructions

PLCSIM Advanced simulates instructions for CPUs S7-1500 and ET 200SP as close to reality as possible. PLCSIM Advanced checks the input parameters for validity and returns outputs that are valid but do not necessarily correspond to those that a real CPU with physical inputs/outputs would return.

Instructions not supported
Unsupported instructions are handled as not ready, their value is always "OK". PLCSIM Advanced does not support the following instructions:
 DP_TOPOL
 PORT_CFG

394

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Restrictions, messages and solution 8.9 Restrictions to local communication via Softbus

8.9

Restrictions to local communication via Softbus

Identical IP addresses for instances
If the "PLCSIM" communication interface (Softbus) is set, then identical IP addresses are created automatically for all instances when creating the instances through the Control Panel. In STEP 7, only one instance is therefore displayed in the lifelist.
Solution Use the API function SetIPSuite() to assign a unique address for each instance, then all instances are displayed in STEP 7 with their IP addresses.
API function  SetIPSuite() (Page 160)
Working with multiple instances
When you are working with instances without unique IP addresses, note the following procedure for downloading from TIA Portal via "PLCSIM" (Softbus):

1. Start only one instance with the symbol in the Control Panel. 2. In TIA Portal, download the program to this instance. 3. Repeat the steps until you have created all instances and downloaded all projects.

Online and diagnostics
If the "PLCSIM" (Softbus) communication interface is set, no details are displayed for the "Online and Diagnostics" function under the PROFINET interface (IP address, MAC address, etc.).

See also

Controller - Information and settings (Page 157)

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

395

Restrictions, messages and solution 8.10 Messages for communication via TCP/IP

8.10

Messages for communication via TCP/IP

Error codes

If an ID with error designation appears in the taskbar, you will find the description in section 7 "User interfaces (API)".

Figure 8-1 Example: Error code 63
Messages and remedy
The settings for TCP/IP communication are checked in the S7-PLCSIM Advanced Control Panel. The messages and the corresponding remedies are listed below:
Message "Siemens PLCSIM Virtual Ethernet Adapter was not found. Please reinstall PLCSIM Advanced."
Remedy The PLCSIM Virtual Ethernet Adapter cannot be found on the system. Run PLCSIM Advanced Setup again: 1. Double-click the download package or insert the installation medium into the drive. The
setup program starts up automatically, provided you have not disabled the Autostart function on the computer. If the setup program does not start up automatically, start it manually by double-clicking the "Start.exe" file. 2. Follow the prompts until you reach the "Configuration" window. Select the "Repair" check box. 3. Follow the remaining prompts to repair your installation. 4. Complete the repair operation by restarting your computer.
Message "Siemens PLCSIM Virtual Ethernet Adapter is disabled. Please enable it."
Remedy The PLCSIM Virtual Ethernet Adapter is deactivated on the system. In the Control Panel, under "Network and Sharing Center" > "Change Adapter Settings" and activate the network adapter.

396

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

8.11

Restrictions, messages and solution 8.11 Restrictions of security with VMware vSphere Hypervisor (ESXi)
Message "NetGroup Packet Filter Driver (NPF) is not running. Start it from cmd with 'net start npf'."
Remedy The NetGroup Packet Filter Driver (NPF) is not active on the system. Open a command line in administrator mode and enter the command "net start npf".
Message "You have to set a valid IP address for the Siemens PLCSIM Virtual Ethernet Adapter."
Remedy Assign a static IP address to the Siemens PLCSIM Virtual Ethernet Adapter or obtain an IP address via DHCP (default setting).
Restrictions of security with VMware vSphere Hypervisor (ESXi)
When you use the virtualization platform VMware vSphere Hypervisor (ESXi), you must change the policy exception to communicate over TCP/IP.
Remedy Accept the "Promiscuous mode and "Forged transmit" options for the Virtual Switch of the ESXi.
NOTICE Restrictions of security For security reasons, Promiscuous mode is disabled by default. If you accept the Promiscuousmode, the real Ethernet adapter even receives telegrams that are not addressed to it.

Figure 8-2 Policy exceptions for VMware vSphere Hypervisor (ESXi)

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

397

Restrictions, messages and solution 8.12 Monitoring overflow

8.12

Monitoring overflow

Monitoring of main cycle
The maximum cycle time monitoring for PLCSIM Advanced is one minute.
If you want to use the values that are configured in the TIA Portal, set them using the following API function: SetCycleTimeMonitoringMode().
See Cycle control (Page 248)

Monitoring of cyclical events
If your simulation contains cyclic interrupts, the queue of PLCSIM Advanced may overflow for cyclic events. Due to the execution speed of PLCSIM Advanced compared to real hardware, the time required to create the diagnostics buffer entry may be longer than the time until the next cyclic interrupt.
In this case, an additional entry is placed in the queue, causing another overflow. In the event of an overflow, PLCSIM Advanced provides visual information in the form of diagnostics buffer messages and a red error icon in the project tree.

See also

Speed up and slow down simulation (Page 89)

8.13

Deviating I/O values in the STEP 7 user program
Updated values
Each value change made by a STEP 7 user program in the I/O address areas is overwritten in the cycle control point with the updated value that was written via the API functions Write...(). The API functions Read...() only return this updated value and not the value from STEP 7 for the input range.
Non-updated values
If the value was not updated via the API functions Write...(), the API functions Read...() return the value from STEP 7 for the output range.

See also

Simulate peripheral I/O (Page 75)

398

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

8.14

Restrictions, messages and solution 8.14 Multiple simulations and possible collision of IP addresses
Multiple simulations and possible collision of IP addresses
You can simultaneously simulate multiple CPUs, but each simulated CPU interface requires a unique IP address. Make sure your CPUs have different IP addresses before starting the simulation.

8.15

Lacking access to an IP address

Special feature of distributed communication
If you use multiple network nodes on the same subnet through different virtual or real adapters, the operating system may search for the node on the wrong adapter.
Remedy Repeat your requests or enter "arp -d <IP address>" in the command line editor of Windows.

8.16

Simulation in standby mode
If your computer or programming device goes into standby or hibernation mode, the simulation may be stopped. In this case, the communication between STEP 7 and PLCSIM Advanced is stopped. When your computer or programming device starts up again, the communication may need to be reestablished. In some cases, it may also be necessary to open the simulation project again.
To prevent this situation, disable the standby mode on your computer or programming device.

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

399

List of abbreviations

Abbreviation ALM
API arp BCD CPU DLL HMI IE GUI LAN
MFP OB ODK OPC UA PG PLC PN RAM RT SO TCP/IP TIA PIP UTC VM VPLC WinCC

Term Automation License Manager Tool for managing license keys in STEP 7 Application Programming Interface user interface Address resolution protocol Binary Coded Decimal Central Processing Unit (Synonym for PLC) Dynamic Link Library Human Machine Interface user interface Industrial Ethernet Graphical User Interface Local Area Network Computer network that is limited to a local area. Multifunctional platform Organization Block Open Development Kit Open Platform Communications Unified Architecture Programming device Programmable Logic Controller PROFINET Random Access Memory Runtime Shared Object Transmission Control Protocol/Internet Protocol Totally Integrated Automation Process Image Partition Coordinated Universal Time Virtual Machine Virtual Programmable Logic Controller Windows Control Center

A

400

S7-PLCSIM Advanced Function Manual, 11/2019, A5E37039512-AC

Diagnostics

SIMATIC
S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Diagnostics
Function Manual

Preface

Function manuals Documentation Guide

1

Overview of system diagnostics

2

Quick start

3

Setting and determining system diagnostics

4

System diagnostics by means of the user program

5

Alarms

6

Diagnostics of the S71500R/H redundant system

7

11/2019
A5E03735838-AF

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03735838-AF  10/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface
Purpose of the documentation
This function manual provides an overview of the diagnostics options for the automation system SIMATIC S7-1500, for the CPUs 1513pro-2 PN and 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL. The documentation covers the following:  Illustration of the uniformity and consistency of system diagnostics  Overview of the options for establishing system diagnostics information
Basic knowledge required
The following knowledge is required in order to understand the function manual:  General knowledge in the field of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge of working with STEP 7 and WinCC  Knowledge about the use of Microsoft Windows operating systems
Scope of the documentation
This documentation is the basic documentation for all products of the S7-1500, ET 200MP, ET 200SP and ET 200AL systems, as well as for the CPUs 1513pro-2 PN und 1516pro-2 PN. The product documentation is based on this documentation.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

3

Preface

What's new in the Diagnostics function manual, Edition 11/2019 compared to Edition 10/2018

What's new?
Changed contents

Updated restrictions for the S7-1500R/H redundant system

What are the customer benefits?
Functions with which you are familiar from the SIMATIC S7-1500 automation system are implemented for the S7-1500R/H redundant system.

Where can I find the information?
Section Diagnostics of the S71500R/H redundant system (Page 97)

What's new in the Diagnostics function manual, Edition 10/2018 compared to Edition 09/2016

What's new? New contents
Changed contents

Description of the diagnostics of the S7-1500R/H redundant system
Scope of the function manual expanded to include the S7-1500R/H redundant system

What are the customer benefits?

Where can I find the information?

You obtain information in compact form on Section Diagnostics of the S7-

the special features of the diagnostics in 1500R/H redundant system

the S7-1500R/H redundant systems.

(Page 97)

Functions with which you are familiar from the SIMATIC S7-1500 automation system are implemented for the S7-1500R/H redundant system.

Redundant System S71500R/H System Manual (https://support.industry.sieme ns.com/cs/ww/en/view/109754 833)

Diagnostics

4

Function Manual, 11/2019, A5E03735838-AF

Preface

What's new in the Diagnostics function manual, Edition 09/2016 compared to Edition 06/2014

What's new? New contents

What are the customer benefits?

Extended functionality of the · Web server
·

You obtain information about:
­ Know-how protection or copy protection of the PLC program
­ Program/communication load and cycle time
­ F-collective signatures, cycle times and runtimes of the F-runtime group(s) (with an F-CPU)
You can monitor statuses, errors, technology alarms and the current values of technology objects (TOs) with the Web server.

Where can I find the information?
Section Diagnostics information using the web server (Page 48),
Web server (http://support.automation.siem ens.com/WW/view/en/5919356 0) function manual,
Using the trace and logic analyzer function (https://support.industry.sieme ns.com/cs/ww/en/view/648971 28) function manual

· You can read, view and save trace recordings via the Web server and thus obtain plant and project information for diagnostics and maintenance without STEP 7.

· You can set four additional languages for the Web server interface.

Changed contents

Assignment of different project languages extended

You can assign up to three different project languages for comments and alarm texts to the user interface languages of display devices.

Section Editing alarms in the alarm editor (Page 78)

Scope of the function manual expanded to include CPU 1516pro-2 PN

Functions that you will be familiar with from the SIMATIC S7-1500 CPUs are implemented in the CPU 1516pro-2 PN (degree of protection IP65, IP66 and IP67).

Operating instructions CPU 1516pro-2 PN (https://support.industry.sieme ns.com/cs/ww/en/view/109482 416)

Security events added

You know which types of events are registered as security events in the diagnostics buffer and can configure group alarms for them.

Section CPU diagnostics buffer (Page 42)

Influence of the value status You know which factors influence the bit in Section System diagnostics

explained

the value status and can take this into

using process image inputs

account during configuration.

(Page 73)

Note added on the maximum configuration limits of program alarms.

Section Creating alarms with the "Program_Alarm" instruction (Page 77).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

5

Preface

Conventions

STEP 7: We refer to "STEP 7" in this documentation as a synonym for the configuration and programming software "STEP 7 as of V12 (TIA Portal)" and subsequent versions. This document contains illustrations of the described devices. The illustrations may differ slightly from the device supplied. You should also pay particular attention to notes such as the one shown below:
Note A note contains important information on the product, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Diagnostics

6

Function Manual, 11/2019, A5E03735838-AF

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

7

Table of contents

Preface ................................................................................................................................................... 3

1 Function manuals Documentation Guide ............................................................................................... 10

2 Overview of system diagnostics ............................................................................................................ 12

2.1

Properties of system diagnostics ........................................................................................... 12

2.2

Benefits of innovative system diagnostics ............................................................................. 14

3 Quick start ............................................................................................................................................ 15

3.1

Using the display of the CPU ................................................................................................. 16

3.2

Using STEP 7......................................................................................................................... 18

4 Setting and determining system diagnostics .......................................................................................... 23

4.1

Configuring alarms for system diagnostics ............................................................................ 23

4.2 4.2.1 4.2.1.1 4.2.1.2 4.2.2 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4 4.2.2.5 4.2.2.6 4.2.2.7 4.2.2.8 4.2.3 4.2.4 4.2.4.1 4.2.4.2 4.2.4.3 4.2.4.4

Options for displaying system diagnostics ............................................................................. 25 Diagnostics information at the devices .................................................................................. 26 LEDs ...................................................................................................................................... 26 Display of the CPU................................................................................................................. 27 Diagnostics information in STEP 7 ........................................................................................ 29 Explanation of diagnostics symbols ....................................................................................... 29 Accessible devices (without project) ...................................................................................... 31 Devices & networks ............................................................................................................... 33 Online & diagnostics .............................................................................................................. 36 "Diagnostics" tab in the Inspector window ............................................................................. 39 CPU diagnostics buffer .......................................................................................................... 42 "Online tools" task card .......................................................................................................... 45 Configuring the settings for I/O modules in STEP 7 .............................................................. 47 Diagnostics information using the web server ....................................................................... 48 Diagnostics information using the HMI diagnostics view ....................................................... 59 Configuring system diagnostics ............................................................................................. 60 Different views of the HMI diagnostics view .......................................................................... 63 Inserting system diagnostics indicator ................................................................................... 66 Configuring button as system diagnostics indicator............................................................... 68

5 System diagnostics by means of the user program................................................................................ 71

5.1

Options of system diagnostics in the user program............................................................... 71

5.2

System diagnostics using process image inputs ................................................................... 73

Diagnostics

8

Function Manual, 11/2019, A5E03735838-AF

Table of contents

6 Alarms .................................................................................................................................................. 76

6.1

Creating alarms with the "Program_Alarm" instruction...........................................................77

6.2

Editing alarms in the alarm editor ...........................................................................................78

6.3

Display of program alarms ......................................................................................................81

6.4

Output of the alarm state with the "Get_AlarmState" instruction ............................................82

6.5 6.5.1 6.5.2 6.5.3 6.5.4

Example program for program alarms ....................................................................................83 Task ........................................................................................................................................83 Example 1: Program alarm without associated values...........................................................84 Example 2: Program alarm with associated value..................................................................89 Displaying the alarm ...............................................................................................................96

7 Diagnostics of the S7-1500R/H redundant system................................................................................. 97

7.1

Online and Diagnostics view.................................................................................................100

7.2

"Online Tools" task card........................................................................................................103

7.3

Diagnostics view in the project tree and in the device view and network view ....................106

7.4

Diagnostics in the RUN-Redundant system state ................................................................111

7.5

Restrictions in the RUN-Solo system state...........................................................................117

7.6

System diagnostics by means of the user program..............................................................118

Glossary ............................................................................................................................................. 119

Index................................................................................................................................................... 123

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

9

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Diagnostics

10

Function Manual, 11/2019, A5E03735838-AF

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

11

Overview of system diagnostics

2

2.1

Properties of system diagnostics

Introduction

In the SIMATIC environment, the term "system diagnostics" refers to diagnostics of devices and modules.
All SIMATIC products have integrated diagnostic functions that you can use to detect and remedy faults. The components automatically flag a potential fault in the operation and provide detailed information. You can minimize unscheduled standstill times with plant-wide diagnostics.
The SIMATIC automation system monitors the following states in the running plant:
 Device failure/recovery
 Insert/remove event
 Module fault
 I/O access error
 Channel fault
 Parameter assignment error
 Failure of the external auxiliary voltage

Properties ofSIMATIC system diagnostics
 Integrated as standard in the hardware  System-wide across bus limits  Automatic localization of the error source  Automatic output of the cause of the error in plain text  Plant-wide diagnostics of all components  Archiving and logging of alarms  Configurability of alarms

Diagnostics

12

Function Manual, 11/2019, A5E03735838-AF

Overview of system diagnostics 2.1 Properties of system diagnostics
Consistent diagnostics from the field level all the way to the management level
The various diagnostics media give you a uniform view of maintenance-related information of every automation component in the plant: System status (module and network status, alarms for system errors) are available plant-wide in a uniform display.

Figure 2-1 Overview of system diagnostics in a plant

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

13

Overview of system diagnostics 2.2 Benefits of innovative system diagnostics

2.2

Benefits of innovative system diagnostics

System diagnostics is also possible in STOP
The system diagnostics is integrated in the firmware of the CPU and works independently of the cyclic user program. This means it is also available in the STOP CPU operating mode. Faults are detected immediately and signaled to the higher-level HMI devices, the Web server and the display of the SIMATIC S7-1500 CPU, even in STOP mode. This makes system diagnostics consistent with the actual plant state at all times.
Uniform display concept
All clients of a system are provided with diagnostics information by a uniform mechanism. The same system diagnostics information is used regardless of the display medium.

Step
 

Description The device detects an error and sends diagnostics data to the assigned CPU. The CPU informs the connected display media. The display of the system diagnostics is updated.

Figure 2-2 Sequence of the system diagnostics

Diagnostics

14

Function Manual, 11/2019, A5E03735838-AF

Quick start

3

Introduction

The following chapters of this documentation describe the different options for establishing system diagnostics. All described options can be used independently of one another. This chapter gives you an overview of the basic procedure to get initial diagnostics information fast.
Note System diagnostics is generally available for the devices of the SIMATIC series.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

15

Quick start 3.1 Using the display of the CPU

3.1

Using the display of the CPU

The display of the SIMATIC S7-1500 CPU offers a fast and direct option to get diagnostics information. You can call up status information in different menus on the display.

Requirements

 A project has been created.  The project has been downloaded to the CPU.

Determining diagnostics information using the display of the SIMATIC S7-1500 CPU
To determine diagnostics information using the display, follow these steps: 1. Select the "Diagnostics" menu on the display. 2. Select the "Diagnostics buffer" command from the "Diagnostics" menu.

Figure 3-1 Display of SIMATIC S7-1500 CPU

Diagnostics

16

Function Manual, 11/2019, A5E03735838-AF

Result

Quick start 3.1 Using the display of the CPU
The diagnostics events are displayed in the diagnostics buffer in the sequence in which they occur.

Figure 3-2 Display of the diagnostics buffer in the display of the SIMATIC S7-1500 CPU
Note Automatic updating of diagnostics information You set automatic updating of the diagnostics information under: "Display" > "DiagnosticRefresh".
Additional information
You can find information about the configuration of alarms in the section Configuring alarms for system diagnostics (Page 23).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

17

Quick start 3.2 Using STEP 7

3.2

Using STEP 7

Getting started with STEP 7 gives you fast access to detailed diagnostics information.

Requirements

 A project has been created.  The project has been downloaded to the CPU.  An error has occurred.  The programming device must be able to establish a connection to the CPU via an
interface.

Determining diagnostics information using STEP 7
To determine diagnostics information using STEP 7, follow these steps: 1. Open the respective project in STEP 7. 2. Open the portal view of STEP 7. 3. Select the "Online & Diagnostics" portal. 4. Select the "Online status" action.
The "Select device" dialog opens. The dialog is an image of the configured devices in the project.

Figure 3-3 Device selection for online connection in the portal view
5. Activate the "Go online" option button for the device that you want to use to establish an online connection.
6. Click on the "Go online" button.

Diagnostics

18

Function Manual, 11/2019, A5E03735838-AF

7. The "Go online" dialog opens.

Quick start 3.2 Using STEP 7

Figure 3-4 Establishing an online connection 8. Make the settings for the interface.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

19

Quick start 3.2 Using STEP 7
9. Click on the "Go online" button. The project view of STEP 7 opens. The network view is opened in the work area. The symbols in the project tree provide initial information about the faulty modules.

Figure 3-5 Display of the fault in the network view

Diagnostics

20

Function Manual, 11/2019, A5E03735838-AF

Quick start 3.2 Using STEP 7
10.Double-click the device which displays an alarm message to access the faulty module directly. This is the CPU in the example. The device view of the CPU is opened in the work area. In this view you can see directly in which module the error has occurred.

Figure 3-6 Display of the faulty module in the device view
11.Open the "Diagnostics" tab and the subordinate "Device information" tab in the Inspector window for a more detailed error description.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

21

Quick start 3.2 Using STEP 7

Result

The link in the "Details" table column takes you to the online and diagnostics view of the device and to the diagnostics buffer there, for example. This includes more information on all diagnostics events in the order in which they occurred.

Figure 3-7 Diagnostics buffer with detailed error description
Note Symbols and their meaning You can find a legend with the meaning of each symbol in Explanation of diagnostics symbols (Page 29) and in the online help for STEP 7.

Diagnostics

22

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics

4

Introduction

System diagnostics is generally available for the devices of the SIMATIC series.
In the properties of each individual CPU, you can specify if you want to receive alarms for system diagnostics on your display device. Alarms are provided on the display of the SIMATIC S7-1500 CPU, the CPU Web server and the HMI device. Alarms are enabled by default. If you do not want to receive alarms for system diagnostics on your display devices, you can disable the sending of alarms.

4.1

Configuring alarms for system diagnostics

Predefined alarm texts are available for establishing the system diagnostics.

Requirements

 STEP 7 is open.  A project is open.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

23

Setting and determining system diagnostics 4.1 Configuring alarms for system diagnostics

Procedure

To make alarm settings for system diagnostics of the project in STEP 7, follow these steps:
1. Open the "Common data" folder in the project tree.
2. Double-click the "System diagnostics settings" entry.
You now have access to the alarm settings. System diagnostics is enabled by default. System diagnostics cannot be disabled for the use of a CPU from the SIMATIC S7-1500 product series.

Figure 4-1 Properties of system diagnostics and alarm settings
3. In the settings, specify the alarm category that is to be displayed and if it needs to be acknowledged.
The check boxes in the "Activation" column are enabled by default. When you disable all check boxes, the status of the HMI system diagnostics view is still updated with the "Info Report" functionality.

Result

You have configured the alarms for system diagnostics of the project in STEP 7.
The settings are saved with the project and become effective after the compiling and downloading of the hardware configuration to the involved components.
Maintenance events (maintenance demanded, maintenance required) are entered in the alarm buffer of the CPU just like any other event.

Diagnostics

24

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2

Options for displaying system diagnostics

Example

This section includes a diagnostics example to show how system diagnostics is established with the help of different display options. The example includes a CPU from the SIMATIC S7-1500 product series that is connected to an ET 200S distributed I/O system and an HMI Comfort Panel via PROFINET.

Figure 4-2 System diagnostics display options
The following sections include figures that illustrate how diagnostics information is displayed with the help of different display options.  Using the LEDs on the hardware (Page 26)  Local error analysis via the display of the CPU (Page 27)  Using STEP 7 as of V12 (Page 29)  Remote diagnostics using the Web server (Page 48)  Stationary system diagnostics using the HMI diagnostics view (Page 59)

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

25

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.1

Diagnostics information at the devices

4.2.1.1

LEDs

Overview

All hardware components, such as CPUs, interface modules and modules, provide information about their operating mode as well as internal and external errors through their LEDs. Diagnostics by means of LEDs is an initial tool for error localization.
The graphics below include examples for the arrangement of LEDs on some modules.

Table 4- 1 LED displays on the modules

CPU 1516-3 PN/DP

IM 155-5 PN ST

DI 32x24VDC HF

PS 25W 24VDC

 RUN/STOP LED

RUN LED

(two-colored LED: green/yellow) (two-colored LED:

green/yellow)

RUN LED (single-colored LED: green)

RUN LED (single-colored LED: green)

 ERROR LED
(single-colored LED: red)

ERROR LED

ERROR LED

ERROR LED

(single-colored LED: red) (single-colored LED: red) (single-colored LED: red)

 MAINT LED
(single-colored LED: yellow)

MAINT LED (single-colored LED: yellow)

without function

MAINT LED (single-colored LED: yellow)

 X1 P1
(two-colored LED: green/yellow)

X1 P1 (single-colored LED: green)

LED CHx (two-colored LED: green/red)

Diagnostics

26

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

CPU 1516-3 PN/DP
 X1 P2
(two-colored LED: green/yellow)
 X2 P1
(two-colored LED: green/yellow)

IM 155-5 PN ST
X1 P2 (single-colored LED: green)

DI 32x24VDC HF

PS 25W 24VDC

Additional information
The meaning of the individual LED displays, their different combinations and the remedial measures resulting from them in case of errors are device-specific. The explanation can be found in the manuals of the modules.

4.2.1.2

Display of the CPU

Introduction

Each CPU in the S7-1500 automation system has a front cover with a display and operating keys. You can display status information in various menus on the display of the CPU. You use the operating keys to navigate through the menus.

Figure 4-3 Display - diagnostics screen

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

27

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Display options
The display of the SIMATIC S7-1500 CPU shows the following diagnostics information:  CPU operating state "Diagnostics" menu  Error and alarm texts (system diagnostics alarms)  Information entered in the diagnostics buffer  Watch tables  Information on the cycle times of the user program  Utilization of the CPU memory "Modules" menu  Information on modules and the network  Detailed device view with diagnostics symbols  Order number, CPU version and central I/O modules  Module status for central and distributed modules  Information about the currently installed firmware
Additional information
For additional information on the topic "Functions and operation of the display of the SIMATIC S7-1500 CPU", see the documentation for the S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792). You can find detailed information on the individual options, a training course and a simulation of the available menu commands of the display for the CPU in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterial-as/interactive-manuals/gettingstarted_simatic-s7-1500/disp_tool/start_en.html).

Diagnostics

28

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.2

Diagnostics information in STEP 7

4.2.2.1

Explanation of diagnostics symbols

Diagnostics symbols for modules and devices
When the online connection to a device is established in STEP 7, the diagnostics status of the device and its lower-level components and, if applicable, the device operating mode are also determined. The following table shows the possible symbols and their meaning.

Table 4- 2 Symbol

Diagnostics symbols for modules and devices
Meaning The connection with a CPU is being established.

The CPU is not reachable at the set address.

The configured CPU and the CPU actually present are of incompatible types. Example: An existing CPU 315-2 DP is incompatible with a configured CPU 15163 PN/DP.
On establishment of the online connection to a protected CPU, the password dialog was terminated without specification of the correct password.
No fault

Maintenance required

Maintenance demanded

Error

The module or device is deactivated.

The module or the device cannot be reached from the CPU (valid for modules and devices below a CPU).
Diagnostics data is not available because the current online configuration data differ from the offline configuration data.
The configured module or device and the module or device actually present are incompatible (valid for modules or devices under a CPU).
The configured module does not support display of the diagnostics status (valid for modules under a CPU).
The connection is established, but the module status has not yet been determined or is unknown.
Hardware error in lower-level component: A hardware fault has occurred in at least one lower-level hardware component (occurs as a separate symbol only in the project tree).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

29

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Symbols for the comparison status
The diagnostics symbols can be combined at the bottom right with additional smaller symbols that indicate the result of the online/offline comparison. The following table shows the possible comparison symbols and their meaning.

Table 4- 3 Symbol

Symbols for the comparison status
Meaning Hardware error in lower-level component: The online and offline versions differ (only in the project tree) in at least one lower-level hardware component. Software error in lower-level component: The online and offline versions differ (only in the project tree) in at least one lower-level software component. Online and offline versions of the object are different

Object only exists online

Object only exists offline

Online and offline versions of the object are the same

Operating mode symbols for CPUs and CPs
The following table shows the possible symbols and their respective operating states.

Table 4- 4 Symbol

Operating mode symbols for CPUs and CPs
Operating mode RUN

STOP

STARTUP

DEFECTIVE

Unknown operating mode

The configured module does not support display of the operating mode.

Diagnostics

30

Function Manual, 11/2019, A5E03735838-AF

Event table

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

The following information is displayed in the table for each diagnostics event:  Sequential number of the entry
The first entry contains the latest event.  Date and time of the diagnostics event
If no date and time are shown, the module has no integrated clock.  Short designation of the event and, if applicable, the reaction of the CPU  Symbol for information on incoming/outgoing status The following table shows the possible symbols and their meaning.

Table 4- 5 Symbol

Symbols in the event table
Meaning Incoming event

Outgoing event

Incoming event for which there is no independent outgoing event

User-defined diagnostics event

Additional information
For additional information on the individual symbols, please refer to the online help for STEP 7.

4.2.2.2

Accessible devices (without project)

Accessible devices
Accessible devices are all devices that are connected to a PG/PC either directly by an interface or by means of a subnet and that are switched on. These devices can display diagnostic information even without an offline project.

Requirements

 STEP 7 is open.  The portal view or project view is open.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

31

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Procedure

To display diagnostic information for specific devices even without an offline project, follow these steps: 1. Establish a connection to the respective CPU. 2. Select the command "Accessible devices" from the "Online" menu.
The "Accessible devices" dialog opens.

Figure 4-4 "Accessible devices" dialog
3. Make the settings for the interface. 4. Select the respective device under "Accessible nodes of the selected interface". 5. Confirm the dialog with the "Display" button.

Diagnostics

32

Function Manual, 11/2019, A5E03735838-AF

Result

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
The device is displayed in the project tree. You open the diagnostic information in the work area with a double-click on "Online & Diagnostics". Information is available on the diagnostic status, cycle times, memory usage and the diagnostics buffer.

Figure 4-5 Device in the project tree

4.2.2.3

Devices & networks

Devices & networks - Go online
You can get an overview of the current state of your automation system in the device view or network view. You implement the following tasks in the device view:  Device configuration and parameter assignment  Module configuration and parameter assignment You implement the following tasks in the network view:  Device configuration and parameter assignment  Networking devices

Requirements

 STEP 7 is open.  A project is open.  The project view is open.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

33

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Procedure

To get an overview of the current state of your automation system, follow these steps:

1. Open the "Network view" in the working area.

2. Select the CPU.

3. Click the "Go online"

button in the toolbar.

The "Go online" dialog opens.

Figure 4-6 Go online
4. Make the settings for the interface. 5. Select the respective device under "Compatible devices in the target subnet". 6. Confirm the dialog with the "Connect" button.
The online mode is started.

Diagnostics

34

Function Manual, 11/2019, A5E03735838-AF

Result

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
The connected devices are now displayed with diagnostic information in the network view in the working area. Here you get an overview of the current state of your automation device.

Figure 4-7 CPU with diagnostic information
You get to the "Device view" with a double-click on the device. The diagnostic information for the individual modules is displayed in this view.
Note Symbols and their meaning You will find a legend with the meaning of each symbol in Explanation of diagnostics symbols (Page 29) and in the online help for STEP 7.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

35

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.2.4

Online & diagnostics

Online mode

In online mode there is an online connection between your PG/PC and one or several devices. Depending on the properties of a device, you are offered specific diagnostics options and certain functions in online mode.  Diagnostics
­ General module information ­ Diagnostics status ­ Cycle time ­ Memory ­ Diagnostics buffer ­ Display ­ Interface information (e.g. IP parameter, port information)  Functions ­ Assign IP address ­ Set time and date of the CPU ­ Firmware update (e.g. for PLC, display) ­ Assign device name ­ Reset to factory settings ­ Format memory card ­ Save service data

Diagnostics

36

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
To establish an online connection at least one PG/PC interface must be installed that is physically connected with a device, for example, with an Ethernet cable. The current online status of a device is indicated by a symbol to the right of the device in the project tree.

Figure 4-8 Partial view of network view

Requirements

 STEP 7 is open.  A project is open.  The project view is open.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

37

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Procedure

To display an overview of the faulty devices, follow these steps: 1. Select the affected device folder in the project tree. 2. Select the shortcut menu command "Online & Diagnostics".
The online and diagnostics view of the module to be diagnosed is started.

Figure 4-9 Setting online access
3. Make the settings for the interface. Here you can change an interface access that has already been set for an online connection that was successfully established previously.
4. Click on the "Go online" button. The online connection is established.

Result

You can find detailed diagnostics information on each device in the Inspector window, in the "Diagnostics" section of the area navigation on the "Properties" tab.

Diagnostics

38

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.2.5

"Diagnostics" tab in the Inspector window

"Diagnostics" tab in the Inspector window
The "Diagnostics" tab of the Inspector window includes information on diagnostics events and configured alarm events.

Figure 4-10 Diagnostics in the Inspector window, "Device information" tab
Note Symbols and their meaning You can find a legend with the meaning of each symbol in Explanation of diagnostics symbols (Page 29) and in the online help for STEP 7.

Subordinate "Device information" tab
This tab gives you an overview of faulty devices to which an online connection exists or has existed. The table provides the following diagnostics information on the faulty devices:
 Online status: Includes the online status as diagnostics symbol and in words
 Operating mode: Includes the operating mode as symbol and in words
 Device/module: Name of the affected device or the affected module
 Connection established via ...: Specifies the path used to establish the connection to the failed device.
 Alarm: This explains the entry in the previous columns and displays an alarm, if necessary
 Details: The link opens the online and diagnostics view associated with the device or puts it in the foreground. If the device cannot be reached, the link opens the "Go online" dialog.
 Help: The link provides additional information on the fault.
Note Communication and access errors
Errors that occur in the user program (e.g., communication errors, access errors) are not reported in the "Diagnostics" tab of the device information. You must read out the diagnostics buffer of the CPU in the online and diagnostics view to get this information. The link in the "Details" column opens the diagnostics buffer.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

39

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Subordinate "Connection information" tab
The "Connection information" tab displays detailed diagnostics information for connections. There will only be information on the "Connection information" tab if there is an active online connection to at least one end point of the relevant connection. If a connection has been selected (connection table), the tab contains the following groups:  Connection details  Address details of the connection

Figure 4-11 "Connection information" tab and open connection overview
If a module has been selected (network view), the tab contains the following group:  Connection resources

Diagnostics

40

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Subordinate "Alarm display" tab
System diagnostics alarms are output in the "Alarm display" tab.
Figure 4-12 "Alarm display" tab To receive alarms in STEP 7, follow these steps: 1. Open the project view. 2. Select the required CPU in the project tree. 3. To connect online with the respective CPU, select the shortcut menu command "Go online". 4. Select the required CPU once again in the project tree and select the shortcut menu command "Receive alarms".

Figure 4-13 Receive alarms
5. Alarms are now displayed in the alarm display. "Archive view" is enabled by default. 6. To display the latest alarms, click the "Active alarms" icon .

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

41

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.2.6

CPU diagnostics buffer

Definition

Each CPU and some other modules have their own diagnostics buffer, in which detailed information on all diagnostic events is entered in the order in which they occurred.
The CPU diagnostics buffer can be displayed on all display media (STEP 7, SIMATIC HMI devices, SIMATIC S7-1500 Web server and display of the CPU).

Diagnostic events
The entries available in the diagnostics buffer include:
 Internal and external errors on a module
 System errors in the CPU
 Operating mode transitions (e.g., from RUN to STOP)
 Errors in the user program
 Removal/insertion of modules
 Security events
The contents of the diagnostics buffer are stored in the retentive memory in case of a memory reset of the CPU. Errors or events can be evaluated even after a longer period of time thanks to the diagnostics buffer to determine the cause of a STOP or to trace the occurrence of a single diagnostic event and to be able to assign it.

Diagnostics

42

Function Manual, 11/2019, A5E03735838-AF

Procedure

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
To display the diagnostics buffer of a CPU in STEP 7, follow these steps: 1. Select the respective CPU. 2. Select the shortcut menu command "Online & Diagnostics".
The "Online access" view is opened in the work area.

Figure 4-14 Setting up online access 3. Set the interface.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

43

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4. Click

.

5. Select the area "Diagnostics buffer".

Figure 4-15 Diagnostics buffer in STEP 7
Note Filtering events You can filter the entries in the diagnostics buffer in the settings of the "Diagnostics buffer" area to only display specific types of events. This means that specific events, such as "CPU and configuration-internal events" or "Connection diagnostics events", can be displayed separately.

Diagnostics

44

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Security events
The following security events (event types) result in an entry in the diagnostics buffer.  Going online with the correct or incorrect password  Manipulated communications data detected  Manipulated data detected on memory card  Manipulated firmware update file detected  Changed protection level (access protection) downloaded to the CPU  Password legitimization restricted or enabled (by instruction or CPU display)  Online access denied due to the possible number of simultaneous access attempts being
exceeded  Timeout when an existing online connection is inactive  Logging on to the Web server with the correct or incorrect password  Creating a backup of the CPU  Restoring the CPU configuration (Restore) To prevent the diagnostics buffer being "swamped" by large numbers of identical security events, you can set parameters so that these events are entered in the diagnostics buffer as a group alarm. For every interval (monitoring time), the CPU then only generates one group alarm per event type.
Configuring a group alarm for security events To configure group alarms for security events, follow these steps: 1. Click on the CPU icon in the network view.
The properties of the CPU are displayed in the Inspector window. 2. Navigate to the "Protection" > "Security event" area. 3. Click "Security event". 4. Select the option "Summarize security events in case of high message volume" to enable
group alarms for security events. 5. Set the duration of an interval (monitoring period); the default is 20 seconds.

4.2.2.7

"Online tools" task card

Online view in the "Online tools" task card
The following requirements must be met to display the online view of the "Online tools" task card in STEP 7:
 An online connection to the CPU is available.
 You have selected the CPU in the topology view, network view or device view.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

45

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
The "Online tools" task card provides an overview of the CPU state, the cycle time and the memory usage.
 The "CPU operator panel" pane displays the current state of some LEDs and the mode selector of a CPU.
 The "Cycle time" pane displays the cycle time diagram and below it the measured cycle times as absolute values.
 The "Memory" pane contains the current memory usage of the associated CPU. The free memory is shown both as a bar graph and as a numerical value (percentage). The display for "Load memory" contains, in addition to the online project data (program code, data blocks, hardware configuration etc.), all other data that may be on the SIMATIC memory card, such as recipes, data logs, HMI backups or non-SIMATIC files that have been copied to the memory card via the Web server of the CPU or offline in Explorer (for example, PDF files).

Figure 4-16 "Online tools" task card

Diagnostics

46

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.2.8

Configuring the settings for I/O modules in STEP 7
You can also make settings for system diagnostics in STEP 7 for I/O modules. The parameters you have to configure depend on the I/O module.
The settings are optional.

Requirements

 STEP 7 is open.  A project is open.  The project view is open.  A design with I/O modules has been configured.

Procedure

To make settings for system diagnostics of I/O modules in STEP 7, follow these steps:
1. Select the respective I/O module in the device view.
2. Open the "Properties" tab in the Inspector window.
3. Select the area "Inputs", for example.
You have access to the settings for system diagnostics of the I/O module. If you select "Wire break", for example, a possible wire break for the channel is signaled during operation.

Figure 4-17 I/O setting with a digital input module
4. Save the hardware configuration. 5. Download the new hardware configuration to the CPU.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

47

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Additional information
The documentation for the respective module includes additional information on parameter assignment of I/O modules.

4.2.3

Diagnostics information using the web server

System diagnostics using the CPU Web server
The CPUs of the SIMATIC series have an integrated Web server and let you display the system diagnostics information by means of PROFINET. Any terminal devices, such as PCs or smartphones, can thus access module data, user program data and diagnostics data of a CPU by using an Internet browser. This means access to CPUs is possible without installed STEP 7.
In addition to normal websites, the Web server provides so-called basic websites with reduced content that are adapted to the requirements of small screens with low resolution.
Using CPU 1516-3 PN/DP as an example, the following figure shows the start page of the Web server:

Figure 4-18 Web server, Start page 48

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
The following diagnostics options are available with the integrated Web server:  Start page with general CPU information  Information on diagnostics  Contents of the diagnostics buffer  Module information  Alarms  Information about communication  PROFINET topology  Motion Control diagnostics  Trace
Configuring the Web server in STEP 7
Proceed as follows to activate the Web server:
Requirements  You have opened STEP 7.  You have added a CPU to the project.  You have opened the project view.
Procedure 1. Open the network view. 2. Select the CPU. 3. Open the "Properties" tab in the Inspector window. 4. Select the entry "Web server" in the "General" area navigation.

Figure 4-19 Activate the Web server

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

49

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
5. Select the "Activate web server on this module" check box.
6. "Permit access only with HTTPS": The activation of the Web server using the secure transmission protocol "HTTPS" requires a valid Web server certificate in the CPU.
NOTICE
Utilizing the full functionality of the Web server
A valid CA-signed Web server certificate in the CPU is a requirement for: · User management with password-protected users · Saving and downloading diagnostic information in csv files · Using the following safety-related functions:
­ Backing up and restoring the CPU configuration
To use the full functionality of the Web server, we recommend that you create a CAsigned server certificate and assign it to the CPU.
To create a CA-signed Web server certificate, you must enable the Certificate Manager in the global security settings of STEP 7 and assign a CA-signed server certificate to the Web server in the properties of the CPU.
You can find additional information on handling Web server certificates in the "Configuring the Web server" section of the Web server function manual (http://support.automation.siemens.com/WW/view/en/59193560).
Detailed information on Certification Authority (CA) certificates, device certificates (End Entity certificate), "Public Key Infrastructure" (PKI) and certificate management can be found in the Communication function manual (https://support.industry.siemens.com/cs/ww/en/view/59192925) and in the online help for STEP 7, keyword "Secure communication".
7. Automatic updating is activated in the default setting of a configured CPU.
8. Activate the Web server also for each interface via which you want to access the Web server. To do this, open the "Properties" tab in the Inspector window and select the "Web server" entry in the "General" area navigation. In the "Overview of interfaces" area, select the "Enabled web server access" check box for the corresponding interface.
9. Compile and load the configuration into the CPU.

Diagnostics

50

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Accessing the Web server
To access the Web server, proceed as follows:
1. Connect the display device (PG/PC, HMI, mobile terminal device) with the CPU or a communication module using a PROFINET interface. If you are working with WLAN, activate the WLAN on the display device and establish a connection to the access point (e.g. SCALANCE W788-1RR or SCALANCE W784-1), which is in turn connected to the CPU.
2. Open the web browser on the display device.
3. Enter the IP address of the interface of the CPU which is connected to the client in the "Address" field of the web browser in the following format: http://a.b.c.d or https://a.b.c.d (example input: https://192.168.3.141). The intro page of the CPU opens.
4. You need to perform the installation of the CA certificate again for each display device you want to use. A valid CA certificate is available for download from the "Intro" web page under "Download certificate". You can find instructions for installing the certificate in the help system of your Web browser and in the FAQ with the entry ID 103528224 at the Service&Support (https://support.industry.siemens.com/cs/ww/en/view/103528224) website.
5. Click the NEXT link to go to the Web server pages.
Note Managing access rights
In STEP 7, you can create users, define access rights and assign passwords under "Web server > User management". Users only have access to the options that are permanently linked to the access rights.
You can find additional information on managing access rights in the "Configuring the Web server" section of the Web server function manual (http://support.automation.siemens.com/WW/view/en/59193560).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

51

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
"Diagnostics" option
The "Diagnostics" web page provides more information about the tabs:  Identification
This tab contains the characteristics of the CPU (serial number, article number, hardware and firmware version, etc.).  Program protection This tab provides information on whether the PLC program contains know-how protection or copy protection.  Memory This tab contains current values on the memory currently in use.  Runtime information Current information on program/communication load and cycle time can be found in this tab.  Fail-safe (only with an F CPU) The safety program of an F-CPU consists of one or two F-runtime groups. You can find their cycle time (F-monitoring time) and runtime in this tab.

Figure 4-20 Web server, "Diagnostics" Web page

Diagnostics

52

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics Diagnostics option "Diagnostics buffer" The browser displays the content of the diagnostics buffer on the "Diagnostics buffer" Web page.
Figure 4-21 Web server, "Diagnostics buffer" Web page

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

53

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Diagnostics option "Module information"
The status of a device is indicated by the Web browser with symbols and comments on the "Module information" Web page. Modules are displayed on the "Module information" Web page in the "Name" column with a link. You can thus get to the faulty module in hierarchical order.

Figure 4-22 Web server, "Module information" Web page
Diagnostics option "Messages"
The Web browser displays the content of the message buffer on the "Messages" Web page. The messages can be acknowledged via the Web server if you have the appropriate user rights.

Figure 4-23 Web server, "Messages" Web page

Diagnostics

54

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Diagnostics option "Communication"
The "Communication" web page provides detailed information about the following tabs:  Parameter
A summary of the information on the PROFINET and Ethernet interfaces of the selected CPU is available in this tab.  Statistics You will find information on data transmission in this tab.  Resources Information about the resource consumption of the connections is available in this tab.  Connections Information about the status of the communication connections is available in this tab.

Figure 4-24 Web server, "Communication" Web page

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

55

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics "Topology" diagnostics option
The "Topology" Web page provides information on the topological configuration and status of the PROFINET devices in your PROFINET IO system.
Figure 4-25 Web server, "Topology" Web page

Diagnostics

56

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
"Motion Control Diagnostics" diagnostic option
The Web server displays statuses, errors, technology alarms and the current values of the configured technology objects (TOs). The "Motion Control Diagnostics" web page provides detailed information on the configured technology objects in the following views:  Diagnostics
This view provides an overview list of configured technology objects, the status and error messages of a selected technology object, as well as values and limits of the movement status for a selected axis.  Service overview This view contains diagnostic information for multiple technology objects and a filter option for selecting the displayed technology objects.

Figure 4-26 Web server, "Motion Control diagnostics" webpage

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

57

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics "Trace" diagnostic options
You can read, view and save the trace recordings via the Web server and thus obtain plant and project information for diagnostics and maintenance. The web page of the trace and logic analyzer function consists of several areas. The example in the figure below shows how the Web server user interface is divided when the "Trace" web page is first called.
Figure 4-27 Web server, "Trace" home page (without measurement)
Additional information
Additional information on the topic is available in the Web server function manual (http://support.automation.siemens.com/WW/view/en/59193560). You can find additional information on the trace function in the Using the trace and logic analyzer function (https://support.industry.siemens.com/cs/ww/en/view/64897128) function manual.

Diagnostics

58

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.4

Diagnostics information using the HMI diagnostics view

Objects for system diagnostics
The full functionality of the HIM diagnostics view is only available with Comfort Panels and WinCC RT Advanced . Basic Panels do not support the complete range of system diagnostics functions.
Two objects are available for system diagnostics on an HMI device.

System diagnostics view
The system diagnostics view reflects the current status of all accessible devices in your plant. You navigate directly to the cause of the error and the associated device. You have access to all diagnostics-capable devices that you have configured in the STEP 7 hardware and network editor.

System diagnostics window
The system diagnostics window is an operating element and display object. The functions of the system diagnostics window are the same as for the system diagnostics view. Because the system diagnostics window is configured in the "Global screen", you can also specify, for example, if the object can be closed in WinCC Runtime.
Note Compatibility with Basic Panels Only the "System diagnostics view" object is available with Basic Panels. Basic Panels do not support the "System diagnostics window" object or the graphic symbol "System diagnostics indicator".

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

59

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.4.1

Configuring system diagnostics

Introduction

You add a system diagnostics view or a system diagnostics window to your project to get an overview of all devices available in your plant.
The system diagnostics window behaves like the system diagnostics view but is only available in the global screen.

Requirements

 At least one CPU has been set up in the project.  An HMI device (e.g., Comfort Panel) has been set up in the project.  CPU and the HMI device are connected with each other by an HMI connection.  You have created a screen (for the system diagnostics view).  The global screen is open (for the system diagnostics window).  The Inspector window is open.

Diagnostics

60

Function Manual, 11/2019, A5E03735838-AF

Procedure

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Proceed as follows to configure the system diagnostics: 1. Double-click the "System diagnostics view" object in the "Tools" task card. The object is
added to the screen.

Figure 4-28 Adding a system diagnostics view
2. Select the "Properties" tab in the Inspector window. 3. Select the area "Columns". 4. Enable the columns that you require in the device view for WinCC Runtime, for example:
­ Status ­ Name ­ Operating mode ­ Slot ­ Address 5. Enable the columns that you require in the detail view for WinCC Runtime, for example: ­ Status ­ Name ­ Operating mode ­ Plant designation ­ Address 6. You can change the column headers in the "Columns" area, if necessary. 7. Select the "Display" area. 8. Enable "Column settings > Columns moveable" to move the columns in WinCC Runtime. 9. To close the system diagnostics window in WinCC Runtime, select "Properties > Window > Closable" in the "Properties" tab of the Inspector window.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

61

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Result

The system diagnostics view has been added to the screen. The diagnostics status of the entire plant is displayed in the system diagnostics view in WinCC Runtime.

Figure 4-29 System diagnostics view in the screen
The system diagnostics window has been added to the global screen. If there is an error message in the plant, the system diagnostics window responds and displays the affected device.

Diagnostics

62

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.4.2

Different views of the HMI diagnostics view

Introduction

There are three different views available in the system diagnostics view and the system diagnostics window.  Device view  Details view  Distributed I/O view (only for PROFIBUS and PROFINET systems)

Device view

The device view shows all the available devices of a layer in a table. Double-clicking on a device opens either the lower-level devices or the detail view. Symbols in the first column provide information about the current state of the device.

Figure 4-30 Device view

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

63

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Details view

The detail view gives detailed information about the selected device and any pending errors. Check whether the data is correct in the detail view.

Figure 4-31 Details view

Diagnostics

64

Function Manual, 11/2019, A5E03735838-AF

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Distributed I/O view
The distributed I/O view is only available for distributed I/O systems. The distributed I/O view shows the status of the devices of the PROFIBUS/PROFINET subnet. Each element in the view shows the device name, the device type and the IP address or the PROFIBUS address.

Figure 4-32 Distributed I/O view
Navigation buttons
Button

Function Opens the lower-level devices or the detail view if there are no lowerlevel devices.
Opens the higher-level device or the device view if there is no higherlevel device.
Opens the device view.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

65

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

4.2.4.3

Inserting system diagnostics indicator

Introduction

The system diagnostics indicator is a predefined graphic symbol of the library which alerts you to errors in your plant. The library object shows two different states:  No error  Error

Requirements

 An HMI device (e.g., Comfort Panel) has been set up in the project.  The "Libraries" task card is opened.  The global library "Buttons and Switches > DiagnosticsButtons" is open.  A screen is open.  The system diagnostics window has been set up in the global screen.

Diagnostics

66

Function Manual, 11/2019, A5E03735838-AF

Procedure

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
1. Select the "DiagnosticsIndicator" object in the library. 2. Drag-and-drop the library object to the position in the work area where you want to insert
the object. The library object is added.

Figure 4-33

Inserting library object in the work area 3. Select the library object. 4. Open the "Events" tab in the Inspector window. The "ShowSystemDiagnosticsWindow" is preset for the event "Click".

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

67

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Result

The system diagnostics indicator has been added to the project and connected with the system diagnostics window.
The system diagnostics indicator changes its appearance if an error message is output in WinCC Runtime. The system diagnostics window opens when you click on the system diagnostics indicator. The system diagnostics window shows the detail view of the affected device.

Configuring access protection for the system diagnostics window
Configure access protection for the system diagnostics indicator to prevent unauthorized access to the system diagnostics windows.
1. Select the "DiagnosticsIndicator" object in the screen.
2. Open the "Properties" tab in the Inspector window.
3. Select an authorization in the "Security in Runtime" area.
A logon dialog opens when you click on the system diagnostics indicator in WinCC Runtime. The system diagnostics window does not open unless you have the required authorization.

4.2.4.4

Configuring button as system diagnostics indicator

Introduction

Instead of using the object "DiagnosticsIndicator" from the library, you can, for example, configure a button in "Graphic" mode to indicate errors in your plant.

Requirements

 At least one CPU has been created.  An HMI device (e.g., Comfort Panel) has been set up in the project.  The "Tools" task card is open.  A bit graphics list has been created with two different graphics for the states.  A screen is open.  You have created a system diagnostics view.

Diagnostics

68

Function Manual, 11/2019, A5E03735838-AF

Procedure

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics
Follow these steps to configure a button as system diagnostics indicator: 1. Double-click the "Button" object in the "Tools" task card. A button is added to the screen. 2. Enable the "Properties" tab in the Inspector window and the "Graphic" mode in the
"General" area. 3. Select the bit graphics list as graphics list. 4. Select the "Properties" tab in the Inspector window and select the tag
@DiagnosticsIndicatorTag under "Tag" in the "General" area. 5. To assign a function to the button, select the "Events" tab in the Inspector window. 6. Select the "Click" event. 7. Click on "Add function" in the table. 8. Select "EnableSystemDiagnosticsView". 9. Select the system diagnostics view.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

69

Setting and determining system diagnostics 4.2 Options for displaying system diagnostics

Result

You have configured an interface that reacts to error events from the CPU. The button changes when an error event occurs in Runtime.

Figure 4-34 Configured button
The button has two states.  Error
The system diagnostics view opens when you click on the button. The system diagnostics view shows the detail view of the affected device.  No error The system diagnostics view opens when you click on the button. The system diagnostics view shows the device view.

Diagnostics

70

Function Manual, 11/2019, A5E03735838-AF

System diagnostics by means of the user program

5

5.1

Options of system diagnostics in the user program

Introduction

You can configure responses to diagnostics alarms in the user program. You can, for example, specify that your plant is stopped in case of specific diagnostics alarms.

Instructions

A vendor-independent structure of data records with diagnostics information applies. The following instructions are available for determining the system diagnostics of a device:

Table 5- 1 Instructions for determining the system diagnostics

Instruction RDREC
RALRM
DPNRM_DG GEN_DIAG
Gen_UsrMsg GET_DIAG
GET_Name T_DIAG
RD_SINFO
LED Get_IM_Data
DeviceStates ModuleStates

Description · Reads data records of a component (module or submodule) of a DP slave/IO device that may
contain error information · Works asynchronously, which means processing takes place across several calls · Reads the start information of the OB when calling the diagnostics interrupt OB (OB 82) · Provides information on cause and location of error · Reads the current diagnostics data of a DP slave (DP standard diagnostics) · Generates diagnostics information · To generate diagnostics information, the module or submodule is identified with its logical address · Generates an alarm that is entered in the diagnostics buffer · Provides diagnostics information · To provide diagnostics information, the module or submodule is selected · Reads the name of an IO device · Provides diagnostics and status information on a connection · Works asynchronously, which means processing takes place across several calls · Reads the start information of the OB called last that has not been processed completely and the
startup OB started last · Provides general error information · Reads the status of the module LED · Reads the Information&Maintenance data of the CPU · Works asynchronously, which means processing takes place across several calls · Outputs the state of all devices of an IO system · Outputs the state of all modules of a device

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

71

System diagnostics by means of the user program 5.1 Options of system diagnostics in the user program
Additional information
Online help In the online help for STEP 7, you can find:  Additional information on instructions for system diagnostics  Information about further options for evaluating diagnostic information in the user program
(e.g. with the "RDREC", "RALRM", "GET_DIAG" instructions)  Information on SIMATIC ProDiag. This functionality enables targeted and fast machine
and plant diagnostics for SIMATIC S7-1500 and SIMATIC HMI: ­ Standardized diagnostics concept for different SIMATIC components ­ No additional configuration work for diagnostics functionality ­ Reduces the load on PLC memory and program run time You can find details in the online help under "Supervising machinery and plants with ProDiag".
Manuals You can find additional information about evaluating diagnostic information in the user program in the following manuals:  PROFINET function manual
(http://support.automation.siemens.com/WW/view/en/49948856)  From PROFIBUS DP to PROFINET IO
(https://support.industry.siemens.com/cs/ww/en/view/19289930) programming manual  Manual for the respective module
Application examples You can find detailed application examples with further documentation and example projects on the Service&Support Website:  Diagnostic overview for SIMATIC S7-1200 and S7-1500
(https://support.industry.siemens.com/cs/ww/en/view/109752283)
FAQ For more information about how to realize channel diagnostics in the user program of the SIMATIC S7-1500, refer to the FAQ with entry ID 109480387 on the Service&Support Website (https://support.industry.siemens.com/cs/ww/en/view/109480387).

Diagnostics

72

Function Manual, 11/2019, A5E03735838-AF

System diagnostics by means of the user program 5.2 System diagnostics using process image inputs

5.2

System diagnostics using process image inputs

Introduction

In addition to event-driven system diagnostics, the input and output modules of the SIMATIC series provide diagnostics information using the process image input.
The system diagnostics described in the preceding sections is made available asynchronously to the program processing. To ensure the correct processing of the input and output data in the case of faults while reading the input and output data, some modules offer the so-called value status (QI = Quality Information) for evaluation.

Requirement for evaluation of the value status
The diagnostics information about the process image input is transmitted synchronized with the user data. Select the "Value status" check box in the properties of the I/O module in STEP 7 if you want to evaluate the value status of the channel.

Figure 5-1 Enable value status

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

73

System diagnostics by means of the user program 5.2 System diagnostics using process image inputs

Evaluation of the value status
If you have enabled the value status for an I/O module, this module provides additional information on the value status in addition to the user data. This information is directly available in the process image input and can be called with simple binary operations.
Each channel is uniquely assigned one bit in the value status. The bit in the value status indicates the validity of the read-in value in the user data.

Table 5- 2 Example for evaluation of the user datum in case of a wire break for a digital input module

Faulty channel Fault-free channel

Bit in user datum Logical 0 Logical 0 (actual value)

Bit in value status 0 1

Value in user datum Invalid Valid

Influence of the value status
The value status of an active channel is "Invalid" when any one of the following factors is given:
 Channel diagnostics pending (regardless of whether diagnostics, for example wire break, is configured for this channel)
 For output channels: "Reaction to CPU STOP" feature is active (due to CPU STOP, interrupted connection)
 For output channels of the digital on-board I/O of compact CPUs: If a channel is used for technology functions, it returns the value status 0 ("Invalid"). It does not matter in this context whether the output value is incorrect or not.
 PROFIenergy is active, i.e. hibernation is enabled (except in "Continue working mode")
When working with non-fail-safe modules, note that an invalid active channel also sets the value status of all other active channels to "Invalid". We therefore recommend that you disable all unconnected or unused channels.

Diagnostics

74

Function Manual, 11/2019, A5E03735838-AF

System diagnostics by means of the user program 5.2 System diagnostics using process image inputs
Example - Evaluation of the value status for the input channel of an analog input module
The example below shows the basic evaluation of the value status for the input channel of an analog input module in the user program. The diameter of a cylinder is measured by means of a channel and its circumference is calculated.  If the value status indicates the channel is error-free, the circumference is to be
calculated.  If the value status indicates the channel is defective, the value "0" is to be output as
substitute value for the circumference. The figure below shows the evaluation of the value status in the user program.

Figure 5-2 Example - Evaluation of the value status in the user program
Additional information
Depending on the I/O module, the value status reserves different addresses in the process image input. The manual for the module used includes specific information on the assignment and arrangement.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

75

Alarms

6

Introduction

Alarms allow you to display events from processing in the automation system and to quickly detect errors, to precisely localize them and to remove them. Downtimes are significantly reduced in a plant.
Before alarms can be output, they need to be configured.
You can create, edit and compile event-dependent alarms along with their alarm texts and alarm attributes and display them on display devices.
In STEP 7, you create program alarms in the user program with the "Program_Alarm" instruction. You edit the attributes and alarm texts in the alarm editor in STEP 7.
You can output the alarm status with the "Get_AlarmState" instruction.

Advantages of program alarms
Compared to other alarm methods, such as HMI discrete alarms, program alarms offer the following advantages:
 Central engineering in STEP 7: You only configure a program alarm once for the CPU. The program alarm is automatically transferred from the CPU to all registered HMI devices.
 System-supported acknowledgment: The acknowledgment of a program alarm on an HMI device is automatically updated on other HMI devices by the CPU.
 Time stamping close to the event in the CPU
 Identical time stamps of the alarms on multiple HMI devices without time synchronization

Diagnostics

76

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.1 Creating alarms with the "Program_Alarm" instruction

6.1

Creating alarms with the "Program_Alarm" instruction

"Program_Alarm" instruction
You create a program alarm in STEP 7 with the "Program_Alarm" instruction. The figure below shows the "Program_Alarm" instruction with the most important input tags.

 The "Program_Alarm" instruction monitors the signal at the SIG block input and generates a
program alarm in case of a signal change at the SIG parameter. The instruction generates an incoming alarm when the signal changes from 0 to 1 and an outgoing program alarm if the signal changes from 1 to 0. The program alarm is triggered synchronously to program execution.
 The time stamp is automatically created when the alarm event occurs in the automation system
and is passed along with the alarm.
 You can append up to ten associated values to the program alarm at the parameters SD_i (1 
i 10). The associated values are acquired at the time of the signal change at the SIG parameter and assigned to the program alarm. Associated values are used to display dynamic contents in alarms. Example: The temperature in the tank <associated value 1> is <associated value 2> °C.
You can find more information on associated values in the STEP 7 online help.
Figure 6-1 "Program_Alarm" instruction

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

77

Alarms 6.2 Editing alarms in the alarm editor

Note
The "Program_Alarm" instruction can only be called in a function block.
A program alarm can be up to 256 bytes long in total (with associated values and texts from the text list).
The associated values can be a maximum of 512 bytes in length. Text lists are not affected by this.
The CPUs of the SIMATIC S7-1500 product series have the following memory for text lists: · CPU 1510-x to CPU 1513-x: 2.25 MB · CPU 1515-x to CPU 1516-x: 4.5 MB · CPU 1517-x to CPU 1518-x: 6.75 MB
The number of configurable program alarms depends on the CPU used. With a CPU 1515-2 PN, for example, a maximum of 10,000 program alarms are possible. You can find this information in the device manual for the respective CPU under "Number of configurable alarms".
The number of simultaneously active "Program_Alarms" depends on the CPU used. With a 1515-2 PN CPU, for example, a maximum of 600 program alarms are possible. You can find this information in the device manual for the respective CPU under "Number of reserved user interrupts".
Sometimes, it is not possible for all program alarms that are active at the same time to be output within one cycle. Query the status of each "Program_Alarm" and activate the instruction again, if necessary. The cycle time is increased for a short time by simultaneously activating/sending multiple "Program_Alarms".
A maximum of 40,000 program alarms should be configured in a STEP 7 project on a 64-bit operating system.
Additional information
You can find more information on creating program alarms in the STEP 7 online help under "Creating and editing alarms".

6.2

Editing alarms in the alarm editor

Introduction

You can edit the created alarms in STEP 7 either in the program editor or in the alarm editor.
You can find additional information on editing alarms in the program editor in the STEP 7 online help under "Creating and editing alarms".

Diagnostics

78

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.2 Editing alarms in the alarm editor
Editing alarms in the alarm editor
You can edit alarm texts in the alarm editor and specify attributes such as alarm class or priority for the alarms. 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The
alarm editor opens. 2. Enter the required texts and attributes in the appropriate columns. The figure below shows the layout of the alarm editor.



"Program alarms" tab: You can edit program alarms here.



"System alarms" tab: System alarms can only be viewed but not edited. To edit these alarms, you must navigate to

the device view ("Go to device" menu command), where you can modify the system diagnostics alarms in the In-

spector window.



"Type alarms" area:

This is where the type alarms created in a function block with the "Program_Alarm" instruction are displayed. Type
alarms serves as templates for instance alarms ().
All the inputs you make for the type alarm are automatically included in the instance alarms derived from it.

You can find more information on type alarms in the STEP 7 online help under "Alarm types and alarms".



"Instance alarms" area:

When you assign an instance DB to the message block (for example, call in an OB, FB, FC), instance alarms are automatically generated based on the template of the type alarm and alarm numbers are assigned. You can modify the instance alarms for specific instances.

You can find more information on instance alarms in the STEP 7 online help under "Alarm types and alarms".



Properties of the selected type and instance alarm in the Inspector window

Figure 6-2 Layout of the alarm editor

You can enter or modify the necessary parameters, texts and attributes in the table or in the Inspector window.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

79

Alarms 6.2 Editing alarms in the alarm editor
Multilingual alarms
You can have program alarms displayed in multiple languages by assigning different project languages to the interface languages of the display devices.
Note The project languages you want to assign must be activated and the corresponding texts (translations) must be available in the project. The project language selection can be found in the project tree under "Languages & Resources".
To create the texts of the program alarm as multilingual, follow these steps: 1. In the Inspector window of the alarm editor, open the "Properties" tab and the lower-level
"Texts" tab. 2. Enter the text in the desired project language. 3. Open the "Properties" tab in the Inspector window of the CPU and select the "Display"
command in the "General" area navigation. Under "Multilingual", assign one of the activated project languages to each interface language of the display devices. Overall, you can assign up to three different project languages to the user interface languages. All assigned project languages are loaded into the CPU.
Additional information
You can find additional information on texts and attributes in the STEP 7 online help under "Texts and attributes". You can find more information on text lists in the STEP 7 online help under "Text lists for alarms".

Diagnostics

80

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.3 Display of program alarms

6.3

Display of program alarms

Program alarms you create with the "Program_Alarm" instruction are automatically made available to the display devices.

You have the following options to display the alarms:

 STEP 7

 HMI

 Web server of the CPU

 Display of the CPU

Figure 6-3 Display of program alarms
Multilingual alarms You can have program alarms displayed in multiple languages by assigning different project languages to the interface languages. See section Editing alarms in the alarm editor (Page 78).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

81

Alarms 6.4 Output of the alarm state with the "Get_AlarmState" instruction

6.4

Output of the alarm state with the "Get_AlarmState" instruction

"Get_AlarmState" instruction
The "Get_AlarmState" instruction outputs the alarm state of a program alarm. The output of the alarm state always refers to a program alarm that was created using the "Program_Alarm" instruction.
The program alarm is selected with the "Alarm" input parameter. Specify the instance DB of the "Program_Alarm" instruction at the "Alarm" parameter.

Figure 6-4 Call - Get_AlarmState
Additional information
You can find additional information on evaluation of the "Get_AlarmState" instruction in the STEP 7 online help.

Diagnostics

82

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms

6.5

Example program for program alarms

6.5.1

Task

Introduction

This section describes the basic configuration of program alarms with the "Program_Alarm" instruction based on two examples. The two examples solve the same problem but use a different approach. Example 1 does not use associated values. In example 2, an associated value is assigned to the program alarm to reference a text list.

Example - Minimum/maximum fill level of a tank
A tank is filled with a liquid. The fill level is monitored by two sensors. If the liquid in the tank drops below a minimum fill level, an alarm is output for low fill level. If the liquid in the tank exceeds a maximum fill level, an alarm is output for high fill level.

Figure 6-5 Example for fill level alarms

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

83

Alarms 6.5 Example program for program alarms

6.5.2

Example 1: Program alarm without associated values

Introduction

In this example, you create a program alarm for the maximum and the minimum fill level.

How the example works
When the maximum fill level is exceeded in the tank, a program alarm with the alarm text for the excessive fill level is output.
When the minimum fill level is undershot in the tank, a program alarm with the alarm text indicating that the fill level is too low is output.

Steps

The following steps are necessary for this example: 1. Define tags for signal acquisition 2. Create function block 3. Create program alarms 4. Call function block 5. Edit alarm text

Define tags for signal acquisition
The following table shows the tags that are used in this example. Define these tags in the standard tag table. The standard tag table is available in the project tree under "PLC tags".

Table 6- 1 Tags for fill level alarms

Name max
min

Data type BOOL
BOOL

Description Tag for maximum fill level If "max" = 1, the maximum fill level is exceeded. Tag for minimum fill level If "min" = 1, the minimum fill level is undershot.

The figure below shows the standard tag table with the defined tags "max" and "min".

Figure 6-6 Define tags 84

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms
Create function block
To create a function block, follow these steps: 1. Open the "Program blocks" folder in the project tree. 2. Double-click "Add new block".
The "Add new block" dialog opens. 3. Select the button "Function block".

Figure 6-7 Create FB
4. Enter a name for the new block. 5. Select the language SCL. 6. Click on "OK" to confirm your input. Result: You have created a function block.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

85

Alarms 6.5 Example program for program alarms
Create program alarms
To create the program alarm for the example program, follow these steps: 1. Select the created function block (FB) in the "Program blocks" folder in the project tree
and double-click the function block to open it. 2. Insert the call of the "Program_Alarm" instruction in the instruction part of the function
block. The "Program_Alarm" instruction is available in the "Instructions" task card under "Extended instructions" > "Alarms". The "Call options" window opens.

Figure 6-8 Call Program_Alarm
3. Enter "level_max" as the name and confirm the call options by clicking "OK".
Result: The input tags of the "Program_Alarm" instruction are displayed in the instruction part.
4. Supply the SIG input tag of the "Program_Alarm" instruction with the tags for the maximum fill level.
#level_max(SIG:="max");
SIG: If a signal change occurs at the SIG input tag, the "Program_Alarm" instruction generates a program alarm.
5. Insert another call of the "Program_Alarm" instruction. The "Call options" window opens.
6. Enter "level_min" as the name and confirm the call options by clicking "OK".
Result: The input tags of the "Program_Alarm" instruction are displayed in the instruction part.
7. Supply the SIG input tag of the "Program_Alarm" instruction with the tags for the minimum fill level.
#level_min(SIG:="min");
Result: You have created two type alarms.

Diagnostics

86

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms Call function block To call the function block in the user program, follow these steps: 1. In the "Program blocks" folder, select the cycle OB (e.g., OB1) in which you want to call the function block and open the cycle OB with a double-click. 2. Select the function block you want to call in the "Program blocks" folder. 3. Drag the function block into the instruction part of the cycle OB. The "Call options" window opens.
Figure 6-9 Call function block 4. Confirm the call options by clicking "OK". Result: You have called the alarm block in the user program and created an instance alarm.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

87

Alarms 6.5 Example program for program alarms

Edit alarm text

To edit the alarm text, follow these steps: 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The
alarm editor opens. 2. Select the type alarm for the maximum fill level. 3. Enter the alarm text for the maximum fill level in the "Alarm text" column. 4. Select the type alarm for the minimum fill level. 5. Enter the alarm text for the minimum fill level in the "Alarm text" column.

Figure 6-10 Edit alarm text Result: You have created the alarm texts for both type alarms.
Additional information
You can learn how to create multilingual texts under "Multilingual alarms" in the section Editing alarms in the alarm editor (Page 78).

Diagnostics

88

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms

6.5.3

Example 2: Program alarm with associated value

Introduction

In this example, you create a shared program alarm for the maximum and the minimum fill level. The program alarm is given an associated value. The program alarm uses the associated value to access a text list entry and outputs a separate alarm text for the minimum and the maximum fill level.

How the example works
The program alarm is output if either the minimum fill level is undershot or the maximum fill level is exceeded.
The associated value 1 of the "Program_Alarm" instruction is assigned the tag for the maximum fill level. The associated value references a text list with the entries "0" and "1".
The following scenarios are possible for output of the alarm text:
 Associated value is "0": The entry "0" of the text list with the alarm text for the undershot fill level is output.
 Associated value is "1": The entry "1" of the text list with the alarm text for the excessive fill level is output.

Steps

The following steps are necessary for this example: 1. Define tags for signal acquisition 2. Create function block 3. Create program alarm 4. Call function block 5. Create a text list 6. Edit alarm text

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

89

Alarms 6.5 Example program for program alarms

Define tags for signal acquisition
The following table shows the tags that are used in this example. Define these tags in the standard tag table. The standard tag table is available in the project tree under "PLC tags".

Table 6- 2 Tags for fill level alarms

Name max
min

Data type BOOL
BOOL

Description Tag for maximum fill level If "max" = 1, the maximum fill level is exceeded. Tag for minimum fill level If "min" = 1, the minimum fill level is undershot.

The figure below shows the standard tag table with the defined tags "max" and "min".

Figure 6-11 Define tags

Diagnostics

90

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms
Create function block
To create a function block, follow these steps: 1. Open the "Program blocks" folder in the project tree. 2. Double-click "Add new block".
The "Add new block" dialog opens. 3. Select the button "Function block".

Figure 6-12 Create FB
4. Enter a name for the new block. 5. Select the language SCL. 6. Click on "OK" to confirm your input. Result: You have created a function block.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

91

Alarms 6.5 Example program for program alarms
Create program alarm
To create the program alarm for the example program, follow these steps: 1. Select the created function block (FB) in the "Program blocks" folder in the project tree. 2. Insert the call of the "Program_Alarm" instruction in the instruction part of the function
block. The "Program_Alarm" instruction is available in the "Instructions" task card under "Extended instructions" > "Alarms". The "Call options" window opens.

Figure 6-13 Call Program_Alarm
3. Enter "level_alarm" as the name and confirm the call options by clicking "OK".
Result: The input tags of the "Program_Alarm" instruction are displayed in the instruction part.
4. Supply the SIG input tag of the "Program_Alarm" instruction with the XOR logic operation of the tags for minimum and maximum fill level and the input tag SD_1 with the tag for the maximum fill level.
#level_alarm(SIG:="min"XOR"max",SD_1:="max");
SIG: If a signal change occurs at the SIG input tag, the "Program_Alarm" instruction generates a program alarm. SD_1: The associated value is acquired at the time of the signal change at the input tag and assigned to the program alarm.
Result: You have created a type alarm.

Diagnostics

92

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms Call function block To call the function block in the user program, follow these steps: 1. In the "Program blocks" folder, select the cycle OB (e.g., OB1) in which you want to call the function block and open the cycle OB with a double-click. 2. Select the function block you want to call in the "Program blocks" folder. 3. Drag the function block into the instruction part of the cycle OB. The "Call options" window opens.
Figure 6-14 Call function block 4. Confirm the call options by clicking "OK". Result: You have called the alarm block in the user program and created an instance alarm.

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

93

Alarms 6.5 Example program for program alarms
Creating a text list
To create the text list for the example program, follow these steps: 1. Double-click on the "Text lists" command in the program tree.
The text list editor opens. 2. Double-click "<Add>" in the Text lists area.
A new text list is added. 3. Name the text list "level_textlist". 4. Double-click "<Add>" in the Text list entries area of level_textlist.
A new text list entry is added in the level_textlist text list. 5. Enter the alarm text for the maximum fill level in the "Entry" column. 6. Add another entry in the text list. 7. Enter the alarm text for the minimum fill level in the "Entry" column.
Figure 6-15 Creating a text list Result: You have created the text list for the alarm text.

Diagnostics

94

Function Manual, 11/2019, A5E03735838-AF

Alarms 6.5 Example program for program alarms

Edit alarm text

To edit the alarm text for the example program, follow these steps: 1. Double-click "PLC supervisions & alarms" in the project tree. Select the "Alarms" tab. The
alarm editor opens. 2. Select the type alarm created for the example. 3. Click in the "Alarm text" column. 4. Open the shortcut menu and select the command "Insert a dynamic parameter (text list)".

Figure 6-16 Edit alarm text The window below opens.

Figure 6-17 Insert a dynamic parameter (text list)
5. Select the text list "level_textlist" and the tag "max". Confirm your selection by clicking "OK".
Result: You have created the alarm text for the type alarms. If the tag "max" (associated value 1) is 0, the alarm text "level too low" is output. If the tag "max" (associated value 1) is 1, the alarm text "level too high" is output.
Additional information
You can learn how to create multilingual texts under "Multilingual alarms" in the section Editing alarms in the alarm editor (Page 78).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

95

Alarms 6.5 Example program for program alarms

6.5.4

Displaying the alarm

Displaying the alarm in the Web server
The figure below shows the display of the alarm in the Web server for both examples.

Figure 6-18 Displaying the alarm in the Web server
Displaying the alarm in STEP 7
Note Displaying alarms in STEP 7 To display alarms in STEP 7, enable the option "Receive alarms" in the shortcut menu of the CPU.
The figure below shows the display of the alarm in STEP 7 for both examples.

Figure 6-19 Display in STEP 7

Diagnostics

96

Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system

7

S7-1500R/H diagnostics
Diagnostics for a S7-1500R/H redundant system is basically the same as a standard S71500. You have the following display options:  Via STEP 7  Via HMI devices  Via the display of the CPUs The CPUs provide information about their operating states as well as internal and external errors through their LEDs. The special features of the diagnostics of S7-1500R/H redundant systems are described below. In addition, the information of the current function manual and the STEP 7 online help also apply to S7-1500R/H redundant systems.
Diagnostics information in STEP 7
Hardware diagnostics can be performed as follows:  Via the Online and Diagnostics view  Via the "Online Tools" task card  Via the "Diagnostics > Device Information" area of the Inspector window  Via diagnostics icons, for example, in the device view and in the project tree

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

97

Diagnostics of the S7-1500R/H redundant system

Diagnostics view in STEP 7 in dependence on the online connection and system states
The diagnostics view for S7-1500R/H redundant systems is partly dependent on:  Which of the two CPUs the programming device / PC currently has a connection to  The current system state in the redundant system The table below provides an overview. The following sections illustrate the diagnostics view for S7-1500R/H using examples.

Table 7- 1 Diagnostics view in dependence on the online connection and system states

Diagnostics view in STEP 7
Online data and diagnostics of the redundant system
Online data and diagnostics of the primary CPU The following are not displayed: · Online data and diagnostics from the backup CPU Online data and diagnostics of the backup CPU The following are not displayed:

An online connection is System state available to the

Primary CPU or backup RUN-Redundant CPU

Primary CPU

RUN-Solo or STOP

Backup CPU

RUN-Solo or STOP

Examples in section
Online and Diagnostics view (Page 100) Online and Diagnostics view (Page 100) and Restrictions in the RUN-Solo system state (Page 117)

· Online data and diagnostics from the primary CPU

· Online data and diagnostics of the distributed I/O

Display of the 3 operator panels in the "Online Tools" task card Cycle time of the primary CPU (of the system) and memory of the primary CPU in "Online Tools" task card Cycle time and memory of the primary CPU in the "Online Tools" task card Cycle time and memory of the backup CPU in the "Online Tools" task card Memory reset of the primary CPU via "Online Tools" task card Memory reset of the backup CPU via "Online Tools" task card "Alarm display" tab: Alarms from the primary CPU "Alarm display" tab: Alarms from the backup CPU
Diagnostics of the distributed I/O
Diagnostics of the distributed I/O

Primary CPU or backup Not relevant CPU
Primary CPU or backup RUN-Redundant CPU

"Online Tools" task card (Page 103)

Primary CPU Backup CPU Primary CPU

RUN-Solo or STOP
RUN-Solo or STOP
STOP

Backup CPU
Primary CPU Backup CPU

RUN-Solo or STOP
Not relevant
Not relevant

Primary CPU or backup RUN-Redundant CPU

Primary CPU

RUN-Solo

Diagnostics view in the project tree and in the device view and network view (Page 106)
Diagnostics in the RUN-Redundant system state (Page 111)
Restrictions in the RUN-Solo system state (Page 117)

Diagnostics

98

Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system
Accessible devices
As for standard S7-1500 systems, the following can be displayed in STEP 7:  All devices accessible from programming device/PC  The diagnostics information of devices of a redundant system, for example, from the R/H
CPUs The procedure is described in the section Accessible devices (without project) (Page 31).

Diagnostics

Function Manual, 11/2019, A5E03735838-AF

99

Diagnostics of the S7-1500R/H redundant system 7.1 Online and Diagnostics view

7.1

Online and Diagnostics view

Introduction

You open the Online and Diagnostics view for the redundant system or for each CPU of the redundant system.

Online & diagnostics for the redundant system
"Online access":
For the S7-1500R/H redundant system, it is displayed whether an online connection exists between the programming device/PC and a CPU. The additional note "Online (via Primary CPU)" or "Online (via Backup CPU)" indicates which role the "Online" connected CPU has.
If you enable "Receive alarms", you receive asynchronous alarms of diagnostics events from the CPU with online connection. The display corresponds to the representation for standard CPUs.

Figure 7-1 Online and Diagnostics view: Redundant system S7-1500R/H

100

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.1 Online and Diagnostics view
"Diagnostics": "Diagnostics" provides an overview for the redundant system about the:  System state  Pairing state  Operating states of the CPU  Status of which CPU is the primary CPU and which CPU is the backup CPU
Figure 7-2 Online and Diagnostics view: Diagnostics status of the S7-1500R/H system

Diagnostics Function Manual, 11/2019, A5E03735838-AF

101

Diagnostics of the S7-1500R/H redundant system 7.1 Online and Diagnostics view
Online & diagnostics for the primary CPU or backup CPU
The Online and Diagnostics view for the CPUs of the redundant system match the display for standard CPUs. In the RUN-Redundant system state, the primary and backup CPU display the online data of the redundant system irrespective of which of the two CPUs the online connection has been made. In non-redundant mode, the programming device/PC displays the data of the CPU for which there is an online connection, i.e. either the primary CPU or of the backup CPU. You select the CPU for display of the online data in the project tree.

Figure 7-3 Online and Diagnostics view: CPU (RUN-Redundant system state)

Reference

You can find information on the operating and system states in the Redundant System S71500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833).

102

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.2 "Online Tools" task card

7.2

"Online Tools" task card

Introduction

If an online connection exists to a CPU of the redundant system, the "Online Tools" task card displays online information for the redundant system. For a S7-1500R/H redundant system, "Online Tools" displays:  3 panes operator panel  Cycle time  Memory

R/H system operator panel
For the redundant system, the "R/H system operator panel" pane shows the:  Current states of the LEDs of the primary CPU  System state  Status of which CPU is the primary CPU and which CPU is the backup CPU with their
current operating states The "STOP R/H-System" button can be used to switch the S7-1500R/H system to the system state STOP.
Note Reaching RUN-Redundant system state Note that you cannot switch the S7-1500R/H to RUN-Redundant system state using the R/HSystem operator panel. You reach the RUN-Redundant system state by switching the operating state for each CPU to RUN in the operator panel of the respective CPU.

CPU operator panel
The two "CPU operator panel" panes show for the respective CPU of the redundant system:  The role of the CPU, primary CPU or backup CPU  The current states of the LEDs  The operating state of the CPU Use the "RUN / STOP" button to change the operating state for the respective CPU. Use the "MRES" button to perform a memory rest for the CPU, under the following conditions:  Online connection to this CPU is available  The CPU is in STOP operating state. The switch position at the real CPU is displayed under "Mode selector".

Diagnostics Function Manual, 11/2019, A5E03735838-AF

103

Diagnostics of the S7-1500R/H redundant system 7.2 "Online Tools" task card

Example

The following figure shows an example of the "Online Tools" task card for the RUN-Solo system state. The primary CPU is in RUN operating state, the backup CPU in STOP operating state.

Figure 7-4 "Online Tools" task card: Operator panel (RUN-Solo system state)

104

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.2 "Online Tools" task card
Cycle time and memory
In the RUN-Redundant system state, the "Cycle time" and "Memory" panes show the current values of the primary CPU. In redundant mode, the cycle time of the primary CPU matches the cycle time of the system. In the RUN-Solo system state, the panes show the current values for the CPU for which there is an online connection. The display corresponds to the representation for standard CPUs.

Reference

Figure 7-5 "Online Tools" task card: Cycle time and memory of the primary CPU
You can find information on the operating and system states in the Redundant System S7-1500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833).

Diagnostics Function Manual, 11/2019, A5E03735838-AF

105

Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view

7.3

Diagnostics view in the project tree and in the device view and

network view

Additional icons for redundant systems in the project tree

Table 7- 2 Icons for redundant systems in the project tree of STEP 7

Icon in the project tree

Meaning
Identifier of the folder S7-1500R/H-System: RUN-Redundant system state Identifier of the folder S7-1500R/H-System: RUN-Solo system state Identifier of the folder S7-1500R/H-System: STARTUP system state Identifier of the folder S7-1500R/H-System: STOP system state Identifier of the folder for the primary CPU: RUN operating state Identifier of the folder for the backup CPU: RUN operating state Identifier of the folder for the primary CPU: STARTUP operating state Identifier of the folder for the backup CPU: STARTUP operating state Identifier of the folder for the primary CPU: STOP operating state Identifier of the folder for the backup CPU: STOP operating state Identifier of the folder of a CPU of the redundant system: "Online via partner": The other CPU of the redundant system is connected online to the programming device / PC.

Example: Diagnostics view in the project tree and in the device view and network view
An example of the diagnostics view for a S7-1500R/H system is shown below.
The sample configuration consists of two CPUs S7-1517H-3 PN and one interface module IM 155-6 PN HF as PROFINET IO device. PLC_1 is the primary CPU (in RUN operating state). PLC_2 is the backup CPU (in STOP operating state). The hardware configuration and the user program were loaded in the primary CPU.
The system is connected online via PLC_1 (primary CPU) and is in RUN-Solo system state.

106

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view View of the system in the project tree The system is in RUN-Solo system state . PLC_1 is in RUN operating state , PLC_2 is in STOP operating state . Because the system is in RUN-Solo system state, the following is displayed:  For the system, maintenance demanded with problem in lower-level component  For PLC_1, maintenance demanded For PLC_2, online connection via partner is displayed, as the programming device/PC is connected online to PLC_1.
Figure 7-6 Diagnostics example: Redundant system project tree (RUN-Solo)

Diagnostics Function Manual, 11/2019, A5E03735838-AF

107

Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Network view of the system
The network view shows no faults for the H-CPUs or the IO device. Maintenance demanded in lower-level component indicated for the system, since the system is not in the RUN-Redundant system state. No operating states and system states of the redundant system are displayed in the network view.
Figure 7-7 Diagnostics example: Network view of redundant system (RUN-Solo) Doubling-clicking on the system gives you access to the device view of both CPUs.

108

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view
Device view of the system
In the device view, you see the operating states of the CPUs based on the icons above PLC_1:  Green icon: PLC_1 is in the RUN operating state.  Yellow icon (wrench) for maintenance demanded: PLC_2 is in the STOP operating state. PLC_2 indicates that the online connection is available through the partner (PLC_1). You can find more detailed information on the system faults in the "Diagnostics" tab, in "Device information". The device information indicates maintenance demanded and RUN operating state for PLC_1.

Figure 7-8 Diagnostics example: Device view of redundant system (RUN-Solo)

Diagnostics Function Manual, 11/2019, A5E03735838-AF

109

Diagnostics of the S7-1500R/H redundant system 7.3 Diagnostics view in the project tree and in the device view and network view Alarm display of the system
As in the RUN-Solo system state, the alarms of the CPU for which there is an online connection are displayed via the "Alarm display" tab (in the example from PLC_1).
Figure 7-9 Diagnostics example: Alarm display of redundant system (RUN-Solo)
Device view of the IO device
The IO device is an interface module IM 155-6 PN HF with two I/O modules and one server module. The device view shows that there is no faults in the modules.

Figure 7-10 Diagnostics example: Device view of IO device

110

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state

7.4

Diagnostics in the RUN-Redundant system state

Diagnostics view in redundant mode
Primary CPU and backup CPU are each in the RUN-Redundant operating state. In the RUN-Redundant system state, the primary and backup CPU display the online data of the redundant system irrespective of which of the two CPUs the online connection has been made. The diagnostics between the two CPUs is synchronized (diagnostics entries, diagnostics events). The "Alarm display" tab shows the alarms of the redundant system. You can find more information in the Diagnostics view in the project tree and in the device view and network view (Page 106).
No error in RUN-Redundant system state
If no error is detected in the RUN-Redundant system state, all diagnostics icons in the project tree and in the network view show "No fault" .

Figure 7-11 Diagnostics example: No fault in the RUN-Redundant project tree

Diagnostics Function Manual, 11/2019, A5E03735838-AF

111

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state
Error in the RUN-Redundant system state
Most errors in the redundant system do not result in a loss of redundancy. The RUNRedundant system state is retained, for example, if a module in an IO device fails. The diagnostics view is similar to the standard S7-1500 systems. In the RUN-Redundant system state the redundancy of the system can be restricted, e.g. during the interruption of one of the two redundancy connections in S7-1500H. You can find information on the redundancy scenarios in the Redundant System S7-1500R/H System Manual (https://support.industry.siemens.com/cs/ww/en/view/109754833). Special examples of a redundant system S7-1500H are shown below:
S7-1500H Example 1: The PROFINET ring between the CPU of the redundant S7-1500H system and an IO device was interrupted.
Evaluate diagnostics via LINK TX/RX LEDs on the CPU TX/RX X1 P1 LED is not illuminated. This means:  No Ethernet connection between the P1 port of the respective PROFINET interface and
the communication partner

112

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state
Diagnostics in STEP 7 The diagnostics buffer of the CPU displays that the PROFINET ring is open. The diagnostics in the project tree shows:  Maintenance demanded in lower-level component in the S7-1500H system  Maintenance demanded in lower-level components of PLC_1 and PLC_2  Maintenance demanded in lower-level components of local modules of PLC_2 The diagnostics in the network view indicates errors at the affected port of the PROFINET interfaces of PLC_2.

Figure 7-12 Diagnostics example: RUN-Redundant system state, open PROFINET ring
You can evaluate the diagnostics using the displays of the CPUs via the "Diagnostics" menu as with standard CPUs. You can find additional information in the section Display of the CPU (Page 27).
S7-1500H Example 2: A synchronization module has been removed from a CPU of the redundant S7-1500H system.
Evaluating diagnostics via X3 and X4 LEDs on the CPU The X3 LED on PLC_2 CPU is not illuminated. This means:  The redundancy connection on the synchronization module was interrupted at the H-Sync
interface X3. or  There is no synchronization module at the H-Sync interface X3.

Diagnostics Function Manual, 11/2019, A5E03735838-AF

113

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state
Diagnostics in STEP 7 The diagnostics buffer of the CPU displays:  that there is only one redundancy connection  which synchronization module has failed on which CPU The diagnostics in the project tree shows:  Maintenance demanded in lower-level component in the S7-1500H system  Maintenance demanded in lower-level components of PLC_1 and PLC_2  Maintenance demanded in lower-level components of local modules of PLC_1 and PLC_2 The diagnostics in the network view displays:  Errors for the Synchronisationsmodul_1 of the Synchronisationsschnittstelle_2 of PLC_1  Synchronisationsmodul_1 of Synchronisationsschnittstelle_1 of PLC_2 not reachable

Figure 7-13 Diagnostics example: RUN-Redundant system state, a synchronization module fails

114

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state
Evaluate diagnostics on the display For example 2, display of the PLC_2 CPU shows:
 In the "Overview" menu command: A message is available in the next lower level page.  In the "Diagnostics" menu command: A message is available in the next lower level page.  In the Module menu command: An error has occurred. To evaluate the display, proceed as follows: 1. Navigate to "Pairing state" via the menu commands "Overview" > "Redundancy". 2. This is displayed as the pairing state: Single paired (X4).
This means that the redundancy connection is available at the H-Sync interface X4, but not at the X3. 3. Navigate to "Alarms" via the "Diagnostics" menu command. 4. View the details of the alarm (evaluate diagnostics buffer).
S7-1500H Example 3: A redundancy connection in S7-1500H is interrupted.
Evaluating diagnostics via X3 and X4 LEDs on the CPU The LED X4 on CPU PLC_1 does not light up. This means:  The redundancy connection on the synchronization module was interrupted at the H-Sync
interface X4. or  There is no synchronization module at the H-Sync interface X4.

Diagnostics Function Manual, 11/2019, A5E03735838-AF

115

Diagnostics of the S7-1500R/H redundant system 7.4 Diagnostics in the RUN-Redundant system state
Diagnostics in STEP 7 The diagnostics buffer of the CPU displays:  that there is only one redundancy connection  Fiber-optic error with specification of the CPU and the synchronization module The diagnostics in the project tree shows:  Maintenance demanded in lower-level component in the S7-1500H system  Maintenance demanded in lower-level components of PLC_1 and PLC_2  Maintenance demanded in lower-level components of local modules of PLC_1 and PLC_2 The diagnostics in the network view displays:  Errors for the Synchronisationsmodul_1 of the Synchronisationsschnittstelle_2 of PLC_1  Errors for the Synchronisationsmodul_1 of the Synchronisationsschnittstelle_1 of PLC_2

Figure 7-14 Diagnostics example: RUN-Redundant system state, a redundancy connection has failed
Evaluate diagnostics on the display Perform the analysis of the display of PLC_2 CPU exactly as for example 2.

116

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Diagnostics of the S7-1500R/H redundant system 7.5 Restrictions in the RUN-Solo system state

7.5

Restrictions in the RUN-Solo system state

The primary CPU is in RUN operating state. The Backup CPU is in STOP operating state, is switched off, defective, or not available.

Restrictions in the RUN-Solo system state
The primary CPU records the diagnostics states of the distributed I/O.

Figure 7-15 Diagnostics of the primary CPU and backup CPU in RUN-Solo system state
Diagnostics of the backup CPU The following restrictions apply to the backup CPU:  Diagnostics information from the backup CPU is only available when there is an online
connection to the backup CPU.  A memory reset can only be performed with the backup CPU operator panel when an
online connection to the backup CPU is available.

Diagnostics Function Manual, 11/2019, A5E03735838-AF

117

Diagnostics of the S7-1500R/H redundant system 7.6 System diagnostics by means of the user program

Reference

You can evaluate the diagnostics using the displays of the CPUs via the "Diagnostics" menu as with standard CPUs. You can find additional information in the section Display of the CPU (Page 27).

7.6

System diagnostics by means of the user program

Instructions

Instructions for determining the system diagnostics are listed in the section System diagnostics options in the user program (Page 71).
The following instruction for diagnostics cannot be used for S7-1500R/H redundant systems:
 DPNRM_DG: Read diagnostics data from a DP slave

Organization blocks
You can find the description of the applicable OBs for S7-1500R/H in the S7-1500R/H redundant system (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

118

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Glossary

Alarm

An message sent to the operator due to events or states of the system.

Backup CPU

Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over the process control if the primary CPU fails.

Button (WinCC)
Object in WinCC that points out faults in the plant

Channel fault

Channel-related error of an individual channel - an I/O with inputs, for example, wire break or short circuit

Device

Modules with a network connection are referred to as device. Devices are installed on racks where they can be interconnected with other modules.

Diagnostics buffer
A buffered memory area in the CPU; it stores diagnostics events in the order of their occurrence

Firmware of the CPU
In SIMATIC, a distinction is made between the firmware of the CPU and user programs.
The firmware is a software embedded in electronic devices, which means it is permanently connected with the hardware functionally. It is usually saved in a flash memory, such as EPROM, EEPROM or ROM, and cannot be replaced by the user or only with special means or functions.
User program: see glossary entry "User program"

Global screen (WinCC)
A screen that is opened in the system diagnostics window is a global screen.

Diagnostics Function Manual, 11/2019, A5E03735838-AF

119

Glossary

HMI device

Human Machine Interface, device for visualization and control of automation processes.

HMI diagnostics view (WinCC)
The HMI diagnostics view is an object in WinCC. The HMI diagnostics view can only be used with Comfort Panels and WinCC Advanced RT.

I/O module

Device of the distributed I/O that is used as interface between the controller and the process.

Industrial Ethernet
Guideline for setting up Ethernet in an industrial environment. The main difference to the standard Ethernet is the mechanical current carrying capacity and interference immunity of the individual components.

Memory reset

Procedure to set the memories of the CPU to a defined initial state.

Operating states
Operating states describe the behavior of a single CPU at a specific time.
The CPUs of the SIMATIC standard systems feature the STOP, STARTUP and RUN operating states.
The primary CPU of the S7-1500R/H features the STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant operating states. The backup CPU features the STOP, SYNCUP and RUN-Redundant operating states.

PLC

Programmable Logic Controller: Component of the CNC by which the machine manufacturer coordinates the interaction between the NC requirements (part program), the inputs of the machine operator and the current machine state.

Primary CPU

Role of a CPU in the S7-1500R/H redundant system. If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over the process control if the primary CPU fails.

PROFIBUS

Standard for fieldbus communication in automation technology.

120

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Glossary

PROFINET

PROcess FIeld NETwork, open industrial Ethernet standard which further develops PROFIBUS and industrial Ethernet. A cross-manufacturer communication, automation, and engineering model defined by PROFIBUS International e.V., as an automation standard.

Redundant systems
Redundant systems are identified by the fact that important automation components are available in multiple units (redundant). Process control is maintained if a redundant component fails.

Subnet

Part of a network whose parameters must be synchronized with the devices (e.g., with PROFINET). It includes the bus components and all connected stations. Subnets can be linked by means of gateways, for example, to form a network.

Synchronization module
The synchronization module is used to provide a redundant connection between the CPUs of the S7-1500H redundant system. You require two synchronization modules per CPU, which you connect using a fiber-optic cable.

System diagnostics
In the SIMATIC environment, the term "system diagnostics" refers to diagnostics of devices and modules. System diagnostics is used, for example, to monitor the states of the following components in the system: Power supply, device, I/O.

System diagnostics indicator (WinCC)
The system diagnostics indicator is a predefined graphic symbol of the library which alerts you to errors in your plant and displays two states: No error, error

System states

The system states of the S7-1500R/H redundant system result from the operating states of the primary and backup CPU. The term 'system state' is used as simple expression that identifies the operating states of the two CPUs that occur at the same time. The S7-1500R/H redundant system features the system states STOP, STARTUP, RUN-Solo, SYNCUP and RUN-Redundant.

Diagnostics Function Manual, 11/2019, A5E03735838-AF

121

Glossary

Topology

Structure of a network. Common structures include:  Linear bus topology  Ring topology  Star topology  Tree topology

User program

In SIMATIC, a distinction is made between user programs and the firmware of the CPU.
The user program contains all instructions, declarations and data by which a plant or process can be controlled. It is assigned to a programmable module (for example, CPU, FM) and can be structured in smaller units.
Firmware: see glossary entry "Firmware of the CPU"

Value status

The value status describes a specific signal state. The value status is constantly updated and cyclically transmitted by the field device as quality statement together with the measured value.

Web server

Software/ communication service for data exchange using Ethernet. The web server provides the documents by means of standardized transmission protocols (HTTP, HTTPS) to a web browser. Documents can be static or dynamic upon request by the web browser composed from different sources by the web server.

WinCC

Windows Control Center: a PC-based process visualization system

WinCC Runtime
Component of the basic software WinCC

122

Diagnostics Function Manual, 11/2019, A5E03735838-AF

Index

"
"Diagnostics" tab Alarm display, 39 Connection information, 39 Device information, 39 Inspector window, 39

F
FAQs Download certificate, 51 Implementing channel diagnostics in the user program, 72

A
Accessible devices Diagnostics status, 31 Offline project, 31 S7-1500R/H, 99
Alarm display Active alarms, 41 Archive view, 41
Alarms Editing in the alarm editor, 79 Multilingual, 80
Application examples Diagnostic overview for SIMATIC S7-1200 and S71500, 72
B
Backup CPU, 102, 117
D
Device information Online status, 39 Operating mode, 39
Devices & networks Current state, 33 Go online, 33
Diagnostics buffer Diagnostic events, 42 Retentive memory, 42
Display of the CPU Display options, 27 Input options, 27 Status information, 27
dynamize Object appearance, 68

H
HMI System diagnostics view, 59 System diagnostics window, 59
HMI diagnostics view Comfort Panels, 59 Details view, 63 Device view, 63 Distributed I/O view, 63 Views, 63 WinCC Advanced RT, 59
I
I/O module Inputs, 47 Settings, 47
L
LED arrangement, 26 Library
System diagnostics indicator, 66
O
Online & diagnostics Activities, 36 Information, 36 Online access, 36 Online mode, 36 S7-1500R/H, 100
Online tools CPU operator panel, 45 Cycle time, 45 Memory, 45 Memory usage, 45

Diagnostics Function Manual, 11/2019, A5E03735838-AF

123

Index
Online view, 45 S7-1500R/H, 103 Task card, 45
P
Primary CPU, 102, 117 Process image inputs, 73
Quality Information, 73 User datum, 73 Value status, 73
Q
Quick start, 15 Using display, 16 Using STEP 7, 18
R
Redundancy connection, 115 Redundant mode
Diagnostics, 111 Redundant system, 100 RUN-Redundant system state
Diagnostics, 111 RUN-Solo system state
Diagnostics, 117
S
S7-1500H, 113 S7-1500R/H
Diagnostics, 97 Instructions, 118 Organization blocks, 118 Security events, 45 Setting options, 23 Symbol For comparison, 30 For hardware diagnostics, 29 For operating mode, 30 For software diagnostics, 30 Synchronization module, 113 System diagnostics Advantages, 14 Alarm settings, 24 Button, 68 Display concept, 14 Properties, 12
124

System diagnostics indicator Button as system diagnostics indicator, 68 Inserting, 66 System diagnostics window, 66
System diagnostics view, 59 Configuring, 60 System diagnostics indicator, 66
System diagnostics window, 59 Configuring, 60 Global screen, 60
U
User program Instructions, 71 Response to diagnostics alarms, 71
W
Web server Access to, 51 Activating, 49 Alarms, 54 Browser, 48 Certificate, 49 Configuring, 49 Diagnostics, 52 Diagnostics buffer, 53 HTTPS, 49 Integrated Web server, 48 Module information, 54 Motion Control diagnostics, 57 Topology, 56 Trace, 58 Web pages, 48
Diagnostics Function Manual, 11/2019, A5E03735838-AF

Using the trace and logic analyzer function

SIMATIC / SINAMICS
S7-1500, S7-1200 / SINAMICS Using the trace and logic analyzer function
Function Manual

Preface

Description

1

2 Trace software user interface

Project trace software user interface

3

Operation

4

Devices

5

12/2019
A5E31277292-AF

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31277292-AF  10/2019 Subject to change

Copyright © Siemens AG 2012 - 2019. All rights reserved

Preface

Purpose of the documentation
The diagnostics options available with the trace and logic analyzer function are described in this documentation. Depending on the device used, the recording options can vary.

Required basic knowledge
In order to understand this documentation, the following knowledge is required:  General knowledge in the field of automation  Knowledge about the use of Windows-based computers  S7-1200/1500 CPUs, ET 200SP, ET 200Pro
­ Knowledge of the SIMATIC industrial automation system ­ Knowledge of working with STEP 7  SINAMICS Drives ­ Knowledge of working with the drive  SIRIUS SIMOCODE pro, SIRIUS Soft Starter 3RW ­ Proficiency in using these systems

Validity of the documentation
This documentation applies to all products of the product series S7-1200, S7-1500, S71500 Software Controller, S7-1500 Drive Controller, ET 200SP, ET 200SP Open Controller, CPU 1513(F)pro-2 PN, CPU 1516(F)pro-2 PN, SINAMICS drives, SIRIUS SIMOCODE pro and SIRIUS Soft Starter 3RW as of TIA Portal V16.

Conventions

This documentation contains pictures of the devices described. The pictures may differ slightly from the devices supplied. Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product and on the section of the documentation to which particular attention should be paid.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

3

Preface

"mySupport"

With "mySupport", your personal working area, you make the most of your Industry Online Support.
In "mySupport" you can store filters, favorites and tags, request CAx data and put together your personal library in the Documentation area. Furthermore, your data is automatically filled into support requests and you always have an overview of your current requests.
You need to register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/).

"mySupport" - Documentation
In the Documentation area of "mySupport", you have the possibility to combine complete manuals or parts of them to make your own manual. You can export the manual in PDF format or in an editable format.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Further support
 The range of technical documentation for the individual SIMATIC products and automation systems can be found on the Internet (http://www.siemens.com/simatic-techdoku-portal).
 The online catalog and the online ordering system is available on the Internet (https://mall.industry.siemens.com).

Using the trace and logic analyzer function

4

Function Manual, 12/2019, A5E31277292-AF

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

5

Table of contents

Preface ................................................................................................................................................... 3

1 Description.............................................................................................................................................. 9

1.1

Supported hardware ................................................................................................................ 9

1.2

Recording of measured values with the trace function ............................................................ 9

1.3

Trace configuration, recording, installed trace and measurement......................................... 11

1.4

Data storage........................................................................................................................... 13

1.5 1.5.1 1.5.2

Project trace ........................................................................................................................... 14 General .................................................................................................................................. 14 Time synchronization ............................................................................................................. 14

2 Trace software user interface ................................................................................................................ 16

2.1 2.1.1 2.1.2 2.1.3 2.1.4

Project tree ............................................................................................................................. 18 User interface - "Traces" project tree folder ........................................................................... 18 User interface - "Measurements" project tree folder .............................................................. 19 User interface - "Installed measurements (memory card)" project tree folder ....................... 20 User interface - "Overlay measurements" project tree folder ................................................ 22

2.2 2.2.1 2.2.2 2.2.2.1 2.2.3 2.2.3.1 2.2.3.2 2.2.3.3 2.2.3.4 2.2.4 2.2.4.1

Working area.......................................................................................................................... 23 User interface - trace toolbar ................................................................................................. 23 User interface - Configuration tab .......................................................................................... 24 User interface - Configuration ................................................................................................ 24 User interface - Diagram tab .................................................................................................. 24 User interface - curve diagram............................................................................................... 24 User interface - signal table ................................................................................................... 30 Interface - Formula editor....................................................................................................... 34 User interface - Measurements (overlay measurements)...................................................... 37 User interface - Signal selection tab (overlay measurements) .............................................. 39 User interface - Signal selection (overlay measurements) .................................................... 39

2.3 2.3.1

Inspector window ................................................................................................................... 40 Interface - Inspector window .................................................................................................. 40

2.4 2.4.1 2.4.2

Trace task card ...................................................................................................................... 41 User interface - Measurement cursor pane ........................................................................... 41 User interface - Snapshots pane ........................................................................................... 43

Using the trace and logic analyzer function

6

Function Manual, 12/2019, A5E31277292-AF

Table of contents

3 Project trace software user interface ..................................................................................................... 44

3.1

Structure of the user interface ................................................................................................44

3.2 3.2.1

Project tree..............................................................................................................................46 User interface - Project tree folder "Cross-device functions" - "Project traces"......................46

3.3 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4

Working area...........................................................................................................................47 User interface - Project trace toolbar ......................................................................................47 User interface - status overview of the participating devices..................................................47 User interface - Configuration tab...........................................................................................49 User interface - Configuration.................................................................................................49 User interface - Diagram tab...................................................................................................50

3.4 3.4.1

Inspector window ....................................................................................................................50 Interface - Inspector window...................................................................................................50

3.5

Trace task card .......................................................................................................................51

4 Operation.............................................................................................................................................. 52

4.1

Trace quick start .....................................................................................................................52

4.2

Project trace quick start ..........................................................................................................57

4.3

Using the trace function - overview.........................................................................................60

4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5

Project tree..............................................................................................................................60 Creating a trace ......................................................................................................................60 Displaying a configuration.......................................................................................................61 Displaying a diagram ..............................................................................................................61 Apply overlay measurement ...................................................................................................62 Configuring objects in groups .................................................................................................63

4.5 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8

Working area - general ...........................................................................................................64 Transferring the trace configuration to the device ..................................................................64 Activating/deactivating an installed trace................................................................................65 Displaying the recording .........................................................................................................66 Analyze an ongoing recording ................................................................................................67 Saving measurements in the project ......................................................................................68 Exporting and importing measurements .................................................................................69 Transferring the trace configuration from the device to the project ........................................70 Deleting installed traces..........................................................................................................71

4.6 4.6.1

Working area - Configuration tab............................................................................................72 Configuring the trace...............................................................................................................72

4.7 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7

Working area - Diagram tab....................................................................................................72 Use of the curve diagram........................................................................................................72 Use of the signal table ............................................................................................................74 Using the signal group in the signal table ...............................................................................75 Observation of fast signals .....................................................................................................77 Compare records (overlay measurements) ............................................................................78 Align measurements precisely (overlay measurements)........................................................80 Printing a recording.................................................................................................................80

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

7

Table of contents

5 Devices................................................................................................................................................. 81

5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.8.1 5.1.8.2 5.1.8.3 5.1.8.4 5.1.9 5.1.9.1 5.1.9.2 5.1.9.3 5.1.9.4 5.1.9.5

S7-1200/1500 CPUs .............................................................................................................. 81 Recordable variables ............................................................................................................. 81 Lifetime of the installed trace configuration and recorded values.......................................... 82 Recording levels..................................................................................................................... 83 Time synchronization with Motion Control ............................................................................. 84 Quantity structure................................................................................................................... 85 CPU load through trace recording ......................................................................................... 85 Project trace ........................................................................................................................... 85 Software user interface of the configuration .......................................................................... 86 Layout of the trace user interface .......................................................................................... 86 Layout of the project trace user interface .............................................................................. 87 User interface - Signals.......................................................................................................... 88 Recording conditions ............................................................................................................. 89 Configuration.......................................................................................................................... 98 Trace configuration - overview............................................................................................... 98 Selecting signals .................................................................................................................... 99 Configuring the recording cycle and duration ........................................................................ 99 Configuring the trigger conditions ........................................................................................ 100 Configure installed measurements (memory card).............................................................. 101

Glossary ..............................................................................................................................................102

Index ...................................................................................................................................................104

Using the trace and logic analyzer function

8

Function Manual, 12/2019, A5E31277292-AF

Description

1

1.1

Supported hardware

If a device supports the trace and logic analyzer function, "Traces" is offered for selection in the project tree below the device.

The following devices (Page 81) support the trace and logic analyzer function:  SIMATIC S7-1200 CPUs (as of firmware version V4.0)  SIMATIC S7-1500, ET 200SP, CPU 1513pro-2 PN and CPU 1516pro-2 PN CPUs  SIMATIC S7-1500 Software Controller  ET 200SP Open Controller  SINAMICS drives that are supported in Startdrive  SINAMICS V90 (with HSP 0185)  SIRIUS SIMOCODE pro (with Simocode ES)  SIRIUS Soft Starter 3RW (with Soft Starter ES)

1.2

Recording of measured values with the trace function

Introduction

The trace and logic analyzer function can be called in the project tree (Page 16) by doubleclicking an entry in the "Traces" system folder. The measurements on the memory card can also be read and displayed via the diagnostic interface of the Web server.
You record device tags and evaluate the recordings with the trace and logic analyzer function. Tags are, for example, drive parameters or system and user tags of a CPU. The number of installed traces is hardware-dependent. You can use the project trace to record tags from multiple devices across devices.
The recordings are saved on the device and, when required, can be read out with the engineering system (ES) and saved permanently. The trace and logic analyzer function is therefore suitable for monitoring highly dynamic processes. The recorded values are overwritten when the recording is activated again.
The trace and logic analyzer functions are also used in the commissioning editors of technology objects (for example, axle control panels). Active recordings from the axis control panel are displayed in the "Traces" system folder as installed traces. Recordings can be added to the measurements in the curve diagram of the axis control panel or the PID via a shortcut menu command.
Depending on the device (Page 81) used, the recording options can vary.
A quick start (Page 52) for working with the trace and logic analyzer function can be found in the Operation section.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

9

Description 1.2 Recording of measured values with the trace function
The following figure shows the mode of operation of the trace:

 Trace configuration on the programming device (PG) in the TIA Portal
You can specify the signals to be recorded, the duration of the recording and the trigger condition in the trace configuration. The trace configuration depends on the device and is described at the respective device (Page 81).
 Transferring the trace configuration from the PG to the device
You can transfer the complete trace configuration (Page 64) to the device when an online connection is established.
 Waiting for the recording
If the installed trace configuration is activated (Page 65), then the recording is performed independently of the PG. The recording is started as soon as the trigger condition is satisfied.
 Transferring the measurement from the device to the PG
The saving of the measurement in the project (Page 68) stores the measurement in the opened project of the TIA Portal. The measurement can be saved at any time after completing the recording, irrespective of the time of the measurement.
 Evaluating, managing and saving the measurement
Numerous options are available for the evaluation of the measurement in the curve diagram and in the signal table (Page 66). Various display types are possible, for example, a bit representation for binary signals. Signal waves from different measurements can be put together as an overlay measurement and compared with each other. Measurements can also be exported and imported as a file. With the saving of the project (Page 68) in the TIA Portal, the measurements transferred to the project are also saved.

Using the trace and logic analyzer function

10

Function Manual, 12/2019, A5E31277292-AF

Description 1.3 Trace configuration, recording, installed trace and measurement

1.3

Trace configuration, recording, installed trace and measurement

This section explains the meaning and relationships of the terms: trace configuration, recording, installed trace and measurement.

Trace configuration
Implement the following settings in the trace configuration:  Signals to be recorded with display options  Recording conditions
­ Sampling ­ Trigger ­ Installed measurements (memory card) Trace configurations can be copied to the "Traces" folder by drag-and-drop operation or by means of the clipboard. The application of a configuration depends on the device type. The following sources are possible:  Trace configuration  Measurement  Measurements on device (memory card)  Superimposed measurement (selection of a measurement contained in it)

Recording

A recording is performed in the device. There is only one recording for each installed trace configuration. When a new recording is started, the old recording is overwritten.
An installed recording is not retentive (it is lost when the device is switched off/on) but can be saved permanently in the project as a measurement.

Installed trace

An installed trace consists of a trace configuration and optionally a recording. The maximum number of installed traces depends on the device.
The trace configuration is stored retentively on the device. The retentivity of the trace configuration may also be configurable depending on the device, e.g. with the S120.

Measurement

A measurement consists of a trace configuration and a recording, provided that recorded data is present. Each installed trace can be saved as a measurement in the project.
The recording of a measurement can be viewed offline.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

11

Description 1.3 Trace configuration, recording, installed trace and measurement
Installed measurements (memory card)
The "Measurements on device (memory card)" folder contains measurements that are saved on the device (for example, on the memory card). These measurements are retentive and can only be deleted by the user. The installed measurements can be transferred to the "Measurements" folder using drag & drop and are then saved as measurements in the project.
Trace configuration with an installed trace of the same name
Usually, there is a trace configuration in the project with the same name for an installed trace. When there is an online connection, this trace is displayed with the icon in the project tree. See also User interface - "Traces" project tree folder (Page 18).
Overlay measurement
The overlay measurement allows a comparison and analysis of signals from different measurements with each other. The measurements can be synchronized with each other and displayed as overlay measurements.

Using the trace and logic analyzer function

12

Function Manual, 12/2019, A5E31277292-AF

Description 1.4 Data storage

1.4

Data storage

The trace toolbar and the curve diagram also enable the transfer of the trace configuration and the viewing of the recording.

The following figure is a schematic diagram of the data storage:

Note Saving the trace configuration and measurement
You save the trace configuration and measurement with the project in the TIA Portal.
If you close the project without saving, the trace configurations and the measurements transferred to the project are discarded. The trace editor can be closed and reopened without loss of data until the project is closed.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

13

Description 1.5 Project trace

1.5

Project trace

1.5.1

General
A project trace includes trace configurations of multiple devices and records the signals across devices.
Each device can trigger the recording on all participating devices. After receiving the global trigger, the devices with valid project trace configuration start the recording.
Each of the respective devices (Page 81) describes whether the project trace function is supported.

Requirements

The following requirements must be fulfilled for recording with project trace:  PROFINET RT or IRT communication  All devices are located in a PROFINET subnet (no routing)  To transfer the project trace to the devices, an online connection from the TIA portal to all
devices.  The "Record immediately" trigger mode may be configured for a maximum of one device.  A trigger must be configured for at least one device.

1.5.2

Time synchronization
The accuracy of the time synchronization depends on how the trace sample event is determined. Isochronous communication provides the highest accuracy, because the IRT cycle is used. In all other cases, the clock time of the controller is used.
A project trace can contain devices with RT and IRT communication.
For a synchronous display of the signals, the X axis must be set in "Time (relative)" mode. In this representation, the measurements are arranged in time so that their trigger events are at 0 ms.
To facilitate the evaluation with absolute time, synchronize the clock times of the devices.
Information on the trace sample event can be found in the device-specific descriptions, e.g. for S7-1200/1500 CPU (Page 81) under "Recording levels".

Using the trace and logic analyzer function

14

Function Manual, 12/2019, A5E31277292-AF

Description 1.5 Project trace
Trigger time for RT communication
Devices which receive the trigger from another device, have a time-delayed trigger event. For RT communication, the time of a trigger event is derived from the transfer time and the recording time. The trigger event is first detected at the end of the recording OB and uses this time as the trigger time. The time delay between the original trigger time and the evaluation in the OB cannot be determined for RT communication. This means the signal trends of devices which receive the trigger from another device appear moved forward. After saving the measurements, you can manually correct these signals with a time offset.
Example of a recording with project trace
The figure below shows a recording with project trace and the correction of the representation with an offset.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

15

Trace software user interface

2

The user interface of the trace and logic analyzer function consists of several areas. The layout of the user interface in the TIA portal is described here.
The figure below shows an example of the distribution of the surface:

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

16

Trace software user interface
Project tree Management and creation of the trace and measurements directly in the project tree and via context menu commands. Working area
 Title bar of the working area
Shows the device to which the current display belongs.
 Trace toolbar
Buttons for managing the trace in the project and device: · Activation/deactivation of installed traces · Deletion of installed traces · Transfer of trace configurations and measurements between the device and the project · Export of trace configurations and measurements · Switchover between offline and online display
 Status display of the trace
Display of the current status of the recording.
 Configuration tab
Device-specific configuration of the recording duration, trigger condition and signal selection. Configuring the devices for project trace. See Device-specific descriptions (Page 81).
 Diagram tab
Display of the recorded values as a curve diagram and the signals from the displayed measurement. Specification of the display options. Signal selection tab Display of all signals that are contained in the overlay measurements. "Trace" task card
Display of the measurement cursor data with mathematical evaluation  and snapshots.
 Inspector window Display of general information about the trace configuration

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

17

Trace software user interface 2.1 Project tree

2.1

Project tree

2.1.1

User interface - "Traces" project tree folder
Trace configurations and installed traces are displayed in the "Traces" folder.
More information about the "Traces" sub-folder is provided in the following sections.
Double-click a trace to open the corresponding "Configuration" or "Diagram" tab in the working area.

Icons in the "Traces" folder
The following table explains the icons in the "Traces" folder:

Icon

Description

Add trace configuration

Double-click the icon to add a new trace configuration.

Trace configuration (offline)

Double-click the icon to open the "Configuration" tab.

Installed trace (online)

The icon is only displayed when there is no offline trace configuration of the same name for the installed trace.

Double-click the icon to open the "Diagram" tab.

Trace configuration with an installed trace of the same name

If the button is deactivated, the trace configuration from the project is displayed. The trace corresponds to a trace configuration.

If the button is activated, the trace configuration from the device is displayed. The trace corresponds to an installed trace. Double-click on the symbol to open the "Diagram" tab of the installed trace.

Status

When there is an online connection, the status is displayed in the right-hand column of the project tree. The status is also displayed as tooltip above the respective icon.
The following table shows the meaning of the icons:

Icon

Description

Online and offline configuration are identical

Online and offline configuration are different

Configuration only exists online

Using the trace and logic analyzer function

18

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.1 Project tree

Shortcut menu commands
The following table shows the shortcut menu commands for the "Traces" system folder:

Shortcut menu command
"Add new group"
"Add new trace"
"Import trace configuration"

Description
Inserts a new folder. Inserts a new trace configuration and opens the configuration tab. Imports a trace configuration from a file.

The following table shows the shortcut menu commands for trace configurations and installed traces / :

Shortcut menu command "Copy"
"Paste"
"Delete"
"Rename" "Export trace configuration"

Trace configuration
x
x
x
x x

Installed trace -
-
x
-

Description
Copies the trace configuration or trace to the clipboard.
Inserts a trace configuration or measurement from the clipboard.
Deletes the selected objects from the project tree or from the device.
Switches the selected object to the editing mode.
Export a trace configuration as a file with the file extension "* .ttcfgx" or a trace in the device with the file extension "* .ttrecx". For reasons of compatibility, the "* .ttcfg" and "* .ttrec" file extensions are supported by TIA Portal V12, although they do not contain any information about the device family.

The trace configuration can also be copied across devices within the same device family.

2.1.2

User interface - "Measurements" project tree folder
The "Measurements" folder shows the saved measurements.

Icons in the "Measurements" folder
The following table explains the icons in the "Measurements" folder:

Icon

Description

Measurement (offline)

Double-click the icon to open the "Diagram" tab.

The configuration for a measurement can be transferred to the "Traces" folder using drag & drop.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

19

Trace software user interface 2.1 Project tree

Shortcut menu commands
The following table shows the shortcut menu commands for the folder:

"Measurements" system

Shortcut menu command
"Add new group"
"Import measurement"

Description
Inserts a new folder. Imports a measurement from a file with the "*.ttrecx" file extension. The import is device-independent. For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.

The following table shows the shortcut menu commands for measurements :

Shortcut menu command
"Copy"
"Paste"
"Delete"
"Rename"
"Generate new overlay measurement"
"Export measurement"

Description
Copies the trace configuration of the selected objects to the clipboard. Inserts a measurement from the clipboard. Deletes the selected objects from the project tree or from the device. Switches the selected object to the editing mode. Generates a new overlay measurement with the selected measurements.
Exports a measurement with the last saved standard view The measurement is saved with the extension "*.ttrecx" or "*.csv". For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.

The measurements can also be copied independent of the device family.

2.1.3

User interface - "Installed measurements (memory card)" project tree folder
The "Measurements on device (memory card)" folder shows all measurements present on the memory card. The folder is only displayed when there is an online connection to the device.
Drag folders or measurements contained here to the "Measurements" system folder using drag & drop. This transfers the measurements to the project.
Note Transferring numerous and large trace measurements from the device (memory card)
Transferring trace measurements from the device to the project increases the memory requirement.
Avoid copying a large number of measurements with large amounts of data at the same time because this can lead to high memory consumption and extended periods needed for copying.

Using the trace and logic analyzer function

20

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.1 Project tree

Icons in the "Traces" folder
The following table explains the icons in the system folder :
Icon Description Folders generated automatically with information on the recording activation time: The name of the folder cannot be changed. Installed measurement Double-click the icon to open the "Diagram" tab. The time stamp in the name shows the occurrence of the trigger event.

Shortcut menu commands
The following table shows the shortcut menu commands for the group folder :

Shortcut menu command "Copy" "Delete"

Description
Copies the selected objects to the clipboard. Deletes the selected objects from the project tree and from the device.

The following table shows the shortcut menu commands for measurements :

Shortcut menu command "Open" "Copy" "Delete" "Export measurement"
"Properties"

Description
Opens the measurement in the "Diagram" tab. Copies the selected objects to the clipboard. Deletes the selected objects from the project tree and from the device. Exports a measurement as a file with the extension "*.ttrecx" or "*.csv". For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family. Displays the general properties of the measurement (Page 40).

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

21

Trace software user interface 2.1 Project tree

2.1.4

User interface - "Overlay measurements" project tree folder
The system folder "Overlay measurements" shows the configured overlay measurements.

Icons in the "Overlay measurements" folder
The following table explains the icons in the system folder "Overlay measurements":

Icon

Description

Add new overlay measurements

Double-click the icon to add a new overlay measurement and open the "Diagram" tab.

Overlay measurement

Double-click the icon to open the "Diagram" tab.

Shortcut menu commands
The following table shows the shortcut menu commands for the system folder measurements" or for a group folder contained within this :

"Overlay

Shortcut menu command
"Add new group"
"Add new overlay measurement"
"Import overlay measurement"

Description
Inserts a new folder. Inserts a new overlay measurement and opens the "Diagram" tab. Imports an overlay measurement from a file with the file extension "*.ttcbmx"

The following table shows the shortcut menu commands for overlay measurements :

Shortcut menu command "Open" "Import measurement"
"Export overlay measurement"
"Copy" "Paste"
"Delete" "Rename" "Properties"

Description
Opens the selected overlay measurements in the working area.
Imports a measurement from a file with the file extension "*.ttrecx" For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.
Exports an overlay measurement The overlay measurement is saved with the extension "*.ttcbmx" or "*.csv". The "*.ttcbmx" format can also be imported again.
Copies the selected objects to the clipboard.
Pastes measurements, measurements from traces in the device or from an overlay measurement from the clipboard. Multiple objects can be inserted from the clipboard if they are all of the same type.
Deletes the selected objects from the project tree or from the device.
Switches the selected object to the editing mode.
Displays the general properties for the overlay measurements.

The overlay measurements can also be copied device-wide.

Using the trace and logic analyzer function

22

Function Manual, 12/2019, A5E31277292-AF

2.2
2.2.1

Working area

Trace software user interface 2.2 Working area

User interface - trace toolbar
Tools are available for handling the trace via buttons. The following table shows the functions of the buttons:

Icon

Description

Transfer the selected trace configuration to the device

The selected trace configuration is transferred to the device.

Transfer the selected trace configuration from the device

The selected trace configuration is transferred, together with the current display options, from the device to the project.

Observe on/off

Change of the display between online and offline.

Note

Once monitor and automatic scaling are activated at the same time, no more actions can be undone using the "Undo" button.

Note

When an installed trace is first started the display in the curve diagram is set to automatic scaling by default. Make sure when the recording is restarted that any changes to the scaling settings are retained. Reactivate automatic scaling manually if necessary in order to monitor the recording.

Activate recording

If the recording of an installed trace is repeated, then the settings relevant for the display (curve diagram and signal table) are also retained for the new recording.

Note

When a recording is restarted, the previously recorded values are lost.

To save the recorded values, save the measurement in the project (Page 68) before you activate the recording again.

Deactivate recording

Delete installed trace Deletes the selected trace from the device. Automatically repeat recording After a recording, the recording is automatically activated again. The display of the curve is refreshed when the recording is completed. This type of refresh is particularly suitable for monitoring fast signals (Page 77). Transfer the selected measurement from the device to the project The measurement is added to the "Measurements" system folder. Note Only the data loaded from the device is saved. This data is displayed in the curve diagram. If necessary, wait until the display is updated.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

23

Trace software user interface 2.2 Working area
Icon

Description
Export trace configuration
Exports a trace configuration as a file with the file extension "*.ttcfgx". For reasons of compatibility, the "*.ttcfg" file extension is supported by V12, although it does not contain information about the device family.
Generate a trace configuration
Generates a new trace configuration from the measurement.
Export measurement with the settings from the current view
Exports a measurement as a file with the file extension "*.ttrecx" or "*.csv". For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.
Import measurement (only with overlay measurements)
Imports a measurement from a file with the file extension "*.ttrecx". For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.
Export overlay measurement (only with overlay measurements)
The overlay measurement is saved with the extension "*.ttcbmx" or "*.csv". The "*.ttcbmx" format can also be imported again.
Select a measurement (only with overlay measurements) The drop down list box contains the imported measurements. Select the desired measurement to display the configuration.

2.2.2 2.2.2.1

User interface - Configuration tab
User interface - Configuration
The trace configuration depends on the device and is described at the respective device (Page 81).

2.2.3 2.2.3.1

User interface - Diagram tab
User interface - curve diagram
The curve diagram displays the selected signals of a recording. Analog signals are displayed in the upper curve diagram. Binary signals are displayed as bit track in the lower diagram. You can adjust the display of the signals in the signal table (Page 30) and with the toolbar of the curve diagram. With project trace, the curve diagram displays a finished or canceled recording. Under the device you can monitor any recording.

Using the trace and logic analyzer function

24

Function Manual, 12/2019, A5E31277292-AF

Setting options and displays in the curve diagram
The following figure shows an example of the display:

Trace software user interface 2.2 Working area

The scale in the diagram applies to the selected (highlighted in gray) signal in the legend. The legend can be moved and its size can be adjusted with the mouse.
The icon shows the device trigger time with a vertical line.
A drop-down list for selecting the unit is available below the curve for the "Time (relative)" setting for the time axis. The "Automatic" setting automatically adjusts the unit based on the displayed time range.
Note Non-interpretable data types
Some data types require a defined format, e.g. the S7 data type LTime_of_Day. If this format is not available, the data type is interpreted as INT.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

25

Trace software user interface 2.2 Working area

Functions using the mouse wheel
The following table shows which functions are possible in the curve diagram using the mouse wheel:

Function of the mouse wheel Move the curve diagram vertically
Move the curve diagram horizontally Zoom in and zoom out

Description
Turning the mouse wheel moves the display in the upper curve diagram up or down.
If the signals are arranged in traces, the display of the group is shifted below the cursor.
The mouse pointer must be positioned above the curve with the analog signals.
Turning the mouse wheel with the <Shift> button pressed down moves the display in the curve diagram to the left or the right.
The cursor must be positioned above the curve diagram.
Turning the mouse wheel with the <Ctrl> button pressed down zooms in or out of the display in the curve diagram. The cursor position is the starting point for zooming in or out.
The value axis of the lower curve diagram (bit tracks) is not affected.
The cursor must be positioned above the curve diagram.

Functions using the keyboard
The following table shows which keyboard commands are possible with a focus on the curve diagram:

Shortcut key

Description

Selecting a measurement cursor

<Ctrl+Shift+1>

The vertical measurement cursor t1 is selected or deselected.

<Ctrl+Shift+2>

The vertical measurement cursor t2 is selected or deselected.

<Ctrl+Shift+3>

The horizontal measurement cursor Y1 is selected or deselected.

<Ctrl+Shift+4>

The horizontal measurement cursor Y2 is selected or deselected.

<Tab>

The next measurement cursor is selected.

Positioning a vertical measurement cursor

<Left>, <Right>

With the unit "Samples", the selected measurement cursor is moved by one sample by the signal in the foreground. With the unit "Time (relative)", the measurement cursor is moved by one pixel.

<Shift+Left>, <Shift+Right>

With the unit "Samples", the selected measurement cursor is moved by 10 samples by the signal in the foreground. With the unit "Time (relative)", the measurement cursor is moved by 10 pixels.

Positioning a horizontal measurement cursor

<Up>, <Down>

The selected measurement cursor is moved by one pixel along the value axis.

<Shift+Up>, <Shift+Down>

The selected measurement cursor is moved by 10 pixels along the value axis.

Using the trace and logic analyzer function

26

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

Shortcut key

Description

Display of vertical measurement cursors

<Ctrl+Space>

The vertical measurement cursors are shown or hidden.

<Ctrl+Shift+Space>

The vertical measurement cursors are shown and centered for the current view.

Changing the view

<Space>

Move view

<Ctrl+0>

Set 100% view in open editor

<Ctrl++>

Apply zoom in with 10%

<Ctrl+->

Apply zoom out with 10%

Shortcut menu commands
The following table shows the shortcut menu commands in the curve diagram:

Shortcut menu command "Save diagram as image" "Copy image to clipboard" "Center measurement cursors"
"Add to measurements" (only axis control panel and PID) "Automatic bit track height"

Description
Exports the current display in graphic format, e.g. as a bitmap.
Copies the current display to the clipboard.
Positions the activated measurement cursors at a central point in the current display.
Adds the displayed recording to the "Measurements" system folder.
Automatically adjusts the height of the bit tracks and thereby determines the size of the lower curve diagram.
The setting is automatically deactivated once you change the space allocation between the curve diagrams manually.
Note You can change the vertical space allocation between the upper and lower curve diagram. To do this drag the time axis of the upper curve diagram up or down with the mouse.

Toolbar of the curve diagram
Tools are available for adapting the display via buttons. The following table shows the functions of the buttons:

Icon

Function

Undo zoom

Redo zoom

Standard view

Description
Undoes the zoom function executed last. If several zoom functions have been executed, they can be undone step-by-step.
Redoes the last undone zoom function. If several zoom functions have been undone, they can be redone step-by-step.
Uses the current view as standard for this recording. If the trace recording is shown again later, the standard view is restored.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

27

Trace software user interface 2.2 Working area

Icon

Function

Move view

Description Moves the display with the mouse button pressed.

Zoom selection Vertical zoom selection Horizontal zoom selection Zoom in Zoom out Display all Automatic scaling of the value axis
Show the overall time range
Arrange in tracks

Selection of an arbitrary range with the mouse button pressed. The display is scaled to the range selection.
Selection of a vertical range with the mouse button pressed. The display is scaled to the range selection.
Selection of a horizontal range with the mouse button pressed. The display is scaled to the range selection.
Enlargement of the display. The ranges of the time axis and value axis are reduced every time the button is clicked. The curves are displayed larger.
Reduction of the display. The ranges of the time axis and value axis are increased every time the button is clicked. The curves are displayed smaller.
Scales the display of the available data so that the entire time range and all values are displayed.
Scaling of the display so that all values are displayed for the currently displayed time range.
The relative scaling ratio between the signals may change.
Note
The automatic scaling of the value axis is stopped when the zoom function is activated for the value axis. This button reactivates the automatic adjustments to the minimum/maximum values.
Scaling of the display so that the values in the value range currently displayed are displayed for the overall time range.
The value range displayed only then changes if "Display all values" is activated.
Note
The automatic scaling of the time axis is stopped when a zoom function is activated for the time axis. This button reactivates the automatic adjustments for the time range.
Activate or deactivate the trace arrangement.
When the trace arrangement is activated the signals are arranged among themselves with the relevant value axes.
Signal groups are displayed in the same trace.
This setting does not affect the display for the bit tracks.

Using the trace and logic analyzer function

28

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

Icon

Function

Description

Unit changeover of the time axis

Switching the unit of the time axis The following units are adjustable:

· "Samples"

· "Time (relative)"

Relative time related to the trigger time · "Time stamp of the samples"

Display samples

The samples are displayed as small circles on the curves.

Interpolated representation
Display vertical measurement cursors

Linear interpolation between two consecutive measuring points for floating point numbers
If linear interpolation is not enabled (default), the connection between the measuring points is drawn in steps.
Display of the vertical measurement cursors. The vertical position of the two measurement cursors can be moved with the mouse. The associated measured values and the difference of the measurement cursors corresponding to the position are shown in the signal table. Display the "Measurement cursor" pane (Page 41) in the Trace task card in order to display further information.
Also use the cursor keys. The following actions are possible for vertical measurement cursors with the cursor keys:
· Select
· Positioning
· Show or hide measurement cursor
· Center measurement cursors

Display horizontal measurement cursors

Display of the horizontal measurement cursors.
The horizontal position of the two measurement cursors can be moved with the mouse.
Display the "Measurement cursor" pane (Page 41) in the Trace task card in order to display the values or to reposition the measurement cursor through entering the position.
Also use the cursor keys. The following actions are possible for horizontal measurement cursors with the cursor keys:
· Select
· Positioning

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

29

Trace software user interface 2.2 Working area

Icon

Function

Time range display

Description
Show or hide the time range display below the curve
The time range display shows the area in the curve in yellow based on a selected signal.
The yellow area can be moved with the mouse and the borders can be changed horizontally.

Display chart legend
Align the chart legend to the left Align the chart legend to the right Change background color

Showing or hiding of the legend in the curve diagram and the bit track labels.
Display of the legend and the bit track labels on the left side of the curve diagram.
Display of the legend and the bit track labels on the right side of the curve diagram.
Changeover between various background colors.

2.2.3.2

User interface - signal table
The signal table lists the signals of the selected measurement and provides setting options for some properties.
Trace settings can be changed on the device in online mode. The changes of the display options can be applied to the project using the button. Otherwise the changes are discarded during the switch to offline mode.
If the installed trace is added to the measurements, the current settings of the signal table are saved in the measurement.
The signals can be sorted using drag-and-drop. The bits of a signal can be resorted within a signal.

Setting options and displays in the signal table
The following figure shows an example of the display:

Using the trace and logic analyzer function

30

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

The following table shows the settings and displays of the recorded signals:

Column
"Status"
(Only project trace in online mode)

Description Status display
No online connection

Configuration only exists offline

Online and offline configuration are different

No access right

Online and offline configuration are identical

Signal or error symbol

Signal

Failsafe signal

Signal from a data block

Signal from a failsafe data block

Calculated signal (formula)

Error in the formula of the calculated signal

"Signal reference" (only trace) "Device" (project trace only) "Name"
"Measurement" (Only combined measurements)

Selection for display in the curve diagram - a maximum of 16 signals can be selected. The point indicates that at least one bit has been selected for display as bit track for the signal in the bit selection. Automatically generated number of the signal The signal are accessed via the signal reference in the formulas.
Display of the device name
Display of the signal name A click on the name of a displayed signal updates the scale in the curve diagram. You can enter a name for a calculated signal in the last line without a signal symbol. The calculated signal is entered with its name. Display of the measurement Shows the name of the measurement to which the signal belongs.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

31

Trace software user interface 2.2 Working area
Column

Description Open bit selection Individual bits can also be selected for the following data types for display as a bit track in the lower curve diagram:
· Byte, Word, DWord, LWord · SInt, USInt, Int, UInt, DInt, UDInt, LInt, ULInt Example of an opened bit selection for the DWORD data type:

"Data type" "Display format" "Address" "Formula" (only trace)
"Color" "Signal group"
Gray field for chain icon
Input field "Min. Y-scale"

Select or deselect the relevant bit for display by clicking the icon. Display of the data type

Display format of the signal The display formats supported for the signal are offered for selection. A display format suitable for the data type is set with "Default".

Display of the address of the signal The field remains empty with optimized / type correct tags.

Display or entry of a formula
A formula can contain mathematical functions with numbers and signals. Use the formula editor to conveniently create formulas.

Call of the formula editor for calculated signals Click on the icon to open the formula editor.

Display and setting option for the color of the signal

Display or input of the signal group name for one signal group The Y-scales are scaled identically for all signals of one signal group. Enter an identical signal group name for those signals that are to be scaled identically. Remove signals from the scaling group by deleting the scaling group name.

The signal groups are saved via the function "Use current view as standard" (button ).

Notes

You cannot group binary signal events.

In hex display format, group only the signals with a format compatible to the sign for the display.

Move the cursor over the gray field or the chain icon ( or ) to add the signal to a signal group or delete the signal from the signal group.

Clicking the chain icon adds the signal to a signal group or creates a new signal group.

Clicking the chain icon removes the signal from the signal group.

For a selected signal with signal group, the the same signal group.

chain icon displays all signals of

The input field displays the signal group name. As an alternative to the chain icon, you can assign or delete a group name via text input in this field.
Display or input of the minimum value for the scaling of the signal

Using the trace and logic analyzer function

32

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

Column "Max. Y-scale" "Y(t1)" "Y(t2)" "Y"
"Unit" "Comment"

Description
Display or input of the maximum value for the scaling of the signal
Display of the value at the position of the first measurement cursor
Display of the value at the position of the second measurement cursor
Display of the value difference between the first and the second measurement cursor
Selection of the automatic scaling of the value axis for the signal When the check box is selected, the minimum and maximum values for scaling the signal are adjusted so that all values are displayed for the currently displayed time range. The button on the toolbar of the curve diagram activates automatic scaling for all scalable signals.
Display of the unit For example, for unit-based values from technology objects
Display and input option for a comment about the signal

Shortcut menu commands
The following table shows the shortcut menu commands of the signal table:

Shortcut menu command "Insert calculated signal" "Edit formula" "Cut" "Copy" "Paste" "Delete" "Rename" "Display format"
"Display signal(s)" "Hide signal(s)"

Description Inserts a re-calculated signal at the top in the table Opens the formula editor for the calculated signal Cannot be selected. Copies the contents of the selected lines to the clipboard. Cannot be selected. Cannot be selected. Cannot be selected Allows you to switch the display format The display formats supported for the signal are offered for selection. Displays the selected signals in the curve diagram. Hides the selected signals in the curve diagram.

See also

Use of the signal table (Page 74) Using the signal group in the signal table (Page 75)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

33

Trace software user interface 2.2 Working area

2.2.3.3

Interface - Formula editor
The formula editor provides various mathematical functions for analyzing signals. Open the editor in the signal table by clicking the button.

Configuration options and displays in the formula editor
The following figure shows an example of the display:

Figure 2-1 Formula editor The following table shows the configuration options and displays of the formula editor:

Field/Button "Name"
"Data type"
"Unit" Drop-down list with signals

Description
Display and input of the name for the created formula The name must be unique and only contain characters that are allowed in Windows file names.
Display of formula data type The data type is pre-assigned with a floating-point number of LREAL type and cannot be changed.
Display and input of a unit Freely specified user-defined unit. Selection of the signals The drop-down list contains the signals from the signal table and inserts a selected signal into the formula.

Using the trace and logic analyzer function

34

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

Field/Button "Formula entry"
Mathematical functions
+ * / () SQR SQRT ABS
MOD
REC DIFF 1)
INT 1)
RMS 1)
AV

Description Text field to display and enter the formula Create a formula by typing into this text box or by using the buttons for the mathematical functions. Signals can be referenced in the text box using the signal reference with a prefixed $ character or the name in double quotes in the formula. Mixed input is possible. Bits from a bit selection (e.g. below the INT data type) are not allowed in the formula.
Addition Subtraction Multiplication Division Brackets Grouping expressions Square Square root Absolute value Calculates the size of a number. Examples ABS(5)  5 ABS(-3)  3 ABS(-3.14)  3.14 Modulo Calculates the residual value of a division Examples MOD(5,3)  2 MOD(3.14,3)  0.14 Reciprocal value (1/x) Numerical differentiation Examples Formula: DIFF($0,SAMPLETIME) Numerical integration Examples Formula: INT($0,SAMPLETIME) Quadratic mean The quadratic mean is given by first adding the squares of all the measured values and dividing them by the number of measured values. The quadratic mean is the square root of this value. Examples Formula: RMS($0,SAMPLETIME) Mean value filter from 1st to 5th order If the specification of an order is missing, the mean filter of the 1st order is used. Examples AV($0,1)  Mean filter 1st order AV($0,5)  Mean filter 5th order

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

35

Trace software user interface 2.2 Working area

Field/Button  AM DIF
DIF2
"Show signal name" "Validate" "Result of validation" "OK" "Cancel"

Description
Mathematical constant Pi Arithmetic mean The arithmetic mean is a moving average over five measuring points. Simple subtraction with mean filter from 1st to 5th order If the specification of an order is missing, simple subtraction is performed with a 1st order filter. Examples DIF($0,1)  Single subtraction with 1st order filter DIF($0,5)  Single subtraction with 5th order filter DIF($0)  Single subtraction with 1st order filter Example: Calculate an acceleration curve from a velocity signal $0: Velocity signal in meters per second Cycle time of the constant cycle velocity recording: 1 ms Formula: DIF($0,1)/0.001 Unit: m/s2 Double subtraction with mean filter from 1st to 5th order If the specification of an order is missing, then double subtraction is executed with a 1st order filter. Examples DIF2($0,1)  Double subtraction with 1st order filter DIF2($0,5)  Double subtraction with 5th order filter DIF2($0)  Double subtraction with 1st order filter Example: Calculate an acceleration curve from a position sequence $0: Position sequence in meters Cycle time of the constant cycle position recording: 1 ms Formula: DIF2($0,1)/SQR(0.001) Unit: m/s2 Display of the signal names If the check box is selected, the signal names in the formula are displayed instead of the signal references. Check the validity of the formula Result of validation Displays the result of the validation and indicates errors and error locations. Transfer the entries in the formula editor Discard the entries in the formula editor

1) The constant SAMPLETIME is only available for equidistant recording cycles. Time unit for SAMPLETIME is always s.

Note
The functions DIF, DIF2, DIFF, AM, RMS, AV and INT can only process one recorded signal as argument. Not all invalid formulas are marked as errors.

Using the trace and logic analyzer function

36

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

2.2.3.4

User interface - Measurements (overlay measurements)
The Measurements tab displays the individual measurements and among other things provides the setting options for synchronization.

Setting options and displays in the Measurements tab
The following figure shows an example of the display:

The following table shows the settings and displays for the measurements:

Column

Description

Alignment of the measurements

"Trigger/measure ment point"

Alignment of the measurements in accordance with the trigger or measurement point
The individual zero point for the measurement is predefined in the table under the "Alignment" column.

"Time stamp (absolute time)"

Alignment of the measurements in accordance with their time stamp
The signals are aligned in accordance with the time from the absolute time stamp.

Table columns

Static display of the measurement icon

"Name" "Alignment"

Display and change options for the measurement name The name must be a unique one and can be changed.
Alignment of the measurement (only adjustable with the "Trigger/measurement point" check box activated) Determines the individual zero point for a measurement. All signals for the measurement are displayed in relation to this zero point. The following settings are possible:

· Trigger

· First measurement point following the trigger event

· First measurement point

· Last measurement point

"Offset"
"Time stamp" "Comment"

Offset related to the time axis Moves the measurement left or right by the offset stated on the time axis. The offset can also be transferred via the clipboard to the cell from the X value of the measurement cursor. See Align measurements precisely (overlay measurements) (Page 80).
Display of the trigger time
Display and input option for a comment about the signal

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

37

Trace software user interface 2.2 Working area

Shortcut menu commands
The following table shows the shortcut menu commands of the signal table:

Shortcut menu command "Cut" "Copy" "Paste" "Delete" "Rename" "Import measurement"
"Export measurement"

Description
Cannot be selected.
Copies the contents of the selected lines to the clipboard.
Cannot be selected.
Cannot be selected.
Switches the selected cell to the editing mode.
Imports a measurement from a file, e.g. with the "*.ttrecx" file extension.
The import is device-independent and also suitable, for example, for comparing measurements of a PLC with the measurements of a drive device.
For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.
Exports a measurement as a file with the extension "*.ttrecx" or "*.csv".
For reasons of compatibility, the "*.ttrec" file extension is supported in V12, although it does not contain any information about the device family.

Using the trace and logic analyzer function

38

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.2 Working area

2.2.4

User interface - Signal selection tab (overlay measurements)

2.2.4.1

User interface - Signal selection (overlay measurements)
The Signal selection tab shows the signals for all measurements and allows signals that are presented in the signal table of the diagram to be preselected.

Setting options and displays in the Signal selection tab.
The following figure shows an example of the display:

The following table shows the settings and displays for the table:

Column

Description Static display of the signal icon

"Available in the diagram"
"Measurement" "Name" "Data type " "Address" "Scaling group" "Comment"

Selection for the display in the curve diagram When the selection is activated the signal is transferred to the signal table for the curve diagram. Display of the measurement to which the signal belongs Display of the signal name Display of the data type Display of the address (not for symbolic tags) Display of the scaling group name Display of a comment on the signal

You will find further information on the specific settings in User interface - signal table (Page 30).

Shortcut menu commands
The following table shows the shortcut menu commands for the signal selection:

Shortcut menu command
"Copy"
"Display selection in the signal table"
"Remove selection from the signal table"

Description
Copies the content of the selected lines to the clipboard. The selected signals are displayed in the signal table and are available in the diagram. The removed signals are not available in the diagram.

Several objects can be selected.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

39

Trace software user interface 2.3 Inspector window

2.3

Inspector window

2.3.1

Interface - Inspector window
The Inspector window displays general information about the trace. Additional information is available for measurements:  Time stamp range
The availability of the time stamps depends on the configured recording conditions.  Measuring point range  Cycle time range
For equidistant cycle recordings, the time duration between two measurement points is displayed. This time, for example, can be used in the formula editor.

Sample time stamp
The following figure shows the time stamps for a measurement:

Note Analysis of measurements with sporadically occurring recording condition
When evaluating your measurements, keep in mind that the recording condition between the activation time and the trigger time may not have been fulfilled.

Using the trace and logic analyzer function

40

Function Manual, 12/2019, A5E31277292-AF

2.4

Trace task card

Trace software user interface 2.4 Trace task card

2.4.1

User interface - Measurement cursor pane
The "Measurement cursor" pane shows the position of the measurement cursor in the curve diagram and the values at the intersection points.

Setting options and displays of the "Measurement cursor" pane
The figure below shows the "Measurement cursor" pane:

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

41

Trace software user interface 2.4 Trace task card

The following table describes the settings and displays:

Setting/display

Description

Horizontal measurement cursor

Y1

Position of first measurement cursor

The value states the position in relation to the scale of the signal currently selected. You also have the option of specifying a new position for the measurement cursor in this entry field for moving with the mouse.

Y2

Position of the second measurement cursor

The value states the position in relation to the scale of the signal currently selected. You also have the option of specifying a new position for the measurement cursor in this entry field for moving with the mouse.

Y

Display of the position difference between the first and the second measure-

ment cursor

Vertical measurement cursor

t1

Position of first measurement cursor

You also have the option of specifying a new position for the measurement cursor in this entry field for moving with the mouse.

t2

Position of the second measurement cursor

You also have the option of specifying a new position for the measurement cursor in this entry field for moving with the mouse.

t

Display of the position difference between the first and the second measure-

ment cursor

Intersection points with selected signal

Y(t1)

Display of the value at the position of the first measurement cursor

Y(t2)

Display of the value at the position of the second measurement cursor

Y

Display of the value difference between the first and the second measurement

cursor

Mathematical analysis in the range of the measurement cursor·[t1;t2] for the selected signal

AM(Y)

Mean

The arithmetic mean is calculated for the range between the vertical measurement cursors.

INT(Y)

Integral

The integral is calculated for the range between the vertical measurement cursors.

RMS(Y)

RMS value

The root-mean square (RMS value) is calculated for the range between the vertical measurement cursors.

See also

User interface - curve diagram (Page 24)

Using the trace and logic analyzer function

42

Function Manual, 12/2019, A5E31277292-AF

Trace software user interface 2.4 Trace task card

2.4.2

User interface - Snapshots pane
The "Snapshots" pane allows the user to save and restore different views for a measurement.
A snapshot is taken of the current view in the "Diagram" tab. The snapshots are saved in the measurement with the project.

Setting options and displays of the "Snapshots" pane
The figure below shows the "Snapshots" pane:

The following table shows the functions of the buttons:

Icon

Description

Generate snapshot of the current view

Saves the current view as a snapshot in the "Diagram" tab.

The following table shows the settings and displays:

Column

Description Static display of the snapshot symbol

"Name" "Time stamp" "Comment"

Display and change options for the name Display of the snapshot generation time Display and input option for a comment

Several rows can be selected and deleted.

Double-clicking on a row opens the measurement with the saved view in the "Diagram" tab.

Shortcut menu commands
The following table shows the shortcut menu commands of the table:

Shortcut menu command "Restore snapshot"
"Delete" "Rename"

Description
Shows the measurement with the saved view in the "Diagram" tab. Deletes the snapshot Switches the cell to the editing mode

Several rows can be selected and deleted.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

43

Project trace software user interface

3.1

Structure of the user interface

The user interface of the project trace consists of several combined areas.

The figure below shows an example of the layout of the user interface:

3

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

44

Project trace software user interface 3.1 Structure of the user interface

See also

Project tree Manage and create project traces and measurements directly in the project tree and via shortcutmenu commands. Working area
 Title bar of the working area
Displays the name of the project trace.
 Project trace toolbar
Buttons to manage the project traces: · Transfer trace configurations to the devices · Display status overview of participating devices · Establish online connection to participating devices · Activating/deactivating project traces · Deleting project traces · Transferring measurements from the devices to the project
 Status display of the project trace
Display of the current status of the recording.
 Configuration tab
Configuration of the participating devices and signals for the project trace.
 Diagram tab
Display of the recorded values as a curve diagram and the signals from the displayed measurement. Specification of the display options. "Trace" task card
Display of the measurement cursor data with mathematical evaluation  and snapshots.
 Inspector window Device-specific configuration of the recording duration, trigger condition and signal selection. Display of general information about the project trace.
Devices (Page 81)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

45

Project trace software user interface 3.2 Project tree

3.2

Project tree

3.2.1

User interface - Project tree folder "Cross-device functions" - "Project traces"
Project trace configurations and measurements are shown in the system folder "Project traces".
Double-click a project trace to open the corresponding "Configuration" or "Diagram" tab in the working area.

Symbols in the "Project traces" folder
The following table explains the symbols in the folder "Project traces":

Icon

Description

Adding a project trace configuration Double-click the symbol to add a new project trace configuration and open the "Configuration" tab. Project trace configuration Double-click the icon to open the "Configuration" or "Diagram" tab. "Measurements" folder

The folder contains combined measurements that were added using the button. The measurements are compatible with the combined measurements within the devices. The configurations of the individual measurements are displayed when the combined measurement is copied or moved to the corresponding folder of a device.

Measurement Double-click the icon to open the "Diagram" tab.

Shortcut menu commands
The following table shows the shortcut-menu commands for the system folder traces":

"Project

Shortcut menu command
"Add new project trace"

Description Adds a new project trace and opens the "Configuration" tab.

The following table shows the shortcut-menu commands for the project trace configuration :

Shortcut menu command "Delete" "Rename"

Description
Deletes the selected objects from the project tree or from the device. Switches the selected object to the editing mode.

Using the trace and logic analyzer function

46

Function Manual, 12/2019, A5E31277292-AF

3.3
3.3.1
3.3.2

Working area

Project trace software user interface 3.3 Working area

User interface - Project trace toolbar
Buttons provide tools for handling the project trace. The following table shows the functions of the buttons:

Icon

Description

Transferring the trace configurations to the devices

The trace configurations are transferred to the participating devices.

Display of the status overview

Shows the status overview of the participating devices (Page 47).

Establishing an online connection

The online connection to the participating devices is established.

Activate recording

If the recording of an installed trace is repeated, then the settings relevant for the display (curve diagram and signal table) are also retained for the new recording.

You cannot redo an interrupted recording.

Note

When a recording is restarted, the previously recorded values are lost.

To save the recorded values, save the measurement in the project before you activate the recording again.

Deactivate recording

Deactivates the traces in all devices that can be reached online.

Delete traces from devices

Deletes the traces from the participating devices that can be reached online.

Transferring measurements from the devices to the project

The measurements are added to the system folder "Measurements".

Note

Only the data loaded from the devices is saved. This data is displayed in the curve diagram. If necessary, wait until the display is updated.

User interface - status overview of the participating devices
The dialog shows status information about the participating devices.
For participating devices with status without error, you can apply trace configurations to the devices.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

47

Project trace software user interface 3.3 Working area

Display in the status overview table
The following table shows the displays of the status overview:

Column -
Device Device status
Trace status

Description Display of whether there is an error for the project trace in the participating device or whether the trace configuration is faulty. A tooltip above the symbol displays information about the cause of the error. Meaning in offline mode · Configured trace is faulty Meaning in online mode · Configured trace is faulty · Recording was interrupted · Connection error Display of the device name Status display of the online connection Offline
Connect or disconnect
Online
Status display of the trace A tooltip above the symbol displays information on the status. Online and offline configuration are identical
Online and offline configuration are different
Configuration only exists offline

Remedy for errors
The following list shows possible sources of error and the remedy.  Firmware
With the devices (Page 81) it is described if and from which firmware a device supports the project trace.  Trace configuration Check the settings for the respective device in the "Properties" tab of the Inspector window.  Canceled recording You can restart an interrupted recording by transferring the trace configurations again.  Project trace requirements Check that the general requirements for the project trace (Page 14) are met.

Using the trace and logic analyzer function

48

Function Manual, 12/2019, A5E31277292-AF

Project trace software user interface 3.3 Working area

3.3.3

User interface - Configuration tab

3.3.3.1

User interface - Configuration
The "Configuration" tab is used to define the participating devices for the project trace. You configure the device-dependent trace configuration and the properties of the project trace in the Inspector window (Page 50).
The displayed trace configuration is always the offline configuration, even with an existing online connection. Transfer changes of the trace configurations to the devices using the button.

Setting options and displays in the overview of the participating devices
The figure below shows an example of the display of the overviews table:

The following table shows the settings and displays of the participating devices:

Column Device
Trigger
Trace sample event
Cycle time Record every Number of samples Recording duration Errors

Description
Input of the device name
Button to open the device selection table The button is displayed when the table line is selected. Clicking the symbol opens a table which offers possible devices for selection. The selected device is displayed in the input field.
The symbol indicates which devices can activate a trigger. Configure this device-dependent setting in the "Properties" tab of the Inspector window.
Display of the trace sample event In the "Properties" tab of the Inspector window, configure in which cycle (OB with a SIMATIC CPU) the recording should take place.
Display of the time cycle resulting from the selection of the trace sample event
Input of the reduction ratio
Input of the number of samples to be recorded The recording duration is adjusted according to the input.
Input of the recording duration The number of samples is adjusted according to the input.
Display of an error in the trace configuration
A tooltip above the symbol displays information about the cause of the error. Configured traces with the Error status cannot be transferred to the device.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

49

Project trace software user interface 3.4 Inspector window

3.3.4

User interface - Diagram tab
The "Diagram" tab of the project trace behaves in the same way as the trace and is described in the section User interface - Diagram tab (Page 24).

3.4

Inspector window

3.4.1

Interface - Inspector window
The display in the "Properties" tab of the Inspector window depends on the current selection in the working area.
If no table row with a device is selected in the working area, general information about the project trace is displayed. If a table row with a device is selected, the device-dependent trace configuration is displayed, which is described for the respective device (Page 81).

General information in the "Properties" tab.
The following figure shows an example of the display:

The following table shows the settings and displays of the recorded signals:

Field Name Author Comment Trace ID
Port number

Description
Input field for the name of the project trace Input field for the name of the author Input field for a comment. Display of the Trace ID Using this ID, you can distinguish, for example, between several active project traces. Input field for the port number of the connection The devices participating in the project trace communicate via this port. The numbers must be identical and unique on all devices. Also note the instructions for assigning port numbers in the TIA Portal information system.

Using the trace and logic analyzer function

50

Function Manual, 12/2019, A5E31277292-AF

Project trace software user interface 3.5 Trace task card

3.5

Trace task card

The displayed panes are described in the section "Trace task card (Page 41)".

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

51

Operation

4

4.1

Trace quick start

This description shows the steps for a recording of the S7-1500 CPU as an example. The displayed settings can differ depending on the device.

Requirement

A device is configured that supports the trace and logic analyzer function.

Creating a trace
The following figure shows the project tree with the device:

"Traces" system folder below the

Procedure: 1. Double-click the "Add new trace" entry.
A new trace configuration is created and the "Configuration" tab opens in the working area. 2. Adapt the name of the trace configuration by clicking the text.

Using the trace and logic analyzer function

52

Function Manual, 12/2019, A5E31277292-AF

Selecting signals
The following figure shows the configuration of the signals:

Operation 4.1 Trace quick start

Procedure: 1. Select the signals to be recorded in the "Signals" area.
Or: 2. Drag one or more signals, e.g. from a tag table, and drop them in the signal table.
Configuring the recording cycle
The following figure shows the configuration of the sampling:
Procedure: 1. Configure the sampling.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

53

Operation 4.1 Trace quick start Configuring the trigger
The following figure shows the configuration of the trigger:
Procedure: 1. Configure the trigger mode and the condition for the selected trigger.
Configuring display options (optional)
The following figure shows the configuration of the display options:

Procedure: 1. Switch to the "Diagram" tab. 2. Set the desired display options in the diagram and in the signal table.

Using the trace and logic analyzer function

54

Function Manual, 12/2019, A5E31277292-AF

Operation 4.1 Trace quick start

Transferring the trace configuration to the device
Procedure: 1. Transfer the trace configuration to the device with the
The following functions are executed: ­ An online connection is established to the device. ­ The trace configuration is transferred to the device. ­ The monitoring is activated. ­ The display switches to the "Diagram" tab.

button.

Activating a recording
Procedure: 1. Click the

button.

Displaying the recording
The following figure shows the curve diagram with a recording:

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

55

Operation 4.1 Trace quick start

Procedure:
1. Wait until the "Recording" or "Recording completed" status is displayed in the status display of the trace.
2. Switch to the "Diagram" tab.
3. Click the icon of a signal in the signal table.
The individual bits of the signal are offered for display as a bit track.
4. In the signal table, select or deselect the individual signals and bits for display with the icon.

Saving the measurement in the project
Procedure:
1. Transfer the measurement to the project with the button. The measurement is displayed in the project tree under the "Measurements" system folder.

See also

User interface - trace toolbar (Page 23)

Using the trace and logic analyzer function

56

Function Manual, 12/2019, A5E31277292-AF

Operation 4.2 Project trace quick start

4.2

Project trace quick start

This description shows an example of the steps for a recording with project trace for two S7-1500 CPUs. The displayed settings can differ depending on the device.

Requirements

 Two S7-1500 CPUs with firmware version V2.8 or higher are configured.  The general requirements for the project trace (Page 14) are fulfilled.

Add project trace
The following figure shows the project tree with the the cross-device functions:

"Project traces" system folder below

Procedure: 1. Double-click the "Add new project trace" entry.
A new project trace configuration is created and the "Configuration" tab opens in the working area. 2. Adapt the name of the project trace configuration by clicking the text.

Adding devices

The following figure shows the adding of the devices.

Procedure: 1. Select the devices in the "Participating devices" area.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

57

Operation 4.2 Project trace quick start
Configuring signals and recording conditions of devices
The following figure shows two participating devices and the configuration of "PLC_1".

Procedure: 1. Select a device in the "Participating devices" area. 2. Select the "Properties" tab in the Inspector window. 3. Select the signals to be recorded in the "Signals" area.
Or: 4. Drag one or more signals, e.g. from a tag table, and drop them in the signal table. 5. Configure the sampling. 6. Configure the trigger mode and the condition for the selected trigger. 7. Redo the configuration from step 1 for each participating device. For "PLC_2", "Trigger from another Device" is configured as trigger mode in the example shown here.

Using the trace and logic analyzer function

58

Function Manual, 12/2019, A5E31277292-AF

Operation 4.2 Project trace quick start

Apply trace configurations to the devices
Procedure: 1. Open the status overview of the participating devices using the button. 2. Transferring the trace configurations to the devices using the button. 3. Check the status in Status overview (Page 47) and correct any errors that have occurred.

Activate recording
Procedure: 1. Click the

button.

Displaying recordings
Procedure:
1. In the status overview of the participating devices, check whether the required recordings have already been completed.
2. Switch to the "Diagram" tab.

Saving measurements in the project
Procedure:
1. Transfer the measurements to the project using the button. The measurements are displayed in the project tree under the system folder "Measurements".

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

59

Operation 4.3 Using the trace function - overview

4.3

Using the trace function - overview

Requirement

A device is configured in the TIA Portal that supports the trace and logic analyzer function and to which an online connection has been established.

Procedure

The following table shows a procedural overview with typical steps when working with the trace and logic analyzer function.

Step 1 2 3 4 5 6 7 8 9

Description Creating a trace (Page 60) Configuring the trace (Page 72) Transferring the trace configuration to the device (Page 64) Activating/deactivating an installed trace (Page 65) Monitoring the recording (Page 66) Saving measurements in the project (Page 68) Displaying the recording (Page 66) Analyze an ongoing recording (Page 67) Compare records (overlay measurements) (Page 78)

See also

Displaying a configuration (Page 61)

4.4

Project tree

4.4.1

Creating a trace
Traces can be created in the form of trace configurations in the project tree.
The following instructions describe how you can create a trace configuration under the "Traces" system folder

Procedure

To create a trace configuration, proceed as follows: 1. Double-click the "Add new trace" entry. A new trace configuration is created.

Using the trace and logic analyzer function

60

Function Manual, 12/2019, A5E31277292-AF

Operation 4.4 Project tree

4.4.2

Displaying a configuration

Requirement

A trace configuration, an installed trace, a measurement or an overlay measurement is available in the "Traces" system folder.

Procedure

To display a trace configuration, proceed as follows: 1. Double-click the appropriate icon of a trace configuration, an installed trace, a
measurement or an overlay measurement in the project tree. The "Configuration" or "Diagram" tab opens in the working area. 2. If required, click the "Configuration" tab for the display.
Note Write protection The configuration data of an installed trace and in all measurements is displayed with write protection.

See also

User interface - "Traces" project tree folder (Page 18)

4.4.3

Displaying a diagram

Requirement

An installed trace, a measurement or an overlay measurement is available in the "Traces" system folder.

Procedure

To display a diagram, proceed as follows: 1. Double-click the corresponding symbol of an installed trace, a measurement or a
combined measurement in the project tree. The "Configuration" or "Diagram" tab opens in the working area. 2. If required, click the "Diagram" tab for the display.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

61

Operation 4.4 Project tree

See also

User interface - "Traces" project tree folder (Page 18)

4.4.4

Apply overlay measurement
Combined measurements can be applied in the project tree with a comparison function for different measurements.
The following instructions describe how you can create an overlay measurement under the "Overlay measurements" system folder

Requirement

A device is configured that supports the trace and logic analyzer function.

Procedure

To apply an overlay measurement, proceed as follows: 1. Select one or more measurements in the "Measurements" system folder. 2. Drag the measurements to the "Overlay measurements" system folder. A new overlay measurement is created. This contains copies of the selected measurements.

Using the trace and logic analyzer function

62

Function Manual, 12/2019, A5E31277292-AF

4.4.5

Operation 4.4 Project tree
Configuring objects in groups
You can set up groups in system folders in the project tree. Use this option to configure the view for multiple objects. The following instructions use measurements as an example in order to describe how to consolidate the measurements into groups. The same functionality is also available for the "Traces" and "Combined measurements" system folders.
Note Traces in the device can also be displayed in groups A trace configuration in a group with a trace of the same name in the device is displayed under the group. Therefore, all traces in the device on the first level in the "Traces" folder are not necessarily displayed.

Requirement

Measurements are available in the "Measurements" system folder.

Procedure

Proceed as follows to configure measurements into groups: 1. Select the shortcut menu command "Add new group" by right-clicking on the
"Measurements" system folder. A new group folder is created. 2. Assign a meaningful name to the new group. 3. Repeat step 1 until all required groups have been created. (Sub-groups (groups within groups) can also be created.) 4. Drag & drop the corresponding measurements to the group folder that has been created.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

63

Operation 4.5 Working area - general

4.5

Working area - general

4.5.1

Transferring the trace configuration to the device

Requirement

 A valid trace configuration is in the "Traces" system folder.  The maximum number of installed traces has not been reached yet.

Procedure

To transfer a trace configuration to the device, proceed as follows: 1. Open a valid trace configuration in the working area. 2. Click the button.

Result

The trace configuration is transferred to the device.

Using the trace and logic analyzer function

64

Function Manual, 12/2019, A5E31277292-AF

Operation 4.5 Working area - general

4.5.2

Activating/deactivating an installed trace

Requirement

 There is an online connection to the device.  There is a trace in the device.  The installed trace is displayed in the working area.  The button is activated for viewing the displayed trace.

Activating an installed trace
To activate the recording for an installed trace, proceed as follows:
1. Click the button.
The installed trace is activated and starts the recording according to the configured trigger condition. The trigger condition is device-specific and described in Section "Configuration" below the respective device (Page 81). The current status of the recording is displayed in the status display of the trace.
Note When a recording is restarted, the previously recorded values are lost. To save the recorded values, save the measurement in the project (Page 68) before you activate the recording again.

Deactivating an installed trace
To deactivate an activated installed trace, proceed as follows: 1. Click the button.
The installed trace is deactivated. The status display of the trace changes to "Inactive".

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

65

Operation 4.5 Working area - general

4.5.3

Displaying the recording

Requirement

 There is an online connection to the device.  There is a trace with recording in the device. Or:  A measurement is in the "Measurements" system folder.

Procedure

To display the recording, proceed as follows: 1. Select an installed trace. 2. Double-click the selected trace. 3. If required, activate the button for viewing. Or: 1. Select a measurement in the "Measurements" system folder. 2. Double-click the selected measurement.

Result

The recording is displayed in the "Diagram" tab.

See also

User interface - "Traces" project tree folder (Page 18)

Using the trace and logic analyzer function

66

Function Manual, 12/2019, A5E31277292-AF

Operation 4.5 Working area - general

4.5.4

Analyze an ongoing recording

Requirements

 An ongoing recording is displayed in the "Diagram" tab.

Save the data currently recorded as a measurement
To analyze a certain time range for an ongoing recording, follow these steps:
1. Click the button. The data recorded up to now is added to the measurements. The current recording is not affected by this and continues running uninterrupted.

Analyze the measurement
To display the saved measurement, follow these steps:
1. In the "Measurements" system folder double-click the measurement that has just been saved in order to open it
The "Diagram" tab for the measurement opens in the working area.

See also

Displaying the recording (Page 66) Working area - Diagram tab (Page 72)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

67

Operation 4.5 Working area - general

4.5.5

Saving measurements in the project

Requirement

 There is an online connection to the device.
 There is a trace with recording in the device.
 The installed trace data must have been displayed at least once in the curve diagram. The recording data is loaded from the device for the display.

Procedure

To save a recording in the project, proceed as follows: 1. Open the installed trace with the recorded data. 2. If required, make sure that the current data is loaded from the device by activating the
button. 3. After activating the button wait until all data has been loaded and displayed. 4. Click the button.
The measurement is added to the "Measurements" system folder. 5. Save the project in the TIA Portal.
Note Generate measurements A measurement of an installed trace can be generated at any time. Use this functionality e.g. to save the data recorded up until this point in a recording and to analyze it as a static measurement.

Using the trace and logic analyzer function

68

Function Manual, 12/2019, A5E31277292-AF

Operation 4.5 Working area - general

4.5.6

Exporting and importing measurements

Requirement

At least one measurement is in the "Measurements" system folder for export.

Exporting measurements
To export a measurement, proceed as follows: 1. Right-click a measurement in the "Measurements" system folder and select the
shortcut menu command "Export measurement". 2. Select a folder, a file name and a data type to save the measurement. 3. Click the "Save" button.

Importing measurements
To import a measurement, proceed as follows: 1. Right-click in the "Measurements" system folder and select the shortcut menu
command "Import measurement". 2. Select the file e.g. of the "*.ttrecx" file type with the measurement to be imported. 3. Click the "Open" button.
The imported measurement is displayed with the file name in the "Measurements" system folder.
Note Export and import trace configurations The same functionality is available for exporting and importing trace configurations.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

69

Operation 4.5 Working area - general

4.5.7

Transferring the trace configuration from the device to the project

Requirement

 There is an online connection to the device.  There is a trace in the device.

Procedure

To transfer a trace configuration to the project, proceed as follows: 1. Open an installed trace. 2. If required, activate the button for viewing. 3. Click the button to transfer the trace configuration from the device.

Result

The configuration is taken over as new trace configuration in the "Traces" system folder. The current display options are included in the new trace configuration. A trace configuration of the same name is overwritten in the system folder.

Using the trace and logic analyzer function

70

Function Manual, 12/2019, A5E31277292-AF

Operation 4.5 Working area - general

4.5.8

Deleting installed traces

Requirement

 There is an online connection to the device.  There is a trace in the device.

Procedure

To delete an installed trace, proceed as follows: 1. Open an installed trace. 2. If required, activate the button for viewing. 3. Click the button.
A confirmation prompt opens. 4. Confirm the prompt for deletion. Or 1. Select one or more installed traces / in the project tree. 2. Press <Delete> to delete the installed traces.
A confirmation prompt opens. 3. If required, select an option for deletion and confirm the prompt.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

71

Operation 4.6 Working area - Configuration tab

4.6

Working area - Configuration tab

4.6.1

Configuring the trace

Requirement

The "Configuration" tab is open in the working area.

Configuring the trace
In the configuration, you specify the recording and trigger conditions and select the signals to be recorded. See Section "Configuration" below the respective device (Page 81).
Note Saving the trace configuration You save the trace configuration with the project in the TIA Portal. If you close the project without saving, the configuration is discarded.

See also

Displaying a configuration (Page 61)

4.7

Working area - Diagram tab

4.7.1

Use of the curve diagram
The curve diagram shows the signals of a recording selected in the signal table.
The display area can be zoomed as required. Measurement cursors can be used to select individual values for display in the signal table.
The following operating instructions describe the use of the curve diagram and of the measurement cursors as examples.

Requirements

 An installed trace or a measurement has been selected for display.  The button is activated to monitor an installed trace.  The "Diagram" tab is open in the working area.

Using the trace and logic analyzer function

72

Function Manual, 12/2019, A5E31277292-AF

Operation 4.7 Working area - Diagram tab
Monitor an ongoing recording.
To display all of the data in an ongoing recording, proceed as follows: 1. Activate "Display all" via the button. The entire time range and all values for the ongoing recording are displayed.
To display a consistent time window in an ongoing recording, proceed as follows: 1. Activate "Display all" via the button. 2. Select the desired time range via the button. The trend view is updated while the scaling of the time range remains the same.
Evaluation of a certain instant of a recording
To display the values for a specific sample, proceed as follows: 1. Display the vertical measurement cursors via the button. 2. Move a measurement cursor with the mouse to the required position in the recording.
The values of the signals are displayed in the signal table and in the "Measurement cursor" pane of the "Trace" task card.
Evaluation of the difference between two samples
To display the difference, proceed as follows: 1. Display the vertical measurement cursors via the button. 2. Move both measurement cursors with the mouse to the required samples in the
recording. The values of the signals and the difference are displayed in the signal table and in the "Measurement cursor" pane of the "Trace" task card.
Using horizontal measurement cursors
To check whether a certain value has been reached, proceed as follows: 1. Display the horizontal measurement cursors via the button. 2. Move a measurement cursor with the mouse to the required value of the recording.
The values of the measurement cursors for the selected signal are displayed in the "Measurement cursor" pane of the "Trace" task card.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

73

Operation 4.7 Working area - Diagram tab

Moving the time range displayed
Proceed as follows to move the time range displayed:
1. Select a time range via the button. 2. Move the curve to the desired time range by turning the mouse wheel with the <Shift> key
pressed down.

Bringing a signal into the foreground
1. Display the legend via the button. 2. Click a signal in the legend. Or: 1. Click a signal in the curve diagram. The signal is displayed in the foreground and is highlighted/selected in the signal table. The value axis is updated for the selected signal.

See also

Displaying a diagram (Page 61) User interface - curve diagram (Page 24) User interface - signal table (Page 30)

4.7.2

Use of the signal table
The signal table shows the signals of an installed trace or a measurement. The preselected signals in the signal selection are displayed with an overlay measurement. You can show or hide individual signals for the display in the table and adapt the properties for the display. Individual bits can be selected for some data types and displayed as a bit track.
The following operating instructions describe the operation of the signal table.

Requirements

 An installed trace or a measurement has been opened in the "Diagram" tab.
 The button is activated to monitor an installed trace.
 For the display of individual bits as a bit track: at least one recorded signal supports the display as a bit track.

Using the trace and logic analyzer function

74

Function Manual, 12/2019, A5E31277292-AF

Operation 4.7 Working area - Diagram tab

Display or hide individual signals and change the color
To adapt the display to suit your requirements, proceed as follows: 1. Click the icon of the respective signal in the column to select or deselect it for the
display. 2. Click in the "Color" column for the respective signal and select a color.
The default color for the signal changes.

Bringing a signal into the foreground
1. In the signal table, select the line of the signal. The Y-scale of the signal is displayed. The signal curve is brought into the foreground in the curve diagram.

Selecting individual bits for display as a bit track
To display individual bits as a bit track in the lower curve diagram, proceed as follows: 1. Click the icon of a signal in the signal table. 2. Click the icon in the open bit selection of the signal.
The bits are selected or deselected for display.

See also

Displaying the recording (Page 66)

4.7.3

Using the signal group in the signal table
Individual signals can be scaled identically in a signal group, which makes it easier to compare the curve characteristics. Binary signals cannot be grouped. The following operating instructions describe how to work with the signal group.
Note Saving signal groups
The signal groups can be saved individually for each measurement via the "Use current view as standard" function ( button). If the signal groups and the project are not saved then the signal groups created will be lost when the "Diagram" tab is closed.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

75

Operation 4.7 Working area - Diagram tab

Requirements

 An installed trace or a measurement is displayed.  The button is activated to monitor an installed trace.  The "Diagram" tab is open in the working area.  There are at least two signals in the signal table that are not of the BOOL type.

Assigning signals to a signal group
To apply a signal group and assign signals to this group, proceed as follows: 1. In the signal table, select the line or cell of the required signal. 2. Click the gray field in the "Signal group" column.
The sequence icon is displayed in the gray field and the name of the signal group is preassigned: 3. Click the gray fields of further signals that are to be assigned to this signal group.

Or: 1. Click in the text field of the "Signal group" column for a signal to be grouped. 2. Enter a name for the group. 3. Enter the same group name in the respective text fields for further signals or select the
group name via the drop-down list.

The Y-scales of the grouped signals are scaled with the values of the signal that was selected first. Changes to a scale value always affect the entire group.

Removing signals from a signal group
To delete the assignment of a signal to a signal group, proceed as follows: 1. Click the sequence icon for the required signal in the "Signal group" column.

Or: 1. Click the text field for the required signal in the "Signal group" column. 2. Press the <Del> key.

Or:
1. Select the respective text field in the "Signal group" column for several signals using the <Shift> and <Ctrl> keys.
2. Press the <Del> key.

The signals are removed from the signal group or the signal group is deleted.

Using the trace and logic analyzer function

76

Function Manual, 12/2019, A5E31277292-AF

Operation 4.7 Working area - Diagram tab

4.7.4

Observation of fast signals

Requirements

 There is an online connection to the device.  There is a trace in the device.

Procedure

To monitor the progress of a fast signal, proceed as follows: 1. Select a trace in the device. 2. Double-click the selected trace. 3. Click on the button for monitoring. 4. Click on the button to automatically repeat the recording.

Result

The recording is automatically re-activated at the end of each recording. The display in the curve is similar to the display of an oscilloscope.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

77

Operation 4.7 Working area - Diagram tab

4.7.5

Compare records (overlay measurements)

Requirement

 An overlay measurement is created or is created implicitly by dragging the measurements to the system folder "Overlay measurements".
See also Apply overlay measurement (Page 62).

Adding measurements for comparison
To compare measurements, insert the measurements to be compared to the overlay measurements. Proceed as follows for this:
1. In the project tree drag one or more measurements from the system folder "Measurements" to the icon for the overlay measurement .
Or:
1. Import saved measurements via the "Import measurement" shortcut menu command.

A copy of the measurements is added to the overlay measurement.
Note Changes to the settings for measurements within the overlay measurement have no impact on the original measurements. The original measurements remain unchanged.

Select signals of the measurements for the signal table
Proceed as follows to select the signals for the signal table in the "Diagram" tab: 1. Double-click on the icon for the overlay measurement in the project tree.
The tabs for the overlay measurement will be displayed in the working area. 2. Click the "Signal selection" tab in the working area.
The signals for all measurements are displayed in the table. 3. Activate or deactivate the signal check box for those signals that should be visible or
should not be visible in the signal table. The activated signals are displayed in the signal table of the "Diagram" tab.
Use of the signal table
Proceed as follows to open and use the signal tables: 1. Click the "Diagram" tab in the working area. 2. Click on the "Signals" tab within the "Diagram" tab. 3. Use the signal tables as described under Use of the signal table (Page 74).

Using the trace and logic analyzer function

78

Function Manual, 12/2019, A5E31277292-AF

Operation 4.7 Working area - Diagram tab

Align measurements
Proceed as follows to align the time axis for the measurements for the comparison: 1. Click on the "Measurements" tab within the "Diagram" tab. 2. Select the alignment for the measurements via the check box. 3. Adjust the alignment and if necessary set an offset for the alignment of the individual
measurements. The measurements are aligned with each other accordingly on the time axis. (The precise alignment of two measurements is described in the next section.)

Use of the curve diagram
Proceed as follows to open and use the curve diagram: 1. Click the "Diagram" tab in the working area. 2. Use the curve diagram as described under Use of the curve diagram (Page 72).

See also

Align measurements precisely (overlay measurements) (Page 80)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

79

Operation 4.7 Working area - Diagram tab

4.7.6

Align measurements precisely (overlay measurements)

Requirement

 An overlay measurement is applied.  Measurements for comparison are added to the overlay measurement.  Signals of the measurements for the signal table are selected.  The "Diagram" tab for the overlay measurement opens in the working area.

Align measurements precisely with position difference X
Proceed as follows to align the time axis for two measurements precisely: 1. Display the vertical measurement cursors via the button.
2. Zoom into the time range, e.g. with the button until you are able to position the first measurement cursor precisely on the desired reference point for the first measurement.
3. Move the first measurement cursor with the mouse to the required position.
4. Search for the reference point for the second measurement, e.g. by switching to "Display all" with the button.
5. Zoom into the time range, e.g. with the button until you are able to position the second measurement cursor precisely on the desired reference point for the second measurement.
6. Move the second measurement cursor with the mouse to the required position. 7. Open the "Trace" task card. 8. In the "Measurement cursor" pane select the position difference value X. 9. Copy the value to the clipboard. 10.Insert the value from the clipboard into the Offset cell of the first or second measurement. Both measurements are precisely aligned with each other at the desired measurement points.
Note When inserting the position difference as the offset make sure that you also adjust the leading character as necessary.

4.7.7

Printing a recording
The curve diagram supports the saving of the display as a graphic and the copying of the display to the clipboard. Also use these functions (Page 24) for printing.

Using the trace and logic analyzer function

80

Function Manual, 12/2019, A5E31277292-AF

Devices

5

5.1

S7-1200/1500 CPUs

5.1.1

Recordable variables

Device-dependent recording of tags
The following list shows the operand areas from which tags can be recorded:  Process image input  Process image output  Bit memory  Data blocks  I/O devices

Data types

A selection of elementary and composite data types can be recorded. The availability of the individual data types depends on the device used:
For more information, see the help under "Overview of valid data types".
The following table lists the supported data types:

Data types Binary numbers BOOL Bit strings BYTE WORD DWORD LWORD 1) Integers SINT USINT INT UINT DINT UDINT

Note
-
Symbolic name required
-

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

81

Devices 5.1 S7-1200/1500 CPUs

Data types

Note

LINT 1)

Symbolic name required

ULINT 1)

Symbolic name required

Floating-point numbers

REAL

-

LREAL

Symbolic name required

Timers

TIME

-

LTIME 1)

-

Date and time

DATE

-

TOD

-

LTOD 1)

-

LDT 1)

-

1) Not supported by S7-1200.

5.1.2

Lifetime of the installed trace configuration and recorded values
Installed trace configurations are retained after POWER OFF. The recording is activated again after the restart of the CPU. Recorded values are lost during the restart.
Note Downloading a configuration to the device in the "STOP" operating state Note that after downloading a configuration in the "STOP" operating state, you must check the installed traces and, if required, reactivate them or transfer them again.
Note If trigger tags that affect the address are changed, the trace configuration must also be transferred to the device again. This is the case for example, when a data block is shortened or extended or the data type is changed.

Using the trace and logic analyzer function

82

Function Manual, 12/2019, A5E31277292-AF

5.1.3

Devices 5.1 S7-1200/1500 CPUs
Recording levels
All runtime levels can be used for the recording cycle. The cyclic execution levels are offered for selection via the button . In non-periodic recording levels, the recording time is undefined.
Note The measured values are recorded at the end of the OB after the processing of the user program.
Note Trace sample event with Motion Control The time reference for the measured values is determined differently if a Motion Control organization block is configured as trace sample event and the device is time synchronized via IRT. This behavior is described in Time synchronization with Motion Control (Page 84).

See also

Time synchronization of SIMATIC S7 CPUs (https://support.industry.siemens.com/cs/ww/en/view/82203451)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

83

Devices 5.1 S7-1200/1500 CPUs

5.1.4

Time synchronization with Motion Control
With Motion Control, a time reference to the cycle limits of the application cycle is required for the analysis. For this reason, the time reference for the measured values in the configuration of Motion Control organization blocks is determined differently than trace sample event. The synchronized (absolute) time from the start of the current application cycle is always stored as the time for the measured value. The tags of the technology objects are always consistently related to cycle limits.
The described behavior applies to the following Motion Control organization blocks:
 MC-Servo [OB91]
 MC-PreServo [OB67]
 MC-PostServo [OB95]
 MC-Interpolator [OB92]
 MC PreInterpolator [OB68]
The devices must communicate via IRT.
The following figure shows the stored times of the measured values with an application cycle of 3 and MC interpolator as configured trace sample event:

T0 to T6 T0 T3 T6

IRT cycle Start of application cycle n Start of application cycle n+1 Start of application cycle n+2

Note OB61-OB63 as trace sample event With these OBs as configured trace sample event, the system time is used independently of the communication. The recording behavior is the same as for devices without IRT communication. To facilitate the evaluation with absolute time, synchronize the clock times of the devices.
Note Measured values with identical timers An overflow of the recording level (such as MC-Interpolator OB in the example above) can result in measured values with identical time stamp.

Using the trace and logic analyzer function

84

Function Manual, 12/2019, A5E31277292-AF

5.1.5
5.1.6 5.1.7

Devices 5.1 S7-1200/1500 CPUs

Quantity structure
The following table shows the maximum quantity structure that you can record using the trace and logic analyzer function:

Device
S7-1200 (as of firmware version V4.0) S7-1500, ET 200SP, CPU 1513pro-2 PN, CPU 1516pro-2 PN, S7-1500 Software Controller, S7-1500 Drive Controller, ET 200SP Open Controller

Maximum number of installed traces
2

Maximum number of signals per trace configuration
16

At least 4

16

(depending on the CPU type)

The same quantity structures apply for the project trace as for the devices.

Example CPU 1516-3 PN/DP

 Maximum of 7281 samples for 16 signals from PLC tags of the DWORD data type

 Maximum of 21844 samples for 16 signals from PLC tags of the BOOL data type

 Maximum of 58250 samples for 1 signal from a PLC tag of the BOOL data type

Further information can also be found in the form of FAQs under the ID 102781176 (http://support.automation.siemens.com/WW/view/en/102781176).

CPU load through trace recording
An activated trace recording increases the runtime of the respective recording level that can result in an execution level overflow with high utilization of the CPU. Remedy for execution level overflow:  Change the trace configuration
1) Configure fewer tags and signals. 2) Then increase the number of tags and signals up to the maximum number of signals step-by-step without an execution level overflow.  Select a slower recording level

Project trace
The following devices support the project trace as of firmware version V2.8:  SIMATIC S7-1500, ET 200SP, CPU 1513pro-2 PN and CPU 1516pro-2 PN CPUs  SIMATIC S7-1500 Software Controller  SIMATIC S7-1500 drive controller  ET 200SP Open Controller

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

85

Devices 5.1 S7-1200/1500 CPUs

5.1.8

Software user interface of the configuration

5.1.8.1

Layout of the trace user interface
The settings options differ depending on the configured device.

Display in the "Configuration" tab of the working area
The following figure shows an example of the display:

The area navigation provides the following entries for selection:  Configuration
­ Signals (Page 88) ­ Recording conditions (Page 89)
Displaying and changing properties of a trace configuration
A trace is selected in the project tree and displayed in the "Configuration" tab. You change the trace configuration offline. Online, the trace configuration is displayed readyonly.

Using the trace and logic analyzer function

86

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

5.1.8.2

Layout of the project trace user interface
The device-dependent trace configuration is displayed in the Inspector window when a device is selected in the configuration tab of the "Participating devices" table.

Configuration in the "Properties" tab of the Inspector window
The following figure shows an example of the display for a selected device:

The area navigation provides the following entries for selection:  Configuration
­ Signals (Page 88) ­ Recording conditions (Page 89)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

87

Devices 5.1 S7-1200/1500 CPUs

5.1.8.3

User interface - Signals
The "Signals" area shows a table in which the signals to be recorded are configured for the selected trace configuration.
Signals can also be inserted in the table using drag-and-drop. The signals can be sorted using drag-and-drop.

Setting options and displays in "Signals"
The following figure shows an example of the display:

The following table shows the settings and displays:

Column

Icon

-

"Name"

-

-

"Data type"

-

"Address"

-

"Comment"

-

Description Display of the signal icon for a selected signal.
Input field for the name or address of the signal. Examples: · "Data_block_1".pressure · M0.0 · DB1.DBW3
Button to open the signal selection table. The button is displayed when the table line is selected. Clicking the icon opens a table which offers possible signals for selection. The selected signal is displayed in the input field. Text field with display of the data type for the signal. Input field for the address of the signal. The field remains empty with optimized / type correct tags. Input field for a comment on the signal.

Shortcut menu commands
The following table shows the shortcut menu commands of the table:

Shortcut menu command "Cut" "Copy" "Paste"
"Delete"
"Rename"

Description
Cannot be selected. Copies the contents of the selected lines to the clipboard. Pastes the contents of the clipboard to the selected line. The existing contents are overwritten. Deletes the selected lines from the table or deletes the content of the selected cell. Switches the selected cell to the editing mode.

Using the trace and logic analyzer function

88

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

5.1.8.4

Recording conditions

User interface - Recording conditions
The "Recording conditions" area shows the trigger condition for the selected trace configuration and in which cycle, how fast and how long the recording is made.

Sampling

The following figure shows an example of the settings for the sampling:

The following table explains the settings and displays:

Setting/display
"Recording time" Recording level entry field
Address of the OB text field "Record every" Reduction entry field Reduction ratio dropdown list

Description
Selection of the recording time. See Recording levels (Page 83) Detailed information on the selected recording time.
Input of the reduction in relation to the reduction ratio and the unit. Selection of the reduction ratio unit The following settings are possible:

· "Cycle" · "s" for seconds

The setting depends on the recording level selected in "Trace sample event".

Sampling time text field Display of the sampling time, taking into account the configured reduction and the selected unit (only for constant bus cycle time OBs).

"Max. recording duration"

Max. recording duration Displays the calculated maximum recording duration.

text field

The "Max. recording duration" depends on how many signals are rec-

orded and the data type of these signals.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

89

Devices 5.1 S7-1200/1500 CPUs

Setting/display "Use max. recording duration"
"Recording duration" Recording duration entry field Unit drop-down list
Calculated recording duration text field

Description Set the recording duration to the maximum value. When the checkbox is activated, the recording duration is set to the maximum possible recording duration. The set reduction in the "Record every" input field is taken into account. If more signals are added, the recording duration will be adjusted. Further information can also be found in the form of FAQs under the ID 102781176 (http://support.automation.siemens.com/WW/view/en/102781176).
Input of the recording duration in relation to the selected unit. If the "Recording duration = max. recording duration" checkbox is activated, entries are overwritten by the value displayed in "Max. recording duration". Selection of the unit for the recording duration. The following settings are possible:
· "Samples"
The maximum number of samples recorded is the number for which parameters are assigned under recording duration. · "s" for seconds
The setting depends on the recording level selected in "Trace sample event". Display of the calculated recording duration (only for constant bus cycle time OBs)

Using the trace and logic analyzer function

90

Function Manual, 12/2019, A5E31277292-AF

Trigger

Devices 5.1 S7-1200/1500 CPUs
The following figure shows an example of the settings for the trigger:

The following table explains the settings and displays:

Setting/display "Trigger mode"
Trigger mode dropdown list
Text field "Trigger tag"
Trigger tag entry field

Description Selection of the trigger mode. The following settings are possible:
· "Record immediately"
Recording is started immediately after the activation in the device. The global trigger is triggered immediately, regardless of the operating state of the device. · "Trigger on tag"
The recording is made as soon as the installed trace is activated and the configured trigger condition is fulfilled. · "Monitor without trigger" (traces)
The recording takes place as soon as the installed trace is activated and is not automatically terminated. After termination by the user, there are a maximum of as many measured values in the device as were configured under recording duration. This trigger mode is particularly suitable for monitoring slow signals and is only available for traces. · "Trigger from another device" (project trace)
The global trigger for the start of the trace is triggered by another device. This trigger mode is only available for a project trace. The "Trigger tag" specifies a signal that triggers the recording. Enter a signal. Examples:
· "DataBlock_1".Temperature
· M0.0
· DB1.DBW3 See also Data types for trigger tags (Page 95).

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

91

Devices 5.1 S7-1200/1500 CPUs

Setting/display
Trigger tag address text field "Event" Trigger events dropdown list Text field "Value"
"Pre-trigger"
Duration entry field Unit drop-down list
Resulting pre-trigger duration text field

Description
Opens the signal selection table. Clicking the symbol opens a table offering possible signals for selection as trigger tag. The selected signal is displayed in the input field. Display of the trigger tag address. With purely symbolic signals the field remains empty. The events that can be used on this trigger tag are offered for selection according to the data type of the trigger tag. The event can be configured provided a valid signal is entered as trigger tag. Event selection for which the trigger tag is checked. The entries in the drop-down list are described in Section Trigger event (Page 95). Configuration of the selected event. The configuration options differ depending on the format of the trigger tag and the selected event. SeeTrigger event (Page 95). "Pre-trigger" defines the number of samples that are already recorded before the actual trigger condition is fulfilled. If the trigger event occurs immediately or shortly after the recording has been activated, this may result in a shorter recording duration. Examples of "Recording duration (a)" = 20 samples and "Pre-trigger (b)" = 5 samples:
· Case 1: Trigger event occurs 50 samples after activation of the recording
Actual recording duration (a) = 20 samples
· Case 2: Trigger event occurs 2 samples after activation of the recording
Actual recording duration (a) = 17 samples Input of the duration in relation to the selection in the drop-down list. Selection of the unit The following settings are possible:
· "Samples"
· "s" for seconds
The setting depends on the recording level selected in "Trace sample event". Display of the calculated "Pre-trigger" duration. The duration is displayed when recording in constant bus cycle time OBs.

Using the trace and logic analyzer function

92

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs
Installed measurements (memory card)
The following figure shows an example of the settings for the saving of installed measurements:
Saving measurements on device (memory card) is not possible with project traces. Note Available memory in the device (memory card) The memory in the device (memory card) is partly used by system-relevant functions or reserved for that purpose. Thus it is not possible for the entire memory to be used for saving measurements. For further information please refer to the Function Manual Structure and Use of the CPU Memory (https://support.industry.siemens.com/cs/us/en/view/59193101).
Note Memory requirements upon restart Following a device reboot the maximum number of measurements saved in the device is the number configured under "Number of measurements". With repeated restarts note that the measurements already saved are not overwritten and the "Number of measurements" configured in the device is saved once again.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

93

Devices 5.1 S7-1200/1500 CPUs

The following table explains the settings and displays:

Setting/display

Description

"Saving of installed measurements (memory card)"

Repeat measurement automatically and store in the device retentively This setting is only possible with "Trigger on tag" trigger mode. The measurements are stored on the "primary" memory card.

For traces which have been saved in the device (memory card), the function for automatically repeating the recording is not available.

Note
Only completed measurements are stored in the device. Any recording deactivated by the user is not saved on the device.
This function is available with the following firmware versions:

· S7-1200 as of V4.2

· S7-1500 as of V2.0

The function is not supported by CPU S7-1500 R/H.

"Number of measurements" Input of the number of measurements to be saved on the card.

"Memory requirements"

Display of the expected memory requirement for all measurements

Displaying memory usage Shows the tab with the memory usage

"Behavior if number reached"

Selection for the behavior once "Number of measurements" is reached The following settings are possible: · "Deactivating a recording"
The measurements are repeated until the "Number of measurements on the card" is reached. · "Overwrite oldest recording"
The measurements are saved in a ring buffer and repeated until the user deactivates the recording. Once the number of measurements exceeds the "Number of measurements on the card" the oldest measurement on the card is overwritten in each case.
Note
Note that write processes that are repeated frequently may damage the card.

Using the trace and logic analyzer function

94

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

Data types for trigger tags
The following table shows the supported data types for the trigger tag:

Memory requirement and format of the number 1 byte 8-bit integers 16-bit integers 32-bit integers 64-bit integers 1) 32-bit floating-point numbers 64-bit floating-point numbers
1) Not supported by S7-1200.

Data type BOOL SINT, USINT, BYTE INT, UINT, WORD, DATE DINT, UDINT, DWORD, TIME, TOD LINT, ULINT, LWORD, LTIME, LTOD, LDT REAL LREAL

Trigger event

Depending on the selection in the drop-down list, the further settings differ for the "event". The individual events are described below.

"=TRUE"

Supported data types: Bit (Page 95) The recording starts when the state of the trigger is TRUE.

"=FALSE"

Supported data types: Bit (Page 95) The recording starts when the state of the trigger is FALSE.

"Rising edge"

Supported data types: Bit (Page 95)
The recording is started when the trigger state changes from FALSE to TRUE. After activation of the installed trace, at least two cycles are required to identify the edge.

"Rising signal"

Supported data types: Integers and floating-point numbers (Page 95) (no times, date and time of day)
The recording is started when the rising value of the trigger reaches or exceeds the value configured for this event. After activation of the installed trace, at least two cycles are required to identify the edge.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

95

Devices 5.1 S7-1200/1500 CPUs

"Falling edge"

Supported data types: Bit (Page 95)
The recording is started when the trigger state changes from TRUE to FALSE. After activation of the installed trace, at least two cycles are required to identify the edge.

"Falling signal"

Supported data types: Integers and floating-point numbers (Page 95) (no times, date and time of day)
The recording is started when the falling value of the trigger reaches or falls below the value configured for this event. After activation of the installed trace, at least two cycles are required to identify the edge.

"In the range"

Supported data types: Integers and floating-point numbers (Page 95)
The recording starts as soon as the value of the trigger is in the value range configured for this event.

"Outside of the range"
Supported data types: Integers and floating-point numbers (Page 95)
The recording starts as soon as the value of the trigger is outside the value range configured for this event.

"Value change"

All data types are supported.
The value is checked for change when the recording is activated. The recording starts when the value of the trigger changes.
This trigger event is supported as of V13 SP1. Older versions of the TIA Portal cannot interpret the trigger. Note that no explicit information is output in this case. This can occur, for example, when the trace is transferred from a CPU to a TIA Portal less than V13 SP1 or a trace configuration is imported.

"= value"

Supported data types: Integers (Page 95)
The recording starts when the value of the trigger is equal to the value configured for this event.

"<> value"

Supported data types: Integers (Page 95)
The recording starts when the value of the trigger is not equal to the value configured for this event.

Using the trace and logic analyzer function

96

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

"= bit pattern"

Supported data types: Integers and floating-point numbers (Page 95) (no times, date and time of day)
The recording starts when the value of the trigger matches the bit pattern configured for this event.
The following figure shows the setting options for a "bit pattern":

It is possible to switch between the icons by clicking the respective button. The following table shows the icons:

Icon

Description

Bit is not evaluated

Bit is checked for FALSE

Bit is checked for TRUE

"<> bit pattern"

Supported data types: Integers and floating-point numbers (Page 95) (no times, date and time of day)
The recording starts when the value of the trigger does not match the bit pattern configured for this event.

See also

Configuring the trigger conditions (Page 100) Recordable variables (Page 81)

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

97

Devices 5.1 S7-1200/1500 CPUs

5.1.9

Configuration

5.1.9.1

Trace configuration - overview
The configuration of the recording conditions and the signals to be recorded is devicespecific.

Requirement

A trace configuration has been created and opened in the working area of the "Configuration" tab.

Procedure

The following table shows the procedure for configuring.

Step 1 2 3 4
5

Description
Documentation of the configuration (optional) Enter a comment and an author for the configuration in the Inspector window. Selecting signals (Page 99) Select the signals to be recorded in the "Signals" area. Configuring the recording cycle and duration (Page 99) Select a recording time, a cycle and the duration in the "Recording conditions" area. Configuring the trigger conditions (Page 100) In the "Recording conditions" area, select whether the recording is to be performed immediately or depending on a trigger condition. Configure installed measurements (memory card) (Page 101) In the "Recording conditions" area, select whether the recording is to be saved on the device (memory card).

Using the trace and logic analyzer function

98

Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

5.1.9.2

Selecting signals

Requirement

 A trace configuration has been created and opened.  The "Signals" area is open in the "Configuration" tab.

Procedure

To configure the signals to be recorded, proceed as follows: 1. Select a signal. The following options are available:
­ In the "Name" column, click the button and select a tag. ­ Enter the symbolic tag name in the cell in the "Name" column. ­ Enter the address directly in the "Address" column. ­ Drag a signal to the table using drag-and-drop. 2. Click in the "Comment" column and enter a comment for the signal. 3. Repeat the procedure from step 1 until all the signals to be recorded have been entered in the table.

5.1.9.3

Configuring the recording cycle and duration

Requirement

 A trace configuration has been created and opened.  The "Recording conditions" area is open in the "Configuration" tab.

Procedure

To configure the cycle and the duration of a recording, proceed as follows: 1. Click the button for the recording time. 2. Select an OB for the recording time (Page 83). 3. Select a unit for the reduction factor in the drop-down list for "Record every". 4. Enter the factor for the reduction in the input field for "Record every". 5. Select a unit in the drop-down list for "Recording duration". 6. Specify the recording duration.
The following options are available: ­ Enter a value for the duration in the input field for "Recording duration". ­ Activate the "Use max. recording duration" checkbox.

Using the trace and logic analyzer function

Function Manual, 12/2019, A5E31277292-AF

99

Devices 5.1 S7-1200/1500 CPUs

5.1.9.4

Configuring the trigger conditions

Requirement

 A trace configuration has been created and opened.  The "Recording conditions" area is open in the "Configuration" tab.

"Record immediately" trigger condition
To start the recording immediately, proceed as follows: 1. Select the "Record immediately" entry in the drop-down list for "Trigger mode".
The input fields for the trigger tag are hidden.

"Trigger on tag" trigger condition
To start the recording depending on a condition, proceed as follows: 1. Select the "Trigger on tag" entry in the drop-down list for "Trigger mode". 2. Select a trigger tag. The following options are available:
­ Click the button for the trigger tag and select a tag. ­ Enter the address or the symbolic name of the tag directly in the input field for the
trigger tag. A drop-down list with events and input fields is displayed. The display depends on the data type of the tag. 3. Configure the event. 4. Select a unit for the pre-trigger in the drop-down list for "Pre-trigger". 5. In order to record a period before the trigger event, enter a value greater than 0 in the input field for the pre-trigger.
Note Cyclic test of the trigger condition The trigger condition is checked in every cycle irrespective of the setting in "Record every". To reliably identify the trigger, the trigger signal must be present for at least one full cycle.

100

Using the trace and logic analyzer function Function Manual, 12/2019, A5E31277292-AF

Devices 5.1 S7-1200/1500 CPUs

5.1.9.5

Configure installed measurements (memory card)

Requirement

 A trace configuration has been created and opened.  The "Recording conditions" area is open in the "Configuration" tab.  The "Trigger on tag" trigger mode is set.  The firmware on the device supports the recording of an installed measurement.

Procedure

Proceed as follows to save the installed measurement (on the memory card): 1. Select the "Save measurements on device (memory card)" check box. 2. Enter the number of measurements that ought to be saved on the card in the "Number of
measurements" entry field. 3. Set the desired behavior once the "Number of measurements" has been reached in the
"Behavior if number reached" drop-down list.
Note No evaluation of the trigger during saving No new trigger can be evaluated as long as the recording is saved.

Using the trace and logic analyzer function Function Manual, 12/2019, A5E31277292-AF

101

Glossary

Curve diagram
Displays the selected signals of a recording.

Global trigger

If a project trace is triggered by a participating device to start recording synchronously in all participating devices.

Installed trace
Consists of a trace configuration and optionally a recording.

Measurement

Consists of a trace configuration with an associated recording.

Overlay measurement
Permits a comparison and analysis of signals from different measurements.

Pre-trigger

Defines the interval in which the signals are already recorded before the actual trigger condition is fulfilled.

Project trace

Contains all the information to record signals from multiple devices with a global trigger.

Recording

Is performed in the device. There is only one recording for each installed trace configuration.

Recording condition
Sampling and trigger for a trace configuration.

Recording duration
Factor in number of samples. The factor of 100 means, for example, that 100 samples are recorded.

102

Using the trace and logic analyzer function Function Manual, 12/2019, A5E31277292-AF

Glossary

Reduction

Factor in number of cycles. A factor of 2 means, for example, that a recording is made every second cycle.

Sampling

Setting, in which cycle, how fast and how long the recording is to be made.

Signal table

Lists the signals of the selected measurement and provides setting options for some properties.

Snapshot

Contains the settings for the view for a measurement.

Trace configuration
Contains all the information required to record signals in a device.

Trigger

Specifies the trigger mode and the condition for the "Trigger on tag" mode.

Trigger mode

Specifies whether the recording should be started immediately or based on a trigger tag.

Trigger tag

Signal to trigger the recording.

Trigger time

The meaning of the measurement trigger time depends on the device.
e.g. SIMATIC S7-1200/1500 CPUs: Specifies the absolute time of the control system at the start of recording.

Using the trace and logic analyzer function Function Manual, 12/2019, A5E31277292-AF

103

Index

C
CPU load through trace, 85
L
Logic analyzer function, 9
M
Measurements Project tree, 19
P
Project trace Project tree, 46 Quick start, 57 Recording conditions, 89 Supported devices, 85 User interface, 44, 50, 87
T
Trace, 9, 9, (Trigger time) Align overlay measurements, 80 Analyze an ongoing recording, 67 Apply overlay measurement, 62 Bit track, 24 Configure project navigator into groups, 63 CPU load, 85 Creating a trace configuration, 60 Curve diagram, 24, 72 Data storage, 13 Display options, 30, 54 Displaying a diagram, 61 Displaying a trace configuration, 61 Inspector window, 40 Installed measurements (memory card), 12, 20 Installed trace, 11 Keyboard operation, 26 Lifetime of the values, 82 Mathematical functions, 34 Measurement, 11, 13, 68, 69 Measurement cursor, 72

Measurement cursor pane, 41 Monitor fast signals, 77 Mouse wheel, 26 Overlay measurement, 12, 22, 37, 78 Pre-trigger, 92 Print, 80 Project tree, 18 Quantity structure, 85 Quick start, 52 Recordable variables, 81 Recording, 11, 65, 66 Recording conditions, 89, 95, 95 Recording cycle, 53, 99 Recording duration, 99 Recording levels, 83 Reduction, 89 Sampling, 53 Save installed measurements, 94, 101 Saving the trace configuration, 72 Signal group, 76 Signal table, 30, 75 Signals, 88, 99 Snapshots pane, 43 Status, 18 Supported devices, 9 Time stamp, 40 Time synchronization, 84 Trace configuration, 11, 13, 64, 70, 71, 72, 98 Trigger, 100 Trigger mode, 91 Trigger tag, 91, 95 User interface, 16, 40, 86 Trace function, 9 Trace S7-1200/1500, 81

104

Using the trace and logic analyzer function Function Manual, 12/2019, A5E31277292-AF

Communication

SIMATIC
S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Communication
Function Manual

Preface

Function manuals Documentation Guide

1

Product overview

2

Communications services

3

PG communication

4

HMI communication

5

Open User Communication

6

S7 communication

7

Point-to-point link

8

OPC UA communication

9

Routing

10

Connection resources

11

Diagnostics and fault correction

12

Communication with the

redundant system S7-

13

1500R/H

Industrial Ethernet Security with CP 1543-1

14

11/2019
A5E03735815-AH

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03735815-AH  10/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface
Purpose of the documentation This function manual provides you with an overview of the communication options, the CPUs, communication modules and processors and PC systems of the systems SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro and SIMATIC Drive Controller. This function manual describes the connection-oriented, asynchronous communication. The documentation covers the following:  Overview of the communication services  Properties of the communication services  Overview of the user activities for setting up the communication services
Basic knowledge required The following knowledge is required in order to understand the Function manual:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about how to use STEP 7 (TIA Portal)
Scope of the documentation This documentation is the basic documentation for all products of the SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL and ET 200pro systems. The product documentation is based on this documentation.

Communication

Function Manual, 11/2019, A5E03735815-AH

3

Preface

What's new in the Communication Function Manual, Edition 11/2019 as compared to Edition 10/2018?

What's new? IP forwarding
OPC UA server expansion

What are the customer benefits?

Where can I find the information?

Simple access from the control level to the field IP forwarding (Page 294) level for configuration and parameter assignment of devices, e.g. via PDM or Web browser.

For S7-1500 CPUs as of firmware V2.8 and TIA Portal version 16, with a corresponding Runtime license, you can benefit from the following expansions of the integrated OPC UA server:

Section OPC UA communication (Page 126)

· Improved diagnostics: The OPC UA user receives information on the status of the OPC UA server via messages in the diagnostic buffer, an OPC UA category in the Online & Diagnostics area of TIA Portal as well as an improved connection resources display.

· Download behavior: In RUN mode, the OPC UA server only performs a restart during download from the TIA Portal when the newly downloaded data has an effect on the data management of the OPC UA server.

· Server interface modeling: It is now possible in the TIA Portal to model server interfaces or import OPC UA Companion Specifications and map them to the PLC data management.

What's new in the Communication Function Manual, Edition 10/2018 as compared to Edition 12/2017?

What's new?
Description of communication with the redundant system S7-1500R/H
Scope of the function manual expanded to include the redundant system S7-1500R/H

What are the customer benefits?
You receive information on the particularities of communication with the redundant system S71500R/H
Functions with which you are familiar from the SIMATIC S7-1500 automation system are implemented for the redundant system S7-1500R/H.

Where can I find information?
Section Communication with the redundant system S7-1500R/H (Page 324)
Redundant System S7-1500R/H System Manual (https://support.industry.siemens.co m/cs/ww/en/view/109754833)

Communication

4

Function Manual, 11/2019, A5E03735815-AH

Preface

What's new in the Communication Function Manual, Edition 12/2017 compared to Edition 09/2016

What's new? OPC UA Companion Specification
Setting up a secure connection to a mail server over the CPU interface Secure communication over Modbus TCP

What are the customer benefits?
Through OPC UA Companion Specification, methods can be specified in a uniform and manufacturer-neutral way. Using these specified methods, you can easily integrate devices from various manufacturers into the plant and the production processes.
You can set up a secure connection to a mail server without additional hardware.

Where can I find the information? Section OPC UA server interface configuration (Page 199)
Section Secure OUC via e-mail (Page 107)

You can establish secure TCP connections between a Modbus TCP client and a Modbus TCP server.

Section Secure OUC with Modbus TCP (Page 106)

What's new in the Communication Function Manual, Edition 09/2016 compared to Edition 12/2014

What's new? OPC UA server
Secure Open User Communication Certificate handling in STEP 7 Deactivating SNMP for the CPU

What are the customer benefits?
OPC UA is a uniform standard for data communication and is independent of any particular operating system platforms. OPC UA uses integrated safety mechanisms on various automation systems, for example with data exchange, at application level, for the legitimation of the user. The OPC UA server provides a large amount of data:
· Values of PLC tags that clients can access
· Data types of these PLC tags
· Information about the OPC UA server itself and the CPU
In this way, clients can gain an overview of the tag management and can read and write values. Secure data exchange with other devices.
You can manage certificates for the following applications in STEP 7:
· OPC UA server
· Secure Open User Communication
· Web server of the CPU
You can deactivate SNMP for the CPU. This can make sense under certain conditions, for example if the security guidelines in your network do not permit SNMP.

Where can I find the information? Section OPC UA communication (Page 126)
Section Secure Open User Communication (Page 92) Section Managing certificates with STEP 7 (Page 43)
Section Disabling SNMP (Page 57)

Communication

Function Manual, 11/2019, A5E03735815-AH

5

Preface

Conventions

STEP 7: We refer to "STEP 7" in this documentation as a synonym for the configuration and programming software "STEP 7 as of V12 (TIA Portal)".
"S7-1500 CPUs" also refers to the CPU variants S7 1500F, S7 1500T, S7 1500TF, S7 1500C, S7-1500R/H, S7 1500pro, ET200S, S7 1500 Software Controller as well as SIMATIC Drive Controller.
This documentation contains pictures of the devices described. The figures may differ slightly from the device supplied.
You should also pay particular attention to notes such as the one shown below:
Note
A note contains important information on the product, on handling of the product and on the section of the documentation to which you should pay particular attention.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Communication

6

Function Manual, 11/2019, A5E03735815-AH

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Communication

Function Manual, 11/2019, A5E03735815-AH

7

Table of contents

Preface ...................................................................................................................................................... 3

1 Function manuals Documentation Guide ................................................................................................. 12

2 Product overview ..................................................................................................................................... 14

3 Communications services ........................................................................................................................ 19

3.1

Overview of communication options ...................................................................................... 19

3.2

Communications protocols and port numbers used for Ethernet communication ................. 22

3.3

Overview of connection resources......................................................................................... 27

3.4

Setting up a connection ......................................................................................................... 27

3.5

Data consistency.................................................................................................................... 31

3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6

Secure Communication.......................................................................................................... 34 Basics of Secure Communication .......................................................................................... 34 Confidentiality through encryption.......................................................................................... 36 Authenticity and integrity through signatures......................................................................... 39 Managing certificates with STEP 7 ........................................................................................ 43 Examples for the management of certificates........................................................................ 47 Example: HTTP over TLS ...................................................................................................... 53

3.7 3.7.1 3.7.2

SNMP ..................................................................................................................................... 57 Disabling SNMP ..................................................................................................................... 57 Example: Disabling SNMP for a CPU 1516-3 PN/DP............................................................ 58

4 PG communication .................................................................................................................................. 60

5 HMI communication ................................................................................................................................. 63

6 Open User Communication...................................................................................................................... 65

6.1

Overview of Open User Communication ............................................................................... 65

6.2

Protocols for Open User Communication .............................................................................. 66

6.3

Instructions for Open User Communication ........................................................................... 68

6.4

Open User Communication with addressing via domain names ........................................... 73

6.5

Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO ...................... 75

6.6

Setting up communication over FDL...................................................................................... 82

6.7

Setting up communication with Modbus TCP ........................................................................ 84

6.8

Setting up communication via e-mail ..................................................................................... 87

6.9

Setting up communication via FTP ........................................................................................ 88

6.10

Establishment and termination of communications relations................................................. 91

Communication

8

Function Manual, 11/2019, A5E03735815-AH

Table of contents

6.11 6.11.1 6.11.2 6.11.3 6.11.4 6.11.5 6.11.6

Secure Open User Communication ........................................................................................92 Secure OUC of an S7-1500 CPU as TLS client to an external PLC (TLS server) .................92 Secure OUC of an S7-1500 CPU as TLS server to an external PLC (TLS client) .................95 Secure OUC between two S7-1500 CPUs .............................................................................97 Secure OUC via CP interface ...............................................................................................101 Secure OUC with Modbus TCP ............................................................................................106 Secure OUC via e-mail .........................................................................................................107

7 S7 communication ................................................................................................................................. 112

8 Point-to-point link ................................................................................................................................... 121

9 OPC UA communication ........................................................................................................................ 126

9.1 9.1.1 9.1.2 9.1.3 9.1.4 9.1.5 9.1.6 9.1.7

What you need to know about OPC UA ...............................................................................126 OPC UA and Industrie 4.0 ....................................................................................................126 General features of OPC UA ................................................................................................126 OPC UA for S7-1200/S7-1500 CPUs ...................................................................................130 Access to OPC UA applications ...........................................................................................131 Addressing nodes .................................................................................................................135 What you need to know about OPC UA clients ....................................................................139 Mapping of data types ..........................................................................................................142

9.2 9.2.1 9.2.2 9.2.3 9.2.4 9.2.5 9.2.6

Security at OPC UA ..............................................................................................................146 Security settings....................................................................................................................146 Certificates pursuant to ITU X.509........................................................................................147 Certificates with OPC UA......................................................................................................151 Creating self-signed certificates............................................................................................152 Generating PKI key pairs and certificates yourself...............................................................153 Secure transfer of messages................................................................................................156

9.3 9.3.1 9.3.1.1 9.3.1.2 9.3.1.3 9.3.2 9.3.2.1 9.3.2.2 9.3.2.3 9.3.2.4 9.3.2.5 9.3.2.6 9.3.2.7 9.3.3 9.3.3.1 9.3.3.2 9.3.3.3 9.3.3.4 9.3.3.5 9.3.3.6 9.3.3.7 9.3.3.8 9.3.3.9 9.3.3.10

Using the S7-1500 as an OPC UA server ............................................................................159 Interesting information about the OPC UA server of the S7-1500 CPUs .............................159 The OPC UA server of the S7-1500 CPUs...........................................................................159 End points of the OPC UA server .........................................................................................161 Runtime behavior of the OPC UA server..............................................................................163 Configuring access to PLC tags ...........................................................................................165 Managing write and read rights ............................................................................................165 Managing write and read rights for a complete DB ..............................................................167 Coordinating write and read rights for CPU tags ..................................................................169 Consistency of CPU tags......................................................................................................171 Accessing OPC UA server data............................................................................................173 MinimumSamplingInterval attribute ......................................................................................174 Export OPC UA XML file.......................................................................................................174 Configuring the OPC UA server............................................................................................175 Enabling the OPC UA server ................................................................................................175 Access to the OPC UA server ..............................................................................................177 General settings of the OPC UA server................................................................................179 Settings of the server for subscriptions.................................................................................181 Handling client and server certificates ..................................................................................183 Generating server certificates with STEP 7 ..........................................................................190 User authentication ...............................................................................................................193 Users and roles with OPC UA function rights.......................................................................194 Diagnostic settings of the server...........................................................................................197 License for OPC UA..............................................................................................................198

Communication

Function Manual, 11/2019, A5E03735815-AH

9

Table of contents

9.3.4 9.3.4.1 9.3.4.2 9.3.4.3 9.3.4.4 9.3.4.5 9.3.4.6 9.3.4.7 9.3.4.8 9.3.5 9.3.5.1 9.3.5.2 9.3.6 9.3.6.1 9.3.6.2 9.3.6.3 9.3.6.4 9.3.6.5 9.3.6.6 9.3.6.7

OPC UA server interface configuration................................................................................ 199 What is a server interface? .................................................................................................. 199 Creating a user-defined server interface ............................................................................. 201 Using OPC UA companion specifications............................................................................ 206 Rules for OPC UA XML files ................................................................................................ 213 Data types for companion specifications ............................................................................. 214 Creating a server interface for companion specification...................................................... 218 Creating a server interface for reference namespace ......................................................... 223 Notes on configuration limits when using server interfaces................................................. 226 Providing methods on the OPC UA server .......................................................................... 227 Useful information about server methods ............................................................................ 227 Boundary conditions for using server methods.................................................................... 231 Using diagnostics options .................................................................................................... 233 Diagnostics of the OPC UA server....................................................................................... 233 Server state transition diagnostics ....................................................................................... 235 Session state transition diagnostics..................................................................................... 236 Check for security events..................................................................................................... 237 Request of a remote client failed ......................................................................................... 238 Subscription diagnostics ...................................................................................................... 240 Summarizing diagnostics ..................................................................................................... 243

9.4 9.4.1 9.4.2 9.4.3 9.4.4 9.4.5 9.4.6 9.4.7 9.4.8 9.4.9 9.4.9.1 9.4.9.2 9.4.9.3 9.4.9.4

Using the S7-1500 CPU as an OPC UA client .................................................................... 245 Overview and requirements ................................................................................................. 245 Useful information about the client instructions ................................................................... 246 Number of client instructions that can be used simultaneously ........................................... 248 Example configuration for OPC UA ..................................................................................... 249 Creating client interfaces ..................................................................................................... 251 Determine server interface online ........................................................................................ 260 Using multilingual texts ........................................................................................................ 264 Rules for the access to structures........................................................................................ 266 Using connection parameter assignment ............................................................................ 268 Creating and configuring connections ................................................................................. 268 Handling of the client certificates of the S7-1500 CPU........................................................ 272 User authentication .............................................................................................................. 275 Using a configured connection............................................................................................. 276

9.5 9.5.1 9.5.2 9.5.3

Tips and recommendations.................................................................................................. 284 Rules for subscriptions......................................................................................................... 284 Rules for the user program .................................................................................................. 285 Master copies for OPC UA communication ......................................................................... 286

10 Routing .................................................................................................................................................. 288

10.1

Overview of the routing mechanisms of S7-1500 CPUs ..................................................... 288

10.2

S7 routing............................................................................................................................. 289

10.3

IP forwarding ........................................................................................................................ 294

10.4

Data record routing .............................................................................................................. 301

10.5

Virtual interface for IP-based applications ........................................................................... 303

Communication

10

Function Manual, 11/2019, A5E03735815-AH

Table of contents

11 Connection resources ............................................................................................................................ 307

11.1

Connection resources of a station ........................................................................................307

11.2

Allocation of connection resources .......................................................................................311

11.3

Display of the connection resources.....................................................................................316

12 Diagnostics and fault correction ............................................................................................................. 320

12.1

Connection diagnostics.........................................................................................................320

12.2

Emergency address ..............................................................................................................323

13 Communication with the redundant system S7-1500R/H....................................................................... 324

13.1

System IP addresses ............................................................................................................325

13.2

Response to Snycup.............................................................................................................331

13.3

Response to primary-backup switchover..............................................................................331

13.4

Connection resources of the redundant system S7-1500R/H ..............................................332

13.5 13.5.1

HMI communication with the redundant system S7-1500R/H..............................................334 HMI connection via the system IP address ..........................................................................334

13.6 13.6.1

Open User Communication with the redundant system S7-1500R/H ..................................336 Setting up the connection of the Open User Communication with the redundant S71500R/H system ...................................................................................................................336

14 Industrial Ethernet Security with CP 1543-1 .......................................................................................... 342

14.1

Firewall .................................................................................................................................. 343

14.2

Logging .................................................................................................................................344

14.3

NTP client .............................................................................................................................345

14.4

SNMP .................................................................................................................................... 345

14.5

VPN ....................................................................................................................................... 346

Glossary ................................................................................................................................................ 347

Index...................................................................................................................................................... 359

Communication

Function Manual, 11/2019, A5E03735815-AH

11

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Communication

12

Function Manual, 11/2019, A5E03735815-AH

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system - separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

Communication

Function Manual, 11/2019, A5E03735815-AH

13

Product overview

2

CPUs, communications modules and processors, and PC systems of the S7-1500, ET 200MPET 200SPET 200pro and ET 200AL systems provide you with interfaces for communication via PROFINET, PROFIBUS and point-to-point connections.
CPUs, communications modules and communications processors
PROFINET and PROFIBUS DP interfaces are integrated in the S7-1500 CPUs. The CPU 1516-3 PN/DP for example has two PROFINET interfaces and one PROFIBUS DP interface. Other PROFINET and PROFIBUS DP interfaces are available by using communications modules (CM) and communications processors (CP).

 PROFINET interface (X2) with 1 port  PROFINET interface (X1) with 2-port switch  PROFIBUS DP interface (X3)  PROFINET interface (X1) with 3-port switch
Figure 2-1 Interfaces of the CPU 1516-3 PN/DP and CPU 1512SP-1 PN

Communication

14

Function Manual, 11/2019, A5E03735815-AH

Product overview Interfaces of communications modules
Interfaces of communications modules (CMs) extend the interfaces of CPUs (for example, the communication module CM 1542-5 adds a PROFIBUS interface to S7-1500 automation system).
 PROFIBUS DP interface
Figure 2-2 PROFIBUS DP interface of the CM 1542-5 and CM DP (to an ET 200SP CPU)

Communication

Function Manual, 11/2019, A5E03735815-AH

15

Product overview
Interfaces of communications processors Interfaces of communication processors (CP) offer additional functionality to what is provided by the integrated interfaces of the CPUs. CPs allow special applications, for example the CP 1543-1 provides Industrial Ethernet security functions for protecting Industrial Ethernet networks via its Industrial Ethernet interface.

 Industrial Ethernet interface
Figure 2-3 Industrial Ethernet interface of the CP 1543-1

Communication

16

Function Manual, 11/2019, A5E03735815-AH

Product overview
Interfaces of communications modules for point-to-point connections The communication modules for point-to-point connections provide communication via their RS 232-, RS 422- and RS 485 interfaces, for example, Freeport or Modbus communication.

 Interface for point-to-point connections
Figure 2-4 Example of interface for point-to-point connection at the CM PtP RS422/485 BA

Communication

Function Manual, 11/2019, A5E03735815-AH

17

Product overview
Interfaces of interface modules PROFINET and PROFIBUS DP interfaces of the interface modules (IM) in ET 200MP, ET 200SP and ET 200AL are used to connect the distributed I/O ET 200MP, ET 200SP and ET 200AL to PROFINET or PROFIBUS of the higher-level IO controller or DP master.

 PROFINET interface with 2-port switch
Figure 2-5 PROFINET interfaces IM 155-5 PN ST (ET 200MP), IM 155-6 PN ST (ET 200SP), and IM 157-1 PN (ET 200AL)
Communications services The communications services described below use the interfaces and communication mechanisms provided by the system via CPUs, communication modules and processors.

Communication

18

Function Manual, 11/2019, A5E03735815-AH

Communications services

3

3.1

Overview of communication options

Overview of communications options The following communications options are available for your automation task.

Table 3- 1 Communications options Communications options

Functionality

PG communication2 HMI communication2 Open communication via TCP/IP2
Open communication using ISO-onTCP2
Open communication via UDP2

On commissioning, testing, diagnostics On operator control and monitoring Data exchange via PROFINET/Industrial Ethernet with TCP/IP Instructions: · TSEND_C/TRCV_C · TSEND/TRCV · TCON · T_DISCON
Data exchange via PROFINET/Industrial Ethernet with ISO-on-TCP Instructions: · TSEND_C/TRCV_C · TSEND/TRCV · TCON · T_DISCON
Data exchange via PROFINET/Industrial Ethernet with UDP Instructions: · TSEND_C/TRCV_C · TUSEND/TURCV · TCON · T_DISCON

Via interface:

PN/IE1 DP serial

X

X

-

X

X

-

X

-

-

X

-

-

X

-

-

Communication

Function Manual, 11/2019, A5E03735815-AH

19

Communications services 3.1 Overview of communication options

Communications options

Functionality

Open communication via ISO (only CPs with PROFINET/Industrial Ethernet interface)

Data exchange via PROFINET/Industrial Ethernet with the ISO protocol
Instructions:

· TSEND_C/TRCV_C · TSEND/TRCV · TCON · T_DISCON

Open communication with FDL (only CM 1542-5 as of firmware V2.0)

Data exchange via PROFIBUS with the FDL protocol
Instructions:

· TSEND_C/TRCV_C · TSEND/TRCV · TUSEND/TURCV · TCON · T_DISCON

OPC UA server3 Communication via Modbus TCP

Data exchange with OPC UA clients
Data exchange via PROFINET with Modbus TCP protocol Instructions:

· MB_CLIENT · MB_SERVER

E-mail

Sending process alarms via e-mail Instruction:

· TMAIL_C

FTP (only CPs with

File management and file access via FTP (File

PROFINET/Industrial Ethernet interface) Transfer Protocol); CP can be FTP client and FTP

server

Instruction:

· FTP_CMD

Fetch/Write (only CPs with

Server services via TCP/IP, ISO-on-TCP and ISO

PROFINET/Industrial Ethernet interface) Via special instructions for Fetch/Write

S7 communication

Data exchange via PROFINET/PROFIBUS with the S7 protocol.

Instructions:

· PUT/GET · BSEND/BRCV · USEND/URCV

Serial point-to-point connection

Data exchange via point-to-point with Freeport, 3964(R), USS or Modbus protocol
Via special instructions for PtP, USS or Modbus RTU

Via interface:

PN/IE1 DP serial

X

-

-

-

X

-

X

-

-

X

-

-

X

-

-

X

-

-

X

-

-

X

X

-

-

-

X

Communication

20

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.1 Overview of communication options

Communications options
Web server SNMP (Simple Network Management Protocol) Time-of-day synchronization

Functionality
Data exchange via HTTP(S), for example for diagnostics For monitoring and error recognition of IP networks, possibly parameterization of the IP network components via standard SNMP protocol Via PN/IE interface: CPU is NTP client (Network Time Protocol) Via DP interface: CPU/CM/CP is time-of-day master or time slave

Via interface:

PN/IE1 DP serial

X

-

-

X

-

-

X

-

-

-

X

-

1 IE - Industrial Ethernet 2 Observe the special characteristics for S7-1500R/H 3 Only via internal PROFINET interface of the CPU and via Ethernet interface CP 1543 1 with activated "Access to PLC
via communication module" function.

Information on S7-1500R/H
You can find information on the communication possibilities with the redundant system S7-1500R/H in the section Communication with the redundant system S7-1500R/H (Page 324).

Additional information
 Application example: CPU-CPU communication with SIMATIC controllers (compendium) You can find the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/20982954).
 This FAQ (https://support.industry.siemens.com/cs/ww/en/view/102420020) describes how to configure fetch/write communication via CP1543-1 with S7-1500.
 Additional information about the Fetch/Write services is available in the STEP 7 online help.
 You can find additional information on the PtP link in the function manual CM PtP Configurations for Point-to-Point Connections (http://support.automation.siemens.com/WW/view/en/59057093).
 You will find the description of the web server functionality in the function manual Web server (http://support.automation.siemens.com/WW/view/en/59193560).
 You will find information about the standard protocol SNMP on the Service & Support pages on the Internet (http://support.automation.siemens.com/WW/view/en/15166742).
 You will find information about time-of-day synchronization in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/86535497).

Communication

Function Manual, 11/2019, A5E03735815-AH

21

Communications services 3.2 Communications protocols and port numbers used for Ethernet communication

3.2

Communications protocols and port numbers used for Ethernet

communication

This section provides an overview of the supported protocols and port numbers used for communication over PN/IE interfaces. For each protocol the address parameters, the respective communications layer as well as the communications role and the communications direction are specified.

This information makes it possible to match the security measures for protection of the automation system to the used protocols (for example firewall). Because the security measures are limited to Ethernet or PROFINET networks, the tables do not include PROFIBUS protocols.

Note Port numbers used
The specified port numbers are the standard port numbers used by the S7-1500 CPU. Many communication protocols and implementations enable you to use other port numbers.

The following tables show the different layers and protocols used in the S7-1500 CPUs and S7 1500 communication modules.
The following table shows the protocols supported by the S7-1500 CPUs, ET 200SP CPUs and the CPUs 1513/1516pro 2 PN. The S7-1500 software controllers also support the protocols listed in the following table for the Ethernet interfaces that are assigned to the software controller.

Table 3- 2 Layers and protocols of the S7-1500 CPUs and software controllers (via PROFINET interface of the CPU)

Protocol

Port number

(2) Link layer

Function

(4) Transport layer

PROFINET protocols

DCP
Discovery and basic configuration protocol

Not relevant (2) Ethertype 0x8892 (PROFINET)

Accessible devices
PROFINET Discovery and configuration

LLDP
Link Layer Discovery protocol

Not relevant (2) Ethertype 0x88CC (LLDP)

PROFINET Link Layer Discovery protocol

MRP

Not relevant (2) Ethertype

Media Redundancy Protocol

0x88E3 (IEC 62493-2-2010)

PROFINET medium redundancy

Description
DCP is used by PROFINET to discover PROFINET devices and provide basic settings.
LLDP is used by PROFINET to discover and manage neighbor relationships between PROFINET devices. LLDP uses the special multicast MAC address: 01-80-C2-00-00-0E MRP provides control of redundant transmission paths by means of a ring topology. MRP uses standard-compliant Multicast MAC addresses.

Communication

22

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.2 Communications protocols and port numbers used for Ethernet communication

Protocol
PTCP Precision Transparent Clock Protocol

Port number

(2) Link layer

Function

(4) Transport layer

Not relevant (2) Ethertype 0x8892 (PROFINET)

PROFINET
send clock and time synchronization, based on IEEE 1588

PROFINET IO Not relevant (2) Ethertype

data

0x8892

(PROFINET)

PROFINET Cyclic IO data transfer

PROFINET Context Manager

34964

(4) UDP

PROFINET connection less RPC

Connection-oriented communications protocols

SMTP

25

(4) TCP

Simple mail transfer protocol

SMTPS

465

(SMTP over

TLS)

(4) TCP

SMTP with

25

STARTTLS 587

(4) TCP

HTTP

80

Hypertext transfer protocol

ISO-on-TCP 102 (according to RFC 1006)

(4) TCP (4) TCP

Simple mail transfer protocol
Secure SMTP
Simple mail transfer protocol with the SMTP command "STARTTLS" Hypertext transfer protocol
ISO-on-TCP protocol

NTP
Network time protocol
SNMP
Simple network management protocol
HTTPS
Secure Hypertext transfer protocol

123 161 162 (trap)
443

(4) UDP (4) UDP
(4) TCP

Network time protocol
Simple network management protocol
Secure Hypertext transfer protocol

Description
PTCP provides a time delay measurement between RJ45 ports and thus send clock synchronization and time synchronization. PTCP uses standard-compliant Multicast MAC addresses. The PROFINET IO frames are used to transmit IO data cyclically between PROFINET IO controller and IO devices via Ethernet. The PROFINET Context Manager provides an endpoint mapper in order to establish an application relation (PROFINET AR).
SMTP is used for sending e-mails.
SMTP is used for sending e-mails over secure connections.
SMTP with STARTTLS is used for sending e-mails over secure connections.
HTTP is used for communication with the CPU-internal web server.
ISO-on-TCP (according to RFC 1006) is used for message-oriented data exchange with remote CPU or software controller. S7 communication with ES, HMI, OPC server, etc. NTP is used for synchronization of the CPU system time with the time of an NTP server.
SNMP is used for reading and setting of network management data (SNMP managed Objects) by the SNMP Manager.
HTTPS is used for communication with the CPU-internal web server via Secure Socket Layer (SSL).

Communication

Function Manual, 11/2019, A5E03735815-AH

23

Communications services 3.2 Communications protocols and port numbers used for Ethernet communication

Protocol
Modbus TCP Modbus Transmission Control Protocol OPC UA Open Platform Communications Unified Architecture OUC1 Open User Communication and Secure OUC
IGMPv2 Internet Group Management Protocol Reserved

Port number
502

(2) Link layer

Function

(4) Transport layer

(4) TCP

Modbus/TCP protocol

Description
Modbus/TCP is used by MB_CLIENT/MB_SERVER instructions in the user program.

4840

(4) TCP

Based on the TCP/IP proto- Communication standard ranging from

col

the enterprise level to the field level.

1 ... 1999 (4) TCP
can be used (4) UDP to limited extent2
2000 ... 5000
Recommended
5001 ... 49151
can be used to limited extent2
Not relevant (3) Network layer

Open User Communication
(TCP/UDP)
Secure Open User Communication (TLS)

OUC instructions provide connection establishment, connection termination and data transfer based on the socket layer.

Internet Group Management Network protocol for the organization of

Protocol

multicast groups.

49152 ... (4) TCP

-

65535

(4) UDP

Dynamic port area used for active connection end point if the application does not determine the local port number.

1 Note: The open communication provides direct access to the UDP/TCP for the user. The user is responsible for observing the port restrictions/definitions of the IANA (Internet Assigned Numbers Authority).
2 Do not use ports for OUC, which are already used by other protocols.

Communication

24

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.2 Communications protocols and port numbers used for Ethernet communication

The following table shows the protocols that are supported by the S7-1500 software controller via the Ethernet interfaces assigned to Windows.

Table 3- 3 Layers and protocols of the S7-1500 Software Controller (via Ethernet interface on the Windows side)

Protocol

Port number

(2) Link layer (4) Transport layer

PROFINET protocols

DCP
Discovery and basic configuration protocol

Not relevant (2) Ethertype 0x8892 (PROFINET)

Connection-oriented communications protocols

SMTP

25

(4) TCP

Simple mail transfer protocol

HTTP

Adjustable 1 (4) TCP

Hypertext transfer protocol

ISO-on-TCP (according to RFC 1006)
OUC2
Open User Communication
and
Secure OUC

102

(4) TCP

1 ... 1999 (4) TCP
can be used (4) UDP to limited extent3, 4
2000 ... 5000
recommended4
5001 ... 49151
can be used to limited extent3, 4

Function
Accessible devices PROFINET Discovery and configuration
Simple mail transfer protocol
Hypertext transfer protocol
ISO-on-TCP protocol
Open User Communication (TCP/UDP) Secure Open User Communication (TLS)

Description
DCP is used by PROFINET to discover PROFINET devices and provide basic settings.
SMTP is used for sending e-mails.
HTTP is used for communication with CPUinternal web server. You can change the port number to avoid conflict with other web servers on Windows. If you want to use web server access, you must activate the port in the Windows Firewall. ISO-on-TCP (according to RFC 1006) for S7 communication with PG/PC or HMI.
OUC instructions provide connection establishment, connection termination and data transfer based on the socket layer. If you want to use OUC, you must activate the ports in the Windows Firewall.

Communication

Function Manual, 11/2019, A5E03735815-AH

25

Communications services 3.2 Communications protocols and port numbers used for Ethernet communication

Protocol
IGMPv2 Internet Group Management Protocol Reserved

Port number

(2) Link layer (4) Transport layer

Not relevant (3) Network layer

49152 ... 65535

(4) TCP (4) UDP

Function
Internet Group Management Protocol
-

Description
Network protocol for the organization of multicast groups.
Dynamic port range that is used for the active connection end point, if the application does not determine the local port number. If you wish to use this communication, you must activate the ports in the Windows Firewall.

1 Default setting for Windows assigned interfaces: 81 2 Note: The open user communication provides direct access to the UDP/TCP for the user. The user is responsible for
observing the port restrictions/definitions of the IANA (Internet Assigned Numbers Authority). 3 Do not use ports for OUC, which are already used by other protocols. 4 Do not use ports for OUC, which are already used by other Windows applications.

Table 3- 4

The following table shows the protocols that are supported in addition to those listed in the tables for the S7-1500 communications modules (e.g. CP 1543-1).
Layers and protocols of S7-1500 communications modules

Protocol

Port number

(2) Link layer (4) Transport layer

PROFINET/Industrial Ethernet protocols

Connection-oriented communications protocols

FTP

20 (data)

(4) TCP

File transfer protocol

21 (control)

secureFTP

20 (data)

(4) TCP

File transfer protocol

21 (control)

DHCP

68

(4) UDP

Dynamic Host Configuration Protocol

Secure NTPv3 123

(4) UDP

Network time protocol

SNMP

161

(4) UDP

Simple network management protocol

162 (trap)

Function
File transfer protocol
File transfer protocol
Dynamic Host Configuration Protocol
Network time protocol
Simple network management protocol

Description
FTP is used for the transmission of files (only in connection with CP 1543-1).
SecureFTP is used for the transmission of files by means of a TSL connection (only in connection with CP 1543-1). DHCP is used to retrieve the IP Address Suite from a DHCP server when starting up the IE interface.
Secure NTP is used to synchronize the CP 1543-1 internal system clock with an NTP server. SNMPv3 permits the CP 1543-1 to read network management data (MIBs) from SNMPv3 agent with authentication.

Special consideration S7-1500 MFP: Port 111: The S7-1500 MFP uses Port 111 to the NFS service for internal communication.

Communication

26

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.3 Overview of connection resources

3.3

Overview of connection resources

Connection resources Some communications services require connections. Connections allocate resources on the CPUs, CPs and CMs involved (for example memory areas in the CPU operating system). In most cases one resource per CPU/CP/CM is allocated for a connection. In HMI communication, up to 3 connection resources are required per HMI connection. The connection resources available depend on the CPU being used, the CPs and CMs and must not exceed a defined high limit for the automation system.
Available connection resources in a station The maximum number of resources of a station is determined by the CPU. Each CPU has reserved connection resources for PG, HMI and web server communication. In addition, there are available resources for other communication services, e.g. for SNMP, e-mail connections, HMI and S7 communication as well as for open communication.
When are connection resources allocated? The time for allocation of connection resources depends on how the connection is set up, automatic, programmed or configured (see section Setting up a connection (Page 27)).
Additional information You will find more detailed information on the allocation of connection resources and the display of connection resources in STEP 7 in the section Connection resources (Page 307).

3.4

Setting up a connection

Automatic connection
STEP 7 sets up a connection automatically (for example PG or HMI connection) if you have connected the PG/PC interface to an interface of the CPU physically and have made the interface assignment in STEP 7 in the "Go online" dialog.

Communication

Function Manual, 11/2019, A5E03735815-AH

27

Communications services 3.4 Setting up a connection
Setting up a programmed connection You set up the programmed connection in the program editor of STEP 7 in the context of a CPU by assigning instructions for communication, for example TSEND_C. When specifying the connection parameters (in the Inspector window, in the properties of the instruction), you are supported by the easy-to-use user interface.

Figure 3-1 Programmed setup
28

Communication Function Manual, 11/2019, A5E03735815-AH

Communications services 3.4 Setting up a connection
Setting up a configured connection You set up the configured connection in the network view of the Devices & networks editor of STEP 7 in the context of a CPU or a software controller.

Figure 3-2 Configured setup

Communication

Function Manual, 11/2019, A5E03735815-AH

29

Communications services 3.4 Setting up a connection

Effects on the connection resources of the CPU
You can often choose between a configured or a programmed connection. Programmed connection setup allows connection resources to be released following data transfer. Like routed connections, programmed connections are not guaranteed, meaning that they are only established when resources are available. With configured connection setup, the resource is available after download of the configuration until the configuration changes again. Corresponding resources are therefore reserved for connection establishment via configured connections. The "Connection resources" table in the Inspector window of the CPU displays an overview of connection resources already used and those still available.

How do I set up a connection?

Table 3- 5 Setting up the connection

Connection
Programming device connection
HMI connection
Web communication
OPC UA server communication
OPC UA client communication
Open communication via TCP/IP connection
Open communication via ISO-onTCP connection
Open communication via UDP connection
Open communication via ISO connection
Open communication via FDL connection
Communication via Modbus TCP connection
E-mail connection
FTP connection
S7 connection*

Automatically X X X X -
-
-
-
-
-
-

Programmed setup X X

Configured setup X X

X

X

X

X

X

X

X

X

X

-

X

-

X

-

-

X

* Note that for an S7-1500 CPU you must enable the use of PUT/GET communication in the properties of the CPU. You can find more information on this topic in the STEP 7 online help.

Additional information
You will find further information on the allocation of connection resources and the display of connection resources in STEP 7 in the section Connection resources (Page 307).

Communication

30

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.5 Data consistency

3.5

Data consistency

Definition

Data consistency is important for data transfer and you need to take this into account when configuring the communication task. Otherwise, malfunctions may occur.
A data area which cannot be modified by concurrent processes is called a consistent data area. This means that a data area which belongs together and which is larger than the maximum size of the consistent data area can consist in part of new and of old data at the same time.
An inconsistency can occur when an instruction for communication is interrupted, for example by a hardware interrupt OB with higher priority. This interrupts the transfer of the data area. If the user program in this OB now changes the data that has not yet been processed by the communication instruction, the transferred data originates from different times:
The following figure shows a data area that is smaller than the maximum size of the consistent data area. In this case, when transferring the data area, it is ensured that there is no interruption by the user program during data access so that the data is not changed.

 The source data area is smaller than the maximum size of the consistent data area (). The
instruction transfers the data together to the destination data area.
 Maximum size of the consistent data area
Figure 3-3 Consistent transfer of data

Communication

Function Manual, 11/2019, A5E03735815-AH

31

Communications services 3.5 Data consistency
The following figure shows a data area that is larger than the maximum size of the consistent data area. In this case, the data can be changed during an interruption of the data transfer. An interruption also occurs if, for example, the data area needs to be transferred in several parts. If the data is changed during the interruption, the transferred data originates from different times.

 The source data area is larger than the maximum size of the consistent data area (). At time
T1, the instruction only transfers as much data from the source data area into the destination data area as fits in the consistent data area.
 At time T2, the instruction transfers the rest of the source data area to the destination data
area. After the transfer, data from different points in time exist in the destination data area. If the data in the source data area has changed in the meantime, an inconsistency may result.
 Maximum size of the consistent data area
Figure 3-4 Transfer of data larger than the maximum consistency area
Example of an inconsistency
The figure below shows an example of changing data during the transfer. The destination data area contains data from different points in time.

 Maximum size of the consistent data area
Figure 3-5 Example: Changing data during the transfer

Communication

32

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.5 Data consistency
System-specific maximum data consistency for S7-1500: No inconsistency occurs if the system-specific maximum size of the consistent data is kept to. With an S7-1500, communication data is copied consistently into or out of the user memory in blocks of up to 512 bytes during the program cycle. Data consistency is not ensured for larger data areas. Where defined data consistency is required, the length of communication data in the user program of the CPU must not exceed 512 bytes. You can then access these data areas consistently, for example from an HMI device by reading/writing tags.
If more data than the system-specific maximum size needs to be transferred consistently, you yourself must ensure the data consistency with suitable measures in the user program.
Ensuring data consistency Use of instructions for access to common data:
If the user program contains instructions for communication that access common data, for example TSEND/TRCV, you can coordinate access to this data area yourself, for example using the "DONE" parameter. The data consistency of the data areas that are transferred with an instruction for communication can therefore be ensured in the user program.
Note Measures in the user program
To achieve data consistency, you can copy transferred data to a separate data area (for example, global data block). While the user program continues to work with the original data, you can transfer the data saved in the separate data area consistently with the communication instruction.
For the copying, use uninterruptible instructions such as UMOVE_BLK or UFILL_BLK. These instructions ensure data consistency up to 16 KB.
Use of PUT/GET instructions or Write/Read via HMI communication:
In S7 communication with the PUT/GET instructions or Write/Read via HMI communication, you need to take into account the size of the consistent data areas during programming or configuration. In the user program of an S7-1500 as server, there is no instruction available that can coordinate the data transfer in the user program. The data exchanged using PUT/GET instructions updates the S7-1500 while the user program is running. There is no point in time within the processing of the cyclic user program at which the data is exchanged consistently. The length of the data area to be transferred should be smaller than 512 bytes.
Additional information  You will also find the maximum amount of consistent data in the device manuals of the communications modules in the Technical Specifications.
 You will find further information on data consistency in the description of the instructions in the STEP 7 online help.

Communication

Function Manual, 11/2019, A5E03735815-AH

33

Communications services 3.6 Secure Communication

3.6

Secure Communication

3.6.1

Basics of Secure Communication
For STEP 7 (TIA Portal) as of V14 and for S7-1500 CPUs as of firmware V2.0, the options for secure communication have been broadened considerably.

Introduction

The attribute "secure" is used for the identification of communication mechanisms that are based on a Public Key Infrastructure (PKI) (for example RFC 5280 for Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List Profile). A Public Key Infrastructure (PKI) is a system that can issue, distribute and check digital certificates. The digital certificates issued are used in the PKI to secure computer-based communication. If a PKI uses asymmetric key cryptography, the messages in a network can be digitally signed and encrypted.
Components that you have configured in STEP 7 for secure communication use an asymmetric key encryption scheme with a Public Key and Private Key. TLS (Transport Layer Security) is used as the encryption protocol. TLS is the successor for the SSL (Secure Sockets Layer) protocol.

Objectives of secure communication
Secure communication is used to achieve the following objectives:
 Confidentiality i.e. the data are secret / cannot by read by eavesdroppers.
 Integrity i.e. the message that reaches the recipient is the same message, unchanged, that the sender sent. The message has not been altered on the way.
 End point authentication i.e. the end point communication partner is exactly who it claims to be and the party who is to be reached. The identity of the partner has been checked.
These objectives were in the past primarily relevant to IT and networked computers. Now, industrial machinery and control systems with sensitive data are at equally high risk, as they are also networked, and consequently pose strict security requirements for data exchange.
Protection of the automation cell by means of the cell protection concept through firewall, or via connection through VPN, for example with the security module, was common in the past and remains so.
However, it is becoming increasingly necessary to also transfer data to external computers in encrypted form via Intranet or public networks.

Communication

34

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Common principles of secure communication
Independent of the context, secure communication is based on the concept of the Public Key Infrastructure (PKI) and contains the following components:
 An asymmetric encryption scheme that allows:
­ Encryption or decryption of messages using public or private keys.
­ The verification of signatures in messages and certificates.
The messages/certificates are signed by the sender/certificate subject with their private key. The recipient/verifier checks the signature with the public key of the sender/certificate subject.
 Transport and storage of the public key using X.509 certificates:
­ X.509 certificates are digitally signed data that allow public key authentication in terms of the bound identity.
­ X.509 certificates can contain information that describes in more detail or restricts use of the public key. For example the date as of which a public key in a certificate is valid and when it expires.
­ X.509 certificates contain information about the issuer of the certificate in secure form.
The following paragraphs give an overview of these basic concepts, which are required for managing certificates in STEP 7 (TIA Portal), for example, and for programming communication instructions for secure Open User Communication (sOUC).
Secure communication with STEP 7
STEP 7 as of V14 provides the required PKI for the configuration and operation of secure communication.
Examples:
 The Hypertext Transfer Protokoll (HTTP) turns into Hypertext Transfer Protokoll Secure (HTTPS) with the help of the TLS (Transport Layer Security) protocol. Since HTTPS is a combination of HTTP and TLS, it is called "HTTP over TLS" in the corresponding RFC. You can see in the browser that HTTPS is being used; this is indicated by the URL "https://" instead of "http://" in the address bar of the browser. Most browsers highlight such secure connections.
 Open User Communication turns into secure Open User Communication. The underlying protocol is also TLS.
 E-mail providers also offer access over the "Secure SMTP over TLS" protocol to increase the security of e-mail communication.

Communication

Function Manual, 11/2019, A5E03735815-AH

35

Communications services 3.6 Secure Communication
The figure below shows the TLS protocol in the context of communication layers.

Figure 3-6 TLS protocol in the context of communication layers
Secure communication with OPC UA
An OPC UA server is implemented in S7-1500 CPUs as of firmware V2.0. OPC UA Security also covers authentication, encryption and data integrity with digital X.509 certificates and also uses a Public Key Infrastructure (PKI). Depending on the requirements placed by the application, you can select different security levels for the end point security. You will find the description of the OPC UA server functionality in the section Using the S7-1500 as an OPC UA server (Page 159).

3.6.2

Confidentiality through encryption
Message encryption is an important element of data security. When encrypted messages are intercepted by third parties during communication, these potential eavesdroppers cannot access the information they contain.
There is a wide range of mathematical processes (algorithms) for encrypting messages.
All algorithms process a "key" parameter to encrypt and decrypt messages.
 Algorithm + key + message => encrypted message
 Encrypted message + key + algorithm => (decrypted) message

Communication

36

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Symmetric encryption The central aspect of symmetric encryption is that both communication partners use the same key for message encryption and decryption, as shown in the figure below. Bob uses the same key for encryption as Alice uses for decryption. In general, we also say that the two sides share the secret key with which they encrypt or decrypt a message as a secret.
 Bob encrypts his message with the symmetric key  Alice decrypts the encrypted message with the symmetric key
Figure 3-7 Symmetric encryption
The process can be compared to a briefcase to which the sender and recipient have the same key, which both locks and opens the case.  Advantage: Symmetric encryption algorithms (such as AES, Advanced Encryption
Algorithm) are fast.  Disadvantages: How can the key be sent to a recipient without getting into the wrong
hands? This is a key distribution problem. If enough messages are intercepted, the key can also be worked out and must therefore be changed regularly. If there are a large number of communication partners, there is also a large number of keys to distribute.

Communication

Function Manual, 11/2019, A5E03735815-AH

37

Communications services 3.6 Secure Communication
Asymmetric encryption
Asymmetric encryption works with a pair of keys consisting of one public key and one private key. Used with a PKI, it is also known as Public Key cryptography or simply PKI cryptography. A communication partner, Alice in the figure below, has a private key and a public key. The public key is provided to the public, in other words any potential communication partner. Anyone with the public key can encrypt messages for Alice. In the figure below, this is Bob.
Alice's private key, which she must not disclose, is used by Alice to decrypt an encrypted message addressed to her.

 Alice provides Bob with her public key. No precautionary measures are required to this pur-
pose: Anyone can use the public key for messages to Alice if they are sure that it is actually Alice's public key.
 Bob encrypts his message with Alice's public key.  Alice decrypts the encrypted message from Bob with her private key. As only Alice has the
private key and never discloses it, only she can decrypt the message. With her private key, she can decrypt any message encrypted with her public key - not only messages from Bob.
Figure 3-8 Asymmetric encryption
The system can be compared to a mailbox into which anyone can put a message, but from which only the person with the key can remove messages.
 Advantages: A message encrypted with a public key can only be decrypted by the owner of the private key. As another (private) key is required for decryption, it is also much harder to work out the decryption key on the basis of large numbers of encrypted messages. This means that the public key does not have to be kept strictly confidential, unlike with symmetric keys.
Another advantage is easier distribution of public keys. No specially secured channel is required in asymmetric cryptography to transfer the public key from the recipient to the sender encrypting the messages. Less work is thus required in managing the keys than would be the case in symmetric encryption procedures.
 Disadvantages: Complex algorithm (e.g. RSA, named after the three mathematicians Rivest, Shamir and Adleman), and therefore poorer performance than with symmetric encryption.

Communication

38

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Encryption processes in practice
In practice, for example with a CPU Web server and Secure Open User Communication, the TLS protocol is used below the relevant application layer. Application layers are HTTP or SMTP, for example, as detailed above.
TLS (Transport Layer Security) uses a combination of asymmetric encryption and symmetric encryption (hybrid encryption) for secure data transfer, for example, over the Internet, and uses the following subprotocols:
 TLS Handshake Protocol, responsible for authentication of communication partners and negotiation of the algorithms and keys to be used for subsequent data transfer on the basis of asymmetric encryption.
 TLS Record Protocol, responsible for encryption of user data with symmetric encryption and data exchange.
Both asymmetric and symmetric encryption are considered secure encryption schemes there is basically no difference in security between the two procedures. The degree of security depends on parameters such as the selected key length.
Abuse of encryption
You cannot tell what identity is assigned to a public key from the bit string. A fraud could provide their public key and claim to be someone else. If a third party then uses this key thinking that they are addressing their required communication partner, confidential information could end up with the fraud. The fraud then uses their private key to decrypt the message that was not intended for them, and sensitive information falls into the wrong hands.
To prevent this type of abuse, the communication partners must be confident that they are dealing with the right communication partner. This trust is established by using digital certificates in a PKI.

3.6.3

Authenticity and integrity through signatures
Attacks from programs that intercept communication between the server and client and act as if they themselves were client or server, are called man-in-the-middle attacks. If the false identity of these programs is not detected, they can obtain important information about the S7 program, for example, or set values in the CPU and attack a machine or plants. Digital certificates are used to avoid such attacks.
Secure communication uses digital certificates that meet the X.509 standard of the International Telecommunication Union (ITU). This allows the identity of a program, a computer or an organization to be checked (authenticated).

Communication

Function Manual, 11/2019, A5E03735815-AH

39

Communications services 3.6 Secure Communication
How certificates establish trust
The main role of X.509 certificates is to bind an identity with the data of a certificate subject (for example, e-mail address or computer name) to the public key of the identity. Identities can be people, computers or machines.
Certificates are issued by certificate authorities (Certificate Authority, CA) or by the subject of a certificate itself. PKI systems specify how users can trust the certificate authorities and the certificates that they issue.
The certificate process:
1. Anyone wishing to own a certificate submits a certificate application to a registration authority linked to the certificate authority.
2. The certificate authority assesses the application and applicant on the basis of set criteria.
3. If the identity of the applicant can be clearly established, the certificate authority confirms that identity by issuing a signed certificate. The applicant has now become the certificate subject.
The figure below is a simplified overview of the process. It does not show how Alice can check the digital signature.

Figure 3-9 Signing of a certificate by a certificate authority
Self-signed certificates Self-signed certificates are certificates whose signature comes from the certificate subject and not from an independent certificate authority.
Examples:
 You can create and sign a certificate yourself, for example, to encrypt messages to a communication partner. In the example above, Bob (instead of Twent) could himself sign his certificate with his private key. Using Bob's public key, Alice can check that the signature and public key from Bob match. This procedure is sufficient for simple internal plant communication that is to be encrypted.
 A root certificate is, for example, a self-signed certificate, signed by the certificate authority (CA), that contains the public key of the certificate authority.

Communication

40

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Features of self-signed certificates The "CN" (Common Name of Subject) for the certificate subject and "Issuer" attributes of self-signed certificates are identical: You have signed your certificate yourself. The field "CA" (Certificate Autority) must be set to "False"; the self-signed certificate should not be used to sign other certificates. Self-signed certificates are not embedded in a PKI hierarchy.
Certificate content A certificate to the X.509 V3 standard, the standard that is also used by STEP 7 and the S7-1500 CPUs, consists primarily of the following elements:  Public key  Details of the certificate subject (i.e. the holder of the key), for example, the Common Name (CN) of Subject .  Attributes such as serial number and validity period  Digital signature from the certificate authority (CA) confirming that the information is correct. There are also extensions, for example:  Specification of what the public key may be used for (Key Usage), for example, signing or key encryption. When you create a new certificate with STEP 7, for example in the context of Secure Open User Communication, select the correct entry from the list of possible usages, e.g. "TLS".  Specification of a Subject Alternative Name (SAN), which is used in secure communication with Web servers (HTTP over TLS), for example, to ensure that the certificate in the address bar of the Web browser also belongs to the Web server specified in the URL.
How signatures are generated and verified Asymmetric key usage ensures that certificates can be verified: The example of the "MyCert" certificate illustrates the "Sign" and "Verify signature" processes. Generating a signature: 1. The issuer of the "MyCert" certificate generates a hash value from the certificate data using a specific hash function (for example SHA-1, Secure Hash Algorithm). The hash value is a bit string of a constant length. The advantage of the constant length of the hash value is that it always takes the same amount of time to sign. 2. Using the hash value generated in this way and the private key, the issuer of the certificate then generates a digital signature. The RSA signature scheme is often used. 3. The digital signature is saved in the certificate. The certificate is now signed.

Communication

Function Manual, 11/2019, A5E03735815-AH

41

Communications services 3.6 Secure Communication
Verifying a signature: 1. The authenticator of the "MyCert" certificate obtains the certificate of the issuer and thus
the public key. 2. A new hash value is formed from the certificate data with the same hash algorithm that
was used for signing (for example SHA-1). 3. This hash value is then compared with the hash value that is determined by means of the
public key of the certificate issuer and the signature algorithm for checking the signature. 4. If the signature check produces a positive result, both the identity of the certificate subject
as well as the integrity, meaning authenticity and genuineness, of the certificate content are proven. Anyone who has the public key, i.e. the certificate from the certificate authority, can check the signature and thus recognize that the certificate was actually signed by the certificate authority. The figure below shows how Alice uses the public key in the certificate from Twent (who represents the certificate authority, CA) to verify the signature on Bob's public key. All that is required for verification is therefore the availability of the certificate from the certificate authority at the moment of checking. The validation itself is executed automatically in the TLS session.
Figure 3-10 Verification of a certificate with the public key of the certificate of a certificate authority
Signing messages The method described above for signing and verifying also uses the TLS session for signing and verifying messages. If a hash value is generated by a message and this hash value is signed with the private key of the sender and attached to the original message, the recipient of the message is able to check the integrity of the message. The recipient decrypts the hash value with the public key of the sender, puts together the hash value from the message received and compares the two values. If the values are not the same, the message has been tampered with on the way.

Communication

42

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Chain of certificates to root certificate
The certificates of a PKI are often organized hierarchically: The top of the hierarchy is formed by root certificates. Root certificates are certificates that are not signed by a higherlevel certificate authority. The certificate subject and certificate issuer of root certificates are identical. Root certificates enjoy absolute trust. They form the "anchor" of trust and must therefore be known to the receiver as trusted certificates. They are stored in an area provided for trusted certificates.
Depending on the PKI, the function of root certificates is, for example, to sign certificates from lower-level certificate authorities, so-called intermediate certificates. This transfers the trust from the root certificate to the intermediate certificate. An intermediate certificate can sign a certificate just like a root certificate; both are therefore referred to as "CA certificates".
This hierarchy can be continued over multiple intermediate certificates until the end-entity certificate. The end-entity certificate is the certificate of the user who is to be identified.
The validation process runs through the hierarchy in the opposite direction: As described above, the certificate issuer is established and the signature checked with the issuer's public key, then the certificate of the higher-level certificate issuer is established along the entire chain of trust to the root certificate.
Conclusion: The chain of intermediate certificates to the root certificate, the certificate path, must be available in every device that is to validate an end-entity certificate of the communication partner, irrespective of the type of secure communication that you configure.

3.6.4

Managing certificates with STEP 7
STEP 7 as of version V14 together with the S7-1500-CPUs as of firmware version 2.0 support the Internet PKI (RFC 5280) in as far as an S7-1500-CPU is able to communicate with devices that also support the Internet PKI.
The usage of X.509 certificates for verifying certificates as described in the preceding sections, for example, is a result of this.
STEP 7 as of V14 uses a PKI similar to Internet PKI. Certificate Revocation Lists (CRLs), for example, are not supported.

Communication

Function Manual, 11/2019, A5E03735815-AH

43

Communications services 3.6 Secure Communication
Creating or assigning certificates You create certificates for various applications in STEP 7 for devices with security properties, such as an S7-1500 CPU as of firmware V2.0. The following areas in the Inspector window of the CPU allow the creation of new certificates or the selection of existing ones:  "Protection & Security > Certificate manager" - for the generation and assignment of all types of certificates. TLS certificates for Secure Open User Communication are preset for the generation of certificates.  "Web server > Security" - for the generation and assignment of Web server certificates.  "OPC UA > Server > Security" - for the generation and assignment OPC UA certificates.

Figure 3-11 Security settings for an S7-1500 CPU in STEP 7

Communication

44

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Special features of the section "Protection & Security > Certificate manager"
Only in this section of the Inspector window do you switch between the global, i.e. projectwide, and the local, i.e. device-specific, certificate manager (option "Use global security settings for the certificate manager"). The option decides whether you have access to all the certificates in the project or not.
 If you do not use the certificate manager in the global security settings, you only have access to the local certificate memory of the CPU. You do not have access, for example, to imported certificates or root certificates. Without these certificates only a restricted functionality is available. You can, for example, only generate self-signed certificates.
 If you use the certificate manager in the global security settings and you are logged on as an administrator, you have access to the global, project-wide certificate memory. You can, for example, assign imported certificates to the CPU, or create certificates that are issued and signed by the project CA (certificate authority of the project).
The figure below shows how the "Global security settings" are shown in the project tree after the "Use global security settings for certificate manager" option has been activated in the Inspector window of the CPU.

Communication

Function Manual, 11/2019, A5E03735815-AH

45

Communications services 3.6 Secure Communication
When you double-click "User login" in the project tree below the global security settings and log in, a line called "Certificate manager" is displayed, among other data. When you double-click the "Certificate manager" line, you obtain access to all the certificates in the project, divided into the tabs "CA" (certificate authorities), "Device certificates" and "Trusted certificates and root certificate authorities".

Private keys

STEP 7 generates private keys while generating device certificates and server certificates (end-entity certificates). The location where the private key is stored encrypted depends on the use of the global security settings for the certificate manager:
 If you use global security settings, the private key is stored encrypted in the global (project-wide) certificate memory.
 If you do not use global security settings, the private key is stored encrypted in the local (CPU-specific) certificate memory.
The existence of the private key, which is required to decrypt data, for example, is displayed in the "Private key" column of the "Device certificates" tab of the certificate manager in the global security settings.
When the hardware configuration is loaded, the device certificate, the public key as well as the private key are loaded into the CPU.
NOTICE
The "Use global security settings for certificate manager" option influences the previously used private key: If you have already created certificates without using the certificate manager in the global security settings and then change the option for using the certificate manager, the private keys are lost and the certificate ID can change. A warning draws your attention to this fact. Therefore specify at the beginning of the project configuration which option is required for the certificate manager.

Communication

46

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication

3.6.5

Examples for the management of certificates.
As explained in the preceding sections, certificates are required for every type of secure communication. The following section shows as an example how you handle the certificates with STEP 7 so that the requirements for Secure Open User Communication are fulfilled.
The devices which are involved at the respective communication partners are differentiated below. The respective steps for supplying the required certificates to the communications participants are described. An S7-1500 CPU or an S7-1500 software controller as of firmware version 2.0 is always required.
The general rule is:
While a secure connection is being established (handshake"), the communication partners as a rule only communicate their end-entity certificates (device certificates).
Therefore the CA certificates required to verify the transmitted device certificate must be located in the certificate memory of the respective communication partner.

Secure Open User Communication between two S7-1500 CPUs
Two S7-1500-CPUs, PLC_1 and PLC_2, are to exchange data with each other via Secure Open User Communication.
You generate the required device certificates with STEP 7 and assign them to the CPUs as described below.
STEP 7 project certificate authorities (CA of the project) are used to sign the device certificates.
The certificates are to be referenced by their certificate ID in the user program (TCON communication instruction in combination with the associated system data type, for example TCON_IPV4_SEC). STEP 7 assigns the certificate ID automatically during the generation or creation of certificates.

Communication

Function Manual, 11/2019, A5E03735815-AH

47

Communications services 3.6 Secure Communication

Procedure

STEP 7 automatically loads the required CA certificates together with the hardware configuration to the participating CPUs so that the requirements for certificate verification exist for both CPUs. You therefore only have to generate the device certificates for the respective CPU; STEP 7 does the rest for you.
1. Mark PLC_1 and activate the "Use global security settings for certificate manager" option in the "Protection & Security" section.
2. Log in as a user in the project tree in the "Global security settings" section. For a new project, the "Administrator" role is planned for the first login.
3. Return to the PLC-1 in the "Protection & Security" section. Click in an empty line in the "Certificate subject" column in the "Device certificates" table to add a new certificate.
4. In the drop-down list for selecting a certificate click the "Add" button.
The "Create Certificate" dialog opens.
5. Leave the default settings in this dialog. They are tailored to the usage of Secure Open User Communication (usage: TLS).
Tip: Supplement the default name of the certificate subject, in this case the CPU name. In order to differentiate you better leave the default CPU name in case you have to manage a large number of device certificates.
Example: PLC_1/TLS becomes PLC_1-SecOUC-Chassis17FactoryState.
6. Compile the configuration.
The device certificate and the CA certificate are part of the configuration.
7. Repeat the steps described above for PLC_2.
In the next step you have to create the user programs for the data exchange and load the configurations together with the program.

Communication

48

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Using self-signed certificates instead of CA certificates
When creating device certificates you can select the "Self-signed" option. You can create self-signed certificates without being logged in for the global security settings. This procedure is not recommended because the resulting certificates do not exist in the global certificate memory and can therefore not be assigned directly to a partner CPU.
As described above, you should select the name of the certificate subject with care so that the right certificate can be assigned to a device without any doubt.
Verification with the CA certificates of the STEP 7 project is not possible for self-signed certificates. To ensure that self-signed certificates can be verified you have to include the self-signed certificates of the communication partner into the list of trusted partner devices for each CPU. To this purpose you must have activated the "Use global security settings for certificate manager" option and be logged in as a user in the global security settings.
Proceed as follows to add the self-signed certificate of the communication partner of the CPU:
1. Mark PLC_1 and navigate to the "Certificates of partner devices" table in the "Protection & Security" section.
2. Click in an empty line in the "Certificate subject" column in the "Device certificates" table to add a new certificate.
3. Select the self-signed certificate of the communication partner from the drop-down list and confirm the selection.
In the next step you have to create the user programs for the data exchange and load the configurations together with the program.

Communication

Function Manual, 11/2019, A5E03735815-AH

49

Communications services 3.6 Secure Communication
Secure Open User Communication between S7-1500 CPU as a TLS client and an external device as a TLS server
Two devices are to exchange data with each other via TLS connection or TLS session, for example, exchanging recipes, production data or quality data:  An S7-1500 CPU (PLC_1) as TLS client; the CPU uses Secure Open User
Communication  An external device, for example a Manufacturing Execution System (MES), as TLS server The S7-1500 CPU establishes the TLS connection / session to the MES system as TLS client.

 TLS client  TLS server
The S7-1500 CPU requires the CA certificates of the MES system to authenticate the TLS server: The root certificate and, if appropriate, the intermediate certificates for verifying the certificate path.
You have to import these certificates into the global certificate memory of the S7-1500 CPU.
Proceed as follows to import certificates of the communication partner:
1. Open the certificate manager in the global security settings in the project tree.
2. Select the appropriate table (trusted certificates and root certificate authorities) for the certificate to be imported.
3. Right-click in the table to open the shortcut menu. Click "Import" and import the required certificate or the required CA certificates.
Through the import the certificate has a certificate ID assigned to it and can be assigned to a module in the next step.
4. Mark PLC_1 and navigate to the "Certificates of partner devices" table in the "Protection & Security" section.
5. Click in an empty line in the "Certificate subject" column to add the imported certificates.
6. Select the required CA certificates of the communication partner from the drop-down list and confirm the selection.

Communication

50

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Optionally the MES system can also request a device certificate of the CPU to authenticate the CPU (i.e., the TLS client). In this case, the CA certificates of the CPU must be made available to the MES system. The prerequisite for importing the certificates into the MES system is a preceding export of the CA certificates from the STEP 7 project of the CPU. Follow these steps:
1. Open the certificate manager in the global security settings in the project tree.
2. Select the matching table (CA certificate) for the certificate to be exported.
3. Right-click the selected certificate to open the shortcut menu.
4. Click "Export".
5. Select the export format of the certificate.
In the next step you have to create the user programs for the data exchange and load the configurations together with the program.
Secure Open User Communication between an S7-1500 CPU as TLS server and an external device as TLS client
If the S7-1500 CPU acts as TLS server and the external device, for example an ERP system (Enterprise Resource Planning System) establishes the TLS connection / session, you require the following certificates:
 For the S7-1500 CPU, you generate a device certificate (server certificate) with a private key and download it with the hardware configuration into the S7-1500 CPU. You use the "Signed by certificate authority" option when generating the server certificate.
The private key is required for the key exchange as explained in the figure for the example "HTTP over TLS".
 You have to export the CA certificate of the STEP 7 project for the ERP system and import / load it into the ERP system. With the CA certificate the ERP system verifies the server certificate of the S7-1500 that was transferred from the CPU to the ERP system during the establishment of the TLS connection / session.

 TLS server  TLS client
Figure 3-12 Secure OUC between an S7-1500 CPU and ERP system
The required steps are described in the preceding sections.

Communication

Function Manual, 11/2019, A5E03735815-AH

51

Communications services 3.6 Secure Communication
Secure Open User Communication to a mail server (SMTP over TLS) An S7-1500 CPU can establish a secure connection to an e-mail server with the communication instruction TMAIL-C. The system data types TMail_V4_SEC and TMail_QDN_SEC allow you to determine the partner port of the e-mail server and thus to reach the e-mail server via "SMTP over TLS".
Figure 3-13 Secure OUC between a S7-1500 CPU and a mail server
Requirement for secure e-mail connection is the importing of the root certificate and the intermediate certificates of the mail server (provider) into the global certificate memory of the S7-1500 CPU. By means of these certificates the CPU can check the server certificate that is sent by the mail server during the establishment of the TLS connection / session. Proceed as follows to import certificates of the mail server: 1. Open the certificate manager in the global security settings in the project tree. 2. Select the appropriate table (trusted certificates and root certificate authorities) for the
certificate to be imported. 3. Right-click in the table to open the shortcut menu. Click "Import" and import the required
certificate or the required CA certificates. As a result of the import, the certificate has a certificate ID assigned to it and can be assigned to a module in the next step. 4. Mark PLC_1 and navigate to the "Certificates of partner devices" table in the "Protection & Security" section. 5. Click in an empty line in the "Certificate subject" column to add the imported certificates. 6. Select the required CA certificates of the communication partner from the drop-down list and confirm the selection. In the next step you have to create the user programs for the e-mail client function of the CPU and load the configurations together with the program.

Communication

52

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication

3.6.6

Example: HTTP over TLS
The following paragraphs show how the mechanisms described are used to establish a secure communication between a Web browser and the Web server of an S7-1500 CPU.
Initially the changes for the "Permit access only with HTTPS" option in STEP 7 are described. As of STEP 7 V14 you have the possibility to influence the server certificate of the Web server of an S7-1500 CPU as of firmware V2.0: The server certificate is generated as of these versions with STEP 7.
In addition it illustrates the processes that are executed when a website of the CPU Web server is called with a Web browser of a PC through an encrypted HTTPS connection.

Using Web server certificates for S7-1500 CPUs, FW V2.0 or higher
For S7-1500 CPUs with a firmware version before V2.0, you were able to set "Permit access only with HTTPS" when setting the Web server properties, without specific requirements applying.
You did not have to handle certificates for these CPUs; the CPU automatically generates the certificates required for the Web server.
For S7-1500 CPUs as of firmware V2.0, STEP 7 generates the server certificate (end-entity certificate) for the CPU. You assign a server certificate to the Web server in the properties of the CPU (Web server > Security).
Because a server certificate name is always preset, there is no change to the easy configuration of the Web server: You activate the Web server. The "Permit access only with HTTPS" option is enabled by default - STEP 7 generates a server certificate with the default name during compiling.
Irrespective of whether you use the certificate manager in the global security settings or not: STEP 7 has all the information required to generate the server certificate.
In addition, you have the possibility to determine the properties of the server certificate, for example, the name or the validity period.

Communication

Function Manual, 11/2019, A5E03735815-AH

53

Communications services 3.6 Secure Communication
Loading the Web server certificate
The server certificate generated by STEP 7 is then automatically also loaded to the CPU when the hardware configuration is loaded.
 If you use the certificate manager in the global security settings, the certificate authority of the project (CA certificate) signs the server certificate of the Web server: During loading the CA certificate of the project is loaded as well automatically.
 If you do not use the certificate manager in the global security settings, STEP 7 generates the server certificate as a self-signed certificate.
When you address the Web server of the CPU over the IP address of the CPU, a new server certificate (end-entity certificate) must be generated and loaded with each change in the IP address of an Ethernet interface of the CPU. This is necessary because the identity of the CPU changes with the IP address ­ and the identity requires a signature in accordance with the PKI rules.
You can avoid this problem by addressing the CPU with a domain name instead of its IP address, for example "myconveyer-cpu.room13.myfactory.com". For this purpose, you have to manage the domain names of the CPU via a DNS server.
Supplying a Web browser with a CA certificate of the Web server
In the Web browser the user who accesses the websites of the CPU through HTTPS should install the CA certificate of the CPU. If no certificate is installed, a warning is output recommending that you do not use the page. To view this page, you must explicitly "Add an exception".
The user receives the valid root certificate for download from the "Intro" Web page of the CPU Web server under "Download certificate".
STEP 7 offers a different possibility: Export the CA certificate of the project with the certificate manager into the global security settings in STEP 7. Subsequently import the CA certificate into the browser.

Communication

54

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.6 Secure Communication
Course of the secure communication The figure below shows, in simplified terms, how communication is established ("handshake") focusing on the negotiation of keys used for data exchange (here with HTTP over TLS). However, the course can be applied to all communication options that are based on the usage of TLS, i.e. also for Secure Open User Communication (see Basics for secure communication).

Figure 3-14 Handshake with https
The figure does not show the measures taken at Alice's end (browser) to verify the certificate sent by the Web server. Whether Alice can trust the Web server certificate received and therefore the identity of the Web server, and can accept the exchange of data, depends on positive verification.

Communication

Function Manual, 11/2019, A5E03735815-AH

55

Communications services 3.6 Secure Communication
The steps for verifying the authenticity of the Web server:
1. Alice must know the public keys of all relevant certificate authorities, which means she requires the complete certificate chain to verify the Web server certificate (i.e. the endentity certificate of the Web server):
Alice will generally have the required root certificate in her certificate memory. When a Web browser is installed, a range of trusted root certificates is also installed. If she does not have the root certificate, she has to download it from the certificate authority and install it in the certificate store of the browser. The certificate authority can also be the device on which the Web server is located.
You have the following options for obtaining the intermediate certificates:
­ The server itself sends the required intermediate certificates to Alice along with its end-entity certificate ­ in the form of a signed message so that Alice can verify the integrity of the certificate chain.
­ The certificates often contain the URLs of the certificate issuer. Alice can load the required intermediate certificates from these URLs.
When you work with certificates in STEP 7 it is always assumed that you have imported the intermediate certificates and the root certificate into the project and assigned them to the module.
2. Alice validates the signatures in the certificate chain with the public keys of the certificates.
3. The symmetric key must be generated and transferred to the Web server.
4. If the Web server is addressed by its domain name, Alice also verifies the identity of the Web server in accordance with the Internet PKI rules defined in RFC 2818. She is able to do this because the URL of the Web server, in this case the "Fully Qualified Domain Name" (FQDN), is saved in the end-entity certificate of the Web server. If the certificate entry in the "Subject Alternative Name" field corresponds to the entry in the address bar of the browser, everything is fine.
The process continues with the exchange of data with the symmetric key, as shown in the figure above.

Communication

56

Function Manual, 11/2019, A5E03735815-AH

3.7

SNMP

Communications services 3.7 SNMP

3.7.1

Disabling SNMP
The network management protocol SNMP (Simple Network Management Protocol) is a protocol that uses various services and tools for detection and diagnostics of the network topology.
Which SNMP requests the S7-1500 CPUs and the S7-1200 CPUs can receive, is described in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/79993228).
SNMP uses the transport protocol UDP. SNMP recognizes two network components, the SNMP manager and the SNMP client. The SNMP manager monitors the network nodes: The SNMP clients collect the various network-specific information in the individual network nodes and store it in a structured form in the MIB (Management Information Base). Various services and tools can run detailed network diagnostics with the help of these data.
Under certain conditions, it is useful to disable SNMP. Examples:
 The security guidelines in your network do not allow the use of SNMP.
 You use your own SNMP solution, e.g. with your own communications instructions.
If you disable SNMP for a device, various diagnostics options for the network topology (e.g. in the PRONETA tool or in the Web server of the CPU) are no longer available.

Disabling SNMP To disable SNMP for one of the integrated interfaces of an S7 1500 CPU, proceed as follows:
1. In STEP 7, create a data block that contains the structure of data record B071H.
­ The following table shows the structure of the data record B071H.

Byte 0-1 2-3 4 5 6-7 8-11

Element BlockID BlockLength Version Subversion Reserved SNMP controller

Code F003H 8 01 H 00 H Disable/enable SNMP

Explanation
Header The data record length is counted starting at byte 4 "Version".
If you want to disable SNMP, enter the value 0. If you want to enable SNMP, enter the value 1.

2. Transfer the data record B071H in the startup OB (OB100) with the WRREC instruction (write data record) to the CPU. Use the hardware ID of an integrated interface of the CPU here.

Communication

Function Manual, 11/2019, A5E03735815-AH

57

Communications services 3.7 SNMP

3.7.2

Example: Disabling SNMP for a CPU 1516-3 PN/DP

Task

As the security guidelines in your network do not allow SNMP, you want to disable SNMP for a CPU 1516-3 PN/DP.

Requirements

 CPU 1516-3 PN/DP with firmware version V2.0  STEP 7 as of V14

Solution

First, create a data block that contains the structure of data record B071H. The figure below shows the data block "Deactivate SNMP". The data block "Deactivate SNMP" contains the data record B071H as well as additional tags that you use to transfer the data record. The tag "snmp_deactivate" is used to trigger the job for WRREC. Place this tag in the retentive memory area so that the value is also available in the startup OB (OB100).

Figure 3-15 Example: Data block for disabling SNMP
Transfer the data record B071H in the startup OB (OB100) to CPU 1516-3 PN/DP with the WRREC instruction (write data record).

Communication

58

Function Manual, 11/2019, A5E03735815-AH

Communications services 3.7 SNMP
In the following program code, the data record B071H is transferred with the WRREC instruction in a REPEAT UNTIL loop. ORGANIZATION_BLOCK "Startup" TITLE = "Complete Restart" { S7_Optimized_Access := 'TRUE' } VERSION : 0.1 BEGIN
REPEAT "WRREC_DB_1" (REQ := "Deactivate SNMP".snmp_deactivate,
//Transfer data record INDEX:=16#B071,
//Data record number for SNMP deactivation ID:="Local~PROFINET_interface_1",
//any integrated PROFINET Interface DONE => "Deactivate SNMP".snmp_done, ERROR => "Deactivate SNMP".snmp_error, STATUS => "Deactivate SNMP".snmp_status, RECORD := "Deactivate SNMP".snmp_record)
//Data record UNTIL "Deactivate SNMP".snmp_done OR "Deactivate SNMP".snmp_error END_REPEAT; END_ORGANIZATION_BLOCK
Using program code You will find the full program code here.
Follow these steps to apply the program code to your project:
1. Copy the entire program code to the clipboard with Ctrl+A, Ctrl+C.
2. Open a text editor (e.g. "Editor").
3. Paste the content of the clipboard to the text editor with Ctrl+V.
4. Save the document as an scl file, e.g. SNMP_DEACT.scl.
5. Open your project in STEP 7.
6. Import the scl file as an external source. You will find further information on importing external sources in the STEP 7 online help.
7. Generate the startup OB and the data blocks. (right-click on the scl file, shortcut menu: "Generate blocks from source")
Re-enabling SNMP With small changes, you can use the program code used above to enable SNMP.
In the user program, assign the "Deactivate SNMP".snmp_record.SNMPControl tag the value "1": "Deactivate SNMP".snmp_record.SNMPControl := 1;
SNMP will then be enabled again the next time the CPU is started.

Communication

Function Manual, 11/2019, A5E03735815-AH

59

PG communication

4

Properties

Using PG communication, the CPU or another module capable of communication exchanges data with an engineering station (for example PG, PC). The data exchange is possible via PROFIBUS and PROFINET subnets. The gateway between S7 subnets is also supported.
PG communication provides functions needed to load programs and configuration data, run tests, and evaluate diagnostic information. These functions are integrated in the operating system of the module capable of communication.

Requirements

 The PG/PC is physically connected to the communication-capable module.
 If the communication-capable module is to be reached via S7 routing, the hardware configuration has to be loaded in the participating stations (S7 router and end point).

Procedure for connecting online You must establish an online connection to the CPU for the programming device communication:
1. Select the CPU in the project tree in STEP 7.
2. Select the "Online > Go online" menu command.

Communication

60

Function Manual, 11/2019, A5E03735815-AH

PG communication
3. In the "Go online" dialog, make the following settings for your online connection: ­ Select interface type (e.g. PN/IE) in the "Type of PG/PC interface" drop-down list. ­ In the "PG/PC interface" drop-down list, select the PG/PC interface (e.g. Ind. Ethernet card) you want to use to establish the online connection. ­ Select the interface or the S7 subnet with which the programming device/PC is physically connected from the "Connection to interface/subnet" drop-down list. ­ If the communication-capable module can be reached via an S7 router (gateway), select the S7 router that connects the subnets in question from the "1st gateway" drop-down list.

Figure 4-1 Setting up PG communication

Communication

Function Manual, 11/2019, A5E03735815-AH

61

PG communication
4. Click "Start search". All devices that you can address with PG communication appear shortly thereafter in the table "Compatible devices in target subnet".
5. In the "Compatible devices in target subnet" table, select the relevant CPU and confirm with "Go online".
Additional information You can find more information on "Go online" in the STEP 7 online help.

Communication

62

Function Manual, 11/2019, A5E03735815-AH

HMI communication

5

Properties

Using HMI communication, one or more HMI devices (for example HMI Basic/Comfort/Mobile Panel) exchanges data with a CPU for operator control and monitoring with via the PROFINET or PROFIBUS DP interface. The data exchange is via HMI connections.
If you want to set up several HMI connections to a CPU, use for example:
 The PROFINET and PROFIBUS DP interfaces of the CPU
 CPs and CMs with the relevant interfaces

Procedure for setting up HMI communication
As soon as you drag-and-drop a tag, for example a tag from a global data block into an HMI screen or into the HMI tag table, STEP 7 automatically sets up an HMI connection. Alternatively, you can also set up the HMI connection yourself.
To set up an HMI connection, follow these steps.
1. Configure the HMI device in an existing configuration with a CPU in the network view of the Devices & networks editor of STEP 7.
2. Select the "Connections" button and then "HMI connection" from the drop-down list.
3. Drag-and-drop a line between the end points of the connection (HMI device and CPU). The end points are highlighted in color. If the required S7 subnet does not yet exist, it is created automatically.

Communication

Function Manual, 11/2019, A5E03735815-AH

63

HMI communication
4. In the "Connections" tab, select the row of the HMI connection. In the "General" area of the "Properties" tab, you see the properties of the HMI connection, some of which you can change.

Figure 5-1 Setting up HMI communication
5. Download the hardware configuration to the CPU. 6. Download the hardware configuration to the HMI device.

Additional information
You can find information on S7 routing for HMI connections in the section S7 Routing (Page 289).
You can find more information on setting up HMI connections in the STEP 7 online help.

Communication

64

Function Manual, 11/2019, A5E03735815-AH

Open User Communication

6

6.1

Overview of Open User Communication

Features of Open User Communication
Through Open User Communication, also called "open communication", the CPU exchanges data with another device capable of communication. Open User Communication has the following features and characteristics:
 Open standard (communication partners can be two SIMATIC CPUs or a SIMATIC CPU and a suitable third-party device).
 Communication via various protocols (in STEP 7 known as "Connection types")
 High degree of flexibility in terms of the data structures transferred; this allows open data exchange with any communications devices as long as these support the connection types available.
 Secure Communication: To protect your automation system, you can exchange data securely over Open User Communication. With Secure Open User Communication, the data is sent signed and encrypted.
 Open User Communication is possible in various automation systems, see technical specifications of the respective manuals. Examples:
­ Integrated PROFINET / Ind. Ethernet interfaces of CPUs (S7-1500, ET 200SP CPU, S7-1500 Software Controller, CPUs 1513/1516pro 2 PN)
­ PROFINET / Ind. Ethernet interfaces of communications modules (for example CP 1543-1, CM 1542-1, CP 1543SP-1)
Information on Secure Open User Communication is available in the section Secure Communication (Page 34).

Information on S7-1500R/H
You can find information on Open User Communication with the S7-1500R/H redundant system in section Communication with the redundant system S7-1500R/H (Page 324).

Communication

Function Manual, 11/2019, A5E03735815-AH

65

Open User Communication 6.2 Protocols for Open User Communication

6.2

Protocols for Open User Communication

Protocols for Open User Communication The following protocols are available for open communication:

Table 6- 1 Transport protocols for open communication

Transport protocol TCP according to RFC 793 ISO-on-TCP according to RFC 1006 (Class 4) ISO according to ISO/IEC 8073 UDP according to RFC 768 FDL

Via interface PROFINET/Industrial Ethernet PROFINET/Industrial Ethernet Industrial Ethernet (only CP 1543-1) PROFINET/Industrial Ethernet PROFIBUS

Table 6- 2 Application protocols for open communication

Application protocol Modbus TCP E-mail FTP

Used transport protocol TCP according to RFC 793 TCP according to RFC 793 TCP according to RFC 793

TCP, ISO-on-TCP, ISO, UDP
Prior to data transfer, these protocols (except UDP) establish a transport connection to the communications partner. Connection-oriented protocols are used when potential loss of data needs to be avoided.
The following is possible with UDP:
 Unicast to one device or broadcast to all devices on PROFINET via the PROFINET interface of the CPU or the Industrial Ethernet interface of the CP 1543-1
 Multicast to all recipients of a multicast group via the PROFINET interface of the CPU* or the PROFINET / Industrial Ethernet interface of the CP 1543-1
* As of firmware version V2.0, the PROFINET interface of the CPU supports a maximum of 5 multicast groups
Maximum user data length: You can find the maximum user data lengths supported in the technical specifications of the respective device manuals.

Communication

66

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.2 Protocols for Open User Communication

Protocol for communication via PROFIBUS: FDL
Data transfer via an FDL connection (Fieldbus Data Link) is suitable for the transfer of related blocks of data to a communications partner on PROFIBUS that supports the sending and receiving of data according to the FDL service SDA (Send Data with Acknowledge) according to EN 50170, Vol 2. Both partners have the same rights; in other words, each partner can initiate sending and receiving event-driven.
In keeping with the FDL service SDN (Send Data with No Acknowledge) according to EN 50170, Vol 2, the following is possible with FDL:
 Broadcast to all devices on PROFIBUS via the PROFIBUS interface of the CM 1542-5
 Multicast to all recipients of a multicast group via the PROFIBUS interface of the CM 1542-5

Modbus TCP

The Modbus protocol is a communication protocol with linear topology based on a master/slave architecture. In the Modbus TCP (Transmission Control Protocol), the data is transmitted as TCP/IP packets.
Communication is controlled solely by suitable instructions in the user program.

E-mail and FTP
You can use email to send for example, data block contents (e.g. process data) as an attachment.
You can use the FTP connection (FTP = File Transfer Protocol) to transmit files to and from S7 devices.
The communication is controlled by instructions in the user program at the client end.

Application example: MQTT Publisher for the SIMATIC S7-1500 CPU
The "Message Queue Telemetry Transport" (MQTT) is a simple protocol on the TCP/IP level. It is suitable for the exchange of messages between devices with lower functionality and for the transfer via unreliable networks.
The application example provides a function block with which you can implement the MQTT protocol into the SIMATIC S7-1500.
You can find the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109748872).

Communication

Function Manual, 11/2019, A5E03735815-AH

67

Open User Communication 6.3 Instructions for Open User Communication
Block library for SYSLOG messages
Syslog is a simply structured binary profile on UDP/IP level. It enables applications to send messages, warnings or error states to a Syslog server. Syslog is typically used for computer system management and security monitoring, and has established itself as a standard in the field of protocols.
The "LSyslog" library offers you a solution to implement the Syslog protocol in an S7-1500. In addition to the library, an application example is provided that shows you how to generate Syslog messages in your controller and send them to the Syslog server.
You can find the block library "LSyslog" and the associated application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/51929235).

6.3

Instructions for Open User Communication

Introduction

You set up Open User Communication via the corresponding connection (for example, TCP connection) as follows:
 By programming in the user programs of the communications partners or
 By configuring the connection in STEP 7 in the hardware and network editor
Regardless of whether you set up the connection by programming or configuring, instructions are always required in the user programs of both communications partners for sending and receiving the data.

Setting up the connection via the user program
If the connection is set up by programming, the connection establishment and termination is implemented using instructions in the user program.
In certain application areas, it is advantageous not to set up the communication connections statically via hardware configuration, but via the user program instead. You can set up the connections via a specific application program-controlled and therefore when necessary. Programmed connection setup also allows connection resources to be released following data transfer.
A data structure is necessary for each communications connection that contains the parameters for establishing the connection (for example system data type "TCON_IP_v4" for TCP).
The system data types (SDT) are provided by the system and have a predefined structure that cannot be changed.
The various protocols have their own data structures (see table below). The parameters are stored in a data block ("connection description DB") for example of the system data type TCON_IP_v4.

Communication

68

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.3 Instructions for Open User Communication

There are two ways in which you can specify the DB with the data structure:
 Recommendation: Have the data block created automatically in the properties in the program editor during parameter assignment of the connection for the TSEND_C, TRCV_C and TCON instructions.
 Create the data block manually, assign parameters to it and write it directly to the instruction Necessary for:
­ Secure OUC
­ Connection over DNS
­ E-mail
­ FTP
You can modify the connection parameters in the "connection description DB".
This FAQ (https://support.industry.siemens.com/cs/ww/en/view/58875807) describes how to program the TCON instruction to set up a connection for Open User Communication between two S7-1500 CPUs.

Protocols, system data types and employable instructions for programmed setup
The following table shows the protocols of the Open User Communication and the matching system data types and instructions.

Table 6- 3 Instructions for programmed setup of the connection

Protocol TCP ISO-on-TCP ISO according to ISO/IEC 8073 (Class 4) UDP
FDL1

System data type · TCON_QDN · TCON_IP_v4
· TCON_IP_RFC · TCON_ISOnative1 · TCON_Configured

Instructions
Establish connection and send/receive data via:
· TSEND_C/TRCV_C or
· TCON, TSEND/TRCV or
· TCON, TUSEND/TURCV (connection can be terminated via TDISCON)

· TCON_IP_v4

Establish connection and

· TADDR_Param

send/receive data via:

· TADDR_SEND_QDN · TSEND_C/TRCV_C

· TADDR_RCV_IP

· TUSEND/TURCV/TRCV (connection can be terminated via

TDISCON)

· TCON_FDL

Establish connection and send/receive data via:

· TSEND_C/TRCV_C or
· TCON, TSEND/TRCV or
· TCON, TUSEND/TURCV (connection can be terminated via TDISCON)

Communication

Function Manual, 11/2019, A5E03735815-AH

69

Open User Communication 6.3 Instructions for Open User Communication

Protocol Modbus TCP
E-mail
FTP2

System data type · TCON_IP_v4 · TCON_QDN · TCON_Configured

Instructions · MB_CLIENT · MB_SERVER

· TMAIL_v4 · TMAIL_v6 · TMAIL_FQDN

· TMAIL_C

· FTP_CONNECT_IPV · FTP_CMD 43
· FTP_CONNECT_IPV 63
· FTP_CONNECT_NA ME3

1 This protocol can only be used with the CM 1542-5 2 This protocol can only be used with the CP 1543-1 3 User-defined data type
The following table shows you the different connections of the Secure Open User Communication and the matching system data types and instructions.

Secure OUC connection
Secure TCP connection from an S7-1500 CPU as TLS client to a third-party PLC (TLS server)
Secure TCP connection from an S7-1500 CPU as TLS server to a third-party PLC (TLS client)
Secure TCP connection between two S7-1500 stations
Secure connection to a mail server2

System data type · TCON_QDN_SEC
· TCON_IP_V4_SEC1 · TMAIL_V4_SEC · TMAIL_QDN_SEC

Secure Modbus TCP connection · TCON_IP_V4_SEC1

· TCON_QDN_SEC

Instructions · TSEND_C/TRCV_C · TCON, TSEND/TRCV
· TMAIL_C (V5.0 or higher) · MB_Client · MB_Server

1 Also possible for CP 1543-1 2 Secure connection to a mail server also possible with CP1543-1 und TMAIL_C (V4.0)

Communication

70

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.3 Instructions for Open User Communication

Setting up the connection with connection configuration
When setting up through the configuration of the connection, the address parameters of the connection are specified in the hardware and network editor of STEP 7.
To send and receive the data, use the same instructions as when the connections are set up by programming:

Table 6- 4 Instructions for sending/receiving with configured connections

Protocol Supported instructions: TCP ISO-on-TCP ISO according to ISO/IEC 8073 (Class 4) UDP
FDL
Modbus TCP E-mail FTP

Send/receive with configured connections
Send/receive data via: · TSEND_C/TRCV_C or · TSEND/TRCV or · TUSEND/TURCV Send/receive data via: · TSEND_C/TRCV_C or · TUSEND/TURCV Send/receive data via: · TSEND_C/TRCV_C or · TSEND/TRCV or · TUSEND/TURCV Not supported Not supported Not supported

Additional instructions for open communication You can use the following instructions for connections set up in the user program as well as for configured connections:
 T_RESET: Terminating and establishing a connection
 T_DIAG: Check the connection

Basic examples for Open User Communication
The Siemens Online Support offers you function blocks (FBs) that facilitate the handling of the instructions of the Open User Communication. You can find the function block with corresponding examples on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109747710).

Communication

Function Manual, 11/2019, A5E03735815-AH

71

Open User Communication 6.3 Instructions for Open User Communication

Additional information The STEP 7 online help describes:  The user and system data types  The instructions for open communication  The connection parameters You will find information about the allocation and release of connection resources in the section Allocation of connection resources (Page 311).

See also

Secure Open User Communication (Page 92)

Communication

72

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.4 Open User Communication with addressing via domain names

6.4

Open User Communication with addressing via domain names

As of firmware version V2.0, S7-1500 CPUs, ET 200SP CPUs and the CPUs 1513/1516pro-2 PN support Open User Communication with addressing via Domain Name System (DNS). A DNS client is integrated in the CPU. In the case of communication via DNS, you use domain names as an alias for IP addresses to address communication partners. Addressing of the communication partners via domain names is possible for open communication via TCP and UDP.

At least one DNS server must be located in your network as a requirement for communication via DNS.

The S7-1500 software controller supports communication via DNS for all interfaces that are assigned to the software controller.

Setting up communication via DNS
The DNS client of the CPU must know the IPv4 address of at least one DNS server so that a CPU can establish a connection to a communication partner via its domain name. The CPU supports up to 4 different DNS servers.
To set up communication via domain names for an S7-1500 CPU, follow these steps:
1. Select the CPU in the network view of STEP 7.
2. In the Inspector window, navigate to "Properties" > "General" > "Advanced configuration" > "DNS configuration".
3. Enter the IPv4 address of a DNS server in the "DNS server addresses" column of the "Server list" table. You can enter up to 4 IPv4 addresses of DNS servers.

Figure 6-1 Entering DNS server addresses using a CPU 1516-3 PN/DP as an example

Communication

Function Manual, 11/2019, A5E03735815-AH

73

Open User Communication 6.4 Open User Communication with addressing via domain names
Setting up a TCP connection via the domain name of the communication partner For TCP communication via the domain name you need to create a data block with the TCON_QDN system data type yourself, assign parameters and call it directly at the instruction. The TCON, TSEND_C and TRCV_C instructions support the system data type TCON_QDN: To set up a TCP connection via the domain name of the communication partner, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TCON_QDN in the global data block. The example below shows the global data block "Data_block_1" in which the tag "DNS Connection1" of data type TCON_QDN is defined.
Figure 6-2 Data type TCON_QDN
3. Program the parameters of the TCP connection (for example the fully qualified domain name (FQDN)) in the tag of data type TCON_QDN.
4. Create a TCON instruction in the program editor. 5. Interconnect the CONNECT parameter of the TCON instruction with the tag of the data
type TCON_QDN. In the example below, the CONNECT parameter of the TCON instruction is interconnected with the tag "DNS connection1" (data type TCON_QDN).

Figure 6-3 TCON instruction
74

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
Addressing a UDP connection via the domain name of the communication partner For S7-1500 CPUs as of firmware version V2.0, you can address the recipient with its fully qualified domain name (FQDN) when sending data via UDP. With the instruction TUSEND at the parameter ADDR, you hereby reference a structure of the type TADDR_SEND_QDN. The receiver can return an IPv4 or an IPv6 address. With the TURCV instruction at the ADDR parameter, you therefore reference a structure of the TADDR_RCV_IP type. Only this structure can include both IP address types.
Note Network load In contrast to the TCP the UDP protocol does not work connection-oriented. For every edge at the block parameter REQ, the TUSEND or TURCV command performs queries of the DNS server. This can lead to high network load or load on the DNS server.

Additional information
You can find more information about the system data types TCON_QDN, TADDR_SEND_QDN and TADDR_RCV_IP in the STEP 7 online help.
How to set up a secure TCP connection via the domain name of the communication partner is described in the section Secure Open User Communication (Page 92).

6.5

Setting up Open User Communication via TCP, ISO-on-TCP, UDP

and ISO

Configuring a connection for the TSEND_C, TRCV_C or TCON instructions
Requirement: A TSEND_C, TRCV_C or TCON instruction is created in the programming editor.
1. Select a TCON, TSEND_C or TRCV_C block of Open User Communication in the program editor.
2. Open the "Properties > Configuration" tab in the inspector window.

Communication

Function Manual, 11/2019, A5E03735815-AH

75

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
3. Select the "Connection parameters" group. Until you select a connection partner, only the empty drop-down list for the partner end point is enabled. All other input options are disabled. The connection parameters already known are displayed: ­ Name of the local end point ­ Interface of the local end point ­ IPv4 address of the local end point

Figure 6-4 Connection parameters for TSEND_C
76

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
4. In the drop-down list box of the partner end point, select a connection partner. You can select an unspecified device or a CPU in the project as the communication partner. Certain connection parameters are then entered automatically. The following parameters are set: ­ Name of the partner end point ­ Interface of the partner end point ­ IPv4 address of the partner end point If the connection partners are networked, the name of the subnet is displayed.
5. In the "Configuration type" drop-down list, select between using program blocks or configured connections.

Communication

Function Manual, 11/2019, A5E03735815-AH

77

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
6. Select an existing connection description DB in the "Connection data" drop-down list or for configured connections select an existing connection under "Connection name". You can also create a new connection description DB or a new configured connection. Later, you can still select other connection description DBs or configured connections or change the names of the connection description DBs in order to create new data blocks:
­ You can also see the selected data block at the interconnection of the CONNECT input parameter of the selected TCON, TSEND_C or TRCV_C instruction.
­ If you have already specified a connection description DB for the connection partner using the CONNECT parameter of the TCON, TSEND_C or TRCV_C instruction, you can either use this DB or create a new DB.
­ If you edit the name of the displayed data block in the drop-down list, a new data block with the changed name but with the same structure and content is generated and used for the connection.
­ Changed names of a data block must be unique in the context of the communication partner.
­ A connection description DB must have the structure TCON_Param, TCON_IP_v4 or TCON_IP_RFC, depending on CPU type and connection.
­ A data block cannot be selected for an unspecified partner.
Additional values are determined and entered after the selection or creation of the connection description DB or configured connection.
The following is valid for specified connection partners:
­ ISO-on-TCP connection type
­ Connection ID with default of 1
­ Active connection establishment by local partner
­ TSAP ID for S7-1200/1500: E0.01.49.53.4F.6F.6E.54.43.50.2D.31
The following is valid for unspecified connection partners:
­ TCP connection type
­ Partner port 2000
The following applies for a configured connection with a specified connection partner:
­ TCP connection type
­ Connection ID with default of 257
­ Active connection establishment by local partner
­ Partner port 2000
The following applies for a configured connection with an unspecified connection partner:
­ TCP connection type
­ Local port 2000

Communication

78

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
7. Enter a connection ID as needed for the connection partner. No connection ID can be assigned to an unspecified partner.
Note You must enter a unique value for the connection ID at a known connection partner. The uniqueness of the connection ID is not checked by the connection parameter settings and there is no default value entered for the connection ID when you create a new connection.
8. Select the desired connection type in the relevant drop-down list. Default values are set for the address details depending on the connection type. You can choose between the following: ­ TCP ­ ISO-on-TCP ­ UDP ­ ISO (only with Configuration mode "Use configured connection") You can edit the input boxes in the address details. Depending on the selected protocol, you can edit the ports (for TCP and UDP) or the TSAPs (for ISO-on-TCP and ISO).
9. Use the "Active connection establishment" check box to set the connection establishment characteristics for TCP, ISO and ISO-on-TCP. You can decide which communication partner establishes the connection actively.
Changed values are checked immediately for input errors by the connection configuration and entered in the data block for the connection description.
Note Open User Communication between two communication partners can only work when the program section for the partner end point has been downloaded to the hardware. To achieve fully functional communication, make sure that you load not only the connection description of the local CPU on the device but also that of the partner CPU as well.

Communication

Function Manual, 11/2019, A5E03735815-AH

79

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO
Configuring connections, e.g. for TSEND/TRCV
If you want to use the instructions for TSEND/TRCV for open communication, for example, you first need to configure a connection (e.g. TCP connection).
To configure a TCP connection, follow these steps:
1. Configure the communications partners in the network view of the Devices & networks editor of STEP 7.
2. Click the "Connections" button and select the "TCP connection" connection type from the drop-down list.
3. Using drag-and-drop, connect the communication partner with each other (via an interface or local end point). If the required S7 subnet does not yet exist, it is created automatically.
You can also set up a connection to unspecified partners.
4. Select the created connection in the network view.
5. Set the properties of the connection in the "Properties" tab in the "General" area, for example the name of the connection and the interfaces of the communications partner that will be used.
For connections to an unspecified partner, set the address of the partner. You can find the local ID (reference of the connection in the user program) in the "Local ID" area.
6. In the Project tree, select the "Program blocks" folder for one of the CPUs and open OB1 in the folder by double-clicking on it. The program editor opens.
7. Select the required instruction from the "Instructions" task card, "Communication" area, "Open user communication", for example TSEND and drag it to a network of OB1.
8. At the ID parameter of the instruction, assign the local ID of the configured connection to be used for the transmission of data.
9. Interconnect the "DATA" parameter of the TSEND instruction with the user data, for example in a data block.
10.Download the hardware configuration and user program to the CPU.
Based on the procedure described above, set up the connection on the partner CPU with the instruction for receiving, TRCV, and download it to the CPU.

Communication

80

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.5 Setting up Open User Communication via TCP, ISO-on-TCP, UDP and ISO Point to note with ISO connections with CP 1543-1 If you use the "ISO connection" connection type, you will need to select the "Use ISO protocol" check box in the properties of the CP so that addressing using MAC addresses will work.
Figure 6-5 Select CP 1543-1 ISO protocol
Additional information The STEP 7 online help describes:  The instructions for open communication  The connection parameters This FAQ (https://support.industry.siemens.com/cs/ww/en/view/109479564) describes how the instructions TSEND_C and TRCV_C behave in the S7-1500.

Communication

Function Manual, 11/2019, A5E03735815-AH

81

Open User Communication 6.6 Setting up communication over FDL

6.6

Setting up communication over FDL

Requirements

 Configuration software: STEP 7 Professional V14
 End point of the connection: CPU S7-1500 firmware version V2.0 or higher with communication module CM 1542-5 with firmware version V2.0

Setting up a configured FDL connection Proceed as follows to set up a configured FDL connection in STEP 7: 1. Create a TSEND_C instruction in the program editor. 2. Select the TSEND_C instruction and go to "Properties" > "General" > "Connection parameters" in the Inspector window. 3. Under End point, select the partner end point. Use one of the two partner end points below: ­ CPU S7-1500 with CM 1542-5 ­ Unspecified 4. Under Configuration type, select "Use configured connection". 5. Under Connection type, select "FDL". 6. Under Interface, select the following interfaces: ­ Local: PROFIBUS interface of CM 1542-5 ­ Specified partner: PROFIBUS interface of CM 1542-5 7. Under Connection data, select the setting <new>.

Communication

82

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.6 Setting up communication over FDL
The figure below shows a fully configured FDL connection in STEP 7.

Figure 6-6 Configuring the FDL connection
Setting up an FDL connection in the user program For communication via FDL, you need to create the data block of the TCON_FDL system data type yourself in each case, assign parameters and call it directly at the instruction. Follow these steps: 1. Create a global data block in the project tree. 2. In the global data block, define a tag of the data type TCON_FDL. The example below shows the global data block "FDL_connection" in which the tag "FDL_connection" of the data type TCON_FDL is defined.

Figure 6-7 Programming an FDL connection
3. Program the parameters of the FDL connection (e.g. the PROFIBUS addresses) in the tag of the data type TCON_FDL.

Communication

Function Manual, 11/2019, A5E03735815-AH

83

Open User Communication 6.7 Setting up communication with Modbus TCP
4. Create a TCON instruction in the program editor. 5. Interconnect the CONNECT parameter of the TCON instruction with the tag of the data
type TCON_FDL. In the example below, the CONNECT parameter of the TCON instruction is interconnected with the tag "FDL_Connection" (data type TCON_FDL).

Figure 6-8 Example: TCON Instruction for FDL connection

6.7

Setting up communication with Modbus TCP

Setting up a connection for Modbus TCP via the user program
The parameter assignment takes place in the program editor at the instruction MB_CLIENT or MB_SERVER.

Procedure for setting up communication using Modbus TCP
The MB_CLIENT instruction communicates as a Modbus TCP client via the TCP connection. You establish a connection between the client and the server with the instruction, send Modbus requests to the server and receive the corresponding Modbus responses. You also control the setup of the TCP connection with this instruction.
The MB_SERVER instruction communicates as a Modbus TCP server via the TCP connection. The instruction processes connection requests of a Modbus client, receives and processes Modbus requests and sends responses. You also control the setup of the TCP connection.
Requirement: The client can reach the server via IP communication in the network.
1. Configure an S7-1500 automation system with CPU in the network view of the Devices & networks editor of STEP 7.
2. In the Project tree, select the "Program blocks" folder and open OB1 in the folder by double-clicking on it. The program editor opens.

Communication

84

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.7 Setting up communication with Modbus TCP
3. Select the required instruction, for example MB_CLIENT, from the "Instructions" task card, "Communication" area, "Other", "MODBUS TCP" and drag it to a network of OB1.
4. Assign the parameters of the MB_CLIENT or MB_SERVER instruction. Observe the following rules: An IPv4 server address must be specified for each MB_CLIENT connection. Each MB_CLIENT or MB_SERVER connection must use a unique instance DB with one of the data structures TCON_IP_v4, TCON_QDN or TCON_Configured. Each connection requires a unique connection ID. The connection ID and instance DB belong together in pairs and must be unique for each connection.

Figure 6-9 MB_CLIENT

Figure 6-10 MB_SERVER
5. Download the hardware configuration and user program to the CPU.

Communication

Function Manual, 11/2019, A5E03735815-AH

85

Open User Communication 6.7 Setting up communication with Modbus TCP

Modbus TCP server as gateway to Modbus RTU
If you use a Modbus TCP server as a gateway to a Modbus RTU protocol, address the slave device in the serial network using the static parameter, MB_UNIT_ID. The MB_UNIT_ID parameter corresponds to the field of the slave address in the Modbus RTU protocol. The MB_UNIT_ID parameter in this case would forward the request to the correct Modbus RTU slave address.
You do not have to program the gateway function yourself.
You can find the MB_UNIT_ID parameter in the instance data block associated with MB_CLIENT instruction.
You can find more information on the MB_UNIT_ID parameter in the STEP 7 online help.

Reference

 This FAQ (https://support.industry.siemens.com/cs/ww/en/view/94766380) describes how to program and configure the Modbus TCP communication between two S7-1500 CPUs.
 This FAQ (https://support.industry.siemens.com/cs/ww/en/view/102020340) describes how to program and configure Modbus TCP communication between an S7-1500 CPU and an S7-1200 CPU.

Communication

86

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.8 Setting up communication via e-mail

6.8

Setting up communication via e-mail

Setting up a connection for e-mail via the user program For communication using e-mail, you need to create the data block of the relevant system data type yourself, assign parameters and call the instruction directly. This procedure is introduced below.
Procedure for setting up communication using e-mail A CPU can send e-mails. To send e-mails from the user program of the CPU, use the TMAIL_C instruction. Requirement: The SMTP server can be reached via the IPv4 network. 1. Configure an S7-1500 automation system with CPU in the network view of the Devices & networks editor of STEP 7. 2. Assign parameters to the instruction TMAIL_C, for example enter the subject of the e-mail in Subject. 3. In a global data block create a variable of the type TMAIL_v4, TMAIL_v6 (only CP 1543-1) or TMAIL_FQDN (only CP 1543-1). 4. Set the connecting parameters of the TCP connection in the variable in the "Start value" column. Enter the IPv4 address of the mail server, for example, for the "MailServerAddress" (for TMAIL_v4)
Note Connection parameter Interface ID Note that you can enter the value "0" for the interface ID with instruction version V5.0 or higher of the instruction TMAIL_C in the data type TMAIL_V4_SEC. In this case, the CPU itself searches for a suitable local CPU interface.
Interconnect the variable to the MAIL_ADDR_PARAM parameter of the TMAIL_C instruction. 5. Download the hardware configuration and user program to the CPU.
Additional information The STEP 7 online help describes:  The system data types  The instructions for open communication  The connection parameters

Communication

Function Manual, 11/2019, A5E03735815-AH

87

Open User Communication 6.9 Setting up communication via FTP

6.9

Setting up communication via FTP

Setting up a connection for FTP via the user program For communication via FTP, you need to create the data block of the relevant system data type yourself, assign parameters and call the instruction directly. This procedure is introduced below.
FTP client and server functionality Files can be sent by a CPU to an FTP server and can be received from the FTP server. Communication with FTP is only possible for the S7-1500 using the CP 1543-1. The CP can be an FTP server, FTP client or both. FTP clients can also be third-party systems/PCs.
For the FTP server functionality, configure the CP accordingly in STEP 7.
You can use the FTP client functionality to implement, for example, the establishment and termination of an FTP connection, the transfer and deletion of files on the server. For the FTP client functionality, use the FTP_CMD instruction.

Communication

88

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.9 Setting up communication via FTP
Procedure for setting up FTP server functionality Requirement: The FTP server can be reached via the IPv4 network. 1. Configure an S7-1500 automation system with CPU and CP 1543-1 in the device view of the Devices & networks editor of STEP 7. At the same time, you need to select the option "Permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, ...)" in the HW configuration of the S7-1500 CPU under the "Protection" area navigation in the section "Connection mechanisms". 2. Make the following settings in the properties of the CP under "FTP configuration": ­ Select the "Use FTP server for S7 CPU data" check box. ­ Assign the CPU, a data block and a file name under which the DB for FTP will be stored.

Figure 6-11 Setting up the FTP configuration
3. Download the hardware configuration to the CPU.

Communication

Function Manual, 11/2019, A5E03735815-AH

89

Open User Communication 6.9 Setting up communication via FTP
Procedure for setting up FTP client functionality Requirement: The FTP server can be reached via the IPv4 network. 1. Configure an S7-1500 automation system with CPU and CP 1543-1 in the device view of the Devices & networks editor of STEP 7. At the same time, you need to select the check box "Permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, ...)" in the HW configuration of the S7-1500 CPU under the "Protection" area navigation in the section "Connection mechanisms". 2. Call the FTP_CMD instruction in the user program of the CPU. 3. Set the connection parameters for the FTP server in the FTP_CMD instruction. 4. Create a global DB and within this DB a tag of the type FTP_CONNECT_IPV4, FTP_CONNECT_IPV6 or FTP_CONNECT_NAME. 5. Interconnect the tag within the data block with the FTP_CMD instruction. 6. For the connection to the FTP server, specify the following in the DB: ­ The user name, the password and the IP address for the FTP access in the relevant data type (FTP_CONNECT_IPV4, FTP_CONNECT_IPV6 or FTP_CONNECT_NAME) 7. Download the hardware configuration and user program to the CPU.
Application examples  Application example: FTP communication with S7-1500 and CP 1543-1 You can find the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/103550797).  Application example: FTP client communication with S7-1200/1500 You can find the application example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/81367009).
Additional information The STEP 7 online help describes:  The system data types  The instructions for open communication  The connection parameters

Communication

90

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.10 Establishment and termination of communications relations

6.10

Establishment and termination of communications relations

Establishment and termination of communications
The table below shows the establishment and termination of communications as part of open communication.

Table 6- 5 Establishment and termination of communications

Setting up the connection With the user program
By configuring a connection

Establishing communication

Terminating communication

After downloading the user program to the CPUs:

· Using the TSEND_C/TRCV_C, TDISCON and T_RESET instructions

The passive communications partner sets up · When the CPU changes from RUN to

the local connection access by calling TSEND_C/TRCV_C or TCON. Calling

STOP mode

TSEND_C/TRCV_C or TCON on the active · With POWER OFF/POWER ON on a

partner starts connection establishment. If

CPU

the connection could be established, there is

positive feedback to the instructions in the

user program.

After you have terminated a connection using the instruction T_RESET, the connection is reestablished.

If the connection aborts, the active partner attempts to re-establish the connection. This applies only if the connection was successfully established beforehand with TCON.

After downloading the connection configura- By deleting the connection configuration in

tion and the user program to the CPUs.

STEP 7 and downloading the changed con-

figuration to the CPU.

Communication

Function Manual, 11/2019, A5E03735815-AH

91

Open User Communication 6.11 Secure Open User Communication

6.11

Secure Open User Communication

6.11.1

Secure OUC of an S7-1500 CPU as TLS client to an external PLC (TLS server)
The following section describes how you can set up Open User Communication via TCP from an S7-1500 CPU as TLS client to a TLS server.

Setting up a secure TCP connection from an S7-1500 CPU as TLS client to a TLS server S7-1500 CPUs as of firmware version V2.0 support secure communication with addressing via a Domain Name System (DNS).
For secure TCP communication over the domain name you need to create a data block with the TCON_QDN_SEC system data type yourself, assign parameters and call it directly at one of the instructions TSEND_C, TRCV_C or TCON.
Requirements:
 Current date and time are set in the CPU.
 Your network includes at least one DNS server.
 You have configured at least one DNS server for the S7-1500 CPU.
 TLS client and TLS server have all the required certificates.
To set up a secure TCP connection to a TLS server, follow these steps:
1. Create a global data block in the project tree.
2. Define a tag of the data type TCON_QDN_SEC in the global data block.
The example below shows the global data block "Data_block_1" in which the tag "DNS ConnectionSEC" of the data type TCON_QDN_SEC is defined.

Figure 6-12 Data type TCON_QDN_SEC
92

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
3. Set the connection parameters of the TCP connection in the "Start value" column. Enter the fully qualified domain name (FQDN) of the TLS server, for example, for "RemoteQDN".
4. Set the parameters for secure communication in the "Start value" column. ­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case. ­ "ExtTLSCapabilities": If you enter the value 1, the client validates the subjectAlternateName in the X.509-V3 certificate of the server to verify the identity of the server. This validation is executed in the context of the instruction. ­ "TLSServerCertRef": ID of the X.509-V3 certificate (usually a CA certificate) that is used by the TLS client to validate the TLS server authentication. If this parameter is 0, the TLS client uses all (CA) certificates currently loaded in the client certificate store to validate the server authentication.
Figure 6-13 Certificate handling from the perspective of the S7-1500 as a TLS client
­ "TLSClientCertRef": ID of the own X.509-V3 certificate.

Communication

Function Manual, 11/2019, A5E03735815-AH

93

Open User Communication 6.11 Secure Open User Communication
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor. 6. Interconnect the CONNECT parameter of one of the instructions TSEND_C, TRCV_C or
TCON with the tags of the data type TCON_QDN_SEC. In the example below, the CONNECT parameter of the TCON instruction is interconnected with the tag "DNS connectionSEC" (data type TCON_QDN_SEC).
Figure 6-14 TCON instruction
Additional information You can find more information on the TCON_QDN_SEC system data type in the STEP 7 online help. For additional information on secure communication, refer to the section Secure Communication (Page 34).

Communication

94

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication

6.11.2

Secure OUC of an S7-1500 CPU as TLS server to an external PLC (TLS client)
The following section describes how you can set up Open User Communication via TCP from an S7-1500 CPU as TLS server to a TLS client.

Setting up a secure TCP connection via the domain name of the communication partner S7-1500 CPUs as of firmware version V2.0 support secure communication with addressing via a Domain Name System (DNS).
For secure TCP communication over the domain name you need to create a data block with the TCON_QDN_SEC system data type yourself, assign parameters and call it directly at one of the instructions TSEND_C, TRCV_C or TCON.
Requirements:
 Current date and time are set in the CPU.
 Your network includes at least one DNS server.
 You have configured at least one DNS server for the S7-1500 CPU.
 TLS client and TLS server have all the required certificates.
To set up a secure TCP connection to a TLS client, follow these steps:
1. Create a global data block in the project tree.
2. Define a tag of the data type TCON_QDN_SEC in the global data block.
The example below shows the global data block "Data_block_1" in which the tag "DNS ConnectionSEC" of the data type TCON_FDL_SEC is defined.

Figure 6-15 TCON_QDN_SEC_Server
3. Set the connection parameters of the TCP connection in the "Start value" column. Enter, for example, the local ID of the TCP connection for "ID".

Communication

Function Manual, 11/2019, A5E03735815-AH

95

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column. ­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case. ­ "TLSServerReqClientCert": Request for an X.509-V3 certificate from the TLS client. ­ "TLSServerCertRef": ID of the own X.509-V3 certificate.
Figure 6-16 Certificate handling from the perspective of the S7-1500 as TLS server
­ "TLSClientCertRef": ID of the X.509-V3 certificate (or a group of X.509-V3 certificates) that is used by the TLS server to validate TLS client authentication. If this parameter is 0, the TLS server uses all (CA) certificates currently loaded in the server certificate store to validate the client authentication.
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor. 6. Interconnect the CONNECT parameter of one of the instructions TSEND_C, TRCV_C or
TCON with the tags of the data type TCON_QDN_SEC. In the example below, the CONNECT parameter of the TCON instruction is interconnected with the tag "DNS connectionSEC" (data type TCON_QDN_SEC).

Figure 6-17 TCON instruction
96

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
Additional information You can find more information about the system data types TCON_QDN_SEC in the STEP 7 online help. For additional information on secure communication, refer to the section Secure Communication (Page 34).

6.11.3

Secure OUC between two S7-1500 CPUs
The following section describes how you can set Secure Open User Communication via TCP between two S7-1500 CPUs. In the process one S7-1500 CPU acts as TLS client (active establishing of the connection) and the other S7-1500 CPU as TLS server (passive establishing of the connection).

Setting up a secure TCP connection between two S7-1500 CPUs
For secure TCP communication between two S7-1500 CPUs you need to create a data block with the TCON_IP_V4_SEC system data type yourself in every CPU, assign parameters and call it directly at one of the instructions TSEND_C, TRCV_C or TCON.
Requirements:
 Current date and time are set in the CPU.
 Both S7-1500 CPUs have at least firmware version V2.0
 TLS client and TLS server have all the required certificates.

Figure 6-18 Certificate handling for Secure OUC between two S7-1500 CPUs

Communication

Function Manual, 11/2019, A5E03735815-AH

97

Open User Communication 6.11 Secure Open User Communication
Settings at the TLS client To set up a secure TCP connection in the TLS client, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TCON_IP_4_SEC in the global data block.
The example below shows the global data block "Data_block_1" in which the tag "SEC connection 1 TLS-Client" of the data type TCON_IP_V4_SEC is defined.

Figure 6-19 IP_V4_SEC_Client
3. Set the connection parameters of the TCP connection in the "Start value" column. For example, enter the IPv4 address of the TLS server for "RemoteAddress".
Note Connection parameter Interface ID Note that you can enter the value "0" for the interface ID in the data type TCON_IP_V4_SEC. In this case, the CPU itself searches for a suitable local CPU interface.

Communication

98

Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column. ­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case. ­ "TLSServerCertRef": Enter the value 2 (reference to the CA certificate of the TIA Portal project (SHA256) or the value 1 (reference to the CA certificate of the TIA Portal project (SHA1)). If you use a different CA certificate, enter the corresponding ID from the certificate manager of the global security settings. ­ "TLSClientCertRef": ID of the own X.509-V3 certificate.
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor. 6. Interconnect the CONNECT parameter of one of the instructions TSEND_C, TRCV_C or
TCON with the tags of the data type TCON_IP_V4_SEC.
Settings at the TLS server To set up a secure TCP connection in the TLS server, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TCON_IP_4_SEC in the global data block.
The example below shows the global data block "Data_block_1" in which the tag "SEC connection 1 TLS-Server" of the data type TCON_IP_V4_SEC is defined.

Figure 6-20 IP_V4_SEC_Server
3. Set the connection parameters of the TCP connection in the "Start value" column. For example, enter the IPv4 address of the TLS client for "RemoteAddress".

Communication

Function Manual, 11/2019, A5E03735815-AH

99

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column.
­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case.
­ "TLSServerReqClientCert ": Request for an X.509-V3 certificate from the TLS client. Enter the value "true".
­ "TLSServerCertRef": ID of the own X.509-V3 certificate.
­ "TLSClientCertRef": Enter the value 2 (reference to the CA certificate of the TIA Portal project (SHA256) or the value 1 (reference to the CA certificate of the TIA Portal project (SHA1)). If you use a different CA certificate, enter the corresponding ID from the certificate manager of the global security settings.
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor.
6. Interconnect the CONNECT parameter of one of the instructions TSEND_C, TRCV_C or TCON with the tags of the data type TCON_IP_V4_SEC.
In the example below, the CONNECT parameter of the TSEND_C instruction is interconnected with the "SEC connection 1 TLS client" tags (data type TCON_IP_4_SEC).

Figure 6-21 TSEND_C
Additional information You can find more information about the system data types TCON_IP_4_SEC in the STEP 7 online help. For additional information on secure communication, refer to the section Secure Communication (Page 34).

100

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication

6.11.4

Secure OUC via CP interface
The following sections describes the particular points to be taken into consideration in the case of Secure Open User Communication via a CP interface. At least one station is an S7-1500 station with the following modules:
 S7-1500 CPU as of firmware version V2.0 (with the exception of S7-1500 Software Controller)
 CP 1543-1 as of firmware version V2.0 or CP 1543SP-1 as firmware version V1.0
The CP acts in an S7-1500 station as a TLS client (active connection establishment) or a TLS server (passive connection establishment).
The fundamental procedure and the concept for using secure communication via a CP interface is similar to that of secure communication via the interfaces of the S7-1500 CPUs. Essentially, you have to assign the certificates to the CPU in the role of a TLS server or TLS client and not to the CPU. Other rules and procedures therefore apply. These are described below.

Handling certificates for CPs
The following applies in general: You have to be logged on at the certificate manager in the global security settings. The generation of self-signed certificates also requires logon for the global security settings. You have to have sufficient rights as a user (administrator or user with the "Standard" role with the right to "Configure security").
The starting point for the generation or assignment of certificates at the CP is the section "Security > Security properties". In this section, you log on for the global security settings.
Procedure:
1. In the network view of STEP 7, mark the CP and select the section "Security > Security properties" in the Inspector window.
2. Click on the "User logon" button.
3. Log on using your user name and password.
4. Enable the "Activate security functions" option.
The security properties are initialized.
5. Click in the first line of the "Device certificates" table to generate a new certificate or select an existing device certificate.
6. If the communication partner is also an S7-1500 station, you also have to assign a device certificate to the communication partner with STEP 7 as described here or for the S71500 CPU.

Communication Function Manual, 11/2019, A5E03735815-AH

101

Open User Communication 6.11 Secure Open User Communication
Example: Setting up a secure TCP connection between two S7-1500 CPUs via CP interfaces
For secure TCP communication between two S7-1500 CPs you need to create a data block with the TCON_IP_V4_SEC system data type yourself in every CPU, assign parameters and call it directly at one of the instructions TSEND_C, TRCV_C or TCON.
Requirements:
 Both S7 1500 CPUs have at least firmware version V2.0. If you use the CP 1543SP-1: Firmware version as of V1.0.
 Both CPs (for example CP 1543-1) must have at least firmware version V2.0
 TLS client and TLS server have all the required certificates.
­ A device certificate (end-entity certificate) for the CP must be generated and be located in the certificate memory of the CP. If a communication partner is an external device (for example an MES or ERP system), a device certificate also has to exist for this device.
­ The root certificate (CA certificate) with which the device certificate of the communication partner is signed must also be located in the certificate memory of the CP or in the certificate memory of the external device. If you use intermediate certificates, you have to ensure that the complete certificate path exists in the validating device. A device uses these certificates to validate the device certificate of the communication partner.
 The communication partner must always be addressed via its IPv4 address, not via its domain name.
The following figure shows the different certificates in the devices for the case that both communication partners communicate via a CP 1543-1. In addition, the figure shows the transfer of the device certificates during establishment of the connection ("Hello").

Figure 6-22 Certificate handling in secure OUC between two S7-1500 CPUs via CP interfaces.

102

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
Settings at the TLS client To set up a secure TCP connection in the TLS client, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TCON_IP_4_SEC in the global data block. To do so, enter
the string "TCON_IP_V4_SEC" in the "Data type" field. The example below shows the global data block "Data_block_1" in which the tag "SEC connection 1 TLS-Client" of the data type TCON_IP_V4_SEC is defined. The Interface ID has the value of the HW identifier of the IE interface of the local CP (TLS client).

Figure 6-23 IP_V4_SEC_Client
3. Set the connection parameters of the TCP connection in the "Start value" column. For example, enter the IPv4 address of the TLS server for "RemoteAddress".
4. Set the parameters for secure communication in the "Start value" column. ­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case. ­ "TLSServerCertRef": Enter the value 2 (reference to the CA certificate of the TIA Portal project (SHA256) or the value 1 (reference to the CA certificate of the TIA Portal project (SHA1)). If you use a different CA certificate, enter the corresponding ID from the certificate manager of the global security settings. ­ "TLSClientCertRef": ID of the own X.509-V3 certificate.

Communication Function Manual, 11/2019, A5E03735815-AH

103

Open User Communication 6.11 Secure Open User Communication
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor. 6. Interconnect the CONNECT parameter of one of the instructions TSEND_C, TRCV_C or
TCON with the tags of the data type TCON_IP_V4_SEC.
Settings at the TLS server To set up a secure TCP connection in the TLS server, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TCON_IP_4_SEC in the global data block.
The example below shows the global data block "Data_block_1" in which the tag "SEC connection 1 TLS-Server" of the data type TCON_IP_V4_SEC is defined. The interface ID has the value of the HW identifier of the IE interface of the local CP (TLS server).

Figure 6-24 IP_V4_SEC_Server
3. Set the connection parameters of the TCP connection in the "Start value" column. For example, enter the IPv4 address of the TLS client for "RemoteAddress".

104

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column.
­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case.
­ "TLSServerReqClientCert ": Request for an X.509-V3 certificate from the TLS client. Enter the value "true".
­ "TLSServerCertRef": ID of the own X.509-V3 certificate.
­ "TLSClientCertRef": Enter the value 2 (reference to the CA certificate of the TIA Portal project (SHA256) or the value 1 (reference to the CA certificate of the TIA Portal project (SHA1)). If you use a different CA certificate, enter the corresponding ID from the certificate manager of the global security settings.
5. Create one of the instructions TSEND_C, TRCV_C or TCON in the program editor.
6. Interconnect the CONNECT parameter of the instruction TSEND_C, TRCV_C or TCON with the tags of the data type TCON_IP_V4_SEC.
Upload device as new station
When you upload a configuration with certificates and configured secure Open User Communication as a new station into your STEP 7 project, the certificates of the CP are not uploaded, in contrast to the certificates of the CPU. After the device has been loaded as a new station, no more certificates are contained in the corresponding tables of the CPs for the device certificates.
You have to perform configuration of certificates again after the upload. Otherwise, renewed loading of the configuration results in the certificates that originally exist in the CP being deleted so that secure communication does not function.
Secure OUC connections via CPU and CP interfaces - similarities
 Connection resources: No differences between OUC and secure OUC. A programmed secure OUC connection uses a connection resource just like an OUC connection, irrespective of which IE/PROFINET interface communicates with the station.
 Connection diagnostics: No differences between OUC and secure OUC connection diagnostics.
 Loading of projects with secure OUC connections into the CPU: Only possible in STOP of the CPU, if certificates are loaded as well. Recommendation: Load to device > Hardware and software. Reason: Ensuring the consistency between the program with secure OUC, hardware configuration and certificates. Certificates are loaded with the hardware configuration - therefore loading requires a stop of the CPU. The reloading of blocks that utilize further secure OUC connections is only possible in RUN if the certificates required for this purpose are already located on the module.

Communication Function Manual, 11/2019, A5E03735815-AH

105

Open User Communication 6.11 Secure Open User Communication

6.11.5

Secure OUC with Modbus TCP
For secure Modbus TCP connection you need to create a data block with one of the system data types TCON_IP_V4_SEC or TCON_QDN_SEC yourself, assign parameters and call it directly at the MB_Server or MB_CLIENT instruction.

Requirements:

 S7-1500 CPU CPU firmware version V2.5 or higher
 The Modbus client (TLS client) can reach the Modbus server (TLS server) over IP communication in the network.
 TLS client and TLS server have all the required certificates.

Example of setting up a secure Modbus TCP connection to a Modbus TCP server
The following section describes how you can set up a Secure Open User Communication over Modbus TCP from a Modbus TCP client to a Modbus TCP server.
To set up a secure connection from a Modus TCP client (TLS client) to a Modbus TCP server (TLS server) and set up the IPv4 address of the mail server, follow these steps:
1. Create a global data block in the project tree.
2. Define a tag of the data type TCON_IP_V4 SEC in the global data block.

Figure 6-25 TCON_IP_V4_SEC
3. Set the connection parameters of the TCP connection in the "Start value" column. Enter the IPv4 address of the mail server, for example, for the "MailServerAddress".

106

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column. Enter the certificate ID of the CA certificate of the communication partner, for example, for "TLSServerCertRef".
­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. In this case you can set up an unsecured Modbus TCP connection.
­ "TLSServerCertRef": Reference to the X.509 V3 (CA) certificate of the Modbus TCP server, which is used by the TLS client to validate the authentication of the Modbus TCP server.
5. Create an MB_CLIENT instruction in the program editor.
6. Interconnect the CONNECT parameter of the MB_Client instruction with the tags of the data type TCON_IP_4_SEC.

6.11.6

Secure OUC via e-mail

Setting up a secure connection to a mail server over the CPU interface
For secure communication to a mail server you need to create a data block with one of the system data types TMAIL_V4_SEC, TMAIL_QDN_SEC yourself, assign parameters and call it directly at the TMAIL_C instruction.

Requirements:

 TMAIL_C instruction version V5.0 or higher  STEP 7 V15 and higher  S7-1500 CPU V2.5 and higher  You have assigned all the CA certificates of the mail server (TLS server) to the CPU (TLS
client) and have downloaded the configuration to the CPU.  Current date and time are set in the CPU.

Communication Function Manual, 11/2019, A5E03735815-AH

107

Open User Communication 6.11 Secure Open User Communication

Process for establishing a secure connection to the mail server
You can choose between two processes for establishing the secure connection to the mail server:
 SMTPS: The client attempts to immediately establish a TLS connection to the mail server ("handshake" process). If the mail server does not support TLS, then no connection is established.
 STARTTLS: Client establishes a TCP connection to the mail server. The client sends a request to "upgrade" the existing connection to a secure TLC connection over the TCP connection. If the mail server supports TLS, the client sends the command to establish a secure connection. The mail server uses the SMTP command "STARTTLS" to do this. The client then establishes a secure connection to the mail server. Advantage: If the mail server does not support TLS, client and mail server can communicate unsecured with each other.
You use the "Remote Port" setting in the data types at the block parameter "MAIL_ADDR_PARAM" to define which process is used for the communication.

Table 6- 6 Port numbers for the SMTPS and STARTTLS processes

Process SMTPS: STARTTLS

Port 4651 Any (465)2

1 The instruction TMAIL_C uses SMTPS only for Port 465. For all other ports STARTTLS is used.
2 According to RFC, mail servers use Ports 25 and 587 for secure connections with STARTTLS. The use of other port numbers for SMTP is not RFC-compliant, successful communication with such a mail server is not guaranteed.

108

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
Example: Setting up a secure connection to a mail server over IPv4 The following section describes how to set up a secure connection to an IPv4 mail server with the TMAIL_C communication instruction. To set up a secure connection via the IP4 address of the mail server, follow these steps: 1. Create a global data block in the project tree. 2. Define a tag of the data type TMAIL_V4_SEC in the global data block. The example below shows the global data block "MailConnDB" in which the tag "MailConnectionSEC" of the data type TMAIL_V4_SEC is defined.

Figure 6-26 Data type TMAIL_V4_SEC
3. Set the connection parameters of the TCP connection in the "Start value" column. Enter the IPv4 address of the mail server, for example, for the "MailServerAddress".
Note Connection parameter Interface ID Note that as of instruction version V5.0 of TMAIL_C instruction in the TMAIL_V4_SEC data type, you need to enter the value "0" for the Interface ID. In this case, the CPU itself searches for a suitable local CPU interface.

Communication Function Manual, 11/2019, A5E03735815-AH

109

Open User Communication 6.11 Secure Open User Communication
4. Set the parameters for secure communication in the "Start value" column. Enter the certificate ID of the CA certificate of the communication partner, for example, for "TLSServerCertRef".
­ "ActivateSecureConn": Activation of secure communication for this connection. If this parameter has the value FALSE, the subsequent security parameters are irrelevant. You can set up a non-secure TCP or UDP connection in this case.
­ "TLSServerCertRef": Reference to the X.509 V3 (CA) certificate of the mail server, which is used by the TLS client to validate the authentication of the mail server.
5. Create a TMAIL_C instruction in the program editor.
6. Interconnect the MAIL_ADDR_PARAM parameter of the TMAIL_C instruction with the tag of the data type TMAIL_V4_SEC.
In the following example the MAIL_ADDR_PARAM parameter of the TMAIL_C instruction is interconnected with the tag "MailConnectionSEC" (data type TMAIL_V4_SEC).

Figure 6-27 TMAIL_C instruction
Setting up a secure connection to a mail server over the interface of a communication module For secure communication to a mail server over a communication module, you need to create a data block with one of the system data types TMAIL_V4_SEC, TMAIL_QDN_SEC or TMAIL_V6_SEC yourself, assign parameters and call it directly at the TMAIL_C instruction. Requirements:  TMAIL_C instruction with version V4.0  S7-1500 CPU as of firmware version V2.0 with communication module CP 1543-1 as of firmware version V2.0  ET 200SP CPU as of firmware version V2.0 with communication module CP 1542SP-1 (IRC) as of firmware version V1.0  You have assigned all the CA certificates of the mail server (TLS server) to the CP (TLS client) and have downloaded the configuration to the CPU.  Current date and time are set in the CPU. The STEP 7 online help describes how to set up a secure connection to a mail server over the interface of a communication module.

110

Communication Function Manual, 11/2019, A5E03735815-AH

Open User Communication 6.11 Secure Open User Communication
Application example This application example (https://support.industry.siemens.com/cs/ww/en/view/46817803) show how you can use the CP of an S7-1500 or S7-1200 station to set up a secure connection to an email server and send an email with the default application "TMAIL_C" from the S7 CPU.
Additional information You can find more information about the system data types TMail_V4_SEC and TMAIL_QDN_SEC in the STEP 7 online help. For additional information on secure communication, refer to the section Secure Communication (Page 34).

Communication Function Manual, 11/2019, A5E03735815-AH

111

S7 communication

7

Characteristics of S7 communication S7 communication as homogeneous SIMATIC communication is characterized by vendorspecific communication between SIMATIC CPUs (not an open standard). S7 communication is used for migration and for connecting to existing systems (S7-300, S7-400). For data transfer between two S7-1500 automation systems, we recommend that you use open communication (see section Open User Communication (Page 65)).
Properties of S7 communication Using S7 communication, the CPU exchanges data with another CPU. Once the user has received the data at the receiver end, the reception data is automatically acknowledged to the sending CPU. The data is exchanged via configured S7 connections. S7 connections can be configured at one end or at both ends. S7 communication is possible via:  Integrated PROFINET or PROFIBUS DP interface of a CPU  Interface of a CP/CM
S7 connections configured at one end For an S7 connection configured at one end, the configuration for this connection takes place in only one communication partner and is only downloaded to it. A one-sided S7 connection can be configured to a CPU that is only a server of an S7 connection (e.g. CPU 315-2 DP). The CPU is configured and the address parameters and interfaces are thus known. In addition, a one-sided S7 connection can be configured to a partner who is not in the project and whose address parameters and interface and therefore are not known. You need to enter the address; it is not checked by STEP 7. The partner is initially unspecified (no partner address is registered when you create the S7 connection). Once you enter the address, it is "unknown" (i.e. it is named, but the project is unknown). This makes it possible to use S7 connections beyond the boundaries of a project. The communication partner is unknown to the local project (unspecified) and is configured in another STEP 7 or third-party project.
S7 connections configured at both ends When an S7 connection is configured at both ends, the configuration and download of the configured S7 connection parameters takes place in both communication partners.

112

Communication Function Manual, 11/2019, A5E03735815-AH

S7 communication
Instructions for S7 communication For S7 communication with S7-1500, the following instructions can be used:
 PUT/GET
You write data to a remote CPU with the PUT instruction. You can use the GET instruction to read data from a remote CPU. The PUT and GET instructions and are onesided instructions, i.e. you need only an instruction in one communication partner. You can can easily set up the PUT and GET instructions via the connection configuration.
Note Data blocks for PUT/GET instructions
When using the PUT/GET instructions, you can only use data blocks with absolute addressing. Symbolic addressing of data blocks is not possible.
You must also enable this service for protection in the CPU configuration in the "Protection" area.
This FAQ (https://support.industry.siemens.com/cs/ww/en/view/82212115) provides information about how to configure and program an S7 instruction and the GET and PUT communication instructions for data exchange between two S7-1500 CPUs.
 BSEND/BRCV
The BSEND instruction sends data to a remote partner instruction of the type BRCV. The BRCV instruction receives data from a remote partner instruction of the type BSEND. You use the S7 communication via the BSEND/BRCV instruction pair for secure transmission of data.
 USEND/URCV
The USEND instruction sends data to a remote partner instruction of the type URCV. The URCV instruction receives data from a remote partner instruction of the type USEND. You use the S7 communication via the USEND/URCV instruction pair for fast, non-secure transmission of data regardless of the timing of the processing by the communications partner; for example for operating and maintenance messages.

Communication Function Manual, 11/2019, A5E03735815-AH

113

S7 communication
S7 communication via PROFIBUS DP interface in slave mode You can find the "Test, commissioning, routing" check box in STEP 7 in the properties of the PROFIBUS DP interface of communications modules (e.g. CM 1542-5). Using this check box, you decide whether the PROFIBUS DP interface of the DP slave is an active or passive device on PROFIBUS.  Check box selected: The slave is an active device on PROFIBUS.  Check box cleared: The DP slave is a passive device on PROFIBUS. You can only set up S7 connections configured at one end for this DP slave.

Figure 7-1 "Test, commissioning, routing" check box
Configuring S7 connections for PUT/GET instructions You can create S7 connections and assign the parameters for these in the connection parameter assignment of the PUT/GET instructions. Changed values are checked immediately by the connection parameter assignment for input errors. Requirement: A PUT or GET instruction is created in the programming editor. To configure an S7 connection using PUT/GET instructions, follow these steps: 1. In the program editor, select the call of the PUT or GET instruction. 2. Open the "Properties > Configuration" tab in the inspector window.

114

Communication Function Manual, 11/2019, A5E03735815-AH

S7 communication
3. Select the "Connection parameters" group. Until you select a connection partner, only the empty drop-down list for the partner end point is enabled. All other input options are disabled. The connection parameters already known are displayed: ­ Name of the local end point ­ Interface of the local end point ­ IPv4 address of the local end point

Figure 7-2 Connection configuration for PUT instruction

Communication Function Manual, 11/2019, A5E03735815-AH

115

S7 communication

4. In the drop-down list box of the partner end point, select a connection partner. You can select an unspecified device or a CPU in the project as the communication partner.
The following parameters are automatically entered as soon as you have selected the connection partner:
­ Name of the partner end point
­ Interface of the partner end point. If several interfaces are available, you can change the interface as required.
­ Interface type of the partner end point
­ Subnet name of both end points
­ IPv4 address of the partner end point
­ Name of the connection which is used for the communication.
5. If required, change the connection name in the "Connection name" input box. If you want to create a new connection or edit an existing connection, click on the "Select connection" button on the right side next to the input box for the connection name.
Note
The PUT and GET instructions between two communication partners can only run if both the hardware configuration and the program part for the partner end point have been loaded into the hardware. To achieve fully functional communication, make sure that you load not only the connection description of the local CPU on the device but also that of the partner CPU as well.
Configuring S7 connections for e.g. BSEND/BRCV
If you want to use the instructions for BSEND/BRCV for S7 communication, for example, you first need to configure an S7 connection.
To configure a S7 connection, follow these steps:
1. Configure the communications partners in the network view of the Devices & networks editor of STEP 7.
2. Select the "Connections" button and the "S7 connection" entry from the drop-down list.
3. Using drag-and-drop, connect the communication partner with each other (via an interface or local end point). If the required S7 subnet does not yet exist, it is created automatically.
You can also set up a connection to unspecified partners.
4. In the "Connections" tab, select the row of the S7 connection.
5. Set the properties of the S7 connection in the "Properties" tab in the "General" area, for example the name of the connection and the interfaces of the communications partner that will be used.
For S7 connections to an unspecified partner, set the address of the partner. You can find the local ID (reference of the S7 connection in the user program) in the "Local ID" area.

116

Communication Function Manual, 11/2019, A5E03735815-AH

S7 communication
6. In the Project tree, select the "Program blocks" folder for one of the CPUs and open OB1 in the folder by double-clicking on it. The program editor opens.
7. In the program editor, call the relevant instructions for S7 communication in the user program of the communication partner (configured at one end) or in the user programs of the communication partners (configured at both ends). Select the BSEND and BRCV instructions from the "Communication" area of the "Instructions" task card, for example, and drag them to a network of OB1.
8. At the ID parameter of the instruction, assign the local ID of the configured connection to be used for the transmission of data.
9. Assign the parameters for the instructions indicating which data will be written to where and which data will be read from where.
10.Download the hardware configuration and user program to the CPU(s).
S7 communication via CP 1543-1 If you set up S7 communication via the Industrial Ethernet interface of the CP 1543-1, you can select the transport protocol for data transfer in the properties of the S7 connection under "General":  "TCP/IP" check box selected (default): ISO-on-TCP (RFC 1006): for S7 communication between S7-1500 CPUs  "TCP/IP" check box cleared: ISO protocol (ISO/IEC 8073): Addressing using MAC addresses

Figure 7-3 Selecting the CP 1543-1 transport protocol
Communication Function Manual, 11/2019, A5E03735815-AH

117

S7 communication
Procedure for setting up an S7 connection via different S7 subnets You have the option of using an S7 connection over multiple S7 subnets (PROFIBUS, PROFINET/Industrial Ethernet) (S7 routing (Page 289)). 1. Configure the communications partners in the network view of the Devices & networks editor of STEP 7. 2. Select the "Network" button. 3. Connect the relevant interfaces with the S7 subnets (PROFIBUS, PROFINET/Industrial Ethernet) using drag-and-drop.

118

Communication Function Manual, 11/2019, A5E03735815-AH

S7 communication
4. Select the "Connections" button and the "S7 connection" entry from the drop-down list. 5. Using drag-and-drop in our example, connect PLC_1 in the left S7 subnet (PROFIBUS) to
PLC_3 in the right S7 subnet (PROFINET). The S7 connection between CPU 1 and CPU 3 is configured.

Figure 7-4 S7 connections via different subnets
Communication Function Manual, 11/2019, A5E03735815-AH

119

S7 communication
ET 200SP Open Controller as router for S7 connections
If you assign the "PROFINET onboard [X2]" interface to the CPU 1515SP PC (F) of the SIMATIC PC station, the CPU 1515SP PC (F) can be used as a router for S7 connections. If you use the CP interface for "None, or a different Windows setting", you cannot use the Open Controller as a router for routed S7 connections.
An existing S7 connection routed by the CPU 1515SP PC (F) becomes invalid if the assignment of the interface of the CPU 1515SP PC (F) is changed from "SIMATIC PC station" to "None, or a different Windows setting". Since the PLC now no longer handles routing functions for this connection, when the CPU 1515SP PC (F) is compiled, no message relating to the invalid connection is displayed. The invalid routed S7 connection is displayed only when the end points of the connection are compiled.
The interfaces required for routed S7 connections must remain explicitly assigned on the CPU 1515SP PC (F) . You can edit the assignment of the interface of the CPU 1515SP PC (F) in the properties under "PROFINET onboard [X2] > Interface assignment".

Figure 7-5 S7 routing PC station
Additional information You can find detailed information on configuring S7 connections and how to use the instructions for S7 communication in the user program in the STEP 7 online help.

120

Communication Function Manual, 11/2019, A5E03735815-AH

Point-to-point link

8

Functionality

A point-to-point connection for S7-1500, ET 200MP and ET 200SP is established via communications modules (CMs) with serial interfaces (RS232, RS422 or RS485):
 S7-1500/ET 200MP:
­ CM PtP RS232 BA
­ CM PtP RS422/485 BA
­ CM PtP RS232 HF
­ CM PtP RS422/485 HF
 ET 200SP:
­ CM PtP
The bidirectional data exchange via a point-to-point connection works between communications modules or third-party systems or devices capable of communication. At least 2 communication partners are required for communication ("point-to-point"). With RS422 and RS485, more than two communications partners are possible.

Protocols for communication via a point-to-point connection  Freeport protocol (also called ASCII protocol)  Procedure 3964(R)  Modbus protocol in RTU format (RTU: Remote Terminal Unit)  USS protocol (universal serial interface protocol) The protocols use different layers according to the ISO/OSI reference model:  Freeport: Uses layer 1 (physical layer)  3964 (R), USS and Modbus: Use layer 1 and 2 (physical layer and data link layer; therefore greater transmission reliability than with Freeport). USS and Modbus use additionally layer 4.

Properties of the Freeport protocol
 The recipient recognizes the end of the data transfer by means of a selectable end criterion (e.g. character delay time elapsed, receipt of end character, receipt of a fixed amount of data).
 The sender cannot recognize whether the sent data arrived free of errors at the recipient.

Communication Function Manual, 11/2019, A5E03735815-AH

121

Point-to-point link
Properties of procedure 3964 (R)  When the data is sent, control characters are added (start, end and block check characters). Make sure that these control characters are not included as data in the frame.  Connection establishment and termination makes use of control characters.  If transfer errors occur, data transfer is automatically repeated.
Data exchange using Freeport or 3964 (R) communication The data to be sent is stored in the user program of the corresponding CPU in data blocks (send buffer). A receive buffer is available on the communications module for the received data. Check the properties of the receive buffer and adapt them if necessary. You must create a data block for receiving in the CPU. In the user program of the CPU, the "Send_P2P" and "Receive_P2P" instructions handle the data transfer between the CPU and CM.
Procedure for setting up Freeport or 3964 (R) communication 1. Configure an S7-1500 configuration with CPU and CM in the device view of the hardware and network editor of STEP 7. 2. Select the interface of the CM in the device view of STEP 7. 3. Assign the parameters of the interface (for example connection communication, configuration of message sending) in the Inspector window of STEP 7 under "Properties" > "General". 4. Select the "Send_P2P" or "Receive_P2P" instruction in the "Instructions" task card under "Communication" > "Communications processor" and drag-and-drop the instruction into the user program (for example into a FB). 5. Assign the parameters for the instructions according to your configuration. 6. Download the hardware configuration and user program to the CPU.
Otherwise: Dynamic parameter assignment of the communications module In certain types of application it is an advantage to set up communication dynamically; in other words, program-controlled by a specific application. Typical applications for this, could be, for example manufacturers of serial machines. To make the user interfaces as convenient as possible for their customers, these manufacturers adapt the communications services to the particular operator entries.

122

Communication Function Manual, 11/2019, A5E03735815-AH

Point-to-point link
Instructions for Freeport communication There are 3 instructions available for the dynamic configuration in the user program for Freeport communication. The following applies to all 3 instructions: the previously valid configuration data is overwritten but not stored permanently in the target system.  The "Port_Config" instruction is used for the program-controlled configuration of the relevant port of the communications module.  The "Send_Config" instruction is used for the dynamic configuration, for example of time intervals and breaks in transmission (serial transmission parameters) for the relevant port.  The "Receive_Config" instruction is used for dynamic configuration, for example of conditions for the start and end of a message to be transferred (serial receive parameters) for the relevant port.
Instructions for 3964 (R) communication There are 2 instructions available for dynamic configuration in the user program for 3964 (R) communication. The following applies to the instructions: the previously valid configuration data is overwritten but not stored permanently in the target system.  The "Port_Config" instruction is used for the program-controlled configuration of the relevant port of the communications module.  The "P3964_Config" instruction is used for the dynamic configuration of protocol parameters.
Properties of the USS protocol  Simple, serial data transfer protocol with cyclic message frame traffic in half duplex mode that is tailored to the requirements of drive technology.  Data transfer works according to the master-slave principle. ­ The master has access to the functions of the drive and can, among other things, control the drive, read status values and read and write the drive parameters.
Data exchange using USS communication The communications module is the master. The master continuously sends frames (job frames) to the up to 16 drives and expects a response frame from each addressed drive. A drive sends a response frame under the following conditions:  When a frame is received without errors  When the drive is addressed in this frame A drive must not send if these conditions are not met or the drive was addressed in the broadcast. The connection to the relevant drives exists for the master once it receives a response frame from the drive after a specified processing time (response delay time).

Communication Function Manual, 11/2019, A5E03735815-AH

123

Point-to-point link
Procedure for setting up USS communication 1. Configure an S7-1500 configuration with CPU and CM in the device view of the hardware and network editor of STEP 7. 2. In the Project tree, select the "Program blocks" folder and open OB1 in the folder by double-clicking on it. The program editor opens. 3. Select the instructions for USS communication according to your task in the "Communication" area, "Communications processor" folder of the "Instructions" task card and drag them to a network of OB1: ­ The "USS_Port_Scan" instruction allows you to communicate via the USS network. ­ The "USS_Drive_Control" instruction prepares send data for the drive and evaluates the response data of the drive. ­ The "USS_Read_Param" instruction is used to read out parameters from the drive. ­ The "USS_Write_Param" instruction is used to change parameters on the drive. 4. Assign the parameters for the instructions according to your configuration. 5. Download the hardware configuration and user program to the CPU.
Properties of the Modbus protocol (RTU)  Communication takes the form of serial, asynchronous transfer with a transmission speed of up to 115.2 kbps, half duplex.  Data transfer works according to the master-slave principle.  The Modbus master can send jobs for reading and writing operands to the Modbus slave: ­ Reading inputs, timers, counters, outputs, memory bits, data blocks ­ Writing outputs, memory bits, data blocks  Broadcast to all slaves is possible.
Data exchange using Modbus communication (RTU) The communications module can be a Modbus master or Modbus slave. A Modbus master can communicate with one or more Modbus slaves (the number depends on the physical interface). Only the Modbus slave explicitly addressed by the Modbus master is permitted to return data to the Modbus master. The slave detects the end of the data transfer and acknowledges it. If an error occurs, it provides an error code to the master.

124

Communication Function Manual, 11/2019, A5E03735815-AH

Point-to-point link
Procedure for setting up Modbus communication (RTU) 1. Configure an S7-1500 configuration with CPU and CM in the device view of the hardware and network editor of STEP 7. 2. In the Project tree, select the "Program blocks" folder and open OB1 in the folder by double-clicking on it. The program editor opens. 3. Select the instructions for Modbus communication according to your task in the "Communication" area, "Communications processor" folder of the "Instructions" task card and drag them to a network of OB1: ­ The "Modbus_Comm_Load" instruction configures the port of the CM for Modbus communication. ­ The "Modbus_Master" instruction is used for Modbus master functionality. ­ The "Modbus_Slave" instruction is used for Modbus slave functionality. 4. Assign the parameters for the instructions according to your configuration. 5. Download the hardware configuration and user program to the CPU.
Additional information  You can find more detailed information on communication via point-to-point connections and basics of serial data transmission in the function manual CM PtP communication module - Configurations for point-to-point connections (http://support.automation.siemens.com/WW/view/en/59057093).  You can find a description of how to use the instructions for point-to-point connections in the user program in the STEP 7 online help.  You can find information about the communications modules with a serial interface in the manual of the particular communications module.

Communication Function Manual, 11/2019, A5E03735815-AH

125

OPC UA communication

9

9.1

What you need to know about OPC UA

9.1.1

OPC UA and Industrie 4.0

Uniform standard for information and data exchange
Industry 4.0 stands for the intensive utilization, evaluation and analysis of the large volumes of data from production in IT systems at the enterprise level. With Industry 4.0, data exchange between the production and enterprise levels is rapidly increasing. However, a prerequisite for success is a uniform standard for the information and data exchange.
Classic OPC only runs on Windows operating systems. To get around this restriction, the OPC Foundation developed the OPC UA (OPC Unified Architecture) standard.
The OPC UA standard is particularly suitable for data exchange across different levels thanks to its independence from specific operating systems, its secure transfer procedures and the semantic description of data. Machine data (controlled variables, measured values or parameters) can also be transferred in this way.
An important component of this concept is that OPC UA communication can take place in parallel with real-time communication for time-critical, machine-level data transfer.
OPC UA is highly scalable so that a consistent information exchange between sensors, controllers and MES or ERP systems is possible.
OPC UA makes available not only data but also information about the data (data types), at the same time making possible machine-interpretable access to the data.

9.1.2

General features of OPC UA

OPC UA and PROFINET
OPC UA and PROFINET can be used together. The two protocols use the same network infrastructure.

Independence from the operating system
The OPC UA standard is platform-independent and uses an optimized TCP-based binary protocol for high-performance applications.
OPC UA can be used, for example, under Windows, Linux, Mac OS X, a realtime operating system or a mobile operating system (Android or iOS).

126

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA
Independence of a specific transport layer OPC UA currently supports the following transport mechanisms and protocols:  The transfer of messages as a binary stream directly via TCP/IP  The transfer of messages with XML via TCP/IP and HTTP. This transport mechanism allows only a slow transfer and is therefore almost never used. S7-1500 CPUs do not support this transport mechanism. Binary data exchange is supported by all OPC UA applications (required in OPC UA specification).
Simple client-server principle An OPC UA server provides a great deal of information within a network, e.g. relating to the CPU, the OPC UA server itself, the data and the data types. An OPC UA client accesses this information.
Implementation in different programming languages The OPC Foundation has implemented the OPC UA standard in several programming languages: Stacks for .NET, ANSI C and Java are available, although maintenance has been discontinued for the stacks for ANSI C and Java. The OPC Foundation offers the .NET stack as well as example programs as open source software. See Github (https://github.com/opcfoundation). A number of companies offer Software Development Kits (SDK). These development packages contain the stacks of the OPC Foundation and other functionalities that facilitate the development of solutions. Advantages of using SDKs:  Support from the supplier  Tested software  Detailed documentation  Clear license conditions (important for selling of solutions)

Communication Function Manual, 11/2019, A5E03735815-AH

127

OPC UA communication 9.1 What you need to know about OPC UA

Scalability

OPC UA can be used for devices of different performance classes:
 Sensors
 Embedded systems
 Controllers
 PC systems
 Smartphones
 Servers running MES or ERP applications.
The performance class of the devices is differentiated by profiles. Different OPC UA profiles offer the possibility to scale OPC UA for very small and simple devices as well as for very high-performance devices.
An OPC UA profile describes functions and services that must be supported by the server and client. In addition, other functionalities/services that are not required by the profile can be optionally provided.
OPC UA profiles differ from PROFINET profiles; the latter define additional cross-vendor properties and behavior for installations and systems in the sense of a vendor-neutral software interface.
Nano Embedded Device 2017 Server Profile
For the smallest devices with severely limited functionality, there is the "Nano Embedded Device 2017 Server Profile" of the OPC Foundation. This profile is functionally equivalent to the core server facet and defines the OPC UA TCP binary protocol as the required transport profile. The profile allows for connections without UA Security and does not allow subscriptions or method calls. Support for diagnostic objects and variables is optional for this profile.
Additional profiles build on the "Nano Embedded Device 2017 Server Profile", requiring more resources and offering more functionality.
Micro Embedded Device 2017 Server Profile
This profile provides limited functionality; it requires at least two parallel connections. Additionally, it allows subscriptions/data monitoring, but no UA Security and no method calls.
 S7-1200 Basic Controllers support the "Micro Embedded Device 2017 Server Profile". The S7-1200 additionally supports UA Security.
Embedded 2017 UA Server Profile
This profile has been developed for devices with more than 50 MB RAM and a more highperformance processor. It is based on the Micro Embedded Device Server profile. In addition, it requires UA security and method calls.
In addition, the servers must make their used type model (data types, reference types, variable types, etc.) available.
 S7-1500 Advanced Controllers support the "Embedded 2017 UA Server Profile".

128

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

Standard and global discovery profiles
The "OPC UA Specification Part 7" defines additional profiles:
 The "Standard 2017 UA Server Profile", which is suitable for PC-based OPC UA servers
 2 global profiles, "Global Discovery Server 2017 Profile" and "Global Discovery and Certificate Management 2017 Server Profile", that cover the required service and information models of a Global Discovery Server

Type-instance concept
OPC UA offers a fully networked (full-meshed network), object-oriented information model for namespaces, including metadata for the object description. Any object structures can be generated via referencing of the instances among each other and their types. Because servers disclose their instance and type systems, clients can navigate through this network and obtain all the information they need. Both instances and their type definitions are available in runtime.
Procedures or concepts on how to handle references to types are optimized over time. These optimizations lead to new versions of the OPC UA Specification (e.g. V1.03 => V1.04).

PLC tag mapping
The information of the OPC UA server (for example the PLC tags) is modeled as nodes connected to one another via references. The semantics are displayed by the server in the address space and can be acquired by clients (while navigating). This makes it possible to browse from node to node with an OPC UA client and find out what content can be read, monitored or written.

Integrated security mechanisms
OPC UA uses security mechanisms at various levels:
 A secure connection can only be established between an OPC UA server and an OPC UA client if the client and server can register with X.509-v3 certificates and accept each other's certificates (security at the application level). Various security policies are possible, including an unsecured connection between server and client (Security Policy: "No security").
 A server can always request the following information from the user for authorized access (authentication):
- A user certificate (not configurable in STEP 7)
- User name and password
- No user authorization
The security mechanisms are optional and configurable.

See also

OPC Foundation (https://opcfoundation.org)

Communication Function Manual, 11/2019, A5E03735815-AH

129

OPC UA communication 9.1 What you need to know about OPC UA

9.1.3

OPC UA for S7-1200/S7-1500 CPUs
In OPC UA, one system operates as a server and provides data the existing information to other systems (clients).
OPC UA clients, for example, have read and write access to data on an OPC UA server. OPC UA clients call methods on the OPC UA server.
You can access this data online with a client, including e.g. information on performance and diagnostics. In OPC UA terminology, this function is called "Browsen". The "Subscription" function eliminates regular reading of a tag; with this function, the server informs a client about value changes.
A system can be both a client and a server at the same time.

OPC UA server of the S7-1500 CPU
As of firmware version 2.0, an S7-1500 CPU is equipped with an OPC UA server.
The following sections describe how you configure the OPC UA server of the S7-1500 CPU to make data and methods available for OPC UA clients so that clients have read or write access to PLC tags on the CPU and can call server methods.
The following sections also set out how to integrate companion specifications into the address space of the OPC UA server.

OPC UA server of the S7-1200 CPU
As of firmware V4.4, an S7-1200 CPU is equipped with an OPC UA server.
The OPC UA server is generally configured as it is for an S7-1500 CPU; the scope of functions and the quantity limits are limited according to the supported "Micro Embedded Device 2017 Server Profile". Unlike for an S7-1500 CPU, the following functions are not available:
 Server methods
 Structured data type (structures and arrays)
 Registered Read and Registered Write
You can find additional information in the STEP 7 online help.

OPC UA client of the S7-1500 CPU
As of firmware version V2.6, an S7-1500 CPU is additionally equipped with an OPC UA client.
The following sections show how to use standardized instructions (PLCopen function blocks) to create a user program that, as an OPC UA client, provides the following functions:
 Reading data from an OPC UA server
 Writing data to an OPC UA server
 Calling methods of an OPC UA server
STEP 7 (TIA Portal) assists you in creating user programs by providing an editor for client interfaces and a parameter assignment for OPC UA connections.
The OPC UA instructions for an S7-1500 CPU as client are described in detail in the help to the instructions (Instructions > Communication > OPC UA).

130

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA
OPC UA client for test purposes The following description uses various different OPC UA clients to illustrate the use of OPC UA clients:
 "UaExpert" of Unified Automation. An extensive client that can be used free of charge: Link for downloading UaExpert (https://www.unified-automation.com/downloads/opc-uaclients.html)
 "UA Sample Client" of the OPC Foundation. This client is available free of charge for users who are registered with the OPC Foundation : Link for downloading the example client of the OPC Foundation (https://opcfoundation.org)
Application example in Industry online support Siemens Industry Online Support provides a free application example with a client API for various applications. You use the functions of this interface to create your own OPC UA clients that match your application. To simplify handling the API, we offer a higher-level .NET helper class.
The client API is based on the .NET OPC UA stack of the OPC Foundation.
The application example shows how to establish connections between servers and clients, for example. It also demonstrates the reading and writing of PLC tags.
Link to download: OPC UA .NET client for the SIMATIC S7-1500 OPC UA Server (http://support.automation.siemens.com/WW/view/en/109737901)

9.1.4

Access to OPC UA applications
The access possibilities that an S7-1500 CPU with an OPC UA application (client or server) has via a CP in the same station are described below. In addition, an approach for combining these access possibilities with the "IP Forwarding" function to allow access to devices of another IP subnet via an S7-1500 station is presented.
All the settings for this can be found in the CPU properties, "Advanced configuration" area in the Inspector window.
The possibility of accessing the OPC UA application in the CPU via CP interface is subject to the following requirements:
 S7-1500 CPU (except S7-1500 R/H) as of firmware version V2.8
 CP 1543-1 firmware version V2.2 or higher

Communication Function Manual, 11/2019, A5E03735815-AH

131

OPC UA communication 9.1 What you need to know about OPC UA
Principle: Interface for access via communication module For a CPU application, such as OPC UA, to be accessed via CP interface, you must configure a virtual interface (W1). IP-based applications can then be accessed via the IP address parameters of this virtual interface. The schematic is shown in the following figure.

 CPU S7-1500 FW V2.8 or higher (e.g. CPU 1515-2 PN)  CP 1543-1 (FW V2.2 or higher)  Virtual interface (W1)  Protocol conversion PROFINET / Industrial Ethernet on backplane bus or backplane bus on PROFINET / Industrial
Ethernet
 Backplane bus
Figure 9-1 Principle: Interface for access via communication module

132

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA
Example: Access of OPC UA clients to the OPC UA server of the CPU For access of an OPC UA client to the OPC UA server of the CPU, the following interfaces of the S7-1500 station are available:  The local PROFINET interfaces of the S7-1500 CPU  The Ethernet interface of a CP 1543-1 (firmware version V2.2 and higher) The following figure shows an example of a possible configuration: The CPU could also have the role OPC UA client and the device on the subnet of the CP could have the role OPC UA server.

Figure 9-2 Example: Access of OPC UA clients to the OPC UA server of the CPU

Communication Function Manual, 11/2019, A5E03735815-AH

133

OPC UA communication 9.1 What you need to know about OPC UA
Example: Access of OPC UA clients to OPC UA servers via S7-1500 CPU with activated IP Forwarding
OPC UA client and OPC UA server can also be connected to one another via an S7-1500 CPU, in which case the S7-1500 CPU operates as an IP Forwarder. This configuration option allows for flexible expansion of existing systems.

Figure 9-3 Example: Access of OPC UA clients to OPC UA servers via S7-1500 CPU with activated IP Forwarding
Additional information Additional information on access options via the virtual interface and via IP forwarding can be found in the following sections:  IP forwarding (Page 294)  Virtual interface for IP-based applications (Page 303)

134

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

9.1.5

Addressing nodes
Nodes are the basic elements of OPC UA, they are comparable with objects from objectoriented programming. Nodes are used, for example, for user data (tags) or other metadata. Nodes are used to model an OPC UA address space that also contains a type model with type definitions.

Node ID (NodeId)
Nodes in the OPC UA address space are uniquely identified by a NodeId (Node Identifier).
The NodeId consists of an identifier, identifier type and a namespace index. Namespaces are used to avoid naming conflicts.
The OPC Foundation has defined a wide range of nodes that provide information about the given OPC UA server. These nodes can be found in the namespace of the OPC Foundation and have the index 0.
The OPC Foundation also defines data types and tag types.

Namespace (Namespace)
In addition to the above-described namespace of the OPC Foundation, the namespace for accessing CPU data is of interest: All the tags or methods of an S7-1500 OPC UA server are contained in the namespace (Namespace) of the standard server interface "http://www.siemens.com/simatic-s7-opcua".
By default this namespace has the Index 3. The index may change later if additional namespaces are inserted into the server or if existing ones are deleted. It is therefore necessary for an OPC UA client to request the current index of the namespace (e.g. "http://www.siemens.com/simatic-s7-opcua") from the server before reading or writing its values.
The following figure shows an example of the result of such a request.

Communication Function Manual, 11/2019, A5E03735815-AH

135

OPC UA communication 9.1 What you need to know about OPC UA

Identifier

The Identifier corresponds to the name of the PLC tag in quotation marks. The quotation mark is the only sign that is not permitted as part of a name in STEP 7. Quotation marks avoid naming conflicts.
The following example reads the value of the "StartTimer" tag:

The Identifier can consist of several components. The individual components are then separated by a dot.
The following example reads the "MyDB" array data block completely. This data block contains an array with ten integer values. All ten values should be read in one pass. Therefore, "0:9" is entered at the array range.

Example of NodeIds, identifiers and namespaces
The following figure illustrates the relation between NodeIds, identifiers and namespaces: It is no problem if two nodes have the same identifiers but belong to different namespaces.
STEP 7 (TIA Portal) allows you to easily import namespaces via a server interface.

136

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA
PLC tags in the address space of the OPC UA server The figure below shows where the PLC tags in the example are located in the address space of the OPC UA server (excerpt from UA client): The "MyDB" data block is a global data block. The data block is therefore located below the node "DataBlocksGlobal". "StartTimer" is a memory tag and is therefore stored below the "Memory" node.

Figure 9-4 PLC tags in the address space of the OPC UA server

Communication Function Manual, 11/2019, A5E03735815-AH

137

OPC UA communication 9.1 What you need to know about OPC UA
Methods in the address space of the OPC UA server If you implement a method via your user program, it takes the following form in the address space of the OPC UA Server (see Providing methods on the OPC UA server (Page 227)):

Figure 9-5 Methods in the address space of the OPC UA server

138

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

9.1.6

What you need to know about OPC UA clients

Basics of OPC UA clients OPC UA clients are programs that do the following:  Access the information from an OPC UA server (for example an S7-1500 CPU): read/browse access, write access, subscriptions  Execute methods through the OPC UA server However, OPC US clients can only access data that is enabled for this purpose (see "Managing write and read rights (Page 165)"). You need the endpoint of the server to establish a connection to an OPC UA server (see "Endpoints of the OPC UA servers (Page 161)").
Reading out information from the OPC UA server When a connection to an end point of the server exists, you can use the navigation function of the client: You navigate starting from a defined starting point (from the "root" node) through the address space of the server. The following information is provided in the process:  Enabled PLC tags, data blocks and data block components  Namespace index and identifiers of these PLC tags, data blocks and DB components  Data types of the PLC tags and DB components  Number of components in arrays (required for reading and writing arrays) In addition, you receive information about the OPC UA server itself as well as information about the S7-1500 based on the "OPC UA for Devices" standard of the OPC Foundation (for example, serial number, firmware version).

Communication Function Manual, 11/2019, A5E03735815-AH

139

OPC UA communication 9.1 What you need to know about OPC UA
Reading data from the server and writing to the server You now know the namespace, identifier and data type of PLC tags. This means that you can now specifically read individual PLC tags and DB components as well as complete arrays and structures. You can find examples of the reading of Boolean tags and array data blocks in Addressing nodes (Page 135). Rules for access to structures are available here (Page 266). With the information that you obtain while navigating through the address space of the server (index, identifier and data type), you can also transfer values to the S7-1500 with the OPC UA client. The following example overwrites the first three values in the array data block "MyDB".
For "Array Range" you specify which components of the array you want to overwrite. The "Good" status code indicates that the values were transferred successfully. However, you can only write the values to the S7-1500 but not the time stamps of these values. The time stamps can only be read.
Faster access through registration Registered Read/Write lends itself to repeated, optimized access to data ­ with maximum performance. When tag nodes are registered, the OPC UA server creates a numerical Identifier (numerical NodeId) that directly references the registered node. For read or write jobs of the client to this numerical Identifier, the server does not have to resolve any strings as Identifier and can access the requested tag in an optimized manner. This Identifier applies solely to the current session and has to be queried again when the session connection is terminated/lost. In the following example, the "StartTimer" tag is first registered on the server. Afterwards, the rapid function "RegisteredWrite" is used for setting the value.

140

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

Subscription

In accordance with the same scheme, the "RegisteredRead" function can also be used, which is particularly useful for recurring data readouts. Take into account, however, that depending on the application it may be advisable to use a Subscription instead.
Recommendation: It is best to place registrations in the startup program of the OPC UA client, since the registration takes up time.
Please note that you can set the maximum number of registered nodes in the properties of the S7-1500 CPU and that the Clients have to respect this number, see General settings of the OPC UA server (Page 179).
The term "Subscription" is used for a function in which only those tags for which an OPC UA client has registered at the OPC UA server are transferred. The OPC UA server only sends a message to the OPC UA client for these registered tags (monitored Items) when a value has changed. The monitoring of these tags makes constant sampling by the OPC UA client (Polling)superfluous, which reduces the network load.
You have to create a Subscription to use this function. For this purpose, you specify the "Publishing Interval" at the UA client and click the "Create" button. The publishing interval is the time interval in which the server sends new values to the client in a notification (data change notification).
In the following example a subscription has been created: The client receives a message with the new values (publishing interval 50 ms) every 50 milliseconds here.

Preventing server overload
You can set the OPC UA server of the S7-1500 CPU by means of the "Minimum publishing interval" so that it does not serve extremely short send intervals requested by the client, see Settings of the server for subscriptions (Page 181).
Example: A client wants to be operated at a publishing interval of 50 ms as detailed above. Such a short publishing interval would, however, result in a high network and server load. You should therefore set 1000 ms as the "Minimum publishing interval" for the server. Clients whose subscription requires shorter publishing intervals are "slowed" to 1000 ms and the server is protected from overload.
Sampling and transmission (Sampling & Publishing) within the scope of a subscription are communication processes which, like other communication processes (TCP/UDP/Web server communication...), are processed by the CPU with priority 15. OBs with higher priority interrupt the communication. If you set the sampling and transmission intervals too short, this setting causes a high communication load. Therefore, select intervals as large as possible, which are still sufficient for the application.
For information about the consistency of tags, refer to Consistency of CPU tags (Page 171).

Communication Function Manual, 11/2019, A5E03735815-AH

141

OPC UA communication 9.1 What you need to know about OPC UA
Monitoring of PLC tags When the Subscription has been created, you inform the server which tags are to be monitored with it. In the following example, the "Voltage" tag was added to the subscription.

The "Voltage" tag contains the value of a voltage that is detected by an S7-1500 CPU.
The sampling interval ("Sampling Interval") contains a negative value (-1). This determines that the default setting of the OPC UA server is used for the sampling interval. The default setting is defined by the transmission interval ("Publishing Interval") of the subscription. If you want to set the smallest possible sampling interval, select the value "0".
In this example, the length of the queue is set to "1": Only one value is read from the CPU at an interval of 50 milliseconds and subsequently sent to the OPC UA client when the value has changed.
The "Deadband" parameter in this example is "0.1": Changes in value have to amount to 0.1 Volt; only then does the sender send the new value to the client. The server does not send smaller changes in value. You can use this parameter, for example, to disable signal noise: Slight changes in a process variable which do not have a real meaning.

9.1.7

Mapping of data types

SIMATIC and OPC UA data types
SIMATIC data types do not always correspond with OPC UA data types.
S7-1500 CPUs provide SIMATIC tags (with SIMATIC data types) to their own OPC UA server as OPC UA data types. OPC UA clients can then access these tags with OPC UA data types via the server interface.
A client can read the attribute "DataType" from such a tag and reconstruct the original data type in SIMATIC.

142

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

Example
A tag has the SIMATIC data type "COUNTER". You read COUNTER  UInt16 in the table. You now know that you do not need to convert; the COUNTER value is sent over the line as a UInt16 data type.
The client detects from the attribute "DataType" that the tag is actually the SIMATIC data type "COUNTER". With this knowledge, the client reconstructs the data type.

Table 9- 1 SIMATIC and OPC UA data types SIMATIC data type BOOL BYTE
WORD
DWORD
LWORD
SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL S5TIME
TIME
LTIME
DATE
TIME_OF_DAY (TOD)
LTIME_OF_DAY (LTOD)
DATE_AND_TIME (DT)
LDT

OPC UA data type Boolean BYTE  Byte WORD  UInt16 DWORD  UInt32 LWORD  UInt64 SByte Int16 Int32 Int64 Byte UInt16 UInt32 UInt64 Float Double S5TIME  UInt16 TIME  Int32 LTIME  Int64 DATE  UInt16 TOD  UInt32 LTOD  UInt64 DT  Byte[8] DateTime

Communication Function Manual, 11/2019, A5E03735815-AH

143

OPC UA communication 9.1 What you need to know about OPC UA

SIMATIC data type DTL Special note: You can only describe the structure completely with an OPC UA client. You have read-only access individual elements of this structure (e.g. "YEAR") CHAR
WCHAR
STRING (Code page 1252 or Windows-1252) WSTRING (UCS-2; Universal Coded Character Set) TIMER
COUNTER

OPC UA data type mapped as structure
CHAR  Byte WCHAR  UInt16 STRING  String String
TIMER  UInt16 COUNTER  UInt16

Arrays

A read or write job with OPC UA is always an array access, which means that it always has an index and length. A single tag is a special case of an array (index 0 and length 1). The data type is simply sent repeatedly on the line. For the tags, the "DataType" attribute indicates the basic data type. The attributes "ValueRank" and "ArrayDimensions" show whether or not you are dealing with an array and how large the array is.

Data types based on arrays
There are SIMATIC data types for which an OPC UA value is mapped to an array of bytes. An array of these data types is then mapped to a two-dimensional array.
Example: The SIMATIC data type DATE_AND_TIME (DT) is mapped on the OPC UA side to an 8-byte array (Byte[8]), see table above. When you define an array of the SIMATIC data type DATE_AND_TIME (DT), then it is considered as two-dimensional array.
This fact affects the use of system data types such as OPC_UA_NodeAdditionalInfo and OPC_UA_NodeAdditionalInfoExt, for example:
For the data types described above, you must use the system data type OPC_UA_NodeAdditionalInfoExt for multidimensional arrays instead of OPC_UA_NodeAdditionalInfo.

144

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.1 What you need to know about OPC UA

Structures

Structures are transferred as ExtensionObject. The S7-1500 server uses binary representation for transmission of the ExtensionObjects over the line; the individual structure elements come one after the other. At the front is the NodeId of the data type; this is used by the client to establish the structure.
For OPC UA Specification <= V1.03, a client has to read, decode and interpret the complete DataTypeDictionary for this (unless it has already learned this library offline through an XML import).
Starting in OPC UA V1.04, the DataTypeDescription attribute is also available for this, which can be read and interpreted more quickly and easily. A client only determines the setup of the structure once, before or during the first access, and then uses this information for the duration of the session.

Special SIMATIC data types
SIMATIC data types that are not in the table above and cannot be defined as elements of a structure or PLC data type are not supported by the OPC UA client.
These are, for example, "ANY" or "POINTER" pointers, function block "Block_FB", function "Block_FC" or hardware data type "REMOTE".
The selection of an unsupported data type leads to an error message.

Additional information
More details on mapping of basic data types, arrays and structures can be found in the OPC UA Specification Part 6, "Mappings" (see OPC UA BINARY there).
What must be considered with arrays and data types DTL and LDT in the OPC UA server of a SIMATIC S7-1500? FAQ (https://support.industry.siemens.com/cs/ww/en/view/109766726)

Communication Function Manual, 11/2019, A5E03735815-AH

145

OPC UA communication 9.2 Security at OPC UA

9.2

Security at OPC UA

9.2.1

Security settings

Addressing risks OPC UA allows the exchange of data between different systems, both within the process and production levels and to systems at the control and enterprise level.
This possibility also entails security risks. That is why OPC UA provides a range of security mechanisms:
 Verification of the identity of OPC UA server and clients.
 Checking of the identity of the users.
 Signed/encrypted data exchange between OPC UA server and clients.
These security policies should only be bypassed in cases where it is absolutely necessary:
 During commissioning
 In stand-alone projects without external Ethernet connection
If you have selected the endpoint "None" for "UA Sample Client" of the OPC Foundation, for example, the program issues a clear warning:

When STEP 7 compiles your project it also checks whether you have considered the setting options for the protection and warns you of possible risks. This also includes an OPC UA security policy with the setting "no security", which corresponds to the end point "None".
Note
Disabling security policies you do not want
If you have enabled all security policies in the secure channel settings of the S7-1500 OPC UA server ­ thus, also the end point "None" (no security) ­ unsecured data traffic (neither signed nor encrypted) between the server and client is also possible. The OPC UA server of the S7-1500 CPU also sends its public certificate to the client at "None" (No security). And some clients check this certificate. However, the client is not forced to send a certificate to the server. The identity of the client may possibly remain unknown. Each OPC UA client can then connect to the server irrespective of any subsequent security settings.
When configuring the OPC UA server, make sure that only security policies that are compatible with the security concept of your machine or plant are selected. All other security policies should be disabled.
Recommendation: Use the setting "Basic256Sha256 - Sign and Encrypt", which means that the server only accepts Sha256 certificates. The security policies "Basic128Rsa15" and "Basic256" are deactivated by default and should not be used as an end point. Select end points with a higher security policy.

146

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA
Additional security rules  Only use the end point "None" in exceptional cases.  Only use the "guest authentication" of the user in exceptional cases.  Only allow access to PLC tags and DB components via OPC UA if it is genuinely necessary.  Use the list of trusted clients in the settings of the S7-1500 OPC UA client to allow access to certain clients only.

9.2.2

Certificates pursuant to ITU X.509
Security mechanisms are integrated in several layers in OPC UA. Digital certificates have an important role here. An OPC UA client can only establish a secure connection to an OPC UA server when the server accepts the digital certificate of the client and classifies it as trusted.
See section Handling client and server certificates (Page 183).
The client must also check and trust the certificate of the server. The server and client must show their identities and prove that they are what they claim to be: They must prove their identity. Mutual authentication of client and server, for example, prevents man-in-the-middle attacks.

Man-in-the-middle attacks
A "man-in-the-middle" could have positioned itself between server and client. A man-in-themiddle is a program that intercepts communication between server and client and claims to be a client or server, and is thus able to obtain information about the S7 program or to set values in the CPU and attack a machine or plant.
OPC UA uses digital certificates that meet standard X.509 of the International Telecommunication Union (ITU).
This allows the identity of a program, a computer or an organization to be proven (authenticated).

Communication Function Manual, 11/2019, A5E03735815-AH

147

OPC UA communication 9.2 Security at OPC UA
X.509 certificates An X.509 certificate includes the following information:  Version number of the certificate  Serial number of the certificate  Information on the algorithm used by the certificate authority to sign the certificate.  Name of the certificate authority  Start and end of the validity period of the certificate  Name of the program, person or organization for which/whom the certificate has been signed by the certificate authority.  The public key of the program, person or organization. An X509 certificate thus links an identity (name of a program, person or an organization) to the public key of the program, person or organization.
Check during connection establishment When a connection is being established between the client and server, the devices check all information from the certificate that is required to determine its integrity, such as signature, period of validity, application name (URN) and, in case of firmware version V2.5 only, also the IP address of the client in the client certificate.
Note The validity period stored in the certificate is also checked. The CPU clock must therefore be set and date/time must be within the validity period, otherwise no communication takes place.

148

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA
Signing and encryption
To allow you to check whether a certificate has been manipulated, certificates are signed.
There are various possible procedures here:
 Within the TIA Portal you have the possibility to generate and sign certificates. If you have protected your project and are logged in as a user with the function right to make security settings, you can use the global security settings. The global security settings allow access to the certificate manager and therefore to the certificate authority (CA) of the TIA Portal.
 Additional options are available for creating and signing certificates. In the TIA Portal, you can import certificates into the global certificate manager.
­ You contact a certificate authority (CA) and have your certificate signed.
In this case, the certificate authority checks your identity and signs your certificate with the private key of the certificate authority. For this purpose you send a CSR (Certificate Signing Request) to the certificate authority.
­ You yourself create a certificate and sign it.
To this purpose you use, for example, the "Opc.Ua.CertificateGenerator" program of the OPC Foundation. Alternatively, you use OpenSSL. You can find additional information in Generating PKI key pairs and certificates yourself (Page 153).
Useful information: Certificate types
 Self-signed certificate:
Each device generates and signs its own certificate. Application examples: Static configuration with limited number of communication nodes.
No new certificates can be derived from a self-signed certificate. However, you need to load all self-signed certificates from partner devices to the CPU (STOP required).
 CA certificate:
All certificates are generated and signed by a certificate authority. Application examples: Dynamically growing plants.
You only need to download the certificate from the certificate authority to the CPU. The certificate authority can generate new certificates (partner devices can be added without CPU STOP).

Communication Function Manual, 11/2019, A5E03735815-AH

149

OPC UA communication 9.2 Security at OPC UA

Signing

The signature makes it possible to prove the integrity and source of a message as detailed below.
Signing starts with the sender creating a hash value from the plain text (plain text message). The sender then encrypts the hash value with its private key and subsequently transfers the plain text together with the encrypted hash value to the recipient. To verify the signature, the recipient needs the public key of the sender (this is contained in the X509 certificate of the sender). The recipient uses the sender's public key to decrypt the hash value received. The recipient then forms the hash value themselves from the plain text received (the hash process is contained in the sender's certificate). The recipient compares the two hash values:
 If the two hash values are identical, the plain text message has reached the receiver unchanged and has not been manipulated.
 If the two hash values do not match, the plain text message has not reached the receiver unchanged. The plain text message has been manipulated or has been distorted during transfer.

Encryption

Encrypting data prevents unauthorized parties from reading the content. X509 certificates are not encrypted; they are public and can be viewed by anyone.
Encryption involves the sender encrypting the plain text message with the public key of the recipient. To do so, the sender requires the recipient's X509 certificate, as it contains the public key of the recipient. The recipient decrypts the message with their private key. Only the recipient can decrypt the message: They alone hold the private key. The private key must therefore never be disclosed.

Secure channel
OPC UA uses the private and public key of client and server to establish a secure connection, the secure channel. Once the secure connection has been established, the client and server generate an internal key only known to them which they both use for signing and encrypting messages. This symmetric process (a shared key) is much faster than asymmetric processes (private and public key).

See also

Creating self-signed certificates (Page 152) Certificates with OPC UA (Page 151) Secure Communication (Page 34) Using certificates with TIA Portal (https://support.industry.siemens.com/cs/ww/en/view/109769068)

150

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA

9.2.3

Certificates with OPC UA

Usage of X509 certificates with OPC UA OPC UA uses various types of X.509 certificates for establishing a connection from client to server:  OPC UA application certificates Such X.509 certificates identify the software instance, the installation of client or server software. For the "Organization name" attribute, you enter the name of the company that uses the software.
Note The OPC UA server of the S7-1500 uses application certificates even for the security setting "None" (no security). This ensures compatibility to OPC UA V1.1 and earlier versions.
 OPC UA software certificates This X-509 certificate identifies a specific version of the client or server software. These certificates contain attributes that describe which tests this version of the software has passed during certification by the OPC Foundation (or recognized test laboratories). For the "Organization name" attribute, you enter the name of the company that has developed or markets the software.
Note Software certificates are not supported in STEP 7.
 OPC UA user certificates This X.509 certificate identifies the specific user who, for example, retrieves process data from the OPC UA server of an S7-1500 CPU. This certificate is not required if the user can authenticate itself with a password, or if anonymous access is configured.
Note User certificates are not supported in STEP 7.
These certificates are end-entity certificates: They identify, for example, a person, an organization, a company or an instance (installation) of a software.

Communication Function Manual, 11/2019, A5E03735815-AH

151

OPC UA communication 9.2 Security at OPC UA

9.2.4

Creating self-signed certificates

Using the client's certificate generator
Many OPC UA client applications or SDKs are integrated in a sample application that allows you to generate certificates for the client from this application.
The description for certificate generation can generally be found in the context for describing the OPC UA client application.
Example client from the online support
The OPC UA .NET client for the SIMATIC S7-1500 OPC UA server (https://support.industry.siemens.com/cs/ww/en/view/109737901) creates a self-signed software certificate of the client application in the Windows Certificate Store during the first program start. The documentation for this example describes the procedure for handling these certificates.

Using the certificate generator of the TIA Portal
If you use an OPC UA client that does not generate a client certificate, you can create selfsigned certificates with STEP 7.
To do this, follow these steps:
1. In the properties of the CPU, double-click "<Add new>" under "Protection & Security > Certificate manager > Device certificates".
2. Click "Add".
3. In the "Create a new certificate" dialog, select the "OPC UA client" option for "Usage".
4. Click "OK".
In the field "Subject Alternative Name" STEP 7 automatically enters the URI for the generated certificate. In the program-specific certificate generation by means of the .NET stack of the OPC Foundation, the field is called, for example, "ApplicationUri" - it can have a different name in other tools for certificate generation.

See also

Handling of the client certificates of the S7-1500 CPU (Page 272)

152

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA

9.2.5

Generating PKI key pairs and certificates yourself
This section is only relevant if you want to use an OPC UA client that cannot itself create a PKI key pair and a client certificate. In this case, you generate a private and a public key using OpenSSL, generate an X.509 certificate, and sign the certificate yourself.

Using OpenSSL
OpenSSL is a tool for Transport Layer Security that you can use to create certificates. You can also use other tools, for example XCA, a type of key management software with a graphical user interface for an improved overview of certificates issued.
To work with OpenSSL under Windows, follow these steps:
1. Install OpenSSL under Windows. If you are using a 64-bit version of the operating system, install OpenSSL in the "C:\OpenSSL-Win64" directory, for example. You can obtain OpenSSL-Win64 as a download from various providers for open source software.
2. Create a directory, for example "C:\demo".
3. Open the command prompt. To do so, click "Start" and enter "cmd" or "command prompt" in the search field. Right-click "cmd.exe" in the results list and run the program as an administrator. Windows opens the command prompt.
4. Change to the "C:\demo" directory. To do this, enter the following command: "cd C:\demo".
5. Set the following network variables:
­ set RANDFILE=c:\demo\.rnd
­ set OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
The figure below shows the command line with the following commands:

6. Now start OpenSSL. If OpenSSL has been installed in the C:\OpenSSL-Win64 directory, enter the following: C:\OpenSSL-Win64\bin\openssl.exe The figure below shows the command line with the following command:

Communication Function Manual, 11/2019, A5E03735815-AH

153

OPC UA communication 9.2 Security at OPC UA
7. Generate a private key. Save the key to the "myKey.key" file. The key in this example is 1024 bits long; for greater RSA security, use 2048 bits in practice. Enter the following command: "genrsa -out myKey.key 2048" ("genrsa -out myKey.key 1024" in the example). The figure below shows the command line with the command and the output of OpenSSL:
8. Generate a CSR (Certificate Signing Request). To do this, enter the following command: "req -new -key myKey.key -out myRequest.csr". During execution of this command, OpenSSL queries information about your certificate: ­ Country name: for example "DE" for Germany, "FR" for France ­ State or province name: for example "Bavaria". ­ Location Name: for example "Augsburg". ­ Organization Name: Enter the name of your company. ­ Organizational Unit Name: for example "IT" ­ Common Name: for example "OPC UA client of machine A" ­ Email Address:
Note Note for S7-1500 CPU as server with firmware version V2.5 The IP address of the client program has to be stored in the "Subject Alternative Name" field of the created certificate for S7-1500 CPUs version V2.5 (only for this version); otherwise, the CPU will not accept the certificate.
The information you enter is added to the certificate. The figure below shows the command line with the command and the output of OpenSSL:

The command creates a file in the C:\demo directory containing the Certificate Signing Request (CSR); in the example, this is "myRequest.csr".

154

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA

Using the CSR

There are two ways to use a CSR:
 You send the CSR to a certificate authority (CA): Read the information of the respective certification authority. The certificate authority (CA) checks your information and identity (authentication) and signs the certificate with the private key of the certificate authority. You receive the signed X.509 certificate and use this certificate for OPC UA, HTTPS or Secure OUC (secure open user communication), for example. Your communication partners use the public key of the certificate authority to check whether your certificate was really issued and signed by that CA (i.e. that the certificate authority has confirmed your information).
 You sign the CSR yourself: Using your private key. This option is shown in the next step.

Signing the certificate yourself
Enter the following command so that you can generate and sign your certificate (self-signed certificate) yourself: "x509 -req -days 365 -in myRequest.csr -signkey myKey.key -out myCertificate.crt".
The figure below shows the command line with the command and OpenSSL:

See also

The command generates an X.509 certificate with the attributes that you transfer with the CSR (in the example "myRequest.csr"), for example with a validity of one year (-days 365). The command also signs the certificate with your private key ("myKey.key" in the example). Your communication partners can use your public key (contained in your certificate) to check that you are in possession of the private key that belongs to this public key. This also prevents your public key from being misused by an attacker. With self-signed certificates, you yourself confirm that the information in your certificate is correct. There is no independent body that checks your information.
Handling of the client certificates of the S7-1500 CPU (Page 272)

Communication Function Manual, 11/2019, A5E03735815-AH

155

OPC UA communication 9.2 Security at OPC UA

9.2.6

Secure transfer of messages

Establishing secure connections with OPC UA
OPC UA uses secure connections between client and server. OPC UA checks the identity of the communication partners. OPC UA uses certificates in accordance with X.509-V3 from the ITU (International Telecommunication Union) for client and server authentication. Exception: A secure connection is not established with the "No security" security policy.

Message security mode
OPC UA uses the following security policies to protect messages:
 No security
All messages are unsecured. In order to use this security policy, establish a connection to a None end point of a server.
 Signing
All message are signed. This allows the integrity of the messages received to be checked. Manipulations are detected. In order to use this security policy, establish a connection to a Sign end point of a server.
 Sign & Encrypt
All messages are signed and encrypted. This allows the integrity of the messages received to be checked. Manipulations are detected. What is more, no attacker can read the content of the message (protection of confidentiality). In order to use this security policy, establish a connection to a "SignAndEncrypt" end point of a server.
The security policies are also named according to the algorithms used. Example: "Basic256Sha256 - Sign & Encrypt" means: Secure endpoint, supports a series of algorithms for 256-bit hashing and 256-bit encryption.

156

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.2 Security at OPC UA
Layers required The figure below shows the three layers that are always required for establishing a connection: the transport layer, the secure channel and the session.

Figure 9-6 Necessary layers: transport layer, secure channel and session
 Transport layer:
This layer sends and receives messages. OPC UA uses an optimized TCP-based binary protocol here. The transport layer is the basis for the subsequent secure channel.
 Secure channel
The secure channel receives the data received from the transport layer, and forwards that data to the session. The secure channel forwards data of the session that is to be sent to the transport layer.
In "Sign" security mode, the secure channel signs the data (messages) that is sent. When a message is received, the secure channel checks the signature to detect any manipulations.
With a "SignAndEncrypt" security policy, the secure channel signs and encrypts the send data. Data received is decrypted by the secure channel, and the secure channel then checks the signature.
With the "No security" security policy, the message packages pass the secure channel unchanged (the messages are received and sent in plain text).
 Session
The session forwards the messages from the secure channel to the application, or receives from the application the messages that are to be sent. The application uses the process values or provides the values.

Communication Function Manual, 11/2019, A5E03735815-AH

157

OPC UA communication 9.2 Security at OPC UA
Establishing the secure channel The secure channel is established as follows: 1. The server starts establishing the secure channel when it receives a request to this effect from the client. This request is signed or signed and encrypted, or the message is sent in plain text (security mode of the selected server end point). With "Sign" and "Sign & Encrypt", the client sends a "secret" (random number) with the request. 2. The server validates the client certificate (contained in the request, unencrypted) and checks the identity of the client. If the server trusts the client certificate, ­ it decrypts the message and checks the signature ("Sign & Encrypt"), ­ checks the signature only ("Sign"), ­ or leaves the message unchanged ("No security") 3. The server then sends a response to the client (same level of security as the request). The server secret is contained in the response. The client and server calculate a symmetric key from the client and server secret. The secure channel is now established. The symmetric key (instead of the private and public key of client and server) is now used for signing and encrypting messages.
Establishment of the session The session is executed as follows: 1. The client starts establishing the session by sending a CreateSessionRequest to the server. This message contains a Nonce, a random number that is only used once. The server must sign this random number (Nonce) to prove that it is the owner of the private key. The private key belongs to the certificate that the server uses to establish the secure channel. This message (and all subsequent messages) is secured in line with the security policies of the selected server endpoint (selected security policies). 2. The server responds with the CreateSession Response. This message contains the public key of the server and the signed Nonce. The client checks the signed Nonce. 3. If the server passes the test, the client sends a SessionActivateRequest to the server. This message contains the information that is required for user authentication: ­ User name and password, or ­ X.509 certificate of the user (not supported in STEP 7), or ­ No data (if anonymous access is configured). 4. If the user has the necessary rights, the server returns a message to the client (ActivateSessionResponse). This activates the session. The secure connection between the OPC UA client and server has been established.
Establishing a connection to PLCopen function block The PLCopen specification defines a range of IEC 61131 function blocks for OPC UA clients. The instruction UA_Connect initiates both a secure channel and a session following the pattern described above.

158

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3

Using the S7-1500 as an OPC UA server

9.3.1

Interesting information about the OPC UA server of the S7-1500 CPUs

9.3.1.1

The OPC UA server of the S7-1500 CPUs
The S7-1500 CPUs as of firmware V2.0 are equipped with an OPC UA server. Apart from the Standard-S7-1500 CPUs this applies to the variants S7-1500F, S7-1500T, S7-1500C, S7-1500pro CPUs, ET 200SP CPUs, SIMATIC S7-1500 SW controllers and PLCSIM Advanced.
Convention: "S7-1500 CPUs" also includes the above-mentioned CPU variants.

S7-1500 CPU OPC UA server basics
Access to the OPC UA server of the CPU is possible via all integrated PROFINET interfaces of the S7-1500 CPU.
Direct access to the OPC UA server of the CPU over the backplane bus of the automation system is not possible via CPs under the following conditions:
 Configuration with TIA Portal Version V16 or higher
 S7-1500 CPU firmware version 2.8 or higher and CP 1543-1 firmware version V2.2 or higher
For configuration, see Access to OPC UA applications (Page 131).
Direct access to the OPC UA server of the CPU over the backplane bus of the automation system is not possible via CMs.
For access by clients, the server saves the enabled PLC tags and other information in the form of nodes (see Configuring access to PLC tags (Page 165)). These nodes are interconnected and form a network. OPC UA defines access points to this network (wellknown nodes) that enable navigation to subordinate nodes.
With an OPC UA client you can read, observe or write values of tags of the PLC program as well as call methods that are available to the server. As of firmware version 2.5 you can implement methods, see Useful information about server methods (Page 227).

Communication Function Manual, 11/2019, A5E03735815-AH

159

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Node classes

OPC UA servers provide information in the form of nodes. A node can be, for example, an object, a tag, a method or a property.
The example below shows the address space of the OPC UA server of an S7-1500 CPU (extract from the OPC UA client "UaExpert" from Unified Automation).

Figure 9-7 Example of the address space of the OPC UA server of an S7-1500 CPU
In the figure above, the "MyValue" tag is selected (highlighted in gray). This tag is located below the "Memory" node, which has the node class "Object". "Memory" is below the "PLC_1" node (also an Object).

Address space

The nodes are linked over references, for example, the reference "HasComponent, which represents a hierarchical relationship between a node and its subordinate nodes. With their references, the nodes form a network that can, for example, take the form of a tree.
A network of nodes is also called an address space. Starting from the root, all nodes can be reached in the address space.

160

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.1.2

End points of the OPC UA server
The end points of the OPC UA server define the security level for a connection. Depending on the purpose of use or desired security level, you have to carry out the corresponding settings for the connection at the end point.

Different security settings
Before establishing a secure connection, OPC UA clients ask the server with which security settings connections are possible. The server returns a list with all the security settings (endpoints) that the server offers.

Structure of end points End points consist of the following components:  Identifier for OPC: "opc.tcp"  IP address: 192.168.178.151 (in the example)  Port number for OPC UA: 4840 (standard port) The port number can be configured.  Security setting for messages (Message Security Mode): None, Sign, SignAndEncrypt.  Encryption and hash procedures (Security Policy): None, Basic128Rsa15, Basic256, Basic256Sha256 (in the example). The following figure shows the "UA Sample Client" of the OPC Foundation. The client has established a secure connection to the OPC UA server of an S7-1500 CPU to the end point "opc.tcp://192.168.178.151:4840 - [SignAndEncrypt: Basic256Sha256:Binary]". The security settings "SignAndEncrypt:Basic256Sha256" are contained in the end point.
Note Select an endpoint with as strict as possible a security policy Select an application-appropriate security policy for the end point and disable the less strict security policy at the OPC UA server. A Sha256 certificate is required for the most secure end points (Basic256Sha256) of the S71500 CPU OPC UA server.

Communication Function Manual, 11/2019, A5E03735815-AH

161

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Figure 9-8 "UA Sample Client" program of the OPC Foundation
A connection to a server end point is only established if the OPC UA client complies with the security policies of that end point.
Through the information provided by the OPC UA server OPC UA servers provide a wide range of information:  The values of PLC tabs and DB components which clients may access.  The data types of these PLC tags and DB components.  Information on the OPC UA server itself and on the CPU. This gives clients an overview and allows them to read out specific information. Previous knowledge of the PLC program and the CPU data is not required. You do not need to ask the developer of the PLC program when PLC tags are to be read. All necessary information is stored on the server itself (for example, the data types of the PLC tags).

162

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Display of the information of the OPC UA server
You have the following options:
 Online: You have all the available information displayed during the runtime of the OPC UA server. To do so, navigate (browse) the address space of the server.
 Offline: You export an XML file that is based on the XML schemes of the OPC Foundation.
Server methods created by the user (FB instance that can be called by an OPC UA client) are not exported as of STEP 7 V15.1), see Providing methods on the OPC UA server (Page 227).
 Offline with the Openness API: In your program, you use the API (Application Programming Interface) of the TIA Portal to access the function for exporting all PLC tags that can be read by OPC UA. This requires .NET Framework 4.0; see TIA Portal Openness, Automating SIMATIC projects with scripts (https://support.industry.siemens.com/cs/ww/en/view/109477163).
 If you already know the syntax and the PLC program, you can access the OPC UA server without first researching the information.

9.3.1.3

Runtime behavior of the OPC UA server

OPC UA server in operation
The OPC UA server of the S7-1500 CPU starts when you activate the server and download the project to the CPU.
How to activate the OPC UA server is described here.
Behavior in the operating state STOP of the CPU
An activated OPC UA server remains in operation even if the CPU switches to "STOP". The OPC UA server continues to respond to requests from OPC UA clients.
Server response in detail:
 If you request the values of PLC tags, you will get what were the latest values before the CPU switched to or was set to "STOP".
 If you write values to the OPC UA server, the OPC UA server will accept those values.
However, the CPU will not process the values because the user program is not executed in "STOP" mode.
An OPC UA client can nonetheless read the values written at STOP from the OPC UA server of the CPU.
During restart, the CPU overwrites the values written at STOP with the start of the PLC tags.
 If you call a server method, the error message 16#00AF_0000 (BadInvalidState) is output because the server method (user program) is not running.
 Connections to the OPC UA server remain active during an operating mode transition (STOP > RUN or RUN > STOP). Exception: OPC UA-relevant data is loaded, see next section.

Communication Function Manual, 11/2019, A5E03735815-AH

163

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Download to the CPU may affect OPC UA server
If you load a CPU with running OPC UA server, you may need to stop and restart the server depending on the loaded objects. In this case, active connections are interrupted and must be re-established once the server restarts.
The duration of the restart depends mainly on the following parameters:
 The scope of the data structure
 The number of variables visible in the OPC UA address space
 The setting for downward compatible data type definition according to OPC UA specification to V1.03 (TypeDictionary enabled)
 Settings for the communication load and minimum cycle time, you can find additional information here (Page 284)
With CPU FW versions older than V2.8, the OPC UA server was stopped at each download to the CPU and then restarted.
As of FW version V2.8, the behavior of the OPC UA server has been optimized as follows:
 When objects are downloaded in STOP operating state of the CPU, the OPC UA server still always stops and then restarts. STEP 7 does not show a warning in this case.
 When objects are downloaded in RUN operating state of the CPU, the OPC UA server only stops if the downloaded objects are, or could be, OPC UA-relevant. The OPC UA server restarts after re-initialization due to the modified OPC UA data.
Before OPC-UA-relevant objects are loaded into the CPU and stop the OPC UA server, STEP 7 displays a warning in the preview dialog for loading. You can then decide whether a server restart is compatible for the running process or whether you want to cancel the download. These warnings are only displayed when the OPC UA server is running. If the OPC UA server is not enabled, modified OPC UA data have no influence on the download process.
Examples
 You only want to add another code module to the program. Neither data blocks nor inputs, outputs, flags, times or counters are affected. Reaction during loading: A running OPC UA server is not interrupted.
 You want to load a new data module and you have flagged the data module as non-OPCUA-relevant: Reaction during loading: A running OPC UA server is not interrupted.
 You want to overwrite a data module. Reaction during loading: A warning appears that the server will be restarted. Background: STEP 7 cannot determine whether the changes refer to OPC-UA-relevant data or not.

164

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Reading CPU operating mode over OPC UA server The OPC UA server allows you to read out the CPU mode, see figure below:

Figure 9-9 Reading CPU operating mode over OPC UA server
In addition to the operating mode of the CPU you can, for example, read out information in the manual (DeviceManual) or firmware version (HardwareRevision).

9.3.2

Configuring access to PLC tags

9.3.2.1

Managing write and read rights

Enabling PLC tags and DB tags for OPC UA
OPC UA clients can have read and write access to PLC tags and DB tags if the tags are enabled for OPC UA (default setting). For an enabled tag the check box "Accessible from HMI/OPC UA" is activated.
You can change the default setting in the settings of the TIA Portal: Command "Settings > PLC programming > General" in "Options" menu. You will find the corresponding options in the "Block interface/data block elements" area.

Communication Function Manual, 11/2019, A5E03735815-AH

165

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
The following example shows an array data block:

Figure 9-10 Enabling PLC tags and DB tags for OPC UA tags
This array can be read completely in one pass by OPC UA clients (see Addressing nodes (Page 135)). The check boxes at "Accessible from HMI/OPC UA" and "Writable from HMI/OPC UA" are activated for all the components of the array. Result: OPC UA clients can both read and write these components.

Removing write rights
If you want to write-protect a tag, deselect the "Writable from HMI/OPC UA" option for that tag. This removes the write right for the OPC UA clients and HMI devices.
Result: Only read access by OPC UA clients and HMI devices is possible. OPC UA clients cannot assign values to this tag and therefore cannot influence execution of the S7 program.

Removing write and read rights To write-protect and read-protect a tag, disable the "Accessible from HMI/OPC UA" option for that tag (checkbox not selected). This makes the OPC UA server remove the tag from its address space. OPC UA clients can no longer see that CPU tag. Result: OPC UA clients and HMI devices can neither read nor write the tag.
Write and read rights of structures If you remove the read or write right for the component of a structure, the structure or the data block cannot be written or read as a whole. If you remove read and write rights for individual components of a PLC data type (UDT), the rights will also be removed from any data block based on that data type!
Visible in HMI engineering The option "Visible in HMI Engineering" applies to Siemens engineering tools. If you disable the option "Visible in HMI Engineering" (check mark not set), you can no longer configure the tag in WinCC (TIA Portal). The option does not have any effect on OPC UA.

166

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Rules

 Only allow read access to PLC tags and tags of data blocks in STEP 7 if this is necessary for communication with other systems (controllers, embedded systems or MES).
You should not enable other PLC tags.
 Only allow write access over OPC UA if write rights are genuinely necessary for specific PLC tags and tags of data blocks.
 If you have reset the "Accessible from HMI/OPC UA" option for all elements of a data block, the data block for an OPC UA client is no longer visible in the address space of the OPC UA server of the S7-1500 CPU.
 You can also prevent access to an entire data block centrally (see Managing write and read rights for a complete DB (Page 167)). This setting "overrules" the settings for the components in the DB editor.

See also

Coordinating write and read rights for CPU tags (Page 169)

9.3.2.2

Managing write and read rights for a complete DB

Hiding DBs or DB contents for OPC UA clients
You can easily prevent access to a complete data block by an OPC UA client.
With this option, the data of the corresponding DB, including instance DBs of function blocks, remains hidden for OPC UA clients.
In the default setting, data blocks can be read and written from OPC UA clients. You can change this default setting in the settings of the TIA Portal: Command "Settings > PLC programming > General" in "Options" menu. You will find the corresponding option in the "Default settings for new blocks" area.

Procedure

Proceed as follows to completely hide a data block for OPC UA clients or to protect a data block from write access from OPC UA clients:
1. Select the data block to be protected in the project tree.
2. Select the "Properties" shortcut menu.

Communication Function Manual, 11/2019, A5E03735815-AH

167

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
3. Select the "Attributes" area. 4. Select/clear the "DB accessible from OPC UA" checkbox as required.

Figure 9-11 Hiding DBs or DB contents for OPC UA clients
Note Effect on settings in the DB editor If you hide a DB using the DB attribute described here, the settings for the components in the DB editor are no longer relevant; individual components can no longer be accessed or written.
Tip: Using the overview of all program blocks If you are using multiple data blocks, it is appropriate to use the detailed overview of the "Program blocks" folder for selective activation or deactivation of the OPC UA accessibility. Follow these steps: 1. Select the "Program blocks" folder in the project tree. 2. Select the "Overview" command in the "View" menu. 3. Select the "Details" tab. An overview of the blocks with their attributes is displayed. 4. Ensure that the "Data block accessible via OPC UA" column is selected. 5. Select only the data blocks that are to be accessible via OPC UA.

Figure 9-12 Overview of the program blocks
168

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.2.3

Coordinating write and read rights for CPU tags

Definition of write and read rights in the information model (OPC UA XML) In the OPC UA information model, the attribute "AccessLevel" regulates access to tags. AccessLevel is defined bit by bit: Bit 0 = CurrentRead and Bit 1 = CurrentWrite. The meaning of the bit combinations is as follows:  AccessLevel = 0: no access  AccessLevel = 1: read only  AccessLevel = 2: write only  AccessLevel = 3: read+write
Example of the assignment of write and read rights (read+write)

Definition of write and read rights in STEP 7 When you define tags, you specify the access rights using the properties "Accessible from HMI/OPC UA" and "Writable from HMI/OPC UA".
Example of the assignment of write and read rights

Figure 9-13 Example of the assignment of write and read rights
Interaction between write and read rights If you have imported an OPC UA server interface and AccessLevel attributes are set in this OPC UA XML file, the write and read rights are defined by the following rule: The least extensive access rights for each setting apply.
Example  AccessLevel = 1 (read only) in the OPC UA server interface  Both "Accessible from HMI/OPC UA" and "Writable from HMI/OPC UA" are selected in
the PLC tag table Result: This tag can only be read.

Communication Function Manual, 11/2019, A5E03735815-AH

169

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Rules

If write rights are required:  AccessLevel = 2 oder 3  "Writable from HMI/OPC UA" enabled If read rights are required:  AccessLevel = 1 (AccessLevel 3 is also possible, but misleading. The settings suggests
that an OPC UA client has write and read rights)  "Accessible from HMI/OPC UA" enabled, "Writable from HMI/OPC UA" disabled If neither read nor write rights are to be granted (no access):  AccessLevel = 0  "Accessible from HMI/OPC UA" disabled
Only one of the two conditions needs to be met to block all access. In this case, review whether the tag in the OPC UA server interface is actually necessary at all.

Access table

"Accessible from HMI/OPC UA" must be set if access over OPC UA is to be possible at all. "Writable from HMI/OPC UA" must be set to allow an OPC UA client to write a tag / DB element.
Please see the table for the resulting access right.

Table 9- 2 Access table

OPC UA XML AccessLevel
0 x 1 2 3 2 3
(x = don't care)

STEP 7 (TIA Portal), for example tag table

Accessible from HMI/OPC UA

Writable from HMI/OPC Resulting access right UA

x

x

No access

0

x

No access

Enabled

x

Read only

Enabled

Disabled

No access

Enabled

Disabled

Read only

Enabled

Enabled

Write only

Enabled

Enabled

Read+write

See also

Consistency of CPU tags (Page 171) Managing write and read rights (Page 165)

170

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.2.4

Consistency of CPU tags

"AccessLevelEx" attribute extends access properties
As of firmware version V2.6, the OPC UA server of the S7-1500 CPU supports not only the attribute "AccessLevel" (see Coordinating write and read rights for CPU tags (Page 169)) but also the attribute "AccessLevelEx" which, in addition to the already explained bits for read access and write access, provides information on the consistency of a OPC UA tag. The new attribute was introduced with version V1.04 of the OPC UA specification (Part 3, Address Space Model).

Reading consistency properties In the OPC UA information model of the OPC UA server, the attribute "AccessLevel" defines the access. AccessLevelEx is defined bit by bit; in this case the relevant bits are:  Bit 0 = CurrentRead  Bit 1 = CurrentWrite  Bits 2 to 7 are not relevant for the OPC UA server of an S7-1500 CPU The meaning of the bit combinations is explained in the section on read and write rights. The following bits for consistency are also added:  Bit 8 = NonatomicRead; the bit is set if the tag cannot be read consistently. For read consistency of tags, bit 8=0.  Bit 9 = NonatomicWrite; is set if the tag cannot be written consistently. For write consistency of tags, or if no write access is granted, bit 9=0.
Examples An OPC UA tag (structure) is readable and writable; but inconsistent for reading and writing access. Consequently: Bits 0, 1, 8 and 9 are set: AccessLevelEx = "771" (1+2+256+512). Another structure is read-only. Consequently: Bits 0 and 8 are set, bit 1 and bit 9 are not set: AccessLevelEx = "257" (1+0+256+0).

Communication Function Manual, 11/2019, A5E03735815-AH

171

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Handling of the attribute in the server The "AccessLevelEx" attribute is only available in the OPC UA server. The attribute is not present in a node set file (XML export file). However, the attribute "AccessLevel", which is exported, includes the information from "AccessLevelEx", see next section.
Export During XML export of the standard SIMATIC server interface, the server sets the "AccessLevel" attribute, which was expanded to 32 bits in V1.04 compared to V1.03, to the value of the "AccessLevelEx" attribute.
Import When importing a node set file (e.g. from an export of a server interface), the S7-1500 CPU sets the attribute "AccessLevelEx" according to its own estimate of the consistency of the imported data type, see next section. The imported value is ignored.
Consistency of data types at the server interface The consistency of tags ("atomicity" in the language usage of OPC UA) within a program cycle of an S7-1500 CPU is ensured at the nodes of the server interface for the following data types:  BOOL, BYTE, WORD, DWORD, LWORD  SINT, INT, LINT, DINT, USINT, UINT, ULINT, UDINT  REAL, LREAL  DATE, LDT, TIME, LTIME, TIME_OF_DAY, LTIME_OF_DAY, S5TIME  CHAR, WCHAR  System data types and hardware data types that are based on the above-mentioned data types are also consistent. Example: HW_ANY, derived from UINT (UInt16). Tip: If you browse in the address space of the S7-1500 CPU (e.g. with the OPC UA Client UaExpert), you can find the consistent data types under Types > BaseDataType > Enumeration/Number/String.
Tags of the following data types are not consistent ("nonatomic" in the language usage of OPC UA):  SIMATIC structures are generally not consistent. This means that all tags which, for
example, have unknown structures or a UDT data type are not consistent.  System data types such as DTL, IEC_Counter, IEC_TIMER, etc. are data types that are
derived from structures. Tip: If you browse in the address space of the S7-1500 CPU (e.g. with the OPC UA Client UaExpert), you can find data types based on structures under Types > BaseDataType > Structure.

172

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.2.5

Accessing OPC UA server data

High performance in line with application
OPC UA is designed for the transfer of a high volume of data within a short period of time. You can increase the performance significantly if you do not access individual PLC tags, but rather read and write arrays and structures as a whole.
It is fastest to access arrays. Therefore, you should combine the data for OPC UA clients into arrays.
Recommendations for access to the OPC UA server by the OPC UA client
 For one-off or infrequent data access, use standard read/write access.
 For cyclic access to small amounts of data (up to ca. every 5 seconds), use subscriptions.
Optimize the settings for the smallest publishing interval and the smallest sampling interval at the OPC UA server.
 If you access specific tags regularly (recurring access), you should use the functions "RegisteredRead" and "RegisteredWrite".
Allow a greater communication load for the PLC by increasing the value for "Cycle load due to communication". Make sure that your application still works properly with the changed settings.

Procedure for creating an array DB You can create arrays for example in global data blocks, in the instance data block of a function block or as an array DB . The following sections describe how to create an ArrayDB. To create a data block with an array (array data block), follow these steps: 1. Select the CPU with the OPC UA server in the project tree. 2. Double-click "Program blocks". 3. Double-click "Add new block". 4. Click "Data block". 5. Select a unique name for the data block and accept the name that is already entered. 6. Select the "Array DB" entry from the drop-down list for "Type". 7. Select the data type for the individual components of the array from the drop-down list for "Array data type". 8. Enter the high limit of the array for "Array limit". 9. Click "OK".

Communication Function Manual, 11/2019, A5E03735815-AH

173

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.2.6

MinimumSamplingInterval attribute

MinimumSamplingInterval attribute of tags
In addition to "Value", "DataType" and "AccessLevel", you can also set the "MinimumSamplingInterval" attribute for a tag in the XML file that represents the server address space.
The attribute specifies how fast the server can sample the tag value.
The OPC UA server of the S7-1500 CPU handles the values for MinimumSamplingInterval as follows:
 Negative values and values greater than 4294967 are set to -1; this means: The minimum sampling rate is indeterminate. The server does not specify how fast the tag value can be sampled.
 Decimal numbers are rounded to three decimal places.

9.3.2.7

Export OPC UA XML file

Generating an OPC UA export file The OPC Foundation has specified a standard XML-based format for describing information models. It allows the information model of an OPC UA server to be provided to a client in advance, or information models can be downloaded to an OPC UA server. A file in this format is called a nodeset file because it describes an information model as a set of nodes.
With STEP 7 (TIA Portal) you can easily export the standard SIMATIC information model of the S7-1500 CPU as a server to an OPC UA XML file (node set file); including all PLC variables and methods you have enabled for OPC UA.
You use the OPC UA XML file for the offline configuration of an OPC UA client; it is structured according to the OPC UA specification and acts as a standard SIMATIC server interface.
To create and export the OPC UA XML file, follow these steps:
1. Select the CPU. Click on the CPU symbol (for example in the network view).
2. Click "General > OPC UA > Server > Export" in the properties of the CPU.
3. Click "Export OPC UA XML file".
4. Select the directory in which you want to save the export file.
5. Select a new name for the file or keep the name that is already entered.
6. Click "Save".
Note
As of STEP 7 (TIA Portal) V15.1, server methods are contained in the OPC UA export file (node set) together with their input and output parameters.

174

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Exporting all array elements separately If the "Export all array elements as separate nodes" option is selected in the CPU properties under "OPC UA > Server > Export", the OPC UA XML file contains all elements of arrays as individual XML elements. In addition, the arrays themselves are each described in an XML element in the XML file. If an array contains many array elements, the XML file can be very large.
Tip The following FAQ contains a converter with which you can convert the export file into CSV format. You then obtain a list of the tags of the CPU that can be accessed by OPC UA. You can find the FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742903).

9.3.3

Configuring the OPC UA server

9.3.3.1

Enabling the OPC UA server

Requirement

 If you use certificates for secured communication, e.g. HTTPS, Secure OUC, OPC UA, make sure that the modules involved have the current time of day and the current date. Otherwise, the modules evaluate the used certificates as invalid and secure communication does not work.
 You have acquired a runtime license for the operation of the OPC UA functions, see License for OPC UA (Page 198).

Commissioning an OPC UA server By default, the OPC UA server of the CPU is not enabled for reasons of security: OPC UA clients have neither write nor read access to the S7-1500 CPU. Follow these steps to activate the OPC UA server of the CPU: 1. Select the CPU. Click on the CPU symbol (for example in the network view). 2. Click "OPC UA > Server" in the properties of the CPU. 3. Activate the OPC UA server of the CPU. 4. Confirm the security notes. 5. Go to the CPU properties, select "Runtime licenses" and set the runtime license acquired for the OPC UA server. 6. Compile the project. 7. Download the project to the CPU. The OPC UA server of CPU now starts.

Communication Function Manual, 11/2019, A5E03735815-AH

175

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Settings remain stored
If you have already enabled the server and made settings, those settings are not lost if the server is disabled. The settings are saved as before and are available when you enable the server again.
Application name
The application name is the name of the OPC UA application and applies to the server and the client. The name is displayed under "OPC UA > General":
 The default for the application name is: "SIMATIC.S7-1500.OPC-UA.Application:PLC_1".
 The default consists of "SIMATIC.S7-1500.OPC-UA.Application:" and the name of the CPU selected under "General > Product information > Name", in this case "PLC_1".
 The OPC UA server uses this application name to identify itself to a communication partner (OPC UA client), for example, when an OPC UA client uses the discovery service to detect accessible servers.
 The displayed application name uses the OPC UA client of the CPU when connecting to an OPC UA Server. This means that the CPU enters this application name automatically as "ApplicationName" for the instruction "OPC_UA_Connect" (tag of type "OPC_UA_SessionConnectInfo" at the parameter "SessionConnectInfo" of the instruction "OPC_UA_Connect").
When you program the instruction "OPC_UA_Connect" you must therefore assign an empty string to the "ApplicationName". You can use the application name, for example, to identify the client and its sessions (SessionNames) for diagnostic purposes.
If you have activated the server, you can also use a different name that is meaningful in your project and that fulfills the requirements of your project, e.g. for worldwide uniqueness.
The example below originates from UaExpert:

Changing the application name
To change the application name, follow these steps:
1. Select the CPU. Click on the CPU symbol (for example in the network view).
2. Click "OPC UA > General" in the properties of the CPU.
3. Enter a meaningful name.
Please note that the application name is also entered on the certificate (Subject Alternative Name) and you may have to generate an existing certificate again after changing the application name.

176

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.3.2

Access to the OPC UA server

Server addresses
The OPC UA server of the S7-1500 CPU can be reached over all integrated PROFINET interfaces of the CPU (firmware V2.0 and higher).
Direct access to the OPC UA server of the CPU over the backplane bus of the automation system is not possible via CPs under the following conditions:
 Configuration with TIA Portal Version V16 or higher, S7-1500 CPU firmware version 2.8 or higher and CP 1543-1 firmware version V2.2 or higher.
For configuration, see Access to OPC UA applications (Page 131).
Direct access to the OPC UA server of the CPU over the backplane bus of the automation system is not possible via CMs.
With SIMATIC S7-1500 SW controllers, access to the OPC UA server is possible via PROFINET interfaces that are assigned to the software PLC.
Additional access options of SW controllers are described in the following application example: Internal and external OPC UA connection via the virtual Ethernet interface of the software controller V2.5 or higher (https://support.industry.siemens.com/cs/ww/en/view/109760541).
Example for URLs (Uniform Resource Locator) that can be used to set up connections to the OPC UA server of the CPU:

Figure 9-14 Display of the server addresses

Communication Function Manual, 11/2019, A5E03735815-AH

177

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
The URLs are structured as follows:  Protocol identifier "opc.tcp://"  IP address
­ 192.168.178.151 The IP address at which the OPC UA server can be accessed from the Ethernet subnet 192.168.178.
­ 192.168.1.1 The IP address at which the OPC UA server can be accessed from the Ethernet subnet 192.168.1.
 TCP Port number ­ Default: 4840 (standard port) The port number can be changed under "OPC > UA > Server > Port".
Dynamic IP addresses In the example below, the IP address for the PROFINET interface [X2] has not yet been specified.
Figure 9-15 Display of the server addresses with dynamic IP address
The placeholder "<dynamically>" appears in the table. The IP address of this PROFINET interface is set later on the device, e.g. via the display of the CPU.

178

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Activating the standard SIMATIC Server interface If the "Enable standard SIMATIC server interface" option is selected, the OPC UA server of the CPU provides the enabled PLC tags and server methods to the clients, as was specified by SIEMENS in the self-defined namespace.
This option is selected in the default setting.
Leave the option selected so that OPC UA clients can automatically connect to the OPC UA server of the CPU and exchange data.
If you do not select this option, you must add the server interface by entering the "OPC UA communication" entry in the project tree. This interface is then used as OPC UA server interface, see OPC UA server interface configuration (Page 199).
Note General device information is readable even with deactivated standard SIMATIC server interface
Even if you disable the standard SIMATIC server interface, OPC UA clients can read general device information about the OPC UA server of the CPU.
Examples of such device information: DeviceManual, DeviceRevision, OrderNumber. In this case, however, all objects of the application program remain invisible to clients.
If you want to prevent that this device information is not visible, you have to disable the OPC UA server of the CPU.

9.3.3.3

General settings of the OPC UA server

TCP port for OPC UA
By default, OPC UA uses TCP port 4840. You can, however, select a different port. Entries from 1024 to 49151 are possible. You must, however, make sure that there are no conflicts with other applications. OPC UA clients must use the selected port when establishing a connection.
In the example below, port 48400 is selected:

Figure 9-16 TCP port for OPC UA
An overview of the supported protocols and the port numbers used by the S7-1500 CPUs can be found in section Communications protocols and port numbers used for Ethernet communication (Page 22).

Communication Function Manual, 11/2019, A5E03735815-AH

179

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Settings for sessions  Maximum timeout for sessions In this field, you specify the maximum time period before the OPC UA server closes a session without data exchange. Possible values between 1 and 600000 seconds.  Maximum number of OPC UA sessions In this field, you specify the maximum number of sessions the OPC UA server starts and simultaneously operates. The maximum number of sessions is dependent on the performance capability of the CPU. Each session ties up resources.
Maximum number of registered nodes In this field, you specify the maximum number of nodes the OPC UA server registers. The maximum number of registered nodes depends on the capacity of the CPU and is displayed when you configure the field content (place cursor in field). Each registration ties up resources.
Note No error message following attempt to register more than the configured maximum number of registrable nodes If a client tries to register more nodes during runtime than the configured maximum number, the server of the S7-1500 CPU only registers the configured maximum number. Starting from the configured maximum number of registrable nodes, the server returns the regular string node IDs unchanged to the client so that the speed advantage gained by registration for these nodes is lost. The client does not receive an error message. When configuring, make sure you have a sufficient reserve by taking into account the maximum number of nodes that can be registered (for example, using the technical data of the CPU).
Additional information Details on which ports are used by the various services for data transfer via TCP and UDP, and what are the points to note when using routers and firewalls can be found in the FAQ (https://support.industry.siemens.com/cs/ww/en/view/8970169).

180

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Backward compatible data type definitions according to OPC UA specification  V1.03
The OPC UA specification (<= V1.03) defines mechanisms in order to read out data type definitions, for example for user-defined structures (UDTs), from a server by means of the TypeDictionaries.
In the OPC UA server properties of the CPU, you can set whether the CPU generates these backward compatible data type definitions according to the OPC UA specification  V1.03 for the standard SIMATIC server interface or not.
Because TypeDictionaries are complex and result in large OPC UA XML files (server interfaces) which the client has to interpret, a simpler solution was introduced with OPC UA Specification V1.04 (attribute "DataTypeDefinition" at the data type node). If your client supports the OPC UA specification V1.04 or higher, then disable the option.
Advantages of the data type definitions according to OPC UA specification as of V1.04:
 The server starts faster
 The memory is used more efficiently
 The "Browse" function is faster

9.3.3.4

Settings of the server for subscriptions

Subscription instead of cyclic queries
An alternative to cyclic queries for a PLC tag (polling) is to monitor this value. Use a Subscription: The server informs the client if the value of PLC tags changes. See "The OPC UA client".
One server usually monitors a large number of PLC values. For this reason, the server sends notifications to the client at regular intervals containing the new values of the PLC tags.
Advantages of subscriptions:
 The server starts faster
 The memory is used efficiently

Communication Function Manual, 11/2019, A5E03735815-AH

181

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
How frequently does the server send notifications? When a Subscription is set up, the OPC UA client specifies the intervals at which it wants to be sent the new values in the event of changes. To limit the communication load through OPC UA, set a minimum interval for the messages. For this purpose, use the parameters for the minimum publishing interval and the minimum sampling interval.

Figure 9-17 Principle of a subscription
Minimum publishing interval With "Minimum publishing interval", you set the time intervals at which the server sends a message to the client with the new values in the event of changes. 250 ms is used as the "Minimum sampling interval" in the figure below. The value 200 ms is entered as the "Minimum publishing interval".

Figure 9-18 Subscription settings
In the example, following a value change the OPC UA server will send a new message every 200 ms if the OPC UA client requests an update.
If the OPC UA client requests an update every 1000 ms, the OPC UA server will only send a message with the new values once every 1000 ms (one second).
If the OPC UA client requests an update every 100 ms, the server will still only send a message every 200 ms (minimum publishing interval).

182

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Minimum sampling interval
With "Minimum sampling interval", you set the time intervals at which the OPC UA server records the value of a CPU tag and compares it with the previous value to detect any changes.
If the sampling interval is selected smaller than the publishing interval and an OPC UA client requests a high sampling rate for certain PLC tags, two or more values may be measured during each publishing interval.
In this case, the OPC UA server writes the value changes into the queue and sends all value changes to the client after the completion of the publishing interval. If more value changes occur in the publishing interval than fit in the queue, the OPC UA server overwrites the oldest values (depending on the set "Discard Policy" of the client subscribing to the data, the option "Discard Oldest" has to be activated in this case). The most recent values are sent to the client.

Maximum number of monitored elements (monitored items)
In this field, you specify the maximum number of elements that the OPC UA server of the CPU simultaneously monitors for a value change.
The monitoring ties up resources. The maximum number of monitored elements is dependent on the utilized CPU.

Additional information
Information about the system limits of the OPC UA server of the S7-1500 CPUs (firmware V2.0 and V2.1) regarding subscriptions, sampling intervals and publishing intervals can be found in the following FAQ (https://support.industry.siemens.com/cs/ww/en/view/109755846).
When using subscriptions, certain status codes of errors provide information on the error that occurred. For information on causes and remedies for status codes of OPC UA client that appear, see the list of error codes in the online help of STEP 7 (TIA Portal) or in the following FAQ (https://support.industry.siemens.com/cs/ww/en/view/109755860).

See also

Rules for subscriptions (Page 284) Subscription diagnostics (Page 240)

9.3.3.5

Handling client and server certificates
A secure connection between the OPC UA server and an OPC UA client is only established when the server can prove its identity to the client. This is done with the server certificate.

Communication Function Manual, 11/2019, A5E03735815-AH

183

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server Certificate of the OPC UA server
When you have activated the OPC UA server and have confirmed the security prompts, STEP 7 automatically generates the certificate for the server and saves it in the local certificate directory of the CPU. You can view and manage this directory with the local certificate manager of the CPU (exporting or deleting certificates). The figure below shows the local certificate manager of the CPU with the automatically generated certificate for the OPC UA server:
Figure 9-19 Local certificate manager of the CPU
Alternatively, you can also generate a server certificate yourself. The certificate of the server is transferred from the server to the client during establishment of a connection. The client checks the certificate.

184

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
The client user decides whether the server certificate is to be trusted. The user at the client side now has to decide whether the server certificate is to be trusted. If the user trusts the server certificate, the client stores the server certificate in its directory containing the trusted server certificates. The following example shows a dialog of the client "UA Sample Client". When the user clicks the "Yes" button, the client trusts the server certificate:

Figure 9-20 Dialog of the client "UA Sample Client"
Where does a client certificate come from?
Client of the S7-1500 If you are using the OPC UA client of an S7-1500 CPU (OPC UA client enabled), you can create certificates for these clients with STEP 7 V15 and higher. 1. In the project tree, select the CPU you want to use as a client. 2. Double-click "Device configuration". 3. In the properties of the CPU, click "Protection & Security > Certificate manager". 4. Double-click "<Add new>" in the "Device certificates" table.
STEP 7 opens a dialog. 5. Click the "Add" button. 6. Select the "OPC UA client" entry from the "Usage" list.
Note: The IP addresses under which the CPU can be accessed in your system must be entered under "Subject Alternative Name (SAN)". You must therefore configure the IP interfaces of the CPU before you generate a client certificate. 7. Click "OK". STEP 7 now shows the client certificate in the "Device certificates" table.

Communication Function Manual, 11/2019, A5E03735815-AH

185

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
8. Right-click this line and select the "Export certificate" entry from the shortcut menu. 9. Select a directory where you will store the client certificate.
Clients of other manufacturers When you use UA clients from manufacturers or the OPC Foundation, a client certificate is generated automatically during installation or upon the first program call. You have to import these certificates via the global certificate manager in STEP 7 and use them for the corresponding CPU (as shown above). When you program an OPC UA client yourself, you can have the certificates generated by the program; see the section "Instance certificate for the client". Alternatively, you can generate certificates with tools, for example with OpenSSL or the certificate generator of the OPC Foundation:  The procedure for OpenSSL is described here: "Generating PKI key pairs and certificates
yourself".  Working with the certificate generator of the OPC Foundation is described here: "Creating
self-signed certificates".
Announcing client certificates to the server You need to send client certificates to the server to allow a secure connection to be established. To do this, follow these steps: 1. Select the "Use global security settings for certificate manager" option in the local certificate manager of the server. This makes the global certificate manager available. You will find this option under "Protection & Security > Certificate manager" in the properties of the CPU that is acting as server. If the project is not yet protected, select "Security settings > Settings" in the STEP 7 project tree, click the "Protect this project" button and log on. The "Global security settings" item is now displayed under "Security settings" in the STEP 7 project tree. 2. Double click "Global security settings". 3. Double click "Certificate manager". STEP 7 opens the global certificate manager. 4. Click on the "Trusted certificates" tab. 5. Right-click in the tab on a free area (not on a certificate). 6. Select the "Import" command from the shortcut menu. The dialog for importing certificates is displayed. 7. Select the client certificate that the server is to trust. 8. Click "Open" to import the certificate. The certificate of the client is now contained in the global certificate manager. Note the ID of the client certificate just imported.

186

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
9. Click the "General" tab in the properties of the CPU that is acting as server. 10.Click "OPC UA > Server > Security > Secure Channel". 11.Scroll down in the "Secure Channel" dialog to the section "Trusted clients". 12.Double-click in the table on the empty row with "<add new>". A browse button is
displayed in the row. 13.Click this button. 14.Select the client certificate that you have imported. 15.Click the button with the green check mark. 16.Compile the project. 17.Load the configuration onto the S7-1500 CPU. Result: The server now trusts the client. If the server certificate is also considered trusted, the server and client can establish a secure connection.
Accepting client certificates automatically When you select the option "Automatically accept all client certificates during runtime" (below the "Trusted clients" list), the server automatically accepts all client certificates.
NOTICE Setting after commissioning In order to avoid security risks, deactivate the "Automatically accept client certificates during runtime" option again after commissioning.

Communication Function Manual, 11/2019, A5E03735815-AH

187

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Configuring security settings of the server The figure below shows the available server security settings for signing and encrypting messages.

Figure 9-21 Configuring security settings of the server
By default, a server certificate is created that uses SHA256 signing. The following security policies are enabled:
 None Unsecured end point
Note Disabling security policies you do not want
If you have enabled all security policies in the secure channel settings of the S7-1500 OPC UA server (default setting) ­ thus, also the end point "None" (no security) ­ unsecured data traffic (neither signed nor encrypted) between the server and client is also possible. The identity of the client remains unknown with "No security". Each OPC UA client can then connect to the server irrespective of any subsequent security settings.
When configuring the OPC UA server, make sure that only security policies that are compatible with the security concept of your machine or plant are selected. All other security policies should be disabled.
Recommendation: If possible, use the setting "Basic256Sha256".
 Basic128Rsa15 -Sign Insecure end point, supports a series of algorithms that use the hash algorithm RSA15 and 128-bit encryption. This endpoint protects the integrity of the data through signing.

188

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
 Basic128Rsa15 -Sign & Encrypt Secure endpoint, supports a series of algorithms that use the hash algorithm RSA15 and 128-bit encryption. This endpoint protects the integrity and confidentiality of the data through signing and encrypting.
 Basic256Rsa15 -Sign Secure endpoint, supports a series of algorithms that use the hash algorithm RSA15 and 256-bit encryption. This endpoint protects the integrity of the data through signing.
 Basic256Rsa15 -Sign & Encrypt Secure endpoint, supports a series of algorithms that use the hash algorithm RSA15 and 256-bit encryption. This end point protects the integrity and confidentiality of the data through signing and encrypting.
 Basic256Sha256 - Sign Secure endpoint, supports a series of algorithms for 256-bit hashing and 256-bit encryption. This endpoint protects the integrity of the data through signing.
 Basic256Sha256 - Sign & Encrypt Secure endpoint, supports a series of algorithms for 256-bit hashing and 256-bit encryption. This endpoint protects the integrity and confidentiality of the data through signing and encryption.
To enable the security setting, click the check box in the relevant line.
Note
If you use the settings "Basic256Sha256 -Sign" and "Basic256Sha256 -Sign & Encrypt", the OPC UA server and OPC UA clients must use "SHA256"-signed certificates.
For the settings "Basic256Sha256 -Sign" and "Basic256Sha256 -Sign & Encrypt", the certificate authority of STEP 7 automatically signs the certificates with "SHA256".

"No Security" security policy and authentication via user name and password
You can set the following combination:
Security policy = "No Security" and authentication via user name and password.
 The OPC UA server of the S7-1500 supports this combination. OPC UA clients can connect and encrypt the authentication data or not.
 OPC UA client of the S7-1500 CPU also supports this combination: However, in runtime it only connects if it can send the authentication data encrypted via cable!

See also

Generating server certificates with STEP 7 (Page 190)

Communication Function Manual, 11/2019, A5E03735815-AH

189

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.3.6

Generating server certificates with STEP 7
The description below shows the procedure for generating new certificates with STEP 7 and applies in principle to various uses of the certificates. STEP 7 sets the appropriate purpose in this case "OPC UA Client & Server" - depending on which area of the CPU properties is used to start the following dialog.
Recommendation: To use the full functionality for the security of the OPC UA server, use the global security settings.
The global security settings are enabled in the CPU properties under "Protection & Security > Certificate manager".

Customizing server certificates
STEP 7 automatically generates a certificate for the OPC UA server of the S7-1500 when you activate the server (see "Activating the OPC UA server (Page 175)"). In the process STEP 7 uses the default values for the parameters of the certificate. If you want to change the parameters, follow these steps:
1. Click the Browse button under "General > OPC UA > Server > Security > Secure channel > Server certificate" in the properties of the CPU. A dialog is displayed that shows the certificates available locally.
2. Click the "Add" button.

190

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
3. The dialog for generating new certificates is displayed (figure below). The values for an example are already entered:

Figure 9-22 Customizing server certificates
4. Use other parameters if this is necessary in accordance with the security specifications in your company or your customer.

Communication Function Manual, 11/2019, A5E03735815-AH

191

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Explanation of fields for certificate generation
 CA
Select whether the certificate is to be self-signed or signed by one of the CA certificates of the TIA Portal. The certificates are described under "Certificates with OPC UA". If you want to generate a certificate that is to be signed by one of the CA certificates of the TIA-Portal, the project must be protected and you must be logged in as a user with all the required function rights. Further information can be found under "Basics of user administration in the TIA Portal".
 Certificate holder
The default setting always consists of the name of the project and "\OPCUA-1". In the example, the project name is "PLC1". In the properties of the CPU set the project name under "General > Project information" > Name". Keep the default or enter a different name that is more meaningful for the OPC-UA server under "Certificate holder".
 Signature
Here you select the hash and encryption process that is to be used when signing the server certificate. The following entries are available:
­ "sha1RSA",
­ "sha256RSA".
 Valid from
Here you enter the date and time for the beginning of the validity of the server certificate.
 Valid until
Here you enter the date and time for the end of the validity of the server certificate. Ensure that the certificate is valid not only for one year or a few years. In the example the certificate is valid for 30 years. However, for reasons of security you should renew the certificate at much shorter intervals. The long period of validity gives you the opportunity to decide when a suitable moment would be, for example, when the system is being serviced.

192

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

 Usage
The default is "OPC UA client & server". Keep this default for the OPC UA server. The "Create a new certificate" dialog can be called from several points in STEP 7. If, for example, you call this dialog for the Web server of the CPU, "Web server" is entered under "Usage". The following entries are available in the Usage drop-down list:
­ "OPC UA client"
­ "OPC UA client & server"
­ "OPC UA server"
­ "TLS"
­ "Web server"
 Subject Alternative Name (SAN)
The following is entered in the example above: "URI:urn:SIMATIC.S7-1500.OPCUAServer:PLC1,IP:192.168.178.151,IP:192.168.1.1". This URI must be correctly entered because it is checked against the communicated application description.
The following entry would also be valid: "IP: 192.168.178.151, IP: 192.168.1.1". The important thing here is that the IP addresses via which the OPC UA server of the CPU can be accessed are entered here.
See "Access to the OPC UA server (Page 177)".
This allows OPC UA clients to verify whether a connection to the OPC UA server of the S7-1500 is really to be established or whether in fact an attacker is trying to send manipulated values from another PC to the OPC UA client.

9.3.3.7

User authentication

Types of user authentication
For the OPC UA server of the S7-1500, you can set what authentication is required for a user of the OPC UA client wishing to access the server.
You have the following options:
 Guest authentication
The user does not have to prove their authorization (anonymous access). The OPC UA server does not check the authorization of the client user
If you want to use this type of user authentication, select the "Enable guest authentication" option under "OPC UA > Server > Security > User authentication".
Note
To increase security, you should only allow access to the OPC UA server with user authentication.

Communication Function Manual, 11/2019, A5E03735815-AH

193

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

 User name and password authentication
The user has to prove their authorization (no anonymous access). The OPC UA server checks whether the client user is authorized to access the server. Authorization is given by the user name and the correct password.
If you want to use this type of user authentication, select the "Enable user name and password authentication" option under "OPC UA > Server > Security > User authentication".
Deactivate the guest authentication.
Enter the user in the "User management" table.
To do so, click the "<Add new user>" entry. A new user is created with an automatically assigned name. You can edit the user name and enter the password for the user name. You can add a maximum of 21 users.
 Additional user administration via the security settings of the project
The "Enable additional user administration via the security settings of the project" option can be found under the general OPC UA settings (CPU properties: OPC UA > General). If you select this option, the user management for the open project will also be used for user authentication for the OPC UA server: The same user names and passwords are then valid in OPC UA as in the current project.
Proceed as follows to activate user management for the project:
­ Click "Security settings > Settings" in the project tree.
­ Click the "Protect this project" button.
­ Enter your user name and your password.
­ Enter additional users under "Security settings > Users and roles".
If you configure an additional OPC UA server in your project, also select the option "Enable additional user administration via the security settings of the project". Repeated input of user names and passwords is then unnecessary.

See also

User authentication (Page 275) Users and roles with OPC UA function rights (Page 194)

9.3.3.8

Users and roles with OPC UA function rights
The following options for user authentication use central project settings for project users:
 For the server:
For configuration of CPU properties (OPC UA > Server > Security > User authentication). Option: "Enable additional user administration via the security settings of the project"
 For the client:
For configuration of client interface ("Configuration" tab, "Security"). Option: "User (TIA Portal - security settings)"

194

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Requirement

Before you can edit the security settings, the project must be protected and you must be logged on with sufficient rights, for example as administrator.

Settings in the project tree > "Security settings"
You access the central user settings and roles in the protected project in the project tree under "Security settings". This is where you centrally define users with user name, password and function rights. You can simply use these settings elsewhere.

Figure 9-23 Setting user and roles
Reusing central security settings Examples for reusing elsewhere:  User selection for user authentication for OPC UA server With this setting, you tell the server which client (user) with which user name and which password is allowed to access the server.  User selection for OPC UA client authentication With this setting, you tell the client the user name and password that it is to use for client authentication for the server. The settings for the client and server must correspond: The user name and password used by the client to log on must have been set up on the server and assigned the required authorizations.
Function rights for server and client The corresponding function rights for the client or the server must also be enabled for users of the client function and users of the server function on an S7-1500 CPU. It is not enough simply to save the user name and password centrally. Here is an example to illustrate this type of rights use. 1. Under "Security settings > Users and roles", you define a new role in the "Roles" tab with the name "PLC-opcua-role-all-inclusive", for example. Tip: The tab may be covered by an information window ("The current status has not yet been checked..."). In this case, first close the information window. 2. In the "Categories of function rights" section, you navigate to the runtime rights and then to the CPU function rights, and select the CPU whose function rights you want to set, for example PLC_2.

Communication Function Manual, 11/2019, A5E03735815-AH

195

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
3. You will find the following function rights in the "Function rights" section:
­ OPC UA server access
This function right apples on the OPC UA server of the S7-1500 CPU. Only when this option is selected does a user of the CPU PLC_2 server who has been assigned the role "PLC-opcua-role-all-inclusive" have the following right: For the establishment of a session with the server, the user requires client authentication with one of the user names and corresponding passwords that have been centrally defined (and loaded to the CPU).
­ User authentication of the OPC UA client
This function right apples on the OPC UA client of the S7-1500 CPU (with client instructions). Only when this option is selected can the user of the client of CPU PLC_2 who has been assigned the role "PLC-opcua-role-all-inclusive" use the user name and password for authentication to establish a session with a server.

Figure 9-24 Setting function rights
4. The role "PLC-opcua-role-all-inclusive" still needs to be assigned to the relevant users ("Users" tab under "Security settings" in the project tree).

See also

User authentication (Page 193) User authentication (Page 275)

196

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.3.9

Diagnostic settings of the server

Diagnostics

You can specify the scope of the diagnostics of the OPC UA server in the CPU settings. To change the diagnostics scope, navigate to the "OPC UA > Server > Diagnostics" area.

Figure 9-25 Diagnostic settings of OPC UA server

Default setting

The default setting is a diagnostics behavior that supports the most important diagnostics without appreciably increasing the communication load.
You enable diagnostics for subscriptions when the OPC UA server also uses subscriptions, i.e. if necessary during the commissioning phase only.
Reason: A large volume of diagnostic activity generates a high communication load in the CPU and may suppress other important messages. Or, the high volume of diagnostics may result in important messages disappearing in the mass of messages and being ignored.

Additional information
You will find additional information on the meaning and effect of the settings shown above here (Page 233).

Communication Function Manual, 11/2019, A5E03735815-AH

197

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.3.10

License for OPC UA

Runtime licenses
A license is required to run the OPC UA server of the S7-1500 CPU. The type of license required depends on the performance of the respective CPU. The following license types are differentiated:
 SIMATIC OPC UA S7-1500 small (required for CPU 1511, CPU 1512, CPU 1513, ET 200SP CPUs, CPU 1515SP PC)
 SIMATIC OPC UA S7-1500 medium (required for CPU 1515, CPU 1516, Software Controller CPU 1507, CPU 1516pro-2PN)
 SIMATIC OPC UA S7-1500 large (required for CPU 1517, CPU 1518)
The required license type is displayed under "Properties > General > Runtime licenses > OPC-UA > Type of required license":

Figure 9-26 OPC UA server Runtime licenses
To confirm purchase of the required license, follow these steps: 1. Click "Runtime licenses > OPC UA" in the properties of the CPU. 2. Select the required license from the "Type of purchased license" drop-down list.

198

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4

OPC UA server interface configuration

9.3.4.1

What is a server interface?

Definition

A server interface combines nodes of an OPC UA address space of a CPU into a unit, so that a specific view on this CPU is provided for OPC UA clients.
Each server interface defines one or more namespaces in the OPC UA server of the CPU.
STEP 7 (TIA Portal) differentiates between the following types of server interfaces:
 Companion specification
For this type of server interface, you use a Companion Specification created by a workgroup, for example.
The workgroup is typically composed of members of the OPC Foundation and another industry organization who have jointly specified an OPC UA information model for a specific purpose (for example, for data exchange with RFID devices or with injection molding machines).
This information model is realized in the form of OPC UA nodes in the address space of an OPC UA server. OPC UA clients can access these OPC UA nodes.
You can also use the server interface type "Companion specification", for example, to download company-internal information models, e.g. in SiOME.
If you implement a certain companion specification in your project, you apply the specifications of this companion specification into your project as server interface.
For "Companion specification"-type server interfaces, you can import multiple namespaces which the Companion specification uses.
Additional information on companion specifications is available here (Page 218).
Additional information on SiOME is available here (https://support.industry.siemens.com/cs/ww/en/view/109755133).
 User-defined server interface:
For this type of server interface you combine OPC UA nodes of an OPC UA server into a unit.
To do this, use the specifications for your project or the requirements for your machine or your plant as a basis.
Additional information on the user-defined server interface is available here (Page 201).

Communication Function Manual, 11/2019, A5E03735815-AH

199

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Injection molding machine as an example for companion specification
In this example, a server interface contains the following elements:
 OPC UA nodes which you can write with an OPC UA client to receive information about this injection molding machine (in readable PLC tags)
 OPC UA nodes which you can write with an OPC UA client to transfer values to the injection molding machine (in writable PLC tags)
 OPC UA nodes which you can call with an OPC UA client to start functions of the injection molding machine (via server methods)
This server interface enables a default view of a CPU, which can be used to control an injection molding machine.
For injection molding machines, the companion specification "Euromap" defines a whole series of OPC UA nodes which you can combine in a server interface.
Other OPC UA nodes of the CPU are not included in this server interface. This provides a better overview.

Example of user-defined server interface
A CPU should control the production of workpieces. Production begins when a production job arrives from the higher-level control system.
The production jobs are transferred via a server method: A control system transmits information on a workpiece by calling the server method in the CPU. This server method also starts production.
The control system, i.e. the connected OPC UA client, should only see this one server method. Therefore, you create a user-defined server interface in the CPU and assign the server method to this server interface. You enable only this server interface for OPC UA clients and thus limit the view of the CPU to this one function.

See also

Using OPC UA companion specifications (Page 206)

200

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4.2

Creating a user-defined server interface

Introduction

The description is based on the following example:
A protective fence surrounds the production cell "Cell_1". The fence is equipped with the gate "Gate_1".
An S7-1500 CPU controls the entire production cell and also controls access through Gate_1.
A robot packs drugs into boxes in the production cell and then stacks the boxes on pallets.
Self-driving vehicles for automated material transport move the pallets to the central warehouse, thereby passing through Gate_1.
The CPU publishes a server interface via which the driverless transport systems arrange for Gate_1 to open.
The server interface contains the server method "smOpenGate" for opening the gate and the tag "Gate_1_State" which indicates the status of the gate (open or closed).

Creating a user-defined server interface To create an Server interface, follow these steps: 1. Select the CPU that you have used and configured as OPC UA server. 2. Click "OPC UA communication > Server interfaces". 3. Double-click "Add new server interface". STEP 7 displays the following dialog.

Figure 9-27 Adding the server interface
4. Change the name of the new server interface so that it is descriptive in your project. In the example, change the name "Server-interface_1" suggested by STEP 7 to "Cell_1".
5. Click "Server interface" and then "OK".

Communication Function Manual, 11/2019, A5E03735815-AH

201

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
6. Click on the triangle in front of "Program blocks" in the area "OPC UA elements" to open the "Program blocks" folder. STEP 7 displays the following table for editing:

Figure 9-28 Editing the server interface
The editor is divided into two areas. ­ OPC UA server interface
On the left is the root node of the server interface "Cell_1". This interface is currently still empty: No OPC UA elements have been added to the server interface yet. ­ OPC UA elements On the right are the OPC UA elements. OPC UA elements are objects that have been created so far in the STEP 7 project and have the property "Accessible from HMI/OPC UA". You can add the OPC UA elements to the new server interface "Cell_1". 7. Drag the OPC UA elements into the "<Add new>" line of the new server interface.
Note The following applies in general: If you store data blocks or technology objects in the left area of the table, STEP 7 (TIA Portal) creates an object in the server interface. The elements of the data blocks are arranged as separate nodes below this. If you store structures in the left area of the table, STEP 7 creates a node for the structure as a whole and nodes for each element of the structure. The same applies to arrays: Again, STEP 7 creates a node for the array as a whole and nodes for each element of the array. When you place a method in the left area of the table, STEP 7 creates a single node; the arguments of the inserted method are displayed for information purposes.
In the example, you drag the "Gate_1_State" tag from the right area to the left area to "<Add new>". Then, drag the server method into the left area. This server method is located within the "smOpenGate_DB [DB3]" data block in the right area.

202

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
STEP 7 (TIA Portal) displays the dialog as follows:

Figure 9-29 Adding OPC UA elements to the server interface
Limiting the view to OPC UA servers By selecting the OPC UA elements, you limit the view to the OPC UA server and the options of the OPC UA clients. In the server interface of the example, the "Robot_1" data block is missing because industrial trucks do not need access to the server methods and tags of the robot. In this case, it is best to disable the standard server interface (SIMATIC namespace) in the OPC UA properties of the S7-1500 CPU so that the filtered nodes cannot be accessed any other way.
Figure 9-30 Disabling the standard server interface
You can also disable the visibility of each configured server interface in the properties of the server interface and thus prevent that this server interface can be used by clients during operation. This option lets you define multiple server interfaces, for example, and download only the required server interface.

Communication Function Manual, 11/2019, A5E03735815-AH

203

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Once a server interface has been defined, you can drag it to another CPU in the project tree.

Figure 9-31 Disabling the visibility of the server interface
Information on the server interface The "OPC UA Server Interface" dialog is structured as a table and provides the following information: Note that not all columns are displayed initially. You determine what is displayed by rightclicking on the header line of the table. When a row is selected, you can display the OPC UA attributes of the node in the Inspector window ("OPC UA attributes" area), such as node ID, node class, node type, and description.  BrowseName The language neutral name of the user-defined server interface is at the top (BrowseName). This name can be freely selected. The names (BrowseNames) of the individual OPC UA nodes that have been added to the server interface are under the name of the interface. You cannot change the name of an OPC UA node in this dialog. The names come from the STEP 7 project. You can delete an OPC UA node from the table. This means that it no longer belongs to the server interface and is no longer visible to OPC UA clients.  DisplayName Similar to BrowseName. However, the name can be translated and is displayed, if available, in the corresponding language.  Node ID NodeId of the OPC UA node, e.g. http://Server-Node_1; i=1

204

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
 Node type Type of the OPC UA node, for example BOOL, BYTE, INT. These node types were defined by Siemens, not by the OPC Foundation. For example, the OPC Foundation uses the Boolean node type for BOOL. BOOL is directly derived from Boolean. The specified node type cannot be changed in this dialog: If you want to use a different node type, you must change the type of the respective PLC tags in the STEP 7 project.
 Data type The SIMATIC data type used in the STEP 7 project is specified, for example, Bool, Byte, Int. etc.
 Access level ­ If an OPC UA node is a tag (UAVariable type), the node can only be readable (RD) or readable and writable (RD/WR). ­ If an OPC UA node is a method (UAMethod type), this node can always be called.
 Local data The SIMATIC data type of the data block in the CPU, from which the value of an OPC UA node (UAVariable type) is read, or to which a value is written.
Consistency check You have the option to check the server interface. During the consistency check, STEP 7 checks whether the OPC UA nodes of the server interface are each assigned to a suitable OPC UA element (identical data type) or whether the used element still exists in the CPU. To check the consistency of the server interface, click on the following icon in the toolbar of the OPC UA server interface editor:

Figure 9-32 "Consistency check" button
Export interface You have the option of exporting the OPC UA server interface as an XML file. This XML file contains all data type definitions referenced by the server interface. To export the OPC UA server interface, click on the following icon in the toolbar of the OPC UA server interface editor:

See also

Figure 9-33 "Export interface" button
Master copies for OPC UA communication (Page 286)

Communication Function Manual, 11/2019, A5E03735815-AH

205

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4.3

Using OPC UA companion specifications

Introduction

OPC UA is universally applicable: The standard itself does not, for example, specify how PLC tags are to be named. It is also up to the individual user (application developer) to program and name server methods that can be called over OPC UA.
Information modeling and standardization for devices and sectors
For applications of the same kind, it is worth standardizing your device or machine interface with the "OPC UA toolkit".
Many different bodies and working groups have driven forward standardization and developed a range of companion specifications.
These specifications define:
 The objects, methods and tags with which a typical device or machine is to be described.
 The namespace intended for the specified objects.
Machines are typically structured in functional or technological units, and these units are then standardized.
Companion specifications offer machine and plant operators the benefits of a standardized interface. For example, all RFID readers that comply with the AutoID specifications can be integrated in the same way. This means that all RFID readers that comply with the AutoID specifications can be addressed by OPC UA clients in the same way irrespective of manufacturer.
Another example of companion specifications is the Euromap 77 Companion Specifications from the injection molding machinery sector.
The following section uses the example of Euromap 77 to detail how to apply companion specifications in STEP 7 (TIA Portal) and create the necessary PLC tags.

Example: Euromap 77
Euromap 77 standardizes the exchange of data between injection molding machines and the higher-level MES (Manufacturing Execution System). This allows the MES to connect all lower-level injection molding machines in the same way.
The standardized data interface facilitates the integration of injection molding machines into a plant.

206

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Using companion specifications: Overview Euromap 77 is described in the OPC UA XML file "Opc_Ua.EUROMAP77.NodeSet2.xml".
Note Euromap 77, Euromap 83 and OPC UA for Devices (DI) With Release Candidate 2, some of the Euromap definitions have been transferred from Euromap 77 to Euromap 83. You will therefore also need to import the OPC UA server interface of Euromap 83. "OPC UA for Devices" is a generally applicable information model for the configuration of hardware and software components. The information model also serves as the basis for other companion standards and is therefore also imported.
The OPC UA XML files are available here: Euromap77 (http://www.euromap.org/euromap77) Euromap83 (http://www.euromap.org/euromap83) OPC UA for Devices (https://opcfoundation.org/UA/schemas/DI/) These XML files define an OPC UA interface of an injection molding machine that complies with Euromap 77.
Using Euromap 77: Overview To use Euromap 77, proceed as follows: 1. Generate an XML file by creating an instance of the type "IMM_MES_InterfaceType" using the SiOME program. How to proceed is described below in "Step 1: Create instances in SiOME". 2. In STEP 7 (TIA Portal), create PLC tags and server methods that correspond to the instance of the type "IMM_MES_InterfaceType" (created in Step 1). See below for information on how to proceed in "Step 2: Create PLC tags in STEP 7". An example of OPC UA nodes and the corresponding PLC tags can be found in section "Creating a server interface for companion specification (Page 218)". 3. In STEP 7 (TIA Portal), add a new server interface of companion specification type and import the XML file you created in step 1. The "Creating a server interface for companion specification (Page 218)" section describes how to proceed. 4. Assign the OPC UA nodes of the new server interface to the corresponding PLC tags, which you created in step 2. The "Creating a server interface for companion specification (Page 218)" section describes how to proceed.

Communication Function Manual, 11/2019, A5E03735815-AH

207

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Step 1: Create instances in SiOME The following section describes how to use the free program "SiOME", the "Siemens OPC UA Modeling Editor". With SiOME, you can create an OPC UA XML file, which describes the server interface (an information model). Download link and explanations about SiOME are available here (https://support.industry.siemens.com/cs/ww/en/view/109755133).
Procedure in STEP 7 To use the new server interface, import the server interface into the STEP 7 project, see section "Creating a server interface for companion specification (Page 218)". When the project is loaded into the CPU, the new server interface is available for OPC UA clients.
Procedure in SiOME 1.7.3 The following description shows the work steps in SiOME 1.7.3. To use Euromap 77, create an XML file with an instance of "IMM_MES_InterfaceType". The object type must be instantiated in order for the information model of the specific machine to appear in the address space of the OPC UA server. The object type "IMM_MES_InterfaceType" is the root object type of Euromap 77. "IMM" stands for "Injection Moulding Machine". Follow these steps: 1. Download the files "Opc_Ua.EUROMAP77.NodeSet2.xml" and
"Opc_Ua_EUROMAP83_NodeSet2.xml" from the Euromap website (see above). 2. Download the file "Opc.Ua.Di.NodeSet2.xml" from the OPC Foundation website.
The "Opc.Ua.Di.NodeSet2.xml" file contains type definitions which Euromap 77 uses. 3. Start SiOME. 4. First, import the namespace "http://opcfoundation.org/UA/DI/".
To do so, click the "Import XML" button in the "Information model" area.
Figure 9-34 "Import XML" button in SiOME
SiOME displays the dialog for the opening files. 5. To import the file, select the "Opc.Ua.Di.NodeSet2.xml" file and click "Open".
Result: SiOME imports the XML file and shows the namespace "http://opcfoundation.org/UA/DI/" in the "Namespaces" area. The standard namespace "http://opfoundation.org/UA/" is always available in SiOME and does not have to be imported.

208

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
6. Now import the namespace "http://www.euromap.org/euromap83/" To do so, click the "Import XML" button again in the "Information model" area. Select the file "Opc_Ua.EUROMAP83.NodeSet2.xml". Result: SiOME imports the XML file and shows the namespace "http://www.euromap.org/euromap83/" in the "Namespaces" area.
7. Now import the namespace "http://www.euromap.org/euromap77/" To do so, click the "Import XML" button again in the "Information model" area. Select the file "Opc_Ua.EUROMAP77.NodeSet2.xml".
8. Create your own namespace for your project. To do this, right-click in the "Namespaces" area on "OPC UA Modelling Editor Project" or on "Namespaces" and select "Add Namespace". SiOME opens the "Add Namespace" dialog.
9. Enter the name of a new namespace. The "YourCompany.org" namespace is used in the example. SiOME now also displays the new namespace:

Figure 9-35 Display of the namespace in SiOME
10.Create an instance from the root object type IMM_MES_InterfaceType of the Companion specification Euromap 77. To do so, in the "Information model" area, right-click the "DeviceSet" directory and select "Add Instance".
SiOME displays the "Add Instance" dialog.
11.For "Name", enter a meaningful name for your instance.
In the example, enter "IMM_Manufacturer_01234".
For "TypeDefinition", select "IMM_MES_InterfaceType".
This object type is the root object type of Euromap 77: If you generate an instance of this object type, then use the Euromap 77 once in the address space of your OPC UA server.

Communication Function Manual, 11/2019, A5E03735815-AH

209

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
12.Click "OK". SiOME shows the new instance "IMM_Manufacturer_01234" in the "Information model" area under "DeviceSet":

Figure 9-36 Display information model
13.Create an instance of the data type "InjectionUnitType". To do this, right-click on the "InjectionUnits" directory in the "Information model" area and select "Add Instance". SiOME displays the "Add Instance" dialog. For "Name", enter a meaningful name for the instance. In the example, enter "InjectionUnit_1". For "TypeDefinition", select "InjectionUnitType". Click "OK".
14.Create a new "Mould_1" instance of the "MouldType" object type in the "Moulds" directory.
15.Create a new instance "PowerUnit_1" of the "PowerUnitType" object type in the "PowerUnits" directory.

210

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
16.Save the XML file. To do so, click the "Quick save" button in the "Information model" area:
Figure 9-37 "Quick save" button in SiOME
17.Export the XML file. To do so, click the "Export XML" button in the "Information model" area.
Figure 9-38 "Export XML" button in SiOME
SiOME shows the "Export XML" dialog. 18.Leave all namespaces activated and click "OK".
SiOME displays the "Save as" dialog. 19.Select a meaningful name and save the exported file.
In the example, name the XML file "IMM_Manufacturer_01234". Result: You have now created an XML file which uses the companion specification "Euromap 77" once (with one instance).

Communication Function Manual, 11/2019, A5E03735815-AH

211

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Step 2: Creating PLC tags for the Euromap 77 instance in STEP 7. For Euromap 77, you must provide PLC tags and server methods in your user program and assign the instance of the "IMM_MES_InterfaceType" type. To create PLC tags for the instance of the "IMM_MES_InterfaceType" type, proceed as follows. 1. Create a user-defined data type (UDT). The figure below shows the beginning of the user-defined data type "InjectionUnit" as example. This data type has the same structure as "InjectionUnit" in the type "IMM_MES_InterfaceType". Make sure that you use SIMATIC data types that are compatible with the OPC UA data types (see "Mapping of data types" below).

Result

Figure 9-39 Creating a UDT in STEP 7
2. Add a new global data block to your STEP 7 project. In the example, name the data block "IMM_Manufacturer_01234", so that there is a reference to the injection molding machine of the respective manufacturer and the serial number.
3. Create a new element in this data block. In the example, name this element "InjectionUnit_1"
4. Assign the new user-defined data type "InjectionUnit" to this element.
In your STEP 7 project, you have created a tag for the Euromap 77 in the "IMM_Manufacturer_01234" data block.

212

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4.4

Rules for OPC UA XML files

Importing exported OPC UA XML files to an S7-1500 CPU
Please note the following information when importing server interfaces that come from the OPC UA XML export of an S7-1500.
Note Import blocked for namespace "http://www.siemens.com/simatic-s7-opcua"
You cannot import server interfaces with the namespace "http://www.siemens.com/simatics7-opcua" to an S7-1500 CPU because this namespace is reserved for S7-1500 CPUs (standard SIMATIC server interface) and is not available for imports.
If you want to import a server interface with the namespace "http://www.siemens.com/simatic-s7-opcua", open the server interface to be imported (OPC UA XML file) and change the namespace in the relevant places. The file thus changed can then be imported.

Integrity of the OPC UA XML files OPC UA XML files represent the server address space. These files are, for example, imported by you in the context of OPC UA Companion specifications as a server interface after adaptation to the application, loaded with the hardware configuration into the S7-1500 CPU and tested.
WARNING No checking of imported OPC UA XML files Protect these OPC UA XML files against unauthorized manipulation since STEP 7 does not check the integrity of these files.
Recommendation To minimize risks in the case of an extension or adaptation of the server address space, follow these steps: 1. Protect the project (project navigation: Security settings > Settings). 2. Export the corresponding server interface before the extension or adaptation. 3. Revise this OPC UA XML file. 4. Import the file again as a server interface.

Communication Function Manual, 11/2019, A5E03735815-AH

213

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4.5

Data types for companion specifications

Mapping of data types
The table below shows the compatible SIMATIC data type for each OPC UA data type.
Assign the data types as shown below (SIMATIC data type - OPC UA data type). Other assignments are not permitted. STEP 7 does not check the observance of this rule and does not prevent an incorrect assignment. You are responsible for the rule-compliant selection and assignment of the data types.
You can also use the listed data types, for example, as elements of structures/UDTs for input and output parameters of self-created server methods (UAMethod_InParameters and UAMethod_OutParameters).

Table 9- 3 Mapping of data types

SIMATIC data type

OPC UA data type

BOOL

Boolean

SINT

SByte

INT

Int16

DINT

Int32

LINT

Int64

USINT

Byte

UINT

UInt16

UDINT

UInt32

ULINT

UInt64

REAL

Float

LREAL

Double

LDT

DateTime

WSTRING

String

DINT

Enumeration (Encoding Int32) and all derived data types

User-defined data type required (UDT, user-defined data UNION and all derived data types type)

The user-defined data type must be created with the prefix "Union_", for example "Union_MyDatatype". See example below the table.

The first element (Selector) in this UDT must have the data type "UDINT".

214

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
User-defined data type for UNION required The figure below shows the tag "MyVariable", which has the "Union_MyDatatype" data type. This SIMATIC data type corresponds to an OPC UA tag with the data type UNION. The figure shows an example of the declaration: When Selector = 1, Union takes a ByteArray; when Selector = 2, Union takes a WString.
Using other OPC UA basic data types Apart from the OPC UA data types listed in the section "Mapping of data types" and their correspondences on the SIMATIC side, there are the following OPC UA basic data types which you can also use:  OpcUa_NodeId  OpcUa_QualifiedName  OpcUa_Guid  OpcUa_LocalizedText  OpcUa_ByteString  OpcUa_XmlElement Requirement for the use of the basic data types listed above as variables in the application program: The basic data types have to exist as complex data types that are structured exactly like the corresponding OPC UA basic data types.  OpcUa_NodeId and OpcUa_QualifiedName exist as system data types; that's why you can use these data types not only for single variables but also as elements of a structure.  For the remaining basic types you have to create a PLC data type in accordance with the OPC UA specification and subsequently use it as an element in a structure so that the data types of the elements can be resolved. What each PLC data type must look like is described below for every single basic data type. "EUInformation" is an example of a data structure in which, for example, the UDT "LocalizedText" is used. EUInformation contains information on EngineeringUnits. You can find an example of the implementation of the EUInformation data structure at the end of the PLC data type descriptions.

Communication Function Manual, 11/2019, A5E03735815-AH

215

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
System data type "OPC_UA_NodeId" For the OPC UA basic data type "OpcUa_NodeId", please refer to the following table for the meaning of the parameters. Use OPC_UA_NodeId for the identification of a node in the OPC UA server.

Parameter NamespaceIndex Identifier
IdentifierType

S7 data type UINT WSTRING[254]
UDINT

Meaning Namespace index of the node in the OPC UA server. A node can, for example, be a tag. The designation of the node (object or tag) depends on the identifier type:
· Numeric identifier: The node is labeled with a number, for example "12345678".
· String identifier: The node is labeled with a name, for example "MyTag". No distinction is made between upper and lower case.
Type of identifier
· 0: Numeric identifier · 1: String identifier · 2: GUID · 3: Opaque

System data type "OPC_UA_QualifiedName" See the following table for the structure of the system data type "OPC_UA_QualifiedName":

Name NamespaceIndex Name

S7 data type UINT WSTRING[64]

Meaning The namespace index of the name. Name of the node or tag.

UDT "Guid"
For the basic data type "Guid", create the following PLC data type. The default values used as examples can also be set differently.

Figure 9-40 "Guid" UDT

216

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
UDT "LocalizedText" For the basic data type "LocalizedText", create the following PLC data type:

Figure 9-41 "LocalizedText" UDT

The EncodingByte indicates which fields (Locale or Text) are available:

EncodingByte 0 1 2 3

Meaning The fields Locale and Text are empty The field Locale has content, the field Text is empty The field Locale is empty, the field Text has content The fields Locale and Text have content

UDT "ByteString"
For the basic data type "ByteString", create the following PLC data type; in this case, for example, a ByteString array with 12 elements:

Figure 9-42 "ByteString" UDT
Communication Function Manual, 11/2019, A5E03735815-AH

217

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
UDT "XmlElement" An XmlElement is a serialized XML fragment (UTF-8 string). For the basic data type "XmlElement", create the following PLC data type:
Figure 9-43 "XmlElement" UDT
Example: Structure of EUInformation with UDT "LocalizedText"

Figure 9-44 Example: Structure of EUInformation with UDT "LocalizedText"

9.3.4.6

Creating a server interface for companion specification
For basic information on companion specifications, refer to the section "Using OPC UA companion specifications (Page 206)". The benefits of the Euromap 77 companion scpecification, which provides a model for injection molding machines, is also discussed in detail there.
Using this companion standard, the S7-1500 CPU can control an injection molding machine, for example, and provide an OPC UA client, such as a higher-level MES system, with an interface for accessing the functions and tags of injection molding machine.
An OPC UA server interface of the type "Companion Standard" limits the access of clients to exactly those functions and tags that are required, for example, for higher-level systems (MES systems).
The following description shows how to create a server interface in STEP 7 (TIA Portal) which contains only the Euromap 77 companion specification.
If you want to make OPC UA clients accessible to other tags or methods than those required for the management of an injection molding machine, simply create another OPC UA server interface. In this way, you can clearly arrange the functionality of the CPU as OPC UA server.

218

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Creating a server interface for a companion specification To create a server interface for a companion specification with STEP 7 (TIA Portal), proceed as follows: 1. Select the CPU that you want to use as an OPC UA server. 2. In the project tree, click "OPC UA communication > Server interfaces". 3. Double-click "Add new server interface". 4. To select this type of server interface, click "Companion specification". A general name for the new server interface is entered in the dialog, for example "Server_Interface_1". 5. Change the name of the new server interface so that it is descriptive in your project. The name should have the following structure according to Euromap 77: "IMM_<Manufacturer>_<Serial number>". The example uses the name "IMM_Manufacturer_01234".

Communication Function Manual, 11/2019, A5E03735815-AH

219

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
6. In the "Import XML file" field, select an XML file that describes an information model. The "Using OPC UA companion specifications (Page 206)" section describes how to create such an XML file with the SiOME tool. The figure below shows a section from the information model: "IMM_MANUFACTURER_0123456" an instance (use) of the type "IMM_MES_InterfaceType" which was defined by Euromap 77 . "InjectionUnit_1" is an instance of the "InjectionUnitType" type of Euromap 77.

220

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
7. Click "OK". STEP 7 (TIA Portal) imports the information model described in the selected XML file. An error occurs when type definitions are used in the imported XML file that are not yet present in STEP 7 (TIA Portal) and that are also not contained in the imported XML file. In the example, an XML file is imported that uses type definitions defined in the following namespaces (Namespaces): ­ http://opcfoundation.org/UA/DI/ ­ http://www.euromap.org/euromap83/ ­ http://www.euromap.org/euromap77/ Tip: STEP 7 displays missing namespaces in the lower area of the OPC UA interface editor ("Properties" tab). To do this, select the server interface in the project tree (here: IMM_Manufacturer_01234) and select the "Namespaces" area in the inspector window. Missing namespaces are selected. If one or more namespaces are missing in your STEP 7 project, create a new server interface of the "Reference namespace" type for each namespace. The "Creating a server interface for reference namespace (Page 223)" section describes the procedure. If all reference namespaces are available, STEP 7 displays the table without errors:
8. Drag the OPC UA elements from the right area of the table (OPC UA elements) to the left part of the table (OPC UA server interface) so that the respective OPC UA elements (the local PLC tags) are assigned to the respective OPC UA nodes of Euromap 77.

Communication Function Manual, 11/2019, A5E03735815-AH

221

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
The figure below shows a section from the assignment of the local data (PLC tags) to the OPC UA nodes of the Euromap 77:

Information on the server interface
The editor for configuring the OPC UA server interface is structured as a table and provides the following information:
 Name
The top node (root node) is named "IMM_Manufacturer_01234" in the example. If a client browses in the address space of the server, this node is the container for all lower-level nodes. BrowseName and the DisplayName of this node depend on the name you have assigned for the server interface.
In this case, for example, this name stands for the injection molding machine as a whole. It is the name of the instance of the Euromap 77 companion specification that is used here. According to the companion specification, the instance name should begin with "IMM", followed by the name of the manufacturer of the injection molding machine; the serial number of the machine is added to the end. This allows a unique identification of the machine.
The names of all other (lower-level) nodes are defined by the specification (in the example above by Euromap 77). These node names must not be changed. This ensures a uniform view of all injection molding machines, which complies with the specification.
 Node type
Type of the OPC UA node. The type is specified by the companion specification that is used.
In the following cases, STEP 7 marks a node type in the table in color:
­ No definition is included for this in the imported XML file or
­ The namespace in which the type was defined is not available in STEP 7.
In this case, create a server interface of the "Reference namespace" type for the missing namespace or for each of the missing namespaces.
The missing namespaces can be found under "Namespaces" in the properties of the server interface.

222

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
 Local data STEP 7 displays the data block which is assigned to the OPC UA node: The CPU reads the value of the OPC UA node from this data block. If a data block is highlighted in color (e.g. after a consistency check), the specified data block is not available in the CPU. In this case, you have to create the missing data block in the CPU (of user program) and supply it with values.
 Data type The SIMATIC data type of the PLC tag (e.g. element of a data block) in the CPU, from which the value of an OPC UA node (UAVariable type) is read, or to which a value is assigned.
Consistency check You have the option to check the server interface. STEP 7 (TIA Portal) checks whether the OPC UA node of the server interface PLC tags (data blocks) has been assigned compatible SIMATIC data types. To check the consistency of the server interface, click on the following icon in the toolbar of the OPC UA server interface editor:

Export interface
You have the option of exporting the OPC UA server interface as an XML file. This XML file contains all data type definitions referenced by the server interface.
To export the OPC UA server interface, click on the following icon in the toolbar of the OPC UA server interface editor:

9.3.4.7

Creating a server interface for reference namespace

Companion specifications and referenced namespaces
A series of OPC UA object types (as well as additional definitions) are defined in a companion specification. These object types are each defined in namespaces so that the names of the object types (type definitions) are unique.
To use a companion specification in your project, create instances of object types of this companion specification.
To do this the object definitions must be available in your STEP 7 project. If this is not the case, you must import the object definitions. To import all definitions of a namespace, create a server interface of type "Reference namespace" for each namespace in STEP 7.

Communication Function Manual, 11/2019, A5E03735815-AH

223

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Example Euromap 77 You have added a server interface for the companion specification Euromap 77 . The server interface uses object types defined in OPC UA DI as well as in Euromap 83 and Euromap 77 in their corresponding namespaces. Therefore, in addition to the server interface Euromap 77 of the "Companion Specification" type, create additional server interfaces of "Reference namespace" type in STEP 7, in each case for the following namespaces:  http://opcfoundation.org/UA/DI/  http://www.euromap.org/euromap83/  http://www.euromap.org/euromap77/ The following description shows you how to proceed.
Creating a server interface for a reference namespace To create a server interface for a namespace, proceed as follows: 1. Select the CPU that you want to use as an OPC UA server. 2. Click "OPC UA communication > Server interfaces". 3. Double-click "Add new server interface". STEP 7 (TIA) now displays the dialog "Add new server interface". A general name for the new server interface is entered in the dialog, for example "Server_Interface_1". 4. Assign a descriptive name for the new server interface. In the example, select the name "OPC.Ua.Di" or a similar name that clearly references the namespace "http://opcfoundation.org/UA/DI/". This namespace must be imported first. It contains basic definitions (for example, the UAObjectType "DeviceType").

224

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
5. For "Import XML file", select an XML file that contains the definitions of the namespace "http://opcfoundation.org/UA/DI/". Select the file "Opc.Ua.Di.NodeSet2.xml" in the example. You can download this file here: (https://opcfoundation.org/UA/schemas/DI/) The figure below shows the dialog with the entries:

6. Click "OK".
STEP 7 (TIA) now generates the new server interface.
You can find the server interface in the project navigation of STEP 7 (TIA Portal), under "OPC UA Communication > Server interfaces > Namespace references".
If a companion specification uses additional namespaces, add a new server interface for each namespace.
Add additional server interfaces for Euromap77
For Euromap 77, you still need the following namespaces:
 http://www.euromap.org/euromap83/
 http://www.euromap.org/euromap77/
First, add a server interface for the namespace "http://www.euromap.org/euromap83/".
This namespace contains basic definitions for Euromap 77, therefore it is required here first. All definitions of this namespace are included in the XML file "Opc_Ua.EUROMAP83NodeSet2.xml", which you can download from the Euromap website (www.euromap.org/en/euromap83).
Then add a server interface for the namespace "http://www.euromap.org/euromap77". All definitions of this namespace are included in the XML file "Opc_Ua.EUROMAP77.NodeSet2.xml", which you can also download from the Euromap website (www.euromap.org/en/euromap77).

Communication Function Manual, 11/2019, A5E03735815-AH

225

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.4.8

Notes on configuration limits when using server interfaces
When you use OPC UA server interfaces, you must comply with limits for the following objects in line with the S7-1500 CPU performance class:
 Number of server interfaces
 Number of OPC UA nodes
 Load object data volume
 If you have implemented methods: Number of server methods or server method instances

Configuration limits for OPC UA server interfaces and methods
The table below sets out the configuration limits for S7-1500 CPUs; these must also be taken into account when you compile and load a configuration (up-to-date technical specifications of the CPUs can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td)).
A violation of configuration limits results in an error message.

Table 9- 4 Configuration limits for OPC UA server interfaces

Technical specification value

CPU 1510SP (F)

CPU 1505 (S/SP/SP F/SP T/SP TF) CPU 1507S (F)

CPU 1511 (C/F/T/TF) CPU 1515 (F/T/TF)

CPU 1517 (F/T/TF)

CPU 1512C

CPU 1515 SP PC (F/T/TF)

CPU 1518 (F)

CPU 1512SP (F)

CPU 1516 (F/T/TF)

CPU 1513 (F)

Use of imported companion specifications (information models)

Maximum number of OPC UA server interfaces:

· "Companion specification" type 10

10

10

· "Reference namespace" type

20

20

20

· "Server interface" type

10

10

10

· Maximum number of OPC UA nodes in user-defined server interfaces

1000

5000

30000

· Maximum size of loadable OPC 1024 KB UA server interfaces

5120 KB

15360 KB

Provision of methods

Maximum number of usable server 20

50

100

methods or max. number of server

method instances (instructions

OPC_UA_ServerMethodPre,

OPC_UA_ServerMethodPost)

226

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.5

Providing methods on the OPC UA server

9.3.5.1

Useful information about server methods

Providing user program for server methods
On the OPC UA server of an S7-1500 CPU (as of firmware V2.5), you have the option of providing methods via your user program. These methods can be used by OPC UA clients, for example to start a manufacturing job using the method call of the S7-1500 CPU.
OPC UA methods, an implementation of "Remote Procedure Calls", provide an efficient mechanism for interactions between different communication nodes. The mechanism provides both job confirmation and feedback values so you no longer have to program handshaking mechanisms.
Using OPC UA methods, you can transfer data consistently without trigger bits/handshaking, for example, or trigger specific actions on the controller.
How does an OPC UA method work?
An OPC UA method in principle operates like a know-how protected function block that is called by an external OPC UA client in runtime.
The OPC UA client only "sees" the defined inputs and outputs. The content of the function block, the method or algorithm, remains hidden to the external OPC UA client. The OPC UA client receives feedback on successful execution and values returned by the function block (method), or an error message if execution has not been successful.
As the programmer, you have full control over and responsibility for the program context in which the OPC UA method runs.
Rules for programming a method and runtime behavior
 Make sure that the values returned by the OPC UA method are consistent with the input values provided by the OPC UA client.
 Follow the rules on assigning name and the structure of parameters, and the permitted data types (see description of the OPC UA server instructions).
 Behavior during runtime: The OPC UA server accepts one call per instance. The method instance is not available for other OPC UA clients until the call has been processed by the user program or has timed out.
The basic procedure for implementing a user program as a server method is set out below.

Communication Function Manual, 11/2019, A5E03735815-AH

227

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Implementing a server method
A program (function block) for implementing a server method is structured as follows:
1. Querying the server method call with OPC_UA_ServerMethodPre
You first call the "OPC_UA_ServerMethodPre" instruction in your user program (i.e. in your server method).
This instruction has the following tasks:
­ With this instruction you ask the OPC UA server of the CPU whether your server method was called from an OPC UA client.
­ If the method was called and the server method has input parameters, your server method now receives the input parameters.
The input parameters of the server method come from the calling OPC UA client.
2. Editing the server method
In this section of the server method, you provide the actual user program.
You have the same options as in any other user program (for example, access to other function blocks or global data blocks).
If the server method uses input parameters, these parameters are available to you.
This section of the server method should only be executed if an OPC UA client has called the server method.
After successful execution of the method, you set the output parameters of the server method if the method has output parameters.
3. Responding to server method with OPC_UA_ServerMethodPost
To complete the server method, call the "OPC_UA_ServerMethodPost" instruction.
Use the parameters to notify the "OPC_UA_ServerMethodPost" instruction whether or not the user program has been processed.
If the user program has been successfully executed, the OPC UA server is notified via the relevant parameters. The OPC UA server then sends the output parameters of the server method to the OPC UA client.
Always call the instructions "OPC_UA_ServerMethodPre" and "OPC_UA_ServerMethodPost" as a pair irrespective of whether the user program is processed by both instructions or continued in the next cycle.
You will find an example of a server method implementation in the STEP 7 online help.

228

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Integrating the server method The diagram below shows how an OPC UA client (A) calls the server method "Cool":
The CPU executes the instance "Cool1" of the server method "Cool" in the cyclic user
program . The CPU first uses the instruction "OPC_UA_ServerMethodPre" to query  whether an OPC UA client has called the server method "Cool" .
 If the server method has not been called, program execution returns directly to the cyclic
user program over  and . The CPU resumes the cyclic user program after "Cool1".
 If the server method has been called, this information is returned to the server method
"Cool" over . The actual functionality is now executed in the Cool server method,
see"<Method Functionality>" in the graphic.
The server method then uses the instruction "OPC_UA_ServerMethodPost"  to notify the firmware (B) that the instruction has been executed . The firmware returns this information over  to the calling OPC UA client (A).

Communication Function Manual, 11/2019, A5E03735815-AH

229

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
The CPU resumes the cyclic user program after "Cool1".

A

Call of the server method and management of the "Done" information (method complete)



Asynchronous call of the server method



Asynchronous "Done" information for the method called (method complete)

B

Wait for OPC UA client calls, management of calls in the queue, forwarding of "Done" information from the cyclic

user program to the OPC UA client



Data transfer from the OPC UA server to the method instances of the user program and vice versa

C

Check whether method has been called.

If it has, forwarding of input data from the OPC UA server to the method instance of the user program and feed-

back to the method instance that the method has been called ("called")



Synchronous call of the instruction OPC_UA_ServerMethodPre as a multi-instance stating the storage area for the

input data from the OPC UA server.

The return value indicates whether or not the method has been called by the OPC UA client.



Check whether the method has been completed or is still active ("busy").

D

Check whether the method has been completed.

If it has, the output data of the method instance is forwarded to the OPC UA server and the method instance is

notified that the method has been completed. The OPC UA server is notified.



Call of the method FB (in this case: FB Cool) with the required instance and the process parameters

Figure 9-45 Example: Calling the "Cool" server method

Information about server instructions
The "OPC_UA_ServerMethodPre" and "OPC_UA_ServerMethodPost" are described in detail in the help to the Instructions > Communication > OPC UA > OPC UA server.

See also

Boundary conditions for using server methods (Page 231)

230

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.5.2

Boundary conditions for using server methods

Permitted data types
If you provide server methods, observe the following rule:
 Assign the data types as shown below (SIMATIC data type - OPC UA data type). Other assignments are not permitted.
STEP 7 does not check the observance of this rule and does not prevent an incorrect assignment. You are responsible for the rule-compliant selection and assignment of the data types.
You can also use the listed data types, for example, as elements of structures/arrays/UDTs for input and output parameters of self-created server methods (UAMethod_InParameters and UAMethod_OutParameters).

SIMATIC data type BOOL SINT INT DINT LINT USINT UINT UDINT ULINT REAL LREAL LDT WSTRING DINT
User-defined data type required (UDT, user-defined data type) The user-defined data type must be created with the prefix "Union_", for example "Union_MyDatatype". The first element (Selector) in this UDT must have the data type "UDINT".

OPC UA data type Boolean SByte Int16 Int32 Int64 Byte UInt16 UInt32 UInt64 Float Double DateTime String Enumeration (Encoding Int32) and all derived data types UNION and all derived data types

Communication Function Manual, 11/2019, A5E03735815-AH

231

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Number of implementable server methods and number of arguments
If you implement server methods via your user program, the number of usable methods is limited depending on the CPU type, see the following table (up-to-date technical data of the CPUs can be found in the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td)).

Technical specification value
Maximum number of usable server methods or max. number of server method instances (OPC_UA_ServerMethodPre, OPC_UA_ServerMethodPost instructions) Maximum number of arguments per method (More than the specified number of arguments can be configured and loaded into the CPU, but an OPC UA client cannot call the method).

CPU 1510SP (F) CPU 1511 (C/F/T/TF) CPU 1512C CPU 1512SP (F) CPU 1513 (F) 20
20

CPU 1505 (S/SP/SP F/SP T/SP TF) CPU 1515 (F/T/TF) CPU 1515 SP PC (F/T/TF) CPU 1516 (F/T/TF)

CPU 1507S (F) CPU 1517 (F/T/TF) CPU 1518 (F)

50

100

20

20

Error message when exceeded
If the maximum number of server methods is exceeded, the OPC_UA_ServerMethodPre or OPC_UA_ServerMethodPost instructions report the error code 0xB080_B000 (TooManyMethods).

Supply of structured data types with nested arrays
If a structured data type (Struct/UDT) contains an array, the OPC UA server does not provide information about the length of this array.
If you use such a structure as the input or output parameter of a server method, for example, you must ensure that the nested array is supplied with the correct length when the method is called.
If you do not adhere to this rule, the method fails with the error code "BadInvalidArgument".

232

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.6

Using diagnostics options

9.3.6.1

Diagnostics of the OPC UA server

Online diagnostics of the OPC UA server The S7-1500 CPU OPC UA server can be diagnosed online with standard OPC UA clients, such as UaExpert. The diagnostic information is subdivided into the following areas:  Server Diagnostics  Sessions Diagnostics  Subscriptions Diagnostics

In the address space of the server, for example, the following nodes are available with diagnostic information:
 ServerDiagnosticsSummary: Server diagnostics summary
­ CurrentSessionCount: Number of active sessions
­ SecurityRejectedSessionCount: Number of sessions rejected due to mismatching end point security settings between client and server
 SessionsDiagnosticsSummary: Session diagnostics summary
­ ActualSessionTimeout: Set time that a session lasts, e.g. in the event of disconnection
 SubscriptionsDiagnosticsArray: ARRAY with one element per subscription for each session

Communication Function Manual, 11/2019, A5E03735815-AH

233

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Figure 9-46 Server diagnostics
The SessionsDiagnosticsSummary node also shows the properties of the client application accessing the server within the session.

Figure 9-47 Sessions diagnostics with the properties of the client application

Diagnostics of the connection between client and server
To diagnose the status of the connection during program runtime in the client, use the following instruction:
OPC_UA_ConnectionGetStatus: Read connection status.

234

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

9.3.6.2

Server state transition diagnostics

Information on the server state
S7-1500 CPUs as of firmware version V2.8 are able to create an entry in the diagnostic buffer upon state changes of the OPC UA server.
The diagnostic buffer displays the new state.
The cause of the state change is also displayed, such as download to the CPU, POWER OFF - POWER ON transition, user program instruction or service request from a partner (client).

Requirement

The "Change of OPC UA server status" option is selected (OPC UA > Server > Diagnostics) in the OPC UA properties of the CPU.
Note If this option is selected, the CPU also automatically enters the lowest set security policy into the diagnostic buffer after startup.

Examples

If the OPC UA server of the CPU shuts down due to a download process and then starts with a valid new configuration, the diagnostic buffer shows new server state, e.g. Shutdown => Starting => Running.
If the OPC UA server shuts down due to a download process and the server cannot start because the type dictionary is too large, the diagnostic buffer finally shows the state "Failed" (Shutdown => Starting => Failed).

Communication Function Manual, 11/2019, A5E03735815-AH

235

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Server states and state transitions

,  


POWER ON or Load in RUN, if OPC UA relevant data could be affected.
Loading the hardware configuration with deactivated OPC UA server. The server remains shut down.
Loading the hardware configuration with activated OPC UA server and faulty OPC UA data (for example, too many structures with the result that the type dictionary becomes too
large). In this case, the server cannot start (see ).
OPC UA server cannot start due, for example, to faulty configuration.

Figure 9-48 Server states and state transitions

Description of the server states The individual states that the OPC UA server can assume are explained below.

Server states Shutdown
Starting Running Failed

Explanation Initial status · After POWER ON · After loading the hardware configuration with activated or deactivated OPC UA
server. · After loading OPC UA relevant data
OPC UA address space in server is initialized. OPC UA server running (normal productive state for OPC UA server). Error state. OPC UA server cannot start due, for example, to faulty configuration.

9.3.6.3

Session state transition diagnostics

Information on the session state
S7-1500 CPUs as of firmware version V2.8 are able to create an entry in the diagnostic buffer for state changes of an OPC UA session.
The diagnostic buffer displays the new state. The corresponding session ID is also displayed.

236

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Requirement

The "Change of session states" option (OPC UA > Server > Diagnostics) is selected in the OPC UA properties of the CPU.

Example

A client transmits incorrect authentication data (for example, incorrect password) when a connection is established. The new state of the "ActivationFailed" session is entered with the corresponding session ID in the diagnostic buffer.

Subscription states and state transitions

 Client connects to server, login with correct authentication data (correct credentials).  Client closes connection correctly.  Client no longer sends messages; session ends with timeout.  Client connects to server, login with incorrect authentication data.
Figure 9-49 Session states and state transitions

9.3.6.4

Check for security events
If the CPU diagnostics detects a security event during the OPC UA communication, it can enter it in the diagnostic buffer.

Requirements

 S7-1500 CPUs as of firmware version 2.8
 The "Check for security events" option is activated (properties of the CPU > OPC UA > Server > Diagnostics).

Communication Function Manual, 11/2019, A5E03735815-AH

237

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Security events detected in diagnostics
S7-1500 CPUs perform diagnostics on the following OPC UA relevant security events:
 Client-certificate is invalid (for example, syntactically or semantically incorrect, incorrect signature, current date is not in the validity period)
 User name/password login failed (deactivated or incorrect data)
 Client wants to use a specific security policy or a specific message security mode; the server does not support the security policy or the requested security mode.
 Client does not establish connection according to specification (OPC UA Spec) (for example, unexpected SecureChannelID/SessionID/client Nonce)

Example

If an attempt is made to compromise communications (for example, by session hijacking, man-in-the-middle attacks etc.), the server detects this via analysis.

9.3.6.5

Request of a remote client failed S7-1500 CPUs as of firmware version V2.8 are able to create an entry in the diagnostic buffer for the following events:  Bad client requests (incorrect use)  Service error occurred  CPU-specific high limits of the OPC UA server were violated

Example of a faulty client request
For example, there is an incorrect request when a client addresses a node (tag) that does not exist or if a resource is requested that does not exist.
In this case, the corresponding service that caused the fault is entered in the diagnostic buffer and the corresponding session ID is also entered.

Service fault

If a service itself fails, the server returns a ServiceFault. In this case, the status code (Bad...) and the according session ID are entered in the diagnostics buffer.

Example of limit violations
If a service request exceeds a CPU-specific limit, for example, number of sessions, number of monitored items, number of subscriptions, etc., this diagnostics is entered in the diagnostics buffer. Together with the message, it is indicated which limit has been violated.
Exception: If you summarize diagnostics and the message occurs frequently, the limit causing the error is not entered. You receive general information that the supported configuration limit has been violated.

238

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Possible entries for the service that is causing the error Depending on the client application used, requests to the server can be triggered differently from the user's viewpoint, for example, by an online tool with a graphical user interface or by instructions in a client's program. With its service-oriented architecture, OPC UA follows a request-response paradigm, therefore the respective client application converts the requests into the service requests defined in OPC UA. The names of these services are defined and grouped according to their use, see also opcfoundation.org. In the case of an incorrect use, you can find precisely these names of the services, together with the corresponding session ID, in the diagnostic buffer as the service that caused the error. The services available with OPC UA are listed below.
Discovery Service Set FindServers GetEndpoints
Session Service Set CreateSession ActivateSession CloseSession Cancel
View Service Set Browse BrowseNext TranslateBrowsePathsToNodeIds RegisterNodes UnregisterNodes
Attribute Service Set Write Read
Method Service Set Call

Communication Function Manual, 11/2019, A5E03735815-AH

239

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Monitored Item Service Set CreateMonitoredItems ModifyMonitoredItems DeleteMonitoredItems SetMonitoringMode SetTriggering
Subscription Service Set CreateSubscription ModifySubscription DeleteSubscriptions Publish Republish SetPublishingMode

9.3.6.6

Subscription diagnostics

Information about a subscription
S7-1500 CPUs as of firmware version V2.8 are able to create an entry in the diagnostic buffer at state changes of a subscription.
The diagnostic buffer displays the new state; exception: "KeepAlive".

Requirement

In the OPC UA properties of the CPU, the option "Subscriptions: Change of status" (OPC UA > Server > Diagnostics) is selected.

Example

An OPC UA client is connected to an S7-1500 CPU as OPC UA server and generates a subscription in the server.
The diagnostic options for subscriptions are selected in the OPC UA properties of the CPU.
The "Creating" and "Normal" states are entered one after the other with the corresponding subscription ID in the diagnostic buffer.

240

Communication Function Manual, 11/2019, A5E03735815-AH

Subscription states and state transitions

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

 Subscription is generated and is then active.  Status change is not entered in the diagnostic buffer because too many entries may be made
in the diagnostic buffer depending on the amount of data.
 See explanation in table for "Late"; for example, no requests to send from client.  Maximum KeepAlive value reached.  See explanation in table for "TimedOut".  Maximum lifetime of subscription reached.  Client has deleted subscription.
Figure 9-50 Subscription states and state transitions

Description of the subscription states A subscription in the OPC UA server can have the following states:

Status Creating Normal Closed KeepAlive Late
TimedOut

Meaning
Client has requested a subscription in the server; the server creates the subscription.
Subscription is created in the server and active.
Client has deleted the subscription.
Status if the monitored items do not change over a long period of time. These state transitions are not entered in the diagnostic buffer.
Client has generated a subscription with minimal sampling and publishing intervals. The amount of monitored items is not transmitted to the client during this time.
Client no longer transmits requests to send (for example, due to failure).
The client has requested a subscription.
The server can only honor the subscription (send Publish Response) when there is a sufficient number of send requests (Publish Requests) from the client.
When the client stops sending subscription requests, the subscription enters the "TimedOut" state after a certain time.

Communication Function Manual, 11/2019, A5E03735815-AH

241

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server

Subscription: Error in the sampling times
As of firmware V2.5 of the SIMATIC S7-1500 CPU, the OPC UA server can transmit the status code "GoodOverload" when using subscriptions, if an overload of the CPU occurs when sampling the items.
As of firmware V2.8 of the SIMATIC S7-1500 CPU, the OPC UA server can also enter this event into the diagnostic buffer.

Requirement

In the OPC UA properties of the CPU, the option "Subscriptions: Sampling time errors" (OPC UA > Server > Diagnostics) is selected.

Error-free subscription
In the case of an OPC UA subscription to various elements (such as tags), the OPC UA server of the SIMATIC S7-1500 must check the elements for value changes at specified intervals (sampling interval). This check, referred to as "sampling", requires some time, which depends on the number and the data type of the items. After the sampling is completed and a publishing request has been received, the server sends the elements to the client.

Figure 9-51 Error-free subscription

242

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
Subscription with error If there are too many elements in the queue, there may be an overload of the communication stack. The CPU cannot check all elements in the given sampling interval and must therefore skip the next sampling job. In this case, the CPU sends the status code "GoodOverload" (0x002F0000) per element, even though the elements were not checked. The meaning of the status code according to IEC 61131-3 is as follows: "Sampling has slowed down due to resource limitations".

See also

 Sampling job is skipped
Figure 9-52 Subscription with error
See also FAQ 109763090.
Settings of the server for subscriptions (Page 181) Meaning of the "GoodOverload" status (https://support.industry.siemens.com/cs/ww/en/view/109763090)

9.3.6.7

Summarizing diagnostics
To prevent the diagnostics buffer being "swamped" by large numbers of identical OPC UA diagnostics, as of STEP 7 V16 service pack 1, you can set parameters so that these diagnostics are entered in the diagnostics buffer as group alarm. Per interval (monitoring time), the CPU then only generates one group alarm per OPC UA diagnostics.
The following sections describe which diagnostics the CPU groups together and how the process runs with a high message volume.

Requirement

The "Summarize diagnostics in case of high message volume" option is activated in the OPC UA properties of the CPU (OPC UA > Server > Diagnostics, "Summarize diagnostics" area).

Example

An OPC UA client repeatedly "overloads" an S7-1500 CPU as OPC UA server with a sampling rate that the server cannot handle (overload).
The "Summarize diagnostics in case of high message volume" setting is activated.
A message appears in the diagnostics buffer for this diagnostic option. It states that the sampling rate cannot be reached; followed by the number of these events within the configured interval.

Communication Function Manual, 11/2019, A5E03735815-AH

243

OPC UA communication 9.3 Using the S7-1500 as an OPC UA server
OPC UA diagnostics that can be summarized The diagnostics listed below each form their own groups (type). Diagnostic events from the same group are combined using the setting "Summarize diagnostics in case of high message volume":  Incorrect use of an OPC UA service  OPC UA Service error  Subscription status has changed  Sampling rate could not be achieved (subscriptions, overload)  OPC UA security check failed  Configuration limit of the OPC UA server violated
Principle of operation The CPU enters the first three events of an event type in the diagnostics buffer. It then ignores all subsequent diagnostics of this group. At the end of the monitoring time (interval), the CPU generates a group alarm in which it enters the diagnostics and the frequency of this diagnostics during the elapsed interval. If these diagnostics also occur in the intervals that follow, the CPU only generates one group alarm per subsequent interval. A diagnostic surge leaves the following pattern in the diagnostics buffer: Three individual messages followed by a series of group alarms. This series can consist of two, three or more group alarms depending on the selected monitoring time and duration of the diagnostic surge.

 Diagnostic results of a group (of a type), for example "Sampling rate could not be reached".  Interval (monitoring time): When a diagnostic event occurs the first time (or reoccurs), the mon-
itoring time is started (or restarted).
 Single alarms: The first three diagnostic events from the same group are entered in the diag-
nostics buffer immediately. Starting with the fourth diagnostic event, the CPU generates only group alarms. If a diagnostic event of this group occurs after a pause of at least one interval, the CPU enters a single alarm in the diagnostics buffer and restarts the monitoring time.
 Group alarms: After three diagnostic events, the CPU only generates a group alarm as a sum-
mary of all additional diagnostic events in this interval. If these diagnostic events also occur in the intervals that follow, the CPU only generates one group alarm per subsequent interval.
Figure 9-53 Summary of diagnostics

244

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

9.4

Using the S7-1500 CPU as an OPC UA client

9.4.1

Overview and requirements
With STEP 7 (TIA Portal) Version V15.1 and higher, you can assign parameters and program an OPC UA client that can read PLC tags in an OPC UA server. Furthermore it is possible to transfer new values for PLC tags to an OPC UA server. In addition, you can call methods that an OPC UA server provides in your user program. You use the instructions for OPC UA clients in your user program for this.
The instructions of the OPC UA client are based on the standard "PLCopen OPC UA Client for IEC61131-3".

PLCopen specification
With these standardized instructions, you can develop an OPC UA client functions in your user program that can be executed in an S7-1500 CPU.
In addition, it is possible with just a few adaptations to run this user program in controllers of other manufacturers if these manufacturers have also implemented the OPC UA Specification "PLCopen OPC UA client for IEC61131-3".

Convenient editors in STEP 7
For the parameter assignment of the instructions for OPC UA clients, a convenient editor is available in the TIA Portal ­ the connection parameter assignment (Page 175).
As of Version 15.1, STEP 7 also features an editor for client interfaces (Page 251).
This section describes how you work with these editors.
First, you will be shown how to create and configure a new interface with the interface editor, because you need this type of interface for the subsequent connection parameter assignment.
The description uses an example for better comprehensibility, see Description of the example (Page 249).

Requirements

 You have the required runtime license for OPC UA and have configured the license in STEP 7 (CPU Properties > Runtime Licenses).
 The client of the S7-1500 CPU is activated.
To use the client of the S7-1500 CPU, you must enable it:
1. Select the area "OPC UA > Client" in the properties of the CPU.
2. Select the "Enable OPC UA client" option.
If you do not enable the client, the connection is not established. You receive a corresponding error message at the instructions, for example "OPC_UA_Connect".
For information about the application name, which also applies to the server and the client, see here (Page 175).

Communication Function Manual, 11/2019, A5E03735815-AH

245

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

Overview

To use the editor and the connection parameter assignment, follow these steps:
1. First, specify a client interface. Add to this the PLC tags and PLC methods interface that you want to access ("First step (Page 251)").
2. Next, configure the connection to the OPC UA server (Second step (Page 268)).
3. Finally, use the configured connection for the OPC UA client instructions (Third step (Page 276)).

9.4.2

Useful information about the client instructions
With the standardized OPC UA client instructions you are able to control communication for the following tasks with the S7-1500 CPU as an OPC UA client:  Read/write tags of the OPC UA server  Call methods in the OPC UA server Optional instructions can be used to determine the following information:  The status of the connection between the OPC UA client and OPC UA server  Node IDs of nodes with known hierarchy of the address space

Standardized sequence of OPC UA communication
The sequence of the communication, and thus the order of the instructions, follows a pattern that is illustrated in the following.

 Instructions for preparation of read and write operations  Read and write instructions  Instructions for "clean-up" after a completed read or write operation
Figure 9-54 Run sequence for a read or write operation

246

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
 Instructions for preparation of method calls  Method calls  Instructions for "clean-up" after completed method calls
Figure 9-55 Run sequence for a method call in the OPC UA server
Optional instructions (reading out the status of a connection / reading out node IDs of nodes with known hierarchy of the address space)  OPC_UA_ConnectionGetStatus  OPC_UA_TranslatePathList

 Instructions for preparation of read and write operations with inserted instruction for requesting,
for example, the NodeIDs of nodes of the OPC UA server.
 You can determine the connection status between the establishment and termination of the
connection in parallel with other instructions.
 Instructions for "clean-up"
Figure 9-56 Run sequence of optional instructions
Convenient editors in STEP 7
The OPC UA client instructions are described in detail in the reference part (STEP 7 information system). For parameter assignment of the instructions, a convenient editor is available in the TIA Portal ­ the connection parameter assignment (Page 268).
We recommend starting with the connection parameter assignment for the first program draft and using additional instructions and manually optimizing the program as required.

Communication Function Manual, 11/2019, A5E03735815-AH

247

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Information about the client instructions The client instructions are described in detail in the help to the Instructions > Communication > OPC UA > OPC UA client.
Application example in Online Support This application example (https://support.industry.siemens.com/cs/ww/en/view/109762770) provides you with an S7 user block "OpcUaClient" that summarizes the most important functions of the OPC UA instructions, accelerates the implementation for you and simplifies the programming. The OPC UA server in the example is an S7-1500 controller with a simple simulation program for process values. The S7 user block performs the following:  Establishment and termination of the connection to the server  Diagnostics of the connection and automatic reconnection after connection terminations  Registered Read  Registered Write  Registered Method Call

9.4.3

Number of client instructions that can be used simultaneously

SIMATIC error codes for OPC UA client instructions
The following limits apply to the simultaneous use of OPC UA client instructions (up-to-date technical specifications of the CPUs can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/td)):

Table 9- 5 Quantity structures for OPC UA client instructions

OPC UA instruction
OPC_UA_Connect OPC_UA_NamespaceGetIndexList OPC_UA_NodeGetHandleList OPC_UA_MethodGetHandleList OPC_UA_TranslatePathList OPC_UA_ReadList

Maximum number for CPU 1510SP (F) CPU 1511 (C/F/T/TF) CPU 1512C CPU 1512SP (F) CPU 1513 (F) 4 4* 4* 4* 4* 20 in total (max. 5 per connection, see OPC_UA_Connect)

Maximum number for CPU 1505 (S/SP/SP F/SP T/SP TF) CPU 1515 (F/T/TF) CPU 1515 SP PC (F/T/TF) CPU 1516 (F/T/TF)

Maximum number for CPU 1507S (F) CPU 1517 (F/T/TF) CPU 1518 (F)

10 10* 10* 10* 10* 50 in total (max. 5 per connection, see OPC_UA_Connect)

40
40* 40* 40* 40*
200 in total (max. 5 per connection, see OPC_UA_Connect)

248

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

OPC UA instruction
OPC_UA_WriteList OPC_UA_MethodCall
OPC_UA_NodeReleaseHandleList OPC_UA_MethodReleaseHandleLi st OPC_UA_Disconnect OPC_UA_ConnectionGetStatus

Maximum number for CPU 1510SP (F) CPU 1511 (C/F/T/TF) CPU 1512C CPU 1512SP (F) CPU 1513 (F) 20 in total (max. 5 per connection, see OPC_UA_Connect) 20 in total (max. 5 per connection, see OPC_UA_Connect) 4* 4*
4* 4*

* maximum 1 per connection

Maximum number for CPU 1505 (S/SP/SP F/SP T/SP TF) CPU 1515 (F/T/TF) CPU 1515 SP PC (F/T/TF) CPU 1516 (F/T/TF)

Maximum number for CPU 1507S (F) CPU 1517 (F/T/TF) CPU 1518 (F)

50 in total (max. 5 per connection, see OPC_UA_Connect)
50 in total (max. 5 per connection, see OPC_UA_Connect)
10* 10*

200 in total (max. 5 per connection, see OPC_UA_Connect)
200 in total (max. 5 per connection, see OPC_UA_Connect)
40*
40*

10*

40*

10*

40*

Maximum number of usable OPC UA client interfaces
If you create OPC UA client interfaces using the connection parameter assignment, the number of client interfaces is limited to 40.
Create the OPC UA client interfaces by double-clicking the "Add new client interface" symbol in the project tree of the "OPC UA communication" area.
The maximum number of OPC UA client interfaces is independent of whether you also use the CPU as OPC UA server.

9.4.4

Example configuration for OPC UA
The following sections describe how you can use the client interfaces editor and the connection parameter assignment.
The description is based on a specific example: Two S7-1500 CPUs operate in the system: One CPU serves as the OPC UA client and the other as the OPC UA server.
You can, of course, also use controllers, sensors and IT systems of other manufacturers as OPC UA clients or servers. In particular, the data exchange between different systems (interoperability) is a major advantage of OPC UA.

Communication Function Manual, 11/2019, A5E03735815-AH

249

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Connection parameter assignment using an example: The plant produces blanks in a production line. The following controllers are used: 1. An S7-1511 CPU serves as the controller of the production line. The controller is named "Productionline" in the example. The OPC UA server of the controller is enabled. The CPU has the IP address 192.168.1.1 in the example. This CPU publishes the values of following tags via the OPC UA server: ­ NewProduct The tag has the data type "BOOL". When this PLC tag has the value TRUE, the production line has processed a blank. The blank is ready for pick-up. ­ ProductNumber This tag contains the identification number of the blank. The tag has the data type "Int". ­ Temperature This tag contains temperature values recorded during the production of the blank. The tag is an array with elements of the "Real" data type. In addition, this CPU provides the following writable tag: ­ ProductionEnabled The tag is set by the OPC UA client. The tag has the data type "BOOL". If the value is set to TRUE, the production line is released and may produce blanks. In addition, this CPU provides the following method via the OPC UA server: ­ OpenDoor. OPC UA clients can hereby arrange for an access door to be opened to the production line. 2. An S7-1516 CPU controls the interaction with other production lines. This CPU is named "Supervisor" in the example. The OPC UA client of this CPU is enabled. Using OPC UA, this CPU can read the NewProduct and ProductNumber tags, set the ProductionEnabled tag and call the OpenDoor method. The CPU has the IP address 192.168.1.2 in the example.

250

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
The following figure shows the example in the network view of the TIA Portal:

Figure 9-57 Example of assigning connection parameters in the network view

9.4.5

Creating client interfaces
As of Version 15.1, the TIA Portal has an editor for client interfaces.
You group all PLC tags that you want to read or write from an OPC UA server in a client interface.
In addition, the client interface contains all methods that the OPC UA server provides and that you want to call with your user program (that acts as an OPC UA client).
If you create a client interface, STEP 7 also creates data blocks for the parameter assignment of the connection to the OPC UA server from which you want to read data or to which you want to write data.
Maximum number of client interfaces
You can create a maximum of 40 client interfaces.

Editor for client interfaces To create a client interface, follow these steps: 1. Select the project view in the TIA Portal. 2. In the "Devices" area, select the CPU you want to use as an OPC UA client. 3. Click "OPC UA communication > Client interfaces".

Communication Function Manual, 11/2019, A5E03735815-AH

251

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
4. Double-click "Add new client interface". STEP 7 creates a new client interface and display in the editor.

Figure 9-58 Adding OPC UA client interface
STEP 7 names the new interface "Client interface_1". If a "Client interface_1" already exists, the new interface receives the designation "Client interface_2" etc. In addition, STEP 7 creates the following data blocks: ­ Client_Interface_1_Configuration
The data block already contains all system data types that are needed for the instructions of the OPC UA client. This data block is filled when you configure the connection to the OPC UA server. You configure a connection in the properties of the client interface, see: Example configuration for OPC UA (Page 249). ­ Client_Interface_1_Data A data block for the PLC tags that you want to read or write from an OPC UA server as well as for methods that you want to call in the OPC UA server. You use this data block in your user program. This data block is currently still empty. 5. Select a descriptive name for the new client interface. Select "Productionline" in the example. This also changes the names of the associated data blocks to: ­ Productionline_Data ­ Productionline_Configuration 6. To import an OPC UA server interface, click the "Import interface" button in the top right of the editor. This allows you to import an XML file which describes the server interface of an OPC UA server. Alternative: To determine online the server interface of a connected OPC UA server, see: Determine server interface online (Page 260).

252

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
7. STEP 7 displays a dialog with which you can select an XML file. This XML file describes a address space of an OPC UA server. The address space of an OPC UA server contains all PLC tags and server methods published by an OPC UA server. OPC UA clients can access this address space: - Read PLC tags - Write PLC tags - Calling Server Methods The address space of an OPC UA server can be divided into one or more server interfaces. For creating server interfaces, see: Creating a server interface for companion specification (Page 218).

Communication Function Manual, 11/2019, A5E03735815-AH

253

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
8. Create a read list in this client interface. To do this, follow these steps: ­ Click "Add new read list" in the left section of the editor. STEP 7 adds a new list named "ReadList_1". For the example, change the name to "ReadListProduct" ­ Now add the new read list of the PLC tags that you want to read from the OPC UA server. In the example the "NewProduct" and "ProductNumber" tags are added to the "ReadListProduct" read list. Select the "NewProduct" tag in the right-hand field of the editor ("OPC UA Server interface"). Drag the "NewProduct" tag to the "ReadProduct" read list in the middle field of the editor. Follow the same procedure with the "ProductNumber" tag. The figure below shows the right field of the editor.

Figure 9-59 Read list in the OPC UA server interface
Alternative:
You can also select a new read list by dragging the right field of the editor ("OPC UA Server interface") to a node of the type Object or Folder and then dragging it to "Add new read list" in the left field of the editor. The new read list then contains all PLC tags of the node that has been moved.
In the example, select the object "Data_for_OPC_UA_Clients", which contains the tags "NewProduct" and "ProductNumber". STEP 7 generates the new read list "Data_for_OPC_UA_Clients". In addition, the object contains the tag "Temperature". Delete the "Temperature" tag from the read list. Since they should not be read in the example.
Change the name of the read list in "ReadListProduct".
The following figure shows the content of the read list:

Figure 9-60 Read list
254

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Note Read and write lists do not support all node types. The OPC UA client of the S7-1500 CPU does not support all OPC UA data types (node types) that can be made available via an OPC UA server interface. If you place an unsupported node type, for example, in a read list or write list a corresponding error signal appears. In this case, you cannot include the corresponding node in the read or write list. Which types are supported is described here: Mapping of data types (Page 142)
9. If you want assign new values to PLC tags, create a write list in this client interface. To do this, follow these steps: ­ Click "Add new write list" in the left section of the editor. STEP 7 adds a new list with the name "ReadList_1". For the example, change the name to "WriteListStatus". ­ Now add the new write list of all OPC UA server tags to which you want to assign new values. In the example, add the "WriteListStatus" tag to the write list "ProductionEnabled". Select the Tag of right field of the editor ("OPC UA Server interface"). Drag the tag to the write list in the middle field of the editor. Alternative: You can also create a new write list by selecting a node of the type Object or Folder in the right field of the editor ("OPC UA server interface") and then dragging to "Add new write list" in the left field of the editor. The new write list then contains all tags of the relevant node. In the example, select the object "Data_from_OPC_UA_Clients", which contains the tag "ProductionEnabled". STEP 7 generates the new write list "Data_from_OPC_UA_Clients". Change the name in "WriteListStatus". The following figure shows the content of the write list:
Figure 9-61 Write list

Communication Function Manual, 11/2019, A5E03735815-AH

255

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
10.If you want to call a method of this OPC UA server, generate a new method list. To do this, follow these steps: ­ In the left section of the editor, click "Add new method list". STEP 7 adds a new list with the name "Method list_1". For the example, change the name to "MethodListOpenDoor". ­ Now add a method of the OPC UA server to the new method list. In this example, add the method "OpenDoor" to the method list "MethodListOpenDoor". Select the method of right field of the editor ("OPC UA Server interface"). Drag the method to the method list in the middle field of the editor. Alternative: You can also generate a new method list by selecting a method (node of the type Object) in the right field of the editor (OPC UA Server interface) and then dragging it to "Add new method list" in the left field of the editor. The new method list then contains the method of the relevant node. The following figure shows the content of the method list:
Figure 9-62 Methods list
If you want to call another method of the OPC UA server, you must create a new method list. Each method list contains only one method. See also Useful information about server methods (Page 227). 11.Compile the project. To do so, select the project and click the following button in the toolbar:
STEP 7 compiles the project and updates the data blocks that belong to the "Productionline" client interface.
Note During compilation, STEP 7 overwrites all data in the data blocks belonging to the client interface. For this reason, you should neither add to nor correct these data blocks manually.

256

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Note Renaming nod names (DisplayNames)
In read lists, write lists and method lists you can rename the name of a node by means of the shortcut menu. This is the "DisplayName" in the OPC UA language usage.
If you rename the name of a method list node and the node is already used in a programmed block for the method call "OPC_UA_MethodCall", the compilation of the project leads to consistency errors: During the compilation the UDTs of the method are generated with the changed name. The references to the method used in the program are then no longer correct.
To correct the consistency errors, you can either undo the name change of the method in the client interface or navigate to the method call and assign the relevant parameters again there under "Properties > Block parameters" ("Configuration" tab).

Communication Function Manual, 11/2019, A5E03735815-AH

257

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Data blocks of client interface The following data blocks belong to the "Productionline" client interface:  Productionline_Configuration A data block for the configuration. In the example, this data block is called "Productionline_Configuration". The data block already contains all system data types that are needed for the instructions of the OPC UA client. In addition, the data block contains general default values for parameter assignment of the connection to an OPC UA server. If you are working with connection parameter assignment, this data block will be filled.  ProductionLine_Data A data block for the PLC tags that you have entered in the client interface editor. In the example, this data block is called "Productionline_Data". The figure below shows the data block.

Figure 9-63 "Productionline_Data" data block
Use the "Productionline_Data" data block in your user program and access the read values of the "NewProduct" and "ProductNumber" PLC tags. This is explained in the following section using an example.

258

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Reading and writing PLC tags of the client interface Example: Reading the "ProductNumber" value For example, you write in an SCL program: #MyLocalVariable := "Productionline_Data".ReadListProduct.Variable.ProductNumber;
You use this, for example, to assign the number of the blank that was just produced in the production line to the local tag "#MyLocalVariable". Requirements:  A connection exists to the OPC UA server of the CPU, which controls the production line.  The OPC UA client has read the current values. For this reason you check whether a read value is valid:  Check whether the value in "Productionline_Data".ReadListProduct.NodeStatusList[1] is
equal to 0.  Optional: Check when this value was sent from the OPC UA server. This value is in
"Productionline_Data".Product.TimeStamps[1]. If no time stamp is requested, the communication load is reduced. Example: Writing the "ProductEnabled" value Transfer the new values for PLC tags, in the example for the "ProductionEnabled" tag, to the OPC UA server using the data block. With the following assignment, you enable the production line in the example plant: "Productionline_Data".WriteListStatus.Variable.ProductionEnabled := TRUE;
This is only successful, however, if the following requirements are met:  A connection exists to the OPC UA server of the CPU, which controls the production line.  Current values are being written via the OPC UA client

Communication Function Manual, 11/2019, A5E03735815-AH

259

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Consistency check Finally, check the consistency of the read/write list or method list. 1. Select the list that you want to check. 2. Click the "Consistency check" button above the "OPC UA client interface" area. A green check mark indicates an error-free assignment of the tags or methods to the corresponding elements of the server interface.

You can assume that the data exchange between client and server and method calls operate without problem in runtime.
In the event of an error a list appears in the Inspector window. From this list you can jump to the respective error.
During the consistency check, STEP 7 checks:
 Whether all elements that you use in the respective list are also present in the server.
 Do the data types used match?
 For methods: Do the number, name, order, and data types of method arguments match?

9.4.6

Determine server interface online
With STEP 7 (TIA Portal) you can determine the interface of an OPC UA server online. This provides information on which tags of a connected OPC UA server you can read or set (write) with OPC UA clients. It also provides information on which server methods of the OPC UA server are available for OPC UA clients.
If you are work offline you can create the interface of the OPC UA server by means of an OPC UA XML file. The address space of the server is described in the OPC UA XML file, see: Export OPC UA XML file (Page 174).

Determine online server interfaces
To determine a server interface online, follow these steps:
1. In the STEP 7 project tree, select the CPU which is configured as OPC UA client (Supervisor in the example).
2. Select the client interface (in the example, OPC UA Communication > Client interfaces > Productionline).
If no client interface has been created, double-click "Add new client interface".

260

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client 3. Double-click the selected client interface. The editor for client interfaces is displayed.
Figure 9-64 Editor for client interface
4. In the left section of the editor, click "Add new read list", "Add new write list", or "Add new method list".
5. In the right field of the editor, select "Online[]" as data source for "Source of server data":

Communication Function Manual, 11/2019, A5E03735815-AH

261

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
6. Click the "Online Access" button. STEP 7 displays the "Connect to OPC UA server" dialog.

Figure 9-65 "Connect to OPC UA server" dialog
Tip: When establishing an online connection to an OPC UA server for the first time, use the "Online access" button. When reconnecting after a disconnection, select the "Connect to Online Server" button next to the "Online" selection field.
In the top right, enter the IP address of the OPC UA server whose server interface you want to determine online.
7. Click "Find selected server".
STEP 7 establishes a connection to the OPC UA server and determines all security settings (server endpoints) that the server holds in readiness.
STEP 7 displays the end points as list:

Figure 9-66 Found OPC UA server with all server endpoints
8. Click on the end point you want to use for a connection of STEP 7 to the OPC UA server.

262

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
9. Do you want to use a secure connection?
­ If you have selected a secure end point, then select the entry "TIA Portal" for the "Certificate location".
And under "Certificate (Client)", select a client certificate for your PC on which STEP 7 (TIA Portal) is currently running.
If a client certificate does not yet exist for your PC, you can generate a client certificate here in the TIA Portal.
Proceed as follows to generate a certificate for your PC:
- Click on the button in the "Certificate (Client)" input field.
- Click "Add".
- For "Certificate owners" enter "STEP 7 (TIA Portal)".
- Select the "OPC UA client" entry at "Usage".
- For "Subject Alternative Name (SAN)", enter the IP address of your PC, on which you are currently running STEP 7 (TIA Portal), under "Value". Overwrite the already entered IP address.
- If your PC uses a second IP address, enter this address as well. If your PC does not use a second IP address, delete the second IP address already entered.
- Click "OK".
­ If you have not selected a secure end point, then keep the default ("None").
10.How do you want log on?
­ If you want to log onto the OPC UA server as guest, then apply the default with "User authentication".
­ If you want to log on with user name and password, select "User name and password".
Use the user name and password which was stored during the configuration of the OPC UA server in the properties of the CPU under "General > OPC UA > Server > Security > User authentication > User management".
11.Click on the "Go online" button.
When a secure connection is established, a message appears that you must accept the server certificate for the secure connection to be established. In the message window, you can display further details about the server certificate via a link.
This standard Windows window only provides information about the server certificate. If you click on the button to install the server certificate, the server certificate is not saved to the certificate memory of the TIA Portal, i.e. at the next connection attempt you will be prompted again to accept the server certificate.
STEP 7 then establishes a connection to the OPC UA server and again displays the editor for client interfaces.
In the right field of the editor, STEP 7 displays the uppermost level of the address space of the OPC UA server:

Communication Function Manual, 11/2019, A5E03735815-AH

263

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
12.Click on the small black triangle next to "Objects". STEP 7 now also displays the level below Objects.
13.Click on the small black triangle next to "Productionline". STEP 7 now also displays the level below Productionline.
14.Now open additional lower-level folders:

See also

Figure 9-67 Online view of OPC UA server interface
Mapping of data types (Page 142) Creating client interfaces (Page 251)

9.4.7

Using multilingual texts
In the client interface editor, you are also importing texts that can be displayed in different languages with the OPC UA XML files (information models). Multilingualism is optional, and each node can be defined differently regarding the languages it offers.
In the XML file, these are the following fields that can be prepared for different languages:
 Display name
 Description

264

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Example for multilingual texts in an OPC UA XML file In the XML file below, the display name and the description, for example, are entered with a "default" text and multiple localizable texts.  Default text is the first entry without localization information.  Localized text is the text after "Locale=" followed by a language code, e.g. "it-IT" for
Italian

Figure 9-68 Example of multilingual texts in an OPC UA XML file
Display of multilingual texts When importing a server interface, the available multilingual texts are saved internally and downloaded to a CPU together with the project.
The client editor displays the text from the OPC UA XML file in the columns "Name of the node" (corresponds to "DisplayName") and "Description" (corresponds to "Description").
The following cascading rules determine which language is shown for a node:
 When the node contains text in the currently used editing language, the text is also displayed in the editing language.
(Setting the editing language: In the project tree, select the area "Languages & resources > Project languages")
 When the node does not contain text in the editing language but a default text is defined there (without language code), the default text is displayed.
 "Name of the node" column: If no default text is defined either but a text in any other language exists, the DisplayName text is displayed in the first available language. This rule does not apply to description texts.
 If none of the conditions listed above is met, no text is displayed.

Figure 9-69 Display for multilingual texts
Communication Function Manual, 11/2019, A5E03735815-AH

265

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
When you change the editing language, the multilingual text in the imported interface will also change according to the rules explained above. You can then apply the nodes in the corresponding lists (read list, write list, method list) with drag and drop. You cannot change the language in the lists (read list, write list, method list).
Applying the displayed description texts as comment in PLC data types When you compile the program, STEP 7 automatically creates PLC data types (UDTs) for each read list, for each write list and for inputs or outputs of each method. These UDTs each have one element for each node. The UDTs apply the description text as comment according to the rules stated above. STEP 7 creates the comment in only one language, just like the texts in the OPC UA server interface can only be displayed in one language.

9.4.8

Rules for the access to structures
The rules for the access to structures are explained below. Note these rules when reading and writing values of complete structures provided by an OPC UA server.

How the client of the S7-1500 CPU accesses structures
The OPC UA client of the S7-1500 CPU uses neither TypeDictionaries nor DataTypeDefinition attributes, which a server offers for the resolution of these structures.
These options of the OPC UA client for checking structural elements in runtime are limited in the client.

Rules for the access to structures
If you use the client interfaces to configure the read and write lists (connection parameterization) and assign the PLC data types to the imported or online determined address model of the server, the read and write accesses to structures operate trouble-free in runtime.
The configuration by means of client interface automatically ensures that the sequence and the data type of the structural elements are coordinated on client and server side.
Recommendation: Update an S7-1500 CPU (as server) to the current firmware version (e.g. V2.0 > V2.5.2 or higher).
In runtime the OPC UA client only checks the total length of the transmitted value; more detailed checks are not possible.
Mapping rules apply to the assignment of OPC UA structures to PLC tags or DB tags (see Mapping of data types (Page 142)). Non-executed data type (such as OPC UA byte strings) are not supported.

266

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client Example of an error-free assignment of the structure elements In the imported node set file (XML export), the structure is defined as follows:
The structure mapped in the read list matches, both in the order and in the assigned data types, the corresponding nodes of the node set file.
If the structure now changes on the server, for example tagA and tagB are swapped, and the read list remains the same in the client, the assignment is no longer correct:  The total length of the data remains the same (only the order has changed)  The configuration of the structure is different for client and server!
WARNING No error message in the case of different structure configuration between client and server If the structures of client and server do not match, this rule violation will possibly not generate any error during compilation and also not in runtime. Make sure not to change the configured assignments for structures in runtime. If required, reconfigure the assignment in the read and write lists!

Communication Function Manual, 11/2019, A5E03735815-AH

267

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

9.4.9

Using connection parameter assignment

9.4.9.1

Creating and configuring connections
With the instructions for OPC UA clients, you create a user program that exchanges data with an OPC UA server. A series of system data types are required for this.
To simplify your work with these system data types, a connection parameter assignment for OPC UA clients is available starting in STEP 7 (TIA Portal) Version 15.1.
Use of the connection parameter assignment is optional and not mandatory. You can also manually create the required system data types.
We use an example to make the description easier to follow, see description of the example (Page 249).

Opening the connection parameter assignment To configure the connection to an OPC UA server, follow these steps:
1. In the "OPC UA communication" area, double-click the client interface whose parameters you want to assign in the project tree.
For the example configuration: Double-click the "ProductionLine" client interface.

The section "Create client interface (Page 251)" describes how to create a client interface.
2. Click the "Properties" tab (Inspector window) if the tab is not already displayed.
STEP 7 now displays the connection parameter assignment for the instructions of the OPC UA client.
The "General" tab is open.
3. Click on the "Configuration" tab and set the connection to the OPC UA server.

Setting the connection parameters
1. Select a descriptive name for the session. For the example, select the name "OPC UA Connection to ProductionLine".
2. In the "Address" field, enter the IP address of the OPC UA server to which your user program (that operates as an OPC UA client) is to establish a connection. In the example configuration, the CPU that controls the production line has the IP address "192.168.1.1". A connection to the OPC UA server of this CPU is to be established. For this reason, you enter this IP address in the "Address" field. In this case, the OPC UA server uses the default port 4840.
Alternatively, you can enter a valid DNS name in the "Address" field. The length of the DNS name is limited to 242 characters. If the address is not valid, the error message is shown: "Enter a valid address". If the string of the "Address", "Port" and "Path" fields contains more than 254 characters, an error message is also displayed.

268

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
3. Enter a path within the OPC UA server to restrict access to this path. The information is optional. However, some servers only establish a connection if a server path is specified. When you specify a path, it is automatically entered at the "ServerEndpointUrl" entry in the configuration DB for the client interface. The entry then consists of the components "OPC Schematic Prefix", "IP address", "Port number" and "Server path", for example: "opc.tcp://192.168.0.10:4840/example/path". The following figure shows the entry of the IP address for the OPC UA server:

Figure 9-70 Connection parameters
4. If the OPC UA server is not using the standard port 4840, you must insert the port number here.
For example, enter the number 65535 in the field, if the OPC UA server to which you want to establish a connection uses this port number.
5. In addition, you accept the default settings for session timeout (30 seconds) and monitoring time (5 seconds).

Communication Function Manual, 11/2019, A5E03735815-AH

269

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Setting the security parameters 1. Click the "Security" area in the "Configuration" tab. This area contains all security settings for the connection to the OPC UA server. The following settings are possible:
"General" area
Security mode: Select the security mode that the connection to the OPC UA server must meet from the drop-down list. If the server does not meet the selected mode, a session is not established. The following settings are available:  No security: No secure connection!  Sign: OPC UA server and OPC UA client sign the data transmission (all messages):
Manipulations can thus be detected.  Sign & Encrypt: OPC UA server and OPC UA client sign and encrypt the data
transmission (all messages):
Security policy: Set the encryption techniques for the signing and encryption of messages. The following settings are possible:  No security  Basic128Rsa15  Basic256  Basic256Sha256 To configure a secure connection, you must observe the following items:  A certificate is required for the client for a secure connection.  You have to make the client certificate known to the server. To find out how to proceed, see the section "Handling client and server certificates (Page 183)" under "Certificate of the OPC UA client".
"Certificates" area
Client certificate: The certificate confirms the authenticity of the OPC UA client. To select a certificate, click the following symbol:
STEP 7 displays a list of certificates. Select the certificate that you have made known to the server.

270

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Click the symbol with the green check mark:
Or, create a new certificate. To do so, click the "Add" symbol. If you create a new certificate, you must make this certificate known to the server.
"User authentication" area The following settings are possible for user authentication:  Guest  User name and password  Users (TIA Portal - Security Settings) For more information, see Users and roles with OPC UA function rights (Page 194).
Setting languages UA tags of the String type can be localized with OPC UA, that is, texts (values for the UA tag) can be available in different languages for the server. For example, localized texts can be available for DisplayName (Name of the node) and Description (Description). In the "Languages" area of the "Configuration" tab you can, for example, influence the language of the texts returned by the server as follows: In the "Languages" area, enter a number of languages that the server transfers to the client during connection setup. The language or the local ID ("language code") associated with it that you enter in the first line is the language preferred by the client.  If the server can provide the UA tag in the requested language, it is transferred to the client.  If the server cannot provide the UA tag in the requested language, it checks whether it can provide the UA tag in the language you have entered in the second line (first substitute language).  The server works its way down the list, and when it can provide neither the requested language nor a substitute language, it will provide the default language.

Additional information
What causes the connection to an OPC UA server to fail? FAQ (https://support.industry.siemens.com/cs/ww/en/view/109766709)

See also

Handling of the client certificates of the S7-1500 CPU (Page 272)

Communication Function Manual, 11/2019, A5E03735815-AH

271

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

9.4.9.2

Handling of the client certificates of the S7-1500 CPU

Where does the client certificate come from?
If you are using the OPC UA client of an S7-1500 CPU (OPC UA client enabled), you can create certificates for these clients with STEP 7 V15.1 and higher as described in the following sections.
When you use UA clients from manufacturers or the OPC Foundation, a client certificate is generated automatically during installation or upon the first program call. You have to import these certificates with the global certificate manager in STEP 7 and use them for the respective CPU.
If you program an OPC UA client yourself, you can generate certificates through the program. Alternatively, you can generate certificates with tools, for example with OpenSSL or the certificate generator of the OPC Foundation:
 The procedure for OpenSSL is described here: "Generating PKI key pairs and certificates yourself (Page 153)".
 Working with the certificate generator of the OPC Foundation is described here: "Creating self-signed certificates (Page 152)".

Certificate of the OPC UA client of the S7-1500 CPU
A secure connection between the OPC UA server and an OPC UA client is only established if the server classifies the certificate of the client as trusted.
Therefore you have to make the client certificate known to the server.
The following sections describe how you can initially generate a certificate for the OPC UA client of the S7-1500 CPU and then make it available to the server.

1. Generate and export a certificate for the client For a secure connection you have to generate a client certificate and - if the server and client are located in different projects - export the certificate.
If client and server are in the same project, exporting the client certificate and subsequent import are not necessary.
Requirements
The IP interface of the CPU is configured, an IP address is available.
Background: The IP address under which the CPU can be accessed in your system is entered under "Subject Alternative Name (SAN)".

272

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Creating an OPC UA Client certificate The easiest way to generate a client certificate for an S7-1500 CPU is to configure a client interface. The configuration of the client interface provides for the selection or generation of a client certificate, see Creating and configuring connections (Page 268). Alternatively, you can generate the client certificate as follows: 1. In the project tree, select the CPU you want to use as a client. 2. Double-click "Device configuration". 3. In the properties of the CPU, click "Protection & Security > Certificate manager". 4. Double-click "<Add new>" in the "Device certificates" table.
STEP 7 opens a dialog. 5. Click the "Add" button. 6. Select the "OPC UA client" entry from the "Usage" list. 7. Click "OK".
STEP 7 now shows the client certificate in the "Device certificates" table. 8. If the server is in another project: Right-click this line and select "Export certificate" from
the shortcut menu. 9. Select a directory where you will store the client certificate.

Communication Function Manual, 11/2019, A5E03735815-AH

273

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

2. Announcing the client certificate to the server You have to make the client certificate available to the server to allow a secure connection to be established. To do this, follow these steps: 1. If the client was configured in another project and you created and exported the client certificate there:
­ Select the "Use global security settings for certificate manager" option in the local certificate manager of the server. This makes the global certificate manager available.
You will find this option under "Protection & Security > Certificate manager" in the properties of the CPU that is acting as server. ­ If the project is not yet protected, select "Security settings > Settings" in the STEP 7 project tree, click the "Protect this project" button and log on.
The "Global security settings" item is now displayed under "Security settings" in the STEP 7 project tree. ­ Double click "Global security settings".
­ Double click "Certificate manager".
STEP 7 opens the global certificate manager. ­ Click the "Device certificates" tab.
­ Right-click in the tab on a free area (not on a certificate).
­ Select the "Import" shortcut menu.
The dialog for importing certificates is displayed. ­ Select the client certificate that the server is to trust.
­ Click "Open" to import the certificate.
The certificate of the client is now contained in the global certificate manager. Note the ID of the client certificate just imported. 2. Click the "General" tab in the properties of the CPU that is acting as server.
3. Click "OPC UA > Server > Security > Secure Channel".
4. Scroll down in the "Secure Channel" dialog to the section "Trusted clients".
5. Double-click in the table on the empty row with "<add new>". A browse button is displayed in the row.
6. Click this button.
7. Select the prepared client certificate.
8. Click the button with the green check mark.
9. Compile the project.
10.Load the configuration onto the S7-1500 CPU (server).

Result

The server now trusts the client. If the server certificate is also considered trusted, the server and client can establish a secure connection.

274

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

9.4.9.3

User authentication
In the OPC UA client interface of the S7-1500, you can set what authentication is required for a user of the OPC UA client wishing to access the server. To do so, you must select the corresponding client interface in the project tree of the requested S7-1500 CPU under "OPC UA communication > Client interfaces" and select the type of user authentication in the Inspector window under "Properties > Configuration > Security".

Types of user authentication
The following options are available for user authentication:
 Guest
The user does not need to verify authorization (anonymous access). The CPU creates an anonymous session for the user, and the OPC UA server does not check the authorization of the client user.
 User name and password
The user must prove authorization (no anonymous access). The OPC UA server checks whether the client user is authorized to access the server. Authorization is given by the user name and the correct password. These inputs cannot be checked by the client interface, which means all values are accepted as being valid.
Note
STEP 7 stores user name and password unencrypted in the data block/instance data block. Recommendation: Use the user authentication "User (TIA Portal - Security Settings)".
 Users (TIA Portal - Security Settings)
You can enter a user name from the list of users entered in the project for authentication. The names of the registered users for the current project are available in the user administration in the project tree under "Security Settings > Users and roles". There you can also enter additional users.
You can also enter a name that is not listed in the user administration of the project or leave the field blank. This is necessary when the corresponding user name is only provided by a different source during runtime, for example, via HMI or from a different OPC UA client.

Communication Function Manual, 11/2019, A5E03735815-AH

275

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

"No Security" security policy and authentication via user name and password
You can set the following combination:
Security policy = "No Security" and authentication via user name and password.
 The OPC UA server of the S7-1500 supports this combination. OPC UA clients can connect and encrypt the authentication data or not.
 OPC UA client of the S7-1500 CPU also supports this combination: However, in runtime it only connects if it can send the authentication data encrypted via cable!
Result: With the following configuration, not connection can be established in runtime.
 S7-1500 as OPC UA client
 OPC UA server which supports no encryption of authentication data when "No Security" (="none") is set as security policy.

See also

Users and roles with OPC UA function rights (Page 194)

9.4.9.4

Using a configured connection

Introduction

This section shows you how to use a configured connection for OPC UA instructions (third step).

Requirements

 You have created a client interface and added PLC tags and PLC methods to this interface, see ("First step (Page 251)").
 You have configured a connection to an OPC UA server (Second step (Page 268)).

Overview

To read data from an OPC UA server or write data to an OPC UA server, use the following instructions:  OPC_UA_Connect  OPC_UA_NamespaceGetIndexList  OPC_UA_NodeGetHandleList  OPC_UA_ReadList or OPC_UA_WriteList  OPC_UA_NodeReleaseHandleList  OPC_UA_Disconnect

276

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Order of the OPC UA instructions The following figure shows the order in which the OPC UA instructions are called in a user program in order to use these instructions to read or write PLC tags:
 Instructions for preparation of read and write operations  Read and write instructions  Instructions for "clean-up" after a completed read or write operation
The "OPC_UA_NodeReleaseHandleList" instruction can be omitted if "OPC_UA_Disconnect" is called immediately afterwards. Figure 9-71 Call sequence for write and read operations
STEP 7 (TIA Portal) automatically supplies the parameters of these instructions if you are using a client interface and a configured connection to an OPC UA server. The procedure is shown in the following section.
Using a client interface and configured connection To use a configured OPC UA connection, follow these steps: 1. Open your user program in the TIA Portal. 2. Using drag-and-drop, move the "UA_Connect" instruction into the program editor. You will find the instruction under "Instructions > Communication > OPC UA" in the TIA Portal.

Communication Function Manual, 11/2019, A5E03735815-AH

277

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
3. Select a call option for the instruction The example uses a multi-instance. STEP 7 displays the instruction in the program editor. The editor for the Function Block Diagram (FBD) programming language uses the following display:
The editor for the Ladder Logic (LAD) programming language displays the instruction similarly. 4. Click the toolbox symbol in the editor for FBD or LAD. The symbol is located in the heading of the instruction: If you are using the editor for STL or SCL: Click the small green rectangle below the first character of the instance name: The example (Page 249) uses "#OPC_UA_Connect_Instance" as the instance name. STEP 7 displays the properties of the instruction in a separate dialog.

278

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
5. For "Client interface" select the client interface that you want to use for the instruction. We select the "ProductionLine" client interface in the example. STEP 7 now interconnects the "ProductionLine" client interface with the parameters of the OPC_UA_Connect instruction:

"ProductionLine" is the interface that the OPC UA client of the example (Page 249) uses for data exchange with the OPC UA server "ProductionLine".
6. Using drag-and-drop, move the "UA_NamespaceGetIndexList" instruction into the program editor.
You will find the instruction under "Instructions > Communication > OPC UA" in the TIA Portal.
Select the "Multi-instance" call option.
Click the toolbox symbol (LAD and FBD) or the small green box below the instance name (STL and SCL) if the editor is not already open.
Select the client interface that you want to use ("ProductionLine" in the example).
STEP 7 now automatically interconnects all parameters of the "OPC_UA_NamespaceGetIndexList" instruction:

Communication Function Manual, 11/2019, A5E03735815-AH

279

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
7. Using drag-and-drop, move the "UA_NodeGetHandleList" instruction into the program editor. Select the "Multi-instance" call option. Click the toolbox symbol (LAD and FBD) or the small green box below the instance name (STL and SCL) if the editor is not already open. Select the client interface that you want to use. The example uses the "ProductionLine" client interface. Under "Data access > Read/Writelist" select the read list that you want to use (in the example the read list "Product"). STEP 7 now automatically interconnects all parameters of the "OPC_UA_NodeGetHandleList" instruction:

280

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client

If you want to write data to an OPC UA server, select the write list you want to use under "Data access > Read/Writelist" (the "ProductionStatus" write list in the example).

Communication Function Manual, 11/2019, A5E03735815-AH

281

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
8. Using drag-and-drop, move the "UA_ReadList" instruction into the program editor.
Select the "Multi-instance" call option.
Click the toolbox symbol (LAD and FBD) or the small green box below the instance name (STL and SCL) if the editor is not already open.
Select the client interface that you want to use. The example uses the "ProductionLine" client interface.
Under "Data access > Read/Writelist" select the read list that you want to use (in the example the "Product" read list).
STEP 7 now automatically interconnects all parameters of the "OPC_UA_ReadList" instruction.
If you want to write data to an OPC UA server, use the "OPC_UA_Write" instruction and select the list of tags you want to send to the server under "Data access > Writelist" ("ProductionStatus" write list in the example).
9. If you use different read lists or write lists as program-controlled lists in your user program, move the "UA_NodeReleaseHandleList" instruction to the program editor using drag-and-drop operation.
Select the client interface that you want to use.
Now select a read list or write list that you want to release: Only release read or write lists that you rarely use, since re-registering is time-consuming.
Then, repeat the steps starting with step 7 with the "UA_NodeGetHandleList" instruction.
10.Using drag-and-drop, move the "UA_Disconnect" instruction into the program editor.
Select the "Multi-instance" call option.
Click the toolbox symbol (LAD and FBD) or the small green box below the instance name (STL and SCL) if the editor is not already open.
Select the client interface that you want to use. The example uses the "ProductionLine" client interface.
STEP 7 now automatically interconnects all parameters of the "OPC_UA_Disconnect" instruction.

282

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.4 Using the S7-1500 CPU as an OPC UA client
Supported instructions For the following instructions, STEP 7 automatically supplies the parameters if you are using a client interface and a configured connection to an OPC UA server:  OPC_UA_Connect  OPC_UA_NamespaceGetIndexList  OPC_UA_NodeGetHandleList  OPC_UA_MethodGetHandleList  OPC_UA_MethodReleaseHandleList  OPC_UA_ReadList  OPC_UA_WriteList  OPC_UA_MethodCall  OPC_UA_NodeReleaseHandleList  OPC_UA_Disconnect

Communication Function Manual, 11/2019, A5E03735815-AH

283

OPC UA communication 9.5 Tips and recommendations

9.5

Tips and recommendations

9.5.1

Rules for subscriptions
The following rules apply to subscriptions:
 Group subscriptions in the client according to different sampling and publishing intervals and distribute the monitored elements (variables) to these groups.
Example: Create a subscription for longer publishing intervals (e.g. 5 seconds) and a subscription for shorter publishing intervals (e.g. 0.1 second).
 Disable unneeded subscriptions.
Reason: The "Deactivated" subscription mode reduces resource consumption.
 Consider the maximum number of monitored items of subscriptions for the corresponding S7-1500 CPU.
The information can be found in the technical specification of the respective CPU. The information is based on a sampling / publishing interval of 1 second.
You can find additional information in the FAQ 109755846 (https://support.industry.siemens.com/cs/us/en/view/109755846).
 Select the same sampling and publishing intervals for the OPC UA client and for the OPC UA server.
 Avoid arrays and structures as elements of subscriptions ­ if the process allows.
Reason: If even one value of an array/structure changes, the entire structure is transferred, creating an unnecessary communication load.
 Occasional non-compliance with the required sampling rate is acknowledged by the OPC UA server of the S7-1500 CPU according to OPC UA specification with a "GoodOverload" error code, see also TIA Portal Help. Different OPC UA clients handle "Good" error codes unequal to "0" differently. Consider this behavior and, if needed, reduce the communication load according to the measures described above.

See also

Settings of the server for subscriptions (Page 181)

284

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.5 Tips and recommendations

9.5.2

Rules for the user program

User programs for OPC UA
The following rules apply to user programs:
 If your application allows it and the communication load is high, you should set a minimum time for cycle OBs.
Advantages:
­ The cycle time remains constant for the most part
­ The CPU has more time for communication tasks throughout
Tip: Use the instruction "Runtime_Info"; mode 21 or mode 25 (see TIA Portal Help) to analyze the CPU utilization (e.g. communication).
 Reduce the number of variables or data blocks that can be reached from OPC UA/HMI. By default, all variables from OPC UA/HMI are accessible when creating variables/DBs/IDBs. This measure leads to improved performance when loading in RUN.
Tip: Using the detailed object display in the TIA Portal, you can easily mark the non-OPCUA-relevant data blocks as "not accessible from OPC UA".
 Consistent transfer of data beyond the limits of simple data types is only possible with OPC UA methods. If you use other OPC UA functions (Subscriptions, Read/Write), you must ensure data consistency in the application.
 OPC UA offers the "RegisterNodes" service for repeated read and write accesses to the same variables. Servers can use this service to prepare for optimized access to variables. The instruction "OPC_UA_NodeGetHandleList" of the S7-1500 as OPC UA client implicitly calls this service to prepare the server for optimized accesses (in OPC UA usage "Registered Read/Write").

Calling detailed object display in the TIA Portal To call up the detailed object display, proceed as follows: 1. Switch to the "PLC Programming" portal in the portal view. 2. Select "Show all objects".

Communication Function Manual, 11/2019, A5E03735815-AH

285

OPC UA communication 9.5 Tips and recommendations
3. Switch to the "Details" tab in the selection window. 4. In the "DB accessible from OPC UA" column, disable the accessibility from OPC UA for
individual objects.

Figure 9-72 Calling detailed object display in the TIA Portal

9.5.3

Master copies for OPC UA communication

Master copies for the OPC UA interfaces
Interfaces of OPC UA servers and OPC UA clients that you want to use multiple times can be stored either in the project library or in a global library. Master copies in the project library can only be used within the project. When you create the master copy in a global library, it can be used in different projects.
The OPC UA capable CPUs differentiate between 3 interface types of the OPC UA server:
 Standard OPC UA server interface
 Companion specification interface
 Namespace reference
When adding the OPC UA interface in the project tree under "OPC UA Communication" each interface type gets its own symbol. The same symbol is used by the master copy.
Create either single master copies or a master copy with multiple interfaces.

Creating multiple master copies from selection You select one or more elements and create individual master copies from them 1. Open the library in the "Libraries" task card. 2. Select the desired elements. 3. Using a drag-and-drop operation, move the elements to the "Master copies" folder or any subfolder of "Master copies".

286

Communication Function Manual, 11/2019, A5E03735815-AH

OPC UA communication 9.5 Tips and recommendations
Creating a master copy from selection You select multiple elements and create a single master copy from them that contains all selected elements. 1. Copy to the clipboard the elements that you want to create as master copies. 2. Right-click on the "Master copies" folder or any of its subfolders in the library. 3. In the shortcut menu, select "Paste as a single master copy" command. If multiple interfaces are added to a master copy from the OPC UA server or OPC UA client, the label and the symbol in the library are changed accordingly. A symbol with "+" is displayed instead of the simple symbol.

See also

Figure 9-73 Create copy template in STEP 7
Creating a user-defined server interface (Page 201)

Communication Function Manual, 11/2019, A5E03735815-AH

287

Routing

10

10.1

Overview of the routing mechanisms of S7-1500 CPUs
The following table gives an overview of the routing mechanisms of the S7-1500 CPU.

Routing mechanism S7 routing

Description

Applications

S7 routing is the transfer of data beyond S7 subnet boundaries. You can send information from a transmitter to a receiver across several s7 subnets.

Download user programs
Load hardware configuration
Execute testing and diagnostics functions

Section S7 routing (Page 289)

IP forwarding Data record routing

IP forwarding is a function of devices to forward IP packets between two connected IP subnets.

Simple access from the control level to the field level for configuration and parameter assignment of devices, e.g. via PDM or Web browser.

IP forwarding (Page 294)

Simplified integration of devices for remote access, e.g. for diagnostics during remote maintenance or firmware update.

Data can be sent over PROFINET from an engineering station to field devices via multiple networks. Since the engineering station addresses the field devices using standardized records and these records are routed via S7 devices, the term "data record routing" is used to refer to this type of routing.

Data record routing is used, for example, when field devices of different manufacturers are used. The field devices are addressed using standardized data records ( PROFINET) for configuration and diagnostics.

Data record routing (Page 301)

288

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.2 S7 routing

10.2

S7 routing

Definition of S7 routing
S7 routing is the transfer of data beyond S7 subnet boundaries. You can send information from a transmitter to a receiver across several s7 subnets. The gateway from one S7 subnet to one or more other subnets is provided by the S7 router The S7 router is a device which has interfaces to the respective S7 subnets. S7 routing is possible via various S7 subnets (PROFINET/Industrial Ethernet and/or PROFIBUS).
Requirements for S7 routing
 All devices that can be reached in a network have been configured in a project in STEP 7 and downloaded.
 All devices involved in the S7 routing must receive routing information about the S7 subnets that can be reached through specific S7 routers. The devices obtain the routing information by downloading the hardware configuration to the CPUs, since the CPUs play the role of an S7 router.
In a topology with several consecutive S7 subnets, the following order must be kept to when downloading: First download the hardware configuration to the CPU(s) directly connected to the same S7 subnet as the PG/PC, then download one by one the CPUs of the S7 subnets beyond this starting with the nearest S7 subnet through to the S7 subnet furthest away.
 The PG/PC you want to use to establish a connection via a S7 router must be assigned to the S7 subnet it is physically connected to. You can assign the PG/PC to a PG/PC in STEP 7 under Online & Diagnostics > Online accesses > Connection to interface/subnet.
 For S7 subnets of the type PROFIBUS: Either the CPU must be configured as DP master or, if it is configured as a DP slave, the "Test, commissioning, routing" check box must be selected in the properties of the DP interface of the DP slave.
 S7 routing for HMI connections is possible as of STEP 7 V13 SP1.
Note Firewall and S7 routing
A firewall does not recognize the IP address of the sender during S7 routing when the sender is located outside the S7 subnet adjacent to the firewall.
An overview of the devices that support the "S7 routing" function is provided in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/584459).

Communication Function Manual, 11/2019, A5E03735815-AH

289

Routing 10.2 S7 routing S7 routing for online connections
With the PG/PC, you can reach devices beyond S7 subnets, for example to do the following:  Download user programs  Download a hardware configuration  Execute test and diagnostics functions In the following figure, CPU 1 is the S7 router between S7 subnet 1 and S7 subnet 2.
Figure 10-1 S7 routing: PROFINET - PROFINET

290

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.2 S7 routing
The following figure shows the access from a PG via PROFINET to PROFIBUS. CPU 1 is the S7 router between S7 subnet 1 and S7 subnet 2; CPU 2 is the S7 router between S7 subnet 2 and S7 subnet 3.

Figure 10-2 S7 routing: PROFINET - PROFIBUS
S7 routing for HMI connections You have the option of setting up an S7 connection from an HMI to a CPU via different subnets (PROFIBUS and PROFINET or Industrial Ethernet). In the following figure, CPU 1 is the S7 router between S7 subnet 1 and S7 subnet 2.

Figure 10-3 S7 routing via HMI connections
Communication Function Manual, 11/2019, A5E03735815-AH

291

Routing 10.2 S7 routing S7 routing for CPU-CPU communication
You have the option of setting up an S7 connection from a CPU to another CPU via different subnets (PROFIBUS and PROFINET or Industrial Ethernet). The procedure is described based on examples in the section S7 communication (Page 112).
Figure 10-4 S7 routing via CPU-CPU communication
Using S7 routing For the CPU, select the PG/PC interface and the S7 subnet in the "Go online" dialog of STEP 7. S7 routing is performed automatically.
Number of connections for S7 routing The number of connections available for S7 routing in the S7 routers (CPUs, CMs or CPs) can be found in the technical specifications in the manuals of the relevant CPU/CM/CP.

292

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.2 S7 routing
S7 routing: Example of an application The figure below shows the example of an application for remote maintenance of a system using a PG. The connection is made here beyond two S7 subnets via a modem connection. You configure a remote connection via TeleService in STEP 7 using "Online access" or "Go online".

Figure 10-5 Remote maintenance of a plant using TeleService

Additional information
 The allocation of connection resources with S7 routing is described in the section Allocation of connection resources (Page 311).
 You can find more information on setting up TeleService in the STEP 7 online help.
 You can find more information on S7 routing and TeleService adapters when you search the Internet using the following links:
­ Device manual Industrial Software Engineering Tools TS Adapter IE Basic (http://support.automation.siemens.com/WW/view/en/51311100)
­ Downloads for the TS Adapter (http://support.automation.siemens.com/WW/view/en/10805406/133100)

See also

HMI communication (Page 63)

Communication Function Manual, 11/2019, A5E03735815-AH

293

Routing 10.3 IP forwarding

10.3

IP forwarding

Forwarding of IP packets with IP forwarding
IP forwarding is a function of devices to forward IP packets between two connected IP subnets.
Enable/disable the IP forwarding function in STEP 7. When IP forwarding is enabled, the S7-1500 CPU forwards received IP packets not addressed to the CPU to locally connected IP subnets or to a configured router.
The following figure shows how a programming device accesses data of an HMI device. Programming device and HMI device are located in different IP subnets. The IP subnets are connected to the two interfaces X1 and X2 of the CPU.

Figure 10-6 Access of a programming device to an HMI via IP forwarding
Areas of application  Easy access from the control level to the field level for configuration and parameter assignment of field devices, e.g. via PDM or web browser  Simplified integration of devices for remote access, e.g. for diagnostics during remote maintenance or firmware update

294

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.3 IP forwarding

Requirements for using IP forwarding
 S7-1500 CPU as of firmware version V2.8
 Number of Ethernet interfaces:
­ The CPU has at least two Ethernet interfaces.
­ Or the CPU has one Ethernet interface, and a CP 1543-1 as of firmware version V2.2 provides the other Ethernet interface. In this case, the "Access to PLC via communication module" function must be enabled for the CP in the CPU.
 IP forwarding is enabled.
 Suitable standard gateways/routes are configured in each participating device along the outgoing and return paths of the IP packets.

IP route table

When IP forwarding is enabled, the CPU forwards received IP packets that are not addressed to itself. How the CPU forwards the IP packets is defined in its internal IP route table.
The CPU automatically creates the IP route table from the following information of the loaded hardware configuration:
 IP configuration of the Ethernet interfaces
 Configured router

Example of a configuration with IP forwarding
The following figure shows a sample configuration along with the required IP address settings and router settings.
 A PC on the IP subnet 192.168.4.0 communicates with an HMI device on the IP subnet 192.168.2.0.
 The IP address of a router ("Standard Gateway") is configured at the CPU, Ethernet interface X3; in the figure below it is the device that is designated as "IP Router". In STEP 7, you configure a router in the interface properties under "Ethernet Addresses" > "IP Protocol".

Figure 10-7 Configuring the router
Communication Function Manual, 11/2019, A5E03735815-AH

295

Routing 10.3 IP forwarding
 For the PC, the IP router, the IO device and the HMI device, the IP addresses of a standard gateway or the corresponding routes are also entered.

Figure 10-8 Sample configuration
This example configuration results in the following IP routing table for the CPU.

Table 10- 1 IP route table of the CPU

Network destination 0.0.0.0/0 192.168.1.0/24 192.168.2.0/24 10.10.0.0/24

Interface 10.10.0.10 192.168.1.1 192.168.2.1 10.10.0.10

Gateway 10.10.0.1 -

For IP communication between the PG/PC and the HMI device, you need to set up additional IP routes to the IP subnet of the HMI device both in the PC and in the IP router. In the HMI device, you configure the IP address of the CPU interface X1 as the standard gateway.

296

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.3 IP forwarding
In a Windows computer, for example, you set up an additional IP route from the command prompt using the command "route add <destination IP subnet> mask <subnet mask> <gateway>". However, you need certain access rights for this. For this example, enter the following prompt:  "route add 192.168.2.0 mask 255.255.255.0 192.168.4.20" In an IP router, you set up additional routes, e.g. via a web interface. Set up the following route for this example:  Destination IP subnet: 192.168.2.0  Subnet mask: 255.255.255.0  Gateway: 10.10.0.10

Communication Function Manual, 11/2019, A5E03735815-AH

297

Routing 10.3 IP forwarding

Restrictions

You cannot configure any additional IP routes other than the router ("Standard Gateway") for an S7-1500 CPU. The network destination is either a connected IP subnet, or the network destination can be reached via exactly one configurable router. Because the S7-1500 CPU does not support additional IP routes, you cannot build bi-directional IP router cascades.
In the following configuration, you can configure either "Router 1" or "Router 2" in the CPU. "Router 1" is configured as an example. In this case, you cannot configure "Router 2". IP communication between the PC and the HMI device is not possible because the route is not continuous in both directions.

Figure 10-9 Unsupported IP router cascade

298

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.3 IP forwarding
IP forwarding via the interface of a CP IP forwarding also works via the interface of a CP. For this you have to activate the "Access to PLC via communication module" function for this CP in the CPU. How you enable the "Access to PLC via communication module" function is described in the online help of STEP 7.
Reaching C/C++ Runtime of the CPU 1518 4 PN/DP MFP via interfaces X1 or X2 If you activate PN/DP MFP IP forwarding for the CPU 1518 4 PN/DP, you will not only reach devices in the IP subnet of interface X3 via interfaces X1 and X2, but also C/C++ Runtime. From the C/C++ Runtime of the CPU 1518 4 PN/DP MFP, you reach all devices in the IP subnets of the interfaces X1, X2 and X3. Conditions:  IP forwarding is enabled for the CPU 1518 4 PN/DP MFP.  The IP address of C/C++ Runtime and the IP address of interface X3 are located in the same IP subnet.  The routes to the IP subnets at X1 and X2 are entered in C/C++ Runtime. In C/C++ Runtime, enter a route with the following command: "Route add-net <destination IP subnet> mask <subnet mask> gw <gateway> The following figure shows a configuration in which a PC accesses the C/C++ Runtime of CPU 1518-4 PN/DP MFP via interface X2.

Figure 10-10 Access to C/C++ Runtime via interface X2
Communication Function Manual, 11/2019, A5E03735815-AH

299

Routing 10.3 IP forwarding
Take network security into account for IP forwarding If you activate IP forwarding for a CPU, you enable "external" access to devices that are actually only accessible and controlled by the CPU. These devices are therefore usually not protected against attacks. The following figure shows how to protect your automation system against unauthorized access.

Figure 10-11 Network security for IP forwarding
 The CPU accesses all devices within the dark green IP subnets B and C close to the CPU via the interfaces X1 and X2.
 A SCALANCE S router is configured in the CPU. The CPU accesses the devices in the remote, light green IP subnet A via the router.
 The "Access to PLC via communication module" function is enabled for the CP 1543 in the CPU. The CPU reaches all devices within the IP subnet D via W1 interface.
If IP forwarding is enabled in the CPU, then a device from IP subnet A can access any device within IP subnets B,C and D close to the CPU.
Protect your automation system and connected devices against unauthorized access from outside.
Separate the CPU-related IP subnets from the remote IP subnets with a firewall. For example, use the SCALANCE S security modules with integrated firewall. This application example (https://support.industry.siemens.com/cs/ww/en/view/22376747) describes how to protect an automation cell with a firewall using the SCALANCE S602 V3 and SCALANCE S623 security modules.

300

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.4 Data record routing
Enabling/disablng IP forwarding To enable IP forwarding, proceed as follows: 1. Select the CPU in the network view of STEP 7 (TIA Portal). 2. In the properties of the CPU of the Inspector window, navigate to "General" > "Advanced Configuration" > "IP forwarding". 3. In the "Configuration IPv4 Forwarding" area, select the check box "Activate IPv4 for interfaces of this PLC".

Figure 10-12 Enabling IP forwarding
Result: IP forwarding is enabled for all interfaces of the S7-1500 CPU. You disable IP forwarding by clearing the check box "Enable IPv4 forwarding for interfaces of this PLC".

10.4

Data record routing

Definition of data record routing
Data can be sent over PROFINET from an engineering station to field devices via multiple networks. Since the engineering station addresses the field devices using standardized records and these records are routed via S7 devices, the term "data record routing" is used to refer to this type of routing.
The data sent using data record routing include the parameter assignments for the participating field devices (slaves) and device-specific information (e.g. setpoint values, limit values).
Data record routing is used, for example, when field devices of different manufacturers are used. The field devices are addressed using standardized data records ( PROFINET) for configuration and diagnostics.

Data record routing with STEP 7
You can perform data routing with STEP 7 by calling a device tool (for example, PCT) via the TCI interface (Tool Calling Interface) and passing call parameters. The device tool uses the communication paths that STEP 7 also uses for communication with the field device.
No configuration is required for this type of routing except the installation of the TCI tools on the STEP 7 computer.

Communication Function Manual, 11/2019, A5E03735815-AH

301

Routing 10.4 Data record routing
Example: Data record routing with the Port Configuration Tool (PCT) You can use the Port Configuration Tool (PCT) to configure the IO link master of the ET200 and assign parameters to connected IO link devices. The subnets are connected via data record routers. Data record routers are, for example, CPUs, CPs, IMs, IO link master. You can learn about the constellations of data record routers supported by the PCT in this FAQ (http://support.automation.siemens.com/WW/view/en/87611392). The figure below shows an example configuration with the data record routing with PCT.

Figure 10-13 Example configuration for data record routing with PCT
Additional information  The differences that exist between "normal" routing and data record routing are described in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/7000978).  Whether or not the CPU, CP or CM you are using supports data record routing can be found in the relevant manuals.  The allocation of connection resources with data record routing is described in the section Allocation of connection resources (Page 311).  You can find additional information on configuration with STEP 7 in the STEP 7 online help.

302

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.5 Virtual interface for IP-based applications

10.5

Virtual interface for IP-based applications
As of firmware version 2.8, the S7-1500 CPU offers the option of reaching its IP-based applications, such as OPC UA, not only via its local (PN) interfaces, but also via the interfaces of communication processors in the same station. A communication partner reaches these IP-based applications via a virtual interface that can be configured in the TIA Portal as of version V16. The virtual interface is called W1 (according to IEC 81346-2).

Features of the virtual interface
The virtual interface is not a fully diagnosable interface with the familiar properties of conventional interfaces. The virtual interface is not displayed in the graphical views, because the internal connection via the backplane bus does not represent an S7 subnet and does not have any ports. A physical connection by means of a network cable therefore cannot be established.
The IP address of the virtual interface is displayed (e.g. in the TIA Portal, in the display of the CPU) and can be configured.
The following IP-based services can be used e.g. via the virtual interface W1:
 OPC UA (client and server)
 Programmed OUC connections
 S7 communication (ES/HMI access and instructions for S7 communication such as PUT, GET)
The activated interface can be used in dialogs where IP-based connections are configured.

Figure 10-14 Principle of the virtual interface
Communication Function Manual, 11/2019, A5E03735815-AH

303

Routing 10.5 Virtual interface for IP-based applications

Compared to conventional interfaces, the virtual interface has the following restrictions:  No access to the web server over the virtual interface.  Online backup is not possible via a connected programming device with the TIA Portal.  If the CPU and communication partners are connected via the virtual interface, they
cannot exchange data via LLDP (Link Layer Discovery Protocol).  The S7 routing service does not use the virtual interface W1.

Requirement

For a CPU service to be accessible via the Ethernet interface of a CP, the following requirements must be fulfilled:  S7-1500 CPU firmware V2.8 or higher  CP 1543-1 firmware V2.2 or higher R/H CPUs do not support this function because R/H CPUs do not support CPs.

Configuration of the virtual interface W1
In the properties of an S7-1500 CPU as of firmware V2.8, you can assign a plugged communication module to the virtual interface W1 under "Advanced Configuration > Access to PLC via communication module". You can then use this for external access to the CPU. If no CPs are plugged in or the plugged CPs do not support access to the CPU, the selection is empty.

Figure 10-15 Selecting the CP in the CPU properties
After selecting the CP, the specifications and parameters for the virtual interface are displayed. Here, you can edit the settings for the IP protocol and the PROFINET parameters.
 The IP subnet is freely selectable, just like with the CP. The IP subnet is entered via the subnet mask and IP address of the virtual interface.
 When entering the IP subnet for the virtual interface, note that you are not using the same IP subnet as for the local interfaces of the CPU.

304

Communication Function Manual, 11/2019, A5E03735815-AH

Routing 10.5 Virtual interface for IP-based applications
Once the IP address is entered, it is shown in the properties dialog of the OPC UA server in the list of server addresses. These settings provide the CPU with the new virtual interface W1 via which CPU services like the OPC UA server can be accessed via a communication module. The corresponding connections and S7 communication (e.g. HMI and BSEND, BRCV) are made via this interface. The OPC UA server does not allow selection of a specific interface (selection via an IP address), either all or none are possible.
Note The IP address of the virtual interface is not listed as W1 in the device display under the currently displayed local interfaces (Xn) but is available under "Addresses" in the "Settings" section. The virtual interface is also visible when no CP is plugged or when the virtual interface is not activated. If no IP suite is available, the IP address and the subnet mask are 0.0.0.0.
If you change the configured and loaded IP address parameters of the virtual interface via display, T_CONFIG instruction or online, the loaded configuration is active again after the CPU restarts.
Configuration changes on the CP A change of the assigned communication module may have an effect on the configuration of the virtual interface:  In the properties of the CPU: ­ Assignment of a different CP: The configuration is used for the new CP. ­ Deselect the assigned CP: The virtual interface W1 is deactivated and the configuration is lost. When a CP is assigned again, the configuration must be performed again.  On the device: ­ Moving the CP: If the CP is only moved to another slot of the device, the configuration continues to be valid. ­ Removing the CP: If the CP is deleted or moved to another device, the configuration is retained. In the drop-down list of the CPU, the CP is displayed as missing and compiling the configuration indicates an error. The missing CP can be deselected or assigned to another CP.
Display in the diagnostics and the system constants The virtual interface W1 is displayed in the diagnostics view under "Online & Diagnostics". The hardware ID of the virtual interface is displayed in the system constants of the CPU properties.

Communication Function Manual, 11/2019, A5E03735815-AH

305

Routing 10.5 Virtual interface for IP-based applications
Settings in the communication module The settings of the internal CP firewall do not have an effect on communication over the virtual interface. This means the security functions of the communication module cannot protect the data traffic via the virtual interface.
NOTICE Connecting to non-secure networks If you connect the CP to a non-secure network, it is absolutely necessary to connect an additional firewall between the CP and the non-secure network. For example, use the security modules SCALANCE S602 V3 and SCALANCE S623 with integrated firewall.

306

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources

11

11.1

Connection resources of a station

Introduction

Some communications services require connections. Connections occupy resources in the automation system (station). The connection resources are made available to the station by the CPUs, communications processors (CPs) and communications modules (CMs).

Connection resources of a station
The connection resources available depend on the CPUs, CPs and CMs being used and must not exceed a maximum number per station.
The maximum number of resources of a station is determined by the CPU.
Reserved connection resources
Each CPU has reserved connection resources for PG, HMI and Web server communication. This ensures, for example, that a PG can always establish at least one online connection with the CPU regardless of how many other communications services are already using connection resources.
Dynamic connection resources
In addition, dynamic resources exist. The difference between the maximum number of connection resources and the number of reserved connection resources is the maximum number of dynamic connection resources.
The communication services PG Communication, HMI Communication, S7 Communication, Open User Communication, Web Communication, OPC UA Client/Server Communication and other communication from the pool of dynamic connection resources are used.

Communication Function Manual, 11/2019, A5E03735815-AH

307

Connection resources 11.1 Connection resources of a station
The figure below shows an example of how individual components make connection resources available to an S7-1500 station.

 Available connection resources of the station, of which

A

Reserved connection resources of the station

A + B Connection resources of CPU 1518

C

Connection resources of communications module CM 1542-1

D

Connection resources of communications processor CP 1543-1

 Maximum communications resources of the station using the example of a configuration from

CPU 1518, CM 1542-1 and CP 1543-1

Figure 11-1 Connection resources of a station

308

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.1 Connection resources of a station

Number of connection resources of a station

Table 11- 1 Maximum number of connection resources supported for some CPU types

Connection resources of a station
Maximum connection resources of the station
of which reserved
of which dynamic
Connection resources of the CPU
Max. additionally usable connection resources by plugging in CMs/CPs
Additional connection resources CM 1542-1
Additional connection resources CP 1543-1
Additional connection resources CM 1542-5
Additional connection resources CP 1542-5

1511 1511C
96
86 64
32

1512C 1513 128
118 88
40

1515

1516

192

256

10

182

246

108

128

84

128

64 118 40 16

1517 320
310 288 32

1518 384
374 320 64

The number of connection resources that a CPU or a communication module supports is specified in the device manuals in the Technical Specifications.

Example

You have configured a CPU 1516-3 PN/DP with a CM 1542-1 communication module and a CP 1542-5 communication processor.  Maximum connection resources of the station: 256  Available connection resources:
­ CPU 1516-3 PN/DP: 128 ­ CM 1542-1: 64 ­ CP 1542-5: 16 ­ Total: 208 The setup provides 208 connection resources. By adding further communication modules, the station can support a maximum of 48 additional connection resources.

Communication Function Manual, 11/2019, A5E03735815-AH

309

Connection resources 11.1 Connection resources of a station
Reserved connection resources 10 connection resources are reserved for stations with S7-1500 CPU, ET 200SP CPU and ET 200pro CPU based on S7-1500:  4 for PG communication required by STEP 7, for example, for test and diagnostics functions or downloading to the CPU  4 for HMI communication which are occupied by the first HMI connections configured in STEP 7  2 for communication with the Web server

310

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.2 Allocation of connection resources

11.2

Allocation of connection resources

Overview - occupation of connection resources The following figure shows how different connections occupy the resources of the S7-1500.

 HMI communication: See below.  Open User Communication: Connections of Open User Communication occupy a connection
resource in every end point.
 S7 communication: Connections of S7 communication occupy a connection resource in every
end point.
 Web communication: The Web server connection occupies at least one connection resource in
the station. The number of occupied connections depends on the browser.
 PG communication: The PG connection occupies one connection resource in the station.  OPC UA client/server communication: Connection resource allocation for the server, see below  OPC UA client/server communication: Connection resource allocation for the client, see below
Connection resource for HMI communication
Connection resource for Open User Communication
Connection resource for S7 communication
Connection resource for Web communication
Connection resource for PG communication
Connection resources for OPC UA server communication
Figure 11-2 Allocation of connection resources

Communication Function Manual, 11/2019, A5E03735815-AH

311

Connection resources 11.2 Allocation of connection resources

Connection resources for HMI communication
With HMI communication, the occupation of connection resources in the station depends on the HMI device being used.

Table 11- 2 Maximum occupied connection resources for different HMI devices

HMI device

Maximum occupied connection resources of the station per HMI connection

Basic Panel

1

Comfort Panel

21

RT Advanced

21

RT Professional

3

1 If you do not use system diagnostics or alarm configuration, the station occupies only one connection resource per HMI connection.

Example: You have configured the following HMI connections for a CPU 1516-3 PN/DP:

 Two HMI connections to an HMI TP700 Comfort. (2 connection resources each)

 One HMI connection to an HMI KTP1000 Basic. (1 connection resource)

In total 5 connection resources are occupied for HMI communication in the CPU.

Connection resources for OPC UA client communication
Each connection that the OPC UA client of the CPU has established to an OPC UA server occupies a connection resource in the station.
When establishing and closing an OPC UA connection, the OPC UA client temporarily occupies an additional connection resource. According to RFC 793, this connection resource is released again after a wait of approx. 60 seconds.
Note Lack of resources due to temporary connection resources
A lack of connection resources occurs in the following situation: · The OPC UA client of the CPU establishes or closes several connections simultaneously. · The number of available connection resources of the station is insufficient for permanent
and temporary connection resources of the OPC UA client communication.
Ensure that there are always enough available connection resources in the station to establish and end OPC UA connections.
Measures: · Plan enough reserve for the OPC UA client connections. · If necessary, establish or close the OPC UA connections one after the other.

312

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.2 Allocation of connection resources
Connection resources for routing To transfer data beyond S7 subnets ("S7 routing"), an S7 connection is established between two CPUs. The S7 subnets are connected via gateways known as S7 routers. CPUs, CMs and CPs in S7-1500 are S7 routers. The following applies for a routed S7 connection:  A routed connection occupies one connection resource each in both end points. STEP 7 shows these connection resources in the "Connection resources" table.  On the S7 router, two special connection resources are occupied for S7 routing. STEP 7 does not show the special connection resources for S7 routing in the "Connection resources" table. The number of resources for S7 routing depends on the CPU. You will find the resources for S7 routing in the technical specifications of the CPU in "Number of S7 routing connections".
Connection resource for S7 communication
Special connection resources for S7 routing
Figure 11-3 Connection resources with S7 routing
Data record routing also enables transfer of data beyond S7 subnets from an engineering station connected to PROFINET to various field devices via PROFIBUS. With data record routing, as with S7 routing, two of the special connection resources for S7 routing are also occupied on every data record router.
Note Connection resources with data record routing With data record routing, on the data record router, two special connection resources for S7 routing are occupied. Neither the data record connection nor the allocated connection resources are displayed in the table of connection resources.

Communication Function Manual, 11/2019, A5E03735815-AH

313

Connection resources 11.2 Allocation of connection resources
When are connection resources occupied?
The time for the occupation of connection resources depends on how the connection is set up (see section Setting up a connection (Page 27)).
 Programmed setup of a connection: As soon as an instruction to establish a connection is called in the user program (TSEND_C/TRCV_C or TCON), a connection resource is occupied.
With suitable parameter assignment of the CONT parameter of the TSEND_C/TRCV_C instructions or by calling the TDISCON instruction, the connection can be terminated following data transfer and the connection resource is available again. When the connection is terminated, the connection resources on the CPU/CP/CM are available again.
 Configured connections (e.g. S7 connection): If you have configured a connection in STEP 7, the connection resource is occupied as soon as the hardware configuration is downloaded to the CPU.
After using a configured connection for data transfer, the connection is not terminated. The connection resource is permanently occupied. To release the connection resource again, you need to delete the configured connection in STEP 7 and download the modified configuration to the CPU.
 PG connection: As soon as you have connected the PG to a CPU online in STEP 7, connection resources are occupied.
 Web server: As long as you have opened the Web server of the CPU in a browser, connection resources are occupied in the CPU.
 OPC UA server
Each connection to the OPC UA server of the CPU occupies a connection resource in the station. This connection resource is released immediately when the connection is terminated.
 OPC UA client
Each connection that the OPC UA client of the CPU has established to an OPC UA server occupies a connection resource in the station. When an OPC UA connection is established, the OPC UA client temporarily occupies an additional connection resource. When an OPC UA connection is terminated, the connection resource is not released again until after a wait time of approx. 60 seconds in accordance with RFC 793.

314

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.2 Allocation of connection resources
Monitoring the maximum possible number of connection resources
Offline During configuration of connections, STEP 7 monitors the occupation of the connection resources. If the maximum possible number of connection resources is exceeded, STEP 7 signals this with a suitable warning.
Online The CPU monitors the use of connection resources in the automation system. If you establish more connections in the user program than those provided by the automation system, the CPU acknowledges the instruction to establish the connection with an error.
S7-1500 and S7-300 comparison You will find a comparison of how the communication resources of the S7-1500 and S7-300 are managed in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109747092).

Communication Function Manual, 11/2019, A5E03735815-AH

315

Connection resources 11.3 Display of the connection resources

11.3

Display of the connection resources

Display of the connection resources in STEP 7 (offline view)
You can display the connection resources of an automation system in the hardware configuration. You will find the connection resources in the Inspector window in the properties of the CPU.

Figure 11-4 Example: Reserved and available connection resources (offline view)
 Station-specific connection resources
The columns of the station-specific connection resources provide information about the used and available connection resources of the station.
In the example, a maximum of 256 station-specific connection resources are available for the automation system.
 10 reserved connection resources, of which 4 are already in use and a further 6 available. The used resources are divided up as follows:
­ 4 Resources for HMI communication
 246 dynamic connection resources, of which 26 are already in use and a further 220 available. The used resources are divided up as follows:
­ 6 resources for HMI communication
­ 7 resources for S7 communication
­ 13 resources for Open User Communication

316

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.3 Display of the connection resources
The warning triangle in the column of the dynamic station resources is displayed because the sum of the maximum available connection resources of CPU, CP and CM (= 310 connection resources) exceeds the station limit of 256.
Note Available connection resources exceeded STEP 7 signals the exceeding of the station-specific connection resources with a warning. To make full use of the connection resources from the CPU, CP and CM, either use a CPU with a higher maximum number of available station-specific connection resources or reduce the number of communications connections.
 Module-specific connection resources
The columns of the module-specific connection resources provide information about the use of resources on the CPUs, CPs and CMs of an automation system: The display is per module and not per interface. In the example, the CPU makes a maximum of 128 connection resources available, of which 18 are already in use and 110 still available. The used resources are divided up as follows:  6 resources for HMI communication  4 resources for S7 communication  8 resources for Open User Communication

Communication Function Manual, 11/2019, A5E03735815-AH

317

Connection resources 11.3 Display of the connection resources
Display of the connection resources in STEP 7 (online view) If you are connected to the CPU online, you can also see how many resources are currently being used under "Connection information".

Figure 11-5 Connection resources - online
The online view of the "Connection resources" table in addition to the offline view also contains columns with the connection resources currently being used. Thus, the online view displays all used connection resources in the automation system, regardless of how the connection was set up.
The "Other communication" row displays connection resources assigned for communication with external devices. The table is updated automatically.
Note
If a routed S7 connection goes through a CPU, the required connection resources of the CPU do not appear in the table of connection resources.

318

Communication Function Manual, 11/2019, A5E03735815-AH

Connection resources 11.3 Display of the connection resources
Display of the connection resources for HMI For information regarding the availability and assignment of connection resources for HMI connections, refer to the "Connection resources" properties in the Inspector window of the offline view (in the context of the HMI device).
Figure 11-6 Connection resources - HMI communication
The following is displayed in the connection resources area:  Number of available connections on the HMI reserved for HMI communication and HTTP
communication  Number of connection resources for HMI communication and HTTP communications
used offline in the HMI If the maximum number of available connection resources for an HMI device is exceeded, a corresponding message is output by STEP 7.  "Maximum number of used PLC resources per HMI connection". This parameter is a factor that is to be multiplied by the number of HMI connections used offline. The product is the number of HMI resources occupied on the CPU.
Displaying the connection resources in the Web server You can display the connection resources not only in STEP 7, but also with a browser that displays the relevant page of the Web server. You will find information on displaying connection resources in the Web server in the Web Server (http://support.automation.siemens.com/WW/view/en/59193560)function manual.

Communication Function Manual, 11/2019, A5E03735815-AH

319

Diagnostics and fault correction

12

12.1

Connection diagnostics

Connections table in the online view
After selecting a CPU in the Devices & networks editor of STEP 7, you will see the status of your connections displayed in the online view of the connections table.

Figure 12-1 Online view of the connections table
After selecting the connection in the connections table, you obtain detailed diagnostic information in the "Connection information" tab.

320

Communication Function Manual, 11/2019, A5E03735815-AH

"Connection information" tab: Connection details

Diagnostics and fault correction 12.1 Connection diagnostics

Figure 12-2 Diagnostics of connections - connection details

Communication Function Manual, 11/2019, A5E03735815-AH

321

Diagnostics and fault correction 12.1 Connection diagnostics
"Connection information" tab: Address details

Figure 12-3 Diagnostics of connections - address details
Diagnostics via web server You can evaluate diagnostic information from the CPU using a web browser via the integrated web server of a CPU. On the "Communication" Web page, you will find the following information about communication via PROFINET in various tabs:  Information on the PROFINET interfaces of the CPU (for example addresses, subnets, physical properties).  Information on the quality of the data transfer (for example number of data packets sent/received error-free).  Information about the allocation/availability of connection resources.  The "Connection status" page is similar to the online view in STEP 7 and also provides an overview of all connections with detail view.

322

Communication Function Manual, 11/2019, A5E03735815-AH

Diagnostics and fault correction 12.2 Emergency address
Diagnostics with the user program When you program the T_DIAG instruction, you can evaluate diagnostic information about the configured and programmed connections of the CPU using the user program.
Additional information You will find the description of the web server functionality in the function manual Web server (http://support.automation.siemens.com/WW/view/en/59193560).

12.2

Emergency address
If you cannot reach the CPU via the IP address, you can set a temporary emergency address (emergency IP) for the CPU. Via this emergency address, you can re-establish the connection with a CPU in order to load a device configuration with a valid IP address.
You can set an emergency address regardless of the protection level of the CPU

When do you need an emergency address? Your CPU cannot be reached in the following cases:  The IP address of your PROFINET interface is assigned twice.  The subnet mask is set incorrectly.

Requirements

 You have selected "Set IP address in the project" for the IP protocol in the device configuration in STEP 7.
 The CPU is in STOP mode.

Restoring a valid device configuration with an emergency address
1. Set the emergency address for the interface of the CPU with a DCP tool. For example, the SIMATIC Automation Tool has a DCP command "Define IP address". The maintenance LED of the CPU lights up. The diagnostic buffer also shows that an emergency address was activated for an Ethernet interface.
2. Load a STEP 7 project with a valid IP address into the CPU.
3. Switch the CPU off and on again. The emergency address is reset.

Result

The CPU starts up with the valid IP address.

Communication Function Manual, 11/2019, A5E03735815-AH

323

Communication with the redundant system S7-1500R/H

13

Introduction

Communication with the S7-1500R/H redundant system basically functions as with the S7-1500 standard system.
This chapter describes the special features and restrictions for communication with the S7-1500R/H redundant system.

Communication options for the S7-1500R/H redundant system  Open User Communication via TCP/IP, UDP, ISO on-TCP and Modbus/TCP  S7 communication as server  HMI communication  PG communication  SNMP  Time-of-day synchronization via NTP

Restrictions for communication with the S7-1500R/H redundant system  Open User Communication:
­ no configured connections
­ Secure Open User Communication: Not supported, as certificate management is not possible for the R/H CPUs.
If you have activated Secure OUC, then although you can compile the user program and load it, you cannot add certificates to the R/H-CPUs.
­ no FDL connections
­ Email: The S7-1500R/H CPUs with firmware version V2.6 support the versions < V5.0 of the "TMAIL_C" instruction. Versions from V5.0 are not supported.
­ No support of connection descriptions according to "TCON_Param"
 no OPC UA
 no S7 communication as client
 no web server
 PG communication: It is not possible to access two CPUs online at the same time. You can either access the primary CPU or the backup CPU.
 The CPUs of the S7-1500R/H do not support centrally plugged communication modules.

324

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.1 System IP addresses

13.1

System IP addresses

The system IP address of the S7-1500R/H redundant system
In addition to the device IP addresses of the CPUs, the S7-1500R/H redundant system supports system IP addresses:
 System IP address for the PROFINET interfaces X1 of the two CPUs (system IP-address X1)
 System IP address for the PROFINET interfaces X2 of the two CPUs (system IP-address X2)
You use the system IP addresses for communication with other devices (for example, HMI devices, CPUs, PCs). The devices always communicate via the system IP address with the primary CPU of the redundant system. This ensures, for example, that the communication partner can communicate with the new primary CPU (previously backup CPU) in the RUNSolo system state after failure of the original primary CPU in redundant operation.
There is a virtual MAC address for each system IP address.
You enable the system IP addresses in STEP 7.

Advantages of the system IP addresses compared to device IP addresses
 The communication partner communicates specifically with the primary CPU.
 Communication of the S7-1500R/H redundant system via a system IP address still also works in the event of the failure of the primary CPU.

Applications

You use the system IP addresses for the following applications:
 HMI communication with the S7-1500R/H redundant system: You can use an HMI device to control or monitor the process on the redundant S7 1500R/H system.
 Open User Communication with the S7-1500R/H redundant system:
­ Another CPU or an application on a PC accesses data of the S7-1500R/H redundant system.
­ The S7-1500R/H redundant system accesses a different device.
TCP, UDP and ISO-on-TCP-connections are possible.
 IP forwarding: If you use the system IP addresses as the gateway/default route for IP routes through the S7-1500R/H redundant system, IP packets are forwarded even if one CPU fails.

Communication Function Manual, 11/2019, A5E03735815-AH

325

Communication with the redundant system S7-1500R/H 13.1 System IP addresses

Requirements

 The interface of the communication partner and the PROFINET interfaces of the two CPUs are located in the same subnet.
 The interface of the communication partner is connected to both CPUs, each via the same interface (e.g. X2).
 The system IP address for the interfaces of the S7-1500R/H system is enabled.

Communication via the system IP address X2
If the CPUs of the S7-1500R/H redundant system have two PROFINET interfaces, preferably use the PROFINET interface X2 for communication with other devices.
The following figure shows a configuration in which the communication partners are connected via the respective PROFINET interfaces X2 with the CPUs of the redundant system S7-1500R/H.

 Open User Communication between a different CPU and the S7-1500R/H redundant system  HMI communication with the S7-1500R/H redundant system  Open User Communication between the S7-1500R/H redundant system and a PC
Figure 13-1 Example: Communication of the S7-1515R redundant system via the system IP address X2

326

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.1 System IP addresses
Communication via the system IP address X1
The following diagram shows a configuration where the communication partners are connected with a switch to the PROFINET ring of the S7-1500R/H redundant system. The PROFINET ring connects the communication partners with the respective PROFINET interfaces X1 of the two CPUs. As the CPU 1513R only has one PROFINET interface, connection via the PROFINET ring is the only possibility of communicating via the system IP address X1.

 Open User Communication between the S7-1500R/H redundant system and a different CPU  HMI communication with the S7-1500R/H redundant system  Open User Communication between the S7-1500R/H redundant system and a PC
Figure 13-2 Example: Communication of the S7-1513R redundant system via the system IP address X1

Communication Function Manual, 11/2019, A5E03735815-AH

327

Communication with the redundant system S7-1500R/H 13.1 System IP addresses
Communication via the system IP addresses X1 and X2 If the CPUs of the redundant system S7-1500R/H have two PROFINET interfaces (X1 and X2), you can use the a system IP address for each PROFINET interface. PROFINET devices which are connected to the interfaces X1 of the CPUs communicate via the system IP address X1. PROFINET devices which are connected to the interfaces X2 of the CPUs communicate via the system IP address X2.

 Open User Communication between the S7-1500R/H redundant system and a different CPU.  HMI communication with the S7-1500R/H redundant system  Open User Communication between the S7-1500R/H redundant system and a PC
Figure 13-3 Example: Communication of the S7-1515R redundant system via the system IP addresses X1 and X2

328

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.1 System IP addresses
IP forwarding via the system IP address If you use the system IP addresses as the gateway/default route for IP routes through the S7-1500R/H redundant system, IP packets are forwarded even if one CPU fails. In the following figure, the PC is connected to the two X2 interfaces of the S7-1500R CPUs. Enter the system IP address X2 as gateway in the PC for the route to the HMI device. The HMI device is connected to the PROFINET ring of the redundant system S7-1500 via a switch. The system IP address X1 is configured as router in the HMI device.

Figure 13-4 Example: IP forwarding via the system IP address

Communication Function Manual, 11/2019, A5E03735815-AH

329

Communication with the redundant system S7-1500R/H 13.1 System IP addresses
Enable system IP addresses Requirements:  STEP 7 V15.1 or higher  redundant system S7-1500R/H with two CPUs, e.g. two CPUs 1513R-1PN If the CPUs of the S7-1500R/H redundant system have two PROFINET interfaces (X1 and X2), then you can use a system IP address for both PROFINET interfaces. The following section describes how to enable the system IP address for the interface X1. Proceed as follows to enable the system IP address for your S7-1500R/H redundant system: 1. In the network view of STEP 7, select the interface X1 of one of the two CPUs. 2. In the Inspector window go to "Properties" > "General" > "Ethernet addresses" in the area "System IP address for switched communication". 3. Select the check box "Enable the system IP address for switched communication". STEP 7 automatically creates a system IP address.
Figure 13-5 Configure IP address
4. Change the system IP address if necessary. 5. If required, change the virtual MAC address. To do this, in "Virtual MAC address", assign
a project-wide unique value (value range 01H to FFH) for the last byte.
Note Uniqueness of the virtual MAC address The redundant system S7-1500R/H uses a MAC address from the address range 00-00-5E-00-01-00 to 00-00-5E-00-01-00 for each system IP address. This address range is also used for VRRP (Virtual Redundancy Protocol). If you use devices with VRRP, e.g. switches, ensure the uniqueness of the MAC addresses within an Ethernet broadcast domain.
Result: The system IP address X1 for the PROFINET interface X1 of the two CPUs is enabled.

330

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.2 Response to Snycup

13.2

Response to Snycup

Response of communication connections via the system IP address in the system state SYNCUP
 HMI, PG- and S7-connections are temporarily closed. For a short time during the SYNCUP it is not possible to establish connections to the S7-1500R/H redundant system.
 All existing connections of Open User Communication are interrupted:
­ Connections set up by the CPUs of the redundant system as an active connection partner are set up again after the SYNCUP.
­ The S7-1500R/H redundant system sets up connection endpoints again for the passive connection establishment after the SYNCUP.
 The processing of running instances of the instructions TSEND and TRCV is stopped. The block parameter STATUS returns 80C4H (temporary communication error).

13.3

Response to primary-backup switchover

Response of communication connections via the system IP address during a primary-backup switchover
 Running instances of the instructions TSEND and TRCV are stopped and return the status 80C4H (temporary communication error).
 Connections successfully established by the S7-1500R/H redundant system are established again by the new primary CPU.
 The new primary CPU sets up connection endpoints again for the passive connection establishment.
Note Increased duration of connection interruption
If the remote system does not transmit actively after the primary-backup switchover, the connection monitoring (e.g. TCP-Keep-Alive or application) may have to be performed by the remote system until the connection can be re-established.

Communication Function Manual, 11/2019, A5E03735815-AH

331

Communication with the redundant system S7-1500R/H 13.4 Connection resources of the redundant system S7-1500R/H

13.4

Connection resources of the redundant system S7-1500R/H

Maximum number of connection resources of the S7-1500R/H redundant system The S7-1500R/H redundant system supports a maximum number of connection resources. The CPU used determines the maximum number of resources for the redundant system:  CPU 1513R: max. 88 connection resources  CPU 1515R: max. 108 connection resources  CPU 1517H: max. 288 connection resources

Allocation of connection resources
Communication connections occupy communication resources in the S7-1500R/H redundant system.
Each communication connection to the redundant system S7 1500R/H occupies connection resources in the S7 1500R/H station. The S7-1500R/H station comprises the hardware setup of both CPUs of the redundant S7-1500R/H system.
Depending on the IP address used, a communication connection also uses connection resources in one or both CPUs of the redundant S7-1500R/H system. The S7-1500R/H station can also be used to establish a communication connection.
The following table shows in which CPU a communication connection occupies connection resources depending on the IP address used.

Connect via...
a system IP address a device IP address of the CPU with redundancy ID 1 a device IP address of the CPU with redundancy ID 2

Connection resources of the station X X

Connection resources CPU with redundancy ID 1 X X

Connection resources CPU with redundancy ID 2 X -

X

-

X

332

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.4 Connection resources of the redundant system S7-1500R/H Display of the occupied connection resources in STEP 7 Requirements: Online connection to the redundant system S7-1500R/H You will find the online display of the connection resources in the inspector window under "Diagnostics" > "Connection information". STEP 7 always displays the connection resources of the selected CPU and the S7-1500R/H-station.
Figure 13-6 Display of the connection resources of the S7-1500R/H redundant system in STEP 7

Communication Function Manual, 11/2019, A5E03735815-AH

333

Communication with the redundant system S7-1500R/H 13.5 HMI communication with the redundant system S7-1500R/H

13.5

HMI communication with the redundant system S7-1500R/H

13.5.1

HMI connection via the system IP address

Requirements

 A redundant S7-1500R/H system, e.g. CPU 1513R-1PN  System IP address is enabled  HMI device with PROFINETI interface

Procedure

To set up a HMI connection to an S7-1500R/H redundant system, follow these steps:
1. In the network view of STEP 7, select a PROFINET interface of the HMI device.
2. Using a drag&drop operation, draw a line between the PROFINET interface of the HMI device and a PROFINET interface of the S7-1500R/H redundant system. The HMI device and the S7-1500R/H redundant system are networked together.

Figure 13-7 Networking an HMI device with the S7-1500R/H redundant system
3. In the list of functions, click the "Connections" icon. This activates connection mode. 4. Using a drag-and-drop operation, draw a line between the HMI device and a CPU of the
S7-1500R/H redundant system. The list "Connection partners" opens.

Figure 13-8 Setting up an HMI connection to the S7-1500R/H redundant system
5. Select the S7-1500R/H redundant system in the list "Connection partners". Result: You have set up a HMI connection between the HMI device and the S7-1500R/H redundant system. The HMI connection uses the system IP address. The HMI device always connects to the primary CPU.

334

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.5 HMI communication with the redundant system S7-1500R/H
Changing the HMI connection over to the device IP address To permanently change the HMI connection over to the selected CPU, clear the check box "Use the system IP address for switched communication" in the properties of the HMI connection. The HMI connection then uses the device IP address of the PROFINET interface. In the event of the failure of this CPU, then the HMI connection to this CPU permanently fails.

Figure 13-9 Properties of the HMI connection
Note Automatic setup of HMI connection When you drag-and-drop a tag from the S7-1500R/H redundant system into an HMI screen or into the HMI tag table, STEP 7 automatically sets up an HMI connection. This HMI connection exists by default between the PROFINET interface of the HMI device and the PROFINET interface X1 of the CPU with redundancy ID 1. The connection uses the device IP address of the PROFINET interface X1. You can change the HMI connection to a system IP address in the properties of the HMI connection.

Communication Function Manual, 11/2019, A5E03735815-AH

335

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H

13.6

Open User Communication with the redundant system S7-1500R/H
The following table shows which protocols of the Open User Communication you can use for the S7-1500R/H redundant system and the matching system data types and instructions.

Table 13- 1 Protocols, system data types and usable instructions for Open User Communication with the redundant system S7-1500R/H

Protocol TCP
ISO-on-TCP

System data type · TCON_QDN · TCON_IP_v4
· TCON_IP_RFC

UDP Modbus TCP

· TCON_IP_v4 · TADDR_Param · TADDR_SEND_QDN · TADDR_RCV_IP
· TCON_IP_v4 · TCON_QDN

Instructions Establish connection and send/receive data via: · TSEND_C/TRCV_C or · TCON, TSEND/TRCV or · TCON, TUSEND/TURCV
(connection can be terminated via TDISCON)
Establish connection and send/receive data via: · TSEND_C/TRCV_C · TUSEND/TURCV/TRCV
(connection can be terminated via TDISCON)
· MB_CLIENT · MB_SERVER

13.6.1

Setting up the connection of the Open User Communication with the redundant S7-1500R/H system

Introduction

The S7-1500R/H redundant system can communicate with other devices via Open User Communication.
You set up the connections in the user program, e.g. via the "TSEND_C" instruction. The S7-1500R/H redundant system does not support configured connections.
You can either set up the connections either via the device IP addresses or via the system IP addresses of the PROFINET interfaces.

Open User Communication via a system IP address of the redundant system S7 1500R/H
If you set up the connection via a system IP address, then communication always takes place via the primary CPU.
Recommendation: Always use a system IP address for Open User Communication.

336

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H

Open User Communication via a device IP address of the redundant system S7 1500R/H
In redundant mode, the redundant system can establish or terminate connections and send or receive data via every device IP address.
If you set up the connection via a device IP address, then communication takes place via the associated CPU. In the event of the failure of the CPU, then the entire communication via the device IP addresses of this CPU fails.

Setting up a connection via a system IP address
The following describes how to establish a connection to another CPU via a system IP address of a PROFINET interface of the redundant S7 1500R/H system.
You set up the connection in the user program of the redundant system S7-1500R/H with a TSEND_C instruction. You create a corresponding TRCV_C instruction in the user program of the other CPU.
The procedure is described using the example of a TCP connection between the S7-1500R/H redundant system and a CPU 1516-3PN/DP.

Requirements

 A redundant system S7 1500R/H, e.g. 2 CPUs 1513 1PN  System IP address of the PROFINET interface X1 is enabled.  CPU 1516-3PN/DP  The PROFINET interfaces X1 of the CPUs 1513R and the PROFINET interface X2 of the
CPU 1516-3PN/DP are located in the same subnet.

Figure 13-10 Example configuration for TCP-connection

Communication Function Manual, 11/2019, A5E03735815-AH

337

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H TSEND_C instruction in the user program of the S7-1500R/H redundant system
To set up a TCP-connection to a different CPU, follow these steps: 1. Create a "TSEND_C" instruction in the user program.
Figure 13-11 S7-1500R/H: "TSEND_C" instruction
2. Select the "TSEND_C" instruction.

338

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H
3. In the Inspector window, go to "Properties" > "Configuration" > "Connection parameters". On the left-hand side you can see the S7-1500R/H redundant system as a local end point of the connection: ­ "Interface:": X1 is the preset interface. ­ "Subnet:": If the interface X1 is assigned to an S7-subnet, then STEP 7 displays the name of the S7-subnet. ­ The check box "Use address of the H-system" is selected. The system IP address of the S7-1500R/H redundant system is in "Address".

Figure 13-12 S7-1500R/H: Assigning parameters to the TSEND_C instruction in STEP 7
4. In "Partners" under "End point:" select the CPU 1516-3PN/DP as the communication partner.
5. In "Partners" under "Interface:" select the PROFINET interface X2 of the CPU 1516-3PN/DP.
6. In "Local" under "Connection data" select the setting "<new>". STEP 7 creates a data block for the connection data in the user program of the S7-1500R/H redundant system, for example "PLC_1_Send_DB". "TCP" is set by default as the connection type.
7. In "Partners" under "Connection type" select the setting "NEW". STEP 7 creates a data block for the connection data in the user program of the other CPU, for example "PLC_3_Receive_DB".

Communication Function Manual, 11/2019, A5E03735815-AH

339

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H
TRCV_C instruction in the user program of the CPU 1516 3PN/DP Create a TRCV_C instruction in the user program of the CPU 1516-3PN/DP and assign parameters as below:

Figure 13-13 S7-1500-3PN/DP: Assigning parameters to the TRCV_C instruction in STEP 7

340

Communication Function Manual, 11/2019, A5E03735815-AH

Communication with the redundant system S7-1500R/H 13.6 Open User Communication with the redundant system S7-1500R/H
Setting up a connection via a device IP address To set up an OUC-connection via a device IP address of one of the two CPUs:  Select a suitable PROFINET interface of the S7-1500R/H redundant system.  Deselect the "Use address of H-system" check box.

Figure 13-14 OUC-connection via a device IP address

Reference

You can find additional information on system states in the S7-1500R/H (https://support.industry.siemens.com/cs/ww/en/view/109754833) system manual.

See also

PROFINET FUNCTION MANUAL (https://support.industry.siemens.com/cs/ww/en/view/49948856)

Communication Function Manual, 11/2019, A5E03735815-AH

341

Industrial Ethernet Security with CP 1543-1

14

All-round protection - the task of Industrial Ethernet Security With Industrial Ethernet Security, individual devices, automation cells or network segments of an Ethernet network can be protected. Data transfer can also be protected by a combination of different security measures:  Data espionage  Data manipulation  Unauthorized access
Security measures  Firewall ­ IP firewall with stateful packet inspection (layer 3 and 4) ­ Firewall also for Ethernet "non-IP" frames according to IEEE 802.3 (layer 2) ­ Bandwidth limitation ­ Global firewall rules All network nodes located in the internal network segment of a CP 1543-1 are protected by its firewall. Exception: If you access the CPU via the interface of the CP with the "Access to PLC via communication module" function, the firewall does not protect this connection.  Logging To allow monitoring, events can be stored in log files that can be read out using the configuration tool or can be sent automatically to a Syslog server.  HTTPS For encrypted transfer of websites, for example during process control.  FTPS (explicit mode) For encrypted transfer of files.  Secure NTP For secure time-of-day synchronization and transmission.  SNMPv3 For secure transmission of network analysis information safe from eavesdropping.

342

Communication Function Manual, 11/2019, A5E03735815-AH

Industrial Ethernet Security with CP 1543-1 14.1 Firewall
 VPN groups You can combine the CP 1543-1 with other security modules into VPN groups through configuration. IPsec tunnels are established between all the security modules of a VPN group (VPN). All internal nodes of these security modules can communicate securely with each other through this tunnel.
 Protection for devices and network segments The firewall and VPN groups protective functions can be applied to the operation of single devices, multiple devices, or entire network segments.
Additional information An overview with links to the most important contributions on Industrial Security is available in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/92651441).

14.1

Firewall

Tasks of the firewall
The purpose of the firewall functionality is to protect networks and stations from outside influences and disturbances. This means that only certain previously specified communications relations are permitted.
To filter the data traffic, IPv4 addresses, IPv4 subnets, port numbers or MAC addresses among other things can be used.
The firewall functionality can be configured for the following protocol levels:
 IP firewall with stateful packet inspection (layer 3 and 4)
 Firewall also for Ethernet "non-IP" frames according to IEEE 802.3 (layer 2)

Firewall rules

Firewall rules describe which packets are permitted or forbidden in which direction.

Communication Function Manual, 11/2019, A5E03735815-AH

343

Industrial Ethernet Security with CP 1543-1 14.2 Logging

14.2

Logging

Functionality

For test and monitoring purposes, the security module has diagnostics and logging functions.
 Diagnostics functions
These include various system and status functions that you can use in online mode.
 Logging functions
This involves the recording of system and security events. Depending on the event type, the recording is made in volatile or non-volatile local buffer areas of the CP 1543-1. As an alternative, it is also possible to record on a network server.
The parameter assignment and evaluation of these functions is only possible with a network connection.

Recording events with logging functions
You specify which events should be recorded with the log settings. Here you can configure the following recording variants:
 Local logging
With this variant, you record the events in local buffers of the CP 1543-1. In the online dialog of the Security Configuration Tool, you can then access these recordings, visualize them and archive them on the service station.
 Network Syslog
With the network Syslog, you use a Syslog server in the network. This records the events according to the configuration in the log settings.

344

Communication Function Manual, 11/2019, A5E03735815-AH

Industrial Ethernet Security with CP 1543-1 14.3 NTP client

14.3

NTP client

Functionality

To check the time validity of a certificate and the time stamp of log entries, the date and time are maintained on the CP 1543-1 as on the CPU. This time can be synchronized with NTP. The CP 1543-1 forwards the synchronized time to the CPU via the backplane bus of the automation system. This way the CPU also receives a synchronized time for the time events in program execution.
The automatic setting and periodic synchronization of the time takes place either via a secure or non-secure NTP server. You can assign a maximum of 4 NTP servers to the CP 1543-1. A mixed configuration of non-secure and secure NTP servers is not possible.

14.4

SNMP

Functionality

Like the CPU, the CP 1543-1 supports the transfer of management information using the Simple Network Management Protocol (SNMP). To achieve this, an "SNMP agent" is installed on the CP/CPU that receives and responds to the SNMP queries. Information about the properties of devices capable of SNMP is contained in so-called MIB files (Management Information Base) for which the user needs to have the appropriate rights.
With SNMPv1, the "community string" is also sent. The "community string" is like a password that is sent along with the SNMP query. The requested information is sent when the "community string" is correct. The request is discarded when the string is incorrect.
With SNMPv3, data can be transferred encrypted. To do this, select either an authentication method or an authentication and encryption method.
Possible selection:
 Authentication algorithm: none, MD5, SHA-1
 Encryption algorithm: none, AES-128, DES
You can deactivate the use of SNMP for the CP/CPU. Deactivate SNMP if the security guidelines in your network do not permit SNMP or if you use your own SNMP solution.
To find out how to deactivate SNMP for the CPU, refer to section Disabling SNMP (Page 57).

Communication Function Manual, 11/2019, A5E03735815-AH

345

Industrial Ethernet Security with CP 1543-1 14.5 VPN

14.5

VPN

Functionality

For security modules that protect the internal network, VPN (Virtual Private Network) tunnels provide a secure data connection through the non-secure external network.
The module uses the IPsec protocol (tunnel mode of IPsec) for tunneling.
In STEP 7 you can assign VPN groups to security modules. VPN tunnels are automatically established between all modules of a VPN group. A module in one project can belong to several different VPN groups at the same time in the process.

346

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains of the process engineering industry and manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Backup CPU

If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over process control if the primary CPU fails.

Bus
Transmission medium that connects several devices together. Data transmission can be performed electrically or via optical fibers, either in series or in parallel.

Client

Device in a network that requests a service from another device in the network (server).

CM  Communications module

Communications module
Module for communications tasks used in an automation system as an interface expansion of the CPU (for example PROFIBUS) and providing additional communications options (PtP).

Communications processor
Module for expanded communications tasks covering special applications, for example in the area of security.

Consistent data Data that belongs together in terms of content and must not be separated when transferred.

Communication Function Manual, 11/2019, A5E03735815-AH

347

Glossary

CP  Communications processor

CPU

Central Processing Unit - Central module of the S7 automation system with a control and arithmetic unit, memory, operating system and interface for programming device.

Device

Generic term for:  Automation systems (PLC, PC, for example)  Distributed I/O systems  Field devices (for example, PLC, PC, hydraulic devices, pneumatic devices) and  Active network components (for example, switches, routers)  Gateways to PROFIBUS, AS interface or other fieldbus systems

Device certificates Such certificates are signed by a certificate authority (CA).
The signature of an end-entity certificate is checked with the public key of the certificate authority certificate.
The "Subject" attribute must not be identical to the "Issuer" attribute.
The "Subject", for example, contains the name of a program as with the OPC UA application certificate.
"Issuer" is the certificate authority that signed the certificate.
The "CA" field must be set to "False".

DP master

Within PROFIBUS DP, a master in the distributed I/O that behaves according to the EN 50170 standard, Part 3.
 See also DP slave

DP slave

Slave in the distributed I/O that is operated on PROFIBUS with the PROFIBUS DP protocol and behaves according to the EN 50170 standard, Part 3.
 See also DP master

348

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

Duplex

Data transmission system; a distinction is made between full and half duplex.
Half duplex: One channel is available for alternate data exchange (sending or receiving alternately but not at the same time).
Full duplex: Two channels are available for simultaneous data exchange in both directions (simultaneous sending and receiving in both directions).

End-entity certificate  See also device certificate

Ethernet

International standard technology for local area networks (LAN) based on frames. It defines types of cables and signaling for the physical layer and packet formats and protocols for media access control.

Ethernet network adapter
Electronic circuitry for connecting a computer to an Ethernet network. It allows the exchange of data / communication within the network.

FETCH/WRITE
Server services using TCP/IP, ISO-on-TCP and ISO for access to system memory areas of S7 CPUs. Access (client function) is possible from a SIMATIC S5 or a third-party device/PC. FETCH: Read data directly; WRITE: Write data directly.

Field device

 Device

Freeport

Freely programmable ASCII protocol; here for data transfer via a point-to-point connection.

FTP

File Transfer Protocol; a network protocol for transferring files via IP networks. FTP is used to download files from the server to the client or to upload files from the client to the server. FTP directories can also be created and read out and directories and files can be renamed or deleted.

HMI

Human Machine Interface, device for visualization and control of automation processes.

Communication Function Manual, 11/2019, A5E03735815-AH

349

Glossary

IE  Industrial Ethernet

IM  Interface module

Industrial Ethernet
Guideline for setting up an Ethernet network in an industrial environment. The essential difference compared with standard Ethernet is the mechanical ruggedness and immunity to noise of the individual components.

Instruction

The smallest self-contained unit of a user program characterized by its structure, function or purpose as a separate part of the user program. An instruction represents an operation procedure for the processor.

Interface module
Module in the distributed I/O system. The interface module connects the distributed I/O system via a fieldbus to the CPU (IO controller/DP master) and prepares the data for the I/O modules.

Intermediate CA certificate
This is a certificate authority certificate that is signed with the private key of a root certificate authority.
An intermediate certificate authority signs end-entity certificates with its private key.
The signature of these end-entity certificates is verified with the public key of the intermediate certificate authority.
The "Subject" and "Issuer" attributes of the intermediate CA certificate must not be identical. This certificate authority has after all not signed its certificate itself.
The "CA" field must be set to "True".

IO controller, PROFINET IO controller
Central device in a PROFINET system, usually a classic programmable logic controller or PC. The IO controller sets up connections to the IO devices, exchanges data with them, thus controls and monitors the system.

350

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

IO device, PROFINET IO device
Device in the distributed I/O of a PROFINET system that is monitored and controlled by an IO controller (for example distributed inputs/outputs, valve islands, frequency converters, switches).

IP address

Binary number that is used as a unique address in computer networks in conjunction with the Internet Protocol (IP). It makes these devices uniquely addressable and individually accessible. An IPv4 address can be evaluated using a binary subnet mask that results in a network part or a host part as a structure. The textual representation of an IPv4 address consists, for example, of 4 decimal numbers with the value range 0 to 255. The decimal numbers are separated by periods.

IPv4 subnet mask
Binary mask, with which an IPv4 address (as a binary number) is divided into a "network part" and a "host part".

ISO protocol

Communications protocol for message or packet-oriented transfer of data in an Ethernet network. This protocol is hardware-oriented, very fast and allows dynamic data lengths. The ISO protocol is suitable for medium to large volumes of data.

ISO-on-TCP protocol
Communications protocol capable of S7 routing for packet-oriented transfer of data in an Ethernet network; provides network addressing. The ISO-on-TCP protocol is suitable for medium and large volumes of data and allows dynamic data lengths.

Linear bus topology Network topology characterized by the arrangement of the devices in a line (bus).

MAC address

Worldwide unique device identification for all Ethernet devices. The MAC address is assigned by the manufacturer and has a 3-byte vendor ID and 3-byte device ID as a consecutive number.

Master

Higher-level, active participant in the communication/on a PROFIBUS subnet. The master has rights to access the bus (token) and can request and send data.
 See also DP master

Communication Function Manual, 11/2019, A5E03735815-AH

351

Glossary

Modbus RTU

Remote Terminal Unit; Open communications protocol for serial interfaces based on a master/slave architecture.

Modbus TCP

Transmission Control Protocol; Open communications protocol for Ethernet based on a master/slave architecture. The data are transmitted as TCP/IP packets.

Network

A network consists of one or more interconnected subnets with any number of devices. Several networks can exist alongside each other.

NTP

The Network Time Protocol (NTP) is a standard for synchronizing clocks in automation systems via Industrial Ethernet. NTP uses the connectionless UDP transport protocol for the Internet.

OPC UA

OPC Unified Automation is a protocol for communication between machines, developed by the OPC Foundation.

Operating states
Operating states describe the behavior of a single CPU at a specific time.
The CPUs of the SIMATIC standard systems have the STOP, STARTUP and RUN operating states.
The primary CPU of the redundant system S7-1500R/H has the operating states STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating states STOP, SYNCUP and RUN-Redundant.

Operating system
Software that allows the use and operation of a computer. The operating system manages resources such as memory, input and output devices and controls the execution of programs.

PG  Programming device

PNO

 PROFIBUS user organization

352

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

Point-to-point connection
Bidirectional data exchange via communications modules with a serial interface between two communications partners (and two only).

Port

Physical connector to connect devices to PROFINET. PROFINET interfaces have one or more ports.

Primary CPU

If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU processes the user program synchronously and can take over process control if the primary CPU fails.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then reads the signal states of the input modules into the process image input. The CPU then executes the user program.

PROFIBUS

Process Field Bus - European Fieldbus standard.

PROFIBUS address
Unique identifier of a device connected to PROFIBUS. The PROFIBUS address is sent in the frame to address a device.

PROFIBUS device
Device with at least one PROFIBUS interface either electrical (for example RS-485) or optical (for example Polymer Optical Fiber).

PROFIBUS user organization
Technical committee dedicated to the definition and development of the PROFIBUS and PROFINET standard.

PROFIBUS DP
A PROFIBUS with DP protocol that complies with EN 50170. DP stands for distributed I/O = fast, real-time capable, cyclic data exchange. From the perspective of the user program, the distributed I/O is addressed in exactly the same way as the centralized IO.

Communication Function Manual, 11/2019, A5E03735815-AH

353

Glossary

PROFINET

Open component-based industrial communications system based on Ethernet for distributed automation systems. Communications technology promoted by the PROFIBUS user organization.

PROFINET device Device that always has a PROFINET interface (electrical, optical, wireless).

PROFINET interface
Interface of a module capable of communication (for example CPU, CP) with one or more ports. A MAC address is assigned to the interface in the factory. Along with the IP address and the device name (from the individual configuration), this interface address ensures that the PROFINET device is identified uniquely in the network. The interface can be electrical, optical or wireless.

PROFINET IO

IO stands for input/output; distributed I/O (fast, cyclic data exchange with real-time capability). From the perspective of the user program, the distributed I/O is addressed in exactly the same way as the centralized IO.
PROFINET IO as the Ethernet-based automation standard of PROFIBUS & PROFINET International defines a cross-vendor communication, automation, and engineering model.
With PROFINET IO, a switching technology is used that allows all devices to access the network at any time. In this way, the network can be used much more efficiently through the simultaneous data transfer of several devices. Simultaneous sending and receiving is enabled via the full-duplex operation of Switched Ethernet.
PROFINET IO is based on switched Ethernet with full-duplex operation and a bandwidth of 100 Mbps.

Programming device
Programming devices are essentially compact and portable PCs which are suitable for industrial applications. They are identified by a special hardware and software configuration for programmable logic controllers.

Protocol

Agreement on the rules by which the communication between two or more communication partners transpires.

PtP
Point-to-Point, interface and/or transmission protocol for bidirectional data exchange between two (and only two) communications partners.

354

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

Redundant systems
Redundant systems have multiple (redundant) instances of key automation components. Process control is maintained if a redundant component fails.

Ring topology

All devices of a network are connected together in a ring.

Root CA certificates  See also root certificate

Root certificate
This is the certificate of a certificate authority: It signs end-entity certificates and intermediate CA certificates with its private key.
The "Subject" attribute and the "Issuer" of this certificate must be identical. This certificate authority has signed its certificate itself.
The "CA" field must be set to "True".
TIA Portal V14 has such a root CA certificate:
If you configure the OPC UA server of an S7-1500 in the TIA Portal, the TIA Portal generates an end-entity certificate for the OPC UA server and signs that certificate with its own private key.
The signature of this end-entity certificate can be verified with the public key of the TIA Portal. This key can be found in the root CA certificate of the TIA Portal.

Router

Network node with a unique identifier (name and address) that connects subnets together and allows transportation of data to uniquely identified communications nodes in the network.

RS232, RS422 and RS485 Standard for serial interfaces.

RTU

Modbus RTU (RTU: Remote Terminal Unit, transfers the data in binary form; allows a good data throughput. The data must be converted to a readable format before it can be evaluated.

S7 routing

Communication between S7 automation systems, S7 applications or PC stations in different S7 subnets via one or more network nodes functioning as S7 routers.

Communication Function Manual, 11/2019, A5E03735815-AH

355

Glossary

SDA service

Send Data with Acknowledge. SDA is an elementary service with which an initiator (for example DP master) can send a message to other devices and then receives acknowledgment of receipt immediately afterwards.

SDN service

Send Data with No Acknowledge. This service is used primarily to send data to multiple stations and the service therefore remains unacknowledged. Suitable for synchronization tasks and status messages.

Security

Generic term for all the measures taken to protect against  Loss of confidentiality due to unauthorized access to data  Loss of integrity due to manipulation of data  Loss of availability due to the destruction of data

Self-signed certificates
These are certificates that you sign with your private key and use as end-entity certificates.
The signature of these end-entity certificates is verified with your public key.
The "Subject" and "Issuer" attributes of self-signed certificates must be identical: You have signed your certificate yourself.
The "CA" field must be set to "False".
You can, for example, use self-signed certificates as application certificates for an OPC UA client.
The procedure required to generate a self-signed certificate with the certificate generator of the OPC Foundation is described here (Page ).

Server

A device or more generally an object that can provide certain services; the service is performed at the request of a client.

Slave

Distributed device in a fieldbus system that can only exchange data with a master after the master has requested this.
 See also DP slave

356

Communication Function Manual, 11/2019, A5E03735815-AH

Glossary

SNMP

Simple Network Management Protocol, uses the wireless UDP transport protocol. SNMP works in much the same way as the client/server model. The SNMP manager monitors the network nodes. The SNMP agents collect the various network-specific information in the individual network nodes and makes this information available in a structured form in the MIB (Management Information Base). This information allows a network management system to run detailed network diagnostics.

Subnet

Part of a network whose parameters must be matched up on the devices (for example in PROFINET). A subnet includes the bus components and all connected stations. Subnets can be linked together, for example using gateways or routers to form one network.

Switch

Network components used to connect several terminal devices or network segments in a local network (LAN).

Switched communication
In addition to the device IP addresses of the CPUs, the redundant system S7-1500R/H supports system IP addresses:
 System IP address for the X1 PROFINET interfaces of the two CPUs (system IP address X1)
 System IP address for the X2 PROFINET interfaces of the two CPUs (system IP address X2)
You use the system IP addresses for communication with other devices (for example, HMI devices, CPUs, PG/PC). The devices always communicate over the system IP address with the primary CPU of the redundant system. This ensures that the communication partner can communicate with the new primary CPU (previously backup CPU) in the RUN-Solo system state after failure of the original primary CPU in redundant operation.

System states

The system states of the redundant system S7-1500R/H result from the operating states of the primary and backup CPUs. The term system state is used as a simplified expression that refers to the operating states that occur simultaneously on both CPUs. The redundant system S7-1500R/H has the system states STOP, STARTUP, RUN-Solo, SYNCUP and RUN-Redundant.

TCP/IP

Transmission Control Protocol / Internet Protocol, connection-oriented network protocol, generally recognized standard for data exchange in heterogeneous networks.

Communication Function Manual, 11/2019, A5E03735815-AH

357

Glossary

Time-of-day synchronization
Capability of transferring a standard system time from a single source to all devices in the system so that their clocks can be set according to the standard time.

Tree topology

Network topology characterized by a branched structure: Two or more bus nodes are connected to each bus node.

Twisted-pair

Fast Ethernet via twisted-pair cables is based on the IEEE 802.3u standard (100 Base-TX). The transmission medium is a shielded 2x2 twisted-pair cable with an impedance of 100 Ohms (22 AWG). The transmission characteristics of this cable must meet the requirements of category 5.
The maximum length of the connection between the terminal and the network component must not exceed 100 m. The connectors are designed according to the 100Base-TX standard with the RJ-45 connector system.

UDP

User Datagram Protocol; communications protocol for fast and uncomplicated data transfer, without acknowledgment. There are no error checking mechanisms as found in TCP/IP.

User program

In SIMATIC, a distinction is made between the CPU operating system and user programs. The user program contains all instructions, declarations and data by which a system or process can be controlled. The user program is assigned to a programmable module (for example, CPU, FM) and can be structured in smaller units.

USS

Universal Serial Interface protocol (Universelles Serielles Schnittstellen-Protokoll); defines an access method according to the master-slave principle for communication via a serial bus.

Web server

Software/communications service for data exchange via the Internet. The web server transfers the documents using standardized transmission protocols (HTTP, HTTPS) to a Web browser. Documents can be static or put together dynamically from different sources by the web server on request from the Web browser.

358

Communication Function Manual, 11/2019, A5E03735815-AH

Index
A
Advanced Encryption Algorithm, 37 AES, 37 Applicant, 40 Asymmetric encryption, 38
B
BRCV, 113 BSEND, 113
C
Certificate authorities, 40 Certificate subject, 40 CM, 14 Communication
Data record routing, 301 HMI communication, 63 Open communication, 65 Open User Communication, 65 PG communication, 60 Point-to-point connection, 121 S7 communication, 112 S7 routing, 289 Communication options Overview, 19 Communication via PUT/GET instruction Creating and configuring a connection, 114 Communications Communication protocols, 66 Establishment and termination, 91 Communications module, 14 Communications processor, 14 Communications services Connection resources, 27 Connection Diagnostics, 320 Instructions for Open User Communication, 68 Connection diagnostics, 320 Connection resources Data record routing, 313 HMI communication, 312 Module-specific, 317 occupying, 314
Communication Function Manual, 11/2019, A5E03735815-AH

Overview, 27, 307 S7 routing, 313 Station specific, 316 Consistency of data, 31 CP, 14
D
Data consistency, 31 Data record routing, 301 Digital certificates, 40
E
E-mail, 19, 67, 87 End-entity certificate, 43 Establishment and termination of communications, 91 Export file for OPC UA, 174
F
FDL, 67 Fetch, 19 Firewall, 343 Freeport protocol, 121 FTP, 19, 67, 87, 88
G
GET, 113
H
Handshake Protocol, 39 HMI communication, 19, 63
I
IM, 18 Industrial Ethernet Security, 342 Interface module, 18 Interfaces for communication, 15 Interfaces of communications modules
Point-to-point connection, 17 Interfaces of communications processors, 16
359

Index

IP address, emergency address (temporary), 323 IP forwarding, 294 ISO, 19, 66 ISO-on-TCP, 66, 75
L
Logging, 344
M
Man-in-the-middle attack, 40 Modbus protocol (RTU), 121 Modbus TCP, 67
N
NTP, 19, 345
O
Occupation of connection resources, 314 OPC UA
Certificate generator, 152 DB tags, 165 End points, 161 Identifier, 136 Introduction, 131 Layer model, 157 Namespace, 135 NodeId, 135 OpenSSL, 153 PLC tags, 165 Secure channel, 156 Secure connection, 156 Security mechanisms, 146 Security settings, 161 Signing and encryption, 149 X.509 certificates, 151 OPC UA client Authentication, 275 Basics, 139 Certificate, 272 OPC UA server Address space, 137 Addressing, 177 Application name, 176 Authentication, 193 Basics, 159 Commissioning, 175
360

Customizing the server certificate, 190 Generating a server certificate, 184 Performance, 173 Performance increase, 173 Publishing interval, 182 Runtime licenses, 197, 198 Sampling interval, 183 Security settings, 188 Subscription, 180 TCP port, 179, 181 Write and read rights, 165 XML export file, 174 Open communication Connection configuration, 75 Setting up e-mail, 87 Setting up FTP, 88 Setting up TCP, ISO-on-TCP, UDP, 75 Open User Communication Features, 65 Instructions, 68 Protocols, 66 OpenSSL, 153
P
PCT, 302 PG communication, 19, 60 Point-to-point connection, 19, 121 Private Key, 35 Procedure 3964(R), 121 Protocols for Open User Communication, 66 Public Key, 35 PUT, 113
R
Record Protocol, 39 RFC 5280, 35 Root certificate, 43
S
S7 communication, 19, 112, 313 S7 routing, 289
Connection resources, 313 Secure communication, 35 Secure Socket Layer, 39 Security, 342 Security measures, 342
Firewall, 343 Logging, 344
Communication
Function Manual, 11/2019, A5E03735815-AH

NTP, 345 SNMP, 345 Self-signed certificates, 40 Server certificate, 190 Setting up a connection, 27 By configuring, 80 ISO connection with CP 1543-1, 81 Signature, 41 SNMP, 19, 345 SSL, 39 Symmetric encryption, 37 Syslog, 344 System data type, 69
T
TCON, 68 TCP, 19, 66, 75 TDISCON, 68 Time-of-day synchronization, 19 TLS, 39 Transport Layer Security, 39 TRCV, 68 TRCV_C, 68 TSEND, 68 TSEND_C, 68
U
UDP, 19, 66, 75 URCV, 113 USEND, 113 USS protocol, 121
W
Web server, 19 Write, 19
X
X.509, 35
Communication Function Manual, 11/2019, A5E03735815-AH

Index 361

PROFINET with STEP 7 V16

SIMATIC PROFINET PROFINET with STEP 7 V16
Function Manual

Preface

Function manuals Documentation Guide

1

Description

2

Parameter assignment/addressing

3

Diagnostics and maintenance

4

Functions

5

PROFINET with the

redundant S7-1500R/H

6

system

11/2019
A5E03444486-AK

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03444486-AK  10/2019 Subject to change

Copyright © Siemens AG 2013 - 2019. All rights reserved

Preface

Purpose of the documentation
This function manual provides an overview of the PROFINET communication system with SIMATIC STEP 7 V16.
STEP 7 V16 is integrated into the high-performance graphical Totally Integrated Automation Portal (TIA Portal), the integration platform for all automation software tools.
This function manual supports you in planning a PROFINET system. The manual is structured into the following subject areas:
 PROFINET basics
 PROFINET diagnostics
 PROFINET functions

Basic knowledge required The following knowledge is required in order to understand the manual:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Knowledge about how to use STEP 7 (TIA Portal)

Scope

This documentation is the basic documentation for all SIMATIC products from the PROFINET environment. The product documentation is based on this documentation.
The examples are based on the functionality of the S7-1500 automation system.

What's new in the PROFINET Function Manual, Edition 11/2019 compared to Edition 10/2018

Function Direct data exchange
Switched S1 device

What are the customer benefits?
In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners. The "Direct data exchange" function enables deterministic, isochronous IO communication between multiple S7-1500 CPUs.
The "Switched S1 device" function of the CPU enables operation of standard IO devices in the S7-1500R/H redundant system.

Where can I find this information? Section Direct data exchange (Page 214)
Section Switched S1 device (Page 277)

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

3

Preface

What's new in the PROFINET Function Manual, Edition 10/2018 compared to Edition 12/2017
This manual (version 10/2018) includes the following new functions compared to the previous version (version 12/2017):

Function
PROFINET IO with the redundant S7-1500R/H system

Applications
In a PROFINET IO system with the redundant S7-1500R/H system, the IO communication continues even when one CPU fails.

Your benefits
The redundant S7-1500R/H system offers a high degree of reliability and system availability. A redundant configuration of the most important automation components reduces the probability of production downtimes and the consequences of component failures.

What's new in the PROFINET function manual, version 12/2017 compared to version 09/2016
This manual (version 12/2017) encompasses the following new functions compared to the previous version (version 09/2016):

Function

Applications

Your benefits

Specifying the router for a PROFINET IO device

You can specify the IP address of a router for each IO device. You reach the IO device from outside the IP subnet through the router.

In the past, it was only possible to specify a router for a PROFINET IO interface at the IO controller. The IO devices inherited the setting of the IO controller interface.

Now you can set the router address independently of the IO controller setting. This allows, for example, a router address at the IO device although you have not set a router address or have set a different address at the IO controller.

Configuring an IO device through hardware detection

You can detect an existing IO device and enter it in your project.

STEP 7 inserts the IO device with all the modules and submodules into the project. Article numbers and firmware versions between real and configured IO devices match.

You reduce the project planning work required.

Asset management

You can centrally manage non-PROFINET components (assets) of a PROFINET device. The PROFINET device makes the identification data of the assets available for evaluation via a standardized data record.

The new standardized PROFINET service makes it possible to manage all the hardware and firmware components of PROFINET devices centrally. The possibilities available for filtering device data, for example, depend on the range of performance of the evaluating application.

Asset manage-

Special application of asset management:

ment data record for I- From the point of view of a higher-level IO

devices

controller, the modules plugged into the I-

device represent assets. The user program in

the I-device compiles the asset management

data record. The IO controller can read identi-

fication data of the I-device modules through

this data record.

See Asset management.

PROFINET with STEP 7 V16

4

Function Manual, 11/2019, A5E03444486-AK

Preface

What's new in the PROFINET function manual, Version 09/2016 compared to Version 12/2014
This manual (version 09/2016) encompasses the following new functions compared to the previous version (version 12/2014):

Function PROFINET IO on the 2nd PROFINET interface
IRT with very short data cycle times down to 125 µs MRPD: Media Redundancy with Planned Duplication of frames
PROFINET performance upgrade
Limitation of the data infeed into the network

Applications You can operate another PROFINET IO system on the CPU or connect additional IO devices.
You realize high-end applications with IO communication which place very high performance demands on the IO processing. PROFINET IO IRT enables you to realize applications that place particularly high demands on the reliability and accuracy (isochronous mode).
You can implement applications with high speed and send clock requirements. This is of interest to applications with high demands on performance. You limit the network load for standard Ethernet communication to a maximum value.

Your benefits
You use a fieldbus type in the plant. The CPU can perform fast and deterministic data exchange as an I-device with a higher-level controller (PROFINET/Ethernet) through the second line.
You make PROFINET IO communication and standard communication possible via one cable even with a send clock of 125 µs.
By sending the cyclic IO data in both directions in the ring, the communication to the IO devices is maintained even when the ring is interrupted and does not result in device failure even with fast update times. You achieve higher reliability than with MRP.
Better utilization of the bandwidth results in short reaction times.
You flatten peaks in the data feed. You share the remaining bandwidth based on demand.

Conventions

STEP 7: We refer to "STEP 7" in this documentation as a synonym for the configuration and programming software "STEP 7 as of V12 (TIA Portal)" and subsequent versions. This documentation contains pictures of the devices described. The figures may differ slightly from the device supplied. You should also pay particular attention to notes such as the one shown below:
Note A note contains important information on the product, on handling of the product and on the section of the documentation to which you should pay particular attention.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

5

Preface
Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

PROFINET with STEP 7 V16

6

Function Manual, 11/2019, A5E03444486-AK

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

7

Table of contents

Preface ...................................................................................................................................................... 3

1 Function manuals Documentation Guide ................................................................................................. 12

2 Description............................................................................................................................................... 14

2.1 2.1.1 2.1.2 2.1.3 2.1.4

Introduction to PROFINET ..................................................................................................... 14 PROFINET terms ................................................................................................................... 16 Basic terminology of communication ..................................................................................... 20 PROFINET interface .............................................................................................................. 23 Implementation of the PROFINET device model in SIMATIC ............................................... 26

2.2 2.2.1 2.2.2 2.2.3 2.2.3.1 2.2.3.2 2.2.4 2.2.4.1 2.2.4.2 2.2.4.3

Setting up PROFINET............................................................................................................ 28 Active Network Components.................................................................................................. 28 Cabling technology ................................................................................................................ 30 Wireless design...................................................................................................................... 33 Basics..................................................................................................................................... 33 Tips on assembly ................................................................................................................... 35 Network security..................................................................................................................... 36 Basics..................................................................................................................................... 36 Network components and software........................................................................................ 38 Application example ............................................................................................................... 39

3 Parameter assignment/addressing .......................................................................................................... 41

3.1

Assigning an IO device to an IO controller ............................................................................ 42

3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5

Device name and IP address................................................................................................. 44 Device name .......................................................................................................................... 45 IP address .............................................................................................................................. 46 Assigning a device name and IP address.............................................................................. 49 Assign device name via communication table ....................................................................... 54 Permitting changes to the device name and IP address directly on the device .................... 57

3.3

Configuring an IO device through hardware detection .......................................................... 59

3.4

Specifying the router for a PROFINET IO device .................................................................. 60

3.5 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7

Configuring topology .............................................................................................................. 64 Topology view in STEP 7 ....................................................................................................... 66 Interconnecting ports in the topology view............................................................................. 69 Interconnecting ports - Inspector window .............................................................................. 70 Automatic assignment of devices by offline/online comparison ............................................ 71 Apply the port interconnections identified online manually to the project .............................. 72 Include the devices identified online manually in the project ................................................. 73 Automatic assignment of devices by advanced offline/online comparison............................ 73

4 Diagnostics and maintenance .................................................................................................................. 74

4.1 4.1.1

Diagnostics mechanisms of PROFINET IO ........................................................................... 74 Diagnostics levels in PROFINET IO ...................................................................................... 75

4.2

Diagnostics via LEDs ............................................................................................................. 78

PROFINET with STEP 7 V16

8

Function Manual, 11/2019, A5E03444486-AK

Table of contents

4.3

Diagnostics via the display of the S7-1500 CPUs ..................................................................79

4.4

Diagnostics via Web server ....................................................................................................83

4.5

Online diagnostics with STEP 7..............................................................................................86

4.6

Extended maintenance concept .............................................................................................89

4.7

Diagnostics of the network topology .......................................................................................91

4.8 4.8.1 4.8.2

Diagnostics in the user program .............................................................................................92 Diagnostics and configuration data records ...........................................................................92 Evaluate diagnostics in the user program ..............................................................................94

4.9 4.9.1 4.9.2 4.9.3 4.9.3.1 4.9.3.2 4.9.3.3

Maintenance ...........................................................................................................................97 I&M data (identification and maintenance) .............................................................................97 Loading I&M data to PROFINET IO devices and your modules ............................................97 Asset management .................................................................................................................98 Further information about asset management at PROFINET ................................................98 Content and structure of an asset management record .......................................................100 Asset management data record for I-devices.......................................................................107

5 Functions ............................................................................................................................................... 113

5.1 5.1.1 5.1.2

Connecting other bus systems .............................................................................................113 Linking PROFINET and PROFIBUS.....................................................................................115 Connect the DP slave via the IE/PB Link to a PROFINET IO system..................................116

5.2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.2.10

Intelligent IO devices (I-devices)...........................................................................................118 I-device functionality .............................................................................................................118 Properties and Advantages of the I-Device ..........................................................................119 Characteristics of an I-Device...............................................................................................120 Data Exchange between higher- and lower-level IO system................................................124 Configuring the I-device........................................................................................................126 Program examples................................................................................................................128 Diagnostics and interrupt characteristics ..............................................................................131 Rules for the Topology of a PROFINET IO System with I-Device........................................134 Boundary conditions when using I-devices ..........................................................................136 Configuring PROFIenergy with I-devices .............................................................................137

5.3 5.3.1 5.3.2 5.3.3 5.3.4

Shared device .......................................................................................................................139 Useful information on shared devices...................................................................................139 Configuring shared device ....................................................................................................142 Configuring an I-device as a shared device .........................................................................146 Module-internal shared input/shared output (MSI/MSO) ......................................................155

5.4 5.4.1 5.4.2 5.4.3 5.4.4

Media redundancy (ring topologies) .....................................................................................162 Media Redundancy Protocol (MRP) .....................................................................................163 Configuring media redundancy.............................................................................................166 Media redundancy with planned duplication of frames (MRPD; not for S7-1500R/H) .........169 Multiple rings.........................................................................................................................171

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

9

Table of contents

5.5 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8
5.6 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5
5.7 5.7.1 5.7.2 5.7.3 5.7.4 5.7.4.1 5.7.4.2 5.7.4.3 5.7.5 5.7.5.1 5.7.5.2 5.7.5.3
5.8 5.8.1 5.8.2 5.8.3
5.9 5.9.1 5.9.2 5.9.3
5.10 5.10.1 5.10.1.1 5.10.1.2 5.10.1.3 5.10.2 5.10.2.1 5.10.2.2 5.10.2.3 5.10.2.4 5.10.2.5 5.10.2.6
5.11

Real-time communication .................................................................................................... 175 Introduction .......................................................................................................................... 175 RT ........................................................................................................................................ 176 IRT ....................................................................................................................................... 177 Comparison of RT and IRT .................................................................................................. 180 Configuring PROFINET IO with IRT .................................................................................... 180 Setting the bandwidth usage for the send clock .................................................................. 183 Setup recommendations for optimizing PROFINET ............................................................ 185 Limitation of the data infeed into the network ...................................................................... 189
PROFINET with performance upgrade ................................................................................ 190 Dynamic frame packing ....................................................................................................... 191 Fragmentation ...................................................................................................................... 193 Fast forwarding .................................................................................................................... 194 Configuration of IRT with high performance ........................................................................ 195 Sample configuration for IRT with high performance........................................................... 199
Isochronous mode ............................................................................................................... 200 What is isochronous mode?................................................................................................. 200 Use of isochronous mode .................................................................................................... 201 Time sequence of synchronization on PROFINET IO ......................................................... 202 Configuring isochronous mode ............................................................................................ 204 Introduction .......................................................................................................................... 204 Configuring isochronous mode on PROFINET IO ............................................................... 205 Setting the application cycle and delay time ........................................................................ 208 Programming isochronous mode ......................................................................................... 209 Basics of Programming ........................................................................................................ 209 Program execution according to the IPO model .................................................................. 210 Program execution according to the OIP model .................................................................. 212
Direct data exchange ........................................................................................................... 214 Introduction .......................................................................................................................... 214 Configuring direct data exchange between two S7-1500 CPUs.......................................... 217 Configuring direct data exchange between multiple IO controllers ..................................... 220
Device replacement without exchangeable medium ........................................................... 225 Device replacement without exchangeable medium/PG function ....................................... 226 Replacing an IO device without exchangeable medium ...................................................... 227 Permit overwriting of PROFINET device name ................................................................... 228
Standard machine projects .................................................................................................. 232 Multiple use IO systems ....................................................................................................... 233 What you should know about multiple use IO systems ....................................................... 233 Configuring multiple use IO systems ................................................................................... 236 Adapt multiple use IO systems locally ................................................................................. 239 Configuration control for IO systems.................................................................................... 241 Information about configuration control of IO systems ........................................................ 241 Configuring IO devices as optional ...................................................................................... 244 Enabling optional IO devices in the program ....................................................................... 245 Configuring flexible order of IO devices ............................................................................... 251 Customizing arrangement of IO devices in the program ..................................................... 253 System behavior and rules .................................................................................................. 256
Saving energy with PROFIenergy........................................................................................ 258

PROFINET with STEP 7 V16

10

Function Manual, 11/2019, A5E03444486-AK

Table of contents

5.12 5.12.1

Docking systems...................................................................................................................260 Configuring docking systems................................................................................................262

5.13 5.13.1 5.13.2 5.13.3 5.13.4 5.13.5 5.13.6

Accelerating startup ..............................................................................................................265 Options for accelerating the startup of IO devices................................................................265 Prioritized startup ..................................................................................................................266 Configuring prioritized startup...............................................................................................268 Optimize the port settings .....................................................................................................269 Optimize the cabling of the ports ..........................................................................................270 Measures in the user program..............................................................................................271

6 PROFINET with the redundant S7-1500R/H system ............................................................................. 272

6.1

Media redundancy in the redundant S7-1500R/H system....................................................273

6.2

H-Sync Forwarding ...............................................................................................................273

6.3

System redundancy S2.........................................................................................................276

6.4

Switched S1 device...............................................................................................................277

6.5

Main differences between IO device with S2 system redundancy and standard IO

device .................................................................................................................................... 279

6.6

Installation guidelines ...........................................................................................................280

6.7

Configuring PROFINET IO on a redundant S7-1500R/H system.........................................281

6.8

Assigning IO device to the redundant S7-1500R/H system .................................................287

6.9

Configuring media redundancy (MRP) for a configuration with the redundant S7-

1500R/H system ...................................................................................................................290

Glossary ................................................................................................................................................ 292

Index...................................................................................................................................................... 307

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

11

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

PROFINET with STEP 7 V16

12

Function Manual, 11/2019, A5E03444486-AK

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

13

Description

2

2.1

Introduction to PROFINET

What is PROFINET IO?
Within the framework of Totally Integrated Automation (TIA), PROFINET IO is the logical further development of:
 PROFIBUS DP, the established fieldbus and
 Industrial Ethernet
PROFINET IO is based on 20 years of experience with the successful PROFIBUS DP and combines the normal user operations with the simultaneous use of innovative concepts of Ethernet technology. This ensures the integration of PROFIBUS DP into the PROFINET world.
PROFINET IO as the Ethernet-based automation standard of PROFIBUS/PROFINET International defines a cross-vendor communication, automation, and engineering model.

Objectives of PROFINET The objectives of PROFINET:  Industrial networking, based on Industrial Ethernet (open Ethernet standard)  Compatibility of Industrial Ethernet and standard Ethernet components  High robustness due to Industrial Ethernet devices. Industrial Ethernet devices are suited to the industrial environment (temperature, noise immunity, etc.).  Use of IT standards such as TCP/IP, http.  Real-time capability  Seamless integration of other fieldbus systems

PROFINET with STEP 7 V16

14

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET
Implementation of PROFINET in SIMATIC PROFINET is implemented in SIMATIC as follows:  We have implemented communication between field devices in SIMATIC with PROFINET IO.  Installation technology and network components are available as SIMATIC NET products.  Ethernet standard protocol and procedures (e.g., SNMP = Simple Network Management Protocol for network parameter assignment and diagnostics) are used for remote maintenance and network diagnostics.

Figure 2-1 PROFINET overview configuration

STEP 7

The STEP 7 engineering tool supports you in setting up and configuring an automation solution. STEP 7 provides a uniform application view over all bus systems.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

15

Description 2.1 Introduction to PROFINET
Documentation from PROFIBUS & PROFINET International on the Internet You will find numerous documents on the topic of PROFINET at the Internet address (http://www.profibus.com) of the "PROFIBUS & PROFINET International" PROFIBUS user organization, which is also responsible for PROFINET. Additional information can be found on the Internet (http://www.siemens.com/profinet).
Overview of the most important documents and links A compilation of the most important PROFINET application examples, FAQs and other contributions in the Industry Online Support is available in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/108165711).

2.1.1

PROFINET terms

Definition: Devices in the PROFINET environment In the PROFINET environment, "device" is the generic term for:  Automation systems (PLC, PC, for example)  Distributed I/O systems  Field devices (for example, hydraulic devices, pneumatic devices)  Active network components (for example, switches, routers)  Gateways to PROFIBUS, AS interface or other fieldbus systems

PROFINET with STEP 7 V16

16

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET
PROFINET IO devices The following graphic shows the general names used for the most important devices in PROFINET. In the table below the graphic you can find the names of the individual components in the PROFINET IO context.

Number PROFINET



PROFINET IO System



IO controller



Programming device / PC

(PROFINET IO supervisor)



PROFINET/Industrial Ethernet



HMI (Human Machine Interface)



IO device



I-device

Figure 2-2 PROFINET devices

Explanation
Device used to address the connected IO devices. This means that: The IO controller exchanges input and output signals with field devices. PG/PC/HMI device used for commissioning and for diagnostics Network infrastructure Device for operating and monitoring functions. A distributed field device that is assigned to one of the IO controllers (e.g., Distributed IO, valve terminals, frequency converters, switches with integrated PROFINET IO functionality) Intelligent IO device

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

17

Description 2.1 Introduction to PROFINET
IO communication via PROFINET IO The inputs and outputs of distributed I/O devices are read and written by means of PROFINET IO using what is referred to as IO communication. The following figure provides an overview of IO communication by means of PROFINET IO.

A

IO controller - IO controller communication via PN/PN coupler

B

IO controller - I-device communication

C

IO controller - IO-device communication

D

Direct data exchange between S7-1500-CPUs

Figure 2-3 IO communication via PROFINET IO

PROFINET with STEP 7 V16

18

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET

IO communication via PROFINET IO

Table 2- 1 IO communication via PROFINET IO

Communication between ... IO controllers and IO devices IO controller and I-device
IO controller and IO controller (PN/PN coupler)
S7-1500-CPU and S7-1500-CPU (direct data exchange)

Explanation
The IO controller sends data cyclically to the IO devices of its PROFINET IO system and receives data from these devices.
A fixed quantity of data is transferred cyclically between the user programs in CPUs of IO controllers and I-devices.
The IO controller does not access the I/O module of the I-device, but instead accesses configured address ranges, i.e. transfer ranges, which may be located inside our outside the process image of the CPU of the I-device. If parts of the process image are used as transfer ranges, it is not permitted to use these for real I/O modules.
Data transfer takes place using load- and transfer operations via the process image or via direct access.
A fixed quantity of data is cyclically transferred between the user programs in CPUs of IO controllers. A PN/PN coupler is required as additional hardware.
The IO controllers mutually access configured address ranges, i.e. transfer ranges, which may be located inside or outside the process image of the CPU. If parts of the process image are used as transfer ranges, it is not permitted to use these for real I/O modules.
Data transfer takes place using load- and transfer operations via the process image or via direct access.
I/O communication with PN/PN coupler is possible between two PROFINET IO systems.
In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners.
The direct data exchange is based on PROFINET with IRT and isochronous mode.
The data exchange takes place via transfer areas.

See also

Communication (http://support.automation.siemens.com/WW/view/en/59192925) Network security (Page 36) Functions (Page 113)

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

19

Description 2.1 Introduction to PROFINET

2.1.2

Basic terminology of communication

PROFINET communication
PROFINET communication takes place via Industrial Ethernet. The following transmission types are supported:
 Acyclic transmission of engineering and diagnostics data and interrupts
 Cyclic transmission of user data
The PROFINET-IO communication takes place in real-time.
For additional information on the real-time communication, refer to chapter Real-time communication (Page 175).

PROFINET with STEP 7 V16

20

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET
Transparent data access
Access to process data from different levels of the factory is supported by PROFINET communication. By using Industrial Ethernet, standard mechanisms of communication and information technology such as OPC/XML can now be used along with standard protocols such as UDP/TCP/IP and HTTP in automation engineering. This allows transparent access from company management level directly to the data from the automation systems at the control level and production level.

 Management level  Control level  Production level
Figure 2-4 Access to process data

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

21

Description 2.1 Introduction to PROFINET

Update time

The update time is a time interval. IO controller and IO device/I-device exchange IO data cyclically in the IO system within this time interval. The update time can be configured separately for each IO device and determines the interval at which output data is sent from the IO controller to the IO device (output module/submodule) as well as input data from the IO device to the IO controller (input module/submodule).
STEP 7 calculates the update time automatically in the default setting for each IO device of the PROFINET IO system, taking into account the volume of data to be exchanged as well as the set send clock.
For additional information on the update time, refer to section Real-time communication (Page 175).

Watchdog time
The watchdog time is the time interval that an IO controller or IO device permits, without receiving IO data. If the IO device is not supplied by the IO controller with data within the watchdog time, the IO device detects the missing frames and outputs substitute values. This is reported in the IO controller as a station failure.
In STEP 7, the watchdog time is made up from an integral multiple of the update time and can be set by the user.

Send clock

The period of time between two consecutive communication cycles. The send clock is the shortest possible interval in data exchange and thus also the smallest value that can be set for the update time.

Relationship between the update time and send clock
The calculated update times are reduction ratios (1, 2, 4, 8, ..., 512) of the send clock. The minimum possible update time thus depends on the minimum send clock of the IO controller that can be set and the efficiency of the IO controller and IO device. Depending on the send clock, it can be that only some of the reduction ratios are available (STEP 7 guarantees this through a pre-selection).
The following tables illustrate the dependency of the update time that can be set on the send clock, using an example of the CPU 1516-3 PN/DP. The update times satisfy the requirements of the PROFINET standard IEC 61158.
Table 2- 2 With real-time communication the following applies:

Send clock 250 s 500 s 1 ms 2 ms 4 ms

Update time 250 s to 128 ms 500 s to 256 ms 1 ms to 512 ms 2 ms to 512 ms 4 ms to 512 ms

Reduction ratios 1,2, ..., 512 1,2, ..., 512 1,2, ..., 512 1,2, ..., 256 1,2, ..., 128

Additional information
For information on real-time communication, refer to the section Real-Time Communication (RT) (Page 176).

PROFINET with STEP 7 V16

22

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET

2.1.3

PROFINET interface

Overview

PROFINET devices of the SIMATIC product family have one or more PROFINET interfaces (Ethernet controller/interface). The PROFINET interfaces have one or more ports (physical connection options).
In the case of PROFINET interfaces with multiple ports, the devices have an integrated switch.
PROFINET devices with two ports on one interface allow you to configure the system in a line or ring topology. PROFINET devices with three or more ports on one interface are also ideal for setting up tree topologies.
Properties and rules for naming the PROFINET interface and its representation in STEP 7 are explained in the following.

Properties

Every PROFINET device on the network is uniquely identified via its PROFINET interface. For this purpose, each PROFINET interface has:  A MAC address (factory default)  An IP address  A PROFINET device name

Identification and numbering of the interfaces and ports
Interfaces and ports for all modules and devices in the PROFINET system are identified with the following characters:

Table 2- 3 Identification for interfaces and ports of PROFINET devices

Element Interface Port
Ring port

Symbol X P
R

Interface number
In ascending order starting from number 1
In ascending order starting from number 1 (for each interface)

Examples of identification

Three examples illustrate the rules for identifying PROFINET interfaces:

Table 2- 4 Examples for identifying PROFINET interfaces

Sample labeling X2 P1 X1 P2 X1 P1 R

Interface number 2 1 1

Port number 1 2 1 (ring port)

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

23

Description 2.1 Introduction to PROFINET
Representation of PROFINET Interfaces in the Topology Overview in STEP 7 You can find the PROFINET interface in the topology overview in STEP 7. The PROFINET interface for an IO controller and an IO device is represented as follows in STEP 7:

Num-
ber
   

Description
PROFINET interface of an IO controller in STEP 7 PROFINET interface of an IO device in STEP 7 These lines represent the PROFINET interface. These lines represent the "ports" of a PROFINET interface.

Figure 2-5 Representation of the PROFINET interfaces in STEP 7

Schematic Representation of a PROFINET Interface with Integrated Switch
The following schematic diagram shows the PROFINET interface with integrated switch and its ports for all PROFINETdevices.

Figure 2-6 PROFINET interface with integrated switch

PROFINET with STEP 7 V16

24

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET

Functional differences of the PROFINET interfaces
PROFINET interfaces can provide different functions. PROFINET interface functions include identification, configuration, diagnostics and communication services (e.g., open communication). PROFINET interfaces that provide PROFINET IO functions and network security functions are also available.
The following table illustrates the differences using the example of the CPU 1516-3 PN/DP (as of firmware version V2.0), which features two PROFINET interfaces with different functionality.

Table 2- 5 Differences between the PROFINET interfaces of the CPU 1516-3 PN/DP (as of firmware version V2.0)

PROFINET interface (X1)

PROFINET interface (X2)

2 ports with PROFINET IO functionality:

1 port with PROFINET IO functionality:

Identification, configuration and diagnostics

PG communication

HMI communication

S7 communication

Time-of-day synchronization

Web server

Open communication

OPC UA server

IO controller

I-device

RT

IRT

-

Isochronous mode

-

Media redundancy

-

Prioritized startup

-

Additional Information on the Functionality of PROFINET interfaces
You can find information on the number and functionality of the interfaces of a PROFINET device in the documentation for the specificPROFINET device.
PROFINET communication services are described in the Communication function manual (http://support.automation.siemens.com/WW/view/en/59192925).
In the Network security (Page 36) section you can find components that are used to protect networks against hazards.
The Functions (Page 113) section describes the PROFINET IO functions.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

25

Description 2.1 Introduction to PROFINET

2.1.4

Implementation of the PROFINET device model in SIMATIC

Slots and modules
A PROFINET device can have a modular and compact structure. A modular PROFINET device consists of slots into which the modules are inserted. The modules have channels which are used to read and output process signals. A compact device has the same design and can include modules, however, it cannot be physically expanded, which means that no modules can be inserted.
This is illustrated by the following graphic.

Figure 2-7 Configuration of a PROFINET device

Number
   

Description Slot with bus interface Slot with module Subslot with submodule Channel

A module can contain multiple submodules.

PROFINET with STEP 7 V16

26

Function Manual, 11/2019, A5E03444486-AK

Description 2.1 Introduction to PROFINET Representation of PROFINET Device Model in the Device View of STEP 7 The following figure shows the representation of the PROFINET device model in the device view of STEP 7, based on the example of a distributed I/O system ET 200MP:
Figure 2-8 PROFINET device model in the device view of STEP 7

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

27

Description 2.2 Setting up PROFINET

2.2

Setting up PROFINET

Contents of this chapter The following chapter provides background information on building your communication network.  Overview of the most important passive network components: These are network components that forward a signal without the possibility of actively influencing it, for example, cables, connectors, etc.  Overview of the most important active network components: These are network components that actively affect a signal, for example switches, routers, etc.  Overview of the most common network structures (topologies).
Physical connections of industrial networks PROFINET devices can be networked in industrial systems in two different physical ways:  Connected line ­ By means of electrical pulses via copper cables ­ By means of optical pulses via fiber-optic cables  Wireless via wireless network using electromagnetic waves PROFINET devices and cabling technology in SIMATIC are suited for industrial use, as they are based on Fast Ethernet and Industrial Ethernet.  Fast Ethernet You can use Fast Ethernet to transfer data at a speed of 100 Mbps. This transmission technology uses the 100 Base-T standard for this.  Industrial Ethernet Structure of Ethernet in industrial environment. The biggest difference from standard Ethernet is the mechanical current carrying capacity and noise immunity of the individual components.

2.2.1

Active Network Components

Introduction

The following active network components are available for PROFINET:  Switch  Router

PROFINET with STEP 7 V16

28

Function Manual, 11/2019, A5E03444486-AK

Description 2.2 Setting up PROFINET

Switched Ethernet
PROFINET IO is based on switched Ethernet with full-duplex operation and a bandwidth of 100 Mbps. In this way, the network can be used much more efficiently through the simultaneous data transfer of several devices. The PROFINET IO frames are processed with high priority.

Switches

Switches are network components used to connect several terminal devices or network segments in a local network (LAN).
For the communication of a device with several other devices on PROFINET, the device is connected to the port of a switch. Other communication devices (including switches) can then be connected to the other ports of the switch. The connection between a communication device and the switch is a point-to-point connection.
A switch has the task of receiving and distributing frames. The switch "learns" the Ethernet address(es) of a connected PROFINET device or additional switches and only forwards those frames that are intended for the connected PROFINET device or the connected switch.

Switch variants Switches are available in two models:  Integrated into a PROFINET device For PROFINET devices with multiple ports (two or more), we are dealing with devices with an integrated switch (for example, CPU 1516-3 PN/DP).  As autonomous device (for example, switches of the SCALANCE product family)

Selection Guide for Switches
To use PROFINET with the RT class "RT", you can use any switch of "PROFINET Conformance Class A" or higher. All switches of the SCALANCE product family meet these requirements.
If you want to use PROFINET functions that provide an additional value, such as topology recognition, diagnostics, device exchange without exchangeable medium/programming device, you have to use a switch of the "PROFINET Conformance Class B" or higher.
To use PROFINET with the RT class "IRT", you must use a switch of "PROFINET Conformance Class C". With switches of the SCALANCE product family, watch out for the catalog feature "IRT PROFINET IO switch".
To select appropriate switches, we recommend the SIMATIC NET Selection Tool on the Internet (http://support.automation.siemens.com/WW/view/en/39134641).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

29

Description 2.2 Setting up PROFINET

Switches of the SCALANCE product family
Use the switches of the SCALANCE product family if you want to use the full scope of PROFINET. They are optimized for use in PROFINET IO.
In the SCALANCE X device family, you will find switches with electrical and optical ports and with a combination of both variants. SCALANCE X202-2IRT, for example, has two electrical ports and two optical ports and supports IRT communication.
Beginning with the SCALANCE X200, you can configure, diagnose and address switches of the SCALANCE X device series as PROFINET IO devices using STEP 7.

Router

A router connects separated network segments with each other (e.g. management level and control level). The volume of data volume must be coordinated with the services of the respective network segment. A router also separates two networks and acts as a mediator between both networks. It thus reduces the network load. Routing functionality is provided in the SCALANCE X device family, with SCALANCE X300 or higher.
Communication devices on different sides of a router can only communicate with one another if you have explicitly enabled communication between them via the router.
If you want to access manufacturing data directly from SAP, for example, use a router to connect your Industrial Ethernet in the factory with the Ethernet in your office.
Note
If devices need to communicate beyond the limits of a network, you must configure the router so that it allows this communication to take place.
Information on routing with STEP 7 is available in the function manual Communication (http://support.automation.siemens.com/WW/view/en/59192925).

2.2.2

Cabling technology

Cables for PROFINET
Electrical and optical cables are available for PROFINET. The type of cable depends on the data transfer requirements and on the ambient conditions.

PROFINET with STEP 7 V16

30

Function Manual, 11/2019, A5E03444486-AK

Description 2.2 Setting up PROFINET
Simple method for the prefabrication of twisted pair cables When you set up your PROFINET system, you can cut the twisted-pair cable to the required length on site, strip it with the stripping tool (for Industrial Ethernet), and fit the Industrial Ethernet Fast Connect RJ45 plugs using the cut-and-clamp method. For more information on installation, refer to the installation instructions in the "SIMATIC NET Industrial Ethernet Network Manual" (http://support.automation.siemens.com/WW/view/en/8763736).
Note A maximum of four plug-in pairs are allowed between two switches per Ethernet path.
Simple method for the prefabrication of fiber-optic cables The FastConnect FO cabling system is available for the easy, fast and error-free prefabrication of fiber-optic cables. The glass-fiber optic cable consists of:  FC FO Termination Kit for SC and BFOC plug (cleave tool, Kevlar scissors, buffer grip, fiber remains container)  FC BFOC Plug  FC SC Duplex plug  FO FC Standard cable  FO FC Trailing cable
Simple method for the prefabrication of POF and PCF cables The following special tools provide an easy and safe way to prefabricate POF / PCF cables and fit the SC RJ POF plugs:  POF cable Prefabrication case IE Termination Kit SC RJ POF plug  PCF cable Prefabrication case IE Termination Kit SC RJ PCF plug

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

31

Description 2.2 Setting up PROFINET

Overview of transmission media with PROFINET
The following table summarizes the technical specifications of a PROFINET interface with integrated switch or an external switch, and possible transmission media.

Table 2- 6 Transmission media with PROFINET

Physical properties Electrical Optical
Electromagnetic waves

Connection methods
RJ45 connector ISO 60603-7
SCRJ 45 ISO/IEC 61754-24
BFOC (Bayonet Fiber Optic Connector) and SC (Subscriber Connector) ISO/IEC 60874
-

Cable type / transmission medium
standard
100Base-TX 2x2 twisted, symmetrical and shielded copper cable, CAT 5 transmission requirement IEEE 802.3
100Base-FX POF fiber-optic cable (Polymer Optical Fiber, POF) 980/1000 µm (core diameter / external diameter) ISO/IEC 60793-2
Plastic-cladded glass fiber (Polymer Cladded Fiber, PCF) 200/230 µm (core diameter / external diameter) ISO/IEC 60793-2
Monomode glass fiber optic cable 10/125 µm (core diameter / external diameter) ISO/IEC 60793-2
Multimode glass fiber optic cable 50/125 µm and 62.5/125 µm (core diameter / external diameter) ISO/IEC 9314-4
IEEE 802.11 x

Transmission rate / mode 100 Mbps, full duplex
100 Mbps, full duplex
100 Mbps, full duplex
100 Mbps, full duplex
100 Mbps, full duplex
Depends on the extension used (a, g, h, etc.)

Max. segment length (between two devices) 100 m
50 m
100 m
26 km
3000 m
100 m

1 Applies for fiber-optic cables only

Advantages
Simple and cheap cable connection
Use when there are large differences in potential Insensitive towards electromagnetic radiation Low line attenuation Considerably longer segments possible1
Greater mobility Cost-effective networking to remote, difficult to access devices

PROFINET with STEP 7 V16

32

Function Manual, 11/2019, A5E03444486-AK

See also

Description 2.2 Setting up PROFINET
PROFINET interface (Page 23) Assembly Instructions for SIMATIC NET Industrial Ethernet (http://support.automation.siemens.com/WW/view/en/27069465) PROFINET Installation Guideline (http://www.profibus.com/nc/download/installationguide/downloads/profinet-installation-guide/display/)

2.2.3

Wireless design

2.2.3.1

Basics

What is Industrial Wireless LAN?
In addition to data communication in accordance with the IEEE 802.11 standard, the SIMATIC NET Industrial Wireless LAN provides a number of enhancements which offer significant benefits for industrial customers. IWLAN is particularly suitable for demanding industrial applications that require reliable wireless communication. This is supported by the following properties:
 Automatic roaming when the connection to Industrial Ethernet is interrupted (Forced Roaming)
 Cost savings generated by using a single wireless network for reliable operation of a process with both process-critical data (alarm message, for example) and non-critical communication (service and diagnostics, for example)
 Cost-effective connection to devices in remote environments that are difficult to access
 Predictable data traffic (deterministic) and defined response times
 Cyclical monitoring of the wireless link (link check)

Objectives and advantages of Industrial Wireless LAN
Wireless data transmission achieves the following objectives:
 Seamless integration of PROFINET devices into the existing bus system via the wireless interface
 Mobile use of PROFINET devices for different production-linked tasks
 Flexible configuration of the system components for fast development in accordance with customer requirements
 Maintenance costs are minimized by savings in cables

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

33

Description 2.2 Setting up PROFINET
Application examples  Communication with mobile subscribers (mobile controllers and devices, for example), conveyor lines, production belts, translation stages , and rotating machines  Wireless coupling of communication segments for fast commissioning or cost-effective networking where routing of wires is extremely expensive (e.g. public streets, railroad lines)  Stacker trucks, automated guided vehicle systems and suspended monorail systems The following graphic illustrates the many possible applications and configurations for SIMATIC device family wireless networks.

Figure 2-9 Application example for the use of Industrial Wireless LAN
Data transmission rate In Industrial Wireless LAN, gross data transmission rates of 11 Mbps or 54 Mbps without full duplex are permitted.

PROFINET with STEP 7 V16

34

Function Manual, 11/2019, A5E03444486-AK

Range

Description 2.2 Setting up PROFINET
With SCALANCE W (access points), wireless networks can be set up indoors and outdoors. Multiple access points can be installed to create large wireless networks in which mobile subscribers are transferred seamlessly from one access point to another (roaming). As an alternative to a wireless network, point-to-point connections of Industrial Ethernet segments can also be set up over large distances (several hundred meters). In this case, the range and characteristics of the RF field are determined by the antennas used.
Note Range The range can be considerably less, depending on spatial factors, the wireless standard used, the data rate, and the antennas on the send and receive sides.

2.2.3.2

Tips on assembly

Wireless networks, SCALANCE device family
With PROFINET, you can also set up wireless networks with Industrial Wireless Local Area Network (IWLAN) technology. We recommend implementing the SCALANCE W device line for this.

Update time in STEP 7
If you set up PROFINET with Industrial Wireless LAN, you may have to increase the update time for the wireless devices. The IWLAN interface provides lower performance than the wired data network: Several communication stations have to share the limited transmission bandwidth. For wired solutions, 100 Mbps is available for each communication device.
The Update time parameter can be found in the "Realtime settings" section in the Inspector window of IO devices in STEP 7.

Figure 2-10 Update time in STEP 7

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

35

Description 2.2 Setting up PROFINET
Additional information
More information about SCALANCE W Industrial Wireless LAN components can be found in the manual SIMATIC NET SCALANCE W-700 (http://support.automation.siemens.com/WW/view/en/42784493).
More information about wired data transmission can be found in the manual SIMATIC NET Twisted Pair and Fiber Optic Networks (http://support.automation.siemens.com/WW/view/en/8763736).
More information about wireless data transmission can be found in the manual Basics for configuring an industrial wireless LAN (http://support.automation.siemens.com/WW/view/en/9975764).
You should also read the PROFINET installation guideline of the PROFIBUS User Organization on the Internet (http://www.profibus.com/nc/download/installationguide/downloads/profinet-installation-guide/display/). Various documents that assist with the setting up of your PROFINET automation solution are available here:
 PROFINET planning guideline
 PROFINET installation guideline
 PROFINET commissioning guideline
 Additional documents for setup of PROFINET

2.2.4

Network security

2.2.4.1

Basics

Introduction

The topic of data security and access protection (Security) has become increasingly important in the industrial environment. The increased networking of entire industrial systems, vertical integration and networking of levels within a company and new techniques such as remote maintenance all result in higher requirements for protecting the industrial plant.
Data security solutions for office environments cannot simply be transferred one-to-one to industrial applications to protect against manipulation in sensitive systems and production networks.

PROFINET with STEP 7 V16

36

Function Manual, 11/2019, A5E03444486-AK

Description 2.2 Setting up PROFINET

Requirements

Additional security requirements arise from the specific communication requirements in the industrial environment (real-time communication, for example):  Protection against interaction between automated cells  Protection of network segments  Protection against faulty and unauthorized access  Scalability of network security  Must not influence the network structure

Definition of security Generic term for all the measures taken to protect against:  Loss of confidentiality due to unauthorized access to data  Loss of integrity due to manipulation of data  Loss of availability due to destruction of data, for example, through faulty configuration and denial-of-service attacks

Threats

Threats can arise from external and internal manipulation. The loss of data security is not always caused by intentional actions. Internal threats can arise due to:  Technical errors  Operator errors  Defective programs Added to these internal threats there are also external ones. The external threats are not really any different to the known threats in the office environment:  Software viruses and worms  Trojans  Man-in-the-middle attacks  Password Phishing  Denial of Service

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

37

Description 2.2 Setting up PROFINET

Protective measures
The most important precautions to prevent manipulation and loss of data security in the industrial environment are:
 Physical access protection to the devices
 Filtering and control of data traffic by means of firewall
 A virtual private network (VPN) is used to exchange private data on a public network (Internet, for example).
The most common VPN technology is IPsec. IPsec (Internet Protocol Security) is a collection of security protocols that are used as the basis for the IP protocol at the mediation level and allow a secured communication via potentially unsecure IP networks.
 Segmenting in protected automation cells
This concept has the aim of protecting the lower-level network devices by means of security modules. A group of protected devices forms a protected automation cell.
 Authentication (identification) of the devices
The security modules identify each other over a safe (encrypted) channel using authentication procedures. It is therefore impossible for unauthorized parties to access a protected segment.
 Encrypting the data traffic
The confidentiality of data is ensured by encrypting the data traffic. Each security module is given a VPN certificate which includes the encryption key.

2.2.4.2

Network components and software

Protection against unauthorized access
The following solutions may be used to connect industrial networks to the intranet and Internet to protect against internal and external threats:
 Communication processors, such as the SIMATIC CP 1543-1
 SCALANCE X-300 and SCALANCE S - the data security components of the SIMATIC NET product family
 SOFTNET security client for use on PCs

Features

Both of these products have a wide variety of features, such as:  Easy integration of existing networks without configuration, with integrated firewall.  Segmenting in protected automation cells  Authentication (identification) of the devices  Encrypting the data traffic

PROFINET with STEP 7 V16

38

Function Manual, 11/2019, A5E03444486-AK

Description 2.2 Setting up PROFINET

2.2.4.3

Application example

Data security at the office and production levels
The following graphic contains an application example with protected areas at different levels of the company created using SCALANCE S and the security client. The protected areas are highlighted in light gray.

Figure 2-11 Network configuration with the SCALANCE S security module and the SOFTNET security client

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

39

Description 2.2 Setting up PROFINET
Additional information Additional information on the configuration of a security standard in PROFINET, is available:  In the PROFINET security guideline. These guidelines can be found on the homepage of the PROFIBUS user organization on the Internet (http://www.profinet.com).  In the Industrial Ethernet Security (http://support.automation.siemens.com/WW/view/en/56577508) manual  In the SCALANCE S and SOFTNET Security Client (http://support.automation.siemens.com/WW/view/en/21718449) manual You can find general information on industrial security concepts, functions and news on the Industrial Security website (http://www.siemens.com/industrialsecurity).

PROFINET with STEP 7 V16

40

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing

3

To set up an automation system, you will need to configure, assign parameters and interlink the individual hardware components. In STEP 7, the work needed for this is undertaken in the device, topology and network view.

Configuring

"Configuring" is understood to mean arranging, setting and networking devices and modules within the device, topology or network view.
An I/O address is automatically assigned to each module. The I/O addresses can be subsequently modified.
The CPU compares the configuration preset in STEP 7 with the actual current configuration of the system. In this way, potential errors can be detected and reported straight away.
The exact procedure for configuring devices is described in detail in the STEP 7 online help.

Assigning parameters
"Assigning parameters" is understood to mean setting the properties of the components used. The settings for the hardware components and for data communication are configured at the same time.
In STEP 7, you can "assign parameters" for the following settings PROFINET:
 Device names and IP address parameters
 Port interconnection and topology
 Module properties / parameters
The parameters are loaded into the CPU and transferred to the corresponding modules when the CPU starts up. Modules are easy to replace from spare parts, as the parameters assigned for the SIMATIC CPUs are automatically loaded into the new module at each startup.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

41

Parameter assignment/addressing 3.1 Assigning an IO device to an IO controller
Adjusting the hardware to the project requirements You need to configure hardware if you want to set up, expand or change an automation project. To do this, add hardware components to your structure, link these with existing components, and adapt the hardware properties to the tasks. The properties of the automation systems and modules are preset such that in many cases they do not have to be assigned parameters again. Parameter assignment is however needed in the following cases:  You want to change the default parameter settings of a module.  You want to use special functions.  You want to configure communication connections.

3.1

Assigning an IO device to an IO controller

PROFINET IO System
A PROFINET IO system is comprised of a PROFINET IO controller and its assigned PROFINET IO devices. After these devices have been placed in the network or topology view, STEP 7 assigns default values for them. Initially, you only have to worry about the assignment of IO devices to an IO controller.

Requirement

 You are in the network view of STEP 7.  A CPU has been placed (e.g., CPU 1516-3 PN/DP).  An IO device has been placed (e.g., IM 155-6 PN ST).

Procedure

To assign IO devices to an IO controller, proceed as follows:
1. Place the pointer of the mouse over the interface of the IO device.
2. Press and hold down the left mouse button.
3. Move the pointer.
The pointer now uses the networking symbol to indicate "Networking" mode. At the same time, you see the lock symbol on the pointer. The lock symbol disappears only when the pointer is over a valid target position.
4. Now move the pointer onto the interface of the IO controller. You can keep the left mouse button pressed or release it when performing this action.

PROFINET with STEP 7 V16

42

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.1 Assigning an IO device to an IO controller
5. Now release the left mouse button or press it again (depending on your previous action).

Figure 3-1 Assigning an IO device to an IO controller in the network view of STEP 7

Result

You have assigned an IO device to an IO controller.

Checking the assignment
You can find an overview of the communication relationships in the "IO communication" tab in the tabular area of the network view. This table is context-sensitive for selection in the graphic area:
 Selection of the interface shows the I/O communication of the respective interface.
 Selection of the CPU shows all I/O communication of the CPU (including PROFIBUS).
 Selection of the station (as in the above figure) interface shows the I/O communication of the complete station.

Information on S7-1500R/H
You can find the procedure for assigning an IO device with system redundancy S2 to the redundant S7-1500R/H system in section Assigning IO device to the redundant S7-1500R/H system (Page 287).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

43

Parameter assignment/addressing 3.2 Device name and IP address

3.2

Device name and IP address

Introduction

In order that the PROFINET device can be addressed as node on PROFINET, the following are required:
 A unique PROFINET device name
 A unique IP address in the relevant IP subnet
STEP 7 assigns a device name during the arrangement of a PROFINET device in the hardware and network editor. The IP addresses are typically assigned automatically by STEP 7 and assigned to the devices based on the device name.
You can change the name and IP address manually.

In STEP 7

You can find the device name and the IP address under "Ethernet addresses" in the properties of the PROFINET interface in the Inspector window.

Figure 3-2 Device name and IP address in STEP 7
The function, the assignment and the changing of the device name and the IP address are described in the following sections.

PROFINET with STEP 7 V16

44

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address

3.2.1

Device name

Device names

Before an IO device can be addressed by an IO controller, it must have a device name. In PROFINET, this method was selected because it is simpler to work with names than with complex IP addresses.
The assignment of a device name for a specific IO device can be compared to setting the PROFIBUS address of a DP slave.
In delivery state, an IO device does not have a device name. A device name must first be assigned before an IO device can be addressed by an IO controller, for example, for transferring configuration data during startup or for exchanging user data in cyclic mode. You assign the device names to the IO device, for example, with the programming device / PC.
IO devices that have a slot for removable storage media provide the option of writing the device name directly to the removable storage medium in the programming device.
When a device is replaced by a device without removable medium, the IO controller assigns the device name based on topological configuration (see section Configuring topology (Page 64)).

Structured device names
The device name is automatically assigned by default for PROFINET devices S7-1200, S7-1500, ET 200MP, ET 200SP and ET 200AL when these are configured in STEP 7. The device names are formed from the name of the CPU or the name of the interface module. For devices with several PROFINET interfaces, the name of the interface is enhanced, for example, "plc_1.profinet-interface_2" or "io-device_1".
You can structure the device names using DNS conventions.
These conventions are defined by "Internationalizing Domain Names in Applications (IDNA). According to this, device names are written in lower case.
The "Domain Name System" (DNS) is a distributed database (http://iana.org), which manages the name space on the Internet. To structure the names, you use the dot ("."). The hierarchy is shown in ascending order from left to right.
...<Subdomain name>.<Domain name>.<Top-level domain name>
If the name is not DNS-compliant, the name will be converted by STEP 7, for example, to "plcxb1.profinet-schnittstellexb2022c" or "io-devicexb15b32".

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

45

Parameter assignment/addressing 3.2 Device name and IP address
Device number In addition to the device name, STEP 7 also assigns a device number beginning with "1" when an IO device is allocated. The device number is located in the Inspector window in the properties of the PROFINET interface, under "Ethernet addresses" in the area PROFINET.

Figure 3-3 Device number
This device number can be used to identify an IO device in the user program (for example, with the instruction "LOG2GEO").

3.2.2

IP address

IP address

To allow a PROFINET device to be addressed as a device on Industrial Ethernet, this device also requires an IP address that is unique within the network. The IP addresses are typically assigned automatically by STEP 7 and assigned to the devices based on the device name. If it is a standalone network, you can apply the IP address and subnet mask suggested by STEP 7. If the network is part of an existing Ethernet company network, obtain the information from your network administrator.

Configuration of the IP address
In accordance with Internet Protocol version 4 (IPv4), the IP address is made up of four decimal numbers with a range of values from 0 through 255. The decimal numbers are separated by periods (for example, 192.162.0.0).
The IP address consists of the following:
 Address of the network
 Address of the device (PROFINET interface of the IO controller/IO device)

PROFINET with STEP 7 V16

46

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address

Generating IP addresses
You assign the IP addresses of the IO devices in STEP 7. The IO devices receive their IP addresses during parameter assignment by the IO controller. In addition, for some IO devices (e.g., SCALANCE X, S7-300 CPs), it is possible not to obtain the IP address during startup of the IO controller, but rather to set it beforehand on the device (see Permitting changes to the device name and IP address directly on the device (Page 57)).
The IP addresses of the IO devices always have the same subnet mask as the IO controller and are assigned from the IP address of the IO controller in ascending order. The IP address can be changed manually, if necessary.
For devices with several PROFINET interfaces (e.g., CPU 1516-3 PN/DP), the IP addresses must be located in different subnets.

Default router

The default router is used when data has to be forwarded via TCP/IP or UDP to a partner located outside the local network.
In STEP 7, the default router is named Router. You can activate the use of a router in the Inspector window of a CPU with the "Use router" check box in the "IP protocol" section. STEP 7 assigns the local IP address to the default router by default.
The router address that is set on the PROFINET interface of the IO controller is automatically transferred for the configured IO devices.

Subnet mask

The bits set in the subnet mask decide the part of the IP address that contains the address of the network.
In general, the following applies:
 The network address is obtained from the AND operation of the IP address and subnet mask.
 The device address is obtained from the AND NOT operation of the IP address and subnet mask.

Example of the subnet mask Subnet mask: 255.255.0.0 (decimal) = 11111111.11111111.00000000.00000000 (binary)
IP address: 192.168.0.2 (decimal) = 11000000.10101000.00000000.00000010 (binary)
Meaning: The first 2 bytes of the IP address determine the network - i.e., 192.168. The last two bytes address the device, i.e. 0.2.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

47

Parameter assignment/addressing 3.2 Device name and IP address

Relation between IP address and default subnet mask
An agreement exists relating to the assignment of IP address ranges and so-called "Default subnet masks". The first decimal number (from the left) in the IP address determines the structure of the default subnet mask with respect to the number of "1" values (binary) as follows:

IP address (decimal) 0 to 126 128 to 191 192 to 223

IP address (binary) 0xxxxxxx.xxxxxxxx.... 10xxxxxx.xxxxxxxx... 110xxxxx.xxxxxxxx...

Address class A B C

Default subnet mask 255.0.0.0 255.255.0.0 255.255.255.0

Note Range of values for the first decimal point
A value between 224 and 255 is also possible for the first decimal number of the IP address (address class D etc.). However, this is not recommended because there is no address check for these values.

Masking other subnets
You can use the subnet mask to add further structures and form "private" subnets for a subnet that is assigned one of the address classes A, B or C. This is done by setting other, less significant bits of the subnet mask to "1". For each bit set to "1", the number of "private" networks doubles and the number of devices they contain is halved. Externally, the network continues to function as an individual network.
Example:
You have a subnet of address class B (for example, IP address 129.80.xxx.xxx) and change the default subnet mask as follows:

Masks Default subnet mask
Subnet mask

Decimal 255.255.0.0
255.255.128.0

Binary
11111111.11111111.00000000. 00000000
11111111.11111111.10000000. 00000000

Result:

All devices with addresses from 129.80.001.000 to 129.80.127.254 are located in a subnet, all devices with addresses from 129.80.128.000 to 129.80.255.254 in a different subnet.

Reading out an IP address in the user program
You can read out the IP address of a PROFINET device in the user program of a S7-1500 CPU. You can find information in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/82947835).

PROFINET with STEP 7 V16

48

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address

3.2.3

Assigning a device name and IP address

Assigning an IP address and subnet mask for an IO controller for the first time
You have the following options:
 Using a programming device or PC:
Connect your programming device/PC to the same network as the relevant PROFINET device. The interface of the programming device/PC must be set to TCP/IP mode. During the download, first of all display all available devices via the "Accessible devices" download dialog box. Select the target device via its MAC address and then assign its IP address before you download the hardware configuration including the configured IP address (IP address is saved retentively).
 Using the display of a S7-1500 CPU:
The S7-1500 CPUs have a front cover with a display and operating keys. You can use this display to assign or change the IP address. To set the IP address, navigate on the display via the menu items "Settings" > "Addresses" > "X1 (IE/PN)" > "Parameters".
 Using a memory card:
If your PROFINET device is equipped for a memory card (Micro Memory Card/SIMATIC memory card), plug this into your programming device/PC and save the hardware configuration together with the configured IP address on this memory card. Then plug the memory card into the PROFINET device. Once inserted, the PROFINET device automatically applies the IP address.
If you have saved a configuration to the memory card with the "IP address is set directly at the device" option, you must assign the IP address using a different method after inserting the memory card (see section Permitting changes to the device name and IP address directly on the device (Page 57)).

Assigning device names and IP address for "Device replacement without exchangeable medium/programming device"
For devices without exchangeable medium (e.g., ET 200MP, ET 200SP) and devices that support "Device replacement without exchangeable medium/PG" (e.g., ET 200S), the IO controller can identify the device without name from the neighbor relationships specified by the set topology and from actual neighbor relationships determined by the real PROFINET devices. The IO controller then assigns the PROFINET device the configured name and incorporates the PROFINET device in the user data traffic. (See also Device replacement without exchangeable medium (Page 225)).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

49

Parameter assignment/addressing 3.2 Device name and IP address
IP address assignment when replacing IO devices with exchangeable mediumPG The following is contained on the memory card of the programmable logic controller:  On the IO controller: Device name and IP address  On the IO device: Device name When you remove the memory card from a PROFINET device and insert it in another PROFINET device with exchangeable medium (e.g., ET 200S), device-specific information and the device name are loaded to the device. If an IO device has to be replaced in its entirety due to a device or module defect, the IO controller automatically assigns parameters and configures the replaced device or module. The cyclic exchange of user data is then restarted. In addition to this, before the power ON of the IO device, the memory card with the valid name must be removed from the faulty IO device and added to the replaced device. In the event of an error in the PROFINET device, the memory card allows you to replace a module without a programming device/PC. You can also transfer the device data directly from the programming device/PC to the memory card.
Procedure: Changing the device name using properties of the PROFINET interface You can change the PROFINET name via the properties of the PROFINET interface. This is useful when the PROFINET device has not received its previous name from the automatic generation, for example, in the case of a migration. 1. In the network or device view of the STEP 7 hardware and network editor, select the PROFINET interface of a PROFINET device. 2. In the Inspector window, go to "Ethernet addresses" in the PROFINET area. 3. Clear the "Generate PROFINET device name automatically" check box. 4. Enter the new PROFINET device name in the relevant field.
Figure 3-4 Changing the device name of a PROFINET device in the properties

PROFINET with STEP 7 V16

50

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address
Alternative procedure: Changing the device name of a PROFINET device in the network view Requirement: The "Generate PROFINET device name automatically" check box is selected. 1. In STEP 7, select the "Network overview" tab in the tabular area of the network view. 2. In the "Device" column, overwrite the name in the row of the relevant PROFINET device. The name is also changed accordingly in the graphic area of the network view.

Figure 3-5 Changing the device name of a PROFINET device in STEP 7
Procedure: Changing the IP address To change the IP address, follow these steps: 1. In the network or device view of the STEP 7 hardware and network editor, select the PROFINET interface of a PROFINET device. 2. In the Inspector window, go to "Ethernet addresses" in the "IP protocol" area.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

51

Parameter assignment/addressing 3.2 Device name and IP address
3. Check that the option "Set IP address in the project" is selected. 4. Enter the new IP address in the relevant field.
Figure 3-6 Changing the IP address of a PROFINET device in STEP 7
Downloading configured device name to IO device To load the configured device names to the IO device, follow these steps: 1. Connect your programming device/PC to the same network as the relevant IO device. The interface of the programming device/PC must be set to TCP/IP mode. 2. In STEP 7, select the relevant IO device in the "Accessible devices" dialog based on the MAC address. 3. Click "Assign name" to download the configured device name to the IO device. The IO controller recognizes the IO device automatically by its device name and automatically assigns the configured IP address to it.

PROFINET with STEP 7 V16

52

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address
Identification of the PROFINET device
To clearly identify a device from several identical devices in a control cabinet, for example, you can flash the link LED of the PROFINET device.
To do this, select the menu command Online > Accessible devices... in STEP 7. In the "Accessible devices" dialog, set the "PG/PC" interface by means of which you are connected to the devices. STEP 7 now automatically searches for the accessible devices and displays them in the "Accessible devices in target subnet" table. Select the desired PROFINET device and click on the "Flash LED" button. The PROFINET device is identified based on its MAC address.

Figure 3-7 "Accessible devices" dialog
Using an different way to assign IP addresses for IO devices Various IO devices, for example, SCALANCE X,S7-300 CPs, support the option of not having the IP addresses assigned by the IO controller during startup. In this case, the IP address is assigned in a different way. For additional information, refer to the manual of the respective PROFINET device of the SIMATIC device family.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

53

Parameter assignment/addressing 3.2 Device name and IP address
Additional information You can find a detailed description of the operation and functions of the display of the S7-1500 CPUs in the system manual S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

3.2.4

Assign device name via communication table

Introduction

You can assign the device names of PROFINET IO devices configured offline to the devices online. You can do this in the table area of the network view in the table "I/O communication". You can also assign the device names to several devices at the same time.

"Online assignment" tab
In the I/O communication table, you will find the tabs "Offline configuration" and "Online assignment". In the "Online assignment" tab, you can assign the PROFINET device names that were assigned offline to the corresponding IO devices online. To do this, use the buttons "Check devices" and "Assign now".

Figure 3-8 Assign device name via communication table
The objects displayed in the table of the "Online assignment" tab depend on the setting of the filter function. If only selected objects should be displayed, only objects of the corresponding context are displayed depending on the selection in the network view.
 PROFINET subnet: All connected devices and their PROFINET interfaces
 IO system All devices involved and their PROFINET interfaces
 Sync domain: All devices involved and their PROFINET interfaces
 Devices: The device and any existing PROFINET interfaces
 Other subnets or interfaces such as MPI or PROFIBUS are not displayed
If the display is set for all devices using the filter function, all devices are displayed that have a PROFINET interface, regardless of whether they are connected via a PROFINET subnet or are part of an IO system. Devices without a PROFINET interface, for example only with a DP or MPI interface, are not displayed.

PROFINET with STEP 7 V16

54

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address

General procedure
To assign PROFINET device names, you must first detect the IO devices available online. With this procedure, it matters whether the MAC addresses are known or unknown. This results in a general procedure in two steps:
1. Detecting the IO devices available online
2. Assigning configured PROFINET device names to the IO devices available online

Requirements

 You are in the network view.  There is an online connection to the devices.

Procedure (step 1) To detect IO devices available online from the I/O communication table, follow these steps: 1. Optional: Entered known MAC addresses in the "MAC address" column. After every valid entry, the check box under "Assign device" is selected for the relevant row.
Note You can enter, insert or import the MAC address in different formats. The correct format is automatically entered in the cell. The following entries are supported and then converted to the required format: · "08:00:06:BA:1F:20" · "08 00 06 BA 1F 20" · "080006BA1F20" The formats used in the example are automatically converted to "08-00-06-BA-1F-20".
2. Click "Check devices" to start the check of the IO devices available online. 3. Set the PG/PC interface in the dialog window and click "Start".

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

55

Parameter assignment/addressing 3.2 Device name and IP address

Intermediate result
After the check, the result is displayed for every device in the table. Online data found is automatically entered in the table and the check box "Assign device" is set to "checked" in the rows in which a MAC address was entered or found online. The result of the check is shown as an icon in the "Status" column.

Status

Meaning Matching device and compatible type Matching device and incompatible type Non-matching device Device cannot be reached (with a known MAC address) Ready for assignment (with known MAC address)

Note The icon "Ready for assignment" appears when a MAC address exists and matching device data was found, but no PROFINET device name was found online.
You can update the data of the detected devices again via their MAC addresses at any time. To do this, you specify the MAC address and the status of the device is displayed immediately without having to re-detect the device.

Procedure (step 2) All PROFINET device names configured offline will be assigned to the devices available online in a bulk operation. 1. Click the "Assign now" button.
Note The bulk operation cannot be reversed. A message to this effect appears in a dialog window.
2. Click "Start" in the dialog window to start the assignment of the PROFINET device names.

Result

The PROFINET device names configured offline will be assigned to the devices available online. This relates to devices in whose row the check box under "Assign device" is selected, that have a MAC address and have the status "Ready for assignment".

PROFINET with STEP 7 V16

56

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.2 Device name and IP address
Importing and exporting data Using the import and export button, you can import or export the data of the I/O communication table for the online assignment:  When you export, the currently displayed data of the table is exported to a CSV file. Using the filter function of the table, you can select which data will be exported.  When you import, the data of the CSV file is written to the table. If there are conflicts with values already existing in the table, you can decide whether the data should be overwritten or whether the import needs to be stopped.

3.2.5

Permitting changes to the device name and IP address directly on the device

Introduction

Machines are frequently commissioned on site or integrated into the existing infrastructure without STEP 7. You can find typical applications in all areas of the series machine building. Alternative means for assigning the IP address are available for this.

Procedure

1. In the network or device view of the STEP 7 Hardware and Network editor, select the PROFINET interface of an IO controller.
2. Navigate in the Inspector window to "Ethernet addresses".

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

57

Parameter assignment/addressing 3.2 Device name and IP address
3. Select the "IP address is set directly at the device" option in the "IP protocol" area. 4. In the "PROFINET" area, select the " PROFINET device name is set directly at the
device" check box.

Figure 3-9 Setting the device name and IP address on the device
Note Gateway When you operate a PROFINET device with the option "Allow adaption of the device name/IP address directly on device", you cannot use this PROFINET device as gateway for S7 routing.
Options for assigning IP addresses and device names Apart from the known address and device name assignment in the "Ethernet addresses" section of the Inspector window, there are other ways in which the IP address and name can be assigned:  Assigning by means of the user program with the instruction "T_CONFIG"  Assignment when downloading the configuration to the target system via the "Extended download to device" dialog box.  Assignment via the Primary Setup Tool (PST)  Assignment via the PRONETA ("PROFINET network analysis") commissioning and diagnostics tool  Assignment via the SIMATIC Automation Tool

PROFINET with STEP 7 V16

58

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.3 Configuring an IO device through hardware detection
Additional information For information on the "T_CONFIG" instruction and on downloading to the target system, refer to the STEP 7 online help. A free Download (http://support.automation.siemens.com/WW/view/en/14929629) of the Primary Setup Tool (PST) can be found on the Internet. On this Internet page, you will also find a list of devices for which the PST is approved.

3.3

Configuring an IO device through hardware detection

Introduction

As of STEP 7 V15, you have the possibility to detect a real existing IO device and to import it into your project.
You find the IO device in STEP 7 through the "Hardware detection" function. A detected device can be imported into your project. STEP 7 inserts the IO device with all the modules and submodules.

Requirements

 STEP 7 (TIA Portal) as of V15  It must be possible to technically access the IO device via IP

Procedure

To detect one or more existing IO devices in STEP 7 and add them to the project, follow these steps:
1. In STEP 7, navigate to "Online" > "Hardware detection".
2. Click "PROFINET devices from network...". STEP 7 opens the "Hardware detection of PROFINET devices" window.
3. Select the interface of your programming device at "PG/PC interface:".
4. Click "Start search". STEP 7 begins with the hardware detection. When the hardware detection is completed, STEP 7 displays the detected IO devices.
5. Select the IO devices that you want to add to the project by clicking the corresponding check box before the IO device.
6. Click "Add devices". After a brief moment, a window is opens to report about the success or failure of the hardware detection.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

59

Parameter assignment/addressing 3.4 Specifying the router for a PROFINET IO device
Result of the hardware detection If the hardware detection is successful, STEP 7 inserts the IO device with all the modules and submodules into the project.
An IO device configured via hardware detection responds as follows:
 Modules configured through the "Hardware detection" are configured as if they have been inserted from the catalog.
 MAC address: STEP 7 imports the MAC address of the detected IO device into the project.
 IP settings:
­ If the detected IO device already has an IP address, STEP 7 imports the IP address into the project.
­ If the detected IO device does not have an IP address, STEP 7 automatically assigns an IP address in the project.
PROFINET device name:
­ If the detected IO device already has a PROFINET device name, STEP 7 imports the PROFINET device name into the project.
­ If the detected IO device does not have a PROFINET device name, STEP 7 automatically assigns a PROFINET device name in the project.
 IO devices configured through "Hardware detection" have neither an IP subnet nor an IO controller assigned.

3.4

Specifying the router for a PROFINET IO device

Introduction

You always require a router (also referred to as a "Standard Gateway") when the PROFINET device has to communicate with a node whose IP addresses lie outside the own IP subnet. If the PROFINET device sends an IP packet to an IP address outside its own IP subnet, the IP packet first goes to the configured router. The router in turn checks the IP address. If this lies outside its own subnet, the router passes the IP packet on to the next router. The IP packet is routed to the next router until it has reached the target address.
Like all S7-1500 CPUs, S7-1500 CPUs with several PROFINET interfaces provide the possibility to configure the IP address of a router. However, there is the restriction that you can only enter the IP address of a router at a PROFINET interface.
You cannot configure an IP address of a router for the other PROFINET interfaces of the CPU. IO devices that are connected to this PROFINET interface adopt this setting. Up to and including STEP 7 V14 SP1, these IO devices did not have any possibility to reach devices in a different IP subnet.

PROFINET with STEP 7 V16

60

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.4 Specifying the router for a PROFINET IO device
As of STEP 7 V15, you have the possibility to assign the address of a router for an IO device independent of the setting of the IO controller. You can now, for example, set a router address at the IO device in the following cases as well:  You have not set an IP address of a router for the interface of the associated IO
controller.  You have already set a router address for a different interface in the CPU.

 Router R1 configured at PROFINET X1  If a router is configured at X1, you cannot configure a router at X2.  Because a router is configured at X1, the IO device adopts the IP address of the router R1.
The IO device can be reached from a different IP subnet.
 As of STEP 7 V15, you set the IP address of the router R2 at the IO device irrespective of
the setting at the interface X2. The IO device can be reached from a different IP subnet. Figure 3-10 Specifying the router for an IO device
Further information about the "User router" setting
You have the possibility to configure the use of a router including IP address of the router in the "IP protocol" section of the settings for the PROFINET interface (Ethernet addresses).
Rules
Observe the following rules if you want to configure a router for the PROFINET interface of an IO controller:
 A PROFINET IO device supports exactly one router, irrespective of the number of interfaces.
 You can configure a router for exactly one PROFINET interface. All IO devices that are assigned to the PROFINET interface adopt the configured router from the IO controller.
 You cannot configure a router for the further PROFINET interfaces of the CPU. The further PROFINET interfaces take on the IP address "0.0.0.0" as the router and pass it on to their IO devices.
As of STEP 7 V15, you can configure the use of a router for an IO device. This allows the IO device to communicate with a node outside its own IP subnet, irrespective of the setting of the PROFINET interface of the IO controller.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

61

Parameter assignment/addressing 3.4 Specifying the router for a PROFINET IO device
Configuration example: Configuring a router for an IO device The following example shows a configuration in which you configure a router at the IO device so that the IO device reaches IP addresses in the higher-level network.

Figure 3-11 Configuration example: Configuring a router for an IO device
You have a CPU 1516-3PN/DP. The two PROFINET interfaces X1 and X2 of the CPU work in the "IO controller" operating mode. The PROFINET interface X1 is connected with the subnet "Production line 1". PROFINET interface X2 is connected with the subnet "Production line 2". The two subnets "Production line 1" and "Production line 2" are each connected via a router with the higher-level network "Superior line".
For PROFINET X1, you configure the router "Router 1" with the IP address 192.168.1.100.
The IO device (ET 200SP) in the "Production line 1" subnet adopts the router from the IO controller.
You cannot configure a router for the PROFINET interface X2 because you have already configured a router for the PROFINET interface X1 of the CPU.
No router is transferred by the PROFINET interface X2 to the IO device in the subnet "Production line 2".
In order for the IO device in the subnet "Production line 2" to reach nodes in the higher-level "Superior line", configure the router "Router 2" with the IP address 192.168.2.100 for the IO device.

PROFINET with STEP 7 V16

62

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.4 Specifying the router for a PROFINET IO device
Configuring the router for the IO controller Requirements: You use the "Set IP address in the project" option for the PROFINET interface. Follow these steps to configure a router for the IO controller in STEP 7: 1. In the network view of STEP 7, select the PROFINET interface of the IO controller. 2. In the Inspector window, navigate to "Properties" > "General" > "Ethernet addresses". 3. Select the "Use router" check box in the "IP protocol" field. 4. Enter the IP address of the router at "Router address".
Configuring a router for an IO device Requirements:  STEP 7 as of V15  CPU 1500 as of firmware version V2.5  IO device is assigned to the PROFINET interface of an IO controller. The PROFINET interface of the IO controller uses the "Set IP address in the project" option. Follow these steps to configure a router for the IO device in STEP 7: 1. In the network view of STEP 7, select the PROFINET interface of the IO device. 2. In the Inspector window, navigate to "Properties" > "General" > "Ethernet addresses". 3. Clear the "Synchronize router settings with IO controller" check box. 4. Select the "Use router" check box. 5. Enter the IP address of the router at "Router address".

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

63

Parameter assignment/addressing 3.5 Configuring topology

3.5

Configuring topology

Introduction

If an IO device is assigned to an IO controller, this does not yet specify how the ports are connected to each other.
A port interconnection is not required to use RT, but it provides the following advantages:
 A set topology is assigned with the port interconnection. Based on an online-offline comparison, it is possible to conduct a set-actual comparison with all devices that support this function.
 The "Device replacement without exchangeable medium" function can be used.
A port interconnection is an essential requirement for using IRT.
An overview of various options for setting up a PROFINET network is given below.

Line
Star Tree Ring

All the communication devices are connected in a linear bus topology. In PROFINET, the linear bus topology is implemented with switches that are already integrated into the PROFINET devices. Therefore, the linear bus topology at PROFINET is merely a special form of tree / star topology. If a link element (switch, for example) fails, communication across the failed link element is no longer possible. The network is then divided into 2 subsegments. Linear bus topology structures require the least cabling.
If you connect communication devices to a switch with more than two PROFINET ports, you automatically create a star network topology. If an individual PROFINET device fails, this does not automatically lead to failure of the entire network, in contrast to other structures. It is only if a switch fails that part of the communication network will fail as well
If you interconnect several star structures, you obtain a tree network topology.
In order to increase the availability of a network, use ring structures. In principle, a linear bus topology is connected to a ring through a so-called redundancy manager. The task of the redundancy manager is managed by an external switch SCALANCE X, a CPU that supports the Media Redundancy Protocol MRP (e.g., CPU 1516-3 PN/DP) or a CP (e.g., CP 343-1 Lean). If there is a break in the network, the redundancy manager ensures that the data is redirected over an alternative network connection in the ring.

PROFINET with STEP 7 V16

64

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.5 Configuring topology
Example for topology The following example shows a combination of different topologies.

Number
         

Meaning S7-1500 as IO controller S7-300 as IO controller Industrial WLAN with SCALANCE W SCALANCE X 307-3 with seven electrical and three optical ports ET 200SP with integrated 2-port switch SCALANCE X 204 with four electrical ports PROFINET/Industrial Ethernet IE/PB-Link PN IO PROFIBUS DP ET 200S with two optical ports Star topology

Linear bus topology

The combination of topology forms results in a tree topology.

Figure 3-12 Combined topology

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

65

Parameter assignment/addressing 3.5 Configuring topology
Additional information Observe the PROFINET Installation Guideline (http://www.profibus.com/nc/download/installation-guide/downloads/profinet-installationguide/display/) of the PROFIBUS User Organization when planning your PROFINET topology.
For more detailed information, see the SIMATIC NET Twisted Pair and Fiber Optic Networks (http://support.automation.siemens.com/WW/view/en/8763736) manual.
You can find basic information in the Communication with SIMATIC (http://support.automation.siemens.com/WW/view/en/1254686) manual.

3.5.1

Topology view in STEP 7

Introduction

The topology view is one of three working areas of the hardware and network editor. You undertake the following tasks here:  Displaying the Ethernet topology  Configuring the Ethernet topology  Identify and minimize differences between the set and actual topology (online) The topology view in STEP 7 consists of a graphic area and a table area.

PROFINET with STEP 7 V16

66

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.5 Configuring topology

Graphic area

The graphic area of the topology view displays PROFINET devices with their appropriate ports and port connections. Here you can add more PROFINET devices.
The following figure shows the graphic area of the topology view.



Selector: Device view/Network view/Topology view



Toolbar



Graphic area of the topology view



Overview navigation



Selector for the table area of the topology view

Figure 3-13 Graphic area of the topology view

Overview navigation
Click in the overview navigation to obtain an overview of the created objects in the graphic area. By holding down the mouse button, you can quickly navigate to the desired objects and display them in the graphic area.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

67

Parameter assignment/addressing 3.5 Configuring topology

Table area

 Topology overview: This displays the Ethernet or PROFINET devices with their appropriate ports and port connections in a table. This table corresponds to the network overview table in the network view.
 Topology comparison: Here you can import devices and port interconnections automatically through offline/online comparison or extended Offline/Online comparison into STEP 7.



Selector for the graphic area of the topology view



Selector: Device view/Network view/Topology view



Selector: Topology overview/Topology comparison



Table area of the topology view

Figure 3-14 Table area of the topology view

PROFINET with STEP 7 V16

68

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.5 Configuring topology

3.5.2

Interconnecting ports in the topology view

Requirement

You are in the graphic view of the topology view.

Procedure

To interconnect ports in the topology view, follow these steps:
1. Place the pointer of the mouse on the port you want to interconnect.
2. Press and hold down the left mouse button.
3. Move the pointer.
The pointer now uses the networking symbol to indicate "Interconnecting" mode. At the same time, you see the lock symbol on the pointer. The lock symbol disappears only when the pointer is over a valid target position.
4. Now drag the pointer to the target port. You can keep the left mouse button pressed or release it when performing this action.
5. Now release the left mouse button or press it again (depending on your previous action).

Result

Figure 3-15 Interconnecting ports in the topology view
You have created a port interconnection.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

69

Parameter assignment/addressing 3.5 Configuring topology

3.5.3

Interconnecting ports - Inspector window

Interconnecting ports in the Inspector window
To interconnect ports, follow these steps:
1. In the device or network view, select the PROFINET device or PROFINET interface.
2. In the Inspector window, navigate to the port property "Port interconnection".
When the PROFINET interface is selected, you can find this setting in the Inspector window as follows: "Properties > General > Advanced Options > Port [...] > Port Interconnection."
3. In the "Local port" section, you can find the settings at the local port. In the case of fiberoptic cable you can, for example, set the cable names here.
In the "Partner port" area, select the drop-down list for "Partner port" in order to display the available partner ports and make a selection.

Figure 3-16 Interconnecting ports in the Inspector window in STEP 7
If the PROFINET interface was disconnected, it is automatically connected by this action. In the properties of the subnet you can set whether this subnet should or should not be used for the networking.

PROFINET with STEP 7 V16

70

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.5 Configuring topology

3.5.4

Automatic assignment of devices by offline/online comparison

Overview

During the offline/online comparison, the configured topology is compared with the actual existing topology. Devices identified online are automatically assigned to configured devices as far as this is possible.

Start of availability detection You start the availability detection the first time by clicking the "Compare offline/online" button in the toolbar of the "Topology comparison" tab. You restart availability detection by clicking the "Update" button.
Note The availability detection can take several seconds. During this time, no user input is possible.

Automatic assignment of a PNIO device A PNIO device identified online is automatically assigned to a configured device if the following properties of the two devices match up:  Article no.  Type  PROFINET device name

No automatic assignment
In the following situations, no automatic assignment is possible:
 No device can be identified online to match a configured device. (This means that the corresponding columns in the "Online topology" area of the topology comparison table are empty.)
In this case, you should add the already configured device to your system or delete the configured device from the configuration.
 A device identified online can be assigned to a configured device, but there are differences in the port interconnections.
In this case, you can Apply the port interconnections identified online manually to the project (Page 72).
 A device identified online cannot be assigned to a configured device. (In this case, the corresponding columns in the "Offline topology" area of the topology comparison table are empty.)
In this case, you can Include the devices identified online manually in the project (Page 73).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

71

Parameter assignment/addressing 3.5 Configuring topology

3.5.5

Apply the port interconnections identified online manually to the project

Requirements

You have run an offline/online comparison in the topology view. The result of this is that at least one device identified online was automatically assigned to a configured device, but that there are differences relating to the interconnection.

Procedure

To adopt one more port interconnections identified online in the project manually, follow these steps: 1. Select the row belonging to the port interconnection. 2. If applicable, select further roles using multi-selection. 3. Select "Apply" > "Use selected" in the shortcut menu.
The content of the corresponding table cells in the "Action" column changes to "Apply". 4. If you have mistakenly prepared too many port interconnections to be included in the
project: Select the rows belonging to the port interconnections you have mistakenly prepared for inclusion in the project using multi-selection. Select "Reset" > "Reset selected" in the shortcut menu. The content of the corresponding table cells in the "Action" column change to "No action". 5. Click the "Synchronize" button.

Result

The port interconnections identified online for the corresponding devices are included in the project. Successful adoption is indicated by the diagnostics icon "Identical topology information" for each port.
Note
If other port interconnections are recognized for a device identified online and these differ from those that exist in the project, adopting these in the project means that the port interconnections that were previously in the project are replaced by those identified online. If no port interconnections are detected for a device identified online, adopting in the project means that all the port interconnections of this device are deleted in the project.

PROFINET with STEP 7 V16

72

Function Manual, 11/2019, A5E03444486-AK

Parameter assignment/addressing 3.5 Configuring topology

3.5.6

Include the devices identified online manually in the project

Requirements

You have run an offline/online comparison in the topology view. The result of this is that at least one device identified online could not be assigned to any configured device.

Procedure

To adopt one more devices identified online in the project manually, follow these steps:
1. For a configured device without an online partner, move the mouse pointer to the "Device/port" column of the online topology.
2. Select the device you want to assign to the configured device from the drop-down list of this box.
3. Repeat the previous steps if necessary for other configured devices without an online partner.

Result

The selected device that was identified online is moved up from the end of the table. Following this, it is in the row of the configured device to which you have just assigned it.

3.5.7

Automatic assignment of devices by advanced offline/online comparison

Overview

With the advanced offline/online comparison, ICMP is also used alongside DCP to be able to detect devices that do not support DCP.

Automatic assignment of devices detected by ICMP
With devices detected by ICMP, no type is available.
With passive devices, no article number is available. For this reason, passive devices can only be assigned automatically if you have not assigned an article number in the configured data and the offline and online IP addresses match.
With switches, automatic assignment is possible if the offline and online article number, IP address and PROFINET device name match.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

73

Diagnostics and maintenance

4

4.1

Diagnostics mechanisms of PROFINET IO

Totally Integrated Diagnostics Concept
All SIMATIC products have integrated diagnostics functions that they can use to detect and remedy faults. The components automatically flag a potential fault in the operation and provide detailed information.
Each individual error or several errors occurring concurrently are transferred from the IO device to the IO controller. If you require the full status of the IO device including any pending errors, you can also read the status directly from the IO device.
The following sections provide basic information on using diagnostics via PROFINET IO. You can find a detailed description of the system diagnostics for S7-1500, ET 200MP, ET 200SP and ET 200AL in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

PROFINET with STEP 7 V16

74

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.1 Diagnostics mechanisms of PROFINET IO
Accessing the status of an IO device with a PG/PC or an HMI device If you are connected to the Industrial Ethernet via a PG/PC with STEP 7 or an HMI device, you can also call up diagnostics information online. This is illustrated by the following graphic.

Number
 


Description
The IO device detects an error and sends diagnostics data to the IO controller. The IO controller notifies the programming/HMI device. The display of the system diagnostics is updated. In STEP 7, you can read the station status for "Accessible devices" directly from the IO device regardless of the IO controller. This is only possible if the programming device is connected to Industrial Ethernet. This means that you can access diagnostics information during the commissioning phase or for servicing even if the IO controller is not operational.

Figure 4-1 PROFINET IO diagnostics with PG/PC or HMI device

4.1.1
Concept

Diagnostics levels in PROFINET IO
The IO device sends all error messages that occur to the IO controller. The scope and volume of diagnostics information varies according to the level of diagnostics data evaluation and the PROFINET devices you are using.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

75

Diagnostics and maintenance 4.1 Diagnostics mechanisms of PROFINET IO
Diagnostics levels You can evaluate diagnostics data at different levels. The number and type of channels is selected, for example, at the diagnostics level 4. The following figure shows the diagnostics levels with PROFINET IO.

Figure 4-2 Diagnostics levels with PROFINET IO

PROFINET with STEP 7 V16

76

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.1 Diagnostics mechanisms of PROFINET IO
Representation of diagnostics levels in the device view in STEP 7 The following figure shows the representation of the PROFINET device model in the device view of STEP 7, based on the example of a distributed I/O system ET 200MP:

Number
 

Description Level 1: Level 2:

Error(s) in the device Error(s) in the module

Figure 4-3 Diagnostics levels in the device view of STEP 7

Which PROFINET nodes support the extended PROFINET diagnostics?
An overview of the PROFINET nodes that support extended PROFINET diagnostics and of what you have to configure is provided in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/23678970).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

77

Diagnostics and maintenance 4.2 Diagnostics via LEDs

4.2

Diagnostics via LEDs

LEDs for diagnostics on PROFINET
Each port of a PROFINET interface of a SIMATIC device has one LED.
The following table shows a summary of the meaning of these LEDs in the S7-1500, ET 200MP, ET 200SP and ET 200AL systems.

Table 4- 1 S7-1500, ET 200MP, ET 200SP, ET 200AL: LEDs for diagnostics on PROFINET

LED image Meaning

S7-1500 ET 200MP ET 200SP

ET 200AL

LED off
LED green
LED flashes green
LED flickers yellow

There is no Ethernet connection between the PROFINET interface of the PROFINET device and the communication partner. No data is currently being sent/received via the PROFINET interface. There is an Ethernet connection between the PROFINET interface of your PROFINET device and a communication partner. The "LED flashing test" is being performed.
Data is currently being received from or sent to a communications partner on Ethernet via the PROFINET interface of the PROFINET device.

LINK/TX/RX LED

X

X

X

X

X

X

X

X

LK LED X

P1 Link LED P2 Link LED
X

X

X

X

X

-

-

Additional information
You can find a detailed description of all LEDs of the module with cause of the error and remedies in the relevant documentation for the module.

PROFINET with STEP 7 V16

78

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.3 Diagnostics via the display of the S7-1500 CPUs

4.3

Diagnostics via the display of the S7-1500 CPUs

Display

The S7-1500 CPU has a display and operating keys. The display of the CPU shows you the control and status information in different menus. You use operating keys to navigate through the menus and make a variety of settings in the process.

Diagnostics via the display The following indicators can be evaluated for diagnostics purposes on the display:  Error and alarm texts (system diagnostics, alarm messages)  Module status for central and distributed modules In the following example of a display of the CPU 1516-3 PN/DP, you can see a warning on the diagnostics icon and an exclamation mark on the icon for module.

Figure 4-4 Display of overview

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

79

Diagnostics and maintenance 4.3 Diagnostics via the display of the S7-1500 CPUs

Module status

To show the module status, navigate on the display through the menu items "Module" > "PROFINET I/O (X1)" > "Station" > "Slot" > "Status" > "Module status".
The module status indicates that a fault has occurred in the module. The "lower-level status" is the status of the module in the diagnostics level below this. In the example, the status is "good", i.e., the fault is not in the lower diagnostics level submodule or channel, but instead in the module.

Figure 4-5 Display of module status

PROFINET with STEP 7 V16

80

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.3 Diagnostics via the display of the S7-1500 CPUs
Error and alarm texts You can show diagnostics buffer entries and alarm messages for the relevant automation system on the display. To show the diagnostics buffer entries of the CPU, navigate on the display via the menu items "Diagnostics" > "Diagnostics buffer".

Figure 4-6 Display of diagnostics buffer
To show the alarm messages of the automation system, navigate through the menu items "Diagnostics" > "Alarms" > "Alarm text" on the display.
Note Updating the alarm display The display shows the currently read status of the CPU in static form, the display is not automatically updated. The alarm display is updated after it has been exited and opened again. You set the automatic updating of the diagnostics information under: "Display" > "DiagnosticRefresh".

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

81

Diagnostics and maintenance 4.3 Diagnostics via the display of the S7-1500 CPUs

Figure 4-7 Display of alarms

Figure 4-8 Display of alarm message
Additional information You can find the description of the operation and functions of the display in the SIMATIC S7-1500 Display Simulator (http://www.automation.siemens.com/salesmaterialas/interactive-manuals/getting-started_simatic-s7-1500/disp_tool/start_de.html).

PROFINET with STEP 7 V16

82

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.4 Diagnostics via Web server

4.4

Diagnostics via Web server

The CPUs belonging to the S7 family have their own integrated Web server with a wide range of functions.

The following diagnostics options are available to you:

 Start page with general CPU information

 Information on diagnostics

 Contents of the diagnostics buffer

 Module information

 Alarms

 Information about communication

 PROFINET topology

 Motion Control diagnostics

 Trace

 Contents of the diagnostic buffer

 Module status

 Actual topology of the PROFINET system

 Set topology of the PROFINET system (from the configuration)

Set topology and actual topology - graphic view Requirements for displaying the set and actual topology:
 You have configured the PROFINET ports in the topology editor of the hardware and network editor of STEP 7.
 You have loaded the entire project with STEP 7 in the CPU.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

83

Diagnostics and maintenance 4.4 Diagnostics via Web server
The following shows an example of the graphic view.

Figure 4-9 Topology - graphic view via the Web server
Meaning of the colored connections in the set/actual topology:

Table 4- 2 Meaning of the colored connections in the set/actual topology:

Connection green red yellow

Meaning

Set topology
The current actual connection matches the configured set connection.
The current actual connection does not match the configured set connection (e.g., port interchanged).
The connection cannot be diagnosed. Causes:

Actual topology detected connections
-
-

· The communication to an IO device has been disrupted (e.g., cable removed)

· Connection to a passive component
· Connection to PROFINET devices of another IO controller or PROFINET system

PROFINET with STEP 7 V16

84

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.4 Diagnostics via Web server

 Configured and accessible PROFINET devices
Configured and accessible PROFINET devices are displayed dark-gray. Connections show the ports through which the PROFINET devices of a station are connected.

 Configured but not accessible PROFINET devices
The configured but not accessible PROFINET devices are displayed in pink with red border (e.g., device has failed, cable disconnected).

 Disabled devices
All disabled, configured PROFINET devices are displayed light-gray.

 Interchanged ports
Interchanged ports are marked red in the set topology view. The currently connected ports are displayed in the actual topology, the configured set connection in the set topology.

 PROFINET devices of another PROFINET IO system
 In the set topology:
A PROFINET device of another PROFINET IO system is displayed with a green connection (or red connected if the ports have been interchanged), when it is directly
adjoining a configured and accessible PROFINET device  and it is also accessible.
When the PROFINET device of another PROFINET IO system is not accessible, a yellow connection line is displayed.
The connection between two PROFINET devices that both belong to a different PROFINET IO system, cannot be determined and is always displayed in yellow.
 In the actual topology:
A PROFINET device of another PROFINET IO system is only displayed if the PROFINET device is in direct proximity to a configured PROFINET device. The PROFINET device is displayed light-gray and with dashed line.
For PROFINET devices of a different PROFINET IO system, no status display is shown on the device head.
 Representation of faulty neighbor relations
The devices whose neighbor relations cannot be read out completely or correctly are displayed light-gray with red border.
Additional information
The tabular view of the actual topology and the status overview of the PROFINET devices in the project are possible.
You can find these views, additional topology examples, and detailed information on the operation and the functions of the Web server in the Web server (http://support.automation.siemens.com/WW/view/en/59193560) manual.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

85

Diagnostics and maintenance 4.5 Online diagnostics with STEP 7

4.5

Online diagnostics with STEP 7

For PROFINET, you have the following options to evaluate diagnostics in STEP 7:

 Online & diagnostics - Devices & networks

 Online & diagnostics - diagnostics of PROFINET ports

Online & diagnostics network view
In the hardware and network editor (launched from the "Project tree" by double-clicking "Devices & networks"), you can get an overview of the current state of your system by clicking on the "Go online" button. It also shows the configuration information (for example, non-configured modules). This option is also available in the topology view in similar form.
Schematic drawing of the network view (online):

Figure 4-10 Online & diagnostics network view

PROFINET with STEP 7 V16

86

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.5 Online diagnostics with STEP 7
Online & diagnostics device view In STEP 7, you can display an overview of the modules in which faults have occurred. To do this, select the menu command "Online > Online & diagnostics". Once you are connected, you can see the status of the accessible devices in the project tree.
Double-click the device which displays an alarm message to access the faulty module directly. The device view is opened in the work area. In the device view of the device that reports the fault you can see directly in which module the fault occurs.
Open the "Diagnostics" tab and the subordinate "Device information" tab in the Inspector window for a more detailed error description.
Schematic drawing of the device view (online):

Figure 4-11 Online & diagnostics device view

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

87

Diagnostics and maintenance 4.5 Online diagnostics with STEP 7
Diagnostics of PROFINET ports If you select "PROFINET interface > Ports" in the Diagnostics area in the online & diagnostics device view of a PROFINET device, the ports of the PROFINET interface are listed in a table. The table provides you with the following information about the ports of the PROFINET interface.  Name  Status  Settings  Operating mode

Figure 4-12 Diagnostics of PROFINET ports in STEP 7
Additional information You can find information on the system diagnostics for S7-1500, ET 200MP, ET 200SP and ET 200AL in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual and online help for STEP 7.

PROFINET with STEP 7 V16

88

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.6 Extended maintenance concept

4.6

Extended maintenance concept

Extended maintenance concept
The PROFINET interfaces with integrated switch of the SIMATIC devices support the fourlevel diagnostics concept in accordance with PROFINET specification Version V2.3 or higher with the following status:

Table 4- 3 Classification of the diagnostic status

Diagnostic status Good

Symbol Green checkmark

Severity of the error

Maintenance required Maintenance demanded Bad

Green wrench Yellow wrench Red wrench

The aim of the diagnostics concept is the early detection and elimination of potential faults before they cause a production outage.
Other status information is defined in addition to the Good (no fault) and Bad (fault) status information for a PROFINET device.
The maintenance information is generated with the following system alarms:
 Maintenance required (symbolized by a green wrench) and
 Maintenance demanded (symbolized by a yellow wrench)
The times at which the two system alarms are generated can be customized for most wear parameters.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

89

Diagnostics and maintenance 4.6 Extended maintenance concept
Example: Maintenance demanded for a PROFINET cable The following graphic illustrates how diagnostics information is exchanged when the transmission quality on the optical cable decreases due to ageing, for example. In this example, the scenario is considered after a maintenance required has already been diagnosed.

Number
  
 

Description
The system reserve of the fiber-optic cable drops below 0 dB. Both the ET 200S PN FO and the switch send the maintenance demanded alarm to the IO controller. Based on the interrupts, the IO controller detects the maintenance demanded from the switch and from the IO device. The module information data is updated in the IO controller and the corresponding error OBs are called. Note: To be able to start the error OBs in the IO controller, the "Call the user program if communication errors occur" property must be selected in STEP 7 for the relevant IO controller. In STEP 7 (on the programming device/PC), the maintenance demanded message is indicated on the IO device and at the switch by a yellow wrench symbol. STEP 7 can also read out detailed information directly from the switch.

Figure 4-13 Maintenance demanded for a PROFINET cable

PROFINET with STEP 7 V16

90

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.7 Diagnostics of the network topology

4.7

Diagnostics of the network topology

Availability

As an open standard, you can use any SNMP based systems or software solutions for diagnostics in PROFINET.

Network diagnostics
The network management protocol SNMP (Simple Network Management Protocol) uses the wireless UDP transport protocol. It consists of two network components, similar to the client/server model. The SNMP manager monitors the network nodes and the SNMP clients collect the various network-specific information in the individual network nodes and store it in a structured form in the MIB (Management Information Base). This information allows a network management system to run detailed network diagnostics.

MIB
The MIB (Management Information Base) is the database of a device. SNMP clients access this database in the device. The S7 device family supports the following standard MIBs:
 MIB II, standardized in the RFC 1213
 LLDP-MIB, standardized in the international standard IEC 802.1AB
 LLDP-PNIO-MIB, standardized in the international standard IEC 61158-6-10
You will find the MIBs for ET 200 interface modules and couplers with PROFINET interface in this product note (https://support.industry.siemens.com/cs/ww/en/view/109770525).

Detecting the network topology
LLDP (Link Layer Discovery Protocol) is a protocol that is used to detect the closest neighbor. LLDP enables a device to send information about itself and to receive information from its neighbor devices. This information is then saved in the LLDP MIB, for example, and can be queried using SNMP. This information allows a network management system to determine the network topology.

Use of SNMP (Simple Network Management Protocol)
SNMP can be used as follows:
 By users to integrate network diagnostics into a central HMI/SCADA system using the SIMATIC NET OPC server
 By the IT administration of machine and plant operators to monitor their Industrial Ethernet network using standard network management systems.
 By the IT administration, to monitor the automation network, alongside the office network, using standard network management systems.

Use of SNMP in the SIMATIC NET environment
SNMP-compliant devices from the SIMATIC NET family can be monitored and operated via a conventional standard Internet browser. The management system known as web-based management offers a wide range of device-specific information (network statistics, status of redundant supply, for example).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

91

Diagnostics and maintenance 4.8 Diagnostics in the user program

4.8

Diagnostics in the user program

4.8.1

Diagnostics and configuration data records

Diagnostics mechanism
The IO device outputs a diagnostics interrupt to the IO controller when it detects faults such as wire break on an IO module. This interrupt calls a corresponding organization block in the user program (diagnostics interrupt OB82), in order to generate a defined (programmed) response to the fault and passes a diagnostics data record.

Diagnostics data records in PROFINET IO
There are two different types of diagnostics data record:
1. Channel diagnostics data records
Channel diagnostics data records are generated if a channel is in an error state and / or has triggered an interrupt.
A diagnostics data record of length 0 is returned if there is no fault.
2. Vendor-specific diagnostics data records
The structure and size of vendor-specific diagnostics data records depend on the vendor's settings.
For information about vendor-specific diagnostics data records, refer to the appropriate device manual.

PROFINET with STEP 7 V16

92

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.8 Diagnostics in the user program
Addressing levels of diagnostics data records Diagnostics and configuration data is evaluated at the following addressing levels:  Device level  AR (Application Relation)  API (Application Process Identifier)  Slot  Subslot A group of diagnostics and configuration data records are available for each address level (exception: device level always 0xF80c). In HEX representation, the individual groups of data records are distinguished by the first letter of the data record number.

Figure 4-14 Addressing levels of diagnostics data records
The information for each IO device (addressing level AR), module (addressing level slot) or submodule (addressing level subslot) is always transferred in separate diagnostics or configuration data records. The data record returns diagnostics data or configuration data for one or more subslots, slots and APIs, depending on the addressing level.
Note The diagnostics information is only generated for configured modules / submodules / channels.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

93

Diagnostics and maintenance 4.8 Diagnostics in the user program
Library for PROFINET data records The "LPNDR" block library contains various function blocks. You can use these blocks to read out various device and status information from a PROFINET device and write parameters. You can execute the following functions using the library blocks:  Read device information: ­ Information about the interface, e.g. IP and MAC address ­ Information about the device interface, e.g. status, medium, name ­ Information about the link status of the interfaces, e.g. link down, link up ­ Information about the role of the device for MRP, e.g. client, manager ­ Information about the port statistics, e.g. number of received bytes  Read the MRP status  Modification of the parameters of analog input module of the ET 200SP in runtime, e.g. in order to disable/enable the channel diagnostics. The finished functions are freely adaptable and can therefore be used universally. The "LPNDR" block library with an example project can be found on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109753067).

4.8.2

Evaluate diagnostics in the user program

Diagnostics in the user program
For PROFINET IO, a cross-vendor structure of data records with diagnostics information applies. Diagnostics information is created only for channels on which a fault has occurred. With PROFINET, there are two basic ways to obtain diagnostics information.

PROFINET with STEP 7 V16

94

Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.8 Diagnostics in the user program
1. Evaluating the diagnostics status Read out the diagnostics of your PROFINET IO system using the instructions "DeviceStates" and "ModuleStates" to localize faulty stations / modules or station / modules with maintenance demanded or maintenance required within a PROFINET IO system. The instruction RDREC (read data record) is then used to read various diagnostics data records directly from the module concerned and thus obtain detailed information about the error.

Number
 

Description
All individual errors are collected in a single data record on the interface module. In your user program, the instruction "RDREC" reads the entire station status asynchronously directly from the IO device.

Figure 4-15 Example: Evaluating diagnostics data records with the instruction "RDREC"

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

95

Diagnostics and maintenance 4.8 Diagnostics in the user program
2. Evaluation of interrupts When the error OB (OB 82) is called, the OB's start information provides you with information on the cause and location of the error. Detailed information on the error event can be obtained in the error OB using the instruction "RALRM" (read additional interrupt information).

Number




Description
Every error is sent to the IO controller individually as channel diagnostics information in the form of an interrupt. In the IO controller, the module status data is updated automatically and the error OB (OB 82) is started. In your user program in the error OB (OB 82), the instruction "RALRM" reads the error synchronously from the IO controller without addressing the IO device.

Figure 4-16 Diagnostics with OB 82 and the instruction "RALRM"

Instructions and OBs You will find information on the instructions and OBs in the STEP 7 online help.

PROFINET with STEP 7 V16

96

Function Manual, 11/2019, A5E03444486-AK

4.9

Maintenance

Diagnostics and maintenance 4.9 Maintenance

4.9.1

I&M data (identification and maintenance)

Definition and properties
Identification and maintenance data (I&M) is information saved to module memory in order to provide support when:
 Checking the plant configuration
 Locating hardware changes in a plant
Identification data (I data) is module information (some of which may be printed on the module housing) such as the order and serial number. I data is read-only vendor-specific module data.
Maintenance data (M data) is plant-specific information such as the location identifier and installation date. M data is created during configuration.
The modules can be uniquely identified in online mode by means of the I&M data.

Further information
To find out whether and to what extent a PROFINET device supports I&M data, refer to the documentation of the relevant device.

4.9.2

Loading I&M data to PROFINET IO devices and your modules

Which I&M data can be loaded to PROFINET IO devices and your modules?
You can load I&M 1 data (plant designation and location identifier) and/or I&M 2 data (installation date) and/or I&M 3 data (additional information) to the actual hardware.

Requirements

 In the project settings (Options > Settings, Hardware configuration > Compiling and downloading), the option "Download I&M data" must be enabled.
 There is an online connection to the PROFINET IO devices and the modules to which you want to load I&M data.
 You have entered the I&M data you want to download in the properties of the respective PROFINET IO devices and your modules (Inspector window: "Properties" tab > "General" tab, Settings > Identification & Maintenance).

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

97

Diagnostics and maintenance 4.9 Maintenance
Where do I specify which I&M data is downloaded to which PROFINET IO devices? You specify which I&M data you want to download to which PROFINET IO devices in the "Load preview" dialog. You will find the following alternatives in the drop-down list of the "Identification and maintenance data (I&M)" row:  Load nothing The check boxes for all PROFINET IO devices as well as the check boxes for the loadable I&M data are cleared. No I&M data is transferred to the actual hardware during loading with this setting.  Load data The check boxes for all PROFINET IO devices as well as the check boxes for the loadable I&M data are selected. The respective I&M 1, I&M 2 and I&M 3 data is transferred to all PROFINET IO devices during loading with this setting.  Load selected You select the check boxes of those PROFINET IO devices to which you want to load I&M data. You also select the check boxes of the identification data you want to load. With this setting, you transfer the selected I&M data to the selected PROFINET IO devices during loading.
Note Language dependency of the I&M data to be loaded The I&M data are loaded to the real hardware in the form that you specified in the properties of the relevant PROFINET IO devices and your modules. There is no language dependency.

4.9.3
4.9.3.1
98

Asset management
Further information about asset management at PROFINET Operation of machines and plants without a detailed knowledge of devices and assets is difficult to imagine. Maintenance requires data for this ­ data that is extensive and up-to-date as far as possible. The requirement of greater transparency with regard to the data made available by plant components has been fulfilled by PROFIBUS & PROFINET International (PI): The identification and maintenance data familiar since PROFIBUS times have been extended. The current PROFINET fulfills this requirement through the definition of a special data record: the Asset Management Record (AMR). The aim of this definition is to enable you to acquire all the components to be maintained online - and not only those components that can be addressed and accessed through the PROFINET device model (Device / Module / Submodule). PROFINET now also reaches non-PROFINET components!
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance
Assets general and asset management data records
Assets are components (hardware and software / firmware) of a machine, for example a laser welding machine, or a plant.
A large number of these device components can already be identified through tried-andtested I&M functions or corresponding data records (I&M0 to I&M5) in the PROFINET context: The device itself as well as its modules and submodules. Meaning all components that can be addressed through the PROFINET device model.
Components that cannot be addressed via the PROFINET device model, but whose data it should be possible to acquire online for operation and maintenance, can be identified through asset management functions. This asset management data (short: AM data) is stored in a defined structure in a special data record, the asset management record (AMR) mentioned above.
The PROFINET Guideline "Identification & Maintenance Functions" differentiates here between I&M functions (I&M data) and asset management functions (AM data): The following sections only deal with the AM data.
The components that can be read additionally online through asset management data records include both hardware components, such as backplane bus modules of a device as well as firmware components such as a drive control unit with own versioning.
Application examples
Importing asset management records enables you to read the following information during installation or operation, for example:
 Are only approved devices being used (whitelist check)?
 A firmware update is due. Obtain a fast overview: Which devices or components are affected and have to be upgraded?
Making asset management data available
The concept for the asset management of PROFINET devices stipulates that the manufacturers of PROFINET devices have to ensure that non-PROFINET automation components are made available through an asset management record. This data record is assigned to the PROFINET device.
In contrast to a "standard" IO device, with an I-device the project engineer has to make the asset management record available. In this case, the central modules of the I-device are assets. From the perspective of PROFINET, these central modules are not visible from the point of view of the higher-level IO controller. The higher-level IO controller only "sees" the transfer areas through which it exchanges IO data with the I-device.
The principle of this provision is explained in the section.

PROFINET with STEP 7 V16

Function Manual, 11/2019, A5E03444486-AK

99

Diagnostics and maintenance 4.9 Maintenance

Reading asset management data
The asset management record has the index 0xF880 and is read with standard PROFINET mechanisms by the user of the records, for example a tool or program for evaluating these data.
A user program in the S7-1500 IO controller, for example, can read out the AMR of an IO device with the RDREC instruction (Index 0xF880).
It is not possible to write to this data record.

Further information
Whether and to which extent a PROFINET device supports asset management data, meaning whether it makes an AMR available, is specified in the documentation of the respective device.

4.9.3.2

Content and structure of an asset management record

Basic structure of the asset management record
You are first provided with an overview of the general structure of the record. The following table describes the framework within which the asset management data blocks are embedded. Each data block represents an asset, a terminal block for example.

Element of the data structure Header AssetManagementData

Designation according to IEC 61158-6-10
BlockType BlockLength

AssetManagementInfo AssetManagementBlocks (n)

BlockVersion NumbersOfEntries
AssetManagementBlock 1 AssetManagementBlock 2 ... AssetManagementBlock n

Code
0x0035 Number of bytes without counting the bytes for BlockType and BlockLength 0x0100 Number of AssetManagementBlocks See the table below

Data type / length in bytes UINT / 2 UINT / 2
UINT / 2 UINT / 2

100

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance

Structure of asset management blocks
Each AssetManagementBlock contains identification data and localization information for an asset. An AssetManagementBlock has a substructure with basic characteristics described below.
The header of an AssetManagementBlock contains the coded information about which of the three possible AM data compilations the data record contains. Devices make a suitable BlockType available in accordance with the various device types:
 Complex devices with information about the hardware and firmware (BlockType "AM_FullInformation")
 Complex devices with information about the hardware (BlockType "AM_HardwareOnlyInformation")
 Devices with information about the firmware (BlockType "AM_FirmwareOnlyInformation")
The differentiation provides an efficient data structure below the header. Nevertheless, the data record can have a considerable size (maximum of 64 KB, depending on the number of assets that the IO device supplies).

Table 4- 4 Structure of AssetManagementBlock

Element of the data structure
Header AssetManagementBlock

Designation according to IEC 61158-6-10
BlockType

BlockLength

AssetManagementBlock
(Structure depends on the BlockType. Here it is shown using AM_FullInformation as an example)

BlockVersion Padding Padding IM_UniqueIdentifier
AM_Location

IM_Annotation

Code
0x0036 (AM_FullInformation) 0x0037 (AM_HardwareOnlyInformation) 0x0038 (AM_FirmwareOnlyInformation) Number of bytes without counting the bytes for BlockType and BlockLength 0x0100 0x0000 (padding byte) 0x0000 (padding byte) Manufacturer-generated Universal Unique Identifier (UUID) conforming to ISO/IEC 9834-8. Used as a reference key to uniquely identify this asset. Example: 550c5300-d34a-22b4-11d35533991111b3 Description of the location of the asset: Either slot-oriented ("Slot and SubslotNumber format") or hierarchical ("Twelve level tree format"). See following description Manufacturer-specific notation Example: "Terminal block, Type xyz123 ". 64 bytes are always used. Spaces are used for padding if the string is shorter.

Data type / length in bytes UINT / 2
UINT / 2 UINT / 2 USINT / 1 USINT / 1 Array of Byte / 16
Array of Byte / 16
Array of Char / 64

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

101

Diagnostics and maintenance 4.9 Maintenance

Element of the data structure

Designation according to IEC 61158-6-10 IM_OrderID
AM_SoftwareRevision (not at AM_HardwareOnlyInformation)
AM_HardwareRevision (not at AM_FirmwareOnlyInformation)
IM_Serial_Number
IM_Software_Revision (not at AM_HardwareOnlyInformation)

Code

Data type / length in bytes

Manufacturer-specific article number

Array of Char / 64

Example: "6ES7 131-6BF00-0BA0 ".

64 bytes are always used. Spaces are used for padding if the string is shorter.

Manufacturer-specific SW version

Array of Char / 64

Example: "V6.3.8 ".

64 bytes are always used. Spaces are used for padding if the string is shorter.

If the asset supports IM_Software_Revision, the AM_SoftwareRevision is padded with spaces.

Manufacturer-specific hardware version Array of Char / 64

Example: "A4 ".

64 bytes are always used. Spaces are used for padding if the string is shorter.

If the asset supports IM_Hardware_Revision, the AM_HardwareRevision is padded with spaces.

Manufacturer-specific unique production- Array of Char / 16 related number.

The characters come from the visible range (0x20 ... 0x7E), no control characters.

Example: "A78C-1C82 ".

16 bytes are always used. Spaces are used for padding if the string is shorter.

Software version, follows a strict structure (SW version prefix, for example "V", digits for functional extension, digits for BugFix, digits for internal change).
Example: 'V' 0x01 0x2 0x3

Array of Byte / 4
Prefix (character "V", "R", "P", "U", or "T"), then 3 digits "0" to "9"

If AM_SoftwareRevision is padded with spaces, you should evaluate IM_Software_Revision.

If the asset does not support any hardware, the coding 'V' 0x00 0x00 0x00.

102

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance

Element of the data structure

Designation according to IEC 61158-6-10 AM_DeviceIdentification
AM_TypeIdentification
IM_Hardware_Revision (not at AM_FirmwareOnlyInformation)

Code

Data type / length in bytes

Identification of the device. The structure Array of Byte / 8 is as follows:

AM_DeviceIdentification.DeviceSubID

(for SIEMENS e.g. 0x0000)

AM_DeviceIdentification.DeviceID

(Device ID from manufacturer, 0x0000 to 0xFFFF)

AM_DeviceIdentification.VendorID

(Example for Siemens assets: 0x002A)

AM_DeviceIdentification.Organization: Example for Siemens assets: 0x0000 (PROFINET)

Manufacturer-allocated type identification:

UINT / 2

0x0000: Unspecified

0x0001: Controller (PLC)

0x0002: PC-based

0x0003: IO module, IO submodule

0x0004: Communications module / submodule

0x0005: Interface module / submodule

0x0006: Active network component

0c0007: Media attached unit (bus adapter)

0x0100 to 0x7FF: Manufacturer-specific

Version of the hardware (0x0000 to 0xFFFF)

UINT / 2

Example: 0x0003

If AM_HardwareRevision is padded with spaces, you should evaluate IM_Hardware_Revision.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

103

Diagnostics and maintenance 4.9 Maintenance

AM_Location

Asset management at PROFINET supports two formats for coding the location of an asset:
 Slot-oriented format ("Slot and SubslotNumber format")
 Hierarchical format ("Twelve Level Tree format" abbreviated LT format)
Assets that are part of the PROFINET device use the slot-oriented format. These assets are bound completely to the PROFINET modules and submodules.
Assets that are located outside the PROFINET device use the hierarchical format (LT format) for coding the location of an asset.
These assets are localized by their tree level. The tree level begins with Level 0. The value of Level 0 provides information about the proximity to the PROFINET device:
 If the asset is connected to a module that can be addressed through the PROFINET device model, Level 0 has the value 0. The subsequent levels (Level 1 to Level 3) then have the meaning of slot address, subslot address and channel number. If further assets are connected to this asset, the next Level 4 is used. The limit is reached at Level 11.
 If the asset belongs to a PROFINET device but is not connected to a module that can be addressed through the PROFINET device model, Level 0 has a value between 1 and 0x1FF. An example of such an asset is a power supply unit in the PROFINET device. If a further asset is connected to this power supply unit, for example a sensor, the next tree level is used to localize this sensor (Level 1).
 If the asset is located outside the PROFINET device, but, for example, belongs to a machine into which the PROFINET device is installed, Level 0 has a value between 0x200 and 0x3FE.
The value 0x3FF for a tree level shows that this tree level is not used. This means that no further asset is connected. In this case, all the lower tree levels down to Level 11 must also have this value.

104

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance
Example AM_Location slot-oriented A rack and the terminal blocks located on it each supply AM data. The slot assignments are shown in the figure.

Figure 4-17 Example of assets with slot-oriented AM_Location coding.
Code the AM_Location as an asset for each module as follows: Bit 0 ­ 7: AM_Location.Structure = 0x02 (coding "Slot and SubslotNumber format") Bit 8 ­ 15: AM_Location.Reserved1 = 0x00 (padding byte) Bit 16 ­ 31: AM_Location.BeginSlotNumber = 2 (the "Rack" asset begins from Slot 2 on) Bit 32 ­ 47: AM_Location.BeginSubslotNumber = 0xFFFF (the asset encompasses all the subslots of Slot 2. Otherwise you specify the no. of the subslot at which the asset begins) Bit 48 ­ 63: AM_Location.EndSlotNumber = 4 (the asset ends at Slot 4) Bit 64 ­ 79: AM_Location.EndSubslotNumber = 0xFFFF (the asset encompasses all the subslots of Slot 4. Otherwise you specify the no. of the subslot at which the asset ends) Bit 80 ­ 95: AM_Location.Reserved2 = 0x0000 (padding byte) Bit 96 ­ 111: AM_Location.Reserved3 = 0x0000 Bit 112 ­ 127: AM_Location.Reserved4 = 0x0000

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

105

Diagnostics and maintenance 4.9 Maintenance
Example AM_Location level-oriented A complex sensor is connected to an IO module (Slot 5, Subslot 1, Channel 1). Two simple sensors, in turn, are connected to the complex sensor. The module can be addressed within the PROFINET device model. Level 0 therefore has the value 0x0000. The next level (Level 1) is specified by the assigned slot. This is followed by the further levels for the subslot and channel and, if appropriate, further subordinate layers.

Figure 4-18 Example of assets with hierarchical AM_Location coding.
Detailed coding for the example: Bit 0 ­ 7: AM_Location.Structure = 0x01 (LT format) Bit 8 ­ 17: AM_Location.Level0 = 0x000 (assets that are assigned to modules always have the Level 0 value 0x000) Bit 18 ­ 27: AM_Location.Level1 = 0x005 (Slot 5) Bit 28 ­ 37: AM_Location.Level2 = 0x001 (Subslot 1) Bit 38 ­ 47: AM_Location.Level3 = 0x001 (Channel 1) Bit 48 ­ 57: AM_Location.Level4 = 0x3FF (coding for "Level not used") Bit 58 ­ 67: AM_Location.Level5 = 0x3FF (coding for "Level not used") ... Bit 118 ­ 127: AM_Location.Level11 = 0x3FF (coding for "Level not used") Notation used in the screen for the LT coding of complex sensors: 0.5.1.1 The following correspondingly applies for the remaining sensors: LT coding for simple Sensor 1 at complex sensor: 0.5.1.1.1 LT coding for second simple Sensor 2 at complex sensor: 0.5.1.1.2

106

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance

4.9.3.3

Asset management data record for I-devices
With STEP 7 (TIA Portal) as of V15 and with S7-1500 CPUs as of firmware V2.5.2, you can compile an asset management data record via a user program. Configured as an I-device, these CPUs then supply the data from centrally plugged modules to a requesting IO controller as assets.
"S7-1500 CPUs" also refers to the CPU variants S7-1500F, S7-1500T, S7-1500C, S7-1500 SW Controller, S7-1500pro CPUs and ET 200SP CPUs.

Asset management records for I-devices
I-devices often represent machines. The PROFINET IO controller to which the I-device is assigned only sees the PROFINET interface (also configured as an IO device) and the transfer areas of the I-device configured by the machine manufacturer. The local modules of the I-device are not visible or cannot be accessed.
The assigned IO controller can read the central modules as assets of the I-device by means of an asset management record that the user program of the I-device compiles.

Figure 4-19 Assets of an I-device
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

107

Diagnostics and maintenance 4.9 Maintenance

Requirement

 S7-1500 CPU as of firmware V2.5.2, configured as I-device
 STEP 7 (TIA Portal) as of V15
 If an IO controller is to read the asset management record:
The PROFINET IO controller is programmed correspondingly to read an asset management record.
For a SIMATIC IO controller, for example, you call a read instruction (RDREC) with record index 0xF880. The instruction addresses any submodule of the I-device, for example the first configured transfer area submodule.

108

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance
Basic procedure The following steps are fundamentally required to create the requirements so that an Idevice can make its local modules available as an asset management record to a requesting IO controller: 1. Make the settings in the properties of the PROFINET interface of the CPU. ­ Activate "IO device" operating mode ­ Activate the "Activate asset management using user program" option PROFINET interface forwards a request of an IO controller to the user program of the I-device for reading the asset management record only if the option is selected.

Figure 4-20 Activating asset management using a data record

2. Configure the program routine for compiling the asset management record. The program part collects the required I&M0 data of the plugged central modules and stores them in the corresponding fields of the data record structure of the asset management record.
3. Configure the program part for coordinating the data record provision: For this, call the instruction PRVREC (Provide Record) in accordance with the following templates in the corresponding modes:
­ Cyclic calling (for example in the cycle OB) of the PRVREC instruction with Mode 0, in order to recognize the AMR request.
­ When the AM record request is recognized, the PRVREC program has to acknowledge within one second that the request has been recognized. This means that PRVREC must be called with the Mode 2, and with the required AM record. If the I-device does not adhere to the time frame, the I-device acknowledges the record request of the IO controller as negative.
Particular aspect for configuration of the PRVREC call: PRVREC has to be called with F_ID = 0. This codes that this is an IO-device-specific data record. The SLOT and SUBSLOT output parameters therefore also return the value 0.
­ Within 10 seconds the AM record now has to be completed and PRVREC be called with Mode 3 (positive response to the IO controller with provision of the AM record). If the I-device does not adhere to the time frame, the I-device acknowledges the record request of the IO controller as negative.
A detailed description of the PRVREC instruction and possible error codes for evaluating the function can be found in the online help of STEP 7 (TIA Portal).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

109

Diagnostics and maintenance 4.9 Maintenance
Compilation of the asset management record
You have various possibilities for compiling the asset management record for an I-device:
 Recommendation: The Siemens Industry Online Support makes an application available to you that helps you to compile the asset management record. The data area of the asset management record is divided in two. The first part consists of an automatically determined area that packages the IM0 data of the slots of the I-device into an asset management block. The second part consists of the user-specific asset management blocks. You configure the user-specific asset management blocks based on pre-configured asset management record structures, fill them with information and make them available to the application. The application performs the following:
­ The application determines the required size of all the asset management blocks.
­ The application fills the data block in accordance with the specifications of an asset management record with the automatically determined asset management blocks and your user-specific asset management blocks.
­ The application makes this asset management record available to the higher-level IO controller.
The application is described in this application example (https://support.industry.siemens.com/cs/ww/en/view/109748894)
 You create the asset management record yourself. The following section describes how you can compile an asset management record for an I-device yourself. The concept assumes you yourself determine the I&M data for each centrally plugged module and fill the asset management record with this information. The I&M0 data of a module contains basic information about the module such as the manufacturer's code, article number, serial number, hardware and firmware version. These are the data that are also required in the AM record for an asset.

Determine the I&M data of centrally plugged modules
The central structure consists of an optionally plugged power supply unit (Slot 0), followed by the I-device CPU (Slot 1), and then followed by the further modules, such as digital modules, analog modules, etc. (as of Slot 2).
You determine the I&M data with the "Get_IM_Data" instruction for the plugged modules with exception of the CPU:
To assign parameters for the "Get_IM_Data" instruction, you require the hardware identifier (LADDR input parameter). You determine the hardware identifier for each occupied slot with the "GEO2LOG" instruction (Determine hardware identifier from slot).
Summary of the theoretical steps:
1. In a loop, determine the hardware identifiers of the plugged modules with the "GEO2LOG" instruction.
2. For each hardware identifier found, determine the I&M data by using the "Get_IM_Data" instruction and store these data in a data block that you address with the input parameter DATA. Use ARRAY of BYTE for the data storage. This corresponds to the description of the AM record contents in the preceding section.

110

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Diagnostics and maintenance 4.9 Maintenance

Forming an AM record with the determined I&M data
The following sections are based on the description of the fundamental structure of the AM record, see the preceding section.
Since each module of an S7-1500 contains hardware and firmware information, select the coding for "AM_FullInformation" for the assigned BlockType.
For the data types used:
 IM_Annotation, IM_OrderID, AM_SoftwareRevision and AM_HardwareRevision: Characters (UTF-8)
 IM_Serial_Number: Characters ("ASCII characters") with the exception of the characters for DEL (0x7F)
 Do not use String data types. They require additional bytes and therefore do not conform to the conventions of the PROFINET standard 61158-6-10 "Application layer protocol specification".
Form the AM_FullInformationBlock for each module as follows:

Table 4- 5 AM_FullInformationBlock for modules

Data record element IM_UniqueIdentifier
AM_Location IM_Annotation IM_OrderID AM_SoftwareRevision AM_HardwareRevision IM_Serial_Number IM_Software_Revision

Description
Generate a (pseudo) random UUID (hash value) in accordance with ISO 9834-8 as follows:
· Generate an 8-byte hash value across the I&M0 data of the module (as of Slot 2). Use the algorithm Fowler-Noll-Vo (in short: FNV); an algorithm for generating variance coefficients (hash values) across data field, see corresponding example code in the Internet or online support.
· Generate an 8-byte hash value across the I&M0 data of the CPU. (Use the algorithm Fowler-Noll-Vo (in short: FNV) as described above)
· IM_UniqueIdentifier Byte 0 to 7: Hash value of module I&M0 data Bytes 8 to 15: Hash value for CPU-I&M0 data Required customizations to ISO 9834-8: Byte 8, Bit 7 has to be set to 1, and Byte 8, Bit 6 to 0 (result of the AND operator with 0011 1111, subsequent OR operator with 1000 0000) Byte 6, Bit 4 to 7 have to be set to 0100 (result of the AND operation with 0000 1111, then OR operation with 0001 0000)
Since this algorithm is based on the I&M0 data of the CPU as well as of the modules, it generates a constant IM_UniqueIdentifier for an individual module. When the configuration changes the IM_UniqueIdentifier also changes.
Byte 0 = 0x02 (slot-oriented coding), see description in the preceding section.
Example: "S7-1500 module" and pad the remaining bytes of IM_Annotation with spaces (0x20).
Copy 20 bytes of the I&M0 data of the module (beginning with offset 2 of the I&M0 data). Pad the remaining 44 bytes with spaces (0x20)
Pad the field with 64 spaces (0x20)
Pad the field with 64 spaces (0x20)
Copy 16 bytes of the I&M0 data of the module (beginning with offset 22 of the I&M0 data)
Copy 4 bytes of the I&M0 data of the module (beginning with offset 40 of the I&M0 data)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

111

Diagnostics and maintenance 4.9 Maintenance

Data record element AM_DeviceIdentification
AM_TypeIdentification IM_Hardware_Revision

Description
Byte 0, 1, 2, 6, 7 = 0x00 Byte 3 = 0x2A (Vendor = Siemens) Byte 4 = 01, Byte 5 = DeviceID (e.g. CPU 15xx = 0x0E)
Copy 2 bytes of the I&M0 data of the module (beginning with offset 48 of the I&M0 data)
Copy 2 bytes of the I&M0 data of the module (beginning with offset 38 of the I&M0 data)

112

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions

5

Introduction

The following section describes the PROFINET IO functions for field of application, properties and configuration in STEP 7.
Refer to the documentation for the respective device to see to what extent the PROFINET devices support the described functions.
You can find a tabular overview of the PROFINET devices and the functions these support on the Internet (https://support.industry.siemens.com/cs/ww/en/view/102325771).

5.1

Connecting other bus systems

Fieldbus integration
PROFINET allows you to use a proxy-capable PROFINET device to integrate existing fieldbus systems (for example, PROFIBUS, AS interface). The devices of these fieldbus systems are mapped on proxy PROFINET devices. In this way, you can set up any hybrid systems consisting of fieldbus and Ethernet-based subsystems. This allows a continuous exchange of information.

Figure 5-1 Gateways on PROFINET IO
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

113

Functions 5.1 Connecting other bus systems
Gateways of an S7-1500 CPU An overview of the gateways at an S7-1500 CPU is provided in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/88778900).
Connecting to building busses  BACnet: You can find the procedure for configuring communication between a SIMATIC PLC and a BACnet network with a gateway in this application example (https://support.industry.siemens.com/cs/ww/en/view/109476182).  M-bus: You can find the procedure for configuring communication between a SIMATIC PLC and an M-bus network with a gateway in this application example (https://support.industry.siemens.com/cs/ww/en/view/109478527).  DALI: You can find the procedure for configuring communication between a SIMATIC PLC and a DALI network with a gateway in this application example (https://support.industry.siemens.com/cs/ww/en/view/109740160).  KNX: You can find the procedure for configuring communication between a SIMATIC PLC and a KNX network with a gateway in this application example (https://support.industry.siemens.com/cs/ww/en/view/109739689).

114

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.1 Connecting other bus systems

5.1.1

Linking PROFINET and PROFIBUS

Linking PROFINET and PROFIBUS
With a proxy-capable PROFINET device which is equipped with a PROFINET interface in addition to a PROFIBUS interface (for example, IE/PB Link PN IO), you can integrate existing PROFIBUS configurations into the PROFINET configuration.
The following figures shows how a PROFIBUS system is connected via IE/PB Link to a CPU S7-1500 (as of firmware version 1.7).

Figure 5-2 Gateway from PROFINET and PROFIBUS via IE/PB link
PROFINET device with proxy functionality
The PROFINET device with proxy functionality is the substitute for a PROFIBUS device on Ethernet. The proxy functionality allows a PROFIBUS device to communicate not only with its master but also with all devices on PROFINET.
With PROFINET you can connect an existing PROFIBUS system to an IO controller, for example with the help of an IE/PB Link PN IO.
From the IO controller perspective, the PROFIBUS DP slaves are connected to the same network as the IE/PB Link PN IO. These slaves have the same device name and IP address as the IE/PB Link PN IO, but different device numbers. Furthermore, each also has a specific PROFIBUS address.
In this way, you can link both DPV0 and DPV1 slaves to PROFINET.
For information on how to connect a DP slave to a PROFINET IO system, refer to section Connect the DP slave via the IE/PB Link to a PROFINET IO system (Page 116).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

115

Functions 5.1 Connecting other bus systems
Diagnostic options with a CPU S7-1500 as IO controller The CPU S7-1500 (as of firmware version 1.7) as IO controller detects disrupted DP slaves behind the IP/PB link.

5.1.2

Connect the DP slave via the IE/PB Link to a PROFINET IO system

Requirements

 STEP 7 as of V13 SP1  CPU supports IE/PB link, e.g.:
­ S7-1500 CPU as of firmware version 1.7 ­ S7-1500 Software Controller as of firmware version 1.7 ­ S7-300/400 CPU

Procedure for connecting a DP slave via an IE/PB Link
To connect a DP slave to a PROFINET IO system via an IE/PB Link in STEP 7, follow these steps:
1. Drag-and-drop a PROFINET CPU, for example CPU 1513-1 PN, from the hardware catalog into the network view of STEP 7.
2. Drag-and-drop an IE/PB Link PN IO from the hardware catalog into the network view of STEP 7. The IE/PB Link PN IO is located under Network components > Gateways > IE/PB Link PN IO.
3. Assign the IE/PB Link PN IO to the CPU.
4. Drag a PROFIBUS interface module e.g. IM155-6 DP HF, from the hardware catalog to the network view.
5. Assign the interface module to the IE/PB Link.

Figure 5-3 Configuring an IE/PB link
6. Select the IE/PB Link PN IO in the network view of STEP 7.

116

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.1 Connecting other bus systems
7. In the Inspector window, go to the "Gateway" area and select the "Network gateway as PROFINET IO proxy" option.
Figure 5-4 Setting a gateway
8. In the PROFINET device number area, you can assign a PROFINET device number for the DP slave. If you have selected the "Device number = PB address" check box (default), STEP 7 automatically assigns the device number according to the PROFIBUS address of the slave. In addition, you no longer need to update the device number if the PROFIBUS address changes.

Result Reference

Figure 5-5 Assigning PN device numbers for IE/PB link
You have connected the DP slave to the PROFINET IO system.
Additional information on the IE/PB link is available in the manual Gateway IE/PB Link PN IO (http://support.automation.siemens.com/WW/view/en/19299692).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

117

Functions 5.2 Intelligent IO devices (I-devices)

5.2

Intelligent IO devices (I-devices)

5.2.1

I-device functionality

I-device functionality
The "I-device" (intelligent IO device) functionality of a CPU facilitates data exchange with an IO controller and operation of the CPU as intelligent preprocessing unit of sub processes, for example. The I-device is linked as an IO device to a "higher-level" IO controller.
The preprocessing is handled by the user program in the I-device. The process values acquired in the centralized or distributed (PROFINET IO or PROFIBUS DP) I/O are preprocessed by the user program and made available to the IO controller.

Figure 5-6 I-device
"I-device" naming conventions In the remainder of this description, a CPU or a CP with I-device functionality is simply called an "I-device".
Application example: Configuration and application of the PROFINET I-device function A detailed application example is available here (https://support.industry.siemens.com/cs/ww/en/view/109478798).

118

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)

5.2.2

Properties and Advantages of the I-Device

Fields of application
Fields of application of the I-device:
 Distributed processing
A complex automation task can be divided into smaller units/subprocesses. This results in manageable processes which lead to simplified subtasks.
 Separating subprocesses
Complicated, widely distributed and extensive processes can be subdivided into several subprocesses with manageable interfaces by using I-devices. These subprocesses can be stored in individual STEP 7 projects if necessary, which can later be merged to form one master project.
 Know-how protection
Components can only be delivered with a GSD file for the I-device interface description instead of with a STEP 7 project. The know-how of the user program may no longer be published.

Properties

Properties of the I-device:
 Unlinking STEP 7 projects
Creators and users of an I-device can have completely separated STEP 7 automation projects. The GSD file forms the interface between the STEP 7 projects. This allows a link to standard IO controllers via a standardized interface.
 Real-time communication
The I-device is provided with a deterministic PROFINET IO system via a PROFINET IO interface and therefore supports RT (real-time communication) and IRT (isochronous real time).

Advantages

The I-device has the following advantages:  Simple linking of IO controllers  Real-time communication between IO controllers  Relieving the IO controller by distributing the computing capacity to I-devices.  Lower communication load by processing process data locally.  Manageable, due to processing of subtasks in separate STEP 7 projects

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

119

Functions 5.2 Intelligent IO devices (I-devices)

5.2.3

Characteristics of an I-Device

Principle

An I-device is included in an IO system like a standard IO device.

I-device without lower-level PROFINET IO system
The I-device does not have its own distributed I/O. The configuration and parameter assignment of the I-devices in the role of an IO device is the same as for a distributed I/O system (for example ET 200).

Figure 5-7 I-device without lower-level PROFINET IO system

120

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
I-device with lower-level PROFINET IO system Depending on the configuration, an I-device can also be an IO controller on a PROFINET interface in addition to having the role of an IO device. This means that the I-device can be part of a higher-level IO system via its PROFINET interface and as an IO controller can support its own lower-level IO system. The lower-level IO system can, in turn, contain I-devices (see figure below). This makes hierarchically structured IO systems possible. In addition to its role as IO controller, an I-device can also be used via a PROFIBUS interface as DP master for a lower-level PROFIBUS system.

Figure 5-8 I-device with lower-level IO system
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

121

Functions 5.2 Intelligent IO devices (I-devices)
Example - the I-device as IO device and IO controller The I-device as IO device and IO controller is explained based on the example of a print process. The I-device controls a unit (a subprocess). One unit is used, for example, to insert additional sheets such as flyers or brochures in a package of printed material.
Figure 5-9 Example - the I-device as IO device and IO controller
Unit 1 and unit 2 each consist of an I-device with centralized I/O. The I-device along with the distributed I/O system (for example ET 200) forms unit 3. The user program on the I-device is responsible for preprocessing the process data. For this task, the user program of the I-device requires default settings (for example control data) from the higher-level IO controller. The I-device provides the higher-level IO controller with the results (for example status of its subtask).

122

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
I-device as a shared device An I-device can also be used simultaneously by multiple IO controllers as a shared device.

Figure 5-10 I-device as a shared device
Information about configuring an I-device as a shared device is available in the section Configuring an I-device as a shared device (Page 146).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

123

Functions 5.2 Intelligent IO devices (I-devices)

5.2.4

Data Exchange between higher- and lower-level IO system

Introduction

The next chapter shows the data exchange between the higher- and lower-level IO system.

Transfer areas

Transfer areas are an interface to the user program of the I-device CPU. Inputs are processed in the user program and outputs are the result of the processing in the user program.
The data for communication between IO controller and I-device is made available in the transfer areas. A transfer area contains an information unit that is exchanged consistently between IO controller and I-device. You can find more information on configuration and use of transfer areas in the section Configuring the I-device (Page 126).

124

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
The next figure shows the data exchange between the higher- and lower-level IO system. The individual communication relations are explained below based on the numbers.

Figure 5-11 Data exchange between higher- and lower-level IO system
 Data exchange between higher-level IO controller and normal IO-device
In this way, the IO controller and IO devices exchange data through PROFINET.
 Data exchange between higher-level IO controller and I-device
In this way, the IO controller and the I-device exchange data through PROFINET. The data exchange between a higher-level IO controller and an I-device is based on the conventional IO controller / IO device relationship. For the higher-level IO controller, the transfer areas of the I-devices represent submodules of a preconfigured station. The output data of the IO controller is the input data of the I-device. Analogously, the input data of the IO controller is the output data of the I-device.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

125

Functions 5.2 Intelligent IO devices (I-devices)
 Transfer relationship between the user program and the transfer area
In this way, the user program and the transfer area exchange input and output data.
 Data exchange between the user program and the I/O of the I-device
In this way, the user program and the centralized / distributed I/O exchange input and output data.
 Data exchange between the I-device and a lower-level IO device
In this way, the I-device and its IO devices exchange data. The data transfer is via PROFINET.

5.2.5

Configuring the I-device

Introduction

There are basically two possibilities for configuration:
 Configuration of an I-device within a project
 Configuration of an I-device that is used in another project or in another engineering system.
STEP 7 allows you to configure an I-device for another project or for another engineering system by exporting a configured I-device to a GSD file. You import the GSD file in other projects or engineering systems as with other GSD files. The transfer areas for the data exchange, among other data, are stored in this GSD file.

Configuration of an I-device within a project
1. Drag-and-drop a PROFINET CPU from the hardware catalog into the network view.
2. Drag-and-drop a PROFINET CPU, which can also be configured as an IO device, from the hardware catalog into the network view. This device is configured as I-device (e.g., CPU 1516-3 PN/DP).
3. Select the PROFINET interface for the I-device.
4. In the Inspector window in the area navigation choose "Operating mode" and select the check box "IO device".

126

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices) 5. Now you have the option of choosing the IO controller in the "Assigned IO controller" drop-down list. Once you have chosen the IO controller, the networking and the IO system between both devices are displayed in the network view.
Figure 5-12 Configuring the I-device
6. With the "Parameter assignment of PN interface by higher-level IO controller" check box, you specify whether the interface parameters will be assigned by the I-device itself or by a higher-level IO controller. If you operate the I-device with a lower-level IO system, then the parameters of the I-device PROFINET interface (for example, port parameter) cannot be assigned with the higher-level IO controller.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

127

Functions 5.2 Intelligent IO devices (I-devices)
7. Configure the transfer areas. The transfer areas are found in the area navigation section "I-device communication". ­ Click in the first field of the "Transfer area" column. STEP 7 assigns a default name which you can change. ­ Select the type of communication relation: you can currently only select CD or F-CD for "Controller-device communication relation". ­ Addresses are automatically preset; you can correct addresses if necessary, and determine the length of the transfer area which is to be consistently transferred.

Figure 5-13 Configuring the transfer areas
8. A separate entry is created in the area navigation for each transfer area. If you select one of these entries, you can adjust the details of the transfer area, or correct them and comment on them.
Configuring an I-device with a GSD file If you use an I-device in another project, or if the I-device is used in another engineering system, then configure the higher-level IO controller and the I-device as described above. However, click on the "Export" button after configuring the transfer areas so a new GSD file is created from the I-device. This GSD file represents the configured I-device in other projects. The "Export" button is found in the "I-device communication" section of the Inspector window. The hardware configuration is compiled and the export dialog opened. Assign a name for the I-device proxy as well as a description in the fields provided. Click the "Export" button to complete your process. Finally, import the GSD file, for example, in another project.

5.2.6

Program examples

Introduction

This simple program example shows how you use the transfer areas of an I-device.

Requirements You have configured an I-device.

128

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)

Task

The result of an "AND logic operation" of two inputs (preprocessing) in the I-device is to be provided to the higher-level IO controller. This result is to be assigned to a local output in the IO master (further processing). Use a transfer area with the following addresses for this purpose:
 Address in the I-device: Q568
 Address in the IO controller: I68

Required steps The following steps to solve the task: 1. Configuring the transfer area 2. Programming I-device 3. Programming IO controller

Configuring the transfer area Configure a transfer area with the following properties in the I-device:

Figure 5-14 I-device transfer area, sample program
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

129

Functions 5.2 Intelligent IO devices (I-devices)
Programming I-device To program the sample program for the I-device, follow these steps: 1. Using the SCL programming language, create a new function with the name "preprocessing" in the project tree in "Program blocks" > "Add new block". Open the function. 2. In the interface of the function "preprocessing", create the following tags:

Name input 1 input 2 result

Data type bool bool bool

Input / output type Input Input Output

3. In the instruction window of the function "preprocessing", write the following program code: #result:=#input 1&#input 2;

4. Call the function "preprocessing" in a program cycle OB, for example, in OB1.

5. Wire the function "preprocessing" in the program cycle OB as follows:

Figure 5-15 I-device sample program
Programming IO controller To program the sample program for the IO controller, follow these steps: 1. Using the SCL programming language, create a new function with the name "further processing" in the project tree in "Program blocks" > "Add new block". Open the function. 2. In the interface of the function "further processing", create the following tags:

Name result output

Data type bool bool

Input / output type Input Output

3. In the instruction window of the function "further processing", write the following program code: #output:=#result;

130

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
4. Call the function "further processing" in a program cycle OB, for example, in OB1. 5. Wire the function "further processing" in the program cycle OB as follows:

Result

Figure 5-16 IO controller sample program
The IO controller and the I-device can exchange data with each other through the input/output transfer areas.

5.2.7

Diagnostics and interrupt characteristics

Diagnostics and interrupt characteristics
S7 CPUs have numerous diagnostics and interrupt functions that can, for example, report errors or failures of lower-level IO systems. These diagnostics messages reduce down times and simplify localization and elimination of problems.

Diagnostics options in the higher-level IO controller and in the I-device The following diagnostics functions are available to the higher-level IO controller and the I-device CPU:  OB 83 (pull/plug)  OB 86 (rack failure)  OB 122 (I/O access error)
Note The diagnostics messages of the I/O can be processed in the user program of the Idevice CPU and passed on from there to the higher-level IO controller via transfer areas.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

131

Functions 5.2 Intelligent IO devices (I-devices)

Operating state changes and station failure / station return
In the following table, you can see which consequences an operating state change or the failure of an IO controller / I-device of the SIMATIC family has on the respective other(s):

Table 5- 1 Operating state changes and station failure / station return

Initial status I-device CPU is in RUN, higherlevel IO controller is in RUN
I-device CPU is in STOP higherlevel IO controller is in RUN
I-device CPU is in RUN, higherlevel IO controller is in RUN
Higher-level IO controller is in STOP, I-device CPU in RUN

Event The I-device CPU changes to STOP
The I-device CPU is starting up
The higher-level IO controller changes to STOP
The higher-level IO controller starts up

I-device response -
Call of OB 100 (startup). Call of OB 83 (pull/plug) for input transfer areas to the higher-level IO controller. Until call of OB 83 in the case of direct access to the input transfer areas to the higher-level IO controller: depending on the type of error handling, e.g., call of OB 122 (IO access error). During the updating of the process image with the instructions "UPDAT_PI" and "UPDAT_PO" an error report is returned at the parameter RET_VAL. With direct IO access to the input transfer areas to the higher-level IO controller: depending on the type of error handling, e.g., call of OB 122 (IO access error). Note: Output transfer areas can still be accessed. Call of OB 83 (pull/plug) for input transfer areas to the higher-level IO controller. Until call of OB 83 in the case of direct access to the input transfer areas to the higher-level IO controller: depending on the type of error handling, e.g., call of OB 122 (IO access error).

Higher-level IO controller During the updating of the process image with the instructions "UPDAT_PI" and "UPDAT_PO" an error report is returned at the parameter RET_VAL. With direct IO access to all transfer areas to the I-device: depending on the type of error handling, e.g., call of OB 122 (IO access error). Call of OB 83 (pull/plug) for all transfer areas to the I-device. Until call of OB 83 in the case of direct access to the transfer areas to the Idevice: depending on the type of error handling, e.g., call of OB 122 (IO access error).
-
Call of OB 100 (startup).

132

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)

Initial status I-device CPU is in RUN, higherlevel IO controller is in RUN
I-device CPU is in RUN, higherlevel IO controller is in RUN, communication connection between IO controller and I-device is interrupted (bus interruption).

Event Station failure Idevice, for example, through bus interruption
The bus connection between the IO controller and Idevice has been reestablished and the I-device is again included in the user data traffic.

I-device response
If the I-device continues to run without a bus connection:
Call of OB 86 (rack failure).
During the updating of the process image with the instructions "UPDAT_PI" and "UPDAT_PO" an error report is returned at the parameter RET_VAL.
With direct IO access to all transfer areas to the higher-level IO controller: depending on the type of error handling, e.g., call of OB 122 (IO access error).
Call of OB 86 (rack failure).
Call of OB 83 (pull/plug) for input transfer areas to the higher-level IO controller.
Until call of OB 83 in the case of direct access to the input transfer areas to the higher-level IO controller: depending on the type of error handling, e.g., call of OB 122 (IO access error).

Higher-level IO controller Call of OB 86 (rack failure). During the updating of the process image with the instructions "UPDAT_PI" and "UPDAT_PO" an error report is returned at the parameter RET_VAL. With direct IO access to all transfer areas to the I-device: depending on the type of error handling, e.g., call of OB 122 (IO access error).
Call of OB 86 (rack failure). Until reporting of station re-integration by OB 86 with direct IO access to all transfer areas to the I-device: depending on the type of error handling, e.g., call of OB 122 (IO access error)

Note
Special characteristic during startup of the higher-level IO controller
In contrast to the station return message from IO devices in the IO controller, which are covered completely by the call of the OB 86, the station return message of a higher-level IO controller in the I-device is separated into 2 parts:
1. Call of the OB 86: The initial values for the outputs of the I-device are set. However, the input values are not yet valid. These values will first be valid with the opening of OB 86 in the higher-level IO controller.
2. Call of OB 83 for each input transfer area; with this call, the validity of an input transfer area is displayed. The starting up of the I device is first complete when the OB 83 has been called for the input transfer areas. This step can be delayed or not occur at all in the following situations: ­ Higher-level IO controller is in STOP: OB 83 is first called at the STOP-RUN transition of the higher-level IO controller.
­ The IRT communication has been disrupted (sync-master failure, topology error, ...). OB 83 is opened only after the IRT communication has taken place.

Reference

For more information on error handling in the case of direct I/O access, refer to "Error handling" in the STEP 7 online help.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

133

Functions 5.2 Intelligent IO devices (I-devices)

5.2.8

Rules for the Topology of a PROFINET IO System with I-Device

Introduction

The following recommendations for the structure and configuration of an IO system when using I-devices will help you to keep the bandwidths required for keeping communication small.
The following communication paths should not overlap:
 Communication paths between the IO controller and the IO device of its IO system.
 Communication paths of the I-device CPU and the IO devices of your IO system.

I-device with one port
Connect an I-device with only one port to a PROFINET switch that is uncoupled from the higher-level IO system. Connect the lower-level IO system to another port of the switch as shown in the following figure.

Figure 5-17 I-device with one port
134

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
I-device with two ports With an I-device with two ports, connect one port, uncoupled from the higher-level IO system, to the port of the PROFINET switch. Use the second port for the lower-level IO system as shown in the following figure.

Figure 5-18 I-device with two ports
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

135

Functions 5.2 Intelligent IO devices (I-devices)
I-device with three or more ports If you have an I-device with three or more ports, connect the I-device to one or both ports to the higher-level IO system in a linear bus topology. Connect the third port to the lower-level IO system uncoupled from the linear bus topology as shown in the following figure.

Figure 5-19 I-device with three or more ports

5.2.9

Boundary conditions when using I-devices
Note the following boundary conditions when using I-devices:

Bandwidth

The number of addresses of the configured transfer areas affects the usable bandwidth of the I-device:
 Bandwidth of the transfer areas + bandwidth of the lower-level IO system = total bandwidth used on the I-device
If the address space of the transfer areas is too large, this indicates a larger bandwidth requirement and can thus lead to longer update times.
Tip: Keep the address space of the transfer area as small as possible.

136

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.2 Intelligent IO devices (I-devices)
Rules for RT and IRT communication. IO systems with I-devices are also suitable for setting up real-time applications with RT and IRT communication. The following rules must be followed for this:  Both the higher-level and the lower-level IO system support RT communication. You can use RT communication for both IO systems at the same time.  IRT communication can be combined with RT communication. You can use IRT communication in one of the two IO systems. Use IRT either in a higher-level or in a lower-level IO system.

5.2.10

Configuring PROFIenergy with I-devices
The requirement for program-controlled pauses for saving energy with PROFINET devices is that the PROFINET devices support the PROFIenergy protocol.
Only if a PROFINET device (I/O device) supports the PROFIenergy protocol does an I/O controller actually send PE commands to this I/O device, for example to start or stop pauses.
If an I/O device supports the PROFIenergy protocol, this property is saved in its PROFINET GSD file and is available for configuration in an engineering system.
For S7-1500 CPUs as intelligent I/O devices (I-devices), you have the option with STEP 7 V13 service pack 1 or later to set PROFIenergy support for each transfer area.
If you have selected the "Enable PROFIenergy communication" option for a transfer area and import the generated PROFINET GSD file into another project, you can handle an Idevice as a PE entity there.

Requirements

 STEP 7 as of V13 service pack 1
 CPU supports PROFIenergy with I-devices, for example CPU 1215C DC/DC/DC as of firmware version 4.2
 You use the PROFINET IO interface as an I-device and have created transfer areas.
 The user program in the I-device handles PROFIenergy commands
Background: You need to program PROFIenergy functions with I-devices in the user program using the "PE_I_DEV" instruction and corresponding auxiliary blocks; this is different compared with IO devices for which this functionality is made available by the firmware. You may therefore only activate the PROFIenergy support for transfer areas if the user program in the I-device is configured correspondingly as well.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

137

Functions 5.2 Intelligent IO devices (I-devices)
Enabling PROFIenergy for transfer areas of I-devices Proceed as follows to assign parameters for the support of PROFIenergy: 1. Select the PROFINET interface (X1) of the CPU. 2. Select the required transfer area in the area navigation, for example: Operating mode > I-device communication > Transfer_area_1. 3. Select the check box "Enable PROFIenergy communication".

Figure 5-20 Configuring PROFIenergy with I-devices
Once the I-device is fully configured, generate the GSD file for the I-device and import this file in the project for the I/O controller. The GSD file generated contains an entry that specifies that the I-device supports the PROFIenergy profile.
To address the I-device, for example for the PE command "PE_START_END", use the hardware identifier of the "PROFIenergy supporting" transfer area in the I-device.
To address the IO controller for the PE command "PE_I_DEV", use the hardware identifier of the transfer area that is supplied with the data for PROFIenergy on the IO controller.
You can find more information on PROFIenergy in the sectoin Saving energy with PROFIenergy (Page 258).

138

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.3

Shared device

Functions 5.3 Shared device

5.3.1

Useful information on shared devices

Shared device functionality
Numerous IO controllers are often used in larger or widely distributed systems.
Without the "Shared Device" function, each I/O module of an IO device is assigned to the same IO controller. If sensors that are physically close to each other must provide data to different IO controllers, several IO devices are required.
The "Shared Device" function allows the modules or submodules of an IO device to be divided up among different IO controllers. Thus allowing flexible automation concepts. You have, for example, the possibility of combining I/O modules lying near other into an IO device.

 PROFINET  Logical assignment
Figure 5-21 Example: Shared device with 2 IO controllers

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

139

Functions 5.3 Shared device

Principle

Access to the submodules of the shared device is then divided up among the individual IO controllers. Each submodule of the shared device is assigned exclusively to one IO controller.

Requirement

 STEP 7 V12 Service Pack 1 or higher
 IO device supports the shared device function, e.g. interface module IM 155-5 PN ST
 IO controller supports the shared device function, for example CPU 1516-3 PN/DP as of firmware version 1.1 or CPU 1215 DC/DC/DC as of firmware version 4.1
Explanatory notes:
 A CPU that is configured as an I-device can be used as a shared device. For this purpose, you create a GSD file for the I-device in STEP 7 via "GSD export". You then import the GSD file into a different project and assign the I-device to the IO controller there. The CPU has to support the GSD export, for example CPU 1215C DC/DC/DC as of firmware version 4.1. The maximum number of IO controllers that you can assign to a CPU configured as a shared I-device is given in the technical specifications in the CPU manuals.

Configuring the access
The IO device must be present in several projects so that the modules or submodules of an IO device can be assigned to different IO controllers. A separate project is required for each IO controller.
You use the "Shared device" parameter of the interface module to determine the modules or submodules to which the IO controller has access:
 If the local IO controller has access to the configured module, select the name of the IO controller from the list.
 If the IO controller from a different project and not the local IO controller is to have access to the configured module, select the entry "---".
The configuration is consistent regarding access if each module or submodule in exactly one project is assigned to an IO controller.

Module or submodule is assigned to another IO controller
The paragraph below describes the consequences of the "---" setting of the "Shared device" parameter from the point of view of the local IO controller.
In this case, the local IO controller does not have access to the module configured in this way. Specifically, this means:
 No data exchange with the module or submodule
 No reception of alarms or diagnostics, which means no display of the diagnostics status in the online view
 No parameter assignment of the module or submodule

140

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
Setting of the real-time properties
STEP 7 calculates the communication load and thus the resulting update times. You must enter the number of project-external IO controllers in the project in which the PROFINET interface of the shared device is assigned to the IO controller so that a calculation is possible with shared device configurations.
The maximum possible number of IO controllers for the shared device depends on the device. This number is stored in the GSD file of the shared device.
You can set a very short send clock with a CPU as IO controller. The send clock can be shorter than the shortest send clock supported by the shared device. In this case, the shared device is operated by the IO controller with a send clock that it supports (send clock adaptation).
Example:
A CPU supports send clocks starting from 0.25 ms. A configured IO device also supports send clocks starting at 0.25 ms; another IO device supports send clocks starting at 1 ms. In this case, you have the option of setting the short send clock of 0.25 ms for the CPU. The CPU operates the "slow" IO device with the send clock of 1 ms, for example.
Rules for the configuration
 IO controllers that use the shared device are created in different projects. In each project, care must be taken that the shared device is configured identically in each station. Only one IO controller may ever have full access to a submodule. Inconsistencies in the configuration result in a failure of the shared device.
 If you have selected the "Use router" option for the IO controllers involved, you must have set the same router address in all these IO controllers.
 I/O addresses of a module or submodule can only be edited if a module or submodule is assigned to the IO controller in the same project.
 The shared device must have the same IP parameters and the same device name in each project.
 The send clock must be identical for all IO controllers that have access to the shared device.
 The S7 subnet ID of the subnet to which the shared device is connected must be identical in all projects.
 The following functions are only available if the PROFINET interface of the shared device is assigned to the local IO controller:
­ IRT operation
­ Prioritized startup
­ Parameter assignment of the port properties

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

141

Functions 5.3 Shared device
Boundary conditions
The following boundary conditions result because a shared device configuration is distributed across several projects:
 The addresses of modules or submodules that are not assigned to this IO controller are missing in the address overview of each IO controller that has access to a shared device.
 The modules or submodules that are not assigned are not taken into consideration in the configuration limit calculation for the shared device during the consistency check. For this reason, you must verify for yourself that the maximum number of submodules or the maximum amount of cyclic IO data for the shared device will not be exceeded. For information on the maximum quantities, refer to the documentation for the devices you are using.
 Configuration errors such as the assignment of a module or submodule to several IO controllers are not detected in STEP 7.
 CPUs that are loaded with a shared device configuration do not have any information on whether the IO device is a shared device. Modules or submodules that are assigned to other IO controllers and therefore other CPUs are missing in the loaded configuration. These modules or submodules are therefore displayed neither in the CPU web server nor in the CPU display.
Response in the event of fault
Information about how PROFINET IO controllers behave in the event of a fault when accessing the data of a shared device is available in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109572804).

5.3.2

Configuring shared device
Below, you will find a description of how to configure a distributed I/O system as a shared device with STEP 7 V12, Service Pack 1 or higher.
A "distributed" configuration with different engineering tools for different IO controller families is always possible. However, the description of the procedure is based solely on STEP 7 as of V12, service pack 1. The description is limited to two IO controllers of the S7-1500 family that share a shared device.
Two projects are created (Shared-Device-1 and Shared-Device-2), each with one IO controller (PLC1 and PLC2). You must create the shared device in both projects, even though it is physically one and the same IO device.

Requirements

 STEP 7 V12 Service Pack 1 or higher
 The IO controller supports the shared device function, for example CPU 1513-1 PN as of firmware version 1.1.
 IO device supports shared device functionality, for example interface module IM 155-5 PN ST as of firmware version 2.0.

142

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
Procedure - Creating project 1 To create the first project with a shared device, follow these steps: 1. Start STEP 7. 2. Create a new project with the name "Shared-Device-1". 3. Insert, for example, a CPU 1513-1 PN from the hardware catalog in the network view. Name it "PLC1". 4. Insert an IO device with the "Shared device" function from the hardware catalog. 5. Assign the IO controller "PLC1" to the IO device. 6. Double-click the IO device and insert all required modules and submodules from the hardware catalog in the device overview table. 7. Assign the module parameters. 8. Save the project.
Procedure - Creating project 2 To create the second project with a shared device, follow these steps: 1. Start STEP 7 once again. A new instance of STEP 7 opens. 2. In the new instance, create a new project with the name "Shared-Device-2". 3. Insert, for example, a CPU 1513-1 PN in the network view. Name it "PLC2". 4. Copy the IO device from the project "Shared-Device-1" and insert it in the network view of project "Shared-Device-2". 5. Assign the IO controller "PLC2" to the IO device. 6. Save the project. Both projects now have an identically structured IO device that must be configured in the next step for the different types of IO controller access.
Procedure - Configuring access to the shared device The modules and submodules you insert in the shared device are automatically assigned to the local CPU. To change the assignment, follow these steps: 1. Select the interface module in the network view or device view of project "Shared-Device1". 2. Select the "Shared Device" area in the Inspector window. A table shows which CPU has access to the respective module or submodule for all configured modules. The default setting is that the local CPU has access to all modules and submodules.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

143

Functions 5.3 Shared device
3. Keep the "PLC1" setting for all modules and submodules that are to remain in the address range of the local CPU. Select the setting "---" for all modules and submodules that are to be located in the address range of the CPU from the "Shared-Device-2" project (PLC2). This means that an IO controller outside the project is to have access to the module or submodule.

Figure 5-22 Configuring shared device
4. Select the interface module in the network view or device view of project "Shared-Device2".
5. Select the "Shared Device" area in the Inspector window.
A table shows which CPU has access to the respective module or submodule for all configured modules.
6. Select the setting "---" for all modules and submodules that are to be located in the address range of the CPU from the "Shared-Device-1" project (PLC1).
7. Finally, check whether the settings for access are "complementary" for each module or submodule in both projects. This means that if the local CPU has access in one project, the option "---" must be set in the other project and vice versa.
Special consideration: The option "---" for the PROFINET interface and therefore for the ports makes the associated parameters read-only and not changeable. Parameters of the PROFINET interface and port parameters can only be edited in the project in which the PROFINET interface is assigned to the local CPU. The ports can be interconnected in both projects regardless of this.
8. Check whether the same IP address parameters and device name are set for the shared device in all projects.
Check whether the same S7 subnet ID is set in all projects for the subnet to which the shared device is connected (subnet properties, "General" area in the Inspector window).
Note
If you make changes to the shared device: Make the same changes in each project on the shared device. Make sure that only one IO controller has access to a module or submodule.

144

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
Procedure - Adjusting the real-time settings
To ensure that all IO controllers and shared devices are operated with the appropriate send clock and that the update times are calculated correctly based on the communication load, you must adjust and check the following settings:
1. Select the project whose IO controllers have access to the PROFINET interface and the ports of the shared device.
2. Select the interface module of the shared device in the network view.
3. In the Inspector window, navigate to the "PROFINET interface > Advanced options > Real time settings > IO cycle" area.
4. In the "Shared Device" area, set the number of project-external IO controllers. The maximum number depends on the IO device (specification in GSD file).
5. You must set the same send clock for each IO controller that has access to modules and submodules of the shared device:
­ If you configure the IO controller with STEP 7 (TIA Portal):
Open the corresponding project.
Select the PROFINET interface of the IO controller.
Select the "Advanced options > Real time settings > IO communication" area in the Inspector window and set the shared send clock.
­ If you configure the IO controller with a different engineering tool:
Select the PROFINET interface of the shared device in STEP 7 (TIA Portal) and read out the send clock on the shared device ("Advanced options > Real time settings" area)
Enter the read send clock in the engineering tool.
­ Special consideration: If you configure all IO controllers that have access to the shared device in STEP 7 (TIA Portal or V5.5), you can set shorter send clocks on the IO controller than supported by the shared device (send clock adaptation).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

145

Functions 5.3 Shared device
Compiling and loading You must compile the configurations for the different IO controllers and load them to the CPUs one after the other. Due to the distributed configuration with separate projects, STEP 7 does not output consistency errors in the case of incorrect access parameter assignment. Example for incorrect access parameter assignment:  Several IO controllers have access to the same module  IP address parameters or send clocks are not identical These errors do not show up until operation and are output as configuration errors, for example.
Note After a configuration has been loaded in the IO controller, non-assigned modules or submodules retain their current parameterization state to ensure the independence from the parameterizations of other IO controllers.

5.3.3

Configuring an I-device as a shared device
Below, you will find a description of how you configure an S7-1500 as an I-device with STEP 7 Version 13 or higher and then use it in two projects as a shared device.
A "distributed" configuration with different engineering tools for different IO controller families is generally also possible here. The procedure described below is based on STEP 7 V13 and is limited to a configuration with two IO controllers of the S7-1500 family that share the transfer areas of an I-device as a shared device. The I-device itself is also an S7-1500 CPU.
Three projects are created with one IO controller each (PLC-I-Device, PLC_1, and PLC_2).
PLC-I-Device is used to configure the I-device. The PROFINET GSD variant of PLC-I-Device is used in the PLC_1 and PLC_2 projects in order to assign the transfer areas in the respective higher-level IO controller.

Shared I-device concept
For the introduction of the shared I-device concept, two roles are distinguished:
 The role of manufacturer (e.g., machine manufacturer): The manufacturer configures and programs an I-device that performs a particular automation task. Transfer areas are defined as the I/O interface to the operator of the machine. These transfer areas can be assigned to different IO controllers. For the connection to higher-level IO controllers, the manufacturer provides a PROFINET GSD file and discloses the transfer areas via which the I-device can be accessed.
 The role of the operator: The operator uses the I-device as a PROFINET GSD variant during configuration of the PROFINET IO system and, in this process, specifies the I/O addresses under which the IO controllers access the transfer areas.

146

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
Manufacturer view
You assign the following parameters for an S7-1500 CPU as an I-device: centralized and distributed I/O, the desired transfer areas, and the number of IO controllers having access to this I-device (always greater than 1 for a shared device!).
Special consideration: The I-device is configured without a higher-level IO controller. As a result, only the local I/O addresses of the transfer area are available (= "Address in the Idevice") in order to create the user program for editing the addresses from the transfer area. The I-device that has been completely configured except for the connection to the higherlevel IO controller is loaded to the S7-1500 CPU.
You export a PROFINET GSD file from the I-device configuration.

Figure 5-23 Exporting an I-device as a GSD file
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

147

Functions 5.3 Shared device

Operator view

You must install the PROFINET GSD file created from the I-device configuration in all engineering systems that are involved in configuring a PROFINET IO system with this shared I-device. If all uses of this I-device will be configured with STEP 7 V13, it is sufficient to install the GSD file in STEP 7.
You configure the I-device as a GSD variant on the PROFINET IO system in the projects involved. In STEP 7 V13, this I-device can be found under "Other field devices > PROFINET IO > PLCs & CPs" following installation.

Figure 5-24 Configuring an I-device as a GSD file

148

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
In each of the projects involved, you define which transfer areas are assigned exclusively to the higher-level IO controller (default setting: all). You set the other transfer areas to "---" (not assigned). As a result of this setting, the local IO controller has no access to this transfer area and it can therefore be assigned to another IO controller in another project.

Figure 5-25 Setting the access to the shared I-device.
You adapt the addresses from the view of the IO controller in the device overview. To open the device overview, double-click the I-device.

Figure 5-26 I/O addresses of the transfer areas in the device overview
Requirements  STEP 7 as of V13

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

149

Functions 5.3 Shared device
Procedure - Creating the PLC-I-device project To create the project with a shared I-device, follow these steps: 1. Start STEP 7. 2. Create a new project with the name "PLC-I-device". 3. Insert, for example, a CPU 1518-4 PN/DP from the hardware catalog in the network view. Assign the name "PLC-I-device". 4. Double-click the IO device and configure all required modules and submodules.

150

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
5. Assign the module parameters. In particular, the following settings for the CPU are necessary in the area of the PROFINET interface [X1]: ­ Enable the "IO device" option in the "Operating mode" area. ­ Configure the transfer areas in the "Operating mode" > "I-device configuration" area. The "Address in IO controller" column remains empty because no IO controller is assigned. Note: To change an input area to an output area, and vice versa, you must navigate to the area of the corresponding transfer area.

Figure 5-27 Changing the address type for the transfer area
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

151

Functions 5.3 Shared device
­ Select the number of IO controllers (at least two) that will access the shared I-device during operation ("Operating mode" > "Real time settings" area, "Shared Device" area).
6. Save the project. 7. Click the "Export" button ("Mode" > "I-device configuration" area, "Export general station
description file (GSD)" section). If you do not change the name in the Export dialog, the GSD file has a name in the form "GSDML-V2.31-#Siemens-PreConf_PLC-I-Device-20130925-123456", for example.
Procedure - Creating the PLC_1 project To create the first project with a shared I-device, follow these steps: 1. Start STEP 7. 2. Install the PROFINET GSD file from the export of the I-device CPU (PLC-I-Device). 3. Create a new project with the name "PLC_1". 4. Insert, for example, a CPU 1516-3 PN/DP in the network view. The name of the CPU should be "PLC_1". 5. Insert the I-device from the hardware catalog (Hardware catalog: Other field devices > PROFINET IO > PLCs & CPs). 6. Assign the IO controller "PLC_1" to the I-device. 7. Select the "Shared Device" area in the properties of the I-device. In the table, all transfer areas and the PROFINET interface are assigned to the local IO controller (PLC_1). 8. Define the transfer areas to which the PLC_1 CPU should not have access. Select the "--" entry for these areas. These transfer areas are provided for PLC_2. 9. Save the project.
Procedure - Creating the PLC_2 project To create the second project with a shared I-device, follow these steps: 1. Start STEP 7 once again. A new instance of STEP 7 opens. 2. In the new instance, create a new project with the name "PLC_2". 3. Insert, for example, a CPU 1516-3 PN/DP in the network view. Assign the name "PLC_2". 4. Insert the I-device from the hardware catalog (Hardware catalog: Other field devices > PROFINET IO > PLCs & CPs). 5. Assign the IO controller "PLC_2" to the I-device. 6. Adapt the access to the transfer areas as in the PLC_1 project. Ensure that no duplicate assignments result.

152

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
7. Adapt the parameters of the subnet and PROFINET interface. Because the shared I-device involves the same device in different projects, these data must match.
8. Save the project.
Both projects now have an identically configured shared I-device. The IO controller access and the parameters of the PROFINET interface should still be checked in the different projects during the next step.
Summary - Assigning parameters for access to the shared device
The transfer areas are automatically assigned to the local IO controller. To change the assignment, follow these steps:
1. Click the "PLC_I-Device" device in the network view of the "PLC_1" project, and select the "Shared Device" area.
2. A table shows which CPU has access to each of the configured transfer areas. The default setting is that the local CPU has access to all modules and submodules.
3. Keep the setting "PLC_1" for all transfer areas that are to remain in the address range of the local CPU
Select the setting "---" for all transfer areas that are to be located in the address range of the "PLC_2" CPU from the "PLC_2" project. This means that an IO controller outside the project is to have access to the transfer area.
4. Follow the same procedure for the remaining projects.
5. Finally, check whether the settings for access are "complementary" for each module or submodule in both projects. This means that if the local CPU has access in one project, the option "---" must be set in the other project and vice versa.
Special consideration: The option "---" for the PROFINET interface and therefore for the ports makes the associated parameters read-only and not changeable. Parameters of the PROFINET interface and port parameters can only be edited in the project in which the PROFINET interface is assigned to the local CPU. The ports can be interconnected in both projects regardless of this.
6. Check whether the same IP address parameters and device name are set for the shared device in all projects.
Check whether the same S7 subnet ID is set in all projects for the subnet to which the shared device is connected (subnet properties, "General" area in the Inspector window).
Note
If you make changes to the I-device (e.g., change the number or length of the transfer areas):
Export the I-device as a GSD file again. Re-install the GSD file in each project that uses the I-device as a shared device. Make sure that only one IO controller has access to a transfer area.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

153

Functions 5.3 Shared device
Procedure - Adjusting the real-time settings To ensure that all IO controllers and shared devices are operated with the appropriate send clock and that the update times are calculated correctly based on the communication load, you must adjust and check the following settings: 1. You must set the same send clock for each IO controller that has access to modules and submodules of the shared device: ­ If you configure the IO controller with STEP 7 (TIA Portal): Open the corresponding project. Select the PROFINET interface of the IO controller. Select the "Advanced options > Real time settings > IO communication" area in the Inspector window and set the shared send clock. ­ If you configure the IO controller with a different engineering tool: Select the PROFINET interface of the shared device in STEP 7 (TIA Portal) and read out the send clock on the shared device ("Advanced options > Real time settings" area) Enter the read send clock in the engineering tool. ­ Special consideration: If you configure all IO controllers that have access to the shared I-device in STEP 7 (TIA Portal or V5.5), you can set shorter send clocks on the IO controller than supported by the shared device (send clock adaptation).
Compiling and loading You must compile the configurations for the different IO controllers and load them to the CPUs one after the other. Due to the distributed configuration with separate projects, STEP 7 does not output consistency errors in the case of incorrect access parameter assignment. Example for incorrect access parameter assignment:  Several IO controllers have access to the same module  IP address parameters or send clocks are not identical These errors do not show up until operation and are output as configuration errors, for example.
Note After a configuration has been loaded in the IO controller, non-assigned modules or submodules retain their current parameterization state to ensure the independence from the parameterizations of other IO controllers.

154

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device

5.3.4

Module-internal shared input/shared output (MSI/MSO)

Introduction

This section describes the module-internal shared input/shared output (MSI/MSO) functionality for I/O modules that are operated on PROFINET.

Module-internal shared input/shared output functionality
The module-internal shared input (MSI) function allows an input module to make its input data available to up to four IO controllers. Each controller has read access to the same channels.
The following figure shows the MSI functionality.

 CPU 1516-3 PN/DP as IO controller  CPU 1511-1 PN as IO controller  Input module with MSI  Read access to the input channels of the input module  Write access to the channels of the I/O module (only with MSO)
Figure 5-28 Example configuration with MSI
The module-internal shared output (MSO) function allows an output module to make its output data available to up to four IO controllers. An IO controller has write access to the channels of the output module. Up to three IO controllers can additionally have read-access to the channels.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

155

Functions 5.3 Shared device
The following figure shows the MSO functionality.

 CPU 1516-3 PN/DP as IO controller  CPU 1511-1 PN as IO controller  Output module with MSO  Write access to the output channels of the output module  Read access to the output channels of the output module
Figure 5-29 Example configuration with MSO
Advantages of MSI/MSO Module-internal shared input/shared output (MSI/MSO) offers the following advantages:  Real-time acquisition in multiple CPUs  Lower costs due to saving on additional IO devices and modules  Lower space requirements due to saving on additional IO devices and modules  Reduced communication load because no CPU-CPU communication is needed  No additional programming effort is needed for CPU-CPU communication

156

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
Requirements for the use of MSI/MSO Observe the following requirements:  MSI/MSO can only be used with PROFINET IO  Configuration software: STEP 7 (TIA Portal) as of V12 SP1 with GSD file; the modules are integrated in the hardware catalog as of V13.  The IM 155-5 PN ST interface module and the modules support MSI/MSO as of firmware version V2.0.0.
Boundary conditions for the use of MSI/MSO Note the following boundary conditions:  The use of MSI/MSO is not possible in the case of module grouping.  Modules with MSI/MSO cannot be operated in isochronous mode.  The maximum number of IO controllers is dependent on the interface module. To find out how many IO controllers the interface module supports, refer to the manual for the respective interface module.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

157

Functions 5.3 Shared device
MSI submodules
The input values of all channels are copied to a basic submodule and up to three other MSI submodules during MSI configuration of an input module. The channels of the module are then available with identical input values in the basic submodule and the MSI submodules. The MSI submodules can be assigned to up to three IO controllers when the module is used in a shared device. Each IO controller has read access to the same channels.
The following figure shows a digital input module with the basic submodule and three MSI submodules. Each submodule is assigned to an IO controller. Diagnostics and parameter assignment of the digital input module can be performed from the IO controller 1 via the basic submodule.

 Read access  Parameter assignment and system diagnostics
Figure 5-30 DI module with MSI submodules
Value status (Quality Information, QI) The meaning of the value status depends on the submodule to which it pertains. With basic submodule (= 1st submodule), the "0" value status indicates that the value is incorrect. With an MSI submodule (2nd to 4th submodule), the "0" value status indicates that the value is incorrect or the basic submodule has not yet been configured (not ready).

158

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
MSO submodules
During MSO configuration of an output module, the output values of all channels of the module are copied from a basic submodule to up to three other MSO submodules. The channels of the module are then available with identical values in the basic submodule and the MSO submodules. The MSO submodules can be assigned to up to three IO controllers when the module is used in a shared device.
 The IO controller to which the basic submodule is assigned has write access to the outputs of the module. The basic submodule therefore occupies output addresses in the process image of the IO controller.
 The IO controllers to which the MSO submodules are assigned have read access to the outputs of the module. MSO submodules therefore occupy input addresses in the process image of the IO controller.
The following figure shows a digital output module with the basic submodule and three MSO submodules. Each submodule is assigned to an IO controller. Diagnostics and parameter assignment of the digital output module can be performed from IO controller 1 via the basic submodule.

 Write access  Read access  Parameter assignment and system diagnostics
Figure 5-31 DQ module with MSO submodule

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

159

Functions 5.3 Shared device
Value status (Quality Information, QI) The meaning of the value status depends on the submodule to which it pertains. With basic submodule (= 1st submodule), the "0" value status indicates that the value is incorrect. With MSO submodule (= 2nd to 4th submodule) the "0" value status indicates that the value is incorrect or one of the following errors has occurred:  The basic submodule parameters have not yet been assigned (not ready for operation).  The connection between the IO controller and the basic submodule has been interrupted.  The IO controller of the basic submodule is in STOP or POWER OFF state.
Configuring I/O modules with MSI/MSO submodules
Requirements  Configuration software STEP 7 as of V13  IO device supports MSI/MSO (for example IM 155-5 PN ST as of firmware version 2.0.0)
Procedure 1. In the network view of STEP 7, insert an IM 155-5 PN ST interface module as of V2.0. 2. Double-click the IO device.
You are now in the device view.

160

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.3 Shared device
3. Place the I/O modules from the hardware catalog in a suitable slot. 4. Add MSI/MSO submodules to the I/O modules:
­ Input modules: Select the number of MSI submodules under "Module parameters " > "DI configuration" or "AI configuration" in the area "Copy of module for Shared Device (MSI)".
­ Output modules: Select the number of MSO submodules under "Module parameters " > "DQ configuration" or "AW configuration" in the area "Copy of module for shared device (MSO)".

Figure 5-32 Configuring I/O modules with MSI/MSO
Assigning MSI/MSO submodules to an IO controller You can assign the submodules in a shared device to an IO controller. For more information, refer to Configuring shared device (Page 142).
Configuring access to a shared device and the module-internal shared input / shared output (MSI /MSO) function
You can learn how to access a shared device and the MSI /MSO function in STEP 7 with this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109736536).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

161

Functions 5.4 Media redundancy (ring topologies)

5.4

Media redundancy (ring topologies)

In order to increase the network availability of an Industrial Ethernet network with optical or electrical linear bus topologies, you can convert a linear bus topology to a ring topology by joining the ends together.

Media redundancy in ring topologies
Devices in a ring topology can be IO devices, IO controllers, external switches and/or the integrated switches of communication modules.
To set up a ring topology with media redundancy, you need to bring together the two free ends of a linear bus topology in one device. Closing the linear bus topology to form a ring is achieved with two ports (ring ports) of a device in the ring. One device of the resulting ring then takes over the role of the redundancy manager. All other devices in the ring are redundancy clients.

 Redundancy manager  Test frames  Redundancy clients
Figure 5-33 Media redundancy in ring topology
The ring ports of a device are the ports that establish the connection to the two neighboring devices in the ring topology. The ring ports are selected and set in the configuration of the relevant device (is also preset, if applicable).

162

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies)
How media redundancy works in a ring topology
The data paths between the individual devices are automatically reconfigured if the ring is interrupted at any point. The devices are available again after reconfiguration.
In the redundancy manager, one of the two ring ports is blocked in uninterrupted network operation for normal communication so that no data frames are circulated. In terms of data transmission, the ring topology is a linear bus topology. The redundancy manager monitors the ring for interruptions. For this purpose, it sends test frames not only from ring port 1 but also from ring port 2. The test frames pass through the ring in both directions until they arrive at the other ring port of the redundancy manager.
An interruption of the ring can be caused by loss of the connection between two devices or by failure of a device in the ring.
If the test frames of the redundancy manager no longer arrive at the other ring port during an interruption of the ring, the redundancy manager connects its two ring ports. This substitute path once again restores a functioning connection between all remaining devices in the form of a linear bus topology.
The time between the ring interruption and restoration of a functional linear topology is known as the reconfiguration time.
As soon as the interruption has been eliminated, one of the two ring ports is blocked again in the redundancy manager. The redundancy clients are informed about the change and use the original paths to the other devices again.
Media redundancy method
The standard method of media redundancy in SIMATIC is MRP (Media Redundancy Protocol) with a typical reconfiguration time of 200 ms. Up to 50 devices can participate per ring.
In addition, the real-time capable media redundancy process MRPD (Media Redundancy with Planned Duplication of frames) is also available.

5.4.1

Media Redundancy Protocol (MRP)

Media Redundancy Protocol (MRP)
The "MRP" process works in conformity with the Media Redundancy Protocol (MRP) that is specified in the standard IEC 62439-2.

Requirements

 All devices in the ring support MRP.
 You have complied with the rules for topology set out below. STEP 7 monitors compliance with the rules during compilation and outputs corresponding alarms.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

163

Functions 5.4 Media redundancy (ring topologies)

Topology

The following schematic shows a possible topology for devices in a ring with MRP. The devices inside the shaded oval are in the redundancy domain.
Example of a ring topology with the MRP media redundancy protocol:

Figure 5-34 Example of a ring topology with the MRP media redundancy protocol:
The following rules apply to a ring topology with media redundancy using MRP:
 All devices must be connected to one other via their ring ports.
 All devices in the ring belong to the same redundancy domain.
 A device in the ring takes on the task of a redundancy manager.
­ One device only has the role of "Manager". No other device may have the role of "Manager". Or
­ Several devices in the ring have the role of "Manager (auto)". The devices with the role of "Manager (auto)" then negotiate between themselves which device is to take on the role of redundancy manager. In this case, no device is permitted to have the role of "Manager".
 All other devices in the ring are redundancy clients.
 You can connect up to 50 devices in a ring.
Non MRP-compliant devices can, for example, be connected to the ring via a SCALANCE X switch or via a PC with a CP 1616.

164

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies)
Rules for loading the devices of an MRP domain When loading devices of an MRP domain, frame loops can occur and result in network failure if there is an invalid MRP configuration. Example: You change the MRP roles of several devices and consecutively load the configuration into the devices involved. Configurations can arise that contradict the roles mentioned above, for example, there may be devices that simultaneously have the "Manager" and "Manager (auto)" roles in the ring. In order to ensure that an invalid MRP configuration does not result in the failure of the network, delete the ring before loading. Follow these steps: 1. Delete the ring. 2. Load the error-free and consistent MRP configuration from your project onto all the devices involved and ensure that the devices are in data exchange mode (i.e. the application relations (ARs) are set up). 3. Close the ring.
Boundary conditions
MRP and RT RT operation is possible with the use of MRP.
Note The RT communication is disrupted (station failure) if the reconfiguration time of the ring is greater than the selected response monitoring time of the IO device. This is why you should select a response monitoring time of the IO devices that is sufficiently large.
MRP and IRT IRT mode is not possible together with MRP. If you want to use media redundancy together with IRT in a ring, only use devices that support MRPD.
MRP and TCP/IP (TSEND, HTTP, ...) The TCP/IP communication with MRP is possible, because lost data packages are resent, if applicable.
MRP and prioritized startup If you configure MRP in a ring, you cannot use the "prioritized startup" function in PROFINET applications on the devices involved. If you want to use the "prioritized startup" function, then you must disable MRP in the configuration (the device may also not be part of the ring).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

165

Functions 5.4 Media redundancy (ring topologies)
Information on S7-1500R/H You can find information on the media redundancy method MRP of the redundant S7-1500R/H system in section Configuring PROFINET IO on a redundant S7-1500R/H system (Page 281).
Application example: Reading the MRP status in the user program The "LPNDR_ReadMRPState" function block from the "LPNDR" block library helps you to determine the status of the MRP ring per program. The block reads the MRP information from the PROFINET device (MRP Manager) and outputs the status. The "LPNDR" block library and the corresponding documentation can be found in this application example (https://support.industry.siemens.com/cs/ww/de/view/109753067).

5.4.2

Configuring media redundancy

Configuring MRP
Proceed as follows to create a PROFINET IO configuration with MRP in STEP 7:
1. Generate a ring via the port interconnections in the topology view. First interconnect the devices to a line topology. Connect the unassigned port of the last device in the line with the unassigned port of the first device. The following example shows one CPU 1516-3 PN/DP and two interface modules IM 155-6 PN HF that are interconnected in a ring in the topology view of STEP 7.

Figure 5-35 Configuring media redundancy
2. Select the PROFINET IO system in the network view.
3. In the Inspector window, navigate to "Properties" > "General" > "PROFINET" > "MRP domains" in the "Ring interconnections" field. This field shows you all the topological rings in the IO system with the associated MRP domains.

166

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies) 4. Select the ring generated above in the "Ring interconnections" field. The table below it shows all the PROFINET devices in the ring. 5. Set the media redundancy role for the PROFINET devices in the MRP role column.
Figure 5-36 MRP domain
Automatic MRP configuration You can also have the media redundancy roles assigned automatically for your PROFINET devices in the ring. To have the media redundancy roles assigned automatically, click the "Configure MRP automatically" button. STEP 7 automatically assigns the media redundancy role for each device in the ring. After the automatic MRP configuration, you can make modifications to the media redundancy roles in the "MRP role" column.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

167

Functions 5.4 Media redundancy (ring topologies)

"Media redundancy" setting options
Media redundancy role
Depending on the device used, the roles "Manager", "Manager (Auto)", "Client" and "Not device in the ring" are available.
Rules:
 A ring must have precisely one device with the role "Manager". No additional devices with the role "Manager" or "Manager (Auto)" are permissible. All the other devices may only have the "Client" role.
 If a ring has no device with the "Manager" role, the ring must at least have a device with the role "Manager (Auto)". Any number of devices with the "Client" role may exist.
 Managers and clients of an MRP domain can be configured in different projects. In the project without a manager, you need to select the "Redundancy manager outside the project" option so that the configuration can be compiled. For multiple ring configurations, you need to set the option identically for each MRP domain.
Ring port 1 / Ring port 2
Select one at a time those ports you want to configure as ring port 1 or ring port 2. The dropdown list box shows the selection of possible ports for each device type. If the ports are set at the factory, then the fields are unavailable.
If you use single-stage commissioning, use the preset ring ports in STEP 7.

Diagnostic interrupts
If diagnostic interrupts to the MRP state are to be output in the local CPU, select the "Diagnostic interrupts" check box. The following diagnostic interrupts can be configured:
 Wiring or port error
Diagnostic interrupts will be generated for the following errors in the ring ports:
­ A neighbor of the ring port does not support MRP.
­ A ring port is connected to a non-ring port
­ A ring port is connected to the ring port of another MRP domain.
 Interruption / return (redundancy manager only)
If the ring is interrupted and the original configuration is returned, diagnostic interrupts will be generated. If both of these interrupts occur within 0.2 seconds, this indicates an interruption of the ring.
You can respond to these events in the user program by programming the appropriate response in the diagnostic error interrupt OB (OB 82).

Reference

You can find the procedure for configuring a common MRP ring and the topology with two projects in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109741671).

168

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies)

5.4.3

Media redundancy with planned duplication of frames (MRPD; not for S7-1500R/H)

MRP extension "Media Redundancy with Planned Duplication of frames" (MRPD)
The MRP extension "Media Redundancy with Planned Duplication of frames" (MRPD) provides the advantage that, in the case of a failure of a device or a line in the ring, all other devices continue to be supplied with IO data without interruption and with short update times.
MRPD is based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

Requirements for media redundancy with MRPD
 All the devices of the ring must support MRPD, for example interface module IM 155-6 PN HS as of firmware version 4.0.
 You have configured MRP for all the devices of the ring. You have assigned the MRP role "Not device in the ring" to devices that are not located in the ring.
 You have configured IRT for all the involved components.

Configuring MRPD
You do not have to explicitly activate MRPD in STEP 7. The function is available automatically as soon as all the requirements for MRPD are fulfilled.

Redundancy levels of IO devices with MRPD
The redundancy level of an IO device specifies how strongly the real-time communication is influenced in the case of a power interruption between an IO device and its IO controller.
 Full redundancy: No influence, because the IO controller and IO device are located in the same ring.
 Partial redundancy:
­ If the interruption takes place on a non-redundant part (line) between the IO device and IO controller, real-time communication is influenced.
­ If the interruption takes place on a redundant part (ring), real-time communication is not influenced.
 No redundancy: No redundant path between the IO device and its IO controller, communication is always influenced.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

169

Functions 5.4 Media redundancy (ring topologies)
The figure below shows the redundancy levels of the IO devices for an example configuration with MRPD. The three devices in the ring and the switch have the redundancy level "Full redundancy". Device 4 has the redundancy level "Partial redundancy", because the connection between the switch and the device is not redundant.

 IO controller in the ring  IO device in the ring with redundancy level "Full redundancy"  Switch in the ring with redundancy level "Full redundancy"  IO device in the spur with the redundancy level "Partial redundancy"
Figure 5-37 Example configuration with MRPD
The figure below shows the display of the redundancy levels in STEP 7 for the example configuration.
Figure 5-38 Display of the redundancy levels in STEP 7

170

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies)

5.4.4

Multiple rings

Multiple rings

Use multiple rings to achieve higher availability for PROFINET IO networks with star topology.
In a multiple ring configuration, several PROFINET lines lead from a switch (star topology). The individual PROFINET lines lead from IO device to IO device. Redundant PROFINET cables run back to the switch from the last IO device on each individual line.
The switch operates as a manager. The manager must have two ring ports for each ring. Multiple rings are possible. The SCALANCE X414 as of firmware version 3.10, for example, supports up to 4 rings.
The manager monitors all the rings individually: It checks for each particular ring (an MRP domain) whether the transmission path is intact. To do this, it uses an MRP instance in each case. An MRP instance is required for each connected ring (set up automatically by STEP 7).

Figure 5-39 Configuration with several rings

Requirements

 SCALANCE X414 as of version 3.10  SCALANCE X300 as of version 4.0 (configured via GSD file)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

171

Functions 5.4 Media redundancy (ring topologies)
Rules for the configuration of multiple rings  MRP role at multiple rings: ­ The device that belongs to all the rings must have the MRP role in every instance that is entered in the GSD file in the "SupportedMultipleRole" attribute. ­ The switches from the series SCALANCE X300 as of version 4.0 and the switch X414 as of version 4.10 support the MRP role "Manager" for multiple rings.  If the device that belongs to all rings has the "Manager" role in one ring, no devices with the "Manager (Auto)" role may exist in this ring.
Configuring multiple rings To configure an MRP configuration with multiple rings, follow these steps: 1. In the topology view, interconnect the ring ports of the devices that are intended to belong to an MRP domain to form a ring. 2. Select the PROFINET IO system in the network view. 3. In the Inspector window, navigate to "Properties" > "General" > "PROFINET" > "MRP domains" in the "Ring interconnections" field. This field shows you all the topological rings in the IO system with the associated MRP domains. 4. Select one of the rings generated above in the "Ring interconnections" field. The table below it shows all the PROFINET devices in the ring. 5. Set the media redundancy role for the PROFINET devices in the MRP role column.
Example of multiple rings The following figure shows an example configuration for multiple rings.
Figure 5-40 Example configuration with two rings  and 

172

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.4 Media redundancy (ring topologies)
In the example, Switch 1 belongs to two MRP rings. Ring 1 is formed by Switch 1 and PLC 1, Ring 2 by Switch 1 and IO device 1.
STEP 7 automatically assigns the "Manager" role to the switch. The other devices receive the "Client" role.
The manager is located at the point of intersection of the two rings 1 and 2. The manager monitors the two rings separately. To do this, it uses two MRP instances.
One MRP instance checks whether all devices in ring 1 are reachable, another instance monitors whether all devices in ring 2 are reachable (only one device in each case in the example).
You can configure each MRP instance separately.
The following figure shows the two MRP instances in the manager (PROFINET interface of the switch). Here in the example, MRP instance 1 checks whether the devices in the MRP domain "mrpdomain-1" can be reached. The MRP instance 2 is responsible for monitoring the devices of the MRP domain "mrpdomain-2".

Figure 5-41 Setting media redundancy for multiple rings
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

173

Functions 5.4 Media redundancy (ring topologies)
The following figure shows Ring 1 (mrpdomain-1). The participants of the mrpdomain-1 are the PROFINET interface of the CPU as the "Client" and the MRP interface 1 of the PROFINET interface of the switch as the "Manager".

Figure 5-42 Ring 1
The following figure shows Ring 2 (mrpdomain-2). The participants of the mrpdomain-2 are the PROFINET interface of the IO device as the "Client" and the MRP instance 2 of the PROFINET interface of the switch as the "Manager".

Figure 5-43 Ring 2
174

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.5

Real-time communication

Functions 5.5 Real-time communication

5.5.1

Introduction

Properties

PROFINET IO is a scalable real-time communication system based on the Layer 2 protocol for Fast Ethernet. With the RT transmission method, two real-time-support performance levels are available for time-critical process data and IRT for high-accuracy and also isochronous processes .

Figure 5-44 Real-time communication performance
Real-time communication and IT communication Industrial communication, especially in the factory automation and process automation, requires a punctual and deterministic data transmission. This is why, for the cyclic exchange of time-critical IO user data, PROFINET IO does not use TCP/IP, it uses real-time communication (RT) or isochronous real-time communication (IRT) for the synchronized data exchange in reserved time intervals.
Fields of application of PROFINET with RT PROFINET with RT is suited for:  Time-critical applications in factory automation  The implementation of large quantity structures in line process plants

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

175

Functions 5.5 Real-time communication
Fields of application of PROFINET with IRT PROFINET with IRT is particularly suitable for:  Considerable deterministics with large quantity structures concerning the I/O user data communication (productive data)  Considerable performance also with many devices concerning the I/O user data communication (productive data)  Parallel transfer of productive and TCP/IP data via a cable, even with considerable data traffic whilst ensuring the forwarding of productive data by reserving the transmission bandwidth.
International standard IEC 61158 The communication procedures RT and IRT are standardized in the international standard IEC 61158.

5.5.2

RT
PROFINET IO with real-time communication (RT) is the ideal solution for integrating IO systems. This is a solution that also uses standard Ethernet in the devices and commercially available industrial switches as infrastructure components. A special hardware support is not required.
If you want to use PROFINET functions that provide an additional value, such as topology detection, diagnostics, device exchange without exchangeable medium/PG, you have to use switches that support the PROFINET standard according to the IEC 61158 standard. In the integrated switches of PROFINET devices and PROFINET switches (e.g., the SCALANCE product family), PROFINET functions in accordance with the PROFINET standard are implemented and can be used without restriction for integration in the PROFINET IO system (see also section Active network components (Page 28).

Real-time communication (RT)
PROFINET IO frames have priority over standard frames in accordance with IEEE802.1Q. This ensures the required determinism in the automation technology. The data is transferred via prioritized Ethernet frames. With RT, you can achieve update times  250 s with RT.

Switching mechanisms
Switches in SIMATIC meet the real-time requirements with two mechanisms on PROFINET: "Store and forward" and "Cut through".

Store and forward
In the Store and forward method, the switch stores the frames completely and places them in a queue. If the switch supports the international standard IEEE 802.1Q, then the data is sorted according to its priority in the queue. The frames are then forwarded selectively to the specific port that can access the addressed node (Store and forward).

176

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication

Cut through

In the Cut through process the entire data package is not stored temporarily in a buffer, it is passed directly onto the target port as soon as the target address and the target port have been determined.
The times required by the data package to pass through the switch are then minimal and independent of the frame length. The data are only stored temporarily in accordance with the Store and forward process as per priority when the section between the target segment and the port of the next switch is occupied.

5.5.3

IRT

Isochronous real-time communication (IRT)
IRT is a synchronized communication protocol for cyclic exchange of IRT data between PROFINET devices. A reserved bandwidth is available in the send cycle for IRT data. The reserved bandwidth ensures that the IRT data can be transferred at reserved synchronized intervals, without being influenced also by higher other network loads (such as TCP/IP communication, or additional real-time communication).

Advantages

PROFINET with IRT is synchronized communication in reserved time intervals. With IRT you have the option to be able to control time-critical applications such as motion control via PROFINET. With IRT you use further advantages:
 High-precision deterministics allow highest control quality and thus, for example, exact positioning of axes
 Simple and flexible integration of PROFINET devices for real-time applications in existing company networks
 Shortest response times and highest deterministics by means of bandwidth reservation and thus also for applications that have to satisfy highest performance requirements (e.g., printing control/position control for presses, print-mark recognition with packaging machines)
 Secured standard communication parallel to real-time communication via the same transmission medium
 You can continue to use standard components for your PROFINET IO system outside of the sync domain

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

177

Functions 5.5 Real-time communication
Properties of isochronous real-time Topology configuration is a prerequisite for IRT. In addition to the reserved bandwidth, the frames from defined transmission paths are exchanged for the further optimization of data transfers. For this, the topological information from the configuration is used for planning the communication. Transmission and reception points of every individual data frame at every communication node are thus guaranteed. This allows you to achieve optimal usage of the bandwidth and reach the best possible performance in the PROFINET IO system. Use of IRT allows you to achieve update times with very high deterministics  125 µs and a jitter accuracy of the send clock < 1 µs. Isochronous applications are possible with IRT (see section Isochronous mode (Page 200)). * The minimum update time depends on the CPU used. The update times supported by a CPU are listed in the technical specifications of the CPU manual.
Note IWLAN and IRT PROFINET devices that are connected to PROFINET IO via access points, do not support IRT.
Synchronization The prerequisite for the IRTcommunication is a synchronization cycle for all PROFINET devices in a sync domain for distributing a mutual time basis. A synchronism of the transmission cycle of the PROFINET devices within a sync domain is achieved with this basic synchronization. A sync master specifies the clock to which sync slaves are synchronized. An IO controller or an IO device can have the role of sync master. If the sync master fails, all IO devices with IRT will fail. Sync master and sync slaves are always devices in a sync domain. Bandwidth is reserved within the sync domain for IRT communication. Real-time and non-real-time communication (TCP/IP communication) is possible outside of the reserved bandwidth.
Default sync domain If you have created a PROFINET subnet, a special sync domain is automatically created, the default sync domain. All PROFINET devices configured for the PROFINET subnet automatically belong to this sync domain. For additional information on creating sync domains, refer to the STEP 7 online help.

178

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication
Time ranges of the communication cycle The communication cycle is divided into three time ranges, which are shown in the following chart:
Figure 5-45 Reserving bandwidth
 IRT data (synchronized communication) This time range can be reserved in specific steps, depending on the send clock. Only IRT data is transmitted during this time range.
 RT data (real-time communication) The cyclic RT data is transferred in this time range. RT data is prioritized over "normal" TCP/IP data. TCP/IP data or Ethernet frames can have a priority of between 1 and 7. RT data have the Priority 6.
 TCP/IP data (standard communication) Standard communication (e.g., TCP/IP) is transmitted in the remaining interval of the communication cycle.
In STEP 7, you can set the ratio of the bandwidth usage of cyclic IO data to standard communication. For information on how to set the bandwidth usage, refer to the section Setting the bandwidth usage for the send clock (Page 183)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

179

Functions 5.5 Real-time communication

5.5.4

Comparison of RT and IRT

The most important differences between RT and IRT

Table 5- 2 Comparison between RT and IRT

Property Transmission method
Determinism
Hardware support through special Ethernet controllers is required Isochronous application Starting time of the isochronous application

RT Prioritizing the RT frames through Ethernet priority (VLAN tag)
Variance of the duration of transmission by the shared use of the transmission bandwidth with other protocols (e.g., TCP/IP) Not required
-

IRT Path-based switching on the basis of a communication path plan; no transmission of TCP/IP frames in the time range with IRT communication. Exact, planned transmission, transmission and reception times are guaranteed for all topologies.
Required
Yes The point in time for the reception of the data is planned exactly. Application can be started synchronized to the cycle.

5.5.5

Configuring PROFINET IO with IRT

Introduction

If you want to configure a PROFINET IO system with IRT, you have to configure the PROFINET IO devices. These PROFINET devices must support IRT. Set which device acts as the sync master and synchronizes the other devices. This is done by configuring a sync domain with a sync master and at least one sync slave.

Requirement

 There is an IO system with an IO controller and at least one IO device.  You have configured the topology for the IO system.  The devices support IRT.

180

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Procedure

Functions 5.5 Real-time communication
Proceed as follows to enable an existing IO system for the use of IRT: 1. Select the PROFINET interface of the IO controller. 2. In the Inspector window, navigate to "Advanced options > Real time settings >
Synchronization".

Figure 5-46 IRT configuring sync master
3. Assign the IO controller the role of sync master under "Synchronization role". 4. Select the PROFINET interfaces of an associated IO device.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

181

Functions 5.5 Real-time communication
5. In the Inspector window, navigate to "Advanced options > Real time settings > Synchronization".

Figure 5-47 IRT configuring sync slave
6. Activate the RT class "IRT". The IO device will then automatically be assigned the synchronization role "sync slave".
7. You can check and correct your settings at any time using the "Domain settings" button. Or 1. Highlight the PROFINET IO system in the network view. 2. Click on the PROFINET IO system.

182

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication
3. Navigate to the device of the required sync domain in the Inspector window.

Figure 5-48 IRT configuring sync domain
4. Enter all necessary settings in the tables: ­ Select an IO system. ­ Set the synchronization role "sync master" for the IO controller. ­ Set the RT class for the IO devices to "IRT". The IO devices will then automatically be assigned the synchronization role "sync slave".
You can now load the configuration to the relevant devices with PROFINET IRT.

5.5.6

Setting the bandwidth usage for the send clock

Bandwidth level For PROFINET IO with IRT, you can specify the maximum portion of the send cycle that you want to use for cyclic IO communication.
You have the following setting options for the bandwidth usage in STEP 7.
 Maximum 25% cyclic IO data. Focus on non-cyclic data.
 Maximum 37.5% cyclic IO data. Focus on non-cyclic data.
 Maximum 50% cyclic IO data. Balanced proportion.
 Maximum 90% cyclic IO data. Focus on cyclic IO data. (Requirement: The "Make 'high performance' possible" option is activated)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

183

Functions 5.5 Real-time communication
Setting the bandwidth usage To set the bandwidth usage for a PROFINET IO system in STEP 7, follow these steps: 1. Select your IO system in the network view of STEP 7. 2. In the Inspector window, go to "Properties" > "General" > "PROFINET" > "Domain management" > "Sync domains" > "Name of the sync domain" > "Details". 3. Select the desired level of bandwidth usage from the "Bandwidth use" drop-drop down list box.
Figure 5-49 Setting the bandwidth usage
For information on how to set the bandwidth usage for IRT with maximum performance, refer to the section Configuration of IRT with high performance (Page 195)

184

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication

5.5.7

Setup recommendations for optimizing PROFINET

Optimizing PROFINET with RT PROFINET provides you with high-performance communication on all levels. The following figures shows an example of an optimized PROFINET topology.

Figure 5-50 Optimized PROFINET topology
When setting up your PN network topology, take care that the various automation applications are distributed among separate network branches so that a sufficient bandwidth reserve will be available for future expansions.
 If you integrate standard Ethernet devices into the network topology or use standard Ethernet communication, take into account the network load caused by standard Ethernet and adapt the network topology as appropriate (max. bandwidth 100 Mbps).
 For communication with higher-level networks with a high data volume, use the most direct paths possible to the higher-level network infrastructure.
Also observe the Installation Guideline (http://www.profibus.com/nc/download/installationguide/downloads/profinet-installation-guide/display/) of the PROFIBUS User Organization.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

185

Functions 5.5 Real-time communication
Setting up PROFINET with IRT
Keep in mind the following rules for setting up and operating a PROFINET IO system in IRT mode. These rules will ensure best possible operation of your PROFINET IO system.
 When using IRT, you must configure the topology. This will enable exact calculation of the update time, bandwidth, and other parameters.
 If you would like to use multiple sync domains, configure a sync boundary for the port which is currently connected to the PROFINET device of another sync domain.
 In a sync domain, you can only configure one sync master at a time.
 A PROFINET IO system may only be part of a single sync domain.
 If you configure PROFINET devices in a sync domain and want to synchronize with IRT, the PROFINET devices concerned must support IRT communication.
 If possible, use the same PROFINET device as the PROFINET IO controller and sync master.
 If only some of the PROFINET devices in a PROFINET IO system are synchronized, please keep in mind the following: Assign PROFINET devices that are not participating in the IRT communication to the RT class "RT" and the synchronization role "unsynchronized" in the sync domain.

186

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication
Applications for CPU with multiple PROFINET IO interfaces  Connecting machines: Your configuration contains machines located on separate IO lines. You can perform real-time communication between the CPUs over PROFINET IO interface X2. Use the I-device or shared I-device function for this purpose. The figure below shows an example configuration for two machines connected over the X2 interface with an I-device relationship.

Figure 5-51 I-device connection over 2nd PNIO interface
 Distribution by automation tasks: ­ For automation tasks with high performance and deterministic requirements, use PROFINET with IRT over the X1 interface. ­ For other tasks that you can implement with RT, use the X2 interface.
If you use interface X2 as the PROFINET IO interface for one of the following CPUs, this can affect performance:  CPU 1515(F)-2 PN  CPU 1515T(F)-2 PN  CPU 1516(F)-3 PN/DP  CPU 1516T(F)-3 PN/DP  CPU 1516(F)pro-2 PN You can find additional information in the section PROFINET interface (Page 23) and in the Cycle and Response Times (https://support.industry.siemens.com/cs/ww/en/view/59193558) function manual.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

187

Functions 5.5 Real-time communication
Topological overlap of IO systems in multi-controller applications In a configuration with multiple IO controllers, shared paths are subject to the combined network loads of all connected PROFINET IO systems. To avoid high communication loads in multi-controller applications, observe the following recommendations:  Avoid paths that are shared by multiple IO systems. The figure below shows a configuration with two PROFINET IO systems that use the same paths.
 Shared path
Figure 5-52 Multi-controller application with shared path
In the figure below, the two PROFINET IO systems do not use shared paths.
Figure 5-53 Multi-controller application with separate paths
 If separation is not possible: Increase the update time for the affected IO devices.
Installation guidelines of the PROFIBUS user organization The installation guidelines can be found on the Internet (http://www.profibus.com/nc/download/installation-guide/downloads/profinet-installationguide/display/).

188

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.5 Real-time communication

5.5.8

Limitation of the data infeed into the network

Limiting the data infeed into the network on PROFINET interfaces
The "Limit data infeed into the network" function limits the network load of standard Ethernet communication which is fed into the network by the interface to a maximum value. This does not apply to cyclic real-time communication (RT/IRT).
In a PROFINET IO system, critical network loads can occur quickly with standard Ethernet communication, especially in line topologies. Devices which feed a lot of standard Ethernet communication into the PROFINET IO system, should support the function "Limit data infeed into the network". If necessary, you should optimize your topology by avoiding e.g. standard Ethernet devices in line topologies. You can find additional information on this in section Setup recommendations for optimizing PROFINET (Page 185).
Depending on the interface, you can activate or deactivate the "Limit data infeed into the network" function. If you use the X1 interface of an S7-1500 CPU as the IO controller or Idevice, the "Limit data infeed into the network" function is always enabled. Example: If you are not using the X1 interface of an S7-1500 CPU as IO controller or I-device, you can enable or disable the function.

Uses of the limitation of the data infeed to the network
 Division of the bandwidth for standard Ethernet communication between devices: In PROFINET networks cyclic real-time communication and standard Ethernet communication share the same network. This means that only a limited bandwidth remains for standard Ethernet communication. The limitation of the data infeed ensures that the remaining bandwidth for standard Ethernet communication is not used just by one device, but is divided between several devices.
 Smoothing peaks in the data infeed: The limitation of the data infeed smooths peak loads of standard Ethernet communication (for example, from Open User Communication, access by the Web server).
 Limiting problems in the data infeed: If applications in a device generate too much data, this data is not forwarded to the PROFINET network. Negative effects (for example data loss, communication breakdown) remain limited to the device and its communications partner. Other nodes are not disturbed.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

189

Functions 5.6 PROFINET with performance upgrade
Setting limitation of the data infeed into the network for a CPU To set the limitation of the data infeed into the network, follow these steps: 1. In the network view of STEP 7, select the interface of the CPU. 2. In the Inspector window, go to "Properties" > "General" > "Advanced options" > "Interface options". 3. Select or clear the "Limit data infeed into the network" check box.

Figure 5-54 Limit data infeed into the network

5.6

PROFINET with performance upgrade

Performance upgrade
The performance upgrade implements the application class "High Performance" of the PROFINET specification V2.3.
The performance upgrade provides a series of measures that lead to the following improvements for PROFINET with IRT:
 Reduction of runtime delays in the IO devices
 Increase in the bandwidth for cyclic IO data
 Reduction of the bandwidth used for PROFINET frames
 Reduction of the send clocks
The improvements achieved with the performance upgrade mean that you can operate your PROFINET IO system with more devices with the same send clock or the same number of devices with a shorter send clock.
With PROFINET, it was previously possible to reach a send clock of 250 µs.
With the performance upgrade, it is now possible to achieve isochronous send clocks of up to 125 µs with the fast forwarding, dynamic frame packing and fragmentation procedures, depending on the performance capability of the CPU (see Technical Specifications in the device manuals). With short send clocks, standard communication remains possible.
The performance upgrade will help you to implement applications with high speed and send clock requirements.

190

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.6 PROFINET with performance upgrade

5.6.1

Dynamic frame packing

Dynamic frame packing
Previously, individual PROFINET IO frames were sent for every PROFINET IO device.
The performance upgrade uses the dynamic frame packing procedure that is based on the summation frame method. With the summation frame method, a frame contains the user data for neighboring devices on a line. With Dynamic Frame Packing, every IO device takes its data from the frame and forwards the rest. The frame is shortened from IO device to IO device. Dynamic frame packing improves the use of the bandwidth in a line topology.
The following figure shows how Dynamic Frame Packing works based on the example of a frame containing the user data for 3 IO devices.

 The PROFINET IO frame contains the user data for all 3 IO devices (green, blue and orange).  The PROFINET IO frame reaches the first IO device. The IO device takes its user data (green)
from the frame and forwards the remaining frame.
 The PROFINET IO frame contains the user data for two IO devices (blue and orange).  The PROFINET IO frame reaches the second IO device. The IO device takes its user data
(blue) from the frame and forwards the remaining frame.
 The PROFINET IO frame contains the user data for one IO device (orange).  The PROFINET IO frame reaches the last IO device. The IO device saves the entire frame
including user data (orange).
Figure 5-55 Dynamic Frame Packing (DFP)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

191

Functions 5.6 PROFINET with performance upgrade

DFP groups

Dynamic frame packing automatically groups IO devices that support the performance upgrade into DFP groups. To be grouped together in a DFP group. the IO devices must be located one after the other in a line and must have the same update time and watchdog time. As soon as a maximum frame size for the DFP group is exceeded or a maximum number of members for a DFP group is reached, Dynamic Frame Packing automatically opens a new DFP group.
STEP 7 shows the DFP groups in "Domain management" > "Sync domains" > "Name of the sync domain" > "Device" in the "IO devices" box.

Figure 5-56 Display of the DFP groups in STEP 7
Note Dynamic frame packing with high watchdog times If you set the "Accepted update cycles without IO data" parameter higher than 31 for an IO device, Dynamic Frame Packing does not place this IO device in a DFP group.

192

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.6.2

Functions 5.6 PROFINET with performance upgrade
Fragmentation
The transfer of a complete standard Ethernet frame with TCP/IP data takes up to 125 µs. This means that the cycle time for PROFINET IO data cannot be reduced by any desired amount.
The performance upgrade uses the fragmentation procedure, which breaks down TCP/IP frames into sub-frames. These frame segments are transferred to the target device over multiple send clocks; there they are reassembled to the original TCP/IP frame.
Fragmentation is a requirement for cycle times lower than 250 µs. In these short send clocks, you can use more bandwidth for cyclic IO data, since the fragments of the standard Ethernet frames use significantly less bandwidth than a complete standard Ethernet frame.
The following figure shows how fragmentation works.

 A standard Ethernet frame with TCP/IP data is up to 125 µs.  During fragmentation, the standard Ethernet frame is divided into frame segments.  The frame segments are divided into multiple short send clocks.
Figure 5-57 Fragmentation
Note The PROFINET IO interface of the IO controller supports fragmentation if all the ports except one are deactivated.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

193

Functions 5.6 PROFINET with performance upgrade

5.6.3

Fast forwarding
To be able to decide whether a frame should be forwarded or used, a PROFINET IO device requires the frame ID. It previously took 1440 ns until the frame ID was present in the IO device.
The performance upgrade uses the fast forwarding procedure in which the frame ID is located nearer the front of the frame. The throughput time in the device is reduced to 320 ns.
With fast forwarding, the throughput time of the frame is reduced in your PROFINET IO system. This results in decisive performance advantages, particularly in line, ring and tree topologies.
The figure below compares the throughput of a PROFINET IO frame in an IO device with and without fast forwarding.

 Start:
· Both PROFINET frames reach the IO device. The IO devices start to check the frames for the frame ID
 After 320 ns:
· Without fast forwarding: The IO device is still checking the PROFINET frame for the frame ID.
· With fast forwarding: The IO device receives the frame ID from the PROFINET frame and forwards the frame.
 After 1440 ns:
· Without fast forwarding: The IO device receives the frame ID from the PROFINET frame and forwards the frame.
· The PROFINET frame with fast forwarding is "ahead" of the PROFINET frame without fast forwarding.
Figure 5-58 Fast forwarding

194

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.6 PROFINET with performance upgrade

5.6.4

Configuration of IRT with high performance
High-end applications with IO communication require excellent performance in IO processing, for example in the control of wind turbines (converter control).
To use IRT communication with the highest performance in your PROFINET IO system, enable the option "Make 'high performance' possible".
When you enable the "Make 'high performance' possible" option, this has the following effects:
 You can set send clocks of 187.5 µs and 125 µs (for example CPU 1518-4 PN/DP) or 187.5 µs (for example CPU 1517-3 PN/DP), see Technical specifications in the CPU device manuals.
 You can set more bandwidth use for cyclic IO data.
 You can use the option "Allows the use of 'fast forwarding'".

Requirements  S7-1500 CPU as of firmware version V2.0

Enable the "Make 'high performance' possible" option. Follow these steps to activate the "Make 'high performance' possible" option: 1. Select the PROFINET IO system in the network view of STEP 7. 2. In the Inspector window, go to "Properties" > "General" > "PROFINET" > "Domain management" > "Sync domains" > "Name of the sync domain". 3. Enable the "Make 'high performance' possible" option.

Figure 5-59 Activating high performance

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

195

Functions 5.6 PROFINET with performance upgrade
Using more bandwidth for cyclic IO data Requirement: The "Make 'high performance' possible" option is enabled. To set more bandwidth for cyclic IO data for your PROFINET IO system, follow these steps: 1. Select your IO system in the network view of STEP 7. 2. In the Inspector window, go to "Properties" > "General" > "PROFINET" > "Domain management" > "Sync domains" > "Name of the sync domain" > "Details". 3. In the drop-down list, select "Maximum 90% cyclic IO data. Focus on cyclic IO data".
Figure 5-60 Using more bandwidth for cyclic IO data
Note Bandwidth usage in isochronous mode If you operate your PROFINET IO system in isochronous mode, avoid using the setting for the bandwidth usage "Maximum 90% cyclic IO data. Focus on cyclic IO data."
Setting low send clocks (example CPU 1518-4 PN/DP) Requirement: The "Make 'high performance' possible" option is enabled. 1. Select the PROFINET IO system in the network view of STEP 7. 2. In the Inspector window, go to "Properties" > "General" > "PROFINET" > "Domain management" > "Sync domains" > "Name of the sync domain". 3. Select the send clock for "Send clock" in the drop-down list.

Figure 5-61 Setting low send clocks
196

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.6 PROFINET with performance upgrade
Requirements for the fragmentation process (example CPU 1518-4 PN/DP) If you use the following combinations for send clock and bandwidth settings, the devices in the IO system use the fragmentation process.  Send clock cycle 125 µs: Always fragmentation irrespective of the bandwidth setting.  Send clock cycle 187.5 µs: Fragmentation with the bandwidth settings "Maximum 50% cyclic IO data. Balanced proportion." and "Maximum 90% cyclic IO data. Focus on cyclic IO data." The PROFINET IO interface of the controller supports fragmentation if all the ports except one are deactivated.
Optimizing port settings for low send clocks You can further optimize the bandwidth use in your PROFINET IO system by using cables with a short cable length (< 20 m) or a short signal delay (max. 0.12 µs) between the devices. To configure cables with a shorter length or signal delay in STEP 7, follow these steps: 1. Select the port in the topology view of STEP 7. 2. Navigate in the Inspector window to "Port interconnection" in the "Partner port" box. 3. Select the option "Cable length" or "Signal delay:". 4. Select the cable length or enter the signal delay.
Figure 5-62 Optimizing port settings for low send clocks

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

197

Functions 5.6 PROFINET with performance upgrade
Allowing fast forwarding Requirements:  The PROFINET IO device has to support the fast forwarding process so that the process can be used by the device.  The "Make 'high performance' possible" option is enabled.  The PROFINET IO interface supports fast forwarding if all the ports except one are deactivated. Follow these steps to allow fast forwarding: 1. Select the PROFINET IO system in the network view of STEP 7. 2. In the Inspector window, go to "Properties" > "General" > "PROFINET" > "Domain management" > "Sync domains" > "Name of the sync domain". 3. Enable the "Allows the use of `fast forwarding'" option.
Figure 5-63 Allowing fast forwarding
Note Fast forwarding and IPv6 The operation of fast forwarding in combination with IPv6 is not supported. As soon as an IO device in the subnet uses an IPv6 address, you must not activate "fast forwarding".

198

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.6.5

Functions 5.6 PROFINET with performance upgrade
Sample configuration for IRT with high performance
The figure below shows an example configuration with which you can achieve maximum performance.

Port 1 of the X1 interface of the CPU is deactivated.
Port 2 of the X1 interface and the ports of the interface modules on the bus use the following setting: Medium copper, cable length < 20 m or signal delay max. 0.12µs A programming device connection to the CPU can be established via the interfaces X2 and X3 of the CPU or via the free port at the end of the line. Figure 5-64 Example configuration for IRT with high performance
Use the following settings for the Sync domain:  Enable the "Make 'high performance' possible" option.  Set the send clock to 125 µs.  Enable the "Allows the use of `fast forwarding'" option.
Standard Ethernet communication for IRT with high performance Standard Ethernet communication is still possible even in a PROFINET IO system with high performance. Keep in mind that you first arrange the IRT nodes, as seen from the IO controller, and arrange the standard Ethernet nodes at the end of the line. With a large volume of data through standard Ethernet communication, it makes sense to reduce the load on your network by separating standard Ethernet communication and cyclic real-time communication. Example: Use the interface X1 for the PROFINET IO communication and a different interface for the standard Ethernet communication.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

199

Functions 5.7 Isochronous mode

5.7

Isochronous mode

5.7.1

What is isochronous mode?

Objectives of isochronous operation
The advantages of the isochronous mode function in automation engineering can be seen in an example from everyday life.
The transmission of data corresponds to the transport of people on public transport. Assuming public transport were to operate at maximum speed while reducing stop times at the passenger terminals to absolute minimum, the last thing many potential passengers would notice of the departing contraption are its red tail lights. The overall travel time is, however, decided by the train, bus or underground-railway clock, because well adjusted timing is essential to a good service. This also applies in automation engineering. Not only fast cycles but also the adaptation and synchronization of the individual cycles result in optimum throughput.

Just-In-Time

Figure 5-65 System cycle
200

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode
The fast and reliable response time of a system operating in isochronous mode is due to the fact that all data is provided just-in-time. The basis for this is an equidistant cycle. The isochronous mode function guarantees synchronization of the following at constant time intervals:  Signal acquisition and output by the distributed I/O  Signal transmission via PROFINET IO  Program execution in the CPU in time with the equidistant PROFINET IO The result is a system that acquires its input signals, processes them and outputs the output signals at constant time intervals. Isochronous mode guarantees precisely reproducible and defined process response times as well as equidistant and synchronous signal processing for distributed I/O.
Advantages of isochronous mode The use of isochronous mode allows high-precision control.  Optimized control loops through constant, calculable dead times  Determinism, reliable reproducibility of response times  Consistent (simultaneous) reading in of input data  Consistent (simultaneous) output of output data

5.7.2

Use of isochronous mode
An isochronous system acquires measured values and process data within a fixed system cycle, processes the signals and outputs them synchronously to the process. Isochronous mode contributes to a high control quality and increased production accuracy. With isochronous mode, the possible fluctuations of process response times are drastically reduced. You make use of the time-assured processing to improve machine cycle times. Even fast processes can be reliably controlled thanks to the precise time reproducibility of all sequences. Shorter cycle times increase the processing speed and help to lower production costs.
In principle, isochronous mode is worthwhile whenever measured values must be acquired synchronously, movements must be coordinated, and process responses must be defined and simultaneously executed, as in the following example. Isochronous mode can thus be used in a wide variety of applications.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

201

Functions 5.7 Isochronous mode
Example: Measuring at multiple measurement points with isochronous mode
Automation task A camshaft production process requires precise measurement of the camshafts for quality assurance purposes.
Feature For this purpose, a component is needed that can synchronously measure the positions and displacements of the cam during a rotation of the camshaft.
Solution

Figure 5-66 Measuring of camshafts
With use of isochronous mode, the measured values are simultaneously acquired at the various measuring points at fixed times. This results in the following workflow:  Continuously rotate the camshaft  During continuous rotation, synchronously measure the positions and cam displacements  Process the next cam shaft Thus, during a single rotation of the camshaft, all the positions of the camshaft and the associated measured values (red) are measured synchronously. The machine cycle time improves with the same or better measuring accuracy.
Advantage and benefits The time required for measurement is reduced.

5.7.3

Time sequence of synchronization on PROFINET IO

Introduction

On PROFINET IO, you can isochronously operate I/O modules in distributed I/O systems on a CPU, e.g. in distributed I/O systems ET 200SP, ET 200MP.
Like the I/O modules, the interface modules of the I/O systems must support isochronous mode.

202

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode
From reading in input data to outputting output data The basic time sequence of all components involved in synchronization is explained below:
 Measured value acquisition in the process  Isochronous read-in of input data  Transport of input data to the IO controller (CPU) via the subnet  Further processing in the isochronous application of the CPU  Transport of output data to the outputting IO device via the subnet  Isochronous output of output data

T_DC TI TO TV

Data cycle (Time_DataCycle) Time for reading in the input data Time for outputting the output data Configured delay time

Figure 5-67 Time sequence of synchronization on PROFINET IO

To ensure that all input data is ready for transport via the subnet at the next start of the PROFINET IO cycle, the start of the I/O read-in cycle is advanced by the amount of lead time TI. TI is the "flashbulb" for the inputs; at this instant, all synchronized inputs are read in. TI is necessary in order to compensate for analog-to-digital conversion, backplane bus times, and the like. The lead time TI can be configured by STEP 7 or by you. Let the lead time TI be assigned automatically by STEP 7. With the default setting, STEP 7 ensures that a common, minimum TI is set.
The subnet transports the input data to the IO controller/DP master. The application is started synchronized to the cycle. That is, the isochronous mode interrupt OB is called after a configurable delay time TV. The user program in the isochronous mode interrupt OB defines the process response and provides the output data in time for the start of the next data cycle. The length of the data cycle (send clock/DP cycle time) is always configured by you.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

203

Functions 5.7 Isochronous mode
TO is the time for the compensation arising from the backplane bus and the digital-to-analog conversion within the IO device/DP slave. TO is the "flashbulb" for the outputs. The synchronized outputs are output at this time. Time TO can be configured by STEP 7 or by you. Let time TO be assigned automatically by STEP 7. STEP 7 automatically calculates a common, minimum TO.

5.7.4

Configuring isochronous mode

5.7.4.1

Introduction

Configuring at a glance
Setting parameters for isochronous operation of the I/O module
You use the properties of the I/O addresses of the corresponding I/O module to:
 Set isochronous mode for the module.
 Assign the inputs and outputs of the module to a process image partition and an isochronous mode interrupt OB.
The data of the process image partition is updated synchronously to the assigned OB. Isochronous mode interrupts give you the option of starting programs isochronously with the PROFINET send clock. Isochronous mode interrupts are processed with high priority.
Setting the send clock
The send clock is the shortest possible transmission interval for the data exchange. In isochronous mode, the send clock corresponds to data cycle T_DC.
You set the send clock in the properties of the PROFINET interface of the CPU or in the sync domain.
Setting the application cycle
The application cycle is a multiple of data cycle T_DC. If the runtime of the isochronous mode interrupt OB is short, the application cycle can be identical to the data cycle (= send clock).
You can reduce the application cycle of the isochronous mode interrupt OB relative to the send clock of an isochronous PROFINET IO system. Set an integer multiple of the send clock as the reducing factor.
You use the factor to reduce the CPU utilization by executing the isochronous mode interrupt OB less frequently. You set the application cycle in the properties of the isochronous mode interrupt OB.

204

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode

Setting the delay time
The delay time is the time between the start of the send clock and the start of the isochronous mode interrupt OB. During this time, the IO controller performs cyclic data exchange with the IO devices.
STEP 7 sets the default delay time in such a way that the isochronous update of the process image partition automatically falls within the execution window of the application cycle.
You set the delay time in the properties of the isochronous mode interrupt OB. A shorter delay time enables you to increase the processing time for your user program in the isochronous mode interrupt OB.
Additional configurations for isochronous mode on PROFINET IO:
 Setting IRT as the RT class for the interconnected PROFINET interfaces
A precondition for isochronous operation on PROFINET IO is IRT communication (Isochronous Real Time Communication). IRT means synchronized data exchange at reserved time intervals.
 Configuring the topology of the configuration
A precondition for IRT communication is the topology configuration. In addition to the reserved bandwidth, the exchange of frames on defined transmission paths is used for further optimization of data communication. For this, the topological information of the configuration is used for planning the communication.
 Using a sync domain, you assign the IO devices (sync slaves) to an IO controller (sync master) for the isochronous data exchange.
A precondition for IRT communication is a synchronization cycle for all PROFINET devices in a sync domain, for distribution of a common time base. With this basic synchronization, synchronous operation of the transmission cycle of the PROFINET devices within a sync domain is achieved.

5.7.4.2

Configuring isochronous mode on PROFINET IO

Introduction

The configuring of isochronous mode for a module is described as IO device in the following based on the ET 200MP distributed I/O system. The procedure described also applies to other distributed I/O systems (e.g., ET 200S or ET 200SP).
The IO controller is an S7-1500 CPU.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

205

Functions 5.7 Isochronous mode

Requirements

 The STEP 7 network view is open.
 A S7-1500 CPU has been placed (e.g., CPU 1516-3 PN/DP).
 An IM 155-5 PN HF interface module (ET 200MP) has been placed and networked with the CPU via PROFINET IO.
 All requirements for an IRT configuration are met:
­ The ports of the networked PROFINET interfaces of the CPU and interface module are interconnected (topology configuration).
­ The RT class of the PROFINET interface of the interface module is set to "IRT" (area "Advanced options > Real time settings > Synchronization").
­ The "sync master" and "sync slave" roles are assigned for the PROFINET interfaces of the CPU and interface module (in the properties of a PROFINET interface: area "Advanced options" > "Media redundancy" > "Domain settings").

Procedure

To create an isochronous connection between the I/O and user program, follow these steps: 1. Select the IM 155-5 PN HF in the network view of STEP 7. Change to the device view. 2. Insert an I/O module that can be operated isochronously (e.g. DI 16 x 24VDC HF).

206

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode
3. Go to the "I/O addresses" area in the Inspector window of the selected I/O module.

Figure 5-68 Configuring isochronous mode on PROFINET IO
4. Make the following settings in the I/O addresses area:
­ Select the "Isochronous mode" option.
­ Select a process image partition, e.g., process image partition 1.
­ Click the "Organization block" drop-down list. Click the "Add" button or select an existing OB. A dialog box for selecting organization blocks opens.
­ Select the "Synchronous Cycle" OB. Confirm the selection with "OK".
In the case of automatic number assignment, OB 61 will be generated and opened.
In the Inspector window, you can continue directly with the setting of the application cycle and delay time (Page 208) in the "Isochronous mode" area and start the programming of the OB in the instruction section.
5. If required, insert additional IO devices in the network view. Adapt the configuration and the settings for the isochronous mode.
6. You want to retrieve information about calculated bandwidths or on adapting the send clock. Select the sync domain in the network view and navigate to the corresponding area of the domain management in the Inspector window.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

207

Functions 5.7 Isochronous mode

Reference

You can find examples of parameter assignment and possible settings of isochronous mode for distributed I/O and drives in STEP 7 in this FAQ on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109480489).

5.7.4.3

Setting the application cycle and delay time

Requirements

 You have created an isochronous mode configuration in STEP 7.  You have created an isochronous mode interrupt OB Synchronous Cycle (OB 6x).  The isochronous mode interrupt OB is open.

Setting the application cycle
The application cycle is a multiple of data cycle T_DC (send clock). You use the application cycle setting to reduce the CPU utilization caused by execution of the isochronous mode interrupt OB. In the following example, the OB is called only after every 2nd data cycle T_DC in the CPU.
To set the application cycle for your isochronous mode application, follow these steps:
1. Open the "Properties" dialog of the isochronous mode interrupt OB under consideration.
2. In the area navigation, click the "Isochronous mode" group .
3. Set the application cycle in "Application cycle (ms)". Open the drop-down list box and select the application cycle. The drop-down list offers multiples of data cycle T_DC as possible values for the application cycle. Data cycle T_DC is set to 2 ms in the following figure.

Figure 5-69 Setting the application cycle

208

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode
Setting the delay time The delay time is the time between the start of the send clock and the start of the isochronous mode interrupt OB. STEP 7 sets the delay time automatically to the start of the execution window by default. As a result, the isochronous mode update of the process image partition automatically falls within the execution window of the application cycle.
You can also set the delay time manually. A shorter delay time enables you to increase the processing time for your user program in the isochronous mode interrupt OB. If a manual setting is made, note that you must call the "SYNC_PI" and "SYNC_PO" instructions in the execution window of the application cycle.
To set the delay time for your isochronous mode application, follow these steps:
1. Open the "Properties" dialog of the isochronous mode interrupt OB under consideration.
2. In the area navigation, click the "Isochronous mode" group .
3. Clear the "Automatic setting" check box.
4. Enter your desired delay time in "Delay time (ms)".

Figure 5-70 Setting the delay time

5.7.5

Programming isochronous mode

5.7.5.1

Basics of Programming

Programming in the isochronous mode interrupt OBs
You program the isochronous section of the program exclusively in the isochronous mode interrupt OBs Synchronous Cycle (OB 6x).
Because the isochronous mode interrupts are processed with high priority, only the timecritical sections of the program should be processed in the isochronous mode interrupt OB. The isochronous mode interrupt OB is called with a configured delay time.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

209

Functions 5.7 Isochronous mode

Access to isochronous I/O through call of instructions
You access the isochronous I/O via a process image partition. That is, the addresses of the isochronous modules must be within one process image partition.
You program access to the isochronous IO in isochronous mode interrupt OB Synchronous Cycle (OB 6x) with the SYNC_PI and SYNC_PO instructions.
The isochronous I/O is updated by the call of the "SYNC_PI" and "SYNC_PO" instructions and therefore in the corresponding process image partition.
Note
Recommendation: To prevent inconsistent data from being returned to OB 6x, do not use the "DPRD_DAT" and "DPWR_DAT" instructions (direct data access) in the isochronous mode interrupt OB.
The "SYNC_PI" and "SYNC_PO" instructions update the process image partition only within the permitted execution window. The execution window stretches from the end of the cyclic data exchange to the point in time before the end of T_DC at which the outputs can still be copied in time. The data exchange must be started within this time window. If the execution window is violated by the processing of the "SYNC_PI" and "SYNC_PO" instructions, the instructions indicate a corresponding error message.

Program execution models Depending on the order of the "SYNC_PI" and "SYNC_PO" instruction calls in OB 6x, there are two basic models for the program execution:
 IPO model (read Inputs - Processing - write Outputs)
 OIP model (write Outputs - read Inputs - Processing)

5.7.5.2

Program execution according to the IPO model
If the execution time of the isochronous mode interrupt OB is significantly shorter than one data cycle T_DC, use the IPO model. In the IPO model, you do not reduce the data cycle. That is, the application cycle of the isochronous mode interrupt OB is equal to data cycle T_DC.
The IPO model enables the shortest response times.

210

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode

Programming according to the IPO model in the isochronous mode interrupt OB For programming according to the IPO model: 1. Call the SYNC_PI instruction at the start of the isochronous mode interrupt OB. 2. Then call the actual user program. 3. Call the SYNC_PO instruction at the end of the isochronous mode interrupt OB.

Table 5- 3 Programming according to the IPO model

Step 1

Action Read in (I)

2

Process (P)

3

Output (O)

Explanation
The SYNC_PI instruction reads in the inputs of the process image partition and provides them to the isochronous mode interrupt OB.
You program the actual user program of the isochronous mode interrupt OB.
The SYNC_PO instruction outputs the data changed by the user program via the process image partition.

Signal sequence in the IPO model
The following figure shows the signal sequence in the IPO model from the acquisition and the processing in the CPU to the output of the process values:

 Execution of isochronous mode interrupt OB  "SYNC_PI" instruction  "SYNC_PO" instruction  Isochronous read-in of process values on I/O module at time TI  Isochronous output of process values on I/O module at time TO
Figure 5-71 Signal sequence in the IPO model
At time TI the process values are read in isochronously on the I/O. The processing of the data in the IPO model is completed within one data cycle T_DC. The output data is always available on the I/O in the next data cycle T_DC at time TO.
With the IPO model, there is a constant execution time from the "input terminal" to the "output terminal" of TI + T_DC + TO.
TI + 2×T_DC + TO can be guaranteed for the process response time.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

211

Functions 5.7 Isochronous mode

5.7.5.3

Program execution according to the OIP model
Use the OIP model in the case of execution cycles of the isochronous mode interrupt OB of different lengths, if the application cycle is greater than data cycle T_DC.
The data exchange with the process is always deterministic in the OIP model, i.e. takes place at a precisely specified time.

Programming according to the OIP model in the isochronous mode interrupt OB For programming according to the OIP model: 1. Call the SYNC_PO instruction at the start of the isochronous mode interrupt OB. 2. Then call the SYNC_PI instruction. 3. Then call the actual user program.

Table 5- 4 Programming according to the OIP model

Step 1

Action Output (O)

2

Read in (I)

3

Process (P)

Explanation
The SYNC_PO instruction outputs the data that was changed by the user program in the previous cycle via the outputs of the process image partition.
The SYNC_PI instruction reads in the inputs of the process image partition of the current cycle and provides the inputs to the isochronous mode interrupt OB.
You program the actual user program of the isochronous mode interrupt OB.

212

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.7 Isochronous mode
Signal sequence in the OIP model The following figure shows the signal sequence in the OIP model from the acquisition of process values and the processing in the CPU to the output of the process values. The application cycle is twice as long as data cycle T_DC in this example.



Execution of isochronous mode interrupt OB



"SYNC_PI" instruction



"SYNC_PO" instruction



Isochronous read-in of process values on I/O module at time TI



Isochronous output of process values on I/O module at time TO

Figure 5-72 Signal sequence in the OIP model

At time TI the process values are read in isochronously on the I/O. The data is processed over 2 application cycles in the OIP model. The output data is always available on the I/O in the following application cycle at time T_DC + TO.
With the IPO model, there is a constant execution time from the "input terminal" to the "output terminal" of TI + application cycle + T_DC + TO.
TI + 2 x application cycle + T_DC + TO can be ensured as the process response time.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

213

Functions 5.8 Direct data exchange

5.8

Direct data exchange

5.8.1

Introduction
This section describes the direct data exchange function.

Principle of operation
Starting with firmware version V2.8, the S7-1500 CPU supports direct data exchange with other S7-1500 CPUs.
In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners. The direct data exchange is based on PROFINET with IRT and isochronous mode.
The data exchange takes place via transfer areas.

Direct data exchange between two S7-1500 CPUs (1:1)
The figure below shows the direct data exchange between two S7-1500 CPUs. The output transfer areas of the sending S7-1500 CPU correspond to the input transfer areas of the receiving S7-1500 CPU.



Transfer relation between the user program and the transfer area. The user program and the transfer areas ex-

change input and output data via this path.



Communication relation for direct data exchange You configure the communication relations in STEP 7. You create

transfer areas for direct data exchange in the properties of the communication relations.

Figure 5-73 Direct data exchange between two S7-1500 CPUs (1:1)

214

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.8 Direct data exchange
Direct data exchange with multiple receivers (1:n) The following figure shows the direct data exchange with multiple S7-1500 CPUs. In this case, the sending S7-1500 CPU provides the data of its output transfer areas to multiple S7-1500 CPUs. Each receiving S7-1500 CPU has its own input transfer areas.



Transfer relation between the user program and the transfer area. The user program and the transfer areas ex-

change input and output data via this path.



Communication relation for direct data exchange You configure the communication relations in STEP 7. You create

transfer areas for direct data exchange in the properties of the communication relations.

Figure 5-74 Direct data exchange with multiple receivers (1:n)

Applications

 Deterministic, isochronous I/O communication between multiple S7-1500 CPUs

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

215

Functions 5.8 Direct data exchange
Properties of direct data exchange  Always isochronous  Support of MRPD for MRP configuration  No acyclic data exchange via PROFINET data record mechanisms  No PROFINET alarms  Configuration limits: ­ Maximum data length for direct data exchange 3075 bytes including user data qualifier ­ Maximum data length for a transfer area: 1024 bytes without user data qualifier ­ Maximum number of transfer areas of sender: 128 ­ Maximum number of transfer areas of receiver: 512, distributed among a maximum of 64 receivable PROFINET frames and thus up to 64 sender CPUs
Diagnostics options of the receiver Operating state change of sender:  When the sender goes from RUN to STOP, the receiver behaves as follows: ­ The "SYNC_PI" and "SYNC_PO" instructions return an error message in parameter RET_VAL during synchronization of the process image. ­ With direct I/O access to the input transfer areas of the direct data exchange, OB 122 "I/O access error" is called, if present. ­ Incoming diagnostic message "I/O data failure in hardware component"  When the sender goes from STOP to RUN, the receiver behaves as follows: ­ Call of OB 83 "Pull/plug interrupt" for input transfer areas of the direct data exchange ­ Up until the call of OB 83, OB 122 is called if present. ­ Outgoing diagnostic message "User data failure of hardware component" Station failure/station recovery of the sender:  When the sender fails, e.g. due to a bus interruption, the receiver behaves as follows: ­ Call of OB86 "Rack failure" ­ The "SYNC_PI" and "SYNC_PO" instructions return an error message in parameter RET_VAL during synchronization of the process image. ­ With direct I/O access to the input transfer areas of the direct data exchange, OB 122 "I/O access error" is called, if present.  When the sender recovers after a station failure, e.g. because the bus connection is reestablished, the receiver behaves as follows: ­ Call of OB86 "Rack failure"

216

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.8 Direct data exchange

5.8.2

Configuring direct data exchange between two S7-1500 CPUs
The procedure for configuring direct data exchange between two IO controllers is described below.
First, you create the communication relation for direct data exchange. You then configure transfer areas for the connection.

Requirements

 STEP 7 V16 or higher  Two S7-1500 CPUs firmware version V2.8 or higher  IRT is configured:
­ Both CPUs are in one sync domain. ­ One CPU is the sync master, and the other CPU is the sync slave. ­ Ports are interconnected.

Setting up the communication relation for direct data exchange
To set up the communication relation for direct data exchange between two S7-1500 CPUs, follow these steps:
1. Select the PROFINET interface X1 of the sending S7-1500 CPU.
2. Change to the table view of the network view, tab "I/O communication". The PROFINET interface X1 of the CPU is shown in the "Partner 1" column.
3. In the "Partner 2" column at "<Drop or select the device here>", select the PROFINET interface of the communication partner from the drop-down list as the connection partner. Note the communication direction:
­ : Communication partner is sender
­ : Communication partner is receiver
The communication relation for direct data exchange between the two S7-1500 CPUs is set up.

Figure 5-75 Communication relation for direct data exchange
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

217

Functions 5.8 Direct data exchange Configuring transfer areas for direct data exchange
To configure a transfer area for direct data exchange, follow these steps: 1. Select the communication relation for direct data exchange.
Figure 5-76 Communication relation for direct data exchange
2. Navigate to the properties of the communication relation to "General" > "Direct data exchange" > "Transfer areas".
3. Create a new transfer area by double-clicking on "<Add new>". Assign a meaningful name for the transfer area.
A transfer area for direct data exchange is created.
Figure 5-77 Transfer area for direct data exchange
The communication direction of the transfer area is specified by the communication relation. You cannot change the communication direction of the transfer area.

218

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.8 Direct data exchange
Editing the transfer area Set the properties of the transfer area under "General" > "Direct data exchange" > "Name of transfer area" > "Detail of the transfer area".

Figure 5-78 Properties of the transfer area

Table 5- 5 Overview of the settings of the transfer area

Parameter Start address Organization block Process image
Data length [bytes]

Local
Set the start address of the input or output transfer areas in the local CPU.
Assign the transfer area to an isochronous mode interrupt OB or the "MC-Servo" OB.
Select a process image partition, e.g. PIP 1. If you have assigned "MC-Servo" as the organization block, STEP 7 automatically sets "PIP OB Servo" as the process image.
Set the size of the transfer area.

Partner
Set the start address of the input or output transfer areas in the partner CPU.
Assign the transfer area to an isochronous mode interrupt OB or the "MC-Servo" OB.
Select a process image partition, e.g. PIP 1. If you have assigned "MC-Servo" as the organization block, STEP 7 automatically sets "PIP OB Servo" as the process image.
-

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

219

Functions 5.8 Direct data exchange
Downloading the configuration to devices Rules:  Download the configuration to all CPUs involved.  If you make changes to the configuration of the direct data exchange, download these changes to all CPUs involved.

5.8.3

Configuring direct data exchange between multiple IO controllers
The procedure for configuring direct data exchange between multiple S7-1500 CPUs is described below.
First, you set up the communication relations for direct data exchange. You then configure transfer areas for the communication relations.

Requirements

 STEP 7 V16 or higher  S7-1500 CPUs firmware version V2.8 or higher  IRT is configured:
­ All CPUs are in one sync domain. ­ One CPU is the sync master, and the other CPUs are sync slaves. ­ Ports are interconnected.

Setting up the communication relations for direct data exchange
To set up the connection for direct data exchange between multiple S7-1500 CPUs, follow these steps:
1. Select the PROFINET interface X1 of the sending CPU.
2. Change to the table view of the network view, "I/O communication" tab. The PROFINET interface X1 of the CPU is shown in the "Partner 1" column.
3. In the "Partner 2" column at "<Drop or select the device here>", select the PROFINET interface of the communication partner from the drop-down list as the connection partner. Note the transfer direction:
­ : Connection partner is sender
­ : Connection partner is receiver
The connection for direct data exchange between the two S7-1500 CPUs is set up.
4. Repeat step 3 for every other receiving IO controller.

220

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.8 Direct data exchange The connections for direct data exchange between the sending CPU and the receiving CPUs are set up.
Figure 5-79 Connection for direct data exchange with multiple S7-1500 CPUs
Configuring transfer areas for direct data exchange The following graphic shows the order for configuration of the transfer areas.

 First, you configure the transfer area between the sender and one receiver. You configure this transfer area at the
PROFINET interface of the sender.
 You then configure the transfer areas between the sender and the other receivers. You configure these transfer
areas at the PROFINET interfaces of the receivers.
Figure 5-80 Order of configuration of transfer areas in the case of multiple receivers
To configure a transfer area for direct data exchange, follow these steps:
1. Select the PROFINET interface X1 of the sending CPU and change to the table view, "I/O communication" tab.
2. In the table view of the network view, select a communication relation for direct data exchange between the sender and receiver 1.
3. Navigate to the properties of the I/O connection to "General" > "Direct data exchange" > "Transfer areas".

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

221

Functions 5.8 Direct data exchange
4. Create a new transfer area by double-clicking on "<Add new>". Assign a meaningful name for the transfer area. A transfer area for direct data exchange between the sender and receiver 1 is configured.

Figure 5-81 Transfer area for direct data exchange
5. Now, select the PROFINET interface of a receiver for which a transfer area is not yet set up, e.g. receiver 2.
6. Change to the table view of the network view to "I/O communication" The communication relation for direct data exchange with the sender is displayed.

Figure 5-82 Connection for direct data exchange in receiver 2
7. Select the communication relation. 8. Navigate to the properties to "General" > "Direct data exchange" > "Transfer areas". 9. Create a new transfer area by double-clicking on "<Add new>". Assign a meaningful
name for the transfer area. A transfer area for direct data exchange is configured.

222

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.8 Direct data exchange 10.Select the transfer area. 11.For "Partner address", select the existing address area in the sender as the output transfer area.
Figure 5-83 Transfer area for direct data exchange of multiple IO controllers
A transfer area for direct data exchange between receiver 2 and the sender is configured. Editing the transfer area
Set the properties of the transfer area under "General" > "Direct data exchange" > "Name of transfer area" > "Detail of the transfer area".

Figure 5-84 Properties of the transfer area
PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

223

Functions 5.8 Direct data exchange

Table 5- 6 Overview of the settings of the transfer area

Parameter Start address Organization block Process image
Data length [bytes]

Local
Set the start address of the input or output transfer areas in the local CPU.
Assign the transfer area to an isochronous mode interrupt OB or the "MC-Servo" OB.
Select a process image partition, e.g. PIP 1. If you have assigned "MC-Servo" as the organization block, STEP 7 automatically sets "PIP OB Servo" as the process image.
Set the size of the transfer area.

Partner
Set the start address of the input or output transfer areas in the partner CPU.
Assign the transfer area to an isochronous mode interrupt OB or the "MC-Servo" OB.
Select a process image partition, e.g. PIP 1. If you have assigned "MC-Servo" as the organization block, STEP 7 automatically sets "PIP OB Servo" as the process image.
-

Downloading the configuration to the device Rules:
 Download the configuration to all CPUs involved.
 If you make changes to the configuration of the direct data exchange, download these changes to all CPUs involved.

224

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.9 Device replacement without exchangeable medium

5.9

Device replacement without exchangeable medium

Definition

IO devices which have no slot for exchangeable medium (e.g. ET 200SP, ET 200MP) or IO devices which support the PROFINET functionality "Device replacement without exchangeable medium/PG" can be replaced without having an exchangeable medium with saved device names inserted and without having to assign the device name with the PG. The new IO device is given a device name by the IO controller and not by the exchangeable medium or the PG.
To assign the device name, the IO controller uses the configured topology and the neighborhood relations established from the IO devices.

Figure 5-85 Device replacement without exchangeable medium
Note When you exchange a device, make sure that the PROFINET cable is again inserted into the correct port, as it is configured in STEP 7. Otherwise, the system will not run.

Advantages

With the Device replacement without exchangeable medium/PG PROFINET functionality, you can profit from the following advantages:
 After the replacement of the IO device, it automatically obtains its device name from the IO controller. You no longer have to assign device names with the PG or exchangeable medium.
 You can save on the storage medium for the IO device that replaces the removed one.
 Simple device name allocation with series machines that have the same configuration and set topology. It is no longer necessary to assign device names via exchangeable medium/PG.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

225

Functions 5.9 Device replacement without exchangeable medium
Which devices support device replacement without exchangeable medium? An overview of the devices that support the "Device replacement without exchangeable medium" function is provided in this FAQ (https://support.industry.siemens.com/cs/ww/en/view/36752540).

5.9.1

Device replacement without exchangeable medium/PG function

Neighborhood

Neighborhood is the physical relationship between two ports of adjacent PROFINET devices. A PROFINET device is connected in this case through one of its ports over a physical Ethernet line to a specific port of the second PROFINET device in close proximity (neighbors).
Both terminal devices, for example, IO controllers and IO devices with a port, and network components, for example, switches, IO controllers and IO devices with multiple ports, are considered PROFINET devices.

Failure and replacement of an IO device
The following example describes device replacement without exchangeable medium in the case of failure of an IO device.

Figure 5-86 Example configuration of device replacement without exchangeable medium
For the device replacement, the following information is available to the IO controller:

PROFINET device Controller Switch Press Mill Pump

Device alias "port-001.Switch" "port-002.Controller", "port-001.Press", "port-001.Pump" "port-002.Switch", "port-001.Mill" "port-002.Press" "port-004.Switch"

The IO device with the device name "Mill" fails in this example:

226

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.9 Device replacement without exchangeable medium

Requirement

The PROFINET device replacing the removed one has no device name.

Principles of name assignment The failure of the "Mill" IO device is considered here. 1. The IO controller queries the device name of the replaced IO device. 2. The IO controller detects that the IO device with the device alias "port-002.Press" does not have a device name. 3. The IO controller assigns the device name "Mill" to the replaced IO device via the device alias "port-002.Press" of the failed IO devices.
Note If you insert a device with the Device replacement without exchangeable medium/PG PROFINET functionality at a different location than the configuration, a different device name is then assigned to the device. Reset a wrongly inserted device to delivery state before you use it again.

5.9.2

Replacing an IO device without exchangeable medium

Introduction

Replacement of IO devices is sometimes frequently required in automation systems. The IO devices are generally assigned a device name by either inserting an exchangeable medium or via the programming device. The CPU identifies the IO device by using these device names.
Under certain circumstances, replacing an IO device can be done without inserting an exchangeable medium or without the PG.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

227

Functions 5.9 Device replacement without exchangeable medium

Requirements

 The topology of the PROFINET IO system with the respective IO devices must be configured.
By configuring the topology, the neighbor relationships of all the PROFINET devices located in the PROFINET IO system are announced to the PROFINET IO system or the IO controller. From the neighbor relationships specified by the set topology and the actual neighbor relationships established by the real PROFINET devices, the IO controller can identify the replaced IO device without a name and assign to it the configured name and the IP address and then again list it in the user data traffic.
 The affected IO devices in the automation system must support device replacement without exchangeable medium.
If the individual IO devices in the automation system do not support device replacement without exchangeable medium, a corresponding alarm is output for the IO device.
Note
Use only new IO devices as replacements or restore configured IO devices to their delivery state.

Activating/deactivating device replacement without exchangeable medium
The "Device replacement without exchangeable medium" function is activated in the IO controller by default.
To deactivate device replacement without exchangeable medium, follow these steps:
1. In the device or network view of the STEP 7, select the PROFINET interface in the corresponding IO controller.
2. In the interface properties under "Advanced options > Interface options", clear the "Support device replacement without exchangeable medium" check box.
To reactivate device replacement without exchangeable medium, you must select the "Support device replacement without exchangeable medium" check box again.

5.9.3

Permit overwriting of PROFINET device name
With the option "Permit overwriting of PROFINET device names of all assigned IO devices", you can overwrite PROFINET device names of IO devices during startup of the CPU. This option reduces the effort during automatic commissioning, for example, when replacing a device.

Requirements

 IO controller supports the "Permit overwriting of device names of all assigned IO devices" option, for example CPU 1215C DC/DC/DC as of firmware version 4.0

228

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.9 Device replacement without exchangeable medium
How the "Permit overwriting of PROFINET device names of all assigned IO devices" option works The IO controller (CPU) can overwrite the PROFINET device names of IO devices in the IO system when the "Permit overwriting of PROFINET device names of all assigned IO devices" option is enabled. Multiple use IO systems can only be operated when this option is enabled. The IO controller checks prior to overwriting if the type of the IO device matches the configured type. If the option is not selected, the IO controller cannot overwrite the device names of the IO devices. In this case, you must manually assign the PROFINET device name on the IO device if the PROFINET device name changes in the configuration or when a device is replaced, or delete the device names of the IO devices prior to an automatic commissioning.
Response during commissioning Select the option "Permit overwriting of PROFINET device names of all assigned IO devices" only if the following requirements are fulfilled:  All the configured IO devices are available.  All IO devices are wired correctly in accordance with the topology configuration.  No IO device is jumpered. If configured IO devices are missing or are jumpered (partial commissioning), do not use the option.
CAUTION Error at partial commissioning If device names are assigned incorrectly during partial commissioning or incorrect wiring, these have to be deleted manually after a correction of the wiring in order to attain correct assignment of the device names.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

229

Functions 5.9 Device replacement without exchangeable medium
Behavior during operation After commissioning, you may exchange or jumper IO devices as long as the IO devices do not have a PROFINET device name that is used for a different IO device in the project. Otherwise, incorrect assignment of PROFINET device names in the neighborhood or further vicinity of the IO device can occur.
WARNING Wrong PROFINET device name When the "Permit overwriting of PROFINET device names of all assigned IO devices" option is enabled, incorrectly connected devices can be assigned an incorrect PROFINET device name from the configuration. Depending on the connected I/O, there is risk of death, severe injuries or damage caused by malfunctions. To rule out any danger, check whether the suitable replacement device has been connected in case of a device replacement and whether the port interconnection matches the configured preset topology.
Typical source of danger When replacing an IO device ("standard case"), it is almost guaranteed that the replaced device will be connected according to the configured port interconnection. The figure below shows a scenario whereby the connections of two identical PROFINET cables are swapped at two switch ports. Because the IO controller assigns the device names according to the preset topology, the incorrect connection of the devices has serious effects on the naming.

230

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.9 Device replacement without exchangeable medium
Due to the control of different actuators, the plant could become hazardous in this case.

Procedure

 Switch with connected PROFINET cables  Device A, device name "IOD-1": controls motor 1  Device B, device name "IOD-10": controls motor 10  Device A controls motor 10!  Device B controls motor 1!
Proceed as follows to change the "Permit overwriting of PROFINET device names of all assigned IO devices" option: 1. Select the PROFINET interface of the CPU for which you want to change the option in the
network view or in the device view. 2. Select the area "Advanced options", section "Interface options". 3. Change the option.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

231

Functions 5.10 Standard machine projects

5.10

Standard machine projects

Introduction

Standard machine projects are STEP 7 projects that use a set of innovative functions allowing simple configuration and commissioning of flexible automation solutions for standard machines or for machines with a modular structure.
A hardware configuration consisting of an IO controller and any number of connected IO devices represents a "PROFINET IO system master". This master is configured with a maximum configuration based on a template from which various options can be derived for different standard machines, for example with different configuration variants of the IO system.

Greater flexibility at all levels
Standard machine projects have the following central characteristics:
 Different variants of a standard machine can be loaded from precisely one project with an engineered maximum configuration (IO system options). The standard machine project covers all variants (options) of the IO system.
 An IO system option can be integrated in an existing network locally using simple tools.
Flexibility is provided in more ways than one:
 With suitable configuration, adaptation of the IP address parameters of the IO controller is possible locally using simple tools. This allows a standard machine to be integrated in different plants with little effort or to be included in a network several times. IO systems with this property are known as multiple use IO systems.
 With suitable configuration and programming, different setups of IO system options can be operated locally that differ in terms of the selection of IO devices used or in terms of the arrangement of the IO devices. Since the specific configuration of the IO system is controlled by the user program, this is known as configuration control for IO systems.
 Independently of the functions described above, with suitable configuration and programming, you can use different station options of central devices or distributed I/O devices in one project. The devices can be different in terms of the selection and arrangement of the modules. Since the concrete configuration of the station is controlled by the user program, this is also known as configuration control at the device layer.

Application examples
You can find application examples for configuration control at the device layer, configuration control for IO systems and multiple-use IO systems on the Internet (https://support.industry.siemens.com/cs/ww/en/view/29430270).

232

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects
Additional information For more information on multiple use IO systems, refer to section Multiple use IO systems (Page 233). For more information on the configuration control for IO systems, refer to section Configuration control for IO systems (Page 241). For more information on configuration control, refer to the system manual S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).

5.10.1

Multiple use IO systems

5.10.1.1

What you should know about multiple use IO systems

Multiple use automation solutions
For a flexible reusable automation solution as is the case with series machines, the following use cases are typical:
 The machine (and therefore also the PROFINET IO system) is used more than once by the customers.
 The machine is used in different plants by various customers.
For this to be possible, the automation solution must meet the following requirements:
 A project (configuration and program) can be loaded on various machines of the same type without changes.
 Only a few easy adaptations need to be performed locally to integrate the machine into an existing network infrastructure.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

233

Functions 5.10 Standard machine projects
The following figure shows how an automation solution with a multiple use IO system is loaded on different automation systems and then one automation system is adapted to the existing network infrastructure locally.



Load configuration with multiple use IO system



Set IP address and device name locally on the IO controller

Figure 5-87 "Multiple use IO system" principle

Principle

The automation components for a machine include a PROFINET IO system, consisting of an IO controller (PROFINET interface of a CPU) and the IO devices assigned to it.
With the "Multiple use IO system" setting for the IO system, you turn a STEP 7 project into a "Standard machine project".
The "Multiple use IO system" setting triggers various settings and checks of the configuration by STEP 7. The settings ensure that the IO system is self-contained and there are no dependencies on components outside the IO system.

Requirements

 STEP 7 as of V13
 The IO controller supports the "Multiple use IO system" function, for example a CPU 1512SP-1 PN as of firmware version 1.6.

234

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Rules

Functions 5.10 Standard machine projects
The following rules apply to a multiple use IO system:  No IO device can be configured as shared device.  The ports of the devices must be interconnected.
Devices for which no port interconnection is configured, for example, interface module IM 154-6 IWLAN (ET 200pro PN), cannot be operated with STEP 7 V13 as IO devices on a multiple use IO system.  If an IO device in a multiple use IO system is an I-device (CPU as an "intelligent" IO device): ­ If the I-device has a lower-level IO system, this I-device cannot be connected to the
same PROFINET interface as the higher-level IO controller. Note: If the I-device is configured using a PROFINET GSD, STEP 7 cannot check for compliance with this rule. In this case, you are responsible for ensuring compliance with the rule.



I-device in multiple use IO system. The PROFINET interface is operated as IO device. No other IO system is con-

nected here.



A lower-level IO system on the I-device is connected to another PROFINET interface.

Figure 5-88 Example configuration for "Multiple use IO system" with I-device

­ The PROFINET interface of the I-device must be set to "Parameter assignment of PN interface by higher-level controller".
 If MRP (Media Redundancy Protocol) is configured: ­ All IO devices on the multiple use IO system must belong to the same MRP domain.
 If IRT (Isochronous Real Time) is configured: ­ All IO devices in multiple use IO systems must belong to the same sync domain. ­ The sync domain must not include any other IO devices.
 IE/PB Links cannot be operated as an IO device in a multiple use IO system with STEP 7 V13.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

235

Functions 5.10 Standard machine projects

Configuration

You specify whether or not a configuration can be used multiple times in the properties of the IO system.
All other parameter settings for the configured devices are then set automatically by STEP 7 and checked during compilation.

Boundary conditions
To prevent a standard machine project from having dependencies on other devices outside of the machine, observe the following:
 A standard machine project consists of an IO controller and the corresponding IO devices. You should therefore configure only one CPU as IO controller and the corresponding IO devices in the standard machine project.
 Do not use connection configured at both ends for the communication. Instead, use only a connection configured at one end or unspecified connections if necessary.
Background: To configure the communication in a STEP 7 project, it is always possible to set the IP address parameters in the project. For multiple use IO systems, however, this strategy is not possible since the IP address parameters of the IO controller and the assigned IO devices are assigned locally. At the time of the configuration, the IP address parameters are therefore unknown.
If you nevertheless want to configure communication with devices on PROFINET, for example with a central coordinator, you can only use communications mechanisms that allow dynamic assignment of the IP address parameters in the user program.
Example: Open User Communication
If, for example, the device is configured as an active end point (initiator of the connection), the IP address parameters can be stored, for example, in a data block. You then supply the data block with the currently valid IP address parameters during commissioning. For this dynamic type of IP address parameter assignment, there is no system support; in other words, if you change the configuration of the system, the IP address parameters are not automatically adapted.
You will find a description of handling instructions for Open User Communication under this keyword in the STEP 7 online help.

5.10.1.2

Configuring multiple use IO systems

Requirements

 STEP 7 as of V13
 The IO controller supports the "Multiple use IO system" function, for example a CPU 1512SP-1 PN as of firmware version 1.6.

236

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Procedure

Functions 5.10 Standard machine projects
The configuration of a series machine using an S7-1500-CPU as an example is described below. To create a standard machine project, follow these steps: 1. Create a project. 2. Configure a CPU as the IO controller, for example a CPU 1518-4 PN/DP as of firmware
version 1.5. 3. Configure the required IO devices and assign the IO devices to the IO controller. 4. Configure the port interconnection between the devices. 5. Select the IO system so that you can edit the properties in the inspector window. 6. Select the "Multiple use IO system" check box in the "General" area of the inspector
window.

Figure 5-89 Activate "Multiple use IO system"
Result: The following settings are made by STEP 7:
 The device name of the IO controller (CPU) in the standard machine project is set to "PROFINET device name is set directly at the device". The IO controller (CPU) has no PROFINET device name initially.
 The IP protocol of the IO controller (CPU) is set to "IP address is set directly at the device". The CPU has no IP address initially.
 The "Support device replacement without exchangeable medium" option is selected automatically. This option enables automatic commissioning. A commissioning engineer does not have to assign device names to the IO devices locally. The IO controller assigns the device name and IP address to the IO devices based on the preset topology and other settings during startup.
 The device name of the IO devices is set to "Generate PROFINET device name automatically" (from the configured name of the IO device).
 The IP protocol of the IO devices is set to "IP address is set by the IO controller during runtime". The IO devices have no IP address initially. If an IO device is not a typical distributed I/O system (e.g., ET 200 systems), but rather another device such as an HMI device, change the option to "IP address is set directly at the device"; see below.
 The device number for the IO devices is automatically assigned and is used locally for making the IP address unique.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

237

Functions 5.10 Standard machine projects
The option "Permit overwriting of PROFINET device name" must be selected (CPU parameters, properties of the PROFINET interface, Ethernet addresses area) so that the IO controller can adapt the device name later at the operator. This option is disabled by default. The following figure shows the above-described settings for the IP address and PROFINET device name.

 After the configuration is loaded from the standard machine project, the IO controller has no
device name and no IP address.
 Following loading, the IO devices have a device name and a device number but no IP address.
Figure 5-90 Settings for the IP address and the PROFINET device name
How an IO device obtains an IP address locally
Below, you will find an explanation of the "IP address is set by the IO controller during runtime" and "IP address is set directly at the device" options, which can generally be configured for a multiple use IO system.
If you have set the "Multiple use IO system" option for the IO system, STEP 7 automatically sets the "IP address is set by the IO controller during runtime" option for the IO devices.
In this case, the IO controller assigns the IO device an IP address that results from the locally assigned IP address of the IO controller (see next section). This option is appropriate if the IO device is a field device, e.g., ET 200MP, ET 200SP, ET 200AL, or another distributed I/O system.
If the IO device is not a "standard" field device, for example, an HMI device for a Windows operating system, the "IP address is set by the IO controller during runtime" option described above does not work. In this case, choose the "IP address is set directly at the device" option. You must then assign the IP address to the device locally and take steps to ensure that this address is suitable for the IP addresses of the other IO devices and the IP address of the IO controller.

238

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects

5.10.1.3

Adapt multiple use IO systems locally
A few steps are needed to adapt the machine that was loaded with the standard machine project.
Only the device name and IP address of the IO controller must be adapted locally. The device names and IP addresses of the IO devices result from these adaptations. In this example, the effects of local settings are described for two specific machine modules.
The local settings are possible, for example, with the CPU display and commissioning tools such as Primary Setup Tool (PST) or PRONETA. You do not need a programming device with STEP 7 to make these settings, even though it is possible to do so.

Requirements

 The machine was loaded with a standard machine project (see Configuring multiple use IO systems (Page 236)).
 The display is ready for operation and the desired tool for assigning the IP address and device name is available (e.g., PST Tool, STEP 7).
 The ports of the IO controller and IO devices are interconnected according to the configuration.

Procedure

Observe the boundary conditions and instructions for commissioning an S7-1500. For more information on commissioning an S7-1500 CPU, refer to the system manual S7-1500, ET 200MP (http://support.automation.siemens.com/WW/view/en/59191792).
To adapt a standard machine locally, follow these steps:
1. Integrate the machine into the network.
2. Connect the device for assigning the IP address and device name to the CPU, for example a PG/PC with the appropriate software.
3. Assign the desired device name and IP address to the IO controller.
4. Start up the CPU.
The IO controller then assigns the adapted PROFINET device name and a unique IP address to the IO devices.
The following rules apply to the assignment:
 The device names of the IO devices are formed by chaining together the following name components, separated by a period:
<configured name of the IO device from the standard machine project>.<name of the associated IO controller set on the device>
 The IP addresses of the IO devices result from the locally configured IP address of the associated IO controller and the device number (sum).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

239

Functions 5.10 Standard machine projects
Note Make sure that duplicate IP addresses cannot be created on the subnet during the assignment. The IO controller does not assign a new IP address in this case.
In the following figure, the device name "m1" and the IP address 192.168.1.10 have been assigned to the IO controller of the first machine. The device name "m2" and the IP address 192.168.1.20 has been assigned for the second machine. Refer to the figure for the resulting device names and IP addresses.



Set device name and IP address on the IO controller



After startup, the IO devices have an updated device name (<configured device name>.<device name of IO con-

troller>) and an adapted IP address (= <IP address of IO controller> + <device number>)

Figure 5-91 Example of the assignment of IP addresses and device names at "Multiple use IO system"

See also

Configuring multiple use IO systems (Page 236)

240

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.10.2
5.10.2.1

Functions 5.10 Standard machine projects
Configuration control for IO systems
Information about configuration control of IO systems Configuration control of IO systems makes it possible to generate several concrete versions of a standard machine from a standard machine project. You are given the flexibility to vary the configuration of an IO system for a specific application as long as the real configuration can be derived from the set configuration. The configured configuration therefore represents the superset of all real configurations that can be derived from it. The following figure shows an example of how two IO systems with a different number of IO devices arise from one standard machine project.

Figure 5-92 Example of configuration control for PROFINET IO systems
In the following sections, you find a description of how to configure and program a PROFINET IO system to commission, for example, a standard machine on-site without using configuration software.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

241

Functions 5.10 Standard machine projects

Concept

The principle of configuration control is already known at the device level for the flexible use of submodules/modules ("option handling"). Different configurations can be derived from one engineering project both for central as well as for distributed I/O.
With S7-1500 CPUs as of firmware version V1.7, this principle can also be applied at the IO system level. You have the option of omitting, adding or changing the order of stations (IO devices) of a PROFINET IO system in a specific plant.
Configuration control for devices and configuration control for IO systems can be combined; the functions are independent of each other.
It is possible to operate variants deviating from a maximum configuration of an IO system. In a standard machine project, you can prepare a kit of IO devices which can be flexibly customized for various configurations using configuration control.
The following variations are available:
 Variation of the number of IO devices involved
You include optional IO devices for the configuration control in the configuration by transferring a suitable data record with the required configuration in the user program.
 Variation of the order of IO devices involved
You adapt the port interconnection of the IO devices to the topology being used by transferring a suitable data record with the required topology in the user program.
The following figure shows how you serve two different configurations with an IO device marked as optional in the network view of STEP 7.
 Configuration without the optional IO device:
In this case, you use the instruction "ReconfigIOSystem" to transfer a data record to the PROFINET interface containing the information that no optional IO device is to be included in the configuration.
 Configuration with the optional IO device:

242

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects
In this case, you use the instruction "ReconfigIOSystem" to transfer a data record to the PROFINET interface adding the optional IO device to the configuration.

 Determined through parameter assignment: IO Device_2 is optional IO device  Configuration without the optional IO device  Configuration with the optional IO device
Figure 5-93 Example configuration with "Optional IO device" and the associated configuration options
Summary: The procedure in principle
The following phases are distinguished when it comes to the implementation of a standard machine concept:
1. Engineering phase: Creating a standard machine project and loading into specific machine or plant:
­ Completely configuring all IO devices (options) ever required in a specific machine or plant
­ Configuring as optional those IO devices that will be omitted in specific machines or plants
­ Preparing user program (see Configuring flexible order of IO devices (Page 251)) with the possibility of selecting on-site the actually existing configuration via switch or HMI device
2. Commissioning phase: Preparing specific machine or plant for operation:
­ Integrating machine or plant in the on-site network (see Adapt multiple use IO systems locally (Page 239))
­ Selecting the currently existing configuration of the IO system via configured option

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

243

Functions 5.10 Standard machine projects

5.10.2.2

Configuring IO devices as optional

Requirements

 IO controller supports configuration control for IO systems, for example CPU 1516-3 PN/DP as of firmware version 1.7
 STEP 7 V13 SP1 or higher
 The rules (Page 256) for the establishment and operation of a standard machine project have been considered.

Port interconnection As of STEP 7 V15.1, port interconnection is not necessary for optional IO devices. A port interconnection between the devices of the IO system that you want to customize with the user program is mandatory in the following cases.  You have configured IRT.  You have configured MRP.  You are using STEP 7 <= V15.

Procedure

To configure an IO device as optional IO device, proceed as follows: 1. Create a project. 2. Configure an S7-1500 CPU firmware version V1.7 or higher as IO controller. 3. Configure the required IO devices and assign the IO devices to the IO controller. 4. Select the IO device you want to mark as optional. 5. Select the area "PROFINET interface [X1]" > Advanced options". 6. Enable the "Optional IO device" option.

Figure 5-94 Configure the IO device as an optional IO device
7. Repeat steps 4 to 6 for all IO devices to be configured as optional. 8. Load the configuration onto the CPU.

244

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects

Result: Once this configuration is loaded, the system behavior is as follows:
 The CPU is prepared for the configuration control of the IO system.
 All IO devices are disabled.
 Irrespective of whether you customize the configuration with the user program (adding optional IO devices) or make no changes to the loaded configuration: You must call the instruction "ReconfigIOSystem" in the user program and notify the current configuration to the system!
The system will not be operational without calling the instruction "ReconfigIOSystem".
For further information on the proceeding see Enabling optional IO devices in the program (Page 245).

Fast parameter assignment in the "IO communication" table
You can also specify whether or not an IO device is optional in the "IO communication" tab.
In an additional "Optional IO device" column, a selectable check box is available for each IO device that indicates whether or not an IO device is optional. Here, you can adjust the setting centrally.

5.10.2.3

Enabling optional IO devices in the program

Requirements

 IO controller supports configuration control for IO systems, for example CPU 1516-3 PN/DP as of firmware version 1.7
 STEP 7 V13 SP1 or higher
 At least one IO device was configured as optional IO device.
 The rules (Page 256) for the establishment and operation of a standard machine project have been considered.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

245

Functions 5.10 Standard machine projects

Procedure

Observe the information on and rules for commissioning in the documentation for SIMATIC S7-1500, for the ET 200SP CPUs and for the CPU 1516pro-2 PN.
The following description of the proceeding only includes steps required to understand the program-controlled activation of an optional IO device.
To activate or deactivate IO devices, follow these steps:
1. Create a data record "CTRLREC" for the instruction "ReconfigIOSystem". You can find information on the structure of the data record in the STEP 7 online help.
2. Call the instruction "ReconfigIOSystem" and select MODE 1 to deactivate all IO devices.
If you set the CPU to STOP or POWER OFF state in order to modify the plant in this status (for example to add an optional IO device), explicit deactivation using "ReconfigIOSystem" with mode 1 is not necessary. In this case, i.e. following a STOPRUN transition and following a POWER-OFF > POWER-ON transition, all IO devices are deactivated automatically.
3. When you have brought the plant to a safe status that allows restructuring without any danger:
Put the plant together according to your intended application. Add the required optional IO devices at the points at which you planned this in the configuration (observe the order!) or remove optional IO devices that you no longer require.
4. Network the IO devices.
5. Startup the S7-1500 system and call again the instruction "ReconfigIOSystem". Select MODE 2 to transfer the data record CTRLREC.
6. Following successful transfer of the data record, call again the instruction "ReconfigIOSystem". Select MODE 3 to activate all IO devices forming part of the current configuration.
Result: The CPU activates the following IO devices:
­ All IO devices that you have not set as optional IO devices.
­ All optional IO devices listed in the control data record (CTRLREC).
The following IO devices remain disabled:
­ Docking units (IO devices changing during operation).
­ Optional IO devices that are not listed in the control data record.

Note
Call the instruction "ReconfigIOSystem" for all values of the parameter MODE with the same control data record (CTRLREC)!
If you use different data records for the values of the MODE parameter, this results in an inconsistent customization of the configuration and thus to rather incomprehensible error messages.

246

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects
Example: Data record structure for the activation of an IO device The IO device "IO-Device_2" is to be activated as the only IO device in the user program. To do this, you only require the hardware identifier of "IO-Device_2". Recommendation: Use the system constants of the hardware identifiers instead of the absolute values as shown in this example. With this procedure, the content of the DB is not influenced by changes to the hardware identifiers as the result of changes to the configuration. The data record is to be stored in a data block and to be transmitted to the PROFINET interface of the IO controller in the user program using the instruction "ReconfigIOSystem".

 IO device_2 is configured as optional IO device.  Once the data record is transmitted and the configuration is activated using the instruction
"ReconfigIOSystem" IO device_2 is included in the configuration and participates in the data exchange with the IO controller.
Figure 5-95 Example: Activating an optional IO device
Creating data block In this example, the control data record is created in a data block. The data block is structured as follows: Line 2: Array definition: Array of type Word with 4 elements. Array of Word is permitted as the data type. Line 3: Version of the data record (currently: V1.0). Line 4: Number of optional IO devices to be activated (here: 1). Line 5: List of the hardware identifiers of the IO devices, inserted here as system constants. Line 6: Number of port interconnections that are set in the user program (here: 0).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

247

Functions 5.10 Standard machine projects
Line 7: Additional data records (optional)

Figure 5-96 Data block with control records

Parameter MODE of instruction "ReconfigIOSystem" You control how the "ReconfigIOSystem" instruction works with the MODE parameter. The following values are possible for the MODE input parameter:

MODE 1
2 3

Description
All IO devices of the IO system can be disabled by calling the instruction with MODE 1. The "ReconfigIOSystem" instruction uses the "D_ACT_DP" instruction internally. "ReconfigIOSystem" returns errors that are detected by D_ACT_DP in the following output parameters:
· STATUS (error code)
· ERR_INFO (hardware identifier of the IO device causing the error). In STATUS and ERR_INFO, the CPU enters the last determined error/HW identifier and in so doing overwrites an existing error code. For this reason, additional errors can be present besides the entered error.
For controlling the actual configuration of the IO system, the instruction transfers the data record to the PROFINET interface, which is addressed with LADDR block parameter (HW identifier of the PROFINET interface).
All non-optional IO devices in the IO system and optional IO devices that are listed in the control data record CTRLREC are enabled.
The optional IO devices that are not listed in the CTRLREC data record remain disabled.
If IO devices that are part of docking units (alternating IO devices in operation) are listed in the CTRLREC control data record, the PN IO system reacts as follows:
· IO devices of the docking units remain disabled when ReconfigIOSystem is called with MODE 3.
This reaction corresponds to the reaction of a configuration without configurationcontrolled IO devices. IO devices of docking units are disabled by default and must be enabled in the user program. For more information on docking units, refer to the section Docking systems (Page 260).

248

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects
Rules for the call sequence of "ReconfigIOSystem"  Always supply the instruction "ReconfigIOSystem" with the same control data record (CTRLREC input parameter)!  Call sequence following POWER OFF -> POWER ON transition: ­ ReconfigIOSystem call with MODE 1 (optional). ­ ReconfigIOSystem call with MODE 2 (mandatory, even without previous reconfiguration!). ­ ReconfigIOSystem call with MODE 3 (mandatory).  Call sequence following STOP > RUN transition: ­ ReconfigIOSystem call with MODE 1 (optional). ­ ReconfigIOSystem call with MODE 2 (mandatory, even when configuration was modified in STOP state). Otherwise not required). ­ ReconfigIOSystem call with MODE 3 (mandatory).  Call sequence for reconfiguration in RUN state: ­ ReconfigIOSystem call with MODE 1 (mandatory). ­ ReconfigIOSystem call with MODE 2 (mandatory). ­ ReconfigIOSystem call with MODE 3 (mandatory).
Explanations and recommendations concerning the rules  If you do not list an IO device to be configured as optional IO device in the control data record or data block resp. this IO device does not form part of the configuration and does not take part in data exchange with the CPU.  If you do not activate any optional IO device at all and work with the loaded configuration without reconfiguration, you still have to follow the proceeding described in the above section and transmit the control data record to the CPU. The control data record has the simple structure with the following tags: ­ Version (High Byte =1, Low Byte = 0) ­ Number of optional devices to be activated = 0 ­ Number of port interconnections that are set in the user program = 0  Following a STOP > RUN transition and following a POWER-OFF > POWER-ON transition, all IO devices are deactivated automatically. For this reason, no ReconfigIOSystem call with MODE 1 is required for configuration control to function properly. If you use your project as a universally valid sample for programming the configuration control, we still recommend to perform the ReconfigIOSystem call with MODE 1 prior to any reconfiguration. This way, the sample can also be used for reconfigurations in RUN mode.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

249

Functions 5.10 Standard machine projects
 Commissioning extensive I/O systems (more than 8 optional IO devices) while using IRT at the same time:
To keep the startup times short when activating the optional IO devices (ReconfigIOSystem, mode 3), note the following tip: Check the device numbers of the IO devices. The device numbers should follow the topological interconnection starting at the IO controller in ascending order. The further an IO device is from the IO controller topologically, in other words the more IO devices there are between the IO controller and the IO device in question, the higher the device number should be.
You set the device numbers in the "Ethernet addresses - PROFINET" area in the Inspector window with the PROFINET interface selected.
Example of the assignment of device numbers with a linear topology:

Figure 5-97 Example: Device numbers in a line topology
 The CPU processes the instruction "ReconfigIOSystem" to transfer the control data record asynchronously. For this reason, you must call "ReconfigIOSystem" in a loop repeatedly when calling the instruction in the startup program until the output parameter "BUSY" or "DONE" indicate that the data record has been transferred. Tip: To program the loop, use the SCL programming language with the instruction REPEAT ... UNTIL.
REPEAT
"ReconfigIOSystem"(REQ := "start_config_ctrl",
MODE := 1,
LADDR := 64,
CTRLREC := "myCTRLREC".ArrMachineConfig0,
DONE => "conf_DONE",
BUSY => "conf_BUSY",
ERROR => "conf_ERROR",
STATUS => "conf_STATUS");
UNTIL NOT "conf_BUSY"
END_REPEAT;

Additional information
For information on the basic structure of the data record and on using the instruction "ReconfigIOSystem" see the STEP 7 online help.

See also

Configuring IO devices as optional (Page 244)

250

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects

5.10.2.4

Configuring flexible order of IO devices
The following section shows how you can create the conditions required to change the order of IO devices in a PROFINET IO system.
This function is also supported with optional IO devices. For simplicity, a maximum configuration without optional IO devices is shown below.

Concept

A typical application for a standard machine project consists of composing an entire plant from a set of various plant units which only differ with respect to the different arrangement of the units, e.g. in the case of transport systems. Each plant unit consists of a functional unit of mechanics (rails or conveyor belts) and electrics (power supply, IO device with IO modules, sensors, actuators, motors, PROFINET port for data exchange with central control ...).
The following figure shows how, simply by exchanging two rail segments, a new transport system is created that is adapted with an upstream points to the local conditions.

Figure 5-98 Example: Changing the arrangement of IO devices
From the automation viewpoint, no change in the project is required for the flexible adjustment of the PROFINET configuration.
The order of the IO devices is determined by the port interconnection. For each IO device, you define in the port properties the partner port and thus the neighboring device connected at the respective local port. If the partner port is to be defined by the user program, the option "Partner set by user program" is to be selected as partner port.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

251

Functions 5.10 Standard machine projects
The figure below shows the initial configuration of the transport system shown above, which is to permit the order of the connected IO devices to be changed via the user program. In the example, the order of IO-Device_2 and IO-Device_3 is to be controlled via the user program.

Figure 5-99 Example configuration: Configuring flexible order of IO devices
To determine how the partner port settings are to be selected, you must note for each device and each port of a device which partner can be interconnected.
 If the partner is always the same in the different configurations provided, you select the partner port for this partner.
 If the partners vary in the different configurations, you select "Setting partner by user program".
For the example in the figure above, the following port settings result:

Device PLC_1 IO device_1 IO device_1
IO device_2
IO device_2
IO device_3

Local port p1 p1 p2
p1
p2
p1

Partner port setting p1 (IO device_1) p1 (PLC_1) Partner is set by user program
Partner is set by user program
Partner is set by user program
Partner is set by user program

Explanation
Partner of PLC_1 at port 1 is IO device_1 (always)
Partner of IO device_1 at port 1 is PLC_1 (always)
Partner of IO device_1 at port 2 is either IO device_2 or IO device_3 => Setting partner by user program
Partner of IO device_2 at port 1 is either IO device_1 or IO device_3 => Setting partner by user program
Partner of IO device_2 at port 2 is either IO device_3 or IO device_4 => Setting partner by user program
Partner of IO device_3 at port 1 is either IO device_2 or IO device_1 => Setting partner by user program

252

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects

Device IO device_3
IO device_4
IO device_4

Local port p2
p1
p2

Partner port setting Partner is set by user program
Partner is set by user program
Any partner

Explanation
Partner of IO device_3 at port 2 is either IO device_4 or IO device_2 => Setting partner by user program
Partner of IO device_4 at port 1 is either IO device_3 or IO device_2 => Setting partner by user program
No partner planned at port 2

Requirement

 IO controller supports configuration control for IO systems, for example CPU 1515-2 PN as of firmware version 1.7
 STEP 7 V13 SP1 or higher
 The rules (Page 256) for the establishment and operation of a standard machine project have been considered.

Procedure

To set the partner port for a program controlled interconnection, proceed as follows:
1. Select the PROFINET interface of the device (IO controller or IO device) whose port you want to set.
2. In the properties of the PROFINET interface, select the area "Port interconnection" (Extended options > Port [...] > Port interconnection).
3. From the drop-down list, select "Setting partner by user program" as partner port.
4. Repeat steps 1 to 3 for each port to be interconnected via the user program.

See also

Customizing arrangement of IO devices in the program (Page 253)

5.10.2.5

Customizing arrangement of IO devices in the program

Requirements

 IO controller supports configuration control for IO systems, for example CPU 1516pro-2 PN as of firmware version 1.7 as an IO controller
 STEP 7 V13 SP1
 At least one partner port was configured as "Partner set by user program".
 The rules (Page 256) for the establishment and operation of a standard machine project have been considered.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

253

Functions 5.10 Standard machine projects

Procedure

The proceedings corresponds to the proceeding for activating optional IO devices.
Only the structure of the data record must be extended for the program-controlled assignment of the ports. The extension is described in the following sections.

Example: Data record structure for the assignment of partner ports
For the data record structure, you need the HW identifications of the ports.
The data record is to be stored in a data block and to be transmitted to the PROFINET interface of the IO controller in the user program using the instruction "ReconfigIOSystem".
As the input parameter RECORD of the instruction "ReconfigIOSystem" is of the VARIANT data type, you first have to create a data type for the data block.
In the following sections, you find a description of the structure of the PLC data type as well as of the structure of the data block based on this type.

Selecting derived configuration
For the following selected configuration it is shown below what the data record must look like so that the IO devices are interconnected in the planned order by the user program.

Figure 5-100 Example configuration: Customizing arrangement of IO devices in the user program
This example is based on the flexible configuration from the previous section (Page 251) with the settings for the respective partner ports described there.
The partner ports in the specific derived configuration have been defined so that it is possible to name the HW identifications of the ports involved.
The following table only contains those devices whose ports can be defined by the user program. Only these devices are relevant for the data record structure.

Device IO device_1 IO device_2 IO device_2

Local port

Partner port setting

p2 = Port 2

Partner is set by user

HW identifier: 251 program

p1 = Port 1

Partner is set by user

HW identifier: 281 program

p2 = Port 2

Partner is set by user

HW identifier: 311 program

Partner port of the selected configuration Port 1 of IO device_3 HW identifier: 261 Port 2 of IO device_3 HW identifier: 291 Port 1 of IO device_4 HW identifier: 321

254

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.10 Standard machine projects
Creating data block For the derived configuration, the structure of the data block "DB-IO-SYSTEM-PortInterconnections" is explained as an example. This data block is used when calling the instruction "ReconfigIOSystem" at input parameter "CTRLREC". Instead of the absolute values for the hardware identifiers of the ports, the system constants of the hardware identifiers are used here. The data block is structured as follows: Line 2: Declaration of an Array of Word (only this data type is possible). Line 3: Version of the control data record: V1.0. Line 4: Number of optional IO devices: 0. Line 5: Number of specified port interconnections: 3. Line 6: Port interconnection 1, local port. Line 7: Port interconnection 1, partner port. Line 8: Port interconnection 2, local port. Line 9: Port interconnection 2, partner port Line 10: Port interconnection 3, local port. Line 11: Port interconnection 3, partner port.

Figure 5-101 Data block with data record for port interconnections
Interconnection not listed in data block If the partner port was configured as "Setting partner by user program" in the port properties and this port is not listed in the data record or data block resp., then the CPU sets this port to the setting "any partner". If no data record is transmitted at all, the CPU sets this "any partner" setting for all program-controlled assignments.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

255

Functions 5.10 Standard machine projects

Additional information
For information on the basic structure of the data record and on using the instruction "ReconfigIOSystem" see the STEP 7 online help.

5.10.2.6

System behavior and rules
Below, you find a description of how an IO system whose configuration is controlled by the user program behaves in operation.
In addition, rules and restrictions are listed here which must be considered when configuring the maximum structure of the configuration in a standard machine project.

System behavior
 System diagnostics:
If an optional IO device is deactivated, the IO device is displayed as "deactivated" from the system diagnostics viewpoint (online view or Online & Diagnostics).
 Topology view:
Offline view: As configured. No interconnection is shown for ports with partner ports configured as "Setting partner by user program".
Online view: Ports and interconnections with deactivated IO devices are shown in a different shade of green as error-free ports and interconnections of activated IO devices.
 Representation in the Web server:
The names of devices are shown as configured (Properties > General > Project information).
The assigned PROFINET device name for the CPU is shown on the "Communication" website, at the "Parameter" tab.
IP address parameters: Currently assigned IP address parameters are shown on the site "Module state".
Topology: The current topology resulting from any customizations via user program is shown in the Web server. IO devices configured as optional are shown as "deactivated" IO devices in the Web server.

256

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Rules

Functions 5.10 Standard machine projects
The rules for standard machine projects as described here (Page 233) apply. For configuration-controlled IO systems, the following additional rules apply:  When configuring MRP (Media Redundancy Protocol):
The ports configured as ring ports must not be interlinked via user program. However, devices with ring ports (devices of an MRP domain) can be optional IO devices.  When configuring docking stations (= IO devices changing during operation): Neither the docking station nor the first IO device of a docking unit may be optional IO devices. The ports of the docking units must not be interlinked via user program.  When configuring IRT: The order of synchronized IO devices ("IRT devices") must be defined by the configuration and must not be changed in the different variants of a standard machine. For this reason, the ports of the IRT devices must not be interlinked via user program. However, you have the possibility to configure IRT devices primarily as optional IO devices. You also have the option to interconnect, by user program, RT devices that are, for example, separated from this line by a switchport (see figure).

Figure 5-102 Example: Configuration control for IO systems with separated RT device

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

257

Functions 5.11 Saving energy with PROFIenergy

5.11

Saving energy with PROFIenergy

Saving energy with PROFIenergy
PROFIenergy is a PROFINET-based data interface for switching off consumers centrally and with full coordination during pause times regardless of the manufacturer or device type. Through this, the process should only be provided with the energy that is absolutely required. The majority of the energy is saved by the process; the PROFINET device itself only contributes a few watts of savings potential.

Figure 5-103 Energy savings during pauses with PROFIenergy
Basic information
In order to use the PROFIenergy functionality, the existing IO controller has to be "upgraded" to a so-called "PROFIenergy controller" by means of a function block in the PROFINET IO system and at least one PROFIenergy-capable IO device ("PROFIenergy device") has to exist. The PROFIenergy commands (for example to start or end a pause) are sent by the "PROFIenergy controller" to the individual "PROFIenergy devices". Each "PROFIenergy device" decides individually how it responds to the PROFIenergy command (response is device- and manufacturer-specific).
No additional hardware is needed; the PROFIenergy commands are directly interpreted by the PROFINET devices.
Principle of operation
At the beginning and end of pauses, the system manager enables or disables the pause function of the system; then the IO controller sends the PROFIenergy command "Start_Pause"/"End_Pause" to the PROFINET devices. The device interprets the contents of the PROFIenergy command and switches off or back on.
Through other PROFIenergy functions, device information can be accessed during pauses. The user can use this information in order to optimally time the transfer of the "Start_Pause"/"End_Pause" command.

258

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.11 Saving energy with PROFIenergy
PROFIenergy instructions for IO controllers
Two instructions are needed for controlling and monitoring the PROFIenergy functions.
The instruction PE_START_END allows you to easily activate and deactivate the idle state of PROFINET devices. This occurs by means of an incoming edge or outgoing edge. The instruction PE_START_END provides a simple interface for implementing the PROFIenergy commands Start_Pause and End_Pause.
The instruction PE_CMD allows you to transmit all PROFIenergy commands, including Start_Pause and End_Pause. The other commands can be used, for example, to query the current status of the PROFINET device or the behavior during the pauses. The instruction PE_CMD is a convenient means for handling all PROFIenergy functions.
PROFIenergy instruction for I-devices
The instruction PE_I_DEV allows you to also implement PROFIenergy on I-devices. The instruction receives PROFIenergy commands on the I-device and forwards these to the user program for execution. After executing the command, the user program calls the PE_I_DEV instruction again in order to send the acknowledgment to the IO controller. For these replies, each command offers you a helper instruction that supplies the reply data to the instruction.
The instructions can be found in the "Instructions" task card of the STEP 7 program editor.
Configuration and programming
The functions can be comfortably integrated into existing systems. No configuration is required for the use of PROFIenergy. However, amendments to the user program are required:
 Before the "Start_Pause" command, you must ensure that your system is brought into a condition that is suitable for a pause.
 A sequential control system for the beginning of the pause of the devices and for the punctual restarting of the device on break must be programmed (depending on the required startup times that the respective PROFINET device demands).
 The error messages of the PE_CMD instruction must be evaluated, and the required reaction must be programmed (for example, cancellation or continuation of further commands on lower-level PROFINET devices).
Note
In the case of the ET 200S distributed I/O system, you have to configure the application of PROFIenergy in STEP 7. You configure PROFIenergy by selecting the "Use energy saving for this potential group" check box in the PM-E DC24V/8A RO power module.
If you want to use PROFIenergy for an I-device, you have to configure this in STEP 7. Information about configuring PROFIenergy for an I-device is available in the section Configuring PROFIenergy with I-devices (Page 137).

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

259

Functions 5.12 Docking systems
Application examples
 SIMATIC S7 library for simple configuration of PROFIenergy. The application example is available here (https://support.industry.siemens.com/cs/ww/en/view/109478388).
 Application guide for implementation of shutdown concepts with PROFIenergy. The application example is available here (https://support.industry.siemens.com/cs/ww/en/view/96837137).
 Saving energy with SIMATIC S7 PROFIenergy with I-device The application example is available here (https://support.industry.siemens.com/cs/ww/en/view/41986454).

5.12

Docking systems

Using alternating IO devices ("alternating partners") during operation in a docking station
The following figure shows an automation cell with a docking station and several docking units.

Figure 5-104 Alternating IO devices (partner ports) in a docking system

Area of application for alternating IO devices during operation You can use the PROFINET function "Alternating IO devices during operation" ("alternating partners"), for the tool changeover for robots, for example. Typical tools include:
 Welding guns
 Positioning tools for manufacturing parts

260

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.12 Docking systems
Requirements for interconnecting alternating partner ports during operation You can interconnect IO devices with alternating partner ports during operation in the following situations:  The alternating IO device (docking unit) has no IRT communication configured.  The PROFINET interface is connected to the Ethernet subnet.  The PROFINET devices support topology configuration.  The IO controller, the alternating IO devices (docking unit) and the switch (docking station) on which the alternating IO devices are to be operated support this feature.
Note Unique IP address Each docking unit of a docking system must be configured with a unique IP address in a shared project and operated on the same IO controller as all other docking units of the system.
Applicative conditions The following points should be observed when implementing a docking system with alternating IO devices during operation:  The IO devices of all docking units must be deactivated by default in the configuration.  At any time, only one docking unit can be active, i.e., only the IO devices of one docking unit can be activated. All IO devices of other docking units must be deactivated or become deactivated before the IO devices of a docking unit can be activated. You activate an IO device with the "D_ACT_DP" instruction.  A physical connection to this docking unit and its IO devices must be created in order to activate a docking unit. The IO devices are then switched on (power on). At the same time, all the IO devices of this docking unit must be activated in the user program with the "D_ACT_DP" instruction.
Note Automatic deactivation in "Startup" mode of the CPU If the CPU is in "Startup" mode, IO devices of a docking system that alternate during operation are deactivated automatically.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

261

Functions 5.12 Docking systems
 After the feedback "IO device activated", you can access the IO device by means of direct I/O access.
 Call the "D_ACT_DP" instruction to activate and deactivate the IO device as close as possible to the start of the OB 1 cycle.
Note Number of alternating IO devices during operation ("alternating partner port") - number of docking units
If you wish to achieve the shortest possible tool changeover times, you must observe the following points that are dependent on the CPU or the CP that is being used: · Only those IO devices that have been configured with the PROFINET function
"Prioritized startup" can start up in an optimized fashion. The number of IO devices with configuration for this PROFINET function is restricted. · Only a limited number of IO devices can be activated at the same time. This number depends on the available "D_ACT_DP" resources. A docking unit should not contain more than the corresponding number of IO devices. If more IO devices are operated in a docking unit, the IO devices must be activated one after the other, which takes correspondingly longer.
Example: An S7-CPU 1516-3 PN/DP can operate a maximum of 32 IO devices with prioritized startup and can simultaneously activate 8 IO devices by means of "D_ACT_DP".
Therefore, for a scheduled optimum use, a docking unit should include no more than 8 IO devices and no more than 32 IO devices should be used in all the alternating docking units.

5.12.1

Configuring docking systems

Configuring docking systems The possible connections to the individual IO devices must be configured in STEP 7.

Procedure in STEP 7
1. Configure your system as usual, but do not yet configure the topological interconnections of the individual PROFINET devices.
2. Navigate to the "Topology view" tab.
3. Select the port which you want to operate with alternating partners during operation.
4. Navigate to the "Properties" tab of the inspector window and select "Port interconnection" in the area navigation.

262

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.12 Docking systems
5. Under "Partner port", select the "Alternative partners" option. 6. Select the desired partner ports: To do this, click "<Add alternative partners... and choose
a partner port. Repeat this process until all required partner ports are connected.

Result

Figure 5-105 Configuring docking systems in STEP 7
Tip:You can also use drag-and-drop operation to connect alternative partner ports in the topology view.
You have interconnected the respective port with one or more alternating IO devices. The connections with the individual alternating partner ports during operation are shown in the topology view by a green, dashed line.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

263

Functions 5.12 Docking systems
Multiple IO devices as a docking unit ("Alternating partner port") A docking unit may also consist of several IO devices connected in series. If you use IO devices connected in series as a docking unit, ensure that the topology of the IO devices is configured. A docking unit consisting of two IO devices connected in series (Tool_3_1 and Tool_3_2) is shown at the bottom right in the figure below.

Figure 5-106 Docking system in the topology view of STEP 7
Restriction in the interconnection The interconnection with a partner port is not possible in the following cases:  The partner port does not have a suitable type of cable. In this case, a media convertor from the catalog must be inserted.  The partner port is blocked (deactivated).  The two ports that are to be interconnected belong to the same interface (it is only possible to interconnect the ports from different interfaces in a station).  The two ports that are to be interconnected belong to different Ethernet subnets.
Deleting interconnections Select the port of the alternating partner and remove the interconnection with the "Remove" button.

264

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

5.13

Accelerating startup

Functions 5.13 Accelerating startup

5.13.1

Options for accelerating the startup of IO devices

Reducing the startup time of IO devices
The time needed for the startup of IO devices depends on various factors and can be reduced in different ways.
You can achieve a significant reduction in the startup time using the "Prioritized startup" PROFINET function.
To further reduce the startup times, use the following measures in addition to the "Prioritized startup":
 Optimize the port settings
 Optimize the cabling of the ports
 Perform measures in the user program (for docking systems only)
These measures will accelerate the startup of IO devices even without "Prioritized startup". However, you can only achieve the fastest startup times of about 500 ms by combining all the measures with "Prioritized startup".
Note Startup time up to 8 s
In the following situation, despite prioritized startup, a startup time of up to 8 s may occur:
On a docking point, multiple physical IO devices dock as an IO device with identical device names and identical IP configurations (for example, docking point for automatic transport system).

Dependencies

The length of the startup time for an IO device (distributed I/O) with the "Prioritized startup" PROFINET function depends on the following factors:  IO devices (distributed I/O)  IO structure of the IO device (distributed I/O)  Modules of the IO device (distributed I/O)  IO controller  Switch  Port setting

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

265

Functions 5.13 Accelerating startup
 Cabling  Configured RT class of the IO device
Note Startup time and RT class of the IO device An IO device with IRT communication requires longer than an IO device with RT communication for the accelerated startup. The longer startup for IRT is due to the necessity of synchronizing the IO device before the communication can be set up.
Note IWLAN and prioritized startup PROFINET devices which are connected via access points to PROFINET IO do not support the "Prioritized startup" PROFINET function.

5.13.2

Prioritized startup

Definition

Prioritized startup refers to the PROFINET function for accelerating the startup of IO devices in a PROFINET IO system with RT communication. It shortens the time that the respective configured IO devices require in order to reach the cyclic user data exchange in the following cases:
 After the power supply has returned
 After a station has returned
 After activation of IO devices

WARNING
Data exchange despite multiple use IP addresses/device names in PROFINET IO system
To achieve higher ramp-up times, the IO controller checks the uniqueness of device name of IP address parallel to the device ramp-up. In the case of incorrect or double assignment of device name or IP address, a short-time data exchange is possible until the IO controller reacts to the error. In this time the IO controller can exchange IO data with the false device.
During commissioning, ensure that no IP addresses / device names are assigned multiple times in the PROFINET IO system.

266

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.13 Accelerating startup

Advantages

The PROFINET functionality "prioritized startup" enables PROFINET IO applications in which machine parts or tools and their IO devices have been permanently replaced. Waiting times of several seconds between the scheduled processes of the restart are reduced to a minimum by this optimization. This accelerates the production process with alternating IO devices (PROFINET functionality "docking systems"), e.g. in tool changer applications, and enables a greater throughput in production.
The PROFINET functionality "prioritized startup" also offers a considerable increase in performance for applications where a quick startup time of the IO devices after "power on" or after station failure / station return is required, or when activating IO devices.

Area of application You can use prioritized startup, for example, for changing tools for robots in the automotive industry. Typical tools are, for example:
 Welding guns
 Positioning tools for the manufacture of car body parts

Figure 5-107 Example configuration of a tool changer: Tools 1-3 configured with "Prioritized startup".

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

267

Functions 5.13 Accelerating startup

5.13.3

Configuring prioritized startup

Requirements

You can enable the "Prioritized startup" PROFINET function for the IO devices (distributed I/O) only in the following cases:
 The IO controller used can prioritize selected IO devices during startup.
 The IO device used supports prioritization.

Procedure

1. Select the IO device in the network view or device view for which you wish to accelerate startup.
2. Open the IO device properties in the Inspector window. 3. Select "PROFINET interface > Advanced options > Interface options". 4. Select the "Prioritized startup" check box.

Figure 5-108 Configuring prioritized startup in STEP 7
5. Download the configuration to the IO controller.
Note Prioritized startup after a startup for the first time A prioritized startup of the IO device is always available to you after the first configuration of this IO device in the very first startup of the PROFINET IO system. Even in the case of spare parts or a reset to factory settings, the first startup is a standard startup for the respective configured IO devices.
Note Number of IO devices (distributed I/O) with prioritized startup You can only start up a maximum number of IO devices with the "Prioritized startup" PROFINET functionality within one PROFINET IO system. This maximum number depends on the IO controller used.

268

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.13 Accelerating startup

5.13.4

Optimize the port settings

Optimizing port settings on the IO device and IO controller
The transfer medium and the duplex option are checked during startup of the IO device in the case of copper cabling.
These checks require time, but with specific presets of these options you can save the time the check requires. Make certain that the settings made correspond to the actual conditions (using the correct cables).

Optimizing port settings for accelerated startup To optimize port settings for accelerated startup, follow these steps: 1. Select the ports of the IO controller or the partner port of the corresponding IO device. 2. Navigate to "Port options > Connection" in the Inspector window. Select the setting "TP 100 Mbps full duplex" under "Transmission rate/duplex" 3. Clear the "Enable autonegotiation" check box.

Figure 5-109 Optimizing port settings for accelerated startup in STEP 7
These settings are automatically applied during topology configuration for the partner port.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

269

Functions 5.13 Accelerating startup

5.13.5

Optimize the cabling of the ports

Requirements

You have made the following settings for the port in question to reduce the startup time of the IO device:  Fixed transmission rate  Autonegotiation deactivated The time for negotiating the transmission rate during startup is saved. If you have disabled autonegotiation, you must observe the cabling rules.

Properties of ports PROFINET devices have the following two types of ports:

Type of port Switch port with crossed pin assignment
Terminal device port with normal pin assignment

PROFINET devices For IO devices: Port 2 For S7-CPUs with two ports: Ports 1 and 2 For IO devices: Port 1 For S7-CPUs with one port: Port 1

Crossed pin assignment means that the pin assignment for the ports for sending and receiving between the respective PROFINET devices is inverted internally.

Validity of the cabling rules
The cabling rules described in the following paragraph apply exclusively for the situation in which you have specified a fixed port setting in STEP 7.

Rules for cabling
You can connect several IO devices in series using patch cables. To do this, connect port 2 of the IO device (distributed I/O) with port 1 of the next IO device. The following graphic provides an example with two IO devices.

Figure 5-110 Optimized cabling for accelerated startup
270

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Functions 5.13 Accelerating startup

5.13.6

Measures in the user program

Introduction

You can make certain changes in the user program to accelerate the startup for IO devices of docking systems that alternate during operation.

Making the required changes to the user program
To accelerate the startup by making changes to the user program, follow these steps:
1. Call the "D_ACT_DP" instruction to activate and deactivate the IO device at the start of the OB 1 cycle.
If the IO device is replaced, the device that is no longer required must be deactivated and the new device must be activated.
2. If you control the "Power ON" command of the IO devices via the application, then start the activation of the IO devices via the corresponding call of the "D_ACT_DP" instruction as near to the same time as possible. The IO device has to be physically connected for this.
3. You access the IO device using direct access commands after the "D_ACT_DP" instruction has provided the feedback "IO device activated".

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

271

PROFINET with the redundant S7-1500R/H system

6

Introduction

The same basic rules apply to PROFINET IO communication with the redundant S7-1500R/H as with the S7-1500 automation system. The redundant S7-1500R/H system exchanges IO data cyclically with the IO devices.
The redundant S7-1500R/H system supports a limited scope of PROFINET functions.
The redundant S7-1500R/H system uses media redundancy (MRP) in the PROFINET ring.
You can use the following IO devices on the redundant S7-1500R/H system:
 IO devices with S2 system redundancy
 Standard IO devices over the "Switched S1 device" function of the CPU
When configuring PROFINET with the redundant S7-1500R/H system, you must observe a few specifics, e.g. special configuration requirements.

Limitations

 Real-time communication: ­ RT with a fixed send clock of 1 ms ­ No IRT ­ No MRPD redundancy procedure ­ No PROFINET with performance upgrade
 No isochronous mode  No direct data exchange  No operation as I-device  No access to shared devices  No support of docking systems  No support of series machine projects  Port options (only for PROFINET interface X1):
­ No port disabling possible ­ No configuring of boundaries possible

272

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.1 Media redundancy in the redundant S7-1500R/H system
 Functionality as IO controller: ­ No prioritized startup ­ No enabling/disabling of IO devices ­ No support of series machine projects, e.g. IO systems that can be used multiple times
 PROFINET interface X2 does not support IO functionality (CPU 1515R/CPU 1517H)  No diagnostics using the web server

6.1

Media redundancy in the redundant S7-1500R/H system

The two CPUs of the redundant system must be located in a PROFINET ring that uses the media redundancy method MRP. All PROFINET devices in the PROFINET ring are connected to the S7-1500R/H in a media-redundant manner. If the PROFINET ring is interrupted, reconfiguration may occur. After a short reconfiguration time, the PROFINET devices can be accessed again via an alternative path.

6.2

H-Sync Forwarding

Introduction

H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of a S7-1500R redundant system only within the PROFINET ring.
In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
Note Support of H-Sync Forwarding
The technical specifications typically state whether a PROFINET device supports H-Sync Forwarding.
The GSD file will also indicate whether the device supports H-Sync Forwarding. The device supports H-Sync Forwarding when the "AdditionalForwardingRulesSupported" attribute in the "MediaRedundancy" element is set to "true".

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

273

PROFINET with the redundant S7-1500R/H system 6.2 H-Sync Forwarding

Conditions

 H-Sync Forwarding is not relevant for redundant S7-1500H systems. With the redundant S7-1500H system, the H-Sync frames are transmitted exclusively via the fiber-optic cables.
 When you use PROFINET devices with more than two ports (e.g. switch) in the PROFINET ring of an R-system, these devices must support H-Sync Forwarding.
H-Sync frames leave the PROFINET ring with a switch without H-Sync Forwarding. This results in an additional load on the network. Another serious result is that the redundancy of other R-systems in the network can fail or startup can be prevented.
 H-Sync Forwarding is recommended if you are using PROFINET devices with only 2 ports in the PROFINET ring of an R-system.
When you operate PROFINET devices without H-Sync Forwarding in the PROFINET ring of the redundant S7-1500R/H system, the following scenario will result in an additional cycle time increase:

1. The redundant S7-1500R system is in the RUN-Redundant system state. 2. The PROFINET cable which directly connects the two CPUs fails. 3. The PROFINET ring is interrupted. 4. The PROFINET ring is being reconfigured. 5. PROFINET devices without H-Sync Forwarding do not forward any H-Sync frames during the
reconfiguration time of the PROFINET ring. 6. The cycle time increases by the reconfiguration time of the PROFINET ring.
Figure 6-1 Failure of the PROFINET cable between the CPUs

274

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.2 H-Sync Forwarding
If the cyclic program exceeds the cycle monitoring time, the timeout OB (OB 80) can be started. Redundancy is lost if the time error OB (OB 80) is not present or the cycle time was exceeded twice with OB 80.
Note If failure of the PROFINET cable that directly connects the two CPUs of the redundant S7-1500R system is unlikely, you can use PROFINET devices without H-Sync Forwarding in the PROFINET ring of the redundant S7-1500R system. Example: Both CPUs of the redundant S7-1500R/H system are located next to each other in the control cabinet. In this case, it is unlikely that the PROFINET cable will fail.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

275

PROFINET with the redundant S7-1500R/H system 6.3 System redundancy S2

6.3

System redundancy S2

Introduction

IO devices with S2 system redundancy enable uninterrupted process data exchange with the S7-1500R/H redundant system in the event of a CPU failure.
An IO device with system redundancy S2 supports system redundancy ARs. The system redundancy ARs can be present in duplicate (redundantly). Thus, an IO device supports ARs of 2 IO controllers simultaneously (with respect to the same modules).
A system redundancy AR can be either a primary AR or a backup AR. An IO device activates the data of the primary AR at the outputs. The data of the backup AR is only saved.
In STEP 7, you configure system redundancy S2 for an IO device by assigning the IO device to both CPUs of the S7-1500R/H redundant system.

Behavior in system state RUN-Redundant
Both CPUs are IO controllers. The PROFINET communication runs simultaneously on both system redundancy ARs, in each case between one of the CPUs (IO controllers) and the IO device. If the primary CPU now fails, the backup CPU becomes the primary CPU and, at the same time, the backup AR changes over to primary AR. The data of this AR becomes active at the outputs.

Figure 6-2 Primary backup AR
Behavior in system state RUN-Solo Only the primary CPU is an IO controller. The PROFINET communication runs on the primary AR between the primary CPU (IO controller) and the IO device. There is no AR between the backup CPU and the IO device.

276

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.4 Switched S1 device

6.4

Switched S1 device

Introduction

As of firmware version V2.8, the S7-1500R/H redundant system supports the "Switched S1 device" function.
The "Switched S1 device" function of the CPU enables operation of standard IO devices on the S7-1500R/H redundant system.
Standard IO devices, too, are always assigned to both CPUs of the S7-1500R/H redundant system. In contrast to an IO device with S2 system redundancy, a standard IO device supports only one AR. The AR always exists only to the primary CPU of the S7-1500R/H redundant system.
In STEP 7 you configure an IO device connected via the "Switched S1 device" function by assigning a standard IO device to both CPUs of the redundant S7-1500R/H system.
Note Standard IO devices in the redundant system S7-1500R
Standard IO devices usually do not support H-Sync Forwarding (Page 273).
To avoid a cycle time increase when the PROFINET ring is interrupted, integrate the standard IO devices behind a switch and not in the PROFINET ring.

Behavior in system state RUN-Redundant
PROFINET communication runs on the AR between the primary CPU (IO controller) and the standard IO device. There is no AR between the backup CPU and the standard IO device. If the primary CPU fails or is switched to STOP, the S7-1500R/H redundant system responds as follows:
 The AR between the primary CPU and the standard IO device is disconnected.
 The previous backup CPU becomes the new primary CPU.
 The S7-1500R/H redundant system temporarily has no access to the inputs and no control over the outputs of the standard IO device. During this time, the configured substitute value behavior applies to the standard IO device.
 The new primary CPU builds an AR to the standard IO device.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

277

PROFINET with the redundant S7-1500R/H system 6.4 Switched S1 device
 As soon as the new primary CPU has set up the AR, the S7-1500R/H redundant system has access to the inputs again and control over the outputs of the standard IO device.

Figure 6-3 Behavior of standard IO devices in case of failure of the primary CPU
Behavior in system state RUN-Solo Only the primary CPU is an IO controller. PROFINET communication runs on the AR between the primary CPU and the standard IO device. There is no AR between the backup CPU and the IO device.
OB behavior for standard IO devices with primary backup switching If the primary CPU fails or goes to STOP, the standard IO devices temporarily fail. OB 72 "Redundancy error" is called, additional OB 86 "Module rack failure" for the failed IO devices are not called. To detect the failed IO devices, call the DeviceStates instruction in OB 72. With the "Switched S1 device" function, the new primary CPU establishes the ARs to the standard IO devices again. OB 86 is called for each return of an IO device.

278

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.5 Main differences between IO device with S2 system redundancy and standard IO device

6.5

Main differences between IO device with S2 system redundancy

and standard IO device

Table 6- 1 Main differences between IO device with S2 system redundancy and standard IO device

Property
Requirement for IO device
Maximum simultaneously supported ARs with regard to the same modules Behavior when replacing the primary CPU

IO device with S2 system redundancy Device supports S2 system redundancy 2
Continuous connection with S71500R/H redundant system Process data is transferred further.

Standard IO device
-
1
Temporary disconnection from S7-1500R/H redundant system. No process data is transferred until the standard IO device is available again. The status of the outputs depends on the substitute value behavior of the respective channels.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

279

PROFINET with the redundant S7-1500R/H system 6.6 Installation guidelines

6.6

Installation guidelines

Configuration requirements for a ring topology with the redundant S7-1500R system  The two CPUs have the media redundancy role "Manager (auto)".  All other devices in the PROFINET ring have the media redundancy role "Client".  No other redundant S7-1500R/H system is present in the PROFINET ring.  Port interconnection: ­ The two CPUs are directly interconnected via one of the two ports of PROFINET interface X1. No other devices of the ring are located in between. ­ The two CPUs can be indirectly interconnected via the other two ports. The other devices of the ring are located in between. See the examples below.  Max. number of IO devices: 64
Note Standard IO devices in the redundant system S7-1500R Standard IO devices usually do not support H-Sync Forwarding. To avoid a cycle time increase when the PROFINET ring is interrupted, integrate the standard IO devices behind a switch and not in the PROFINET ring.
 Number of PROFINET devices (IO devices, switches, S7-1500R CPUs, S7-1500 CPUs (V2.5 or later) and HMI devices) in the PROFINET ring: ­ Max. 50 (recommended: max. 16)
Note Recommendation: The number of devices in the PROFINET ring influences the availability of the S7-1500R system. The number of PROFINET devices including R-CPUs in the PROFINET ring should not exceed 16. If you operate significantly more devices in the PROFINET ring, the availability of the IO devices and R-CPUs is reduced. The technical specifications in the documentation are based on the recommended maximum of 16 PROFINET devices in the ring in S7-1500R.

Configuration requirements for a ring topology with the redundant S7-1500H system  The two CPUs have the media redundancy role "Manager (auto)".  All other devices in the PROFINET ring have the media redundancy role "Client".  No other redundant S7-1500R/H system is present in the PROFINET ring.

280

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system

6.7

Configuring PROFINET IO on a redundant S7-1500R/H system

PROFINET IO configurations with the redundant S7-1500R/H system The following figures show you examples of PROFINET IO configurations with the redundant S7-1500R/H system. All the figures use the following abbreviations for AR:  SR-AR: System redundancy AR between an IO device (S2) and one of the CPUs of the redundant S7-1500R/H system  AR: "normal" AR between a standard IO device and the associated IO controller All configurations use the CPU 1515R as an example. The PROFINET configurations shown also work with the CPU 1513R and CPU 1517H.
IO devices in the PROFINET ring The redundant S7-1500R system consists of the two CPUs 1515R and two IO devices in the PROFINET ring. The IO devices support system redundancy S2, media redundancy and H-Sync Forwarding.

Figure 6-4 Example of a S7-1500R redundant system with two IO devices in the PROFINET ring

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

281

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system
PROFINET devices downstream of a switch To connect additional PROFINET devices to the PROFINET ring, use a switch. For the redundant S7-1500R system, ensure that a switch in the PROFINET ring supports H-SYNC Forwarding in addition to MRP. You connect the following devices to the PROFINET ring with a switch.  PROFINET devices with one port  Non MRP-capable PROFINET devices  PROFINET devices that do not support H-Sync Forwarding, such as standard IO devices. The following figure shows a redundant S7-1500R system with connected PROFINET devices downstream of a switch.

IO device 1 (S2) Switch IO device 2
HMI device

IO device 1 is located in the PROFINET ring. The IO device 1 supports system redundancy S2, MRP and H-Sync Forwarding. The switch is located in the PROFINET ring. The switch supports MRP and H-SYNC Forwarding. IO device 2 is connected to the PROFINET ring via the switch. IO device 2 is a standard IO device that is connected to the redundant S7-1500R system via the "Switched S1 device" function. The HMI device is connected to the PROFINET ring via the switch.

Figure 6-5 PROFINET devices downstream of a switch

282

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system
Additional PROFINET IO system in the configuration
The configuration can also contain additional IO controllers with their own IO devices. To ensure that enough bandwidth is available in the PROFINET ring for the redundant S7-1500R/H system, place additional IO controllers with their I/O downstream of a switch.
When determining the maximum number of IO devices inside and outside the PROFINET ring, the redundant system does not detect the S7-1500 CPUs and their IO devices. If you use S7-1500 CPUs, you must check the maximum number yourself.
The following figure shows a redundant S7-1515R system. An additional PROFINET IO system with a CPU 1516 as IO controller is located downstream of the switch. A separate standard IO device has been assigned to the IO controller.

Figure 6-6 Example of a redundant S7-1500R system with an additional PROFINET IO system

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

283

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system
Additional IO controllers can also be connected as I-device to the redundant S7-1500R/H system. An I-device is connected like a standard IO device to the redundant S7-1500R/H system. The redundant S7-1500R/H system supports the use of I-devices only via GSD file and as standard IO device.

Figure 6-7 I-device downstream of a switch

284

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system Connection to another PROFINET IO system via the PN/PN coupler The redundant S7-1500R/H system cyclically exchanges IO data with another PROFINET IO system via a PN/PN coupler. In the following figure, the PN/PN coupler connects a redundant S7-1515R system to another PROFINET IO system. The left side of the PN/PN coupler is assigned to the redundant S7-1515R system. The assignment is system-redundant and media-redundant. The right side of the PN/PN coupler is assigned to the CPU 1516 (IO controller). The PROFINET IO system of the CPU 1516 has no redundancy in this example.
Figure 6-8 Configuration with the PN/PN coupler with one-sided system redundancy (S2/S1)

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

285

PROFINET with the redundant S7-1500R/H system 6.7 Configuring PROFINET IO on a redundant S7-1500R/H system
Connection to an additional redundant S7-1500R/H system via the PN/PN coupler Two redundant S7-1500R/H systems cyclically exchange IO data via the PN/PN coupler. In the following figure, the PN/PN coupler connects two redundant S7-1515R systems to each other. Each of the two PN/PN coupler sides are assigned to a redundant S7-1515R system. Each of the two sides of the PN/PN coupler are connected to the respective redundant S7-1515R system in a system-redundant and media-redundant manner.

Figure 6-9 Configuration with the PN/PN coupler with two-sided system redundancy (S2/S2)

Reference

You can find more information on the PN/PN coupler in the PN/PN Coupler (https://support.industry.siemens.com/cs/ww/en/view/44319532) manual.

286

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.8 Assigning IO device to the redundant S7-1500R/H system

6.8

Assigning IO device to the redundant S7-1500R/H system

Requirements

 Redundant S7-1500R/H system
 IO device:
­ As of firmware version V2.8, the redundant S7-1500R/H system supports IO devices with system redundancy S2 and standard IO devices.
­ The redundant S7-1500R/H system with firmware version before V2.8 only supports IO devices with system redundancy S2, e.g. IM 155-6 PN HF as of firmware version V4.2.

Procedure

To assign an IO device to the redundant S7-1500R/H system, follow these steps:
1. In the network view of STEP 7, select the PROFINET interface of the IO device.
2. Using drag-and-drop, draw a line between the PROFINET interface of the IO device and the PROFINET interface X1 of the left CPU.

Figure 6-10 Assigning IO device to the left CPU
The IO device is assigned to the left CPU. 3. Using drag-and-drop, draw a line between the PROFINET interface of the IO device and
the PROFINET interface X1 of the right CPU.

Figure 6-11 Assigning IO device to the right CPU

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

287

PROFINET with the redundant S7-1500R/H system 6.8 Assigning IO device to the redundant S7-1500R/H system
Result: The IO device is connected to the redundant S7-1500R/H system.
Figure 6-12 Assigned IO device
Note I-device as standard IO device You cannot assign a device that you configured in STEP 7 as an I-device to the S7-1500R/H redundant system. In order to operate an I-device as a standard IO device on the S7-1500R/H redundant system, always configure the I-device via GSD file. · SIMATIC CPU as I-device
­ First, configure the SIMATIC CPU in STEP 7 as an I-device with all transfer areas. ­ Export the I-device as a GSD file. The GSD export can be found in the properties of
the PROFINET interface under "Operating mode" > "I-device communication" > "Export Generic System Description file (GSD)". ­ Install the GSD file in STEP 7. · HMI device as I-device ("Direct key" function) ­ The GSD files for SIMATIC Comfort Panel and SIMATIC Mobile Panel can be found in this application example (https://support.industry.siemens.com/cs/ww/en/view/73502293). Assign the device configured via GSD file to the S7-1500R/H redundant system.

288

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.8 Assigning IO device to the redundant S7-1500R/H system
Display of the IO device assignments in STEP 7 Regardless of whether an IO device is connected as system redundant or as standard IO device to the redundant S7-1500R/H system, the network view always shows "Multi assigned". To determine which IO devices are connected system redundant and which ones are connected as standard IO devices, follow these steps: 1. In the network view of STEP 7, select the redundant S7-1500R/H system. 2. In the tabular view of the network view switch to "I/O communication". The table contains all assignments of IO devices to the PROFINET interfaces of the redundant S7-1500R/H system. The "Operating mode" column shows how the IO device is connected to the redundant S7-1500R/H system:  IO device (S2): IO device is connected system redundant.  IO device (S1): IO device is connected over the "Switched S1 device" function.
Figure 6-13 Display of the IO device assignments in STEP 7

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

289

PROFINET with the redundant S7-1500R/H system 6.9 Configuring media redundancy (MRP) for a configuration with the redundant S7-1500R/H system

6.9

Configuring media redundancy (MRP) for a configuration with the

redundant S7-1500R/H system

Requirements

 Redundant S7-1500R/H system  All devices in the ring support the media redundancy protocol MRP.  IO devices are assigned to the redundant S7-1500R/H system.

Figure 6-14 Example configuration: Configuring MRP for S7-1500R/H
MRP role of the CPUs of the redundant S7-1500R/H system As soon as you create a redundant S7-1500R/H system in STEP 7, STEP 7 automatically assigns the MRP role "Manager (auto)" to the PROFINET interfaces X1 of both CPUs.
Defining the MRP role for additional devices of the ring in STEP 7 To specify the media redundancy for additional devices in the ring, follow these steps: 1. In the network view of STEP 7, select the PROFINET interface X1 of one of the two CPUs of the redundant S7-1500R/H system. 2. In the Inspector window navigate to "Properties" > "General" > "Advanced options" > "Media redundancy".

290

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFINET with the redundant S7-1500R/H system 6.9 Configuring media redundancy (MRP) for a configuration with the redundant S7-1500R/H system
3. Click the "Domain settings" button.

Figure 6-15 S7-1500R/H: MRP role "Manager (auto)"
In the Inspector window, STEP 7 displays the properties of the MRP domain in which the PROFINET interface X1 of the CPU is located. 4. In the "MRP role" column of the "Devices" table, assign the MRP role "Client" to all the other devices of the ring.

Figure 6-16 S7-1500R/H: Assigning MRP roles for ring devices
Parameter assignment for devices outside the STEP 7 project  Set the MRP role "Client" for the devices of the ring that are not located in STEP 7. Example: For a switch in the PROFINET ring, set the MRP role "Client" via the Web interface of the switch.  For PROFINET devices outside of the ring, set the MRP role to "Not device in the ring". Example: For a router outside of the PROFINET ring, set the MRP role "Not device in the ring" via the Web interface of the router.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

291

Glossary

API
API (Application Process Identifier) is a parameter, the value of which specifies the IO data processing process (application).
The PROFINET standard IEC 61158 assigns profiles to specific APIs (PROFIdrive, PROFIsave), which are defined by the PROFINET user organization.
The standard API is 0.

Application

An application is a program that runs directly on the MS-DOS/Windows operating system. An application on the PG is STEP 7, for example.

AR
The AR (Application Relation) comprises all the communication relationships between IO controller and IO device (e.g. IO data, data records, interrupts).
AR is also an addressing level for diagnostic data records.

Asset

An asset is a component of a machine or plant This can be either hardware or software/firmware.

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains of the process engineering industry and manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Backplane bus

The backplane bus is a serial data bus for module intercommunication and the distribution of the necessary power to the modules. Bus connectors interconnect the modules.

Backup AR

The backup AR is the system redundancy AR between an IO device with system redundancy S2 and the backup CPU of the redundant S7-1500R/H system.

292

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

Backup CPU

If the R/H system is in RUN-Redundant system state, the primary CPU controls the process. The backup CPU synchronously executes the user program and can take over the process control on failure of the primary CPU.

Bus
A bus is a transfer medium that interconnects several devices. Data transmission can be performed electrically or via optical fibers, either in series or in parallel.

Communications Cycle and Reservation of Transmission Bandwidth
PROFINET IO is a scalable real-time communication system based on the Layer 2 protocol for Fast Ethernet. With the RT transmission method, two real-time-support performance levels are available for time-critical process data and IRT for high-accuracy and also isochronous processes .

Communications processor Communication processors are modules used for point-to-point and bus connections.

Configuring

Selecting and putting together individual components of an automation system or installing necessary software and adapting it for a specific application (for example, by configuring the modules).

Consistent data
Data which belongs together in terms of content and must not be separated is known as consistent data.
For example, the values of analog modules must always be handled as a whole, that is, the value of an analog module must not be corrupted as a result of reading out at two different points in time.

CP  Communications processor

CPU

Central Processing Unit - Central module of the S7 automation system with a control and arithmetic unit, memory, operating system and interface for programming device.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

293

Glossary

DCP

DCP (Discovery and Basic Configuration Protocol). Enables the assignment of device parameters (for example, the IP address) using manufacturer-specific configuration/programming tools.

Default router

The default router is used when data has to be forwarded via TCP/IP to a partner located outside the local network.

Determinism

Determinism means that a system responds in a predictable (deterministic) manner.

Device

In the PROFINET environment, "device" is the generic term for:  Automation systems (for example, PLC, PC)  Distributed I/O systems  Field devices (for example, PLC, PC, hydraulic devices, pneumatic devices)  Active network components (for example, switches, routers)  Gateways to PROFIBUS, AS interface or other fieldbus systems

Device name (PROFINET device name)
In the PROFINET IO environment, the device name is a unique identifier for the PROFINET IO interface of a device.

Diagnostics

 System diagnostics

Diagnostics buffer
The diagnostics buffer represents a backup memory in the CPU, used to store diagnostics events in their order of occurrence.

Diagnostics error interrupt
Modules capable of diagnostics operations report detected system errors to the CPU by means of diagnostics interrupts.
 See also CPU

294

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

Direct data exchange
In the case of direct data exchange, an S7-1500 CPU provides cyclic user data from the I/O area to one or more partners.
The direct data exchange function enables deterministic, isochronous I/O communication between multiple S7-1500 CPUs.

DP master

A master which behaves in accordance with EN 50170, Part 3, is known as a DP master.  See also Master

DP slave

A slave operated on PROFIBUS with PROFIBUS DP protocol and in accordance with EN 50170, Part 3 is referred to as DP slave.
 See also Slave

DPV1

The designation DPV1 refers to the functional extension of acyclic services (to include new interrupts, for example) provided by the DP protocol. The DPV1 functionality is integrated in IEC 61158/EN 50170, Volume 2, PROFIBUS.

Duplex

Half duplex: One channel is available for alternating exchange of information.
Full duplex: Two channels are available for simultaneous exchange of information in both directions.

Ethernet

Ethernet is an international standard technology for local area networks (LAN) based on frames. It defines types of cables and signaling for the physical layer and packet formats and protocols for media access control.

GSD file

As a Generic Station Description, this file contains all properties of a PROFINET device that are necessary for its configuration in XML format.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

295

Glossary

H-Sync Forwarding
H-Sync Forwarding enables a PROFINET device with MRP to forward synchronization data (synchronization frames) of a S7-1500R redundant system only within the PROFINET ring.
In addition, H-Sync Forwarding forwards the synchronization data even during reconfiguration of the PROFINET ring. H-Sync Forwarding avoids a cycle time increase if the PROFINET ring is interrupted.
S7-1500R: H-Sync Forwarding is recommended for all PROFINET devices with only two ports in the PROFINET ring. All PROFINET devices with more than two ports (e.g. switch) in the PROFINET ring must support H-Sync forwarding.
S7-1500H: H-Sync Forwarding is not relevant for redundant S7-1500H systems.

I-device

The "I-device" (intelligent IO device) functionality of a CPU facilitates data exchange with an IO controller, for example, as intelligent preprocessing unit of sub-processes. In its role as an IO device, the I-device is accordingly integrated into a "higher-level" IO controller.

Industrial Ethernet
Industrial Ethernet is a guideline for installing an Ethernet in an industrial environment. The biggest difference from standard Ethernet is the mechanical current carrying capacity and noise immunity of the individual components.

Interrupt

An interrupt is an event that causes the operating system of an S7-CPU to automatically call an assigned organization block (interrupt OB) in which the user can program the desired reaction.

Interrupt, diagnostics  Diagnostics error interrupt

IP address

To allow a PROFINET device to be addressed as a device on Industrial Ethernet, this device also requires an IP address that is unique within the network. Example: An IPv4 address consists of 4 decimal numbers with the value range 0 to 255. The decimal numbers are separated by periods.
The IP address is made up of the following components:
 Address of the network
 Address of the device (generally called the host or network node).

296

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

IRT
IRT is a synchronized communication protocol for cyclic exchange of IRT data between PROFINET devices. A reserved bandwidth is available in the send cycle for IRT data. The reserved bandwidth ensures that the IRT data can be transferred at reserved synchronized intervals, without being influenced also by higher other network loads (such as TCP/IP communication, or additional real-time communication).

LAN

Local Area Network - a local network to which multiple computers within a company are connected. The LAN therefore has a limited geographical span and is only available to the company or institution.

Line depth

Designates the number of external switches or integrated switches interconnected in series.

MAC address

Worldwide unique device identification for all Ethernet devices. It is assigned by the manufacturer and has a 3-byte vendor ID and 3-byte device ID as a consecutive number.
Every PROFINET device is assigned a worldwide unique device identifier at the factory. This 6-byte long device identifier is the MAC address.

Maintenance Required / Maintenance Demanded
A "Maintenance required" system message can be defined for different wear parameters and an inspection of a component can be recommended, for example, when a certain number of operating hours has elapsed.
The "Maintenance demanded" alarm is sent when the part involved needs to be replaced within a foreseeable period.
(Example printer: The maintenance demanded alarm is sent when the ink/printer cartridges have to be replaced immediately.)

Master

Higher-level, active participant in the communication/on a PROFIBUS subnet. It has rights to access the bus (token), sends data and requests it.

Media redundancy
The so-called Media Redundancy Protocol (MRP) enables the configuration of redundant networks. Redundant transmission links (ring topology) ensure that an alternating communication path is made available if a transmission link fails. The PROFINET devices that are a part of this redundant network form an MRP domain.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

297

Glossary

Micro Memory Card (MMC)
Micro Memory Cards are memory media for CPUs and CPs. Their only difference to the SIMATIC memory card is the smaller size. S7-1500 and ET 200SP-CPUs use SIMATIC memory cards.

MPI
The multipoint interface (Multi Point Interface,MPI) represents the programming device interface of SIMATIC S7. It enables multiple devices (programming devices, text-based displays, OPs) to be operated simultaneously by one or more CPUs. Each device is identified by its unique (MPI) address.

MRPD

MRPD (Media Redundancy with Planned Duplication of Frames) based on IRT and MRP. To realize media redundancy with short update times, the PROFINET devices participating in the ring send their data in both directions. The devices receive this data at both ring ports so that there is no reconfiguration time.

Network

A network consists of one or more interconnected subnets with any number of devices. Several networks can exist alongside each other.

OB  Organization block

OPC

OPC (OLE for Process Control) refers to a standard interface for communication in automation technology.

Operating states
Operating states describe the behavior of a single CPU at a specific time.
The CPUs of the SIMATIC standard systems feature the STOP, STARTUP and RUN operating states.
The primary CPU of the S7-1500R/H redundant system has the operating states STOP, STARTUP, RUN, RUN-Syncup and RUN-Redundant. The backup CPU has the operating states STOP, SYNCUP and RUN-Redundant.

Organization block
Organization blocks (OBs) form the interface between the CPU operating system and the user program. The order in which the user program is executed is defined in the organization blocks.

298

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

Parameter

1. Tag of a STEP 7 code block: 2. Tag used to set one or several characteristics of a module In delivery state, every module has practical basic settings, which can be modified by configuration in STEP 7. There are static and dynamic parameters

PG  Programming device

PLC

 Programmable logic controller

Primary AR

The primary AR is the system redundancy AR between an IO device with system redundancy S2 and the primary CPU of the redundant S7-1500R/H system.

Primary CPU

If at least one R/H CPU is in RUN state, the primary CPU is the controlling CPU. The primary CPU controls the process (productive data).
The user program is executed identically in the primary CPU and the backup CPU.

Prioritized startup
Prioritized startup denotes the PROFINET functionality for accelerating the startup of IO devices operated on a PROFINET IO system with RT and IRT communication. It reduces the time that the correspondingly configured IO devices require in order to return to cyclic user data exchange in the following cases:
 After the power supply has returned
 After a station has returned
 After activation of IO devices

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then transfers the signal states of the input modules to the process image of the inputs. Then the CPU executes the user program.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

299

Glossary

PROFIBUS

Process Field Bus - European Fieldbus standard.

PROFIBUS device
A PROFIBUS device has at least one PROFIBUS interface with an electrical (RS485) or optical (polymer optical fiber, POF) interface.

PROFIBUS DP
A PROFIBUS with DP protocol that complies with EN 50170. DP stands for distributed I/O (fast, real-time capable, cyclic data exchange). From the perspective of the user program, the distributed I/Os are addressed in exactly the same way as the centralized I/Os.

PROFIBUS Users Organization
Technical committee dedicated to the definition and development of the PROFIBUS and PROFINETstandard. Additional information can be found on the Internet (Page ).

PROFIenergy

Function for energy saving in the process, for example, during pause times by briefly switching off the entire system via standardized PROFIenergy commands.

PROFINET

Open component-based industrial communication system based on Ethernet for distributed automation systems. Communication technology promoted by the PROFIBUS Users Organization.

PROFINET device
A PROFINET device always has a PROFINET interface (electrical, optical, wireless). A lot of devices also have a PROFIBUS DP interface to connect PROFIBUS devices.

PROFINET IO

Communication concept for the realization of modular, distributed applications within the scope of PROFINET.
PROFINET IO is based on switched Ethernet with full-duplex operation and a bandwidth of 100 Mbps.

PROFINET IO Controller
Device used to address the connected IO devices. This means that the IO controller exchanges input and output signals with assigned field devices. The IO controller is often the controller on which the automation program runs.

300

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

PROFINET IO Device
A distributed field device that is assigned to one of the IO controllers (e.g. remote IO, valve terminals, frequency converters, switches)

PROFINET IO System PROFINET IO controller with assigned PROFINET IO devices.

PROFINET ring Structure of a network. Common structures include:  Linear bus topology  Ring topology  Star topology  Tree topology

Programmable logic controller
Programmable logic controllers (PLCs) are electronic controllers whose function is stored as a program in the control unit. The structure and wiring of the device does not therefore depend on the controller's function. A programmable logic controller is structured like a computer. It consists of a CPU with memory, input/output modules and an internal bus system. The IOs and the programming language are oriented to the requirements of the control technology.

Programming device
Programming devices are essentially compact and portable PCs which are suitable for industrial applications. They are identified by a special hardware and software configuration for programmable logic controllers.

Proxy

The PROFINET device with proxy functionality is the substitute for a PROFIBUS device on Ethernet. The proxy functionality allows a PROFIBUS device to communicate not only with its master but also with all devices on PROFINET.
With PROFINET, existing PROFIBUS systems can be integrated into the PROFINET communication with the aid of an IE/PB link, for example. The IE/PB Link PN IO then handles communication via PROFINET on behalf of the PROFIBUS components.
In this way, you can link both DPV0 and DPV1 slaves to PROFINET.

Real-time

Real-time means that a system processes external events within a defined time.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

301

Glossary

Real-time communication
Group error for RT and IRT.
PROFINET uses its own real-time channel (RT) rather than TCP/IP for communication of time-critical IO user data.

Redundant systems
Redundant systems are characterized by the fact that important automation components are present multiple times (redundantly). Process control is maintained if a redundant component fails.

Router

A router interconnects two subnets. A router works in a similar way to a switch. With a router, however, you can also specify which communication devices may communicate via the router and which may not. The communication devices on various sides of a router can only communicate with one another if you have explicitly enabled communication between these devices via the router. Real-time data cannot be exchanged beyond subnet boundaries.

RT
PROFINET IO with Real Time communication (RT) is the optimal transmission method for time-critical applications in factory automation. PROFINET IO frames are prioritized over standard frames in accordance with IEEE802.1Q. This ensures the required determinism in the automation technology.

Security

Generic term for all the measures taken to protect against  Loss of confidentiality due to unauthorized access to data  Loss of integrity due to manipulation of data  Loss of availability due to the destruction of data

Send clock

Period between two consecutive intervals for IRT or RT communication. The send clock is the shortest possible transmit interval for exchanging data.

SIMATIC

The term denotes Siemens AG products and systems for industrial automation.

SIMATIC NET Siemens Industrial Communication division for Networks and Network Components.

302

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

SIMATIC PC Station
A "PC station" is a PC with communication modules and software components within a SIMATIC automation solution.

SIMATIC Memory Card (SMC)  Micro Memory Card (MMC)

Slave

A slave can only exchange data after being requested to do so by the master.  See also DP slave

SNMP

The network management protocol SNMP (Simple Network Management Protocol) uses the wireless UDP transport protocol. It consists of two network components, similar to the client/server model. The SNMP manager monitors the network nodes and the SNMP agents collect the various network-specific information in the individual network nodes and stores it in a structured form in the MIB (Management Information Base). This information allows a network management system to run detailed network diagnostics.

STEP 7

STEP 7 is an engineering system and contains programming software for the creation of user programs for SIMATIC S7 controllers.

Subnet

All the devices interconnected by switches are nodes of the same network or subnet. All the devices in a subnet can communicate directly with each other.
All devices in the same subnet have the same subnet mask.
A subnet is physically restricted by a router.

Subnet mask

The bits set in the subnet mask decide the part of the IP address that contains the address of the network.
In general, the following applies:
 The network address is obtained from the AND operation of the IP address and subnet mask.
 The device address is obtained from the AND NOT operation of the IP address and subnet mask.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

303

Glossary

Switch

Network components used to connect several terminal devices or network segments in a local network (LAN).

Switched S1 device
The "Switched S1 device" function of the CPU enables operation of standard IO devices on the S7-1500R/H redundant system.
PROFINET communication runs on an AR between the primary CPU and the standard IO device. When replacing the primary CPU, the standard IO device is briefly disconnected from the S7-1500R/H redundant system until the new primary CPU has set up an AR to the standard IO device.

Sync domain

All PROFINET devices to be synchronized with IRT via PROFINET IO must belong to a sync domain.
The sync domain consists of exactly one sync master and at least one sync slave. An IO controller or switch generally handles the role of the sync master.
Non-synchronized PROFINET devices are not part of a sync domain.

System diagnostics
System diagnostics refers to the detection, evaluation, and signaling of errors that occur within the automation system, for example, programming errors or module failures. System errors can be indicated by LEDs or in STEP 7.

System redundancy AR
In a redundant system, an IO device with system redundancy S2 has a system redundancy AR with each of the two CPUs (IO controllers).

System states

The system states of the redundant S7-1500R/H system result from the operating states of the primary and backup CPUs. The concept of the system state is used to obtain a simplified expression that characterizes the simultaneously occurring operating states of the two CPUs. The following system states are available for the redundant S7-1500R/H system: STOP, STARTUP, RUN-Solo, SYNCUP and RUN-Redundant.

304

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Glossary

TCP/IP

The Ethernet itself is only a transport system for data - similar to a highway, which is a transport system for people and goods. The actual data transport is performed by so-called protocols - similar to cars and trucks, which transport people and goods on the highway.
The two basic protocols TCP (Transmission Control Protocol) and IP (Internet Protocol) TCP/IP for short - perform the following tasks:
1. The data is broken down into packets at the sender.
2. The packets are transported over the Ethernet to the correct recipient.
3. At the recipient, the packets are reassembled in the correct order.
4. Corrupt packets continue to be sent until they are received correctly.
Most higher-level protocols use TCP/IP to perform their duties. Hyper Text Transfer Protocol (HTTP), for example transfers documents written in Hyper Text Markup Language (HTML) in the World Wide Web (WWW). This technique is what enables you to view web pages in your Internet browser in the first place.

Topology configuration
All the interconnected ports of the PROFINET devices in the STEP 7 project and their relationships to each other.

Twisted-pair

Fast Ethernet via twisted-pair cables is based on the IEEE 802.3u standard (100 Base-TX). The transmission medium is a shielded 2x2 twisted-pair cable with an impedance of 100  (AWG 22). The transmission characteristics of this cable must meet the requirements of category 5.
The maximum length of the connection between the terminal and the network component must not exceed 100 m. The connectors are designed according to the 100Base-TX standard with the RJ45 connector system.

Update time

An IO device / IO controller in the PROFINET IO system is supplied cyclically with new data from the IO controller / IO device within this time interval. The update time can be configured separately for each IO device and determines the interval at which data is sent from the IO controller to the IO device (outputs) as well as from the IO device to the IO controller (inputs).

User program

In SIMATIC, we distinguish between the CPU operating system and user programs. The user program contains all instructions, declarations and data by which a plant or process can be controlled. The user program is assigned to a programmable module (for example, CPU, CM) and can be structured in smaller units.

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

305

Glossary WAN
XML

A network that extends beyond LAN boundaries and enables, for example, intercontinental network communication. Legal rights do not belong to the user but to the provider of the communication network.
XML (Extensible Markup Language) is a flexible, easy to understand and easy to learn data description language. Information is exchanged using readable XML documents. These include continuous text supplemented by structure information.

306

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

Index

A
Accelerating startup, 266, 266 Adapting the user program, 271 Optimize the port settings, 269 Optimizing cabling, 270
Advanced offline/online comparison Automatic device assignment, 73
Alarm texts, 81 Alternating IO devices during operation, 260 Alternating partner ports during operation, 260 Application cycle, 204
Setting, 208 Asset management, 99 Assigning parameters, 41 Assignment IO device - controller, 42
B
Bandwidth, 136
C
Cables, 30 Calling status from IO device, 75 Channel, 26 Communication, 20 Compare offline/online
Automatic device assignment, 71 Configuration control, 232 Configuration control for IO systems, 232, 242, 256 Configuring, 41 Configuring docking system, 262 Configuring hardware and assigning parameters for hardware, 41 CPU display
Diagnostics, 79 IP address, 49 Cut through, 177
D
D_ACT_DP, 261 Data access, 21 Data cycle, 203

Data exchange between IO systems, 124 Data security
Basics, 36 Example, 39 SCALANCE, 38 Security, 37 Default router, 47 Delay time, 204 Setting, 208 Device name, 45, 231 Automatically assign, 44 Changing, 51 Exchanging without removable storage medium, 49 Permitting changes directly on the device, 57 Structured, 45 Device number, 46 Device replacement Assign device name, 227 Configuring, 227 Failure and replacement of an IO device, 226 Neighborhood detection, 226 Without exchangeable medium/programming device, 225 Device replacement without exchangeable medium/programming device, 49, 225 Devices & networks, 86 DHCP, 58 Diagnostics, 74 Diagnostics status, 95 Evaluation of interrupts, 96 I-device, 131 PROFINET ports, 88 STEP 7, 86 User program, 94 via CPU display, 79 via LEDs, 78 via Web server, 83 Diagnostics buffer, 81 Diagnostics data record, 92 Channel-specific, 92 Vendor-specific, 92 Diagnostics levels, 76 Diagnostics status, 95 Display Diagnostics, 79 IP address, 49 DNS conventions, 45 Docking station, 260

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

307

Index
Docking unit, 260 DP cycle time, 204
E
Evaluation of interrupts, 96 Exchangeable medium, 225 Execution window, 210
F
Fast Ethernet, 28 Fiber-optic cable (FOC), 31 Fieldbus integration, 113 Full-duplex mode, 29 Functionality
I-device, 118 PROFINET IO, 25
G
Gateway, 58 Go online, 86 GSD file, 128
H
Hardware and network editor Assign device name, 44 Assign IP address, 44 Topology view, 66
I
I&M data, 97 downloading to PROFINET IO devices, 97
I/O addresses, 204 I/O communication, 43, 54 Identification data, 97 Identification of the PROFINET device, 53 I-device, 138
Configuring with GSD file, 128 I-device (intelligent IO device)
Alarm response, 131 Configuring, 126 Diagnostics, 131 Functionality, 118 Lower-level PN IO system, 120 Properties, 119 Topology rules, 134
308

IE/PB link, 115 Industrial Ethernet, 14, 28 Industrial Wireless LAN, 33
Application examples, 34 Range, 35 Instruction T_CONFIG, 58 Interconnecting ports In the Inspector window, 70 In topology view, 69 IO controller, 42 IO device, 206 Activating and deactivating during change, 261 Assigning, 42 Calling status, 75 Configuring alternating partners, 262 IO system, 233, 237, 239, 242, 244, 246, 253, 254 Checking the assignment, 43 Data exchange, 124 IP address, 46 Assigning for the first time, 49 assigning using an different way, 53 Changing, 51 Permitting changes directly on the device, 57 IPO model, 210, 211 IRT, 204 Area of application, 176 Communication, 177 Communication cycle, 179 Configuring, 181 Definition, 177 Differences of RT, 180 Properties, 178 Rules, 137 Setup recommendations, 186 Synchronization, 178 Isochronous mode Configuring, 206 Definition, 200 Example, 202 Time synchronization, 203 Isochronous mode interrupt OB, 203, 204 OB 6x, 209 Isochronous real-time, (see IRT)
L
Lead time, 203 LEDs for diagnostics, 78 Linking PROFINET and PROFIBUS, 115 LLDP, 91
PROFINET with STEP 7 V16
Function Manual, 11/2019, A5E03444486-AK

Index

M
Machine tailoring, (see Configuration control for IO systems) Maintenance concept, 89 Maintenance data, 97 Maintenance demanded, 89 Maintenance required, 89 Media redundancy
Configuring, 166 Functions in ring topology, 163 Media Redundancy Protocol (MRP), 163 MIB, 91 Module, 26 Module status, 80 Module-internal shared input (MSI), 155 Module-internal shared output (MSO), 155 MRP, 163 MRPD, 169 MSI/MSO, 155 Multiple use IO system, 231, 233, 237, 239 Multiple use IO systems, 232
N
Neighborhood detection, 226 Network limits, 30 Network view
I/O communication, 54
O
OB 82, 96 OB MC Servo, 209 OIP model, 210, 212 Online & diagnostics network view, 86 Online assignment (PROFINET device names), 54 Option handling in the network
see Configuration control for IO systems, 242 Optional IO device, 244 Overwriting the PROFINET device name, 231
P
Port Alternating partners, 260 Diagnostics, 88 Switchport, 270 Terminal port, 270
Prefabricating PCF cables, 31 Prefabricating POF cables, 31

Primary Setup Tool (PST), 58 Prioritized startup, 261
Configuring, 268 Definition, 266 PROFIBUS, 14 PROFIBUS & PROFINET International, 16 PROFIenergy, 138, 258 PROFINET, 14 Assigning a device name, 54 Communication, 20 Device model, 26 Devices, 16 Equipment designations, 17 Implementation, 15 Interface, 16, 23 Objectives, 14 Optimizing with IRT, 186 Optimizing with RT, 185 Send clock, 22 Topology rules with I-device, 134 Transmission media, 32 Update time, 22 Watchdog time, 22 PROFINET device name, 231 PROFINET interface Properties, 23 Topology overview, 24 PROFINET IO, 15 Diagnostics levels, 76 Functionality, 25, 113 System, 42 Proxy functionality, 115 PST, 58
R
Real-time class, 29 Real-time communication, 175, 176 Redundancy, 162
Redundancy clients, 162 Redundancy domains, 164 Redundancy manager, 162 Redundancy manager, 162 Ring port, 162, 168 Ring topology, 162 Router, 30, 47, 61 RT Area of application, 175 Communication cycle, 179 Definition, 176 Differences of IRT, 180 Rules, 137

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

309

Index

RT class, 204
S
Saving energy, 258 SCALANCE, 30, 35, 38 Security
Definition, 37 Example of data security, 39 Protective measures, 38 Send clock, 22, 203, 204 Set/actual topology, 83 Shared device, 139, 155 SNMP, 91 MIB, 91 Network diagnostics, 91 Standard machine project, 231, 232, 233, 237, 239, 244, 246, 253, 254 Startup of IO devices, 261, 265 Store and forward, 176 Submodule, 26, 155 Subnet, 43 Subnet mask, 47 Assigning for the first time, 49 Example, 47 Switch, 29 Integrated, 24 Selection guide, 29 Switched Ethernet, 29 Switchport, 270 Sync domain, 178, 204 SYNC_PI, 210, 211, 212 SYNC_PO, 210, 211, 212 Synchronous Cycle, 209 System diagnostics, 74

Star, 64 Tree, 64 Topology configuration, 204 Topology overview, 24 Topology view Adopt devices identified online, 73 Adopt port interconnections identified online, 72 Hardware and network editor, 66 Interconnecting ports, 69 Transfer area, 138 Transmission bandwidth, 29 Transmission media with PROFINET, 32 Twisted-pair, 31
U
Update time, 22, 35
V
Value status, 155
W
Watchdog time, 22 Wire break, 90 Wireless networks, 35

T
T_CONFIG, 58 T_DC, 203, 204, 211, 213 TCP/IP in the communication cycle, 179 Terminal port, 270 Ti, 203 To, 203 Tool changer, 260 Topology
Example, 65 Line, 64 Ring, 64, 162, 163 Rules about the IO-system with I-device, 134 Set/actual, 83

310

PROFINET with STEP 7 V16 Function Manual, 11/2019, A5E03444486-AK

PROFIBUS with STEP 7 V13
SIMATIC PROFIBUS PROFIBUS with STEP 7 V13
Function Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _De_s_cr_ipt_io_n ____________2_ _Pasa_srai_gmn_me_tee_nr t/_ad_d_re_ss_in_g______3_ _Di_ag_n_os_tic_s____________4_ _Fu_n_cti_on_s_____________5_ _Se_rv_ic_e_&_S_up_po_r_t _______A__

12/2014
A5E03775446-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03775446-AC  12/2014 Subject to change

Copyright © Siemens AG 2013 - 2014. All rights reserved

Preface

Purpose of the manual
This function manual provides an overview of the PROFIBUS communication system with SIMATIC STEP 7 V13.
STEP 7 V13 is integrated into the powerful graphic Totally Integrated Automation Portal (TIA Portal), the new integration platform for all automation software tools.
This function manual supports you in planning a PROFIBUS system. The manual is structured into the following subject areas:
 PROFIBUS basics
 PROFIBUS diagnostics
 PROFIBUS functions

Basic knowledge required
The following knowledge is required in order to understand the manual:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Proficiency with STEP 7

Scope

This function manual is the basic documentation for all SIMATIC products from the PROFIBUS environment. The product documentation is based on this documentation.
The examples are based on the functionality of the S7-1500 automation system.

Changes compared to previous version
As compared to the previous version (version 07/2014), this manual contains the following amendments/changes:  Extension of the documentation to STEP 7 (TIA Portal) V13 SP1  Addition of the function Intelligent DP slaves (I-slaves)  New guide

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

3

Preface

Conventions

STEP 7: We refer to "STEP 7" in this documentation as a synonym for the configuration and programming software "STEP 7 as of V12 (TIA Portal)" and subsequent versions.
This documentation contains figures of the devices described. The figures may differ slightly from the device supplied.
You should also pay particular attention to notes such as the one shown below:
Note
A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Additional support
You will find information about available technical support in the appendix Service & Support (Page 91).
The technical documentation for the individual SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
The online catalog and the ordering system are available on the Internet (http://mall.industry.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

PROFIBUS with STEP 7 V13

4

Function Manual, 12/2014, A5E03775446-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 Description............................................................................................................................................ 10

2.1 2.1.1 2.1.2 2.1.3

Introduction to PROFIBUS......................................................................................................10 Applications of PROFIBUS DP ...............................................................................................11 PROFIBUS terminology ..........................................................................................................12 PROFIBUS DP interface.........................................................................................................16

2.2 2.2.1 2.2.1.1 2.2.1.2 2.2.1.3 2.2.1.4 2.2.1.5 2.2.1.6 2.2.2 2.2.2.1 2.2.2.2 2.2.2.3 2.2.3 2.2.3.1 2.2.3.2 2.2.4 2.2.4.1 2.2.4.2 2.2.4.3 2.2.4.4 2.2.4.5

Structure of PROFIBUS networks ..........................................................................................17 Passive network components for RS 485 networks ...............................................................19 RS 485 cables.........................................................................................................................19 PROFIBUS FastConnect system............................................................................................20 PROFIBUS bus connector ......................................................................................................22 M12 bus connector .................................................................................................................24 Bus terminals for RS 485 networks ........................................................................................24 M12 bus terminating resistor ..................................................................................................24 Passive components for optical networks...............................................................................25 Fiber-optic cables....................................................................................................................25 Plastic and PCF fiber-optic cables..........................................................................................26 Glass fiber-optic cables...........................................................................................................27 Active network components ....................................................................................................29 Network components in electrical networks............................................................................29 Network components in optical networks ...............................................................................33 Examples for topology ............................................................................................................35 Topology with RS485 repeater ...............................................................................................35 Topology with diagnostic repeater ..........................................................................................37 OLM topology..........................................................................................................................40 WLAN topology .......................................................................................................................40 Connecting PROFIBUS to PROFINET ...................................................................................41

3 Parameter assignment/addressing ........................................................................................................ 42

3.1

Assigning the DP slave to a DP master..................................................................................43

3.2

PROFIBUS address................................................................................................................45

3.3

Network settings .....................................................................................................................46

3.4

Cable configuration .................................................................................................................49

3.5

Additional network stations .....................................................................................................51

3.6

Bus parameters.......................................................................................................................52

3.7

Constant bus cycle time..........................................................................................................55

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

5

Table of contents

4 Diagnostics ........................................................................................................................................... 57

4.1

Overview ................................................................................................................................ 57

4.2

Diagnostics using the display of the S7-1500 ........................................................................ 58

4.3

Diagnostics with the diagnostic repeater ............................................................................... 60

4.4

I&M data (Identification and Maintenance) ............................................................................ 61

5 Functions .............................................................................................................................................. 62

5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.8.1 5.1.8.2

Isochronous mode ................................................................................................................. 62 What is isochronous mode?................................................................................................... 62 Use of isochronous mode ...................................................................................................... 63 Isochronous applications ....................................................................................................... 64 Sequence of synchronization................................................................................................. 65 Requirements for configuration .............................................................................................. 66 Configuring isochronous mode .............................................................................................. 67 Diagnostics and interrupt functions........................................................................................ 70 Parameter settings for isochronous mode ............................................................................. 71 Viewing isochronous mode parameters................................................................................. 71 Change parameters ............................................................................................................... 72

5.2

Acyclical data exchange ........................................................................................................ 74

5.3

SYNC/FREEZE groups .......................................................................................................... 75

5.4

Interrupts ................................................................................................................................ 77

5.5 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6

Intelligent DP slaves (I-slaves)............................................................................................... 78 I-slave functionality ................................................................................................................ 78 Data exchange with higher-level DP master.......................................................................... 81 Configuring an I-slave ............................................................................................................ 82 Configuring transfer areas ..................................................................................................... 84 Sample program..................................................................................................................... 85 Diagnostics and interrupt behavior ........................................................................................ 89

A Service & Support ................................................................................................................................. 91

Glossary ............................................................................................................................................... 94

Index .................................................................................................................................................... 99

PROFIBUS with STEP 7 V13

6

Function Manual, 12/2014, A5E03775446-AC

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system and the SIMATIC ET 200MP, ET 200SP and ET 200AL distributed I/O systems is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.
General information
The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and additions to the manuals are documented in product information sheets.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

7

Documentation guide
Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (http://support.automation.siemens.com/WW/view/en/86140384)  ET 200SP (http://support.automation.siemens.com/WW/view/en/84133942)  ET 200AL (http://support.automation.siemens.com/WW/view/en/95242965)
My Documentation Manager
The My Documentation Manager is used to combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later. You can find the My Documentation Manager on the Internet (http://support.automation.siemens.com/WW/view/en/38715968).
Applications & Tools
Applications & Tools supports you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus in individual products. You can find Applications & Tools on the Internet (http://support.automation.siemens.com/WW/view/en/20208582).
CAx Download Manager
The CAx Download Manager is used to access the current product data for your CAx or CAe systems. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find the CAx Download Manager on the Internet (http://support.automation.siemens.com/WW/view/en/42455541).

PROFIBUS with STEP 7 V13

8

Function Manual, 12/2014, A5E03775446-AC

Documentation guide
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

9

Description

2

2.1

Introduction to PROFIBUS

What is PROFIBUS?
PROFIBUS is a bus system that networks automation systems and field devices that are compatible with PROFIBUS. As communication medium for the field level, PROFIBUS is an important part of Totally Integrated Automation (TIA).
The different communication networks can be used independent of one another or they can be combined with each other.

PROFIBUS protocols
PROFIBUS DP (distributed I/O) is a communication network for the field level according to IEC 61158-2 / EN 61158-2 with the hybrid access protocols token bus and master-slave. The networking takes place by means of two-wire lines or fiber-optic cables. Data transmission rates of 9.6 kbps to 12 Mbps are possible.
PROFIBUS PA is the PROFIBUS for process automation (PA). It connects the PROFIBUS DP communication protocol with the MBP (Manchester Bus Powered) transmission technology to IEC 61158-2.
PROFIBUS PA networks can be designed based on shielded, twisted two-wire lines intrinsically safe and are therefore suitable for hazardous areas (Ex zones 0 and 1). The data transmission rate is 31.25 kbps.

PROFIBUS with STEP 7 V13

10

Function Manual, 12/2014, A5E03775446-AC

Description 2.1 Introduction to PROFIBUS

2.1.1

Applications of PROFIBUS DP

Introduction

The efficiency of control systems is not determined by automation devices alone, but depends to a large extent on the overall configuration of an automation solution. This includes a powerful communication system in addition to plant visualization and operator control and monitoring.
The STEP 7 engineering tool supports you during the engineering and configuration of an automation solution.

Applications of PROFIBUS DP
The PROFIBUS network offers wireless connection of several controllers, components and subnets as electrical network, optical network or by using links. Sensors and actuators are controlled centrally by means of PROFIBUS DP.
The following figure shows connection options to PROFIBUS DP:

Figure 2-1 Connection options to PROFIBUS DP

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

11

Description 2.1 Introduction to PROFIBUS
Objectives of PROFIBUS DP
Distributed automation systems are increasingly used in production and process automation. This means a complex control task is divided up into smaller, more transparent subtasks with distributed control systems. This creates a high demand for communication between the distributed systems. Distributed systems offer the following benefits:  Independent and simultaneous commissioning of individual devices is possible  Small, manageable programs  Parallel processing due to distributed automation systems  Reduced response times  Higher-level structures can take on additional diagnostics and logging functions.  Increased plant availability because the rest of the overall system can continue to work
when a subordinate station fails.

2.1.2

PROFIBUS terminology

Definition: Devices in the PROFIBUS environment
In the PROFIBUS environment, "device" is the generic term for:  Automation systems (for example, PLC, PC)  Distributed I/O systems  Field devices (for example, hydraulic devices, pneumatic devices)  Active network components (e.g., diagnostic repeater, optical link module)  Gateways to AS interface or other fieldbus systems

PROFIBUS with STEP 7 V13

12

Function Manual, 12/2014, A5E03775446-AC

Description 2.1 Introduction to PROFIBUS
Devices with PROFIBUS DP
The figure below shows the most important components with PROFIBUS DP. The table below lists the designations of the individual components.

Number PROFIBUS



DP master system



DP master



PG/PC



PROFIBUS



HMI



DP slave



I-slave

Note
Device used to address the connected DP slaves. The DP master exchanges input and output signals with field devices. The DP master is often the controller on which the automation program runs. PG/PC/HMI device for commissioning and diagnostics DP master of class 2 Network infrastructure Device for operating and monitoring functions Distributed field device assigned to the DP master, e.g., valve terminals, frequency converters. Intelligent DP slave

Figure 2-2 Devices with PROFIBUS

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

13

Description 2.1 Introduction to PROFIBUS Overview of I/O communication
I/O communication is the reading or writing of inputs/outputs of the distributed I/O. The figure below gives you an overview of I/O communication using PROFIBUS DP:
Figure 2-3 I/O communication using PROFIBUS DP I/O communication is also available with the communication module (CM) or the interface module (IM) with integrated DP interface. These DP interfaces behave like integrated DP interfaces of the CPU.

PROFIBUS with STEP 7 V13

14

Function Manual, 12/2014, A5E03775446-AC

Description 2.1 Introduction to PROFIBUS

I/O communication using PROFIBUS DP

Table 2- 1 I/O communication using PROFIBUS DP

Communication between ... DP master and DP slave DP master and I-slave
DP master and DP master

Explanation
The data exchange between a DP master and DP slaves with I/O modules takes place as follows: The DP master queries the DP slaves of its master system one after the other, receives input values from the DP slaves, and transmits output data to the DP slaves (master-slave principle).
A fixed amount of data is transmitted cyclically between the user programs in CPUs of DP masters and I-slaves.
The DP master does not access the I/O modules of the I-slave, but instead accesses configured address areas, called transfer areas, that can be inside or outside the process image of the I-slave CPU. If parts of the process image are used as transfer areas, these may not be used for actual I/O modules.
Data transmission takes place with load and transfer operations using the process image or by direct access.
A fixed amount of data is transmitted cyclically between the user programs in CPUs of DP masters. A DP/DP coupler is required as additional hardware.
The DP masters mutually access configured address areas, called transfer areas, inside or outside the process image of the CPUs. If parts of the process image are used as transfer areas, these may not be used for actual I/O modules.
Data transmission takes place with load and transfer operations using the process image or by direct access.

Additional information
You can find additional information on the hardware configuration in the STEP 7 online help.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

15

Description 2.1 Introduction to PROFIBUS

2.1.3

PROFIBUS DP interface

Properties

A PROFIBUS device has at least one PROFIBUS interface with an electrical (RS 485) interface or optical (Polymer Optical Fiber, POF) interface.

Table 2- 2 Properties of the PROFIBUS DP interface

Standard Physical bus/media
Transmission rate

PROFIBUS: IEC 61158/61784
PROFIBUS cables (twisted two-wire lines RS 485 or fiber-optic cables)
9.6 kbps to 12 Mbps

Representation of the PROFIBUS DP interface in STEP 7
In the device view of STEP 7, the PROFIBUS DP interfaces for a DP master and a DP slave are highlighted by a purple rectangle:

Figure 2-4 PROFIBUS DP interfaces

PROFIBUS with STEP 7 V13

16

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2

Structure of PROFIBUS networks

Contents of this chapter
The following chapter provides background information on building your communication network.  Overview of the most important passive network components: These are network
components that forward a signal without the possibility of actively influencing it, for example, cables, connectors.  Overview of the most important active network components: These are network components that actively affect a signal, for example, repeaters, diagnostic repeaters.  Overview of the most common network structures (topologies)
Physical connections of industrial networks
PROFIBUS devices can be networked in industrial plants in two different physical ways:  By means of electrical signals via copper cables  By means of optical signals via fiber-optic cables

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

17

Description 2.2 Structure of PROFIBUS networks

Selection criteria for networking
The table below includes selection criteria for electrical and optical networking of PROFIBUS devices:

Table 2- 3 Selection criteria for electrical and optical networking

Criteria Transmission medium
Distances
Topology
Transmission protocols Connection of devices by means of
Electrical network segments can be connected

Electrical PROFIBUS

Shielded two-wire  line

POF

­

PCF

­

Glass

­

Max. network span

PROFIBUS DP: 9.6 km

PROFIBUS PA: 1.9 km

Between two devices up to 1 km 1)

Bus



Linear

­

Tree



Ring

­

DP, PA

OLM

­

Integrated interfaces 

Bus terminal



Bus connector





 Suitable ­ Not relevant for this application 1) Depending on data rate and type of service used 2) Depending on cable type used

Optical network with OLM ­
   90 km
up to 15 km 2) ­    DP, PA
 ­ ­ ­ 

Optical network with OBT ­
  ­ 9.6 km
up to 300 m 2) ­    DP
­   ­ ­

Installation guideline for PROFIBUS networks
A PROFIBUS segment must be terminated at the start and end; passively with a connector or actively with a bus terminating resistor.
The same principles apply to the installation of a PROFIBUS network as described in the SIMATIC NET PROFIBUS networks (http://support.automation.siemens.com/WW/view/en/35222591) manual.

PROFIBUS with STEP 7 V13

18

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.1

Passive network components for RS 485 networks

2.2.1.1

RS 485 cables

Introduction

The following applies to all RS 485 cables for PROFIBUS from Siemens:
 Their double shielding makes them especially suited for laying in industrial environments with electromagnetic interference.
 A continuous grounding concept can be implemented by means of the outer shield of the bus cable and the ground terminals of the bus terminals.
 The imprinted meter marking makes it easier to determine the length (accuracy ±5%).

RS 485 cables for PROFIBUS
SIMATIC NET PROFIBUS cables are available in different versions which allow optimum adaptation to different areas of application:
 FC Standard Cable GP (bus cable for fixed laying inside buildings)
 FC Standard Cable IS GP (bus cable for hazardous area)
 FC-FRNC Cable GP (bus cable with halogen-free protective jacket for use inside buildings)
 FC Food Cable (bus cable with PE jacket for use in the food and beverage industry)
 FC Robust Cable (bus cable with PUR jacket for environments subject to chemical and mechanical stress)
 FC Ground Cable (ground cable with PE jacket)
 PROFIBUS FC Trailing Cable (trailing cable for tow chains)
 PROFIBUS Festoon Cable (bus cable for festoon mounting)
 PROFIBUS Torsion Cable (torsion-free bus cable for networking movable plant parts, for example, robots)
 PROFIBUS FC Flexible Cable (bus cable for machine parts that are moved infrequently or cabinet doors)
 SIENOPYR-FR ship cable (for permanent laying on ships and off-shore units in all rooms and on open deck)
 PROFIBUS Hybrid Standard Cable (hybrid cable with 2 power wires (1.5 mm2) for data and power supply of the ET 200pro)
 PROFIBUS Hybrid Robust Cable (trailable hybrid cable with 2 power wires (1.5 mm2) for data and power supply of the ET 200pro)

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

19

Description 2.2 Structure of PROFIBUS networks

Maximum cable lengths
When using copper cables, the maximum size of a PROFIBUS segment depends on the transmission rate.
If these lengths are not sufficient for your application, you can expand the network by using repeaters. You can achieve a maximum size by cascading up to nine repeaters.

Table 2- 4 Maximum cable lengths

Transmission rate
9.6 to 187.5 kbps 500 kbps 1.5 Mbps 3 to 12 Mbps

Maximum cable length of a bus segment 1000 m 400 m 200 m 100 m

Maximum distance between two stations 10000 m 4000 m 2000 m 1000 m

2.2.1.2

PROFIBUS FastConnect system

PROFIBUS FastConnect (FC)
PROFIBUS FastConnect is a system for fast and easy fabrication of PROFIBUS copper cables. The system consists of three components:  FastConnect bus cables for quick mounting  FastConnect stripping tool  FastConnect bus connector for PROFIBUS with insulation displacement method

FastConnect bus cables and stripping tool
The special design of the FastConnect bus cables allows for the use of the FastConnect stripping tool to accurately strip away the protective jacket and the braided shield in one step. The connection of the prepared cables takes place in the FastConnect bus connectors using the insulation displacement method.
All PROFIBUS FastConnect bus cables can also be connected to the conventional bus connectors with screw-type terminals.

PROFIBUS with STEP 7 V13

20

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

Area of application
You need FastConnect bus connectors for PROFIBUS for the following applications:
 Connect devices with an electrical 9-pin D-Sub interface to IEC 61158-2 directly with SIMATIC NET PROFIBUS cables.
 Connect electrical segments or individual devices to the Optical Link Module (OLM) and Optical Bus Terminal (OBT).
 Connect devices or programming devices to the repeater.

Versions

The FastConnect bus connector in degree of protection IP20 is available in the following versions:  with integrated terminating resistor and isolating function  with or without PG socket  with a cable outlet of 35°, 90° or 180°  with device category 3G suitable for zone 2 hazardous area

Figure 2-5 Example for PROFIBUS FastConnect bus connector with PG socket, cable outlet 90°

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

21

Description 2.2 Structure of PROFIBUS networks

Additional information
For additional information on the available components visit the Siemens Mall (http://mall.industry.siemens.com).

2.2.1.3

PROFIBUS bus connector

Area of application
You need PROFIBUS bus connectors for the following applications:
 Connect devices with a 9-pin D-Sub interface to IEC 61158-2 directly with the SIMATIC NET PROFIBUS cables.
 Connect electrical segments or individual devices to the Optical Link Module (OLM) and Optical Bus Terminal (OBT).
 Connect devices or programming devices to the repeater.

PROFIBUS with STEP 7 V13

22

Function Manual, 12/2014, A5E03775446-AC

Versions

Description 2.2 Structure of PROFIBUS networks
The PROFIBUS bus connector in degree of protection IP20 is available in the following versions:  with integrated terminating resistor and isolating function  with or without PG socket  with a cable outlet of 35°, 90° or 180°  with device category 3G suitable for zone 2 hazardous area

Figure 2-6 Example for PROFIBUS bus connector with PG socket, cable outlet 35°
Additional information
For additional information on the available components visit the Siemens Mall (http://mall.industry.siemens.com).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

23

Description 2.2 Structure of PROFIBUS networks

2.2.1.4

M12 bus connector

Area of application
Devices with an electrical M12 interface can use the M12 bus connector for SIMATIC NET PROFIBUS for direct connection with the SIMATIC NET PROFIBUS cables. The M12 bus connector in degree of protection IP65 is available in the following versions:  with screw-type terminals  with insulation displacement termination  with a cable outlet of 180°

2.2.1.5

Bus terminals for RS 485 networks

Bus terminal RS 485 and bus terminal M12
A bus terminal is used for the connection of an individual PROFIBUS station with RS485 interface to the PROFIBUS bus cable.
Bus terminals in degree of protection IP20 are available in the following versions:
 Bus terminal RS 485 with or without PG interface, transmission rate 9.6 kbps to 1.5 Mbps, integrated terminating resistor combination (connectible), with 1.5 m and 3 m connecting cable
 Bus terminal M12, transmission rate 9.6 kbps to 12 Mbps, integrated terminating resistor combination with isolating function, with 1.5 m connecting cable

2.2.1.6

M12 bus terminating resistor

Terminating segment with terminating resistor
If there is a station with M12 connection system at the beginning or end of a PROFIBUS segment, you need an M12 bus terminating resistor.
The M12 PROFIBUS connection of a device consists of an M12 socket for the infeed and an M12 male connector to loop-through the bus signal.
This means you need one bus terminating resistor with male contacts (6GK1905-0EC00) and with female contacts (6GK1905-0ED00) for each M12 bus cable.

PROFIBUS with STEP 7 V13

24

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.2

Passive components for optical networks

2.2.2.1

Fiber-optic cables

Types of fiber-optic cables
Data transmission with fiber-optic cables takes place through modulation of electromagnetic waves in the range of visible and invisible light. These cables are made of high-quality plastic fibers and glass fibers:
 Plastic and PCF fiber-optic cables (Page 26)
 Glass fiber-optic cables (Page 27)
The different types of fiber-optic cables provide solutions matched to the operating and environmental conditions for the connection of components with each other.

Benefits

Fiber-optic cables offer the following benefits when compared with electrical cables:  Galvanic isolation of the devices and segments  No potential equalization currents  No impact on transmission path through external electromagnetic interference  No lightning protection elements required  No noise radiation along the transmission route  Low weight  Depending on the type of fiber you can implement cable lengths up to few kilometers at
even higher transmission rates.  No dependency of the maximum permitted distances on the transmission rate

Additional information
Additional information of the properties and technical specifications of the passive components and connectors for fiber-optic cables is available in the PROFIBUS network manual (http://support.automation.siemens.com/WW/view/en/35222591).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

25

Description 2.2 Structure of PROFIBUS networks

2.2.2.2

Plastic and PCF fiber-optic cables

Plastic and PCF fiber-optic cables
Plastic (POF) and PCF fiber-optic cables are used for the connection of Optical Link modules with connections for plastic fiber-optic cables (OLM/P), Optical Bus Terminal (OBT) and devices with integrated optical interfaces. Under certain conditions, they are an inexpensive alternative to conventional glass fiber-optic cables.

Plastic Fiber Optic duplex core
The plastic fiber-optic duplex core is a flat dual core with PVC inner jacket without protective jacket. The cable can be easily assembled on-site.
The cable is intended for indoor applications with low mechanical loads or inside cabinets. For OLM connections and with integrated optical interfaces you cover a length of up to 50 m between two devices with this cable.

Plastic Fiber Optic standard cable
The plastic fiber optic standard cable consists of two plastic fibers with robust polyamide inner jacket surrounded by Kevlar tensile elements and a purple PVC protective jacket. The cable can be easily assembled on-site.
The robust round cable is suited for indoor applications. The maximum distance that can be covered is 80 m for OLM/P connections and 50 m with integrated optical interfaces and OBT.

PCF Standard Cable
The pre-assembled PCF Standard Cable consists of two PCF fibers surrounded by Kevlar tensile elements and a purple PVC protective jacket. It is always supplied with a pulling aid installed on one end to pull in the cable channels.
The robust round cable is suited for indoor applications with cable lengths up to 400 m (OLM) or 300 m (integrated optical interfaces, OBT) between two devices.

PCF Standard Cable GP
The PCF Standard Cable GP consists of two PCF fibers surrounded by Aramid tensile elements and a green PVC protective jacket. The cable is pre-assembled and can be ordered by the meter. It is supplied with a pulling aid installed on one end to pull in the cable channels.
The robust round cable is suited for indoor and outdoor applications with cable lengths up to 400 m (OLM) or 300 m (integrated optical interfaces, OBT) between two devices.

PROFIBUS with STEP 7 V13

26

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

PCF Trailing Cable
The PCF Trailing Cable consists of two PCF fibers surrounded by Aramid tensile elements and a green PUR protective jacket. The cable is pre-assembled and can be ordered by the meter. It is supplied with a pulling aid installed on one end to pull in the cable channels.
The robust round cable is suited for moving indoor and outdoor applications with cable lengths up to 400 m (OLM) or 300 m (integrated optical interfaces, OBT) between two devices.

PCF Trailing Cable GP
The PCF Trailing Cable GP consists of two PCF fibers surrounded by Aramid tensile elements and a green PVC protective jacket. The cable is pre-assembled and can be ordered by the meter. It is supplied with a pulling aid installed on one end to pull in the cable channels.
The robust round cable is suited for moving indoor and outdoor applications with cable lengths up to 400 m (OLM) or 300 m (integrated optical interfaces, OBT) between two devices.

2.2.2.3

Glass fiber-optic cables

Glass fiber-optic cables
Glass fiber-optic cables are suitable for connection of optical interfaces that work in the wavelength range around 850 nm and around 1300 nm. They include two graded-index multimode fibers of the type 62.5/125 m.
The glass fiber-optic cables are available in different versions which makes for an optimum adaptation to different areas of application:
 Fiber Optic standard cable
 INDOOR Fiber Optic indoor cable
 Flexible Fiber Optic trailing cable

Fiber Optic standard cable
The standard cable is the universal cable for indoor and outdoor use.

INDOOR Fiber Optic indoor cable
The indoor cable is intended for weather-proof indoor use. It is halogen-free, non-crush and flame-retardant.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

27

Description 2.2 Structure of PROFIBUS networks
Flexible Fiber Optic trailing cable
The trailing cable was designed for the special application of forced movement, for example, for constantly moved machine parts such as trailing chains. It is mechanically designed for 100,000 bending cycles by ±90° (with the specified minimum radius). Integrated dummy elements ensure a round cross-section of the cable. The trailing cable can be used indoors and outdoors.
Maximum distances between two optical link modules
The following distances may not be exceeded between two OLMs regardless of the optical power budget:  OLM/P11, OLM/P12: 400 m  OLM/G11, OLM/G12, OLM/G12-EEC: 3 km  OLM/G11-1300, OLM/G12-1300: 15 km
Additional information
All operating instructions (http://support.automation.siemens.com/WW/view/en/10805951/133300) of the SIMATIC NET bus components include information on distances that can be covered with the SIMATIC NET glass fiber-optic cables. You can configure your optical network without any calculations using simple limits.

PROFIBUS with STEP 7 V13

28

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.3

Active network components

2.2.3.1

Network components in electrical networks

Active network components
The following active network components are available for PROFIBUS in electrical networks:  Repeater RS485  Diagnostics repeater  PROFIBUS Terminator  DP/DP coupler  IE/PB Link PN IO  IWLAN/PB Link PN IO  Active components for the connection of CAN  Active components for the gateway between PROFIBUS and AS-Interface
­ DP/AS-i LINK Advanced ­ DP/AS-Interface Link 20E ­ DP/AS-i F-Link

RS485 repeater
The RS485 IP20 repeater connects two PROFIBUS bus segments in RS485 technology with up to 32 devices. It provides transmission rates from 9.6 kbps to 12 Mbps.
The RS485 repeater refreshes a signal regarding amplitude, signal width and edge steepness between two segments. It is used when more than 32 stations are connected to the bus or the maximum cable length of a segment is exceeded.
Bus segments can be operated ungrounded (galvanic isolation of segments) with an RS485 repeater.

Diagnostics repeater
The diagnostic repeater connects three PROFIBUS segments in RS485 technology, two of which are diagnostics-capable segments with 31 devices each. It is designed as DP slave to send diagnostics alarms to the DP master.
The diagnostic function provides the location and the cause of cable faults, such as wire break or missing terminating resistors. The fault location is indicated relative to the existing devices.
The diagnostics repeater refreshes a signal regarding amplitude, signal width and edge steepness between the segments. The cascading depth between any two PROFIBUS devices is limited to nine diagnostics repeaters.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

29

Description 2.2 Structure of PROFIBUS networks

PROFIBUS Terminator
The PROFIBUS Terminator forms an active bus termination. Bus devices can be switched off, removed or replaced without affecting data transmission. This is particularly true for bus devices on both ends of the bus cable at which terminating resistors must be connected or supplied. The PROFIBUS Terminator can be mounted on a standard mounting rail.

IE/PB Link PN for the connection of a PROFIBUS segment to an Industrial Ethernet network
The IE/PB Link PN IO as independent component provides the seamless transition between Industrial Ethernet and PROFIBUS. Through the use of IE/PB Link PN IO as substitute on the Ethernet, the existing PROFIBUS devices can continue to be used and can be integrated into a PROFINET application.
A PROFINET IO controller is required for this configuration. The IE/PB Link PN acts as master on the PROFIBUS end.

IWLAN/PB Link PN IO as gateway between LAN and PROFIBUS
PROFIBUS devices can be coupled to PROFINET IO by means of IWLAN/PB Link PN IO. This means you can integrate existing PROFIBUS configurations into PROFINET.
The IWLAN/PB Link PN IO supports the use of IWLAN and WLAN antennas for wireless data transmission, for example, in suspended monorail systems or conveyor systems. Because of the PROFINET support, the numerous PROFIBUS system services, for example, diagnostics by bus, can continue to be used.
A PROFINET IO controller is required for this configuration. The IWLAN/PB Link PN IO acts as master on the PROFIBUS end.

CANopen module for connection to CAN
You can use the CANopen module to easily connect CANopen applications to PROFIBUS. Typical areas of application:  Control of hydraulic valves/hydraulic axes in vehicles  Control of motors in packaging machines and on conveyor belts  Use in wind turbines for detection of angular encoders  Detection of HMI devices on machines, e.g., joysticks  Detection of measured data from displacement transducers, inclination sensors or angle
encoders on tower cranes or gantry cranes

DP/DP coupler for connection of two PROFIBUS networks
The PROFIBUS DP/DP coupler is used to connect two PROFIBUS DP networks. Data (0 to 244 bytes) is transmitted from the DP master of the first network to the DP master of another network and vice versa.
The DP/DP coupler comes equipped with two independent DP interfaces that establish the connection to the two DP networks. There is one slave at each DP network. The data exchange between the two DP networks takes place by internal copying in the coupler.

PROFIBUS with STEP 7 V13

30

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

DP/PA bus link for connection of PROFIBUS PA
The DP/PA bus link is the connection between PROFIBUS DP and PROFIBUS PA. This means it connects the process control systems with the field devices of the process automation. The following components are available for a DP/PA bus link:  DP/PA coupler Ex [ia]
 DP/PA coupler FDC 157-0
 Interface module IM 153-2 for establishing a DP/PA link.
 Active field distributor AFDiS for hazardous areas

Active components for the gateway between PROFIBUS and AS-Interface
 DP/AS-i LINK Advanced:
The DP/AS-i LINK Advanced is PROFIBUS DPV1 slave (according to IEC 61158-2/EN 61158-2) and AS-Interface master (according to AS-Interface specification V3.0 according to EN 50295) and provides transparent data access to AS-Interface from PROFIBUS DP.
PROFIBUS DP masters can cyclically exchange I/O data with the AS-Interface; DP masters with acyclic services can also make AS-Interface master calls. The DP/AS-i LINK Advanced is particularly suited for distributed configurations and for the connection of a subordinate AS-Interface network.
The DP/AS-i LINK Advanced in the version as AS-Interface single master is completely sufficient for applications with typical configuration limits.
For applications with high configuration limits, the DP/AS-i LINK Advanced is used as AS-Interface double master. In this case, the duplicate configuration limits can be used on two independently running AS-Interface strands.
 DP/AS-Interface Link 20E:
The DP/AS-Interface Link 20E is PROFIBUS DP slave (in accordance with EN 61158) and AS-Interface master (in accordance with AS-Interface specification V3.0 according to EN 50295) and supports operation of the AS-Interface on PROFIBUS DP.
Single PROFIBUS masters can cyclically exchange I/O data with the AS-Interface; masters with acyclic services can exchange I/O data and make master calls.
 DP/AS-i F-Link:
The DP/AS-i F-Link is PROFIBUS DP-V1 slave (according to EN 61158) and AS-i master (according to AS-Interface specification V3.0 to EN 50295) and provides transparent data access to AS-Interface from PROFIBUS DP. The DP/AS-i F-Link is also the only AS-i master that can forward safety-oriented input data of ASIsafe slaves to a fail-safe CPU with PROFIBUS DP master by means of the PROFIsafe protocol. Additional safety cabling or monitoring is not required (in particular, no AS-Interface safety monitor). Depending on the slave type, you can transmit binary values or analog values. All slaves according to AS-Interface specification V2.0, V2.1 or V3.0 can be operated as AS-i slaves.
As fully-featured AS-i master according to specification V3.0, you can use higher configuration limits on the AS-i network (496 inputs and outputs each, up to 62 digital or analog slaves).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

31

Description 2.2 Structure of PROFIBUS networks

Additional information
Information on the components is available in the Siemens Mall (http://mall.industry.siemens.com).
Additional information is available in these manuals:
 PROFIBUS Network Manual (http://support.automation.siemens.com/WW/view/en/35222591)
 Diagnostic repeater (http://support.automation.siemens.com/WW/view/en/7915183)
 DP/DP Coupler (http://support.automation.siemens.com/WW/view/en/1179382)
 SIMATIC NET Twisted-Pair and Fiber-Optic Networks (http://support.automation.siemens.com/WW/view/en/8763736)
 Basics on Setting up an Industrial Wireless LAN (http://support.automation.siemens.com/WW/view/en/9975764)
 SIMATIC bus links, DP/PA coupler, active field distributors, DP/PA Link and Y Link (http://support.automation.siemens.com/WW/view/en/1142696)
 Information on the CANopen module is available on the Internet (http://www.hms-networks.com/can-for-et200s).
 DP/AS-interface LINK Advanced (http://support.automation.siemens.com/WW/view/en/22502958/133300) manual
 DP/AS-i F-Link (http://support.automation.siemens.com/WW/view/en/24196041) manual

See also

Topology with RS485 repeater (Page 35) OLM topology (Page 40) WLAN topology (Page 40) Connecting PROFIBUS to PROFINET (Page 41)

PROFIBUS with STEP 7 V13

32

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.3.2

Network components in optical networks

Active network components
The following active network components are available for PROFIBUS in optical networks:  Optical Link Module OLM  Optical Bus Terminal OBT

Optical Link Module OLM
You can use the PROFIBUS Optical Link Modul OLM to install PROFIBUS networks in line, star structure and redundant ring structure.
The transmission rate of a fiber-optic cable line does not depend on the distance and can be 9.6 kbps to 12 Mbps.
Applications for OLM include, for example, plant buses on PROFIBUS base, networking across buildings using glass fiber-optic cables, mixed networks with electrical and optical segments, large networks (road tunnels, traffic guidance systems) and networks with high demands on availability (redundant ring networks).
Optical Link modules can be combined by means of an RS485 interface and individual devices or entire electrical segments can be integrated into the optical PROFIBUS network.
The following distances may not be exceeded between two OLMs regardless of the optical power budget:
 OLM/P11, OLM/P12: 400 m
 OLM/G11, OLM/G12, OLM/G12-EEC: 3 km
 OLM/G11-1300, OLM/G12-1300: 15 km

Optical Bus Terminal OBT (optical bus terminal)
The Optical Bus Terminal connects an individual PROFIBUS device without integrated optical interface or a PROFIBUS RS 485 segment with up to 31 devices to an optical PROFIBUS.
An individual PROFIBUS DP device is connected with its RS 485 interface by means of a PROFIBUS cable with integrated terminating resistor, for example, connecting cable 830-1T, to the RS 485 interface of the OBT. The OBT is integrated into the optical line by means of two optical interfaces.
The following optical transmission media can be connected to the OBT:
 Plastic fiber-optic cable up to 50 m single distance length. They can be assembled on-site with two 2x2 Simplex connectors.
 PCF fiber-optic cable up to 300 m single distance length. The cables are delivered pre-assembled.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

33

Description 2.2 Structure of PROFIBUS networks
Additional information
Information on the components is available in the Siemens Mall (http://mall.industry.siemens.com). Additional information is available in these manuals:  PROFIBUS network manual
(http://support.automation.siemens.com/WW/view/en/35222591)  SIMATIC NET PROFIBUS, Optical Link Module
(http://support.automation.siemens.com/WW/view/de/56606534/0/en)  SIMATC NET Twisted-Pair and Fiber-Optic Networks
(http://support.automation.siemens.com/WW/view/en/8763736)

PROFIBUS with STEP 7 V13

34

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.4

Examples for topology

2.2.4.1

Topology with RS485 repeater

Configuration options with the RS485 repeater
You can operate the RS485 repeater in the following configurations:

Figure 2-7 Segment 1 and segment 2 connected to RS485 repeater

Figure 2-8 Segment 1 and segment 2 looped-through to RS485 repeater

Figure 2-9 Segment 1 connected to RS485 repeater and segment 2 looped-through to RS485 repeater
 Connect terminating resistor  Do not connect terminating resistor

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

35

Description 2.2 Structure of PROFIBUS networks
Configuration example

Figure 2-10 Configuration example with five RS485 repeaters
 Connect terminating resistor  Do not connect terminating resistor
Maximum configuration
If you install a PROFIBUS network with RS485 repeaters, you may not connect more than nine RS485 repeaters in series.

PROFIBUS with STEP 7 V13

36

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.4.2

Topology with diagnostic repeater

Diagnostic repeater with three segments
You may not exceed the maximum permitted cable length of 100 m per segment that can be monitored for the diagnostic repeater. The segments connected to DP2 and DP3 are diagnostics-capable. The cable length that can be monitored is limited for some cable types.

Maximum cascade depth
You can connect up to nine diagnostic repeaters in series between any two PROFIBUS stations.

Figure 2-11 Schematic layout of a PROFIBUS network with maximum possible cascade depth at diagnostic repeaters

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

37

Description 2.2 Structure of PROFIBUS networks
Example: Maximum cascade depth exceeded

Figure 2-12 Maximum cascade depth exceeded

PROFIBUS with STEP 7 V13

38

Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks
Layout with several segments
You can increase the number of used diagnostic repeaters by using several segments. The example shows a layout in which the maximum cascade depth is exceeded at two segments.

Figure 2-13 Layout with several segments, maximum cascade depth exceeded
Additional information
Additional information is available in the Diagnostic Repeater (http://support.automation.siemens.com/WW/view/en/7915183) manual.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

39

Description 2.2 Structure of PROFIBUS networks

2.2.4.3

OLM topology

Combination of electrical and optical networks with OLM
Additional distances can be covered by means of the Optical Link Module.
Because bus cables across several buildings are particularly vulnerable to damage caused by overvoltage (effect of lightning), the devices in the connected bus segment must be protected against overvoltage.

Figure 2-14 Combination of electrical and optical networks

2.2.4.4

WLAN topology

IWLAN/PB Link PN IO as gateway between Industrial Wireless LAN and PROFIBUS
The IWLAN/PB Link PN IO supports the use of IWLAN and WLAN antennas for wireless data transmission. This means the numerous PROFIBUS system services, for example, diagnostic by bus, can be used throughout.

Figure 2-15 PROFIBUS and WLAN 40

PROFIBUS with STEP 7 V13 Function Manual, 12/2014, A5E03775446-AC

Description 2.2 Structure of PROFIBUS networks

2.2.4.5

Connecting PROFIBUS to PROFINET
PROFIBUS can be integrated in PROFINET. In this way, you can set up any hybrid systems consisting of fieldbus and Ethernet-based subsystems. This provides a continuous data exchange.

Coupling of PROFIBUS and PROFINET
With a proxy-capable PROFINET device that is equipped with a PROFIBUS interface in addition to a PROFINET interface, you can integrate existing PROFIBUS configurations into the PROFINET configuration.

Figure 2-16 Connection of PROFIBUS and PROFINET with IE/PB link
PROFINET device with proxy functionality
The PROFINET device with proxy functionality is the substitute for a PROFIBUS device on Ethernet. The proxy functionality allows a PROFIBUS device to communicate not only with its master but also with all devices on PROFINET. With PROFINET, existing PROFIBUS systems can be integrated into the PROFINET communication with the aid of an IE/PB link. The IE/PB link PN IO then handles communication via PROFINET on behalf of the PROFIBUS components.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

41

Parameter assignment/addressing

3

To set up an automation system, you will need to configure, assign parameters and link the individual hardware components. The work needed for this is undertaken in the STEP 7 device, topology and network view.

Configuration

"Configuring" is understood to mean arranging, setting and networking devices and modules within the device or network view.
A PROFIBUS address is automatically assigned to each module. The addresses can be subsequently modified.
The CPU compares the preset configuration created in STEP 7 with the actual configuration of the plant. Errors can be detected and signaled immediately this way.
The exact procedure for configuring devices is described in detail in the STEP 7 online help.

Parameter assignment
"Parameter assignment" is understood to mean setting the properties of the components used. The settings for the hardware components and for data exchange are assigned, for example, activating diagnostics, input delay with DI.
The parameters are downloaded into the CPU and transferred to the corresponding modules when the CPU starts up. Modules can be replaced with ease because with SIMATIC CPUs the set parameters are automatically downloaded into the new module during each startup.

Adjusting the hardware to the project requirements
You need to adapt the hardware if you want to set up, expand or change an automation project. To do this, add hardware components to your layout, link them with existing components, and adapt the hardware properties to the tasks.
The properties of the automation systems and modules are preset so that in many cases you do not have to assign parameters again.
But parameter assignment is required in the following cases:
 You want to change the preset parameters of a module.
 You want to use special functions.
 You want to configure communication connections.

PROFIBUS with STEP 7 V13

42

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.1 Assigning the DP slave to a DP master
Basic procedure for creating a PROFIBUS DP system
 Configuration ­ Creating PROFIBUS devices and modules in STEP 7 ­ Assigning the DP slave to a DP master (Page 43)
 Optional: Parameter assignment ­ Assigning the PROFIBUS address (Page 45) ­ Making network settings (Page 46) ­ Considering cable configuration (Page 49) ­ Considering additional network devices (Page 51) ­ Bus parameters ­ creating a user-defined profile (Page 52) ­ Configuring constant bus cycle time (Page 55)

3.1

Assigning the DP slave to a DP master

PROFIBUS DP system
A PROFIBUS DP system consists of a PROFIBUS DP master and its assigned PROFIBUS DP slaves. Once the devices have been placed in the network view or device view, STEP 7 assigns default parameter values to them. Initially, you only have to assign the DP slaves to one DP master.

Requirement

 The network view of STEP 7 is open.  A CPU has been placed (e.g., CPU 1516-3 PN/DP).  A DP slave has been placed (e.g., IM151-1 HF).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

43

Parameter assignment/addressing 3.1 Assigning the DP slave to a DP master

Procedure

To assign DP slaves to a DP master, follow these steps:
1. On the DP slave, use the left mouse button to click on the "Not assigned" link. The "Select DP master" menu opens.
2. Select the DP master in the menu to which you want to assign the DP slave.
Result: A subnet with a DP system is created on the CPU. The CPU is now the PROFIBUS DP master. The DP slave is assigned to the DP master.
3. Repeat steps 1 and 2 for all other DP slaves that you want to assign to the DP master.

Figure 3-1 Assigning the DP slave to a DP master
Network overview
You can check the communication relationships of the activated interface in the network overview. The network overview is context-sensitive for selection in the network view:  The selection of the CPU shows the DP communication of the CPU.  The selection of the station shows the communication of the entire station.  The selection of the interface shows the DP communication of the interface.

PROFIBUS with STEP 7 V13

44

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.2 PROFIBUS address

3.2

PROFIBUS address

Devices can be connected to the PROFIBUS subnet that communicate by means of configured connections or that are part of a PROFIBUS DP master system.

If the DP slave has already been assigned to a DP master, the PROFIBUS subnet to which the device is connected is automatically displayed under "Interface linked with".

In the Inspector window under "PROFIBUS", select the subnet to which the interface is linked or add a new subnet.

All devices of a subnet must have different PROFIBUS addresses.

Figure 3-2 PROFIBUS address
Rules for address assignment
STEP 7 automatically assigns device addresses. You can change the addresses if you observe the following points:  Assign a unique PROFIBUS address to each device in the PROFIBUS network, each DP
master and each DP slave in the PROFIBUS network.  Depending on the DP slave, not all permitted PROFIBUS addresses are supported. For
devices with BCD switches, it is often the case that only the PROFIBUS addresses 1 to 99 are supported.
Changing the PROFIBUS address
You change the PROFIBUS address under "Parameter".

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

45

Parameter assignment/addressing 3.3 Network settings

3.3

Network settings

Highest PROFIBUS address (HSA)
Outputs the highest PROFIBUS address of an active device. PROFIBUS addresses greater than HSA are permitted for passive devices, but only up to 126.

Profile

Depending on the connected device types and the protocols used, different profiles are available on the PROFIBUS. The profiles differ with respect to their setting options and calculation of the bus parameters.
The PROFIBUS subnet will only work properly if the bus parameters of all devices have the same values.

Figure 3-3 Network settings

Profiles and transmission rates

Table 3- 1 Profiles and transmission rates

Profiles DP Standard Universal (DP/FMS) (FMS is not supported) User-defined

Supported transmission rates 9.6 kbps to 12 Mbps 9.6 kbps to 12 Mbps 9.6 kbps to 1.5 Mbps
9.6 kbps to 12 Mbps

PROFIBUS with STEP 7 V13

46

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.3 Network settings
DP (recommended profile)
Select the "DP" profile if only devices meeting the requirements of the standard EN 61158-6-3 are connected to the PROFIBUS subnet. The setting of the bus parameters has been optimized for these devices. These include devices with DP master and DP slave interfaces of SIMATIC S7 as well as distributed I/O devices from third parties.
Note Profile for constant bus cycle time and isochronous mode DP is the recommended profile for the configuration of constant bus cycle time and isochronous mode.

Standard

Compared with the "DP" profile, the "Standard" profile gives you the option to take into consideration devices of another project or devices that have not been configured here for calculation of the bus parameters. The bus parameters are then calculated with a simple algorithm that was not optimized.

Universal (DP/FMS) (FMS is not supported)
Select the "Universal (DP/FMS)" profile if individual devices in the PROFIBUS subnet use the FMS service (e.g., CP 343-5, PROFIBUS FMS devices).
As with the "Standard" profile, here, too, you have the option to take additional devices into consideration for calculation of the bus parameters.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

47

Parameter assignment/addressing 3.3 Network settings

User-defined

The PROFIBUS subnet will only work properly if the parameters for the profile have been synchronized. Select the "User-defined" profile if none of the other profiles "match" for operation of a PROFIBUS device and if you have to adapt the bus parameters for your special layout.
You cannot configure all theoretically possible combinations with the user-defined profile either. The PROFIBUS standard prescribes some parameter limits depending on other parameters. It is, for example, not permitted that a responder responds (Min Tsdr) before the initiator is able to receive the frame (Trdy). These standard specifications are also checked in the "User-defined" profile.
Note User-defined settings
Use user-defined settings only if you are familiar with the PROFIBUS parameters. It is usually better to work with the "DP" profile.
Contact Customer Support (Page 91) if you have any questions.
The bus parameters that were last valid on the PROFIBUS subnet are automatically set as user-defined. If the "DP" bus profile was valid for the subnet, for example, the bus parameters for "DP" are set in the "User-defined" bus profile. You can modify the parameters based on these settings.

The monitoring times are not automatically recalculated in the "User-defined settings" setting so that the uniformity of the set values is not changed without your knowledge, for example, to configure other configuration tools.
You can calculate the monitoring times Ttr and watchdog based on the parameters you have set. To do so, click on the "Recalculate" button.

See also

Additional network stations (Page 51)

PROFIBUS with STEP 7 V13

48

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.4 Cable configuration

3.4

Cable configuration

Considering cable configuration
Information on the cable configuration can be taken into consideration for calculation of the bus parameters. To do so, select the check box "Take into account the following cable configuration" in the properties of the PROFIBUS subnet.
The other information depends on the type of cable used.

Figure 3-4 Cable configuration
Cable configuration: Fiber-optic cables/optical ring
The calculation depends on the used OLM types. Select the corresponding check box. Multiple selections are possible.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

49

Parameter assignment/addressing 3.4 Cable configuration
Adapting bus parameters in the optical ring
With the layout as ring, there is a kind of redundancy because you have the option to address all devices using the ring structure even if the connection between two devices is interrupted. The following configuration conditions must be met in the optical ring:  A free address below HSA (Highest Station Address)  Increase of the retry value to at least 3
(Network settings: user-defined profile)  Checking and adapting of the slot time
(Network settings: user-defined profile; bus parameters: Tslot parameter: You need short slot time values for OLM / P12, medium slot time values for OLM / G12 and OLM / G12-EEC and high slot time values for OLM / G12-1300. This results in a high performance for small networks and a medium to low performance with medium to large networks.
Additional information
Additional information on adaptation of the retry value and the slot time is available in the PROFIBUS Network Manual (http://support.automation.siemens.com/WW/view/en/35222591).

PROFIBUS with STEP 7 V13

50

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.5 Additional network stations

3.5

Additional network stations

Communication load - considering additional network stations
The bus parameters depend on the communication volume of the active network stations. There are differences between cyclical communication (DP) and connection-oriented, acyclical communication (S7 communication, Send/Receive (FDL)). Contrary to DP, the number and size of the communication jobs (communication load) depends on the user program. This means the communication load cannot always be determined automatically.
If you select the check box "Consider the following network stations", you can consider network stations in the calculation of the bus times that were not configured in the project.

Figure 3-5 Additional network stations
Calculating the bus times
You can specify a network configuration in the parameter group "Additional network stations" for calculation of the bus times that deviates from the configured network configuration. The network configuration is available for the following profiles:  Standard  Universal (DP/FMS)  User-defined

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

51

Parameter assignment/addressing 3.6 Bus parameters
Quantification of the communication load
The following settings are possible to take the communication load into consideration:  Number of network stations that are not configured  Information on the communication load from the user programs for FDL or S7
communication. You can choose from the following levels: ­ Low: Typical for DP, no larger data communication except DP. ­ Medium: Typical for mixed operation of DP and other communication services
(e.g., S7 communication), if DP has high time requirements and with medium, acyclical communication volume. ­ High: For mixed operation of DP and other communication services (e.g., S7 communication), if DP has low time requirements and with high, acyclical communication volume.

3.6

Bus parameters

Introduction

Bus parameters control the transmission behavior on the bus. Each device on the bus must correspond with the bus parameters of other devices.
Note
The PROFIBUS subnet will only work properly if the parameters for the bus profile have been synchronized. Change the preset values only if you are familiar with the parameter assignment of the bus profile for PROFIBUS.

PROFIBUS with STEP 7 V13

52

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.6 Bus parameters
Cyclical distribution of the bus parameters
If the check box "Activate cyclical distribution of bus parameters" is selected under "Bus parameters" with the selected PROFIBUS subnet in the Inspector window, the bus parameters are sent cyclically during operation by the modules that support this function. This way you can, for example, connect a programming device to the PROFIBUS during operation.
Disable this function in the following cases:
 In constant bus cycle time mode to minimize the bus cycle.
 If third-party devices are connected in the PROFIBUS subnet whose protocol uses the DSAP 63 (Destination Service Access Point) for multicast.

Figure 3-6 Bus parameters

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

53

Parameter assignment/addressing 3.6 Bus parameters
Bus parameters for the bus profile of PROFIBUS subnets
Note Display of offline values The offline values of the bus parameters are always displayed even if they are connected online with the target system.

Table 3- 2 Bus parameters - value ranges

Bus parameters Tslot_Init Max. Tsdr Min. Tsdr
Tset Tqui GAP factor Retry limit Tslot ( slot time) Tid2 Trdy Tid1 Ttr (Target Rotation Time) Ttr typical
Watchdog

Adjustable 1 Yes Yes Yes
Yes Yes Yes Yes No No No No Yes No

Limit values Max. Tsdr + 15 <= Tslot_Init <= 16.383 t_Bit 35 + 2*Tset + Tqui <= Max. Tsdr <= 1,023 t_Bit 11 t_Bit <= Min. Tsdr <= MIN(255 t_Bit, ... ... Max. Tsdr - 1, 34 + 2*Tset + Tqui) 1 t_bit <= Tset <= 494 t_bit 0 t_bit <= Tqui <= MIN(31 t_bit, Min. Tsdr - 1) 1 <= GAP factor <= 100 1 <= Retry limit <= 15 Tid2 = Max. Tsdr Trdy = Min. Tsdr Tid1 = 35 + 2*Tset + Tqui 256 t_Bit <= Ttr <= 16,777,960 t_bit This time is for information only and is not transmitted to the devices. 10 ms <= Watchdog <= 650 s

1 depending on bus profile

User-defined bus profile
Use the following settings to create a user-defined bus profile:
 minimum Target Rotation Time (Ttr) = 5000x HSA (highest PROFIBUS address of an active device)
 minimum watchdog (Watchdog) = 6250x HSA

Recalculate

Use the button "Recalculate" to recalculate the parameters.

PROFIBUS with STEP 7 V13

54

Function Manual, 12/2014, A5E03775446-AC

Parameter assignment/addressing 3.7 Constant bus cycle time

3.7

Constant bus cycle time

Constant bus cycle time
The DP master addresses its assigned DP slaves cyclically. S7 communication may cause the intervals to vary. You can enable a "bus cycle with constant bus cycle time" to achieve identical intervals. This ensures data transmission at the same (constant bus cycle time) intervals.

Figure 3-7 Enabling a bus cycle with constant bus cycle time
Number of OPs/PGs/TDs at the PROFIBUS
Here you enter the number of devices that are not configured.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

55

Parameter assignment/addressing 3.7 Constant bus cycle time

Increasing DP cycle time manually
The following situation can occur especially with very short DP cycle times: The runtime of the user program is greater than the shortest cycle (see Technical specifications of the CPU, section "Isochronous mode"). You have to manually increase the automatically calculated DP cycle time in this case.

See also

Configuring isochronous mode (Page 67)

PROFIBUS with STEP 7 V13

56

Function Manual, 12/2014, A5E03775446-AC

Diagnostics

4

4.1

Overview

Diagnostics options
In case of an error you can determine the current status of your automation system and react specifically by using the event-related diagnostics and the evaluation of interrupts.
You can use the following options for diagnostics of the PROFIBUS components:
 Determine the status of the system using the Lifelist in STEP 7.
 Evaluate the module status, error and message texts by using the display of the S7-1500 CPU.
 Run cable diagnostics during operation by means of the diagnostics repeater.
 Evaluate the diagnostics and interrupt behavior in isochronous mode. (Page 70)
 Determine status information for fault localization and fault rectification by using the DP/PA coupler FDC 157-0 configured as PROFIBUS diagnostics slave.

Additional information
Additional information on diagnostics is available in these manuals:
 In the Diagnostics repeater for PROFIBUS-DP (http://support.automation.siemens.com/WW/view/en/7915183) manual for diagnostics with STEP 7, diagnostics in the user program, monitoring function isochronous PROFIBUS, topology display in STEP 7.
 In the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual for diagnostics options that are available for the SIMATIC systems S7-1500, ET 200MP, ET 200SP and ET 200AL.
 In the PROFIBUS Network Manual (http://support.automation.siemens.com/WW/view/en/35222591) system manual for diagnostics of fiber-optic cables.
 In the DP/PA Coupler, Active Field Distributors, DP/PA Link and Y Link (http://support.automation.siemens.com/WW/view/en/1142696) operating instructions.
 In the Web Server (http://support.automation.siemens.com/WW/view/en/59193560) function manual for diagnostics options (based on the functionality of the CPU).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

57

Diagnostics 4.2 Diagnostics using the display of the S7-1500

4.2

Diagnostics using the display of the S7-1500

Displays

Each CPU in the S7-1500 automation system has a front cover with a display and operating buttons. Control and status information is displayed in different menus on the display. You use the operating buttons to navigate through the menus.
The following states can be evaluated on the display:
 Module status for central and distributed modules
 Error and alarm texts (system diagnostics, user-defined alarms)

Module status

From the station overview you go to the module status for a distributed module via the module overview.

Figure 4-1 Example: Station overview, module overview, module status

PROFIBUS with STEP 7 V13

58

Function Manual, 12/2014, A5E03775446-AC

Error and alarm texts

Diagnostics 4.2 Diagnostics using the display of the S7-1500

Figure 4-2 Example: Diagnostic buffer, alarms
Additional information
Additional information on the topic "Functions and operation of the display" is available in the documentation for the S7-1500 automation system on the Internet (http://support.automation.siemens.com/WW/view/en/59191792).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

59

Diagnostics 4.3 Diagnostics with the diagnostic repeater

4.3

Diagnostics with the diagnostic repeater

Introduction

The diagnostic repeater is a repeater that can monitor two segments of a RS485-PROFIBUS subnet (copper cable) during operation and signal cable faults to the DP master by sending a diagnostic frame. Fault location and the cause of the fault can be displayed in plain text by means of STEP 7 as well as operator control and monitoring devices (SIMATIC HMI).
With its cable diagnostics during operation, the diagnostic repeater allows you to detect and localize cable faults early on. This means plant faults are detected early and plant downtimes can be prevented.

Diagnostic functions
 The diagnostic function provides the location and the cause of cable faults, such as wire break or missing terminating resistors. The fault location is specified relative to the devices present, for example "Break on signal line A and/or B".
 Reading out the saved diagnostic and statistical information.
 Monitoring of the isochronous PROFIBUS, e.g., violation of cycle time.
 Providing identification data.

Additional information
Additional information on diagnostics with STEP 7 and for reading out the diagnostics with the user program is available in the Diagnostic repeater for PROFIBUS DP (http://support.automation.siemens.com/WW/view/en/7915183) manual.

PROFIBUS with STEP 7 V13

60

Function Manual, 12/2014, A5E03775446-AC

Diagnostics 4.4 I&M data (Identification and Maintenance)

4.4

I&M data (Identification and Maintenance)

Definition and properties
Identification and maintenance data (I&M) is information saved in a module to provide support when:  Checking the plant configuration  Locating hardware changes in a plant Identification data (I data) is module information (some of which may be printed on the module housing) such as the order and serial number. I data is read-only, vendor-specific module information. Maintenance data (M data) is system-specific information such as the installation location and date. M data is generated in the course of configuration and is written to the module memory. The modules can be uniquely identified in online mode by means of the I&M data.
Additional information
Information if and to what extent a DP device supports I&M data is available in the respective device manual of the device.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

61

Functions

5

5.1

Isochronous mode

5.1.1

What is isochronous mode?

Why isochronous mode?
Assuming public transport were to operate at maximum speed while reducing stop times at the passenger terminals to absolute minimum, the last thing many potential passengers would notice of the departing contraption are its red tail lights. The overall travel time is, however, decided by the train, bus or underground clock, because well adjusted timing is essential to a good service. This also applies to distributed automation engineering. Not only fast cycles but also the adaptation and synchronization of the individual cycles result in optimum throughput.

Just-In-Time

Figure 5-1 System cycle
The high speed and reliable reaction time of a system operating in isochronous mode is based on the fact that all data is provided just-in-time. The constant bus cycle time PROFIBUS DP cycle beats the time here.

PROFIBUS with STEP 7 V13

62

Function Manual, 12/2014, A5E03775446-AC

Advantages of isochronous mode
The use of isochronous mode provides:  Optimized controls  Determinism  Consistent (simultaneous) reading of input data  Consistent (simultaneous) output of output data

Functions 5.1 Isochronous mode

5.1.2

Use of isochronous mode
The system property "isochronous mode" enables recording of measured values and process data in a defined system cycle. Signal processing takes place in the same system cycle all the way to switching to the "output terminal". This means isochronous mode improves the control quality and provides greater manufacturing precision. Isochronous mode drastically reduces the possible fluctuations of process response times. The timeassured processing can be used for a higher machine cycle.
Isochronous mode is basically always the choice when acquisition of measured values needs to be synchronized, movements need to be coordinated and process reactions need to be defined and take place simultaneously. This means the areas of applications for isochronous mode are manifold.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

63

Functions 5.1 Isochronous mode

5.1.3

Isochronous applications

Example: Isochronous measurement at several measuring points
QC requires precise measurement of dimensions within a camshaft production process.

Figure 5-2 Measuring of camshafts
Isochronous workflow
By using the system property "isochronous mode" and the associated simultaneous measured value acquisition, measurement can be performed continuously and the time required for measurement is reduced. Resultant workflow:  Continuous turning of the camshaft.  During the continuous turning, measure the positions and cam excursion synchronously.  Process the next camshaft. All camshaft positions and the corresponding measured values (red) are measured synchronously within a single rotation of the camshaft. This increases machine output and maintains or enhances precision of the measurement.

PROFIBUS with STEP 7 V13

64

Function Manual, 12/2014, A5E03775446-AC

Functions 5.1 Isochronous mode

5.1.4

Sequence of synchronization

From reading of input data to output of output data
The sequence of all components involved in the synchronization is explained in the paragraphs below:  Isochronous reading of input data  Transport of input data by means of the PROFIBUS subnet to the DP master (CPU)  Further processing in the isochronous application of the CPU  Transport of output data by means of the PROFIBUS subnet to the output DP slave  Isochronous output of output data

T_DC TI TO

Date cycle Time for reading the input data Time for output of output data

Figure 5-3 Time sequence of synchronization

To ensure that all input data is ready for transportation via the PROFIBUS DP line when the next PROFIBUS DP cycle begins, the I/O read cycle has a lead time TI so that it starts earlier. The TI is the "flash gun" for all inputs. This TI is necessary to compensate for analog to digital conversion, backplane bus times, etc. The lead time TI can be configured by STEP 7 or by the user. We recommend that you have TI assigned automatically by STEP 7 .
The PROFIBUS DP line transports the input data to the DP master. The synchronous cycle interrupt OB SynchronousCycle is called. The user program in the synchronous cycle interrupt OB decides the process reaction and provides the output data in time for the start of the next data cycle. The length of the data cycle is always configured by the user.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

65

Functions 5.1 Isochronous mode
To is the compensation from the backplane bus and the digital to analog conversion within the slave. The To is the "flash gun" for all outputs. The time To can be configured by STEP 7 or by the user. We recommend that you have To assigned automatically by STEP 7. Without isochronous mode, application, data transmission and field devices have their own, unsynchronized processing cycles; these result in a higher total cycle time with high jitter. With isochronous mode, application, data transmission and field device are synchronized resulting in a minimum total cycle with minimum jitter.
Isochronous mode and non isochronous mode distributed I/O
It is possible to combine isochronous mode distributed I/O with non isochronous mode distributed I/O on one DP master.

5.1.5

Requirements for configuration
Note the following requirements for configuration of isochronous mode:
 Isochronous mode cannot be used in optical PROFIBUS networks.
 Constant bus cycle time and isochronous mode are only possible with the bus profiles "DP" and "User-defined".
 Isochronous mode is only possible with the DP interfaces integrated in the CPU. Isochronous mode with CPs for PROFIBUS is not possible.
 Only the constant bus cycle time master is permitted as active station on the isochronous PROFIBUS DP. OPs and PGs (for example, PCs with PG functionality) influence the time behavior of the isochronous DP cycle and are therefore not permitted.
 Isochronous mode is not permitted across lines.
 Isochronous I/O can only be processed in process image partitions. Isochronous consistent data transmission is not possible without the use of process image partitions. The adherence to quantity structures is monitored because the number of slaves and bytes on the DP master system is limited for each process image partition.
 The addresses of isochronous modules must be located in a process image partition.
 Full isochronous mode from "terminal" to "terminal" is only possible if all components involved in the chain support the system property "isochronous mode".
Make sure you look for the entry "Isochronous mode" or "Isochronous processing" in the information box of the module when you select it in the catalog.
 When you configure isochronous mode, you may not assign a SYNC/FREEZE group to the slave.

PROFIBUS with STEP 7 V13

66

Function Manual, 12/2014, A5E03775446-AC

Functions 5.1 Isochronous mode

5.1.6

Configuring isochronous mode

Introduction

A SIMATIC automation solution can be connected to the isochronous PROFIBUS with the isochronous mode function. Isochronous mode guarantees the synchronous reading of input data, the processing and output of output data at the same (isochronous) intervals.

Basic procedure for configuration of isochronous mode
1. Setting the properties for isochronous mode on the DP slave: ­ Isochronous DP cycle ­ Isochronous mode of the modules
2. Setting the properties for isochronous mode on the modules: ­ Synchronous cycle interrupt (SynchronousCycle) ­ Process image partition ­ Input delay
3. Create user program with access to isochronous I/O

Requirement

 The network view in STEP 7 is open.  A CPU has been placed (e.g., CPU 1516-3 PN/DP).  An interface module has been placed and networked with the CPU (e.g., IM 151-1 HF).  I/O modules have been placed (e.g., 2DI x DC24V HF and 2DO x DC24V/0,5A HF).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

67

Functions 5.1 Isochronous mode
Configuring isochronous mode on the DP slave
1. Select the DP slave in the network view and navigate to the "isochronous mode" area in the Inspector window.
2. Enable the option for synchronization to the DP cycle for the DP slave. Default: The DP slaves get the Ti/To values from the subnet which means the values are automatically the same for all DP slaves of the DP master system.
3. Enable the "Isochronous mode" option the the "Detail view" for all I/O modules you want to operate in isochronous mode.
4. Repeat steps 1 and 3 for all DP slaves that you want to operate in isochronous mode.

Figure 5-4 Configuring isochronous mode on the DP slave

PROFIBUS with STEP 7 V13

68

Function Manual, 12/2014, A5E03775446-AC

Functions 5.1 Isochronous mode Configuring synchronous cycle interrupt on the I/O module 1. Select an I/O module in the device view and navigate to the "I/O addresses" area in the Inspector window. ­ The option for isochronous mode is selected. 2. Select the synchronous cycle interrupt in the drop-down list.
Figure 5-5 I/O addresses - creating the synchronous cycle interrupt OB 3. Assign the process image partition configured in the CPU.

Figure 5-6 I/O addresses - assigning process image partitions 4. Repeat steps 1 and 3 for all I/O modules that you want to operate in isochronous mode.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

69

Functions 5.1 Isochronous mode
Programming isochronous mode
To operate your plant in isochronous mode, the user program must be structured accordingly. This means you have to add a synchronous cycle interrupt in the STEP 7 project tree.
You access the isochronous I/O by means of a process image partition, which means the addresses of the isochronous modules must be located in a process image partition. You program access to isochronous I/O with the "SYNC_PI" instructions (updating the process image partitions of the inputs) and "SYNC_PO" (updating the process image partition of the outputs) in the synchronous cycle interrupt OB.
You call the "SYNC_PI" instruction at the start of the synchronous cycle interrupt OB, provided you have selected the automatic setting for the delay time. You call the "SYNC_PO" instruction at the end of the synchronous cycle interrupt OB.

5.1.7

Diagnostics and interrupt functions
The diagnostic and interrupt functions of STEP 7 are available for isochronous mode. These reduce downtimes and simplify localization and elimination of faults.

Events, causes of errors and remedies
Below, you will find the events for diagnostic and interrupt functions and remedies for the problem.

Table 5- 1 Events, causes of errors and remedies

Event

Cause of the error

· Synchronous cycle interrupt OB is started with the input parameter EventCount > 0 (number of lost OB calls since last OB call)
If configured:

The synchronous cycle interrupt OB takes too long.

· Call of the time error OB

· Diagnostic buffer entry "Buffer overflow for OB6x events"

Remedy
· Shorten the synchronous cycle interrupt OB.
· Increase the DP cycle.
· Reduce the delay time setting (setting with isochronous mode at synchronous cycle interrupt OB).

Error (negative RetVals) when updating the isochronous process image partition with SYNC_PI / SYNC_PO:
· Consistency warning
· Update time is after / before the permitted access window.

SYNC_PI / SYNC_PO are not called · Increase the delay time.

in the permitted access window in the synchronous cycle interrupt OB,

·

Increase the DP cycle.

which means they are called or

· Adapt the program.

processed during the I/O data

transfer on PROFIBUS.

Error when updating the isochronous process image partition with SYNC_PI / SYNC_PO:

DP slave / module does not respond / is not available.

· Access error

PROFIBUS with STEP 7 V13

70

Function Manual, 12/2014, A5E03775446-AC

Functions 5.1 Isochronous mode

5.1.8

Parameter settings for isochronous mode

Parameter changes as task of the field service technician
The task of a field service technician is to maintain the production process.
In this context the technician has to detect, localize and eliminate errors and performance losses of isochronous mode.
All parameters which influence isochronous mode can be checked and configured using the "Isochronous mode" dialog box.
Parameters should only be changed by experienced users or service technicians.

5.1.8.1

Viewing isochronous mode parameters

"Isochronous mode" dialog box
1. Select "Properties > Isochronous mode" in the Inspector window.
The "isochronous mode" dialog box opens with an overview of parameters which influence isochronous mode. Information on the individual parameters is available under "Detail overview".
2. Compare the values shown with the values in the documentation, or with the value specified by a technician.

Figure 5-7 Viewing parameters for isochronous mode

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

71

Functions 5.1 Isochronous mode

5.1.8.2

Change parameters

Changing parameters for the DP master system
You can change the parameters for isochronous mode in the "Constant bus cycle time" dialog box. 1. Select the DP master system in the network view. 2. Select the section "Constant bus cycle time" in the Inspector window. 3. Change the parameters according to the received instructions.

Figure 5-8 Changing parameters for the DP master system

PROFIBUS with STEP 7 V13

72

Function Manual, 12/2014, A5E03775446-AC

Adapting the input delay
1. Select the input module in the device view. 2. Select the section "Inputs" in the Inspector window. 3. Adapt the input delay.

Functions 5.1 Isochronous mode

Figure 5-9 Adapting the input delay
Compile, load and save the changed configuration
1. Put the plant out of operation. 2. Select the CPU in the project navigator. 3. Select "Compile > Hardware" in the shortcut menu. 4. Select "Download to device" in the shortcut menu. 5. Save the project.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

73

Functions 5.2 Acyclical data exchange

5.2

Acyclical data exchange

Additional functionality with DPV1 devices (DP master/DP slaves)
DP masters and DP slaves that support DPV1 have the following additional functions compared to the devices that support only DPV0:
 The acyclic data exchange between master and slave is supported.
 Interrupts can be set by a DPV1 slave which ensure handling of the interrupt-triggering event in the master CPU.

Acyclic data exchange
Read/write data record, for example, to change the parameters of a slave during operation. The data records of a module and the structure of these data records is available in the documentation for the respective module.
The table below contains the instructions with their functions for access to DPV1 slaves. Detailed information is available in the STEP 7 online help.

Table 5- 2 Instructions for access to DPV1 slaves

Instructions RDREC WRREC RALRM

Function (DPV1)
Read data record Write data record Receive interrupt from a DP slave. (The instruction must be called in the OB that triggers the interrupt.)

PROFIBUS with STEP 7 V13

74

Function Manual, 12/2014, A5E03775446-AC

Functions 5.3 SYNC/FREEZE groups

5.3

SYNC/FREEZE groups

Assigning the SYNC/FREEZE group to the DP slave
A DP master with the corresponding functionality can send the control commands SYNC and/or FREEZE for synchronization of the DP slaves simultaneously to a group of DP slaves. You must assign SYNC/FREEZE groups to the DP slaves for this purpose.
Requirement: A DP master system has been created in the project.

Procedure

To assign a DP slave to a SYNC/FREEZE group, follow these steps:
1. Select the DP interface of the DP slave you want to assign to a group in the device view or network view.
2. Select the check boxes for the required SYNC/FREEZE groups under the group "SYNC/FREEZE" in the Inspector window.
You can assign each DP slave to only one SYNC/FREEZE group.

Figure 5-10 Assigning the DP slave to a SYNC/FREEZE group

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

75

Functions 5.3 SYNC/FREEZE groups
Important information on the control commands SYNC and FREEZE
You can use the control commands SYNC and FREEZE in the DP master to synchronize the DP slaves event-controlled. The DP master sends the control commands simultaneously to a group of DP slaves in its master system. It does not take into consideration DP slaves that have failed or are currently sending diagnostic information.
Requirement for synchronization using control commands is that you have assigned the DP slaves to SYNC/FREEZE groups.
For a S7 CPU use the instruction DPSYC_FR (SFC 11) to synchronize the DP slaves.
When you select the DP master, you see a list of the eight SYNC/FREEZE groups under "Properties > DP interface > SYNC/FREEZE" in the Inspector window.

Figure 5-11 SYNC/FREEZE groups on DP master
SYNC control command
The DP master uses the SYNC control command to cause a group of DP slaves to freeze the states of their outputs to the current value. The DP slaves save the output data of the DP master for the following frames. But the states of the DP slave outputs remain unchanged. Only after each new SYNC control command does the DP slave set its outputs to the values that it has saved as the output data of the DP master. The outputs are not updated cyclically again until the DP master has sent a UNSYNC control command.

PROFIBUS with STEP 7 V13

76

Function Manual, 12/2014, A5E03775446-AC

Functions 5.4 Interrupts
FREEZE control command
After receiving the FREEZE control command from the DP master, the DP slaves of a group freeze the current status of their inputs. The DP slaves send these frozen input data to the DP master with the following cyclical frames. The DP slaves freeze the current state of their inputs again after each new FREEZE control command. The state of the DP slave inputs is only send to the DP master cyclically again when the DP master sends the UNFREEZE control command.

5.4

Interrupts

Interrupts and interrupt OBs for DPV1
Interrupts can be set by a DPV1 slave which ensure handling of the interrupt-triggering event in the master CPU. The interrupt data is evaluated in the CPU and the diagnostics buffer and the module state are updated even in the "STOP" operating mode. The OB is not processed in STOP.
The following DPV1 interrupts are supported:
 Status interrupt
 Update interrupt
 Vendor-specific interrupt
Detailed information is available in the descriptions on the OBs. You can use the corresponding OBs that are provided by the operating system of the S7 CPUs for diagnostic interrupts, hardware interrupts, and pull/plug interrupts.

OB 55 interrupt - Status interrupt
The status interrupt can be triggered when the operating mode of a device or module changes, for example, from RUN to STOP.

OB 56 interrupt - Update interrupt
An update interrupt can be triggered if the parameters of a slot were changed. This may be caused by local access or partner access to the parameters.

OB 57 interrupt - Vendor-specific interrupt
The event that triggers the vendor-specific interrupt can be specified by the manufacturer of a DPV1 slave.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

77

Functions 5.5 Intelligent DP slaves (I-slaves)
Additional information
A detailed description of the events at which interrupts are triggered is available in the documentation of the respective manufacturer of the DPV1 slave.

5.5

Intelligent DP slaves (I-slaves)

5.5.1

I-slave functionality

I-slave functionality
The "I-slave" (intelligent DP slave) functionality of a CPU supports the exchange of data with a DP master and thus allows the CPU to be used, for example, as intelligent preprocessing unit of subprocesses. The I-slave is connected in its role as DP slave to a "higher-level" DP master.
The preprocessing is handled by the user program in the I-slave. The process values acquired by the I/O modules are preprocessed by the user program and made available to the DP master.

Figure 5-12 I-slave functionality
"I-slave" naming convention
In the remainder of this description, a CPU or a CP with I-slave functionality is simply called an "I-slave".

PROFIBUS with STEP 7 V13

78

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)
Advantages of configurations with I-slaves
The I-slave offers the following advantages:
 Simple coupling of CPUs with PROFIBUS interface
 Real-time communication between CPUs and PROFIBUS interface
 Distributed processing
A complex automation task can be divided into smaller units/subprocesses. This results in manageable processes which lead to simplified subtasks.
 Relieving the DP master by distributing the computing capacity to I-devices
 Lower communication load by processing process data locally
 Separating subprocesses
Complicated, widely distributed and extensive processes can be subdivided into several subprocesses with manageable interfaces by using I-slaves. These subprocesses can be stored in individual STEP 7 projects if necessary, which can later be merged to form one master project.
 Separating STEP 7 projects
Creators and users of an I-device can have completely separated STEP 7 projects. The GSD file together with the configuration of the transfer areas of the I-slave form the interface between the STEP 7 projects. This allows coupling to standard DP masters via a standardized interface.
 Know-how protection
Plant units can now only be delivered with a GSD file and the configuration of the transfer areas instead of with a STEP 7 project for the I-slave interface description. This means that you no longer have to disclose the user program know-how.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

79

Functions 5.5 Intelligent DP slaves (I-slaves) Difference: DP slave - I-slave
In the case of a DP slave, the DP master accesses the distributed inputs/outputs directly. In the case of an I-slave, the DP master accesses a transfer area in the I/O address space of the preprocessing CPU instead of accessing the connected inputs/outputs of the I-slave. The user program running on the preprocessing CPU is responsible for ensuring data exchange between the operand area and inputs/outputs.
Figure 5-13 Data access to an I-slave
Note DP master or DP slave Note: The communication modules of the S7-1500 CPUs/ET 200SP CPUs, for example the CP 1542-5, support the operation as DP master or DP slave only as alternative. Note The I/O areas configured for data exchange between the DP master and DP slaves must not be used by I/O modules.

PROFIBUS with STEP 7 V13

80

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)

5.5.2

Data exchange with higher-level DP master

Introduction

The following section describes the data exchange between the I-slave and the higher-level DP master.

Transfer areas

Transfer areas are an interface to the user program of the I-slave CPU. Inputs are processed in the user program and outputs are the result of the processing in the user program.
The data for communication between DP master and I-slave is made available in the transfer areas. A transfer area contains an information unit that is exchanged consistently, in terms of bytes, words or overall, between DP master and I-slave. You can find more information on configuration and use of transfer areas in the section Configuring transfer areas (Page 84).
The following figure shows the data exchange between the I-slave and the higher-level DP master. The individual communication relations are explained below based on the numbers.

Figure 5-14 Data exchange with the DP master

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

81

Functions 5.5 Intelligent DP slaves (I-slaves)
 Data exchange between higher-level DP master and normal DP slave
In this way, the DP master and the DP slave exchange data through PROFIBUS.
 Data exchange between higher-level DP master and I-slave
In this way, the DP master and the slave exchange data through PROFIBUS. The data exchange between a higher-level DP master and an I-slave is based on the conventional DP master/DP slave relationship. For the higher-level DP master, the transfer areas of the I-slave represent submodules of a DP slave. The output data of the DP master is the input data of the I-slave. Analogously, the input data of the DP master is the output data of the I-slave.
 Transfer relationship between the user program and the transfer area
In this way, the user program and the transfer area exchange input and output data.
 Data exchange between the user program and the I/O of the I-slave
In this way, the user program and the centralized I/O of the I-slave exchange input and output data.

5.5.3

Configuring an I-slave

Requirements for configuring an I-slave
The I-slave consists of:
 A CPU from S7-1500 and a communications module CM 1542-5/CP 1542-5 (STEP 7 as of V12)
 A CPU from ET 200SP and a communications module CM DP (STEP 7 as of V13 SP1)

PROFIBUS with STEP 7 V13

82

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)
Procedure for configuring an I-slave
This section shows how to configure an I-slave in STEP 7 based on the example of a CPU 1512SP-1 PN. The procedure for the CPUs from S7-1500 with CM 1542-5/CP 1542-5 and for the CPU 1510SP-1 PN with CM DP is the same. To configure an I-slave, follow these steps: 1. Drag a CPU 1512SP-1 PN from the hardware catalog to the network view. 2. Open the device view of the CPU. 3. Double-click on the CM DP communications module in the hardware catalog.
STEP 7 creates the CM DP in the device view. 4. Select the PROFIBUS interface of the CM DP communications module. 5. In the Inspector window in the area navigation, select the "Operating mode" entry and
enable the "DP slave" check box. 6. Now you can select the DP master in the "Assigned DP Master" drop-down list.
Once you have selected the DP master, the networking and the DP master system between both devices are displayed in the network view.

Figure 5-15 Configuring an I-slave
Note Operation using a GSD file If you operate an I-slave using a GSD file, you should not select the "Test, commissioning and routing" check box. Create a DP subnet on the PROFIBUS interface of the I-slave.

Result

You have configured an I-slave.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

83

Functions 5.5 Intelligent DP slaves (I-slaves)

5.5.4

Configuring transfer areas

Requirements for configuring transfer areas
 You have configured an I-slave in STEP 7.
 You are in the device view of the I-device and have selected the PROFIBUS interface of the communications module.

Procedure for configuring transfer areas
To configure transfer areas for an I-slave in STEP 7, follow these steps:
1. In the area navigation, go to the section "Operating mode" > "I-slave communication" > "Transfer areas".
2. Create transfer areas. Set the properties of the created transfer areas.

 Click in the first cell of the "Transfer area" column. STEP 7 assigns a default name that you
can change.
 Select the type of communication relation: Currently, you can only select MS for
"master-slave communication relation".
 STEP 7 assigns the addresses for the transfer area automatically. Correct the addresses if
necessary.
 Set the length of the transfer area. Specify the length of the transfer area in the cell in the
following format: [1...64] Byte/Word. Examples: "32 Byte", "64 Word"
 Specify whether the transfer area is exchanged in units of bytes or words or consistently
over the entire length between the DP master and I-slave.
Figure 5-16 Configuring transfer areas
A separate entry is created in the area navigation for each transfer area. If you select one of these entries, you can adjust the details of the transfer area, or correct them and comment on them.

PROFIBUS with STEP 7 V13

84

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)

5.5.5

Sample program

Introduction

This simple sample program shows how you use the transfer areas of an I-slave.

Requirement

You have configured an I-slave.

Task

The result of an "AND logic operation" of two inputs (preprocessing) in the I-slave is to be provided to the higher-level DP master. This result is to be assigned to a local output in the DP master (further processing). Use a transfer area with the following addresses for this purpose:
 Address in the I-slave: Q568
 Address in the DP master: I68

Required steps
The following steps are necessary to solve the task: 1. Configuring the transfer area 2. Programming the I-slave 3. Programming the DP master

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

85

Functions 5.5 Intelligent DP slaves (I-slaves) Configuring the transfer area
Configure a transfer area with the following properties in the I-slave:
Figure 5-17 Transfer area, I-slave sample program

PROFIBUS with STEP 7 V13

86

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)

Programming the I-slave
To program the sample program for the I-slave, follow these steps:
1. Using the SCL programming language, create a new function with the name "preprocessing" in the project tree under "Program blocks" > "Add new block". Open the function.
2. In the interface of the function "preprocessing", create the following tags:

Name input 1 input 2 result

Data type bool bool bool

Input/output type Input Input Output

3. In the instruction window of the function "preprocessing", write the following program code: #result:=#input 1&#input 2;

4. Call the function "preprocessing" in a cycle OB, for example, in OB1.

5. Wire the function "preprocessing" in the cycle OB as follows:

Figure 5-18 I-slave sample program

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

87

Functions 5.5 Intelligent DP slaves (I-slaves)

Programming the DP master
To program the sample program for the DP master, follow these steps:
1. Using the SCL programming language, create a new function with the name "further processing" in the project tree under "Program blocks" > "Add new block". Open the function.
2. In the interface of the function "further processing", create the following tags:

Name result output

Data type bool bool

Input/output type Input Output

3. In the instruction window of the function "further processing", write the following program code: #output:=#result;

4. Call the function "further processing" in a cycle OB, for example, in OB1.

5. Wire the function "further processing" in the cycle OB as follows:

Result

Figure 5-19 DP master sample program You mastered the task successfully.

PROFIBUS with STEP 7 V13

88

Function Manual, 12/2014, A5E03775446-AC

Functions 5.5 Intelligent DP slaves (I-slaves)

5.5.6

Diagnostics and interrupt behavior

Diagnostics and interrupt behavior
S7 CPUs have numerous diagnostics and interrupt functions that can, for example, report errors/faults or failures of underlying DP systems. These diagnostics alarms reduce downtimes and simplify localization and elimination of problems.

Diagnostics options in the higher-level DP master and in the I-slave
The following diagnostics mechanisms are available to the higher-level DP master and the I-slave:
 OB 82 (diagnostic interrupt)
When the I-slave changes mode, the DP master calls OB 82 (diagnostic interrupt).
When the DP master changes mode, the I-slave calls OB 82 (diagnostic interrupt).
 OB 86 (rack failure)
If the bus connection to the I-slave is interrupted, the DP master calls OB 86 (rack failure).
If the bus connection to the DP master is interrupted, the I-slave calls OB 86 (rack failure).
 OB 122 (I/O access error)
If you have not set the attribute "Handle errors within block" for OB 122, the following applies:
­ If the bus connection to the I-slave is interrupted, the DP master calls OB 122 (I/O access error) if there is direct access to the relevant transfer areas.
­ If the bus connection to the DP master is interrupted, the I-slave calls OB 122 (I/O access error) if there is direct access to the relevant transfer areas.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

89

Functions 5.5 Intelligent DP slaves (I-slaves)

Reaction of the transfer areas to mode changes

Table 5- 3 Reaction of the transfer areas to mode changes

DP master I-slave RUNSTOP RUN

Reaction of DP master input transfer areas No updating of the process image

STOPRUN RUN

RUN RUNSTOP

The input transfer areas are updated by the cyclic user program via the process image.
The I-slave sets the input transfer areas on the DP master to "0".

Reaction of I-slave input transfer areas
The input transfer areas retain their current values. (no access error)
The input transfer areas are updated via the process image.
No updating of the process image

RUN

STOPRUN

The I-slave sets the input transfer areas on the DP master to "0".
After the startup program of the I-slave, the input transfer areas of the DP master are updated via the process image.

Prior to processing of the startup program, the input transfer areas are updated via the process image.

PROFIBUS with STEP 7 V13

90

Function Manual, 12/2014, A5E03775446-AC

Service & Support

A

The unmatched complete service for the entire life cycle
For machine constructors, solution providers and plant operators: The service offering from Siemens Industry Automation and Drive Technologies includes comprehensive services for a wide range of different users in all sectors of the manufacturing and process industry.
To accompany our products and systems, we offer integrated and structured services that provide valuable support in every phase of the life cycle of your machine or plant ­ from planning and implementation through commissioning as far as maintenance and modernization.
Our Service & Support accompanies you worldwide in all matters concerning automation and drive technology from Siemens. We provide direct on-site support in more than 100 countries through all phases of the life cycle of your machines and plants.
You have an experienced team of specialists at your side to provide active support and bundled know-how. Regular training courses and intensive contact among our employees ­ even across continents ­ ensure reliable service in the most diverse areas.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

91

Service & Support

Online Support

The comprehensive online information platform supports you in all aspects of our Service & Support at any time and from any location in the world.
You can find Online Support on the Internet at the following address: Internet (http://www.siemens.com/automation/service&support).

Technical Consulting
Support in planning and designing your project: From detailed actual-state analysis, definition of the goal and consultation on product and system questions right through to the creation of the automation solution.

Technical Support
Expert advice on technical questions with a wide range of demand-optimized services for all our products and systems.
You can find Technical Support on the Internet at the following address: Internet (http://www.siemens.com/automation/support-request).

Training

Extend your competitive edge ­ through practical know-how directly from the manufacturer.
You can find the training courses we offer on the Internet at the following address: Internet (http://www.siemens.com/sitrain).

Engineering Support
Support during project engineering and development with services fine-tuned to your requirements, from configuration through to implementation of an automation project.

Field Service

Our Field Service offers you services for commissioning and maintenance ­ to ensure that your machines and plants are always available.

Spare parts

In every sector worldwide, plants and systems are required to operate with constantly increasing reliability. We will provide you with the support you need to prevent a standstill from occurring in the first place: with a worldwide network and optimum logistics chains.

Repairs

Downtimes cause problems in the plant as well as unnecessary costs. We can help you to reduce both to a minimum ­ with our worldwide repair facilities.

PROFIBUS with STEP 7 V13

92

Function Manual, 12/2014, A5E03775446-AC

Service & Support

Optimization

During the service life of machines and plants, there is often a great potential for increasing productivity or reducing costs.
To help you achieve this potential, we are offering a complete range of optimization services.

Modernization

You can also rely on our support when it comes to modernization ­ with comprehensive services from the planning phase all the way to commissioning.

Service programs
Our service programs are selected service packages for an automation and drives system or product group. The individual services are coordinated with each other to ensure smooth coverage of the entire life cycle and support optimum use of your products and systems. The services of a Service Program can be flexibly adapted at any time and used separately. Examples of service programs:  Service contracts  Plant IT Security Services  Life Cycle Services for Drive Engineering  SIMATIC PCS 7 Life Cycle Services  SINUMERIK Manufacturing Excellence  SIMATIC Remote Support Services

Advantages at a glance:  Reduced downtimes for increased productivity  Optimized maintenance costs due to a tailored scope of services  Costs that can be calculated and therefore planned  Service reliability due to guaranteed response times and spare part delivery times  Customer service personnel will be supported and relieved of additional tasks  Complete service from one source: fewer interfaces and more know-how

Contact

At your service locally, around the globe: your partner for consultation, sales, training, service, support, spare parts... for the entire range of products supplied by Industry Automation and Drive Technologies.
You can find your personal contact in our contacts database at: Internet (http://www.siemens.com/automation/partner).

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

93

Glossary

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains of the process engineering industry and manufacturing technology. The automation system consists of different components and integrated system functions according to the automation task.

Bus
A common transfer route to which all nodes are connected; it has two defined ends. In the case of PROFIBUS, the bus is a two-wire line or a fiber-optic cable.

Bus connector
Physical connection between the node and bus cable.

Bus system

All stations physically connected to a bus cable form a bus system.

Device

In the PROFIBUS environment, "device" is the generic term for:  Automation systems (for example, PLC, PC)  Distributed I/O systems  Field devices (for example, hydraulic devices, pneumatic devices)  Active network components  Gateways to AS interface or other fieldbus systems Device that can send, receive or amplify data via the bus, for example, a DP slave by means of PROFIBUS DP.

PROFIBUS with STEP 7 V13

94

Function Manual, 12/2014, A5E03775446-AC

Glossary

Device

In the PROFIBUS environment, "device" is the generic term for:  Automation systems (for example, PLC, PC)  Distributed I/O systems  Field devices (for example, hydraulic devices, pneumatic devices)  Active network components  Gateways to AS interface or other fieldbus systems Device that can send, receive or amplify data via the bus, for example, a DP slave by means of PROFIBUS DP.

Diagnostics

Monitoring functions for the recognition, localization, classification, display and further evaluation of errors, faults and alarms. They run automatically during plant operation. This increases the availability of systems/plants by reducing commissioning times and downtimes.

DP master

CPU or device that conducts the communication with the DP slaves according to a defined algorithm. To do this, the DP master uses the functions for communication with the DP slaves which are defined by PROFIBUS DP. It acts according to standard EN 50170, Part 3.
 Master

DP slave

Slave in the distributed I/O that is operated on the PROFIBUS with PROFIBUS DP protocol and acts according to standard EN 50170, Part 3. The DP slave is addressed by the DP master and provides it with specified functions (I/O data, diagnostics, etc.).
 Slave

DPV1

The designation DPV1 refers to the functional extension of acyclic services (to include new interrupts, for example) provided by the DP protocol. The DPV1 functionality is integrated in IEC 61158/EN 50170, Volume 2, PROFIBUS.

FDL

Fieldbus Data Link (bus access protocol). Step 2 with PROFIBUS.

HMI device

Human Machine Interface, device for visualization and control of automation processes.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

95

Glossary

HSA

Highest Station Address. A bus parameter for PROFIBUS. Outputs the highest PROFIBUS address of an active device. PROFIBUS addresses greater than HSA are permitted for passive devices, up to 126.

Industrial Ethernet
Guideline for setting up Ethernet in an industrial environment. The main difference to the standard Ethernet is the mechanical current carrying capacity and interference immunity of the individual components.

I-slave

The "I-slave" functionality of a CPU supports the exchange of data with a DP master and can thus be used, for example, as intelligent preprocessing unit of partial processes. The I-slave is connected in its role as DP slave to a "higher-level" DP master.

Master

A master device that is in possession of the token can send data to other devices and request data from them (= active device).

PCF

Polymer Cladded Fiber (plastic-covered glass fiber)

POF

Polymer Optical Fiber (plastic fiber-optic cable made of light-conducting plastics)

Process image

Address area in the system memory of the DP master. At the start of the cyclic program the signal states of the input modules are transmitted to the process image of the inputs. And the end of cyclic program execution, the process image of the outputs is transmitted to the DP slave as signal state.

PROFIBUS

PROcess FIeld BUS, in IEC 61158-2 as "Type 3" standardized, bit-serial fieldbus system. The standard specifies functional, electrical and mechanical properties.
PROFIBUS is a bus system that networks automation systems and field devices compatible with PROFIBUS at the cell and field level. PROFIBUS is available with the protocols DP (= distributed I/O), FMS (= fieldbus message specification) or PA (process automation).

PROFIBUS with STEP 7 V13

96

Function Manual, 12/2014, A5E03775446-AC

Glossary

PROFIBUS address
Unique identification of a device connected to PROFIBUS. The PROFIBUS address is transmitted in the frame for addressing a device. A PC or programming device has the PROFIBUS address "0". DP masters and DP slaves have a PROFIBUS address in the range from 1 to 125.

PROFIBUS device
A PROFIBUS device has at least one PROFIBUS interface with an electrical (RS 485) or optical (Polymer Optical Fiber, POF) interface.

PROFIBUS DP
A PROFIBUS with DP protocol that complies with EN 50170. DP stands for distributed I/O (fast, real-time capable, cyclic data exchange). From the perspective of the user program, the distributed I/Os are addressed in exactly the same way as the centralized I/Os.

PROFINET

Open component-based industrial communication system based on Ethernet for distributed automation systems. Communication technology promoted by the PROFIBUS Users Organization.

RS 485

Asynchronous data transmission process for PROFIBUS DP to ANSI TIA/EIA-RS485-A.

RS 485 repeater
Equipment for amplifying bus signals and for coupling segments over long distances.

Segment

The bus line between two terminating resistors forms a bus segment.
A bus segment can contain up to 32 bus nodes. Segments can be coupled, for example, by means of RS 485 repeaters or diagnostics repeaters.

Slave

Distributed device in a fieldbus system that may exchange data with a master after being requested to do so by the master. Slaves are all DP slaves, for example, such asET 200SP, ET 200MP, ET 200AL.

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

97

Glossary

Standard mounting rail
Standardized metal profile to EN 50022.
The standard mounting rail is used for quick snap-on installation of network components, such as OLM, repeaters, etc.

Subnet

Part of a network whose parameters must be synchronized with the devices (e.g., with PROFIBUS). A subnet includes the bus components and all connected stations.

SynchronousCycle
Name for synchronous cycle interrupt OB in STEP 7.

Target-Rotation-Time (Ttr)
Bus parameter for PROFIBUS. The token is the send permission for a device on PROFIBUS. A device compares a token rotation time it has measured with the TargetRotation-Time and controls the sending of frames with high priority or low priority based on this comparison.

Terminating resistor
Component that terminates the ends of a data transmission line to prevent reflections in the transmission medium.

Terminator

Terminating resistor of bus segments with transmission rates of 9.6 kbps to 12 Mbps. The power supply is separate from the bus nodes.

TIA Portal

Totally Integrated Automation Portal

Topology

Structure of a network. Common structures are line topology, ring topology, star topology and tree topology.

Transmission rate
Specifies the number of bits transmitted per second.

Watchdog
98

Mechanism for monitoring the readiness for operation.
PROFIBUS with STEP 7 V13 Function Manual, 12/2014, A5E03775446-AC

Index

A
Acyclic data exchange, 74 Address assignment, 45 Addressing, 42
B
Bus connector IP20, 22 M12 with IP65, 24
Bus parameters Adapting, 50 Description, 52 Value ranges, 54
Bus profile, user-defined, 54 Bus terminal
M12, 24 RS 485, 24
C
Cable configuration, 49 Cables, 19 Calculate bus times, 51 CANopen module, 30 Communication
I/O communication, 14 Communication load, 51 Components, (See network components) Configuration, 42 Configuring isochronous mode, 68
Basic procedure, 67 DP slave, 68 Requirements, 66 Updating the process image partition, 69 Connecting PROFIBUS DP with PROFINET IO, 41 Constant bus cycle time, 55
D
Data exchange between IO systems, 81 Diagnostic repeater
Cascade depth, 37

Diagnostics, 60 Topology, 37 Diagnostics, 57 Display alarms, 58 I-slave, 89 Isochronous mode, errors and remedies, 70 Diagnostics repeater Description, 29 Display, diagnostic messages, 58 DP master Operated as, 80 DP slave, 43 Operated as, 80 DP/AS-i F-Link, 31 DP/AS-i LINK Advanced, 31 DP/AS-Interface Link 20E, 31 DP/DP coupler, 30 DP/PA bus link, 31
E
Example of isochronous mode, 64
F
FastConnect system, 20 Fiber-optic, 27 Fiber-optic cables, 25
Glass, 27 Optical ring, 49 PCF, 26 Plastic, 26
G
GAP factor, 54
H
Hardware Configuring, 42 Parameter assignment, 42

PROFIBUS with STEP 7 V13

Function Manual, 12/2014, A5E03775446-AC

99

Index

I
I/O addresses, 69 I/O communication, 14 Identification and maintenance data (I&M data), 61 IE/PB Link PN, 30 Increasing DP cycle time, 56 Installation, 17
Active network components, 29 Bus connection, 22 Cables, 19 FastConnect, 20 Topology, 35 Interrupt OBs, 77 Interrupts DPV1, 77 Isochronous mode, 70 IO system Data exchange, 81 I-slave (intelligent DP slave) Diagnostics, 89 Interrupt behavior, 89 Isochronous mode Change parameters, 71 Description, 62 Diagnostics, 70 Dialog box for isochronous mode, 71 Example, 64 Interrupts, 70 Sequence, in principle, 65 IWLAN/PB Link PN IO, 30, 40
M
M12 Bus connector, 24 Bus terminating resistor, 24
M12 bus terminating resistor, 24 Maximum cable lengths
Maximum cable lengths, 20
N
Network, 18 electrical, conducted, 29 Optical, 33 optical, electrical, 18 Selection criteria, 18 Topology, 35
Network components Bus connections, 20 CANopen module, 30
100

Diagnostics repeater, 29 DP/AS-i F-Link, 31 DP/AS-i LINK Advanced, 31 DP/AS-Interface Link 20E, 31 DP/DP coupler, 30 Fiber-optic cables, 25 IE/PB Link PN, 30 IWLAN/PB Link PN IO, 30 OBT, Optical Bus Terminal, 33 OLM, Optical Link Module, 33 PROFIBUS terminator, 30 RS 485 cables, 19 RS485, 29 Network settings, 46
O
Optical Bus Terminal, OBT, 33 Optical Link Module, OLM
Description, 33 Topology, 40 Optical ring, 49, 50
P
Parameter assignment, 42 Process image partition, 69 PROFIBUS
Address, 45 Devices, 12 Installation, 17 PROFIBUS DP, 11 Protocols, 10 RS 485 cables, 19 PROFIBUS address, 45 Change, 45 HSA, 46 PROFIBUS DP Applications, 11 Assigning the DP slave, 43 Connecting with PROFINET, 41 Definition, 10 Devices and designations, 13 Interface, 16 PROFIBUS DP interface Properties, 16 Representation in STEP 7, 16 PROFIBUS terminator, 30 Profiles for network settings DP, Standard, 46 User-defined, 48
PROFIBUS with STEP 7 V13
Function Manual, 12/2014, A5E03775446-AC

PROFINET Proxy functionality, 41 Programming isochronous mode, 70
R
Retry limit, 50, 54 RS 485 cables, 20 RS485 repeater
Description, 29 Topology, 35
S
Slot time, 50, 54 SYNC/FREEZE, 75 Synchronization, sequence, 65 Synchronous cycle interrupt, 69 Synchronous cycle interrupt OB, SynchronousCycle, 70 SynchronousCycle, synchronous cycle interrupt OB, 70
T
Target Rotation Time, 54 Topology
Connecting PROFIBUS DP with PROFINET, 41 OLM, 40 RS485 repeater, 35 WLAN, 40

Index

PROFIBUS with STEP 7 V13 Function Manual, 12/2014, A5E03775446-AC

101

SIMATIC
S7-1500 / ET 200MP / ET 200SP CM PtP - Configurations for pointto-point connections
Function Manual

_Pr_ef_ac_e_______________

_G_uid_e_to_d_o_cu_m_en_ta_tio_n______1_

_In_tro_d_uc_tio_n____________2_

_Bcoa_ms_imcs_uon_fic_saet_iroia_nl __________3_

_Caso_sni_gfign_um_rein_ngt_/ p_a_ra_m_et_er______4_

_ _ _ _ _ _ _ _ _ _ _ Programming -

communication using

5

instructions

_St_ar_tu_p _an_d_D_ia_gn_os_ti_cs______6_

_Se_rv_ic_e_&_S_up_p_or_t ________A_

12/2017
A5E37509394-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E37509394-AC  01/2018 Subject to change

Copyright © Siemens AG 2017. All rights reserved

Preface

Purpose of the documentation
This documentation provides important information on configuring and commissioning the point-to-point communication modules for the S7-1500 (ET 200MP) and ET 200SP.

Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Proficiency with STEP 7

Validity of the documentation
This documentation is valid for all point-to-point communication modules of the S7-1500 (ET 200MP) and the ET 200SP when used with STEP 7 (TIA Portal) V12 and higher.

Conventions

The term "CPU" is used in this manual both for the CPUs of the S7-1500 as well as for interface modules of distributed I/O systems, such as the IM 155-5. Please also observe notes labeled as follows:
Note The notes contain important information on the product described in the documentation, on the handling of the product or on part of the documentation to which particular attention should be paid.

Recycling and disposal
The products can be recycled due to their low pollutant content. For environmentally compliant recycling and disposal of your old device, please contact a company certified for the disposal of electronic waste.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

3

Preface
Additional assistance
 Information on the offers of our Technical Support are available in the appendix Service & Support (Page 206).
 The range of technical documentation for the individual SIMATIC products and systems can be found on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the ordering system are available on the Internet (http://mall.automation.siemens.com).

CM PtP - Configurations for point-to-point connections

4

Function Manual, 12/2017, A5E37509394-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Guide to documentation .......................................................................................................................... 8

2 Introduction ........................................................................................................................................... 13

2.1

Overview of the communication modules ...............................................................................13

2.2

Overview of the processing steps...........................................................................................16

2.3

Overview of instructions..........................................................................................................17

3 Basics of serial communication ............................................................................................................. 19

3.1

Serial data transmission..........................................................................................................19

3.2

Transmission security .............................................................................................................20

3.3

RS232 mode ...........................................................................................................................23

3.4

RS422 mode ...........................................................................................................................26

3.5

RS485 mode ...........................................................................................................................29

3.6

Handshake procedure.............................................................................................................32

4 Configuring / parameter assignment...................................................................................................... 37

4.1

Configuring / parameter assignment of a communication module .........................................37

4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6

Communication using Freeport...............................................................................................38 Procedure for establishing a serial connection with Freeport.................................................38 Data transmission with Freeport .............................................................................................39 Sending data with Freeport.....................................................................................................40 Receiving data with Freeport ..................................................................................................41 Code transparency..................................................................................................................45 Receive buffer.........................................................................................................................46

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6

Communication using 3964(R) ...............................................................................................47 Procedure for establishing a serial connection with 3964(R) .................................................47 Data transmission with 3964(R) procedure ............................................................................48 Control characters...................................................................................................................48 Block check character.............................................................................................................49 Sending data with 3964(R) .....................................................................................................49 Receiving data with 3964(R)...................................................................................................51

4.4 4.4.1 4.4.2 4.4.3

Communication through Modbus RTU ...................................................................................52 Procedure for establishing a serial connection with Modbus RTU .........................................52 Overview of modbus communication......................................................................................53 Function Codes.......................................................................................................................57

4.5 4.5.1 4.5.2 4.5.3

Communication using USS .....................................................................................................59 Procedure for establishing a serial connection with Modbus USS .........................................59 Overview of USS communication ...........................................................................................60 Overview of functions..............................................................................................................62

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

5

Table of contents

5 Programming - communication using instructions.................................................................................. 63

5.1

Overview of point-to-point programming................................................................................ 63

5.2

Overview of Modbus programming ........................................................................................ 66

5.3

Overview of USS programming ............................................................................................. 68

5.4 5.4.1 5.4.1.1 5.4.1.2 5.4.1.3 5.4.1.4 5.4.1.5 5.4.1.6 5.4.1.7 5.4.1.8 5.4.1.9 5.4.1.10 5.4.1.11 5.4.1.12 5.4.1.13 5.4.1.14 5.4.1.15 5.4.1.16 5.4.2 5.4.2.1 5.4.2.2 5.4.2.3 5.4.2.4 5.4.2.5 5.4.2.6 5.4.3 5.4.3.1 5.4.3.2 5.4.3.3 5.4.3.4
5.4.3.5 5.4.3.6 5.4.3.7 5.4.3.8

Instructions ............................................................................................................................. 70 Point-to-point.......................................................................................................................... 70 Overview of Freeport communication .................................................................................... 70 Using the instructions............................................................................................................. 72 General parameters for Freeport operations ......................................................................... 73 Port_Config: Configure PtP communication port ................................................................... 75 Send_Config: Configure PtP sender ...................................................................................... 78 Receive_Config: Configure PtP recipient............................................................................... 80 P3964_Config: Configuring the 3964(R) protocol .................................................................. 85 Send_P2P: Sending data ....................................................................................................... 87 Using the BUFFER and LENGTH parameters for communication operations ...................... 90 Receive_P2P: Receiving data................................................................................................ 91 Receive_Reset: Clear receive buffer ..................................................................................... 93 Signal_Get: Read status ........................................................................................................ 94 Signal_Set: Set accompanying signals .................................................................................. 96 Get_Features: Get extended functions .................................................................................. 98 Set_Features: Set extended functions ................................................................................. 100 Error messages.................................................................................................................... 102 MODBUS (RTU)................................................................................................................... 118 Overview of the Modbus RTU communication .................................................................... 118 Modbus_Comm_Load: Configure communication module for Modbus ............................... 120 Modbus_Master: Communicate as Modbus master ............................................................ 125 Modbus_Slave...................................................................................................................... 133 Frame structure.................................................................................................................... 142 Error messages.................................................................................................................... 151 USS ...................................................................................................................................... 167 Overview of USS communication ........................................................................................ 167 Requirements for using the USS protocol ........................................................................... 169 USS_Port_Scan / USS_Port_Scan_31: Communication by means of a USS network ....... 172 USS_Drive_Control / USS_Drive_Control_31: Preparing and displaying data for the drive ..................................................................................................................................... 176 USS_Read_Param / USS_Read_Param_31: Read data from drive.................................... 180 USS_Write_Param / USS_Write_Param_31: Change data in drive..................................... 182 General information on drive setup...................................................................................... 184 Error messages.................................................................................................................... 188

6 Startup and Diagnostics .......................................................................................................................204

6.1

Startup characteristics ......................................................................................................... 204

6.2

Diagnostic functions ............................................................................................................. 204

6.3

Diagnostic interrupts ............................................................................................................ 205

CM PtP - Configurations for point-to-point connections

6

Function Manual, 12/2017, A5E37509394-AC

Table of contents

A Service & Support ............................................................................................................................... 206

A.1

Service & Support .................................................................................................................206

Glossary ............................................................................................................................................. 209

Index................................................................................................................................................... 213

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

7

Guide to documentation

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

CM PtP - Configurations for point-to-point connections

8

Function Manual, 12/2017, A5E37509394-AC

Guide to documentation

General information
The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and additions to the manuals are documented in product information sheets.
You will find the product information on the Internet:
 S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)
 ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)
 ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

9

Guide to documentation
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

CM PtP - Configurations for point-to-point connections

10

Function Manual, 12/2017, A5E37509394-AC

Guide to documentation

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on different SIMATIC S7 stations as a bulk operation, independently of the TIA Portal.
The SIMATIC automation tool provides a variety of functions:
 Scanning of a PROFINET/Ethernet plant network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 CPU localization by means of LED flashing
 Reading out CPU error information
 Reading of CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

11

Guide to documentation

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

CM PtP - Configurations for point-to-point connections

12

Function Manual, 12/2017, A5E37509394-AC

Introduction

2

2.1

Overview of the communication modules

Automation systems encompass a wide range of components. These also include communication modules. A simple possibility of data exchange is provided by serial communication via point-to-point connections.

Customizing to a wide range of communication partners is possible by setting the communication parameters at a lower layer of the OSI layer model (see section Transmission security (Page 20)).

Communication through point-to-point connection with S7-1500, ET 200MP and ET 200SP takes place exclusively by means of communication modules (CM) with serial interfaces.

SIMATIC S7 offers a number of modules that provide the physical interface and fundamental protocol mechanisms for this purpose.

 RS232: An interface that can coordinate the communication between the partners through additional accompanying signals.

 RS422/RS485: An interface that allows longer lines through the use of differential voltages as transmission technology and also enables structures with more than 2 devices through a bus structure (RS485).

Instructions that carry out the coordination between the CPU and CM (Communication Module) are available to transfer data from the CPU to the respective modules. They inform the user program about a successful transfer or the receipt of new data (in systems without a SIMATIC CPU users have to program the function of these instructions themselves).

The function and use of the PtP communication modules is described in this function manual.

Overview of components and order numbers
Tabular overview of communication modules and their application suitability

Communication module CM PtP RS232 BA 1) CM PtP RS422/485 BA CM PtP RS232 HF 2) CM PtP RS422/485 HF CM PtP (ET 200SP)
1) BA = Basic 2) HF = High Feature

S7-1500 X X X X -

ET 200MP X X X X -

ET 200SP X

Article number 6ES7540-1AD00-0AA0 6ES7540-1AB00-0AA0 6ES7541-1AD00-0AB0 6ES7541-1AB00-0AB0 6ES7137-6AA00-0BA0

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

13

Introduction 2.1 Overview of the communication modules

Overview of components and interfaces
Tabular overview of communication modules and their functions.

Communication module Interface

CM PtP RS232 BA CM PtP RS422/485 BA
CM PtP RS232 HF CM PtP RS422/485 HF
CM PtP (ET 200SP)

RS232 RS422 RS485 RS232 RS422 RS485 RS232 RS422 2) RS485

Protocols

Freeport 3964(R)

X

X

X

X

X

-

X

X

X

X

X

-

X

X

X

X

X

-

Modbus Master
X X X X X X

Modbus Slave
X X X X X X

USSMaster
X X X X X X X X X

Connection technology

D-Sub D-Sub 9-pin 15-pin

X

-

-

X

-

X

X

-

-

X

-

X

ET 200SP BaseUnit 1)

1) BaseUnit with terminals instead of D-Sub; assignment depending on physical transmission properties 2) The CM PtP communication module can also be used for multipoint connection in RS422 mode

Overview of components and data transmission rates
The communication modules can send and receive data with different data transmission rates. The table below shows the assignment to the individual communication modules.

Communication module
CM PtP RS232 BA CM PtP RS422/485 BA CM PtP RS232 HF CM PtP RS422/485 HF CM PtP (ET 200SP)

Data transmission rate in bps

300 600 1200 2400 4800

X X

X

X

X

X X

X

X

X

X X

X

X

X

X X

X

X

X

X X

X

X

X

9600 X X X X X

19200 X X X X X

38400 X X X

57600 X X X

76800 X X X

115200 X X X

Overview of components and receive buffer size
Each communication module has a buffer to temporarily store received frames. The table below shows the assignment of the maximum size of an individual frame as well as the size of the memory for the individual communication modules.

Module
CM PtP RS232 BA CM PtP RS422/485 BA CM PtP RS232 HF CM PtP RS422/485 HF CM PtP (ET 200SP)

Receive buffer size KB
2 2 8 8 4

Max. frame length KB
1 1 4 4 2

Bufferable frames
255 255 255 255 255

CM PtP - Configurations for point-to-point connections

14

Function Manual, 12/2017, A5E37509394-AC

Introduction 2.1 Overview of the communication modules
Accompanying signals and data flow control
 Software data flow control with XON/XOFF The Freeport protocol supports data flow control with XON/XOFF via the RS232 and RS422 interfaces.
 Hardware data flow control with RTS/CTS The Freeport protocol supports data flow control with RTS/CTS via the RS232 interface.
 Automatic operation of accompanying signals The RS232 accompanying signals can be controlled with the Freeport, Modbus master and Modbus slave protocols by means of the RS232 interface. (Only available if hardware data flow control is not activated.)
Protocols of the communication modules
You may set up a communication connection with different protocols, depending on the communication modules used:  Freeport: Transmission of ASCII character strings without specified protocol format  3964(R): Communication between programmable logic controllers (master/master
communication)  Modbus RTU: Communication between programmable logic controllers (master/slave
communication) The communication module can be the master as well as the slave.  USS: Communication between a programmable logic controller and a drive (master/slave
communication) Communication is tailored to the drive technology requirements. The communication module can only be master.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

15

Introduction 2.2 Overview of the processing steps

2.2

Overview of the processing steps

Point-to-point connection
The system provides various networking options for the exchange of data between two or more communication partners. The simplest form of data interchange is via a point-to-point connection between two communication partners.
The communication module (CM) forms the interface between a programmable logic controller and a communication partner. Data is sent in serial mode via point-to-point connection with the communication module.

Configuring / parameter assignment
Configuring the communication module includes the arrangement of the communication module in the device configuration of STEP 7 (TIA Portal) as well as the settings of the specific protocol parameters in the properties dialog of the communication module (static configuration).

Programming

Programming includes the program-specific connection of the communication module to the corresponding CPU by means of the user program. You program the communication module with STEP 7 (TIA Portal).
Communication between CPU, communication module and a communication partner takes place through instructions (Page 70). A number of instructions are available for the S7-1500 and S7-1200 automation systems. You can use these instructions to initiate and control communication in the user program as well as influence the configuration for runtime (dynamic configuration).
For more information, please refer to Overview of instructions (Page 17) and the STEP 7 (TIA Portal) online help.

CM PtP - Configurations for point-to-point connections

16

Function Manual, 12/2017, A5E37509394-AC

Introduction 2.3 Overview of instructions

2.3

Overview of instructions

Note
CPU quantity structures
The point-to-point instructions communicate with the communication modules by reading or writing data records. When using the instructions, you should therefore check the configuration limits of the CPU for reading and writing data records. If multiple instructions need to read or write data records simultaneously on a CPU, there may need to be a gap between the calls of each instruction by the user program.

Overview of the instructions
The communication protocols are implemented on the communication module. The protocol is used to adapt the interface of the communication module to the interface of the communication partner.
Communication between the CPU, the communication module and a communication partner takes place by means of special instructions and protocols that support the corresponding communication modules.
The instructions form the software interface between the CPU and the communication module. They must be called cyclically from the user program. Data transmission takes place across several cycles.
The instructions are part of STEP 7 (TIA Portal). The instructions are available in the "Instructions" task card under Communication > Communication processor. They apply to all listed communication modules if they support the required function.

Table 2- 1 Instructions for PtP

Instruction Send_P2P (Page 87)
Receive_P2P (Page 91) Receive_Reset (Page 93) Port_Config (Page 75)
Send_Config (Page 78) Receive_Config (Page 80) P3964_Config (Page 85) Signal_Get (Page 94)

Meaning
The instruction Send_P2P allows you to send data to a communication partner.
The instruction Receive_P2P allows you to receive data from a communication partner.
The instruction Receive_Reset allows you to clear the receive buffer of the communication module.
The instruction Port_Config allows you to dynamically assign basic interface parameters.
The instruction Send_Config (send configuration) allows you to dynamically assign serial send parameters of a port.
The instruction Receive_Config (receive configuration) allows you to dynamically assign serial receive parameters of a port.
The instruction P3964_Config (protocol configuration) allows you to dynamically configure the parameters of the 3964(R) procedure.
The instruction Signal_Get allows you to read the RS232 accompanying signals.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

17

Introduction 2.3 Overview of instructions

Instruction Signal_Set (Page 96)
Get_Features (Page 98) Set_Features (Page 100)

Meaning
The instruction Signal_Set allows you to set the RS232 accompanying signals.
The instruction Get_Features allows you to read the extended functions supported by the communication module.
The instruction Set_Features allows you to activate the extended functions supported by the communication module.

Table 2- 2 Instructions for Modbus

Instruction
Modbus_Master (Page 125)
Modbus_Slave (Page 133)
Modbus_Comm_Load (Page 120)

Meaning
The Modbus_Master instruction allows you to communicate as Modbus master by means of the PtP port.
The Modbus_Slave instruction allows you to communicate as Modbus slave by means of the PtP port.
The Modbus_Comm_Load instruction allows you to configure the port of the communication module for Modbus RTU.

Table 2- 3 Instructions for USS

Instruction
USS_Port_Scan (Page 172)
USS_Drive_Control (Page 176)
USS_Read_Param (Page 180)
USS_Write_Param (Page 182)

Meaning The instruction USS_Port_Scan allows you to communicate by means of the USS network. The instruction USS_Drive_Control allows you to swap data with the drive.
The instruction USS_Read_Param allows you to read parameters from the drive. The instruction USS_Write_Param allows you to change parameters in the drive.

CM PtP - Configurations for point-to-point connections

18

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication

3

3.1

Serial data transmission

During serial data transmission, the individual bits of a character of information to be transmitted are sent successively in a defined sequence.

Bidirectional data traffic - operating mode
In the context of bidirectional data traffic, we distinguish between two operating modes for the communication module:
 Half-duplex operation
The data is exchanged between the communication partners in both directions alternately. In half-duplex operation one communication partner is sending and the other communication partner is receiving at the same time. In the process one line is alternately used for sending or receiving.
 Full-duplex operation
The data is exchanged between one or more communication partners in both directions simultaneously, which means you can send and receive data at the same time. This process requires one line for sending and one line for receiving.

Asynchronous data transmission
Serial data transmission is performed asynchronously with communication modules. The socalled time base synchronism (a fixed timing code used in the transmission of a fixed character string) is only upheld during transmission of a character. Each character to be sent is preceded by a synchronization impulse, also called start bit. The length of the start-bit transmission determines the clock pulse. The end of character transmission is formed by one or two stop bits.

Declarations

In addition to start and stop bits, additional declarations must be made between the sending and receiving partners before serial transmission can take place. These include:  Data transmission rate  Frame start and end criteria (e.g., character delay time)  Parity  Number of data bits (7 or 8 bits/characters)  Number of stop bits (1 or 2)

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

19

Basics of serial communication 3.2 Transmission security

3.2

Transmission security

Transmission security plays an important role in the transmission of data and in the selection of the transmission procedure. Generally speaking, the more layers of the reference model are applied, the higher the transmission security.

Classification of existing protocols
The figure below illustrates how the protocols of the communication module fit into the reference model.

Figure 3-1 Classification of the existing protocols of the communication module in the reference model

CM PtP - Configurations for point-to-point connections

20

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.2 Transmission security
Transmission security with Freeport
Transmission security when using Freeport:
 When data is sent with Freeport, there are no data security measures other than the use of a parity bit. This means data transmission with Freeport is very efficient, but data security is not guaranteed. A certain degree of data security can be achieved through parameter assignment of the frame start and frame end conditions.
 Using the parity bit ensures that the inversion of a bit in a character to be sent can be recognized. If two or more bits of a character are inverted, however, there is no guarantee that these errors are still detected.
 To increase transmission security, you can, for example, implement a checksum, a frame length specification, or configurable end conditions. These measures must be implemented by the user.
 A further increase in data security can be achieved by means of acknowledgment frames in response to send or receive frames. This is the case with high-grade protocols for data communication (ISO 7-layer reference model).
Transmission security with 3964(R)
The parity bit is used to increase data security; depending on the configuration, it completes the number of data bits to be transmitted to form an even or odd number.
Using the parity bit ensures that the inversion of a bit in a character to be sent can be recognized. If two or more bits of a character are inverted, however, these errors can no longer be reliably detected.
If parity is set to "none", no parity bit is transmitted. This setup reduces transmission security.
Two different procedures for data transmission can be used, either with or without a block check character:
 Data transmission without block check character: 3964
Transmission security is achieved by means of a specified frame structure, frame breakdown, and frame repetitions.
 Data transmission with block check character: 3964R
The high degree of transmission security is achieved by means of a specified frame structure and breakdown, frame repetitions, as well as inclusion of a block check character (BCC).
In this manual, the term 3964(R) is used when descriptions and notes refer to both data transmission modes.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

21

Basics of serial communication 3.2 Transmission security
Transmission integrity for Modbus and USS
The parity bit is used to increase transmission security; depending on the configuration, it completes the number of data bits to be transmitted to form an even or odd number.
Using the parity bit ensures that the inversion of a bit in a character to be sent can be recognized. If two or more bits of a character are inverted, however, this error can no longer be clearly detected.
If parity is set to "none", no parity bit is transmitted. This setup reduces transmission security.
The CRC (cyclic redundancy check) is additionally used with Modbus. With this method additional redundancy in the form of a so-called CRC value is added for each data block of the user data before data transmission. This is a check value calculated by using a specific procedure that can be used to detect any errors that may occur during transmission.
A BCC (block check character) is additionally used with USS. The block check character is formed during the receipt and is compared with the received BCC after the entire frame has been read in. If these two characters do not match, the frame is not evaluated. (If a character is incorrectly transmitted, an error is reliably detected. If an even number of characters are incorrectly transmitted, an error can no longer be reliably detected.)

CM PtP - Configurations for point-to-point connections

22

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.3 RS232 mode

3.3

RS232 mode

The following communication modules support RS232 mode:

 CM PtP RS232 BA

 CM PtP RS232 HF

 CM PtP (ET 200SP)

In RS232 mode, data is sent via two lines. A separate line is available for the send direction and the receive direction. Simultaneous sending and receiving is possible (full duplex).

RS232 signals

In addition to the TXD, RXD and GND signals, the communication module provides additional RS232 signals when using RS232 hardware:

TXD Output RXD Input GND DCD Input DTR Output
DSR Input
RTS Output
CTS Input

RI

Input

Transmitted data; Interface is transmitting
Received data; Interface is receiving
Functional ground; isolated
Data carrier detect; Carrier signal when connecting a modem. The communication partner signals that it recognizes incoming data.
Data terminal ready; DTR set to "ON": Communication module switched on, ready for operation DTR set to "OFF": Communication module not switched on, not ready for operation
Data set ready; DSR set to "ON": Communication partner signals readiness for operation DSR set to "OFF": Communication partner not switched on, not ready for operation
Request to send; RTS set to "ON": Communication module ready to send; signals to the communication partner that there is data ready to send RTS set to "OFF": Communication module not ready to send
Clear to send; Communication partner can receive data from the communication module (response to RTS = ON of the communication module) CTS set to "ON": Signals readiness to receive to the communication partner CTS set to "OFF": Signals "Not ready to receive" to the communication partner
Incoming call for connecting a modem (ring indicator)

After power on of the communication module, the output signals are in the OFF state (inactive).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

23

Basics of serial communication 3.3 RS232 mode

You configure the operation of the DTR/DSR and RTS/CTS control signals in the user interface of the communication module. The RS232 signals cannot be influenced in case of:  configured data flow control "Hardware RTS always switched"
(corresponds to automatic operation of the accompanying signals)  configured data flow control "Hardware RTS always ON"
(corresponds to hardware flow control with RTS/CTS)  configured data flow control "Hardware RTS always ON, ignore DTR/DSR" For more information, refer to chapter Handshake procedure (Page 32).

Connecting cables
The following standard connecting cables of various lengths are available for connecting to a communication partner which also has a 9-pin D-sub male connector:

Article number Product type designation
Cable length

6ES7902-1AB00-0AA0 6ES7902-1AC00-0AA0 6ES7902-1AD00-0AA0 S7 connecting cable RS232

5 m

10 m

15 m

The table below shows the pin assignment for the 9-pin D-sub male connector of the respective communication module.

Male connector*

Pin

Designation

Input/

output

1

DCD

Input

2

RXD

Input

3

TXD

Output

4

DTR

Output

5

GND

--

6

DSR

Input

7

RTS

Output

8

CTS

Input

9

RI

Input

Required/optional for selffabrication Optional Required Required Optional Required Optional Optional Optional Optional

* View from the front
The cable or the connector of the listed connecting cables are not available for order as separate items. If you fabricate your own connecting cables you must remember that unconnected inputs at the communication partner may have to be connected to open-circuit potential.

CM PtP - Configurations for point-to-point connections

24

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.3 RS232 mode
Note that you may only use shielded connector enclosures. A large surface area of the cable shield must be in contact with the connector enclosure on both ends.
CAUTION Never connect cable shield with GND Never connect the cable shield with the GND as this could destroy the interfaces. GND must always be connected on both sides (pin 5), otherwise the interface modules could be destroyed.
The figure below illustrates the cable for a point-to-point connection between a communication module and a communication partner.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

25

Basics of serial communication 3.4 RS422 mode

3.4

RS422 mode

The following communication modules support RS422 mode:

 CM PtP RS422/485 BA

 CM PtP RS422/485 HF

 CM PtP (ET 200SP)

In RS422 mode, data is transmitted via two line pairs (four-wire operation). A separate line pair is available for the send direction and the receive direction. Simultaneous sending and receiving is possible (full duplex).

All communication partners must be capable of simultaneous operation of a sender and receiver unit.

The data can be exchanged simultaneously between two or more communication partners. In RS422 multipoint mode, only one slave may send data at any given time.

Interface operating modes
The following table is a summary of the interface operating modes for the various communication modules and protocols.
The communication module can be used in the following topologies in RS422 mode:
 Link between two nodes: Point-to-point connection
 Link between several nodes: Multipoint connection (only available with CM PtP (ET 200SP))

Operating mode
Full duplex (RS422) four-wire operation (point-to-point connection)
Full duplex (RS422) four-wire operation (multipoint master)
Full duplex (RS422) four-wire operation (multipoint slave)

Description Both devices have the same priority in this operating mode.
The communication module can be used as multipoint master. The communication module can be used as multipoint slave.

The following applies for a multipoint master/slave topology in RS422 mode:

 The sender of the master is interconnected with the receivers of all slaves.

 The senders of the slaves are interconnected with the master's receiver.

 Only the receiver of the master and the receiver of one slave have a default setting. All other slaves operate without default settings.

CM PtP - Configurations for point-to-point connections

26

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.4 RS422 mode

RS422 signals

The following signals are present on the communication module when using the RS422 hardware:

T (A) T (B) + R (A) R (B) + GND

Output Output Input Input

Transmitted data Transmitted data Received data Received data Functional ground; isolated

Connecting cables
The following standard connecting cables of various lengths are available for connecting to a communication partner which also has a 15-pin D-sub female connector:

Article number Product type designation
Cable length

6ES7902-3AB00-0AA0 6ES7902-3AC00-0AA0 6ES7902-3AG00-0AA0 S7 connecting cable RS422

5 m

10 m

50 m

The table below shows the pin assignment of the 15-pin D-sub female connector of the respective communication module.

Socket*

Pin Designation

1

-

2

T (A) -

3

-

4

R (A) -

5

-

6

-

7

-

8

GND

9

T (B) +

10 -

11 R (B) +

12 -

13 -

14 -

15 -

Input/output Output Input Output Input -

* View from the front

The cable or the connector of the listed connecting cables are not available for order as separate items. If you fabricate your own connecting cables you must remember that unconnected inputs at the communication partner may have to be connected to open-circuit potential.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

27

Basics of serial communication 3.4 RS422 mode
Note that you may only use shielded connector enclosures. A large surface area of the cable shield must be in contact with the connector enclosure on both ends.
CAUTION Never connect cable shield with GND Never connect the cable shield with the GND as this could destroy the interfaces. GND must always be connected on both ends (pin 8), otherwise the interface modules could be destroyed.
The figure below illustrates the cable for a point-to-point connection between a communication module and a communication partner.

Note
This cable type can be used in the following lengths for a communication module as communication partner: max. 1200 m at 19200 baud, max. 500 m at 38400 baud max. 250 m at 115200 Baud.

CM PtP - Configurations for point-to-point connections

28

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.5 RS485 mode

3.5

RS485 mode

The following communication modules support RS485 mode:

 CM PtP RS422/485 BA

 CM PtP RS422/485 HF

 CM PtP (ET 200SP)

In RS485 mode, data is transmitted via one line pair (two-wire operation). The line pair is available alternately for the send and receive directions. It is possible to either send or receive (half duplex). On completion of a send operation, operation is immediately switched to receive mode (ready to receive). Send mode is reset again as soon as a new send job is received.

Interface operating modes
The following table is a summary of the interface operating modes for the various communication modules and protocols.

Operating mode
Half duplex (RS485) twowire operation

Description
Operating mode for point-to-point connection or multipoint connection (multipoint) in two-wire operation. The communication module can be the master as well as the slave.

If you operate the Freeport in RS485 mode (half duplex, two-wire operation), you must make provisions in the user program to ensure that only one device sends data at any given time. If more than one device sends data at the same time, the frames are corrupted.

Modbus automatically ensures that only one device is sending.

Changeover times for RS485 communication module in half duplex mode
A maximum time of 0.1 ms is set for the changeover between sending and receiving.

RS485 signals

The following signals are present on the communication module when using the RS485 hardware:

R (A)/T (A) R (B)/T (B) + GND

Input/output Input/output

Received/transmitted data Received/transmitted data Functional ground; isolated

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

29

Basics of serial communication 3.5 RS485 mode

Connecting cables
The table below shows the pin assignment of the 15-pin D-sub female connector of the respective communication module.

Socket*

Pin Designation

1

-

2

-

3

-

4

R (A)/T (A) -

5

-

6

-

7

-

8

GND

9

-

10 -

11 R (B)/T (B) +

12 -

13 -

14 -

15 -

Input/output Input/output Input/output -

* View from the front

When fabricating the connecting cables, you need to remember that unconnected inputs at the communication partner may have to be connected to open-circuit potential.

Note that you may only use shielded connector enclosures. A large surface area of the cable shield must be in contact with the connector enclosure on both ends.

CAUTION
Never connect cable shield with GND
Never connect the cable shield with the GND as this could destroy the interfaces. GND must always be connected on both ends (pin 8), otherwise the interface modules could be destroyed.

CM PtP - Configurations for point-to-point connections

30

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.5 RS485 mode
The figure below illustrates the cable for a point-to-point connection between a communication module and a communication partner.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

31

Basics of serial communication 3.6 Handshake procedure

3.6

Handshake procedure

Introduction

Handshaking controls the data flow between two communication partners. The use of the handshaking method prevents data loss during transmission if the devices are operating at different speeds.
We can basically distinguish between the following methods:

Table 3- 1 Overview of methods and interfaces
Method Software data flow control XON/XOFF Hardware data flow control (RTS/CTS) Automatic operation of accompanying signals

RS232 X X X

RS422 X -

RS485 -

Software data flow control
Software data flow control is implemented as follows on the communication module:
 XON/XOFF
­ As soon as the communication module has been set to the "XON/XOFF" operating mode by means of parameter assignment, it sends the XON character, thereby allowing the communication partner to send data.
­ On reaching the configured maximum number of frames, or 16 characters ahead of receive buffer overflow, the communication module sends the XOFF character, thereby requesting that the communication partners stop sending. If the communication partner nonetheless continues to send data, an error message is generated if the receive buffer overflows. Data received in the last frame is discarded.
­ As soon as a frame has been fetched by the CPU and the receive buffer is ready to receive data again, the communication module sends the XON character.
­ If the communication module receives the XOFF character during sending, it cancels the current send operation until it receives a XON again from its communication partner. If no XON is received within a specific configurable time, send operation is canceled and a corresponding error message is output.
Note
You can configure the characters for XON and XOFF (any ASCII character).
During parameter assignment of the XON/XOFF software data flow control, user data may not contain any of the configured XON or XOFF characters.

CM PtP - Configurations for point-to-point connections

32

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.6 Handshake procedure
Hardware data flow control
Note The DTR/DSR signals do not have to be wired for "Hardware RTS always ON, ignore DTR/DSR" parameter assignment. If "Hardware RTS always ON" is configured, it is imperative that you fully wire the interface signals used. Make sure that the local RTS (out) is connected with the CTS (in) of the communication partner and the local CTS is connected with the RTS of the communication partner. Accordingly, the local DTR must be connected with the DSR of the communication partner and the local DSR with the DTR of the communication partner.
Figure 3-2 Wiring of the interface signals

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

33

Basics of serial communication 3.6 Handshake procedure
 Hardware RTS always ON, ignore DTR/DSR
­ As soon as the communication module has been set to an operating mode with "Hardware RTS always ON" through parameter assignment, it outputs the RTS = ON signal to the communication partner to indicate its ready state.
­ RTS is set to OFF as soon as the configured maximum number of frames or 16 characters before buffer overflow is reached. If the communication partner nonetheless continues to send data, an error message is generated on overflow of the receive buffer. Data received in the last frame is discarded.
­ RTS is reset to ON as soon as the frame has been fetched by the CPU and the receive buffer is ready to receive data again.
­ If CTS switches to OFF during the send operation, the communication module interrupts the send operation until CTS is reset to ON. If CTS is not reset to ON within a specific configurable time, the send operation is canceled and a corresponding error message is output.
 Hardware RTS always ON
The "Hardware RTS always ON" mode corresponds to the "Hardware RTS always ON, ignore DTR/DSR" mode. However, you also need to wire DTR and DSR.
­ As soon as the communication module has been set set to an operating mode with "Hardware RTS always ON" through parameter assignment, it sets DTR = ON and RTS = ON to signal its general ready state to the communication partner.
­ RTS is set to OFF as soon as the configured maximum number of frames or 16 characters before buffer overflow is reached. If the communication partner nonetheless continues to send data, an error message is generated on overflow of the receive buffer. Data received in the last frame is discarded.
­ RTS is reset to ON as soon as the frame has been fetched by the CPU and the receive buffer is ready to receive data again.
­ If CTS switches to OFF during the send operation, the communication module interrupts the send operation until CTS is reset to ON. If CTS is not reset to ON within a specific configurable time, the send operation is canceled and a corresponding error message is output.
­ A switch from DSR = ON to DSR = OFF cancels an active send job and triggers an error message.

CM PtP - Configurations for point-to-point connections

34

Function Manual, 12/2017, A5E37509394-AC

Basics of serial communication 3.6 Handshake procedure
Automatic operation of accompanying signals
 Hardware RTS always switched
"Hardware RTS always switched" is implemented as follows on the communication module:
­ As soon as the communication module is set to the operating mode with "Hardware RTS always switched" through parameter assignment, it sets the line RTS to OFF and DTR to ON (communication module ready for operation).
It is not possible to send frames until the DSR line is set to ON. No data is sent via the RS232C interface as long as DSR is set to OFF. A send job is canceled and a corresponding error message is generated.
­ When a send job is pending, RTS is set to ON and the configured RTS ON delay starts. On expiration of the data output time, the system checks whether the communication partner has set CTS to ON. If so, the data is sent via the RS232 interface.
­ If the CTS line is not set to ON within the RTS ON delay, or if CTS changes to OFF during transmission, the send job is aborted and an error message is generated.
­ Once the data has been sent and the configured clear RTS OFF delay has elapsed, the RTS line is set to OFF. The system does not wait for CTS to change to OFF.
­ It is always possible to receive data via the RS232 interface. There will be no reaction if there is a danger of the receive buffer of the communication module overflowing.
­ A switch from DSR = ON to DSR = OFF cancels an active send job and triggers an error message.
Note
Set the "RTS ON delay" in such a way that the communication partner is able to enter the ready to receive state before the time elapses.
Set the "RTS OFF delay" in such a way that the communication partner is able to receive the last characters of the frame completely before RTS is set to OFF and the send request is canceled.
Note
When automatic operation of the RS232 signals is configured, RTS and DTR cannot be controlled by means of the corresponding instruction!

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

35

Basics of serial communication 3.6 Handshake procedure

Time diagram

The figure below shows the chronological sequence of a send job with configured data flow control "Hardware RTS always switched":

Figure 3-3 Time diagram for Hardware RTS always switched
Additional information
Note Operation of DTR/DSR or RTS/CTS is accepted by the communication module with the following settings: · Hardware RTS always ON, ignore DTR/DSR · Hardware RTS always ON · Hardware RTS always switched

CM PtP - Configurations for point-to-point connections

36

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment

4

4.1

Configuring / parameter assignment of a communication module

The following sections contain explanations on the following protocols and their parameters:

 Communication using Freeport (Page 38)

 Communication using 3964(R) (Page 47)

 Communication through Modbus RTU (Page 52)

 Communication using USS (Page 59)

This information is required to carry out the parameter assignment and subsequently programming of the communication in accordance with the used protocol.

Configuration and parameter assignment are carried out in the device view of STEP 7 (TIA Portal) and in the properties dialog of the communication module. Some configurations can also be changed during runtime by means of the corresponding "Config" instructions (Port_Config, Send_Config, Receive_Config, P3964_Config).

Procedure for setting up point-to-point communication
The procedure does not depend on the communication module used.
1. Configure an S7-1500 design with CPU and communication module in the device view of the STEP 7 (TIA Portal) hardware editor.
2. You assign the parameters of the communication module interface (protocol, protocol parameters, addresses) in the "General" area of the "Properties" tab.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

37

Configuring / parameter assignment 4.2 Communication using Freeport

4.2

Communication using Freeport

4.2.1

Procedure for establishing a serial connection with Freeport

Requirements

 The hardware is set up and there is an electrical connection to the link partner.
 The project has been created in STEP 7 (TIA Portal) and the CPU has been inserted into the hardware configuration.

Procedure - Hardware configuration
1. Insert the CM PtP communication module into the hardware configuration. 2. Set the communication parameters according to the link partner:
For example, transmission speed, character frame, frame start and frame end These parameters are transferred to the CM PtP communication module every time the CPU is started.

Procedure - Programming
1. Create the data structure that is to include the data to be transferred.
Sending data
1. Insert the instructions from the PtP Communication library: Send_P2P for sending data
2. Interconnect the input and output parameters of the instruction, e.g.:
­ HWID from the system tags at the PORT input
­ Data structure with the data to be sent at the BUFFER input
Note: During operation, each positive edge at the REQ input will send the specified data area once. The block must be called until DONE indicates that the data was transferred to the module.
In case of an error, setting ERROR once and displaying the corresponding information in STATUS indicates that the data was not transferred.

CM PtP - Configurations for point-to-point connections

38

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.2 Communication using Freeport
Receiving data: 1. Insert the instructions from the PtP Communication library: Receive_P2P for sending data 2. Interconnect the input and output parameters of the instruction, e.g.:
­ HWID from the system tags at the PORT input ­ Data structure for storage of received data at the BUFFER input Note: A high level at the NDR output during operation indicates that new data was received and stored in the specified data area. The block must be called until NDR=TRUE. The received data can then be analyzed and the RECEIVE_P2P can be called again.
Optional additions
 Instructions that end in _Config can be used optionally to change the parameters of the hardware configuration during operation of the user program. The changes are not saved in the hardware configuration. They are overwritten at the next restart.
 The instructions Signal_Set and Signal_Get can be used to control the RS232 accompanying signals individually if automatic operation is not a suitable option.

4.2.2

Data transmission with Freeport

Introduction

Freeport is a freely programmable frame-based protocol that is also known as ASCII protocol.
The Freeport protocol controls data transmission by means of a point-to-point connection between the communication module and a communication partner. The Freeport protocol contains the physical layer (Layer 1).
The Freeport protocol supports sending and receiving of messages with any structure (all characters from 00H through FFH (for character frames with 8 data bits) or from 00H through 7FH (for character frames with 7 data bits)).
The frame start and end criteria must be configured both for the send and the receive direction. The start and end criteria can be configured differently.
Instructions are available for communication with a communication partner (see Overview of point-to-point programming (Page 63)).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

39

Configuring / parameter assignment 4.2 Communication using Freeport

4.2.3

Sending data with Freeport

Specifying settings for sending
To send a message, the partner must be informed of the start and end of the message. These settings can be set fixed in the hardware configuration or be adjusted during runtime by using the instruction Send_CFG. You can select one of the following options or also combine them:
 Send break before frame start
You can specify that an additional Break is sent at the beginning of each message transmission on expiration of the RTS ON delay time. The duration of the "Break" is specified in bit times.
Compliance with the send break can be deactivated if other mechanisms are used for synchronization.
 Send idle line
You can specify that an additional "Idle Line" signal is output at the start of each message transmission. The duration of the "Idle Line" is specified in bit times.
Compliance with the send break can be deactivated if other mechanisms are used for synchronization.
 RTS ON delay
You can configure the time that has to expire after the RTS (Request to send) before the actual data transmission starts (RS232 only).
 RTS OFF delay
You can configure the time that has to expire after transmission has been completed before the RTS signal is deactivated (RS232 only).
 Send up to and including the end delimiter
You can configure the number of end delimiters (1 or 2) and their value.
All data up to the end delimiter(s) is sent, independent of the selected frame length. The end delimiter must be included in the data to be sent. Data is sent only up to and including the delimiter, even if the specified data length is longer.
 Number of appended characters
Input of the number of appended characters. Sending takes place up to the configured length. The end delimiter(s) is/are appended automatically. Depending on the number of end delimiters, one to five characters more than the number specified at the instruction are sent to the partner.
Note
If you combine "Send break before frame start", "Send idle line" and "RTS ON delay", these are processed in the order "RTS ON delay", "Send break before frame start" and "Send idle line".

CM PtP - Configurations for point-to-point connections

40

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.2 Communication using Freeport

4.2.4

Receiving data with Freeport

Specifying the message start
For data transmission with Freeport, you can choose between several different start criteria. The start criterion defines when a frame starts. Once a criterion that indicates the start of the message is met, the data stream is scanned for message end criteria. Here you select the settings that correspond to the properties of the sending communication partner.
Two different methods are available for detecting the message start:  Start on any character
Any character can be used to define the start of the message (default). This means that the first character sent at the start of communication, or after the frame end has been detected, will be identified as the first character of a message.  Start on special condition The start of the message is detected based on the following specified conditions.
­ After detection of a line break
The frame start is not accepted unless a break has been received beforehand, in other words, it is compulsory for the partner to send a break before sending a frame.
­ After detection of an idle line
The frame start is not accepted until the configured idle line duration has expired. This procedure requires a minimum interval between two frames.
­ After receipt of a start character
The frame start is detected when the configured start character is identified.
­ After detection of one or several start sequences
The frame start is detected when the configured string with a length of up to five characters is identified. You can configure up to 4 start sequences. The start sequences that are up to 5 characters long can also contain "don't care characters".
Example:

Table 4- 1 Configured start conditions

Start condition 1 2 3 4 :

1. character 0x68 0x10 0xdc 0xe5

2. character xx 0xaa 0xaa xx

3. character xx xx xx xx

4. character 0x68 xx xx xx

5. character xx xx xx xx

The following message has been received: 68 10 aa 68 bb 10 aa 16
The evaluation of the start criteria begins with the receipt of the first character 0x68. The 2nd and 3rd characters are free. When the 4th character (second 0x68) is received, the first start condition is met and further evaluation of the message begins.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

41

Configuring / parameter assignment 4.2 Communication using Freeport
Specifying the message end
You can choose from several different end criteria for data transmission using the Freeport protocol. The end criterion defines the point at which a frame has been received completely. Configurable end criteria are:  Recognize message end by message timeout  Recognize message end by response timeout  After character delay time elapses (default)  After receipt of a fixed frame length  After receipt of a maximum number of characters  Read message length from message  After receipt of an end sequence
Message timeout
When data is received, the end of frame is detected on expiration of the configured time for transferring a frame. Time measurement starts after the start criterion has been met.
Response timeout
The response time is used to monitor the response behavior of the communication partner. If a valid frame start is not recognized after the completion of a send job, the send job is acknowledged with a corresponding message. The actual end criterion has to be configured additionally.
Expiration of character delay time
When data is received, the frame end is detected when the configured maximum time between successive characters is exceeded (character delay time). The value is specified in bit times. In this case, the character delay time must be set in such a way as to ensure that it expires between two consecutive frames. However, it should be of sufficient length to exclude incorrect identification of the end of the frame whenever the communication partner performs a transmission pause within a frame.

CM PtP - Configurations for point-to-point connections

42

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.2 Communication using Freeport
Fixed frame length
When data is received, the end of the frame is identified after the configured frame length has been reached.
An error message is output and the frame is discarded if the character delay time expires (if activated ) before the fixed frame length has been reached.
Please note the following if the frame length of the received characters does not match the fixed configured frame length:
 All characters received after the fixed configured frame length has been reached will be discarded until a new start criterion is detected.
 An error message is output and the frame is discarded if another (activated) end criterion is met before the fixed frame length has been reached.
Maximum number of characters
When receiving data, the end of the frame is recognized after the declared number of characters have arrived.
This setting can be combined with the "Character delay time" settings. The frame received is also assessed as free of error if another end condition occurs, regardless of whether the maximum number of characters has been reached.
Please note the following if the frame length of the received characters does not match the configured maximum frame length:
 All characters received after the configured maximum number of characters has been reached will be discarded until a new start criterion (e.g. "Idle Line") is detected.
 If a different (activated) end criterion is met before the configured maximum number of characters has been reached, this "frame part" is assessed as a valid frame and the partner waits for a new start criterion. All characters received prior to fulfillment of a new start criterion are discarded.
Note
If no further end criterion is activated, the fixed frame length and maximum number of characters will respond in the same way.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

43

Configuring / parameter assignment 4.2 Communication using Freeport

Message length in the message
When data is received, the frame end is detected when the frame length sent with the received frame has been reached.
The following parameters define the characters to be used for evaluation of the message length:
 Offset of length field in message
In the message, the value defines the position of the character that is to be used to determine the message length.
You can set values from 0 to 4095 characters, depending on the buffer size.
 Size of length field
This value specifies the number of characters as of the first evaluation position to be used to determine the message length.
You can set values of 1, 2 and 4 characters.
 Number of characters not counted in length specification
Number of characters appended to the frame without counting towards the frame length. This value defines the number of bytes at the end of the frame which should not be included in the evaluation of the message length.
You can set values from 0 to 255 characters.
Example:
Parameter assignments for "Message length in the message"

Offset of length field in message:

3. byte ("2" has to be configured as offset)

Size of length field:

1 byte

Number of characters not counted in length 3 bytes specification:

Message

Start character
Byte 1

Address Byte 2

Length field Byte 3

Byte ...

Number of characters not counted in length specification

Checksum

End delimiter

Byte X Byte X+1

Byte X+2 Byte X+3

CM PtP - Configurations for point-to-point connections

44

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.2 Communication using Freeport

End sequence

When data is received, the end of the frame is identified when the configured end sequence (max. 5 characters) is received. The end sequence which is up to 5 characters long can also contain "don't care characters". The received data is applied by the CPU, including the end sequence.
If you are working with the end sequence, transmission is not code-transparent and you must exclude the presence of end code in the user data.

Note Frame end sequence If there is only one end delimiter, the entry must take place in the 5th line. If there are two end delimiters, the entries must take place in the 4th and 5th line (no gaps). The same applies to the use of additional characters.

4.2.5

Code transparency

Code transparency
Code-transparent means that any character combinations can occur in the user data without the end criterion being recognized.
The code transparency of the procedure depends on the selection of the configured end criterion and flow control:
 With specified end sequence or using XON/XOFF flow control
­ Not code-transparent
 End criterion character delay time, fixed frame length, maximum frame length, message timeout, or response timeout and message length in the message
­ Code-transparent

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

45

Configuring / parameter assignment 4.2 Communication using Freeport

4.2.6

Receive buffer

Receive buffer of the module
The communication modules have a receive buffer that stores the received frames temporarily until they are transmitted to the CPU. The receive buffer is implemented as a ring buffer, which means the frames are transmitted to the CPU in the order in which they were received until the receive buffer is full. If additional frames are received once the buffer is full, the oldest frame is overwritten. If "Prevent overwriting" was configured, a corresponding message is generated when the receive buffer is full. All further frames are rejected until the receive buffer is ready to receive new ones.
During the parameter assignment, you can specify whether the receive buffer should be deleted during startup. You can also specify the range of values (1 to 255) for the number of buffered receive frames.
The receive buffer of the module may have a size of up to 8 KB, depending on the communication module used (see chapter Introduction (Page 13)). The frame has a maximum length of 4 KB. This means that each communication module is capable of buffering at least two frames.
If you always want to transfer the last frame received to the CPU, you must set the value "1" for the number of buffered frames and deactivate overwrite protection.
Note
If continuous reading of the received data in the user program is interrupted for a certain time, you may find when the receive data is requested again, that the communication module first sends older frames before the CPU receives the most recent one. At the time of interruption, the old frame had already been transmitted from the receive buffer of the communication module and prepared for transmission to the CPU.

CM PtP - Configurations for point-to-point connections

46

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.3 Communication using 3964(R)

4.3

Communication using 3964(R)

4.3.1

Procedure for establishing a serial connection with 3964(R)

Requirements

 The hardware is set up and there is an electrical connection to the link partner.
 The project has been created in STEP 7 (TIA Portal) and the CPU has been inserted into the hardware configuration.

Procedure - Hardware configuration
1. Insert the CM PtP communication module into the hardware configuration. 2. Set the communication parameters according to the link partner:
For example, transmission speed, character frame, frame start and frame end These parameters are transferred to the CM PtP communication module every time the CPU is started.

Procedure - Programming
1. Create the data structure that is to include the data to be transferred.
Sending data:
1. Insert the instructions from the PtP Communication library: Send_P2P for sending data
2. Interconnect the input and output parameters of the instruction, e.g.:
­ HWID from the system tags at the PORT input
­ Data structure with the data to be sent at the BUFFER input
Note: During operation, each positive edge at the REQ input will send the specified data area once. The block must be called until DONE indicates that the data was transferred to the module.
In case of an error, setting ERROR once and displaying the corresponding information in STATUS indicates that the data was not transferred.
Receiving data:
1. Insert the instructions from the PtP Communication library: Receive_P2P for sending data
2. Interconnect the input and output parameters of the instruction, e.g.:
­ HWID from the system tags at the PORT input
­ Data structure for storage of received data at the BUFFER input
Note: A high level at the NDR output during operation indicates that new data was received and stored in the specified data area. The block must be called until NDR=TRUE. The received data can then be analyzed and the RECEIVE_P2P can be called again.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

47

Configuring / parameter assignment 4.3 Communication using 3964(R)

Optional additions
 Instructions that end in _Config can be used optionally to change the parameters of the hardware configuration during operation of the user program. The changes are not saved in the hardware configuration. They are overwritten at the next restart.
 The instructions Signal_Set and Signal_Get can be used to control the RS232 accompanying signals individually if automatic operation is not a suitable option.

4.3.2

Data transmission with 3964(R) procedure

Introduction

The 3964(R) procedure controls point-to-point data exchange between the communication module and a communication partner. and contains both the physical layer (layer 1) and the link layer (layer 2).
Instructions are available for communication with a communication partner (see Overview of point-to-point programming (Page 63)).

4.3.3

Control characters

Introduction

During data transmission, the 3964(R) procedure adds control characters to the information data (link layer). The communication partner can use these control characters to check whether it has received all data completely and without errors.

Control characters of the 3964(R) procedure
The 3964(R) procedure evaluates the following control characters:

STX Start of Text

Beginning of the character string to be transmitted 02H

DLE Data Link Escape

Data transmission changeover

10H

ETX End of Text

End of the character string to be transmitted

03H

NAK Negative Acknowledge Negative acknowledgment

15H

BCC Block Check Character Block check character (only with 3964R)

BCC is formed and monitored automatically in the communication module. The block check character is not transmitted as frame content to the CPU.

Note
If the DLE character is transmitted as an information character within a frame, it is sent twice (DLE duplication) to distinguish it from the DLE control character during connection establishment and termination. The receiver reverses the DLE duplication.

Priority

With the 3964(R) procedure, one communication partner must be assigned a higher and the other a lower priority. If both partners start to establish a connection at the same time, the partner having lower priority will cancel its send job.

CM PtP - Configurations for point-to-point connections

48

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.3 Communication using 3964(R)

4.3.4

Block check character

Block check character
With the 3964R transfer protocol, data security is enhanced by sending an additional block check character (BCC = Block Check Character).
The block check character is the even longitudinal parity (EXOR logic operation of all data bytes) of a sent or received block. Its calculation begins with the first byte of user data (first byte of the frame) after the connection establishment, and ends after the DLE ETX character at connection termination.
Note
With DLE duplication, the DLE character is included twice in the BCC calculation.

4.3.5

Sending data with 3964(R)

Connection establishment for sending
The 3964(R) procedure sends the STX control character to set up the connection. If the communication partner responds with the DLE character before the acknowledgment delay time expires, the procedure switches to send mode.
If the communication partner answers with NAK or any other character (except for DLE or STX), or the acknowledgment delay time expires without a response, the procedure tries to set up the connection again. After the configured number of unsuccessful setup attempts, the procedure cancels the connection setup and sends the NAK character to the communication partner. The communication module outputs a corresponding error message.

Sending data

If the connection is successfully established, the user data contained in the output buffer of the communication module is sent to the communication partner with the selected transmission parameters (a DLE recognized in the user data is doubled during the send job). The communication partner monitors the time intervals between the incoming characters. The interval between two characters must not exceed the character delay time. Monitoring of the character delay time starts immediately after the connection has been established.
If the communication partner sends the NAK character during an active send operation, the procedure cancels the block and repeats it as described above, beginning with connection establishment. If a different character is sent, the procedure first waits for the character delay time to expire and then sends the NAK character to set the communication partner to idle state. Then, the procedure restarts sending with the connection setup STX.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

49

Configuring / parameter assignment 4.3 Communication using 3964(R)
Connection termination during sending
Once the contents of the buffer have been sent, the procedure appends the DLE and ETX characters and (only with 3964R) the block checksum BCC as the end identifier, and then waits for an acknowledgment character. If the communication partner sends the DLE characters within the acknowledgment delay time, the data block has been received without errors. If the communication partner responds with NAK, any other character (except DLE), or with a corrupted character, or if the acknowledgment delay time expires without a response, the procedure restarts sending with the connection setup STX.
After the configured number of attempts to send, the procedure stops the process and sends an NAK to the communication partner. The communication module outputs a corresponding error message.

CM PtP - Configurations for point-to-point connections

50

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.3 Communication using 3964(R)

4.3.6

Receiving data with 3964(R)

Connection setup for receiving
In idle state, when there is no send job to be processed, the procedure waits for the communication partner to set up the connection.
A wait time is started (wait time = acknowledgment delay time - 10 ms, however, maximum of 400 ms) if no free receive buffer is available during the connection setup with STX. An error message is generated if no free receive buffer is available on expiration of this time. The procedure sends the NAK character and returns to the idle state. Otherwise, the procedure sends a DLE and receives the data as described above.
The acknowledgment delay time should be set to the same value at both communication partners.
If the procedure receives any character (except for STX or NAK) while in idle state, it waits for the character delay time (CDT) to expire and then sends the NAK character. The communication module outputs a corresponding error message.

Receiving data

After a successful connection establishment, the incoming receive characters are saved to the receive buffer. If two consecutive DLE characters are received, only one of these is saved to the receive buffer.
After connection has been established and after each receive character, the procedure waits for the next character during the character delay time. If this period expires before another character is received, an NAK is sent to the communication partner. The communication module outputs a corresponding error message. A retry is then expected.
If transmission errors occur during receiving (frame errors, parity errors, etc.), the procedure continues to receive data until the connection is terminated and then sends an NAK to the communication partner. A retry is then expected. If the block still cannot be received without errors after the specified number of transfer attempts, or if the communication partner does not start the retry within a block wait time of 4 seconds, the procedure cancels the receive operation. The communication module reports the first corrupted transfer and the final cancelation.

Connection setup for receiving
If the 3964 procedure detects a DLE ETX string, it terminates the receive operation and confirms a successfully received block by sending a DLE to the communication partner. In the case of a receive error, an NAK is sent to the communication partner. A retry is then expected.
The 3964R procedure terminates the receive operation after having detected the DLE ETX BCC string. It compares the received block check character BCC with the internally calculated longitudinal parity. If the BCC is correct and no other receive errors have occurred, the 3964R procedure sends a DLE and returns to the idle state. The communication module informs the control system that new receive data is available.
If the BCC is faulty or a different receive error occurs, an NAK is sent to the communication partner. A retry is then expected.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

51

Configuring / parameter assignment 4.4 Communication through Modbus RTU

4.4

Communication through Modbus RTU

4.4.1

Procedure for establishing a serial connection with Modbus RTU

Requirements

 The hardware is set up and there is an electrical connection to the link partner.
 The project has been created in STEP 7 (TIA Portal) and the CPU has been inserted into the hardware configuration.

Procedure - Hardware configuration
1. Insert the CM PtP communication module into the hardware configuration. 2. Select the Modbus RTU protocol.
Note: With Modbus RTU, most communication parameters are set using the Modbus_Comm_Load instruction during CPU start.

Procedure - Programming
1. Create the data structure that is to include the data to be transferred. 2. Integrate the Modbus_Comm_Load instruction into the cyclic sequence for parameter
assignment of the communication module. 3. Interconnect the HWID from the system tags at the PORT input. 4. Call the instruction until successful execution is displayed at the DONE output. Do not call
the instruction again thereafter unless you want to change the communication parameters.
Operation as Modbus master: 1. Insert the Modbus_Master instruction from the MODBUS (RTU) library: 2. Interconnect the data structure with the data to be sent at the BUFFER input. 3. Interconnect the instance DB of the Modbus_Master instruction at the MB_DB input of the
Modbus_Comm_Load. Note: During operation, each positive edge at the REQ input will process the specified job once. The block must be called until DONE indicates that the data was transferred to the module. In case of an error, setting ERROR once and displaying the corresponding information in STATUS indicates that the data was not transferred.
Operation as Modbus slave: 1. Insert the Modbus_Slave instruction from the MODBUS (RTU) library. 2. Interconnect the data structure with the Modbus hold registers. 3. Enter the Modbus slave address at the MB_ADDR input. 4. Interconnect the instance DB of the Modbus_Master instruction at the MB_DB input of the
Modbus_Comm_Load. Note: A high level at the NDR output during operation indicates that new data was received and stored in the specified data area.

CM PtP - Configurations for point-to-point connections

52

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.4 Communication through Modbus RTU

4.4.2

Overview of modbus communication

Modbus RTU communication
Modbus RTU (Remote Terminal Unit) is a standard protocol for communication in the network and uses the electrical RS232 or RS422/485 connection for serial data transmission between Modbus devices in the network.
Modbus RTU uses a master/slave network in which the entire communication is triggered by only one master device while the slaves can only respond to the request of the master. The master sends a request to a slave address and only this slave address responds to the command (exception: broadcast frames to slave address 0 which are not acknowledged by the slaves).
The procedure used is a code-transparent, asynchronous half-duplex procedure. Data transmission is carried out without handshake.

Position in the system environment
The following Modbus description refers to the use of the corresponding communication modules.  CM PtP RS232 HF  CM PtP RS422/485 HF  CM PtP (ET 200SP)

Function of the coupling
With the corresponding communication modules and the related instructions, you can establish a communication connection between a remote Modbus control system and a SIMATIC S7.
The GOULD-MODBUS protocol in RTU format is used for transmission.
Function codes 01, 02, 03, 04, 05, 06, 08, 15 and 16 are used for communication between a communication module operated as a Modbus slave and a master system (see Function Codes (Page 57)).
If a SIMATIC S7 communication module is operated as a Modbus master, function codes 11 and 12 are also available.

SIMATIC S7 as a Modbus slave
The master has the initiative for transmission, the communication module works as a slave.
frame traffic from slave to slave is not possible.
The instruction Modbus_Slave makes the data available on a SIMATIC data area in accordance with the mapping specification or stores them.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

53

Configuring / parameter assignment 4.4 Communication through Modbus RTU

SIMATIC S7 as a Modbus master
As master, the communication module initiates transmission and, after outputting a request frame, it waits for the configured response monitoring time for a response frame from the slave. If the slave does not respond, the master repeats the request in accordance with the configuration before it outputs an error message.

frame structure
The data exchange "Master-Slave" and/or "Slave-Master" begins with the slave address, followed by the function code. Then the data are transferred. The structure of the data field depends on the function code used. The CRC check is transmitted at the end of the frame.

ADDRESS Byte/Word

FUNCTION Byte

DATA n byte

CRC-CHECK 2 byte

ADDRESS
FUNCTION DATA CRC-CHECK

Modbus slave address · Standard address: 1 to 247 (bytes) · Extended station address: 1 to 65535 (word)
Modbus Function Codes (Page 57) frame data: Management and net data depending on the function code frame checksum

Slave address

The slave address can be range from 1 to 247 (byte) or 1 to 65535 (word). The address is used to address a defined slave on the bus.

Broadcast Message
The master uses slave address 0 to address all slaves on the bus.
Broadcast messages are only permitted in conjunction with writing Function codes 05, 06, 15 and 16.
A broadcast message is not followed by a response frame from the slave.

Data Field DATA
The data field DATA is used to transfer the function code-specific data such as:
 Bytecount, Coil_Startaddress, Register_Startaddress; Number_of_Coils, Number_of_Registers, ... .
For details, see "Function Codes (Page 57)".

CM PtP - Configurations for point-to-point connections

54

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.4 Communication through Modbus RTU

CRC-Check

The end of the frame is identified by means of the CRC 16 checksum consisting of 2 bytes. It is calculated by the following polynominal: x16 + x15 + x2 + 1.
The low byte is transmitted first, followed by the high byte.

End of frame

The end of frame is recognized when no transmission takes place during the time period required for the transmission of three and a half characters (3.5 times character delay time) (see Modbus Protocol Reference Guide).
This end of frame TIME_OUT therefore depends on the data transmission rate and is indicated in bit times (35 bit times are fix coded internally; further bit times can be configured in addition at the instruction).
The Modbus frame received from the connection partner is evaluated and formally checked after the end of frame TIME_OUT is received.

Exception responses
On recognition of an error in the request frame from the master, for example, register address illegal, the slave sets the highest value bit in the function code of the response frame.
This step is followed by transmission of a byte exception code that describes the cause of the error.
A detailed description of the meaning of the above-mentioned parameters is available in the "GOULD MODICON Modbus Protocol" (not part of this documentation).

Exception code frame
The exception code frame from the slave has the following structure:  for example, slave address 5, function code 5, exception code 2 Response frame from the slave EXCEPTION_CODE_xx:

05H

Slave address

85H

Function code

02H

Exception code (1...7)

xxH

CRC checksum "Low"

xxH

CRC checksum "High"

On receipt of an exception code frame by the driver, the current job is completed with error.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

55

Configuring / parameter assignment 4.4 Communication through Modbus RTU

The following error codes are defined in accordance with the Modbus specification:

Error code

Meaning in accordance with Modbus specification

1

Illegal function

2

Illegal data address

3

Illegal data value

4

Failure in Associated Device

5

Acknowledge

6

Busy, Rejected message

7

Negative acknowledgement

* Check slave for further details.

Cause - Short Description *
Illegal function code Slave has illegal data address Slave has illegal data value Slave has internal error Function is carried out Slave is not ready to receive The function cannot be carried out.

RS232 mode

The following communication modules support RS232 mode:  CM PtP RS232 HF  CM PtP (ET 200SP) For more information on RS232 mode, see the chapter RS232 mode (Page 23). For information on hardware data flow control and on automatic operation of the accompanying signals, refer to the Handshake procedure (Page 32) chapter.

RS422/485 mode
The following communication modules support RS422/485 mode:  CM PtP RS422/485 HF  CM PtP (ET 200SP) For more information on RS422/485 mode, see the chapters RS422 mode (Page 26) and RS485 mode (Page 29).

FAQ

For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 68202723 (https://support.industry.siemens.com/cs/ww/en/view/68202723)  Entry ID 58386780 (https://support.industry.siemens.com/cs/ww/en/view/58386780)

CM PtP - Configurations for point-to-point connections

56

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.4 Communication through Modbus RTU

4.4.3

Function Codes

Used function codes
The function code defines the meaning of the frame. It also defines the structure of a frame. The following function codes are supported by the communication module:

Function code
01 02 03

Function in accordance with MODBUS specification Read Coil Status Read Input Status Read Holding Registers

04

Read Input Registers

05

Force Single Coil

06

Preset Single Register

08 *

Loop Back Test

11 *

Fetch Communications Event Counter (only mas-

ter)

15

Force Multiple Coils

16

Preset Multiple Registers

Range
1 to 2000 bit/request 1 to 2000 bit/request 1 to 124/125 bit/request (124 at extended station address) 1 to 124/125 bit/request (124 at extended station address) 1 bit/request 1 word/request Read slave status or reset event counter in the slave -
1 to 1968 bits/request 1 to 123 bit/request

* Diagnostic information for slave communication

Modbus function code 00 sends a broadcast message to all slaves (without slave response).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

57

Configuring / parameter assignment 4.4 Communication through Modbus RTU

Assignment of the Modbus addresses to the SIMATIC addresses
The table below shows the assignment of the Modbus addresses to the SIMATIC addresses.

FC 1) Function 01 Read bits 02 Read bits 03 2) Read words

04 05 2) 06

Read words Write bits Write words

15 Write bits 16 2) Write words

Modbus Declaration Output Input Holding Register
Input Output Holding Register
Output Holding Register

Address area 1 - 9999
10001 - 19999
40001 - 49999 or 400001 - 465535
30001 - 39999
1 - 9999
40001 - 49999 or 400001 - 465535
1 - 9999
40001 - 49999 or 400001 - 465535

S7-1500

Declaration Process image of outputs

CPU address Q0.0 - Q1249.6

Process image of inputs

I0.0 - I1249.6

DW0 - DW19998 or DW0 - DW131068

The M address area depends on the CPU

Process image of inputs

IW0 to IW19996

Process image of outputs Q0.0 to Q1248.7

DW0 - DW19998 or DW0 - DW131068

The M address area depends on the CPU

Process image of outputs Q0.0 - Q1249.6

DW0 - DW19998 or DW0 - DW131068

The M address area depends on the CPU

1) FC = function code
2) The value of the HR_Start_Offset determines whether data areas or bit memory address areas can be addressed with the FCs 03, 05 and 16 in the SIMATIC CPU.

CM PtP - Configurations for point-to-point connections

58

Function Manual, 12/2017, A5E37509394-AC

4.5

Communication using USS

Configuring / parameter assignment 4.5 Communication using USS

4.5.1

Procedure for establishing a serial connection with Modbus USS

Requirements

 The hardware is set up and there is an electrical connection to the link partner.
 The project has been created in STEP 7 (TIA Portal) and the CPU has been inserted into the hardware configuration.

Procedure - Hardware configuration
1. Insert the CM PtP communication module into the hardware configuration. 2. Select the Freeport protocol and set the communication parameters.
Note: The USS functionality is implemented by the instructions.

Procedure - Programming
1. Insert the USS_Port_Scan instruction from the USS Communication library.
2. Interconnect the HWID from the system tags at the PORT input.
3. Insert the USS_Drive_Control instruction from the USS Communication library.
4. Interconnect the USS_DB data structure in the instance DB of the USS_Drive_Control instruction to the USS_DB input of the USS_Port_Scan instruction. The data structure contains the data to be transferred for all drives.
5. Insert an additional call of the USS_Drive_Control instruction for each additional axis that is to be connected via the USS interface.
Use the same instance DB each time. The distinction takes place with the help of the USS address that you specify at the DRIVE input of the USS_Drive_Control instruction. This means you have access to the control and feedback data at the parameters of the respective call for each drive.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

59

Configuring / parameter assignment 4.5 Communication using USS

4.5.2

Overview of USS communication

Position in the system environment
The following USS description refers to the use of the corresponding communication modules.  CM PtP RS232 BA  CM PtP RS422/485 BA  CM PtP RS232 HF  CM PtP RS422/485 HF  CM PtP (ET 200SP)

Introduction

The USS® protocol (Universal Serial Interface Protocol) is a basic serial data transmission protocol designed to meet the requirements of drive technology.
The USS protocol defines an access method based on the master-slave principle for communication via a serial bus. One master and up to 16 drives (slaves) can be connected to the bus. The individual drives are selected by the master using an address character in the frame. A drive can never send anything without first being initiated by the master. Therefore, direct data transmission between individual drives is not possible. Communication functions in half-duplex mode. The master function cannot be transferred.
Drive technology requires specific response times for the control tasks and therefore strict cyclical frame traffic:
The master continuously sends frames (job frames) to the drives and expects a response frame from each addressed drive.
A drive must send a response frame if
 it has a received a frame without errors and
 it was addressed in this frame.
A drive may not send if these conditions are not met or the drive was addressed in the broadcast.
The connection with the respective drives exists for the master once it receives a response frame from the drive after a specified processing time (response delay time).

CM PtP - Configurations for point-to-point connections

60

Function Manual, 12/2017, A5E37509394-AC

Configuring / parameter assignment 4.5 Communication using USS

frame structure
Each frame begins with a start character (STX), followed by the length specification (LGE) and the address byte (ADR). The data field comes after that. The frame ends with the block check character (BCC). The frame length includes the user data (quantity n), the address byte (ADR) and the data verification character (BCC).

STX

LGE

ADR

1

2

...

N

BCC

For single-word (16-bit) data, the high byte is sent first followed by the low byte. Correspondingly, with double-word data the high word is sent first, followed by the low word. The length of a frame is specified in bytes.

Data encryption
The data is encrypted as follows:  STX: 1 byte, start of text, 02H  LGE: 1 byte, contains the frame length as a binary number  ADR: 1 byte, contains the slave address and frame type in binary code  Data fields: One byte each, content depending on job  BCC: 1 byte, block check character

Data transmission procedure
The master ensures cyclic data transmission in frames. The master addresses all slave devices one after another with a job frame. The nodes addressed respond with a response frame. In accordance with the master-slave procedure, the slave must send the response frame to the master after it has received the job frame. Only then can the master address the next slave.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

61

Configuring / parameter assignment 4.5 Communication using USS

Data field in the frame
The data field is divided into two areas: the parameter area (PKW) and the process data area (PZD).

STX LGE ADR Parameter (PKW)

Process data (PZD)

BCC

 Parameter area (PKW)
The PKW area handles parameter transmission between two communication partners (e.g., controller and drive). This involves, for example, reading and writing parameter values and reading parameter descriptions and the associated text. The PKW interface generally contains jobs for operation and display, maintenance and diagnostics.
 Process data area (PZD)
The PZD area consists of signals that are required for automation:
­ Control words and setpoints from the master to the slave
­ Status words and actual values from the slave to the master
The contents of the parameter area and process data area are defined by the slave drives.
For additional information on this, refer to the drive documentation.

4.5.3

Overview of functions

Transmission sequence
The instructions process the data transmission cyclically with up to 16 drive slaves. Only one job is active for each drive at any one time.

Performance features:
 Creation of data storage areas for communication, depending on the bus configuration  Execution and monitoring of PKW jobs  Monitoring of the complete system and troubleshooting  Communication with the CPU  Access to the drive functions  Reading the drive parameters  Writing the drive parameters

CM PtP - Configurations for point-to-point connections

62

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions

5

5.1

Overview of point-to-point programming

Data exchange using Freeport or 3964(R) communication
You must make the send data available in data blocks or in the bit memory address area in the user program of the corresponding CPU. A receive buffer is available in the communication module for the receive data. A corresponding data block is set up in the data block.
In the user program of the CPU, the following instructions carry out the data transfer between the CPU and the communication module.
 Send_P2P
 Receive_P2P
The receive buffer can be deleted with the instruction Receive_Reset.

Dynamic configuration by means of the user program
As an alternative to or in addition to the parameter assignment of the communication module interface described in section Configuring / parameter assignment of a communication module (Page 37), it may be advisable in certain application areas to set up the communication dynamically, i.e., program-controlled by a specific application.
All parameters assigned in the properties dialog of the communication module can also be changed during runtime by means of one of the following "Config" instructions:
Port_Config, Send_Config, Receive_Config, P3964_Config

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

63

Programming - communication using instructions 5.1 Overview of point-to-point programming
Program calls for point-to-point communication - sequence
The figure below shows the function of the point-to-point instructions for communication between the user program and communication partner.

PtP instructions

Application
Data exchange between CPU, communication module and communication partner (communication)

Instruction
Send_P2P (Page 87)

Receive_P2P (Page 91)

Description
The instruction Send_P2P (send point-to-point data) can be used to send data to the communication partner.
Call up the instruction Send_P2P to send data using the Freeport protocol. You have to call the instruction cyclically until you receive a corresponding acknowledgement at the output parameters of the instruction.
Note: During parameter assignment of the XON/XOFF data flow control, user data may not contain any of the configured XON or XOFF characters. Default settings are DC1 = 11H for XON and DC3 = 13H for XOFF.
The instruction Receive_P2P (receive point-to-point data) can be used to pick up the messages received in the communication module from a communication partner.
Call the Receive_P2P instruction cyclically to receive data using the Freeport protocol. The instruction indicates at the NDR parameter if new received data is available.
To signal the start and end of a message transmission, you need to define criteria in the Freeport protocol which identify the start and end of the message.

CM PtP - Configurations for point-to-point connections

64

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.1 Overview of point-to-point programming

Application

Instruction

Deletion of the receive Receive_Reset

buffer

(Page 93)

Dynamic parameter assignment of the interface or the protocol (optional)

Port_Config (Page 75)
Send_Config (Page 78)

Receive_Config (Page 80)

P3964_Config (Page 85)

Operation of RS232 accompanying signals
Enable Modbus CRC support and diagnostic interrupt

Signal_Get (Page 94)
Signal_Set (Page 96)
Get_Features (Page 98)
Set_Features (Page 100)

Description
The instruction Receive_Reset (delete receive buffer) allows you to clear the receive buffer of the communication module.
You can use the Port_Config instruction (port configuration) to configure basic interface parameters, such as the data transmission rate, parity and data flow control dynamically through your user program.
With the instruction Send_Config(send configuration) you can configure serial send parameters, such as RTS ON delay / RTS OFF delay, dynamically for a point-to-point communication interface.
The instruction Receive_Config (receive parameter assignment) allows you to dynamically assign serial receive parameters to a communication module.
This instruction configures the conditions that specify the start and the end of a received message.
The instruction P3964_Config(configure protocol) can be used to dynamically configure protocol parameters of the procedure 3964(R), such as character delay time, priority and block check using your program.
With the Signal_Get instruction (get RS232 signals) you can read the current states of the RS232 signals.
With the Signal_Set instruction (get RS232 signals), you can set the states of the RS232 signals DTR and RTS.
You can use the instruction Get_Features(get extended functions) to get information on the Modbus support and on generating diagnostic alarms.
If supported by the module, you can use the instruction Set_Features(set extended functions) to activate the generation of diagnostic alarms.

Procedure for setting up Freeport or 3964(R) communication
Requirement: The configuration and parameter assignment of a CPU and a communication module in the device view and in the properties dialog of the communication module are complete.
1. In the project navigation for the CPU select the folder "Program blocks" and open the Main (OB1) in the folder by double-clicking it. The program editor opens.
2. From the "Instructions" task card, "Communication" area select the instructions Send_P2P and Receive_P2P and drag-and-drop them into a network of the Main (OB1).
3. Configure the instructions in accordance with your specifications.
4. Download the hardware configuration and the user program to the CPU.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

65

Programming - communication using instructions 5.2 Overview of Modbus programming

5.2

Overview of Modbus programming

Program calls for Modbus communication - sequence
The figure below shows the function of the Modbus instructions for communication between user program and Modbus device. (The instructions Send_P2P, Receive_P2P and the Config instruction are required downstream).

Modbus instructions

Application

Instruction

Data exchange

Modbus_Master

between user pro- (Page 125)

gram and Modbus

device (communica-

tion)

Modbus_Slave

(Page 133)

Parameter assignment of the interface and the protocol (mandatory)

Modbus _Comm_Load (Page 120)

Description
The Modbus_Master instruction allows you to communicate as Modbus master by means of the PtP port.
The CPU can be used as Modbus RTU master device with the Modbus_Master instruction for communication with one or several Modbus slave devices.
The Modbus_Slave instruction allows you to communicate as Modbus slave by means of the PtP port.
The CPU can be used as Modbus RTU slave device with the Modbus_Slave instruction for communication with one Modbus master device.
The instruction Modbus_Comm_Load allows you to configure the port of the communication module for Modbus RTU.
You have to run Modbus_Comm_Load to set up PtP port parameters, such as data transmission rate, parity and flow control. Once you have configured the interface for the Modbus RTU protocol, it can only be used by the instruction Modbus_Master or the instruction Modbus_Slave .

Note Alternative use of Modbus_Slave and Modbus_Master A communication module can be operated either as master or as slave.

CM PtP - Configurations for point-to-point connections

66

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.3 Overview of USS programming
Procedure for setting up Modbus communication
Requirement: The configuration and parameter assignment of a CPU and a communication module in the device view and in the properties dialog of the communication module are complete.
1. In the project navigation for the CPU select the folder "Program blocks" and open the Main (OB1) in the folder by double-clicking it. The program editor opens.
2. From the "Instructions" task card, "Communication" area select the instructions for Modbus communication in accordance with your task and drag-and-drop them into a network of the Main (OB1):
­ The instruction Modbus_Comm_Load configures the port of the communication module for Modbus communication.
The Modbus_Comm_Load must be called in Main (OB1) until DONE (or ERROR) is reported.
­ The instruction Modbus_Master is used for the Modbus master functionality.
­ The instruction Modbus_Slave is used for the Modbus slave functionality.
3. Configure the instructions in accordance with your specifications.
4. Download the hardware configuration and the user program to the CPU.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

67

Programming - communication using instructions 5.3 Overview of USS programming

5.3

Overview of USS programming

Program calls for USS communication - sequence
The figure below shows the function of the USS instructions for communication between user program and USS drive. (The instructions Send_P2P, Receive_P2P and the Config instruction are required downstream).

USS instructions

Application
Data communication between CPU, communication module and USS drive

Instruction
USS_Port_Scan (Page 172)

Description
The USS_Port_Scan instruction allows you to communicate via a communication module with up to 16 drives using a USS network (must be called cyclically).
The instruction USS_Port_Scan controls the communication between CPU and the drives by means of the PtP communication port. A communication with the drive is processed every time you call this function. The instruction USS_Port_Scan is required once:
Since most drives features a configurable internal function that monitors the integrity of the communication based on a timeout, the instruction USS_Port_Scan should be called from a time-controlled OB.

CM PtP - Configurations for point-to-point connections

68

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.3 Overview of USS programming

Application
Exchange data with USS drive

Instruction
USS_Drive_Control (Page 176)

Read or modify parame- USS_Read_Param

ters in USS drive

(Page 180)

USS_Write_Param (Page 182)

Description
The USS_Drive_Control instruction allows you to prepare the send data for a drive and to display the received data.
The inputs and outputs of the instruction correspond to the states and operating functions of the drive. The USS_Drive_Control instruction must be called once for each drive. Only one common instance DB is required for all calls of the instruction USS_Drive_Control for a USS network. Interconnect all calls of the instructions USS_Drive_Control for a USS network with the same instance DB.
The USS_Drive_Control instruction should be called from the cyclic Main (OB1) of the main program.
The USS_Read_Param instruction allows you to read parameters from the drive.
You use the USS_Read_Param instruction to read the operating parameters of the drive that controls the internal drive functions.
The USS_Read_Param instruction should be called from the cyclic Main (OB1) of the main program.
The USS_Write_Param instruction allows you to change parameters in the drive.
The USS_Write_Param instruction should be called from the cyclic Main (OB1) of the main program.

Procedure for setting up USS communication
Requirement: The configuration and parameter assignment of a CPU and a communication module in the device view and in the properties dialog of the communication module are complete.
1. In the project tree for the CPU, select the "Program blocks" folder and open the desired time-controlled OB by double-clicking it. The program editor opens.
2. From the "Instructions" task card, "Communication" area select the instruction USS_Port_Scan and drag-and-drop it into a network of a time-controlled OB.
The instruction USS_Port_Scan allows you to communicate by means of the USS network.
3. In the project navigation for the CPU select the folder "Program blocks" and open the Main (OB1) in the folder by double-clicking it. The program editor opens.
4. From the "Instructions" task card, "Communication" area select the instructions for USS communication in accordance with your task and drag-and-drop them into a network of the Main (OB1):
­ The instruction USS_Drive_Control is used for data exchange with the drive.
­ The instruction USS_Read_Param is used for reading parameters from the drive.
­ The instruction USS_Write_Param is used for changing parameters in the drive.
5. Configure the instructions in accordance with your specifications.
6. Download the hardware configuration and the user program to the CPU.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

69

Programming - communication using instructions 5.4 Instructions

5.4
5.4.1 5.4.1.1

Instructions
Point-to-point
Overview of Freeport communication
STEP 7 offers extended instructions that can be used for Freeport communication with a protocol specified in the user program. These instructions can be divided into two categories:  Configuration instructions  Communication instructions
Note CPU capacity The Freeport instructions communicate with the communication modules by reading or writing data records. When using the instructions, you should therefore check the capacity of the CPU for reading and writing data records. If several instructions need to read or write data records simultaneously on a CPU, the user program may need to create a time offset between the calls of each instruction.

Configuration instructions
Before the user program can start the Freeport communication, the communication interface and the parameters for sending and receiving of data must be configured.
The interface configuration and the data configuration can be set for each CM in the device configuration or with the following instructions of your user program:  Port_Config (Page 75)  Send_Config (Page 78)  Receive_Config (Page 80)  P3964_Config (Page 85)
NOTICE
Device configuration <-> Configuration instructions The device configuration parameters are transferred to the CM upon each Power On of the CPU (return of voltage). The parameters of the configuration instructions are transferred to the CM as defined in your user program. The parameters of the device configuration are not synchronized with the parameters of the configuration instructions, which means the parameters of the configuration instructions are not applied to the CPU device configuration. With your user program, you determine the parameters that apply in the CM and when they apply.

CM PtP - Configurations for point-to-point connections

70

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
Communication instructions
The user program uses the instructions for Freeport communication to send data to and receive data from the communication interfaces. The CMs send data to and receive data from the communication stations.  Send_P2P (Page 87)  Receive_P2P (Page 91)
Note Data consistency · If the data to be sent is transmitted consistently, it cannot be changed after the positive
edge at the REQ parameter until DONE has been set by the Send_P2P instruction. · If the receive data is to be read consistently, it may only be evaluated in the cycle in
which NDR = TRUE.
The receive buffer can be reset with additional instructions and special RS232 signals can be queried and set.  Receive_Reset (Page 93)  Signal_Get (Page 94)  Signal_Set (Page 96) The following instructions let you read or write extended functions, as long as these are supported by the module.  Get_Features (Page 98)  Set_Features (Page 100) All Freeport instructions work asynchronously. The instructions must therefore be called until the DONE output parameter indicates that execution is complete. The user program can determine the send and receive status with the help of the query architecture. Send_P2P and Receive_P2P can be run at the same time. The communication modules buffer the send and receive data as required until a module-specific maximum buffer size has been reached.
Note Resolution of bit times The number of bit times is specified with the configured data transmission rate for different parameters. Specifying the parameter in bit times makes it independent of the data transmission rate. All parameters with unit of bit times can be specified with a maximum number of 65535.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

71

Programming - communication using instructions 5.4 Instructions

5.4.1.2

Using the instructions
The Freeport instructions must be called cyclically to query received data or the end of transmission for a send process. Depending on the data volume, data transmission may take place over several calls (program cycles). If a command is completed with DONE = TRUE or NDR = TRUE, it has been executed without errors.
Note Backing up STATUS
The DONE, NDR, ERROR and STATUS parameters are only available for one block cycle. To display the STATUS, you should therefore copy it to a free data area.

Master Slave
72

Typical sequence for a master: 1. The Send_P2P instruction triggers transmission to the CM.
Data transmission is initiated by a positive edge at the REQ input. 2. The Send_P2P instruction is executed in subsequent cycles to query the status of the
transmission process. 3. When the Send_P2P instruction signals that transmission is complete at the DONE
output, the user code can prepare the receipt of the answer. 4. The Receive_P2P instruction is run repeatedly to query an answer. If the CM has
acquired response data, the Receive_P2P instruction copies the response to the CPU and signals that new data has been received at the NDR output. 5. The user program can process the response. 6. Back to step 1 and repetition of the sequence.
Typical sequence for a slave: 1. The user program runs the Receive_P2P instruction in each cycle. 2. If the CM has received a request, the Receive_P2P signals that new data is available at
the NDR output and the request is copied to the CPU. 3. The user program processes the request and creates a response. 4. The response is returned to the master with the Send_P2P instruction. 5. The Send_P2P instruction must be run repeatedly to ensure that the send process is
actually taking place. 6. Back to step 1 and repetition of the sequence. The slave must ensure that Receive_P2P is called up often enough so that a transmission can be received by the master before it cancels the process due to a timeout while waiting for the response. To do so, the user program Receive_P2P can be called from within a cycle OB whose cycle time is sufficiently short so that the master can receive a transmission before the timeout setting expires. If the OB cycle time is set so that two runs can take place during the timeout setting of the master, the user program can receive all transmissions without any losses.
CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

5.4.1.3

General parameters for Freeport operations

Table 5- 1 General input parameters of the Freeport instructions

Parameter REQ
PORT

Description
Data transmission is initiated by a positive edge at the REQ input. Another edge at REQ may only be generated after the command has been completed (DONE or ERROR). Data transmission can take several calls (program cycles), depending on the data volume.
When you add a Freeport instruction to your program, STEP 7 prompts you to specify the instance DB (or to have STEP 7 create a corresponding instance DB). Use a unique DB for each PtP instruction call.
A port address is assigned during configuration of the communication module. The PORT parameter communicates assignment to a specific communication module to the instruction.
You can select a symbolic name for the standard port after the configuration. The assigned CM port value is the "Hardware ID" property of the device configuration with S7-1200/1500 and the "Input address" with S7300/400. The symbolic port name is assigned in the symbol table.
The output parameters DONE, NDR, ERROR and STATUS of the Freeport instructions indicate the execution status of the Freeport functions.

Table 5- 2 Output parameters DONE, NDR, ERROR and STATUS

Parameter Data type

DONE

Bool

NDR

Bool

ERROR

Bool

STATUS Word

Standard FALSE FALSE FALSE
16#0000 or 16#7000

Description
Set to TRUE for one cycle to indicate that the last request was completed with errors; otherwise FALSE.
Set to TRUE for one cycle to indicate that new data has been received; otherwise FALSE.
Set to TRUE for one cycle to indicate that the last request was completed with errors; the corresponding error code can be found in STATUS; otherwise FALSE.
Result status:
· If the DONE or NDR bit is set, STATUS is set to 0/16#7000 or to a specific error code.
· If the ERROR bit is set, STATUS displays an error code.
· If none of the bits listed above is set, the instruction can return status results that describe the current status of the function.
The value in STATUS is valid until you call this instruction again (with one and the same port address).

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

73

Programming - communication using instructions 5.4 Instructions

Table 5- 3 In/out parameter COM_RST

Parameter Data type COM_RST Bool

Standard FALSE

Description
Initialization of the instruction
The instruction is initialized with TRUE. COM_RST is then set back to FALSE.
Note: You must set COM_RST to TRUE during startup and should not subsequently change the parameter (that is, do not assign a value when you call the instruction). COM_RST is reset by the instruction following initialization of the instance DB.

Note
Please note that the parameters DONE, NDR, ERROR and STATUS are only set for one cycle.

Table 5- 4 Shared error codes

Error code 16#0000 16#7000 16#7001 16#7002 16#8x3A

Description No error Function not active Initial call after request started. Subsequent call after request started. Invalid pointer in parameter x

Table 5- 5 Shared error classes of the STATUS parameter

Description of the class Port configuration
Send configuration Receive configuration Sending Receiving RS232 accompanying signals

Error classes 16#81Ax
16#81Bx 16#81Cx 16#81Dx 16#81Ex 16#81Fx

Description For the description of frequent errors in the interface configuration For the description of errors in the send configuration For the description of errors in the receive configuration For the description of runtime errors during sending For the description of runtime errors during receiving For the description of errors in connection with signal processing

CM PtP - Configurations for point-to-point connections

74

Function Manual, 12/2017, A5E37509394-AC

5.4.1.4

Programming - communication using instructions 5.4 Instructions
Port_Config: Configure PtP communication port
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Port_Config instruction (port configuration) allows you to change parameters such as the data transmission rate in runtime using your program. The data pending in the CM is deleted with the execution of Port_Config.
Configuration changes of Port_Config are saved on the CM and not in the CPU. When the voltage returns, the CM is configured with the data saved in the device configuration.

Parameters

Parameter REQ PORT
PROTOCOL

Declaration IN IN
IN

Data type

S7-

S7-

1200/1500

300/400/ WinAC

Bool

PORT (UInt)

Word

UInt

Word

Default FALSE 0
0

Description
Starts the transmission of data to the CM upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the
device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN. Protocol · 0 = Freeport protocol · 1 = Protocol 3964(R)

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

75

Programming - communication using instructions 5.4 Instructions

Parameter

Declaration

BAUD

IN

PARITY

IN

DATABITS IN STOPBITS IN FLOWCTRL IN

XONCHAR IN

XOFFCHAR IN

WAITIME

IN

Data type

S71200/1500
UInt

S7300/400/ WinAC
Word

UInt

Word

UInt

Word

UInt

Word

UInt

Word

Char

Char

UInt

Word

Default Description

6

Data transmission rate of the port:

· 1 = 300 bps

· 2 = 600 bps

· 3 = 1200 bps

· 4 = 2400 bps

· 5 = 4800 bps

· 6 = 9600 bps

· 7 = 19200 bps

· 8 = 38400 bps

· 9 = 57600 bps

· 10 = 76800 bps

· 11 = 115200 bps

1

Parity of the port:

· 1 = no parity

· 2 = even parity

· 3 = odd parity

· 4 = mark parity

· 5 = space parity

· 6 = any

1

Bits per character:

· 1 = 8 data bits

· 2 = 7 data bits

1

Stop bits:

· 1 = 1 stop bit

· 2 = 2 stop bits

1

Flow control:

· 1 = no flow control

· 2 = XON/XOFF

· 3 = Hardware RTS always ON

· 4 = Hardware RTS switched

· 5 = Hardware RTS always ON, ignore DTR/DSR

16#0011 Specifies the character that serves as XON character. It is typically a DC1 character (11H). This parameter is only evaluated when software flow control is active.

16#0013 Specifies the character that serves as XOFF character. It is typically a DC3 character (13H). This parameter is only evaluated when software flow control is active.

2000

Specifies how long to wait for an XOFF character after receipt of an XON character or how long to wait for a CTS = ON signal after CTS = OFF (0 to 65535 ms). This parameter is only evaluated when flow control is active.

CM PtP - Configurations for point-to-point connections

76

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter MODE
LINE_PRE
BRK_DET COM_RST DONE ERROR STATUS

Declaration IN
IN
IN IN/OUT OUT OUT OUT

Data type

S71200/1500
USInt

S7300/400/ WinAC
Byte

USInt

Byte

USInt

Byte

---

Bool

Bool Bool Word

Default Description

0

Operating mode

Valid operating modes are:

· 0 = Full duplex (RS232)

· 1 = Full duplex (RS422) four-wire mode (point-topoint)

· 2 = Full duplex (RS 422) four-wire mode (multipoint master; CM PtP (ET 200SP))

· 3 = Full duplex (RS 422) four-wire mode (multipoint slave; CM PtP (ET 200SP))

· 4 = Half duplex (RS485) two-wire mode 1)

0

Receive line initial state

Valid initial states are:

· 0 = "No" initial state 1)

· 1 = signal R(A)=5 V, signal R(B)=0 V (break detection): Break detection is possible with this initial state. Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)".

· 2 = signal R(A)=0 V, signal R(B)=5 V: This default setting corresponds to the idle state (no active send operation). No break detection is possible with this initial state.

0

Break detection

The following settings are permitted:

· 0 = break detection deactivated

· 1 = break detection activated

FALSE Initialization of the instruction

The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.

FALSE TRUE for one cycle after the last request has been completed without errors

FALSE TRUE for one cycle after the last request has been completed with errors

16#7000 Error code (see Error messages (Page 102))

1) Required setting for the use of PROFIBUS cables with CM 1241 for RS485

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

77

Programming - communication using instructions 5.4 Instructions

5.4.1.5

Send_Config: Configure PtP sender
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Send_Config instruction (send configuration) allows you to change send parameters in runtime using your program (conditions that identify the start and the end of the data to be sent). Any data pending in a CM is deleted when Send_Config is executed.
Configuration changes of Send_Config are saved on the CM and not in the CPU. The parameters saved in the device configuration are restored once the voltage returns to the CPU or the communication module.

Parameters

Parameter
REQ PORT

Declaration
IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

IN

PORT

Word

0

(UInt)

RTSONDLY IN

UInt

Word

0

RTSOFFDLY IN

UInt

Word

0

Description%%
Activates the configuration change upon a positive edge at this input. Specifies the communication module which is used for the communication:
· For S7-1500/S7-1200: "HW identifier" from the device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there.
· For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.
Number of milliseconds to wait after activation of RTS before a transmission of send data is started. This parameter is only valid if the hardware flow control is active. The valid range is 0 to 65535 ms. The value 0 deactivates the function. Number of milliseconds to wait after transmission of send data before RTS is deactivated: This parameter is only valid if the hardware flow control is active. The valid range is 0 to 65535 ms. The value 0 deactivates the function.

CM PtP - Configurations for point-to-point connections

78

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter
BREAK
IDLELINE
USR_END
APP_END COM_RST DONE ERROR STATUS

Declaration
IN

Data type

S71200/1500

S7300/400/ WinAC

UInt

Word

Default 0

IN

UInt

Word

0

IN

STRING[2]

0

IN

STRING[5]

IN/OUT ---

Bool

OUT OUT OUT

Bool Bool Word

0 FALSE
FALSE FALSE 16#7000

Description%%
This parameter specifies that a BREAK is to be sent at the start of each frame for the specified number of bit times. The maximum is 65535 bit times. The value 0 deactivates the function. This parameter specifies that the line is to remain in idle for the specified number of bit times prior to the start of each frame. The maximum is 65535 bit times. The value 0 deactivates the function. Input of end delimiters. No more than 2 end delimiters can be configured. All data including the end delimiter(s) is sent, independent of the configured frame length. Input of characters to be appended. You can append up to 5 characters. Initialization of the instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. TRUE for one cycle after the last request has been completed without errors TRUE for one cycle after the last request has been completed with errors Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

79

Programming - communication using instructions 5.4 Instructions

5.4.1.6

Receive_Config: Configure PtP recipient
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Receive_Config instruction (receive configuration) allows you to change receive parameters in runtime using your program. This instruction configures the conditions that mark the start and the end of received data. Any data pending in a CM is deleted when Receive_Config is executed.
Configuration changes of Receive_Config are saved non-retentive on the CM. The parameters saved in the device configuration are restored once the voltage returns to the CPU or the communication module. The Receive_Config instruction therefore must be called again from the user program when the voltage returns to the CPU or to the communication module in order to overwrite the parameters stored in the device configuration.

Parameters

Parameter
REQ PORT

Declaration
IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

IN

PORT

Word

0

(UInt)

RECEIVE

IN

_CONDITIONS

Variant

COM_RST

IN/OUT ---

Any Bool

FALSE

Description
Activates the configuration change upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.
The data structure of Receive_Conditions specifies the start and end conditions used to identify the start and end of a frame. Initialization of the instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.

CM PtP - Configurations for point-to-point connections

80

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter
DONE ERROR STATUS

Declaration
OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

OUT

Bool

OUT

Word

Default Description
FALSE TRUE for one cycle after the last request has been completed without errors
FALSE TRUE for one cycle after the last request has been completed with errors
16#7000 Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

Start conditions for the Receive_P2P instruction
The Receive_P2P instruction uses the configuration specified in the device configuration or by the Receive_Config instruction to determine the start and end of Freeport communication frames. The start of the frame is defined by the start conditions. The start of the frame can be determined with one or several start conditions. If Break as well as Idle Line is activated, Break must be met first and then Idle Line as well. After that, one of the other conditions (start character or start sequence) is sufficient to start data transmission. The start condition "Any character" cannot be combined with other start conditions.

Data type structure of the Receive_Conditions parameter, part 1 (start conditions)

Table 5- 6 Structure of Receive_Conditions for start conditions

Parameter START .STARTCOND
START .IDLETIME START .STARTCHAR

Declaration IN
IN IN

Data type Default

Word

16#0002

Word

16#0028

Byte

16#0002

Description Specifying the start condition
· 01H - detection of the start character
· 02H - Any character
· 04H - detection of a line break
· 08H - detection of an idle line
· 10H - detection of start sequence 1
· 20H - detection of start sequence 2
· 40H - detection of start sequence 3
· 80H - detection of start sequence 4 The start conditions can be combined by adding the values together. The number of bit times required in the idle state for a new frame start to be detected (default value: W#16#28). Only in connection with the condition "Detection of an idle line". 0 to FFFF The start character for the condition "Start character". (default value: B#16#2)

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

81

Programming - communication using instructions 5.4 Instructions

Parameter
START SEQ[1].CTL

Declaration Data type Default

IN

Byte

0

START.SEQ[1] IN .STR[1] .. START.SEQ[1] .STR.[5]
START.SEQ[2] IN .CTL
START.SEQ[2] IN .STR[1] .. START.SEQ[2] .STR.[5]
START.SEQ[3] IN .CTL
START.SEQ[3] IN .STR[1] .. START.SEQ[3] .STR.[5]
START.SEQ[4] IN .CTL
START.SEQ[4] IN .STR[1] .. START.SEQ[4] .STR.[5]

Char[5] 0

Byte

0

Char[5] 0

Byte

0

Char[5] 0

Byte

0

Char[5] 0

Description Start sequence 1, deactivate/activate comparison for each character: (default value: B#16#0) These are the activation bits for each character of the start character string. · 01H - character 1 · 02H - character 2 · 04H - character 3 · 08H - character 4 · 10H - character 5 When a bit is deactivated for a specific character, this means that each character in this position in the character string represents a valid start character string (e.g. 1FH = all 5 characters interpreted). Start sequence 1, start character (5 characters).
Start sequence 2, deactivate/activate comparison for each character. Default value: B#16#0) Start sequence 2, start character (5 characters).
Start sequence 3, deactivate/activate comparison for each character. Default value: B#16#0 Start sequence 3, start character (5 characters).
Start sequence 4, deactivate/activate comparison for each character. Default value: B#16#0 Start sequence 4, start character (5 characters),

Example

Have a look at the following received data in hexadecimal coding: "68 10 aa 68 bb 10 aa 16". The configured start character strings are available in the following table. Start character strings are evaluated once the first character 68H has been successfully received. After the fourth character has been successfully received (the second 68H), start condition 1 has been met. Once the start conditions have been met, the evaluation of the end conditions starts.
Processing of the start character string can be canceled due to different errors in parity, framing or time intervals between characters. These errors prevent receipt of the data because the start condition has not been met (an error message is output).

Table 5- 7 Start conditions

Start condition 1 2 3 4

First character 68H 10H dcH e5H

First character +1 xx aaH aaH xx

First character +2 xx xx xx xx

First character +3 68H xx xx xx

First character +4 xx xx xx xx

CM PtP - Configurations for point-to-point connections

82

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

End conditions for the Receive_P2P instruction
The end of a frame is defined by the first occurrence of one or more configured end conditions.
You can configure the end conditions either in the properties of the communication interface in the device configuration, or with the Receive_Config instruction. The receive parameters (start and end conditions) are reset to the settings in the device configuration each time the voltage returns to the CPU or the communication module. When the STEP 7 user program executes Receive_Config, the settings are set to the parameters of Receive_Config .

Data type structure of the Receive_Conditions parameter, part 2 (end conditions)

Table 5- 8 Structure of Receive_Conditions for end conditions

Parameter END.ENDCOND

Declaration Data

type

IN

Word

Default 0

END.FIXLEN

IN

END.MAXLEN

IN

END.N

IN

END.LENGTHSIZE IN END.LENGTHM IN

END.RCVTIME

IN

Word 1 Word 1 Word 0 Word 0 Word 0 Word 200

END.MSGTIME IN END.CHARGAP IN

Word 200 Word 12

Description
This parameter specifies the condition for the frame end:
· 01H - response timeout
· 02H - message timeout
· 04H - character delay time
· 08H - maximum frame length
· 10H - read message length from message (N+LEN+M)
· 20H - end sequence
· 40H - fixed frame length
Fixed frame length: Only used if the end condition "Fixed frame length" has been selected. 1 to 4000 bytes (up to 4 KB depending on the module)
Maximum frame length: Only used if the end condition "Maximum frame length" has been selected. 1 to 4000 bytes (up to 4 KB depending on the module)
Byte position of the length field in the frame. Only used with end condition N+LEN+M. 1 to 4000 bytes (up to 4 KB depending on the module)
Size of the length field (1, 2, or 4 bytes). Only used with end condition N+LEN+M.
Number of characters after the length field that are not included in the value of the length field. This entry is only used with end condition N+LEN+M. 0 to 255 bytes
Specify the wait time for the first received character after a frame has been sent. The receive instruction is terminated with an error message if a character is not received within the specified time. This information is used only with the condition "Response timeout". (0 to 65535 ms). Note: This parameter cannot be used as sole end criterion but only in connection with at least one other end condition.
Specify how long to wait for receipt of the complete frame after receipt of the first character. This parameter is used only if the condition "Message timeout" is selected. (0 to 65535 ms)
Enter the maximum number of bit times between characters. If the number of bit times between characters exceeds the specified value, the end condition has been met. This information is used only with the condition "Character delay time". (0 to 65535 bit times)

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

83

Programming - communication using instructions 5.4 Instructions

Parameter END.SEQ.CTL

Declaration IN

Data type Byte

Default 0

END.SEQ.STR[1] IN .. END.SEQ.STR[5]

Char[5] 0

Description
Character sequence 1, deactivate/activate comparison for each character: These are the activation bits for each character of the end character string. Character 1 is bit 0, character 2 is bit 1, ..., character 5 is bit 4. If a bit is deactivated for a specific character, this means that each character represents a congruence at this position of the character string. Character string 1, start character (5 characters)

Table 5- 9 General parameters of the Receive_P2P instruction

Parameter
GENERAL .MBUF_SIZE

Declaration Data type Default

IN

Byte

255

GENERAL

IN

.OW_PROT

Byte

0

GENERAL

IN

.CLR_MBUF

Byte

0

Description
Input number of frames that are to be buffered in the receive buffer of the CM. If no other conditions are active that influence the reaction of the receive buffer (prevent timeout, data flow control), additional frames are discarded once the limit has been reached. (1 to 255 frames)
Activates the no overwriting function of the buffered frame if the CM receives a new frame and the receive buffer of the CM was not yet read. This step prevents already buffered received frames from being lost.
· 0 - not activated
· 1 - activated
Activates deletion of the receive buffer during CPU startup. The receive buffer is automatically deleted when the CPU switches from STOP to RUN. The receive buffer only contains frames received after CPU startup.
· 0 - not activated
· 1 - activated

CM PtP - Configurations for point-to-point connections

84

Function Manual, 12/2017, A5E37509394-AC

5.4.1.7

Programming - communication using instructions 5.4 Instructions
P3964_Config: Configuring the 3964(R) protocol
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The P3964_Config instruction (protocol configuration) allows you to change protocol parameters for 3964(R), such as character delay time, priority and block check, in runtime using your program.
Configuration changes of P3964_Config are saved on the CM and not in the CPU. The parameters saved in the device configuration are restored once the voltage returns to the CPU or the communication module.

Parameters
Parameter REQ PORT
BCC Priority

Declaration
IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

IN

PORT

Word

0

(UInt)

IN

USInt

Byte

1

IN

USInt

Byte

1

Description
Starts the instruction upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the
device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN. Activates/deactivates the use of the block check · 0 = without block check · 1 = with block check Selection of the priority · 0 = low priority · 1 = high priority

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

85

Programming - communication using instructions 5.4 Instructions

Parameter
CharacterDelayTime AcknDelayTime
BuildupAttempts
RepetitionAttempts COM_RST
DONE ERROR STATUS

Declaration
IN IN
IN IN IN/OUT OUT OUT OUT

Data type

S71200/1500

S7300/400/ WinAC

UInt

Word

UInt

Word

USInt

Byte

USInt

Byte

---

Bool

Bool Bool Word

Default Description

16#00DC 16#07D0
16#0006 16#0006 FALSE FALSE FALSE 16#7000

Setting the character delay time (depending on the set data transmission rate) (default value: 220 ms)
1 ms to 65535 ms
Setting the acknowledgment delay time (depending on the set data transmission rate) (default value: 2000 ms)
1 ms to 65535 ms
Setting the number of connection attempts (default value: 6 connection attempts) 1 to 255
Setting the number of transmission attempts (default value: 6 connection attempts) 1 to 255
Initialization of the instruction
The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.
TRUE for one cycle after the last request has been completed without errors
TRUE for one cycle after the last request has been completed with errors
Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

86

Function Manual, 12/2017, A5E37509394-AC

5.4.1.8

Programming - communication using instructions 5.4 Instructions
Send_P2P: Sending data
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Send_P2P instruction (send point-to-point data) starts the transmission of data and transmits the contents of the assigned buffer to the communication module. The CPU program is still being executed while the CM sends the data with the data transmission rate. Only one send instruction per communication module may be pending at any time. The CM signals an error if a second Send_P2P instruction is executed while the CM is already sending a frame.

Parameters

Parameter Declaration

REQ

IN

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

Default FALSE

PORT

IN

PORT

Word

0

(UInt)

Description
Starts the transmission of data to the CM upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

87

Programming - communication using instructions 5.4 Instructions

Parameter Declaration
BUFFER IN

LENGTH IN

COM_RST IN/OUT

DONE

OUT

ERROR OUT

STATUS OUT

Data type

S71200/1500
Variant

S7300/400/ WinAC
Any

UInt

Word

---

Bool

Bool Bool Word

Default Description

0
0 FALSE FALSE FALSE 16#7000

This parameter points to the memory area of the send buffer.
Notes:
· Boolean data and Boolean fields are not supported.
· If the send buffer is in the optimized memory area, the maximum permitted length of the sent data is 1024 bytes. Exception: Arrays of Byte, Word or DWord are supported up to a length of 4096 bytes.
· If the send buffer is a String or WString, the content of the string is transferred without the current and maximum length.
Additional information under "Using the BUFFER and LENGTH parameters for communication operations (Page 90)"
Length in bytes of the data to be transferred.
The memory area addressed in the BUFFER parameter is completely transmitted with LENGTH = 0.
Additional information under "Using the BUFFER and LENGTH parameters for communication operations (Page 90)"
Initialization of the Send_P2P instruction
The instruction is initialized with 1. The instruction then resets COM_RST to 0.
Note: The parameter is only available for S7-300/400 instructions.
TRUE for one cycle after the last request has been completed without errors
TRUE for one cycle after the last request has been completed with errors
Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

88

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameters

The DONE and ERROR outputs are in FALSE status when a send instruction is being processed. At the end of the send instruction, one of the DONE or ERROR outputs is set to TRUE for one cycle to signal the status of the send instruction. The error code at the STATUS output can be evaluated when the status of ERROR is TRUE.
The instruction outputs the status 16#7001 when the communication interface accepts the send data. Subsequent executions of Send_P2P output the value 16#7002 if the CM is still sending. At the end of the send instruction, the CM outputs the status 16#0000 for the send instruction (if no error has occurred). Subsequent executions of Send_P2P with REQ = 0 output the status 16#7000 (free).
The diagram below shows the relationship between the output values and REQ. It is based on the assumption that the instruction is called cyclically to check the status of the send process (indicated by the STATUS values).

The figure below shows how the DONE and STATUS parameters are only valid for one cycle if a pulse is pending at the REQ line (for one cycle) to trigger the send instruction.

The figure below shows the relationship of the DONE, ERROR and STATUS parameters in case of an error.

The DONE, ERROR and STATUS values are only valid until Send_P2P is executed again with the same instance DB.

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

89

Programming - communication using instructions 5.4 Instructions

5.4.1.9

Using the BUFFER and LENGTH parameters for communication operations

Interaction of BUFFER and LENGTH parameters for Send_P2P
The minimum data size sent by the Send_P2P instruction is one byte.
The BUFFER parameter specifies the size of the data to be sent if a "0" is passed at the LENGTH parameter during call. The specification of a tag is sufficient for this.
You cannot use the data type Bool or arrays of the Bool type for the BUFFER parameter. If large amounts of data are being transferred we recommend the mapping to the array or structure data types.

Table 5- 10 BUFFER parameter

BUFFER Elementary data type Structure Array
String

Description
When sending: The LENGTH value must include the byte size of this data type.
Example: For a Word value, the LENGTH must be two. For a DWord value or Real value, the LENGTH must be four.
For optimized memory: The maximum permitted length of the BUFFER is 1024 Byte; otherwise 4 KB are permitted depending on the module. For sending: The LENGTH value can include a byte size smaller than the complete byte length of the structure; in this case, only the first LENGTH bytes of the structure from BUFFER are sent.
For optimized memory: If the array data type is not equal to Byte, Word or DWord, the maximum permitted buffer length is 1024 Byte. Depending on the module, up to 4 KB can be transmitted if the memory is not optimized, independent of the data structure.
For sending: The LENGTH value can include a byte size smaller than the complete byte length of the array, whereby, this byte size is a multiple of the byte size of the data element. Example: The LENGTH parameter of an array of the Word type must be a multiple of two and a multiple of four for an array of the Real type.
If LENGTH is specified, the number of array elements is transmitted. If BUFFER includes an array with 15 DWord elements (a total of 60 Bytes), for example, and you specify LENGTH = 20, the first five DWord elements from the array are transmitted.
The LENGTH parameter includes the number or characters to be sent. Only the characters of the String are transmitted. The bytes with the maximum and actual length of the String are not sent.

Table 5- 11 LENGTH parameter

LENGTH = 0
>0

Description The complete content of the memory area specified by BUFFER is transferred. If BUFFER points to a string, the entire content of the string is transferred, without the bytes with the maximum and actual length.
The content up to the configured length of the memory area specified by BUFFER is transferred.

CM PtP - Configurations for point-to-point connections

90

Function Manual, 12/2017, A5E37509394-AC

5.4.1.10

Programming - communication using instructions 5.4 Instructions
Receive_P2P: Receiving data
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Receive_P2P instruction (receive data using point-to-point communication) checks the frames received in the CM. If a frame is available, it is transmitted from the CM to the CPU. A receive error is indicated at the STATUS parameter.

Parameters

DeclaraParameter tion

PORT

IN

Data type

S71200/1500
PORT (UInt)

S7300/400/ WinAC
Word

Default 0

BUFFER IN

Variant

Any

0

Description
Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN. This parameter points to the start address of the receive buffer. This buffer must be large enough to receive the maximum frame length. Note: · Boolean data or Boolean fields are not supported. · If the receive buffer is in the optimized memory area, the maximum permitted length of the received data is 1024 bytes.
Exception: Arrays of Byte, Word or DWord are supported up to a length of 4096 bytes. · If the receive buffer is a String or WString, the received data is written to the content of the string and the current length of the string is set accordingly. Additional information under "Using the BUFFER and LENGTH parameters for communication operations (Page 90)"

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

91

Programming - communication using instructions 5.4 Instructions

DeclaraParameter tion
LENGTH OUT

NDR

OUT

COM_RST IN/OUT

ERROR OUT STATUS OUT

Data type

S71200/1500
UInt

S7300/400/ WinAC Word

Bool ---

Bool

Bool Word

Default Description

0
FALSE FALSE FALSE 16#7000

Length of the frame received in bytes
Additional information under "Using the BUFFER and LENGTH parameters for communication operations (Page 90)"
TRUE for one cycle if new data is available and the instruction has been completed without errors.
Initialization of the instruction
The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.
TRUE for one cycle once the instruction has been completed with an error.
Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

The error code at the STATUS output can be evaluated if the status of ERROR is TRUE. The STATUS value provides the reason for terminating the receive operation in the CM. This is usually a positive value which indicates that the receive operation has been successful and the frame criterion that has been detected. If the STATUS value is negative (the most significant bit of the hexadecimal value is set), the receive operation was terminated due to an error condition, such as a parity, framing or overflow error.

Each communication module can buffer a module-specific number for frames. If several frames are available in the CM, the Receive_P2P instruction outputs the oldest available frame (FIFO).

CM PtP - Configurations for point-to-point connections

92

Function Manual, 12/2017, A5E37509394-AC

5.4.1.11

Programming - communication using instructions 5.4 Instructions
Receive_Reset: Clear receive buffer
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Receive_Reset instruction (reset receiver) clears the receive buffer in the CM.

Parameters

Parameter Declaration

REQ

IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

PORT

IN

PORT

Word

0

(UInt)

COM_RST IN/OUT ---

Bool

FALSE

DONE ERROR

OUT OUT

STATUS OUT

Bool Bool
Word

FALSE FALSE
16#7000

Description
Starts the transmission of data to the CM upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.
Initialization of the instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. TRUE for one cycle means that the last request was completed without errors. TRUE means that the last request was completed with errors. If this output is TRUE, the STATUS output contains the corresponding error codes. Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

93

Programming - communication using instructions 5.4 Instructions

5.4.1.12

Signal_Get: Read status
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Signal_Get instruction (get RS232 signals) reads the current states of the RS232 accompanying signals and displays them at the corresponding instruction outputs.
Note Restriction · This instruction can only be used with CMs RS232 BA and RS232 HF. · If RS232C is set for the operating mode, this instruction can also be used with CM PtP
(ET200SP).

Parameters

Parameter Declaration

REQ

IN

PORT

IN

NDR

OUT

ERROR OUT STATUS OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

PORT (UInt)

Word

Bool
Bool Word

Default FALSE 0
FALSE FALSE 16#7000

Description
Starts the transmission of data to the CM upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.
TRUE for one cycle if the RS232 accompanying signals have been read and the instruction has been completed without errors. TRUE for one cycle once the instruction has been completed with an error Error code (see Error messages (Page 102))

CM PtP - Configurations for point-to-point connections

94

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter Declaration

DTR DSR RTS CTS

OUT OUT OUT OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

Bool

Bool

Bool

Default
FALSE FALSE FALSE FALSE

DCD RING

OUT OUT

Bool Bool

FALSE FALSE

Description
Data device ready, module ready (output) Data device ready, communication station ready (input) Send request, module ready to send (output) Ready to send, communication station can receive data (input) Data carrier signal detected, signal level received Call display, signaling incoming call

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

95

Programming - communication using instructions 5.4 Instructions

5.4.1.13

Signal_Set: Set accompanying signals
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Signal_Set instruction (set RS232 signals) allows you to set the RS232 communication signals.
Note Restrictions · This instruction can only be used with CMs RS232 BA and RS232 HF. · If RS232C is set for the operating mode, this instruction can also be used with CM PtP
(ET200SP).

Parameters

Parameter Declaration

REQ

IN

PORT

IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

PORT (UInt)

Word

Default
FALSE 0

SIGNAL IN

Byte

0

Description
Starts the instruction upon a positive edge of this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN. Selection of the signal to be set (more than one possible): · 01H = RTS · 02H = DTR · 04H = DSR (for interface type DCE only)

CM PtP - Configurations for point-to-point connections

96

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter Declaration

RTS

IN

DTR

IN

DSR

IN

COM_RST IN/OUT

DONE

OUT

ERROR OUT

STATUS OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

Bool

Bool

---

Bool

Bool Bool Word

Default Description

FALSE
FALSE
FALSE FALSE
FALSE FALSE 16#7000

Send request, module ready to send
Set this value at the output (TRUE or FALSE), default value: FALSE
Data terminal ready, module ready
Set this value at the output (TRUE or FALSE), default value: FALSE
Data terminal ready (for DCE interface type only), not used.
Initialization of the instruction
The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.
TRUE for one cycle after the last request has been completed without errors
TRUE for one cycle after the last request has been completed with errors
Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

97

Programming - communication using instructions 5.4 Instructions

5.4.1.14

Get_Features: Get extended functions
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

If supported by the module, you can use the Get_Features instruction (get extended functions) to get information on the ability of the module to support CRC and to generate diagnostic messages.

Parameters

Parameter
REQ PORT

Declaration
IN IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

PORT

Word

NDR

OUT

MODBUS OUT _CRC

DIAG _ALARM

OUT

SUPPLY _VOLT

OUT

COM_RST IN/OUT ---

Bool Bool Bool Bool
Bool

Default Description

FALSE 0
FALSE FALSE

Starts the instruction upon a positive edge of this input.
Specifies the communication module which is used for the communication:
· For S7-1500/S7-1200: "HW identifier" from the device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there.
· For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.
TRUE for one cycle if new data is available and the instruction has been completed without errors
Modbus CRC support

FALSE Generation of diagnostic messages

FALSE Diagnostics for missing supply voltage L+ is available

FALSE

Initialization of the instruction
The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.

CM PtP - Configurations for point-to-point connections

98

Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter
ERROR STATUS

Declaration
OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

OUT

Word

Default Description

FALSE
16#700 0

TRUE for one cycle once the instruction has been completed with an error
Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections

Function Manual, 12/2017, A5E37509394-AC

99

Programming - communication using instructions 5.4 Instructions

5.4.1.15

Set_Features: Set extended functions
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

If supported by the module, you can use the Set_Features instruction (select extended functions) to activate CRC support and the generation of diagnostic messages.

Parameters

Parameter
REQ PORT

Declaration
IN

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

IN

PORT

Word

0

(UInt)

EN_MODBUS IN _CRC

EN_DIAG

IN

_ALARM

EN_SUPPLY IN _VOLT

COM_RST

IN/OUT ---

Bool Bool Bool
Bool

DONE

OUT

Bool

FALSE FALSE FALSE FALSE
FALSE

Description
The instruction to set extended functions is started upon a positive edge at this input. Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the
device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN. Activate Modbus CRC support
Activate generation of diagnostic messages
Enable diagnostics for missing supply voltage L+
Initialization of the instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. TRUE for one execution once the last request is completed without errors

100

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter
ERROR STATUS

Declaration
OUT

Data type

S71200/1500

S7300/400/ WinAC

Bool

Default FALSE

OUT

Word

16#7000

Description
TRUE for one cycle once the instruction has been completed with an error Error code (see Error messages (Page 102))

Additional information about the general parameters is available at "General parameters for Freeport operations (Page 73)".

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

101

Programming - communication using instructions 5.4 Instructions

5.4.1.16

Error messages

Overview of error messages - PtP
The error messages are provided at the STATUS output of an instruction and can be evaluated there or processed in the user program.

Error code Description

Remedy

16#0000 No error

-

RECEIVE status and error codes

16#0094 frame end identified based on the "Receipt of

-

fixed/maximum frame length"

16#0095 frame end identified based on "Message timeout"

-

16#0096

frame end identified based on expiration of the "Char- acter delay time"

16#0097 The frame was aborted because the maximum re-

-

sponse time was reached.

16#0098 frame end identified based on the fulfillment of the

-

"Read message length from message" conditions

16#0099

frame end identified based on the receipt of the "End sequence"

SEND status and error codes

16#7000 Block idle

-

16#7001 Initial call for a new frame: Data transmission initiated -

16#7002 Interim call: Data transmission running

-

16#8085 Invalid length

Select a suitable frame length.

The following are valid (depending on the module): 1-1024/2048/4096 (Byte)

16#8088

The specified length exceeds the range set in the receive buffer.
Note: If the data type STRING has been specified at the BUFFER parameter, this error code also appears if the current string is shorter than the length specified at the LENGTH parameter.

Change the range in the receive buffer or select a frame length which corresponds to the range set in the receive buffer.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

RECEIVE status and error codes

16#7002 Interim call: Data transmission running

-

16#8088

The number of characters received exceeds the number specified at the BUFFER parameter.

Select a suitable frame length.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

102

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Error message codes of the special functions

16#818F

Incorrect parameter number setting (with USS only) Select a suitable parameter number (PARAM). The following numbers are valid: 0-2047

16#8190 Incorrect setting of the CRC calculation

Select a suitable value for the CRC calculation.

The following are valid: deactivated or activated.

Check whether the module addressed supports CRC calculation.

16#8191 Incorrect setting of the diagnostic error interrupt

Select a suitable value for "Diagnostic error interrupt".

The following are valid: Diagnostic error interrupt deactivated or diagnostic error interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

16#8193

The module does not support supply voltage diagnos- Select a suitable value for "Diagnostic interrupt".

tics L+.

The following are permitted: Diagnostic interrupt

deactivated or diagnostic interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

Error message codes of the "Port configuration"

16#81A0 The module does not support this protocol.

Select a valid protocol for the module (PROTOCOL).

16#81A1

The module does not support this data transmission Select a valid data transmission rate for the module

rate.

(BAUD).

16#81A2 The module does not support this parity setting.

Select a suitable value for "Parity" (PARITY).

The following are valid:

· None (1)

· Even (2) · Odd (3)

· Mark (4)

· Space (5) · Any (6)

16#81A3

The module does not support this number of data bits.

Select a suitable value for "Number of data bits" (DATABITS).
The following are valid:

· 7 (2) · 8 (1)

16#81A4

The module does not support this number of stop bits. Select a suitable value for "Number of stop bits" (STOPBITS).
The following are valid:

· 1 (1)

· 2 (2)

16#81A5

The module does not support this type of data flow control.

Select a valid data flow control for the module (FLOWCTRL).

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

103

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81A7 Invalid value for XON or XOFF 16#81AA Invalid operating mode
16#81AB Invalid receive line initial state

16#81AC Invalid value for "Break detection"

16#81AF The module does not support this protocol.

Error codes of the "Send configuration"

16#81B5

More than two end delimiters or end sequence > 5 characters

16#81B6

Send configuration rejected because the 3964(R) protocol was selected

Remedy Select suitable values for XON (XONCHAR) and XOFF (XOFFCHAR). Valid range of values: 0...255 Valid operating modes are:
· Full duplex (RS232) (0) · Full duplex (RS422) four-wire mode (point-to-
point) (1) / (CM PtP (ET 200SP)) · Full duplex (RS422) four-wire mode (multipoint
master) (2)/ (CM PtP (ET 200SP)) · Full duplex (RS 422) four-wire mode (multipoint
slave) (3) · Half duplex (RS485) two-wire mode. (4)
Valid initial states are:
· "No" default setting (0) · Signal R(A)=5 V, signal R(B)=0 V (break detec-
tion) (1): Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)". · Signal R(A)=0 V, signal R(B)=5 V (2): This default setting corresponds to the idle state (no active send operation).
Select a suitable value for "Break detection". The following are valid:
· Break detection deactivated (0) · Break detection activated (1).
Select a valid protocol for the module.
Select suitable values for "End delimiter" and "End sequence". The following are valid:
· deactivated (0), · 1 (1) or 2 (2) end delimiters or
· deactivated (0), · 1 (1) up to 5 (5) characters for the end sequence.
Make sure that no send configuration is transmitted if the 3964(R) protocol is set.

104

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the "Receive configuration" 16#81C0 Invalid start condition

Remedy
Select a suitable start condition. The following are valid:

· Send break before frame start · Send Idle Line.

16#81C1 16#81C3
16#81C4
16#81C5

Invalid end condition or no end condition selected Invalid value for "Maximum message length"
Invalid value for "Offset of the length specification in the message"
Invalid value for "Size of length field"

Select a suitable end condition (see Sending data with Freeport (Page 40)).
Select a suitable value for "Maximum message length" (MAXLEN).
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Offset of the length specification in the message".
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Size of length field" (LENGTHSIZE).
Valid range of values in bytes:

· 1 (1)

· 2 (2)

· 4 (4)

16#81C6 16#81C7

Invalid value for "Number of characters not counted in Select a suitable value for "Number of characters not

length specification"

counted in length specification" (LENGTHM).

Valid range of values: 0 to 255 (bytes)

The total of "Offset in the message + size of length field + number of characters not counted" is greater than the maximum frame length

Select a suitable value for "Offset in message", "Size of length field" and "Number of characters not counted".

Valid range of values:

· Offset in the message (depending on the module): 0-1024/2048/4096 (bytes)

· Size of length field: 1, 2, or 4 (bytes)

· Number of characters not counted: 0 to 255 (bytes)

16#81C8 16#81C9 16#81CB 16#81CC

Invalid value for "Response timeout"
Invalid value for "Character delay time"
frame end sequence is activated, but no character is activated for the check frame start sequence is activated, but no character is activated for the check

Select a suitable value for "Response timeout". Valid range of values: 1-65535 (ms) Select a suitable value for "Character delay time". Valid range of values: 1 to 65535 (bit times) Activate one or several characters for the check.
Activate one or several characters for the check.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

105

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81CD Invalid value for "Prevent overwriting"

Remedy Select a suitable value for "Prevent overwriting". The following are valid:

· Prevent overwriting is deactivated (0) or · Prevent overwriting is activated (1)

16#81CE Invalid value for "Clear receive buffer on startup"

Select a suitable value for "Clear receive buffer on startup".
The following are valid:

· Clear receive buffer at startup is deactivated (0)

· Clear receive buffer at startup is activated (1)

SEND status and error codes

16#81D0

Receiving send request during runtime of a send command

16#81D1 The waiting time for XON or CTS = ON has expired.

16#81D2 16#81D3

"Hardware RTS always ON": Send job canceled due to change from DSR = ON to OFF
Send buffer overflow / send frame too long

16#81D5 16#81D6 16#81D7 16#81D8 16#81DF

Transmission canceled due to parameter changes, detected wire break, or CPU in STOP
Transmission canceled because end identifier was not received
Communication error between the user program and module
Transmission attempt rejected because module is not configured
The module has reset the interface to the FB for one of the following reasons:

Make sure that you do not receive an additional send request during runtime of a send command. The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.
Check the communication partner. Make sure that DSR is ON for the entire duration of transmission.
Select a shorter frame length. The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes) Check the parameter assignment, wire break, and CPU status.
Check the parameter assignment of the end characters and the frame of the communication partner.
Check the communication (e.g., matching the sequence number).
Configure the module.
--

· Module was restarted

· Module parameters were reassigned

· CPU STOP

106

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Error codes of the receive configuration

16#81E0

Frame aborted: Send buffer overflow / send frame too Increase the call rate for the receive function in the

long

user program or configure communication with data

flow control.

16#81E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#81E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#81E3 Frame aborted: Character overflow error

Firmware error: Please contact Customer Support.

16#81E4

Frame aborted: The total length of "Offset in the mes- Select a suitable value for offset in message, size of

sage + size of the length field + number of characters the length field, and number of characters not count-

not counted" is greater than the receive buffer

ed.

16#81E5 Frame aborted: Break

Receive line to partner is interrupted.

Reconnect or switch on partner.

16#81E6

Maximum number of "Buffered received frames" exceeded

In the user program call the instruction more often or configure a communication with data flow control or increase the number of buffered frames.

16#81E7 Synchronization error module and Receive_P2P

Make sure that different instances of the Receive_P2P do not access the same module.

16#81E8

Frame aborted: The character delay time has expired Partner device faulty or too slow. Check this, if re-

before the message end criterion was detected

quired, using an interface tester that is interconnect-

ed in the transmission line.

16#81E9

Modbus CRC error (only communication modules which support Modbus)

Checksum error of the Modbus frame. Check the communication partner.

16#81EA

Modbus frame too short (only communication modules which support Modbus)

Minimum length of Modbus frame not met. Check the communication partner.

16#81EB Frame aborted: Maximum frame length reached

Select a shorter frame length at the communication partner.

The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

Check the parameters for end of frame detection.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

107

Programming - communication using instructions 5.4 Instructions

Error code Description

Error codes V24 accompanying signals

16#81F0

The module does not support V24 accompanying signals

16#81F1 16#81F2

No operation of the V24 accompanying signals
The DSR signal cannot be set because the module has the type DTE.

16#81F3

The DTR signal cannot be set because the module has the type DCE.

16#81F4

Block header error (e.g. incorrect block type or incorrect block length)

Error codes of the receive configuration

16#8201 1) Receive_Conditions is a pointer to an invalid data type

16#8225

Receive_Conditionspoints to an optimized memory area greater than 1 kB

or

Receive_Conditions points to an optimized memory area and the receive length is greater than the area addressed by Receive_Conditions.

16#8229 1) Receive_Conditions is a pointer to BOOL with a number of bits not equal to n * 8

Error codes, general

16#8280 Negative acknowledgment when reading module

Remedy
You have tried to set accompanying signals for a module that does not support V24 accompanying signals. Make sure that this is an RS232 module or that RS232 mode (ET 200SP) is set. The V24 accompanying signals cannot be operated manually if hardware data flow control is active. Check the configured type of the module. The module type must be DCE (data communication equipment). Check the configured type of the module. The module type must be DTE (data terminal equipment). Check the instance DB and the block header.
Enter a pointer to one of the following data types: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING Enter a pointer to an area with a maximum length of: · Optimized memory area: 1 KB · Non-optimized memory area: 4 KB Note: If the pointer points to an optimized memory area, do not send more than 1 KB.
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.
You can find more detailed information on error causes in theRDREC.STATUS static parameters and in the description of the SFB RDREC.

· Check the input at the PORT parameter · Set the COM_RST parameter before the 1st call.

16#8281 Negative acknowledgment when writing module 16#8282 Module not available

Check the input at the PORT parameter
You can find more detailed information on error causes in the WRREC.STATUS static parameters and in the description of the SFB WRREC.
Check the input at the PORT parameter and ensure that the module can be reached.

108

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the receive configuration 16#82C1 Invalid value for "Buffered received frames".

16#82C2 16#8301 1)

Receive configuration rejected because the 3964(R) protocol was selected
Receive_Conditions is a pointer to an invalid data type

16#8322 Range length error when reading a parameter

16#8324 Range error when reading a parameter

16#8328 Setting error when reading a parameter

SEND status and error codes

16#8328 1) BUFFER is a pointer to BOOL with a number of bits not equal to n * 8

Error codes of the receive configuration

16#8332

Invalid data block at the Receive_Conditions parameter

16#833A

The designation of the data block at the Receive_Conditions parameter refers to a data block which is not loaded.

16#8351 Invalid data type

16#8352 1) Receive_Conditions does not point to a data block

16#8353 1) Receive_Conditions does not point to a structure of the typeReceive_Conditions

Error codes 3964(R) protocol

16#8380

Parameter assignment error: Invalid value for "Character delay time".

16#8381

Parameter assignment error: Invalid value for "Response timeout".

16#8382

Parameter assignment error: Invalid value for "Priority".

Remedy
Select a suitable value for "Buffered received frames". Valid range of values: 1-255 Make sure that no receive configuration is sent if the 3964(R) protocol is set. Select a valid data type. The following are valid: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.
Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter
Check the input at the Receive_Conditions parameter Check the pointer to Receive_Conditions Check the pointer to Receive_Conditions
Select a suitable value for "Character delay time" (CharacterDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Response timeout" (AcknDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Priority" (Priority). The following are valid:

· High (1) · Low (0)

16#8383

Parameter assignment error: Invalid value for "Block Select a suitable value for "Block check" (BCC).

check"

The following are valid:

· With block check (1) · Without block check (0)

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

109

Programming - communication using instructions 5.4 Instructions

Error code 16#8384 16#8385 16#8386 16#8387 16#8388
16#8389
16#838A
16#838B 16#838C 16#838D 16#838E 16#838F 16#8391

Description Parameter assignment error: Invalid value for "Connection attempts".
Parameter assignment error: Invalid value for "Transmission attempts".
Runtime error: Number of connection attempts exceeded
Runtime error: Number of transmission attempts exceeded
Runtime error: Error at the "Block check character" The internally calculated value of the block check character does not correspond to the block check character received by the partner at the connection end. Runtime error: Invalid character received while waiting for free receive buffer
Runtime error: Logical error during receiving. After DLE was received, a further random character (other than DLE or ETX) was received.
Runtime error: Character delay time exceeded
Runtime error: Wait time for free receive buffer has started Runtime error: frame repetition does not start within 4 s after NAK
Runtime error: In idle mode, one or several characters (other than NAK or STX) were received.
Runtime error: Initialization conflict - Both partners have set high priority Parameter assignment error: 3964 configuration data rejected because Freeport is set

Remedy
Select a suitable value for "Connection attempts" (BuildupAttempts).
Valid range of values: 1-255
Select a suitable value for "Transmission attempts" (RepetitionAttempts).
Valid range of values: 1-255
Check the interface cable and the transmission parameters.
Also check whether the receive function is configured correctly at the partner device.
Check the interface cable, the transmission parameters and the configuration of the communication partner.
Check whether the connection is seriously disrupted; in this case you may also occasionally see error codes. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
The send request of the communication partner (STX, 02H) is only answered with DLE when the receive buffer is empty. No additional character may be received before (except STX again).
Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Check if partner DLE in frame header and in data string is always in duplicate or the connection is released with DLE ETX. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Partner device too slow or faulty.
Verify by using an interface test device that is switched into the transmission line, if necessary.
In the user program call the instruction more often or configure a communication with data flow control.
Check the communication partner. A received frame that is possibly corrupted must be repeated by the partner within 4 seconds.
Check for proper function of the partner device, possibly using an interface test device that is switched into the transmission line.
Set the "Low" priority at one of the partners
If the Freeport protocol is set, make sure that no 3964 parameter assignment data is sent.

1) Only with instructions for S7-300/400 CPUs

110

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Overview of error messages - Modbus

Error code Description

16#0000 No error

Configuration error of the interface - Modbus_Comm_Load

16#8181

The module does not support this data transmission rate.

16#8182 The module does not support this parity setting.

16#8183 16#8184

The module does not support this type of data flow control.
Invalid value for "Response timeout".

16#8280 Negative acknowledgment when reading module

16#8281 Negative acknowledgment when writing module

16#8282 Module not available

Remedy -
Select a valid data transmission rate for the module at the BAUD parameter. Select a suitable value for "Parity" at the PARITY parameter. The following are valid:
· None (1)
· Even (2)
· Odd (3)
· Mark (4)
· Space (5)
· Any (6)
Select a valid data flow control for the module at the FLOW_CTRL parameter. Select a suitable value for "Response timeout" at the RESP_TO parameter. Valid range of values: 1 to 65535 (ms) Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.RDREC.STATUS or Receive_Config.RDREC.STATUS static parameters or RDREC.STATUS and in the description of the SFB RDREC. Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.WRREC.STATUS or Receive_Config.WRREC.STATUS static parameters or WRREC.STATUS and in the description of the SFB WRREC. Check the input at the PORT parameter and ensure that the module can be reached.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

111

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Slave

16#8186 Invalid slave address

Select a suitable slave address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8187 Invalid value at MB_HOLD_REG parameter

Select a suitable value for the hold register at the MB_HOLD_REG parameter.

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) and MODE parameter  1

Select the value 1 for MODE in Broadcast mode or select a different operating mode.

16#818C

The pointer to a MB_HOLD_REG area must be a data Select a suitable value for the pointer to the

block or a bit memory address area.

MB_HOLD_REG area.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS, and in the description of the SFB WRREC.

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during instruction execution. The cause of the error is shown in the STATUS parameter.

Determine the value of the SFCSTATUS parameter. Check what this means in the description for SFC51, STATUS parameter.

112

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Master

16#8180 Invalid value for MB_DB parameter

The value configured for MB_DB (instance data DB) at the Modbus_Comm_Load instruction is not valid.

Check the interconnection of the Modbus_Comm_Load instruction and its error messages.

16#8186 Invalid station address

Select a suitable station address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) Select the value 1 for MODE in Broadcast mode or

and MODE parameter  1

select a different operating mode.

16#8189 Invalid data address

Select a suitable value for the data address at the DATA_ADDR parameter.

See description Modbus_Master (Page 125) in the Info system

16#818A Invalid length

Select a suitable data length at the DATA_LEN parameter.

See description Modbus_Master (Page 125) in the Info system

16#818B Invalid value for DATA_PTR

Select a suitable value for the data pointer at the DATA_PTR parameter (M or DB address).

See description Modbus_Master (Page 125) in the Info system

16#818C Interconnection error of the DATA_PTR parameter Check the interconnection of the instruction.

16#818D

The area addressed by DATA_PTR is longer than the Check the DATA_PTR pointer DB, or the area addressed is too small for the number of data bytes to be read or written.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS or Receive_Reset and in the description of the SFB WRREC.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

113

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Communication errors - Modbus_Master and Modbus_Slave

16#80D1

The waiting time for XON or CTS = ON has expired.

The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.

16#80D2

"Hardware RTS always ON": Send job canceled due Check the communication partner. Make sure that

to change from DSR = ON to OFF

DSR is ON for the entire duration of transmission.

16#80E0

Frame aborted: Send buffer overflow / send frame too In the user program call the instruction more often or

long

configure a communication with data flow control.

16#80E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#80E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#80E3 Frame aborted: Character overflow error

Check the number of data in the frame of the communication partner.

16#80E4 Frame aborted: Maximum frame length reached

Select a shorter frame length at the communication partner.

The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes)

Communication error - Modbus_Master

16#80C8 The slave does not respond within the set time

Check the data transmission rate, parity and wiring of the slave.

16#80C9

The slave does not respond within the time set by Blocked_Proc_Timeout.

Check the setting for Blocked_Proc_Timeout.
Check if the module has been configured with the Modbus_Comm_Load instruction. The module may possibly need to be reconfigured using Modbus_Comm_Load after a pull/plug or after voltage recovery.

16#8200 The interface is busy with an ongoing request.

Repeat the command later. Make sure that there are no commands still running before you start a new one.

Protocol error - Modbus_Slave (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

The function code is not supported or is not supported Check the communication partner and make sure

for broadcast.

that a valid function code is sent.

16#8382 Invalid length information in the request frame

Select a suitable data length at the DATA_LEN parameter.

16#8383 Invalid data address in the request frame

Select a suitable value for the data address at the DATA_ADDR parameter.

16#8384 Invalid data value error in the request frame

Check the data value in the request frame of the Modbus master

16#8385

The diagnostic value is not supported by the Modbus The Modbus slave only supports the diagnostic

slave (function code 08)

values 16#0000 and 16#000A.

114

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Protocol error - Modbus_Master (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

Response frame from Modbus Slave with the following error message: The function code is not supported.

Check the communication partner and make sure that a valid function code is sent.

16#8382

Response frame from Modbus Slave with the follow- Select a suitable data length. ing error message: Invalid length

16#8383

Response frame from Modbus Slave with the follow- Select a suitable value for the data address at the ing error message: Invalid data address in the request DATA_ADDR parameter. frame

16#8384

Response frame from Modbus Slave with the follow- Check the request frame to the Modbus slave. ing error message: Data value error

16#8385

Response frame from Modbus Slave with the following error message: The diagnostic value is not supported by the Modbus slave

The Modbus slave only supports the diagnostic values 16#0000 and 16#000A.

16#8386

The returned function code does not match the requested function code.

Check the response frame and the addressing of the slave.

16#8387 A slave that was not requested answers

Check the response frame of the slave. Check the address settings of the slave.

16#8388 Error in the response of the slave to a write request. Check the response frame of the slave.

16#8828 1) DATA_PTR points to a bit address that is not equal to Check the DATA_PTR pointer n * 8

16#8852 1) DATA_PTR is not a pointer to a DB or a bit memory area

Check the DATA_PTR pointer

16#8853 1) DATA_PTR is not a pointer of type BOOL or WORD Check the DATA_PTR pointer

16#8855 1) DATA_PTR points to a write-protected DB

Check the DATA_PTR pointer

16#8856 1) Error during call of SFC51

Call the Modbus_Master instruction again

Error - Modbus_Slave (only communication modules that support Modbus)

16#8428 1) MB_HOLD_REG points to a bit address that is not equal to n * 8

Check the MB_HOLD_REG pointer

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during call of SFC51

Call the Modbus_Slave instruction again

1) Only with instructions for S7-300/400 CPUs

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

115

Programming - communication using instructions 5.4 Instructions

Overview of error messages - USS

Error code 16#0000 16#8180 16#8181
16#8182 16#8183 16#8184 16#8185 16#8186 16#8187 16#8188 16#8189 16#818A 16#818B 16#818C
16#818D 16#818E

Description No error Length error in response of drive Data type error
Data type error: "Double word" or "Real" may not be returned for the "Word" request. Data type error: "Word" may not be returned for the "Double word" or "Real" request. Checksum error in response of drive Addressing error Setpoint error Incorrect drive number returned Invalid PZD length The module does not support this data transmission rate. A different request for this drive is currently active. The drive does not respond. The drive responds with an error message to a parameter request.
The drive responds with an access error message to a parameter request. The drive was not initialized.

Remedy Check the response frame of the drive. Select a suitable data type. The following are valid: · Real · Word · Double word
Check the response frame of the drive.
Check the response frame of the drive.
Check the drive and the communication connection. Valid drive address range: 1 to 16 Valid setpoint range: -200% to +200% Check the response frame of the drive. Permitted PZD lengths: 2, 4, 6, 8 words Select a valid data transmission rate for the module.
Repeat the parameter read or write command later. Check the drive. Check the response frame of the drive. Check the parameter request. Check if the instructions USS_Read_Param, USS_Write_Param or USS_Port_Scan have reported an error. If they have, check the value of the static tag USS_DB. w_USSExtendedError of the USS_Drive_Control instruction. Check the response frame of the drive. Check the parameter request. Check the user program and make sure that the USS_Drive_Control instruction is called for this drive.

116

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description 16#8280 Negative acknowledgment when reading module
16#8281 Negative acknowledgment when writing module
1) Only with instructions for S7-300/400 CPUs

Remedy
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.RDREC.STATUS, Send_Config.RDREC.STATUS , Receive_Config.RDREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.WRREC.STATUS, Send_Config.WRREC.STATUS , Receive_Config.WRREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB WRREC.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

117

Programming - communication using instructions 5.4 Instructions

5.4.2

MODBUS (RTU)

5.4.2.1

Overview of the Modbus RTU communication

Modbus RTU communication
Modbus RTU (Remote Terminal Unit) is a standard protocol for communication in the network and uses the RS232 or RS422/485 connection for serial data transmission between Modbus devices in the network.
Modbus RTU uses a master/slave network in which all communication is triggered by a single master device while the slaves can only respond to the request of the master. The master sends a request to a slave address and only the slave with this slave address responds to the command.
Exception: Modbus slave address 0 sends a broadcast frame to all slaves (without slave response).

Modbus function codes
 A CPU that is operated as a Modbus RTU master can read and write data and I/O states in a Modbus RTU slave connected by means of a communication connection.
 A CPU operated as a Modbus RTU slave allows a Modbus RTU master connected over a communication connection to read and write data and I/O states in its own CPU.

Table 5- 12 Functions for reading data: Reading distributed I/O and program data

Modbus function code 01 02 03 04

Functions for reading data from the slave (server) - standard addressing Read output bits: 1 to 2000/19921) bits per request Read input bits: 1 to 2000/19921) bits per request Read hold register: 1 to 125/1241) words per request Read input words: 1 to 125/1241) words per request

1) for extended addressing

Table 5- 13 Functions for writing data: Changing distributed I/O and program data

Modbus function code 05 06 15 16

Functions for writing of data in the slave (server) - standard addressing Write one output bit: 1 bit per request Write one hold register: 1 word per request Write one or several output bits: 1 to 1960 bits per request Write one or several hold registers: 1 to 122 words per request

 The Modbus function codes 08 and 11 offer diagnostic options for communication with the slave device.

 Modbus slave address 0 sends a broadcast frame to all slaves (without slave response; for function codes 5, 6, 15, 16).

Table 5- 14 Station addresses in the Modbus network

Station RTU station

Standard station address Extended station address

Address 1 to 247 and 0 for broadcast 1 to 65535 and 0 for broadcast

118

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
Modbus memory addresses
The number of Modbus memory addresses (input/output addresses) that is actually available depends on the CPU version and the available work memory.
Modbus RTU instructions in your program
 Modbus_Comm_Load: You need to run Modbus_Comm_Load to set up PtP parameters such as data transmission rate, parity and data flow control. Once you have configured the communication module for the Modbus RTU protocol, it can only be used by the Modbus_Master instruction or the Modbus_Slave instruction.
 Modbus_Master: The CPU can be used as Modbus RTU master device with the Modbus master instruction for communication with one or more Modbus slave devices.
 Modbus_Slave: The CPU can be used as Modbus RTU slave device with the Modbus slave instruction for communication with one Modbus master device.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

119

Programming - communication using instructions 5.4 Instructions

5.4.2.2

Modbus_Comm_Load: Configure communication module for Modbus
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Modbus_Comm_Load instruction configures a communication module for communication by means of the Modbus RTU protocol. An instance data block is automatically assigned when you add the Modbus_Comm_Load instruction in your program.
Configuration changes of Modbus_Comm_Load are saved on the CM and not in the CPU. With voltage recovery and pulling/plugging, the CM is configured with the data saved in the device configuration. The Modbus_Comm_Load instruction must be called in these scenarios.

Parameters

Parameter REQ PORT
BAUD PARITY

Declaration IN IN
IN IN

Data type

Standard Description

S7-

S7-

1200/1500 300/400/

WinAC

Bool

Port

Laddr

FALSE 0

Starts the instruction upon a positive edge of this input.
Specifies the communication module which is used for the communication:

· For S7-1500/S7-1200: "HW identifier" from the device configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there.

· For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.

UDInt UInt

DWord 9600

Word

0

Selection of the data transmission rate Valid values are: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200 bit/s.
Selection of parity:

· 0 ­ None

· 1 ­ Odd

· 2 ­ Even

120

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter

Declaration

FLOW

IN

_CTRL

RTS_ON

IN

_DLY

RTS_OFF IN _DLY

RESP_TO IN

MB_DB

IN/OUT

COM_RST IN/OUT

DONE

OUT

Data type

Standard Description

S7-

S7-

1200/1500 300/400/

WinAC

UInt

Word

0

Selection of flow control:

· 0 ­ (default) no flow control

· 1 ­ Hardware flow control with RTS always ON (not with RS422/485 CMs)

· 2 ­ Hardware flow control with RTS switched (not with RS422/485 CMs)

UInt

Word

0

Selection RTS ON delay:

· 0 ­ No delay from "RTS active" until the first character of the frame is sent.

· 1 to 65535 ­ Delay in milliseconds from "RTS active" until the first character of the frame is sent (not with RS422/485 CMs). RTS delays must be used independent of the selection FLOW_CTRL.

UInt

Word

0

Selection RTS OFF delay:

· 0 ­ No delay after transmission of last character until "RTS inactive"

· 1 to 65535 ­ Delay in milliseconds after transmission of last character until "RTS inactive" (not with RS422/485 ports). RTS delays must be used independent of the selection FLOW_CTRL.

UInt

Word

MB_BASE

---

Bool

Bool

1000 FALSE FALSE

Response timeout:
5 ms to 65535 ms - Time in milliseconds that Modbus_Master waits for a response from the slave. If the slave does not respond within this period, Modbus_Master repeats the request or terminates the request with an error if the specified number of repetitions (see below, RETRIES parameter) has been sent.
A reference to the instance data block of the Modbus_Master or Modbus_Slave instructions.
The MB_DB parameter must be connected with the (static and therefore not visible in the instruction) MB_DB parameter of the Modbus_Master or Modbus_Slave instruction.
Initialization of the Modbus_Comm_Load instruction
The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE.
Note: The parameter is only available for S7-300/400 instructions.
The DONE bit is TRUE for one cycle after the last request has been completed without errors.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

121

Programming - communication using instructions 5.4 Instructions

Parameter ERROR STATUS

Declaration
OUT
OUT

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

Word

Standard Description

FALSE 16#7000

The ERROR bit is TRUE for one cycle after the last request has been completed with errors. The error code in the STATUS parameter is only valid in the cycle in which ERROR = TRUE.
Error code (see Error messages (Page 151))

Modbus_Comm_Load is executed to configure a port for the Modbus RTU protocol. Once you have configured the port for the Modbus RTU protocol, it can only be used by the Modbus_Master or Modbus_Slave instructions.

You have to run Modbus_Comm_Load for the configuration of each communication port that is to be used for Modbus communication. You must assign a unique Modbus_Comm_Load instance DB to each port that you use. Only run Modbus_Comm_Load again if you need to change communication parameters, such as data transmission rate or parity, or in case the network has returned.

For example, an instance data block is assigned to the instruction if you add Modbus_Master or Modbus_Slave to your program. You need to connect the MB_DB parameter of the Modbus_Comm_Load instruction to the MB_DB parameter of the Modbus_Master or Modbus_Slave instruction.

122

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Modbus_Comm_Load data block tags
The table below shows the public static tags in the instance DB of Modbus_Comm_Load that you can use in your program.

Table 5- 15 Static tags in the instance DB

Tag ICHAR_GAP

Data type

Standard

S71200/1500

S7300/400/ WinAC

Word

0

RETRIES

Word

2

EN_SUPPLY _VOLT

Bool

0

MODE

USInt

Byte

0

LINE_PRE

USInt

Byte

0

BRK_DET

USInt

Byte

0

Description
Maximum character delay time between characters. This parameter is specified in milliseconds and increases the anticipated period between the received characters. The corresponding number of bit times for this parameter is added to the Modbus default value of 35 bit times (3.5 character times). Number of retries that the master executes before the error code 0x80C8 for "No response" is returned. Enable diagnostics for missing supply voltage L+
Operating mode Valid operating modes are: · 0 = Full duplex (RS232) · 1 = Full duplex (RS422) four-wire mode (point-to-point) · 2 = Full duplex (RS 422) four-wire mode (multipoint master,
CM PtP (ET 200SP)) · 3 = Full duplex (RS 422) four-wire mode (multipoint slave,
CM PtP (ET 200SP)) · 4 = Half duplex (RS485) two-wire mode 1)
Receive line initial state Valid initial states are: · 0 = "No" initial state 1) · 1 = signal R(A)=5 V, signal R(B)=0 V (break detection):
Break detection is possible with this initial state. Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)". · 2 = signal R(A)=0 V, signal R(B)=5 V: This default setting corresponds to the idle state (no active send operation). No break detection is possible with this initial state.
Break detection The following are valid: · 0 = break detection deactivated · 1 = break detection activated

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

123

Programming - communication using instructions 5.4 Instructions

Tag
EN_DIAG _ALARM STOP_BITS

Data type

Standard

S71200/1500

S7300/400/ WinAC

Bool

0

USINT Byte

1

Description
Activate diagnostics interrupt: · 0 - not activated · 1 - activated Number of stop bits; · 1 = 1 stop bit, · 2 = 2 stop bits, · 0, 3 to 255 = reserved

1) Required setting for the use of PROFIBUS cables with CM 1241 for RS485

Instruction versions
Version 3.1 is functionally identical to version 3.0 and its version number was only incremented due to internal measures.

124

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

5.4.2.3

Programming - communication using instructions 5.4 Instructions
Modbus_Master: Communicate as Modbus master
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

The Modbus_Master instruction communicates as Modbus master via a port configured by the Modbus_Comm_Load instruction. An instance data block is automatically assigned when you add the Modbus_Master instruction in your program. The MB_DB parameter of the Modbus_Comm_Load instruction must be connected to the (static) MB_DB parameter of the Modbus_Master instruction.

Parameters

Parameters

Declaration

REQ

IN

MB_ADDR IN

MODE

IN

DATA_AD IN DR

DATA

IN

_LEN

COM_RST IN/OUT

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

UInt

Word

USInt

Byte

UDInt

DWord

UInt

Word

---

Bool

Standard FALSE -
0 0 0 FALSE

Description
FALSE = no request TRUE = request to send data to the Modbus slave Modbus RTU station address: Standard addressing range (1 to 247 as well as 0 for Broadcast) Extended addressing range (1 to 65535 as well as 0 for Broadcast) The value 0 is reserved for the broadcast of a frame to all Modbus slaves. Only the Modbus function codes 05, 06, 15 and 16 are supported for the broadcast. Mode selection: Specifies the type of request (read, write or diagnostics). Additional information is available in the table of Modbus functions below. Start address in the slave: Specifies the start address of the data that is accessed in the Modbus slave. The valid addresses are listed in the table of Modbus functions below. Data length: Specifies the number of bits or words this instruction is to access. The valid lengths are listed in the table of Modbus functions below. Initialization of the Modbus_Master instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. Note: The parameter is only available for S7-300/400 instructions.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

125

Programming - communication using instructions 5.4 Instructions

Parameters DATA _PTR
DONE BUSY ERROR
STATUS

Declaration IN/OUT
OUT OUT OUT OUT

Data type

Standard

S7-

S7-

1200/1500 300/400/

WinAC

Variant Any

-

Bool Bool Bool
Word

FALSE FALSE
0

Description
Data pointer: Points to the flag or DB address for the data to be written or read. As of instruction version V3.0: The parameter may point to an optimized memory area. In the optimized memory area, a single element or an array is permitted with the following data types: Bool, Byte, Char, Word, Int, DWord, DInt, Real, USInt, UInt, UDInt, SInt, WChar. Every other data type results in error message 16#818C. The DONE bit is TRUE for one cycle after the last request has been completed without errors. · FALSE ­ no command active for Modbus_Master · TRUE ­ command for Modbus_Master in progress
The ERROR bit is TRUE for one cycle after the last request has been completed with errors. The error code in the STATUS parameter is only valid in the cycle in which ERROR = TRUE. Error code (see Error messages (Page 151))

126

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Tags in the data block of the Modbus master
The table below shows the public static tags in the instance DB of Modbus_Master that you can use in your program.

Table 5- 16 Static tags in the instance DB

Tag Blocked_Proc_Timeout

Data type Standard

Real

3.0

Extended_Addressing

Bool

FALSE

Description
Duration (in seconds) for which to wait for a blocked Modbus master instance before this instance is removed as ACTIVE. This may happen, for example, if a master request was output and the program then stops to call the master function before it has completely finished the request. The time value must be greater than 0 and less than 55 seconds to avoid an error to occur.
See also "Rules for communication by the Modbus-Master" and "Calling theModbus_Master instruction with different parameter settings".
Configures the slave station address as single or double byte.
· FALSE = One-byte address; 0 to 247
· TRUE = Two-byte address (corresponds to extended addressing); 0 to 65535

Compatibility_Mode 1)

Bool

FALSE

Compatibility mode with CP 341 and CP 441-2 and ET 200SP 1SI with driver for Modbus RTU and with ET 200SP 1SI for Modbus. The default value is 0.
· FALSE = as per Modbus specification, not compatible
· TRUE = compatible
­ For FC1 and FC2: The data read from the received frame is written word for word to the addressed CPU memory and exchanged byte by byte. If the number of bits to be transmitted is not a multiple of 16, the bits which are not relevant are set to null in the last word.
­ For FC15: The words to be transmitted are read word by word from the addressed memory and written byte by byte to the send frame. If the number of bits to be transmitted is not a multiple of 8, the bits in the last byte which are not relevant are read unchanged from the addressed memory and entered in the send frame.

MB_DB

MB

-

_BASE

The MB_DB parameter of the Modbus_Comm_Load instruction must be connected to this MB_DB parameter of the Modbus_Master instruction.

1) The PtP communication modules respond as defined in the Modbus specification. To retain a response as with CP 341, CP 441-2 and ET 200SP 1SI for Modbus, use the "Compatibility_Mode" parameter.

You program can write values to the Blocked_Proc_Timeout and Extended_Addressing tags to control the Modbus master operations.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

127

Programming - communication using instructions 5.4 Instructions
Rules for communication by the Modbus-Master
 Modbus_Comm_Load must be run to configure a port so that the Modbus_Master instruction can communicate with this port.
 A port which is to be used as Modbus master must not be used by Modbus_Slave . You can use one or several instances of Modbus_Master 1) with this port. But all versions of the Modbus_Master must use the same instance DB for the port.
 The Modbus instructions do not use communication alarm events to control the communication process. Your program must query the Modbus_Master instruction for completed commands (DONE, ERROR).
 We recommend to call all executions of Modbus_Master for a specific port from a program cycle OB. Modbus master instructions can only be executed in one program cycle or in one cyclical/time-controlled processing level. They may not be processed in different processing levels. The priority interruption of a Modbus master instruction by another Modbus master instruction in a processing level with higher priority results in improper operation. Modbus master instructions may mot be processed in startup, diagnostic or time error levels.
1) "Instance of Modbus master" here means a call of the Modbus_Master instruction with the same interconnection to a Modbus_Comm_Load instruction and the same setting for the MB_ADDR, MODE, DATA_ADDR and DATA_LEN parameters.
Example
Modbus_Master is called with MODE=0 and DATA_ADDR=10
This job is now active until it is completed with DONE=1 or ERROR=1 or until the time monitoring configured at the Blocked_Proc_Timeout parameter has expired. If a new command is started after the watchdog time expires and before the previous command has been completed, the previous command is aborted without an error message.
If, while this command is running, the instruction is now called a second time with the same instance data but different MODE and DATA_ADDR parameter settings, this second call is terminated with ERROR=1 and STATUS=8200.
Calling the Modbus_Master instruction with different parameter settings
If multiple calls of the Modbus_Master instruction with different settings for MB_ADDR, MODE, DATA_ADDR or DATA_LEN are placed in your program, you must ensure that only one of these calls is active at any given time. Otherwise, the error message 16#8200 is output (interface is busy with an ongoing request).
If a call cannot be processed in full, the watchdog is activated by the Blocked_Proc_Timeout parameter and terminates the ongoing command.
REQ parameter
FALSE = no request; TRUE = request to send data to the Modbus slave
Enable the requested transmission. This transmits the contents of the buffer to the point-topoint communication interface.

128

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

You use the DATA_ADDR and MODE parameters to select the Modbus function code.
DATA_ADDR (Modbus start address in the slave): Specifies the start address of the data that is accessed in the Modbus slave.
The Modbus_Master instruction uses the MODE input instead of a function code input. The combination of MODE and DATA_ADDR specifies the function code that is used in the actual Modbus frame. The table below shows how the MODE parameter, the Modbus function code and the Modbus address range in DATA_ADDR are related.

Table 5- 17 Modbus functions

MODE DATA_ADDR (Modbus address)

DATA_LEN (data length)

Modbus function Operation and data code

0

Bits per request

01 Read output bits:

1 to

9999 1 to

2000/1992 1

0 to

9998

0

Bits per request

02 Read input bits:

10001 to

19999 1 to

2000/1992 1

0 to

9998

0

Words per request

03 Read hold register:

40001 to

49999 1 to

125/124 1

0 to

9998

400001 to

465535 1 to

125/124 1

0 to

65534

0

Words per request

04 Read input words:

30001 to

39999 1 to

125/124 1

0 to

9998

1

Bits per request

05 Write one output bit:

1 to

9999 1

0 to

9998

1

1 word per request

06 Write one hold register:

40001 to

49999 1

0 to

9998

400001 to

465535 1

0 to

65524

1

Bits per request

15 Write multiple output bits:

1 to

9999 2 to

1968/1960 1

0 to

9998

1

Words per request

16 Write multiple hold registers:

40001 to

49999 2 to

123/122

0 to

9998

400001 to

465534 2 to

123/122 1

0 to

65534

2 2

Bits per request

15 Write one or several output bits:

1 to

9999 1 to

1968/1960 1

0 to

9998

2 2

Words per request

16 Write one or several hold registers:

40001 to

49999 1 to

123

0 to

9998

400001 to

465535 1 to

122 1

0 to

65534

11 Both DATA_ADDR and DATA_LEN operands of the Modbus_Master are ignored with this function.

11 Read status word and event counter of the slave communication. The status word indicates busy (0 ­ not busy, 0xFFFF - busy). The event counter is incremented for each successful processing of a frame.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

129

Programming - communication using instructions 5.4 Instructions

MODE DATA_ADDR (Modbus address)
80

DATA_LEN (data length)
1 word per request

Modbus function Operation and data code
08 Check slave status with data diagnostic code 0x0000 (loopback test ­ slave returns an echo of the request)

81
104
3 to 10, 12 to 79, 82 to 103,
105 to 255

-
0 to
-

1 1 word per request

1

Words per request

65535

1 to

125/124 1

-

-

08 Reset slave event counter using data diagnostic code 0x000A

-

04 Read input words

0 to

65535

Reserved

1 In extended addressing, see the Extended_Adressing parameter, the maximum data length is shorter by 1 byte or 1 word depending on the data type of the function.
2 MODE 2 allows you to write one or more output bits and one or more holding registers using the Modbus functions 15 and 16. MODE 1 uses the Modbus functions 5 and 6 to write 1 output bit and 1 holding register, and Modbus functions 15 and 16 to write multiple output bits and multiple holding registers.

130

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
DATA_PTR parameter
The DATA_PTR parameter points to the DB or bit memory address in which reading or writing is performed. If you use a data block, you must create a global data block that provides the data memory for read and write processes on Modbus slaves.
Note S7-1200/1500 - The data block addressed using DATA_PTR must support direct addressing The data block must permit direct (absolute) and symbolic addressing.
Note Using function code 5 Function code 5 is used to set or delete individual bits. When a bit is set, the value "16#FF00" must be specified in the first word of the addressed DB or bit memory area via DATA_PTR. · With S7-1200, the value "16#0100" can also be specified to set a bit. · To reset a bit, the value "16#0000" must be specified in the first word of the DB or bit
memory area addressed via DATA_PTR. All other values are rejected with ERROR = TRUE and STATUS = 16#8384.
Data block structures for the DATA_PTR parameter
 These data types are valid for reading words of the Modbus address range (DATA_PTR) 30001 to 39999, 40001 to 49999 and 400001 to 465535 as well as for writing words to the Modbus address range (DATA_PTR parameter) 40001 to 49999 and 400001 to 465535. ­ Standard array of data types WORD, UINT or INT ­ Named structure of the WORD, UINT or INT type in which each element has a unique name and a 16-bit data type. ­ Named complex structure in which each element has a unique name and a 16-bit or 32-bit data type.
 For reading and writing bits for the Modbus address range (DATA_PTR parameter) 00001 to 09999 and for reading bits from 10001 to 19999. ­ Standard field from Boolean data types. ­ Named Boolean structure from clearly named Boolean tags.
 It is not essential, but nevertheless advisable, to allocate each Modbus_Master instruction its own separate memory area. The reason for this is that data destruction is far more likely if multiple Modbus_Master instructions are reading and writing in the same memory area.
 It is not necessary for the data areas for DATA_PTR to be located in the same global data block. You can create a data block with several areas for Modbus read processes, a data block for Modbus write processes or a data block for each slave station.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

131

Programming - communication using instructions 5.4 Instructions

Instruction versions
Version 3.0 is functionally identical to version 2.4 and its version number was only incremented due to internal measures.

See also

Modbus_Slave: Communicate as Modbus slave (Page 133)

132

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

5.4.2.4

Modbus_Slave

Modbus_Slave: Communicate as Modbus slave
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.

Description

Your program can use the Modbus_Slave instruction to communicate as a Modbus slave by using a CM (RS422/485 or RS232). STEP 7 automatically creates an instance DB when you add the instruction. The MB_DB parameter of the Modbus_Comm_Load instruction must be connected to the (static) MB_DB parameter of the Modbus_Slave instruction.

Parameters

Parameters Declaration
MB_ADDR IN
COM_RST IN/OUT

Data type

S71200/1500

S7300/400/ WinAC

UInt

Word

---

Bool

Standard FALSE

Description
Standard address of the Modbus slave: Standard addressing range (1 to 247) Extended addressing range (0 to 65535) Note: 0 is the broadcast address Initialization of the Modbus_Slave instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. Note: The parameter is only available for S7-300/400 instructions.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

133

Programming - communication using instructions 5.4 Instructions

Parameters Declaration
MB_HOLD IN/OUT _REG

NDR

OUT

DR

OUT

ERROR

OUT

STATUS OUT

Data type

S71200/1500
Variant

S7300/400/ WinAC
Any

Bool Bool Bool Word

Standard -
FALSE FALSE FALSE 0

Description
Pointer to the Modbus hold register DB: The Modbus hold register may be the memory area of the flags or a data block. As of instruction version V4.0: The parameter must point to a memory area that has a length of at least 16 bits. A shorter length results in error message 16#8187. This applies to single elements, arrays, STRUCTs and UDTs. For example, a Single Bool or an array consisting of less than 16 Boolean elements results in the error message. If the length is not a multiple of 16 bits, the remaining bits at the end of the memory area cannot be read or written by the Modbus_Slave instruction. The parameter may point to an optimized memory area. In the optimized memory area, a single element or an array is permitted with the following data types: Bool, Byte, Char, Word, Int, DWord, DInt, Real, USInt, UInt, UDInt, SInt, WChar. Every other data type results in error message 16#818C.
New data available:
· FALSE ­ No new data
· TRUE ­ Indicates that new data was written by the Modbus master
The NDR bit is TRUE for one cycle after the last request has been completed without errors.
Read data:
· FALSE ­ No data read
· TRUE ­ Indicates that the instruction has stored the data received by the Modbus master in the target area.
The DR bit is TRUE for one cycle after the last request has been completed without errors.
The ERROR bit is TRUE for one cycle after the last request has been completed with errors. If the execution was terminated with an error, the error code in the STATUS parameter is only valid in the cycle in which ERROR = TRUE.
Error code (see Error messages (Page 151))

134

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

The function codes of the Modbus communication (1, 2, 4, 5 and 15) can read and write bits and words directly in the process image input and in the process image output of the CPU. The MB_HOLD_REG parameter must be defined as data type greater than one byte for these function codes. The table below shows the sample assignment of Modbus addresses to the process image in the CPU.

Table 5- 18 Assignment of Modbus addresses to the process image

Code 01 02 04 05 15

Modbus functions

Function Read bits

Data area Output

Read bits Input

Read words Input

Write bit Output

Write bits Output

Address area Data area

0 to 8191 Process image output

0 to 8191 Process image input

0 to

511 Process image input

0 to 8191 Process image output

0 to 8191 Process image output

S7-1200 CPU address O0.0 to I0.0 to IW0 to O0.0 to O0.0 to

O1023.7 I1023.7 IW1022 O1023.7 O1023.7

Table 5- 19 Assignment of Modbus addresses to the process image

Function code 01 02 04
05 15

Modbus functions

Function Data area

Read bits Output

Read bits Input

Read words

Input

Write bit Output

Write bits Output

S7-1500 / S7-300 / S7-400

Address area

Data area

CPU address

0 to 9998 Process image output

O0.0 to A1249.6

0 to 9998 Process image input

I0.0 to I1249.6

0 to 9998 Process image input

IW0 to IW19996

0 to 0 to

9998 Process image output 9998 Process image output

O0.0 to A1249.6 O0.0 to A1249.6

Note The available address area may be smaller, depending on the memory configuration of the CPU.
The function codes of the Modbus communication (3, 6, 16) use a Modbus hold register which is an address area in the memory area of the flags or a data block. The type of holding register is specified by the MB_HOLD_REG parameter of the Modbus_Slave instruction.
Note S7-1200/1500 - type of the MB_HOLD_REG data block The data block with Modbus hold register must permit direct (absolute) and symbolic addressing.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

135

Programming - communication using instructions 5.4 Instructions

Table 5- 20 Diagnostics functions

Modbus diagnostic functions of the S7-1200 Modbus_Slave

Function codes 08
08
11

Subfunction 0000H
000AH

Description
Output request data of echo test: The Modbus_Slave instruction returns the echo of a received data word to the Modbus master.
Clear communication event counter: The Modbus_Slave instruction clears the communication event counter used for Modbus function 11.
Call communication event counter: The Modbus_Slave instruction uses an internal communication event counter to detect the number of successful Modbus read and Modbus write requests that are sent to the Modbus slave. The counter is not incremented for function 8, function 11 and broadcast requests. It is also not incremented for requests that result in communication errors (for example, parity or CRC errors).

The Modbus_Slave instruction supports broadcast write requests from Modbus masters as long as the requests include access to valid addresses. Modbus_Slave generates error code 16#8188 for function codes that are not supported by the broadcast function.

Variables of the Modbus slave in instruction version V3.0
This table below shows the public static tags in the instance data block of Modbus_Slave that you can use in your program.

Table 5- 21 Variables of the Modbus slave

Tag HR_Start_Offset QB_Start
QB_Count
Extended_Addressing
Request_Count Slave_Message_Count Bad_CRC_Count Broadcast_Count Exception_Count Success_Count MB_DB

Data type Standard

Word

0

Word

0

Word

0xFFFF

Bool

FALSE

Word

0

Word

0

Word

0

Word

0

Word

0

Word

0

MB

-

_BASE

Description Specifies the start address of the Modbus hold register (default = 0)
Start address of the valid writable addressing range of the outputs (byte 0 to 65535) Note: The variable is not available for S7-300, S7-400 and WinAC.
Number of output bytes that can be written by the Modbus master. Note: The variable is not available for S7-300, S7-400 and WinAC.
Extended addressing, configures slave addressing as single or double byte (FALSE = single byte address, TRUE = double byte address)
The number of all requests received by this slave
The number of requests received for this specific slave
The number of received requests that have a CRC error
The number of received broadcast requests
Modbus-specific errors that are acknowledged with an exception to the master
The number of received requests without protocol errors for this specific slave
The MB_DB parameter of the Modbus_Comm_Load instruction must be connected to this MB_DB parameter of the Modbus_Master instruction.

You program can write values to the HR_Start_Offset and Extended_Addressing tags and control the Modbus slave operations. The other tags can be read to monitor the Modbus status.

136

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
Rules for Modbus slave communication
 Modbus_Comm_Load must be run to configure a port so that the Modbus_Slave instruction can communicate by means of this port.
 If a port is to respond as slave to a Modbus master, this port may not be programmed with the Modbus_Master instruction.
 Only one instance of Modbus_Slave can be used with a specific port; otherwise you may encounter unexpected behavior.
 The Modbus instructions do not use communication alarm events to control the communication process. Your program must control the communication process by querying the Modbus_Slave instruction for completed send and receive processes.
 The Modbus_Slave instruction must be executed regularly with a frequency that allows a timely response to incoming requests of a Modbus master. We recommend executing Modbus_Slave in each cycle from a program cycle OB. Modbus_Slave can be executed from a cyclic interrupt OB but we do not recommend it, because excessive time delays in the interrupt program can temporarily block the execution of other interrupt programs.
Time control of the Modbus signal
Modbus_Slave must be executed regularly to receive each request of the Modbus master and respond accordingly. The frequency with which Modbus_Slave is executed depends on the timeout value specified for the response by the Modbus master. This can be seen in the figure below.
The timeout period of the (RESP_TO) response is the duration that a Modbus master waits for the beginning of an answer from a Modbus slave. This period is not defined by the Modbus protocol, but by a parameter of the Modbus_Comm_Load instruction. As both receiving and sending a frame requires multiple calls of the Modbus_Slave instruction (at least three), you should execute Modbus_Slave at least twelve times during the timeout period for the response of the Modbus master so that the Modbus slave receives and sends data twice as many times as specified by the timeout period.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

137

Programming - communication using instructions 5.4 Instructions

HR_Start_Offset
The Modbus holding register addresses start at 40001 or 400001. These addresses correspond to the start address of the holding register in the target system memory. But you can configure the HR_Start_Offset tag to configure a start address different than 40001 or 400001 for the Modbus hold register.
The address 0 in the received frame correspond to the start address of the hold register in the target system memory. Use the tag HR_Start_Offset to configure a start address other than 0 for the Modbus hold register.
You can, for example, configure a hold register with start at MW100 and a length of 100 words. With HR_Start_Offset = 20, the address 20 in the received frame corresponds to the start address of the holding register in the target memory (MW100). Each address in the received frame below 20 and above 119 results in an addressing error.

Table 5- 22 Example for addressing the Modbus hold register when DATA_PTR is a pointer to MW100 with a length of 100 words

HR_Start_Offset 0
20

Address Modbus address (word) S7-1500 address Modbus address (word) S7-1500 address

Minimum 0 MW100 20 MW100

Maximum 99 MW298 119 MW298

HR_Start_Offset is a word value which specifies the start address of the Modbus hold register and is saved in the Modbus_Slave instance data block. You select this public static tag by means of the parameter drop-down list once you have added Modbus_Slave in your program.

If you have added Modbus_Slave to an LAD network, for example, you can go to a previous network and assign the value HR_Start_Offset using the move command. The value must be assigned prior to execution of Modbus_Slave.

Enter Modbus slave tag using the standard DB name:

1. Position the cursor in the OUT1 parameter field and enter the character m.

2. Select the required instance DB of the Modbus_Slave instruction from the drop-down list.

3. Position the cursor to the right of the DB name (after the quotation mark) and enter a point.

4. Select "Modbus_Slave_DB.HR_Start_Offset" in the drop-down list.

Instruction versions
Version 4.0 is functionally identical to version 3.0 and its version number was only incremented due to internal measures.

138

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
Access to data areas in DBs instead of direct access to MODBUS addresses as of version V5.0
Access to data areas in DBs instead of direct access to MODBUS addresses as of version V4.0
As of instruction version V4.0 of Modbus_Slave and as of firmware versions V2.5 (S7-1500 CPUs) or V4.2 (S7-1200 CPUs), you can access data areas in DBs instead of directly accessing process images and holding registers. In doing so, the attribute "Optimized block access" must be disabled for the DB and it must not be located solely in the load memory.
If a MODBUS request arrives and you have not defined a data area for the MODBUS data type of the corresponding function code, the request is treated as in the previous instruction versions, i.e. process images and holding registers are accessed directly.
If you have defined a data area for the MODBUS data type of the function code, however, the Modbus_Slave instruction reads from this data area or writes to it. Whether it reads or writes depends on the job type.
One individual MODBUS request can only ever be read from or written to one data area. If, for example, you want to read holding registers that extend over multiple data areas, you therefore require multiple MODBUS requests.
Rules for defining data areas
You can define up to eight data areas in different DBs; each DB must only contain one data area. An individual MODBUS request can only ever read from precisely one data area or write to precisely one data area. Each data area corresponds to one MODBUS address area. The data areas are defined in the static tag Data_Area_Array of the instance DB; Data_Area_Array is a field consisting of eight elements.
If you want to use less than eight data areas, the required data areas must be located one behind the other without any gaps. The first blank entry in the data areas ends the data area search during processing. If, for example, you have defined the field elements 1, 2, 4 and 5, only field elements 1 and 2 will be recognized as field element 3 is empty.
The Data_Area_Array field consists of 8 elements: Data_Area_Array[1] to Data_Area_Array[8]
Each field element Data_Area_Array[x], 1 <= x <= 8, is a UDT of the type MB_DataArea and is structured as follows:

Parameter
Data _type

Data type
UInt

Meaning
Identifier for the MODBUS data type that is mapped to this data area: · 0: Identifier for an empty field element or an unused data area. In this case, the values of db, start
and length are irrelevant. · 1: Process image output (used with function codes 1, 5 and 15) · 2: Process image input (used with function code 2) · 3: Holding register (used with function codes 3, 6 and 16) · 4: Input register (used with function code 4) Note: If you have defined a data area for a MODBUS data type, the instruction MB_SERVER can no longer access this MODBUS data type directly. If the address of a MODBUS request for such a data type does not correspond to a defined data area, a value of W#16#8383 is returned in STATUS.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

139

Programming - communication using instructions 5.4 Instructions

Parame- Data

ter

type

db

UInt

start

UInt

length UInt

Meaning
Number of the data block to which the MODBUS register or bits subsequently defined are mapped. The DB number must be unique in the data areas. The same DB number must not be defined in multiple data areas. The DB must have standard access and must not be located solely in the load memory. Data areas also start with the byte address 0 of the DB. Permitted values: 1 to 60999 First MODBUS address that is mapped to the data block starting from address 0.0. Permitted values: 0 to 65535 Number of bits (for the values 1 and 2 of data_type) or number of registers (for the values 3 and 4 of data_type). The MODBUS address areas of one and the same MODBUS data type must not overlap. Permitted values: 1 to 65535

Examples of the definition of data areas
 First example: data_type = 3, db = 1, start = 10, length = 6
The holding registers (data_type = 3) are mapped in data block 1 (db = 1). The Modbus address 10 (start = 10) is located at data word 0. The last valid Modbus address 15 (length = 6) is located at data word 5.
 Second example: data_type = 2, db = 15, start = 1700, length = 112
The inputs (data_type = 2) are mapped in data block 15 (db = 15). The Modbus address 1700 (start = 1700) is located at data word 0. The last valid Modbus address 1811 (length = 112) is located at data word 111.

Restriction of read access to process images as of version V5.0

Restriction of read access to process images
As of instruction version V4.0 of Modbus_Slave, you can define one area each in the process image of the inputs and in the process image of the outputs to which remote MODBUS devices have read access. Read access by remote MODBUS devices to addresses outside these process image areas is then no longer possible.
Note Restriction of write access to process images
The option for restricting write access to the process image of the outputs to a specific area is available as of instruction version V3.0.

140

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Definition of read areas in the process images
Read areas in the process images are defined in the following static tags of the instance DB:
 QB_Read_Start: Address of the first byte in the process image output that can be read by a remote MODBUS device (applies to function code 1)
 QB_Read_Count: Number of bytes in the process image output that can be read by a remote MODBUS device (applies to function code 1)
 IB_Read_Start: Address of the first byte in the process image input that can be read by a remote MODBUS device (applies to function codes 2 and 4)
 IB_Read_Count: Number of bytes in the process image input that can be read by a remote MODBUS device (applies to function codes 2 and 4)

Static tags in the instance DB for defining write and read areas in the process images
The following table describes the static variables listed above in the instance DB of the Modbus_Slave instruction that you use to define the read areas in the process images.
For the sake of completeness, the static variables with which you define the write areas in the process images (QB_Start and QB_Count) as of version V3.0 are also specified.

Tag QB_Start QB_Count QB_Read_Start QB_Read_Count IB_Read_Start IB_Read_Count

Data type UInt UInt UInt UInt UInt UInt

Start value 0 65535 0 65535 0 65535

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

141

Programming - communication using instructions 5.4 Instructions

5.4.2.5

Frame structure

Extended_Addressing
You access the Extended_Addressing tag as described for the HR_Start_Offset reference, except that the Extended_Addressing tag is a Boolean value.
You can configure a single byte (Modbus standard) or two bytes (Extended_Adressing = TRUE) with Extended_Adressing = FALSE for addressing the Modbus slave. Extended addressing is used to address more than 247 devices in a single network. With Extended_Adressing = TRUE you can address up to 65535 addresses. The following example shows a Modbus frame.

Table 5- 23 Slave address with one byte (Byte 0)

Request Valid response Error message

Byte 0 Slave address
Slave address
Slave address

Byte 1 Function code Function code
0xxx

Byte 2

Byte 3

Start address

Length

Exception code

Byte 4

Byte 5 Data
Data...

Table 5- 24 Slave address with two bytes (Byte 0 and Byte 1)

Request

Byte 0

Byte 1

Slave address

Valid response

Slave address

Error message

Slave address

Byte 2 Function code
Function code
0xxx

Byte 3

Byte 4

Start address

Length

Exception code

Byte 5

Byte 6 Data

Data...

Frame description
Data traffic between master and slave / slave and master starts with the slave address, following by the function code. The data is then transferred. The structure of the data field depends on the function code used. The checksum (CRC) is transmitted at the end of the frame.

142

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Function code 1 - This function allows individual output bits to be read

Table 5- 25 FC 1 - Read output bits

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 1
Function code 1
0x81

Byte 2

Byte 3

Start address

Length 1

Exception code
2

Byte 4

Byte 5

Number of outputs

Output data 3)

---

1 Length: If there is a remainder when the number of outputs is divided by 8, the number of bytes must be increased by 1. 2 E code: 01 or 02 or 03 or 04 3 The output data can comprise multiple bytes

Query
Valid response Error message

Byte 0

Byte 1

Slave address

Slave address

Slave address

Byte 2 Function code 1
Function code 1
0x81

Byte 3

Byte 4

Start address

Length 1

Exception code 2

Byte 5

Byte 6

Number of outputs

Output data

---

1 Length: If there is a remainder when the number of outputs is divided by 8, the number of bytes must be increased by 1. 2 E code: 01 or 02 or 03 or 04 3 The output data can comprise multiple bytes

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

143

Programming - communication using instructions 5.4 Instructions

Function code 2 - This function allows individual input bits to be read

Table 5- 26 FC 2 - Read input bits

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 2
Function code 2
0x82

Byte 2

Byte 3

Start address

Length 1

Exception code
2

Byte 4

Byte 5

Number of inputs

Input data

---

1 Length: If there is a remainder when the number of inputs is divided by 8, the number of bytes must be increased by 1. 2 E code: 01 or 02 or 03 or 04

Query
Valid response Error message

Byte 0

Byte 1

Slave address

Slave address

Slave address

Byte 2 Function code 2
Function code 2
0x82

Byte 3

Byte 4

Start address

Length 1

Exception code 2

Byte 5

Byte 6

Number of inputs

Input data

---

1 Length: If there is a remainder when the number of inputs is divided by 8, the number of bytes must be increased by 1. 2 E code: 01 or 02 or 03 or 04

144

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Function code 3 - This function allows individual registers to be read

Table 5- 27 FC 3 - Read hold register

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 3
Function code 3
0x83

1 Length: Number of bytes 2 E code: 01 or 02 or 03 or 04

Byte 2

Byte 3

Start address

Length 1

Exception code
2

Byte 4

Byte 5

Number of registers

Register data

---

Query

Byte 0

Byte 1

Slave address

Valid response
Error message

Slave address Slave address

1 Length: Number of bytes 2 E code: 01 or 02 or 03 or 04

Byte 2 Function code 3
Function code 3
0x83

Byte 3

Byte 4

Start address

Length 1

Exception code 2

Byte 5

Byte 6

Number of registers

Register data

---

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

145

Programming - communication using instructions 5.4 Instructions

Function code 4 - This function allows individual registers to be read

Table 5- 28 FC 4 - Read input words

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 4
Function code 4
0x84

1 Length: 2 * number of input words 2 E code: 01 or 02 or 03 or 04

Byte 2

Byte 3

Start address

Length 1

Exception code
2

Byte 4

Byte 5

Number of input words

Input data

---

Query

Byte 0

Byte 1

Slave address

Valid response
Error message

Slave address Slave address

1 Length: 2 * number of input words 2 E code: 01 or 02 or 03 or 04

Byte 2 Function code 4
Function code 4
0x84

Byte 3

Byte 4

Start address

Length 1

Exception code 2

Byte 5

Byte 6

Number of input words

Input data

---

146

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Function code 5 - This function can set or delete individual bits

Table 5- 29 FC 5 - Write an output bit

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 5
Function code 5
0x85

1 E code: 01 or 02 or 03 or 04

Byte 2

Byte 3

Start address

Length

Exception code
1

Byte 4

Byte 5 Value

Value

---

Query

Byte 0

Byte 1

Slave address

Valid response
Error message

Slave address Slave address

1 E code: 01 or 02 or 03 or 04

Byte 2 Function code 5
Function code 5
0x85

Byte 3

Byte 4

Start address

Length

Exception code 1

Byte 5

Byte 6 Value

Value

---

Function code 6 - This function allows individual registers to be written

Table 5- 30 FC 6 - Write hold register

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 6
Function code 6
0x86

1 E code: 01 or 02 or 03 or 04

Byte 2

Byte 3 Address

Address

Exception code
1

Byte 4

Byte 5 Register

Register

---

Query

Byte 0

Byte 1

Slave address

Valid response
Error message

Slave address Slave address

1 E code: 01 or 02 or 03 or 04

Byte 2 Function code 6
Function code 6
0x86

Byte 3

Byte 4 Address

Address

Exception code 1

Byte 5

Byte 6

Register

Register

---

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

147

Programming - communication using instructions 5.4 Instructions

Function code 8 - This function is used to check the communication connection

Table 5- 31 FC 8 - Slave status

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 8
Function code 8
0x88

1 E code: 01 or 03 or 04

Byte 2

Byte 3

Diagnostic code

Diagnostic code

Exception code
1

Byte 4

Byte 5 Test value

Test value

---

Query

Byte 0

Byte 1

Slave address

Valid response
Error message

Slave address Slave address

1 E code: 01 or 03 or 04

Byte 2 Function code 8
Function code 8
0x88

Byte 3

Byte 4

Diagnostic code

Diagnostic code

Exception code 1

Byte 5

Byte 6

Test value

Test value

---

Function code 11 - This function can read 2 bytes of "Status word" and 2 bytes of "Event counter"

Table 5- 32 FC 11 - Event counter for slave communication

Query

Byte 0 Slave address

Valid response Slave address

Error message Slave address

Byte 1 Function code 11
Function code 11
0x8B

Byte 2

Byte 3

Status
Exception code
1

1 E code: 01 or 04

Byte 4 ---

Byte 5

Event counter

---

Query

Byte 0

Byte 1

Slave address

Valid response Error message
1 E code: 01 or 04

Slave address Slave address

Byte 2 Function code 11
Function code 11
0x8B

Byte 3

Byte 4

Status
Exception code 1

Byte 5 ---

Byte 6

Event counter

---

148

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Function code 15 - This function allows multiple bits to be written

Table 5- 33 FC 15 - Write one/multiple output bits

Query
Valid response Error message

Byte 0
Slave address
Slave address
Slave address

Byte 1 Function code 15
Function code 15
0x8F

Byte 2 Byte 3 Start address
Start address
Exception code 2

Byte 4 Byte 5
Number of output words
Number of output words

Byte 6

Byte 7 Byte n

Byte counter 1

Value

---

---

1 Byte counter: If there is a remainder when the number of bytes is divided by 8, the number of bytes must be increased by 1.
2 E code: 01 or 02 or 03 or 04

Query
Valid response Error message

Byte 0 Byte 1 Slave address
Slave address
Slave address

Byte 2 Function code 15
Function code 15
0x8F

Byte 3 Byte 4 Start address
Start address
Exception code
2

Byte 5 Byte 6
Number of output words
Number of output words

Byte 7
Byte counter 1

Byte 8 Byte n Value
---

---

1 Byte counter: If there is a remainder when the number of bytes is divided by 8, the number of bytes must be increased by 1.
2 E code: 01 or 02 or 03 or 04

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

149

Programming - communication using instructions 5.4 Instructions

Function code 16 - This function allows individual or multiple registers to be written

Table 5- 34 FC 16 - Write one/multiple hold registers

Query
Valid response Error message

Byte 0
Slave address
Slave address
Slave address

Byte 1 Function code 16
Function code 16
0x90

1 Byte counter: Number of registers * 2 2 E code: 01 or 02 or 03 or 04

Byte 2 Byte 3 Start address
Start address
Exception code 2

Byte 4 Byte 5 Number of registers
Number of registers

Byte 6
Byte counter 1

Byte 7 Byte n Value
---

---

Query
Valid response Error message

Byte 0 Byte 1 Slave address
Slave address
Slave address

Byte 2 Function code 16
Function code 16
0x90

1 Byte counter: Number of registers * 2 2 E code: 01 or 02 or 03 or 04

Byte 3 Byte 4 Start address
Start address

Byte 5 Byte 6 Number of registers
Number of registers

Byte 7
Byte counter 1

Byte 8 Byte n Value
---

Exception code

---

2

150

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

5.4.2.6

Error messages

Overview of error messages - PtP
The error messages are provided at the STATUS output of an instruction and can be evaluated there or processed in the user program.

Error code Description

Remedy

16#0000 No error

-

RECEIVE status and error codes

16#0094 frame end identified based on the "Receipt of

-

fixed/maximum frame length"

16#0095 frame end identified based on "Message timeout"

-

16#0096

frame end identified based on expiration of the "Char- acter delay time"

16#0097 The frame was aborted because the maximum re-

-

sponse time was reached.

16#0098 frame end identified based on the fulfillment of the

-

"Read message length from message" conditions

16#0099

frame end identified based on the receipt of the "End sequence"

SEND status and error codes

16#7000 Block idle

-

16#7001 Initial call for a new frame: Data transmission initiated -

16#7002 Interim call: Data transmission running

-

16#8085 Invalid length

Select a suitable frame length.

The following are valid (depending on the module): 1-1024/2048/4096 (Byte)

16#8088

The specified length exceeds the range set in the receive buffer.
Note: If the data type STRING has been specified at the BUFFER parameter, this error code also appears if the current string is shorter than the length specified at the LENGTH parameter.

Change the range in the receive buffer or select a frame length which corresponds to the range set in the receive buffer.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

RECEIVE status and error codes

16#7002 Interim call: Data transmission running

-

16#8088

The number of characters received exceeds the number specified at the BUFFER parameter.

Select a suitable frame length.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

151

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Error message codes of the special functions

16#818F

Incorrect parameter number setting (with USS only)

Select a suitable parameter number (PARAM). The following numbers are valid: 0-2047

16#8190 Incorrect setting of the CRC calculation

Select a suitable value for the CRC calculation.

The following are valid: deactivated or activated.

Check whether the module addressed supports CRC calculation.

16#8191 Incorrect setting of the diagnostic error interrupt

Select a suitable value for "Diagnostic error interrupt".

The following are valid: Diagnostic error interrupt deactivated or diagnostic error interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

16#8193

The module does not support supply voltage diagnos- Select a suitable value for "Diagnostic interrupt".

tics L+.

The following are permitted: Diagnostic interrupt

deactivated or diagnostic interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

Error message codes of the "Port configuration"

16#81A0 The module does not support this protocol.

Select a valid protocol for the module (PROTOCOL).

16#81A1

The module does not support this data transmission Select a valid data transmission rate for the module

rate.

(BAUD).

16#81A2 The module does not support this parity setting.

Select a suitable value for "Parity" (PARITY).

The following are valid:

· None (1)

· Even (2) · Odd (3)

· Mark (4)

· Space (5) · Any (6)

16#81A3

The module does not support this number of data bits.

Select a suitable value for "Number of data bits" (DATABITS).
The following are valid:

· 7 (2) · 8 (1)

16#81A4

The module does not support this number of stop bits. Select a suitable value for "Number of stop bits" (STOPBITS).
The following are valid:

· 1 (1)

· 2 (2)

16#81A5

The module does not support this type of data flow control.

Select a valid data flow control for the module (FLOWCTRL).

152

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81A7 Invalid value for XON or XOFF 16#81AA Invalid operating mode
16#81AB Invalid receive line initial state

16#81AC Invalid value for "Break detection"

16#81AF The module does not support this protocol.

Error codes of the "Send configuration"

16#81B5

More than two end delimiters or end sequence > 5 characters

16#81B6

Send configuration rejected because the 3964(R) protocol was selected

Remedy Select suitable values for XON (XONCHAR) and XOFF (XOFFCHAR). Valid range of values: 0...255 Valid operating modes are:
· Full duplex (RS232) (0) · Full duplex (RS422) four-wire mode (point-to-
point) (1) / (CM PtP (ET 200SP)) · Full duplex (RS422) four-wire mode (multipoint
master) (2)/ (CM PtP (ET 200SP)) · Full duplex (RS 422) four-wire mode (multipoint
slave) (3) · Half duplex (RS485) two-wire mode. (4)
Valid initial states are:
· "No" default setting (0) · Signal R(A)=5 V, signal R(B)=0 V (break detec-
tion) (1): Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)". · Signal R(A)=0 V, signal R(B)=5 V (2): This default setting corresponds to the idle state (no active send operation).
Select a suitable value for "Break detection". The following are valid:
· Break detection deactivated (0) · Break detection activated (1).
Select a valid protocol for the module.
Select suitable values for "End delimiter" and "End sequence". The following are valid:
· deactivated (0), · 1 (1) or 2 (2) end delimiters or
· deactivated (0), · 1 (1) up to 5 (5) characters for the end sequence.
Make sure that no send configuration is transmitted if the 3964(R) protocol is set.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

153

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the "Receive configuration" 16#81C0 Invalid start condition

Remedy
Select a suitable start condition. The following are valid:

· Send break before frame start · Send Idle Line.

16#81C1 16#81C3
16#81C4
16#81C5

Invalid end condition or no end condition selected Invalid value for "Maximum message length"
Invalid value for "Offset of the length specification in the message"
Invalid value for "Size of length field"

Select a suitable end condition (see Receiving data with Freeport (Page 41)).
Select a suitable value for "Maximum message length" (MAXLEN).
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Offset of the length specification in the message".
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Size of length field" (LENGTHSIZE).
Valid range of values in bytes:

· 1 (1)

· 2 (2)

· 4 (4)

16#81C6 16#81C7

Invalid value for "Number of characters not counted in Select a suitable value for "Number of characters not

length specification"

counted in length specification" (LENGTHM).

Valid range of values: 0 to 255 (bytes)

The total of "Offset in the message + size of length field + number of characters not counted" is greater than the maximum frame length

Select a suitable value for "Offset in message", "Size of length field" and "Number of characters not counted".

Valid range of values:

· Offset in the message (depending on the module): 0-1024/2048/4096 (bytes)

· Size of length field: 1, 2, or 4 (bytes)

· Number of characters not counted: 0 to 255 (bytes)

16#81C8 16#81C9 16#81CB 16#81CC

Invalid value for "Response timeout"
Invalid value for "Character delay time"
frame end sequence is activated, but no character is activated for the check frame start sequence is activated, but no character is activated for the check

Select a suitable value for "Response timeout". Valid range of values: 1-65535 (ms) Select a suitable value for "Character delay time". Valid range of values: 1 to 65535 (bit times) Activate one or several characters for the check.
Activate one or several characters for the check.

154

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81CD Invalid value for "Prevent overwriting"

Remedy Select a suitable value for "Prevent overwriting". The following are valid:

· Prevent overwriting is deactivated (0) or · Prevent overwriting is activated (1)

16#81CE Invalid value for "Clear receive buffer on startup"

Select a suitable value for "Clear receive buffer on startup".
The following are valid:

· Clear receive buffer at startup is deactivated (0)

· Clear receive buffer at startup is activated (1)

SEND status and error codes

16#81D0

Receiving send request during runtime of a send command

16#81D1 The waiting time for XON or CTS = ON has expired.

16#81D2 16#81D3

"Hardware RTS always ON": Send job canceled due to change from DSR = ON to OFF
Send buffer overflow / send frame too long

16#81D5 16#81D6 16#81D7 16#81D8 16#81DF

Transmission canceled due to parameter changes, detected wire break, or CPU in STOP
Transmission canceled because end identifier was not received
Communication error between the user program and module
Transmission attempt rejected because module is not configured
The module has reset the interface to the FB for one of the following reasons:

Make sure that you do not receive an additional send request during runtime of a send command. The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.
Check the communication partner. Make sure that DSR is ON for the entire duration of transmission.
Select a shorter frame length. The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes) Check the parameter assignment, wire break, and CPU status.
Check the parameter assignment of the end characters and the frame of the communication partner.
Check the communication (e.g., matching the sequence number).
Configure the module.
--

· Module was restarted

· Module parameters were reassigned

· CPU STOP

Error codes of the receive configuration

16#81E0

Frame aborted: Send buffer overflow / send frame too Increase the call rate for the receive function in the

long

user program or configure communication with data

flow control.

16#81E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#81E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#81E3 Frame aborted: Character overflow error

Firmware error: Please contact Customer Support.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

155

Programming - communication using instructions 5.4 Instructions

Error code 16#81E4
16#81E5

Description
Frame aborted: The total length of "Offset in the message + size of the length field + number of characters not counted" is greater than the receive buffer
Frame aborted: Break

16#81E6

Maximum number of "Buffered received frames" exceeded

16#81E7 Synchronization error module and Receive_P2P

16#81E8

Frame aborted: The character delay time has expired before the message end criterion was detected

16#81E9 16#81EA 16#81EB

Modbus CRC error (only communication modules which support Modbus)
Modbus frame too short (only communication modules which support Modbus)
Frame aborted: Maximum frame length reached

Error codes V24 accompanying signals

16#81F0

The module does not support V24 accompanying signals

16#81F1 16#81F2

No operation of the V24 accompanying signals
The DSR signal cannot be set because the module has the type DTE.

16#81F3

The DTR signal cannot be set because the module has the type DCE.

16#81F4

Block header error (e.g. incorrect block type or incorrect block length)

Remedy Select a suitable value for offset in message, size of the length field, and number of characters not counted.
Receive line to partner is interrupted.
Reconnect or switch on partner.
In the user program call the instruction more often or configure a communication with data flow control or increase the number of buffered frames.
Make sure that different instances of the Receive_P2P do not access the same module.
Partner device faulty or too slow. Check this, if required, using an interface tester that is interconnected in the transmission line.
Checksum error of the Modbus frame. Check the communication partner.
Minimum length of Modbus frame not met. Check the communication partner.
Select a shorter frame length at the communication partner.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)
Check the parameters for end of frame detection.
You have tried to set accompanying signals for a module that does not support V24 accompanying signals. Make sure that this is an RS232 module or that RS232 mode (ET 200SP) is set.
The V24 accompanying signals cannot be operated manually if hardware data flow control is active.
Check the configured type of the module.
The module type must be DCE (data communication equipment).
Check the configured type of the module. The module type must be DTE (data terminal equipment).
Check the instance DB and the block header.

156

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the receive configuration
16#8201 1) Receive_Conditions is a pointer to an invalid data type

16#8225

Receive_Conditionspoints to an optimized memory area greater than 1 kB

or

Receive_Conditions points to an optimized memory area and the receive length is greater than the area addressed by Receive_Conditions.

16#8229 1) Receive_Conditions is a pointer to BOOL with a number of bits not equal to n * 8

Error codes, general

16#8280 Negative acknowledgment when reading module

Remedy
Enter a pointer to one of the following data types: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING Enter a pointer to an area with a maximum length of: · Optimized memory area: 1 KB · Non-optimized memory area: 4 KB Note: If the pointer points to an optimized memory area, do not send more than 1 KB.
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.
You can find more detailed information on error causes in theRDREC.STATUS static parameters and in the description of the SFB RDREC.

· Check the input at the PORT parameter · Set the COM_RST parameter before the 1st call.

16#8281 Negative acknowledgment when writing module

16#8282 Module not available
Error codes of the receive configuration 16#82C1 Invalid value for "Buffered received frames".

16#82C2 16#8301 1)

Receive configuration rejected because the 3964(R) protocol was selected
Receive_Conditions is a pointer to an invalid data type

16#8322 16#8324 16#8328

Range length error when reading a parameter Range error when reading a parameter Setting error when reading a parameter

Check the input at the PORT parameter You can find more detailed information on error causes in the WRREC.STATUS static parameters and in the description of the SFB WRREC.
Check the input at the PORT parameter and ensure that the module can be reached.
Select a suitable value for "Buffered received frames". Valid range of values: 1-255
Make sure that no receive configuration is sent if the 3964(R) protocol is set.
Select a valid data type. The following are valid: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING
Check the input at the Receive_Conditions parameter
Check the input at the Receive_Conditions parameter
Check the input at the Receive_Conditions parameter

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

157

Programming - communication using instructions 5.4 Instructions

Error code Description

SEND status and error codes

16#8328 1) BUFFER is a pointer to BOOL with a number of bits not equal to n * 8

Error codes of the receive configuration

16#8332

Invalid data block at the Receive_Conditions parameter

16#833A

The designation of the data block at the Receive_Conditions parameter refers to a data block which is not loaded.

16#8351 Invalid data type

16#8352 1) Receive_Conditions does not point to a data block

16#8353 1) Receive_Conditions does not point to a structure of the typeReceive_Conditions

Error codes 3964(R) protocol

16#8380

Parameter assignment error: Invalid value for "Character delay time".

16#8381

Parameter assignment error: Invalid value for "Response timeout".

16#8382

Parameter assignment error: Invalid value for "Priority".

Remedy
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.
Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter
Check the input at the Receive_Conditions parameter Check the pointer to Receive_Conditions Check the pointer to Receive_Conditions
Select a suitable value for "Character delay time" (CharacterDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Response timeout" (AcknDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Priority" (Priority). The following are valid:

· High (1) · Low (0)

16#8383

Parameter assignment error: Invalid value for "Block Select a suitable value for "Block check" (BCC).

check"

The following are valid:

· With block check (1) · Without block check (0)

16#8384 16#8385 16#8386 16#8387

Parameter assignment error: Invalid value for "Connection attempts".
Parameter assignment error: Invalid value for "Transmission attempts".
Runtime error: Number of connection attempts exceeded
Runtime error: Number of transmission attempts exceeded

Select a suitable value for "Connection attempts" (BuildupAttempts).
Valid range of values: 1-255
Select a suitable value for "Transmission attempts" (RepetitionAttempts).
Valid range of values: 1-255
Check the interface cable and the transmission parameters.
Also check whether the receive function is configured correctly at the partner device.
Check the interface cable, the transmission parameters and the configuration of the communication partner.

158

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code 16#8388
16#8389
16#838A
16#838B 16#838C 16#838D 16#838E 16#838F 16#8391

Description Runtime error: Error at the "Block check character" The internally calculated value of the block check character does not correspond to the block check character received by the partner at the connection end. Runtime error: Invalid character received while waiting for free receive buffer
Runtime error: Logical error during receiving. After DLE was received, a further random character (other than DLE or ETX) was received.
Runtime error: Character delay time exceeded
Runtime error: Wait time for free receive buffer has started Runtime error: frame repetition does not start within 4 s after NAK
Runtime error: In idle mode, one or several characters (other than NAK or STX) were received.
Runtime error: Initialization conflict - Both partners have set high priority Parameter assignment error: 3964 configuration data rejected because Freeport is set

Remedy
Check whether the connection is seriously disrupted; in this case you may also occasionally see error codes. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
The send request of the communication partner (STX, 02H) is only answered with DLE when the receive buffer is empty. No additional character may be received before (except STX again).
Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Check if partner DLE in frame header and in data string is always in duplicate or the connection is released with DLE ETX. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Partner device too slow or faulty.
Verify by using an interface test device that is switched into the transmission line, if necessary.
In the user program call the instruction more often or configure a communication with data flow control.
Check the communication partner. A received frame that is possibly corrupted must be repeated by the partner within 4 seconds.
Check for proper function of the partner device, possibly using an interface test device that is switched into the transmission line.
Set the "Low" priority at one of the partners
If the Freeport protocol is set, make sure that no 3964 parameter assignment data is sent.

1) Only with instructions for S7-300/400 CPUs

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

159

Programming - communication using instructions 5.4 Instructions

Overview of error messages - Modbus

Error code Description

16#0000 No error

Configuration error of the interface - Modbus_Comm_Load

16#8181

The module does not support this data transmission rate.

16#8182 The module does not support this parity setting.

16#8183 16#8184

The module does not support this type of data flow control.
Invalid value for "Response timeout".

16#8280 Negative acknowledgment when reading module

16#8281 Negative acknowledgment when writing module

16#8282 Module not available

Remedy -
Select a valid data transmission rate for the module at the BAUD parameter. Select a suitable value for "Parity" at the PARITY parameter. The following are valid:
· None (1)
· Even (2)
· Odd (3)
· Mark (4)
· Space (5)
· Any (6)
Select a valid data flow control for the module at the FLOW_CTRL parameter. Select a suitable value for "Response timeout" at the RESP_TO parameter. Valid range of values: 1 to 65535 (ms) Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.RDREC.STATUS or Receive_Config.RDREC.STATUS static parameters or RDREC.STATUS and in the description of the SFB RDREC. Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.WRREC.STATUS or Receive_Config.WRREC.STATUS static parameters or WRREC.STATUS and in the description of the SFB WRREC. Check the input at the PORT parameter and ensure that the module can be reached.

160

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Slave

16#8186 Invalid slave address

Select a suitable slave address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8187 Invalid value at MB_HOLD_REG parameter

Select a suitable value for the hold register at the MB_HOLD_REG parameter.

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) and MODE parameter  1

Select the value 1 for MODE in Broadcast mode or select a different operating mode.

16#818C

The pointer to a MB_HOLD_REG area must be a data Select a suitable value for the pointer to the

block or a bit memory address area.

MB_HOLD_REG area.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS, and in the description of the SFB WRREC.

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during instruction execution. The cause of the error is shown in the STATUS parameter.

Determine the value of the SFCSTATUS parameter. Check what this means in the description for SFC51, STATUS parameter.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

161

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Master

16#8180 Invalid value for MB_DB parameter

The value configured for MB_DB (instance data DB) at the Modbus_Comm_Load instruction is not valid.

Check the interconnection of the Modbus_Comm_Load instruction and its error messages.

16#8186 Invalid station address

Select a suitable station address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) Select the value 1 for MODE in Broadcast mode or

and MODE parameter  1

select a different operating mode.

16#8189 Invalid data address

Select a suitable value for the data address at the DATA_ADDR parameter.

See description Modbus_Master (Page 125) in the Info system

16#818A Invalid length

Select a suitable data length at the DATA_LEN parameter.

See description Modbus_Master (Page 125) in the Info system

16#818B Invalid value for DATA_PTR

Select a suitable value for the data pointer at the DATA_PTR parameter (M or DB address).

See description Modbus_Master (Page 125) in the Info system

16#818C Interconnection error of the DATA_PTR parameter Check the interconnection of the instruction.

16#818D

The area addressed by DATA_PTR is longer than the Check the DATA_PTR pointer DB, or the area addressed is too small for the number of data bytes to be read or written.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS or Receive_Reset and in the description of the SFB WRREC.

162

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Communication errors - Modbus_Master and Modbus_Slave

16#80D1

The waiting time for XON or CTS = ON has expired.

The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.

16#80D2

"Hardware RTS always ON": Send job canceled due Check the communication partner. Make sure that

to change from DSR = ON to OFF

DSR is ON for the entire duration of transmission.

16#80E0

Frame aborted: Send buffer overflow / send frame too In the user program call the instruction more often or

long

configure a communication with data flow control.

16#80E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#80E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#80E3 Frame aborted: Character overflow error

Check the number of data in the frame of the communication partner.

16#80E4 Frame aborted: Maximum frame length reached

Select a shorter frame length at the communication partner.

The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes)

Communication error - Modbus_Master

16#80C8 The slave does not respond within the set time

Check the data transmission rate, parity and wiring of the slave.

16#80C9

The slave does not respond within the time set by Blocked_Proc_Timeout.

Check the setting for Blocked_Proc_Timeout.
Check if the module has been configured with the Modbus_Comm_Load instruction. The module may possibly need to be reconfigured using Modbus_Comm_Load after a pull/plug or after voltage recovery.

16#8200 The interface is busy with an ongoing request.

Repeat the command later. Make sure that there are no commands still running before you start a new one.

Protocol error - Modbus_Slave (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

The function code is not supported or is not supported Check the communication partner and make sure

for broadcast.

that a valid function code is sent.

16#8382 Invalid length information in the request frame

Select a suitable data length at the DATA_LEN parameter.

16#8383 Invalid data address in the request frame

Select a suitable value for the data address at the DATA_ADDR parameter.

16#8384 Invalid data value error in the request frame

Check the data value in the request frame of the Modbus master

16#8385

The diagnostic value is not supported by the Modbus The Modbus slave only supports the diagnostic

slave (function code 08)

values 16#0000 and 16#000A.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

163

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Protocol error - Modbus_Master (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

Response frame from Modbus Slave with the following error message: The function code is not supported.

Check the communication partner and make sure that a valid function code is sent.

16#8382

Response frame from Modbus Slave with the follow- Select a suitable data length. ing error message: Invalid length

16#8383

Response frame from Modbus Slave with the follow- Select a suitable value for the data address at the ing error message: Invalid data address in the request DATA_ADDR parameter. frame

16#8384

Response frame from Modbus Slave with the follow- Check the request frame to the Modbus slave. ing error message: Data value error

16#8385

Response frame from Modbus Slave with the following error message: The diagnostic value is not supported by the Modbus slave

The Modbus slave only supports the diagnostic values 16#0000 and 16#000A.

16#8386

The returned function code does not match the requested function code.

Check the response frame and the addressing of the slave.

16#8387 A slave that was not requested answers

Check the response frame of the slave. Check the address settings of the slave.

16#8388 Error in the response of the slave to a write request. Check the response frame of the slave.

16#8828 1) DATA_PTR points to a bit address that is not equal to Check the DATA_PTR pointer n * 8

16#8852 1) DATA_PTR is not a pointer to a DB or a bit memory area

Check the DATA_PTR pointer

16#8853 1) DATA_PTR is not a pointer of type BOOL or WORD Check the DATA_PTR pointer

16#8855 1) DATA_PTR points to a write-protected DB

Check the DATA_PTR pointer

16#8856 1) Error during call of SFC51

Call the Modbus_Master instruction again

Error - Modbus_Slave (only communication modules that support Modbus)

16#8428 1) MB_HOLD_REG points to a bit address that is not equal to n * 8

Check the MB_HOLD_REG pointer

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during call of SFC51

Call the Modbus_Slave instruction again

1) Only with instructions for S7-300/400 CPUs

164

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Overview of error messages - USS

Error code 16#0000 16#8180 16#8181
16#8182 16#8183 16#8184 16#8185 16#8186 16#8187 16#8188 16#8189 16#818A 16#818B 16#818C
16#818D 16#818E

Description No error Length error in response of drive Data type error
Data type error: "Double word" or "Real" may not be returned for the "Word" request. Data type error: "Word" may not be returned for the "Double word" or "Real" request. Checksum error in response of drive Addressing error Setpoint error Incorrect drive number returned Invalid PZD length The module does not support this data transmission rate. A different request for this drive is currently active. The drive does not respond. The drive responds with an error message to a parameter request.
The drive responds with an access error message to a parameter request. The drive was not initialized.

Remedy Check the response frame of the drive. Select a suitable data type. The following are valid: · Real · Word · Double word
Check the response frame of the drive.
Check the response frame of the drive.
Check the drive and the communication connection. Valid drive address range: 1 to 16 Valid setpoint range: -200% to +200% Check the response frame of the drive. Permitted PZD lengths: 2, 4, 6, 8 words Select a valid data transmission rate for the module.
Repeat the parameter read or write command later. Check the drive. Check the response frame of the drive. Check the parameter request. Check if the instructions USS_Read_Param, USS_Write_Param or USS_Port_Scan have reported an error. If they have, check the value of the static tag USS_DB. w_USSExtendedError of the USS_Drive_Control instruction. Check the response frame of the drive. Check the parameter request. Check the user program and make sure that the USS_Drive_Control instruction is called for this drive.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

165

Programming - communication using instructions 5.4 Instructions

Error code Description 16#8280 Negative acknowledgment when reading module
16#8281 Negative acknowledgment when writing module
1) Only with instructions for S7-300/400 CPUs

Remedy
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.RDREC.STATUS, Send_Config.RDREC.STATUS , Receive_Config.RDREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.WRREC.STATUS, Send_Config.WRREC.STATUS , Receive_Config.WRREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB WRREC.

166

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

5.4.3

USS

5.4.3.1

Overview of USS communication

USS communication
The USS instructions control the operation of drives which support the protocol of the universal serial interface (USS). You can communicate with several drives by means of RS485 connections and the USS instructions with the PtP communication modules. Each RS485 port can operate up to 16 drives.
The USS protocol uses a master-slave network for communication via a serial bus. The master uses an address parameter to send data to a selected slave. A slave cannot send without having first received a send request. Communication between individual slaves is not possible. USS communication takes place in half-duplex mode. The figure below shows a network diagram for a sample application with 16 drives.

 CPU  CM  USS drives in a USS network
Figure 5-1 Wiring example with S7-1500 communication module
Note Communicating with a drive via RS232 You can basically also use CM PtP RS232 BA and CM PtP RS232 HF for communication with a drive. However, only one drive can be connected to an RS232 port. Communicating with a drive via RS422 You can basically also use the RS422 interface of the CM PtP RS422/485 BA and CM PtP RS422/485 HF for communication with a drive. However, only one drive can be connected to an RS422 port.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

167

Programming - communication using instructions 5.4 Instructions
USS instructions in your program
 USS_Port_Scan: The instruction USS_Port_Scan allows you to communicate via a communication module with up to 16 drives using a USS network (must be called cyclically).
There is only one USS_Port_Scan instruction per PtP communication port in the program, and it controls transmission to all drives.
 USS_Drive_Control: The instruction USS_Drive_Control allows you to prepare the send data from USS_Port_Scan for a drive and display its receive data.
USS_Drive_Control configures the data to be sent and evaluates the data received in a previous request from USS_Port_Scan.
 USS_Read_Param: The instruction USS_Read_Param allows you to read parameters from a drive.
 USS_Write_Param: The instruction USS_Write_Param allows you to change parameters in a drive.

168

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

5.4.3.2

Programming - communication using instructions 5.4 Instructions
Requirements for using the USS protocol
The four USS instructions use 2 FBs and 2 FCs to support the USS protocol. For each USS network, one instance data block (DB) is used for USS_Port_Scan and one instance data block for all calls of USS_Drive_Conrol.

Figure 5-2 USS program sequence
All drives (max. 16) that are connected to one RS485 port are part of the same USS network. All drives that are connected to another RS485 port are part of a different USS network. Each USS network is managed using a unique instance data block for all USS_Drive_Control instructions and one further instance data block for the USS_Port_Scan instruction. All instructions that are part of a USS network must share this instance data block for USS_Drive_Conrol. The USS_Port_Scan, USS_Read_Param and USS_Write_Param instructions have the USS_DB parameter for this function. This parameter must be connected to the (static) USS_DB parameter of the instance DB of the USS_Drive_Control instruction.
 The instructions USS_Drive_Control and USS_Port_Scan are function blocks (FB). If you add the USS_Drive_Control or USS_Port_Scan instruction to the programming editor, you are prompted to assign a DB for this FB in the "Call options" dialog. If it is the first USS_Drive_Control instruction in this program for this USS network, you can apply the DB standard assignment (or change the name, if necessary) and the new DB is created for you. If, however, it is not the first USS_Drive_Control instruction for this drive, you need to select the DB which has already been assigned to this USS network from the drop-down list in the "Call options" dialog.
 The USS_Write_Param and USS_Read_Param instructions are functions (FCs). No DB is assigned when you add these FCs in the editor. If you add these FCs or the USS_Port_Scan instruction in the editor, you need to assign the USS_DB parameter of the corresponding USS_Drive_Control instance DB to the USS_DB input of these instructions. Double-click the parameter field and click the symbol to display the available DBs. Enter a period "." and select the USS_DB parameter from the drop-down list.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

169

Programming - communication using instructions 5.4 Instructions
 The USS_Port_Scan function controls communication between the CPU and the drives via the point-to-point RS485 communication port. A communication with the drive is processed every time you call this function. Your program must call this function fast enough so that the drives do not signal a timeout. To ensure a constant time response for frame communication, you should call this instruction in a cyclic interrupt OB.
 The USS_Drive_Control instruction gives your program access to a specified drive in the USS network. Its inputs and outputs correspond to the states and operating functions of the drive. If there are 16 drives in your network, you must call USS_Drive_Control at least 16 times in your program, i.e. once for each drive.
You should only call the USS_Drive_Control instruction from a cyclic OB.
 The operating parameters of the drive are read and written with the USS_Read_Param and USS_Write_Param functions. These parameters control the internal operation of the drive. See the drive manual for a definition of these parameters. Your program may include any number of these functions, but only one read or write request may be active for a drive at any particular time. You may only call the USS_Read_Param and USS_Write_Param functions from the cycle OB of a main program.
NOTICE
USS instruction calls
Only ever call USS_Drive_Control, USS_Read_Param or USS_Write_Param from a cycle OB of the main program. The USS_Port_Scan instruction function can be called from any OB, but it is usually called from a cyclic interrupt OB.
Do not use the USS_Drive_Control, USS_Read_Param or USS_Write_Param instruction in an OB with a higher priority than the corresponding USS_Port_Scan instruction. For example, do not add USS_Port_Scan to the main program or USS_Read_Param to a cyclic interrupt OB. You may encounter unexpected errors if the execution of USS_Port_Scan is interrupted by another instruction.

170

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Calculating time for communication with the drive
Communication with the drive takes place asynchronously to the cycle of the CPU. The CPU usually runs through several cycles before communication with a drive is complete.
To ensure that the watchdog set for the drive is not triggered, the send frames must be sent to the drive within the watchdog time. You must allow for the number of any retries which may be needed to complete the transaction if communication errors occur. By default, up to 2 retries are made for each transaction with the USS protocol. The maximum time interval between two send frames is calculated as follows:
N * (5 * cycle time + frame runtime + timeout of the receive frame max.) * (number of transmission attempts)

N

Number of drives in this network

Factor 5

5 cycles are typically needed for sending and receiving frames.

Cycle time

Max. cycle time of the cyclic interrupt OB in which the USS_Port_Scan instruction is called.

Frame runtime

Frame time = (number of characters per frame) * (11 Bit per character) / (data transmission rate in Bit/s)

Number of transmis- Number of retries + 1 sion attempts

Timeout of the receive RCVTIME (if no response is received from the drive) frame

Timeout of the receive RCVTIME + MSGTIME (if an incomplete answer is received shortly

frame max.

before the expiration of RCVTIME and monitoring of MSGTIME has

expired or if a response is still being processed at the expiration of

RCVTIME, the timeout is extended by the MSGTIME)

The following times apply for "Received frame timeout" (ms):

Bit/s
Receive _Conditions.END.RCVTIME
Receive _Conditions.END.MSGTIME

115200 57600

25

29

25

29

38400 33
33

19200 56
56

9600 72
72

4800 100
124

2400 100
240

1200 100
460

Timeout of the receive frame max. = (Receive_Conditions.END.RCVTIME (0.072 s) + Receive_Conditions.END.MSGTIME (0.072 s))

Example:

5 drives Data transmission rate = 9600 bps 28 characters per frame Cycle time = 0.020 s Number of retries = 2

Time interval = 5 * (5 * 0.02 s + 1 * 28 * 11 / 9600 s + 0.072 s + 0.072 s) * 3 = 3 s

The time monitoring of the drive must be set to about 3 seconds in this case.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

171

Programming - communication using instructions 5.4 Instructions

5.4.3.3

USS_Port_Scan / USS_Port_Scan_31: Communication by means of a USS network
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.
Note Using the USS_Port_Scan_31 instruction It is only possible to use the USS_Port_Scan_31 instruction on an S7-1500 CPU.

Description

The USS_Port_Scan instruction processes the communication by means of a USS network for max. 16 drives.
The USS_Port_Scan_31 instruction processes the communication by means of a USS network for max. 31 drives.
STEP 7 automatically creates the instance DB when you add the instruction.

Parameters

Parameter Declaration

PORT

IN

Data type

S71200/1500

S7300/400/ WinAC

Port

Word

Standard 0

Description
Specifies the communication module which is used for the communication: · For S7-1500/S7-1200: "HW identifier" from the device
configuration. The symbolic port name is assigned in the "System constants" tab of the PLC tag table and can be applied from there. · For S7-300/S7-400: "Input address" from the device configuration. In the S7-300/400/WinAC systems the PORT parameter is assigned the input address assigned in HWCN.

172

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameter Declaration

BAUD

IN

USS_DB INOUT COM_RST INOUT
ERROR OUT STATUS OUT

Data type

S71200/1500
DInt

S7300/400/ WinAC

USS_BASE

---

Bool

Bool Word

Standard 9600
­ FALSE FALSE 0

Description
Data transmission rate for USS communication The following are valid: · 1200 bps · 2400 bps · 4800 bps · 9600 bps · 19200 bps · 38400 bps · 57600 bps · 115200 bps The USS_DB parameter must be connected to the (static) USS_DB parameter of the instance DB which is generated and initialized when you add a USS_Drive_Control / USS_Drive_Control_31 instruction to your program. Initialization of the USS_Port_Scan / USS_Port_Scan_31 instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. Note: The parameter is only available for S7-300/400 instructions. If TRUE, this output indicates that an error has occurred and that the STATUS output is valid. You may need to check the value of the static tag USS_DB. w_USSExtendedError in the instance DB of the USS_Drive_Control / USS_Drive_Control_31 instruction. Error code (see Error messages (Page 188)).

There is only one USS_Port_Scan / USS_Port_Scan_31 instruction per PtP communication port in the program and each call of this instruction controls a transmission to or from all drives in this network. All USS functions assigned to one USS network and one PtP communication port must use the same instance DB.

Your program must execute the USS_Port_Scan / USS_Port_Scan_31 instruction often enough to prevent a timeout in the drive (see Requirements for using the USS protocol (Page 169) "Calculating time for communication with the drive").

The USS_Port_Scan / USS_Port_Scan_31 instruction is usually called from a cyclic interrupt OB to prevent drive timeouts and to make the last USS data updates available for calls of USS_Drive_Control / USS_Drive_Control_31 .

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

173

Programming - communication using instructions 5.4 Instructions

USS_Port_Scan / USS_Port_Scan_31 data block tags
The table below shows the public static tags in the instance DB of USS_Port_Scan / USS_Port_Scan_31 that you can use in your program.

Table 5- 35 Static tags in the instance DB

Tag MODE
LINE_PRE
BRK_DET RETRIES_MAX EN_DIAG _ALARM EN_SUPPLY _VOLT

Data type USInt
USInt
USInt SInt/Byte Bool Bool

Standard Description

4

Operating mode

Valid operating modes are:

· 0 = Full duplex (RS232)

· 1 = Full duplex (RS422) four-wire mode (point-to-point)

· 2 = Full duplex (RS 422) four-wire mode (multipoint master; CM PtP (ET 200SP))

· 3 = Full duplex (RS 422) four-wire mode (multipoint slave; CM PtP (ET 200SP))

· 4 = Half duplex (RS485) two-wire mode 1)

2

Receive line initial state

Valid initial states are:

· 0 = "No" initial state 1)

· 1 = signal R(A)=5 V, signal R(B)=0 V (break detection): Break detection is possible with this initial state. Can only be selected with: "Full duplex (RS422) four-wire mode (point-topoint connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)".

· 2 = signal R(A)=0 V, signal R(B)=5 V: This default setting corresponds to the idle state (no active send operation). No break detection is possible with this initial state.

0

Activate diagnostics interrupt:

· 0 - not activated

· 1 - activated

2

Number of retries when communication errors occur.

You can use this parameter to set the number of send retries for a request frame if the response frame is not received within the set time.

0

Activate diagnostics interrupt:

· 0 - not activated

· 1 - activated

0

Enable diagnostics for missing supply voltage L+

· 0 - not activated

· 1 - activated

1) Required setting for the use of PROFIBUS cables with CM 1241 for RS485

Version 2.5 is functionally identical to version 2.4 and its version number was only incremented due to internal measures.

174

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
Instruction versions
USS_Port_Scan: Version 2.5 is functionally identical to version 2.4 and its version number was only incremented due to internal measures. USS_Port_Scan_31: Version 1.2 is functionally identical to version 1.1 and its version number was only incremented due to internal measures.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

175

Programming - communication using instructions 5.4 Instructions

5.4.3.4

USS_Drive_Control / USS_Drive_Control_31: Preparing and displaying data for the drive
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.
Note Using the USS_Drive_Control_31 instruction It is only possible to use the USS_Drive_Control_31 instruction on an S7-1500 CPU.

Description

The USS_Drive_Control instruction prepares send data for max. 16 drives and evaluates the response data of the drives.
The USS_Drive_Control_31 instruction prepares send data for max. 31 drives and evaluates the response data of the drives.
You need to use a separate instance of the instruction for each drive, and all USS functions assigned to one USS network and one PtP communication port must use the same instance DB. You must enter the DB name when you add the first USS_Drive_Control / USS_Drive_Control_31 instruction. You then refer to this DB that was created when the first instruction was added.
STEP 7 automatically creates the DB when you add the instruction.

Parameters

Parameters
RUN
OFF2 OFF3 F_ACK

Declaration IN

Data type

S71200/1500
Bool

S7300/400/ WinAC

Standard FALSE

IN

Bool

IN

Bool

IN

Bool

FALSE FALSE FALSE

Description
Start bit of the drive: If this parameter is TRUE, this input allows you to operate the drive with the preset speed. If RUN changes to FALSE during operation of the drive, the motor coasts to a standstill. This behavior differs from disconnection of the power supply (OFF2) and braking of the motor (OFF3). "Coast to standstill" bit: If this parameter is FALSE, this bit causes the drive to coast to a standstill without braking. Fast stop bit: If this parameter is FALSE, this bit causes a fast stop by braking the drive. Error acknowledgment bit: This bit resets the error bit of a drive. The bit is set after clearing the error and the drive detects this way that the previous error no longer has to be reported.

176

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameters
DIR

Declaration IN

Data type

S71200/1500
Bool

S7300/400/ WinAC

Standard FALSE

DRIVE

IN

PZD_LEN IN

SPEED IN _SP

USInt

Byte

1

USInt

Byte

2

Real

0.0

CTRL3

IN

Word

0

CTRL4

IN

Word

0

CTRL5

IN

Word

0

CTRL6

IN

Word

0

CTRL7

IN

Word

0

CTRL8

IN

Word

0

COM_RST IN/OUT

---

Bool

FALSE

NDR

OUT

ERROR OUT

Bool Bool

STATUS RUN_EN D_DIR

OUT OUT OUT

Word Bool Bool

FALSE FALSE
0 FALSE FALSE

Description
Direction control of the drive: This bit is set if the drive is to run forward (if SPEED_SP is positive; see table "Interaction of SPEED_SP and DIR parameters").
Address of the drive: This input is the address of the USS drive. The valid range is between drive 1 and drive 16.
Word length: This is the number of PZD data words. Valid values are 2, 4, 6 or 8 words.
Speed setpoint: This is the speed of the drive as a percentage of the configured frequency. A positive value means that the drive runs forward (if DIR is true). The valid range is 200.00 to -200.00.
Control word 3: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Control word 4: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Control word 5: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Control word 6: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Control word 7: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Control word 8: Value that is written to a user-defined parameter of the drive. You have to configure it in the drive (optional parameter).
Initialization of the USS_Drive_Control / USS_Drive_Control_31 instruction The instruction is initialized with TRUE. The instruction then resets COM_RST to FALSE. Note: The parameter is only available for S7-300/400 instructions.
New data available: If this parameter is TRUE, the bit signals that data of a new communication request is available at the output.
Error occurred: If TRUE, this indicates that an error has occurred and that the STATUS output is valid. All other outputs are set to zero in the event of an error. Communication errors are only signaled at the ERROR and STATUS outputs of the USS_Port_Scan / USS_Port_Scan_31 instruction.
Error code (see Error messages (Page 188)).
Operation enabled: This bit signals if the drive is running.
Drive direction: This bit signals if the drive is running forward.
· FALSE ­ forward
· TRUE ­ backward

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

177

Programming - communication using instructions 5.4 Instructions

Parameters
INHIBIT

Declaration OUT

Data type

S71200/1500
Bool

S7300/400/ WinAC

Standard FALSE

FAULT

OUT

SPEED OUT

STATUS1 OUT STATUS3 OUT

STATUS4 OUT

STATUS5 OUT

STATUS6 OUT

STATUS7 OUT

STATUS8 OUT

Bool Real Word Word Word Word Word Word Word

FALSE 0.0 0 0 0 0 0 0 0

Description
Drive blocked: This bit signals the status of the block bit for the drive.
· FALSE ­ not blocked · TRUE ­ blocked Drive error: This bit signals that an error occurred in the drive. You must remedy the fault and set the F_ACK bit to clear this bit. Actual value drive speed (scaled value of STATUS 2 of the drive): This is the speed of the drive as a percentage of the configured speed. STATUS 1 of the drive This value includes fixed status bits of a drive. STATUS 3 of the drive This value includes a user-definable status word of the drive. STATUS 4 of the drive This value includes a user-definable status word of the drive. STATUS 5 of the drive This value includes a user-definable status word of the drive. STATUS 6 of the drive This value includes a user-definable status word of the drive. STATUS 7 of the drive This value includes a user-definable status word of the drive. STATUS 8 of the drive This value includes a user-definable status word of the drive.

When the initial execution of USS_Drive_Control / USS_Drive_Control_31 takes place, the drive specified by the USS address (DRIVE parameter) is initialized in the instance DB. After initialization, subsequent USS_Port_Scan / USS_Port_Scan_31 instructions can start communication with the drive from this drive number.

If you change the drive number, you must first place the CPU in STOP and then back in RUN to initialize the instance DB. The input parameters are configured in the USS send buffer and any outputs are read from a "previous" valid response buffer. USS_Drive_Control / USS_Drive_Control_31 only configures the data to be sent and evaluates data received in a previous request.

178

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

You can control the drive's direction of rotation by using the D_IR input (Bool) or the sign (positive or negative) at the SPEED_SP input (Real). The table below explains how these inputs work together to determine the direction of rotation of the drive, provided the motor rotates forward.

Table 5- 36 Interaction of SPEED_SP and DIR parameters

SPEED_SP Value > 0 Value > 0 Value < 0 Value < 0

DIR

Direction of rotation of the drive

0

Backward

1

Forward

0

Forward

1

Backward

USS_Drive_Control / USS_Drive_Control_31 data block tags
The table below shows the public static tags in the instance DB of USS_Drive_Control / USS_Drive_Control_31 that you can use in your program.

Table 5- 37 Static tags in the instance DB

Tag
USS_DB. W _USSExtendedError

Data type Word

Standard 16#0

Description USS Drive Extended Error Code - drive-specific value The meaning of the error message depends on which instruction reported an error first (ERROR = TRUE). The following cases are distinguished:
· USS_Write_Param / USS_Write_Param_31: You can find the meaning of the error code in the description of the drive.
· USS_Read_Param / USS_Read_Param_31: You can find the meaning of the error code in the description of the drive.
· USS_Port_Scan / USS_Port_Scan_31: Number of the drive affected by the error message.

Instruction versions
USS_Drive_Control:
Version 2.0 is functionally identical to version 1.2 and its version number was only incremented due to internal measures.
USS_Drive_Control_31:
Version 2.0 is functionally identical to version 1.0 and its version number was only incremented due to internal measures.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

179

Programming - communication using instructions 5.4 Instructions

5.4.3.5

USS_Read_Param / USS_Read_Param_31: Read data from drive
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.
Note Using the USS_Read_Param_31 instruction It is only possible to use the USS_Read_Param_31 instruction on an S7-1500 CPU.

Description

The USS_Read_Param instruction reads a parameter from one of max. 16 drives.
The USS_Read_Param_31 instruction reads a parameter from one of max. 31 drives.
All USS functions assigned to one USS network and one PtP communication port must use the instance data block of the USS_Drive_Control / USS_Drive_Control_31 instruction. USS_Read_Param / USS_Read_Param_31 must be called from a cycle OB of the main program.

Parameters

Parameters REQ DRIVE PARAM
INDEX
USS_DB

Declaration IN IN IN
IN
INOUT

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

USInt

Byte

Standard
­ ­

UInt

­

UInt

­

USS_BASE

­

Description
A positive edge at REQ creates a new read request. Address of the drive: DRIVE is the address of the USS drive. The valid range is between drive 1 and drive 16. Parameter number: PARAM specifies the drive parameter to write. The range for this parameter is between 0 and 2047. With some drives, the most significant byte of the INDEX parameter can be used to access parameter values greater than 2047. Additional information on access to an extended range is available in your drive manual. Parameter index: INDEX specifies the drive parameter index to which to write. It is a 16-bit value in which the least significant bit is the actual index value with a range of (0 to 255). The drive can also use the most significant byte, which is drive-specific. Additional information is available in your drive manual. The USS_DB parameter must be connected to the (static) USS_DB parameter of the instance DB which is generated and initialized when you add a USS_Drive_Control / USS_Drive_Control_31 instruction to your program.

180

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameters DONE1
ERROR
STATUS VALUE

Declaration OUT OUT
OUT OUT

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

Bool

Word

Variant Any

(Word, Int, UInt, DWord, DInt, UDInt, Real)

(Word, Int, UInt, DWord, DInt, UDInt, Real)

Standard FALSE FALSE
0 ­

Description
If this parameter is TRUE, the previously requested value of the read parameter is available at the VALUE output. This bit is set when the USS_Drive_Control / USS_Drive_Control_31 instruction recognizes the read response of the drive. This bit is reset the next time USS_Read_Param / USS_Read_Param_31 is called. ERROR = TRUE: An error has occurred and the STATUS output is valid. All other outputs are set to zero in the event of an error. Communication errors are only signaled at the ERROR and STATUS outputs of the USS_Port_Scan / USS_Port_Scan_31 instruction. You may need to check the value of the static tag USS_DB. w_USSExtendedError in the instance DB of the USS_Drive_Control / USS_Drive_Control_31 instruction. Error code (see Error messages (Page 188)). This is the value of the parameter that was read and is only valid if the DONE bit is true.

1 The DONE bit indicates that valid data was read out of the referenced motor drive and transmitted to the CPU. It does not indicate that the instruction is cabable of immediately read an additional parameter. An empty read request must be sent to the motor drive and acknowledged by the instruction before the parameter channel is freed up for use by the respective drive. The immediate call of USS_Read_Param / USS_Read_Param_31 or USS_Write_Param / USS_Write_Param_31 for the specific motor drive results in error 16#818A.

Instruction versions
USS_Read_Param:
Version 1.5 is functionally identical to version 1.4 and its version number was only incremented due to internal measures.
USS_Read_Param_31:
Version 1.1 is functionally identical to version 1.0 and its version number was only incremented due to internal measures.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

181

Programming - communication using instructions 5.4 Instructions

5.4.3.6

USS_Write_Param / USS_Write_Param_31: Change data in drive
Note Use with CM1241 The use of this instruction with a CM1241 is only possible from firmware version V2.1 of the module.
Note Using the USS_Write_Param_31 instruction It is only possible to use the USS_Write_Param_31 instruction on an S7-1500 CPU.
Note For EEPROM write instructions (EEPROM in a USS drive): Keep the number of EEPROM write operations to a minimum in order to maximize the EEPROM service life.

Description

The USS_Write_Param instruction changes a parameter in one of max. 16 drives.
The USS_Write_Param_31 instruction changes a parameter in one of max. 31 drives.
All USS functions assigned to one USS network and one PtP communication port must use the instance data block of the USS_Drive_Control / USS_Drive_Control_31.
USS_Write_Param / USS_Write_Param_31 must be called from the cycle OB of a main program.

Parameters

Table 5- 38 Data types for the parameters

Parameters
REQ DRIVE PARAM
INDEX

Declaration
IN IN IN
IN

Data type

S7-

S7-

1200/1500 300/400/

WinAC

Bool

USInt

Byte

UInt

UInt

Standard
­ ­ ­
­

Description
A positive edge at REQ creates a new write request. Address of the drive: DRIVE is the address of the USS drive. The valid range is between drive 1 and drive 16. Parameter number: PARAM specifies the drive parameter to write. The range for this parameter is between 0 and 2047. With some drives, the most significant byte of the INDEX parameter can be used to access parameter values greater than 2047. Additional information on access to an extended range is available in your drive manual. Parameter index: INDEX specifies the drive parameter index to which to write. It is a 16-bit value in which the least significant bit is the actual index value with a range of (0 to 255). The drive can also use the most significant byte, which is drive-specific. Additional information is available in your drive manual.

182

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Parameters EEPROM VALUE
USS_DB DONE1 ERROR
STATUS

Declaration IN IN
INOUT OUT OUT
OUT

Data type

S71200/1500
Bool

S7300/400/ WinAC

Standard ­

Variant Any

­

(Word, Int, UInt, DWord, DInt, UDInt, Real)

(Word, Int, UInt, DWord, DInt, UDInt, Real)

USS_BASE

­

Bool

FALSE

Bool

FALSE

Word

0

Description
Save in EEPROM of the drive: If TRUE, the transaction of a parameter for writing to the drive is saved in the EEPROM of the drive. If FALSE, the written value is saved only temporarily and is lost the next time you switch on the drive. Value of the parameter in which you want to write. It must be valid with a positive edge of REQ.
The USS_DB parameter must be connected to the (static) USS_DB parameter of the instance DB which is generated and initialized when you add a USS_Drive_Control / USS_Drive_Control_31 instruction to your program. If TRUE, the VALUE input is written to the drive. This bit is set when the USS_Drive_Control / USS_Drive_Control_31 instruction recognizes the write response of the drive. This bit is reset the next time USS_Write_Param / USS_Write_Param_31 is called. If TRUE, an error has occurred and the STATUS output is valid. All other outputs are set to zero in the event of an error. Communication errors are only signaled at the ERROR and STATUS outputs of the USS_Port_Scan / USS_Port_Scan_31 instruction. You may need to check the value of the static tag USS_DB. w_USSExtendedError in the instance DB of the USS_Drive_Control / USS_Drive_Control_31 instruction. Error code (see Error messages (Page 188)).

1 The DONE bit indicates that valid data was read out of the referenced motor drive and transmitted to the CPU. It does not indicate that the USS library is able to read out an additional parameter immediately. An empty write request must be sent to the motor drive and acknowledged by the instruction before the parameter channel is freed up for use by the respective drive. The immediate call of USS_Read_Param / USS_Read_Param_31 or USS_Write_Param / USS_Write_Param_31 FC for the specific motor drive results in error 0x818A.

Instruction versions
USS_Write_Param:
Version 1.6 is functionally identical to version 1.5 and its version number was only incremented due to internal measures. USS_Write_Param_31:
Version 1.1 is functionally identical to version 1.0 and its version number was only incremented due to internal measures.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

183

Programming - communication using instructions 5.4 Instructions

5.4.3.7

General information on drive setup

Requirements for the drive setup
 You need to configure the use of 4 PIV words (ParameterIDValue) for the drives.
 The drives can be configured for 2, 4, 6 or 8 PZD words (Process data area).
 The number of PZD words in the drive must correspond to the PZD_LEN input of the USS_Drive_Control instruction of the drive.
 Make sure that the data transmission rate of all drives corresponds to the BAUD input of the USS_Port_Scan instruction.
 Make sure that the drive is set up for USS communication.
 Make sure that it is specified in the drive that the frequency setpoint is provided by the USS interface.
 Make sure that the drive address is specified (areas: 1-16). This address must correspond to the DRIVE input at the USS_Drive_Control block of the drive.
 Make sure that the RS485 network is terminated correctly.

Connection and setup of SINAMICS V20 drive
An application example for operation of a SINAMICS V20 at an S7-1200 is available on the Internet. (http://support.automation.siemens.com/WW/view/en/63696870)

Connecting the SINAMICS V20 drive
Connection example of a SIEMENS G120(C) drive to a USS network. Connection examples for other drives are available in the manual of the respective drive.
The connection of a SINAMICS G120(C) drive to the USS network takes place via plug-in connection. The connection is short-circuit proof and isolated.

1

0 V reference potential

2

RS485N, receiving and sending (-)

3

RS485N, receiving and sending (+)

4

Cable shield

5

Not used

Figure 5-3 USS connection

184

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions
NOTICE Different reference voltages If you connect devices that do not have the same reference voltage, you may create unwanted currents in the connection cable. These unwanted currents may cause communication errors or damages in the devices. Make sure that all devices you connect with a communication cable either have the same reference conductor in the circuit or are electrically disconnected to prevent the occurrence of unwanted currents. Make sure that the shield is connected to the ground or pin 1 of the bus connector on the drive. Make sure that wiring terminal 2 (GND) of the G120(C) is connected to the ground.
If the RS485 master (e.g., S7-1200 CPU with CM1241 communication module) is connected by means of a PROFIBUS connector, wire the bus cables as follows:
Figure 5-4 Connection of communication module
If the RS485 master is a terminating station in the network or a point-to-point connection, you must use terminals A1 and B1 (not A2 and B2) of the PROFIBUS connector, as these terminals provide termination settings (for example, with the DP plug connector 6ES7972-0BB52-0XA0).

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

185

Programming - communication using instructions 5.4 Instructions
If the G120(C) is configured as terminating station in the network, you must set the switch for the bus terminating resistor to "ON".

Figure 5-5 Connection of terminating stations

Setup of a G120(C) drive
Before you connect a drive to the S7-1500 or ET 200SP, make sure that the drive has the following system parameters.

Step 1
2

Instruction

Operating Instructions

G120 1)

G120C 2)

Perform a basic commissioning of the drive with the Operator Panel BOP-2. Chapter 4.4.3 Chapter 6.4.1

The converter offers different defaults (macros) for its inputs and outputs and the fieldbus interface. In the ninth step of the basic commissioning (MAC PAR p15), select macro 21 for USS communication. This determines the default for the following parameters:

· Data transmission rate (p2020): 38400 bps

· Number of PZD (p2022): 2

· Number of PIV (p2023): variable Note:

You can also conduct basic commissioning with the STARTER commissioning software or with SINAMICS Startdrive.

Specify the USS address of the converter with the address switch on the con- Chapter

trol unit of the G120 or on the G120(C).

6.2.2.1

Chapter 8.4.2.1

· Valid address range: 1 ... 30 Note:

Yon can also set the USS address with the parameter p2021 or with STARTER or SINAMICS Startdrive.

With the following steps you are accessing the parameters directly with the BOP-2 by entering their numbers and modifying their values.

Chapter 4.4.2 Chapter 6.4.2

186

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Step 3
4 5 6

Instruction

Operating Instructions

Adapt the following communication-related converter parameters of your application:

G120 1)
Chapter 6.2.2.2

G120C 2)
Chapter 8.4.2.1

· Data transmission rate (p2020), of  38400 bps (Make sure that setting is identical with the BAUD parameter of the USS_Port_Scan communication instruction.)
· Number of PZD (p2022), if  2 (Make sure that the setting is identical with the PZD_LEN parameter of the USS_Drive_Control communication instruction.)
· Number of PIV (p2023) = 4 (Change the value set to "variable" (127) with macro 21 by default to "4" (required by instructions USS_Read_Param and USS_Write_Param.)
· Fieldbus SS monitoring time [ms] (p2040)

Specify the source for the speed setpoint.

· n_set Eval (p1000[0]) = 6 (The speed setpoint is provided by the USS bus.) Set the reference value for speed and frequency.

· n_reference f_reference (p2000) = (6,00 min-1 to 210000,00 min-1) (all relative speeds or frequencies refer to this reference value. The reference value corresponds to 100% or 4000hex (word) or 4000 0000hex (double word). The following applies:
freference_value (in Hz) = nreference_value (in ((min-1) / 60) x number of pole pairs))
Transfer the parameters to the non-volatile memory.

· Save par (p0971) = 1

1) G120 (http://support.automation.siemens.com/WW/view/en/62089662) 2) G120(C) (http://support.automation.siemens.com/WW/view/en/61462568)

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

187

Programming - communication using instructions 5.4 Instructions

5.4.3.8

Error messages

Overview of error messages - PtP
The error messages are provided at the STATUS output of an instruction and can be evaluated there or processed in the user program.

Error code Description

Remedy

16#0000 No error

-

RECEIVE status and error codes

16#0094 frame end identified based on the "Receipt of

-

fixed/maximum frame length"

16#0095 frame end identified based on "Message timeout"

-

16#0096

frame end identified based on expiration of the "Char- acter delay time"

16#0097 The frame was aborted because the maximum re-

-

sponse time was reached.

16#0098 frame end identified based on the fulfillment of the

-

"Read message length from message" conditions

16#0099

frame end identified based on the receipt of the "End sequence"

SEND status and error codes

16#7000 Block idle

-

16#7001 Initial call for a new frame: Data transmission initiated -

16#7002 Interim call: Data transmission running

-

16#8085 Invalid length

Select a suitable frame length.

The following are valid (depending on the module): 1-1024/2048/4096 (Byte)

16#8088

The specified length exceeds the range set in the receive buffer.
Note: If the data type STRING has been specified at the BUFFER parameter, this error code also appears if the current string is shorter than the length specified at the LENGTH parameter.

Change the range in the receive buffer or select a frame length which corresponds to the range set in the receive buffer.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

RECEIVE status and error codes

16#7002 Interim call: Data transmission running

-

16#8088

The number of characters received exceeds the number specified at the BUFFER parameter.

Select a suitable frame length.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)

16#8090 Configuration error: Odd number of bytes for WString Select an even number of bytes.

188

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Error message codes of the special functions

16#818F

Incorrect parameter number setting (with USS only) Select a suitable parameter number (PARAM). The following numbers are valid: 0-2047

16#8190 Incorrect setting of the CRC calculation

Select a suitable value for the CRC calculation.

The following are valid: deactivated or activated.

Check whether the module addressed supports CRC calculation.

16#8191 Incorrect setting of the diagnostic error interrupt

Select a suitable value for "Diagnostic error interrupt".

The following are valid: Diagnostic error interrupt deactivated or diagnostic error interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

16#8193

The module does not support supply voltage diagnos- Select a suitable value for "Diagnostic interrupt".

tics L+.

The following are permitted: Diagnostic interrupt

deactivated or diagnostic interrupt activated.

Check whether the module addressed supports the generation of diagnostic interrupts.

Error message codes of the "Port configuration"

16#81A0 The module does not support this protocol.

Select a valid protocol for the module (PROTOCOL).

16#81A1

The module does not support this data transmission Select a valid data transmission rate for the module

rate.

(BAUD).

16#81A2 The module does not support this parity setting.

Select a suitable value for "Parity" (PARITY).

The following are valid:

· None (1)

· Even (2) · Odd (3)

· Mark (4)

· Space (5) · Any (6)

16#81A3

The module does not support this number of data bits.

Select a suitable value for "Number of data bits" (DATABITS).
The following are valid:

· 7 (2) · 8 (1)

16#81A4

The module does not support this number of stop bits. Select a suitable value for "Number of stop bits" (STOPBITS).
The following are valid:

· 1 (1)

· 2 (2)

16#81A5

The module does not support this type of data flow control.

Select a valid data flow control for the module (FLOWCTRL).

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

189

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81A7 Invalid value for XON or XOFF 16#81AA Invalid operating mode
16#81AB Invalid receive line initial state

16#81AC Invalid value for "Break detection"

16#81AF The module does not support this protocol.

Error codes of the "Send configuration"

16#81B5

More than two end delimiters or end sequence > 5 characters

16#81B6

Send configuration rejected because the 3964(R) protocol was selected

Remedy Select suitable values for XON (XONCHAR) and XOFF (XOFFCHAR). Valid range of values: 0...255 Valid operating modes are:
· Full duplex (RS232) (0) · Full duplex (RS422) four-wire mode (point-to-
point) (1) / (CM PtP (ET 200SP)) · Full duplex (RS422) four-wire mode (multipoint
master) (2)/ (CM PtP (ET 200SP)) · Full duplex (RS 422) four-wire mode (multipoint
slave) (3) · Half duplex (RS485) two-wire mode. (4)
Valid initial states are:
· "No" default setting (0) · Signal R(A)=5 V, signal R(B)=0 V (break detec-
tion) (1): Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)". · Signal R(A)=0 V, signal R(B)=5 V (2): This default setting corresponds to the idle state (no active send operation).
Select a suitable value for "Break detection". The following are valid:
· Break detection deactivated (0) · Break detection activated (1).
Select a valid protocol for the module.
Select suitable values for "End delimiter" and "End sequence". The following are valid:
· deactivated (0), · 1 (1) or 2 (2) end delimiters or
· deactivated (0), · 1 (1) up to 5 (5) characters for the end sequence.
Make sure that no send configuration is transmitted if the 3964(R) protocol is set.

190

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the "Receive configuration" 16#81C0 Invalid start condition

Remedy
Select a suitable start condition. The following are valid:

· Send break before frame start · Send Idle Line.

16#81C1 16#81C3
16#81C4
16#81C5

Invalid end condition or no end condition selected Invalid value for "Maximum message length"
Invalid value for "Offset of the length specification in the message"
Invalid value for "Size of length field"

Select a suitable end condition (see Receiving data with Freeport (Page 41)).
Select a suitable value for "Maximum message length" (MAXLEN).
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Offset of the length specification in the message".
Valid range of values (depending on the module): 11024/2048/4096 (Byte)
Select a suitable value for "Size of length field" (LENGTHSIZE).
Valid range of values in bytes:

· 1 (1)

· 2 (2)

· 4 (4)

16#81C6 16#81C7

Invalid value for "Number of characters not counted in Select a suitable value for "Number of characters not

length specification"

counted in length specification" (LENGTHM).

Valid range of values: 0 to 255 (bytes)

The total of "Offset in the message + size of length field + number of characters not counted" is greater than the maximum frame length

Select a suitable value for "Offset in message", "Size of length field" and "Number of characters not counted".

Valid range of values:

· Offset in the message (depending on the module): 0-1024/2048/4096 (bytes)

· Size of length field: 1, 2, or 4 (bytes)

· Number of characters not counted: 0 to 255 (bytes)

16#81C8 16#81C9 16#81CB 16#81CC

Invalid value for "Response timeout"
Invalid value for "Character delay time"
frame end sequence is activated, but no character is activated for the check frame start sequence is activated, but no character is activated for the check

Select a suitable value for "Response timeout". Valid range of values: 1-65535 (ms) Select a suitable value for "Character delay time". Valid range of values: 1 to 65535 (bit times) Activate one or several characters for the check.
Activate one or several characters for the check.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

191

Programming - communication using instructions 5.4 Instructions

Error code Description 16#81CD Invalid value for "Prevent overwriting"

Remedy Select a suitable value for "Prevent overwriting". The following are valid:

· Prevent overwriting is deactivated (0) or · Prevent overwriting is activated (1)

16#81CE Invalid value for "Clear receive buffer on startup"

Select a suitable value for "Clear receive buffer on startup".
The following are valid:

· Clear receive buffer at startup is deactivated (0)

· Clear receive buffer at startup is activated (1)

SEND status and error codes

16#81D0

Receiving send request during runtime of a send command

16#81D1 The waiting time for XON or CTS = ON has expired.

16#81D2 16#81D3

"Hardware RTS always ON": Send job canceled due to change from DSR = ON to OFF
Send buffer overflow / send frame too long

16#81D5 16#81D6 16#81D7 16#81D8 16#81DF

Transmission canceled due to parameter changes, detected wire break, or CPU in STOP
Transmission canceled because end identifier was not received
Communication error between the user program and module
Transmission attempt rejected because module is not configured
The module has reset the interface to the FB for one of the following reasons:

Make sure that you do not receive an additional send request during runtime of a send command. The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.
Check the communication partner. Make sure that DSR is ON for the entire duration of transmission.
Select a shorter frame length. The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes) Check the parameter assignment, wire break, and CPU status.
Check the parameter assignment of the end characters and the frame of the communication partner.
Check the communication (e.g., matching the sequence number).
Configure the module.
--

· Module was restarted

· Module parameters were reassigned

· CPU STOP

Error codes of the receive configuration

16#81E0

Frame aborted: Send buffer overflow / send frame too Increase the call rate for the receive function in the

long

user program or configure communication with data

flow control.

16#81E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#81E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#81E3 Frame aborted: Character overflow error

Firmware error: Please contact Customer Support.

192

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code 16#81E4
16#81E5

Description
Frame aborted: The total length of "Offset in the message + size of the length field + number of characters not counted" is greater than the receive buffer
Frame aborted: Break

16#81E6

Maximum number of "Buffered received frames" exceeded

16#81E7 Synchronization error module and Receive_P2P

16#81E8

Frame aborted: The character delay time has expired before the message end criterion was detected

16#81E9 16#81EA 16#81EB

Modbus CRC error (only communication modules which support Modbus)
Modbus frame too short (only communication modules which support Modbus)
Frame aborted: Maximum frame length reached

Error codes V24 accompanying signals

16#81F0

The module does not support V24 accompanying signals

16#81F1 16#81F2

No operation of the V24 accompanying signals
The DSR signal cannot be set because the module has the type DTE.

16#81F3

The DTR signal cannot be set because the module has the type DCE.

16#81F4

Block header error (e.g. incorrect block type or incorrect block length)

Remedy Select a suitable value for offset in message, size of the length field, and number of characters not counted.
Receive line to partner is interrupted.
Reconnect or switch on partner.
In the user program call the instruction more often or configure a communication with data flow control or increase the number of buffered frames.
Make sure that different instances of the Receive_P2P do not access the same module.
Partner device faulty or too slow. Check this, if required, using an interface tester that is interconnected in the transmission line.
Checksum error of the Modbus frame. Check the communication partner.
Minimum length of Modbus frame not met. Check the communication partner.
Select a shorter frame length at the communication partner.
The following are valid (depending on the module): 1-1024/2048/4096 (bytes)
Check the parameters for end of frame detection.
You have tried to set accompanying signals for a module that does not support V24 accompanying signals. Make sure that this is an RS232 module or that RS232 mode (ET 200SP) is set.
The V24 accompanying signals cannot be operated manually if hardware data flow control is active.
Check the configured type of the module.
The module type must be DCE (data communication equipment).
Check the configured type of the module. The module type must be DTE (data terminal equipment).
Check the instance DB and the block header.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

193

Programming - communication using instructions 5.4 Instructions

Error code Description Error codes of the receive configuration
16#8201 1) Receive_Conditions is a pointer to an invalid data type

16#8225

Receive_Conditionspoints to an optimized memory area greater than 1 kB

or

Receive_Conditions points to an optimized memory area and the receive length is greater than the area addressed by Receive_Conditions.

16#8229 1) Receive_Conditions is a pointer to BOOL with a number of bits not equal to n * 8

Error codes, general

16#8280 Negative acknowledgment when reading module

Remedy
Enter a pointer to one of the following data types: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING Enter a pointer to an area with a maximum length of: · Optimized memory area: 1 KB · Non-optimized memory area: 4 KB Note: If the pointer points to an optimized memory area, do not send more than 1 KB.
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.
You can find more detailed information on error causes in theRDREC.STATUS static parameters and in the description of the SFB RDREC.

· Check the input at the PORT parameter · Set the COM_RST parameter before the 1st call.

16#8281 Negative acknowledgment when writing module

16#8282 Module not available
Error codes of the receive configuration 16#82C1 Invalid value for "Buffered received frames".

16#82C2 16#8301 1)

Receive configuration rejected because the 3964(R) protocol was selected
Receive_Conditions is a pointer to an invalid data type

16#8322 Range length error when reading a parameter
16#8324 Range error when reading a parameter
16#8328 Setting error when reading a parameter
SEND status and error codes 16#8328 1) BUFFER is a pointer to BOOL with a number of bits
not equal to n * 8

Check the input at the PORT parameter You can find more detailed information on error causes in the WRREC.STATUS static parameters and in the description of the SFB WRREC. Check the input at the PORT parameter and ensure that the module can be reached.
Select a suitable value for "Buffered received frames". Valid range of values: 1-255 Make sure that no receive configuration is sent if the 3964(R) protocol is set. Select a valid data type. The following are valid: DB, BOOL, BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TIME_OF_DAY, TIME, S5TIME, DATE_AND_TIME, STRING Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter
If you are using a pointer to BOOL, the number of bits must be a multiple of 8.

194

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Error codes of the receive configuration

16#8332

Invalid data block at the Receive_Conditions parameter

16#833A

The designation of the data block at the Receive_Conditions parameter refers to a data block which is not loaded.

16#8351 Invalid data type

16#8352 1) Receive_Conditions does not point to a data block

16#8353 1) Receive_Conditions does not point to a structure of the typeReceive_Conditions

Error codes 3964(R) protocol

16#8380

Parameter assignment error: Invalid value for "Character delay time".

16#8381

Parameter assignment error: Invalid value for "Response timeout".

16#8382

Parameter assignment error: Invalid value for "Priority".

Remedy
Check the input at the Receive_Conditions parameter Check the input at the Receive_Conditions parameter
Check the input at the Receive_Conditions parameter Check the pointer to Receive_Conditions Check the pointer to Receive_Conditions
Select a suitable value for "Character delay time" (CharacterDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Response timeout" (AcknDelayTime). Valid range of values: 1 to 65535 (ms) Select a suitable value for "Priority" (Priority). The following are valid:

· High (1) · Low (0)

16#8383

Parameter assignment error: Invalid value for "Block Select a suitable value for "Block check" (BCC).

check"

The following are valid:

· With block check (1) · Without block check (0)

16#8384 16#8385 16#8386
16#8387 16#8388

Parameter assignment error: Invalid value for "Connection attempts".
Parameter assignment error: Invalid value for "Transmission attempts".
Runtime error: Number of connection attempts exceeded
Runtime error: Number of transmission attempts exceeded
Runtime error: Error at the "Block check character" The internally calculated value of the block check character does not correspond to the block check character received by the partner at the connection end.

Select a suitable value for "Connection attempts" (BuildupAttempts).
Valid range of values: 1-255
Select a suitable value for "Transmission attempts" (RepetitionAttempts).
Valid range of values: 1-255
Check the interface cable and the transmission parameters.
Also check whether the receive function is configured correctly at the partner device.
Check the interface cable, the transmission parameters and the configuration of the communication partner.
Check whether the connection is seriously disrupted; in this case you may also occasionally see error codes. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

195

Programming - communication using instructions 5.4 Instructions

Error code 16#8389
16#838A
16#838B 16#838C 16#838D 16#838E 16#838F 16#8391

Description Runtime error: Invalid character received while waiting for free receive buffer
Runtime error: Logical error during receiving. After DLE was received, a further random character (other than DLE or ETX) was received.
Runtime error: Character delay time exceeded
Runtime error: Wait time for free receive buffer has started Runtime error: frame repetition does not start within 4 s after NAK
Runtime error: In idle mode, one or several characters (other than NAK or STX) were received.
Runtime error: Initialization conflict - Both partners have set high priority Parameter assignment error: 3964 configuration data rejected because Freeport is set

Remedy
The send request of the communication partner (STX, 02H) is only answered with DLE when the receive buffer is empty. No additional character may be received before (except STX again).
Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Check if partner DLE in frame header and in data string is always in duplicate or the connection is released with DLE ETX. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Partner device too slow or faulty.
Verify by using an interface test device that is switched into the transmission line, if necessary.
In the user program call the instruction more often or configure a communication with data flow control.
Check the communication partner. A received frame that is possibly corrupted must be repeated by the partner within 4 seconds.
Check for proper function of the partner device, possibly using an interface test device that is switched into the transmission line.
Set the "Low" priority at one of the partners
If the Freeport protocol is set, make sure that no 3964 parameter assignment data is sent.

1) Only with instructions for S7-300/400 CPUs

196

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Overview of error messages - Modbus

Error code Description

16#0000 No error

Configuration error of the interface - Modbus_Comm_Load

16#8181

The module does not support this data transmission rate.

16#8182 The module does not support this parity setting.

16#8183 16#8184

The module does not support this type of data flow control.
Invalid value for "Response timeout".

16#8280 Negative acknowledgment when reading module

16#8281 Negative acknowledgment when writing module

16#8282 Module not available

Remedy -
Select a valid data transmission rate for the module at the BAUD parameter. Select a suitable value for "Parity" at the PARITY parameter. The following are valid:
· None (1)
· Even (2)
· Odd (3)
· Mark (4)
· Space (5)
· Any (6)
Select a valid data flow control for the module at the FLOW_CTRL parameter. Select a suitable value for "Response timeout" at the RESP_TO parameter. Valid range of values: 1 to 65535 (ms) Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.RDREC.STATUS or Receive_Config.RDREC.STATUS static parameters or RDREC.STATUS and in the description of the SFB RDREC. Check the input at the PORT parameter. You can find more detailed information on error causes in the Send_Config.WRREC.STATUS or Receive_Config.WRREC.STATUS static parameters or WRREC.STATUS and in the description of the SFB WRREC. Check the input at the PORT parameter and ensure that the module can be reached.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

197

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Slave

16#8186 Invalid slave address

Select a suitable slave address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8187 Invalid value at MB_HOLD_REG parameter

Select a suitable value for the hold register at the MB_HOLD_REG parameter.

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) and MODE parameter  1

Select the value 1 for MODE in Broadcast mode or select a different operating mode.

16#818C

The pointer to a MB_HOLD_REG area must be a data Select a suitable value for the pointer to the

block or a bit memory address area.

MB_HOLD_REG area.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS, and in the description of the SFB WRREC.

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during instruction execution. The cause of the error is shown in the STATUS parameter.

Determine the value of the SFCSTATUS parameter. Check what this means in the description for SFC51, STATUS parameter.

198

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Configuration error - Modbus_Master

16#8180 Invalid value for MB_DB parameter

The value configured for MB_DB (instance data DB) at the Modbus_Comm_Load instruction is not valid.

Check the interconnection of the Modbus_Comm_Load instruction and its error messages.

16#8186 Invalid station address

Select a suitable station address at the MB_ADDR parameter.

The following are valid: 1-247 at standard address area; 1-65535 at extended address area (0 is reserved for Broadcast)

16#8188

Invalid operating mode or broadcast (MB_ADDR = 0) Select the value 1 for MODE in Broadcast mode or

and MODE parameter  1

select a different operating mode.

16#8189 Invalid data address

Select a suitable value for the data address at the DATA_ADDR parameter.

See description Modbus_Master (Page 125) in the Info system

16#818A Invalid length

Select a suitable data length at the DATA_LEN parameter.

See description Modbus_Master (Page 125) in the Info system

16#818B Invalid value for DATA_PTR

Select a suitable value for the data pointer at the DATA_PTR parameter (M or DB address).

See description Modbus_Master (Page 125) in the Info system

16#818C Interconnection error of the DATA_PTR parameter Check the interconnection of the instruction.

16#818D

The area addressed by DATA_PTR is longer than the Check the DATA_PTR pointer DB, or the area addressed is too small for the number of data bytes to be read or written.

16#8280 Negative acknowledgment when reading module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.

16#8281 Negative acknowledgment when writing module

Check the input at the PORT parameter.

You can find more detailed information on error causes in the static parameters Send_P2P.WRREC.STATUS or Receive_P2P.WRREC.STATUS or Receive_Reset and in the description of the SFB WRREC.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

199

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Communication errors - Modbus_Master and Modbus_Slave

16#80D1

The waiting time for XON or CTS = ON has expired.

The communication partner has a fault, is too slow or is offline. Check the communication partner or change the parameters, if necessary.

16#80D2

"Hardware RTS always ON": Send job canceled due Check the communication partner. Make sure that

to change from DSR = ON to OFF

DSR is ON for the entire duration of transmission.

16#80E0

Frame aborted: Send buffer overflow / send frame too In the user program call the instruction more often or

long

configure a communication with data flow control.

16#80E1 Frame aborted: Parity error

Check the connection line of the communication partners, or verify that the same data transmission rate, parity and stop bit number are configured for both devices.

16#80E2 Frame aborted: Character frame error

Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).

16#80E3 Frame aborted: Character overflow error

Check the number of data in the frame of the communication partner.

16#80E4 Frame aborted: Maximum frame length reached

Select a shorter frame length at the communication partner.

The following are valid (depending on the module): 1 to 1024/2048/4096 (bytes)

Communication error - Modbus_Master

16#80C8 The slave does not respond within the set time

Check the data transmission rate, parity and wiring of the slave.

16#80C9

The slave does not respond within the time set by Blocked_Proc_Timeout.

Check the setting for Blocked_Proc_Timeout.
Check if the module has been configured with the Modbus_Comm_Load instruction. The module may possibly need to be reconfigured using Modbus_Comm_Load after a pull/plug or after voltage recovery.

16#8200 The interface is busy with an ongoing request.

Repeat the command later. Make sure that there are no commands still running before you start a new one.

Protocol error - Modbus_Slave (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

The function code is not supported or is not supported Check the communication partner and make sure

for broadcast.

that a valid function code is sent.

16#8382 Invalid length information in the request frame

Select a suitable data length at the DATA_LEN parameter.

16#8383 Invalid data address in the request frame

Select a suitable value for the data address at the DATA_ADDR parameter.

16#8384 Invalid data value error in the request frame

Check the data value in the request frame of the Modbus master

16#8385

The diagnostic value is not supported by the Modbus The Modbus slave only supports the diagnostic

slave (function code 08)

values 16#0000 and 16#000A.

200

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description

Remedy

Protocol error - Modbus_Master (only communication modules that support Modbus)

16#8380 CRC error

Checksum error of the Modbus frame. Check the communication partner.

16#8381

Response frame from Modbus Slave with the following error message: The function code is not supported.

Check the communication partner and make sure that a valid function code is sent.

16#8382

Response frame from Modbus Slave with the follow- Select a suitable data length. ing error message: Invalid length

16#8383

Response frame from Modbus Slave with the follow- Select a suitable value for the data address at the ing error message: Invalid data address in the request DATA_ADDR parameter. frame

16#8384

Response frame from Modbus Slave with the follow- Check the request frame to the Modbus slave. ing error message: Data value error

16#8385

Response frame from Modbus Slave with the following error message: The diagnostic value is not supported by the Modbus slave

The Modbus slave only supports the diagnostic values 16#0000 and 16#000A.

16#8386

The returned function code does not match the requested function code.

Check the response frame and the addressing of the slave.

16#8387 A slave that was not requested answers

Check the response frame of the slave. Check the address settings of the slave.

16#8388 Error in the response of the slave to a write request. Check the response frame of the slave.

16#8828 1) DATA_PTR points to a bit address that is not equal to Check the DATA_PTR pointer n * 8

16#8852 1) DATA_PTR is not a pointer to a DB or a bit memory area

Check the DATA_PTR pointer

16#8853 1) DATA_PTR is not a pointer of type BOOL or WORD Check the DATA_PTR pointer

16#8855 1) DATA_PTR points to a write-protected DB

Check the DATA_PTR pointer

16#8856 1) Error during call of SFC51

Call the Modbus_Master instruction again

Error - Modbus_Slave (only communication modules that support Modbus)

16#8428 1) MB_HOLD_REG points to a bit address that is not equal to n * 8

Check the MB_HOLD_REG pointer

16#8452 1) MB_HOLD_REG is not a pointer to a DB or a bit memory area

Check the MB_HOLD_REG pointer

16#8453 1) MB_HOLD_REG is not a pointer of type BOOL or WORD

Check the MB_HOLD_REG pointer

16#8454 1)

The area addressed by MB_HOLD_REG is longer than the DB, or the area addressed is too small for the number of data bytes to be read or written.

Check the MB_HOLD_REG pointer

16#8455 1) MB_HOLD_REG points to a write-protected DB

Check the MB_HOLD_REG pointer

16#8456 1) Error during call of SFC51

Call the Modbus_Slave instruction again

1) Only with instructions for S7-300/400 CPUs

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

201

Programming - communication using instructions 5.4 Instructions

Overview of error messages - USS

Error code 16#0000 16#8180 16#8181
16#8182 16#8183 16#8184 16#8185 16#8186 16#8187 16#8188 16#8189 16#818A 16#818B 16#818C
16#818D 16#818E

Description No error Length error in response of drive Data type error
Data type error: "Double word" or "Real" may not be returned for the "Word" request. Data type error: "Word" may not be returned for the "Double word" or "Real" request. Checksum error in response of drive Addressing error Setpoint error Incorrect drive number returned Invalid PZD length The module does not support this data transmission rate. A different request for this drive is currently active. The drive does not respond. The drive responds with an error message to a parameter request.
The drive responds with an access error message to a parameter request. The drive was not initialized.

Remedy Check the response frame of the drive. Select a suitable data type. The following are valid: · Real · Word · Double word
Check the response frame of the drive.
Check the response frame of the drive.
Check the drive and the communication connection. Valid drive address range: 1 to 16 Valid setpoint range: -200% to +200% Check the response frame of the drive. Permitted PZD lengths: 2, 4, 6, 8 words Select a valid data transmission rate for the module.
Repeat the parameter read or write command later. Check the drive. Check the response frame of the drive. Check the parameter request. Check if the instructions USS_Read_Param, USS_Write_Param or USS_Port_Scan have reported an error. If they have, check the value of the static tag USS_DB. w_USSExtendedError of the USS_Drive_Control instruction. Check the response frame of the drive. Check the parameter request. Check the user program and make sure that the USS_Drive_Control instruction is called for this drive.

202

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Programming - communication using instructions 5.4 Instructions

Error code Description 16#8280 Negative acknowledgment when reading module
16#8281 Negative acknowledgment when writing module
1) Only with instructions for S7-300/400 CPUs

Remedy
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.RDREC.STATUS, Send_Config.RDREC.STATUS , Receive_Config.RDREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB RDREC.
Check the input at the PORT parameter.
You can find more detailed information on error causes in the static parameters Port_Config.WRREC.STATUS, Send_Config.WRREC.STATUS , Receive_Config.WRREC.STATUS , Send_P2P.RDREC.STATUS or Receive_P2P.RDREC.STATUS, and in the description of the SFB WRREC.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

203

Startup and Diagnostics

6

6.1

Startup characteristics

Operating mode transitions
After the communication module starts up, all data between the CPU and the communication module is exchanged by means of instructions.

CPU STOP CPU RUN

During a running data transmission communication module - CPU, both a send and a receive job is aborted.
Send and receive operation is ensured in the RUN state of the CPU.
With a corresponding configuration in the properties dialog of the communication module, you can automatically clear the receive buffer on the communication module during CPU startup.

From the view of the communication module, there are no further operating states/operating state transitions.

6.2

Diagnostic functions

Introduction

The diagnostic functions of the communication module allow errors that have occurred to be located quickly. The following diagnostic options are available to you:

Diagnostics by means of the display elements of the communication module
Diagnostics via the STATUS output of the instructions
Diagnostic error interrupt

The indicators provide information on the operating mode or the possible error states of the communication module. The indicators provide an initial overview of any internal or external errors and interface-specific errors. For more information refer to the device manual of the corresponding communication module.
Instructions have a STATUS output for error diagnostics; it provides information about communication errors between the communication module and the CPU. You can evaluate the STATUS parameter in the user program (it is active for exactly one cycle).
The communication module can trigger a diagnostic error interrupt on the CPU assigned to it. The communication module makes diagnostic information available. The analysis of this information is made via the user program or by reading the CPU diagnostics buffer.

204

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Startup and Diagnostics 6.3 Diagnostic interrupts

6.3

Diagnostic interrupts

The diagnostics are displayed as plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program.

The following diagnostics can be signaled:

 Parameter assignment error (10H)

 Wire break (109H)

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

205

Service & Support

A

A.1

Service & Support

Unmatched complete service for the entire life cycle
For machine manufacturers, solution providers and plant operators: The service offering from Siemens Industry Automation and Drive Technologies includes comprehensive services for a wide range of different users in all sectors of the manufacturing and process industry.
To accompany our products and systems, we offer integrated and structured services that provide valuable support in every phase of the life cycle of your machine or plant ­ from planning and implementation through commissioning as far as maintenance and modernization.
Our Service & Support accompanies you worldwide in all matters concerning automation and drive technology from Siemens. We provide direct on-site support in more than 100 countries through all phases of the life cycle of your machines and plants.
You have an experienced team of specialists at your side to provide active support and bundled know-how. Regular training courses and intensive contact among our employees ­ even across continents ­ ensure reliable service in the most diverse areas.

206

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Service & Support A.1 Service & Support

Online Support
The comprehensive online information platform supports you in all aspects of our Service & Support at any time and from any location in the world.
You can find Online Support at the following address on the Internet (http://www.siemens.com/automation/service&support).

Technical Consulting
Support in planning and designing your project: From detailed actual-state analysis, definition of the goal and consultation on product and system questions right through to the creation of the automation solution.

Technical Support
Expert advice on technical questions with a wide range of demand-optimized services for all our products and systems.
You can find Technical Support at the following address on the Internet (http://www.siemens.com/automation/support-request).

Training

Extend your competitive edge ­ through practical know-how directly from the manufacturer.
You can find the training courses at the following address on the Internet (http://www.siemens.com/sitrain).

Engineering Support
Support during project engineering and development with services fine-tuned to your requirements, from configuration through to implementation of an automation project.

Field Service

Our Field Service offers you services for commissioning and maintenance ­ to ensure that your machines and plants are always available.

Spare parts

In every sector worldwide, plants and systems are required to operate with constantly increasing reliability. We will provide you with the support you need to prevent a standstill from occurring in the first place: with a worldwide network and optimum logistics chains.

Repairs

Downtimes cause problems in the plant as well as unnecessary costs. We can help you to reduce both to a minimum ­ with our worldwide repair facilities.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

207

Service & Support A.1 Service & Support

Optimization

During the service life of machines and plants, there is often a great potential for increasing productivity or reducing costs.
To help you achieve this potential, we are offering a complete range of optimization services.

Modernization

You can also rely on our support when it comes to modernization ­ with comprehensive services from the planning phase all the way to commissioning.

Service programs
Our service programs are select service packages for an automation and drives system or product group. The individual services are coordinated with each other to ensure smooth coverage of the entire life cycle and support optimum use of your products and systems. The services of a service program can be flexibly adapted at any time and used separately. Examples of service programs:  Service contracts  Plant IT Security Services  Life Cycle Services for Drive Engineering  SIMATIC PCS 7 Life Cycle Services  SINUMERIK Manufacturing Excellence  SIMATIC Remote Support Services Benefits at a glance:  Reduced downtimes for increased productivity  Optimized maintenance costs due to a tailored scope of services  Costs that can be calculated and therefore planned  Service reliability due to guaranteed response times and spare part delivery times  Customer service personnel will be supported and relieved of additional tasks  Comprehensive service from a single source, fewer interfaces and greater expertise

Contact

At your service locally, around the globe: your partner for consultation, sales, training, service, support, spare parts... for the entire range of products from Industry Automation and Drive Technologies.
You can find your personal contact in our contacts database on the Internet (http://www.siemens.com/automation/partner).

208

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Glossary

Automation system
An automation system is a programmable logic controller consisting of at least one CPU, various input and output modules, and operating and monitoring devices.

Bit times

"Bit times" are always specified as a number of bits. The "time" set with bits depends on the selected data transmission rate that is taken into consideration automatically. Example: The telegram end is to be detected after a gap of two characters. The set data transmission rate is 9600 bit/s. The set character frame is 10 bits.
10 x 2 = 20 bit times This corresponds to a time of:
20 x 1/9600  0.0021 s

Communication module
Communication modules are used for point-to-point connections and bus links.

Configuring

Configuring refers to the configuration of separate modules of an automation system in the configuration table.

CPU

Central Processing Unit = Central module of the automation system that consists of the control and computing units, memory, system program, and interfaces to the I/O modules.

CTS

Clear to send. The communication partner is ready to receive data.

Cycle time

The cycle time is the time that the CPU requires to process the user program once.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

209

Glossary

Cyclic program processing
In cyclic program processing the user program runs in program loop, or cycle, that is constantly repeated.

DCD

Data carrier detect. The communication partner signals that it recognizes incoming data.

Default setting

The default setting is a reasonable basic setting that can be used whenever no other value is specified.

Diagnostic events
Diagnostics events are, for example, module errors or system errors in the CPU that may be caused by a program error.

Diagnostic functions
The diagnostic functions cover the entire system diagnostics and include the recognition, interpretation and reporting of errors within the automation system.

Diagnostics buffer
Memory area in which detailed information on all diagnostics events is entered based on the order of their occurrence.

DSR

Data set ready. The communication partner is ready.

DTR

Data terminal ready. The communication module is ready.

Hardware

Hardware is the entire physical and technical equipment of a automation system.

Module parameters
Module parameters are values with which the behavior of the module can be set.

210

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Glossary

Online/Offline

When you are online there is a data connection between the automation system and programming device, when you are offline there is no data connection between them.

Parameter assignment
Parameter assignment refers to the setting of a module's behavior.

Parameters

Parameters are values that can be allocated. There are two different types of parameters: block parameters and module parameters.

Point-to-point communication
In point-to-point communication the communication processor forms the interface between a programmable logic controller and a communication partner.

Procedure

Procedure refers to the process of a data transmission according to a specific protocol.

Protocol

All communication partners involved in data transmission must follow fixed rules for handling and implementing the data traffic. Such rules are called protocols.

Receive line initial state
The initial state of the receive line for RS422 and RS485 mode:  enables break detection (wire break)  ensures a defined level on the receive line while it is not sending.

RI
Ring indicator. Incoming call for connecting a modem.

RTS

Request to send. The communication module is ready to send.

Software

Software refers to the entirety of all programs that are used on a computing system. The operating system and user programs belong to this.

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

211

Glossary

User program

The user program contains all instructions and declarations for processing the signals used for controlling a system or a process. In SIMATIC S7 the user program is structured and divided into small units, the blocks.

USS

The USS® protocol (universal serial interface protocol) defines an access method based on the master-slave principle for communication by means of a serial bus. The point-to-point connection is included as a subset in this protocol.

XON/XOFF

Software data flow control with XON/XOFF. You can configure the characters for XON and XOFF (any ASCII character). The user data may not contain these characters.

212

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

Index

3
3964(R) Receiving data, 51 Sending data, 49
3964(R) procedure, 48 Control characters, 48 Priority, 48
3964R procedure Block check character, 49
A
Accompanying signals, 15 ASCII protocol, 39 Asynchronous data transmission, 19 Automatic operation of accompanying signals, 35
B
BCC, 48 Bidirectional data traffic, 19 Block check character, 49 Broadcast, 54 BUFFER parameter, Send_P2P, 90
C
Character delay time, 42 Character delay time CDT, 55 Code transparency, 45 Communication
Query architecture, 72 Communication interfaces
Programming, 70 Communication module (CM)
Data reception, 91 Programming, 70 Connecting cables, 24, 27, 30 CPU RUN, 204 CPU STOP, 204 CRC, 55 CTS, 24

D
Data flow control, 15, 24, 32 Hardware, 33 Software, 32
Data transmission rates, 14 Data transmission, trigger, 87 DCD, 24 Diagnostic functions, 204 Diagnostics, 204 DLE, 48 DSR, 24 DTR, 24
E
End sequence, 42 ETX, 48
F
Fixed frame length, 42 Frame configuration
Instructions, 70 frame structure, 54 Freeport, 64, 64
Code transparency, 45 End criteria, 42 Message end, 40 Message start, 40 Receive buffer, 46 Start criteria, 41 Freeport protocol, 39 Full-duplex operation, 19
G
Get_Features, 18, 65 Global library
Overview of the USS protocol, 167
H
Half-duplex operation, 19 Handshaking, 32

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

213

Index

Hardware data flow control, 33 Hardware RTS always ON, 34 Hardware RTS always ON, ignore DTR/DSR, 34 Hardware RTS always switched, 35
I
Idle line, 41 Instructions
P3964_Config (protocol configuration), 85 Port_Config (port configuration), 75 Receive_Config (receive configuration), 80 Receive_P2P (receive point-to-point data), 91 Receive_Reset (reset receiver), 93 Send_Config (send configuration), 78 Send_P2P (send point-to-point data), 87 Signal_Get (get RS232 signals), 94 Signal_Get (set RS232 signals), 96 USS_Drive_Control / USS_Drive_Control_31, 176 USS_Port_Scan, 172 USS_Port_Scan_31, 172 USS_Read_Param / USS_Read_Param_31, 180 USS_Write_Param / USS_Write_Param_31, 182 Interface X27 (RS 485), 30 X27 (RS422), 27 Interface configuration Instructions, 70 Interfaces, 14
L
LENGTH parameter, Send_P2P, 90 Library for the USS protocol
General information on drive setup, 184 Overview, 167 Requirements for use, 169 USS_Drive_Control / USS_Drive_Control_31, 176 USS_Port_Scan, 172 USS_Port_Scan_31, 172 USS_Read_Param / USS_Read_Param_31, 180 USS_Write_Param / USS_Write_Param_31, 182 Line break, 41

Modbus End of frame, 55 Exception code, 55 Modbus_Comm_Load, 120 Modbus_Slave, 125, 133 RS232 signals, 35
Modbus communication, 53 Modbus instructions, 66 Modbus_Comm_Load, 18, 66, 120 Modbus_Master, 18, 66 Modbus_Slave, 18, 66, 125, 133
N
NAK, 48
O
Operating mode transitions, 204 Order numbers, 13
P
P3964_Config, 17 P3964_Config (protocol configuration), 85 Parameter configuration
LENGH and BUFFER for Send_P2P, 90 Point-to-point connection, 16 Point-to-point programming, 70 Port_Config, 17, 65 Port_Config (port configuration), 75 Programming
Modbus, 66 PtP, 63 PtP instructions, 70 USS, 68 Protocols of the communication modules, 15 PtP communication Programming, 70 PtP error classes, 74 PtP instructions, 64 PtP instructions return values, 73

M
Main entry, 65 Maximum number of characters, 42 Message length from message, 42 Message timeout, 42

Q
Query architecture, 72 Query architecture master, 72 Query architecture slave, 72

214

CM PtP - Configurations for point-to-point connections Function Manual, 12/2017, A5E37509394-AC

R
Receive buffer, 46 Receive buffer size, 14 Receive line initial state, 26 Receive_Config, 17, 65 Receive_Config (receive configuration), 80 Receive_P2P, 17, 64 Receive_P2P (receive point-to-point data), 91 Receive_Reset, 17, 65 Receive_Reset, 17, 65 Receive_Reset (reset receiver), 93 Receiving data, 64 Response timeout, 42 Return values
PtP instructions, 73 Return values receive runtime, 91 RI, 24 RS232 accompanying signals
Automatic use, 35 RS232 mode, 23 RS232 signals, 23 RS422 mode, 26 RS422 signals, 27, 29 RS485 mode, 29 RTS, 24
S
Send_Config, 17, 65 Send_Config (send configuration), 78 Send_P2P, 17, 64 Send_P2P (send point-to-point data)
LENGH and BUFFER parameters, 90 Send_P2P (send point-to-point data), 87 Sending data, 64 Serial data transmission, 19 Set_Features, 18, 65 Shared PtP parameter errors, 74 Signal_Get, 17, 65 Signal_Get (get RS232 signals), 94 Signal_Get (set RS232 signals), 96 Signal_Set, 18, 65 Software data flow control, 32 Start character, 41 Start sequences, 41 STX, 48
T
Transmission security, 20 for Modbus and USS, 22
CM PtP - Configurations for point-to-point connections
Function Manual, 12/2017, A5E37509394-AC

Index
with 3964(R), 21 with Freeport, 21
U
Unidirectional/bidirectional data traffic, 24 USS communication, 60 USS instructions, 68 USS master
Overview of functions, 62 USS protocol, 60 USS protocol: Data field, USS protocol:Data encryption, 61 USS protocol:Data transmission procedure, 61 USS protocol:frame structure, 61 USS protocol General structure of the data block:Parameter area (PKW), 62 General structure of the data block:Process data area (PZD), 62 USS_Drive_Control, 18, 69, 168 USS_Drive_Control / USS_Drive_Control_31, 176 USS_Port_Scan, 18, 68, 168, 172 USS_Port_Scan_31, 172 USS_Read_Param, 18, 69, 168 USS_Read_Param / USS_Read_Param_31, 180 USS_Write_Param, 18, 69, 168 USS_Write_Param / USS_Write_Param_31, 182
X
X27 (RS 485) interface, 30 X27 (RS422) interface, 27 XON/XOFF, 32
215

 CM PtP operation with PROFINET controller 
SIMATIC
S7-1500 / ET 200MP / ET 200SP CM PtP operation with PROFINET controller
Programming and Operating Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _O_ve_rv_ie_w_____________2_ _Ba_s_ic_in_fo_rm_a_tio_n_________3_ _Bma_esc_ihca_cno_ims_mms_un_ic_a_tio_n_______4_ _DFra_etea_pt_orar_tns_m_is_si_on_w_ith_______5_ _D39a_6ta_4(t_Rra)_ns_m_is_si_on_w_ith_______6_ _Co_n_fig_u_ra_tio_n_da_ta_r_ec_o_rd_s ____7_ _Er_ro_r s_ta_tu_s____________8_ _Se_n_di_ng_d_at_a ___________9_ _Re_c_ei_vin_g_d_at_a _________1_0_ _Cl_ea_r _re_ce_iv_e _bu_ff_er_______1_1_ _RS_2_32_s_ig_n_als__________1_2_ _Er_ro_r m_e_s_sa_g_es_________1_3_

01/2013
A5E03908199-01

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03908199-01  01/2013 Technical data subject to change

Copyright © Siemens AG 2013. All rights reserved

Preface

Purpose of the documentation
This documentation addresses users who want to use the point-to-point communication modules independently of the SIMATIC S7. It offers you important information with regard to the configuration and commissioning of the point-to-point communication modules for S7-1500 (ET 200MP) and ET 200SP.

Requirements

To use PtP communication modules in a system independently of the SIMATIC S7, the CPU must support communication by means of data records and come equipped with a PROFINET IO controller. For more information on this topic, refer to the Distributed I/O System ET 200SP and Distributed I/O System ET 200MP system manuals.

Basic knowledge required The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Proficiency with STEP 7

GSDML file

Engineering must be provided with information regarding functionality and parameters of the communication modules for the higher-level application.
The properties of the PtP communication modules are defined in a GSDML (Generic Station Description Markup Language) file, an XML-based language that is defined based on the GSDML scheme (ISO 15745: GSD for PROFIBUS and GSDML for PROFINET IEC 61804: EDDL IEC 62453: FDT/DTM).
The Engineering System must provide a suitable interpreter that makes the GSDML data available to the system.
The name of a GSDML file for the communication modules can have the following syntax, for example: GSDML-V2.3-Siemens-ET200SP-20110824.xml
The GSDML file contains:
 Device and identification data
 Parameter assignment data
 Diagnostics data

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

3

Preface

In order to enable parameter assignment of the communication modules, the GSDML file must be installed/imported in the Engineering System.

Validity of the documentation This documentation is valid for the following point-to-point communication modules  CM PtP RS232 BA (6ES7540-1AD00-0AA0) communication module  CM PtP RS422/485 BA (6ES7540-1AB00-0AA0) communication module  CM PtP RS232 HF (6ES7541-1AD00-0AB0) communication module  CM PtP RS422/485 HF (6ES7541-1AB00-0AB0) communication module  CM PtP (6ES7137-6AA00-0BA0) communication module

Conventions

Please also observe notes labeled as follows:
Note The notes contain important information on the product described in the documentation, on the handling of the product or on part of the documentation to which particular attention should be paid.

Recycling and disposal The products can be recycled due to their low pollutant content. For environmentally compliant recycling and disposal of your old device, please contact a company certified for the disposal of electronic waste.
Additional assistance  Information about the Technical support (http://www.siemens.com/automation/supportrequest) available can be found in the appendix to this documentation.  The portfolio of technical documentation for SIMATIC products and systems is available on the SIMATIC Portal (http://www.siemens.com/simatic-tech-doku-portal).  The online catalog and the ordering system are available in the Catalog (http://mall.automation.siemens.com).

CM PtP operation with PROFINET controller

4

Programming and Operating Manual, 01/2013, A5E03908199-01

Preface
Note on IT security Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet (http://support.automation.siemens.com). You can register for a product-specific newsletter here. For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet (http://www.siemens.com/industrialsecurity). Products used from other manufacturers should also be taken into account here.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

5

Preface

CM PtP operation with PROFINET controller

6

Programming and Operating Manual, 01/2013, A5E03908199-01

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide................................................................................................................................. 9

2 Overview.................................................................................................................................................. 11

3 Basic information ..................................................................................................................................... 13

3.1

Serial transmission of a character ...............................................................................................13

3.2

Transmission security ..................................................................................................................15

4 Basic communication mechanisms .......................................................................................................... 17

4.1

Data records and user data interface ..........................................................................................20

5 Data transmission with Freeport .............................................................................................................. 21

5.1

Sending data with Freeport..........................................................................................................22

5.2

Receiving data with Freeport .......................................................................................................24

5.3

Code transparency.......................................................................................................................29

5.4

Receive buffer ..............................................................................................................................29

5.5

RS232 mode ................................................................................................................................30

5.6

RS422 mode ................................................................................................................................31

5.7

RS485 mode ................................................................................................................................32

5.8

Handshaking ................................................................................................................................33

6 Data transmission with 3964(R)............................................................................................................... 37

6.1

Data transmission with 3964(R) protocol.....................................................................................37

6.2

Control characters........................................................................................................................37

6.3

Block checksum ...........................................................................................................................38

6.4

Sending data with 3964(R) ..........................................................................................................39

6.5

Receiving data with 3964(R)........................................................................................................40

7 Configuration data records....................................................................................................................... 41

7.1 7.1.1 7.1.2 7.1.3

Freeport communication ..............................................................................................................41 Port configuration record - data record 57 ...................................................................................41 Send configuration record - data record 59 .................................................................................44 Receive configuration record - data record 60.............................................................................46

7.2 7.2.1 7.2.2

3964 communication....................................................................................................................49 Port configuration record - data record 57 ...................................................................................49 3964 protocol configuration - data record 61 ...............................................................................49

7.3

Activate special function ..............................................................................................................51

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

7

Table of contents

8 Error status .............................................................................................................................................. 53

8.1

Read error status - data record 55.............................................................................................. 53

9 Sending data ........................................................................................................................................... 55

9.1

Send data - data record 48 ......................................................................................................... 55

9.2

Querying send acknowledgment - input user data ..................................................................... 57

9.3

Example ...................................................................................................................................... 58

10 Receiving data ......................................................................................................................................... 59

10.1 Data received - data record 49/50 .............................................................................................. 59

10.2 Query: New receive frame - input user data ............................................................................... 61

10.3 Example ...................................................................................................................................... 62

11 Clear receive buffer ................................................................................................................................. 63

11.1 Clear receive buffer - data record 54 .......................................................................................... 63

12 RS232 signals.......................................................................................................................................... 65

12.1 Set RS232 secondary signals - data record 53 .......................................................................... 65

12.2 Read RS232 secondary signals - input user data ...................................................................... 66

13 Error messages ....................................................................................................................................... 67

Glossary .................................................................................................................................................. 75

Index........................................................................................................................................................ 79

CM PtP operation with PROFINET controller

8

Programming and Operating Manual, 01/2013, A5E03908199-01

Documentation guide

1

Introduction

This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.
The complete documentation for the S7-300/400, ET 200MP/SP systems consists of the relevant operating instructions, manuals and product information.

Overview of documentation on the topic of point-to-point communication The table below includes additional documentation which amends this description.

Subject System
Communication

Documentation

Important contents

System manual ET 200MP distributed I/O

· Application planning

system (http://support.automation.siemens.com/WW/vi

·

Installing

ew/en/59193214)

· Connecting

System manual ET 200SP distributed I/O

· Addressing

system

· Commissioning

(http://support.automation.siemens.com/WW/vi

ew/en/58649293)

· Maintenance

Function manual Communication

· Basics of serial

(http://support.automation.siemens.com/WW/vi

communication

ew/en/59192925)

· Data transmission functions

· Diagnostic functions

Device manual CM PtP RS232 BA

·

communication module (http://support.automation.siemens.com/WW/vi

·

ew/en/59057152)

·

Device manual CM PtP RS232 HF

·

communication module

·

(http://support.automation.siemens.com/WW/vi

ew/en/59057160)

Device manual CM PtP RS422/485 BA communication module (http://support.automation.siemens.com/WW/vi ew/en59057390)

Device manual CM PtP RS422/485 HF communication module (http://support.automation.siemens.com/WW/vi ew/59061372)

Device manual CM PtP communication module (http://support.automation.siemens.com/WW/vi ew/en/59061378)

Product overview Connecting Assigning parameters Programming Diagnostics

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

9

Documentation guide

Subject System diagnostics
Setup

Documentation

Important contents

Function manual System diagnostics (http://support.automation.siemens.com/WW/vi ew/en/59192926)

For S7-1500, ET 200MP, ET 200SP:
· Diagnostic evaluation Hardware/software

Function manual EMC/EMI compatible

· Basics

installation of control systems (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

SIMATIC Manuals
The latest manuals of SIMATIC products are available on the Internet (http://www.siemens.com/automation/service&support) and can be downloaded free of charge.

CM PtP operation with PROFINET controller

10

Programming and Operating Manual, 01/2013, A5E03908199-01

Overview

2

Overview of components and order numbers Tabular overview of communication modules

Communication module CM PtP RS232 BA CM PtP RS422/485 BA CM PtP RS232 HF CM PtP RS422/485 HF CM PtP (ET 200SP)

Order number 6ES7 540-1AD00-0AA0 6ES7 540-1AB00-0AA0 6ES7 541-1AD00-0AB0 6ES7 541-1AB00-0AB0 6ES7 137-6AA00-0BA0

Overview of components and interfaces Tabular overview of communication modules and their functions.

Communication module
CM PtP RS232 BA CM PtP RS422/485 BA
CM PtP RS232 HF CM PtP RS422/485 HF
CM PtP (ET 200SP)

Interface
RS232 RS422 RS485 RS232 RS422 RS485 RS232 RS422 RS485

Protocols Freeport
        

3964(R)       -

D-sub

9-pin

15-pin



-

-



-





-

-



-



ET 200SP Base Unit with 18 terminals *)

*) ET 200SP Base Unit instead of sub D; same for all; pin assignment depending on physical transmission properties

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

11

Overview

Overview of components and data transmission rates

Communication module
CM PtP RS232 BA CM PtP RS422/485 BA CM PtP RS232 HF CM PtP RS422/485 HF CM PtP (ET 200SP)

Data transmission rate in bps

300 600 1200 2400 4800

 







 







 







 







 







9600     

19200     

38400   

57600   

76800   

115200   

Overview of components and receive buffer size

Module
CM PtP RS232 BA CM PtP RS422/485 BA CM PtP RS232 HF CM PtP RS422/485 HF CM PtP (ET 200SP)

Receive buffer size KB
2 2 8 8 4

Max. frame length KB
1 1 4 4 2

Bufferable frames
255 255 255 255 255

Secondary signals and data flow control  Software data flow control with XON/XOFF The Freeport protocol supports data flow control with XON/XOFF via the RS232 and RS422 interfaces.  Hardware data flow control with RTS/CTS The Freeport protocol supports data flow control with RTS/CTS via the RS232 interface.  Automatic operation of secondary signals The Freeport protocol supports operation of the RS232 secondary signals by means of the RS232 interface. (Only available if hardware data flow control is not activated.)

Application options for the communication modules
You may set up a communication connection with different partners, depending on the communication modules used:
 Freeport: Transmission of ASCII character strings without specified protocol format
 3964(R): Communication between programmable logic controllers (master/master communication)

CM PtP operation with PROFINET controller

12

Programming and Operating Manual, 01/2013, A5E03908199-01

Basic information

3

3.1

Serial transmission of a character

Introduction

Different networking options are available for the exchange of data between two or more communication partners. The PtP connection between two communication partners is the simplest means of information exchange.

Point-to-point connection
In point-to-point connection, the communication processor forms the interface between a programmable logic controller and a communication partner. Data is sent in serial mode via PtP connection with the communication module.

Serial data transmission
During serial data transmission, the individual bits of a character of information to be transferred are sent successively in a defined sequence.

Bidirectional data traffic - operating mode
In the context of bidirectional data traffic, we distinguish between two operating modes for the communication module:
 Half duplex mode
The data is transferred between one or several communication partners in both directions alternately. Half duplex mode means that data is either sent or received at a given point in time.
 Full duplex mode
The data is exchanged simultaneously between one or several communication partners, i.e. it is possible to send and receive data simultaneously at a given point in time.

Asynchronous data transmission
Serial data transmission occurs asynchronously at the communication module. The so-called time base synchronism (fixed time base for transmission of a fixed character string) is only upheld during transmission of a character. Each character to be sent is preceded by a synchronization pulse, which is also known as start bit. The length of the start bit transmission determines the clock cycle. The end of character transmission is formed by one or two stop bits.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

13

Basic information 3.1 Serial transmission of a character

Handshakes

In addition to the start and stop bits, both communication partners need further handshake procedures for serial data transmission. These include:  Data transmission rate  Character and acknowledgment delay time  Parity  Number of data bits (7 or 8 bits/characters)  Number of stop bits (1 or 2)

CM PtP operation with PROFINET controller

14

Programming and Operating Manual, 01/2013, A5E03908199-01

Basic information 3.2 Transmission security

3.2

Transmission security

Transmission security plays an important role in the transmission of data and in the selection of the transmission procedure. Generally speaking, the more layers of the reference model are applied, the higher the transmission security.

Classification of existing protocols
The figure below illustrates how the protocols of the communication module fit into the reference model.

/D\HU

7UDQVSRUWOD\HU
7KHWUDQVSRUWOD\HULVWKHOLQNEHWZHHQWKH WUDQVSRUWDQGDSSOLFDWLRQRULHQWHGOD\HUV
7KHGDWDSDFNHWVDUHDVVLJQHGWRDQ DSSOLFDWLRQDWWKLVOD\HU

/D\HU /D\HU

1HWZRUNOD\HU 1RWDYDLODEOHEHFDXVHWKLVLVDSXUH SRLQWWRSRLQWFRQQHFWLRQ
/LQNOD\HU 7UDQVPLVVLRQRIWKHGDWDE\WHVZLWK 56WDUWDQGHQGGHOLPLWHUV
DUHDGGHGLQWKHHYHQWRIHUURUV WUDQVPLVVLRQPD\EHUHSHDWHG

5

/D\HU

3K\VLFDOOD\HU
6SHFLI\LQJWKHSK\VLFDO WUDQVPLVVLRQRIWKHGDWDE\WHV

)UHHSRUW

Figure 3-1 Classification of the existing protocols of the communication module in the reference model

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

15

Basic information 3.2 Transmission security
Transmission security with Freeport
Data security when using Freeport:
 Despite the efficiency of data transmission with the Freeport protocol, it is not possible to ensure secure data transmission with Freeport because no data security measures other than the use of a parity bit (can also be disabled, depending on the character frame setting) are applied. A certain degree of data security can be achieved through parameter assignment of the frame start and frame end conditions.
 The parity bit ensures that the inversion of a bit in a character to be sent can be recognized. If two or more bits of a character are inverted, this error can no longer be detected.
 To increase transmission security, you can, for example, implement a checksum, a frame length specification, or configurable end conditions. These measures must be implemented by the user.
 A further increase in data security can be achieved by means of acknowledgment message frames in response to send or receive message frames. This is the case with high-grade protocols for data communication (ISO 7-layer reference model).
Transmission security with 3964(R)
Two different procedures for data transmission can be used, either with or without a block check character:
 Data transmission without block check character: 3964
Transmission security is achieved by means of a specified frame structure, frame breakdown, and frame repetitions.
 Data transmission with block check character: 3964R
The high degree of transmission security is achieved by means of a specified frame structure and breakdown, frame repetitions, as well as inclusion of a block check character (BCC). The hamming distance in 3964R mode is 3.
The hamming distance represents a measure for data transmission security.
In this manual, the term 3964(R) is used when descriptions and notes refer to both data transmission modes.

CM PtP operation with PROFINET controller

16

Programming and Operating Manual, 01/2013, A5E03908199-01

Basic communication mechanisms

4

Reading/writing data records
Note Reading/writing data records For information about the functions for reading/writing data records, refer to the documentation of your controller.
The "Write data record" function can be used to configure the devices by means of configuration data records. The "Write data record" function also transmits the send data to the devices. Accordingly, "Read data record" can be used to read diagnostics data and receive data from the devices.  For operation, you need to configure the communication modules for the relevant
application. The following configuration data records can be used for this purpose: ­ Freeport communication (Page 41) ­ 3964 communication (Page 49)  Use the following data records to send and receive data: ­ Sending data (Page 55) ­ Receiving data (Page 59)  The cyclic user data shows you whether the module has sent or received new data. ­ Querying send acknowledgment - input user data (Page 57) ­ Query: New receive frame - input user data (Page 61)  In RS232 mode, you can derive the current state of the secondary signals from the cyclic user data of the module, or control the RS232 secondary signals by means of the user program (provided hardware data flow control is not activated). ­ RS232 signals (Page 65)  Data records can also be used to send additional control and verification commands. ­ Activate special function (Page 51)
Additional information Chapter Data records and user data interface (Page 20) provides an overview of all configuration data records.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

17

Basic communication mechanisms
Send - flow chart Users can transmit data based on the sequence outlined below (refer to Sending data (Page 55) for details). Management data and send data is transmitted to the communication module by means of a special data record. The communication module provides the acknowledgment in the input user data.
&DOFXODWH6HTXHQFHQXPEHUIRU 6(1'DQGHQWHUUHVXOWLQWKH VHQGDUHD
(QWHUIUDPHHQGLGHQWLILHULQWKH VHQGDUHD  DGGLWLRQDOGDWDSHQGLQJ  ODVWGDWDUHFRUGLIQRRWKHUGDWD H[LVWV
6HQGGDWDUHFRUG

)XUWKHUGDWD DYDLODEOH"

<HV ,QFUHPHQW6HTXHQFHQXPEHUIRU 6(1'

1R
(YDOXDWH6(1'VWDWXVLQXVHU GDWD

CM PtP operation with PROFINET controller

18

Programming and Operating Manual, 01/2013, A5E03908199-01

Basic communication mechanisms
Receive - flow chart The communication module signals the availability of new received data in the input user data (refer to Receiving data (Page 59) for details). The communication module provides management and receive data in a special data record. Users can receive data based on the sequence outlined below.
(YDOXDWH6HTXHQFHQXPEHUIRU 5&9LQWKHXVHUGDWD

1HZYDOXH

1R

DYDLODEOH"

<HV 5HDGGDWDUHFRUG

(YDOXDWHIUDPHHQGLGHQWLILHU  DGGLWLRQDOGDWDSHQGLQJ  ODVWGDWDUHFRUGLIQRRWKHU GDWDH[LVWV

)XUWKHUGDWD

<HV

DYDLODEOH"

1R
(YDOXDWH5&9VWDWXVLQXVHU GDWD

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

19

Basic communication mechanisms 4.1 Data records and user data interface

4.1

Data records and user data interface

Overview of data records
Configuration data records are available for the following tasks:
 Freeport communication Configuration of the communication module for data transmission using the open Freeport frame
­ Activate special function (Page 51)
­ Send configuration record - data record 59 (Page 44)
­ Receive configuration record - data record 60 (Page 46)
 3964 communication Configuration of the communication module for data transmission with 3964(R) protocol
­ Port configuration record - data record 57 (Page 41)
­ 3964 protocol configuration - data record 61 (Page 49)
 Special functions - Activation Activating or verifying the active state of diagnostic interrupts.
­ Activate special function (Page 51)
The following data records are available for operating the communication modules:
 Query error status Acknowledgment of the communication module in response to the writing of a configuration data record
­ Read error status - data record 55 (Page 53)
 Send data Transmitting send data to the communication module and querying transmission acknowledgment in the user data
­ Send data - data record 48 (Page 55)
­ Querying send acknowledgment - input user data (Page 57)
 Receive data Display of a receive frame in the user data
­ Data received - data record 49/50 (Page 59)
­ Query: New receive frame - input user data (Page 61)
 Clear receive buffer Clearing the receive buffer of the communication module
­ Clear receive buffer - data record 54 (Page 63)
 RS232 secondary signals Manipulation of the RS232 secondary signals of the communication module and reading the RS232 secondary signals in the user data
­ Set RS232 secondary signals - data record 53 (Page 65)
­ Read RS232 secondary signals - input user data (Page 66)

CM PtP operation with PROFINET controller

20

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport

5

Introduction

Freeport is a freely programmable, frame-based protocol.
The Freeport driver controls data transmission via point-to-point connection between the communication module and a communication partner. The Freeport driver contains the physical layer (layer 1).
The Freeport driver supports sending and receiving of messages with any structure - all characters from 00 to FFH (for character frames with 8 data bits), or from 00 to 7FH (for character frames with 7 data bits).
The frame start and end criteria must be configured both for the send and the receive direction. The structure of the send frames may differ from that of the receive frames.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

21

Data transmission with Freeport 5.1 Sending data with Freeport

5.1

Sending data with Freeport

Sending data
Note During parameter assignment of the XON/XOFF data flow control, user data may not contain any of the configured XON or XOFF characters. Default settings are DC1 = 11H for XON and DC3 = 13H for XOFF.

Specifying settings for sending
To send a message, the partner must be informed of the start and end of the message (see Send configuration record - data record 59 (Page 44)). You can select one of the following options:
 Send the Break signal at the start of the message
You can specify that an additional Break is sent at the beginning of each message transmission on expiration of the RTS ON delay time. The duration of the "Break" is specified in bit times (refer to Send configuration record data record 59 (Page 44) bytes 12 and 13).
Compliance with the send break can be deactivated if other mechanisms are used for synchronization.
 Send Idle Line
You can specify that an additional "Idle Line" signal is output at the start of each message transmission. The duration of the "Idle Line" is specified in bit times (see Send configuration record data record 59 (Page 44) bytes 14 and 15).
Compliance with the send break can be deactivated if other mechanisms are used for synchronization.
 RTS ON delay
You can configure the time that has to expire after the RTS (Request to send) before the actual data transmission starts (see Send configuration record - data record 59 (Page 44) bytes 8 and 9).
 RTS OFF delay
You can configure the time that has to expire after transmission has been completed before the RTS signal is deactivated (see Send configuration record - data record 59 (Page 44) bytes 10 and 11).

CM PtP operation with PROFINET controller

22

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.1 Sending data with Freeport
 Sending including the end delimiter
You can configure the number of end delimiters (1 or 2) and their value.
All data up to the end delimiter(s) is sent, independent of the selected frame length. The end delimiter must be included in the data to be sent. Data is sent only up to and including the end delimiter, even if the data length specified is longer (refer to Send configuration record - data record 59 (Page 44) bytes 18 and 21).
 Number of appended characters
Input of the number of appended characters. All data transferred to the communication module will be sent. The end delimiter(s) is/are appended automatically. 1 to 5 characters more than the specified number are sent to the partner, depending on the number of end delimiters (see Send configuration record - data record 59 (Page 44) bytes 22 and 28).
Note
If you do not configure either the "End delimiter" (0) or the "Number of appended characters" (0), all data transferred to the communication module is sent to the partner in a transparent operation.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

23

Data transmission with Freeport 5.2 Receiving data with Freeport

5.2

Receiving data with Freeport

Introduction

You need to specify message start and end criteria in the Freeport driver to enable detection of a message in the incoming data flow.
Note
The start and end criteria described below can be combined as required. Such combinations may lead to unwanted results if the start and end criteria influence or even exclude each other.

Specifying the message start For data transmission with Freeport, you can choose between several different start criteria. The start criterion defines when a frame starts. Once a criterion that indicates the start of the message is met, the data stream is scanned for message end criteria. (See Receive configuration record - data record 60 (Page 46) byte 9) Two different methods are available for detecting the message start:  Start on any character  Start on special condition
Start on any character  Start on any character Any character can be used to define the start of the message (default). This means that the first character sent at the start of communication, or after the frame end has been detected, will be identified as the first character of a message. (See Receive configuration record - data record 60 (Page 46) byte 12)

CM PtP operation with PROFINET controller

24

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.2 Receiving data with Freeport
Start on special condition The start of the message is detected based on the following specified conditions:  After detection of a line break The frame start is not accepted unless a break has been received beforehand, in other words, it is compulsory for the partner to send a break before sending a frame.  After detection of an idle line The frame start is not accepted until the configured idle line duration has expired. This procedure requires a minimum interval between two frames. (See Receive configuration record - data record 60 (Page 46) bytes 10 and 11)  After receipt of a start character The frame start is detected when the configured start character is identified. (See Receive configuration record - data record 60 (Page 46) byte 12)  After detection of one or several start sequences The frame start is detected when the configured string with a length of up to five characters is identified. You can configure up to 4 start sequences. (See Receive configuration record - data record 60 (Page 46) bytes 13 to 37)
Specifying the message end You can choose from several different end criteria for data transmission using the Freeport driver. The end criterion defines the point at which a message frame has been received completely. (See Receive configuration record - data record 60 (Page 46) byte 39) Configurable end criteria are:  Recognize message end by message timeout  Recognize message end by response timeout  After character delay time elapses (default)  After receipt of a fixed frame length  After receipt of a maximum number of characters  Read message length from message  After receipt of an end sequence
Message timeout When data is received, the end of frame is detected on expiration of the configured time for transferring a frame. Time measurement starts after the start criterion has been met. (See Receive configuration record - data record 60 (Page 46) bytes 52 and 53) An error message is output and the frame is discarded if a message end condition is met before the fixed frame length has been reached.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

25

Data transmission with Freeport 5.2 Receiving data with Freeport
Response timeout
When data is received, the end of frame is detected on expiration of the configured time between the end of the send operation and the receipt of a frame start. (See Receive configuration record - data record 60 (Page 46) bytes 50 and 51)
An error message is output and the frame is discarded if a message end condition is met before the fixed frame length has been reached.
Expiration of character delay time
When data is received, the frame end is detected when the configured maximum time (bit times) between successive characters is exceeded (character delay time). (See Receive configuration record - data record 60 (Page 46) bytes 54 and 55)
In this case, the character delay time must be set in such a way as to ensure that it expires between two consecutive frames. However, it should be of sufficient length to exclude incorrect identification of the end of the frame whenever the communication partner performs a transmission pause within a frame.
Fixed frame length
When data is received, the end of the frame is identified after the configured frame length has been reached. (See Receive configuration record - data record 60 (Page 46) bytes 40 and 41)
An error message is output and the frame is discarded if the character delay time expires (if activated) before the fixed frame length has been reached.
Please note the following if the frame length of the received characters does not match the fixed configured frame length:
 All characters received after the fixed configured frame length has been reached will be discarded until a new start criterion (e.g. "any character") is detected.
 Receiving is terminated if the character delay time (if activated) expires before the fixed configured frame length has been reached. An error message is generated and the message frame fragment is discarded.
 If a different (activated) end criterion is met before the fixed configured frame length has been reached, this "frame part" is assessed as a valid frame and the partner waits for a new start criterion. All characters received prior to fulfillment of a new start criterion are discarded.

CM PtP operation with PROFINET controller

26

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.2 Receiving data with Freeport
Maximum number of characters When receiving data, the end of the message frame is recognized after the declared number of characters have arrived. (See Receive configuration record - data record 60 (Page 46) bytes 42 and 43) This setting can be combined with the "Character delay time" settings. The frame received is also assessed as free of error if another end condition occurs, regardless of whether the maximum number of characters has been reached. Please note the following if the frame length of the received characters does not match the configured maximum frame length:  All characters received after the configured maximum number of characters has been reached will be discarded until a new start criterion (e.g. "Idle Line") is detected.  If a different (activated) end criterion is met before the configured maximum number of characters has been reached, this "frame part" is assessed as a valid frame and the partner waits for a new start criterion. All characters received prior to fulfillment of a new start criterion are discarded.
Note If no further end criterion is activated, the fixed frame length and maximum number of characters will respond in the same way.
Message length in the message The length of the receive frame is also sent. When data is received, the frame end is identified after the frame length also sent has been reached. If "After character delay time elapses" is activated as an additional end criterion, receiving will be terminated prematurely. An error message is generated and the message frame fragment is discarded. The following parameters define the characters to be used for evaluation of the message length:  Offset of the length field in the message In the message, the value defines the position of the character that is to be used to determine the message length. You can set values from 1 to 4096 characters, depending on the buffer size. (See Receive configuration record - data record 60 (Page 46) bytes 44 to 45)

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

27

Data transmission with Freeport 5.2 Receiving data with Freeport

 Size of the length field
This value specifies the number of characters as of the first evaluation position to be used to determine the message length.
You can set values of 0, 1, 2 and 4 characters.
(See Receive configuration record - data record 60 (Page 46) bytes 46 to 47)
 Number of characters not counted in length specification
Number of characters appended to the frame without counting towards the frame length. This value defines the number of bytes at the end of the frame which should not be included in the evaluation of the message length.
You can set values from 0 to 255 characters.
(See Receive configuration record - data record 60 (Page 46) bytes 48 to 49)

End sequence

When data is received, the end of the frame is identified when the configured end sequence (max. 5 characters) is received. The received data is applied by the CPU, including the end sequence. (See Receive configuration record - data record 60 (Page 46) bytes 56 to 61)
If you are working with the end sequence, transmission is not code-transparent and you must exclude the presence of end code in the user data.

CM PtP operation with PROFINET controller

28

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.3 Code transparency

5.3

Code transparency

Code transparency
Code-transparent means that any character combinations can occur in the user data without the end criterion being recognized.
The code transparency of the protocol depends on the selection of the parameterized end criterion and flow control:
 With up to five end delimiters or using XON/XOFF flow control
­ Not code-transparent
 End criterion character delay time, fixed frame length, maximum frame length, message timeout, or response timeout and message length in the message
­ Code-transparent

5.4

Receive buffer

Receive buffer of the module
The receive buffer of the module may have a size of up to 8 KB, depending on the communication module used (see chapter Overview (Page 11)). The maximum frame length always equals half the length of the receive buffer. This means that each communication module is capable of buffering at least two frames.
During parameter assignment, you can specify whether to clear the receive buffer at startup and whether to prevent overwriting of data in the receive buffer. You can also specify the range of values (1 to 255) for the number of buffered receive frames. (See Receive configuration record - data record 60 (Page 46) bytes 62 to 64)
The receive buffer on the communication module is organized as FIFO:
 If several frames are entered in the receive buffer of the communication module, the communication module always sends the oldest frame to the CPU.
 If you always want to transfer the last frame received to the CPU, you must set the value "1" for the number of buffered frames and deactivate overwrite protection.
Note
If continuous reading of the receive data in the user program is interrupted for a certain time and the receive data is then requested again, the communication module will possibly transmit an older frame before the CPU receives the most recent one. At the time of interruption, the old frame had already been transferred from the receive buffer of the communication module and prepared for transmission to the CPU.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

29

Data transmission with Freeport 5.5 RS232 mode

5.5

RS232 mode

The following communication modules support RS232 mode:

 CM PtP RS232 BA

 CM PtP RS232 HF

 CM PtP (ET 200SP)

In RS232 mode, data is sent via two lines. A separate line is available for the send direction and the receive direction. Simultaneous sending and receiving is possible (full duplex).

RS232 secondary signals
In addition to the TXD, RXD and GND signals, the communication module provides the following RS232 secondary signals when RS232 hardware is used:

DCD DTR DSR RTS CTS
RI

(input) (output) (input) (output) (input)
(input)

Data Carrier detect; Data carrier signal detected Data terminal ready; Module ready for operation Data set ready; Communication partner ready for operation Request to send; Module is ready to send Clear to send; Communication partner can receive data from the module (response to RTS = ON of the communication module) Ring Indicator; Ring indicator

After power on of the communication module, the output signals are in the OFF state (inactive).

You can parameterize the operation of the DTR/DSR and RTS/CTS control signals in the configuration data record of the module (Port configuration record - data record 57 (Page 41)).

The RS232 secondary signals cannot be manipulated by data record communication (Set RS232 secondary signals - data record 53 (Page 65)) in case of:
 parameterized data flow control "Hardware RTS always ON"

(corresponds to automatic operation of the secondary signals)  parameterized data flow control "Hardware RTS always ON"

(corresponds to hardware flow control with RTS/CTS)  parameterized data flow control "Hardware RTS always ON, ignore DTR/DSR "

An error message is generated if an attempt is made to manipulate RS232 secondary signals by means of data record communication.

For more information, refer to chapter Handshaking (Page 33).

CM PtP operation with PROFINET controller

30

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.6 RS422 mode

5.6

RS422 mode

The following communication modules support RS422 mode:

 CM PtP RS422/485 BA

 CM PtP RS422/485 HF

 CM PtP (ET 200SP)

In RS422 mode, data is transmitted via two line pairs (four-wire mode). A separate line pair is available for the send direction and the receive direction. Simultaneous sending and receiving is possible (full duplex).

All communication partners must be capable of simultaneous operation of a sender and receiver unit.

The data can be exchanged simultaneously between one or several communication partners. In RS422 multipoint mode, only one multipoint slave may send data at any given time.

Interface operating modes
The following table is a summary of the interface operating modes for the various communication modules and protocols.
The communication module can be used in the following topologies in RS422 mode:
 Link between two nodes: Point-to-point connection
 Link between several nodes: Multipoint coupling (only available with CM PtP (ET 200SP))

Operating mode
Full duplex (RS 422) four-wire mode (point-to-point connection)
Full duplex (RS422) four-wire mode (multipoint master)
Full duplex (RS 422) four-wire mode (multipoint slave)

Description Both devices have the same priority in this operating mode.
The communication module can be used as multipoint master.
The communication module can be used as multipoint slave.

The following applies for a multipoint master/slave topology in RS422 mode:

 The master's sender is interconnected with the receivers of all slaves.

 The slaves' senders are interconnected with the master's receiver.

 The receiver of the master and the receiver of one slave are assigned default settings (refer to chapter Port configuration record - data record 57 (Page 41) byte 25). All other slaves operate without default settings.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

31

Data transmission with Freeport 5.7 RS485 mode

5.7

RS485 mode

The following communication modules support RS485 mode:

 CM PtP RS422/485 BA

 CM PtP RS422/485 HF

 CM PtP (ET 200SP)

In RS485 mode, data is transferred via one line pair (two-wire mode). The line pair is available alternately for the send and receive directions. It is possible to either send or receive (half duplex). On completion of a send operation, operation is immediately switched to receive mode (ready to receive). Send mode is reset again as soon as a new send job is received.

RS485 mode

The following table is a summary of the interface operating modes for the various communication modules and protocols.

Operating mode Half duplex (RS485) two-wire mode

Description
Operating mode for point-to-point connection or multipoint connection (multipoint) in two-wire mode. The communication module can be the master as well as the slave.

When you operate the Freeport driver in RS485 mode (half duplex, two-wire mode), you must make provisions in the user program to ensure that only one device sends data at any given time. If more than one device sends data at the same time, the frame is corrupted.

Changeover times for RS485 communication module in half duplex mode A maximum time of 0.1 ms is set for the changeover between sending and receiving.

CM PtP operation with PROFINET controller

32

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.8 Handshaking

5.8

Handshaking

Introduction

Handshaking controls the data flow between two communication partners. The use of the handshaking method prevents data loss during transmission if the devices are operating at different speeds.
We can basically distinguish between the following methods:

Table 5- 1 Overview of methods and interfaces
Method Software data flow control XON/XOFF Hardware data flow control (RTS/CTS) Automatic operation of secondary signals

RS232 X X X

RS422 X

RS485

Software data flow control
Software data flow control is implemented as follows on the communication module:
 XON/XOFF
­ As soon as the communication module has been set to the "XON/XOFF" operating mode by means of parameter assignment, it sends the XON character, thereby allowing the communication partner to send data.
­ On reaching the configured maximum number of frames, or 16 characters ahead of receive buffer overflow, the communication module sends the XOFF character, thereby requesting that the communication partner stop sending. If the communication partner nonetheless continues to send data, an error message is generated if the receive buffer overflows. Data received in the last frame is discarded.
­ As soon as a frame has been fetched by the CPU and the receive buffer is ready to receive data again, the communication module sends the XON character.
­ If the communication module receives the XOFF character during sending, it cancels the current send operation until it receives a XON again from its communication partner. If no XON is received within a specific configurable time, send operation is canceled and a corresponding error message is output.
Note
You can configure the characters for XON and XOFF (any ASCII character).
During parameter assignment of the XON/XOFF software data flow control, user data may not contain any of the configured XON or XOFF characters.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

33

Data transmission with Freeport 5.8 Handshaking

Hardware data flow control
Note
The DTR/DSR signals do not have to be wired for "Hardware RTS always ON, ignore DTR/DSR" parameter assignment.
If "Hardware RTS always ON" is configured, it is imperative that you fully wire the interface signals used. Make sure that the local RTS (out) is connected with the CTS (in) of the communication partner and the local CTS is connected with the RTS of the communication partner. Accordingly, the local DTR must be connected with the DSR of the communication partner and the local DSR with the DTR of the communication partner.
 Hardware RTS always ON, ignore DTR/DSR
­ As soon as the communication module has been set to an operating mode with "Hardware RTS always ON" through parameter assignment, it outputs the RTS = ON signal to the communication partner to indicate its ready state.
­ RTS is set to OFF as soon as the configured maximum number of frames or 16 characters before buffer overflow is reached. If the communication partner nonetheless continues to send data, an error message is generated on overflow of the receive buffer. Data received in the last frame is discarded.
­ RTS is reset to ON as soon as the frame has been fetched by the CPU and the receive buffer is ready to receive data again.
­ If CTS switches to OFF during the send operation, the communication module interrupts the send operation until CTS is reset to ON. If CTS is not reset to ON within a specific configurable time, the send operation is canceled and a corresponding error message is output.
 Hardware RTS always ON
The "Hardware RTS always ON" mode corresponds to the "Hardware RTS always ON, ignore DTR/DSR" mode. However, you also need to wire DTR and DSR.
­ As soon as the communication module has been set set to an operating mode with "Hardware RTS always ON" through parameter assignment, it sets DTR = ON and RTS = ON to signal its general ready state to the communication partner.
­ RTS is set to OFF as soon as the configured maximum number of frames or 16 characters before buffer overflow is reached. If the communication partner nonetheless continues to send data, an error message is generated on overflow of the receive buffer. Data received in the last frame is discarded.
­ RTS is reset to ON as soon as the frame has been fetched by the CPU and the receive buffer is ready to receive data again.
­ If CTS switches to OFF during the send operation, the communication module interrupts the send operation until CTS is reset to ON. If CTS is not reset to ON within a specific configurable time, the send operation is canceled and a corresponding error message is output.
­ A switch from DSR = ON to DSR = OFF cancels an active send job and triggers an error message.

CM PtP operation with PROFINET controller

34

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with Freeport 5.8 Handshaking
Automatic operation of secondary signals
 Hardware RTS always switched
"Hardware RTS always switched" is implemented as follows on the communication module:
­ As soon as the communication module is set to the operating mode with "Hardware RTS always switched" through parameter assignment, it sets the line RTS to OFF and DTR to ON (communication module ready for operation).
It is not possible to send frames until the DSR line is set to ON. No data is sent via the RS232C interface as long as DSR is set to OFF. A send job is canceled and a corresponding error message is generated.
­ If a send job is pending, RTS is set to ON and the configured data output wait time starts. On expiration of the data output time, the system checks whether the communication partner has set CTS to ON. If so, the data is sent via the RS232 interface.
­ If the CTS line is not set to ON within the data output time, or changes to OFF during the send operation, the send job is aborted and an error message generated.
­ Once the data has been sent and the configured clear RTS time has elapsed, the RTS line is set to OFF. The system does not wait for CTS to change to OFF.
­ It is always possible to receive data via the RS232 interface. There will be no reaction if there is a danger of the receive buffer of the communication module overflowing.
­ A switch from DSR = ON to DSR = OFF cancels an active send job and triggers an error message.
Note
Set the "data output wait time" in such a way that the communication partner is able to enter the ready to receive state before the time elapses.
Set the "Clear RTS time" in such a way that the communication partner is able to receive the last characters of the frame completely before RTS is set to OFF and the send request is canceled.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

35

Data transmission with Freeport 5.8 Handshaking
Additional information For information on the settings, refer to chapter Port configuration record - data record 57 (Page 49).
Note Operation of DTR/DSR or RTS/CTS is accepted by the communication module with the following settings. Operation by means of Set RS232 secondary signals - data record 53 (Page 65) is impossible (any attempt made will trigger an error message): · Hardware RTS always ON, ignore DTR/DSR · Hardware RTS always ON · Hardware RTS always switched

CM PtP operation with PROFINET controller

36

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with 3964(R)

6

6.1

Data transmission with 3964(R) protocol

Introduction

The 3964(R) protocol controls PtP data exchange between the communication module and a communication partner. The 3964(R) protocol contains both the physical layer (layer 1) and the link layer (layer 2).

6.2

Control characters

Introduction

During data transmission, the 3964(R) protocol adds control characters to the information data (link layer). The communication partner can use these control characters to check whether it has received all data completely and without errors.

Control characters of the 3964(R) protocol The 3964(R) protocol evaluates the following control characters:  STX Start of Text; start of the string to be sent  DLE Data Link Escape  ETX End of Text; end of the string to be sent  BCC Block Check Character (only with 3964R)  NAK Negative Acknowledge; negative response
Note If the DLE character is transferred as an information character, it is sent twice during connection setup and shutdown (DLE duplication) in order to distinguish it from the DLE control character. The receiver reverses the DLE duplication.

Priority

For operation with 3964(R) protocol, one communication partner must be assigned a higher priority and one communication partner a lower priority. If both partners simultaneously start the connection setup, the partner having lower priority will postpone its send job.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

37

Data transmission with 3964(R) 6.3 Block checksum

6.3

Block checksum

Block checksum
With the 3964R transfer protocol, data security is enhanced by sending an additional block check character (BCC = Block Check Character).
The block checksum represents the even longitudinal parity (EXOR logic operation of all data bytes) of a sent or received block. Its calculation begins with the first byte of user data (first byte of the frame) after the connection establishment, and ends after the DLE ETX character at connection termination.
Note
With DLE duplication, the DLE character is included twice in the BCC calculation.

CM PtP operation with PROFINET controller

38

Programming and Operating Manual, 01/2013, A5E03908199-01

Data transmission with 3964(R) 6.4 Sending data with 3964(R)

6.4

Sending data with 3964(R)

Connection setup for sending
The 3964(R) protocol sends the STX control character to set up the connection. The transition to send mode is initiated when the communication partner responds with the DLE character before the ACK delay time has expired.
The protocol retries to connect if the communication partner responds with NAK or any other character (except DLE or STX), or if inactivity triggers an acknowledgment timeout. After the parameterized number of unsuccessful retries to connect, the connection setup is canceled and the NAK character is transmitted to the communication partner. The communication module outputs a corresponding error message.

Sending data

On successful connection setup, the user data from the output buffer of the communication module and the selected transmission parameters are sent to the communication partner. The partner monitors the time intervals between incoming characters. The interval between two characters must not exceed the character delay time. Monitoring of the character delay time starts immediately after the connection was set up.
If the communication partner transmits an NAK while a transmission is busy, the block transmission is aborted and repeated as shown above starting with the connection setup. If any other character is received, a wait time for expiration of the character delay time is triggered and an NAK is then transmitted to set the communication partner to idle state. Transmission is then restarted with STX connection setup.

Connection shutdown during transmission
After the buffer content has been transmitted, the routine inserts the DLE, ETX characters, appends the BCC block checksum (only for 3964R) and waits for an ACK character. If the communication partner sends the DLE characters within the acknowledgment delay time, the data block has been received without errors. If the communication partner responds with NAK, or any other character (except DLE), or with a corrupt character, or if the acknowledgment delay time expires without response, the routine restarts transmission with STX connection setup.
After the parameterized number of retries to connect, the routine is aborted and NAK is transmitted to the communication partner. The communication module outputs a corresponding error message.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

39

Data transmission with 3964(R) 6.5 Receiving data with 3964(R)

6.5

Receiving data with 3964(R)

Connection setup for receiving
While in idle state and not processing a send job, the module waits for the communication partner to set up the connection.
A wait time is started (wait time = acknowledgment delay time - 10 ms, however, maximum of 400 ms) if no free receive buffer is available during the connection setup with STX. An error message is generated if no free receive buffer is available on expiration of this time. An NAK is transmitted and initiates the transition to idle state. Otherwise, the DLE character is transmitted and the data is received as described above.
The acknowledgment delay time should be set to the same value at both communication partners.
If any character (except for STX or NAK) is received in idle state, the routine waits for expiration of the character delay time (CDT) and then transmits the NAK character. The communication module outputs a corresponding error message.

Receiving data

After successful connection setup, the incoming receive characters are saved to the receive buffer. If two consecutive DLE characters are received, only one of these is saved to the receive buffer.
After connection setup and after each receive character, the routine waits for the next character within the character delay time. If this period expires before another character is received, an NAK is sent to the communication partner. The communication module outputs a corresponding error message. A retry is then expected.
If transfer errors occur during receiving (lost character, frame error, parity error, etc.), the procedure continues to receive data until the connection is terminated and then sends an NAK to the communication partner. A retry is then expected. Receiving is aborted if the block cannot be received without errors after the specified number of transmission retries, or if the communication partner fails to retry transmission within a block delay time of 4 seconds. The communication module reports the first corrupted transfer and the final cancelation.

Connection setup for receiving
Once the DLE ETX string is detected, receiving is terminated and DLE is transmitted to the communication partner for a block that was received without error. In the case of a receive error, an NAK is sent to the communication partner. A retry is then expected.
Receiving is stopped once the DLE ETX BCC string is detected. The BCC is compared with the internally generated longitudinal parity. DLE is transmitted (return to idle state) if the BCC is correct and no other receive error is pending. If the BCC is faulty or a different receive error occurs, an NAK is sent to the communication partner. A retry is then expected.

CM PtP operation with PROFINET controller

40

Programming and Operating Manual, 01/2013, A5E03908199-01

Configuration data records

7

7.1
7.1.1

Freeport communication
The following three configuration data records must be sent to the communication module for Freeport communication.
Port configuration record - data record 57
Note Parameter assignment error If the communication module detects a parameter assignment error when writing the "Port Configuration Record - data record 57", the data record is rejected with error status 0x80E1. The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the port configuration).

Port configuration

Italic = not supported

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 0039H ­ PORT_CFG

1

2

Block length: 0018H

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

°

Protocol:

8 0000H ­ Freeport protocol

9 0001H ­ 3964 protocol

0002H to FFFFH ­ Reserved

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

41

Configuration data records 7.1 Freeport communication

Port configuration

Italic = not supported

°

Data transmission rate:

10 0000H - Reserved

0007H - 19.2 kbps

11 0001H - 300 bps

0008H - 38.4 kbps

0002H - 600 bps

0009H - 57.6 kbps

0003H - 1.2 kbps

000AH - 76.8 kbps

0004H - 2.4 kbps

000BH - 115.2 kbps

0005H - 4.8 kbps

000CH to FFFFH - Reserved

0006H - 9.6 kbps

°

Parity:

12 0000H - Reserved

13 0001H - None

0002H - Even

0003H - Odd

0004H - Mark (set parity bit to 1)

0005H - Space (set parity bit to 0)

0006H - Any (the parity is not checked during receiving. The parity is always set to "0" during sending.)

0007H to FFFFH - Reserved

°

Data bits:

14 0000H - Reserved

15 0001H - 8 data bits per character

0002H - 7 data bits per character

0003H to FFFFH - Reserved

°

Stop bits:

16 0000H - Reserved

17 0001H - 1 stop bit

0002H - 2 stop bits

0003H to FFFFH - Reserved

°

Data flow control:

18 RS232 settings:

RS485 settings:

RS422 settings:

19 0000H - Reserved

0000H - Reserved

0000H - Reserved

0001H - None

0001H - None

0001H - None

0002H - XON/XOFF

0002H to FFFFH - Reserved

0002H - XON/XOFF

0003H - Hardware RTS always ON, DSR required

0003H to FFFFH - Reserved

0004H - Hardware RTS always switched, DSR required

0005H - Hardware RTS always ON, ignore DTR/DSR

0006H to FFFFH - Reserved

CM PtP operation with PROFINET controller

42

Programming and Operating Manual, 01/2013, A5E03908199-01

Configuration data records 7.1 Freeport communication

Port configuration

Italic = not supported

20

XON: 00H to FFH - XON character

21

XOFF: 00H to FFH - XOFF character

22

Wait for XON after XOFF in ms: (0000H to FFFFH)

23

24

Operating mode:

00H - RS232

01H - RS422 full duplex four-wire mode (point-to-point)

02H - RS422 full duplex (RS422) four-wire mode (multipoint master) (CM PtP (ET 200SP))

03H - Full duplex (RS422) four-wire mode (multipoint slave) (CM PtP (ET 200SP))

04H - Half duplex (RS485) two-wire mode

05H to FFH - Reserved

25

Receive line default:

00H - "No" default

01H - Signal R(A)=5 V, signal R(B)=0 V (break detection): Break detection is possible with this default setting. Can only be selected with: "Full duplex (RS 422) four-wire mode (point-to-point connection)" and "Full duplex (RS 422) four-wire mode (multipoint slave)".

02H - Signal R(A)=0 V, signal R(B)=5 V: This default corresponds to the idle state (no active send operation). No break detection is possible with this default setting.

03H to FFH - Reserved

26

Break detection:

00H - Break detection deactivated

01H - Break detection activated

02H to FFH - Reserved

27

Reserved: 00H

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

43

Configuration data records 7.1 Freeport communication

7.1.2

Send configuration record - data record 59
Note Parameter assignment error If the communication module detects a parameter assignment error when writing the "Send Configuration Record - data record 59", the data record is rejected with error status 0x80E1. The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the send configuration).

Bit-> Byte
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ° 16 17 ° 18 19 20 21

Send configuration

Italic = not supported

7

6

5

4

3

2

1

0

Block type 003BH - SEND_CFG

Block length: 001CH

Block version high byte: 01H Block version low byte: 00H
Reserved: 0000H

RTS ON delay in 1 ms: (0000H - FFFFH) (not available for RS422/485 modules)
RTS OFF delay in 1 ms: (0000H - FFFFH) (not available for RS422/485 modules)
Break duration in bit times: (0000H to FFFFH)

Idle Line duration in bit times: (0000H to FFFFH)

Settings: Reserved: 0000H

USR_END STRING[2,0,xx,yy] - No end delimiter STRING[2,1,xx,yy] - One end delimiter STRING[2,2,xx,yy] - Two end delimiters Note: The first character (2; byte 18) contains the maximum string length, the second character (0, 1, 2, byte 19) the actual string length, and xx (byte 20) and yy (byte 21) contain the characters.

CM PtP operation with PROFINET controller

44

Programming and Operating Manual, 01/2013, A5E03908199-01

Configuration data records 7.1 Freeport communication

Send configuration

Italic = not supported

°

APP_END

22

STRING[5,0,aa,bb,cc,dd,ee] - No appended characters (default)

23

STRING[5,1,aa,bb,cc,dd,ee] - One appended character

24

STRING[5,2,aa,bb,cc,dd,ee] - Two appended characters

25

STRING[5,3,aa,bb,cc,dd,ee] - Three appended characters

26

STRING[5,4,aa,bb,cc,dd,ee] - Four appended characters

27

STRING[5,5,aa,bb,cc,dd,ee] - Five appended characters

28

Note: The first character (5; byte 22) contains the maximum string length, the second character (0, 1, 2, 3, 4, 5;

byte 23) the actual string length, and aa to ee (bytes 24-28) contain the characters.

29

Reserved: 00H

30

Reserved: 00H

31

Reserved: 00H

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

45

Configuration data records 7.1 Freeport communication

7.1.3

Receive configuration record - data record 60
Note Parameter assignment error If the communication module detects a parameter assignment error when writing the "Receive Configuration Record - data record 60", the data record is rejected with error status 0x80E1. The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the receive configuration).

Bit-> Byte
0 1 2 3 4 5 6 7 ° 8
9
10 11 12 ° 13
14 15 16 17 18

Receive configuration

Italic = not supported

7

6

5

4

3

2

1

0

Block type: 003CH - RCV_CFG

Block length: 0040H

Block version high byte: 01H Block version low byte: 00H
Reserved: 0000H

Start conditions:

0

0

0

0

0

0

0

0

Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved

Seq. #4

Seq. #3

Seq. #2

Seq. #1

Idle Line

Break

Used char. Start char.

Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active.

0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive.

1 - activated 1 - activated 1 - activated 1 - activated 1 - activated 1 - activated 1 - activated 1 - activated

Idle Line duration in bit times: 0000H to FFFFH

0 Reserved

0 Reserved

Start characters: 00H to FFH

Frame start sequence #1 character check

0

Char #5 Ac Char #4 Ac Char #3 Ac Char #2 Ac Char #1 Ac

Reserved 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive.

1 - activated 1 - activated 1 - activated 1 - activated 1 - activated

Character #1: 00H to FFH

Character #2: 00H to FFH

Character #3: 00H to FFH

Character #4: 00H to FFH

Character #5: 00H to FFH

CM PtP operation with PROFINET controller

46

Programming and Operating Manual, 01/2013, A5E03908199-01

Configuration data records 7.1 Freeport communication

Receive configuration

Italic = not supported

°

Frame start sequence #2 character check

19

0

0

0

Char #5 Ac Char #4 Ac Char #3 Ac Char #2 Ac Char #1 Ac

Reserved Reserved Reserved 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive.

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

20

Character #1: 00H to FFH

21

Character #2: 00H to FFH

22

Character #3: 00H to FFH

23

Character #4: 00H to FFH

24

Character #5: 00H to FFH

°

Frame start sequence #3 character check

25

0

0

0

Char #5 Ac Char #4 Ac Char #3 Ac Char #2 Ac Char #1 Ac

Reserved Reserved Reserved 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive.

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

26

Character #1: 00H to FFH

27

Character #2: 00H to FFH

28

Character #3: 00H to FFH

29

Character #4: 00H to FFH

30

Character #5: 00H to FFH

°

Frame start sequence #4 character check

31

0

0

0

Char #5 Ac Char #4 Ac Char #3 Ac Char #2 Ac Char #1 Ac

Reserved Reserved Reserved 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive.

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

32

Character #1: 00H to FFH

33

Character #2: 00H to FFH

34

Character #3: 00H to FFH

35

Character #4: 00H to FFH

36

Character #5: 00H to FFH

37

must always be 00H

°

End conditions:

38

0

0

0

0

0

0

0

0

Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved

39

0

Fixed length Seq. #1 Read length Max length

CDT

Mess. TO Resp. TO

Reserved Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active. Rcv. Active.

0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive. 0 ­ inactive.

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

1 ­ activated

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

47

Configuration data records 7.1 Freeport communication

Receive configuration

Italic = not supported

40

Fixed frame length: 0001H to 0xxxH*

41

42

Maximum frame length: 0001H to 0xxxH*

43

44

Offset of the length field in the message: 0000H to 0xxx*

45

46

Size of the length field: 01H, 02H, 04H - all other values are invalid

47

48

Number of characters not counted in length specification: 00H to FFH

49

50

Response timeout in 1ms: 0000H to FFFFH

51

52

Message timeout in 1 ms: 0000H to FFFFH

53

54

Character delay time in bit times: 0000H to FFFFH

55

°

End sequence #1 character check

56

0

0

0

Char #5 Ac Char #4 Ac Char #3 Ac Char #2 Ac Char #1 Ac

Reserved Reserved Reserved 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive. 0 - inactive.

1 - activated 1 - activated 1 - activated 1 - activated 1 - activated

57

Character #1: 00H to FFH

58

Character #2: 00H to FFH

59

Character #3: 00H to FFH

60

Character #4: 00H to FFH

61

Character #5: 00H to FFH

°

Buffered receive frames:

62 00H - Reserved

01H to FEH - 1 to 254

FFH - 255

°

Prevent overwriting:

63 00H - Deactivated (on receive buffer overflow, a new message overwrites the oldest message)

01H - Activated (if the receive buffer is full, the new message is discarded)

02H to FFH - Reserved

°

Clear receive buffer at startup:

64 00H - Deactivated

01H - Activated

02H to FFH - Reserved

65

Reserved: 00H

66

Reserved: 00H

67

Reserved: 00H

* the buffer size depends on the communication module used

CM PtP operation with PROFINET controller

48

Programming and Operating Manual, 01/2013, A5E03908199-01

7.2
7.2.1

Configuration data records 7.2 3964 communication
3964 communication
The following two configuration data records must be transferred to the communication module for 3964 communication:
Port configuration record - data record 57
Note The "Port configuration record" is described in chapter Port configuration record - data record 57 (Page 41).

7.2.2

3964 protocol configuration - data record 61
Note Parameter assignment error If the communication module detects a parameter assignment error when writing the "3964 Protocol Configuration - data record 61", the data record is rejected with error status 0x80E1. The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the 3964 protocol).

3964 protocol configuration

Italic = not supported

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 003DH - P3964

1

2

Block length: 000CH

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

8

3964(R) - With block check:

00H - Deactivated

01H - Activated

02H to FFH - Reserved

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

49

Configuration data records 7.2 3964 communication

3964 protocol configuration

Italic = not supported

9

3964(R) priority:

00H - low priority

01H - high priority

02H to FFH - Reserved

°

3964(R) character delay time:

10 0000H to 0013H - Reserved

11 0014H to FFFFH - 20 to 65535 ms

Default: 00DCH - 220 ms

°

3964(R) acknowledgment delay time:

12 0000H to 0013H - Reserved

13 0014H to FFFFH - 20 to 65535 ms

Default: 07D0H - 2000 ms

14

3964(R) connection attempts:

00H - Reserved

01H to FFH - 1 to 255 connection attempts

Default: 06H - 6 connection attempts

15

3964(R) transmission attempts:

00H - Reserved

01H to FFH - 1 to 255 connection attempts

Default: 06H - 6 transmission attempts

CM PtP operation with PROFINET controller

50

Programming and Operating Manual, 01/2013, A5E03908199-01

Configuration data records 7.3 Activate special function

7.3

Activate special function

The following data record can be used to activate diagnostic interrupts (write) and check whether diagnostic interrupts are activated (read).

Note Parameter assignment error
If the communication module detects a parameter assignment error when writing the "Activate special function - data record 58", the data record is rejected with error status 0x80E1.
The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the special functions).

PtP SET_FTRS (write record 003AH)

Italic = not supported

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 003AH - SET_FTRS

1

2

Block length: 0008H

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

8

Reserved: 0000H

9 00H - Deactivated 01H - Activated 02H to FFH - Reserved
10 11

Diagnostic interrupt
Reserved: 00H Reserved: 00H

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

51

Configuration data records 7.3 Activate special function

CM PtP operation with PROFINET controller

52

Programming and Operating Manual, 01/2013, A5E03908199-01

Error status

8

The following data record contains the acknowledgment of the communication module to the writing a configuration data record.

8.1

Read error status - data record 55

PtP RD_ESTAT (read record 0037H)

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 0037H - RD_ESTAT

1

2

Block length: 0010H

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

8

Error codes of the special functions *

9

10

Error codes of the port configuration *

11

12

Error codes of the send configuration *

13

14

Error codes of the receive configuration *

15

16

Error codes of the RS32 secondary signals *

17

18

Error codes of the 3964 protocol *

19

* A list of all error codes is available in chapter Error messages (Page 67).

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

53

Error status 8.1 Read error status - data record 55

CM PtP operation with PROFINET controller

54

Programming and Operating Manual, 01/2013, A5E03908199-01

Sending data

9

9.1

Send data - data record 48

The following data record is used to write send data to the communication module:

SEND_PTP record (write record 0030H)

Bit->

7

6

5

4

3

2

1

0

Byte

0

Sequence number for SEND (0 to 255)

1

Frame end identifier (0 or 1)

2

Data to transmit byte 0

:

:

:

:

Sequence number for SEND
The "Sequence number for SEND" parameter identifies a new send frame, or a new data record of a frame. The "SEND acknowledgment from module" (refer to chapter "Querying send acknowledgment - input user data (Page 57)") must be read as first "Sequence number for SEND" and incremented by the count of one. For the first data record, the "Sequence number for SEND" therefore starts with 1 after a STOP/RUN transition of the CPU and is then incremented by one for each data record with new content.
The value "0" may not be used as "Sequence number for SEND". as it serves to detect the start of the module. The value is reset to 1 again after 255 has been reached.

Frame end identifier The "Frame end identifier" parameter serves to identify the last data record belonging to a frame.
 The value 0 means that at least one more data record follows for the current frame.
 The value 1 means that this data record is the last one for the current frame.

Data to transmit byte 0
The data must be stored in the data record as of "Data to transmit byte 0". The size and therefore the number of data records for transmitting a frame is defined by the transmission medium, for example, 240 bytes with PROFIBUS.
If the length of the data to transmit is not a multiple of the data record length, the length of the last data record corresponds to the length of the remaining data to transmit.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

55

Sending data 9.1 Send data - data record 48
Send acknowledgment from module The module writes the "Sequence number" received in the data record as send acknowledgment to the user data. See "SEND acknowledgment from module", chapter "Querying send acknowledgment - input user data (Page 57)". For the last data record belonging to a frame,the acknowledgment is not written until the module has sent the frame. This means that the "SEND acknowledgment from module" must be evaluated along with the "SEND status" after the last data record was written.
Startup characteristics At startup, the module writes a zero value to "SEND acknowledgment from module" (see chapter "Querying send acknowledgment - input user data (Page 57)" A busy job must be aborted if "SEND acknowledgment from module" equals zero.

CM PtP operation with PROFINET controller

56

Programming and Operating Manual, 01/2013, A5E03908199-01

Sending data 9.2 Querying send acknowledgment - input user data

9.2

Querying send acknowledgment - input user data

The communication module enters the send acknowledgment in the user data that has the following structure:

Bit-> Byte
0
1 2 3 4 5 6 7

Input process image structure

Italic = not supported

7

6

5

4

3

2

1

0

SGN_STAT
0 - no status
1 - Status valid

Reserved = 0

Ring_Status DCD_Status CTS_Status RTS_Status
SEND acknowledgment from module SEND status *

DSR_Status

DTR_Status

Sequence number for RCV Reserved: 00H Reserved: 00H Reserved: 00H

* A list of all status and error codes is available in chapter Error messages (Page 67)

You can read status information as well as error numbers (value unequal to 0) from "SEND Status".

If "SEND acknowledgment from module" equals the number transferred in the last data record ("Sequence number for SEND") and the "SEND Status" equals 0, the frame or data record was transmitted without errors.

It is necessary to wait for this communication module feedback, which means "SEND Status" is equal to an error code, or "SEND acknowledgment from module" equals "Sequence number for SEND" and "SEND Status" equals zero, before a new frame is transmitted.

Reaction of the module to an unexpected sequence number for SEND
The module rejects a data record with an unexpected sequence number for SEND when writing the data record and returns error message 0x80B8. The code 0x81D7 is then stored in "SEND status or error code" in the user data. In this case, active communication must be canceled and transmission must be repeated with the first data record. Set the sequence number for SEND as described in chapter Send data - data record 48 (Page 55).

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

57

Sending data 9.3 Example

9.3

Example

A frame with a length of 500 bytes is to be transmitted. The data record has a length of 240 bytes.

 First data record, length of 240 bytes:

"Sequence number for SEND" = 1

"Frame end identifier" = 0

238 bytes user data

 Second data record, length of 240 bytes:

"Sequence number for SEND" = 2

"Frame end identifier" = 0

238 bytes user data

 Third data record, length of 26 bytes

"Sequence number for SEND" = 3

"Frame end identifier" = 1

24 bytes user data

 Wait for feedback from the communication module; see Querying send acknowledgment input user data (Page 57).

Afterwards, a frame with a length of 100 bytes is to be transmitted.

 First = last data record, length of 102 bytes:

"Sequence number for SEND" = 4

"Frame end identifier" = 1

100 bytes user data

 Wait for feedback from the communication module; see Querying send acknowledgment input user data (Page 57).

CM PtP operation with PROFINET controller

58

Programming and Operating Manual, 01/2013, A5E03908199-01

Receiving data

10

10.1

Data received - data record 49/50
A new value at "Sequence number for RCV" (Query: New receive frame - input user data (Page 61)) indicates a new frame is ready for reading in the communication module.
The following data records are used to read receive data from the communication module:

Bit-> Byte
0 1 2 3 4 : :

RCV_PTP record (read record 0031H/0032H)

7

6

5

4

3

2

1

0

Sequence number for this data record (1 to 255) Frame end identifier (0 or 1) RCV status *

Receive data byte 0 : :
* A list of all status and error codes is available in chapter Error messages (Page 67)

Change of the data record number when receiving data
After startup of the communication module, reading of the frame content must start at data record number 16#0031, while the data record numbers change between 16#0032 and 16#0031 in all subsequent read operations.

Sequence number of this data record
For the first data record of a frame, the "Sequence number of this data record" is equal to the "Sequence number for RCV" in the user data that indicated the new frame. This value is incremented by the count of one for each data record read subsequently. An overflow to 2 is triggered at 255. The values 0 and 1 have a special significance (see below).

Frame end identifier
The "Frame end identifier" is equal to 1 for the last data record that has to be read for this frame, while it is 0 for all other data records.
The size of the last data record that belongs to a frame is determined by the frame length and limited accordingly by the communication module.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

59

Receiving data 10.1 Data received - data record 49/50

RCV status

"RCV Status" displays the result of the last data reception. 0x009x: Frame received without error 0x8xxx: Frame received with error See chapter Error messages (Page 67).

Resetting communication after power on of the communication module
 "Sequence number for RCV" is equal to 0
A "Sequence number for RCV" with value 0 in the input user data indicates that the communication module has performed a restart after power on and that no frame has been received yet.
 "Sequence number for RCV" is equal to 1
A "Sequence number for RCV" with value 1 in the input user data indicates that this is the first frame after power on of the communication module.
A busy job must be aborted in both cases.
In the second case, reading of the frame content must start at data record number 16#0031.

CM PtP operation with PROFINET controller

60

Programming and Operating Manual, 01/2013, A5E03908199-01

Receiving data 10.2 Query: New receive frame - input user data

10.2

Query: New receive frame - input user data

Sequence number for RCV
A new received frame is indicated by a "Sequence number for RCV" in byte 4 of the user data that has the following structure.

Bit-> Byte
0
1 2 3 4 5 6 7

Input process image structure

Italic = not supported

7

6

5

4

3

2

1

0

SGN_STAT
0 - no status
1 - Status valid

Reserved = 0

Ring_Status DCD_Status CTS_Status RTS_Status
Sequence number from module SEND status *

DSR_Status

DTR_Status

Sequence number for RCV Reserved: 00H Reserved: 00H Reserved: 00H
* A list of all status and error codes is available in chapter Error messages (Page 67)

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

61

Receiving data 10.3 Example

10.3

Example
A frame with a length of 500 bytes was received. The data record has a length of 240 bytes  In the user data, the frame is indicated by "Sequence number for RCV" = 1.  Read data record 16#0031 that contains:
"Sequence number of this record" = 1 "Frame end identifier" = 0 "RCV status or error code return value" = 0x009x 1) It contains 236 bytes of user data.  Read the second data record 16#0032 that contains: "Sequence number of this data record" = 2 "Frame end identifier" = 0 "RCV status or error code" = 0x009x 1) It contains 236 bytes of user data.  Read the third data record 16#0031 that contains: "Sequence number of this data record" = 3 "Frame end identifier" = 1 "RCV status or error code" = 0x009x 1) It contains 28 bytes of user data. The communication module has limited the data record length to 32 bytes. This completes reading of the first frame from the CM. A frame with a length of 100 bytes was received subsequently. The sequence number for RCV changes from 1 to 4 in the user data.  Read the data record 16#0032 that contains: "Sequence number of this data record" = 4 "Frame end identifier" = 1 "RCV status or error code" = 0x009x 1) The data record contains 100 bytes of user data and the communication module has limited the data record length to 104 bytes.

1)

0x009x Frame received without error

0x8xxx Frame received with error

(see error codes in chapter Query: New receive frame - input user data (Page 61))

CM PtP operation with PROFINET controller

62

Programming and Operating Manual, 01/2013, A5E03908199-01

Clear receive buffer

11

11.1

Clear receive buffer - data record 54
The receive buffer of the communication module is cleared by writing the following data record with "RST_RCV_BUF" = TRUE.

PtP RCV_RST(write record 0036H)

Italic = not supported

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 0036H - RCV_RST

1

2

Block length: 0008H

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

8

0

0

0

0

0

0

0

RST_RCV_

BUF

9

Reserved: 00H

10

Reserved: 00H

11

Reserved: 00H

Note: RST_RCV_BUF = 0; no changes are made to the receive buffer. RST_RCV_BUF = 1; the receive buffer is cleared.

The communication module does not acknowledge the reset of its receive buffer.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

63

Clear receive buffer 11.1 Clear receive buffer - data record 54

CM PtP operation with PROFINET controller

64

Programming and Operating Manual, 01/2013, A5E03908199-01

RS232 signals

12

12.1

Set RS232 secondary signals - data record 53
The RS232 secondary signals of the communication module are manipulated by writing to the following data record, provided the communication module supports this action in the current mode.
Note Parameter assignment error
If the communication module detects a parameter assignment error when writing the "Set RS232 secondary signals - data record 53", the data record is rejected with error status 0x80E1.
The corresponding cause of error can be read by means of data record "Read Error Status data record 55" (error codes of the RS232 secondary signals).

PtP SGN_SET(write record 0035H)

Italic = not supported

Bit->

7

6

5

4

3

2

1

0

Byte

0

Block type: 0035H - SGN_SET

1

2

Block length: 0008H

3

4

Block version high byte: 01H

5

Block version low byte: 00H

6

Reserved: 0000H

7

8

0

0

0

0

0

0

Set_DTR_St Set_RTS_St

ate

ate

9

0

0

0

0

0

0

DTR_State RTS_State

10

Reserved: 00H

11

Reserved: 00H

Note: Set_xxx_State = 0, the status of the specified control bit is not changed. Set_xxx_State = 1, the status of the specified control bit must be set to the value that was specified by xxx_State.

For information on reading the acknowledgment to the writing of this data record, refer to chapter "Error status (Page 53) ".

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

65

RS232 signals 12.2 Read RS232 secondary signals - input user data

12.2

Read RS232 secondary signals - input user data
The RS232 secondary signals of the communication module can be read from the user data.

Bit-> Byte
0
1 2 3 4 5 6 7

Input process image structure

Italic = not supported

7

6

5

4

3

2

1

0

SGN_STAT
0 - no status
1 - Status valid

Reserved = Ring_Status DCD_Status CTS_Status RTS_Status DSR_Status 0
Sequence number for SEND (acknowledgment from module) SEND status or error code *

DTR_Status

Sequence number for RCV Reserved: 00H Reserved: 00H Reserved: 00H
* A list of all error codes is available in chapter Error messages (Page 67)
SGN_STAT = 0 indicates that no RS232 secondary signals are available in the current operating mode of the communication module.

CM PtP operation with PROFINET controller

66

Programming and Operating Manual, 01/2013, A5E03908199-01

Error messages

13

Overview of error messages

Error code Description

0x0000

No error

RECEIVE status and error codes

0x0094

Frame end identified based on the "Receipt of fixed/maximum frame length"

0x0095

Frame end identified based on "Message timeout"

0x0096

Frame end identified based on expiration of the "Character delay time"

0x0097

No response frame was received within the parameterized maximum response time.

0x0098

Frame end identified based on the fulfillment of the "Read message length from message" conditions

0x0099

Frame end identified based on the receipt of the "End sequence"

SEND status and error codes

0x7000

Block idle

0x7001

Initial call for a new frame: Data record transmission initiated

0x7002

Interim call: Data record transmission in process

0x8085

Invalid length specification

0x8088

The specified length exceeds the range set in the receive buffer

Error codes of the special functions

0x8190

Incorrect setting of the CRC calculation

0x8191

Incorrect setting of the diagnostic interrupt

Remedy -
-
-
-
-
-
-
Select a suitable frame length. The following are valid (depending on the module): 1-1024/2048/4096 (Byte) Change the range in the receive buffer or select a frame length which corresponds to the range set in the receive buffer. The following are valid (depending on the module): 1-1024/2048/4096 (Byte)
Select a suitable value for CRC calculation. The following are valid: deactivated or activated. Check whether the module addressed supports CRC calculation. Select a suitable value for "Diagnostic interrupt". The following are valid: Diagnostic interrupt deactivated (0) or diagnostic interrupt activated (1). Check whether the module addressed supports the generation of diagnostic interrupts.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

67

Error messages

Error code Description

Remedy

Error codes of the "Port configuration"

0x81A0

The module does not support this protocol.

0x81A1

The module does not support this data transmission rate.

0x81A2

The module does not support this parity setting.

Select a valid protocol for the module. Select a valid data transmission rate for the module.
Select a suitable value for "Parity". The following are valid:

· None (1)

· Even (2)

· Odd (3)

· Mark (4)

· Space (5)

· Any (6)

0x81A3

The module does not support this number of data bits.

Select a suitable value for "Number of data bits". The following are valid:

· 7 (2)

· 8 (1)

0x81A4

The module does not support this number of stop bits. Select a suitable value for "Number of stop bits". The following are valid:

· 1 (1)

· 2 (2)

0x81A5 0x81A7
0x81A8 0x81AA

The module does not support this type of data flow control. Invalid value for XON or XOFF
Error in frame header Invalid operating mode

Select a valid data flow control for the module.
Select suitable values for XON and XOFF. Valid range of values: 0 - FF. Check the data/values in the frame header. Valid operating modes are:

· Full duplex (RS232) (0)

· Full duplex (RS422) four-wire mode (point-topoint) (1)

· Full duplex (RS422) four-wire mode (multipoint master) (2) / (CM PtP (ET 200SP))

· Full duplex (RS422) four-wire mode (multipoint slave) (3) / (CM PtP (ET 200SP))

· Half duplex (RS485) two-wire mode (4)

CM PtP operation with PROFINET controller

68

Programming and Operating Manual, 01/2013, A5E03908199-01

Error messages

Error code Description

0x81AB

Invalid default setting of the receive line

0x81AC

Invalid value for "Break detection"

0x81AF

The module does not support this protocol.

Error codes of the "Send configuration"

0x81B5

More than two end delimiters or end sequence > 5 characters

0x81B6

Send configuration rejected because the 3964(R) protocol was selected

Error codes of the "Receive configuration"

0x81C0

Invalid start condition

0x81C1 0x81C3

Invalid end condition or no end condition selected Invalid value for "Maximum message length"

0x81C4

Invalid value for "Offset of the length specification in the message"

Remedy Valid default settings are: · "No" default setting (0) · Signal R(A)=5 V, signal R(B)=0 V (break
detection) (1): Can only be selected with: "Full duplex (RS422) four-wire mode (point-to-point connection)" and "Full duplex (RS422) four-wire mode (multipoint slave)". · Signal R(A)=0 V, signal R(B)=5 V (2): This default corresponds to the idle state (no active send operation). No break detection is possible with this default setting.
Select a suitable value for "Break detection". The following are valid: · "0" (break detection deactivated) · "1" (break detection activated)
Select a valid protocol for the module.
Select suitable values for "End delimiter" and "End sequence". The following are valid: · deactivated (0), · 1 (1) or 2 (2) end delimiters or · deactivated (0), · 1 (1) up to 5 (5) characters for the end sequence.
Verify that no send configuration is transmitted if the 3964R) protocol is set.
Select a suitable start condition. The following are valid: · Send break before frame start · Send Idle Line.
Select a suitable end condition. Select a suitable value for "Maximum message length". Valid range of values (module-dependent): 1-1024/2048/4096 (Byte) Select a suitable value for "Offset of the length specification in the message". Valid range of values (module-dependent): 1-1024/2048/4096 (Byte)

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

69

Error messages

Error code 0x81C5
0x81C6 0x81C7
0x81C8 0x81C9 0x81CB 0x81CC 0x81CD
0x81CE

Description

Remedy

Invalid value for "Size of length field"

Select a suitable value for "Size of length field". Valid range of values in bytes:

· 1 (1)

· 2 (2)

· 4 (4)

Invalid value for "Number of characters not counted in Select a suitable value for "Number of characters not

length specification"

counted in length specification".

Valid range of values: 0 to 255 (bytes)

The total of "Offset in the message + size of the length field + number of character not counted" is greater than the maximum frame length

Select a suitable value for "Offset in message", "Size of the length field" and "Number of characters not counted".

Valid range of values:

· Offset in the message (module-dependent): 0-1022/2046/4094 (Byte)

· Size of the length field: 1, 2, or 4 (bytes)

· Number of characters not counted: 0-255 (bytes)

Invalid value for "Response timeout"

Select a suitable value for "Response timeout".

Valid range of values: 1-65535 (ms)

Invalid value for "Character delay time"

Select a suitable value for "Character delay time".

Valid range of values: 1-65535 (bit times)

Frame end sequence is activated, but no character is Activate one or several characters for the check. activated for the check

Frame start sequence is activated, but no character is Activate one or several characters for the check. activated for the check

Invalid value for "Prevent overwriting"

Select a suitable value for "Prevent overwriting".

The following are valid:

· Prevent overwriting is deactivated (0) or

· Prevent overwriting is activated (1)

Invalid value for "Clear receive buffer at startup"

Select a suitable value for "Clear receive buffer at startup".
The following are valid:

· Clear receive buffer at startup is deactivated (0)

· Clear receive buffer at startup is activated (1)

CM PtP operation with PROFINET controller

70

Programming and Operating Manual, 01/2013, A5E03908199-01

Error messages

Error code Description

SEND status and error codes

0x81D0

Receiving send requests during runtime of a send job

0x81D1

The waiting time for XON or CTS = ON has expired.

0x81D2 0x81D3

"Hardware RTS always ON": Send command aborted due to change from DSR = ON to OFF
Send buffer overflow / send frame too long

0x81D5 0x81D6

Transmission aborted due to parameter changes, detected wire break, or because CPU in STOP
Transmission canceled because end identifier was not received

0x81D7

Communication error between the user program and module

0x81D8

Transmission attempt rejected because module is not configured

Error codes of the receive configuration

0x81E0

Frame canceled: Send buffer overflow / send frame too long

0x81E1

Frame canceled: Parity error

0x81E2 0x81E3 0x81E4
0x81E5 0x81E6

Frame canceled: Character frame error
Frame canceled: Character overflow error
Frame canceled: The total length of "Offset in the message + size of the length field + number of character not counted" is greater than the receive buffer Frame canceled: Break
Maximum number of "Buffered receive frames" exceeded

0x81E8

Frame canceled: The character delay time has expired before the message and criterion was detected

Remedy
Make sure that you do not receive send requests during runtime of a send job. The communication partner has a fault, is too slow or is offline. Check the communication partner or, if necessary, change the parameter assignment. Check the communication partner. Make sure that DSR is ONfor the entire duration of transmission. Select a shorter frame length. The following are valid (depending on the module): 1-1024/2048/4096 (Byte) Check the parameter assignment, for wire break, and the CPU status. Check the parameter assignment of the end delimiters and the frame of the communication partner. Check communication (e.g. consistency of the sequence number). Configure the module.
Increase the call rate for the receive function in the user program, or parameterize communication with data flow control. Check the connection line of the communication partners, or verify that both devices are configured for the same data transmission rate, parity and stop bit number. Check the settings for the start bit, data bits, parity bit, data transmission rate, and stop bit(s). Firmware error: Contact Customer Support. Select a suitable value for Offset in message, Size of the length field, and Number of characters not counted.
Receive line to partner is interrupted. Reconnect or switch on partner. In the user program, increase the call rate of the instruction, or parameterize communication with data flow control, or increase the number of buffered frames. Partner device faulty or too slow. Check this, if required, using an interface tester that is interconnected in the transmission line.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

71

Error messages

Error code Description

0x81EB

Frame canceled: Maximum frame length reached

Error codes of RS232 secondary signals

0x81F0

The module does not support RS232 secondary signals

0x81F1

No operation of RS232 secondary signals

Error codes of the receive configuration

0x82C1

Invalid value for "Buffered receive frames".

0x82C2

Receive configuration rejected because the 3964(R) protocol was selected

3964(R) protocol error codes

0x8380

Parameter assignment error: Invalid value for "Character delay time".

0x8381

Parameter assignment error: Invalid value for "Response timeout".

0x8382

Parameter assignment error: Invalid value for "Priority".

0x8383

Parameter assignment error: Invalid value for "Block check"

0x8384 0x8385 0x8386

Parameter assignment error: Invalid value for "Connection attempts".
Parameter assignment error: Invalid value for "Transmission attempts".
Runtime error: Number of connection attempts exceeded

0x8387

Runtime error: Number of transmission attempts exceeded

Remedy Select a shorter frame length at the communication partner. The following are valid (depending on the module): 1-1024/2048/4096 (Byte) Check the parameters of the frame end detection.
You have made an attempt to set up secondary signals on a module that does not support RS232 secondary signals. Verify that this is an RS232 module or that RS232 mode (ET 200SP) is set. RS232 secondary signals cannot be manipulated manually as long as hardware data flow is active.
Select a suitable value for "Buffered receive frames". Valid range of values: 1-255 Verify that no receive configuration is transmitted if the 3964(R) protocol is set.
Select a suitable value for "Character delay time". Valid range of values: 1-65535 (ms) Select a suitable value for "Response timeout". Valid range of values: 1-65535 (ms) Select a suitable value for "Priority". The following are valid: · High (1) · Low (0)
Select a suitable value for "Block check". The following are valid: · with block check (1) · without block check (0)
Select a suitable value for "Connection attempts". Valid range of values: 1-255 Select a suitable value for "Transmission attempts". Valid range of values: 1-255 Check the interface cable and the transmission parameters. Also check whether the receive function is configured correctly at the partner device. Check the interface cable, the transmission parameters and the configuration of the communication partner.

CM PtP operation with PROFINET controller

72

Programming and Operating Manual, 01/2013, A5E03908199-01

Error messages

Error code 0x8388
0x8389
0x838A
0x838B 0x838C 0x838D 0x838E 0x838F 0x8390 0x8391

Description Runtime error: Error at the "Block check character" The internally calculated value of the block check character does not correspond to the block check character received by the partner at the connection end. Runtime error: Invalid character received while waiting for free receive buffer
Runtime error: Logical error during receiving. Another character (other than DLE, ETX) was received after receipt of DLE.
Runtime error: Character delay time exceeded
Runtime error: Wait time for free receive buffer has started
Runtime error: Frame repetition does not start within 4 s after NAK
Runtime error: One or several characters (except NAK and STX) were received in idle mode.
Runtime error: Initialization conflict - Both partners have set high priority Parameter assignment error: Error in frame header Parameter assignment error: 3964 Parameter data record rejected because Freeport is set

Remedy
Check whether the connection is seriously disrupted; in this case you may also occasionally see error codes. Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
The send request of the communication partner (STX, 02H) is not answered with DLE until the receive buffer has been cleared. No additional character may be received before it has been cleared (except STX again).
Check for proper function at the partner device, possibly by using an interface test device that is switched into the transmission line.
Check whether the partner DLE in the frame header and in the data string is always in duplicate or the connection is released with DLE ETX. Check for proper function of the partner device, possibly using an interface test device that is switched into the transmission line.
Partner device too slow or faulty.
Check for proper function of the partner device, possibly using an interface test device that is switched into the transmission line.
Increase the call rate of the instruction in the user program, or parameterize communication with data flow control.
Check the communication partner. A received frame that is possibly corrupted must be repeated by the partner within 4 seconds.
Verify the proper function of the partner device, for example, by means an interface tester that is interconnected in the transmission line.
Set the "Low" priority at one of the partners
Check the data/values in the frame header.
Verify that no 3964 parameter data is transmitted if the Freeport protocol is set.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

73

Error messages

CM PtP operation with PROFINET controller

74

Programming and Operating Manual, 01/2013, A5E03908199-01

Glossary

Address

The address indicates the physical storage space and enables direct access to the operand that is stored under this address.

Automation system
An automation system is a programmable logic controller consisting of at least one CPU, various I/O modules, and operator control and monitoring devices.

Communication module Communication modules are used for point-to-point connections and bus links.

Configuration

The term configuration refers to the summary of individual modules of an automation system in the configuration table.

CPU

Central Processing Unit = Central module of the automation system that consists of the control and computing units, memory, system program, and interfaces to the I/O modules.

CPU operating system
The CPU operating system organizes all the functions and sequences of the CPU that are not linked to a special control task.

Cycle time

The cycle time denotes the time a CPU requires to execute one user program cycle.

Cyclic program processing
In cyclic program processing, the term cycle denotes execution of the user program in a continuous repetitive program loop.

Default setting The default is a useful basic setting that is used whenever no other value is specified.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

75

Glossary

Diagnostic functions
The diagnostic functions cover the entire system diagnostics and the detection, evaluation and reporting of errors in the automation system.

Diagnostics buffer
Memory area in which detailed information on all diagnostics events is entered based on the order of their occurrence.

Diagnostics events
Diagnostics events are, for example, module errors or system errors in the CPU that may be caused by a program error.

Hardware

The term hardware denotes the entire physical and technical equipment of an automation system.

Interrupt

The term interrupt designates the interruption of program execution in the processor of an automation system which is triggered by an external alarm.

Module parameters
Module parameters are values that are used to determine the behavior of the module. We distinguish between static and dynamic module parameters.

Online/Offline

In online mode, there is a data connection between the automation system and programming device, while there is no data connection in offline mode.

Parameter assignment
The term parameter assignment denotes actions that define the response of a module or block.

Parameters

Parameters represent values that can be used to define the behavior of a module or software. We distinguish between module parameters and block parameters.

CM PtP operation with PROFINET controller

76

Programming and Operating Manual, 01/2013, A5E03908199-01

Glossary

Point-to-point connection
In a point-to-point connection the communication module interfaces a programmable logic controller and a communication partner.

Protocol

The communication partners participating in data transmission must conform to fixed rules for the handling and execution of data traffic. These rules are called protocols.

Rack

The rack is a mounting rail with slots that can be used to mount modules.

Software

The term software refers to all programs that are used on a computing system. These include the operating system and user programs.

User program

The user program contains all instructions and declarations for processing the signals used for controlling a system or a process. In SIMATIC S7, the user program is structured and divided into small units, namely the blocks.

Work memory

Work memory is CPU RAM (Random Access Memory) that is accessed by the processor when processing the user program.

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

77

Glossary

CM PtP operation with PROFINET controller

78

Programming and Operating Manual, 01/2013, A5E03908199-01

Index

Data record 61, 49

Data transmission rates, 12

DCD, 30

3

DLE, 37 DSR, 30

3964 protocol configuration - data record 61, 49

DTR, 30

3964(R)

Receiving data, 40

Sending data, 39

E

3964(R) protocol, 37 Control characters, 37

ETX, 37

Priority, 37

3964R procedure Block check character, 38

F

Freeport

Code transparency, 29

A

End criteria, 25

Application options for the communication modules, 12 Asynchronous data transmission, 13 Automatic operation of secondary signals, 35

Message end, 22 Message start, 22 Receive buffer, 29 Receiving data, 24

RS232 secondary signals, 30

B

Sending data, 22 Start criteria, 24

BCC, 37

Full duplex mode, 13

Bidirectional data traffic, 13

Block check character, 38

H

C
Clear receive buffer - data record 54, 63 Code transparency, 29 Configuration data records, 20 CTS, 30

Half duplex mode, 13 Handshaking, 33 Hardware data flow control, 34 Hardware RTS always ON, 34 Hardware RTS always ON, ignore DTR/DSR, 34 Hardware RTS always switched, 35

D
Data flow control, 12, 33 Data record 48, 55 Data record 49/50, 59 Data record 53, 65 Data record 54, 63 Data record 55, 53 Data record 57, 41 Data record 58, 51 Data record 59, 44 Data record 60, 46

I
Interfaces, 11
N
NAK, 37
O
Order numbers, 11

CM PtP operation with PROFINET controller

Programming and Operating Manual, 01/2013, A5E03908199-01

79

Index

P
Point-to-point connection, 13 Port Configuration Record, 41

X
XON/XOFF, 33

Q
Query:New receive frame - input user data, 61 Querying send acknowledgment - input user data, 57

R
Read error status - data record 55, 53 Read RS232 secondary signals - input user data, 66 Receive buffer, 29 Receive buffer size, 12 Receive configuration record - data record 60, 46 Receiving
Flow chart, 19 RI, 30 RS232 mode, 30 RS232 secondary signals, 30
Automatic use, 35 RS422 mode, 31 RS485 mode, 32 RTS, 30

S
Secondary signals, 12 Send configuration record - data record 59, 44 Send point-to-point - data record 48, 55 Sending
Flow chart, 18 Serial data transmission, 13 Set RS232 secondary signals - data record 53, 65 Software data flow control, 33 STX, 37

T
Transmission security, 15 with 3964(R), 16 with Freeport, 16

U
Unidirectional/bidirectional data traffic, 30

CM PtP operation with PROFINET controller

80

Programming and Operating Manual, 01/2013, A5E03908199-01

SIMATIC IO-Link system
Function Manual

_Pr_ef_ac_e_______________ _G_uid_e_______________1_ _Sy_s_tem__ov_e_rv_iew__________2_ _Ianu_teto_gmr_aatt_ioion_ni_nsyt_ost_tehme_________3_

12/2017
A5E31637677-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E31637677-AB  01/2018 Subject to change

Copyright © Siemens AG 2013 - 2017. All rights reserved

Preface

Purpose of the documentation
This function manual provides a general overview of the IO-Link communication system.
It shows the interaction of the various components of an IO-Link system and will help you improve your general understanding of IO-Link.

Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Proficiency with STEP 7

Scope of the documentation
This documentation is the basic documentation for IO-Link systems at Siemens. The product documentation is based on this documentation.

Conventions

In this documentation, "STEP 7" is used as a synonym for all versions of the configuration and programming software "STEP 7 (TIA Portal)". Please also observe notes marked as follows:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Additional support
 Information about Technical Support is available in section Siemens Industry Online Support (Page 4).
 The range of technical documentation for the individual SIMATIC products and systems can be found on the Internet.
 Information about the online catalog and online order system is available in section Industry Mall (Page 5).

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).
Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

IO-Link system

4

Function Manual, 12/2017, A5E31637677-AB

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

5

Table of contents

Preface ................................................................................................................................................... 3

1 Guide...................................................................................................................................................... 7

2 System overview..................................................................................................................................... 8

2.1

Advantages of IO-Link ............................................................................................................. 9

2.2

Overview of IO-Link system ................................................................................................... 10

2.3

IO-Link interface..................................................................................................................... 12

2.4

IO-Link protocol...................................................................................................................... 14

2.5

Device profiles........................................................................................................................ 16

2.6

IODD and Port Configuration Tool - S7-PCT ......................................................................... 17

2.7

Differences between IO-Link specifications V1.0 and V1.1 ................................................... 19

3 Integration into the automation system .................................................................................................. 20

3.1 3.1.1 3.1.2 3.1.3

Configuration of the IO-Link system....................................................................................... 20 Configuration with S7-PCT .................................................................................................... 22 Configuration without S7-PCT ............................................................................................... 25 Overview of configuration options.......................................................................................... 27

3.2

Data access of the automation system and the HMI device.................................................. 29

3.3

Changing and saving device parameters during plant operation .......................................... 30

3.4

Replacing a master or device during operation ..................................................................... 32

Index .................................................................................................................................................... 33

IO-Link system

6

Function Manual, 12/2017, A5E31637677-AB

Guide

1

Documentation
Various IO-Link products are available from Siemens. Each of these products has a separate documentation. The IO-Link products are embedded in systems, e.g. ET 200SP. The documentation for the system consists of the respective system manual, function manuals and manuals. In addition, the STEP 7 online help and the Port Configuration Tool - S7-PCT online help assist you in configuring and programming your automation system with IO-Link.
IO-Link components from Siemens
Siemens offers a wide range of products and support for IO-Link:  Master  Device, I/O modules  Device, industrial switchgear  Device, RFID systems (RFID = radio-frequency identification)  Port Configuration Tool - S7-PCT
(https://support.industry.siemens.com/cs/ww/en/view/32469496)  IO-Link library (https://support.industry.siemens.com/cs/ww/en/view/82981502) with the
blocks "IO_LINK_MASTER" and "IO_LINK_DEVICE"  Overview of the topic IO-Link
(https://support.industry.siemens.com/cs/ww/en/view/109737170) Additional information on the products can be found on the Internet (http://www.siemens.com/io-link).
Additional documentation for IO-Link
You can find a free download of the latest documentation on the IO-Link products on the Internet (https://support.industry.siemens.com/cs/ww/en/ps/15818/man).

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

7

System overview

2

Introduction

A continuous communication down to the lowest field level ensures enhanced use of the functions and performance capability of sensors and actuators. Enhanced use of sensors and actuators allows you to operate your machines and plants more productively.
No data other than the actual process value can be exchanged via the standard interfaces (digital, analog) used at the sensor/actuator level. Sensors and actuators with integrated intelligence are now used for increasingly complex functions and require a communication interface tailored to these requirements.

Definition

IO-Link is an innovative, point-to-point communication interface for the sensor/actuator area that is specified in IEC 61131-9. IO-Link consists of the following system components:  IO-Link master  IO-Link device  Unshielded 3-wire or 5-wire standard cable  Engineering tool for configuring and assigning parameters of IO-Link

IO-Link system

8

Function Manual, 12/2017, A5E31637677-AB

System overview 2.1 Advantages of IO-Link

2.1

Advantages of IO-Link
The IO-Link system offers significant advantages as digital interface when connecting sensors/actuators:  Open standard in accordance with IEC 61131-9
­ Devices can be integrated in the same way in all conventional fieldbus systems and automation systems
 Tool supported parameter setting and central data management ­ Fast configuration and commissioning ­ Simple creation of current plant documentation even for sensors/actuators
 Single, uniform wiring and far fewer different interfaces at the sensors/actors ­ Standardized, uniform interface for sensors and actuators independent of their complexity (switching, measuring, multi-channel, binary, mixed signals, etc.) ­ Reduction in the variety of types and inventory ­ Fast commissioning ­ Any combination of IO-Link devices and sensors/actuators without IO-Link at IO-Link master
 Continuous communication between sensors/actuators and the CPU ­ Access to all process data, diagnostic data and device information ­ Access to device-specific data, such as energy data ­ Remote diagnostics can be performed
 Continuous diagnostic information down to sensor/actuator level ­ Reduction in troubleshooting effort ­ Minimizing risk of failure ­ Preventive maintenance and optimization of service and maintenance planning
 Dynamic change of sensor/actuators parameters by the controller or the operator at the HMI ­ Reduction in downtimes during product change ­ Increased variability of the machine
 Automatic reassignment of parameters when devices are replaced during operation ­ Minimization of downtimes ­ Device replacement by untrained personnel without additional aids ­ Avoidance of incorrect settings
 Integrated device identification ­ Identification of the installed devices ­ Ensure quality of result in production and manufacturing when replacing the device

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

9

System overview 2.2 Overview of IO-Link system

2.2

Overview of IO-Link system

Components

An IO-Link system consists of the following components:  IO-Link master  IO-Link device, for example:
­ Sensors/actuators ­ RFID readers ­ I/O modules ­ Valves  Unshielded 3-wire or 5-wire standard cables  Engineering tool for configuring and assigning parameters of IO-Link

Example plant with IO-Link
The figure below shows an example of plant architecture with IO-Link.

Figure 2-1 Plant architecture with IO-Link 10

IO-Link system Function Manual, 12/2017, A5E31637677-AB

System overview 2.2 Overview of IO-Link system

The IO-Link master establishes the connection between the IO-Link devices and the automation system. If the IO-Link master is a component of the I/O system, it is installed either in the control cabinet or directly in the field as remote I/O in degree of protection IP65/67. The IO-Link master communicates by means of various fieldbuses or productspecific backplane buses. An IO-Link master can have multiple IO-Link ports (channels). An IO-Link device can be connected (point-to-point communication) to each port.

Engineering

The IO-Link system is engineered parallel to the overall automation system and can be embedded in it and intermeshed with it.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

11

System overview 2.3 IO-Link interface

2.3

IO-Link interface

Introduction

The IO-Link is a serial, bidirectional point-to-point connection for signal transmission and power distribution under any network, fieldbus or backplane bus.

Connection system in IP65/67
M12 connectors and other connectors are defined for the connection system in IP65/67; sensors have a 4-pin connector, actuators a 5-pin connector. IO-Link masters are always equipped with a 5-pin M12 socket.
The pin assignment according to IEC 60974-5-2 is specified as follows:
 Pin 1: 24 V
 Pin 3: 0 V
 Pin 4: Switching and communication cable (C/Q)
In addition to IO Link communication, these three pins also implement the power supply of the device. Detailed information about the power supply can be found in the documentation of the utilized IO-Link master.

Figure 2-2 Pin assignment IO-Link device

IO-Link system

12

Function Manual, 12/2017, A5E31637677-AB

System overview 2.3 IO-Link interface
Port types in IP65/67
Two types of ports are distinguished in the specifications for IO-Link masters:  Port Class A (Type A)
With this type, the functions of pins 2 and 5 are not assigned. The manufacturer defines this function. Generally, an additional digital channel is assigned to pin 2.

Figure 2-3 Pin assignment Port Class A
 Port Class B (Type B) This type offers an additional supply voltage and is suitable for the connection of devices that have an increased power requirement. In this case an additional (galvanically isolated) supply voltage is made available by pins 2 and 5. A 5-wire standard cable is required to use this additional supply voltage.

Figure 2-4 Pin assignment Port Class B
Connecting cables
The devices are connected to the master with unshielded 3-wire or 5-wire standard cables with a maximum length of 20 m. Standard cables can be used to wire the sensors. No shielding or compliance with specific regulations is necessary for the installation of the cables.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

13

System overview 2.4 IO-Link protocol

2.4

IO-Link protocol

Operating modes
The IO-Link port of the master can be operated in the following modes:
 IO-Link: The port is located in the IO-Link communication.
 DI: The port behaves like a digital input.
 DQ: The port behaves like a digital output.
 Disabled: The port is disabled.
Transmission rate
In the IO-Link specification V1.1, three data transmission rates (baud rates) are specified for the IO-Link operating mode:
 COM 1 = 4.8 kBaud
 COM 2 = 38.4 kBaud
 COM 3 = 230.4 kBaud (optional according to Specification V1.0)
The IO-Link device only supports one of the defined data transmission rates. The IO-Link master to Specification V1.1 supports all data transmission rates and adjusts automatically to the data transmission rated supported by the device.
Response time of the IO-Link system
The response time of the IO-Link system provides information about the frequency and speed of the data transmission between device and master. The response time depends on various factors.
A value for the minimum cycle time of the device is stored in the device description file IODD of the device (Page 17). This value indicates in which time intervals the master may address the device. The value has a big influence on the response time. The master also has an internal processing time that is factored into the calculation of the response time.
Devices with different minimum cycle time can be configured on a master. The response time for these devices differs accordingly. In other words, the response time for various devices connected to a master can vary greatly.
When you configure the master you can specify a fixed cycle time in addition to the devicespecific minimum cycle time stored in the IODD. The master then addresses the device according to this specification.
The typical response time for a device thus results from the effective cycle time of the device and the typical internal processing time of the master.

IO-Link system

14

Function Manual, 12/2017, A5E31637677-AB

System overview 2.4 IO-Link protocol

Transmission performance
IO-Link is a very robust communication system. This communication system operates with a 24V level. If transmissions fail, the frame is repeated two more times. The IO-Link master only detects a break in communication after the failure of the second repeat attempt and reports this to the higher-level CPU.

Data types

Four data types are available:  Process data  Cyclic data  PQI  Cyclic data  Device data  Acyclic data  Events  Acyclic data

Process data

The process data of the devices is transferred cyclically in a data frame with the process data size being determined by the device. Process data from 0 to 32 bytes is possible per device (input and output, respectively).

Port Qualifier Information (PQI)
Each port has a Port Qualifier Information (PQI). This PQI provides information on the device status of the port and IO-Link (value status). The PQI is transmitted cyclically with the process data. The PQI is disabled by default.

Device data

Device data can be parameters, identification data or diagnostic information. The data is exchanged cyclically and at the request of the IO-Link master. Device data can be written to the device and also read from the device.

Events

When an event occurs, the device signals to the master that an event is present. The master then reads the event. Events can be error messages (for example, short-circuit) and warning/maintenance data (for example, dirt, overheating).
Error messages are transferred from the device to the CPU or the HMI by the IO-Link master.
The IO-Link master can also transfer events and states. Such events are, for example, wire break, break in communication or overload.
Device parameters or events are transmitted independently of the cyclic transmission of process data. The transmissions do not influence or impair each other.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

15

System overview 2.5 Device profiles
Startup of the IO system
If the port of the master is set to IO-Link mode, the IO-Link master attempts to communicate with the connected IO-Link device. For this purpose the IO-Link master sends a defined signal and waits for the reply of the IO-Link device.
The IO-Link master first attempts a communication with the highest defined data transmission rate. If this transmission attempt fails the IO-Link master attempts a communication with the lowest data transmission rate. The device always supports only one defined data transmission rate.
If the master receives a reply, communication starts. First they exchange communication parameters. If necessary the parameters stored in the system are transferred to the device.
Then the cyclic data exchange of process data and value status starts.

2.5

Device profiles

Introduction

Device profiles are defined for IO-Link to standardize access of the CPU user program to the devices.
Data structure, data contents and basic functionality are defined in the device profiles. A standard user view and an identical program access is thus achieved for a number of different devices that have the same device profile.

IO-Link profiles
The device profile "Smart Sensor Profile" is currently defined for IO-Link. This profile is especially suited for measurement sensors. In other words, measured values are transmitted in addition to switching points.
In addition, the switchgear (for example, contactors) support the LVSG (Low Voltage Switchgear) profile defined in IEC 61915-2.

IO-Link system

16

Function Manual, 12/2017, A5E31637677-AB

System overview 2.6 IODD and Port Configuration Tool - S7-PCT

2.6

IODD and Port Configuration Tool - S7-PCT

Device description IODD
An electronic device description, the IODD file (IO Device Description) is available for each device. The IODD provides a wealth of information for system integration:
 Communication properties
 Device parameters with value range and default value
 Identification, process and diagnostic data
 Device data
 Text description
 Image of the device
 Manufacturer logo
The structure of the IODD is identical for all devices from all manufacturers. The structure of the IODD is always represented in the identical manner by the IO-Link Configuration Tool of the master manufacturer (for Siemens, S7-PCT). This ensures that the handling is the same for all IO-Link devices regardless of the manufacturer.
Two different IODD versions are available for devices that support both V1.0 and V1.1 functionality.

IODDfinder

The IODDfinder is a cross-vendor, central IO-Link database. This database provides you with the latest IODDs of the device manufacturers and offers an information and download platform. The IODDfinder is available on the Internet (https://ioddfinder.io-link.com).

IO-Link configuration tool
Configuration tools are required to configure the entire IO-Link system. The IO-Link configuration tools of the master manufacturers are able to read IODDs. The main tasks of the IO-Link configuration tool include:  Assigning the devices to the ports of the master  Address assignment of ports within the address area of the master  Assigning parameters for the IO-Link device Diagnostics can also be carried out on the connected devices. This means the IO-Link configuration tool supports the transparent representation of the IO-Link system down to field level. Siemens provides S7-PCT for engineering of the IO-Link system.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

17

System overview 2.6 IODD and Port Configuration Tool - S7-PCT S7-PCT with IODD of a device
The following figure shows a section from S7-PCT with IODD of a device and the device information contained therein.
Figure 2-5 S7-PCT with IODD of a device and the device information contained therein

IO-Link system

18

Function Manual, 12/2017, A5E31637677-AB

System overview 2.7 Differences between IO-Link specifications V1.0 and V1.1

2.7

Differences between IO-Link specifications V1.0 and V1.1

Specification

The technical definition of the IO-Link system is described in a specification of the IO-Link consortium. The first step was the creation of specification version 1.0. The further development and added functions of the IO-Link system led to version 1.1.
The main enhancements of version 1.1 are:
 Data backup for device replacement during operation (Backup&Restore)
 Data transmission rate 230.4 kBaud is mandatory for the IO-Link master

Combination of IO-Link devices
Note the following when combining IO-Link devices:
 Only IO-Link devices that comply with V1.0 can be operated on the IO-Link master to V1.0.
 IO-Link devices that comply with V1.0 and V1.1 can be operated on the IO-Link master to V1.1.
 Data backup and a data transmission rate of 230.4 kBaud of the IO-Link master after V1.1 can only be used when these functions are also supported by the IO-Link device.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

19

Integration into the automation system

3

3.1

Configuration of the IO-Link system

Introduction

An IO-Link system is configured in several steps. In the first step, the master is integrated in the automation system and configured. In the second step, the IO-Link devices are configured.

Integration in the automation system
When using a SIMATIC S7 CPU, use the engineering tool STEP 7, V5.x or STEP 7 (TIA Portal) for configuration. The IO-Link system is represented by the IO-Link master in the configuration of the automation system or the fieldbus and integrated with STEP 7 or a GSD file. The IO-Link master itself can be a field bus node (e.g. ET 200eco PN IO-Link master) or a part of the modular IO system that is connected to the field bus (e.g. ET 200SP IO-Link master). In both cases, the number of ports, the address range and the module properties are described in STEP 7 or in the GSD file.

Example configuration in STEP 7 (TIA Portal)
The figure below shows a PROFINET configuration with integrated PROFINET devices ET 200SP and ET 200ecoPN with IO-Link masters.

Figure 3-1 Configuration of a PROFINET network with lower-level IO-Link masters

IO-Link system

20

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.1 Configuration of the IO-Link system
In the device view of the PROFINET device, you can:  Parameterize the ports  Specify the input and output address ranges of IO-Link for exchange of cyclic data
(process values).

Figure 3-2 Device view with setting of the IO-Link address range
In addition, you can set in the module properties of the IO-Link master how the IO-Link system is to be configured and parameterized. In doing so, you can select whether or not you also want to work with the S7-PCT configuration tool.
Note IO data length To ensure smooth operation, select an IO data length during configuration of the IO-Link master that corresponds at least to the IO data length of all connected IO-Link devices.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

21

Integration into the automation system 3.1 Configuration of the IO-Link system

3.1.1

Configuration with S7-PCT

Introduction

The following sections describe how you configure your IO-Link master with the S7-Port Configuration Tool (S7-PCT).
You need S7-PCT to display the system architecture completely and transparently all the way to the IO-Link device and to configure and parameterize the IO-Link system in detail.
With S7-PCT you can easily configure the IO-Link devices with the help of the IODD (IO-Link Device Description) supplied by the device manufacturer. In the S7-PCT online view you can display the diagnostics states and process values of the IO-Link devices in detail.

Configuration with S7-PCT
When you have selected the option "Configuration with S7-PCT", you are also making the settings of the IO-Link master ports with S7-PCT. These settings include:
 Specification of the address range for each port
 Behavior when replacing an IO-Link device
 Setting the identification data for checking the connected IO-Link device type
Start S7-PCT from HW Config in STEP 7. S7-PCT shows you all Siemens IO-Link masters you have configured in your automation system. After selecting an IO-Link master, you can assign its IO-Link ports to the desired IO-Link devices. To do so, select the corresponding IO-Link devices (or their IODDs) from the device catalog and drag them to the port of the IO-Link master.

IO-Link system

22

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.1 Configuration of the IO-Link system
Example configuration in S7-PCT
The following figure shows the configuration of an IO-Link master in S7-PCT. This S7-PCT view shows you a wide variety of information:



Higher-level field bus and overview or structure of the lower-level IO-Link master



Detailed information on the selected IO-Link master



Current configuration of the IO-Link ports of the selected IO-Link master



Detailed information on the selected IO-Link device



Device catalog with the IODDS of the IO-Link devices from different manufacturers

Figure 3-3 Configuration of an IO-Link master in S7-PCT

Address range of the ports
In addition to the assignment of the IO-Link devices to the IO-Link master ports, the default address ranges of the ports can be changed. The IO-Link master transfers the process values that it receives from the IO-Link device in these address ranges and makes the process values available to the higher-level automation system.
To set the address range, select the "Addresses" tab.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

23

Integration into the automation system 3.1 Configuration of the IO-Link system
Setting device parameters
Specific parameter settings are required to adjust the device to the respective application task. The possible parameters and set values are contained in the IODD of each device. You set the device parameters directly in S7-PCT. After selecting the corresponding device in the project tree (left tree), set the device parameters in the "Parameters" tab. The figure below shows you an example of the parameter assignment of an IO-Link device:

Figure 3-4 Setting the parameter values of the IO-Link device
Starting from the displayed defaults, you can edit and save the values in the defined value range.
The configuration of the IO-Link system and the parameters of the devices are available to the IO-Link system and the entire automation project. You have the option of saving and printing the configuration and the parameters.

IO-Link system

24

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.1 Configuration of the IO-Link system

3.1.2

Configuration without S7-PCT

Introduction

The following sections describe how you configure your IO-Link master without the S7-Port Configuration Tool (S7-PCT).
Your options for configuration of the IO-Link system without S7-PCT are limited. You can configure the port of the IO-Link master using STEP 7 or the GSD file, but you cannot set any parameters of the lower-level IO-Link devices.

Configuration without S7-PCT
You can activate the following parameters in STEP 7 or the GSD file during port configuration:
 Port Qualifier Information (PQI): provides information on the status, such as process data of the IO-Link port; is transmitted with the input data of the IO-Link device.
 Operating mode
­ IO-Link Autostart: The IO-Link master accepts each connected IO-Link device and starts it automatically.
­ IO-Link Manual: The IO-Link master only accepts IO-Link devices that match the Vendor ID and Device ID set below. The connected IO-Link device is not started automatically.
­ DI: The port is operating as a standard digital input.
­ DQ: The port is operating as a standard digital output.
­ Disabled: The port is disabled.
 Input Data Length: Process data length of the input data
 Output Data Length: Process data length of the output data
 Vendor ID ID number of the device manufacturer. You can find the Vendor ID on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109748852).

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

25

Integration into the automation system 3.1 Configuration of the IO-Link system
 Device ID ID number of the device. You can find the Device ID on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109748852).
 Inspection level for data backup: ­ Identical type (V1.0) without Backup&Restore ­ Type-compatible (V1.1) without Backup&Restore ­ Type-compatible (V1.1) with Backup&Restore ­ Type-compatible (V1.1) with Restore
The figure below shows you an example of the settings of a port configuration in STEP 7 or with GSD file:
Figure 3-5 Settings of the port configuration in STEP 7 or with GSD file

IO-Link system

26

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.1 Configuration of the IO-Link system

3.1.3

Overview of configuration options

Introduction

The tables below show the configuration options offered by the SIMATIC IO-Link master with or without S7-PCT and which FW versions of the IO-Link master support the individual configurations.

Comparison of the configuration options
The following table provides an overview of the available options for configuration with and without S7-PCT:

Requirement

Configuration with S7-PCT

Use of the IO-Link device description IODD
Setting the length of input and output data (per port)
Assignment of the Vendor ID and Device ID

Yes Automatic Automatic

Behavior during IO-Link device replacement
Adjustable IO-Link cycle time
Adjustable IO-Link device parameters
Display of the IO-Link process data structure
Monitoring of IO-Link process data
Display of IO-Link device diagnostics messages

Programmable Yes Yes Yes Yes Yes

Configuration without S7-PCT

IO-Link Autostart No

IO-Link Manual No

Manual

Manual

-

Manual (see FAQ

(https://support.industry.siem

ens.com/cs/ww/en/view/1097

48852))

-

Programmable

No

No

No

No

No

No

No

No

No

No

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

27

Integration into the automation system 3.1 Configuration of the IO-Link system

Configuration options of the SIMATIC IO-Link masters
The following table provides an overview of the configuration options supported by the individual IO-Link masters:

Device designation

Article number

As of FW version

ET 200SP
Communications module IO-Link Master CM 4xIO-Link

6ES7137-6BD00-0BA0

ET 200AL
Communications module CM 4xIOLink 4xM12

6ES7147-5JD00-0BA0

ET 200ecoPN
IO-Link master 4 IO-L + 8 DI + 4 DO DC 24V/1,3A 8×M12
IO-Link master 4 IO-L 4×M12

6ES7148-6JA00-0AB0 6ES7148-6JD00-0AB0

ET 200pro Electronic module EM 4 IO-LINK HF ET 200S Electronic module 4SI IO-Link S7-1200 SM1278 4xIO-LINK MASTER

6ES7147-4JD00-0AB0 6ES7138-4GA50-0AB0 6ES7278-4BD32-0XB0

V1.0.0 V2.2.0 V1.0.0 V1.1.0 V6.1.0
V1.0.0
V1.0.0
V1.0.0 V1.0.0

Configuration... ...with S7-PCT ...without S7-PCT

x

-

x

x

x

-

x

x

x

-

x

x

(Autostart only)

x

-

x

-

x

-

IO-Link system

28

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.2 Data access of the automation system and the HMI device

3.2

Data access of the automation system and the HMI device

Cyclic data exchange
To exchange cyclic process data between an IO-Link device and a CPU, the IO-Link data is assigned by the IO-Link master to the previously set address ranges. The user program of the CPU accesses and processes the process values by using these addresses. The cyclic data from the CPU to the IO-Link device (for example, IO-Link actuator) takes place in reverse order.
Acyclic data exchange
Acyclic data, such as device parameters or events, is exchanged by means of a fixed index and subindex area. The CPU accesses the data using system mechanisms (for example, for online functions such as reading the status). You can use the index and subindex area to access specific device information (for example, to re-assign parameters of the device or master during operation).
Function blocks "IO_LINK_MASTER" and "IO_LINK_DEVICE"
The programming of the CPU user program is another task in addition to the configuration and parameterization of the IO-Link system and its integration into the overall automation system.
For acyclic data exchange, you can use the function blocks "IO_LINK_MASTER" and "IO_LINK_DEVICE" for controllers of the S7-300, S7-400, S7-1200 and S7-1500 product lines.
The function block "IO_LINK_MASTER" reads all relevant functions and accesses to the IO-Link master, the function block "IO_LINK_DEVICE" reads all accesses to the IO-Link devices. You can use the function block "IO_LINK_MASTER" to restore all parameters saved in the IO-Link master. A typical application is the replacement of the IO-Link master.
Note Function blocks "IO_LINK_MASTER" and "IO_LINK_DEVICE"
The function blocks "IO_LINK_MASTER" and "IO_LINK_DEVICE" replace the functions of the previously available block "IOL_CALL".

Reference

The IO-Link block library with a description of the integration is available on the Internet (https://support.industry.siemens.com/cs/ww/en/view/82981502).
You can find an application example of using the block library with HMI devices on the Internet (https://support.industry.siemens.com/cs/ww/en/view/90529409).

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

29

Integration into the automation system 3.3 Changing and saving device parameters during plant operation

3.3

Changing and saving device parameters during plant operation

Changing device parameters
You can adjust the device parameters during operation. The changed parameters will become effective on the device in the process and are retentively saved in the device.
The parameters can be adapted during operation with:
 the engineering tool used (e.g. during plant commissioning)
 the CPU user program (program-controlled)
 HMI (through plant operator during batch change, process optimization)
 Locally through operation on the device (local operating unit on the device)
Saving device parameters (backup)
You can also save the parameters set in the device during commissioning or changed during operation of the plant in the IO-Link master. This data backup takes place depending on the set behavior of the IO-Link master ports. You can set the following data backup levels:
 None No data backup in the IO-Link master.
 Backup&Restore Every time the device parameters are changed, the changed data is automatically saved in the IO-Link master (see section "Triggering a backup").
 Restore No automatic data backup in the IO-Link master.

Figure 3-6 Overview of data backup level in S7-PCT

Note IO-Link Specification V1.0
IO-Link master and devices to IO-Link specification V1.0 do not offer this function; a data backup cannot be set (Data backup: None).
Note that the behavior of the IO-Link master and the IO-Link devices during device replacement depends directly on the set data backup level. You can find additional information on this dependency in the section Replacing a master or device during operation (Page 32).

IO-Link system

30

Function Manual, 12/2017, A5E31637677-AB

Integration into the automation system 3.3 Changing and saving device parameters during plant operation
Triggering a backup
Requirements
 You have set the correct data backup level.
 The IO-Link master and the IO-Link devices you are using support this function (IO-Link Specification V1.1).
Procedure
There are several ways to trigger a backup:
 In the engineering tool: After you have downloaded the engineering settings to the device, the IO-Link device immediately triggers a backup.
 In the CPU user program: IO-Link device parameters can be changed successively by the user program. A backup is only triggered by a system command. The system command must be triggered by the user program after the parameter changes. You can implement the parameter changes and the system command for triggering the backup with function blocks of the CPU.
 Using the HMI: You proceed as with triggering by the user program. The plant operator then triggers the necessary system command on the HMI device.
 Locally by operating the IO-Link device: After confirming the input on the IO-Link device, the IO-Link device initiates the backup.

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

31

Integration into the automation system 3.4 Replacing a master or device during operation

3.4

Replacing a master or device during operation

Replacing a device
Replacing a device during operation is a scenario that occurs again and again and has to be completed without longer plant downtimes. Replace a device quickly and avoid incorrect settings. Devices can also be replaced by operators without special knowledge and aids.
When you use the backup function of the master, the master automatically supplies the saved parameters to the new device during device replacement. You have the following setting options for device replacement:
 Backup&Restore You have set the master port to Backup&Restore. The new device behaves as the replaced device because the master has saved the last parameter change with the backup function.
 Restore You have set the master port to Restore. The new device applies the parameter settings that were saved in the master at the time of the last backup. If you have made parameter changes since the last backup, these are not saved in the master and are not available to the new device. The behavior of the new device can deviate from the behavior of the replaced device. This may be useful if you want to make short-term plant optimizations but do not want to save them in the plant backup.
Note Field calibration of sensors
When you are using sensors that must be adapted to specific rated conditions on site (field calibration), you must repeat this calibration after replacing the device. The backup does not include the data of the field calibration. After repeating the field calibration, the new device works just like the replaced device.

Replacing a master
Replacing a master during operation is a rather rare scenario. Here, too, longer plant downtimes are to be avoided. Replace a device quickly and avoid incorrect settings. Devices can also be replaced by operators without special knowledge and aids.
You can save the configuration and parameter data of the master and the devices connected to the master in the CPU and download this information to the new master after the replacement. When using an S7-CPU, you can use function blocks for this purpose. You can find additional information on function blocks in the section Data access of the automation system and the HMI device (Page 29).

IO-Link system

32

Function Manual, 12/2017, A5E31637677-AB

Index
B
Backup, 30 Backup&Restore, 30
C
Configuration, 22 without S7-PCT, 25
Connecting cables, 13 Connection system in IP65/67, 12
D
Data exchange Acyclic, 29 Cyclic, 29
Data types, 15 Device data, 15 Device parameters, 24
Changing, 30 Save, 30 Device profiles, 16
E
Events, 15
F
Function block IO_LINK_DEVICE, 29 IO_LINK_MASTER, 29
I
IODD Device description, 17
IO-Link Advantages, 9 Combination, 19 Components, 7 Configuration tool, 17 Definition, 8

Interface, 12 Protocol, 14 Response time, 14 Specification, 19
O
Operating modes, 14
P
Port Address range, 23
Port types in IP65/67, 13 Process data, 15
R
Restore, 30
S
S7-PCT Example configuration, 23
Startup of the IO system, 16
T
Transmission performance, 15 Transmission rate, 14
W
with S7-PCT, 22

IO-Link system

Function Manual, 12/2017, A5E31637677-AB

33

High-precision input/output with Time-based IO
Preface

Documentation guide

1

SIMATIC
High-precision input/output with Time-based IO

Time-based IO basics

2

Configuring and parameter assignment

3

Programming

4

Function Manual

11/2019
A5E33454822-AC

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E33454822-AC  11/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface

Purpose of the documentation This function manual will support you when you use "Time-based IO" technology with the S7-1500, ET 200MP, and ET 200SP systems. The documentation deals with the following topics:  Using "Time-based IO" technology  Functions of the "Time-based IO" technology  Hardware and software requirements for "Time-based IO"  Configuring the "Time-based IO" function with STEP 7 (TIA Portal)

Basic knowledge required The following knowledge is required in order to understand the Function manual:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Proficiency with STEP 7 (TIA Portal)  Knowledge about isochronous mode

Scope of the documentation
The following documentation is valid for all components of the S7-1500, ET 200MP and ET 200SP systems that support the "Time-based IO" technology.

Conventions

The following terms are used as synonyms in this documentation:  TIO module: This term is used as synonym for I/O modules of the type:
­ ET 200MP TM Timer DIDQ 16x24V ­ ET 200SP TM Timer DIDQ 10x24V  TIO_Time: This term is used as synonym for the shared time base (relative time) of the TIO modules.  Jitter: This is a general term that includes various time influences affecting accuracy. This means that: ­ for input data: Deviation of the measured time from the actual event. ­ for output data: Deviation of the actual switching time from the specified time.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

3

Preface
You should also pay particular attention to notes such as the one shown below:
Note The notes contain important information on the product, handling the product or on part of the documentation to which particular attention should be paid.
Additional support The range of technical documentation for the individual SIMATIC products and systems can be found on the Internet (http://www.siemens.com/simatic-tech-doku-portal). For more information about configuration of Time-based IO, see the following FAQs in the Siemens Industry Online Support:  Entry ID 109738186 (https://support.industry.siemens.com/cs/ww/en/view/109738186)  Entry ID 109736374 (https://support.industry.siemens.com/cs/ww/en/view/109736374) Additional information on isochronous mode is available in the Isochronous mode (http://support.automation.siemens.com/WW/view/en/49948856) and PROFINET with STEP 7 (https://support.industry.siemens.com/cs/ww/en/view/109755401) manuals.
Siemens Industry Online Support You can find current information on the following topics quickly and easily here:  Product support All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.  Application examples Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.  Services Information about Industry Services, Field Services, Technical Support, spare parts and training offers.  Forums For answers and solutions concerning automation technology.  mySupport Your personal working area in Industry Online Support for messages, support queries, and configurable documents. This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

High-precision input/output with Time-based IO

4

Function Manual, 11/2019, A5E33454822-AC

Preface

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com) and in the Information and Download Center (https://www.siemens.com/automation/infocenter).

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions only form one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (http://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (http://www.siemens.com/industrialsecurity).

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

5

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ................................................................................................................................. 7

1.1

Guide to documentation function manuals .............................................................................. 7

2 Time-based IO basics .............................................................................................................................. 13

2.1

Using Time-based IO ............................................................................................................. 13

2.2 2.2.1 2.2.2

Time behavior of Time-based IO ........................................................................................... 14 Time behavior of standard technology................................................................................... 14 Time-based IO properties ...................................................................................................... 15

2.3

System environment .............................................................................................................. 17

2.4

Hardware requirements ......................................................................................................... 18

2.5

Configuration software requirements ..................................................................................... 19

2.6

Technical implementation ...................................................................................................... 20

3 Configuring and parameter assignment ................................................................................................... 24

3.1

Requirements......................................................................................................................... 24

3.2

Settings for Time-based IO .................................................................................................... 25

4 Programming ........................................................................................................................................... 27

4.1

Overview of instructions ......................................................................................................... 27

4.2

Programming of Time-based IO............................................................................................. 28

4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5

Time-based IO ....................................................................................................................... 31 TIO_SYNC: Synchronizing TIO modules ............................................................................... 31 TIO_DI: Reading in edges at digital input and associated time stamps ................................ 36 TIO_DI_ONCE: Reading in edges once at the digital input and associated time stamps ..... 43 TIO_DQ: Output edges time-controlled at the digital output .................................................. 51 UDT TIO_SYNC_Data ........................................................................................................... 58

Index........................................................................................................................................................ 59

High-precision input/output with Time-based IO

6

Function Manual, 11/2019, A5E33454822-AC

Documentation guide

1

1.1

Guide to documentation function manuals

The documentation for the SIMATIC S7-1500 automation system, the CPUs 1513/1516pro-2 PN based on SIMATIC S7-1500, and the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems. Use the corresponding operating instructions for the CPUs 1513/1516pro-2 PN. The STEP 7 online help supports you in the configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

7

Documentation guide 1.1 Guide to documentation function manuals

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en/documentation).

High-precision input/output with Time-based IO

8

Function Manual, 11/2019, A5E33454822-AC

Documentation guide 1.1 Guide to documentation function manuals

"mySupport" - CAx data
In the CAx data area of "mySupport", you can access the latest product data for your CAx or CAe system.
You configure your own download package with a few clicks.
In doing so you can select:
 Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files
 Manuals, characteristics, operating manuals, certificates
 Product master data
You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration.
You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to perform commissioning and maintenance activities simultaneously on various SIMATIC S7 stations as a bulk operation independent of TIA Portal.
The SIMATIC Automation Tool provides a multitude of functions:
 Scanning of a PROFINET/Ethernet system network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and the programming device/PC time converted to UTC time to the module
 Program download to CPU

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

9

Documentation guide 1.1 Guide to documentation function manuals

 RUN/STOP mode switchover  CPU localization by means of LED flashing  Reading out of CPU error information  Reading of the CPU diagnostics buffer  Reset to factory settings  Firmware update of the CPU and connected modules You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

SIEMENS PRONETA (PROFINET network analysis) allows you to analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview automatically scans the PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and the optimal use of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

High-precision input/output with Time-based IO

10

Function Manual, 11/2019, A5E33454822-AC

Documentation guide 1.1 Guide to documentation function manuals
The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.
General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet. Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP  ET 200SP  ET 200AL

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

11

Documentation guide 1.1 Guide to documentation function manuals

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP  ET 200SP  ET 200AL

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet.

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet.

High-precision input/output with Time-based IO

12

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics

2

2.1

Using Time-based IO

Many processes in a plant require a relatively precise reproducibility as far as time is concerned. The reproducibility can be optimized to a limited extent by shorter CPU cycle times. The use of high-precision input/output with Time-based IO provides a more accurate reproducibility than the one that can be achieved by optimizing the CPU cycle time. An additional advantage of Time-based IO is the independence from the time scale of the application cycle.

Below is a selection of typical areas of application that can benefit from this technology.

Defined response times
An output signal that responds with a precise delay time that is independent of the application cycle can be output by adding a specified time to the time stamp of an edge at the digital input.

Length measurement
The length of a product passing by can be determined by the difference between two input time stamps and an associated travel speed.

Cam controller

The ongoing movement can be extrapolated from a synchronous position information (for example, from a counter module or an axis). Based on this result, the time of a switching position (cam position) is calculated and transferred to the TIO module (output). This way the switch event takes place at the required position.

Dosing

By specifying a switch-on and a switch-off edge to a time-controlled digital output, a valve can be opened for a specific time and the amount of liquid can be dosed accordingly.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

13

Time-based IO basics 2.2 Time behavior of Time-based IO

2.2

Time behavior of Time-based IO

2.2.1

Time behavior of standard technology
The time behavior of the inputs/outputs depends on the following factors for standard technology:  CPU program (program structure)  Bus cycle times (fieldbus, backplane bus)  Cycle time of the I/O modules  Internal cycle time of sensors/actuators A deterministic statement as to  when an input event (e.g., sensor signal) has taken place  when the output event has an effect on the input event (e.g., output switches) will become inaccurate due to the time factors listed above.

High-precision input/output with Time-based IO

14

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics 2.2 Time behavior of Time-based IO

2.2.2

Time-based IO properties

Time-controlled I/O functionality
Time-based IO stands for time-based processing of I/O signals. All input signals are referred to one time (TIO_Time). The input signals receive the time stamp t1. After signal processing, the output event can also be linked with the TIO_Time and output at the required time. Output takes place at time t2.
Here an example for Time-based IO:

Independence and focus of Time-based IO
The shared time basis (TIO_Time) of all components involved is the basis for Time-based IO. By using TIO_Time, the accuracy of the output with Time-based IO does not depend on:
 CPU program (program structure)
 Bus cycle times (fieldbus, backplane bus)
 Cycle time of the I/O modules
The focus of Time-based IO is not on the I/O response time but on the predictability (determinism) of I/O signals. With Time-based IO, it is possible to respond to an input signal with an output signal within a defined time. Keep in mind the system-dependent minimum response time when using Time-based IO.
Time-based IO stands for:
 I/O functionalities executed with high precision
 I/O processes with time stamp

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

15

Time-based IO basics 2.2 Time behavior of Time-based IO

Accuracy

Accuracy is crucial for the performance capability of Time-based IO.
The accuracy is a property of the TIO modules and indicates the deviation with which the required response is achieved. For Time-based IO, the accuracy and reproducibility of the response is in the millisecond range.

Response time

In addition to a very high accuracy, a minimum response time to an input event can result depending on the configuration. The response time is the time between the input event and the required output event. For the minimum response time: 3 × application cycle TAPP

High-precision input/output with Time-based IO

16

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics 2.3 System environment

2.3

System environment

Introduction

Possible system configurations with PROFINET for the use of Time-based IO are shown below.

Use with STEP 7 (TIA Portal)

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

17

Time-based IO basics 2.4 Hardware requirements

2.4

Hardware requirements

Introduction

The properties of the hardware components required for Time-based IO are listed below. You will also find specific modules as an example.

Requirements

Component CPU
ET 200 interface module
I/O module

Properties Isochronous mode/ PROFINET IO IRT: provides defines response time and high-precision plant behavior. Supports isochronous mode
TIO module

Examples · CPU 1511-1 PN
· ET 200SP with IM 155-6 PN HF (as of firmware V2.1)
· ET 200MP with IM 155-5 PN HF
· ET 200SP: TM Timer DIDQ 10x24V
· ET 200MP: TM Timer DIDQ 16x24V (as of firmware V1.0.1)

High-precision input/output with Time-based IO

18

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics 2.5 Configuration software requirements

2.5

Configuration software requirements

Introduction

Below is a list of the software versions which support the "Time-based IO" function.

Requirements

Configuration software
STEP 7 (TIA Portal) V16 and above

Requirements
PROFINET IO IRT or isochronous mode on the backplane bus

Supported hardware components
· S7-1500 automation system · ET 200SP and ET 200MP
distributed I/O systems · TM Timer DIDQ 16x24V · TM Timer DIDQ 10x24V

Additional information
STEP 7 (TIA Portal) online help

Additional information on isochronous mode is available in the Isochronous mode (http://support.automation.siemens.com/WW/view/en/49948856) and PROFINET with STEP 7 (https://support.industry.siemens.com/cs/ww/en/view/109755401) manuals.

TIO instructions The TIO instructions are specific function blocks for use of Time-based IO. The following TIO instructions (Page 27) are available:  TIO_SYNC  TIO_DI  TIO_DI_ONCE  TIO_DQ

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

19

Time-based IO basics 2.6 Technical implementation

2.6

Technical implementation

Introduction

The information below will help you better understand the core aspects of Time-based IO and find out which SIMATIC functions are used to implement the described aspects.

Synchronization of involved modules (shared time basis)
The Time-based IO technology uses isochronous mode for all involved stations.
Isochronous mode enables multiple TIO modules to be synchronized to a shared time basis. The basis of the shared time basis for the TIO modules is the relative time TIO_Time.
Additional information on isochronous mode is available in the Isochronous mode (http://support.automation.siemens.com/WW/view/en/49948856) and PROFINET with STEP 7 (https://support.industry.siemens.com/cs/ww/en/view/109755401) manuals.

TIO_Time

The TIO_Time is the central time basis to which all time stamps refer.
TIO_Time has the following properties:
 Shared time basis for all TIO modules which are synchronized with the TIO instruction TIO_SYNC.
 The time starts counting again with each CPU startup.
 The TIO_Time has data type LTime (e.g. LT#14s830ms652us315ns).
 All valid time stamps refer to TIO_Time:
­ Input time stamps of the TIO modules are converted to the TIO_Time in the TIO instructions TIO_DI and TIO_DI_ONCE.
­ In the TIO instruction TIO_DQ, output time stamps are converted to the output time stamp of the TIO modules.
 The value of TIO_TIME corresponds to the current time with respect to TIO instructions and is updated with the call of TIO_SYNC. If you want an output to relate not to a previous input time stamp but to the current time, you can use the value of TIO_TIME as basis for the output time stamp. Example: Output of an edge in 20 ms: TIO_DQ.TimeStampRE=TIO_SYNC_DATA.TIO_TIME+LT#20ms)

High-precision input/output with Time-based IO

20

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics 2.6 Technical implementation
TIO instructions in the isochronous OB The TIO instructions must be called in a "Synchronous Cycle" or "MC-PostServo" OB. You can find additional information in the chapter Programming (Page 27).
Note The TIO instructions also support geared down isochronous mode. With a clock reduction ratio, the application cycle is longer than the send clock.
Note The TIO instructions must be called in an "MC-PreServo" OB. If you use an OB of the "MC-PostServo" type, you can decide separately for each TIO model whether it is used with Motion Control technology objects or with TIO instructions. If you call the TIO instructions in an "MC-PostServo" type OB, you need to use the IPO model and also cannot use any reduction ratio. Calling TIO instructions in an OB of the type "MC-PostServo" with reduction ratio "MC-Servo" can result in incorrect calculation of time stamps.
Modes for updating the process image In isochronous mode, you can influence the order of the update of the process image partition of the input and output data. In doing so, you can select the following program execution models:  IPO model (application cycle factor = 1)  OIP model (application cycle factor >= 1) The abbreviations I, P, O stand for the following processes: I = Input, P= Processing, O = Output. Additional information on the application cycle factor is available in the PROFINET with STEP 7 (http://support.automation.siemens.com/WW/view/en/49948856) Manual.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

21

Time-based IO basics 2.6 Technical implementation
IPO model (application cycle factor = 1) The user program is started after the delay time. Start by updating the corresponding process image partition of the inputs in the user program by calling the SYNC_PI system instruction. Processing is started next (for example, calculation of the time stamps). The corresponding process image partition of the outputs is updated at the end of the user program in the CPU by SYNC_PO.

Properties of the IPO model:  Supports shorter response times  The application cycle must not be greater than the send clock.
This gives the application less time than with the OIP model.

High-precision input/output with Time-based IO

22

Function Manual, 11/2019, A5E33454822-AC

Time-based IO basics 2.6 Technical implementation
OIP model (application cycle factor >= 1) The user program is started after the delay time. In PIP_Mode 0, the TIO_SYNC instruction updates the process image. In the other modes, you start by updating the corresponding process image partition of the outputs in the user program by calling the SYNC_PO system instruction. As a result, the output data that was calculated in the previous network cycle will become active during the next network cycle (TO). Next the corresponding process image partition of the inputs is updated in the CPU by SYNC_PI. Processing starts after the data is transmitted (for example, calculation of the time stamps).

Properties of the OIP model:  The response time is longer than with the IPO model.  It is one application cycle longer than permitted by the send clock.
This gives the application more time than with the IPO model.
Influence of accuracy To estimate the accuracy you need the accuracy of  TIO module  Sensor/ actuator Consult the data sheets of the respective module regarding the accuracy value. You have to add the individual jitters of the TIO modules and the sensors/actuators. You can neglect any other influencing factors.
See also
Programming of Time-based IO (Page 28)

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

23

Configuring and parameter assignment

3

3.1

Requirements

Introduction

You need additional software components to use Time-based IO. You must also have created the standard configuration for your project.
Below you will learn more about the standard configuration for Time-based IO.

Requirements

In STEP 7 (TIA Portal):
 The project has been created.
 The CPU has been created and the parameters are assigned.
 Automation system and modules have been created and the parameters have been assigned.
 When using an ET 200 station: The connection has been created and the parameters are assigned via PROFINET.
 A "Synchronous Cycle" or "MC-PostServo" type OB has been created.

See also

System environment (Page 17) Configuration software requirements (Page 19)

High-precision input/output with Time-based IO

24

Function Manual, 11/2019, A5E33454822-AC

Configuring and parameter assignment 3.2 Settings for Time-based IO

3.2

Settings for Time-based IO

Below you will find an overview of which settings have to be made for which components of Time-based IO.

Table 3- 1 Overview of settings for Time-based IO

Component
When using an ET 200 station: PROFINET subnet

Where adjustable1
Properties of the PROFINET subnet > sync domain

Properties to be set
Create sync domain or edit properties of sync domain
Specify devices of the sync domain:
· Specify CPU as sync master.
· Specify ET 200 interface module as sync slave with RT class "IRT".

Additional information
· PROFINET function manual (http://support.automation .siemens.com/WW/view /en/49948856)
· Online help in the STEP 7 (TIA Portal) information system

S7-1500 station ET 200 station TIO module
Isochronous OB (Synchronous Cycle or MCPostServo)

Properties of the PROFINET interface > isochronous communication

Enable isochronous mode

· Function Manual Isochronous Mode (https://support.industry .siemens.com/cs/ww/en

Properties of the TIO module > Enable isochronous mode

/view/109755401)

I/O addresses
Properties of the TIO module > I/O addresses

Assign or create a "Synchronous Cycle" or "MCPostServo" type OB

· PROFINET function manual (http://support.automation .siemens.com/WW/view /en/49948856)

Properties of the TIO module > I/O addresses

Assignment of I/O addresses to the process image partition (e.g., PIP1)

·

Manual Technology Module TM Timer DIDQ 16x24V

(http://support.automation

Properties of the TIO module > Configure "Module use from the

Basic parameters

user program"

.siemens.com/WW/view /en/95153313)

Properties of the TIO module > For TM Timer DIDQ 10x24V:

Basic parameters/Channel

If required, assign parameters

· Manual Technology Module

parameters

for Configuration "Use

TM Timer DIDQ 10x24V

input/output individually"

(http://support.automation

Parameter assignment for use of Timer DI and Timer DQ

.siemens.com/WW/view /en/95153951)

Properties of the Isochronous Adjust application cycle, if

OB > Isochronous mode

necessary

· Online help in the STEP 7 (TIA Portal) information

system

1 Describes the topic area in the configuration software.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

25

Configuring and parameter assignment 3.2 Settings for Time-based IO

Setting for Time-based IO If you have no special response time requirements, the following setting is suitable as a starting point:  Send clock: 2 ms  Application cycle: 4 ms  Assignment to the process image partition: PIP1  PIP_Mode: 0 (OIP model)

FAQ

For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 109738186 (https://support.industry.siemens.com/cs/ww/en/view/109738186)  Entry ID 109736374 (https://support.industry.siemens.com/cs/ww/en/view/109736374)

See also

Programming of Time-based IO (Page 28)

High-precision input/output with Time-based IO

26

Function Manual, 11/2019, A5E33454822-AC

Programming

4

4.1

Overview of instructions

Introduction

Time-based IO is used with special instructions (TIO instructions). The TIO_SYNC TIO instruction is responsible for synchronizing all involved TIO modules and creates a unique time basis (TIO_Time) to which all actions are referenced. Additional instructions undertake the reading in of process input signals with associated time stamps and/or the time-controlled output of process output signals.
Note The TIO instructions are helpful for general time-based IO applications. For special applications, such as cam controllers, there are also separate technology objects, for example, TO_CamOutput.
Note The TIO instructions use the time stamp functions of the TIO modules. The other functions of the TIO modules can be used independently of the TIO instructions in applications.

TIO instructions
Instruction TIO_SYNC TIO_DI TIO_DI_ONCE
TIO_DQ

Short description
Synchronizes the TIO modules and provides the time basis for Timebased IO Detects the edges at the digital input (Timer DI) and supplies the associated time stamp
· Detects the edges at the digital input (timer DI) once and provides the associated time stamp
· Controls a timer DI channel which is configured as an edgetriggered enable for another channel.
Outputs time-controlled edges at the digital output (Timer DQ)

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

27

Programming 4.2 Programming of Time-based IO

4.2

Programming of Time-based IO

Introduction

To use Time-based IO, the TIO instructions must be called in an isochronous OB. The application can also run in another OB. This allows you to shorten the runtime of the isochronous OB.
You need the following TIO instructions according to the required task:

TIO module · TM Timer DIDQ 16x24V · TM Timer DIDQ 10x24V

TIO instructions · Per digital input, one TIO_DI or TIO_DI_ONCE for read-in · Per digital output, one TIO_DQ for output · One TIO_SYNC (for up to eight TIO modules)

This section below describes the programming of the CPU for Time-based IO.

Requirements

Hardware configuration in STEP 7 (TIA Portal):
 The TIO modules are assigned to an isochronous network.
 The TIO modules are assigned to a shared process image partition.
 The process image partition is assigned to an isochronous OB.
 The TIO modules are configured for use with instructions from the "Time-based IO" library.
Additional information on configuration of Time-based IO is available in the section Settings for Time-based IO (Page 25).

Procedure

1. Create a TIO instruction, TIO_SYNC, in the isochronous OB. 2. Connect all TIO modules to be synchronized at the TIO_SYNC TIO instruction using
parameters HWID_1 to HWID_8. The HWID can be found in the hardware configuration under "Properties > System constants".
Note Use of symbolic constants is generally preferred instead of absolute numerical values when interconnecting.
3. Set the data update mode at the TIO_SYNC instruction at the PIP_Mode input parameter. The description of the modes is available in the chapter Technical implementation (Page 20). The parameter assignment of the TIO_SYNC TIO instruction is complete.

High-precision input/output with Time-based IO

28

Function Manual, 11/2019, A5E33454822-AC

Programming 4.2 Programming of Time-based IO
4. For the following instructions, note the call sequence depending on the selected value for PIP_Mode:

5. Add the TIO instructions for read-in/output required for your application in the isochronous OB.
6. At the TIO instructions for read-in/output, interconnect in each case the input/output TIO_SYNC_Data with the same name output at the TIO_SYNC.
7. At the TIO instructions for read-in/output, assign parameters for the input parameters HWID (see "Properties > System constants" in hardware configuration) and Channel. The Time-based IO functionality is successfully programmed.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

29

Programming 4.2 Programming of Time-based IO

8. Interconnect the Time-based IO functionality with your application, such as evaluating the read-in time stamp in a step sequencer in another OB.
9. If TIO_SYNC does not automatically read out the send clock: Define the send clock manually, e.g. in OB100.
10.Compile and download the entire project to the CPU.

Result

You have completed programming the use of Time-based IO.

FAQ

For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 109738186 (https://support.industry.siemens.com/cs/ww/en/view/109738186)  Entry ID 109736374 (https://support.industry.siemens.com/cs/ww/en/view/109736374)

High-precision input/output with Time-based IO

30

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

4.3

Time-based IO

4.3.1

TIO_SYNC: Synchronizing TIO modules

Description

TIO_SYNC is the basis for all other TIO instructions. TIO_SYNC synchronizes TIO modules to a shared time basis TIO_Time.
You can synchronize up to 8 TIO modules with TIO_SYNC. All TIO modules must be assigned to the same process image partition (PIP). If you select "0" for the input parameter PIP_Mode, you assign the number of the process image partition at the PIP_PART input parameter.
Additional information on configuration of Time-based IO is available in the Configuration and parameter assignment section.

Startup characteristics
At the startup of the CPU, the TIO_SYNC instruction receives and checks the input parameters once and initializes the TIO_Time.
You have several options for handling the optional parameters SendClock, AppCycleFactor and ToTimes:
 SendClock, AppCycleFactor and ToTimes can be read in automatically each time the system is started. This results in a time delay during startup, but the values are always consistent.
 Automatically read in SendClock, AppCycleFactor and ToTimes at each startup and apply the read-in values as set values during commissioning. This results in fast subsequent startups, but is inconsistent after changes in the hardware configuration (repeat commissioning necessary).
 Manually define SendClock, AppCycleFactor and ToTimes before the first call of the instruction, for example, in OB100:

This results in a fast startup, but you need to manually update the values after changes to the hardware configuration.
You will find information about the parameters in the table below.
If startup takes place without errors, the instruction changes to normal operation. In the event of an error, the instruction does not change to normal operation and generates an error message.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

31

Programming 4.3 Time-based IO

Functional description
In normal operation, the instruction ensures synchronization of all TIO modules configured at the HWID input.
The calculated TIO_Time for the instructions of the TIO modules is provided at the TIO_SYNC_Data output.

Reaction to error
The Error output indicates if the instruction was processed correctly. In the event of an error, the cause of the error is displayed at the Status output.

Parameter

The table below shows the parameters of the TIO_SYNC instruction.

Parameter
HWID_1 ... HWID_8* PIP_Mode*
PIP_PART* TIO_SYNC_ Data Status Error

Declaration in library version

< V2.0 Input

 V2.0

Data type Default

S7-1500 HW_IO

65535

Input

PIP

0

Input Output Output Output

USInt

1

"TIO_ SYNC_ Data" DWord
Bool

16#0 False

Description
Hardware identifier for TIO module from hardware configuration Mode for the data update**: · 0: OIP model with internal update of the process image
by SYNC_PO and SYNC_PI. · 1: OIP model without internal update of the process
image · 2: IPO model without internal update of the process
image
Only relevant if PIP_Mode = 0 Number of the process image partition which is to be updated isochronously. Calculated system time for the TIO instructions of the TIO modules and internal data used for synchronization. See UDT TIO_SYNC_Data (Page 58). Status of the instruction: see description of Status parameter Error = True: An error has occurred. For detailed information see Status parameter. Error is reset as soon as the error is corrected.

High-precision input/output with Time-based IO

32

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Parameter

Declaration in library version

< V2.0  V2.0

OperatingState

Static

Data type Default

S7-1500

Int

0

SendClock
AppCycleFactor

Input

Static LTime Static UInt

LT#0ns 0

ToTimes

Static

LTime array [1...8]

LT#0ns

Description
Internal operating state of the instruction: · 0: Input parameters are checked · 1: Optional parameters are read out · 2: Read-out parameters are checked · 3: Normal operation (all parameters OK, TIO modules
synchronized) As soon as operating state 3 is reached, time stamps can be read in and edges can be output. If you want to repeat the synchronization of the TIO modules and the readout of the optional parameters, you can set the operating state to 0. Send clock of the sync domain. Apply the send clock from the PROFINET configuration. Application cycle factor: · Range of values: 0 <= AppCycleFactor <= 85 · 0: SendClock, AppCycleFactor and ToTimes are read
in automatically The application cycle TAPP is calculated as follows: TAPP = AppCycleFactor × SendClock To for each TIO module: Time for output of isochronous output data.

* Checked once at startup of the CPU
** The IPO model (PIP_Mode = 2) provides the shortest response times, but it also places the highest demands on system performance. Processing of all TIO instructions and other program sections must be completed within one send clock. Select the OIP model (PIP_Mode = 0) only if you use only one instance of the TIO_SYNC instruction per process image partition so that the SYNC_PI and SYNC_PO instructions are not called more than once in the isochronous OB. In addition, do not call SYNC_PI and SYNC_PO in the other program sections in the OIP model.

Note
The TIO instructions must be called in an "MC-PreServo" OB.
If you use an OB of the "MC-PostServo" type, you can decide separately for each TIO model whether it is used with Motion Control technology objects or with TIO instructions.
If you call TIO_SYNC in an "MC-PostServo" type OB, you need to use PIP_Mode = 2 and also cannot use any reduction ratio.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

33

Programming 4.3 Time-based IO

Status parameter Error codes or status information is output as double word at the Status output. The double word is divided as follows:

Error code (DW#16#...) z0yywwww
z0yy0000

Meaning
Error of a system function: · during startup (z = 1) · during normal operation (z = 0) System functions with subordinate use are coded in yy: See table with error codes. wwww specifies the RET_VAL of the system function. The error information is available in the help for the system function. An error that does not originate in a system function. This error receives a consecutive error number yy. The error can occur: · during startup (z = 1) · during normal operation (z = 0)

Table with error codes

Error code Meaning

Solution

(DW#16#...)

00000000 No error.

1001xxxx

An error has occurred with system function RD_SINFO. The low word xxxx displays the error information of the RET_VAL return value from RD_SINFO.

--
· Read the description of the RD_SINFO in the STEP 7 (TIA Portal) information system.
· Make sure that TIO_SYNC is called in a "Synchronous Cycle" or "MC-PostServo" OB.

10020000

The read cycle time of the isochronous OB is invalid (LT#0ms or negative).
The instruction can only be used without errors in an isochronous OB.

· Correct the value of the cycle time.
· Make sure that TIO_SYNC is called in a "Synchronous Cycle" or "MC-PostServo" OB.

10030000
10040000 10050000 0006xxxx*
0007xxxx*

The TIO_SYNC instruction is not called in an isochronous Make sure that TIO_SYNC is called in a OB. The instruction can only be used without errors in an "Synchronous Cycle" or "MC-PostServo" OB. isochronous OB.

The assigned value at the PIP_Mode input parameter is Correct the value at the PIP_Mode input

outside the valid range of 0 to 2.

parameter.

The configured send clock is outside the permitted range Correct the value of the send clock. of 0 < SendClock <= 4 ms.

An error has occurred during execution of the SYNC_PI system function. The low word xxxx displays the error information of the RET_VAL return value from SYNC_PI.

Read the description of the SYNC_PI in the STEP 7 (TIA Portal) information system.

An error has occurred during execution of the SYNC_PO Read the description of the SYNC_PO in the

system function. The low word xxxx displays the error

STEP 7 (TIA Portal) information system.

information of the return value RET_VAL from SYNC_PO.

High-precision input/output with Time-based IO

34

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...)

10080000

At least one of the hardware identifiers does not belong to a TIO module.

Check the values of input parameters HWID_1 to HWID_8. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration.

10090000 100A0000

HWID_1 is not a valid hardware identifier.
Possible cause: No module with this hardware identifier available.
HWID_2 is not a valid hardware identifier.
Possible cause: No module with this hardware identifier available.

Check the value of the respective input parameter. In each case, specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing.

100B0000 HWID_3 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

100C0000 HWID_4 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

100D0000 HWID_5 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

100E0000 HWID_6 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

100F0000 HWID_7 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

10100000 HWID_8 is not a valid hardware identifier.

Possible cause: No module with this hardware identifier available.

10110000 The value at input parameter PIP_PART is outside the valid range of 1 ... 31.

Correct the value at the PIP_PART input parameter.

10120000

The value "2" is configured at the input parameter PIP_Mode, while the value > 1 (reduction ratio) is configured at the static parameter AppCycleFactor.

Correct the value at the PIP_Mode input parameter. PIP_Mode with the value "2" does not allow a reduction ratio.

x0130000

MC-Servo (OB91) is not isochronous to the bus cycle time.

Correct the value of the cycle time of the MCServo to the value of the bus cycle time.

Note:

Calling TIO instructions in an OB of the type "MC-PostServo" with reduction ratio "MC-Servo" can result in incorrect calculation of time stamps.

x014xxxx

An error has occurred when reading the data record. The Read the description of the instruction RDREC

low word xxxx indicates the error information of the

in the STEP 7 (TIA Portal) information system.

instruction RDREC.

x0FF0000 General internal error.

--

* Available only when "0" is selected for the input parameter PIP_Mode.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

35

Programming 4.3 Time-based IO

4.3.2

TIO_DI: Reading in edges at digital input and associated time stamps

Description

TIO_DI continuously detects the edges at a digital input of a TIO module and returns the associated time stamps.

Startup characteristics
During startup of the CPU, the instruction TIO_DI applies the input parameters once and checks the following:
 Checking HWID
 Checking to see if the number of the digital input (Channel) is in the permitted range (depending on addressed module and channel configuration)
 Checking TIO_SYNC_Data.ERROR: Is an error present at TIO_SYNC?
 Checking TIO_SYNC_Data.TO_TIMES for plausibility (0 ms to 4 ms)
 Checking to see whether the OB is isochronous
If startup takes place without errors, the instruction changes to normal operation. In the event of an error, the instruction does not change to normal operation and generates an error message.

Functional description
In normal operation, the instruction detects the edges at a digital input and the associated time stamps of the last valid, defined edge pair from the preceding isochronous cycle. Use the input parameter EdgeSel to determine the edges for which time stamps are detected.
You connect the input TIO_SYNC_Data with the output of the same name of the TIO_SYNC instruction. This ensures a shared time basis.

High-precision input/output with Time-based IO

36

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO
The following figure shows an example of the behavior of LEC when a read-in job is started with EdgeSel = 3 (rising and falling edge, order depending on occurrence).

TAPP Application cycle Rn Specified times of a positive DI edge Fn Specified times of a falling DI edge
The module can count a maximum of seven edges per application cycle. LEC = 7 means therefore that seven or more edges have been counted.
Reaction to error The Error output indicates if the instruction was processed correctly. In the event of an error, the cause of the error is displayed at the Status output.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

37

Programming 4.3 Time-based IO

Parameter

The table below shows the parameters of the TIO_DI instruction.

Parameter
HWID* Channel* EdgeSel

Declaration in library version

Data type

< V2.0 Input

 V2.0 S7-1500 HW_IO

Default 0

Input

UInt

0

Input

UInt

3

DI

Output

TimeStampRE Output

Bool

False

LTime

LT#0ns

TimeStampFE Output

LTime

LT#0ns

EventCountRE Output

EventCountFE Output

LEC

Output

Status

Output

UInt

0

UInt

0

UInt

0

DWord

16#0

Description
Hardware identifier for TIO module from hardware configuration
Number (0 ... m) of the digital input of the connected TIO module
Specify the edges for which time stamps are detected: 0D: Invalid 1: Two rising edges 2: Two falling edges 3: Rising and falling edge (order depending on occurrence) 4: First rising, then falling edge 5: First falling, then rising edge 6 to 255: Invalid EdgeSel can be changed during normal operation.
Status of digital input. If an inversion of the digital input is configured, this parameter is inverted as well.
Time stamp: Time at which a positive edge was detected. Exception: EdgeSel = 2: Time at which a falling edge has been detected (if multiple falling edges have occurred during the application cycle).
Time stamp: Time at which a falling edge was detected. Exception: EdgeSel = 1: Time at which a rising edge has been detected (if multiple rising edges have occurred during the application cycle).
Counter: Is incremented with each new, valid time stamp at a positive edge. The counter is reset with each CPU startup.
Counter: Is incremented with each new, valid time stamp at a falling edge. The counter is reset with each CPU startup.
Counter: Number of edges for which no time stamp could be saved. The module can count a maximum of seven edges per application cycle. The counter is reset with each new application cycle.
Status of the instruction: see description of Status parameter

High-precision input/output with Time-based IO

38

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Parameter Error

Declaration in library version

Data type

< V2.0  V2.0 S7-1500

Output

Bool

Default False

TIO_SYNC _Data*

Input

InOut

"TIO_ SYNC_ Data"

* Checked once at startup of the CPU

Description
Error = True: An error has occurred. For detailed information see Status parameter. Error is reset as soon as the error is corrected. System time provided for the TIO instructions of the TIO modules by the TIO_SYNC instruction. See UDT TIO_SYNC_Data (Page 58). Connect this input parameter with the "TIO_SYNC_Data" output parameter of the TIO_SYNC instruction.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

39

Programming 4.3 Time-based IO

Status parameter Error codes or status information is output as double word at the Status output. The double word is divided as follows:

Error code (DW#16#...) z0yywwww
z0yy0000

Meaning
Error of a system function: · during startup (z = 1) · during normal operation (z = 0) System functions with subordinate use are coded in yy: See table with error codes. wwww specifies the RET_VAL of the system function. The error information is available in the help for the system function. An error that does not originate in a system function. This error receives a consecutive error number yy. The error can occur: · during startup (z = 1) · during normal operation (z = 0)

Table with error codes

Error code Meaning

Solution

(DW#16#...) 00000000 10010000
10020000 10030000
x0040000 1005xxxx

No error. The assigned number of the digital input at the Channel input parameter is outside the permitted range (depending on addressed module and channel configuration). The TIO_DI instruction is not called in an isochronous OB. The instruction can only be used without errors in an isochronous OB. An error occurred when reading the HWID input parameter.
The data in TIO_SYNC_Data is invalid/incorrect.
An error has occurred during execution of the RD_SINFO system function. The low word xxxx displays the error information of the RET_VAL return value from RD_SINFO.

-- Correct the value at the Channel input parameter.
Make sure that TIO_DI is called in a "Synchronous Cycle" or "MC-PostServo" OB.
Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing. Check the TIO_SYNC instruction and the interconnection of its TIO_SYNC_Data output.
· Read the description of the RD_SINFO in the STEP 7 (TIA Portal) information system.
· Make sure that TIO_DI is called in a "Synchronous Cycle" or "MC-PostServo" OB.

High-precision input/output with Time-based IO

40

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10060000

No TIO module found.
Possible cause: The module configured using the hardware identifier is not a TIO module.

· Make sure that the configured module is a TIO module.
· Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration.

10070000 00080000

An internal error occurred during the address calculation.
TIO module is not synchronized using the TIO_SYNC instruction. The error code can also indicate that:

Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing.
Check the instruction TIO_SYNC.

· A job was already present before the first run of the instruction.
· The assigned number at the Channel input parameter is not a digital input.

10090000
100A0000 100Bxxxx 000C0000 000D0000 000E0000

The read cycle time of the isochronous OB is outside the permitted range of 0 < TAPP <= 16 ms and is therefore invalid.
The instruction can only be used without errors in an isochronous OB.
The time TO of the TIO model stored in TIO_SYNC_Data is outside the permissible range of 0 < To <= 4 ms.
An error has occurred during execution of the RD_ADDR system function. The low word xxxx displays the error information of the RET_VAL return value from RD_ADDR.
The converted time stamp is invalid.
Possible cause: Communication error
The Quality Information of the digital input indicates that an error has occurred at the digital input.
The assigned number at the Channel input parameter is not a digital input configured as Timer DI.

· Correct the cycle time. · Make sure that TIO_DI is called in a
"Synchronous Cycle" or "MC-PostServo" OB.
Check the instruction TIO_SYNC. Read the description of the RD_ADDR in the STEP 7 (TIA Portal) information system.
Check the communication with the TIO module.
Check the supply voltage L+/1L+/2L+.
· Check the channel configuration (only for TM Timer DIDQ 16x24V).
· Check the operating mode of the digital input.

000F0000 The assigned value at the EdgeSel input parameter is outside the valid range of 1 to 5.

Correct the value at the EdgeSel input parameter.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

41

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10100000

The send clock is outside the permitted range of 0 < SendClock <= 4 ms and is therefore invalid.
The error code can also indicate that

Correct the send clock.

· The data in TIO_SYNC_Data is invalid or does not exist.

· The TIO_DI instruction is not called in an isochronous OB.

x0130000
10140000 x0FF0000

MC-Servo (OB91) is not isochronous to the bus cycle time.
The configured value at the HWID input parameter is not present in the structure at the TIO_SYNC_Data parameter. The HWID and TIO_SYNC_Data parameters are not consistent. General internal error.

Correct the value of the cycle time of the MCServo to the value of the bus cycle time. Note: Calling TIO instructions in an OB of the type "MC-PostServo" with reduction ratio "MC-Servo" can result in incorrect calculation of time stamps. Correct the value at the HWID input parameter or the structure at the TIO_SYNC_Data parameter.
--

High-precision input/output with Time-based IO

42

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

4.3.3

TIO_DI_ONCE: Reading in edges once at the digital input and associated time stamps

Description

TIO_DI_ONCE detects the edges at a digital input of a TIO module once and returns the associated time stamps. Alternatively, you can use this instruction to control a timer DI channel that is configured as an edge-triggered enable for another channel.

Startup characteristics
During startup of the CPU, the instruction TIO_DI_ONCE applies the input parameters once and checks the following:
 Checking HWID
 Checking to see if the number of the digital input (Channel) is in the permitted range (depending on addressed module and channel configuration)
 Checking TIO_SYNC_Data.ERROR: Is an error present at TIO_SYNC?
 Checking TIO_SYNC_Data.TO_TIMES for plausibility (0 ms to 4 ms)
 Checking to see whether the OB is isochronous
If startup takes place without errors, the instruction changes to normal operation. In the event of an error, the instruction does not change to normal operation and generates an error message.

Functional description: Time stamp detection
In normal operation, the instruction detects the edges at a digital input and the associated time stamps of the first valid, defined edge pair after the start of a read-in job. Use the input parameter EdgeSel to determine the edges for which time stamps are detected. To detect a new edge pair, a new positive edge is required at the REQ input parameter of the instruction.
You connect the input TIO_SYNC_Data with the output of the same name of the TIO_SYNC instruction. This ensures a shared time basis.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

43

Programming 4.3 Time-based IO
The figure below shows an example for the reaction of the bits DONE and BUSY at the start of a read-in job (EdgeSel = 4).

R Read-in time of the positive DI edge F Read-in time of the falling DI edge
Functional description: edge-triggered enable You can use this instruction to control a timer DI channel that is configured as an edgetriggered enable for another channel. Example: For a TIO module TM Timer DIDQ 10x24V, the following is configured in the hardware configuration for DQ0/DI0:  Configuration DQ/DI group = timer DQ with enable  HW enable by DI0 = edge-triggered  DQ0 is not inverted In this case, use the instruction TIO_DQ for DQ0 and the instruction TIO_DI_ONCE for DI0. You can control the enable by means of the input parameters REQ and EdgeSel of TIO_DI_ONCE. As soon as TIO_DI_ONCE has recorded a time stamp according to the value of EdgeSel, the enable is considered granted. You take the enable back by resetting REQ.

High-precision input/output with Time-based IO

44

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO
The following figure shows an example with EdgeSel = 4n (first positive, then falling edge). In this case the first valid positive edge at DI0 grants the enable for DQ0 after the start of a read-in job.

1 Start of enable at positive edge of enable input 2 End of enable when falling edge at REQ
If required, you can use the time stamps detected by the instruction for your application.
Reaction to error The Error output indicates if the instruction was processed correctly. In the event of an error, the cause of the error is displayed at the Status output.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

45

Programming 4.3 Time-based IO

Parameter

The table below shows the parameters of the TIO_DI_ONCE instruction.

Parameter
REQ HWID* Channel*

Declaration
Input Input Input

Data type S7-1500 Bool HW_IO UInt

EdgeSel

Input

UInt

Default
False 0 0
3

DONE BUSY Error

Output

Bool

Output

Bool

Output

Bool

False False False

Status DI

Output Output

DWord Bool

16#0 False

TimeStampRE

Output

LTime

LT#0ns

Description
Starts the job at a positive edge. Hardware identifier for TIO module from hardware configuration Number (0 ... m) of the digital input of the connected TIO module Specify the edges for which time stamps are detected: 0D: Invalid 1: Two rising edges 2: Two falling edges 3: Rising and falling edge (order depending on occurrence) 4: First rising, then falling edge 5: First falling, then rising edge 6 to 255: Invalid If edge-triggered enable is used, the following also applies: 1: Enable at first positive DI edge 2: Enable at first falling DI edge 3: Enable at first DI edge 4: Enable at first positive DI edge 5: Enable at first falling DI edge EdgeSel can be changed during normal operation. DONE = True: The job was completed without errors. BUSY = True: The job has not yet been completed. Error = True: An error has occurred. For detailed information see Status parameter. Error is reset as soon as the error is corrected. Status of the instruction: see description of Status parameter Status of digital input. If an inversion of the digital input is configured, this parameter is inverted as well. Time stamp: EdgeSel = 1: The last but one read-in time at which a positive edge was detected (if multiple positive edges have occurred). EdgeSel = 2: The last read-in time at which a falling edge was detected (if multiple falling edges have occurred). EdgeSel = 3; 4; 5: The last read-in time at which a falling edge was detected.

High-precision input/output with Time-based IO

46

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Parameter
TimeStampFE

Declaration Output

Data type S7-1500 LTime

Default LT#0ns

LEC

Output

UInt

0

TIO_SYNC InOut _Data*

"TIO_SYNC _Data"

Initialized Static

Bool

* Checked once at startup of the CPU

False

Description
Time stamp: EdgeSel = 1: The last read-in time at which a positive edge was detected (if multiple positive edges have occurred). EdgeSel = 2: The last but one read-in time at which a falling edge was detected (if multiple falling edges have occurred). EdgeSel = 3; 4; 5: The last read-in time at which a positive edge was detected. Counter: Number of edges for which no time stamp could be saved. The module can count a maximum of seven edges during REQ. The counter is reset with the falling edge at REQ. System time provided for the TIO instructions of the TIO modules by the TIO_SYNC instruction. See UDT TIO_SYNC_Data (Page 58). Connect this input parameter with the "TIO_SYNC_Data" output parameter of the TIO_SYNC instruction. Instruction is initialized and ready

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

47

Programming 4.3 Time-based IO

Status parameter Error codes or status information is output as double word at the Status output. The double word is divided as follows:

Error code (DW#16#...) z0yywwww
z0yy0000

Meaning
Error of a system function: · during startup (z = 1) · during normal operation (z = 0) System functions with subordinate use are coded in yy: See table with error codes. wwww specifies the RET_VAL of the system function. The error information is available in the help for the system function. An error that does not originate in a system function. This error receives a consecutive error number yy. The error can occur: · during startup (z = 1) · during normal operation (z = 0)

Table with error codes

Error code Meaning

Solution

(DW#16#...) 00000000 10010000
10020000 10030000
x0040000 1005xxxx

No error. The assigned number of the digital input at the Channel input parameter is outside the permitted range (depending on addressed module and channel configuration). The TIO_DI_ONCE instruction is not called in an isochronous OB. The instruction can only be used without errors in an isochronous OB. An error occurred when reading the HWID input parameter.
The data in TIO_SYNC_Data is invalid/incorrect.
An error has occurred during execution of the RD_SINFO system function. The low word xxxx displays the error information of the RET_VAL return value from RD_SINFO.

-- Correct the value at the Channel input parameter.
Make sure that TIO_DI_ONCE is called in a "Synchronous Cycle" or "MC-PostServo" OB.
Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing. Check the TIO_SYNC instruction and the interconnection of its TIO_SYNC_Data output.
· Read the description of the RD_SINFO in the STEP 7 (TIA Portal) information system.
· Make sure that TIO_DI_ONCE is called in a "Synchronous Cycle" or "MC-PostServo" OB.

High-precision input/output with Time-based IO

48

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10060000

No TIO module found.
Possible cause: The module configured using the hardware identifier is not a TIO module.

· Make sure that the configured module is a TIO module.
· Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration.

10070000 00080000

An internal error occurred during the address calculation.
TIO module is not synchronized using the TIO_SYNC instruction. The error code can also indicate that:

Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing.
Check the instruction TIO_SYNC.

· A job was already present before the first run of the instruction.
· The assigned number at the Channel input parameter is not a digital input.

10090000
100A0000 100Bxxxx 000C0000 000D0000 000E0000

The read cycle time of the isochronous OB is outside the permitted range of 0 < TAPP <= 16 ms and is therefore invalid.
The instruction can only be used without errors in an isochronous OB.
The time TO of the TIO model stored in TIO_SYNC_Data is outside the permissible range of 0 < To <= 4 ms.
An error has occurred during execution of the RD_ADDR system function. The low word xxxx displays the error information of the RET_VAL return value from RD_ADDR.
The converted time stamp is invalid.
Possible cause: Communication error
The Quality Information of the digital input indicates that an error has occurred at the digital input.
The assigned number at the Channel input parameter is not a digital input configured as Timer DI.

· Correct the cycle time. · Make sure that TIO_DI_ONCE is called in a
"Synchronous Cycle" or "MC-PostServo" OB.
Check the instruction TIO_SYNC. Read the description of the RD_ADDR in the STEP 7 (TIA Portal) information system.
Check the communication with the TIO module.
Check the supply voltage L+/1L+/2L+.
· Check the channel configuration (only for TM Timer DIDQ 16x24V).
· Check the operating mode of the digital input.

000F0000 The assigned value at the EdgeSel input parameter is outside the valid range of 1 to 5.

Correct the value at the EdgeSel input parameter.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

49

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10100000

The send clock is outside the permitted range of 0 < SendClock <= 4 ms and is therefore invalid.
The error code can also indicate that

Correct the send clock.

· The data in TIO_SYNC_Data is invalid or does not exist.

· The TIO_DI instruction is not called in an isochronous OB.

x0130000
10140000 x0FF0000

MC-Servo (OB91) is not isochronous to the bus cycle time.
The configured value at the HWID input parameter is not present in the structure at the TIO_SYNC_Data parameter. The HWID and TIO_SYNC_Data parameters are not consistent. General internal error.

Correct the value of the cycle time of the MCServo to the value of the bus cycle time. Note: Calling TIO instructions in an OB of the type "MC-PostServo" with reduction ratio "MC-Servo" can result in incorrect calculation of time stamps. Correct the value at the HWID input parameter or the structure at the TIO_SYNC_Data parameter.
--

High-precision input/output with Time-based IO

50

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

4.3.4

TIO_DQ: Output edges time-controlled at the digital output

Description

TIO_DQ enables a digital output of a TIO module to be switched at specified times.

Startup characteristics
During startup of the CPU, the instruction TIO_DQ applies the input parameters once and checks the following:
 Checking HWID
 Checking to see if the number of the digital input (Channel) is in the permitted range (depending on addressed module and channel configuration)
 Checking TIO_SYNC_Data.Error: Is an error present at TIO_SYNC?
 Checking TIO_SYNC_Data.TO_TIMES for plausibility (0 ms to 4 ms)
 Checking to see whether the OB is isochronous
If startup takes place without errors, the instruction changes to normal operation. The input parameters REQ, Out_Mode, TimeStampRE and TimeStampFE can be changed during normal operation. In the event of an error, the instruction does not change to normal operation and generates an error message.

Functional description
The instruction outputs edges time-controlled at a digital output during normal operation.
 At the time defined at the TimeStampRE input parameter, a positive edge is output at the digital output.
 At the time defined at the TimeStampFE input parameter, a falling edge is output at the digital output.
Depending on the program execution model, a time stamp must exceed the following value:

Program execution model
IPO model OIP model

TimeStampRE> ... TimeStampFE > ... TIO_Time + TAPP + TO TIO_Time + TAPP + SendClock + TO

Use the input parameter Out_Mode to determine if only one edge or both edges are output.

You connect the input TIO_SYNC_Data with the output of the same name of the TIO_SYNC instruction. This ensures a shared time basis.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

51

Programming 4.3 Time-based IO
You start an output job with a positive edge at the REQ parameter. You can only start a new job when there is no error pending and no job is active. When the output job is started, the digital output is switched at the times defined with TimeStampRE and TimeStampFE.
 If the digital output is already set at time TimeStampRE, the output job is not transferred to the module for the positive edge.
 If the digital output is not set at time TimeStampFE, the output job is not transferred to the module for the negative edge.
This means the digital output is not switched in both cases.
The job is done when the last application cycle is executed before the second output time is reached (DONE). Status and Error are constantly being updated during the job runtime. You can cancel an active output job by changing TimeStampRE or TimeStampFE to an invalid time stamp, e.g. LT#5s.
The figure below shows an example for the reaction of the bits DONE and BUSY at the start of an output job under the following conditions:
 Out_Mode = 2 (both edges are output)
 The two time stamps are not changed between the start of the job and the output.

TAPP R1, R2 F1, F2

Application cycle Specified times of a positive DQ edge Specified times of a falling DQ edge

High-precision input/output with Time-based IO

52

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO
Note Once the job has been started with a positive edge at REQ, you can change the output times with a new input of TimeStampRE and TimeStampFE without having to restart the job. Constraint: If a changed time stamp is less than two application cycles before the output time (TimeStampRE - TIO_Time < 2*TAPP or TimeStampFE - TIO_Time < 2*TAPP), it is not taken into consideration. In this case, the last valid time stamp is used because it was already transferred to the TIO module.
Note If you specify the same value for TimeStampRE and TimeStampFE, the instruction ignores the job and does not output an edge.
If you specify the value 0 for TimeStampRE or TimeStampFE, you can output the respective edge directly at the digital output with the input parameter Out_Mode = 3. This gives you the option to implement a direct control from the TIO module without time stamp in manual mode. You can use the direct control to interrupt an ongoing job.
Reaction to error The Error output indicates if the instruction was processed correctly. In the event of an error, the cause of the error is displayed at the Status output.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

53

Programming 4.3 Time-based IO

Parameter

The table below shows the parameters of the TIO_DQ instruction.

Parameter
REQ HWID* Channel* Out_Mode

Declaration in Data type library version

< V2.0 Input Input

 V2.0

S7-1500 Bool HW_IO

Input

UInt

Input

UInt

TimeStampRE TimeStampFE StatusDQ

Input Input Output

LTime LTime Bool

DONE
BUSY Error

Output
Output Output

Bool
Bool Bool

Status
TIO_SYNC _Data*

Output

DWord

Input

InOut

"TIO_ SYNC_ Data"

* Checked once at startup of the CPU

Default Description

False 0 0 2
LT#0ns LT#0ns False
False False False
16#0

Starts the job at a positive edge.
Hardware identifier for TIO module from hardware configuration
Number (0 ... m) of the digital output of the connected TIO module
Specify the output mode for the edges at the digital output:
0: Only rising edge is output (TimeStampRE).
1: Only falling edge is output (TimeStampFE).
2: Both edges are output (TimeStampRE and TimeStampFE).
3: Each edge is output directly if TimeStampRE = 0 or TimeStampFE = 0 If both time stamps have the value "0" or if no time stamp has the value "0", no edge is output.
4 to 255: Invalid
Time stamp: Time when a positive edge is to be output.
Time stamp: Time when a falling edge is to be output.
Actual status of the digital output.
If an inversion of the digital output is configured, StatusDQ is inverted as well.
StatusDQ shows the internal state of the digital output independent of the effect of any configured HW enable.
DONE = True is displayed for one cycle: The job was completed without errors.
BUSY = True: The job has not yet been completed.
Error = True: An error has occurred. In this case, BUSY and DONE are set to False. For detailed information see Status parameter.
Error is reset as soon as the error is corrected.
Status of the instruction: see description of Status parameter
System time provided for the TIO instructions of the TIO modules by the TIO_SYNC instruction. See UDT TIO_SYNC_Data (Page 58).
Connect this parameter with the TIO_SYNC_Data output parameter of the TIO_SYNC instruction.

High-precision input/output with Time-based IO

54

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Status parameter Error codes or status information is output as double word at the Status output. The double word is divided as follows:

Error code (DW#16#...) z0yywwww
z0yy0000

Meaning
Error of a system function: · during startup (z = 1) · during normal operation (z = 0) System functions with subordinate use are coded in yy: See table with error codes. wwww specifies the RET_VAL of the system function. The error information is available in the help for the system function. An error that does not originate in a system function. This error receives a consecutive error number yy. The error can occur: · during startup (z = 1) · during normal operation (z = 0)

Table with error codes

Error code Meaning

Solution

(DW#16#...) 00000000 10010000 10020000 10030000
x0040000 1005xxxx

No error. The assigned number of the digital output at the Channel input parameter is outside the permitted range (depending on addressed module and channel configuration). The TIO_DQ instruction is not called in an isochronous OB. The instruction can only be used without errors in an isochronous OB. An error occurred when reading the HWID input parameter.
The data in TIO_SYNC_Data is invalid/incorrect.
An error has occurred during execution of the RD_SINFO system function. The low word xxxx displays the error information of the RET_VAL return value from RD_SINFO.

--
Correct the value at the Channel input parameter.
Make sure that TIO_DQ is called in an OB of the type "Synchronous Cycle" or "MCPostServo".
Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing.
Check the TIO_SYNC instruction and the interconnection of its TIO_SYNC_Data output.
· Read the description of the RD_SINFO in the STEP 7 (TIA Portal) information system.
· Make sure that TIO_DQ is called in a "Synchronous Cycle" or "MC-PostServo" OB.

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

55

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10060000

No TIO module found.

·

Possible cause: The module configured using the hardware identifier is not · a TIO module.

Make sure that the configured module is a TIO module.
Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration.

10070000 x0080000

An internal error occurred during the address calculation.
TIO module is not synchronized using the TIO_SYNC instruction. The error code can also indicate that:

Check the value at the HWID input parameter. Specify the hardware identifier of the TIO module from its module properties in the hardware configuration. An internal system constant of data type Hw_SubModule is available for the symbolic addressing.
Check the instruction TIO_SYNC.

· A job was already present before the first run of the instruction.
· The assigned number at the Channel input parameter is not a digital output.

10090000
100A0000 100Bxxxx 000C0000 000D0000

The read cycle time of the isochronous OB is LT#0ms or has as negative value and is therefore invalid. Correct the value.
The instruction can only be used without errors in an isochronous OB.
The time TO of the TIO model stored in TIO_SYNC_Data is outside the permissible range of 0 < To <= 4 ms.
An error has occurred during execution of the RD_ADDR system function. The low word xxxx displays the error information of the RET_VAL return value from RD_ADDR.
One or both time stamps at the TimeStampRE and TimeStampFE input parameters are invalid. The error is only signaled for the duration of one application cycle.
The Quality Information of the digital output indicates that an error has occurred at the digital output.

· Correct the cycle time. · Make sure that TIO_DQ is called in a
"Synchronous Cycle" or "MC-PostServo" OB.
Check the instruction TIO_SYNC.
Read the description of the RD_ADDR in the STEP 7 (TIA Portal) information system.
Check the TimeStampRE and TimeStampFE input parameters.
· Check the parameter assignment of the digital output.
· Check the supply voltage L+/1L+/2L+. · Check the wiring of the digital output for
short-circuit, overload, and overtemperature.

000E0000

The number configured at the Channel input parameter is · Check the channel configuration (only for

not a digital output configured as Timer DQ.

TM Timer DIDQ 16x24V).

· Check the operating mode of the digital output.

100F0000

The read cycle time of the OB of type "Synchronous Cycle" is too long: TAPP > 16 ms.

Configure a smaller multiple of the send clock as the cycle time.

High-precision input/output with Time-based IO

56

Function Manual, 11/2019, A5E33454822-AC

Programming 4.3 Time-based IO

Error code Meaning

Solution

(DW#16#...) 10100000

The send clock is outside the permitted range of 0 < SEND_CLOCK <= 4 ms and is therefore invalid.
The error code can also indicate that

Correct the send clock.

· The data in TIO_SYNC_Data is invalid or does not exist.

· The TIO_DQ instruction is not called in an isochronous OB.

00110000 x0130000
10140000 x0FF0000

The assigned value at the Out_Mode input parameter is outside the valid range of 0 to 3. MC-Servo (OB91) is not isochronous to the bus cycle time.
The configured value at the HWID input parameter is not present in the structure at the TIO_SYNC_Data parameter. The HWID and TIO_SYNC_Data parameters are not consistent. General internal error.

Correct the value at the Out_Mode input parameter.
Correct the value of the cycle time of the MCServo to the value of the bus cycle time. Note: Calling TIO instructions in an OB of the type "MC-PostServo" with reduction ratio "MCServo" can result in incorrect calculation of time stamps.
Correct the value at the HWID input parameter or the structure at the TIO_SYNC_Data parameter.
--

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

57

Programming 4.3 Time-based IO

4.3.5

UDT TIO_SYNC_Data

Description

The data type UDT TIO_SYNC_Data contains the central structure and data for synchronization of the modules and passing of the TIO_Time.

Parameter

Parameter
TIO_TIME PIP_MODE

Data type S7-1500 LTime USInt

APP_CYC

LTime

SEND_CLOCK LTime

SYNC_MODULES HW_IO array [1...8]

TO_TIMES TIO_TIME_BASE TBASE ERROR

UDInt-Array [1...8] LTime LTime Bool

Description
Shared time basis (relative time) of the TIO modules Mode for data update (is forwarded by the PIP_Mode input parameter of the TIO_SYNC instruction) Application cycle of the "MC-PostServo" or "Synchronous Cycle", "MC-PreServo" OB Send clock of sync domain (is forwarded by the SendClock parameter of the TIO_SYNC instruction) Hardware identifiers of the TIO modules from hardware configuration TO for each TIO module: Internal use

High-precision input/output with Time-based IO

58

Function Manual, 11/2019, A5E33454822-AC

Index

A

H

Accuracy, (Jitter), 16 Calculating TIO_Time, 23
Application cycle, 22, 28, 58 Application examples Time-based IO, 13

Hardware requirements, 18
I

C
Call sequence, 28 Cam controller, (Application examples Time-based IO) Clock reduction ratio, 21 Configuration, (System environment)
Standard configuration, 24 Configuration software, 19 Conventions
Jitter, 3 TIO module, 3 TIO_Time, 3 CPU cycle time, 13 Cycle time, 14

IPO model Understanding IPO, 22
Isochronous communication, 20
J
Jitter, 3, 23
L
Length measurement, (Application examples Timebased IO)
M

D
Data update, (PIP_Mode) Default setting, 26 Delay time, 22 Determinism, (Predictability) Digital input
TIO_DI, 36 TIO_DI_ONCE, 43 Digital output TIO_DQ, 51 Dosing, (Application examples Time-based IO)

MC-PostServo, 21 MC-PreServo, 21 Modes, (PIP_Mode)
Selecting the model of program editing, 21
O
OIP model Understanding OIP, 23
P

E
Error codes TIO_DI, 40, 48 TIO_DQ, 55 TIO_SYNC, 34
ET 200, 18, 25 TM Timer DIDQ, 18

PIP_Mode, 58 Setting PIP_Mode, 28
Predictability, 15 Process image partition
PIP, 28 PIP1, 25 PROFINET, 19, 24, 25 Using PROFINET IRT, 20 Programming, 28

High-precision input/output with Time-based IO

Function Manual, 11/2019, A5E33454822-AC

59

Index

R
Reproducibility, 13 Response time, 16
Defined response times, (Application examples Time-based IO) Minimum response time, 16

U
UDT "TIO_SYNC_Data", 58 User program, (Synchronous Cycle)

S
Scope, 3 Send clock, 58 Service & Support, 4 SIMATIC functions, 20 STEP 7, 19 SYNC_PI, 22 SYNC_PO, 22 Synchronous Cycle, 28
Understanding TIO instructions, 21 System environment, 17

T
TAPP, (Application cycle) Time behavior
Standard technology, 14 Time-based IO, 15 Time-based IO Setting Time-based IO, 25 Understanding SIMATIC functions, 20 Using the default setting, 26 TIO instructions, 19 Listing TIO instructions, 27 TM Timer DIDQ, 19 TIO module, 3, 19, 25 TIO_DI, 36 TIO_DI_ONCE, 43 TIO_DQ, 51 TIO_SYNC, 31 Synchronized TIO modules, 21 TIO_Time, 3, 15, 27 TIO_DI, 36 TIO_DI_ONCE, 43 TIO_DQ, 51 TIO_SYNC, 31 UDT "TIO_SYNC_Data", 58 Understanding TIO_Time, 20

High-precision input/output with Time-based IO

60

Function Manual, 11/2019, A5E33454822-AC

Designing interference-free controllers _Pr_ef_ac_e_______________

_Do_c_um_e_nt_at_io_n _gu_id_e_______1_

_Belae_sc_itcro_inm_foa_rgmn_ae_ttiioc_nc_oomn_p_at_ib_ilit_y ___2_

SIMATIC

_Irno_tuet_rinfeg_re_n_ce_-fr_ee_c_a_ble_______3_

S7-1500, ET 200MP, ET 200SP, ET 200AL

_Ca_b_le_sh_ie_ld_in_g__________4_

Designing interference-free controllers
_Eq_u_ip_ote_n_tia_l _bo_nd_in_g_______5_

Function Manual

_Sinpt_eer_cfeia_rle_mnc_eea_-sfru_eree_so_pfo_err_at_ion_____6_

_Loivg_ehr_tvno_inlt_agg_per_optr_eoct_teioc_nti_oan_nd______7_

06/2014
A5E03461486-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03461486-AB  07/2014 Subject to change

Copyright © Siemens AG 2013 - 2014. All rights reserved

Preface

Purpose of the documentation
This documentation will support you in installing and commissioning programmable controllers.
Correct configuration is essential for fault-free operation of programmable controllers.

Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge of VDE (German Association for Electrical, Electronic and Information
Technologies) and EC regulations  Knowledge of the rules for installing controllers and switchgear

Conventions

You should also pay particular attention to notes such as the one shown below:
Note A note contains important information on the product described in the documentation, on the handling of the product or on the section of the documentation to which particular attention should be paid.

Scope of the documentation
This documentation is valid for all products of the product series SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL.
The product series SIMATIC S7-1500, ET 200MP and ET 200SP are approved for IP20 degree of protection, i.e. the modules of these product series must be installed in a control cabinet.
The SIMATIC ET 200AL product series is approved for IP65/IP67 degree of protection, i.e. the modules need not be installed in a control cabinet.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

3

Preface
Changes compared to previous version
Changes / enhancements described in this manual, compared to the previous version (version 01/2013):  Extension of the scope of validity to the distributed I/O system ET 200AL  Supplement to the section Connection of the cable shielding for ET 200AL  Components for lightning protection potential equalization amended
Additional support
Additional information on SIMATIC products is available on the Internet. The associated documentation is also available on the Internet.  The range of technical documentation for the individual SIMATIC products and
automation systems can be found on the Internet (http://www.siemens.com/simatic-techdoku-portal).  The online catalog and the ordering system are available on the Internet (http://mall.automation.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity). To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

Designing interference-free controllers

4

Function Manual, 06/2014, A5E03461486-AB

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 6

2 Basic information on electromagnetic compatibility .................................................................................. 7

2.1

Overview of possible interference..................................................................................................7

2.2

Coupling mechanisms....................................................................................................................8

3 Interference-free cable routing ................................................................................................................ 9

3.1

Classifying cables into cable categories ........................................................................................9

3.2

Cable routing inside cabinets in buildings....................................................................................11

3.3

Cable routing outside cabinets and inside buildings....................................................................11

3.4

Cable routing outside buildings....................................................................................................12

3.5

Underground cable routing ..........................................................................................................13

3.6

Bending radii and tensile strength of cables ................................................................................14

4 Cable shielding ..................................................................................................................................... 15

4.1

Connecting the cable shielding for S7-1500 and ET 200MP.......................................................17

4.2

Connecting the cable shielding for ET 200SP .............................................................................19

4.3

Connecting the cable shielding for ET 200AL..............................................................................20

4.4

Connecting the cable shield for bus cables .................................................................................21

4.5

Connecting the cable shield for other components......................................................................22

5 Equipotential bonding............................................................................................................................ 23

6 Special measures for interference-free operation .................................................................................. 25

7 Lightning protection and overvoltage protection..................................................................................... 26

7.1

What is lightning and overvoltage protection? .............................................................................26

7.2

Lightning protection zone concept ...............................................................................................27

7.3

Rules and components for the transitions between lightning protection zones...........................29

Index..................................................................................................................................................... 37

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

5

Documentation guide

1

Introduction

The documentation of the SIMATIC products has a modular structure and covers diverse topics concerning your automation system.
The complete documentation for the S7-1500, ET 200SP, ET 200MP and ET 200AL systems consists of the respective system manuals, function manuals and product manuals.
The STEP 7 information system (online help) also supports you when configuring and programming your automation system.

Overview of documentation on the subject of designing interference-free controllers
The following table lists additional documentation which supplements this description of designing interference-free controllers.

Table 1- 1 Documentation on the subject of designing interference-free controllers

Topic
System description

Documentation
System manual S7-1500 Automation System (http://support.automation.siemens.com/WW/vi ew/en/59191792)
System manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/vi ew/en/58649293)
System Manual ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/vi ew/en/59193214)
System manual Distributed I/O System ET 200AL (http://support.automation.siemens.com/WW/vi ew/en/89254965)

Most important contents · Application planning · Installation · Wiring · Commissioning

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Designing interference-free controllers

6

Function Manual, 06/2014, A5E03461486-AB

Basic information on electromagnetic compatibility

2

2.1

Overview of possible interference

Introduction

SIMATIC products and their components have been developed for use in industrial environment and meet the legal EMC requirements (EMC - Electromagnetic Compatibility). However, you still need to conduct an EMC assessment before installing your controller in order to identify possible sources of interference and to include these in your considerations.

Electromagnetic compatibility
Electromagnetic compatibility describes the ability of an electrical device to function properly in its particular electromagnetic environment. Neither the environment itself nor the electrical device are influenced in an unacceptable manner.

Possible interference
Electromagnetic interference can influence an automation system in various ways. The most significant interferences and their causes are as follows:  Electromagnetic fields having a direct influence on the system  Interference coupling caused by bus signals (for example, PROFINET)  Interference influencing the system via the process wiring  Interference which reaches the system via the power supply and/or protective ground The figure below shows the likely paths of electromagnetic interference.

Figure 2-1 Electromagnetic interference

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

7

Basic information on electromagnetic compatibility 2.2 Coupling mechanisms

2.2

Coupling mechanisms
Depending on the emitting medium and the distance between the source of interference and the device, interference can reach the automation system via four different coupling mechanisms.
The following table shows possible causes and typical sources of interference for the various coupling mechanisms:

Table 2- 1 Coupling mechanisms

Coupling mechanism Galvanic coupling
Capacitive coupling Inductive coupling
Radiation coupling

Cause

Typical sources of interference

Two electric circuits share the same cable

· Clocked devices (influence on the network due to converters and thirdparty power supply units)

· Starting motors

· Potential differences on component enclosures with shared power supply

Potential difference between conductors · Interference coupling due to parallel routing of signal cables

· Static discharge of the operator

Mutual influencing of current-carrying conductor loops. The magnetic fields caused by the current flow induce interference voltages.

· Transformers, motors, electrical welding equipment
· Power supply cables routed in parallel

· Cables whose currents are switched · High-frequency signal cables

· Unwired coils

Effect of an electromagnetic wave on a cable configuration. This wave induces currents and voltages.

· Neighboring transmitters (for example, walkie-talkies)
· Spark gaps (spark plugs, collectors of electrical motors, welding devices)

Designing interference-free controllers

8

Function Manual, 06/2014, A5E03461486-AB

Interference-free cable routing

3

3.1

This chapter describes the EMC-compatible classification of cables and cable routing for bus, data, signal and supply lines.

Classifying cables into cable categories
Classify the cables into cable categories according to their sensitivity to interference coupling and interference emission. The further away from one another cables of different cable categories are installed, the lower the mutual influence by capacitive and inductive coupling.
The following table shows the cable categories into which you can classify your cables accordingly.

Table 3- 1 Cable categories

Category A
Category B Category C

· Signal lines to I/O modules · Bus and data lines (for example, PROFIBUS, PROFINET) · Lines to HMI devices · Supply lines for extra-low voltages (< 24V DC or < 60V AC)
· Supply lines with safe electrical isolation (SELV) · Supply voltages < 400 V
· Supply voltages > 400 V

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

9

Interference-free cable routing 3.1 Classifying cables into cable categories

The following table shows the minimum clearance you must maintain when installing cables.

Table 3- 2 Combination of cable categories

Category A Category B Category C

Category A

Category B

Category C

· In common bundles · In separate bundles · Inside cabinets in separate

or cable channels

or cable channels

bundles or cable channels

(no minimum clearance necessary)

· Outside cabinets, but inside buildings, on separate cable racks with at least 10 cm

· In separate bundles · In common bundles

clearance

or cable channels

or cable channels

(no minimum

clearance

necessary)

· Inside cabinets in separate bundles or cable channels
· Outside cabinets, but inside buildings, on separate cable racks with at least 10 cm clearance

· In common bundles or cable channels

If you install different cable categories in the same cable channel, use metallic cable channels with metallic partition.
The following figure show a schematic view of a cable channel with partition.

 Metallic cable channel  Metallic partition
Figure 3-1 Cable channel with partition

Designing interference-free controllers

10

Function Manual, 06/2014, A5E03461486-AB

3.2
Rule
3.3
Rule

Interference-free cable routing 3.2 Cable routing inside cabinets in buildings
Cable routing inside cabinets in buildings
Observe the following rules for proper cable routing inside of control cabinets:  If a crossing of cables is unavoidable, then cross the cables at an angle of 90°, if
possible, in order to keep interference from electrical fields as low as possible.  Do not route cables coming into the cabinet from outside parallel to the shield supports.
Cable routing outside cabinets and inside buildings
Observe the following rules for proper cable routing outside control cabinets and inside buildings:  Read the information in section Assigning cables to cable categories (Page 9).  If you route the cables in metallic cable channels, you can rearrange the cable channels
next to each other.  Connect metallically conductive cable racks to the potential equalization of the building.  If a crossing of cables is unavoidable, then cross the cables at an angle of 90°, if
possible, in order to keep interference from electrical fields as low as possible.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

11

Interference-free cable routing 3.4 Cable routing outside buildings

3.4

Cable routing outside buildings

If possible, lay the cables outside buildings on metallic cable holders. Connect the cable holder joints galvanically to each other and ground the cable holders.

Rule

Observe the following rules when laying cables outside of buildings:
 Use metallic auxiliary terminal boxes to connect cables coming from outside at the junction to cables inside the building. Ground these boxes.
 If a crossing of cables is unavoidable, then cross the cables at an angle of 90°, if possible, in order to keep interference from electrical fields as low as possible.
 Integrate bus cables installed outside of buildings into your lightning and overvoltage concept.

Lightning protection
When you lay cables for SIMATIC devices outside of buildings, you have to take internal and external lightning protection measures.

Reference

For additional information about lightning protection, refer to chapter Lightning protection and overvoltage protection (Page 26).

Designing interference-free controllers

12

Function Manual, 06/2014, A5E03461486-AB

3.5
Rule

Underground cable routing

Interference-free cable routing 3.5 Underground cable routing

Observe the following rules for underground cable routing:
 Lay the cable at least 60 cm below the ground surface.
 Install equipotential bonding approximately 20 cm above the cable. You can use a zincplated ground strip, for example. The ground strips also serve as protection against lightning strikes.
 Protect the cable against mechanical damage by, for example, using a plastic pipe and/or a cable warning tape in the ground, approximately 40 cm above the cable.
 Separate the various cable categories in the ground using cable channels, for example.
The following figure shows the arrangement of cable warning tape, equipotential bonding and a cable.

Figure 3-2 Arrangement underground

Lightning protection
When you lay cables for SIMATIC devices outside of buildings, you have to take internal and external lightning protection measures.

Reference

For additional information about lightning protection, refer to chapter Lightning protection and overvoltage protection (Page 26).

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

13

Interference-free cable routing 3.6 Bending radii and tensile strength of cables

3.6

Bending radii and tensile strength of cables

Tensile strain

A high strain on the cables due to tensile forces leads to conductor material flow. The tensile forces thus cause a change in the structure of the material and lower the conductor crosssection. This decrease of the conductor cross-section leads, in turn, to a heating of the conductor and premature wear of the conductor insulation.
Use the supplied cable ties to relieve the terminal points on the plugs for the I/O modules of the product series SIMATIC S7-1500 and SIMATIC ET 200MP.

Bending radius

If you select too small bending radii when laying cables, this will cause the materials to stretch and compress and changes the mechanical structure of the cables. The electrical properties are impaired as a result.
Pay particular attention to the bending radii of fiber-optic cables. If the bending radii are too small, the optical properties of the fiber-optic cable are adversely affected. Reliable transmission is no longer guaranteed.

Designing interference-free controllers

14

Function Manual, 06/2014, A5E03461486-AB

Cable shielding

4

Shielding is a measure to attenuate (dampen) magnetic, electrical or electromagnetic interference fields.
Interference currents on cable shields are diverted from the shield connection to ground. To avoid interference as a result of these currents, it is imperative to provide a low-impedance connection to the protective conductor.

Rules

Ideally, you should use cables equipped with a protective braided shield. The shield's contacting must be more than 80% at the contact point. Avoid tensile and compression strain on cables with a foil shield. This type of strain can damage the foil shield very slightly at the fastening point. The result is a reduced shielding effect.

Shield connection with grounding at both ends
Always connect the cable shields to the ground at both ends. Low and high frequency interference can be reduced only by connecting both ends of the shield to the ground.
Note Laying an additional equipotential bonding cable
Whenever potential differences develop between the grounding points, an equalizing current flows on a shielding that is connected at both ends. In this case, lay an additional equipotential bonding cable. You can find more information on this topic in the chapter Equipotential bonding (Page 23).

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

15

Cable shielding
Shield connection with capacitive grounding at one end
If you do not have the option of installing equipotential bonding (in plants covering a large area, for example), connect capacitive grounding to one end of your shield. In this case, only high-frequency interference will be reduced. The following figure shows the capacitive grounding of a cable shield. The values indicated in the figure are indicative and will differ from system to system. The capacity diverts the high-frequency interference. This capacity provides high-impedance protection for the power frequency (50 or 60 Hz), thus preventing equalizing currents via the shield. A parallel switched high-impedance resistance prevents the capacity from loading a direct current.
Figure 4-1 Capacitive grounding of the shield

Designing interference-free controllers

16

Function Manual, 06/2014, A5E03461486-AB

Cable shielding 4.1 Connecting the cable shielding for S7-1500 and ET 200MP

4.1

Connecting the cable shielding for S7-1500 and ET 200MP

A special shield design has been developed for the automation system S7-1500 and the distributed I/O system ET 200MP for the shield connection of the signal lines. The connection element for the cable shield consists of a shield clamp and a shield terminal.

If the front connector is located in the module, the interference currents which occur are diverted by the connection element to the ground via the module and mounting rail.

The shield clamp is a pluggable mount for the analog and technology modules. The shield clamp allows the low-impedance application of cable shields with minimum installation times.

The following figure shows a front connector with mounted shield clamp and associated shield terminal.

 Shield clamp  Stripped cable shield  Shield terminal
Figure 4-2 Shield clamp and shield terminal on front connector
The shield clamp is inserted from below onto the front connector until the shield clamp latches audibly. The shield terminal is fastened to the shield clamp.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

17

Cable shielding 4.1 Connecting the cable shielding for S7-1500 and ET 200MP
Additional information
For additional information on installing the shield clamp and shield terminal, refer to the "Connecting front connectors" chapter in the S7-1500 automation system (http://support.automation.siemens.com/WW/view/en/59191792) or ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59193214) system manuals.

Designing interference-free controllers

18

Function Manual, 06/2014, A5E03461486-AB

Cable shielding 4.2 Connecting the cable shielding for ET 200SP

4.2

Connecting the cable shielding for ET 200SP

A special shield design has been developed for the shield connection of the signal lines of the ET 200SP distributed I/O system. The connection element for the cable shield consists of a shield terminal.

If the front connector is located in the module, the interference currents that occur are diverted by the connection element via BaseUnit and mounting rail to the ground.

The shield terminal is plugged into a mount of the BaseUnit. The shield terminal allows the low-impedance application of cable shields with minimum installation times. There is no need for the otherwise standard connection of the cable shield at the cabinet entry.

The following figure shows a BaseUnit with shield terminal and shield support.

 BaseUnit of ET 200SP  Shield terminal  Shield support with flat plug for terminal sockets
Figure 4-3 BaseUnit with shield terminal
Additional information
For more information on mounting the shield terminal, refer to the "Connecting cable shields" chapter of the system manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293).

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

19

Cable shielding 4.3 Connecting the cable shielding for ET 200AL

4.3

Connecting the cable shielding for ET 200AL

Each module of the ET 200AL distributed I/O system features a functional ground connection.

Use only shielded cables for connection of analog signals, PROFINET and PROFIBUS signals and for the ET-Connection. If you have screwed the plug in correctly, the interference currents that occur are diverted to the metal parts and functional ground.

If you attach an ET 200AL module to a conductive, grounded base, the lower mounting bolt establishes a conductive connection to the earth potential.

If you attach an ET 200AL module to a non-conductive base, connect the lower mounting bolt to the ground wire at the same time.

The following figure shows how to connect the functional ground via a ground wire, using the IM 157-1 PN interface module as an example.

Figure 4-4 Connect functional ground via a ground wire
Additional information
You can find more information on installing ET 200AL modules in the Installing Modules section of the system manual Distributed I/O System ET 200AL (http://support.automation.siemens.com/WW/view/en/89254965).

Designing interference-free controllers

20

Function Manual, 06/2014, A5E03461486-AB

Cable shielding 4.4 Connecting the cable shield for bus cables

4.4

Connecting the cable shield for bus cables

In the S7-1500, ET 200MP and ET 200SP systems, the cable shields of PROFIBUS and PROFINET cables are connected to the existing bus connection elements. Cable shield and shield support are thus galvanically connected to each other. If the connector is plugged into the module, the coupled interferences are diverted via the module carrier to the ground. There is no need for the otherwise standard connection of the shield at the cabinet entry.

The following figure shows examples of the shield connection for various bus connection elements.

Reference

 BusAdapter BA 2xRJ45 for ET 200SP  PROFIBUSconnector, 9-pin D-Sub  PROFINETconnector RJ45  Shield support of respective connector
Figure 4-5 Shield connection for bus connection elements
For more information on installing the connectors, refer to the "Connecting PROFINET IO BusAdapter BA 2xRJ45 to the interface module" chapter of the system manual ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293) and to the supplied product information.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

21

Cable shielding 4.5 Connecting the cable shield for other components

4.5
Rule

Connecting the cable shield for other components
The following procedures for connecting the shield to devices that do not have any special shield terminals have proven themselves in practice.
Note the following points when handling the shield:  Always use metal clamps to mount the protective braided shields of the cables. The
clamps must cover a large area of the shield and provide appropriate contact force.  Attach the shield to a shielding bus directly after the point where the cable enters the
cabinet. If you route the shield further to the module, do not connect the shield again in front of the module, as this would create ground loops. The following figure shows standard types of shield fastening.

Figure 4-6 Cable shielding

Designing interference-free controllers

22

Function Manual, 06/2014, A5E03461486-AB

Equipotential bonding

5

Definition according to DIN VDE 0100
Equipotential bonding is an electrical connection which brings the bodies of electrical equipment and external conductive parts to the same, or nearly the same, potential. Equipotential bonding is divided into:  Main equipotential bonding  Additional local equipotential bonding Both versions of equipotential bonding are of great importance not only for protection against electric shock, but also for EMC.
Main equipotential bonding
Main equipotential bonding is required by DIN VDE 0100 Part 410 as a protective measure and is mandatory, regardless of other measures for protection against direct and indirect contact.
Additional local equipotential bonding
Additional local equipotential bonding is required if:  Unfavorable grounding conditions exist between plant parts due to different conductivity
of the soil (for example, sandy or stony ground)  Cables bridge a large distance  Electrical energy is fed in from various power supplies (for example, in the case of
multiple substations)  Considerable electrical power is used (for example, welding robots, large drives)

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

23

Equipotential bonding

Measures

In such cases, an additional equipotential bonding cable between the individual potentials can solve the problem. The equipotential bonding cable must also be able to divert large currents and carry lightning stroke current. The following equipotential bonding systems have proven themselves in practice:
 16 mm2 for copper equipotential bonding cables up to 200 m long
 25 mm2 for copper equipotential bonding cables over 200 m long
To prevent ground loops, equipotential bonding cables are installed in parallel and, whenever possible, near to the signal/bus cable. This allows the area between the two cables to be kept as small as possible.
The following figure shows a schematic view of the installation of an equipotential bonding cable.

Rule

Figure 5-1 Installation of equipotential bonding cables
Note the following issues regarding equipotential bonding:  The lower the impedance of an equipotential bonding cable, the more effective is
equipotential bonding. The impedance of the additionally installed equipotential bonding cable should not exceed 10% of the shield impedance.  Connect the equipotential bonding cables to a large area of the grounding system.  Protect the connection points against corrosion.  Avoid ground loops.  Install the equipotential bonding cables in such a way as to minimize the areas enclosed between the equipotential bonding cables and signal lines.

Designing interference-free controllers

24

Function Manual, 06/2014, A5E03461486-AB

Special measures for interference-free operation

6

Connecting inductances to quenching elements
Ideally, the inductances (for example, contactor or relay coils) controlled by SIMATIC do not require any wiring to external quenching elements. The required quenching elements are already integrated into the modules.
If the SIMATIC output circuit can also be switched off by built-in contacts (such as relay contacts for EMERGENCY OFF), the module's integrated quenching elements are no longer effective. In this case, the inductances must be wired to quenching elements.
Wire inductances to freewheeling diodes, varistors or RC elements, for example.

Table 6- 1 Wiring inductances
Wiring DC-operated inductances

Wiring AC-operated inductances

Programming devices
Provide a socket in each cabinet for the supply of the programming devices. The sockets are supplied from the distribution board to which the protective conductor for the cabinet is also connected.
Observe the following points during the installation of the socket in the control cabinet:
 Include the grounding of the socket in your consideration of the equipotential bonding.
 The common star point of the two ground potentials (cabinet and socket) must be close to the two end points.
 An equipotential bonding cable is not permitted as communication cable between programming device and controller.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

25

Lightning protection and overvoltage protection

7

7.1

What is lightning and overvoltage protection?

Introduction

The term "Lightning and overvoltage protection" covers both the concept and system for the protection of structural systems (such as buildings or electrical equipment). This concept also includes the protection of people and animals.
Overvoltages are most frequently caused by lightning strikes.

Lightning protection system
The lightning protection system is the complete system used to reduce physical damage to a structural system as a result of direct lightning strikes and overvoltages. The lightning protection system is divided into external and internal lightning protection.

External lightning protection
External lightning protection is part of the lightning protection system and comprises an interception device, an arrester and a grounding system. In the event of a lightning strike, the external lightning protection serves to divert the lightning current safely to the ground. This measure most frequently prevents fire damage.

Internal lightning protection
Internal lightning protection is part of the lightning protection system and comprises lightning protection equipotential bonding and/or electrical isolation with respect to the external lightning protection. In the event of a lightning strike, the internal lightning protection reduces the damage caused by overvoltages resulting from the lightning.
Even at larger distances of up to 1.5 km, lightning strikes can sometimes still cause damage. You obtain effective lightning protection by expanding the external lightning protection into an overall protection system. This system includes equipotential bonding and surge protection devices.

Designing interference-free controllers

26

Function Manual, 06/2014, A5E03461486-AB

Lightning protection and overvoltage protection 7.2 Lightning protection zone concept

7.2

Lightning protection zone concept

Introduction

Each building requires a coordinated protection zone concept. The grading of the protection is of key importance for this. Sufficient protection can only be guaranteed if this grading requirement is satisfied.
The lightning protection zone concept described in the standards IEC 62305-4 and DIN EN 62305-4 is used for this purpose. The lightning protection zone concept groups devices and areas that have the same risk potential and can be wired to arresters of the same type.
Use overvoltage protection devices at the transitions of the lightning protection zones based on the requirements. Install the overvoltage protection devices at an appropriate location such as the main or sub-distribution board.

Principle of the lightning protection zone concept
The principle behind the lightning protection zone concept is the division of the areas to be protected from overvoltages, for example buildings, into lightning protection zones based on EMC considerations.

Schematic diagram of the lightning protection zone concept
The following is a schematic diagram of the lightning protection zone concept in a physical structure.

Figure 7-1 Division of a structural system into lightning protection zones

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

27

Lightning protection and overvoltage protection 7.2 Lightning protection zone concept

Division of lightning protection zones
The various lightning protection zones (LPZ - Lightning Protection Zone) are limited spatially as follows and not necessarily by physical boundaries, such as walls or floors.
The following table explains the division into various lightning protection zones.

Table 7- 1 External and internal lightning protection zones

Lightning protection zones External lightning protection zones: LPZ 0A · Risk from direct lightning strikes
· Risk from the full electromagnetic field of the lightning

LPZ 0B

· Protected against direct lightning strike · Risk from the full electromagnetic field of the lightning

Internal lightning protection zones: LPZ 1 · Protected against direct lightning strike
· Attenuated electromagnetic field of the lightning

LPZ 2

· Protected against direct lightning strike · Reduced leakage currents and electromagnetic fields compared to LPZ 1 · Protected terminal devices

LPZ 3

· Protected against direct lightning strike · Protected area inside the terminal device · Local equipotential bonding

Effects of the lightning strike
Direct lightning strikes occur in the lightning protection zone LPZ 0A. Effects of the lightning strike are high-energy lightning currents and strong electromagnetic fields. These effects are reduced from one lightning protection zone to the next through suitable lightning current or overvoltage arrester/shielding measures.
Frequent damage caused by lightning strikes includes:
 Injury to people and animals, which may in worst cases lead to death
 Damage to buildings
 Fire caused by strong heat development of a lightning strike

Overvoltages

Electromagnetic fields of the lightning channel can be reduced with appropriate shielding measures. Overvoltages due to inductions can be reduced to a safe level starting in lightning protection zone LPZ 0B with overvoltage arresters.

Designing interference-free controllers

28

Function Manual, 06/2014, A5E03461486-AB

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

7.3

Rules and components for the transitions between lightning

protection zones

Introduction

This chapter provides you with information on the rules for transitions between lightning protection zones. Measures must be taken to reduce the surge current load and the magnetic fields at the transitions between the lightning protection zones.
Each zone-penetrating metallic/electrical system is incorporated into the equipotential bonding at the zone transition.
The metallic systems include channels, structural parts, and pipes (for water, gas, and heat, for example).
Electrical systems include power and IT cables and wires (for example, power cables and bus cables).

Transitions between lightning protection zones
Overvoltage protection must be provided at the transitions between lightning protection zones (LPZ - Lightning Protection Zone) in accordance with DIN EN 62305. The protection levels are defined at the transitions and implemented by means of overvoltage protection devices (SPD - Surge Protective Device).
 SPD Type 1 - Coarse protection for the transition from LPZ 0 to LPZ 1
 SPD Type 2 - Medium protection for the transition from LPZ 1 to LPZ 2
 SPD Type 3 - Fine protection for the transition from LPZ 2 to LPZ 3
The following figure illustrates the lightning protection zones and the type classes from the supply line to the consumer.

Figure 7-2 Lightning protection zone transitions

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

29

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Rule for transition from lightning protection zone 0A to 1
Lightning protection equipotential bonding is required at the transition from lightning protection zone 0A to 1. The following applies to the transition at the interface of lightning protection zone 0A to 1:
 Use of lightning arresters prevents introduction of partial lightning currents into structural systems
 Creation of local equipotential bonding at the transition of lightning protection zones, with incorporation of metallic supply systems (for example, pipes, air ducts, cable channels or cable ducts)

Components for lightning protection equipotential bonding from lightning protection zone 0A to 1
The following table shows components for lightning protection equipotential bonding from lightning protection zone 0A to 1.

Table 7- 2 Components for transition from lightning protection zone 0A to 1

Seq. Cables for ... no.

Connection at the 0A interface to 1 with: S7-1500/ET 200MP/ET 200SP/ET 200AL

1

Three-phase

TN-C system

DEHNventil® DV M TNC 255 DEHNventil® DV M TNC 255 FM *

2

Three-phase

TN-S system

DEHNventil® DV M TNS 255 DEHNventil® DV M TNS 255 FM *

3

Three-phase

TT system

DEHNventil® DV M TT 255 DEHNventil® DV M TT 255 FM *

4

AC

TN-S system

DEHNventil® DV M TN 255 DEHNventil® DV M TN 255 FM *

5

AC

TT system

DEHNventil® DV M TT 2P 255 DEHNventil® DV M TT 2P 255 FM *

6

Supply

BLITZDUCTOR® XT, base section BXT BAS

UN = 24 V DC

BLITZDUCTOR® XT, module BXT ML2 B 180

(IL = 1.2 A) (2-wire)

7

Supply

DEHNbloc® M, DB M 1 150

UN = 24 V DC

DEHNbloc® M, DB M 1 150 FM *

(2 pieces required)

8

Bus cable

BLITZDUCTOR® XT, base section BXT BAS

MPI RS 485, RS 232 (V.24)

BLITZDUCTOR® XT, module BXT ML2 B 180 (2-wire)

9

Inputs/outputs of BLITZDUCTOR® XT, base section BXT BAS

digital modules UN = 24 V DC

BLITZDUCTOR® XT, module BXT ML4 B 180 (IL = 1.2 A) (4-wire)

10 Inputs/outputs of DEHNbloc® M, DB M 1 255

digital modules UN = 230 V AC

DEHNbloc® M, DB M 1 255 * (2 pieces required)

Article number 951 300 951 305 * 951 400 951 405 * 951 310 951 315 * 951 200 951 205 * 951 110 951 115 * 920 300 920 211
961 110 961 115 *
920 300 920 211
920 300 920 310
961 120 961 125 *

Designing interference-free controllers

30

Function Manual, 06/2014, A5E03461486-AB

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Seq. Cables for ... no.

Connection at the 0A interface to 1 with: S7-1500/ET 200MP/ET 200SP/ET 200AL

Article number

11 Inputs/outputs of BLITZDUCTOR® XT, base section BXT BAS

analog modules (e.g., 4-20 mA, 1-10 V)

BLITZDUCTOR® XT, module (IL = 1.2 A) (4-wire)

920 300 920 310

* Version with remote indication contact

Components of the series BLITZDUCTOR® XT can be remotely monitored with the appropriate accessories. Additional information is available on the Internet (http://www.dehn.de)

Components can be ordered directly from: DEHN+SÖHNE GMBH+CO.KG. Hans-Dehn-Straße 1 D-92318 Neumarkt

Rule for the transition from lightning protection zone 0B to 1, 1 to 2, or 2 to 3
The transition from lightning protection zone 0B to 1, 1 to 2, or 2 to 3 prevents strong electromagnetic coupling and serves as overvoltage protection. The following applies to the transition at the interface from lightning protection zone 0B to 1, 1 to 2, or 2 to 3:
 Use of power cables with surge current-carrying cable shields or twisted-pair IT cables
 Laying cables and lines
­ In continuous, surge current-carrying metal pipes that are grounded at both ends
­ In reinforced concrete channels capable of carrying surge current with grounding at both ends
­ On closed metal cable racks that are grounded at the beginning and end
 Use of fiber-optic cables without a metal shield if such a transmission is intended
 Creation of local equipotential bonding at the transition of lightning protection zones, with incorporation of metallic supply systems (for example, pipes, air ducts, cable channels or cable ducts)

Additional measures
If the actions listed above cannot be implemented, protection by means of overvoltage arresters must be provided. The following sections contain tables with overvoltage arresters that are very suitable for protecting the plant.

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

31

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Components for lightning protection equipotential bonding from lightning protection zone 0B to 1 and 1 to 2
The following table shows components for lightning protection equipotential bonding from lightning protection zone 0B to 1 and 1 to 2.

Table 7- 3 Components for transition from lightning protection zone 0B to 1 and 1 to 2

Seq. Cables for ... no.

Connection at the 0B interface to 1 with: S7-1500/ET 200MP/ET 200SP/ET 200AL

1

Three-phase

TN-C system

DEHNguard® DG M TNC 275 DEHNguard® DG M TNC 275 FM *

2

Three-phase

TN-S system

DEHNguard® DG M TNS 275 DEHNguard® DG M TNS 275 FM *

3

Three-phase

TT system

DEHNguard® DG M TT 275 DEHNguard® DG M TT 275 FM *

4

AC

TN-S system

DEHNguard® DG M TN 275 DEHNguard® DG M TN 275 FM *

5

AC

TT system

DEHNguard® DG M TT 2P 275 DEHNguard® DG M TT 2P 275 FM *

6

Supply

BLITZDUCTOR® VT, BVT AVD 24

UN = 24 V DC

7

Bus cable

BLITZDUCTOR® XT, base section BXT BAS

MPI/DP RS 485 BLITZDUCTOR® XT, module BXT ML2 BD HFS 5

8

Bus cable

BLITZDUCTOR® XT, base section BXT BAS

RS 232 (V.24) BLITZDUCTOR® XT, module BXT ML2 BE S 12

9

Industrial

Ethernet

DEHNpatch® DPA M CLE RJ45B 48

10 Inputs of digital DEHNconnect® RK, DCO RK E 60

modules

(IL = 0.5 A)

UN = 24 V DC

11 Outputs of digital DEHNconnect® RK, DCO RK D 5 24

modules

(IL = 10.0 A)

UN = 24 V DC

12 Inputs/outputs of DEHNguard® DG S 275

digital modules UN = 230 V AC

DEHNguard® DG S 275 FM * N-PE arrester in the TT system

DEHNgap® C S, DGP C S

DEHNgap® C S, DGP C S FM *

13 Inputs/outputs of DEHNconnect® RK, DCO RK E 60 analog modules (IL = 0.5 A) (e.g., 4-20 mA, 1-10 V)

Article number 952 300 952 305 * 952 400 952 405 * 952 310 952 315 * 952 200 952 205 * 952 110 952 115 * 918422
920 300 920 271 920 300 920 222 929 121
919 990
919 986
952 070 952 090 *
952 030 952 035 * 919 990

Designing interference-free controllers

32

Function Manual, 06/2014, A5E03461486-AB

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Seq. Cables for ... no.

Connection at the 0B interface to 1 with: S7-1500/ET 200MP/ET 200SP/ET 200AL

Article number

14 Inputs/outputs of DEHNconnect® RK, DCO RK D 5 24 the fail-safe modules (24 V DC)

919 986

* Version with remote indication contact

Components of the series BLITZDUCTOR® XT can be remotely monitored with the appropriate accessories. Additional information is available on the Internet (http://www.dehn.de)

Components can be ordered directly from: DEHN+SÖHNE GMBH+CO.KG. Hans-Dehn-Straße 1 D-92318 Neumarkt

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

33

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Components for lightning protection equipotential bonding from lightning protection zone 2 to 3
The following table shows components for lightning protection equipotential bonding from lightning protection zone 2 to 3 that you can use for S7-1500/ET 200MP and ET 200SP.

Table 7- 4 Components for transition from lightning protection zone 2 to 3 (for S7-1500/ET 200MP and ET 200SP)

Seq. no. 1
2
3 4 5 6 7

Cables for ...
Three-phase TN-S, TT system
AC TN-S, TT system
Supply UN = 24 V DC Bus cable MPI/DP RS 485
Bus cable RS 232 (V.24)
Industrial Ethernet Inputs of digital modules UN = 24 V DC

Connection at the interface 2 to 3 with:

S7-1500/ET 200MP
DEHNrail® DR M 4P 255
DEHNrail® DR M 4P 255 FM * (IL = 25.0 A)
DEHNrail® DR M 2P 255
DEHNrail® DR M 2P 255 FM * (IL = 25.0 A)
BLITZDUCTOR® VT, BVT AVD 24 BLITZDUCTOR® XT, base section BXT BAS BLITZDUCTOR® XT, module BXT ML2 BD HFS 5 BLITZDUCTOR® XT, base section BXT BAS BLITZDUCTOR® XT, module BXT ML2 BE S 12 DEHNpatch® DPA M CLE RJ45B 48 DEHNconnect® RK, DCO RK E60 (IL = 0.5 A)

Article number 953 400
953 405 *
953 200
953 205 *
918 422 920 300 920 271 920 300 920 222 929 121 919 990

ET 200SP
DEHNguard® DG M TNS 275 DEHNguard® DG MOD 275 DEHNguard® DG M TT 275 DEHNguard® DG MOD 275 DEHNguard® DG MOD NPE DEHNguard® DG M TN 275 DEHNguard® DG MOD 275 DEHNguard® DG M TT 2P 275 DEHNguard® DG MOD 275 DEHNguard® DG MOD NPE BLITZDUCTOR® VT, BVT AVD 24 ® VT ---
---
---
---
---
BLITZDUCTOR® XT, BXT ML4 BD 24 (IL < 1 A)

Article number 952 400 952 010 952 310 952 010 952 050 952 200 952 010 952 110 952 010 952 050 918 422 -----
-----
--920 344

Designing interference-free controllers

34

Function Manual, 06/2014, A5E03461486-AB

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

Seq. Cables for ... no.

Connection at the interface 2 to 3 with:

S7-1500/ET 200MP

Article number

ET 200SP

Article number

BLITZDUCTOR® XT, base section BXT BAS (IL < 1 A)

920 300

8

Outputs of digital DEHNconnect® RK, 919 986 BLITZDUCTOR® XT, 920 344

modules

DCO RK D 5 24

BXT ML4 BD 24

UN = 24 V DC

(IL = 10.0 A)

(IL < 1 A)

BLITZDUCTOR® XT, base section BXT BAS (IL < 1 A)

920 300

DEHNconnect® SD2, DCO SD2 E 48 (IL < 10 A)

917 989

9

Inputs/outputs of DEHNguard®

digital modules DG S 275

UN = 230 V AC

952 070

DEHNguard® DG S 275
DEHNguard® DG MOD 275

952 070 952 010

DEHNguard®

952 090 * ---

---

DG S 275 FM *

N-PE arrester in the TT system

DEHNgap® C S,

952 030 ---

---

DGP C S

DEHNgap® C S,

952 035 * ---

---

DGP C S FM *

10 Inputs/outputs of DEHNconnect® RK, 919 990 BLITZDUCTOR® XT, 920 344

analog modules DCO RK E 60

BXT ML4 BD 24

(e.g., 4-20 mA, (IL = 0.5 A)

(IL < 1 A)

1-10 V)

BLITZDUCTOR® XT, 920 300

base section BXT BAS

(IL < 1 A)

11 Inputs/outputs of --the fail-safe modules (24 V DC)

---

DEHNconnect® RK,

919 986

DCO RK D 5 24

DEHNconnect® RK, DCO RK E 60

919 990

* Version with remote indication contact

Components of the series BLITZDUCTOR® XT can be remotely monitored with the appropriate accessories. Additional information is available on the Internet (http://www.dehn.de)

Components can be ordered directly from: DEHN+SÖHNE GMBH+CO.KG. Hans-Dehn-Straße 1 D-92318 Neumarkt

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

35

Lightning protection and overvoltage protection 7.3 Rules and components for the transitions between lightning protection zones

The following table shows components for lightning protection equipotential bonding from lightning protection zone 2 to 3 that you can use for ET 200AL.

Table 7- 5 Components for transition from lightning protection zone 2 to 3 (for ET 200AL)

Seq. Cables for ... no.

Connection at the interface 2 to 3 with: ET 200AL

Article number

1

Supply

BLITZDUCTOR® VT, BVT AVD 24 ® VT

UN = 24 V DC

918 422

Components of the series BLITZDUCTOR® XT can be remotely monitored with the appropriate accessories. Additional information is available on the Internet (http://www.dehn.de)

Components can be ordered directly from: DEHN+SÖHNE GMBH+CO.KG. Hans-Dehn-Straße 1 D-92318 Neumarkt

Designing interference-free controllers

36

Function Manual, 06/2014, A5E03461486-AB

Index
B
Bending radius, 14
C
Cable shielding, 15
E
Electromagnetic compatibility, 7 Electromagnetic interference, 7 EMC, 7
I
Interference-free operation, 25
L
Lightning protection Equipotential bonding, 30 External, 26 Internal, 26 Overvoltage protection, 30, 31
Lightning protection zone concept, 27 Lightning protection zones, 29
Definition, 28
O
Overvoltage, 28 Overvoltage protection
Components, 30, 32, 34
T
Tensile strain, 14

Designing interference-free controllers

Function Manual, 06/2014, A5E03461486-AB

37

Analog value processing
SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro, ET 200eco PN Analog value processing
Function Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Wan_haa_lotg_yot_euc_shh_noo_ulol_dgyk_n_ow_a_b_ou_t ___2_ _Rvae_lpu_rees_se_n_ta_tio_n _of_a_na_lo_g _____3_ _Co_n_ne_c_tin_g_tra_n_sd_u_ce_rs______4_ _Th_e_rm_o_co_up_le_s__________5_ _W_iri_ng_lo_a_ds_/a_ct_ua_to_rs_______6_ _Su_p_po_rt_ed_f_un_ct_io_ns________7_ _Hi_gh_-s_p_ee_d_an_a_lo_g _mo_d_ul_es____8_

06/2014
A5E03461439-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03461439-AC  07/2014 Subject to change

Copyright © Siemens AG 2012 - 2014. All rights reserved

Preface
Purpose of the documentation
This documentation covers general topics applicable to all products. In addition to introductory information about analog value processing, this manual covers the following topics:  Wiring transducers to analog inputs  Wiring actuators/loads to analog outputs  Compensating for reference junction temperatures  Calibrating analog modules  Diagnostics options of an analog module  High-speed analog modules
Basic knowledge required
The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of analog value processing (analog technology)  Knowledge of the industrial automation system SIMATIC  Knowledge about how to use STEP 7 (TIA Portal)
Scope of the documentation
This manual is considered the basic documentation for all analog input and analog output modules of the S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro and ET 200eco PN product series.
Changes compared to previous version
Changes / enhancements described in this manual, compared to the previous version (version 12/2013):  Extension of the scope of validity to the distributed I/O system ET 200AL

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

3

Preface

Conventions

STEP 7: In this documentation, "STEP 7" is used as a synonym for "STEP 7 as of V12 (TIA Portal)" and subsequent versions of the configuration and programming software. This documentation includes images of the products it describes. The products supplied may differ slightly from these images. Please observe notes labeled as follows:
Note Notes contain important information on a point in the documentation of particular importance.

Additional support
Additional information on SIMATIC products is available on the Internet. The associated documentation is also available on the Internet.
 The portfolio of technical documentation for SIMATIC products and systems can be accessed on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the ordering system are available on the Internet (http://mall.automation.siemens.com).
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens' products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. You can find more information about industrial security on the Internet (http://www.siemens.com/industrialsecurity).
To stay informed about product updates as they occur, sign up for a product-specific newsletter. You can find more information on the Internet (http://support.automation.siemens.com).

Analog value processing

4

Function Manual, 06/2014, A5E03461439-AC

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 What you should know about analog technology ..................................................................................... 9

2.1

Overview ........................................................................................................................................9

2.2

Precision/resolution ...................................................................................................................... 13

2.3

Scaling analog values ..................................................................................................................17

2.4

Unscaling analog values ..............................................................................................................19

2.5

Linearity errors .............................................................................................................................21

2.6

Repeat accuracy ..........................................................................................................................22

2.7

Operational and basic error limits ................................................................................................23

2.8

Temperature error ........................................................................................................................26

2.9

Interference frequency suppression.............................................................................................27

2.10 Common mode interference (UCM).............................................................................................29

2.11 Series mode interference (USM) .................................................................................................31

2.12 Interference voltage suppression.................................................................................................32

2.13 Crosstalk between channels ........................................................................................................34

2.14 Diagnostics...................................................................................................................................36

2.15 Value status .................................................................................................................................46

2.16 Conversion time of an analog module .........................................................................................49

2.17 Cycle time of an analog module...................................................................................................51

2.18 Settling and response times of analog output modules ...............................................................52

2.19 Smoothing ....................................................................................................................................54

2.20 Burden with 2-wire transducers ...................................................................................................57

3 Representation of analog values ........................................................................................................... 60

3.1

Overview ......................................................................................................................................60

3.2

Representation of input ranges....................................................................................................62

3.3

Representation of output ranges..................................................................................................63

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

5

Table of contents

4 Connecting transducers ........................................................................................................................ 65

4.1

Overview ..................................................................................................................................... 65

4.2

Wiring analog inputs with MANA connection .............................................................................. 67

4.3

Wiring analog inputs without MANA connection ......................................................................... 69

4.4

Wiring voltage transducers.......................................................................................................... 71

4.5

Wiring current transducers .......................................................................................................... 72

4.6

Wiring thermal resistors and resistors......................................................................................... 74

4.7

Wiring thermocouples ................................................................................................................. 76

5 Thermocouples ..................................................................................................................................... 77

5.1

Selecting thermocouples............................................................................................................. 77

5.2

Structure and operating principle of thermocouples ................................................................... 79

5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.3.8

Compensation for the reference junction temperature ............................................................... 81 Overview ..................................................................................................................................... 81 Compensation with internal reference junction ........................................................................... 84 Compensation with reference channel of the module................................................................. 86 Compensation, reference channel of Group 0 ............................................................................ 88 Compensation with fixed reference temperature ........................................................................ 91 Compensation by means of dynamic reference temperature ..................................................... 94 "None" or external compensation................................................................................................ 98 Compensation type RTD (0) ..................................................................................................... 100

6 Wiring loads/actuators..........................................................................................................................103

6.1

Overview ................................................................................................................................... 103

6.2

Wiring loads/actuators............................................................................................................... 104

7 Supported functions .............................................................................................................................106

7.1 7.1.1 7.1.2 7.1.3 7.1.4

Calibrating analog modules....................................................................................................... 106 Overview ................................................................................................................................... 106 Calibrating analog modules....................................................................................................... 107 Canceling a calibration .............................................................................................................. 111 Resetting analog modules to factory settings ........................................................................... 112

8 High-speed analog modules.................................................................................................................113

8.1

Basics ........................................................................................................................................ 113

8.2

ST modules vs HS modules...................................................................................................... 119

Index ...................................................................................................................................................125

Analog value processing

6

Function Manual, 06/2014, A5E03461439-AC

Documentation guide

1

Introduction

The documentation of the SIMATIC products has a modular structure and covers diverse topics concerning your automation system.
The complete documentation for the S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro and ET 200eco PN systems consists of the respective system manuals, function manuals and product manuals.

Overview of additional documents related to analog value processing
The following table lists further references that supplement this description of analog value processing.

Table 1- 1 References for analog value processing

Topic
System description

Documentation
System manual S7-1500 Automation System (http://support.automation.siemens.com/WW/vi ew/en/59191792)
System manual ET 200SP distributed I/O system (http://support.automation.siemens.com/WW/vi ew/en/58649293)
System Manual ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/vi ew/en/59193214)
System manual Distributed I/O System ET 200AL (http://support.automation.siemens.com/WW/vi ew/en/89254965)
Operating instructions ET 200pro Distributed I/O System (http://support.automation.siemens.com/WW/vi ew/en/21210852)
Operating instructions ET 200eco PN Distributed I/O System (http://support.automation.siemens.com/WW/vi ew/en/29999018)

Most important contents · Application planning · Installation · Connecting · Commissioning

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

7

Documentation guide

Topic Configuring interference-free controllers
Analog module

Documentation

Most important contents

Function manual

· Basics

Configuring Interference-Free Controllers (http://support.automation.siemens.com/WW/vi

·

Electromagnetic

ew/en/59193566)

compatibility

· Lightning protection

Product manual of the respective analog module

· Connecting · Parameters

· Technical specifications

· Parameter data record · Tables of analog values

SIMATIC manuals
All current manuals for SIMATIC products are available for download free of charge from the Internet (http://www.siemens.com/automation/service&support).

Analog value processing

8

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology

2

2.1

Overview

Introduction

This chapter is intended to familiarize you with the essential parameters of analog input modules and analog output modules based on the fundamentals of analog technology. The descriptions and examples provided on the following pages serve as a reference to the manuals for the respective analog module and are intended to facilitate the handling of these manuals.

Analog and binary signals
Binary signals can assume only 2 signal states: signal state 1 (voltage present) and signal state 0 (no voltage present). In control engineering, it is frequently necessary to read, process and output analog signals in addition to binary signals. In contrast to binary signals, analog signals take on any number of values within a specific range. Possible analog variables include:
 Temperature
 Pressure
 Speed
 Fill level
 pH value

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

9

What you should know about analog technology 2.1 Overview

Transducers

Controllers are only capable of processing analog values in the form of bit patterns. For this purpose, transducers which can be connected to the analog module measure physical variables such as pressure or temperature. The analog input module reads this analog value in the form of current, voltage or resistance. To enable the CPU to process the current or voltage measured, an integrated analog-to-digital converter in the analog input module converts the value into a 16-bit integer value. Depending on the type of measurement, you can use the following transducers:  Voltage transducers  Current transducers
­ 2-wire transducers ­ 4-wire transducers  Resistance transducers ­ 4-wire connection ­ 3-wire connection ­ 2-wire connection  Thermocouples
Additional information on wiring various types of transducers to analog inputs can be found in Wiring transducers (Page 65).
Example
Speed is acquired using a transducer which converts the speed range of 0 to 1500 rpm to a voltage range of 1 to 5 V. At a measured speed of 865 rpm, the transducer outputs a value of 3.3 V.
The resulting voltage value is calculated as follows:

The graph below illustrates voltage acquisition:

Figure 2-1 Speed measurement 10

Analog value processing Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.1 Overview
Analog-to-digital conversion
A CPU processes information exclusively in digital format. The analog value is therefore converted into a bit pattern. Conversion is done using an integrated ADC (analog-to-digital converter) in the analog input module. For the CPU, this conversion always returns a 16-bit word for SIMATIC products. The ADC used digitalizes the analog signal and approximates its value with a stepped curve. Resolution and conversion speed are the most important ADC parameters.
 Analog value  Digital value
Figure 2-2 Approximation of an analog graph with low- and high-resolution stepped curves
Digital-to-analog conversion
Once the CPU has processed the digital signal, an integrated DAC (digital-to-analog converter) in the analog output module converts the output signal to an analog current or voltage value. The resulting value of the output signal corresponds to the output value used to control the analog actuators. Such actuators include, for example, small servo drives or proportional valves. You will find more information on wiring actuators in Wiring loads/actuators (Page 103).

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

11

What you should know about analog technology 2.1 Overview
Important parameters of analog modules
Alongside the type and range of measurement, the precision, resolution and conversion time are the main points to consider when selecting an analog module. For some applications such as systems which cover a large area, common mode or channel isolation are also important. The parameters listed here are examined in more detail in the following pages.
Processing analog signals
The following figure demonstrates analog signal processing in a PLC.

Figure 2-3 Analog value processing

Analog value processing

12

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.2 Precision/resolution

2.2

Precision/resolution

The resolution of an analog module depends on the converter and its external circuitry. An approximation of the analog signal to be acquired/output is returned by a stepped curve. The resolution determines the number of increments of the analog value along this stepped curve. A higher module resolution reduces the length of increments and adds precision to the digitization of the analog signal.

Approximation of an analog value
The figures below show the approximation of an analog value by means of a stepped curve. A low resolution only returns a rough approximation of the actual curve (left figure), while the approximation is more precise at higher resolutions (right figure).

 Analog value  Digital value
Figure 2-4 Approximation of an analog curve with a stepped curve
Visualization of the measuring range at a resolution of 13 bits and 16 bits
The unipolar measured value from a module having a resolution of 13 bits (= 12 bits + S) is segmented into a total of 212 = 4096 increments. The smallest increment in a measuring range of 0 to10 V is 10 V/4096, equal to 2.4 mV.
A module with16-bit (= 15 bits + S) resolution thus provides an increment of 0.3 mV. If the resolution increases by one bit, the number of increments doubles and the width of an increment halves.
If the resolution increases from 13 bits to 16 bits, the number of increments increases eightfold from 4096 to 32768. With a resolution of 13 bits, the smallest value that can be displayed is therefore 2.4 mV. By contrast, this value is approximately 0.3 mV at a resolution of 16 bits.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

13

What you should know about analog technology 2.2 Precision/resolution

Measuring ranges
For the display of the measuring range, SIMATIC S7 distinguishes between the rated range, the overrange and underrange, and the overflow or underflow. This distinction allows you to recognize whether the measured value is actually in the measuring range determined in the technical specifications. The overflow and underflow ranges are reserved for error detection.
At a resolution of 16 bits the theoretically possible 32768 increments are distributed across a voltage range of 11.852 V, which means that only 27648 increments are actually available for the resolution of a measuring range of 10 V. The minimum value which can be represented is therefore 0.3617 mV (see table).

Table 2- 1 Example of resolution for the 0 to 10 V measuring range of a SIMATIC S7 module

Value (increments)

Decimal

0 to 10 V

32767

11.852 V

32512

32511

11.759 V

27649

27648

10.0 V

20736

7.5 V

1

361.7 V

0

0 V

not relevant for this example as negative values are not possible

Voltage measuring range Range Overflow Overrange Rated range
Underrange Underflow

The digitized visualization of the input ranges, separated into bipolar and unipolar input ranges, is shown in the section Visualization of the input ranges (Page 62). The digitized visualization of the output ranges, separated into bipolar and unipolar output ranges, is shown in the section Visualization of the output ranges (Page 63). You will find a summary of all measuring ranges which you can use with your analog module in the corresponding device manual.

Analog value processing

14

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.2 Precision/resolution
Over and underrange
It may happen for control processes with high signal jumps that the settling curve of the signal briefly leaves the rated range until it reaches the setpoint. The over and underrange ensures that no error is reported while the signal is not in the rated range. If the signal exceeds the over or underrange, however, and reaches the overflow or underflow range, the error state "Overflow" or "Underflow" is diagnosed. This means the over or underrange correspond to a tolerance range between the rated range and the overflow or underflow. Additional information on the settling time is available in the section Settling and response times of analog output modules (Page 52).
The figure below shows the rated range, the overrange and overflow of a unipolar measuring range. The signal leaves the rated range briefly during the settling phase.

 Analog output signal
tE Settling time of the signal to the setpoint t1 Module ends conversion at the terminal of the analog output channel and outputs the signal t2 Signal has settled and the specified analog output value has been reached
Analog module precision
The precision of an analog module is specified as a percentage value or absolute value, for example, in K or °C. This characterizes the total error of measured value acquisition. The basic error limit at 25 °C, as well as the operational limit, are specified in accordance with international standard IEC 61131, which also forms the basis for European Standard EN 61131. For more information on the operational/basic error limits, refer to the Operational and basic error limits (Page 23) section.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

15

What you should know about analog technology 2.2 Precision/resolution

Relation between resolution and precision
A certain resolution must be given to reach a specific precision (operational error).

Example

Measuring error as a result of digitization at a resolution of 8 bits and 14 bits
An analog module has a measuring range of 0 V to 10 V. A resolution of 8 bits represents a total of 256 values. This is equivalent to a minimum possible voltage step of 39 mV or 0.4% of the measuring range end value. A resolution of 14 bits represents a total of 16384 values. This is equivalent to a minimum possible voltage step of 0.61 mV or 0.006% of the measuring range end value.
The percentages derived in this way also represent the theoretical best-case values for the operational limit. With a resolution of 8 bits and a measuring range of 0 to 10 V, it is therefore impossible to achieve a precision of more than 0.4 %. In practical life, this value would be clearly worse, depending on the implemented circuitry.

Calculating the maximum measuring error
The maximum measuring error of a 0 to 10 V analog module with an operational limit of ±0.5 % across the entire temperature range is calculated as follows:
10 V x 0.5/100 = 50 mV
This means the maximum measuring error is approximately ±50 mV. This also means that each analog voltage input is subject to a distortion of ±50 mV across the entire input range. A voltage of 3.5 V that is to be measured can therefore be visualized by any value between 3.45 V and 3.55 V.
For more information on the operational/basic error limits, refer to the Operational and basic error limits (Page 23) section.

Analog value processing

16

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.3 Scaling analog values

2.3

Scaling analog values

Scaling

It is often necessary to calculate the actual process value rather than increments (e.g., 10 V = 27648 increments) for further processing of digitalized analog values. The conversion of a value range (e.g., -27648 to +27648 increments) to the original physical quantity (e.g., 0 to 500 liters) is referred to as scaling.

Scaling blocks

STEP 7 offers the suitable program block for scaling of analog values. The SCALE block is included in the STEP 7 scope of delivery and permits input of a high and low limit (e.g., 0 to 500 liters).

Example

In the example below the fill level of a tank with a capacity of 500 liters is to be measured. The transducer used measures a voltage of -10 V with an empty tank and a voltage of +10 V with a full tank. The analog module converts the voltage range from -10 V to +10 V into the value range -27648 to +27648 and converts this range into the original quantity of 0 to 500 liters with the SCALE program block.

Figure 2-5 Scaling in the SCALE program block
The analog value at input IN is read directly by the module or is transferred by a data interface in INT format. The input LO_LIM is used to determine the low limit (0 liters) and HI_LIM to determine the high limit (500 liters) of the physical quantity. The output OUT outputs the scaled value (physical quantity) as floating-point number (LO_LIM <= OUT <= HI_LIM). You can assign parameters via the input BIPOLAR to specify if only positive or only negative values are to be converted. If the parameter receives an operand with the state '0', there is a unipolar scaling. An operand with the state '1' results in a bipolar scaling. The output RET_VAL outputs an error code in case of an error (e.g., overflow) and the value '0' in case of an error-free execution.
Additional information on the SCALE block can be found in the STEP 7 online help.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

17

What you should know about analog technology 2.3 Scaling analog values
Unipolar and bipolar measuring ranges
The measurement of the fill level in our example took place within a bipolar measuring range. In addition to the positive voltage the transducer also provides negative voltage. Because the tank volume is mapped to the range from -27648 to +27648 increments, the measurement of the fill level takes place with twice the resolution () as in the unipolar measuring range.
Note Transducers The prerequisite for a measurement within a bipolar measuring range is that the used transducer supports bipolar measuring ranges.

Figure 2-6 Bipolar measuring range
The measurement of the fill level in the bipolar measuring range takes place with twice the resolution () as in the unipolar measuring range.

Figure 2-7 Unipolar measuring range 18

Analog value processing Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.4 Unscaling analog values

2.4

Unscaling analog values

Unscaling

The output of scaled analog values often requires conversion of the analog value calculated by the user program into the value range of the analog output module. This conversion is referred to as unscaling.

Unscaling blocks
STEP 7 offers the suitable program block for unscaling of analog values. The UNSCALE block is included in the STEP 7 scope of delivery and permits the input of a high and low limit that defines the range of the program value.

Example

An analog value from 0.0 to 100.0% calculated by the user program is to be converted with the UNSCALE block to the value range -27648 to +27648. When the unscaled value is output to an analog output module, this module addresses an analog actuator (e.g., modulating valve). The actuator is to be addressed at a program value of 0% with the minimum value (-10 V or -20 mA) and at 100% with the maximum value (+10 V or +20 mA).

Figure 2-8 Unscaling in the UNSCALE program block
The value calculated by the program must be transferred in the REAL format (IN). You use the input LO_LIM to determine the low limit (0.0%), and HI_LIM to determine the high limit (100.0%) within which the program value moves. The unscaled value is output in INT format at the OUT output. You can assign parameters via the input BIPOLAR to specify if only positive or only negative values are to be converted. If the parameter receives an operand with the state '0', there is a unipolar scaling. An operand with the state '1' results in a bipolar scaling. The output RET_VAL outputs an error code in case of an error and the value '0' in case of an error-free execution.
Additional information on the UNSCALE block can be found in the STEP 7 online help.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

19

What you should know about analog technology 2.4 Unscaling analog values Unipolar and bipolar measuring ranges
The figure below shows the scaling for an actuator that is to be addressed at a program value of 0% with the minimum value 0 (0 V or 0 mA) and at 100% (+27648) with the maximum value (10 V or 20 mA).
Figure 2-9 Unipolar measuring range The figure below shows the scaling for an actuator that is to be addressed at a program value of 0% (-27648) with the minimum value 0 (-10 V or -20 mA) and at 100% (+27648) with the maximum value (+10 V or +20 mA).

Figure 2-10 Bipolar measuring range 20

Analog value processing Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.5 Linearity errors

2.5

Linearity errors

Definition

Linearity denotes the deviation of the actual A/D or D/A conversion from the ideal lines within a specified measuring range. The linearity error therefore represents the deviation of the real transmission function from the ideal straight line. The error is given in the technical data as a percentage of the rated range of the analog module.
The figure below shows the linearity error of an ADC, magnified for better visibility.

Example

Figure 2-11 Linearity errors
An error of ±1 mV is returned at an input range of ±10 V and a linearity error of ±0.01%. The error is calculated as follows: 10 V · 0.01 % = 1 mV The linearity error information given in the technical specifications is taken into account in the operational limit. You will find a detailed description of the operational limit in Operational and basic error limits (Page 23).

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

21

What you should know about analog technology 2.6 Repeat accuracy

2.6

Repeat accuracy

Definition

The repeat accuracy is the maximum deviation in measured/output value for the same input signal or output value after another value has been created or output. Other parameters, e.g. the Temperature parameter, remain unchanged. The repeat accuracy refers to the rated range of the module and applies in a steady temperature state.

Measured value variance
The repeat accuracy provides information on the variance of individual measurements. The smaller the variance, the greater the repeat accuracy. The repeat accuracy is therefore one of the most important properties of measuring devices. In the technical data, the repeat accuracy is given as a percentage of the input or output range at 25°C in the steady state.

Example

The specified repeat accuracy for an analog input module as a percentage of the measuring range end value is ±0.02 %. This corresponds to a repeat accuracy of 2 mV for any value within the measuring range of ±10 V. If you change the measured value from 10 V to -10 V, for example, and then measure with 10 V again, the measured value deviation may not exceed ±2 mV.

 Good repeat accuracy  Poor repeat accuracy
Figure 2-12 Repeat accuracy of measured values output

Analog value processing

22

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.7 Operational and basic error limits

2.7

Operational and basic error limits

Introduction

The following section shows you how to determine the operational or basic error limits and thus the measurement error or output error with the help of the technical specification. The worst-case configuration ensures that the module will not exceed the specified value within the valid operational range.
The precision of analog input or output modules is only part of the precision of the entire measurement section. A measurement section usually consists of transducer, transmitter, transmission line as well as input / output module.

Operational limit
The operational limit is the entire measurement or output error rate of the analog module in the rated range in temperature-settled state within the approved temperature range.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

23

What you should know about analog technology 2.7 Operational and basic error limits Basic error limit
The basic error limit is the entire measurement or output error rate in the rated range at an ambient temperature of 25 °C and temperature-settled state. The basic error limit of the module is more or less a theoretical value, because a constant ambient temperature of 25 °C is rarely maintained in plants. For this reason, the operational limit always takes priority in terms of the practical selection and assessment of a module. Note The operational limit and basic error limit percentages listed in the technical specifications always relate to the maximum possible I/O value (the measuring range end value) in the rated range of the module. The following image shows an example of operational and basic error limits in comparison with the ideal curve.
Figure 2-13 Operational and basic error limits

Analog value processing

24

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.7 Operational and basic error limits
Example of output error calculation
An analog output module is used for voltage output in a range of 0 to 10 V. The module is operating at an ambient temperature of 30 °C, which means that the operational limit applies. Technical specifications of the module:  Operational limit for the voltage output: ±0.1 % The result is an output error of approximately ±10 mV (±0.1 % of 10 V) across the rated range of the module. For example, the output value may range from 2.49 V to 2.51 V at an actual voltage of 2.50 V.
Note Bipolar measuring ranges The calculation also applies to bipolar measuring ranges. An error of ±10 mV is also returned at an input range of ±10 V and a linearity error of ±0.1%.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

25

What you should know about analog technology 2.8 Temperature error

2.8

Temperature error

Introduction

Analog modules are exposed to operational conditions that have an impact on their precision and on the measurement results they return. Temperature errors develop, for example, if the operating temperature of the module deviates from the ambient temperature of 25 °C. These temperature errors within the approved temperature range are taken into account in the operational limit.

Definition

The temperature error identifies the maximum drift of measuring/output values caused by fluctuation of the ambient temperature at the analog module. The maximum drift can occur at any ambient temperature. The temperature error is specified depending on the module used in percent per degree Celsius and/or percent per Kelvin, e.g. ±0.005%/K, and relates to the measuring range end value of the analog module.

Operational limits of compensation
The temperature error of the reference junction temperature compensation function only occurs with thermocouple measurements. The temperature error of compensation is added to the actual temperature error if "Internal reference junction" operating mode is selected. The temperature error of compensation is defined in the technical specifications as a percentage of the physical rated range of the analog module or as an absolute value in °C.
Note Calculating the error in thermocouple measurements
Add the error of a thermocouple measurement to the error of the compensation measurement to determine the total error of a thermocouple measurement. These errors are defined in the respective manual.

Example

In this example, the total error of the temperature measurement is determined with the help of a type K thermocouple. The type K thermocouple takes measurements at a temperature range from -270 °C to +1372 °C.
The technical specifications state an operational limit of >-200 °C ±2.4 K for the type K thermocouple. The temperature error of compensation amounts to ±6 °C. The total temperature error is measured as follows at a temperature of >-200 °C:
Operational error (±2.4 K) + temperature error of compensation (±6 °C) = ±8.4 °C.

Analog value processing

26

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.9 Interference frequency suppression

2.9

Interference frequency suppression

Definition

The interference frequency suppression function is applied to analog input modules to suppress the noise caused by the frequency of the AC voltage supply used.
The frequency of the AC voltage supply is likely to have a negative effect particularly on the values returned by measurements in the low voltage range and on thermocouples.

Parameter assignment
The line frequency at which the system is operated can be set by means of module parameters, for example, in STEP 7.

Figure 2-14 Interference frequency suppression
The conversion time changes depending on the set interference frequency suppression. The data sheets of the respective module define this dependency.
Please note the following when selecting interference frequency suppression:
The higher the frequency setting, the shorter the conversion time.
Note Line frequency
Always select the interference frequency based on the line frequency used. Mismatch errors must be expected if a frequency that deviates from this line frequency is set, for example, to reduce the conversion time. In this case, the specified technical data and, in particular, precision are possibly outside the specified range.
Smoothing
By smoothing analog values, you achieve an additional improvement for the suppression of interference frequencies. For more information on the smoothing of analog values, refer to the section Smoothing (Page 54).

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

27

What you should know about analog technology 2.9 Interference frequency suppression
Line frequencies used
The line frequency is the frequency used in an electricity network for AC supply. It is measured in hertz and indicates the number of oscillations per second in a periodic signal. A line frequency of 50 Hz, for example, means 50 oscillations per second.
Europe, Australia and most countries in Asia and Africa use a line frequency of 50 Hz. North and Central America and most countries in South America have electricity networks with a line frequency of 60 Hz.
Frequencies of 400 Hz are most commonly used in on-board networks for airplanes, in the aerospace sector and for military applications. One reason for this is that engines with a line frequency of 400 Hz can usually be made smaller and lighter. As, however, it is not economic to transport such high frequencies over large distances, 400 Hz applications are usually subject to significant spatial limits.
A frequency of 16 2/3 Hz is used for the traction power supply in Germany, Austria and Switzerland. Some modules of the SIMATIC S7 product range also support the interference frequency suppression of this line frequency. The configurable interference frequency suppression in these cases is 16.6 Hz.

Analog value processing

28

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.10 Common mode interference (UCM)

2.10

Common mode interference (UCM)

Definition

Common mode interference denotes interference voltages and currents in the lines connecting electrical devices and system components. They affect both the positive and negative line with the same phase angle and amplitude. The interference signal needs an additional current path to affect the utility signal. This current path is usually provided by common reference potential, e.g. earth or ground connection, of the utility signal and interference source.

Common mode interference in analog modules
Common mode interference occurs in analog input and output modules if their reference potential is different from the reference potential of the connected sensor or actuator.
Common mode interference is most likely to occur when analog modules are operated with grounded sensors. The size of the overall system means that voltage differences may develop between machine components with grounded sensors and the analog module reference. These voltage differences affect both the positive and negative signal path equally, which is why they are termed common mode interference.
In operation with non-grounded sensors, the occurrence of common mode interference is not as obvious as in grounded operation. Nevertheless, capacitive or inductive coupling can also create voltage differences in such cases which have the effect of common mode interference. Depending on the conditions in grounded and non-grounded operation, common mode voltage can occur as direct or as alternating voltage.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

29

What you should know about analog technology 2.10 Common mode interference (UCM)

Example

The following figure of an analog module with two inputs (Ch1/Ch2) shows the coupled interference voltages at the inputs (UCM1/UCM2) as well as an interference voltage coupled between these inputs (UCM3). Common mode rejection indicates the extent to which these interference signals can be suppressed. It is calculated using the following equation: CMR [dB] = 20 · log (UCM / Ua)

Figure 2-15 Common mode voltage coupled between two inputs If there is common-mode voltage (UCM), the equation is solved for Ua to calculate the measuring error (Ua):
Note The common mode rejection (CMR) is detailed in "Common mode interference" in the technical data of the device manual for your analog module.

Analog value processing

30

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.11 Series mode interference (USM)

2.11

Series mode interference (USM)

Definition Causes

Series mode interference is interference voltages and currents affecting the connection lines in opposite directions. They have opposite polarity in the positive and negative directions. Series mode interference currents cause a voltage drop at the input impedance that has the effect of an interference voltage.
Series mode interference is caused by capacitive or inductive coupling. Inductive coupling generates a magnetic flow that is radiated between adjacent current-carrying conductors. This induces an interference voltage in the conductor. Galvanic coupling is given where different circuits influence each other due to common conductor sections, e.g. common ground connection.
The diagram below shows series mode interference as a voltage source (USM) connected in series to the actual measuring signal (UM). The index "SM" stands for "Series Mode". Series Mode rejection indicates the extent to which these interference signals are suppressed. It is calculated using the following equation: SMR [dB] = 20 · log (USM / Ua)

Figure 2-16 Capacitive or inductive interference coupling to the signal cable The voltage (Ua) measurement error is calculated by solving the equation for Ua.
The following equation shows the calculation of current (Ia) measuring errors using a current input.

Note
The series mode rejection (SMR) is detailed in "Series mode interference" in the technical data of the device manual for your analog module. The level of input resistance (Rein) is also specified in the technical data.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

31

What you should know about analog technology 2.12 Interference voltage suppression

2.12

Interference voltage suppression

Definition Example

Interference voltage suppression gives the factor by which the interference signal is suppressed in measurement value acquisition. Higher values reduce the effect of interference on the measurement signal. The technical data differentiates between "Common mode interference" and "Series mode interference". Interference voltage suppression is specified in decibels.
The diagram below shows the measuring error for interference voltages in volts and interference voltage suppression of 0 to 120 dB.

Figure 2-17 Interference voltage suppression
With an interference voltage suppression of 40 dB and an interference voltage of 1 V, the measured value is only distorted by 0.01 V.
Note Interference-free design Disturbance variables can be substantially reduced by means of appropriate grounding and shielding to increase interference immunity of the configuration. You will find a detailed description of how to avoid interference in the Configuring interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) function manual.

Analog value processing

32

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.12 Interference voltage suppression

Common mode rejection
The table below sets out the possible common mode rejection specifications in the technical data of an analog input module:

Interference voltage suppression for f = n x (f1 ± 1 %), (f1 = interference frequency), n = 1, 2, ...

Common mode interference

> 100 dB

Common mode voltage, max.

10 V

If the interference frequency is configured as 50 Hz, the specified interference voltage suppression for common mode interference will only apply for the frequencies 50 Hz ±1 %, 100 Hz ±1 %, 150 Hz ±1 %, etc. Immunity is lower for all other frequencies. Interferences caused by the line voltage distort the measured utility signal in the ratio of 100,000 : 1. An interference voltage amplitude of 1 V, for example, will affect the utility signal by 10 V.

The Common Mode voltage (UCM) defines the maximum permitted deviation of the potential between two channels and between one channel and analog ground. The interference voltage suppression defined in the technical specifications must not be exceeded. If the maximum common mode voltage specified, for example, 10 V, is exceeded, the analog signal is processed incorrectly. Depending on the module used, this error may be diagnosed and an error message output. The maximum common mode voltage may be exceeded as a result of varying input or overly long lines.

Series mode rejection
The table below sets out the possible series mode rejection specifications in the technical data of an analog module:

Interference voltage suppression for f = n x (f1 ± 1 %), (f1 = interference frequency), n = 1, 2, ...

Series mode interference

> 60 dB

If the interference frequency is configured as 50 Hz, the specified interference voltage suppression for series mode interference will only apply for the frequencies 50 Hz ±1 %, 100 Hz ±1 %, 150 Hz ±1 %, etc. Immunity is lower for all other frequencies. Overall, interference caused by the line voltage distorts the utility signal measured by 1000 : 1. For example, an interference voltage amplitude of 1 V will affect the utility signal by 1 mV.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

33

What you should know about analog technology 2.13 Crosstalk between channels

2.13

Crosstalk between channels

Origin of the term
The term crosstalk/XT was originally used in the field of telecommunication to denote unwanted coupling of voice signals between two cable conductors of different subscribers.

Definition

Crosstalk between signal channels denotes the interactive influence between two independent channels as a result of leakage currents and capacitive or inductive coupling. Crosstalk between the channels changes the signal by the value of the amplitude of the crosstalk signal.

Causes

Technically, it is not feasible to totally isolate the module channels from environmental conditions. This means that it is always possible for leakage currents or disturbance coupling having an interactive effect.

Figure 2-18 Crosstalk between two channels
The diagram shows the effects of crosstalk for the user with two channels (Ch1/Ch2) of an analog module. The crosstalk value is the factor by which the utility signal at a second channel Ua2 is affected by the signal at the first channel Ue1. The measuring error (Ua1) can be calculated using the following equation:

Analog value processing

34

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.13 Crosstalk between channels
Example of crosstalk attenuation
The "crosstalk between inputs" value in the technical specifications is defined as a value of >-100 dB at a measuring range of -10 V to +10 V on channel 1 of an eight-channel analog input module. The voltage at the input has an amplitude of 10 V. What is the error caused by crosstalk at channel 0 (measuring range ±10 V) and channel 2 (measuring range ±80 mV)? 100 dB are equal to a factor of 100,000. The measured values at channels 0 and 2 to 7 are therefore affected by 10 V / 100,000 = 100 V. This distortion is added to or subtracted from the pending measuring signal and its effect depends on the selected measuring range.  Channel 0: 100 V / 10 V = 0.001 %  Channel 2: 100 V / 80 mV = 0.125 % A voltage of 10 V set at channel 1 distorts the measured value at channel 0 by 0.001% and the measured value at channel 2 by 0.125%. The measuring error resulting from crosstalk in this example is therefore 0.001 % or 0.125 %. The basic error limit already includes the error generated as a result of crosstalk between the channels.
Calculating measuring error
You calculate the measurement error at channel 1 in this example based on a change in the measurement voltage of 10 V at channel 2. The crosstalk (XT [dB]) value is defined in the technical specifications in the manual of the analog module that you are using.
A change in the measurement voltage of 10 V at channel 2 causes a measurement deviation of 0.001 V at channel 1.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

35

What you should know about analog technology 2.14 Diagnostics

2.14

Diagnostics

Diagnostics for analog modules
SIMATIC analog modules can diagnose errors. A number of different types of diagnostics are available for analog modules in STEP 7. Please note that the parameter assignment options vary depending on the analog module and product family used. More detailed information on the types of diagnostics can be found in the device manual for your analog input or analog output module.
Proceed as follows to select the diagnostics types of the analog module used:
1. Open STEP 7.
2. Select the analog module in the Device view.
3. Select the "Properties" tab.
4. Select the inputs or the required channel of the analog module in the Inspector window.

Table 2- 2 Overview of diagnosable errors

Type of diagnostics Wire break No supply voltage L+ Overflow Underflow Common mode error Short-circuit Overload Reference junction

Analog input module       

Analog output module       -

Diagnostics of the analog module are carried out while the system is in operation, on the basis of the current output variables such as current or voltage. If the output current or output voltage is no longer sufficient, the module will not be able to run reliable diagnostics. The limits within which diagnostics are possible are specified in the technical data for each module.

The module reports the diagnosed state to the CPU using a diagnostics error interrupt. If several diagnostics are pending at the same time, the diagnostics with the highest priority is reported to the CPU first. Diagnostics are output on LED displays on the affected module, on the CPU display, on the Web server or on an HMI device.

The configurable diagnostics types depend on the respective selected measuring type or output type. The following tables shows the relationship between the diagnostics types, measuring types or output types of an analog input module or analog output module.

Analog value processing

36

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.14 Diagnostics

Diagnostics Analog input modules

Table 2- 3 Diagnostics types of an analog input module to be configured depending on the measurement type "Voltage"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break (1 to 5 V)
    

Overflow
     *

Underflow
     *

Common mode error
  -

Reference junction
-

Short-circuit
  

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Table 2- 4 Diagnostics types of an analog input module to be configured depending on the measurement type "Current (4-wire transducer)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break (4 to 20 mA)
     

Overflow
     *

Underflow
     *

Common mode error
  -

Reference junction
-

Short-circuit
** ** 

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow" ** Diagnostics for encoder supply only

Table 2- 5 Diagnostics types of an analog input module to be configured depending on the measurement type "Current (2-wire transducer)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break (4 to 20 mA)
     

Overflow
     *

Underflow
    *

Common mode error
  -

Reference junction
-

Short-circuit
** ** 

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow" ** Diagnostics for encoder supply only

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

37

What you should know about analog technology 2.14 Diagnostics

Table 2- 6 Configurable diagnostics types of an analog input module depending on the measurement type "Resistor (4-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
    

Overflow
    *

Underflow
   *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Table 2- 7 Configurable diagnostics types of an analog input module depending on the measurement type "Resistor (3-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
     

Overflow
     *

Underflow
   *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Table 2- 8 Configurable diagnostics types of an analog input module depending on the measurement type "Resistor (2-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
   

Overflow
   *

Underflow
   *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Analog value processing

38

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.14 Diagnostics

Table 2- 9 Configurable diagnostics types of an analog input module depending on the measurement type "Thermal resistor (4-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
    

Overflow
    *

Underflow
    *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Table 2- 10 Configurable diagnostics types of an analog input module depending on the measurement type "Thermal resistor (3-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
     

Overflow
     *

Underflow
     *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Table 2- 11 Configurable diagnostics types of an analog input module depending on the measurement type "Thermal resistor (2-wire connection)"

S7-1500 ET 200MP ET 200SP ET 200AL ET 200eco PN ET 200pro

No supply voltage L+
  -

Wire break
   

Overflow
   *

Underflow
     *

Common mode error
-

Reference junction
-

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

39

What you should know about analog technology 2.14 Diagnostics

Table 2- 12 Diagnostics types of an analog input module to be configured depending on the measurement type "Thermocouple"

S7-1500 ET 200MP ET 200SP ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
   -

Overflow
    *

Underflow
    *

Common mode error
  -

Reference junction
    

Short-circuit
-

* For ET 200pro, the parameters "Overflow" and "Underflow" are combined to the parameter "Overflow/Underflow"

Diagnostics for analog output modules

Table 2- 13 Diagnostics types of an analog output module to be configured depending on the measurement type "Voltage"

S7-1500 ET 200MP ET 200SP ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
-

Overflow
   -

Underflow
   -

Short-circuit
    

Overload
 -

Table 2- 14 Diagnostics types of an analog output module to be configured depending on the measurement type "Current"

S7-1500 ET 200MP ET 200SP ET 200eco PN ET 200pro

No supply voltage L+
    -

Wire break
    

Overflow
   -

Underflow
   -

Short-circuit
-

Overload
 -

Note Measuring ranges
Note that the diagnostics types that can be parameterized depend on the selected measurement/output type as well as on the respective measuring range.
Note Minimum output values
Certain errors such as wire break and short circuit cannot be diagnosed below a given current or voltage value. Diagnostics are only possible again once the output returns to above this minimum value.

Analog value processing

40

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.14 Diagnostics

No supply voltage L+
You can diagnose a missing or low supply voltage L+ at the analog module by activating the "No supply voltage L+" checkbox. If the supply voltage is missing or too low, the status and error display on the analog module will provide the relevant information. The entry in the diagnostics buffer also makes this information available to the CPU.
If there is no supply voltage, no other types of diagnostics available are possible either.

Wire break

The term wire break denotes a failure state that is triggered by the interruption of a usually closed electrical circuit.
Wire break in analog input modules
The "Wire break" diagnostics function facilitates the detection of errors during system operation. In STEP 7 you define the module properties by setting various parameters. Depending on the module used, you may, for example, be able to set a current limit parameter at which a wire break is to be reported.

Figure 2-19 Configuring the wire break current limit for an analog input module in STEP 7
Usually, the live zero technique is deployed to detect wire breaks. The start of the measuring range for the standard live zero signal of 4 to 20 mA is assigned the 4 mA signal value. A wire break between the input and sensor can therefore be detected based on the missing current flow. Instead of a current signal, you may also use a voltage signal from 1 to 5 V to detect a wire break. The "Wire break" diagnostics function can therefore only be configured for a range of 4 to 20 mA or 1 to 5 V.
For "Resistor", "Thermal resistor" and "Thermocouple" measurements, a current is impressed into the line. If a wire break occurs, the flow of current is interrupted and the analog module therefore detects the wire break.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

41

What you should know about analog technology 2.14 Diagnostics

Wire break in analog output modules
The analog signal output is used for wire break detection. Reliable wire break diagnostics is not possible if the voltage is too low. In this case, the diagnostics function is deactivated without triggering a change of the diagnostics status.
The current limit up to which the module will diagnose wire break can be found in the technical data for the module.

Overflow/underflow
The resolution of the measuring range of an analog input module distinguishes between the rated range, the overrange or underrange, and the overflow or underflow. The following table assign the number of increments into which the measured signal is divided to the various voltage measuring ranges.

Table 2- 15 Voltage measuring range ±10 V of an analog input module

Value (increments) Decimal 32767 32511 27649 27648 0 -27648 -27649 -32512 -32768

Voltage measuring range ±10 V > 11.759 V 11.759 V
10.0 V 0 V -10 V
-11.759 V < -11.759 V

Range Overflow Overrange Rated range
Underrange Underflow

As of a decimal value of 32512, the value acquired is beyond the overrange and is no longer valid. If this is the case, the error status "Overflow" is diagnosed. The overrange is a tolerance range before overflow is reached.

As of a decimal value of -32513, the value acquired is below the configured measuring range and is no longer valid. If this is the case, the error status "Underflow" is diagnosed. The underrange is the equivalent of the overrange, but for negative values.

An "Overflow" or "Underflow" diagnostics may be caused, for example, by a wire break, an incorrect measuring range or incorrect wiring.

Note Accuracy
The accuracy specified in the technical data of the relevant module is only guaranteed within the rated range.

Analog value processing

42

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.14 Diagnostics
Common mode error
Activating the "Common mode" checkbox diagnoses a violation of the maximum potential difference UCM. A violation of the permitted potential difference UCM has occurred, for example, between the reference point of the measuring inputs and the analog ground MANA . Possible causes:  Wiring error  Environments with EMC disturbance  Incorrectly grounded transducers  Long line lengths  Sensor not connected  2-wire transducer connected to MANA
Note With 4-wire transducers, a current meter connected in series will result in too great a drop in voltage.
Potential differences UCM beyond the valid limits may lead to measurement errors and malfunctions. If you want to ensure that the maximum value is not exceeded, interconnect the measuring inputs and analog ground MANA with an equipotential bonding cable. More detailed information can be found in Wiring transducers.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

43

What you should know about analog technology 2.14 Diagnostics

Short-circuit

Activating the "Short circuit" checkbox activates short-circuit diagnostics for an analog channel. The diagnostics function is triggered by channel overload.
Possible causes:
 Wiring error (e.g. short circuit between conductors at the connections or in the cable)
 Use of faulty or incorrect actuators (e.g. internal short circuit or low input resistance as a result of actuator failure)
The analog signal output is used for short circuit detection. If the voltage is too low, reliable short-circuit diagnostics are not possible. In this case, the diagnostics function is deactivated without triggering a change of the diagnostics status. The voltage limit up to which the module will diagnose a short circuit can be found in the technical data for the module.
SIMATIC modules have a special protective circuit to prevent short circuit. The short circuit current is limited internally in the module. The level of short circuit current is specified in the technical data of your analog module.
Note Overload
Please note that overload exposes the modules are exposed to a greater thermal load. This can affect the output channels. You should therefore avoid continuously running analog output modules in overload.

Reference junction
This type of diagnostics can only be selected for analog input modules for "Thermocouple" measuring. Selecting the "Reference junction" check box diagnoses an error on the reference channel for compensating the reference junction temperature.
The temperature at the reference junction of a thermocouple is measured at the reference channel of the module using an external thermal resistor (RTD). If an error occurs, for example as a result of a wire break, the temperature measured at the reference junction of the thermocouple will no longer be compensated. The reference temperature may then be outside the valid range.
Additional information on connecting thermocouples and thermal resistors and on how they operate can be found in Thermocouples and Wiring transducers.

Analog value processing

44

Function Manual, 06/2014, A5E03461439-AC

Overload

What you should know about analog technology 2.14 Diagnostics
Activating the "Overload" checkbox activates the diagnostics of the thermal monitoring of the output level. The "Overload" diagnostics is triggered when the maximum temperature is exceeded at the output and is detected channel by channel. The maximum temperature may be exceeded for the following reasons:  Ambient temperature is too high  Output is being operated outside the specification
Note Overload Please note that overload exposes the modules to a high thermal load. This can affect the output channels. You should therefore avoid continuously running analog output modules in overload.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

45

What you should know about analog technology 2.15 Value status

2.15

Value status

Value status

In case of a faulty analog value, the analog module outputs the error values 0x7FFF (error value for overflow and all other error states) or 0x8000 (error value for underflow) for the affected channel. The user program is now able to detect and evaluate a channel error. The user also has the option to evaluate the system diagnostics event-driven by means of diagnostics alarms.
In addition to the error values 0x7FFF or 0x8000 and the configured diagnostic types, analog input and output modules provide diagnostics information by means of the Process image input (PII). It is referred to as Value status and transferred synchronously with the user data. The value status (Quality Information = QI) provides a statement regarding the validity of the input signal. A distinction is made between the quality level "Good" (signal valid = 1) and "Bad" (signal invalid = 0).
Note
For analog input modules, the use of the value status is an alternative to the evaluation of the channels by the error values 0x7FFF or 0x8000. Compared to the error values, the binary evaluation of the value status (0 or 1) in the user program is simpler and more clearly arranged.
For analog output modules, the value status informs you as to whether the written value can be output by the respective channel. Using the value status you can respond to this information without having to evaluate the diagnostics of the module in the first place.

Analog value processing

46

Function Manual, 06/2014, A5E03461439-AC

Example

What you should know about analog technology 2.15 Value status
Enabling the value status of an analog input module To enable the value status of an analog input module, follow these steps:  Select the required analog module in STEP 7.  Select "AI configuration" in the "Properties" tab of the analog module.  Click the "Value status" button.

Figure 2-20 Enabling the value status in STEP 7

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

47

What you should know about analog technology 2.15 Value status
An additional byte is occupied in the input address space of the respective module when you enable the value status. Each bit in this byte is assigned to a channel and provides information on, for example, whether the output value specified by the user program is actually queued at the module terminal (0= value is invalid; 1= value is valid).
Error occurrence
If a wire break occurs at an analog input module, for example, the current signal state is entered in the process image and the value status of the signal is set to "invalid". To trigger an indicator light in case of an error, for example, evaluate the value status in the user program.
Diagnostics alarms and value status
If you configure analog modules in a third-party product with the help of a GSD file and the diagnostics alarms are not evaluated event-driven, it is best to use the value status.
Note The Value status represents a group diagnostics which only gives the user a Good or Bad information. The Value status is not suitable for a more specific identification of the cause of the error (e.g., wire break, short circuit in the encoder cable or load voltage failure).

Analog value processing

48

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.16 Conversion time of an analog module

2.16

Conversion time of an analog module

Basic conversion time and conversion time of an analog input channel
The basic conversion time is the minimum time required by one single channel to convert analog values. The actual conversion time comprises both the basic conversion time and, depending on the analog input module used:
 Processing time for measuring resistance
 Processing time for wire break monitoring
 Processing time for overflow/underflow monitoring
 Processing time for checking common mode errors

Example

This example shows channel 6 of an analog input module for resistance measurement in the range of 6000 , a configured integration time of 20 ms, and activated wire break monitoring.
The conversion time of the channel is derived from the total of the following measurement variables:

Measurement variable
Basic conversion time Processing time for RTD/resistance (6000 ) Processing time for wire break monitoring in the RTD/resistance and thermocouple areas Conversion time of the channel

Time in ms 27 4 9 40

Conversion time of the analog output channels
The conversion time of an output channel starts with the transfer of the digital value from the internal memory of the module and ends with the digital-to-analog conversion.
The conversion time does not include the settling time for the analog signal at the module terminal. Detailed information on the settling time can be found in Settling and response times of analog output modules (Page 52).

Note Relationship between diagnostics and conversion time
While some diagnostics run parallel to the conversion and do not extend the conversion time, other diagnostics types can lead to an extension of the conversion time, as demonstrated in the example above.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

49

What you should know about analog technology 2.16 Conversion time of an analog module
Conversion time for high-speed analog modules
High-Speed analog modules (HS modules) are designed for faster processing of signals. HS modules offer fewer diagnostics and measurement types than standard modules (ST modules). You can find more information on HS modules in the section High-Speed analog modules (Page 113).

Analog value processing

50

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.17 Cycle time of an analog module

2.17

Cycle time of an analog module

Definition

The cycle time of an analog module represents the time that the module needs to process all channels used. The cycle time depends on the form of measured value acquisition used, e.g. multiplex or parallel measured value acquisition.

Sequential measured value processing
This procedure processes the analog channels in the module one after another (sequentially). For analog inputs, the values are connected to a converter, for example using a multiplexer, and sequentially converted.
The cycle time of the analog module is derived from the total conversion time of all activated analog channels of the module. STEP 7 provides the option of deactivating unused analog channels. to reduce the cycle time.
The figure below gives an overview of the factors that determine the cycle time of an nchannel analog module.

Figure 2-21 Cycle time of an analog module with multiplex conversion
Parallel measured value acquisition
This procedure processes the analog channels of a module at the same time (in parallel) rather than one after another. In parallel measured value processing, the cycle time of the module is usually constant and does not depend on the number of channels used. The goal of parallel measured value acquisition as it is applied by high-speed analog modules, for example, is a shorter cycle time. You can find more information on HS modules in the section High-Speed analog modules (Page 113).

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

51

What you should know about analog technology 2.18 Settling and response times of analog output modules

2.18

Settling and response times of analog output modules
Settling and response times provide information on the delay of the output of a specified analog output variable and its availability to the process.

Response time
The response time for a new output value is defined as the time between the input of a digital output value to the internal memory of the module and the value to be output at the analog output being reached (with a residual error of 1 %).
The response time (tA) is the sum of application time (tX), conversion time (tW) and settling time (tE):
tA = tX + tW + tE

Settling and response times of analog output modules

tA Response time

tX Application time

tZ

Module cycle time

tW Conversion time

tE Settling time

t1

New digital output value is available in the internal memory of the module

t2

Module activates the digital output value and starts conversion

t3

Module ends conversion at the terminal of the analog output channel and outputs the analog

signal

t4

Signal has settled and the specified analog output value has been reached (residual error 1 %)

Figure 2-22 Settling and response time of an output channel

Analog value processing

52

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.18 Settling and response times of analog output modules
Application time
The CPU/IM (interface module) writes new output values to the internal memory of the analog output module. The time required for this is not determined by the CPU/IM. These output values are converted asynchronously to their entry in buffer memory. The worst-case application time (tX) may be equal to the cycle time (tZ). This situation develops if the CPU writes a new value to the internal memory of the module immediately after the transfer of the value for conversion. This new value will not be processed until the next conversion.
The figure below shows acyclic access of the analog output module to output values from the internal memory in non-isochronous mode. You can find more information on isochronous mode in the paragraph on isochronous mode of the section High-Speed analog modules (Page 113).

tX

Application time

t1

New digital output value is available in the internal memory of the module

t2

Module activates the digital output value and starts conversion

t3

Module ends conversion at the terminal of the analog output channel and outputs the analog signal

Figure 2-23 Application of the output values

Conversion time
The conversion time of an output channel starts with the transfer of the digital value from the internal memory of the module (t2) and ends with the digital-to-analog conversion (t3).

Settling time

The settling time starts when the analog signal is output to the module (t3) terminals and ends when the output value (t4) is reached. The output value is reached as soon as the output signal has settled at its final value, taking into account a residual error of 1%.
The settling time depends on the type of output for the module, and on the connected load. The load for the analog output consists of connecting line and connected actuator. When the output is "Current", the settling time increases with high ohmic resistance. Inductive loads cause subsequent fluctuation in the output value. When the output is "Voltage", the capacitive load causes subsequent fluctuation.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

53

What you should know about analog technology 2.19 Smoothing

2.19

Smoothing

Using the smoothing functions
Most analog input modules allow you to configure smoothing for the measuring signal in STEP 7. Smoothing analog values reduces the effect of interference signals. Smoothing is useful with slow changes in measured values, for example in temperature measurements.
Smoothing principle
The measured values are smoothed by means of filtering. The module forms mean values from a specified number of converted (digitalized) analog values. Smoothing should not be confused with the integration of measured values over a defined period of time. It is therefore not possible to smooth measured signals to filter out a specific interference frequency. However, this smoothing returns more "stable" data values because it suppresses peaks which overlay the measured signal.
4 (none, weak, medium, strong) or more levels of smoothing can be configured by the user depending on the module used. The level determines the number of analog values from which the mean value is generated. The greater the smoothing factor, the better the filtering.

Figure 2-24 Selecting the smoothing level in STEP 7
Smoothing method
A smoothing algorithm is applied to a configurable number of measured values (e.g. 4, 8, 32) in line with the moving average. Each new measured value is factored in, and the oldest measured value then ignored. This mechanism suppresses interference peaks which overlay the measured signal. Utility signal jumps only become evident in the data after some time (see examples below).
The modules of the various product ranges use different smoothing algorithms. Smoothing is either linear or exponential. The differences are apparent particularly with strong smoothing and lead to a faster or slower rate of rise depending on the product used.
For information on whether or not a specific module supports customization of the smoothing function, please refer to the manual of the analog input module.

Analog value processing

54

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.19 Smoothing
Example 1: Linear smoothing
The diagram below shows the number of module cycles (k) it takes for each smoothing level setting for the smoothed analog value to reach approximately 100 % after a step response. This specification is valid for all signal changes at the analog input.
 No smoothing (k = 1)  Weak smoothing (k = 4)  Medium smoothing (k = 16)  Strong smoothing (k = 32)
Figure 2-25 Linear smoothing with four smoothing levels

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

55

What you should know about analog technology 2.19 Smoothing Example 2: Exponential smoothing
The diagram below shows the step response of the smoothing factor for different numbers of module cycles.
 No smoothing (k = 1)  Weak smoothing (k = 4)  Medium smoothing (k = 16)  Strong smoothing (k = 32)
Figure 2-26 Exponential smoothing with four smoothing levels

Analog value processing

56

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.20 Burden with 2-wire transducers

2.20

Burden with 2-wire transducers

2-wire transducers
2-wire transducers are current transducers which convert the process variable into a current signal of between 4 and 20 mA. Two connection lines supply the transducer with an output current of at least 4 mA. Additional information on connecting 2-wire transducers to analog input modules can be found in the section Wiring current transducers (Page 72).

Burden

The burden indicates how great the external resistance in a current loop may be. If the external resistance is greater than the specified burden, the 2-wire transducer supply voltage is too low. The burden consists of the resistance of the transducer and all other resistances connected to the current loop.
The maximum admissible burden of the transducer, e.g. 820 , is specified in the technical data of the analog module.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

57

What you should know about analog technology 2.20 Burden with 2-wire transducers Example 1: Connecting a transducer to the electrical circuit
In accordance with the technical data of the 2-wire transducer used, it requires a supply voltage (Umin) of at least 8.5 V. Using Ohm's Law, you can calculate the resistance of the transducer used (R2DMU) for a current of 20 mA.
With a supply voltage of at least 8.5 V, the transducer has a resistance of 425 . The resistance is less than 820 . You can therefore connect the transducer to the analog input module (AI) without exceeding the maximum burden.
 2-wire transducers
UV Terminal for feed voltage at the channel I+ Terminal for current input Umin Voltage drop at 2-wire transducer Figure 2-27 Connecting a transducer to the electrical circuit

Analog value processing

58

Function Manual, 06/2014, A5E03461439-AC

What you should know about analog technology 2.20 Burden with 2-wire transducers

Example 2: Connecting a transducer and other devices
If multiple measuring devices are connected in series, the sum of all connected resistances may not exceed the value of the maximum burden.
If you have connected a 2-wire transducer to a supply voltage of 8.5 V, you will need to allow
for the resistance of the measuring device connected .

Maximum transducer burden: Transducer resistance upon a voltage drop of 8.5 V: Maximum resistance of additional devices connected:

820  425  395 

The resistance of the measuring instrument may therefore not exceed 395 .

 2-wire transducers  Digital multimeter  Zener diode
UV Terminal for feed voltage at the channel I+ Terminal for current input Umin Voltage drop at 2-wire transducer RMess Resistance at measuring instrument UMess Voltage drop at the measuring instrument
Figure 2-28 Connecting a transducer and other devices to the circuit
Calculating admissible voltage drop
The maximum additional resistance in the current loop may not exceed 395  at a maximum current of 20 mA. You can calculate the voltage drop at the connected measuring instrument (UMess) as follows using Ohm's Law:
UMess = RMess * I = 395  * 0.020 A = 7.9 V
The voltage drop at the measuring instrument should therefore not exceed 7.9 V.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

59

Representation of analog values

3

3.1

Overview

Conversion of analog values
The CPU only processes analog values in digitalized format.
Analog input modules convert the analog signal into a digital value for further processing by the CPU.
Analog output modules convert the digital output value from the CPU into an analog signal.

Analog value representation at 16-bit resolution
The digitized analog value is the same for all I/O values at the same rated range. The analog values are represented as fixed point numbers in twos complement. This leads to the following conditions:

Table 3- 1 Representation of analog values

Resolution Bit number Significance of the bits

Analog value 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 S 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

Sign

The sign (S) of the analog value is always set in bit 15:  "0"  +  "1"  -

Resolution less than 16 bits
The analog value is left-aligned in the memory of analog modules with a resolution of less than 16 bits. The unused least significant digits are padded with "0" values.
This reduces the number of measured values that can be represented. Modules occupy a range of values of between+32767 and -32768 regardless of the resolution. The scaling between two successive values depends on the resolution of the module.

Analog value processing

60

Function Manual, 06/2014, A5E03461439-AC

Example

Representation of analog values 3.1 Overview

The following example shows how the least significant digits are padded with "0" values:
 The module with 16-bit resolution is capable of incrementing the values in steps of one unit (20 = 1).
 The module with 13-bit resolution is capable of incrementing the values in steps of 8 units (23 = 8).

Table 3- 2 Example: Bit pattern of a 16-bit and 13-bit analog value

Resolution Bit 16-bit 13-bit
S = sign

Analog value 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 S 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 S 214 213 212 211 210 29 28 27 26 25 24 23 0 0 0

Note
For information on the resolution supported by each analog module, please refer to the technical data for the relevant module.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

61

Representation of analog values 3.2 Representation of input ranges

3.2

Representation of input ranges

The tables below set out the digitalized representation of the input ranges by bipolar and unipolar input ranges. The resolution is 16 bits.

Please see the device manuals for each analog input module for assignment of the values to the specific measured values in each measuring range.

Table 3- 3 Bipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 -100.004 -117.593 <-117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Over range 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Rated range 1 1 1 1 1 1 1111111111 1 0 0 1 0 1 0000000000 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Under range 1 0 0 0 0 0 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Table 3- 4 Unipolar input ranges

Dec. value

Measured value in %

32767 32511 27649 27648 1 0 -1 -4864 -32768

>117.589 117.589 100.004 100.000 0.003617 0.000 -0.003617 -17.593 <-17.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Overflow 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Over range 0 1 1 0 1 1 0000000001 0 1 1 0 1 1 0000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Rated range 0 0 0 0 0 0 0000000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Under range 1 1 1 0 1 1 0100000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Underflow

Analog value processing

62

Function Manual, 06/2014, A5E03461439-AC

Representation of analog values 3.3 Representation of output ranges

3.3

Representation of output ranges

The tables below set out the digitalized representation of the output ranges by bipolar and unipolar range. The resolution is 16 bits.

Please see the device manuals for each analog output module for assignment of the values to the specific output values in each measuring range.

Table 3- 5 Bipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 -1 -27648 -27649 -32512 -32512

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 -0.003617 -100.000 100.004 -117.593 -117.593

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Over range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 Under range 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589 % or 0 % (0.0 V / 0.0 mA), depending on the module used.
** When values < -32512 are specified, the output value is limited to -117.593 % or 0 % (0.0 V / 0.0 mA), depending on the module used.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

63

Representation of analog values 3.3 Representation of output ranges

Table 3- 6 Unipolar output ranges

Dec. value
32511
32511 27649 27648 1 0 0

Output value in %
117.589
117.589 100.004 100.000 0.003617 0.000 0.000

Data word

Range

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 0 1 1 1 1 1 1 1 x x x x x x x x Maximum output
value* 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 Over range 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 Rated range 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minimum output
value**

* When values > 32511 are specified, the output value is limited to 117.589 % or 0 % (0.0 V / 0.0 mA), depending on the module used.
** When values < 0 are specified, the output value is limited to 0% (0.0 V / 0.0 mA).

Analog value processing

64

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers

4

4.1

Overview

Introduction

This chapter describes the basic procedure for wiring transducers to analog inputs. Information on specific wiring options is available in the manual of each module.
For more information, e.g. on cable routing and shielding or potential equalization, etc., refer to the function manual for Configuring interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566).

Transducers that can be wired to analog inputs
You can wire the following transducers to the analog input modules, depending on the type of measurement:  Voltage transducers  Current transducers
­ 2-wire transducers ­ 4-wire transducers  Resistance transducers ­ 4-wire connection ­ 3-wire connection ­ 2-wire connection  Thermocouples

Isolated transducers and non-isolated transducers
Transducers are available in various models:
 Isolated transducers are not connected locally to the ground potential. Floating operation is possible.
 Non-isolated transducers are connected locally to the ground potential.
Non-isolated transducer connections are connected to the conductive enclosure.
Note: All non-isolated transducers must have a galvanic connection to each other and be locally connected to the ground potential.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

65

Connecting transducers 4.1 Overview

Abbreviations used in the figures
Key to the abbreviations in the figures below:

AI M L+ Mn+/MnICn+/ICnUn+/UnIn+/InCOMP+/COMPIComp+/ICompUV
UCM
UISO
MANA

Analog input module Ground connection Supply voltage connection Measuring input, channel n Current output to thermal resistor (RTD) channel n Voltage input channel n Current input channel n Compensation input Current output for compensation Feed voltage at channel (the connection can be used for 2-wire transducer (2DMU) or with ET 200eco PN and ET 200pro for 2/4-wire transducer). Potential difference between the reference points of the measuring inputs / the analog ground MANA Potential difference between the reference points of the measuring inputs and the central ground Reference point of the analog ground

Lines for analog signals
Always use shielded twisted-pair cables to wire the analog signals. This improves immunity.

Analog value processing

66

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers 4.2 Wiring analog inputs with MANA connection

4.2

Wiring analog inputs with MANA connection

The reference potentials of the measuring inputs and the central ground are electrically isolated in analog input modules with MANA connection.

Limited potential difference UISO (insulation voltage)
Always verify that the admissible potential difference UISO between the reference point of the analog ground MANA and the central ground is not exceeded.
Potential difference UISO may be caused by: Maximum line lengths exceeded.
If you want to ensure that the permitted value UISO is not exceeded, install an equipotential bonding cable between the terminal MANA and the central grounding point.

Limited potential difference UCM (common mode)
Always verify that the admissible potential difference UCM between the reference point of the measuring inputs and the analog groundMANA is not exceeded.
Potential differences UCM may be caused by:
 Environments with EMC disturbance
 Use of grounded transducers
 Use of long cable lengths
Measuring errors / malfunctions can occur if the admissible potential difference UCM is exceeded.
Some modules can detect an invalid potential difference UCM and report this error with an entry in the diagnostics buffer of the CPU.
If you want to ensure that the maximum value UCM is not exceeded, interconnect the reference points of the measuring inputs and the analog ground MANA with an equipotential bonding cable.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

67

Connecting transducers 4.2 Wiring analog inputs with MANA connection
 Equipotential bonding cable  Grounding bus cable  Central ground
Figure 4-1 Example: Reference potential for analog input modules with MANA connection

Analog value processing

68

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers 4.3 Wiring analog inputs without MANA connection

4.3

Wiring analog inputs without MANA connection

The reference potentials of the measuring inputs and the central ground are electrically isolated from each other in analog input modules without an MANA connection.

Limited potential difference UISO (insulation voltage)
Always verify that the maximum potential difference UISO between the reference points of the measuring inputs and central ground is not exceeded.
Potential difference UISO may be caused by: Maximum line lengths exceeded.
If you want to ensure that the permitted value UISO is not exceeded, install an equipotential bonding cable between the reference points of the measuring inputs and the central grounding point.

Limited potential difference UCM (common mode)
Always ensure that the permitted potential difference UCM between the reference points of the measuring inputs is not exceeded.
Potential differences UCM may be caused by:  Environments with EMC disturbance  Use of grounded transducers  Use of long cable lengths
Measuring errors / malfunctions can occur if the admissible potential difference UCM is exceeded.
Some modules can detect an invalid potential difference UCM and report this error with an entry in the diagnostics buffer of the CPU.
If you want to ensure that the permitted value UCM is not exceeded, install equipotential bonding cables between the reference points of the measuring inputs or, with the ET 200eco PN and ET 200pro, between the reference points of the measuring inputs and ground.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

69

Connecting transducers 4.3 Wiring analog inputs without MANA connection
 Equipotential bonding cable (not for 2-wire and resistance transducers)  Grounding bus cable  Central ground
Figure 4-2 Example: Reference potential for analog input modules without MANA connection

Analog value processing

70

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers 4.4 Wiring voltage transducers

4.4

Wiring voltage transducers

The figure below shows how to connect voltage transducers. If you want to ensure that the permitted value UCM is not exceeded, install equipotential bonding cables to connect the reference points of the measuring inputs to the analog ground MANA, or with ET 200eco PN and ET 200pro the reference points of the measuring inputs to the ground.

 Equipotential bonding cable (only relevant to modules with MANA connection)
Figure 4-3 Example: Wiring voltage transducers to an analog input module

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

71

Connecting transducers 4.5 Wiring current transducers

4.5

Wiring current transducers

Current transducers are available as 2-wire transducers and 4-wire transducers. Below are a number of ways to supply current transducers with voltage.

Wiring 2-wire transducers with power supply from the module
The 2-wire transducer converts the process variable into a current. The 2-wire transducer is wired to the short circuit-proof supply voltage at the terminals of the analog input module. The transducer is therefore frequently also called a "passive transducer". Its simple wiring means that the 2-wire transducer is frequently used in industrial environments. If you use this type of connection, you will need to set the "Current (2-wire transducer)" measurement type in STEP 7.
Note
2-wire transducers must be electrically isolated.

 2-wire transducers (2WT)  Equipotential bonding cable (only relevant to modules with MANA connection)
Figure 4-4 Example: Wiring 2-wire transducers to an analog input module

Analog value processing

72

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers 4.5 Wiring current transducers
Wiring 2-wire transducers to an analog input for 4-wire transducers
The figure below shows an alternative to the above connection: supplying the 2-wire transducer from supply line L+ of the module. If you use this type of connection, you will need to set the "Current (4-wire transducer)" measurement type in STEP 7. In this type of connection, galvanic isolation between the supply voltage L+ and the analog circuit will be removed.
 2-wire transducers (2WT)  Equipotential bonding cable (only relevant to modules with MANA connection)
Figure 4-5 Example: Wiring 2-wire transducers to an analog input for 4-wire transducers
Wiring and connecting 4-wire transducers
4-wire transducers provide terminals for connecting a separate supply voltage. They are powered with an external supply and are frequently called "active transducers". If you use this type of connection, you will need to set the "Current (4-wire transducer)" measurement type in STEP 7.

 4-wire transducers (4WT)  Equipotential bonding cable (only relevant to modules with MANA connection)
Figure 4-6 Example: Wiring 4-wire transducers to an analog input module

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

73

Connecting transducers 4.6 Wiring thermal resistors and resistors

4.6

Wiring thermal resistors and resistors

The module provides a constant current at terminals IC+ and IC- for resistance measurements. The constant current is fed to the resistance to be measured where it is measured as voltage drop. It is important to wire the connected constant current cables directly to the thermal resistor/resistor.

Measurements with 4-wire or 3-wire connection compensate for line resistance and therefore achieve greater accuracy compared to measurements with 2-wire connection.

Measurements with two-wire connection always acquire line resistance in addition to the actual resistance; you must therefore allow for a significant loss of precision in the measuring results.

The figures below give some connection examples.

4-wire connection of a thermal resistor
The voltage at the thermal resistor is acquired using high-impedance measurement via the M0+ and M0- terminals. Make sure the wiring is correctly poled (IC0+ and M0+, and IC0- and M0- at the thermal resistor).
Always wire the IC0+ and M0+ lines, and the IC0- and M0- lines directly to the thermal resistor.

Figure 4-7 Example: 4-wire connection of thermal resistor to an analog input module

Analog value processing

74

Function Manual, 06/2014, A5E03461439-AC

Connecting transducers 4.6 Wiring thermal resistors and resistors
3-wire connection of a thermal resistor
Depending on the module, for a 3-wire connection to modules with 4 terminals (per channel), you may need to insert a bridge between M0- and IC0- (see figure below) or between M0+ and IC0+. Always wire the IC0+ and M0+ lines directly to the thermal resistor. Use cable with wires with identical cross-section. For ET 200AL, ET 200eco PN and ET 200pro, no bridge is required as all necessary connections are implemented internally.

Figure 4-8 Example: 3-wire connection of thermal resistor to an analog input module
2-wire connection of a thermal resistor
When installing a 2-wire device on modules with 4 terminals (per channel), you will need to insert bridges at the module between M0+ and IC0+ and between M0- and IC0- as shown in the figure below. The line resistance is measured, but not compensated. As a result of physical limitations, this measurement type is less accurate than measurement with 3-wire or 4-wire connections. The wiring for this type of measurement is, however, simple as the bridges required can be wired in the plug, saving line.
For ET 200AL, ET 200eco PN and ET 200pro, no bridge is required as all necessary connections are implemented internally.

Figure 4-9 Example: 2-wire connection of thermal resistor to an analog input module

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

75

Connecting transducers 4.7 Wiring thermocouples

4.7

Wiring thermocouples

Introduction

Thermocouples are generally supplied ready-to-use. Protective casing prevents the thermocouples from being destroyed by mechanical force, for example.

Compensating lines
The compensating lines belonging to the respective thermocouples are identified by a special color code, because only the compensating line that is made of the material matching the thermocouple may be used. The standardized compensating lines are specified in DIN EN 60584. Observe the maximum temperatures in the manufacturer's specifications.

Thermocouple connection options
There are various different ways to wire thermocouples to an analog input module:
 Directly .  Using compensating lines .
 With a compensating line to the reference junction, connected with a supply line, e.g.
copper .

 Thermocouple without compensating line  Thermocouple with compensating line  Thermocouple with compensating line and supply line  Compensating line (same material as thermocouple)  External reference junction  Copper supply cable, for example
Figure 4-10 Example: Wiring thermocouples to an analog input module
Further information
Further information, such as the selection of thermocouples and how they operate, can be found in the section Thermocouples (Page 77).

Analog value processing

76

Function Manual, 06/2014, A5E03461439-AC

Thermocouples

5

5.1

Selecting thermocouples

Introduction

Thermocouples are electrical devices for precise temperature measurement. They consist of two different metals connected at one point. Temperature affecting this point generates a voltage difference from which the temperature can be calculated.
Thermocouples can measure a wide range of temperatures and come in extremely robust models. They are therefore frequently used in industrial applications. Below are some of the criteria to consider when selecting the right thermocouple:
 Temperature range
 Atmospheric conditions
 Price

Grounded thermocouples
In grounded thermocouples, a conductive thermocouple wire is attached to the inside of the sensor housing. This results in good heat transfer from the sensor housing to the thermocouple measuring tip.

Non-grounded thermocouples
In non-grounded thermocouples, the thermocouple is not connected to the sensor housing. The response time following temperature changes is longer than with grounded thermocouples. The measuring point is galvanically isolated.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

77

Thermocouples 5.1 Selecting thermocouples

Type and temperature range
The different thermocouple types are derived from different material compositions.
Note Due to physical conditions, thermocouples are extremely inaccurate outside the specified temperature range. Only use thermocouple in the temperature range specified by the manufacturer.
The following table lists the types and material compositions, as well as the temperature measuring range of different thermocouples:

Type B C E J K L N R S T U
TXK/XKL

Material composition PtRh-PtRh W-Re NiCr-CuNi Fe-CuNi NiCr-Ni Fe-CuNi NiCrSi-NiSi
PtRh-Pt (Pt 13%) PtRh-Pt (Pt 10%)
Cu-CuNi Cu-CuNi NiCr-CuCr

Temperature range 250 to 1820 °C 0 to 2315 °C -270 to 1000 °C -210 to 1200 °C -270 to 1372 °C -200 to 900 °C -270 to 1300 °C - 50 to 1769 °C -50 to 1769 °C -270 to 400 °C -200 to 600 °C -200 to 800 °C

Analog value processing

78

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.2 Structure and operating principle of thermocouples

5.2

Structure and operating principle of thermocouples

Thermocouple structure
A thermocouple consists of a pair of thermal sensors and the respective installation and wiring elements. Two wires made of different metals/alloys are welded together at their ends (hot end). The welding point forms the so-called measuring point, while the free ends of the thermocouple form the reference junction.
The free ends are interconnected with the evaluation device (e.g. analog input module) via insulated wires or cables.
The different thermocouple types, e.g. K/J/N, are derived from different material composition; the same measuring principle is applied to all thermocouples, independent on their type.

 Thermal voltage acquisition point  Copper supply cable, for example  Reference junction  Compensating line (same material as thermocouple)  Connection point  Thermocouple with positive and negative thermal elements  Measurement point
Figure 5-1 Thermocouple

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

79

Thermocouples 5.2 Structure and operating principle of thermocouples
Operating principle of thermocouples
Temperature differences between the measuring point and the free ends of the pair of thermal sensors (connection point) generate a thermal voltage at the reference junction. The value of the thermal voltage is determined by the temperature difference between the measuring point and the free ends, as well as by the material composition of the pair of thermal sensors.
Thermocouples always acquire a differential temperature, which means that the temperature at their free ends (reference junction) must be known to determine the temperature at the measuring point.
The thermocouple can be extended with compensating lines from the connection point. This allows the reference junction to be located at a specific point, for example, where the temperature can be kept constant or the temperature sensor is easy to install. The compensating lines and thermocouple wires are made of the same material. Copper cables are used to connect the reference junction to the module.
Note
Always observe the polarity, as incorrect wiring will result in unacceptable measuring errors.

Analog value processing

80

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature

5.3

Compensation for the reference junction temperature

5.3.1

Overview

Introduction

You have several options for measuring the reference junction temperature in order to obtain a correct temperature value as a function of the temperature difference between the reference junction and the measuring point.
You have various compensation options to suit requirements at the location of the reference junction.
The compensation options supported by the analog module used are specified in the manual of the respective module.

Options of compensating for the reference junction temperature

Table 5- 1 Compensation options: Explanation and use case

Compensation options Internal reference junction

Explanation

Use case / special feature

Function principle

·

With this type of compensation, the temperature of

the reference junction is measured using an

integrated sensor in the analog module.

·

Procedure

Connect the thermocouple to the I/O module

directly, or with compensating lines; see chapter

Compensation with internal reference junction

(Page 84).

·

For the connection, use compensating lines that match the thermocouple material.
If the reference junction temperature and the module temperature are identical in your system, you may also use lines made from a different material.
Advantages:

­ Inexpensive

­ No external reference junction required

­ No additional wiring required

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

81

Thermocouples 5.3 Compensation for the reference junction temperature

Compensation options

Explanation

Use case / special feature

Reference channel of the module

Properties

·

With this type of compensation, the reference

junction temperature is determined using an

·

external thermal resistor (RTD).

Procedure

Connect the thermocouple to the supply lines

directly at the reference junction, or indirectly

using compensating lines. Wire the supply lines to

the corresponding terminals of the module.

·

Wire the thermal resistor (RTD) to the reference

channel of the module. The thermal resistor (RTD)

must be positioned in the area of the reference

junction; see chapter Compensation with

reference channel of the module (Page 86).

They acquire the temperature directly at the reference junction.
The measured temperatures of all channels that you have configured for this compensation type will be corrected automatically by the temperature value of the reference junction.
Advantages:
­ More precise compared to compensation with internal reference junction; however, you need to install and wire an additional thermal resistor.

Reference channel of group 0
Fixed reference temperature

Properties

·

With the "TC" (thermocouple...) setting, the channel acts as receiver for the reference junction · temperature of group 0.

The associated transmitter of group 0 is set up to for the RTD channel.

Procedure

Connect the thermocouple to the supply lines directly at the reference junction, or indirectly using compensating lines. Wire the supply lines to the corresponding terminals of the module.

Wire the thermal resistor (RTD) to the configured reference channel for group 0 of the module. The thermal resistor (RTD) must be positioned in the area of the reference junction; see chapter Compensation, reference channel of Group 0 (Page 88).

Properties

·

With this type of compensation, the reference

junction temperature is stored in the module as

fixed value.

·

Procedure

Connect the thermocouple to the supply lines directly at the reference junction, or indirectly using compensating lines. Wire the supply lines to the corresponding terminals of the module.

Depending on the module, you can enter a fixed reference junction temperature in the configuration data (e.g. 20 °C), or use the fixed reference junction temperature of the module (0 °C); see chapter Compensation with fixed reference temperature (Page 91).

They acquire the temperature directly at the reference junction. The measured temperatures of all channels that you have configured for this compensation type will be corrected automatically by the temperature value of the reference junction (transmitter).
You keep the reference junction temperature constant and know the temperature value. To ensure high precision, you must ensure that the temperature remains constant (this can be complicated, depending on the application).

Analog value processing

82

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature

Compensation options Dynamic reference temperature
No/external compensation
RTD (0)

Explanation

Use case / special feature

Properties
With this type of compensation, the reference junction temperature is determined using a module. Transfer this temperature value to other modules in the user program by means of a data record.
Procedure
Wire the thermal resistor (RTD) for the reference junction to any channel.

· You are using multiple modules at the reference junction and can therefore compensate for all channels using a common temperature value.
· You only need a thermal resistor (RTD) or a thermocouple to measure the temperature value.

The reference junction temperature is transferred with a function block by means of data records from the CPU or IM to the module, see section Compensation by means of dynamic reference temperature (Page 94).

Properties

·

With this type of compensation, the reference junction temperature is measured outside the analog input module. You can, for example, connect a compensating box to the thermocouple for this purpose.

Procedure

Connect the compensating box with the

·

connection module of the analog input module

with copper cables, see section "None" or external

compensation (Page 98).

The temperature of the reference junction for this type of compensation is specified as 0 °C. This can be achieved by using a compensating box. A separate compensating box is required for each thermocouple.
Thermocouples of type B do not require a compensating box.

Properties

·

This compensation is based on a measurement of the resistance value of a Pt1000 at the clamping unit of a compensation connector or of an external · resistance value Pt1000.

Procedure

Additional information about the connection options with and without compensation connector is available in the section Type of compensation RTD (0) (Page 100).

The reference junction temperature is determined with resistance value of the Pt1000.
All channels of the analog input module that you select for this type of compensation receive the same reference junction temperature.

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

83

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.2

Compensation with internal reference junction

Function principle
The reference junction for compensation via internal reference junction is at the terminals of the analog input module. Wire the thermocouples or compensating lines directly to the module inputs. The internal temperature sensor acquires the module temperature and returns a compensating voltage.
Note that compensation via internal reference junction will not always reach the precision of external compensation!

Procedure

Configuration steps: 1. Open the project in STEP 7. 2. In the device view, select the required analog module and the corresponding channel. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the "Inputs/Measuring" area. 5. Select the "Thermocouple" value as "Measurement type". 6. As "Reference junction", select the value "Internal reference junction".

Figure 5-2 Internal reference junction

Analog value processing

84

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature Wiring thermocouples Wire the thermocouples directly or indirectly via compensating lines to the module inputs.
 Thermocouple without compensating line  Thermocouple with compensating line  Compensating line (same material as thermocouple)  Internal reference junction
Figure 5-3 Example: Wiring thermocouples for compensation via internal reference junction

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

85

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.3

Compensation with reference channel of the module

Function principle
With this type of compensation, the reference junction temperature is determined using an external thermal resistor (RTD). Certain modules provide an internal reference channel.

Procedure

Configuration steps: 1. Open the project in STEP 7. 2. In the device view, select the required analog module and the corresponding channel. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the "Inputs/Measuring" area. 5. Select the "Thermocouple" value as "Measurement type". 6. As "Reference junction", select the value "Reference channel of the module"".

Figure 5-4 Reference channel of the module

Analog value processing

86

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature
Wiring thermocouples and thermal resistors
Connect the thermocouple to the supply lines directly at the reference junction, or indirectly using compensating lines. Wire the supply lines to the corresponding terminals of the module. You may use cables made of any material to wire the thermal resistor to the module terminals.
 Thermocouple  Compensating line (same material as thermocouple)  Copper supply cable, for example  Thermal resistor (RTD)  Reference junction
Figure 5-5 Example: Wiring thermocouples/thermal resistors for compensation by means of reference channel of the module

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

87

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.4

Compensation, reference channel of Group 0

Function principle
For this compensation, a module channel with a connected thermal resistor (RTD) acts as "Reference temperature transmitter". Other channels (reference temperature receivers) with connected thermocouples can be compensated using this reference temperature. The measured temperatures of all channels (receivers) that you have configured for this compensation type will be compensated automatically by the temperature value of the reference junction (transmitter).
The reference junction temperature is determined by means of an external thermal resistor (RTD).

Procedure

Configuration steps: 1. Open the project in STEP 7. 2. In the device view, select the required analog module and the corresponding channel. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the area "Inputs/measurement". 5. For the channel of the relevant module, specify as transmitter:
As "Measurement type" select, for example, "Thermal resistor (4-wire connection)". As "Reference junction", select the value "Reference channel of group 0".

Figure 5-6 Transmitter: Reference channel of group 0

Analog value processing

88

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature 6. For the channels you specify as receivers: Select the "Thermocouple" value as "Measurement type". As "Reference junction", select the value "Reference channel of group 0".
Figure 5-7 Receivers: Reference channel of group 0

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

89

Thermocouples 5.3 Compensation for the reference junction temperature
Connecting thermocouples and thermal resistors
The example below shows:  An analog module with thermal resistor as reference temperature transmitter and  Two analog modules with thermocouple as reference temperature receivers. Connect the thermocouples to the supply lines at the reference junction, either directly or with compensating lines. Wire the supply lines to the corresponding terminals of the module. You may use cables made of any material to wire the thermal resistor to the module terminals.
 Thermocouple  Compensating line (same material as thermocouple)  Copper supply cable, for example  Thermal resistor (RTD)  Reference junction
Figure 5-8 Example: Connecting thermocouples/thermal resistors for group 0 compensation

Analog value processing

90

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.5

Compensation with fixed reference temperature

Function principle
With this type of compensation, the reference junction temperature is stored in the module as fixed value.

Procedure

Configuration steps: 1. Open the project in STEP 7. 2. Select the required analog module in the Device view. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the "Inputs/Measuring" area. 5. Select the "Thermocouple" value as "Measurement type". 6. As "Reference junction", select the value "Fixed reference temperature". 7. Specify the temperature of the reference junction in the "Fixed reference temperature"
area, for example, 20 °C.

Figure 5-9 Fixed reference temperature

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

91

Thermocouples 5.3 Compensation for the reference junction temperature Temperature condition with "Fixed reference temperature" setting
The figure below shows the connection options for thermocouples provided the temperature of the module is kept at a fixed reference temperature (20 °C), for example by installing it in an air-conditioned switch cabinet. The reference junction is in the module.
 Thermocouple without compensating line  Thermocouple via compensating line  Compensating line (same material as thermocouple)
Figure 5-10 Example 1: Connecting a thermocouple to an analog module for compensation with "fixed reference temperature"

Analog value processing

92

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature The figure below shows the connection options for thermocouples provided the temperature of the reference junction (outside the module) is kept at a fixed reference temperature (20 °C).
 Thermocouple with compensating line and supply line  Compensating line (same material as thermocouple)  Reference junction  Copper supply cable, for example
Figure 5-11 Example 2: Connecting a thermocouple to an analog module for compensation with "fixed reference temperature"

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

93

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.6

Compensation by means of dynamic reference temperature

Function principle
This compensation type allows you to handle the reference junction temperature for temperature compensation in the user program. You can derive the temperature value from any other module of the station. The reference junction temperature is transferred via data records using the instruction WRREC (SFB 53).
The structure of the data records is detailed in the device manual for each module.

Requirement

STEP 7 project with the following contents:  User program with WRREC (SFB 53) instruction for transferring the data records with
reference temperature  Analog module for acquisition of the process temperature using thermocouple (TC)  Analog module for measuring the process temperature using thermal resistor (RTD)

Analog value processing

94

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature Analog module for acquisition of the process temperature using thermocouple (TC) Configuration steps: 1. Open the project in STEP 7. 2. In the device view, select the required analog module and the corresponding channel. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the "Inputs/Measuring" area. 5. Select the "Thermocouple" value as "Measurement type". 6. As "Reference junction", select the value "Dynamic reference temperature".
Figure 5-12 Dynamic reference temperature

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

95

Thermocouples 5.3 Compensation for the reference junction temperature Analog module for measuring the process temperature using thermal resistor (RTD)
Configuration steps: 1. Open the project in STEP 7. 2. In the device view, select the required analog module and the corresponding channel. 3. Select the "General" tab in the Inspector window of the selected module. 4. Select the "Inputs/Measuring" area. 5. Select the "Thermal resistor (4-wire connection)" value as "Measurement type".
Figure 5-13 Settings for thermal resistor (RTD) type of measurement

Analog value processing

96

Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature
Connecting thermocouples and thermal resistors
Connect the thermocouples, for example, to the module inputs using supply lines for temperature compensation with dynamic reference temperature. In this case, the temperature is acquired at the reference junction by means of a thermal resistor (RTD). This reference junction temperature determined in this way is transferred to the analog module with thermocouple via data records with the WRREC instruction.
 Thermocouple  Compensating line (same material as thermocouple)  Copper supply cable, for example  Thermal resistor (RTD)  Reference junction
Figure 5-14 Example: Connecting thermocouples/thermal resistors for compensation by means of dynamic reference temperature

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

97

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.7

"None" or external compensation

Function principle
The reference junction temperature of the thermocouples is measured outside the analog input module, e.g., by means of a compensating box on the thermocouple. The temperature of the reference junction for this type of compensation is specified as 0° C.
The compensating box includes a bridge circuit that is calibrated for a specific reference junction temperature (compensation temperature). The connectors for the ends of the compensating line of the thermocouple form the reference junction. If the actual comparison temperature deviates from the compensation temperature, the temperature-dependent bridge resistor changes. A positive or negative compensation voltage is generated and added to the thermal voltage.
Note
Thermocouples of type B do not require a compensating box.

Procedure

Configuration steps:
1. Open the project in STEP 7.
2. Select the required analog module in the Device view.
3. Select the "Inputs" tab in the Inspector window of the selected module and the respective channel.
4. Select the "Thermocouple" value as "Measurement type" in the "Measuring" area.
5. As "Reference junction", select the value "None" or "External compensation" depending on the used module.

Figure 5-15 No reference junction 98

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature
Connection of the compensating box
The compensating box is looped into the supply lines of an individual thermocouple. The compensating box must be supplied isolated. The power supply unit must have a sufficient noise filter, e.g., by means of a grounded shielding winding. Each channel can use its own thermocouple type supported by the analog module regardless of the other channels. A separate compensating box is required for each channel.
Connection example "None" or external compensation
Connect the compensating box with the connection module of the analog input module using copper cables.
 Copper cables  Compensating box (per channel), for example; thermocouple type B does not require a
compensating box
 Thermocouple
Figure 5-16 Connection example "No" compensation as reference junction

Analog value processing

Function Manual, 06/2014, A5E03461439-AC

99

Thermocouples 5.3 Compensation for the reference junction temperature

5.3.8

Compensation type RTD (0)

Function principle
The reference junction temperature is determined by means of the resistance value of a Pt 1000 at the clamping unit of the M12 compensation connector. The resistance measurement is only permitted at the X1 circular socket (channel 0). All of the module's channels with this type of compensation receive the same reference junction temperature.

Procedure

Configuration steps: 1. Open the project in STEP 7. 2. Select the required analog module in the Device view. 3. Select the "Inputs" tab in the Inspector window of the selected module. 4. Select the "Thermocouple" value as "Measurement type" in the "Measuring" area. 5. As "Reference junction", select the value "RTD (0)".

Figure 5-17 Compensation type RTD (0)

100

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Thermocouples 5.3 Compensation for the reference junction temperature
Connection example
Connection with M12 compensation connector Connect the thermocouple to the M12 compensation connector directly or with compensating lines. Install the M12 compensation connector to the X1 circular socket (channel 0) of the CM IO 4 x M12 at the 4 AI TC High Feature. Connection without M12 compensation connector To measure the referent junction temperature, connect an external Pt1000 (with  = 003851) to terminals 1 and 3 using copper cables. The thermal resistor Pt1000 must be positioned in the area of the reference junction. Connect the thermocouples to terminals 2 and 4 from the reference junction with copper cables. Connecting additional thermocouples You can connect additional thermocouples to the circular sockets X2 to X4 on the CM IO 4 x M12 of the 4 AI TC High Feature. The temperature of reference junction collected by measuring the resistance value at the X1 circular socket applies to all channels of the module that you have selected for this type of compensation. The figure below shows a connection example "RTD (0)" as reference junction with M12 compensation connector and integrated thermal resistor Pt1000:
 Direct connection of the thermocouple or with compensating lines  Thermocouple  M12 compensation connector (terminals 1 and 3 with internal Pt1000) only at X1 circular
socket. The comparison value of the M12 compensation connector at circular socket X1 also applies to thermocouples at X2, X3 and X4. Figure 5-18 Connection example "RTD (0)" as reference junction in the M12 compensation connector

Analog value processing Function Manual, 06/2014, A5E03461439-AC

101

Thermocouples 5.3 Compensation for the reference junction temperature
The figure below shows a connection example "RTD (0)" as reference junction with external thermal resistor Pt1000:
 M12 connector only at X1 circular socket  External Pt1000 ( = 0.003851) in the area of the reference junction with copper cables at
terminals 1 and 3. The comparison value of the external Pt1000 at circular socket X1 also applies to thermocouples at X2, X3 and X4.
 Thermocouple
Figure 5-19 Connection example "RTD (0)" as reference junction with external Pt1000

102

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Wiring loads/actuators

6

6.1

Overview

Introduction

This chapter describes the basic procedure for wiring loads/actuators to analog outputs. Information on specific wiring options is available in the manual of each module.
For detailed information on cable routing and shielding, potential equalization, etc. please refer to the function manual Configuring interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566).

Abbreviations used in the figures
Key to the abbreviations in the figures below:

AQ M L+ Sn+/SnQVn+/QVnQIn+/QInMANA UISO

Analog output module Ground connection Supply voltage connection Sense line channel n Voltage output channel n Current output channel n Reference point of the analog ground Insulation voltage

Lines for analog signals
Always use shielded twisted-pair cables to wire the analog signals. This improves immunity.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

103

Wiring loads/actuators 6.2 Wiring loads/actuators

6.2

Wiring loads/actuators

Reference potential for analog output modules with MANA connection
Analog output modules have no galvanic connection between the reference point of the analog ground MANA and the central ground.
Always verify that the admissible potential difference UISO between the reference point of the analog ground MANA and the central ground is not exceeded.
Potential difference UISO may be caused by: Maximum line lengths exceeded.
If you want to ensure the maximum value UISO is not exceeded, wire terminal MANA and the central ground with an equipotential bonding cable.

 Load on the voltage output  Equipotential bonding cable  Grounding bus cable  Central ground
Figure 6-1 Example: Reference potential for an analog output module with MANA connection

104

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Wiring loads/actuators 6.2 Wiring loads/actuators Reference potential for analog output modules without MANA connection Analog output modules have no galvanic connection between the reference potential of the analog output circuits and central ground. Always verify that the maximum potential difference UISO between the reference points of the analog output circuits and the central ground is not exceeded. Potential difference UISO may be caused by: Maximum line lengths exceeded. If you want to ensure the maximum value UISO is not exceeded, interconnect each analog output circuit with the central ground using an equipotential bonding cable.
 Load on the voltage output  Equipotential bonding cable  Grounding bus cable  Central ground
Figure 6-2 Example: Reference potential for an analog output module without MANA connection

Analog value processing Function Manual, 06/2014, A5E03461439-AC

105

Supported functions

7

7.1

Calibrating analog modules

7.1.1

Overview

Calibration

A calibration checks the process values measured by the analog input module and the process values output by the analog output module, determines the deviation from the actual values and compensates for any measurement and output errors.

Calibrating analog modules
The SIMATIC analog modules were calibrated before being shipped and have excellent long-term stability; calibration is therefore not required during runtime.
But certain regulations and directives, for example from the Food and Drug Administration (FDA), require regular calibration for all components in a measuring circuit. These components include analog input and output modules.
A calibration makes sense especially for plants in which sensors detect and process relatively small voltages or currents. The calibration compensates for influences on the measuring result by cables and/or temperature.
The calibration collects the new values and saves them retentively on the module. But the calibration values determined prior to delivery at the plant are not lost. You can return to these original calibration values at any time.
Note
The calibration saves the calibration values of each channel for the specific measuring range retentively on the module, which means the values apply to the same measuring range in which the user calibration took place.
If you reconfigure a channel with effective user calibration values to another type of measuring mode, the calibration values saved at the plant for this channel and for this measuring range will become effective.
But the user calibration values are not deleted. They are not overwritten until there is a new user calibration of the channel. If you set the original measuring range for this channel once again without new user calibration, the previously determined user calibration values will become effective.

106

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Supported functions 7.1 Calibrating analog modules
The respective manual will include information whether or not your analog module supports the "Calibration" functionality.
Scope of functions
The "Calibration" group offers the following functions:  Specifying the current calibration of all channels  Calibrating a channel  Canceling a running calibration  Resetting the calibration of a channel to the factory settings

7.1.2

Calibrating analog modules

Manual calibration
The following requirements must be met to start manual calibration:
 An online connection exists between STEP 7, the respective CPU and the analog module to be calibrated.
 You have opened the "Online & Diagnostics" view for the selected analog module from the shortcut menu of the project and you are now in the "Functions > Calibration" area.
 The configuration reflects the actual structure of the station.
 No calibration process is busy on the module (if you want to launch calibration).
 A 24 V load voltage must be present at each module for the calibration.
 The last step was successfully completed (if you want to continue or conclude calibration).

Analog value processing Function Manual, 06/2014, A5E03461439-AC

107

Supported functions 7.1 Calibrating analog modules

Procedure

The basic mask for calibration opens once you start the "Calibration" function. The module reads the following general information data and calibration values after each new selection of a channel:
 Calibration: Indicates whether or not the currently effective calibration values are factory calibration values or user calibration values.
 Measurement type: Information about the selected measurement type
 Measuring range: Currently configured measuring range of the selected channel
 Gain: Currently effective gain correction of the analog-digital converter
 Offset: Currently effective offset correction of the analog-digital converter

Figure 7-1 Calibration table
To start the calibration, follow these steps: 1. Select the line associated with the channel to be calibrated in the overview table. 2. Click the "Start manual calibration" button. 3. Now go through the steps in the "Manual calibration" section. 4. Follow the instructions in the "Command" field. 5. Click ""Next".

108

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Supported functions 7.1 Calibrating analog modules
The required calibration values of the selected channel according to the measuring range configured for this channel are specified once again during the user calibration.
Note The calibration can take place in RUN mode as well as STOP mode of the CPU. If the CPU is in RUN, the calibration value that was last collected prior to the start of the calibration is supplied for the duration of the calibration. The module channel to be calibrated cannot process any new process values during the user calibration. All analog input values of the module are set to 0x7FFF ("Invalid analog value") until the end of the calibration. When the value status is enabled, the value status of the signal is set to "invalid" for the duration of the calibration.
You must provide a voltage and/or temperature during a user calibration. To do so, use the corresponding external wiring and an external voltage/temperature transducer. The field "Command" includes numbers of pins to which you can connect the calibration stimulus. The first pin number identifies the positive connector, the second pin number the negative connector. The accuracy of the calibration depends on the accuracy of the provided voltage/temperature.
Note To ensure that the module retains the specified measuring accuracy after the user calibration, the provided voltage/temperature must be twice as accurate as specified for the module. Inaccurate voltages or temperature result in a faulty calibration.
The figure below shows an example of channel calibration with "Voltage" measurement, measuring range "+/- 10 V".

Figure 7-2 Manual calibration
Analog value processing Function Manual, 06/2014, A5E03461439-AC

109

Supported functions 7.1 Calibrating analog modules
 Command: The field "Command" indicates which actions the user has to execute during the current calibration step. Here you execute the specified actions and confirm them with the "Next" button. The module now executes all actions required for the current calibration step. If the calibration step was error-free, the next calibration step takes place. The instructions in the "Command" field are to be performed additively. For example, after you have applied the voltage/ground to the terminals 3/4, these connections must remain in place during the execution of the next calibration step.
 Status: Depending on the set type of measurement, several calibration steps are required for calibration of a channel. The field "Status" indicates whether or not the last calibration step included errors. If an error occurs during processing of a calibration step, the error is displayed here and calibration of the channel is aborted. All calibration values recorded up to this point are deleted. The calibration values that were in effect prior to the start of the user calibration are effective once again.
Note Calibrators
If the "Wire break" diagnostics is activated for analog input modules, a test current is applied to the line for the measuring types "Resistance", "Thermistor" and "Thermocouple". This applied test current can result in inaccurate measured values in some calibrators. The wire break monitoring is therefore automatically disabled in some analog modules during the calibration.
To avoid the risk of inaccurate measured values, we recommend you disable the "Wire break" diagnostics during the calibration of analog input modules.

Result

Calibration sets new settings for the channel.

Error occurrence
If an error occurs during the calibration, the module cancels the calibration. All calibration values recorded up to this point are lost. The channel to be calibrated will then have the same settings as before the start of calibration.

110

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Supported functions 7.1 Calibrating analog modules

7.1.3

Canceling a calibration

Requirement

 You have opened the "Online & Diagnostics" view for the selected analog module from the shortcut menu of the project and you are now in the "Functions > Calibration" area.
 The associated CPU is online.
 A calibration is currently running on the analog module.

Procedure

Click the "Cancel" button to cancel an ongoing calibration.

Result

The active calibration is canceled. The channel to be calibrated will then have the same settings as before the start of calibration.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

111

Supported functions 7.1 Calibrating analog modules

7.1.4

Resetting analog modules to factory settings

Requirement

 You have opened the "Online & Diagnostics" view for the selected analog module from the shortcut menu of the project and you are now in the "Functions > Calibration" area.
 The associated CPU is online.

Procedure

Proceed as follows to reset the channel of an analog module to factory settings: 1. In the overview table, select the line of the channel to be calibrated. 2. Click the "Set to factory settings" button.

Result

The factory settings of the channel are restored.
Note
When you reset the current channel to the factory settings, the original calibration values that were saved in the delivery state of the module become effective once again. Any existing user calibration values of this channel are lost. You cannot restore these user calibration values.

112

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules

8

8.1

Basics
High-Speed analog modules (HS) are available for users with high demands regarding performance and speed. The main characteristics of these HS analog modules compared to Standard analog modules (ST) is their shorter cycle times. To achieve this goal, the input and output modules are equipped with components with extremely short throughput and conversion times. In addition, the entire architecture of the modules is designed for faster signal processing.
HS analog modules convert the output of measured values and output values at the same time. Each channel within the module has its own A/D or D/A converter. This means the cycle time is basically the conversion time and independent of the number of activated channels. This is true for analog input modules as well as analog output modules. This means HS modules can be used in fast isochronous mode.
Apart from isochronous mode, the HS analog modules also provide benefits in nonisochronous (free-running) mode. Due to the fast processing of the process signals, HS analog modules are able to detect changes in the process values more quickly and to respond to these events with the appropriate program blocks (for example, hardware interrupt or cyclic interrupt organization blocks). Additional information on the various organizational blocks can be found in the STEP 7 online help.

Isochronous mode
Isochronous mode refers to synchronous coupling:
 Of signal acquisition and output via the distributed I/O
 Of signal transmission via PROFIBUS or PROFINET
 Of program processing with the constant bus cycle time of PROFIBUS or PROFINET.
The result is a system that acquires its input signals in constant time intervals, processes them and outputs the output signals. Isochronous mode guarantees reproducible and defined process reaction times as well as equidistant and synchronous signal processing with distributed I/O.
The bus system and the I/O modules work synchronously with configured isochronous mode. The transmitted input and output data are linked to an "isochronous task" in the CPU. As a result, the data of a cycle are always consistent. All data of a process image belong together logically and in time. Jitter in the user program caused by the acquisition of outdated values is therefore almost impossible.
Even fast processes can be perfectly controlled by the exact timing reproducibility of all processes. Isochronous mode thus contributes to high control quality and hence to greater manufacturing precision. While possible fluctuations of the process reaction times are drastically reduced. The time-assured processing can be utilized to improve machine cycle times. Shorter cycle times increase the processing speed and help to lower production costs.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

113

High-speed analog modules 8.1 Basics

Send clocks

When you configure isochronous mode, the input and output data is synchronized within a send clock (cycle). The data of the input modules is acquired in cycle n and simultaneously transferred to the IM. The data is available in cycle n+1 in the CPU and can be processed. The CPU copies the data to the IM in the next cycle n+2. The output modules then output the data simultaneously in the same send clock. The acquisition ­ processing ­ output therefore takes place in three cycles. You can find more information on the configuration of isochronous mode in the STEP 7 online help.

 Measured values of the input modules are acquired and copied to the IM  Measured values are processed and output values determined  Output values are copied to the IM and output by output modules
Figure 8-1 3-cycle model

Oversampling

The use of the oversampling function in analog input or analog output modules requires an isochronous configuration.
With analog input modules, the set send clock is divided into time-equidistant sub-cycles. The send clocks can be subdivided into 2 to 16 sub-cycles. Each sub-cycle reads in a measured value. The read-in measured values of a data cycle are copied to the IM in the next send clock and are then available to the processing CPU one send clock later.
With analog output modules, the set send clock is also divided into time-equidistant subcycles. The send clocks can be subdivided into 2 to 16 sub-cycles. Each sub-cycle returns an output value. The output values are copied to the IM by the CPU within the same send clock and are written to the process one send clock later.
The read-in and output values are transmitted in the user data of the analog module. This way, the address space of the module is extended from 2 bytes of user data per channel to 16 x 2 bytes of user data per channel. If you subdivide the send clock into less than 16 subcycles, the unused addresses are assigned the error value 0x7FFF during input. For output, the values of the unused addresses are ignored.

114

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules 8.1 Basics
Because the sub-cycles have to be within a send clock, oversampling needs an additional send clock to copy the data to the IM, unlike the 3-cycle model of isochronous mode. The result is a 5-cycle model.

 Send clock is divided into sub-cycles which record the measured value  Measured values are copied to the IM  Measured values are processed and output values determined  Output values are copied by the CPU to the IM  Output values are written to the process
Figure 8-2 5-cycle model
Due to the configured modules, the send clock of an IO device has a minimum possible update time, which means the time interval within which an IO device/IO controller of the PROFINET IO system is supplied with new data. Modules with oversampling functionality, however, offer the option of further reducing the update time for their channels without having to shorten the send clock for the entire S7 station at the same time. The subdivision of the send clock into time-equidistant sub-cycles therefore enables an even faster signal processing speed.
Example
In practice, the use of oversampling makes sense when the isochronous system works with only one specific specific send clock (for example, 1 ms) due to the modules used and when faster sampling of the process values is required. By using oversampling and a subdivision of the send clock into 4 sub-cycles, for example, you can sample the process values in intervals of 250 µs.
Configuring oversampling
Enable the option "Isochronous mode" in the IO device used and set the corresponding parameters ("Send clock", etc.). You define the number of sub-cycles in the relevant distributed analog module with the "Sampling rate" parameter for analog input modules and the "Output rate" parameter for analog output modules. If, for example, you configure a "Sampling rate" of 4 "Values/cycle" for a "Send clock" of 1 ms, the send clock is subdivided into 4 sub-cycles and the process values are sampled in intervals of 250 µs.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

115

High-speed analog modules 8.1 Basics
Cycle time of an analog input module
If you have configured the system property "Isochronous mode" for HS modules, all analog
input modules are synchronized to a shared time within the send clock (cycle) . The cycle
time is made up of the following time intervals: tZ = t1 + t2 + t3 + t4

 Synchronization time for all analog input modules in isochronous mode and simultaneously
time of the converted input signal at the terminal in this cycle
 Digitalized input signal is transferred to the backplane bus

tZ

Cycle time

t1

Time between cycle start and synchronization

t2

Hardware-related runtime up to the analog-digital converter

t3

Processing time of digitalized input data in the module

t4

Transfer time of the backplane bus

tW Conversion time of the module

Figure 8-3 Cycle time of the analog input module

116

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules 8.1 Basics
Cycle time of an analog output module
The synchronization time for analog output modules refers to the output of the digital-analog
converter . Because the impedance of the connected actuator including connection cable
is unknown in output modules but has a significant impact on the signal run time, the settling time cannot be added as a fixed value. The respective manuals of the output modules specify the typical load settling times as reference point. But in practice, a measurement with an oscilloscope is required for a precise measurement of the settling time. The settling time may exceed the actual end of the cycle due to very short cycle times and very high capacitive loads. The cycle time is made up of the following time intervals: tZ = t1 + t2 + t3

 Output data is available in digital form in the module  Synchronization time for all analog output modules in isochronous mode and simultaneously
output time of data in the digital-analog converter

tZ

Cycle time

t1

Transfer time of the backplane bus

t2

Processing time of data in the module until output at digital-analog converter

t3

Settling time of hardware until setpoint of output value

tW Conversion time of the module

Figure 8-4 Cycle time of the analog output module

Analog value processing Function Manual, 06/2014, A5E03461439-AC

117

High-speed analog modules 8.1 Basics
Typical applications
In principle, isochronous mode is worthwhile whenever measured values must be acquired synchronously, movements must be coordinated, and process reactions must be defined and executed at the same time. There are thus numerous areas in which isochronous mode can be used. Typical applications include, for example, the acquisition of binary signals for quality assurance at specific times and positions. But hydraulic applications with position and pressure control can benefit as well from the equidistant and isochronous data transmission. The following example shows the use of isochronous mode within the production process of camshafts. Precise measurements must be made at several measuring points for quality assurance.
 Measured values  Camshaft
Figure 8-5 Measuring of camshafts
By using the system property "isochronous mode" and the associated simultaneous measured value acquisition, measurement can be performed continuously. The time required for measurement is reduced. Resultant workflow:  Continuous machining of the camshaft  During the continuous turning, measure the positions and cam excursion synchronously  Process the next cam shaft All camshaft positions and the corresponding measured values are measured synchronously within a single rotation of the camshaft. This increases machine output and maintains or enhances precision of the measurement.

118

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules 8.2 ST modules vs HS modules

8.2

ST modules vs HS modules

This section gives you an overview of other important distinctions between standard and high-speed analog modules. The specified numerical values are examples of selected modules. Keep in mind that the information can vary from module to module. The exact information of specific used analog module is available in the corresponding manual.

Conversion method
Instantaneous value conversion
Instantaneous value conversion if often used to convert analog signal into digital information in HS modules. In this type of conversion a very short sample is taken from the measured signal and converted into digital data. This digital information therefore represents an instantaneous value of the measured signal. Instantaneous value conversion is used to acquire fast changes of process values, such as in the area of motion control. The quickly changing physical quantities in this case must be acquired and processed quickly in cooperation with suitable transducers. Input areas are primarily voltage, current and resistance, the latter especially for position potentiometers.
Because the measured signal is converted within a short time, there is a risk of incorrect measurements in case of faulty signals. The analog inputs working with the instantaneous value conversion method cannot detect if the sampled signal value is the target signal or an overlaying disturbing pulse. They always convert the "instantaneously" detected value. This means the pending measurement task should be carefully examined with regard to time constraints.
Integrating conversion
ST modules usually work according to the integrating conversion principle. The integrating conversion involves the sampling of a measured signal across a specified time period (integration time). Although this method is slower than instantaneous value conversion, it returns a conversion with higher immunity to interference. When you select the time interval for the conversion so that it corresponds to one or several periods of the surrounding network frequency, the omnipresent interference that is possibly also overlaying the signal is basically suppressed. SIMATIC modules give you the option to set the network frequency at which the plant is operated by means of parameter assignment. The resolution and conversion times may change depending on the interference frequency suppression that is set. The technical specifications of the respective module define these dependencies.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

119

High-speed analog modules 8.2 ST modules vs HS modules
Analog inputs with integrating methods can be used universally. Even though the cabling must also be carefully designed with these analog inputs, the requirements are much less than those for analog inputs with instantaneous value conversion due to their slower signal acquisition that is basically immune to interference.

Figure 8-6 While an interference directly influences the value that is supplied to the application with instantaneous value encryption, its influence is negligible for the integrating method.

120

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules 8.2 ST modules vs HS modules
Electromagnetic compatibility
The entire architecture of HS modules is designed for fast processing of the signals. An interference-free design is therefore critical when using HS modules. The following rules apply to the wiring of HS modules with sensors and actuators:  Keep the cables as short as possible  Use shielded and twisted pair cables  Low-impedance connection of the cable shield at the respective shield supports  Short cable loop between shield support and terminal connection
Note Interference-free design Make sure that you pay close attention to the notes listed in the function manual Configuring interference-free controllers (http://support.automation.siemens.com/WW/view/en/59193566) when using HS modules.

Analog value processing Function Manual, 06/2014, A5E03461439-AC

121

High-speed analog modules 8.2 ST modules vs HS modules
Effect of load on the settling time
The settling times to the setpoint achieved with analog output modules depend on the applied load, among other things. To take advantage of the faster conversion times, only small loads (e.g., max. 47 nF) are permitted in HS modules as specified in the technical specifications.
The type of load has an effect on the form of settling to the setpoint when using output modules. Capacitive loads reduce the rise time due to the charging process and can cause the output signal to overshoot. Inductive loads result in a delayed current increase due to remagnetization and therefore also a shorter rise time. The figure below shows the output
signal with no/small , medium  and high  capacitive load.

 Reference curve of a signal with no/small load capacity  Signal with a load capacity of 47 nF  Signal with a load capacity of 100 nF

tE Settling time

t1

Module ends conversion at the terminal of the analog output channel and outputs the analog

signal

t2

Signal  has settled and the specified analog output value has been reached

(residual error 1 %)

t3

Signal  has settled and the specified analog output value has been reached

(residual error 1 %)

t4

Signal  has settled and the specified analog output value has been reached

(residual error 1 %)

Figure 8-7 Effect of different loads on the settling time

122

Analog value processing Function Manual, 06/2014, A5E03461439-AC

High-speed analog modules 8.2 ST modules vs HS modules
Effect of the cable length on the settling time
Long cables between signal source and module are a target for interferences. You should therefore keep the cables as short as possible especially for HS modules. Cables have a capacitive and inductive component and therefore have an effect on the settling behavior of the signal.
The example below shows the jump of the output voltage of an HS output module with small, medium and long cable length. The overshoot of the input signal increases with the length of the cable and therefore the time until it reaches the setpoint.

tE

Settling time

t1

Module ends conversion at the terminal of the analog output channel and outputs the analog

signal

t2

The signal running through a cable with short length has settled and the specified analog

output value has been reached (residual error 1 %)

t3

The signal running through a 20 m cable has settled and the specified analog output value has

been reached (residual error 1 %)

t4

The signal running through a 200 m cable has settled and the specified analog output value

has been reached (residual error 1 %)

Figure 8-8 Effect of different cable lengths on the settling time

Analog value processing Function Manual, 06/2014, A5E03461439-AC

123

High-speed analog modules 8.2 ST modules vs HS modules Effect of the value jump on the settling time
The figure below shows the effect of the height of the value jump between different output values on the settling time for analog output modules. The dotted line indicates the time when the signal has reached the setpoint. The higher the value jump, the later the signal reaches the setpoint.
Figure 8-9 Settling time of five different analog signals with different value jumps

124

Analog value processing Function Manual, 06/2014, A5E03461439-AC

Index

A
Abbreviations, 66, 103 Accuracy, 15 Actuators, 11, 103, 104 Additional support, 4 Analog input modules, 60, 65 Analog output modules, 60, 104 Analog value conversion, 60 Application time, 53
B
Basic conversion time, 49 Basic error limit, 15, 24 Basic knowledge
Required, 3 Bipolar measuring range, 25 Blocks
SCALE, 17 UNSCALE, 19 Burden, 57
C
Calibration, 106 Canceling, 111
Channels Calibrating, 108 Resetting to factory settings, 112
Common mode, 67, 69 Common mode rejection, 30, 33 Common mode voltage, 67 compensation
Reference channel of group 0, 88 Compensation
none/external, 98 Compensation with
Dynamic reference temperature, 94 fixed reference temperature, 91 internal reference junction, 84 RDT (0), 100 Reference channel of the module, 86 conversion analog-to-digital, 21, 51

digital-to-analog, 21 Conversion
analog-to-digital, 11 Digital-to-analog, 11 Conversion time, 27, 49, 53 coupling capacitive, 34 galvanic, 31 inductive, 31, 34 CPU, 11, 60, 67, 69 Crosstalk, 34 Crosstalk attenuation, 35 Current, 10
D
Digital multimeter, 59 Direct voltage, 69 Documentation
additional, 7 Drift, 26 Dynamic reference temperature
Overview, 83
E
EMC, 32 Error
Linearity errors, 21 Output error, 25 Temperature error, 26 ET 200AL, 7 ET 200eco PN, 7 ET 200MP, 7 ET 200pro, 7 ET 200SP, 7 External compensation Overview, 83
F
Factory settings Resetting channels to, 112
Fixed reference temperature Overview, 82

Analog value processing Function Manual, 06/2014, A5E03461439-AC

125

Index
G
Ground connection, 31 GSD file, 48
H
High-speed analog modules Isochronous mode, 113
I
Input impedance, 31 Insulation voltage, 67, 69 Interference frequency suppression, 27 Interference voltage, 31 Internal reference junction, 84
Overview, 81 Isochronous mode
Oversampling, 114
L
Line frequency 16 2/3 Hz, 28 400 Hz, 28 50 Hz, 28 60 Hz, 28
Linearity, 21 lines
for analog signals, 66 Lines
for analog signals, 103 Load, 53 Loads, 103, 104
M
Material composition of thermocouples, 78
Measurement point, 79 Measuring ranges
Overflow, 42 Overrange, 42 Rated range, 42 Underflow, 42 Underrange, 42
126

O
Online catalog, 4 Operating principle
of thermocouples, 80 Operational limit, 15, 23
P
Pressure, 9 PROFIBUS, 113 PROFINET, 113
Q
Quality Information (QI), 46
R
Reference channel of group 0 Overview, 82
Reference channel of the module Overview, 82
Reference junction, 79 Reference junction temperature, 81 Reference potential, 69, 104 Repeat accuracy, 22 Representation of analog values, 60
Binary representation, input ranges, 62, 63 Binary representation, output ranges, 63 Resistance, 10 Resistance thermometers see Thermal resistor, 74 Resistance transducers 4-wire connection, 74 Resolution, 13, 60 Response time, 52 RTD (0) Overview, 83
S
S7-1500, 7 Scaling, 17 Scope
of the documentation, 3 Sensors, Series mode rejection, 31, 33 Settling time, 53 Setup
of thermocouples, 79
Analog value processing Function Manual, 06/2014, A5E03461439-AC

Sign (S), 60 Signals
Analog, 9 Binary, 9 Processing, 12 Smoothing exponential, 56 Linear, 55 Speed, 9 Standards EN 61131, 15 FDA, 106 Step 7, 4 Step response, 55
T
Temperature, 9 Temperature measuring range
of thermocouples, 78 Thermal resistor
2-wire connection, 75 3-wire connection, 75 Connecting, 74 Thermocouples Wiring, 76 TIA Portal, 4 Transducers, 72 2-wire, 57, 72 4-wire, 73 Connecting, 65 Current transducers, 10, 57, 72 Resistance transducers, 10 Thermal resistor, 74 Thermocouples, 10, 27, 76, 79 Voltage transducers, 10, 71 Wiring, 72 Types of diagnostics, 36 Common mode error, 43 No supply voltage, 41 Overflow/underflow, 42 Overload, 45 Reference channel error, 43 Reference junction, 44 Short-circuit, 44 Wire break, 41
U
Unscaling, 19
Analog value processing
Function Manual, 06/2014, A5E03461439-AC

V
Value status, 46 Variables
Analog, 9 physical, 10 variance measured value, 22 Voltage, 10 Voltage drop, 59 Voltage measuring ranges Overflow, 14 Overrange, 14 Rated range, 14 Underflow, 14 Underrange, 14 Voltage range, 27
W
Wire break, 41
Z
Zener diode, 59

Index 127

Edition

12/2019

Function manual
SIMATIC
S7-1500
S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16
support.industry.siemens.com

SIMATIC
S7-1500 S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16
Diagnostics Manual

Preface (S7-1500, S71500T)

Function manuals

Documentation Guide (S7-

1

1500, S7-1500T)

Introduction (S7-1500, S71500T)

2

Basics (S7-1500, S7-1500T)

3

Using versions (S7-1500, S7-1500T)

4

Configuring (S7-1500, S71500T)

5

Programming (S7-1500, S71500T)

6

Downloading to CPU (S71500, S7-1500T)

7

Commissioning (S7-1500, S7-1500T)

8

Diagnostics (S7-1500, S71500T)

9

Appendix (S7-1500, S71500T)

A

TIA Portal V16
12/2019
A5E03879256-AF

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E03879256-AF  10/2019 Subject to change

Copyright © Siemens AG 2012 - 2019. All rights reserved

Preface (S7-1500, S7-1500T)

Purpose of the documentation
This documentation provides important information that you need to configure and commission the integrated Motion Control functionality of the S7-1500 Automation systems.

Required basic knowledge
In order to understand this documentation, the following knowledge is required:  General knowledge in the field of automation  General knowledge in the field of drive engineering and motion control

Validity of the documentation
This documentation is valid for the S7-1500 product range.

Conventions

 For the path settings in the project navigation it is presumed that the "Technology objects" object is opened in the CPU subtree. The "Technology object" placeholder represents the name of the technology object.
Example: "Technology object > Configuration > Basic parameters".
 The <TO> placeholder represents the name set in tags for the respective technology object.
Example: <TO>.Actor.Type
 This documentation contains pictures of the devices described. The pictures may differ in minor details from the devices supplied.
You should also observe the notes that are marked as follows:
Note
A note contains important information about the product described in the documentation, about the handling of the product, and about sections in this documentation demanding your particular attention.

Further support
 The range of technical documentation for the individual SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the online ordering system is available on the Internet (http://mall.industry.siemens.com).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

3

Preface (S7-1500, S7-1500T)
Security information (S7-1500, S7-1500T)
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

4

Diagnostics Manual, 12/2019, A5E03879256-AF

Table of contents

Preface (S7-1500, S7-1500T) ................................................................................................................. 3

1 Function manuals Documentation Guide (S7-1500, S7-1500T) ............................................................... 8

2 Introduction (S7-1500, S7-1500T) ......................................................................................................... 10

2.1

Interplay of the various documents (S7-1500, S7-1500T)......................................................10

2.2

Integrated Motion Control functionality (S7-1500, S7-1500T) ................................................11

2.3

Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)................................12

2.4

Guidelines on use of motion control (S7-1500, S7-1500T) ....................................................17

3 Basics (S7-1500, S7-1500T) ................................................................................................................. 18

3.1

Technology objects (S7-1500, S7-1500T) ..............................................................................18

3.2

Configuration limits (S7-1500, S7-1500T) ..............................................................................20

3.3

Units of measure (S7-1500, S7-1500T)..................................................................................21

3.4 3.4.1 3.4.2 3.4.3 3.4.4

Process response (S7-1500, S7-1500T) ................................................................................23 Organization blocks for Motion Control (S7-1500, S7-1500T)................................................23 Process image partition "OB Servo PIP" (S7-1500, S7-1500T) .............................................26 Operational Sequence and Timeouts (S7-1500, S7-1500T) ..................................................26 Operating modes (S7-1500, S7-1500T) .................................................................................29

4 Using versions (S7-1500, S7-1500T)..................................................................................................... 32

4.1

Overview of versions (S7-1500, S7-1500T)............................................................................32

4.2

Version V5.0 (S7-1500, S7-1500T) ........................................................................................36

4.3

Version V4.0 (S7-1500, S7-1500T) ........................................................................................41

4.4

Version V3.0 (S7-1500, S7-1500T) ........................................................................................44

4.5

Version V2.0 (S7-1500, S7-1500T) ........................................................................................46

4.6

Version V1.0 (S7-1500, S7-1500T) ........................................................................................47

4.7

Changing a technology version (S7-1500, S7-1500T) ...........................................................48

4.8

Replacing devices (S7-1500, S7-1500T)................................................................................50

5 Configuring (S7-1500, S7-1500T).......................................................................................................... 51

5.1 5.1.1 5.1.2 5.1.3

Adding and configuring drives in the device configuration (S7-1500, S7-1500T) ..................51 Adding and configuring PROFINET IO drives (S7-1500, S7-1500T) .....................................52 Adding and configuring PROFIBUS DP drives (S7-1500, S7-1500T) ....................................55 Adding and configuring drives with analog connections (S7-1500, S7-1500T)......................57

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

5

Table of contents

5.2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5

Configuration basics (S7-1500, S7-1500T) ........................................................................... 60 Add technology object (S7-1500, S7-1500T)......................................................................... 60 Copy technology object (S7-1500, S7-1500T)....................................................................... 61 Delete technology object (S7-1500, S7-1500T)..................................................................... 62 Working with the configuration editor (S7-1500, S7-1500T).................................................. 62 Compare values (S7-1500, S7-1500T) .................................................................................. 63

5.3
5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7

Configuring technological modules and onboard I/O for Motion Control (S7-1500, S71500T) .................................................................................................................................... 65 TM Count 1x24V/TM Count 2x24V (S7-1500, S7-1500T) ..................................................... 67 TM PosInput 1/TM PosInput 2 (S7-1500, S7-1500T) ............................................................ 69 TM Timer DIDQ 10x24V/TM Timer DIDQ 16x24V (S7-1500, S7-1500T).............................. 72 TM Pulse 2x24V (S7-1500, S7-1500T).................................................................................. 73 TM PTO 4 (S7-1500, S7-1500T)............................................................................................ 74 CPU 1511C-1 PN/CPU 1512C-1 PN (onboard I/O devices) (S7-1500, S7-1500T) .............. 77 SIMATIC Drive Controller (onboard I/O) (S7-1500T)............................................................. 83

5.4

Connect drive/encoder via data block (S7-1500, S7-1500T)................................................. 84

5.5 5.5.1 5.5.1.1 5.5.1.2 5.5.1.3 5.5.2 5.5.3 5.5.3.1 5.5.3.2 5.5.3.3 5.5.3.4 5.5.3.5 5.5.3.6 5.5.3.7 5.5.3.8

Parameter view (S7-1500, S7-1500T) ................................................................................... 85 Structure of the parameter view (S7-1500, S7-1500T).......................................................... 88 Toolbar (S7-1500, S7-1500T) ................................................................................................ 88 Navigation (S7-1500, S7-1500T) ........................................................................................... 89 Parameter table (S7-1500, S7-1500T) .................................................................................. 89 Opening the parameter view (S7-1500, S7-1500T)............................................................... 91 Working with the parameter view (S7-1500, S7-1500T)........................................................ 91 Filtering the parameter table (S7-1500, S7-1500T) ............................................................... 92 Sorting the parameter table (S7-1500, S7-1500T) ................................................................ 92 Transferring parameter data to other editors (S7-1500, S7-1500T) ...................................... 93 Indicating errors (S7-1500, S7-1500T) .................................................................................. 93 Editing start values in the project (S7-1500, S7-1500T) ........................................................ 94 Monitoring values online in the parameter view (S7-1500, S7-1500T).................................. 95 Modifying values (S7-1500, S7-1500T) ................................................................................. 96 Comparing values (S7-1500, S7-1500T) ............................................................................... 97

6 Programming (S7-1500, S7-1500T) ...................................................................................................... 98

6.1 6.1.1 6.1.2 6.1.3

Technology data block (S7-1500, S7-1500T) ........................................................................ 98 Evaluating the technology data block (S7-1500, S7-1500T) ................................................. 99 Evaluate StatusWord, ErrorWord and WarningWord (S7-1500, S7-1500T) ....................... 101 Change restart-relevant data (S7-1500, S7-1500T) ............................................................ 103

6.2 6.2.1 6.2.2 6.2.3

Motion Control instructions (S7-1500, S7-1500T) ............................................................... 104 Motion Control instruction parameters (S7-1500, S7-1500T) .............................................. 104 Add Motion Control instructions (S7-1500, S7-1500T) ........................................................ 108 Parameter transfer for function blocks (S7-1500, S7-1500T) .............................................. 110

6.3

Starting Motion Control jobs (S7-1500, S7-1500T).............................................................. 112

6.4 6.4.1 6.4.2 6.4.3

Tracking active jobs (S7-1500, S7-1500T) .......................................................................... 114 Motion Control instructions with "Done" parameter (S7-1500, S7-1500T) .......................... 114 Motion Control instructions without "Done" parameter (S7-1500, S7-1500T) ..................... 119 Motion Control instruction "MC_MoveJog" (S7-1500, S7-1500T) ....................................... 123

6.5

Ending Motion Control jobs (S7-1500, S7-1500T)............................................................... 126

6.6

Restart of technology objects (S7-1500, S7-1500T)............................................................ 127

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

6

Diagnostics Manual, 12/2019, A5E03879256-AF

Table of contents

7 Downloading to CPU (S7-1500, S7-1500T) ......................................................................................... 128

8 Commissioning (S7-1500, S7-1500T).................................................................................................. 129

8.1

Commissioning guidelines (S7-1500, S7-1500T) .................................................................130

9 Diagnostics (S7-1500, S7-1500T) ....................................................................................................... 133

9.1

Diagnostic concept (S7-1500, S7-1500T).............................................................................134

9.2

Technology alarms (S7-1500, S7-1500T).............................................................................135

9.3

Errors in Motion Control instructions (S7-1500, S7-1500T)..................................................139

A Appendix (S7-1500, S7-1500T) ........................................................................................................... 140

A.1 A.1.1 A.1.2 A.1.3 A.1.4 A.1.5 A.1.6 A.1.7 A.1.8 A.1.9

Technology alarms (S7-1500, S7-1500T).............................................................................140 Overview of the technology alarms (S7-1500, S7-1500T)....................................................140 Technology alarms 101-114 (S7-1500, S7-1500T) ..............................................................144 Technology alarms 201-204 (S7-1500, S7-1500T) ..............................................................151 Technology alarms 304-343 (S7-1500, S7-1500T) ..............................................................152 Technology alarms 401-431 (S7-1500, S7-1500T) ..............................................................155 Technology alarms 501-552 (S7-1500, S7-1500T) ..............................................................158 Technology alarms 601-613 (S7-1500, S7-1500T) ..............................................................164 Technology alarms 700-758 (S7-1500, S7-1500T) ..............................................................166 Technology alarms 900-902 (S7-1500, S7-1500T) ..............................................................170

A.2

Error ID for Motion Control instructions (S7-1500, S7-1500T) .............................................171

A.3 A.3.1 A.3.2

SINAMICS drives (S7-1500, S7-1500T) ...............................................................................176 Compatibility list (S7-1500, S7-1500T) .................................................................................177 Homing SINAMICS drives with external zero marks (S7-1500, S7-1500T) .........................177

A.4

Data types (S7-1500, S7-1500T)..........................................................................................178

Glossary (S7-1500, S7-1500T)............................................................................................................ 179

Index................................................................................................................................................... 183

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

7

Function manuals Documentation Guide (S7-1500, S7-1500T)

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

8

Diagnostics Manual, 12/2019, A5E03879256-AF

Function manuals Documentation Guide (S7-1500, S7-1500T)

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

9

Introduction (S7-1500, S7-1500T)

2

2.1

Interplay of the various documents (S7-1500, S7-1500T)
For a better overview, the documentation of the Motion Control functions is divided into the following documents:

Documentation
S7-1500/S7-1500T Motion Control overview
Function manual "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens. com/cs/ww/en/view/109766459)
Using S7-1500/S7-1500T axis functions
Function manual "S7-1500/S71500T Axis functions" (https://support.industry.siemens. com/cs/ww/en/view/109766462)
Using S7-1500/S7-1500T measuring input and output cam functions
Function manual "S7-1500/S71500T Measuring input and output cam functions" (https://support.industry.siemens. com/cs/ww/en/view/109766466)
Using S7-1500/S7-1500T synchronous operation functions
Function manual "S7-1500/S71500T Synchronous operation functions" (https://support.industry.siemens. com/cs/ww/en/view/109766464)
Using S7-1500T kinematics functions
Function manual "S7-1500T Kinematics functions" (https://support.industry.siemens. com/cs/ww/en/view/109766463)

Description This documentation describes the Motion Control functions independent of and across technology objects.
This documentation describes the Motion Control functions for the following technology objects: · Speed axis · Positioning axis · External encoder This documentation describes the Motion Control functions for the following technology objects: · Measuring input · Output cam · Cam track
This documentation describes the Motion Control functions for the following technology objects: · Synchronous axis · Cam (S7-1500T) · Leading axis proxy (S7-1500T)
This documentation describes the Motion Control functions for the following technology objects: · Kinematics (S7-1500T)

Additional information
You can find an overview and important links to the topic "SIMATIC Motion Control" in the Siemens Industry Online Support under the entry ID 109751049 (https://support.industry.siemens.com/cs/ww/en/view/109751049).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

10

Diagnostics Manual, 12/2019, A5E03879256-AF

Introduction (S7-1500, S7-1500T) 2.2 Integrated Motion Control functionality (S7-1500, S7-1500T)

2.2

Integrated Motion Control functionality (S7-1500, S7-1500T)

S7-1500 Motion Control supports closed-loop positioning and moving of axes and is an integrated part of the CPUs:

 Advanced Controller S7-1500(F)/S7-1500T(F)

 Distributed Controller S7-1500SP (F)/S7-1500SP T(F)

 Software Controller S7-1507S (F)

 Drive Controller S7-150xD TF

The S7-1500T Technology CPUs provide enhanced functions.

The Motion Control functionality supports the following technology objects:

 Speed axis

 Positioning axis

 Synchronous axis

 External encoder

 Measuring input

 Output cam

 Cam track

 Cam (S7-1500T)

 Kinematics (S7-1500T)

 Leading axis proxy (S7-1500T)

Drives with PROFIdrive capability and drives with analog setpoint interface and stepper motors are controlled by means of standardized Motion Control instructions according to PLCopen.

The axis control panel and comprehensive online and diagnostic functions support easy commissioning and optimization of drives.

S7-1500 Motion Control is fully integrated into the system diagnostics of the S7-1500 CPU.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

11

Introduction (S7-1500, S7-1500T) 2.3 Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)

2.3

Principle of operation of S7-1500 Motion Control (S7-1500, S7-

1500T)

You create a project, configure technology objects, and download the configuration to the CPU with the TIA Portal. The Motion Control functionality is processed in the CPU. You control the technology objects by using the Motion Control instructions in your user program. The TIA Portal provides additional functions for commissioning (Page 129), optimization and diagnostics (Page 133).

The following figure provides a schematic representation of the user interfaces and the integration of Motion Control into the S7-1500 CPU. The concepts are then briefly explained:

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

12

Diagnostics Manual, 12/2019, A5E03879256-AF

Introduction (S7-1500, S7-1500T) 2.3 Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)

TIA Portal

The TIA Portal supports you in the planning and commissioning of Motion Control functionality:
 Integrating and configuring hardware
 Creating and configuring technology objects
 Creating the user program
 Downloading to CPU
 Commissioning of axes
 Optimization of drives
 Diagnostics
You use the TIA Portal to configure the hardware, the technology objects as well as your user program. You download the program you created to the CPU. You test your user program and diagnose the hardware with the online and diagnostic functions of the TIA Portal.

Technology objects
Technology objects represent real objects (e.g. an axis) in the controller. You call the functions of the technology objects by means of Motion Control instructions in your user program. These functions are executed in the Motion Control organization blocks (Page 23) independently of the user program. The technology objects provide open- and closed-loop control of the movement of the real objects, and report status information (e.g. the current position).
The configuration of the technology objects represents the properties of the real object. The configuration data is stored in a technology data block.
The following technology objects are available for Motion Control:

Symbol

Technology object Description

Speed axis

The speed axis technology object ("TO_SpeedAxis") is used to specify the speed for a drive. You program the motion of the axis with motion control instructions.

Positioning axis

The positioning axis technology object ("TO_PositioningAxis") is used to position a drive with closed-loop position control. You issue positioning jobs to the axis with Motion Control instructions in your user program.

Synchronous axis

The synchronous axis technology object ("TO_SynchronousAxis") includes all functions of the positioning axis technology object. The axis can also be interconnected with a leading value so that the axis follows the position change of a leading axis in synchronous operation.

Leading axis proxy With cross-PLC synchronous operation, the leading axis proxy tech-

(S7-1500T)

nology object ("TO_LeadingAxisProxy") represents the leading axis for

local synchronous operation within a CPU. The leading axis proxy

evaluates the leading value telegram and provides the external lead-

ing value for the local synchronous axes.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

13

Introduction (S7-1500, S7-1500T) 2.3 Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)

Symbol

Technology object External encoder Measuring input Output cam
Cam track
Cam (S7-1500T)
Kinematics (S71500T)

Description
The external encoder technology object ("TO_ExternalEncoder") detects a position and makes it available to the controller. The detected position can be evaluated in the user program.
The measuring input technology object ("TO_MeasuringInput") detects actual positions quickly, accurately and event triggered.
The output cam technology object ("TO_OutputCam") generates switching signals depending on the position of an axis or external encoder. You can evaluate the switching signals in the user program or feed them to digital outputs.
The cam track technology object ("TO_CamTrack") generates a switching signal sequence depending on the position of an axis or external encoder. In this process, up to 32 individual cams are superimposed and the switching signals are output as a track. You can evaluate the switching signals in the user program or feed them to digital outputs.
The cam technology object ("TO_Cam") specifies a synchronization function F(x) for camming, over which the leading and following axes are coupled. The f(x) function is defined by interpolation points and/or segments. Missing function ranges are interpolated.
The Kinematic technology object ("TO_Kinematics") is used to interconnect positioning axes to a kinematic. When you configure the kinematics technology object, you interconnect the axes in accordance with the configured kinematics type.

Technology data block
The properties of real objects are configured by means of the technology objects and saved in a technology data block (Page 98). The technology data block contains all configuration data, setpoint and actual values, and status information of the technology object. The TIA Portal automatically creates the technology data block when the technology object is created. You access the data of the technology data block (read/write access) with your user program.

Motion Control instructions
With the Motion Control instructions you perform the desired functionality in the technology objects. The Motion Control instructions are available in the TIA Portal under "Instructions > Technology > Motion Control". The instructions can be called at all execution levels.

The Motion Control instructions conform to PLCopen (version 2.0).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

14

Diagnostics Manual, 12/2019, A5E03879256-AF

Introduction (S7-1500, S7-1500T) 2.3 Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)

User program

The Motion Control instructions and the technology data block represent the programming interfaces for the technology objects. You use Motion Control instructions to transfer Motion Control jobs for the technology objects in your user program. The technology objects process the jobs in the Motion Control organization blocks, which are called independently of the user program, and flag the current status to the Motion Control instruction. Each time the Motion Control instruction is called, the current status of the current job is displayed at the output parameters of the Motion Control instruction. You access status information of the technology object and change specific configuration parameters during runtime using the technology data block.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

15

Introduction (S7-1500, S7-1500T) 2.3 Principle of operation of S7-1500 Motion Control (S7-1500, S7-1500T)
Drives and encoders
Drives ensure the motion of the axis. They are integrated in the hardware configuration. When you execute a Motion Control job in your user program, the technology object takes over the control of the drive and the reading in of values of encoders. Drives and encoders with PROFIdrive capability are connected by means of PROFIdrive telegrams. The following connections are possible:  PROFINET IO  PROFIBUS DP  Technology module (TM)  SINAMICS Integrated (SIMATIC Drive Controller) Drives with analog setpoint interfaces are connected using an analog output (AQ) and an optional enable signal. Analog inputs and outputs are made available by means of corresponding I/O modules. A drive is also called an actuator, and an encoder is also called a sensor. The following figure shows an example configuration in which all components are connected to the CPU by means of PROFINET IO:

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

16

Diagnostics Manual, 12/2019, A5E03879256-AF

Introduction (S7-1500, S7-1500T) 2.4 Guidelines on use of motion control (S7-1500, S7-1500T)

2.4

Guidelines on use of motion control (S7-1500, S7-1500T)

The guidelines described here present the basic procedure for using Motion Control with the CPU S7-1500. These guidelines serve as recommendations.

Requirements
 A project with a CPU S7-1500 has been created.

Procedure

Proceed as follows to use Motion Control with the CPU S7-1500: 1. Add technology object (Page 60) 2. Working with the configuration editor (Page 62) 3. Programming (Page 98) 4. Downloading to CPU (Page 128) 5. Functional test in the Commissioning window (Page 129) 6. Diagnostics (Page 133)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

17

Basics (S7-1500, S7-1500T)

3

3.1

Technology objects (S7-1500, S7-1500T)

The S7-1500 and S7-1500T CPUs support the following technology objects:

Technology object Speed axis
Positioning axis Synchronous axis External encoder Measuring input
Output cam

Brief description
The speed axis technology object calculates speed setpoints, taking into account the dynamic settings, and outputs them to the drive. All motions of the speed axis take place as speed-controlled motions.
The speed axis technology object is described in the documentation "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462).
The positioning axis technology object calculates position setpoints, taking into account the dynamic specification position setpoints , and outputs corresponding speed setpoints to the drive.
The positioning axis technology object is described in the documentation "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462).
The synchronous axis technology object includes all functions of the positioning axis technology object. A synchronous axis can also follow the motions of a leading axis.
The synchronous axis technology object is described in the documentation "S7-1500/S7-1500T Synchronous operation functions" (https://support.industry.siemens.com/cs/ww/en/view/109766464).
The external encoder technology object detects a position and makes this available to the controller.
The external encoder technology object is described in the documentation "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462).
The measuring input technology object acquires the actual position of an axis or external encoder at a signal change at the measuring input.
The measuring input technology object is described in the documentation "S7-1500/S7-1500T Measuring input and output cam functions" (https://support.industry.siemens.com/cs/ww/en/view/109766466).
The output cam technology object generates switching signals depending on the position of an axis or external encoder.
The output cam technology object is described in the documentation "S7-1500/S7-1500T Measuring input and output cam functions" (https://support.industry.siemens.com/cs/ww/en/view/109766466).

S7-1500 x
x x x x
x

S7-1500T x
x x x x
x

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

18

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.1 Technology objects (S7-1500, S7-1500T)

Technology object Cam track
Cam Leading axis proxy Kinematics

Brief description
The cam track technology object generates a switching signal sequence depending on the position of an axis or external encoder. A cam track can consist of up to 32 individual output cams and be output to one output.
The cam track technology object is described in the documentation "S7-1500/S7-1500T Measuring input and output cam functions" (https://support.industry.siemens.com/cs/ww/en/view/109766466).
The cam technology object defines a transfer function y = f(x). The dependency of an output variable on an input variable is described in this transfer function in a unit-neutral manner.
The cam technology object is described in the documentation "S71500/S7-1500T Synchronous operation functions" (https://support.industry.siemens.com/cs/ww/en/view/109766464).
With cross-PLC synchronous operation, the leading axis proxy technology object represents the leading axis for local synchronous operation within a CPU.
The synchronous axis technology object is described in the documentation "S7-1500/S7-1500T Synchronous operation functions" (https://support.industry.siemens.com/cs/ww/en/view/109766464).
The kinematics technology object calculates motion setpoints for the tool center point (TCP) of the kinematics taking into account the dynamic settings.
The Kinematics technology object is described in the documentation "S7-1500T Kinematics functions" (https://support.industry.siemens.com/cs/ww/en/view/109766463).

S7-1500 x
-

S7-1500T x
x x x

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

19

Basics (S7-1500, S7-1500T) 3.2 Configuration limits (S7-1500, S7-1500T)

3.2

Configuration limits (S7-1500, S7-1500T)

Motion Control resources
Each CPU offers a defined set of Motion Control resources. For information on the available Motion Control resources, refer to the technical specifications of the utilized CPU.
Each technology object uses Motion Control resources:

Technology object Speed axis Positioning axis Synchronous axis External encoder Measuring input Output cam Cam track

Motion Control resources used 40 80 160 80 40 20 160

You can find an overview of the Motion Control resources of a CPU in the TIA Portal under "Tools > Resources".

Extended Motion Control resources (S7-1500T)
The leading axis proxy, cam and kinematics technology objects use "Extended Motion Control resources". For information on the maximum number of leading axis proxies, cams and kinematics that can be used in addition to the Motion Control resources, refer to the technical specifications of the relevant CPU.

Technology object Leading axis proxy Cam Kinematics

Extended Motion Control resources used 3 2 30

Application cycle
As the number of technology objects used increases, the computing time needed by CPU to process the technology objects increases. The Motion Control application cycle (Page 23) can be adapted according to the number of technology objects used.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

20

Diagnostics Manual, 12/2019, A5E03879256-AF

3.3

Basics (S7-1500, S7-1500T) 3.3 Units of measure (S7-1500, S7-1500T)

Units of measure (S7-1500, S7-1500T)
The supported units of measure for speed (revolutions per time unit) are 1/s, 1/min and 1/h. The table below shows the supported units of measure for position and velocity:

Position nm, m, mm1), m, km
in, ft, mi °1), rad

Velocity mm/s1), mm/min, mm/h, m/s, m/min, m/h, km/min, km/h in/s, in/min, ft/s, ft/min, mi/h °/s1), °/min, rad/s, rad/min

1) Position values with higher resolution or six decimal places

The acceleration is set accordingly as the position/s² unit of measure.

The jerk is set accordingly as the position/s² unit of measure.

The table below shows the supported units of measure for force and torque:

Force N, kN lbf, ozf, pdl

Torque Nm, kNm lbf in, lbf ft, ozf in, ozf ft, pdl in, pdl ft

The unit of measure for time is permanently specified for the following technology objects:

Technology object Speed axis, positioning/synchronous axis, external encoder Output cam, cam track, measuring input

Time s ms

Note
When setting or changing the units of measure, take into consideration the effect on the display of parameter values and the user program: · Display of parameter values in the technology data block · Assignment of parameters in the user program · Input and display of the position and velocity in the TIA Portal · Setpoint settings by leading axes in synchronous operation
All information and displays correspond to the selected unit of measure.
The set units are displayed in the tag structure of the <TO>.Units technology object. The tag structure is described in the Appendix (Page 140) under the tags of the respective technology object.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

21

Basics (S7-1500, S7-1500T) 3.3 Units of measure (S7-1500, S7-1500T)
Position values with higher resolution
If you select the check box "Use position values with higher resolution" in the configuration of the technology objects "TO_PositioningAxis", "TO_SynchronousAxis", "TO_ExternalEncoder" and "TO_Kinematics", six decimal places are available in the selected unit. The displayable position and angle range in [mm] and [°] is limited in LREAL format to +9.0E09 digits. This reduces the position and angle range that can be displayed as well as the mechanical gear ratio by the factor 1000. With regard to long-term stability, the numerical travel range limit is reduced accordingly by the factor 1000.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

22

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)

3.4

Process response (S7-1500, S7-1500T)

3.4.1

Organization blocks for Motion Control (S7-1500, S7-1500T)
When you create a technology object, organization blocks MC-Servo [OB91] and MCInterpolator [OB92] are automatically created for processing the technology objects. The organization block MC-LookAhead [OB97] is also created for the kinematics technology object as of technology version 5.0. The technology objects are processed in the Motion Control application cycle. The application cycle consists of required and optional organization blocks (OBs).
In the user program, call the appropriate Motion Control instruction and start a Motion Control job for a technology object. In the organization block Main [OB1], call the user program cyclically.
Optionally, programmable Motion Control OBs are available, which you must insert manually. These organization blocks take into account special requirements with regard to time-critical events or the time sequence of function calls. This makes it possible, for example, to start motions immediately in the event of time-critical events.
The following table shows the organization blocks for Motion Control:

Organization block Description

Priority1)

MC-PreServo [OB67] For For example: Preparation of the telegram contents from Corresponds to

(optional)

the drive system.

MC-Servo

Is called immediately before the MC-Servo [OB91].

MC-Servo [OB91] (know-howprotected)

Calculation of the position controller System performance, no user program possible.

17 to 26 Default 26

MC-PostServo [OB95] (optional)

For For example: Preparation of the setpoints for the drive Corresponds to

system.

MC-Servo

Is called immediately after the MC-Servo [OB91].

MC-Transformation Programming of the transformation of Cartesian coordinates 17 to 25

[OB98] (optional)

and axis-specific setpoints for user-defined kinematics

Default 25

MC-PreInterpolator For For example: MotionIn instructions for measuring in-

[OB68] (optional)

puts, output cams and cam tracks

Corresponds to MC-Interpolator

The MC-PreInterpolator [OB68] is required for iposynchronous processing of Motion Control instructions.

Is called immediately before the MC-Interpolator [OB92].

MC-Interpolator [OB92] (know-howprotected)

Evaluation of the Motion Control instructions, generation of setpoints and monitoring functionality
System performance, no user program possible.

16 to 25 Default 24

MC-LookAhead [OB97] (know-howprotected)

Calculation of the motion processing of the kinematics technology object
Applies only to a technology object kinematics V5.0 or higher.

15 to 16 Default 15

System performance, no user program possible.

1) 26 corresponds to highest priority.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

23

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)
The clock ratio of the two organization blocks MC-Servo [OB91] and MC-Interpolator [OB92] to each other is always 1:1. You can scale the ratio of the bus clock to the application cycle. You can set the application cycle and the priority of the organization blocks according to your requirements for control quality and system load. You can check the runtime of the respective organization block (except MC-LookAhead [OB97]) with the instruction "RT_INFO". The current application cycle (in µs) of the organization blocks MC-PreServo [OB67] and MC-PostServo [OB95] and MCPreInterpolator [OB68] can be read using the start information.
Application cycle
In the properties of the organization block MC-Servo [OB91], you can set the application cycle in which the organization blocks for MC-Servo [OB91], MC-Interpolator [OB92] and their optional OBs are called:  Synchronous to the bus (recommended setting for optimum control quality)
The application cycle is synchronous to the selected source of the send clock and the corresponding reduction ratio. The following clock sources are available for selection: ­ PROFINET IO ­ PROFIBUS DP ­ Local bus system (as of firmware version  2.6) ­ PROFIdrive system for SINAMICS Integrated of SIMATIC Drive Controller A bus system that is connected to the CPU via a communication processor/communication module (CP/CM) cannot be used synchronously.  Cyclic The application cycle is called at the specified time interval. Processing is asynchronous to the bus clock/send clock.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

24

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)

Possibilities of influencing the process behavior
The system load is primarily determined by the quantity structure (number of technology objects), the communication load and the user program. The processing time in the application cycle increases with the number of technology objects (MC-Servo [OB91]). Simultaneous starting of Motion Control instructions results in additional processing times in the application cycle (MC-Interpolator [OB92] and MC-LookAhead [OB97]) at short notice. Optional Motion Control OBs additionally affect the processing time of the application cycle.
You define the available processing time using the set application cycle. The time available at the end of the application cycle is used for processing the low-priority OBs with the other user program.
The cycle time of the Main [OB1] can increase significantly due to longer processing times in the application cycle.
System overloads are indicated by timeouts or overflows (Page 26) of Main [OB1], MCServo [OB91] and MC-Interpolator [OB92].
You have the following options for influencing the system load and the processing times of the user program:
 Reduce the bus clock
 Reduce clock
 Reduce the percentage cycle load of the MC-LookAhead [OB97] (adjustment range 1% to 40%, default setting 20%)
 Reduce percentage communication load of the CPU
 To relieve the load on MC-Interpolator [OB92] and MC-LookAhead [OB97], avoid simultaneous starting of Motion Control instructions
If necessary, use one or more options to optimize the system and the flow behavior.

Clock reduction ratio (as of firmware version 1.5)
You can reduce the application cycle of the MC-Servo [OB91] to the send clock of the selected isochronous bus system. You can set an integer multiple of the send clock as the factor. A maximum cycle time of 32 ms is possible for the application cycle.
If you call an isochronous mode interrupt OB and the MC-Servo [OB91] with the same bus system, you must set the same factor for both organization blocks.

Priority

You can configure the priority of the organization blocks as needed in their properties under "General > Properties > Priority".
When setting the priorities, make sure that the MC-Servo [OB91] is always set before the MC-PreInterpolator [OB68] and the MC-Interpolator [OB92]. The priority of MC-Servo [OB91] must be at least one higher than the priority of MC-Interpolator [OB92]. The priority of the MC-LookAhead [OB97] must be at least one level higher than the priority of cyclic interrupts.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

25

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)

3.4.2

Process image partition "OB Servo PIP" (S7-1500, S7-1500T)
The process image partition "OB Servo PIP" is made available in isochronous mode for Motion Control when MC-Servo [OB91] is called. All drives and encoders used by Motion Control are assigned to this process image partition.
Because the organization blocks MC-PreServo [OB67] and MC-PostServo [OB95] are called automatically by the MC-Servo [OB91], the process image partition is also available automatically. If you use a MC-PreServo [OB67], the data are read in when the MCPreServo [OB67] starts. If you use a MC-PostServo [OB95], the data are output after the MC-PostServo [OB95].
Additionally, you should assign all I/O modules used by Motion Control to this process image partition (e.g. hardware limit switches). The assignment results in chronologically synchronous processing with the technology object.
The input process image partition is also updated in STOP mode.

Process image partition in the user program
As of firmware version V1.5, you can access the process image partition "OB Servo PIP" in your user program. This makes it possible to evaluate the process image partition using the trace function.

3.4.3

Operational Sequence and Timeouts (S7-1500, S7-1500T)
When processing the Motion Control functionality, the Motion Control organization blocks MC-Servo [OB91] and MC-Interpolator [OB92] including the optional organization blocks are called and processed in each application cycle. Your user program is processed during the remaining time until the next application cycle.
For error-free program execution, keep to the following rules:
 In each application cycle, MC-Servo [OB91] must be started and executed completely.
 In each application cycle, the relevant MC-Interpolator [OB92] must at least be started.
The following figure illustrates the time sequence of the cyclic user program and application cycle:
 The upper section shows the processing of the Main [OB1] without interruption of the application cycle by Motion Control OBs with higher priority.
 The central section shows the processing of Main [OB1] with interruption. Motion Control OBs with higher priority are executed in the application cycle.
The Main [OB1] is interrupted in the cycle of the application cycle; the cycle time of the user program becomes accordingly longer.
 The lower section shows a detailed view of the error-free run behavior of the individual organization blocks.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

26

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)



"TPA OB Servo" input process image partition



"TPA OB Servo" output process image partition



First MC-LookAhead cycle



Second MC-LookAhead cycle



Main [OB1] cycle n



Main [OB1] cycle n+1

The Motion Control OBs and the Main [OB1] are processed one after the other in application
cycle 1. The process image partition "TPA OB SERVO"  is read before processing the
MC-PreServo [OB67]. The MC-Servo [OB91] is displayed as S1 in the first application cycle.
After processing the MC-PostServo [OB95], the process image partition "TPA OB SERVO"
 is updated.

The MC-PreInterpolator [OB68] and the MC-Interpolator [OB92] are then processed. The MC-Interpolator [OB92] is displayed as I1 in the first application cycle. Its processing time varies according to the evaluation of the Motion Control instructions as well as the monitoring and setpoint generation for all technology objects configured on the CPU for motion contol.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

27

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)

Number  represents the processing of the MC-LookAhead [OB97] The Main [OB1] () is
further processed only after all Motion Control OBs have been processed.
In the second application cycle, the processing time for the MC-Interpolator [OB92] I2 and
the second MC-LookAhead cycle  is shorter than in the first application cycle. The Main [OB1] cycle n  is finished before the third application cycle. The Main [OB1] cycle n+1 
is already being processed in the remaining time until the third application cycle. This means that parts of two Main [OB1] cycles can be processed between two application cycles.

Overflows

Overflows can occur if the configured application cycle is not adhered to, for example because additional technology objects or programs are added in the MC-PreServo [OB67] or MC-PostServo [OB95]. The application cycle must be adapted in this case. The MC-Servo [OB91] must be completed before the next send clock, irrespective of the permissible duration of the application cycle.
If the processing time of MC-Servo [OB91] exceeds the duration of a send clock, the message "overflow" is displayed in the diagnostics buffer of the CPU. The controller no longer runs isochronously.
If the processing time exceeds the duration of an application cycle, the CPU switches to STOP operating state.
The following figure shows the behavior in the case of overflow of MC-Servo [OB91] in the application cycle and in the send clock with a reduction ratio of 2:



Start of the processing of MC-Servo [OB91]



Overflow (message)

*

Including MC-PreServo [OB67] and/or MC-PostServo [OB95], when in use

The execution of an MC-Interpolator [OB92] may only be interrupted by an MC-Servo [OB91] call. If more interruptions occur, the CPU switches to STOP mode.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

28

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)
The following figure shows the operational sequence when an MC-Interpolator [OB92] is interrupted over two time slices:

1)

Including MC-PreServo [OB67] and/or MC-PostServo [OB95], when in use

2)

Including MC-PreInterpolator [OB68], if available

The CPU tolerates a maximum of three consecutive overflows of MC-Interpolator [OB92]. If more overflows occur, the CPU switches to STOP mode.

The following figure shows the operational sequence if there are four consecutive individual overflows of MC-Interpolator [OB92]:

1)

Including MC-PreServo [OB67] and/or MC-PostServo [OB95], when in use

2)

Including MC-PreInterpolator [OB68], if available

3.4.4

Operating modes (S7-1500, S7-1500T)
This section examines the behavior of the Motion Control in the respective operating modes and in the transitions between operating modes. A general description of the operating modes can be found in the S7-1500 System Manual

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

29

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)
Operating modes and transitions
The CPU has the following operating modes:  STOP  STARTUP  RUN  HOLD The following figure shows the operating modes and the operating mode transitions:

Operating mode transitions
The following table shows the behavior of the Motion Control in the transitions between the operating modes:

No.
   
    

Operating mode transition
POWER ON  STOP
STOP  STARTUP

Behavior
The CPU performs a restart of the technology objects. The technology objects are reinitialized with the values from the load memory. Not relevant for Motion Control.

STARTUP  RUN The process outputs are enabled.

RUN  STOP STARTUP  HOLD

When the CPU changes from RUN mode to STOP mode, all technology objects are disabled in accordance with the alarm response "remove enable". Active Motion Control jobs are aborted.
If restart-relevant data has been changed for technology objects in RUN, the CPU performs a restart of the corresponding technology objects.
Breakpoint in the start-up routine reached.

HOLD  STARTUP Not possible when using technology objects

RUN  HOLD

Breakpoint reached

HOLD  RUN

Not possible when using technology objects

HOLD  STOP

By operation of switch/display or by setting to STOP from programming device.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

30

Diagnostics Manual, 12/2019, A5E03879256-AF

Basics (S7-1500, S7-1500T) 3.4 Process response (S7-1500, S7-1500T)

STOP mode

In STOP mode the user program is not processed and all process outputs are disabled. Thus no Motion Control jobs are executed.
The technology data blocks are updated.

STARTUP mode
Before the CPU starts processing of the cyclical user program, the startup OBs are processed one time.
In STARTUP mode, the process outputs are disabled. Motion Control jobs are rejected.
The technology data blocks are updated.

RUN mode

The user program is processed in RUN mode. In RUN mode, the programmed Motion Control jobs are cyclically called and processed. The technology data blocks are updated.

HOLD operating state
Working with breakpoints is not supported when technology objects are used. An overflow of the MC-Servo hereby occurs. This leads to an immediate switch to STOP mode.
In HOLD operating state, events are not initiated and the user program is not executed.
All outputs are disabled or react according to the parameter settings. Outputs supply a configured substitute value or keep the last value output and bring the controlled process to a safe operating state.
When you reach a breakpoint, the CPU executes an implicit restart of the technology object. Homing the technology once again.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

31

Using versions (S7-1500, S7-1500T)

4

4.1

Overview of versions (S7-1500, S7-1500T)

For S7-1500 Motion Control, a distinction is made between the version of the technology, the technology objects and the Motion Control instructions. The overview shown below includes S7-1500 and S7-1500T. Only one technology version can be operated on a CPU.

When changing to a CPU  V1.6, you must change the technology version accordingly. Card replacement from a CPU < V1.6 to a  CPU V1.6 is supported. In the TIA Portal, you can use a CPU  V1.6 only to work on projects with a correspondingly higher technology version.

There are two ways of changing the technology version:

 Changing the version of the Motion Control instructions

You change the version of the Motion Control instructions in the "Instructions" task card in the folder "Technology > Motion Control > S7-1500 Motion Control".

If the Motion Control instruction version used does not correspond to the compatibility list, the relevant Motion Control instructions are highlighted in red in the program editor.

 Adding a technology object with an alternative version

If a technology object with an alternative version is added in the "Add new object" dialog, the technology version is changed to the alternative version.

The technology objects and Motion Control instructions are only converted to the selected version of the technology during compilation.

The version of a technology object or a Motion Control instruction is indicated in the properties of the technology object, "General > Information" tab, "Version" field.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

32

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.1 Overview of versions (S7-1500, S7-1500T)

Compatibility list
The table below shows the compatibility of the technology version with the CPU version:

CPU V2.8

Technology V5.0

V2.5

V4.0

V2.0, V2.1

V3.0

V1.6, V1.7, V1.8

V2.0

V1.0, V1.1, V1.51

V1.0

Technology object Speed axis V5.0 Positioning axis V5.0 External encoder V5.0 Synchronous axis V5.0 Measuring input V5.0 Output cam V5.0 Cam track V5.0 Cam V5.0 (S7-1500T) Kinematics V5.0 (S7-1500T) Leading axis proxy V5.0 (S7-1500T) Speed Axis V4.0 Positioning Axis V4.0 External Encoder V4.0 Synchronous Axis V4.0 Measuring input V4.0 Cam V4.0 Cam track V4.0 Cam V4.0 (S7-1500T) Kinematics V4.0 (S7-1500T) Speed Axis V3.0 Positioning axis V3.0 External encoder V3.0 Synchronous axis V3.0 Measuring input V3.0 Output cam V3.0 Cam track V3.0 Cam V3.0 (S7-1500T) Speed Axis V2.0 Positioning axis V2.0 External encoder V2.0 Synchronous axis V2.0 Speed Axis V1.0 Positioning axis V1.0 External encoder V1.0

1) Card replacement from a CPU < V1.6 to a CPU  V1.6 is supported.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

33

Using versions (S7-1500, S7-1500T) 4.1 Overview of versions (S7-1500, S7-1500T)

Parameter "Mode" of the Motion Control instruction "MC_Home"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter.
The table below shows a comparison of the "MC_Home.Mode" parameter for technology V1.0 and  V2.0:

MC_Home.HomingMode V1.0
Direct homing (absolute) Direct homing (relative) Passive homing Passive homing (with configured home position) Active homing Active homing (with configured home position) Absolute encoder adjustment (relative) Absolute encoder adjustment (absolute) Passive homing (without reset) Abort passive homing -

Parameter value 0 1 2 3
4 5
6 7 8 9 10

MC_Home.Mode  V2.0
Direct homing (absolute) Direct homing (relative) Passive homing (without reset) Active homing
Reserved Active homing (with configured home position) Absolute encoder adjustment (relative) Absolute encoder adjustment (absolute) Passive homing Abort passive homing Passive homing (with configured home position)

You can find additional information about the "MC_Home.Mode" parameter in the description of the Motion Control instruction "MC_Home".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

34

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.1 Overview of versions (S7-1500, S7-1500T)

Tags of the technology object
Starting from technology version V3.0, all input and output addresses are specified using data type "VREF". This results in the following changes to the tags of the technical object:

Tag of technology object
<TO>.Actor.Interface.AddressIn <TO>.Actor.Interface.AddressOut <TO>.Sensor[1..4].Interface.AddressIn <TO>.Sensor[1..4].Interface.AddressOut <TO>.Actor.Interface.EnableDriveOutputAddress <TO>.Actor.Interface.EnableDriveOutputBitNumber <TO>.Actor.Interface.DriveReadyInputAddress <TO>.Actor.Interface.DriveReadyInputBitNumber <TO>.Sensor[1..4].ActiveHoming.DigitalInputAddress <TO>.Sensor[1..4].ActiveHoming.DigitalInputBitNumber <TO>.Sensor[1..4].PassiveHoming.DigitalInputAddress <TO>.Sensor[1..4].PassiveHoming.DigitalInputBitNumber <TO>.PositionLimits_HW.MinInputAddress <TO>.PositionLimits_HW.MinInputBitNumber <TO>.PositionLimits_HW.MaxInputAddress <TO>.PositionLimits_HW.MaxInputBitNumber

Changes starting from V3.0 Data type: VREF Data type: VREF Data type: VREF Data type: VREF Data type: VREF Tag eliminated Data type: VREF Tag eliminated Data type: VREF Tag eliminated Data type: VREF Tag eliminated Data type: VREF Tag eliminated Data type: VREF Tag eliminated

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

35

Using versions (S7-1500, S7-1500T) 4.2 Version V5.0 (S7-1500, S7-1500T)

4.2

Version V5.0 (S7-1500, S7-1500T)

Innovations

Technology version V5.0 contains the following new features:
 The values for position, velocity and angle can be configured with higher resolution.
 In the axis control panel, the dynamic values are retained until the axis control panel is closed.
 In the central operation of the technological modules, the clock synchronization is supported via the active backplane bus.
 The organization block MC-PreInterpolator [OB68] enables isosynchronous processing of Motion Control instructions.
 With a "MC_Stop" job, you can stop an axis and prevent new jobs.
 With a "MC_Home" job, target positions can be set absolutely or relatively.
 With a "MC_Reset" job, alarms in the drive can be acknowledged without a pending error at the technology object.
 Selected bits in control word 1 and control word 2 can be controlled with a "MC_SetAxisSTW" job.
 With a "MC_WriteParameter" job, hardware limit switches can be activated and deactivated.
 The tag "<TO>.VelocitySetpoint" indicates the effective setpoint velocity.
 The tag "<TO>.ModuloCycle" indicates the number of modulo cycles of the setpoint.
 The tag "<TO>.ActualModuloCycle" indicates the number of modulo cycles of the actual value.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

36

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.2 Version V5.0 (S7-1500, S7-1500T)
Additional innovations for S7-1500T
Technology Version V5.0 contains the following additional improvements:  The default value of the CPU communication load for the following CPUs was reduced
from 50% to 20%: ­ S7-1505SP T/TF ­ S7-1511T/TF ­ S7-1515T/TF ­ S7-1516T/TF  The default values of the bus clocks are: ­ 4 ms for CPUs 1511T/TF and 1515T/TF ­ 2 ms for CPU 1516T/TF ­ 1 ms for CPU 1517T/TF  Synchronous operation: ­ With a cross-PLC synchronous operation, a synchronous operation is possible
between axes which are located on different CPUs within a project. ­ A cross-PLC synchronous operation can be configured using the leading axis proxy
technology object. ­ The actual value extrapolation has been extended. ­ With a "MC_LeadingValueAdditive" job, an additive leading value can be specified for
the following axis cyclically to a leading value. ­ With a "MC_GearInPos" job, a subsequent synchronization via leading value distance
is possible for gearing. ­ With a "MC_CamIn" job, a subsequent synchronization via leading value distance is
possible for camming. ­ The tag "<TO>.StatusSynchronizedMotion.StatusWord" indicates the exceeding of the
dynamics limits during synchronization. ­ The tag "<TO>.StatusSynchronizedMotion.WaitingFunctionState" indicates a pending
synchronous operation.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

37

Using versions (S7-1500, S7-1500T) 4.2 Version V5.0 (S7-1500, S7-1500T)
 Kinematics:
­ You can configure the predefined kinematics type "SCARA 2D with orientation".
­ A model of the kinematics with the configured zones is displayed in the "Diagnostics" window.
­ It is possible to measure object coordinate systems offline and online using the "Calibration" window.
­ The movement preparation of the kinematics technology object is calculated in the MC-LookAhead [OB97] organization block.
­ A kinematics with a synchronous "point-to-point" motion can be traversed absolutely with a "MC_MoveDirectAbsolute" job.
­ A kinematics with a synchronous "point-to-point" motion can be traversed relatively with a "MC_MoveDirectRelative" job.
­ With a "MC_KinematicsTransformation" job, a forward transformation can be calculated.
­ With a "MC_InverseKinematicsTransformation" job, an inverse transformation can be calculated.
­ With a "MC_TrackConveyorBelt" job, conveyor tracking is possible.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

38

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.2 Version V5.0 (S7-1500, S7-1500T)
Motion Control instructions
The technology version V5.0 contains the following new Motion Control instructions:  MC_Stop V5.0  MC_SetAxisSTW V5.0  MC_WriteParameter V5.0  MC_LeadingValueAdditive V5.0  MC_MoveDirectAbsolute V5.0 (S7-1500T)  MC_MoveDirectRelative V5.0 (S7-1500T)  MC_TrackConveyorBelt V5.0 (S7-1500T)  MC_KinematicsTransformation V5.0 (S7-1500T)  MC_InverseKinematicsTransformation V5.0 (S7-1500T) The technology version V5.0 contains the following revised Motion Control instructions:  MC_Reset V5.0  MC_Home V5.0  MC_GearInPos V5.0 (S7-1500T)  MC_CamIn V5.0 (S7-1500T) In addition, the technology version V5.0 contains unchanged Motion Control instructions from V4.0:  MC_Power V5.0  MC_Halt V5.0  MC_MoveAbsolute V5.0  MC_MoveRelative V5.0  MC_MoveVelocity V5.0  MC_MoveJog V5.0  MC_MoveSuperimposed V5.0  MC_SetSensor V5.0 (S7-1500T)  MC_MeasuringInput V5.0  MC_MeasuringInputCyclic V5.0  MC_AbortMeasuringInput V5.0  MC_OutputCam V5.0  MC_CamTrack V5.0  MC_GearIn V5.0  MC_PhasingRelative V5.0 (S7-1500T)  MC_PhasingAbsolute V5.0 (S7-1500T)  MC_SynchronizedMotionSimulation V5.0 (S7-1500T)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

39

Using versions (S7-1500, S7-1500T) 4.2 Version V5.0 (S7-1500, S7-1500T)

 MC_InterpolateCam V5.0 (S7-1500T)  MC_GetCamLeadingValue V5.0 (S7-1500T)  MC_GetCamFollowingValue V5.0 (S7-1500T)  MC_MotionInVelocity V5.0 (S7-1500T)  MC_MotionInPosition V5.0 (S7-1500T)  MC_TorqueAdditive V5.0  MC_TorqueRange V5.0  MC_TorqueLimiting V5.0  MC_GroupInterrupt V5.0 (S7-1500T)  MC_GroupContinue V5.0 (S7-1500T)  MC_GroupStop V5.0 (S7-1500T)  MC_MoveLinearAbsolute V5.0 (S7-1500T)  MC_MoveLinearRelative V5.0 (S7-1500T)  MC_MoveCircularAbsolute V5.0 (S7-1500T)  MC_MoveCircularRelative V5.0 (S7-1500T)  MC_DefineWorkspaceZone V5.0 (S7-1500T)  MC_DefineKinematicsZone V5.0 (S7-1500T)  MC_SetWorkspaceZoneActive V5.0 (S7-1500T)  MC_SetWorkspaceZoneInactive V5.0 (S7-1500T)  MC_SetKinematicsZoneActive V5.0 (S7-1500T)  MC_SetKinematicsZoneInactive V5.0 (S7-1500T)  MC_DefineTool V5.0 (S7-1500T)  MC_SetTool V5.0 (S7-1500T)  MC_SetOcsFrame V5.0 (S7-1500T)

Version-based UDT names
The following table shows the version-based UDT names for the control words and status words of the SIEMENS telegrams 10x:

UDT name < V4.0 PD_STW1 PD_STW2 PD_ZSW1 PD_ZSW2

UDT name  V4.0 PD_STW1_611Umode PD_STW2_611Umode PD_ZSW1_611Umode PD_ZSW2_611Umode

WORD data type Control word 1 (STW1) Control word 2 (STW2) Status word 1 (ZSW1) Status word 2 (ZSW2)

If you switch from a technology version < V4.0 to  V4.0 or vice versa, an error occurs during the compilation. You have to adapt the UDT names manually.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

40

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.3 Version V4.0 (S7-1500, S7-1500T)

4.3

Version V4.0 (S7-1500, S7-1500T)

Innovations

Technology Version V4.0 contains the following new features:  Exchange of torque data with the drive in the technological units of the technology object.
­ Additive setpoint torque ­ Current actual torque ­ Permissible torque range  Extension of the data structure of the positioning axis and synchronous axis for using technology object kinematics  Use of optimized data blocks (drive/encoder connection)

Additional innovations for S7-1500T
Technology Version V4.0 contains the following additional features:  Kinematic technology object (S7-1500T)  Motion specification via "MotionIn" instructions (S7-1500T)  Direct synchronous setting with "MC_CamIn" V4.0 (S7-1500T)

Motion Control instructions
Technology Version V4.0 contains the following Motion Control instructions:  MC_Power V4.0  MC_Reset V4.0  MC_Home V4.0  MC_Halt V4.0  MC_MoveAbsolute V4.0  MC_MoveRelative V4.0  MC_MoveVelocity V4.0  MC_MoveJog V4.0  MC_MoveSuperimposed V4.0  MC_SetSensor V4.0 (S7-1500T)  MC_MeasuringInput V4.0  MC_MeasuringInputCyclic V4.0  MC_AbortMeasuringInput V4.0  MC_OutputCam V4.0  MC_CamTrack V4.0

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

41

Using versions (S7-1500, S7-1500T) 4.3 Version V4.0 (S7-1500, S7-1500T)
 MC_GearIn V4.0  MC_GearInPos V4.0 (S7-1500T)  MC_PhasingAbsolute V4.0 (S7-1500T)  MC_PhasingRelative V4.0 (S7-1500T)  MC_CamIn V4.0 (S7-1500T)  MC_SynchronizedMotionSimulation V4.0 (S7-1500T)  MC_InterpolateCam V4.0 (S7-1500T)  MC_GetCamFollowingValue V4.0 (S7-1500T)  MC_GetCamLeadingValue V4.0 (S7-1500T)  MC_MotionInVelocity V4.0 (S7-1500T)  MC_MotionInPosition V4.0 (S7-1500T)  MC_TorqueAdditive V4.0  MC_TorqueRange V4.0  MC_TorqueLimiting V4.0  MC_GroupInterrupt V4.0 (S7-1500T)  MC_GroupContinue V4.0 (S7-1500T)  MC_GroupStop V4.0 (S7-1500T)  MC_MoveLinearAbsolute V4.0 (S7-1500T)  MC_MoveLinearRelative V4.0 (S7-1500T)  MC_MoveCircularAbsolute V4.0 (S7-1500T)  MC_MoveCircularRelative V4.0 (S7-1500T)  MC_DefineWorkspaceZone V4.0 (S7-1500T)  MC_DefineKinematicsZone V4.0 (S7-1500T)  MC_SetWorkspaceZoneActive V4.0 (S7-1500T)  MC_SetWorkspaceZoneInactive V4.0 (S7-1500T)  MC_SetKinematicsZoneActive V4.0 (S7-1500T)  MC_SetKinematicsZoneInactive V4.0 (S7-1500T)  MC_DefineTool V4.0 (S7-1500T)  MC_SetTool V4.0 (S7-1500T)  MC_SetOcsFrame V4.0 (S7-1500T)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

42

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.3 Version V4.0 (S7-1500, S7-1500T)

Version-based UDT names
The following table shows the version-based UDT names for the control words and status words of the SIEMENS telegrams 10x:

UDT name <V4.0 PD_STW1 PD_STW2 PD_ZSW1 PD_ZSW2

UDT name V4.0 PD_STW1_611Umode PD_STW2_611Umode PD_ZSW1_611Umode PD_ZSW2_611Umode

WORD data type Control word 1 (STW1) Control word 2 (STW2) Status word 1 (ZSW1) Status word 2 (ZSW2)

If you switch from a technology version <V4.0 to V4.0 or vice versa, an error occurs during the compilation. You have to adapt the UDT names manually.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

43

Using versions (S7-1500, S7-1500T) 4.4 Version V3.0 (S7-1500, S7-1500T)

4.4

Version V3.0 (S7-1500, S7-1500T)

Innovations

Technology Version V3.0 contains the following new features:  Measuring input technology object  Output cam technology object  Cam track technology object  Force/torque limiting  Fixed stop detection  Axis type virtual axis  MC-PreServo [OB67] and MC-PostServo [OB95]  Technology CPU S7-1500T

Additional innovations for S7-1500T
Technology Version V3.0 contains the following additional improvements:  Cam technology object (S7-1500T)  Gearing with "MC_GearInPos" (S7-1500T)  Camming with "MC_CamIn" (S7-1500T)  Using multiple encoders (S7-1500T)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

44

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.4 Version V3.0 (S7-1500, S7-1500T)
Motion Control instructions
Technology Version V3.0 contains the following Motion Control instructions:  MC_Power V3.0  MC_Reset V3.0  MC_Home V3.0  MC_Stop V3.0  MC_MoveAbsolute V3.0  MC_MoveRelative V3.0  MC_MoveVelocity V3.0  MC_MoveJog V3.0  MC_MoveSuperimposed V3.0  MC_SetSensor V3.0 (S7-1500T)  MC_MeasuringInput V3.0  MC_MeasuringInputCyclic V3.0  MC_AbortMeasuringInput V3.0  MC_OutputCam V3.0  MC_CamTrack V3.0  MC_GearIn V3.0  MC_GearInPos V3.0 (S7-1500T)  MC_PhasingAbsolute V3.0 (S7-1500T)  MC_PhasingRelative V3.0 (S7-1500T)  MC_CamIn V3.0 (S7-1500T)  MC_SynchronizedMotionSimulation V3.0 (S7-1500T)  MC_InterpolateCam V3.0 (S7-1500T)  MC_GetCamFollowingValue V3.0 (S7-1500T)  MC_GetCamLeadingValue V3.0 (S7-1500T)  MC_TorqueLimiting V3.0

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

45

Using versions (S7-1500, S7-1500T) 4.5 Version V2.0 (S7-1500, S7-1500T)

4.5

Version V2.0 (S7-1500, S7-1500T)

Innovations

Technology Version V2.0 contains the following new features:  Synchronous axis technology object  Gearing with "MC_GearIn"  Superimposed positioning with "MC_MoveSuperimposed"  Standardization of the "MC_Home.Mode" parameter for S7-1200 Motion Control and
S7-1500 Motion Control  Simulation mode  Support of safety functions of the drive

Motion Control instructions
Technology Version V2.0 contains the following Motion Control instructions:  MC_Power V2.0  MC_Reset V2.0  MC_Home V2.0  MC_Halt V2.0  MC_MoveAbsolute V2.0  MC_MoveRelative V2.0  MC_MoveVelocity V2.0  MC_MoveJog V2.0  MC_MoveSuperimposed V2.0  MC_GearIn V2.0

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

46

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.6 Version V1.0 (S7-1500, S7-1500T)

4.6

Version V1.0 (S7-1500, S7-1500T)

Motion Control instructions
Technology Version V1.0 contains the following Motion Control instructions:  MC_Power V1.0  MC_Reset V1.0  MC_Home V1.0  MC_Halt V1.0  MC_MoveAbsolute V1.0  MC_MoveRelative V1.0  MC_MoveVelocity V1.0  MC_MoveJog V1.0

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

47

Using versions (S7-1500, S7-1500T) 4.7 Changing a technology version (S7-1500, S7-1500T)

4.7

Changing a technology version (S7-1500, S7-1500T)

Before you can access all the benefits of a new technology version, you need to change the technology version for existing projects.

Changing a technology version
To change the technology version, follow these steps:
1. Replace the CPU in the project with a CPU with an appropriate higher version.
2. Open the program editor (e.g. by opening the OB1).
The technology objects and Motion Control instructions are highlighted in red after the CPU is replaced.
3. In the "Instructions" task card, select the appropriate higher technology version in the "Technology > Motion Control" folder.
4. Save and compile the project.
The version of the technology objects and Motion Control instructions is changed to the appropriate higher technology version during compilation of the project.
Pay attention to any error information that is displayed during compilation. Deal with the causes of the errors indicated.
5. Check the configuration of the technology objects.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

48

Diagnostics Manual, 12/2019, A5E03879256-AF

Using versions (S7-1500, S7-1500T) 4.7 Changing a technology version (S7-1500, S7-1500T)
Resetting the "Mode" parameter of the Motion Control instruction "MC_Home"
When the technology version is changed from V1.0 to  V2.0, the "MC_Home.HomingMode" parameter (V1.0) is renamed to "MC_Home.Mode" ( V2.0). The assignment of the parameter values is changed as well.
To reset the "MC_Home.Mode" parameter (V2.0), follow these steps:
1. To change the technology version, follow the instructions given above.
When compiling the project, the "MC_Home.HomingMode"parameter (V1.0) is renamed to "MC_Home.Mode" ( V2.0):
­ The assignment of the parameter values is changed. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and  V2.0 is available in section Version overview (Page 32).
You can find additional information about the "MC_Home.Mode" parameter in the description of the Motion Control instruction "MC_Home".
­ The value configured at the "MC_Home.HomingMode" parameter (V1.0) is lost. As a note on renaming, the following text is entered as the parameter value in the "MC_Home.Mode" parameter ( V2.0).
"The interface has changed. You can find additional information in the description of the Motion Control instruction "MC_Home".
­ There is a message in the "Info > Compile" tab in the Inspector window stating that the operand has the wrong data type.
2. Change the value of the "MC_Home.Mode" parameter ( V2.0) in your user program according to the new assignment.
3. Save and compile the project.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

49

Using versions (S7-1500, S7-1500T) 4.8 Replacing devices (S7-1500, S7-1500T)

4.8

Replacing devices (S7-1500, S7-1500T)

You can replace an S7-1500 for an S7-1500T of the same design and vice versa. The behavior with respect to functions and the existing configuration is different depending on what is being replaced.

 S7-1500  S7-1500T

The functions of the S7-1500 are expanded to include additional parameters for the extended functions of the S7-1500T. The additional parameters are preassigned with default values and must be configured appropriately.

 S7-1500T  S7-1500

­ Extended functions are only supported by an S7-1500T and are no longer available after a replacement with S7-1500.

­ Unsupported function blocks are marked.

­ Unsupported technology objects are displayed in an error message after compilation and must be deleted.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

50

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T)

5

5.1

Adding and configuring drives in the device configuration (S7-1500,

S7-1500T)

Adding and configuring a drive is described in the following section with the example of a SINAMICS S120 drive. If you use a SINAMICS V90 PN or a SINAMICS drive with Startdrive, you can find additional information in the following documentation.

Using SINAMICS V90 PN
To add and configure a SINAMICS V90 PN drive in the TIA Portal, you need the Hardware Support Package HSP 0185 (SINAMICS V90 PN). Information on configuring a SINAMICS V90 PN drive with SIMATIC S7-1500 in the TIA Portal is available in the Getting Started "SIMATIC/SINAMICS First Steps SINAMICS V90 PN on S7-1500 Motion Control":
https://support.industry.siemens.com/cs/document/109739497 (https://support.industry.siemens.com/cs/ww/en/view/109739497)

Using Startdrive
If you use a SINAMICS drive with Startdrive, you can find additional information in the hardware catalog in the "Drives & Starter" folder. For additional information on connecting via Startdrive, refer to:
 "Getting Started SINAMICS S120 in the Startdrive":
https://support.industry.siemens.com/cs/document/109747452 (https://support.industry.siemens.com/cs/ww/en/view/109747452)
 Application example "Configuring an S120 with Startdrive":
https://support.industry.siemens.com/cs/ww/en/view/109743270 (https://support.industry.siemens.com/cs/ww/en/view/109743270)

Drives compatibility list
In the appendix (Page 176) you can find an overview of drives that can be interconnected with an S7-1500 CPU.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

51

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

5.1.1

Adding and configuring PROFINET IO drives (S7-1500, S7-1500T)
Adding and configuring a PROFINET IO drive is described below with the example of a SINAMICS S120 drive. Adding and configuring other PROFINET IO drives may differ from the description in certain respects.
When you use a S7-1500C CPU you can use the inputs/outputs of the CPU as interface to the drive.

Requirements

 The SIMATIC S7-1500 device is created in the project.
 The desired drive can be selected in the hardware catalog.
If the drive is not available in the hardware catalog, you must install the drive in the "Options" menu as a device description file (GSD).

Adding a drive and telegram in the device configuration
1. Open the device configuration and change to the network view.
2. In the hardware catalog, open the folder "Additional field devices > PROFINET IO > Drives > Siemens AG > SINAMICS".
3. Select the desired drive with the desired version, then drag it to the network view.
4. Assign the drive to the PROFINET interface of the CPU.
5. Open the drive in the device view.
6. Drag a Drive Object (DO) and a telegram from the hardware catalog and drop it onto a slot of the device overview of the drive.
7. Make sure that the order of the telegrams in the device configuration and in the drive parameter assignment are identical.
Depending on the version of the SINAMICS S120 drive, select "DO with telegram X", or "DO Servo" and a "Telegram X" for the telegram.
Information on suitable telegrams can be found in the chapter "PROFIdrive telegrams" of the documentation "S7-1500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view/109766462)".
Repeat step 6, if you want to add another drive and another standard telegram.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

52

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Activating isochronous mode of the drive in the device configuration
PROFINET drives can always be operated in isochronous mode or clock synchronized mode. Isochronous mode, however, increases the quality of the closed loop position control of the drive and is therefore recommended for drives such as SINAMICS S120.
To control the drive in isochronous mode, follow these steps:
1. Open the device view of the drive.
2. In the properties window, select the tab "PROFINET interface [X1] > Advanced options > Isochronous mode".
3. Select the "Isochronous mode" check box in this tab.
The entry for the telegram also has to be selected for isochronous mode in the detailed view.

Interconnect the port of the CPU with the port of the drive
1. Open the topology view in the device configuration.
2. Interconnect the port of the drive as in the real configuration with the port of the CPU. At the same time, note the rules for topology configuration.

Configure the CPU as the sync master and set isochronous mode
1. Select the device view of the CPU.
2. In the Properties window, select the tab "PROFINET interface [X1] > Advanced options > Real-time settings > Synchronization".
3. Select "Sync master" from the "Synchronization role" drop-down list.
4. Click the "Domain settings" button.
5. Open the "Domain Management > Sync Domains" tab and set the desired "Send clock" (isochronous clock).

Select drive in the configuration of the technology object
1. Add a new technology object axis, or open the configuration of an existing axis. 2. Open the configuration "Hardware interface > Drive". 3. Select from the "PROFIdrive" entry in the "Drive type" drop-down list. 4. Select the Drive Object of the PROFINET drive from the "Drive" list. For information on how to add a technology object, refer to the section "Add technology object (Page 60)".

Result

The technology object is connected to the drive and the "MC-Servo" organization block can be checked / configured.
The telegram of the configured drive is assigned to the "PIP OB Servo" process image.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

53

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Checking/configuring the properties of the "MC-Servo"
1. Open the "Program blocks" folder in the project navigator. 2. Select the "MC-Servo" organization block. 3. Select the "Properties" command in the shortcut menu. 4. Select the "Cycle time" entry in the area navigation. 5. The option "Synchronous to the bus" must be selected in the dialog box. 6. A "PROFINET IO system" must be selected in the "Source of the send clock" drop-down
list. 7. The application cycle of "MC-Servo" must correspond to the send clock of the bus or be
reduced by an integral factor relative to the send clock of the bus.

Result

The PROFINET IO drive is configured in such a way that it can be controlled in isochronous mode in the PROFINET IO network.
The properties of the SINAMICS drive must be configured according to the configuration of the axis with the STARTER software or SINAMICS Startdrive.

Checking isochronous mode on the drive
If the configuration sequence described above is not adhered to during configuration of the axis, and drive-specific errors occur when the project is compiled, the setting for isochronous mode on the drive must be checked. 1. Open the device view of the drive. 2. Select standard telegram in the device overview. 3. Select the properties dialog "General > I/O Addresses". 4. The following settings apply for the input and output addresses:
­ "Isochronous mode" is enabled. ­ "MC-Servo" must be selected for the "Organization block". ­ "PIP OB Servo" must be selected for the "Process image".

See also

Add technology object (Page 60)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

54

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

5.1.2

Adding and configuring PROFIBUS DP drives (S7-1500, S7-1500T)
Adding and configuring a PROFIBUS drive is described below with the example of a SINAMICS S120 drive. Adding and configuring other PROFIBUS drives may differ from the description in certain respects.
When you use a S7-1500C CPU you can use the inputs/outputs of the CPU as interface to the drive.

Requirements

 The SIMATIC S7-1500 device is created in the project.
 The desired drive can be selected in the hardware catalog.
If the drive is not available in the hardware catalog, you must install the drive in the "Options" menu as a device description file (GSD).

Adding a drive and telegram in the device configuration
1. Open the device configuration and change to the network view.
2. In the hardware catalog, open the folder "Additional Field Devices > PROFIBUS DP > Drives > Siemens AG > SINAMICS".
3. Select the folder of the desired drive with the desired version, then drag the drive object to the network view.
4. Assign the drive to the PROFIBUS interface of the CPU.
5. Open the drive in the device view.
6. Drag-and-drop a telegram from the hardware catalog onto a slot in the device overview of the drive.
Information on suitable telegrams can be found in the chapter "PROFIdrive telegrams" of the documentation "S7-1500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view/109766462)".
If you want to add another drive and another telegram to the device overview, use the "Axis disconnector" in the hardware catalog.

Activating isochronous mode of the drive in the device configuration
PROFIBUS drives can be operated in cyclic mode or isochronous mode. Isochronous mode, however, increases the quality of the position control of the drive. If you want to control the drive in isochronous mode, follow these steps: 1. Open the device view of the drive. 2. In the properties dialog, select the tab "General > Isochronous Mode". 3. Select the "Synchronize DP slave to constant DP bus cycle time" check box .

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

55

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Setting isochronous mode
1. Select the network view. 2. Select the DP master system. 3. In the properties dialog, select the tab "General > Constant bus cycle time". 4. Select the desired "Constant DP bus cycle times".

Select drive in the configuration of the technology object
1. Add a new technology object axis, or open the configuration of an existing axis. 2. Open the configuration "Hardware interface > Drive". 3. Select from the "PROFIdrive" entry in the "Drive type" drop-down list. 4. Select the telegram of the PROFIBUS drive from the "Drive" list. For information on how to add a technology object, refer to the section "Add technology object (Page 60)".

Result

The technology object is connected to the drive and the "MC-Servo" organization block can be checked/configured.
The telegram of the configured drive is assigned to the "PIP OB Servo" process image.

Checking/configuring the properties of the "MC-Servo"
1. Open the "Program blocks" folder in the project navigator.
2. Select the "MC-Servo" organization block.
3. Select the "Properties" command in the shortcut menu.
The "MC-Servo" dialog opens.
4. Select the "Synchronous to the bus" option under "General > Cycle time".
5. In the "Distributed I/O" drop-down list, select a "PROFIBUS DP-System".
The application cycle of "MC-Servo" must correspond to the send clock of the bus or be reduced by an integral factor relative to the send clock of the bus.
You can select a drive connected to the CPU via a communications processor/communications module (CP/CM) in the configuration of the technology object. You cannot select the DP master system of the CP/CM as the source clock for MC-Servo [OB91].

Result
56

The PROFIBUS DP drive is configured in such a way that it can be controlled in isochronous mode in the PROFIBUS network. The properties of the SINAMICS drive must be configured according to the configuration of the axis with the STARTER software or SINAMICS Startdrive.
S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Checking isochronous mode on the drive
If the configuration sequence described above is not adhered to during configuration of the axis, and drive-specific error occurs when the project is compiled, isochronous mode can be checked on the drive. 1. Open the device view of the drive. 2. Select the entry of the telegram in the device overview. 3. Select the properties dialog "General > I/O Addresses". 4. The following settings apply for the input and output addresses:
­ "MC-Servo" must be selected for the "Organization block". ­ "PIP OB Servo" must be select the "Process image".

See also

Add technology object (Page 60)

5.1.3

Adding and configuring drives with analog connections (S7-1500, S7-1500T)
A description is provided below of how to add and configure a drive with an analog drive connection and an encoder. The connection is made, for example, as a positioning axis with an incremental encoder and using a technology module in the rack of the CPU.
When you use a S7-1500C CPU you can use the inputs/outputs of the CPU as interface to the drive.

Requirements
The SIMATIC S7-1500 device is created in the project.

Adding and configuring an analog output module in the device configuration
1. Open the device configuration of the CPU. 2. Select an analog output module from the hardware catalog and drag the module to the
rack of the CPU. 3. Select the analog output module in the device view. 4. Open the "General" tab in the properties dialog and select there "Name of the Analog
Output Module > I/O Addresses". 5. Enter the desired start address. 6. In the properties dialog, select the tab "General > IO Tags". 7. Enter the tag name for the desired analog output.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

57

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Adding and configuring a technology module
1. Switch to the device view of the CPU.
2. In the hardware catalog, open the folder "Technology module > Count > TM Count 2X24V".
3. Drag the counter module to a free slot in the rack.
­ Technology version  V4.0: When in use in the rack of the CPU, the technology module cannot be operated in isochronous mode.
­ Technology version  V5.0: The clock synchronization is supported by the central operation of the technological modules via the active backplane bus.
4. Select the technology module in the device view.
5. In the properties dialog, open the "General" tab and select "TM Count 2x24V > Channel x > Operating mode" of the channel to be used.
6. Select "Position input for Motion Control" option for "Selection of the operating mode for the channel".
7. Under "Module parameters", adapt the parameters of the incremental encoder (steps per revolution = increments per revolution).

Selecting the drive and encoder in the configuration of the technology object
1. Add a new positioning axis/synchronous axis technology object, or open the configuration of an existing positioning axis/synchronous axis.
2. Open the configuration "Hardware interface > Drive".
3. Select "Analog drive connection" from the "Drive type" drop-down list.
4. Select the previously defined tag name of the analog output from the "Analog output" list.
5. Open the configuration "Hardware interface > Encoder".
6. Select the "Encoder" entry from the "Data connection" drop-down list.
7. Select the channel of the incremental encoder from the "encoder" list under "Local modules".
8. Open the configuration "Hardware interface > Data exchange with encoder > Fine resolution" and enter the value "0" for "Bits in Gx_XIST1".
For information on how to add a technology object, refer to the section "Add technology object (Page 60)".

Result

The analog drive connection and the encoder connection are configured.
The analog addresses and the addresses of the TM module are assigned to the process image "PIP OB Servo".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

58

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.1 Adding and configuring drives in the device configuration (S7-1500, S7-1500T)

Checking the encoder connection/drive connection
The encoder data are applied to the position control cycle clock. If in doubt, check the following settings: 1. Switch to the device view of the CPU. 2. Select the module technology. 3. Open the properties dialog "Basic Parameters > I/O Addresses". 4. The following settings apply for the input and output addresses:
­ "MC-Servo" must be selected for the "Organization block". ­ "PIP OB Servo" must be select the "Process image". 5. Select the analog module. 6. Open the properties dialog "Name of the Analog Module > I/O Addresses". 7. The settings from Step 4 apply for the input and output addresses

See also

Add technology object (Page 60)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

59

Configuring (S7-1500, S7-1500T) 5.2 Configuration basics (S7-1500, S7-1500T)

5.2

Configuration basics (S7-1500, S7-1500T)

5.2.1

Add technology object (S7-1500, S7-1500T)
The following describes how to add a technology object in the project tree.

Requirement

 A project with a CPU S7-1500 has been created.
 For the output cam, cam track, measuring input technology objects:
A speed axis, positioning axis, synchronous axis or external encoder technology object is created in the project.

Procedure

To add a technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology Objects" folder. 3. Double-click "Add new object".
The "Add new object" dialog opens. 4. Select the required technology object. You can infer the function of the technology object
from the displayed description. 5. If you add output cams, cam tracks, measuring inputs to a technology object, select the
higher-level technology object in the "Axis or external encoder that is to be assigned". 6. In the "Name" input field, adapt the name to your requirements. 7. To change the suggested data block number, select the "Manual" option. 8. To add your own information about the technology object, click "Additional information". 9. To open the configuration after adding the technology object, select the "Add new and
open" check box. 10.To add the technology object, click "OK".

Result

The new technology object was created and created in the "Technology objects" folder in the project tree.
If the "MC-Servo" and "MC-Interpolator" organizational units were not yet available, they were added.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

60

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.2 Configuration basics (S7-1500, S7-1500T)

5.2.2

Copy technology object (S7-1500, S7-1500T)
You can copy a technology object in the following ways:
 Copying a technology object within a CPU
 Copying a technology object from a CPU S7-1500 to a CPU S7-1500T
Additional parameters for the extended functions are preset with default values. You must configure them appropriately.
 Copying a technology object from a CPU S7-1500T to a CPU S7-1500
Additional parameters, which are not supported by the CPU S7-1500, are reset to the default values.
When you copy a technology object that has lower-level technology objects such as output cams, cam tracks or measuring inputs, the lower-level technology object are also copied.
The following describes how to copy a technology object within a CPU. The procedure also applies accordingly to the other copying methods mentioned.

Requirement

 A project with a CPU S7-1500 has been created.  You have created an technology object in the project.

Procedure

To copy a technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology Objects" folder. 3. If necessary, open the higher-level technology object. 4. Select the technology object to be copied. 5. Select "Copy" in the shortcut menu. 6. Select the "Technology objects" folder or the higher-level technology object. 7. Select "Paste" in the shortcut menu.

Result

The selected technology object, including lower-level technology objects, has been copied and created in the "Technology objects" folder of the project tree.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

61

Configuring (S7-1500, S7-1500T) 5.2 Configuration basics (S7-1500, S7-1500T)

5.2.3

Delete technology object (S7-1500, S7-1500T)
You can delete technology objects in the project tree.
When you delete a technology object that has lower-level technology objects such as output cams, cam tracks or measuring inputs, the lower-level technology object are also deleted.

Requirement

 A project with a CPU S7-1500 has been created.  You have created an technology object in the project.

Procedure

To delete a technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology objects" folder. 3. If necessary, open the higher-level technology object. 4. Select the technology object to be deleted. 5. Select the "Delete" command in the shortcut menu.
The "Confirm delete" dialog is opened. 6. To delete the technology object, click "Yes".

Result

The selected technology object has been deleted.

See also

Compare values (Page 63)

5.2.4

Working with the configuration editor (S7-1500, S7-1500T)
You configure the properties of a technology object in the configuration window. To open the configuration window of the technology object in the project view, follow these steps:
1. Open the device "Technology objects" group in the project navigator.
2. Select the technology object and double-click on "Configuration".
The configuration is divided into categories which depend on the object type, for example, basic parameters, hardware interface, extended parameters.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

62

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.2 Configuration basics (S7-1500, S7-1500T)

Configuration editor icons
Icons in the area navigation of the configuration show additional details about the status of the configuration:

Symbol

Description
The configuration contains default values and is complete.
The configuration contains only default values. With these default values you can use the technology object without additional changes.
The configuration contains user-defined or automatically adapted values and is complete.
All input fields of the configuration contain valid values and at least one preset value has been changed.
The configuration is incomplete or incorrect.
At least one input field or drop-down list contains an invalid value. The corresponding field or the drop-down list is displayed on a red background. Click the field shows you the roll-out error message that indicates the cause of error.

5.2.5

Compare values (S7-1500, S7-1500T)
If an online connection to the CPU is available, the "Monitor all" function appears in the configuration of the technology object. The "Monitor all" function provides the following options:  Comparison of configured start values of the project with the start values in the CPU and
the actual values  Direct editing of actual values and the start values of the project  Immediate detection and display of input errors with suggested corrections  Backup of actual values in the project  Transfer of start values of the project to the CPU as actual values
Note Differences between online and offline values By adding or deleting technology objects that have a connection to other technology objects, such as cams, cam tracks, measuring inputs or synchronized axes, differences can occur when online and offline values are compared. These differences can be eliminated by recompiling the project and then uploading it to the CPU.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

63

Configuring (S7-1500, S7-1500T) 5.2 Configuration basics (S7-1500, S7-1500T)

Icons and operator controls
If there is an online connection to the CPU, the actual values are displayed at the parameters.
In addition to the actual values of the parameters, the following symbols appear:

Symbol

Description Start value in CPU matches the configured start value in project

Start value in CPU does not match the configured start value in project

Software error in lower-level component: The online and offline versions differ in at least one lower-level software component.
The comparison of the Start value in CPU with the configured start value in project cannot be performed.
Comparison of the online and offline values is not advisable.

Use this button to show the start value of the CPU and the start value of the project for the respective parameter.
You can change the start value of the CPU directly and then download it to the CPU. For directly editable parameters, the actual value can also be changed and the change will be transferred directly to the CPU.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

64

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3

Configuring technological modules and onboard I/O for Motion

Control (S7-1500, S7-1500T)

Use with Motion Control
You can use technology functions of technology modules and the onboard I/Os of the CPUs listed below with Motion Control technology objects. To use the technology functions for Motion Control, specific parameters of the I/O configuration and parameters of the configuration of the technology object must be configured accordingly. Which parameters are relevant for the function is described below. You can set additional parameters that are not listed here. The description of the parameters is found in the documentation of the respective technology module or the respective CPU.
The following technology modules support Motion Control functionalities:

S7-1500/ET 200MP TM Count 2x24V (Page 67) 1)

ET 200 SP TM Count 1x24V (Page 67) 1)

Possible applications
· Position detection for homing with zero mark via PROFIdrive telegram

TM PosInput 2 (Page 69) 1)

TM PosInput 1 (Page 69) 1)

· Position detection for homing with zero mark via PROFIdrive telegram

TM Timer DIDQ 16x24V (Page 72) TM Timer DIDQ 10x24V (Page 72) · Output of output cam and cam track for

2)

2)

time-controlled switching 2)

· Time-based position detection via measuring input (time stamp recording) 2)

­

TM Pulse 2x24V (Page 73) 1)

· Drive connection using PWM (pulse width

modulation)

TM PTO 4 (Page 74) 3)

­

· Drive connection via PTO (Pulse Train Output)
· Position detection with measuring input via PROFIdrive telegram 2)

1) Automatic data exchange for encoder values is supported 2) Isochronous mode required 3) Automatic data exchange for drive and encoder values is supported

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

65

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

The following CPUs support Motion Control functionalities through their onboard I/O:

CPU CPU 1511C-1 PN/CPU 1512C-1 PN (Page 77) 1)
SIMATIC Drive Controller (Page 83)

Possible applications · Drive connection via PTO (Pulse Train Output) · Drive connection using PWM (pulse width modulation) · Encoder connection via HSC (High-speed counter) · Position detection with measuring input via PROFIdrive telegram 2)
· Output of output cam and cam track for time-controlled switching 2) · Time-based position detection via measuring input (time stamp recording) 2)

1) Automatic data exchange for drive and encoder values is supported 2) Isochronous mode required
Isochronous mode
Isochronous mode is required for use with a measuring input, output cam or cam track.
Technology modules can be used centrally or distributed in the system. Clock synchronization is supported in distributed operation with suitable PROFINET interface modules and in the centralized operation with the active backplane bus.
The onboard technology I/Os (X142) of the SIMATIC Drive Controller support clock synchronization.
Automatic data exchange for drive and/or encoder values
By selecting the check box for automatic data exchange, the drive and encoder parameters are automatically applied in the CPU.
Alternatively, you can manually match, by drive and encoder type, the parameters described and identified in the following table.
The following types are available for automatic data exchange:
 Offline
Select the check box if you want to transfer the offline values of the drive or encoder to the configuration of the technology object in the project.
 Online
Select the check box if you want to transfer the effective values online in the drive or encoder to the CPU during runtime. The drive and encoder parameters are transferred from the bus after the (re)initialization of the technology object and (re)start of the drive, encoder or the CPU.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

66

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.1

TM Count 1x24V/TM Count 2x24V (S7-1500, S7-1500T)
For use with Motion Control, the following parameters must be configured:

Configuration

Technology module TM Count 1x24V/TM Count 2x24V TM Count 1x24V/TM Count 2x24V > Channel 0/1 > Operating mode Select "Position detection for Motion Control technology object" mode TM Count 1x24V/TM Count 2x24V > Channel 0/1 > Module parameters ­
Signal type · Incremental encoder

Technology object Axis and external encoder ­
Hardware interface > Encoder
Select "Encoder" data connection and the channel configured for Motion Control on the technology module as encoder Select encoder type corresponding to configuration for technology module · Incremental 1)

­
Signal evaluation · Single · Double · Quadruple

encoder

Axis: Hardware interface > Data exchange with

External encoder: Hardware interface > Data exchange

Telegram "DP_TEL83_STANDARD" is automatically selected after the selection of the encoder.

Clear the check box "Automatic data exchange for encoder values (online)"

Select the check box "Automatic data exchange for encoder values (offline)"
If the check box is cleared, you can manually match the parameters described and identified in this table.
Select rotary or linear measuring system type 1)

Select fine resolution corresponding to configuration on the technology module 1)

· 0 = Single

· 1 = Double

· 2 = Quadruple

· Rotary type:

· Rotary type:

Enter increments per revolution · Linear type:
Configuration not relevant

Enter increments per revolution corresponding to configuration at technology module (1:1) 1) · Linear type:
Enter distance between increments 1)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

67

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Technology module TM Count 1x24V/TM Count 2x24V ­
· Rotary type:

Configuration Technology object Axis and external encoder
Axis: Hardware interface > Data exchange with the drive Enter reference speed

Enter reference speed corresponding to configuration for technology object (1:1)
· Linear type:

Configuration not relevant ­

Homing

Select the homing signal for homing mark 0: · Signal N of the incremental encoder · DI0

Use the homing mode "Use zero mark via PROFIdrive telegram".
TM Count 1x24V as of V2.0
The states of the digital inputs are displayed in the operating mode "Position detection for Motion Control technology object" in the process image. The following bits are used for this purpose:

· STS_DI0 (Status of DI0): ZSW2_ENC.Reserved_Bit11

· STS_DI1 (Status of DI1): ZSW2_ENC.Reserved_Bit10

· STS_DI2 (Status of DI2): ZSW2_ENC.Reserved_Bit8
To select one of the digital inputs use, for example, a PLC tag of the data type "PD_TEL83_IN" with the input start address of the desired channel of the module. The status word "ZSW2_ENC" and the named bits can be found within the created tag structure.

TM Count 2x24V > I/O addresses

­

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are selected automatically for the input and output addresses by selecting the channel in the encoder configuration at the technology object.

Process image: PIP OB servo

1) Parameters are automatically applied when "Automatic data exchange for encoder values (offline)" is selected "­" No configuration for technology module/technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

68

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.2

TM PosInput 1/TM PosInput 2 (S7-1500, S7-1500T)
For use with Motion Control, the following parameters must be configured:

Configuration

Technology module

Technology object

TM PosInput 1 / TM PosInput 2

Axis and external encoder

TM PosInput 1/2 > Channel 0/1 > Operating mode

­

Select "Position detection for Motion Control technology object" mode

TM PosInput 1/2 > Channel 0/1 > Module parameters

Hardware interface > Encoder

You set the parameters for the encoder signals of the channel under "Module parameters" in the "Position input for Motion Control" mode. The parameters must be set depending on the encoder used.

The configuration of the encoder is required for use with an SSI absolute encoder. Information on the configuration is available in the documentation for the respective technology module.

­

Select "Encoder" data connection and the channel activated

and configured as encoder on the technology module

Signal type · Incremental encoder · Absolute encoder

Select encoder type corresponding to configuration for technology module:
· Incremental 1)
· Absolute/Cyclic absolute

­

Axis: Hardware interface > Data exchange with

encoder

External encoder: Hardware interface > Data exchange

Telegram "DP_TEL83_STANDARD" is automatically selected after the selection of the encoder.

Clear the check box "Automatic data exchange for encoder values (online)"

Select the check box "Automatic data exchange for encoder values (offline)"

If the check box is cleared, you can manually match the parameters described and identified in this table.

Select rotary or linear measuring system type 1)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

69

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Technology module TM PosInput 1 / TM PosInput 2 Signal evaluation · Single · Double · Quadruple

Configuration Technology object Axis and external encoder
Select fine resolution corresponding to configuration on the technology module 1)
· Incremental encoder: ­ 0 = Single ­ 1 = Double ­ 2 = Quadruple
· Absolute encoder: ­ 0 = Single

· Rotary type:

· Rotary type:

Enter increments per revolution · Linear type:
Configuration not relevant
­
· Rotary type:

Enter increments per revolution corresponding to configuration at technology module (1:1) 1) · Linear type:
Enter distance between increments 1) Axis: Hardware interface > Data exchange with
the drive Enter reference speed

Enter reference speed corresponding to configuration for technology object (1:1)
· Linear type:

Configuration not relevant ­ Select the homing signal for homing mark 0: · Signal N of the incremental encoder · DI0

Homing
Use the homing mode "Use zero mark via PROFIdrive telegram".

TM PosInput 1/2 > I/O addresses

­

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are selected automatically for the input and output addresses by selecting the channel in the encoder configuration at the technology object.

1) Parameters are automatically applied when "Automatic data exchange for encoder values (offline)" is selected "­" No configuration for technology module/technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

70

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Additional configuration for use with the technology object measuring input

Configuration

Technology module

Technology object

TM PosInput 1 / TM PosInput 2

Measuring input

TM PosInput 1/2 > Channel 0/1 > Operating mode

Hardware interface > Measuring input

Select operating mode "Position detection for Motion Control Measuring using PROFIdrive telegram (drive or external

technology object"

encoder)

TM PosInput 1/2 > Channel 0/1 > Module parameters
You set the parameters for the encoder signals of the channel under "Module parameters" in the operating mode "Position input for Motion Control". The parameters must be set depending on the encoder used.

In the "Number of the measuring input" selection box, select "1" (measuring input 1).

The configuration of the encoder is required for use with an SSI absolute encoder. Please note the following information in this regard. Information on the configuration is available in the documentation for the respective technology module.

Note
When a single-turn absolute encoder is used and two edges are to be measured ("MC_MeasuringInput.Mode" = 2, 3 or 4), the distance between the measured edges of the Measurement input must be < 1 encoder revolution. Otherwise, use a multi-turn absolute encoder.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

71

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.3

TM Timer DIDQ 10x24V/TM Timer DIDQ 16x24V (S7-1500, S7-1500T)
You can operate the TM Timer DIDQ technology module centrally on an S7-1500 CPU or decentrally on a distributed I/O. For use with a measuring input, output cam or cam track, the technology module must be used decentrally and with isochronous mode.
For use with Motion Control, the following parameters must be configured:
Use with output cam/cam track technology object

Configuration

Technology module

Technology object

TM Timer DIDQ 10x24V/TM Timer DIDQ 16x24V

Output cam / Cam track

Basic parameters

­

Select desired number of outputs under channel configuration (ET 200MP TM Timer DIDQ 16x24V only)

Channel parameters

Hardware interface > Output cam output/output cam track

­

Activate output

Output via Timer DQ

Select "Timer DQ" mode for the respective output

Select output cam output

I/O addresses

­

Select "Isochronous mode"

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are updated automatically for the input and output addresses by selecting the channel in the encoder configuration at the technology object.

"­" No configuration for technology module/technology object is required for these parameters

Use with technology object measuring input

Configuration

Technology module

Technology object

TM Timer DIDQ 10x24V/TM Timer DIDQ 16x24V

Measuring input

Basic parameters

­

Select desired number of inputs under channel configuration

Channel parameters

Hardware interface > Measuring input

Configuration of DI group: Use inputs individually

­

Select "Timer DI" mode for the respective input

Select measuring via timer DI

­

Select measuring input

Select application-dependent input delay

­

I/O addresses

Select "Isochronous mode"

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are updated automatically for the input and output addresses by selecting the channel in the input configuration at the technology object.

"­" No configuration for technology module/technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

72

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.4

TM Pulse 2x24V (S7-1500, S7-1500T)
For use with Motion Control, the parameters described below must each be configured:

Drive connection using PWM (pulse width modulation)

Configuration

TM Pulse 2x24V

Technology object

TM Pulse 2x24V > Channel configuration Select if you want to use 1 or 2 channels. TM Pulse 2x24V > Channel > Operating mode Select "Pulse width modulation PWM" or "PWM with DC motor" operating mode TM Pulse 2x24V > Channel > Parameters Select "S7 analog output" output format

Axis ­
Hardware interface > Drive Select analog drive connection For the selection of the analog output, create a PLC tag of the "Int" type with corresponding address. The offset for the PLC tag to the start address is 2. To activate the output of the PWM signal, set the following two bits of the control interface of the PWM channel in the user program:

· SW_ENABLE (= Bit 0 in Byte 9)

· TM_CTRL_DQ (= Bit 1 in Byte 9)

The offset for byte 9 to the start address of the PWM channel is 9.

TM Pulse 2x24V > Channel > I/O addresses

­

Select the organization block "MC-Servo" for the input and output addresses. The "TPA OB Servo" process image is selected automatically for the input and output addresses by selecting the organization block.

"­" No configuration for technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

73

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.5

TM PTO 4 (S7-1500, S7-1500T)
For use with Motion Control, the following parameters must be configured.

Configuration

Technology module

TM PTO 4

TM PTO 4 > Channel configuration

­

Configure the number of channels (1 to 4) you want to use.

TM PTO 4 > Channel 0...3 > Operating mode

Select signal type:

Technology object Axis

· PTO (pulse (P) and direction (D)) · PTO (count up (A) and count down (B)) · PTO (A, B phase-shifted) · PTO (A, B phase-shifted - quadruple)

Select signal interface:

· RS422, symmetrical/TTL (5V), asymmetrical · 24V asymmetric

Configure the interpulse pause for direction reversal. ­
TM PTO 4 > Channel 0...3 > Diagnostic interrupts When the "Enable diagnostic interrupts" check box is selected, diagnostic interrupts are activated if:

Hardware interface > Drive
Select drive type "PROFIdrive" and "Drive" data connection.
Select the pulse output configured at the technology module as drive.
Hardware interface > Encoder
The encoder of the actuator telegram (simulated encoder) is automatically selected. Alternatively, an existing encoder interface can be selected.
-

· No supply voltage · Errors occur at digital outputs The detected error is displayed for the respective channel with feedback bit "Fault_Present" and "Sensor_Error". TM PTO 4 > Channel 0...3 > Axis parameters ­
Enter reference speed corresponding to configuration for technology object (1:1)

Data exchange with the drive
Telegram "DP_TEL3_STANDARD" is automatically selected after the selection of the drive.
Clear check box "Automatic data exchange for drive values (online)"
Select check box "Automatic data exchange for drive values (offline)"
If the check box is cleared, you can manually match the parameters described and identified in this table.
Enter reference speed of the drive 1)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

74

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Configuration

Technology module TM PTO 4
Enter maximum speed corresponding to configuration for technology object (1:1) ­
Enter increments per revolution Configure fine resolution · 0 = Single · 2 = Quadruple

Technology object
Axis
Enter maximum speed of the drive 1) If the maximum speed is exceeded, technology alarm 102 is triggered and displayed.
Data exchange with encoder
Telegram "DP_TEL3_STANDARD" is automatically selected after the selection of the encoder.
Clear the check box "Automatic data exchange for encoder values (online)"
Select the check box "Automatic data exchange for encoder values (offline)" If the check box is cleared, you can manually match the parameters described and identified in this table. Select rotary measuring system type 2)
Enter increments per revolution corresponding to configuration at technology module (1:1) 2)
Select fine resolution corresponding to configuration on the technology module 2)
· 0 = Single
· 2 = Quadruple

Configure stop behavior

­

· Quick stop time · Ramp stop time

TM PTO 4 > Channel 0...3 > Hardware inputs/outputs If you want to use a hardware output to enable the drive, select the "Use drive enable" check box. Next select one of the two hardware outputs DQ0 or DIQ2.
Activate the hardware input (DI0) for the reference cam. Select the edge of the hardware input for triggering the reference cam function. When using a measuring input, select the "Use DI1 check box as measuring input".

­ No setting required at the technology object. The output is automatically controlled by the "MC_Power".
Homing Use the homing mode "Use zero mark via PROFIdrive telegram".
"Measuring input > Configuration > Hardware interface" technology object Select the measuring input type "Measuring via PROFIdrive telegram (drive or external encoder)". Select the measuring input "1" under hardware connection.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

75

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Configuration

Technology module

Technology object

TM PTO 4

Axis

Select the "Use "drive ready"" check box. In the ""Drive

No setting required at the technology object. When the input

ready" input", select the hardware input that is to be used to is used, "MC_Power" waits until the input signal is present

display whether the drive is ready.

before it sets the drive enable.

Configuring input delay

­

TM PTO 4 > Channel 0...3 > Sign-of-life error

Configure tolerated number of sign-of-life errors

TM PTO 4 > I/O addresses

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are selected automatically for the input and output addresses by selecting the PTO channel for the technology object.

1) Parameters are automatically applied when "Automatic data exchange for drive values (offline)" is selected 2) Parameters are automatically applied when "Automatic data exchange for encoder values (offline)" is selected "­" No configuration required for these parameters at the technology module/technology object

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

76

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.6

CPU 1511C-1 PN/CPU 1512C-1 PN (onboard I/O devices) (S7-1500, S71500T)
For use with Motion Control, the parameters described below must be configured.

Drive connection via PTO (Pulse Train Output)

Configuration

CPU 1511C-1 PN/CPU 1512C-1 PN

Technology object

Axis

Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 >

­

General

To activate a channel for PTO mode, select one of the following operating modes:

· PTO (pulse (A) and direction (B)) · PTO (count up (A), count down (B)) · PTO (A,B phase shifted) · PTO (A,B phase shifted, quadruple)

­
Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > Axis parameters ­
Enter reference speed corresponding to configuration for technology object (1:1) Enter reference speed corresponding to configuration for technology object (1:1)

Hardware interface > Drive Select drive type "PROFIdrive" and "Drive" data connection. Select the pulse generator of the CPU configured for PTO mode as drive. Hardware interface > Encoder The encoder of the actuator telegram (simulated encoder) is automatically selected. Alternatively, an existing encoder interface can be selected. Hardware interface > Data exchange with the drive
Telegram "DP_TEL3_STANDARD" is automatically selected after the selection of the drive. Clear check box "Automatic data exchange for drive values (online)" Select check box "Automatic data exchange for drive values (offline)" If the check box is cleared, you can manually match the parameters described and identified in this table. Enter reference speed of the drive 1)
Enter maximum speed of the drive 1) If the maximum speed is exceeded, technology alarm 102 is triggered and displayed.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

77

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Configuration

CPU 1511C-1 PN/CPU 1512C-1 PN

Technology object

Axis

­

Hardware interface > Data exchange with encoder

Telegram "DP_TEL3_STANDARD" is automatically selected after the selection of the encoder.

Clear the check box "Automatic data exchange for encoder values (online)"

Select the check box "Automatic data exchange for encoder values (offline)"

If the check box is cleared, you can manually match the parameters described and identified in this table.

Select rotary measuring system type 2)

Enter increments per revolution

Enter increments per revolution corresponding to configuration for CPU (1:1) 2)

The fine resolution has the fixed value "0 bit" (= single) and Enter the fine resolution corresponding to the configuration

cannot be changed.

on the CPU 2)

Bits in incr. actual value (G1_XIST1): 0 (= single)

Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > Hardware inputs/outputs

Homing

Select the hardware input for the reference switch
In addition, configure the input delay for the selected hardware input. You configure the input delay in the device configuration at the corresponding DI channel (DI 16/DQ 16 > Inputs > Channel > Input parameters > Input delay).

Use the homing mode "Use zero mark via PROFIdrive telegram" for drive connection via PTO.

Select the edge of the hardware input for triggering the reference output cam function.

When using a measuring input, select the hardware input of ­ the measuring input. The following table includes the configuration description.

Select the hardware input that is used to display whether the drive is ready.

In addition, configure the input delay for the selected hardware input. You configure the input delay in the device configuration at the corresponding DI channel (DI 16/DQ 16 > Inputs > Channel > Input parameters > Input delay).

With selected "PTO (pulse (A) and direction (B))" mode, the hardware output for the PTO signal A ("Pulse output (A)") is automatically selected through the device configuration and cannot be changed. For PTO signal B ("Direction output (B)") select one of the hardware outputs offered in the selection box.

The hardware outputs for the PTO signals are selected through the device configuration for the following operating modes and cannot be changed:

· PTO (count up (A), count down (B))

· PTO (A,B phase shifted)

· PTO (A,B phase shifted, quadruple)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

78

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

CPU 1511C-1 PN/CPU 1512C-1 PN

Configuration

Technology object

Axis
Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > I/O addresses
The organization block ("MC-Servo") and the process image ("TPA OB Servo") are selected automatically for the input and output addresses by selecting the PTO channel for the technology object.

1) Parameters are automatically applied when "Automatic data exchange for drive values (offline)" is selected 2) Parameters are automatically applied when "Automatic data exchange for encoder values (offline)" is selected "­" No configuration for CPU/technology object is required for these parameters

Additional configuration for use with the technology object measuring input

Configuration

Technology module

Technology object

CPU 1511C-1 PN/CPU 1512C-1 PN

Measuring input

Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > Hardware inputs/outputs

Hardware interface > Measuring input

Select the hardware input of the measuring input.
In addition, configure the input delay for the selected hardware input. You configure the input delay in the device configuration at the corresponding DI channel (DI 16/DQ 16 > Inputs > Channel > Input parameters > Input delay).

Measuring using PROFIdrive telegram (drive or external encoder)
In the "Number of the measuring input" selection box, select "1" (measuring input 1).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

79

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Drive connection using PWM (pulse width modulation)
Note that only travel in the positive direction is possible with a drive connection using the integrated PWM function of the compact CPU.

Configuration

CPU 1511C-1 PN/CPU 1512C-1 PN

Technology object

Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > General
Select "Pulse width modulation PWM" mode
Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > Hardware inputs/outputs
Select the hardware output to be used for pulse output.
Select whether the set hardware output is to work as a fast push-pull switch or as P switch.
Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > Parameters
Select "S7 analog output" output format

Speed axis ­
Hardware interface > Drive Select analog drive connection For the selection of the analog output, create a PLC tag of the "Int" type with corresponding address. The offset for the PLC tag of the control interface of the PWM channel is 2. To activate the output of the PWM signal, set the following two bits of the control interface of the PWM channel in the user program:

· SW_ENABLE (= Bit 0 in Byte 9)

· TM_CTRL_DQ (= Bit 1 in Byte 9)

The offset for byte 9 to the start address of the PWM channel is 9.

Select minimum pulse width of 0 s

­

Select required period duration (e.g. 100 s)

Pulse generators (PTO/PWM) > PTO1...4/PWM1...4 > I/O addresses

Select the organization block "MC-Servo" for the input and output addresses. The "TPA OB Servo" process image is selected automatically for the input and output addresses by selecting the organization block.

"­" No configuration for technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

80

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

Encoder connection via HSC (High-speed counter)

Configuration

CPU 1511C-1 PN/CPU 1512C-1 PN

Technology object

Axis

High-speed counter (HSC) > HSC 1...6 ­ > General > Enable

Enable high-speed counter

High-speed counter (HSC) > HSC 1...6 > Basic parameters > Operating mode

Select "Position input for Motion Control" mode

High-speed counter (HSC) > HSC 1...6 Hardware interface > Encoder > Basic parameters > Module parameters

­

Select "Encoder" data connection and

the high-speed counter activated and

configured as encoder on the CPU

Signal type · Incremental encoder

Select encoder type according to the device configuration of the CPU 1)
· Incremental

External encoder ­
Hardware interface > Encoder
Select "Encoder" data connection and the high-speed counter activated and configured as encoder on the CPU Select encoder type according to the device configuration of the CPU 1) · Incremental

­
Signal evaluation · Single · Double · Quadruple

Hardware interface > Data exchange with encoder
Telegram "DP_TEL83_STANDARD" is automatically selected after the selection of the encoder.
Clear the check box "Automatic data exchange for encoder values (online)"
Select the check box "Automatic data exchange for encoder values (offline)"
If the check box is cleared, you can manually match the parameters described and identified in this table.
Select rotary measuring system type 1)
Enter fine resolution according to the configured signal evaluation set for the high-speed counter (HSC) 1)
· 0 = Single
· 1 = Double
· 2 = Quadruple

Hardware interface > Data exchange
Telegram "DP_TEL83_STANDARD" is automatically selected after the selection of the encoder. Clear the check box "Automatic data exchange for encoder values (online)" Select the check box "Automatic data exchange for encoder values (offline)" If the check box is cleared, you can manually match the parameters described and identified in this table. Select rotary measuring system type 1) Enter fine resolution according to the configured signal evaluation set for the high-speed counter (HSC) 1)
· 0 = Single
· 1 = Double
· 2 = Quadruple

Enter increments per revolution
­
Enter reference speed corresponding to configuration for technology object (1:1)

Enter increments per revolution corresponding to device configuration for CPU (1:1) 1)
Hardware interface > Data exchange with the drive
Enter reference speed

Enter increments per revolution corresponding to device configuration for CPU (1:1) 1)
­

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

81

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

CPU 1511C-1 PN/CPU 1512C-1 PN

Configuration

Technology object

Axis

­

Homing

Select the homing signal for homing mark 0:

Use the homing mode "Use zero mark via PROFIdrive telegram".

· Signal N of the incremental encoder

· DI0 (can be set with the hardware inputs/outputs)

External encoder
Homing Use the homing mode "Use zero mark via PROFIdrive telegram".

In addition, configure the input delay for the selected hardware input. You configure the input delay in the device configuration at the corresponding DI channel (DI 16/DQ 16 > Inputs > Channel > Input parameters > Input delay).

High-speed counter (HSC) > HSC 1...6 ­

­

> I/O addresses

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are selected automatically for the input and output addresses by selecting the HSC channel for the technology object.

1) Parameters are automatically applied when "Automatic data exchange for encoder values (offline)" is selected "­" No configuration for CPU/technology object is required for these parameters

Additional configuration for use with the technology object measuring input

Configuration

Technology module

Technology object

CPU 1511C-1 PN/CPU 1512C-1 PN

Measuring input

High-speed counter (HSC) > HSC 1...6 > Hardware inputs/outputs

Hardware interface > Measuring input

Select the hardware input of the measuring input.
In addition, configure the input delay for the selected hardware input. You configure the input delay in the device configuration at the corresponding DI channel (DI 16/DQ 16 > Inputs > Channel > Input parameters > Input delay).

Measuring using PROFIdrive telegram (drive or external encoder)
In the "Number of the measuring input" selection box, select "1" (measuring input 1).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

82

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.3 Configuring technological modules and onboard I/O for Motion Control (S7-1500, S7-1500T)

5.3.7

SIMATIC Drive Controller (onboard I/O) (S7-1500T)
You can use the inputs and outputs of interface X142 of a SIMATIC Drive Controller as measuring input for the measuring input technology object, as well as for the output cam/cam track technology object.
Isochronous mode is required for use with a measuring input, output cam or cam track.
For use with Motion Control, the following parameters must be configured:
Use with output cam/cam track technology object

Configuration

SIMATIC Drive Controller

Technology object

Output cam / Cam track

Channel parameters > Channel 0 to 7

Hardware interface > Output cam output/output cam track

­

Activate output

Output via Timer DQ

Select desired channel and select operating mode "Timer DQ".

Select output cam output

I/O addresses

­

Select "Isochronous mode"

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are updated automatically for the input and output addresses by selecting the channel in the encoder configuration at the technology object.

"­" No configuration at the SIMATIC Drive Controller/technology object is required for these parameters

Use with measuring input technology object

Configuration

SIMATIC Drive Controller

Technology object

Measuring input

Channel parameters > Channel 0 to 7

Hardware interface > Measuring input

­

Select measuring via timer DI

Select desired channel and select operating mode "Timer DI"

Select measuring input

I/O addresses

­

Select "Isochronous mode"

The organization block ("MC-Servo") and the process image ("TPA OB Servo") are updated automatically for the input and output addresses by selecting the channel in the input configuration at the technology object.

"­" No configuration at the SIMATIC Drive Controller/technology object is required for these parameters

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

83

Configuring (S7-1500, S7-1500T) 5.4 Connect drive/encoder via data block (S7-1500, S7-1500T)

5.4

Connect drive/encoder via data block (S7-1500, S7-1500T)

Creating the data block for data connection
1. Create a new data block of type "Global DB". 2. Select the data block in the project tree and select "Properties" from the shortcut menu. 3. Disable the following attributes under Attributes and accept the change with "OK":
­ "Only store in load memory" ­ "Data block write-protected in the device" ­ "Optimized block access" for technology version < V4.0 4. Open the data block in the block editor. 5. Insert a tag structure of type "PD_TELx" textually in the block editor. This tag structure contains the "Input" tag structure for the input area of the telegram and the "Output" tag structure for the output area of the telegram.
Note "Input" and "Output" relate to the view of the closed loop position control. For example, the input area contains the actual values of the drive and the output area contains the setpoints for the drive. The data block may contain the data structures of multiple axes and encoders and other contents.

Configuring data connection via a data block
1. Open the configuration window "Hardware interface > Drive" or "Hardware interface > Encoder".
2. Select the entry "Data block" from the "Data block" drop-down list.
3. In the "Data block" field, select the previously created data block. Open this data block and select the tag name defined for the drive and encoder.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

84

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.4 Connect drive/encoder via data block (S7-1500, S7-1500T)
Programming MC-PreServo and MC-PostServo
1. Assign the previously defined PLC tag of the input range of the data block to MCPreServo .
2. Assign the previously defined PLC tag of the output range of the data block to MCPostServo.
NOTICE Machine damage Improper manipulation of drive and encoder telegrams may result in unwanted drive motions. Check your user program for consistency in the drive and encoder connection.
An application example for the use of MC-PreServo and MC-PostServo is available at: https://support.industry.siemens.com/cs/document/109741575 (https://support.industry.siemens.com/cs/ww/en/view/109741575)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

85

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5

Parameter view (S7-1500, S7-1500T)

The Parameter view provides you with a general overview of all relevant parameters of a technology object. You obtain an overview of the parameter settings and can easily change them in offline and online mode.



Navigation (Page 89)



Toolbar (Page 88)



Parameter table (Page 89)



"Parameter view" tab

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

86

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)
Function scope
The following functions are available for analyzing the parameters of the technology objects and for enabling targeted monitoring and modification. Display functions:  Display of parameter values in offline and online mode  Display of status information of the parameters  Display of value deviations and option for direct correction  Display of configuration errors  Display of value changes as a result of parameter dependencies  Display of all memory values of a parameter: Start value PLC, Start value in project,
Monitor value  Display of the parameter comparison of the memory values of a parameter Operator control functions:  Navigation for quickly changing between the parameters and parameter structures.  Text filter for faster searches for particular parameters.  Sorting function for customizing the order of parameters and parameter groups to
requirements.  Memory function for backing up structural settings of the Parameter view.  Monitoring and modifying of parameter values online.  Function for saving a snapshot of parameter values of the CPU in order to capture
momentary situations and to respond to them.  Function for applying a snapshot of parameter values as start values.  Download of modified start values to the CPU.  Comparison functions for comparing parameter values with one another.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

87

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.1

Structure of the parameter view (S7-1500, S7-1500T)

5.5.1.1
Symbol

Toolbar (S7-1500, S7-1500T)
The following functions can be selected in the toolbar of the parameter view.

Function Monitor all Select navigation structure
Couples the function view and parameter view for the objects selected in the navigation Collapse/expand all nodes and objects Collapse/expand the nodes below the marked nodes Text filter...
Selection of compare values
Save window settings

Explanation
Starts monitoring of the visible tags in the active table.
Toggle between function-based navigation and the view of the data structure of the technology data block.
Enables the targeted toggling between the parameter view and function-based view.
Collapses or expands all nodes and objects of the navigation or the data structure in the currently active view.
Collapses or expands the marked nodes and objects of the navigation or the data structure in the currently active view.
After entry of a character string: Display of all parameters containing the entered string in one of the currently visible columns.
Selection of parameter values that are to be compared with one another in online mode (Start value in project, Start value PLC)
Only in online mode.
Saves your display settings for the Parameter view (e.g. selected navigation structure, activated table columns, etc.)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

88

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.1.2

Navigation (S7-1500, S7-1500T)
Within the "Parameter view" tab, the following alternative navigation structures can be selected.

Navigation
Functional navigation

Explanation
In the functional navigation, the structure of the parameters is based on the structure in the configuration window ("Function view" tab), commissioning window and diagnostics window.

Data structure

In the "Data structure" navigation, the structure of the parameters is based on the structure of the technology data block.

You can use the "Select navigation structure" drop-down list to toggle the navigation structure.

5.5.1.3

Parameter table (S7-1500, S7-1500T)
The table below shows the meaning of the individual columns of the parameter table. You can show or hide the columns as required.

Column Name in function view Name in DB
Full name in DB
Status of configuration Compare result
Start value in project

Explanation
Name of the parameter in the function view. The display field is empty for parameters that are not configured via the technology object.
Name of the parameter in the technology data block.
If the parameter is part of a structure or UDT, the prefix "../" is added.
The display field is empty for parameters that are not contained in the technology data block.
Complete path of the parameter in the instance data block. The display field is empty for parameters that are not contained in the technology data block.
Display of the completeness of the configuration using status symbols.
Result of the "Compare values" function.
This column is displayed when there is an online connection.
Configured start value in project. Error indication if entered values have a syntax or process-related error.

Offline X X
X X X

Online X X
X X X

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

89

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

Column Default value Start value PLC Monitor value Modify value Minimum value
Maximum value
Setpoint Data type Retain Accessible from HMI Visible in HMI Comment

Explanation
Value that is pre-assigned to the parameter. The display field is empty for parameters that are not contained in the technology data block. Start value in the CPU. This column is displayed when there is an online connection. Current value in the CPU. This column is displayed when there is an online connection. Value that is to be used to change the monitor value. This column is displayed when there is an online connection. Minimum process-related value of the parameter. If the minimum value is dependent on other parameters, it is defined:
· Offline: by the start value in the project.
· Online: by the monitor values.
Maximum process-related value of the parameter. If the maximum value is dependent on other parameters, it is defined:
· Offline: by the start value in the project.
· Online: by the monitor values.
Designates the parameter as a setpoint. These parameters can be initialized online. Data type of the parameter. The display field is empty for parameters that are not contained in the technology data block. Designates the value as a retentive value. The values of retentive parameters are retained even after the voltage supply is switched off. Indicates whether the HMI can access this parameter during runtime. Indicates whether the parameter is visible in the selection list of the HMI by default. Brief description of the parameter.

Offline X X
X
X X X X X X

X This function is visible in offline/online mode. - This function is not visible in offline/online mode.

Online X X X X X
X
X X X X X X

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

90

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.2

Opening the parameter view (S7-1500, S7-1500T)

Requirement

The technology object was added in the project navigator.

Procedure

1. Open the "Technology objects" folder in the project tree. 2. Open the technology object in the project tree. 3. Double-click the "Configuration" object. 4. Select the "Parameter view" tab in the top right corner.

Result

The Parameter view opens. Each displayed parameter is represented by one row in the parameter table.
The displayable parameter properties (table columns) vary depending on whether you are working with the Parameter view in offline or online mode.
In addition, you can selectively display and hide individual table columns.

5.5.3

Working with the parameter view (S7-1500, S7-1500T)
The following table provides an overview of the functions of the Parameter view in online and offline mode described below:

Function/action Filtering the parameter table (Page 92) Sorting the parameter table (Page 92) Transferring parameter data to other editors (Page 93) Indicating errors (Page 93) Editing start values in the project (Page 94) Monitoring values online in the parameter view (Page 95) Modifying values (Page 96) Comparing values (Page 97)
X This function is possible in offline/online mode. - This function is not possible in offline/online mode.

Offline X X X X X -

Online X X X X X X X X

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

91

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.3.1

Filtering the parameter table (S7-1500, S7-1500T)
You can filter the parameters in the parameter table in the following ways:  With the text filter  With the subgroups of the navigation Both filter methods can be used simultaneously.

With the text filter
The text filter can only be use on texts in displayed parameter lines and displayed columns. To work with the text filter, follow these steps: 1. To filter a desired character string, enter it in the "Text filter..." input box.
The parameter table displays only the parameters containing the character string. To reset text filtering, the following options are available:  Select another parameter group in the navigation.  Switch between data navigation and functional navigation, or vice versa.

With the subgroups of the navigation
To filter the navigation with the subgroups, follow these steps: 1. Click the desired parameter group in the navigation, e.g., "Static".
The parameter table now only shows the "static" parameters. You can select further subgroups for some groups of the navigation. 2. If all parameters are to be shown again, click "All parameters" in the navigation.

5.5.3.2

Sorting the parameter table (S7-1500, S7-1500T)
The values of the parameters are arranged in rows. The parameter table can be sorted by any displayed column.
 In columns containing numerical values, sorting is based on the magnitude of the numerical value.
 In text columns, sorting is alphabetical.

Sort column-by-column
1. Position the cursor in the header cell of the desired column. The background of this cell turns blue.
2. Click the column header.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

92

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

Result

The entire parameter table is sorted by the selected column. A triangle with tip facing up appears in the column header.
Clicking the column header again changes the sorting as follows:

Symbol   No symbol

Description Parameter table is sorted in ascending order. Parameter table is sorted in descending order. The sorting is removed again. The parameter table shows the default display.

The "../" prefix in the "Name in DB" column is ignored when sorting.

5.5.3.3

Transferring parameter data to other editors (S7-1500, S7-1500T)
You can paste parameters of the parameter view in the following editors:  Program editor  Watch table  Signal table for Trace The following options are available for pasting:  Drag-and-drop  <Ctrl+C>/<Ctrl+V>  Copy/Paste via shortcut menu

5.5.3.4

Indicating errors (S7-1500, S7-1500T)

Error display

Parameter assignment errors that result in compilation errors (e.g. limit violation) are indicated in the Parameter view.
Every time a value is entered in the Parameter view, a check is made for process-related and syntax errors and displayed with the following indicators:
 Red error symbol in the "Status of configuration" (offline mode) or "Compare result" (online mode, depending on the selected comparison type) columns
 Table field with red background
If you click the bad field, a roll-out error message appears with information of the permissible value range or the required syntax (format)

Compilation error
From the error message of the compiler, you can directly open the Parameter view (functional navigation) containing the parameter causing the error in situations where the parameter is not displayed in the configuration window.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

93

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.3.5

Editing start values in the project (S7-1500, S7-1500T)
With the Parameter view, you can edit the start values in the project in offline mode and online mode.
 You make value changes in the "Start value in project" column of the parameter table.
 In the "Status of configuration" column of the parameter table, the progress of the configuration is indicated by the familiar status symbols from the configuration window of the technology object.

Boundary conditions
 If other parameters depend on the parameter whose start value was changed, the start value of the dependent parameters are also adapted.
 If a parameter of a technology object is not editable, it is also not editable in the parameter view. The ability to edit a parameter can also depend on the values of other parameters.

Defining new start values
To define start values for parameters in the Parameter view, follow these steps:
1. Open the Parameter view of the technology object.
2. Enter the desired start values in the "Start value in project" column. The value must match the data type of the parameter and must not exceed the value range of the parameter. The limits of the value range can be seen in the "Maximum value" and "Minimum value" columns.
The "Status of configuration" column indicates the progress of the configuration with colored symbols.
Following adaptation of the start values and downloading of the technology object to the CPU, the parameters take the defined value at startup if they are not declared as retentive ("Retain" column).

Error display

When a start value is input, a check is made for process-related and syntax errors and the result is indicated.
Bad start values are indicated by:
 Red error symbol in the "Status of configuration" (offline mode) or "Compare result" (online mode, depending on the selected comparison type) columns
and/or
 Red background in the "Start value in project" field If you click on the bad field, a roll-out error message appears with information of the permissible value range or the necessary syntax (format)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

94

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

Correcting bad start values
1. Correct bad start values using information from the roll-out error message.
Red error symbol, red field background, and roll-out error message are no longer displayed.
The project cannot be successfully compiled unless the start values are error-free.

5.5.3.6

Monitoring values online in the parameter view (S7-1500, S7-1500T)
You can monitor the values currently taken by the parameters of the technology object in the CPU (monitor values) directly in the Parameter view.

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The Parameter view of the technology object is open.

Procedure

As soon as the Parameter view is online, the following columns are additionally displayed:  Compare result  Start value PLC  Monitor value  Modify value  Selection for transmission The "Monitor value" column shows the current parameter values on the CPU.

Display

All columns that are only available online are displayed in color as follows:

Color

Description The values are modifiable.
These values cannot be changed.

See also

Parameter table (Page 89)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

95

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.3.7

Modifying values (S7-1500, S7-1500T)
With the Parameter view, you can modify values of the technology object in the CPU. You can assign values to a parameter once (Modify value) and modify them immediately. The modify request is executed as quickly as possible without reference to any particular point in the user program.
DANGER Danger when modifying Changing the parameter values while the plant is operating may result in severe damage to property and personal injury in the event of malfunctions or program errors. Make sure that dangerous states cannot occur before you use the "Modify" function.

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The Parameter view of the technology object is open.  The parameter is modifiable. (Associated field in the "Modify value" column has a
corresponding background).

Procedure

To modify values immediately, follow these steps:
1. Enter the desired modify value in the "Modify values" column of the parameter table.
The parameter is modified once and immediately with the specified value. You can monitor the value in the "Monitor values" column. The check box for modifying in the "Selection for transmission" column is automatically cleared after the modify request is complete.

Error display

When a modify value is input, a check is made immediately for process-related and syntax errors and the result is indicated.
You can recognize incorrect modify values as follows:
 The field "Modify value" is displayed with red background color.
 If you click in the incorrect field, a roll-out error message appears with information on the permissible value range or the necessary syntax.

Bad modify values
 Modify values with process-related errors can be transmitted.  Modify values with syntax errors cannot be transmitted.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

96

Diagnostics Manual, 12/2019, A5E03879256-AF

Configuring (S7-1500, S7-1500T) 5.5 Parameter view (S7-1500, S7-1500T)

5.5.3.8

Comparing values (S7-1500, S7-1500T)
You can use comparison functions to compare the following memory values of a parameter:  Start value in project  Start value PLC

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The Parameter view of the technology object is open.

Procedure

To compare the start values on the various target systems, follow these steps: 1. Click the "Selection of compare values" icon .
A selection list containing the comparison options opens: ­ Start value in project - Start value in CPU (default setting) 2. Select the desired comparison option. The selected comparison option is executed as follows: ­ A scales symbol appears in the header cells of the two columns selected for
comparison. ­ Symbols are used in the "Compare result" column to indicate the result of the
comparison of the selected columns.

Symbol in "Compare result" column
Symbol Meaning The compare values are equal and error-free.
The compare values are not equal and error-free.
At least one of the two compare values has a process-related or syntax error.
The comparison cannot be performed. At least one of the two comparison values is not available (e.g. snapshot).

Symbol in the navigation
The symbols are shown in the same way in the navigation if the compare result applies to at least one of the parameters below the displayed navigation structure.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

97

Programming (S7-1500, S7-1500T)

6

The "Programming" section contains general information on supplying and evaluating the Motion Control instructions and on the technology data block.
You can use Motion Control instructions in the user program to assign jobs to the technology object. You define the job using the input parameters of the Motion Control instructions. You can track the current job status using the job parameters if you use a separate instance for each Motion Control instruction per technology object.
In a typical programming, you can use one or more instances for each Motion Control instruction for each technology object.
The use of a separate instance per technology object is always necessary for Motion Control instructions without parameter "DONE" and for the Motion Control instruction "MC_MoveJog".
Only one instance per technology object may be active in the program flow for the Motion Control instruction "MC_Power". Disable the technology object with the same instance you used to enable the technology object, otherwise an error with error ID 16#800C will occur.
The technology data block is available to you as an additional interface to the technology object.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

98

Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.1 Technology data block (S7-1500, S7-1500T)

6.1

Technology data block (S7-1500, S7-1500T)

The properties of real objects (e.g. axes) are configured by means of the technology objects and saved in a technology data block. The technology data block contains all configuration data, setpoint and actual values, and status information of the technology object. The TIA Portal automatically creates the technology data block when the technology object is created. You access the data of the technology data block (read/write access) with your user program.

A listing and description of the tags can be found in the Appendix (Page 140).

6.1.1

Evaluating the technology data block (S7-1500, S7-1500T)
Access to data in the technology data block occurs in accordance with the access to standard data blocks. Only tags with elementary data types can be accessed in the technology data block. Access to a complete data structure (e.g. STRUCT, ARRAY) is not possible.

Reading values from the technology data block
In your user program you can read actual values (e.g. current position) and status information, or detect error messages in the technology object. When you program a query in your user program (e.g. current velocity), the value is directly read from the technology object.
Reading values from the technology data block takes longer than for other data blocks. If you use these tags several times in a single cycle of your user program, it is recommended to copy the tag values to local tags, and use the local tags in your program.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16

Diagnostics Manual, 12/2019, A5E03879256-AF

99

Programming (S7-1500, S7-1500T) 6.1 Technology data block (S7-1500, S7-1500T)

Writing values to the technology data block
The configuration of the technology object in the TIA Portal is used to write the corresponding data to the technology data block. After they have been loaded into the CPU, these data are stored in the CPU on the SIMATIC Memory Card (load memory).
In the following cases, it may be necessary for the user program to write values to the technology data block:
 Adaptation of the configuration of the technology object (e.g. dynamic limits, software limit switches)
 Use of overrides
 Adaptation of position control (e.g. "Kv" parameter)
Changes to values in the technology data block by the user program can take effect at various points in time. The relevant property of the individual tags can be found in their descriptions in the Appendix (Page 140):

Effectiveness of changes Direct (DIR)
When Motion Control instruction is called (CAL) (e.g. <TO>.Sensor[1..4].Active Homing.HomePositionOffset) Restart (RES) (e.g. <TO>.Homing.AutoReversal)
Read only (RON) (e.g. <TO>.Position)

Description

You write changes using direct assignments. The changes are applied only at the start of the next MC-Servo [OB91].

The changes are retained until the next POWER OFF of the CPU or restart of the technology object.

LREAL
(e.g. <TO>.Override. Velocity)

The technology object performs a range check on the written value, and immediately starts using the new value.
If range limits are violated when writing, the technology object automatically corrects the values. If the value is below the range, then the value is set to the low limit of the range; if the range is exceeded, then the value is set to the high limit of the range.

DINT/BOOL
(e.g. <TO>.Position Limits_SW.Active)

Changes are only permitted in the defined value range. Value changes outside the value range are not applied.
If you enter invalid values, the programming error OB (OB 121) is started.

You write changes using direct assignments. The changes are applied at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

The changes are retained until the next POWER OFF of the CPU or restart of the technology object.

Since restart-relevant tags have dependencies on other tags, value changes cannot be applied at any arbitrary time. The changes are only used after reinitialization (restart) of the technology object.

During a restart the technology object is reinitialized with the data in load memory. You therefore write changes to the start value in the load memory with the extended instruction "WRIT_DBL" (write to data block in load memory).

You trigger the restart in your user program using the Motion Control instruction "MC_Reset" with parameter "Restart" = TRUE. Additional information regarding the restart can be found in the section Restarting technology objects (Page 127).

The tag cannot and must not be changed during runtime of the user program.

100

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.1 Technology data block (S7-1500, S7-1500T)

Note Save changes with "WRIT_DBL"
Changes to tags immediately in effect are lost on POWER OFF of the CPU, or restart of the technology object.
If changes in the technology data block should also be retained after POWER OFF of the CPU, or restart of the technology object, you must write the changes to the start value in the load memory with the extended instruction "WRIT_DBL".
Note Using the "READ_DBL" and "WRIT_DBL" data block functions
The "READ_DBL" and "WRIT_DBL" data block functions may only be used on individual tags in conjunction with the tags of the technology object. The "READ_DBL" and "WRIT_DBL" data block functions must not be applied to data structures of the technology object.

Isochronous evaluation of data
If you want to process data of the technology data block in isochronous mode from a Motion Control application cycle, there is the option of evaluating this data in the MC-PreServo [OB67]/MC-PostServo [OB95] as of technology version V3.0. As of technology version V5.0, you also have the option of evaluating these in MC-PreInterpolator [OB68].

See also

Organization blocks for Motion Control (Page 23)

6.1.2

Evaluate StatusWord, ErrorWord and WarningWord (S7-1500, S7-1500T)
To be able to symbolically use individual status and error information from the "StatusWord", "ErrorWord" and "WarningWord" data double words, you can evaluate them as described below. For consistent evaluation, you should avoid using bit addressing to access these data double words in the technology data block. Access to an individual bit in the technology data block only lasts as long as the access to the entire data word.
When required, copy the required data double word to a tag of a data structure and query the individual bits of the tag.
The allocation of the individual bits in the data double words can be found in the Appendix (Page 140) in the description of the tags of the corresponding technology object.

Requirements
The technology object has been created.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

101

Programming (S7-1500, S7-1500T) 6.1 Technology data block (S7-1500, S7-1500T)

Procedure

To evaluate the individual bits in the data word "StatusWord", follow these steps:
1. Crate a global data structure. Name the data structure, e.g. as "Status".
2. Create a double word (DWORD) in the data structure "Status". Name the double word, e.g. as "Temp".
3. Create 32 Boolean tags in the "Status" data structure. You can obtain a clearer overview by giving the individual Boolean tags identical names as the bits in the technology DB (e.g. name the fifth Boolean tag "HomingDone").
4. If needed, copy the tag "<TO>.StatusWord" from the technology data block to the double word "Temp" in your data structure.
5. Copy the individual bits of double word "Temp" to the corresponding Boolean tags with bit accesses.
6. Use the Boolean tags to query the status bits.
Evaluate the data words "ErrorWord" and "WarningWord" as specified in steps 1 to 6.

Example

The following example shows how you can read out and save the fifth bit "HomingDone" of the data word "StatusWord":

SCL #Status.Temp := "TO".StatusWord; #Status.HomingDone := #Status.Temp.%X5;

Explanation //Copy status word //Copy individual bits per bit access

STL L "TO".StatusWord T #Status.Temp U #Status.Temp.%X5 = #Status.HomingDone

Explanation //Copy status word
//Copy individual bits per bit access

102

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.1 Technology data block (S7-1500, S7-1500T)

6.1.3

Change restart-relevant data (S7-1500, S7-1500T)
In order to change restart-relevant data in the technology data block, write to the starting values of the tags in load memory using the extended instruction "WRIT_DBL". In order for the changes to be applied, a restart of the technology object must be performed.
You can see from the description of the tag of the corresponding technology object whether value changes of a tag are restart-relevant.

Requirement

The technology object has been created.

Procedure

To change restart-relevant data, proceed as follows:
1. Create a data block and fill it with the restart-relevant values, that you want to change in the technology data block. In doing so, the data types must match the tags to be changed.
2. Write the values from your data block to the starting values of the tags of the technology data block in load memory, using the extended instruction "WRIT_DBL".
If restart-relevant data were changed, this will be indicated in the "<TO>.StatusWord.X3 (OnlineStartValuesChanged)" tag of the technology object.
3. Perform a restart of the technology object using the Motion Control instruction "MC_Reset" with parameter "Restart" = TRUE.
After the restart of the technology object, the new value is transferred into the technology data block in work memory, and is effective.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

103

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)

6.2

Motion Control instructions (S7-1500, S7-1500T)

6.2.1

Motion Control instruction parameters (S7-1500, S7-1500T)
The individual Motion Control instructions are described in detail in the section "S7-1500 Motion Control V5".
When creating your user program, take the following explanations of the Motion Control instruction parameters into account.

Reference to the technology object
The technology object is specified for the Motion Control instruction as follows:  Parameter "Axis"
The "Axis" input parameter of a Motion Control instruction contains a reference to the technology object that is to execute the corresponding job. The corresponding technology object is also referenced in the following parameters: ­ Parameter "Master" ­ Parameter "Slave" ­ Parameter "Cam" ­ Parameter "MeasuringInput" ­ Parameter "OutputCam" ­ Parameter "CamTrack" As of technology version V3.0, the reference to the technology object can be specified, also in limited manner, via the data type "DB_ANY". For more information, refer to the section "Parameter transfer for function blocks (Page 110)".

104

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)
Job start and transfer of input parameters of a Motion Control instruction
For the start of jobs and the transfer of modified parameter values, a distinction is made between the following Motion Control instructions:
 Motion Control instructions with "Execute" parameter
With a positive edge at the "Execute" parameter, the job is started and the existing values for the input parameters are transferred.
Subsequently changed parameter values are not transferred until the next job start.
Resetting the "Execute" parameter does not end the job, but it does affect the display duration of the job status. As long as "Execute" is set to "TRUE", the output parameters will be updated. If "Execute" is reset before the completion of a job, the parameters "Done", "Error" and "CommandAborted" are correspondingly set for only one call cycle.
 Motion Control instructions with "Enable" parameter
The job is started by setting the "Enable" parameter.
As long as "Enable" = TRUE, the job remains active and changed parameter values will be transferred each time the instruction is called in the user program.
The job is ended by resetting the "Enable" parameter.
The input parameters "JogForward" and "JogBackward" of the Motion Control instruction "MC_MoveJog" correspond in their behavior to the "Enable" parameter.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

105

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)

Job status

The following output parameters indicate the status of the job execution:
 Motion Control instructions with "Done" parameter
The normal completion of a job is indicated with parameter "Done" = TRUE.
 Motion Control instructions without "Done" parameter
The achievement of the job objective is indicated by other parameters (e.g. "Status", "InVelocity"). For more information, refer to the "Tracking running jobs (Page 114)" section.
 Parameter "Busy"
As long as a job is in progress, the "Busy" parameter shows the value "TRUE". If a job was ended or canceled, "Busy" shows the value "FALSE".
 Parameter "Active"
If a job is active in Motion Control, the parameter "Active" shows the value "TRUE". As long as a job is in the job sequence, "Active" shows the value "FALSE".
 Parameter "CommandAborted"
If a job was canceled by another job, the "CommandAborted" parameter shows the value "TRUE".
 Parameter "Error"
If a Motion Control instruction error occurs, the "Error" parameter shows the value "TRUE". The "ErrorID" parameter indicates the cause of the error.

As long as the "Execute" or "Enable" parameter is set to "TRUE", the output parameters will be updated. Otherwise, the parameters "Done", "Error" and "CommandAborted" are correspondingly set for only one cycle.

Abort of running jobs
An active Motion Control job is aborted by the start of a new Motion Control job. In the process, the current dynamic setpoints (acceleration, deceleration, jerk, velocity) are set to the values of the overriding job.

106

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)
Example of parameter behavior
The behavior of the parameters of Motion Control instructions is shown in the following chart using the example of two "MC_MoveAbsolute" jobs.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

107

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)
Using "Exe_1", an "MC_MoveAbsolute" job (A1) with target position 1000.0 is initiated. "Busy_1" is set to "TRUE". The axis is accelerated to the specified velocity and moved to the target position (see TO_1.Velocity and TO_1.Position). Before the target position is reached,
the job is overridden at time  by another "MC_MoveAbsolute" job (A2). The termination is
signaled via "Abort_1", and "Busy_1" is set to "FALSE". The axis is braked to the velocity specified in A2 and moved to the new target position 1500.0. When the axis reaches the target position, this is signaled via "Done_2".
Non position-controlled operation
The position control of the axis can be deactivated with the following parameters:  MC_Power.StartMode = 0  MC_MoveVelocity.PositionControlled = FALSE  MC_MoveJog.PositionControlled = FALSE For more information, refer to the section "Non position-controlled operation" of the "S71500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462) documentation.

6.2.2

Add Motion Control instructions (S7-1500, S7-1500T)
You add Motion Control instructions to a program block in the same way as other instructions. You control all available functions of the technology object using the Motion Control instructions. The instructions can be called at all execution levels.

Requirements
The technology object was created.

Procedure

To add Motion Control instructions in your user program, proceed as follows:
1. Double click your program block in the project tree (the program block must be called in the cyclical program).
The program block is opened in the programming editor, and the available instructions are displayed.
2. In the "Instructions" task card, open the "Technology > Motion Control" folder.
3. Using drag-and-drop, move the Motion Control instruction, e.g. "MC_Power", to the desired segment of the program block.
The "Call options" dialog opens.
4. In the dialog, specify a name and a number for the instance data block of the Motion Control instruction.

108

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T) 5. Click "OK". The Motion Control instruction "MC_Power" is inserted into the network.
The instance data block is automatically created under "Program Blocks > System Blocks > Program Resources". 6. Input parameters without a default value (e.g. "Axis"), must be assigned. Select the technology object in the project tree and move the technology object onto <...> at the "Axis" parameter using drag-and-drop.

See also

Once the technology object is specified in the "Axis" parameter, the following buttons are available to you:
To open the configuration of the technology object, click on the toolbox icon. To open the diagnostics of the technology object, click on the stethoscope icon. 7. Add additional Motion Control instructions in accordance with steps 3 through 6.
Tracking active jobs (Page 114)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

109

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)

6.2.3

Parameter transfer for function blocks (S7-1500, S7-1500T)
If you want to reuse a function block with Motion Control instructions for different technology objects, create an input parameter of the data type of the respective technology object in the block interface of the calling function block. You assign the data type in the block interface with a direct input. The parameter is then transferred as reference to the technology object to the "Axis" parameter of the Motion Control instructions. The data types of technology objects correspond to the structure of the associated technology data block.
In contrast to standard data types, the data types for technology objects are always passed on as pointers to the function block (Call by reference). This remains true if you declare the data types of the technology objects in "Input" area of the block interface. Write access to function blocks always leads directly to modification of the referenced technology object.

Example 1: Tag transfer with specific data type
By specifying the data type, you can address the tags of the technology object in the function block (<parameters of the block interface>.<tag of the technology object>). The data types for the reference to the technology objects are available in the section "appendix (Page 178)".
The following table shows the declaration of the tags used:

Tag axis on actPosition

Declaration Input Input Output

instMC_POWER Static

Data type TO_PositioningAxis BOOL LReal
MC_POWER

Description
Reference to the technology object
Signal to enable the axis
Query of the actual position from the technology data block
Multinstance of the Motion Control instruction "MC_Power"

The following SCL program shows the tag transfer with a specific data type:

SCL #instMC_POWER(Axis := #axis, Enable := #on);
#actPosition := #axis.ActualPosition;

Explanation
//Call of the Motion Control instruction "MC_Power" with enable of the axis //Query of the actual position from the technology data block

Example 2: Tag transfer with "DB_Any"
The data type "DB_Any" provides a further option for the transfer of specific data types of the technology object. Unlike the data types of the technology object in the program, "DB_Any" can be assigned during runtime.
This example shows how you can program variable switching of up to four cams at "MC_CamIn".
To do this, tags of the data type "DB_Any" are first created as input parameter of the block. The cam to be used is assigned by an additional input parameter.

110

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.2 Motion Control instructions (S7-1500, S7-1500T)

The following table shows the declaration of the tags used:

Tag cam1 cam2 cam3 cam4 camToUse instMC_CAMIN
tempCamSel

Declaration Input Input Input Input Input Static
Temp

Data type DB_ANY DB_ANY DB_ANY DB_ANY Int MC_CAMIN
DB_ANY

Description Cam 1 Cam 2 Cam 3 Cam 4 Selection of cam 1 to 4 Multinstance of the Motion Control instruction "MC_CamIn" Current cam

The following SCL program shows the tag transfer with "DB_Any":

SCL
CASE #camToUse OF 1: #tempCamSel := #cam1; 2: #tempCamSel := #cam2; 3: #tempCamSel := #cam3; 4: #tempCamSel := #cam4;
ELSE #tempCamSel := #cam1;
END_CASE;

Explanation //Selection of the desired cam 1..4 //Using an input tag of data type Int
//Instruction for scenario 1 //Instruction for scenario 2 //Instruction for scenario 3 //Instruction for scenario 4 //Instruction for Int  0 or Int > 4 //Corresponds to default cam 1
//Call of the Motion Control instruction "MC_CamIn" with variable transfer of the cam technology object using the temporary tag "tempCamSel"

#instMC_CAMIN(Master := "PositioningAxis_1", Slave := "SynchronousAxis_1", Cam := #tempCamSel);

//Direct assignment of the technology object of the leading axis //Direct assignment of the technology object of the following axis
//Indirect assignment of the cam technology object

Additional information
You can find more program examples for the use of the data type "DB_Any" in the following FAQ entry:
https://support.industry.siemens.com/cs/ww/en/view/109750880 (https://support.industry.siemens.com/cs/ww/en/view/109750880)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

111

Programming (S7-1500, S7-1500T) 6.3 Starting Motion Control jobs (S7-1500, S7-1500T)

6.3

Starting Motion Control jobs (S7-1500, S7-1500T)

Motion Control jobs are started by setting the "Execute" or "Enable" parameter of the Motion Control instruction. The call of the Motion Control instructions for a technology object should occur in an execution level.

When executing Motion Control jobs, you should also take note of the status of the technology object.

Starting Motion Control jobs should be performed in the following steps:

1. Query the status of the technology object.

2. Initiate new job for the technology object.

3. Check job status.

These steps are explained using the example of a job for absolute positioning.

1. Query the status of the technology object
Make sure that the technology object is in the appropriate status to perform the desired job:
 Has the technology object been released?
To execute motion jobs, the technology object must be enabled.
Enabling is performed using the Motion Control instruction "MC_Power".
The "MC_Power.Status" parameter (<TO>.StatusWord.X0 (Enable)) must show the value "TRUE".
 Is a technology alarm pending?
To perform motion commands, no technology alarms or alarm responses may be pending. The "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object must show the value zero. After resolving the error, acknowledge any pending alarms using the Motion Control instruction "MC_Reset".
You can find a list of the technology alarms and alarm reactions in the "Technology alarms (Page 140)" appendix.
 Has the technology object been homed?
In order to perform a job for absolute positioning, the positioning axis/synchronous axis technology object must be homed. The referencing occurs via the Motion Control instruction "MC_Home". The "<TO>.StatusWord.X5 (HomingDone)" tag of the technology object must show the value "TRUE".

2. Initiate new command for the technology object
In the "Position" parameter of the "MC_MoveAbsolute" instruction, specify the position to which the axis should be moved. Start the job with a positive edge at the "Execute" parameter.

112

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.3 Starting Motion Control jobs (S7-1500, S7-1500T)
3. Check command status
Parameter "Done" of the Motion Control instruction indicates successful completion of a job (target reached, in this case). If an error is detected, the "Error" parameter of the Motion Control instruction is set to "TRUE", and the job is rejected. You can program an error handling routine for the Motion Control job. For this purpose, evaluate the error indicated in the "Error" parameter. The cause of the error is indicated in the ErrorID parameter. After resolving the cause of the error, restart the job. If "Error" = TRUE and "ErrorID" = 16#8001 is indicated during job execution, a technology alarm has occurred. You can find a list of the ErrorIDs in the "Error detection (Page 171)" appendix.
Additional information
An option for evaluating the individual status bits, error bits, and warning bits can be found in the Evaluating StatusWord, ErrorWord and WarningWord (Page 101) section.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

113

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

6.4

Tracking active jobs (S7-1500, S7-1500T)

The current status of the job processing is made available via the output parameters of the Motion Control instruction. These parameters are updated with each call of the Motion Control instruction.

When tracking jobs, a distinction is made between three groups:

 Motion Control instructions with "Done" parameter (Page 114)

 Motion Control instructions without "Done" parameter (Page 119)

 Motion Control instruction "MC_MoveJog" (Page 123)

6.4.1
114

Motion Control instructions with "Done" parameter (S7-1500, S7-1500T)
Jobs of Motion Control instructions with the "Done" parameter are started with a positive edge at the "Execute" parameter. If the job was completed without errors or interruption by another job (e.g. "MC_MoveAbsolute": Target position reached), the "Done" parameter shows the value "TRUE". In positioning instructions, the parameter "Done" is delayed by the set minimum dwell time (<TO>.PositioningMonitoring.MinDwellTime). The following Motion Control instructions have a "Done" parameter for the S7-1500 CPU:  MC_Reset  MC_Home  MC_Halt  MC_MoveAbsolute  MC_MoveRelative  MC_MoveSuperimposed  MC_SetSensor (S7-1500T)  MC_Stop  MC_SetAxisSTW  MC_WriteParameter  MC_MeasuringInput  MC_AbortMeasuringInput  MC_PhasingRelative (S7-1500T)  MC_PhasingAbsolute (S7-1500T)  MC_InterpolateCam (S7-1500T)  MC_GetCamLeadingValue (S7-1500T)  MC_GetCamFollowingValue (S7-1500T)  MC_GroupInterrupt (S7-1500T)  MC_GroupContinue (S7-1500T)
S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)
 MC_GroupStop (S7-1500T)  MC_MoveLinearAbsolute (S7-1500T)  MC_MoveLinearRelative (S7-1500T)  MC_MoveCircularAbsolute (S7-1500T)  MC_MoveCircularRelative (S7-1500T)  MC_MoveDirectAbsolute (S7-1500T)  MC_MoveDirectRelative (S7-1500T)  MC_TrackConveyorBelt (S7-1500T)  MC_DefineWorkspaceZone (S7-1500T)  MC_DefineKinematicsZone (S7-1500T)  MC_SetWorkspaceZoneActive (S7-1500T)  MC_SetWorkspaceZoneInactive (S7-1500T)  MC_SetKinematicsZoneActive (S7-1500T)  MC_SetKinematicsZoneInactive (S7-1500T)  MC_DefineTool (S7-1500T)  MC_SetTool (S7-1500T)  MC_SetOcsFrame (S7-1500T) The behavior of the parameters is shown below by way of example for various situations.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

115

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T) Complete execution of the job
If the Motion Control job has been completely executed all the way to the end, this is indicated with parameter "Done" = "TRUE". The signal state of the "Execute" parameter influences the display duration for the "Done" parameter: You set "Execute" after completion of the job to "FALSE". You set "Execute" during processing of the job to "FALSE".
 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the value "FALSE" during the job or the value "TRUE" can be retained until after completion of the job.
 While the job is being executed, the "Busy" parameter shows the value "TRUE".  At the completion of the job (for example, with Motion Control instruction "MC_MoveAbsolute": Target position
reached), the "Busy" parameter changes to "FALSE" and the "Done" parameter to "TRUE".
 As long as the "Execute" parameter retains the value "TRUE" after completion of the job, the "Done" parameter also
retains the value "TRUE".
 If the "Execute" parameter was already set to "FALSE" before completion of the job, the "Done" parameter shows the
value "TRUE" for only one execution cycle.

116

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

Job abort

If the Motion Control job is canceled during processing by another job, this is indicated in the "CommandAborted" parameter with the value "TRUE". The signal state of the "Execute" parameter influences the display duration for the "CommandAborted" parameter:

You set "Execute" after the job is canceled to "FALSE".

You set "Execute" before the job is aborted to "FALSE".

 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the value "FALSE" during the job or the value "TRUE" can be retained until after completion of the job.
 While the job is being executed, the parameter "Busy" shows the value "TRUE".  During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to "TRUE".
 As long as the "Execute" parameter retains the value "TRUE" after completion of the job, the "CommandAborted"
parameter also retains the value "TRUE".
 If the "Execute" parameter was already set to "FALSE" before the job is aborted, the "CommandAborted" parameter
shows the value "TRUE" for only one execution cycle.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

117

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

Error during job execution
If an error occurs during execution of the Motion Control job, this is indicated with parameter "Error" = "TRUE". The signal state of the "Execute" parameter influences the display duration for the "Error" parameter:

You set "Execute" after the occurrence of the error to "FALSE".

You set "Execute" before the occurrence of the error to "FALSE".

 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the value "FALSE" during the job or the value "TRUE" can be retained until after completion of the job
 While the job is being executed, the "Busy" parameter shows the value "TRUE".  An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to "FALSE" and
the "Error" parameter to "TRUE".
 As long as the "Execute" parameter retains the value "TRUE" after the occurrence of the error, the "Error" parameter
also retains the value "TRUE".
 If the "Execute" parameter was already set to "FALSE" before the occurrence of the error, the "Error" parameter
shows the value "TRUE" for only one execution cycle.
Motion Control instructions
You can find additional information on the Motion Control instructions of the Kinematics technology object in the "S7-1500T Kinematics functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766463).

118

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

6.4.2

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

Motion Control instructions without "Done" parameter (S7-1500, S7-1500T)
Motion Control instructions without the "Done" parameter use a special parameter to indicate that the job objective (e.g. "InVelocity", "InGear") has been achieved. The target state or motion is stopped until the job is aborted or an error occurs.
The following Motion Control instructions have a special parameter for indicating the job status:

Motion Control instruction

Parameter

MC_Power MC_MoveVelocity MC_MoveJog MC_GearIn MC_GearInPos MC_CamIn MC_SynchronizedMotionSimulati on MC_LeadingValueAdditive MC_MotionInVelocity MC_MotionInPosition MC_TorqueLimiting MC_KinematicsTransformation MC_InverseKinematicsTransform ation

Status InVelocity InVelocity InGear InSync InSync InSimulation
Busy Busy Busy InClamping and InLimitation Busy and Valid Busy and Valid

Validity

S7-1500 X X X X -

S7-1500T X X X X X X X

-

X

-

X

-

X

-

X

-

X

-

X

The following Motion Control instructions have no special parameter for indicating the job status: Feedback is provided via the following tags:

Motion Control instruction MC_MeasuringInputCyclic
MC_OutputCam MC_CamTrack

Parameter Busy
Busy Busy

Description
The execution of a measuring job is indicated with parameter "Busy" = "TRUE". Completed measuring events are indicated in the corresponding event counters "<TO>.MeasuredValues.MeasuredValue1 Counter" and "<TO>.MeasuredValues.MeasuredValue2 Counter" of the technology data block.
The execution of a job is indicated with parameter "Busy" = "TRUE". The CamOutput tag in the associated technology data block indicates the switching state of the output cam.
The execution of a job is indicated with parameter "Busy" = "TRUE". The TrackOutput tag in the associated technology data block indicates the switching state of the output cam.

The behavior of the parameter is shown for various situations using the Motion Control instruction "MC_MoveVelocity" as an example:

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

119

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T) Example "MC_MoveVelocity"
An "MC_MoveVelocity" job is started with a positive edge at the "Execute" parameter. The job objective is fulfilled when the assigned velocity is reached and the axis travels at constant velocity. When the assigned velocity is reached and maintained, this is indicated in the "InVelocity" parameter with the value "TRUE". The motion of the axis can, for example, be stopped with an "MC_Halt" job.
The assigned velocity is reached and maintained
Reaching of the assigned velocity is indicated with parameter "InVelocity" = "TRUE". The "Execute" parameter has no effect on the display duration for the "InVelocity" parameter.
 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the "FALSE" value before or after the parameterized velocity has been reached. While the job is being executed, the parameter "Busy" shows the value "TRUE".
 When the assigned velocity is reached, the "InVelocity" parameter changes to "TRUE". The "Busy" and "InVelocity"
parameters retain the value "TRUE" until another Motion Control job overrides the "MC_MoveVelocity" job.

120

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

The job is aborted before the assigned velocity is reached
If the Motion Control job is canceled by another job before the assigned velocity is reached, this is indicated with parameter "CommandAborted" = "TRUE". The signal state of the "Execute" parameter influences the display duration for the "CommandAborted" parameter.

You set "Execute" after the job is canceled to "FALSE".

You set "Execute" before the job is aborted to "FALSE".

 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the value "FALSE" during the job or the value "TRUE" can be retained until after the job is aborted.
 While the job is being executed, the "Busy" parameter shows the value "TRUE".  During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to "TRUE".
 As long as the "Execute" parameter retains the value "TRUE" after completion of the job, the "CommandAborted"
parameter also retains the value "TRUE".
 If the "Execute" parameter was already set to "FALSE" before the job is aborted, the "CommandAborted" parameter
shows the value "TRUE" for only one execution cycle.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

121

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

An error has occurred prior to reaching the assigned velocity
If an error occurs during execution of the Motion Control job before the assigned velocity has been reached, this is indicated with parameter "Error" = "TRUE". The signal state of the "Execute" parameter influences the display duration for the "Error" parameter.

You set "Execute" after the occurrence of the error to "FALSE".

You set "Execute" before the occurrence of the error to "FALSE".

 The job is started with a positive edge at the "Execute" parameter. Depending on the programming, "Execute" can be
reset to the value "FALSE" during the job or the value "TRUE" can be retained until after the error has occurred.
 While the job is being executed, the "Busy" parameter shows the value "TRUE".  An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to "FALSE",
and the "Error" parameter to "TRUE".
 As long as the "Execute" parameter retains the value "TRUE" after completion of the job, the "Error" parameter also
retains the value "TRUE".
 If the "Execute" parameter was already set to "FALSE" before the job is aborted, the "Error" parameter shows the
value "TRUE" for only one execution cycle.
Motion Control instructions
You can find additional information on the Motion Control instructions of the Kinematics technology object in the "S7-1500T Kinematics functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766463).

122

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

6.4.3

Motion Control instruction "MC_MoveJog" (S7-1500, S7-1500T)
An "MC_MoveJog" job is started by setting the "JogForward" or "JogBackward" parameter. The job objective is fulfilled when the assigned velocity is reached and the axis travels at constant velocity. When the assigned velocity is reached and maintained, this is indicated in the "InVelocity" parameter with the value "TRUE".
The job is complete when the "JogForward" or "JogBackward" parameter has been set to the value "FALSE" and the axis has come to a standstill.
The behavior of the parameters in various situations is shown below by way of example.

The assigned velocity is reached and maintained
If the Motion Control job has been performed up to the point of reaching the assigned velocity, then this is indicated in the "InVelocity" parameter with the value "TRUE".

Jog mode is controlled by the "JogForward" parameter.

Jog mode is controlled by the "JogBackward" parameter.

 The job is started by setting the "JogForward" or "JogBackward" parameter.  While the job is being executed, the "Busy" parameter shows the value "TRUE".  When the assigned velocity is reached, the "InVelocity" parameter changes to "TRUE".  When the "JogForward" or "JogBackward" parameter is reset, the motion of the axis ends. The axis decelerates.
The "InVelocity" parameter changes to "FALSE".
 If the axis has come to a standstill, then the Motion Control job is complete and the "Busy" parameter changes to
"FALSE".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

123

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

The job is aborted during execution
If the Motion Control job is canceled during processing by another job, this is indicated in the "CommandAborted" parameter with the value "TRUE". The behavior of the "CommandAborted" parameter is independent of reaching the assigned velocity.

Jog mode is controlled by the "JogForward" parameter.

Jog mode is controlled by the "JogBackward" parameter.

 The job is started by setting the "JogForward" or "JogBackward" parameter.  While the job is processing, the "Busy" parameter shows the value "TRUE".  During job execution, the job is aborted by another Motion Control job. When the job is aborted, the "Busy" parameter
changes to "FALSE" and "CommandAborted" changes to "TRUE".
 When the "JogForward" or "JogBackward" parameter is reset, the "CommandAborted" parameter likewise changes to
"FALSE".

124

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.4 Tracking active jobs (S7-1500, S7-1500T)

An error occurs during the execution of the job
If an error occurs during execution of the Motion Control job, this is indicated in the "Error" parameter with the value "TRUE". The behavior of the "Error" parameter is independent of reaching the assigned velocity.

Jog mode is controlled by the "JogForward" parameter.

Jog mode is controlled by the "JogBackward" parameter.

 The job is started by setting the "JogForward" or "JogBackward" parameter.  While the job is being executed, the "Busy" parameter shows the value "TRUE".  An error occurs during the execution of the job. When the error occurs, the "Busy" parameter changes to "FALSE",
and "Error" changes to "TRUE".
 When the "JogForward" or "JogBackward" is reset to the value "FALSE", the "Error" parameter likewise changes to
"FALSE".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

125

Programming (S7-1500, S7-1500T) 6.5 Ending Motion Control jobs (S7-1500, S7-1500T)

6.5

Ending Motion Control jobs (S7-1500, S7-1500T)

When a job is ended, a distinction is made between error-free completion of the job and a motion abort.

Completion of job
The completion of a Motion Control job is indicated as described in the "Tracking running jobs (Page 114)" section.

Job termination
The termination and the substitution behavior are described in the section "Substitution behavior of Motion Control jobs". Special pending jobs can be cancelled with "MC_Power".

Motion abort

If a motion must be aborted, you can perform the following measures:
 Execute "MC_Halt" or "MC_Stop"
To abort a motion and stop the axis, you can use the "MC_Halt" instruction or "MC_Stop" instruction.
 Disable "MC_Power"
In an emergency, you can stop the axis via an emergency stop ramp. To do so, set the "Enable" parameter of the "MC_Power" instruction to "FALSE". The axis is decelerated according to the selected "StopMode" and all jobs for the technology object are aborted.

Measuring job abort
With the Motion Control instruction "MC_AbortMeasuringInput", an active one-time or cyclic measuring job is aborted.

Cancellation of an active output cam/cam track
 "MC_OutputCam"
An active output cam is disabled when the "Enable" parameter of Motion Control instruction "MC_OutputCam" is set to "FALSE".
 "MC_CamTrack"
An active cam track is disabled when the "Enable" parameter of Motion Control instruction "MC_CamTrack" is set to "FALSE".

126

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Programming (S7-1500, S7-1500T) 6.6 Restart of technology objects (S7-1500, S7-1500T)

6.6

Restart of technology objects (S7-1500, S7-1500T)

After the CPU is switched on, or after technology objects are downloaded into the CPU, the system automatically initializes the technology objects with the start values from the technology data block. If restart-relevant changes are detected during a reload into the CPU, a restart of the technology object is automatically performed.

If restart-relevant data have been changed in RUN mode by the user program, then the technology object must be reinitialized by the user in order for the changes to be used. At a RUN  STOP transition, the CPU automatically performs a restart of technology objects with restart-relevant changes.

If changes in the technology data block should also be retained after the restart of the technology object, then you must write the changes to the start value in load memory using the extended instruction "WRIT_DBL".

Restart required
If a restart of the technology object is required, this is indicated at "Technology object > Diagnostics > Status and error bits > Axis status or Encoder status > Online start value changed", as well as in the tag "<TO>.StatusWord.X3 (OnlineStartValuesChanged)" of the technology object.

Restarting a technology object
A restart of the technology object is triggered by the user by means of the "MC_Reset" Motion Control instruction, with parameter "Restart" = TRUE.
During a restart, all configuration data of the technology object are loaded from load memory into work memory. In the process, the actual values in the technology data block are overwritten.
Note the following during a restart of the technology object:
 A restart resets the "Homed" status of a technology object with incremental actual values ("<TO>.StatusWord.X5 (HomingDone)").
 While a restart is being performed, the technology object cannot perform any jobs. An active restart will be indicated under "Technology object > Diagnostics > Status and error bits > Axis status or Encoder status > Restart active", and in the "<TO>.StatusWord.X2 (RestartActive)" tag of the technology object.
 Motion Control jobs are rejected during a restart with the "Error" = TRUE and "ErrorID" = 16#800D parameters (job not executable, because a restart is active).
 While a restart is being executed, you cannot access the technology data block.

See also

Change restart-relevant data (Page 103)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

127

Downloading to CPU (S7-1500, S7-1500T)

7

When downloading to the CPU S7-1500, it is always verified that the project files are consistent online and offline after the download. The data of the technology objects are saved in technology data blocks. The conditions for downloading blocks thus apply when loading new or modified technology objects.
Load in RUN mode
When loading in the CPU's RUN mode, it is checked whether a load without restart of the technology objects is possible. If restart-relevant configuration values were changed, then a restart of the technology object is automatically performed after the load into the CPU. Loading a technology object is only possible if the technology object is disabled. You cannot download the following changes to the CPU in RUN mode:  Changes to the MC-Servo clock speeds  Changes to the hardware interface of the technology object in "Technology object >
Configuration > Hardware interface"

128

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Commissioning (S7-1500, S7-1500T)

8

The following guidelines describe the steps that you should note when commissioning the Motion Control-specific components of your equipment.
The commissioning of other components of your automation system depends on the particular equipment configuration. Commissioning (not Motion Control) is described in the "Automation System S7-1500" (https://support.automation.siemens.com/WW/view/en/59191792) system manual.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

129

Commissioning (S7-1500, S7-1500T) 8.1 Commissioning guidelines (S7-1500, S7-1500T)

8.1

Commissioning guidelines (S7-1500, S7-1500T)

These guidelines serve as recommendations for commissioning equipment with Motion Control. The procedure is described using the example of a positioning axis technology object.

Requirement

 The configuration of the following components is complete: ­ CPU ­ BUS communication ­ Drives ­ Technology objects
 The user program has been created.  The wiring of the CPU and of the associated I/O is complete.  The commissioning and optimization of the drive is complete.

130

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Commissioning (S7-1500, S7-1500T) 8.1 Commissioning guidelines (S7-1500, S7-1500T)

Procedure

Proceed as follows to commission the Motion Control-specific components of your equipment:

Step Turn on CPU "Disable" position controller
Activate precontrol

Action to be performed
Turn on the power supply and the CPU.
Set the gain (Kv factor) of the position control loop to zero. (This setting avoids unwanted drive movements that may be caused by incorrect parameterization of the position control loop.)
Set the precontrol to 100 %.

Load project into the CPU

Bring the CPU to the STOP mode.
Download your project to the CPU (load hardware and software).

Supported by TIA Portal "Technology object > Configuration > Extended parameters > Control loop"
"Technology object > Configuration > Extended parameters > Control loop"
· "Toolbar > Stop CPU" · "Toolbar > Download to
device"

Create online connection to the CPU

Select the "Receive messages" check box under "Online & Diagnostics > Online Access".
Configure the interface of the TIA Portal and create an online connection with the CPU.

· Device configuration
· "Online & Diagnostics > Online Access"

Disable Motion Control In order to avoid conflicts with the axis control panel, lock the specific user program enabling of technology objects in your user program
(MC_Power.Enable = FALSE).

· PLC programming · Motion Control instructions

Evaluating pending messages

Evaluate the message display in the inspector window. Resolve the causes of pending technology alarms. Acknowledge the technology alarms (Page 135).

"Inspector window > Diagnostics > Message display"

Check hardware limit switches

Click the hardware limit switches. Check for correct message display (technology alarm 531). Acknowledge the technology alarm.

"Inspector window > Diagnostics > Message display"

Check the connection Bring the CPU into the RUN mode. Open the Axis control panel "Technology object > Commis-

and configuration of the and take over control.

sioning > Axis control panel"

drive (setpoint)

Perform the following steps:

· Enable the technology object.  The drive must turn itself on, and where applicable release the brake. The position is held.
· Move the axis in jog mode at low velocity in the positive direction.  The drive must move. The actual position value must increase (positive direction).

· Disable the technology object.  The drive must turn itself off, and where applicable apply the brake.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

131

Commissioning (S7-1500, S7-1500T) 8.1 Commissioning guidelines (S7-1500, S7-1500T)

Step

Action to be performed

Supported by TIA Portal

Check the connection · and configuration of the encoder (actual value)
·

Check the scaling of the actual values (rotation direction, · distance evaluation, and resolution of the encoder)  The change in the actual mechanical position must match the change in the actual values. In case of deviations, cor- · rect the parameters assigned for mechanics under "Technology object > Extended parameters > Mechanics".
For absolute encoders, check the absolute encoder adjustment. To do this, move the axis to the start of the traversing range and switch the system off. After the restart, check the actual encoder values for correctness. Repeat this step likewise at the traversing range end. If there are deviations, correct the following:

"Technology object > Diagnostics > PROFIdrive telegram"
"Technology object > Commissioning > Axis control panel"

­ Settings for fine resolution under "Technology object > Data exchange with encoder"

­ Zero-crossing position of the encoder (only for "Absolute" encoder type)

The position of the zero crossing can be changed by rotating the encoder in the dismantled state. With programmable encoders, the zero crossing can be adjusted by parameter assignment. The zero crossing must be outside the traversing range.

Checking the reference Traverse the axis in jog mode at low velocity in the positive

·

speed

direction.

 The displayed current velocity must match the velocity set-

point.

·

If the displayed current velocity deviates significantly from the

velocity setpoint, adjust the reference speed.

"Technology object > Hardware interface > Data exchange"
"Technology object > Commissioning > Axis control panel"

Optimize position controller
Transfer the gain Kv to the project.
Enable Motion Control specific user program

Use the Optimization commissioning function to optimize the gain (Kv) of the position control loop.
For this purpose, adapt following error limits as needed.
Enter the gain Kv that you determined by means of the optimization function in your configuration data. Load your project into the CPU.
Unlock the enabling technology objects lock in your user program (MC_Power.Enable = TRUE).

"Technology object > Commissioning > Optimization"
"Technology object > Configuration > Extended parameters > Control loop" · PLC programming · Motion Control instructions

Check the functioning Check the programmed functions of your user program. of the user program

· Watch and force tables
· Online and diagnostic functions

End of commissioning for a positioning axis technology object

To commission additional technology objects, perform the corresponding steps again.

See above.

See also

S7-1500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view/109766462)

132

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Diagnostics (S7-1500, S7-1500T)

9

The "Diagnostics" section is limited to the description of the diagnostic concept for Motion Control.
A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.industry.siemens.com/cs/ww/en/view/59192926).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

133

Diagnostics (S7-1500, S7-1500T) 9.1 Diagnostic concept (S7-1500, S7-1500T)

9.1

Diagnostic concept (S7-1500, S7-1500T)

The diagnostic concept encompasses alarms and associated messages, as well as error messages in the Motion Control instructions. The TIA Portal also supports you with consistency checks during configuration of the technology objects, and during the creation of your user program.

All alarms in runtime (from the CPU, technology, hardware etc.) are displayed in the Inspector window of the TIA Portal. Diagnostic information that relates to technology objects (technology alarms, status information) are additionally displayed in the Diagnostics window of the respective technology object.

During motion control, if an error occurs at a technology object (e.g. approaching a hardware limit switch), then a technology alarm (Page 135) is triggered, and a corresponding message is displayed in the TIA Portal as well as on HMI devices.

In your user program, technology alarms are generally signaled via error bits in the technology data block. The number of the technology alarm with the highest priority is also displayed. In order to simplify error evaluation, the "Error" and "ErrorID" parameters of the Motion Control instructions also indicate that a technology alarm is pending.

Program errors (Page 139) can occur during parameter assignment or during the processing sequence of the Motion Control instructions (e.g. invalid parameter specification when calling the instruction, initiation of a job without enable via "MC_Power"). Motion Control instruction errors are indicated at the call of instructions using the "Error" and "ErrorID" parameters.

134

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Diagnostics (S7-1500, S7-1500T) 9.2 Technology alarms (S7-1500, S7-1500T)

9.2

Technology alarms (S7-1500, S7-1500T)

If an error occurs at a technology object (e.g. approaching a hardware limit switch), a technology alarm is triggered and indicated. The impact of a technology alarm on the technology object is specified by the alarm reaction.

Alarm classes

Technology alarms are divided into three classes:
 Acknowledgeable warning
The processing of Motion Control job is continued. The current motion of the axis can be influenced, e.g. by limiting the current dynamic values to the configured limit values.
 Alarm requiring acknowledgment
Motion jobs are aborted in accordance with the alarm reaction. You must acknowledge the alarms in order to continue execution of new jobs after eliminating the cause of the error.
 Fatal error
Motion jobs are aborted in accordance with the alarm reaction.
To be able to use the technology object again after eliminating the cause of the error, you must restart the technology object (Page 127).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

135

Diagnostics (S7-1500, S7-1500T) 9.2 Technology alarms (S7-1500, S7-1500T)
Display of technology alarms
A technology alarm is displayed in the following locations:  TIA Portal
­ "Technology object > Diagnostics > Status and error bits" Display of pending technology alarms for each technology object.
­ "Technology object > Commissioning > Axis control panel" Display of the last pending technology alarm for each technology object.
­ "Inspector window > Diagnostics > Message display" Select the "Receive messages" check box under "Online & Diagnostics > Online Access" in order to display technology alarms via the message display. With an online connection to the CPU, the pending technology alarms for all technology objects are displayed. Additionally, the archive view is available to you. The message display can also be activated and displayed on a connected HMI.
­ "CPU > Online & diagnostics" Display of the technology alarms that have been entered in the diagnostic buffer.
 User program ­ Tags "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" Indication of the number and the reaction of the technology alarm with the highest priority. ­ Tag "<TO>.StatusWord" A pending technology alarm is indicated with bit 1 ("Error"). ­ Tag "<TO>.ErrorWord" Indication of alarms and fatal errors. ­ Tag "<TO>.WarningWord" Indication of warnings. ­ Parameter "Error" and "ErrorID" In a Motion Control instruction, the parameters "Error" = TRUE and "ErrorID" = 16#8001 indicate that a technology alarm is pending.
 Display of the CPU In order to show technology alarms on the CPU display, make the following setting when loading to the CPU: In the "Load preview" dialog, select the action "Consistent download" for the "Text libraries" entry.

136

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Diagnostics (S7-1500, S7-1500T) 9.2 Technology alarms (S7-1500, S7-1500T)

Alarm reaction

A technology alarm always contains an alarm reaction, which describes the impact on the technology object. The alarm reaction is specified by the system.
The following table shows possible alarm reactions:

Alarm reaction

Description

Axes (speed axis, positioning axis, synchronous axis)

No reaction (warnings only) <TO>.ErrorDetail.Reaction = 0

The processing of Motion Control job is continued. The current motion of the axis can be influenced, e.g. by limiting the current dynamic values to the configured limit values.

Stop with current dynamic values <TO>.ErrorDetail.Reaction = 1

Active motion commands are aborted. The axis is braked with the dynamic values that present in the Motion Control instruction and brought to a standstill.

Stop with maximum dynamic values <TO>.ErrorDetail.Reaction = 2

Active motion commands are aborted. The axis is braked with the dynamic values configured under "Technology object > Extended parameters > Dynamic limits", and brought to a standstill. The configured maximum jerk is hereby taken into account.

Stop with emergency stop ramp <TO>.ErrorDetail.Reaction = 3

Active motion commands are aborted. The axis is braked with the emergency stop deceleration configured under "Technology object > Extended parameters > Emergency stop ramp", without any jerk limit, and brought to a standstill.

Remove enable <TO>.ErrorDetail.Reaction = 4

Active motion commands are aborted. The setpoint zero is output and the enable is removed. The axis is braked to a standstill according to the configuration in the drive.

Track setpoints <TO>.ErrorDetail.Reaction = 5

Active motion commands are aborted. The setpoint zero is output. The actual values supplied by the drive are automatically tracked as setpoints.

Other technology objects (output cam, cam track, measuring input, cam, external encoder)

No reaction (warnings only) <TO>.ErrorDetail.Reaction = 0

The processing of Motion Control job is continued. The current motion of the axis can be influenced, e.g. by limiting the current dynamic values to the configured limit values.

Terminate processing of the technology Processing of the technology object is terminated. All running Motion Control jobs

object:

are aborted.

· Output cam

<TO>.ErrorDetail.Reaction = 6 · Cam track

<TO>.ErrorDetail.Reaction = 7 · Measuring input

<TO>.ErrorDetail.Reaction = 8 · Cam

<TO>.ErrorDetail.Reaction = 9 · External encoder

<TO>.ErrorDetail.Reaction = 10

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

137

Diagnostics (S7-1500, S7-1500T) 9.2 Technology alarms (S7-1500, S7-1500T)
Acknowledging technology alarms
You can acknowledge technology alarms as follows:  TIA Portal
­ "Technology object > Commissioning > Axis control panel" Click "Confirm" to acknowledge all alarms and warnings pending for the selected technology object.
­ "Inspector window > Diagnostics > Message display" You can acknowledge the alarms and warnings for all technology objects either individually, or all at once.
 HMI At an HMI with enabled message display, you can acknowledge the alarms and warnings for all technology objects either individually, or all at once.
 User program Acknowledge pending technology alarms for a technology object with the Motion Control instruction "MC_Reset".
Additional information
You can find a list of the technology alarms and alarm reactions in the "Technology alarms (Page 140)" appendix.

138

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Diagnostics (S7-1500, S7-1500T) 9.3 Errors in Motion Control instructions (S7-1500, S7-1500T)

9.3

Errors in Motion Control instructions (S7-1500, S7-1500T)

Errors in Motion Control instructions (e.g. invalid parameter value setting) are indicated by the "Error" and "ErrorID" output parameters.

Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated for the Motion Control instruction:

 Illegal status of the technology object, which prevents the execution of the job.

 Invalid parameter assignment of the Motion Control instruction, which prevents the execution of the job.

 As a result of the alarm reaction for a technology object error.

Error display

If there is a Motion Control instruction error, the "Error" parameter shows the value "TRUE". The cause of the error is given in the "ErrorID" parameter.
Jobs to the technology object are rejected when "Error" = TRUE. Running jobs are not influenced by rejected jobs.
If "Error" = TRUE and "ErrorID" = 16#8001 is indicated during job execution, a technology alarm has occurred. In this case, evaluate the indication of the technology alarm.
If "Error" = "TRUE " is displayed during execution of a "MC_MoveJog" job, the axis is braked and brought to a standstill. In this case, the deceleration configured for the "MC_MoveJog" instruction takes effect.

Acknowledge error
Acknowledging errors in Motion Control instructions is not required. Restart a job after resolving the error.

Additional information
You can find a list of the ErrorIDs in the "Error detection (Page 171)" appendix.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

139

Appendix (S7-1500, S7-1500T)

A

A.1

Technology alarms (S7-1500, S7-1500T)

A.1.1

Overview of the technology alarms (S7-1500, S7-1500T)
The following table shows an overview of the technology alarms and the corresponding alarm reactions. When a technology alarm occurs, evaluate the entire indicated alarm text, in order to find the precise cause.

Legend
No. Reaction Error bit
Warning bit
Restart Diagnostic buffer Alarm text

Number of the technology alarm (corresponds to <TO>.ErrorDetail.Number)
Effective alarm reaction (corresponds to <TO>.ErrorDetail.Reaction)
Bit that is set in "<TO>.ErrorWord" when the technology alarm occurs A description of the bits can be found in the appendix of the documentation "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462).
Bit that is set in "<TO>.WarningWord" when the technology alarm occurs A description of the bits can be found in the appendix of the documentation "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462).
To acknowledge the technology alarm, the technology object must be reinitialized (Restart).
The alarm is entered in the diagnostics buffer.
Displayed alarm test (limited)

140

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

List of the technology alarms

No.

Reaction

101 Remove enable 102 Remove enable 103 Remove enable 104 Stop with maximum
dynamic values 105 Remove enable 106 Remove enable 107 Remove enable 108 Remove enable 109 Remove enable 110 No reaction 111 No reaction 112 No reaction 113 Remove enable 114 Remove enable

201 Remove enable 202 No reaction 203 Remove enable 204 Remove enable 304 Stop with emergency
stop ramp 305 Stop with emergency
stop ramp
306 Stop with emergency stop ramp
307 Stop with maximum dynamic values

308 Remove enable

321 Stop with emergency stop ramp
322 No reaction
323 Remove enable
341 Stop with maximum dynamic values

Error bit
X1 X15 X15 X1

Warning bit
-

Restart
X X X -

Diagnostic buffer

Alarm text

X

Configuration error.

X

Drive configuration adaptation error.

X

Encoder configuration adaptation error.

-

SW limit switch specification error.

X1

-

X

X1

-

-

X1

-

X

X1

-

-

X1

-

X

-

X1

-

-

X15

-

-

X15

-

X2

-

X

X1

-

X

X0

-

X

X0

-

X

X0

-

X

X0

-

-

X2

-

-

X

Drive configuration error.

X

Drive connection configuration error.

X

Encoder configuration error.

X

Encoder connection configuration error.

-

Configuration error.

-

Configuration is adjusted internally.

X

TO and drive configuration inconsistent.

X

TO and encoder configuration inconsistent.

-

Isochronous mode not possible.

-

Cross-PLC synchronous operation configura-

tion error.

X

Internal error.

-

Internal configuration error.

-

Internal error.

-

Commissioning error.

-

Velocity limit is zero.

X2

-

X2

-

-

-

· Limit value of the acceleration is zero.

· Limit value of the deceleration is zero.

-

-

Jerk limit is zero.

X2

-

X2

-

X3

-

-

X

· Negative numerical value range of the

position reached.

· Positive numerical value range of the position reached.

-

X

· Negative numerical value range of the

position exceeded.

· Positive numerical value range of the position exceeded.

-

-

Axis not homed.

-

X3

-

-

Restart not executed.

X3

-

-

-

MC_Home could not be performed.

X10

-

-

-

Error in homing data.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

141

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

No.

Reaction

342 Stop with emergency stop ramp
343 Remove enable 401 Remove enable 411 Remove enable 412 Remove enable 421 Remove enable 431 Remove enable

501 No reaction 502 No reaction

503 No reaction 504 No reaction 511 No reaction
521 Remove enable 522 No reaction 531 Remove enable

533 Stop with maximum dynamic values
534 Remove enable
541 Remove enable 542 Remove enable
550 Track setpoints 551 No reaction
552 Remove enable 601 Stop with maximum
dynamic values

Error bit
X10
X1 X13 X5 X5 X4 X7
-

Warning bit
-
-
X6 X6

Restart
-
-
-

Diagnostic buffer

Alarm text

-

Reference output cam/encoder zero mark not

found.

-

Homing function not supported by device.

X

Error accessing logical address.

X

Faulty encoder at the logical address.

-

Permitted actual value range exceeded.

X

Faulty drive at the logical address.

X

Faulty communication with device at logical

address.

-

Programmed velocity is limited.

-

· Programmed acceleration is being

limited.

· Programmed deceleration is being limited.

-

X6

-

-

X6

-

-

X6

-

X11

-

-

-

X11

-

X9

-

-

-

Programmed jerk is limited.

-

Speed setpoint monitoring active.

-

Dynamic limits are violated by the kinematics

motion.

-

Following error.

-

Warning following error tolerance.

-

· Positive HW limit switch approached.

· Negative HW limit switch approached.
· Illegal free travel direction of active hardware limit switch.
· HW limit switch polarity reversed, free travel not possible.
· Both hardware limit switches active, retraction not possible.

X8

-

-

-

· Negative SW limit switch approached.

· Positive SW limit switch approached.

X8

-

-

-

· Negative SW limit switch is crossed.

· Positive SW limit switch is crossed.

X12

-

-

X2

-

-

X4

-

-

X2

X6

-

X15

-

-

X14

-

-

-

Position monitoring error.

-

Clamping monitoring error: Axis leaving

clamping tolerance window.

-

Drive-autonomous motion is being executed.

-

Maximum velocity cannot be reached with

drive/axis parameters.

-

Encoder adaptation error during ramp-up.

-

Leading axis is not assigned or defective.

142

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

No.

Reaction

603 Remove enable

608 Stop with maximum dynamic values
611 Remove enable

612 Remove enable 613 Remove enable 700 Remove enable 701 Remove enable 702 Remove enable 703 Remove enable 704 Remove enable 750 Remove enable
752 Remove enable
753 Remove enable
754 Remove enable
755 Remove enable 758 No reaction 900 Remove enable 901 Remove enable 902 Remove enable

Error bit X14 X14

Warning bit -

Restart -

Diagnostic buffer

Alarm text

-

Leading axis is not in position-controlled

mode.

-

Error during synchronization.

X2

-

X2

-

X1

-

X2

-

X13

-

X2

-

X2

-

X2

-

X2

-

X2

-

X2

-

X2

-

X13

-

X2

-

X2

-

X7

-

X1

-

-

-

The cam specified in the MC_CamIn.Cam

parameter has not been configured or is not

available or is not interpolated.

-

-

Specified cam has not been interpolated.

-

-

Accuracy of leading value is limited.

-

-

Output cam limiting error.

-

-

I/O output error.

-

-

Position value valid.

-

-

Cam track data faulty.

-

-

Output cam data faulty.

-

-

Measuring job not possible during homing of

assigned axis.

-

-

Validity range of measuring job not recog-

nized.

-

-

Only one measuring input can access an

encoder at a time.

-

-

Measuring input configuration in external

device is not correct.

-

-

Measuring job not possible.

-

-

A measuring edge was not evaluated.

X

-

Invalid leading values.

-

-

Data transmission error

-

-

Accuracy of leading value is limited.

See also

Technology alarms (Page 135)

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

143

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.2

Technology alarms 101-114 (S7-1500, S7-1500T)

Technology alarm 101
Alarm reaction: Remove enable Restart: Required

Alarm text

Remedy

Configuration error.

Value in <tag> not allowed.

Adjust the specified value.

Faulty load gear factors.

Adjust the load gear factors in the "<TO>.LoadGear.Numerator" and/or "<TO>.LoadGear.Denominator" parameters.

At least one encoder required. Sensor[].existent

Configure at least one encoder.

Sensor[1] must be configured for DSC.

Configure Sensor[1].

Values in Sensor[1..4].Parameter.FineResolutionXist1 and P979 are not identical.

Set the identical fine resolution on the technology as on the drive.

Controller parameter incorrect.

Adjust the value of the "<TO>.PositionController.Kv" parameter.

PROFIBUS parameter assignment is inconsistent; sum Ti and Adjust the send clock in the hardware configuration. To greater than send clock.

Drive or drive telegram type or encoder not suitable for DSC. Check whether the drive can be operated with DSC and adjust the drive telegram if required.

TimeOut parameter outside of limits.

Set the monitoring time of the axis control panel to a valid value.

Simulation.Mode parameter outside of limits.

Set the parameter to a valid value.

Telegram in Actor.Interface.AddressIn and AddressOut are not identical.

Set the identical drive telegram type for sending and receiving direction.

Illegal combination for referencing data incremental. encoder. Check the active and passive homing settings.

Telegram in Sensor[1..4].Interface.AddressIn and AddressOut Set the identical encoder telegram type for sending and

are not identical.

receiving direction.

The VREF of the analog output or the bit driver are assigned Make sure that different addresses are assigned for all

several times.

technology objects in the project.

144

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 102
Alarm reaction: Remove enable Restart: Required
Alarm text Drive configuration adaptation error.
Drive is not assigned to a SINAMICS device.
Drive is not interconnected directly to I/O area.
Adaptation canceled due to insufficient resources. Parameter does not exist, value unreadable or invalid. Maximum speed Maximum torque/force (P1520) Maximum torque/force (P1521) Torque resolution Rated speed Rated torque Motor type
Technology alarm 103
Alarm reaction: Remove enable Restart: Required
Alarm text Encoder configuration adaptation error.
Encoder is not assigned to a SINAMICS device.
Encoder is not interconnected directly to I/O area.
Adaptation canceled due to insufficient resources. Parameter does not exist, value unreadable or invalid. Encoder system Encoder resolution Encoder fine resolution Gx_XIST1 Encoder fine resolution Gx_XIST2 Encoder revolutions

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Remedy The drive adaptation is only available for SINAMICS drives. During configuration of the axis, the logical addresses were set to a data block or bit memory, for example. The adaptation is only possible when the encoder has been directly interconnected to an I/O area. Check whether your device supports acyclic data communication according to PROFIdrive.
Remedy The encoder adaptation is only available for SINAMICS devices and external Siemens encoders. During configuration of the axis, the logical addresses were set to a data block or bit memory address area, for example. The adaptation is only possible when the encoder has been directly interconnected to an I/O area. Check whether your device supports acyclic data communication according to PROFIdrive.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

145

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 104
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text SW limit switch specification error.
Neg. SW limit switch greater than pos. SW limit switch.

Remedy Change the position of the software limit switches.

Technology alarm 105
Alarm reaction: Remove enable Restart: Required

Alarm text Drive configuration error.
HW Configuration. The TO needs a smaller servo cycle clock.
Error in internal communication.
Address for drive data does not exist in project. Error during the parameter assignment of the frame for the torque data. Address overlay during sensor interconnection.

Remedy
· Connect a suitable device. · Check the device (I/Os). · Check the topology of the project. · Compare the device configuration and the
configuration of the technology object. · Contact customer service.
· Check the project for consistency and reload the project into the controller.
· Contact customer service.
Check the project for consistency and reload the project into the controller. Check the interconnection of the SIEMENS additional telegram 750 (torque data). Make sure that different addresses are assigned for all technology objects in the project.

146

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 106
Alarm reaction: Remove enable Restart: Not required Alarm text Drive connection configuration error. System has no communication with drive.
Drive not initialized during ramp-up.
Technology alarm 107
Alarm reaction: Remove enable Restart: Required Alarm text Encoder configuration error. HW Configuration The TO needs a smaller servo cycle clock.
Error internal communication.
Address overlay during sensor interconnection.

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Remedy
Internal system error. · Check the project for consistency and reload the
project into the controller. · Contact customer service. · Ensure that the communication between the control-
ler and drive is established. To do this, evaluate the "<TO>.StatusDrive.CommunicationOK" parameter before enabling the axis. · To enable a technology object, the drive initialization must be complete. Trigger the job again later.
Remedy
· Connect a suitable device. · Check the device (I/Os). · Check the topology of the project. · Compare the device configuration and the configura-
tion of the technology object. · Contact customer service. · Check the project for consistency and reload the
project into the controller. · Contact customer service. Make sure that different addresses are assigned for all technology objects in the project.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

147

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Technology alarm 108
Alarm reaction: Remove enable Restart: Not required Alarm text Encoder connection configuration error. System without communication to encoder.
Encoder not initialized during ramp-up.
Encoder data address missing in project.
Technology alarm 109
Alarm reaction: Remove enable Restart: Required Alarm text Configuration error. Neg. HW limit switch. Pos. HW limit switch Reference output cam "Active homing". Reference output cam "Passive homing". Enable bit for the analog drive interface. DriveReady bit of the analog drive interface. Measurement sensing input is faulty. Output cam output faulty.

Remedy
Internal system error. · Check the project for consistency and reload the
project into the controller. · Contact customer service. · Ensure that the communication between the control-
ler and encoder is established. To do this, evaluate the "<TO>.StatusSensor[1..4].CommunicationOK" parameter before enabling the axis and also check if the status of the encoder actual value is "<TO>.StatusSensor[1..4].State" = VALID (2). · To enable a technology object, the encoder initialization must be complete. Trigger the job again later. Check the project for consistency and reload the project into the controller.
Remedy
· Connect a suitable device. · Check the device (I/Os). · Check the topology of the project. · Compare the device configuration and the
configuration of the technology object. · Contact customer service.

148

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 110
Alarm reaction: No reaction Restart: Not required Alarm text Configuration is adjusted internally. Actor.DriveParameter.MaxSpeed is limited.
PositioningMonitoring.ToleranceTime is limited. DynamicDefaults.EmergencyDeceleration is limited. DriveParameter.ReferenceTorque too small.

Remedy
· Correct the reference value in the drive and in the configuration of the technology object to "<TO>.Actor.MaxSpeed" / 2.
· With analog drive connection, correct the reference value in the drive and in the configuration of the technology object to "<TO>.Actor.MaxSpeed" / 1.17.
· The value can be set in the drive, for example, in p2000 = p1082.
Change the configuration data.

Technology alarm 111
Alarm reaction: No reaction Restart: Not required

Alarm text

Remedy

TO and drive configuration inconsistent.

Different telegram.

Match the telegram configuration for the technology object with the telegram configuration in the drive. (P922 in drive)

Incompatible torque resolution.

Adjust the high torque resolution for the drive.

Application cycle of the drive and servo cycle clock are not the Adjust the application cycle of the drive in the device

same.

configuration for the PROFIBUS drive.

Application cycle of the drive and processing cycle of the TO are not the same.

Linear motor configured.

Set round-frame motor (P300) in the drive.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

149

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 112
Alarm reaction: No reaction Restart: Not required

Alarm text TO and encoder configuration inconsistent.
Different telegram type.
Encoder is not an absolute encoder.
Application cycle of the encoder and servo cycle clock are not the same. Application cycle of the encoder and processing cycle of the TO are not the same.

Remedy
Match the telegram configuration for the technology object with the telegram configuration in the encoder. Configure the encoder for the technology object as an incremental encoder. Adjust the application cycle of the encoder in the device configuration for the PROFIBUS encoder.

Technology alarm 113
Alarm reaction: Remove enable Restart: Required
Alarm text Isochronous mode not possible.

Remedy
· The configured output for the cam or cam track technology object or the input for the technology object measuring input cannot be used in isochronous mode.
Configure the I/O in the device configuration as isochronous I/O.
· The maximum permissible bus clock TSend has been exceeded.
The maximum bus clock for the use of SINAMICS measuring inputs is up to 8 ms.
· Make sure that the organization block MC-Servo [OB91] is called synchronously with the bus system.

Technology alarm 114
Alarm reaction: Remove enable Restart: Required
Alarm text Cross-PLC synchronous operation configuration error.

Remedy
Check the configuration of the interconnected leading and following axes. Make sure that all relevant tags are correctly configured for cross-PLC synchronous operation.

150

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.3

Technology alarms 201-204 (S7-1500, S7-1500T)

Technology alarm 201
Alarm reaction: Remove enable Restart: Required
Alarm text Internal error.

Solution Contact customer service.

Technology alarm 202
Alarm reaction: No reaction Restart: Required
Alarm text Internal configuration error.

Solution Contact customer service.

Technology alarm 203
Alarm reaction: Remove enable Restart: Required
Alarm text Internal error.

Solution Contact customer service.

Technology alarm 204
Alarm reaction: Remove enable Restart: Not required
Alarm text Commissioning error.
Connection to the TIA Portal interrupted.

Solution Check the connection properties.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

151

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.4

Technology alarms 304-343 (S7-1500, S7-1500T)

Technology alarm 304
Alarm reaction: Stop with emergency stop ramp Restart: Not required

Alarm text Velocity limit is zero.

Remedy
Enter a non-zero value for the maximum velocity (DynamicLimits.MaxVelocity) in the dynamic limits.

Technology alarm 305
Alarm reaction: Stop with emergency stop ramp Restart: Not required

Alarm text Acceleration/deceleration limit is zero.
Acceleration
Deceleration

Remedy
Enter a non-zero value for the maximum acceleration (DynamicLimits.MaxAcceleration) in the dynamic limits. Enter a non-zero value for the maximum deceleration (DynamicLimits.MaxDeceleration) in the dynamic limits.

Technology alarm 306
Alarm reaction: Stop with emergency stop ramp Restart: Not required

Alarm text Jerk limit is zero.

Remedy
Enter a non-zero value for the maximum jerk (DynamicLimits.MaxJerk) in the dynamic limits.

Technology alarm 307
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text

Remedy

Negative/positive numerical value range of the position reached.

Negative

Enable the "Modulo" setting for the technology object.

Positive

152

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 308
Alarm reaction: Remove enable Restart: Not required

Alarm text
Negative/positive numerical value range of the position exceeded.
Negative Positive

Remedy Enable the "Modulo" setting for the technology object.

Technology alarm 321
Alarm reaction: Stop with emergency stop ramp Restart: Not required

Alarm text Axis not homed.

Remedy
To perform an absolute positioning motion, you must home the technology object.

Technology alarm 322
Alarm reaction: No reaction Restart: Not required

Alarm text
Restart not executed. The technology object is not ready for restart. The condition for restart of the technology object is not satisfied.

Remedy
Download the project again. Disable the technology object.

Technology alarm 323
Alarm reaction: Remove enable Restart: Not required
Alarm text MC_Home could not be performed.

Remedy
· Enable the "Modulo" setting for the technology object.
· Adjust the position value for use of the Motion Control instruction "MC_Home".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

153

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 341
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text Error in homing data.
Approach velocity is zero.
Homing velocity is zero.

Remedy
Check the configuration for homing (Homing.ApproachVelocity). Check the configuration for homing (Homing.ReferencingVelocity).

Technology alarm 342
Alarm reaction: Stop with emergency stop ramp Restart: Not required

Alarm text Reference cam/encoder zero mark not found.

Remedy
The reference cam configured for homing was not found in the traversing range of the axis.

Technology alarm 343
Alarm reaction: Remove enable Restart: Not required
Alarm text Homing function not supported by device.

Remedy
Configure a reference switch input for the pulse generator output used in the properties of the C-CPU.
("Pulse generators (PTO/PWM) > PTO[n]/PWN[n] > Hardware inputs/outputs")
When homing across a zero mark, the CPU transfers the reference switch input as zero mark.

154

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.5

Technology alarms 401-431 (S7-1500, S7-1500T)

Technology alarm 401
Alarm reaction: Remove enable Restart: Not required

Alarm text Error accessing logical address.
Invalid address. Input address is invalid. Output address is invalid.
Error during parameter assignment of the technology block driver. Address overlay during sensor interconnection. Address overlay during sensor interconnection.

Solution
· Connect a suitable device. · Check the device (I/Os). · Check the topology of the project. · Compare the device configuration and the
configuration of the technology object. · Configure the valid hardware limit switch. · Contact customer service. Make sure that different addresses are assigned for all technology objects in the project.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

155

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Technology alarm 411
Alarm reaction: Remove enable Restart: Not required Alarm text Faulty encoder at the logical address. Alarm message from encoder. HW error encoder. Encoder dirty. Read error encoder absolute value.
Zero mark monitoring encoder. Encoder in Parking state.
Encoder not ready after "MC_Reset".
Technology alarm 412
Alarm reaction: Remove enable Restart: Not required Alarm text Permitted actual value range exceeded. Positive. Negative. Modulo length.

Solution
Check the function, connections and I/Os of the encoder.
Compare the encoder type in the drive or encoder parameter P979 with the configuration data of the technology object. Encoder signals error in zero mark monitoring (fault code 0x0002 in Gx_XIST2, see PROFIdrive profile). · Search for the cause of the error in the connected
drive or encoder. · Check whether the alarm was possibly triggered by a
commissioning action involving the drive or encoder. Before sending the Motion Control instruction "MC_Power", check whether the encoder is ready during switch on. Check the following tags of the corresponding technology object: · <TO>.StatusDrive.CommunicationOK · <TO>.StatusSensor[1..4].CommunicationOK · <TO>.StatusSensor[1..4].State
Remedy
Home the axis/encoder in a valid actual value range.
Adjust the modulo length to the utilized encoder.

156

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 421
Alarm reaction: Remove enable Restart: Not required Alarm text Faulty encoder at the logical address. Alarm message from drive. No drive control required. Drive has shut down. Drive enable not possible.
Technology alarm 431
Alarm reaction: Remove enable Restart: Not required Alarm text Faulty communication with device at logical address. Drive failed. Signs of life of drive faulty.
Encoder failed. Signs of life of encoder faulty.

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Solution
· Check the functions and connections of the drive. · Enable and acknowledge safety function in the drive.
You can find more information in the section "Safety functions in the drive" of the documentation "S71500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view /109766462)". · In the case of analog connected axes, check if the "<TO>.StatusDrive.InOperation" tag = TRUE.
Solution
Check the function, connections and I/Os of the drive. · Check the function, connections and I/Os of the
drive. · Compare the clock parameters in the device
configuration (PROFIBUS line, slave OM for drive or encoder) and the execution system. Tmapc and servo must be set to the same cycle time. (Incorrect parameter assignment is indicated by reason 0x0080.) · If you call the application cycle of the MC-Servo [OB91] reduced to the send clock of a PROFINET IO system and the technology alarm 431 (Signs of life of drive faulty) is repeatedly shown, increase the update time of the send clock. Check the function, connections and I/Os of the encoder. · Check the function, connections and I/Os of the encoder. · Compare the clock parameters in the device configuration (PROFIBUS line, slave OM for drive or encoder) and the execution system. Tmapc and servo must be set to the same cycle time.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

157

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.6

Technology alarms 501-552 (S7-1500, S7-1500T)

Technology alarm 501
Alarm reaction: No reaction Restart: Not required
Alarm text Programmed velocity is limited.

Remedy
· Check the value for the velocity of the Motion Control instruction.
· Check the configuration of the dynamic limits.

Technology alarm 502
Alarm reaction: No reaction Restart: Not required
Alarm text Programmed acceleration/deceleration is being limited.
Acceleration
Deceleration

Remedy
· Check the value for the acceleration of the Motion Control instruction.
· Check the configuration of the dynamic limits. · Check the value for the deceleration of the Motion
Control instruction. · Check the configuration of the dynamic limits.

Technology alarm 503
Alarm reaction: No reaction Restart: Not required
Alarm text Programmed jerk is limited.

Remedy
· Check the value for the jerk of the Motion Control instruction.
· Check the configuration of the dynamic limits.

158

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 504
Alarm reaction: No reaction Restart: Not required Alarm text Speed setpoint monitoring active.
Technology alarm 511
Alarm reaction: No reaction Restart: Not required Alarm text Dynamic limits are violated by the kinematics motion. Velocity Acceleration Deceleration
Technology alarm 521
Alarm reaction: Remove enable Restart: Not required Alarm text Following error.

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Remedy · Check the mechanical configuration. · Check the encoder connection. · Check the configuration of the speed setpoint
interface. · Check the configuration of the control loop. · Check the value for the maximum velocity
(<TO>.DynamicLimits.MaxVelocity).
Remedy Reduce the velocity of the kinematics motion. Reduce the acceleration of the kinematics motion. Reduce the deceleration of the kinematics motion.
Remedy · Check the configuration of the control loop. · Check the direction signal of the encoder. · Check the configuration of the following error
monitoring.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

159

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Technology alarm 522
Alarm reaction: No reaction Restart: Not required
Alarm text Warning following error tolerance.

Remedy
· Check the configuration of the control loop. · Check the direction signal of the encoder. · Check the configuration of the following error
monitoring.

Technology alarm 531
Alarm reaction: Remove enable Restart: Not required

Alarm text Pos. HW limit switch reached.
Neg. HW limit switch reached.
Illegal free travel direction of active hardware limit switch.
Alarm reaction: Remove enable Restart: Required

Remedy
Acknowledge the alarm. After the acknowledgment, motions in the negative direction are allowed.
Acknowledge the alarm. After the acknowledgment, motions in the positive direction are allowed.
The programmed direction of movement is disabled due to the active hardware limit switch. Retract the axis in the opposite direction.

Alarm text HW limit switch polarity reversed, free travel not possible. Both hardware limit switches active, retraction not possible.

Remedy
· Check the mechanical configuration of the hardware limit switch.
· Check the limit switches.
· The error can be acknowledged by switching the controller off and on or using "MC_Reset" with "Restart" = TRUE.

160

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 533
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text Software limit switch is approached.
Negative
Positive

Remedy
With the current dynamic values, the axis will approach the negative software limit switch. For positioning axes, check the position setpoint. For following axes, check whether the current dynamics violates the configured dynamic limits. Move the axis in positive direction away from the negative software limit switch. With the current dynamic values, the axis will approach the positive software limit switch. For positioning axes, check the position setpoint. For following axes, check whether the current dynamics violates the configured dynamic limits. Move the axis in negative direction away from the positive software limit switch

Technology alarm 534
Alarm reaction: Remove enable Restart: Not required Alarm text Software limit switch was overshot. Negative
Positive

Remedy
The software limit switch was overtraveled. Acknowledge the alarm. After the acknowledgment, motions in the positive direction are allowed. The software limit switch was overtraveled. Acknowledge the alarm. After the acknowledgment, motions in the negative direction are allowed.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

161

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Technology alarm 541
Alarm reaction: Remove enable Restart: Not required Alarm text Position monitoring error. Target range not reached.
Exit target range again.

Remedy
The target range was not reached within the tolerance time. · Check the configuration of the position monitoring. · Check the configuration of the control loop. The target range was exited within the minimum dwell time. · Check the configuration of the position monitoring. · Check the configuration of the control loop.

Technology alarm 542
Alarm reaction: Remove enable Restart: Not required
Alarm text Clamping monitoring error: Axis leaving clamping tolerance window.

Remedy
The axis has executed a motion greater than the permissible tolerance at the fixed stop. Check whether the fixed stop has broken away.

Technology alarm 550
Alarm reaction: Track setpoints Restart: Not required
Alarm text Drive-autonomous motion is being executed.

Remedy
The drive is performing a motion that was not specified by the technology object.
Check if a safety function is active in the drive. You can find more information in the section "Safety functions in the drive" of the documentation "S7-1500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view/10 9766459)".

162

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 551
Alarm reaction: No reaction Restart: Not required

Alarm text
Maximum velocity cannot be reached with drive/axis parameters.

Remedy
The configured maximum velocity cannot be reached with the configured mechanics of the axis.
Check the configuration of the mechanics and the set reference speed.

Technology alarm 552
Alarm reaction: Remove enable Restart: Not required Alarm text Encoder adaptation error during ramp-up. Encoder is not assigned to a SINAMICS device.
Encoder is not interconnected directly to I/O area.
Adaptation canceled due to insufficient resources. Parameter does not exist, value unreadable or invalid. Encoder system Encoder resolution Encoder fine resolution Encoder revolutions

Remedy
· The operationally active encoder could not be adapted. Other encoders that can be used are configured. Use the encoder switch (MC_SetSensor).
· The encoder set as the operationally active encoder could not be adapted.
· Specify a different sensor for the initialization of the technology object.
During configuration of the axis, the logical addresses were set to a data block or bit memory address area, for example. The adaptation is only possible when the encoder has been directly interconnected to an I/O area. Check whether your device supports acyclic data communication according to PROFIdrive.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

163

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.7

Technology alarms 601-613 (S7-1500, S7-1500T)

Technology alarm 601
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text Leading axis is not assigned or defective.

Solution
Configure the possible leading value axes for the following axis under "Configuration > Leading value interconnections".
For a cross-PLC synchronous operation make sure that the option "Synchronous to the bus" is selected for the MC-SERVO OBs of all connected CPUs under "Properties > General > Cycle time".

Technology alarm 603
Alarm reaction: No reaction Restart: Not required
Alarm text Leading axis is not in position-controlled mode.

Solution
The following axis must be operated in positioncontrolled mode for synchronous operation functionality.

Technology alarm 608
Alarm reaction: Stop with maximum dynamic values Restart: Not required

Alarm text Error during synchronization.

Solution
Prevent a reversing leading value motion during the synchronization operation.

Technology alarm 611
Alarm reaction: Remove enable Restart: Not required

Alarm text
The cam specified in the MC_CamIn.Cam parameter has not been configured or is not available.

Solution Configure and interpolate the cam. Restart the job.

164

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 612
Alarm reaction: Remove enable Restart: Not required
Alarm text Specified cam has not been interpolated.
Technology alarm 613
Alarm reaction: Remove enable Restart: Not required
Alarm text Accuracy of leading value is limited.

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Solution Interpolate the cam used for camming with the Motion Control instruction "MC_InterpolateCam".
Remedy Decrease the configured delay time.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

165

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.8

Technology alarms 700-758 (S7-1500, S7-1500T)

Technology alarm 700
Alarm reaction: Remove enable Restart: Not required Alarm text Output cam limiting error. Cam position: OnPosition
Cam position: OffPosition

Remedy
The position for the "OnPosition" parameter could not be calculated. Invalid positions (e.g. "OnPosition" > "OffPosition") were calculated due to lead times. The output cam cannot be switched due to the axis dynamics and compensation times. The position for the "OffPosition" parameter could not be calculated. Invalid positions (e.g. "OffPosition" > "OnPosition") were calculated due to lead times. The output cam cannot be switched due to the axis dynamics and compensation times.

Technology alarm 701
Alarm reaction: Remove enable Restart: Not required
Alarm text I/O output error.

Remedy
The digital output for the output cam or cam track technology object cannot be addressed. Download the device configuration again.

Technology alarm 702
Alarm reaction: Remove enable Restart: Not required
Alarm text Position value invalid.

Remedy
· A Motion Control job "MC_Reset" is being executed on the axis. Wait until the technology object restart is complete.
· The encoder values are invalid due to an encoder error. Check the encoder and adjust the configuration if necessary.

166

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 703
Alarm reaction: Remove enable Restart: Not required
Alarm text Output cam data faulty.
Output cam: Output cam number

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Remedy
Check the configuration of the relevant output cam in the cam track and adjust the values if necessary. Examples of a correct configuration: · "<TO>.Parameter.Cam[1..32].OnPosition" <
"<TO>.Parameter.Cam[1..32].OffPosition" · "<TO>.Parameter.Cam[1..32].Duration" >
"<TO>.Parameter.OffCompensation" "<TO>.Parameter.OnCompensation"

Technology alarm 704
Alarm reaction: Remove enable Restart: Not required
Alarm text Output cam data faulty.

Remedy
Check the configuration of the output cam and adjust the values if necessary. Examples of a correct configuration:
· "MC_OutputCam.OnPosition" < "MC_OutputCam.OffPosition"
· "MC_OutputCam.Duration" > "<TO>.Parameter.OffCompensation" "<TO>.Parameter.OnCompensation"

Technology alarm 750
Alarm reaction: Remove enable Restart: Not required
Alarm text Measuring job not possible during homing of assigned axis.

Remedy
Do not use the motion instructions "MC_Home" and "MC_MeasuringInput" simultaneously.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

167

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

Technology alarm 752
Alarm reaction: No reaction Restart: Not required
Alarm text Validity range of measuring job not recognized.

Remedy
The measuring range specified in Motion Control instruction "MC_MeasuringInput" was not recognized. Adjust the measuring range.

Technology alarm 753
Alarm reaction: Remove enable Restart: Not required
Alarm text Only one measuring input can access an encoder at a time.

Remedy
Use only one Motion Control instruction "MC_MeasurinInput" for an encoder.

Technology alarm 754
Alarm reaction: Remove enable Restart: Not required

Alarm text Measuring input configuration in external device is not correct.

Remedy
Check the configuration of the measuring inputs on the external device.

168

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Technology alarm 755
Alarm reaction: Remove enable Restart: Not required Alarm text Measuring job not possible. Device has reported an error.
Cyclic measuring is not possible with telegram 39x.
Technology alarm 758
Alarm reaction: None Restart: Not required Alarm text A measuring edge was not evaluated.

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)
Remedy The measurement was aborted with error. Check the measuring input functionality in the utilized device · Use the Motion Control instruction
"MC_MeasuringInput" for starting a one-time measurement. · Cyclic measuring is only possible when measuring using TM Timer DIDQ. Change the configuration of the measuring input type to "TM Timer DIDQ".
Remedy An edge was already detected at the input of the measuring input even though the module was not yet ready. The measured value is provided at the next edge.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

169

Appendix (S7-1500, S7-1500T) A.1 Technology alarms (S7-1500, S7-1500T)

A.1.9

Technology alarms 900-902 (S7-1500, S7-1500T)

Technology alarm 900
Alarm reaction: Remove enable Restart: Required
Alarm text Invalid leading values

Solution
Check whether the set tolerance time at the parameter "<TO>.Parameter.ToleranceTimeExternalLeading ValueInvalid" was exceeded.
Check the connection of the interconnected components. Make sure that there is no communication interference.

Technology alarm 901
Alarm reaction: Remove enable Restart: Not required
Alarm text Data transmission error
Invalid version Invalid modulo start value
Invalid modulo length
Sign-of-life error Invalid position Invalid velocity Invalid acceleration

Solution
Use a leading value telegram with a valid version. Scale the modulo start value of the external leading value at the parameter "<TO>.StatusExternalLeadingValue.ModuloStartValue". Scale the modulo length of the external leading value at the parameter "<TO>.StatusExternalLeadingValue.ModuloLength". Check the communication. Check the leading value of the leading axis on the other CPU.

Technology alarm 902
Alarm reaction: Remove enable Restart: Not required
Alarm text Accuracy of leading value is limited.

Remedy Decrease the configured delay time.

170

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

A.2

Error ID for Motion Control instructions (S7-1500, S7-1500T)
Errors in Motion Control instructions are signaled using the parameters "Error" and "ErrorID".
Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated for the Motion Control instruction:
 Illegal status of the technology object, which prevents the execution of the job.
 Illegal parameter assignment of the Motion Control instruction, which prevents the execution of the job.
 As a result of the alarm reaction for a technology object error.
The following tables list all "ErrorIDs" that can be indicated for Motion Control instructions. In addition to the cause of the error, solutions for eliminating the error are also listed:

16#0000 - 16#800F

ErrorID 16#0000 16#8001
16#8002
16#8003 16#8004 16#8005 16#8006 16#8007

Description

Remedy

No error

-

A technology alarm (technology object error) In the technology data block, an error message is output at

occurred while processing the Motion Con- the "ErrorDetail.Number" tag.

trol instruction.

You can find a list of the technology alarms and alarm reac-

tions in the "Technology alarms (Page 140)" appendix.

Illegal specification of the technology object · Check the specification of the technology object for the "Axis", "Master", "SlaveOutputCamCamTrackMeasuringInput" or "Cam" parameter.

· You can use a kinematics technology object only for the "AxesGroup" parameter.

· With "MC_MeasuringInputCyclic": Specify a valid measuring input type for parameter "MeasuringInputType".

Illegal velocity specification Illegal acceleration specification Illegal deceleration specification Illegal jerk specification Illegal direction specification

Specify a permissible value for the velocity for parameter "Velocity".
Specify a permissible value for the acceleration for parameter "Acceleration".
Specify a permissible value for the deceleration for parameter "Deceleration".
Specify a permissible value for the jerk for parameter "Jerk".
Specify a permissible value for the rotation direction for parameter "Direction" or "SyncDirection".

16#8008 16#8009

Invalid entry
Both the "JogForward" and "JogBackward" parameters are set to TRUE at the same time. The axis is braked at the last valid deceleration.
Invalid distance specification
Invalid position specification

Reset both the "JogForward" parameter and the "JogBackward" parameter.
Set a valid distance value at parameter "Distance". Set a valid position value at parameter "Position".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

171

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

ErrorID 16#800A 16#800B 16#800C
16#800D 16#800E 16#800F

Description Illegal operating mode Illegal stop mode specifications
Only one instance of the instruction per technology object is allowed.

Remedy
Specify a permissible operating mode for parameter "Mode".
Specify a permissible value for the stop mode at the "StopMode" parameter.
· The instruction is called at multiple points in the user program with identical value for parameter "Axis", "Master", "Slave" or "Cam".

Ensure that only one instruction with the value for parameter "Axis", "Master", "Slave" or "Cam" is called.
· The error message can occur through the DB editor functions "Load snapshot as actual values" or "Load start values as actual values".

Correct the error of the affected technology data block by switching the CPU to STOP, re-compiling the affected DB, and loading it into the device.

The job is not permitted in the current state. "Restart" is executed.
If the technology object is enabled, a "Restart" is not possible. The job cannot be executed because the technology object is locked.

You can find additional information in the section "Diagnostics (Page 133)". While a "Restart" is being performed, the technology object cannot perform any jobs. Wait until the "Restart" of the technology object is complete.
Before a "Restart", deactivate the technology object with "MC_Power.Enable"FALSE.
· Enable the technology object with "MC_Power.Enable" = TRUE. Restart the job.
· A "MC_Stop" job is active with "Execute" = TRUE. Reset the job with the parameter "Execute" = FALSE.

16#8010 - 16#802F

ErrorID 16#8010
16#8011
16#8012 16#8013 16#8014

Description Invalid homing mode for incremental encoder
Invalid homing mode for absolute encoder
The job cannot be executed because the axis control panel is active. The online connection between the CPU and the TIA Portal is down. No internal job memory available.

Remedy Absolute value adjustment is not possible with an incremental encoder ("Mode" = 6, 7). Start a homing process for an incremental encoder using parameter "Mode" = 0, 1, 2, 3, 5, 8, 10, 11, 12. Passive and active homing ("Mode" = 2, 3, 5, 8, 10) are not possible for an absolute value encoder. Start a homing process for an absolute encoder using parameter "Mode" = 0, 1, 6, 7, 11, 12. Return master control to your user program. Restart the job.
Check the online connection to the CPU.
The maximum possible number of Motion Control job has been reached. Reduce the number of jobs to be executed (parameter "Execute" = FALSE).

172

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

ErrorID 16#8015 16#8016
16#8017
16#8018
16#8019
16#8021 16#8022 16#8023 16#8024 16#8026 16#8027

Description

Remedy

Error acknowledgment with "MC_Reset" is Check the configuration of the technology object. not possible. Error in the configuration of the technology object.

The actual values are not valid.

To execute a "MC_Home" or positioning job, the actual values must be valid.

Check the status of the actual values. The "<TO>.StatusSensor[1..4].State" tag of the technology object must show the value 2 (valid).

Illegal value for gear ratio numerator

Specify a permissible value for the gear ratio numerator for parameter "RatioNumerator".

Permitted integer values: -2147483648 to 2147483647

(value 0 not permitted)

Illegal value for gear ratio denominator

Specify a permissible value for the gear ratio denominator for parameter "RatioDenominator".

Permitted integer values: 1 to 2147483647

Job cannot be executed. The specified following axis is the original leading value for the synchronous operation chain.

Recursive interconnections are not possible. A leading axis cannot be interconnected as a following axis to its own leading value. Specify a permissible following axis for parameter "Slave".

Illegal value for shift of the leading value range

Specify a permissible value for the shift of the leading value range for parameter "MasterOffset".

Illegal value for shift of the following value range

Specify a permissible value for the shift of the leading value range for parameter "SlaveOffset".

Illegal value for scaling of the leading value Specify a permissible value for the scaling of the leading value

range

range for parameter "MasterScaling".

Illegal value for scaling of the following value Specify a permissible value for the scaling of the following

range

value range for parameter "SlaveScaling".

Illegal value for leading value distance

Specify a permissible value for the leading value distance for parameter "MasterStartDistance".

Illegal value for use of cam

Specify a permissible value for cyclic/acyclic use of the cam for parameter "ApplicationMode".

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

173

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

16#8030 - 16#807F

ErrorID 16#8034 16#8035 16#8036 16#8040 16#8041 16#8042 16#8043
16#8044 16#8045 16#8046 16#8047 16#804A 16#804B 16#804C 16#804D
16#804E
16#804F 16#8050 16#8051 16#8055

Description Illegal value for synchronous position of the leading axis Illegal value for synchronous position of the following axis Illegal value for type of synchronization
Illegal value for start position of output cam
Illegal value for end position of distance output cam Illegal value for switch-on duration of timebased output cam Illegal value for force/torque limiting
The axis is not configured for torque reduction. The job cannot be executed because a job for traveling to fixed stop is active. The "MC_TorqueLimiting" job cannot be deactivated in the "InClamping" state. The motion results in a fixed stop. Illegal value for additive torque setpoint
Illegal value for torque high limit
Illegal value for torque low limit
The value of the high limit of the torque is less than or equal to the value of the low limit of the torque. The job cannot be executed because a "MC_TorqueLimiting" job is active. The job cannot be executed because a "MC_TorqueRange" job is active. The axis is not configured for additional torque values. Illegal encoder number
Illegal number of the reference encoder
Bit masking not permitted at "MC_SetAxisSTW"

Remedy Specify a permissible value for the synchronous position of the leading axis for parameter "MasterSyncPosition". Specify a permissible value for the synchronous position of the following axis for parameter "SlaveSyncPosition". Specify a permissible value for the type of synchronization for parameter "SyncProfileReference". Specify a permissible value for the start position of the output cam for parameter "OnPosition". Specify a permissible value for the end position of the distance output cam for parameter "OffPosition". Specify a permissible value for the switch-on duration of the time-based output cam for parameter "Duration". Specify a value within the permissible range at the "Limit" parameter. Permitted integer values: -2147483648 to 2147483648 Select drive telegram 102, 103, 105 or 106
Switchover to non-position-controlled mode is not possible during active travel to fixed stop. Retract the axis and deactivate "MC_TorqueLimiting".
Only motions away from the fixed stop are permitted. Specify a permissible value for the additive torque setpoint at the "Value" parameter. Specify a permissible value for the high limit of the torque at the "UpperLimit" parameter. Specify a permissible value for the low limit of the torque at the "LowerLimit" parameter. Adapt the values of the "UpperLimit" and "LowerLimit" parameters so that the high limit of the torque is greater than the value of the low limit of the torque. Stop the force/torque limit or fixed stop detection. Restart the "MC_TorqueRange" job. Exit the setting of the high and low torque limits. Restart the "MC_TorqueLimiting" job. Use supplemental telegram 750.
Specify a permissible number of the new encoder (1 to 4) for parameter "MC_SetSensor.Sensor". Specify a permissible number of the reference encoder for parameter "MC_SetSensor.ReferenceSensor". Non-controllable bits are selected in the "STW1 BitMask" and "STW2 BitMask" bit masks. Only control permissible bits.

174

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

ErrorID 16#805A 16#805B 16#805C 16#8062 16#8063
16#8064
16#8070 16#8071 16#8074
16#8075
16#8076

Description Illegal value of the parameter to be changed
Error in the configuration of the hardware limit switch. Illegal data type of the value to be written. Illegal approach value
A valid mapping to the definition range (leading values) does not exist for the specified following value. A valid mapping to the range of the function (following values) does not exist for the specified leading value. Illegal value for leading value shift
The job cannot be executed because the axis is not in position-controlled mode. The job cannot be executed because a "MC_Home" job is active.
The job cannot be executed because no synchronization operation is active on the axis. The job cannot be executed because synchronization is being simulated at the specified axis.

Remedy At parameter "ParameterNumber", enter a permissible value for the index of the parameter to be changed. Specify a valid tag at the input of the positive/negative hardware limit switch. Specify a valid data type at the parameter "Value". Specify a permissible approach value for the searched for leading value for parameter "ApproachLeadingValue". Specify a permissible following value for parameter "FollowingValue".
Specify a permissible leading value for parameter "LeadingValue".
Specify a permissible value for the leading value shift for parameter "PhaseShift". Activate position-controlled mode.
During active or passive homing, an encoder switchover is rejected. Wait until the "MC_Home" job is complete. Restart the job. Switch on the synchronous operation function. Restart the job.
End the simulation of the synchronous operation. Restart the job.

16#80A0 - 16#8FFF

ErrorID 16#80A1 16#80A2
16#80A3 16#80A5

Description The order cannot be executed because a synchronous operation job is active.
· For one-time measuring with measuring range, the measuring range was run without a measuring edge being detected.
· The measuring range is invalid with the configured modulo axis settings.
The measuring input job via PROFIdrive telegram could not be started because a homing job is active.
Illegal value for start position of measuring range

Remedy A "MC_Home" job on a following axis is not executed when a "MC_CamIn" or "MC_GearInPos" job is active. Exit the synchronous operation job. Restart the job. Check and adjust the measuring input and adjust the measuring range positions, if necessary.
Simultaneous execution of a homing job and a measuring input job via PROFIdrive telegram is not possible. Wait until the homing job has ended. Restart the measuring job via PROFIdrive telegram. Specify a permissible value for the start position of the measuring range for parameter "MC_MeasuringInput.StartPosition" or MC_MeasuringInputCyclic.StartPosition.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

175

Appendix (S7-1500, S7-1500T) A.2 Error ID for Motion Control instructions (S7-1500, S7-1500T)

ErrorID 16#80A6 16#80A7
16#80A8
16#80A9
16#80AA 16#80AB 16#80AC
16#80AD 16#80AE 16#8FFF

Description Illegal value for end position of measuring range
A measurement is performed when measuring with the measuring range, but the calculated position is outside the specified measuring range. The measured value is discarded. The job cannot be executed because camming is active on the axis.
The job cannot be executed because the following axis is synchronized ("MC_GearInPos.StartSync" = TRUE) or a kinematics motion is active.
The cam contains no points or segments and cannot be interpolated. The cam is currently being used and cannot be interpolated. The cam contains incorrect points or segments and cannot be interpolated. (for example, the cam contains only one point.) The specified synchronous position is outside the definition range of the cam. The job cannot be executed because a kinematic motion is active. Unspecified error

Remedy Specify a permissible value for the end position of the measuring range for parameter "MC_MeasuringInput.EndPosition" or MC_MeasuringInputCyclic.EndPosition. Check and adjust the measuring input and adjust the measuring range positions, if necessary.
The Motion Control instructions "MC_PhasingRelative" and "MC_PhasingAbsolute" can only be applied to active gearing with "MC_GearIn" or "MC_GearInPos" ("MC_GearIn.InGear" = TRUE or "MC_GearInPos.InSync" = TRUE). The Motion Control instructions "MC_PhasingRelative" and "MC_PhasingAbsolute" can only be applied to active gearing with "MC_GearIn" or "MC_GearInPos" ("MC_GearIn.InGear" = TRUE or "MC_GearInPos.InSync" = TRUE). Fill the cam with points/segments. Restart the job.
End the current use of the cam. Restart the job.
Fill the cam with permissible points/segments. Restart the job.
Specify a permissible synchronous position for parameter "MasterSyncPosition". Restart the job. End the current kinematic motion. Restart the job.
Contact your local Siemens representative or support center. You will find your contact information for digital industries at: https://www.siemens.com/automation/partner (https://www.siemens.com/automation/partner)

See also

Errors in Motion Control instructions (Page 139)

176

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Appendix (S7-1500, S7-1500T) A.3 SINAMICS drives (S7-1500, S7-1500T)

A.3

SINAMICS drives (S7-1500, S7-1500T)

A.3.1

Compatibility list (S7-1500, S7-1500T)
An overview of drives that can be interconnected with an S7-1500 CPU is available at:
https://support.industry.siemens.com/cs/document/109750431 (https://support.industry.siemens.com/cs/ww/en/view/109750431)

A.3.2

Homing SINAMICS drives with external zero marks (S7-1500, S7-1500T)
For SINAMICS drives with external zero mark, synchronization during homing must always occur on the left side of the external zero mark's signal. That is to say, with a positive direction of travel synchronization is done on a positive edge, and with a negative direction of travel synchronization is done on a negative edge.
By inverting the signal, synchronization can also be done on the right sight of the signal of the external zero mark. The inversion can be configured in the drive using SINAMICS parameter P490.
Homing to an encoder zero mark or an external zero mark is configured in SINAMICS parameter P495.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

177

Appendix (S7-1500, S7-1500T) A.4 Data types (S7-1500, S7-1500T)

A.4

Data types (S7-1500, S7-1500T)

Data types for the use of technology
The table below contains the data types for reference to the respective technology object:

Data type TO_Object1) TO_SpeedAxis1) TO_PositioningAxis1) TO_SynchronousAxis1) TO_Encoder1) TO_OutputCam TO_CamTrack TO_MeasuringInput TO_Cam TO_Kinematics TO_LeadingAxisProxy1) PD_TELx DX_TEL_SyncOp PD_STW1_611Umode PD_STW2_611Umode PD_ZSW1_611Umode PD_ZSW2_611Umode
1) Cascading technology objects

Description Base Speed axis Positioning axis Synchronous axis External encoder Output cam Cam track Measuring input Cam (S7-1500T) Kinematics (S7-1500T) Leading axis proxy (S7-1500T) Telegram no. "x" Leading value telegram (S7-1500T) Control word 1 (STW1) Control word 2 (STW2) Status word 1 (ZSW1) Status word 2 (ZSW2)

Cascading technology objects
The structure of the technology objects is structured as follows:  "TO_Object" is the basis of all technology objects and a component of the "TO_Axis".  "TO_Axis" is part of "TO_SpeedAxis", "TO_Encoder" and "TO_LeadingAxisProxy".  "TO_SpeedAxis" is part of "TO_PositioningAxis".  "TO_PositioningAxis" is part of "TO_SynchronousAxis".

178

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Glossary (S7-1500, S7-1500T)

Absolute synchronous operation
Function corresponds to the Motion Control instruction MC_GearInPos or MC_CamIn.

Absolute value encoder
Position encoder which outputs the position in the form of a digital numerical value. This numerical value is unique within the entire measuring range of the absolute value encoder.

Axis control panel
The axis control panel allows you to move the axis in manual mode, optimize the axis settings, and test the operation of the axis in your system.

Axis type

The axis type differs depending on the unit of measurement according to which the axis is positioned.
Depending on the execution of the mechanics, an axis is implemented as a linear axis or rotary axis:
 For linear axes, the position of the axis is specified as a linear measure, e.g. millimeters (mm).
 For rotary axes, the position of the axis is specified as an angular measure, e.g. degrees (°).

Communication processor (CP)
Module for expanded communications tasks covering special applications, for example in the area of security.

Communications module (CM)
Module for communications tasks which is used as an interface expansion of the CPU (for example PROFIBUS) or provides additional communications options (e.g. PtP) in an automation system.

Drive

The combination of motor (electric or hydraulic), actuator (converter, valve), control system, measuring system and supply (infeed, accumulator).

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

179

Glossary (S7-1500, S7-1500T)

Dynamic Servo Control (DSC)
In drives that support DSC, you can optionally use the position controller in the drive. The position controller in the drive is usually implemented with a rapid speed-control cycle. This improves the control performance for digitally coupled drives.

Following error

The following error is the difference between the position setpoint and the actual position value. The transmission times of the setpoint to the drive, and of the actual position value to the controller, are taken into account in the calculation of the following error.

GSD file

As a Generic Station Description, this file contains all properties of a PROFINET or PROFIBUS device that are necessary for its configuration.

Hardware limit switch
Mechanical limit position switch that limits the maximum permissible traversing range of the axis.

Homing

With homing, you create the relationship between the position in the technology object and the mechanical position of the axis. The position value in the technology object is assigned to a homing mark at the same time. This homing mark represents a known mechanical position.

Incremental encoder
Position encoder which outputs the position change incrementally in the form of a digital numerical value.

Kv factor

Gain factor of the position controller

Master value

Input value for synchronous operation

Motion Control instruction
Use the Motion Control instructions to start Motion Control jobs at technology objects in your user program and thus execute the desired functionality at the technology objects. You track the status of running jobs with the output parameters of the Motion Control instructions.

180

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Glossary (S7-1500, S7-1500T)

Override

Percentage correction of the velocity/speed

Processing cycle clock
The processing of a technology object in the servo cycle clock.

PROFIdrive

PROFIdrive is a profile specified by the PNO (PROFIBUS user organization) for PROFIBUS DP and PROFINET IO for speed- and position-controlled drives.

PROFIdrive frame
Frame for communication according to PROFIdrive.

Relative gearing
Function corresponds to the Motion Control instruction MC_GearIn.

Restart

The technology object is reinitialized with the current configuration parameters.

Safe Stop 1 (SS1)
The Safe Stop 1 (SS1) safety function brings a drive to standstill quickly and safely via an internal rapid stop ramp. Safe Torque Off (STO) is activated after standstill. STO ensures that no more torque generating energy acts on a drive. This prevents unintended startup of the drive.
You can use the SS1 safety function when a fast stop of the drive with a subsequent transition to STO is required. SS1 is used, for example, to quickly stop high inertia loads or to brake drives quickly and safely at high speeds

Safe Stop 2 (SS2)
The Safe Stop 2 (SS2) safety function brings a drive to standstill quickly and safely via an internal rapid stop ramp. After standstill is reached, the standstill position is monitored on the drive side. The drive can deliver full torque to maintain the standstill.
SS2, for example, is used for processing machines and machine tools.

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

181

Glossary (S7-1500, S7-1500T)

Safe Torque Off (STO)
The Safe Torque Off (STO) safety function is the most commonly used and most basic driveinternal safety function. STO ensures that no more torque generating energy acts on a drive. This prevents unintended startup of the drive. The pulses of the drive are eliminated. The drive is reliably torque-free. This state is monitored internally in the drive.
You can use STO when the drive comes to a standstill in a sufficiently short time on its own due to the load torque or due to friction. Other areas of use are where "coasting" of the drive has no relevance for safety.

Software limit switch
A programmable position which limits the traversing range of an axis.

Synchronization
The phase of the following axis to reach synchronous movement.

Synchronous operation
Defined synchronous movement after synchronization of a following axis to a leading axis.

Technology alarm
If an error occurs at a technology object (e.g. approaching a hardware limit switch), a technology alarm is triggered and indicated.
The impact of a technology alarm on the technology object is specified by the alarm reaction (e.g. remove enable). The alarm reaction is specified by the system.

Technology data block
The technology data block represents the technology object and contains all configuration data, setpoint and actual values, and status information of the technology object.

Technology module (TM)
Module for technological tasks, e.g. counting, measuring and positioning.

Zero mark

Position reference for the movement of rotary and linear incremental encoders. The zero mark of an incremental encoder is used as a homing mark, for example.

182

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Index

A
Actuator, 16
C
Compatibility list, 177
D
Data type DB_Any, 110
DB_Any, 110 Diagnostics
S7-1500 Motion Control, 134, 135, 139 Drive
Compatibility list, 177 Drives compatibility list, 51
E
Error ID, 139, 171 ErrorID
Basics, 134, 139 List of ErrorIDs, 171 Errors in Motion Control instructions, 134, 139, 171 External encoder Adding, 60 Deleting, 62 Moving, 61
I
Interpolator OB, 23, 26
M
MC-Interpolator OB, 23, 26 MC-Servo OB, 23, 26
P
Positioning axis Adding, 60

Deleting, 62 Moving, 61 Process image partition "OB Servo PIP", 26
R
Reduction ratio, 23 Reinitialization of technology objects, 127 Restart of technology objects, 127
S
S7-1500 Motion Control Commissioning, 129, 130 Configuration, 60, 61, 62, 62, 63 Configuration limits, 20 Diagnostics, 134, 135, 139 Downloading to CPU, 128 Drive and encoder connection, 16, 51, 52, 55, 57 Guidelines for operation, 17 How it works, 12 Introduction, 11, 12 Motion Control instruction, 14, 104, 108 Motion Control Instruction, 112 Process response, 23, 26, 26, 29 Programming, 99, 104, 112, 127 Technology alarms, 134, 135, 140 Technology data block, 14, 99, 99, 101, 103 Technology object, 13, 60, 61, 62, 127 Unit of measure, 21 Versions, 32, 48
S7-1500 Motion Control commissioning, 129, 130 S7-1500 Motion Control drive connection, 16, 51, 52, 55, 57 S7-1500 Motion Control encoder connection, 16, 51, 52, 55, 57 S7-1500 Motion Control instruction, 14
Ending a Motion Control job, 126 Errors in Motion Control instructions, 134, 139, 171 Inserting, 108 Parameters, 104 Starting Motion Control job, 112 Tracking Motion Control job, 114

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

183

Index
S7-1500 Motion Control operating mode, 29 Sensor, 16 Servo OB, 23, 26 SINAMICS V90 PN, 51 Speed axis
Adding, 60 Deleting, 62 Moving, 61 Startdrive, 51 Synchronous axis Adding, 60 Deleting, 62 Moving, 61
T
Technology alarms Basics, 134, 135 List of the technology alarms, 140
Technology data block Analyzing, 99 Basics, 14, 99 Change restart-relevant data, 103 Evaluating StatusWord, ErrorWord and WarningWord, 101
Technology object Data types, 110 External encoder, 60, 61, 62 Positioning axis, 60, 61, 62 Speed axis, 60, 61, 62 Synchronous axis, 60, 61, 62
Technology objects, 13
U
Unit of measure, 21

184

S7-1500/S7-1500T Motion Control overview V5.0 in TIA Portal V16 Diagnostics Manual, 12/2019, A5E03879256-AF

Edition

12/2019

Function manual
SIMATIC
S7-1500
S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16
support.industry.siemens.com

SIMATIC
S7-1500 S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16
Function Manual

Preface (S7-1500, S71500T)

Function manuals

Documentation Guide (S7-

1

1500, S7-1500T)

Introduction (S7-1500, S71500T)

2

Basics (S7-1500, S7-1500T)

3

Configuring (S7-1500, S71500T)

4

Commissioning (S7-1500, S7-1500T)

5

Diagnostics (S7-1500, S71500T)

6

Instructions (S7-1500, S71500T)

7

Appendix (S7-1500, S71500T)

A

TIA Portal V16
12/2019
A5E37577655-AC

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E37577655-AC  10/2019 Subject to change

Copyright © Siemens AG 2016 - 2019. All rights reserved

Preface (S7-1500, S7-1500T)

Purpose of the documentation
This documentation provides important information that you need to configure and commission the integrated Motion Control functionality of the S7-1500 Automation systems.

Required basic knowledge
In order to understand this documentation, the following knowledge is required:  General knowledge in the field of automation  General knowledge in the field of drive engineering and motion control

Validity of the documentation
This documentation is valid for the S7-1500 product range.

Conventions

 For the path settings in the project navigation it is presumed that the "Technology objects" object is opened in the CPU subtree. The "Technology object" placeholder represents the name of the technology object.
Example: "Technology object > Configuration > Basic parameters".
 The <TO> placeholder represents the name set in tags for the respective technology object.
Example: <TO>.Actor.Type
 This documentation contains pictures of the devices described. The pictures may differ in minor details from the devices supplied.
You should also observe the notes that are marked as follows:
Note
A note contains important information about the product described in the documentation, about the handling of the product, and about sections in this documentation demanding your particular attention.

Further support
 The range of technical documentation for the individual SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the online ordering system is available on the Internet (http://mall.industry.siemens.com).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

3

Preface (S7-1500, S7-1500T)
Security information (S7-1500, S7-1500T)
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

4

Function Manual, 12/2019, A5E37577655-AC

Table of contents

Preface (S7-1500, S7-1500T) ................................................................................................................. 3

1 Function manuals Documentation Guide (S7-1500, S7-1500T) ............................................................. 12

2 Introduction (S7-1500, S7-1500T) ......................................................................................................... 14

2.1

Interplay of the various documents (S7-1500, S7-1500T)......................................................14

2.2

Functions (S7-1500, S7-1500T) .............................................................................................15

3 Basics (S7-1500, S7-1500T) ................................................................................................................. 18

3.1

Speed-controlled axis technology object (S7-1500, S7-1500T) .............................................18

3.2

Positioning axis technology object (S7-1500, S7-1500T).......................................................19

3.3

External encoder technology object (S7-1500, S7-1500T) ....................................................20

3.4

Axis types (S7-1500, S7-1500T).............................................................................................22

3.5

Modulo setting (S7-1500, S7-1500T)......................................................................................23

3.6

Long-term accuracy (S7-1500, S7-1500T) .............................................................................25

3.7 3.7.1 3.7.2 3.7.2.1 3.7.2.2 3.7.2.3 3.7.3
3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9

Drive and encoder connection (S7-1500, S7-1500T) .............................................................26 PROFIdrive telegrams (S7-1500, S7-1500T) .........................................................................27 Actual values (S7-1500, S7-1500T)........................................................................................31 Incremental actual value (S7-1500, S7-1500T) ......................................................................32 Absolute actual value (S7-1500, S7-1500T)...........................................................................32 Tags: Actual values (S7-1500, S7-1500T) .............................................................................33 Automatic transfer of drive and encoder parameters in the device (S7-1500, S71500T) ..................................................................................................................................... 34 Using multiple encoders (S7-1500T) ......................................................................................36 Safety functions in the drive (S7-1500, S7-1500T).................................................................38 Axis in simulation (S7-1500, S7-1500T) .................................................................................43 Virtual axis (S7-1500, S7-1500T) ...........................................................................................44 Data connection drive/encoder via data block (S7-1500, S7-1500T) .....................................44 Tags: Drive and encoder connection (S7-1500, S7-1500T) ...................................................45

3.8 3.8.1

Mechanics (S7-1500, S7-1500T)............................................................................................47 Tags: Mechanics (S7-1500, S7-1500T)..................................................................................48

3.9 3.9.1 3.9.2 3.9.3

Traversing range limitation (S7-1500, S7-1500T) ..................................................................49 Hardware limit switches (S7-1500, S7-1500T) .......................................................................49 Software limit switch (S7-1500, S7-1500T) ............................................................................51 Tags: Traversing range limitation (S7-1500, S7-1500T) ........................................................52

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

5

Table of contents

3.10 3.10.1 3.10.2 3.10.3 3.10.4 3.10.4.1 3.10.4.2 3.10.4.3 3.10.4.4 3.10.5

Motion control and limits for dynamics (S7-1500, S7-1500T)................................................ 54 Velocity profile (S7-1500, S7-1500T)..................................................................................... 54 Emergency stop deceleration (S7-1500, S7-1500T) ............................................................. 56 Motion specification via "MotionIn" (S7-1500T) ..................................................................... 57 Torque limits (S7-1500, S7-1500T)........................................................................................ 59 Force/torque limiting (S7-1500, S7-1500T) ........................................................................... 59 Fixed stop detection (S7-1500, S7-1500T) ............................................................................ 61 Additive setpoint torque (S7-1500, S7-1500T) ...................................................................... 62 Permissible torque range (S7-1500, S7-1500T) .................................................................... 63 Tags: Motion control and limits for dynamics (S7-1500, S7-1500T)...................................... 64

3.11 3.11.1 3.11.2 3.11.3 3.11.4 3.11.5 3.11.6 3.11.7 3.11.8 3.11.9 3.11.10 3.11.11 3.11.12 3.11.13

Homing (S7-1500, S7-1500T)................................................................................................ 66 Terms (S7-1500, S7-1500T) .................................................................................................. 67 Homing mode (S7-1500, S7-1500T)...................................................................................... 69 Active homing with homing output cam and zero mark (S7-1500, S7-1500T) ...................... 70 Active homing with zero mark (S7-1500, S7-1500T) ............................................................. 73 Active homing with digital input (S7-1500, S7-1500T)........................................................... 75 Direction reversal at the hardware limit switch (reversing cam) (S7-1500, S7-1500T) ......... 77 Passive homing with homing output cam and zero mark (S7-1500, S7-1500T) ................... 77 Passive homing with zero mark (S7-1500, S7-1500T) .......................................................... 79 Passive homing with digital input (S7-1500, S7-1500T) ........................................................ 81 Direct homing (S7-1500, S7-1500T) ...................................................................................... 83 Absolute value adjustment (S7-1500, S7-1500T).................................................................. 85 Resetting the "Homed" status (S7-1500, S7-1500T) ............................................................. 86 Tags: Homing (S7-1500, S7-1500T)...................................................................................... 87

3.12 3.12.1 3.12.2 3.12.3 3.12.4

Position monitoring functions (S7-1500, S7-1500T) .............................................................. 89 Positioning monitoring (S7-1500, S7-1500T)......................................................................... 89 Following error monitoring (S7-1500, S7-1500T) .................................................................. 90 Standstill signal (S7-1500, S7-1500T) ................................................................................... 91 Tags: Position monitoring functions (S7-1500, S7-1500T) .................................................... 91

3.13 3.13.1 3.13.2 3.13.3

Closed-loop control (S7-1500, S7-1500T) ............................................................................. 93 Control structure (S7-1500, S7-1500T) ................................................................................. 94 Non position-controlled operation (S7-1500, S7-1500T) ....................................................... 95 Tags: Closed-loop control (S7-1500, S7-1500T) ................................................................... 96

4 Configuring (S7-1500, S7-1500T).......................................................................................................... 97

4.1 4.1.1 4.1.2 4.1.2.1 4.1.2.2 4.1.3 4.1.3.1 4.1.3.2 4.1.3.3 4.1.3.4

Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T) ...................... 97 Configuration - Basic Parameters (S7-1500, S7-1500T) ....................................................... 97 Hardware interface (S7-1500, S7-1500T).............................................................................. 98 Configuration - Drive (S7-1500, S7-1500T) ........................................................................... 98 Configuration - Data exchange with the drive (S7-1500, S7-1500T) ................................... 100 Extended Parameters (S7-1500, S7-1500T) ....................................................................... 102 Configuration - Mechanics (S7-1500, S7-1500T) ................................................................ 102 Configuration - Dynamic Defaults (S7-1500, S7-1500T) ..................................................... 102 Configuration - Emergency stop (S7-1500, S7-1500T) ....................................................... 104 Limits (S7-1500, S7-1500T)................................................................................................. 105

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

6

Function Manual, 12/2019, A5E37577655-AC

Table of contents

4.2 4.2.1 4.2.2 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4 4.2.3 4.2.4 4.2.4.1 4.2.4.2 4.2.4.3 4.2.4.4 4.2.4.5 4.2.4.6 4.2.4.7 4.2.4.8

Configuring the Positioning Axis technology object (S7-1500, S7-1500T)...........................108 Configuration - Basic Parameters (S7-1500, S7-1500T)......................................................108 Hardware interface (S7-1500, S7-1500T).............................................................................110 Configuration - Drive (S7-1500, S7-1500T) ..........................................................................110 Configuration - Encoder (S7-1500, S7-1500T) .....................................................................112 Configuration - Data exchange with the drive (S7-1500, S7-1500T)....................................114 Configuration - Data exchange with encoder (S7-1500, S7-1500T) ....................................117 Configuration - Leading value settings (S7-1500, S7-1500T) ..............................................120 Extended Parameters (S7-1500, S7-1500T) ........................................................................121 Configuration - Mechanics (S7-1500, S7-1500T) .................................................................121 Configuration - Dynamic Defaults (S7-1500, S7-1500T) ......................................................125 Configuration - Emergency stop (S7-1500, S7-1500T) ........................................................126 Limits (S7-1500, S7-1500T)..................................................................................................128 Homing (S7-1500, S7-1500T)...............................................................................................134 Position monitoring functions (S7-1500, S7-1500T) .............................................................143 Configuration - Control loop (S7-1500, S7-1500T) ...............................................................145 Configuration - Actual value extrapolation (S7-1500T).........................................................146

4.3 4.3.1 4.3.2 4.3.2.1 4.3.2.2 4.3.3 4.3.4 4.3.4.1 4.3.4.2 4.3.4.3

Configuring the technology object external encoder (S7-1500, S7-1500T) .........................148 Configuration - Basic Parameters (S7-1500, S7-1500T)......................................................148 Hardware interface (S7-1500, S7-1500T).............................................................................149 Configuration - Encoder (S7-1500, S7-1500T) .....................................................................149 Configuration - Data exchange (S7-1500, S7-1500T) ..........................................................150 Configuration - Leading value settings (S7-1500, S7-1500T) ..............................................156 Extended Parameters (S7-1500, S7-1500T) ........................................................................156 Configuration - Mechanics (S7-1500, S7-1500T) .................................................................156 Homing (S7-1500, S7-1500T)...............................................................................................158 Configuration - Actual value extrapolation (S7-1500T).........................................................162

5 Commissioning (S7-1500, S7-1500T).................................................................................................. 164

5.1 5.1.1 5.1.2

Axis control panel (S7-1500, S7-1500T)...............................................................................164 Function and structure of the axis control panel (S7-1500, S7-1500T)................................164 Using the axis control panel (S7-1500, S7-1500T)...............................................................168

5.2 5.2.1 5.2.2

Optimization (S7-1500, S7-1500T) .......................................................................................169 Function and structure of the optimization (S7-1500, S7-1500T).........................................169 Optimize position controller (S7-1500, S7-1500T) ...............................................................172

6 Diagnostics (S7-1500, S7-1500T) ....................................................................................................... 176

6.1 6.1.1 6.1.2 6.1.3

Speed-controlled axis technology object (S7-1500, S7-1500T) ...........................................177 Status and error bits (S7-1500, S7-1500T)...........................................................................177 Motion status (S7-1500, S7-1500T)......................................................................................180 PROFIdrive telegram (S7-1500, S7-1500T) .........................................................................181

6.2 6.2.1 6.2.2 6.2.3

Positioning axis technology object (S7-1500, S7-1500T).....................................................182 Status and error bits (S7-1500, S7-1500T)...........................................................................182 Motion status (S7-1500, S7-1500T)......................................................................................186 PROFIdrive telegram (S7-1500, S7-1500T) .........................................................................187

6.3 6.3.1 6.3.2 6.3.3

Technology object external encoder (S7-1500, S7-1500T)..................................................188 Status and error bits (S7-1500, S7-1500T)...........................................................................188 Motion status (S7-1500, S7-1500T)......................................................................................190 PROFIdrive telegram (S7-1500, S7-1500T) .........................................................................190

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

7

Table of contents

7 Instructions (S7-1500, S7-1500T).........................................................................................................191

7.1 7.1.1 7.1.2

MC_Power V5 (S7-1500, S7-1500T) ................................................................................... 191 MC_Power: Enable, disable technology object V5 (S7-1500, S7-1500T) ........................... 191 MC_Power: Function chart V5 (S7-1500, S7-1500T) .......................................................... 196

7.2 7.2.1

MC_Reset V5 (S7-1500, S7-1500T) .................................................................................... 197 MC_Reset: Acknowledge alarms, restart technology object V5 (S7-1500, S7-1500T) ....... 197

7.3 7.3.1

MC_Home V5 (S7-1500, S7-1500T).................................................................................... 200 MC_Home: Home technology object, set home position V5 (S7-1500, S7-1500T) ............ 200

7.4 7.4.1 7.4.2

MC_Halt V5 (S7-1500, S7-1500T) ....................................................................................... 206 MC_Halt: Pause axis V5 (S7-1500, S7-1500T) ................................................................... 206 MC_Halt: Function chart V5 (S7-1500, S7-1500T) .............................................................. 209

7.5 7.5.1 7.5.2

MC_MoveAbsolute V5 (S7-1500, S7-1500T) ...................................................................... 211 MC_MoveAbsolute: Position axis absolutely V5 (S7-1500, S7-1500T)............................... 211 MC_MoveAbsolute: Function chart V5 (S7-1500, S7-1500T) ............................................. 214

7.6 7.6.1 7.6.2

MC_MoveRelative V5 (S7-1500, S7-1500T) ....................................................................... 216 MC_MoveRelative: Position axis relatively V5 (S7-1500, S7-1500T) .................................. 216 MC_MoveRelative: Function chart V5 (S7-1500, S7-1500T) .............................................. 219

7.7 7.7.1 7.7.2

MC_MoveVelocity V5 (S7-1500, S7-1500T) ........................................................................ 221 MC_MoveVelocity: Move axis with velocity/speed setpoint V5 (S7-1500, S7-1500T) ........ 221 MC_MoveVelocity: Function chart V5 (S7-1500, S7-1500T) ............................................... 225

7.8 7.8.1 7.8.2

MC_MoveJog V5 (S7-1500, S7-1500T)............................................................................... 227 MC_MoveJog: Move axis in jog mode V5 (S7-1500, S7-1500T)......................................... 227 MC_MoveJog: Function chart V5 (S7-1500, S7-1500T)...................................................... 231

7.9 7.9.1 7.9.2

MC_MoveSuperimposed V5 (S7-1500, S7-1500T) ............................................................. 233 MC_MoveSuperimposed: Position axes overlapping V5 (S7-1500, S7-1500T) .................. 233 MC_MoveSuperimposed: Function chart V5 (S7-1500, S7-1500T) .................................... 236

7.10 7.10.1

MC_SetSensor V5 (S7-1500T) ............................................................................................ 238 MC_SetSensor: Switch alternative encoder to operative encoder V5 (S7-1500T).............. 238

7.11 7.11.1 7.11.2

MC_Stop V5 (S7-1500, S7-1500T) ...................................................................................... 241 MC_Stop: Stop axis and prevent new motion jobs V5 (S7-1500, S7-1500T)...................... 241 MC_Stop: Function chart V5 (S7-1500, S7-1500T) ............................................................. 245

7.12 7.12.1

MC_SetAxisSTW V5 (S7-1500, S7-1500T) ......................................................................... 247 MC_SetAxisSTW: Control bits of control word 1 and 2 V5 (S7-1500, S7-1500T) ............... 247

7.13 7.13.1

MC_WriteParameter V5 (S7-1500, S7-1500T) .................................................................... 249 MC_WriteParameter: Write parameter V5 (S7-1500, S7-1500T) ........................................ 249

7.14 7.14.1 7.14.1.1 7.14.1.2 7.14.2 7.14.2.1 7.14.2.2

MotionIn (S7-1500T) ............................................................................................................ 251 MC_MotionInVelocity V5 (S7-1500T)................................................................................... 251 MC_MotionInVelocity: Specify motion setpoints V5 (S7-1500T) ......................................... 251 MC_MotionInVelocity: Function chart V5 (S7-1500T).......................................................... 253 MC_MotionInPosition V5 (S7-1500T) .................................................................................. 255 MC_MotionInPosition: Specify motion setpoints V5 (S7-1500T) ......................................... 255 MC_MotionInPosition: Function chart V5 (S7-1500T) ......................................................... 257

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

8

Function Manual, 12/2019, A5E37577655-AC

Table of contents

7.15 7.15.1 7.15.1.1 7.15.1.2 7.15.2 7.15.2.1 7.15.2.2 7.15.3 7.15.3.1
7.15.3.2

Torque data (S7-1500, S7-1500T)........................................................................................259 MC_TorqueAdditive V5 (S7-1500, S7-1500T) ......................................................................259 MC_TorqueAdditive: Specify additive torque V5 (S7-1500, S7-1500T) ...............................259 MC_TorqueAdditive: Function chart V5 (S7-1500, S7-1500T) .............................................261 MC_TorqueRange V5 (S7-1500, S7-1500T) ........................................................................262 MC_TorqueRange: Set high and low torque limits V5 (S7-1500, S7-1500T).......................262 MC_TorqueRange: Function chart V5 (S7-1500, S7-1500T) ...............................................264 MC_TorqueLimiting V5 (S7-1500, S7-1500T) ......................................................................265 MC_TorqueLimiting: Activate/deactivate force/torque limit / fixed stop detection V5 (S7-1500, S7-1500T) ............................................................................................................265 MC_TorqueLimiting: Function chart V5 (S7-1500, S7-1500T) .............................................268

7.16 7.16.1 7.16.2 7.16.3 7.16.4

Override response of Motion Control jobs V5 (S7-1500, S7-1500T)....................................271 Override response V5: Homing and motion jobs (S7-1500, S7-1500T) ...............................271 Override response V5: Synchronous operation jobs (S7-1500, S7-1500T) .........................272 Override response V5: Measuring input jobs (S7-1500, S7-1500T) ....................................273 Override response V5: Kinematics motion commands (S7-1500T) .....................................274

A Appendix (S7-1500, S7-1500T) ........................................................................................................... 276

A.1 A.1.1 A.1.2 A.1.3 A.1.4 A.1.5 A.1.6 A.1.7 A.1.8 A.1.9 A.1.10 A.1.11 A.1.12 A.1.13 A.1.14 A.1.15 A.1.16 A.1.17 A.1.18 A.1.19 A.1.20 A.1.21

Tags of the speed axis technology object (S7-1500, S7-1500T) .........................................276 Legend (S7-1500, S7-1500T) ...............................................................................................276 Actual values and setpoints (speed axis) (S7-1500, S7-1500T) ..........................................277 "Simulation" tag (speed axis) (S7-1500, S7-1500T) .............................................................277 "VirtualAxis" tag (speed axis) (S7-1500, S7-1500T).............................................................278 "Actor" tag (speed axis) (S7-1500, S7-1500T) .....................................................................278 "TorqueLimiting" tag (speed axis) (S7-1500, S7-1500T)......................................................280 "LoadGear" tag (speed axis) (S7-1500, S7-1500T)..............................................................280 "Units" tag (speed axis) (S7-1500, S7-1500T)......................................................................281 "DynamicLimits" tag (speed axis) (S7-1500, S7-1500T) ......................................................282 "DynamicDefaults" tag (speed axis) (S7-1500, S7-1500T) ..................................................282 "Override" tag (speed axis) (S7-1500, S7-1500T) ................................................................283 "StatusDrive" tag (speed axis) (S7-1500, S7-1500T) ...........................................................284 "StatusTorqueData" tag (speed axis) (S7-1500, S7-1500T) ................................................285 "StatusMotionIn" tag (speed axis) (S7-1500, S7-1500T)......................................................285 "StatusWord" tag (speed axis) (S7-1500, S7-1500T) ...........................................................285 "StatusWord2" tag (speed axis) (S7-1500, S7-1500T) .........................................................287 "ErrorWord" tag (speed axis) (S7-1500, S7-1500T) .............................................................288 "ErrorDetail" tag (speed axis) (S7-1500, S7-1500T) ............................................................289 "WarningWord" tag (speed axis) (S7-1500, S7-1500T)........................................................290 "ControlPanel" tag (speed axis) (S7-1500, S7-1500T) .........................................................291 "InternalToTrace[1..4]" tag (speed axis) (S7-1500, S7-1500T) ............................................292

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

9

Table of contents

A.2 A.2.1 A.2.2 A.2.3 A.2.4 A.2.5 A.2.6 A.2.7 A.2.8 A.2.9 A.2.10 A.2.11 A.2.12 A.2.13 A.2.14 A.2.15 A.2.16 A.2.17 A.2.18 A.2.19 A.2.20 A.2.21 A.2.22 A.2.23 A.2.24 A.2.25 A.2.26 A.2.27 A.2.28 A.2.29 A.2.30 A.2.31 A.2.32 A.2.33 A.2.34 A.2.35 A.2.36 A.2.37 A.2.38 A.2.39 A.2.40 A.2.41 A.2.42

Tags of the positioning axis technology object (S7-1500, S7-1500T) ................................. 293 Legend (S7-1500, S7-1500T) .............................................................................................. 293 Actual values and setpoints (positioning axis) (S7-1500, S7-1500T) .................................. 294 "Simulation" tag (positioning axis) (S7-1500, S7-1500T)..................................................... 294 "VirtualAxis" tag (positioning axis) (S7-1500, S7-1500T) .................................................... 295 "Actor" tag (positioning axis) (S7-1500, S7-1500T) ............................................................. 295 "TorqueLimiting" tag (positioning axis) (S7-1500, S7-1500T) ............................................. 297 "Clamping" tag (positioning axis) (S7-1500, S7-1500T) ...................................................... 297 Sensor[1..4] tags (positioning axis) (S7-1500, S7-1500T)................................................... 298 "CrossPlcSynchronousOperation" tag (positioning axis) (S7-1500, S7-1500T) .................. 300 "Extrapolation" tag (positioning axis) (S7-1500, S7-1500T) ................................................ 301 "LoadGear" tag (positioning axis) (S7-1500, S7-1500T) ..................................................... 302 "Properties" tag (positioning axis) (S7-1500, S7-1500T) ..................................................... 303 "Units" tag (positioning axis) (S7-1500, S7-1500T) ............................................................. 303 "Mechanics" tag (positioning axis) (S7-1500, S7-1500T) .................................................... 305 "Modulo" tag (positioning axis) (S7-1500, S7-1500T).......................................................... 305 "DynamicLimits" tag (positioning axis) (S7-1500, S7-1500T) .............................................. 306 "DynamicDefaults" tag (positioning axis) (S7-1500, S7-1500T) .......................................... 306 "PositionLimits_SW" tag (positioning axis) (S7-1500, S7-1500T) ....................................... 307 "PositionLimits_HW" tag (positioning axis) (S7-1500, S7-1500T) ....................................... 308 "Homing" tag (positioning axis) (S7-1500, S7-1500T) ......................................................... 309 "Override" tag (positioning axis) (S7-1500, S7-1500T)........................................................ 310 "PositionControl" tag (positioning axis) (S7-1500, S7-1500T) ............................................. 310 "DynamicAxisModel" tag (positioning axis) (S7-1500, S7-1500T)....................................... 311 "FollowingError" tag (positioning axis) (S7-1500, S7-1500T) .............................................. 312 "PositioningMonitoring" tag (positioning axis) (S7-1500, S7-1500T) ................................... 313 "StandstillSignal" tag (positioning axis) (S7-1500, S7-1500T)............................................. 313 "StatusPositioning" tag (positioning axis) (S7-1500, S7-1500T) ......................................... 314 "StatusDrive" tag (positioning axis) (S7-1500, S7-1500T)................................................... 315 "StatusServo" tag (positioning axis) (S7-1500, S7-1500T).................................................. 316 "StatusProvidedLeadingValue" tag (positioning axis) (S7-1500, S7-1500T)....................... 316 StatusSensor[1..4] Tags (positioning axis) (S7-1500, S7-1500T) ....................................... 317 "StatusExtrapolation" tag (positioning axis) (S7-1500, S7-1500T) ...................................... 318 "StatusKinematicsMotion" tag (positioning axis) (S7-1500, S7-1500T)............................... 319 "StatusTorqueData" tag (positioning axis) (S7-1500, S7-1500T) ........................................ 320 "StatusMotionIn" tag (positioning axis) (S7-1500, S7-1500T) ............................................. 320 "StatusWord" tag (positioning axis) (S7-1500, S7-1500T)................................................... 321 "StatusWord2" tag (positioning axis) (S7-1500, S7-1500T)................................................. 324 "ErrorWord" tag (positioning axis) (S7-1500, S7-1500T)..................................................... 325 "ErrorDetail" tag (positioning axis) (S7-1500, S7-1500T) .................................................... 326 "WarningWord" tag (positioning axis) (S7-1500, S7-1500T) ............................................... 327 "ControlPanel" tag (positioning axis) (S7-1500, S7-1500T)................................................. 328 "InternalToTrace" tag (positioning axis) (S7-1500, S7-1500T) ............................................ 328

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

10

Function Manual, 12/2019, A5E37577655-AC

Table of contents

A.3 A.3.1 A.3.2 A.3.3 A.3.4 A.3.5 A.3.6 A.3.7 A.3.8 A.3.9 A.3.10 A.3.11 A.3.12 A.3.13 A.3.14 A.3.15 A.3.16 A.3.17 A.3.18 A.3.19

Tags of the technology object external encoder (S7-1500, S7-1500T)................................329 Legend (S7-1500, S7-1500T) ...............................................................................................329 Actual values and setpoints (external encoder) (S7-1500, S7-1500T).................................329 "Sensor[1..4]" tag (external encoder) (S7-1500, S7-1500T).................................................330 "CrossPlcSynchronousOperation" tag (external encoder) (S7-1500, S7-1500T).................332 "Extrapolation" tag (external encoder) (S7-1500, S7-1500T) ...............................................333 "LoadGear" tag (external encoder) (S7-1500, S7-1500T) ....................................................334 "Properties" tag (external encoder) (S7-1500, S7-1500T)....................................................335 "Units" tag (external encoder) (S7-1500, S7-1500T) ............................................................335 "Mechanics" tag (external encoder) (S7-1500, S7-1500T)...................................................336 "Modulo" tag (external encoder) (S7-1500, S7-1500T) ........................................................337 "Homing" tag (external encoder) (S7-1500, S7-1500T)........................................................337 "StatusProvidedLeadingValue" tag (external encoder) (S7-1500, S7-1500T) .....................338 "StatusSensor[1..4]" tag (external encoder) (S7-1500, S7-1500T) ......................................339 "StatusExtrapolation" tag (external encoder) (S7-1500, S7-1500T).....................................340 "StatusWord" tag (external encoder) (S7-1500, S7-1500T) .................................................340 "ErrorWord" tag (external encoder) (S7-1500, S7-1500T) ...................................................342 "ErrorDetail" tag (external encoder) (S7-1500, S7-1500T)...................................................343 "WarningWord" tag (external encoder) (S7-1500, S7-1500T) ..............................................344 "InternalToTrace[1..4]" tag (external encoder) (S7-1500, S7-1500T) ..................................345

A.4 A.4.1 A.4.1.1 A.4.1.2 A.4.1.3 A.4.1.4 A.4.1.5 A.4.2 A.4.2.1 A.4.2.2 A.4.2.3 A.4.2.4

"MC_Power" function diagrams (S7-1500, S7-1500T) .........................................................346 Drive connection via PROFIdrive (S7-1500, S7-1500T).......................................................346 PROFIdrive State Machine (S7-1500, S7-1500T) ................................................................346 "StopMode" = 0, 2 (S7-1500, S7-1500T) ..............................................................................347 "StopMode" = 1 (S7-1500, S7-1500T) ..................................................................................348 Alarm reactions with braking ramp via the technology object (S7-1500, S7-1500T) ...........349 Alarm response "Remove enable" (S7-1500, S7-1500T).....................................................350 Analog drive connection (S7-1500, S7-1500T) ....................................................................351 "StopMode" = 0, 2 (S7-1500, S7-1500T) ..............................................................................351 "StopMode" = 1 (S7-1500, S7-1500T) ..................................................................................352 Alarm reactions with braking ramp via the technology object (S7-1500, S7-1500T) ...........353 Alarm response "Remove enable" (S7-1500, S7-1500T).....................................................354

Glossary (S7-1500, S7-1500T)............................................................................................................ 355

Index................................................................................................................................................... 359

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

11

Function manuals Documentation Guide (S7-1500, S7-1500T)

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

12

Function Manual, 12/2019, A5E37577655-AC

Function manuals Documentation Guide (S7-1500, S7-1500T)

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

13

Introduction (S7-1500, S7-1500T)

2

2.1

Interplay of the various documents (S7-1500, S7-1500T)
For a better overview, the documentation of the Motion Control functions is divided into the following documents:

Documentation

Description

S7-1500/S7-1500T Motion Control overview

This documentation describes the general Motion Control functions independent of technology objects.

Function manual "S7-1500/ S7-1500T Motion Control overview" (https://support.industry.siemens. com/cs/ww/en/view/109766459)

Using S7-1500/S7-1500T axis functions

This documentation describes the Motion Control functions for the following technology objects:

Function manual "S7-1500/

· Speed axis

S7-1500T Axis functions" (https://support.industry.siemens.

·

Positioning axis

com/cs/ww/en/view/109766462) · External encoder

Using S7-1500/S7-1500T measuring input and output cam functions
Function manual "S7-1500/ S7-1500T Measuring input and output cam functions" (https://support.industry.siemens. com/cs/ww/en/view/109766466)

This documentation describes the Motion Control functions for the following technology objects:
· Measuring input · Output cam · Cam track

Using S7-1500/S7-1500T synchronous operation functions

This documentation describes the Motion Control functions for the following technology objects:

Function manual "S7-1500/

· Synchronous axis

S7-1500T Synchronous operation functions"

·

Cam (S7-1500T)

(https://support.industry.siemens. · Leading axis proxy (S7-1500T)

com/cs/ww/en/view/109766464)

Using S7-1500T kinematics functions
Function manual "S7-1500T Kinematics functions" (https://support.industry.siemens. com/cs/ww/en/view/109766463)

This documentation describes the Motion Control functions for the following technology objects:
· Kinematics (S7-1500T)

Additional information
You can find an overview and important links to the topic "SIMATIC Motion Control" in the Siemens Industry Online Support under the entry ID 109751049 (https://support.industry.siemens.com/cs/ww/en/view/109751049).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

14

Function Manual, 12/2019, A5E37577655-AC

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

2.2

Functions (S7-1500, S7-1500T)

You execute the functions of the speed axis, positioning axis and external encoder technology objects using Motion Control instructions in your user program or using the TIA Portal (under "Technology object > Commissioning").

The following table shows the Motion Control instructions that are supported by the technology objects:

Motion Control instruction
"MC_Power" Enable, disable technology object "MC_Reset" Acknowledge alarms, restart technology object "MC_Home" Home technology object, set home position "MC_Halt" Pause axis "MC_MoveAbsolute" Position axis absolutely "MC_MoveRelative" Position axis relatively "MC_MoveVelocity" Move axes with velocity/speed setpoint "MC_MoveJog" Move axis in jog mode "MC_MoveSuperimposed" Positioning axes overlapping "MC_SetSensor" Switch alternative encoder to operative encoder "MC_Stop" Pause axis and prevent new motion jobs "MC_SetAxisSTW" Control bits of control word 1 and control word 2 "MC_WriteParameter" Write parameter "MC_MotionInVeloctiy" Specify motion setpoints

Validity S7-1500 S7-1500T

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

-

X

X

X

X

X

X

X

-

X

Speed axis (Page 18)
X X
-
X X
X -
X
X
X

Technology object

Positioning axis (Page 19)
X

External encoder (Page 20)
X

X

X

X

X

X

-

X

-

X

-

X

-

X

-

X

-

X

-

X

-

X

-

X

-

X

-

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

15

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

Motion Control instruction

Validity S7-1500 S7-1500T

"MC_MotionInPosition"

-

X

Specify motion setpoints

"MC_TorqueAdditive"

X

X

Specify additive torque

"MC_TorqueRange"

X

X

Specify high and low torque limits

"MC_TorqueLimiting"

X

X

Activate/deactivate force/torque limit / fixed stop detection

Speed axis (Page 18)
-

Technology object

Positioning axis External encoder

(Page 19)

(Page 20)

X

-

X

X

-

X

X

-

X

X

-

The following table shows the functions supported by technology objects in the TIA Portal:

Functions in the TIA Portal
"Axis control panel (Page 164)" Move and home axes using the TIA Portal "Optimization (Page 169)" Optimization of closed loop position control

Speed axis (Page 18)

Technology object Positioning axis (Page 19)

X

X

-

X

External encoder (Page 20) -
-

In addition to the functionality of the S7-1500 CPU, the S7-1500T CPU provides additional functions and technology objects:

Additional functions Multiple encoders for positioning axis/synchronous axis (Page 36) "MotionIn" function (Page 57)
Kinematics technology object

Description
Up to four encoders can be connected to a positioning axis/synchronous axis. The encoders can be switched over during operation. Only one encoder at a time is active for closed loop position control.
With the "MC_MotionInVelocity" and "MC_MotionInPosition" Motion Control instructions, you specify cyclically applicable calculated motion setpoints as a basic motion for the axis. No velocity profile is calculated for this, the values are directly active at the technology object.
The Kinematic technology object ("TO_Kinematics") is used to interconnect positioning axes to a kinematic. When you configure the kinematics technology object, you interconnect the axes in accordance with the configured kinematics type.
The kinematics technology object is described in the "S7-1500T Kinematics functions (https://support.industry.siemens.com/cs/ww/en/view/109766463)" documentation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

16

Function Manual, 12/2019, A5E37577655-AC

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

Additional functions Gearing with "MC_GearInPos"
Camming Cross-PLC synchronous operation

Description
During gearing, the leading axis and following axis are coupled, similar to a mechanical gear unit, by a linear synchronous operation function. You use the gear ratio to specify the synchronous operation function. The synchronous positions of the leading and following axes starting at which the axes move synchronously can be specified in the Motion Control instruction "MC_GearInPos".
The gearing with "MC_GearInPos" is described in the documentation "S7-1500/S71500T Synchronous operation functions (https://support.industry.siemens.com/cs/ww/en/view/109766464)".
During camming, the leading axis and following axis are coupled by a synchronism function, which you specify using a cam.
The camming is described in the documentation "S7-1500/S7-1500T Synchronous operation functions (https://support.industry.siemens.com/cs/ww/en/view/109766464)".
Cross-PLC synchronous operation enables synchronous operation over multiple controllers. Leading and following axes can be configured on different controllers.
The PLC-wide synchronous operation is described in the documentation "S71500/S7-1500T Synchronous operation functions (https://support.industry.siemens.com/cs/ww/en/view/109766464)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

17

Basics (S7-1500, S7-1500T)

3

3.1

Speed-controlled axis technology object (S7-1500, S7-1500T)

The speed axis technology object calculates speed setpoints, taking into account the dynamic settings, and outputs them to the drive. All motions of the speed axis take place as speed-controlled motions. An existing load gear is taken into account on the system side.

You can find an overview of the functions of the speed axis technology object in the "Functions (Page 15)" section.

A drive is assigned to each speed axis by means of a PROFIdrive telegram or an analog setpoint interface.

The speed is specified in revolutions per unit of time.

The following figure shows the basic principle of operation of the speed axis technology object:

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

18

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.2 Positioning axis technology object (S7-1500, S7-1500T)

3.2

Positioning axis technology object (S7-1500, S7-1500T)

The positioning axis technology object calculates position setpoints, taking into account the encoderc settings, and outputs corresponding speed setpoints to the drive. In positioncontrolled mode, all movements of the positioning axis take place as position-controlled movements. For absolute positioning, the physical position must be known to the positioning axis technology object.

You can find an overview of the functions of the positioning axis technology object in the "Functions (Page 15)" section.

Each positioning axis is assigned a drive by means of a PROFIdrive telegram or an analog setpoint interface as well as an encoder by means of a PROFIdrive telegram.

The relationship between the encoder values and a defined position is established by the parameter assignment of the mechanical properties and encoder settings and by a homing operation. The technology object can also perform movements without a position relationship, and relative position movements, even without being in a homed status.

A positioning axis can be configured as a linear axis or rotary axis (Page 22), depending on the design of the mechanics.

The following figure shows the basic principle of operation of the positioning axis technology object:

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

19

Basics (S7-1500, S7-1500T) 3.3 External encoder technology object (S7-1500, S7-1500T)

3.3

External encoder technology object (S7-1500, S7-1500T)

The external encoder technology object detects a position and makes this available to the controller.

The actual position detected by the external encoder can be used for the following functions, for example:

 Measured value acquisition by a measuring input

 Position-dependent generation of switching signals and switching signal sequences by output cam and cam track with actual value reference.

 As a leading value of a synchronous axis (S7-1500T)

You can find an overview of the functions of the external encoder technology object in the "Functions (Page 15)" section.

The relationship between the encoder values and a defined position is established by the parameter assignment of the mechanical properties and encoder settings and by a homing operation.

The following figure shows the basic principle of operation of the external encoder technology object:

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

20

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.3 External encoder technology object (S7-1500, S7-1500T)
Specification of the position occurs according to the selected system of units:  Linear system of units
The position is specified as a linear measure, e.g. millimeters.  Rotary system of units
The position is specified as an angular measure, e.g. degrees.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

21

Basics (S7-1500, S7-1500T) 3.4 Axis types (S7-1500, S7-1500T)

3.4

Axis types (S7-1500, S7-1500T)

Axes can be configured with different axis types:

 Positioning and synchronous axes can be configured as rotary or linear axis.

 Speed axes are always rotary axes.

Depending on the execution of the mechanics, an axis is implemented as a linear axis or rotary axis:

 Linear axis

For linear axes, the position of the axis is specified as a linear measure, e.g. millimeters (mm).  Rotary axis
For rotary axes, the position of the axis is specified as an angular measure, e.g. degrees (°).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

22

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.5 Modulo setting (S7-1500, S7-1500T)

3.5

Modulo setting (S7-1500, S7-1500T)

For the positioning axis, synchronous axis and external encoder technology objects, the "Modulo" setting can be activated.

When an axis moves in only one direction, the position value continually increases. To limit the position value to a recurring reference system, you can activate the "Modulo" setting. The long-term accuracy (Page 25) can also be adhered to with modular axes up to the maximum travel time.

When the "Modulo" setting is activated, the position value of the technology object is mapped onto a recurring modulo range. The modulo range is defined by the start value and the length.

For example, to limit the position value of a rotary axis to a full rotation, the modulo range can be defined with start value = 0° and length = 360°. As a result, the position value is mapped onto the modulo range 0° to 359.999°.

The modulo cycle counters for the position setpoint and the actual position on the positioning axis, synchronous axis and external encoder technology objects indicate the number of modulo revolutions.

Modulo cycle counter
If the "Modulo" setting is activated, the modulo cycle counter is activated for the Positioning axis, Synchronous axis, and External encoder technology objects. The modulo cycle counter is displayed at the technology object for the position setpoint and the actual position. The modulo cycle counter counts the modulo revolutions and thus the number of modulo runs at the technology object.
The counter values of the modulo cycles change during switch on, restart and homing.
The following applies to an incremental encoder:

Action

Description

Switching on the CPU

The modulo cycle counter is set to 0.

Reset with "Restart" = TRUE The modulo cycle counter is set to 0.

Active and passive homing with "Mode" = 2, 3, 5, 8, 10

· If the home position is in the range "Modulo start value  Home position  (Modulo Start value + Modulo length / 2)", the modulo cycle counter is set to 0.

· If the home position is in the range "(Modulo start value + Modulo length / 2) < Home position < (Modulo start value + Modulo length)" the modulo cycle is set to -1.

Direct homing absolute with "Mode"= 0, 11
Direct homing absolute with "Mode"= 1, 12

The modulo value is the shortest distance between the current and new position. Depending of the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.
The modulo cycle counter changes according to the specified position difference, even if no homing has taken place before.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

23

Basics (S7-1500, S7-1500T) 3.5 Modulo setting (S7-1500, S7-1500T)

The following applies to an absolute encoder:

Action

Description

Switching on the CPU

The modulo cycle counter changes according to the determined modulo length from the absolute value of the encoder and the absolute value offset of an absolute value encoder adjustment, if an absolute value encoder adjustment has taken place.

Reset with "Restart" = TRUE The modulo cycle counter remains unchanged.

Absolute encoder adjustment with "Mode" = 6, 7

The modulo cycle counter is set to 0.

Direct homing absolute with "Mode"= 0, 11

The modulo value is the shortest distance between the current and new position. Depending of the distance, the modulo cycle counter can remain the same, increase by 1 or decrease by 1.

Direct homing absolute with The modulo cycle counter changes according to the specified position

"Mode"= 1, 12

difference, even if no homing has taken place before.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

24

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.6 Long-term accuracy (S7-1500, S7-1500T)

3.6

Long-term accuracy (S7-1500, S7-1500T)

Long-term accuracy means that the technological set and actual position can always be determined uniquely.

The maximum technological position depends on the selected dimension and the maximum display of 9.0E12 mm. At higher resolution the maximum display is reduced to 9.0E9 mm.

The maximum travel time in which the technological position is accurate without rounding error depends on the maximum position and the velocity. The maximum travel time applies likewise to axes with and without modulo setting.

You can use the following equation to estimate when the limit of long-term accuracy is reached:

Example of the maximum traversing time
Maximum position = 9.0E12 mm Velocity = 20.0 m/min = 2.0E4 mm/min

Dimension nm, µm, mm, m, km, in, ft, mi, rad, ° mm1), °1)

Maximum travel time 4.5E8 min  856 years 4.5E5 min  0.856 years

1) Position values with higher resolution or six decimal places. The maximum position is reduced to 9.0E9 mm and thus also the travel time.

The traversing time restarts when one of the following conditions is fulfilled:

 You have homed the axis with "MC_Home".

 After POWER OFF  POWER ON of the CPU

A change in the velocity has the consequence that the traversing time changes accordingly.

Measures to maintain long-term accuracy
Carry out the following measures before the maximum travel time has elapsed:
 Incremental encoder: Home the incremental encoder again.
 Absolute encoder: Perform an absolute encoder calibration with the default of the currently known position.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

25

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7

Drive and encoder connection (S7-1500, S7-1500T)

A drive is assigned to the "Speed axis" technology object. A drive and one to four encoders (only with S7-1500T) are assigned to the "Positioning axis" and "Synchronous axis" technology objects. An encoder is assigned to the "External encoder" technology object.

The setpoint for the drive is specified either with PROFIdrive telegrams or using an analog output.

The following connection options are available for an encoder:

 Encoder connected to drive

 Encoder to technology module

 PROFIdrive encoder connected directly to PROFIBUS DP/PROFINET IO

The actual encoder value is transmitted exclusively via PROFIdrive telegrams.

PROFIdrive

PROFIdrive is the standardized drive technology profile for connecting drives and encoders via PROFIBUS DP and PROFINET IO. Drives that support the PROFIdrive profile are connected according to the PROFIdrive standard.
The current PROFIdrive specification is available at:
https://www.profibus.com (https://www.profibus.com)
Communication between the controller and drive/encoder is performed using various PROFIdrive telegrams. Each of the telegrams has a standardized structure. You can select the appropriate telegram according to the application. Control words and status words as well as setpoints and actual values are transmitted in the PROFIdrive telegrams.
The PROFIdrive profile likewise supports the "Dynamic Servo Control" (DSC) control concept. DSC uses rapid closed loop position control in the drive. This can be used to solve highly dynamic Motion Control tasks.

Analog drive connection
Drives with analog setpoint interfaces are connected using an analog output and an optional enable signal. The speed setpoint is specified via an analog output signal (e.g. from -10 V to +10 V) from the CPU.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

26

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)
Stepper motors
Drives with a stepper motor interface are connected using telegram 3 and with the help of PTO (Pulse Train Output) pulse generators.
For functional support of stepper motor operation, quantization of the control deviation can be set.
Through the specification of a quantization, a range around the target position is defined in which no correction of the actual position is to be made. This prevents a possible oscillation of the stepper motor around the target position. Two types of quantization can be set:
 Quantization of the control deviation corresponding to the encoder resolution
("<TO>.PositionControl.ControlDifferenceQuantization.Mode" = 1)
This prevents oscillation of the stopped motor between two increment values, for example. This mode is especially helpful when using multiple encoders. With this setting, the quantization is adapted appropriately at an encoder switchover. This mode is helpful for stepper motors with encoders in which the resolution of the encoder is lower than the step size of the stepper motor.
 Direct specification of a value for quantization of the control deviation.
("<TO>.PositionControl.ControlDifferenceQuantization.Mode" = 2, value setting in "<TO>.PositionControl.ControlDifferenceQuantization.Value")
This mode is helpful for stepper motors with encoders in which the resolution of the encoder is greater than the step size of the stepper motor.

3.7.1

PROFIdrive telegrams (S7-1500, S7-1500T)
PROFIdrive telegrams are used to transfer setpoints and actual values, control and status words and other parameters between the controller and drive/encoder.
When a PROFIdrive telegram is used for connection, the drives and encoders are handled and switched on in accordance with the PROFIdrive profile.
The following table shows the possible PROFIdrive telegrams for various technology objects.

Technology object Speed axis

Possible PROFIdrive telegrams · 1, 2

· 3, 4, 5, 6, 102, 103, 105, 106 (actual encoder value is not evaluated)

Positioning axis/synchronous axis Setpoint and actual encoder value in one drive telegram Setpoint and actual encoder value separately Setpoint in drive telegram Actual value from telegram
External encoder Measuring input (Measuring via SINAMICS (central probe)) Measuring input at axis module

3, 4, 5, 6, 102, 103, 105, 106
1, 2, 3, 4, 5, 6, 102, 103, 105, 106 81, 83 81, 83 391, 392, 393 Corresponds to measuring via PROFIdrive

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

27

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

Telegram types
The following table shows the supported PROFIdrive telegram types for the assignment of drives and encoders:

Telegram

Brief description

Standard telegrams

11)

· Control word STW15), status word ZSW1

· Speed setpoint 16 bit (NSET), actual speed value 16 bit (NACT)

2

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

3

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

4

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

· Actual encoder value 2 (G2_XIST1, G2_XIST2)

5

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2) (motor encoder)

· Dynamic Servo Control (DSC)2)

­ Speed precontrol value

­ Position difference (XERR)

­ Kpc - Velocity precontrol of the closed loop position control

6

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2) (motor encoder)

· Actual encoder value 2 (G2_XIST1, G2_XIST2)

· Dynamic Servo Control (DSC)2)

­ Speed precontrol value

­ Position difference (XERR)

­ Kpc - Velocity precontrol of the closed loop position control

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

28

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

Telegram

Brief description

Siemens telegrams (with torque limiting)

102

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

· Torque limiting

103

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

· Actual encoder value 2 (G2_XIST1, G2_XIST2)

· Torque limiting

105

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2) (motor encoder)

· Dynamic Servo Control (DSC)2)

­ Speed precontrol value

­ Position difference (XERR)

­ Kpc - Velocity precontrol of the closed loop position control

· Torque limiting

106

· Controls word STW15) and STW25), status words ZSW1 and ZSW2

· Speed setpoint 32 bit (NSET), actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2) (motor encoder)

· Actual encoder value 2 (G2_XIST1, G2_XIST2)

· Dynamic Servo Control (DSC)2)

­ Speed precontrol value

­ Position difference (XERR)

­ Kpc - Velocity precontrol of the closed loop position control

· Torque limiting

SIEMENS additional telegrams (torque data)

7503)

· Additive setpoint torque

· High and low torque limits

· Torque actual values

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

29

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

See also

Telegram

Brief description

SIEMENS telegrams (measuring input) 4)

391

· Control word CU_STW1, status word CU_ZSW1

· Measuring input control word (MT_STW), measuring input status word (MT_ZSW)

· Measuring input time stamp of negative (MT1...2_ZS_F) or positive edges (MT1...2_ZS_S)

· Digital output 16 bit, digital input 16 bit

392

· Control word CU_STW1, status word CU_ZSW1

· Measuring input control word (MT_STW), measuring input status word (MT_ZSW)

· Measuring input time stamp of negative (MT1...6_ZS_F) or positive edges (MT1...6_ZS_S)

· Digital output 16 bit, digital input 16 bit

393

· Control word CU_STW1, status word CU_ZSW1

· Measuring input control word (MT_STW), measuring input status word (MT_ZSW)

· Measuring input time stamp of negative (MT1...8_ZS_F) or positive edges (MT1...8_ZS_S)

· Digital output 16 bit, digital input 16 bit

· Analog input 16 bit

Standard telegrams - encoder

81

· Control word STW2_ENC, status word ZSW2_ENC

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

83

· Control word STW2_ENC, status word ZSW2_ENC

· Actual speed value 32 bit (NACT)

· Actual encoder value 1 (G1_XIST1, G1_XIST2)

1) Isochronous mode is not possible. 2) For use of Dynamic Servo Control (DSC), the motor encoder (first encoder in the telegram) of the
drive must be used as the first encoder for the technology object. 3) Can also be used for the telegrams 1, 2, 3, 4, 5, 6, 102, 103, 105, 106 4) When using SINAMICS drives (measuring using SINAMICS measuring input) 5) STW1 and STW2: Bits not used by the technology object can be controlled via the user program
with the Motion Control instruction "MC_SetAxisSTW".

Data connection drive/encoder via data block (Page 44)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

30

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.2

Actual values (S7-1500, S7-1500T)
For position-controlled motion and positioning, the controller must know the actual position value.
The actual position value is provided by a PROFIdrive telegram.
The actual values are represented as incremental or absolute values in the PROFIdrive telegram. The actual values are normalized in the controller to the technological unit taking into account the configuration of the mechanics. The reference to a physical position of the axis or external encoder is established by homing.
The controller supports the following types of actual values (encoder types):
 Incremental actual value
 Absolute actual value with the setting absolute (measuring range > traversing range of the axis)
 Absolute actual value with the setting absolute (measuring range < traversing range of the axis)

Actual value calculation for virtual axis or axis in simulation
The actual value of a virtual axis or an axis in simulation is formed from the setpoint taking time delays into account.
You calculate the time delay from actual value to the setpoint (Tt) as follows:

Calculation
With precontrol Without precontrol, without DSC Without precontrol, with DSC for one axis in simulation

Tt = Tipo + Tservo + Tvtc + TaddPtc Tt = Tipo + 1/Kv + TaddPtc Tt = Tipo + Tservo + 1/Kv + TaddPtc

See also

Tt Tipo Tservo Tvtc
TaddPtc
kV

Time delay from the actual value to the setpoint Cycle time of the MC-Interpolator [OB92] Cycle time of the MC-Servo [OB91] Speed control loop substitute time (Tvtc off "<TO>.DynamicAxisModel.VelocityTimeConstant") Additive position control loop equivalent time (TaddPtc from "<TO>.DynamicAxisModel.AdditionalPositionTimeConstant") Gain factor (Kv from "<TO>.PositionControl.Kv")

Virtual axis (Page 44) Axis in simulation (Page 43)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

31

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.2.1

Incremental actual value (S7-1500, S7-1500T)
The actual value in the PROFIdrive telegram is based on an incremental value.
After POWER ON, position zero is displayed. A transition of the CPU to RUN mode starts the actual value update. The actual value is then also updated in CPU STOP mode. The relationship between the technology object and the mechanical position must be reestablished by means of homing.

3.7.2.2

Absolute actual value (S7-1500, S7-1500T)
The actual value in the PROFIdrive telegram is based on an absolute value.
After POWER ON, position zero is displayed. The first transition of the CPU to RUN mode starts the actual value update. The actual value is then also updated in CPU STOP mode. The supplied absolute value is assigned to the associated mechanical axis position by means of the absolute encoder adjustment. The absolute encoder adjustment must be performed once. The absolute value offset is retentively saved beyond the switching on/off of the controller.
Differentiation of absolute values:
 The measuring range of the encoder is larger than the traversing range of the axis:
Absolute value with setting absolute
 The measuring range of the encoder is smaller than the traversing range of the axis:
Absolute value with setting cyclic absolute

Absolute actual value with setting absolute (measuring range > traversing range)
The axis position results directly from the current actual encoder value. The traversing range must be within an encoder measuring range. This means that the zero passage of the encoder must not be located in the traversing range.
When the controller is switched on, the axis position is determined from the absolute actual encoder value.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

32

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)
Absolute actual value with setting cyclic absolute (measuring range < traversing range)
The encoder supplies an absolute value within its measuring range. The controller includes the traversed measuring ranges and thus determines the correct axis position beyond the measuring range. When the controller is switched off, the traversed measuring ranges are saved in the retentive memory area of the controller. At the next power-on, the saved traversed measuring ranges are taken into account in the calculation of the actual position value.
NOTICE Movements of the axis while the controller is switched off can skew the actual value If the axis or the encoder is moved by more than half of the encoder measuring range while the controller is switched off, the actual value in the controller is no longer in accord with the mechanical axis position.

See also

Absolute value adjustment (Page 85)

3.7.2.3

Tags: Actual values (S7-1500, S7-1500T)
The tags named in the "Homing (Page 87)" section are relevant for adapting actual values.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

33

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.3

Automatic transfer of drive and encoder parameters in the device (S7-1500, S71500T)
Identical reference values for the drive and encoder connections must be set in the controller and in the drive and encoder for the operation.
The speed setpoint NSET and the actual speed value NACT are transferred in the PROFIdrive telegram as a percentage of the reference speed. The reference value for the speed must be set identically in the controller and in the drive.
The resolution of the actual value in the PROFIdrive telegram must likewise be set identically in the controller and in the drive and encoder modules

Automatic transfer of parameters
The drive and encoder parameters can be automatically applied in the CPU for the following drives and encoders.
 SINAMICS drives (see "compatibility list")
 PROFIdrive encoder as of product version A16
The corresponding parameters are transferred after the (re-)initialization of the technology object or (re)start of the drive and the CPU. Changes in the drive configuration are transferred after restart of the drive or technology object.
Successful transfer of the parameters can be checked in the controller with the value of the tags "<TO>.StatusDrive.AdaptionState" = 2 and "<TO>.StatusSensor[1..4].AdaptionState" = 2 of the technology object.

Parameters

The controller settings are made in the TIA Portal under "Technology object > Configuration > Hardware interface > Data exchange with the drive/encoder".
The drive and encoder settings are made in the configuration or the respective hardware.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

34

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

The following table compares the settings in the TIA Portal, in the controller and the corresponding drive/encoder parameters:

Setting in the TIA Portal Drive Telegram number
Reference speed in [1/min] Maximum speed of motor in [1/min] Reference torque in [NM] Encoder Telegram Encoder type
Measuring system

Controller tag in the technology data block

Telegram input address <TO>.Actor.Interface.AddressIn
Telegram output address <TO>.Actor.Interface.AddressOut
<TO>.Actor.DriveParameter. ReferenceSpeed
<TO>.Actor.DriveParameter. MaxSpeed
<TO>.Actor.DriveParameter. ReferenceTorque

<TO>.Sensor[1..4].Interface.AddressIn

<TO>.Sensor[1..4].Interface.AddressOut

<TO>.Sensor[1..4].Type

0

Incremental

1

Absolute

2

Cyclic absolute

<TO>.Sensor[1..4].System

0

Linear

1

Rotary

Resolution (linear encoder)

<TO>.Sensor[1..4].Parameter.Resolution

The grid spacing is specified on the nameplate of the encoder as a separation distance of the marks on the linear measuring system.

Increments per revolution (rotary encoder)

<TO>.Sensor[1..4].Parameter. StepsPerRevolution

Number of bits for fine resolution XIST1 (cyclic actual encoder value, linear or rotary encoder)
Number of bits for fine resolution XIST2 (absolute encoder value, linear or rotary encoder)
Differentiable encoder revolutions (rotary absolute encoder)

<TO>.Sensor[1..4].Parameter. FineResolutionXist1
<TO>.Sensor[1..4].Parameter. FineResolutionXist2
<TO>.Sensor[1..4].Parameter. DeterminableRevolutions

Drive parameter
Telegram number P922
(SINAMICS drives: P2000) (SINAMICS drives: P1082) (SINAMICS drives: P2003)
P922
P979[5] Encoder 1 P979[15] Encoder 2
P979[1] Bit0 Encoder 1 P979[11] Bit0 Encoder 2 P979[2] Encoder 1 P979[12] Encoder 2
P979[2] Encoder 1 P979[12] Encoder 2 P979[3] Encoder 1 P979[13] Encoder 2 P979[4] Encoder 1 P979[14] Encoder 2 P979[5] Encoder 1 P979[15] Encoder 2

Automatic transfer -
X X X -
X
X
X X X X

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

35

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.4

Using multiple encoders (S7-1500T)
The S7-1500T technology CPU offers the option of using up to 4 encoder or measuring systems per positioning axis and synchronous axis as the actual position for the closed loop position control
Only one encoder at a time is active for closed loop position control. You can switch between the 4 encoder or measuring systems.
However, the actual values of all configured encoders can be evaluated in the user program.
This opens up the following possible application areas, for example:
 Use of additional machine encoders (besides the motor encoder), e.g. as direct measuring systems for more accurate detection of actual positions of machining processes.
 Use of alternative encoder systems following a tool change in a flexible manufacturing process.
You configure the encoders in the axis configuration. You control the switchover of the encoders in the user program with the Motion Control instruction "MC_SetSensor".

Configuring an axis with multiple encoders
Note the following configuration windows when using multiple encoders:
 In the configuration window "Hardware interface > Encoder", configure which alternative encoders are to be used and their corresponding encoder type (incremental, absolute or cyclic absolute). All encoders marked as used supply continually updated actual values to the closed loop position control regardless of their use.
 In the configuration window "Hardware interface > Encoder", configure an encoder as "Encoder at power-up". This is necessary because an encoder must always be assigned to the positioning axis and synchronous axis.
 In the configuration window "Hardware interface > Data exchange with encoder", configure additional encoder details and the telegram that is to be used to connect the encoders. The configuration must be performed for each encoder used. Each encoder to be used or each measuring system may differ with regard to its encoder mounting type.
 In the configuration window "Extended parameters > Mechanics", configure the encoder mounting type and any gear parameters. The configuration must be performed for each encoder used.
 The axis can be homed with any configured encoder. In the configuration window "Extended parameters > Homing", configure the parameters for active and passive homing. The configuration can be performed for each encoder used. When the axis is homed with an encoder, the axis is homed and retains the "homed" status following encoder switchover.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

36

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)
Encoder switchover in the user program
For closed loop position control of the positioning and synchronous axes, an encoder must always be active. Individual encoders may fail as long as they are not involved in closed loop position control. With the Motion Control instruction "MC_SetSensor", you switch over the encoder for closed loop position control of the axis. The switchover can occur during an active motion job or at a standstill. The axis does not have to be enabled. A switchover during an active homing or restart job is not possible.
Note Homing Homing with the Motion Control instruction "MC_Home" or the axis control panel is always performed with the encoder involved in closed loop position control. The homing status of the axis is not changed following an encoder switchover. Simulation When the axis is simulated, all encoders configured as "used" are simulated.
Following the switchover to an alternative encoder or encoder system, you can select what happens if the actual positions of the encoders are different. You define how to deal with the difference in the actual positions of the encoders using input parameter "Mode" of the Motion Control instruction "MC_SetSensor".  Switch over encoder and transfer actual position to the encoder to be switched
("Mode" = 0) With this encoder switchover, step changes in the actual position are prevented. Bumpless switchover of the encoders is possible.  Switch over sensor without transferring the actual position ("Mode" = 1) Following a switchover to an encoder without adjustment, a step change of the actual position may occur. This can be desirable if the new encoder is intended to compensate for possible mechanical influences (such as slip) in the positioning. The position difference is not implemented immediately but rather after a delay using time constant "<TO>.PositionControl.SmoothingTimeByChangeDifference" in order to prevent step changes in the actual position with active closed loop position control.  Transfer actual position ("Mode" = 2) The actual position of the axis is transferred to the encoder specified in the "Sensor" parameter.  Transfer actual position of the reference encoder ("Mode" = 3) The actual position of the "Reference encoder" ("ReferenceSensor" parameter) is transferred to the encoder specified in the "Sensor" parameter. "Mode" = 2 and 3 can be used to prepare a switchover.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

37

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

See also

MC_SetSensor: Switch alternative encoder to operative encoder V5 (Page 238)

3.7.5

Safety functions in the drive (S7-1500, S7-1500T)
Safety functions ("Safety Integrated Basic Functions") in the SINAMICS drive are safetyoriented, internal drive functions with the goal of shutting down the respective drive safely. In addition, additional safety functions ("Safety Integrated Extended Functions") are available to monitor definable limits. The goal of these safety functions is to monitor that the respective limit is maintained, to signal the violation or to subsequently shut down the drive safely. To prevent the monitoring function from being triggered, the axis must be switched to the monitored operating mode with the user program or maintained in this mode.
The interaction of the safety functions in the drive, the SIMATIC S7-1500 and S7-1500T are necessary to ensure fault-free plant operation.
The technology objects speed axis, positioning axis and synchronous axis support the "Safety Integrated Basic Functions" of the drive. The technology object detects that the Basic Safety function is triggered and displays a corresponding warning (technology alarm 550 alarm response: Track setpoints) or alarm (technology alarm 421 - alarm response: Remove enable).
With alarm 421, it is not necessary to disable the technology object with "MC_Power". When alarm 550 occurs, you must not disable the technology object with the "MC_Power" as long as the security function is triggered.
When the alarms 421 and 550 occur, you may only acknowledge the alarm with "MC-Reset" if the safety function on the drive has been acknowledged and the drive is enabled.
The technology object is automatically released after acknowledgment with "MC-Reset".
The "Safety Integrated Extended Functions" are not supported by the technology object independently.
To prevent the extended safety functions from being triggered and thus prevent a disruption in plant operation, evaluate the status of the safety functions. This evaluation can take place in the user program by using or evaluating the status information of the "Safety Info Channels" (SIC). With the help of the corresponding Motion Control instruction, the axis can now stay within the monitored limit or reach it before a deviation is detected.
If a safety function is applied to a following axis in active synchronous operation, one of the following two responses is required:
 End synchronous operation
 Adjust velocity of the leading axis accordingly
Four status words are available in the SIC:
 S_ZSW1B
 S_ZSW2B
 S_ZSW3B
 S_V_LIMIT_B

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

38

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

Two predefined PROFIdrive telegrams are available for transmission:  Tel. 700 (contains the status words S_ZSW1B & S_V_LIMIT_B)  Tel. 701 (contains all four status words and two additional control words)
Additional information Additional information on the safety functions in SINAMICS drives and on the SIC is available in the SINAMICS S120 Safety Integrated function manual. https://support.industry.siemens.com/cs/ww/en/view/109754301 (https://support.industry.siemens.com/cs/ww/en/view/109754301) The tables below provide an overview of the four SIC status words and the required response for each to prevent faults in plant operation.

S_ZSW1B

S_ZSW1B Bit Assignment 0 STO (active)
1 SS1 (active)

Meaning
1 Safe Torque Off active 0 Not active 1 Safe Stop 1 active

0 Not active 2 SS2 (active) 1 Safe Stop 2 active

0 Not active 3 SOS (active) 1 Safe Operating Stop active

0 Not active 4 SLS (active) 1 Safety-Limited Speed active

0 Not active 5 SOS (selected) 1 Safe Operating Stop
selected
0 Deselected 6 SLS (selected) 1 Safety-Limited Speed
selected
0 Deselected 7 Internal event 1 Group alarm that a safety
function was selected or became active
0 No event

Recommended response of the respective axis in the user program
"MC_Power" can remain enabled (waiting). None Drive brakes autonomously and goes into STO. "MC_Power" remains enabled until STO. None Drive brakes autonomously and goes into SOS. "MC_Power" remains enabled. None "MC_Power" remains enabled. The drive must not move (monitoring takes place in the drive) None "MC_Power" remains enabled. Velocity must be less than active velocity limit (see "Active SLS stage" or S_V_LIMIT_B). None "MC_Power" remains enabled. Braking with "MC_Halt" and "MC_Stop" within the time permitted by SOS. None Drop below velocity limit within the time specified by SLS. For example, by specifying an override or a new dynamic limit (restriction with synchronous motion). None Additional evaluation of the status words required to determine the triggering safety function. The bit indicates that a safety function is active. (See also "Safety alarm") None

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

39

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

S_ZSW1B Bit Assignment 8 Reserved 9 Active SLS
level 10 11 Reserved 12 SDI positive
13 SDI negative
14 ESR retraction
15 Safety alarm

Meaning
SLS velocity limit Display bit 0 SLS velocity limit Display bit 1 1 Safe Direction positive
selected
0 Deselected 1 Safe Direction negative
selected
0 Deselected 1 Extended stop and retraction
required (not a Safety function)
0 Not requested 1 Effective
0 Not effective

Recommended response of the respective axis in the user program
Additional information on SLS (bit 6) ­ shows active velocity limit for SLS in levels (1... 4). This limit can be evaluated in the program to limit the current velocity of the axis as needed.
Reaching standstill or the positive velocity of the actual value of the axis (when SDI negative = 0) within the time specified by SDI. None monitoring for positive direction. Reaching standstill or the negative velocity of the actual value of the axis (when SDI positive = 0) within the time specified by SDI. None monitoring for negative direction. To be considered individually. You can find additional information in the "SINAMICS S120 Safety Integrated" (https://support.industry.siemens.com/cs/ww/en/view/1097543 01) function manual. None If necessary, evaluate bit as group alarm to see whether a Safety alarm is pending in the alarm buffer. None

S_V_LIMIT_B

S_V_LIMIT_B
Bit Assignment 0 ... Velocity set31 point limit

Meaning
SLS Speed limit (32-bit resolution with sign)

Explanation
Additional information on SLS (S_ZSW1B bit 6) Shows the selected/active velocity limit for SLS. If necessary, the velocity limit can be evaluated in the program to limit the current velocity of the axis as needed.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

40

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

S_ZSW2B

S_ZSW2B Bit Assignment 0 ... Reserved 3 4 SLP selected
position area
5, 6 Reserved 7 SLP selected
and user approval set
8 SDI positive
9 SDI negative
10, Reserved 11 12 Test stop
active
13 Test stop required
14, Reserved 15

Meaning
-
1 SLP area 2 selected
0 SLP area 1 selected
1 Safety-Limited Position se-
lected and user approval is set
0 SLP not selected or user approval missing
1 Safe Direction positive selected
0 Deselected 1 Safe Direction negative se-
lected
0 Deselected -
1 Test stop active
0 Not active 1 Test stop required 0 Not required -

Recommended response of the respective axis
-
Safe position in the area 2. Do not change the position using the user program any longer. Safe position in the area 1. Do not change the position using the user program any longer. Status message (if required in the user program) Application-dependent evaluation (means that the SLP is selected and the safe position was confirmed by the user ­ see "Safe homing") Application-dependent evaluation
Reaching standstill or the positive velocity of the actual value of the axis within the time specified by SDI. (when SDI negative = 0) None monitoring for positive direction Reaching standstill or the negative velocity of the actual value of the axis within the time specified by SDI. (when SDI positive = 0) None monitoring for negative direction -
Status message (if required in the user program) Application-dependent evaluation None Perform test stop None -

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

41

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

S_ZSW3B

S_ZSW3B Bit Assignment 0 Brake test

Meaning 1 Brake test selected

0 Deselected
1 Setpoint speci- 1 Specification for drive fication drive/external 0 External specification (control)

2 Active brake 1 Test brake 2 active

0 Test brake 1 active

3 Brake test active
4 Brake test result

1 Test active
0 Inactive 1 Test required
0 With error(s)

5 Brake test complete

1 Run test 0 Incomplete

6 External brake 1 Closing the brake request
0 Opening the brake

7 Current load 1

sign

0

8 ... Reserved

-

13

14 Acceptance 1

test SLP(SE)

selected

0

15 Acceptance 1 test

mode selected 0

Negative sign Positive sign
Acceptance test SLP(SE) selected Deselected Acceptance test mode selected Deselected

Recommended response of the respective axis
"MC_Power" remains enabled. Do not start travel motion with user program. None ­ brake test is inactive (normal plant operation) The speed setpoint is specified by the SBT function. Application-dependent evaluation The "normal" speed setpoint is in effect. Application-dependent evaluation, setpoint value specification through user program required Status message (if required in the user program) Application-dependent evaluation Status message (if required in the user program) Application-dependent evaluation Status message (if required in the user program) Application-dependent evaluation None Status message (if required in the user program) Application-dependent evaluation Status message (if required in the user program) Application-dependent evaluation, test must usually be successful to guarantee safety of the brake. Status message (if required in the user program) Application-dependent evaluation Status message (if required in the user program) Application-dependent evaluation, usually test is repeated Closing external brake (when controlled by user program) Application-dependent evaluation Opening external brake (when controlled by user program) Application-dependent evaluation Status of the load sign if required in the user program Application-dependent evaluation -
Status message (if required in the user program) Application-dependent evaluation None Status message (if required in the user program) Application-dependent evaluation None

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

42

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.6

Axis in simulation (S7-1500, S7-1500T)
S7-1500 Motion Control offers the option to move real axes in simulation mode. Speed, positioning and synchronous axes can thus be simulated without a connected drive and encoder in the CPU.
When the simulation mode is activated, the drive and encoder connection does not need to be configured in the axis configuration, for example, if the drive configuration is not yet available at this time. The "Simulation" configuration can be changed during runtime of the user program (<TO>.Simulation.Mode). A valid drive and encoder connection is required when exiting the simulation.
To use a technology object in simulation mode or with SIMATIC S7 PLCSIM, you need to use encoder 1 for closed loop position control of the axis.
Applications
 For example, an axis is simulated for programming the machine application and assigned to the configured hardware later for commissioning.
 During commissioning, for example, not all hardware components are available.
 No axis motions should take place during commissioning.

Characteristics in simulation mode
An axis in simulation does not output setpoints to the drive and does not read any actual values of the encoder. The actual values (Page 31) are formed with a time delay from the setpoints.
Hardware limit switches and home position switches have no effect.
The technology objects measuring input (with signal detection via TM Timer DIDQ or SINAMICS measuring input), output cam and cam track can also be used for axes in simulation.
The following table shows the Motion Control instructions with adapted behavior in simulation mode:

Motion Control instruction MC_Power
MC_Home
MC_TorqueLimiting

Characteristics in simulation mode
The axis is enabled immediately without waiting for feedback from the drive.
Homing jobs are executed immediately without simulated axis motion.
The specified torque is not output to the drive.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

43

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

3.7.7

Virtual axis (S7-1500, S7-1500T)
S7-1500 Motion Control offers the possibility to configure an axis as a virtual axis. A virtual axis behaves like a real axis, but has no drive or encoder connection. The setpoints are only processed within the controller and no real drive is controlled.
Application:
A virtual axis, for example, is often used as a virtual leading axis in order to generate the setpoints for several real following axes in synchronous operation.
The "Virtual axis" configuration can only be changed by a new download to the CPU (in STOP mode) (<TO>.VirtualAxis.Mode).
The behavior of a virtual axis is identical to the behavior of an axis in simulation (Page 43).

3.7.8

Data connection drive/encoder via data block (S7-1500, S7-1500T)
The data connection of PROFIdrive drives and encoders occurs either directly via the PROFIdrive telegram or via a data block.
Use the system-generated tags of the PROFIdrive telegrams if you want to evaluate the telegram contents.
Use the connection via data block if you want to influence or evaluate telegram contents in the user program for process-specific reasons.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

44

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

Principle of data connection via data block
Generally, at the start of closed loop position control of the axis (by MC-Servo [OB91]), the input area of the drive or encoder telegram is read.
At the end of closed loop position control, the output area of the drive or encoder telegram is written.
To influence or evaluate telegram contents for process-specific reasons, a data interface via a data block must be connected in between before and after the closed loop position control.
 The input area of the telegram can be edited using the MC-PreServo [OB67] organization block. The MC-PreServo is called before the MC-Servo.
 The input area of the telegram can be edited using the MC-PostServo [OB95] organization block. The MC-PostServo is called after the MC-Servo.
The data block must be created by the user and contain a data structure of data type "PD_TELx" for the data connection. Here, "x" stands for the telegram number of the drive or encoder configured in the device configuration.
The organization blocks MC-PreServo and MC-PostServo can be programmed by the user and must be added with the command "Add new block". The connection to the I/O via telegram must be programmed in this organization block. When you use DSC you have to edit the signs of life in the telegrams in MC-PreServo and MC-PostServo yourself according to the PROFIdrive standard.

See also

PROFIdrive telegrams (Page 27)

3.7.9

Tags: Drive and encoder connection (S7-1500, S7-1500T)
The following technology object tags are relevant for the drives and encoder connections:

Drive telegram Tag <TO>.Actor.Interface.AddressIn <TO>.Actor.Interface.AddressOut
<TO>.Actor.DriveParameter. ReferenceSpeed <TO>.Actor.DriveParameter. MaxSpeed <TO>.Actor.DriveParameter. ReferenceTorque

Description Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram or the analog setpoint Reference value (100%) for the speed setpoint (NSET) of the drive Maximum value for the speed setpoint of the drive (NSET)
Reference torque for the torque transferred as a percentage

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

45

Basics (S7-1500, S7-1500T) 3.7 Drive and encoder connection (S7-1500, S7-1500T)

Encoder telegram Tag <TO>.Sensor[1..4].Interface.AddressIn <TO>.Sensor[1..4].Interface. AddressOut <TO>.Sensor[1..4].System <TO>.Sensor[1..4].Type <TO>.Sensor[1..4].Parameter. Resolution
<TO>.Sensor[1..4].Parameter. StepsPerRevolution <TO>.Sensor[1..4].Parameter. DeterminableRevolutions

Description Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram
Encoder system linear or rotary Encoder type, incremental, absolute or cyclic absolute Resolution for linear encoder The grid spacing corresponds to the distance between two marks. Steps per revolution for rotary encoder
Number of differentiable encoder revolutions for a multi-turn absolute encoder

Fine resolution
Tag
<TO>.Sensor[1..4].Parameter. FineResolutionXist1
<TO>.Sensor[1..4].Parameter. FineResolutionXist2

Description
Number of bits for fine resolution XIST1 (cyclic actual encoder value)
Number of bits for fine resolution XIST2 (absolute value of encoder)

Simulation mode Tag <TO>.Simulation.Mode

Description

Simulation mode

0

No simulation, normal operation

1

Simulation mode

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

46

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.8 Mechanics (S7-1500, S7-1500T)

3.8

Mechanics (S7-1500, S7-1500T)

For the display and processing of the technology object's position, the decisive factor is whether the position is represented as a unit of length (linear axis) or a unit of angle (rotary axis).

Examples of units of length: mm, m, km

Examples of units of angle: °, rad

For the determination of the physical position from an actual encoder value, the system must know the various properties and configurations of the mechanics.

Positioning axis/synchronous axis
The following configuration options for mechanics are supported:  Load gear  Leadscrew pitch (linear axes only)  Encoder mounting type:
­ Motor side (before the load gear) ­ Load side (after the load gear and as applicable the leadscrew) ­ External (e.g. odometer)  Inversion of drive direction  Inversion of encoder direction

External encoder
The following configuration options for mechanics are supported:  Measuring gear (for rotary encoders)  Leadscrew pitch (only with linear system of units and rotary encoders)  Inversion of encoder direction

Speed axis

The following configuration options for mechanics are supported:  Load gear  Inversion of drive direction

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

47

Basics (S7-1500, S7-1500T) 3.8 Mechanics (S7-1500, S7-1500T)

3.8.1

Tags: Mechanics (S7-1500, S7-1500T)
The following technology object tags are relevant for the setting of the mechanics:

Type of motion Tag <TO>.Properties.MotionType

Description

Indication of linear or rotary motion

0

Linear motion

1

Rotary motion

Load gear Tag <TO>.LoadGear.Numerator <TO>.LoadGear.Denominator

Description Load gear numerator Load gear denominator

Leadscrew pitch Tag <TO>.Mechanics.LeadScrew

Description Leadscrew pitch

Encoder mounting type

Tag

Description

<TO>.Sensor[1..4].MountingMode

Encoder mounting type

<TO>.Sensor[1..4].Parameter.Distance Load distance per encoder revolution with an externally

PerRevolution

mounted encoder

Inversion Tag <TO>.Actor.InverseDirection <TO>.Actor.Efficiency <TO>.Sensor[1..4].InverseDirection

Description Setpoint inversion Efficiency of leadscrew pitch Actual value inversion

Modulo Tag <TO>.Modulo.Enable <TO>.Modulo.Length <TO>.Modulo.StartValue

Description Enable modulo Modulo length Modulo start value

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

48

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.9 Traversing range limitation (S7-1500, S7-1500T)

3.9

Traversing range limitation (S7-1500, S7-1500T)

Hardware and software limit switches limit the permissible traversing range and operating range of the positioning axis/synchronous axis. Before use, they must be enabled in the configuration or in the user program.

The following figure shows the relationship between the operating range, maximum traversing range and limit switches:

 Mechanical endstop  Hardware limit switches  Software limit switches  Maximum traversing range  Operating range

3.9.1

Hardware limit switches (S7-1500, S7-1500T)
Hardware limit switches are limit position switches that limit the maximum permissible traversing range of the axis.
Select the positions of the hardware limit switches so that there is adequate braking distance for the axis when needed. The axis should come to a standstill before a mechanical endstop.

Approaching the hardware limit switches
In the monitoring of range limitation, no distinction is made as to whether the switches are reached or crossed.
If a hardware limit switch is reached, technology alarm 531 is output, and the technology object is disabled (alarm response: remove enable).

Exception

If the hardware limit switches are used as reversing output cams during homing, then the monitoring of the hardware limit switches has no effect.
When hardware limit switches are used as reversing output cams, the axis is braked with the deceleration configured in the dynamic defaults.
This must be taken into account when planning the distance of the hardware limit switch to the mechanical endstop.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

49

Basics (S7-1500, S7-1500T) 3.9 Traversing range limitation (S7-1500, S7-1500T)

Retracting

The position of the axis when the hardware limit switch is detected is stored internally on the CPU. The status of the reached hardware limit switch is reset only after the hardware limit switch is left and the axis is once again in the maximum traversing range.
To retract the axis after it reaches the hardware limit switch and to reset the status of the hardware limit switch, follow the steps below:
1. To enable motion in the retraction direction, acknowledge the technology alarm.
2. Traverse the axis in the retraction direction until the hardware limit switch is left. The axis must then be within the maximum traversing range. If you move the axis opposite the retraction direction before the hardware limit switch is left, the monitoring will be triggered again.
The following chart shows the behavior of the status word when the hardware limit switch is reached and when the axis is retracted:

 <TO>.StatusWord.X17 (HWLimitMinActive)

0

Negative hardware limit switch not reached

1

Negative hardware limit switch reached or overtraveled

 <TO>.StatusWord.X18 (HWLimitMaxActive)

0

Positive hardware limit switch not reached

1

Positive hardware limit switch reached or overtraveled

 The position of the axis when the positive hardware limit switch is detected is saved internally

in the CPU. To reset the status of the hardware limit switch, the axis position must fall short of

this position.

 The position of the axis when the negative hardware limit switch is detected is saved internally

in the CPU. To reset the status of the hardware limit switch, the axis position must go past this

position.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

50

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.9 Traversing range limitation (S7-1500, S7-1500T)

Deactivating the hardware limit switch
For example, to enable homing at the fixed stop, you can temporarily disable the hardware limit switch using the Motion Control instruction "MC_WriteParameter (Page 249)" via the parameter "PositionLimits_HW.Active" = FALSE.

See also

MC_WriteParameter: Write parameter V5 (Page 249) Direct homing (Page 83)

3.9.2

Software limit switch (S7-1500, S7-1500T)
The operating range of the axis is limited with software limit switches. Relative to the traversing range, always position the software limit switches within the hardware limit switches. Since the positions of the software limit switches can be flexibly configured, the operating range of the axis can be individually adapted in accordance with the current velocity profile.
Software limit switches are only in effect when there is a valid actual value after homing the technology object. The monitoring of the software limit switches is relative to the setpoint.

Modulo function is enabled
When the modulo function is enabled, the modulo position is monitored.
The software limit switches are configured and activated in the axis configuration. The software limit switches can be activated or deactivated in the user program using the "<TO>.PositionLimits_SW.Active" tag. If the positions of both software limit switches are outside the modulo range, the monitoring has no effect. No check is made to determine whether the positions of the software limit switches are within the modulo range.

Approaching the software limit switches
The axis continually checks the position of the software limit switch during motion and brakes to exactly this position, if necessary.
If the software limit switches are reached, then technology alarm 533 is output, and the axis is stopped with the maximum dynamic values (alarm response: Stop with maximum dynamic values). The technology object remains enabled.

Overrun of the software limit switches
If a software limit switch is crossed, technology alarm 534 is output, and the technology object is disabled (alarm response: remove enable).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

51

Basics (S7-1500, S7-1500T) 3.9 Traversing range limitation (S7-1500, S7-1500T)

Retracting

To retract the axis after violation of the software limit switch, follow the steps below: 1. Acknowledge the technology alarm. 2. Move the axis in the retraction direction until the software limit switch is left.
If you move the axis opposite the retraction direction before the software limit switch is left, the monitoring with be triggered again.

3.9.3

Tags: Traversing range limitation (S7-1500, S7-1500T)

Software limit switch
The following technology object tags are relevant for software limit switches:

Status indicators
Tag
<TO>.StatusWord.X15 (SWLimitMinActive) <TO>.StatusWord.X16 (SWLimitMaxActive) <TO>.ErrorWord.X8 (SWLimit)

Description Negative software limit switch is active.
Positive software limit switch is active.
An alarm is pending, indicating that a software limit switch has been violated.

Control bits Tag <TO>.PositionLimits_SW.Active

Description
Enables/disables the monitoring of the software limit switches.

Position values Tag <TO>.PositionLimits_SW.MinPosition <TO>.PositionLimits_SW.MaxPosition

Description Position of the negative software limit switch Position of the positive software limit switch

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

52

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.9 Traversing range limitation (S7-1500, S7-1500T)

Hardware limit switches
The following technology object tags are relevant for hardware limit switches:

Status indicators
Tag
<TO>.StatusWord.X17 (HWLimitMinActive) <TO>.StatusWord.X18 (HWLimitMaxActive) <TO>.ErrorWord.X9 (HWLimit)

Description Negative hardware limit switch is active.
Positive hardware limit switch is active.
An alarm is pending. A hardware limit switch was reached.

Control bits Tag <TO>.PositionLimits_HW.Active

Description
Enables/disables the monitoring of the hardware limit switches.

Parameters Tag <TO>.PositionLimits_HW. MinSwitchLevel
<TO>.PositionLimits_HW. MinSwitchAddress <TO>.PositionLimits_HW. MaxSwitchLevel
<TO>.PositionLimits_HW. MaxSwitchAddress

Description
Level selection for activation of the low hardware limit switch
FALSE At low level, the signal is active.
TRUE At high level, the signal is active.
Byte number of the I/O address of the hardware limit switch for the low or minimum position
Level selection for activation of the high hardware limit switch
FALSE At low level, the signal is active.
TRUE At high level, the signal is active.
Byte number of the I/O address of the hardware limit switch for the high or maximum position

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

53

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

3.10

Motion control and limits for dynamics (S7-1500, S7-1500T)
Motion control of the axis occurs by means of velocity profiles (Page 54). The velocity profiles are calculated in accordance with the specifications for dynamics. A velocity profile defines the behavior of the axis during approach, braking and changes in velocity. During positioning a velocity profile is calculated, that moves the axis to the target point.
Maximum values for velocity, acceleration and jerk result from the properties of the drive and the mechanics. These maximum values can be configured in the limits for dynamics. The limits for dynamics are in effect as limits for every motion generated by means of the technology object. The dynamic limits have no effect on a following axis in synchronous operation.
The configurable emergency stop deceleration (Page 56) is triggered by the Motion Control instruction MC_Power or by a technology alarm.
The jerk limit reduces the mechanical load during an acceleration ramp or deceleration ramp. A "smoothed" velocity profile results.

3.10.1

Velocity profile (S7-1500, S7-1500T)
Velocity profiles with or without jerk limitation are supported for motion control of the axis.
The dynamic values for the motion are specified in the Motion Control job. Alternatively, the values of the dynamic defaults (Page 125) can be used. The defaults and the limits for velocity, acceleration, deceleration and jerk are set in the configuration.
To influence velocity, a velocity override can override the current traversing velocity.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

54

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)
Velocity profile without jerk limitation
The following figure shows velocity, acceleration and jerk:

Acceleration Deceleration

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

55

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)
Velocity profile with jerk limitation
The following figure shows velocity, acceleration and jerk:

Acceleration Deceleration
A velocity profile with jerk limitation is employed for a continuous acceleration and deceleration sequence. The jerk can be specified.

3.10.2
56

Emergency stop deceleration (S7-1500, S7-1500T)
When stopping with the emergency stop ramp, the axis is braked from the current actual position and actual velocity to a standstill without a jerk limitation, using the configured emergency deceleration.
In the following cases the configured emergency stop deceleration is in effect:
 In case of an emergency stop ramp that has been enabled via the Motion Control instruction "MC_Power" or "MC_Stop".
 For a technology alarm with the local alarm response "Stop with emergency stop ramp".
This emergency stop deceleration can be set greater than the maximum deceleration. If the emergency stop deceleration is set lower than this, it may occur that the axis does not stop until after the limit switch in the case of "Stop at software limit switch" and the occurrence of a technology alarm with the local alarm response "Stop with emergency stop ramp".
S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

3.10.3

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)
Motion specification via "MotionIn" (S7-1500T)
In contrast to the Motion Control instructions such as "MC_MoveAbsolute" and "MC_MoveRelative", no motion profile is calculated by the system when "MC_MotionInVelocity" and "MC_MotionInPosition" are used. Each individual setpoint of the motion profile (motion vector) must be specified with the "MotionIn" instruction in the application cycle. This allows you to calculate your own motion profile.
The setpoints are typically adapted in the processing cycle of the technology object. For this purpose, the "MotionIn" instruction is called in the organization block MC-PreServo [OB67]. The setpoints are then effective directly at the axis in MC-Servo [OB91].
WARNING
Uncontrolled axis motions
When using the motion specification via the Motion Control instructions "MC_MotionInVelocity" and "MC_MotionInPosition", the axis can perform uncontrolled motions.
Consider the current dynamics of the axis when specifying the new motion vectors. The motion vectors must be consistent with each other.
Set up the following protective measures before operating with the Motion Control instructions "MC_MotionInVelocity" and "MC_MotionInPosition": · Ensure that the EMERGENCY OFF switch is within the reach of the operator. · Enable the hardware limit switches. · Enable the software limit switches. · Ensure that following error monitoring is enabled.
Note that a following axis that is coupled to the axis is also moved.

Overriding with "MotionIn" instructions
If a Motion Control instruction is overridden by a "MotionIn" instruction, the specified setpoints take immediate effect with the current application cycle. The dynamic results exclusively through the setpoint specifications of the user program. It is not limited and no smooth transition takes place from the current motion state. Consider the current dynamics of the axis when specifying the new motion vectors. Note that dynamic limits set on the technology object have no effect. Only limits set on the drive side are in effect.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

57

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

Stopping the "MotionIn" instructions
The "MotionIn" instructions can be canceled by the following means:
 Overriding them with another Motion Control instruction
The "MotionIn" instructions are triggered according to the behavior described in the section "Tripping characteristics V5: Homing and motion jobs (Page 271)". As a rule, the current dynamics are overridden by the new motion.
Note Dynamic deviation possible
Pay attention to consistent specifications relating to velocity and acceleration when the "MotionIn" instruction is overridden by another Motion Control instruction.
When the "MotionIn" instruction is overridden, make sure that the new acceleration specifications are coordinated with the currently effective acceleration because the last effective acceleration value will be applied.
 Setting the parameter "Enable" to "FALSE"
If you set "Enable" parameter to "FALSE", the setpoint is immediately set to zero. Note that the dynamic limits set on the technology object have no effect. Only limits set on the drive side are in effect.

"MC_MotionInVelocity"
Use the "MC_MotionInVelocity" instruction to specify the velocity and acceleration of the motion. The instruction is applicable for speed, positioning and constant axes.
To execute the instruction, you must at least specify the velocity. Acceleration is usually only required for the substituting running motions. By default, the value of the acceleration is zero.

"MC_MotionInPosition"
Use the "MC_MotionInPosition" instruction to specify the position, velocity and acceleration of the motion. The instruction is used for velocity, positioning and synchronous axes.
To execute the instruction, you must at least specify the position and velocity. Acceleration is usually only required for the substituting running motions. By default, the value of the acceleration is zero. The specified setpoints must be consistent with each other.
The position specification is position-controlled. If you use a velocity precontrol, the velocity specification is processed via the velocity precontrol.

See also

MC_MotionInVelocity: Specify motion setpoints V5 (Page 251) MC_MotionInPosition: Specify motion setpoints V5 (Page 255)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

58

Function Manual, 12/2019, A5E37577655-AC

3.10.4 3.10.4.1

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)
Torque limits (S7-1500, S7-1500T)
Force/torque limiting (S7-1500, S7-1500T)
Adjustable force/torque limiting is available for the speed axis, positioning axis and synchronous axis technology objects. The force/torque limiting can be activated and deactivated before and during a motion job. To use force/torque limiting, the drive and the PROFIdrive telegram must support torque reduction. You can use, for example, a telegram 10x. The limit value can be configured as a default value during configuration of the axis or it can be defined in the user program using Motion Control instruction "MC_TorqueLimiting". You specify the limiting values in the configured unit of measure for force or torque. The units of measure are defined in the "Basic parameters" configuration window. The following configuration options are available for force/torque limiting.  "Linear" axis type
­ Torque limiting is active on motor side ­ Force limiting is active on the load side  "Rotary" axis type ­ Torque limiting is active on load side or motor side The force/torque limit defined by the user in accordance with the specification in the PROFIdrive telegrams 10x are transferred internally to the drive as a percentage torque reduction. The reference torque set in the "Data exchange with the drive" configuration dialog must match the reference torque set for the drive. Linear axis type Load-side force limitation you have defined is converted by the technology into torque reduction. If the limiting relates to the load side, the gear and leadscrew parameters defined in the "Mechanics" configuration dialog are taken into consideration. If the efficiency of the gear and leadscrew is crucial, you can set them in the "<TO>.Actor.Efficiency" tag. Rotary axis type The torque is reduced on the load side with the rotary axis type. The gear parameters defined in the "Mechanics" configuration window are taken into consideration. If the efficiency of the gear is crucial, you can set it in the "<TO>.Actor.Efficiency" tag.
The defined limiting values act as an absolute value and thus in the same way for positive and negative forces/torques.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

59

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

Positioning and following error monitoring with active force/torque limiting
As a result of force/torque limiting, a larger setpoint-actual value difference can build up for position-controlled axes, which may cause unwanted activation of the positioning and following error monitoring.
Therefore, in the "Torque limiting" configuration window, the positioning and following error monitoring of the axis can be set as deactivated by default when force/torque limiting is active. If necessary, the positioning and following error monitoring can also be kept active even when force/torque limiting is active.

Typical behavior of a positioning or synchronous axis with active force/torque limiting
With active force/torque limiting, a larger setpoint-actual value difference can build up than during motion without force/torque limiting.
Given a constant setpoint, the axis makes repeated attempts to reduce the following error.
When the limiting values are increased or limiting is deactivated during active closed loop position control, the axis can accelerate briefly to reduce the following error. If the axis is switched to non-position-controlled operation, e.g. using "MC_MoveVelocity" with "PositionControlled" = FALSE, the following error is no longer in effect.

Stopping an axis with active force/torque limiting
When stopping an axis in position-controlled mode with "MC_Halt" or "MC_Stop", the position setpoint and the velocity setpoint are used as basis. Torque limiting still remains active and any accumulated following error is reduced. The axis is in standstill when the actual velocity "0.0" is reached and the minimum dwell time in the standstill window has expired. The axis remains enabled.
When stopping an axis with "MC_Power" and an emergency stop ramp, the actual position value and the actual velocity are used as a basis. The axis is braked with the configured emergency stop deceleration without any jerk limit and brought to a standstill. The axis is then disabled when at a standstill.

See also

Fixed stop detection (Page 61) Configuration - Torque limits (Page 107) Configuration - Torque limits (Page 131)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

60

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

3.10.4.2

Fixed stop detection (S7-1500, S7-1500T)
With the Motion Control instruction "MC_TorqueLimiting", you activate and monitor a fixed stop detection. Together with a position-controlled motion job, a "Travel to fixed stop" can be realized. The operation is also referred to as clamping. "Travel to fixed stop" can be used, for example, to move quills against the workpiece with a specified torque.
The fixed stop detection is configured in the configuration window "Extended parameters > Limits > Fixed stop detection".
The fixed stop detection is only possible in position-controlled operation of the axis. If the drive and telegram support force/torque limiting, this is active during travel to fixed stop and for clamping.

Detection of the fixed stop using following error
If the drive is stopped by a mechanical fixed stop during a motion job, the following error is increased. When the following error configured in the configuration window "Extended parameters > Limits > Fixed stop detection" is exceeded, this is regarded as the fixed stop having been reached.
When following error monitoring is activated, the configured following error must be greater than the following error for fixed stop detection.

Clamping at the mechanical endstop
When the fixed stop is reached, the active position-controlled motion job is canceled with "CommandAborted". The setpoint is no longer changed and the following error remains constant. The closed loop position control remains active and the monitoring of the configured "Positioning tolerance" is activated The drive is in "Clamping" state.
If the drive and telegram support force/torque limiting, this continues to be active with active fixed stop detection. During clamping, the clamping force or clamping torque can be changed. The value in input parameter "Limit" of the Motion Control instruction "MC_TorqueLimiting" can be changed for this.

Monitoring of the clamping
If the actual position changes by a value greater than the configured "Positioning tolerance" during active clamping, this is regarded as the break or push-back of the fixed stop. An alarm is triggered. The axis is disabled and the drive is stopped according to its configuration.
If the position setpoint is within the configured "Positioning tolerance", the breaking away or turning back of the fixed stop cannot be detected.
The configured position tolerance must be less than the configured following error for detection of clamping.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

61

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

Retracting

Retracting from the fixed stop is only possible with a position-controlled motion job in the opposite direction to the fixed stop.
The "Travel to fixed stop" or "Clamping" function is ended when the "Positioning tolerance" is left in the retraction direction.

See also

Force/torque limiting (Page 59)
Configuration - Fixed stop detection (Page 133)
MC_TorqueLimiting: Activate/deactivate force/torque limit / fixed stop detection V5 (Page 265)

3.10.4.3

Additive setpoint torque (S7-1500, S7-1500T)
The Motion Control instruction "MC_TorqueAdditive" allows you to apply additional torque in the drive.
The additive setpoint torque is used for example in torque feedforward control or the specification of the tensile torque for winding applications.
The following requirements must be fulfilled to set the additive torque setpoint:
 SINAMICS drive (see "compatibility list")
 SIEMENS supplementary telegram 750 for transmitting the torque data to the drive
The additional torque can be either positive or negative. The value specified in the instruction is a technological value, not a percentage. Set the unit of measurement for the torque at the axis (default value: Nm).

See also

MC_TorqueAdditive: Specify additive torque V5 (Page 259)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

62

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

3.10.4.4

Permissible torque range (S7-1500, S7-1500T)
The Motion Control instruction "MC_TorqueRange" allows you to set torque limits for the drive.
The motion control instruction is used, for example, for winding applications in order to prevent the tearing of the material.
The following requirements must be fulfilled to set the torque data:
 SINAMICS drive (see "compatibility list")
 SIEMENS supplementary telegram 750 for transmitting the torque data to the drive
The value specified in the instruction is a technological value, not a percentage. Set the unit of measurement for the torque at the axis (default value: Nm). If you invert the setpoints at the technology object of the axis, the values for the high and low torque limit are output inverted and reversed.
If the torque limitation is activated by specifying the high and low torque limit, the following monitorings and limits are deactivated:
 Following error monitoring
 Time limits for positioning monitoring
 Time limits for standstill monitoring
Monitoring remains in effect if you have selected the option "Leave position-related monitoring enabled" under "Technology object > Configuration > Extended parameters > Limits > Torque limiting".

See also

MC_TorqueRange: Set high and low torque limits V5 (Page 262)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

63

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

3.10.5

Tags: Motion control and limits for dynamics (S7-1500, S7-1500T)
The following technology object tags are relevant for motion control:

Status
Tag
<TO>.StatusWord
<TO>.Position
<TO>.Velocity <TO>.VelocitySetpoint
<TO>.ActualPosition <TO>.ActualVelocity
<TO>.ActualSpeed
<TO>.Acceleration <TO>.ActualAcceleration
<TO>.StatusSynchronizedMotion. StatusWord.X0 (MaxVelocityExceeded)
<TO>.StatusSynchronizedMotion. StatusWord.X1 (MaxAccelerationExceeded) <TO>.StatusSynchronizedMotion. StatusWord.X2 (MaxDecelerationExceeded)
<TO>.StatusMotionIn.FunctionState

Description

Status indicator for an active motion

Position setpoint

Velocity setpoint/speed setpoint

Output velocity setpoint/speed setpoint

Actual position

Actual velocity

Actual speed of the motor (only with PROFIdrive drive type)

Setpoint acceleration

Actual acceleration

The tag is set to the value "TRUE" when the maximum velocity configured for the following axis is exceeded during synchronous operation.

The tag is set to the value "TRUE" when the maximum acceleration configured for the following axis is exceeded during synchronous operation.

The tag is set to the value "TRUE" when the maximum deceleration configured for the following axis is exceeded during synchronous operation.

Status of the "MotionIn" function

0

No "MotionIn" function active

1

"MC_MotionInVelocity" active

2

"MC_MotionInPosition" active

Override Tag <TO>.Override.Velocity

Description Velocity or speed override

Dynamic limit values Tag <TO>.DynamicLimits.MaxVelocity <TO>.DynamicLimits.Velocity <TO>.DynamicLimits.MaxAcceleration <TO>.DynamicLimits.MaxDeceleration <TO>.DynamicLimits.MaxJerk

Description Dynamic limitation for maximum speed (mechanical) Dynamic limitation for maximum speed (programmable) Dynamic limitation for maximum acceleration Dynamic limitation for maximum deceleration Dynamic limitation for maximum jerk

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

64

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.10 Motion control and limits for dynamics (S7-1500, S7-1500T)

Defaults for the dynamics
Tag <TO>.DynamicDefaults.Velocity <TO>.DynamicDefaults.Acceleration <TO>.DynamicDefaults.Deceleration <TO>.DynamicDefaults.Jerk <TO>.DynamicDefaults. EmergencyDeceleration

Description Default velocity Default acceleration Default deceleration Default jerk Emergency stop deceleration

Torque limiting Tag <TO>.TorqueLimiting.LimitDefaults. Torque <TO>.TorqueLimiting.LimitDefaults. Force <TO>.TorqueLimiting.LimitBase
<TO>.TorqueLimiting. PositionBasedMonitorings
<TO>.StatusTorqueData. CommandAdditiveTorqueActive
<TO>.StatusTorqueData. CommandTorqueRangeActive
<TO>.StatusTorqueData.ActualTorque

Description Limiting torque

Limiting force

Torque limiting motor or drive side

0

Motor side

1

Load side

Positioning and following error monitoring

0

Disabled

1

Enabled

Additive torque setpoint function

0

Disabled

1

Enabled

Torque limits function

0

Disabled

1

Enabled

Actual torque of the axis

Fixed stop detection
Tag <TO>.Clamping. FollowingErrorDeviation <TO>.Clamping.PositionTolerance

Description
Value of the following error starting from which the fixed stop is detected
Position tolerance for the clamping monitoring

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

65

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

3.11

Homing (S7-1500, S7-1500T)
With homing, you create the relationship between the position in the technology object and the mechanical position. The actual position value in the technology object is assigned to a homing mark at the same time. This homing mark represents a known mechanical position.
With incremental actual values this process is called homing; with absolute actual values it is called absolute encoder adjustment.
Homing is a requirement for display of the correct position for the technology object and for absolute positioning.
Homing is activated with the Motion Control instruction "MC_Home".

Homing status

The "<TO>.StatusWord.X5 (HomingDone)" tag of the technology object indicates whether the axis or external encoder technology object is homed.

Type of homing
Homing can occur by means of an independent homing motion (active homing), the detection of a homing mark during a motion initiated on the user side (passive homing) or a direct position assignment.
A distinction is made between the following types of homing:
 Active homing
Active homing initiates a homing movement and performs the necessary homing mark approach. When the homing mark is detected, the actual position is set to the value specified in MC_Home. It is possible to specify a home position offset. Retraction to the home position offset occurs automatically during the home position approach.
When active homing starts, current traversing movements are aborted.
 Passive homing
The homing job does not perform its own homing motion. When the homing mark is detected during a motion initiated on the user side, the actual position is set to the value specified in "MC_Home".
Passive homing is also called homing on the fly.
 Direct homing
With the homing job, the actual position is set directly to the value specified in "MC_Home" or is offset by this value.
 Absolute encoder adjustment
In absolute encoder adjustment, the actual position of the axis or encoder is set with the absolute or relative value specified at "MC_Home". The absolute value offset is stored retentively in the CPU.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

66

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

Homing mode

Depending on the type of homing mark and homing mark search, a distinction is made among the following homing modes (Page 69):  Homing with homing output cam and zero mark via PROFIdrive telegram  Homing with zero mark via PROFIdrive telegram  Homing with digital input

3.11.1

Terms (S7-1500, S7-1500T)

Homing mark

A homing mark is an input signal, on whose occurrence a known mechanical position can be assigned to the actual values.
A homing mark can be:
 A zero mark
The zero mark of an incremental encoder or an external zero mark is used as a homing mark.
The zero mark is detected at the drive module or encoder module and transmitted in the PROFIdrive telegram. Perform the setting and evaluation as an encoder zero mark or external zero mark at the drive module and encoder module.
 An edge at the digital input
The negative or positive edge at a digital input is used as a homing mark.

Reference cam
If there are several zero marks in the traversing range, the reference cam is used to select a specific zero mark before or after the reference cam.

Homing mark position
This is the position assigned to the homing mark. The homing mark position corresponds to the home position minus the home position offset.

Home position
At the end of the active homing motion, the axis arrives at the home position.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

67

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Home position offset
The difference between the home position and the homing mark position is the home position offset. A home position offset only has an effect with active homing. The offset is traversed after the synchronization of the axis using the Motion Control instruction "MC_Home". For axes with modulo setting, the home position offset is always traversed with the direction setting for the shortest path.
Direction reversal at the hardware limit switch (reversing cam)
Hardware limit switches can be used as reversing cams in active homing. If the homing mark was not detected or was approached from the wrong side, the motion continues in the opposite direction after the reversing cam.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

68

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

3.11.2

Homing mode (S7-1500, S7-1500T)
Various homing modes are available for the positioning axis/synchronous axis and external encoder technology objects with incremental encoders. The homing mode is set in the configuration.

Homing with homing cam and zero mark via PROFIdrive telegram
The system checks for when the reference cam is reached. After the reference cam has been reached and left again in the assigned homing direction, zero mark detection is enabled via the PROFIdrive telegram.
When the zero mark is reached in the pre-selected direction, then the actual position of the technology object is set to the homing mark position.

Homing with zero mark via PROFIdrive telegram
The system enables zero mark detection, as soon as the actual value of the technology object moves in the assigned homing direction.
When the zero mark is reached in the specified homing direction, the actual position of the technology object is set to the homing mark position.

Homing with digital input
The system checks the state of the digital input, as soon as the actual value of the axis or encoder moves in the assigned homing direction. When the homing mark is reached (setting of the digital input) in the specified homing direction, the actual position of the technology object is set to the homing mark position.
Note The digital inputs must be placed into the process image partition "PIP OB Servo". The filter time of the digital inputs must be set smaller than the duration of the input signal at the reference point switch.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

69

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

3.11.3

Active homing with homing output cam and zero mark (S7-1500, S7-1500T)
The following examples show homing motions in the positive and negative directions.

Example of homing in the positive direction
The approach to the homing mark and the home position occurs in the positive direction. The following figure shows the homing motion with the following settings:  Active homing with homing output cam and zero mark  Approach in the positive direction  Homing in the positive direction  Positive home position offset

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

70

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Example of homing in the negative direction
The approach to the homing mark occurs in the negative direction by means of a direction reversal during the homing process. The approach to home position causes another direction reversal and occurs in the positive direction. The following figure shows the homing motion with the following settings:  Active homing with homing output cam and zero mark  Approach in the positive direction  Homing in the negative direction  Positive home position offset

Motion sequence
The motion occurs in the following sequence:
1. Start of active homing via the "MC_Home" Motion Control instruction
2. Approach to reference output cam
3. Detection of the homing output cam in the homing direction and travel with homing velocity
4. Departure from the reference output cam and travel to the homing mark
With the departure from the homing output cam, the detection of the homing mark is enabled.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

71

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
5. Detection of the homing mark
When the homing mark is detected, the position of the technology object is set depending on the configured mode:
­ "Mode" parameter at "MC_Home" = 3
Position = value in parameter "Position" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset"
­ "Mode" parameter at "MC_Home" = 5
Position = value in tag "<TO>.Homing.HomePosition" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset"
Note Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S71500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
6. Approach to the home position
­ "Mode" parameter at "MC_Home" = 3
The axis moves to the position that is specified in the "Position" parameter.
­ "Mode" parameter at "MC_Home" = 5
The axis moves to the position that is specified in the "<TO>.Homing.HomePosition" tag.
Note
If the velocity cannot be reduced to the reference velocity between detection of the reference output cam and the zero mark, homing is performed at the velocity present when the zero mark is crossed.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

72

Function Manual, 12/2019, A5E37577655-AC

3.11.4

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Active homing with zero mark (S7-1500, S7-1500T)
The following figure shows an example of the homing motion with the following settings:  Active homing with zero mark  Homing in the positive direction  Positive home position offset

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

73

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Motion sequence
The motion occurs in the following sequence: 1. Start of active homing via the Motion Control instruction "MC_Home" 2. Move to the homing mark in the homing direction with the homing velocity 3. Detection of the homing mark
When the homing mark is detected, the position of the axis or encoder is set depending on the configured mode: ­ "Mode" parameter at "MC_Home" = 3
Position = value in parameter "Position" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset" ­ "Mode" parameter at "MC_Home" = 5 Position = value in tag "<TO>.Homing.HomePosition" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset"
Note Parameter "MC_Home.Mode" The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
4. Approach to the home position ­ "Mode" parameter at "MC_Home" = 3 The axis moves to the position that is specified in the "Position" parameter. ­ "Mode" parameter at "MC_Home" = 5 The axis moves to the position that is specified in the "<TO>.Homing.HomePosition" tag.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

74

Function Manual, 12/2019, A5E37577655-AC

3.11.5

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Active homing with digital input (S7-1500, S7-1500T)
The following figure shows an example of the homing motion with the following settings:  Active homing with digital input  Approach in the positive direction  Homing mark on the positive side of the digital input  Positive home position offset

Motion sequence
The motion occurs in the following sequence: 1. Start of active homing via the "MC_Home" Motion Control instruction 2. Detection of the positive edge at the digital input, while moving with homing velocity 3. Approach to the homing mark

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

75

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
4. Detection of the homing mark
In the example, the negative edge of the switch at the digital input represents the homing mark.
When the homing mark is detected, the position of the axis or encoder is set depending on the configured mode:
­ "Mode" parameter at "MC_Home" = 3
Position = value in parameter "Position" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset"
­ "Mode" parameter at "MC_Home" = 5
Position = value in tag "<TO>.Homing.HomePosition" minus "<TO>.Sensor[1..4].ActiveHoming.HomePositionOffset"
Note Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S71500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
5. Approach to the home position
­ "Mode" parameter at "MC_Home" = 3
The axis moves to the position that is specified in the "Position" parameter.
­ "Mode" parameter at "MC_Home" = 5
The axis moves to the position that is specified in the "<TO>.Homing.HomePosition" tag.
Note
If the velocity on the span from the detection of the positive edge to the negative edge cannot be reduced to the homing velocity, then homing occurs at the velocity that exists when the homing mark is traversed.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

76

Function Manual, 12/2019, A5E37577655-AC

3.11.6

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Direction reversal at the hardware limit switch (reversing cam) (S7-1500, S71500T)
During active homing, the hardware limit switch can optionally be used as a reversing cam. If the homing mark is not detected or the motion was not in the homing direction, the motion continues in the opposite direction with the approach velocity after the reversing cam. When the hardware limit switch is reached, the default settings for dynamics take effect. Deceleration with the emergency deceleration does not hereby occur.
NOTICE Avoid moving to a mechanical endstop Ensure by one of the following measures, that in a direction reversal the machine does not move to a mechanical endstop. · Keep the approach velocity low. · Increase the configured acceleration/deceleration. · Increase the distance between the hardware limit switch and the mechanical endstop.

3.11.7

Passive homing with homing output cam and zero mark (S7-1500, S7-1500T)
The following figure shows an example of the homing motion with the following settings:  Passive homing with homing output cam and zero mark  Homing in the positive direction

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

77

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Motion sequence
The motion occurs in the following sequence: 1. Activation of passive homing using the Motion Control instruction "MC_Home" 2. Motion due to a Motion Control job from the user
The detection of the reference output cam and homing mark is enabled when the actual position value of the axis or encoder moves in the assigned homing direction. 3. Detection of the reference output cam 4. Departure from the reference output cam The departure from the reference output cam enables the detection of the homing mark. 5. Detection of the homing mark When the homing mark is detected, the position of the axis or encoder is set depending on the configured mode: ­ "Mode" parameter at "MC_Home" = 2, 8
Position = value in parameter "Position" ­ "Mode" parameter at "MC_Home" = 10
Position = value in tag "<TO>.Homing.HomePosition"
Note Parameter "MC_Home.Mode" The "MC_Home.Mode" parameter for S7-1200 Motion Control and S71500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
Note If the motion direction changes after departure from the reference output cam and before detection of the homing mark, the reference output cam must be detected again. The Motion Control instruction "MC_Home" remains enabled.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

78

Function Manual, 12/2019, A5E37577655-AC

3.11.8

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Passive homing with zero mark (S7-1500, S7-1500T)
The following figure shows an example of the homing motion with the following settings:  Passive homing with zero mark  Homing in the positive direction

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

79

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Motion sequence
The motion occurs in the following sequence: 1. Activation of passive homing using the Motion Control instruction "MC_Home" 2. Motion due to a Motion Control job from the user
The detection of the homing mark is enabled when the actual position value of the axis or encoder moves in the assigned homing direction. 3. Detection of the homing mark During the detection of the homing mark, the position of the axis or encoder is set depending on the set mode: ­ "Mode" parameter at "MC_Home" = 2, 8
Position = value in parameter "Position" ­ "Mode" parameter at "MC_Home" = 10
Position = value in tag "<TO>.Homing.HomePosition"
Note Parameter "MC_Home.Mode" The "MC_Home.Mode" parameter for S7-1200 Motion Control and S71500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

80

Function Manual, 12/2019, A5E37577655-AC

3.11.9

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Passive homing with digital input (S7-1500, S7-1500T)
The following figure shows an example of the homing motion with the following settings:  Passive homing with digital input  Homing in the positive direction  Homing mark on the positive side of the digital input

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

81

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Motion sequence
The motion occurs in the following sequence:
1. Activation of passive homing using the Motion Control instruction "MC_Home"
2. Motion due to a Motion Control job from the user
The detection of the homing mark at the digital input is enabled when the actual position value of the axis or encoder moves in the assigned homing direction.
3. Detection of the homing mark
In the example, the falling edge of the switch at the digital input represents the homing mark.
When the homing mark is detected, the position of the axis or encoder is set depending on the configured mode:
­ "Mode" parameter at "MC_Home" = 2, 8
Position = value in parameter "Position"
­ "Mode" parameter at "MC_Home" = 10
Position = value in tag "<TO>.Homing.HomePosition"
Note Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S71500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

82

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

3.11.10

Direct homing (S7-1500, S7-1500T)
Depending on the configured mode, the position of the positioning axis/synchronous axis or external encoder technology objects can be absolutely or relatively set with "MC_Home".

Set actual position absolutely
To set the actual position absolutely, proceed as follows: 1. In the "MC_Home" Motion Control instruction, enter the absolute actual position in the
"Position" parameter. 2. Call the "MC_Home" Motion Control instruction with parameter "Mode" = 0. The position is set to the value specified in the "Position" parameter.

Set actual position relatively
To set the actual position relatively, proceed as follows: 1. In the "MC_Home" Motion Control instruction, enter the relative actual position in the
"Position" parameter. 2. Call the "MC_Home" Motion Control instruction with parameter "Mode" = 1. The position is set to the current position plus the value specified in the "Position" parameter.

Set position setpoint absolutely
To set the position setpoint absolutely, proceed as follows: 1. In the "MC_Home" Motion Control instruction, enter the absolute position setpoint in the
"Position" parameter. 2. Call the "MC_Home" Motion Control instruction with parameter "Mode" = 11. The position is set to the current position plus the value specified in the "Position" parameter.

Set position setpoint relatively
To set the position setpoint relatively, proceed as follows: 1. In the "MC_Home" Motion Control instruction, enter the relative position setpoint in the
"Position" parameter. 2. Call the "MC_Home" Motion Control instruction with parameter "Mode" = 12. The position is set to the current position plus the value specified in the "Position" parameter.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

83

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

Direct homing at fixed stop
For direct homing at fixed stop, all motions must be programmed in the user program. Change the configuration data directly in the user program. The fixed stop is used as homing mark.
NOTICE Too fast manual traversing to the fixed stop Too fast a manual traversing of the axis can lead to machine damage. Move the axis manually with low speed/velocity. Configure a suitable torque limit.
To set the position at the fixed stop absolutely or relatively, proceed as follows: 1. Activate a suitable fixed stop detection with the Motion Control instruction
"MC_TorqueLimiting". 2. Deactivate the existing hardware limit switch with the Motion Control instruction
"MC_WriteParameter". 3. Move the axis to the fixed stop using a suitable motion job. For example, use the Motion
Control instructions "MC_MoveRelative" or "MC_MoveJog". 4. After the axis has reached the fixed stop, execute a direct homing using the Motion
Control instruction "MC_Home". 5. Move the axis back to the working area between the hardware limit switches. 6. Activate the hardware limit switch with the Motion Control instruction
"MC_WriteParameter". 7. Deactivate the fixed stop detection using the Motion Control instruction
"MC_TorqueLimiting".

See also

MC_TorqueLimiting V5 (Page 265) MC_WriteParameter V5 (Page 249) MC_MoveJog V5 (Page 227) MC_MoveRelative V5 (Page 216) MC_Home V5 (Page 200)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

84

Function Manual, 12/2019, A5E37577655-AC

3.11.11

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Absolute value adjustment (S7-1500, S7-1500T)
In absolute value adjustment, Motion Control determines an absolute value offset, that is retentively stored on the CPU. Depending on the configured mode, the position of the axis or the encoder is absolutely or relatively set in the "MC_Home" Motion Control instruction.  Parameter "Mode" = 7 (absolute specification of position)
Position = value in parameter "Position"  Parameter "Mode" = 6 (relative specification of position)
Position = current position + value in parameter "Position"

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

85

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

3.11.12

Resetting the "Homed" status (S7-1500, S7-1500T)

Incremental encoder
In the following cases, the "Homed" status is reset, and the technology object must be rehomed.
 Error in sensor system/encoder failure
 Triggering of the active homing with the Motion Control instruction "MC_Home" with "Mode" = 3, 5
(After successful completion of the homing operation, the "Homed" status is reset.)
Note Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
 Triggering of passive homing using the Motion Control instruction "MC_Home" with "Mode" = 2, 8, 10
(After successful completion of the homing operation, the "Homed" status is reset.)
 Replacement of the CPU
 Replacement of the SIMATIC Memory Card
 POWER OFF
 Memory reset
 Modification of the encoder configuration
 Restart of the technology object
 Restoration of the CPU factory settings
 Transfer of a different project into the controller

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

86

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)
Absolute encoder
In the following cases, the "Homed" status is reset, and the technology object must be rehomed.  Replacement of the CPU  Modification of the encoder configuration  Restoration of the CPU factory settings  Transfer of a different project into the controller When you use a new absolute value encoder you need to home the absolute encoder once again. Resetting the memory of the CPU or upgrading a project does not require another absolute value adjustment.

3.11.13

Tags: Homing (S7-1500, S7-1500T)
The following technology object tags are relevant for homing:

Status indicators
Tag <TO>.StatusWord.X11 (HomingCommand) <TO>.StatusWord.X5 (HomingDone) <TO>.ErrorWord.X10 (HomingFault)

Description Homing job running
Technology object homed Error occurred during homing

Note Evaluation of the bits in StatusWord, ErrorWord and WarningWord
Note the information in section "Evaluating StatusWord, ErrorWord und WarningWord" of the documentation "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Approach to reference output cam Tag <TO>.Homing.ApproachDirection
<TO>.Homing.ApproachVelocity

Description
Start direction or approach direction for the approach to the reference output cam
Velocity for the approach to the reference output cam

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

87

Basics (S7-1500, S7-1500T) 3.11 Homing (S7-1500, S7-1500T)

Approach to the homing mark
Tag <TO>.Sensor[1..4].ActiveHoming. Direction <TO>.Homing.ReferencingVelocity

Description Homing direction
Velocity for the approach to the homing mark

Approach to home position Tag <TO>.Homing.ApproachVelocity

Description Velocity for the move to homing point

Positions
Tag <TO>.Homing.AutoReversal <TO>.Homing.HomePosition <TO>.StatusSensor[1..4].AbsEncoder Offset

Description Reversal at the hardware limit switches Home position Calculated offset after the absolute encoder adjustment

Parameters for active homing

Tag

Description

<TO>.Sensor[1..4].ActiveHoming.Mode Homing mode

<TO>.Sensor[1..4].ActiveHoming. SideInput

Side of the digital input

<TO>.Sensor[1..4].ActiveHoming. Direction

Homing direction or approach direction

<TO>.Sensor[1..4].ActiveHoming. DigitalInputAddress

Address of digital input

<TO>.Sensor[1..4].ActiveHoming. HomePositionOffset

Offset of the homing mark from the home position

Parameters for passive homing
Tag
<TO>.Sensor[1..4].PassiveHoming. Mode
<TO>.Sensor[1..4].PassiveHoming. SideInput
<TO>.Sensor[1..4].PassiveHoming. Direction
<TO>.Sensor[1..4].PassiveHoming. DigitalInputAddress

Description Homing mode Side of the digital input Homing direction or approach direction Address of digital input

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

88

Function Manual, 12/2019, A5E37577655-AC

3.12

Basics (S7-1500, S7-1500T) 3.12 Position monitoring functions (S7-1500, S7-1500T)
Position monitoring functions (S7-1500, S7-1500T)
The following functions are available in the positioning axis/synchronous axis technology object for monitoring positioning and motion:  Positioning monitoring (Page 89)
The actual position value must reach a positioning window within a specified time, and remain in this positioning window for a minimum dwell time.  Following error monitoring (Page 90) The following error is monitored based on a velocity-dependent following error limit. The permissible maximum following error depends on the velocity setpoint. If monitored conditions are violated, then technology alarms are output. The technology object responds in accordance with the alarm response.

3.12.1

Positioning monitoring (S7-1500, S7-1500T)
Positioning monitoring monitors the behavior of the actual position at the end of the setpoint calculation.
As soon as the velocity setpoint reaches the value zero, the actual position value must be located in the positioning window within a tolerance time. The actual value must not exit the positioning window during the minimum dwell time.
If the actual position is reached at the end of a positioning motion within the tolerance time and remains in the positioning window for the minimum dwell time, then "<TO>.StatusWord.X6 (Done)" is set in the technology data block. After expiration of the minimum dwell time, the "Done" parameter of the corresponding Motion Control instruction is also set. This completes a motion job.
The following figure shows the chronological sequence and the positioning window:

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

89

Basics (S7-1500, S7-1500T) 3.12 Position monitoring functions (S7-1500, S7-1500T)
Positioning monitoring does not make any distinction between how the setpoint interpolation was completed. The end of setpoint interpolation can for example be reached as follows:  By the setpoint reaching the target position  By position-controlled stopping during motion by the Motion Control instruction "MC_Halt"
or "MC_Stop"
Violation of positioning monitoring
In the following cases, technology alarm 541 is output by the positioning monitoring, and the technology object is disabled (alarm reaction: remove enable).  The actual value does not reach the positioning window during the tolerance time.  The actual value exits the positioning window during the minimum dwell time.

3.12.2

Following error monitoring (S7-1500, S7-1500T)
The following error in the positioning axis/synchronous axis technology object is monitored based on a velocity-dependent following error limit. The permissible following error depends on the velocity setpoint.
A constant permissible following error can be specified for velocities lower than an adjustable velocity low limit.
Above this low velocity limit, the permissible following error increases in proportion to the velocity setpoint. The configurable maximum permissible following error is the maximum velocity limit.

Calculation of the following error
The real following error is the difference between the set and actual position in relation to the values of the drive. The real following error is therefore greater than the following error calculated in the CPU and greater than the following error calculated in the trace. When calculating the following error, the transmission times of the setpoint to the drive and of the actual position value to the controller are deducted. The following error is calculated from the delayed position setpoint minus the actual position in the controller.
The calculation of the following error is valid for the following conditions:
 Position control with and without DSC
 Configuration with and without precontrol of the position control loop
 Configuration of the drive coupling via a PROFIdrive telegram or via an analog output

Warning limit

A warning limit can be specified for the following error. The warning limit is input as a percentage value and operates relative to the current permissible following error. If the warning limit of the following error is reached, then technology alarm 522 is output. This is a warning and contains no alarm response.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

90

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.12 Position monitoring functions (S7-1500, S7-1500T)
Violation of the permissible following error
If the permissible following error is exceeded, then technology alarm 521 is output, and the technology object is disabled (alarm response: remove enable). When force/torque limiting is activated, the monitoring of the permissible following error can be deactivated.

3.12.3

Standstill signal (S7-1500, S7-1500T)
When the actual velocity reaches the standstill window and remains there for the minimum dwell time, the standstill of the axis is indicated.

3.12.4

Tags: Position monitoring functions (S7-1500, S7-1500T)

Standstill signal
The following technology object tags are relevant for position monitoring and for the standstill signal:

Status indicators Tag <TO>.StatusWord.X7 (Standstill)
<TO>.StatusWord.X6 (Done)
<TO>.ErrorWord.X12 (PositioningFault)

Description
Set to the value "TRUE" when the actual velocity reaches the standstill window and does not exit it within the minimum dwell time.
The standstill signal is only present for the positioning axis/synchronous axis.
Positioning axis/synchronous axis
Set to the value "TRUE" when the actual velocity value reaches the positioning window within the tolerance time and remains in the window for the minimum dwell time.
Speed axis
Set to "TRUE" when the motion is complete and the speed setpoint is therefore equal to zero.
A positioning error has occurred.

Positions and times Tag <TO>.PositioningMonitoring.Tolerance Time
<TO>.PositioningMonitoring. MinDwellTime <TO>.PositioningMonitoring.Window

Description Maximum permissible time until positioning window is reached The time is started with the end of the setpoint interpolation. Minimum dwell time in position window
Positioning window

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

91

Basics (S7-1500, S7-1500T) 3.12 Position monitoring functions (S7-1500, S7-1500T)

Standstill signal
Tag <TO>.StandstillSignal. VelocityThreshold <TO>.StandstillSignal.MinDwellTime

Description Velocity threshold for the standstill signal
Minimum dwell time below the velocity threshold

Following error monitoring
The following technology object tags are relevant for following error monitoring:

Status indicators

Tag

Description

<TO>.StatusPositioning.FollowingError Current following error

<TO>.ErrorWord.X11 (FollowingErrorFault)

Status indication, that the following error is too large

<TO>.WarningWord.X11 (FollowingErrorWarning)

Status indication, that the following error warning limit has been reached

Control bits

Tag

Description

<TO>.FollowingError.EnableMonitoring Enable/disable following error monitoring

Limits Tag <TO>.FollowingError.MinVelocity
<TO>.FollowingError.MinValue
<TO>.FollowingError.MaxValue
<TO>.FollowingError.WarningLevel

Description
Lower velocity setpoint for the characteristic curve of the maximum following error
Permissible following error below the "<TO>.FollowingError.MinVelocity"
Maximum permissible following error at maximum axis velocity
Warning limit as a percentage value relative to the maximum permissible following error (velocity-dependent in accordance with the characteristic curve)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

92

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.13 Closed-loop control (S7-1500, S7-1500T)

3.13

Closed-loop control (S7-1500, S7-1500T)
The position controller of the positioning axis/synchronous axis is a closed-loop P controller with or without velocity precontrol. Use the servo gain factor to set the gain of the proportional-action controller. The achievable servo gain factor depends on the structural requirements of the axis.
Closed-loop controllers and monitoring are active when closed loop position control is active.
If closed loop position control is inactive, encoder systems, actual value calculation and monitoring are active on the actual value side.

Velocity precontrol
The velocity precontrol can be used to minimize the velocity-based following error during position control. As a result, faster positioning is achieved, if needed, because the position controller only has to compensate disturbances.
When using the velocity precontrol, the velocity setpoint is additionally added to the output of the position controller. You can weight this additional setpoint by a factor.
The symmetry filter is a simplified model of the speed control loop. The symmetry filter is used to prevent the position controller from overriding the speed manipulated variable during the acceleration and deceleration phases. To accomplish this, the position setpoint of the position controller is delayed by the speed control loop substitute time in relation to the speed pre-control.

Dynamic Servo Control (DSC)
In drives that support Dynamic Servo Control (DSC), you can optionally use the closed-loop position controller in the drive. If you use telegrams that support DSC, DSC is automatically activated. The position controller in the drive is usually implemented with a rapid speedcontrol cycle. This improves the control performance for digitally coupled drives.
The following requirements must be met to use DSC:
 The motor encoder (first encoder in the telegram) of the drive is used as the first encoder for the technology object.
 One of the following PROFIdrive telegrams is used for the drive:
­ Standard telegram 5 or 6
­ SIEMENS telegram 105 or 106

See also

PROFIdrive telegrams (Page 27)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

93

Basics (S7-1500, S7-1500T) 3.13 Closed-loop control (S7-1500, S7-1500T)

3.13.1

Control structure (S7-1500, S7-1500T)
The following figure shows the effective closed loop control structure without DSC:

 Interpolator with motion control  Internal consideration of the signal propagation times and the speed-control loop substitute
time
 Communication between controller and drive
The following figure shows the effective closed loop control structure with DSC:

 Interpolator with motion control  Internal consideration of speed control loop substitute time  Communication between controller and drive

Additional information
For more information about the control structure, refer to Siemens Industry Online Support in the FAQ entry 109770664 (https://support.industry.siemens.com/cs/ww/en/view/109770664).

See also

Configuration - Control loop (Page 145)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

94

Function Manual, 12/2019, A5E37577655-AC

Basics (S7-1500, S7-1500T) 3.13 Closed-loop control (S7-1500, S7-1500T)

3.13.2

Non position-controlled operation (S7-1500, S7-1500T)
The closed loop position control of an axis can be switched off/switched with the following Motion Control instructions:  MC_Power  MC_MoveVelocity  MC_MoveJog  MC_MotionInVelocity The non-position-controlled operation is displayed with "<TO>.StatusWord.X28 (NonPositionControlled)" = TRUE.

MC_Power

The axis is enabled without closed loop position control with "MC_Power" and the parameter "StartMode" = 0. The closed loop position control remain switched off until a different Motion Control instruction changes the status of the closed loop position control.

MC_MoveVelocity and MC_MoveJog
A "MC_MoveVelocity" or "MC_MoveJog" job with "PositionControlled" = FALSE forces nonposition-controlled operation.
A "MC_MoveVelocity" or "MC_MoveJog" job with "PositionControlled" = TRUE forces position-controlled operation.
The selected mode remains in effect after the job is completed.

MC_MotionInVelocity and MC_MotionInPosition
A "MC_MotionInVelocity" job with "PositionControlled" = FALSE forces non-positioncontrolled operation. A "MC_MotionInVelocity" job with "PositionControlled" = TRUE forces position-controlled operation. The selected mode remains in effect after the job is completed. A "MC_MotionInPosition" job forces position-controlled operation.
Influence of additional Motion Control instructions
Starting the following Motion Control instructions forces position-controlled operation of the axis:  MC_Home with "Mode" = 3, 5  MC_MoveAbsolute  MC_MoveRelative  MC_MoveSuperimposed  MC_MotionInPosition

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

95

Basics (S7-1500, S7-1500T) 3.13 Closed-loop control (S7-1500, S7-1500T)
 MC_GearIn  MC_GearInPos (S7-1500T)  MC_CamIn (S7-1500T) The closed loop position control remains active after completing the corresponding jobs. The Motion Control instructions "MC_Halt" and "MC_Stop" are executed in positioncontrolled and also in non-position-controlled operation. The status of the closed loop position control is not changed by "MC_Halt"/"MC_Stop". A torque limiting activated with "MC_TorqueLimiting" is in effect even with non-positioncontrolled operation.

3.13.3

Tags: Closed-loop control (S7-1500, S7-1500T)
The following technology object tags are relevant for the closed-loop control:

Parameters

Tag

Description

<TO>.PositionControl.Kv

Proportional gain of the closed loop position control

<TO>.PositionControl.Kpc

Velocity precontrol of the positioning system (in %)

<TO>.PositionControl.EnableDSC

Enable DSC

<TO>.DynamicAxisModel.VelocityTime Speed control loop substitute time [s] Constant

<TO>.PositionControl. ControlDifferenceQuantization.Mode

Type of quantification
Configuration of a quantization when a drive with stepper motor interface is connected

0

No quantification

1

Quantization corresponding to encoder resolution

2

Quantization to a direct value (value input in

"<TO>.PositionControl.

ControlDifferenceQuantization.Value")

Configuration is performed using the parameter view (data structure).

<TO>.PositionControl. ControlDifferenceQuantization.Value

Value of quantification
Configuration of a value for quantization to a direct value ("<TO>.PositionControl. ControlDifferenceQuantization.Mode" = 2)

The quantization value is specified in the position unit of the axis.

Configuration is performed using the parameter view (data structure).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

96

Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T)

4

4.1

Configuring the Speed-Control Axis technology object (S7-1500, S7-

1500T)

4.1.1

Configuration - Basic Parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic Parameters" configuration window.

Name

Define the name of the speed axis in this field. The technology object is listed under this name in the project tree. You can use the variables of the speed axis in the user program under this name.

Axis type

If you want to use the axis in the CPU exclusively as a virtual leading axis for synchronization, for example, select the "Virtual axis" check box. The configuration of a drive and encoder connection is not relevant.

Units of measure
In the drop-down lists, select the desired units of measurement for the speed and the torque.

Simulation

If you want to move a real axis in the simulation mode, select the "Activate simulation" check box.
In simulation mode, speed, positioning and synchronous axes can be simulated in the CPU without connected drives and encoders. Simulation mode is possible as of Technology Version V3.0 even without a configured drive and encoder connection.
For simulation mode without hardware connected to the CPU, you can influence the startup time of the CPU via the "Configuration time for central and distributed I/Os" parameter. You can find the parameter in the CPU properties in the "Startup" area navigation.

See also

Axis in simulation (Page 43)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

97

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)

4.1.2

Hardware interface (S7-1500, S7-1500T)

4.1.2.1

Configuration - Drive (S7-1500, S7-1500T)
In the "Drive" configuration window, configure which drive type and which drive you want to use.

Drive type

In the drop-down list, select whether you want to deploy a PROFIdrive drive or a drive with an analog drive connection.
PROFIdrive drives are connected to the controller by means of a digital communication system (PROFINET or PROFIBUS). The communication is performed via PROFIdrive telegrams.
Drives with an analog drive connection receive the speed setpoint via an analog output signal (e.g. from -10 V to +10 V) from the CPU.

Drive type: PROFIdrive
Data connection
In the drop-down list, select whether the data connection is to be made directly with the drive device or via an editable data block in the user program.
Drive/data block
In the "Drive" field, select an already configured PROFIdrive drive/slot. If you have selected a PROFIdrive drive, you can configure the PROFIdrive drive using the "Device configuration" button.
If no PROFIdrive drive is available for selection, switch to the device configuration, and add a PROFIdrive drive in the network view.
Note Option "Show all modules"
If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules.
When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive drive.
If you have selected "Data block" under the data connection, select a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

98

Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)
Drive type: Analog drive connection
Analog output In the "Analog output" field, select the PLC tag of the analog output via which the drive is to be controlled. In order to be able to select an output, you first need to add an analog output module in the device configuration and define the PLC tag name for the analog output. Activating enable output Select the "Activate enable output" check box if the drive supports an enable. Select the PLC tag of the digital output for the drive enable in the corresponding field. With the enable output, the speed controller in the drive is enabled, or disabled. In order to be able to select an enable output, a digital output module must be added in the device configuration and the PLC tag name must be defined for the digital output.
Note If you do not use an enable output, the drive cannot be immediately disabled on the part of the system due to error reactions or monitoring functions. A controlled stop of the drive is not guaranteed.
Enable ready input Select the "Enable ready input" check box if the drive can signal its readiness. Select the PLC tag of the digital input via which the drive is to signal its operational readiness to the technology object in the corresponding field. The power module is switched on and the analog speed setpoint input is enabled. In order to be able to select a ready input, you first need to add a digital input module in the device configuration and define the PLC tag name for the digital input.
Note The enable output and the ready input can be separately enabled. The following boundary conditions apply to the activated ready input: · The axis is only enabled ("MC_Power Status" = TRUE) when a signal is present at the
ready input. · If a signal is not present at the ready input on an enabled axis, the axis of the alarm
response "Remove enable" is disabled. · If the axis is disabled with the instruction "MC_Power" ("Enable" = FALSE), the axis is
disabled even when a signal is present at the ready input.

See also

Configuration - Data exchange with the drive (Page 100) Drive and encoder connection (Page 26)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E37577655-AC

99

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)

4.1.2.2

Configuration - Data exchange with the drive (S7-1500, S7-1500T)
Configure the data exchange with the drive in the "Data exchange with the drive" configuration window.
The configuration differs according to the selected drive type:

Drive type: PROFIdrive
Drive telegram
The telegram to the drive that is set in the device configuration is preselected in the dropdown list.
Automatically apply drive values during configuration (offline)
Select the check box if you want to transfer the offline values of the drive "Reference speed", "Maximum speed" and "Reference torque" to the configuration of the technology object in the project.
Automatically apply drive values at runtime (online)
Select the check box if you want to transfer the effective values "Reference speed", "Maximum speed" and "Reference torque" online in the drive to the CPU during runtime. The drive parameters are transferred from the bus after the (re-)initialization of the technology object or the (re)start of the drive or the CPU.
Alternatively, you must synchronize the following parameters manually:
 Reference speed
Configure the reference speed of the drive in accordance with the manufacturer's specifications in this field. The specification of the drive speed is a percentage of the reference speed in the range -200% to 200%.
 Maximum speed
Configure the maximum speed of the drive in this field.
 Reference torque
Configure the reference torque of the drive corresponding to its configuration in this field.
The reference torque is needed for force/torque reduction, which is supported with telegram 10x.
Supplementary data
Select the "Torque data" check box if you want to configure the data connection of the torque data. If you have selected a drive with which the additional telegram 750 has been configured, the "Torque data" check box is preselected.

100

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)
Data connection In the drop-down list, define whether the data connection should be made via additional telegrams or data blocks:  If you select the entry "Additional telegram" in the "Data connection" drop-down list, you
can edit the "Additional telegram" drop-down list.  If you select the "Data block" entry in the "Data connection" drop-down list, you can select
the previously created data block which contains a tag structure of the "PD_TELx" data type ("x" stands for the additional telegram number that is used). Data block / additional telegram Select an additional telegram configured in the "Additional telegram" field. Select the "Show all modules" check box if you want to display all submodules of the connected drive. You can also find self-defined additional telegrams with this function. In the "Data block" field, select the data block which you want to use to integrate the torque data.
Note Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x. For this, "Drive" must be selected for the data connection in configuration window "Hardware interface > Drive".

Drive type: Analog drive connection
Reference speed
The reference speed of the drive is the speed with which the drive spins when there is an output of 100% at the analog output. The reference speed must be configured for the drive and transferred in the configuration of the technology object.
The analog value that is output at 100% depends on the type of the analog output. For example, for an analog output with +/- 10 V, the value 10 V is output at 100%.
Analog outputs can be overridden by approximately 17%. This means that an analog output can be operated in the range from -117% to 117%, insofar as the drive permits this.

See also

Automatic transfer of drive and encoder parameters in the device (Page 34) Drive and encoder connection (Page 26)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

101

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)

4.1.3

Extended Parameters (S7-1500, S7-1500T)

4.1.3.1

Configuration - Mechanics (S7-1500, S7-1500T)
Configure the connection of the load to the drive in the "Mechanics" configuration window.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

See also

Mechanics (Page 47)

4.1.3.2

Configuration - Dynamic Defaults (S7-1500, S7-1500T)
In the "Dynamic default values" configuration window, configure the default values for speed, acceleration, deceleration jerk of the axis.
The default values take effect when values < 0 are specified in Motion Control instructions for the "Velocity", "Acceleration", "Deceleration" or "Jerk" parameters. The default values can be applied separately for each of the parameters just listed.

Speed

In this field, define the default value for the speed of the axis.

102

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)
Acceleration/deceleration - Ramp-up time/ramp-down time
Set the desired default value for acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields. The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:

Note A change in the speed influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained.
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration and deceleration ramp in the "Jerk" field. The
value 0 means that jerk limiting is deactivated.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note The jerk value is identical for the acceleration and deceleration ramp. The smoothing time in effect for the deceleration ramp results from the following relationships: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration. A configured jerk limit is not taken into account for this.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

103

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)
The following equations show the relationship between the smoothing times and the jerk:

Motion jobs started in the user program are performed with the selected jerk.

See also

Velocity profile (Page 54)

4.1.3.3

Configuration - Emergency stop (S7-1500, S7-1500T)
In the "Emergency stop" configuration window, you can configure the emergency stop deceleration of the axis. In the event of an error, and when disabling the axis, the axis is brought to a standstill with this deceleration using the Motion Control instruction "MC_Power" (input parameter "StopMode" = 0).

Emergency deceleration/emergency stop ramp-down time
Configure the deceleration value for emergency stop in the "Emergency stop deceleration" field or the "Emergency stop ramp-down time" field.
The relationship between emergency stop ramp-down time and emergency stop deceleration can be seen in the following equation:

See also

The configuration of the emergency stop deceleration is related to the configured maximum speed of the axis. If the maximum speed of the axis is changed, then the value of the emergency deceleration also changes (the emergency stop ramp-down time remains unchanged).
Emergency stop deceleration (Page 56)

104

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)

4.1.3.4

Limits (S7-1500, S7-1500T)

Configuration - Dynamic limits (S7-1500, S7-1500T)
In the "Dynamic limits" configuration window, configure the maximum values for speed, acceleration, deceleration and jerk of the axis.

Maximum speed
In this field, define the maximum permitted speed of the axis.

Maximum acceleration/maximum deceleration - ramp-up time/ramp-down time
Set the desired acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields.
The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:

Note Change of maximum speed
A change in the maximum speed influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

105

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration ramp and the deceleration ramp in the "Maximum
jerk" box. The value 0 means that the jerk is not limited.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note Various acceleration and deceleration values The configured smoothing time displayed in the configuration, applies only to the acceleration ramp. If the values of the acceleration and deceleration differ, the smoothing time of the deceleration ramp is calculated and used according to the jerk of the acceleration ramp. The smoothing time of the deceleration is adapted as follows: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration (Page 56) (alarm reaction "Stop with maximum dynamic values"). A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:
Motion jobs started in the user program are performed with the selected jerk.

106

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.1 Configuring the Speed-Control Axis technology object (S7-1500, S7-1500T)

Configuration - Torque limits (S7-1500, S7-1500T)
Configure the torque limiting of the drive in the "Torque limits" configuration window.
The configuration is only available if a drive that supports force/torque limiting is selected and a telegram 10x is used.

Effective

In the drop-down list, select whether the limit value is to be in effect "on load side" or "on motor side".

Torque limiting

Enter a default value for the torque limit in the specified unit of measure in this field.
The default value is in effect when the torque limiting is specified using Motion Control instruction "MC_TorqueLimiting", input parameter "Limit" < 0.
If the efficiency of the gear is crucial, you can set it in the "<TO>.Actor.Efficiency" tag.

See also

Force/torque limiting (Page 59)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

107

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2

Configuring the Positioning Axis technology object (S7-1500, S7-

1500T)

4.2.1

Configuration - Basic Parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic Parameters" configuration window.

Name

Define the name of the positioning axis in this field. The technology object is listed under this name in the project tree. The variables of the technology object can be used in the user program under this name.

Axis type

If you want to use the axis in the CPU exclusively as a virtual leading axis for synchronization, for example, select the "Virtual axis" check box. The configuration of a drive and encoder connection is not relevant.
In this selection, configure whether the axis should perform linear or rotary motions.

Units of measure
In the drop-down list, select the desired units of measure for the position, velocity, torque and force of the axis.
If you wish to use six decimal places in the selected unit, select the check box "Use position values with higher resolution".

Modulo

Select the "Enable modulo" check box if you want to use a recurring system of units for the axis (e.g. 0° to 360° for an axis of the "rotary" axis type).
 Modulo start value
In this field, define the position at which the modulo range should begin (e.g. 0° for an axis of the "rotary" axis type).
 Modulo length
In this field, define the length of the modulo range (e.g. 360° for an axis of the "rotary" axis type).

108

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Simulation See also

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
If you want to move a real axis in the simulation mode, select the "Activate simulation" check box. In simulation mode, speed, positioning and synchronous axes can be simulated in the CPU without connected drives and encoders. Simulation mode is possible as of Technology Version V3.0 even without a configured drive and encoder connection. For simulation mode without hardware connected to the CPU, you can influence the startup time of the CPU via the "Configuration time for central and distributed I/Os" parameter. You can find the parameter in the CPU properties in the "Startup" area navigation.
Axis in simulation (Page 43) Modulo setting (Page 23) Mechanics (Page 47)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

109

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.2

Hardware interface (S7-1500, S7-1500T)

4.2.2.1

Configuration - Drive (S7-1500, S7-1500T)
In the "Drive" configuration window, configure which drive type and which drive you want to use.

Drive type

In the drop-down list, select whether you want to deploy a PROFIdrive drive or a drive with an analog drive connection.
PROFIdrive drives are connected to the controller by means of a digital communication system (PROFINET or PROFIBUS). The communication is performed via PROFIdrive telegrams.
Drives with an analog drive connection receive the speed setpoint via an analog output signal (e.g. from -10 V to +10 V) from the CPU.

Drive type: PROFIdrive
Data connection
In the drop-down list, select whether the data connection is to be made directly with the drive device or via an editable data block in the user program.
Drive/data block
In the "Drive" field, select an already configured PROFIdrive drive/slot. When you have selected a PROFIdrive drive, you can configure the PROFIdrive drive using the "Device configuration" and "Drive configuration" buttons.
If no PROFIdrive drive is available for selection, switch to the device configuration, and add a PROFIdrive drive in the network view. Switch to drive configuration to configure the drive.
Note Option "Show all modules"
If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules.
When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive drive.
If you have selected "Data block" under the data connection, select a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).

110

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Drive type: Analog drive connection
Analog output In the "Analog output" field, select the PLC tag of the analog output via which the drive is to be controlled. In order to be able to select an output, you first need to add an analog output module in the device configuration and define the PLC tag name for the analog output. Activating enable output Select the "Activate enable output" check box if the drive supports an enable. Select the PLC tag of the digital output for the drive enable in the corresponding field. With the enable output, the speed controller in the drive is enabled, or disabled. In order to be able to select an enable output, a digital output module must be added in the device configuration and the PLC tag name must be defined for the digital output.
Note If you do not use an enable output, the drive cannot be immediately disabled on the part of the system due to error reactions or monitoring functions. A controlled stop of the drive is not guaranteed.
Enable ready input Select the "Enable ready input" check box if the drive can signal its readiness. Select the PLC tag of the digital input via which the drive is to signal its operational readiness to the technology object in the corresponding field. The power module is switched on and the analog speed setpoint input is enabled. In order to be able to select a ready input, you first need to add a digital input module in the device configuration and define the PLC tag name for the digital input.
Note The enable output and the ready input can be separately enabled. The following boundary conditions apply to the activated ready input: · The axis is only enabled ("MC_Power Status" = TRUE) when a signal is present at the
ready input. · If a signal is not present at the ready input on an enabled axis, the axis is disabled with
an error. · If the axis is disabled with the instruction "MC_Power" ("Enable" = FALSE), the axis is
disabled even when a signal is present at the ready input.

See also

Data connection drive/encoder via data block (Page 44)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

111

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.2.2

Configuration - Encoder (S7-1500, S7-1500T)
For closed loop position control, positioning axes require an actual position value in the form of an encoder position. The encoder position is transmitted to the controller by means of a PROFIdrive telegram.
As well as the S7-1500, the S7-1500T also offers the possibility to configure up to four encoders and switch between the encoders. You control the switch in the user program with the Motion Control instruction "MC_SetSensor".

Encoder on startup (S7-1500T)
In the drop-down list, select the encoder that is to be active after startup of the CPU (STARTUP). The encoder must be configured and marked as "used".
This encoder is used after startup of the CPU and after a restart of the technology object. At an operating mode transition from STOP  RUN of the CPU (without restart of the technology object), the encoder that was also active before the STOP is still being used.

Use encoder (S7-1500T)
Select the "Use encoder" check box if you want to use this encoder alternatively for closed loop position control.

Data connection
In the drop-down list, select whether the data connection should be established directly with the encoder or via a data block that can be edited in the user program.
The selection is only possible for encoders that are connected via PROFIdrive and support parameter P979.

112

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Encoder/data block
Select a previously configured encoder in this configuration field.
The following encoders can be selected:
 Connection to the drive (not with analog drive connection)
The encoder is configured via the configuration of the PROFIdrive drive. The drive evaluates the encoder signals and sends them to the controller in the PROFIdrive telegram.
 Encoder on technology module (TM)
Select a previously configured technology module and the channel to be used. Only technology modules set to the "Position input for Motion Control" mode are displayed for selection.
If no technology module is available for selection, change to the device configuration and add a technology module. If you have selected a technology module, you can access the configuration of the technology module using the "Device configuration" button.
You can operate the technology module centrally on an S7-1500 CPU or decentrally on a distributed I/O. Isochronous mode is not possible with central operation in the CPU.
You can identify the technology modules suitable for position detection for Motion Control in the documentation for the technology module and the catalog data.
 PROFIdrive encoder on PROFINET/PROFIBUS (PROFIdrive)
In the "PROFIdrive encoder" field, select a configured encoder on PROFINET/PROFIBUS. When you have selected an encoder, you can configure the encoder using the "Device configuration" button.
Switch to the device configuration in the network view, and add an encoder, in the event that no encoder can be selected.
Note Option "Show all modules"
If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules.
When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive encoder.
If you have selected "Data block" under the data connection, select in the "Data block" field a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

113

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Encoder type

Select the encoder type of the encoder in the drop-down list. The following encoder types are available:
 Incremental (Page 32)
 Absolute (Page 32) (measuring range > traversing range)
 Cyclic absolute (Page 32) (measuring range < traversing range)
Recommended settings for absolute actual values: The "Cyclic absolute" encoder type is recommended. With this setting, the position of the zero crossing of the encoder is automatically taken into consideration by the technology object.

Note Measuring range of the absolute encoder
Observe the boundary conditions with absolute values.
You can find more information in the section "Absolute actual value (Page 32)" of the "S71500/S7-1500T Axis functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766462).

See also

Data connection drive/encoder via data block (Page 44)
Using multiple encoders (Page 36)
"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)

4.2.2.3

Configuration - Data exchange with the drive (S7-1500, S7-1500T)
Configure the data exchange with the drive in the "Data exchange with the drive" configuration window.
The configuration differs according to the selected drive type.

114

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Drive type: PROFIdrive
Drive telegram
The telegram to the drive that is set in the device configuration is preselected in the dropdown list.
Automatically apply drive values during configuration (offline)
Select the check box if you want to transfer the offline values of the drive "Reference speed", "Maximum speed" and "Reference torque" to the configuration of the technology object in the project.
Automatically apply drive values at runtime (online)
Select the check box if you want to transfer the effective values "Reference speed", "Maximum speed" and "Reference torque" online in the drive to the CPU during runtime. The drive parameters are transferred from the bus after the (re-)initialization of the technology object or the (re)start of the drive or the CPU.
Alternatively, you must synchronize the following parameters manually:
 Reference speed
Configure the reference speed of the drive in accordance with the manufacturer's specifications in this field. The specification of the drive speed is a percentage of the reference speed in the range -200% to 200%.
 Maximum speed
Configure the maximum speed of the drive in this field.
 Reference torque
Configure the reference torque of the drive corresponding to its configuration in this field.
The reference torque is needed for force/torque reduction, which is supported with telegram 10x.
Supplementary data
Select the "Torque data" check box if you want to configure the data connection of the torque data. If you have selected a drive with which the supplemental telegram 750 has been configured, the "Torque data" check box is preselected.
Data connection
In the drop-down list, define whether the data connection should be made via supplemental telegrams or data blocks:
 If you select the entry "Supplemental telegram" in the "Data connection" drop-down list, you can edit the "Supplemental telegram" drop-down list.
 If you select the "Data block" entry in the "Data connection" drop-down list, you can select the previously created data block which contains a tag structure of the "PD_TELx" data type ("x" stands for the additional telegram number that is used).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

115

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Data block / supplemental telegram Select an supplemental telegram configured in the "Supplemental telegram" field. Select the "Show all modules" check box if you want to display all submodules of the connected drive. You can also find self-defined supplemental telegrams with this function. In the "Data block" field, select the data block which you want to use to integrate the torque data.
Note Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x. To do this, set the "Drive" data connection in the configuration window "Hardware interface > Drive".

Drive type: Analog drive connection
Reference speed
The reference speed of the drive is the speed with which the drive spins when there is an output of 100% at the analog output. The reference speed must be configured for the drive and transferred in the configuration of the technology object.
The analog value that is output at 100% depends on the type of the analog output. For example, for an analog output with +/- 10 V, the value 10 V is output at 100%.
Analog outputs can be overridden by approximately 17%. This means that an analog output can be operated in the range from -117% to 117%, insofar as the drive permits this.
Maximum speed
Specify the maximum speed of the drive in this field.

See also

Automatic transfer of drive and encoder parameters in the device (Page 34)

116

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.2.4

Configuration - Data exchange with encoder (S7-1500, S7-1500T)
Configure detailed encoder parameters and the data exchange of the encoder in the "Data exchange with encoder" configuration window.
If you are using an S7-1500T CPU, you need to define the settings for each of the maximum four configured encoders.
The display and selection of the configuration parameters described here is dependent on the following parameters:
 Configuration window "Basic parameters": Drive type (linear/rotary)
 Configuration window "Hardware interface > Encoder": Encoder type (incremental/absolute/cyclic absolute)
 Configuration window - "Extended parameters > Mechanics": Encoder mounting type

Settings for (S7-1500T)
In the drop-down list, select the encoder for which you wish to edit the following configurations.

Encoder telegram
The telegram to the encoder that is set in the device configuration is preselected in the dropdown list.

Automatically apply encoder values during configuration (offline)
Select the check box if you want to transfer the offline values of the encoder to the configuration of the technology object in the project.

Automatically apply encoder values during runtime (online)
Select the check box if you want to transfer the effective values online in the encoder to the CPU during runtime. The encoder parameters are transferred from the bus after the (re-)initialization of the technology object and (re)start of the encoder or the CPU.
Note Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.
Alternatively, you must manually calibrate the following parameters, depending on encoder type.

Measuring system
In the drop-down list, select the measuring procedure. The options are "Linear" and "Rotary".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

117

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Additional parameters
Depending on the selected measuring system and the encoder type selected under "Technology object > Configurations > Hardware interface > Encoders", configure the parameters described below:
 Measuring system: Rotary; encoder type: Incremental

Parameter Increments per revolution
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

 Measuring system: Rotary; encoder type: Absolute

Parameter Increments per revolution
Number of revolutions
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of revolutions that the absolute encoder can detect in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

 Measuring system: Rotary; encoder type: Cyclic absolute

Parameter Increments per revolution
Number of revolutions
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of revolutions that the absolute encoder can detect in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

 Measuring system: Linear; encoder type: Incremental

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

118

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

See also

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

 Measuring system: Linear; encoder type: Absolute

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

 Measuring system: Linear; encoder type: Cyclic absolute

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

Automatic transfer of drive and encoder parameters in the device (Page 34) Configuration - Mechanics (Page 121) Configuration - Encoder (Page 112) Configuration - Data exchange (Page 150)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

119

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.3

Configuration - Leading value settings (S7-1500, S7-1500T)
In the "Leading value settings" configuration window, select the parameters of the leading value for cross-PLC synchronous operation.

Provision of leading value
In this area, define the settings for transferring the leading value to other CPUs:

Field
Provide cross-PLC leading value
Transfer area

Description
Select this check box to make the setpoint or actual value available as leading value for a cross-PLC synchronous operation.
In this drop-down list, select the output tag of the transfer area set up between the CPU of the leading axis and the CPUs of the following axes.
You can find more information about the transfer range in the section "Setting up communication via Controller-Controller direct data exchange" of the documentation "S7-1500/S7-1500T Synchronous operation functions" (https://support.industry.siemens.com/cs/ww/en/view/109766464).

Delay time of the local leading value
In this area, configure the settings for local synchronous operation:

Field Allow system calculation Delay time
Interconnection overview

Description
Select this check box to adapt the delay time of the local leading value in the system. System calculation is started when you trigger the calculation in the interconnection overview.
If the "Allow system calculation" check box is cleared, this field can be edited. Enter the delay time in this field.
The entered delay time determines the output delay of the leading value for the local following axes.
(<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime)
You open the interconnection overview via this link. With a cross-PLC synchronous operation, the interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment.

120

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.4

Extended Parameters (S7-1500, S7-1500T)

4.2.4.1

Configuration - Mechanics (S7-1500, S7-1500T)
In the "Mechanics" configuration window, configure the mounting type of the encoder, and the adaptation of the actual encoder value to the mechanical conditions.

Settings for (S7-1500T)
In the drop-down list, select the encoder for which the following configurations are to apply.

Encoder mounting type
In the drop-down list, select how the encoder is mounted to the mechanics. The configuration differs depending on the axis type and the encoder mounting type selected in the "Basic parameters" configuration window. Axis type: Linear  Linear - On motor shaft (Page 122)  Linear - On load side (Page 122)  Linear - External Measuring System (Page 123) Axis type: Rotary  Rotary - On motor shaft (Page 123)  Rotary - On load side (Page 124)  Rotary - External Measuring System (Page 124)

Invert encoder direction
Select this check box if you must invert the direction of rotation of the encoder.

See also

Using multiple encoders (Page 36)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

121

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Axis type: Linear (S7-1500, S7-1500T)

Linear - On motor shaft (S7-1500, S7-1500T)
The encoder is connected to the motor shaft in a mechanically fixed manner. Motor and encoder form a unit.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Linear - On load side (S7-1500, S7-1500T)
The encoder is mechanically connected to the load side of the gear.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

122

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Linear - External Measuring System (S7-1500, S7-1500T)
An external measuring system provides the position values of the linear load motion.

Distance per encoder revolution
In this configuration field, configure the linear load travel per encoder revolution.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Axis type: Rotary (S7-1500, S7-1500T)

Rotary - On motor shaft (S7-1500, S7-1500T)
The encoder is connected to the motor shaft in a mechanically fixed manner. Motor and encoder form a unit.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

123

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Rotary - On load side (S7-1500, S7-1500T)
The encoder is mechanically connected to the load side of the gear.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Rotary - External Measuring System (S7-1500, S7-1500T)
An external measuring system provides the position values of the rotary load motion.

Distance per encoder revolution
In this configuration field, configure the linear load travel per encoder revolution.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

124

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

4.2.4.2

Configuration - Dynamic Defaults (S7-1500, S7-1500T)
In the "Dynamic default values" configuration window, configure the default values for velocity, acceleration, deceleration and jerk of the axis.
The default values take effect when values < 0 are specified in Motion Control instructions for the "Velocity", "Acceleration", "Deceleration" or "Jerk" parameters. The default values can be applied separately for each of the parameters just listed.
The default values for acceleration and deceleration also act on the traversing motions of active homing.

Velocity

In this field, define the default value for the velocity of the axis.

Acceleration/deceleration - Ramp-up time/ramp-down time
Configure the desired default value for acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields.
The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:

Note
A change in the velocity influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

125

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration and deceleration ramp in the "Jerk" field. The
value 0 means that jerk limiting is deactivated.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note The jerk value is identical for the acceleration and deceleration ramp. The smoothing time in effect for the deceleration ramp results from the following relationships: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration. A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:

Motion jobs started in the user program are performed with the selected jerk.

See also

Velocity profile (Page 54)

4.2.4.3

Configuration - Emergency stop (S7-1500, S7-1500T)
In the "Emergency stop" configuration window, you can configure the emergency stop deceleration of the axis. In the event of an error, and when disabling the axis, the axis is brought to a standstill with this deceleration using the Motion Control instruction "MC_Power" (input parameter "StopMode" = 0).

126

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Emergency deceleration/emergency stop ramp-down time
Configure the deceleration value for emergency stop in the "Emergency stop deceleration" field or the "Emergency stop ramp-down time" field. The relationship between emergency stop ramp-down time and emergency stop deceleration can be seen in the following equation:

See also

The configuration of the emergency stop deceleration is related to the configured maximum velocity of the axis. If the maximum velocity of the axis changes, then the value of the emergency deceleration also changes (the emergency stop ramp-down time remains unchanged).
Emergency stop deceleration (Page 56)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

127

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.4.4

Limits (S7-1500, S7-1500T)

Configuration - Position limits (S7-1500, S7-1500T)
Configure the hardware and software limit switches of the axis in the "Position limits" configuration window.

Enable HW limit switches
The check box activates the function of the negative and positive hardware limit switches. The negative hardware limit switch is located on the side in the negative direction of travel, and the positive hardware limit switch on the side in the positive direction of travel.
If a hardware limit switch is reached, technology alarm 531 is output, and the technology object is disabled (alarm response: remove enable).
Exception:
1. If a hardware limit switch is overtraveled during an active home position approach with activated direction reversal at the hardware limit switch, the axis stops with the configured maximum deceleration and continues the home position approach in the opposite direction.
2. If the hardware limit switches were deactivated using the Motion Control instruction "MC_WriteParameter (Page 249)".
Note
Only use hardware limit switches that remain permanently switched after the approach. This switching state may only be canceled after the return to the permitted traversing range.
The digital inputs of the hardware limit switches are evaluated by default in cyclic data exchange. If the hardware limit switch is to be evaluated in the position control cycle of the drive, select the entry "MC-Servo" for "Organization block" and the entry "PIP OB Servo" for "Process image" in the input module settings under "I/O addresses".

Input of negative/positive HW limit switch
In these fields, select the PLC tag of the digital input for the negative and positive hardware limit switch.

128

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
In order to be able to select an input, a digital input module must have been added in the device configuration, and the PLC tag name for the digital input must be defined.
CAUTION During installation of hardware limit switches, attention must be paid to the filter times of the digital inputs. Based on the time for one position control cycle clock and the filter time of the digital inputs, the resulting delay times must be taken into account. The filter time is configurable in individual digital input modules in the device configuration. The digital inputs are set to a filter time of 6.4 ms by default. If these are used as hardware limit switches, undesired decelerations may occur. If this occurs, reduce the filter time for the relevant digital inputs. The filter time can be set under "Input filter" in the device configuration of the digital inputs.

Level selection of negative/positive HW limit switch
Select the triggering signal level ("low level"/"high level") of the hardware limit switch in the drop-down list. With "Low level", the input signal is "FALSE" after the axis has reached or passed the hardware limit switch. With "High level", the input signal is "TRUE" after the axis has reached or passed the hardware limit switch.
Enable SW limit switches
This check box activates the high and low software limit switches. When software switches are activated, an active motion comes to a stop at the position of the software limit switch. The technological object signals an error. After acknowledgment of the error, the axis can again be moved in the direction of its operating range.
Note Activated software limit switches act only on a homed axis.

Position of negative/positive SW limit switch
Configure the operating range of the axis with the positions of the negative and positive software limit switches.

See also

Traversing range limitation (Page 49)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

129

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Configuration - Dynamic limits (S7-1500, S7-1500T)
In the "Dynamic limits" configuration window, configure the maximum values for velocity, acceleration, deceleration and jerk of the axis.
Maximum velocity
In this field, define the maximum permitted velocity of the axis.
Maximum acceleration/maximum deceleration - ramp-up time/ramp-down time
Set the desired acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields. The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:
Note A change in the maximum velocity influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained. The "maximum deceleration" for active homing with change of direction at the hardware limit switch must be set sufficiently large, to brake the axis before reaching the mechanical endstop.

130

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration and deceleration ramp in the "Jerk" field. The
value 0 means that the jerk is not limited.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note The configured smoothing time displayed in the configuration, applies only to the acceleration ramp. If the values of the acceleration and deceleration differ, the smoothing time of the deceleration ramp is calculated and used according to the jerk of the acceleration ramp. The smoothing time of the deceleration is adapted as follows: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration. A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:

Motion jobs started in the user program are performed with the selected jerk.

See also

Velocity profile (Page 54)

Configuration - Torque limits (S7-1500, S7-1500T)
Configure the force/torque limiting of the drive in the "Torque limiting" configuration window.
The configuration is only available if a drive that supports force/torque limiting is selected and a telegram 10x is used. Telegram 101 cannot be used.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

131

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Effective

In the drop-down list, select whether the limit value is to be in effect "on load side" or "on motor side".

Torque limits

Enter a default value for the torque limiting in the specified unit of measurement in this field. The default value is in effect when the torque limiting is specified using Motion Control instruction "MC_TorqueLimiting", input parameter "Limit" < 0. Torque limiting applies to the following axis configurations:  Axis type is "Rotary" and limit value is in effect "On load side" or "On motor side"  Axis type is "Linear" and limit value is in effect "On motor side"

Force limit

Enter a default value for the force limit in the specified unit of measure in this field.
The default value is in effect when the force limit is specified using Motion Control instruction "MC_TorqueLimiting", input parameter "Limit" < 0.
The force limit applies to the following axis configuration: Axis type is "Linear" and limit value is in effect "On load side"
If the efficiency of the gear and leadscrew is crucial, you can set them in the "<TO>.Actor.Efficiency" tag.

Position-related monitoring
As a result of the force/torque limiting on the drive, a larger following error may occur or the axis standstill may not be detected reliably in positioning monitoring.
To deactivate the monitoring of the following error and the positioning monitoring during force/torque limiting, select the "Deactivate position-related monitoring" option. If you want to activate the position-related monitoring, select the option "Leave position-related monitoring enabled".

Interconnection in the SINAMICS drive
The following interconnection is required in the SINAMICS drive:
 P1522 to a fixed value of +100%
 P1523 to a fixed value of -100% (e.g. through interconnection to fixed value parameter P2902[i]).

See also

Force/torque limiting (Page 59)

132

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Configuration - Fixed stop detection (S7-1500, S7-1500T)
Configure the fixed stop detection in the configuration window.
A "Travel to fixed stop" can be realized by activating fixed stop detection using the Motion Control instruction "MC_TorqueLimiting" and a position-controlled motion job. The operation is also referred to as clamping.

Positioning tolerance
In this configuration field, configure the positioning tolerance that is regarded as a breaking away or turning back of the fixed stop when exceeded. To detect the breaking away or turning back of the fixed stop, the position setpoint must be located outside the positioning tolerance. The configured position tolerance must be less than the configured following error.

Following error

If the drive is stopped by a mechanical fixed stop during a motion job, the following error is increased. The accumulating following error serves as a criterion for fixed stop detection. In the "Following error" configuration field, configure the value of the following error starting from which the fixed stop detection is to take effect. The configured following error must be greater than the configured position tolerance.

Note
If the following error monitoring was activated in the position monitoring configuration, the "Maximum following error" configured there must be greater than the "Following error" of the fixed stop detection.

See also

Fixed stop detection (Page 61)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

133

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.4.5

Homing (S7-1500, S7-1500T)
Homing means matching the position value of a technology object to the real, physical location of the drive. Absolute target positions of the axis can only be approached with a homed axis.

Operating modes of the Motion Control instruction "MC_Home"
In S7-1500 Motion Control, the axis is homed with the Motion Control instruction "MC_Home". The following operating modes are used in the process:
 Active homing (incremental encoder)
With active homing, the Motion Control instruction "MC_Home" performs the configured home position approach. Active traversing motions are aborted. When the homing mark is detected, the position of the axis is set according to the configuration.
 Passive homing (incremental encoder)
With passive homing, the Motion Control instruction "MC_Home" instruction does not carry out any homing motion. The traversing motion required for this must be implemented by the user with other Motion Control instructions. Active traversing motions are not aborted upon start of passive homing. When the homing mark is detected, the axis is set according to the configuration.
 Direct homing absolute (incremental encoder or absolute encoder)
The axis position is set without taking into consideration the home position switch. Active traversing motions are not aborted. The value of input parameter "Position" of Motion Control instruction "MC_Home" is set immediately as the actual position of the axis.
 Direct homing relative (incremental encoder or absolute encoder)
The axis position is set without taking into consideration the home position switch. Active traversing motions are not aborted. The following statement applies to the axis position after homing:
New axis position = Current axis position + Value of parameter "Position" of instruction "MC_Home".

See also

MC_Home: Home technology object, set home position V5 (Page 200) Homing (Page 66)

134

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Active homing (S7-1500, S7-1500T)
Configuration - Active homing (S7-1500, S7-1500T)
In the "Active Homing" configuration window, configure the parameters for active homing. "Active homing" is executed using the Motion Control instruction "MC_Home" with "Mode" = 3 and 5.
Note Parameter "MC_Home.Mode" (S7-1500 CPU) The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Settings for (S7-1500T)
In the drop-down list, select the encoder to which the homing settings are to apply.

Select the homing mode
Select from among the following homing modes:  Use zero mark via PROFIdrive telegram (Page 135)  Use reference output cam and zero mark via PROFIdrive telegram (Page 136)  Use homing mark via digital input (Page 137)

See also

Homing (Page 66) Using multiple encoders (Page 36)

Homing mode "Use zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The zero mark is then sought in the reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

135

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Homing direction
Select the direction in which the next zero mark should be approached for homing.
"Positive" is the homing direction in the direction of positive position values; "negative" in the direction of negative position values.

Approach velocity
In this field, specify the velocity which is used to traverse to the home position offset.

Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing.

Home position offset
In the case of a differing zero mark position and home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

See also

Homing (Page 66)

Homing mode "Use reference output cam and zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The reference output cam is then searched for in the reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.

Approach direction
Select the approach direction for the reference output cam search.
"Positive" is the approach direction in the direction of positive position values; "negative" in the direction of negative position values.

136

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Homing direction
Select the direction in which the zero mark should be approached for homing.

Approach velocity
In this field, specify the velocity at which the reference output cam is searched for during the homing procedure. Any configured home position offset is traversed at the same velocity.

Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing. For zero mark detection, the reference output cam must be exited.

Home position offset
In the case of a differing zero mark position and home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

See also

Homing (Page 66)

Homing mode "Use homing mark via digital input" (S7-1500, S7-1500T)
When a digital input is used as a homing mark, the accuracy of the homing process is not as high as for hardware-supported homing using zero marks. You can improve the accuracy by using a low homing velocity.
Pay attention to the setting of short filter times for the digital input as well.

Digital input homing mark/output cam
In this configuration field, select the PLC tag of the digital input that is to act as a homing mark (reference output cam). Also select the level at which the homing mark is to be detected.
In order to be able to select an input, a digital input module must have been added in the device configuration, and the PLC tag name for the digital input must be defined.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

137

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The homing mark is then sensed in reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.

Approach direction
Select the approach direction for the homing mark search.
"Positive" is the approach direction in the direction of positive position values; "negative" in the direction of negative position values.

Homing direction
Select the direction in which the homing mark for homing is to be approached.

Homing mark

Select the switch position of the "digital input" that is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one another are generated. The selection of the positive or negative side ensures that the homing mark is always evaluated at the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of whether it causes a rising or falling edge.

Approach velocity
In this field, specify the velocity at which the axis searches for the "digital input" during the home position approach. Any configured home position offset is traversed at the same velocity.

Homing velocity
In this field, specify the velocity at which the axis approaches the home position for homing.

Home position offset
If the homing mark position is different from the home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

138

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

See also

Homing (Page 66)

Passive homing (S7-1500, S7-1500T)

Configuration - Passive homing (S7-1500, S7-1500T)
Configure the parameters for passive homing in the "Passive Homing" (homing on the fly) configuration window. The "Passive homing" homing function is executed using the Motion Control instruction "MC_Home" with "Mode" = 2, 8 and 10.
Note Parameter "MC_Home.Mode" (S7-1500 CPU)
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Settings for

In the drop-down list, select the encoder for which the homing settings are to apply (only for S7-1500T).

Select the homing mode
Select from among the following homing modes:  Use zero mark via PROFIdrive telegram (Page 140)  Use reference output cam and zero mark via PROFIdrive telegram (Page 140)  Use homing mark via digital input (Page 141)

See also

Using multiple encoders (Page 36)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

139

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Homing mode "Use zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Homing direction
Select the direction in which the next zero mark should be approached for homing. The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Homing (Page 66)

Homing mode "Use reference output cam and zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero mark after leaving the reference output cam is used.

140

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Homing (Page 66)

Homing mode "Use homing mark via digital input" (S7-1500, S7-1500T)

Digital input homing mark/output cam
In this dialog field, select a digital input that is to act as a homing mark (reference output cam). Also select the level at which the homing mark is to be detected.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

141

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Homing direction
Select the direction in which the homing mark for homing is to be approached. The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Homing mark

Select which switch position of the "digital input" is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one another are generated. The selection of the positive or negative side ensures that the homing mark is always evaluated at the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of whether it causes a rising or falling edge.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Homing (Page 66)

142

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.4.6

Position monitoring functions (S7-1500, S7-1500T)

Configuration - Positioning monitoring (S7-1500, S7-1500T)
In the "Positioning monitoring" configuration window, configure the criteria for monitoring the target position.

Positioning window
Configure the size of the positioning window in this field. If the axis is located within this window, the position is considered to be "reached".

Tolerance time

In this field, configure the tolerance time within which the position value must reach the positioning window.

Minimum dwell time in positioning window
Configure the minimum dwell time in this field. The current position value must be located in the positioning window for at least the "minimum dwell time". At the end of the hold time, the corresponding positioning job reports "Done" = TRUE.
Recommended setting: To avoid longer pauses, set values between 0 ms and 20 ms for dynamic positioning tasks.
If one of the criteria is violated, then the axis is stopped and the technology alarm 541 "Position monitoring error" is displayed (alarm response: Remove enable).

See also

Position monitoring functions (Page 89)

Configuration - Following error (S7-1500, S7-1500T)
In the "Following Error" configuration window, configure the permissible deviation of the actual position of the axis from the position setpoint. The following error can be dynamically adapted to the current velocity of the axis.

Enable following error monitoring
Select this check box, if you want to enable following error monitoring. When following error monitoring is enabled, the axis is stopped in the error range (orange). The technology alarm 521 "Following error" is displayed (alarm response: remove enable).
When following error monitoring is disabled, the configured limits have no effect.

Maximum following error
Configure the following error that is permissible at maximum velocity in this field.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

143

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

Warning level

In this field, configure a percentage of the current following error limit above which a warning should be output.
Example: The current maximum following error is 100 mm. The warning level is configured at 90%. If the current following error exceeds a value of 90 mm, the technology alarm 522 "Warning following error tolerance" is output. This is a warning and contains no alarm response.

Following error

In this field, configure the permissible following error for low velocities (without dynamic adjustment of the following error).

Start of dynamic adjustment
Configure the velocity starting from which the following error is to be dynamically adjusted in this field. Starting from this velocity, the following error up to the maximum velocity will be adjusted to the maximum following error.

See also

Following error monitoring (Page 90)

Configuration - Standstill signal (S7-1500, S7-1500T)
In the "Standstill signal" configuration window, configure the criteria for standstill detection.

Standstill window
Configure the size of the standstill window in this field. For standstill to be indicated, the velocity of the axis must be within this window.

Minimum dwell time in standstill window
Configure the minimum dwell time in the standstill window in this field. The velocity of the axis must be in the standstill window for at least the specified duration.
If both criteria are met, the standstill of the axis is indicated.

See also

Standstill signal (Page 91)

144

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)

4.2.4.7

Configuration - Control loop (S7-1500, S7-1500T)
In the "Control loop" configuration window, configure the precontrol and the gain Kv of the position control loop.
The Kv factor affects the following parameters:
 Positioning accuracy and stop control
 Uniformity of motion
 Positioning time
The better the mechanical conditions of the axis are (high stiffness), the higher the Kv factor can be configured. This reduces the following error, and a higher dynamic response is achieved.

Drive optimized
When the drive is optimized, the status bit lights up green. Otherwise, the status bit is gray.

Optimizing values on the drive
Use the green arrow to navigate to "Automatic controller optimization" in the optimization mask of the drive. The optimization mask of the drive is opened in online or offline mode, depending on the mode you are in. You can perform the optimization on the drive and optionally go online with the drive. You get back to the previous mask using the "Window Switcher".

Applying values from the drive
When you click the "Apply values from drive" button, a dialog box opens with the columns "Current value", "New value" and "Value on drive". Depending on the status of the drive, the online or offline values for "Speed control loop substitute time" and "Gain (Kv factor)" are displayed there.
The "New value" column can be edited. 50% of the value calculated on the drive is determined as a new value for the default setting for the gain. The new value of the gain should correspond to a maximum of 30-50% of the value on the drive. You apply the set values by clicking on "Yes".

Precontrol

Configure the percentage velocity precontrol in this field.

Speed control loop substitute time
Configure the speed control loop substitute time in this field (Tvtc).
When speed precontrol is activated, the setpoint is delayed by the speed control loop substitute time before the control deviation is established. This prevents an overshoot or a leading of the actual value compared with the position setpoint. The speed control loop substitute time is a simplified substitute model of the dynamic behavior of the speed control loop. The speed control loop substitute time is included in the balancing filter.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

145

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Gain (Kv factor)
In the input field, enter the gain Kv of the position control loop.
Dynamic Servo Control (DSC)
For position-controlled axes (positioning axes/synchronous axes), the closed loop position control can occur either in the CPU or in the drive, provided the drive supports Dynamic Servo Control (DSC). Select your preferred control process:  Position control in the drive (DSC enabled)
With the Dynamic Servo Control (DSC) function, the position controller is executed in the drive in the cycle clock of the speed control loop. The setting of a significantly greater position controller gain factor Kv is thus enabled. This increases the dynamics for setpoint sequence and disturbance variable correction for highly dynamic drives.  Position control in the PLC
Note Dynamic Servo Control (DSC) is only possible with one of the following PROFIdrive telegrams: · Standard telegram 5 or 6 · SIEMENS telegram 105 or 106

See also

Closed-loop control (Page 93) Control structure (Page 94) Function and structure of the optimization (Page 169)

4.2.4.8

Configuration - Actual value extrapolation (S7-1500T)
Configure the properties of the extrapolation for an actual value coupling for synchronous operation in the "Actual value extrapolation" configuration window. The values set here only apply when the actual values of this axis are used as leading value.

Position filter T1 and T2
Enter the time constants of the PT2 filter for smoothing the position.

Velocity filter T1 and T2 and tolerance band width
Enter the time constants of the PT2 filter for the smoothing of the actual velocity and the tolerance band width of the smoothed actual velocity.
For optimized application of the tolerance band, enter the same bandwidth for the tolerance band as the width of the noise signal.

146

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.2 Configuring the Positioning Axis technology object (S7-1500, S7-1500T)
Hysteresis value
Enter a value for application of the hysteresis function to the extrapolated actual value of the position. The specification is made in the configured length unit.
Leading axis dependent extrapolation time (read-only)
The leading axis-dependent time is calculated from the sum of the actual value acquisition time at the leading axis, (Ti), the time of the interpolator (TIpo) and the sum of position filters T1 and T2: Leading axis dependent extrapolation time = Ti + TIpo + T1 + T2
Following axis dependent extrapolation time
Specify the following axis-related proportion for the extrapolation of the leading value. The value (unchanged or offset against user-specific runtimes) from the tag "<TO>.StatusPositioning.SetpointExecutionTime" of the following axis is used as the basis.
Time from cross-PLC synchronous operation (read-only)
The time from the cross-PLC synchronous operation corresponds to the value of the deceleration time set at the axis or encoder in "Configuration > Leading value settings".
Apply leading value velocity from differentiation
When you select this check box, the leading value velocity is taken from the differentiation of the extrapolated leading value position. When you clear this check box, the filtered actual velocity is applied.
Include leading axis condition time
When you select this check box, the leading axis dependent extrapolation time is included in the calculation of the effective extrapolation time. When you clear this check box, the leading axis dependent extrapolation time is not included in the calculation of the effective extrapolation time.
Effective extrapolation time (read-only)
The effective extrapolation time is the sum of the leading axis-dependent time, the following axis-dependent time and the delay time of cross-PLC synchronous operation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

147

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

4.3

Configuring the technology object external encoder (S7-1500, S7-

1500T)

4.3.1

Configuration - Basic Parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic Parameters" configuration window.

Name

Define the name of the external encoder in this field. The technology object is listed under this name in the project tree. The tags of the external encoder can be used in the user program under this name.

External encoder type
In this selection, configure whether the external encoder records linear or rotary motions.

Units of measure
In the drop-down list, select the desired units of measure for the position and velocity of the external encoder.
If you wish to use six decimal places in the selected unit, select the check box "Use position values with higher resolution".

Modulo

Select the check box "Enable modulo", if you want to use a recurring measuring system for the external encoder (e.g. 0-360° for an external encoder of the "rotary" type).
 Modulo start value
In this field, define the position at which the modulo range should begin (e.g. 0° for an external encoder of the "rotary" type).
 Modulo length
In this field, define the length of the modulo range (e.g. 360° for an external encoder of the "rotary" type).

See also

Modulo setting (Page 23) External encoder technology object (Page 20)

148

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

4.3.2

Hardware interface (S7-1500, S7-1500T)

4.3.2.1

Configuration - Encoder (S7-1500, S7-1500T)
The external encoder records the position of an externally controlled drive. The encoder required for this purpose communicates the encoder position to the controller by means of a PROFIdrive telegram. Configure the encoder and encoder type in the "Encoder" configuration window.

Data connection
In the drop-down list, select whether the data connection should be established directly with the encoder or via a data block that can be edited in the user program.
The selection is only possible for encoders that are connected via PROFIdrive and support parameter P979.

Encoder/data block
Select the encoder you have configured in the device configuration in this area.
The following encoders can be used:
 Encoder on technology module (TM)
In the "Encoder" configuration field, select a previously configured technology module and the channel to be used. Only technology modules set to the "Position input for Motion Control" mode are displayed for selection.
You can operate the technology module centrally on an S7-1500 CPU or decentrally on a distributed I/O. Isochronous mode is not possible with central operation in the CPU.
You can identify the technology modules suitable for position detection for Motion Control in the documentation for the technology module and the catalog data.
 Encoder via PROFINET/PROFIBUS (PROFIdrive)
In the " Encoder" configuration field, select a configured encoder on the PROFINET/PROFIBUS.
Note Option "Show all modules"
If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules.
When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive encoder.
If you have selected "Data block" under the data connection, select a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

149

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Encoder type

Select the encoder type in this configuration field. The following encoder types are available for selection:
 Incremental (Page 32)
 Absolute (Page 32) (measuring range > traversing range)
 Cyclic absolute (Page 32) (measuring range < traversing range)
Recommended settings for absolute actual values: The "Cyclic absolute" encoder type is recommended. With this setting, the position of the zero crossing of the encoder is automatically taken into consideration by the technology object.

Note Measuring range of the absolute encoder
Observe the boundary conditions with absolute values.
You can find more information in the section "Absolute actual value (Page 32)" of the "S7-1500/S7-1500T Axis functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766462).

See also

Data connection drive/encoder via data block (Page 44)
"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)

4.3.2.2

Configuration - Data exchange (S7-1500, S7-1500T)
Configure detailed encoder parameters and the data exchange with the encoder in the "Data exchange with encoder" configuration window. The configuration varies according to the encoder connection:
 Encoder to technology module (Page 150)
 Encoder to PROFINET/PROFIBUS (Page 153)

Encoder to technology module (S7-1500, S7-1500T)

Data exchange with encoder
In this area, you can configure the encoder telegram and the criteria for how the encoder data are to be evaluated. The specifications must match those in the device configuration.

150

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)
Encoder telegram
In the drop-down list for the technology module, select the telegram that you have configured in the technology module.
Automatically apply encoder values during configuration (offline)
Select the check box if you want to transfer the offline values of the encoder to the configuration of the technology object in the project.
Note Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.
Automatically apply encoder values during runtime (online)
Select the check box if you want to transfer the effective values online in the encoder to the CPU during runtime. The encoder parameters are transferred from the bus after the (re-)initialization of the technology object and (re)start of the encoder or the CPU.
Note Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

151

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Encoder type

Depending on the selected encoder type, configure the following parameters: The specifications must match those in the device configuration.

Encoder type Increments per revolution
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Rotary incremental
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Encoder type

Rotary absolute

Increments per revolution

Configure the number of increments that the encoder resolves per revolution in this field.

Number of revolutions

Configure the number of revolutions that the absolute encoder can detect in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Encoder type

Rotary cyclic absolute

Increments per revolution

Configure the number of increments that the encoder resolves per revolution in this field.

Number of revolutions

Configure the number of revolutions that the absolute encoder can detect in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Encoder type Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Linear incremental
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

152

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Encoder type

Linear absolute

Distance between two increments

Configure the distance between two increments of the encoder in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Encoder type

Linear cyclic absolute

Distance between two increments

Configure the distance between two increments of the encoder in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

See also

Configuration - Data exchange (Page 150) Encoder to PROFINET/PROFIBUS (Page 153)

Encoder to PROFINET/PROFIBUS (S7-1500, S7-1500T)

Data exchange with encoder
In this area, you can configure the encoder telegram and the criteria for how the encoder data are to be evaluated. The specifications must match those in the device configuration.

Encoder telegram
The telegram to the encoder that is set in the device configuration is preselected in the dropdown list.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

153

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)
Automatically apply encoder values during configuration (offline)
Select the check box if you want to transfer the offline values of the encoder to the configuration of the technology object in the project.
Note Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.

Automatically apply encoder values during runtime (online)
Select the check box if you want to transfer the effective values online in the encoder to the CPU during runtime. The encoder parameters are transferred from the bus after the (re-)initialization of the technology object and (re)start of the encoder or the CPU.
Note
Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.

Encoder type

Depending on the selected encoder type, configure the following parameters:

Encoder type Increments per revolution
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Rotary incremental
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Encoder type

Rotary absolute

Increments per revolution

Configure the number of increments that the encoder resolves per revolution in this field.

Number of revolutions

Configure the number of revolutions that the absolute encoder can detect in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

154

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

See also

Encoder type

Rotary cyclic absolute

Increments per revolution

Configure the number of increments that the encoder resolves per revolution in this field.

Number of revolutions

Configure the number of revolutions that the absolute encoder can detect in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Encoder type Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Linear incremental
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Encoder type

Linear absolute

Distance between two increments

Configure the distance between two increments of the encoder in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Encoder type

Linear cyclic absolute

Distance between two increments

Configure the distance between two increments of the encoder in this field.

Bits for fine resolution in the incremental actual value (Gx_XIST1)

Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

Bits for fine resolution in the absolute actual value Configure the number of bits for fine resolution

(Gx_XIST2)

within the absolute actual value (Gx_XIST2) in

this field.

Configuration - Data exchange (Page 150) Encoder to technology module (Page 150)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

155

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

4.3.3

Configuration - Leading value settings (S7-1500, S7-1500T)
In the "Leading value settings" configuration window, select the parameters of the leading value for cross-PLC synchronous operation.

Provision of leading value
In this area, define the settings for transferring the leading value to other CPUs:

Field
Provide cross-PLC leading value
Transfer area

Description
Select this check box to make the actual value available as leading value for a cross-PLC synchronous operation.
In this drop-down list, select the output tag of the transfer area set up between the CPU of the leading axis and the CPUs of the following axes.
You can find more information about the transfer range in the section "Setting up communication via Controller-Controller direct data exchange" of the documentation "S7-1500/S7-1500T Synchronous operation functions" (https://support.industry.siemens.com/cs/ww/en/view/109766464).

Delay time of the local leading value
In this area, configure the settings for local synchronous operation:

Field Allow system calculation Delay time
Interconnection overview

Description
Select this check box to adapt the delay time of the local leading value in the system. System calculation is started when you trigger the calculation in the interconnection overview.
If the "Allow system calculation" check box is cleared, this field can be edited. Enter the delay time in this field.
The entered delay time determines the output delay of the leading value for the local following axes.
(<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime)
You open the interconnection overview via this link. With a cross-PLC synchronous operation, the interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment.

4.3.4 4.3.4.1

Extended Parameters (S7-1500, S7-1500T)
Configuration - Mechanics (S7-1500, S7-1500T)
Configure the encoder parameters for the position of the externally controlled drive in the "Mechanics" configuration window. The configuration varies according to the type of encoder:  Linear (Page 157)  Rotary (Page 157)

156

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

See also

External encoder technology object (Page 20) Mechanics (Page 47)

Linear (S7-1500, S7-1500T)

Encoder

If you would like to invert the actual value of the encoder, select the check box "Invert encoder direction".

Load gear

The gear ratio of the measuring gearbox is specified as the ratio between encoder revolutions and load revolutions.
In the "Number of encoder revolutions" configuration field, configure the integer number of encoder revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.
If no load gear is present, select the same values for the number of encoder revolutions and load revolutions.

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

See also

Configuration - Mechanics (Page 156) Rotary (Page 157) Mechanics (Page 47)

Rotary (S7-1500, S7-1500T)

Encoder

If you would like to invert the actual value of the encoder, select the check box "Invert encoder direction".

Load gear

The gear ratio of the measuring gearbox is specified as the ratio between encoder revolutions and load revolutions.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

157

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

In the "Number of encoder revolutions" configuration field, configure the integer number of encoder revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.
If no load gear is present, select the same values for the number of encoder revolutions and load revolutions.

See also

Configuration - Mechanics (Page 156) Linear (Page 157) Mechanics (Page 47)

4.3.4.2

Homing (S7-1500, S7-1500T)

Configuration - Homing (S7-1500, S7-1500T)
Configure the parameters for homing the external encoder in the "Homing" configuration window. Homing is executed using the Motion Control instruction "MC_Home" with "Mode" = 2, 8 and 10.
Note Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Select the homing mode
Select from among the following homing modes:  Reference output cam and zero mark via PROFIdrive telegram (Page 159)  Use zero mark via PROFIdrive telegram (Page 160)  Homing mark via digital input (Page 160)

158

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Reference output cam and zero mark via PROFIdrive telegram (S7-1500, S7-1500T)

Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero mark after leaving the reference output cam is used. The following options are available:  Positive
Axis moves in the direction of higher position values.  Negative
Axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Configuration - Homing (Page 158) Use zero mark via PROFIdrive telegram (Page 160) Homing mark via digital input (Page 160)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

159

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Use zero mark via PROFIdrive telegram (S7-1500, S7-1500T)

Homing direction
Select the direction in which the next zero mark should be approached for homing. The following options are available:  Positive
Axis moves in the direction of higher position values.  Negative
Axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Configuration - Homing (Page 158) Reference output cam and zero mark via PROFIdrive telegram (Page 159) Homing mark via digital input (Page 160)

Homing mark via digital input (S7-1500, S7-1500T)

Digital input homing mark
In this configuration field, select a digital input that is to act as a homing mark (reference output cam). Also select the level at which the homing mark is to be detected.

160

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

Homing direction
Select the direction in which the homing mark for homing is to be approached. The following options are available:  Positive
Axis moves in the direction of higher position values.  Negative
Axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Homing mark

Select which switch position of the "digital input" is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one another are generated. The selection of the positive or negative side ensures that the homing mark is always evaluated at the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of whether it causes a rising or falling edge.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Configuration - Homing (Page 158) Use zero mark via PROFIdrive telegram (Page 160) Reference output cam and zero mark via PROFIdrive telegram (Page 159)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

161

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)

4.3.4.3

Configuration - Actual value extrapolation (S7-1500T)
Configure the properties of the extrapolation for an actual value coupling for synchronous operation in the "Actual value extrapolation" configuration window. The values set here only apply when the actual values of this axis are used as leading value.

Position filter T1 and T2
Enter the time constants of the PT2 filter for smoothing the position.

Velocity filter T1 and T2 and tolerance band width
Enter the time constants of the PT2 filter for the smoothing of the actual velocity and the tolerance band width of the smoothed actual velocity.
For optimized application of the tolerance band, enter the same bandwidth for the tolerance band as the width of the noise signal.

Hysteresis value
Enter a value for application of the hysteresis function to the extrapolated actual value of the position. The specification is made in the configured length unit.

Leading axis dependent extrapolation time (read-only)
The leading axis-dependent time is calculated from the sum of the actual value acquisition time at the leading axis, (Ti), the time of the interpolator (TIpo) and the sum of position filters T1 and T2:
Leading axis dependent extrapolation time = Ti + TIpo + T1 + T2

Following axis dependent extrapolation time
Specify the following axis-related proportion for the extrapolation of the leading value. The value (unchanged or offset against user-specific runtimes) from the tag "<TO>.StatusPositioning.SetpointExecutionTime" of the following axis is used as the basis.

Time from cross-PLC synchronous operation (read-only)
The time from the cross-PLC synchronous operation corresponds to the value of the deceleration time set at the axis or encoder in "Configuration > Leading value settings".

Apply leading value velocity from differentiation
When you select this check box, the leading value velocity is taken from the differentiation of the extrapolated leading value position.
When you clear this check box, the filtered actual velocity is applied.

162

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Configuring (S7-1500, S7-1500T) 4.3 Configuring the technology object external encoder (S7-1500, S7-1500T)
Include leading axis condition time
When you select this check box, the leading axis dependent extrapolation time is included in the calculation of the effective extrapolation time. When you clear this check box, the leading axis dependent extrapolation time is not included in the calculation of the effective extrapolation time.
Effective extrapolation time (read-only)
The effective extrapolation time is the sum of the leading axis-dependent time, the following axis-dependent time and the delay time of cross-PLC synchronous operation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

163

Commissioning (S7-1500, S7-1500T)

5

5.1

Axis control panel (S7-1500, S7-1500T)

5.1.1

Function and structure of the axis control panel (S7-1500, S7-1500T)
You traverse individual axes with the axis control panel. A user program is not necessary for the operation of the axis control panel. With the axis control panel, you assume master control for a technology object and control the motions of the axis.
WARNING Uncontrolled axis motions During operation with the axis control panel, the axis can execute uncontrolled motions (e.g. due to erroneous configuration of the drive or the technology object). Furthermore, any synchronized following axis is moved as well when moving a leading axis with the axis control panel. Therefore, perform the following protective measures before operation with the axis control panel: · Ensure that the EMERGENCY OFF switch is within the reach of the operator. · Enable the hardware limit switches. · Enable the software limit switches. · Ensure that following error monitoring is enabled. · Make sure that no following axis is coupled to the axis to be moved.
The axis control panel of the speed axis, positioning axis and synchronous axis can be found in the project tree under "Technology object > Commissioning". The axis control panel is divided into the following areas:  Master control  Axis  Operating mode  Modify  Axis status  Actual values

164

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Commissioning (S7-1500, S7-1500T) 5.1 Axis control panel (S7-1500, S7-1500T)

Elements of the axis control panel
The following table lists the elements of the axis control panel:

Area Master control

Element

Description

In the "Master control" area, you assume master control of the technology object or return it to your user program.

"Activate" button With the "Activate" button, you set up an online connection to the CPU and take over master control for the selected technology object.

· To take over master control, the technology object must be disabled in the user program.

· Any synchronized following axis is moved as well when moving a leading axis with the axis control panel.

· If the online connection to the CPU is lost during operation with the axis control panel, then after the sign of life monitoring has elapsed, the axis will be stopped with maximum deceleration. In this case, an error message is displayed ("ErrorID" = 16#8013) and the master control is passed back to the user program.

· If the axis control panel is covered by a dialog, such as "Save as", during its operation with the axis control panel, the axis is stopped with maximum deceleration and the master control is returned to the user program.

If the "Stop" button is covered during operation with the axis control panel, for example by scrolling or by another window, the master control is retained but the axis is stopped with maximum deceleration.

If you change to another window within the TIA Portal, to the project tree for example, during operation with the axis control panel, the master control and motion of the axis is maintained, provided that the axis control panel is embedded in the TIA Portal. If the axis control panel is replaced by the TIA Portal and you change to another window within the TIA Portal, to the project tree for example, the master control is retained but the axis is stopped with maximum deceleration.

If you change to another window outside the TIA Portal during operation with the axis control panel, the master control is retained but the axis is stopped with maximum deceleration.
· When you click the "Activate" button, a warning message is displayed. In the warning, you can adapt the sign-of-life monitoring (100 to 60000 ms).

If the master control of the axis control panel is lost repeatedly without a direct error message, the online connection to the CPU may be impaired because the communication load is too high. In this case, the message "Error during commissioning" is entered in the message display log. Sign-of-life failure between controller and TIA Portal" is displayed.

To eliminate this error, adapt the sign-of-life monitoring in the warning.
· Until master control is returned, the user program has no influence on the functions of the technology object. Motion Control jobs from the user program to the technology object are rejected with error ("ErrorID" = 16#8012: Axis control panel enabled).
· When master control is taken over, the configuration of the technology object is adopted. Changes to the configuration of the technology object do not take effect until leading control has been returned.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

165

Commissioning (S7-1500, S7-1500T) 5.1 Axis control panel (S7-1500, S7-1500T)

Area

Element

Description Therefore, make any necessary changes before master control is assumed again.

· If master control has been taken over for the technology object, the axis control panel is blocked for access by another instance of the TIA Portal (Team Engineering as of CPU V1.5).

Axis
Operating mode Modify

"Deactivate" button

With the "Deactivate" button, you return master control to your user program.

In the "Axis" area, you can enable or disable the technology object.

"Enable" button With the "Enable" button, you enable the selected technology object

"Disable" button With the "Disable" button, you disable the selected technology object

Select the required mode in the "Operating mode" drop-down list.

The "Control" area displays the parameters for traversing with the axis control panel according to the selected operating mode.

Position

Position to which the axis is homed.

("Homing" and "Set home position" modes only)

Distance

Distance the axis is traversed.

("Relative positioning" mode only)

Target position Position to which the axis is traversed.

("Absolute positioning" mode only)

Velocity/

Velocity or speed at which the axis is traversed.

Velocity setpoint Default: 10% of the configured value in the "Technology object > Configuration >

Extended parameters > Limits > Dynamics limits".

(Velocity/speed setpoint, "Jog" and "Positioning" modes only)

Acceleration

Acceleration with which the axis is traversed.

Default: 10% of the configured value in the "Technology object > Configuration > Extended parameters > Limits > Dynamics limits".

Deceleration

Deceleration with which the axis is traversed.

Default: 10% of the configured value in the "Technology object > Configuration > Extended parameters > Limits > Dynamics limits".

Jerk

Jerk with which the axis is traversed.

Default: 100% of the configured value in "Technology objects > Configuration > Extended parameters > Limits > Dynamic limits".

"Start" button With the "Start" button, you start a job according to the selected operating mode.

"Forward" button With the "Forward" button, you start a motion in the positive direction according to the selected operating mode.

"Backward" button

With the "Backward" button, you start a motion in the negative direction according to the selected operating mode.

"Stop" button With the "Stop" button, you cancel a job or stop the axis.

If the "Stop" button is covered during operation with the axis control panel, for example by scrolling or by another window, the master control is retained but the axis is stopped with maximum deceleration.

166

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Commissioning (S7-1500, S7-1500T) 5.1 Axis control panel (S7-1500, S7-1500T)

Area Axis status
Actual values

Element
Drive ready Error Enabled Homed More
Active errors "Confirm" button Alarm display
Position Velocity

Description The "Axis status" area displays the status of the axis and the status of the drive. Drive is ready to execute setpoints. An error occurred at the technology object. The technology object has been enabled. The axis can be moved with motion jobs. The technology object is homed. The "More" link takes you to the window "Technology object > Diagnostics > Status and error bits". The error that occurred most recently is displayed in the "Active errors" text field. With the "Confirm" button, you acknowledge pending errors. You can access the alarm display in the Inspector window by clicking on the "Alarm display" link. The "Current values" area shows the actual values of the axis. Actual position of the axis Actual velocity of the axis

Note No transfer of the parameters
Parameter values that you use in the axis control panel are discarded when the axis control panel is closed.
To use the parameter values in the user program, transfer the values to the configuration.

Operating mode
The following table shows the operating modes of the axis control panel:

Operating mode Homing
Set home position
Jog
Velocity specification/speed setpoint

Description
This function corresponds to active homing. The parameters for homing (Page 66) must be configured. Homing is not possible with an absolute encoder. The technology object is not referenced when this mode is used with an absolute encoder.
This function corresponds to direct homing (absolute). With the "Start" button, you set the actual position to the value specified in "Position" and the "Homed" status is set.
Motion commands occur by means of jogging. With the "Forward" or "Backward" button you start motion in the positive or negative direction. The motion runs for as long as you hold down the left mouse button.
The axis is moved at the specified velocity or speed until you stop the movement. The motion commands are performed according to the setpoints assigned under "Controller".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

167

Commissioning (S7-1500, S7-1500T) 5.1 Axis control panel (S7-1500, S7-1500T)

Operating mode Positioning relative
Positioning absolute

Description
The positioning is executed as a controlled, relative traversing motion according to the defaults assigned under "Controller".
The positioning is executed as a controlled, absolute traversing motion according to the defaults assigned under "Controller".
If you have enabled the "Modulo" setting of the technology object, the buttons "Forward" and "Backward" are shown in the "Controller" area. The axis is positioned within the modulo range. Position settings outside the modular range are recalculated to the modulo range.
If you have not enabled the "Modulo" setting of the technology object, only the "Start" button is shown in the "Controller" area. You can directly approach the entered position.

5.1.2

Using the axis control panel (S7-1500, S7-1500T)
You traverse individual axes with the axis control panel. You assume master control of a technology object and control the motions of the axis.

Requirement

 The project has been created and downloaded to the CPU.  The CPU must be in the RUN mode.  The technology object is disabled by your user program ("MC_Power.Enable" = FALSE).  The axis control panel for the technology object is not used by another instance of the
TIA Portal (Team Engineering as of CPU V1.5).

Procedure

Proceed as follows to enable control the axis using the axis control panel:
1. To assume master control of the technology object and to set up an online connection to the CPU, click "Activate" in the "Master control" area.
A warning message is displayed.
2. If necessary, adapt the sign-of-life monitoring and click "OK".
3. To enable the technology object, click the "Enable" button in the "Axis" area.
4. In the drop-down list in the "Operation mode" area, select the desired function of the axis control panel.
5. In the "Control" area, specify the parameter values for your job.
6. Depending on the mode selected, click the "Start", "Forward" or "Backward" button to start the job.
7. Click the "Stop" button to stop the job.
8. Repeat steps 4 through 6 for additional jobs.
9. To disable the technology object, click the "Disable" button in the "Axis" area.
10.To return master control to your user program, click the "Deactivate" button in the "Master control" area.

168

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

5.2
5.2.1

Optimization (S7-1500, S7-1500T)

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)

Function and structure of the optimization (S7-1500, S7-1500T)
The "Optimization" function supports you in determining the optimal precontrol and gain (Kv factor) for the closed loop position control of the axis. The axis velocity profile is recorded by means of the Trace function for this purpose for the duration of a configurable positioning movement. You can then evaluate the recording, and adjust the precontrol and gain accordingly.
WARNING Uncontrolled axis motions During operation with the optimization, the axis can execute uncontrolled motions (for example, due to erroneous configuration of the drive or the technology object). In addition, when a leading axis is moved, any synchronized following axis is also moved. Therefore, perform the following protective measures before operation with the optimization: · Ensure that the EMERGENCY OFF switch is within the reach of the operator. · Enable the hardware limit switches. · Enable the software limit switches. · Ensure that following error monitoring is enabled. · Make sure that no following axis is coupled to the axis to be moved.
The "Optimization" function for the positioning axis and synchronous axis technology objects can be found in the project tree under "Technology object > Commissioning". The "Tuning" dialog is divided into the following areas:  Master control  Axis  Measurement configuration  Optimize position controller  Run measurement  Trace

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

169

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)

The following table lists the elements of optimization:

Area Master control
Axis

Element

Description

In the "Master control" area, you take over master control of the technology object, or return it to your user program.

"Activate" button With the "Activate" button, you set up an online connection to the CPU and take over master control for the selected technology object.

· To take over master control, the technology object must be disabled in the user program.

· Any synchronized following axis is moved as well when moving a leading axis with the axis control panel.

· If the online connection to the CPU is lost during operation with the axis control panel, then after the sign of life monitoring has elapsed, the axis will be stopped with maximum deceleration. In this case, an error message is displayed ("ErrorID" = 16#8013) and the master control is passed back to the user program.

· When you click the "Activate" button, a warning message is displayed. You can adapt the sign-of-life monitoring here (100 to 60000 ms).

If the master control of the axis control panel is lost repeatedly without a direct error message, the online connection to the CPU may be impaired because the communication load is too high. In this case, the message "Error during commissioning. Sign-of-life failure between controller and TIA Portal" is displayed in the message display log.

To eliminate this error, adapt the sign-of-life monitoring in the warning.
· Until master control is returned, the user program has no influence on the functions of the technology object. Motion Control jobs from the user program to the technology object are rejected with error ("ErrorID" = 16#8012: Axis control panel enabled).
· When master control is taken over, the configuration of the technology object is adopted. Changes to the configuration of the technology object do not take effect until master control has been returned. For this reason, make any necessary changes before master control is taken over.
· If master control has been taken over for the technology object, the axis control panel is blocked for access by another installation of the TIA Portal (Team Engineering as of CPU V1.5).

"Deactivate" button
"Enable" button "Disable" button

With the "Deactivate" button, you return master control to your user program.
In the "Axis" area, you can enable or disable the technology object. With the "Enable" button, you enable the selected technology object With the "Disable" button, you disable the selected technology object

170

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)

Area Measurement configuration
Optimize position controller
Run measurement
Trace

Element

Description

In the "Measurement configuration" area, you configure the settings for a test step.

Distance

Travel distance for a test step

Measurement duration

Time for a test step

"Customize

The "Dynamics adapt" check box allows you to adapt the acceleration, deceleration

dynamics" check and maximum velocity.

box

As long as the "Commissioning" working area is open, the previously set values are

displayed when the check box is selected again.

Acceleration

Presetting of the acceleration for a test step

Deceleration

Default setting for delaying a test step

Maximum velocity

Presetting of the maximum velocity for a test step

In the "Optimize position controller" area, you make the settings for optimization of the controller characteristics.

You open a list of values using the

symbol next to a field. The list of values

contains the following values of the respective parameter:

· Online actual value · Online start value · Project start value

Enter the new value in the text field for the actual value. The new value is applied by clicking the "Forward" or "Backward" button in the "Run measurement" area.

Precontrol

Current percentage velocity precontrol of the position controller

Speed control loop substitute time

Current speed control loop substitute time
With velocity precontrol, a simplified speed control loop model can be generated using the speed control loop substitute time. This prevents the velocity variable being overridden by the position controller during the acceleration and deceleration phases. To accomplish this, the position setpoint of the position controller is delayed by the amount of the speed control loop substitute time in relation to the velocity precontrol.

Gain

Current gain of the position controller (Kv)

In the "Run measurement" area, you perform the test steps.

"Forward" button With the "Forward" button, you start a test step for optimization in the positive direction.

"Backward" button

With the "Backward" button, you start a test step for optimization in the negative direction.

"Stop" button

You stop a test step with the "Stop" button. The axis decelerates with the configured maximum deceleration.

If another window is superimposed on the "Stop" button, the axis stops.

The Trace function is displayed in the lower area of the "Tuning" dialog.

With each test step, a Trace recording of the required parameters is automatically started and displayed after completion of the test step.

After master control has been returned, the Trace recording is deleted.

You can find a full description of the trace function in the section on using the "trace and logic analyzer function".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

171

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)

Note No automatic transfer of the parameters to the technology object
The configured parameter values are discarded after master control is returned.
Transfer the values as needed into your configuration. You can apply the values for the gain, precontrol and speed control loop substitute time in your configuration using the "Project start value" value.

See also

Closed-loop control (Page 93)

5.2.2

Optimize position controller (S7-1500, S7-1500T)

Requirements

 The CPU must be in the RUN mode.  The project has been created and downloaded to the CPU.  The technology object is disabled by your user program (MC_Power.Enable = FALSE).  The axis control panel for the technology object is not used by another installation of the
TIA Portal (Team Engineering as of CPU V1.5).

Optimizing position control gain (Kv)
Proceed as follows to optimize the gain (Kv):
1. In the "Master control" area, click the "Activate" button to activate master control for the technology object, and to establish an online connection to the CPU.
A warning message is displayed.
2. If necessary, adapt the sign-of-life monitoring and confirm with "OK".
3. In the "Axis" area, click the "Enable" button to enable the technology object.
4. If necessary, configure values for the distance, duration, and dynamics of a test step in the "Measurement configuration" area.
5. If necessary, configure values for the precontrol and speed control loop substitute time of a test step in the "Configure position controller" area.
6. Enter a start value for the gain. Start with a low value.

172

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)
7. Click the "Forward" or "Start" button to start a test step for the optimization. For the specified duration, a setpoint is output according to the specified distance. The axis moves by the specified distance. A trace recording of the motion (setpoint and actual values) is created automatically. You can find a full description of the trace function in the section on using the "trace and logic analyzer function".
Note Adapt following error limits If error messages from following error monitoring are repeatedly displayed during optimization, temporarily adapt the following error limits.
8. Evaluate the curve of the trace recording. Adapt the gain incrementally. Click the "Forward" or "Backward" button after each value you enter. This applies the value and start a new movement and trace recording each time.
When adjusting the gain, pay attention to the following properties of the curve:  The curve shows a brief compensation time.  The curve does not show any motion reversal of the actual position.  When approaching the position setpoint, no overshoot occurs.  The curve shows a stable overall behavior (oscillation-free curve).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

173

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)
The following trace recording shows a curve with a long settling time:
The following trace recording shows a curve with overshoot when approaching the setpoint:

174

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Commissioning (S7-1500, S7-1500T) 5.2 Optimization (S7-1500, S7-1500T)
The following trace recording shows a curve in which the gain is optimal and the overall response is steady:

Transferring the parameter values of the position controller to the project
To transfer the determined parameter values of the position controller to your project, follow these steps: 1. Click the icon next to the field of the respective parameter.
A list of values is displayed. 2. Enter the measured value in the "Project start value" field of the value list. 3. In the "Axis" area, click the "Disable" button to disable the technology object. 4. In the "Master control" area, click the "Deactivate" button to return master control to your
user program. 5. Load your project into the CPU.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

175

Diagnostics (S7-1500, S7-1500T)

6

The "Diagnostics" section is limited to the description of the diagnostic view of the Speed axis, Positioning axis and External encoder technology objects in the TIA Portal.
You will find a description of Motion Control diagnostics in the following sections of the "S71500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459):
 Diagnostics concept
 Technology alarms
 Errors in Motion Control instructions
A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.automation.siemens.com/WW/view/en/59192926).

176

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.1 Speed-controlled axis technology object (S7-1500, S7-1500T)

6.1

Speed-controlled axis technology object (S7-1500, S7-1500T)

6.1.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The Diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Axis status

The following table shows the possible axis status values:

Status Simulation active Enabled
Error
Restart active Axis control panel enabled
Drive ready Restart required

Description
The axis is simulated in the CPU. Setpoints are not output to the drive.
The technology object has been enabled. The axis can be moved with motion jobs. (<TO>.StatusWord.X0 (Enable))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. (<TO>.StatusWord.X2 (RestartActive))
The axis control panel is active. The axis control panel has master control over the technology object. The axis cannot be controlled from the user program. (<TO>.StatusWord.X4 (ControlPanelActive))
Drive is ready to execute setpoints. (<TO>.StatusDrive.InOperation)
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

177

Diagnostics (S7-1500, S7-1500T) 6.1 Speed-controlled axis technology object (S7-1500, S7-1500T)

Motion status

The following table shows the possible axis motion status values:

Status

Description

Done (no job running) No motion job is running for the technology object.

(<TO>.StatusWord.X6 (Done))

Jog

The axis is being moved with a job for jog mode of Motion Control instruc-

tion "MC_MoveJog" or from the axis control panel.

(<TO>.StatusWord.X9 (JogCommand))

Speed setpoint

The axis is traversed with a job with speed setpoint of the Motion Control instruction "MC_MoveVelocity" or using the axis control panel.

(<TO>.StatusWord.X10 (VelocityCommand))

Constant speed

The axis is moved with constant speed or is stationary.

(<TO>.StatusWord.X12 (ConstantVelocity))

Accelerating

Axis is being accelerated.

(<TO>.StatusWord.X13 (Accelerating))

Decelerating

The axis is being decelerated.

(<TO>.StatusWord.X14 (Decelerating))

Torque limiting enabled At least the threshold value (default 90%) of the preset force/torque limitation acts on the axis.

(<TO>.StatusWord.X27 (InLimitation))

Active stop job

The axis is stopped and disabled by Motion Control instruction "MC_Stop".

(<TO>.StatusWord2.X0 (StopCommand))

Warnings

The following table shows the possible warnings:

Warning Configuration Job rejected
Dynamic limitation

Description
One or several configuration parameters are adapted internally at a given time. (<TO>.WarningWord.X1 (ConfigWarning)) A job cannot be executed. A Motion Control instruction cannot be executed because necessary requirements have not been met. (<TO>.WarningWord.X3 (CommandNotAccepted)) The dynamic values are limited to the dynamic limits. (<TO>.WarningWord.X6 (DynamicWarning))

178

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.1 Speed-controlled axis technology object (S7-1500, S7-1500T)

Error

The following table shows the possible errors:

Error System Configuration
User program Drive Data exchange I/O Job rejected
Dynamic limitation

Description A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data were incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program with a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) An error occurred in the drive. (<TO>.ErrorWord.X4 (DriveFault)) Communication with a connected device is faulty. (<TO>.ErrorWord.X7 (CommunicationFault)) An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError)) A job cannot be executed. A Motion Control instruction cannot be executed because necessary requirements have not been met (e.g. technology object not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) The dynamic values are limited to the dynamic limits. (<TO>.ErrorWord.X6 (DynamicError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (speed axis) (Page 285) "ErrorWord" tag (speed axis) (Page 288) "WarningWord" tag (speed axis) (Page 290)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

179

Diagnostics (S7-1500, S7-1500T) 6.1 Speed-controlled axis technology object (S7-1500, S7-1500T)

6.1.2

Motion status (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA Portal to monitor the motion status of the axis. The Diagnostics function is available in online operation.

"Setpoints" area
The following table shows the meaning of the status data:

Status Speed setpoint
Speed override

Description
Speed setpoint of the axis
(<TO>.Velocity)
Speed setpoint correction as percentage
The speed setpoint specified in motion control instructions or set by the axis control panel are superimposed with an override signal and corrected as a percentage. Valid speed correction values range from 0.0 % to 200.0 %.
(<TO>.Override.Velocity)

"Current values" area
The following table shows the meaning of the status data:

Status Actual speed

Description Actual speed of the axis (<TO>.ActualSpeed)

"Dynamic limits" area
This area displays the limit values for the dynamic parameters. The following table shows the meaning of the status data:

Status Speed Acceleration Deceleration Jerk

Description Configured maximum speed (<TO>.DynamicLimits.MaxVelocity) Configured maximum acceleration (<TO>.DynamicLimits.MaxAcceleration) Configured maximum deceleration (<TO>.DynamicLimits.MaxDeceleration) Configured maximum jerk (<TO>.DynamicLimits.MaxJerk)

180

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.1 Speed-controlled axis technology object (S7-1500, S7-1500T)

6.1.3

PROFIdrive telegram (S7-1500, S7-1500T)
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostics function is used in the TIA Portal to monitor the PROFIdrive telegram that the drive returns to the controller. The Diagnostics function is available in online operation.

"Drive" area

This area displays the following parameters contained in the PROFIdrive telegram from the drive to the controller:  Status words "ZSW1" and "ZSW2"  The speed setpoint (NSET) that was output to the drive  The actual speed that was signaled from the drive (NACT)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

181

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

6.2

Positioning axis technology object (S7-1500, S7-1500T)

6.2.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The Diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Axis status

The following table shows the possible axis status values:

Status Simulation active Enabled
Position-controlled mode Homed
Error
Restart active Axis control panel enabled
Drive ready Encoder values valid Actual encoder values valid (S7-1500T) Active encoder

Description
The axis is simulated in the CPU. Setpoints are not output to the drive. (<TO>.StatusWord.X25 (AxisSimulation))
The technology object has been enabled. You can move the axis with motion jobs. (<TO>.StatusWord.X0 (Enable))
The axis is in position-controlled mode. (Inversion of <TO>.StatusWord.X28 (NonPositionControlled))
The technology object is homed. The relationship between the position in the technology object and the mechanical position was successfully created. (<TO>.StatusWord.X5 (HomingDone))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. (<TO>.StatusWord.X2 (RestartActive))
The axis control panel is active. The axis control panel has master control over the technology object. You cannot control the axis from the user program. (<TO>.StatusWord.X4 (ControlPanelActive))
Drive is ready to execute setpoints. (<TO>.StatusDrive.InOperation)
The actual encoder values are valid. (<TO>.StatusSensor[1].State)
The actual encoder values of encoder 1, encoder 2, encoder 3 or encoder 4 are valid. (<TO>.StatusSensor[1..4].State)
Encoder is operational. (<TO>.OperativeSensor)

182

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

Status Active encoder (S7-1500T)
Restart required

Description
The encoder in effect operationally is encoder 1, encoder 2, encoder 3 or encoder 4. (<TO>.OperativeSensor)
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

Status limit switch
The following table shows the possibilities for enabling the software and hardware limit switches:

Status

Description

Negative SW limit switch approached.

The negative software limit switch was reached. (<TO>.StatusWord.X15 (SWLimitMinActive))

Positive SW limit switch The positive software limit switch was reached.

approached.

(<TO>.StatusWord.X16 (SWLimitMaxActive))

Negative HW limit switch approached.

The negative hardware limit switch has been approached or overtraveled. (<TO>.StatusWord.X17 (HWLimitMinActive))

Positive HW limit switch The positive hardware limit switch has been approached or overtraveled.

approached.

(<TO>.StatusWord.X18 (HWLimitMaxActive))

Motion status

The following table shows the possible axis motion status values:

Status Done (no job running) Homing job
Jog
Velocity specification
Positioning job
Constant velocity Standstill

Description
No job active at technology object. (<TO>.StatusWord.X6 (Done)) The technology object executes a homing job of the Motion Control instruction "MC_Home" or from the axis control panel. (<TO>.StatusWord.X11 (HomingCommand)) The axis is being moved with a job for jog mode of Motion Control instruction "MC_MoveJog". (<TO>.StatusWord.X9 (JogCommand)) The axis is traversed with a job with velocity specification of the Motion Control instruction "MC_MoveVelocity" or from the axis control panel. (<TO>.StatusWord.X10 (VelocityCommand)) The axis is traversed with a positioning job of Motion Control instruction "MC_MoveAbsolute" or "MC_MoveRelative" or from the axis control panel. (<TO>.StatusWord.X8 (PositioningCommand)) The axis is moved with constant velocity or is stationary. (<TO>.StatusWord.X12 (ConstantVelocity)) The axis is in standstill. (<TO>.StatusWord.X7 (StandStill))

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

183

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

Warnings Error

Status Accelerating Decelerating Torque limiting enabled
Active stop job

Description Axis is being accelerated. (<TO>.StatusWord.X13 (Accelerating)) The axis is being decelerated. (<TO>.StatusWord.X14 (Decelerating)) At least the threshold value (default 90%) of the preset force/torque limitation acts on the axis. (<TO>.StatusWord.X27 (InLimitation)) The axis is stopped and disabled by Motion Control instruction "MC_Stop". (<TO>.StatusWord2.X0 (StopCommand))

The following table shows the possible warnings:

Warning Configuration Job rejected
Dynamic limitation

Description
One or more configuration parameters are being internally adapted temporarily. (<TO>.WarningWord.X1 (ConfigWarning)) Job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled. (<TO>.WarningWord.X3 (CommandNotAccepted)) The dynamic values are limited to the dynamic limits. (<TO>.WarningWord.X6 (DynamicWarning))

The following table shows the possible errors:

Error System Configuration
User program Drive Encoder

Description A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data were incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program with a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) An error occurred in the drive. (<TO>.ErrorWord.X4 (DriveFault)) An error occurred in the encoder system. (<TO>.ErrorWord.X5 (SensorFault))

184

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

Error Encoder (S7-1500T)
Data exchange I/O Job rejected
Homing Positioning
Dynamic limitation Following error SW limit switch HW limit switch Adaptation

Description An error has occurred in the encoder system of encoder 1, encoder 2, encoder 3 or encoder 4. (<TO>.ErrorWord.X5 (SensorFault)) Communication with a connected device is faulty. (<TO>.ErrorWord.X7 (CommunicationFault)) An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError)) A job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled (for example, technology object not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) An error occurred during a homing process. (<TO>.ErrorWord.X10 (HomingFault)) The positioning axis was not positioned correctly at the end of a positioning motion. (<TO>.ErrorWord.X12 (PositioningFault)) The dynamic values are limited to the dynamic limits. (<TO>.ErrorWord.X6 (DynamicError)) The maximum permitted following error has been exceeded. (<TO>.ErrorWord.X11 (FollowingErrorFault)) A software limit switch has been reached. (<TO>.ErrorWord.X8 (SwLimit)) A hardware limit switch has been reached or overtraveled. (<TO>.ErrorWord.X9 (HWLimit)) An error occurred during data adaption. (<TO>.ErrorWord.X15 (AdaptionError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (positioning axis) (Page 321) "ErrorWord" tag (positioning axis) (Page 325) "WarningWord" tag (positioning axis) (Page 327)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

185

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

6.2.2

Motion status (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA Portal to monitor the motion status of the axis. The Diagnostics function is available in online operation.

"Setpoints" area
The following table shows the meaning of the status data:

Status Target position
Position setpoint Velocity setpoint Velocity override

Description
Current target position of an active positioning job The target position value is only valid during execution of a positioning job. (<TO>.StatusPositioning.TargetPosition) Setpoint position of the axis (<TO>.Position) Velocity setpoint of the axis (<TO>.Velocity) Percentage correction of the velocity specification The velocity setpoint specified in Motion Control instructions or set by the axis control panel is superimposed with an override signal and corrected as a percentage. Valid velocity correction values range from 0.0 % to 200.0 %. (<TO>.Override.Velocity)

"Current values" area
The following table shows the meaning of the status data:

Status Operative encoder Actual position
Actual velocity Following error

Description Operative encoder of the axis Actual position of the axis If the technology object is not homed, then the value is displayed relative to the position that existed when the technology object was enabled. (<TO>.ActualPosition) Actual velocity of the axis (<TO>.ActualVelocity) Following error of the axis (<TO>.StatusPositioning.FollowingError)

186

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.2 Positioning axis technology object (S7-1500, S7-1500T)

"Dynamic limits" area
This area displays the limit values for the dynamic parameters. The following table shows the meaning of the status data:

Status Velocity Acceleration Deceleration Jerk

Description Configured maximum velocity (<TO>.DynamicLimits.MaxVelocity) Configured maximum acceleration (<TO>.DynamicLimits.MaxAcceleration) Configured maximum deceleration (<TO>.DynamicLimits.MaxDeceleration) Configured maximum jerk (<TO>.DynamicLimits.MaxJerk)

6.2.3

PROFIdrive telegram (S7-1500, S7-1500T)
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostics function is used in the TIA Portal to monitor the PROFIdrive telegrams returned by the drive and encoder. The display of the Diagnostics function is available in online operation.

"Drive" area

This area displays the following parameters contained in the PROFIdrive telegram from the drive to the controller:  Status words "ZSW1" and "ZSW2"  The speed setpoint (NSET) that was output to the drive  The actual speed that was signaled from the drive (NACT)

"Encoder" area
in the areas "Encoder" for CPU S7-1500 or "Encoder 1" to "Encoder 4" for CPU S7-1500T, the following parameters from the PROFIdrive telegram are displayed by the encoder to the controller.
 Status word "Gx_ZSW"
 The actual position value "Gx_XIST1" (cyclic actual encoder value)
 The actual position value "Gx_XIST2" (absolute encoder value)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

187

Diagnostics (S7-1500, S7-1500T) 6.3 Technology object external encoder (S7-1500, S7-1500T)

6.3

Technology object external encoder (S7-1500, S7-1500T)

6.3.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Encoder status
The following table shows the possible external encoder status values:

Status Encoder enabled Homed
Error
Restart active Encoder values valid Restart required

Description
The technology object has been enabled. (<TO>.StatusWord.X0 (Enable))
The technology object is homed. The relationship between the position in the technology object and the mechanical position was successfully created. (<TO>.StatusWord.X5 (HomingDone))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. (<TO>.StatusWord.X2 (RestartActive))
The actual encoder values are valid. (<TO>.StatusSensor[n].State)
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

Motion status

The following table shows the possible states of the job execution:

Status Done (no job running)
Homing job

Description
No Motion Control job is running for the technology object. (Enable by "MC_Power" job excepted) (<TO>.StatusWord.X6 (Done)) The technology object executes a homing job of the Motion Control instruction "MC_Home". (<TO>.StatusWord.X11 (HomingCommand))

188

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Diagnostics (S7-1500, S7-1500T) 6.3 Technology object external encoder (S7-1500, S7-1500T)

Error

The following table shows the possible errors:

Error System Configuration
User program Encoder Data exchange Adaptation

Description A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data were incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program with a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) An error occurred in the encoder system. (<TO>.ErrorWord.X5 (SensorFault)) Missing or faulty communication. (<TO>.ErrorWord.X7 (CommunicationFault)) An error occurred during data adaption. (<TO>.ErrorWord.X15 (AdaptionError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (external encoder) (Page 340) "ErrorWord" tag (external encoder) (Page 342) "WarningWord" tag (external encoder) (Page 344)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

189

Diagnostics (S7-1500, S7-1500T) 6.3 Technology object external encoder (S7-1500, S7-1500T)

6.3.2

Motion status (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA Portal to monitor the actual encoder values. The diagnostics function is available in online operation.

"Current values" area
The following table shows the meaning of the status data:

Status Actual position
Actual velocity

Description Actual position of the axis If the technology object is not homed, then the value is displayed relative to the position that existed when the technology object was enabled. (<TO>.ActualPosition) Actual velocity of the axis (<TO>.ActualVelocity)

6.3.3

PROFIdrive telegram (S7-1500, S7-1500T)
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostic function is used in the TIA Portal to monitor the PROFIdrive telegram of the encoder. The display of the diagnostics function is available in technology object online mode.

"Encoder" area
This area displays the following parameters contained in the PROFIdrive telegram that the encoder returns to the controller:  Status word "G1_ZSW"  The actual position value "G1_XIST1" (cyclic actual encoder value)  The actual position value "G1_XIST2" (absolute value of the encoder)

190

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T)

7

7.1

MC_Power V5 (S7-1500, S7-1500T)

7.1.1

MC_Power: Enable, disable technology object V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_Power", a technology object is enabled or disabled and, if necessary, a configured drive is switched on or off.

Applies to

 Speed axis  Positioning axis  Synchronous axis  External encoder

Requirement

 The technology object has been configured correctly.
 Cyclic BUS communication is established between controller and encoder ("<TO>.StatusSensor[1..4].CommunicationOK" = TRUE).
 Cyclic BUS communication is established between controller and drive ("<TO>.StatusDrive.CommunicationOK" = TRUE).
 The status of the active encoder is valid ("<TO>.StatusSensor[1..4].State" = 2).
 The optional data adaption (Page 34) has been completed ("<TO>.StatusDrive.AdaptionState" = 2 and "<TO>.StatusSensor[1..4].AdaptionState" = 2).

Override response
 An "MC_Power" job cannot be aborted by any other Motion Control job.
 An "MC_Power" job with parameter "Enable"TRUE enables a technology object but does not thereby abort any other Motion Control instructions.
 Disabling the technology object (parameter "Enable" = FALSE) aborts all Motion Control jobs on the corresponding technology object in accordance with the selected "StopMode". This process cannot be canceled by the user.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

191

Instructions (S7-1500, S7-1500T) 7.1 MC_Power V5 (S7-1500, S7-1500T)

Parameters
Parameters Axis Enable StartMode
StopMode

The following table shows the parameters of Motion Control instruction "MC_Power":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis TO_ExternalEncoder BOOL

Default value -
FALSE

INPUT DINT

1

INPUT INT

0

Description Technology object

TRUE The technology object is enabled.

FALSE The technology object is disabled.

All current jobs at the technology object are aborted in accordance with the configured "StopMode".

0

Enable positioning axis/synchronous

axis not position-controlled

1

Enable positioning axis/synchronous

axis position-controlled

The parameter initially takes effect when the positioning axis is enabled ("Enable" changes from "FALSE" to "TRUE") and when the axis is enabled after acknowledgment of an interrupt that caused the axis to be disabled.

This parameter is ignored when a speed axis or an external encoder is used.

Not applicable to the technology object external encoder

If you disable a technology object with a negative edge at parameter "Enable", the axis decelerates in accordance with the selected "StopMode".

0

Emergency stop

When the technology object is disabled, the axis is braked to a standstill without jerk limit, using the emergency stop deceleration configured in "Technology object > Configuration > Extended parameters > Emergency stop". The drive is then switched off and the technology object is locked.

(<TO>.DynamicDefaults. EmergencyDeceleration)

1

Immediate stop

When a technology object is disabled, the setpoint zero is output. The axis is braked to a standstill according to the configuration in the drive. The drive is then switched off and the technology object is locked.

192

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.1 MC_Power V5 (S7-1500, S7-1500T)

Parameters

Declara- Data type tion

Status

OUTPUT BOOL

Busy Error
ErrorID

OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value
FALSE
FALSE FALSE 16#0000

Description

2

Stop with maximum dynamic values

When the technology object is disabled, the axis is braked to a standstill using the maximum deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic limits". The configured maximum jerk is hereby taken into account. The drive is then switched off and the technology object is locked.

(<TO>.DynamicLimits.MaxDeceleration; <TO>.DynamicLimits.MaxJerk)

Technology object enable status

FALSE Disabled

· The technology object does not accept any Motion Control jobs.

· Speed control and positioning control are not active.

· The actual values of the technology object are not checked for validity.

TRUE Enabled

· The enabled technology object accepts Motion Control jobs.

· Speed control and positioning control are active.

· The actual values of the technology object are valid.

TRUE The job is being processed.

TRUE

An error occurred in Motion Control instruction "MC_Power". The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Enabling technology objects
To enable a technology object, set the "Enable" parameter to "TRUE".
The following two cases are differentiated:
 Enable at a standstill
 Enable in motion of axis
Enable at a standstill
Depending on the "StartMode" parameter, the position is held ("StartMode" = 1) or the velocity setpoint zero is output ("StartMode" = 0). When the "Status" parameter shows the value "TRUE", the technology object is enabled.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

193

Instructions (S7-1500, S7-1500T) 7.1 MC_Power V5 (S7-1500, S7-1500T)
Enable in motion of axis If "StartMode" = 1, the position at the time of the setting of the "Enable" input takes effect as the position setpoint for the position controller. The axis is braked to a standstill and adjusted to the set position depending on the maximum deceleration configured under "Technology object > Configuration > Extended parameters > Dynamic limits". If monitoring operation or dynamic limits are hereby exceeded, this leads to corresponding alarm reactions. If "StartMode" = 0, the axis is braked as much as possible by the specification of the velocity setpoint zero. Monitoring operations and dynamic limits are not active in this case. When the "Status" parameter shows the value "TRUE", the technology object is enabled.
Note Automatic enable after acknowledgment of a technology alarm If the technology object is disabled due to a technology alarm, the technology object will be enabled again automatically after the cause has been eliminated and the alarm has been acknowledged. This requires the "Enable" parameter to have retained the value "TRUE" during this process.
Disabling technology objects
To disable a technology object, set the "Enable" parameter to "FALSE". If an axis is in motion, it is braked to a standstill according to the selected "StopMode". When the "Busy" and "Status" parameters show the value "FALSE", the disabling of the technology object is complete and, if necessary, a configured drive switched on or off.
Drive connection by means of PROFIdrive
When a drive is connected using PROFIdrive, the setpoint, enable and drive status are transmitted via the PROFIdrive telegram.  Enable technology object and activate drive
With "Enable" = TRUE parameter, the technology object is enabled. The drive is enabled according to the PROFIdrive standard. When the "<TO>.StatusDrive.InOperation" tag shows the value "TRUE", the drive is ready to execute setpoints. The "Status" parameter is set to the value "TRUE".  Disable technology object and deactivate drive With the "Enable" = FALSE parameter, the "Status" parameter is set to the value "FALSE", and the axis is braked according to the selected "StopMode". The drive is disabled according to the PROFIdrive standard.

194

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.1 MC_Power V5 (S7-1500, S7-1500T)

Analog drive connection
The setpoint is output via an analog output. Optionally, you can configure an enabling signal via digital output (<TO>.Actor.Interface.EnableDriveOutput), and a readiness signal via digital input (<TO>.Actor.Interface.DriveReadyInput).
 Enable technology object and activate drive
With "Enable" = TRUE parameter, the enable output ("Enable drive output") is set.
When the drive returns the readiness signal via the ready input ("Drive ready input"), the "Status" parameter and the technology object's "<TO>.StatusDrive.InOperation" tag are set to "TRUE", and the setpoint is switched to the analog output.
 Disable technology object and deactivate drive
With the "Enable" = FALSE parameter, the "Status" parameter is set to the value "FALSE", and the axis is braked according to the selected "StopMode". When the setpoint zero is reached, the enable output is set to "FALSE".

Additional information
Additional information on enabling and disabling technology objects and drives can be found in the section ""MC_Power" function diagrams (Page 346)".

See also

Automatic transfer of drive and encoder parameters in the device (Page 34)
Emergency stop deceleration (Page 56)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

195

Instructions (S7-1500, S7-1500T) 7.1 MC_Power V5 (S7-1500, S7-1500T)

7.1.2

MC_Power: Function chart V5 (S7-1500, S7-1500T)

Function chart: Enabling a technology object and example of alarm response

A technology object is enabled with "Enable_1= TRUE". The successful enable can be read
from "Status_1" at time . The axis will then move with an "MC_MoveVelocity" job (A2). The
velocity profile of the axis can be read from "TO_1.Velocity".
At time  an error occurs in the technology object, which results in the disabling of the
technology object (alarm response: remove enable). The axis is braked to a standstill according to the configuration in the drive. When the technology object is disabled, "Status_1" is reset. Since the axis was not disabled using "Enable_1" = FALSE, the selected "StopMode" does not apply. The cause of the error is corrected and the alarm is
acknowledged at time .
Since "Enable_1" is still set, the technology object is enabled again. The successful enable can be read from "Status_1". Finally, the technology object is disabled with "Enable_1" = FALSE.

196

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.2 MC_Reset V5 (S7-1500, S7-1500T)

7.2

MC_Reset V5 (S7-1500, S7-1500T)

7.2.1

MC_Reset: Acknowledge alarms, restart technology object V5 (S7-1500, S71500T)

Description

With the Motion Control instruction "MC_Reset", you acknowledge all technology alarms that can be acknowledged in the user program. Acknowledgment also resets the "Error" and "Warning" bits in the technology object data block. An acknowledgment of alarms in the drive is also possible without a pending error at the technology object.
With "Restart" = TRUE, you start reinitialization (restart) of technology objects. Upon restart of the technology object, the new configuration data are applied in the technology object data block.

Applies to

 All technology objects

Requirement

 The technology objects speed axis, positioning axis, synchronous axis and external encoder.
For a restart, the technology object must be disabled.
("MC_Power.Status" = FALSE and "MC_Power.Busy" = FALSE)
 Cyclic BUS communication is established between controller and encoder ("<TO>.StatusSensor[1..4].CommunicationOK" = TRUE).
 Cyclic BUS communication is established between controller and drive ("<TO>.StatusDrive.CommunicationOK" = TRUE).

Override response
 An "MC_Reset" job cannot be aborted by any other Motion Control job.  A "MC_Reset" job with "Restart" = TRUE cancels all running Motion Control jobs.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

197

Instructions (S7-1500, S7-1500T) 7.2 MC_Reset V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_Reset":

Parameter Axis
Execute Restart
Done Busy CommandAborted Error ErrorID

Declaration INPUT
INPUT INPUT

Data type

Default value

TO_SpeedAxis

-

TO_PositioningAxis

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_OutputCam

TO_CamTrack

TO_MeasuringInput

TO_Cam

TO_Kinematics

BOOL

FALSE

BOOL

FALSE

OUTPUT BOOL
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE
FALSE FALSE FALSE
16#0000

Description Technology object

TRUE Start job with a positive edge

TRUE

Reinitialization of the technology object and acknowledgment of pending technology alarms. The technology object is reinitialized with the configured start values.

FALSE Acknowledgment of queued technology alarms

TRUE Technology alarms have been acknowledged.

The restart has been executed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

198

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.2 MC_Reset V5 (S7-1500, S7-1500T)
Acknowledging technology alarms
To acknowledge technology alarms, follow these steps: 1. Check the requirements indicated above. 2. Set the parameter "Restart" = FALSE. 3. Start the acknowledgment of the error with a positive edge at parameter "Execute".
When the "Done" parameter shows the value "TRUE", the error has been acknowledged. If you acknowledge multiple pending alarms, the pending alarms are displayed once more briefly in the "ErrorDetail.Number" tag without being signaled again. Check whether all alarms have been acknowledged after a restart with "MC_Reset.Done" = TRUE has been completely processed.
Note Acknowledge technology alarms with "Restart" = FALSE To acknowledge only the technology alarms, set "Restart" = FALSE. The technology object cannot be used during a restart. All technology alarms on axes and encoders are acknowledged, even if they are not enabled or not effective.

Restarting a technology object
To restart a technology object, follow these steps:
1. Check the requirements indicated above.
2. Set the parameter "Restart" = TRUE.
3. Perform the restart with a positive edge at parameter "Execute".
When the "Done" parameter shows the value "TRUE", the restart of the technology object is complete.
You can find additional information on restarting in the "Restarting technology objects" section of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

199

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

7.3

MC_Home V5 (S7-1500, S7-1500T)

7.3.1

MC_Home: Home technology object, set home position V5 (S7-1500, S71500T)

Description

With the Motion Control instruction "MC_Home", you create the relationship between the position in the technology object and the mechanical position. The actual position value in the technology object is assigned to a homing mark at the same time. This homing mark represents a known mechanical position.
Homing is performed according to the mode selected with the "Mode" parameter and the configuration under "Technology object > Configuration > Extended parameters > Homing".
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and  V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
The preset values under "Technology object > Configuration > Extended parameters > Dynamic default values" are used for the dynamic values Acceleration, Deceleration and Jerk.

Applies to

 Synchronous axis  Positioning axis  External encoder

200

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

The following table shows which modes are possible with each of the technology objects:

Operating mode
Active homing ("Mode" = 3, 5) Passive homing ("Mode" = 2, 8, 10) Set actual position ("Mode" = 0) Relative offset to the actual position ("Mode" = 1) Set setpoint position (direct absolute) ("Mode" = 11) Relative shift of the setpoint position ("Mode" = 12) Absolute encoder adjustment ("Mode" = 6, 7)

Positioning axis/synchronous axis
with incremental encoder
X

Positioning axis/synchronous axis
with absolute encoder
-

External incremental
encoder
-

External absolute encoder
-

X

-

X

-

X

X

X

X

X

X

X

X

X

X

X

X

-

X

-

X

Requirement

 The technology object has been configured correctly.
 "Mode" = 2, 3, 5, 8, 10 The technology object is enabled.
 "Mode" = 0, 1, 6, 7, 8, 11, 12 The actual encoder values are valid (<TO>.StatusSensor[1..4].State = 2).
 "Mode" = 6, 7
The axis is in position-controlled mode.

Override response
The override response for "MC_Home" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

201

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

Parameters
Parameter Axis
Execute Position Mode

The following table shows the parameters of Motion Control instruction "MC_Home":

Declaration INPUT
INPUT INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis TO_ExternalEncoder BOOL LREAL

Default value -
FALSE 0.0

INPUT INT

0

Description Technology object

TRUE Start job with a positive edge

The specified value is used according to the selected "Mode".

Operating mode

0

Direct homing (absolute)

The current position of the technology object is set to the value of parameter "Position".

1

Direct homing (relative)

The current position of the technology object is shifted by the value of parameter "Position".

2

Passive homing (without reset)

Functions like "Mode" 8, with the difference that the "homed" status is not reset when the function is enabled.

3

Active homing

The positioning axis/synchronous axis technology object performs a homing movement according to the configuration.

After the completion of the motion, the axis is positioned at the value of the "Position" parameter.

4

Reserved

5

Active homing ("Position" parameter

has no effect)

The positioning axis/synchronous axis technology object performs a homing movement according to the configuration.

After completion of the motion, the axis is positioned at the home position configured under "Technology object > Configuration > Extended parameters > Homing > Active homing".

(<TO>.Homing.HomePosition)

202

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Parameter

Declara- Data type tion

ReferenceMarkPosition
Done Busy CommandAborted

OUTPUT LREAL
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

Default value
0.0 FALSE FALSE FALSE

Description

6

Absolute encoder adjustment (relative)

The current position is shifted by the value of parameter "Position".

The calculated absolute value offset is stored retentively in the CPU.

(<TO>.StatusSensor[1..4]. AbsEncoderOffset)

7

Absolute encoder adjustment (absolute)

The current position is set to the value of parameter "Position".

The calculated absolute value offset is stored retentively in the CPU.

(<TO>.StatusSensor[1..4]. AbsEncoderOffset)

8

Passive homing

When the homing mark is detected, the actual value is set to the value of the "Position" parameter.

9

Abort passive homing

An active job for passive homing is aborted.

10

Passive homing ("Position" parameter

has no effect)

When the homing mark is detected, the actual value is set to the home position configured under "Technology object > Configuration > Extended parameters > Homing > Passive homing".

(<TO>.Homing.HomePosition)

11

Set setpoint position (absolute)

The setpoint position of the technology object is set to the value of the "Position" parameter. The following error remains.

12

Shift the setpoint position (relative)

The setpoint position of the technology object is shifted by the value of the "Position" parameter. The following error remains.

Display of the position at which the technology object was homed

(valid when "Done" = TRUE)

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

203

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

Parameter Error
ErrorID

Declara- Data type tion OUTPUT BOOL
OUTPUT WORD

Default value FALSE
16#0000

Description

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Resetting the "Homed" status
The "Homed" status of a technology object is reset under the following conditions (<TO>.StatusWord.X5 (HomingDone)):  Technology objects with incremental actual values:
­ Starting an "MC_Home" job with "Mode" = 3, 5, 8, 10 (After successful completion of the homing operation, the "Homed" status is reset.)
­ Error in the encoder system, or encoder failure ­ Restart of the technology object ­ After POWER OFF  POWER ON of the CPU ­ Memory reset ­ Modification of the encoder configuration  Technology objects with absolute actual values: ­ Error in sensor system/encoder failure ­ Replacement of the CPU ­ Modification of the encoder configuration ­ Restoration of the CPU factory settings ­ Transfer of a different project into the controller

Homing a technology object with "Mode" = 1 ... 8, 10
To home a technology object, follow these steps:
1. Check the requirements indicated above.
2. Specify the desired homing function in the "Mode" parameter.
3. Initialize the necessary parameters with values, and start the homing operation with a positive edge at the "Execute" parameter.
When the "Done" parameter shows the value "TRUE", the "MC_Home" job has been completed according to the selected "Mode". The "Homed" status of the technology object is indicated under "Technology object > Diagnostics > Status and error bits > Motion status > Homed" (<TO>.StatusWord.X5 (HomingDone)).

204

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.3 MC_Home V5 (S7-1500, S7-1500T)

Abort of a passive homing process with "Mode" = 9
With "Mode" = 9, the technology object is not homed. When an active "MC_Home" job for passive homing ("Mode" = 2, 8, 10) is overridden by another "MC_Home" job with "Mode" = 9, the running job is aborted with parameter "CommandAborted" = TRUE. The overriding job with "Mode" = 9 signals successful execution with parameter "Done" = TRUE.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Homing (Page 66)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

205

Instructions (S7-1500, S7-1500T) 7.4 MC_Halt V5 (S7-1500, S7-1500T)

7.4

MC_Halt V5 (S7-1500, S7-1500T)

7.4.1

MC_Halt: Pause axis V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_Halt", you brake an axis until it comes to a standstill.
You define the dynamic behavior of the braking operation with parameters "Jerk" and "Deceleration".

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_Halt" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

206

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.4 MC_Halt V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_Halt":

Parameters Axis Execute Deceleration
Jerk
AbortAcceleration
Done Busy CommandAborted Error ErrorID

Declaration INPUT
INPUT INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL LREAL

Default value -
FALSE -1.0

INPUT LREAL

-1.0

INPUT BOOL

FALSE

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE FALSE FALSE FALSE
16#0000

Description Technology object

TRUE Start job with a positive edge

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0

Constant-acceleration velocity profile; the specified jerk is used

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

FALSE

The current acceleration at the start of the job is reduced using the configured jerk. Afterwards, the deceleration builds up

TRUE

The acceleration is set to 0.0 at the start of the job, and the deceleration immediately builds up.

TRUE Velocity zero has been reached.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

207

Instructions (S7-1500, S7-1500T) 7.4 MC_Halt V5 (S7-1500, S7-1500T)

Braking an axis with "MC_Halt"
Proceed as follows to decelerate an axis to a standstill:
1. Check the requirements indicated above.
2. Set the necessary values for the parameters "Deceleration", "Jerk" and "AbortAcceleration".
3. Start the "MC_Halt" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "Done" and "Error". The standstill of the axis is indicated under "Technology object > Diagnostics > Status and error bits > Motion status > Standstill" (<TO>.StatusWord.X7 (Standstill)).

Braking an axis with active force/torque limit
To brake an axis with active force/torque limiting, use the Motion Control instruction "MC_Stop" with "Emergency stop" mode ("Mode" = 0).

Additional information
Information on the evaluation of the individual bits can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

208

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.4 MC_Halt V5 (S7-1500, S7-1500T)

7.4.2

MC_Halt: Function chart V5 (S7-1500, S7-1500T)

Function chart: Pausing an axis and the overriding job characteristics

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

209

Instructions (S7-1500, S7-1500T) 7.4 MC_Halt V5 (S7-1500, S7-1500T)

Section Section

An axis is moved with an "MC_MoveVelocity" job (A1). At time , the "MC_MoveVelocity" job is overridden by
an "MC_Halt" job (A2). The job abort is signaled via "Abort_1". With "AbortAcc_2" = FALSE, the current acceleration is reduced with the specified jerk. Afterward, the deceleration builds up and the axis is braked to a standstill. The completion of the "MC_Halt" job is reported via "Done_2".
The axis is moved with an "MC_MoveVelocity" job (A1). At time , the "MC_MoveVelocity" job is overridden
by an "MC_Halt" job (A2). The job abort is signaled via "Abort_1". With "AbortAcc_2" = TRUE, the current acceleration is set to zero immediately and the deceleration builds up. The axis is braked to a standstill. The completion of the "MC_Halt" job is reported via "Done_2".

210

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.5 MC_MoveAbsolute V5 (S7-1500, S7-1500T)

7.5

MC_MoveAbsolute V5 (S7-1500, S7-1500T)

7.5.1

MC_MoveAbsolute: Position axis absolutely V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MoveAbsolute", you can move an axis to an absolute position.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk", "Acceleration" and "Deceleration".

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.  The technology object is homed.

Override response
The override response for "MC_MoveAbsolute" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

211

Instructions (S7-1500, S7-1500T) 7.5 MC_MoveAbsolute V5 (S7-1500, S7-1500T)

Parameters
Parameters Axis Execute Position Velocity
Acceleration
Deceleration
Jerk

The following table shows the parameters of Motion Control instruction "MC_MoveAbsolute":

Declaration INPUT
INPUT INPUT INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis BOOL LREAL LREAL

Default value -
FALSE 0.0 -1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

Description

Technology object

TRUE Start job with a positive edge

Absolute target position

Velocity setpoint for the positioning

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

212

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.5 MC_MoveAbsolute V5 (S7-1500, S7-1500T)

Parameters Direction

Declaration
INPUT

Data type INT

Done

OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value 1
FALSE
FALSE FALSE FALSE
16#0000

Description

Motion direction of the axis

This parameter is only evaluated when the modulo function is enabled.

"Technology object > Configuration > Basic parameters > Enable modulo"

1

Positive direction

2

Negative direction

3

Shortest distance

TRUE The target position has been reached.

The minimum dwell time has expired (<TO>.PositioningMonitoring. MinDwellTime).

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Moving an axis to an absolute position
Proceed as follows to move an axis to an absolute position: 1. Check the requirements indicated above. 2. Specify the desired target position in the "Position" parameter. 3. Start the "MC_MoveAbsolute" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "Done" and "Error".

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

213

Instructions (S7-1500, S7-1500T) 7.5 MC_MoveAbsolute V5 (S7-1500, S7-1500T)

7.5.2

MC_MoveAbsolute: Function chart V5 (S7-1500, S7-1500T)

Function chart: Absolute positioning of an axis, and the response to an overriding job

214

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.5 MC_MoveAbsolute V5 (S7-1500, S7-1500T)

Section Section

An axis is moved to absolute position 1000.0 with an "MC_MoveAbsolute" job (A1). When the axis reaches the
target position, this is signaled at time  via "Done_1". At this time , another "MC_MoveAbsolute" job (A2)
with target position 1500.0 is started. When the axis reaches the target position 1500.0, this is signaled via "Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
An active "MC_MoveAbsolute" job (A1) is overridden at time  by another "MC_MoveAbsolute" job (A2). The
abort is signaled via "Abort_1". The axis is braked to the changed velocity and moved to the new target position 1500.0. When the new target position is reached, this is signaled via "Done_2".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

215

Instructions (S7-1500, S7-1500T) 7.6 MC_MoveRelative V5 (S7-1500, S7-1500T)

7.6

MC_MoveRelative V5 (S7-1500, S7-1500T)

7.6.1

MC_MoveRelative: Position axis relatively V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MoveRelative", you move an axis relative to its position when execution of the job began.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk", "Acceleration" and "Deceleration".

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_MoveRelative" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

Parameters
Parameter Axis Execute Distance

The following table shows the parameters of Motion Control instruction "MC_MoveRelative":

Declaration INPUT
INPUT INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis BOOL LREAL

Default value -
FALSE 0.0

Description
Technology object
TRUE Start job with a positive edge Distance for the positioning process (negative or positive)

216

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Parameter Velocity

Declaration
INPUT

Data type LREAL

Acceleration

INPUT LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

Done

OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Instructions (S7-1500, S7-1500T) 7.6 MC_MoveRelative V5 (S7-1500, S7-1500T)

Default value -1.0
-1.0
-1.0
-1.0
FALSE FALSE FALSE FALSE 16#0000

Description

Velocity setpoint for the positioning

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE The target position has been reached.

The minimum dwell time has expired (<TO>.PositioningMonitoring.MinDwellT ime).

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

217

Instructions (S7-1500, S7-1500T) 7.6 MC_MoveRelative V5 (S7-1500, S7-1500T)

Moving an axis relative to the starting position
Proceed as follows to move an axis relative to the starting position: 1. Check the requirements indicated above. 2. Specify distance to be moved in the "Distance" parameter. 3. Start the "MC_MoveRelative" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "Done" and "Error".

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

218

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.6 MC_MoveRelative V5 (S7-1500, S7-1500T)

7.6.2

MC_MoveRelative: Function chart V5 (S7-1500, S7-1500T)

Function chart: Relative positioning of an axis, and the overriding job characteristics

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

219

Instructions (S7-1500, S7-1500T) 7.6 MC_MoveRelative V5 (S7-1500, S7-1500T)

Section Section

The axis is moved by an "MC_MoveRelative" job (A1) by the distance ("Distance") 1000.0 (the starting position
here is 0.0). When the axis reaches the target position, this is signaled at time  via "Done_1". At this time , another "MC_MoveRelative" job (A2) with distance 500.0 is started. When the new target position is
reached, this is signaled via "Done_2". Since "Exe_2" was previously reset, "Done_2" is applied only to one cycle.
An active "MC_MoveRelative" job (A1) is overridden by another "MC_MoveRelative" job (A2). The abort is
signaled at time  via "Abort_1". The axis is then moved at the new velocity by the distance ("Distance")
500.0. When the new target position is reached, this is signaled via "Done_2".

220

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)

7.7

MC_MoveVelocity V5 (S7-1500, S7-1500T)

7.7.1

MC_MoveVelocity: Move axis with velocity/speed setpoint V5 (S7-1500, S71500T)

Description

With the Motion Control instruction "MC_MoveVelocity", you move an axis at constant velocity/speed.
You define the dynamic behavior of the motion with parameters "Velocity", "Jerk", "Acceleration" and "Deceleration".
 Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.
 Speed axis:
A speed is specified in the "Velocity" parameter.

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_MoveVelocity" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

221

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)

Parameters
Parameters Axis Execute Velocity Acceleration
Deceleration
Jerk
Direction

The following table shows the parameters of Motion Control instruction "MC_MoveVelocity":

Declaration INPUT
INPUT INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL LREAL

Default value -
FALSE 100.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

INPUT INT

0

Description Technology object

TRUE Start job with a positive edge

Velocity setpoint/speed setpoint for the motion

("Velocity" = 0.0 is permitted)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

Direction of rotation of the axis

0

The sign of the velocity specified at the

"Velocity" parameter defines the direc-

tion of rotation.

1

Positive direction of rotation

The value of "Velocity" is used.

2

Negative direction of rotation

The value of "Velocity" is used.

222

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)

Parameters Current

Declaration
INPUT

Data type BOOL

PositionControlled

INPUT BOOL

InVelocity

OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE
TRUE
FALSE FALSE FALSE FALSE 16#0000

Description

Maintain current velocity

FALSE Disabled

The values of parameters "Velocity" and "Direction" are taken into account.

TRUE Enabled

The values at the parameters "Velocity" and "Direction" are not taken into account. The current velocity and direction at function start are retained.

When the axis resumes motion at the velocity that was current at function start, the "InVelocity" parameter returns the value "TRUE".

FALSE Non position-controlled operation

TRUE Position-controlled mode

The parameter applies as long as the "MC_MoveVelocity" job is being executed. After this, the setting of the following job applies.

This parameter is ignored when a speed axis is used.

TRUE

The velocity setpoint/speed setpoint has been reached. A velocity setpoint/speed setpoint is output.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Behavior with setpoint velocity/speed zero ("Velocity" = 0.0)
An "MC_MoveVelocity" job with "Velocity" = 0.0 stops the axis with the configured deceleration. When the velocity setpoint/speed setpoint zero is reached, the parameter "InVelocity" will indicate the value "TRUE".
Under "Technology object > Diagnostics > Status and error bits > Motion status", "constant velocity" and "standstill" will be displayed (<TO>.StatusWord.X12 (ConstantVelocity); <TO>.StatusWord.X7 (Standstill)).
The parameters "InVelocity" and "Busy" show the value "TRUE", until the "MC_MoveVelocity" job is overridden by another Motion Control job.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

223

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)
Moving an axis with constant velocity/speed
Proceed as follows to move an axis with constant velocity/speed: 1. Check the requirements indicated above. 2. At the "Velocity" parameter, specify the velocity/speed, with which the axis should be
moved. 3. Start the "MC_MoveVelocity" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "InVelocity" and "Error". If the "InVelocity" parameter shows the value "TRUE", the velocity/speed setpoint has been reached. The axis continues moving at this constant velocity. The parameters "InVelocity" and "Busy" show the value "TRUE", until the "MC_MoveVelocity" job is overridden by another Motion Control job.
Note Response to a change in the override If the velocity/speed is influenced during constant motion by a change in the override (<TO>.Override.Velocity), the "InVelocity" parameter is reset during the acceleration or deceleration. When the newly calculated velocity/speed is reached ("Velocity" × "Override" %), then "InVelocity" is set again.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

224

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)

7.7.2

MC_MoveVelocity: Function chart V5 (S7-1500, S7-1500T)

Function chart: Moving an axis with velocity specification, and the response to an overriding job

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

225

Instructions (S7-1500, S7-1500T) 7.7 MC_MoveVelocity V5 (S7-1500, S7-1500T)
An "MC_MoveVelocity" job (A1) initiated via "Exe_1" accelerates the axis and signals at time
 via "InVel_1" that the velocity setpoint 50.0 has been reached.
At time , the job is overridden by another "MC_MoveVelocity" job (A2). The abort is
signaled via "Abort_1". When the new velocity setpoint 15.0 is reached, this is signaled via "InVel_2". The axis then continues moving at the constant velocity 15.0.
The running "MC_MoveVelocity" job (A2) is overridden by another "MC_MoveVelocity" job (A1). The abort is signaled via "Abort_2". The axis is accelerated to the new velocity setpoint 50.0. Before the velocity setpoint is reached, the current "MC_MoveVelocity" job (A1) is
overridden at time  by another "MC_MoveVelocity" job (A2). The abort is signaled via
"Abort_1". When the new velocity setpoint 15.0 is reached, this is signaled via "InVel_2". The axis then continues moving at the constant velocity 15.0.

226

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)

7.8

MC_MoveJog V5 (S7-1500, S7-1500T)

7.8.1

MC_MoveJog: Move axis in jog mode V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MoveJog", you move an axis in jog mode. You define the dynamic behavior of the motion with parameters "Velocity", "Jerk", "Acceleration" and "Deceleration".  Positioning axis/synchronous axis:
A velocity is specified in the "Velocity" parameter.  Speed axis:
A speed is specified in the "Velocity" parameter.

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_MoveJog" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

227

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)

Parameters
Parameter Axis JogForward JogBackward Velocity Acceleration
Deceleration
Jerk

The following table shows the parameters of Motion Control instruction "MC_MoveJog":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT BOOL

FALSE

INPUT LREAL

100.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

Description Technology object

TRUE

As long as the parameter is "TRUE", the axis moves in the positive direction at the velocity specified in parameter "Velocity".

TRUE

As long as the parameter is "TRUE", the axis moves in the negative direction at the velocity specified in parameter "Velocity".

Velocity setpoint/speed setpoint for the motion

 0.0 The specified value is used.

< 0.0

The absolute value of the specified value is used.

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

228

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)

Parameter PositionControlled

Declaration
INPUT

Data type BOOL

InVelocity

OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value TRUE
FALSE FALSE FALSE FALSE
16#0000

Description

FALSE Non position-controlled operation

TRUE Position-controlled mode

The parameter applies as long as the "MC_MoveJog" job is being executed. After this, the setting of the following job applies.

This parameter is ignored when a speed axis is used.

TRUE

The velocity setpoint/speed setpoint has been reached. A velocity setpoint/speed setpoint is output.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Behavior with setpoint velocity/speed zero ("Velocity" = 0.0)
An "MC_MoveJog" job with "Velocity" = 0.0 stops the axis with the configured deceleration. When the velocity setpoint/speed setpoint zero is reached, the parameter "InVelocity" will indicate the value "TRUE".
Under "Technology object > Diagnostics > Status and error bits > Motion status", "constant velocity" and "standstill" will be displayed (<TO>.StatusWord.X12 (ConstantVelocity); <TO>.StatusWord.X7 (Standstill)).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

229

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)
Moving an axis in jog mode
Proceed as follows to move an axis in jog mode: 1. Check the requirements indicated above. 2. Move the axis in the positive direction with "JogForward", or in the negative direction with
"JogBackward". The current motion state is indicated in parameters "Busy", "InVelocity" and "Error". If both "JogForward" and "JogBackward" are set to TRUE, the axis is braked at the last valid deceleration. The error 16#8007 (incorrect direction specification) is output.
Note Response to a change in the override If the velocity/speed is influenced during constant motion by a change in the override (<TO>.Override.Velocity), the "InVelocity" parameter is reset during the acceleration or deceleration. When the newly calculated velocity is reached ("Velocity" × "Override" %), then "InVelocity" is set again.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

230

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)

7.8.2

MC_MoveJog: Function chart V5 (S7-1500, S7-1500T)

Function chart: Moving an axis in jog mode

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

231

Instructions (S7-1500, S7-1500T) 7.8 MC_MoveJog V5 (S7-1500, S7-1500T)
The axis is moved in the negative direction in jog mode via "Jog_B". When the velocity setpoint -50.0 is reached, this is signaled via "InVel" = TRUE. After "Jog_B" is reset, the axis is braked and brought to a standstill. Then the axis is moved in the positive direction via "Jog_F". When the velocity setpoint 50.0 is reached, this is signaled via "InVel" = TRUE.
At the time , if "Jog_F" is set, the velocity setpoint is changed to 100.0 by means of
"Vel_Input". Alternatively, you can also change the velocity setpoint using the velocity override. "InVel" is reset. Axis is being accelerated. When the new velocity setpoint 100.0 is reached, this is signaled via "InVel" = TRUE.
If "Jog_F" is set, "Jog_B" is likewise set at time . If both "Jog_F" and "Jog_B" are set, then
the axis is braked with the last applicable deceleration. An error is indicated via "Error", and the "ErrorID" of the error 16#8007 (incorrect direction specification) is output.
This error is resolved by resetting the two inputs "Jog_F" and "Jog_B".
During the braking ramp, "Jog_F" is set at time . The axis is accelerated to the last
configured velocity. When the velocity setpoint 100.0 is reached, this is signaled via "InVel" = TRUE.

232

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.9 MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

7.9

MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

7.9.1

MC_MoveSuperimposed: Position axes overlapping V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MoveSuperimposed", you start a relative positioning motion that is superimposed on a active basic motion.
You define the dynamic behavior of the motion with parameters "VelocityDiff", "Jerk", "Acceleration" and "Deceleration". The dynamic values are added to the values of the basic motion. The duration of the basic motion is not extended by a superimposed motion.
The dynamics of the total axis motion is the sum of the dynamic values of the basic motion and the superimposed motion.
The behavior of the total motion depends on the type of basic motion:
 The basic motion is a single-axis motion:
­ The maximum dynamics of the superimposed motion is the difference between the current dynamic values of the basic motion and the dynamic limits.
­ The entire motion is limited to the configured dynamic limits.
 The basic motion is a synchronous motion:
­ The maximum dynamics of the superimposed motion is the difference between the current dynamic values of the basic motion and the dynamic limits.
­ The synchronous motion of the following axis is not limited to the dynamic limits of the following axis.
­ An "MC_MoveSuperimposed" job on a leading axis in synchronous operation affects the leading axis and the following axis.
­ An "MC_MoveSuperimposed" job on a following axis in synchronous operation only affects the following axis.
It is always the dynamics of the total motion that is displayed in the technology data block and in the TIA Portal.

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

233

Instructions (S7-1500, S7-1500T) 7.9 MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

Override response
The override response for "MC_MoveSuperimposed" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".

Parameters
Parameters Axis Execute Distance VelocityDiff
Acceleration
Deceleration

The following table shows the parameters of Motion Control instruction "MC_MoveSuperimposed":

Declaration INPUT
INPUT INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis BOOL LREAL

Default value -
FALSE 0.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

Description Axis technology object

TRUE Start job with a positive edge

Additional distance for the overlapping positioning process (negative or positive)

Maximum velocity deviation compared to the active motion

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

234

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.9 MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

Parameters Jerk

Declaration
INPUT

Data type LREAL

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value -1.0
FALSE FALSE FALSE FALSE
0

Description

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE Superimposed positioning complete

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Starting superimposed positioning motion
To start a superimposed positioning motion with Motion Control instruction "MC_MoveSuperimposed", follow these steps: 1. Check the requirements indicated above. 2. Specify the additional distance to be moved in the "Distance" parameter. 3. Start the "MC_MoveSuperimposed" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "Done" and "Error".

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

235

Instructions (S7-1500, S7-1500T) 7.9 MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

7.9.2

MC_MoveSuperimposed: Function chart V5 (S7-1500, S7-1500T)

Function chart: Positioning axes overlapping

236

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.9 MC_MoveSuperimposed V5 (S7-1500, S7-1500T)

Section Section

Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At time , using "Exe_2", an
"MC_MoveSuperimposed" job with a distance of 50.0 is initiated. The axis is moved with the added dynamic values of both jobs by the distance 50 + 50 = 100.0. When the axis reaches the target position, this is signaled via "Done_2".
Using "Exe_1", an "MC_MoveRelative" job with a distance of 50.0 is initiated. At time , using "Exe_2", a
MC_MoveSuperimposed job with a distance of -50.0 is initiated. The axis reverses and is moved with the added dynamic values of both jobs by the distance 50.0 - 50.0 = 0.0. When the axis reaches the target position, this is signaled via "Done_2".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

237

Instructions (S7-1500, S7-1500T) 7.10 MC_SetSensor V5 (S7-1500T)

7.10

MC_SetSensor V5 (S7-1500T)

7.10.1

MC_SetSensor: Switch alternative encoder to operative encoder V5 (S7-1500T)

Description

With the Motion Control instruction "MC_SetSensor", you switch over the encoder for closed loop position control of the axis.
The actual value of the addressed encoder can be adapted without switchover using parameter "Mode" 2 and 3.

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object and the alternative encoder have been configured correctly.  No restart command and no "MC_Home" job running.

Override response
 An "MC_SetSensor" job is not aborted by any other Motion Control job.  A new "MC_SetSensor" job does not abort any active Motion Control jobs.

238

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.10 MC_SetSensor V5 (S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetSensor":

Parameters Axis Execute Sensor Mode
ReferenceSensor Done Busy CommandAborted Error ErrorID

Declaration INPUT
INPUT INPUT INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis BOOL INT DINT

Default value -
FALSE 1 0

INPUT INT OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

1 FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Number of the new encoder (1 to 4).

The mode determines the position alignment between the old encoder and new encoder.

0

Switch over encoder and transfer actual

position to the new encoder

With this encoder switchover, step changes in the positioning control are prevented. Bumpless switchover of the encoders is possible.

1

Switch over encoder without aligning

the actual position

Note

When closed loop position control is active, an additional difference of the two encoders acts as additional control deviation and can trigger a compensating motion.

2

Transfer actual value

The actual position is transferred to the encoder specified in the "Sensor" parameter.

3

Transfer actual value

The actual position of the "Reference encoder" ("ReferenceSensor" parameter) is transferred to the encoder specified in the "Sensor" parameter.

Number of the reference encoder (see parameter "Mode" = 3)

TRUE Encoder for closed loop position control of the axis was switched over.

TRUE The job is being processed.

TRUE The job has been aborted.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

239

Instructions (S7-1500, S7-1500T) 7.10 MC_SetSensor V5 (S7-1500T)

Changing to absolute encoder
When you switch the encoder to an absolute encoder and transfer the actual value ("Mode" = 2, 3), the actual value is calculated with the value of the absolute encoder and the absolute value offset. When switching to a different encoder, calculation of the actual value is canceled. The absolute encoder once again returns the absolute value + absolute value offset (<TO>.StatusSensor[1..4].AbsEncoderOffset) without calculation by the "MC_SetSensor" job.

See also

Using multiple encoders (Page 36)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

240

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.11

MC_Stop V5 (S7-1500, S7-1500T)

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)

7.11.1

MC_Stop: Stop axis and prevent new motion jobs V5 (S7-1500, S7-1500T)

Description

With the "MC_Stop" Motion Control instruction, you stop all movements of an axis and prevent new motion jobs for the technology object. The axis brakes to a standstill and remains switched on.
The standstill position is derived from the stop ramp. Three modes, which you define with the "Mode" parameter, are available for this purpose:
 "Mode" = 0: The dynamic response of the braking operation is determined by the configured emergency stop ramp.
 "Mode" = 2: The dynamic response of the braking operation is determined by the maximum dynamic values of the technology object.
 "Mode" = 3: The dynamic response of the braking operation is determined with parameters "Jerk" and "Decelaration" of the "MC_Stop" job.

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
 An "MC_Stop" job is not triggered by other movements.
 An "MC_Stop" job is aborted by an "MC_Power" job with "Enable" = FALSE.
 An "MC_Stop" job does not abort any synchronous operation function in simulation.
 An "MC_Stop" job is aborted by another "MC_Stop" job with a stop response that is the same or higher.
Significance of stop responses (descending): "Mode" = 0 > "Mode" = 2 > "Mode" = 3
You can find more information on the override response of an "MC_Stop" job in the section "Override response of Motion Control jobs V5 (Page 271)".

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

241

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)

Parameters
Parameter Axis Execute Mode
Deceleration

The following table shows the parameters of Motion Control instruction "MC_Stop":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT DINT

0

INPUT LREAL

-1.0

Description Technology object

TRUE The motion is stopped and new motion jobs are prevented.

FALSE Motion jobs can be executed again.

Mode for dynamic behavior

0

Emergency stop

The technology object is braked to a standstill without jerk limit, using the emergency stop deceleration configured in "Technology object > Configuration > Extended parameters > Emergency stop".

(<TO>.DynamicDefaults.EmergencyDe celeration)

1

Not permitted

2

Stop with maximum dynamic values

The technology object is braked to a standstill using the maximum deceleration configured in "Technology object > Configuration > Extended parameters > Dynamics limits". The configured maximum jerk is hereby taken into account.

(<TO>.DynamicLimits.MaxDeceleration, <TO>.DynamicLimits.MaxJerk)

3

Stop with specified dynamic response

The technology object is stopped with the specified values at the parameters "Deceleration" and "Jerk".

When "Mode" = 3:

Deceleration for the braking ramp

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

242

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)

Parameter Jerk

Declaration
INPUT

Data type LREAL

AbortAcceleration

INPUT BOOL

Done Busy CommandAborted

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

Error

OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value -1.0
FALSE
FALSE FALSE FALSE FALSE 16#0000

Description

When "Mode" = 3:

Jerk for the braking ramp

> 0.0 The specified value is used.

= 0.0 No jerk limitation

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE

Acceleration is set to 0.0. The configured deceleration is built up immediately.

FALSE The acceleration is reduced using the configured jerk. The configured deceleration then builds up.

TRUE Standstill is reached.

TRUE The job is being processed.

TRUE

The job was aborted during execution either by "MC_Power" with "Enable" = FALSE or another "MC_Stop" job.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Braking an axis with "MC_Stop"
Proceed as follows to decelerate an axis to a standstill:
1. Check the requirements indicated above.
2. Set the necessary values for the parameters "Mode", "Deceleration", "Jerk" and "AbortAcceleration".
3. Start the "MC_Stop" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "Done" and "Error". The standstill of the axis is indicated under "Technology object > Diagnostics > Status and error bits > Motion status > Standstill" (<TO>.StatusWord.X7 (Standstill)).
As long as "Execute" = TRUE, the technology object cannot execute motion jobs.

Braking an axis with active force/torque limiting
Use the "Emergency stop" mode ("Mode" = 0) to brake an axis with active force/torque limitation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

243

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)

Additional information
Information on the evaluation of the individual bits can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

See also

Override response V5: Homing and motion jobs (Page 271)
Emergency stop deceleration (Page 56)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

244

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)

7.11.2

MC_Stop: Function chart V5 (S7-1500, S7-1500T)

Function chart: Braking an axis and the overriding job characteristics

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

245

Instructions (S7-1500, S7-1500T) 7.11 MC_Stop V5 (S7-1500, S7-1500T)
An axis is moved with an "MC_MoveVelocity" job (A1). At time , the "MC_MoveVelocity"
job is overridden by an "MC_Stop" job (A2). The job abort is signaled via "Abort_1". Afterwards, the configured deceleration builds up and the axis is braked to a standstill. While the axis is braking, "Busy_2" = TRUE. The completion of the "MC_Stop" job is reported via "Done_2".
At time , with an active "MC_Stop" job (A1), an "MC_MoveVelocity" job (A2) is executed.
Because the axis is disabled by an "MC_Stop" job, the "MC_MoveVelocity" job is rejected. The error is signaled by "Error_1". "Exe_2" is subsequently reset to FALSE.
At time , the axis is moved by an "MC_MoveVelocity" job (A1) with positive edge.

246

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.12

Instructions (S7-1500, S7-1500T) 7.12 MC_SetAxisSTW V5 (S7-1500, S7-1500T)
MC_SetAxisSTW V5 (S7-1500, S7-1500T)

7.12.1

MC_SetAxisSTW: Control bits of control word 1 and 2 V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_SetAxisSTW", you control selected bits in control word 1 (STW1) and control word 2 (STW2) of the PROFIdrive telegram. This provides the possibility of directly controlling bits not used by the technology object. The bits to be controlled are specified via the parameters "STW1" and "STW2". The controlled bits remain effective until an "MC_SetAxisSTW" job is reset, the technology object is restarted or the CPU transitions from "RUN" to "STOP".
The following bits can be controlled in STW1:
 8
 9
 11 to 15
Bits 0 to 11 can be controlled in STW2.
For the meaning of the bits to be controlled, refer to the "SINAMICS S120/S150" list manual (https://support.industry.siemens.com/cs/ww/en/view/109763271).

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object is interconnected with a drive telegram.  The technology object is not in simulation.  The technology object has been enabled.  A permissible bit masking is set.

Override response
 A new "MC_SetAxisSTW" job does not abort any active Motion Control jobs.  An "MC_SetAxisSTW" job is only aborted by another "MC_SetAxisSTW" job.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

247

Instructions (S7-1500, S7-1500T) 7.12 MC_SetAxisSTW V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetAxisSTW":

Parameter
Axis
Execute STW1 STW1BitMask STW2 STW2BitMask Done Busy CommandAborted
Error
ErrorID

Declara- Data type tion INPUT TO_SpeedAxis
TO_PositioningAxis TO_SynchronousAxis INPUT BOOL INPUT WORD INPUT WORD INPUT WORD INPUT WORD OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

Default value -
FALSE 16#0000 16#0000 16#0000 16#0000 FALSE FALSE FALSE

OUTPUT BOOL

FALSE

OUTPUT WORD

16#0000

Description Technology object

TRUE Start job with a positive edge

Set bits for STW1

Bit masking for STW1

Set bits for STW2

Bit masking for STW2

TRUE The job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

Override response V5: Homing and motion jobs (Page 271)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

248

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.13

Instructions (S7-1500, S7-1500T) 7.13 MC_WriteParameter V5 (S7-1500, S7-1500T)
MC_WriteParameter V5 (S7-1500, S7-1500T)

7.13.1

MC_WriteParameter: Write parameter V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_WriteParameter", you can change selected parameters of the technology objects in runtime. The changes take effect directly or after a restart, depending on the corresponding parameter.
With a "RUN  STOP  RUN" transition of the CPU, the parameter value is retained. The changed parameter value is reset to the start value in the event of a POWER OFF, memory reset or a restart of the technology object.

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

249

Instructions (S7-1500, S7-1500T) 7.13 MC_WriteParameter V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_WriteParameter":

Parameter Axis Execute ParameterNumber Value
Done Busy CommandAborted Error
ErrorID

Declara- Data type tion

INPUT TO_PositioningAxis

TO_SynchronousAxis

INPUT BOOL

INPUT DINT

INPUT

Variant (BOOL, INT, DINT, UDINT, LREAL)

OUTPUT BOOL

OUTPUT BOOL

OUTPUT BOOL

Default value -
FALSE 0 -
FALSE FALSE FALSE

OUTPUT BOOL

FALSE

OUTPUT WORD

16#0000

Description Technology object

TRUE Start job with a positive edge
Index of the parameter to be changed
Variant pointer to the value to be written (source address)

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred during processing. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Modifiable parameters
The following table shows the parameters that can be changed with the Motion Control instruction "MC_WriteParameter":

Tag
PostionLimits_ HW.Active

Index 1000

Technology object
Positioning axis
Synchronous axis

Data type
BOOL

Description

Enabling/disabling hardware limit switch

The negative and the positive hardware limit switches (Page 83) are activated or deactivated with this parameter,

FALSE HW limit switch deactivated

TRUE

HW limit switch activated

Effectiveness
Direct

See also

Override response V5: Homing and motion jobs (Page 271)
Direct homing (Page 83)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Tags of the positioning axis technology object (Page 293)

250

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.14

MotionIn (S7-1500T)

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

7.14.1

MC_MotionInVelocity V5 (S7-1500T)

7.14.1.1

MC_MotionInVelocity: Specify motion setpoints V5 (S7-1500T)

Description

With the Motion Control instruction "MC_MotionInVelocity", you specify cyclically applicable calculated motion setpoints for velocity and acceleration as a basic motion for the axis. No velocity profile is calculated for this, the values are directly active at the technology object. The dynamic limits are not in effect. The motion setting using "MotionIn" can be superimposed with an "MC_MoveSuperimposed" job (Page 233).
With the "Velocity" parameter, you specify the desired velocity and with "Acceleration" the desired acceleration. The setpoint velocity and setpoint acceleration are effective when the parameter "Enable" = TRUE and at least the value for the "Velocity" parameter needs to be specified.

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_MotionInVelocity" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".
Note Dynamic deviation possible
Pay attention to consistent specifications relating to velocity and acceleration when the "MotionIn" instruction is overridden by another Motion Control instruction.
When the "MotionIn" instruction is overridden, make sure that the new acceleration specifications are coordinated with the currently effective acceleration because the last effective acceleration value will be applied.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

251

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_MotionInVelocity":

Parameter Axis
Enable
Velocity Acceleration PositionControlled Busy CommandAborted Error
ErrorID

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT LREAL INPUT LREAL INPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

0.0 0.0 TRUE FALSE FALSE FALSE
16#0000

Description Technology object

TRUE Start job with a positive edge

The specified setpoints are used as long as the parameter is set to "TRUE".

FALSE End of the job with negative edge

If the parameter is set from "TRUE" to "FALSE", the setpoints are set to 0.0.

Velocity setpoint

Observe the dynamic limits.

Setpoint acceleration

Observe the dynamic limits.

TRUE Position-controlled mode

FALSE Controlled running

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

Override response V5: Homing and motion jobs (Page 271)
Motion specification via "MotionIn" (Page 57)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

252

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

7.14.1.2

MC_MotionInVelocity: Function chart V5 (S7-1500T)

Function chart: Specify motion setpoints

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

253

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

Section Section

With "Enable_1 = TRUE" the technology object is specified cyclic in the MC-PreServo-clock velocity "Vel_1" and acceleration "Acc_1". These specifications are applied directly as setpoint velocity "TO_1.Velocity" and setpoint acceleration "TO_1.Acceleration", without hereby calculating a velocity profile.
As the position monitoring "PosContr_1" is set to FALSE, no following error "TO_1.StatusPositioning.FollowingError" is determined.
The velocity and acceleration specifications are not active as long as "Enable_1" is set to FALSE.
At time , "Enable_1" is set to TRUE. As the position monitoring "PosContr_1" is set to TRUE, a
following error "TO_1.StatusPositioning.FollowingError" is determined.
The velocity specification "Vel_1" and the acceleration default "Acc_1" cause a setpoint jump which exceeds the maximum permissible following error. With active position lag monitoring, the technology alarm 521 is output, and the technology object is disabled. With deactivated following error monitoring, the setpoint jump is executed with maximum dynamic.

254

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

7.14.2

MC_MotionInPosition V5 (S7-1500T)

7.14.2.1

MC_MotionInPosition: Specify motion setpoints V5 (S7-1500T)

Description

With the Motion Control instruction "MC_MotionInPosition", you specify the cyclic, applicable motion setpoints for position, velocity and acceleration as basic motion for the axis. No velocity profile is calculated for this, the values are directly active at the technology object. The dynamic limits are not in effect. The motion setting using "MotionIn" can be superimposed with an "MC_MoveSuperimposed" job (Page 233).
With the "Position" parameter, you specify the set position. With the "Velocity" parameter, you specify the setpoint velocity. With the "Acceleration" parameter, you specify the setpoint acceleration.
The setpoint velocity is used as a feedforward control value when velocity feedforward control is activated. The setpoint position, setpoint velocity and setpoint acceleration are effective when the parameter "Enable" = TRUE and at least the values for the "Position" and "Velocity" parameters are specified.

Applies to

 Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.

Override response
The override response for "MC_MotionInPosition" jobs is described in section "Override response V5: Homing and motion jobs (Page 271)".
Note Dynamic deviation possible
Pay attention to consistent specifications relating to velocity and acceleration when the "MotionIn" instruction is overridden by another Motion Control instruction.
When the "MotionIn" instruction is overridden, make sure that the new acceleration specifications are coordinated with the currently effective acceleration because the last effective acceleration value will be applied.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

255

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_MotionInPosition":

Parameter Axis Enable
Position Velocity Acceleration Busy CommandAborted Error
ErrorID

Declaration INPUT
INPUT

Data type
TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT INPUT

LREAL LREAL

INPUT LREAL

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

OUTPUT WORD

0.0 0.0 0.0 FALSE FALSE FALSE
16#0000

Description Technology object

TRUE Start job with a positive edge

The specified setpoints are used as long as the parameter is set to "TRUE".

FALSE End of the job with negative edge

If the parameter is set from "TRUE" to "FALSE", the setpoints are set to 0.0. The most recently specified value remains active for the position setpoint.

Position setpoint

Velocity setpoint

Observe the dynamic limits.

Setpoint acceleration

Observe the dynamic limits.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for the parameter "ErrorID"

See also

Override response V5: Homing and motion jobs (Page 271)
Motion specification via "MotionIn" (Page 57)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

256

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

7.14.2.2

MC_MotionInPosition: Function chart V5 (S7-1500T)

Function chart: Specify motion setpoints

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

257

Instructions (S7-1500, S7-1500T) 7.14 MotionIn (S7-1500T)

Section Section

With "Enable_1 = TRUE" the technology object is specified cyclic in the MC-PreServo-clock position "Pos_1", velocity "Vel_1" and acceleration "Acc_1". These specifications are applied directly as set position "TO_1.Position", setpoint velocity "TO_1.Velocity" and setpoint acceleration "TO_1.Acceleration", without hereby calculating a velocity profile.
The position, velocity and acceleration specifications are not active as long as "Enable_1" is set to FALSE.
At time , "Enable_1" is set to TRUE. The default position setting "Pos_1" causes a setpoint jump
which exceeds the maximum permissible following error. With active position lag monitoring, the technology alarm 521 is output, and the technology object is disabled. With deactivated following error monitoring, the setpoint jump is executed with maximum dynamic.

258

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.15

Torque data (S7-1500, S7-1500T)

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.1

MC_TorqueAdditive V5 (S7-1500, S7-1500T)

7.15.1.1

MC_TorqueAdditive: Specify additive torque V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_TorqueAdditive", you specify an additive torque for the drive to which the technology object is assigned. The torque data are transferred via the telegram 750.
With the "Value" parameter, you specify the additive setpoint torque. The specification of the additive torque setpoint is overriding. An additional torque may be positive or negative. If you invert the setpoint for the technology object, the value for the additive torque is also inverted and transferred inverted to the drive.

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The technology object has been enabled.  The drive is connected via PROFIdrive telegram.  Telegram 750 is configured.
Telegram 750 is available for SINAMICS drives V4.9 and higher.

Override response
 An "MC_TorqueAdditive" job is not aborted by any other Motion Control job.  A new "MC_TorqueAdditive" job does not abort any active Motion Control jobs.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

259

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

Parameters
Parameter Axis Enable
Value Busy Error
ErrorID

The following table shows the parameters of Motion Control instruction "MC_TorqueAdditive":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT LREAL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

0.0 FALSE FALSE
16#0000

Description Technology object

TRUE The specified setpoint is used as long as the parameter is set to TRUE.

FALSE The additive torque transferred to the drive is zero.

Additive setpoint torque

Permissible values: -1.0E12 to 1.0E12

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

PROFIdrive telegrams (Page 27)
Additive setpoint torque (Page 62)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

260

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.1.2

MC_TorqueAdditive: Function chart V5 (S7-1500, S7-1500T)

Function chart: Activate/deactivate additive setpoint torque

Section Section

With "Enable_1 = TRUE", an additive setpoint torque "Value_1" is specified for the drive assigned to the technology object. This setting is transferred to the drive parameter "p1511 - Supplementary torque 1" using telegram 750.
With "Enable_1 = TRUE", an additive setpoint torque "Value_1" is specified for the drive assigned to the technology object. This setting is transferred to the drive parameter "p1511 - Supplementary
torque 1" using telegram 750. The additive setpoint torque is first built up. At time , "Enable_1" is
already set to FALSE, before the additive setpoint torque is reduced again. The reduction of the torque setpoint is transmitted directly to the drive.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

261

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.2

MC_TorqueRange V5 (S7-1500, S7-1500T)

7.15.2.1

MC_TorqueRange: Set high and low torque limits V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_TorqueRange", you can specify an upper and lower torque limit to the drive assigned to the technology object. The torque data are transferred via the telegram 750.
With the "UpperLimit" parameter you specify the upper torque limit and with "LowerLimit" the lower torque limit. The specification of the torque limits has smoothing effect on the movements. If you invert the setpoints for the technology object, the values for the high and low torque limit are also inverted and transferred inverted to the drive.
If the high and low torque limits are active, the following monitors and limits are disabled by default:
 Following error monitoring
 Time limitations for positioning and standstill monitoring
Monitoring remains in effect if you have selected the option "Leave position-related monitoring enabled" under "Technology object > Configuration > Extended parameters > Limits > Torque limit".

Applies to

 Speed axis  Positioning axis  Synchronous axis

Requirement

 The technology object has been configured correctly.  The drive is connected via PROFIdrive telegram.  Telegram 750 is configured.
Telegram 750 is available for SINAMICS drives V4.9 and higher.

Override response
 An "MC_TorqueRange" job is not aborted by any other Motion Control job.
 A new "MC_TorqueRange" job does not abort any active Motion Control jobs.
 If the torque limiting is active via the "MC_TorqueLimiting" job, the "MC_TorqueRange" job is rejected with an error message and vice versa. The functions do not override one another.

262

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

Parameters
Parameter Axis Enable UpperLimit
LowerLimit
Busy Error ErrorID

The following table shows the parameters of Motion Control instruction "MC_TorqueRange":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT LREAL

1.0 E12

INPUT LREAL

-1.0 E12

OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE FALSE
16#0000

Description Technology object

TRUE The specified values are used as long as the TRUE parameter is set.

FALSE No values for the high and low torque limit are transferred to the drive.

Upper torque limit (in the configured unit)

Permitted value range:

-1.0 E12 to 1.0 E12

The value of the parameter "UpperLimit" must not be greater than the value of the parameter "LowerLimit".

Lower torque limit (in the configured unit)

Permitted value range:

-1.0 E12 to 1.0 E12

The value of the parameter "LowerLimit" must not be less than the value of the parameter "UpperLimit".

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

PROFIdrive telegrams (Page 27)
Permissible torque range (Page 63)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

263

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.2.2

MC_TorqueRange: Function chart V5 (S7-1500, S7-1500T)

Function chart: Set high and low torque limits

With "Enable_1 = TRUE" an upper torque limit "UpperLimit_1" and a lower torque limit "LowerLimit_1" are specified to the drive assigned to the technology object. These settings are transferred directly to the drive parameters "p1522 - Torque limit upper" and "p1523 Torque limit lower" using telegram 750. If "Enable_1" is reset to FALSE, the upper and lower torque limits are no longer active.

264

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.3

MC_TorqueLimiting V5 (S7-1500, S7-1500T)

7.15.3.1

MC_TorqueLimiting: Activate/deactivate force/torque limit / fixed stop detection V5 (S71500, S7-1500T)

Description

With the Motion Control instruction "MC_TorqueLimiting", you activate and assign parameters for force/torque limiting and fixed stop detection. Together with a positioncontrolled motion job, a "Travel to fixed stop" can be realized with the fixed stop detection. In the axis configuration, you can configure whether the force/torque limiting is to relate to the drive side or the load side.
The functions of the Motion Control instruction "MC_TorqueLimiting" can be activated and deactivated before and during a motion job.

Force/torque limiting applies to
 Speed axis  Positioning axis  Synchronous axis

Requirements for force/torque limiting
 The technology object and the reference torque of the drive have been configured correctly.
 No errors that prevent enabling are pending for the technology object (the technology object must not be enabled).
 The drive must support force/torque reduction. Only PROFIdrive drives with SIEMENS telegram 10x support force/torque limiting.
 Interconnection in the SINAMICS drive:
­ P1522 to a fixed value of 100 %
­ P1523 to a fixed value of -100% (e.g. through interconnection to fixed value parameter P2902[i]).
­ P2194 Threshold value for the parameter "InLimitation" must be < 100% (default 90%)

Fixed stop detection applies to
 Synchronous axis  Positioning axis

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

265

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

Requirement for fixed stop detection
 The fixed stop detection can only be applied to position-controlled axes. For fixed stop detection, the axis must be enabled as position-controlled. Motion jobs must be executed as position-controlled.
 The technology object has been configured correctly.
 When a drive and telegram that support force/torque limiting are used, the reference torque of the drive must be correctly configured for the technology object.
 No errors that prevent enabling are pending for the technology object (the technology object must be enabled).

Override response
 An "MC_TorqueLimiting" job cannot be aborted by any other Motion Control job.
 A new "MC_TorqueLimiting" job does not abort any active Motion Control jobs.
 If the high and low torque limiting is active via the "MC_TorqueRange" job, the "MC_TorqueLimiting" job is rejected with an error message and vice versa. The functions do not override one another.

Parameters
Parameter Axis Enable Limit

The following table shows the parameters of Motion Control instruction "MC_TorqueLimiting":

Declaration INPUT
INPUT

Data type
TO_SpeedAxis TO_PositioningAxis TO_SynchronousAxis BOOL

Default value -
FALSE

INPUT LREAL

-1.0

Description Technology object

TRUE Activate function corresponding to input parameter "Mode"

Value of force/torque limiting (in the configured unit of measurement)1)

If the drive and telegram do not support force/torque limiting, the specified value is irrelevant.

 0.0

The value specified at the parameter is used.

< 0.0

The value configured in the "Torque limiting" configuration window is used.

Tag Torque Limit:

<TO>.TorqueLimiting.LimitDefaults.Tor que

Tag Force Limit:

<TO>.TorqueLimiting.LimitDefaults.For ce

266

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

Parameter Mode
InClamping InLimitation

Declaration
INPUT

Data type DINT

OUTPUT BOOL OUTPUT BOOL

Busy Error
ErrorID

OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value 0
FALSE
FALSE
FALSE FALSE
16#0000

Description

0

Force/torque limiting1)

1

Fixed stop detection1)

If drive and telegram support force/torque limiting, this is applied.

TRUE "Mode" = 1:

The drive is kept at the fixed stop (clamping2)). The axis position is within the positioning tolerance.

TRUE "Mode" = 0 and 1:

The value specified at parameter "Limit" has exceeded the threshold value set in the drive.

In case of SINAMICS drives default setting P2194 = 90%.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

1) Changes to input parameters "Limit" and "Mode" are also applied at the cyclic call of the Motion Control instruction when "Enable" = TRUE.
2) If "InClamping" = TRUE, all motion and synchronization jobs are canceled.

See also

Fixed stop detection (Page 61)
Force/torque limiting (Page 59)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

267

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)

7.15.3.2

MC_TorqueLimiting: Function chart V5 (S7-1500, S7-1500T)

Function chart: Pausing an axis when the torque limit is reached

At time , an "MC_Halt" job (A2) is executed on an axis with active torque limiting
"MC_TorqueLimiting" (A1). Torque limiting is still active ("MC_TorqueLimiting.Enable" = TRUE) and any accumulated following error is retained and will be reduced with the time. When the actual velocity is "0.0" and the minimum dwell time in the standstill window has elapsed, the tag "MC_Halt.Done" shows = TRUE. When position monitoring is activated, reaching of the target position is also monitored.

268

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)
Function chart: Torque limiting with fixed stop detection (mode = 1)

Positioning tolerance
S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

269

Instructions (S7-1500, S7-1500T) 7.15 Torque data (S7-1500, S7-1500T)
At time , a "MC_TorqueLimiting" job (A1) is initiated via "En_1". An "MC_MoveVelocity" job
(A2) is executed on the axis with active torque limiting. The torque limiting is still active
"MC_TorqueLimiting.Enable" = TRUE. When the following error limit  is reached, the
"MC_MoveVelocity" job is aborted with "Abort" = TRUE. The drive is kept at the fixed stop (clamping). The actual position of the axis is within the positioning tolerance. An "MC_MoveVelocity" job is once again called via the two tags "Execute" = TRUE and "Direction_2" = TRUE and the axis moves with constant velocity in the opposite direction.
The clamping is hereby reduced when the positioning tolerance  is exited. At time , the
torque limiting is cancelled.

270

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

7.16

Instructions (S7-1500, S7-1500T) 7.16 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)
Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

7.16.1

Override response V5: Homing and motion jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects active homing and motion jobs:

 Active job  New job

MC_Home
"Mode" = 2, 8, 10

MC_Home

A

"Mode" = 3, 5

MC_Home

A

"Mode" = 9

MC_Halt

-

MC_MoveAbsolute

MC_MoveRelative

MC_MoveVelocity

MC_MoveJog

MC_MotionInVelocity

MC_MotionInPosition

MC_Move

-

Superimposed

MC_Stop

A

MC_GearIn

-

MC_GearInPos

-

MC_CamIn

waiting1)

MC_GearInPos

-

MC_CamIn

active2)

MC_LeadingValue

-

Additive

MC_Home ("Mode" =
3, 5)
A

MC_Halt
MC_MoveAbsolute
MC_MoveRelative
MC_MoveVelocity
MC_MoveJog A

MC_Stop -

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

A

A

-

-

-

-

-

A

A

-

A

A

-

-

-

A

-

A

A

B

A

A

A

A

-

A

-

-

-

-

-

-

A

A

-

A

-

-

-

-

-

-

A The running job is aborted with "CommandAborted" = TRUE. B An "MC_Stop" job is aborted by another "MC_Stop" job with a stop response that is the same or higher. - No effect. Running job continues to be executed. 1) The status "Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE corresponds to a waiting synchronous operation. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to an active synchronous operation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

271

Instructions (S7-1500, S7-1500T) 7.16 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

7.16.2

Override response V5: Synchronous operation jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects the motion of the axis on active synchronous operation jobs:

 Active job  New job
MC_Home "Mode" = 3, 5 MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_MotionInVelocity MC_MotionInPosition MC_MoveSuperimposed MC_Stop MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_PhasingAbsolute MC_PhasingRelative MC_LeadingValueAdditive

MC_GearIn MC_GearInPos MC_GearInPos

MC_CamIn

MC_CamIn

waiting1)

active2)

A

-

-

MC_PhasingAbsolute
MC_PhasingRelative
-

MC_LeadingValueAdditive
-

A

-

A

-

A

A

-

A

A

-

A

A

-

-

A

A

A

A

-

A

A

A

-

-

-

-

A

-

-

-

-

-

A

A

A

A

A

-

-

-

-

A

A

-

-

A

-

-

-

A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed. 1) A waiting synchronous operation job ("Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE) does not abort any
active jobs. Abort with an "MC_Power" job is possible. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to active synchronous operation.

272

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.16 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

7.16.3

Override response V5: Measuring input jobs (S7-1500, S7-1500T)
The following table shows which new Motion Control jobs will override active measuring input jobs:

 Active job
 New job MC_Home "Mode" = 2, 3, 5, 8, 9, 10 MC_Home "Mode" = 0, 1, 6, 7, 11, 12 MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput

MC_MeasuringInput A A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed.

MC_MeasuringInputCyclic A A

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

273

Instructions (S7-1500, S7-1500T) 7.16 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

7.16.4

Override response V5: Kinematics motion commands (S7-1500T)
Single axis jobs are not overridden by kinematics jobs.
The following table shows how a new Motion Control job affects active kinematics motion jobs:

 Active job  New job
MC_Home MC_MoveSuperimposed MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_Stop MC_GearIn MC_GearInPos MC_CamIn MC_MotionInVelocity MC_MotionInPosition MC_GroupStop MC_GroupInterrupt MC_GroupContinue

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame N
A

MC_GroupInterrupt MC_GroupStop

N

N

A

A

A

A

N

B

A

N

274

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Instructions (S7-1500, S7-1500T) 7.16 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

 Active job  New job
MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive MC_SetOcsFrame

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame -

MC_GroupInterrupt -

C, -

-

A The running job is aborted with "CommandAborted" = TRUE. B Running job is interrupted or resumed. C Synchronization of the OCS with the conveyor belt is aborted with "MC_SetOcsFrame" = TRUE. N Not permitted. Running job continues to be executed. The new job is rejected. - No effect. Running job continues to be executed. A new kinematics job is added to the job sequence.

MC_GroupStop N N

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

275

Appendix (S7-1500, S7-1500T)

A

A.1

Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed via direct assignment and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

276

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.2

Actual values and setpoints (speed axis) (S7-1500, S7-1500T)
The following tags indicate the setpoint and actual values of the technology object.

Tags

Legend (Page 276)

Tag Velocity ActualSpeed

Data type LREAL LREAL

Values -

Acceleration VelocitySetpoint

LREAL LREAL

-
-1.0E12 to 1.0E12

W RON RON
RON RON

Description Velocity setpoint/speed setpoint With analog setpoint = 0.0: Actual speed of the motor Setpoint acceleration Output velocity setpoint/speed setpoint

A.1.3

"Simulation" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Simulation.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags

Legend (Page 276)

Tag Simulation.
Mode

Data type Values TO_Struct_AxisSimulation UDINT 0, 1

W RES1)

Description

Simulation mode

0

No simulation, normal operation

1

Simulation mode

1) Technology version V2.0: RON

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

277

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.4

"VirtualAxis" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.VirtualAxis.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags
Tag VirtualAxis.
Mode

Legend (Page 276)
Data type Values TO_Struct_VirtualAxis UDINT 0, 1

W Description

RON

Virtual axis

0

No virtual axis

1

Axis is always and exclusively operated as

virtual axis

A.1.5

"Actor" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Actor.<tag name>" contains the controller-side configuration of the drive.

Tags
Tag Actor.
Type

Legend (Page 276)

Data type Values

TO_Struct_Actor

DINT

0, 1

InverseDirection

BOOL

-

DataAdaption

DINT

0, 1

Efficiency

LREAL 0.0 to 1.0

W Description

RON RES RES
RES

Drive connection

0

Analog output

1

PROFIdrive telegram

Inversion of the setpoint

FALSE No

TRUE Yes

Automatic transfer of the drive values reference speed, maximum speed and reference torque in the device

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

Efficiency of gear

278

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

Tag Interface. AddressIn AddressOut EnableDriveOutput
EnableDrive OutputAddress DriveReadyInput
DriveReadyInput Address EnableTorqueData
TorqueData AddressIn TorqueData AddressOut DriveParameter. ReferenceSpeed
MaxSpeed
ReferenceTorque

Data type Values

TO_Struct_ActorInterface

VREF

0 to 65535

VREF

0 to 65535

BOOL

-

VREF

0 to 65535

W Description

RON RON RES
RON

Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram or the analog setpoint "Enable output" for analog drives FALSE Disabled TRUE Enabled Address for the "Enable output" for analog setpoint

BOOL

-

VREF

0 to 65535

RES RON

"Ready input" for analog drives The analog drive signals its readiness to receive speed setpoints. FALSE Disabled TRUE Enabled Address for the "Enable input" for analog setpoint

BOOL

-

VREF

0 to 65535

RES RON

Torque data FALSE Disabled TRUE Enabled Input Address of the Telegram 750

VREF

0 to 65535

RON Output address of the telegram 750

TO_Struct_ActorDriveParameter LREAL 0.0 to 1.0E12 RES
LREAL 0.0 to 1.0E12 RES LREAL 0.0 to 1.0E12 RES

Reference value (100%) for the speed setpoint (N-set) of the drive
The speed setpoint is transferred in the PROFIdrive telegram as a normalized value from -200% to 200% of the "ReferenceSpeed".
For setpoint specification via an analog output, the analog output can be operated in the range from -117% to 117%, provided the drive permits this.
Maximum value for the speed setpoint of the drive (Nset)
(PROFIdrive: MaxSpeed  2 × ReferenceSpeed
Analog setpoint: MaxSpeed  1.17 × ReferenceSpeed)
Reference torque of drive (p2003)
Valid for the standard motor setting.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

279

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.6

"TorqueLimiting" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.TorqueLimiting.<tag name>" contains the configuration of the torque limiting.

Tags

Legend (Page 276)

Tag TorqueLimiting.
LimitBase
PositionBased Monitorings
LimitDefaults. Torque Force

Data type Values

TO_Struct_TorqueLimiting

DINT

0, 1

W RES

DINT

0, 1

RES

TO_Struct_ TorqueLimitingLimitDefaults
LREAL 0.0 to 1.0E12 CAL
LREAL 0.0 to 1.0E12 CAL

Description

Torque limiting

0

Motor side

1

Load side

Positioning and following error monitoring

0

Monitoring deactivated

1

Monitoring activated

Limiting torque Limiting force

A.1.7

"LoadGear" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.LoadGear.<tag name>" contains the configuration of the load gear.

Tags

Legend (Page 276)

Tag LoadGear.
Numerator
Denominator

Data type Value range

TO_Struct_LoadGear

UDINT

1 to 4294967295

UDINT

1 to 4294967295

W Description RES Load gear numerator RES Load gear denominator

280

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.8

"Units" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags
Tag Units.
VelocityUnit TimeUnit TorqueUnit
ForceUnit
UnitFactor

Legend (Page 276)

Data type Values

W

TO_Struct_Units / TO_Struct_ExternalEncoder_Units

UDINT -

RON

UDINT UDINT -

RON RON

UDINT -

RON

UDINT -

RON

Description
Unit for velocity 1082 1/s 1083 1/min 1528 1/h Unit for time 1054 s Unit for torque 1126 Nm 1128 kNm 1529 lbf in (pound-force-inch) 1530 lbf ft 1531 ozf in (ounce-force-inch) 1532 ozf ft 1533 pdl in (poundal-inch) 1534 pdl ft Unit for force 1120 N 1122 kN 1094 lbf (pound-force) 1093 ozf (ounce-force) 1535 pdl (poundals) Factor for internal conversion in the high-resolution units.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

281

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.9

"DynamicLimits" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicLimits.<tag name>" contains the configuration of the dynamic limits. During Motion Control, no dynamic values greater than the dynamic limits are permitted. If you have specified greater values in a Motion Control instruction, then motion is performed using the dynamic limits, and a warning is indicated (alarm 501 to 503 - Dynamic values were limited).

Tags

Legend (Page 276)

Tag DynamicLimits.
MaxVelocity MaxAcceleration MaxDeceleration MaxJerk

Data type Values TO_Struct_DynamicLimits LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12

W Description

RES DIR DIR DIR

Maximum permissible velocity of the axis Maximum permissible acceleration of the axis Maximum permissible deceleration of the axis Maximum permissible jerk on the axis

A.1.10

"DynamicDefaults" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicDefaults.<tag name>" contains the configuration of the dynamic defaults. These settings will be used when you specify a dynamic value less than 0.0 in a Motion Control instruction (exceptions: "MC_MoveJog.Velocity", "MC_MoveVelocity.Velocity"). Changes to the default dynamic values will be applied at the next positive edge at the "Execute" parameter of a Motion Control instruction.

Tags

Legend (Page 276)

Tag DynamicDefaults.
Velocity Acceleration Deceleration Jerk Emergency Deceleration

Data type Values

W

TO_Struct_DynamicDefaults

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 DIR

Description
Default velocity Default acceleration Default deceleration Default jerk Emergency stop deceleration

282

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.11

"Override" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Override.<tag name>" contains the configuration of override parameters. The override parameters are used to apply a correction percentage to default values. An override change takes effect immediately, and is performed with the dynamic settings in effect in the Motion Control instruction.

Tags
Tag Override.
Velocity

Legend (Page 276)

Data type Values

W Description

TO_Struct_Override

LREAL 0.0 to 200.0% DIR Velocity or speed override

Percentage correction of the velocity/speed

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

283

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.12

"StatusDrive" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusDrive.<tag name>" indicates the status of the drive.

Tags
Tag StatusDrive.
InOperation

Legend (Page 276)

Data type Values

TO_Struct_StatusDrive

BOOL

-

CommunicationOK

BOOL

-

Error AdaptionState

BOOL DINT

0 to 4

W Description

RON RON RON RON

Operational status of the drive

FALSE Drive not ready. Setpoints will not be executed.

TRUE Drive ready. Setpoints can be executed.

Cyclic BUS communication between controller and drive

FALSE Not established

TRUE Established

FALSE No drive error

TRUE Drive error

Status of automatic data transfer of drive parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

284

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.13

"StatusTorqueData" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusTorqueData.<tag name>" indicates the status of the torque.

Tags

Legend (Page 276)

Tag StatusTorqueData.
CommandAdditive TorqueActive
CommandTorque RangeActive
ActualTorque

Data type Value range W

TO_Struct_StatusTorqueData

DINT

-

RON

DINT

-

RON

LREAL

-1.0E12 to 1.0E12

RON

Description

Additive torque setpoint function

0

Disabled

1

Enabled

Torque range above high and low limit of the torque function

0

Disabled

1

Enabled

Actual torque of the axis in the technological unit of the technology object for torque

A.1.14

"StatusMotionIn" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusMotionIn.<tag name>" indicates the motion status.

Tags

Legend (Page 276)

Tag StatusMotionIn.
FunctionState

Data type Value range

TO_Struct_StatusMotionIn

DINT

0, 1

W Description

RON 0 1

No "MotionIn" function active "MotionInVelocity" function active

A.1.15

"StatusWord" tag (speed axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 0 "Enable") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

285

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

Tag
Tag StatusWord
Bit 0

Legend (Page 276)

Data type DWORD -

Values -

Bit 1 Bit 2 Bit 3

-

-

-

-

-

-

Bit 4
Bit 5 Bit 6
Bit 7 Bit 8 Bit 9
Bit 10
Bit 11 Bit 12

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-

Description

Status information of the technology object

"Enable"

Enable status

0

Technology object disabled

1

Technology object enabled

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active. The technology object is being

reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

"ControlPanelActive"

Axis control panel

0

Disabled

1

Enabled

Reserved

"Done"

0

Motion job is active or axis control panel ena-

bled

1

No motion job in process and axis control pan-

el disabled

Reserved

Reserved

"JogCommand"

0

No "MC_MoveJog" job active

1

"MC_MoveJog" job active

"VelocityCommand"

0

No "MC_MoveVelocity" job active

1

"MC_MoveVelocity" job active

Reserved

"ConstantVelocity"

0

The axis is accelerated or decelerated.

1

The setpoint velocity is reached. A constant

velocity setpoint is output.

286

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Tag Bit 13
Bit 14
Bit 15... Bit 24 Bit 25
Bit 26
Bit 27
Bit 28... Bit 31

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

"Accelerating"

0

No acceleration process active

1

Acceleration process active

-

"Decelerating"

0

No deceleration process active

1

Deceleration process active

-

Reserved

-

"AxisSimulation"

0

No simulation

1

Simulation is active

-

"TorqueLimitingCommand"

0

No "MC_TorqueLimiting" job is active

1

"MC_TorqueLimiting" job is active

-

"InLimitation"

0

The drive does not operate at the torque limit.

1

The drive operates at least at the threshold

value (default 90%) of the torque limit.

-

Reserved

A.1.16

"StatusWord2" tag (speed axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord2" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 0 "StopCommand") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags

Legend (Page 276)

Tag StatusWord2
Bit 0
Bit 1 to Bit 31

Data type DWORD BOOL

Value range -

BOOL

-

W RON RON
RON

Description

Status information of the technology object

"StopCommand"

0

No "MC_Stop" job is active.

1

An "MC_Stop" job is running. The technology

object is disabled.

Reserved

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

287

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.17

"ErrorWord" tag (speed axis) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag ErrorWord
Bit 0 Bit 1

Legend (Page 276)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4
Bit 5 Bit 6
Bit 7
Bit 8... Bit 12 Bit 13
Bit 14 Bit 15
Bit 16 ... Bit 31

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-

Description
"SystemFault" System error "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. "DriveFault" Error in drive Reserved "DynamicError" Specified dynamic values are limited to permissible values. "CommunicationFault" Communication error Missing or faulty communication. Reserved

-

"PeripheralError"

Error accessing a logical address

-

Reserved

-

"AdaptionError"

Error during data transfer

-

Reserved

288

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.18

"ErrorDetail" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 276)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0 to 5

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

1

Stop with current dynamic values

2

Stop with maximum dynamic values

3

Stop with emergency stop ramp

4

Remove enable

5

Track setpoints

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

289

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.19

"WarningWord" tag (speed axis) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 13 "PeripheralWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 276)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4
Bit 5 Bit 6
Bit 7
Bit 8... Bit 12 Bit 13
Bit 14 Bit 15
Bit 16... Bit 31

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. "DriveWarning" Error in drive Reserved "DynamicWarning" Specified dynamic values are limited to permissible values. "CommunicationWarning" Communication error Missing or faulty communication. Reserved

-

"PeripheralWarning"

Error accessing a logical address

-

Reserved

-

"AdaptionWarning"

Error in automatic data transfer

-

Reserved

290

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.20

"ControlPanel" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ControlPanel.<tag name>" contains no user-relevant data. This tag structure is internally used.

Tags

Legend (Page 276)

Tag ControlPanel.
Input. TimeOut EsLifeSign Command[1..1].
ReqCounter Type Position Velocity Acceleration Deceleration Jerk Param Output. RTLifeSign Command[1..1].
AckCounter Error ErrorID Done Aborted

Data type Values

W

TO_Struct_ControlPanel

TO_Struct_ControlPanelInput

LREAL 100 to 60000 DIR

UDINT -

DIR

ARRAY [1..1] OF TO_Struct_ControlPanelInputCmd

UDINT -

DIR

UDINT -

DIR

LREAL -

DIR

LREAL -

DIR

LREAL -

DIR

LREAL -

DIR

LREAL -

DIR

LREAL -

DIR

TO_Struct_ControlPanelOutput

UDINT -

RON

ARRAY [1..1] OF TO_Struct_ ControlPanelOutputCmd

UDINT -

RON

BOOL

-

RON

UDINT -

RON

BOOL

-

RON

BOOL

-

RON

Description
-
-
-
-

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

291

Appendix (S7-1500, S7-1500T) A.1 Tags of the speed axis technology object (S7-1500, S7-1500T)

A.1.21

"InternalToTrace[1..4]" tag (speed axis) (S7-1500, S7-1500T)
The tag structure "<TO>.InternalToTrace[1..4]..<tag name>" contains no user-relevant data. This tag structure is internally used.

Tags

Legend (Page 276)

Tag InternalToTrace[1..4].
Id Value

Data type Values

ARRAY [1..4] OF TO_Struct_Internal

DINT

-

LREAL -

W Description
DIR DIR -

292

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2

Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

(L - linear specification R - rotary specification)

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed via direct assignment and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

293

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.2

Actual values and setpoints (positioning axis) (S7-1500, S7-1500T)
The following tags indicate the setpoint and actual values of the technology object.

Tags

Legend (Page 293)

Tag Position Velocity ActualPosition ActualVelocity ActualSpeed
Acceleration ActualAcceleration OperativeSensor ModuloCycle
ActualModuloCycle
VelocitySetpoint

Data type LREAL LREAL LREAL LREAL LREAL
LREAL LREAL UDINT DINT
DINT
LREAL

Values -

W RON RON RON RON RON

1 to 4 -2147483648 to 2147483647 -2147483648 to 2147483647 -1.0E12 to 1.0E12

RON RON RON RON
RON
RON

Description Position setpoint Velocity setpoint/speed setpoint Actual position Actual velocity With analog setpoint = 0.0: Actual speed of the motor Setpoint acceleration Actual acceleration Operative encoder Number of modulo cycles of the setpoint
Number of modulo cycles of the actual value
Output velocity setpoint/speed setpoint

A.2.3

"Simulation" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Simulation.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags

Legend (Page 293)

Tag Simulation.
Mode

Data type Values TO_Struct_AxisSimulation UDINT 0, 1

1) Technology version V2.0: RON

W Description

RES1 Simulation mode

)

0

No simulation, normal operation

1

Simulation mode

294

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.4

"VirtualAxis" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.VirtualAxis.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags
Tag VirtualAxis.
Mode

Legend (Page 293)
Data type Values TO_Struct_VirrtualAxis UDINT 0, 1

W Description

RON

Virtual axis

0

No virtual axis

1

Axis is always and exclusively operated as

virtual axis

A.2.5

"Actor" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Actor.<tag name>" contains the controller-side configuration of the drive.

Tags
Tag Actor.
Type

Legend (Page 293)

Data type Values

TO_Struct_Actor

DINT

0, 1

InverseDirection

BOOL

-

DataAdaption

DINT

0, 1

Efficiency

LREAL 0.0 to 1.0

W Description

RON RES RES
RES

Drive connection

0

Analog output

1

PROFIdrive telegram

Inversion of the setpoint

FALSE No

TRUE Yes

Automatic transfer of the drive values reference speed, maximum speed and reference torque

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

Efficiency of mechanics (gear and leadscrew)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

295

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Interface. AddressIn AddressOut EnableDriveOutput
EnableDrive OutputAddress DriveReadyInput
DriveReady InputAddress EnableTorqueData
TorqueData AddressIn TorqueData AddressOut DriveParameter. ReferenceSpeed
MaxSpeed
ReferenceTorque

Data type Values

TO_Struct_ActorInterface

VREF

0 to 65535

VREF

0 to 65535

BOOL

-

VREF

0 to 65535

W Description

RON RON RES
RON

Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram or the analog setpoint "Enable output" for analog drives FALSE Disabled TRUE Enabled Address for the "Enable output" for analog setpoint

BOOL

-

VREF

0 to 65535

RES RON

"Ready input" for analog drives The analog drive signals its readiness to receive speed setpoints. FALSE Disabled TRUE Enabled Address for the "Enable input" for analog setpoint

BOOL

-

VREF

0 to 65535

RES RON

Torque data FALSE Disabled TRUE Enabled Input address of the supplemental telegram

VREF

0 to 65535

RON Output address of the supplemental telegram

TO_Struct_ActorDriveParameter LREAL 0.0 to 1.0E12 RES
LREAL 0.0 to 1.0E12 RES LREAL 0.0 to 1.0E12 RES

Reference value (100%) for the speed setpoint (N-set) of the drive
The speed setpoint is transferred in the PROFIdrive telegram as a normalized value from -200% to 200% of the "ReferenceSpeed".
For setpoint specification via an analog output, the analog output can be operated in the range from -117% to 117%, provided the drive permits this.
Maximum value for the speed setpoint of the drive (N-set)
(PROFIdrive: MaxSpeed  2 × ReferenceSpeed
Analog setpoint: MaxSpeed  1.17 × ReferenceSpeed)
Reference value (100%) for the drive torque

296

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.6

"TorqueLimiting" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.TorqueLimiting.<tag name>" contains the configuration of the torque limiting.

Tags

Legend (Page 293)

Tag TorqueLimiting.
LimitBase
PositionBased Monitorings
LimitDefaults. Torque Force

Data type Values

TO_Struct_TorqueLimiting

DINT

0, 1

W RES

DINT

0, 1

RES

TO_Struct_ TorqueLimitingLimitDefaults
LREAL 0.0 to 1.0E12 CAL
LREAL 0.0 to 1.0E12 CAL

Description

Torque limiting

0

Motor side

1

Load side

Positioning and following error monitoring

0

Monitoring deactivated

1

Monitoring activated

Limiting torque Limiting force

A.2.7

"Clamping" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Clamping.<tag name>" contains the configuration of the fixed stop detection.

Tags

Legend (Page 293)

Tag
Clamping. FollowingError Deviation PositionTolerance

Data type Values

TO_Struct_Clamping

LREAL

0.001 to 1.0E12

LREAL

0.001 to 1.0E12

W Description
DIR Value of the following error starting from which the fixed stop is detected.
DIR Position tolerance for the clamping monitoring

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

297

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.8

Sensor[1..4] tags (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Sensor[1..4].<tag name>" contains the controller-end configuration for the encoder, and the configuration for active and passive homing.

Tags

Legend (Page 293)

Tag Sensor[1..4].
Existent Type
InverseDirection System
MountingMode
DataAdaption
Interface. AddressIn AddressOut Number

Data type Values

W

ARRAY [1..4] OF TO_Struct_Sensor / TO_Struct_ExternalEncoder_ Sensor

BOOL

-

RON

DINT

0 to 2

RON

BOOL

-

DINT

0, 1

RES RES

DINT

0 to 2

RES

DINT

0, 1

RES

TO_Struct_SensorInterface

VREF

0 to 65535

VREF

0 to 65535

UDINT 1 to 2

RON RON RON

Description

Displaying created encoders

Encoder type

0

"INCREMENTAL"

Incremental

1

"ABSOLUTE"

Absolute

2

"CYCLIC_ABSOLUTE"

Cyclic absolute

Inversion of the actual value

FALSE No

TRUE Yes

Encoder system

0

"LINEAR"

Linear encoder

1

"ROTATORY"

Rotary encoder

Mounting type of encoder

0

On motor shaft

1

On load side

2

External measuring system

Automatic transfer of the drive values reference speed, maximum speed and reference torque in the device

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram Number of the encoder in the telegram

298

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Parameter. Resolution StepsPerRevolution FineResolutionXist1 FineResolutionXist2 Determinable Revolutions
DistancePer Revolution BehaviorGx_XIST1
ActiveHoming. Mode
SideInput
Direction
DigitalInputAddress HomePositionOffset SwitchLevel

Data type Values

W

TO_Struct_SensorParameter

LREAL

-1.0E12 to 1.0E12

RES

UDINT 1 to 8388608 RES

UDINT 0 ... 31

RES

UDINT 0 ... 31

RES

UDINT 0 to 8388608 RES

LREAL DINT

0.0 to 1.0E12 RES

-

RES

TO_Struct_SensorActiveHoming

DINT

0 to 2

RES

BOOL

-

CAL

DINT

0, 1

CAL

VREF LREAL
BOOL

0 to 65535
-1.0E12 to 1.0E12
-

RON CAL
RES

Description

Resolution of a linear encoder (offset between two encoder pulses)

Increments per rotary encoder revolution

Number of bits for fine resolution Gx_XIST1 (cyclic actual encoder value)

Number of bits for fine resolution Gx_XIST2 (absolute value of encoder)

Number of differentiable encoder revolutions for a multiturn absolute encoder

(For a single-turn absolute encoder = 1; for an incremental encoder = 0)

Load distance per revolution of an externally mounted encoder

Evaluation of Gx_XIST1 bits

0

Based on the bits of the encoder resolution

1

32-bit value of the encoder value

Homing mode

0

Use zero mark via PROFIdrive telegram

1

Zero mark via PROFIdrive telegram and refer-

ence output cam

2

Use homing mark via digital input

Side of the digital input for active homing

FALSE Negative side

TRUE Positive side

Homing direction/approach direction on the homing mark

0

Positive homing direction

1

Negative homing direction

Address of digital input

Home position offset

Signal level that is present at the digital input when homing mark is approached
FALSE Low level
TRUE High level

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

299

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag PassiveHoming. Mode
SideInput
Direction
DigitalInputAddress SwitchLevel

Data type Values

W

TO_Struct_SensorPassiveHoming

DINT

0 to 2

RES

BOOL

-

CAL

DINT

0 to 2

CAL

VREF BOOL

0 to 65535 -

RON RES

Description

Homing mode

0

Use zero mark via PROFIdrive telegram

1

Zero mark via PROFIdrive telegram and

reference output cam

2

Use homing mark via digital input

Side of the digital input for passive homing

FALSE Negative side

TRUE Positive side

Homing direction/approach direction on the homing mark

0

Positive homing direction

1

Negative homing direction

2

Current homing direction

Address of digital input

Signal level that is present at the digital input when homing mark is approached

FALSE Low level

TRUE High level

A.2.9

"CrossPlcSynchronousOperation" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.CrossPlcSynchronousOperation.<tag name>" contains the configuration of the cross-PLC synchronous operation.

Tags

Legend (Page 293)

Tag CrossPlc SynchronousOperation.
Interface[1..1].
EnableLeading ValueOutput
AddressOut LocalLeading ValueDelayTime

Data type Values

W

TO_Struct_ CrossPlcSynchronousOperation

ARRAY [1..1] of TO_Struct_ CrossPlcLeadingValueInterface

BOOL

-

RON

VREF LREAL

0.0 to 1.0E12

RON DIR

Description
Provide cross-PLC leading value FALSE No TRUE Yes Output address for the leading value telegram Delay time of leading value output on the local following axes

300

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.10

"Extrapolation" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Extrapolation.<tag name>" contains the configuration of the actual value extrapolation.

Tags

Legend (Page 293)

Tag Extrapolation.
LeadingAxis DependentTime
FollowingAxis DependentTime

Data type Values TO_Struct_Extrapolation LREAL -
LREAL 0.0 to 1.0E12

W Description
RON Extrapolation time component (caused by leading axis) Results from the following times: · Time of actual value acquisition for the leading axis · Interpolator cycle clock · Time of position filter of actual value extrapolation (T1 + T2)
DIR Extrapolation time component (caused by following axis) Results from the following times: · For a following axis with set velocity precontrol: ­ Communication cycle ­ Interpolator cycle clock ­ Speed control loop substitute time for the following axis ­ Output delay time of the setpoint at the following axis · For a following axis without velocity precontrol: ­ Communication cycle ­ Interpolator cycle clock ­ Position control loop equivalent time (1/Kv from "<TO>.PositionControl.Kv") ­ Output delay time of the setpoint at the following axis

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

301

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Settings. SystemDefined Extrapolation
Extrapolated VelocityMode
PositionFilter. T1 T2
VelocityFilter. T1 T2
VelocityTolerance. Range
Hysteresis. Value

Data type Values

W

TO_Struct_ExtrapolationSettings

DINT

0, 1

RES

DINT

0, 1

RES

TO_Struct_ ExtrapolationPositionFilter LREAL 0.0 to 1.0E12 DIR LREAL 0.0 to 1.0E12 DIR TO_Struct_ ExtrapolationVelocityFilter LREAL 0.0 to 1.0E12 DIR LREAL 0.0 to 1.0E12 DIR TO_Struct_ ExtrapolationVelocityTolerance LREAL 0.0 to 1.0E12 DIR TO_Struct_ExtrapolationHysteresis LREAL 0.0 to 1.0E12 DIR

Description

Leading axis dependent time

0

Not effective

1

Effective

Effective velocity value for the synchronization function

0

"FilteredVelocity"

Leading value velocity from filtered actual velocity

1

"VelocityByDifferentiation"

The leading value velocity results from the differentiation of the extrapolated leading value position

Position filter time constant T1 Position filter time constant T2

Velocity filter time constant T1 Velocity filter time constant T2

Tolerance band width for velocity Hysteresis of the extrapolated actual position value

A.2.11

"LoadGear" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.LoadGear.<tag name>" contains the configuration of the load gear.

Tags

Legend (Page 293)

Tag LoadGear.
Numerator
Denominator

Data type Value range

TO_Struct_LoadGear

UDINT

1 to 4294967295

UDINT

1 to 4294967295

W Description RES Load gear counter RES Load gear denominator

302

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.12

"Properties" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Properties.<tag name>" contains the configuration of the type of axis or motion.

Tags
Tag Properties.
MotionType

Legend (Page 293)

Data type Value range

TO_Struct_Properties

DINT

0, 1

W Description

RON

Indication of axis type or motion type

0

Linear axis or motion

1

Rotary axis or motion

A.2.13

"Units" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags
Tag Units.
LengthUnit

Legend (Page 293)

Data type Values

W

TO_Struct_Units / TO_Struct_ExternalEncoder_Units

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

303

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag VelocityUnit
TimeUnit TorqueUnit ForceUnit UnitFactor

Data type Values UDINT -
UDINT UDINT UDINT UDINT -

W RON
RON RON RON RON

Description Unit for velocity 1521 °/s 1539 °/s1) 1522 °/min 1086 rad/s 1523 rad/min 1062 mm/s 1538 mm/s1) 1061 m/s 1524 mm/min 1525 m/min 1526 mm/h 1063 m/h 1527 km/min 1064 km/h 1066 in/s 1069 in/min 1067 ft/s 1070 ft/min 1075 mi/h Unit for time 1054 s Unit for torque 1126 Nm 1128 kNm 1529 lbf in (pound-force-inch) 1530 lbf ft 1531 ozf in (ounce-force-inch) 1532 ozf ft 1533 pdl in (poundal-inch) 1534 pdl ft Unit for force 1120 N 1122 kN 1094 lbf (pound-force) 1093 ozf (ounce-force) 1535 pdl (poundals) Factor for internal conversion in the high-resolution units.

1) Position values with higher resolution or six decimal places

304

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.14

"Mechanics" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Mechanics.<tag name>" contains the configuration of the mechanics.

Tags
Tag Mechanics.
LeadScrew

Legend (Page 293)

Data type Value range TO_Struct_Mechanics LREAL 0.0 to 1.0E12

W Description RES Leadscrew pitch

A.2.15

"Modulo" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Modulo.<tag name>" contains the configuration of the modulo function.

Tags
Tag Modulo.
Enable
Length StartValue

Legend (Page 293)

Data type Values

TO_Struct_Modulo

BOOL

-

LREAL LREAL

0.001 to 1.0E12
-1.0E12 to 1.0E12

W Description

RES RES

FALSE Modulo conversion disabled TRUE Modulo conversion enabled When modulo conversion is enabled, a check is made for modulo length > 0.0 Modulo length

RES Modulo start value

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

305

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.16

"DynamicLimits" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicLimits.<tag name>" contains the configuration of the dynamic limits. During Motion Control, no dynamic values greater than the dynamic limits are permitted. If you have specified greater values in a Motion Control instruction, then motion is performed using the dynamic limits, and a warning is indicated (alarm 501 to 503 - Dynamic values are limited).

Tags

Legend (Page 293)

Tag DynamicLimits.
MaxVelocity Velocity MaxAcceleration MaxDeceleration MaxJerk

Data type Values TO_Struct_DynamicLimits LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12 LREAL 0.0 to 1.0E12

W Description

RES DIR DIR DIR DIR

Maximum permissible velocity of the axis Current maximum velocity of the axis Maximum permissible acceleration of the axis Maximum permissible deceleration of the axis Maximum permissible jerk on the axis

A.2.17

"DynamicDefaults" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicDefaults.<tag name>" contains the configuration of the dynamic defaults. These settings will be used when you specify a dynamic value less than 0.0 in a Motion Control instruction (exceptions: "MC_MoveJog.Velocity", "MC_MoveVelocity.Velocity"). Changes to the default dynamic values will be applied at the next positive edge at the "Execute" parameter of a Motion Control instruction.

Tags

Legend (Page 293)

Tag DynamicDefaults.
Velocity Acceleration Deceleration Jerk Emergency Deceleration

Data type Values

W

TO_Struct_DynamicDefaults

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 CAL

LREAL 0.0 to 1.0E12 DIR

Description
Default velocity Default acceleration Default deceleration Default jerk Emergency stop deceleration

306

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.18

"PositionLimits_SW" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionLimits_SW.<tag name>" contains the configuration of position monitoring with software limit switches. Software limit switches are used to limit the operating range of a positioning axis.

Tags

Legend (Page 293)

Tag PositionLimits_SW.
Active
MinPosition
MaxPosition

Data type Values

W

TO_Struct_PositionLimitsSW

BOOL

-

DIR

LREAL -1.0E12

DIR

to 1.0E12

LREAL -1.0E12

DIR

to 1.0E12

Description
FALSE Monitoring deactivated TRUE Monitoring enabled Position of negative software limit switches
Position of positive software limit switches ("MaxPosition" > "MinPosition")

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

307

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.19

"PositionLimits_HW" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionLimits_HW.<tag name>" contains the configuration of position monitoring with hardware limit switches. Hardware limit switches are used to limit the traversing range of a positioning axis.

Tags

Legend (Page 293)

Tag PositionLimits_HW.
Active
MinSwitchLevel
MinSwitchAddress MaxSwitchLevel
MaxSwitchAddress

Data type Values

W

TO_Struct_PositionLimitsHW

BOOL

-

RES

BOOL

-

RES

VREF BOOL

0 to 65535 -

RON RES

VREF

0 to 65535

RON

Description
FALSE Monitoring deactivated TRUE Monitoring enabled With "Active", both (negative and positive) hardware limit switches are activated or deactivated. Level selection for activation of the negative hardware limit switch FALSE Low level (Low active) TRUE High level (high-enabled) Address for the negative hardware limit switch Level selection for activation of the positive hardware limit switch FALSE Low level (Low active) TRUE High level (high-enabled) Address for the positive hardware limit switch

308

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.20

"Homing" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Homing.<tag name>" contains the configuration for homing the TO.

Tags

Legend (Page 293)

Tag Homing.
AutoReversal ApproachDirection ApproachVelocity
ReferencingVelocity
HomePosition

Data type Values

W

TO_Struct_Homing / TO_Struct_ExternalEncoder_Homi ng

BOOL

-

RES

BOOL

-

CAL

LREAL LREAL LREAL

Linear:

CAL

0.0 to 10000.0

mm/s

Rotary: 0.0 ... 360000.0 °/s

Linear:

CAL

0.0 to 1000.0

mm/s

Rotary: 0.0 ... 36000.0 °/s

-1.0E12

CAL

to 1.0E12

Description
Reversal at the hardware limit switches FALSE No TRUE Yes Direction of approach to the homing position switch FALSE Positive direction TRUE Negative direction Approach velocity Velocity during active homing at which the reference output cam and home position are approached.
Homing velocity Velocity during active homing at which the home position is approached.
Home position

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

309

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.21

"Override" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Override.<tag name>" contains the configuration of override parameters. The override parameters are used to apply a correction percentage to default values. An override change takes effect immediately, and is performed with the dynamic settings in effect in the Motion Control instruction.

Tags
Tag Override.
Velocity

Legend (Page 293)

Data type Values

W Description

TO_Struct_Override

LREAL 0.0 to 200.0% DIR Velocity or speed override

Percentage correction of the velocity/speed

A.2.22

"PositionControl" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionControl.<tag name>" contains the settings of position control.

Tags

Legend (Page 293)

Tag PositionControl.
Kv Kpc
EnableDSC

Data type Values

TO_Struct_PositionControl

LREAL

0.0 to 2147480.0

LREAL 0.0 to 150.0%

BOOL

-

W DIR DIR
RES

Description
Proportional gain of the closed loop position control ("Kv" > 0.0) Velocity precontrol of the position control Recommended setting: · Isochronous drive connection via PROFIdrive:
100.0% · Non-isochronous drive connection via PROFIdrive:
0.0 to 100.0% · Analog drive connection:
0.0 to 100.0% Dynamic Servo Control (DSC) FALSE DSC disabled TRUE DSC activated DSC is only possible with one of the following PROFIdrive telegrams: · Standard telegram 5 or 6 · SIEMENS telegram 105 or 106

310

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag SmoothingTime ByChangeDifference
InitialOperativeSensor
ControlDifference Quantization.
Mode
Value

Data type Values

W

LREAL 0.0 to 1.0E12 s DIR

UDINT 1 to 4

RES

TO_Struct_ PositionDifferenceQuantification

DINT

-

RES

LREAL

0.001 to 1.0E12

RES

Description
Smoothing time for the manipulated variable for switching operations, for example:
· Encoder switchover
· Change in P-gain ("Kv")
· Switchover to emergency stop ramp
Active sensor after initialization of the axis (sensor number 1 to 4) This encoder is used after startup of the CPU and after a restart of the technology object. At an operating mode transition from STOP  RUN of the CPU (without restart of the technology object), the encoder that was also active before the STOP is still being used.

Type of quantification

Configuration of a quantization when a drive with stepper motor interface is connected

0

No quantification

1

Quantization corresponding to encoder resolu-

tion

2

Quantization to a direct value

(configuration is performed using the parameter view (data structure))

Value of quantification

Configuration of a value for quantization to a direct value (<TO>.PositionControl.ControlDifferenceQuantization. Mode = 2)

(configuration is performed using the parameter view (data structure))

A.2.23

"DynamicAxisModel" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicAxisModel.<tag name>" contains the settings of the balancing filter.

Tags

Legend (Page 293)

Tag DynamicAxisModel.
VelocityTimeConstant AdditionalPositionTimeConstant

Data type Values

W

TO_Struct_DynamicAxisModel

LREAL LREAL

0.0 to 1.0E12 DIR 0.0 to 1.0E12 DIR

Description
Time constants for braking ramp generation with alarm response "Brake with emergency stop ramp" Speed control loop substitute time [s] Additive position control loop substitute time [s]

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

311

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.24

"FollowingError" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.FollowingError.<tag name>" contains the configuration of the dynamic following error monitoring.
If the permissible following error is exceeded, then technology alarm 521 is output, and the technology object is disabled (alarm reaction: remove enable).
When the warning level is reached, a warning is output (technology alarm 522).

Tags

Legend (Page 293)

Tag FollowingError.
EnableMonitoring MinValue
MaxValue
MinVelocity WarningLevel

Data type Values

TO_Struct_FollowingError

BOOL

-

LREAL
LREAL
LREAL LREAL

Linear: 0.0 to 1.0E12 Rotary: 0.001 to 1.0E12 Linear: 0.0 to 1.0E12 Rotary: 0.002 to 1.0E12 0.0 to 1.0E12
0.0 to 100.0

W Description

RES DIR

FALSE Following error monitoring deactivated
TRUE Following error monitoring enabled
Permissible following error at velocities below the value of "MinVelocity"

DIR Maximum permissible following error, which may be reached at the maximum velocity.

DIR "MinValue" is permissible below this velocity and is held constant.
DIR Warning level
Percentage value relative to the valid maximum following error

312

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.25

"PositioningMonitoring" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositioningMonitoring.<tag name>" contains the configuration of position monitoring at the end of a positioning motion.
If the actual position value at the end of a positioning motion is reached within the tolerance time and remains in the positioning window for the minimum dwell time, then "<TO>.StatusWord.X5 (Done)" is set in the technology data block. This completes a Motion Control job.
If the tolerance time is exceeded, then technology alarm 541 "Positioning monitoring" with supplemental value 1: "Target range not reached" is displayed.
If the minimum dwell time is not met, then technology alarm 541 "Positioning monitoring" with supplemental value 2: "Exit target range again" is displayed.

Tags

Legend (Page 293)

Tag PositioningMonitoring.
ToleranceTime
MinDwellTime

Data type Values

W

TO_Struct_PositionMonitoring

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

Description
Tolerance time Maximum permitted duration from reaching of velocity setpoint zero until entrance into the positioning window Minimum dwell time in positioning window

Window

LREAL 0.0 to 1.0E12 DIR Positioning window

A.2.26

"StandstillSignal" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StandstillSignal.<tag name>" contains the configuration of the standstill signal.
If the actual velocity value is below the velocity threshold, and does not exceed it during the minimum dwell time, then the standstill signal "<TO>.StatusWord.X7 (Standstill)" is set.

Tags

Legend (Page 293)

Tag StandstillSignal.
VelocityThreshold
MinDwellTime

Data type Values

W

TO_Struct_StandstillSignal

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

Description Configuration for the standstill signal Velocity threshold If velocity is below this threshold, the minimum dwell time begins. Minimum dwell time

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

313

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.27

"StatusPositioning" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusPositioning.<tag name>" indicates the status of a positioning motion.

Tags

Legend (Page 293)

Tag StatusPositioning.
Distance
TargetPosition
TargetPosition ModuloCycle FollowingError
SetpointExecutionTime

Data type Values

W

TO_Struct_StatusPositioning

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

DINT

-2147483648 RON to 2147483647

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

Description
Distance to the target position
Target position
Number of modulo cycles to target position with positioning motions Current following error
Setpoint execution time of the axis (Results from TIpo, Tvtc or 1/kv, TSend and TO of the axis)

314

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.28

"StatusDrive" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusDrive.<tag name>" indicates the status of the drive.

Tags
Tag StatusDrive.
Disabled InOperation

Legend (Page 293)

Data type Values

TO_Struct_StatusDrive

BOOL

-

BOOL

-

CommunicationOK

BOOL

-

Error AdaptionState

BOOL DINT

0 to 4

W Description

RON RON
RON RON RON

FALSE Drive not switched off

TRUE Drive switched off

Operational status of the drive

FALSE Drive not ready

Setpoints will not be executed.

TRUE Drive ready

Setpoints can be executed.

Cyclic BUS communication between controller and drive

FALSE Not established

TRUE Established

FALSE No drive error

TRUE Drive error

Status of automatic data transfer of drive parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

315

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.29

"StatusServo" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusServo.<tag name>" indicates the status for the balancing filter.

Tags

Legend (Page 293)

Tag StatusServo.
BalancedPosition ControlDifference

Data type Values TO_Struct_StatusServo LREAL LREAL -

W Description
RON Position after the balancing filter RON Control error

A.2.30

"StatusProvidedLeadingValue" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusProvidedLeadingValue.<tag name>" contains the provided leading value with leading value delay of the cross-PLC synchronous operation.

Tags

Legend (Page 293)

Tag StatusProvidedLeadingValue.
DelayedLeadingValue Position
Velocity
Acceleration

Data type Values

W

TO_Struct_StatusProvidedLeading Value

TO_Struct_ProvidedLeadingValue

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

Description Provided leading value
Leading value with leading value delay Position
Velocity
Acceleration

316

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.31

StatusSensor[1..4] Tags (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusSensor[1..4].<tag name>" indicates the status of the measuring system.

Tags

Legend (Page 293)

Tag StatusSensor[1..4].
State
CommunicationOK Error AbsEncoderOffset Control Position Velocity AdaptionState
ModuloCycle

Data type Values

Array [1..4] OF TO_Struct_StatusSensor

DINT

0 to 2

BOOL

-

BOOL

-

LREAL -

BOOL

-

LREAL LREAL DINT

0 to 4

DINT

-2147483648 to 2147483647

W RON
RON RON RON RON RON RON RON
RON

Description

Status of the actual encoder value

0

"NOT_VALID"

Invalid

1

"WAITING_FOR_VALID"

Waiting for "Valid" status

2

"VALID"

Valid

Cyclic BUS communication between controller and encoder

FALSE Not established

TRUE Established

FALSE No error in the measuring system

TRUE Error in the measuring system.

Home position offset for value of an absolute value encoder.

The value will be retentively stored in the CPU.

FALSE Encoder is not active

TRUE Encoder is active

Encoder position

Encoder velocity

Status of automatic data transfer of encoder parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

Number of modulo cycles

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

317

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.32

"StatusExtrapolation" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusExtrapolation.<tag name>" indicates the status of the actual value extrapolation.

Tags

Legend (Page 293)

Tag StatusExtrapolation.
FilteredPosition
FilteredVelocity
ExtrapolatedPosition
ExtrapolatedVelocity

Data type Values

W

TO_Struct_StatusExtrapolation

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

Description Position after position filter Velocity after velocity filter and tolerance band Extrapolated position Extrapolated velocity

318

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.33

"StatusKinematicsMotion" tag (positioning axis) (S7-1500, S7-1500T)
The "<TO>.StatusKinematicsMotion" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "MaxDecelerationExceeded") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Legend (Page 293)

Tag StatusKinematicsMotion
Bit 0

Data type DWORD -

Values -

Bit 1

-

-

Bit 2

-

-

W RON -
-
-

Description

Status information of the technology object

"MaxVelocityExceeded"

0

The kinematics technology object calculated a

lower velocity setpoint than the maximum ve-

locity on the axis.

1

The kinematics technology object calculated a

higher velocity setpoint than the maximum

velocity on the axis.

"MaxAccelerationExceeded"

0

The kinematics technology object calculated a

lower setpoint acceleration calculated than the

maximum acceleration of the axis.

1

The kinematics technology object calculated a

higher setpoint acceleration than the maximum

acceleration of the axis.

"MaxDecelerationExceeded"

0

The kinematics technology object calculated a

lower setpoint deceleration than the maximum

deceleration of the axis.

1

The kinematics technology object calculated a

lower setpoint deceleration than the maximum

deceleration of the axis.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

319

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.34

"StatusTorqueData" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusTorqueData.<tag name>" indicates the status of the torque data.

Tags

Legend (Page 293)

Tag StatusTorqueData.
CommandAdditive TorqueActive
CommandTorque RangeActive
ActualTorque

Data type Value range W

TO_Struct_StatusTorqueData

DINT

0, 1

RON

DINT

0, 1

RON

LREAL

-1.0E12 to 1.0E12

RON

Description

Additive setpoint torque

0

Inactive

1

Active

Torque limits B +, B-

0

Inactive

1

Active

Actual torque of the axis

A.2.35

"StatusMotionIn" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusMotionIn.<tag name>" indicates the status of the "MotionIn" function.

Tags

Legend (Page 293)

Tag StatusMotionIn.
FunctionState

Data type Value range

TO_Struct_StatusMotionIn

DINT

0 to 2

W Description

RON 0 1 2

No "MotionIn" function active "MC_MotionInVelocity" active "MC_MotionInPosition" active

320

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.36

"StatusWord" tag (positioning axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 5 "HomingDone") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag StatusWord
Bit 0

Legend (Page 293)

Data type DWORD -

Values -

Bit 1 Bit 2 Bit 3

-

-

-

-

-

-

Bit 4 Bit 5 Bit 6

-

-

-

-

-

-

Bit 7

-

-

W RON -
-
-
-
-

Description

Status information of the technology object

"Enable"

Enable status

0

The technology object is disabled.

1

The technology object has been enabled.

"Error"

0

No error is present.

1

An error is present.

"RestartActive"

0

No restart is active.

1

A restart is active. The technology object is

being reinitialized.

"OnlineStartValuesChanged"

0

The restart tags are unchanged.

1

The restart tags have been changed. For the

changes to be applied, the technology object

must be reinitialized.

"ControlPanelActive"

0

The axis control panel is deactivated.

1

The axis control panel is active.

"HomingDone"

Homing status

0

The technology object is not homed.

1

The technology object is homed.

"Done"

0

A motion job is in progress or the axis control

panel is activated.

1

No motion job is in progress and the axis con-

trol panel is deactivated.

"Standstill"

Standstill signal

0

The axis is in motion.

1

The axis is at a standstill.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

321

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Bit 16
Bit 17
Bit 18

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

"PositioningCommand"

0

No positioning job is active.

1

A positioning job is active

("MC_MoveRelative","MC_MoveAbsolute").

-

"JogCommand"

0

No "MC_MoveJog" job is active.

1

An "MC_MoveJog" job is running

-

"VelocityCommand"

0

No "MC_MoveVelocity" job is active.

1

An "MC_MoveVelocity" job is running

-

"HomingCommand"

0

No "MC_Home" job is in progress.

1

An "MC_Home" job is being processed.

-

"ConstantVelocity"

0

The axis is accelerated or decelerated.

1

The setpoint velocity is reached. A constant

velocity setpoint is output.

-

"Accelerating"

0

No acceleration operation is active.

1

An acceleration operation is active.

-

"Decelerating"

0

No deceleration process is active.

1

A deceleration operation is active.

-

"SWLimitMinActive"

0

No negative software limit switch was ap-

proached.

1

A negative software limit switch was reached

or exceeded.

-

"SWLimitMaxActive"

0

No positive software limit switch was ap-

proached.

1

A positive software limit switch was reached or

exceeded.

-

"HWLimitMinActive"

0

No negative hardware limit switch was ap-

proached.

1

A negative hardware limit switch was reached

or exceeded.

-

"HWLimitMaxActive"

0

No positive hardware limit switch was ap-

proached.

1

A positive hardware limit switch was reached

or exceeded.

322

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Tag Bit 19 ... Bit 22 Bit 23
Bit 24 Bit 25
Bit 26
Bit 27
Bit 28
Bit 29
Bit 30
Bit 31

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

Reserved

-

"SuperimposedMotionCommand"

0

No overlaid movement is active.

1

No overlaid movement is running.

-

Reserved

-

"AxisSimulation"

0

The simulation is not running.

1

The simulation is active.

-

"TorqueLimitingCommand"

0

No "MC_TorqueLimiting" job is active.

1

An "MC_TorqueLimiting" job is running

-

"InLimitation"

0

The drive does not operate at the torque limit.

1

The drive operates at least at the threshold

value (default 90%) of the torque limit.

-

"NonPositionControlled"

0

The axis is in position-controlled mode.

1

The axis is not in position-controlled mode.

-

"KinematicsMotionCommand"

0

The axis is not used for a kinematics job.

1

The axis is used for a kinematics job.

-

"InClamping"

0

The axis is not clamped at a fixed stop.

1

The axis is clamped at a fixed stop.

-

"MotionInCommand"

0

No "MotionIn" job is active.

1

A "MotionIn" job is running.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

323

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.37

"StatusWord2" tag (positioning axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord2" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 0 "StopCommand") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord2
Bit 0
Bit 1 ... Bit 31

Legend (Page 293)

Data type DWORD BOOL

Value range -

BOOL

-

W RON RON
RON

Description

Status information of the technology object

"StopCommand"

0

No "MC_Stop" job is active.

1

An "MC_Stop" job is running. The technology

object is disabled.

Reserved

324

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.38

"ErrorWord" tag (positioning axis) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag ErrorWord
Bit 0 Bit 1

Legend (Page 293)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5 Bit 6 Bit 7
Bit 8 Bit 9 Bit 10
Bit 11

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. "DriveFault" Error in drive "SensorFault" Error in encoder system "DynamicError" Specified dynamic values are limited to permissible values. "CommunicationFault" Communication error Missing or faulty communication. "SWLimit" Software limit switch reached or overtraveled. "HWLimit" Hardware limit switch reached or overtraveled. "HomingError" Error during homing operation The homing cannot be completed. "FollowingErrorFault" Following error limits exceeded

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

325

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Bit 12
Bit 13
Bit 14 Bit 15
Bit 16 ... Bit 31

Data type Values

-

-

-

-

-

-

-

-

-

-

W Description

-

"PositioningFault"

Positioning error

-

"PeripheralError"

Error accessing a logical address

-

Reserved

-

"AdaptionError"

Error in automatic data transfer

-

Reserved

A.2.39

"ErrorDetail" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 293)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0 to 5

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

1

Stop with current dynamic values

2

Stop with maximum dynamic values

3

Stop with emergency stop ramp

4

Remove enable

5

Track setpoints

326

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

A.2.40

"WarningWord" tag (positioning axis) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 13 "PeripheralWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 293)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5 Bit 6
Bit 7
Bit 8 Bit 9 Bit 10
Bit 11

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. "DriveWarning" Error in drive "SensorWarning" Error in encoder system "DynamicWarning" Specified dynamic values are limited to permissible values. "CommunicationWarning" Communication error Missing or faulty communication. "SWLimitMin" "SWLimitMax" "HomingWarning" Error during homing operation The homing cannot be completed. "FollowingErrorWarning" Warning limit of following error monitoring reached/exceeded

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

327

Appendix (S7-1500, S7-1500T) A.2 Tags of the positioning axis technology object (S7-1500, S7-1500T)

Tag Bit 12
Bit 13
Bit 14 Bit 15
Bit 16... Bit 31

Data type Values

-

-

-

-

-

-

-

-

-

-

W Description

-

"PositioningWarning"

Positioning error

-

"PeripheralWarning"

Error accessing a logical address

-

Reserved

-

"AdaptionWarning"

Error in automatic data transfer

-

Reserved

A.2.41

"ControlPanel" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ControlPanel.<tag name>" contains no user-relevant data. This tag structure is internally used.

A.2.42

"InternalToTrace" tag (positioning axis) (S7-1500, S7-1500T)
The tag structure "<TO>.InternalToTrace.<tag name>" contains no user-relevant data. This tag structure is internally used.

328

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3

Tags of the technology object external encoder (S7-1500, S7-

1500T)

A.3.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed via direct assignment and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

A.3.2

Actual values and setpoints (external encoder) (S7-1500, S7-1500T)
The following tags indicate the setpoint and actual values of the technology object.

Tags

Legend (Page 329)

Tag ActualPosition ActualVelocity ActualAcceleration ActualModuloCycle

Data type LREAL LREAL LREAL DINT

Values -2147483648 to 2147483647

W RON RON RON RON

Description Actual position Actual velocity Actual acceleration Number of modulo cycles of the actual value

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

329

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.3

"Sensor[1..4]" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Sensor[1..4].<tag name>" contains the controller-end configuration for the encoder, and the configuration for active and passive homing.

Tags

Legend (Page 329)

Tag Sensor[1..4].
Type
InverseDirection System
MountingMode
DataAdaption
Interface. AddressIn AddressOut Number

Data type Values

W

ARRAY [1..4] OF TO_Struct_Sensor / TO_Struct_ ExternalEncoder_Sensor

DINT

0 to 2

RON

BOOL

-

DINT

0, 1

RES RES

DINT

0 to 2

RES

DINT

0, 1

RES

Description

Encoder type

0

"INCREMENTAL"

Incremental

1

"ABSOLUTE"

Absolute

2

"CYCLIC_ABSOLUTE"

Cyclic absolute

Inversion of the actual value

FALSE No

TRUE Yes

Encoder system

0

"LINEAR"

Linear encoder

1

"ROTATORY"

Rotary encoder

Mounting type of encoder

0

On motor shaft

1

On load side

2

External measuring system

Automatic transfer of the drive values reference speed, maximum speed and reference torque in the device

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

VREF VREF UDINT

0 to 65535 0 to 65535 1 to 2

RON RON RON

Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram Number of the encoder in the telegram

330

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

Tag Parameter. Resolution StepsPerRevolution FineResolutionXist1 FineResolutionXist2 Determinable Revolutions
DistancePer Revolution BehaviorGx_XIST1
PassiveHoming. Mode
SideInput
Direction
DigitalInputAddress SwitchLevel

Data type Values

W

LREAL UDINT UDINT UDINT UDINT

-1.0E12 to 1.0E12
1 to 8388608
0 ... 31

RES
RES RES

0 ... 31

RES

0 to 8388608 RES

LREAL DINT

0.0 to 1.0E12 RES

0, 1

RES

TO_Struct_SensorPassiveHoming

DINT

0 to 2

RES

BOOL

-

CAL

DINT

0 to 2

CAL

VREF BOOL

0 to 65535 -

RON RON

Description

Resolution of a linear encoder (offset between two encoder pulses)

Increments per rotary encoder revolution

Number of bits for fine resolution Gx_XIST1 (cyclic actual encoder value)

Number of bits for fine resolution Gx_XIST2 (absolute value of encoder)

Number of differentiable encoder revolutions for a multiturn absolute encoder

(For a single-turn absolute encoder = 1; for an incremental encoder = 0)

Load distance per revolution of an externally mounted encoder

Evaluation of Gx_XIST1 bits

0

Based on the bits of the encoder resolution

1

32-bit value of the encoder value

Homing mode

0

Use zero mark via PROFIdrive telegram

1

Zero mark via PROFIdrive telegram and refer-

ence output cam

2

Use homing mark via digital input

Side of the digital input for passive homing

FALSE Negative side

TRUE Positive side

Homing direction/approach direction on the homing mark

0

Positive homing direction

1

Negative homing direction

2

Current homing direction

Address of the digital input

Signal level that is present at the digital input when homing mark is approached

FALSE Low level

TRUE High level

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

331

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.4

"CrossPlcSynchronousOperation" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.CrossPlcSynchronousOperation.<tag name>" contains the configuration of the cross-PLC synchronous operation.

Tags

Legend (Page 329)

Tag CrossPlcSynchronousOperation.
Interface[1..1].
EnableLeading ValueOutput
AddressOut LocalLeading ValueDelayTime

Data type Values

W

TO_Struct_ CrossPlcSynchronousOperation

ARRAY [1..1] of TO_Struct_ CrossPlcLeadingValueInterface

BOOL

-

RON

VREF LREAL

0.0 to 1.0E12

RON DIR

Description
Provide cross-PLC leading value FALSE No TRUE Yes Output address for the leading value telegram Delay time of leading value output on the local following axes

332

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.5

"Extrapolation" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Extrapolation.<tag name>" contains the configuration of the actual value extrapolation.

Tags

Legend (Page 329)

Tag Extrapolation.
LeadingAxis DependentTime
FollowingAxis DependentTime
Settings. SystemDefined Extrapolation Extrapolated VelocityMode

Data type Values

W Description

TO_Struct_Extrapolation LREAL -

RON Extrapolation time component (caused by leading axis) Results from the following times:

· Time of actual value acquisition for the leading axis

· Interpolator cycle clock
· Time of position filter of actual value extrapolation (T1 + T2)

LREAL

0.001 to 1.0E12

DIR Extrapolation time component (caused by following axis) Results from the following times:

· For a following axis with set velocity precontrol:
­ Communication cycle ­ Interpolator cycle clock ­ Speed control loop substitute time for the follow-
ing axis ­ Output delay time of the setpoint at the following
axis
· For a following axis without velocity precontrol:
­ Communication cycle ­ Interpolator cycle clock ­ Position control loop equivalent time
(1/Kv from "<TO>.PositionControl.Kv") ­ Output delay time of the setpoint at the following
axis

TO_Struct_ExtrapolationSettings

DINT

0, 1

RES

DINT

0, 1

RES

Leading axis dependent time

0

Not effective

1

Effective

Effective velocity value for the synchronization function

0

"FilteredVelocity"

Leading value velocity from filtered actual velocity

1

"VelocityByDifferentiation"

The leading value velocity results from the differentiation of the extrapolated leading value position

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

333

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

Tag PositionFilter.
T1 T2 VelocityFilter.
T1 T2 VelocityTolerance.
Range Hysteresis.
Value

Data type Values

W

TO_Struct_ ExtrapolationPositionFilter

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

TO_Struct_ ExtrapolationVelocityFilter

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

TO_Struct_ ExtrapolationVelocityTolerance

LREAL 0.0 to 1.0E12 DIR

TO_Struct_ExtrapolationHysteresis

LREAL 0.0 to 1.0E12 DIR

Description
Position filter time constant T1 Position filter time constant T2
Velocity filter time constant T1 Velocity filter time constant T2
Tolerance band width for velocity Hysteresis of the extrapolated actual position value

A.3.6

"LoadGear" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.LoadGear.<tag name>" contains the configuration of the load gear.

Tags

Legend (Page 329)

Tag LoadGear.
Numerator
Denominator

Data type Value range

TO_Struct_LoadGear

UDINT

1 to 4294967295

UDINT

1 to 4294967295

W Description RES Load gear counter RES Load gear denominator

334

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.7

"Properties" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Properties.<tag name>" contains the configuration of the type of axis or motion.

Tags
Tag Properties.
MotionType

Legend (Page 329)

Data type Value range

TO_Struct_Properties

DINT

0, 1

W Description

RON

Display of axis type or motion type

0

Linear axis or motion

1

Rotary axis or motion

A.3.8

"Units" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags
Tag Units.
LengthUnit

Legend (Page 329)

Data type Values

W

TO_Struct_Units / TO_Struct_ExternalEncoder_Units

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1)

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

335

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

Tag VelocityUnit
TimeUnit UnitFactor

Data type Values UDINT -
UDINT UDINT -

W RON
RON RON

Description Unit for velocity 1521 °/s 1539 °/s1) 1522 °/min 1086 rad/s 1523 rad/min 1062 mm/s 1538 mm/s1) 1061 m/s 1524 mm/min 1525 m/min 1526 mm/h 1063 m/h 1527 km/min 1064 km/h 1066 in/s 1069 in/min 1067 ft/s 1070 ft/min 1075 mi/h Unit for time 1054 s Factor for internal conversion in the high-resolution units.

1) Position values with higher resolution or six decimal places

A.3.9

"Mechanics" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Mechanics.<tag name>" contains the configuration of the mechanics.

Tags
Tag Mechanics.
LeadScrew

Legend (Page 329)

Data type Value range TO_Struct_Mechanics LREAL 0.0 to 1.0E12

W Description RES Leadscrew pitch

336

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.10

"Modulo" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Modulo.<tag name>" contains the configuration of the modulo function.

Tags
Tag Modulo.
Enable Length
StartValue

Legend (Page 329)

Data type Values

TO_Struct_Modulo

BOOL

-

LREAL

0.001 to 1.0E12

LREAL

-1.0E12 to 1.0E12

W Description

RES RES RES

FALSE Modulo conversion disabled TRUE Modulo conversion enabled Modulo length When modulo conversion is enabled, a check is made for modulo length > 0.0 Modulo start value

A.3.11

"Homing" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.Homing.<tag name>" contains the configuration for homing the TO.

Tags

Legend (Page 329)

Tag Homing.
HomePosition

Data type Values

W

TO_Struct_Homing / TO_Struct_ ExternalEncoder_Homing

LREAL -1.0E12 to

CAL

1.0E12

Description Home position

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

337

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.12

"StatusProvidedLeadingValue" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusProvidedLeadingValue.<tag name>" contains the provided leading value with leading value delay of the cross-PLC synchronous operation.

Tags

Legend (Page 329)

Tag
StatusProvided LeadingValue.
DelayedLeading Value
Position
Velocity
Acceleration

Data type

Values

W Description

TO_Struct_

Provided leading value

StatusProvidedLeadingValue

TO_Struct_ ProvidedLeadingValue

Leading value with leading value delay

LREAL -1.0E12 to RO Position

1.0E12

N

LREAL -1.0E12 to RO Velocity

1.0E12

N

LREAL -1.0E12 to RO Acceleration

1.0E12

N

338

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.13

"StatusSensor[1..4]" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusSensor[1..4].<tag name>" indicates the status of the measuring system.

Tags

Legend (Page 329)

Tag StatusSensor[1..4].
State
CommunicationOK Error AbsEncoderOffset Control Position Velocity AdaptionState
ModuloCycle

Data type Values

Array [1..4] OF TO_Struct_StatusSensor

DINT

0 to 2

BOOL

-

BOOL

-

LREAL -

BOOL

-

LREAL -

LREAL -

DINT

-

DINT

-2147483648 to 2147483647

W RON
RON RON RON RON RON RON RON
RON

Description

Status of the actual encoder value

0

"NOT_VALID"

Invalid

1

"WAITING_FOR_VALID"

Waiting for "Valid" status

2

"VALID"

Valid

Cyclic BUS communication between controller and encoder

FALSE Not established

TRUE Established

FALSE No error in the measuring system

TRUE Error in the measuring system.

Home position offset for value of an absolute value encoder.

The value will be retentively stored in the CPU.

FALSE Encoder is not active

TRUE Encoder is active

Encoder position

Encoder velocity

Status of automatic data transfer of encoder parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

Number of modulo cycles

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

339

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.14

"StatusExtrapolation" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusExtrapolation.<tag name>" indicates the status of the actual value extrapolation.

Tags

Legend (Page 329)

Tag StatusExtrapolation.
FilteredPosition
FilteredVelocity
ExtrapolatedPosition
ExtrapolatedVelocity

Data type Values

W

TO_Struct_StatusExtrapolation

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

LREAL

-1.0E12 to 1.0E12

RON

Description Position after position filter Velocity after velocity filter and tolerance band Extrapolated position Extrapolated velocity

A.3.15

"StatusWord" tag (external encoder) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 5 "HomingDone") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag StatusWord
Bit 0

Legend (Page 329)

Data type DWORD -

Values -

Bit 1 Bit 2

-

-

-

-

W RON -
-
-

Description

Status information of the technology object

"Enable"

Enable status

0

Technology object disabled

1

Technology object enabled

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

340

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Tag Bit 3
Bit 4 Bit 5
Bit 6
Bit 7 ... Bit 10 Bit 11
Bit 12... Bit 31

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

-

Reserved

-

"HomingDone"

Homing status

0

Technology object not homed

1

Technology object homed

-

"Done"

0

Motion job is active or axis control panel ena-

bled

1

No motion job in process and axis control pan-

el disabled

-

Reserved

-

"HomingCommand"

0

No "MC_Home" job in progress

1

"MC_Home" job in progress

-

Reserved

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

341

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.16

"ErrorWord" tag (external encoder) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag ErrorWord
Bit 0 Bit 1

Legend (Page 329)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5
Bit 6 Bit 7
Bit 8 Bit 9 Bit 10
Bit 11 Bit 12 Bit 13
Bit 14 ... Bit 31

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. Reserved "SensorFault" Error in encoder system Reserved "CommunicationFault" Communication error Missing or faulty communication. Reserved Reserved "HomingError" Error during homing operation The homing cannot be completed. Reserved Reserved "PeripheralError" Error accessing a logical address Reserved

342

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.17

"ErrorDetail" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 329)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 4

W
RON RON

Description

Alarm number

Effective alarm reaction

0

No reaction

4

Remove enable

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

343

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.18

"WarningWord" tag (external encoder) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 13 "PeripheralWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 329)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5
Bit 6 Bit 7
Bit 8 Bit 9 Bit 10
Bit 11 Bit 12 Bit 13
Bit 14... Bit 31

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. Reserved "SensorWarning" Error in encoder system Reserved "CommunicationWarning" Communication error Missing or faulty communication. Reserved Reserved "HomingWarning" Error during homing operation The homing cannot be completed. Reserved Reserved "PeripheralWarning" Error accessing a logical address Reserved

344

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.3 Tags of the technology object external encoder (S7-1500, S7-1500T)

A.3.19

"InternalToTrace[1..4]" tag (external encoder) (S7-1500, S7-1500T)
The tag structure "<TO>.InternalToTrace[1..4].<tag name>" contains no user-relevant data. This tag structure is internally used.

Tags

Legend (Page 329)

Tag InternalToTrace[1..4].
Id Value

Data type Values

ARRAY [1..4] OF TO_Struct_Internal

DINT

-

LREAL -

W Description
DIR RON -

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

345

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4

"MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.1

Drive connection via PROFIdrive (S7-1500, S7-1500T)

A.4.1.1

PROFIdrive State Machine (S7-1500, S7-1500T)
An axis controls the PROFIdrive state machine in the drive through the control word in the PROFIdrive telegram. The PROFIdrive state machine shows the state of the drive.
The following table shows the states of the PROFIdrive state machine:

Status S1 S2 S3 S4 S5

Description Switching on inhibited (drive off, brake closed if necessary) Ready for power-up Switched on (drive switched on, release brake if necessary) Operation (drive released, brakes released if necessary) Switching off (braking with drive-defined ramp)

Additional information
For more information about the PROFIdrive state machine, refer to Siemens Industry Online Support in the FAQ entry 109770665 (https://support.industry.siemens.com/cs/ww/en/view/109770665).

346

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.1.2

"StopMode" = 0, 2 (S7-1500, S7-1500T)

Function chart: Enabling a technology object and disabling with "StopMode" = 0, 2

 · "StopMode" = 0
The axis is braked with the configured emergency stop deceleration. · "StopMode" = 2
The axis decelerates with the configured maximum deceleration.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

347

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.1.3

"StopMode" = 1 (S7-1500, S7-1500T)

Function chart: Enabling a technology object and disabling with "StopMode" = 1

 The deceleration ramp depends on the configuration in the drive.

348

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.1.4

Alarm reactions with braking ramp via the technology object (S7-1500, S7-1500T)

Function chart: Enabling a technology object and occurrence of a technology alarm with braking ramp via the technology object

 The axis is braked based on the alarm reaction:
· Stop with current dynamic values (<TO>.ErrorDetail.Reaction = 1)
The axis is braked with the deceleration in the Motion Control instruction. · Stop with maximum dynamic values (<TO>.ErrorDetail.Reaction = 2)
The axis decelerates with the configured maximum deceleration. · Stop with emergency stop ramp (<TO>.ErrorDetail.Reaction = 3)
The axis is braked with the configured emergency stop deceleration.
 The technology alarm is acknowledged.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

349

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.1.5

Alarm response "Remove enable" (S7-1500, S7-1500T)

Function chart: Enabling a technology object and occurrence of a technology alarm with alarm reaction "Remove enable"



The deceleration ramp depends on the configuration in the drive.

 The technology alarm is acknowledged at time .

350

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.2

Analog drive connection (S7-1500, S7-1500T)

A.4.2.1

"StopMode" = 0, 2 (S7-1500, S7-1500T)

Function chart: Enabling a technology object and disabling with "StopMode" = 0, 2

 · "StopMode" = 0
The axis is braked with the configured emergency stop deceleration. · "StopMode" = 2
The axis decelerates with the configured maximum deceleration.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

351

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.2.2

"StopMode" = 1 (S7-1500, S7-1500T)

Function chart: Enabling a technology object and disabling with "StopMode" = 1



The deceleration ramp depends on the configuration in the drive.



The behavior of the ready signal of the drive "DI DriveReadyInput" is manufacturer-

specific.

352

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.2.3

Alarm reactions with braking ramp via the technology object (S7-1500, S7-1500T)

Function chart: Enabling a technology object and occurrence of a technology alarm with braking ramp via the technology object



The axis is braked based on the alarm reaction:

· Stop with current dynamic values (<TO>.ErrorDetail.Reaction = 1)

The axis is braked with the deceleration in the Motion Control instruction. · Stop with maximum dynamic values (<TO>.ErrorDetail.Reaction = 2)

The axis decelerates with the configured maximum deceleration. · Stop with emergency stop ramp (<TO>.ErrorDetail.Reaction = 3)

The axis is braked with the configured emergency stop deceleration.



The behavior of the ready signal of the drive "DI DriveReadyInput" is manufacturer-specific.



The technology alarm is acknowledged at time .

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

353

Appendix (S7-1500, S7-1500T) A.4 "MC_Power" function diagrams (S7-1500, S7-1500T)

A.4.2.4

Alarm response "Remove enable" (S7-1500, S7-1500T)

Function chart: Enabling a technology object and occurrence of a technology alarm with alarm reaction "Remove enable"

 The deceleration ramp depends on the configuration in the drive.  The behavior of the ready signal of the drive "DI DriveReadyInput" is manufacturer-specific.  The technology alarm is acknowledged at time .

354

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Glossary (S7-1500, S7-1500T)

Absolute synchronous operation
Function corresponds to the Motion Control instruction MC_GearInPos or MC_CamIn.

Absolute value encoder
Position encoder which outputs the position in the form of a digital numerical value. This numerical value is unique within the entire measuring range of the absolute value encoder.

Axis control panel
The axis control panel allows you to move the axis in manual mode, optimize the axis settings, and test the operation of the axis in your system.

Axis type

The axis type differs depending on the unit of measurement according to which the axis is positioned.
Depending on the execution of the mechanics, an axis is implemented as a linear axis or rotary axis:
 For linear axes, the position of the axis is specified as a linear measure, e.g. millimeters (mm).
 For rotary axes, the position of the axis is specified as an angular measure, e.g. degrees (°).

Communication processor (CP)
Module for expanded communications tasks covering special applications, for example in the area of security.

Communications module (CM)
Module for communications tasks which is used as an interface expansion of the CPU (for example PROFIBUS) or provides additional communications options (e.g. PtP) in an automation system.

Drive

The combination of motor (electric or hydraulic), actuator (converter, valve), control system, measuring system and supply (infeed, accumulator).

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

355

Glossary (S7-1500, S7-1500T)

Dynamic Servo Control (DSC)
In drives that support DSC, you can optionally use the position controller in the drive. The position controller in the drive is usually implemented with a rapid speed-control cycle. This improves the control performance for digitally coupled drives.

Following error

The following error is the difference between the position setpoint and the actual position value. The transmission times of the setpoint to the drive, and of the actual position value to the controller, are taken into account in the calculation of the following error.

GSD file

As a Generic Station Description, this file contains all properties of a PROFINET or PROFIBUS device that are necessary for its configuration.

Hardware limit switch
Mechanical limit position switch that limits the maximum permissible traversing range of the axis.

Homing

With homing, you create the relationship between the position in the technology object and the mechanical position of the axis. The position value in the technology object is assigned to a homing mark at the same time. This homing mark represents a known mechanical position.

Incremental encoder
Position encoder which outputs the position change incrementally in the form of a digital numerical value.

Kv factor

Gain factor of the position controller

Master value

Input value for synchronous operation

Motion Control instruction
Use the Motion Control instructions to start Motion Control jobs at technology objects in your user program and thus execute the desired functionality at the technology objects. You track the status of running jobs with the output parameters of the Motion Control instructions.

356

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Glossary (S7-1500, S7-1500T)

Override

Percentage correction of the velocity/speed

Processing cycle clock
The processing of a technology object in the servo cycle clock.

PROFIdrive

PROFIdrive is a profile specified by the PNO (PROFIBUS user organization) for PROFIBUS DP and PROFINET IO for speed- and position-controlled drives.

PROFIdrive frame
Frame for communication according to PROFIdrive.

Relative gearing
Function corresponds to the Motion Control instruction MC_GearIn.

Restart

The technology object is reinitialized with the current configuration parameters.

Safe Stop 1 (SS1)
The Safe Stop 1 (SS1) safety function brings a drive to standstill quickly and safely via an internal rapid stop ramp. Safe Torque Off (STO) is activated after standstill. STO ensures that no more torque generating energy acts on a drive. This prevents unintended startup of the drive.
You can use the SS1 safety function when a fast stop of the drive with a subsequent transition to STO is required. SS1 is used, for example, to quickly stop high inertia loads or to brake drives quickly and safely at high speeds

Safe Stop 2 (SS2)
The Safe Stop 2 (SS2) safety function brings a drive to standstill quickly and safely via an internal rapid stop ramp. After standstill is reached, the standstill position is monitored on the drive side. The drive can deliver full torque to maintain the standstill.
SS2, for example, is used for processing machines and machine tools.

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

357

Glossary (S7-1500, S7-1500T)

Safe Torque Off (STO)
The Safe Torque Off (STO) safety function is the most commonly used and most basic driveinternal safety function. STO ensures that no more torque generating energy acts on a drive. This prevents unintended startup of the drive. The pulses of the drive are eliminated. The drive is reliably torque-free. This state is monitored internally in the drive.
You can use STO when the drive comes to a standstill in a sufficiently short time on its own due to the load torque or due to friction. Other areas of use are where "coasting" of the drive has no relevance for safety.

Software limit switch
A programmable position which limits the traversing range of an axis.

Synchronization
The phase of the following axis to reach synchronous movement.

Synchronous operation
Defined synchronous movement after synchronization of a following axis to a leading axis.

Technology alarm
If an error occurs at a technology object (e.g. approaching a hardware limit switch), a technology alarm is triggered and indicated.
The impact of a technology alarm on the technology object is specified by the alarm reaction (e.g. remove enable). The alarm reaction is specified by the system.

Technology data block
The technology data block represents the technology object and contains all configuration data, setpoint and actual values, and status information of the technology object.

Technology module (TM)
Module for technological tasks, e.g. counting, measuring and positioning.

Zero mark

Position reference for the movement of rotary and linear incremental encoders. The zero mark of an incremental encoder is used as a homing mark, for example.

358

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

Index

A

F

Absolute actual value, 31, 32 Absolute encoder adjustment, 66 Absolute value adjustment, 85 Active homing, 66, 70, 73, 75, 135 Additive setpoint torque, 62 Axis control panel, 164, 168 Axis type, 22
C
Closed loop position control, 93, 94, 96, 145, 146, 162 Closed-loop control, 93, 94, 96, 145, 146, 162

Fixed stop, 84 Following error monitoring, 89, 90, 91, 143
H
Hardware limit switches, 49, 49, 128 Hardware limit switches, 49, 49, 128 Home position, 67 Homing, 84 Homing mark, 67
I

D

Incremental actual value, 31, 32

Direct homing, 66, 83 Direction reversal at the hardware limit switch, 68, 77, 136 Disable axis
Stop, 241 DSC (Dynamic Servo Control), 93, 94, 96, 145 Dynamic default values, 54, 125 Dynamic Servo Control (DSC), 93, 94, 96, 145
E
Emergency stop deceleration, 56, 126 Encoder connection
S7-1500 Motion Control, 112 S7-1500T Motion Control, 112 Encoder mounting type, 47, 48, 121 External encoder Basics, 20 Configuration, 148 Diagnostics, 188, 190, 190 Functions, 15 Tags, 329

J
Jerk limit, 54, 125, 130
L
Leadscrew pitch, 47, 48, 121 Limit switches, 49, 49, 51, 128 Limits for dynamics, 54, 130 Linear axis, 22 Load gear, 47, 48, 121
M
Master control, 164 MC_Halt, 206, 209 MC_Home, 200 MC_MotionInPosition, 255, 257 MC_MotionInVelocity, 251, 253 MC_MoveAbsolute, 211, 214 MC_MoveJog, 227, 231 MC_MoveRelative, 216, 219 MC_MoveSuperimposed, 233, 236 MC_MoveVelocity, 221, 225 MC_Power, 191, 196 MC_Reset, 197 MC_SetAxisSTW, 247

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

359

Index

MC_SetSensor, 238 MC_Stop, 241, 245 MC_TorqueAdditive, 62, 259, 261 MC_TorqueLimiting, 265, 268 MC_TorqueRange, 63, 262, 264 MC_WriteParameter, 249 Modulo, 23, 108
O
Optimize position controller, 169, 172
P
Passive homing, 66, 77, 79, 81, 139 Position limits, 49, 49, 51, 52, 128 Positioning axis
Basics, 19 Configuration, 108 Diagnostics, 182, 186, 187 Functions, 15 Tags, 293 Positioning monitoring, 89, 89, 91, 143 PROFIdrive, 26, 34
R
Ramp-down time, 125, 130 Ramp-up time, 125, 130 Reference cam, 67 Reversing cam, 68, 77 Reversing output cam, 136 Rotary axis, 22
S
S7-1500 Motion Control, 15 Actual value, 31, 32, 32 Axis type, 22 Closed-loop control, 93, 94, 96, 145, 146, 162 Commissioning, 164, 168, 169, 172 Configuration, 108 Drive and encoder connection, 26, 27, 34, 45, 110, 112 Dynamic defaults, 56 Dynamic settings, 54, 54, 64, 125, 130 Homing, 66, 67, 69, 70, 77, 77, 83, 85, 86, 87, 134, 135, 139 Mechanics, 47, 48, 121 Modulo, 23, 108

Motion Control instruction, 15 Position limits, 49, 49, 51, 52, 128 Position monitoring, 89, 89, 90, 91, 143, 143, 144 PROFIdrive, 26, 34 Technology object, 15, 18, 19, 20, 108 Telegram, 27, 34, 45 S7-1500 Motion Control actual value, 31, 32, 32 S7-1500 Motion Control commissioning, 164, 168, 169, 172 S7-1500 Motion Control drive connection, 26, 27, 34, 45, 110 S7-1500 Motion Control encoder connection, 26, 27, 34, 45 S7-1500 Motion Control homing Absolute encoder adjustment, 66 Absolute value adjustment, 85 active, 73, 75 Active, 66, 70, 135 Basics, 66 Configuration, 134 direct, 83 Direct, 66 Home position, 67 Homing mark, 67 Homing mode, 67, 69 on the fly, 79, 81 On the fly, 66, 77, 139 passive, 79, 81 Passive, 66, 77, 139 Reference cam, 67 Reversing cam, 68, 77 Reversing output cam, 136 Zero mark, 67 S7-1500 Motion Control instruction Overview, 15 S7-1500 Motion Control mechanics, 47, 48, 121 S7-1500 Motion Control optimization, 169, 172 S7-1500 Motion Control telegram, 27, 34, 45 S7-1500T Motion Control Drive and encoder connection, 112 Motion Control instruction, 15 Technology object, 15 Software limit switches, 49, 51, 128 Speed axis Basics, 18 Configuration, 97 Diagnostics, 177, 180, 181 Functions, 15 Tags, 276 Synchronous axis Diagnostics, 186, 187

360

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

T
Tags Closed-loop control, 96 Drive and encoder connection, 45 Homing, 87 Mechanics, 48 Motion control and limits for dynamics, 64 Position monitoring functions, 91 Positioning axis technology object, 293 Speed axis technology object, 276 Technology object external encoder, 329 Traversing range limitation, 52
T-CPU, 15 Technology data block
Tags of the positioning axis technology object, 293 Tags of the speed axis technology object, 276 Tags of the technology object external encoder, 329 Technology object External encoder, 15, 20, 148, 188, 190, 190 Positioning axis, 15, 19, 108, 182, 186, 187 Speed axis, 15, 18, 97, 177, 180, 181 Synchronous axis, 186, 187 Torque limits, 63 Torque setpoint, 62 Traversing range limitation, 49, 49, 51, 52, 128
V
Velocity precontrol, 93 Velocity profile, 54
Z
Zero mark, 67

Index

S7-1500/S7-1500T Axis functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E37577655-AC

361

Edition

12/2019

Function manual
SIMATIC
S7-1500
S7-1500/S7-1500T Measuring input and output cam functions V5.0 in TIA Portal V16
support.industry.siemens.com

SIMATIC
S7-1500 S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16
Function Manual

Preface (S7-1500, S71500T)

Function manuals

Documentation Guide (S7-

1

1500, S7-1500T)

Introduction (S7-1500, S71500T)

2

Basics (S7-1500, S7-1500T)

3

Configuring (S7-1500, S71500T)

4

Diagnostics (S7-1500, S71500T)

5

Instructions (S7-1500, S71500T)

6

Appendix (S7-1500, S71500T)

A

TIA Portal V16
12/2019
A5E47009899-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E47009899-AA  10/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface (S7-1500, S7-1500T)
Security information (S7-1500, S7-1500T)
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

3

Table of contents

Preface (S7-1500, S7-1500T) ................................................................................................................. 3

1 Function manuals Documentation Guide (S7-1500, S7-1500T) ............................................................... 7

2 Introduction (S7-1500, S7-1500T) ........................................................................................................... 9

2.1

Interplay of the various documents (S7-1500, S7-1500T) ....................................................... 9

2.2

Functions (S7-1500, S7-1500T)............................................................................................. 10

3 Basics (S7-1500, S7-1500T) ................................................................................................................. 11

3.1 3.1.1 3.1.1.1 3.1.1.2 3.1.2 3.1.3 3.1.4

Measuring input technology object (S7-1500, S7-1500T) ..................................................... 11 Measuring (S7-1500, S7-1500T) ........................................................................................... 14 One-time measurement (S7-1500, S7-1500T) ...................................................................... 14 Cyclic measuring (S7-1500, S7-1500T)................................................................................. 16 Measuring with measuring range (S7-1500, S7-1500T)........................................................ 20 Time-related boundary conditions (S7-1500, S7-1500T) ...................................................... 21 Tags: Measuring input technology object (S7-1500, S7-1500T) ........................................... 23

3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6

Output cam technology object (S7-1500, S7-1500T) ............................................................ 26 Distance output cam (S7-1500, S7-1500T) ........................................................................... 29 Time-based output cam (S7-1500, S7-1500T) ...................................................................... 31 Activation direction of cam (S7-1500, S7-1500T) .................................................................. 33 Hysteresis (S7-1500, S7-1500T) ........................................................................................... 35 Compensation of actuator switching times (S7-1500, S7-1500T) ......................................... 38 Tags: Output cam technology object (S7-1500, S7-1500T) .................................................. 39

3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7

Cam track technology object (S7-1500, S7-1500T)............................................................... 41 Modulo function (S7-1500, S7-1500T)................................................................................... 46 Effective direction (S7-1500, S7-1500T)................................................................................ 48 Changing the cam track data during operation (S7-1500, S7-1500T)................................... 50 Activation behavior (S7-1500, S7-1500T).............................................................................. 51 Hysteresis (S7-1500, S7-1500T) ........................................................................................... 54 Time offset of cam switching points (S7-1500, S7-1500T) .................................................... 54 Tags: Cam track technology object (S7-1500, S7-1500T) .................................................... 54

4 Configuring (S7-1500, S7-1500T).......................................................................................................... 57

4.1 4.1.1 4.1.2 4.1.3

Configuring the technology object measuring input (S7-1500, S7-1500T)............................ 57 Configuration - Basic parameters (S7-1500, S7-1500T) ....................................................... 57 Configuration - Hardware interface (S7-1500, S7-1500T) ..................................................... 58 Configuration - Extended parameters (S7-1500, S7-1500T) ................................................. 60

4.2 4.2.1 4.2.2 4.2.3 4.2.3.1 4.2.3.2

Configuring the output cam technology object (S7-1500, S7-1500T).................................... 61 Configuration - Basic parameters (S7-1500, S7-1500T) ....................................................... 61 Configuration - Hardware interface (S7-1500, S7-1500T) ..................................................... 62 Extended parameters (S7-1500, S7-1500T).......................................................................... 63 Configuration - Activation time (S7-1500, S7-1500T) ............................................................ 63 Configuration - Hysteresis (S7-1500, S7-1500T)................................................................... 63

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

4

Function Manual, 12/2019, A5E47009899-AA

Table of contents

4.3 4.3.1 4.3.2 4.3.3 4.3.3.1 4.3.3.2

Configuring the cam track technology object (S7-1500, S7-1500T).......................................64 Configuration - Basic parameters (S7-1500, S7-1500T) ........................................................64 Configuration - Hardware interface (S7-1500, S7-1500T)......................................................65 Extended parameters (S7-1500, S7-1500T)...........................................................................66 Track data (S7-1500, S7-1500T) ............................................................................................66 Configuration - Output cam data (S7-1500, S7-1500T)..........................................................67

5 Diagnostics (S7-1500, S7-1500T) ......................................................................................................... 68

5.1 5.1.1

Measuring input technology object (S7-1500, S7-1500T) ......................................................69 Status and error bits (S7-1500, S7-1500T).............................................................................69

5.2 5.2.1

Output cam technology object (S7-1500, S7-1500T) .............................................................71 Status and error bits (S7-1500, S7-1500T).............................................................................71

5.3 5.3.1 5.3.2

Cam track technology object (S7-1500, S7-1500T) ...............................................................73 Status and error bits (S7-1500, S7-1500T).............................................................................73 Cam track status (S7-1500, S7-1500T) ..................................................................................75

6 Instructions (S7-1500, S7-1500T).......................................................................................................... 76

6.1 6.1.1 6.1.2

MC_MeasuringInput V5 (S7-1500, S7-1500T) .......................................................................76 MC_MeasuringInput: Start measuring once V5 (S7-1500, S7-1500T) ...................................76 MC_MeasuringInput: Function chart V5 (S7-1500, S7-1500T) ..............................................79

6.2 6.2.1 6.2.2

MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)..............................................................80 MC_MeasuringInputCyclic: Start cyclic measuring V5 (S7-1500, S7-1500T) ........................80 MC_MeasuringInputCyclic: Function chart V5 (S7-1500, S7-1500T).....................................82

6.3 6.3.1

MC_AbortMeasuringInput V5 (S7-1500, S7-1500T)...............................................................84 MC_AbortMeasuringInput: Cancel active measuring job V5 (S7-1500, S7-1500T) ...............84

6.4 6.4.1 6.4.2

MC_OutputCam V5 (S7-1500, S7-1500T)..............................................................................86 MC_OutputCam: Activate/deactivate output cam V5 (S7-1500, S7-1500T) ..........................86 MC_OutputCam: Function chart V5 (S7-1500, S7-1500T).....................................................89

6.5 6.5.1 6.5.2

MC_CamTrack V5 (S7-1500, S7-1500T)................................................................................91 MC_CamTrack: Activate/deactivate cam track V5 (S7-1500, S7-1500T) ..............................91 MC_CamTrack: Function chart V5 (S7-1500, S7-1500T).......................................................94

6.6 6.6.1 6.6.2 6.6.3 6.6.4

Override response of Motion Control jobs V5 (S7-1500, S7-1500T)......................................95 Override response V5: Homing and motion jobs (S7-1500, S7-1500T) .................................95 Override response V5: Synchronous operation jobs (S7-1500, S7-1500T) ...........................97 Override response V5: Measuring input jobs (S7-1500, S7-1500T) ......................................98 Override response V5: Kinematics motion commands (S7-1500T) .......................................99

A Appendix (S7-1500, S7-1500T) ........................................................................................................... 101

A.1 A.1.1 A.1.2 A.1.3 A.1.4 A.1.5 A.1.6 A.1.7 A.1.8 A.1.9 A.1.10

Tags of the measuring input technology object (S7-1500, S7-1500T) .................................101 Legend (S7-1500, S7-1500T) ...............................................................................................101 Display data (measuring input) (S7-1500, S7-1500T) ..........................................................102 "Parameter" tag (measuring input) (S7-1500, S7-1500T) ....................................................103 "Interface" tag (measuring input) (S7-1500, S7-1500T) .......................................................103 "Units" tag (measuring input) (S7-1500, S7-1500T) .............................................................104 "MeasuredValues" tag (measuring input) (S7-1500, S7-1500T) ..........................................105 "StatusWord" tag (measuring input) (S7-1500, S7-1500T) ..................................................106 "ErrorWord" tag (measuring input) (S7-1500, S7-1500T).....................................................107 "ErrorDetail" tag (measuring input) (S7-1500, S7-1500T) ....................................................108 "WarningWord" tag (measuring input) (S7-1500, S7-1500T) ...............................................109

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

5

Table of contents

A.2 A.2.1 A.2.2 A.2.3 A.2.4 A.2.5 A.2.6 A.2.7 A.2.8 A.2.9

Tags of the output cam technology object (S7-1500, S7-1500T) ........................................ 110 Legend (S7-1500, S7-1500T) .............................................................................................. 110 Display data (output cam) (S7-1500, S7-1500T) ................................................................. 110 "Parameter" tag (output cam) (S7-1500, S7-1500T) ........................................................... 111 "Interface" tag (output cam) (S7-1500, S7-1500T) .............................................................. 111 "Units" tag (output cam) (S7-1500, S7-1500T) .................................................................... 112 "StatusWord" tag (output cam) (S7-1500, S7-1500T) ......................................................... 113 "ErrorWord" tag (output cam) (S7-1500, S7-1500T)............................................................ 114 "ErrorDetail" tag (output cam) (S7-1500, S7-1500T) ........................................................... 115 "WarningWord" tag (output cam) (S7-1500, S7-1500T) ...................................................... 116

A.3 A.3.1 A.3.2 A.3.3 A.3.4 A.3.5 A.3.6 A.3.7 A.3.8 A.3.9

Tags of the cam track technology object (S7-1500, S7-1500T) .......................................... 117 Legend (S7-1500, S7-1500T) .............................................................................................. 117 Display data (cam track) (S7-1500, S7-1500T) ................................................................... 118 "Parameter" tag (cam track) (S7-1500, S7-1500T).............................................................. 119 "Interface" tag (cam track) (S7-1500, S7-1500T) ................................................................ 120 "Units" tag (cam track) (S7-1500, S7-1500T) ...................................................................... 120 "StatusWord" tag (cam track) (S7-1500, S7-1500T)............................................................ 121 "ErrorWord" tag (cam track) (S7-1500, S7-1500T) .............................................................. 122 "ErrorDetail" tag (cam track) (S7-1500, S7-1500T) ............................................................. 123 "WarningWord" tag (cam track) (S7-1500, S7-1500T) ........................................................ 124

Index ...................................................................................................................................................125

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

6

Function Manual, 12/2019, A5E47009899-AA

Function manuals Documentation Guide (S7-1500, S7-1500T)

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

7

Function manuals Documentation Guide (S7-1500, S7-1500T)

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

8

Function Manual, 12/2019, A5E47009899-AA

Introduction (S7-1500, S7-1500T)

2

2.1

Interplay of the various documents (S7-1500, S7-1500T)
For a better overview, the documentation of the Motion Control functions is divided into the following documents:

Documentation

Description

S7-1500/S7-1500T Motion Control overview

This documentation describes the general Motion Control functions independent of technology objects.

Function manual "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens. com/cs/ww/en/view/109766459)

Using S7-1500/S7-1500T axis functions

This documentation describes the Motion Control functions for the following technology objects:

Function manual "S7-1500/

· Speed axis

S7-1500T Axis functions" (https://support.industry.siemens.

·

Positioning axis

com/cs/ww/en/view/109766462) · External encoder

Using S7-1500/S7-1500T measuring input and output cam functions
Function manual "S7-1500/ S7-1500T Measuring input and output cam functions" (https://support.industry.siemens. com/cs/ww/en/view/109766466)

This documentation describes the Motion Control functions for the following technology objects:
· Measuring input · Output cam · Cam track

Using S7-1500/S7-1500T synchronous operation functions
Function manual "S7-1500/ S7-1500T Synchronous operation functions" (https://support.industry.siemens. com/cs/ww/en/view/109766464)

This documentation describes the Motion Control functions for the following technology objects:
· Synchronous axis · Cam (S7-1500T) · Leading axis proxy (S7-1500T)

Using S7-1500T kinematics functions
Function manual "S7-1500T Kinematics functions" (https://support.industry.siemens. com/cs/ww/en/view/109766463)

This documentation describes the Motion Control functions for the following technology objects:
· Kinematics (S7-1500T)

Additional information
You can find an overview and important links to the topic "SIMATIC Motion Control" in the Siemens Industry Online Support under the entry ID 109751049 (https://support.industry.siemens.com/cs/ww/en/view/109751049).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

9

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

2.2

Functions (S7-1500, S7-1500T)

You execute the functions of the measuring input, output cam and cam track technology objects via the Motion Control instructions in your user program.

The following table shows the Motion Control instructions that are supported by the technology objects:

Motion Control instruction
"MC_Reset" Acknowledge alarms, restart technology objects "MC_MeasuringInput" Start measuring once "MC_MeasuringInputCyclic" Start cyclic measuring "MC_AbortMeasuringInput" Cancel active measuring job "MC_OutputCam" Activate/deactivate output cam "MC_CamTrack" Activate/deactivate cam track

Validity

S7-1500

S7-1500T

X

X

Technology object

Measuring

Output cam

input (Page 11) (Page 26)

X

X

Cam track (Page 41)
X

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

-

X

-

X

X

-

-

X

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

10

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T)

3

3.1

Measuring input technology object (S7-1500, S7-1500T)

The measuring input technology object acquires the actual position of an axis or external encoder at a signal change at the measuring input.

You can find an overview of the functions of the measuring input technology object in the "Functions (Page 10)" section.

The following figure shows the basic principle of operation of the measuring input technology object:

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

11

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

Measurement types
The following types of measurement can be performed:
 One-time measurement (Page 14)
Up to two measured values are acquired with edge accuracy with one measuring job. A one-time measuring job is started with "MC_MeasuringInput".
 Cyclic measuring (Page 16)
With cyclic measuring, up to two measured values are acquired with edge accuracy in each position control cycle.
A cyclic measuring job is started with "MC_MeasuringInputCyclic". The measurements are continued cyclically until they are ended per command.
The edges to be detected are selected when starting the measurement using Motion Control instruction "MC_MeasuringInput" or "MC_MeasuringInputCyclic".

Assignment

The measuring input technology object must always be assigned to another technology object whose position will be evaluated by the measuring input. The measuring input technology object can be assigned to the following technology objects:  Synchronous axis  Positioning axis  External encoder

Exactly one axis or one external encoder can be assigned to a measuring input technology object.
An axis or external encoder can be assigned multiple measuring input technology objects.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

12

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
Measured value determination
The position can be detected using support from the hardware in one of the following ways:
 Measurement using Timer DI
With measured value acquisition via time value, the time points of the signal changes are recorded precisely. The time stamps are then transferred to the controller and the associated actual positions are determined in the technology object.
Measurement using Timer DI requires isochronous mode.
 Measurement using SINAMICS (central probe)
With central measuring inputs, the time points of the signal changes are recorded precisely. The time stamps are then transferred to the controller via telegram 39x and the associated actual positions are determined in the technology object.
Measurements via a central measuring input are only possible for SINAMICS drives, see "Compatibility list". The maximum usable cycle time on the bus is limited, see "Timerelated boundary conditions (Page 21)".
You can find more information on the telegrams in the "PROFIdrive telegrams" section of the documentation "S7-1500/S7-1500T Axis functions (https://support.industry.siemens.com/cs/ww/en/view/109766462)".
 Measurement using PROFIdrive telegram (drive or external encoder)
With measurement using PROFIdrive telegram, the measurement input is connected to the drive device and measurement takes place directly in the drive. The position value is determined on a signal change at the measurement input. The drive or encoder module communicates the determined position value to the technology object via the PROFIdrive telegram.
With measurement using PROFIdrive telegram, only one measurement input at a time can be active on an actual value or encoder in the PROFIdrive telegram. A maximum of two measuring inputs can be configured on an actual value or encoder in the PROFIdrive telegram via PROFIdrive; see section "Automatic transfer of drive and encoder parameters in the device" of the "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462) documentation.
Measuring job
A measuring job is started using the Motion Control instruction "MC_MeasuringInput" (onetime measuring) or "MC_MeasuringInputCyclic" (cyclic measuring). Cyclic measuring is only available at selected measurement inputs. You can find an overview in the section Configuration - Hardware interface (Page 58). One-time measuring is always possible.
The resulting measured value is indicated at the respective output of the Motion Control instruction "MC_MeasuringInput" or "MC_MeasuringInputCyclic".
Use with SIMATIC S7-PLCSIM
The measuring input technology object cannot be used with SIMATIC S7-PLCSIM. The measuring input technology object and the measuring input jobs used in the user program can be loaded into SIMATIC S7-PLCSIM, but have no function. Measured values are not shown.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

13

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
Correction time
The time of the measurement can be corrected by setting a correction time (<TO>.Parameter.CorrectionTime) for the measuring input technology object. Corrections may be required for the following examples:  Times for mechanical displacement of the measuring input  Times for the generation of the measured signal before the input at the measurement
module  Filter times at measurement input The correction time is included in the calculation for all measuring input types of the measuring input technology object. Also note the time delay when measuring on a virtual axis, see section "Brief description of actual values" of the "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462) documentation.

3.1.1

Measuring (S7-1500, S7-1500T)

3.1.1.1

One-time measurement (S7-1500, S7-1500T)
With one-time measurement, up to two edges can be detected with one measuring job. The associated actual positions are signaled back in the function block and in the technology data block and can be further processed in the user program.

Measuring job

A measuring job is started using the Motion Control instruction "MC_MeasuringInput". The "<TO>.Status" tag in the technology data block changes to "WAITING_FOR_TRIGGER". The technology object activates the measurement when the selected edge is detected.
 The measurement occurs at the measurement input in the form of up to two system times. Based on the times, the associated position is determined and output, taking into consideration a correction time, if present.
 With direct position detection, the detected position value is supplied directly from the drive or encoder module to the technology object via the PROFIdrive telegram.
The measurement is then finished. An additional measurement must be restarted using Motion Control instruction "MC_MeasuringInput".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

14

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

Configured "Mode" parameter in Motion Control instruction "MC_MeasuringInput"

Output of Motion Control instruction "MC_MeasuringInput"

"MeasuredValue1"

"MeasuredValue2"

Measure positive edge only Measure negative edge only

Actual position at the time of the ­ edge

Measure the next two edges

Actual position at the time of the first edge

Actual position at the time of the second edge

Measure the next two edges starting with the positive edge

Actual position at the time of the positive edge

Actual position at the time of the negative edge

Measure the next two edges starting with the negative edge

Actual position at the time of the negative edge

Actual position at the time of the positive edge

The last detected values are set in the technology data block. If a new job is initiated with the function block, the outputs of the function block are initialized. The technology data block is not initialized. After detecting the first valid measuring cycle, the values in the technology data block and function block are consistent with one another.

The finished measuring job is indicated in the function block in "MC_MeasuringInput.DONE" = TRUE or in the technology data block in "<TO>.Status" = "TRIGGER_OCCURRED".

Temporal requirements for measuring jobs via "MC_MeasuringInput"
The hardware-related restrictions to measuring via the PROFIdrive telegram (drive or encoder) or measuring via SINAMICS (central probe) result in time requirements for the period until the measuring event can be recorded.
When measuring once via "MC_MeasuringInput" with "Mode" = 3 (measurement at both edges, beginning with the rising edge) or "Mode" = 4 (measurement at both edges, beginning with the falling edge), a minimum interval of several servo cycles is therefore required between the first edge to be measured and the previous edge, so that the first edge to be measured can be recorded.
You can find information on the temporal boundary conditions in the section Time-related boundary conditions (Page 21).

See also

Time-related boundary conditions (Page 21) MC_MeasuringInput: Start measuring once V5 (Page 76)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

15

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

3.1.1.2

Cyclic measuring (S7-1500, S7-1500T)
With cyclic measuring, up to two measuring events can be acquired by the system in each position control cycle of the technology object and the associated measuring positions can be displayed. The measurements are continued cyclically until they are ended per command.
The determined measured values are displayed and can be read by the user program.
Cyclic measuring requires the measured value to be determined using hardware support of the type "Measurement using Timer DI".
Measuring edges at which a measured value could not be determined are indicated in a lost edge counter in the technology data block as well as in function block "MC_MeasuringInputCyclic".

Measuring job

A cyclic measuring job is started with Motion Control instruction "MC_MeasuringInputCyclic" and the measuring job is issued to the corresponding measuring hardware. Depending on the functionality of the hardware, up to two measuring events and thus measuring times can be recorded with edge reference per position control cycle and then forwarded to the technology object. The technology object determines the measuring positions for the measuring times taking into consideration any specified correction times.
The technology data block tag "<TO>.Status" changes from "INACTIVE" to "WAITING_FOR_TRIGGER" and remains in this status as long as additional events are awaited.
The mode set in the Motion Control instruction specifies the edges for which the measured values are to be acquired. At most, the following edges can be detected in each position control cycle:
 Two positive edges when detecting positive edges
 Two negative edges when detecting negative edges
 One positive edge and one negative edge when detecting positive and negative edges

Measured values and counters
With a positive edge at the input "MC_MeasuringInputCyclic.Execute", outputs "MeasuredValue1Counter" and "MeasuredValue2Counter" are reset to "0". As a result, new events can be tracked immediately and new measured value entries can be detected.
All measuring event occurrences of the measuring job are incremented by "1" in the corresponding event counters "<TO>.MeasuredValues.MeasuredValue1Counter" and "<TO>.MeasuredValues.MeasuredValue2Counter" of the technology data block.
The acquired measured values are continuously captured in the technology data block irrespective of individual jobs and the values are only reset to "0" at power-up or restart of the technology object.
After a completed measurement, the measured values are output in the function block. The counters of the function block are set to "0" at a new measuring job. The measured value output in the technology data block always indicates the last acquired measured value.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

16

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
Lost edge counter (LEC)
If more than two edges to be detected occur within one position control cycle, a measured value cannot be evaluated for the other edges to be detected. The number of lost edges is recorded in the LEC.
The lost edges that are recorded in the LEC depend on the mode set in the Motion Control instruction. For example, if only positive edges are to be measured, the LEC records only the non-measured positive edges.
A maximum of seven lost edges can be counted and displayed in the LEC.
The number of lost edges is indicated in the function block and in the technology data block in:
 "LostEdgeCounter1"
Lost cleared edges from the position control cycle in which "MeasuredValue1" was acquired.
 The displayed value in "LostEdgeCounter1" is updated when counter "MeasuredValueCounter1" is incremented.
 "LostEdgeCounter2"
Lost cleared edges from the position control cycle in which "MeasuredValue2" was acquired.
 The displayed value in "LostEdgeCounter2" is updated when counter "MeasuredValueCounter2" is incremented.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

17

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

Display of measurement results when using cyclic measuring

Edges selected in the command

Display per position control cycle

Detect positive edges only
"MC_MeasuringInputCyclic.Mode" = 0
Detect negative edges only
"MC_MeasuringInputCyclic.Mode" = 1

"MeasuredValue1"
Actual position at the time of the first positive edge
Actual position at the time of the first negative edge

"MeasuredValue2"
Actual position at the time of the second positive edge
Actual position at the time of the second negative edge

"LostEdgeCounter1" "LostEdgeCounter2"
Number of positive or negative edges in excess of two in the position control cycle of acquisition of "MeasuredValue1" and "MeasuredValue2".
The following applies here:
· If a "MeasuredValue1" and a "MeasuredValue2" are acquired, the number of acquired and lost edges indicated in "LostEdgeCounter1" and "LostEdgeCounter2" are the same.

· If only one "MeasuredValue1" is acquired, the "LostEdgeCounter1" is reset to "0". The value in "LostEdgeCounter2" remains changed.

Detect positive and negative edges
"MC_MeasuringInputCyclic.Mode" = 2

Actual position at the time of the first positive edge in the position control cycle

Actual position at the time of the first negative edge in the position control cycle

Number of edges in excess of two in the position control cycle of acquisition of "MeasuredValue1" and "MeasuredValue2".
The following applies here:
· If a "MeasuredValue1" and a "MeasuredValue2" are acquired, the number of acquired and lost edges indicated in "LostEdgeCounter1" and "LostEdgeCounter2" are the same.

· If only one "MeasuredValue1" is acquired, the "LostEdgeCounter1" is reset to "0". The value in "LostEdgeCounter2" remains changed.

· If only one "MeasuredValue2" is acquired, the "LostEdgeCounter2" is reset to "0". The value in "LostEdgeCounter1" remains changed.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

18

Function Manual, 12/2019, A5E47009899-AA

Examples

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
The following figures show examples of divergence of "MeasuredValue1Counter" and "MeasuredValue2Counter" as a result of lost edges. Example: Measurement at positive edges (Mode = 0)

Example: Measurement at negative edges (Mode = 1)

Example: Measurement at positive and negative edges (Mode = 2)

See also

MC_MeasuringInputCyclic: Start cyclic measuring V5 (Page 80)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

19

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

3.1.2

Measuring with measuring range (S7-1500, S7-1500T)
A measuring job can be activated directly or restricted to a defined measuring range.
The following graphic shows an example of measuring with measuring range in "Mode" = 0 (measurement of next positive edge):

Only measured values within the measuring range are displayed for the technology object.
 If no measuring edge within the measuring range is detected during a one-time measurement, the measuring job is canceled and an alarm is triggered.
 Cyclic measuring remains active even if no measuring edge within the measuring range was detected.
For axes without modulo function, it is immaterial in which order the start and end positions are specified. If the start position is greater than the end position, the two values are interchanged in the application. If the start position for an axis with modulo function is greater than the end position, the measuring range is extended from the start position past the modulo transition of the axis to the end position.

The measuring range positions are specified in the Motion Control instruction "MC_MeasuringInput" or "MC_MeasuringInputCyclic".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

20

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
Activation time for the measuring range
The measuring function must be active at the measurement input when the start of the measuring range is reached. To compensate for the communication time for activation in the Timer DI or drive, for example, the activation of the measurement in the technology object begins earlier then the measuring range start by the amount of the activation time.
The activation time for measuring with measuring range is divided up as follows:
 The activation time allocation defined and active on the system side is indicated in the "<TO>.Parameter.MeasuringRangeActivationTime" tag.
 An additional activation time can also be set by the user with the "<TO>.Parameter.MeasuringRangeAdditionalActivationTime" tag.

3.1.3

Time-related boundary conditions (S7-1500, S7-1500T)
Depending on the hardware configuration and selection of edges to be detected, different system-inherent requirements apply to the time allowed after calling the Motion Control instruction "MC_MeasuringInput" or "MC_MeasuringInputCyclic" until a measurement occurs and the results are displayed.
The following times must be distinguished here:
 Time until the measuring event can be captured
 Time until the measurement result is displayed or the measurement is finished.
The times calculated taking into account the current settings are indicated in configuration window "Extended parameters" of a measuring input.

Measurement using Timer DI/measurement using SINAMICS (central probe)
 Time from output of an "MC_MeasuringInput" job until measuring event detection becomes effective: ­ "MeasuringRangeActivationTime": 2 x Tservo
 Time after measuring event until measured value is available in the controller: ­ One-time measurement: 2 x Tservo + TSend ­ Cyclic measuring: Tservo + TSend
 Activation time for a measurement with measuring range: ­ "MeasuringRangeActivationTime" + "MeasuringRangeAdditionalActivationTime"

Note Maximum bus clock cycle
With the use of SINAMICS measuring inputs, the maximum bus clock cycle TSend can be up to 8 ms.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

21

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)
Measurement using PROFIdrive telegram (drive or external encoder)
 "MeasuringRangeActivationTime": ­ TSend and Tservo equal to: 3 x Tservo ­ TSend and Tservo not equal to: 2 x Tservo
 Time from output of an "MC_MeasuringInput" job until measuring event detection becomes effective: ­ Measuring a positive/negative edge or two edges: "MeasuringRangeActivationTime" + 2 x Tservo ­ Measuring two dedicated edges: "MeasuringRangeActivationTime" + 3 x Tservo
 Time after measuring event until measured value is available in the controller: ­ Measuring an edge: 7 x Tservo ­ Measuring two edges: 13 x Tservo
 Activation time for a measurement with measuring range: ­ Measuring a positive/negative edge or two edges: "MeasuringRangeActivationTime" + "MeasuringRangeAdditionalActivationTime" + 2 x Tservo ­ Measuring two dedicated edges: "MeasuringRangeActivationTime" + "MeasuringRangeAdditionalActivationTime" + 3 x Tservo
Definition of tags
 Tservo = Call interval of the technology object in the servo cycle clock [ms]  TSend = Send clock [ms]  "MeasuringRangeActivationTime" = See section Measuring with measuring range
(Page 20) To prevent asynchronous processing from overwriting a measured value that was just determined, a new one-time measuring job cannot be started until the active measurement has concluded. The sum of the activation time and the time until display or conclusion must be taken into account for this. In the case of cyclic measuring, evaluation or temporary storage of the measurement results in the synchronous MC-PreInterpolator [OB68] is recommended from the user perspective.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

22

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

3.1.4

Tags: Measuring input technology object (S7-1500, S7-1500T)
The following technology object tags are relevant for measuring:

Status indicator Tag <TO>.Status
<TO>.InputState

Description

Status of the measuring input function

0

Measurement is not active ("INACTIVE")

1

The measuring input is waiting for a measuring event

("WAITING_FOR_TRIGGER")

2

The measuring input has acquired one or more measured

values ("TRIGGER_OCCURRED").

3

Error during the measurement ("MEASURING_ERROR")

Status of measuring input

Parameters Tag <TO>.Parameter.MeasuringInputType <TO>.Parameter.PROFIdriveProbeNumber
<TO>.Parameter.MeasuringRangeActivationTime <TO>.Parameter.MeasuringRangeAdditionalActivationTime <TO>.Parameter.CorrectionTime

Description Measuring input type Number of the measuring input to be used for a measurement via PROFIdrive telegram System-defined activation time allocation [ms]
Additional user-defined activation time allocation [ms]
User-defined correction time for the measurement result [ms]

Interface Tag <TO>.Interface.Address

Description I/O address for the digital measuring input

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

23

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

Units Tag <TO>.Units.LengthUnit <TO>.Units.TimeUnit

Description Unit of the length data Unit of the time data

MeasuredValues Tag <TO>.MeasuredValues.MeasuredValue1 <TO>.MeasuredValues.MeasuredValue2
<TO>.MeasuredValues. MeasuredValue1Counter <TO>.MeasuredValues.MeasuredValue 2Counter <TO>.MeasuredValues.LostEdgeCounter1
<TO>.MeasuredValues.LostEdgeCounter2

Description First measured value Second measured value (when measuring two or more edges in one position control cycle) Count value for the first measured value
Count value for the second measured value
Lost edges in the cycle clock of the first measured value acquisition (zero in the case of one-time measurement) Lost edges in the cycle clock of the second measured value acquisition (zero in the case of one-time measurement)

StatusWord Tag <TO>.StatusWord.X0 (Control) <TO>.StatusWord.X1 (Error) <TO>.StatusWord.X2 (RestartActive)
<TO>.StatusWord.X3 (OnlineStartValuesChanged) <TO>.StatusWord.X5 (CommunicationOk)

Description
The technology object is in operation.
An error occurred at the technology object.
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart.
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object.
The measuring input is synchronized with the measuring module and can be used.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

24

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.1 Measuring input technology object (S7-1500, S7-1500T)

ErrorWord Tag <TO>.ErrorWord.X0 (SystemFault) <TO>.ErrorWord.X1 (ConfigFault)
<TO>.ErrorWord.X2 (UserFault) <TO>.ErrorWord.X3 (CommandNotAccepted)
<TO>.ErrorWord.X13 (PeripheralError)

Description
A system-internal error has occurred. Configuration error One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data were incorrectly modified during runtime of the user program. Error in user program at a Motion Control instruction or its use Command cannot be executed A Motion Control instruction cannot be executed because necessary requirements have not been met. Error accessing a logical address

ErrorDetail Tag <TO>.ErrorDetail.Number <TO>.ErrorDetail.Reaction

Description

Alarm number

Effective alarm reaction

0

No reaction

6

End measuring input processing

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

25

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

3.2

Output cam technology object (S7-1500, S7-1500T)

The output cam technology object generates switching signals depending on the position of an axis or external encoder. The switching states can be evaluated in the user program and fed to digital outputs.

You can find an overview of the functions of the output cam technology object in the "Functions (Page 10)" section.

The following figure shows the basic operating principle of the output cam technology object:

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

26

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

Output cam types
The following output cam types can be used:
 Distance output cam (Page 29)
Distance output cams switch on between the start position and end position. Outside this range, the distance output cam is switched off.
 Time-based output cam (Page 31)
Time-based output cams switch on for a defined time period when the start position is reached.

Assignment

The output cam technology object must always be assigned to another technology object whose position will be evaluated. The output cam technology object can be assigned to the following technology objects:  Synchronous axis  Positioning axis  External encoder

Exactly one axis or one external encoder can be assigned to an output cam. Multiple output cams can be assigned to one axis or external encoder.
Output cam calculation and output cam output
The output cam technology object calculates the exact switching time, thereby ensuring exact adherence to the switching positions. The switching time is calculated two position control cycles before the output.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

27

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
The following output options are available for the digital output cam output:
 Timer-DQ
Digital output with high degree of accuracy and reproducibility in the microsecond range on time-based IO modules basis. In the case of signal output via time value, the times of the signal changes are determined by the technology object. The time stamps are then transferred to the hardware of the digital output and the edges are output with high precision.
Output via Timer DQ requires isochronous mode.
 Digital output module
Digital output with switching accuracy depending on the output cycle of the I/O used
When output is deactivated, the output cam status is not output at the hardware output. The output cam status can be used internally in the user program by evaluating the relevant "<TO>.CamOutput" tag.
Inverted output
In the case of inverted output, the range in which the output cam output is switched on and the range in which it is switched off are swapped.
The inverted output is set in Motion Control instruction "MC_OutputCam" and is active when the instruction is enabled.
The inverted output can be used for both distance output cams and time-based output cams.
Output of multiple output cams to one output
The output of multiple output cams to one output is performed with either an AND or OR logic operation of the output cam signals to the output.

Display of the switching state The switching state of the output cam is displayed in the associated technology data block in "<TO>.CamOutput".
Position reference
The switching points of the output cams can be referenced to the following positions, depending on the interconnected technology object.  Actual position of a synchronous axis/positioning axis  Position setpoint of a synchronous axis/positioning axis  Position of an external encoder

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

28

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
Homing the interconnected technology object A change to the position of an axis or external encoder using Motion Control instruction "MC_Home" is regarded as a sudden position change.  Distance output cams are either skipped or correspondingly output.  Time-based output cams are skipped. A time-based output cam is switched on only when
the start position is overtraveled and remains switched on for the switch-on duration.  Switched time-based output cams are not canceled by a homing operation. Trace recording of output cam with reference to setpoint position The CPU calculates the output time of the output cam in such a way that the output cam is switched when the position setpoint has been transferred from the PLC to the drive. The communication time is not considered in the trace.

3.2.1

Distance output cam (S7-1500, S7-1500T)

Switch-on range
The switch-on range of distance output cams is basically defined by the start position and end position.
Start position smaller than end position
When the start position is less than the end position, the switch-on range begins with the start position and ends with the end position.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

29

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
Start position greater than end position When the start position is greater than the end position, there are two switch-on ranges as follows:  Switch-on range beginning with the start position and ending with the positive range end
(e.g. positive software limit switch, end of modulo range)  Switch-on range beginning with the negative range end (e.g. negative software limit
switch, start of modulo range) and ending with the end position
Mapping to an axis with modulo function
With active modulo function of the interconnected technology object, the start and end positions of the output cam are automatically mapped to values within the modulo range. Example  Modulo range = 0° to 50°  Output cam start position = 80°  Output cam end position = 220°  The specified start and end position of the output cam are outside the modulo range. The values are therefore mapped onto the modulo range. The start position is at 30° (80° mod 50° = 30°) and the end position is at 20° (220° mod 50° = 20°). The output cam remains switched on over two consecutive modulo lengths and switches off at 20° in every second modulo length.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

30

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
Switching characteristics
After activation, a distance output cam switches on in the following cases:
 The position of the interconnected technology object reaches the start or end position in the activation direction configured in Motion Control instruction "MC_OutputCam".
 The position of the interconnected technology object is moved into the switch-on range of the output cam (e.g. during homing) in the activation direction configured in Motion Control instruction "MC_OutputCam". If both activation directions are enabled in Motion Control instruction "MC_OutputCam", the output cam switches on even when the interconnected technology object is at a standstill.
 The output cam is switched on permanently using Motion Control instruction "MC_OutputCam" with "Mode" = 3.
An active distance output cam switches off in the following cases:
 The position is outside the switch-on range of the output cam.
 The position value is moved outside the switch-on range of the output cam.
 Motion Control instruction "MC_OutputCam" is set to "Enable" = FALSE.
 The motion direction of the interconnected technology object is reversed and no longer agrees with the enabled activation direction.

3.2.2

Time-based output cam (S7-1500, S7-1500T)
A time-based output cam switches on at the start position and remains set for the on-load factor.

Mapping to an axis with modulo function In the case of active modulo function of the interconnected technology object, the start position of the output cam is automatically mapped to the value within the modulo range. Example  Modulo range = 0° to 50°  Output cam start positions:
­ Output cam 1 = 20° ­ Output cam 2 = 30° ­ Output cam 3 = 80°

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

31

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
 The time-based output cam 1 switches on at 20°, the time-based output cam 2 switches on at 30°. The specified start position of time-based output cam 3 is outside the modulo range. The value for the start position is therefore mapped onto the modulo range so that the time-based output cam 3 switches on at 30°. All three output cams remain active the set onload factor in each case.

Switching characteristics
A time-based output cam switches on in the following cases:  The start position has been reached and the motion direction of the interconnected
technology object corresponds to the effective direction enabled by the instruction.
Note · If the start position is reached again while an output cam is switched on, the on-load
factor is not re-triggered. · If due to the Motion Control instruction "MC_Home", the position value of the
interconnected technology object is placed directly on or behind the start position of the output cam during the motion, the output cam does not switch on.
A time-based output cam switches off in the following cases:  The configured on-load factor has expired.  Motion Control instruction "MC_OutputCam" is set to "Enable" = FALSE.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

32

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

3.2.3

Activation direction of cam (S7-1500, S7-1500T)
An output cam can be switched depending on the motion direction of the interconnected technology object. An output of the output cam in positive or negative motion direction or independent of direction is possible.
The effective direction is set in "MC_OutputCam.Direction".
The following examples show the behavior of the output cam as a function of the effective direction setting.

Example of "positive" effective direction ("Direction" = 1)

Distance output cam
The output cam switches on when the switch-on range is reached in the positive direction. At
a direction reversal , the output cam switches off.
If the position value is moved into the switch-on range of the output cam, the cam switches on when there is positive motion direction of the interconnected technology object. The output cam remains switched off when the interconnected technology object is at a standstill.
Time-based output cam
The output cam switches on when the start position is reached in the positive direction. At a
direction reversal, the output cam remains switched on for the specified on-load factor .
If during the homing motion, the position value of the interconnected technology object is directly on or behind the start position of the output cam, the output cam does not switch on.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

33

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T) Example of "negative" effective direction ("Direction" = 2)
Distance output cam The output cam switches on when the switch-on range is reached in the negative direction.
At a direction reversal , the output cam switches off.
If the position value is moved into the switch-on range of the output cam, the output cam switches on when there is negative motion direction of the interconnected technology object. The output cam remains switched off when the interconnected technology object is at a standstill. Time-based output cam The output cam switches on when the start position is reached in the negative direction. At a
direction reversal, the output cam remains switched on for the specified on-load factor .
If during the homing motion, the position value of the interconnected technology object is directly on or behind the start position of the output cam, the output cam does not switch on.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

34

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
Example of "both directions" effective direction ("Direction" = 3)

Distance output cam
The output cam switches on when the position of the interconnected technology object is within the switch-on range.
If the position value of the interconnected technology object is moved into the switch-on range of the output cam, the cam switches on even when the interconnected technology object is at a standstill.
Time-based output cam
The output cam switches on when the start position is reached. At a direction reversal, the
output cam remains switched on for the specified on-load factor .
If during the homing motion, the position value of the interconnected technology object is directly on or behind the start position of the output cam, the output cam does not switch on.

3.2.4

Hysteresis (S7-1500, S7-1500T)
Possible variations in the actual position/position setpoint can result in unwanted switch-on and switch-off of cams.
Minimal changes of the actual value of an axis in standstill can result in the switching on or off of an actual value output cam with preset positive or negative effective direction. Even minimal changes of the setpoints of a switched-off axis in follow-up mode can result in switch-on or switch-off of an actual value output cam with specified positive or negative effective direction. Such unwanted switching states can be prevented by configuring a hysteresis (> 0.0). The configuration of a hysteresis value (> 0.0) is recommended in particular with reference to the actual position.
The hysteresis is a position tolerance within which the position values may vary without changing the switching state of the output cam. Changes of direction detected within the hysteresis are ignored.
The hysteresis is set for the technology object in "<TO>.Parameter.Hysteresis".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

35

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

Behavior

 The hysteresis is activated at a direction reversal.
 The following applies within the hysteresis:
­ The switching state of distance output cams is not changed.
­ The motion direction is not determined again.
­ If the start position of a time-based output cam is within the hysteresis, the time-based output cam is switched on when leaving the hysteresis with the corresponding effective direction.
­ The on-load factor of time-based output cams remains unchanged.
 After the hysteresis range is exited, distance output cams are set according to the output cam settings.

 Actual position  Effective position  Hysteresis range
The following examples show the effects of the hysteresis on the switching behavior of output cams with positive activation direction.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

36

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)
 Direction reversal without hysteresis effect  Hysteresis in effect  The switch-on position of the distance output cam is influenced according to the direction reversal
and hysteresis.
 The start position of the time-based output cam is located within the hysteresis. The time-based
output cam is switched on when leaving the hysteresis with the corresponding effective direction.
 Switch-on duration Hysteresis range
The maximum size of the hysteresis range in the system is as follows: for an axis with modulo function, one quarter of the modulo range; for an axis without modulo function, one quarter of the operating range.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

37

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

3.2.5

Compensation of actuator switching times (S7-1500, S7-1500T)
Switching times of the output and the connected actuator (e.g. valve) can be compensated for using the activation time or deactivation time of the output cam technology object.
The activation time is specified as the lead time for the switch-on edge, and the deactivation time as the lead time for the switch-off edge.

The activation time is set in the technology object via the "<TO>.Parameter.OnCompensation" tag.
The deactivation time is set at the technology object via the "<TO>.Parameter.OffCompensation" tag.
Note · The following must be met for the times:
On-load factor > deactivation time - activation time (The switch-on duration for distance output cams is determined by the switching positions and the current velocity.) · If the output cam has been switched taking the lead times into consideration, this action has taken place from the system perspective and will not be restarted in response to any subsequent variation in the actual velocity. · System-dependent runtimes are automatically taken into consideration when output by TM Timer DIDQ is used. When the output with a digital output module is used, system-dependent runtimes are not taken into consideration and must be set as correction times in the activation time or deactivation time.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

38

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

3.2.6

Tags: Output cam technology object (S7-1500, S7-1500T)
The following technology object tags are relevant:

Status indicator Tag <TO>.CamOutput

Description The output cam is switched.

Parameters Tag <TO>.Parameter.OutputCamType
<TO>.Parameter.PositionType
<TO>.ParameterOnCompensation <TO>.Parameter.OffCompensation <TO>.Parameter.Hysteresis

Description

Output cam type

0

Distance output cam

1

Time-based output cam

Position reference

0

Position setpoint

1

Actual position

Activation time (lead time for the switch-on edge)

Deactivation time (lead time for the switch-off edge)

Hysteresis value

Interface Tag <TO>.Interface.EnableOutput
<TO>.Interface.Address <TO>.Interface.LogicOperation

Description

Activation of the output cam output

FALSE No output

TRUE

Output

I/O address of the output cam

Logical operation of the output cam signals at the output

0

OR logic operation

1

AND logic operation

Units Tag <TO>.Units.LengthUnit <TO>.Units.TimeUnit

Description Unit of the length data Unit of the time data

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

39

Basics (S7-1500, S7-1500T) 3.2 Output cam technology object (S7-1500, S7-1500T)

StatusWord Tag <TO>.StatusWord.X0 (Control) <TO>.StatusWord.X1 (Error) <TO>.StatusWord.X2 (RestartActive)
<TO>.StatusWord.X3 (OnlineStartValuesChanged) <TO>.StatusWord.X4 (OutputInverted) <TO>.StatusWord.X5 (CommunicationOk)

Description
The technology object is in operation.
An error occurred at the technology object.
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart.
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object.
The output cam output is inverted.
The output cam is synchronized with the output module and available for use.

ErrorWord Tag <TO>.ErrorWord.X0 (SystemFault) <TO>.ErrorWord.X1 (ConfigFault)
<TO>.ErrorWord.X2 (UserFault) <TO>.ErrorWord.X3 (CommandNotAccepted)
<TO>.ErrorWord.X13 (PeripheralError)

Description
A system-internal error has occurred. Configuration error One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. Error in user program at a Motion Control instruction or its use Command cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Error accessing a logical address

ErrorDetail Tag <TO>.ErrorDetail.Number
<TO>.ErrorDetail.Reaction

Description

Alarm number

You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Effective alarm reaction

0

No reaction

6

Output cam processing is complete.

You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

40

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

3.3

Cam track technology object (S7-1500, S7-1500T)

The cam track technology object generates a switching signal sequence dependent on the position of an axis or external encoder. A cam track can consist of up to 32 individual output cams and be output to one output. The switching states can be evaluated in the user program or fed to digital outputs.

You can find an overview of the functions of the cam track technology object in the "Functions (Page 10)" section.

The following figure shows the basic principle of operation of the cam track technology object:

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

41

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Definition of cam track
A cam track consists of up to 32 individual output cams that are specified within an adjustable track length.
 Start position  End position  Cam track length
The output cam positions are defined relative to the cam track. The start of the cam track is always 0.0. The output cam positions on the cam track are thus always positive. When the cam track is processed, the output cams with start position within the track length are taken into consideration. The output cams of the cam track can be set as distance output cams or time-based output cams, whereby only one of the two output cam types can be used in a cam track. If the end of a cam track is crossed, connected output cams behave as follows within the cam track:  Time-based output cams remain switched on for the set on-load factor.  Distance output cams whose end position lies outside the cam track are switched off
when the cam track is left. Cams whose start and end positions lie outside the cam track length are ignored. They become active only if the cam track length is increased so that at least the respective start position of an output cam is within the new track length.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

42

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

Assignment

The cam track technology object must always be assigned to another technology object whose position is evaluated. The cam track technology object can be assigned to the following technology objects:  Synchronous axis  Positioning axis  External encoder

Exactly one axis or one external encoder can be assigned to a cam track. Multiple cam tracks can be assigned to one axis or external encoder.
Position reference
The switching points of the output cams of a cam track can be referenced to the following positions, depending on the interconnected technology object.  Actual position of a synchronous axis/positioning axis  Position setpoint of a synchronous axis/positioning axis  Position of an external encoder

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

43

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Mapping of the cam track to the position of the technology object
The start of the cam track is placed at the specified reference position of the interconnected technology object. Thus, the switching positions result from the cam track positions mapped onto the interconnected technology object starting from the reference position. The cam track is continued in both directions of the interconnected technology object. The setting for the reference position can be either positive or negative. Example  Axis range = -1000 mm to +1000 mm  Desired switching points of the output cam with reference to axis position:
­ Start position = -200 mm ­ End position = -100 mm  Cam track length = 2000 mm  Definition of output cam on the track: ­ Start position = 800 mm ­ End position = 900 mm

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

44

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Processing of a cam track
The processing of a cam track occurs cyclically.
The cam track is mapped onto the position of the interconnected technology object starting from the reference position and is continued cyclically in both directions.
Output of a cam track
The following output options are available for the digital cam track output:  Timer-DQ
Digital output with high degree of accuracy and reproducibility in the microsecond range on time-based IO modules basis. In the case of signal output via time value, the times of the signal changes are determined by the technology object. The time stamps are then transferred to the hardware of the digital output and the edges are output with high precision. Output via Timer DQ requires isochronous mode.  Digital output module Digital output with switching accuracy depending on the output cycle of the I/O used A maximum of two edges (via Timer DQ, positive and negative) or one edge (via digital output module, positive or negative) can be output per position control cycle. If multiple switch-on edges or switch-off edges are transmitted in one position control cycle clock, the last written values in each case are valid. Masking of individual output cams of a cam track In order for output cams to be processed, they must be configured as valid in the technology data block with "<TO>.Parameter.Cam[1..32].Existent" = TRUE. In addition, output cams of a cam track configured as valid can be defined as valid in the user program using bit masking ("<TO>.Parameter.CamMasking"). In the default setting, all valid output cams are enabled ("<TO>.Parameter.CamMasking" = 0xFFFFFFFF). The cam track itself is activated/deactivated using the Motion Control instruction "MC_CamTrack".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

45

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

3.3.1

Modulo function (S7-1500, S7-1500T)

Track length and mapping to an axis or encoder with modulo function
When a cam track is mapped onto an axis with modulo function, a reference position specified outside the modulo range is mapped within the modulo range.
The track length can be less than or greater than the modulo length of the axis. In order for the cam track to be mapped without offset in the modulo range and to prevent unwanted overrides, an integer ratio of modulo length to track length, and vice versa, is required.

Example Mapping without offset

Example Mapping with offset

 Axis with modulo length 360°

 Axis with modulo length 360°

 Cam track with track length 120°

 Cam track with track length 160°

 Ratio = 360° / 120° = 3

 Ratio = 360° / 160° = 2.25

The cam track is output 3 times on a modulo length.

The cam track is output 2.25 times on the first modulo length and continued correspondingly in the other modulo lengths.

During cyclic processing of the cam track, the continued reference position of the current cam track is displayed in the "<TO>.MatchPosition" tag. The continued reference position is independent of direction and always the position of the left boundary of the cam track. The unique detection and output of the position is only possible when the assigned technology object is in motion. The distance to the current reference position of the current cam track (<TO>.MatchPosition) is displayed in the "<TO>.TrackPosition" tag.

When the cam track is enabled by a "MC_CamTrack" job, the position of the cam track (<TO_CamTrack>.MatchPosition) is set as if the current position had been reached by a motion in the positive direction starting from the reference position (<TO_CamTrack>.ReferencePosition).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

46

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Homing of an axis or an encoder without modulo function
A change to the position of an axis or external encoder using Motion Control instruction "MC_Home" is regarded as a sudden position change. An enabled cam track is referenced to the changed position and processed further from there.  Homing also has an effect on the current position of the cam track (<TO>.TrackPosition).
The position is formed again as quickly as possible due to the offset.  Distance output cams are either skipped or correspondingly output.  Time-based output cams are skipped. A time-based output cam is switched on only when
the start position is overtraveled and remains switched on for the switch-on duration.  Switched time-based output cams are not canceled by a homing operation. Recommendation: Disable the cam track before or during homing.
Homing of an axis or an encoder with modulo function
 Homing also has an effect on the current position of the cam track (<TO>.TrackPosition). The homing of the assigned technology object influences the position of the subsequently active cam track on a direction-dependent basis. This is dependent on the position difference, the difference between the new position minus the original position. If the position difference is negative, you add the modulo length (<TO_Axis/TO_Encoder>.Modulo.Length). If this position difference is less than or equal to half the modulo length, the new position of the cam track (<TO_CamTrack>.MatchPosition) is set as if the new position had been reached by a motion in the positive direction starting from the original position. If this position difference is greater than half the modulo length, the new position of the cam track (<TO_CamTrack>.MatchPosition) is set as if the new position had been reached by a motion in the negative direction starting from the original position.
 Distance output cams are either skipped or correspondingly output.  Time-based output cams are skipped. A time-based output cam is switched on only when
the start position is overtraveled and remains switched on for the switch-on duration.  Switched time-based output cams are not canceled by a homing operation. Recommendation: Disable the cam track before or during homing.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

47

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

3.3.2

Effective direction (S7-1500, S7-1500T)
The cam track is always active for both directions of the position of the interconnected technology object.

Output of a cam track with distance output cams
Distance output cams are switched when the switch-on range is overtraveled.
The following graphic shows the execution of a cam track with distance output cam depending on the motion direction of the axis.

With positive motion direction, the output cams of the cam track are output in the order
Output Cam N1, Output Cam N2, Output Cam N3. In the case of negative motion direction,
the output cams of the cam track are output in the order Output Cam N3, Output Cam N2,
Output Cam N1. The distance output cams switch on at  and switch off at .

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

48

Function Manual, 12/2019, A5E47009899-AA

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T) Output of a cam track with time-based output cams The time-based output cams are switched when the start position is crossed. The following graphic shows the execution of a cam track with time-based output cam depending on the motion direction of the axis.
With positive motion direction, the output cams of the cam track are output in the order Output Cam N1, Output Cam N2, Output Cam N3. In the case of negative motion direction, the output cams of the cam track are output in the order Output Cam N3, Output Cam N2,
Output Cam N1. The time-based output cams switch on at  and remain switched on for the set switch-on duration .

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

49

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

3.3.3

Changing the cam track data during operation (S7-1500, S7-1500T)
The data of a cam track and the parameters of the associated Motion Control instruction "MC_CamTrack" can be changed while track processing is enabled. The active Motion Control instruction "MC_CamTrack" is not aborted. The modified parameters, however, only take effect at the next call of the Motion Control instruction "MC_CamTrack". The following parameters can be changed during operation and are in effect after another call of Motion Control instruction "MC_CamTrack".  Cam track data in technology data block
­ Reference position (<TO>.Parameter.ReferencePosition) ­ Track length (<TO>.Parameter.CamTrackLength) ­ Bit masking of individual output cams (<TO>.Parameter.CamMasking) ­ Activation time (<TO>.Parameter.OnCompensation) ­ Deactivation time (<TO>.Parameter.OffCompensation) ­ Hysteresis value (<TO>.Parameter.Hysteresis) ­ Output cam data (<TO>.Parameter.Cam[1..32])  Parameters in the function block ­ Enable (MC_CamTrack.Enable) ­ Mode (MC_CamTrack.Mode) ­ Inverted output (MC_CamTrack.InvertOutput) Note the different activation behavior (Page 51) when changing the cam track data.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

50

Function Manual, 12/2019, A5E47009899-AA

3.3.4

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Activation behavior (S7-1500, S7-1500T)
A cam track is activated by the call of Motion Control instruction "MC_CamTrack" with "Enable" = TRUE. A distinction must be made here between:
 First-time activation of the cam track
 Call after a change of the cam track data during active cam track processing
The difference relates to how the cam track data is applied. Depending on the set mode ("MC_CamTrack.Mode"), the configuration (cam track data, data in the function block) is applied at different times.
 First-time switch-on of a cam track
Calling the Motion Control instruction "MC_CamTrack" with "Enable" = TRUE activates the cam track immediately ("<TO>.Status" changes to 1) and configured cam track data takes effect immediately. This behavior is the same when "MC_CamTrack.Mode" = 0 and "MC_CamTrack.Mode" = 1.
 Change of cam track data of an already activated cam track ("<TO>.Status" = 1)
­ With the call of Motion Control instruction "MC_CamTrack" with "Enable" = TRUE and "Mode" = 0, the modified cam track data takes effect immediately.
Previously activated distance output cams are aborted if their track signals are not still set due to the changed cam track data. Previously activated time-based output cams are always aborted.
­ With the call of Motion Control instruction "MC_CamTrack" with "Enable" = TRUE and "Mode" = 1, the cam track continues to be output with the prior configuration up to the cam track end. Modified cam track data takes effect at the end of the current track cycle.
If you change a cam track with "MC_CamTrack.Mode" = 1 during runtime of the user program, keep in mind the lead time of the cam track as reserve for the first output cam. Define the first output cam position in the cam track only after the following position:
Position of first output cam > velocity of axis x lead time of the cam track (<TO>.Parameter.OnCompensation)
Also keep in mind the internal system time for output cam calculation, even if you set the lead time 0.0.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

51

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
Changing cam track data when modulo length is not a multiple of the track length
For the switching times to be set correctly, we recommend the following procedure for changes:
 Enter changes as soon as possible after start of a new cam track
 Enter a new reference position (<TO>.Parameter.ReferencePosition) for the changed cam track. The new reference position is composed as follows depending on the direction:
­ Positive effective direction: Current reference position (<TO>.MatchPosition) + cam track length (<TO>.Parameter.CamTrackLength)
­ Negative effective direction: Current reference position (<TO>.MatchPosition) - cam track length (<TO>.Parameter.CamTrackLength)
 Output the changes of the cam track when calling the Motion Control instruction "MC_CamTrack" and "Mode" = 1.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

52

Function Manual, 12/2019, A5E47009899-AA

Example

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)
The following figure shows an example of the differences in the activation behavior.

A1 A The cam track is activated the first time with "MC_CamTrack.Enable" = TRUE and the output cams are output immediately with set "MC_CamTrack.Mode" = 0.
B After cam track data were changed (), the cam track is activated by calling Motion Con-
trol instruction "MC_CamTrack" with "Enable" = TRUE and the modified data takes effect
immediately () with set "MC_CamTrack.Mode" = 0.
A2 A The cam track is activated the first time with "MC_CamTrack.Enable" = TRUE and the output cams are output immediately with set "MC_CamTrack.Mode" = 1.
B After cam track data were changed (), the cam track is activated by calling Motion Con-
trol instruction "MC_CamTrack" with "Enable" = TRUE and the modified data takes effect at
the end of the current track cycle () with set "MC_CamTrack.Mode" = 1.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

53

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

3.3.5

Hysteresis (S7-1500, S7-1500T)
The hysteresis is set in the cam track technology object. The behavior and effect of the hysteresis setting corresponds to the hysteresis (Page 35) for the cam technology object.

3.3.6

Time offset of cam switching points (S7-1500, S7-1500T)
Switching times of the output and the connected actuator (e.g. valve) can be compensated for using the activation time or deactivation time of the cam track technology object.
The time offset of cam switching points corresponds to the activation time or deactivation time (Page 38) for the cam technology object.

3.3.7

Tags: Cam track technology object (S7-1500, S7-1500T)
The following technology object tags are relevant:

Status indicator Tag <TO>.Status
<TO>.TrackOutput <TO>.SingleCamState <TO>.TrackPosition
<TO>.MatchPosition

Description

Status of the cam track function

0

Inactive

1

Active

2

Active and waiting for next track

An output cam of cam track is switched.

Switched on output cam (bit-masked)

Display of the current position within the cam track

The distance to the current reference position of the current cam track (<TO>.MatchPosition) is displayed.

Reference position of the current cam track

During cyclic processing of the cam track, the continued reference position of the current cam track is displayed. The unique detection and output of the position is only possible when the assigned technology object is in motion.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

54

Function Manual, 12/2019, A5E47009899-AA

Parameters Tag <TO>.Parameter.CamTrackType
<TO>.Parameter.PositionType
<TO>.Parameter.ReferencePosition <TO>.Parameter.CamTrackLength <TO>.Parameter.CamMasking <TO>.Parameter.OnCompensation <TO>.Parameter.OffCompensation <TO>.Parameter.Hysteresis <TO>.Parameter.Cam[1..32].OnPosition <TO>.Parameter.Cam[1..32].OffPosition <TO>.Parameter.Cam[1..32].Duration <TO>.Parameter.Cam[1..32].Existent
Interface Tag <TO>.Interface.EnableOutput
<TO>.Interface.Address
Units Tag <TO>.Units.LengthUnit <TO>.Units.TimeUnit

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

Description

Output cam type

0

Distance output cam

1

Time-based output cam

Position reference

0

Position setpoint

1

Actual position

Reference position

Track length

Bit masking of individual output cams

Activation time (lead time for the switch-on edge)

Deactivation time (lead time for the switch-off edge)

Hysteresis value

Start position (distance output cams and time-based output cams)

End position (distance output cam)

Switch-on duration (time-based output cam)

Validity of an output cam

FALSE Output cam is not used.

TRUE

Output cam is used.

Description

Output cam output at the bit specified under "Address"

FALSE No output

TRUE

Output

I/O address for digital output cam output

Description Unit of the length data Unit of the time data

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

55

Basics (S7-1500, S7-1500T) 3.3 Cam track technology object (S7-1500, S7-1500T)

StatusWord Tag <TO>.StatusWord.X0 (Control) <TO>.StatusWord.X1 (Error) <TO>.StatusWord.X2 (RestartActive)
<TO>.StatusWord.X3 (OnlineStartValuesChanged) <TO>.StatusWord.X4 (OutputInverted) <TO>.StatusWord.X5 (CommunicationOk)
<TO>.StatusWord.X6 (CamDataChanged)

Description
The technology object is in operation.
An error occurred at the technology object.
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart.
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object.
The output cam output is inverted.
The cam track is synchronized with the output module and available for use.
The data of individual output cams has been changed but not yet taken effect with Motion Control instruction "MC_CamTrack".

ErrorWord Tag <TO>.ErrorWord.X0 (SystemFault) <TO>.ErrorWord.X1 (ConfigFault)
<TO>.ErrorWord.X2 (UserFault) <TO>.ErrorWord.X3 (CommandNotAccepted)
<TO>.ErrorWord.X13 (PeripheralError)

Description
A system-internal error has occurred. Configuration error One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data were incorrectly modified during runtime of the user program. Error in user program at a Motion Control instruction or its use. Job cannot be executed. A Motion Control instruction cannot be executed because necessary requirements have not been met. Error accessing a logical address.

ErrorDetail Tag <TO>.ErrorDetail.Number <TO>.ErrorDetail.Reaction

Description

Alarm number

Effective alarm reaction

0

No reaction

5

Cam track processing is complete.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

56

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T)

4

4.1

Configuring the technology object measuring input (S7-1500, S7-

1500T)

4.1.1

Configuration - Basic parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic parameters" configuration window.

Name

Define the name of the measuring input in this field. The technology object is listed under this name in the project tree. The tags of the measuring input can be used in the user program under this name.

Assigned axis or external encoder
The axis or external encoder assigned to the measuring input is displayed. You can use the button to directly access the configuration of the basic parameters of the higher-level technology object.

Unit of measure
The indicated unit of measure for the position of the measuring input corresponds to the unit of measure of the higher-level technology object.
To use six decimal places in the selected unit, select the check box "Use position values with higher resolution" in the higher-level technology object.

See also

Measuring input technology object (Page 11)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

57

Configuring (S7-1500, S7-1500T) 4.1 Configuring the technology object measuring input (S7-1500, S7-1500T)

4.1.2

Configuration - Hardware interface (S7-1500, S7-1500T)

Measuring input type
Select the measuring input type.  Measurement using Timer DI  Measurement using SINAMICS (central probe)  Measurement using PROFIdrive telegram (drive or external encoder) Overview of possible measurement inputs and measuring types

Measuring input type Measurement using Timer DI ("STANDARD")
Measurement using SINAMICS (central probe) ("STANDARD")
Measurement using PROFIdrive telegrams ("PROFIDRIVE")

Possible measurement inputs With Timer DI
· ET 200SP or ET 200MP TM Timer DIDQ
· SIMATIC Drive Controller (X142)
Using telegram 39x of the drive control:
· SINAMICS S120 CU320-2 (X122/X132)
· SINAMICS S120 CU310-2 (X121/X131)
· SIMATIC Drive Controller (X122/X132)
Using PROFIdrive telegram of the drive axis:
· SINAMICS S210 (X130) · SINAMICS S120 CU320-2
(X122/X132) · SINAMICS S120 CU310-2
(X121/X131) · SIMATIC Drive Controller
(X122/X132)

Possible measuring types · "MC_MeasuringInput"
(One-time measuring) · "MC_MeasuringInputCyclic
" (Cyclic measuring) "MC_MeasuringInput" (One-time measuring)
"MC_MeasuringInput" (Onetime measuring)

Measurement using Timer DI
Select a measurement input for a measurement using a Timer DI. The selection box shows all channels that are configured correctly. For this purpose, you need to have configured the I/O channels as Timer DI beforehand.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

58

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T) 4.1 Configuring the technology object measuring input (S7-1500, S7-1500T)

Measurement using SINAMICS (central probe)
Select a measuring input for a measurement via SINAMICS measurement sensing input. The selection box shows all compatible telegram types. You are shown all terminals that can potentially be used as measuring inputs. For this purpose, you need to have configured the necessary central measuring inputs on the drive side beforehand.
For SINAMICS drives that are not configured via Startdrive, you need to assign the inputs to the measuring inputs (p680) in the telegram without gaps and in ascending order.
With p728.8 to p728.15, you configure as input all DI/DQs used as measurement input on the control unit. Use p680 of the control unit to specify the terminals for the global measuring inputs.
You must configure a suitable telegram 39x for the drive control.

Measurement using PROFIdrive telegram (drive or external encoder)
For a measurement via PROFIdrive telegram, select the number of the measuring input in the telegram in the "Number of the measuring input" drop-down list. The input field is preset with the value "1".
Two communication channels are available for the transmission of measured values in the PROFIdrive telegram. These communication channels are assigned to one measurement input/digital input each in the drive. Use the PROFIdrive parameters to configure the digital input on the drive that is to be used for the configured communication channel.
 Measurement input for the first communication channel
("<TO>.Parameter.PROFIdriveProbeNumber" = 1)
If you use two encoders, you must select the associated DI in the SINAMICS for each encoder. Various results are then transferred to the technology object depending on the selected encoder. The encoders are configured using the parameters p488[0] and p488[1].
 Measurement input for the second communication channel
("<TO>.Parameter.PROFIdriveProbeNumber" = 2)
If you use two encoders, you must select the associated DI in the SINAMICS for each encoder. Various results are then transferred to the technology object depending on the selected encoder. The encoders are configured using the parameters p489[0] and p489[1].

Correction time for the measuring signal
Specify a correction time if possible delay times in the measurement signal are to be compensated.

See also

Measuring input technology object (Page 11)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

59

Configuring (S7-1500, S7-1500T) 4.1 Configuring the technology object measuring input (S7-1500, S7-1500T)

4.1.3

Configuration - Extended parameters (S7-1500, S7-1500T)

Adjustment for activation time of the measuring range
To adjust the activation time defined on the system side, enter an additional activation time here.
The configuration window also displays the following times calculated on the system side:
 Time after the measuring job request until the measuring event can be recoreded
 Time after the measuring event until the measurement result is displayed (for measuring of one or two edges)

See also

Measuring with measuring range (Page 20) Time-related boundary conditions (Page 21) Measuring input technology object (Page 11)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

60

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T) 4.2 Configuring the output cam technology object (S7-1500, S7-1500T)

4.2

Configuring the output cam technology object (S7-1500, S7-1500T)

4.2.1

Configuration - Basic parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic parameters" configuration window.

Name

Define the name of the output cam in this field. The technology object is listed under this name in the project tree. The tags of the output cam can be used in the user program under this name.

Assigned axis or external encoder
The axis or external encoder assigned to the output cam is displayed. You can use the button to directly access the configuration of the basic parameters of the higher-level technology object.

Output cam type
Select based on the desired switching behavior of an output cam type:
 Distance output cam (position-dependent switch-on/switch-off)
 Time-based output cam (position-dependent switch-on and position-independent or timedependent switch-off)

Output cam reference
Configure in this selection whether the switching points of the output cam are to reference the actual position or the position setpoint.

Unit of measure
The indicated unit of measure for the position of the output cam corresponds to the unit of measure of the higher-level technology object.
To use six decimal places in the selected unit, select the check box "Use position values with higher resolution" in the higher-level technology object.
When a time-based output cam is selected as the output cam type, the unit of measure for the switch-on duration and other times is also indicated. For output cams, this is always ms.

See also

Output cam technology object (Page 26)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

61

Configuring (S7-1500, S7-1500T) 4.2 Configuring the output cam technology object (S7-1500, S7-1500T)

4.2.2

Configuration - Hardware interface (S7-1500, S7-1500T)

Output cam output
Select whether the generated switching signals are to be output at the digital output.  Activate output
Select one of the following two output options for the output cam output: ­ Output via Timer DQ
With output via a Timer DQ, you select a suitable channel in the "Output" field. The selection box shows all channels that are configured as Timer DQ. For this purpose, you need to have configured the I/O channels as Timer DQ beforehand. Timer DQs are supported by: - ET 200MP TM Timer DIDQ 16x24V - ET 200SP TM Timer DIDQ 10x24V - SIMATIC Drive Controller (X142) ­ Output by digital output module For output by a digital output module, select this in the "Output cam output" field. Only the digital outputs with previously defined PLC tags are displayed for selection. Select the logical operation of the output cam signal at the output. The logic operation relates to the last signal to be output after the set inversion, if any. All output cams that use the selected output are shown graphically.  Output deactivated When the output is deactivated, the output cam is evaluated only in the software.

See also

Output cam technology object (Page 26)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

62

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T) 4.2 Configuring the output cam technology object (S7-1500, S7-1500T)

4.2.3

Extended parameters (S7-1500, S7-1500T)

4.2.3.1

Configuration - Activation time (S7-1500, S7-1500T)
The specified output cam type is indicated in the upper area of the "Activation time" configuration window.

Activation time and deactivation time
For a time shift of the switch-on and switch-off times of an output cam, enter an activation time and a deactivation time.

See also

Compensation of actuator switching times (Page 38) Output cam technology object (Page 26)

4.2.3.2

Configuration - Hysteresis (S7-1500, S7-1500T)
To prevent unwanted changes in the switching state of the output cams of a cam track, enter a hysteresis value.
When using an output cam with reference to actual position, always enter a hysteresis value (> 0.0).

See also

Hysteresis (Page 35) Output cam technology object (Page 26)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

63

Configuring (S7-1500, S7-1500T) 4.3 Configuring the cam track technology object (S7-1500, S7-1500T)

4.3

Configuring the cam track technology object (S7-1500, S7-1500T)

4.3.1

Configuration - Basic parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic parameters" configuration window.

Name

Define the name of the cam track in this field. The technology object is listed under this name in the project tree. The tags of the cam track can be used in the user program under this name.

Assigned axis or external encoder
The axis or external encoder assigned to the cam track is displayed. You can use the button to directly access the configuration of the basic parameters of the higher-level technology
object.

Output cam type
Select based on the desired switching behavior of an output cam type for the cam track:
 Distance output cam (position-dependent switch-on/switch-off)
 Time-based output cam (position-dependent switch-on and position-independent or timedependent switch-off)

Output cam reference
In this selection, configure whether the switching points of the cam track are to reference the actual position or the position setpoint.

Unit of measure
The indicated unit of measure for the position of the cam track corresponds to the unit of measure of the higher-level technology object.
To use six decimal places in the selected unit, select the check box "Use position values with higher resolution" in the higher-level technology object.
When a time-based output cam is selected as the output cam type, the unit of measure for the switch-on duration and other times is also indicated. For output cams, this is always ms.

See also

Cam track technology object (Page 41)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

64

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T) 4.3 Configuring the cam track technology object (S7-1500, S7-1500T)

4.3.2

Configuration - Hardware interface (S7-1500, S7-1500T)

Output cam track
Select whether the generated switching signals are to be output at the digital output.  Activate output
Select one of the following two output options for the output track: ­ Output via Timer DQ
With output via a Timer DQ, you select a suitable channel in the "Output" field. The selection box shows all channels that are configured as Timer DQ. For this purpose, you need to have configured the I/O channels as Timer DQ beforehand. Timer DQs are supported by: - ET 200MP TM Timer DIDQ 16x24V - ET 200SP TM Timer DIDQ 10x24V - SIMATIC Drive Controller (X142) ­ Output by digital output module For output by a digital output module, select this in the "Output cam output" field. Only the digital outputs with previously defined PLC tags are displayed for selection.  Deactivate output When the output is deactivated, the cam track is evaluated only in the software.

See also

Cam track technology object (Page 41)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

65

Configuring (S7-1500, S7-1500T) 4.3 Configuring the cam track technology object (S7-1500, S7-1500T)

4.3.3

Extended parameters (S7-1500, S7-1500T)

4.3.3.1

Track data (S7-1500, S7-1500T)

Configuration - Activation time (S7-1500, S7-1500T)
The set output cam type is displayed.

Activation time and deactivation time
Enter the activation time and the deactivation time.
For a time shift of the switch-on and switch-off times of the output cam of a cam track, enter an activation time and a deactivation time.

See also

Time offset of cam switching points (Page 54) Cam track technology object (Page 41)

Configuration - Hysteresis (S7-1500, S7-1500T)
To prevent unwanted changes in the switching state of the output cams of a cam track, enter a hysteresis value.
When using an output cam with reference to actual position, always enter a hysteresis value (> 0.0).

See also

Hysteresis (Page 54) Cam track technology object (Page 41)

Configuration - Track dimensions (S7-1500, S7-1500T)

Track length

Enter the corresponding track length.
Also take into account the output cam data of the individual output cams when defining the track length. Output cams whose start position lies outside the cam track length are not included. They become active only if the cam track length is increased so that at least the respective start position of an output cam is within the new track length.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

66

Function Manual, 12/2019, A5E47009899-AA

Configuring (S7-1500, S7-1500T) 4.3 Configuring the cam track technology object (S7-1500, S7-1500T)

Axis reference position
Enter the position of an axis or external encoder starting from which the output of the cam track is to occur. The start of the cam track is placed at the entered position.
You can enter a negative or positive value for the reference position.

Modulo length of the axis
When an axis with modulo function is used, the modulo length of the axis is displayed.

See also

Cam track technology object (Page 41)

4.3.3.2

Configuration - Output cam data (S7-1500, S7-1500T)
The set output cam type is displayed.
Enter the properties for the output cams of the cam track that are to be output. You can set up to 32 individual output cams on a cam track.
Also take into account any previously defined track length when defining the output cam data. Output cams whose start position lies outside the cam track length are not included. They become active only if the cam track length is increased so that at least the respective start position of an output cam is within the new track length.
The input options described below are displayed in the Output cam data configuration window according to the configured output cam type.
 Valid
Only output cams set as "valid" are output and have a status display.
 Start position
­ The start position may not be greater than the end position for distance output cams.
­ If the start position is equal to the end position, the distance output cam does not switch.
­ The switching ranges of individual output cams are permitted to overlap.
 End position
­ The "End position" column is only displayed when distance output cam is set for the output cam type.
­ The end position must not be less than the start position.
 Switch-on duration
The "Switch-on duration" column is only displayed when time-based output cam is set for the cam type.

See also

Cam track technology object (Page 41)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

67

Diagnostics (S7-1500, S7-1500T)

5

The "Diagnostics" section is limited to describing the diagnostics view of the individual technology objects measuring input, output cam and cam track in the TIA Portal.
You will find a description of Motion Control diagnostics in the following sections of the "S71500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459):
 Diagnostic concept
 Technology alarms
 Errors in Motion Control instructions
A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.automation.siemens.com/WW/view/en/59192926).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

68

Diagnostics (S7-1500, S7-1500T) 5.1 Measuring input technology object (S7-1500, S7-1500T)

5.1

Measuring input technology object (S7-1500, S7-1500T)

5.1.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Measuring input status
The following table shows the possible states of the measuring input:

Status Active Waiting for measuring event Measured value present Error
Restart active
Measuring input ready
Restart required

Description
The technology object is in operation. (<TO>.StatusWord.X0 (Control))
The measuring input is waiting for a measuring event. The technology data block tag "<TO>.Status" has the value "1" ("WAITING_FOR_TRIGGER").
The measuring input has acquired one or more measured values. The technology data block tag "<TO>.Status" has the value "2" ("TRIGGER_OCCURRED").
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart. (<TO>.StatusWord.X2 (RestartActive))
The measuring input is synchronized with the measuring module and can be used. (<TO>.StatusWord.X5 (CommunicationOK))
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

69

Diagnostics (S7-1500, S7-1500T) 5.1 Measuring input technology object (S7-1500, S7-1500T)

Error

The following table shows the possible errors:

Error System Configuration
User program Job rejected
I/O

Description
A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault))
An error occurred in the user program at a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) A job cannot be executed. A Motion Control instruction cannot be executed because the necessary conditions are not met (e.g. axis assigned to the measuring input is not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted))
An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (measuring input) (Page 106) "ErrorWord" tag (measuring input) (Page 107) "WarningWord" tag (measuring input) (Page 109)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

70

Function Manual, 12/2019, A5E47009899-AA

Diagnostics (S7-1500, S7-1500T) 5.2 Output cam technology object (S7-1500, S7-1500T)

5.2

Output cam technology object (S7-1500, S7-1500T)

5.2.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Output cam status
The following table shows the possible states of the output cam:

Status Active Switched Inverted output for output cam Error
Restart active
Output cam output ready Restart required

Description
The technology object is in operation. (<TO>.StatusWord.X0 (Control))
The output cam is switched. (<TO>.CamOutput)
The output cam output is inverted. (<TO>.StatusWord.X4 (OutputInverted))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart. (<TO>.StatusWord.X2 (RestartActive))
The output cam is synchronized with the output module and available for use. (<TO>.StatusWord.X5 (CommunicationOk))
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

71

Diagnostics (S7-1500, S7-1500T) 5.2 Output cam technology object (S7-1500, S7-1500T)

Error

The following table shows the possible errors:

Error System Configuration
User program Job rejected
I/O

Description
A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program at a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) A job cannot be executed. A Motion Control instruction cannot be executed because the necessary conditions are not met (e.g. axis assigned to the output cam is not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (output cam) (Page 113) "ErrorWord" tag (output cam) (Page 114) "WarningWord" tag (output cam) (Page 116)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

72

Function Manual, 12/2019, A5E47009899-AA

Diagnostics (S7-1500, S7-1500T) 5.3 Cam track technology object (S7-1500, S7-1500T)

5.3

Cam track technology object (S7-1500, S7-1500T)

5.3.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Cam track status
The following table shows the possible states of the cam track:

Status Active Switched Inverted output for output cam Error
Restart active
Cam track output ready
Restart required

Description
The technology object is in operation. (<TO>.StatusWord.X0 (Control))
An output cam of cam track is switched. (<TO>.TrackOutput)
The output cam output is inverted. (<TO>.StatusWord.X4 (OutputInverted))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. The tags of the technology data block are not updated with active restart. (<TO>.StatusWord.X2 (RestartActive))
The cam track is synchronized with the output module and available for use. (<TO>.StatusWord.X5 (CommunicationOk))
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

73

Diagnostics (S7-1500, S7-1500T) 5.3 Cam track technology object (S7-1500, S7-1500T)

Error

The following table shows the possible errors:

Error System Configuration
User program Job rejected
I/O

Description
A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program at a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) A job cannot be executed. A Motion Control instruction cannot be executed because the necessary conditions are not met (e.g. axis assigned to the cam track is not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

See also

"StatusWord" tag (cam track) (Page 121) "ErrorWord" tag (cam track) (Page 122) "WarningWord" tag (cam track) (Page 124)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

74

Function Manual, 12/2019, A5E47009899-AA

Diagnostics (S7-1500, S7-1500T) 5.3 Cam track technology object (S7-1500, S7-1500T)

5.3.2

Cam track status (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Cam track status" diagnostics function in the TIA Portal to monitor the status of the cam track. The diagnostics function is available in online operation.

"Validity and masking of the output cams" area
The individual cams of a cam track are shown in this area along with the status for the following properties:

Status Valid
Masked
Effective

Description Validity of the individual cams of the cam track (<TO>.Parameter.Cam[1..32].Existent) Bit masking of the individual cams of the cam track (<TO>.Parameter.CamMasking) Switched on output cam (bit-masked) (<TO>.SingleCamState)

"Positions" area
The following status values are displayed in this area:

Status Current position in the cam track
Current cam track start

Description
Position during cam track processing within a cam track cycle
The distance to the current reference position of the current cam track (<TO>.MatchPosition) is displayed.
(<TO>.TrackPosition)
Reference position of the current cam track
During cyclic processing of the cam track, the continued reference position of the current cam track is displayed. The unique detection and output of the position is only possible when the assigned technology object is in motion.
(<TO>.MatchPosition)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

75

Instructions (S7-1500, S7-1500T)

6

6.1

MC_MeasuringInput V5 (S7-1500, S7-1500T)

6.1.1

MC_MeasuringInput: Start measuring once V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MeasuringInput", a one-time measuring is started.
With the one-time measuring, one or two edges can be detected with one measuring job. The position of the respective technology object axis or external encoder is assigned to the measuring event. The measurement result is indicated in the function block and in the technology data block and can be further processed in the user program. This completes the measuring job.
Another measuring job must be started again using "MC_MeasuringInput.Execute" = TRUE.

Applies to

 Measuring input

Requirement

 The technology object has been configured correctly.
 The encoder of the axis must have "valid" status (StatusSensor[1..4].State = valid). Otherwise, the measuring job is rejected in the function block with an error indication.
 Measurement using PROFIdrive is not possible during active or passive homing.

Override response
The override response for "MC_MeasuringInput" jobs is described in section "Override response V5: Measuring input jobs (Page 98)".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

76

Instructions (S7-1500, S7-1500T) 6.1 MC_MeasuringInput V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_MeasuringInput":

Parameters MeasuringInput Execute Mode
MeasuringRange
StartPosition EndPosition Done Busy

Declaration INPUT INPUT INPUT

Data type
TO_MeasuringInput BOOL DINT

Default value FALSE 0

INPUT BOOL

FALSE

INPUT LREAL INPUT LREAL OUTPUT BOOL OUTPUT BOOL

0.0 0.0 FALSE FALSE

Description

Technology object

TRUE Start job with a positive edge

Type of measurement

0

Measurement of next positive edge

1

Measurement of next negative edge

2

Measurement of next two edges

3

Measurement of two edges, beginning

with the positive edge

· Rising edge = "MeasuredValue1" (measured value 1)

· Falling edge = "MeasuredValue2" (measured value 2)

4

Measurement of two edges, beginning

with the negative edge

· Falling edge = "MeasuredValue1"

· Rising edge = "MeasuredValue2"

Acquisition of measured values
Observe the time-related boundary conditions (Page 21).
FALSE Always acquire measured values
TRUE Acquire measured values only within the measuring range
Start position of the measuring range
For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.
End position of the measuring range
For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.
TRUE The block has been completely processed.
Measured values are valid.
TRUE The job is being processed.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

77

Instructions (S7-1500, S7-1500T) 6.1 MC_MeasuringInput V5 (S7-1500, S7-1500T)

Parameters
CommandAborted Error

Declara- Data type tion OUTPUT BOOL OUTPUT BOOL

ErrorID MeasuredValue1 MeasuredValue2

OUTPUT WORD OUTPUT LREAL OUTPUT LREAL

Default value FALSE FALSE
16#0000 0.0 0.0

Description

TRUE The measuring job has been aborted.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

First measured value

Second measured value (for measurement of two edges)

See also

Time-related boundary conditions (Page 21)
One-time measurement (Page 14)
Override response V5: Measuring input jobs (Page 98)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

78

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.1 MC_MeasuringInput V5 (S7-1500, S7-1500T)

6.1.2

MC_MeasuringInput: Function chart V5 (S7-1500, S7-1500T)

Function chart: Start measuring job once

A "MC_MeasuringInput" job with "Mode" = 0 initiated using "Execute" performs a
measurement of the next positive edge. A successfully completed measurement is signaled
with "Done" = TRUE. The determined measured value  (in example: 50) is output using
"MeasuredValue1".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

79

Instructions (S7-1500, S7-1500T) 6.2 MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)

6.2

MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)

6.2.1

MC_MeasuringInputCyclic: Start cyclic measuring V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_MeasuringInputCyclic", a cyclic measuring is started.
With cyclic measuring, up to two measuring events are detected by the system and the associated measuring positions displayed. The measurements are continued cyclically until they are ended per command.

Applies to

 Measuring input

Requirement

 The technology object has been configured correctly.
 Cyclic measuring is only possible when measuring using Timer DI.
 The encoder of the axis operationally in effect must have "valid" status "valid" ("StatusSensor[1..4].State" = valid). Otherwise, the measuring job is rejected in the function block with an error indication.

Override response
The override response for "MC_MeasuringInputCyclic" jobs is described in section "Override response V5: Measuring input jobs (Page 98)".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

80

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.2 MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_MeasuringInputCyclic":

Parameters MeasuringInput Execute Mode
MeasuringRange
StartPosition
EndPosition
Busy CommandAborted Error
ErrorID MeasuredValue1 MeasuredValue2 Measured Value1Counter Measured Value2Counter LostEdgeCounter1 LostEdgeCounter2

Declaration INPUT INPUT INPUT

Data type
TO_MeasuringInput BOOL DINT

INPUT BOOL

INPUT LREAL
INPUT LREAL
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD OUTPUT LREAL OUTPUT LREAL OUTPUT UDINT

Default value FALSE 0
FALSE
0.0
0.0
FALSE FALSE FALSE 16#0000
0

Description

Technology object

TRUE Start job with a positive edge

Type of measurement

0

Measurement of positive edges

1

Measurement of negative edges

2

Measurement of both edges

Acquisition of measured values

Observe the time-related boundary conditions (Page 21).

FALSE Always acquire measured values

TRUE Acquire measured values only within the measuring range

Start position of the measuring range

For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.

End position of the measuring range

For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.

TRUE The job is being processed.

TRUE The measuring job has been aborted.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

First measured value

Second measured value (when measuring multiple edges in one position control cycle)

Count value for the first measured value

OUTPUT UDINT

0

Count value for the second measured value

OUTPUT UDINT OUTPUT UDINT

0

Count value for the lost edges in the cycle clock

of the first measured value acquisition

0

Count value for the lost edges in the cycle clock

of the second measured value acquisition

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

81

Instructions (S7-1500, S7-1500T) 6.2 MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)

See also

Time-related boundary conditions (Page 21)
Cyclic measuring (Page 16)
Override response V5: Measuring input jobs (Page 98)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

6.2.2

MC_MeasuringInputCyclic: Function chart V5 (S7-1500, S7-1500T)

Function chart: Start cyclic measuring job

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

82

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.2 MC_MeasuringInputCyclic V5 (S7-1500, S7-1500T)

A "MC_MeasuringInputCyclic" command initiated using "Execute" (signal and start point not shown) (e.g. call in MC-PreServo [OB67]) with "Mode" = 0 and without specified measuring range "MeasuringRange = FALSE" performs a measurement of the positive edges.
The actual position determined at the time of the first positive edge  in the position control
cycle is output using "MeasuredValue1", and count tag "MeasuredValue1Counter" is incremented by "1".
The actual position determined at the time of the second positive edge  in the position
control cycle is output using "MeasuredValue2", and count tag "MeasuredValue2Counter" is incremented by "1".
If additional positive edges occur in the same position control cycle , these are recorded in
LostEdgeCounter1 and LostEdgeCounter2.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

83

Instructions (S7-1500, S7-1500T) 6.3 MC_AbortMeasuringInput V5 (S7-1500, S7-1500T)

6.3

MC_AbortMeasuringInput V5 (S7-1500, S7-1500T)

6.3.1

MC_AbortMeasuringInput: Cancel active measuring job V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_AbortMeasuringInput", an active one-time or cyclic measuring job is aborted.

Applies to

 Measuring input

Requirement

 The technology object has been configured correctly.

Override response
The override response for "MC_AbortMeasuringInput" jobs is described in section "Override response V5: Measuring input jobs (Page 98)".

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

84

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.3 MC_AbortMeasuringInput V5 (S7-1500, S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_AbortMeasuringInput":

Parameters
MeasuringInput Execute Done
Busy CommandAborted Error
ErrorID

Declara- Data type tion INPUT TO_MeasuringInput INPUT BOOL OUTPUT BOOL
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value FALSE 0
FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

The function block has been processed. The measuring job has been deactivated.

TRUE The job is being processed.

TRUE The job has been aborted.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

Override response V5: Measuring input jobs (Page 98)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Measuring input technology object (Page 11)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

85

Instructions (S7-1500, S7-1500T) 6.4 MC_OutputCam V5 (S7-1500, S7-1500T)

6.4

MC_OutputCam V5 (S7-1500, S7-1500T)

6.4.1

MC_OutputCam: Activate/deactivate output cam V5 (S7-1500, S7-1500T)

Description

You use Motion Control instruction "MC_OutputCam" to activate the specified output cam. Depending on the output cam type, the following input parameters are in effect:  Distance output cam
­ "OnPosition" ­ "OffPosition"  Time-based output cam ­ "OnPosition" ­ "Duration" You define the operating mode and the effective direction of the output cam with parameters "Mode" and "Direction". When "MC_OutputCam.Enable" = TRUE, the input parameters are always read and take effect at the next position control cycle. When a technological alarm occurs, the output cam is processed again after error acknowledgment.
Note Enabling output cams To guarantee precise switching, an output cam must be enabled for at least two application cycles before the output cam start is reached. Otherwise, distance output cams are imprecise and time-based output cams do not switch on. Observe the switching behavior of the distance output cams (Page 29) and time-based output cams (Page 31).

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

86

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.4 MC_OutputCam V5 (S7-1500, S7-1500T)

Applies to

 Output cam

Requirement

 The technology object has been configured correctly.  The higher-level technology object must have a valid position.  Setpoint output cams are not output for an axis in non-position-controlled operation.  A setpoint output cam with the setting "MC_OutputCam.OnPosition" = 0 switches at
position setpoint = 0.

Override response
The "MC_OutputCam" is canceled by:
 Disabling of the output cam with "MC_OutputCam.Enable" = FALSE
 Only one instance of the "MC_OutputCam" function block can be active on an output cam in the user program. A second instance of the "MC_OutputCam" function block on a currently active output cam is rejected with an error.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

87

Instructions (S7-1500, S7-1500T) 6.4 MC_OutputCam V5 (S7-1500, S7-1500T)

Parameters
Parameters OutputCam Enable OnPosition
OffPosition
Duration Mode
Direction
CamOutput Busy Error ErrorID

The following table shows the parameters of Motion Control instruction "MC_OutputCam":

Declaration INPUT INPUT

Data type
TO_OutputCam BOOL

INPUT LREAL

INPUT LREAL

INPUT LREAL INPUT DINT

INPUT DINT
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT WORD

Default value FALSE 0.0
0.0
0.0 1
1
FALSE FALSE 16#0000

Description

Technology object

FALSE Output cam is disabled.

TRUE Output cam is being processed.

Start position of the output cam [unit of measurement of the interconnected technology object]

For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.

End position of the distance output cam [unit of measurement of the interconnected technology object]

For an axis or external encoder with active modulo function, position data outside the modulo range is mirrored in the modulo range.

Switch-on duration of the time-based output cam [unit of measurement: ms]

The value for the switch-on duration of a timebased output cam must be greater than 0.0.

Operating mode

1

Standard

Output cam functionality (output not inverted)

2

Output cam functionality with inverted

output

3

Output cam always ON

(while "Enable" = TRUE)

Activation direction of the output cam

1

Positive direction

2

Negative direction

3

Both directions

Status display based on last call of Motion Control instruction "MC_OutputCam"

TRUE The processing of the output cam is active.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

88

Function Manual, 12/2019, A5E47009899-AA

See also

Instructions (S7-1500, S7-1500T) 6.4 MC_OutputCam V5 (S7-1500, S7-1500T)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459) Output cam technology object (Page 26)

6.4.2

MC_OutputCam: Function chart V5 (S7-1500, S7-1500T)

Function chart: Activate the specified output cam type

A1 Distance output cam A2 Time-based output cam

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

89

Instructions (S7-1500, S7-1500T) 6.4 MC_OutputCam V5 (S7-1500, S7-1500T)
An output cam is activated with "Enable" = TRUE. The output cam is output corresponding to the parameters.
The processing of the output cam is indicated with "Busy" = TRUE.
When activation direction "Direction" = 1 (positive) is set, the output cam behaves as follows, regardless of the output cam type setting:
 The distance output cam switches on at "OnPosition"  and switches off again at "OffPosition" . At a direction reversal the output cam is switched off .
 The time-based output cam switches on at "OnPosition"  and switches off again after expiration of the specified time "Duration" . A switched on time-based output cam
remains active for the specified switch-on duration "Duration", even if overtravel of the start position occurs again in the reverse direction.
The switching state of the output cam is output using "CamOutput".
With "Enable" = FALSE, the specified output cam type is deactivated. "Busy" = FALSE shows that the output cam is not being processed.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

90

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.5 MC_CamTrack V5 (S7-1500, S7-1500T)

6.5

MC_CamTrack V5 (S7-1500, S7-1500T)

6.5.1

MC_CamTrack: Activate/deactivate cam track V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_CamTrack", the processing of a cam track is enabled.

Applies to

 Cam track

Requirement

 The technology object has been configured correctly.  The higher-level technology object must have a valid position.  Setpoint output cams are not output for an axis in non-position-controlled operation.

Override response
 The "MC_CamTrack" is aborted by the disabling of the cam track with "MC_CamTrack.Enable" = FALSE.
 Only one instance of the "MC_CamTrack" function block can be active on a cam track in the user program. A second instance of the "MC_CamTrack" function block on a currently active cam track is rejected with an error.
 The cam track is recalculated at a change of the parameters of the Motion Control instruction "MC_CamTrack" or in the technology data block. The cam track is processed in accordance with all parameter settings.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

91

Instructions (S7-1500, S7-1500T) 6.5 MC_CamTrack V5 (S7-1500, S7-1500T)

Parameters
Parameters CamTrack Enable Mode

The following table shows the parameters of Motion Control instruction "MC_CamTrack":

Declaration INPUT INPUT

Data type
TO_CamTrack BOOL

INPUT INT

Default value FALSE
1

Description

Technology object

TRUE The cam track is processed.

FALSE The cam track is disabled.

0

When "Enable" = TRUE:

The cam track processing is activated immediately. Cam track data takes effect immediately

Previously activated distance output cams are aborted if their track signal is not still set due to the changed cam track data.

Previously activated time-based output cams are always aborted.

When "Enable" = FALSE:

The cam track processing is ended immediately. Distance output cams/time-based output cams are aborted immediately.

1

When "Enable" = TRUE:

The cam track processing is activated immediately/with the next track cycle:

· When a cam track is activated for the first time, the cam track processing begins immediately.

· If the cam track processing is already active, the current cam track is output up to the end of the track cycle. The new cam track data then takes effect.

When "Enable" = FALSE:

The cam track processing is ended at the end of the cam track

2

When "Enable" = TRUE:

The cam track output is switched on immediately and remains switched on

When "Enable" = FALSE:

The cam track output is switched off immediately.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

92

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.5 MC_CamTrack V5 (S7-1500, S7-1500T)

Parameters InvertOutput
TrackOutput Busy Error
ErrorID
See also

Declaration
INPUT

Data type BOOL

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value FALSE
FALSE FALSE
16#0000

Description

Inverted output

TRUE The track output is output inverted.

FALSE The track output is output non-inverted.

Indicates the switching state of the cam track.

TRUE The processing of the cam track is active.

TRUE

An error occurred while processing the job. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Cam track technology object (Page 41)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

93

Instructions (S7-1500, S7-1500T) 6.5 MC_CamTrack V5 (S7-1500, S7-1500T)

6.5.2

MC_CamTrack: Function chart V5 (S7-1500, S7-1500T)

Function chart: Activate cam track

 Axis reference position  Output cam configured as invalid  Start of cyclically continued cam track
A cam track is activated with "Enable" = TRUE. The cam track is output in accordance with the parameters set in the technology data block.

Tag <TO>Parameter.
CamTrackType ReferencePosition CamTrackLength CamTrack[1].Existent CamTrack[1].OnPosition CamTrack[1].OffPosition CamTrack[2].Existent CamTrack[2].OnPosition CamTrack[2].OffPosition CamTrack[3].Existent CamTrack[3].OnPosition CamTrack[3].OffPosition

Value

Description

0 20.0 100.0 TRUE 10.0 20.0 FALSE 30.0 50.0 TRUE 60.0 90.0

Specified output cam type for the cam track is distance output cam Specified axis reference position for the cam track Specified length of the cam track The first distance output cam of the cam track is specified as valid Start position for the first output cam of the cam track End position for the first output cam of the cam track The second distance output cam of the cam track is specified as invalid Start position for the second output cam of the cam track End position for the second output cam of the cam track The third distance output cam of the cam track is specified as valid Start position for the third output cam of the cam track End position for the third output cam of the cam track

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

94

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

6.6

Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

6.6.1

Override response V5: Homing and motion jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects active homing and motion jobs:

 Active job  New job

MC_Home
"Mode" = 2, 8, 10

MC_Home

A

"Mode" = 3, 5

MC_Home

A

"Mode" = 9

MC_Halt

-

MC_MoveAbsolute

MC_MoveRelative

MC_MoveVelocity

MC_MoveJog

MC_MotionInVelocity

MC_MotionInPosition

MC_MoveSuper-

-

imposed

MC_Stop

A

MC_Home ("Mode" = 3, 5)
A

MC_Halt
MC_MoveAbsolute
MC_MoveRelative
MC_MoveVelocity
MC_MoveJog A

MC_Stop -

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

A

A

-

-

-

-

-

A

A

-

A

A

-

-

-

A

-

A

A

B

A

A

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

95

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

 Active job  New job
MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_LeadingValue Additive

MC_Home "Mode" = 2, 8, 10
-

MC_Home ("Mode" = 3, 5)
A -

MC_Halt MC_MoveAbsolute MC_Move-
Relative MC_Move-
Velocity MC_MoveJog
A -

MC_Stop

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

-

A

-

-

-

-

-

A

A

-

A

-

-

-

-

-

-

-

A The running job is aborted with "CommandAborted" = TRUE. B An "MC_Stop" job is aborted by another "MC_Stop" job with a stop response that is the same or higher. - No effect. Running job continues to be executed. 1) The status "Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE corresponds to a waiting synchronous operation. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to an active synchronous operation.

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

96

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

6.6.2

Override response V5: Synchronous operation jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects the motion of the axis on active synchronous operation jobs:

 Active job  New job
MC_Home "Mode" = 3, 5 MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_MotionInVelocity MC_MotionInPosition MC_MoveSuperimposed MC_Stop MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_PhasingAbsolute MC_PhasingRelative MC_LeadingValueAdditive

MC_GearIn MC_GearInPos MC_GearInPos

MC_CamIn

MC_CamIn

waiting1)

active2)

A

-

-

MC_PhasingAbsolute
MC_PhasingRelative
-

MC_LeadingValueAdditive
-

A

-

A

-

A

A

-

A

A

-

A

A

-

-

A

A

A

A

-

A

A

A

-

-

-

-

A

-

-

-

-

-

A

A

A

A

A

-

-

-

-

A

A

-

-

A

-

-

-

A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed. 1) A waiting synchronous operation job ("Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE) does not abort any
active jobs. Abort with an "MC_Power" job is possible. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to active synchronous operation.

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

97

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

6.6.3

Override response V5: Measuring input jobs (S7-1500, S7-1500T)
The following table shows which new Motion Control jobs will override active measuring input jobs:

 Active job
 New job MC_Home "Mode" = 2, 3, 5, 8, 9, 10 MC_Home "Mode" = 0, 1, 6, 7, 11, 12 MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput

MC_MeasuringInput A A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed.

MC_MeasuringInputCyclic A A

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

98

Function Manual, 12/2019, A5E47009899-AA

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

6.6.4

Override response V5: Kinematics motion commands (S7-1500T)
Single axis jobs are not overridden by kinematics jobs.
The following table shows how a new Motion Control job affects active kinematics motion jobs:

 Active job  New job
MC_Home MC_MoveSuperimposed MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_Stop MC_GearIn MC_GearInPos MC_CamIn MC_MotionInVelocity MC_MotionInPosition MC_GroupStop MC_GroupInterrupt MC_GroupContinue

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame N
A

MC_GroupInterrupt MC_GroupStop

N

N

A

A

A

A

N

B

A

N

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47009899-AA

99

Instructions (S7-1500, S7-1500T) 6.6 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

 Active job  New job
MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive MC_SetOcsFrame

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame -

MC_GroupInterrupt -

C, -

-

A The running job is aborted with "CommandAborted" = TRUE. B Running job is interrupted or resumed. C Synchronization of the OCS with the conveyor belt is aborted with "MC_SetOcsFrame" = TRUE. N Not permitted. Running job continues to be executed. The new job is rejected. - No effect. Running job continues to be executed. A new kinematics job is added to the job sequence.

MC_GroupStop N N

100

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T)

A

A.1

Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

101

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.2

Display data (measuring input) (S7-1500, S7-1500T)
The "<TO>.Status" and "<TO>.InputState" tags show the status of the measuring function and the measuring input.

Tags
Tag Status
InputState

Legend (Page 101)

Data type Values

DINT

-

BOOL

-

W RON
RON

Description

Status of the measuring input function

0

"INACTIVE"

No measurement is active.

1

"WAITING_FOR_TRIGGER"

The measuring input is waiting for the measuring event.

2

"TRIGGER_OCCURRED"

One or more measured values have been captured.

3

"MEASURING_ERROR"

Error during the measurement

Status of measuring input

FALSE Measuring input inactive

TRUE Input of measuring input active

102

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.3

"Parameter" tag (measuring input) (S7-1500, S7-1500T)
The tag structure "<TO>.Parameter.<tag name>" contains the configuration of the basic parameters of the measuring input technology object.

Tags

Legend (Page 101)

Tag Parameter.
MeasuringInputType
PROFIdriveProbe Number MeasuringRange ActivationTime MeasuringRangeAdditionalActivationTime CorrectionTime

Data type Values

W

TO_MeasuringInput_Struct_ Parameter

DINT

0, 1

RON

UDINT LREAL

1, 2

RES

0.0 ... 1.0E12 RON

Description

Measuring input type

0

"STANDARD"

Measurement using time stamp

1

"PROFIDRIVE"

Measuring event using PROFIdrive telegram

Number of the measuring input to be used for a measurement via PROFIdrive telegram

System share for activation time of measuring range

LREAL LREAL

0.0 ... 1.0E12 0.0 ... 1.0E12

RES RES

Additional activation time when using measuring range limits [ms]
Correction time for the measurement result [ms]

A.1.4

"Interface" tag (measuring input) (S7-1500, S7-1500T)
The tag structure "<TO>.Interface.<tag name>" contains the configuration of the input properties for the measuring input technology object.

Tags
Tag Interface.
Address

Legend (Page 101)

Data type Values

W

TO_MeasuringInput_Struct_ Interface

VREF

-

RON

Description I/O address for the digital measurement input

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

103

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.5

"Units" tag (measuring input) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags

Legend (Page 101)

Tag Units.
LengthUnit
TimeUnit

Data type Values

W

TO_MeasuringInput_Struct_Units

UDINT -

RON

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1) Unit for time 1056 ms

1) Position values with higher resolution or six decimal places.

104

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.6

"MeasuredValues" tag (measuring input) (S7-1500, S7-1500T)
The tag structure "<TO>.MeasuredValues.<tag name>" displays the measurement results.

Tags

Legend (Page 101)

Tag MeasuredValues.
MeasuredValue1
MeasuredValue2
MeasuredValue1 Counter MeasuredValue2 Counter LostEdgeCounter1
LostEdgeCounter2

Data type Values

W

TO_MeasuringInput_Struct_ MeasuringValues

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

UDINT

0 ... 2147483647

RON

UDINT

0 ... 2147483647

RON

UDINT 0 ... 7

RON

UDINT 0 ... 7

RON

Description
First measured value Second measured value Count value for the first measured value Count value for the second measured value LEC for measured value 1 (Zero in the case of one-time measurement) LEC for measured value 2 (Zero in the case of one-time measurement)

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

105

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.7

"StatusWord" tag (measuring input) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "RestartActive") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0

Legend (Page 101)

Data type DWORD -

Values -

Bit 1

-

-

Bit 2

-

-

Bit 3

-

-

Bit 4 Bit 5

-

-

-

-

Bit 6... Bit 31

-

-

W RON -
-
-
-

Description

Status information of the technology object

"Control"

0

Technology object not in operation

1

Technology object in operation

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

Reserved

"CommunicationOK"

Communication between measuring input and measuring module

0

Not established

1

Established

Reserved

106

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.8

"ErrorWord" tag (measuring input) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1

Legend (Page 101)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4... Bit 12 Bit 13
Bit 14... Bit 31

-

-

-

-

-

-

W RON -
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"PeripheralError"

Error accessing a logical address

-

Reserved

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

107

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.9

"ErrorDetail" tag (measuring input) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 101)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 6

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

6

End measuring input processing

108

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the measuring input technology object (S7-1500, S7-1500T)

A.1.10

"WarningWord" tag (measuring input) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 1 "ConfigWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 101)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4... Bit 12 Bit 13
Bit 14... Bit 31

-

-

-

-

W RON -
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

"PeripheralWarning"

Error accessing a logical address

-

Reserved

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

109

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2

Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

A.2.2

Display data (output cam) (S7-1500, S7-1500T)
The "<TO>.CamOutput" tag indicates the switching state of the output cam.

Tags
Tag CamOutput

Legend (Page 110)

Data type Values

BOOL

-

W RON

Description Switching state of output cam FALSE Not switched TRUE Switched

110

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.3

"Parameter" tag (output cam) (S7-1500, S7-1500T)
The tag structure "<TO>.Parameter.<tag name>" contains the configuration of the basic parameters of the output cam technology object.

Tags

Legend (Page 110)

Tag Parameter.
OutputCamType
PositionType
OnCompensation OffCompensation Hysteresis

Data type Values

W

TO_OutputCam_Struct_Parameter

DINT

0 ... 2

RES

DINT

0, 1

RES

LREAL 0.0 ... 1.0E12 DIR LREAL 0.0 ... 1.0E12 DIR LREAL 0.0 ... 1.0E12 DIR

Description

Output cam type

0

Distance output cam

1

Time-based output cam

2

Switching output cam

Position reference

0

Position setpoint

1

Actual position

Activation time

Lead time for the switch-on edge

Deactivation time

Lead time for the switch-off edge

Hysteresis value

For output cams with reference to actual position, always enter a hysteresis value (> 0.0).

A.2.4

"Interface" tag (output cam) (S7-1500, S7-1500T)
The tag structure "<TO>.Interface.<tag name>" contains the configuration of the output properties for the output cam technology object.

Tags

Legend (Page 110)

Tag Interface.
EnableOutput
Address LogicOperation

Data type Values

W

TO_OutputCam_Struct_Interface

BOOL

-

RES

VREF

-

DINT

0, 1

RON RON

Description

Activation of the output cam output

FALSE Output is deactivated

TRUE Output is activated

I/O address of the output cam

Logical operation of the output cam signals at the output

0

OR logic operation

1

AND logic operation

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

111

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.5

"Units" tag (output cam) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags

Legend (Page 110)

Tag Units.
LengthUnit
TimeUnit

Data type Values

W

TO_OutputCam_Struct_Units

UDINT -

RON

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1) Unit for time 1056 ms

1) Position values with higher resolution or six decimal places.

112

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.6

"StatusWord" tag (output cam) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "RestartActive") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0

Legend (Page 110)

Data type DWORD -

Values -

Bit 1

-

-

Bit 2

-

-

Bit 3

-

-

Bit 4 Bit 5
Bit 6... Bit 31

-

-

-

-

-

-

W RON -
-
-
-

Description

Status information of the technology object

"Control"

0

Technology object not in operation

1

Technology object in operation

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

"OutputInverted"

0

Output cam output not inverted

1

Output cam output inverted

"CommunicationOK"

Communication between output cam and output module

0

Not established

1

Established

Reserved

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

113

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.7

"ErrorWord" tag (output cam) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1
Bit 2
Bit 3
Bit 4... Bit 12 Bit 13 Bit 14... Bit 31

Legend (Page 110)

Data type DWORD -

Values -

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"PeripheralError"

Error accessing a logical address

-

Reserved

114

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.8

"ErrorDetail" tag (output cam) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 110)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 6

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

6

Output cam processing is complete.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

115

Appendix (S7-1500, S7-1500T) A.2 Tags of the output cam technology object (S7-1500, S7-1500T)

A.2.9

"WarningWord" tag (output cam) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 1 "ConfigWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 110)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4... Bit 12 Bit 13
Bit 14... Bit 31

-

-

-

-

W RON -
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

"PeripheralWarning"

Error accessing a logical address

-

Reserved

116

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3

Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

117

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.2

Display data (cam track) (S7-1500, S7-1500T)
The following tags indicate the status of the cam track:

Tags

Legend (Page 117)

Tag Status
TrackOutput SingleCamState TrackPosition MatchPosition

Data type DINT
BOOL DWORD LREAL LREAL

Values 0 ... 2
16#0 ... 16#FFFF_FFFF
-1.0E12 ... 1.0E12 -1.0E12 ... 1.0E12

W RON
RON RON RON RON

Description

0

"INACTIVE"

Inactive

1

"ACTIVE"

Active

2

"ACTIVE_WAITING_FOR_NEXT_CYCLE"

Active and waiting for next track

FALSE Cam track is not output.

TRUE Cam track is output.

Switched on output cam (bit-masked)

0

Output cam is not switched on

1

Output cam is switched on

Display of the current position within the cam track

Reference position of the current cam track
During cyclic processing of the cam track, the continued reference position of the current cam track is displayed. The unique detection and output of the position is only possible when the assigned technology object is in motion.

118

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.3

"Parameter" tag (cam track) (S7-1500, S7-1500T)
The tag structure "<TO>.Parameter.<tag name>" contains the configuration of the basic parameters of the cam track technology object.

Tags

Legend (Page 117)

Tag Parameter.
CamTrackType
PositionType
ReferencePosition CamTrackLength CamMasking OnCompensation OffCompensation Hysteresis
Cam[1..32]. OnPosition Offposition Duration Existent

Data type Values

W

TO_CamTrack_Struct_Parameter

DINT

0, 1

RES

DINT

0, 1

RES

LREAL
LREAL DWORD
LREAL

-1.0E12 ...

DIR

1.0E12

0.001 ... 1.0E12 DIR

16#0 ...

DIR

16#FFFF_FFFF

0.0 ... 1.0E12 DIR

LREAL 0.0 ... 1.0E12 DIR

LREAL 0.0 ... 1.0E12 DIR

ARRAY[1..32] OF TO_CamTrack_Struct_CamData
LREAL 0.0 ... 1.0E12 CAL

LREAL 0.0 ... 1.0E12 CAL

LREAL 0.001 ... 1.0E12 CAL

BOOL

-

CAL

Description

Output cam type

0

Distance output cam

1

Time-based output cam

Position reference

0

Position setpoint

1

Actual position

Reference position

Track length Bit masking of individual output cams

Activation time Lead time for the switch-on edge Deactivation time Lead time for the switch-off edge Hysteresis value For output cams with reference to actual position, always enter a hysteresis value (> 0.0).

With distance output cams and time-based output cams: Start position With distance output cams: End position With time-based output cams: Switch-on duration FALSE Output cam is not used. TRUE Output cam is used.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

119

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.4

"Interface" tag (cam track) (S7-1500, S7-1500T)
The tag structure "<TO>.Interface.<tag name>" contains the configuration of the output properties for the cam track technology object.

Tags

Legend (Page 117)

Tag Interface.
EnableOutput
Address

Data type Values

W

TO_CamTrack_Struct_Interface

BOOL

-

RES

VREF

-

RON

Description
Output cam output at the bit specified under "<TO>.Interface.Address" FALSE No output TRUE Output I/O address for digital output cam output

A.3.5

"Units" tag (cam track) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags

Legend (Page 117)

Tag Units.
LengthUnit
TimeUnit

Data type Values

W

TO_CamTrack_Struct_Units

UDINT -

RON

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1) Unit for time 1056 ms

1) Position values with higher resolution or six decimal places.

120

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.6

"StatusWord" tag (cam track) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "RestartActive") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0

Legend (Page 117)

Data type DWORD -

Values -

Bit 1

-

-

Bit 2

-

-

Bit 3

-

-

Bit 4 Bit 5
Bit 6... Bit 31

-

-

-

-

-

-

W RON -
-
-
-

Description

Status information of the technology object

"Control"

0

Technology object not in operation

1

Technology object in operation

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

"OutputInverted"

0

Output cam output not inverted

1

Output cam output inverted

"CommunicationOK"

Communication between cam track and output module

0

Not established

1

Established

Reserved

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

121

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.7

"ErrorWord" tag (cam track) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1
Bit 2
Bit 3
Bit 4... Bit 12 Bit 13 Bit 14... Bit 31

Legend (Page 117)

Data type DWORD -

Values -

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Command cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"PeripheralError"

Error accessing a logical address

-

Reserved

122

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.8

"ErrorDetail" tag (cam track) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" appendix of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 117)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 6

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

6

Cam track processing is complete.

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

123

Appendix (S7-1500, S7-1500T) A.3 Tags of the cam track technology object (S7-1500, S7-1500T)

A.3.9

"WarningWord" tag (cam track) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 1 "ConfigWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 101)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4... Bit 12 Bit 13
Bit 14... Bit 31

-

-

-

-

-

-

W RON -
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Command cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"PeripheralWarning"

Error accessing a logical address

-

Reserved

124

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Index
C
Cam track Basics, 41 Configuration, 64 Diagnostics, 73, 75 Functions, 10 Tags, 117
M
MC_AbortMeasuringInput, 84 MC_CamTrack, 91, 94 MC_MeasuringInput, 76, 79 MC_MeasuringInputCyclic, 80, 82 MC_OutputCam, 86, 89 Measuring input
Basics, 11 Configuration, 57 Diagnostics, 69 Functions, 10 Tags, 101
O
Output cam Basics, 26 Configuration, 61 Diagnostics, 71 Functions, 10 Tags, 110

S
S7-1500 Motion Control Motion Control instruction, 10 Technology object, 10, 11, 26, 41
S7-1500 Motion Control instruction Overview, 10
S7-1500T Motion Control Motion Control instruction, 10 Technology object, 10
T
Tags Cam track technology object, 117 Output cam technology object, 110 Technology object measuring input, 101
Technology data block Tags of the cam track technology object, 117 Tags of the output cam technology object, 110 Tags of the technology object measuring input, 101
Technology object Cam track, 10, 41, 64, 73, 75 Measuring input, 10, 11, 57, 69 Output cam, 10, 26, 61, 71

125

S7-1500/S7-1500T Measuring input and cam functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47009899-AA

Edition

12/2019

Function manual
SIMATIC
S7-1500
S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16
support.industry.siemens.com

SIMATIC
S7-1500 S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16
Function Manual

Preface (S7-1500, S71500T)

Function manuals

Documentation Guide (S7-

1

1500, S7-1500T)

Introduction (S7-1500, S71500T)

2

Basics of synchronous

operation (S7-1500, S7-

3

1500T)

Gearing (S7-1500, S71500T)

4

Camming (S7-1500T)

5

Configuring (S7-1500, S71500T)

6

Diagnostics (S7-1500, S71500T)

7

Cross-PLC synchronous operation (S7-1500T)

8

Instructions (S7-1500, S71500T)

9

Appendix (S7-1500, S71500T)

A

TIA Portal V16
12/2019
A5E47011129-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E47011129-AA  10/2019 Subject to change

Copyright © Siemens AG 2019. All rights reserved

Preface (S7-1500, S7-1500T)
Security information (S7-1500, S7-1500T)
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

3

Table of contents

Preface (S7-1500, S7-1500T) ................................................................................................................. 3

1 Function manuals Documentation Guide (S7-1500, S7-1500T) ............................................................. 10

2 Introduction (S7-1500, S7-1500T) ......................................................................................................... 12

2.1

Interplay of the various documents (S7-1500, S7-1500T) ..................................................... 12

2.2

Functions (S7-1500, S7-1500T)............................................................................................. 13

3 Basics of synchronous operation (S7-1500, S7-1500T) ......................................................................... 16

3.1

Synchronous axis technology object (S7-1500, S7-1500T) .................................................. 17

3.2

Cam technology object (S7-1500T) ....................................................................................... 19

3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6

Leading value coupling (S7-1500, S7-1500T) ....................................................................... 21 Setpoint coupling (S7-1500, S7-1500T) ................................................................................ 21 Actual value coupling (S7-1500T).......................................................................................... 21 Leading value delay (S7-1500T)............................................................................................ 22 Extrapolation of the leading values for actual value coupling (S7-1500T) ............................ 22 Non position controlled operation in synchronous operation (S7-1500, S7-1500T) .............. 26 Tags: Leading value coupling (S7-1500T) ............................................................................. 27

3.4 3.4.1

Simulate synchronous operation (S7-1500T) ........................................................................ 28 Tags: Synchronous operation is being simulated (S7-1500T)............................................... 28

3.5 3.5.1

Additive leading value (S7-1500T)......................................................................................... 29 Tags: Additive leading value (S7-1500T)............................................................................... 30

4 Gearing (S7-1500, S7-1500T) ............................................................................................................... 31

4.1

Gearing with "MC_GearIn" (S7-1500, S7-1500T) .................................................................. 31

4.2

Gearing with "MC_GearInPos" with specified synchronous position (S7-1500T).................. 33

4.3 4.3.1 4.3.2
4.3.3
4.3.4

Synchronization (S7-1500, S7-1500T) .................................................................................. 36 Synchronization with "MC_GearIn" (S7-1500, S7-1500T) ..................................................... 36 Synchronization in advance with "MC_GearInPos" using dynamic parameters (S71500T) .................................................................................................................................... 37 Synchronization in advance with "MC_GearInPos" using leading value distance (S71500T) .................................................................................................................................... 38 Subsequent synchronization with "MC_GearInPos" using leading value distance (S71500T) .................................................................................................................................... 40

4.4 4.4.1 4.4.2

Dynamic limits in gearing (S7-1500, S7-1500T) .................................................................... 42 Dynamic limits in gearing with "MC_GearIn" (S7-1500, S7-1500T) ...................................... 42 Dynamic limits in gearing with "MC_GearInPos" (S7-1500T) ................................................ 43

4.5

Leading value shift in gearing (S7-1500T) ............................................................................. 44

4.6

Tags: Gearing (S7-1500T) ..................................................................................................... 44

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

4

Function Manual, 12/2019, A5E47011129-AA

Table of contents

5 Camming (S7-1500T)............................................................................................................................ 45

5.1

Interpolation of the cam (S7-1500T) .......................................................................................48

5.2

Scaling and offset of the cam (S7-1500T) ..............................................................................52

5.3

Cyclic and non-cyclic application of the cam (S7-1500T).......................................................53

5.4 5.4.1 5.4.2
5.4.3
5.4.4

Synchronization (S7-1500T) ...................................................................................................55 Synchronization in advance with "MC_CamIn" using dynamic parameters (S7-1500T) ........55 Synchronization in advance with "MC_CamIn" using leading value distance (S71500T) ..................................................................................................................................... 56 Subsequent synchronization with "MC_CamIn" using leading value distance (S71500T) ..................................................................................................................................... 58 Direct synchronous setting with "MC_CamIn" (S7-1500T) .....................................................60

5.5

Dynamic limits in camming (S7-1500T) ..................................................................................61

5.6

Tags: Camming (S7-1500T) ...................................................................................................62

6 Configuring (S7-1500, S7-1500T).......................................................................................................... 63

6.1 6.1.1 6.1.2 6.1.2.1 6.1.2.2 6.1.2.3 6.1.2.4 6.1.3 6.1.4 6.1.5 6.1.5.1 6.1.5.2 6.1.5.3 6.1.5.4 6.1.5.5 6.1.5.6 6.1.5.7 6.1.5.8

Configuring the synchronous axis technology object (S7-1500, S7-1500T) ..........................63 Configuration - Basic Parameters (S7-1500, S7-1500T)........................................................63 Hardware interface (S7-1500, S7-1500T)...............................................................................64 Configuration - Drive (S7-1500, S7-1500T) ............................................................................64 Configuration - Encoder (S7-1500, S7-1500T) .......................................................................67 Configuration - Data exchange with the drive (S7-1500, S7-1500T)......................................69 Configuration - Data exchange with encoder (S7-1500, S7-1500T) ......................................72 Configuration - Leading value interconnections (S7-1500, S7-1500T) ..................................75 Configuration - Leading value settings (S7-1500, S7-1500T) ................................................77 Extended parameters (S7-1500, S7-1500T)...........................................................................78 Configuration - Mechanics (S7-1500, S7-1500T) ...................................................................78 Configuration - Dynamic Defaults (S7-1500, S7-1500T) ........................................................82 Configuration - Emergency stop (S7-1500, S7-1500T) ..........................................................84 Limits (S7-1500, S7-1500T)....................................................................................................85 Homing (S7-1500, S7-1500T).................................................................................................91 Position monitoring functions (S7-1500, S7-1500T) ...............................................................99 Configuration - Control loop (S7-1500, S7-1500T) ...............................................................101 Configuration - Actual value extrapolation (S7-1500T).........................................................103

6.2 6.2.1 6.2.2 6.2.3 6.2.3.1 6.2.3.2 6.2.3.3 6.2.3.4 6.2.3.5 6.2.3.6 6.2.3.7 6.2.3.8 6.2.3.9

Configuring the cam technology object (S7-1500T) .............................................................105 Structure of the cam editor (S7-1500T) ................................................................................105 Operating the cam editor (S7-1500T) ...................................................................................109 Graphical editor (S7-1500T) .................................................................................................112 Structure of the graphical editor (S7-1500T) ........................................................................112 Inserting a point (S7-1500T) .................................................................................................115 Insert point group (S7-1500T)...............................................................................................116 Inserting a line (S7-1500T) ...................................................................................................117 Inserting a sine (S7-1500T) ..................................................................................................118 Inserting a polynomial (S7-1500T)........................................................................................119 Inserting an inverse sine (S7-1500T)....................................................................................120 Deleting an element (S7-1500T)...........................................................................................121 Shortcut menu in the graphical editor (S7-1500T)................................................................121

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

5

Table of contents

6.2.4 6.2.4.1 6.2.4.2 6.2.4.3 6.2.5 6.2.5.1 6.2.5.2 6.2.5.3 6.2.5.4 6.2.5.5 6.2.5.6 6.2.5.7 6.2.5.8 6.2.5.9 6.2.5.10 6.2.5.11 6.2.5.12 6.2.5.13 6.2.5.14 6.2.5.15 6.2.6 6.2.6.1 6.2.6.2 6.2.6.3 6.2.7 6.2.8

Tabular editor (S7-1500T).................................................................................................... 122 Structure of the tabular editor (S7-1500T) ........................................................................... 122 Editing the curve (S7-1500T) ............................................................................................... 123 Shortcut menu in the tabular editor (S7-1500T) .................................................................. 124 Properties (Inspector window) (S7-1500T) .......................................................................... 125 Context-sensitive display (S7-1500T) .................................................................................. 125 Configuration of profile - General (S7-1500T) ..................................................................... 125 Configuration of profile - Default optimization settings (S7-1500T) ..................................... 126 Configuration of profile - System interpolation (S7-1500T) ................................................. 127 Configuration of profile - Effective runtime curves (S7-1500T)............................................ 127 Configuration - Check (S7-1500T) ....................................................................................... 129 Profile - Statistics (S7-1500T) .............................................................................................. 130 Configuration of elements - Parameters (S7-1500T)........................................................... 132 Configuration of elements - Parameters (Point) (S7-1500T) ............................................... 133 Configuration elements - Parameters (point group) (S7-1500T) ......................................... 133 Configuration of elements - Parameters (line) (S7-1500T).................................................. 136 Configuration of elements - Parameters (sine) (S7-1500T)................................................. 137 Configuration of elements - Parameters (polynomial) (S7-1500T) ...................................... 139 Configuration of elements - Parameters (inverse sine) (S7-1500T) .................................... 141 Configuration of elements - Characteristic (transition) (S7-1500T) ..................................... 142 Representation (Inspector window) (S7-1500T) .................................................................. 146 Configuration charts - Charts and curves (S7-1500T) ......................................................... 146 Configuration charts - Snap grid (S7-1500T) ....................................................................... 147 Configuration - Decimal places (S7-1500T)......................................................................... 147 Importing/exporting cam (S7-1500T) ................................................................................... 148 Dialogs in the shortcut menu (S7-1500T) ............................................................................ 151

7 Diagnostics (S7-1500, S7-1500T) ........................................................................................................153

7.1 7.1.1 7.1.2 7.1.3

Synchronous axis technology object (S7-1500, S7-1500T) ................................................ 154 Status and error bits (S7-1500, S7-1500T).......................................................................... 154 Motion status (S7-1500, S7-1500T)..................................................................................... 160 PROFIdrive telegram (S7-1500, S7-1500T) ........................................................................ 162

8 Cross-PLC synchronous operation (S7-1500T) ....................................................................................163

8.1 8.1.1 8.1.2 8.1.3 8.1.4

Basics (S7-1500T) ............................................................................................................... 163 Leading axis proxy technology object (S7-1500T)............................................................... 164 Communication via PROFINET IO with IRT (S7-1500T)..................................................... 165 Interconnection possibilities (S7-1500T).............................................................................. 166 Tags: Cross-PLC synchronous operation (S7-1500T)......................................................... 169

8.2 8.2.1 8.2.2 8.2.3 8.2.3.1 8.2.3.2 8.2.4 8.2.4.1 8.2.4.2 8.2.4.3 8.2.4.4

Configuring (S7-1500T) ....................................................................................................... 171 Setting up communication via controller-controller data exchange (S7-1500T) .................. 171 Configure provision of leading value (S7-1500T) ................................................................ 174 Configuring the leading axis proxy technology object (S7-1500T) ...................................... 174 Configuration - Basic parameters (S7-1500T) ..................................................................... 174 Configuration - Leading value settings (S7-1500T) ............................................................. 175 Working with the interconnection overview table (S7-1500T) ............................................. 177 Opening the interconnection overview (S7-1500T) ............................................................. 177 Interconnection overview (S7-1500T) .................................................................................. 178 Showing routes (S7-1500T) ................................................................................................. 180 Setting the delay times (S7-1500T) ..................................................................................... 181

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

6

Function Manual, 12/2019, A5E47011129-AA

Table of contents

8.3 8.3.1 8.3.1.1

Diagnostics (S7-1500T) ........................................................................................................182 Leading axis proxy technology object (S7-1500T) ...............................................................182 Status and error bits (S7-1500T) ..........................................................................................182

9 Instructions (S7-1500, S7-1500T)........................................................................................................ 184

9.1 9.1.1 9.1.1.1 9.1.1.2 9.1.2 9.1.2.1 9.1.2.2 9.1.3 9.1.3.1
9.1.3.2 9.1.4 9.1.4.1
9.1.4.2 9.1.5 9.1.5.1 9.1.5.2 9.1.6 9.1.6.1 9.1.7 9.1.7.1 9.1.7.2

Synchronous motion (S7-1500, S7-1500T) ..........................................................................184 MC_GearIn V5 (S7-1500, S7-1500T) ...................................................................................184 MC_GearIn: Start gearing V5 (S7-1500, S7-1500T) ............................................................184 MC_GearIn: Function chart V5 (S7-1500, S7-1500T) ..........................................................188 MC_GearInPos V5 (S7-1500T).............................................................................................189 MC_GearInPos: Start gearing with specified synchronous positions V5 (S7-1500T) ..........189 MC_GearInPos: Function chart V5 (S7-1500T)....................................................................195 MC_PhasingRelative V5 (S7-1500T)....................................................................................199 MC_PhasingRelative: Relative shift of leading value on the following axis V5 (S71500T) ................................................................................................................................... 199 MC_PhasingRelative: Function chart V5 (S7-1500T)...........................................................202 MC_PhasingAbsolute V5 (S7-1500T)...................................................................................204 MC_PhasingAbsolute: Absolute shift of leading value on the following axis V5 (S71500T) ................................................................................................................................... 204 MC_PhasingAbsolute: Function chart V5 (S7-1500T)..........................................................207 MC_CamIn V5 (S7-1500T) ...................................................................................................209 MC_CamIn: Start camming V5 (S7-1500T) ..........................................................................209 MC_CamIn: Function chart V5 (S7-1500T) ..........................................................................218 MC_SynchronizedMotionSimulation V5 (S7-1500T) ............................................................223 MC_SynchronizedMotionSimulation: Simulate synchronous operation V5 (S7-1500T) ......223 MC_LeadingValueAdditive V5 (S7-1500T) ...........................................................................225 MC_LeadingValueAdditive: Specify additive leading value V5 (S7-1500T) .........................225 MC_LeadingValueAdditive V5: Function chart (S7-1500T) ..................................................227

9.2 9.2.1 9.2.1.1 9.2.2 9.2.2.1 9.2.3 9.2.3.1

Cam (S7-1500T) ...................................................................................................................230 MC_InterpolateCam V5 (S7-1500T) .....................................................................................230 MC_InterpolateCam: Interpolate cam V5 (S7-1500T) ..........................................................230 MC_GetCamLeadingValue V5 (S7-1500T) ..........................................................................232 MC_GetCamLeadingValue: Read out leading value of a cam V5 (S7-1500T) ....................232 MC_GetCamFollowingValue V5 (S7-1500T) ........................................................................234 MC_GetCamFollowingValue: Read out following value of a cam disc V5 (S7-1500T) ........234

9.3 9.3.1 9.3.2 9.3.3 9.3.4

Override response of Motion Control jobs V5 (S7-1500, S7-1500T)....................................236 Override response V5: Homing and motion jobs (S7-1500, S7-1500T) ...............................236 Override response V5: Synchronous operation jobs (S7-1500, S7-1500T) .........................238 Override response V5: Measuring input jobs (S7-1500, S7-1500T) ....................................239 Override response V5: Kinematics motion commands (S7-1500T) .....................................240

A Appendix (S7-1500, S7-1500T) ........................................................................................................... 242

A.1 A.1.1 A.1.2 A.1.3 A.1.4 A.1.5 A.1.6 A.1.7 A.1.8

Tags of the synchronous axis technology object (S7-1500, S7-1500T)...............................242 Legend (S7-1500, S7-1500T) ...............................................................................................242 Actual values and setpoints (synchronous axis) (S7-1500, S7-1500T)................................243 "Simulation" tag (synchronous axis) (S7-1500, S7-1500T) ..................................................243 "VirtualAxis" tag (synchronous axis) (S7-1500, S7-1500T) ..................................................244 "Actor" tag (synchronous axis) (S7-1500, S7-1500T)...........................................................244 "TorqueLimiting" tag (synchronous axis) (S7-1500, S7-1500T) ...........................................246 "Clamping" tag (synchronous axis) (S7-1500, S7-1500T)....................................................246 "Sensor[1..4]" tags (synchronous axis) (S7-1500, S7-1500T)..............................................247

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

7

Table of contents

A.1.9 A.1.10 A.1.11 A.1.12 A.1.13 A.1.14 A.1.15 A.1.16 A.1.17 A.1.18 A.1.19 A.1.20 A.1.21 A.1.22 A.1.23 A.1.24 A.1.25 A.1.26 A.1.27 A.1.28 A.1.29 A.1.30 A.1.31 A.1.32 A.1.33 A.1.34 A.1.35 A.1.36 A.1.37 A.1.38 A.1.39 A.1.40 A.1.41 A.1.42 A.1.43
A.2 A.2.1 A.2.2 A.2.3 A.2.4 A.2.5 A.2.6 A.2.7 A.2.8 A.2.9 A.2.10 A.2.11

"CrossPlcSynchronousOperation" tag (synchronous axis) (S7-1500, S7-1500T)............... 249 "Extrapolation" tag (synchronous axis) (S7-1500, S7-1500T) ............................................. 250 "LoadGear" tag (synchronous axis) (S7-1500, S7-1500T) .................................................. 251 "Properties" tag (synchronous axis) (S7-1500, S7-1500T).................................................. 252 "Units" tag (synchronous axis) (S7-1500, S7-1500T) .......................................................... 252 "Mechanics" tag (synchronous axis) (S7-1500, S7-1500T) ................................................. 254 "Modulo" tag (synchronous axis) (S7-1500, S7-1500T) ...................................................... 254 "DynamicLimits" tag (synchronous axis) (S7-1500, S7-1500T)........................................... 255 "DynamicDefaults" tag (synchronous axis) (S7-1500, S7-1500T) ....................................... 255 "PositionLimits_SW" tag (synchronous axis) (S7-1500, S7-1500T) .................................... 256 "PositionLimits_HW" tag (synchronous axis) (S7-1500, S7-1500T) .................................... 256 "Homing" tag (synchronous axis) (S7-1500, S7-1500T)...................................................... 257 "Override" tag (synchronous axis) (S7-1500, S7-1500T) .................................................... 258 "PositionControl" tag (synchronous axis) (S7-1500, S7-1500T).......................................... 259 "DynamicAxisModel" tag (synchronous axis) (S7-1500, S7-1500T) ................................... 260 "FollowingError" tag (synchronous axis) (S7-1500, S7-1500T) ........................................... 261 "PositioningMonitoring" tag (synchronous axis) (S7-1500, S7-1500T)................................ 262 "StandstillSignal" tag (synchronous axis) (S7-1500, S7-1500T) ......................................... 262 "StatusProvidedLeadingValue" tag (synchronous axis) (S7-1500, S7-1500T) ................... 263 "StatusPositioning" tag (synchronous axis) (S7-1500, S7-1500T) ...................................... 263 "StatusDrive" tag (synchronous axis) (S7-1500, S7-1500T) ............................................... 264 "StatusServo" tag (synchronous axis) (S7-1500, S7-1500T) .............................................. 265 "StatusSensor[1..4]" tags (synchronous axis) (S7-1500, S7-1500T)................................... 266 "StatusExtrapolation" tag (synchronous axis) (S7-1500, S7-1500T) ................................... 267 "StatusSynchronizedMotion" tag (synchronous axis) (S7-1500, S7-1500T) ....................... 267 "StatusKinematicsMotion" tag (synchronous axis) (S7-1500, S7-1500T) ........................... 269 "StatusTorqueData" tag (synchronous axis) (S7-1500, S7-1500T) ..................................... 270 "StatusMotionIn" tag (synchronous axis) (S7-1500, S7-1500T) .......................................... 270 "StatusWord" tag (synchronous axis) (S7-1500, S7-1500T) ............................................... 271 "StatusWord2" tag (synchronous axis) (S7-1500, S7-1500T) ............................................. 274 "ErrorWord" tag (synchronous axis) (S7-1500, S7-1500T) ................................................. 274 "ErrorDetail" tag (synchronous axis) (S7-1500, S7-1500T) ................................................. 276 "WarningWord" tag (synchronous axis) (S7-1500, S7-1500T) ............................................ 277 "ControlPanel" tag (synchronous axis) (S7-1500, S7-1500T) ............................................. 278 "InternalToTrace" tag (synchronous axis) (S7-1500, S7-1500T)......................................... 278
Tags of the cam technology object (S7-1500T) ................................................................... 279 Legend (S7-1500T) .............................................................................................................. 279 "Point[1..1000]" tag (cam) (S7-1500T)................................................................................. 280 "ValidPoints[1..1000]" tag (cam) (S7-1500T) ....................................................................... 280 "Segment[1..50]" tag (cam) (S7-1500T) .............................................................................. 281 "ValidSegments[1..50]" tag (cam) (S7-1500T)..................................................................... 282 "InterpolationSettings" tag (cam) (S7-1500T) ...................................................................... 282 "StatusCam" tag (cam) (S7-1500T) ..................................................................................... 283 "StatusWord" tag (cam) (S7-1500T) .................................................................................... 284 "ErrorWord" tag (cam) (S7-1500T) ...................................................................................... 285 "ErrorDetail" tag (cam) (S7-1500T) ...................................................................................... 286 "WarningWord" tag (cam) (S7-1500T) ................................................................................. 287

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

8

Function Manual, 12/2019, A5E47011129-AA

Table of contents

A.3 A.3.1 A.3.2 A.3.3 A.3.4 A.3.5 A.3.6 A.3.7 A.3.8 A.3.9

Tags of the leading axis proxy technology object (S7-1500T)..............................................288 Legend (S7-1500T)...............................................................................................................288 Leading value (leading axis proxy) (S7-1500T) ....................................................................289 "Interface" tag (leading axis proxy) (S7-1500T)....................................................................289 "Parameter" tag (leading axis proxy) (S7-1500T) .................................................................290 "StatusExternalLeadingValue" tag (leading axis proxy) (S7-1500T) ....................................290 "StatusWord" tag (leading axis proxy) (S7-1500T) ...............................................................291 "'ErrorWord" tag (leading axis proxy) (S7-1500T) ................................................................292 "ErrorDetail" tag (leading axis proxy) (S7-1500T) ................................................................293 "WarningWord" tag (leading axis proxy) (S7-1500T)............................................................294

Index................................................................................................................................................... 295

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

9

Function manuals Documentation Guide (S7-1500, S7-1500T)

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

10

Function Manual, 12/2019, A5E47011129-AA

Function manuals Documentation Guide (S7-1500, S7-1500T)

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

11

Introduction (S7-1500, S7-1500T)

2

2.1

Interplay of the various documents (S7-1500, S7-1500T)
For a better overview, the documentation of the Motion Control functions is divided into the following documents:

Documentation

Description

S7-1500/S7-1500T Motion Control overview

This documentation describes the general Motion Control functions independent of technology objects.

Function manual "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens. com/cs/ww/en/view/109766459)

Using S7-1500/S7-1500T axis functions

This documentation describes the Motion Control functions for the following technology objects:

Function manual "S7-1500/

· Speed axis

S7-1500T Axis functions" (https://support.industry.siemens.

·

Positioning axis

com/cs/ww/en/view/109766462) · External encoder

Using S7-1500/S7-1500T measuring input and output cam functions
Function manual "S7-1500/ S7-1500T Measuring input and output cam functions" (https://support.industry.siemens. com/cs/ww/en/view/109766466)

This documentation describes the Motion Control functions for the following technology objects:
· Measuring input · Output cam · Cam track

Using S7-1500/S7-1500T synchronous operation functions
Function manual "S7-1500/ S7-1500T Synchronous operation functions" (https://support.industry.siemens. com/cs/ww/en/view/109766464)

This documentation describes the Motion Control functions for the following technology objects:
· Synchronous axis · Cam (S7-1500T) · Leading axis proxy (S7-1500T)

Using S7-1500T kinematics functions
Function manual "S7-1500T Kinematics functions" (https://support.industry.siemens. com/cs/ww/en/view/109766463)

This documentation describes the Motion Control functions for the following technology objects:
· Kinematics (S7-1500T)

Additional information
You can find an overview and important links to the topic "SIMATIC Motion Control" in the Siemens Industry Online Support under the entry ID 109751049 (https://support.industry.siemens.com/cs/ww/en/view/109751049).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

12

Function Manual, 12/2019, A5E47011129-AA

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

2.2

Functions (S7-1500, S7-1500T)

You execute the functions of the synchronous axis, cam and leading axis proxy technology objects using Motion Control instructions in your user program or using the TIA Portal (under "Technology object > Commissioning").

The following table shows the Motion Control instructions that are supported by the technology objects:

Motion Control instruction
"MC_Power" Enable, disable technology object "MC_Reset" Acknowledge alarms, restart technology objects "MC_Home" Home technology object, set home position "MC_Halt" Pause axis "MC_MoveAbsolute" Position axis absolutely "MC_MoveRelative" Position axis relatively "MC_MoveVelocity" Move axis with velocity/speed setpoint "MC_MoveJog" Move axis in jog mode "MC_MoveSuperimposed" Position axes overlapping "MC_SetSensor" Set alternative encoder as operationally active encoder "MC_Stop" Stop and disable axis "MC_SetAxisSTW" Controlling bits of control word 1 and control word 2 "MC_WriteParameter" Write parameter

Validity

Technology object

S7-1500 X

S7-1500T Synchronous axis (Page 17)

X

X

Cam (Page 19) -

Leading axis proxy (Page 164)
-

X

X

X

X

X

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

-

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

13

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

Motion Control instruction
"MC_GearIn" Start gearing "MC_GearInPos" Start gearing with specified synchronous positions "MC_PhasingRelative" Relative shift of leading value on the following axis "MC_PhasingAbsolute" Absolute shift of leading value on the following axis "MC_CamIn" Start camming "MC_SynchronizedMotionSimulation" Simulate synchronous operation "MC_LeadingValueAdditive" Specify additive leading value "MC_InterpolateCam" Interpolate cam disc "MC_GetCamLeadingValue" Read out leading value of a cam "MC_GetCamFollowingValue" Read out following value of a cam disc "MC_MotionInVelocity" Specify motion setpoints "MC_MotionInPosition" Specify motion setpoints "MC_TorqueAdditive" Specify additive torque "MC_TorqueRange" Set high and low torque limits "MC_TorqueLimiting" Activate/deactivate force/torque limit / fixed stop detection

Validity

Technology object

S7-1500 S7-1500T Synchronous axis Cam (Page 19)

Leading axis

(Page 17)

proxy (Page 164)

X

X

X

-

X

-

X

X

-

X

-

X

X

-

X

-

X

X

-

X

-

X

X

X

X

-

X

X

-

-

-

X

X

-

-

-

X

-

X

-

-

X

-

X

-

-

X

-

X

-

-

X

X

-

-

-

X

X

-

-

X

X

X

-

-

X

X

X

-

-

X

X

X

-

-

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

14

Function Manual, 12/2019, A5E47011129-AA

Introduction (S7-1500, S7-1500T) 2.2 Functions (S7-1500, S7-1500T)

The following table shows the functions that are supported by technology objects in the TIA Portal:

"Axis control panel"
Move and home axes using the TIA Portal
"Optimization"
Optimization of closed loop position control

Synchronous axis (Page 17) X
X

Technology object Cam (Page 19) -
-

Leading axis proxy (Page 164) -
-

In addition to the functionality of the S7-1500 CPU, the S7-1500T CPU provides additional functions and technology objects:

Additional functions Multiple encoders for positioning axis/synchronous axis
Actual value coupling (Page 21)
Gearing with "MC_GearInPos" (Page 33)
Cam technology object (Page 19)
Camming with "MC_CamIn" (Page 45) Synchronization in advance using leading value distance (Page 38) or dynamic parameters (Page 37) Cross-PLC synchronous operation (Page 163) Leading axis proxy technology object (Page 164)

Description
Up to four encoders can be connected to a positioning axis/synchronous axis. The encoders can be switched over during operation. Only one encoder at a time is active for closed loop position control.
As an alternative to the setpoint, the extrapolated actual value can be interconnected as a leading value for synchronous operation. As a result, an external encoder technology object can also be used as a leading value.
During gearing, the leading axis and following axis are coupled, similar to a mechanical gear unit, by a linear synchronous operation function. You use the gear ratio to specify the synchronous operation function. The synchronous positions of the leading and following axes that specify the relationship of the axes to one another can be specified in the Motion Control instruction "MC_GearInPos".
The cam technology object (TO_Cam) defines a function f(x) by means of interpolation points and/or segments. Gaps between the defined interpolation points and segments of the cam are closed by interpolation during runtime of the user program.
During camming, the leading axis and following axis are coupled by a synchronous operation function, which you specify using a cam.
Gearing is synchronized with "MC_GearInPos" and camming is synchronized with "MC_CamIn" subsequently or in advance to user-specified reference positions.
Cross-PLC synchronous operation enables synchronous operation over multiple controllers. Leading and following axes can be configured on different controllers.
With cross-PLC synchronous operation, the leading axis proxy technology object (TO_LeadingAxisProxy) represents the leading axis for local synchronous operation within a CPU. The leading axis proxy evaluates the leading value telegram and provides the external leading value for the local synchronous axes.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

15

Basics of synchronous operation (S7-1500, S71500T)

3

In a synchronous operation, a following axis follows a leading axis. The synchronous operation relationship between the leading and following axes is specified by a synchronous operation function.

Gearing

During gearing, the position of the following axis results from the position of the leading axis multiplied by the gear ratio. You specify the gear ratio as a ratio of two integers. The result is a linear synchronous operation function.

Camming

During camming, the leading axis and following axis are coupled by a synchronous operation function, which you specify using a cam. The transmission behavior during camming is expressed by the cam curve.

Cross-PLC synchronous operation
With cross-PLC synchronous operation, you realize synchronous operations (gearing or camming) between axes that are on different CPUs. The synchronous operation function is executed on the CPU of the following axis.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

16

Function Manual, 12/2019, A5E47011129-AA

Basics of synchronous operation (S7-1500, S7-1500T) 3.1 Synchronous axis technology object (S7-1500, S7-1500T)

3.1

Synchronous axis technology object (S7-1500, S7-1500T)

The synchronous axis technology object includes all functions of the positioning axis technology object.

A synchronous axis can also follow the motions of a leading axis. The synchronous operation relationship between the leading and following axes is specified by a synchronous operation function.

You can find an overview of the functions of the synchronous axis technology object in the Functions (Page 13) section.

The figure below shows the basic principle of operation of the synchronous axis technology object:

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

17

Basics of synchronous operation (S7-1500, S7-1500T) 3.1 Synchronous axis technology object (S7-1500, S7-1500T)
Synchronous operation phases
By means of synchronous operation, a following axis can be linked to a leading axis and move synchronously with it. The synchronous operation proceeds in the following phases:  Pending synchronous operation (S7-1500T)
The following axis waits for the start conditions of the synchronizing motion to be met.  Synchronization
The following axis is synchronized to the leading value.  Synchronous motion
The following axis follows the position of the leading axis according to the synchronous operation function.  Synchronous operation override Active synchronous operation is overridden by motion jobs (e.g. "MC_Halt") to the following axis. Different dynamic limits are in effect in the phases, as described in the sections "Dynamic limits in gearing (Page 42)" and "Dynamic limits in camming (Page 61)". Avoid homing the leading axis during an active synchronous operation. Homing the leading axis during synchronous operation corresponds to a setpoint jump on the following axis. The following axis compensates for the jump according to the synchronous operation function and limited only to the maximum speed of the drive.
Note The leading values and following values are coupled without conversion in the respective configured user unit. If, for example, a linear leading axis moves by 10 mm, a rotary following axis moves by 10° with a gear ratio of 1:1.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

18

Function Manual, 12/2019, A5E47011129-AA

Basics of synchronous operation (S7-1500, S7-1500T) 3.2 Cam technology object (S7-1500T)

3.2

Cam technology object (S7-1500T)

The cam technology object defines a transfer function y = f(x). The dependency of an output value on an input value is described in this transfer function in a unit-neutral manner. A cam technology object can be used multiple times.

You can find an overview of the functions of the cam technology object in the Functions (Page 13) section.

You define the function y = f(x) in the configuration of the technology object (Page 105) using interpolation points and/or segments. Ranges between interpolation points and segments are interpolated using the Motion Control instruction "MC_InterpolateCam (Page 230)". The settings can be changed/redefined during runtime of the user program with the technology data block according to the appendix "Tags of the cam technology object (Page 279)".

An interpolated cam can be applied as a synchronous operation function for camming (Page 45).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

19

Basics of synchronous operation (S7-1500, S7-1500T) 3.2 Cam technology object (S7-1500T)
The figure below shows the basic operating principle of the cam technology object:

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

20

Function Manual, 12/2019, A5E47011129-AA

3.3
3.3.1 3.3.2

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)
Leading value coupling (S7-1500, S7-1500T)
The leading value for synchronous operation is provided by a leading axis, a leading axis proxy (only S7-1500T) or an external encoder (only S7-1500T). The leading value is specified and coupled in the user program with the call of the corresponding Motion Control instruction for synchronous operation. The leading value is switched when you call the Motion Control instruction again specifying a different leading axis. The following rules apply to the leading value coupling:  A leading axis, a leading axis proxy (only S7-1500T) or an external encoder
(only S7-1500T) can output the leading value for multiple following axes.  The synchronous axis can be interconnected with different leading values. All
interconnections required during operation must be set up during configuration of the technology object.  Only one leading value at a time is coupled and evaluated.
Setpoint coupling (S7-1500, S7-1500T)
With setpoint coupling, the position setpoint of the leading axis is used as the leading value for synchronous operation. The position setpoint of the following technology objects can be interconnected as the leading value for synchronous operation:  Positioning axis  Synchronous axis  Leading axis proxy (only S7-1500T)
Actual value coupling (S7-1500T)
For applications in which setpoint coupling is not possible (e.g. when using an external encoder) or does not make sense from a technical perspective, the S7-1500T CPU additionally offers actual value coupling for synchronous operation. With actual value coupling, the extrapolated actual position (Page 22) of a technology object is used as the leading value. The actual position of the following technology objects can used as the leading value:  Positioning axis  Synchronous axis  External encoder

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

21

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)

3.3.3

Leading value delay (S7-1500T)
In a cross-PLC synchronous operation (Page 163), you define with the "Delayed" setting whether the leading value should be delayed for a local synchronous operation. The leading value of the following technology objects can be delayed:  Positioning axis  Synchronous axis  External encoder

3.3.4

Extrapolation of the leading values for actual value coupling (S7-1500T)
With actual value coupling (Page 21), delay times result from the processing of the actual values. To compensate for these delay times, the actual value is extrapolated on the leading value side. This means that the leading value is extrapolated based on previously known values.
Delay times at constant velocity or at constant acceleration or deceleration can be compensated for with the extrapolation. For technical reasons, changes of acceleration or deceleration (jerk) during extrapolation always cause a displacement of the following axis relative to the leading value.
The effective extrapolation time consists of a leading axis-dependent part, a configured following axis-dependent part and, optionally, the time from the cross-PLC synchronous operation:
 Leading axis-dependent part
The part caused by the leading axis is calculated automatically and displayed at the leading axis in the "<TO>.Extrapolation.LeadingAxisDependentTime" tag of the technology object. You can disable the leading axis-dependent part using the tag "<TO>.Extrapolation.Settings.SystemDefinedExtrapolation" = 0.
 Following axis-caused part
The part caused by the leading axis is calculated automatically and displayed at the following axis in the "<TO>.StatusPositioning.SetpointExecutionTime" tag of the technology object. You configure the value under "Technology object > Configuration > Extended parameters > Actual value extrapolation" (<TO>.Extrapolation.FollowingAxisDependentTime).
 Time from the cross-PLC synchronous operation
For cross-PLC synchronous operation, the output delay of the leading value at the locally coupled following axes is automatically taken into account. The displayed value is equal to the leading value delay and corresponds to the delay time entered at the leading axis or at the external encoder. You configure the delay time under "Technology object > Configuration > Leading value settings" (<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

22

Function Manual, 12/2019, A5E47011129-AA

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)
The extrapolated actual value is evaluated with a configurable hysteresis before it is output as the leading value. The hysteresis evaluation prevents an inversion of the leading value, which may result from extrapolation of a noisy value.
NOTICE Machine damage If you change the extrapolation time during user program runtime in increments that are too large, damage to the machine may occur. Change the extrapolation time only by a small amount.
The following diagram shows the sequence of the actual value extrapolation:

1)

Actual position value

2)

Actual velocity value

3)

Actual position filters T1 (<TO>.Extrapolation.PositionFilter.T1) and T2 (<TO>.Extrapolation.PositionFilter.T2)

4)

Actual velocity filters T1 (<TO>.Extrapolation.VelocityFilter.T1) and T2 (<TO>.Extrapolation.VelocityFilter.T2)

5)

Tolerance band width for velocity (<TO>.Extrapolation.VelocityTolerance.Range)

6)

Extrapolation time component caused by the leading axis (<TO>.Extrapolation.LeadingAxisDependentTime)

7)

Extrapolation time component caused by the following axis (<TO>.Extrapolation.FollowingAxisDependentTime)

8)

Portion of the extrapolation time from cross-PLC synchronous operation

(<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime)

9)

Hysteresis value in the configured unit of length (<TO>.Extrapolation.Hysteresis.Value)

10) Extrapolated position value

11) Differentiation of the extrapolated leading value position

12) Extrapolated velocity leading value depending on the switch position:

· Leading value velocity from filtered actual velocity ("<TO>.Extrapolation.Settings.ExtrapolatedVelocityMode" = 0)

· Leading value velocity from differentiation of the extrapolated leading value position ("<TO>.Extrapolation.Settings.ExtrapolatedVelocityMode" = 1)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

23

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)
Filtering the actual values
Noisy encoder signals lead to high velocity step changes, which also affect the extrapolation. These step changes can be reduced or compensated for by using suitable filter settings. The actual position filter is a PT2 filter. The velocity filter is a PT2 filter with configurable tolerance bandwidth. The actual position value is first blended by the actual position filter. The actual velocity value is blended by the velocity filter and further "stabilized" by the tolerance band. The filtered actual position is then extrapolated taking into account the filtered velocity. The leading value velocity results from the differentiation of the extrapolated leading value position. The filtered actual velocity can optionally be used as leading value velocity directly and without extrapolation ("<TO>.Extrapolation.Settings.ExtrapolatedVelocityMode" = 0). Recommended settings. Set the total of the time constants T1 and T2 of the position filter significantly smaller than the time constants T1 and T2 of the velocity filter.
Tolerance band
The tolerance band acts on the filtered velocity value in the interpolation cycle. The position of the tolerance band is automatically shifted in the direction of the velocity value as soon as it changes in one direction by more than half of the tolerance band from the last output value. A new output value is simultaneously formed with the shift of the tolerance band. This corresponds to the filtered velocity value minus half the tolerance band. As long as the velocity value remains within the tolerance band, no new output value is formed.
 Tolerance band
Filtered velocity before tolerance band Filtered velocity according to tolerance band

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

24

Function Manual, 12/2019, A5E47011129-AA

Hysteresis

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)
The hysteresis acts on the filtered extrapolated position value in the interpolation cycle. A change of direction only takes effect when the position value changes in the direction opposite at least by the hysteresis value. The hysteresis/reversal tolerance prevents undesired reversing of the leading value on position reversal within the tolerance band.



Hysteresis/reversal tolerance

Extrapolated position before hysteresis/reversal tolerance

Extrapolated position after hysteresis/reversal tolerance

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

25

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)

3.3.5

Non position controlled operation in synchronous operation (S7-1500, S71500T)

Synchronous operation with setpoint coupling
A following axis is set into position-controlled operation with the start of a synchronous operation job. If the leading axis is in non-position-controlled operation at the start of the synchronous operation, the synchronous operation job remains waiting. Synchronization is started only after position control has been activated and the start position of the synchronization has been reached.
Note
If the leading axis is set to the non-position-controlled mode during active synchronization, your setpoint is then set to zero. A setpoint step change is obtained as a result of coupling the setpoint of following axis. The setpoint step change is compensated according to the constant function. The only limiting factor is the maximum speed of the drive.

Synchronous operation with actual value coupling (S7-1500T)
A following axis is set into position-controlled operation with the start of a synchronous operation job. If the leading axis is in non-position-controlled operation at the start of the synchronous operation and the actual values are valid, synchronization is started.
If the leading axis is set to the non-position-controlled mode during active synchronization, the synchronization remains active.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

26

Function Manual, 12/2019, A5E47011129-AA

Basics of synchronous operation (S7-1500, S7-1500T) 3.3 Leading value coupling (S7-1500, S7-1500T)

3.3.6

Tags: Leading value coupling (S7-1500T)
The following technology object tags are relevant for the actual value extrapolation:

Configuration Tag <TO>.CrossPlcSynchronousOperation. LocalLeadingValueDelayTime <TO>.Extrapolation.LeadingAxisDependent Time
<TO>.Extrapolation.FollowingAxisDependent Time
<TO>.Extrapolation.Settings.SystemDefined Extrapolation
<TO>.Extrapolation.Settings.Extrapolated VelocityMode
<TO>.Extrapolation.PositionFilter.T1 <TO>.Extrapolation.PositionFilter.T2 <TO>.Extrapolation.VelocityFilter.T1 <TO>.Extrapolation.VelocityFilter.T2 <TO>.Extrapolation.VelocityTolerance.Range <TO>.Extrapolation.Hysteresis.Value

Description

(For cross-PLC synchronous operation)

The delay time of leading value output to the local following axes

(for the leading axis)

Leading axis dependent portion of the extrapolation time, which results from Ti, Tipo, and TFilter.

(for the leading axis)

Following-axis dependent portion of the extrapolation time

Enter the value from the "<TO>.StatusPositioning.SetpointExecutionTime" tag of the following axis (unchanged or compensated with user-specific times).

Effectiveness of the leading axis portion of the extrapolation time (<TO>.Extrapolation.LeadingAxisDependentTime)

0

Not effective

1

Effective

0

"FilteredVelocity"

Leading value velocity from filtered actual velocity

1

"VelocityByDifferentiation"

Leading value velocity from differentiation of the extrapolated leading value position

Position filter time constant T1

Position filter time constant T2

Velocity filter time constant T1

Velocity filter time constant T2

Tolerance band width for velocity

Hysteresis value (in the configured unit of length)

Status indicators

Tag

Description

<TO>.StatusPositioning.SetpointExecutionTime Setpoint execution time of the axis

(Results from TIpo, Tvtc or 1/kv, TSend and TO of the axis)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

27

Basics of synchronous operation (S7-1500, S7-1500T) 3.4 Simulate synchronous operation (S7-1500T)

3.4

Simulate synchronous operation (S7-1500T)

An active synchronous operation connection is triggered when access enables are removed or four motion jobs on a following axis. By simulating synchronous operation, you keep the synchronous operation active without overriding the synchronous operation relationship.

With the "MC_SynchronizedMotionSimulation" Motion Control instruction, you can simulate an active synchronous operation in simulation. The leading axis should be stopped at this time.

The synchronized motion simulation only affects the synchronized motion of the following axis. Setpoint changes from the synchronous operation are no longer taken into consideration at the axis and no longer forwarded to the drive. The setpoint output to the drive continues to come from the possibly superimposed motions of the following axis. The same applies to single axis commands during the synchronous operation simulation.

Start a "MC_SynchronizedMotionSimulation" job only if the following axis is in synchronous operation. The status "Synchronous" is then set ("<TO>.StatusWord.X22" = TRUE). If the following axis is not or not yet in synchronous operation, the instruction is aborted with error.

The synchronous operation remains active in simulation, including the motions through single axis jobs or with disabling the leading and/or following axis, e.g. by opening a protective door. The following axis does not have to be synchronized again after the synchronized motion simulation has been completed. The synchronous operation remains in "synchronous" status.

When the simulation is ended, the setpoints of the synchronous operation are effective immediately at the axis. Therefore, make sure that the setpoints of the following axis correspond to the setpoints from the synchronous operation relationship when simulation is ended.

See also

MC_SynchronizedMotionSimulation: Simulate synchronous operation V5 (Page 223)

3.4.1

Tags: Synchronous operation is being simulated (S7-1500T)
The following tags of the technology object are relevant for simulation:

Status indicators
Tag <TO>.StatusSynchronizedMotion.StatusWord. X3 (InSimulation)

Description Simulation of synchronous operation FALSE Not simulated TRUE Simulated

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

28

Function Manual, 12/2019, A5E47011129-AA

Basics of synchronous operation (S7-1500, S7-1500T) 3.5 Additive leading value (S7-1500T)

3.5

Additive leading value (S7-1500T)

In addition to the active leading value on a following axis, you can also specify an additive leading value. You therefore have the possibility on the following axis to overlap the leading value from the application. With the "MC_LeadingValueAdditive" Motion Control instruction, an additive leading value becomes effective directly and without dynamic limitation at the following axis. Value changes take effect directly. The additive leading value is composed of the position, the velocity and the acceleration.

The following figure shows the general influence of the additive leading value on the following axis:

The leading axis is selected with the input parameter "Master" at the synchronous operation function. The following axis, on which the additive leading value acts, is defined by the input parameter "Axis" from the "MC_LeadingValueAdditive" job.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

29

Basics of synchronous operation (S7-1500, S7-1500T) 3.5 Additive leading value (S7-1500T)

The effect of a "MC_LeadingValueAdditive" job depends on the status of the synchronous operation:

Status of synchronous operation Not active or pending Synchronization
Synchronous motion

Effect on: · Start position of synchronization · Following axis dynamic response
· Synchronous position · Phase position · Following axis dynamic response
· Phase position · Following axis dynamic response

With a leading value switchover, the additive leading value still remains effective.
A "MC_LeadingValueAdditive" job can be started independently of the synchronous operation job. Only one "MC_LeadingValueAdditive" job can be active on a following axis.

See also

MC_LeadingValueAdditive: Specify additive leading value V5 (Page 225) Synchronous motion (Page 184)

3.5.1

Tags: Additive leading value (S7-1500T)
The following technology object tags are relevant for the additive leading value:

Status indicators
Tag
<TO>.StatusSynchronizedMotion.StatusWord. X4 (LeadingValueAdditiveCommand)
<TO>.StatusSynchronizedMotion.Effective LeadingValue.Position
<TO>.StatusSynchronizedMotion.Effective LeadingValue.Velocity
<TO>.StatusSynchronizedMotion.Effective LeadingValue.Acceleration

Description Additive leading value via "MC_LeadingValueAdditive"
Effective position of the leading value of the synchronous operation function Effective velocity of the leading value of the synchronous operation function Effective acceleration of the leading value of the synchronous operation function

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

30

Function Manual, 12/2019, A5E47011129-AA

Gearing (S7-1500, S7-1500T)

4

4.1

Gearing with "MC_GearIn" (S7-1500, S7-1500T)

During gearing, the position of the following axis results from the position of the leading axis multiplied by the gear ratio. You specify the gear ratio as a ratio of two integers. The result is a linear synchronous operation function.

Synchronous travel with the Motion Control instruction "MC_GearIn (Page 184)" begins after synchronization when the following axis has reached the velocity and acceleration of the leading axis, taking into account the gear ratio.

Synchronization
Synchronization establishes the relationship between the leading axis and following axis. Synchronization begins with the start of an "MC_GearIn" job.
For more detailed information on synchronization, refer to section "Synchronization with "MC_GearIn" (Page 36)".

Synchronous motion
When a synchronous axis is synchronized to a leading value, the "Synchronous" status is indicated by parameter "MC_GearIn.InGear" = TRUE as well as in the "<TO>.StatusWord.X22 (Synchronous)" tag of the technology object. The following axis follows the dynamics of the leading axis according to the gear ratio.
The transmission behavior during gearing is expressed by a linear relationship between the leading value and the following value.

Slope of line/transmission ratio

Gear ratio = "MC_GearIn.RatioNumerator"/"MC_GearIn.RatioDenominator"

Synchronization



Position starting from which the leading and following axes move synchronously

The following value is calculated according to the following function:

Position of following axis (following value) = Position  of following axis + gear ratio × (Position of leading axis - Position  of leading axis)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

31

Gearing (S7-1500, S7-1500T) 4.1 Gearing with "MC_GearIn" (S7-1500, S7-1500T)

Direction

The numerator of the gear ratio is specified as positive or negative. This yields the following behavior:
 Positive gear ratio: The leading and following axes move in the same direction.
 Negative gear ratio: The following axis moves in the opposite direction to the leading axis.

See also

Tags: Gearing (Page 44) MC_GearIn: Start gearing V5 (Page 184) Dynamic limits in gearing (Page 42)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

32

Function Manual, 12/2019, A5E47011129-AA

Gearing (S7-1500, S7-1500T) 4.2 Gearing with "MC_GearInPos" with specified synchronous position (S7-1500T)

4.2

Gearing with "MC_GearInPos" with specified synchronous position

(S7-1500T)

During gearing, the position of the following axis results from the position of the leading axis multiplied by the gear ratio. You specify the gear ratio as a ratio of two integers. The result is a linear synchronous operation function.

Synchronous travel with the Motion Control instruction "MC_GearInPos (Page 189)" begins after synchronization.

Synchronization
Synchronization establishes the relationship between the leading axis and following axis. The following options are available for this:

Synchronization mode Synchronization in advance · Using dynamic parameters · Using leading value distance Subsequent synchronization · Using leading value distance

Description Synchronization begins in such a way that the leading and following axis are synchronous when the synchronous positions are reached.
Synchronization begins as soon as the leading value has reached the synchronous position of the leading axis.

The synchronous positions represent the relationship of the two axes to one another. The start of movement of the following axis is defined depending on the selected synchronization mode.
You can find more detailed information on synchronization in the following sections:
 Synchronization in advance with "MC_GearInPos" using dynamic parameters (Page 37)
 Synchronization in advance with "MC_GearInPos" using leading value distance (Page 38)
 Subsequent synchronization with "MC_GearInPos" using leading value distance (Page 40)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

33

Gearing (S7-1500, S7-1500T) 4.2 Gearing with "MC_GearInPos" with specified synchronous position (S7-1500T)
Synchronous motion
Synchronous operation is reached after the synchronization. The "Synchronous" status is indicated by parameter "MC_GearInPos.InSync" = TRUE as well as in the "<TO>.StatusWord.X22 (Synchronous)" tag of the technology object. The following axis follows the position of the leading axis according to the synchronous positions and the gear ratio.
The transmission behavior during gearing is expressed by a linear relationship between the leading value and the following value.

Slope of line/transmission ratio

Gear ratio =

"MC_GearInPos.RatioNumerator"/"MC_GearInPos.RatioDenominator"

Synchronization in advance

Subsequent synchronization



Leading value distance with synchronization in advance



Leading value distance with subsequent synchronization

The following value is calculated according to the following function:

Position of following axis (following value) = Synchronous position of following axis + gear ratio × (Position of leading axis - Synchronous position of leading axis)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

34

Function Manual, 12/2019, A5E47011129-AA

Direction See also

Gearing (S7-1500, S7-1500T) 4.2 Gearing with "MC_GearInPos" with specified synchronous position (S7-1500T)
The numerator of the gear ratio is specified as positive or negative. This yields the following behavior:  Positive gear ratio:
The leading and following axes move in the same direction.  Negative gear ratio:
The following axis moves in the opposite direction to the leading axis.
MC_GearInPos: Start gearing with specified synchronous positions V5 (Page 189) MC_PhasingAbsolute: Absolute shift of leading value on the following axis V5 (Page 204) MC_PhasingRelative: Relative shift of leading value on the following axis V5 (Page 199) Dynamic limits in gearing (Page 42)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

35

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)

4.3

Synchronization (S7-1500, S7-1500T)

4.3.1

Synchronization with "MC_GearIn" (S7-1500, S7-1500T)
For synchronization using the Motion Control instruction "MC_GearIn", you specify the dynamics (acceleration, deceleration, jerk). Synchronization begins after the "MC_GearIn" job starts. Active motion jobs are overridden.
The synchronization duration and distance are dependent on the following parameters:
 Start time of the "MC_GearIn" job
 Dynamics of the following axis at the start time
 Dynamic value settings for "MC_GearIn"
 Dynamics of the leading axis
The synchronization is indicated in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object.
If the following axis has reached the velocity and the acceleration of the leading axis, taking into account the gear ratio, the following axis is synchronized. The following axis travels synchronously with the leading axis. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InGear" = TRUE.

See also

Gearing with "MC_GearIn" (Page 31) MC_GearIn: Start gearing V5 (Page 184)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

36

Function Manual, 12/2019, A5E47011129-AA

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)

4.3.2

Synchronization in advance with "MC_GearInPos" using dynamic parameters (S7-1500T)
For synchronization in advance using dynamic parameters with a "MC_GearInPos" job, you specify the dynamics (velocity, acceleration, deceleration, jerk). Also specify the synchronous positions of the leading and following axis, which define the relationship of the axes to one another. For synchronization in advance, the synchronous position is the position starting from which the leading and following axes are synchronous. The required travel distance (synchronization length) is calculated by the system.
After the start of the "MC_GearInPos" job with "SyncProfileReference" = 0, a motion profile for the following axis is calculated continuously. The motion profile is calculated based on the following parameters:
 Specified synchronous positions of the leading and following axis at the Motion Control instruction
 Specified dynamics of the Motion Control instruction
 Current position and dynamics of the leading and following axes
 Synchronous operation function
The calculation determines the synchronization length and thus the start position of the leading axis for the synchronization.
The status "Waiting" is displayed at the following axis until the leading value has reached the start position (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 2).
The following axis begins to synchronize as soon as the leading value has reached the start position. The start position of the leading axis is derived in the following way:
Start position = Synchronous position of leading axis - Synchronization length
The synchronization is indicated by parameter "MC_GearInPos.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag.
As soon as the leading axis has reached the synchronous position, the following axis is synchronized. The following axis travels synchronously with the leading axis. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
If the leading axis is already in its synchronous position before synchronization, the following axis must also be moved to its synchronous position. In this case, establish the synchronization with an "MC_GearIn" job.

See also

Gearing with "MC_GearInPos" with specified synchronous position (Page 33) MC_GearInPos: Start gearing with specified synchronous positions V5 (Page 189)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

37

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)

4.3.3

Synchronization in advance with "MC_GearInPos" using leading value distance (S7-1500T)
For synchronization in advance using the leading value distance with an "MC_GearInPos" job, you specify the synchronization length. Also specify the synchronous positions of the leading and following axis, which define the relationship of the axes to one another. For synchronization in advance, the synchronous position is the position starting from which the leading and following axes are synchronous.

 Time when synchronization starts  Time when synchronization is complete
After the start of the "MC_GearInPos" job with "SyncProfileReference" = 1, a motion profile with the required dynamics is calculated for the following axis depending on the specified leading value distance. For this, the leading axis must be at least the leading value distance from the synchronous position.
The status "Waiting" is displayed at the following axis until the leading value has reached the start position (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 2).
The following axis begins to synchronize as soon as the leading value has reached the start position. The start position of the leading axis is derived in the following way:
Start position = Synchronous position of leading axis - Synchronization length
The synchronization is indicated by parameter "MC_GearInPos.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

38

Function Manual, 12/2019, A5E47011129-AA

See also

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile in accordance with the synchronous operation function. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag. When the leading axis has reached the synchronous position, the following axis is synchronized. The following axis travels synchronously with the leading axis. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
Gearing with "MC_GearInPos" with specified synchronous position (Page 33) MC_GearInPos: Start gearing with specified synchronous positions V5 (Page 189)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

39

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)

4.3.4

Subsequent synchronization with "MC_GearInPos" using leading value distance (S7-1500T)
For subsequent synchronization using the leading value distance with an "MC_GearInPos" job, you specify the synchronization length. Also specify the synchronous positions of the leading and following axis, which define the relationship of the axes to one another. For synchronization in advance, the synchronous position of the leading axis is the start position for synchronization.

 Time when synchronization starts  Time when synchronization is complete
After the start of the "MC_GearInPos" job with "SyncProfileReference" = 3, a motion profile with the required dynamics is calculated for the following axis depending on the specified leading value distance.
The status "Waiting" is displayed at the following axis until the leading value has reached the synchronous position of the leading axis (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 2).
Synchronization begins as soon as the leading value has reached the synchronous position of the leading axis. The synchronization is indicated by parameter "MC_GearInPos.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

40

Function Manual, 12/2019, A5E47011129-AA

See also

Gearing (S7-1500, S7-1500T) 4.3 Synchronization (S7-1500, S7-1500T)
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile in accordance with the synchronous operation function. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag. The position of the leading axis from which the leading axis and following axis are synchronous is derived in the following way: Position axes synchronous = Synchronous position of leading axis + Synchronization length The following axis travels synchronously with the leading axis in accordance with the gear ratios. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
Gearing with "MC_GearInPos" with specified synchronous position (Page 33) MC_GearInPos: Start gearing with specified synchronous positions V5 (Page 189)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

41

Gearing (S7-1500, S7-1500T) 4.4 Dynamic limits in gearing (S7-1500, S7-1500T)

4.4

Dynamic limits in gearing (S7-1500, S7-1500T)

4.4.1

Dynamic limits in gearing with "MC_GearIn" (S7-1500, S7-1500T)

Leading axis

The dynamic limits configured for the technology object are always in effect for the leading axis.

Following axis

If a synchronous axis is operated as a following axis in synchronous operation with "MC_GearIn", the following dynamic limits apply depending on the phase of the synchronous operation:
 Synchronization
During the synchronizing phase, dynamic limits configured for the technology object apply to the following axis.
 Synchronous motion
When the synchronous axis is moving synchronously to the leading axis as a following axis, the dynamics of the following axis is limited only to the maximum speed of the drive (<TO>.Actor.DriveParameter.MaxSpeed). The dynamics of the following axis results from the synchronous operation function.
If the dynamic limits configured for the following axis are exceeded, this is indicated in the "<TO>.StatusSynchronizedMotion.StatusWord" tag of the technology object. The SW limit switches continue to be monitored with the configured dynamic limits of the following axis.
If the following axis cannot follow the leading value, this results in a following error, which is monitored by the following error monitoring.
 Synchronous operation override
As soon as synchronous operation has been overridden, the dynamic limits configured for the technology object apply to the following axis again. With the start of the overriding job, the active dynamics is transitioned (smoothed) to the configured dynamic limits and the specifications for the Motion Control instruction.

See also

Gearing with "MC_GearIn" (Page 31) MC_GearIn: Start gearing V5 (Page 184) Override response V5: Synchronous operation jobs (Page 238)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

42

Function Manual, 12/2019, A5E47011129-AA

Gearing (S7-1500, S7-1500T) 4.4 Dynamic limits in gearing (S7-1500, S7-1500T)

4.4.2

Dynamic limits in gearing with "MC_GearInPos" (S7-1500T)

Leading axis

The dynamic limits configured for the technology object are always in effect for the leading axis.

Following axis

If a synchronous axis is operated as a following axis in synchronous operation with the Motion Control instruction "MC_GearInPos", the following dynamic limits apply depending on the phase of the synchronous operation:
 Pending synchronous operation
If synchronous operation is not active, the configured dynamic limits apply. If a synchronous operation is already active, these limits are overridden by the previous synchronous operation.
 Synchronization/synchronous motion
During synchronization/synchronous motion, the dynamics of the following axis is limited only to the maximum speed of the drive (<TO>.Actor.DriveParameter.MaxSpeed). The dynamics of the following axis results from the synchronous operation function.
If the dynamic limits configured for the following axis are exceeded, this is indicated in the "<TO>.StatusSynchronizedMotion.StatusWord" tag of the technology object. The SW limit switches continue to be monitored with the configured dynamic limits of the following axis.
If the following axis cannot follow the leading value, this results in a following error, which is monitored by the following error monitoring.
 Synchronous operation override
As soon as synchronous operation has been overridden, the dynamic limits configured for the technology object apply to the following axis again. With the start of the overriding job, the active dynamics is transitioned (smoothed) to the configured dynamic limits and the specifications for the Motion Control instruction.

See also

Gearing with "MC_GearInPos" with specified synchronous position (Page 33) MC_GearInPos: Start gearing with specified synchronous positions V5 (Page 189) Override response V5: Synchronous operation jobs (Page 238)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

43

Gearing (S7-1500, S7-1500T) 4.5 Leading value shift in gearing (S7-1500T)

4.5

Leading value shift in gearing (S7-1500T)

With the Motion Control instructions "MC_PhasingRelative (Page 199)" and "MC_PhasingAbsolute (Page 204)", the leading value can be shifted in gearing with "MC_GearIn" and "MC_GearInPos". The leading value shift is executed on the following axis. The leading axis is not affected.

The leading value shift only has an effect in the "Synchronous" status. If the synchronous operation is overridden, the leading value shift is reset to zero.

4.6

Tags: Gearing (S7-1500T)

The following technology object tags are relevant for gearing:

Status indicators

Tag

Description

<TO>.StatusSynchronizedMotion.FunctionState Indication of which synchronous operation function is active

0

No synchronous operation active

1

Gearing ("MC_GearIn")

2

Gearing with specified synchronous positions

("MC_GearInPos")

3

Camming ("MC_CamIn")

<TO>.StatusSynchronizedMotion. WaitingFunctionState

Indication of which synchronous operation function is waiting

0

No synchronous operation waiting

1

Reserved

2

Gearing with specified synchronous positions waiting

("MC_GearInPos")

3

Camming waiting ("MC_CamIn")

<TO>.StatusSynchronizedMotion.ActualMaster When a synchronous operation job is started, the number of the technology data block of the currently used leading axis is displayed.

0

Synchronous operation inactive

<TO>.StatusSynchronizedMotion.PhaseShift Current absolute leading value shift

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum velocity configured for the

X0 (MaxVelocityExceeded)

following axis is exceeded during synchronous operation.

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum acceleration configured for

X1 (MaxAccelerationExceeded)

the following axis is exceeded during synchronous operation.

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum deceleration configured for

X2 (MaxDecelerationExceeded)

the following axis is exceeded during synchronous operation.

<TO>.StatusWord.X21 (Synchronizing)

Set to the value "TRUE" when the synchronous axis synchronizes to a leading value.

<TO>.StatusWord.X22 (Synchronous)

Set to the value "TRUE" when the synchronous axis is synchronized and moves synchronously to the leading axis.

<TO>.ErrorWord.X14 (SynchronousError)

Error during synchronous operation
The leading axis specified in the Motion Control instruction was not configured as a possible leading axis.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

44

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T)

5

During camming, the leading axis and following axis are coupled by a synchronous operation function, which you specify using a cam (Page 19). The utilized cam can be scaled on a job-related basis and applied shifted. To use the cam for camming, it must be interpolated (Page 48). You interpolate the cam in your user program with the Motion Control instruction "MC_InterpolateCam (Page 230)". Synchronous travel with the Motion Control instruction "MC_CamIn (Page 209)" begins after synchronization.
Synchronous position
The synchronous position of the leading axis and the corresponding position from the cam represent the relationship of the two axes to one another. The start of movement of the following axis is defined depending on the selected synchronization mode. The synchronous position of the leading axis is determined by the following parameters:  Start position of the cam (<TO_Cam>.StatusCam.StartLeadingValue)  Scaling the leading values of the cam (MC_CamIn.MasterScaling)  Offset/position of the cam (MC_CamIn.MasterOffset)  Starting point within the cam (MC_CamIn.MasterSyncPosition) The synchronous position is calculated using the following equation: Synchronous position = (Start position of the cam x "MasterScaling") + "MasterOffset" + "MasterSyncPosition"

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

45

Camming (S7-1500T)

Synchronization
Synchronization establishes the relationship between the leading axis and following axis. The following options are available for this:

Synchronization mode Synchronization in advance
· Using dynamic parameters · Using leading value distance
Subsequent synchronization
· Using leading value distance with specific synchronous position
· Using leading value distance with current position as synchronous position

Description Synchronization begins in such a way that the leading and following axis are synchronous when the synchronous positions are reached.
Synchronization begins as soon as the leading value has reached the synchronous position of the leading axis or as soon as the job takes effect.

You can find more detailed information on synchronization in the following sections:  Synchronization in advance with "MC_CamIn" using dynamic parameters (Page 55)  Synchronization in advance with "MC_CamIn" using leading value distance (Page 56)  Subsequent synchronization with "MC_CamIn" using leading value distance (Page 58)

Direct synchronization
When you set the parameter "MC_CamIn.SyncProfileReference" = 2, the status is set synchronously directly at the current leading value position and at the current following value position.
For more detailed information on direct synchronization, refer to section "Direct synchronous setting with "MC_CamIn" (Page 60)".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

46

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T)
Synchronous motion
Synchronous operation is reached after the synchronization. The "Synchronous" status is indicated by parameter "MC_CamIn.InSync" = TRUE as well as in the "<TO>.StatusWord.X22 (Synchronous)" tag of the technology object. The following axis follows the position of the leading axis according to the cam profile. The transmission behavior during camming is expressed by the cam curve:

See also

Transfer function:

Following value = f(leading value)

Synchronization in advance

Subsequent synchronization



Leading value distance with synchronization in advance



Leading value distance with subsequent synchronization

MC_CamIn: Start camming V5 (Page 209) Interpolation of the cam (Page 48) Dynamic limits in gearing (Page 42)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

47

Camming (S7-1500T) 5.1 Interpolation of the cam (S7-1500T)

5.1

Interpolation of the cam (S7-1500T)

To use a cam in the user program, you must interpolate the cam after downloading to the CPU or after adaptation of the technology object data block. The interpolation closes the gaps between the defined interpolation points and segments of the cam. The cam is interpolated from the minimum value in the leading value range to the maximum value. The minimum value in the leading value range is the first defined interpolation point/start of the first segment of the cam (<TO>.StatusCam.StartLeadingValue). The maximum value in the leading value range is the last defined interpolation point/end of the last segment of the cam (<TO>.StatusCam.EndLeadingValue).

You interpolate a cam disc in your user program with the Motion Control instruction "MC_InterpolateCam (Page 230)". When a cam is interpolated, this is indicated by the "MC_InterpolateCam.Done" parameter = TRUE and via the "<TO>.StatusWord.X5 (Interpolated)" tag = 1 in the technology data block.

You specify the interpolation in the configuration of the technology object (Page 109). The following methods are possible:

 System interpolation

 Optimization of transitions according to VDI Guideline 2143

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

48

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T) 5.1 Interpolation of the cam (S7-1500T) System interpolation With system interpolation, the transitions are interpolated according to the interpolation type and the response in the boundary points of the transition segment. The following interpolation methods are possible:  Linear interpolation Gaps in the cam are closed with a straight line.
Specified position (point) Interpolated position Resulting velocity (scaled) Resulting acceleration Resulting jerk

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

49

Camming (S7-1500T) 5.1 Interpolation of the cam (S7-1500T)
 Interpolation with cubic splines The interpolated curve runs through the interpolation points and the segments of the curve. After completion of interpolation, the range of the cam can be greater than before interpolation.
Specified position (point) Interpolated position Resulting velocity (scaled) Resulting acceleration (scaled) Resulting jerk (scaled)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

50

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T) 5.1 Interpolation of the cam (S7-1500T)
 Interpolation with Bézier splines The interpolated curve runs along the interpolation points and through the segments of the curve. The range of the cam is not changed by interpolation.

Specified position (point) Interpolated position Resulting velocity (scaled) Resulting acceleration (scaled) Resulting jerk (scaled)

Optimization of transitions according to VDI Guideline 2143
The transitions are specified according to the motion task and the optimization settings according to the VDI Guideline 2143.
Note that the optimization of transitions according to VDI guideline 2143 directly occupies segments in the technology object data block, in contrast to system interpolation. This optimization type is thus not possible via "MC_InterpolateCam" during runtime.

See also

MC_InterpolateCam: Interpolate cam V5 (Page 230)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

51

Camming (S7-1500T) 5.2 Scaling and offset of the cam (S7-1500T)

5.2

Scaling and offset of the cam (S7-1500T)

The scaling and shifting of the cam can be specified for camming in the Motion Control instruction "MC_CamIn". The configured cam is not changed by calling "MC_CamIn".

The following figure shows the basic sequence for scaling/shifting the cam:

Position following axis = f[(Position leading axis - Leading value shift) / Leading value scaling] × Following value scaling + Following value shift

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

52

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T) 5.3 Cyclic and non-cyclic application of the cam (S7-1500T)

5.3

Cyclic and non-cyclic application of the cam (S7-1500T)

The "MC_CamIn.ApplicationMode" parameter can be used to set whether or not the cam is to be applied cyclically for synchronous operation:

 Not cyclic

The cam is run exactly once. When the cam is run in the positive direction, synchronous operation is ended when the end point of the cam is reached. When the cam is run in the negative direction, synchronous operation is ended when the starting point of the cam is reached. To prevent step changes in the dynamic values, the velocity of the following axis must be zero at the starting and end points of the cam.

 Cyclic
The cam is run cyclically. When the cam is run in the positive direction, the cam is repeated from the starting point when the end point of the cam is reached. When the cam is run in the negative direction, the cam is repeated from the end point when the starting point of the cam is reached. To prevent step changes in the dynamic values, the starting and end points of the cam must match and the velocity in the start and end point must be consistent.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

53

Camming (S7-1500T) 5.3 Cyclic and non-cyclic application of the cam (S7-1500T)
 Cyclic appending
The cam is run cyclically. When the cam is run in the positive direction, the end point of the cam is used as the starting point for the next run. When the cam is run in the negative direction, the starting point of the cam is used as the starting point for the next run. The position difference between the starting and end points on the following value side is added up. To prevent step changes in the dynamic values, the velocity in the boundary points must be continuous.

See also

Configuration of profile - System interpolation (Page 127)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

54

Function Manual, 12/2019, A5E47011129-AA

5.4

Synchronization (S7-1500T)

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)

5.4.1

Synchronization in advance with "MC_CamIn" using dynamic parameters (S71500T)
For synchronization using dynamic parameters, you specify the dynamics (velocity, acceleration, deceleration, jerk). Specify also the synchronous position of the leading axes. For synchronization in advance, the synchronous position of the leading axis is the position starting from which the leading and following axes are synchronous. The required travel distance (synchronization length) is calculated by the system.
After the start of the "MC_CamIn" job with "SyncProfileReference" = 0, a motion profile for the following axis is calculated continuously. The motion profile is calculated based on the following parameters:
 Specified synchronous position of the Motion Control instruction
 Specified dynamics of the Motion Control instruction
 Current position and dynamics of the leading and following axes
 Synchronous operation specified via cam
The calculation determines the synchronization length and thus the start position of the leading axis for the synchronization.
The status "Waiting" is displayed at the following axis until the leading value has reached the start position (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 3).
The following axis begins to synchronize as soon as the leading value has reached the start position. The start position of the leading axis is derived in the following way:
Start position = Synchronous position of leading axis - Synchronization length
The synchronization is indicated by parameter "MC_CamIn.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag.
When the leading axis reaches the synchronous position, the following axis is synchronized. The following axis travels synchronously with the leading axis. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
If only the leading axis is in its synchronous position when the "MC_CamIn" job is started, the leading axis must first cross the start position to start synchronization.

See also

Camming (Page 45) MC_CamIn: Start camming V5 (Page 209)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

55

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)

5.4.2

Synchronization in advance with "MC_CamIn" using leading value distance (S71500T)
For synchronization in advance using the leading value distance with an "MC_CamIn" job, you specify the synchronization length. Specify also the synchronous position of the leading axis. For synchronization in advance, the synchronous position of the leading axis is the position starting from which the leading and following axes are synchronous.

 Time when synchronization starts  Time when synchronization is complete

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

56

Function Manual, 12/2019, A5E47011129-AA

See also

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)
After the start of the "MC_CamIn" job with "SyncProfileReference" = 1, a motion profile with the required dynamics is calculated for the following axis depending on the specified leading value distance. For this, the leading axis must be at least the leading value distance from the synchronous position.
The following axis begins to synchronize as soon as the leading value has reached the start position. The start position of the leading axis is derived in the following way:
Start position = Synchronous position of leading axis - Synchronization length
The status "Waiting" is displayed at the following axis until the leading value has reached the start position (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 3).
The synchronization is indicated by parameter "MC_CamIn.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile in accordance with the synchronous operation function. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag.
When the leading axis has reached the synchronous position, the following axis is synchronized. The following axis travels synchronously with the leading axis. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
Camming (Page 45)
MC_CamIn: Start camming V5 (Page 209)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

57

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)

5.4.3

Subsequent synchronization with "MC_CamIn" using leading value distance (S7-1500T)
For subsequent synchronization using the leading value distance with an "MC_CamIn" job, you specify the synchronization length. Specify also the synchronous position of the leading axis. You have the following options:
 Define a specific synchronous position ("SyncProfileReference" = 3)
 Use the current position of the leading axis as synchronous position ("SyncProfileReference" = 4)
The values must each be within the definition of the cam.
For synchronization in advance, the synchronous position of the leading axis is the start position for synchronization.

 Time when synchronization starts  Time when synchronization is complete

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

58

Function Manual, 12/2019, A5E47011129-AA

See also

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)
After the start of the "MC_CamIn" job, a motion profile with the required dynamics is calculated for the following axis depending on the specified leading value distance.
The status "Waiting" is displayed at the following axis until the leading value has reached the synchronous position of the leading axis (<TO>.StatusSynchronizedMotion.WaitingFunctionState = 3).
Synchronization begins as soon as the leading value has reached the synchronous position of the leading axis ("SyncProfileReference" = 3) or as soon as the "MC_CamIn" job takes effect ("SyncProfileReference" = 4). The synchronization is indicated by parameter "MC_CamIn.StartSync" = TRUE as well as in the "<TO>.StatusWord.X21 (Synchronizing)" tag of the technology object. The leading value must reverse during synchronization.
The dynamics of the following axis during synchronization is obtained from the calculated motion profile and the current dynamics of the leading axis. Changes in the dynamics of the leading axis during synchronization are superimposed on the calculated motion profile in accordance with the synchronous operation function. This can have the result that the configured dynamic limits at the following axis are violated. This is displayed in the "<TO>.StatusSynchronizedMotion.StatusWord" tag.
The position of the leading axis from which the leading axis and following axis are synchronous is derived in the following way:
Position axes synchronous = Synchronous position of leading axis + Synchronization length
The following axis travels synchronously with the leading axis in accordance with the cam profile. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
Camming (Page 45)
MC_CamIn: Start camming V5 (Page 209)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

59

Camming (S7-1500T) 5.4 Synchronization (S7-1500T)

5.4.4

Direct synchronous setting with "MC_CamIn" (S7-1500T)
This type of synchronization is mainly suitable for synchronizing at a standstill.
After the "MC_CamIn" job has started with "SyncProfileReference" = 2, the status "Synchronous" is set directly at the current leading value position and at the current following value position. The "Synchronous" status is indicated in the Motion Control instruction with parameter "InSync" = TRUE.
The synchronous position specified in the "MasterSyncPosition" parameter in the cam is assigned to the position setpoint of the leading axis in the leading value range and to the position setpoint of the following axis in the following value range. The cam is offset accordingly. The current offset results from the cam and is displayed at the "<TO>.StatusSynchronizedMotion.MasterOffset" and "<TO>.StatusSynchronizedMotion.SlaveOffset" tags of the technology object.

Additional information
For more information on direct synchronous setting, refer to the FAQ entry 109758886 (https://support.industry.siemens.com/cs/ww/en/view/109758886) in the Siemens Industry Online Support.

See also

Camming (Page 45) MC_CamIn: Start camming V5 (Page 209)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

60

Function Manual, 12/2019, A5E47011129-AA

Camming (S7-1500T) 5.5 Dynamic limits in camming (S7-1500T)

5.5

Dynamic limits in camming (S7-1500T)

Leading axis

The dynamic limits configured for the technology object are always in effect for the leading axis.

Following axis

If a synchronous axis is operated as a following axis in camming with the Motion Control instruction "MC_CamIn", the following dynamic limits apply depending on the phase of the synchronous operation:
 Pending synchronous operation
If synchronous operation is not active, the configured dynamic limits apply. If a synchronous operation is already active, these limits are overridden by the previous synchronous operation.
 Synchronization/synchronous motion
During synchronization/synchronous motion, the dynamics of the following axis is limited only to the maximum speed of the drive (<TO>.Actor.DriveParameter.MaxSpeed). The dynamics of the following axis results from the synchronous operation function.
If the dynamic limits configured for the following axis are exceeded, this is indicated in the "<TO>.StatusSynchronizedMotion.StatusWord" tag of the technology object. The SW limit switches continue to be monitored with the configured dynamic limits of the following axis.
If the following axis cannot follow the leading value, this results in a following error, which is monitored by the following error monitoring.
 Synchronous operation override
As soon as synchronous operation has been overridden, the dynamic limits configured for the technology object apply to the following axis again. With the start of the overriding job, the active dynamics is transitioned (smoothed) to the configured dynamic limits and the specifications for the Motion Control instruction.

See also

Camming (Page 45) MC_CamIn: Start camming V5 (Page 209) Override response V5: Synchronous operation jobs (Page 238)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

61

Camming (S7-1500T) 5.6 Tags: Camming (S7-1500T)

5.6

Tags: Camming (S7-1500T)

The following technology object tags are relevant for camming:

Status indicators

Tag

Description

<TO>.StatusSynchronizedMotion.FunctionState Indication of which synchronous operation function is active

0

No synchronous operation active

1

Gearing ("MC_GearIn")

2

Gearing with specified synchronous positions

("MC_GearInPos")

3

Camming ("MC_CamIn")

<TO>.StatusSynchronizedMotion.Waiting FunctionState

Indication of which synchronous operation function is waiting

0

No synchronous operation waiting

1

Reserved

2

Gearing with specified synchronous positions waiting

("MC_GearInPos")

3

Camming waiting ("MC_CamIn")

<TO>.StatusSynchronizedMotion.ActualMaster When a synchronous operation job is started, the number of the technology data block of the currently used leading axis is displayed.

0

Synchronous operation inactive

<TO>.StatusSynchronizedMotion.CurrentCam Cam that is currently being used for camming

<TO>.StatusSynchronizedMotion.MasterOffset Current shift of the leading value range of the cam

<TO>.StatusSynchronizedMotion.Master Scaling

Current scaling of the leading value range of the cam

<TO>.StatusSynchronizedMotion.SlaveOffset Current shift of the following value range of the cam

<TO>.StatusSynchronizedMotion.SlaveScaling Current scaling of the following value range of the cam

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum velocity configured for the

X0 (MaxVelocityExceeded)

following axis is exceeded during synchronous operation.

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum acceleration configured for

X1 (MaxAccelerationExceeded)

the following axis is exceeded during synchronous operation.

<TO>.StatusSynchronizedMotion.StatusWord. Set to the value "TRUE" when the maximum deceleration configured for

X2 (MaxDecelerationExceeded)

the following axis is exceeded during synchronous operation.

<TO>.StatusWord.X21 (Synchronizing)

Set to the value "TRUE" when the synchronous axis synchronizes to a leading value.

<TO>.StatusWord.X22 (Synchronous)

Set to the value "TRUE" when the synchronous axis is synchronized and moves synchronously to the leading axis.

<TO>.ErrorWord.X14 (SynchronousError)

Error during synchronous operation

The leading axis specified in the Motion Control instruction was not configured as a possible leading axis.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

62

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T)

6

6.1

Configuring the synchronous axis technology object (S7-1500, S7-

1500T)

6.1.1

Configuration - Basic Parameters (S7-1500, S7-1500T)
Configure the basic properties of the technology object in the "Basic Parameters" configuration window.

Name

Define the name of the synchronous axis in this field. The technology object is listed under this name in the project tree. The tags of the technology object can be used in the user program under this name.

Axis type

If you want to use the axis in the CPU exclusively as a virtual leading axis for synchronization, for example, select the "Virtual axis" check box. The configuration of a drive and encoder connection is not relevant.
In this selection, configure whether the axis should perform linear or rotary motions.

Units of measure
In the drop-down list, select the desired units of measure for the position, velocity, torque and force of the axis.
If you wish to use six decimal places in the selected unit, select the check box "Use position values with higher resolution".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

63

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Modulo

Select the "Enable modulo" check box if you want to use a recurring system of units for the axis (e.g. 0° to 360° for an axis of the "rotary" axis type).
 Modulo start value
In this field, define the position at which the modulo range should begin (e.g. 0° for an axis of the "rotary" axis type).
 Modulo length
In this field, define the length of the modulo range (e.g. 360° for an axis of the "rotary" axis type).

Simulation

If you want to move a real axis in the simulation mode, select the "Activate simulation" check box.
In simulation mode, speed, positioning and synchronous axes can be simulated in the CPU without connected drives and encoders. Simulation mode is possible as of Technology Version V3.0 even without a configured drive and encoder connection.
For simulation mode without hardware connected to the CPU, you can influence the startup time of the CPU via the "Configuration time for central and distributed I/Os" parameter. You can find the parameter in the CPU properties in the "Startup" area navigation.

6.1.2

Hardware interface (S7-1500, S7-1500T)

6.1.2.1

Configuration - Drive (S7-1500, S7-1500T)
In the "Drive" configuration window, configure which drive type and which drive you want to use.

Drive type

In the drop-down list, select whether you want to deploy a PROFIdrive drive or a drive with an analog drive connection.
PROFIdrive drives are connected to the controller by means of a digital communication system (PROFINET or PROFIBUS). The communication is performed via PROFIdrive telegrams.
Drives with an analog drive connection receive the speed setpoint via an analog output signal (e.g. from -10 V to +10 V) from the CPU.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

64

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Drive type: PROFIdrive
Data connection In the drop-down list, select whether the data connection is to be made directly with the drive device or via an editable data block in the user program. Drive/data block In the "Drive" field, select an already configured PROFIdrive drive/slot. When you have selected a PROFIdrive drive, you can configure the PROFIdrive drive using the "Device configuration" and "Drive configuration" buttons. If no PROFIdrive drive is available for selection, switch to the device configuration, and add a PROFIdrive drive in the network view. Switch to drive configuration to configure the drive.
Note Option "Show all modules" If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules. When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive drive.
If you have selected "Data block" under the data connection, select a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).
Drive type: Analog drive connection
Analog output In the "Analog output" field, select the PLC tag of the analog output via which the drive is to be controlled. In order to be able to select an output, you first need to add an analog output module in the device configuration and define the PLC tag name for the analog output. Activating enable output Select the "Activate enable output" check box if the drive supports an enable. Select the PLC tag of the digital output for the drive enable in the corresponding field. With the enable output, the speed controller in the drive is enabled, or disabled.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

65

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
In order to be able to select an enable output, a digital output module must be added in the device configuration and the PLC tag name must be defined for the digital output.
Note If you do not use an enable output, the drive cannot be immediately disabled on the part of the system due to error reactions or monitoring functions. A controlled stop of the drive is not guaranteed.
Enable ready input Select the "Enable ready input" check box if the drive can signal its readiness. Select the PLC tag of the digital input via which the drive is to signal its operational readiness to the technology object in the corresponding field. The power module is switched on and the analog speed setpoint input is enabled. In order to be able to select a ready input, you first need to add a digital input module in the device configuration and define the PLC tag name for the digital input.
Note The enable output and the ready input can be separately enabled. The following boundary conditions apply to the activated ready input: · The axis is only enabled ("MC_Power Status" = TRUE) when a signal is present at the
ready input. · If a signal is not present at the ready input on an enabled axis, the axis is disabled with
an error. · If the axis is disabled with the instruction "MC_Power" ("Enable" = FALSE), the axis is
disabled even when a signal is present at the ready input.

See also

"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

66

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.2.2

Configuration - Encoder (S7-1500, S7-1500T)
For closed-loop position control, synchronous axes require an actual position value in the form of an encoder position. The encoder position is transmitted to the controller by means of a PROFIdrive telegram.
As well as the S7-1500, the S7-1500T also offers the possibility to configure up to four encoders and switch between the encoders. You control the switch in the user program with the Motion Control instruction "MC_SetSensor".

Encoder on startup (S7-1500T)
In the drop-down list, select the encoder that is to be active after startup of the CPU (STARTUP). The encoder must be configured and marked as "used".
This encoder is used after startup of the CPU and after a restart of the technology object. At an operating mode transition from STOP  RUN of the CPU (without restart of the technology object), the encoder that was also active before the STOP is still being used.

Use encoder (S7-1500T)
Select the "Use encoder" check box if you want to use this encoder alternatively for closed loop position control.

Data connection
In the drop-down list, select whether the data connection should be established directly with the encoder or via a data block that can be edited in the user program.
The selection is only possible for encoders that are connected via PROFIdrive and support parameter P979.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

67

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Encoder/data block
Select a previously configured encoder in this configuration field.
The following encoders can be selected:
 Connection to the drive (not with analog drive connection)
The encoder is configured via the configuration of the PROFIdrive drive. The drive evaluates the encoder signals and sends them to the controller in the PROFIdrive telegram.
 Encoder on technology module (TM)
Select a previously configured technology module and the channel to be used. Only technology modules set to the "Position input for Motion Control" mode are displayed for selection.
If no technology module is available for selection, change to the device configuration and add a technology module. If you have selected a technology module, you can access the configuration of the technology module using the "Device configuration" button.
You can operate the technology module centrally on an S7-1500 CPU or decentrally on a distributed I/O. Isochronous mode is not possible with central operation in the CPU.
You can identify the technology modules suitable for position detection for Motion Control in the documentation for the technology module and the catalog data.
 PROFIdrive encoder on PROFINET/PROFIBUS (PROFIdrive)
In the "PROFIdrive encoder" field, select a configured encoder on PROFINET/PROFIBUS. When you have selected an encoder, you can configure the encoder using the "Device configuration" button.
Switch to the device configuration in the network view, and add an encoder, in the event that no encoder can be selected.
Note Option "Show all modules"
If a PROFIdrive that has already been configured is not available for selection, use the option "Show all modules" to display all reachable modules.
When you select the option "Show all modules", only the address range for each of the displayed modules is checked. If the address range of the module is large enough for the selected PROFIdrive frame, you can select the module. For this reason, make sure that you select a PROFIdrive encoder.
If you have selected "Data block" under the data connection, select in the "Data block" field a previously created data block which contains a tag structure of the data type "PD_TELx" ("x" stands for the telegram number to be used).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

68

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Encoder type

Select the encoder type of the encoder in the drop-down list. The following encoder types are available:
 Incremental
 Absolute (measuring range > traversing range)
 Cyclic absolute (measuring range < traversing range)
Recommended settings for absolute actual values: The "Cyclic absolute" encoder type is recommended. With this setting, the position of the zero crossing of the encoder is automatically taken into consideration by the technology object.

Note Measuring range of the absolute encoder
Observe the boundary conditions with absolute values.
You can find more information in the section "AUTOHOTSPOT" of the "S7-1500/S7-1500T Axis functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766462).

See also

"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)

6.1.2.3

Configuration - Data exchange with the drive (S7-1500, S7-1500T)
Configure the data exchange with the drive in the "Data exchange with the drive" configuration window.
The configuration differs according to the selected drive type:

Drive type: PROFIdrive
Drive telegram
The telegram to the drive that is set in the device configuration is preselected in the dropdown list.
Automatically apply drive values during configuration (offline)
Select the check box if you want to transfer the offline values of the drive "Reference speed", "Maximum speed" and "Reference torque" to the configuration of the technology object in the project.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

69

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Automatically apply drive values at runtime (online)
Select the check box if you want to transfer the effective values "Reference speed", "Maximum speed" and "Reference torque" online in the drive to the CPU during runtime. The drive parameters are transferred from the bus after the (re-)initialization of the technology object or the (re)start of the drive or the CPU.
Alternatively, you must synchronize the following parameters manually:
 Reference speed
Configure the reference speed of the drive in accordance with the manufacturer's specifications in this field. The specification of the drive speed is a percentage of the reference speed in the range -200% to 200%.
 Maximum speed
Configure the maximum speed of the drive in this field.
 Reference torque
Configure the reference torque of the drive corresponding to its configuration in this field.
The reference torque is needed for force/torque reduction, which is supported with telegram 10x.
Supplementary data
Select the "Torque data" check box if you want to configure the data connection of the torque data. If you have selected a drive with which the supplemental telegram 750 has been configured, the "Torque data" check box is preselected.
Data connection
In the drop-down list, define whether the data connection should be made via supplemental telegrams or data blocks:
 If you select the entry "Supplemental telegram" in the "Data connection" drop-down list, you can edit the "Supplemental telegram" drop-down list.
 If you select the "Data block" entry in the "Data connection" drop-down list, you can select the previously created data block which contains a tag structure of the "PD_TELx" data type ("x" stands for the additional telegram number that is used).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

70

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Data block / supplemental telegram Select an supplemental telegram configured in the "Supplemental telegram" field. Select the "Show all modules" check box if you want to display all submodules of the connected drive. You can also find self-defined supplemental telegrams with this function. In the "Data block" field, select the data block which you want to use to integrate the torque data.
Note Automatic transfer of drive parameters is only possible with SINAMICS drives as of V4.x. To do this, set the "Drive" data connection in the configuration window "Hardware interface > Drive".

Drive type: Analog drive connection
Reference speed
The reference speed of the drive is the speed with which the drive spins when there is an output of 100% at the analog output. The reference speed must be configured for the drive and transferred in the configuration of the technology object.
The analog value that is output at 100% depends on the type of the analog output. For example, for an analog output with +/- 10 V, the value 10 V is output at 100%.
Analog outputs can be overridden by approximately 17%. This means that an analog output can be operated in the range from -117% to 117%, insofar as the drive permits this.
Maximum speed
Specify the maximum speed of the drive in this field.

See also

"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

71

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.2.4

Configuration - Data exchange with encoder (S7-1500, S7-1500T)
Configure detailed encoder parameters and the data exchange of the encoder in the "Data exchange with encoder" configuration window.
If you are using an S7-1500T CPU, you need to define the settings for each of the maximum four configured encoders.
The display and selection of the configuration parameters described here is dependent on the following parameters:
 Configuration window "Basic parameters": Drive type (linear/rotary)
 Configuration window "Hardware interface > Encoder": Encoder type (incremental/absolute/cyclic absolute)
 Configuration window - "Extended parameters > Mechanics": Encoder mounting type

Settings for (S7-1500T)
In the drop-down list, select the encoder for which you wish to edit the following configurations.

Encoder telegram
The telegram to the encoder that is set in the device configuration is preselected in the dropdown list.

Automatically apply encoder values during configuration (offline)
Select the check box if you want to transfer the offline values of the encoder to the configuration of the technology object in the project.

Automatically apply encoder values during runtime (online)
Select the check box if you want to transfer the effective values online in the encoder to the CPU during runtime. The encoder parameters are transferred from the bus after the (re-)initialization of the technology object and (re)start of the encoder or the CPU.
Note Automatic transfer of encoder parameters is only possible with PROFIdrive encoders as of product version A16. For this, "Hardware interface > Encoder" must be selected as the "Encoder" data connection in the configuration window.
Alternatively, you must manually calibrate the following parameters, depending on encoder type.

Measuring system
In the drop-down list, select the measuring procedure. The options are "Linear" and "Rotary".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

72

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Additional parameters
Depending on the selected measuring system and the encoder type selected under "Technology object > Configurations > Hardware interface > Encoders", configure the parameters described below:
 Measuring system: Rotary; encoder type: Incremental

Parameter Increments per revolution
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

 Measuring system: Rotary; encoder type: Absolute

Parameter Increments per revolution
Number of revolutions
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of revolutions that the absolute encoder can detect in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

 Measuring system: Rotary; encoder type: Cyclic absolute

Parameter Increments per revolution
Number of revolutions
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the number of increments that the encoder resolves per revolution in this field.
Configure the number of revolutions that the absolute encoder can detect in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

73

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

 Measuring system: Linear; encoder type: Incremental

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.

 Measuring system: Linear; encoder type: Absolute

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

 Measuring system: Linear; encoder type: Cyclic absolute

Parameter Distance between two increments
Bits for fine resolution in the incremental actual value (Gx_XIST1) Bits for fine resolution in the absolute actual value (Gx_XIST2)

Description
Configure the distance between two increments of the encoder in this field.
Configure the number of bits for fine resolution within the incremental actual value (Gx_XIST1) in this field.
Configure the number of bits for fine resolution within the absolute actual value (Gx_XIST2) in this field.

See also

Configuration - Encoder (Page 67)
"Drive and encoder connection" section in the "S7-1500/S7-1500T Axis functions" function manual (https://support.industry.siemens.com/cs/ww/en/view/109766462)
Configuration - Mechanics (Page 78)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

74

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.3

Configuration - Leading value interconnections (S7-1500, S7-1500T)
You can interconnect a synchronous axis with multiple leading value-capable technology objects. The following technology objects are leading value-capable:  Positioning axis  Synchronous axis (Page 17)  External encoder (S7-1500T)  Leading axis proxy (Page 164) (S7-1500T) You can select only one leading value during runtime of your user program. All interconnection required during operation must be set up during configuration of the technology object.

Interconnection overview
You open the interconnection overview via this link. With a cross-PLC synchronous operation, the interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment.

Possible leading values
In the "Possible leading values" table column, add all leading value-capable technology objects that you need during operation as leading value for the synchronous axis.
You can use the technology objects added in the table with the corresponding Motion Control instruction as leading value for the synchronous axis. All configured leading value interconnections for the technology object are displayed in the cross-reference list of the technology object.
In a cross-PLC synchronous operation, you add the corresponding leading axis proxy technology object instead of the leading axis of another CPU (only for S7-1500T CPU). The leading axis proxy technology object makes the leading value of the corresponding leading axis available locally on the CPU.

Leading value source (S7-1500T)
If you add a leading value proxy technology object in the "Possible leading values" table column, the "Leading value source" column displays which technology object of which CPU provides the leading value:
<Name of CPU>.<Name of technology object>

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

75

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Type of coupling
In the "Type of coupling" table column, configure whether the leading value is to be coupled via setpoint, actual value or with a delay. "Actual value" is available only for the S7-1500T CPU.
In a cross-PLC synchronous operation, you define with the "Delayed" setting whether the leading value should be delayed for a local synchronous operation.
Coupling via setpoint is the default setting for a leading axis proxy technology object.

Consider interconnection when calculating the delay time (S7-1500T)
In the table column with the icon , select for a leading axis proxy technology object whether this leading value interconnection should be taken into consideration in the calculation of the delay time in the interconnection overview (Page 178).

See also

Interconnection possibilities (Page 166) Leading value coupling (Page 21)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

76

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.4

Configuration - Leading value settings (S7-1500, S7-1500T)
In the "Leading value settings" configuration window, select the parameters of the leading value for cross-PLC synchronous operation.

Provision of leading value
In this area, define the settings for transferring the leading value to other CPUs:

Field
Provide cross-PLC leading value
Transfer area

Description
Select this check box to make the setpoint or actual value available as leading value for a cross-PLC synchronous operation.
In this drop-down list, select the output tag of the transfer area set up between the CPU of the leading axis and the CPUs of the following axes.
You can find additional information on the transfer area in the section "Setting up communication via controller-controller data exchange (Page 171)".

Delay time of local leading value
In this area, configure the settings for local synchronous operation:

Field Allow system calculation Delay time
Interconnection overview

Description
Select this check box to adapt the delay time of the local leading value in the system. System calculation is started when you trigger the calculation in the interconnection overview.
If the "Allow system calculation" check box is cleared, this field can be edited. Enter the delay time in this field.
The entered delay time determines the output delay of the leading value for the local following axes.
(<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime)
You open the interconnection overview via this link. With a cross-PLC synchronous operation, the interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment.

See also

Interconnection possibilities (Page 166)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

77

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.5

Extended parameters (S7-1500, S7-1500T)

6.1.5.1

Configuration - Mechanics (S7-1500, S7-1500T)
In the "Mechanics" configuration window, configure the mounting type of the encoder, and the adaptation of the actual encoder value to the mechanical conditions.

Settings for (S7-1500T)
In the drop-down list, select the encoder for which the following configurations are to apply.

Encoder mounting type
In the drop-down list, select how the encoder is mounted to the mechanics. The configuration differs depending on the axis type and the encoder mounting type selected in the "Basic parameters" configuration window. Axis type: Linear  Linear - On motor shaft (Page 79)  Linear - On load side (Page 79)  Linear - External Measuring System (Page 80) Axis type: Rotary  Rotary - On motor shaft (Page 80)  Rotary - On load side (Page 81)  Rotary - External Measuring System (Page 81)

Invert encoder direction
Select this check box if you must invert the direction of rotation of the encoder.

See also

Configuration - Data exchange with encoder (Page 72)
Section "Mechanics" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

78

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Axis type: Linear (S7-1500, S7-1500T)

Linear - On motor shaft (S7-1500, S7-1500T)
The encoder is connected to the motor shaft in a mechanically fixed manner. Motor and encoder form a unit.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Linear - On load side (S7-1500, S7-1500T)
The encoder is mechanically connected to the load side of the gear.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

79

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Linear - External Measuring System (S7-1500, S7-1500T)
An external measuring system provides the position values of the linear load motion.

Distance per encoder revolution
In this configuration field, configure the linear load travel per encoder revolution.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Position parameters
In the "Leadscrew pitch" configuration field, configure the distance by which the load is moved when the leadscrew makes one revolution.

Axis type: Rotary (S7-1500, S7-1500T)

Rotary - On motor shaft (S7-1500, S7-1500T)
The encoder is connected to the motor shaft in a mechanically fixed manner. Motor and encoder form a unit.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

80

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Rotary - On load side (S7-1500, S7-1500T)
The encoder is mechanically connected to the load side of the gear.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

Rotary - External Measuring System (S7-1500, S7-1500T)
An external measuring system provides the position values of the rotary load motion.

Distance per encoder revolution
In this configuration field, configure the linear load travel per encoder revolution.

Drive mechanism
Select the "Invert drive direction" check box if the direction of rotation of the drive is to be inverted.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

81

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Load gear

The gear ratio of the load gear is specified as the ratio between motor revolutions and load revolutions.
In this "Number of motor revolutions" configuration field, configure the integer number of motor revolutions.
In this "Number of load revolutions" configuration field, configure the integer number of load revolutions.

6.1.5.2

Configuration - Dynamic Defaults (S7-1500, S7-1500T)
In the "Dynamic default values" configuration window, configure the default values for velocity, acceleration, deceleration and jerk of the axis.
The default values take effect when values < 0 are specified in Motion Control instructions for the "Velocity", "Acceleration", "Deceleration" or "Jerk" parameters. The default values can be applied separately for each of the parameters just listed.
The default values for acceleration and deceleration also act on the traversing motions of active homing.

Velocity

In this field, define the default value for the velocity of the axis.

Acceleration/deceleration - Ramp-up time/ramp-down time
Configure the desired default value for acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields.
The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:

Note
A change in the velocity influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

82

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration and deceleration ramp in the "Jerk" field. The
value 0 means that jerk limiting is deactivated.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note The jerk value is identical for the acceleration and deceleration ramp. The smoothing time in effect for the deceleration ramp results from the following relationships: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration. A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:

See also

Motion jobs started in the user program are performed with the selected jerk.
Section "Velocity profile" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

83

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.5.3

Configuration - Emergency stop (S7-1500, S7-1500T)
In the "Emergency stop" configuration window, you can configure the emergency stop deceleration of the axis. In the event of an error, and when disabling the axis, the axis is brought to a standstill with this deceleration using the Motion Control instruction "MC_Power" (input parameter "StopMode" = 0).

Emergency deceleration/emergency stop ramp-down time
Configure the deceleration value for emergency stop in the "Emergency stop deceleration" field or the "Emergency stop ramp-down time" field.
The relationship between emergency stop ramp-down time and emergency stop deceleration can be seen in the following equation:

See also

The configuration of the emergency stop deceleration is related to the configured maximum velocity of the axis. If the maximum velocity of the axis changes, then the value of the emergency deceleration also changes (the emergency stop ramp-down time remains unchanged).
Section "Emergency stop deceleration" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

84

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.5.4

Limits (S7-1500, S7-1500T)

Configuration - Position limits (S7-1500, S7-1500T)
Configure the hardware and software limit switches of the axis in the "Position limits" configuration window.

Enable HW limit switches
The check box activates the function of the negative and positive hardware limit switches. The negative hardware limit switch is located on the side in the negative direction of travel, and the positive hardware limit switch on the side in the positive direction of travel.
If a hardware limit switch is reached, technology alarm 531 is output, and the technology object is disabled (alarm response: remove enable).
Exception:
1. If a hardware limit switch is overtraveled during an active home position approach with activated direction reversal at the hardware limit switch, the axis stops with the configured maximum deceleration and continues the home position approach in the opposite direction.
2. If the hardware limit switches were deactivated using the Motion Control instruction "MC_WriteParameter".
Note
Only use hardware limit switches that remain permanently switched after the approach. This switching state may only be canceled after the return to the permitted traversing range.
The digital inputs of the hardware limit switches are evaluated by default in cyclic data exchange. If the hardware limit switch is to be evaluated in the position control cycle of the drive, select the entry "MC-Servo" for "Organization block" and the entry "PIP OB Servo" for "Process image" in the input module settings under "I/O addresses".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

85

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Input of negative/positive HW limit switch
In these fields, select the PLC tag of the digital input for the negative and positive hardware limit switch. In order to be able to select an input, a digital input module must have been added in the device configuration, and the PLC tag name for the digital input must be defined.
CAUTION During installation of hardware limit switches, attention must be paid to the filter times of the digital inputs. Based on the time for one position control cycle clock and the filter time of the digital inputs, the resulting delay times must be taken into account. The filter time is configurable in individual digital input modules in the device configuration. The digital inputs are set to a filter time of 6.4 ms by default. If these are used as hardware limit switches, undesired decelerations may occur. If this occurs, reduce the filter time for the relevant digital inputs. The filter time can be set under "Input filter" in the device configuration of the digital inputs.

Level selection of negative/positive HW limit switch
Select the triggering signal level ("low level"/"high level") of the hardware limit switch in the drop-down list. With "Low level", the input signal is "FALSE" after the axis has reached or passed the hardware limit switch. With "High level", the input signal is "TRUE" after the axis has reached or passed the hardware limit switch.
Enable SW limit switches
This check box activates the high and low software limit switches. When software switches are activated, an active motion comes to a stop at the position of the software limit switch. The technological object signals an error. After acknowledgment of the error, the axis can again be moved in the direction of its operating range.
Note Activated software limit switches act only on a homed axis.

Position of negative/positive SW limit switch
Configure the operating range of the axis with the positions of the negative and positive software limit switches.

See also

Section "Traversing range limitation" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

86

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Configuration - Dynamic limits (S7-1500, S7-1500T)
In the "Dynamic limits" configuration window, configure the maximum values for velocity, acceleration, deceleration and jerk of the axis.
Maximum velocity
In this field, define the maximum permitted velocity of the axis.
Maximum acceleration/maximum deceleration - ramp-up time/ramp-down time
Set the desired acceleration in the "Ramp-up time" or "Acceleration" fields. The desired deceleration can be set in the "Ramp-down time" or "Deceleration" fields. The following equations show the relationship between the ramp-up time and acceleration and the ramp-down time and deceleration:
Note A change in the maximum velocity influences the acceleration and deceleration values of the axis. The ramp-up and ramp-down times are retained. The "maximum deceleration" for active homing with change of direction at the hardware limit switch must be set sufficiently large, to brake the axis before reaching the mechanical endstop.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

87

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Smoothing time/jerk
You can enter the jerk limit parameters in the "Smoothing time" box, or alternatively in the "Jerk" box:  Set the desired jerk for the acceleration and deceleration ramp in the "Jerk" field. The
value 0 means that the jerk is not limited.  Set the desired smoothing time for the acceleration ramp in the "Smoothing time" field.
Note The configured smoothing time displayed in the configuration, applies only to the acceleration ramp. If the values of the acceleration and deceleration differ, the smoothing time of the deceleration ramp is calculated and used according to the jerk of the acceleration ramp. The smoothing time of the deceleration is adapted as follows: · Acceleration > Deceleration
A shorter smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration < Deceleration A longer smoothing time is used for the deceleration ramp compared with the acceleration ramp. · Acceleration = Deceleration The smoothing times of the acceleration and deceleration ramp are equal. If an error occurs, the axis decelerates with the configured emergency stop deceleration. A configured jerk limit is not taken into account for this.
The following equations show the relationship between the smoothing times and the jerk:

See also

Motion jobs started in the user program are performed with the selected jerk.
Section "Velocity profile" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462) Dynamic limits in gearing (Page 42)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

88

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Configuration - Torque limits (S7-1500, S7-1500T)
Configure the force/torque limiting of the drive in the "Torque limiting" configuration window.
The configuration is only available if a drive that supports force/torque limiting is selected and a telegram 10x is used. Telegram 101 cannot be used.

Effective

In the drop-down list, select whether the limit value is to be in effect "on load side" or "on motor side".

Torque limits

Enter a default value for the torque limiting in the specified unit of measurement in this field. The default value is in effect when the torque limiting is specified using Motion Control instruction "MC_TorqueLimiting", input parameter "Limit" < 0. Torque limiting applies to the following axis configurations:  Axis type is "Rotary" and limit value is in effect "On load side" or "On motor side"  Axis type is "Linear" and limit value is in effect "On motor side"

Force limit

Enter a default value for the force limit in the specified unit of measure in this field.
The default value is in effect when the force limit is specified using Motion Control instruction "MC_TorqueLimiting", input parameter "Limit" < 0.
The force limit applies to the following axis configuration: Axis type is "Linear" and limit value is in effect "On load side"
If the efficiency of the gear and leadscrew is crucial, you can set them in the "<TO>.Actor.Efficiency" tag.

Position-related monitoring
As a result of the force/torque limiting on the drive, a larger following error may occur or the axis standstill may not be detected reliably in positioning monitoring.
To deactivate the monitoring of the following error and the positioning monitoring during force/torque limiting, select the "Deactivate position-related monitoring" option. If you want to activate the position-related monitoring, select the option "Leave position-related monitoring enabled".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

89

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Interconnection in the SINAMICS drive
The following interconnection is required in the SINAMICS drive:
 P1522 to a fixed value of +100%
 P1523 to a fixed value of -100% (e.g. through interconnection to fixed value parameter P2902[i]).

See also

Section "Force/torque limiting" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

Configuration - Fixed stop detection (S7-1500, S7-1500T)
Configure the fixed stop detection in the configuration window.
A "Travel to fixed stop" can be realized by activating fixed stop detection using the Motion Control instruction "MC_TorqueLimiting" and a position-controlled motion job. The operation is also referred to as clamping.

Positioning tolerance
In this configuration field, configure the positioning tolerance that is regarded as a breaking away or turning back of the fixed stop when exceeded. To detect the breaking away or turning back of the fixed stop, the position setpoint must be located outside the positioning tolerance. The configured position tolerance must be less than the configured following error.

Following error

If the drive is stopped by a mechanical fixed stop during a motion job, the following error is increased. The accumulating following error serves as a criterion for fixed stop detection. In the "Following error" configuration field, configure the value of the following error starting from which the fixed stop detection is to take effect. The configured following error must be greater than the configured position tolerance.

Note
If the following error monitoring was activated in the position monitoring configuration, the "Maximum following error" configured there must be greater than the "Following error" of the fixed stop detection.

See also

Section "Fixed stop detection" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

90

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.5.5

Homing (S7-1500, S7-1500T)
Homing means matching the position value of a technology object to the real, physical location of the drive. Absolute target positions of the axis can only be approached with a homed axis.

Operating modes of the Motion Control instruction "MC_Home"
In S7-1500 Motion Control, the axis is homed with the Motion Control instruction "MC_Home". The following operating modes are used in the process:
 Active homing (incremental encoder)
With active homing, the Motion Control instruction "MC_Home" performs the configured home position approach. Active traversing motions are aborted. When the homing mark is detected, the position of the axis is set according to the configuration.
 Passive homing (incremental encoder)
With passive homing, the Motion Control instruction "MC_Home" instruction does not carry out any homing motion. The traversing motion required for this must be implemented by the user with other Motion Control instructions. Active traversing motions are not aborted upon start of passive homing. When the homing mark is detected, the axis is set according to the configuration.
 Direct homing absolute (incremental encoder or absolute encoder)
The axis position is set without taking into consideration the home position switch. Active traversing motions are not aborted. The value of input parameter "Position" of Motion Control instruction "MC_Home" is set immediately as the actual position of the axis.
 Direct homing relative (incremental encoder or absolute encoder)
The axis position is set without taking into consideration the home position switch. Active traversing motions are not aborted. The following statement applies to the axis position after homing:
New axis position = Current axis position + Value of parameter "Position" of instruction "MC_Home".

See also

Section "Homing" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

91

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Active homing (S7-1500, S7-1500T)
Configuration - Active homing (S7-1500, S7-1500T)
In the "Active Homing" configuration window, configure the parameters for active homing. "Active homing" is executed using the Motion Control instruction "MC_Home" with "Mode" = 3 and 5.
Note Parameter "MC_Home.Mode" (S7-1500 CPU) The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Settings for (S7-1500T)
In the drop-down list, select the encoder to which the homing settings are to apply.
Select the homing mode
Select from among the following homing modes:  Use zero mark via PROFIdrive telegram (Page 92)  Use reference output cam and zero mark via PROFIdrive telegram (Page 93)  Use homing mark via digital input (Page 94)
Homing mode "Use zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)
Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The zero mark is then sought in the reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.
Homing direction
Select the direction in which the next zero mark should be approached for homing. "Positive" is the homing direction in the direction of positive position values; "negative" in the direction of negative position values.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

92

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Approach velocity
In this field, specify the velocity which is used to traverse to the home position offset.

Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing.

Home position offset
In the case of a differing zero mark position and home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

Homing mode "Use reference output cam and zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The reference output cam is then searched for in the reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.

Approach direction
Select the approach direction for the reference output cam search.
"Positive" is the approach direction in the direction of positive position values; "negative" in the direction of negative position values.

Homing direction
Select the direction in which the zero mark should be approached for homing.

Approach velocity
In this field, specify the velocity at which the reference output cam is searched for during the homing procedure. Any configured home position offset is traversed at the same velocity.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

93

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Homing velocity
In this field, specify the velocity at which the axis approaches the zero mark for homing. For zero mark detection, the reference output cam must be exited.

Home position offset
In the case of a differing zero mark position and home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

Homing mode "Use homing mark via digital input" (S7-1500, S7-1500T)
When a digital input is used as a homing mark, the accuracy of the homing process is not as high as for hardware-supported homing using zero marks. You can improve the accuracy by using a low homing velocity.
Pay attention to the setting of short filter times for the digital input as well.

Digital input homing mark/output cam
In this configuration field, select the PLC tag of the digital input that is to act as a homing mark (reference output cam). Also select the level at which the homing mark is to be detected.
In order to be able to select an input, a digital input module must have been added in the device configuration, and the PLC tag name for the digital input must be defined.

Enable direction reversal at the hardware limit switch
Select this check box to use the hardware limit switch as a reversing output cam for the home position approach. After the axis has reached the hardware limit switch during active homing, it is ramped down at the configured maximum deceleration rate and the direction is then reversed. The homing mark is then sensed in reverse direction. If this function is not enabled and the axis reaches the hardware limit switch during active homing, then the drive is disabled and braked with the ramp configured in the drive.

Approach direction
Select the approach direction for the homing mark search.
"Positive" is the approach direction in the direction of positive position values; "negative" in the direction of negative position values.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

94

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Homing direction
Select the direction in which the homing mark for homing is to be approached.

Homing mark

Select the switch position of the "digital input" that is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one another are generated. The selection of the positive or negative side ensures that the homing mark is always evaluated at the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of whether it causes a rising or falling edge.

Approach velocity
In this field, specify the velocity at which the axis searches for the "digital input" during the home position approach. Any configured home position offset is traversed at the same velocity.

Homing velocity
In this field, specify the velocity at which the axis approaches the home position for homing.

Home position offset
If the homing mark position is different from the home position, enter the corresponding home position offset in this field. The axis approaches the home position at approach velocity.

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 5.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

95

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)
Passive homing (S7-1500, S7-1500T)
Configuration - Passive homing (S7-1500, S7-1500T)
Configure the parameters for passive homing in the "Passive Homing" (homing on the fly) configuration window. The "Passive homing" homing function is executed using the Motion Control instruction "MC_Home" with "Mode" = 2, 8 and 10.
Note Parameter "MC_Home.Mode" (S7-1500 CPU) The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Settings for

In the drop-down list, select the encoder for which the homing settings are to apply (only for S7-1500T).

Select the homing mode
Select from among the following homing modes:  Use zero mark via PROFIdrive telegram (Page 96)  Use reference output cam and zero mark via PROFIdrive telegram (Page 97)  Use homing mark via digital input (Page 98)

Homing mode "Use zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)

Homing direction
Select the direction in which the next zero mark should be approached for homing. The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

96

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Homing mode "Use reference output cam and zero mark via PROFIdrive telegram" (S7-1500, S7-1500T)
Homing direction
Select the direction in which the zero mark should be approached for homing. The next zero mark after leaving the reference output cam is used. The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

97

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Homing mode "Use homing mark via digital input" (S7-1500, S7-1500T)

Digital input homing mark/output cam
In this dialog field, select a digital input that is to act as a homing mark (reference output cam). Also select the level at which the homing mark is to be detected.

Homing direction
Select the direction in which the homing mark for homing is to be approached. The following options are available:  Positive
The axis moves in the direction of higher position values.  Negative
The axis moves in the direction of lower position values.  Current
The currently effective approach direction is used for homing.

Homing mark

Select which switch position of the "digital input" is to be used as the homing mark.
When a "digital input" is crossed, two switching edges that are spatially separated from one another are generated. The selection of the positive or negative side ensures that the homing mark is always evaluated at the same mechanical position.
The positive side is the switch position with a greater position value; the negative side is the switch position with the lesser position value.
The selection of the side is independent of the approach direction, and independent of whether it causes a rising or falling edge.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

98

Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Home position

In this field, configure the absolute coordinate of the home position. The home position configured here is in effect when the Motion Control instruction "MC_Home" is executed with "Mode" = 10.

Note
Parameter "MC_Home.Mode"
The "MC_Home.Mode" parameter for S7-1200 Motion Control and S7-1500 Motion Control has been standardized within the framework of technology version V2.0. This results in a new assignment of the parameter values for the "MC_Home.Mode" parameter. A comparison of the "MC_Home.Mode" parameter for technology versions V1.0 and V2.0 is available in the section "Version overview" of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

6.1.5.6

Position monitoring functions (S7-1500, S7-1500T)

Configuration - Positioning monitoring (S7-1500, S7-1500T)
In the "Positioning monitoring" configuration window, configure the criteria for monitoring the target position.

Positioning window
Configure the size of the positioning window in this field. If the axis is located within this window, the position is considered to be "reached".

Tolerance time

In this field, configure the tolerance time within which the position value must reach the positioning window.

Minimum dwell time in positioning window
Configure the minimum dwell time in this field. The current position value must be located in the positioning window for at least the "minimum dwell time". At the end of the hold time, the corresponding positioning job reports "Done" = TRUE.
Recommended setting: To avoid longer pauses, set values between 0 ms and 20 ms for dynamic positioning tasks.
If one of the criteria is violated, then the axis is stopped and the technology alarm 541 "Position monitoring error" is displayed (alarm response: Remove enable).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E47011129-AA

99

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Configuration - Following error (S7-1500, S7-1500T)
In the "Following Error" configuration window, configure the permissible deviation of the actual position of the axis from the position setpoint. The following error can be dynamically adapted to the current velocity of the axis.

Enable following error monitoring
Select this check box, if you want to enable following error monitoring. When following error monitoring is enabled, the axis is stopped in the error range (orange). The technology alarm 521 "Following error" is displayed (alarm response: remove enable).
When following error monitoring is disabled, the configured limits have no effect.

Maximum following error
Configure the following error that is permissible at maximum velocity in this field.

Warning level

In this field, configure a percentage of the current following error limit above which a warning should be output.
Example: The current maximum following error is 100 mm. The warning level is configured at 90%. If the current following error exceeds a value of 90 mm, the technology alarm 522 "Warning following error tolerance" is output. This is a warning and contains no alarm response.

Following error

In this field, configure the permissible following error for low velocities (without dynamic adjustment of the following error).

Start of dynamic adjustment
Configure the velocity starting from which the following error is to be dynamically adjusted in this field. Starting from this velocity, the following error up to the maximum velocity will be adjusted to the maximum following error.

Configuration - Standstill signal (S7-1500, S7-1500T)
In the "Standstill signal" configuration window, configure the criteria for standstill detection.

Standstill window
Configure the size of the standstill window in this field. For standstill to be indicated, the velocity of the axis must be within this window.

100

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Minimum dwell time in standstill window
Configure the minimum dwell time in the standstill window in this field. The velocity of the axis must be in the standstill window for at least the specified duration.
If both criteria are met, the standstill of the axis is indicated.

See also

Section "Position monitoring functions" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

6.1.5.7

Configuration - Control loop (S7-1500, S7-1500T)
In the "Control loop" configuration window, configure the precontrol and the gain Kv of the position control loop.
The Kv factor affects the following parameters:
 Positioning accuracy and stop control
 Uniformity of motion
 Positioning time
The better the mechanical conditions of the axis are (high stiffness), the higher the Kv factor can be configured. This reduces the following error, and a higher dynamic response is achieved.

Drive optimized
When the drive is optimized, the status bit lights up green. Otherwise, the status bit is gray.

Optimizing values on the drive
Use the green arrow to navigate to "Automatic controller optimization" in the optimization mask of the drive. The optimization mask of the drive is opened in online or offline mode, depending on the mode you are in. You can perform the optimization on the drive and optionally go online with the drive. You get back to the previous mask using the "Window Switcher".

Applying values from the drive
When you click the "Apply values from drive" button, a dialog box opens with the columns "Current value", "New value" and "Value on drive". Depending on the status of the drive, the online or offline values for "Speed control loop substitute time" and "Gain (Kv factor)" are displayed there.
The "New value" column can be edited. 50% of the value calculated on the drive is determined as a new value for the default setting for the gain. The new value of the gain should correspond to a maximum of 30-50% of the value on the drive. You apply the set values by clicking on "Yes".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

101

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Precontrol

Configure the percentage velocity precontrol in this field.

Speed control loop substitute time
Configure the speed control loop substitute time in this field (Tvtc).
When speed precontrol is activated, the setpoint is delayed by the speed control loop substitute time before the control deviation is established. This prevents an overshoot or a leading of the actual value compared with the position setpoint. The speed control loop substitute time is a simplified substitute model of the dynamic behavior of the speed control loop. The speed control loop substitute time is included in the balancing filter.

Gain (Kv factor)
In the input field, enter the gain Kv of the position control loop.

Dynamic Servo Control (DSC)
For position-controlled axes (positioning axes/synchronous axes), the closed loop position control can occur either in the CPU or in the drive, provided the drive supports Dynamic Servo Control (DSC). Select your preferred control process:
 Position control in the drive (DSC enabled) With the Dynamic Servo Control (DSC) function, the position controller is executed in the drive in the cycle clock of the speed control loop. The setting of a significantly greater position controller gain factor Kv is thus enabled. This increases the dynamics for setpoint sequence and disturbance variable correction for highly dynamic drives.
 Position control in the PLC

Note
Dynamic Servo Control (DSC) is only possible with one of the following PROFIdrive telegrams: · Standard telegram 5 or 6 · SIEMENS telegram 105 or 106

See also

Section "Closed loop control" in the function manual "S7-1500/S7-1500T Axis functions" (https://support.industry.siemens.com/cs/ww/en/view/109766462)

102

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

6.1.5.8

Configuration - Actual value extrapolation (S7-1500T)
Configure the properties of the extrapolation for an actual value coupling for synchronous operation in the "Actual value extrapolation" configuration window. The values set here only apply when the actual values of this axis are used as leading value.

Position filter T1 and T2
Enter the time constants of the PT2 filter for smoothing the position.

Velocity filter T1 and T2 and tolerance band width
Enter the time constants of the PT2 filter for the smoothing of the actual velocity and the tolerance band width of the smoothed actual velocity.
For optimized application of the tolerance band, enter the same bandwidth for the tolerance band as the width of the noise signal.

Hysteresis value
Enter a value for application of the hysteresis function to the extrapolated actual value of the position. The specification is made in the configured length unit.

Leading axis dependent extrapolation time (read-only)
The leading axis-dependent time is calculated from the sum of the actual value acquisition time at the leading axis, (Ti), the time of the interpolator (TIpo) and the sum of position filters T1 and T2:
Leading axis dependent extrapolation time = Ti + TIpo + T1 + T2

Following axis dependent extrapolation time
Specify the following axis-related proportion for the extrapolation of the leading value. The value (unchanged or offset against user-specific runtimes) from the tag "<TO>.StatusPositioning.SetpointExecutionTime" of the following axis is used as the basis.

Time from cross-PLC synchronous operation (read-only)
The time from the cross-PLC synchronous operation corresponds to the value of the deceleration time set at the axis or encoder in "Configuration > Leading value settings".

Apply leading value velocity from differentiation
When you select this check box, the leading value velocity is taken from the differentiation of the extrapolated leading value position.
When you clear this check box, the filtered actual velocity is applied.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

103

Configuring (S7-1500, S7-1500T) 6.1 Configuring the synchronous axis technology object (S7-1500, S7-1500T)

Include leading axis condition time
When you select this check box, the leading axis dependent extrapolation time is included in the calculation of the effective extrapolation time.
When you clear this check box, the leading axis dependent extrapolation time is not included in the calculation of the effective extrapolation time.

Effective extrapolation time (read-only)
The effective extrapolation time is the sum of the leading axis-dependent time, the following axis-dependent time and the delay time of cross-PLC synchronous operation.

See also

Extrapolation of the leading values for actual value coupling (Page 22)

104

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

6.2
6.2.1

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)
Configuring the cam technology object (S7-1500T)
Structure of the cam editor (S7-1500T)
You configure the cam technology object (Page 19) with an editor. You create the cam using a diagram, a table containing the elements of the curve and the properties of the elements. Transitions are calculated between the individual elements of the cam (e.g. points, lines, polynomials). The curve reflects the path-related dependency between the leading axis (leading values, abscissa in the chart) and following axis (following values, ordinate in the chart). The following figure shows the structure of the editor.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

105

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)



Toolbar



Graphical editor

The leading value range (definition range) is displayed on the abscissa (x axis).

The following value range (value range) is displayed on the ordinate (y axis).



Tabular editor



Properties (Inspector window)

106

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Toolbar

You use the toolbar to operate the graphical editor and to import/export cams.

Graphical editor
In the graphical editor, you edit the elements of the curve graphically. The elements can be added, edited and deleted. Up to four charts can be created one above the other with synchronized abscissa. The setpoint curve as well as the curves for the effective position, velocity, acceleration and jerk can be displayed in the charts.
The definition of the cam starts with the first defined interpolation point or the first segment and does not corresponds to the definition range in the cam editor.

Tabular editor

All elements of the curve are listed in the tabular editor. Existing elements can be edited. New elements can be added.

Properties (Inspector window)
In the Inspector window, you configure the properties of the trend and of the selected element in the "Properties" tab, and the graphical view in the "Display" tab:
 Profile (e.g. leading and following value range, optimization and interpolation of the profile, number of elements used)
 Element (e.g. derivatives, polynomial coefficients, optimization of the element)
 Graphical view (e.g. line type, line color, scaling of the view)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

107

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Elements of the curve
The following table shows the elements that can be used to define the curve:

Element Point
Point group Line Sine
Polynomial
Inverse sine (approximated) Transition

Description
A point assigns a following value to a leading value. The curve runs through the point with these coordinates.
The velocity, acceleration and jerk can be defined in this point using the first, second and third derivative.
A point group combines two or more points into an commonly interpolated element and allows precise interpolation between these points.
A line describes a motion with constant velocity from the start point of the line to the end point. The incline of the line specifies the constant velocity.
A sine element describes a motion according to the sine function. The sine function can be adjusted with the phase angle in the start point and end point, the period length, the amplitude as well as the oscillation zero point (offset).
A polynomial describes a motion according to a polynomial function of the 7th degree maximum. Polynomials can be defined by entering the boundary conditions or the polynomial coefficients. Optionally, you can configure a trigonometric polynomial component.
An inverse sine describes a motion according to the arcsine function. An inverse sine is approximated using interpolation points of the arcsine function.
Transitions interpolate the range between two elements. The ranges are automatically interpolated by the controller or using a configurable optimization according to VDI Guideline 2143.
Transitions are added automatically.

Additional information
You can find more information about working with the cam editor in FAQ entry 109749820 (https://support.industry.siemens.com/cs/ww/en/view/109749820) in the Siemens Industry Online Support.

108

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.2

Operating the cam editor (S7-1500T)
The procedure described here shows the basic operation of the cam editor. This procedure serves as a recommendation. The basic operation can include the follow tasks:  Adapting defaults  Creating and adapting the curve  Interpolation/optimization of the transitions

Adapting defaults
To adjust the leading and following value range of the cam profile as well as the graphical view, follow these steps: 1. In the properties (Inspector window), open the "Profile > General (Page 125)"
configuration window. 2. Configure the leading value range and the following value range of the curve definition.
The graphical view is automatically adapted to the inputs. 3. In the area navigation of the Inspector window, open the "Display (Page 146)" tab. 4. Configure the configuration windows:
­ The display of the charts and curves ­ The grid spacing for aligning inputs in the graphical editor ­ The decimal places displayed in the cam editor.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

109

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)
Creating and adapting the curve
To create and adapt the curve, follow these steps: 1. Use the graphical editor and/or the tabular editor to add the elements of the cam:
­ Select the tool required for inserting the respective element in the toolbar. Place the element at the required position in the graphical editor.
­ Use <Add> to insert the corresponding elements in the "Element type" column of the tabular editor. Adjust the position of the elements using the start and end values.
Transitions between the elements are added automatically. 2. To edit an element, select it in the graphical or tabular editor.
The element is highlighted in the graphical and in the tabular editor. The "Element > Parameter/Characteristic" configuration window is displayed in the properties (Inspector window). 3. The elements can be adjusted as follows: ­ Move the element or the drag handles of the element in the graphical editor. ­ Adjust the start and end values in the tabular editor. ­ Configure additional element-specific parameters in the properties (Inspector window)
in the "Element > Parameter (Page 132)" configuration window. ­ Set the interpolation of the transitions with the properties (Inspector window). The number of elements used is displayed in the properties (Inspector window) in the "Profile > Statistics (Page 130)" properties window.
Setting the interpolation of the transitions (system interpolation)
The interpolation (Page 48) can be set separately for each transition. The default for interpolation of the transitions is the system interpolation. You configure the system interpolation for all transitions in the properties (Inspector window) in the "Profile > System interpolation (Page 127)" configuration window.

110

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Setting the optimization of the transitions (according to VDI Guideline 2143)
Each transition can also be adapted separately according to the VDI Guideline 2143. The settings in the properties (Inspector window) in the "Profile > Default optimization settings (Page 126)" configuration window are hereby taken into consideration.
To adapt the optimization of a transition according to the VDI Guideline 2143, follow these steps:
1. Select the transition in the graphical or tabular editor.
2. In the properties (Inspector window), open the "Element > Characteristic (Page 142)" configuration window.
3. Select the optimization method "VDI-based optimization" in the "Optimization method" drop-down list.
4. If necessary, change the default settings.
The selection of the parameters is automatically limited to the settings that can be applied according to VDI Guideline 2143.
The optimization of the transitions according to VDI guidelines consumes additional points and/or segments (Page 130) in the cam.

See also

Configuration charts - Charts and curves (Page 146)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

111

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3

Graphical editor (S7-1500T)

6.2.3.1

Structure of the graphical editor (S7-1500T)
The graphical editor is divided into the following areas:  Toolbar  Curve diagram

Toolbar
Button

The toolbar at the top of the graphical editor provides you with buttons for the following functions:

Function Importing cam from file

Description See section Importing/exporting cam (Page 148)

Exporting cam to file

See section Importing/exporting cam (Page 148)

Edit elements/Move view Activate zoom selection

· Selecting and moving of individual elements and element
· Moving the view using drag-and-drop To switch from any tool to the "Edit elements/Move view" tool, press the <Esc> key. Zoom into selected area

Activate vertical zoom Activate horizontal zoom Zoom in Zoom out Show all

Vertical zoom into selected area without horizontal scaling Alternative: <Ctrl> +drag to ordinate keeping mouse button pressed Horizontal zoom into selected area without vertical scaling Alternative: <Ctrl> +drag to abscissa keeping mouse button pressed Enlargement of the display Alternative: <Ctrl> + mouse wheel up in curve diagram Reduction of the display Alternative: <Ctrl> + mouse wheel down in curve diagram Display of entire definition and value range

Zoom into curve Activate snap grid Inserting a point

Zoom to the following value range of the curve that you selected in the legend of the chart
Inputs and element end points are aligned to the configurable snap grid and to other element end points.
Adding a point to the chart

Inserting a line

Adding a line to the chart

Inserting a sine

Adding a sine element to the chart

112

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Button

Function Inserting a polynomial

Description Adding a polynomial to the chart

Inserting an inverse sine

Adding an inverse sine to the chart

Insert point group

Add a point group to the chart

View: A chart with positions View: A chart with all curves
View: Four charts with all curves
Vertical measuring lines Horizontal measuring lines Show legend Show legend left

Display of one chart with the following curves of the cam opened in the editor:
· Preset curve
· Effective position
Display of one chart with the following curves of the cam opened in the editor:
· Preset curve
· Effective position
· Effective velocity
· Effective acceleration
· Effective jerk
Display of four charts with the following curves of the cam opened in the editor:
· Chart with setpoint curve and effective position
· Chart with effective velocity
· Chart with effective acceleration
· Chart with effective jerk
Displaying and moving of vertical measuring lines Hold down the left mouse button and drag to draw a measuring range. The vertical position of the measuring lines can be moved. The function values for the measuring line positions are displayed in the chart. The difference of the measuring lines is displayed between the measuring lines. Displaying and moving of horizontal measuring lines Hold down the left mouse button and drag to draw a measuring range. The horizontal position of the measuring lines can be moved. The function values for the measuring line positions are displayed in the chart. The difference of the measuring lines is displayed between the measuring lines. Showing or hiding of the legend in the curve diagram. To display values for a specific curve on the ordinate, click on the name of the corresponding curve in the legend. Display of the legend on the left side of the curve diagram.

Show legend right

Display of the legend on the right side of the curve diagram.

Read out and display online curve one time

Display of the position values of the cam read back from the CPU (orange)
The cam editor reads out the cam that was already loaded into the CPU. The read out "Online curve" is displayed in the graphical editor.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

113

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Curve diagram

In the curve diagram, you enter the elements of the curve and adjust the curve by selecting and moving elements.
Chart areas outside of the leading value/following value range configured in "Profile > General (Page 125)" are grayed out. Elements outside the leading value/following value range are displayed with a warning ("Element is outside the definition range").
You can display various curves (position, velocity, acceleration and jerk) one above the other in up to four charts by configuring the graphical view accordingly. When multiple charts are displayed, you can adapt the graphs to match the separator lines.
The view can be zoomed in the manual mode by pressing <Ctrl > + Mouse wheel and <Ctrl > + while pressing the mouse button on the abscissa/ordinate.
The editor shows messages for checking the entered curve via warning triangles . The tooltip of the waring triangle shows the message text. Configure the checking of the curve in the "Check (Page 129)" configuration window.

Display of the online curve
When you click the button, the cam editor reads the data from the technology object data block and displays the curve in the graphical editor:

Cam status Data not modified (CamDataChanged = 0)
Data modified (CamDataChanged = 1)

Interpolation status Not interpolated (Interpolated = 0) Interpolated (Interpolated = 1) Not interpolated (Interpolated = 0) Interpolated (Interpolated = 1)

Description Only the points and segments of the cam are displayed.
The interpolated cam is displayed.
Only the points and segments of the cam are displayed.
The interpolated cam as well as changed points and segments are displayed.

114

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.2

Inserting a point (S7-1500T)
A point assigns a following value to a leading value. The curve runs through the point with these coordinates.
By means of the first, second and third derivatives, the velocity, acceleration and jerk can be defined in this point. The derivations are only taken into consideration during VDI-based optimization of transitions of the point to other elements.

Inserting a point
To add a point to the curve, follow these steps:
1. Select the "Insert point" tool in the toolbar.
2. Click on the position in chart 1 where you want to insert the point.
The point is inserted. The coordinates are displayed for the point. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element is inserted automatically.

Moving a point

To move a point in the graphical editor, follow these steps: 1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the point in chart 1. 3. Use drag-and-drop to move the point to the desired position.

Adapting parameters
The parameters of the point can be adjusted in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 133)".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

115

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.3

Insert point group (S7-1500T)
A point group combines two or more points into an commonly interpolated element and allows precise interpolation between the points.

Insert point group
To add a point group to the trend, proceed as follows:
1. Select the "Insert point group" tool in the toolbar.
2. In Chart 1, click on the position at which you want to insert the point group.
The point group is inserted. The coordinates of the start point and the end point are displayed at the point group. The tabular editor and the view of the properties (Inspector window) are updated. If a different element already exists, a transition to the existing element is automatically inserted.

Adapt point group
To adapt a point group in the graphical editor, proceed as follows:
1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the point group in Chart 1.
The point group is highlighted graphically with drag handles. The following drag handles are displayed: ­ Start value of the point group ­ End value of the point group 3. Drag-and-drop the drag handles or the whole point group to the desired position. If further interpolation points are configured between the start point and the end point in the point group, the cam editor handles the interpolation points as follows: ­ Definition type of the leading value "Relative to the segment"
The interpolation points are shifted relative to the start and end points. ­ Definition type of the leading value "Absolute in the profile"
The interpolation points are not moved.

Adapting parameters
The parameters of the point group can be adapted in the graphical editor, in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 133)".

116

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.4

Inserting a line (S7-1500T)
A line describes a motion with constant velocity from the start point of the line to the end point. The incline of the line specifies the constant velocity.

Inserting a line

To add a line to the curve, follow these steps:
1. Select the "Insert line" tool in the toolbar.
2. Use drag-and-drop in chart 1 to draw the line from the start position to the end position.
The line is inserted. The coordinates of the start point and end point are displayed for the line. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element is inserted automatically.

Moving a line

To move a line in the graphical editor, follow these steps:
1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the line in chart 1.
The line is graphically highlighted with drag handles. The following drag handles are displayed: ­ Start point of the line ­ End point of the line 3. Use drag-and-drop to move the drag handles or the entire line to the desired position.

Adapting parameters
The parameters of the line can be adjusted in the graphical editor, in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 136)".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

117

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.5

Inserting a sine (S7-1500T)
A sine element describes a motion according to the sine function. The sine function can be adjusted with the phase angle in the start point and end point, the period length, the amplitude as well as the oscillation zero point (offset).

Inserting a sine
To add a sine to the curve, follow these steps:
1. Select the "Insert sine" tool in the toolbar.
2. Click on the position in chart 1 where you want to insert the sine. The mouse pointer points to the start position of the sine here.
The sine is inserted. The coordinates of the start point and end point are displayed for the sine. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element is inserted automatically.

Adjusting a sine
To adjust a sine in the graphical editor, follow these steps:
1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the sine in chart 1.
The sine is graphically highlighted with drag handles and guide lines for the zero line and the amplitude. The following drag handles are displayed: ­ Leading value/shifting at left/right boundary
These drag handles can also be used to adjust the inclination of an inclined sine. ­ Leading value at left/right boundary ­ Phase at left/right boundary ­ Amplitude 3. Use drag-and-drop to move the drag handles or the entire sine to the desired position.

Adapting parameters
The parameters of the sine can be adjusted in the graphical editor, in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 137)".

118

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.6

Inserting a polynomial (S7-1500T)
A polynomial describes a motion according to a polynomial function of the 7th degree maximum. Polynomials can be defined by entering the boundary conditions or the polynomial coefficients. Optionally, you can configure a trigonometric polynomial component.

Inserting a polynomial
To add a polynomial to the curve, follow these steps:
1. Select the "Insert polynomial" tool in the toolbar.
2. Click on the position in chart 1 where you want to insert the polynomial. In so doing, the mouse pointer points to the start position of the polynomial.
The polynomial is inserted. The coordinates of the start point and end point are displayed for the polynomial. The tabular editor and the view of the properties (Inspector window) are updated. If a different element already exists, a transition to the existing element is automatically inserted.

Adjusting a polynomial
To adjust a polynomial in the graphical editor, follow these steps:
1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the polynomial in chart 1.
The polynomial is graphically highlighted with drag handles. The following drag handles are displayed: ­ Leading value/following value at left/right boundary ­ Position of point of inflection (lambda: relative to the element or absolute in the profile) 3. Use drag-and-drop to move the drag handles or the entire sine to the desired position.

Adapting parameters
The parameters of the polynomial can be adapted in the graphical editor, in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 139)".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

119

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.7

Inserting an inverse sine (S7-1500T)
An inverse sine describes a motion according to the arcsine function. The arcsine function is the inverse function of the sine function. An inverse sine is approximated using interpolation points of the arcsine function.

Inserting an inverse sine
To add an inverse sine to the curve, follow these steps:
1. Select the "Insert inverse sine" tool in the toolbar.
2. Click on the position in chart 1 where you want to insert the inverse sine. In so doing, the mouse pointer points to the start position of the inverse sine.
The sine is inserted. The coordinates are displayed for the point. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element is inserted automatically.

Adjusting an inverse sine
To adjust an inverse sine in the graphical editor, follow these steps:
1. Select the "Edit elements/Move view" tool in the toolbar. 2. Select the inverse sine in chart 1.
The inverse sine is graphically highlighted with drag handles. The following drag handles are displayed: ­ Start point of the inverse sine ­ End point of the inverse sine 3. Use drag-and-drop to move the drag handles or the entire inverse sine to the desired position.

Adapting parameters
The parameters of the inverse sine can be adjusted in the graphical editor, in the tabular editor as well as in the properties (Inspector window) under "Element > Parameter (Page 141)".

120

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.3.8

Deleting an element (S7-1500T)
To delete an element in the graphical editor, follow these steps: 1. Select the element. 2. Press the <Del> key.
The element is deleted. The graphical editor and the view of the properties (Inspector window) are updated. A transition to any element present is also deleted.

6.2.3.9

Shortcut menu in the graphical editor (S7-1500T)
The following table shows the functions in the shortcut menu of the graphical editor:

Function

Description

Show all

Display of entire definition and value range

Zoom into curve

Displays the curve selected in the legend of the chart

Zoom in

Enlargement of the display

Zoom out

Reduction of the display

Open charts and curves Call of the "Charts and curves (Page 146)" dialog

Cut

Removing the selected elements and copying them to the clipboard

Copy

Copying of the selected elements to the clipboard

Paste

Pasting of the elements from the clipboard to the last element

Delete

Deletion of the selected elements

Transitions to existing elements are also deleted.

Paste special

Call of the "Paste elements (Page 151)" dialog

Group points

Combine the selected points into a group of points

The entry is displayed under the following conditions:

· Only points are selected in the graphic/tabular editor.

· There are no other elements between the selected points.

Dissolve point group
Show/hide measuring point labels

Ungroups the selected point group into individual points Showing or hiding the measuring points The entry is displayed under the following conditions:

· Measuring lines are displayed. · Measuring points are hidden/shown.

Move Scale

Call of the "Move elements (Page 151)" dialog Call of the "Scale elements (Page 151)" dialog

See also

Dialogs in the shortcut menu (Page 151) Configuration charts - Charts and curves (Page 146)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

121

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.4

Tabular editor (S7-1500T)

6.2.4.1

Structure of the tabular editor (S7-1500T)
The tabular editor shows all elements of the curve, sorted by their leading values. The elements can be adjusted. New elements can be added.
The following properties are displayed in the corresponding column for each element of the curve:

Column/Property First column Second column

Description Sequential number of the element Display of calculation problems that might occur with warning triangle

Element type
Start Leading value Following value Position1) Velocity1) Acceleration1) Jerk1)
End Leading value Following value Position1) Velocity1) Acceleration1) Jerk1)
Comment

The alarm text is displayed in the tooltip of the warning triangle.
· Display/change of element type · Adding elements Possible element types: · Point · Point group · Line · Sine · Polynomial · Inverse sine · Transition
Parameter values at start point of the element Leading values at start point of the element Following values at start point of the element Calculated effective position at start point of the element Calculated effective velocity at start point of the element Calculated effective acceleration at start point of the element Calculated effective jerk at start point of the element Parameter values at end point of the element Leading values at end point of the element Following values at end point of the element Calculated effective position at end point of the element Calculated effective velocity at end point of the element Calculated effective acceleration at end point of the element Calculated effective jerk at end point of the element Optional comment for element.

1) Displayed according to the configuration in "Properties (Inspector window) > Graphical view > Charts and curves".

122

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.4.2

Editing the curve (S7-1500T)
The tabular editor provides you with the following options for editing the curve:  Pasting elements  Deleting elements  Changing the element type  Adjusting the leading value and following value of the boundary points

Inserting an element
To add an element in the tabular editor, follow these steps:
1. Select the desired element type from the "Add" drop-down list in the "Element type" column. "Add" is always displayed in the line after the last added element.
The element is inserted after the last element with suitable values. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element is inserted automatically.
The parameters of the element can be adjusted in the graphical editor, tabular editor, and properties (Inspector window).

Deleting an element
To delete an element in the tabular editor, follow these steps: 1. Select the line of the element. 2. Press the <Del> key.
The element is deleted. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element present is also deleted.

Converting the element type
To convert the element type of an element in the tabular editor, follow these steps:
1. Select the line of the element.
2. Select the desired element type from the drop-down list in the "Element type" column.
The element type of the element is converted to the selected element type. The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element present is adjusted automatically.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

123

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Adjusting the leading value and following value of the boundary points
To change the leading value/following value of the boundary points of an element in the tabular editor, follow these steps:
1. Select the input field of the parameter to be changed.
2. Enter the desired value.
The tabular editor and the view of the properties (Inspector window) are updated. A transition to any element present is adjusted automatically.

6.2.4.3

Shortcut menu in the tabular editor (S7-1500T)
The following table shows the functions in the shortcut menu of the tabular editor:

Function Insert row above
Insert row below
Cut Copy Paste Delete
Paste special Group points
Dissolve point group Move Scale

Description Insert a table row/an element before the selected line/selected element If no transition exists before the element, the selected element and the adjoining elements are changed. Insert a table row/an element after the selected line/selected element If no transition exists before the element, the selected element and the adjoining elements are changed. Removing the selected elements and copying them to the clipboard Copying of the selected elements to the clipboard Pasting of the elements from the clipboard to the last element Deletion of the selected elements Transitions to existing elements are also deleted. Call of the "Paste elements (Page 151)" dialog Combine the selected points into a group of points The entry is displayed under the following conditions:
· Only points are selected in the graphic/tabular editor. · There are no other elements between the selected points.
Ungroups the selected point group into individual points Call of the "Move elements (Page 151)" dialog Call of the "Scale elements (Page 151)" dialog

124

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5

Properties (Inspector window) (S7-1500T)

6.2.5.1

Context-sensitive display (S7-1500T)
The parameters for the profile of the cam as well as for the elements are displayed in the properties (Inspector window). The corresponding parameters are displayed according to the selected element: If no element of the curve is selected, only the settings for the profile of the cam are displayed. If an element of the curve is selected, the parameters of the element are additionally displayed.

6.2.5.2

Configuration of profile - General (S7-1500T)
Configure the display range of the graphical editor in the "General" configuration window.
The inputs of the leading value range and following value range only effect the display in the graphical editor. The cam is interpolated in the definition range between the following values:
 First defined interpolation point/start of the first segment of the cam (<TO>.StatusCam.StartLeadingValue)
 Last defined interpolation point/end of the last segment of the cam (<TO>.StatusCam.EndLeadingValue)

Display range of the leading value
In this area, you configure the display range of the leading value in the graphical editor:

Parameters Start
End

Description
In this field you configure the start point of the display range of the leading value.
In this field you configure the endpoint of the display range of the leading value.

Display range of the following value
In this area, you can configure the limitation of the following value range in the graphical editor:

Parameters Minimum
Maximum

Description
In this field you configure the lowest permissible value for the following value display range.
In this field you configure the greatest permissible value for the following value display range.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

125

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.3

Configuration of profile - Default optimization settings (S7-1500T)
You configure the default values for optimization of transitions according to VDI Guideline 2143 in the "Default optimization settings" configuration window. The default values are used when you use the "VDI-based optimization" optimization method for a transition (Page 142) and when you select the setting "Default optimization setting" for the continuity or the optimization target.
The cam is interpolated with the Motion Control instruction MC_InterpolateCam (Page 230) according to the settings for the VDI optimization.

Defaults for the VDI optimization
Configure the default settings for continuity requirement and optimization target in this area:

Parameters Continuity
Optimization target

Description In the drop-down list, select which parameter is continuous in the boundary points and is to be taken into consideration for optimization. · Position · Velocity · Acceleration · Jerk
In the drop-down list, select the optimization target according the VDI guideline: · Not specified · Velocity (Cv) · Acceleration (Ca) · Jerk (Cj) · Minimum Dynamic Moment (Cmdyn)

126

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.4

Configuration of profile - System interpolation (S7-1500T)
In the "System interpolation" configuration window, configure the interpolation of transitions according to the system specifications. These settings are used when you use the "System interpolation" optimization method for a transition (Page 142) (default setting).
The cam is interpolated with the Motion Control instruction "MC_InterpolateCam (Page 230)".

System interpolation settings
Configure the interpolation type and the behavior of the boundary points in this area.

Parameters Interpolation type
Behavior at boundary

Description In the drop-down list, select the interpolation type by which the transitions in the curve are interpolated: · Linear interpolation · Interpolation with cubic splines · Interpolation with Bézier splines
In the drop-down list, select which behavior of the boundary points applies to the interpolation: · No restrictions · First derivative continuous (velocity continuous)
The cam is interpolated in such a way that the first derivative (velocity) is equal at the start and end of the cam.

6.2.5.5

Configuration of profile - Effective runtime curves (S7-1500T)
Configure the values for the leading axis and following axis that are applied to the effective curve in the "Effective runtime curves" configuration window. The runtime emulation calculates the effective curve with these applied values and displays the curve in the graphical editor with the applied limits.
The inputs are not downloaded into the CPU. This means the cam is interpolated without these inputs. You can use these applied values to test and visualize how the cam behaves during operation, e.g. when entering a scaling at "MC_CamIn".

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

127

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Settings of the leading axis
Configure the calculation and display of the curve on the leading value end in this area:

Parameters Copy from axis
Scaling factor
Unit of measure
Unit of measure of the first derivative Velocity

Description
Using the button and the "Copy leading value settings of axis" dialog, select an axis whose maximum velocity is applied as the velocity for the leading axis.
Configure a leading value-side scaling factor in this field. This allows the acceptance that a scaling is specified for an "MC_CamIn" job.
In the selection list, select the unit of measurement for the leading value.
In the selection list, select the unit of measurement for the first derivative of the leading value.
Configure the velocity of the leading axis applied for the runtime emulation of the curve in this field.

Settings of the following axis
Configure the calculation and display of the curve on the following value side in this area:

Parameters Copy from axis
Scaling factor
Unit of measure
Unit of measure of the first derivative Maximum velocity Maximum acceleration Maximum jerk

Description
Using the button and the "Copy following value settings of axis" dialog, select an axis whose maximum dynamic values are applied as the limits to be checked during calculation and display of the curve.
Configure a following value-side scaling factor in this field. This allows the acceptance that a scaling is specified for an "MC_CamIn" job.
In the selection list, select the unit of measurement for the following value.
In the selection list, select the unit of measurement for the first derivative of the following value.
Configure the maximum velocity for the following axis in this field.
Configure the maximum acceleration for the following axis in this field.
Configure the maximum jerk for the following axis in this field.

128

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.6

Configuration - Check (S7-1500T)
In the "Verification" configuration window, you configure which criteria the cam editor checks when entering the curve. When you activate a check, the graphical and the tabular editor display corresponding messages via a warning triangle on the element. Use the tooltip at the warning triangle to display the message text.

Examination of limit violations
Configure the checks for compliance with the configured limits in this area:

Check/Element Observe the curve definition of the leading and following value ranges
Check adherence to the maximum values of the derivatives of the effective runtime curve

Description
Select the "Check curve definition of the leading and following value ranges" check box to have the cam editor check the curve accordingly.
Select the "Check adherence to the maximum values of the derivatives of the effective runtime curve" check box to have the cam editor check the curve accordingly.

Verification of VDI suitability
Select the "Check the suitability of transitions in accordance with VDI" check box to have the cam editor check the VDI suitability of the curve. The cam editor checks the following with this:  Support of the transition classification of the currently selected VDI transition  Boundary value adjustment according to VDI

Verification of continuity
In the "Required continuity" list, select which parameter the cam editor checks for continuity:  Position  Velocity  Acceleration  Jerk If a function or a derivative is discontinuous, all higher derivatives are also discontinuous.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

129

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.7

Profile - Statistics (S7-1500T)
The "Statistics" properties window shows an overview of the number of elements of the cam, as well as the minimum and maximum values of the effective curves for the slave value and the derivatives. A cam consists of a maximum of 1000 points and a maximum of 50 segments.

Used elements
This area shows the number of used elements of the curve:

Parameters Points
Segments

Description This field shows the number of used points of the cam. A cam consists of a maximum of 1000 points. This field shows the number of used segments of the cam. A cam consists of a maximum of 50 segments.

The use of points and segments depends on the compilation and configuration of the elements. The following table shows the use of points and segments per element:

Element

Number of used points

Number of used segments

Point

1

0

Point at a transition with VDI-based optimization 0

0

Point group with point approximation mapping Number of interpolation points

0

method

configured.

("Properties (Inspector window) > Element > Parameter > Approximation > Number of interpolation points")

Default setting: 32

Point group with segment approximation map- 0 ping method

Number of interpolation points configured - 1

Line

0

1

Sine

0

1

Polynomial

< of the 7th degree

0

1

of the 7th degree

0

2

Inverse sine

Number of interpolation points

0

configured.

("Properties (Inspector window) > Element > Parameter > Approximation > Number of interpolation points")

Default: 32

Inverse sine to the right of a transition with VDI- Number of interpolation points

0

based optimization

configured - 1

130

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Element Transition with system interpolation Transition with VDI-based optimization
Motion rule Sine Sine with relative Lambda  0.5 Inclined sine Inclined sine with relative Lambda  0.5 Polynomial Sinus with relative Lambda  0.5 Modified acceleration trapezoid Motion task Dwell-in-reverse Reverse-in-dwell Dwell-in-dwell Modified sine Motion task Dwell-in-dwell Constant velocity-in-constant velocity Constant-velocity-in-dwell Dwell-in-constant velocity Sine line combination Harmonic combination Double-harmonic transition
Quadratic parabola Lambda = turning point of the curve

Number of used points 0

Number of used segments 0

0

1

0

2

0

1

0

2

0

1

0

2

0

5

0

5

0

6

0

3

0

4

0

4

0

4

0

3

0

3

Number of interpolation points

0

configured.

("Properties (Inspector window) > Element > Parameter > Approximation > Number of interpolation points")

Default setting: 32

0

2

Value ranges

This area shows the minimum and maximum values of the effective curves for the following value and the derivatives.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

131

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Boundary conditions
The following boundary conditions apply to the input and use of points and segments:
 Points
With points with the same leading values, the point that you have entered last or which is listed in the tabular editor is active.
 Segments
­ Gaps between segments are filled with a transition segment.
­ For gaps in the leading value range of less than 1.0E-4, segment end points and segment start points are pulled together.
­ For gaps in the leading value range greater than 1.0E-4, a new transition segment is inserted.
­ For overlaps, the new segment is inserted from the start point and used completely. When the previous segment is defined in excess of the new segment, the previous segment continues to be used after the end point of the new segment.
 Interpolation points and segments (mixed cams)
The segment is used when points are defined in the same range.

6.2.5.8

Configuration of elements - Parameters (S7-1500T)
In the "Parameters/Characteristic" configuration window, configure the parameters of the selected element of the curve. The inputs are applied in the tabular and graphical editors. The element-specific parameters are displayed according to the selected element:  Point (Page 133)  Point group (Page 133)  Line (Page 136)  Sine (Page 137)  Polynomial (Page 139)  Inverse sine (Page 141)  Transition (characteristic) (Page 142)

132

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.9

Configuration of elements - Parameters (Point) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.

Parameters

Configure the parameters of the selected point in this area:

Parameter/Option

Description

Leading value of the point

Leading value

In this field, configure the leading value of the point (value in the definition area).

Following values of the point

Following value

Configure the following value of the point (value in the range of the function) in this field.

Use first derivative

Select the check box to specify the first derivative in the selected point and to include it in the interpolation of the cam.

First derivative

Configure the value of the first derivative in the selected point in this field.

Use second derivative Select the check box to specify the second derivative in the selected point and to include it in the interpolation of the cam.

Second derivative

Configure the value of the second derivative in the selected point in this field.

Use third derivative

Select the check box to specify the third derivative in the selected point and to include it in the interpolation of the cam.

Third derivative

Configure the value of the third derivative in the selected point in this field.

The derivations are taken into consideration during VDI-based optimization of transitions of the points to other elements.

See also

Inserting a point (Page 115)

6.2.5.10

Configuration elements - Parameters (point group) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

133

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Parameters

In this area, configure the parameters of the selected point group:

Parameter/Option Leading values of the point group
Start
End
Interpolation points Definition type of the leading values

Description
In this field, configure the start point of the point group in the leading value range (definition area). In this field, configure the end point of the point group in the leading value area (definition area).
In the drop-down list, select how the leading values of the interpolation points are specified: · Relative to the segment

You specify the leading values of the interpolation points relative to the group of points from 0.0 to 1.0. The value 0.0 corresponds to the beginning of the point group. The value 1.0 corresponds to the end of the point group.
· Absolute in the profile

Definition type of the following values

You specify the leading values of the interpolation points as absolute values. In the drop-down list, select how the following values of the interpolation points are specified:
· Relative to the segment

You specify the following values of the interpolation points relative to the following value range of the point group from 0.0 to 1.0. The value 0.0 corresponds to the configured minimum following value of the point group. The value 1.0 corresponds to the configured maximum following value of the point group.
· Absolute in the profile

Minimum following value Maximum following value
Interpolation points
Leading value Following value

You specify the following values of the interpolation points as absolute values.
In this field, configure the minimum following value for the point group in the following value range.
In this field, configure the maximum following value of the point group in the following value range (value range).
Use the "Add interpolation point" button to add an interpolation point to the point group.
This table shows the configured interpolation points sorted by increasing leading value.
Add breakpoints using the button. Delete interpolation points by marking a row and pressing <Delete>. If you delete all points except one, the element type is changed from "Point group" to "Point".
In this field, configure the leading value of the interpolation point (value in the definition area).
In this field, configure the following value of the interpolation point (value in the value range).

134

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

See also

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Parameter/Option Interpolation
Interpolation type

Description
In the drop-down list, select the interpolation type to be used for interpolating the point group:

· Interpolation with cubic splines

· Interpolation with Bézier splines

Approximation Mapping method

Select the mapping method in the drop-down list.

· Point approximation

· Segment approximation

Number of interpolation points
Maximum following value tolerance

Configure the number of breakpoints for the point approximation in this field.
In this field, enter the maximum permissible deviation (absolute) of the approximation from the interpolation points.
If the configured value is exceeded, a warning is displayed in the graphical editor at the point group.

Insert point group (Page 116)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

135

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.11

Configuration of elements - Parameters (line) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.

Parameters

Configure the parameters of the selected line in this area:

Parameters

Description

Leading values of the line

Start

Configure the start point of the line in the leading value range (definition range) in this field.

End

Configure the end point of the line in the leading value range (definition

range) in this field.

Following values of the line

Definition by

In the selection list, select the parameters to be used to define the line:

· Following values at start and end

· Following value at the start and incline

· Incline and following value at end The corresponding parameters are displayed based on the selection.

Start

Configure the start point of the line in the following value range (value range) in this field.

End

Configure the end point of the line in the following value range (value

range) in this field.

Incline

Configure the incline of the line in this field.

See also

Inserting a line (Page 117)

136

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.12

Configuration of elements - Parameters (sine) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.

Parameters

Configure the parameters of the selected sine element in this area:

Parameters

Description

Leading values of the sine
Start

Configure the start point of the sine element in the leading value range (definition range) in this field.

End

Configure the end point of the sine element in the leading value range

(definition range) in this field.

Trigonometric parameters

Amplitude

Configure the amplitude of the sine element in this field.

Definition by

In the drop-down list, select how the sine element is defined:

· Phase at start and at end

· Phase at start and period length

· Phase at start and frequency

· Period length and phase at end

· Frequency and phase at end The corresponding parameters are displayed based on the selection.

Phase angle at start Configure the phase angle at the start of the sine element in this field.

Phase angle at end Period length Frequency

Configure the phase angle at the end of the sine element in this field. Configure the period length of the sine element in this field. Configure the frequency of the sine element in this field.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

137

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

See also

Parameters Extended parameters
Segment type
Offset Definition of inclination as a function of:
Offset at start Offset at end Inclination

Description
Select the variant of the sine element in the drop-down list. · Sine · Inclined sine The corresponding parameters are displayed based on the selection. If you have configured an inclined sine, additional orientation lines are displayed in the graphical editor for the amplitude and center position. Configure the oscillation midpoint of the sine element in this field. In the drop-down list, select how the inclined sine element is defined: · Offset at start and end · Offset at start and inclination · Inclination and offset at end The corresponding parameters are displayed based on the selection. Configure the center of oscillation at the start of the sine element in this field. Configure the center of oscillation at the end of the sine element in this field. Configure the inclination of the sine element in this field.

Inserting a sine (Page 118)

138

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.13

Configuration of elements - Parameters (polynomial) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.

Parameters

Configure the parameters of the selected polynomial in this area:

Parameters Leading values of the polynomial
Start
End
Polynomial parameters Definition by
Coefficients
Following value - Left boundary value Following value - Right boundary value Use first derivative
First derivative - left boundary value First derivative - right boundary value Use second derivative
Second derivative - left boundary value Second derivative right boundary value Use third derivative
Third derivative - left boundary value Third derivation - right boundary value

Description
Configure the start point of the polynomial in the leading value range (definition range) in this field. Configure the end point of the polynomial in the leading value range (definition range) in this field.
In the selection list, select how the polynomial is defined: · Coefficients · Boundary values The corresponding parameters are displayed based on the selection. Configure the coefficients of the 6th degree polynomial function in these fields: P(x) = a6x6 + a5x5 + a4x4 + a3x3 + a2x2 + a1x + a0 The coefficients are shown in scientific notation, e.g. "9.6450617283e-11". Configure the following value at the start of the polynomial in this field.
Configure the following value at the end of the polynomial in this field.
Select the check box to specify the first derivative in the left/right boundary value of the polynomial and to include it in the interpolation of the cam. Configure the first derivative (velocity) for the following value at the start of the polynomial in this field. Configure the first derivative (velocity) for the following value at the end of the polynomial in this field. Select the check box to specify the second derivative in the left/right boundary value of the polynomial and to include it in the interpolation of the cam. Configure the second derivative (acceleration) for the following value at the start of the polynomial in this field. Configure the second derivative (acceleration) for the following value at the end of the polynomial in this field. Select the check box to specify the third derivative in the left/right boundary value of the polynomial and to include it in the interpolation of the cam. Configure the third derivative (jerk) for the following value at the start of the polynomial in this field. Configure the third derivative (jerk) for the following value at the end of the polynomial in this field.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

139

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Parameters Lambda
Extended parameters Segment type
Amplitude Definition by
Phase angle at start Phase angle at end Period length Frequency

Description In the selection list, select how the turning point of the polynomial is specified in the "Lambda position" field:
· No lambda
Do not enter any value. The position of the point of inflection is calculated automatically. · Relative to the element
You specify the leading value of the turning point relative to the polynomial from 0.0 to 1.0. The value 0.0 corresponds to the beginning of the polynomial. The value 1.0 corresponds to the end of the polynomial. · Absolute in the profile
You specify the leading value of the point of inflection as an absolute value. In this field, configure the leading value of the point of inflection for the polynomial according to the selection in the selection list.
In the selection list, select whether or not the polynomial is to have a trigonometric component. When "Polynomial with trigonometric portion" is selected, the corresponding trigonometric parameters are displayed, as they are with sine. When a sine element is converted to a polynomial, the sine element is configured as a polynomial with trigonometric portion. The shape of the element is retained. You have the option to define the trigonometric portion of the polynomial using the following formula: Y(x) = a6x6 + a5x5 + a4x4 + a3x3 + a2x2 + a1x + a0 + b0sin((b1x) + b2) a0...6: Coefficient of order 0...6 of the polynomial b0: Amplitude of the trigonometric portion b1: Period of the trigonometric portion b2: Phase offset of the trigonometric portion Configure the amplitude of the trigonometric component in this field. In the selection list, select how the trigonometric component is defined:
· Phase at start and at end · Phase at start and period length · Phase at start and frequency · Period length and phase at end · Frequency and phase at end The corresponding parameters are displayed based on the selection. Configure the phase angle at the start of the trigonometric component in this field. Configure the phase angle at the end of the trigonometric component in this field. Configure the period length of the trigonometric component in this field. Configure the frequency of the trigonometric component in this field.

140

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

See also

Inserting a polynomial (Page 119)

6.2.5.14

Configuration of elements - Parameters (inverse sine) (S7-1500T)
Configure the parameters of the selected element in the "Parameters" configuration window.
The inverse sine is defined within the definition range [-1, 1]. The inverse sine can be calculated for the entire definition range or a restricted definition range of the arcsine function.
An inverse sine is approximated using interpolation points of the arcsine function.

Parameters

Configure the parameters of the selected inverse sine in this area:

Parameters Leading values of the inverse sine
Start
End
Following values of the inverse sine
Minimum
Maximum
Definition range Not mirrored/mirrored
Start
End
Approximation Number of interpolation points Maximum following value tolerance

Description
Configure the start point of the inverse sine in the leading value range (definition range) in this field. Configure the end point of the inverse sine in the leading value range (definition range) in this field.
Configure the minimum value of the inverse sine in the following value range (value range) in this field. Configure the maximum value of the inverse sine in the following value range (value range) in this field.
Select whether or not the inverse sine is to be mirrored about the abscissa. Configure the start point in the definition range of the arcsine function that is to be used in this field. Configure the end point in the definition range of the arcsine function that is to be used in this field.
Configure the number of interpolation points for the approximation in this field. In this field, specify the maximum permitted deviation (absolute) of the approximation from the arcsine function. If the configured value is exceeded, a warning is displayed in the graphical editor for the arcsine element.

See also

Inserting an inverse sine (Page 120)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

141

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.5.15

Configuration of elements - Characteristic (transition) (S7-1500T)
Configure the parameters of the selected transition in the "Characteristics" configuration window.

Characteristics
Configure the settings for optimization of the transition in this area:

Parameters
Interpolation settings of the transition
Optimization method

Description
Select the optimization method in the drop-down list. · System interpolation

The CPU defines the optimization parameters automatically according to the settings of the system interpolation (Page 127).
· VDI-based optimization

Motion task Continuity at start/end

You adjust the optimization manually. The inputs are applied automatically according to the VDI Guideline 2143. The transition type is determined from the properties of the adjacent elements of the transition and displayed in this field. In the drop-down lists, select which parameter is continuous in the boundary points and is to be included for optimization.
· Default optimization setting (setting under "Profile > Default optimization settings (Page 126)")
· Position
· Velocity (bumpless)
· Acceleration (jerkless)
· Jerk (jerk continuity permitted on one side only)

Optimization target

In the drop-down list, select the optimization target: · Default optimization setting (setting under "Profile >
Default optimization settings") · Not specified · Velocity (Cv) · Acceleration (Ca) · Jerk (Cj) · Minimum Dynamic Moment (Cmdyn)

142

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Parameters Selection of motion rule
Motion rule
Parameter used Lambda
Lambda position Maximum acceleration (Ca)

Description
In the drop-down list, select the motion rule according to which optimization is to occur.
· Line · Quadratic parabola · Sine · Polynomial · Inclined sine · Modified acceleration trapezoid · Modified sine · Harmonic combination · Double-harmonic transition · Sine line combination The selection is automatically limited to the motion rules that can be applied according to the motion task and the selected boundary conditions. Additional parameters are displayed depending on the selected motion rule. If you have changed the motion task in such a way that the motion rule can no longer be applied, a notice is displayed. In this case, you need to select a motion rule that can be applied. In the drop-down list, select the parameters to be included in the optimization:
· Lambda · Maximum acceleration (Ca) · Maximum deceleration (Ca*) The selection is automatically limited to the parameters that can be applied according to the motion rule. In the drop-down list, select the transition point in the "Lambda position" field:
· No lambda
Do not enter any value. The position of the point of inflection is calculated automatically. · Relative to the segment
You specify the leading value of the turning point relative to the transition from 0.0 to 1.0. The value 0.0 corresponds to the beginning of the transition. The value 1.0 corresponds to the end of the transition. · Absolute in the profile
You specify the leading value of the point of inflection as an absolute value. In this field, configure the leading value of the turning point for the transition according to the selection in the "Lambda" drop-down list. Configure the maximum acceleration (Ca) for the transition in this field.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

143

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Parameters

Description

Maximum deceleration (Ca*)

Configure the maximum deceleration (Ca*) for the transition in this field.

Approximation

Number of interpolation In this field, configure the number of interpolation points for the transi-

points

tion.

Maximum following value tolerance

In this field, enter the maximum permitted deviation (absolute) of the approximation from the motion law.

If the configured value is exceeded, a warning is displayed in the graphical editor at the transition.

Characteristic values of the The characteristic values of the transition that are relevant according to

transition

VDI 2143 are displayed in this area. The maximum value and the

standardized value are displayed for the following characteristic values:

· Velocity (Cv)

· Acceleration (Ca)

· Deceleration (Ca*)

· Jerk (Cj)

· Dynamic torque (Cmdyn)

Motion jobs according to VDI Guideline 2143
The VDI Guideline 2143 distinguishes between areas of usage and motion transitions:
 Areas of usage correspond to the sequences in a process, which means the inserted elements of the cam.
 Motion transitions are transitions between areas of usage that are not directly relevant to the process but must meet specific boundary conditions (e.g. velocity consistency).
The following motion tasks are defined based on VDI guideline 2143:

Motion tasks Dwell Constant velocity Reverse Motion

Designation R G U B

Properties Velocity = 0 Acceleration = 0 Velocity  0 Acceleration = 0 Velocity = 0 Acceleration  0 Velocity  0 Acceleration  0

144

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T) The following figure shows an example of the motion tasks:
The figure below shows the possible combinations of motion tasks:

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

145

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.6

Representation (Inspector window) (S7-1500T)

6.2.6.1

Configuration charts - Charts and curves (S7-1500T)
In the "Charts and curves" configuration window, configure the display of the graphical editor.

"Reset to defaults" button
Use this button to reset all settings of the view of charts and curves to the default settings.

Configuration table
Configure the display of the graphical editor in the table:

Column Show Visible
Name
Color Line type Offset of the leading values1) Multiplier for leading values1) Offset of the following values1) Multiplier for following values1)

Description Displaying/hiding of charts 1 to 4 Displaying/hiding of curves in the chart You can show or hide online curves already offline. The curve becomes visible when you have shown the curve, established an online connection and read out the online curve. Name of chart or curve New curves can be added. Existing curves can be removed. Curves of other cams can also be displayed. The name of the other cam is also displayed in the table and in the legend of the chart. A curve can be inserted multiple times in a chart, e.g. in order to display it with different scalings. Line color of the curve Line type of the curve Movement of the curve on the abscissa
Scaling of abscissa
Movement of the curve on the ordinate
Scaling of ordinate

1) Only affects the display of the curve in the chart. You specify the scaling and shifting of the cam during camming in the Motion Control instruction "MC_CamIn".

146

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.6.2

Configuration charts - Snap grid (S7-1500T)
In the "Snap grid" configuration window, you configure the grid spacing for aligning inputs to the grid in the graphical editor. When "Snap" is activated, inputs and element end points are aligned to this grid and to other element end points.

Snap grid spacing
In this area, configure the grid spacing of the snap grid:

Parameter
Grid spacing leading value
Grid spacing following value

Description Configure the grid spacing on the abscissa (leading values) in this field.
Configure the grid spacing on the ordinate (following values) in this field.

6.2.6.3

Configuration - Decimal places (S7-1500T)
In the "Decimal places" configuration window, you configure how many decimal places are used to represent the values in the graphical and tabular editor as well as in the configuration windows. The values are rounded in the displays. The settings do not affect the calculation of the curves. The curves are calculated with higher accuracy regardless of the settings.

Displayed decimal places
In this area, configure the displayed decimal places:

Parameter
Tabular editor and configuration window
Graphical editor

Description
In this field, configure the number of decimal places for displaying values in the tabular editor and in the configuration windows.
In this field, configure the number of decimal places for displaying values in the graphical editor.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

147

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.7

Importing/exporting cam (S7-1500T)
You can use the toolbar to export cams from the cam editor and import cams into the cam editor.

Importing cam

NOTICE Machine damage Importing corrupt files (.txt, .csv) can result in unwanted behavior of the axes. Each time you import a cam from a file, check the integrity of the imported data.

The following table shows the supported file formats for importing/exporting a cam:

File format Import format
SIMOTION SCOUT CamTool format/MCD *.txt, *.csv
Proprietary binary format *.bin

Comment
MCD exchange format is automatically detected, imported data: · Interpolated points · Lines · Sine elements · Inverse sine elements · Polynomials · Transitions The binary format is used for exchanging cams between multiple TIA Portal installations and external applications.

To import a cam, follow these steps:

1. In the toolbar, click the icon "Import cam from file".

The "Cam import" dialog opens.

2. Select the file type of the file you want to import.

3. Select the file you want to import from the file directory.

4. Click the "Open" button.

The cam is opened in the cam editor. All previous entries in the editor are discarded.

148

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

Exporting cam
The following table shows the structure of the "Cam export" dialog:

Parameter/Element Export format
Export as
Delimiters
Number of points
Additional curves Velocity Acceleration Jerk
Directory for export File name Directory
Export Cancel

Description
Select the export format in the drop-down list: · MCD exchange format · SIMOTION SCOUT CamTool format · Point list · Binary format
In the drop-down list, select the delimiter with which the data fields are to be separated in the file: · Comma · Tab
In this field, configure the number of points to be exported to a point list. The more points exported, the more precise the configured cam formed by the point list. Possible values: 0 to 1E5 Default setting: 360 Point list only Select the "Velocity" check box when the derivative curve of the velocity is to be exported in addition to the position. Select the "Acceleration" check box if you want to export the derivative curve of the acceleration in addition to the position. Select the "Jerk" check box when the derivative curve of the jerk is to be exported in addition to the position.
Enter a file name in this field. In this field, enter the directory into which the file is to be written. Export the file Cancellation of export and closing of the dialog

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

149

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

To export a cam, follow these steps:
1. In the toolbar, click the icon "Export cam to file". The "Cam export" dialog opens.
2. Select the export format in the "Export as" drop-down list. 3. Optionally, configure the delimiter, the number of points, and the additional curves for the
export. 4. Enter a file name in the "File name" box. 5. Select the directory to which the file is written. 6. Click "Export".

See also

Structure of the graphical editor (Page 112)

150

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

6.2.8

Dialogs in the shortcut menu (S7-1500T)
The following dialogs can be called with the shortcut menu of the graphical and tabular editor:  Pasting elements  Moving elements  Scaling elements

"Paste elements" dialog
The following table shows the structure of the "Paste elements" dialog:

Parameter/Element Insert mode
Paste Cancel

Description

Select the Insert mode from the selection list:

Overwrite from the end to the left

You overwrite the selected elements with the elements from the clipboard starting from the end in the direction of smaller leading values. The end of the inserted elements then lies at the end of the selected elements.

Elements that are located in the leading value range of the elements in the clipboard are overwritten or truncated.

Overwrite from the start to the right

Starting from the start, you overwrite the selected elements with the elements from the clipboard in the direction of larger leading values. The start of the inserted elements then lies at the start of the selected elements.

Elements that are located in the leading value range of the elements in the clipboard are overwritten or truncated.

Overwrite from the middle

Starting from the center, you overwrite the selected elements with the elements from the clipboard. The center of the inserted elements then lies at the center of the selected elements.

Elements that are located in the leading value range of the elements in the clipboard are overwritten or truncated.

Scale selection to the leading value range

The elements in the clipboard are scaled to the leading value range of selected elements. The start and end of the inserted elements then lie at the start and end of the selected elements.

Apply leading values from the clipboard

The elements in the clipboard are pasted with the leading values at the start and end.
Elements that are located in the leading value range of the elements in the clipboard are overwritten or truncated.

Pasting of the elements from the clipboard with the selected mode

Cancellation of paste operation and closing of the dialog

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

151

Configuring (S7-1500, S7-1500T) 6.2 Configuring the cam technology object (S7-1500T)

"Move elements" dialog
The following table shows the structure of the "Move elements" dialog:

Parameter/Element Horizontal distance Vertical distance Move Cancel

Description In this field, enter the shift of the selection on the abscissa (x axis). In this field, enter the shift of the selection on the ordinate (y axis). Move the selection by the entered distance Cancellation of move operation and closing of the dialog

"Scale elements" dialog
The following table shows the structure of the "Scale elements" dialog:

Parameter/Element Adjust to leading value range Anchor point
Scale Cancel

Description

In this field, enter the scaling length (leading value side) to which you want to scale the selection.

Select the direction of scaling in the selection list:

Left boundary

The selection is adjusted by the left boundary point to the scaling length.

Center

The selection is adjusted by the center point to the scaling length.

Right boundary

The selection is adjusted by the right boundary point to the scaling length.

Scaling with the selected parameter values

Cancellation of scaling and closing of the dialog

See also

Shortcut menu in the tabular editor (Page 124) Shortcut menu in the graphical editor (Page 121)

152

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Diagnostics (S7-1500, S7-1500T)

7

The "Diagnostics" section is limited to describing the diagnostics view of the synchronous axis technology object in the TIA Portal.
You will find a description of Motion Control diagnostics in the following sections of the "S71500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459):
 Diagnostic concept
 Technology alarms
 Errors in Motion Control instructions
A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.automation.siemens.com/WW/view/en/59192926).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

153

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

7.1

Synchronous axis technology object (S7-1500, S7-1500T)

7.1.1

Status and error bits (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Axis status

The following table shows the possible axis status values:

Status Simulation active Enabled
Position-controlled mode Homed
Error
Restart active Axis control panel active
Drive ready Encoder values valid Encoder values valid (S7-1500T)

Description
The axis is simulated in the CPU. Setpoints are not output to the drive. (<TO>.StatusWord.X25 (AxisSimulation))
The technology object has been enabled. You can move the axis with motion jobs. (<TO>.StatusWord.X0 (Enable))
The axis is in position-controlled mode. (Inversion of <TO>.StatusWord.X28 (NonPositionControlled))
The technology object is homed. The relationship between the position in the technology object and the mechanical position was successfully created. (<TO>.StatusWord.X5 (HomingDone))
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. (<TO>.StatusWord.X2 (RestartActive))
The axis control panel is active. The axis control panel has master control over the technology object. You cannot control the axis from the user program. (<TO>.StatusWord.X4 (ControlPanelActive))
Drive is ready to execute setpoints. (<TO>.StatusDrive.InOperation)
Encoder values are valid (<TO>.StatusSensor[1].State)
The encoder values of encoder 1, encoder 2, encoder 3 or encoder 4 are valid. (<TO>.StatusSensor[1..4].State)

154

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

Status Active encoder
Active encoder (S7-1500T)
Restart required

Description
Encoder is operational. (<TO>.OperativeSensor) The encoder in effect operationally is encoder 1, encoder 2, encoder 3 or encoder 4. (<TO>.OperativeSensor)
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO>.StatusWord.X3 (OnlineStartValuesChanged))

Status limit switch
The following table shows the possibilities for enabling the software and hardware limit switches:

Status

Description

Negative SW limit switch approached

The negative software limit switch was reached. (<TO>.StatusWord.X15 (SWLimitMinActive))

Positive SW limit switch The positive software limit switch was reached.

approached

(<TO>.StatusWord.X16 (SWLimitMaxActive))

Negative HW limit switch approached

The negative hardware limit switch has been approached or overtraveled. (<TO>.StatusWord.X17 (HWLimitMinActive))

Positive HW limit switch The positive hardware limit switch has been approached or overtraveled.

approached

(<TO>.StatusWord.X18 (HWLimitMaxActive))

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

155

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

Motion status

The following table shows the possible axis motion status values:

Status Done (no job running) Homing job
Jog
Velocity specification
Positioning job
Constant velocity Standstill Accelerating Decelerating Torque limit active
Stop job active

Description
No job active at technology object. (<TO>.StatusWord.X6 (Done)) The technology object executes a homing job of the Motion Control instruction "MC_Home" or from the axis control panel. (<TO>.StatusWord.X11 (HomingCommand)) The axis is being moved with a job for jog mode of Motion Control instruction "MC_MoveJog". (<TO>.StatusWord.X9 (JogCommand)) The axis is traversed with a job with velocity specification of the Motion Control instruction "MC_MoveVelocity" or from the axis control panel. (<TO>.StatusWord.X10 (VelocityCommand)) The axis is traversed with a positioning job of Motion Control instruction "MC_MoveAbsolute" or "MC_MoveRelative" or from the axis control panel. (<TO>.StatusWord.X8 (PositioningCommand)) The axis is moved with constant velocity or is stationary. (<TO>.StatusWord.X12 (ConstantVelocity)) The axis is in standstill. (<TO>.StatusWord.X7 (StandStill)) Axis is being accelerated. (<TO>.StatusWord.X13 (Accelerating)) The axis is being decelerated. (<TO>.StatusWord.X14 (Decelerating)) At least the threshold value (default 90%) of the preset force/torque limitation acts on the axis. (<TO>.StatusWord.X27 (InLimitation)) The axis is stopped and disabled by Motion Control instruction "MC_Stop". (<TO>.StatusWord2.X0 (StopCommand))

156

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

Synchronous operation status

Status Synchronization Synchronous Synchronization pending (S7-1500T)
Additive leading value active (S7-1500T)
Superimposed profile (S7-1500T)

Description
The axis is synchronized to the leading value of a leading axis.
(<TO>.StatusWord.X21 (Synchronizing))
The axis is synchronized and moves synchronously to the leading axis.
(<TO>.StatusWord.X22 (Synchronous))
A synchronous operation is pending until the leading value reaches the start position for synchronization.
(<TO>.StatusSynchronizedMotion.WaitingFunctionState.X2 (GearInPosWaiting); <TO>.StatusSynchronizedMotion.WaitingFunctionState.X3 (CamInWaiting))
The axis receives an additive leading value with the Motion Control instruction "MC_LeadingValueAdditive".
(<TO>.StatusSynchronizedMotion.StatusWord.X4 (LeadingValueAdditiveCommand))
The axis is being moved superimposed with a job of Motion Control instruction "MC_MoveSuperimposed".
(<TO>.StatusWord.X23 (SuperimposedMotionCommand))

Error

The following table shows the possible errors:

Error System Configuration
User program Drive Encoder Encoder (S7-1500T) Data exchange

Description
A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program at a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) An error occurred in the drive. (<TO>.ErrorWord.X4 (DriveFault)) An error occurred in the encoder system. (<TO>.ErrorWord.X5 (SensorFault)) An error has occurred in the encoder system of encoder 1, encoder 2, encoder 3 or encoder 4. (<TO>.ErrorWord.X5 (SensorFault)) Communication with a connected device is faulty. (<TO>.ErrorWord.X7 (CommunicationFault))

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

157

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

Error I/O Job rejected
Homing Positioning
Dynamic limitation Following error SW limit switch HW limit switch Adapt Synchronization

Description An error occurred accessing a logical address. (<TO>.ErrorWord.X13 (PeripheralError)) A job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled (for example, technology object not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) An error occurred during a homing process. (<TO>.ErrorWord.X10 (HomingFault)) The positioning axis was not positioned correctly at the end of a positioning motion. (<TO>.ErrorWord.X12 (PositioningFault)) The dynamic values are limited to the dynamic limits. (<TO>.ErrorWord.X6 (DynamicError)) The maximum permitted following error has been exceeded. (<TO>.ErrorWord.X11 (FollowingErrorFault)) A software limit switch has been reached. (<TO>.ErrorWord.X8 (SwLimit)) A hardware limit switch has been reached or overtraveled. (<TO>.ErrorWord.X9 (HWLimit)) An error occurred during data adaption. (<TO>.ErrorWord.X15 (AdaptionError)) Synchronous axis only An error occurred during synchronization. The leading axis specified for the corresponding Motion Control instruction was not configured as a possible leading axis. (<TO>.ErrorWord.X14 (SynchronousError))

158

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

Warnings

The following table shows the possible warnings:

Warning Configuration Job rejected
Dynamic limitation Synchronization

Description
One or several configuration parameters are adjusted internally at a certain time. (<TO>.WarningWord.X1 (ConfigWarning))
Job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled. (<TO>.WarningWord.X3 (CommandNotAccepted))
The dynamic values are limited to the dynamic limits. (<TO>.WarningWord.X6 (DynamicWarning))
Synchronous axis only An error occurred during synchronization. The leading axis specified for the corresponding Motion Control instruction was not configured as a possible leading axis. (<TO>.WarningWord.X14 (SynchronousWarning))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

Additional information
An option for evaluating the individual status bits can be found in the section "Evaluating StatusWord, ErrorWord and WarningWord" of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

159

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

7.1.2

Motion status (S7-1500, S7-1500T)
You use the "Technology object > Diagnostics > Motion status" diagnostic function in the TIA Portal to monitor the motion status of the axis. The diagnostics function is available in online operation.

"Setpoints" area
The following table shows the meaning of the status data:

Status Target position
Position setpoint Velocity setpoint Velocity override

Description
Current target position of an active positioning job The target position value is only valid during execution of a positioning job. (<TO>.StatusPositioning.TargetPosition) Setpoint position of the axis (<TO>.Position) Velocity setpoint of the axis (<TO>.Velocity) Percentage correction of the velocity specification The velocity setpoint specified in Motion Control instructions or set by the axis control panel is superimposed with an override signal and corrected as a percentage. Valid velocity correction values range from 0.0 % to 200.0 %. (<TO>.Override.Velocity)

"Current values" area
The following table shows the meaning of the status data:

Status Operative encoder Actual position
Actual velocity Following error

Description Operative encoder of the axis Actual position of the axis If the technology object is not homed, then the value is displayed relative to the position that existed when the technology object was enabled. (<TO>.ActualPosition) Actual velocity of the axis (<TO>.ActualVelocity) Following error of the axis (<TO>.StatusPositioning.FollowingError)

160

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

"Dynamic limits" area
This area displays the limit values for the dynamic parameters. The following table shows the meaning of the status data:

Status Velocity Acceleration Deceleration Jerk

Description Configured maximum velocity (<TO>.DynamicLimits.MaxVelocity) Configured maximum acceleration (<TO>.DynamicLimits.MaxAcceleration) Configured maximum deceleration (<TO>.DynamicLimits.MaxDeceleration) Configured maximum jerk (<TO>.DynamicLimits.MaxJerk)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

161

Diagnostics (S7-1500, S7-1500T) 7.1 Synchronous axis technology object (S7-1500, S7-1500T)

7.1.3

PROFIdrive telegram (S7-1500, S7-1500T)
The "Technology object > Diagnostics > PROFIdrive telegram" diagnostics function is used in the TIA Portal to monitor the PROFIdrive telegrams returned by the drive and encoder. The display of the Diagnostics function is available in online operation.

"Drive" area

This area displays the following parameters contained in the PROFIdrive telegram from the drive to the controller:  Status words "ZSW1" and "ZSW2"  The speed setpoint (NSET) that was output to the drive  The actual speed that was signaled from the drive (NACT)

"Encoder" area
This area displays the following parameters contained in the PROFIdrive telegram from the encoder to the controller:  Status word "Gx_ZSW"  The actual position value "Gx_XIST1" (cyclic actual encoder value)  The actual position value "Gx_XIST2" (absolute encoder value)

Areas "Encoder 1" to "Encoder 4" (S7-1500T)
The "Encoder 1" to "Encoder 4" areas display the following parameters from the PROFIdrive telegram of the corresponding encoder to the controller:  Status word "Gx_ZSW"  The actual position value "Gx_XIST1" (cyclic actual encoder value)  The actual position value "Gx_XIST2" (absolute encoder value)

162

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T)

8

8.1

Basics (S7-1500T)

With cross-PLC synchronous operation, you realize synchronous operations (gearing or camming) between axes that are on different CPUs. All following axes of a leading value are hereby synchronous to one another with consideration of the respective synchronous operation function. All following axes receive the same leading value at the same time. You can configure and operate the following axes on different CPUs within a project. You can also configure the leading axis on any CPU of the same project.

The figure below shows the operating principle based on an example with two following axes on two CPUs:

Leading value
The leading axis and a local following axis 1 are located on CPU 1. The leading axis and the following axis 1 are interconnected to a synchronous operation.
The leading axis makes the leading value available for cross-PLC synchronous operation. The leading value is transferred to CPU 2 by means of a leading value telegram via PROFINET IO with IRT.
On CPU 2, a leading axis proxy reads the leading value. A following axis 2 is interconnected locally with the leading axis proxy as leading axis.
The following axes 1 and 2 are synchronous and follow the same leading value.
The S7-1500 and S7-1500T CPUs can make the leading value available for a cross-PLC synchronous operation. You need to use an S7-1500T CPU as the CPU that receives the leading value via a leading value proxy.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

163

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

8.1.1

Leading axis proxy technology object (S7-1500T)
With cross-PLC synchronous operation, the leading axis proxy technology object represents the leading axis for local synchronous operation within a CPU. The leading axis proxy adjust the time of the leading value so that the following axes on the different CPUs are synchronous, and it provides the leading value for the local following axes.
You can find an overview of the functions of the technology object in the "Functions (Page 13)" section.
The figure below shows the basic principle of operation of the leading axis proxy technology object:

164

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

8.1.2

Communication via PROFINET IO with IRT (S7-1500T)
In a cross-PLC synchronous operation, the leading value is transferred via PROFINET IO with IRT. "Controller-controller data exchange" is used for the communication between the CPUs within a project. For this purpose, the CPUs must be on a bus and belong to the same sync domain.

Provision of leading value via controller-controller data exchange
With communication by means of controller-controller data exchange, the leading value is made available once within a project and can then by received by multiple CPUs on the same bus. Leading axis proxies that are interconnected with the same leading value can be configured on different CPUs. In addition, it is possible to make multiple leading values of different leading axes available on different CPUs via the same bus.
You can find additional information in the section "Setting up communication via controllercontroller data exchange (Page 171)" and in the function manual "SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Communication" (https://support.industry.siemens.com/cs/ww/en/view/59192925).

Tolerance time

If an external leading value becomes invalid or a communication error occurs, a technology alarm 900 is output after a tolerance time. You can configure this tolerance time (Page 175) on the leading axis proxy technology object under "Technology object > Configuration > Leading value settings".
Note that the leading value is still being extrapolated during the tolerance time and that the following axis continues to move. Therefore, set the tolerance time as brief as possible.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

165

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

8.1.3

Interconnection possibilities (S7-1500T)
The figure below shows the schematic structure of synchronous following axes with different synchronous operation functions that are distributed over multiple CPUs:

Leading value delay that can be configured at the leading axis (delay time) Delay time caused by the processing and transfer of the leading value Gearing (example)
You can interconnect a positioning axis, external encoder or synchronous axis technology object as the leading axis on CPU 1.

166

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)
Cascaded interconnection
With a cascaded interconnection, a following axis makes a cross-PLC leading value available to a leading axis proxy again. Use a virtual axis for this purpose.
The figure above shows two cascades: The interconnection between the leading axis and the following axes 2 and 4 is the first cascade. The interconnection between the virtual following axis and the following axes 3 is the second cascade.
Communication and time response
In the processing and transfer of the leading value, a delay time occurs between the generation of the leading value on the leading axis one on CPU and the provision of the leading value for the following axes at the leading axis proxy on the other CPUs. The following axes of the other CPUs receive the leading value with a time delay.
In principle, the delay time per cascade is:
Delay time = 2 x application cycle of the CPU of the leading axis proxy
To achieve synchronicity between the local following axes of the CPU of the leading axis and the following axes of other CPUs without extrapolating the leading value at the leading axis proxy, the leading value can be delayed at the leading axis for the local following axes. The delay time can be compensated for with these configurable delay times.
Therefore, in the figure above, a delay time is set at the leading axis on CPU 1, which delays the leading value output to the local following axis 1. In addition, a delay time at the virtual following axis on CPU 2 is set, because CPU 3 is present in a cascade. All following axes thus receive the same leading value at the same time.
During configuration of the following axis under "Leading value interconnections", you select the entry "Delayed" as type of coupling so that the leading value is delayed for local synchronous operation.
Recommendation: Use a virtual axis as leading axis.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

167

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

Delay time

You can calculate and view the delay times in the interconnection overview (Page 178). The application cycles of the leading axis proxy and any cascading present are included in the calculation of the delay times.
Alternatively, you can manually configure the delay times on the leading axis and on the virtual following axis. In this way, you can consider additional requirements from your specific application, for example.
Depending on the set delay time, the leading value at the leading axis proxy is automatically interpolated or extrapolated. The automatic interpolation and extrapolation guarantees the synchronicity of all following axes. In the connection view, an indication of whether the leading value is interpolated or extrapolated is provided for each route of a leading value (Page 180).
With an extrapolation, deviations in the following values can occur in the event of velocity changes. With constant velocity, these deviations are automatically compensated for. With an interpolation, no deviations of the following values occur in the event of velocity changes.

Recursive interconnection
When all axes are active, the leading axis becomes the following axis of its own leading value with a recursive interconnection. During the configuration, recursive interconnections are displayed in the interconnection overview. No delay times can be calculated for recursive interconnections. Recursive interconnections over multiple CPUs are not detected during runtime.
A recursive interconnection that is in effect during runtime is not permitted.

168

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

8.1.4

Tags: Cross-PLC synchronous operation (S7-1500T)

Positioning axis/synchronous axis/external encoder
The following tags of the positioning axis, synchronous axis and external encoder are relevant for cross-PLC synchronous operation:

Tag <TO>.CrossPlcSynchronousOperation.Interface[1..1]. EnableLeadingValueOutput
<TO>.CrossPlcSynchronousOperation.Interface[1..1]. AddressOut <TO>.CrossPlcSynchronousOperation.LocalLeading ValueDelayTime <TO>.StatusProvidedLeadingValue.DelayedLeading Value.Position <TO>.StatusProvidedLeadingValue.DelayedLeading Value.Velocity <TO>.StatusProvidedLeadingValue.DelayedLeading Value.Acceleration

Description Provide cross-PLC leading value FALSE No TRUE Yes Output address for the telegram of cross-PLC synchronous operation Delay time for setpoint coupling with delayed leading value
Position of the provided leading value
Velocity of the provided leading value
Acceleration of the provided leading value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

169

Cross-PLC synchronous operation (S7-1500T) 8.1 Basics (S7-1500T)

Leading axis proxy
The following leading axis proxy technology object tags are relevant for cross-PLC synchronous operation:

Tag <TO>.Position <TO>.Velocity <TO>.Acceleration <TO>.Interface.AddressIn <TO>.Parameter.LocalLeadingValueDelayTime
<TO>.Parameter.ToleranceTimeExternalLeading ValueInvalid <TO>.StatusExternalLeadingValue.ModuloLength <TO>.StatusExternalLeadingValue.ModuloStartValue <TO>.StatusExternalLeadingValue.AdjustmentTime
<TO>.StatusWord.X4 (LeadingValueValid)
<TO>.StatusWord.X5 (LeadingValueModulo)
<TO>.StatusWord.X6 (LeadingAxisControl)

Description

Position of the leading value for local synchronous operation

Velocity of the leading value for local synchronous operation

Acceleration of the leading value for local synchronous operation

Input address for the telegram of the external leading value

Delay time of leading value output on the local following axis which, in turn, provides a leading value

Tolerance time until a technology alarm is triggered when the external leading value becomes invalid

Modulo length of the external leading value

Modulo start value of the external leading value

Time by which the external leading value is adjusted

< 0

The external leading value is interpolated by this time.

> 0

The external leading value is extrapolated by this time.

Validity of the external leading value

0

Leading value does not exist or is not valid

1

Leading value exists and is valid

Modulo functionality

0

Leading value without modulo functionality

1

Leading value with modulo functionality

Follow-up mode

0

Leading axis in follow-up mode

1

Leading axis not in follow-up mode

170

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

8.2

Configuring (S7-1500T)

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.1

Setting up communication via controller-controller data exchange (S7-1500T)
In a cross-PLC synchronous operation, the leading value is transferred via PROFINET IO with IRT. "Controller-controller data exchange" is used for the communication between the CPUs within a project.
For this purpose, you first set up the transfer areas for the required communication directions between the interconnected CPUs. You then create input and output tags for the CPUs which reference the relevant transfer areas. You can then select these tags for the transfer area when configuring the leading axis and the leading axis proxy.
Hereafter, the sender CPU is the CPU on which a leading axis provides a leading value. The receiver CPU is the CPU on which a leading axis proxy reads the leading value.

Requirements

 You have set up a network via PROFINET IO with IRT.  You have connected the IRT ports of the CPUs in the network view and in the topology
view.  You have assigned the same sync domain to all CPUs.  You have configured a CPU as sync master.  You have configured all other CPUs as sync slaves.

Adding communication directions
To add the communication directions, proceed as follows: 1. Open the "I/O communication" tab in the network view. 2. To create a communication direction from the sender CPU to the receiver CPU, select the
sender CPU. 3. Drag-and-drop the receiver CPU into the "Drop or select the device here" field of the
"Partner 2" table column of the corresponding PROFINET interface. The communication direction from sender CPU to receiver CPU is created. 4. Repeat steps 2 and 3 for all communication directions required between the interconnected CPUs.
Note Communication direction from the receiver CPU to the sender CPU If necessary, also set up a communication direction from the receiver CPU to the sender CPU, e.g. to transfer application-specific status information.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

171

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)
Configuring transfer areas
To configure the transfer areas, follow these steps: 1. In the "I/O communication" tab in the network view, select a communication direction of a
selected CPU. 2. Add a transfer area in the Inspector window under "Properties > General > Direct data
exchange" by entering a name. 3. Repeat steps 1 and 2 for all created configuration directions. 4. Configure the created transfer area in the Inspector window "Properties > General >
Direct data exchange > <Name of transfer area>": ­ In the "Start address" fields, define the start address of the assigned logical address
area of the sender and of the receiver.
Note Multiple receiver CPUs in the same cascade (1:n relationship) If multiple receiver CPUs receive the same leading value of the sender CPU, select the same address area for the transfer area between the sender CPU and the receiver CPU n that you defined between the sender CPU and the receiver CPU 1 under "Properties > General > Direct data exchange" in the "Partner address" table column.
­ In the "Organization block" fields, select the MC-Servo OB of the respective CPU.
Note "MC-Servo [OB91]" organization block When you create a technology object, an MC-Servo OB is created automatically.
­ Define a data length of 48 bytes in the "Data length [byte]" field. 5. Repeat step 4 for all created transfer areas.

172

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

Creating tags

To create the output tag of a sender CPU and the input tag of a receiver CPU, proceed as follows:
1. Open the PLC tags of a CPU via the project tree "<Name of CPU> > PLC tags > Show all tags".
The "PLC tags" table opens.
2. Enter the name of the new tag in the "Name" column.
3. In the "Data type" column, specify the "DX_TEL_SyncOp" data type.

Note Data type "DX_TEL_SyncOp"
If you have created a technology object V5.0, the data type "DX_TEL_SyncOp" is available in the drop-down list.

4. Enter the configured start address of the transfer area in the "Address" column with the following prefix:
­ "%Q" for an output tag on the sender CPU
­ "%I" for an input tag on the receiver CPU
5. Repeat steps 1 to 4 for the respective sender and receiver CPUs of all configured transfer areas.

Result

You have set up communication via controller-controller data exchange. During configuration of the leading axis and the leading axis proxy, you can now select the configured tags for the transfer areas in the "Transfer area" field under "Technology object > Configuration > Leading value settings".
You can find additional information on the topic of "Controller-controller data exchange" in the function manual "SIMATIC S7-1500, ET 200MP, ET 200SP, ET 200AL, ET 200pro Communication" (https://support.industry.siemens.com/cs/ww/en/view/59192925).

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

173

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.2

Configure provision of leading value (S7-1500T)
In the "Leading value settings" configuration window of the leading axis, configure the parameters of the leading value transfer.
You can find additional information depending on the technology object in the following sections:

Technology object Positioning axis
External encoder
Synchronous axis

Section
Section "Configuration - Leading value settings" of the "S7-1500/S7-1500T Axis functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766462)
Section "Configuration - Leading value settings" of the "S7-1500/S7-1500T Axis functions" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766462)
"Configuration - Leading value settings (Page 77)" section

8.2.3 8.2.3.1 Name

Configuring the leading axis proxy technology object (S7-1500T)
Configuration - Basic parameters (S7-1500T)
Configure the name of the technology object in the "Basic parameters" configuration window.
Define the name of the leading axis proxy in this field. The technology object is listed under this name in the project tree. The tags of the technology object can be used in the user program under this name.

174

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.3.2

Configuration - Leading value settings (S7-1500T)
In the "Leading value settings" configuration window, select the parameters of the leading value transfer.

Provision of leading value
In this area, define the settings for transferring the leading value to other CPUs:

Field Transfer area

Description
In this drop-down list, select the input tag of the transfer area set up between the CPU of the leading axis and the CPUs of the following axes.
When the technology object is copied, the selected transfer area is applied to the copy.
You can find additional information on the transfer area in the section "Setting up communication via controller-controller data exchange (Page 171)".

Leading value monitoring
In this area, define the settings for leading value monitoring:

Field
Tolerance time invalid leading value

Description
In this input field, enter the tolerance time within which a valid leading value is expected.
Note
Note that the leading value is still being extrapolated during the tolerance time and that the following axis continues to move. Therefore, set the tolerance time as brief as possible.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

175

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

Delay time of local leading value
In this area, configure the settings for local synchronous operation:

Field Allow system calculation Delay time
Interconnection overview

Description
Select this check box to adapt the delay time of the local leading value in the system. System calculation is started when you trigger the calculation in the interconnection overview.
If the "Allow system calculation" check box is cleared, this field can be edited. In this field (<TO>.Parameter.LocalLeadingValueDelayTime), enter the same delay time that is set at the virtual local following axis which, in turn, provides a cross-PLC leading value within a cascade (<TO>.CrossPlcSynchronousOperation.LocalLeadingValueDelayTime).
You open the interconnection overview via this link. With a cross-PLC synchronous operation, the interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment.

See also

Interconnection possibilities (Page 166) Communication via PROFINET IO with IRT (Page 165)

176

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.4

Working with the interconnection overview table (S7-1500T)

8.2.4.1

Opening the interconnection overview (S7-1500T)
The interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment. In the interconnection overview, you also trigger the system calculation of the delay time.

Requirement

 You have created technology objects in the project for: ­ Leading axis ­ Following axis ­ Leading axis proxy
 You have interconnected the CPUs and technology objects with one another.

Procedure

To open the interconnection overview, follow these steps: 1. Select one of the following technology objects in the project navigation:
­ Positioning axis ­ Synchronous axis ­ External encoder ­ Leading axis proxy 2. Select the "Interconnection overview" command from the shortcut menu.

Result

The interconnection overview opens.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

177

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.4.2

Interconnection overview (S7-1500T)
The interconnection overview contains an overview of the interconnected leading and following axes and their CPU assignment in tabular form.

Toolbar

The toolbar at the top of the interconnection overview provides the following functions via buttons:

Button

Description You update the view of the interconnection overview with this icon.

Calculate delay times

You trigger calculation of delay times with this button.
The delay time is only calculated if the check box "Allow system calculation" is selected under "Leading value settings" during configuration of the technology objects.
You can only trigger the calculation of the delay times if the values are not current and the technology objects are not recursively connected.

Filtering the view
You have the following options above the table to filter the view of the interconnection overview:

Field Enter text filter Show delay times
Show local synchronous operations

Description
In this field, enter a term by which the view should be filtered.
Select this check box to show the "Delay time" columns which contain the delay times.
Select this check box to display the local leading value interconnections in addition to the cross-PLC leading value interconnections.

178

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

Interconnection overview table
The interconnection overview table contains the following information and functions:

Column Leading value source
PLC Leading axis
DT Leading value output Recipient PLC Following axis Routes Leading axis proxy
DT Interconnection

Description
This column displays the CPU of the leading axis. This column displays the name of the leading axis. You open the configuration of the technology object via the link.
If this icon is displayed in the "Leading axis" column, the interconnection is excluded from the system calculation of the delay time. In the configuration of the leading axis, the check box "Allow system calculation" is not selected under "Leading value settings". This column displays the delay time in ms. This column is only displayed when the "Show delay times" check box is selected. This column displays the type of the leading value output.
This column displays the CPU of the following axis. This column displays the name of the following axis. You open the configuration of the technology object via the link. When you select a row, the icon is displayed in this column. You open the "Routes" area with this icon. The name of the leading axis proxy is displayed in this column. You open the configuration of the technology object via the link.
If this icon is displayed in the "Leading axis proxy" column, the interconnection is excluded from the system calculation of the delay time. In the configuration of the leading axis proxy, the check box "Allow system calculation" is not selected under "Leading value settings". This column displays the delay time in ms. This column is only displayed when the "Show delay times" check box is selected. If this icon is displayed in the "Interconnection" column, the interconnection is affected by a recursion. If this icon is displayed in the "Interconnection" column, the interconnection is affected by a recursion, but at least one interconnection is excluded from the calculation of the delay time. If this icon is displayed in the "Interconnection" column, the interconnection is excluded from the system calculation of the delay time. With this icon, you open the configuration of the following axis.

If the configured delay time corresponds to the calculated delay time, the icon is displayed in this column.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

179

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.4.3

Showing routes (S7-1500T)
The routes of the leading value of a selected following axis are shown in the area underneath the interconnection overview table. The leading value is tracked back from the following axis to the leading axis source. If there are multiple routes, they are displayed next to one another.

Requirement

 You have opened the interconnection overview.

Procedure

To display the existing routes of a following axis, follow these steps: 1. Select the row of the corresponding following axis in the table. 2. To show the routes, click the icon in the "Routes" column.

Result

All routes are displayed in the area below the table for the selected following axis. Routes affected by a recursion are not displayed. It is indicated underneath a route whether the leading value is interpolated or extrapolated:  If all cascades interpolate, "Interpolated" is displayed.  If at least one cascade extrapolates, "Extrapolated" is displayed.

180

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.2 Configuring (S7-1500T)

8.2.4.4

Setting the delay times (S7-1500T)
You can calculate and view the delay times in the interconnection overview. Alternatively, you can manually configure the delay times on the leading axis and on the virtual following axes. Depending on the set delay time, the leading value at the leading axis proxy is automatically interpolated or extrapolated.

Requirements

 You have interconnected the CPUs and technology objects with one another.  Except for the delay time, the technology objects are fully configured.

Procedure

To set the delay times, proceed as follows:
1. In the configuration of the technology objects under "Leading value settings", select the check box "Allow system calculation".
2. Open the interconnection overview.
3. In the interconnection overview, click on "Calculate delay times".
4. Check the calculated delay times in the columns "DT" of the interconnection overview.
5. In the routes, check whether a leading value is interpolated or extrapolated at the leading axis proxy (<TO>.StatusExternalLeadingValue.AdjustmentTime (Page 290)).
6. To adjust the delay time, if necessary, and take into account additional requirements from your special application, for example, proceed as follows:
­ In the configuration of the leading axis and the virtual following axes under "Leading value settings", select the check box "Allow system calculation".
­ Enter the corresponding value in the "Delay time" input field.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

181

Cross-PLC synchronous operation (S7-1500T) 8.3 Diagnostics (S7-1500T)

8.3

Diagnostics (S7-1500T)

The "Diagnostics" section is limited to describing the diagnostics view of the leading axis proxy technology object in the TIA Portal.

You will find a description of Motion Control diagnostics in the following sections of the "S71500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459):

 Diagnostic concept

 Technology alarms

 Errors in Motion Control instructions

A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.automation.siemens.com/WW/view/en/59192926).

You can find an example of the diagnostics of cross-PLC synchronous operation with the project trace in the Siemens Industry Online Support in the FAQ entry 109770938 (https://support.industry.siemens.com/cs/ww/en/view/109770938).

8.3.1

Leading axis proxy technology object (S7-1500T)

8.3.1.1

Status and error bits (S7-1500T)
You use the "Technology object > Diagnostics > Status and error bits" diagnostic function in the TIA Portal to monitor the status and error messages for the technology object. The diagnostics function is available in online operation.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

Leading axis proxy status
The following table shows the possible states of the leading axis proxy:

Status Error
Restart active Restart required
External leading value valid

Description
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object. (<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized. (<TO>.StatusWord.X2 (RestartActive))
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object. (<TO.>StatusWord.X3 (OnlineStartValuesChanged))
The external leading value exists and is valid. (<TO>.StatusWord.X4 (LeadingValueValid))

182

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Cross-PLC synchronous operation (S7-1500T) 8.3 Diagnostics (S7-1500T)

Warnings

The following table shows the possible warnings:

Warning System Configuration
User program Job rejected
Data exchange

Description A system-internal error has occurred. (<TO>.WarningWord.X0 (SystemWarning)) One or more configuration parameters are being internally adapted temporarily. (<TO>.WarningWord.X1 (ConfigWarning)) An error has occurred in the user program. (<TO>.WarningWord.X2 (UserWarning)) Job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled. (<TO>.WarningWord.X3 (CommandNotAccepted)) An error in the communication has occurred. (<TO>.WarningWord.X7 (CommunicationWarning))

Error

The following table shows the possible errors:

Error System Configuration
User program Job rejected

Description
A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) An error occurred in the user program at a Motion Control instruction or its use. (<TO>.ErrorWord.X2 (UserFault)) A job cannot be executed. You cannot execute a Motion Control instruction because necessary requirements are not fulfilled (for example, technology object not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted))

Alarm display

For additional information and to acknowledge the error, go to the Inspector window by clicking on the "Alarm display" link.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

183

Instructions (S7-1500, S7-1500T)

9

9.1

Synchronous motion (S7-1500, S7-1500T)

9.1.1

MC_GearIn V5 (S7-1500, S7-1500T)

9.1.1.1

MC_GearIn: Start gearing V5 (S7-1500, S7-1500T)

Description

With the Motion Control instruction "MC_GearIn", you start a gearing (Page 31) operation between a leading axis and a following axis.
You define the dynamic behavior of the following axis for synchronization with parameters "Jerk", "Acceleration" and "Deceleration".
The synchronization duration and distance are dependent on the following parameters:
 Start time of the "MC_GearIn" job
 Dynamics of the following axis at the start time
 Dynamic settings for synchronization
 Dynamics of the leading axis
You specify the gear ratio as the relationship between two integers (numerator/denominator) with the parameters "RatioNumerator" and "RatioDenominator".
The numerator of the gear ratio is specified as positive or negative. This yields the following behavior:
 Positive gear ratio:
The leading and following axes move in the same direction.
 Negative gear ratio:
The following axis moves in the opposite direction of the leading axis.
You can start synchronous operation when the leading axis is at a standstill or when it is in motion.

Applies to

 Synchronous axis

184

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Requirement

 The technology objects of the leading axis and the following axis have been configured correctly.
 The leading axis is a positioning axis, a synchronous axis, an external encoder or a leading axis proxy.
 The following axis is a synchronous axis.
 The leading axis is specified as possible leading axis in the configuration of the following axis in "Technology object > Configuration > Leading value interconnections".
 The following axis is enabled.

Override response
The override response for "MC_GearIn" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
Disabling the following axis with "MC_Power.Enable" = FALSE aborts the synchronous operation in every status.
Disabling the leading axis with "MC_Power", in contrast, does not abort synchronous operation. The following axis follows the leading axis even during the braking ramp and after the leading axis is enabled again.

Parameters

The following table shows the parameters of Motion Control instruction "MC_GearIn":

Parameters Master
Slave Execute RatioNumerator
RatioDenominator

Declaration INPUT
INPUT INPUT INPUT

Data type

Default value

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_SynchronousAxis -

BOOL

FALSE

DINT

1

INPUT DINT

1

Description
Leading axis technology object
Following axis technology object TRUE Start job with a positive edge Gear ratio numerator Permitted integer values: -2147483648 to 2147483647 (value 0 not permitted) Gear ratio denominator Permitted integer values: 1 to 2147483647

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

185

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters Acceleration

Declaration
INPUT

Data type LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

InGear

OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value -1.0
-1.0
-1.0
FALSE FALSE FALSE FALSE 0

Description

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE Synchronous operation reached

The following axis is synchronized and moves synchronously to the leading axis.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

186

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Starting synchronous operation
To start synchronous operation with the Motion Control instruction "MC_GearIn", follow these steps:
1. Check the requirements indicated above.
2. Specify the leading axis, the following axis and the gear ratio at the corresponding parameters.
3. Start the "MC_GearIn" job with a positive edge at parameter "Execute".
The following axis is synchronized to the leading value of the leading axis. If the "InGear" parameter shows the value "TRUE", the following axis is synchronized and moves synchronously to the leading axis. The parameters "InGear" and "Busy" show the value "TRUE" until the "MC_GearIn" job is overridden by another Motion Control job.

See also

Gearing with "MC_GearIn" (Page 31)
Override response V5: Synchronous operation jobs (Page 238)
Synchronization with "MC_GearIn" (Page 36)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

187

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.1.2

MC_GearIn: Function chart V5 (S7-1500, S7-1500T)

Function chart: Synchronizing and switching the leading value

Using "Exe_1", an "MC_GearIn" job (A1) is initiated. The following axis (TO_Slave) is
synchronized to the leading axis (TO_Master_1). "InGear_1" signals at time  that the
following axis is synchronized and moves synchronously to the leading axis.
At time , synchronous operation is overridden by another "MC_GearIn" job (A2). The abort
is signaled via "Abort_1". The following axis is synchronized to the new leading axis
(TO_Master_2). "InGear_2" signals at time  that the following axis is synchronized and
moves synchronously to the leading axis.

188

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.2

MC_GearInPos V5 (S7-1500T)

9.1.2.1

MC_GearInPos: Start gearing with specified synchronous positions V5 (S7-1500T)

Description

With the Motion Control instruction "MC_GearInPos", you start a gearing (Page 33) operation between a leading axis and a following axis. The synchronous operation is synchronized depending on the specified synchronous position for the leading and following axis.
The following types of synchronization (Page 36) are possible:
 Synchronization in advance using dynamic parameters ("SyncProfileReference" = 0)
 Synchronization in advance using leading value distance ("SyncProfileReference" = 1)
 Subsequent synchronization using leading value distance ("SyncProfileReference" = 3)
You specify the gear ratio as the relationship between two integers (numerator/denominator) with the parameters "RatioNumerator" and "RatioDenominator".
The numerator of the gear ratio is specified as positive or negative. This yields the following behavior:
 Positive gear ratio:
The leading and following axes move in the same direction.
 Negative gear ratio:
The following axis moves in the opposite direction of the leading axis.
You can start synchronous operation when the leading axis is at a standstill or when it is in motion.

Applies to

 Synchronous axis

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

189

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Requirement

 The technology objects of the leading axis and the following axis have been configured correctly.
 The leading axis is a positioning axis, synchronous axis, external encoder or leading axis proxy.
 The following axis is a synchronous axis.
 The leading axis is specified as possible leading axis in the configuration of the following axis under "Technology object > Configuration > Leading value interconnections".
 The following axis is enabled.
 With synchronization in advance using leading value distance, the leading axis must be at least the specified distance ("MasterStartDistance") from the synchronization position ("MasterSyncPosition") when starting the job.

Override response
The override response for "MC_GearInPos" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
Disabling the following axis with "MC_Power.Enable" = FALSE aborts the synchronous operation in every status.
Disabling the leading axis with "MC_Power", in contrast, does not abort synchronous operation. The following axis follows the leading axis even during the braking ramp and after the leading axis is enabled again.

Parameters

The following table shows the parameters of Motion Control instruction "MC_GearInPos":

Parameters Master
Slave Execute RatioNumerator
RatioDenominator

Declaration INPUT
INPUT INPUT INPUT

Data type

Default value

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_SynchronousAxis -

BOOL

FALSE

DINT

1

INPUT DINT

1

Description
Leading axis technology object
Following axis technology object TRUE Start job with a positive edge Gear ratio numerator Permitted integer values: -2147483648 to 2147483647 (value 0 not permitted) Gear ratio denominator Permitted integer values: 1 to 2147483647

190

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Parameters MasterSyncPosition

Declaration
INPUT

Data type LREAL

SlaveSyncPosition

INPUT LREAL

SyncProfileReference INPUT DINT

MasterStartDistance INPUT LREAL

Velocity

INPUT LREAL

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Default value 0.0
0.0
1
1.0 -1.0

Description

Synchronous position of leading axis

When "SyncProfileReference" = 0, 1:

Position of the leading axis from which the axes are synchronous and the synchronization is completed.

When "SyncProfileReference" = 3:

Position of the leading axis from which synchronization starts

Synchronous position of following axis

When "SyncProfileReference" = 0, 1:

Position of the following axis from which the axes are synchronous and the synchronization is completed.

When "SyncProfileReference" = 3:

Position of the following axis, which is assigned to the synchronous position of the leading axis.

Type of synchronization

0

Synchronization in advance using dy-

namic parameters

1

Synchronization in advance using lead-

ing value distance

2

Reserved

3

Subsequent synchronization using

leading value distance

4

Reserved

When "SyncProfileReference" = 1, 3:

Leading value distance

When "SyncProfileReference" = 0:

Not relevant

When "SyncProfileReference" = 0:

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

When "SyncProfileReference" = 1, 3:

Not relevant

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

191

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters Acceleration

Declaration
INPUT

Data type LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

Default value -1.0
-1.0
-1.0

Description

When "SyncProfileReference" = 0:

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

When "SyncProfileReference" = 1, 3:

Not relevant

When "SyncProfileReference" = 0:

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

When "SyncProfileReference" = 1, 3:

Not relevant

When "SyncProfileReference" = 0:

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

When "SyncProfileReference" = 1, 3:

Not relevant

192

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Parameters SyncDirection

Declaration
INPUT

Data type DINT

StartSync InSync

OUTPUT BOOL OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Default value 3
FALSE FALSE FALSE FALSE FALSE 0

Description

Direction of synchronization

(in effect for axes with activated Modulo setting)

1

Positive direction

The following axis may only travel in positive direction during synchronization.

2

Negative direction

The following axis may only travel in negative direction during synchronization.

3

Shortest distance

Changes in direction are permitted for the following axis during synchronization.

TRUE The following axis is synchronized to the leading axis.

TRUE Synchronous operation reached

The following axis is synchronized and moves synchronously to the leading axis.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

193

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Starting synchronous operation
To start synchronous operation with the Motion Control instruction "MC_GearInPos", follow these steps:
1. Check the requirements indicated above.
2. Specify the leading axis, the following axis, the gear ratio and the synchronous position with the corresponding parameters.
3. Start the "MC_GearInPos" job with a positive edge at parameter "Execute".
The following axis is synchronized to the leading value of the leading axis. If the "InSync" parameter shows the value "TRUE", the following axis is synchronized and moves synchronously to the leading axis. The parameters "InSync" and "Busy" show the value "TRUE" until the "MC_GearInPos" job is overridden by another Motion Control job.

See also

Gearing with "MC_GearInPos" with specified synchronous position (Page 33)
Override response V5: Synchronous operation jobs (Page 238)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Synchronization (Page 36)

194

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.2.2

MC_GearInPos: Function chart V5 (S7-1500T)

Function chart: Synchronization in advance using dynamic parameters/leading value distance

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

195

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Section Section

Using "Exe", an "MC_GearInPos" job (A1) is initiated. The start of the synchronization is displayed with "StartSync". The following axis (TO_Slave) is synchronized in advance to the leading axis (TO_Master) by means of the specified dynamic parameters. The distance required for synchronization is calculated by the system. When the specified reference positions "MasterSyncPosition" and "SlaveSyncPosition" are reached, "InSync" signals that the following axis is synchronized and moving synchronously to the leading axis.
Using "Exe", an "MC_GearInPos" job (A1) is initiated. The start of the synchronization is displayed with "StartSync". The following axis (TO_Slave) is synchronized to the leading axis (TO_Master) by means of the specified leading value distance ("MasterStartDistance"). The dynamic response required for synchronization is calculated by the system. When the specified reference positions "MasterSyncPosition" and "SlaveSyncPosition" are reached, "InSync" signals that the following axis is synchronized and moving synchronously to the leading axis.

196

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
Function chart: Synchronization in advance/subsequent synchronization via leading value distance

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

197

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Section Section

Using "Exe", an "MC_GearInPos" job (A1) is initiated. The start of the synchronization is displayed with "StartSync". The following axis (TO_Slave) is synchronized to the leading axis (TO_Master) by means of the specified leading value distance ("MasterStartDistance"). The dynamic response required for synchronization is calculated by the system. When the specified reference positions "MasterSyncPosition" and "SlaveSyncPosition" are reached, "InSync" signals that the following axis is synchronized and moving synchronously to the leading axis.
Using "Exe", an "MC_GearInPos" job (A1) is initiated. When the specified reference position "MasterSyncPosition" is reached, the start of synchronization is indicated via "StartSync". The following axis (TO_Slave) is synchronized subsequently to the leading axis (TO_Master) by means of the specified leading value distance "MasterStartDistance". The dynamics required for synchronization is calculated by the system. "InSync" signals that the following axis is synchronized and moving synchronously to the leading axis.

198

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.3

MC_PhasingRelative V5 (S7-1500T)

9.1.3.1

MC_PhasingRelative: Relative shift of leading value on the following axis V5 (S71500T)

Description

With the Motion Control instruction "MC_PhasingRelative", you shift the leading value on a following axis during gearing with "MC_GearIn" and "MC_GearInPos" relative to the existing leading value shift. The position of the leading axis is not affected by this.
You define the dynamic response of the motion of the following axis with the parameters "Velocity", "Jerk", "Acceleration", and "Deceleration". The dynamic values are added to the values of the synchronous operation motion.

Applies to

 Synchronous axis

Requirement

 The technology objects of the leading axis and the following axis have been configured correctly.
 The leading axis is a positioning axis, synchronous axis, external encoder or leading axis proxy.
 The following axis is a synchronous axis.
 The leading axis is specified as possible leading axis in the configuration of the following axis in "Technology object > Configuration > Leading value interconnections".
 By means of the Motion Control instruction "MC_GearIn" or "MC_GearInPos", the following axis is synchronized to the leading axis ("MC_GearIn.InGear" = TRUE or "MC_GearInPos.InSync" = TRUE).
 The following axis is enabled.

Override response
The override response for "MC_PhasingRelative" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
Disabling the leading axis with "MC_Power.Enable" = FALSE does not abort the leading value shift. The following axis follows the leading axis even during the braking ramp and after the leading axis is enabled again.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

199

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters
Parameters Master Slave Execute PhaseShift Velocity
Acceleration
Deceleration

The following table shows the parameters of Motion Control instruction "MC_PhasingRelative":

Declaration INPUT
INPUT INPUT INPUT INPUT

Data type

Default value

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_SynchronousAxis -

BOOL

FALSE

LREAL

0.0

LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

Description Leading axis technology object

Following axis technology object

TRUE Start job with a positive edge

Relative leading value shift

Velocity of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

Acceleration of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

200

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters Jerk

Declaration
INPUT

Data type LREAL

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID CoveredPhaseShift

OUTPUT WORD OUTPUT LREAL

Default value -1.0
FALSE FALSE FALSE FALSE
0 0.0

Description

Jerk of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE Leading value shift is finished.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

As long as "Busy" = TRUE:

Display of leading value shift completed up to now

Start relative leading value shift
To start a relative leading value shift with the Motion Control instruction "MC_PhasingRelative", follow these steps:
1. Check the requirements indicated above.
2. Specify the relative leading value shift in the "PhaseShift" parameter.
3. Start the "MC_PhasingRelative" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "CoveredPhaseShift", "Done" and "Error".

See also

Override response V5: Synchronous operation jobs (Page 238)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
MC_GearIn V5 (Page 184)
MC_GearInPos V5 (Page 189)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

201

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.3.2

MC_PhasingRelative: Function chart V5 (S7-1500T)

Function chart: Relative shift of leading value

202

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
During an active gearing operation with "MC_GearInPos" (A1), a "MC_PhasingRelative" job (A2) is initiated using "Exe". The leading value shift is performed with the dynamics specified additively to the synchronous operation motion. "Done" indicates that the leading value was successfully shifted. The leading value shift 50.0 resulting from the job is indicated in "CoveredPhaseShift". The absolute leading value shift 50.0 is indicated in the tag of the technology object <TO>.StatusSynchronizedMotion.PhaseShift. The motion of the leading axis is not affected.
After the leading value shift, the "MC_PhasingRelative" job (A2) is initiated again using "Exe". The leading value shift is performed again with the dynamics specified additively to the synchronous operation motion. "Done" indicates that the leading value was successfully shifted. The leading value shift 50.0 resulting from the job is indicated in "CoveredPhaseShift". The absolute leading value shift 100.0 is indicated in the tag of the technology object <TO>.StatusSynchronizedMotion.PhaseShift.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

203

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.4

MC_PhasingAbsolute V5 (S7-1500T)

9.1.4.1

MC_PhasingAbsolute: Absolute shift of leading value on the following axis V5 (S71500T)

Description

With the Motion Control instruction "MC_PhasingAbsolute", you shift the leading value on a following axis during gearing with "MC_GearIn" and "MC_GearInPos" as an absolute shift. The position of the leading axis is not affected by this.
You define the dynamic response of the motion of the following axis with the parameters "Velocity", "Jerk", "Acceleration", and "Deceleration". The dynamic values are added to the values of the synchronous operation motion.

Applies to

 Synchronous axis

Requirement

 The technology objects of the leading axis and the following axis have been configured correctly.
 The leading axis is a positioning axis, synchronous axis, external encoder or leading axis proxy.
 The following axis is a synchronous axis.
 The leading axis is specified as possible leading axis in the configuration of the following axis in "Technology object > Configuration > Leading value interconnections".
 By means of the Motion Control instruction "MC_GearIn" or "MC_GearInPos", the following axis is synchronized to the leading axis ("MC_GearIn.InGear" = TRUE or "MC_GearInPos.InSync" = TRUE).
 The following axis is enabled.

Override response
The override response for "MC_PhasingAbsolute" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
Disabling the leading axis with "MC_Power.Enable" = FALSE does not abort the leading value shift. The following axis follows the leading axis even during the braking ramp and after the leading axis is enabled again.

204

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters
Parameters Master Slave Execute PhaseShift Velocity
Acceleration
Deceleration

The following table shows the parameters of Motion Control instruction "MC_PhasingAbsolute":

Declaration INPUT
INPUT INPUT INPUT INPUT

Data type

Default value

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_SynchronousAxis -

BOOL

FALSE

LREAL

0.0

LREAL

-1.0

INPUT LREAL

-1.0

INPUT LREAL

-1.0

Description Leading axis technology object

Following axis technology object

TRUE Start job with a positive edge

Absolute leading value shift

Velocity of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

Acceleration of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

Deceleration of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

205

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters Jerk

Declaration
INPUT

Data type LREAL

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID AbsolutePhaseShift

OUTPUT WORD OUTPUT LREAL

Default value -1.0
FALSE FALSE FALSE FALSE
0 0.0

Description

Jerk of the following axis for leading value shift (added to synchronous operation motion)

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

TRUE Leading value shift is finished.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

As long as "Busy" = TRUE:

Display of leading value shift completed up to now

Start absolute leading value shift
To start an absolute leading value shift with the Motion Control instruction "MC_PhasingAbsolute", follow these steps:
1. Check the requirements indicated above.
2. Specify the absolute leading value shift in the "PhaseShift" parameter.
3. Start the "MC_PhasingAbsolute" job with a positive edge at parameter "Execute".
The current motion state is indicated in parameters "Busy", "AbsolutePhaseShift", "Done" and "Error".

See also

Override response V5: Synchronous operation jobs (Page 238)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
MC_GearIn V5 (Page 184)
MC_GearInPos V5 (Page 189)

206

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.4.2

MC_PhasingAbsolute: Function chart V5 (S7-1500T)

Function chart: Absolute shift of leading value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

207

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
During an active gearing operation with "MC_GearInPos" (A1), a "MC_PhasingAbsolute" job (A2) is initiated using "Exe". The leading value shift is performed with the dynamics specified additively to the synchronous operation motion. "Done" indicates that the leading value was successfully shifted. The leading value shift 50.0 resulting from the job is indicated in "AbsolutePhaseShift". The absolute leading value shift 50.0 is indicated in the tag of the technology object <TO>.StatusSynchronizedMotion.PhaseShift. The motion of the leading axis is not affected.
After the leading value shift, the "MC_PhasingAbsolute" job (A2) is initiated again using "Exe". Because the leading value shift (<TO>.StatusSynchronizedMotion.PhaseShift) is already 50.0, the leading value is not shifted.

208

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.5

MC_CamIn V5 (S7-1500T)

9.1.5.1

MC_CamIn: Start camming V5 (S7-1500T)

Description

With the Motion Control instruction "MC_CamIn", you start a camming (Page 45) operation between a leading axis and a following axis. The synchronous operation is synchronized depending on the specified synchronous position of the leading axis.
A cam is defined between the start position (<TO>.StatusCam.StartLeadingValue) and end position (<TO>.StatusCam.EndLeadingValue) after the interpolation. The specification for leading and following value range in the configuration of the technology object (Page 105) only effect the display in the graphical editor.
With the "MasterSyncPosition" parameter, you specify the synchronization position in the cam relative to the starting position of the cam. The synchronous position establishes the relationship between leading value and following value, independent of the type of synchronization. With "MasterSyncPosition"  0.0, you move the synchronous position within the cam without changing the position of the cam.
The synchronous position of the leading axis results from the starting position of the cam and the "MasterSyncPosition" and "MasterOffset" parameters.
With the "MasterOffset" parameter, you offset the leading values of the cam (with "SyncProfileReference" = 0, 1, 3, 4). This determines the position of the cam in relation to the leading value of the synchronous operation function. This is how you move the cam to the required position range.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

209

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
The following figure shows the basic effect of the leading value and following value offset as well as the position of the cam with the following parameter values:  "MasterOffset" > 0  Start position of the cam > 0  "MasterSyncPosition" > 0

 Start position of the cam
First defined interpolation point/start of the first segment of the cam (<TO>.StatusCam.StartLeadingValue)
 Leading value distance with synchronization in advance ("MasterStartDistance")  Synchronous position of the leading axis relative to the starting position of the cam ("Master-
SyncPosition")
 Leading value distance with subsequent synchronization ("MasterStartDistance")  End position of the cam
Last defined interpolation point/end of the last segment of the cam (<TO>.StatusCam.EndLeadingValue)

210

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
The figure below shows the basic effect of scaling the cam with the parameters "MasterScaling" and "SlaveScaling":

Leading value Following value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

211

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

The following types of synchronization (Page 55) are possible:
 Synchronization in advance using dynamic parameters or leading value distance ("SyncProfileReference" = 0 or 1)
The synchronous operation is synchronized in advance to the specified synchronous position of the leading axis ("MasterSyncPosition"). When the leading axis has reached the synchronous position, the leading and following axis move synchronously.
To run through the entire cam, specify the value 0.0 (default value) in "MasterSyncPosition".
 Direct synchronous setting ("SyncProfileReference" = 2)
Synchronous operation is immediately set to synchronous. You use the "MasterSyncPosition" parameter to set the exact synchronous position in the cam. This setting is mainly suitable for synchronizing at a standstill.
 Subsequent synchronization using leading value distance ("SyncProfileReference" = 3)
The synchronous operation is synchronized subsequently starting from the specified synchronous position of the leading axis ("MasterSyncPosition").
 Subsequent synchronization using leading value distance starting from current leading value position ("SyncProfileReference" = 4)
The synchronous operation is synchronized subsequently starting from the current position of the leading axis.
You can start synchronization when the leading axis or following axis is at a standstill or when it is in motion.

Applies to

 Cam  Synchronous axis

Requirement

 The technology objects of the leading axis, following axis, and cam have been configured correctly.
 The leading axis is a positioning axis, synchronous axis, external encoder or leading axis proxy.
 The following axis is a synchronous axis.
 The leading axis is specified as possible leading axis in the configuration of the following axis under "Technology object > Configuration > Leading value interconnections".
 The following axis is enabled.
 The cam is interpolated with "MC_InterpolateCam".
 With synchronization in advance using leading value distance, the leading axis must be at least the specified distance ("MasterStartDistance") from the synchronization position ("MasterSyncPosition") when starting the job.

212

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Override response
The override response for "MC_CamIn" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
Disabling the following axis with "MC_Power.Enable" = FALSE aborts the synchronous operation in every status.
Disabling the leading axis with "MC_Power", in contrast, does not abort synchronous operation. The following axis follows the leading axis even during the braking ramp and after the leading axis is enabled again.

Parameters
Parameter Master
Slave Cam Execute MasterOffset
SlaveOffset
MasterScaling SlaveScaling

The following table shows the parameters of Motion Control instruction "MC_CamIn":

Declaration INPUT
INPUT INPUT INPUT INPUT

Data type

Default value

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

TO_SynchronousAxis -

TO_Cam

-

BOOL

FALSE

LREAL

0.0

INPUT LREAL

0.0

INPUT LREAL

1.0

INPUT LREAL

1.0

Description
Leading axis technology object
Following axis technology object Cam technology object TRUE Start job with a positive edge When "SyncProfileReference" = 0, 1, 3, 4: Offset of the leading values of cam The cam technology object is not changed. When "SyncProfileReference" = 2: Not relevant When "SyncProfileReference" = 0, 1, 3, 4: Offset of the following values of cam The cam technology object is not changed. When "SyncProfileReference" = 2: Not relevant Scaling the leading values of the cam The cam technology object is not changed. Scaling the following values of the cam The cam technology object is not changed.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

213

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameter MasterSyncPosition

Declaration
INPUT

Data type LREAL

SyncProfileReference INPUT DINT

MasterStartDistance INPUT LREAL

Velocity

INPUT LREAL

Default value 0.0
1
0.0 -1.0

Description

Synchronous position of leading axis

When "SyncProfileReference" = 0, 1, 2:

Position of the leading axis (relative to the starting position of the cam), from which the axes are synchronous and synchronization is complete.

The value must be within the definition of the cam.

When "SyncProfileReference" = 3:

Position of the leading axis (relative to the starting position of the cam) from which the synchronization begins

The value must be within the definition of the cam.

When "SyncProfileReference" = 4:

Not relevant

Synchronization profile

0

Synchronization in advance using dy-

namic parameters

1

Synchronization in advance using lead-

ing value distance

2

Direct synchronous setting

3

Subsequent synchronization using

leading value distance

4

Subsequent synchronization using

leading value distance starting from

current leading value position

When "SyncProfileReference" = 1, 3, 4:

Leading value distance

Distance of the leading axis during the synchronization

When "SyncProfileReference" = 0, 2:

Not relevant

When "SyncProfileReference" = 0:

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Velocity)

When "SyncProfileReference" = 1, 2, 3, 4:

Not relevant

214

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Parameter Acceleration

Declaration
INPUT

Data type LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

ApplicationMode

INPUT DINT

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Default value -1.0
-1.0
-1.0
0

Description

When "SyncProfileReference" = 0:

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The acceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Acceleration)

When "SyncProfileReference" = 1, 2, 3, 4:

Not relevant

When "SyncProfileReference" = 0:

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The deceleration configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Deceleration)

When "SyncProfileReference" = 1, 2, 3, 4:

Not relevant

When "SyncProfileReference" = 0:

Jerk

> 0.0 Constant acceleration velocity profile

The specified value is used.

= 0.0 Trapezoid velocity profile

< 0.0

The jerk configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Jerk)

When "SyncProfileReference" = 1, 2, 3, 4:

Not relevant

Application of the cam

0

Once/not cyclic

1

Cyclic (absolute application on the

following value side)

2

Cyclic appending (continuously append-

ing on the following value side)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

215

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameter SyncDirection

Declaration
INPUT

Data type DINT

StartSync InSync

OUTPUT BOOL OUTPUT BOOL

Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID EndOfProfile

OUTPUT WORD OUTPUT BOOL

Default value 3
FALSE FALSE FALSE FALSE FALSE 0 FALSE

Description

Direction of synchronization

(in effect for axes with activated Modulo setting)

1

Positive direction

The following axis may only travel in positive direction during synchronization.

2

Negative direction

The following axis may only travel in negative direction during synchronization.

3

Shortest distance

Changes in direction are permitted for the following axis during synchronization.

TRUE The following axis is synchronized to the leading axis.

TRUE Synchronous operation reached

The following axis is synchronized and moves synchronously to the leading axis.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

TRUE The end of the cam has been reached.

Displayed for at least one call of "MC_CamIn" in the user program when the cam is used cyclically.

216

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Starting synchronous operation
To start synchronous operation with the Motion Control instruction "MC_CamIn", follow these steps:
1. Check the requirements indicated above.
2. Specify the leading axis, the following axis, the utilized cam and the synchronous position in the corresponding parameters.
3. Start the "MC_CamIn" job with a positive edge at parameter "Execute".
The following axis is synchronized to the leading value of the leading axis. If the "InSync" parameter shows the value "TRUE", the following axis is synchronized and moves synchronously to the leading axis. With cyclic application of the cam, the "InSync" and "Busy" parameters show the value "TRUE" until the "MC_CamIn" job is overridden by another Motion Control job. With non-cyclic application of the cam, the "InSync" and "Busy" parameters are set to the value "FALSE" when the parameter "EndOfProfile" is set to the value "TRUE".

See also

Camming (Page 45)
Override response V5: Synchronous operation jobs (Page 238)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Synchronization (Page 55)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

217

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.5.2

MC_CamIn: Function chart V5 (S7-1500T)

Function chart: Synchronization in advance via dynamic parameters/leading value distance and switching of the cam

218

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

219

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
Using "Exe_1", an "MC_CamIn" job (A1) is initiated. The start of the synchronization is displayed with "StartSync_1". The following axis (TO_Slave) is synchronized in advance to the cam (Cam_1) within the range "Sync_1" by means of the specified dynamic parameters. The distance required for synchronization is calculated by the system. When the specified reference position "MasterSyncPosition" relative to the start of the cam is reached, "InSync_1" signals that the following axis is synchronized and moves synchronously to the leading axis.
The synchronous operation is overridden by another "MC_CamIn" job (A2). The abort is signaled via "Abort_1". The start of the synchronization is displayed with "StartSync_2". The following axis is synchronized in advance to the new cam (Cam_2) within the range "Sync_2" by means of the specified leading value distance "MasterStartDistance". Within the range "Sync_2", the axis does not follow the cam "Cam_1" The dynamic response required for synchronization is calculated by the system. When the specified reference position "MasterSyncPosition" relative to the start of the cam is reached, "InSync_2" signals that the following axis is synchronized and moves synchronously to the leading axis.
Function chart: Synchronization in advance/subsequent synchronization via leading value distance and switching the cam

220

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

221

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)
Using "Exe_1", an "MC_CamIn" job (A1) is initiated. The start of the synchronization is displayed with "StartSync_1". The following axis (TO_Slave) is synchronized in advance to the cam (Cam_1) within the range "Sync_1" by means of the specified leading value distance "MasterStartDistance". The dynamic response required for synchronization is calculated by the system. When the specified reference position "MasterSyncPosition" relative to the start of the cam is reached, "InSync_1" signals that the following axis is synchronized and moves synchronously to the leading axis.
The synchronous operation is overridden by another "MC_CamIn" job (A2). The abort is signaled via "Abort_1". When the specified reference position "MasterSyncPosition" in relation to the start of the cam disk is reached, the start of synchronization is indicated via "StartSync_2". The following axis is synchronized subsequently to the new cam (Cam_2) within the range "Sync_2" by means of the specified leading value distance "MasterStartDistance". Within the range "Sync_2", the axis does not follow the cam "Cam_1" The dynamic response required for synchronization is calculated by the system. "InSync_2" signals that the following axis is synchronized and moving synchronously to the leading axis.

222

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.6

MC_SynchronizedMotionSimulation V5 (S7-1500T)

9.1.6.1

MC_SynchronizedMotionSimulation: Simulate synchronous operation V5 (S7-1500T)

Description

With the Motion Control instruction "MC_SynchronizedMotionSimulation", you simulate an active synchronous operation on a following axis. As a result, a synchronous operation remains active when the following axis is disabled with a "MC_Power" job. The following axis does not have to be synchronized again after being enabled again.
With the start of a "MC_SynchronizedMotionSimulation" job, the velocity setpoint from the synchronous operation is set to zero. If an overlaid movement is active on the following axis at the start of the simulation, the setpoints of this overlaid movement will continue to be output.
Setpoints of motion jobs that are started during synchronous operation simulation are output to the drive.
If the position of the following axis at the end of the simulation differs from the position at the start of the simulation, this triggers a setpoint step-change.

Applies to

 Synchronous axis

Requirement

 The technology object has been configured correctly.
 The following axis is a synchronous axis.
 Synchronous operation is active on the technology object in status "Synchronous" (<TO>.StatusWord.X22 = TRUE).

Override response
An "MC_SynchronizedMotionSimulation" job is not aborted by any other Motion Control job. The simulated synchronous operation remains active even when the following axis is disabled with "MC_Power.Enable" = FALSE or "MC_Stop".
A restart of the technology object stops the simulation and aborts the synchronous operation.
A new "MC_SynchronizedMotionSimulation" job does not abort any other Motion Control jobs. With "MC_SynchronizedMotionSimulation.Enable" = TRUE, synchronous operation jobs are rejected.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

223

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters
Parameters Slave Enable
InSimulation Busy Error
ErrorID

The following table shows the parameters of Motion Control instruction "MC_SynchronizedMotionSimulation":

Declaration INPUT INPUT

Data type
TO_SynchronousAxis BOOL

Default value FALSE

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE FALSE FALSE
0

Description

Following axis technology object

TRUE Simulation of synchronous operation is started.

FALSE Simulation of the synchronous operation is stopped.

TRUE Synchronous operation is being simulated

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Continuing synchronous operation when the following axis is disabled
In order not to stop synchronous operation with "MC_SynchronizedMotionSimulation" Motion Control instruction when the following axis is disabled, follow these steps:
1. Check the requirements indicated above.
2. Specify the following axis in the "Slave" parameter.
3. Bring the leading axis to a standstill (e.g. with "MC_Halt").
4. Start the simulation of the synchronous operation on the following axis with "MC_SynchronizedMotionSimulation.Enable" = TRUE.
5. When the "InSimulation" parameter shows the value TRUE, disable the following axis. The synchronous operation remains active in the simulation.
6. To reset synchronous operation again after the following axis is enabled, stop synchronous operation simulation with "MC_SynchronizedMotionSimulation.Enable" = FALSE.
The synchronous operation simulation is stopped. The following axis follows the leading axis without re-synchronization.

See also

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

224

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.7

MC_LeadingValueAdditive V5 (S7-1500T)

9.1.7.1

MC_LeadingValueAdditive: Specify additive leading value V5 (S7-1500T)

Description

With the Motion Control instruction "MC_LeadingValueAdditive", you specify an additive leading value cyclically in addition to the active leading value of a following axis.
The additive leading value consists of position, velocity and acceleration. Changes to the specified values are effective immediately without consideration of the dynamic limits.
You specify the additive position value with the "Position" parameter. You specify the additive velocity value with the "Velocity" parameter. You specify the additive acceleration value with the "Acceleration" parameter.
The additive value is effective with the parameter "Enable" = TRUE. The values are valid as long as the parameter "Busy" = TRUE. The additive leading value becomes ineffective with "Enable" = FALSE.

Applies to

 Synchronous axis

Requirement

 The technology object has been configured correctly.
 The technology object has been enabled or is in simulation with an "MC_SynchronizedMotionSimulation" job.

Override response
The override response for "MC_LeadingValueAdditive" jobs is described in section "Override response V5: Synchronous operation jobs (Page 238)".
If a synchronous operation is overridden by another synchronous operation, the additive leading value remains valid.
An "MC_LeadingValueAdditive" job is aborted by an "MC_Stop" job and by an "MC_Reset" job with "Restart" = TRUE.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

225

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Parameters
Parameter Axis Enable Position Velocity Acceleration Busy Error
ErrorID

The following table shows the parameters of Motion Control instruction "MC_LeadingValueAdditive":

Declaration
INPUT

Data type TO_SynchronousAxis

Default value
-

INPUT BOOL

FALSE

INPUT LREAL

0.0

INPUT LREAL

0.0

INPUT LREAL

0.0

OUTPUT BOOL OUTPUT BOOL

FALSE FALSE

OUTPUT WORD

16#0000

Description

Technology object on which the additive values act.

TRUE The leading value is adapted.

FALSE The leading value is not adapted.

Additive position value

Additive velocity value

Observe the dynamic limits.

Additive acceleration value

Observe the dynamic limits.

TRUE The additive values are valid.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

See also

Override response V5: Synchronous operation jobs (Page 238)
Additive leading value (Page 29)
Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)
Override response of Motion Control jobs V5 (Page 236)

226

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

9.1.7.2

MC_LeadingValueAdditive V5: Function chart (S7-1500T)

Function chart: Specify additive leading value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

227

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

228

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.1 Synchronous motion (S7-1500, S7-1500T)

Section Section

Via "Exe" = TRUE, a "MC_GearInPos" job (A1) is started with synchronization in advance via dynamic parameters. At the same time, a "MC_LeadingValueAdditive" job (A2) is started via "En" = TRUE.
The leading axis (TO_Master) calculates the effective leading value (EffectiveLeadingValue.Position) and the time for starting the synchronization. When the A1 job displays "StartSync" = TRUE, the following axis (TO_Slave) synchronizes with the given specified dynamic parameters.
The additive leading value is continuously increased in the user program, added to the effective leading value and has the effect of increased dynamic response of the following axis. When the additive leading value is reduced, the dynamic response of the following axis is also reduced. If the additive leading value is 0.0, the effective leading value follows the leading value of the leading axis.
The following axis synchronizes to the original synchronous position and the job A1 shows "InSync" = TRUE. The job A2 is terminated with "En" = FALSE.
Via "En" = TRUE, a "MC_LeadingValueAdditive" job (A2) is started before a synchronous operation job. The user program continuously increases the additive leading value to the value "100.0". With "Exe" = TRUE a "MC_GearInPos" job (A1) is started with synchronization in advance via leading value distance.
The leading axis calculates the effective leading value (EffectiveLeadingValue.Position). When the effective leading value reaches "200.0", synchronization starts and the A1 job shows "StartSync" = TRUE. At this point the leading axis has reached the value "100.0". The following axis is synchronized. The synchronous position is moved by the additive leading value.
As soon as "InSync" = TRUE, the additive leading value is continuously reduced. While the leading value (TO_Master.Position) increases from 200.0 to 300.0, the additive leading value (AddValue) decreases from 100.0 to 0.0. The effective leading value remains at 200.0 and the following axis does not move.
If the additive leading value is 0.0, the effective leading value follows the leading value of the leading axis. The shift is canceled and the motion of the following axis is continued. The job A2 is terminated with "En" = FALSE.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

229

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

9.2

Cam (S7-1500T)

9.2.1

MC_InterpolateCam V5 (S7-1500T)

9.2.1.1

MC_InterpolateCam: Interpolate cam V5 (S7-1500T)

Description

With the Motion Control instruction "MC_InterpolateCam", you interpolate a cam.
The interpolation closes the gaps between the defined interpolation points and segments of the cam. The cam is interpolated between the following values in the definition range:
 First defined interpolation point/start of the first segment of the cam (<TO>.StatusCam.StartLeadingValue)
 Last defined interpolation point/end of the last segment of the cam (<TO>.StatusCam.EndLeadingValue)
After interpolation, an explicit value in the value range is assigned to each value in the definition range.
The interpolation type defines how missing ranges are interpolated. You specify the interpolation type in the configuration of the technology object (Page 105). The following interpolation methods are possible:
 Linear interpolation
 Interpolation with cubic splines
 Interpolation with Bézier splines

Applies to

 Cam

Requirement

 The technology object has been configured correctly.  The cam is not currently being used, e.g. for camming.

Override response
 An "MC_InterpolateCam" job is not aborted by any other Motion Control job.  A new "MC_InterpolateCam" job does not abort any active Motion Control jobs.

230

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

Parameters
Parameters Cam Execute Done Busy Error
ErrorID

The following table shows the parameters of Motion Control instruction "MC_InterpolateCam":

Declara- Data type tion INPUT TO_Cam INPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value FALSE FALSE FALSE FALSE
0

Description

Cam technology object

TRUE Start job with a positive edge

TRUE The cam is interpolated.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Interpolating a cam
To interpolate a cam with the "MC_InterpolateCam" Motion Control instruction, follow these steps:
1. Check the requirements indicated above.
2. Specify the cam to be interpolated in the "Cam" parameter.
3. Start the "MC_InterpolateCam" job with a positive edge at parameter "Execute".
The cam is interpolated. When the "Done" parameter shows the value "TRUE", the interpolation is finished.

See also

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

231

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

9.2.2

MC_GetCamLeadingValue V5 (S7-1500T)

9.2.2.1

MC_GetCamLeadingValue: Read out leading value of a cam V5 (S7-1500T)

Description

With the Motion Control instruction "MC_GetCamLeadingValue", you read the leading value that is defined for a following value from a cam.
Because the same following values can be defined for different leading values, an approximation of the leading value can specified in the "ApproachValue" parameter.

Applies to

 Cam

Requirement

 The technology object has been configured correctly.  The cam is interpolated.

Override response
 An "MC_GetCamLeadingValue" job is not aborted by any other Motion Control job.  A new "MC_GetCamLeadingValue" job does not abort any active Motion Control jobs.

232

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_GetCamLeadingValue":

Parameter
Cam Execute FollowingValue
ApproachLeading Value

Declaration INPUT INPUT INPUT

Data type
TO_Cam BOOL LREAL

INPUT LREAL

Done Busy Error
ErrorID Value

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD OUTPUT LREAL

Default value FALSE 0.0 0.0
FALSE FALSE FALSE
0 -

Description

Cam technology object

TRUE Start job with a positive edge

Following value for which the leading value is read

Approximation value for the searched for leading value

If the following value is used multiple times in the cam, it can be used to limit the searched leading value.

TRUE The leading value was read.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Read leading value (position)

(valid when "Done" = TRUE)

Reading a leading value
To read a leading value from a cam with the "MC_GetCamLeadingValue" Motion Control instruction, follow these steps:
1. Check the requirements indicated above.
2. Specify the cam, the following value, and the approximation value for the searched-for leading value in the corresponding parameters.
3. Start the "MC_GetCamLeadingValue" job with a positive edge at parameter "Execute".
When the "Done" parameter shows the value "TRUE", the leading value has been determined. The calculation of the leading value can take several cycles. The leading value is output in the "Value" parameter.

See also

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

233

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

9.2.3

MC_GetCamFollowingValue V5 (S7-1500T)

9.2.3.1

MC_GetCamFollowingValue: Read out following value of a cam disc V5 (S7-1500T)

Description

With the Motion Control instruction "MC_GetCamFollowingValue", you read the following value and the first and second derivative of the following value for a leading value from a cam.

Applies to

 Cam

Requirement

 The technology object has been configured correctly.  The cam is interpolated.

Override response
 An "MC_GetCamFollowingValue" job is not aborted by any other Motion Control job.  A new "MC_GetCamFollowingValue" job does not abort any active Motion Control jobs.

234

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.2 Cam (S7-1500T)

Parameters

The following table shows the parameters of Motion Control instruction "MC_GetCamFollowingValue":

Parameters
Cam Execute LeadingValue
Done Busy Error

Declaration INPUT INPUT INPUT

Data type
TO_Cam BOOL LREAL

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

ErrorID Value
FirstDerivative
SecondDerivative

OUTPUT WORD OUTPUT LREAL
OUTPUT LREAL
OUTPUT LREAL

Default value FALSE 0.0
FALSE FALSE FALSE
0 -
-
-

Description

Cam technology object

TRUE Start job with a positive edge

Leading value for which the following value is read

TRUE The following value was read.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID for parameter "ErrorID"

Read following value (position)

(valid when "Done" = TRUE)

First derivative of read following value

(valid when "Done" = TRUE)

Second derivative of read following value

(valid when "Done" = TRUE)

Reading a following value
To read a following value from a cam with the "MC_GetCamFollowingValue" Motion Control instruction, follow these steps:
1. Check the requirements indicated above.
2. Specify the cam and the leading value in the corresponding parameters.
3. Start the "MC_GetCamFollowingValue" job with a positive edge at parameter "Execute".
When the "Done" parameter shows the value "TRUE", the following value has been read. The following value and the derivatives are output in the "Value", "FirstDerivative" and "SecondDerivative" parameters.

See also

Section "Error detection Motion Control instructions" of the documentation "S7-1500/S71500T Motion Control Overview". (https://support.industry.siemens.com/cs/ww/en/view/109766459)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

235

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

9.3

Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

9.3.1

Override response V5: Homing and motion jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects active homing and motion jobs:

 Active job  New job

MC_Home
"Mode" = 2, 8, 10

MC_Home

A

"Mode" = 3, 5

MC_Home

A

"Mode" = 9

MC_Halt

-

MC_MoveAbsolute

MC_MoveRelative

MC_MoveVelocity

MC_MoveJog

MC_MotionInVelocity

MC_MotionInPosition

MC_MoveSuper-

-

imposed

MC_Stop

A

MC_Home ("Mode" = 3,
5)
A

MC_Halt
MC_MoveAbsolute
MC_MoveRelative
MC_MoveVelocity
MC_MoveJog A

-

-

A

A

-

-

A

A

MC_Stop

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

-

A

A

-

-

-

-

A

A

-

A

-

B

A

A

236

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

 Active job  New job
MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_LeadingValue Additive

MC_Home "Mode" = 2, 8, 10
-

MC_Home ("Mode" = 3,
5)
A -

MC_Halt MC_MoveAbsolute MC_Move-
Relative MC_Move-
Velocity MC_MoveJog
A -

MC_Stop
-

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

A

-

-

-

-

A

A

-

A

-

-

-

-

-

-

-

A The running job is aborted with "CommandAborted" = TRUE. B An "MC_Stop" job is aborted by another "MC_Stop" job with a stop response that is the same or higher. - No effect. Running job continues to be executed. 1) The status "Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE corresponds to a waiting synchronous operation. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to an active synchronous operation.

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

237

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

9.3.2

Override response V5: Synchronous operation jobs (S7-1500, S7-1500T)
The following table shows how a new Motion Control job affects the motion of the axis on active synchronous operation jobs:

 Active job  New job
MC_Home "Mode" = 3, 5 MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_MotionInVelocity MC_MotionInPosition MC_MoveSuperimposed MC_Stop MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_PhasingAbsolute MC_PhasingRelative MC_LeadingValueAdditive

MC_GearIn MC_GearInPos MC_GearInPos

MC_CamIn

MC_CamIn

waiting1)

active2)

A

-

-

MC_PhasingAbsolute
MC_PhasingRelative
-

MC_LeadingValueAdditive
-

A

-

A

-

A

A

-

A

A

-

A

A

-

-

A

A

A

A

-

A

A

A

-

-

-

-

A

-

-

-

-

-

A

A

A

A

A

-

-

-

-

A

A

-

-

A

-

-

-

A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed. 1) A waiting synchronous operation job ("Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE) does not abort any
active jobs. Abort with an "MC_Power" job is possible. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to active synchronous operation.

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

238

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

9.3.3

Override response V5: Measuring input jobs (S7-1500, S7-1500T)
The following table shows which new Motion Control jobs will override active measuring input jobs:

 Active job
 New job MC_Home "Mode" = 2, 3, 5, 8, 9, 10 MC_Home "Mode" = 0, 1, 6, 7, 11, 12 MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput

MC_MeasuringInput A A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed.

MC_MeasuringInputCyclic A A

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

239

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

9.3.4

Override response V5: Kinematics motion commands (S7-1500T)
Single axis jobs are not overridden by kinematics jobs.
The following table shows how a new Motion Control job affects active kinematics motion jobs:

 Active job  New job
MC_Home MC_MoveSuperimposed MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_Stop MC_GearIn MC_GearInPos MC_CamIn MC_MotionInVelocity MC_MotionInPosition MC_GroupStop MC_GroupInterrupt MC_GroupContinue

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame N
A

MC_GroupInterrupt MC_GroupStop

N

N

A

A

A

A

N

B

A

N

240

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Instructions (S7-1500, S7-1500T) 9.3 Override response of Motion Control jobs V5 (S7-1500, S7-1500T)

 Active job  New job
MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive MC_SetOcsFrame

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame -

MC_GroupInterrupt -

C, -

-

A The running job is aborted with "CommandAborted" = TRUE. B Running job is interrupted or resumed. C Synchronization of the OCS with the conveyor belt is aborted with "MC_SetOcsFrame" = TRUE. N Not permitted. Running job continues to be executed. The new job is rejected. - No effect. Running job continues to be executed. A new kinematics job is added to the job sequence.

MC_GroupStop N N

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

241

Appendix (S7-1500, S7-1500T)

A

A.1

Tags of the synchronous axis technology object (S7-1500, S7-

1500T)

A.1.1

Legend (S7-1500, S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

(L - linear specification R - rotary specification)

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

242

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.2

Actual values and setpoints (synchronous axis) (S7-1500, S7-1500T)
The following tags indicate the setpoint and actual values of the technology object.

Tags

Legend (Page 242)

Tag Position Velocity ActualPosition ActualVelocity ActualSpeed
Acceleration ActualAcceleration OperativeSensor ModuloCycle
ActualModuloCycle
VelocitySetpoint

Data type LREAL LREAL LREAL LREAL LREAL
LREAL LREAL UDINT DINT
DINT
LREAL

Values -

W RON RON RON RON RON

-

RON

-

RON

1 ... 4

RON

-2147483648 RON ... 2147483647

-2147483648 RON ... 2147483647

-1.0E12 ... 1.0E12

RON

Description Position setpoint Velocity setpoint/speed setpoint Actual position Actual velocity With analog setpoint = 0.0: Actual speed of the motor Setpoint acceleration Actual acceleration Operative encoder Number of modulo cycles of the setpoint
Number of modulo cycles of the actual value
Output velocity setpoint/speed setpoint

A.1.3

"Simulation" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Simulation.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags

Legend (Page 242)

Tag Simulation.
Mode

Data type Values TO_Struct_AxisSimulation UDINT 0, 1

1) Technology version V2.0: RON

W Description

RES1 Simulation mode

)

0

No simulation, normal operation

1

Simulation mode

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

243

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.4

"VirtualAxis" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.VirtualAxis.<tag name>" contains the configuration of the simulation mode. In simulation mode, you can simulate axes without a real drive in the CPU.

Tags
Tag VirtualAxis.
Mode

Legend (Page 242)
Data type Values TO_Struct_VirrtualAxis UDINT 0, 1

W Description

RON

Virtual axis

0

No virtual axis

1

Axis is always and exclusively operated as

virtual axis

A.1.5

"Actor" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Actor.<tag name>" contains the controller-side configuration of the drive.

Tags
Tag Actor.
Type

Legend (Page 242)

Data type Values

TO_Struct_Actor

DINT

0, 1

InverseDirection

BOOL

-

DataAdaption

DINT

0, 1

Efficiency

LREAL 0.0 ... 1.0

W Description

RON RES RES
RES

Drive connection

0

Analog output

1

PROFIdrive telegram

Inversion of the setpoint

FALSE No

TRUE Yes

Automatic transfer of the drive values reference speed, maximum speed and reference torque

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

Efficiency of mechanics (gear and leadscrew)

244

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag Interface. AddressIn AddressOut EnableDriveOutput
EnableDriveOutput Address DriveReadyInput
DriveReadyInput Address EnableTorqueData
TorqueDataAddress In TorqueDataAddress Out DriveParameter. ReferenceSpeed
MaxSpeed
ReferenceTorque

Data type Values

TO_Struct_ActorInterface

VREF

0 ... 65535

VREF

0 ... 65535

W
RON RON

BOOL

-

RES

VREF BOOL

0 ... 65535 -

RON RES

VREF BOOL

0 ... 65535 -

RON RES

VREF

0 ... 65535

RON

VREF

0 ... 65535

RON

TO_Struct_ActorDriveParameter LREAL 0.0 ... 1.0E12 RES

LREAL 0.0 ... 1.0E12 RES LREAL 0.0 ... 1.0E12 RES

Description
Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram or the analog setpoint "Enable output" for analog drives FALSE Disabled TRUE Enabled Address for the "Enable output" for analog setpoint
"Ready input" for analog drives The analog drive signals its readiness to receive speed setpoints. FALSE Disabled TRUE Enabled Address for the "Enable input" for analog setpoint
Torque data FALSE Disabled TRUE Enabled Input address of the supplemental telegram
Output address of the supplemental telegram
Reference value (100%) for the speed setpoint (N-set) of the drive The speed setpoint is transferred in the PROFIdrive telegram as a normalized value from -200% to 200% of the "ReferenceSpeed". For setpoint specification via an analog output, the analog output can be operated in the range from -117% to 117%, provided the drive permits this. Maximum value for the speed setpoint of the drive (Nset) (PROFIdrive: MaxSpeed  2 × ReferenceSpeed Analog setpoint: MaxSpeed  1.17 × ReferenceSpeed) Reference value (100%) for the drive torque

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

245

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.6

"TorqueLimiting" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.TorqueLimiting.<tag name>" contains the configuration of the torque limiting.

Tags

Legend (Page 242)

Tag TorqueLimiting.
LimitBase
PositionBased Monitorings
LimitDefaults. Torque Force

Data type Values

TO_Struct_TorqueLimiting

DINT

0, 1

W RES

DINT

0, 1

RES

TO_Struct_TorqueLimitingLimit Defaults
LREAL 0.0 ... 1.0E12 CAL
LREAL 0.0 ... 1.0E12 CAL

Description

Torque limiting

0

Motor side

1

Load side

Positioning and following error monitoring

0

Monitoring deactivated

1

Monitoring activated

Limiting torque Limiting force

A.1.7

"Clamping" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Clamping.<tag name>" contains the configuration of the fixed stop detection.

Tags

Legend (Page 242)

Tag
Clamping. FollowingError Deviation PositionTolerance

Data type Values

TO_Struct_Clamping

LREAL

0.001 ... 1.0E12

LREAL

0.001 ... 1.0E12

W Description
DIR Value of the following error starting from which the fixed stop is detected.
DIR Position tolerance for the clamping monitoring

246

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.8

"Sensor[1..4]" tags (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Sensor[1..4].<tag name>" contains the controller-end configuration of the encoder and the configuration of active and passive homing.

Tags

Legend (Page 242)

Tag Sensor[1..4].
Existent Type
InverseDirection System
MountingMode DataAdaption

Data type Values

W

ARRAY [1..4] OF TO_Struct_Sensor/TO_Struct_ ExternalEncoder_Sensor

BOOL

-

RON

DINT

0 ... 2

RON

BOOL

-

DINT

0, 1

RES RES

DINT

0 ... 2

RES

DINT

0, 1

RES

Description

Displaying created encoders

Encoder type

0

"INCREMENTAL"

Incremental

1

"ABSOLUTE"

Absolute

2

"CYCLIC_ABSOLUTE"

Cyclic absolute

Inversion of the actual value

FALSE No

TRUE Yes

Encoder system

0

"LINEAR"

Linear encoder

1

"ROTATORY"

Rotary encoder

Mounting type of encoder

0

On motor shaft

1

On load side

2

External measuring system

Automatic transfer of the drive values reference speed, maximum speed and reference torque in the device

0

No automatic transfer, manual configuration of

values

1

Automatic transfer of values configured in the

drive to the configuration of the technology

object

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

247

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag Interface. AddressIn AddressOut Number Parameter. Resolution StepsPerRevolution FineResolutionXist1 FineResolutionXist2 Determinable Revolutions
DistancePer Revolution BehaviorGx_XIST1
ActiveHoming. Mode
SideInput
Direction
DigitalInputAddress HomePositionOffset SwitchLevel

Data type Values

W

TO_Struct_SensorInterface

VREF

0 ... 65535

RON

VREF

0 ... 65535

RON

UDINT 1 ... 2

RON

TO_Struct_SensorParameter

LREAL

-1.0E12 ... 1.0E12

RES

UDINT 1 ... 8388608 RES

UDINT 0 ... 31

RES

UDINT 0 ... 31

RES

UDINT 0 ... 8388608 RES

LREAL DINT

0.0 ... 1.0E12 RES

-

RES

TO_Struct_SensorActiveHoming

DINT

0 ... 2

RES

BOOL

-

CAL

DINT

0, 1

CAL

VREF LREAL
BOOL

0 ... 65535
-1.0E12 ... 1.0E12
-

RON CAL
RES

Description

Input address for the PROFIdrive telegram Output address for the PROFIdrive telegram Number of the encoder in the telegram

Resolution of a linear encoder (offset between two encoder pulses)

Increments per rotary encoder revolution

Number of bits for fine resolution Gx_XIST1 (cyclic actual encoder value)

Number of bits for fine resolution Gx_XIST2 (absolute value of encoder)

Number of differentiable encoder revolutions for a multiturn absolute encoder

(For a single-turn absolute encoder = 1; for an incremental encoder = 0)

Load distance per revolution of an externally mounted encoder

Evaluation of Gx_XIST1 bits

0

Based on the bits of the encoder resolution

1

32-bit value of the encoder value

Homing mode

0

Use zero mark via PROFIdrive telegram

1

Zero mark via PROFIdrive telegram and refer-

ence output cam

2

Use homing mark via digital input

Side of the digital input for active homing

FALSE Negative side

TRUE Positive side

Homing direction/approach direction on the homing mark

0

Positive homing direction

1

Negative homing direction

Address of digital input

Home position offset

Signal level that is present at the digital input when homing mark is approached
FALSE Low level
TRUE High level

248

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag PassiveHoming. Mode
SideInput
Direction
DigitalInputAddress SwitchLevel

Data type Values

W

TO_Struct_SensorPassiveHoming

DINT

0 ... 2

RES

BOOL

-

CAL

DINT

0 ... 2

CAL

VREF BOOL

0 ... 65535 -

RON RES

Description

Homing mode

0

Use zero mark via PROFIdrive telegram

1

Zero mark via PROFIdrive telegram and refer-

ence output cam

2

Use homing mark via digital input

Side of the digital input for passive homing

FALSE Negative side

TRUE Positive side

Homing direction/approach direction on the homing mark

0

Positive homing direction

1

Negative homing direction

2

Current homing direction

Address of digital input

Signal level that is present at the digital input when homing mark is approached

FALSE Low level

TRUE High level

A.1.9

"CrossPlcSynchronousOperation" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.CrossPlcSynchronousOperation.<tag name>" contains the configuration of the cross-PLC synchronous operation.

Tags

Legend (Page 242)

Tag CrossPlcSynchronous Operation.
Interface[1..1].
EnableLeading ValueOutput
AddressOut LocalLeadingValue DelayTime

Data type Values

W

TO_Struct_CrossPlcSynchronous Operation

ARRAY [1..1] of TO_Struct_CrossPlcLeading ValueInterface

BOOL

-

RON

VREF LREAL

-

RON

0.0 ... 1.0E12 DIR

Description
Provide cross-PLC leading value FALSE No TRUE Yes Output address for the leading value telegram Delay time of leading value output at the local following axes

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

249

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.10

"Extrapolation" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Extrapolation.<tag name>" contains the configuration of the actual value extrapolation.

Tags

Legend (Page 242)

Tag

Data type Values

W Description

Extrapolation.
LeadingAxis DependentTime

TO_Struct_Extrapolation LREAL -

RON Extrapolation time component (caused by leading axis) Results from the following times:

· Time of actual value acquisition for the leading axis

· Interpolator cycle clock
· Time of position filter of actual value extrapolation (T1 + T2)

FollowingAxis DependentTime

LREAL

0.0 ... 1.0E12 DIR Extrapolation time component (caused by following axis) Results from the following times:

· For a following axis with set velocity precontrol:
­ Communication cycle ­ Interpolator cycle clock ­ Speed control loop substitute time for the follow-
ing axis ­ Output delay time of the setpoint at the following
axis
· For a following axis without velocity precontrol:
­ Communication cycle ­ Interpolator cycle clock ­ Position control loop equivalent time
(1/Kv from "<TO>.PositionControl.Kv") ­ Output delay time of the setpoint at the following
axis

Settings. SystemDefined Extrapolation
ExtrapolatedVelocity Mode

TO_Struct_ExtrapolationSettings

DINT

0, 1

RES

DINT

0, 1

RES

Leading axis dependent time

0

Not effective

1

Effective

Effective velocity value for the synchronization function

0

"FilteredVelocity"

Leading value velocity from filtered actual velocity

1

"VelocityByDifferentiation"

The leading value velocity results from the differentiation of the extrapolated leading value position

250

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag PositionFilter.
T1 T2 VelocityFilter.
T1 T2 VelocityTolerance.
Range Hysteresis.
Value

Data type Values

W

TO_Struct_ExtrapolationPosition Filter

LREAL 0.0 ... 1.0E12 DIR

LREAL 0.0 ... 1.0E12 DIR

TO_Struct_ExtrapolationVelocity Filter

LREAL 0.0 ... 1.0E12 DIR

LREAL 0.0 ... 1.0E12 DIR

TO_Struct_ExtrapolationVelocity Tolerance

LREAL 0.0 ... 1.0E12 DIR

TO_Struct_ExtrapolationHysteresis

LREAL 0.0 ... 1.0E12 DIR

Description
Position filter time constant T1 Position filter time constant T2
Velocity filter time constant T1 Velocity filter time constant T2
Tolerance band width for velocity Hysteresis of the extrapolated actual position value

A.1.11

"LoadGear" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.LoadGear.<tag name>" contains the configuration of the load gear.

Tags

Legend (Page 242)

Tag LoadGear.
Numerator
Denominator

Data type Value range

TO_Struct_LoadGear

UDINT

1 ... 4294967295

UDINT

1 ... 4294967295

W Description RES Load gear counter RES Load gear denominator

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

251

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.12

"Properties" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Properties.<tag name>" contains the configuration of the type of axis or motion.

Tags
Tag Properties.
MotionType

Legend (Page 242)

Data type Value range

TO_Struct_Properties

DINT

0, 1

W Description

RON

Indication of axis type or motion type

0

Linear axis or motion

1

Rotary axis or motion

A.1.13

"Units" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Units.<tag name>" shows the set technological units.

Tags
Tag Units.
LengthUnit

Legend (Page 242)

Data type Values

W

TO_Struct_Units/TO_Struct_ ExternalEncoder_Units

UDINT -

RON

Description
Unit for position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1004 rad 1005 ° 1537 °1)

252

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag VelocityUnit
TimeUnit TorqueUnit ForceUnit UnitFactor

Data type Values UDINT -
UDINT UDINT UDINT UDINT -

W RON
RON RON RON RON

Description Unit for velocity 1521 °/s 1539 °/s1) 1522 °/min 1086 rad/s 1523 rad/min 1062 mm/s 1538 mm/s1) 1061 m/s 1524 mm/min 1525 m/min 1526 mm/h 1063 m/h 1527 km/min 1064 km/h 1066 in/s 1069 in/min 1067 ft/s 1070 ft/min 1075 mi/h Unit for time 1054 s Unit for torque 1126 Nm 1128 kNm 1529 lbf in (pound-force-inch) 1530 lbf ft 1531 ozf in (ounce-force-inch) 1532 ozf ft 1533 pdl in (poundal-inch) 1534 pdl ft Unit for force 1120 N 1122 kN 1094 lbf (pound-force) 1093 ozf (ounce-force) 1535 pdl (poundals) Factor for internal conversion in the high-resolution units.

1) Position values with higher resolution or six decimal places

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

253

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.14

"Mechanics" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Mechanics.<tag name>" contains the configuration of the mechanics.

Tags
Tag Mechanics.
LeadScrew

Legend (Page 242)

Data type Value range TO_Struct_Mechanics LREAL 0.0 ... 1.0E12

W Description RES Leadscrew pitch

A.1.15

"Modulo" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Modulo.<tag name>" contains the configuration of the modulo function.

Tags
Tag Modulo.
Enable
Length StartValue

Legend (Page 242)

Data type Values

TO_Struct_Modulo

BOOL

-

LREAL LREAL

0.001 ... 1.0E12
-1.0E12 ... 1.0E12

W Description

RES RES

FALSE Modulo conversion disabled TRUE Modulo conversion enabled When modulo conversion is enabled, a check is made for modulo length > 0.0 Modulo length

RES Modulo start value

254

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.16

"DynamicLimits" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicLimits.<tag name>" contains the configuration of the dynamic limits. During Motion Control, no dynamic values greater than the dynamic limits are permitted. If you have specified greater values in a Motion Control instruction, then motion is performed using the dynamic limits, and a warning is indicated (alarm 501 to 503 - Dynamic values are limited).

Tags

Legend (Page 242)

Tag DynamicLimits.
MaxVelocity Velocity MaxAcceleration MaxDeceleration MaxJerk

Data type Values TO_Struct_DynamicLimits LREAL 0.0 ... 1.0E12 LREAL 0.0 ... 1.0E12 LREAL 0.0 ... 1.0E12 LREAL 0.0 ... 1.0E12 LREAL 0.0 ... 1.0E12

W Description

RES DIR DIR DIR DIR

Maximum permissible velocity of the axis Current maximum velocity of the axis Maximum permissible acceleration of the axis Maximum permissible deceleration of the axis Maximum permissible jerk on the axis

A.1.17

"DynamicDefaults" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicDefaults.<tag name>" contains the configuration of the dynamic defaults. These settings will be used when you specify a dynamic value less than 0.0 in a Motion Control instruction (exceptions: "MC_MoveJog.Velocity", "MC_MoveVelocity.Velocity"). Changes to the default dynamic values will be applied at the next positive edge at the "Execute" parameter of a Motion Control instruction.

Tags

Legend (Page 242)

Tag DynamicDefaults.
Velocity Acceleration Deceleration Jerk Emergency Deceleration

Data type Values

W

TO_Struct_DynamicDefaults

LREAL 0.0 ... 1.0E12 CAL

LREAL 0.0 ... 1.0E12 CAL

LREAL 0.0 ... 1.0E12 CAL

LREAL 0.0 ... 1.0E12 CAL

LREAL 0.0 ... 1.0E12 DIR

Description
Default velocity Default acceleration Default deceleration Default jerk Emergency stop deceleration

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

255

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.18

"PositionLimits_SW" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionLimits_SW.<tag name>" contains the configuration of position monitoring with software limit switches. Software limit switches are used to limit the operating range of a synchronous axis.

Tags

Legend (Page 242)

Tag PositionLimits_SW.
Active
MinPosition
MaxPosition

Data type Values

W

TO_Struct_PositionLimitsSW

BOOL

-

DIR

LREAL -1.0E12 ...

DIR

1.0E12

LREAL -1.0E12 ...

DIR

1.0E12

Description
FALSE Monitoring deactivated TRUE Monitoring activated Position of negative software limit switches
Position of positive software limit switches ("MaxPosition" > "MinPosition")

A.1.19

"PositionLimits_HW" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionLimits_HW.<tag name>" contains the configuration of position monitoring with hardware limit switches. Hardware limit switches are used to limit the traversing range of a synchronous axis.

Tags

Legend (Page 242)

Tag PositionLimits_HW.
Active
MinSwitchLevel
MinSwitchAddress MaxSwitchLevel
MaxSwitchAddress

Data type Values

W

TO_Struct_PositionLimitsHW

BOOL

-

RES

BOOL

-

RES

VREF BOOL

0 ... 65535 -

RON RES

VREF

0 ... 65535

RON

Description
FALSE Monitoring deactivated TRUE Monitoring activated With "Active", both (negative and positive) hardware limit switches are activated or deactivated. Level selection for activation of the negative hardware limit switch FALSE Low level (Low active) TRUE High level (High active) Address for the negative hardware limit switch Level selection for activation of the positive hardware limit switch FALSE Low level (Low active) TRUE High level (High active) Address for the positive hardware limit switch

256

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.20

"Homing" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Homing.<tag name>" contains the configuration for homing the TO.

Tags

Legend (Page 242)

Tag Homing.
AutoReversal ApproachDirection ApproachVelocity
ReferencingVelocity
HomePosition

Data type Values

W

TO_Struct_Homing / TO_Struct_ExternalEncoder_ Homing

BOOL

-

RES

BOOL

-

CAL

LREAL LREAL LREAL

Linear:

CAL

0.0 ...

10000.0 mm/s

Rotary: 0.0 ... 360000.0 °/s

Linear:

CAL

0.0 ...

1000.0 mm/s

Rotary: 0.0 ... 36000.0 °/s

-1.0E12 ...

CAL

1.0E12

Description
Reversal at the hardware limit switches FALSE No TRUE Yes Direction of approach to the homing position switch FALSE Positive direction TRUE Negative direction Approach velocity Velocity during active homing at which the reference cam and home position are approached.
Homing velocity Velocity during active homing at which the home position is approached.
Home position

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

257

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.21

"Override" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.Override.<tag name>" contains the configuration of override parameters. The override parameters are used to apply a correction percentage to default values. An override change takes effect immediately, and is performed with the dynamic settings in effect in the Motion Control instruction.

Tags
Tag Override.
Velocity

Legend (Page 242)

Data type Values

W Description

TO_Struct_Override

LREAL 0.0 ... 200.0% DIR Velocity or speed override

Percentage correction of the velocity/speed

258

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.22

"PositionControl" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositionControl.<tag name>" contains the settings of position control.

Tags

Legend (Page 242)

Tag PositionControl.
Kv Kpc
EnableDSC
SmoothingTimeByChangeDifference
InitialOperativeSensor

Data type Values

W

TO_Struct_PositionControl

LREAL 0.0 ...

DIR

2147480.0

LREAL 0.0 ... 150.0 % DIR

BOOL

-

RES

LREAL 0.0 ... 1.0E12 s DIR

UDINT 1 ... 4

RES

Description
Proportional gain of the closed loop position control ("Kv" > 0.0) Velocity precontrol of the position control Recommended setting: · Isochronous drive connection via PROFIdrive:
100.0% · Non-isochronous drive connection via PROFIdrive:
0.0 to 100.0% · Analog drive connection:
0.0 to 100.0% Dynamic Servo Control (DSC) FALSE DSC disabled TRUE DSC activated DSC is only possible with one of the following PROFIdrive telegrams: · Standard telegram 5 or 6 · SIEMENS telegram 105 or 106
Smoothing time for the manipulated variable for switching operations, for example: · Encoder switchover · Change in P-gain ("Kv") · Switchover to emergency stop ramp
Active sensor after initialization of the axis (sensor number 1 to 4) This encoder is used after startup of the CPU and after a restart of the technology object. At an operating mode transition from STOP  RUN of the CPU (without restart of the technology object), the encoder that was also active before the STOP is still being used.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

259

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag ControlDifference Quantization. Mode
Value

Data type Values

W

TO_Struct_PositionDifference Quantification

DINT

-

RES

LREAL

0.001 ... 1.0E12

RES

Description

Type of quantification

Configuration of a quantization when a drive with stepper motor interface is connected

0

No quantification

1

Quantization corresponding to encoder

resolution

2

Quantization to a direct value

(configuration is performed using the parameter view (data structure))

Value of quantification

Configuration of a value for quantization to a direct value (<TO>.PositionControl.ControlDifferenceQuantization. Mode = 2)

(configuration is performed using the parameter view (data structure))

A.1.23

"DynamicAxisModel" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.DynamicAxisModel.<tag name>" contains the settings of the balancing filter.

Tags

Legend (Page 242)

Tag DynamicAxisModel.
VelocityTimeConstant AdditionalPositionTimeConstant

Data type Values

W

TO_Struct_DynamicAxisModel

LREAL LREAL

0.0 ... 1.0E12 DIR 0.0 ... 1.0E12 DIR

Description
Time constants for braking ramp generation with alarm response "Brake with emergency stop ramp" Speed control loop substitute time [s] Additive position control loop substitute time [s]

260

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.24

"FollowingError" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.FollowingError.<tag name>" contains the configuration of the dynamic following error monitoring.
If the permissible following error is exceeded, then technology alarm 521 is output, and the technology object is disabled (alarm reaction: remove enable).
When the warning level is reached, a warning is output (technology alarm 522).

Tags

Legend (Page 242)

Tag FollowingError.
EnableMonitoring MinValue
MaxValue
MinVelocity WarningLevel

Data type Values

TO_Struct_FollowingError

BOOL

-

LREAL
LREAL
LREAL LREAL

Linear: 0.0 ... 1.0E12 Rotary: 0.001 ... 1.0E12 Linear: 0.0 ... 1.0E12 Rotary: 0.002 ... 1.0E12 0.0 ... 1.0E12
0.0 ... 100.0

W Description

RES DIR

FALSE Following error monitoring deactivated
TRUE Following error monitoring enabled
Permissible following error at velocities below the value of "MinVelocity"

DIR Maximum permissible following error, which may be reached at the maximum velocity.

DIR "MinValue" is permissible below this velocity and is held constant.
DIR Warning level
Percentage value relative to the valid maximum following error

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

261

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.25

"PositioningMonitoring" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.PositioningMonitoring.<tag name>" contains the configuration of position monitoring at the end of a positioning motion.
If the actual position value at the end of a positioning motion is reached within the tolerance time and remains in the positioning window for the minimum dwell time, then "<TO>.StatusWord.X5 (Done)" is set in the technology data block. This completes a Motion Control job.
If the tolerance time is exceeded, then technology alarm 541 "Positioning monitoring" with supplemental value 1: "Target range not reached" is displayed.
If the minimum dwell time is not met, then technology alarm 541 "Positioning monitoring" with supplemental value 2: "Exit target range again" is displayed.

Tags

Legend (Page 242)

Tag PositioningMonitoring.
ToleranceTime
MinDwellTime

Data type Values

W

TO_Struct_PositionMonitoring

LREAL 0.0 ... 1.0E12 DIR

LREAL 0.0 ... 1.0E12 DIR

Description
Tolerance time Maximum permitted duration from reaching of velocity setpoint zero until entrance into the positioning window Minimum dwell time in positioning window

Window

LREAL 0.0 ... 1.0E12 DIR Positioning window

A.1.26

"StandstillSignal" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StandstillSignal.<tag name>" contains the configuration of the standstill signal.
If the actual velocity value is below the velocity threshold, and does not exceed it during the minimum dwell time, then the standstill signal "<TO>.StatusWord.X7 (Standstill)" is set.

Tags

Legend (Page 242)

Tag StandstillSignal.
VelocityThreshold
MinDwellTime

Data type Values

W Description

TO_Struct_StandstillSignal

Configuration for the standstill signal

LREAL 0.0 ... 1.0E12 DIR Velocity threshold

If velocity is below this threshold, the minimum dwell time begins.

LREAL 0.0 ... 1.0E12 DIR Minimum dwell time

262

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.27

"StatusProvidedLeadingValue" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusProvidedLeadingValue.<tag name>" contains the provided leading value with leading value delay of the cross-PLC synchronous operation.

Tags

Legend (Page 242)

Tag StatusProvidedLeading Value.
DelayedLeadingValue Position
Velocity
Acceleration

Data type Values

W

TO_Struct_StatusProvidedLeading Value

TO_Struct_ProvidedLeadingValue

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description Provided leading value
Leading value with leading value delay Position
Velocity
Acceleration

A.1.28

"StatusPositioning" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusPositioning.<tag name>" indicates the status of a positioning motion.

Tags

Legend (Page 242)

Tag StatusPositioning.
Distance
TargetPosition
TargetPositionModuloCycle FollowingError
SetpointExecutionTime

Data type Values

W

TO_Struct_StatusPositioning

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

DINT

-2147483648 RON ... 2147483647

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description
Distance to the target position
Target position
Number of modulo cycles to target position with positioning motions Current following error
Setpoint execution time of the axis (Results from TIpo, Tvtc or 1/kv, TSend and TO of the axis)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

263

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.29

"StatusDrive" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusDrive.<tag name>" indicates the status of the drive.

Tags
Tag StatusDrive.
Disabled InOperation

Legend (Page 242)

Data type Values

TO_Struct_StatusDrive

BOOL

-

BOOL

-

CommunicationOK

BOOL

-

Error AdaptionState

BOOL DINT

0 ... 4

W Description

RON RON
RON RON RON

FALSE Drive not switched off

TRUE Drive switched off

Operational status of the drive

FALSE Drive not ready

Setpoints will not be executed.

TRUE Drive ready

Setpoints can be executed.

Cyclic BUS communication between controller and drive

FALSE Not established

TRUE Established

FALSE No drive error

TRUE Drive error

Status of automatic data transfer of drive parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

264

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.30

"StatusServo" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusServo.<tag name>" indicates the status for the balancing filter.

Tags

Legend (Page 242)

Tag StatusServo.
BalancedPosition ControlDifference

Data type Values TO_Struct_StatusServo LREAL LREAL -

W Description
RON Position after the balancing filter RON Control error

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

265

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.31

"StatusSensor[1..4]" tags (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusSensor[1..4].<tag name>" indicates the status of the measuring system.

Tags

Legend (Page 242)

Tag StatusSensor[1..4].
State
CommunicationOK Error AbsEncoderOffset Control Position Velocity AdaptionState
ModuloCycle

Data type Values

Array [1..4] OF TO_Struct_StatusSensor

DINT

0 ... 2

W RON

BOOL

-

RON

BOOL

-

LREAL -

BOOL

-

LREAL LREAL DINT

0 ... 4

RON RON
RON RON RON RON

DINT

-2147483648 RON ... 2147483647

Description

Status of the actual encoder value

0

"NOT_VALID"

Invalid

1

"WAITING_FOR_VALID"

Waiting for "Valid" status

2

"VALID"

Valid

Cyclic BUS communication between controller and encoder

FALSE Not established

TRUE Established

FALSE No error in the measuring system

TRUE Error in the measuring system.

Home point offset to the value of an absolute value encoder.

The value will be retentively stored in the CPU.

FALSE Encoder is not active

TRUE Encoder is active

Encoder position

Encoder velocity

Status of automatic data transfer of encoder parameters

0

"NOT_ADAPTED"

Data not transferred

1

"IN_ADAPTION"

Data transfer in progress

2

"ADAPTED"

Data transfer complete

3

"NOT_APPLICABLE"

Data transfer not selected, not possible

4

"ADAPTION_ERROR"

Error during data transfer

Number of modulo cycles

266

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.32

"StatusExtrapolation" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusExtrapolation.<tag name>" indicates the status of the actual value extrapolation.

Tags

Legend (Page 242)

Tag StatusExtrapolation.
FilteredPosition
FilteredVelocity
ExtrapolatedPosition
ExtrapolatedVelocity

Data type Values

W

TO_Struct_StatusExtrapolation

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description Position after position filter Velocity after velocity filter and tolerance band Extrapolated position Extrapolated velocity

A.1.33

"StatusSynchronizedMotion" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusSynchronizedMotion.<tag name>" indicates the status of the synchronous operation.

Tags

Legend (Page 242)

Tag StatusSynchronizedMotion.
FunctionState
WaitingFunctionState

Data type Value range W

TO_Struct_StatusSynchronized Motion

DINT

0 ... 3

RON

DINT

0 ... 3

RON

Description

Indication of which synchronous operation function is active

0

No synchronous operation active

1

Gearing ("MC_GearIn")

2

Gearing with specified synchronous posi-

tions ("MC_GearInPos")

3

Camming ("MC_CamIn")

Indication of which synchronous operation function is waiting

0

No synchronous operation waiting

1

Reserved

2

Gearing with specified synchronous posi-

tions waiting ("MC_GearInPos")

3

Camming waiting ("MC_CamIn")

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

267

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag PhaseShift ActualMaster
ActualCam MasterOffset MasterScaling SlaveOffset SlaveScaling EffectiveLeadingValue.
Position Velocity Acceleration StatusWord. Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5 ... Bit 31

Data type LREAL
DB_ANY

Value range
-1.0E12 ... 1.0E12
0 ... 65535

W RON
RON

DB_ANY 0 ... 65535

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

TO_Struct_EffectiveLeadingValue

LREAL LREAL LREAL DWORD BOOL

-1.0E12 ... 1.0E12
-1.0E12 ... 1.0E12
-1.0E12 ... 1.0E12
-
-

RON RON RON RON RON

BOOL

-

RON

BOOL

-

RON

BOOL

-

RON

BOOL

-

RON

BOOL

-

RON

Description Current absolute leading value shift

When a synchronous operation job is started, the number of the technology data block of the currently used leading axis is displayed.

0

Synchronous operation inactive

Cam that is currently being used for camming

Current shift of the leading value range of the cam

Current scaling of the leading value range of the cam

Current shift of the following value range of the cam

Current scaling of the following value range of the cam

Effective leading value of the synchronous operation function
Position

Velocity

Acceleration

Status information of synchronous operation "MaxVelocityExceeded" Configured maximum velocity is exceeded during synchronous operation. "MaxAccelerationExceeded" Configured maximum acceleration is exceeded during synchronous operation. "MaxDecelerationExceeded" Configured maximum deceleration is exceeded during synchronous operation. "InSimulation" Simulation of synchronous operation FALSE Not simulated TRUE Simulated "LeadingValueAdditiveCommand" Additive leading value via "MC_LeadingValueAdditive" FALSE No additive leading value active TRUE Additive leading value active Reserved

268

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.34

"StatusKinematicsMotion" tag (synchronous axis) (S7-1500, S7-1500T)
The "<TO>.StatusKinematicsMotion" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "MaxDecelerationExceeded") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags

Legend (Page 242)

Tag StatusKinematicsMotion
Bit 0

Data type DWORD -

Values -

Bit 1

-

-

Bit 2

-

-

W RON -
-
-

Description

Status information of the technology object

"MaxVelocityExceeded"

0

The kinematics technology object calculated a

lower velocity setpoint than the maximum ve-

locity on the axis.

1

The kinematics technology object calculated a

higher velocity setpoint than the maximum

velocity on the axis.

"MaxAccelerationExceeded"

0

The kinematics technology object calculated a

lower setpoint acceleration calculated than the

maximum acceleration of the axis.

1

The kinematics technology object calculated a

higher setpoint acceleration than the maximum

acceleration of the axis.

"MaxDecelerationExceeded"

0

The kinematics technology object calculated a

lower setpoint deceleration than the maximum

deceleration of the axis.

1

The kinematics technology object calculated a

lower setpoint deceleration than the maximum

deceleration of the axis.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

269

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.35

"StatusTorqueData" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusTorqueData.<tag name>" indicates the status of the torque data.

Tags

Legend (Page 242)

Tag StatusTorqueData.
CommandAdditive TorqueActive
CommandTorque RangeActive
ActualTorque

Data type Value range W

TO_Struct_StatusTorqueData

DINT

0, 1

RON

DINT

0, 1

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description

Additive setpoint torque

0

Inactive

1

Active

Torque limits B +, B-

0

Inactive

1

Active

Actual torque of the axis

A.1.36

"StatusMotionIn" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.StatusMotionIn.<tag name>" indicates the status of the "MotionIn" function.

Tags

Legend (Page 242)

Tag StatusMotionIn.
FunctionState

Data type Value range

TO_Struct_StatusMotionIn

DINT

0 ... 2

W Description

RON 0 1 2

No "MotionIn" function active "MC_MotionInVelocity" active "MC_MotionInPosition" active

270

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.37

"StatusWord" tag (synchronous axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 5 "HomingDone") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag StatusWord
Bit 0

Legend (Page 242)

Data type DWORD -

Values -

Bit 1 Bit 2 Bit 3

-

-

-

-

-

-

Bit 4 Bit 5 Bit 6

-

-

-

-

-

-

Bit 7

-

-

W RON -
-
-
-
-

Description

Status information of the technology object

"Enable"

Enable status

0

The technology object is disabled.

1

The technology object has been enabled.

"Error"

0

No error is present.

1

An error is present.

"RestartActive"

0

No restart is active.

1

A restart is active. The technology object is

being reinitialized.

"OnlineStartValuesChanged"

0

The restart tags are unchanged.

1

The restart tags have been changed. For the

changes to be applied, the technology object

must be reinitialized.

"ControlPanelActive"

0

The axis control panel is deactivated.

1

The axis control panel is active.

"HomingDone"

Homing status

0

The technology object is not homed.

1

The technology object is homed.

"Done"

0

A motion job is in progress or the axis control

panel is activated.

1

No motion job is in progress and the axis con-

trol panel is deactivated.

"Standstill"

Standstill signal

0

The axis is in motion.

1

The axis is at a standstill.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

271

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Bit 14 Bit 15
Bit 16
Bit 17
Bit 18
Bit 19

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

"PositioningCommand"

0

No positioning job is active.

1

A positioning job is active

("MC_MoveRelative","MC_MoveAbsolute").

-

"JogCommand"

0

No "MC_MoveJog" job is active.

1

An "MC_MoveJog" job is running.

-

"VelocityCommand"

0

No "MC_MoveVelocity" job is active.

1

An "MC_MoveVelocity" job is running.

-

"HomingCommand"

0

No "MC_Home" job is in progress.

1

An "MC_Home" job is being processed.

-

"ConstantVelocity"

0

The axis is accelerated or decelerated.

1

The setpoint velocity is reached. A constant

velocity setpoint is output.

-

"Accelerating"

0

No acceleration operation is active.

1

An acceleration operation is active.

-

"Decelerating"

0

No deceleration process is active.

1

A deceleration operation is active.

-

"SWLimitMinActive"

0

No negative software limit switch was ap-

proached.

1

A negative software limit switch was reached

or exceeded.

-

"SWLimitMaxActive"

0

No positive software limit switch was ap-

proached.

1

A positive software limit switch was reached or

exceeded.

-

"HWLimitMinActive"

0

No negative hardware limit switch was ap-

proached.

1

A negative hardware limit switch was reached

or exceeded.

-

"HWLimitMaxActive"

0

No positive hardware limit switch was ap-

proached.

1

A positive hardware limit switch was reached

or exceeded.

-

Reserved

272

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Tag Bit 20 Bit 21
Bit 22
Bit 23 Bit 24
Bit 25 Bit 26 Bit 27
Bit 28 Bit 29 Bit 30 Bit 31

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Data type -

Values -

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

Reserved

-

"Synchronizing"

0

The axis does not synchronize to a leading

value.

1

The axis synchronizes to a leading value.

-

"Synchronous"

0

The axis moves asynchronous to a leading

value.

1

The axis moves synchronously to a leading

value.

-

"SuperimposedMotionCommand"

0

No overlaid movement is active.

1

An overlaid movement is running.

-

"PhasingCommand"

0

No Motion Control instruction for leading value

shift is active.

1

A Motion Control instruction for leading value

shift is active.

-

"AxisSimulation"

0

The simulation is not running.

1

The simulation is active.

-

"TorqueLimitingCommand"

0

No "MC_TorqueLimiting" job is active.

1

An "MC_TorqueLimiting" job is running.

-

"InLimitation"

0

The drive does not operate at the torque limit.

1

The drive operates at least at the threshold

value (default 90%) of the torque limit.

-

"NonPositionControlled"

0

The axis is in position-controlled mode.

1

The axis is not in position-controlled mode.

-

"KinematicsMotionCommand"

0

The axis is not used for a kinematics job.

1

The axis is used for a kinematics job.

-

"InClamping"

0

The axis is not clamped at a fixed stop.

1

The axis is clamped at a fixed stop.

-

"MotionInCommand"

0

No "MotionIn" job is active.

1

An "MotionIn" job is running.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

273

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.38

"StatusWord2" tag (synchronous axis) (S7-1500, S7-1500T)
The "<TO>.StatusWord2" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 0 "StopCommand") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord2
Bit 0
Bit 1 ... Bit 31

Legend (Page 242)

Data type DWORD BOOL

Value range -

BOOL

-

W RON RON
RON

Description

Status information of the technology object

"StopCommand"

0

No "MC_Stop" job is active.

1

An "MC_Stop" job is running. The technology

object is disabled.

Reserved

A.1.39

"ErrorWord" tag (synchronous axis) (S7-1500, S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag ErrorWord
Bit 0 Bit 1
Bit 2

Legend (Page 242)

Data type DWORD -

Values -

-

-

-

-

W RON -
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use

274

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Tag Bit 3
Bit 4 Bit 5 Bit 6
Bit 7
Bit 8 Bit 9 Bit 10
Bit 11 Bit 12 Bit 13 Bit 14
Bit 15 Bit 16 ... Bit 31

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W Description

-

"CommandNotAccepted"

Job cannot be executed

A Motion Control instruction cannot be executed because the necessary conditions are not met.

-

"DriveFault"

Error in drive

-

"SensorFault"

Error in encoder system

-

"DynamicError"

Specified dynamic values are limited to permissible values.

-

"CommunicationFault"

Communication error

Missing or faulty communication.

-

"SWLimit"

Software limit switch reached or overtraveled.

-

"HWLimit"

Hardware limit switch reached or overtraveled.

-

"HomingError"

Error during homing operation

The homing cannot be completed.

-

"FollowingErrorFault"

Following error limits exceeded

-

"PositioningFault"

Positioning error

-

"PeripheralError"

Error accessing a logical address

-

"SynchronousError"

Error during synchronous operation

The leading axis specified in the Motion Control instruction was not configured as a possible leading axis.

-

"AdaptionError"

Error in automatic data transfer

-

Reserved

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

275

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.40

"ErrorDetail" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 242)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0 ... 5

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

1

Stop with current dynamic values

2

Stop with maximum dynamic values

3

Stop with emergency stop ramp

4

Remove enable

5

Track setpoints

276

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

A.1.41

"WarningWord" tag (synchronous axis) (S7-1500, S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 13 "PeripheralWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tag
Tag WarningWord
Bit 0 Bit 1

Legend (Page 242)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5 Bit 6
Bit 7
Bit 8 Bit 9 Bit 10
Bit 11

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. "DriveWarning" Error in drive "SensorWarning" Error in encoder system "DynamicWarning" Specified dynamic values are limited to permissible values. "CommunicationWarning" Communication error Missing or faulty communication. "SWLimitMin" "SWLimitMax" "HomingWarning" Error during homing operation The homing cannot be completed. "FollowingErrorWarning" Warning limit of following error monitoring reached/exceeded

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

277

Appendix (S7-1500, S7-1500T) A.1 Tags of the synchronous axis technology object (S7-1500, S7-1500T)

Tag Bit 12 Bit 13 Bit 14
Bit 15 Bit 16... Bit 31

Data type Values

-

-

-

-

-

-

-

-

-

-

W Description

-

"PositioningWarning"

Positioning error

-

"PeripheralWarning"

Error accessing a logical address

-

"SynchronousWarning"

Error during synchronous operation

The leading axis specified in the Motion Control instruction was not configured as a possible leading axis.

-

"AdaptionWarning"

Error in automatic data transfer

-

Reserved

A.1.42

"ControlPanel" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.ControlPanel.<tag name>" contains no user-relevant data. This tag structure is internally used.

A.1.43

"InternalToTrace" tag (synchronous axis) (S7-1500, S7-1500T)
The tag structure "<TO>.InternalToTrace.<tag name>" contains no user-relevant data. This tag structure is internally used.

278

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2

Tags of the cam technology object (S7-1500T)

A.2.1

Legend (S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

279

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.2

"Point[1..1000]" tag (cam) (S7-1500T)
The tag structure "<TO>.Point[1..1000].<tag name>" contains the defined points of the cam.

Tags
Tag Point[1..1000].
x y

Legend (Page 279)

Data type Values

W Description

ARRAY [1..1000] OF TO_Cam_Struct_PointData

LREAL

-1.0E12 ... 1.0E12

CAL Value of the point in the definition range

LREAL

-1.0E12 ... 1.0E12

CAL Value of the point in the range of the function

A.2.3

"ValidPoints[1..1000]" tag (cam) (S7-1500T)
The tag structure "<TO>.ValidPoint[1-1000].<tag name>" shows the validity of the defined points of the cam.

Tags

Legend (Page 279)

Tag ValidPoint[1..1000].
ValidPoint

Data type
ARRAY [1..1000] OF BOOL
BOOL

Values -

W Description
CAL Indicates whether the defined point is valid. FALSE Invalid TRUE Valid

280

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.4

"Segment[1..50]" tag (cam) (S7-1500T)
The tag structure "<TO>.Segment[1..50].<tag name>" contains the defined segments of the cam.

Tags

Legend (Page 279)

Tag Segment[1..50].
xmin xmax a0 a1 a2 a3 a4 a5 a6 sineAmplitude sinePeriod sinePhase

Data type Values

W

ARRAY [1..50] OF TO_Cam_Struct_SegmentData

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

LREAL -1.0E12 ...

CAL

1.0E12

Description
Start coordinates of the segment End coordinates of the segment Coefficient A0 for x0 of the polynomial for the segment Coefficient A1 for x1 of the polynomial for the segment Coefficient A2 for x2 of the polynomial for the segment Coefficient A3 for x3 of the polynomial for the segment Coefficient A4 for x4 of the polynomial for the segment Coefficient A5 for x5 of the polynomial for the segment Coefficient A6 for x6 of the polynomial for the segment Amplitude of the sine element Period length of the sine element [rad] Phase offset of the sine element [rad]

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

281

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.5

"ValidSegments[1..50]" tag (cam) (S7-1500T)
The tag structure "<TO>.ValidSegment[1..50].<tag name>" shows the validity of the defined segments of the cam.

Tags

Legend (Page 279)

Tag ValidSegment[1..50].
ValidSegment

Data type
ARRAY [1..50] OF BOOL
BOOL

Values -

W Description
CAL Indicates whether the defined segment is valid. FALSE Invalid TRUE Valid

A.2.6

"InterpolationSettings" tag (cam) (S7-1500T)
The tag structure "<TO>.InterpolationSettings.<tag name>" contains the configuration for the interpolation of the cam.

Tags

Legend (Page 279)

Tag InterpolationSettings.
InterpolationMode
BoundaryConditions

Data type Values

W

TO_Cam_Struct_Interpolation Settings

DINT

0 ... 2

CAL

DINT

0, 1

CAL

Description

Interpolation type

0

Linear

1

C splines

2

B splines

Characteristics of the boundary points

0

No profile start or profile end conditions

1

First derivative equal at profile start and end

282

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.7

"StatusCam" tag (cam) (S7-1500T)
The tag structure "<TO>.StatusCam.<tag name>" indicates the status of the cam.

Tags

Legend (Page 279)

Tag StatusCam.
StartLeadingValue
EndLeadingValue

Data type Values

W

TO_Cam_Struct_StatusCam

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description
First defined interpolation point/start of the first segment of the cam (Start value of the cam definition range) Last defined interpolation point/end of the last segment of the cam (End value of the definition range of the cam)

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

283

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.8

"StatusWord" tag (cam) (S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 4 "CamDataChanged") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0

Legend (Page 279)

Data type DWORD -

Values -

Bit 1 Bit 2

-

-

-

-

Bit 3

-

-

Bit 4
Bit 5 Bit 6 Bit 7... Bit 31

-

-

-

-

-

-

-

-

W RON -
-
-
-
-

Description

Status information of the technology object

"Control"

Use status

0

Cam not in use

1

Cam in use

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

"CamDataChanged"

0

No change

1

The definition range of the cam has changed in

the technology data block.

"Interpolated"

0

Cam is not interpolated

1

Cam is interpolated

"InInterpolation"

0

Cam not undergoing interpolation

1

Cam undergoing interpolation

Reserved

284

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.9

"ErrorWord" tag (cam) (S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1

Legend (Page 279)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 ... Bit 31

-

-

W RON -
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

285

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.10

"ErrorDetail" tag (cam) (S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 279)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 6

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

6

Terminate processing of the technology object

286

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.2 Tags of the cam technology object (S7-1500T)

A.2.11

"WarningWord" tag (cam) (S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag WarningWord
Bit 0 Bit 1

Legend (Page 279)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 ... Bit 31

-

-

W RON -
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or more configuration parameters are inconsistent or invalid. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

287

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3

Tags of the leading axis proxy technology object (S7-1500T)

A.3.1

Legend (S7-1500T)

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed directly and take effect at the start of the next MC-Servo [OB91].

CAL

At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES

Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON

Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

288

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.2

Leading value (leading axis proxy) (S7-1500T)
The following tags indicate the leading value parameters of the technology object for local synchronous operation.

Tags
Tag Position Velocity Acceleration

Legend (Page 288)

Data type LREAL LREAL LREAL

Values -

W RON RON RON

Description Adapted leading value for local synchronous operation Leading value velocity for local synchronous operation Leading value velocity for local synchronous operation

A.3.3

"Interface" tag (leading axis proxy) (S7-1500T)
The tag structure "<TO>.Interface.<Tag name>" contains the input address of the telegram.

Tags
Tag Interface.
AddressIn

Legend (Page 288)

Data type Values

W

TO_Struct_LeadingAxisProxy_ Interface

VRef

-

RON

Description
Input address for the telegram of the external leading value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

289

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.4

"Parameter" tag (leading axis proxy) (S7-1500T)
The tag structure "<TO>.Parameter.<tag name>" contains parameters for leading value adaptation.

Tags

Legend (Page 288)

Tag Parameter.
LocalLeadingValue DelayTime

Data type Values

W

TO_Struct_LeadingAxisProxy_ Parameter

LREAL 0.0 ... 1.0E12 DIR

ToleranceTimeExternal LREAL LeadingValueInvalid

0.0 ... 1.0E12 DIR

Description
Delay time of virtual local following axis which, in turn, provides a cross-PLC leading value with a cascade (<TO>.CrossPlcSynchronousOperation. LocalLeadingValueDelayTime) Tolerance time until a technology alarm is triggered when the external leading value becomes invalid

A.3.5

"StatusExternalLeadingValue" tag (leading axis proxy) (S7-1500T)
The tag structure "<TO>.StatusExternalLeadingValue.<Tag name>" contains the parameter values of the external leading value.

Tags

Legend (Page 288)

Tag StatusExternalLeading Value.
ModuloLength ModuloStartValue
AdjustmentTime

Data type Values

W

TO_Struct_LeadingAxisProxy_ StatusData

LREAL 0.0 ... 1.0E12 RON

LREAL

-1.0E12 ... 1.0E12

RON

LREAL

-1.0E12 ... 1.0E12

RON

Description

Modulo length of the external leading value Modulo start value of the external leading value

Time by which the external leading value is adjusted

< 0

The external leading value is interpolated by

this time.

> 0

The external leading value is extrapolated by

this time.

290

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.6

"StatusWord" tag (leading axis proxy) (S7-1500T)
The "<TO>.StatusWord" tag contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 4 "LeadingValueValid") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0

Legend (Page 288)

Data type DWORD -

Values -

Bit 1 Bit 2

-

-

-

-

Bit 3

-

-

Bit 4
Bit 5
Bit 6
Bit 7 ... Bit 31

-

-

-

-

-

-

-

-

W RON -
-
-
-

Description

Status information of the technology object

"Control"

Use status

0

Leading axis proxy not in operation

1

Leading axis proxy in operation

"Error"

0

No error present

1

Error present

"RestartActive"

0

No restart active

1

Restart active

The technology object is being reinitialized.

"OnlineStartValuesChanged"

0

Restart tags unchanged

1

Change to Restart tags

For the changes to be applied, the technology object must be reinitialized.

"LeadingValueValid"

0

Leading value does not exist or is not valid

1

Leading value exists and is valid

"LeadingValueModulo"

0

Leading value without modulo functionality

1

Leading value with modulo functionality

"LeadingAxisControl"

0

Leading axis in tracking mode

1

Leading axis not in tracking mode

Reserved

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

291

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.7

"'ErrorWord" tag (leading axis proxy) (S7-1500T)
The "<TO>.ErrorWord" tag indicates technology object errors (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1
Bit 2
Bit 3
Bit 4 ... Bit 7 Bit 7
Bit 8 ... Bit 31

Legend (Page 288)

Data type DWORD -

Values -

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-

Description
"SystemFault" System error "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"CommunicationFault"

Communication error

Missing or faulty communication.

-

Reserved

292

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.8

"ErrorDetail" tag (leading axis proxy) (S7-1500T)
The tag structure "<TO>.ErrorDetail.<tag name>" contains the alarm number and the effective local alarm reaction for the technology alarm that is currently pending on the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms" section of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 288)

Data type Values

TO_Struct_ErrorDetail

UDINT -

DINT

0, 13

W Description

RON RON

Alarm number

Effective alarm reaction

0

No reaction

13

Invalid leading value

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

293

Appendix (S7-1500, S7-1500T) A.3 Tags of the leading axis proxy technology object (S7-1500T)

A.3.9

"WarningWord" tag (leading axis proxy) (S7-1500T)
The "<TO>.WarningWord" tag indicates pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 1 "ConfigWarning") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag WarningWord
Bit 0 Bit 1

Legend (Page 288)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 ... Bit 6 Bit 7
Bit 8 ... Bit 31

-

-

-

-

-

-

W RON -
-
-

Description
"SystemWarning" A system-internal error has occurred. "ConfigWarning" Configuration error One or several configuration parameters are adjusted internally. "UserWarning" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary conditions are not met. Reserved

-

"CommunicationWarning"

Communication error

Missing or faulty communication.

-

Reserved

294

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

Index

A
Active homing, 92 Additive leading value, 29
Tags, 30
C
Cam, 19, 105 Basics, 19 Configuration, 105, 109, 148 Functions, 13 Import/export, 148 Interpolation, 48 Tags, 279
Cam editor, 45, 105, 109, 148 Camming, 45
Tags, 62 Closed loop position control, 101, 103 Closed-loop control, 101, 103 Controller-controller data exchange, 165
Setting up, 171 Cross-PLC synchronous operation, 163
Cascading, 167 Communication, 165 Controller-controller data exchange, 165 Delay time, 168, 181 Interconnection overview, 177, 178 Interconnection possibilities, 166 Recursive interconnection, 168 Routes, 180 Tags, 169 Time response, 167 Tolerance time, 165
D
Direction reversal at the hardware limit switch, 93 DSC (Dynamic Servo Control), 101 Dynamic default values, 82 Dynamic Servo Control (DSC), 101

E
Emergency stop deceleration, 84 Encoder connection
S7-1500 Motion Control, 67 S7-1500T Motion Control, 67 Encoder mounting type, 78 External encoder Delay time, 168
F
Following error monitoring, 100
G
Gear ratio, 31, 33 Gearing, 31, 33
Tags, 44
H
Hardware limit switches, 85
I
Interconnection overview, 177 Configuration, 178
J
Jerk limit, 82, 87

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

295

Index
L
Leading axis proxy Basics, 164 Configuration, 174 Delay time, 168 Diagnostics, 182 Functions, 13 Tags, 288
Leading value Routes, 180
Leading value coupling, 21 Leadscrew pitch, 78 Limit switches, 85 Limits for dynamics, 87 Load gear, 78
M
MC_CamIn, 209, 218 MC_GearIn, 184, 188 MC_GearInPos, 189, 195 MC_GetCamFollowingValue, 234 MC_GetCamLeadingValue, 232 MC_InterpolateCam, 230 MC_LeadingValueAdditive, 225, 227 MC_PhasingAbsolute, 204, 207 MC_PhasingRelative, 199, 202 MC_SynchronizedMotionSimulation, 223 Modulo, 63
P
Passive homing, 96 Position limits, 85 Positioning axis
Delay time, 168 Positioning monitoring, 99
R
Ramp-down time, 82, 87 Ramp-up time, 82, 87 Reversing output cam, 93 Routes
Show, 180

S
S7-1500 Motion Control, 13 Closed-loop control, 101, 103 Configuration, 63, 105 Drive and encoder connection, 64, 67 Dynamic settings, 82, 87 Homing, 91, 92, 96 Mechanics, 78 Modulo, 63 Motion Control instruction, 13 Position limits, 85 Position monitoring, 99, 100, 100 Synchronous operation, 21, 31, 33, 45 Technology object, 13, 17, 19, 63, 105, 164
S7-1500 Motion Control drive connection, 64 S7-1500 Motion Control homing
Active, 92 Configuration, 91 On the fly, 96 Passive, 96 Reversing output cam, 93 S7-1500 Motion Control instruction Overview, 13 S7-1500 Motion Control mechanics, 78 S7-1500T Motion Control Drive and encoder connection, 67 Motion Control instruction, 13 Technology object, 13 Software limit switches, 85 Synchronous axis Basics, 17 Configuration, 63 Delay time, 168 Diagnostics, 154, 160, 162 Functions, 13 Tags, 242 Synchronous operation, 21, 31, 33, 45 Synchronous operation is being simulated, 28 Tags, 28

296

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

T
Tags Additive leading value, 30 Cam technology object, 279 Camming, 62 Cross-PLC synchronous operation, 169 Gearing, 44 Leading axis proxy technology object, 288 Synchronous axis technology object, 242 Synchronous operation is being simulated, 28
T-CPU, 13 Technology data block
Tags of the cam technology object, 279 Tags of the leading axis proxy technology object, 288 Tags of the synchronous axis technology object, 242 Technology object Cam, 13, 19, 48, 105, 148 Leading axis proxy, 13, 164, 174, 182 Synchronous axis, 13, 17, 63, 154, 160, 162 Tolerance time, 165 Transfer area Setting up, 171 Traversing range limitation, 85

Index

S7-1500/S7-1500T Synchronous operation functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E47011129-AA

297

S7-1500T Kinematics functions V5.0 in TIA Portal V16

SIMATIC S7-1500 S7-1500T Kinematics functions V5.0 in TIA Portal V16
Function Manual
TIA Portal V16

Preface

Function manuals Documentation Guide

1

Introduction

2

Basics

3

Version overview

4

Configuring

5

Programming

6

Commissioning

7

Diagnostics

8

Kinematics trace

9

Measuring

10

Instructions

11

Appendix

A

12/2019
A5E42062707-AB

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E42062707-AB  10/2019 Subject to change

Copyright © Siemens AG 2017 - 2019. All rights reserved

Preface

Purpose of the documentation
This documentation provides important information that you need to configure and commission the integrated Motion Control functionality of the S7-1500 Automation systems.

Required basic knowledge
In order to understand this documentation, the following knowledge is required:  General knowledge in the field of automation  General knowledge in the field of drive engineering and motion control

Validity of the documentation
This documentation is valid for the S7-1500 product range.

Conventions

 For the path settings in the project navigation it is presumed that the "Technology objects" object is opened in the CPU subtree. The "Technology object" placeholder represents the name of the technology object.
Example: "Technology object > Configuration > Basic parameters".
 The <TO> placeholder represents the name set in tags for the respective technology object.
Example: <TO>.Actor.Type
 This documentation contains pictures of the devices described. The pictures may differ in minor details from the devices supplied.
You should also observe the notes that are marked as follows:
Note
A note contains important information about the product described in the documentation, about the handling of the product, and about sections in this documentation demanding your particular attention.

Further support
 The range of technical documentation for the individual SIMATIC products and systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the online ordering system is available on the Internet (http://mall.industry.siemens.com).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

3

Preface
Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

4

Function Manual, 12/2019, A5E42062707-AB

Table of contents

Preface .................................................................................................................................................. 3

1 Function manuals Documentation Guide .............................................................................................. 11

2 Introduction .......................................................................................................................................... 13

2.1

Interplay of the various documents ........................................................................................13

2.2

Kinematics systems for handling tasks ..................................................................................14

2.3

Term definition .......................................................................................................................15

2.4

Functions ...............................................................................................................................17

3 Basics .................................................................................................................................................. 18

3.1

Kinematics technology object ................................................................................................18

3.2

Interconnection rules ..............................................................................................................20

3.3

Configuration limits for kinematics systems ...........................................................................21

3.4

Units of measure ....................................................................................................................22

3.5

Modulo setting ........................................................................................................................24

3.6 3.6.1 3.6.2

Coordinate systems and frames ............................................................................................25 Frames ...................................................................................................................................29 Tags: Coordinate systems and frames ..................................................................................34

3.7 3.7.1 3.7.2 3.7.2.1 3.7.2.2 3.7.2.3 3.7.2.4 3.7.2.5 3.7.3 3.7.3.1 3.7.3.2 3.7.3.3 3.7.3.4 3.7.3.5 3.7.3.6 3.7.4 3.7.4.1 3.7.4.2 3.7.4.3

Kinematics types ....................................................................................................................35 Legend for representation of the kinematics .........................................................................36 Cartesian portal ......................................................................................................................37 Portal 2D ................................................................................................................................37 Portal 2D with orientation .......................................................................................................39 Portal 3D ................................................................................................................................41 Portal 3D with orientation .......................................................................................................44 Tags: Cartesian portal ............................................................................................................47 Roller picker ...........................................................................................................................48 Roller picker 2D .....................................................................................................................48 Roller picker 2D with orientation ............................................................................................50 Roller picker 3D (vertical) ......................................................................................................52 Roller picker 3D with orientation (vertical) .............................................................................55 Roller picker 3D with orientation (horizontal) .........................................................................58 Tags: Roller picker .................................................................................................................61 SCARA ...................................................................................................................................63 SCARA 2D with orientation ....................................................................................................63 SCARA 3D with orientation ....................................................................................................66 Tags: SCARA .........................................................................................................................71

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

5

Table of contents

3.7.5 3.7.5.1 3.7.5.2 3.7.5.3 3.7.5.4 3.7.5.5 3.7.6 3.7.6.1 3.7.6.2 3.7.6.3 3.7.6.4 3.7.6.5 3.7.6.6 3.7.7 3.7.7.1 3.7.7.2 3.7.7.3 3.7.8 3.7.8.1 3.7.8.2 3.7.8.3 3.7.9 3.7.9.1
3.8 3.8.1 3.8.1.1 3.8.1.2 3.8.1.3 3.8.1.4 3.8.1.5 3.8.2 3.8.2.1 3.8.2.2 3.8.2.3 3.8.3
3.9 3.9.1 3.9.1.1 3.9.1.2 3.9.1.3 3.9.2 3.9.2.1 3.9.2.2 3.9.3
3.10
3.11 3.11.1 3.11.2 3.11.3 3.11.4

Articulated arm ...................................................................................................................... 72 Articulated arm 2D ................................................................................................................ 72 Articulated arm 2D with orientation ....................................................................................... 75 Articulated arm 3D ................................................................................................................ 78 Articulated arm 3D with orientation ....................................................................................... 83 Tags: Articulated arm ............................................................................................................ 89 Delta picker ........................................................................................................................... 90 Delta picker 2D ...................................................................................................................... 90 Delta picker 2D with orientation ............................................................................................ 93 Delta picker 3D ...................................................................................................................... 95 Delta picker 3D with orientation ............................................................................................ 98 Permissible joint position for delta picker ............................................................................ 101 Tags: Delta picker ............................................................................................................... 102 Cylindrical robot .................................................................................................................. 103 Cylindrical robot 3D ............................................................................................................. 103 Cylindrical robot 3D with orientation ................................................................................... 107 Tags: Cylindrical robot ........................................................................................................ 112 Tripod .................................................................................................................................. 113 Tripod 3D ............................................................................................................................ 113 Tripod 3D with orientation ................................................................................................... 117 Tags: Tripod ........................................................................................................................ 120 User-defined kinematics systems ....................................................................................... 121 Tags: User-defined kinematics systems ............................................................................. 121
Kinematics transformation .................................................................................................. 122 Transformation for predefined kinematics systems ............................................................ 122 Reference points ................................................................................................................. 122 Traversing range and transformation area ......................................................................... 123 Joint position spaces (kinematics-dependent) .................................................................... 124 Singular positions ................................................................................................................ 128 Mechanical couplings (kinematics-dependent) ................................................................... 129 Transformation for user-defined kinematics systems ......................................................... 130 User transformation ............................................................................................................ 130 MC-Transformation [OB98] ................................................................................................. 132 Program example for a user-defined kinematics systems .................................................. 135 Tags: Kinematics transformation ........................................................................................ 140
Kinematics motions ............................................................................................................. 141 Motion types ........................................................................................................................ 141 Linear motion ...................................................................................................................... 141 Circular motion .................................................................................................................... 141 Synchronous "point-to-point" motion ................................................................................... 144 Motion dynamics ................................................................................................................. 145 Dynamics of kinematics motion and orientation motion ...................................................... 145 Override .............................................................................................................................. 147 Tags: Kinematics motions ................................................................................................... 147
Conveyor Tracking .............................................................................................................. 149
Zone monitoring .................................................................................................................. 154 Workspace zones ............................................................................................................... 156 Kinematics zones ................................................................................................................ 157 Zone geometry .................................................................................................................... 159 Tags: Zone monitoring ........................................................................................................ 161

S7-1500T Kinematics functions V5.0 in TIA Portal V16

6

Function Manual, 12/2019, A5E42062707-AB

Table of contents

4 Version overview ................................................................................................................................ 162

5 Configuring ........................................................................................................................................ 164

5.1

Adding a kinematics technology object ................................................................................164

5.2 5.2.1 5.2.2 5.2.3 5.2.3.1 5.2.3.2 5.2.3.3 5.2.3.4 5.2.3.5 5.2.3.6 5.2.3.7 5.2.3.8 5.2.4 5.2.5 5.2.5.1 5.2.5.2 5.2.5.3 5.2.5.4 5.2.5.5 5.2.5.6

Configuring the kinematics technology object .....................................................................165 Configuration - Basic Parameters ........................................................................................165 Configuration - Interconnections ..........................................................................................166 Configuration - Geometry ....................................................................................................167 Configuration - Geometry (Cartesian portal) .......................................................................167 Configuration - Geometry (roller picker) ..............................................................................169 Configuration - Geometry (SCARA) .....................................................................................171 Configuration - Geometry (articulated arm) .........................................................................172 Configuration - Geometry (delta picker) ...............................................................................174 Configuration - Geometry (cylindrical robot) ........................................................................175 Configuration - Geometry (tripod) ........................................................................................176 Configuration - Geometry (user-defined) .............................................................................177 Configuration - Conveyor tracking .......................................................................................178 Extended parameters ...........................................................................................................179 Configuration - Dynamics ....................................................................................................179 Configuration - Kinematics coordinate system ....................................................................179 Configuration - Object coordinate systems ..........................................................................180 Configuration- Tools .............................................................................................................181 Configuration - Zones ..........................................................................................................181 Configuration - Job sequence ..............................................................................................186

5.3

Copying a kinematics technology object ..............................................................................187

5.4

Deleting a kinematics technology object ..............................................................................188

5.5

Toolbar of the configuration .................................................................................................189

6 Programming ..................................................................................................................................... 190

6.1

Job sequence .......................................................................................................................191

6.2

Motion status and remaining distance .................................................................................193

6.3

Interrupting, continuing and stopping kinematics motions ...................................................194

6.4 6.4.1 6.4.2 6.4.3

Motion preparation using multiple jobs ................................................................................195 Preliminary motion preparation ............................................................................................195 Connection of multiple kinematics motions with geometric transitions ................................195 Dynamic behavior when motions are appended/blended ....................................................201

6.5

Interaction of kinematics motions and single axis motions ..................................................201

7 Commissioning .................................................................................................................................. 203

7.1

Function and structure of the kinematics control panel .......................................................203

7.2

Using the kinematics control panel ......................................................................................208

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

7

Table of contents

8 Diagnostics .........................................................................................................................................209

8.1 8.1.1 8.1.2 8.1.3 8.1.4 8.1.5

Kinematics technology object ............................................................................................. 210 Structure of the diagnostics ................................................................................................ 210 Status and error bits ............................................................................................................ 212 Zones status ........................................................................................................................ 215 Motion and tools .................................................................................................................. 216 Positions .............................................................................................................................. 218

9 Kinematics trace .................................................................................................................................219

9.1

Configuration ....................................................................................................................... 220

9.2 9.2.1 9.2.2 9.2.3

3D visualization ................................................................................................................... 222 Graphic display and toolbar ................................................................................................ 222 Toolbar for playing a recording ........................................................................................... 226 List of recordings ................................................................................................................. 226

9.3

Recording and playing kinematics motions ........................................................................ 228

9.4

Saving and deleting recordings ........................................................................................... 229

9.5

Importing and exporting recordings .................................................................................... 230

10 Measuring ...........................................................................................................................................232

10.1

Structure of the calibration .................................................................................................. 233

10.2

"Three-point" / "two-point" / "one-point" calibration method ................................................ 234

10.3

"Move and rotate" calibration method ................................................................................. 238

10.4

"Move and rotate around y or z" calibration method ........................................................... 241

10.5

"Plane" calibration method .................................................................................................. 244

10.6

Graphic display and toolbar ................................................................................................ 248

11 Instructions .........................................................................................................................................250

11.1 11.1.1 11.1.1.1 11.1.2 11.1.2.1 11.1.2.2 11.1.3 11.1.3.1 11.1.3.2 11.1.4 11.1.4.1 11.1.4.2 11.1.5 11.1.5.1
11.1.5.2 11.1.6 11.1.6.1 11.1.6.2 11.1.7

Kinematics motions ............................................................................................................. 250 MC_GroupInterrupt V5 ........................................................................................................ 250 MC_GroupInterrupt: Interrupt motion execution V5 ............................................................ 250 MC_GroupContinue V5 ....................................................................................................... 252 MC_GroupContinue: Continue motion execution V5 .......................................................... 252 MC_GroupContinue: Function chart V5 .............................................................................. 253 MC_GroupStop V5 .............................................................................................................. 255 MC_GroupStop: Stop motion V5 ......................................................................................... 255 MC_GroupStop: Function chart V5 ..................................................................................... 257 MC_MoveLinearAbsolute V5 .............................................................................................. 258 MC_MoveLinearAbsolute: Position kinematics with linear path motion V5 ........................ 258 MC_MoveLinearAbsolute: Function chart V5 ..................................................................... 262 MC_MoveLinearRelative V5 ............................................................................................... 263 MC_MoveLinearRelative: Relative positioning of kinematics with linear path motion V5 ............................................................................................................................................. 263 MC_MoveLinearRelative: Function chart V5 ...................................................................... 267 MC_MoveCircularAbsolute V5 ............................................................................................ 269 MC_MoveCircularAbsolute: Position kinematics with circular path motion V5 ................... 269 MC_MoveCircularAbsolute: Function chart V5 ................................................................... 275 MC_MoveCircularRelative V5 ............................................................................................. 277

S7-1500T Kinematics functions V5.0 in TIA Portal V16

8

Function Manual, 12/2019, A5E42062707-AB

Table of contents

11.1.7.1
11.1.7.2 11.1.8 11.1.8.1
11.1.8.2 11.1.9 11.1.9.1
11.1.9.2 11.1.10 11.1.10.1 11.1.10.2
11.2 11.2.1 11.2.1.1 11.2.2 11.2.2.1 11.2.3 11.2.3.1 11.2.4 11.2.4.1 11.2.5 11.2.5.1 11.2.6 11.2.6.1
11.3 11.3.1 11.3.1.1 11.3.2 11.3.2.1
11.4 11.4.1 11.4.1.1 11.4.2 11.4.2.1 11.4.3 11.4.3.1
11.5 11.5.1 11.5.2 11.5.3 11.5.4

MC_MoveCircularRelative: Relative positioning of kinematics with circular path motion V5 .........................................................................................................................................277 MC_MoveCircularRelative: Function chart V5 .....................................................................283 MC_MoveDirectAbsolute V5 ................................................................................................285 MC_MoveDirectAbsolute: Absolute movement of kinematics with synchronous "pointto-point" motion V5 ..............................................................................................................285 MC_MoveDirectAbsolute V5: Function chart .......................................................................290 MC_MoveDirectRelative V5 .................................................................................................292 MC_MoveDirectRelative: Relative movement of kinematics with synchronous "point-topoint" motion V5 ...................................................................................................................292 MC_MoveDirectRelative V5: Function chart ........................................................................296 MC_TrackConveyorBelt V5 .................................................................................................298 MC_TrackConveyorBelt: Start conveyor tracking V5 ..........................................................298 MC_TrackConveyorBelt V5: Function chart ........................................................................300
Zones ...................................................................................................................................303 MC_DefineWorkspaceZone V5 ...........................................................................................303 MC_DefineWorkspaceZone: Define workspace zone V5 ....................................................303 MC_DefineKinematicsZone V5 ............................................................................................306 MC_DefineKinematicsZone: Define kinematics zone V5 ....................................................306 MC_SetWorkspaceZoneActive V5 .......................................................................................309 MC_SetWorkspaceZoneActive: Activate workspace zone V5 .............................................309 MC_SetWorkspaceZoneInactive V5 ....................................................................................311 MC_SetWorkspaceZoneInactive: Deactivate workspace zone V5 ......................................311 MC_SetKinematicsZoneActive V5 .......................................................................................313 MC_SetKinematicsZoneActive: Activate kinematics zone V5 .............................................313 MC_SetKinematicsZoneInactive V5 ....................................................................................315 MC_SetKinematicsZoneInactive: Deactivate kinematics zone V5 ......................................315
Tools ....................................................................................................................................317 MC_DefineTool V5 ...............................................................................................................317 MC_DefineTool: Redefine tool V5 .......................................................................................317 MC_SetTool V5 ....................................................................................................................319 MC_SetTool: Change active tool V5 ....................................................................................319
Coordinate systems .............................................................................................................321 MC_SetOcsFrame V5 ..........................................................................................................321 MC_SetOcsFrame: Redefine object coordinate systems V5 ...............................................321 MC_KinematicsTransformation V5 ......................................................................................323 MC_KinematicsTransformation: Convert axis coordinates to Cartesian coordinates V5 ....323 MC_InverseKinematicsTransformation V5 ..........................................................................325 MC_InverseKinematicsTransformation: Convert Cartesian coordinates to axis coordinates V5 .....................................................................................................................325
Override response of Motion Control jobs V5 ......................................................................328 Override response V5: Homing and motion jobs .................................................................328 Override response V5: Synchronous operation jobs ...........................................................330 Override response V5: Measuring input jobs ......................................................................331 Override response V5: Kinematics motion commands ........................................................331

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

9

Table of contents

A Appendix ............................................................................................................................................334

A.1 A.1.1 A.1.2 A.1.3 A.1.4 A.1.5 A.1.6 A.1.7 A.1.8 A.1.9 A.1.10 A.1.11 A.1.12 A.1.13 A.1.14 A.1.15 A.1.16 A.1.17 A.1.18 A.1.19 A.1.20 A.1.21 A.1.22 A.1.23 A.1.24 A.1.25 A.1.26 A.1.27 A.1.28 A.1.29 A.1.30 A.1.31

Tags of the kinematics technology object ........................................................................... 334 Legend ................................................................................................................................ 334 "Tcp" tag (kinematics) ......................................................................................................... 335 "Kinematics" tag (kinematics) ............................................................................................. 335 "KcsFrame" tag (kinematics) ............................................................................................... 337 "OcsFrame[1..3]" tag (kinematics) ...................................................................................... 338 "Tool[1..3]" tag (kinematics) ................................................................................................ 339 "DynamicDefaults" tag (kinematics) .................................................................................... 340 "DynamicLimits" tag (kinematics) ........................................................................................ 341 "MotionQueue" tag (kinematics) ......................................................................................... 342 "Override" tag (kinematics) ................................................................................................. 342 "WorkspaceZone[1..10]" tag (kinematics) ........................................................................... 343 "KinematicsZone[2..10]" tag (kinematics) ........................................................................... 345 "StatusPath" tag (kinematics) ............................................................................................. 346 "TcpInWcs" tag (kinematics) ............................................................................................... 347 "TcpInOcs[1..3]" tag (kinematics) ........................................................................................ 349 "StatusOcsFrame[1..3]" tag (kinematics) ............................................................................ 351 "StatusKinematics" tag (kinematics) ................................................................................... 352 "FlangeInKcs" tag (kinematics) ........................................................................................... 353 "StatusTool" tag (kinematics) .............................................................................................. 354 "StatusConveyor[1..3]" tag (kinematics) ............................................................................. 355 "StatusWorkspaceZone[1..10]" tag (kinematics) ................................................................ 357 "StatusKinematicsZone[2..10]" tag (kinematics) ................................................................. 359 "StatusZoneMonitoring" tag (kinematics) ............................................................................ 360 "StatusMotionQueue" tag (kinematics) ............................................................................... 361 "KinematicsAxis" tag (kinematics) ....................................................................................... 361 "Units" tag (kinematics) ....................................................................................................... 362 "StatusWord" tag (kinematics) ............................................................................................ 364 "ErrorWord" tag (kinematics) .............................................................................................. 366 "ErrorDetail" tag (kinematics) .............................................................................................. 366 "WarningWord" tag (kinematics) ......................................................................................... 368 "ControlPanel" tag (kinematics) .......................................................................................... 368

A.2 A.2.1 A.2.2 A.2.3 A.2.4 A.2.5 A.2.6

Technology alarms .............................................................................................................. 371 Overview ............................................................................................................................. 371 Technology alarms 101 ....................................................................................................... 374 Technology alarms 201 - 204 ............................................................................................. 374 Technology alarms 304 - 306 ............................................................................................. 376 Technology alarms 501 - 563 ............................................................................................. 377 Technology alarms 801 - 811 ............................................................................................. 379

A.3

Error ID (kinematics) ........................................................................................................... 383

Index ...................................................................................................................................................387

S7-1500T Kinematics functions V5.0 in TIA Portal V16

10

Function Manual, 12/2019, A5E42062707-AB

Function manuals Documentation Guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

11

Function manuals Documentation Guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products.
You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

12

Function Manual, 12/2019, A5E42062707-AB

Introduction

2

2.1

Interplay of the various documents
For a better overview, the documentation of the Motion Control functions is divided into the following documents:

Documentation
S7-1500/S7-1500T Motion Control overview
Function manual "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens. com/cs/ww/en/view/109766459)
Using S7-1500/S7-1500T axis functions
Function manual "S7-1500/S71500T Axis functions" (https://support.industry.siemens. com/cs/ww/en/view/109766462)
Using S7-1500/S7-1500T measuring input and output cam functions
Function manual "S7-1500/S71500T Measuring input and output cam functions" (https://support.industry.siemens. com/cs/ww/en/view/109766466)
Using S7-1500/S7-1500T synchronous operation functions
Function manual "S7-1500/S71500T Synchronous operation functions" (https://support.industry.siemens. com/cs/ww/en/view/109766464)
Using S7-1500T kinematics functions
Function manual "S7-1500T Kinematics functions" (https://support.industry.siemens. com/cs/ww/en/view/109766463)

Description This documentation describes the general Motion Control functions independent of technology objects.
This documentation describes the Motion Control functions for the following technology objects: · Speed axis · Positioning axis · External encoder This documentation describes the Motion Control functions for the following technology objects: · Measuring input · Output cam · Cam track
This documentation describes the Motion Control functions for the following technology objects: · Synchronous axis · Cam · Leading axis proxy
This documentation describes the Motion Control functions for the following technology objects: · Kinematics

Additional information
You can find an overview and important links to the topic "SIMATIC Motion Control" in the Siemens Industry Online Support under the entry ID 109751049 (https://support.industry.siemens.com/cs/ww/en/view/109751049).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

13

Introduction 2.2 Kinematics systems for handling tasks

2.2

Kinematics systems for handling tasks

Kinematics are user-programmable mechanical systems in which multiple mechanically coupled axes produce the motion of a working point. The S7-1500T technology CPUs provide functions for controlling kinematics systems, e.g. for handling tasks, with the kinematics technology object. Typical applications include:

 Pick & Place

 Installation

 Palletizing

The kinematics control panel and extensive online and diagnostic functions support straightforward commissioning of kinematics systems. The kinematics technology object is fully integrated in the system diagnostics of the S7-1500T CPU.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

14

Function Manual, 12/2019, A5E42062707-AB

Introduction 2.3 Term definition

2.3

Term definition

Kinematics

Kinematics are user-programmable mechanical systems in which multiple mechanically coupled axes produce the motion of a working point.

Kinematics axes
Kinematics axes are the axes of the kinematics motion. You connect each kinematics axis with a positioning axis/synchronous axis technology object.

Kinematics zero point (KZP)
The coordinate origin of the kinematics coordinate system (KCS) is the KZP. You configure the geometry parameters of the kinematics starting from the KZP.

Zero point of the flange coordinate system (FNP)
The coordinate origin of the flange coordinate system (FCS) is the FNP. Starting from the FNP, you define, for example, the flange zones of the kinematics.

Tool center point (TCP)
The coordinate origin of the tool coordinate system (TCS) is the tool center point or TCP. The TCP is the operating point of the kinematics.

Degrees of freedom of kinematics
The degrees of freedom of kinematics are the dimensions in which the tool can move. 2D kinematics systems move the tool in the xz plane and thus have two translational degrees of freedom. 3D kinematics systems move the tool in xyz space and thus have three translational degrees of freedom. The optional orientation of the tool is a further degree of freedom (rotation of the tool around the z-axis).

Machine coordinate system (MCS)
The MCS contains the position data of the interconnected kinematics axes and thus combines up to four one-dimensional systems in one system.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

15

Introduction 2.3 Term definition

Job sequence

The job sequence of the kinematics technology object is the memory to which motion-related Motion Control jobs are entered as pending, inactive jobs. All jobs in the job sequence are taken into account during the motion preparation.

AxesGroup

Kinematics-related Motion Control instructions have the input parameter "AxesGroup". The kinematics technology object groups the interconnected kinematics axes. Therefore, you can assign the kinematics technology object directly to the input parameter "AxesGroup".

S7-1500T Kinematics functions V5.0 in TIA Portal V16

16

Function Manual, 12/2019, A5E42062707-AB

2.4

Introduction 2.4 Functions

Functions
You execute the functions of the kinematics technology object using the Motion Control instructions in your user program or the TIA Portal (under "Technology object > Commissioning").
The following table shows the functions that are supported by the technology object:

Function

Brief description

Motion Control instructions (user program)

"MC_GroupInterrupt"

Interrupt motion execution

"MC_GroupContinue"

Continue motion execution

"MC_GroupStop"

Stop motion

"MC_MoveLinearAbsolute"

Position kinematics with linear path motion

"MC_MoveLinearRelative"

Relative positioning of kinematics with linear path motion

"MC_MoveCircularAbsolute"

Position kinematics with circular path motion

"MC_MoveCircularRelative"

Relative positioning of kinematics with circular path motion

"MC_MoveDirectAbsolute"

Absolute movement of kinematics with synchronous "point-topoint" motion

"MC_MoveDirectRelative"

Relative movement of kinematics with synchronous "point-topoint" motion

"MC_TrackConveyorBelt"

Start conveyor tracking

"MC_DefineWorkspaceZone"

Define workspace zone

"MC_DefineKinematicsZone"

Define kinematics zone

"MC_SetWorkspaceZoneActive" Activate workspace zone

"MC_SetWorkspaceZoneInactive" Deactivate workspace zone

"MC_SetKinematicsZoneActive" Activate kinematics zone

"MC_SetKinematicsZoneInactive" Deactivate kinematics zone

"MC_DefineTool"

Re-define tool

"MC_SetTool"

Change active tool

"MC_SetOcsFrame"

Redefine object coordinate systems

"MC_KinematicsTransformation" Transforming axis coordinates into Cartesian coordinates

"MC_InverseKinematics Transformation"

Transforming Cartesian coordinates into axis coordinates

TIA Portal

"Kinematics control panel (Page 203)"

Homing of kinematics axes and traversing of kinematics systems or individual kinematics axes via the TIA Portal

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

17

Basics

3

3.1

Kinematics technology object

The kinematics technology object calculates motion setpoints for the tool center point (TCP) of the kinematics taking into account the dynamic settings. The kinematics technology object calculates the motion setpoints for the individual axes of the kinematics and vice versa from the current values of the axes using the kinematics transformation. The kinematics technology object outputs the axis-specific motion setpoints to the interconnected positioning axes.

The kinematics technology object provides the kinematics transformation (Page 122) for the predefined kinematics types on the system level. In the case of user-defined kinematics systems, you must provide the user transformation (Page 130) in a separate program.

You create the individual axes of the kinematics in the TIA Portal as "Positioning axis" or "Synchronous axis" technology objects. When you configure the kinematics technology object, you interconnect the axes in accordance with the configured kinematics type.

You can find an overview of the functions of the kinematics technology object in the "Functions" (Page 17) section.

The graphic below shows the basic principle of operation of the kinematics technology object:

S7-1500T Kinematics functions V5.0 in TIA Portal V16

18

Function Manual, 12/2019, A5E42062707-AB

Basics 3.1 Kinematics technology object

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

19

Basics 3.2 Interconnection rules

3.2

Interconnection rules

You can interconnect a kinematics technology object with positioning axes and synchronous axes. There must be a clear reference between the kinematics technology object and the interconnected axes. You cannot use a second kinematics technology object with already interconnected axes.

No provision is made for changing the interconnection of the axes during operation.

Virtual axis/simulation
You can also interconnect the kinematics technology object with axes in simulation and with virtual axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

20

Function Manual, 12/2019, A5E42062707-AB

Basics 3.3 Configuration limits for kinematics systems

3.3

Configuration limits for kinematics systems

Motion Control resources
Each CPU offers a defined set of "Motion Control resources". For information on the total Motion Control resources available, refer to the technical specifications of the utilized CPU. You can find an overview of the Motion Control resources of a CPU in the TIA Portal under "Tools > Resources".
Extended Motion Control resources
In addition to the Motion Control resources of the interconnected axes, a kinematics technology object utilizes 30 "Extended Motion Control resources". For information on the maximum number of usable kinematics systems, refer to the technical specifications of the utilized CPU. You can find the technical specifications of the S7-15xxT CPUs in the respective manual.
Application cycle
As the number of technology objects used increases, the computing time needed by the CPU to process the technology objects increases. The Motion Control application cycle can be adapted according to the number of technology objects used.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

21

Basics 3.4 Units of measure

3.4

Units of measure
The kinematics technology object supports the following units of measure for position and velocity of linear axes:

Position nm, m, mm1), m, km
in, ft, mi

Velocity
mm/s1), mm/min, mm/h, m/s, m/min, m/h, km/min, km/h
in/s, in/min, ft/s, ft/min, mi/h

The kinematics technology object supports the following units of measure for angle and angular velocity of rotary axes:

Angle °1), rad

Angular velocity °/s1), °/min, rad/s, rad/min

1) Six decimal places when the option box "Use position values with higher resolution" is selected.

The acceleration is set accordingly as the position/s² (angle/s²) unit of measure.

The jerk is set accordingly as the position/s³ (angle/s³) unit of measure.

Note
When setting or changing the units of measure, take into consideration the effect on the display of parameter values and the user program: · Display of parameter values in the technology data block · Assignment of parameters in the user program · Input and display of the position and velocity in the TIA Portal · Setpoint settings by leading axes in synchronous operation
All information and displays are shown according to the selected unit of measure.

The set units are displayed in the tag structure of the <TO>.Units technology object. The tag structure is described in the Appendix (Page 362).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

22

Function Manual, 12/2019, A5E42062707-AB

Basics 3.4 Units of measure
Units of measure of the axes and the kinematics technology object
The technology objects always transfer values without units of measure.
For example, if you set [mm] for an axis and [m] for the kinematics technology object, the kinematics technology object miscalculates the position values of the linear axis in [m]. If, in this example, the kinematics technology object outputs a setpoint for a one-meter motion, the axis only moves by one millimeter.
The kinematics technology object outputs linear and rotary setpoints to the interconnected axes according to the kinematics type. The kinematics technology object does not check the axis type of the interconnected axis (linear or rotary).
When configuring the units of measure, take into consideration the following specifications:
 Configure the interconnected technology objects as linear or rotary axes according to the kinematics type.
 Configure the same linear/rotary units of measure for the axes interconnected according to the kinematics type as for the kinematics technology object.
Position values with higher resolution
If you select the check box "Use position values with higher resolution" in the configuration of the technology objects "TO_PositioningAxis", "TO_SynchronousAxis", "TO_ExternalEncoder" and "TO_Kinematics", six decimal places are available in the selected unit. Due to the LREAL format, the displayable position and angle range in [mm] and [°] is limited to +1.0E09 digits. This reduces the position and angle range that can be displayed as well as the mechanical gear ratio by the factor 1000. With regard to long-term stability, the numerical travel range limit is reduced accordingly by the factor 1000.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

23

Basics 3.5 Modulo setting

3.5

Modulo setting

The kinematics technology object itself has no modulo setting. When you interconnect axes with active modulo setting to the kinematics technology object, the module range of the axes must cover at least the traversing range of the kinematics. The zero position of the axis must match the zero position of the kinematics axis. With the exception of the orientation axis, the module range of the axes cannot be changed during a kinematics motion.

The modulo setting is typically used for the orientation axis. In the case of the orientation axis (axis A4 in the kinematics), the kinematics transformation covers the entire traversing range of the axis. The orientation axis traverses without limitations through an activated modulo setting.

An angle greater than 360° can be defined for the Cartesian orientation. A relative motion traverses this angle. An absolute motion maps this angle in the range from 0° to 360°. The range -180° to +180° is generally defined for the coordinate A of the tool center point (TCP).

S7-1500T Kinematics functions V5.0 in TIA Portal V16

24

Function Manual, 12/2019, A5E42062707-AB

Basics 3.6 Coordinate systems and frames

3.6

Coordinate systems and frames

A handling task involves many objects, e.g. kinematics systems, tools, pallets and products. You describe these objects and their relative positions with coordinate systems and frames. The kinematics technology object calculates all motions for the tool center point (TCP).

Frames

Frames specify the shift and rotation of one coordinate system relative to another coordinate system.

Coordinate systems
The kinematics technology object uses the following right-handed Cartesian coordinate systems according to DIN 66217:  World coordinate system (WCS)  Kinematics coordinate system (KCS)  Flange coordinate system (FCS)  Tool coordinate system (TCS)  Object coordinate systems (OCS)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

25

Basics 3.6 Coordinate systems and frames
The following graphic shows the relative position of the coordinate systems using a workspace example:

  
WCS
KCS FCS
TCS
TCP OCS

Control cabinet Conveyor belt Slide World coordinate system Kinematics coordinate system Flange coordinate system (FCS) Tool coordinate system Tool center point Object coordinate system

World coordinate system (WCS)
The WCS is the fixed coordinate system of the environment or workspace of the kinematics. The zero point of the WCS is the reference point for objects and motions on the kinematics technology object. Starting from the zero point of the WCS (e.g. corner of a workspace), you define the position of the objects using frames.

Kinematics coordinate system (KCS)
The KCS is connected to the kinematics. The position of the KCS within the kinematics is specified for each predefined kinematics type. The coordinate origin of the KCS is the kinematics zero point (KZP). You configure the geometry parameters of the kinematics starting from the KZP.
You configure the position of the KCS in the WCS using the KCS frame.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

26

Function Manual, 12/2019, A5E42062707-AB

Basics 3.6 Coordinate systems and frames
Flange coordinate system (FCS)
The FCS is attached to the tool adapter (flange) of the kinematics. As a result, the position of the FCS changes with kinematics motions.
The position of the FCS in the zero position of the kinematics results from the configuration of the geometry parameters of the kinematics. The kinematics technology object calculates the transformation frame from the geometry parameters. The transformation frame describes the position of the FCS in the KCS. The z axis of the FCS always points in the negative z direction of the KCS.
The following graphic shows the positions of the FCS and KCS and the transformation frame using the "Cylindrical robot" kinematics example:

 Transformation frame  KCS frame

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

27

Basics 3.6 Coordinate systems and frames
Tool coordinate system (TCS - Tool Coordinate System) and tool center point (TCP - Tool Center Point)
The TCS is attached to the FCS and defines the tool center point (TCP) in the coordinate origin. The TCP is the operating point of the tool. The kinematics motions always refer to the TCP (with reference to WCS/OCS). You define the position of the TCS in the FCS using a tool frame. The z axis of the TCS always points in the negative z direction of the KCS. You can define tool frames for up to three tools, of which only one tool and therefore one tool frame is active at the same time.
The following graphic shows the position of the TCS and the TCP in the workspace:

 Tool frame
Object coordinate system (OCS)
The OCS is a user-defined coordinate system. With an OCS, for example, you define the position of a pallet in the workspace. You define the position of the OCS in the WCS with an OCS frame. You can define up to three OCS frames which are active at the same time.

 OCS frame
28

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.6 Coordinate systems and frames

3.6.1

Frames
The following table shows the frames for the kinematics technology object:

Frame KCS frame
Transformation frame
Tool frame OCS1..3 frame Target position

Description
Position of the kinematics coordinate system (KCS) in the world coordinate system (WCS) Position of the flange coordinate system (FCS) in the KCS The transformation frame results from the kinematics transformation and is displayed in the "<TO>.FlangeInKcs" tag of the technology object. Position of the tool coordinate system (TCS) in the FCS Position of the object coordinate systems 1 to 3 (OCS[1..3]) in the WCS Target position for a kinematics motion

Shift

You use the shift to define the position of the zero point of a coordinate system or a zone within the reference coordinate system. You specify the shift in Cartesian coordinates.

Rotation

You use the rotation to define the orientation of a coordinate system or a zone within the reference coordinate system. The rotation is made up of three successive individual rotations around the axes of the coordinate system which you define using three Euler angles. The individual rotations depend on each other.
The following graphic shows the three successive rotations using a cuboid zone as an example:

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

29

Basics 3.6 Coordinate systems and frames

 Rotation A  Rotation B  Rotation C

S7-1500T Kinematics functions V5.0 in TIA Portal V16

30

Function Manual, 12/2019, A5E42062707-AB

Basics 3.6 Coordinate systems and frames

The following table shows the definition of the rotations:

Rotation Rotation A
Rotation B
Rotation C

Description
Euler angle of the first rotation
A positive angle corresponds to a clockwise rotation around the z axis of the coordinate system.
The coordinate system rotated once consists of the axes x', y' and z.
Euler angle of the second rotation
A positive angle corresponds to a clockwise rotation around the rotated y' axis.
The coordinate system rotated twice consists of the axes x'', y' and z'.
Euler angle of the third rotation
A positive angle corresponds to a clockwise rotation around the rotated x'' axis.
The coordinate system rotated three times consists of the axes x'', y'' and z''. The x'', y'' and z'' axes correspond to the x, y and z axes of the rotated coordinate system or of the rotated zone.

Frame definition
Frames define the shift and rotation of one coordinate system relative to another coordinate system with the following values:

Value in the frame x y z A B C

Description Shift in the x direction in the reference coordinate system Shift in the y direction in the reference coordinate system Shift in the z direction in the reference coordinate system Rotation around the z-axis Rotation around the y-axis Rotation around the x-axis

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

31

Basics 3.6 Coordinate systems and frames

The following table shows the restrictions for frames depending on the kinematics type. The information "x", "y" and "z" means that a shift in the respective direction is possible. The information "A", "B" and "C" means that a rotation in the respective direction is possible. The information "= 0.0" means that a shift or rotation in the respective direction is not permitted or not relevant for the kinematics type.

Kinematics type 2D
2D with orientation
3D
3D with orientation

KCS frame/OCS frame

Shift

Rotation

x

A = 0.0

y = 0.0

B

z

C = 0.0

Shift

Rotation

x

A = 0.0

y = 0.0

B = 0.0

z

C = 0.0

Shift

Rotation

x

A

y

B

z

C

Shift

Rotation

x

A

y

B = 0.0

z

C = 0.0

x, y, z, A, B, C: Shift/rotation possible Value = 0.0: Shift/rotation not permitted or not relevant

Tool frame

Shift

Rotation

x

A = 0.0

y = 0.0

B = 0.0

z

C = 0.0

Shift

Rotation

x = 0.0

A

y = 0.0

B = 0.0

z

C = 0.0

Shift

Rotation

x

A = 0.0

y

B = 0.0

z

C = 0.0

Shift

Rotation

x

A

y

B = 0.0

z

C = 0.0

Target position

Shift

Rotation

x

A = 0.0

y = 0.0

B = 0.0

z

C = 0.0

Shift

Rotation

x

A

y = 0.0

B = 0.0

z

C = 0.0

Shift

Rotation

x

A = 0.0

y

B = 0.0

z

C = 0.0

Shift

Rotation

x

A

y

B = 0.0

z

C = 0.0

S7-1500T Kinematics functions V5.0 in TIA Portal V16

32

Function Manual, 12/2019, A5E42062707-AB

Basics 3.6 Coordinate systems and frames

The following table shows the value ranges for the rotations of KCS, OCS and tool frames depending on the kinematics type:

Kinematics type

2D

A

B

C

2D with orientation

A

B

C

3D

A

B

C

3D with orientation

A

B

C

Value = 0.0: Rotation not permitted No information (-): Parameter not available

Value ranges

KCS frame/OCS frame

0.0

A

-180.0° to 179.999°

-

0.0

-

0.0

A

0.0

-

0.0

-

-180.0° to 179.999°

A

-90.0° to 90.0°

-

-180.0° to 179.999°

-

-180.0° to 179.999°

A

0.0

-

0.0

-

Tool frame 0.0 -
-180.0° to 179.999° -
0.0 -
-180.0° to 179.999° -

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

33

Basics 3.6 Coordinate systems and frames

3.6.2

Tags: Coordinate systems and frames
The following tags of the kinematics technology object are relevant for coordinate systems and frames:

Tag Configuration <TO>.KcsFrame <TO>.OcsFrame[1..3] <TO>.Tool[1..3] Status values <TO>.Tcp <TO>.TcpInWcs <TO>.TcpInOcs[1..3] <TO>.FlangeInKcs
<TO>.StatusOcsFrame[1..3]

Description
KCS frame x, y, z, A, B, C OCS frame x, y, z, A, B, C Tool frame x, y, z, A
Position of the tool center point (TCP), TCP frame in the world coordinate system (WCS). x, y, z, A Parameter for tool center point in the world coordinate system x, y, z, A Parameter for the tool center point (TCP) in the Object Coordinate Systems 1 to 3 (OCS) x, y, z, A Parameter for the flange coordinate system (FCS) in the kinematics coordinate system (KCS) x, y, z, A Display of the OCS frames x, y, z, A, B, C

S7-1500T Kinematics functions V5.0 in TIA Portal V16

34

Function Manual, 12/2019, A5E42062707-AB

3.7

Basics 3.7 Kinematics types

Kinematics types
The type of the mechanical system and the number of the axes determine the kinematics type. The mechanically coupled axes produce the motion of the tool center point (TCP). Depending on the kinematics type, you configure the kinematics using appropriate geometry parameters.
The kinematics technology object supports the following kinematics types:

Category

Kinematics type

Predefined kinematics systems

Cartesian portal (Page 37)

Cartesian portal 2D

Cartesian portal 2D with orientation

Cartesian portal 3D

Cartesian portal 3D with orientation

Roller picker (Page 48)

Roller picker 2D

Roller picker 2D with orientation

Roller picker 3D (vertical)

Roller picker 3D with orientation (vertical)

Roller picker 3D with orientation (horizontal)

SCARA (Page 63)

SCARA 3D with orientation

SCARA 2D with orientation

Articulated arm (Page 72)

Articulated arm 2D

Articulated arm 2D with orientation

Articulated arm 3D

Articulated arm 3D with orientation

Delta picker (Page 90)

Delta picker 2D

Delta picker 2D with orientation

Delta picker 3D

Delta picker 3D with orientation

Cylindrical robot (Page 103)

Cylindrical robot 3D

Cylindrical robot 3D with orientation

Tripod (Page 113)

Tripod 3D

Tripod 3D with orientation

User-defined kinematics systems

User-defined kinematics systems (Page 121)

User-defined 2D User-defined 2D with orientation

User-defined 3D

User-defined 3D with orientation

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

35

Basics 3.7 Kinematics types

3.7.1

Legend for representation of the kinematics
The following table shows the graphic elements and symbols which are used to display the kinematics:

Graphic element

Meaning Basis of kinematics

Kinematics arm

Kinematics deflected from zero position

Active rotary axis

· Passive joint · Axis guide Active linear axis
Rotary axis on the tool adapter (orientation axis)

Tool adapter

Tool (gripper)

Coordinate axis set up out of the mapping plane Coordinate axis set up into the mapping plane Color x axis Color y axis Color z axis

S7-1500T Kinematics functions V5.0 in TIA Portal V16

36

Function Manual, 12/2019, A5E42062707-AB

3.7.2 3.7.2.1

Basics 3.7 Kinematics types
Cartesian portal
Portal 2D
The kinematics "Portal 2D" supports two axes and two degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of two orthogonal, linear axes A1 and A2. The axes enclose a rectangular working range.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

37

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the KZP in x direction of the KCS L2 At zero position of the axis A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction z1 Deflection of the axis A2 in the positive z direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at distance LF from the zero position of the axis A2.
The position 0.0 on the respective interconnected technology object defines the zero positions of the axes A1 and A2 in the KCS. You define the distances of the zero positions of the axes in relation to the kinematics zero point using lengths L1 and L2.
Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

38

Function Manual, 12/2019, A5E42062707-AB

3.7.2.2

Basics 3.7 Kinematics types
Portal 2D with orientation
The kinematics "Portal 2D with orientation" supports three axes and three degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  Two orthogonal linear axes A1 and A2  One rotary axis A4 (orientation axis) The linear axes enclose a rectangular working area. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

39

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the kinematics zero point (KZP) in x direction of the KCS L2 At zero position of the axis A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction z1 Deflection of the axis A2 in the positive z direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at distance LF from the zero position of the axis A2.
The position 0.0 on the respective interconnected technology object defines the zero positions of the axes A1 and A2 in the KCS. You define the distances of the zero positions of the axes A1 and A2 to the kinematics zero point with lengths L1 and L2. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

40

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

3.7.2.3

Portal 3D
The kinematics "Portal 3D with orientation" supports three axes and three degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of three orthogonal, linear axes A1, A2 and A3. The linear axes enclose a rectangular working area.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

41

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the axes A1 and A3 is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the kinematics zero point (KZP) in x direction of the KCS L3 At zero position of the axis A3:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction z1 Deflection of the axis A3 in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

42

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the axes A1 and A2 is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the KZP in x direction of the KCS L2 At zero position of the axis A2:
Distance of the FCS to the KZP in y direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction y1 Deflection of the axis A2 in negative y direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at distance LF from the zero position of the axis A2.
The position 0.0 on the respective interconnected technology object defines the zero positions of the axes A1, A2 and A3 in the KCS. You define the distances of the zero positions of the axes to the kinematics zero point with lengths L1, L2 and L3.
Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

43

Basics 3.7 Kinematics types

3.7.2.4

Portal 3D with orientation
The kinematics "Portal 3D with orientation" supports four axes and four degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  Three orthogonal linear axes A1, A2 and A3  One rotary axis A4 (orientation axis) The linear axes enclose a rectangular working area. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

44

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the axes A1 and A3 is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the kinematics zero point (KZP) in x direction of the KCS L3 At zero position of the axis A3:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction z1 Deflection of the axis A3 in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

45

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the axes A1 and A2 is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A1:
Distance of the FCS to the KZP in x direction of the KCS L2 At zero position of the axis A2:
Distance of the FCS to the KZP in y direction of the KCS Deflection of the kinematics x1 Deflection of the axis A1 in the positive x direction y1 Deflection of the axis A2 in negative y direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at distance LF from the zero position of the axis A2.
The position 0.0 on the respective interconnected technology object defines the zero positions of the axes A1, A2 and A3 in the KCS. You define the distances of the zero positions of the axes A1, A2 and A3 to the kinematics zero point with lengths L1, L2 and L3. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.
Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

46

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

3.7.2.5

Tags: Cartesian portal

Portal 2D

You define the 2D portal kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 1 2 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3]

-1.0E12 to 1.0E12 -1.0E12 to 1.0E12

Description
Portal 2D
Portal 2D with orientation
Distance L1 of the zero position of the axis A1 to the kinematics zero point (KZP) in x direction of the kinematics coordinate system (KCS)
Distance of the flange coordinate system from the axis A2 in the negative z direction of the KCS
Distance L2 of the zero position of the axis A2 to the KZP in z direction of the KCS

Portal 3D

You define the 3D portal kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 3 4 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[3]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[4]

-1.0E12 to 1.0E12

Description
Portal 3D
Portal 3D with orientation
Distance L1 of the zero position of the axis A1 to the KZP in x direction of the KCS
Distance L2 of the zero position of the axis A2 to the KZP in y direction of the KCS
Distance of the flange coordinate system from the axis A3 in the negative z direction of the KCS
Distance L3 of the zero position of the axis A3 to the KZP in z direction of the KCS

See also

Tags of the kinematics technology object (Page 334)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

47

Basics 3.7 Kinematics types

3.7.3

Roller picker

3.7.3.1

Roller picker 2D
The kinematics "Roller picker 2D" supports two axes and two degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of two rotary axes A1 and A2 and a system of guide rollers. If both axes A1 and A2 rotate with the same velocity in the same direction, the flange moves horizontally in x direction of the KCS. If both axes A1 and A2 rotate with the same velocity in opposite directions, the flange moves vertically in z direction of the KCS. The kinematics enables a rectangular working area.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

48

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L2 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction z1 Deflection of the kinematics in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

49

Basics 3.7 Kinematics types

The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located between axes A1 and A2.
The position 0.0 on the respective interconnected technology object defines the zero position of the axes A1 and A2. You define the position of the FCS for zero position of the axes A1 and A2 using lengths L1 and L2. You shift the FCS in the negative z direction of the KCS using length LF.

Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

3.7.3.2

Roller picker 2D with orientation
The kinematics "Roller picker 2D with orientation" supports three axes and three degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of a system made up of guide rollers and the following axes:
 Two rotary axes A1 and A2
 A rotational axis A4 (orientation axis) with rotation around z in the KCS
If both axes A1 and A2 rotate with the same velocity in the same direction, the flange moves horizontally in x direction of the KCS. If both axes A1 and A2 rotate with the same velocity in opposite directions, the flange moves vertically in z direction of the KCS. The kinematics enables a rectangular working area. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

50

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L2 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction z1 Deflection of the kinematics in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

51

Basics 3.7 Kinematics types

The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located between axes A1 and A2.
The position 0.0 on the respective interconnected technology object defines the zero position of the axes A1 and A2. You define the position of the FCS for zero position of the axes A1 and A2 using lengths L1 and L2. You shift the FCS in the negative z direction of the KCS using length LF. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.

Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

3.7.3.3

Roller picker 3D (vertical)
The kinematics "Roller picker 3D (vertical)" supports three axes and three degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of a system made up of guide rollers and the following axes:
 Two rotary axes A1 and A2
 A linear axis A3 in y direction of the KCS
If both axes A1 and A2 rotate with the same velocity in the same direction, the flange moves horizontally in x direction of the KCS. If both axes A1 and A2 rotate with the same velocity in opposite directions, the flange moves vertically in z direction of the KCS. The linear portal axis A3 moves the system of guide rollers horizontally in y direction of the KCS. The kinematics enables a cuboid working area.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

52

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L3 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction z1 Deflection of the kinematics in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

53

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L2 At zero position of the axis A3:
Distance of the FCS to the KZP in y direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction y1 Deflection of the kinematics in the positive y direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located between axes A1 and A2.
The position 0.0 on the respective interconnected technology object defines the zero position of the axes A1 and A2 and the zero position of the axis A3 in the KCS. You define the distance of the zero position of the axis A3 to the KZP in y direction of the KCS using length L2.
You define the position of the FCS for zero position of the axes A1 and A2 using lengths L1 and L3. You shift the FCS in the negative z direction of the KCS using length LF.
Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

54

Function Manual, 12/2019, A5E42062707-AB

3.7.3.4

Basics 3.7 Kinematics types
Roller picker 3D with orientation (vertical)
The kinematics "Roller picker 3D with orientation (vertical)" supports four axes and four degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of a system made up of guide rollers and the following axes:
 Two rotary axes A1 and A2
 A linear axis A3 in y direction of the KCS
 A rotational axis A4 (orientation axis) with rotation around z in the KCS
If both axes A1 and A2 rotate with the same velocity in the same direction, the flange moves horizontally in x direction of the KCS. If both axes A1 and A2 rotate with the same velocity in opposite directions, the flange moves vertically in z direction of the KCS. The linear portal axis A3 moves the system of guide rollers horizontally in y direction of the KCS. The kinematics enables a cuboid working area. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

55

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L3 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction z1 Deflection of the kinematics in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

56

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L2 At zero position of the axis A3:
Distance of the FCS to the KZP in y direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction y1 Deflection of the kinematics in the positive y direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located between axes A1 and A2.
The position 0.0 on the respective interconnected technology object defines the zero position of the axes A1 and A2 and the zero position of the axis A3 in the KCS. You define the distance of the zero position of the axis A3 to the KZP in y direction of the KCS using length L2.
You define the position of the FCS for zero position of the axes A1 and A2 using lengths L1 and L3. You shift the FCS in the negative z direction of the KCS using length LF. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.
Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

57

Basics 3.7 Kinematics types

3.7.3.5

Roller picker 3D with orientation (horizontal)
The kinematics "Roller picker 3D with orientation (horizontal)" supports four axes and four degrees of freedom. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of a system made up of guide rollers and the following axes:
 Two rotary axes A1 and A2
 A linear axis A3 in z direction of the KCS
 A rotational axis A4 (orientation axis) with rotation around z in the KCS
If both axes A1 and A2 rotate with the same velocity in the same direction, the flange moves horizontally in x direction of the KCS. If both axes A1 and A2 rotate with the same velocity in opposite directions, the flange moves horizontally in y direction of the KCS. The linear portal axis A3 moves the system of guide rollers vertically in z direction of the KCS. The kinematics enables a cuboid working area. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

58

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the front view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L3 At zero position of the axis A3:
Distance of the FCS to the KZP and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction z1 Deflection of the kinematics in the positive z direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

59

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in x direction of the KCS L2 With zero position of the axes A1 and A2:
Distance of the FCS to the KZP in y direction of the KCS R1 Cam radius for axis A1 R2 Cam radius for axis A2 Deflection of the kinematics x1 Deflection of the kinematics in the positive x direction y1 Deflection of the kinematics in the positive y direction Legend for representation of the kinematics (Page 36)
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located between axes A1 and A2.
The position 0.0 on the respective interconnected technology object defines the zero position of the axes A1 and A2 and the zero position of the axis A3 in the KCS. You define the distance of the zero position of the axis A3 to the KZP in y direction of the KCS using length L2.
You define the position of the FCS for zero position of the axes A1 and A2 using lengths L1 and L3. You shift the FCS in the negative z direction of the KCS using length LF.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

60

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Transformation area
The kinematics transformation covers the entire traversing range (Page 123) of the axes.

3.7.3.6

Tags: Roller picker

Roller picker 2D
You define the 2D delta picker kinematics systems using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 5 6 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4]
<TO>.Kinematics.Parameter[5]

0.001 to 1.0E12 0.001 to 1.0E12 -1.0E12 to 1.0E12
-1.0E12 to 1.0E12

Description
Roller picker 2D Roller picker 2D with orientation With zero position of the axes A1 and A2: Distance L1 of the FCS to the KZP in x direction of the kinematics coordinate system (KCS) Cam radius R1 for axis 1 Cam radius R2 for axis 2 Flange length LF before the flange coordinate system (FCS) in the negative z direction of the KCS With zero position of the axes A1 and A2: Distance L2 of the FCS to the KZP in z direction of the KCS

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

61

Basics 3.7 Kinematics types

Roller picker 3D
You define the 3D roller picker kinematics systems using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 7 8 9 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4]
<TO>.Kinematics.Parameter[5]

0.001 to 1.0E12 0.001 to 1.0E12 -1.0E12 to 1.0E12
-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[6]

-1.0E12 to 1.0E12

Description

Roller picker 3D (vertical)

Roller picker 3D with orientation (vertical)

Roller picker 3D with orientation (horizontal)

With zero position of the axes A1 and A2:

Distance L1 of the FCS to the KZP in x direction of the KCS

Cam radius R1 for axis 1

Cam radius R2 for axis 2

Flange length LF before the FCS in the negative z direction of the KCS

Roller picker Distance L2 of the zero position of the axis

vertical

A3 to the KZP in y direction of the KCS

Roller picker horizontal

With zero position of the axes A1 and A2:
Distance L2 of the FCS to the kinematics zero point (KZP) in y direction of the KCS

Roller picker vertical

With zero position of the axes A1 and A2:
Distance L3 of the FCS to the KZP in z direction of the KCS

Roller picker Distance L3 of the zero position of the axis

horizontal

A3 to the KZP in z direction of the KCS

S7-1500T Kinematics functions V5.0 in TIA Portal V16

62

Function Manual, 12/2019, A5E42062707-AB

3.7.4 3.7.4.1

Basics 3.7 Kinematics types
SCARA
SCARA 2D with orientation
The kinematics "SCARA 2D with orientation" (swivel arm) supports three axes and three degrees of freedom. The axes are configured as serial kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 A rotary axis A1 with rotation around the z axis of the kinematics coordinate system (KCS)
 A linear axis A2 in z direction of the KCS
 A rotational axis A4 (orientation axis) with rotation around z in the KCS
The kinematics consists of a base and an articulated arm for horizontal alignment, which are connected by revolute joints (axis A1). A linear stroke axis (axis A2) is fastened to the end of the articulated arm for the vertical alignment. The tool is fastened to the end of the linear axis. The orientation axis A4 enables a rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

63

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the side view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 Distance of the axis A1 to the KZP in z direction of the KCS L2 Distance of the axis A1 to the FCS in x direction of the KCS LF Distance of the FCS to the axis A1 in z direction of the FCS Deflection of the kinematics z1 Deflection of the axis A2 in the positive direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

64

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics Deflection of the kinematics 1 Deflection of the axis A1 in positive direction when 1 = 30.0°
Deflection of the axis A1 in negative direction when 1 = -60.0° Legend for representation of the kinematics (Page 36)
The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at the end of the articulated arm.
The following table shows the zero position of the axes:

Axis

Zero position

A1

The articulated arm points in x direction of the KCS.

A2

The axis A2 is at the position 0.0 of the interconnected technology object.

A4

At zero position of axes A1, the x axis of the FCS points in the direction of

the x axis of the KCS.

Compensation of mechanical axis couplings
You can configure a mechanical axis coupling of axis A4 to axis A2 for the kinematics. The kinematics transformation compensates for the configured mechanical axis coupling. The axis coupling between axis A4 and axis A2 is implemented as a leadscrew pitch. With a coupling factor of 1.0, 360.0° on axis A4 corresponds to a distance of -1.0 mm on axis A2.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

65

Basics 3.7 Kinematics types

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:
 Axis A1: -180.0°  1 < 180.0°
 Axis A2: No limiting
 Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.
You can process these kinematics only with the Motion Control instructions MC_MoveDirectAbsolute and MC_MoveDirectRelative or single-axis jobs.

3.7.4.2

SCARA 3D with orientation
The kinematics "SCARA (Selective Compliance Assembly Robot Arm) 3D with orientation" supports four axes and four degrees of freedom. The axes are configured as serial kinematics.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 A rotary axis A1 with rotation around the z axis of the kinematics coordinate system (KCS)
 A rotary axis A2 at distance L2 to A1 with rotation around z of the KCS
 A linear axis A3 at distance L3 to A2 with motion in z direction of the KCS
 A rotational axis A4 (orientation axis) with rotation around z in the KCS
The kinematics consists of a base and two levers for horizontal alignment, which are connected by revolute joints (axis A1 and A2). A linear axis (axis A3) is fastened to the end of the articulated arm for the vertical alignment. The tool is fastened to the end of the linear axis. The orientation axis A4 enables the rotary motion of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

66

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types Coordinate systems and zero position The graphic below shows the following in the side view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics
Zero position of the kinematics L1 Distance of the axis A1 to the KZP in z direction of the KCS L2 Distance of the axis A2 to the axis A1 in x direction of the KCS L3 Distance of the axis A3 to the axis A2 in x direction of the KCS LF Distance of the FCS to the axis A2 in z direction of the FCS Deflection of the kinematics z1 Deflection of the axis A3 in the positive direction Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

67

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics Deflection of the kinematics in the positive direction when 1 = 30.0° with positive joint position when 2 = 75.0° Deflection of the kinematics in the negative direction when 1 = -60.0° with negative joint position when 2 = -45.0° 1 Deflection of the axis A1 in positive direction when 1 = 30.0°
Deflection of the axis A1 in negative direction when 1 = -60.0° 2 The deflection of the axis A2 in the positive direction when 2 = 75.0° produces a posi-
tive joint position. The deflection of the axis A2 in negative direction when 2 = -45.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

68

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. The flange coordinate system (FCS) is located at the end of the axis A3.
The following table shows the zero position of the axes:

Axis A1 and A2 A3 A4

Zero position
The kinematics is elongated in the xKCS direction. The FCS is located at distance L1-LF from the KCS in z direction. At the zero position of axis A1 and A2, the x axis of the FCS points in the direction of the x axis of the KCS.

Compensation of mechanical axis couplings
You can configure the following mechanical coupled axes for the kinematics:
 Mechanical coupling of axis A1 to axis A2
 Mechanical coupling of axis A4 to axis A3
The kinematics transformation compensates for the configured mechanical axis couplings. With a coupling factor > 0.0, the kinematics transformation assumes that a positive motion of the axis A1 leads to a negative motion on the axis A2. The axis coupling between axis A4 and axis A3 is implemented as a leadscrew pitch. With a coupling factor of 1.0, 360.0° on axis A4 corresponds to a distance of -1.0 mm on axis A3.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1  180.0°  Axis A2: -180.0°  2  180.0°  Axis A3: No limiting  Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.
Note Singular positions The kinematics have singular positions (Page 128).
A singular position occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). Inverse transformation is not possible in this area. This position may result, e.g. in the event of suspended installation if the lengths L2 and L3 are the same size.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

69

Basics 3.7 Kinematics types
The graphic below shows examples of a movement in the direction of the singular joint position:
Permissible joint position Invalid joint position for transformation with L2 = L3

S7-1500T Kinematics functions V5.0 in TIA Portal V16

70

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

3.7.4.3

Tags: SCARA

SCARA 2D

You define the SCARA 2D kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics <TO>.Kinematics.Parameter[1]

Values 20 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[3]

0.001 to 1.0E

<TO>.Kinematics.Parameter[4]

-

<TO>.Kinematics.Parameter[5]

0 1 -1.0E12 to 1.0E12

Description
SCARA 2D with orientation
Distance of the axis A1 from the kinematics zero point in z direction of the kinematics coordinate system (KCS)
Distance L2 of the axis A2 from the axis A4 in x direction of the KCS
Distance of the flange coordinate system from the axis A2 in the negative z direction of the KCS
Mechanical axis coupling of axis A4 to A2 present/not present
Not present
Present
Mechanical axis coupling factor of axis A4 to axis A2

SCARA 3D

You define the SCARA 3D kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics <TO>.Kinematics.Parameter[1]

Values 10 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

0.001 to 1.0E12

<TO>.Kinematics.Parameter[3]

-

<TO>.Kinematics.Parameter[4] <TO>.Kinematics.Parameter[5]

0 1 -1.0E12 to 1.0E12 0.001 to 1.0E12

<TO>.Kinematics.Parameter[6]

-

<TO>.Kinematics.Parameter[7] <TO>.Kinematics.Parameter[8]

0 1 -1.0E12 to 1.0E12 -1.0E12 to 1.0E12

Description
SCARA 3D with orientation
Distance of the axis A1 from the kinematics zero point in z direction of the kinematics coordinate system (KCS)
Distance L2 of the axis A2 from the axis A1 in x direction of the KCS
Mechanical axis coupling of axis A1 to axis A2 present/not present
Not present
Present
Mechanical axis coupling factor of axis A1 to axis A2
Distance L3 of the axis A3 from the axis A2 in x direction of the KCS
Mechanical axis coupling of axis A4 to axis A3 present/not present
Not present
Present
Mechanical axis coupling factor of axis A4 to axis A3
Distance of the flange coordinate system from the axis A2 in the negative z direction of the KCS

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

71

Basics 3.7 Kinematics types

3.7.5

Articulated arm

3.7.5.1

Articulated arm 2D
The kinematics "Articulated arm 2D" supports two axes and two degrees of freedom. The axes are configured as serial kinematics with forced coupling of the flange system.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  A rotary axis A1 with the distances L1 in z direction of the KCS and L2 in x direction of the
KCS to the kinematics zero point  A rotary axis A2 at distance L3 to axis A1 The kinematics consists of a base and articulated arms, which are connected by revolute joints (axes A1, A2). Axes A1 and A2 move the articulated arm in the xz plane. Through a forced coupling between the axes and the flange system, the z axis of the FCS always points in the negative z direction of the KCS.
Coordinate systems and zero position
The graphic below shows the following in the side view:  The position of the axes and of the forced coupler point  The position of coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

72

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

 Forced coupler point
Zero position of the kinematics L1 Distance of the axis A1 to the kinematics zero point (KZP) in z direction of the KCS L2 Distance of the axis A1 to the KZP in x direction of the KCS L3 Distance of the axis A2 to the axis A1 in x direction of the KCS L4 Distance of the forced coupler point to the axis A2 in x direction of the KCS LF Distance of the FCS to the forced coupler point in z direction of the FCS Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 45.0°
Negative deflection of the axis A1 when 1 = -60.0° 2 The deflection of the axis A2 in the positive direction when 2 = 45.0° produces a posi-
tive joint position. The deflection of the axis A2 in negative direction when 2 = -15.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

73

Basics 3.7 Kinematics types

The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. You define the position of the axis A1 relative to the KZP using lengths L1 and L2. The axis A2 is located at distance L3 in x direction of the KCS from the axis A1.
The flange coordinate system (FCS) is located at the following distances from the axis A2 and the forced coupler point:
 Distance L4 to the axis A2 in x direction of the KCS
 Distance LF to the forced coupler point in the negative z direction of the KCS
The axis A2 and the flange system are force-coupled. With the force coupling, the z axis of the FCS always points in negative z direction of the KCS. The forced coupler point is located at distance L4 in x direction of the KCS from the axis A2.
The following table shows the zero position of the axes:

Axis

Zero position

A1

Length L3 points in x direction of the KCS.

A2

At zero position of the axis A1, the length L4 points in x direction of the

KCS.

Compensation of mechanical axis couplings
For the kinematics, you can configure a mechanical axis coupling of axis A1 to axis A2. The kinematics transformation compensates for the configured mechanical axis coupling. With a coupling factor > 0.0, the kinematics transformation assumes that a positive motion of the axis A1 leads to a negative motion on the axis A2.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: -180.0°  2 < 180.0°

S7-1500T Kinematics functions V5.0 in TIA Portal V16

74

Function Manual, 12/2019, A5E42062707-AB

3.7.5.2

Basics 3.7 Kinematics types
Articulated arm 2D with orientation
The kinematics "Articulated arm 2D with orientation" supports three axes and three degrees of freedom. The axes are configured as serial kinematics with forced coupling of the flange system. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  A rotary axis A1 with the distances L1 in z direction of the KCS and L2 in x direction of the
KCS to the kinematics zero point  A rotary axis A2 at distance L3 to axis A1  A rotary axis A4 (orientation axis) at distance L4 in x direction of the KCS from the axis
A2 The kinematics consists of a base and articulated arms, which are connected by revolute joints (axes A1, A2). Axes A1 and A2 move the articulated arm in the xz plane. Through a forced coupling between the axes and the flange system, the z axis of the FCS always points in the negative z direction of the KCS. The orientation axis A4 enables rotation of the tool.
Coordinate systems and zero position
The graphic below shows the following in the side view:  The position of the axes and of the forced coupler point  The position of coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

75

Basics 3.7 Kinematics types

 Forced coupler point
Zero position of the kinematics L1 Distance of the axis A1 to the kinematics zero point (KZP) in z direction of the KCS L2 Distance of the axis A1 to the KZP in x direction of the KCS L3 Distance of the axis A2 to the axis A1 in x direction of the KCS L4 Distance of the forced coupler point to the axis A2 in x direction of the KCS LF Distance of the FCS to the forced coupler point in z direction of the FCS Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 45.0°
Negative deflection of the axis A1 when 1 = -60.0° 2 The deflection of the axis A2 in the positive direction when 2 = 45.0° produces a posi-
tive joint position. The deflection of the axis A2 in negative direction when 2 = -15.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

76

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the base of the kinematics. You define the position of the axis A1 relative to the KZP using lengths L1 and L2. The axis A2 is located at distance L3 in x direction of the KCS from the axis A1.
The flange coordinate system (FCS) is located at the following distances from the axis A2 and the forced coupler point:
 Distance L4 to the axis A2 in x direction of the KCS
 Distance LF to the forced coupler point in the negative z direction of the KCS
The axis A2 and the flange system are force-coupled. With the force coupling, the z axis of the FCS always points in negative z direction of the KCS. The forced coupler point is located at distance L4 in x direction of the KCS from the axis A2.
The following table shows the zero position of the axes:

Axis

Zero position

A1

Length L3 points in x direction of the KCS.

A2

At zero position of the axis A1, the length L4 points in x direction of the

KCS.

A4

At the zero position of axis A1 and A2, the x axis of the FCS points in the

direction of the x axis of the KCS.

Compensation of mechanical axis couplings
For the kinematics, you can configure a mechanical axis coupling of axis A1 to axis A2. The kinematics transformation compensates for the configured mechanical axis coupling. With a coupling factor > 0.0, the kinematics transformation assumes that a positive motion of the axis A1 leads to a negative motion on the axis A2.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: -180.0°  2 < 180.0°  Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

77

Basics 3.7 Kinematics types

3.7.5.3

Articulated arm 3D
The kinematics "Articulated arm 3D" supports three axes and three degrees of freedom. The axes are configured as serial kinematics with forced coupling of the flange system.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  A rotary axis A1 with rotation around the z axis of the kinematics coordinate system
(KCS)  A rotary axis A2 with the distances L1 in z direction of the KCS and L2 in x direction of the
KCS to the kinematics zero point  A rotary axis A3 at distance L3 to axis A2 The kinematics consists of a base and articulated arms, which are connected by revolute joints (axes A1, A2 and A3). Axis A1 rotates the kinematics horizontally around the base. Axes A2 and A3 move the articulated arm. The kinematics enables an approximately spherical working area. Through a forced coupling between the axes and the flange system, the z axis of the FCS always points in the negative z direction of the KCS.
Coordinate systems and zero position
The graphic below shows the following in the side view (xz plane):  The position of the axes and of the forced coupler point  The position of coordinate systems KCS and FCS  The zero position of the axes  The positive/negative deflection of the axes A2 and A3 is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

78

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

 Forced coupler point
Zero position of the kinematics L1 Distance of the axis A2 to the kinematics zero point (KZP) in z direction of the KCS L2 Distance of the axis A2 to the KZP in x direction of the KCS L3 Distance of the axis A3 to the axis A2 in x direction of the KCS L4 Distance of the forced coupler point to the axis A3 in x direction of the KCS LF Distance of the FCS to the forced coupler point in z direction of the FCS Deflection of the kinematics 2 Positive deflection of the axis A2 when 2 = 45.0°
Negative deflection of the axis A2 when 2 = -60.0° 3 The deflection of the A3 in the positive direction when 3 = 45.0° produces a positive
joint position. The deflection of the A3 in negative direction when 3 = -15.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

79

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 30.0°
Negative deflection of the axis A1 when 1 = -60.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

80

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. You define the position of the axis A2 relative to the KZP using lengths L1 and L2. The axis A3 is located at distance L3 in x direction of the KCS from the axis A2.
The flange coordinate system (FCS) is located at the following distances from the axis A3 and the forced coupler point:
 Distance L4 to the axis A3 in x direction of the KCS
 Distance LF to the forced coupler point in the negative z direction of the KCS
The axis A3 and the flange system are force-coupled. With the force coupling, the z axis of the FCS always points in negative z direction of the KCS. The forced coupler point is located at distance L4 in x direction of the KCS from the axis A3.
The following table shows the zero position of the axes:

Axis

Zero position

A1

The articulated arms of the kinematics point in the x direction of the KCS.

A2

At zero position of the axis A1, the length L3 points in x direction of the

KCS.

A3

At zero position of the axes A1 and A2, the length L4 points in x direction of

the KCS.

Compensation of mechanical axis couplings
You can configure a mechanical axis coupling of axis A2 to axis A3 for the kinematics. The kinematics transformation compensates for the configured mechanical axis coupling. With a coupling factor > 0.0, the kinematics transformation assumes that a positive motion of the axis A2 leads to a negative motion on the axis A3.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: -180.0°  2 < 180.0°  Axis A3: -180.0°  3 < 180.0°
Note Singular positions The kinematics have singular positions (Page 128).
A singular position occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). Inverse transformation is not possible in this area.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

81

Basics 3.7 Kinematics types
The graphic below shows examples of permissible and impermissible joint positions for the transformation:

Permissible joint position Invalid joint position for the transformation

S7-1500T Kinematics functions V5.0 in TIA Portal V16

82

Function Manual, 12/2019, A5E42062707-AB

3.7.5.4

Basics 3.7 Kinematics types
Articulated arm 3D with orientation
The kinematics "Articulated arm 3D with orientation" supports four axes and four degrees of freedom. The axes are configured as serial kinematics with forced coupling of the flange system. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 A rotary axis A1 with rotation around the z axis of the kinematics coordinate system (KCS)
 A rotary axis A2 with the distances L1 in z direction of the KCS and L2 in x direction of the KCS to the kinematics zero point
 A rotary axis A3 at distance L3 to axis A2
 A rotary axis A4 (orientation axis) at distance L4 in x direction of the KCS from the axis A3
The kinematics consists of a base and articulated arms, which are connected by revolute joints (axes A1, A2 and A3). Axis A1 rotates the kinematics horizontally around the base. Axes A2 and A3 move the articulated arm. The kinematics enables an approximately spherical working area. Through a forced coupling between the axes and the flange system, the z axis of the FCS always points in the negative z direction of the KCS. The orientation axis A4 enables rotation of the tool.
Coordinate systems and zero position
The graphic below shows the following in the side view (xz plane):
 The position of the axes and of the forced coupler point
 The position of coordinate systems KCS and FCS
 The zero position of the kinematics
 The positive/negative deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

83

Basics 3.7 Kinematics types

 Forced coupler point
Zero position of the kinematics L1 Distance of the axis A2 to the kinematics zero point (KZP) in z direction of the KCS L2 Distance of the axis A2 to the KZP in x direction of the KCS L3 Distance of the axis A3 to the axis A2 in x direction of the KCS L4 Distance of the forced coupler point to the axis A3 in x direction of the KCS LF Distance of the FCS to the forced coupler point in z direction of the FCS Deflection of the kinematics 2 Positive deflection of the axis A2 when 2 = 45.0°
Negative deflection of the axis A2 when 2 = -60.0° 3 The deflection of the A3 in the positive direction when 3 = 45.0° produces a positive
joint position. The deflection of the A3 in negative direction when 3 = -15.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

84

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes  The position of coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 30.0°
Negative deflection of the axis A1 when 1 = -60.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

85

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. You define the position of the axis A2 relative to the KZP using lengths L1 and L2. The axis A3 is located at distance L3 in x direction of the KCS from the axis A2.
The flange coordinate system (FCS) is located at the following distances from the axis A3 and the forced coupler point:
 Distance L4 to the axis A3 in x direction of the KCS
 Distance LF to the forced coupler point in the negative z direction of the KCS
The axis A3 and the flange system are force-coupled. With the force coupling, the z axis of the FCS always points in negative z direction of the KCS. The forced coupler point is located at distance L4 in x direction of the KCS from the axis A3.
The following table shows the zero position of the axes:

Axis

Zero position

A1

The articulated arms of the kinematics point in the x direction of the KCS.

A2

At zero position of the axis A1, the length L3 points in x direction of the

KCS.

A3

At zero position of the axes A1 and A2, the length L4 points in x direction of

the KCS.

A4

At zero position of the axes A1, A2 and A3, the x axis of the FCS points in

the direction of the x axis of the KCS.

Compensation of mechanical axis couplings
You can configure a mechanical axis coupling of axis A2 to axis A3 for the kinematics. The kinematics transformation compensates for the configured mechanical axis coupling. With a coupling factor > 0.0, the kinematics transformation assumes that a positive motion of the axis A2 leads to a negative motion on the axis A3.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

86

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: -180.0°  2 < 180.0°  Axis A3: -180.0°  3 < 180.0°  Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.
Note Singular positions The kinematics have singular positions (Page 128).
A singular position occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). Inverse transformation is not possible in this area.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

87

Basics 3.7 Kinematics types
The graphic below shows examples of permissible and impermissible joint positions for the transformation:

Permissible joint position Invalid joint position for the transformation

S7-1500T Kinematics functions V5.0 in TIA Portal V16

88

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

3.7.5.5

Tags: Articulated arm

Articulated arm 2D
You define the 2D articulated arm kinematics systems using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 11 12 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4]

0.001 to 1.0E12 -

<TO>.Kinematics.Parameter[5] <TO>.Kinematics.Parameter[6] <TO>.Kinematics.Parameter[7]

0 1 -1.0E12 to 1.0E12 0.001 to 1.0E12 -1.0E12 to 1.0E12

Description
Articulated arm 2D
Articulated arm 2D with orientation
Distance L1 of the axis A1 to the kinematics zero point in z direction of the kinematics coordinate system (KCS)
Distance L2 of the axis A1 to the kinematics zero point in x direction of the KCS
Arm length L3 between the axes A1 and A2
Mechanical axis coupling of axis A1 to axis A2 present/not present
Not present
Present
Mechanical axis coupling factor of axis A1 to axis A2
Side length L4 between A2 and positive coupling point
Distance LF of the flange coordinate system (FCS) from the forced coupler point in the negative z direction of the KCS

Articulated arm 3D
You define the 3D articulated arm kinematics systems using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1]

Values 13 14 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

0.0 to 1.0E12

<TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4]

0.001 to 1.0E12 -

<TO>.Kinematics.Parameter[5] <TO>.Kinematics.Parameter[6]

0 1 -1.0E12 to 1.0E12 0.001 to 1.0E12

<TO>.Kinematics.Parameter[7]

-1.0E12 to 1.0E12

Description
Articulated arm 3D
Articulated arm 3D with orientation
Distance L1 of the axis A2 to the kinematics zero point in z direction of the KCS
Distance L2 of the axis A2 to the kinematics zero point in x direction of the KCS
Arm length L3 between the axes A2 and A3
Mechanical axis coupling of axis A2 to A3 present/not present
Not present
Present
Mechanical axis coupling factor from axis A2 to axis A3
Arm length L4 between the axis A3 and positive coupler point
Distance LF of the FCS from the forced coupler point in the negative z direction of the KCS

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

89

Basics 3.7 Kinematics types

3.7.6

Delta picker

3.7.6.1

Delta picker 2D
The kinematics "Delta picker 2D" supports two axes and two degrees of freedom The axes are configured as parallel kinematics.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of two rotary axes A1 and A2. The kinematics is modeled suspended and consists of an upper connecting plate, two upper arms and a lower connecting plate. The axes for moving the arms (axes A1, A2) are fastened to the upper connecting plate. The upper arms and the connecting rods connect the upper and lower connecting plates. The tool is suspended from the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS.
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

90

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Zero position of the kinematics D1 Distance of the axes from the center of the upper connecting plate (radius of the upper
connecting plate) D2 Distance of the hinge points of the connecting rods to the middle of the lower connect-
ing plate (radius of the lower connecting plate) L1 Length of the upper arms L2 Length of the connecting rods D1, D2, L1 and L2 are identical for the two arms of the kinematics. LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics The motion of the axes in the positive direction is the outward rotation of the upper arms. 1 Deflection of the axis A1 in the negative direction when 1 = -45.0° 2 Deflection of the axis A2 in the positive direction when 2 = 88.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

91

Basics 3.7 Kinematics types
The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The axes A1 and A2 are at distance D1 from the common center point (kinematics zero point). The flange coordinate system (FCS) is located on the bottom of the lower connecting plate with equal distance D2 to the hinge points of each arm. You shift the FCS in the negative z direction of the KCS using length LF. In the zero position of the axes A1 and A2, the upper arms point in the negative z direction of the KCS.
Transformation area
Only the outwardly bent joint position (Page 101) is permitted for the arms of the kinematics. You cannot traverse the axes beyond the extended position of the arms.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

92

Function Manual, 12/2019, A5E42062707-AB

3.7.6.2

Basics 3.7 Kinematics types
Delta picker 2D with orientation
The kinematics "Delta picker 2D with orientation" supports three axes and three degrees of freedom. The axes are configured as parallel kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  Two rotary axes A1, A2  One rotary axis A4 (orientation axis) The kinematics is modeled suspended and consists of an upper connecting plate, two upper arms and a lower connecting plate. The axes for moving the arms (axes A1, A2) are fastened to the upper connecting plate. The upper arms and the connecting rods connect the upper and lower connecting plates. The tool is suspended from the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS. The orientation axis A4 enables rotation of the tool.
Coordinate systems and zero position
The graphic below shows the following in the front view:  The position of the axes and the coordinate systems KCS and FCS  The zero positions of the axes A1 and A4  The deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

93

Basics 3.7 Kinematics types

Zero position of the kinematics D1 Distance of the axes from the center of the upper connecting plate (radius of the upper
connecting plate) D2 Distance of the hinge points of the connecting rods to the middle of the lower connect-
ing plate (radius of the lower connecting plate) L1 Length of the upper arms L2 Length of the connecting rods D1, D2, L1 and L2 are identical for the two arms of the kinematics. LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics The motion of the axes in the positive direction is the outward rotation of the upper arms. 1 Deflection of the axis A1 in the negative direction when 1 = -45.0° 2 Deflection of the axis A2 in the positive direction when 2 = 88.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

94

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

The kinematics coordinate system (KCS) with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The axes A1 and A2 are at distance D1 from the common center point (kinematics zero point).
The flange coordinate system (FCS) is located on the bottom of the lower connecting plate with equal distance D2 to the hinge points of each arm. You shift the FCS in the negative z direction of the KCS using length LF.
In the zero position of the axes A1 and A2, the upper arms point in the negative z direction of the KCS. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.

Transformation area
Only the outwardly bent joint position (Page 101) is permitted for the arms of the kinematics. You cannot traverse the axes beyond the extended position of the arms.

3.7.6.3

Delta picker 3D
The kinematics "Delta picker 3D" supports three axes and three degrees of freedom. The axes are configured as parallel kinematics.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of three rotary axes A1, A2 and A3.
The kinematics is modeled suspended and consists of an upper connecting plate, three upper arms and a lower connecting plate. The axes for moving the arms (axes A1, A2 and A3) are fastened to the upper connecting plate. The upper arms and the connecting rods connect the upper and lower connecting plates. The tool is suspended from the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

95

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the top view (xy plane):  The position of the kinematics coordinate system (KCS)  The angles of the axes A1, A2 and A3 to one another

1 Angle between the axes A1 and A2 2 Angle between the axes A2 and A3 Legend for representation of the kinematics (Page 36)
The following graphic shows the top view of the position of the flange coordinate system (FCS) in the xy plane of the lower connecting plate:

The graphic below shows the following in the front view (xz plane):  The position of the axis A1 and the coordinate systems KCS and FCS  The zero position of the axis A1  The positive/negative deflection of the axis A1 is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

96

Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Zero position of the kinematics D1 Distance of the axes from the center of the upper connecting plate (radius of the upper
connecting plate) D2 Distance of the hinge points of the connecting rods to the middle of the lower connect-
ing plate (radius of the lower connecting plate) L1 Length of the upper arms L2 Length of the connecting rods D1, D2, L1 and L2 are identical for the three arms of the kinematics. LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics The motion of the axes in the positive direction is the outward rotation of the upper arms. 1 Deflection of the axis A1 in negative direction when 1 = -50.0°
Deflection of the axis A1 in positive direction when 1 = 90.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

97

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The axes A1, A2 and A3 are at distance D1 from the common center point (kinematics zero point).
The FCS is located in the center on the bottom of the lower connecting plate with equal distance D2 to the hinge points of each arm. You shift the FCS in the negative z direction of the KCS using length LF.
In the zero position of the axes A1, A2 and A3, the upper arms point in the negative z direction of the KCS.

Transformation area
Only the outwardly bent joint position (Page 101) is permitted for the arms of the kinematics. You cannot traverse the axes beyond the extended position of the arms.

3.7.6.4

Delta picker 3D with orientation
The kinematics "Delta picker 3D with orientation" supports four axes and four degrees of freedom. The axes are configured as parallel kinematics.
The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 Three rotary axes A1, A2 and A3
 One rotary axis A4 (orientation axis)
The kinematics is modeled suspended and consists of an upper connecting plate, three upper arms and a lower connecting plate. The axes for moving the arms (axes A1, A2 and A3) are fastened to the upper connecting plate. The upper arms and the connecting rods connect the upper and lower connecting plates. The tool is attached to the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS. The orientation axis A4 enables rotation of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16

98

Function Manual, 12/2019, A5E42062707-AB

Coordinate systems and zero position
The graphic below shows the following in the top view (xy plane):  The position of the kinematics coordinate system (KCS)  The angles of the axes A1, A2 and A3 to one another

Basics 3.7 Kinematics types

1 Angle between the axes A1 and A2 2 Angle between the axes A2 and A3 Legend for representation of the kinematics (Page 36)
The following graphic shows the top view of the position of the flange coordinate system (FCS) in the xy plane of the lower connecting plate:

The graphic below shows the following in the front view (xz plane):  The position of the axis A1 and the coordinate systems KCS and FCS  The zero positions of the axes A1 and A4  The positive/negative deflection of the axis A1 is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16

Function Manual, 12/2019, A5E42062707-AB

99

Basics 3.7 Kinematics types

Zero position of the kinematics D1 Distance of the axes from the center of the upper connecting plate (radius of the upper
connecting plate) D2 Distance of the hinge points of the connecting rods to the middle of the lower connect-
ing plate (radius of the lower connecting plate) L1 Length of the upper arms L2 Length of the connecting rods D1, D2, L1 and L2 are identical for the three arms of the kinematics. LF Flange length before the FCS in the z direction of the KCS Deflection of the kinematics The motion of the axes in the positive direction is the outward rotation of the upper arms. 1 Deflection of the axis A1 in negative direction when 1 = -50.0°
Deflection of the axis A1 in positive direction when 1 = 90.0° Legend for representation of the kinematics (Page 36)

100

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The axes A1, A2 and A3 are at distance D1 from the common center point (kinematics zero point).
The FCS is located in the center on the bottom of the lower connecting plate with equal distance D2 to the hinge points of each arm. You shift the FCS in the negative z direction of the KCS using length LF.
In the zero position of the axes A1, A2 and A3, the upper arms point in the negative z direction of the KCS. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.

Transformation area
Only the outwardly bent joint position (Page 101) is permitted for the arms of the kinematics. You cannot traverse the axes beyond the extended position of the arms.

3.7.6.5

Permissible joint position for delta picker
Only the outwardly bent joint position is permitted for the arms of the delta picker kinematics. The graphic below shows examples of permissible and impermissible joint positions for the transformation:

Permissible joint position Invalid joint position for the transformation

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

101

Basics 3.7 Kinematics types

3.7.6.6

Tags: Delta picker

Delta picker 2D
You define the 2D delta picker kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1] <TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4] <TO>.Kinematics.Parameter[5]

Values 15 16 0.0 to 1.0E12 0.001 to 1.0E12 0.001 to 1.0E12 0.0 to 1.0E12 -1.0E12 to 1.0E12

Description Delta picker 2D Delta picker 2D with orientation Distance D1 (radius of the upper connecting plate) Length L1 of the upper arms Length L2 of connecting rods Distance D2 (radius of the lower connecting plate) Distance LF of the FCS from the lower connecting plate in the negative z direction of the KCS

Delta picker 3D
You define the 3D delta picker kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1] <TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3] <TO>.Kinematics.Parameter[4] <TO>.Kinematics.Parameter[5] <TO>.Kinematics.Parameter[6] <TO>.Kinematics.Parameter[7]

Values 17 18 0.0 to 1.0E12 0.001 to 1.0E12 0.001 to 1.0E12 0.0 to 1.0E12 90.001° to 179.998° 90.001° to 179.998° -1.0E12 to 1.0E12

Description Delta picker 3D Delta picker 3D with orientation Distance D1 (radius of the upper connecting plate) Length L1 of the upper arms Length L2 of connecting rods Distance D2 (radius of the lower connecting plate) Angle 1 between the axes A1 and A2 Angle 2 between the axes A2 and A3 Distance LF of the FCS from the lower connecting plate in the negative z direction of the KCS

102

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.7.7 3.7.7.1

Basics 3.7 Kinematics types
Cylindrical robot
Cylindrical robot 3D
The kinematics "Cylindrical robot 3D" supports three axes and three degrees of freedom. The axes are configured as serial kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:  A rotary axis A1 with rotation around the z axis of the kinematics coordinate system
(KCS)  A linear axis A2 in z direction of the KCS  A linear axis A3 in x direction of the KCS The kinematics consists of a base, a supporting column and a jib. Axis A1 rotates the supporting column with jib around the base. Axis A2 moves the jib vertically. Axis A3 moves the flange system horizontally on the jib. The kinematics enables a cylindrical working area.
Coordinate systems and zero position
The graphic below shows the following in the side view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero positions of the axes A1 and A2  The deflection of the kinematics is indicated (dashed)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

103

Basics 3.7 Kinematics types

Zero position of the axes A1 and A2 L1 At zero position of the axis A2:
Distance of the FCS to the kinematics zero point (KZP) and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS x1 Positive deflection of the axis A3 At the zero position of axis A3, the z axis of the FCS is located on the z axis of the KCS. For mechanical reasons, the kinematics shown cannot approach the zero position of the axis A3. Deflection of the kinematics x2 Positive deflection of the axis A3 z1 Positive deflection of the axis A2 Legend for representation of the kinematics (Page 36)

104

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L2 Distance of the axis A3 from the KZP in y direction of the KCS (negative value here) Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 30°
Negative deflection of the axis A1 when 1 = -75° Legend for representation of the kinematics (Page 36)
The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. You define the distance of the zero position of axis A2 in z direction of the KCS from the KZP using length L1. You define the distance of the axis A3 from the KNP in y direction of the KCS using length L2.
The flange coordinate system (FCS) is located on the axis A3, shifted by the length LF in negative z direction of the KCS.
The following table shows the zero position of the axes:

Axis

Zero position

A1

The jib with the axis A3 points in xKCS direction.

A2

The axis A2 is at the position 0.0 of the interconnected technology object.

A3

The axis A3 is at the position 0.0 of the interconnected technology object.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

105

Basics 3.7 Kinematics types
Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: No limiting  Axis A3: No limiting Note Singular positions The kinematics have singular positions (Page 128). A singular position occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). Inverse transformation is not possible in this area. This position may result, e.g. if the length L2 is 0.0 due to the design. The graphic below shows examples of permissible and impermissible joint positions for the transformation:
Permissible joint position Invalid joint position for transformation with L2 = 0.0

106

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.7.7.2

Basics 3.7 Kinematics types
Cylindrical robot 3D with orientation
The kinematics "Cylindrical robot 3D with orientation" supports four axes and four degrees of freedom. The axes are configured as serial kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 A rotary axis A1 with rotation around the z axis of the kinematics coordinate system (KCS)
 A linear axis A2 in z direction of the KCS
 A linear axis A3 in x direction of the KCS
 One rotary axis A4 (orientation axis)
The kinematics consists of a base, a supporting column and a jib. Axis A1 rotates the supporting column with jib around the base. Axis A2 moves the jib vertically. Axis A3 moves the flange system horizontally on the jib. The kinematics enables a cylindrical working area. The orientation axis A4 enables the rotary motion of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

107

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the side view (xz plane):  The position of the axes and the coordinate systems KCS and FCS  The zero positions of the axes A1 and A2  The deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L1 At zero position of the axis A2:
Distance of the FCS to the kinematics zero point (KZP) and flange length LF in z direction of the KCS LF Flange length before the FCS in the z direction of the KCS x1 Positive deflection of the axis A3 At the zero position of axis A3, the z axis of the FCS is located on the z axis of the KCS. For mechanical reasons, the kinematics shown cannot approach the zero position of the axis A3. Deflection of the kinematics x2 Positive deflection of the axis A3 z1 Positive deflection of the axis A2 Legend for representation of the kinematics (Page 36)

108

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types
The graphic below shows the following in the top view (xy plane):  The position of the axes and the coordinate systems KCS and FCS  The zero position of the kinematics  The positive/negative deflection of the kinematics is indicated (dashed)

Zero position of the kinematics L2 Distance of the axis A3 to the KZP in y direction of the KCS (negative value in this
case) Deflection of the kinematics 1 Positive deflection of the axis A1 when 1 = 30°
Negative deflection of the axis A1 when 1 = -75° Legend for representation of the kinematics (Page 36)
The KCS with the kinematics zero point (KZP) is located at the base of the kinematics. You define the distance of the zero position of axis A2 in z direction of the KCS from the KZP using length L1. You define the distance of the axis A3 from the KNP in y direction of the KCS using length L2.
The flange coordinate system (FCS) is located on the axis A3, shifted by the length LF in negative z direction of the KCS.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

109

Basics 3.7 Kinematics types

The following table shows the zero position of the axes:

Axis

Zero position

A1

The jib with the axis A3 points in xKCS direction.

A2

The axis A2 is at the position 0.0 of the interconnected technology object.

A3

The axis A3 is at the position 0.0 of the interconnected technology object.

A4

At the zero position of axis A1, the x axis of the FCS points in the direction

of the x axis of the KCS.

Compensation of mechanical axis couplings
You can configure a mechanical axis coupling of axis A4 to axis A2 for the kinematics. The kinematics transformation compensates for the configured mechanical axis coupling. The axis coupling between axis A4 and axis A2 is implemented as a leadscrew pitch. With a coupling factor of 1.0, 360.0° on axis A4 corresponds to a distance of -1.0 mm on axis A2.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axis A1: -180.0°  1 < 180.0°  Axis A2: No limiting  Axis A3: No limiting  Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.
Note Singular positions The kinematics have singular positions (Page 128).
A singular position occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). Inverse transformation is not possible in this area. This position may result, e.g. if the length L2 is 0.0 due to the design.

110

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types The graphic below shows examples of permissible and impermissible joint positions for the transformation:
Permissible joint position Invalid joint position for transformation with L2 = 0.0

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

111

Basics 3.7 Kinematics types

3.7.7.3

Tags: Cylindrical robot

Cylindrical robot 3D
You define the "Cylindrical robot 3D" kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics <TO>.Kinematics.Parameter[1]

Values 21 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3]

-1.0E12 to 1.0E12 -1.0E12 to 1.0E12

Description
Cylindrical robot 3D
Distance L1 of the zero position of the axis A2 to the kinematics zero point in z direction of the kinematics coordinate system (KCS)
Distance L2 between the axes A2 and A3 in y direction of the KCS
Distance of the flange coordinate system from the axis A3 in the negative z direction of the KCS

Cylindrical robot 3D with orientation
You define the "Cylindrical robot 3D with orientation" kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics <TO>.Kinematics.Parameter[1]

Values 22 -1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[2]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[3]

-1.0E12 to 1.0E12

<TO>.Kinematics.Parameter[4]

-

<TO>.Kinematics.Parameter[5]

0 1 -1.0E12 to 1.0E12

Description
Cylindrical robot 3D with orientation
Distance L1 of the zero position of the axis A2 to the kinematics zero point in z direction of the KCS
Distance L2 between the axes A2 and A3 in y direction of the KCS
Distance of the flange coordinate system from the axis A3 in the negative z direction of the KCS
Mechanical axis coupling of axis A4 to A2 present/not present
Not present
Present
Mechanical axis coupling factor of axis A4 to axis A2

112

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.7.8 3.7.8.1

Basics 3.7 Kinematics types
Tripod
Tripod 3D
The kinematics "Tripod 3D" supports three axes and three degrees of freedom. The axes are configured as parallel kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of three linear axes A1, A2 and A3.
The kinematics is modeled suspended and consists of an upper connecting plate, three arms and a lower connecting plate. The axes for the motion of the arms consist of rails with sliding carriages. The rails with the sliding carriages are fastened to the upper connecting plate. Connecting rods connect the sliding carriages to the lower connecting plate. The tool is suspended from the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

113

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the top view (xy plane):  The position of the kinematics coordinate system (KCS)  The angles of the axes A1, A2 and A3 to one another

1 Angle between the axes A1 and A2 2 Angle between the axes A2 and A3 Legend for representation of the kinematics (Page 36)
The following graphic shows the top view of the position of the flange coordinate system (FCS) in the xy plane of the lower connecting plate:

The graphic below shows the following in the front view (xz plane):  The position of the axis A1 and the coordinate systems KCS and FCS  The zero position of the axis A1  The positive deflection of the axis A1 is indicated (dashed)

114

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Zero position of the kinematics

D1 Distance of the upper hinge points of the connecting rods to the center of the upper connecting plate

D2 Distance of the lower hinge points of the connecting rods to the center of the lower connecting plate

L1 Length of the connecting rods

LF Flange length before the FCS in the z direction of the KCS



Angle between the upper connecting plate (xy plane of the KCS) and the rail of the axis

A1 (0.0°   < 90.0°)

D1, D2, L1 and  are identical for the three arms of the kinematics.

Deflection of the kinematics with deflection of the axis A1 in positive direction

Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

115

Basics 3.7 Kinematics types
The KCS with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The kinematics zero point is centered relative to the zero positions of the axes A1, A2 and A3. The FCS is located in the center point of the lower connecting plate with identical distance D2 to the joint points of each connecting rod. You shift the FCS in the negative z direction of the KCS using length LF. At the zero position, axes A1, A2 and A3 are in the x-y plane of the KCS.
Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axes A1, A2 and A3: 0.0  Travel distance

116

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.7.8.2

Basics 3.7 Kinematics types
Tripod 3D with orientation
The kinematics "Tripod 3D with orientation" supports four axes and four degrees of freedom. The axes are configured as parallel kinematics. The following graphic shows the principal configuration and the typical working area of the kinematics:

The kinematics consists of the following axes:
 Three linear axes A1, A2 and A3
 One rotary axis A4 (orientation axis)
The kinematics is modeled suspended and consists of an upper connecting plate, three arms and a lower connecting plate. The axes for the motion of the arms consist of rails with sliding carriages. The rails with the sliding carriages are fastened to the upper connecting plate. Connecting rods connect the sliding carriages to the lower connecting plate. The tool is suspended from the lower connecting plate. The parallelogram structures of the connecting rods keep the lower connecting plate parallel to the xy plane of the KCS. The orientation axis A4 enables the rotary motion of the tool.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

117

Basics 3.7 Kinematics types
Coordinate systems and zero position
The graphic below shows the following in the top view (xy plane):  The position of the kinematics coordinate system (KCS)  The angles of the axes A1, A2 and A3 to one another

1 Angle between the axes A1 and A2 2 Angle between the axes A2 and A3 Legend for representation of the kinematics (Page 36)
The following graphic shows the top view of the position of the flange coordinate system (FCS) in the xy plane of the lower connecting plate:

The graphic below shows the following in the side view:  The position of the axis A1 and the coordinate systems KCS and FCS  The zero position of the axis A1  The positive deflection of the axis A1 is indicated (dashed)

118

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

Zero position of the kinematics

D1 Distance of the upper hinge points of the connecting rods to the center of the upper connecting plate

D2 Distance of the lower hinge points of the connecting rods to the center of the lower connecting plate

L1 Length of the connecting rods

LF Flange length before the FCS in the z direction of the KCS



Angle between the upper connecting plate (xy plane of the KCS) and the rail of the axis

A1 (0.0°   < 90.0°)

D1, D2, L1 and  are identical for the three arms of the kinematics.

Deflection of the kinematics with deflection of the axis A1 in positive direction

Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

119

Basics 3.7 Kinematics types

The KCS with the kinematics zero point (KZP) is located at the center point of the upper connecting plate. The kinematics zero point is centered relative to the zero positions of the axes A1, A2 and A3.
The FCS is located in the center point of the lower connecting plate with identical distance D2 to the joint points of each connecting rod. You shift the FCS in the negative z direction of the KCS using length LF.
At the zero position, axes A1, A2 and A3 are in the x-y plane of the KCS. At the zero position of axis A4, the x axis of the FCS points in the direction of the x axis of the KCS.

Transformation area
The kinematics transformation covers the following traversing range (Page 123) of the axes:  Axes A1, A2 and A3: 0.0  Travel distance  Axis A4: No limiting
An angle greater than 360° can be defined for the orientation. But coordinate A of the tool center point (TCP) is mapped in the range -180° to +180°.

3.7.8.3

Tags: Tripod
You define the tripod kinematics using the following tags of the technology object:

Tags <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1] <TO>.Kinematics.Parameter[2] <TO>.Kinematics.Parameter[3]
<TO>.Kinematics.Parameter[4] <TO>.Kinematics.Parameter[5] <TO>.Kinematics.Parameter[6] <TO>.Kinematics.Parameter[7]

Values 23 24 0.0 to 1.0E12 0.001 to 1.0E12 0.0° to 89.999°
0.0 to 1.0E12 90.001° to 179.998° 90.001° to 179.998° -1.0E12 to 1.0E12

Description
Tripod 3D Tripod 3D with orientation Distance D1 (radius of the upper connecting plate) Length L1 of connecting rods Angle  between the linear axes and the x-y plane of the kinematics coordinate system Distance D2 (radius of the lower connecting plate) Angle 1 between the axes A1 and A2 Angle 2 between the axes A2 and A3 Distance of the flange coordinate system from the lower connecting plate in the negative z direction of the kinematics coordinate system

120

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.7 Kinematics types

3.7.9

User-defined kinematics systems
You can configure user-defined kinematics systems with corresponding axis interconnections:
 User-defined 2D
 User-defined 2D with orientation
 User-defined 3D
 User-defined 3D with orientation
The configuration supports you in the interconnection of the positioning axes in a userdefined kinematics. In addition, up to 32 tags for defining the geometry of your kinematics area available on the system level.
You have to program the user transformation (Page 130) of the Cartesian positions and the axis positions and axis dynamics. Predefined interfaces are available on the system level.

See also

User transformation (Page 130)

3.7.9.1

Tags: User-defined kinematics systems
You configure the user-defined kinematics systems using the following tags of the technology object:

Tag <TO>.Kinematics.TypeOfKinematics
<TO>.Kinematics.Parameter[1..32]

Values 31 32 33 34 -

Description User-defined 2D User-defined 2D with orientation User-defined 3D User-defined 3D with orientation Up to 32 user-specific parameters

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

121

Basics 3.8 Kinematics transformation

3.8

Kinematics transformation

The kinematics transformation is the conversion between the Cartesian coordinates of the kinematics motion and the setpoints for the individual kinematics axes:

 Forward transformation

Calculation of the Cartesian coordinates from the axis positions of the kinematics axes

 Inverse transformation

Calculation of the axis positions of the kinematics axes from the Cartesian coordinates

The kinematics transformation converts the position values and the dynamic values (velocity, acceleration).

The kinematics technology object provides the kinematics transformation for the predefined kinematics types on the system level. In the case of user-defined kinematics systems, you must calculate the user transformation (Page 130) in its own program.

3.8.1

Transformation for predefined kinematics systems

3.8.1.1

Reference points
The kinematics transformation uses the following reference points:
 Kinematics zero point (KZP)
 Zero positions of the kinematics axes
 Tool center point (TCP)
The positive direction of the axes for the kinematics transformation is dependent on the kinematics type (Page 35). Configure the positive direction on the positioning axis/synchronous axis technology object corresponding to the positive direction of the axis in the kinematics.

Kinematics zero point (KZP)
The coordinate origin of the kinematics coordinate system (KCS) is the KZP. You configure the geometry parameters of the kinematics starting from the KZP.

Zero positions of the kinematics axes
The position 0.0 on the positioning axis/synchronous axis technology object defines the zero position of the kinematics axis. Reference the axes in such a way that the axes indicate the position 0.0 in the zero position of the kinematics. The zero position of the kinematics depends on the kinematics type (Page 35).

Tool center point (TCP)
The position of the TCP results from the geometry parameters and the tool frame.

122

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.8.1.2

Basics 3.8 Kinematics transformation
Traversing range and transformation area
The transformation area is the area of the axis positions that the kinematics transformation covers. The kinematics type defines the transformation area for the individual kinematics axes. You will find information on the transformation area in the description of the individual kinematics systems (Page 35).
The hardware and software limit switches of an axis define the maximum traversing range and the working area. The working area of a kinematics axis can be greater than or less than the transformation area depending on the axis configuration:
 Work area > Transformation area
When a kinematics axis exits the transformation area during a kinematics motion, the kinematics technology object outputs the technology alarm 803. The kinematics motion is aborted and the axes stop with the maximum dynamic values configured for the axes (alarm reaction: Stop with maximum dynamic values of the axes).
 Work area  Transformation area
When a kinematics axis runs into the software limit switch, the positioning axis/synchronous axis technology object outputs the technology alarm 533. The axis stops with the maximum dynamic values configured for the axis (alarm reaction: Stop with maximum dynamic values). When the axis is stopped, the kinematics technology object outputs the technology alarm 801. The kinematics motion is aborted and the axes stop with the maximum dynamic values configured for the axes (alarm reaction: Stop with maximum dynamic values of the axes).
The following graphic shows the relationship between the working area of the axis and the transformation area:

 Mechanical end stop  Hardware limit switch for positioning axis/synchronous axis technology object  Software limit switch for positioning axis/synchronous axis technology object  Maximum traversing range of the axis  Work area of the axis  Transformation area
(here working area > transformation area)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

123

Basics 3.8 Kinematics transformation

3.8.1.3

Joint position spaces (kinematics-dependent)
Depending on the kinematics type, a kinematics system can reach Cartesian coordinates via various joint positions. The kinematics type (Page 35) defines the possible joint positions and the positive and negative joint position space. The joint positioning spaces are limited by the respective transformation areas. In addition, with the "Delta picker" kinematics type there are further limitations due to invalid joint positions and singular positions (Page 128) with the kinematics types "articulated arm", "SCARA 3D" and "cylindrical robot". Also note the resulting constructional limitations due to the installation location of the kinematics.
The kinematics technology object indicates the current joint position in the "<TO>.StatusKinematics.LinkConstellation" tag.
The kinematics system cannot exit the joint position space during a linear or circular motion. You can change the arm positioning space using single-axis motions and synchronous pointto-point motion (sPTP motion).

124

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation
Example: Kinematics type SCARA 3D
A "SCARA 3D" kinematics is to relocate an object from one pallet to another pallet. Due to a wall, the kinematics system cannot reach the second pallet without the axis A2 changing the joint position space. The figure below shows the kinematics in the top view (xy plane):

Zero position of the kinematics Deflection of the kinematics in the positive direction when 1 = 45.0° with positive joint position when 2 = 120.0° Deflection of the kinematics in the negative direction when 1 = -45.0° with negative joint position when 2 = -120.0° 1 Deflection of the axis A1 in positive direction when 1 = 45.0°
Deflection of the axis A1 in the negative direction when 1 = -45.0° 2 The deflection of the axis A2 in the positive direction when 2 = 120.0° produces a
positive joint position. The deflection of the axis A2 in negative direction when 2 = -120.0° produces a negative joint position. Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

125

Basics 3.8 Kinematics transformation
Example: "Articulated arm 3D" kinematics type
A kinematics "Articulated arm 3D" should move one object from one storage location to another. The kinematics cannot reach the second storage location because of the ceiling without axis A3 changing the arm positioning space. The figure below shows the kinematics in the side view (xz plane):

Zero position of the kinematics

Deflection of the kinematics in the positive direction when 1 = 10.0° with positive joint position when 2 = 35.0°

Deflection of the kinematics in the negative direction when 1 = -15.0° with negative joint position when 2 = -75.0°

2

Deflection of the axis A2 in the positive direction when 2 = 10.0°

Deflection of the axis A2 in negative direction when 2 = -15.0°

3

The deflection of the A3 in the positive direction when 3 = 35.0° produces a positive joint position.

The deflection of the A3 in negative direction when 3 = -75.0° produces a negative joint position.

Legend for representation of the kinematics (Page 36)

126

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation
Example: Kinematics type "cylindrical robot"
A kinematics "Cylindrical robot" should move an object from one storage location to another. The kinematics cannot reach the second storage location without axis A3 changing the arm positioning space. The figure below shows the kinematics in the top view (xy plane):

Zero position of the kinematics Deflection of the kinematics in positive direction when 1 = 30.0° Deflection of the kinematics in the negative direction when 1 = -75.0° 1 Deflection of the axis A1 in positive direction when 1 = 30.0°
Deflection of the axis A1 in the negative direction when 1 = -75.0° Legend for representation of the kinematics (Page 36)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

127

Basics 3.8 Kinematics transformation

3.8.1.4

Singular positions
Depending on the kinematics type, inverse transformation Cartesian coordinates are possible, which cannot be clearly converted into axis positions of the kinematics axes. This occurs when the zero point of the flange coordinate system (FCS) is located on the z-axis of the kinematics coordinate system (KCS). The Cartesian coordinates at which this behavior occurs are referred to as singular positions.
The following kinematics types of the kinematics technology object have singular positions.
 Articulated arm 3D
 Articulated arm 3D with orientation
 SCARA 3D with orientation
 Cylindrical robot 3D
 Cylindrical robot 3D with orientation

Behavior in singular positions
A path motion on or through a singular position is not possible. When the singular position is reached, the technology alarm 803 "Error during calculation of the transformation" is output (alarm reaction: Stop with maximum dynamic values of the axes). The kinematics system reduces the overruns of the dynamics caused by setpoints to the maximum dynamics of the axis. The reduction of the overruns of the dynamics can result in unexpected axis motion.

Dynamic increase in the vicinity of singular positions
If the path motion runs in the vicinity of singular positions, kinematics axes may accelerate or decelerate considerably and travel at very high speed. The dynamic limits of the axes may be exceeded because of this. If the dynamic limits of the axes with regard to speed, acceleration or deceleration are exceeded, this is displayed on the technology object data block of the corresponding axis and the technology alarm 511 "Dynamic limit is violated by the kinematics motion" is triggered. This is a warning and contains no alarm response. The kinematics motion is not stopped.
The size of the area in which this behavior occurs depends on the kinematics used.

128

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation
Possible measures
To prevent a dynamic increase in the vicinity of singular positions, take the following measures: 1. Plan the path motions in such a way that the kinematics do not travel in or in the vicinity
of singular positions. 2. Check whether travel with your kinematics in or in the vicinity of singular positions can be
prevented by blocked zones or software limit switches. 3. In the user program, send Motion Control jobs with activated dynamic adaptation to the
kinematics technology object.
Note Dynamic adaptation in the kinematics control panel The dynamic adaptation is not active in the kinematics control panel. The dynamic limits of the kinematics axes are not taken into account during a kinematics motion with the kinematics control panel.

3.8.1.5

Mechanical couplings (kinematics-dependent)
If the position of a kinematics axis changes due to the motion of another kinematics axis, these two axes are mechanically coupled. Mechanical couplings between two kinematics axes can arise for reasons of construction. For example, if the orientation axis of the "SCARA" kinematics is coupled to the spindle of a linear axis, the orientation changes due to the motion of the linear axis.
The kinematics transformation compensates for the mechanical couplings with a coupling factor. You specify the mechanical couplings and coupling factors depending on the kinematics type during configuration of the kinematics.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

129

Basics 3.8 Kinematics transformation

3.8.2

Transformation for user-defined kinematics systems

3.8.2.1

User transformation
Unlike for predefined kinematics types, you must calculate the transformation for userdefined kinematics systems in your own program. Like for predefined kinematics types, the kinematics technology object performs the following tasks:
 Processing of Motion Control instructions
 Monitoring functions
 Communication with the interconnected axes
You program the user transformation of the Cartesian coordinates and the axis-specific setpoints in the MC-Transformation [OB98] organization block. This programming includes the transformation of the positions and the dynamic values (velocity, acceleration, jerk). You freely define the parameters of a user-defined kinematics system in the tags of the kinematics technology object "<TO>.Kinematics.Parameter[1..32]" or under "Technology object > Configuration > Geometry".
When you add the MC-Transformation [OB98] in the TIA Portal, the system data block "TransformationParameter" is automatically created under "Program blocks > System blocks > Program resources". In the properties of the organization block under "General > Transformation", the MC-Transformation [OB98] indicates the number of the system data block "TransformationParameter". You write and read the axis-specific data or the Cartesian data of the kinematics to be transformed in the system data block "TransformationParameter".

130

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation

Programming

The graphic below shows the interfaces and the interaction of system performance and user transformation:

Processing by user program
System performance
The kinematics technology object automatically calls the MC-Transformation [OB98]. The MC-Transformation [OB98] contains the following start information:  Kinematics technology object that calls the MC-Transformation [OB98]  Required direction of the transformation (forward or inverse transformation)  Processing context of the transformation (current motion or motion planning)  Pointer to the system data block "TransformationParameter" (VARIANT) You evaluate this status information in your user program. In MC-Transformation [OB98]. you program the algorithms for the calculation of the axis-specific data or the Cartesian data of all user-defined kinematics systems. You read the kinematics parameters needed for this from the tags of the "<TO>.Kinematics.Parameter[1..32]" technology object. You write the result of the calculation to the "TransformationParameter" interface. The transformation parameters are then applied automatically to the kinematics technology object and processed further. The kinematics technology object outputs the setpoints to the kinematics axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

131

Basics 3.8 Kinematics transformation

Restrictions during transformation of multiple kinematics
Each kinematics technology object calls the MC-Transformation [OB98]. Only one kinematics can be transformed in an MC-Transformation [OB98]. Only one MC-Transformation [OB98] can be called in each servo clock.

3.8.2.2

MC-Transformation [OB98]

Reference declaration for system data block "TransformationParameter"
You must specify a reference to the data type for the system data block "TransformationParameter" in the "MC-Transformation [OB98]". For this purpose, you specify a tag with the following data type in the "Temp" area of the block interface:
"REF_TO TO_Struct_TransformationParameter_V1"
To enable access to the system data block "TransformationParameter", assign the data type "TO_Struct_TransformationParameter_V1" using the following casting command: #P ?= #TransformationParameters;
The declaration is described in a program example (Page 135).

132

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation

Block call

The MC-Transformation [OB98] is called in the Motion Control application cycle according to the configured priority. When the MC-Transformation [OB98] is called, the kinematics technology object assigns its parameters:

Parameter KinematicsObject ExecutionContext
TransformationType
TransformationParameters FunctionResult

Declaration INPUT INPUT
INPUT
InOut OUTPUT

Data type DB_ANY DINT
DINT
VARIANT DINT

Default value -
-
-

Description
Kinematics technology object for which the MC-Transformation [OB98] calculates the transformation when called.
Processing context of the MC-Transformation OB
0 MOTION_EXECUTION Calculation of the axis setpoints in the motion execution in the MC-Interpolator [OB92]. The calculated values are necessary for the current motion control.
1 NON_MOTION_EXECUTION The transformation is necessary for the motion planning (currently no motion).
Calculation called for
0 Forward transformation Calculation of the Cartesian parameters from the axis positions
1 Inverse transformation Calculation of the axis-specific parameters from the Cartesian parameters
Pointer to the system data block "TransformationParameter"
Return value of the MC-Transformation [OB98] to the kinematics technology object
0 Calculation performed and parameters output
 0 Error during calculation (user-defined) If an error occurs during the calculation, the kinematics technology object stops the motion. The kinematics technology object outputs a technology alarm with the error ID as an accompany value and deletes the job sequence. The value can be greater than or less than zero.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

133

Basics 3.8 Kinematics transformation

Priority

You configure the priority of the MC-Transformation [OB98] in the properties of the organization block under "General > Attributes > Priority". For the priority you can set values from 17 to 25 (default setting 25):
 The priority of MC-Transformation [OB98] must be at least one level lower than the priority of MC-Servo [OB91].
 The priority of MC-Transformation [OB98] must be at least one level higher than the priority of MC-Interpolator [OB92].

134

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation

Tags of the system data block "TransformationParameter"
The following table shows the tags in the system data block "TransformationParameter":

Tag AxisData.
a1Position a1Velocity a1Acceleration a2Position a2Velocity a2Acceleration a3Position a3Velocity a3Acceleration a4Position a4Velocity a4Acceleration CartesianData
xPosition xVelocity xAcceleration yPosition yVelocity yAcceleration zPosition zVelocity zAcceleration aPosition aVelocity aAcceleration LinkConstellation

Data type STRUCT_ Transformation AxisData_V1 LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL STRUCT_ Transformation CartesianData_V1 LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL LREAL DWORD

Description Axis-specific parameters
Position setpoint of the axis A1 Velocity setpoint of the axis A1 Acceleration setpoint of the axis A1 Position setpoint of the axis A2 Velocity setpoint of the axis A2 Acceleration setpoint of the axis A2 Position setpoint of the axis A3 Velocity setpoint of the axis A3 Acceleration setpoint of the axis A3 Position setpoint of the axis A4 Velocity setpoint of the axis A4 Acceleration setpoint of the axis A4 Cartesian parameters and joint position
x position x velocity x acceleration y position y velocity y acceleration z position z velocity z acceleration A-position (orientation) A velocity (orientation) A acceleration (orientation) Joint position area

3.8.2.3

Program example for a user-defined kinematics systems
The following describes a example for the user transformation in the MC-Transformation [OB98] (Page 132) of a 2D kinematics with the name "KinematicsUserDefined2D". For these kinematics, two transformation parameters were defined under "Technology object > Configuration > Geometry".
The interaction of system performance and user transformation is displayed in the figure in section "User transformation (Page 130)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

135

Basics 3.8 Kinematics transformation

The following table shows the declaration of the tags used:

Tag KinematicsObject TransformationType

Declaration Input Input

FunctionResult

Output

TransformationParam- InOut eters

P

Temp

GearRatioA1 GearRatioA2 InvalidCast

Temp Temp Constant

Data type DB_ANY DInt
DInt
Variant
REF_TO TO_Struct_ Transformation Parameter_V1 LReal
LReal
DInt

Description

Reference to the technology object

Transformation direction

0

Forward transformation

1

Inverse transformation

Transformation result

0

Successful

< 0

Error

Reference to the system data block "TransformationParameter" in the MC-Transformation [OB98]

Temporary tag for the casting command

Temporary tag for read the defined transformation parameters
Temporary tag for read the defined transformation parameters
Return value for an unsuccessful casting command

The program example is structured as follows:

 Casting command for access to the system data block "TransformationParameter"

 Evaluation of the technology object

 Read the defined transformation parameters

 Evaluation of the transformation direction

 Calculation of the Cartesian coordinates from the axis positions of the kinematics axes (forward transformation)

 Calculation of the axis positions of the kinematics axes from the Cartesian coordinates (backward transformation)

First, the example program is explained step by step. The program code is summarized in the section "Program example".

136

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation
Casting command for access to the system data block "TransformationParameter"
The casting command enables access the transformation parameters defined in the configuration. The variant pointer is passed on to the temporary variable using the casting command.
#P ?= #TransformationParameters; It is then tested whether the casting command was successful. The meaning of the specified InOut "Transformation Parameter" has the expected structure of the type TO_Struct_TransformationParameters_V1. If the casting command was not successful, the calculation is canceled and the tag "FunctionResult" gets the value "InvalidCast".
IF #P = NULL THEN #FunctionResult := #InvalidCast; RETURN;
END_IF;
Evaluation of the technology object
An IF query is used to evaluate whether the user-defined kinematics requires the transformation defined below.
IF #KinematicsObject = "KinematicsUserDefined2D" THEN
Read the defined transformation parameters
First, the transformation parameters defined in the configuration are read out. Two gears ratios were defined in this example.
#GearRatioA1 := "KinematicsUserDefined2D".Kinematics.Parameter[1]; #GearRatioA2 := "KinematicsUserDefined2D".Kinematics.Parameter[2];
Evaluation of the transformation direction
The transformation direction is evaluated in the next step. If the tag "TransformationType" has the value "0", the forward transformation is calculated. If the tag has the value "1", the backward transformation is calculated.
IF #TransformationType = 0 THEN

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

137

Basics 3.8 Kinematics transformation
Calculation of the Cartesian coordinates from the axis positions of the kinematics axes (forward transformation)
In the forward transformation, Cartesian data (position, velocity and acceleration) are calculated from the axis data. The forward transformation is first calculated in x direction and then in z direction.
#P^.CartesianData.xPosition := #P^.AxisData.a1Position * #GearRatioA1; #P^.CartesianData.xVelocity := #P^.AxisData.a1Velocity * #GearRatioA1; #P^.CartesianData.xAcceleration := #P^.AxisData.a1Acceleration * #GearRatioA1;
#P^.CartesianData.zPosition := #P^.AxisData.a2Position * #GearRatioA2; #P^.CartesianData.zVelocity := #P^.AxisData.a2Velocity * #GearRatioA2; #P^.CartesianData.zAcceleration := #P^.AxisData.a2Acceleration * #GearRatioA2;
The specification of the arm positioning space is not required in this example. The corresponding tag is set to zero.
#P^.CartesianData.LinkConstellation := 16#0000; If the transformation is successful, the tag "FunctionResult" receives the value "0".
#FunctionResult := 0;
Calculation of the axis positions of the kinematics axes from the Cartesian coordinates (backward transformation)
In the backward transformation, axis data (position, velocity and acceleration) are calculated from the Cartesian data. The backward transformation is first calculated for axis A1 and then for axis A2.
ELSIF #TransformationType = 1 THEN
#P^.AxisData.a1Position := #P^.CartesianData.xPosition / #GearRatioA1; #P^.AxisData.a1Velocity := #P^.CartesianData.xVelocity / #GearRatioA1; #P^.AxisData.a1Acceleration := #P^.CartesianData.xAcceleration / #GearRatioA1;
#P^.AxisData.a2Position := #P^.CartesianData.zPosition / #GearRatioA2; #P^.AxisData.a2Velocity := #P^.CartesianData.zVelocity / #GearRatioA2; #P^.AxisData.a2Acceleration := #P^.CartesianData.zAcceleration / #GearRatioA2;
If the transformation is successful, the tag "FunctionResult" receives the value "0".
#FunctionResult := 0;
END_IF; END_IF;

138

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.8 Kinematics transformation
Program example
The program example is summarized with Commentary in the following section:
SCL //Caste of the variant "TransformationParameters" to the referenced datatype //"TO_Struct_TransformationParameter_V1". //This has to be done in order to access the variant pointer, which references //the "TransformationParameters" where the "AxisData" and "CartesianData" for //the calculation of user transformation are stored. #P ?= #TransformationParameters;
//Check if cast of "TransformationParameters" was successfull. Otherwise abort calculation. IF #P = NULL THEN
#FunctionResult := #InvalidCast; RETURN; END_IF;
//Check if "KinematicsUserDefined2D" needs transformation. IF #KinematicsObject = "KinematicsUserDefined2D" THEN
//Read the user defined cartesian parameters. #GearRatioA1 := "KinematicsUserDefined2D".Kinematics.Parameter[1]; #GearRatioA2 := "KinematicsUserDefined2D".Kinematics.Parameter[2];
//Calculate the forward transformation "AxisData" -> "CartesianData". //The system fills the "AxisData" of "TransformationParameters" with values. //To calculate the "CartesianData" evaluate "AxisData". IF #TransformationType = 0 THEN
//Calculate the position, velocity and acceleration component for the x-vector. #P^.CartesianData.xPosition := #P^.AxisData.a1Position * #GearRatioA1; #P^.CartesianData.xVelocity := #P^.AxisData.a1Velocity * #GearRatioA1; #P^.CartesianData.xAcceleration := #P^.AxisData.a1Acceleration * #GearRatioA1;
//Calculate the position, velocity and acceleration component for the z-vector. #P^.CartesianData.zPosition := #P^.AxisData.a2Position * #GearRatioA2; #P^.CartesianData.zVelocity := #P^.AxisData.a2Velocity * #GearRatioA2; #P^.CartesianData.zAcceleration := #P^.AxisData.a2Acceleration * #GearRatioA2;
//Link constellation can be set to 0 here, hence it is not needed. #P^.CartesianData.LinkConstellation := 16#0000;
//Transformation was successfull. #FunctionResult := 0;

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

139

Basics 3.8 Kinematics transformation
SCL //Calculate the backward transformation "CartesianData" -> "AxisData". //The system fills the "CartesianData" of "TransformationParameters" with values. //To calculate the "AxisData" evaluate "CartesianData". ELSIF #TransformationType = 1 THEN
//Calculate the position, velocity and acceleration component for the first axis. #P^.AxisData.a1Position := #P^.CartesianData.xPosition / #GearRatioA1; #P^.AxisData.a1Velocity := #P^.CartesianData.xVelocity / #GearRatioA1; #P^.AxisData.a1Acceleration := #P^.CartesianData.xAcceleration / #GearRatioA1;
//Calculate the position, velocity and acceleration component for the second axis. #P^.AxisData.a2Position := #P^.CartesianData.zPosition / #GearRatioA2; #P^.AxisData.a2Velocity := #P^.CartesianData.zVelocity / #GearRatioA2; #P^.AxisData.a2Acceleration := #P^.CartesianData.zAcceleration / #GearRatioA2;
//Transformation was successfull. #FunctionResult := 0;
END_IF; END_IF;

3.8.3

Tags: Kinematics transformation
The following tags of the kinematics technology object are relevant for the kinematics transformation:

Tag Status values <TO>.StatusKinematics.Valid
<TO>.StatusKinematics.LinkConstellation <TO>.FlangeInKcs

Description

TRUE

Transformation/Cartesian values valid

FALSE Transformation/Cartesian values invalid

Joint position

Current transformation frame (with dynamics, setpoint reference)

140

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.9 Kinematics motions

3.9

Kinematics motions

With kinematics motions you move the kinematics through the three-dimensional space. Plan the kinematics motion in advance. Take into consideration the following:

 Reachable points of the kinematics

 Zones

 Transformation areas

 Joint position spaces

 Software limit switches of axes

The orientation motion is the motion of the Cartesian orientation and is performed at the same time for the kinematics motion. When motions are smoothed, the orientation motion is also smoothed. When the kinematics motion stops, the orientation motion also stops.

Reference system
The target position and the target orientation you specify for a kinematics motion can relate to the world coordinate system (WCS) or an object coordinate system (OCS).

3.9.1 3.9.1.1
3.9.1.2

Motion types
Linear motion
You can move a kinematics system with a linear motion. You define the linear motion using the Motion Control instructions "MC_MoveLinearAbsolute" (Page 258) and "MC_MoveLinearRelative" (Page 263). While the kinematics system is moved to an absolute position with a "MC_MoveLinearAbsolute" job, it is moved relative to the current position with a "MC_MoveLinearRelative" job. The kinematics system moves from the current position to the defined target position with a linear motion.
Circular motion
You can move a kinematics system with a circular motion. You define the circular motion using the Motion Control instructions "MC_MoveCircularAbsolute" (Page 269) and "MC_MoveCircularRelative" (Page 277). While the kinematics system is moved to an absolute position with a "MC_MoveCircularAbsolute" job, it is moved relative to the current position with a "MC_MoveCircularRelative" job.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

141

Basics 3.9 Kinematics motions
Definition of circular path ("CircMode")
With the "CircMode" parameter, you specify the definition of the circular path. Depending on this parameter value, the circular path is calculated as follows:
 Via an intermediate point and the end point ("CircMode" = 0)
With the intermediate point, you specify a point on the circular path, via which the end point is to be approached. The circular path is calculated from the starting, intermediate and end points. Only circular paths less than 360° can be traversed here.
 Via the circle center and the angle in a main plane ("CircMode" = 1)
The end point of the circular path is calculated with the circle center and the angle. With the "PathChoice" parameter, you specify whether the circular path is to be traversed in positive or negative direction of rotation. With the "CirclePlane" parameter, you specify the main plane in which the circular path is to be traversed.
 Via the circle radius and the end point in a main plane ("CircMode" = 2)
The circular path is calculated with the circle radius and the end point. This can yield up to four possible circular paths. With the "PathChoice" parameter, you specify which of the four possible circular paths is to be traversed. With the "CirclePlane" parameter, you specify the main plane in which the circular path is to be traversed.
When defining the intermediate and end points, circle center and angle or circle radius and end point, ensure that the information is consistent.
Orientation direction of the circular path ("PathChoice")
When the circular path is to be calculated using circle center and the angle, you use the "PathChoice" parameter to define whether the circular path is to be traversed in positive or negative direction of rotation.

 Positive direction of rotation ("PathChoice" = 0)  End point  Circle center  Starting point  End point  Positive direction of rotation ("PathChoice" = 1)

142

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.9 Kinematics motions
When the circular path is to be calculated using the circle radius and the end point, you use the "PathChoice" parameter to define which of the four possible circular paths is to be traversed. A distinction is made here between the positive and negative direction of rotation as well as between the longer and shorter circle segment.

 Longer positive circle segment ("PathChoice" = 2)  Shorter positive circle segment ("PathChoice" = 0)  Starting point  End point  Shorter negative circle segment ("PathChoice" = 1)  Longer negative circle segment ("PathChoice" = 3)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

143

Basics 3.9 Kinematics motions

3.9.1.3

Synchronous "point-to-point" motion
You can move a kinematics system with a synchronous "point-to-point" motion (sPTP motion). With the sPTP motion you can move a kinematics time- and motion-optimized, bypass single positions or change joint position spaces. The kinematics does not follow a specified path, but approaches the specified end point via the shortest distance.
You can predetermine axis positions or Cartesian coordinates for an sPTP motion. The single-axis motions are calculated from the start and target positions, which are moved synchronously. All kinematics axes are moved simultaneously and reach the given target position at the same time. The kinematics axis with the longest travel time determines the travel time of the sPTP motion.
The kinematics motion of the kinematics is determined by the dynamics and motion of the individual axes. The course of the TCP motion is derived from the travel motions and the dynamics of the individual axes.
To reduce the travel time of a sequence of motion jobs, blending is supported between sPTP motions and path motions.
A sequence of motion jobs can be, for example:
 Record product with defined motion
 Move product with sPTP motion as quickly as possible
 Place product with defined motion
Define the motion via the Motion Control instructions "MC_MoveDirectAbsolute" (Page 285) and "MC_MoveDirectRelative" (Page 292).

Target position

Define a corresponding target position for the kinematics. Specify an absolute or relative position for the orientation. While the kinematics system is moved to absolute position with a "MC_MoveDirectAbsolute" job, it is moved relative to the current position with a "MC_MoveDirectRelative" job.
The target positions can be specified Cartesian or axis-related. To do this, define the corresponding reference coordinate system. Enter axis-related coordinates in the machine coordinate system (MCS). Cartesian coordinates are defined in the world coordinate system (WCS) or in one of the object coordinate systems (OCS). If you enter Cartesian coordinates, you can also predetermine the arm positioning space and the arm position in the target position.

Dynamics of the synchronous "point-to-point" motion
The dynamics of the synchronous point-to-point motion are determined by factors. These factors are percental to the maximum values of velocity, acceleration, deceleration and jerk that you have configured for the individual axes under "Technology object > Configuration > Extended parameters > Dynamic default values".

144

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.9 Kinematics motions

3.9.2

Motion dynamics

3.9.2.1

Dynamics of kinematics motion and orientation motion
You specify the dynamic values (velocity, acceleration, jerk) of a kinematics motion for the corresponding Motion Control instruction.

Dynamic defaults
If you do not specify any dynamic values for motion jobs (default value "-1.0"), the dynamic defaults configured under "Technology object > Configuration > Extended parameters > Dynamics" are used for the kinematics motion. For the orientation motion you can only specify the dynamic values using the dynamic defaults.
If you change the dynamic defaults during an active motion, the changed values take effect only in the next motion job.

Dynamic limits of the kinematics
The configured dynamic limits of the kinematics configured under "Technology object > Configuration > Extended parameters > Dynamics" are taken into account during the motion execution. The dynamics of a motion can be restricted so that the dynamic limits of the kinematics are not exceeded. When you change the dynamic limits of the kinematics, the changes take effect immediately for the kinematics motion and orientation motion.

Dynamic limits of the kinematics axes
When a motion job is transmitted, the dynamic limits of the kinematics axes configured under "Technology object > Configuration > Extended parameters > Limits > Dynamic limits" are only taken into account if the Dynamic adaptation is active. The dynamics of the motion can be restricted so that the dynamic limits of the kinematics axes are not exceeded. When you change the dynamic limits of the kinematics axes during an active motion, the changed values only take effect with the next motion job.
Note Dynamic adaptation in the user program
Dynamic adaptation is only active if it is activated in the user program.
Note Dynamic adaptation in the kinematics control panel
The dynamic adaptation is not active in the kinematics control panel. The dynamic limits of the kinematics axes are not taken into account during a kinematics motion with the kinematics control panel.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

145

Basics 3.9 Kinematics motions
Dynamic adaptation
You set the dynamic adaptation under "Kinematics technology object > Configuration > Extended parameters > Dynamics". When dynamic adaptation is active, a velocity profile is calculated for the entire motion which takes into account the dynamic limits of the kinematics axes and the kinematics (<TO>.StatusPath.DynamicAdaption). Velocity and acceleration are included in the dynamic adaptation. Tangential and radial acceleration of the path is taken into account in acceleration. The jerk is not limited for dynamic adaptation.
Note Dynamic adaptation in the user program Dynamic adaptation is only active if it is activated in the user program.
Note Dynamic adaptation in the kinematics control panel The dynamic adaptation is not active in the kinematics control panel. The dynamic limits of the kinematics axes are not taken into account during a kinematics motion with the kinematics control panel.
The graphic below shows examples of a velocity curve with and without dynamic adaptation:

With dynamic adaptation
Without dynamic adaption
With dynamic adaptation without segmentation of the path, the velocity profile is calculated taking into consideration the dynamic limits of the kinematics axes which apply for the entire motion.
For dynamic adaptation with segmentation, the path is divided into individual equidistant segments. For each of these segments, the velocity profile is calculated taking into consideration the dynamic limits of the kinematics axes which apply for individual sections of the motion. The dynamic response is therefore adapted for individual sections of a motion.

146

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.9.2.2

Basics 3.9 Kinematics motions
Override
You can specify a velocity override for the kinematics (<TO>.Override.Velocity) using the technology object data block. You can specify a value between 0% and 200%. The velocity override acts on the velocity of the tool center point (TCP) along the path. If you change the velocity override of the kinematics, the change takes effect immediately for the kinematics motion and orientation motion.
The setpoint velocity of the motion is the velocity specified for the Motion Control instruction multiplied by the percentage value of the velocity override.
The axis-specific velocity override values do not take effect for kinematics motions.

3.9.3

Tags: Kinematics motions
The following technology object tags are relevant for motion control:

Tag Status values <TO>.StatusWord <TO>.StatusPath.CoordSystem
<TO>.Tcp
<TO>.StatusPath.Velocity <TO>.StatusPath.Acceleration <TO>.StatusPath.DynamicAdaption
<TO>.StatusMotionQueue.NumberOfCommands Override <TO>.Override.Velocity

Description

Status indicator for an active motion

Coordinate system of the active motion job

0

World coordinate system

1, 2, 3

Object coordinate system 1, 2, 3

Target coordinates of the kinematics motion in the world coordinate system

x, y, z, A

Current path velocity (setpoint reference)

Current path acceleration (setpoint reference)

Dynamic adaptation

0

No dynamic adaptation

1

Dynamic adaptation with segmentation of the path

2

Dynamic adaptation without segmentation of the path

Number of jobs in the job sequence

Velocity override

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

147

Basics 3.9 Kinematics motions

Tag

Description

Dynamic limits

<TO>.DynamicLimits.Path.Velocity

Dynamic limitation for the maximum velocity of the path

<TO>.DynamicLimits.Path.Acceleration

Dynamic limitation for the maximum acceleration of the path

<TO>.DynamicLimits.Path.Deceleration

Dynamic limitation for the maximum deceleration of the path

<TO>.DynamicLimits.Path.Jerk

Dynamic limitation for the maximum jerk of the path

<TO>.DynamicLimits.Orientation.Velocity

Dynamic limitation for the maximum velocity of the Cartesian orientation

<TO>.DynamicLimits.Orientation.Acceleration

Dynamic limitation for the maximum acceleration of the Cartesian orientation

<TO>.DynamicLimits.Orientation.Deceleration

Dynamic limitation for the maximum deceleration of the Cartesian orientation

<TO>.DynamicLimits.Orientation.Jerk

Dynamic limitation for the maximum jerk of the Cartesian orientation

Dynamic defaults

<TO>.DynamicDefaults.Path.Velocity

Default setting of the velocity of the path

<TO>.DynamicDefaults.Path.Acceleration

Default setting of the acceleration of the path

<TO>.DynamicDefaults.Path.Deceleration

Default setting of the deceleration of the path

<TO>.DynamicDefaults.Path.Jerk

Default setting of the jerk of the path

<TO>.DynamicDefaults.Orientation.Velocity

Default setting of the velocity of the Cartesian orientation

<TO>.DynamicDefaults.Orientation.Acceleration Default setting of the acceleration of the Cartesian orientation

<TO>.DynamicDefaults.Orientation.Deceleration Default setting of the deceleration of the Cartesian orientation

<TO>.DynamicDefaults.Orientation.Jerk

Default setting of the jerk of the Cartesian orientation

<TO>.DynamicDefaults.DynamicAdaption

Default setting of the dynamic adaptation

0

No dynamic adaptation

1

Dynamic adaptation with segmentation of the path

2

Dynamic adaptation without segmentation of the path

<TO>.DynamicDefaults.MoveDirect.VelocityFactor Factor for the velocity of the axis motions in relation to the respective maximum velocity of the axes with sPTP motion.

<TO>.DynamicDefaults.MoveDirect.AccelerationF Factor for the acceleration of the axis motions in relation to the re-

actor

spective maximum acceleration of the axes with sPTP motion.

<TO>.DynamicDefaults.MoveDirect.DecelerationF Factor for the deceleration of the axis motions in relation to the re-

actor

spective maximum deceleration of the axes with sPTP motion.

<TO>.DynamicDefaults.MoveDirect.JerkFactor

Factor for the jerk of the axis motions in relation to the respective maximum jerk of the axes with sPTP motion.

148

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.10 Conveyor Tracking

3.10

Conveyor Tracking
With conveyor tracking, the kinematics can follow a moving object coordinate system (OCS). The OCS is connected to a leading-value-capable technology object which represents the conveyor belt and is coupled in x direction.
Leading-value-capable technology objects are:
 Positioning axis
 Synchronous axis
 External encoder
 Leading axis proxy

Phases of conveyor tracking
The conveyor tracking proceeds in the following phases:  Detect product position on the conveyor  OCS is assigned to the product position  Tool center point (TCP) approaches position in the OCS  Move TCP in the OCS  Finish moving the kinematics with the OCS  Finish conveyor tracking

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

149

Basics 3.10 Conveyor Tracking
The following graphic shows the functionality of conveyor tracking using the example of a kinematics and a conveyor belt:

The products are transported to the room via a conveyor belt. The product position on the conveyor belt is recorded via a light barrier. The Motion Control instruction "MC_TrackConveyorBelt" assigns this product position to the object coordinate system 1 (OCS1). With the next kinematics motion job, the TCP moves to the specified position in the OCS1.
When this position is reached, the TCP follows the OCS1, the kinematics thus follows the first product on the conveyor. Further product-related steps are now possible via further path motion jobs with reference to the coupled OCS1.
The position of the pallet is defined by the OCS3 frame. A store the product on the pallet, a motion job to the OCS3 is required.
As soon as the kinematics travels to the OCS3, another "MC_TrackConveyorBelt" job can assign the OCS1 again and start the process again. Alternatively, another product can be assigned to the OCS2 beforehand and later be used for conveyor tracking.

150

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.10 Conveyor Tracking
Detect product position on the conveyor
No OCS is yet coupled in this phase (<TO>.StatusConveyor[1..3].TrackingState = 0).
When a product reaches a defined position on the conveyor, the position is detected, for example, via a measuring-input function with light barrier. The corresponding conveyor position is stored temporarily.
OCS is assigned to the product position
In this stage the status changes to "OCS assigned" (<TO>.StatusConveyor[1..3].TrackingState = 1).
To enable product tracking, the associated OCS frame must be known to the recorded product position on the conveyor.
The OCS is assigned to a leading-value-capable technology object via a "MC_TrackConveyorBelt" job with the "ConveyorBelt" parameter. The OCS is assigned to the product with the OCS frame ("ConveyorBeltOrigin") and the product position ("InitialObjectPosition"). The OCS is now coupled in x direction of the technology object. The OCS must be assigned to the product before the kinematics can follow the OCS.
The OCS can be moved in "TrackingState" = 1 or assigned to a different product or technology object. You can move the object coordinate systems with the same or different technology objects.
TCP approaches the position of the OCS
During this stage the status shows "TCP is approaching OCS" (<TO>.StatusConveyor[1..3].TrackingState = 2).
With the next kinematics motion job, the TCP moves to the specified position in the OCS The kinematics can be moved with the Motion Control instructions "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute". Program the approach by specifying an absolute target position in the coupled OCS.
Individual orientation motions and dynamic adaptation are not possible in this phase. The dynamics of the kinematics when approaching the position in the OCS results from the dynamics of the motion job and the dynamics of the product motion on the conveyor belt.
The OCS cannot be shifted or assigned to another technology object.
Before starting the motion, the status is "TrackingState" = 1. During the motion the "TrackingState" is = 2. When the motion is complete, the status changes to "TrackingState" = 3.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

151

Basics 3.10 Conveyor Tracking
Move TCP in the OCS
In this phase, the status is "TCP follows OCS" (<TO>.StatusConveyor[1..3].TrackingState = 3).
The TCP follows the technology object. The kinematics can now perform additional motions within the coupled OCS.
The kinematics can now be moved with following jobs:
 "MC_MoveLinearAbsolute" job and "MC_MoveLinearRelative" job
 "MC_MoveCircularAbsolute" job and "MC_MoveCircularRelative" job
Moving onto the conveyor belt and the first motion on the belt is only possible without blending. Blending is possible with other motions.
With a "MC_GroupInterrupt" job or a "MC_GroupStop" job, the path motion within the coupled OCS is stopped. The kinematics continues to follow the OCS. The status "TCP follows OCS" is retained.
With a "MC_GroupContinue" job, an interruption can be continued with a "MC_GroupInterrupt" job.
The path motions on the conveyor belt are canceled with a "MC_GroupStop" job. The path motion is restarted with a new job in the OCS.
Finish moving the kinematics with the OCS
In this stage the status changes to "OCS assigned" (<TO>.StatusConveyor[1..3].TrackingState = 1).
The kinematics is typically guided away from the conveyor after the motions within the coupled OCS have been completed.
Start a kinematics motion without reference to the coupled OCS either to a stationary position or to another coupled OCS. This OCS can also be assigned to another conveyor.
With the start of this motion, the status of "TrackingState" = 3 changes to "TrackingState" = 1.
The original OCS is still coupled with the technology object and can be approached again by the kinematics.
When a coupled OCS is approached again, the status changes according to the specified phases of "TrackingState" = 1 up to "TrackingState" = 3.

152

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.10 Conveyor Tracking
Finish conveyor tracking
In this stage the status changes to "OCS not assigned" (<TO>.StatusConveyor[1..3].TrackingState = 0). To enable the OCS again for its stationary function, the coupling must be terminated. The position of the OCS frame corresponds to the original configuration. The moving of the kinematics with this OCS must first be completed (<TO>.StatusConveyor[1..3].TrackingState = 1). The coupling of the OCS with the technology object is canceled via a "MC_SetOcsFrame" job or by a "MC_Reset" job with "Restart" = TRUE.
NOTICE Product and machine damage If the kinematics is coupled with a technology object, this leads to a motion abort. This can lead to product and machine damage. Terminate the motion of the leading-value-capable technology object.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

153

Basics 3.11 Zone monitoring

3.11

Zone monitoring
The zone monitoring has the following purposes:  Protection from collisions with mechanical installations  Triggering of process-related actions (signal zones)

WARNING No protection of personnel The zone monitoring is not suitable for protection of personnel. Implement suitable protective measures for protecting personnel, e.g. set up protective fences, install safety doors, etc.
Zones are geometric bodies you can use to describe and subdivide the workspace of a kinematics system. You can configure workspace zones and kinematics zones on the kinematics technology object. Workspace zones describe the environment of a kinematics system. Kinematics zones envelope the end point of a kinematics system (flange or tool). The following graphic shows the zones of a kinematics system:

Work zone Signal zone Blocked zone Flange zone and tool zone
154

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.11 Zone monitoring

Zone configuration
You can specify and activate/deactivate zones via the configuration of the kinematics technology object or in your user program using Motion Control instructions.

Zone monitoring
The zone monitoring checks all activated workspace zones (work zones, signal zones, blocked zones) for collision with all activated kinematics zones (flange zones, tool zones). The zone monitoring monitors the zones for all motions of the kinematics system:
 Kinematics motions via the user program or kinematics control panel
 Single axis motions via the user program or axis control panel
The status of the zone monitoring is indicated in the diagnostics (Page 215) and in the tags (Page 161) of the kinematics technology object.
If the zone monitoring detects a zone violation by a kinematics motion, the following reactions occur:

Zone violation Exiting the work zone
Entering an signal zone
Entering an blocked zone

Reaction

Description

Alarm with stop

The kinematics technology object outputs a technology alarm. The kinematics motion is stopped.

Alarm without The kinematics technology object outputs a technology

stop

alarm. The kinematics motion will be continued.

Alarm with stop

The kinematics technology object outputs a technology alarm. The kinematics motion is stopped. The kinematics violates the zone by the length of the brake path at a minimum.

The kinematics technology object outputs a technology alarm following zone violations by single axis motions. The positioning axis/synchronous axis technology object outputs a technology alarm. The single axis motion is not aborted. You can abort the single axis motion in the application.

In addition to the zones of the kinematics technology object, you limit the travel space of the kinematics by the software limit switches of the axes.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

155

Basics 3.11 Zone monitoring

Retracting after a zone violation
Once you have acknowledged the technology alarm on the kinematics technology object, you can move the kinematics system again.
NOTICE Zone monitoring for violated zone deactivated after acknowledgment
After you have acknowledged the technology alarm on the kinematics technology object, the zone monitoring is deactivated for the violated zone until the kinematics exits the violated blocked zone / signal zone or enters the violated work zone again. You can move the kinematics in all directions including again into the violated blocked zone / signal zone or from the work zone.
Take into consideration the travel direction when retracting the kinematics.
Monitor retraction in the application. The zone monitoring status is still displayed in the data block technology object.
After the kinematics has exited the violated blocked zone / signal zone again or entered the violated work zone again, zone monitoring is activated again for this zone. A new technology alarm is therefore triggered when the zone is violated again.

See also

Tags: Zone monitoring (Page 161)

3.11.1

Workspace zones
Workspace zones describe the environment of a kinematics system. You define workspace zones in the world coordinate system (WCS) or in the object coordinate system (OCS). You can configure and activate/deactivate up to ten workspace zones. The following table shows the workspace zones of the kinematics technology object:

Workspace zone Work zone Signal zone
Blocked zone

Description Work zones define areas in which kinematics zones may move. Signal zones indicate the following: · Kinematics zone is entering the signal zones · Kinematics zone is located in the signal zone
Blocked zones define areas in which a kinematics zone must not enter.

156

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.11 Zone monitoring

Work zone

With work zones you limit the possible travel space of the kinematics or define several possible work areas. You can specify several work zones. Only one work zone can be activated at a given time. If no work zone is activated, the entire traversing space of the kinematics is regarded as the work area.
Kinematics zones must be located within work zones. When a kinematics zone exits a work zone, the kinematics technology object outputs the technology alarm 806 (alarm reaction: Stop with maximum dynamic values of the kinematics). The axes involved in the kinematics motion stop with the maximum dynamic values configured for the kinematics technology object. All jobs in the job sequence are canceled.

Signal zone

Signal zones are areas within the traversing space of the kinematics. Signal zones indicate a zone violation by a kinematics zone but do not trigger a stop of the kinematics motion. Signal zones can be located outside the work zone to some extent.
When a kinematics zone violates an signal zone, the kinematics technology object outputs the technology alarm 807 (no alarm reaction).

Blocked zone

Blocked zones are areas within the traversing space of the kinematics in which a kinematics zone must not enter (e.g. control cabinet, protective wall). Blocked zones can be located outside the work zone to some extent.
When a kinematics zone violates an blocked zone, the kinematics technology object outputs the technology alarm 806 (alarm reaction: Stop with maximum dynamic values of the kinematics). The axes involved in the kinematics motion stop with the maximum dynamic values configured for the kinematics technology object. All jobs in the job sequence are canceled.

3.11.2

Kinematics zones
Kinematics zones are related to the working point / flange of a kinematics and move with the kinematics. The zone monitoring checks the kinematics zones for penetration with workspace zones. With kinematics zones you expand the monitored area beyond the tool center point (TCP). You can configure and activate/deactivate up to nine kinematics zones. The following table shows the kinematics zones of the kinematics technology object:

Kinematics zone Tool zone Flange zone

Reference system TCS FCS

Description Tool zones envelope the tool or parts of the tool. Flange zones envelope the flange or parts of the flange.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

157

Basics 3.11 Zone monitoring

Tool zone

You define tool zones in the tool coordinate system (TCS). The following graphic shows a spherical tool zone:

Flange zone

You define flange zones in the flange coordinate system (FCS). The following graphic shows a cylindrical flange zone:

In this example, a shift by the height of the flange zone in negative z direction of the FCS has been defined.

158

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

3.11.3 Sphere

Basics 3.11 Zone monitoring
Zone geometry
You can configure zones with the following geometric bodies:  Sphere  Cuboid  Cylinder You specify the position of the zero point of the zone coordinate system in the reference coordinate system. You specify the dimensions and rotation of the body starting from this zero point.
You define a sphere starting from the zero point using the radius:

r

Radius of the sphere

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

159

Basics 3.11 Zone monitoring

Cuboid

You define a cuboid starting from the zero point using the edge lengths in x, y and z direction:

Cylinder

Lx Edge length in x direction of the zone coordinate system Ly Edge length in y direction of the zone coordinate system Lz Edge length in z direction of the zone coordinate system
You define a cylinder starting from the zero point using the radius of the base and the cylinder height:

r

Radius of the base of the cylinder

Lz Height of the cylinder in z direction of the zone coordinate system

160

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Basics 3.11 Zone monitoring

3.11.4

Tags: Zone monitoring
The following tags of the kinematics technology object are relevant for the zone monitoring:

Tag Zone configuration <TO>.WorkspaceZone[1..10] <TO>.KinematicsZone[2..10]
Status values <TO>.StatusWorkspaceZone[1..10] <TO>.StatusKinematicsZone[2..10] <TO>.StatusZoneMonitoring.WorkingZones
<TO>.StatusZoneMonitoring.BlockedZones
<TO>.StatusZoneMonitoring.SignalizingZones
<TO>.StatusZoneMonitoring.KinematicsZones

Description
Configuration of the workspace zones Configuration of the kinematics zones The <TO>.KinematicsZone[1] zone is the tool center point (TCP) and is always activated.
Status of the workspace zones Status of the kinematics zones Display of violated work zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of violated blocked zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of approached signal zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of kinematics zones that violate workspace zones The bit number 1 indicates the monitoring status of the TCP. The bit numbers 2 to 10 correspond to the configured zone numbers.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

161

Version overview

4

For S7-1500T Motion Control, a distinction is made between the version of the technology, the technology objects and the Motion Control instructions.
The version of a technology object or a Motion Control instruction is indicated in the properties of the technology object in the "General > Information" tab, "Version" field.

Compatibility list
The table below shows the compatibility of the technology version with the CPU version:

CPU V2.8

Technology Technology object

V5.0

Kinematics V5.0

Motion Control instruction MC_GroupInterrupt V5.0 MC_GroupContinue V5.0 MC_GroupStop V5.0 MC_MoveLinearAbsolute V5.0 MC_MoveLinearRelative V5.0 MC_MoveCircularAbsolute V5.0 MC_MoveCircularAbsolute V5.0 MC_MoveDirectAbsolute V5.0 MC_MoveDirectRelative V5.0 MC_TrackConveyorBelt V5.0 MC_DefineWorkspaceZone V5.0 MC_DefineKinematicsZone V5.0 MC_SetWorkspaceZoneActive V5.0 MC_SetWorkspaceZoneInactive V5.0 MC_SetKinematicsZoneActive V5.0 MC_SetKinematicsZoneInactive V5.0 MC_DefineTool V5.0 MC_SetTool V5.0 MC_SetOcsFrame V5.0 MC_KinematicsTransformation V5.0 MC_InverseKinematicsTransformation V5.0

162

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Version overview

CPU V2.5

Technology Technology object

V4.0

Kinematics V4.0

Motion Control instruction MC_GroupInterrupt V4.0 MC_GroupContinue V4.0 MC_GroupStop V4.0 MC_MoveLinearAbsolute V4.0 MC_MoveLinearRelative V4.0 MC_MoveCircularAbsolute V4.0 MC_MoveCircularAbsolute V4.0 MC_DefineWorkspaceZone V4.0 MC_DefineKinematicsZone V4.0 MC_SetWorkspaceZoneActive V4.0 MC_SetWorkspaceZoneInactive V4.0 MC_SetKinematicsZoneActive V4.0 MC_SetKinematicsZoneInactive V4.0 MC_DefineTool V4.0 MC_SetTool V4.0 MC_SetOcsFrame V4.0

Version-dependent organization block MC-LookAhead [OB97]
If you change of a technology version V4.0 to  V5.0, an organization block (OB) MCLockAhead [OB97] is automatically created.
When changing a technology version V4.0 to  V5.0, you still have the same options as with a technology version V4.0.
If you use multiple kinematics, only one MC-LockAhead [OB97] is used for all kinematics used. The movement preparation of the kinematics technology object is calculated in the MC-LookAhead [OB97] organization block.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

163

Configuring

5

5.1

Adding a kinematics technology object

The following describes how to add a kinematics technology object in the project tree.

Requirement

A project with a CPU S7-1500T is created.

Procedure

To add a kinematics technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology Objects" folder. 3. Double-click "Add new object".
The "Add new object" dialog opens. 4. Select "TO_Kinematics". You can infer the function of the technology object from the
displayed description. 5. In the "Name" input field, adapt the name of the kinematics to your requirements. 6. To change the suggested data block number, select the "Manual" option. 7. To add your own information about the technology object, click "Additional information". 8. To open the configuration after adding the technology object, select the "Add new and
open" check box. 9. To add the technology object, click "OK".

Result

The new kinematics technology object was created and placed in the "Technology objects" folder of the project tree.

164

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2

Configuring the kinematics technology object

5.2.1

Configuration - Basic Parameters
Configure the basic properties of the kinematics technology object in the "Basic Parameters" configuration window.

Kinematics name
Define the name of the kinematics in this field. The technology object is listed under this name in the project tree. The variables of the technology object can be used in the user program under this name.

Kinematics type
Select the desired kinematics type (Page 35) in this drop-down list.

Units of measure
In the drop-down list, select the desired units of measure (Page 22) for the position, velocity, angle and angular velocity of the kinematics.
If you wish to use six decimal places in the selected unit, select the check box "Use position values with higher resolution".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

165

Configuring 5.2 Configuring the kinematics technology object

5.2.2

Configuration - Interconnections
Configure the axes of kinematics in the "Interconnections" configuration window.

Kinematics axes
You can interconnect a kinematics technology object with positioning axes and synchronous axes which are already created in the project. In the drop-down list, select the desired axes depending on the kinematics type (Page 35). You can directly call the configuration of the selected technology object using the button. Configure the interconnected technology objects as linear or rotary axes according to the kinematics type.
Depending on the kinematics type, the following kinematics axes are relevant:

Kinematics type
2D 2D with orientation 3D 3D with orientation x relevant - Not relevant

Kinematics axis A1 x x x x

Kinematics axis A2 x x x x

Kinematics axis A3 x x

Orientation axis A4 x x

See also

Interconnection rules (Page 20)

166

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.3

Configuration - Geometry

5.2.3.1

Configuration - Geometry (Cartesian portal)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS) depending on the kinematics type:
 Kinematics type "Cartesian portal 2D" and "Cartesian portal 2D with orientation"

Field Length L1
Length L2
Flange length LF

Description
Define the distance of the zero position of the A1 axis to the kinematics zero point (KZP) in x direction of the KCS
Define the distance of the zero position of the A2 axis to the kinematics zero point in z direction of the KCS
Define the distance of the flange coordinate system (FCS) from the axis A2 in the negative z direction of the KCS in this field.

 Kinematics type "Cartesian portal 3D" and "Cartesian portal 3D with orientation"

Field Length L1 Length L2 Length L3 Flange length LF

Description
Define the distance of the zero position of the A1 axis to the kinematics zero point in x direction of the KCS in this field.
Define the distance of the zero position of the A2 axis to the kinematics zero point in y direction of the KCS in this field.
Define the distance of the zero position of the A3 axis to the kinematics zero point in z direction of the KCS in this field.
Define the distance of the flange coordinate system from the axis A3 in the negative z direction of the KCS in this field.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

167

Configuring 5.2 Configuring the kinematics technology object

Representation in kinematics trace
In these fields, define the scaling in which the kinematics is displayed in the kinematics trace, depending on the kinematics type:
 Kinematics type "Cartesian portal 2D" and "Cartesian portal 2D with orientation"

Field x minimum x maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

 Kinematics type "Cartesian portal 3D" and "Cartesian portal 3D with orientation"

Field x minimum x maximum y minimum y maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative y direction in this field.
Define the dimensioning of the kinematics in the positive y direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

See also

Cartesian portal (Page 37)

168

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.3.2

Configuration - Geometry (roller picker)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS) depending on the kinematics type:
 Kinematics type "Roller picker 2D" and "Roller picker 2D with orientation"

Field Radius R1 Radius R2 Length L1
Length L2
Flange length LF

Description
Define the cam radius for the axis A1 in this field.
Define the cam radius for the axis A2 in this field.
Define the distance of the flange coordinate system (FCS) to the kinematics zero point (KZP) in x direction of the KCS on zero position of the axes A1 and A2 in this field.
Define the distance of the FCS to the kinematics zero point including the flange length LF in z direction of the KCS on zero position of the axes A1 and A2 in this field.
Define the flange length before the FCS in the negative z direction of the KCS in this field.

 Kinematics type "Roller picker 3D (vertical)", and "Roller picker 3D with orientation (vertical)" and "Roller picker 3D with orientation (horizontal)"

Field Radius R1 Radius R2 Length L1 Length L2
Length L3
Flange length LF

Description
Define the cam radius for the axis A1 in this field.
Define the cam radius for the axis A2 in this field.
Define the distance of the FCS to the kinematics zero point in x direction of the KCS in this field.
For kinematics type "Roller picker 3D (vertical)" and "Roller picker 3D with orientation (vertical)":
Define the distance of the A3 axis to the kinematics zero point in y direction of the KCS in this field.
For kinematics type "Roller picker 3D with orientation (horizontal)":
Define the distance of the FCS to the kinematics zero point in y direction of the KCS in this field.
For kinematics type "Roller picker 3D (vertical)" and "Roller picker 3D with orientation (vertical)":
Define the distance of the FCS to the kinematics zero point in z direction of the KCS in this field.
For kinematics type "Roller picker 3D with orientation (horizontal)":
Define the distance of the A3 axis to the kinematics zero point in z direction of the KCS in this field.
Define the flange length before the FCS in the negative z direction of the KCS in this field.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

169

Configuring 5.2 Configuring the kinematics technology object

Representation in kinematics trace
In these fields, define the scaling in which the kinematics is displayed in the kinematics trace, depending on the kinematics type:
 Kinematics type "Roller picker 2D" and "Roller picker 2D with orientation"

Field x minimum x maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

 Kinematics type "Roller picker 3D (vertical)", and "Roller picker 3D with orientation (vertical)" and "Roller picker 3D with orientation (horizontal)"

Field x minimum x maximum y minimum y maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative y direction in this field.
Define the dimensioning of the kinematics in the positive y direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

See also

Roller picker (Page 48)

170

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.3.3

Configuration - Geometry (SCARA)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS):
 Kinematics type "SCARA 2D with orientation"

Field Length L1
Length L2
Flange length LF

Description
Define the distance of the A1 axis to the kinematics zero point (KZP) in z direction of the KCS
Define the distance of the A1 axis to the A2 axis in x direction of the KCS in this field.
Define the distance of the flange coordinate system (FCS) from the axis A2 in the negative z direction of the KCS in this field.

 Kinematics type "SCARA 3D with orientation"

Field Length L1 Length L2 Length L3 Flange length LF

Description
Define the distance of the A1 axis to the kinematics zero point (KZP) in z direction of the KCS
Define the distance of the A1 axis to the A2 axis in x direction of the KCS in this field.
Define the distance of the A2 axis to the A3 axis in x direction of the KCS in this field.
Define the distance of the flange coordinate system (FCS) from the axis A3 in the negative z direction of the KCS in this field.

Mechanical axis coupling
The kinematics transformation compensates for the configured mechanical axis couplings. If you set a mechanical axis coupling for a first axis to a second axis, the setting "Modulo" must not be activated for the first axis.
You can configure the following mechanical axis couplings for the kinematics "SCARA 2D with Orientation":
 Mechanical coupling of axis A4 to axis A2

You can configure the following mechanical axis couplings for the kinematics "SCARA 3D with Orientation":  Mechanical coupling of axis A1 to axis A2  Mechanical coupling of axis A4 to axis A3 Enter the desired coupling factor in the "Compensation factor" fields.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

171

Configuring 5.2 Configuring the kinematics technology object

Representation in kinematics trace
In these fields, define for the "SCARA 2D with Orientation" and the "SCARA 3D with Orientation" in which scaling the kinematics is displayed in the kinematics trace:

Field z minimum z maximum

Description Define the dimensioning of the kinematics in the negative z direction in this field. Define the dimensioning of the kinematics in the positive z direction in this field.

See also

SCARA (Page 63)

5.2.3.4

Configuration - Geometry (articulated arm)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS) depending on the kinematics type:
 Kinematics type "Articulated arm 2D" and "Articulated arm 2D with orientation"

Field Length L1
Length L2
Length L3 Length L4 Flange length LF

Description
Define the distance of the A1 axis from the kinematics zero point (KZP) in z direction of the KCS
Define the distance of the A1 axis from the kinematics zero point in x direction of the KCS
Define the distance of the A2 axis from the A1 axis in this field.
Define the distance of the forced coupler point from the A2 axis in this field.
Define the distance of the flange coordinate system (FCS) from the forced coupler point in the negative z direction of the KCS in this field.

 Kinematics type "Articulated arm 3D" and "Articulated arm 3D with orientation"

Field Length L1
Length L2
Length L3 Length L4 Flange length LF

Description
Define the distance of the A2 axis from the kinematics zero point in z direction of the KCS in this field.
Define the distance of the A2 axis from the kinematics zero point in x direction of the KCS
Define the distance of the A3 axis from the A2 axis in this field.
Define the distance of the forced coupler point from the A3 axis in this field.
Define the distance of the FCS from the forced coupler point in the negative z direction of the KCS in this field.

172

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

Mechanical axis coupling
The kinematics transformation compensates for the configured mechanical axis couplings. If you set a mechanical axis coupling for a first axis to a second axis, the setting "Modulo" must not be activated for the first axis.
You can configure the following mechanical coupled axes, depending on the kinematics type:
 Kinematics type "Articulated arm 2D" and "Articulated arm 2D with orientation":
Mechanical coupling of axis A1 to axis A2
 Kinematics type "Articulated arm 3D" and "Articulated arm 3D with orientation":
Mechanical coupling of axis A2 to axis A3
Enter the required coupling factor in the "Compensation factor" field.

See also

Articulated arm (Page 72)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

173

Configuring 5.2 Configuring the kinematics technology object

5.2.3.5

Configuration - Geometry (delta picker)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS) depending on the kinematics type:
 Kinematics type "Delta picker 2D" and "Delta picker 2D with orientation"

Field Length L1 Length L2 Flange length LF
Distance D1
Distance D2

Description
Define the length of the upper arms in this field.
Define the length of the connecting rods in this field.
Define the distance of the flange coordinate system (FCS) from the lower connecting plate in the negative z direction of the KCS in this field.
Define the distance of the axes to the middle of the upper connecting plate (radius of the upper connecting plate) in this field.
In this field, you can define the distance of the hinge points of the connecting rods to the lower connecting plate (radius of the lower connecting plate) in this field.

 Kinematics type "Delta picker 3D" and "Delta picker 3D with orientation"

Field Length L1 Length L2 Flange length LF
Distance D1
Distance D2
Angle A1 to A2 Angle A2 to A3

Description
Define the length of the upper arms in this field.
Define the length of the connecting rods in this field.
Define the distance of the FCS from the lower connecting plate in the negative z direction of the KCS in this field.
Define the distance of the axes to the middle of the upper connecting plate (radius of the upper connecting plate) in this field.
In this field, you can define the distance of the hinge points of the connecting rods to the lower connecting plate (radius of the lower connecting plate) in this field.
Define the angle between the axes A1 and A2 in this field.
Define the angle between the axes A2 and A3 in this field.

See also

Delta picker (Page 90)

174

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.3.6

Configuration - Geometry (cylindrical robot)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS):

Field Length L1
Length L2
Flange length LF

Description
Define the distance of the zero position of the A2 axis from the kinematics zero point (KZP) in z direction of the KCS
Define the distance of the A3 axis from the kinematics zero point in y direction of the KCS
Define the distance of the flange coordinate system (FCS) from the axis A3 in the negative z direction of the KCS in this field.

Mechanical axis coupling
The kinematics transformation compensates for the configured mechanical axis couplings. If you set a mechanical axis coupling for a first axis to a second axis, the setting "Modulo" must not be activated for the first axis.
You can configure the following mechanical axis coupling for the kinematics type "Cylindrical robot 3D with orientation":
 Mechanical coupling of axis A4 to axis A2
Enter the required coupling factor in the "Compensation factor" field.

Representation in kinematics trace
In these fields, define the scaling in which the kinematics is displayed in the kinematics trace:

Field z minimum z maximum A3 maximum

Description Define the dimensioning of the kinematics in the negative z direction in this field. Define the dimensioning of the kinematics in the positive z direction in this field. Define the maximum traversing length of the A3 axis in this field.

See also

Cylindrical robot (Page 103)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

175

Configuring 5.2 Configuring the kinematics technology object

5.2.3.7

Configuration - Geometry (tripod)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In these fields, define the transformation parameters of the kinematics in the kinematics coordinate system (KCS):

Field Length L1 Flange length LF
Distance D1
Distance D2
Angle for A1 to xy plane of the KCS Angle A1 to A2 Angle A2 to A3

Description
Define the length of the connecting rods in this field.
Define the distance of the flange coordinate system (FCS) from the lower connecting plate in the negative z direction of the KCS in this field.
Define the distance of the upper hinge points of the connecting rods to the center of the upper connecting plate in this field.
Define the distance of the lower hinge points of the connecting rods to the center of the lower connecting plate in this field.
Define the angle between the upper connecting plate (xy plane of the KCS) and the rail of the axis A1 (0.0°   < 90.0°) in this field.
Define the angle between the axes A1 and A2 in this field.
Define the angle between the axes A2 and A3 in this field.

See also

Tripod (Page 113)

176

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.3.8

Configuration - Geometry (user-defined)
Configure the geometric parameters of kinematics in the "Geometry" configuration window.

Transformation parameters
In this table, define the start values of the parameters 1 to 32 of the kinematics (<TO>.Kinematics.Parameter[1..32]).

Representation in kinematics trace
In these fields, define the scaling in which the kinematics is displayed in the kinematics trace, depending on the kinematics type:
 Kinematics type "User-defined 2D" and "User-defined 2D with orientation"

Field x minimum x maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

 Kinematics type "User-defined 3D" and "User-defined 3D with orientation"

Field x minimum x maximum y minimum y maximum z minimum z maximum

Description
Define the dimensioning of the kinematics in the negative x direction in this field.
Define the dimensioning of the kinematics in the positive x direction in this field.
Define the dimensioning of the kinematics in the negative y direction in this field.
Define the dimensioning of the kinematics in the positive y direction in this field.
Define the dimensioning of the kinematics in the negative z direction in this field.
Define the dimensioning of the kinematics in the positive z direction in this field.

See also

User transformation (Page 130) User-defined kinematics systems (Page 121)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

177

Configuring 5.2 Configuring the kinematics technology object

5.2.4

Configuration - Conveyor tracking
In the "Conveyor tracking" configuration window, configure the conveyor tracking properties. You can interconnect conveyor tracking with leading-value-capable technology objects. Leading-value-capable technology objects are:  Positioning axis  Synchronous axis  External encoders  Leading axis proxy

Possible technology objects
In the table column "Possible technology objects", add all leading-value-capable technology objects that you need in the instruction as leading-value-capable values for conveyor tracking.
An object coordinate system can only be coupled with a leading-value-capable technology object whose technology object is defined in this table.

Type of coupling
In the "Type of coupling" column, select whether the leading value of the leading-valuecapable technology object is to be coupled via a setpoint or actual value. With external encoders, only the selection of the actual value is available.

178

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.5

Extended parameters

5.2.5.1

Configuration - Dynamics
In the "Dynamics" configuration window, configure the default values for the dynamics, the dynamic limits and the dynamic adaptation of the kinematics motion and the orientation motion.

Presets and limits
In order to define the default values for the kinematics motion, select the entry "Path" in the "Settings" drop-down list. In order to define the default values for the orientation motion, select the entry "Orientation motion" in the "Settings" drop-down list.
Define the default values of the dynamics in the "Velocity", "Acceleration", "Deceleration" and "Jerk" fields. Kinematics motion jobs triggered in the user program are executed with these default values if no separate dynamics values are defined for the jobs.
Define the default values of the dynamic limits in the "Maximum velocity", "Maximum acceleration", "Maximum deceleration" and "Maximum jerk" fields.

Dynamic adaptation
Select the default for the dynamics adaptation in the drop-down list. When dynamic adaptation is active, a velocity profile is calculated for the entire motion which takes into account the dynamic limits of the axes and the kinematics .

Mode Do not limit Limit with segmentation of the path
Limit without segmentation of the path

Description
The dynamic limits of the axes are not taken into consideration.
The path is divided into segments. For each of these segments, the dynamic is adapted in such a way that the dynamic limits of the axes are not exceeded.
The dynamic is adapted in such a way that the dynamic limits of the axes are not exceeded over the entire path.

See also

Dynamics of kinematics motion and orientation motion (Page 145)

5.2.5.2

Configuration - Kinematics coordinate system
In the "Kinematics coordinate system" configuration window, configure the KCS frame (Page 29) and therefore the position of the kinematics coordinate system (KCS) in the world coordinate system (WCS).

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

179

Configuring 5.2 Configuring the kinematics technology object

Kinematics zero point in the WCS
In these fields, define the position of the kinematics coordinate system:

Field x position y position z position Rotation A Rotation B Rotation C

Description Define the shift of the KCS in x direction of the WCS in this field. Define the shift of the KCS in y direction of the WCS in this field. Define the shift of the KCS in z direction of the WCS in this field. Define the rotation of the KCS around the z axis in this field. Define the rotation of the KCS around the y axis in this field. Define the rotation of the KCS around the x axis in this field.

See also

Coordinate systems and frames (Page 25)

5.2.5.3

Configuration - Object coordinate systems
In the "Object coordinate system" configuration window, configure the OCS frames (Page 29) and therefore the position of the object coordinate system (OCS) in the world coordinate system (WCS).

Object coordinate system (OCS)
Select the object coordinate system to be defined in this drop-down list. You can define up to three tool object coordinate systems.

OCS in the world coordinate system (WCS)
In these fields, define the position of the selected object coordinate system:

Field x position y position z position Rotation A Rotation B Rotation C

Description Define the shift of the OCS in x direction of the WCS in this field. Define the shift of the OCS in y direction of the WCS in this field. Define the shift of the OCS in z direction of the WCS in this field. Define the rotation of the OCS around the z axis in this field. Define the rotation of the OCS around the y axis in this field. Define the rotation of the OCS around the x axis in this field.

See also

Coordinate systems and frames (Page 25)

180

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

5.2.5.4

Configuration- Tools
In the "Tools" configuration window, configure the tool frames (Page 29) and also the position of the tool center point (TCP) of the tools in the flange coordinate system (FCS).

Tools

Select the tool to be defined in this drop-down list. You can define up to three tools.

Tool center point in the FCS
In these fields, define the position of the tool center point of the selected tool:

Field x position y position z position Rotation A

Description Define the shift of the TCP in x direction of the FCS in this field. Define the shift of the TCP in y direction of the FCS in this field. Define the shift of the TCP in z direction of the FCS in this field. Define the rotation of the TCP around the z axis in this field.

See also

Coordinate systems and frames (Page 25)

5.2.5.5

Configuration - Zones
Configure the workspace zones and kinematics zones of the technology object in the "Zones" configuration window. The configuration window is divided into the following areas:  Graphic view  Tabular editor
­ Workspace zones ­ Kinematics zones

Graphic view

The workspace zones or the kinematics zones, which you define in the corresponding tabular editor, are displayed in the graphic view. You can rotate the view and zoom in and out using the mouse.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

181

Configuring 5.2 Configuring the kinematics technology object

The toolbar at the top of the graphical editor provides you with buttons for the following functions, depending on the respective tabular editor:

Button

Function

Description

Fit to screen size The view is displayed adapted to the size of the window.

Show / hide grid
Select the coordinate system. Select tool

The grid lines of the coordinate system are hidden/displayed. Select a coordinate system.
Select a tool.

Show 2D view

The 2D view is shown.

Show 3D view

The 3D view is shown.

Show xy plane

The xy plane is displayed.

Show xy plane rotated
Show xz plane

The xy plane is displayed rotated around the x-axis. The xz plane is displayed.

Show xz plane rotated
Show xz plane rotated
Show xz plane rotated
Show yz plane

The xz plane is displayed rotated around the z-axis.
The xz plane is displayed rotated around the x-axis.
The xz plane is displayed rotated around the x-axis and the z-axis. The yz plane is displayed.

Show yz plane rotated
Show yz plane rotated
Show yz plane rotated

The yz plane is displayed rotated around the z-axis.
The yz plane is displayed rotated around the y-axis.
The yz plane is displayed rotated around the y-axis and the z-axis.

182

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

Workspace zones
Workspace zones (Page 156) describe the environment of a kinematics system. You can configure up to ten workspace zones in the table.

Column Visible Number Status
Zone type
Geometry

Description

You show and hide the zone in the top view using the symbol in this column.

This column displays the zone number.

Select the activation status of the zone in this column.

Active

Zone monitoring is activated for the zone.

You can deactivate the zone in your user program via an "MC_SetWorkspaceZoneInactive" job (Page 311).

Inactive

Zone monitoring is deactivated for the zone.

You can activate the zone in your user program via an "MC_SetWorkspaceZoneActive" job (Page 309).

Invalid

The zone is not defined.

You can define the zone in your user program via an "MC_DefineWorkspaceZone" job (Page 303).

Select the type of the zone in this column.

Work zone

Work zones define areas in which kinematics zones may move.

You can specify several work zones. Only one work zone can be activated at a given time, however. If no work zone is activated, the entire traversing space of the kinematics is regarded as the work area.

Blocked zone

Blocked zones define areas in which a kinematics zone must not enter.

Signal zone

Signal zones are areas within the traversing space of the kinematics. Signal zones indicate a zone violation by a kinematics zone but do not trigger a stop of the kinematics motion.

Select the geometry of the zone (Page 159) in this column.

Sphere

Cuboid

Cylinder

Length x Length y Length z
Radius

With a cuboid-shaped zone, define the length of the zone in x direction in this column.
With a cuboid-shaped zone, define the width of the zone in y direction in this column.
With a cuboid-shaped zone, define the height of the zone in z direction in this column.
With a cylindrical zone, define the height of the zone in z direction in this column.
With a spherical zone, define the radius of the zone in this column.
With a cylindrical zone, define the radius of the zone in this column.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

183

Configuring 5.2 Configuring the kinematics technology object

Column CS
x y z A B C

Description

Select the reference coordinate system in this column.

WCS

World coordinate system

OCS 1

Object coordinate system 1

OCS 2

Object coordinate system 2

OCS 3

Object coordinate system 3

Define the position of the zone in x direction in this column.

Define the position of the zone in y direction in this column.

Define the position of the zone in z direction in this column.

Define the rotation of the zone around the z-axis in this column (not relevant for a spherical zone). Enter a value between -180.0° and 179.999°.

Define the rotation of the zone around the y-axis in this column (not relevant for a spherical zone). Enter a value between -90.0° and 90.0°.

Define the rotation of the zone around the x-axis in this column (not relevant for a spherical zone). Enter a value between -180.0° and 179.999°.

184

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.2 Configuring the kinematics technology object

Kinematics zones
Kinematics zones (Page 157) are related to the working point / flange of a kinematics system and move with the kinematics. The zone monitoring checks the kinematics zones for penetration with workspace zones. You can configure up to ten kinematics areas in the table.

Column Visible Number Status
Zone type Geometry

Description

You show and hide the zone in the top view using the symbol in this column.

This column displays the zone number.

Select the activation status of the zone in this column.

Active

Zone monitoring is activated for the zone.

You can deactivate the zone in your user program via an "MC_SetKinematicsZoneInactive" job (Page 315).

Inactive

Zone monitoring is deactivated for the zone.

You can activate the zone in your user program via an "MC_SetKinematicsZoneActive" job (Page 313).

Invalid

The zone is not defined.

You can define the zone in your user program via an "MC_DefineKinematicsZone" job (Page 306).

Select the type of the zone in this column.

Flange zone

Flange zones envelope the flange or parts of the flange.

Tool zone

Tool zones envelope the tool or parts of the tool.

Select the geometry of the zone (Page 159) in this column.

Sphere

Cuboid

Cylinder

Length x Length y Length z
Radius CS
x y z

With a cuboid-shaped zone, define the length of the zone in x direction in this column.

With a cuboid-shaped zone, define the width of the zone in y direction in this column.

With a cuboid-shaped zone, define the height of the zone in z direction in this column.

With a cylindrical zone, define the height of the zone in z direction in this column.

With a spherical zone, define the radius of the zone in this column.

With a cylindrical zone, define the radius of the zone in this column.

Select the reference coordinate system in this column.

FCS

Flange coordinate system (FCS)

TCS

Tool coordinate system

Define the position of the zone in x direction in this column.

Define the position of the zone in y direction in this column.

Define the position of the zone in z direction in this column.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

185

Configuring 5.2 Configuring the kinematics technology object

Column A
B
C

Description
Define the rotation of the zone around the z-axis in this column (not relevant for a spherical zone). Enter a value between -180.0° and 179.999°.
Define the rotation of the zone around the y-axis in this column (not relevant for a spherical zone). Enter a value between -90.0° and 90.0°.
Define the rotation of the zone around the x-axis in this column (not relevant for a spherical zone). Enter a value between -180.0° and 179.999°.

Online view

When you click on the symbol, values of the workspace zones and the kinematics zones at the current point in time are read back from the CPU. You can display two additional rows for each zone in the table using the symbol in the "Number" column. These three lines contain the following values:

Line

Identifier in the "Num- Description

ber" column.

1

Number of the zone

This line contains the current values of the zone.

2

This line contains the start values of the CPU.

3

This line contains the start values in the project. You

can edit the values.

See also

Zone monitoring (Page 154)

5.2.5.6

Configuration - Job sequence
In "Job sequence" configuration window you configure the maximum number of jobs in the Job sequence (Page 191) .

Maximum number of jobs
In the "Maximum number of jobs" field, enter the maximum number of jobs that the job sequence can contain. By default, the job sequence can contain up to five jobs. The job sequence can contain a maximum of ten jobs.
Note Multiple jobs in the job sequence The more jobs the job sequence contains, the longer the calculation of the motion jobs takes.

186

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Configuring 5.3 Copying a kinematics technology object

5.3

Copying a kinematics technology object

The following describes how to copy a kinematics technology object in the project tree.

Requirement

 A project with a CPU S7-1500T is created.  A kinematics technology object is created in the project.

Procedure

To copy a kinematics technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology Objects" folder. 3. Select the kinematics technology object to be copied. 4. To also copy the interconnected axes, select them as well. To select multiple axes, press
and hold down the <Ctrl> key. 5. Select "Copy" in the shortcut menu. 6. Select the "Technology objects" folder. 7. Select "Paste" in the shortcut menu.

Result

The selected kinematics technology object, together with any selected interconnected axes, are copied and created in the "Technology objects" folder of the project tree.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

187

Configuring 5.4 Deleting a kinematics technology object

5.4

Deleting a kinematics technology object

The following describes how to delete a kinematics technology object in the project tree.

Requirement

 A project with a CPU S7-1500T is created.  A kinematics technology object is created in the project.

Procedure

To delete a kinematics technology object, follow these steps: 1. Open the CPU's folder in the project navigator. 2. Open the "Technology Objects" folder. 3. Select the kinematics technology object to be deleted. 4. Select the "Delete" command in the shortcut menu.
The "Confirm delete" dialog is opened. 5. To delete the technology object, click "Yes".

Result

The selected kinematics technology object has been deleted. The axes interconnected to the kinematics technology object are retained.

188

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

5.5

Configuring 5.5 Toolbar of the configuration

Toolbar of the configuration
The following functions are available in the toolbar of the function view:

Symbol

Function

Explanation

Show online values

Displays the current values read back from the CPU.

Couples the function view and parame- Enables the targeted toggling between the pater view for the objects selected in the rameter view and function-based view. navigation

Collapse/expand all nodes and objects Collapses or expands all nodes and objects of the navigation or the data structure in the currently active view.

Collapse/expand the nodes below the marked node

Collapses or expands the marked nodes and objects of the navigation or the data structure in the currently active view.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

189

Programming

6

The "Programming" section contains general information on supplying and evaluating the Motion Control instructions.
You can find an overview of the Motion Control instructions for the kinematics technology object in the "Functions (Page 17)" section.
You can use Motion Control instructions in the user program to transmit jobs to the technology object. You define the job with the input parameters of the Motion Control instructions. The current job status is indicated in the output parameters.
Because the kinematics technology object groups the kinematics axes, you can assign the kinematics technology object directly to the input parameter "AxesGroup".
You cannot enable the kinematics technology object itself using an "MC_Power" command or home it using an "MC_Home" job. For kinematics motions, the interconnected axes must be enabled ("MC_Power.Enable" = TRUE).
You can acknowledge errors of the kinematics technology object with an "MC_Reset" job or by restarting the technology object.

190

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

6.1

Programming 6.1 Job sequence

Job sequence
Motion-relevant jobs are entered in the job sequence of the kinematics technology object. The following jobs enter the job sequence:

Job
"MC_MoveLinearAbsolute (Page 258)" "MC_MoveLinearRelative (Page 263)" "MC_MoveCircularAbsolute (Page 269)" "MC_MoveCircularRelative (Page 277)" "MC_MoveDirectAbsolute (Page 285)" "MC_MoveDirectRelative (Page 292)"
"MC_DefineWorkspaceZone (Page 303)" "MC_DefineKinematicsZone (Page 306)" "MC_SetWorkspaceZoneActive (Page 309)" "MC_SetWorkspaceZoneInactive (Page 311)" "MC_SetKinematicsZoneActive (Page 313)" "MC_SetKinematicsZoneInactive (Page 315)"
"MC_SetOcsFrame (Page 321)"

Brief description Kinematics motions
Position kinematics with linear path motion
Relative positioning of kinematics with linear path motion
Position kinematics with circular path motion
Relative positioning of kinematics with circular path motion
Absolute movement of kinematics with synchronous "point-topoint" motion Relative movement of kinematics with synchronous "point-topoint" motion
Zones Define workspace zone
Define kinematics zone
Activate workspace zone
Deactivate workspace zone
Activate kinematics zone
Deactivate kinematics zone
Coordinate systems Redefine object coordinate systems

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

191

Programming 6.1 Job sequence

The jobs are processed in the same order in which they were entered in the job sequence. The order of the jobs cannot be changed subsequently. If another motion job is added to the job sequence, all jobs in the job sequence will be recalculated. The kinematics motion jobs do not cancel each other. Because all jobs in the job sequence are taken into account for preparing the motion and calculation of the velocity profile, even jobs with short traversing lengths and blend motions with higher velocities can be traversed than what is possible for individual motions. The current job is also included in the new calculation so that the current job can be blended with the next job.
You can also interrupt execution of the jobs with an "MC_GroupInterrupt" job, fill the job sequence and then continue execution with an "MC_GroupContinue" job.
By default, the job sequence can contain up to five jobs. You can change the maximum number of jobs (Page 186) in "Technology object > Configuration > Extended parameters >Job sequence". The job sequence can contain a maximum of ten jobs.

See also

"MotionQueue" tag (kinematics) (Page 342) Interrupting, continuing and stopping kinematics motions (Page 194)

192

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Programming 6.2 Motion status and remaining distance

6.2

Motion status and remaining distance

You can obtain the status and the remaining distance of a motion job from the parameters of the corresponding Motion Control instruction.

Status of a motion job
You can identify the status of a motion job based on the "Busy" and "Active" parameters. When the job is transmitted, the "Busy" parameter is set to TRUE and the job is added to the job sequence. As long as the job is still in the job sequence, the "Active" parameter is set to FALSE. As soon as the job is active in the motion control, the "Active" parameter is set to TRUE. If the motion job is completed, the parameters "Busy" and "Active"are set to FALSE and the parameter "Done" to TRUE.
All inactive jobs in the job sequence are recalculated if another motion job is added to the job sequence. The current job is also included in the new calculation so that the current job can be blended with the next job. If a motion control is interrupted by a "MC_GroupInterrupt" job, the jobs in the job sequence are only calculated when the motion control is continued with an "MC_GroupContinue" job.

Remaining distance of a motion job
You can obtain the remaining distance of a motion job from the "RemainingDistance" parameter. If the motion is not being blended, the "RemainingDistance" parameter contains the distance to the target position on the path. If the active motion is being blended with the next motion, the "RemainingDistance" parameter contains the distance to the beginning of the blending segment on the path. If only the orientation axis is being moved in a motion job (reorientation), the "RemainingDistance" parameter contains the value "-1.0".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

193

Programming 6.3 Interrupting, continuing and stopping kinematics motions

6.3

Interrupting, continuing and stopping kinematics motions

You can interrupt and continue active kinematics motions or stop them and thus also cancel queued motion jobs.

Interruption of kinematics motions
With the Motion Control instruction "MC_GroupInterrupt (Page 250)", you interrupt the execution of the motion for the kinematics technology object. With the "Mode" parameter, you specify the dynamic behavior. The kinematics can be stopped either with the dynamics of the motion job to be interrupted or with the maximum dynamics. The current path is not exited when the kinematics is stopped. If the kinematics is already at a standstill, the motion control is also interrupted for subsequent motion jobs.
The kinematics technology object is in "Interrupted" status (<TO>.StatusWord.X17).
For path planning, you can interrupt execution of the jobs, fill the job sequence (Page 191) and then continue execution of the commands.

Continuation of kinematics motions
With the Motion Control instruction "MC_GroupContinue (Page 252)", you continue a kinematics motion that was previously interrupted with a "MC_GroupInterrupt" job. The kinematics motion can also be continued if the kinematics has not yet come to a standstill following the "MC_GroupInterrupt" job.
The "MC_GroupContinue" job only has an effect if the kinematics technology object is in "Interrupted" status (<TO>.StatusWord.X17).

Stopping of kinematics motions
With the Motion Control instruction "MC_GroupStop (Page 255)", you stop the Motion Control of the kinematics technology object. In so doing, both the active motion job as well as all queued jobs in the job sequence are canceled and the job sequence is emptied. If the kinematics motion was already interrupted with an "MC_GroupInterrupt" job, this job is also canceled. As long as the "Execute" parameter is set to TRUE, the following kinematics jobs are rejected ("ErrorID" = 16#80CD).
With the "Mode" parameter, you specify the dynamic behavior. The kinematics can be stopped either with the dynamics of the motion job to be stopped or with the maximum dynamics. The current path is not exited when the kinematics is stopped.

194

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

6.4
6.4.1
6.4.2

Programming 6.4 Motion preparation using multiple jobs
Motion preparation using multiple jobs
Preliminary motion preparation
With technology version V5.0, the calculation of the motion preparation has changed. The motion preparation is calculated in the organization block (OB) MC-LookAhead [OB97] and no longer in the OB MC-Interpolator [OB92]. With the OB MC-LookAhead [OB97], all jobs from the job sequence are prepared in advance. The dynamic values for path motions and orientation motions are transferred to the job sequence. The dynamic values are only active when the job is executed. For motion preparation, the current path motion job and the subsequent path motion jobs must be taken into account to allow for blending of path motions. Path motions that you use with blending are first processed in the OB MC-LookAhead[OB97] and then active in the OB MC-Interpolator[OB92]. Motions with blending require a longer lead time and a longer reaction time. You can change the velocity override during a path motion, which immediately changes the dynamics of the path motion. In the OB MC-Interpolator [OB92], less time is needed for motion preparation and you can set a shorter application cycle of the OB MC-Servo [OB91].
Connection of multiple kinematics motions with geometric transitions
Multiple motions can be appended to one another, in which case the kinematics comes to a standstill between the individual motions. To achieve an uninterrupted motion control, the individual motions can be blended with geometric transitions. You define the corresponding parameters at the new motion job (A2), into which the previous job (A1) is to be blended.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

195

Programming 6.4 Motion preparation using multiple jobs

Transitions of linear motions
With the Motion Control instructions "MC_MoveLinearAbsolute (Page 258)" and "MC_MoveLinearRelative (Page 263)", you move a kinematics system with a linear motion. You define the motion transition mode with the "BufferMode" parameter and the rounding clearance with the "TransitionParameter[1]" parameter. The following table shows how these parameters act on the motion transition based on two linear motions:

Rounding clearance Motion transition ("BufferMode") ("TransitionParameter[1]")

Not relevant

"BufferMode" = 1

Description
Append motion The active linear motion is completed and the kinematics comes to a standstill. The next linear motion is then executed.

d > 0.0

"BufferMode" = 2, 5

d = 0.0

"BufferMode" = 2, 5

d < 0.0

"BufferMode" = 2, 5

Blend motion When the rounding clearance distance from the target position is reached, the active linear motion is blended with the next linear motion. Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.
Blend motion Because the rounding clearance is 0.0, traversing is the same as when "BufferMode" = 1. The active linear motion is completed and the kinematics comes to a standstill. The next linear motion is then executed.
Blend motion Because the rounding clearance is negative, the maximum rounding clearance is used. When the rounding clearance distance from the target position is reached, the active linear motion is blended with the next linear motion. Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.

196

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Programming 6.4 Motion preparation using multiple jobs

Transitions of circular motions
With the Motion Control instructions "MC_MoveCircularAbsolute (Page 269)" and "MC_MoveCircularRelative (Page 277)", you move a kinematics system with a circular motion. You define the motion transition mode with the "BufferMode" parameter and the rounding clearance with the "TransitionParameter[1]" parameter. The following table shows how these parameters act on the motion transition based on a linear motion and a circular motion:

Rounding clearance ("TransitionParameter[1]")
Not relevant

Motion transition ("BufferMode") "BufferMode" = 1

Description
Append motion The active linear motion is completed and the kinematics comes to a standstill. The circular motion is then executed.

d > 0.0

"BufferMode" = 2, 5

Blend motion
When the rounding clearance distance from the target position is reached, the active linear motion is blended with the circular motion.
Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

197

Programming 6.4 Motion preparation using multiple jobs

Rounding clearance Motion transition ("BufferMode") ("TransitionParameter[1]")

d = 0.0

"BufferMode" = 2, 5

d < 0.0

"BufferMode" = 2, 5

Description
Blend motion Because the rounding clearance is 0.0, traversing is the same as when "BufferMode" = 1. The active linear motion is completed and the kinematics comes to a standstill. The circular motion is then executed.
Blend motion Because the rounding clearance is negative, the maximum rounding clearance is used. When the rounding clearance distance from the target position is reached, the active linear motion is blended with the circular motion. Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.

198

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Programming 6.4 Motion preparation using multiple jobs

Transitions of synchronous "point-to-point" motion
With the Motion Control instructions "MC_MoveDirectAbsolute (Page 285)" and "MC_MoveDirectRelative (Page 292)" you move a kinematics with a synchronous point-topoint motion (sPTP motion). You define the motion transition mode with the "BufferMode" parameter and the rounding clearance with the "TransitionParameter[1]" parameter.
The kinematics motion of the sPTP motion is displayed as an example. The motion of the kinematics results from off the joint position of the individual axes and the dynamics of the motion job.
The following table shows how these parameters act on the motion transition based on linear motions and sPTP motions:

Rounding clearance ("TransitionParameter[1]")
Not relevant

Motion transition ("BufferMode") "BufferMode" = 1

Description
Append motion The active linear motion is completed and the kinematics comes to a standstill. The sPTP motion is then executed.

d > 0.0

"BufferMode" = 2, 5

Blending motion
When the rounding clearance distance from the target position is reached, the active linear motion is blended with the sPTP motion.
Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

199

Programming 6.4 Motion preparation using multiple jobs

Rounding clearance Motion transition ("BufferMode") ("TransitionParameter[1]")

d = 0.0

"BufferMode" = 2, 5

Description
Blending motion Because the rounding clearance is 0.0, traversing is the same as when "BufferMode" = 1. The active sPTP motion is completed and the kinematics come to a standstill. An sPTP motion is then executed.

d < 0.0

"BufferMode" = 2, 5

Blending motion
Because the rounding clearance is negative, the maximum rounding clearance is used. When the distance to the target position is reached, the running sPTP motion is blended with another sPTP motion.
Both motion jobs are blended at the lower velocity when "BufferMode" = 2 and at the higher velocity when "BufferMode" = 5.

To enable constant rounding between sPTP motion and path motions, note the following:  Set a sufficiently large rounding clearance.  Avoid small curvature radii in the resulting contour of the TCP.  Set the dynamic response of the path motion and the sPTP motion similarly.  Set the dynamic adaptation for the path motion.  Set factors < 1.0 for the dynamic response of the sPTP motion. For more information on rounding sPTP motion, refer to the FAQ entry 109771154 (https://support.industry.siemens.com/cs/ww/en/view/109771154) in the Siemens Industry Online Support.

200

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Programming 6.5 Interaction of kinematics motions and single axis motions

Maximum rounding clearance
The maximum rounding clearance is used if the value of the "TransitionParameter[1]" parameter is < 0.0. The maximum rounding clearance is calculated as half the shorter path distance of the two motions.

Requirement L1 > L2 L1 < L2
L1 Path length of the first job L2 Path length of the second job

Maximum rounding clearance dmax = ½ · L2 dmax = ½ · L1

6.4.3

Dynamic behavior when motions are appended/blended
You define the dynamic behavior for the transition of kinematics motions with the "BufferMode" and "DynamicAdaption" parameters.
Multiple motions can be appended to one another, in which case the kinematics comes to a standstill between the individual motions ("BufferMode" = 1). To achieve an uninterrupted motion, the individual motions can be blended with a blending segment. The consecutive motions can be blended at the lower velocity ("BufferMode" = 2) or at the higher velocity ("BufferMode" = 5).

Dynamic adaptation
For active dynamic adaptation with segmentation, the path including the blending segment is subdivided into additional segments ("DynamicAdaption" = 1). For each of these segments, the velocity profile is calculated taking into consideration the dynamic limits of the axes which apply for individual sections of the motion. The dynamic response is therefore adapted for individual sections of a motion.
With active dynamic adaptation without segmentation of the path, the velocity profile is calculated taking into consideration the dynamic limits of the axes which apply for the entire motion ("DynamicAdaption" = 2).
Velocity and acceleration are included in the dynamic adaptation. Tangential and radial acceleration of the path is taken into account in acceleration. The jerk is not limited for dynamic adaptation.
If the dynamic adaptation is deactivated, the dynamic limits of the axes are not taken into account ("DynamicAdaption" = 0).

6.5

Interaction of kinematics motions and single axis motions

Kinematics motions are only possible if no single axis motions are active on the kinematics axes. Single axis motions have an overriding effect on kinematics motions. The motion of the corresponding axis is overridden by the single-axis motion and the job sequence is cleared. The other kinematics axes stop with the maximum dynamics.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

201

Programming 6.5 Interaction of kinematics motions and single axis motions
The following functions are permitted during an active kinematics motion:  Torque reduction on the axes/Travel to fixed stop ("MC_TorqueLimiting")
When the fixed stop is reached, the kinematics motion is aborted.  Setting of an additive torque ("MC_TorqueAdditive")  Setting of the upper and lower torque limit ("MC_TorqueRange")  Sensor switchover ("MC_SetSensor") The following functions are rejected during an active kinematics motion:  Overlaid motion on the axes ("MC_MoveSuperimposed")  Homing of the axes ("MC_Home")

202

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Commissioning

7

7.1

Function and structure of the kinematics control panel

With the kinematics control panel, you assume master control for a kinematics technology object and control the motions of the kinematics or the individual axes.

WARNING
Uncontrolled axis motions
During operation with the kinematics control panel, the kinematics can execute uncontrolled motions (e.g. due to incorrect configuration of the drive or technology object). In addition, when a leading axis is moved with the kinematics control panel, any synchronized following axis is also moved.
Therefore, take the following protective measures before operation with the kinematics control panel: · Ensure that the EMERGENCY OFF switch is within the reach of the operator. · Enable the hardware limit switches. · Enable the software limit switches. · Ensure that following error monitoring is enabled. · Make sure that no following axis is coupled to the axis to be moved.

Note Dynamic adaptation in the kinematics control panel
The dynamic adaptation is not active in the kinematics control panel. The dynamic limits of the kinematics axes are not taken into account during a kinematics motion with the kinematics control panel.

You can find kinematics control panel of the kinematics technology object in the project tree under "Technology object > Commissioning". The kinematics control panel is divided into the following areas:  Master control  Kinematics  Operating mode  Control  Status  Current position values

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

203

Commissioning 7.1 Function and structure of the kinematics control panel

Elements of the kinematics control panel
The following table shows the elements of the kinematics control panel:

Area Master control

Element

Description

In the "Master control" area, you assume master control for the technology object or return it to your user program.

"Activate" button With the "Activate" button, you establish an online connection to the CPU and take over master control for the selected technology object.

· To take over master control, the technology object must be disabled in the user program.

· With the takeover of the master control of the kinematics, the master control of all axes interconnected with the kinematics is taken over.

The master control can only be assumed with a kinematics control panel if axis control panel of the interconnected axes is active.
· Any synchronized following axis is moved as well when a leading axis is moved with the kinematics control panel.
· When you click the "Activate" button, a warning message is displayed. In the warning, you can adapt the sign-of-life monitoring (100 to 60000 ms).

If the master control of the kinematics control panel is lost repeatedly without a direct error message, the online connection to the CPU may be impaired because the communication load is too high. In this case, the following message is entered in the alarm display log: "Commissioning error. Sign-of-life failure between controller and TIA Portal".

To eliminate this error, adapt the sign-of-life monitoring in the warning.
· Until master control is returned, the user program has no influence on the functions of the technology object. Motion Control jobs from the user program to the technology object are rejected with error ("ErrorID" = 16#8012: Kinematics control panel enabled).
· When master control is taken over, the configuration of the technology object is taken over. Changes to the configuration of the technology object do not take effect until master control has been returned. Therefore, make any necessary changes before the takeover of master control.
· If master control has been taken over for the technology object, the kinematics control panel and the axis control panels of the interconnected axes are blocked for access by another instance of the TIA Portal (Team Engineering as of CPU V1.5).
· If the online connection to the CPU is lost during operation with the kinematics control panel, the kinematics or axis will be stopped at maximum deceleration after expiration of the sign of life monitoring. In this case, an error message is displayed ("ErrorID" = 16#8013) and the master control is passed back to the user program.
· If the kinematics control panel is covered by a dialog, e.g. "Save As", during its operation, the kinematics or axis is stopped at maximum deceleration and the master control is returned to the user program.

If you change to another window within the TIA Portal, e.g. to the project tree, during operation with the kinematics control panel, the master control and motion of the kinematics or axis is maintained, provided that the kinematics control panel

204

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Commissioning 7.1 Function and structure of the kinematics control panel

Area

Element

Description
is embedded in the TIA Portal. If the kinematics control panel is replaced by the TIA Portal and you change to another window within the TIA Portal, e.g. to the project tree, the master control is retained but the kinematics or axis is stopped at maximum deceleration.

Kinematics
Operating mode Control

If you change to another window outside the TIA Portal during operation with the kinematics control panel, the master control is retained but the kinematics or axis is stopped at maximum deceleration.

"Deactivate" button

With the "Deactivate" button, you return master control to your user program.

In the "Kinematics" area, you enable or disable the technology object.

"Enable" button With the "Enable" button, you release the interconnected axes of the selected kinematics technology object.

"Disable" button With the "Disable" button, you disable the interconnected axes of the selected kinematics technology object.

Select the desired operating mode of the kinematics control panel in the "Operating mode" drop-down list.

The "Control" area displays the parameters for traversing with the kinematics control panel according to the selected operating mode.

Coordinate system

In the "Coordinate system" drop-down list, you select the desired coordinate system in which the kinematics will be moved.

("Jog" and "Jog to target position" modes only)

Active tool

Select the required tool from the "Active tool" drop-down list.

"Customize

If you select the check box, you can edit the values for acceleration, deceleration and

dynamics" check jerk.

box

("Jog" and "Jog to target position" modes only)

Acceleration

Acceleration at which the kinematics is moved dependent on the kinematics type in x, y and z direction and orientation.

Preassignment: 10% of the default value

You can only edit the values if the "Customize dynamics" check box is selected.

("Jog" and "Jog to target position" modes only)

Deceleration

Deceleration at which the kinematics is moved dependent on the kinematics type in x, y and z direction and orientation.

Preassignment: 100% of default value

You can only edit the values if the "Customize dynamics" check box is selected.

("Jog" and "Jog to target position" modes only)

Jerk

Jerk at which the kinematics is moved dependent on the kinematics type in x, y and z

direction and orientation.

Preassignment: 100% of default value

You can only edit the values if the "Customize dynamics" check box is selected.

("Jog" and "Jog to target position" modes only)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

205

Commissioning 7.1 Function and structure of the kinematics control panel

Area
Status Current position values

Element

Description

Velocity

Velocity at which the kinematics is moved dependent on the kinematics type in x, y and z direction and orientation.

Preassignment: 10% of the default value

You use the slider to adjust the velocity as a percentage between 0% and 200% of the set velocity values. Alternatively, enter a velocity value in the field to the right of the slider. (Default value 100%).

("Jog" and "Jog to target position" modes only)

Target position Position to which the kinematics or axis is moved.

("Jog to target position" and "Single axes: Set home position" mode only)

Position at which the home position is set.

("Single axes: Set home position" mode only)

"Set" button

With the "Set" button, you set a home position.

("Single axes: Set home position" mode only)

"Start" button With the "Start" button, you start a motion according to the selected operating mode.

("Jog to target position" and "Single axes: Homing" mode only)

"Forward" button With the "Forward" button, you start a motion in the positive direction according to the selected operating mode.

"Backward" button

With the "Backward" button, you start a motion in the negative direction according to the selected operating mode.

The "Axis status" area displays the status of the axis and the status of the drive.

Valid

The kinematic transformation is valid.

The status of the kinematic transformation is displayed in "Technology object Kinematics > Diagnostics", in the "Status and error bits" diagnostics window.

Enabled

The technology object has been enabled. The axis can be moved with motion jobs.

Homed

The technology object is homed.

Error

An error occurred at the technology object.

Error messages are displayed in the Inspector window under "Diagnostics > Alarm display".

The "Current position values" area shows the actual values of the axis.

Coordinate system

Coordinate system in which the kinematics or an axis is currently being moved.
In the drop-down list on the right, you can select an additional coordinate system in order to display the actual position of the active tool in this coordinate system.

x position

The current position and rotation of the tool center point in the set coordinate system.

y position

z position

Rotation A

206

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Commissioning 7.1 Function and structure of the kinematics control panel

Note No transfer of the parameters
The configured parameter values are discarded when master control is returned. If necessary, transfer the values to your configuration.
If you have changed configuration values during operation with the kinematics control panel, these changes have no effect on the operation of the kinematics control panel.

Operating mode
The following table shows the operating modes of the kinematics control panel:

Operating mode Jog Jog to target position
Single axes: Set home position
Single axes: Homing

Description
With the "Forward" button, you move an axis by jogging in the positive direction. With the "Backward" button, you move an axis by jogging in the negative direction. The respective axis moves as long as you keep the "Forward" or "Backward" button pressed.
With the "Start" button, you move the kinematics or an axis by jogging to the position specified under "Target position". The motion direction of the Cartesian orientation is not limited to the positive direction here. The orientation axis is moved with the "Shortest distance" mode.
The kinematics moves as long as you keep the "Start" button pressed. When the target position is reached, the kinematics stops automatically.
The specified position relates to the coordinate system that is selected in the "Coordinate system" drop-down list.
With the "Set" button, you set the home position of the respective axis to the value specified under "Target position". The "Homed" status is set for the corresponding axis.
The specified position relates to the machine coordinate system (MCS) that is preset in the "Coordinate system" drop-down list with this operating mode.
This function corresponds to direct homing (absolute).
Homing is not possible with an absolute encoder. The technology object is not referenced when this mode is used with an absolute encoder.
With the "Start" button, you move an axis by jogging to the predefined home position. The respective axis moves as long as you keep the "Start" button pressed. When the home position is reached, the axis stops automatically.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

207

Commissioning 7.2 Using the kinematics control panel

7.2

Using the kinematics control panel

With the kinematics control panel, you assume master control for a kinematics technology object and control the motions of the kinematics or the individual axes.

Requirement

 The project is created and downloaded to the CPU.
 The CPU is in RUN operating state.
 The interconnected axes of the kinematics are disabled by your user program ("MC_Power.Enable" = FALSE).
 The kinematics control panel for the technology object is not being used by another instance of the TIA Portal (Team Engineering as of CPU V1.5).
 The drives are ready.

Procedure

To control the kinematics or the kinematics axes with the kinematics control panel, follow these steps:
1. To assume master control for the technology object and to establish an online connection to the CPU, click the "Activate" button in the "Master control" area.
A warning message is displayed.
2. If necessary, adapt the sign-of-life monitoring and click "OK".
3. To enable the technology object, click the "Enable" button in the "Kinematics" area.
4. In the drop-down list in the "Operating mode" area, select the desired function of the kinematics control panel.
5. Select the reference coordinate system depending on the set operating mode in the "Control" area in the "Coordinate system" drop-down list.
6. In the "Control" area, specify the appropriate parameter values for your job.
7. Depending on the set operating mode, click the "Set", "Start", "Forward" or "Backward" button to start the job.
8. Repeat steps 4 through 7 for additional jobs.
9. To disable the technology object, click the "Disable" button in the "Axis" area.
10.To return master control to your user program, click the "Deactivate" button in the "Master control" area.

208

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Diagnostics

8

The "Diagnostics" section is limited to describing the diagnostics view of the Kinematics technology object in the TIA Portal.
The description of the diagnostics concept for Motion Control can be found in the "Diagnostics concept" section of the "S7-1500/S7-1500T Motion Control overview" documentation (https://support.industry.siemens.com/cs/ww/en/view/109766459).
A comprehensive description of the system diagnostics of the S7-1500 CPU can be found in the "Diagnostics" function manual (https://support.automation.siemens.com/WW/view/en/59192926).

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

209

Diagnostics 8.1 Kinematics technology object

8.1

Kinematics technology object

8.1.1

Structure of the diagnostics
The diagnostics of the kinematics in "Technology object > Diagnostics" is divided into the following areas:  Graphic display
The graphic display shows the kinematics, the motion of the tool center point (TCP) and the zones.
Note You set the scaling of the kinematics in the kinematics trace under "Technology object > Configuration > Geometry (Page 167)".
 Diagnostics window The following diagnostics windows are available in the graphic display: ­ Status and error bits (Page 212) ­ Zones status (Page 215) ­ Motion and Tools (Page 216) ­ Positions (Page 218)

210

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Diagnostics 8.1 Kinematics technology object

Toolbar
Button

The toolbar at the top of the graphical display provides you with buttons for the following functions:

Function Monitor all
Darker Select brightness

Description
Switches the live display of the kinematics on or off.
The kinematics trace establishes an online connection to the device. If the online/offline trace configurations differ, the trace configuration is loaded to the device.
Changes the brightness of the graphic display according to your needs

Lighter

Show 2D view Show 3D view Focus TCP
Fit to screen size Show coordinate system Select coordinate system Show xz plane Show xz plane rotated Show yz plane Show yz plane rotated Show xy plane Show xy plane rotated

Switches the view to the 2D view. Switches the view to the 3D view. Switches the view to "Focus TCP" During the path motion of the kinematics, the focus is always on the TCP. In standstill, the view can be moved or rotated using the mouse. Centers the view and displays the entire kinematics. Shows or hides the selected coordinate system with grid lines. Select a coordinate system. Shows the xz plane Shows the xz plane rotated around the z axis. Shows the yz plane Shows the yz plane rotated around the z axis. Shows the xy plane Shows the xy plane rotated around the z axis.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

211

Diagnostics 8.1 Kinematics technology object

Button

Function Show model

Show kinematics Display simplified model Hide model Highlight TCS Show/hide all zones Status and error bits Zones status Motion and tools Positions

Description If you click on the arrow, the graphical view options of the kinematics are shown. If you click on the symbol, you change the graphical view of the kinematics. Shows the kinematics.
Shows a simplified view of the kinematics.
Hides the view of the kinematics.
Shows or hides the tool coordinate system (TCS).
Shows or hides all workspace zones and kinematics zones.
Shows or hides the diagnostics window "Status and error bits".
Shows or hides the diagnostics window "Status Zones".
Shows or hides the diagnostics window "Motion and Tools".
Shows or hides the diagnostics window "Positions".

Operation of the graphic display
In the graphic display you have the following possible operations with the mouse:  Rotate and zoom the coordinate system with displayed kinematics  Display, hide and move the diagnostics window
If you change the scaling of the graphical display, the diagnostics windows keep their position.

8.1.2

Status and error bits
With the diagnostics window "Status and error bits" in "Technology object > Diagnostics" you monitor the status and error messages of the technology object in the TIA portal. The diagnostic function is available in online operation.
The diagnostics window "Status and error bits" is shown in the graphic display of the diagnostics. You can show the diagnostics window via the symbol of the toolbar and move the window to a desired position within the graphic display.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

212

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Diagnostics 8.1 Kinematics technology object

"Kinematics status"
The following table shows the possible statuses of the kinematics:

Status Error
Restart active Kinematics control panel active
Restart required
Valid

Description
An error occurred at the technology object. Detailed information about the error is available in the "Error" area and in the "<TO>.ErrorDetail.Number" and "<TO>.ErrorDetail.Reaction" tags of the technology object.
(<TO>.StatusWord.X1 (Error))
The technology object is being reinitialized.
(<TO>.StatusWord.X2 (RestartActive))
The kinematics control panel is activated. The kinematics control panel has master control over the technology object. The kinematics cannot be controlled from the user program.
(<TO>.StatusWord.X4 (ControlPanelActive))
Data relevant for the restart has been changed. The changes are applied only after a restart of the technology object.
(<TO>.StatusWord.X3 (OnlineStartValuesChanged))
Displays the status of the kinematic transformation.
The status of the kinematic transformation is displayed in "Technology object Kinematics > Diagnostics" in the "Status and error bits" diagnostics window.

"Error"

The following table shows the possible errors:

Error System Configuration
Transformation User program Job rejected
Dynamic limitation

Description A system-internal error has occurred. (<TO>.ErrorWord.X0 (SystemFault)) A configuration error has occurred. One or more configuration parameters are inconsistent or invalid. The technology object was incorrectly configured, or editable configuration data was incorrectly modified during runtime of the user program. (<TO>.ErrorWord.X1 (ConfigFault)) A transformation error has occurred. (<TO>.ErrorWord.X4 (TransformationFault)) An error in user program at a Motion Control instruction or its use occurred. (<TO>.ErrorWord.X2 (UserFault)) A job cannot be executed. A Motion Control instruction cannot be executed because necessary requirements have not been met (e.g. technology object not homed). (<TO>.ErrorWord.X3 (CommandNotAccepted)) The dynamic values are restricted to the dynamic limits. (<TO>.ErrorWord.X6 (DynamicError))

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

213

Diagnostics 8.1 Kinematics technology object

"Warnings"

The following table shows the possible warnings:

Warning Configuration Job rejected
Dynamic limitation

Description
One or more configuration parameters are being internally adapted temporarily. (<TO>.WarningWord.X1 (ConfigWarning)) A job cannot be executed. A Motion Control instruction cannot be executed because the necessary requirements are not met. (<TO>.WarningWord.X3 (CommandNotAccepted)) The dynamic values are restricted to the dynamic limits. (<TO>.WarningWord.X6 (DynamicWarning))

"Motion status"
The following table shows the possible statuses of the kinematics motion:

Status Done (no job running) Linear motion active Circular motion active sPTP motion active Constant velocity Accelerating Decelerating Motion interrupted
Orientation movement active

Description No motion job is active for the technology object. (<TO>.StatusWord.X6 (Done)) A linear motion job is active for the technology object. (<TO>.StatusWord.X8 (LinearCommand)) A circular motion job is active for the technology object. (<TO>.StatusWord.X9 (CircularCommand)) A synchronous point-to-point motion job is active at the technology object. (<TO>.StatusWord.X11 (DirectCommand)) The kinematics is being moved at constant velocity or is at a standstill. (<TO>.StatusWord.X12 (ConstantVelocity)) The kinematics is being accelerated. (<TO>.StatusWord.X13 (Accelerating)) The kinematics is being decelerated. (<TO>.StatusWord.X14 (Decelerating)) The active kinematics motion is interrupted by an "MC_GroupInterrupt" command . (<TO>.StatusWord.X17 (Interrupted)) An orientation motion is active for the technology object. (<TO>.StatusWord.X15 (OrientationMotion))

See also

"StatusWord" tag (kinematics) (Page 364) "ErrorWord" tag (kinematics) (Page 366) "WarningWord" tag (kinematics) (Page 368)

214

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Diagnostics 8.1 Kinematics technology object

8.1.3

Zones status
Using the diagnostics windows "Status Zones" in "Technology object > Diagnostics", you monitor the status and error messages of the technology object in the TIA portal. The diagnostic function is available in online operation.
The diagnostics window "Zones Status" is displayed in the graphic display of the diagnostics. You can show the diagnostics window via the symbol of the toolbar and move the window to a desired position within the graphic display.
The meaning of the status and error messages is described in the following tables. The associated technology object tag is given in parentheses.

"Zones status"

The "Workspace zones" and "Kinematics zones" tables show the status of the individual zones. The following symbols are displayed for this purpose:

Symbol

Description The zone is invalid. The zone is inactive. The zone is active. The zone was violated.

You can show and hide all active zones via the Symbol of the toolbar in the graphic display of the diagnostics. In addition, you can display and hide the zones via the corresponding symbol .

See also

Structure of the diagnostics (Page 210)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

215

Diagnostics 8.1 Kinematics technology object

8.1.4

Motion and tools
You monitor the path motions and the tools of the technology object in the TIA portal using the diagnostics window "Motion and Tools" in "Technology object > Diagnostics". The diagnostics function is available in online operation.
The diagnostics window "Motion and Tools" is shown in the graphic display of the diagnostics. You can show the diagnostics window via the symbol of the toolbar and move the window to a desired position within the graphic display.

"Motion and Tools"
The following table describes the meaning of the parameters of the motions and tools:

Status Dynamic values of the kinematics
Limit path dynamics to axis dynamics Velocity
Acceleration
Override
Job sequence Job in the job sequence
Active tool Active tool
Tool center point (TCP) Tool center point in the FCS x position
y position
z position
Rotation A

Description
Display of dynamic values with or without configured dynamic adaptation.
Path velocity (<TO>.StatusPath.Velocity) Path acceleration (<TO>.StatusPath.Acceleration) Percentage correction of the velocity specification The setpoint velocity set in Motion Control instructions or from the kinematics control panel is superimposed with an override signal and corrected as a percentage. Values from 0.0% to 200.0% are permissible for the velocity correction. (<TO>.Override.Velocity)
Current number of jobs for the kinematics technology object in the job sequence. (<TO>.StatusMotionQueue.NumberOfCommands)
Current selected tool
In the "Tool center point in the FCS", the values of the current tool frames are displayed in the flange coordinate system (FCS). x coordinate (<TO>.StatusTool.Frame[1].x) y coordinate (<TO>.StatusTool.Frame[1].y) z coordinate (<TO>.StatusTool.Frame[1].z) A coordinate (<TO>.StatusTool.Frame[1].a)

216

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

See also

Diagnostics 8.1 Kinematics technology object

Status Conveyor tracking
OCS1 ... 3 Coupled technology object
Conveyor position OCS x position OCS status

Description

Actively coupled OCS1, 2 or 3

Technology object for active conveyor tracking

Leading-value-capable technology objects are:

· Positioning axis

· Synchronous axis

· External encoder

· Leading axis proxy (<TO>.StatusConveyor.ConveyorBelt)

Conveyor position of the technology object (<TO>.StatusConveyor.BeltPosition)

Position of the OCS in x direction on the conveyor

(<TO>.StatusConveyor.ObjectPosition)

Conveyor tracking status

(<TO>.StatusConveyor.TrackingState)

OCS not assigned No OCS is assigned to a leading-value-capable technology object.
(<TO>.StatusConveyor[1..3].TrackingState = 0)

OCS assigned

The OSC is assigned to a leading-value-capable technology object. The kinematics is waiting for the next path motion job to the OCS.
(<TO>.StatusConveyor[1..3].TrackingState = 1)

TCP approaches OCS

The OSC is assigned to a leading-value-capable technology object. The position specified in the OCS is approached with the current path motion job of the kinematics.

(<TO>.StatusConveyor[1..3].TrackingState = 2)

TCP follows OCS

The OSC is assigned to a leading-value-capable technology object.
The position of the OCS is reached. The kinematics is moved with the position of the OCS.

(<TO>.StatusConveyor[1..3].TrackingState = 3)

Structure of the diagnostics (Page 210)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

217

Diagnostics 8.1 Kinematics technology object

8.1.5

Positions
You monitor the position values of the technology object in the TIA Portal using the diagnostics window "Positions" in "Technology object > Diagnostics". The diagnostic function is available in online operation.
The diagnostics window "Positions" is shown in the graphical display of the diagnostics. You can show the diagnostics window via the symbol of the toolbar and move the window to a desired position within the graphic display.

"Positions"

The following table describes the meaning of the position information:

Status World coordinate system
Coordinate system
x position
y position
z position
Rotation A
Coordinate system
x position y position z position Rotation A Machine coordinate system A1 A2 A3 A4

Description
Reference coordinate system The world coordinate system (WCS) is preset in this field. x coordinate of the TCP in the WCS (<TO>.TcpInWcs.x.Position) y coordinate of the TCP in the WCS (<TO>.TcpInWcs.y.Position) z coordinate of the TCP in the WCS (<TO>.TcpInWcs.z.Position) A coordinate of the TCP in the WCS (<TO>.TcpInWcs.a.Position) Reference coordinate system In the drop-down list you can select an additional coordinate system in order to display the actual position of the active tool in this coordinate system. x coordinate of the active tool in the set coordinate system. y coordinate of the active tool in the set coordinate system. z coordinate of the active tool in the set coordinate system. A coordinate of the active tool in the set coordinate system.
Axis A1 Axis A2 Axis A3 Axis A4

See also

Structure of the diagnostics (Page 210)

218

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Kinematics trace

9

See also

The kinematics trace offers the following functions:  3D visualization of the current motion of the tool center point (TCP) and the three object
coordinate systems (OCS)  Recording, playing and saving kinematic motions  Exporting and importing the recordings You can find the kinematics trace of the kinematics technology object in the project tree under "Technology object > Kinematics trace". The kinematics trace is divided into two views:  Configuration (Page 220)  3D visualization (Page 222)
Graphic display and toolbar (Page 222) Recording and playing kinematics motions (Page 228) List of recordings (Page 226)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

219

Kinematics trace 9.1 Configuration

9.1

Configuration

You specify the parameter values for the recording under "Technology object > Kinematics trace > Configuration"

Sampling

The following table shows you the configuration options for the duration of a recording:

Parameter Time of recording
Record every
Max. recording duration Use maximum recording duration Recording duration (a)

Description In this drop-down list, select the desired recording time between the following OBs:
· MC-Servo · MC-Interpolator
In this drop-down list, select the desired value for the recording interval. For the MC-Servo you have the following options via a drop-down list:
· Specification in cycles · Specification in seconds
This field shows the calculated value of the maximum recording time. If you change the recording interval in the field "Record all", the maximum recording time changes. If you activate this check box, the recording duration will be set to the maximum possible recording duration. In this drop-down list, select the desired type of recording duration display for the recording:
· In seconds · Number of measuring points

220

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Trigger Traces

Kinematics trace 9.1 Configuration

The following table shows you the configuration options for starting a recording:

Parameter Trigger mode
Trigger tag Event
Pre-trigger

Description In this drop-down list, select the desired trigger mode for your recording:
· Record now The recording starts immediately after the configuration is loaded.
· Trigger on tag The system waits for a trigger event that triggers the recording.
In this field, select a tag of the data type "BOOL" as trigger tag. In this drop-down list, select the desired trigger event to be used as trigger event:
· Positive edge
· Falling edge
In this drop down list, select a suitable pre-trigger for your recording:
· In seconds
· Number of measuring points The "pre-trigger" is used to record measuring points already before the beginning of the trigger event. As soon as the trigger event occurs, the recording is displayed in the graphical view.

The following table shows you the configuration options for a recording a trace:

Parameter Tool center point (TCP) and kinematics
Tool center point (TCP)
OCS 1 OCS 2 OCS 3

Description
If you activate this option, the coordinates of the TCP will be recorded. You can follow the motions of the kinematics and the single-axis motions in the graphical view.
If you activate this option, the coordinates of the TCP will be recorded. The motions of the kinematics and the single-axis motions are not displayed.
Select the object coordinate systems (OCS) to be recorded.

Note Recording multiple traces
The more traces you record, the lower the maximum recording duration and the number of measuring points per trace.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

221

Kinematics trace 9.2 3D visualization

9.2

3D visualization

9.2.1

Graphic display and toolbar
The traversing of the kinematics, the tool center point (TCP) and the object coordinate systems (OCS) are displayed graphically under "Technology object > Kinematics Trace > 3D Visualization". The 3D visualization is divided into the following areas:  Graphic display with toolbar  Toolbar for playing recordings (Page 226)  List of recordings (Page 226) In the graphic display, you can record up to four traces simultaneously:  TCP  OCS 1  OCS 2  OCS 3
Note You set the scaling of the kinematics in the kinematics trace under "Technology object > Configuration > Geometry (Page 167)".

222

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Toolbar

Kinematics trace 9.2 3D visualization

The toolbar of the kinematics trace provides you with buttons for the following functions:

Button

Function Monitoring On/Off
Start recording Stop recording

Description
Starts monitoring the kinematics trace.
The kinematics trace establishes an online connection to the device. If the online and offline trace configurations differ, the trace configuration is loaded into the device.
Starts the recording (Page 228) of the kinematics trace.
Finished the record of the kinematics trace.

Import recording from file

Imports a selected recording (Page 230) from a selected file folder.

Export selected recording to file
Add selected recording to measurements

Exports a selected recording (Page 230) into a selected file folder.
Adds a selected recording of the measurements under "Trace".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

223

Kinematics trace 9.2 3D visualization

The toolbar at the top of the graphical display provides you with buttons for the following functions:

Button

Function Switch to live display

Darker Select brightness Lighter Show 2D view Show 3D view Focus on TCP

Fit to screen size Show coordinate system

Description Switches the live display of the kinematics on or off. With the live display you can view how the kinematics is currently moving. This function is only available in online mode. Changes the brightness of the graphic display.
Switches the view to the 2D view.
Switches the view to the 3D view.
Switches the view to "Focus TCP" During the path motion of the kinematics, the focus is always on the TCP. In standstill, the view can be moved or rotated using the mouse. Centers the view and displays the entire kinematics.
Shows or hides the selected coordinate system with grid lines.

Select coordinate system Show xz plane Show xz plane rotated Show yz plane Show yz plane rotated Show xy plane Show xy plane rotated

Select a coordinate system. Shows the xz plane Shows the xz plane rotated around the z axis. Shows the yz plane Shows the yz plane rotated around the z axis. Shows the xy plane Shows the xy plane rotated around the z axis.

224

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Kinematics trace 9.2 3D visualization

Button

Function Show model

Show kinematics Display simplified model Hide model Highlight TCS

Description If you click on the arrow, the graphical view options of the kinematics are shown. If you click on the symbol, you change the graphical view of the kinematics. Shows the kinematics.
Shows a simplified view of the kinematics.
Hides the view of the kinematics.
Shows or hides the tool coordinate system (TCS).

Operation of the graphic display
In the graphic display you have the following possible operations with the mouse:  Rotate display  Zoom display If you position the mouse pointer to one of the traces, the following values are displayed for the corresponding position:  Measuring point number  Coordinates x, y, z and A

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

225

Kinematics trace 9.2 3D visualization

9.2.2

Toolbar for playing a recording
The toolbar for playing a recording, at the bottom of the graphical display, provides the following functions via buttons:

Button

Function Jump to start Step backward Play Pause Stop Step forward Jump to end Adjust speed

Description Jumps back to the start of the selected recording.
Jumps back step by step in the selected recording. Plays the selected recording.
Pauses the selected recording.
Pauses the selected recording at the current position. Jumps forward step-by-step in the selected recording. Jumps to the end of the selected recording.
Adjusts the playback speed of the selected recording using the speed slider.

9.2.3

List of recordings
If you have a recorded a recording, this is displayed in the list of recordings. The list of recordings is displayed below the graphic display and is divided into two areas:  Current recording  Saved recording A recording is displayed as a line in the tabular editor. If you expand a line, all traces in this recording are displayed. You also have the option of saving a current recording. A saved recording contains the following data:  Kinematics type  Coordinates of:
­ Kinematics ­ Tool center point (TCP) ­ Object coordinate systems (OCS)  Valid online geometry at the time of the recording

226

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Kinematics trace 9.2 3D visualization

Tools within the list of recordings
The following functions are available in the list of recordings:

Button

Function Saving a recording
Delete recording
Trace is hidden
Traces of the recording are shown and hidden Trace is shown

Description
Saves the current recorded recording in the tabular editor. The recording is added to the area "Saved recording".
Deletes the selected recording (Page 229) from the list of recordings.
The recording or the trace is hidden. Shows the hidden recording or trace.
The traces of the recording are partially shown and hidden.
The recording or the trace is shown. Hides the recording or trace

See also

Graphic display and toolbar (Page 222)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

227

Kinematics trace 9.3 Recording and playing kinematics motions

9.3

Recording and playing kinematics motions

For the recording, use the values set under "Technology object > Kinematics trace > Configuration". If you have switched on the live display via the symbol , the graphic display shows the current position of the kinematics.

Requirements

 The kinematics trace was configured under "Technology object > Kinematics trace > Configuration".

Record kinematics motion
To record a kinematics motion, proceed as follows:
1. To start a recording, click on the symbol on the toolbar. If no online connection is available at this point, it is established automatically.
2. Move the kinematics.
3. To end the recording, click on the symbol on the toolbar. The current recording and the configuration are kept until the "kinematics trace" has been closed. When you start a new recording, the current recording is overwritten.

Play kinematics motion
To play a kinematics motion, proceed as follows:
1. If the live display is activated, switch off the live display by clicking the symbol .
2. To show the trace, click on this symbol of the corresponding recording. The graphic display displays the complete trace of the recording.
3. To play the selected recording, click on the symbol at the bottom of the graphic display. The selected recording is played.
4. To adjust the playback speed, change the position of the speed slider in the toolbar for playing a recording.
5. To pause a recording, click on the symbol in the toolbar for playing a recording. 6. To stop a record, click on the symbol in the toolbar for playing a recording.

See also

Configuration (Page 220) Graphic display and toolbar (Page 222)

228

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Kinematics trace 9.4 Saving and deleting recordings

9.4

Saving and deleting recordings

Saving a recording
To adjust and save a recording, proceed as follows: 1. In the "Current recording" area, enter the name of the recording in the "Name" column. 2. In the "Color" column, select the desired colors for the traces. 3. If necessary, enter comments in the "Comment" column. 4. To save the current recording, click on the symbol in the "Current recording" area.
The record is inserted in the "Saved record" area in the tabular editor.
Note Up to 20 recordings which can be saved The tabular editor can save a maximum of 20 recordings. To save additional recordings, delete the recording you no longer need.

Deleting saved recordings
To delete a recording, follow these steps:
1. To delete a recording, click on the symbol recordings" area.
The record is deleted.

in the corresponding line in the "Saved

Note Traces cannot be deleted individually
You cannot delete traces individually. When you delete a recording, all included traces are deleted.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

229

Kinematics trace 9.5 Importing and exporting recordings

9.5

Importing and exporting recordings

You have the option to export a recording as measurement, as *.ltr or *.csv file. The exported file contains the TCP position values, the OCS position values and the configuration of the kinematics technology object.

You can re-import an exported *.ltr file into the kinematics trace. The recordings saved under measurements cannot be imported into the kinematics trace again.

Export record as file
To export a record, proceed as follows: 1. From the list of recordings, select the record to be exported.
2. Click on the symbol in the toolbar. The "Export recording" dialog opens.
3. Select "*.csv" or "*.ltr" as file format. 4. Select the storage location. 5. Click on "Export recording".
The file is exported.

Import recording as file
To import a recording, proceed as follows:
1. Click on the symbol in the toolbar. The "Import recording" dialog opens.
2. In the corresponding folder, select the file you want to import. 3. Click on the "Import file" button.
The file is imported. The recording is displayed in the tabular editor under saved recordings.

230

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Kinematics trace 9.5 Importing and exporting recordings

Save recording as measurement
With the trace you have extended evaluation options to analyze kinematics motion in detail. To save the recording as a measurement, proceed as follows: 1. Select the current recording or a saved recording.
2. Click on the symbol in the toolbar. The "Save recording" dialog opens.
3. File the recording under "Traces > Measurements". 4. Under "Traces > Measurements", load the saved recording into the trace.
The recording is displayed in the trace. The recording contains the coordinates of the TCP and the positions of the interconnected axes.

See also

Graphic display and toolbar (Page 222)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

231

Measuring

10

Open calibration under "Technology object > Calibration". Alternatively, specify an OCS frame under "Technology object > Configuration > Extended parameters > OCS frames" and click on the symbol .
With the calibration you determine the exact position of the object coordinate systems (OCS) in the world coordinate system (WCS).
The following options are available for this:
 Check the position of an already defined OCS in the WCS.
 Redefine the position of an OCS frame in the WCS.
The procedure for determining the position of an OCS is identical for both options.
Different calibration methods are available for each kinematics type:

Calibration method
Three-point (Page 234) Two-point (Page 234) One-point (Page 234) Move and rotate (Page 238) Move and rotate around y (Page 241) Move and rotate around z (Page 241) Plane (Page 244)

2D kinematics
x x
-
-

2D kinematics with 3D kinemat-

orientation

ics

-

x

-

-

x

-

-

x

-

-

-

-

-

x

3D kinematics with orientation
x -
x
-

232

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.1 Structure of the calibration

10.1

Structure of the calibration
During calibration you configure the calibration methods. The kinematics with the selected calibration method is shown graphically in the graphic display. You can use the calibration in offline and online instructions.
The calibration is divided into the following areas:
 Selecting the calibration method
 Graphic display with toolbar and keypad
 Kinematics control panel

Selecting the calibration method
In the area "Selection of the calibration method", select a calibration method for the kinematics. You can assign an object coordinate system (OCS) to the calibration method. Select an OCS from the kinematics and assign a calibration method to the OCS.
You can assign the following calibration methods:
 Three-point, two-point or one-point (Page 234)
 Move and rotate (Page 238)
 Move and rotate around y or z (Page 241)
 Plane (Page 244)
If you have selected a calibration method, you can configure the corresponding parameters. If you have configured the parameters, you can transfer the values to the configuration or reset the values again.

Graphic display with toolbar and keypad
The following configured parameters are shown graphically in the graphic display:
 Points ("Three-point", "Two-point" or "One-point" method)
 Planes ("Planes" method)
 Angle ("Move and rotate" method)
You operate the graphic display of the calibration via the toolbar. Offline, you can change the position of the Kinematics in the graphic display using a keypad. By jogging on a coordinate axis, you can navigate the positions of the kinematics in positive or negative x, y or z direction.

Kinematics control panel
With the kinematics control panel, you assume master control for a kinematics technology object and control the motions of the kinematics or the individual axes.
The functionality of the kinematics control panel is described in section "Commissioning (Page 203)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

233

Measuring 10.2 "Three-point" / "two-point" / "one-point" calibration method

10.2

"Three-point" / "two-point" / "one-point" calibration method
Use the following points methods to compare points in the world coordinate system (WCS) and object coordinate system (OCS):
 Three-point
 Two-point
 One-point
The points methods are used, for example, to approach a pallet or a box.
To determine the position of an OCS, first define the points in the WCS. Then enter the corresponding coordinates in the OCS for the configured points. With these methods, the tool center point (TCP) of the kinematics must be able to reach the defined points.
Your entries are checked by comparing the points in the WCS with the points in the OCS. The status of the check gives you feedback on the accuracy of your information. With the one-point method, it is not necessary to consider the accuracy of the points.
To compare the actual position of an OCS in the WCS with your configured OCS frames, move the kinematics to the corresponding points.
You have the following options for defining positions in the WCS:
 Enter values manually in the x, y and z coordinate fields.
 Apply the current position values of the TCP using the symbol
 Couple position values to the TCP via the symbol

Object coordinate system
Select an OCS from the drop-down list.

Calibration method
In the drop-down list, select a calibration method. Depending of the kinematics type, the following calibration methods are available:

Calibration method
Three-point Two-point One-point

2D kinematics
x -

2D kinematics with 3D kinemat-

orientation

ics

-

x

-

-

x

-

3D kinematics with orientation
x -

234

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.2 "Three-point" / "two-point" / "one-point" calibration method

Status display

The status indicator shows the progress and notes on input.
The entered values of the calibration are checked for the "three-point" and "two point" methods. The distances between the points in the OCS are compared with the distances between the points in the WCS. With the one-point method, a comparison of the points is not necessary.
If the inputs are still incomplete, the status indicator is displayed in red. Depending of your inputs, the status indicator shows the following:
 With the three-point method:
Angle of triangles in WCS and OCS, less than 20° degrees
 With the three-point and two-point method:
Deviation of the points in WCS and OCS to each other greater than 5%
If your entries are complete and correct, the status indicator appears green. You can accept the values in the configuration.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

235

Measuring 10.2 "Three-point" / "two-point" / "one-point" calibration method

1. Configure first point
You define the first point for the following methods:  Three-point  Two-point  One-point
In the "one-point" method, only the x and y coordinates are available to you In this area, define the position of the first point in the WCS and OCS:

Field/Button Position in the WCS
x y z
Position in OCS x position y position z position

Description
In these fields, define the coordinates in the WCS.
In this field, define the position of the OCS in x direction of the WCS.
In this field, define the position of the OCS in y direction of the WCS.
In this field, define the position of the OCS in z direction of the WCS.
With this symbol next to the field "Position of the WCS", you apply all coordinates of the position of the TCP. With this symbol next to the field of a coordinate, you accept only the value of the corresponding coordinate. Move the kinematics to a position. If you click on the symbol, the current position value of the TCP is applied. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you couple all coordinates of the position to the TCP. With this symbol next to the field of a coordinate, you couple only the value of the corresponding coordinate to the TCP. When you click on the symbol, the symbol changes to and the position value is coupled to the TCP. The corresponding fields of the coordinates are inactive. In the corresponding fields of the coupled coordinates, the current value of the TCP is displayed while moving the kinematics. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you decouple all coordinates of the position at the TCP. With this symbol next to the field of a coordinate, you decouple only the value of the corresponding coordinate at the TCP. When you click on the symbol, the symbol changes to and the corresponding position value is coupled of the TCP is decoupled. The corresponding fields of the coordinates can be edited again.
In these fields, define the coordinates in the OCS.
In this field, define the position of the calibration point in x direction in the OCS.
In this field, define the position of the calibration point in y direction in the OCS.
In this field, define the position of the calibration point in z direction in the OCS.

236

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.2 "Three-point" / "two-point" / "one-point" calibration method

2. Configure second point
You define the second point for the following methods:  Three-point  Two-point
in the "two-point" method, the z coordinate is taken from the first point. In this area, define the position of the second point in the WCS and OCS. Proceed as described under "Configure first point".

3. Configure third point
You define the third point for the "three-point" method.
In this area, define the position of the third point in the WCS and OCS. Proceed as described under "Configure first point".

Apply values

If you have entered new values for the calibration and the "status indicator" is green, you can click on the button "Apply values".
With the button "Apply values", you accept the values from the calibration into the configuration. As soon as the values of the configuration match the values of the measurement, the button is inactive.

Reset values

With the "Reset values" button, you reset the entered values of the calibration.

See also

Measuring (Page 232)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

237

Measuring 10.3 "Move and rotate" calibration method

10.3

"Move and rotate" calibration method
With the "Move and rotate" method, you shift the origin of the object coordinate system (OCS) and rotate the OCS.
To begin with, define the OCS origin as first point. Move this point e.g. to the corner point of a pallet. To define the rotation of the OCS, select a coordinate axis and an angle.
You have the following options to define positions in the world coordinate system (WCS):
 Enter values manually in the x, y and z coordinate fields.
 Apply the current position values of the tool center point (TCP) with the symbol .
 Couple position values to the TCP via the symbol

Object coordinate system
Select an OCS from the drop-down list.

Calibration method
In the drop-down list, select a calibration method. Depending of the kinematics type, the following calibration methods are available:

Calibration method Move and rotate

2D kinematics
-

2D kinematics with 3D kinemat-

orientation

ics

-

x

3D kinematics with orientation
-

Status display

If your entries are still incomplete, the status indicator appears red.
If your entries are complete and correct, the status indicator appears green. You can accept the values in the configuration.

238

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.3 "Move and rotate" calibration method

1. Shift of the OCS origin
Define the offset of the OCS in the WCS in this area:

Field/Button Position in the WCS
x y z

Description
In these fields, define the coordinates in the WCS.
In this field, define the position of the OCS in x direction of the WCS.
In this field, define the position of the OCS in y direction of the WCS.
In this field, define the position of the OCS in z direction of the WCS.
With this symbol next to the field "Position of the WCS", you apply all coordinates of the position of the TCP. With this symbol next to the field of a coordinate, you accept only the value of the corresponding coordinate.
Move the kinematics to a position. If you click on the symbol, the current position value of the TCP is applied. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you couple all coordinates of the position to the TCP. With this symbol next to the field of a coordinate, you couple only the value of the corresponding coordinate to the TCP.
When you click on the symbol, the symbol changes to and the position value is coupled to the TCP. The corresponding fields of the coordinates are inactive.
In the corresponding fields of the coupled coordinates, the current value of the TCP is displayed while moving the kinematics. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you decouple all coordinates of the position at the TCP. With this symbol next to the field of a coordinate, you decouple only the value of the corresponding coordinate at the TCP.
When you click on the symbol, the symbol changes to and the corresponding position value is coupled of the TCP is decoupled. The corresponding fields of the coordinates can be edited again.

2. Select the coordinate axis around which you want to rotate
In the drop-down list, select a coordinate axis around which you want to rotate.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

239

Measuring 10.3 "Move and rotate" calibration method

3. Rotate OCS

To align a coordinate axis in direction of the TCP, you have the following options:  Align angle with this symbol in direction of the TCP.  Couple angle with this symbol to the TCP. In these fields, define the rotation around the selected coordinate axis:

Field
Rotation of the coordinate axis
Angle

Description
In this drop-down list, select a coordinate axis around which the OCS is to be rotated.
In this field, define the rotation of the coordinate axis to the TCP.
Move the kinematics to a position. When you click on the symbol, the angle to the TCP is applied.
When you click on this symbol, the symbol changes to and the angle is coupled to the TCP. The input field of the angle is inactive.
In the corresponding fields of the coupled coordinates, the angle of the coordinate axis to the TCP is displayed when moving the kinematics.
When you click on this symbol, the symbol changes to and the angle of the coordinate axis is decoupled from the TCP. The input field of the angle can be edited again.

Apply values

With the button "Apply values", you accept the values from the calibration into the configuration. As soon as the values of the configuration match the values of the measurement, the button is inactive.

Reset values

The "Reset values" button is used to reset the entered values.

See also

Measuring (Page 232)

240

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.4 "Move and rotate around y or z" calibration method

10.4

"Move and rotate around y or z" calibration method
Use the "Move and rotate around y or z" method to move the origin of the object coordinate system (OCS) and to rotate OCS.
To begin with, define the OCS origin as first point. Move this point e.g. to the corner point of a pallet. To define the rotation of the OCS, select a coordinate axis.
You have the following options to define positions in the world coordinate system (WCS):
 Enter values manually in the x, y and z coordinate fields.
 Apply the current position values of the tool center point (TCP) with the symbol .
 Couple position values to the TCP via the symbol

Object coordinate system
Select an OCS from the drop-down list.

Calibration method
In the drop-down list, select a calibration method. Depending of the kinematics type, the following calibration methods are available:

Calibration method
Move and rotate around y Move and rotate around z

2D kinematics
x -

2D kinematics with 3D kinemat-

orientation

ics

-

-

-

-

3D kinematics with orientation
x

Status display

If your entries are still incomplete, the status indicator appears red.
If your entries are complete and correct, the status indicator appears green. You can accept the values in the configuration.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

241

Measuring 10.4 "Move and rotate around y or z" calibration method

1. Shift of the OCS origin
Define the offset of the OCS in the WCS in this area:

Field/Button Position in the WCS
x y z

Description
In these fields, define the coordinates in the WCS.
In this field, define the position of the OCS in x direction of the WCS.
In this field, define the position of the OCS in y direction of the WCS.
In this field, define the position of the OCS in z direction of the WCS.
With this symbol next to the field "Position of the WCS", you apply all coordinates of the position of the TCP. With this symbol next to the field of a coordinate, you accept only the value of the corresponding coordinate.
Move the kinematics to a position. If you click on the symbol, the current position value of the TCP is applied. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you couple all coordinates of the position to the TCP. With this symbol next to the field of a coordinate, you couple only the value of the corresponding coordinate to the TCP.
When you click on the symbol, the symbol changes to and the position value is coupled to the TCP. The corresponding fields of the coordinates are grayed out.
In the corresponding fields of the coupled coordinates, the current value of the TCP is displayed while moving the kinematics. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you decouple all coordinates of the position at the TCP. With this symbol next to the field of a coordinate, you decouple only the value of the corresponding coordinate at the TCP.
When you click on the symbol, the symbol changes to and the corresponding position value is coupled of the TCP is decoupled. The corresponding fields of the coordinates can be edited again.

242

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.4 "Move and rotate around y or z" calibration method

2. Rotate OCS

To align a coordinate axis in direction of the TCP, you have the following options:  Align angle with this symbol in direction of the TCP.  Couple angle with this symbol to the TCP. In these fields, define the rotation around the selected coordinate axis in the second point:

Field
Rotation of the coordinate axis
Angle

Description
In this drop-down list, select a coordinate axis around which the OCS is to be rotated.
In this field, define the rotation of the axis to the TCP.
Move the kinematics to a position. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
When you click on the symbol, the current rotation of the angle to the TCP is applied. When you click on the symbol, the current rotation of the axis to the TCP is applied.
When you click on the symbol, the symbol changes to and the angle is coupled to the TCP. The corresponding field of the angle is inactive.
In the corresponding fields of the coupled coordinates, the angle of the coordinate axis to the TCP is displayed when moving the kinematics. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
When you click on the symbol, the symbol changes to and the angle of the coordinates axis is decoupled from the TCP. The corresponding field of the angle can be edited again.

Apply values

With the button "Apply values", you accept the values from the calibration into the configuration. As soon as the values of the configuration match the values of the measurement, the button is inactive.

Reset values

The "Reset values" button is used to reset the entered values.

See also

Measuring (Page 232)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

243

Measuring 10.5 "Plane" calibration method

10.5

"Plane" calibration method
With the "Plane" method you move the origin of the object coordinate system (OCS) and determine the position and rotation of the OCS.
The "Plane" method can be used, for example, with a pallet that lies on an inclined plane.
To begin with, define the OCS origin as first point. Move this point e.g. to the corner point of a pallet. To define the position of the OCS, select a coordinate axis that you want to rotate in the direction of the TCP.
To align the coordinate axis in the direction of the TCP, move the kinematics to a point along an edge of the pallet. The position of the OCS is thus determined. The rotation of the OCS is determined by clamping a plane between two coordinate axes.
You have the following options to define positions in the world coordinate system (WCS):
 Enter values manually in the x, y and z coordinate fields.
 Apply the current position values of the tool center point (TCP) with the symbol .
 Couple position values to the TCP with the symbol

Object coordinate system
Select an OCS from the drop-down list.

Calibration method
In the drop-down list, select a calibration method. Depending of the kinematics type, the following calibration methods are available:

Calibration method Plane

2D kinematics
-

2D kinematics with 3D kinemat-

orientation

ics

-

x

3D kinematics with orientation
-

Status display

If your entries are still incomplete, the status indicator appears red.
If your entries are complete and correct, the status indicator appears green. You can accept the values in the configuration.

244

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.5 "Plane" calibration method

1. Shift of the OCS origin
In this area, define the position of the OCS in the WCS:

Field/Button Position in the WCS
x y z

Description
In these fields, define the coordinates of the OCS in the WCS.
In this field, define the position of the OCS in x direction of the WCS.
In this field, define the position of the OCS in y direction of the WCS.
In this field, define the position of the OCS in z direction of the WCS.
With this symbol next to the field "Position of the WCS", you apply all coordinates of the position of the TCP. With this symbol next to the field of a coordinate, you accept only the value of the corresponding coordinate.
Move the kinematics to a position. If you click on the symbol, the current position value of the TCP is applied. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you couple all coordinates of the position to the TCP. With this symbol next to the field of a coordinate, you couple only the value of the corresponding coordinate to the TCP.
When you click on the symbol, the symbol changes to and the position value is coupled to the TCP. The corresponding fields of the coordinates are inactive.
In the corresponding fields of the coupled coordinates, the current value of the TCP is displayed while moving the kinematics. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
With this symbol next to the field "Position of the WCS", you decouple all coordinates of the position at the TCP. With this symbol next to the field of a coordinate, you decouple only the value of the corresponding coordinate at the TCP.
When you click on the symbol, the symbol changes to and the corresponding position value is coupled of the TCP is decoupled. The corresponding fields of the coordinates can be edited again.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

245

Measuring 10.5 "Plane" calibration method

2. Rotate the coordinate axis toward the TCP
You have two options for aligning a coordinate axis in the direction of the TCP:  Align the coordinate axis with this symbol in the direction of the TCP.  Couple the coordinate axis to the TCP with this symbol Use the buttons to define how the coordinate axis is adapted to the current position values of the TCP:

Field
Rotation of the coordinate axis

Description
In this drop-down list, select a coordinate axis around which the OCS is to be rotated.
When you click on this symbol, the rotation of the selected coordinate axis to the TCP is applied.
Move the kinematics to a position. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
When you click on this symbol, the symbol changes to and the coordinate axis is coupled to the TCP. During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
When you click on this symbol, the symbol changes to and the coordinate axis is decoupled from the TCP.

246

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.5 "Plane" calibration method

3. Clamp plane over two coordinate axes
To clamp a plane with coordinate axes, you have the following options:  Clamp plane with the symbol in the direction of the TCP.  Clamp plane with the symbol via the traversing of the TCP

Use the buttons to define how the alignment of the planes is adapted to the current position value of the TCP:

Field/Button Plane

Description
In this drop-down list, select the coordinate axes via which the plane is to be clamped.
Different coordinate axes are available for selection depending of the coordinate axis that you have selected in the field "Rotation of the coordinate axis".
During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
Move the kinematics to a position. If you click on this symbol, the current position value of the TCP is applied.
During calibration, you can move the kinematics offline via the keypad or online via the kinematics control panel.
When you click on this symbol, the symbol changes to and the clamped plane is coupled to the TCP. The alignment of the planes changes when the kinematics is moved.
When you click on this symbol, the symbol changes to and the clamped plane is decoupled.

Apply values

With the button "Apply values", you accept the values from the calibration into the configuration. As soon as the values of the configuration match the values of the measurement, the button is inactive.

Reset values

The "Reset values" button is used to reset the entered values.

See also

Measuring (Page 232)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

247

Measuring 10.6 Graphic display and toolbar

10.6
Toolbar

Graphic display and toolbar
In the graphic display with toolbar, the traversing of the kinematics and the tool center point (TCP) is displayed graphically with the selected measuring method.

The toolbar at the top of the graphical display provides you with buttons for the following functions:

Button

Function Fit to screen size Show coordinate system Select coordinate system Show 2D view Show 3D view Focus TCP
Show xz plane Show xz plane rotated Show yz plane Show yz plane rotated Show xy plane Show xy plane rotated Select tool

Description Centers the view and displays the entire kinematics.
Shows or hides the selected coordinate system with grid lines. Select a coordinate system.
Switches the view to the 2D view.
Switches the view to the 3D view.
Switches the view to "Focus TCP" During the path motion of the kinematics, the focus is always on the TCP. In standstill, the view can be moved or rotated using the mouse. Shows the xz plane
Shows the xz plane rotated around the z axis.
Shows the yz plane
Shows the yz plane rotated around the z axis.
Shows the xy plane
Shows the xy plane rotated around the z axis.
Select a tool.

248

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Measuring 10.6 Graphic display and toolbar

Button

Function Show/hide kinematics model
Show kinematics

Description
If you click on the arrow, the graphical view options of the kinematics are shown. If you click on the symbol, you change the graphical view of the kinematics.
Shows the kinematics.

Display simplified model

Shows a simplified view of the kinematics.

Hide model

Hides the view of the kinematics.

Highlight zones

Shows or hides the tool coordinate system (TCS).

Operation of the graphic display
The following values are displayed graphically depending of the configured calibration method:  Configured points in the world coordinate system (WCS) and in the object coordinate
system (OCS)  Configured angle  Guide lines are shown  Offset of the OCS from the origin  Current position of the TCP  Active calibration point is graphically highlighted In the graphic display you have the following possible operations with the mouse:  Rotate and zoom the coordinate system with displayed kinematics  Change the position of the TCP with the keypad via the x, y or z coordinate axes

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

249

Instructions

11

11.1

Kinematics motions

11.1.1

MC_GroupInterrupt V5

11.1.1.1

MC_GroupInterrupt: Interrupt motion execution V5

Description

With the Motion Control instruction "MC_GroupInterrupt", you interrupt the execution of the motion on a kinematics technology object. The interrupted kinematics motion can be resumed with a "MC_GroupContinue" job.
If the kinematics is already at a standstill, the execution of the motion is also interrupted for subsequent motion jobs. New motion jobs are then arranged as pending jobs in the job sequence.
With the "Mode" parameter, you specify the dynamic behavior of the holding.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.  The interconnected axes are enabled.

Override response
The override response for "MC_GroupInterrupt" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

250

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameters

The following table shows the parameters of Motion Control instruction "MC_GroupInterrupt":

Parameter
AxesGroup Execute Mode

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Done Busy Active CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 0
FALSE FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Mode for dynamic behavior

0

Stop with the dynamics of the motion

job to be interrupted

1

Stop with maximum dynamics of kine-

matics motion

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) Interrupting, continuing and stopping kinematics motions (Page 194) Override response V5: Kinematics motion commands (Page 331)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

251

Instructions 11.1 Kinematics motions

11.1.2

MC_GroupContinue V5

11.1.2.1

MC_GroupContinue: Continue motion execution V5

Description

With the Motion Control instruction "MC_GroupContinue", you continue a kinematics motion that was previously interrupted with a "MC_GroupInterrupt" job. The kinematics motion can also be continued if the kinematics has not yet come to a standstill following the "MC_GroupInterrupt" job.
The "MC_GroupContinue" job has only an effect if the technology object is in "Interrupted" state.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.  The interconnected axes are enabled.

Override response
 An "MC_GroupContinue" job is not aborted by any other Motion Control job.
 A new "MC_GroupContinue" job aborts a current "MC_GroupInterrupt" job.
 The override response for "MC_GroupContinue" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

252

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameters
Parameter AxesGroup Execute Done Busy Error
ErrorID

The following table shows the parameters of Motion Control instruction "MC_GroupContinue":

Declara- Data type tion INPUT TO_Kinematics INPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

TRUE Job is completed.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) Interrupting, continuing and stopping kinematics motions (Page 194) Override response V5: Kinematics motion commands (Page 331)

11.1.2.2

MC_GroupContinue: Function chart V5

Function chart: Continue motion execution

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

253

Instructions 11.1 Kinematics motions

The kinematics is moved with an "MC_MoveLinearAbsolute" job (A1).
At time , the "MC_MoveLinearAbsolute" job is interrupted by an "MC_GroupInterrupt" job
(A2). The kinematics is in "Interrupted" state. With "Mode = 0" the motion is stopped with the dynamics of the "MC_MoveLinearAbsolute" job. The completion of the "MC_GroupInterrupt" job is reported via "Done_2".
At time , the "MC_MoveLinearAbsolute" job is continued by an "MC_GroupContinue" job
(A3).

254

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.3

MC_GroupStop V5

11.1.3.1

MC_GroupStop: Stop motion V5

Description

With the Motion Control instruction "MC_GroupStop", you stop and abort an active motion on the kinematics technology object. If the motion was already interrupted with an "MC_GroupInterrupt", this is aborted. All still pending jobs in the job sequence are also aborted by a "MC_GroupStop" job. As long as the "Execute" parameter is set to TRUE, kinematics jobs are rejected ("ErrorID" = 16#80CD).
With the "Mode" parameter, you specify the dynamic behavior of the stop motion.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.  The interconnected axes are enabled.

Override response
The override response for "MC_GroupStop" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

255

Instructions 11.1 Kinematics motions

Parameters

The following table shows the parameters of Motion Control instruction "MC_GroupStop":

Parameter
AxesGroup Execute Mode

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Done Busy Active CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 0
FALSE FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Mode for dynamic behavior

0

Stop with the dynamics of the motion

job to be interrupted

1

Stop with maximum dynamics of kine-

matics motion

When dynamic adaptation is activated, the dynamics of the motion can also be reduced so that the dynamic limits of the axes are not exceeded.

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) Interrupting, continuing and stopping kinematics motions (Page 194) Override response V5: Kinematics motion commands (Page 331)

256

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

11.1.3.2

MC_GroupStop: Function chart V5

Function chart: Stop motion

Instructions 11.1 Kinematics motions

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

257

Instructions 11.1 Kinematics motions
The kinematics is moved with an "MC_MoveLinearAbsolute" job (A1).
At time , the "MC_MoveLinearAbsolute" job is aborted by an "MC_GroupStop" job (A2).
The job abort is signaled via "Abort_1". With "Mode = 0" the motion is stopped with the dynamics of the "MC_MoveLinearAbsolute" job. The completion of the "MC_GroupStop" job is reported via "Done_2".

11.1.4

MC_MoveLinearAbsolute V5

11.1.4.1

MC_MoveLinearAbsolute: Position kinematics with linear path motion V5

Description

With the Motion Control instruction "MC_MoveLinearAbsolute", you move a kinematics with a circular motion to an absolute position. Cartesian orientation is also used absolute.
Dynamic behavior during movement is defined with the parameters "Velocity", "Acceleration", "Deceleration" and "Jerk". For the dynamics of the orientation motion, the default values are configured in "Technology object > Configuration > Extended parameters > Dynamic defaults".
 <TO>.DynamicDefaults.Orientation.Velocity
 <TO>.DynamicDefaults.Orientation.Acceleration
 <TO>.DynamicDefaults.Orientation.Deceleration
 <TO>.DynamicDefaults.Orientation.Jerk

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.
The override response for "MC_MoveLinearAbsolute" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

258

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameters
Parameter AxesGroup Execute Position
Position[1] Position[2] Position[3] Position[4] Velocity
Acceleration
Deceleration

The following table shows the parameters of Motion Control instruction "MC_MoveLinearAbsolute":

Declaration INPUT INPUT INPUT
INPUT INPUT INPUT INPUT INPUT

Data type
TO_Kinematics BOOL ARRAY [1..4] OF LREAL LREAL LREAL LREAL LREAL LREAL

INPUT LREAL

INPUT LREAL

Default value FALSE 0.0 0.0 0.0 0.0 -1.0
-1.0
-1.0

Description

Technology object

TRUE Start job with a positive edge

Absolute target coordinates in the specified reference system

x-coordinate

y-coordinate

z-coordinate

A-coordinate

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Velocit y)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Accele ration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Decele ration)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

259

Instructions 11.1 Kinematics motions

Parameter Jerk

Declaration
INPUT

Data type LREAL

DirectionA CoordSystem

INPUT DINT INPUT DINT

BufferMode

INPUT DINT

Default value -1.0
3 0
1

Description

Jerk

> 0.0 The specified value is used.

= 0.0 No jerk limitation

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Jerk)

Motion direction of the Cartesian orientation

1

Positive direction

2

Negative direction

3

Shortest distance

Reference system of the specified target position and target orientation

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

260

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameter TransitionParameter

Declaration
INPUT

TransitionParameter[1] INPUT

Data type
ARRAY [1..5] OF LREAL LREAL

TransitionParameter[2] INPUT

TransitionParameter[3] INPUT

TransitionParameter[4] INPUT

TransitionParameter[5] INPUT

DynamicAdaption

INPUT

LREAL LREAL LREAL LREAL DINT

Done Busy Active

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

CommandAborted Error

OUTPUT BOOL OUTPUT BOOL

ErrorID RemainingDistance

OUTPUT WORD OUTPUT LREAL

Default value

Description Transition parameter

-1.0
-1
FALSE FALSE FALSE
FALSE FALSE
16#0000 -1.0

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Dynamic adaptation

< 0

The configured setting in "Technolo-

gy object > Configuration > Extended

parameters > Dynamic" is used.

(<TO>.DynamicDefaults.DynamicAd aption)

0

Without dynamic adaption

1

Dynamic adaptation with segmenta-

tion of the path

2

Dynamic adaptation without segmen-

tation of the path

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

Distance-to-go of the current job

See also

Error ID (kinematics) (Page 383) Linear motion (Page 141) Connection of multiple kinematics motions with geometric transitions (Page 195) Override response V5: Kinematics motion commands (Page 331)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

261

Instructions 11.1 Kinematics motions

11.1.4.2

MC_MoveLinearAbsolute: Function chart V5

Function chart: Position kinematics with linear path motion

262

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions
The kinematics is moved with an "MC_MoveLinearAbsolute" job (A1).
At time  an additional "MC_MoveLinearAbsolute" job (A2) is initiated. As the
"MC_MoveLinearAbsolute" jobs have no override effect on one another, the job A2 is arranged in the job sequence.
At the point in time , completion of the A1 job is signaled via "Done_1" and the job A2 is
started. As "BufferMode = 2" is set for job A2, the motion transition is smoothed with the lower velocity of both jobs. As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

11.1.5

MC_MoveLinearRelative V5

11.1.5.1

MC_MoveLinearRelative: Relative positioning of kinematics with linear path motion V5

Description

With the Motion Control instruction "MC_MoveLinearRelative", you can move a kinematics with a linear path relative to the position which was present at the start of the job processing. Cartesian orientation is also used relative.
Dynamic behavior during movement is defined with the parameters "Velocity", "Acceleration", "Deceleration" and "Jerk". For the dynamics of the orientation motion, the default values are configured in "Technology object > Configuration > Extended parameters > Dynamic defaults".
 <TO>.DynamicDefaults.Orientation.Velocity
 <TO>.DynamicDefaults.Orientation.Acceleration
 <TO>.DynamicDefaults.Orientation.Deceleration
 <TO>.DynamicDefaults.Orientation.Jerk

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

263

Instructions 11.1 Kinematics motions

The override response for "MC_MoveLinearRelative" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

Parameters
Parameter AxesGroup Execute Distance
Distance[1] Distance[2] Distance[3] Distance[4] Velocity
Acceleration

The following table shows the parameters of Motion Control instruction "MC_MoveLinearRelative":

Declaration INPUT INPUT INPUT
INPUT INPUT INPUT INPUT INPUT

Data type
TO_Kinematics BOOL ARRAY [1..4] OF LREAL LREAL LREAL LREAL LREAL LREAL

INPUT LREAL

Default value FALSE 0.0 0.0 0.0 0.0 -1.0
-1.0

Description

Technology object

TRUE Start job with a positive edge

Relative target coordinates in the specified reference system

x-coordinate

y-coordinate

z-coordinate

A-coordinate

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Velocit y)

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Accele ration)

264

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Parameter Deceleration

Declaration
INPUT

Data type LREAL

Jerk

INPUT LREAL

CoordSystem

INPUT DINT

BufferMode

INPUT DINT

Instructions 11.1 Kinematics motions

Default value -1.0
-1.0
0
1

Description

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Decele ration)

Jerk

> 0.0 The specified value is used.

= 0.0 No jerk limitation

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Jerk)

Reference system of the specified target position and target orientation

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

265

Instructions 11.1 Kinematics motions

Parameter TransitionParameter

Declaration
INPUT

TransitionParameter[1] INPUT

Data type
ARRAY [1..5] OF LREAL LREAL

TransitionParameter[2] INPUT

TransitionParameter[3] INPUT

TransitionParameter[4] INPUT

TransitionParameter[5] INPUT

DynamicAdaption

INPUT

LREAL LREAL LREAL LREAL DINT

Done Busy Active

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

CommandAborted Error

OUTPUT BOOL OUTPUT BOOL

ErrorID RemainingDistance

OUTPUT WORD OUTPUT LREAL

Default value
-

Description Transition parameter

-1.0
-1.0
FALSE FALSE FALSE
FALSE FALSE
16#0000 -1.0

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Dynamic adaptation

< 0

The configured setting in "Technolo-

gy object > Configuration > Extended

parameters > Dynamic" is used.

(<TO>.DynamicDefaults.DynamicAd aption)

0

Without dynamic adaption

1

Dynamic adaptation with segmenta-

tion of the path

2

Dynamic adaptation without segmen-

tation of the path

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

Distance-to-go of the current job

See also

Error ID (kinematics) (Page 383) Linear motion (Page 141) Connection of multiple kinematics motions with geometric transitions (Page 195) Override response V5: Kinematics motion commands (Page 331)

266

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

11.1.5.2

MC_MoveLinearRelative: Function chart V5

Function chart: Relative positioning of kinematics with linear path motion

Instructions 11.1 Kinematics motions

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

267

Instructions 11.1 Kinematics motions
The kinematics is moved with an "MC_MoveLinearRelative" job (A1).
At time  an additional "MC_MoveLinearRelative" job (A2) is initiated. As the
"MC_MoveLinearRelative" jobs have no override effect on one another, the job A2 is arranged in the job sequence.
At the point in time , completion of the A1 job is signaled via "Done_1" and the job A2 is
started. As "BufferMode = 5" is set for job A2, the motion transition is smoothed with the higher velocity of both jobs. As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

268

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.6

MC_MoveCircularAbsolute V5

11.1.6.1

MC_MoveCircularAbsolute: Position kinematics with circular path motion V5

Description

With the Motion Control instruction "MC_MoveCircularAbsolute", you can move a kinematics with a circular motion to an absolute position. Cartesian orientation is also used absolute.
With the "CircMode" parameter, you specify the definition of the circular path:
 Via an intermediate point and the end point
With the "AuxPoint" parameter, you specify an intermediate point on the circular path, via which the end point specified in the "EndPoint" parameter is to be approached. The circular path is calculated via the starting, intermediate and end points. Only circular paths less than 360° can be traversed here.
 Via the circle center and angle in a main plane
With the "AuxPoint" parameter, you define the center point of the circle. The end point of the circular path is calculated via the angle specified in the parameter "Arc". With the "PathChoice" parameter, you specify whether the circular path is to be traversed in positive or negative direction of rotation. With the "CirclePlane" parameter, you specify the main plane in which the circular path is to be traversed.
 Via the circle radius and the end point in a main plane
With the "EndPoint" parameter, you specify the end point and with "Radius" the radius of the circular path. Depending on the radius, up to four possible circular paths can occur in the plane defined with the "CirclePlane" parameter. With the "PathChoice" parameter, you specify which of these circular paths is to be moved.
Dynamic behavior during Kinematics motion is defined with the parameters "Velocity", "Acceleration", "Deceleration" and "Jerk". For the dynamics of the orientation motion, the default values are configured in "Technology object > Configuration > Extended parameters > Dynamic defaults".
 <TO>.DynamicDefaults.Orientation.Velocity
 <TO>.DynamicDefaults.Orientation.Acceleration
 <TO>.DynamicDefaults.Orientation.Deceleration
 <TO>.DynamicDefaults.Orientation.Jerk

Applies to

 Kinematics

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

269

Instructions 11.1 Kinematics motions

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.
The override response for "MC_MoveCircularAbsolute" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

Parameters
Parameter AxesGroup Execute CircMode
AuxPoint
AuxPoint[1] AuxPoint[2] AuxPoint[3]

The following table shows the parameters of Motion Control instruction "MC_MoveCircularAbsolute":

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

INPUT

ARRAY [1..3] OF LREAL

INPUT INPUT INPUT

LREAL LREAL LREAL

Default value FALSE 0
-
0.0 0.0 0.0

Description

Technology object

TRUE Start job with a positive edge

Definition of circular path

0

The position vector specified at the

"AuxPoint" parameter defines a point

on the circular path.

1

The position specified at the parame-

ter "AuxPoint" defines the circle cen-

ter.

2

The "Radius" and "EndPoint" param-

eters define the circle segment.

Circular path auxiliary point

· When "CircMode" = 0: Point on the circular path

· When "CircMode" = 1: Center point of the circular path

· When "CircMode" = 2: Not relevant

x-coordinate y-coordinate z-coordinate

270

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Parameter EndPoint
EndPoint[1] EndPoint[2] EndPoint[3] EndPoint[4] PathChoice
CirclePlane
Radius Arc Velocity

Instructions 11.1 Kinematics motions

Declaration
INPUT

Data type
ARRAY [1..4] OF LREAL

INPUT INPUT INPUT INPUT INPUT

LREAL LREAL LREAL LREAL DINT

INPUT DINT
INPUT LREAL INPUT LREAL INPUT LREAL

Default value -
0.0 0.0 0.0 0.0 0
0
0.0 0.0 -1.0

Description

Target position in the specified reference system

When "CircMode" = 1:

Only "EndPoint[4]" relevant (orientation axis)

x-coordinate

y-coordinate

z-coordinate

A-coordinate

Orientation of the circular path

When "CircMode" = 0:

Not relevant

When "CircMode" = 1:

0

Positive direction of rotation

1

Negative direction of rotation

When "CircMode" = 2:

0

Shorter positive circle segment

1

Shorter negative circle segment

2

Longer positive circle segment

3

Longer negative circle segment

Main plane of the circular path

When "CircMode" = 0:

Not relevant

When "CircMode" = 1 and 2:

0

x-z plane

1

y-z plane

2

x-y plane

When "CircMode" = 2:

Radius of the circular movement

When "CircMode" = 1:

Angle of the circular movement

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Velocit y)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

271

Instructions 11.1 Kinematics motions

Parameter Acceleration

Declaration
INPUT

Data type LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

DirectionA CoordSystem

INPUT DINT INPUT DINT

Default value -1.0
-1.0
-1.0
3 0

Description

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Accele ration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Decele ration)

Jerk

> 0.0 The specified value is used.

= 0.0 No jerk limitation

< 0.0

The value configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Jerk)

Motion direction of the Cartesian orientation

1

Positive direction

2

Negative direction

3

Shortest distance

Reference system

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

272

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameter BufferMode

Declaration
INPUT

Data type DINT

TransitionParameter

INPUT

TransitionParameter[1] INPUT

ARRAY [1..5] OF LREAL
LREAL

TransitionParameter[2] INPUT

TransitionParameter[3] INPUT

TransitionParameter[4] INPUT

TransitionParameter[5] INPUT

DynamicAdaption

INPUT

LREAL LREAL LREAL LREAL DINT

Done Busy Active

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

Default value 1
-1.0 -1.0
FALSE FALSE FALSE

Description

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

Transition parameter

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Dynamic adaptation

< 0

The configured setting in "Technolo-

gy object > Configuration > Extended

parameters > Dynamic" is used.

(<TO>.DynamicDefaults.DynamicAd aption)

0

Without dynamic adaption

1

Dynamic adaptation with segmenta-

tion of the path

2

Dynamic adaptation without segmen-

tation of the path

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

273

Instructions 11.1 Kinematics motions

Parameter CommandAborted Error

Declara- Data type tion OUTPUT BOOL
OUTPUT BOOL

ErrorID RemainingDistance

OUTPUT WORD OUTPUT LREAL

Default value FALSE FALSE
16#0000 -1.0

Description

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

Distance-to-go of the current job

See also

Error ID (kinematics) (Page 383) Circular motion (Page 141) Connection of multiple kinematics motions with geometric transitions (Page 195) Override response V5: Kinematics motion commands (Page 331)

274

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.6.2

MC_MoveCircularAbsolute: Function chart V5

Function chart: Position kinematics with circular path motion
In the function chart, sections A1 and A2 of the following kinematics motion are viewed:

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

275

Instructions 11.1 Kinematics motions

The kinematics is moved with an "MC_MoveLinearAbsolute" job (A1).
At time  an "MC_MoveCircularAbsolute" job (A2) is initiated. As the
"MC_MoveCircularAbsolute" job has no overdrive effect, the job A2 is arranged in the job sequence.
At the point in time , completion of the A1 job is signaled via "Done_1" and the job A2 is
started. As "BufferMode = 2" is set for job A2, the motion transition is smoothed with the lower velocity of both jobs and the rounding clearance d1. The circular motion is determined with "CircMode = 1" via the radius r and the end point (x2|y2|z2). As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

276

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.7

MC_MoveCircularRelative V5

11.1.7.1

MC_MoveCircularRelative: Relative positioning of kinematics with circular path motion V5

Description

With the Motion Control instruction "MC_MoveCircularRelative", you can move a kinematics with a circular motion to a relative position. Cartesian orientation is also used relative.
With the "CircMode" parameter, you specify the definition of the circular path:
 Via an intermediate point and the end point
With the "AuxPoint" parameter, you specify an intermediate point on the circular path, via which the end point specified in the "EndPoint" parameter is to be approached. The circular path is calculated via the starting, intermediate and end points. Only circular paths less than 360° can be traversed here.
 Via the circle center and angle in a main plane
With the "AuxPoint" parameter, you define the center point of the circle. The end point of the circular path is calculated via the angle specified in the parameter "Arc". With the "PathChoice" parameter, you specify whether the circular path is to be traversed in positive or negative direction of rotation. With the "CirclePlane" parameter, you specify the main plane in which the circular path is to be traversed.
 Via the circle radius and the end point in a main plane
With the "EndPoint" parameter, you specify the end point and with "Radius" the radius of the circular path. Depending on the radius, up to four possible circular paths can occur in the plane defined with the "CirclePlane" parameter. With the "PathChoice" parameter, you specify which of these circular paths is to be moved.
Dynamic behavior during Kinematics motion is defined with the parameters "Velocity", "Acceleration", "Deceleration" and "Jerk". For the dynamics of the orientation motion, the default values are configured in "Technology object > Configuration > Extended parameters > Dynamic defaults".
 <TO>.DynamicDefaults.Orientation.Velocity
 <TO>.DynamicDefaults.Orientation.Acceleration
 <TO>.DynamicDefaults.Orientation.Deceleration
 <TO>.DynamicDefaults.Orientation.Jerk

Applies to

 Kinematics

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

277

Instructions 11.1 Kinematics motions

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.
The override response for "MC_MoveCircularRelative" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

Parameters
Parameter AxesGroup Execute CircMode
AuxPoint
AuxPoint[1] AuxPoint[2] AuxPoint[3]

The following table shows the parameters of Motion Control instruction "MC_MoveCircularRelative":

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

INPUT

ARRAY [1..3] OF LREAL

INPUT INPUT INPUT

LREAL LREAL LREAL

Default value FALSE 0
-
0.0 0.0 0.0

Description

Technology object

TRUE Start job with a positive edge

Definition of circular path

0

The position vector specified at the

"AuxPoint" parameter defines a point

on the circular path.

1

The position specified at the parame-

ter "AuxPoint" defines the circle cen-

ter.

2

The "Radius" and "EndPoint" param-

eters define the circle segment.

Circular path auxiliary point

· When "CircMode" = 0: Point on the circular path

· When "CircMode" = 1: Center point of the circular path

· When "CircMode" = 2: Not relevant Coordinate relative to the starting point x-coordinate

y-coordinate

z-coordinate

278

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Parameter EndPoint
EndPoint[1] EndPoint[2] EndPoint[3] EndPoint[4] PathChoice
CirclePlane
Radius Arc Velocity

Instructions 11.1 Kinematics motions

Declaration
INPUT

Data type
ARRAY [1..4] OF LREAL

INPUT INPUT INPUT INPUT INPUT

LREAL LREAL LREAL LREAL DINT

INPUT DINT
INPUT LREAL INPUT LREAL INPUT LREAL

Default value -
0.0 0.0 0.0 0.0 0
0
0.0 0.0 -1.0

Description

Target position relative to the starting point in the specified reference system

When "CircMode" = 1: Only EndPoint[4] relevant (orientation axis)

x-coordinate

y-coordinate

z-coordinate

A-coordinate

Orientation of the circular path

When "CircMode" = 0:

Not relevant

When "CircMode" = 1:

0

Positive direction of rotation

1

Negative direction of rotation

When "CircMode" = 2:

0

Shorter positive circular path

1

Shorter negative circular path

2

Longer positive circular path

3

Longer negative circular path

Main plane of the circular path

When "CircMode" = 0:

Not relevant

When "CircMode" = 1 and 2:

0

x-z plane

1

y-z plane

2

x-y plane

When "CircMode" = 2:

Radius of the circular movement

When "CircMode" = 1:

Angle of the circular movement

Velocity

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Velocit y)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

279

Instructions 11.1 Kinematics motions

Parameter Acceleration

Declaration
INPUT

Data type LREAL

Deceleration

INPUT LREAL

Jerk

INPUT LREAL

CoordSystem

INPUT DINT

Default value -1.0
-1.0
-1.0
0

Description

Acceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Accele ration)

Deceleration

> 0.0 The specified value is used.

= 0.0 Not permitted

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Decele ration)

Jerk

> 0.0 The specified value is used.

= 0.0 No jerk limitation

< 0.0

The velocity configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used.

(<TO>.DynamicDefaults.Path.Jerk)

Reference system

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

280

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameter BufferMode

Declaration
INPUT

Data type DINT

TransitionParameter

INPUT

TransitionParameter[1] INPUT

ARRAY [1..5] OF LREAL
LREAL

TransitionParameter[2] INPUT

TransitionParameter[3] INPUT

TransitionParameter[4] INPUT

TransitionParameter[5] INPUT

DynamicAdaption

INPUT

LREAL LREAL LREAL LREAL DINT

Done Busy Active

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

Default value 1
-1.0 -1
FALSE FALSE FALSE

Description

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

Transition parameter

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Dynamic adaptation

< 0

The configured setting in "Technolo-

gy object > Configuration > Extended

parameters > Dynamic" is used.

(<TO>.DynamicDefaults.DynamicAd aption)

0

Without dynamic adaption

1

Dynamic adaptation with segmenta-

tion of the path

2

Dynamic adaptation without segmen-

tation of the path

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

281

Instructions 11.1 Kinematics motions

Parameter CommandAborted Error

Declara- Data type tion OUTPUT BOOL
OUTPUT BOOL

ErrorID RemainingDistance

OUTPUT WORD OUTPUT LREAL

Default value FALSE FALSE
16#0000 -1.0

Description

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

Distance-to-go of the current job

See also

Error ID (kinematics) (Page 383) Circular motion (Page 141) Connection of multiple kinematics motions with geometric transitions (Page 195) Override response V5: Kinematics motion commands (Page 331)

282

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.7.2

MC_MoveCircularRelative: Function chart V5

Function chart: Relative positioning of kinematics with circular path motion
In the function chart, sections A1 and A2 of the following kinematics motion are viewed:

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

283

Instructions 11.1 Kinematics motions

The kinematics is moved with an "MC_MoveLinearRelative" job (A1).
At time  an "MC_MoveCircularRelative" job (A2) is initiated. As the
"MC_MoveCircularRelative" job has no overdrive effect, the job A2 is arranged in the job sequence.
At the point in time , completion of the A1 job is signaled via "Done_1" and the job A2 is
started. As "BufferMode = 2" is set for job A2, the motion transition is smoothed with the lower velocity of both jobs and the rounding clearance d1. The circular motion is determined with "CircMode = 2" via the radius r and the end point (x2|y2|z2). As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

284

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

11.1.8

MC_MoveDirectAbsolute V5

11.1.8.1

MC_MoveDirectAbsolute: Absolute movement of kinematics with synchronous "pointto-point" motion V5

Description

With the Motion Control instruction "MC_MoveDirectAbsolute", you can move the kinematics with a synchronous "point-to-point" motion (sPTP motion) to absolute positions. All kinematics axes are moved at the same time. The axes start the movement at the same time and reach the target position at the same time.
The movement path of the tool center point (TCP) results from the dynamic values of the axes. The kinematics axis with the longest movement time determines the movement time of the motion. The position of the TCP results from the positions of the kinematics axes.
You can also move the orientation of the kinematics to an absolute position. You specify this with the "PositionMode" parameter.
Dynamic behavior during movement is defined by means of factors with the parameters "VelocityFactor", "AccelerationFactor", "DecelerationFactor" and "JerkFactor". The factors relate as percentages to the maximum dynamic values of the corresponding axis configured in "Technology object > Configuration > Extended parameters > Dynamic limits".

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.
The override response for "MC_MoveDirectAbsolute" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

285

Instructions 11.1 Kinematics motions

Parameters
Parameter AxesGroup Execute Position
Position[1]
Position[2]
Position[3]
Position[4]

The following table shows the parameters of Motion Control instruction "MC_MoveDirectAbsolute":

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL ARRAY [1..4] OF LREAL

INPUT LREAL INPUT LREAL INPUT LREAL INPUT LREAL

Default value FALSE -
0.0
0.0
0.0
0.0

Description
Technology object TRUE Start job with a positive edge When "CoordSystem" = 100: Absolute axis positions When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 1: Absolute target coordinates in the specified reference system When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 2: Absolute Cartesian position and relative Cartesian orientation When "CoordSystem" = 100 (MCS): Position of the axis A1 When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 1 or 2: x-coordinate When "CoordSystem" = 100 (MCS): Position of the axis A2 When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 1 or 2: y-coordinate When "CoordSystem" = 100 (MCS): Position of the axis A3 When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 1 or 2: z-coordinate When "CoordSystem" = 100 (MCS): Position of orientation axis A4 When "CoordSystem" = 0, 1, 2 or 3 and "PositionMode" = 1 or 2: A-coordinate

286

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Parameter VelocityFactor

Declaration
INPUT

Data type LREAL

AccelerationFactor

INPUT LREAL

DecelerationFactor

INPUT LREAL

Instructions 11.1 Kinematics motions

Default value -1.0
-1.0
-1.0

Description

Factor for the velocity of axis movements in relation to the respective maximum velocity of the axes ("DynamicLimits.MaxVelocity")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The velocity factor configured in "Technology object > Configuration > Extended parameters > Dynamic defaults" is used. (<TO>.DynamicDefaults.MoveDirect. VelocityFactor)

> 0.0 The specified factor is used.

1.0

The maximum velocity of the axes is

used.

Factor for the acceleration of axis movements in relation to the respective maximum acceleration of the axis ("DynamicLimits.MaxAcceleration")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The acceleration factor configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. AccelerationFactor)

> 0.0 The specified factor is used.

1.0

The maximum acceleration of the

axes is used.

Factor for the deceleration of the axis movements in relation to the respective maximum deceleration of the axis ("DynamicLimits.MaxDeceleration")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The deceleration factor configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. DecelerationFactor)

> 0.0 The specified factor is used.

1.0

The maximum deceleration of the

axes is used.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

287

Instructions 11.1 Kinematics motions

Parameter JerkFactor

Declaration
INPUT

Data type LREAL

LinkConstellation CoordSystem

INPUT DWORD INPUT DINT

BufferMode (Page 195) INPUT DINT

Default value -1.0
16#FFFF FFFF 0
1

Description

Factor for the jerk of axis movements in relation to the respective maximum jerk of the axis ("DynamicLimits.MaxJerk")

Permitted value range: -1.0 <Factor  0.0 and 0.1 < Factor  0.9

< 0.0

The jerk configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. JerkFactor)

0.0

The maximum jerk of the axes is

used.

> 0.1 The specified factor is used.

Target joint position space (Page 352)

#FFFF Keep current joint position space FFFF

Reference system

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

100

Machine coordinate system (MCS)

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity.

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

288

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameter TransitionParameter

Declaration
INPUT

TransitionParameter[1] INPUT

Data type
ARRAY [1..5] OF LREAL LREAL

TransitionParameter[2] INPUT

TransitionParameter[3] INPUT

TransitionParameter[4] INPUT

TransitionParameter[5] INPUT

PositionMode

INPUT

LREAL LREAL LREAL LREAL DINT

DirectionA

INPUT DINT

ExecutionTimeStatus

OUTPUT LREAL

Done Busy Active

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

CommandAborted Error

OUTPUT BOOL OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value
-

Description Rounding clearance

-1.0
1
3
0.0
FALSE FALSE FALSE
FALSE FALSE
16#0000

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Use of the "Position" parameter

1

Absolute Cartesian position and

absolute Cartesian orientation

2

Absolute Cartesian position and

relative Cartesian orientation

When "PositionMode" = 1:

Motion direction of the Cartesian orientation

1

Positive direction

2

Negative direction

3

Shortest distance

Display of execution progress

Value range: 0.0 ... 1.0

The job is completed with "ExecutionTime Status" = 1.0.

TRUE Job is completed.

TRUE The job is being processed.

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Override response V5: Kinematics motion commands (Page 331) Error ID (kinematics) (Page 383)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

289

Instructions 11.1 Kinematics motions

11.1.8.2

MC_MoveDirectAbsolute V5: Function chart

Function chart: Absolute movement of kinematics with synchronous "point-to-point" motion

290

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

The kinematics is moved with an "MC_MoveDirectAbsolute" job (A1).
At time , an additional "MC_MoveDirectAbsolute" job (A2) is initiated. As the
"MC_MoveDirectAbsolute" jobs have no override effect on one another, the job A2 is arranged in the job sequence.
At time , completion of the job A1 is signaled via "Done_1" and the job A2 is started. As
"BufferMode" = 2 is set for job A2, the motion transition is blended with the lower velocity of the two jobs. As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

291

Instructions 11.1 Kinematics motions

11.1.9

MC_MoveDirectRelative V5

11.1.9.1

MC_MoveDirectRelative: Relative movement of kinematics with synchronous "point-topoint" motion V5

Description

With the Motion Control instruction "MC_MoveDirectRelative", you can move the kinematics with a synchronous "point-to-point" motion to relative positions. All kinematics axes are moved at the same time. The axes start the movement at the same time and reach the target position at the same time.
The movement path of the tool center point (TCP) results from the dynamic values of the axes. The kinematics axis with the longest movement time determines the movement time of the motion. The position of the TCP results from the positions of the kinematics axes.
You can also move the orientation of the kinematics to a relative position.
Dynamic behavior during movement is defined by means of factors with the parameters "VelocityFactor", "AccelerationFactor", "DecelerationFactor" and "JerkFactor". The factors relate as percentages to the maximum dynamic values of the corresponding axis configured in "Technology object > Configuration > Extended parameters > Dynamic limits".

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 The interconnected axes are enabled.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
With the "TransitionParameter[1]" parameter, you determine the distance from the target point of the previous motion job at which the new motion job is superimposed.
The override response for "MC_MoveDirectRelative" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

292

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameters
Parameter AxesGroup Execute Distance
Distance[1]
Distance[2]
Distance[3]
Distance[4]
VelocityFactor

The following table shows the parameters of the Motion Control instruction:

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL ARRAY [1..4] OF LREAL

INPUT LREAL

INPUT LREAL

INPUT LREAL

INPUT LREAL

INPUT LREAL

Default value FALSE -
0.0
0.0
0.0
0.0
-1.0

Description

Technology object

TRUE Start job with a positive edge

When "CoordSystem" = 100:

Relative axis positions

When "CoordSystem" = 0, 1, 2 or 3:

Relative target coordinates in the specified reference system

When "CoordSystem" = 100:

Relative position of the axis A1

When "CoordSystem" = 0, 1, 2 or 3:

x-coordinate

When "CoordSystem" = 100:

Relative position of the axis A2

When "CoordSystem" = 0, 1, 2 or 3:

y-coordinate

When "CoordSystem" = 100:

Relative position of the axis A3

When "CoordSystem" = 0, 1, 2 or 3:

z-coordinate

When "CoordSystem" = 100:

Relative position of the axis A4

When "CoordSystem" = 0, 1, 2 or 3:

A-coordinate

Factor for the velocity of axis movements in relation to the respective maximum velocity of the axes ("DynamicLimits.MaxVelocity")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The velocity factor configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. VelocityFactor)

> 0.0 The specified factor is used.

1.0

The maximum velocity of the axes is

used.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

293

Instructions 11.1 Kinematics motions

Parameter AccelerationFactor

Declaration
INPUT

Data type LREAL

DecelerationFactor

INPUT LREAL

JerkFactor

INPUT LREAL

LinkConstellation

INPUT DWORD

Default value -1.0
-1.0
-1.0
16#FFFF FFFF

Description

Factor for the acceleration of axis movements in relation to the respective maximum acceleration of the axis ("DynamicLimits.MaxAcceleration")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The acceleration factor configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. AccelerationFactor)

> 0.0 The specified factor is used.

1.0

The maximum acceleration of the

axes is used.

Factor for the deceleration of the axis movements in relation to the respective maximum deceleration of the axis ("DynamicLimits.MaxDeceleration")

Permitted value range: -1.0 < Factor  1.0

< 0.0

The deceleration factor configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. DecelerationFactor)

> 0.0 The specified factor is used.

1.0

The maximum deceleration of the

axes is used.

Factor for the jerk of axis movements in relation to the respective maximum jerk of the axis ("DynamicLimits.MaxJerk")

Permitted value range: -1.0 <Factor  0.0 and 0.1 < Factor  0.9

< 0.0

The jerk configured in "Technology object > Configuration > Parameter view > DynamicDefaults > MoveDirect" is used. (<TO>.DynamicDefaults.MoveDirect. JerkFactor)

0.0

The maximum jerk of the axes is

used.

> 0.1 The specified factor is used.

Target joint position space (Page 352)

#FFFF Keep current joint position space FFFF

294

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameter CoordSystem

Declaration
INPUT

Data type DINT

BufferMode (Page 195) INPUT DINT

TransitionParameter

INPUT

TransitionParameter[1] INPUT

ARRAY [1..5] OF LREAL
LREAL

TransitionParameter[2] INPUT LREAL

TransitionParameter[3] INPUT LREAL

TransitionParameter[4] INPUT LREAL

TransitionParameter[5] INPUT LREAL

ExecutionTimeStatus

OUTPUT LREAL

Done Busy

OUTPUT BOOL OUTPUT BOOL

Default value 0
1
-1.0 0.0
FALSE FALSE

Description

Reference system

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

100

Machine coordinate system (MCS)

Motion transition

1

Append motion

The active motion sequence is completed and the kinematics comes to a standstill. The movement of this job is then executed.

2

Smooth with the lower velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The lower velocity of the two jobs is used here.

5

Smooth with the higher velocity

When the blending distance is reached, the current motion is blended with the motion of this job. The higher velocity of the two jobs is used here.

Rounding clearance

Rounding clearance

 0.0 The specified value is used.

< 0.0

The maximum possible rounding clearance is used.

Reserved

Reserved

Reserved

Reserved

Display of execution progress

Value range: 0.0 ... 1.0

The job is completed with "ExecutionTimeStatus" = 1.0.

0.0

The job has not yet been executed.

> 0.0 The job is being executed.

1.0

The job was executed.

TRUE Job is completed.

TRUE The job is being processed.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

295

Instructions 11.1 Kinematics motions

Parameter Active

Declara- Data type tion
OUTPUT BOOL

CommandAborted Error

OUTPUT BOOL OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE
FALSE FALSE
16#0000

Description

TRUE The setpoints are calculated.

FALSE When "Busy" = TRUE:

Job is waiting. (Typical: A preceding job is still active.)

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Override response V5: Kinematics motion commands (Page 331) Error ID (kinematics) (Page 383)

11.1.9.2

MC_MoveDirectRelative V5: Function chart

Function chart: Relative movement of kinematics with synchronous "point-to-point" motion

296

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

The kinematics is moved with an "MC_MoveDirectRelative" job (A1).
At time , an additional "MC_MoveDirectRelative" job (A2) is initiated. As the
"MC_MoveDirectRelative" jobs have no override effect on one another, the job A2 is arranged in the job sequence.
At time , completion of the job A1 is signaled via "Done_1" and the job A2 is started. As
"BufferMode" = 5 is set for job A2, the motion transition is blended with the higher velocity of the two jobs. As soon as the target position is reached, the completion of the A2 job is signaled via "Done_2".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

297

Instructions 11.1 Kinematics motions

11.1.10

MC_TrackConveyorBelt V5

11.1.10.1 MC_TrackConveyorBelt: Start conveyor tracking V5

Description

With the motion control instruction "MC_TrackConveyorBelt", an OCS is assigned via the parameter "ConveyorBelt" to a leading value capable technology object which represents the conveyor belt. The OCS is assigned to a known belt position.
The OCS is assigned with the OCS frame ("ConveyorBeltOrigin") and the product position ("InitialObjectPosition") to a product on the conveyor. The OCS is then coupled with the product in the x-direction.
With the next kinematics motion job, the kinematics moves to the specified position in the OCS and couples with the conveyor.

Applies to

 Kinematics

Requirement

 The technology objects have been configured correctly.  You have selected a kinematics type that can execute path motion jobs.  There is no active single axis job (e.g. "MC_MoveVelocity") on the interconnected axes.

Override response
 A "MC_SetOcsFrame" job cancels the tracking of the OCS with a leading value-capable technology object.
 The override response for "MC_TrackConveyorBelt" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

298

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

Parameters

The following table shows the parameters of Motion Control instruction "MC_TrackConveyorBelt":

Parameter
AxesGroup ConveyorBelt

Declaration INPUT INPUT

Data type

Default value

TO_Kinematics

-

TO_PositioningAxis -

TO_SynchronousAxis

TO_ExternalEncoder

TO_LeadingAxisProxy

Description
Kinematics technology object Leading value capable technology object to which the OCS is coupled: Leading value capable technology objects are: · Positioning axis · Synchronous axis · External encoder · Leading axis proxy

Execute ConveyorBeltOrigin InitialObjectPosition CoordSystem
Done Busy CommandAborted Error
ErrorID

INPUT INPUT
INPUT
INPUT

BOOL

FALSE

TO_Struct_Kinematics _Frame

TO_Struct_Kinematics 0.0 _Frame

DINT

1

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE FALSE FALSE FALSE
16#0000

TRUE Start job with a positive edge OCS frame for conveyor reference position

Position difference between OCS reference position and conveyor position

Number of the tracked OCS

1

OCS1

2

OCS2

3

OCS3

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Override response V5: Kinematics motion commands (Page 331) Error ID (kinematics) (Page 383)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

299

Instructions 11.1 Kinematics motions
11.1.10.2 MC_TrackConveyorBelt V5: Function chart
Function chart: Start conveyor tracking

300

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.1 Kinematics motions

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

301

Instructions 11.1 Kinematics motions
A "MC_MeasuringInput" job (A1) is used to record the position of a product at the time .
The recorded position is reported via "Done_1".
With a "MC_TrackConveyorBelt" job (A2), an OCS is assigned via the parameter "ConveyorBelt" to a leading value capable technology object, which represents the conveyor belt. The OCS is assigned to a known conveyor position. The OCS is assigned with the OCS frame ("ConveyorBeltOrigin") and the product position ("InitialObjectPosition") to a product on the conveyor. The OCS is then coupled with the product in the x-direction.
The status of conveyor tracking ("<TO_Kin_1>.StatusConveyor[1].TrackingState") changes from 0 to 1. When the kinematics moves to the product position, the conveyor tracking status changes from 1 to 2. When the kinematics follow the product position, the status of the belt tracking changes from 2 to 3.
At the times  and , additional products are recorded on the conveyor and the OCS is
reassigned with additional "MC_TrackConveyorBelt" jobs.

302

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

11.2

Zones

Instructions 11.2 Zones

11.2.1

MC_DefineWorkspaceZone V5

11.2.1.1

MC_DefineWorkspaceZone: Define workspace zone V5

Description

With the Motion Control instruction "MC_DefineWorkspaceZone", you define a workspace zone in relation to the world coordinates system or an object coordinates system. The zones (<TO>.WorkspaceZone[1..10]) defined under "Technology object > Configuration > Extended parameters > Zones" are not hereby changed are available again after a restart of the technology object. The "<TO>.StatusWorkspaceZone" tag of the technology object data block contains the currently effective workspace zones.
The "MC_DefineWorkspaceZone" job interjects itself in the job sequence on the Kinematics technology object and therefore effective for the following motion jobs.
With the "GeometryType" and "GeometryParameter" parameters, you specify the zone geometry type and zone size. You use the "ZoneType" parameter to define a workspace zone as work zone, blocked zone or signal zone. You can define up to ten workspace zones. While several of the defined blocked zones and signal zones can be active simultaneously, only one area of the defined work zones can be active.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
 The override response for "MC_DefineWorkspaceZone" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

303

Instructions 11.2 Zones

Parameter

The following table shows the parameters of Motion Control instruction "MC_DefineWorkspaceZone":

Parameter AxesGroup Execute ZoneType ZoneNumber
ReferenceSystem
Frame GeometryType

Declaration INPUT INPUT

Data type
TO_Kinematics BOOL

INPUT DINT

Default value FALSE
0

INPUT DINT

1

INPUT DINT

0

INPUT INPUT

TO_Struct_Kinematics _Frame

DINT

0

Description

Technology object

TRUE The job is accepted in the job sequence.

Zone type

0

Blocked zone

1

Work zone

2

Signal zone

Zone number

1

Zone 1

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

Reference system

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

Shifting of the zone zero point in relation to the reference system

Zone geometry type

0

Cuboid

1

Sphere

2

Cylinder

304

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

Parameter GeometryParameter

Declaration
INPUT

GeometryParameter[1] INPUT

Data type
ARRAY [1..3] OF LREAL LREAL

GeometryParameter[2] INPUT LREAL

GeometryParameter[3] INPUT LREAL

Done

OUTPUT BOOL

Busy

OUTPUT BOOL

CommandAborted

OUTPUT BOOL

Error

OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value
-

Description Geometric parameters

0.0
0.0
0.0 FALSE FALSE FALSE FALSE
16#0000

Length x

When "GeometryType" = 1 or 2:

Radius

Length y

When "GeometryType" = 2:

Height

Length z

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_SetWorkspaceZoneActive: Activate workspace zone V5 (Page 309) MC_SetWorkspaceZoneInactive: Deactivate workspace zone V5 (Page 311) Override response V5: Kinematics motion commands (Page 331)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

305

Instructions 11.2 Zones

11.2.2

MC_DefineKinematicsZone V5

11.2.2.1

MC_DefineKinematicsZone: Define kinematics zone V5

Description

With the Motion Control instruction "MC_DefineKinematicsZone", you define a kinematics zone in relation to the tool and flange coordinate system. The zones (<TO>.KinematicsZone[2..10]) defined under "Technology object > Configuration > Extended parameters > Zones" are not hereby changed are available again after a restart of the technology object. The "<TO>.StatusKinematicsZone" tag of the technology object data block contains the currently effective kinematics zones.
The "MC_DefineKinematicsZone" job is added to the queue of the job sequence and is therefore effective for subsequent motion jobs.
With the "GeometryType" and "GeometryParameter" parameters, you specify the zone geometry type and size. You can define up to nine kinematics zones. Kinematics zone 1 is the tool center point (TCP) and cannot be changed.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
 The override response for "MC_DefineKinematicsZone" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

306

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

Parameters

The following table shows the parameters of Motion Control instruction "MC_DefineKinematicsZone":

Parameter
AxesGroup Execute ZoneNumber

Declaration INPUT INPUT

Data type
TO_Kinematics BOOL

INPUT DINT

Default value FALSE
2

ReferenceSystem

INPUT DINT

0

Frame GeometryType

INPUT INPUT

TO_Struct_Kinematics _Frame

DINT

0

GeometryParameter

INPUT ARRAY [1..3] OF

-

LREAL

GeometryParameter[1] INPUT LREAL

0.0

GeometryParameter[2] INPUT LREAL

0.0

GeometryParameter[3] INPUT LREAL

0.0

Description

Technology object

TRUE The job is accepted in the job sequence.

Zone number

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

Reference system

0

Flange coordinate system (FCS)

1

Tool coordinate system (TCS)

Shifting of the zone zero point in relation to the reference system

Zone geometry type

0

Cuboid

1

Sphere

2

Cylinder

Geometric parameters

Length x When "GeometryType" = 1 or 2: Radius Length y When "GeometryType" = 2: Height Length z

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

307

Instructions 11.2 Zones

Parameter
Done Busy CommandAborted
Error

Declara- Data type tion OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE FALSE FALSE
FALSE
16#0000

Description

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_SetKinematicsZoneActive: Activate kinematics zone V5 (Page 313) MC_SetKinematicsZoneInactive: Deactivate kinematics zone V5 (Page 315) Override response V5: Kinematics motion commands (Page 331)

308

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

11.2.3

MC_SetWorkspaceZoneActive V5

11.2.3.1

MC_SetWorkspaceZoneActive: Activate workspace zone V5

Description

The "MC_SetWorkspaceZoneActive" Motion Control instruction is used to activate the workspace zone which you have defined under "Technology object > Configuration > Extended parameters > Zones" of via an "MC_DefineWorkspaceZone" job With the "ZoneNumber" parameter, you enter the number of the zone to be activated.
The "MC_SetWorkspaceZoneActive" job is added to the queue of the job sequence and is therefore effective for subsequent motion jobs.
The "<TO>.StatusWorkspaceZone[1..10].Active" tags of the technology object data block contain the current activation status of the zones. While several of the defined blocked zones and signal zones can be active simultaneously, only one area of the defined work zones can be active.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.
 The zone to be activated is defined.

Override response
 The override response for "MC_SetWorkspaceZoneActive" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

309

Instructions 11.2 Zones

Parameter

The following table shows the parameters of Motion Control instruction "MC_SetWorkspaceZoneActive":

Parameter
AxesGroup Execute ZoneNumber

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 1
FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Zone number

1

Zone 1

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_DefineWorkspaceZone: Define workspace zone V5 (Page 303) MC_SetWorkspaceZoneInactive: Deactivate workspace zone V5 (Page 311) Override response V5: Kinematics motion commands (Page 331)

310

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

11.2.4

MC_SetWorkspaceZoneInactive V5

11.2.4.1

MC_SetWorkspaceZoneInactive: Deactivate workspace zone V5

Description

You use Motion Control instruction "MC_SetWorkspaceZoneInactive" to deactivate an active workspace zone. With the "Mode" parameter, you can deactivate a specific zone, all zones of a type or all zones.
The "MC_SetWorkspaceZoneInactive" job is added to the queue of the job sequence and is therefore effective for subsequent motion jobs.
The "<TO>.StatusWorkspaceZone[1..10].Active" tags of the technology object data block contain the current activation status of the zones.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.
 The zone to be deactivated is defined.

Override response
 The override response for "MC_SetWorkspaceZoneInactive" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

311

Instructions 11.2 Zones

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetWorkspaceZoneInactive":

Parameter
AxesGroup Execute ZoneNumber

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Mode

INPUT DINT

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 1
0
FALSE FALSE FALSE FALSE 16#0000

Description

Technology object

TRUE Start job with a positive edge

Zone number

1

Zone 1

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

Set zones of a zone type to inactive

0

Set a specific zone to inactive

1

Set all workspace zones to inactive

2

Set all blocked zones to inactive

3

Set all signal zones to inactive

4

Set workspace to inactive.

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_DefineWorkspaceZone: Define workspace zone V5 (Page 303) MC_SetWorkspaceZoneActive: Activate workspace zone V5 (Page 309) Override response V5: Kinematics motion commands (Page 331)

312

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

11.2.5

MC_SetKinematicsZoneActive V5

11.2.5.1

MC_SetKinematicsZoneActive: Activate kinematics zone V5

Description

The "MC_SetKinematicsZoneActive" Motion Control instruction is used to activate the zone monitoring for a defined kinematics zone which you have defined under "Technology object > Configuration > Extended parameters > Zones" of via an "MC_DefineKinematicsZone" job With the "ZoneNumber" parameter, you enter the number of the kinematics zone to be activated.
The "MC_SetKinematicsZoneActive" job is added to the queue of the job sequence and is therefore effective for subsequent motion jobs.
The "<TO>.StatusKinematicsZone[2..10].Active" tags of the technology object data block contain the current activation status of the kinematics zones.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.
 The kinematics zone to be activated is defined.

Override response
 The override response for "MC_SetKinematicsZoneActive" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

313

Instructions 11.2 Zones

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetKinematicsZoneActive":

Parameter
AxesGroup Execute ZoneNumber

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 2
FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Zone number

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_DefineKinematicsZone: Define kinematics zone V5 (Page 306) MC_SetKinematicsZoneInactive: Deactivate kinematics zone V5 (Page 315) Override response V5: Kinematics motion commands (Page 331)

314

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.2 Zones

11.2.6

MC_SetKinematicsZoneInactive V5

11.2.6.1

MC_SetKinematicsZoneInactive: Deactivate kinematics zone V5

Description

You use Motion Control instruction "MC_SetKinematicsZoneInactive" to deactivate an active kinematics zone. With the "Mode" parameter, you can deactivate a specific kinematics zone or all kinematics zones.
The "MC_SetKinematicsZoneInactive" job is added to the queue of the job sequence and is therefore effective for subsequent motion jobs.
The "<TO>.StatusKinematicsZone[2..10].Active" tags of the technology object data block contain the current activation status of the kinematics zones.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.
 The kinematics zone to be deactivated is defined.

Override response
 The override response for "MC_SetKinematicsZoneInactive" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

315

Instructions 11.2 Zones

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetKinematicsZoneInactive":

Parameter
AxesGroup Execute ZoneNumber

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Mode

INPUT DINT

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 2
0
FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Zone number

2

Zone 2

3

Zone 3

4

Zone 4

5

Zone 5

6

Zone 6

7

Zone 7

8

Zone 8

9

Zone 9

10

Zone 10

Set zones to inactive

0

Set a specific zone to inactive

1

Set all zones to inactive

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) MC_DefineKinematicsZone: Define kinematics zone V5 (Page 306) MC_SetKinematicsZoneActive: Activate kinematics zone V5 (Page 313) Override response V5: Kinematics motion commands (Page 331)

316

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

11.3

Tools

Instructions 11.3 Tools

11.3.1

MC_DefineTool V5

11.3.1.1

MC_DefineTool: Redefine tool V5

Description

You redefine the tool frame of the tool 1 job with the "MC_DefineTool" Motion Control instruction. The start values stored in the system are not overwritten. Tool 1 is active by default.
The "MC_DefineTool" job is not added to the queue of the job sequence of the kinematics technology object and therefore takes effect immediately. The "MC_DefineTool" job can be executed only if the kinematics is in standstill.
The configurable coordinates depend on the kinematics type used:

Kinematics type 2D
3D

without orientation with orientation without orientation with orientation

Configurable coordinates x, z1) z, a2) x, y, z3) x, y, z, a

1) The parameters "y" and "a" are pre-defined with the value "0.0". 2) The parameters "x" and "y" are pre-defined with the value "0.0". 3) The parameter "a" can only be defined with the value "0.0".

The following tags of the technology object data block contain the current coordinates of the tool frame 1:

 <TO>.StatusTool.Frame[1].x

 <TO>.StatusTool.Frame[1].y

 <TO>.StatusTool.Frame[1].z

 <TO>.StatusTool.Frame[1].a

Applies to

 Kinematics

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

317

Instructions 11.3 Tools

Requirement

 The technology object has been configured correctly.  A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected
axes.  The kinematics is at a standstill.  The kinematics is not in "Interrupted" state.  No kinematics motion is active.

Override response
 An "MC_DefineTool" job cannot be aborted by any other Motion Control job.  A new "MC_DefineTool" job does not abort any active Motion Control jobs.

Parameters

The following table shows the parameters of Motion Control instruction "MC_DefineTool":

Parameter
AxesGroup Execute Frame Done Busy CommandAborted Error
ErrorID

Declara- Data type tion

Default value

INPUT TO_Kinematics

-

INPUT BOOL

FALSE

INPUT

TO_Struct_Kinematics _KinematicsFrame

OUTPUT BOOL

FALSE

OUTPUT BOOL

FALSE

OUTPUT BOOL

FALSE

OUTPUT BOOL

FALSE

OUTPUT WORD

16#0000

Description

Technology object TRUE Start job with a positive edge Coordinates in relation to the FCS

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383)

318

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.3 Tools

11.3.2

MC_SetTool V5

11.3.2.1

MC_SetTool: Change active tool V5

Description

With the "MC_SetTool" Motion Control instruction, you activate a tool. With the "ToolNumber" parameter, you specify the tool number. The "MC_SetTool" job can be executed only if the kinematics is in standstill. Tool 1 is active by default.
The "<TO>.StatusTool.ActiveTool" tag of the technology object data block contains the tool number of the currently active tool.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.  A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected
axes.  The kinematics is at a standstill.  The kinematics is not in "Interrupted" state.  No kinematics motion is active.

Override response
 An "MC_SetTool" job cannot be aborted by any other Motion Control job.  A new "MC_SetTool" job does not abort any active Motion Control jobs.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

319

Instructions 11.3 Tools

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetTool":

Parameter
AxesGroup Execute ToolNumber

Declaration INPUT INPUT INPUT

Data type
TO_Kinematics BOOL DINT

Done Busy CommandAborted
Error

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT BOOL

ErrorID

OUTPUT WORD

Default value FALSE 1
FALSE FALSE FALSE FALSE
16#0000

Description

Technology object

TRUE Start job with a positive edge

Number of the tool to be activated.

1

Tool 1

2

Tool 2

3

Tool 3

TRUE Job is completed.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) Override response V5: Kinematics motion commands (Page 331)

320

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

11.4

Coordinate systems

Instructions 11.4 Coordinate systems

11.4.1

MC_SetOcsFrame V5

11.4.1.1

MC_SetOcsFrame: Redefine object coordinate systems V5

Description

With the "MC_SetOcsFrame" Motion Control instruction, you define the position of an object coordinate system (OCS) in relation to the world coordinate system (WCS). The initial values stored in the technology object data block are not overwritten in the process.
The "MC_SetOcsFrame" job is added to the queue of the job sequence and is therefore effective only for subsequent motion jobs.
The following tags of the technology object data block contain the current coordinates of the object coordinate systems:
 <TO>.StatusOcsFrame[1..3].x
 <TO>.StatusOcsFrame[1..3].y
 <TO>.StatusOcsFrame[1..3].z
 <TO>.StatusOcsFrame[1..3].a
 <TO>.StatusOcsFrame[1..3].b
 <TO>.StatusOcsFrame[1..3].c

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.
 A single axis job (e.g. "MC_MoveVelocity") is not active on any of the interconnected axes.

Override response
The override response for "MC_SetOcsFrame" jobs is described in section "Override response V5: Kinematics motion commands (Page 331)".

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

321

Instructions 11.4 Coordinate systems

Parameters

The following table shows the parameters of Motion Control instruction "MC_SetOcsFrame":

Parameter AxesGroup Execute Frame OcsNumber
Done Busy CommandAborted Error
ErrorID

Declaration INPUT INPUT

Data type
TO_Kinematics BOOL

Default value FALSE

INPUT INPUT

TO_Struct_Kinematics _Frame

DINT

1

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

FALSE FALSE FALSE FALSE
16#0000

Description

Technology object
TRUE The job is accepted in the job sequence.
Coordinates in relation to the WCS

Object coordinate system

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

TRUE Job is completed. The new values are active for the display and the motion.

TRUE The job is being processed.

TRUE The job was aborted by another job during execution.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

See also

Error ID (kinematics) (Page 383) Override response V5: Kinematics motion commands (Page 331)

322

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.4 Coordinate systems

11.4.2

MC_KinematicsTransformation V5

11.4.2.1

MC_KinematicsTransformation: Convert axis coordinates to Cartesian coordinates V5

Description

With the Motion Control instruction "MC_KinematicsTransformation", you convert the setpoints of positions, velocity and acceleration of the kinematics axes to Cartesian coordinates, velocity and acceleration of the tool center point (TCP). The active tool is hereby taken into consideration. The instruction is for information purposes only - the kinematics is not moved.
With the instruction, you can determine the Cartesian position, orientation, velocity and acceleration of the axis values.

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.

Override response
 An "MC_KinematicsTransformation" job cannot be aborted by any other Motion Control job.
 A new "MC_KinematicsTransformation" job does not abort any active Motion Control jobs.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

323

Instructions 11.4 Coordinate systems

Parameters

The following table shows the parameters of Motion Control instruction "MC_KinematicsTransformation":

Parameter
AxesGroup Enable

Declaration INPUT INPUT

Data type
TO_Kinematics BOOL

AxesPosition
AxesPosition[1] AxesPosition[2] AxesPosition[3] AxesPosition[4] AxesVelocity
AxesVelocity[1] AxesVelocity[2] AxesVelocity[3] AxesVelocity[4] AxesAcceleration
AxesAcceleration[1] AxesAcceleration[2] AxesAcceleration[3] AxesAcceleration[4] CoordSystem

INPUT
INPUT INPUT INPUT INPUT INPUT
INPUT INPUT INPUT INPUT INPUT
INPUT INPUT INPUT INPUT INPUT

ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL DINT

Valid Busy Error
ErrorID

OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL
OUTPUT WORD

Default value FALSE
-

Description
Technology object TRUE The calculation is performed syn-
chronously. Positions of the kinematics axes

0.0

Position of the axis A1

0.0

Position of the axis A2

0.0

Position of the axis A3

0.0

Position of the axis A4

-

Velocity of kinematics axes

0.0

Velocity of axis A1

0.0

Velocity of axis A2

0.0

Velocity of axis A3

0.0

Velocity of the axis A4

-

Acceleration of the kinematics axes

0.0 0.0 0.0 0.0 0
FALSE FALSE FALSE
16#0000

Acceleration of axis A1

Acceleration of axis A2

Acceleration of axis A3

Acceleration of the axis A4

Reference system of the tool center point (TCP)

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

TRUE The output parameters are valid.

FALSE The output parameters are invalid.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

324

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.4 Coordinate systems

Parameter
Position
Position[1] Position[2] Position[3] Position[4] Velocity
Velocity[1] Velocity[2] Velocity[3] Velocity[4] Acceleration
Acceleration[1] Acceleration[2] Acceleration[3] Acceleration[4] LinkConstellation

Declara- Data type tion OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT DINT

Default value -
0.0 0.0 0.0 0.0 -

Description
Cartesian position of the TCP in the reference system x-coordinate y-coordinate z-coordinate A-coordinate Cartesian velocity of the TCP

0.0

Velocity in x direction

0.0

Velocity in y direction

0.0

Velocity in z direction

0.0

Velocity of rotation A

-

Cartesian acceleration of the TCP

0.0

Acceleration in x direction

0.0

Acceleration in y direction

0.0

Acceleration in z direction

0.0

Acceleration of rotation A

0

Joint position information

0

Positive joint position space

1

Negative joint position space

See also

Error ID (kinematics) (Page 383)

11.4.3

MC_InverseKinematicsTransformation V5

11.4.3.1

MC_InverseKinematicsTransformation: Convert Cartesian coordinates to axis coordinates V5

Description

With the Motion Control instruction "MC_InverseKinematicsTransformation", you convert Cartesian coordinates, velocity and acceleration of the tool center point (TCP) to the setpoints of positions, velocity and acceleration of the kinematics axes. The active tool is hereby taken into consideration. The instruction is for information purposes only - the kinematics is not moved.
You can use the instruction to test, for example, whether specific Cartesian positions can be reached with the kinematics or whether software limit switches of the axes are violated with kinematics movements.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

325

Instructions 11.4 Coordinate systems

Applies to

 Kinematics

Requirement

 The technology object has been configured correctly.

Override response
 An "MC_InverseKinematicsTransformation" job cannot be aborted by any other Motion Control job.
 A new "MC_InverseKinematicsTransformation" job does not abort any active Motion Control jobs.

Parameters

The following table shows the parameters of Motion Control instruction "MC_InverseKinematicsTransformation":

Parameter
AxesGroup Enable
Position
Position[1] Position[2] Position[3] Position[4] Velocity
Velocity[1] Velocity[2] Velocity[3] Velocity[4] Acceleration
Acceleration[1] Acceleration[2] Acceleration[3] Acceleration[4]

Declaration INPUT INPUT

Data type
TO_Kinematics BOOL

INPUT
INPUT INPUT INPUT INPUT INPUT
INPUT INPUT INPUT INPUT INPUT
INPUT INPUT INPUT INPUT

ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL ARRAY[1..4] OF LREAL LREAL LREAL LREAL LREAL

Default value FALSE
-
0.0 0.0 0.0 0.0 -
0.0 0.0 0.0 0.0 -
0.0 0.0 0.0 0.0

Description
Technology object TRUE The calculation is performed syn-
chronously. Cartesian position of the TCP in the reference system x-coordinate y-coordinate z-coordinate A-coordinate Cartesian velocity of the TCP
Velocity in x direction Velocity in y direction Velocity in z direction Velocity of rotation A Cartesian acceleration of the TCP
Acceleration in x direction Acceleration in y direction Acceleration in z direction Acceleration of rotation A

326

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.4 Coordinate systems

Parameter CoordSystem

Declaration
INPUT

Data type DINT

LinkConstellation
Valid Busy Error

INPUT DINT
OUTPUT BOOL OUTPUT BOOL OUTPUT BOOL

ErrorID AxesPosition
AxesPosition[1] AxesPosition[2] AxesPosition[3] AxesPosition[4] AxesVelocity
AxesVelocity[1] AxesVelocity[2] AxesVelocity[3] AxesVelocity[4] AxesAcceleration
AxesAcceleration[1] AxesAcceleration[2] AxesAcceleration[3] AxesAcceleration[4]

OUTPUT WORD OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT ARRAY[1..4] OF
LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL OUTPUT LREAL

Default value 0
0
FALSE FALSE FALSE
16#0000 -

Description

Reference system of the tool center point (TCP)

0

World coordinate system (WCS)

1

Object coordinate system 1 (OCS1)

2

Object coordinate system 2 (OCS2)

3

Object coordinate system 3 (OCS3)

Joint position information

0

Positive joint position space

1

Negative joint position space

TRUE The output parameters are valid.

FALSE The output parameters are invalid.

TRUE The job is being processed.

TRUE

An error occurred while processing the job. The job is rejected. The cause of the error can be found in the "ErrorID" parameter.

Error ID (Page 383) for parameter "ErrorID"

Positions of the kinematics axes

0.0

Position of the axis A1

0.0

Position of the axis A2

0.0

Position of the axis A3

0.0

Position of the axis A4

-

Velocity of kinematics axes

0.0

Velocity of axis A1

0.0

Velocity of axis A2

0.0

Velocity of axis A3

0.0

Velocity of the axis A4

-

Acceleration of the kinematics axes

0.0

Acceleration of axis A1

0.0

Acceleration of axis A2

0.0

Acceleration of axis A3

0.0

Acceleration of the axis A4

See also

Error ID (kinematics) (Page 383)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

327

Instructions 11.5 Override response of Motion Control jobs V5

11.5

Override response of Motion Control jobs V5

11.5.1

Override response V5: Homing and motion jobs
The following table shows how a new Motion Control job affects active homing and motion jobs:

 Active job  New job

MC_Home
"Mode" = 2, 8, 10

MC_Home

A

"Mode" = 3, 5

MC_Home

A

"Mode" = 9

MC_Halt

-

MC_MoveAbsolute

MC_MoveRelative

MC_MoveVelocity

MC_MoveJog

MC_MotionInVelocity

MC_MotionInPosition

MC_MoveSuper-

-

imposed

MC_Stop

A

MC_GearIn

-

MC_GearInPos

-

MC_CamIn

waiting1)

MC_GearInPos

-

MC_CamIn

active2)

MC_LeadingValueAd

-

ditive

MC_Home ("Mode" = 3,
5)
A

MC_Halt
MC_MoveAbsolute
MC_MoveRelative
MC_MoveVelocity
MC_MoveJog A

-

-

A

A

-

-

A

A

A

A

-

-

A

A

-

-

MC_Stop

MC_MoveSuperimposed

MC_MotionInVelocity
MC_MotionInPosition

-

A

A

-

-

-

-

A

A

-

A

-

B

A

A

-

A

-

-

-

-

-

A

-

-

-

-

A The running job is aborted with "CommandAborted" = TRUE. B An "MC_Stop" job is aborted by another "MC_Stop" job with a stop response that is the same or higher. - No effect. Running job continues to be executed. 1) The status "Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE corresponds to a waiting synchronous operation. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to an active synchronous operation.

328

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.5 Override response of Motion Control jobs V5
Note Fixed stop With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

329

Instructions 11.5 Override response of Motion Control jobs V5

11.5.2

Override response V5: Synchronous operation jobs
The following table shows how a new Motion Control job affects the motion of the axis on active synchronous operation jobs:

 Active job  New job
MC_Home "Mode" = 3, 5 MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity MC_MoveJog MC_MotionInVelocity MC_MotionInPosition MC_MoveSuperimposed MC_Stop MC_GearIn MC_GearInPos MC_CamIn waiting1) MC_GearInPos MC_CamIn active2) MC_PhasingAbsolute MC_PhasingRelative MC_LeadingValueAdditive

MC_GearIn MC_GearInPos MC_GearInPos

MC_CamIn

MC_CamIn

waiting1)

active2)

A

-

-

MC_PhasingAbsolute
MC_PhasingRelative
-

MC_LeadingValueAdditive
-

A

-

A

-

A

A

-

A

A

-

A

A

-

-

A

A

A

A

-

A

A

A

-

-

-

-

A

-

-

-

-

-

A

A

A

A

A

-

-

-

-

A

A

-

-

A

-

-

-

A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed. 1) A waiting synchronous operation job ("Busy" = TRUE, "StartSync" = FALSE, "InSync" = FALSE) does not abort any
active jobs. Abort with an "MC_Power" job is possible. 2) The status "Busy" = TRUE, "StartSync" or "InSync" = TRUE corresponds to active synchronous operation.

Note Fixed stop
With an active force and torque limitation with "MC_TorqueLimiting", running jobs are aborted if the drive is held at the fixed stop with "InClamping" = TRUE.

330

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.5 Override response of Motion Control jobs V5

11.5.3

Override response V5: Measuring input jobs
The following table shows which new Motion Control jobs will override active measuring input jobs:

 Active job
 New job MC_Home "Mode" = 2, 3, 5, 8, 9, 10 MC_Home "Mode" = 0, 1, 6, 7, 11, 12 MC_MeasuringInput MC_MeasuringInputCyclic MC_AbortMeasuringInput

MC_MeasuringInput A A

A The running job is aborted with "CommandAborted" = TRUE. - No effect. Running job continues to be executed.

MC_MeasuringInputCyclic A A

11.5.4

Override response V5: Kinematics motion commands
Single axis jobs are not overridden by kinematics jobs.
The following table shows how a new Motion Control job affects active kinematics motion jobs:

 Active job  New job
MC_Home MC_MoveSuperimposed MC_Halt MC_MoveAbsolute MC_MoveRelative MC_MoveVelocity

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame N
A

MC_GroupInterrupt MC_GroupStop

N

N

A

A

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

331

Instructions 11.5 Override response of Motion Control jobs V5

 Active job  New job
MC_MoveJog MC_Stop MC_GearIn MC_GearInPos MC_CamIn MC_MotionInVelocity MC_MotionInPosition MC_GroupStop MC_GroupInterrupt MC_GroupContinue MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive MC_SetOcsFrame

MC_MoveLinearAbsolute MC_MoveLinearRelative MC_MoveCircularAbsolute MC_MoveCircularRelative MC_MoveDirectAbsolute MC_MoveDirectRelative MC_TrackConveyorBelt MC_DefineWorkspaceZone MC_DefineKinematicsZone MC_SetWorkspaceZoneActive MC_SetWorkspaceZoneInactive MC_SetKinematicsZoneActive MC_SetKinematicsZoneInactive
MC_SetOcsFrame

MC_GroupInterrupt

A

A

B

A

-

-

C, -

-

A The running job is aborted with "CommandAborted" = TRUE. B Running job is interrupted or resumed. C Synchronization of the OCS with the conveyor belt is aborted with "MC_SetOcsFrame" = TRUE. N Not permitted. Running job continues to be executed. The new job is rejected. - No effect. Running job continues to be executed. A new kinematics job is added to the job sequence.

MC_GroupStop
N N N
N

332

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Instructions 11.5 Override response of Motion Control jobs V5

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

333

Appendix

A

A.1
A.1.1

Tags of the kinematics technology object

Legend

Tag Data type Values W
Description

Name of the tag

Data type of the tag

Value range of the tag - minimum value to maximum value

(L - linear specification R - rotary specification)

If no specific value is shown, the value range limits of the relevant data type apply or the information under "Description".

Effectiveness of changes in the technology data block

DIR

Direct:

Values are changed via direct assignment and take effect at the start of the next MC-Servo [OB91].

CAL At call of Motion Control instruction:

Values are changed directly and take effect at the start of the next MC-Servo [OB91] after the call of the corresponding Motion Control instruction in the user program.

RES Restart:

Changes to the start value in the load memory are made using the extended instruction "WRIT_DBL" (write to DB in load memory). Changes will not take effect until after restart of the technology object.

RON Read only:

The tag cannot and must not be changed during runtime of the user program.

Description of the tag

Access to the tags is with "<TO>.<tag name>". The placeholder <TO> represents the name of the technology object.

334

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.2

"Tcp" tag (kinematics)
The tag structure "<TO>.Tcp.<Tag name>" contains the position of the tool center point (TCP), the TCP frame in the World Coordinate System (WCS)

Tags
Tag Tcp.
x y z a

Legend (Page 334)

Data type Values

W Description

TO_Struct_Kinematics_Status KinematicsFrameTcp

LREAL

-

RON x coordinate

1.79769E308 to

1.79769E308

LREAL

-

RON y coordinate

1.79769E308 to

1.79769E308

LREAL

-

RON z coordinate

1.79769E308 to

1.79769E308

LREAL -180 to 180

RON A coordinate

See also

Tags: Coordinate systems and frames (Page 34)

A.1.3

"Kinematics" tag (kinematics)
The tag structure "<TO>.Kinematics.<Tag name>" contains the defined kinematics type.

Tags

Legend (Page 334)

Tag Kinematics.
TypeOfKinematics

Data type Values

W

TO_Struct_Kinematics_Kinematics

DINT

1 to 34

RON

Description

Kinematics type

The configuration is performed using the function view.

1

Cartesian portal 2D

2

Cartesian portal 2D with orientation

3

Cartesian portal 3D

4

Cartesian portal 3D with orientation

5

Roller picker 2D

6

Roller picker 2D with orientation

7

Roller picker 3D (vertical)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

335

Appendix A.1 Tags of the kinematics technology object

Tag Parameter[1..32]

Data type Values

W

ARRAY -

RES

[1..32] OF 1.0E12 to 1.0E

LREAL 12

Description

8

Roller picker 3D with orientation (vertical)

9

Roller picker 3D with orientation (horizontal)

10

SCARA 3D with orientation

11

Articulated arm 2D

12

Articulated arm 2D with orientation

13

Articulated arm 3D

14

Articulated arm 3D with orientation

15

Delta picker 2D

16

Delta picker 2D with orientation

17

Delta picker 3D

18

Delta picker 3D with orientation

19

Reserved

20

SCARA 2D with orientation

21

Cylindrical robot 3D

22

Cylindrical robot 3D with orientation

23

Tripod 3D

24

Tripod 3D with orientation

25 ... 30

Reserved

31

User-defined 2D

32

User-defined 2D with orientation

33

User-defined 3D

34

User-defined 3D with orientation

Kinematics-specific parameters

See also

Tags: Cartesian portal (Page 47) Tags: Delta picker (Page 102) Tags: Roller picker (Page 61) Tags: Articulated arm (Page 89) Tags: Cylindrical robot (Page 112) Tags: Tripod (Page 120) Tags: SCARA (Page 71) Tags: User-defined kinematics systems (Page 121)

336

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.4

"KcsFrame" tag (kinematics)
The tag structure "<TO>.KcsFrame.<Tag name>" contains the frame of the Kinematic Coordinate System (KCS) in the World Coordinate System (WCS).

Tags
Tag KcsFrame.
x y z a
b
c

Legend (Page 334)

Data type Value range

W

TO_Struct_Kinematics_Frame

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL

RES

0.0

0.0

-180.0 to 179.999

-180.0 to 179.999

LREAL

RES

-180.0 to 179.999

0.0

-90.0 to 90.0

0.0

LREAL

RES

0.0

0.0

-180.0 to 179.999

0.0

Description
x coordinate y coordinate z coordinate A coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation" B coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation" C coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation"

See also

Tags: Coordinate systems and frames (Page 34)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

337

Appendix A.1 Tags of the kinematics technology object

A.1.5

"OcsFrame[1..3]" tag (kinematics)
The tag structure "<TO>.OcsFrame[1..3].<Tag name>" contains the frames of the Object Coordinate Systems 1 to 3 (OCS) in the World Coordinate System (WCS).

Tags
Tag OcsFrame[1..3].
x y z a
b
c

Data type Value range ARRAY [1..3] OF TO_Struct_Kinematics_Frame LREAL -1.0E12 to 1.0E12 LREAL -1.0E12 to 1.0E12 LREAL -1.0E12 to 1.0E12 LREAL
0.0 0.0 -180.0 to 179.999 -180.0 to 179.999 LREAL -180.0 to 179.999 0.0 -90.0 to 90.0 0.0 LREAL 0.0 0.0 -180.0 to 179.999 0.0

W Description

RES RES RES RES
RES
RES

x coordinate y coordinate z coordinate A coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation" B coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation" C coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation"

See also

Tags: Coordinate systems and frames (Page 34) Legend (Page 334)

338

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.6

"Tool[1..3]" tag (kinematics)
The tag structure "<TO>.Tool[1..3].<Tag name>" contains the tool frame in the Flange Coordinate System (FCS).

Tags
Tag Tool[1..3].
Frame.
x y z a

Legend (Page 334)

Data type Value range

W

ARRAY [1..3] OF TO_Struct_Kinematics_Tool

TO_Struct_Kinematics_Kinematics Frame

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL

RES

0.0

-180.0 to 179.999

0.0

-180.0 to 179.999

Description
x coordinate in the FCS y coordinate in the FCS z coordinate in the FCS A coordinate With kinematics type "2D" With kinematics type "2D with orientation" With kinematics type "3D" With kinematics type "3D with orientation"

See also

Tags: Coordinate systems and frames (Page 34)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

339

Appendix A.1 Tags of the kinematics technology object

A.1.7

"DynamicDefaults" tag (kinematics)
The tag structure "<TO>.DynamicDefaults.<Tag name>" contains the configuration of the dynamic presets. These settings will be used when you specify a dynamic value less than 0.0 for a Motion Control instruction. Changes to the default dynamics will be applied at the next positive edge at the "Execute" parameter of a Motion Control instruction.

Tags

Legend (Page 334)

Tag DynamicDefaults.
Path. Velocity Acceleration Deceleration Jerk
Orientation. Velocity Acceleration Deceleration Jerk
DynamicAdaption
MoveDirect VelocityFactor
AccelerationFactor
DecelerationFactor
JerkFactor

Data type Values

W

TO_Struct_Kinematics_Dynamic Defaults

TO_Struct_Kinematics_Dynamics

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

TO_Struct_Kinematics_Orientation Dynamics

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL DINT

0.0 to 1.0E12 DIR

0 to 2

CAL

TO_Struct_Kinematics_MoveDirect Dynamics LREAL 0.0 to 1.0E12 CAL
LREAL 0.0 to 1.0E12 CAL
LREAL 0.0 to 1.0E12 CAL
LREAL 0.0 to 1.0E12 CAL

Description

Default setting of the velocity of the path Default setting of the acceleration of the path Default setting of the deceleration of the path Default setting of the jerk of the path

Default setting of the velocity of the Cartesian orientation

Default setting of the acceleration of the Cartesian orientation

Default setting of the deceleration of the Cartesian orientation

Default setting of the jerk of the Cartesian orientation

Default setting of the dynamic adaptation

0

No dynamic adaptation

1

Dynamic adaptation with segmentation of the

path

2

Dynamic adaptation without segmentation of

the path

Factor for the velocity of the axis motions in relation to the respective maximum velocity of the axes with sPTP motion.
Factor for the acceleration of the axis motions in relation to the respective maximum acceleration of the axes with sPTP motion.
Factor for the deceleration of the axis motions in relation to the respective maximum deceleration of the axes with sPTP motion.
Factor for the jerk of the axis motions in relation to the respective maximum jerk of the axes with sPTP motion.

340

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

See also

Tags: Kinematics motions (Page 147)

Appendix A.1 Tags of the kinematics technology object

A.1.8

"DynamicLimits" tag (kinematics)
The tag structure "<TO>.DynamicLimits.<Tag name>" contains the configuration of the dynamic limits. During Motion Control, no dynamic values greater than the dynamic limits are permitted. If you have specified greater values in a Motion Control instruction, then motion is performed using the dynamic limits, and a warning is indicated (alarm 501 to 503 - Dynamic values are limited).

Tags

Legend (Page 334)

Tag DynamicLimits.
Path. Velocity Acceleration Deceleration
Jerk Orientation.
Velocity
Acceleration
Deceleration
Jerk

Data type Values

W

TO_Struct_Kinematics_Dynamic Limits

TO_Struct_Kinematics_Dynamics

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR
TO_Struct_Kinematics_Orientation Dynamics
LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

LREAL 0.0 to 1.0E12 DIR

Description
Dynamic limitation for the maximum velocity of the path Dynamic limitation for the maximum velocity of the path Dynamic limitation for the maximum deceleration of the path Dynamic limitation for the maximum jerk of the path
Dynamic limitation for the maximum velocity of the Cartesian orientation Dynamic limitation for the maximum velocity of the Cartesian orientation Dynamic limitation for the maximum deceleration of the Cartesian orientation Dynamic limitation for the maximum jerk of the Cartesian orientation

See also

Tags: Kinematics motions (Page 147)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

341

Appendix A.1 Tags of the kinematics technology object

A.1.9

"MotionQueue" tag (kinematics)
The tag structure "<TO>.MotionQueue.<Tag name>" contains the configuration of parameters of the job sequence.

Tags

Legend (Page 334)

Tag MotionQueue.
MaxNumberOfCommands

Data type Values

W

TO_Struct_Kinematics_Motion Queue

DINT

1 to 10

RON

Description
Maximum number of commands in job sequence The configuration takes place in "Technology object > Configuration > Extended parameters > Job sequence".

See also

Tags: Kinematics motions (Page 147)

A.1.10

"Override" tag (kinematics)
The tag structure "<TO>.Override.<Tag name>" contains the configuration of override parameters.

Tags
Tag Override.
Velocity

Legend (Page 334)

Data type Values

W

TO_Struct_Kinematics_Override

LREAL 0.0 to 200.0 DIR

Description Velocity override

See also

Tags: Kinematics motions (Page 147)

342

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.11

"WorkspaceZone[1..10]" tag (kinematics)
The tag structure "<TO>.WorkspaceZone[1..10].<Tag name>" contains the parameter for the workspace zones.

Tags

Legend (Page 334)

Tag WorkspaceZone[1..10].
Active
Valid
Type
ReferenceSystem
Frame. x y z a b c

Data type Values

W

ARRAY [1..10] OF TO_Struct_Kinematics_WorkSpace Zone

BOOL

-

RES

BOOL

-

RES

DINT

0 to 2

RES

DINT

0 ... 3

RES

TO_Struct_Kinematics_Frame

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -180.0 to 179.999 RES

LREAL -90.0 to 90.0

RES

LREAL -180.0 to 179.999 RES

Description

FALS Workspace zone deactivated E

TRU Workspace zone activated E

FALS Zone is not defined E

TRU Zone is defined E

Type of the workspace zone

0

Blocked zone

1

Work zone

2

Signal zone

Reference coordinate system for the workspace zone

0

WCS

1

OCS1

2

OCS2

3

OCS3

x coordinate y coordinate z coordinate A coordinate B coordinate C coordinate

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

343

Appendix A.1 Tags of the kinematics technology object

Tag Geometry. Type
Parameter[1..3]

Data type Values

TO_Struct_Kinematics_Zone Geometry

DINT

0 to 2

ARRAY [1..3] OF LREAL

0.0 to 1.0E12

W Description

RES RES

Zone geometry

0

Cuboid

1

Sphere

2

Cylinder

1

Length x (cuboid) or radius (sphere, cylinder)

2

Length y (cuboid) or height (cylinder)

3

Length z (cuboid)

See also

Tags: Zone monitoring (Page 161)

344

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.12

"KinematicsZone[2..10]" tag (kinematics)
The tag structure "<TO>.KinematicsZone[2..10].<Tag name>" contains the parameters for kinematic zones.

Tags

Legend (Page 334)

Tag KinematicsZone[2..10].
Active
Valid
ReferenceSystem
Frame. x y z a b c
Geometry. Type
Parameter[1..3]

Data type Values

W

ARRAY [2..10] OF TO_Struct_Kinematics_Kinematics Zone

BOOL

-

RES

BOOL

-

RES

DINT

0 to 1

RES

TO_Struct_Kinematics_Frame

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -1.0E12 to 1.0E12 RES

LREAL -180.0 to 179.999 RES

LREAL -90.0 to 90.0

RES

LREAL -180.0 to 179.999 RES

TO_Struct_Kinematics_ZoneGeometry

DINT

0 to 2

RES

ARRAY [1..3] OF LREAL

0.0 to 1.0E12

RES

Description
FAL Kinematics zone deactivated SE TR Kinematics zone activated UE FAL Zone is not defined SE TR Zone is defined UE Reference coordinate system for the kinematics zone 0 FCS 1 TCS
x coordinate y coordinate z coordinate A coordinate B coordinate C coordinate
Zone geometry 0 Cuboid 1 Sphere 2 Cylinder 1 Length x (cuboid) or radius (sphere, cylinder) 2 Length y (cuboid) or height (cylinder) 3 Length z (cuboid)

See also

Tags: Zone monitoring (Page 161)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

345

Appendix A.1 Tags of the kinematics technology object

A.1.13

"StatusPath" tag (kinematics)
The tag structure "<TO>.StatusPath.<Tag name>" contains the parameters of the current kinematics movement. With synchronous point-to-point motion (sPTP motion), the parameters StatusPath.Velocity and StatusPath.Acceleration = 0.0.

Tags

Legend (Page 334)

Tag StatusPath.
CoordSystem
Velocity Acceleration DynamicAdaption

Data type Values

W Description

TO_Struct_Kinematics_StatusPath

DINT

0 ... 3

RON Coordinate system of the active motion job

0

World coordinate system

1, 2, Object coordinate system 1, 2, 3 3

LREAL -1.0E12 to 1.0E12 RON Current path velocity (setpoint reference)

LREAL -1.0E12 to 1.0E12 RON Current path acceleration (setpoint reference)

DINT

0 to 2

RON Dynamic adaptation

0

No dynamic adaptation

1

Dynamic adaptation with segmentation of the

path

2

Dynamic adaptation without segmentation of

the path

See also

Tags: Kinematics motions (Page 147)

346

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.14

"TcpInWcs" tag (kinematics)
The tag structure "<TO>.TcpInWcs.<Tag name>" contains the parameters for the tool center point (TCP) in the World Coordinate System (WCS).

Tags

Legend (Page 334)

Tag TcpInWcs.
x. Acceleration Position Velocity
y. Acceleration Position Velocity
z. Acceleration Position Velocity

Data type Values

W

TO_Struct_Kinematics_Status KinematicsFrameWithDynamics

TO_Struct_Kinematics_StatusMotion Vector

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

TO_Struct_Kinematics_StatusMotion Vector

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

TO_Struct_Kinematics_StatusMotion Vector

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

Description
Acceleration of path coordinate x Position of path coordinate x Velocity of path coordinate x
Acceleration of path coordinate y Position of path coordinate y Velocity of path coordinate y
Acceleration of path coordinate z Position of path coordinate z Velocity of path coordinate z

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

347

Appendix A.1 Tags of the kinematics technology object

Tag a. Acceleration
Position
Velocity

Data type Values

W

TO_Struct_Kinematics_StatusMotion Vector

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

Description Acceleration of rotation A Position of rotation A Velocity of rotation A

See also

Tags: Coordinate systems and frames (Page 34)

348

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.15

"TcpInOcs[1..3]" tag (kinematics)
The tag structure "<TO>.TcpInOcs[1..3].<Tag name>" contains the parameters for the tool center point (TCP) in the Object Coordinate Systems 1 to 3 (OCS).

Tags

Legend (Page 334)

Tag TcpInOcs[1..3].
x. Acceleration Position Velocity
y. Acceleration Position Velocity
z. Acceleration Position Velocity

Data type Values

W

ARRAY [1..3] OF TO_Struct_Kinematics_Status KinematicsFrameWithDynamicsOcs

TO_Struct_Kinematics_StatusMotion VectorOcs

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

TO_Struct_Kinematics_StatusMotion VectorOcs

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

TO_Struct_Kinematics_StatusMotion VectorOcs

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

Description
Acceleration of the x coordinate of the tool center point in the object coordinate system 1 to 3 x coordinate of the tool center point in the object coordinate system 1 to 3 Velocity of the x coordinate of the tool center point in the object coordinate system 1 to 3
Acceleration of the y coordinate of the tool center point in the object coordinate system 1 to 3 y coordinate of the tool center point in the object coordinate system 1 to 3 Velocity of the y coordinate of the tool center point in the object coordinate system 1 to 3
Acceleration of the z coordinate of the tool center point in the object coordinate system 1 to 3 z coordinate of the tool center point in the object coordinate system 1 to 3 Velocity of the z coordinate of the tool center point in the object coordinate system 1 to 3

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

349

Appendix A.1 Tags of the kinematics technology object

Tag a. Acceleration
Position
Velocity

Data type Values

W

TO_Struct_Kinematics_StatusMotion VectorOcs

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

Description
Acceleration of the A coordinate of the tool center point in the object coordinate system 1 to 3
A coordinate of the tool center point in the object coordinate system 1 to 3
Velocity of the A coordinate of the tool center point in the object coordinate system 1 to 3

See also

Tags: Coordinate systems and frames (Page 34)

350

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.16

"StatusOcsFrame[1..3]" tag (kinematics)
The tag structure "<TO>.StatusOcsFrame[1..3].<Tag name>" contains the frames of the Object Coordinate Systems 1 to 3 (OCS) in the World Coordinate System (WCS).

Tags

Legend (Page 334)

Tag StatusOcsFrame[1..3].
x y z a
b
c

Data type Value range

W Description

ARRAY [1..3] OF TO_Struct_Kinematics_Status Frame

LREAL

-

RON x coordinate in the WCS

1.79769E308 to

1.79769E308

LREAL

-

RON y coordinate in the WCS

1.79769E308 to

1.79769E308

LREAL

-

RON z coordinate in the WCS

1.79769E308 to

1.79769E308

LREAL

RON A coordinate in the WCS

0.0

With kinematics type "2D"

0.0

With kinematics type "2D with orientation"

180.0 to 179.99 9

With kinematics type "3D"

180.0 to 179.99 9

With kinematics type "3D with orientation"

LREAL

RON B coordinate in the WCS

180.0 to 179.99 9

With kinematics type "2D"

0.0

With kinematics type "2D with orientation"

-90.0 to 90.0

With kinematics type "3D"

0.0

With kinematics type "3D with orientation"

LREAL

RON C coordinate in the WCS

0.0

With kinematics type "2D"

0.0

With kinematics type "2D with orientation"

180.0 to 179.99 9

With kinematics type "3D"

0.0

With kinematics type "3D with orientation"

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

351

Appendix A.1 Tags of the kinematics technology object

See also

Tags: Coordinate systems and frames (Page 34)

A.1.17

"StatusKinematics" tag (kinematics)
The tag structure "<TO>.StatusKinematics.<Tag name>" contains the status of the kinematics.

Tags

Legend (Page 334)

Tag StatusKinematics.
Valid LinkConstellation
Bit 0
Bit 1 Bit 2

Data type Values

W

TO_Struct_Kinematics_Status Kinematics

BOOL

-

RON

DWORD 0 to n

-

-

RON -

-

-

-

-

-

-

Description

Validity of the transformation values

FALSE Invalid

TRUE Valid

Joint position

Angle 1 of axis A1 in the front/rear area (standard area/overhead area)

0

The zero point of the FCS is located in the front

area (standard area) of the joint position lines

for the axis A1.

1 = arctan(yFCS/xFCS)

1

The zero point of the FCS is located in the rear

area (overhead area) of the joint position lines

for the axis A1.

1 = -arctan(yFCS/xFCS)

Angle 2 of axis A2 positive/negative taking into consideration the mechanical axis coupling

0

2 positive

1

2 negative

Angle 3 of axis A3 positive/negative taking into consideration the mechanical axis coupling

0

3 positive

1

3 negative

See also

Tags: Kinematics transformation (Page 140)

352

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.18

"FlangeInKcs" tag (kinematics)
The tag structure "<TO>.FlangeInKcs.<Tag name>" contains the parameters for the Flange Coordinate System (FCS) in the Kinematics Coordinate System (KCS).

Tags

Legend (Page 334)

Tag FlangeInKcs.
x. Acceleration Position Velocity
y. Acceleration Position Velocity
z. Acceleration Position Velocity

Data type Values

W Description

TO_Struct_Kinematics_Status FlangeInKcs

TO_Struct_Kinematics_Status MotionVectorKcs

LREAL

-

RON Acceleration of the x coordinate of the flange coordinate

1.79769E308 to

system (FCS) in the kinematics coordinate system

1.79769E308

(KCS)

LREAL

-

RON x coordinate of the flange coordinate system in the kin-

1.79769E308 to

ematics coordinate system

1.79769E308

LREAL

-

RON Velocity of the x coordinate of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

TO_Struct_Kinematics_Status MotionVectorKcs

LREAL

-

RON Acceleration of the y coordinate of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

LREAL

-

RON y coordinate of the flange coordinate system in the kin-

1.79769E308 to

ematics coordinate system

1.79769E308

LREAL

-

RON Velocity of the y coordinate of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

TO_Struct_Kinematics_Status MotionVectorKcs

LREAL

-

RON Acceleration of the z coordinate of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

LREAL

-

RON z coordinate of the flange coordinate system in the kin-

1.79769E308 to

ematics coordinate system

1.79769E308

LREAL

-

RON Velocity of the z coordinate of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

353

Appendix A.1 Tags of the kinematics technology object

Tag a. Acceleration
Position
Velocity

Data type Values

W Description

TO_Struct_Kinematics_Status MotionVectorKcs

LREAL

-

RON Acceleration of the rotation A of the flange coordinate

1.79769E308 to

system in the kinematics coordinate system

1.79769E308

LREAL

-

RON Position of the rotation A of the flange coordinate system

1.79769E308 to

in the kinematics coordinate system

1.79769E308

LREAL

-

RON Velocity of the rotation A of the flange coordinate system

1.79769E308 to

in the kinematics coordinate system

1.79769E308

See also

Tags: Coordinate systems and frames (Page 34)

A.1.19

"StatusTool" tag (kinematics)
The tag structure "<TO>.StatusTool.<Tag name>" contains the parameters for the tool.

Tags
Tag StatusTool.
ActiveTool Frame[1..1].
x
y
z
a

Legend (Page 334)

Data type Values

W Description

TO_Struct_Kinematics_StatusTool

DINT

1 to 3

RON Currently active tool

ARRAY [1..1] OF TO_Struct_Kinematics_Status KinematicsFrame

LREAL

-

RON x coordinate of tool 1

1.79769E308 to

1.79769E308

LREAL

-

RON y coordinate of tool 1

1.79769E308 to

1.79769E308

LREAL

-

RON z coordinate of tool 1

1.79769E308 to

1.79769E308

LREAL

-

RON A coordinate of tool 1

1.79769E308 to

1.79769E308

See also

Tags: Coordinate systems and frames (Page 34)

354

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.20

"StatusConveyor[1..3]" tag (kinematics)
The tag structure "<TO>.StatusConveyor[1..3].<Tag name>" contains the conveyor tracking status.

Tags

Legend (Page 334)

Tag StatusConveyor[1..3].
ConveyorBelt
BeltPostion ObjectPostion
x y z a b c

Data type

Values

W Description

ARRAY [1..3] OF TO_Struct_Kinematics_StatusConveyor

DB_ANY

-

RON Active leading-value-capable technology object to which the object coordinate system (OCS) is coupled:

Leading-value-capable technology objects are:

· Positioning axis · Synchronous axis

· External encoder

· Leading axis proxy

LREAL

-

RON Position of the leading-value-capable technology object.

TO_STRUCT_ Kinematics_ StatusFrame

RON Object position on the leading-value-capable technology object.

LREAL

-

RON x coordinate

1.0E12 to 1.0E12

LREAL

-

RON y coordinate

1.0E12 to 1.0E12

LREAL

-

RON z coordinate

1.0E12 to 1.0E12

LREAL

-180.0 to 179.999 RON A coordinate

LREAL

-180.0 to 179.999 RON B coordinate

LREAL

-180.0 to 179.999 RON C coordinate

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

355

Appendix A.1 Tags of the kinematics technology object

Tag TrackingState

Data type DINT

Values 0 ... 3

W Description
RON Conveyor tracking status
0 OCS not assigned
No OCS is assigned to a leading-valuecapable technology object.
1 OCS assigned
The OCS is assigned to a leading-valuecapable technology object. The kinematics is waiting for the next path motion job to the OCS.
2 TCP approaches OCS
The OSC is assigned to a leading-valuecapable technology object. The position specified in the OCS is approached with the current path motion job of the kinematics.
3 TCP follows OCS
The OSC is assigned to a leading-valuecapable technology object.
The position of the OCS is reached. The kinematics is moved with the position of the OCS.

356

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.21

"StatusWorkspaceZone[1..10]" tag (kinematics)
The tag structure "<TO>.StatusWorkspaceZone[1..10].<Tag name>" contains the status of the workspace zones.

Tags

Legend (Page 334)

Tag StatusWorkspaceZone[1..10].
Active Valid Type
ReferenceSystem
Frame. x y z a b c

Data type Values

W Description

ARRAY [1..10] OF TO_Struct_Kinematics_StatusWork SpaceZone

BOOL

-

RON FALSE Workspace zone deactivated

TRUE Workspace zone activated

BOOL

-

RON FALSE Zone is not defined

TRUE Zone is defined

DINT

0 to 2

RON Type of the workspace zone

0

Blocked zone

1

Work zone

2

Signal zone

DINT

0 ... 3

RON Reference coordinate system for the workspace zone

0

WCS

1

OCS1

2

OCS2

3

OCS3

TO_Struct_Kinematics_Status Frame

LREAL

-

RON x coordinate

1.79769E308 to

1.79769E308

LREAL

-

RON y coordinate

1.79769E308 to

1.79769E308

LREAL

-

RON z coordinate

1.79769E308 to

1.79769E308

LREAL

-

RON A coordinate

180.0 to 179.99

9

LREAL -90.0 to 90.0

B coordinate

LREAL

-

RON C coordinate

180.0 to 179.99

9

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

357

Appendix A.1 Tags of the kinematics technology object

Tag Geometry. Type
Parameter[1..3]

Data type Values

W Description

TO_Struct_Kinematics_Status KinematicsZone

DINT

0 to 2

RON Zone geometry

0

Cuboid

1

Sphere

2

Cylinder

ARRAY [1..3] OF LREAL

0.0 to 1.0E12

RON 1 2 3

Length x (cuboid) or radius (sphere, cylinder) Length y (cuboid) or height (cylinder) Length z (cuboid)

See also

Tags: Zone monitoring (Page 161)

358

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.22

"StatusKinematicsZone[2..10]" tag (kinematics)
The tag structure "<TO>.StatusKinematicsZone[2..10].<Tag name>" contains the status of the kinematics zones.

Tags

Legend (Page 334)

Tag StatusKinematics Zone[2..10].
Active Valid ReferenceSystem
Frame. x
y
z
a
b c
Geometry. Type
Parameter[1..3]

Data type Values

W

ARRAY [2..10] OF TO_Struct_Kinematics_Status KinematicsZone

BOOL

-

RON

BOOL

-

RON

DINT

0 to 1

RON

TO_Struct_Kinematics_StatusFrame

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

1.79769E308 to

1.79769E308

LREAL

-

RON

180.0 to 179.99

9

LREAL -90.0 to 90.0 RON

LREAL

-

RON

180.0 to 179.99

9

TO_Struct_Kinematics_StatusZone Geometry

DINT

0 to 2

RON

ARRAY [1..3] OF LREAL

0.0 to 1.0E12

RON

Description

FALSE Kinematics zone deactivated

TRUE Kinematics zone activated

FALSE Zone is not present

TRUE Zone is present

Reference coordinate system for the kinematics zone

0

FCS

1

TCS

x coordinate

y coordinate

z coordinate

A coordinate

B coordinate C coordinate

Zone geometry

0

Cuboid

1

Sphere

2

Cylinder

1

Length x (cuboid) or radius (sphere, cylin-

der)

2

Length y (cuboid) or height (cylinder)

3

Length z (cuboid)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

359

Appendix A.1 Tags of the kinematics technology object

See also

Tags: Zone monitoring (Page 161)

A.1.23

"StatusZoneMonitoring" tag (kinematics)
The tag structure "<TO>.StatusZoneMonitoring.<Tag name>" contains the status of the violated zones.

Tags

Legend (Page 334)

Tag StatusZoneMonitoring.
WorkingZones
BlockedZones
SignalizingZones
KinematicsZones

Data type Values

W

TO_Struct_Kinematics_StatusZone Monitoring

DWORD -

RON

DWORD -

RON

DWORD -

RON

DWORD -

RON

Description
Display of violated work zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of violated blocked zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of approached signal zones The bit numbers 1 to 10 correspond to the configured zone numbers. Display of kinematics zones that violate workspace zones The bit number 1 indicates the monitoring status of the tool center point (TCP). The bit numbers 2 to 10 correspond to the configured zone numbers.

See also

Tags: Zone monitoring (Page 161)

360

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.24

"StatusMotionQueue" tag (kinematics)
The tag structure "<TO>.StatusMotionQueue.<Tag name>" contains the status of the job sequence.

Tags

Legend (Page 334)

Tag StatusMotionQueue.
NumberOfCommands

Data type Values

W

TO_Struct_Kinematics_Status MotionQueue

DINT

-

RON

Description Number of queued jobs in the job sequence

See also

Tags: Kinematics motions (Page 147)

A.1.25

"KinematicsAxis" tag (kinematics)
The tag structure "<TO>.KinematicsAxis.<Tag name>" contains the defined kinematics axes.

Tags

Legend (Page 334)

Tag KinematicsAxis.
A1 A2 A3 A4

Data type Values

W

TO_Struct_Kinematics_Kinematics Axis

DB_ANY -

RON

DB_ANY -

RON

DB_ANY -

RON

DB_ANY -

RON

Description
Technology object data block of the kinematics axis A1 Technology object data block of the kinematics axis A2 Technology object data block of the kinematics axis A3 Technology object data block of the kinematics axis A4

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

361

Appendix A.1 Tags of the kinematics technology object

A.1.26

"Units" tag (kinematics)
The tag structure "<TO>.Units.<Tag name>" contains the configured technological units.

Tags

Legend (Page 334)

Tag Units.
LengthUnit
LengthVelocityUnit

Data type Values

W

TO_Struct_Kinematics_Units

UDINT -

RON

UDINT -

RON

Description
Unit for the position 1010 m 1013 mm 1536 mm1) 1011 km 1014 µm 1015 nm 1019 in 1018 ft 1021 mi 1537 °1) Unit for the velocity 1062 mm/s 1538 °/s1) 1061 m/s 1524 mm/min 1525 m/min 1526 mm/h 1063 m/h 1527 km/min 1064 km/h 1066 in/s 1069 in/min 1067 ft/s 1070 ft/min 1075 mi/h

362

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

Tag AngleUnit

Data type Values UDINT -

AngleVelocityUnit

UDINT -

W RON
RON

Description Unit for the position of the orientation axis 1004 rad 1005 ° 1537 °1) Unit for the velocity of the orientation axis 1521 °/s 1522 °/min 1539 °/s1) 1086 rad/s 1523 rad/min

1) Position values with higher resolution or six decimal places

See also

Units of measure (Page 22)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

363

Appendix A.1 Tags of the kinematics technology object

A.1.27

"StatusWord" tag (kinematics)
The tag "<TO>.StatusWord" contains the status information of the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "RestartActive") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S71500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag StatusWord
Bit 0 Bit 1

Legend (Page 334)

Data type DWORD -

Values -

Bit 2

-

-

Bit 3

-

-

Bit 4
Bit 5 Bit 6

-

-

-

-

-

-

Bit 7 Bit 8
Bit 9
Bit 10

-

-

-

-

-

-

-

-

W RON -
-
-
-
-
-
-
-

Description

Status information of the technology object

Reserved

"Error"

0

No error is present.

1

An error is present.

"RestartActive"

0

No "Restart" is active.

1

A "Restart" is active. The technology object is

being reinitialized.

"OnlineStartValuesChanged"

0

"Restart" tags unchanged

1

Change to "Restart" tags For the changes to

be applied, the technology object must be

reinitialized.

"ControlPanelActive"

0

The kinematics control panel is deactivated.

1

The kinematics control panel is activated.

Reserved

"Done"

0

A motion job is in progress or the kinematics

control panel is activated.

1

No motion job is in progress and the kinemat-

ics control panel is deactivated.

Reserved

"LinearCommand"

0

No linear motion is active.

1

A linear motion is active.

"CircularCommand"

0

No circular motion is active.

1

A circular motion is active.

Reserved

364

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Tag Bit 11 Bit 12
Bit 13
Bit 14
Bit 15 Bit 16 Bit 17
Bit 18 Bit 19 ... Bit 31
See also

Data type Values

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

Appendix A.1 Tags of the kinematics technology object

W Description

-

"DirectCommand"

0

No synchronous point-to-point motion is active.

1

A synchronous point-to-point motion is active.

-

"ConstantVelocity"

0

The path motion of the kinematics is accelerat-

ed or decelerated.

1

The setpoint velocity is reached. The path

motion of the kinematics is moving at this con-

stant velocity or is at a standstill.

-

"Accelerating"

0

No acceleration operation of a path motion is

active.

1

An acceleration operation of a path motion is

active.

-

"Decelerating"

0

No deceleration operation of a path motion is

active.

1

A deceleration operation of a path motion is

active.

-

"OrientationMotion"

0

No orientation motion is active.

1

An orientation motion is active.

-

"Stopping"

0

No "MC_GroupStop" job is active.

1

An "MC_GroupStop" job is running. The motion

of the kinematics technology object is aborted

-

"Interrupted"

0

The motion of the kinematics technology object

is not interrupted.

1

The motion of the kinematics technology object

is interrupted with an "MC_GroupInterrupt" job.

The motion can be continued with a

"MC_GroupContinue" command.

-

"Blending"

0

No blending segment is active.

1

A blending segment is active.

-

Reserved

Tags: Kinematics motions (Page 147)
Function Manual "S7-1500T Motion Control V4.0 in the TIA Portal V15" section "Evaluating StatusWord, WarningWord and ErrorWord" (https://support.industry.siemens.com/cs/ww/en/view/109749263)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

365

Appendix A.1 Tags of the kinematics technology object

A.1.28

"ErrorWord" tag (kinematics)
The tag "<TO>.ErrorWord" shows errors at the technology object (technology alarms).
Information on the evaluation of the individual bits (e.g. bit 3 "CommandNotAccepted") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S71500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag ErrorWord
Bit 0 Bit 1
Bit 2
Bit 3
Bit 4 Bit 5 Bit 6
Bit 7 ... Bit 31

Legend (Page 334)

Data type DWORD -

Values -

-

-

-

-

-

-

-

-

-

-

-

-

-

-

W RON -
-
-
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are inconsistent or invalid. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Command cannot be executed. A Motion Control instruction cannot be executed because the necessary requirements are not met. "TransformationFault" Error in the kinematics transformation Reserved "DynamicError" Specified dynamic values are limited to permissible values. Reserved

See also

Function Manual "S7-1500T Motion Control V4.0 in the TIA Portal V15" section "Evaluating StatusWord, WarningWord and ErrorWord" (https://support.industry.siemens.com/cs/ww/en/view/109749263)

366

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.29

"ErrorDetail" tag (kinematics)
The tag structure "<TO>.ErrorDetail.<Tag name>" contains the alarm number and effective local alarm reaction to the technology alarm currently pending at the technology object.
You can find a list of the technology alarms and alarm reactions in the "Technology alarms (Page 371)" appendix.

Tags
Tag ErrorDetail.
Number Reaction

Legend (Page 334)

Data type Values

W

TO_Struct_Kinematics_ErrorDetail

UDINT -

RON

DINT

0, 11, 12

RON

Description

Alarm number

Effective alarm reaction

0

No reaction (warnings only)

11

Stop with maximum dynamic values of the

kinematics

12

Stop with maximum dynamic values of the

axes

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

367

Appendix A.1 Tags of the kinematics technology object

A.1.30

"WarningWord" tag (kinematics)
The tag "<TO>.WarningWord" shows pending warnings at the technology object.
Information on the evaluation of the individual bits (e.g. bit 2 "UserFault") can be found in the "Evaluating StatusWord, ErrorWord and WarningWord" section of the "S7-1500/S7-1500T Motion Control overview" (https://support.industry.siemens.com/cs/ww/en/view/109766459) documentation.

Tags
Tag WarningWord
Bit 0 Bit 1

Legend (Page 334)

Data type DWORD -

Values -

-

-

Bit 2 Bit 3

-

-

-

-

Bit 4 Bit 5 Bit 6
Bit 7 ... Bit 31

-

-

-

-

-

-

-

-

W RON -
-
-
-
-

Description
"SystemFault" A system-internal error has occurred. "ConfigFault" Configuration error One or more configuration parameters are being internally adapted temporarily. "UserFault" Error in user program at a Motion Control instruction or its use "CommandNotAccepted" Job cannot be executed A Motion Control instruction cannot be executed because the necessary requirements are not met. Reserved Reserved "DynamicWarning" Specified dynamic values are limited to permissible values. Reserved

See also

Function Manual "S7-1500T Motion Control V4.0 in the TIA Portal V15" section "Evaluating StatusWord, WarningWord and ErrorWord" (https://support.industry.siemens.com/cs/ww/en/view/109749263)

368

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.1 Tags of the kinematics technology object

A.1.31

"ControlPanel" tag (kinematics)
The tag structure "<TO>.ControlPanel.<Tag name>" contains no data relevant to the user. This tag structure is internally used.

Tags

Legend (Page 334)

Tag

Data type Values

W

ControlPanel.

TO_Struct_Kinematics_Control Panel

Input.

TO_Struct_Kinematics_Control PanelInput

TimeOut

LREAL 100 to 60000 DIR

EsLifeSign

UDINT -

DIR

Command[1..2].

ARRAY [1..2] OF TO_Struct_Kinematics_Control PanelInput

ReqCounter

UDINT -

DIR

Type

UDINT -

DIR

Position[1..4]

ARRAY -

DIR

[1..4] OF

LREAL

Velocity[1..2]

ARRAY -

DIR

[1..2] OF

LREAL

Acceleration[1..2] ARRAY -

DIR

[1..2] OF

LREAL

Deceleration[1..2] ARRAY -

DIR

[1..2] OF

LREAL

Jerk[1..2]

ARRAY -

DIR

[1..2] OF

LREAL

Param[1..9]

ARRAY -

DIR

[1..9] OF

LREAL

CoordinateSystem UDINT -

DIR

ToolNumber

UDINT -

DIR

Description
-
-

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

369

Appendix A.1 Tags of the kinematics technology object

Tag Output.
RtLifeSign Command[1..2].
AckCounter Error ErrorID Done Aborted

Data type Values

W

TO_Struct_Kinematics_Control PanelOutput

UDINT -

RON

ARRAY [1..2] OF TO_Struct_Kinematics_Control PanelOutputCmd

UDINT -

RON

BOOL

-

RON

WORD -

RON

BOOL

-

RON

BOOL

-

RON

Description
-
-

370

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

A.2

Technology alarms

Appendix A.2 Technology alarms

A.2.1

Overview
The following table shows an overview of the technology alarms and the corresponding alarm reactions. When a technology alarm occurs, evaluate the entire indicated alarm text, in order to find the precise cause.

Legend
No. Reaction Error bit Warning bit Restart Diagnostic buffer Alarm text

Number of the technology alarm (corresponds to <TO>.ErrorDetail.Number) Effective alarm reaction (corresponds to <TO>.ErrorDetail.Reaction) Bit that is set in <TO>.ErrorWord when the technology alarm occurs A description of the bits can be found in the appendix (Page 366). Bit that is set in <TO>.WarningWord when the technology alarm occurs A description of the bits can be found in the appendix (Page 368). To acknowledge the technology alarm, the technology object must be reinitialized (Restart). The alarm is entered in the diagnostics buffer. Displayed alarm test (limited)

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

371

Appendix A.2 Technology alarms

List of the technology alarms

No.

Reaction

Error bit Warning bit Restart Diagnostic

buffer

Alarm text

101 Stop with maximum

X1

-

dynamic values of the

axes

X

X

Configuration error.

201 Stop with maximum

X0

-

dynamic values of the

axes

X

X

Internal error.

202 Stop with maximum

X0

-

dynamic values of the

axes

X

-

Internal configuration error.

203 Stop with maximum

X0

-

dynamic values of the

axes

X

-

Internal error.

204 Stop with maximum

X0

-

dynamic values of the

axes

-

-

Commissioning error.

304 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Velocity limit is zero.

305 Stop with maximum

X2

-

dynamic values of the

axes

-

-

· Limit value of the acceleration is zero.

· Limit value of the deceleration is zero.

306 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Jerk limit is zero.

501 No reaction (warn-

-

X6

-

-

Programmed velocity is limited.

ings only)

502 No reaction (warn-

-

X6

-

-

· Programmed acceleration is being limited.

ings only)

· Programmed deceleration is being limited.

503 No reaction (warn-

-

X6

-

-

Programmed jerk is limited.

ings only)

561 No reaction (warn-

-

X6

-

-

Programmed velocity of the orientation motion

ings only)

is limited.

562 No reaction (warn-

-

X6

-

-

· Programmed acceleration of the orienta-

ings only)

tion motion is limited.

· Programmed deceleration of the orientation motion is limited.

563 No reaction (warn-

-

X6

-

-

Programmed jerk of the orientation motion is

ings only)

limited.

801 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Kinematics axis not ready.

802 Stop with maximum

X3

-

dynamic values of the

axes

-

-

Cannot calculate the geometry element.

372

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.2 Technology alarms

No.

Reaction

Error bit Warning bit Restart Diagnostic

buffer

Alarm text

803 Stop with maximum

X4

-

dynamic values of the

axes

-

-

Error in the calculation of the transformation.

804 Stop with maximum

X2

-

dynamic values of the

axes

-

-

The kinematics motion cannot be stopped at

the end.

805 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Limitation of the path dynamics by the dynam-

ics of the kinematics axes.

806 Stop with maximum

X2

-

dynamic values of the

kinematics

-

-

Collision with work or blocked zones occurred.

807 No reaction (warn-

-

ings only)

X2

-

-

Collision with work or blocked zones occurred.

808 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Ambiguity due to multiple active work zones.

809 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Path dynamic limit through dynamic of the

orientation motion faulty.

810 Stop with maximum

X2

-

dynamic values of the

axes

-

-

The conveyor belt is not assigned or faulty.

811 Stop with maximum

X2

-

dynamic values of the

axes

-

-

Error when approaching the TCP to a object

coordinate system.

Alarm reaction

A technology alarm always contains an alarm reaction, which describes the effect on the technology object. The alarm reaction is specified by the system.
The following table shows possible alarm reactions:

Alarm reaction No reaction (warnings only) <TO>.ErrorDetail.Reaction = 0
Stop with maximum dynamic values of the kinematics <TO>.ErrorDetail.Reaction = 11
Stop with maximum dynamic values of the axes <TO>.ErrorDetail.Reaction = 12

Description
The processing of the Motion Control jobs will be continued. The active motion of the kinematics can be influenced, e.g. by limiting the current dynamic values to the configured limit values.
Active and queued motion jobs are canceled. The kinematics is decelerated with the maximum dynamic values configured under "Technology object > Configuration > Extended parameters > Dynamics" and brought to a standstill. The configured maximum jerk is hereby taken into account.
Active and queued motion jobs are canceled. The axes are decelerated with the maximum dynamic values configured under "Technology object > Configuration > Extended parameters > Limits > Dynamic limits", and brought to a standstill. The configured maximum jerk is hereby taken into account.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

373

Appendix A.2 Technology alarms

A.2.2

Technology alarms 101

Technology alarm 101
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Required

Alarm text Configuration error.
Value in <tag> not allowed. Interconnection of axis <no.> missing. Interconnection of orientation axis missing. Delta 2D picker: No formation of a closed parallel structure. Delta 3D picker: No formation of a closed parallel structure. Delta 3D picker: Angular offset does not permit a third arm. Roll picker: Radius incorrect. Invalid arm distances. Limits for specifying orientations violated.

Remedy Adjust the specified value. Interconnect the axis. Adjust the geometry data of the mechanics.
Adjust the corresponding value.

A.2.3

Technology alarms 201 - 204

Technology alarm 201
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Required

Alarm text Internal error.

Remedy Contact customer service.

Technology alarm 202
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Required

Alarm text Internal configuration error.

Remedy Contact customer service.

374

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.2 Technology alarms

Technology alarm 203
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Required

Alarm text Internal algorithm error.

Remedy Contact customer service.

Technology alarm 204
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Required

Alarm text Commissioning error.
Connection to the TIA Portal interrupted.

Remedy Check the connection properties.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

375

Appendix A.2 Technology alarms

A.2.4

Technology alarms 304 - 306

Technology alarm 304
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Velocity limit is zero.

Remedy
Enter a value for the velocity (Dynamic Limits.Path.Velocity) that does not equal zero in the limits for dynamics.

Technology alarm 305
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Acceleration/deceleration limit is zero.
Acceleration
Deceleration

Remedy
Enter a value for the acceleration (Dynamic Limits.Path.Acceleration) that does not equal zero in the limits for dynamics. Enter a value for the deceleration (Dynamic Limits.Path.Deceleration) that does not equal zero in the limits for dynamics.

Technology alarm 306
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Jerk limit is zero.

Remedy
Enter a value for the JERK (DynamicLimits.Path.Jerk) that does not equal zero in the limits for dynamics.

376

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.2 Technology alarms

A.2.5

Technology alarms 501 - 563

Technology alarm 501
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Programmed velocity is limited.

Remedy
· Check the value for the velocity of the Motion Control instruction.
· Check the configuration of the dynamic limits.

Technology alarm 502
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Programmed acceleration/deceleration is limited.
Acceleration
Deceleration

Remedy
· Check the value for the acceleration of the Motion Control instruction.
· Check the configuration of the dynamic limits. · Check the value for the deceleration of the Motion
Control instruction. · Check the configuration of the dynamic limits.

Technology alarm 503
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Programmed jerk is limited.

Remedy
· Check the value for the jerk of the Motion Control instruction.
· Check the configuration of the dynamic limits.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

377

Appendix A.2 Technology alarms

Technology alarm 561
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Programmed velocity of the orientation motion is limited.

Remedy
· Check the configuration of the velocity of the orientation motion.

Technology alarm 562
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text
Programmed acceleration/deceleration of the orientation motion is limited.
Acceleration

Remedy
· Check the configuration of the acceleration of the orientation motion.

Deceleration

· Check the configuration of the deceleration of the orientation motion.

Technology alarm 563
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Programmed jerk of the orientation motion is limited.

Remedy
· Check the configuration of the jerk of the orientation motion.

378

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.2 Technology alarms

A.2.6

Technology alarms 801 - 811

Technology alarm 801
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Kinematics axis <no.> not ready.
Axis not enabled. Axis command programmed.
Axis alarm.

Remedy
Enable the technology object. To transmit another kinematics command, put the specified axis in a standstill. Check and acknowledge the technology alarms of the specified kinematics axis.

Technology alarm 802
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text

Remedy

Cannot calculate the geometry element.

Radius for "CircMode" = 2 less than half the path distance. Adjust the radius.

Starting point, intermediate point and/or end point are identi- Specify different values for starting point, intermediate

cal when "CircMode" = 0.

point and end point.

Intermediate point cannot be reached when "CircMode" = 0. Adjust the intermediate point.

Starting point and end point are identical when "CircMode" = 2 Define different start and end points. as well as "PathChoice" = 2 or 3 is specified.

Unable to execute dynamic adaptation.

Switch off the dynamic adaptation.

Motion is not in the transformation area.

Define the motions within the transformation area.

The selected transformation only works with sPTP motions.

Select a "MC_MoveDirectAbsolute" instruction or "MC_MoveDirectRelative" instruction for the transformation.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

379

Appendix A.2 Technology alarms

Technology alarm 803
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Error calculating the transformation.
Transformation of the axis coordinates to the kinematics coordinates resulted in an error.
With user-defined kinematics systems: "FunctionResult" of the MC-Transformation [OB98] Transformation of the kinematics coordinates to the axis coordinates resulted in an error. With predefined kinematics systems: Additional info:
0 Cartesian position cannot be reached 1 Singular position With user-defined kinematics systems: "FunctionResult" of the MC-Transformation [OB98]

Remedy
· Correct your specified motion with regard to the joint positioning space and the transformation areas:
· Position the kinematics axes with single-axis motions in a permitted transformation area.
· For user transformation: Check the calculation in the MC-Transformation [OB98].

Technology alarm 804
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Kinematics motion cannot be stopped at end.

Remedy Ensure that the path is sufficiently long.

Technology alarm 805
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Limitation of the path dynamics by the axis dynamics faulty.
Path velocity is limited to zero. Path acceleration or deceleration is limited to zero.

Remedy
Configure a larger path velocity for the kinematics axis. Configure a larger path acceleration or deceleration for the kinematics axis.

380

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.2 Technology alarms

Technology alarm 806
Alarm reaction: Stop with maximum dynamic values of the kinematics Restart: Not required

Alarm text Collision with work or blocked zones occurred.

Remedy
Move the kinematics object from the work zone or blocked zone.

Technology alarm 807
Alarm reaction: No reaction (warnings only) Restart: Not required

Alarm text Collision with work or blocked zones occurred.

Remedy -

Technology alarm 808
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Ambiguity due to multiple active work zones.
<Number of the currently active zone>

Remedy Activate only one work zone.

Technology alarm 809
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text Path dynamic limit through dynamic of the orientation motion faulty.
Velocity is limited to zero.
Acceleration/deceleration is limited to zero.

Remedy
Configure a higher maximum velocity for the axes involved in the orientation motion. Configure a higher maximum acceleration or deceleration for the axes involved in the orientation motion.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

381

Appendix A.2 Technology alarms

Technology alarm 810
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text The conveyor belt is not assigned or faulty.

Remedy
· Check the parameters of the "MC_TrackConveyorBelt" job.
· Check the configuration of the leading-value-capable technology object which represents the conveyor belt.

Technology alarm 811
Alarm reaction: Stop with maximum dynamic values of the axes Restart: Not required

Alarm text

Remedy

Error when approaching the TCP to a object coordinate system. Check the parameters of the "MC_MoveLinearAbsolute" or "MC_MoveCircularAbsolute" job.

382

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

A.3

Appendix A.3 Error ID (kinematics)
Error ID (kinematics)
Errors in Motion Control instructions are signaled using the "Error" and "ErrorID" parameters. Under the following conditions, "Error" = TRUE and "ErrorID" = 16#8xxx are indicated for the Motion Control instruction:  Invalid status of the technology object that prevents execution of the job.  Invalid parameter assignment of the Motion Control instruction that prevents execution of
the job.  As a result of the alarm reaction to a technology object error. The following tables show a list of all "ErrorIDs" that can be indicated for Motion Control instructions. Besides the cause of the error, remedies for eliminating the error are also listed:

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

383

Appendix A.3 Error ID (kinematics)

16#0000 - 16#800F

ErrorID 16#0000 16#8001
16#8002
16#8003 16#8004 16#8005 16#8006 16#8007 16#8008 16#8009 16#800A 16#800D
16#800F

Description

Remedy

No error

-

A technology alarm (technology object error) In the technology data block, an error message is output at

occurred while processing the Motion Con- the "ErrorDetail.Number" tag.

trol instruction.

You can find a list of the technology alarms and alarm reac-

tions in the Technology alarms (Page 374) appendix.

Illegal specification of the technology object Check the specification of the technology object for the "Axis" or "AxesGroup" parameter.

You can use a kinematics technology object only for the "AxesGroup" parameter.

Illegal velocity specification

Specify a permissible value for the velocity for the "Velocity" parameter.

Illegal acceleration specification

Specify a permissible value for the acceleration for the "Acceleration" parameter.

Illegal deceleration specification

Specify a permissible value for the deceleration for the "Deceleration" parameter.

Illegal jerk specification

Specify a permissible value for the jerk for the "Jerk" parameter.

Illegal direction specification

Specify a permissible value for the motion direction for the "DirectionA" parameter.

Illegal specification of the relative target coordinate

Specify permissible values for the relative target coordinate for the "Distance" parameter.

Illegal specification of the absolute target coordinate

Specify a permissible value for the absolute target coordinate in the "Position" parameter.

Illegal mode specification

Specify a permissible value for the mode for the "Mode" parameter.

The job is not permitted in the current state. While a restart is being performed, the technology object

Restart is being executed.

cannot perform any jobs.

During a restart of the kinematics technology object, all interconnected axes are reinitialized first. Then the kinematics technology object is reinitialized. This may take up to one second.

Wait until the technology object restart is complete.

The job cannot be executed because the technology object is disabled.

Enable the technology object with "MC_Power.Enable" = TRUE. Restart the job.

384

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Appendix A.3 Error ID (kinematics)

16#8010 - 16#807F

ErrorID 16#8012 16#8014
16#8015

Description

Remedy

The job cannot be executed because the kinematics control panel is active.

Return the master control to your user program. Restart the job.

No internal job memory available.

The maximum possible number of Motion Control jobs has been reached.

Reduce the number of jobs to be executed (parameter "Execute" = FALSE).

Error acknowledgment with "MC_Reset" is Check the configuration of the technology object. not possible. Error in the configuration of the technology object.

16#80A0 - 16#8FFF

ErrorID 16#80B1 16#80B2 16#80B3 16#80B5 16#80B6 16#80B7 16#80B8 16#80B9 16#80BA 16#80BB 16#80BC 16#80C1 16#80C2 16#80C3 16#80C4 16#80C5

Description

Remedy

Illegal specification of the coordinate system Specify a permissible value for the coordinate system for the "CoordSystem" parameter.

Illegal specification of the motion transition Specify a permissible value for the motion transition for the "BufferMode" parameter.

Illegal specification of the rounding clearance

Specify a permissible value for the rounding clearance for the "TransitionParameter" parameter.

Illegal specification of the dynamic adapta- Specify a permissible value for the dynamic adaptation for the

tion

"DynamicAdaption" parameter.

Illegal specification for the definition of the circular path

Specify a permissible value for the definition of the circular path for the "CircMode" parameter.

Illegal specification for the circular path auxiliary point

Specify a permissible value for the circular path auxiliary point for the "AuxPoint" parameter.

Illegal specification of the target position

Specify a permissible value for the target position for the "EndPoint" parameter.

Illegal specification of the orientation of the Specify a permissible value for the orientation of the circular

circular path

path for the "PathChoice" parameter.

Illegal specification for the main plane of the Specify a permissible value for the main plane of the circular

circular path

path for the "CirclePlane" parameter.

Illegal radius specification

Specify a permissible value for the radius of the circular path for the "Radius" parameter.

Illegal angle specification

Specify a permissible value for the angle of the circular path for the "Arc" parameter.

Illegal specification of the zone type

Specify a permissible value for the zone type for the "ZoneType" parameter.

Illegal specification of the zone position

Specify a permissible value for the zone number for the "ZoneNumber" parameter.

Illegal specification of the reference system Specify a permissible value for the reference system for the "ReferenceSystem" parameter.

Illegal coordinate specification

Specify permissible values for the coordinates for the "Frame" parameter.

Illegal specification of the zone geometry

Specify a permissible value for the zone geometry for the "GeometryType" parameter.

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

385

Appendix A.3 Error ID (kinematics)

ErrorID 16#80C6 16#80C7
16#80C8
16#80CA 16#80CB 16#80CC
16#80CD 16#80CE 16#80D1 16#80D2 16#80D3 16#80D4 16#80D5 16#8FFF

Description Illegal specification of the geometric parameters The zone is not defined.
A tool cannot be redefined during a motion. An active tool cannot be changed during a motion. Illegal specification of the tool number
Illegal specification of the object coordinate system The job cannot be executed because a single-axis motion is active at a kinematics axis. The job cannot be executed because an "MC_GroupStop" job is active. The job sequence is used to capacity.
Invalid value for the use of the parameter "Position" Illegal value for the target arm positioning space Illegal value for the positions of the kinematics axes Illegal value for the velocity of the kinematics axes Illegal value for the acceleration of the kinematics axes Unspecified error

Remedy Specify permissible values for the geometric parameters for the "GeometryParameter" parameter. Define a workspace zone using the "MC_DefineWorkspaceZone" job or a kinematics zone using the "MC_DefineKinematicsZone" job. End the active motion. Restart the "MC_DefineTool" job. End the active motion. Restart the "MC_SetTool" job.
Specify a permissible value for the tool number for the "ToolNumber" parameter. Specify a permissible value for the object coordinate system for the "OcsNumber" parameter. End the current single-axis motion. Restart the job.
Set the "MC_GroupStop.Execute" parameter to FALSE. Restart the job. The maximum possible Motion Control jobs have been transmitted. Enter a permissible value for use of the parameter "Position" in the "PositionMode" parameter. Enter a permissible value for the target arm positioning space in the "LinkConstellation" parameter. Enter a permissible value for the positions of the kinematics axes at the parameter "AxesPosition". Specify a permissible value for the velocity of the kinematics axes for the "AxesVelocity" parameter. Specify a permissible value for the acceleration of the kinematics axes for the "AxesAcceleration" parameter. Contact your local Siemens representative or support center. You will find your contact information for digital industries at: https://www.siemens.com/automation/partner (https://www.siemens.com/automation/partner)

386

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

Index
A
Articulated arm 2D, 72 2D with orientation, 75 3D, 78 3D with orientation, 83
AxesGroup, 16
B
Blocked zones, 155, 157
C
CircMode, 142 Circular motion, 141 Circular path
Definition, 142 Conveyor tracking, 149, 149 Coupling factor, 129 Cylindrical robot
3D, 103 3D with orientation, 107
D
Delta picker 2D, 90 2D with orientation, 93 3D, 95 3D with orientation, 98
E
Error ID, 383 ErrorID
List of ErrorIDs, 383 Errors in Motion Control instructions, 383
S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

F
FCS, 27 Flange coordinate system (FCS), 27 Flange zones, 158 FNP, 15 Frame definition, 31
J
Job sequence, 16, 191 Joint position space, 124
K
KCS, 26 Kinematics, 15, 35
Adding, 164 Circular motion, 141 Configuration, 165 Conveyor tracking, 149 Coordinate systems, 25 Copying, 187 Degrees of freedom, 15 Deleting, 188 Diagnostics, 210, 212, 215, 216, 218 Dynamic adaptation, 146 Dynamic defaults, 145 Dynamic limits, 145 Dynamic settings, 147 Frames, 25 Functions, 17 Interconnection rules, 20 Joint position space, 124 Kinematics control panel, 204 Linear motion, 141 Mechanical couplings, 129 Motion, 141 Point-to-point motion, 144 Simulation, 20 Singular positions, 128 Tags, 334 Term definition, 15 User transformation, 130 Zone monitoring, 154 Kinematics axes, 15
387

Index

Kinematics control panel, 204, 208 Kinematics coordinate system, 26 Kinematics motion, 141
Circular motion, 197 continue, 194 Dynamics, 145 Interrupting, 194 Linear motion, 196 Motion transition, 196 Motion transition dynamics, 201 Remaining distance, 193 sPTP motion, 199 Status, 193 stop, 194 Kinematics transformation, 122, 123 Kinematics type Articulated arm 2D, 72 Articulated arm 2D with orientation, 75 Articulated arm 3D, 78 Articulated arm 3D with orientation, 83 Cylindrical robot 3D, 103 Cylindrical robot 3D with orientation, 107 Delta picker 2D, 90 Delta picker 2D with orientation, 93 Delta picker 3D, 95 Delta picker 3D with orientation, 98 Portal 2D, 37 Portal 2D with orientation, 39 Portal 3D, 41 Portal 3D with orientation, 44 Roller picker 2D, 48 Roller picker 2D with orientation, 50 Roller picker 3D (vertical), 52 Roller picker 3D with orientation (horizontal), 58 Roller picker 3D with orientation (vertical), 55 SCARA 2D with orientation, 63 SCARA 3D with orientation, 66 Tripod 3D, 113 Tripod 3D with orientation, 117 User-defined, 121 Kinematics types, 35 Kinematics zero point, 15 Kinematics zones, 155, 157 KZP, 15
L
Linear motion, 141

M
Machine coordinate system, 15 MC_DefineKinematicsZone, 306 MC_DefineTool, 317 MC_DefineWorkspaceZone, 303 MC_GroupContinue, 252, 253 MC_GroupInterrupt, 250 MC_GroupStop, 255, 257 MC_InverseKinematicsTransformation, 325 MC_KinematicsTransformation, 323 MC_MoveCircularAbsolute, 269, 275 MC_MoveCircularRelative, 277, 283 MC_MoveDirectAbsolute, 285, 290 MC_MoveDirectRelative, 292, 296 MC_MoveLinearAbsolute, 258, 262 MC_MoveLinearRelative, 263, 267 MC_SetKinematicsZoneActive, 313 MC_SetKinematicsZoneInactive, 315 MC_SetOcsFrame, 321 MC_SetTool, 319 MC_SetWorkspaceZoneActive, 309 MC_SetWorkspaceZoneInactive, 311 MC_TrackConveyorBelt, 298, 300 MCS, 15 MC-Transformation-OB, 132 Mechanical couplings, 129 Motion transition, 196
O
Object coordinate system, 28 OCS, 28 Orientation movement, 141
P
PathChoice, 142 Point-to-point motion, 144 Portal
2D, 37 2D with orientation, 39 3D, 41 3D with orientation, 44

388

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

R
Roller picker 2D, 48 2D with orientation, 50 3D (vertical), 52 3D with orientation (horizontal), 58 3D with orientation (vertical), 55
Rotation conventions, 31
S
S7-1500 Motion Control Technology alarms, 371 Unit of measure, 22 Versions, 162
S7-1500T Motion Control Commissioning, 208
S7-1500T Motion Control instruction Errors in Motion Control instructions, 383
SCARA 2D with orientation, 63 3D with orientation, 66
Signal zones, 155, 157 Singular positions, 128 sPTP motion, 144 Synchronous point-to-point motion, 144
T
Tags Kinematics technology object, 334
TCP, 15, 28 TCS, 28 Technology alarms
List of the technology alarms, 371 Technology data block
Tags of the kinematics technology object, 334 Technology object
Kinematics, 17, 18, 164 Tool center point, 15, 28 Tool coordinate system, 28 Tool zones, 158 Transformation area, 123 Transformation-OB, 132 Traversing range, 123 Tripod
3D, 113 3D with orientation, 117

U
Unit of measure, 22 User transformation, 130
Example, 135 User-defined kinematics systems, 121
W
WCS, 26 Work zones, 155, 157 Workspace zones, 155, 156 World coordinate system, 26
Z
Zone geometry, 159 Zone monitoring, 154 Zones
Flange zones, 158 Kinematics zones, 157 Signal zones, 157 Subentry, 154, 157 Tool zones, 158 Work zones, 157 Workspace zones, 156 Zone geometry, 159

Index

S7-1500T Kinematics functions V5.0 in TIA Portal V16 Function Manual, 12/2019, A5E42062707-AB

389

SIMATIC
S7-1500, ET 200MP, ET 200SP, ET 200AL Counting, measurement and position detection
Function Manual

_Pr_ef_ac_e_______________

_Do_c_um_e_n_tat_io_n _gu_id_e_______1_

_ _ _ _ _ _ _ _ _ _ _ The basics of counting,

measurement and position

2

input

_ _ _ _ _ _ _ _ _ _ _ Using the

High_Speed_Counter

3

technology object

_ _ _ _ _ _ _ _ _ _ _ Using the

SSI_Absolute_Encoder

4

technology object

_Us_in_g_th_e_m_od_u_le_________5_

_Se_rv_ic_e_&_S_up_p_or_t ________A_

10/2018
A5E32009889-AH

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E32009889-AH  09/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Preface

Purpose of the documentation This documentation supports you in configuring and programming modules for counting and measurement tasks of the S7-1500, ET 200MP and ET 200SP, as well as in position feedback and position input.
Basic knowledge required The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Proficiency with STEP 7
Validity of the documentation This documentation applies to the use of the following modules:  S7-1500 modules ­ TM Count 2x24V (as of firmware version V1.3) ­ TM PosInput 2 (as of firmware version V1.3) ­ TM Timer DIDQ 16x24V ­ CPU 1511C-1 PN ­ CPU 1512C-1 PN ­ DI 32x24VDC HF (as of firmware version V2.1.0) ­ DI 16x24VDC HF (as of firmware version V2.1.0)  ET 200SP modules ­ TM Count 1x24V (as of firmware version V1.3) ­ TM PosInput 1 (as of firmware version V1.3) ­ TM Timer DIDQ 10x24V ­ DI 8x24VDC HS  ET 200AL modules ­ DIQ 16x24VDC/0.5A 8xM12 TM Count, TM PosInput and compact CPU are suitable for complex counting and measuring tasks and for position detection. TM Timer DIDQ and digital modules are suitable for simple counting tasks.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

3

Preface

Conventions

Please observe notes marked as follows:
Note The notes contain important information on the product described in the documentation, on the handling of the product or on part of the documentation to which particular attention should be paid.

Additional assistance
 You can find information about the technical support offerings in the appendix Service & Support (Page 234).
 The range of technical documentation for the individual SIMATIC products and automation systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the ordering system are available on the Internet (https://mall.industry.siemens.com).

Counting, measurement and position detection

4

Function Manual, 10/2018, A5E32009889-AH

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ................................................................................................................................. 9

2 The basics of counting, measurement and position input ........................................................................ 14

2.1

Overview of modules and properties ......................................................................................14

2.2
2.2.1 2.2.2 2.2.3 2.2.3.1 2.2.3.2 2.2.4 2.2.5 2.2.5.1 2.2.5.2 2.2.5.3 2.2.5.4 2.2.6 2.2.6.1 2.2.6.2 2.2.7 2.2.7.1 2.2.7.2 2.2.8 2.2.8.1 2.2.8.2 2.2.8.3 2.2.8.4 2.2.9 2.2.9.1 2.2.9.2 2.2.9.3 2.2.10 2.2.10.1 2.2.10.2 2.2.11 2.2.12 2.2.13 2.2.13.1 2.2.13.2 2.2.13.3

Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) .......................................................................................................................................18 Convention ..............................................................................................................................18 Overview of applications.........................................................................................................18 Recording of count signals .....................................................................................................24 Counting with incremental or pulse encoder ..........................................................................24 Position input with SSI absolute encoder ...............................................................................26 Behavior at the counting limits................................................................................................28 Gate control with incremental or pulse encoder .....................................................................30 Software gate..........................................................................................................................30 Hardware gate ........................................................................................................................30 Internal gate ............................................................................................................................32 Counter behavior at gate start ................................................................................................33 Capture (Latch) .......................................................................................................................34 Capture with incremental or pulse encoder ............................................................................34 Capture with SSI absolute encoder ........................................................................................37 Synchronization ......................................................................................................................39 Synchronization by digital input ..............................................................................................42 Synchronization at signal N ....................................................................................................44 Comparison values .................................................................................................................47 Comparison values and outputs .............................................................................................47 Switching at comparison values with counter value as reference ..........................................48 Switching at comparison values with position value (SSI absolute value) as reference ........52 Switching at comparison values with measured value as reference ......................................56 Measured value determination ...............................................................................................58 Overview of measuring functions............................................................................................58 Measured value determination with incremental or pulse encoder ........................................59 Measured value determination with SSI absolute encoder ....................................................63 Hysteresis ...............................................................................................................................66 Hysteresis with incremental or pulse encoder ........................................................................66 Hysteresis with SSI absolute encoder ....................................................................................68 Interrupts .................................................................................................................................70 Position detection for Motion Control......................................................................................70 Encoder signals ......................................................................................................................71 24 V and TTL count signals ....................................................................................................71 RS422 count signals ...............................................................................................................73 SSI signals ..............................................................................................................................75

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

5

Table of contents

2.2.14 2.2.14.1 2.2.14.2 2.2.14.3 2.2.14.4 2.2.15

Signal evaluation of incremental signals................................................................................ 76 Overview ................................................................................................................................ 76 Single evaluation.................................................................................................................... 76 Double evaluation .................................................................................................................. 77 Quadruple evaluation ............................................................................................................. 78 Clock synchronization (TM Count and TM PosInput) ............................................................ 79

2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5

Basics of counting (TM Timer DIDQ) ..................................................................................... 81 Overview of applications ........................................................................................................ 81 Counting with incremental encoder........................................................................................ 82 Counting with pulse encoder.................................................................................................. 83 24 V count signals.................................................................................................................. 84 Isochronous mode ................................................................................................................. 85

2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.4.1 2.4.4.2 2.4.4.3 2.4.5 2.4.6 2.4.7 2.4.8

Basics of counting (digital modules) ...................................................................................... 86 Overview of applications ........................................................................................................ 86 Counting with pulse encoders................................................................................................ 87 Behavior at the counting limits ............................................................................................... 88 Gate control............................................................................................................................ 90 Software gate ......................................................................................................................... 90 Hardware gate........................................................................................................................ 90 Internal gate ........................................................................................................................... 91 Comparison values ................................................................................................................ 92 Interrupts ................................................................................................................................ 95 24 V count signals.................................................................................................................. 95 Isochronous mode ................................................................................................................. 96

3 Using the High_Speed_Counter technology object .................................................................................. 97

3.1

Convention ............................................................................................................................. 97

3.2

High_Speed_Counter technology object................................................................................ 97

3.3

Overview of the configuration steps....................................................................................... 98

3.4

Add technology object............................................................................................................ 99

3.5 3.5.1 3.5.2 3.5.3 3.5.4 3.5.4.1 3.5.4.2 3.5.5 3.5.6 3.5.7

Configuring the High_Speed_Counter ................................................................................. 101 Working with the configuration dialog .................................................................................. 101 Basic parameters ................................................................................................................. 103 Counter inputs (High_Speed_Counter) ................................................................................ 104 Counter behavior ................................................................................................................. 109 Counting limits and start value............................................................................................. 109 Counter behavior at limits and gate start ............................................................................. 109 Behavior of a DI (High_Speed_Counter) ............................................................................. 111 Behavior of a DQ (High_Speed_Counter)............................................................................ 116 Specify measured value (High_Speed_Counter) ................................................................. 121

3.6 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7

Programming the High_Speed_Counter .............................................................................. 123 High_Speed_Counter instruction ......................................................................................... 123 Call instruction in the user program ..................................................................................... 124 Description High_Speed_Counter........................................................................................ 125 High_Speed_Counter input parameters............................................................................... 131 High_Speed_Counter output parameters ............................................................................ 132 Error codes of parameter ErrorID ........................................................................................ 134 High_Speed_Counter static variables .................................................................................. 136

Counting, measurement and position detection

6

Function Manual, 10/2018, A5E32009889-AH

Table of contents

3.7 3.7.1

Commissioning the High_Speed_Counter............................................................................138 Commissioning the technology object ..................................................................................138

3.8 3.8.1

High_Speed_Counter diagnostics.........................................................................................140 Monitoring counter values, measured values, DIs and DQs ................................................140

4 Using the SSI_Absolute_Encoder technology object ............................................................................. 142

4.1

Technology object SSI_Absolute_Encoder...........................................................................142

4.2

Overview of the configuration steps......................................................................................143

4.3

Add technology object ..........................................................................................................144

4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7

Configuring SSI_Absolute_Encoder......................................................................................146 Working with the configuration dialog ...................................................................................146 Basic parameters ..................................................................................................................147 SSI absolute encoder............................................................................................................148 Behavior of a DI (SSI_Absolute_Encoder)............................................................................151 Behavior of a DQ (SSI_Absolute_Encoder)..........................................................................153 Specify measured value (SSI_Absolute_Encoder) ...............................................................157 Examples of the frame format...............................................................................................159

4.5 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7

Programming the SSI_Absolute_Encoder ............................................................................162 Instruction SSI_Absolute_Encoder .......................................................................................162 Call instruction in the user program ......................................................................................163 Description SSI_Absolute_Encoder ......................................................................................164 Input parameter SSI_Absolute_Encoder ..............................................................................167 Output parameter SSI_Absolute_Encoder............................................................................168 Error codes of parameter ErrorID .........................................................................................170 Static tags SSI_Absolute_Encoder .......................................................................................171

4.6 4.6.1

Commissioning SSI_Absolute_Encoder ...............................................................................172 Commissioning the technology object ..................................................................................172

4.7 4.7.1

SSI_Absolute_Encoder diagnostics ......................................................................................173 Monitoring counter values, measured values, DIs and DQs ................................................173

5 Using the module................................................................................................................................... 175

5.1 5.1.1 5.1.2 5.1.2.1 5.1.2.2 5.1.2.3 5.1.2.4 5.1.2.5 5.1.2.6 5.1.2.7 5.1.2.8 5.1.3 5.1.3.1 5.1.4 5.1.4.1 5.1.4.2

Using the technology module ...............................................................................................175 Convention ............................................................................................................................175 Configuring a module............................................................................................................175 Adding a technology module for hardware configuration (TM Count and TM PosInput) .....175 Adding a technology module to hardware configuration (Compact CPU) ............................176 Open hardware configuration ...............................................................................................177 Parameter assignment options .............................................................................................177 Basic parameters ..................................................................................................................179 Additional parameters for Compact CPU..............................................................................188 Manual operation (incremental or pulse encoder) ................................................................190 Manual operation (SSI absolute encoder) ............................................................................207 Online & diagnostics module ................................................................................................218 Displaying and evaluating diagnostics..................................................................................218 Control and feedback interface (TM Count, TM PosInput) ...................................................219 Assignment of the control interface ......................................................................................219 Assignment of the feedback interface...................................................................................222

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

7

Table of contents

5.2 5.2.1 5.2.1.1 5.2.1.2 5.2.1.3 5.2.2 5.2.2.1

Using the digital module....................................................................................................... 227 Configuring and assigning parameters to the module ......................................................... 227 Adding a module to the hardware configuration .................................................................. 227 Open hardware configuration............................................................................................... 227 Counting operating mode..................................................................................................... 228 Online & diagnostics module ............................................................................................... 233 Displaying and evaluating diagnostics ................................................................................. 233

A Service & Support.................................................................................................................................. 234

Index...................................................................................................................................................... 237

Counting, measurement and position detection

8

Function Manual, 10/2018, A5E32009889-AH

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

9

Documentation guide

General information
The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and additions to the manuals are documented in product information sheets.
You will find the product information on the Internet:
 S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)
 ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)
 ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

Counting, measurement and position detection

10

Function Manual, 10/2018, A5E32009889-AH

Documentation guide
"mySupport" - CAx data In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

11

Documentation guide

SIMATIC Automation Tool You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on different SIMATIC S7 stations as a bulk operation, independently of the TIA Portal.
The SIMATIC automation tool provides a variety of functions:
 Scanning of a PROFINET/Ethernet plant network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 CPU localization by means of LED flashing
 Reading out CPU error information
 Reading of CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Counting, measurement and position detection

12

Function Manual, 10/2018, A5E32009889-AH

Documentation guide

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

13

The basics of counting, measurement and position input

2

2.1

Overview of modules and properties

Modules for the S7-1500 and ET 200MP systems
The table below summarizes the performance features of the modules for counting, measuring and position input for the S7-1500 and ET 200MP systems.

Property
Number of counters Use of counters can be activated/deactivated Maximum signal frequency Maximum count frequency for incremental encoders with quadruple evaluation (Page 76) Maximum counting range Maximum position value range (Page 26) 24 V incremental encoder connection 24 V pulse encoder connection RS422/TTL incremental and pulse encoder (Page 73) connection SSI absolute encoder (Page 75) connection Position input for Motion Control (Page 70)

S7-1500 / ET 200MP

Technology module

Digital input module

TM Count 2x24V TM PosInput 2

2

2

TM Timer DIDQ 16x24V
41

DI 32x24VDC HF DI 16x24VDC HF
2

--

--

X

X

200 kHz 800 kHz

1 MHz 4 MHz

50 kHz 200 kHz

1 kHz --

32 bits (Page 24) 32 bits (Page 24) 32 bits (Page 82) 32 bits (Page 87)

--

32 bits

--

--

X (Page 71)

--

X (Page 84)

--

X (Page 71)

--

X (Page 84)

X (Page 95)

--

X

--

--

--

X

--

--

X

X

--

--

Compact CPU CPU 1511C-1 PN CPU 1512C-1 PN
6 X
100 kHz 400 kHz
32 bits (Page 24) --
X (Page 71) X (Page 71)
--
-- X

Counting, measurement and position detection

14

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.1 Overview of modules and properties

Property
5 V encoder supply 24 V encoder supply Number of additional digital inputs per counter Number of physical digital outputs per counter Number of logical digital outputs per counter Software gate Hardware gate Capture function (Latch) (Page 34) Synchronization (Page 39) Comparison functions Hysteresis (Page 66) Frequency, velocity and period duration measurement (Page 58) Isochronous mode support Support for diagnostic interrupts for sensor signals Hardware interrupt support Configurable filter for count signals and digital inputs

S7-1500 / ET 200MP

Technology module

Digital input module

TM Count 2x24V TM PosInput 2

--

X

TM Timer DIDQ 16x24V
--

DI 32x24VDC HF DI 16x24VDC HF
--

X

X

X

--

3

2

--

--

2

2

--

--

2

2

--

1

X (Page 30)

X (Page 30)

--

X (Page 90)

X (Page 30)

X (Page 30)

--

--

X

X

--

--

X

X

--

--

X (Page 47)

X (Page 47)

--

X (Page 92)

X

X

--

--

X

X

--

--

X (Page 79) X (Page 70)
X (Page 70) X

X (Page 79) X (Page 70)
X (Page 70) X

X (Page 85) --
-- --

X (Page 96) --
X (Page 95) X

Compact CPU CPU 1511C-1 PN CPU 1512C-1 PN
-- X 2
1
2
X (Page 30) X (Page 30)
X X X (Page 47) X X
-- X (Page 70)
X (Page 70) X

1 The number of available counters is dependent on the channel configuration. In order to use four counters, you must choose the use of eight inputs in the channel configuration. If you choose the use of three inputs, you can use one counter. Other channel configurations do not allow any counter use.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

15

The basics of counting, measurement and position input 2.1 Overview of modules and properties

Modules for the ET 200SP system
The following table provides an overview of the performance features of the modules for counting, measuring and position input for the ET 200SP system.

Property

TM Count 1x24V

Number of counters
Use of counters can be activated/deactivated
Maximum signal frequency
Maximum count frequency for incremental encoders with quadruple evaluation (Page 76)
Maximum counting range
Maximum position value range (Page 26)
24 V incremental encoder connection
24 V pulse encoder connection
RS422/TTL incremental and pulse encoder (Page 73) connection
SSI absolute encoder (Page 75) connection
Position input for Motion Control (Page 70)
24 V encoder supply
Number of additional digital inputs per counter
Number of physical digital outputs per counter
Number of logical digital outputs per counter
Software gate
Hardware gate
Capture function (Latch) (Page 34)
Synchronization (Page 39)
Comparison functions
Hysteresis (Page 66)
Frequency, velocity and period duration measurement (Page 58)
Isochronous mode support

1 --
200 kHz 800 kHz
32 bits (Page 24) --
X (Page 71)
X (Page 71) --
--
X
X 3
2
2
X (Page 30) X (Page 30)
X
X X (Page 47)
X X
X (Page 79)

ET 200SP

Technology module

TM PosInput 1 1

TM Timer DIDQ 10x24V
31

--

X

1 MHz 4 MHz

50 kHz 200 kHz

32 bits (Page 24) 32 bits
--
-- X

32 bits (Page 82) --
X (Page 84)
X (Page 84) --

X

--

X

--

X

X

2

--

2

--

2

--

X (Page 30)

--

X (Page 30)

--

X

--

X

--

X (Page 47)

--

X

--

X

--

X (Page 79)

X (Page 85)

Digital input module DI 8x24VDC HS
4 X
10 kHz --
32 bits (Page 87) --
--
X (Page 95) --
--
--
X 1
--
1
X (Page 90) X (Page 90)
--
-- X (Page 92)
-- --
X (Page 96)

Counting, measurement and position detection

16

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.1 Overview of modules and properties

Property
Support for diagnostic interrupts for sensor signals Hardware interrupt support Configurable filter for count signals and digital inputs

TM Count 1x24V X (Page 70)

ET 200SP

Technology module

TM PosInput 1

TM Timer DIDQ 10x24V

X (Page 70)

--

X (Page 70)

X (Page 70)

--

X

X

--

1 One counter for incremental encoder (A, B phase-shifted) and two counters for pulse encoder

Digital input module DI 8x24VDC HS
--
-- X

Modules for the ET 200AL system
The following table provides an overview of the performance features of the modules for counting, measuring and position input for the ET 200AL system.

Property
Number of counters Use of counters can be activated/deactivated Maximum signal frequency Maximum counting range 24 V incremental encoder connection 24 V pulse encoder connection 24 V encoder supply Number of additional digital inputs per counter Number of physical digital outputs per counter Number of logical digital outputs per counter Software gate Hardware gate Capture function (Latch) Synchronization Comparison functions Frequency, velocity and period duration measurement Isochronous mode support Support for diagnostic interrupts for sensor signals Hardware interrupt support Configurable filter digital inputs

ET 200AL Digital input/digital output module
DIQ 16x24VDC/0.5A 8xM12 4 X
2 kHz 32 bits
-- X X 2 1 1 X X -- -- X --
-- X X X

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

17

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2

Basics of counting, measuring and position input (TM Count,

TM PosInput, Compact CPU)

2.2.1

Convention
Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs.

2.2.2

Overview of applications

Introduction

The technology module is configured and assigned parameters using the configuration software.
The operation and control of the technology module functions is effected either via the technology object or through the application program via the control and feedback interface.

Counting, measurement and position detection

18

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

System environment for TM Count and TM PosInput The technology modules can be used in the following system environments:

Application scenarios
Central operation with an S7-1500 CPU or 151xSP CPU

Components required
· S7-1500 automation system or ET 200SP CPU
· Technology module

Configuration software
STEP 7 (TIA Portal):
Operating with "Counting and measurement" technology object
· Device configuration with hardware configuration (Page 175)
· Parameter setting with High_Speed_Counter (Page 97) or SSI_Absolute_Encoder (Page 142) technology object

In the user program
For incremental / pulse encoders:
High_Speed_Counter instruction for the technology object
For SSI absolute encoder:
SSI_Absolute_Encoder instruction for the technology object

STEP 7 (TIA Portal):
Position input for "Motion Control" technology object

Instructions for "Motion Control" technology object

· Device configuration with hardware configuration (Page 175)

· Parameter setting with axis and measuring input technology object (Page 183)

STEP 7 (TIA Portal):
Manual operation (without technology object)
· Device configuration and parameter setting (Page 175) with hardware configuration

Direct access to control and feedback interface of the technology module in the I/O data

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

19

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

Application scenarios
Distributed operation with a S7-1500 CPU

Components required
· S7-1500 automation system
· ET 200 distributed I/O system
· Technology module

Configuration software
STEP 7 (TIA Portal):
Operating with "Counting and measurement" technology object
· Device configuration with hardware configuration (Page 175)
· Parameter setting with High_Speed_Counter (Page 97) or SSI_Absolute_Encoder (Page 142) technology object

In the user program
For incremental / pulse encoders:
High_Speed_Counter instruction for the technology object
For SSI absolute encoder:
SSI_Absolute_Encoder instruction for the technology object

STEP 7 (TIA Portal):
Position input for "Motion Control" technology object

Instructions for "Motion Control" technology object

· Device configuration with hardware configuration (Page 175)

· Parameter setting with axis and measuring input technology object (Page 183)

STEP 7 (TIA Portal):
Manual operation (without technology object)
· Device configuration and parameter setting (Page 175) with hardware configuration

Direct access to control and feedback interface (Page 219) of the technology module in the IO data

Counting, measurement and position detection

20

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

Application scenarios
Distributed operation with an S7-1200 CPU

Components required
· S7-1200 automation system

· ET 200 distributed I/O system

· Technology module

Distributed operation with a · S7-300/400 automation

S7-300/400 CPU

system

· ET 200 distributed I/O system

· Technology module

Distributed operation in a third-party system

· Third-party automation system
· ET 200 distributed I/O system
· Technology module

Configuration software
STEP 7 (TIA Portal):
Device configuration and parameter setting (Page 175) with hardware configuration

In the user program
Direct access to control and feedback interface (Page 219) of the technology module in the IO data

STEP 7 (TIA Portal):
Device configuration and parameter setting (Page 175) with hardware configuration

Direct access to control and feedback interface (Page 219) of the technology module in the IO data

STEP 7:

Device configuration and parameter setting with HSP (up to firmware version V1.2) or GSD file

Third-party configuration software:
Device configuration and parameter settings with GSD file

Direct access to control and feedback interface (Page 219) of the technology module in the IO data

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

21

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

System environment for a Compact CPU The Compact CPUs can be used in the following system environments:

Application scenarios
Central operation with a S7-1500 Compact CPU

Components required
· S7-1500 automation system
· Compact CPU

Configuration software
STEP 7 (TIA Portal):
Operating with "Counting and measurement" technology object

In the user program
High_Speed_Counter instruction for the technology object

· Device configuration with hardware configuration (Page 175)

· Parameter setting with High_Speed_Counter (Page 97) technology object

STEP 7 (TIA Portal):
Position input for "Motion Control" technology object

Instructions for "Motion Control" technology object

· Device configuration with hardware configuration (Page 175)

· Parameter setting with axis and measuring input technology object (Page 183)

STEP 7 (TIA Portal):
Manual operation (without technology object)
· Device configuration and parameter setting (Page 175) with hardware configuration

Direct access to control and feedback interface of the technology module in the I/O data

Parameter assignment options
In an S7-1500 system, you have two options for parameter assignment and control of technology module functions:
 Configuration using the technology object and control using the associated instruction Access to the control and feedback interface of the technology module takes place through the technology object.
 Parameter setting via hardware configuration The control and feedback interface of the technology module is accessed using direct access to the I/O data.

Counting, measurement and position detection

22

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Configuration via technology object For central and distributed use, we recommend the convenient, graphics-assisted configuration using a technology object. A detailed description of this configuration can be found in section High_Speed_Counter technology object (Page 97) or SSI_Absolute_Encodertechnology object (Page 142). You specify the "Operation with technology object "Counting and measuring"" in the device configuration of the technology module: see section Operating mode (Page 181). You can assign the technology module and counting channel in the basic parameters of the technology object: see section Basic parameters (Page 103).
Parameter setting via hardware configuration You specify the "Manual operation (without technology object)" in the device configuration of the technology module: see section Operating mode (Page 181). Additional support for parameter setting via hardware configuration is available in the context-sensitive help for the parameters in STEP 7 (TIA Portal). A description of the control and feedback interface is available in the following sections:  Assignment of the control interface (Page 219)  Assignment of the feedback interface (Page 222)

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

23

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.3

Recording of count signals

2.2.3.1

Counting with incremental or pulse encoder
Counting refers to the recording and adding up of events. The counters of the technology modules capture and evaluate pulse and incremental signals. The count direction can be specified using encoder or pulse signals or through the user program.
You can control counting processes using the digital inputs of the technology module. You can switch the digital outputs exactly at defined counter values, regardless of the user program.
You can configure the response of the counters using the functionalities described below.

Counter limits

The counter limits define the counter value range used. The counter limits are configurable and can be modified during runtime using the user program.
The highest counter limit that can be set is 2147483647 (231­1). The lowest counter limit that can be set is ­2147483648 (­231).
You can configure the response of the counter at the counter limits:
 Continue or stop counting upon violation of a counter limit (automatic gate stop)
 Set counter value to start value or to opposite counter limit upon violation of a counter limit

Start value

You can configure a start value within the counter limits. The start value can be modified during runtime by the user program.
The technology module can, as configured, set the current counter value to the start value upon synchronization, upon Capture function activation, upon violation of a counter limit or when the gate is opened.

Gate control

Opening and closing the hardware gate and software gate defines the period of time during which the counting signals are captured.
The hardware gate is controlled externally via a digital input of the technology module. The software gate is controlled via the user program. The hardware gate can be enabled through parameter assignment. The software gate (bit in the control interface of the cyclic I/O data) cannot be disabled.

Counting, measurement and position detection

24

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

Capture (Latch)
You can configure an external reference signal edge that triggers the saving of the current counter value or position value as a Capture value. The following external signals can trigger the Capture function:
 Rising or falling edge of a digital input
 Both edges of a digital input
 Rising edge of the N signal at the encoder input
When using a digital input, you can specify whether counting is to continue from the current counter value or from the start value after the Capture function. When using the rising edge of the N signal at the encoder input, counting is to continue from the current counter value after the Capture function. The use of a digital input and the use of the N signal are not mutually exclusive for the Capture function.
The parameter "Frequency of the Capture function" determines if the function is executed for each configured edge or only once after each enable.

Measuring input
If you use the position input for Motion Control (Page 70), you can use the "Measuring input" technology object to execute a measuring input function with a hardware digital input.

Synchronization
You can configure an external reference signal edge to load the counter with the specified start value. The following external signals can load the counter with the start value:
 Rising or falling edge of a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input depending on the level of the assigned digital input
The parameter "Frequency of synchronization" determines whether the function is executed for each configured edge or only once after each enable.

Hysteresis

You can specify hysteresis for the comparison values, within which a digital output is prevented from switching again. An encoder can come to a standstill at a specific position, and slight movements may make the counter value fluctuate around this position. If a comparison value or a counting limit lies within this fluctuation range, the corresponding digital output will be switched on and off with corresponding frequency if hysteresis is not used. The hysteresis prevents these unwanted switching operations.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

25

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.3.2

Position input with SSI absolute encoder

Description

You can use the TM PosInput technology modules with an SSI absolute encoder for position detection. The technology module reads the position value via a synchronous serial interface from the SSI absolute encoder and makes it available to the controller.
You can switch the digital outputs of the technology module exactly at defined position values, regardless of the user program. Position input with an SSI absolute encoder does not involve gate control. Due to system constraints, synchronization is not possible with an SSI absolute encoder.

Gray- and dual-code Gray-code and dual-code SSI absolute encoders are supported.

Capture (Latch)
You can configure one or both edges of a digital input that triggers a saving of the current position value as Capture value.
The parameter "Frequency of the Capture function" determines if the function is executed for each configured edge or only once after each enable.

Measuring input
If you use the position input for Motion Control (Page 70), you can use the "Measuring input" technology object to execute a measuring input function with a hardware digital input.

Hysteresis

You can specify hysteresis for the comparison values, within which a digital output is prevented from switching again. An encoder can come to a standstill at a specific position, and slight movements may make the position value fluctuate around this position. If a comparison value or a limit lies within this fluctuation range, the corresponding digital output is switched on and off with corresponding frequency if hysteresis is not used. The hysteresis prevents these unwanted switching operations.

Counting, measurement and position detection

26

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Range for position value
You can specify a frame length of 10 bits to 40 bits for the SSI absolute encoder. The configurable bit numbers of the LSB and the MSB of the position value in the frame define the value range. The technology module can read a position value with a maximum length of 32 bits and communicate it to the controller.
If you use an encoder with a position value length of up to 31 bits, the position value is handled unsigned as a positive value and can assume values between 0 and 2(MSB-LSB+1)-1. If you use an encoder with a position value length of 32 bits, the MSB of the position value corresponds to the sign and the position value can assume values between ­2147483648 and 2147483647. If you use a 32 bit position value for the comparison function, the position value is interpreted as DINT.
Complete SSI frame
Instead of having a measured variable returned, you can choose to have the least significant 32 bits of the current unprocessed SSI frame returned. This provides you with encoderspecific additional bits, such as error bits, in addition to the position value. If the SSI frame is shorter than 32 bits, the complete SSI frame is returned right-aligned and the top unused bits are returned with "0" in the feedback interface.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

27

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.4

Behavior at the counting limits

Violation of a counting limit
The high counting limit is violated when the current counter value is equal to the high counting limit and another upward count pulse is received. The counter low limit is violated when the current counter value is equal to the counter low limit and another downward count pulse is received.
The appropriate status bit is set in the feedback interface in the event of limit violation:

Counting limit violated High counting limit Low counting limit

Status bit EVENT_OFLW is set EVENT_UFLW is set

You can reset the status bits with RES_EVENT .

You can configure whether or not and from which counter value counting is to continue following counting limit violation.

Note The high counting limit and the start value define the value range of the counter: Value range of the counter = (high limit ­ start value) + 1

Examples

The figure below shows an example for terminating the counting process (automatic gate stop) after an overflow and setting the counter to the start value:

Counting, measurement and position detection

28

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) The figure below shows an example for continuing the counting process after an overflow and setting the counter to the start value:
The figure below shows an example for terminating counting after an overflow and setting the counter to the opposite counting limit:
The figure below shows an example for continuing the counting process after an overflow and setting the counter to the opposite counting limit:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

29

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.5

Gate control with incremental or pulse encoder
Many applications require counting processes to be started or stopped in accordance with other events. In such cases, counting is started and stopped using the gate function.
The technology modules have two gates for each channel. These define the resulting internal gate:
 Software gate
 Hardware gate

2.2.5.1

Software gate
The software gate of the channel is opened and closed with the control bit (Page 219) SW_GATE. The status of the software gate is indicated by the feedback bit (Page 222) STS_SW_GATE .

2.2.5.2

Hardware gate The hardware gate is optional. You open and close the hardware gate by means of signals at the configured digital inputs of the channel.
Note The configured input filters delay the control signal of the digital input.
The status of a DIm digital input is indicated by the respective feedback bit (Page 222) STS_DIm .

Level-triggered opening and closing of the hardware gate with a digital input
The figure below shows an example of level-triggered opening and closing with a digital input. The digital input is configured to be active with high level:

As long as the digital input is active, the hardware gate is open and the count pulses are counted. The hardware gate is closed when the digital input becomes inactive. The counter value stays constant and ignores any further count pulses.

Counting, measurement and position detection

30

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Edge-triggered opening and closing of the hardware gate with two digital inputs The figure below shows an example of opening and closing with two digital inputs. The two digital inputs are configured so that the rising edge is evaluated:
The hardware gate is opened with the configured edge at the digital input that is configured for opening. The hardware gate is closed with the configured edge at the digital input that is configured for closing.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

31

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.5.3

Internal gate

Internal gate

The internal gate is open if the software gate is open and the hardware gate is open or has not been configured. The status of the internal gate is indicated by the feedback bit (Page 222) STS_GATE.
If the internal gate is open, counting is started. If the internal gate is closed, all other count pulses are ignored and counting is stopped.
If you want to control a counting process with the hardware gate only, the software gate must be open. If you do not configure a hardware gate, the hardware gate is considered to be always open. In this case, you open and close the internal gate with the software gate only.

Hardware gate Open/not configured Open/not configured closed closed

Software gate open closed open closed

Internal gate open closed closed closed

When you configure the counter behavior, you can specify whether the counting process is to start from the start value or from the current counter value when the internal gate is opened.

The internal gate can also be automatically closed upon violation of a counting limit. The software or hardware gate must then be closed and reopened to continue counting.

Counting, measurement and position detection

32

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.5.4

Counter behavior at gate start You have the following configuration options for counter behavior upon gate start:  Setting counter to start value  Continuing with the current counter value

Setting counter to start value Counter behavior is as follows for this configuration:
Each counting process starts with the start value when the internal gate is opened.
The figure below shows an example for continuing the counting process after counter is set to the start value:

Continuing with the current counter value
Counter behavior is as follows for this configuration:
Each counting process starts from the current counter value after the internal gate is reopened.
The figure below shows an example for continuing the counting process with the current counter value:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

33

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.6

Capture (Latch)

2.2.6.1

Capture with incremental or pulse encoder

Description

The "Capture" function is used to save the current counter value with an external reference signal. You can configure the Capture function for the following reference signals:  Rising or falling edge at a digital input  Rising and falling edge at a digital input  Rising edge of signal N at the encoder input

Function principle
The Capture value is always the exact counter value at the time of the respective edge (delayed by the configured input filter time). The Capture function is effective regardless of the status of the internal gate. The unchanged counter value is saved when the gate is closed.
The figure below shows an example of the Capture function with the following configuration:
 Start value = 0
 Capture event upon rising edge at configured digital input
 Set counter to start value at gate start
 Continue counting after Capture event

Counting, measurement and position detection

34

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows another example of the Capture function with the following configuration:  Start value = 0  Capture event upon rising edge at configured digital input  Set counter to start value at gate start  Reset counter value to start value after Capture event and continue counting.
The control bit (Page 219) EN_CAPTURE is used to enable the Capture function. The feedback bit (Page 222) EVENT_CAP indicates that a counter value has been saved as a Capture in the feedback interface. If you reset EN_CAPTURE, EVENT_CAP is also reset. The status of a digital input is indicated by the respective feedback bit (Page 222) STS_DIm . The figure below shows an example of the EN_CAPTURE and EVENT_CAP bits with use of the one-time Capture function by the rising edge at a digital input:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

35

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows an example of the EN_CAPTURE and EVENT_CAP bits with use of the periodic Capture function by the rising edge at a digital input:
Note The configured input filters delay the control signal of the corresponding digital input. The Capture function has no effect on the feedback bit STS_CNT and the LEDs UP and DN.
Hardware interrupt You can configure a hardware interrupt for the Capture function. If the hardware interrupts are triggered more quickly by the system than they can be acknowledged, hardware interrupts are lost and the "Hardware interrupt" diagnostics interrupt is signaled.

Counting, measurement and position detection

36

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.6.2

Capture with SSI absolute encoder

Description

The "Capture" function is used to save the current position value using an external reference signal. You can configure the Capture function for the following reference signals:
 Rising or falling edge at a digital input
 Rising and falling edge at a digital input

Function principle
At the time of each edge, the position value of the last valid SSI frame is stored in the Capture value.
The figure below shows an example of the Capture event by a rising edge at the configured digital input:

The control bit (Page 219) EN_CAPTURE is used to enable the Capture function. The feedback bit (Page 222) EVENT_CAP indicates that a position value has been saved as Capture value in the feedback interface. If you reset EN_CAPTURE, EVENT_CAP is also reset. The status of a digital input is indicated by the respective feedback bit (Page 222) STS_DIm .
The figure below shows an example of the EN_CAPTURE and EVENT_CAP bits with use of the one-time Capture function by the rising edge at a digital input:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

37

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows an example of the EN_CAPTURE and EVENT_CAP bits with use of the periodic Capture function by the rising edge at a digital input:
Note The configured input filters delay the control signal of the corresponding digital input. Hardware interrupt You can configure a hardware interrupt for the Capture function. If the hardware interrupts are triggered more quickly by the system than they can be acknowledged, hardware interrupts are lost and the "Hardware interrupt" diagnostics interrupt is signaled.

Counting, measurement and position detection

38

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.7

Synchronization

Description

You use the "Synchronization" function to set the counter to the pre-defined start value with an external reference signal. You can configure synchronization for the following reference signals:
 Rising or falling edges at a digital input
 Rising edge of signal N at the encoder input
 Rising edge of signal N at the encoder input defined by the level of a digital input

Function principle
Synchronization always takes place exactly at the time of the reference signal. Synchronization is effective regardless of the status of the internal gate.
You use the control bit (Page 219) EN_SYNC_UP to enable synchronization for counting in an upwards direction. Use the control bit (Page 219) EN_SYNC_DN to enable synchronization for counting down. The feedback bit (Page 222) EVENT_SYNC indicates that synchronization has been performed. Resetting EN_SYNC_UP or EN_SYNC_DN also resets EVENT_SYNC.
Note
The configured input filters delay the control signal of the corresponding digital input.
Synchronization has no effect on the feedback bit (Page 222) STS_CNT and the LEDs UP and DN.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

39

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Single synchronization
The figure below shows an example of the EN_SYNC_UP, EN_SYNC_DNand EVENT_SYNC bits with single synchronization by an edge at a digital input for count pulses in an upwards direction:
After synchronization is enabled for counting in an upwards direction, the counter is synchronized at the first rising edge at the configured digital input. The counter can only be synchronized again once the control bit (Page 219) EN_SYNC_UP has been reset and set again.

Counting, measurement and position detection

40

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example of the EN_SYNC_UP, EN_SYNC_DN and EVENT_SYNC bits with periodic synchronization by an edge at a digital input for count pulses in an upwards direction:
As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each rising edge at the configured digital input. Hardware interrupt You can configure a hardware interrupt for the synchronization. If the hardware interrupts are triggered more quickly by the system than they can be acknowledged, hardware interrupts are lost and the "Hardware interrupt" diagnostics interrupt is signaled.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

41

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.7.1

Synchronization by digital input You can trigger synchronization by edges at a digital input.

Single synchronization The figure below shows an example for single synchronization by an edge at a digital input:

After synchronization is enabled for counting in an upwards direction, the counter is synchronized at the first rising edge at the configured digital input. Until the control bit (Page 219) EN_SYNC_UP has been reset and set again, any additional rising edge at the digital output is ignored. The counter can then be synchronized again.

Counting, measurement and position detection

42

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example for periodic synchronization by an edge at a digital input:
As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each rising edge at the configured digital input.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

43

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.7.2

Synchronization at signal N
You can trigger synchronization at signal N at the encoder input either directly or depending on the status of a digital input.

Single synchronization
The figure below shows an example of single synchronization at signal N (not dependent on a digital input):

After synchronization is enabled for counting in an upwards direction, the counter is synchronized at the first signal N. After resetting and setting the control bit (Page 219) EN_SYNC_UP once again, the counter can be synchronized again.

Counting, measurement and position detection

44

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Periodic synchronization The figure below shows an example for periodic synchronization at signal N:
As long as synchronization for counting in an upwards direction is enabled, the counter is synchronized at each signal N.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

45

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Enable by a digital input The figure below shows an example for periodic synchronization at signal N depending on the status of a digital input:

As long as synchronization for counting up is enabled and the corresponding digital input is active, the counter is synchronized at each signal N. If one of the conditions is not met, the counter is not synchronized at the signal N.

Counting, measurement and position detection

46

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.8

Comparison values

2.2.8.1

Comparison values and outputs

Description

You can specify two comparison values to control both digital outputs of the channel independently of the user program:
 Comparison value 0 for digital output DQ0
 Comparison value 1 for digital output DQ1
Depending on the operating mode and the encoder used, define two position, counter or measured values as comparison value. The comparison values are configurable and can be modified during runtime using the user program.
Note DQ0 of a counter of a Compact CPU
With a Compact CPU, the respective digital output DQ0 is available via the feedback interface, but not as a physical output.

Switching digital outputs from the user program
The control bits (Page 219) TM_CTRL_DQ0 and TM_CTRL_DQ1 are used to control use of the digital outputs.
If TM_CTRL_DQm is set to 0, you can control the relevant digital output from the user program with the control bit SET_DQm regardless of the configured technological function. If TM_CTRL_DQm is set to 1, the technological function of the controller of the respective digital output is enabled.
The status of a digital output is indicated by the respective STS_DQm feedback bit.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

47

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.8.2

Switching at comparison values with counter value as reference
The comparison values are compared with the current counter value. If the counter value meets the assigned comparison condition and the technological function of the associated digital output is enabled, the digital output is set. If you assign "Between comparison value 0 and 1" for digital output DQ1, both comparison values affect DQ1.
You can make switching for a digital output dependent on one of the following comparison events:

Setting between comparison value and high counting limit The digital output is set to 1 if: Comparison value <= counter value <= high counting limit

The comparison event is independent of the count direction.
Setting between comparison value and low limit The digital output is set to 1 if: Low counting limit <= counter value <= comparison value

The comparison event is independent of the count direction.

Counting, measurement and position detection

48

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Setting between comparison value 0 and comparison value 1 The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0. Comparison value 1 must be greater than Comparison value 0. DQ1 is set to 1 if: Comparison value 0 <= counter value <= comparison value 1 The figure below shows an example of the comparison event when counting in an upwards direction:
Setting at comparison value for one pulse duration The respective digital output is set to 1 for a specified period of time when the following conditions are fulfilled:  Counter value = comparison value  Current count direction = configured count direction for the comparison event The figure below shows an example of the comparison event when counting in an upwards direction:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

49

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows an example of the comparison event when counting in a downward direction:
To repeat the comparison event, the counter value must change and then correspond to the respective comparison value again. If the pulse duration has been defined as "0" and the counter value is equal to the comparison value, the digital output is set to 1 until the next count pulse:
Note This comparison event switches the relevant digital output if a count pulse reaches the comparison value. The digital output does not switch when the counter value is set, by synchronization for example.

Counting, measurement and position detection

50

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Setting by the user program up to comparison value You can set the respective digital output to 1 (edge) by setting the control bit (Page 219) SET_DQm. The respective digital output is set to 0 by any of the following events:  Match of the counter value and the comparison value in the configured direction of the comparison event  Reset of the corresponding SET_DQm control bit. The figure below shows an example of the comparison event when counting in an upwards direction:

You can disable the digital output before the counter value reaches the comparison value by setting the control bit SET_DQm to 0.
Note
If the comparison value is reached in the configured count direction, the feedback bit EVENT_CMPm is set independently of the state of the control bit SET_DQm.
The comparison event switches a digital output when a count pulse reaches the respective comparison value. The digital output does not switch when the counter value is set, by synchronization for example.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

51

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.8.3

Switching at comparison values with position value (SSI absolute value) as reference
The comparison values are compared with the current position value. If the position value meets the assigned comparison condition and the technological function of the associated digital output is enabled, the digital output is set. If you assign "Between comparison value 0 and 1" for digital output DQ1, both comparison values affect DQ1.
If you use a 32 bit position value for the comparison function, the position value is interpreted as DINT.
You can make switching for a digital output dependent on one of the following comparison events:

Setting between comparison value and high limit The high limit corresponds to the maximum position value. The digital output is set to 1 if: Comparison value <= position value <= maximum position value

The comparison event is independent of the direction of the position value change. The maximum position value depends on the resolution of the SSI absolute encoder.

Counting, measurement and position detection

52

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting between comparison value and low limit The low limit corresponds to the position value "0". The digital output is set to 1 if: 0 <= position value <= comparison value
The comparison event is independent of the direction of the position value change. Setting between comparison value 0 and comparison value 1
The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0. Comparison value 1 must be greater than Comparison value 0. DQ1 is set to 1 if: Comparison value 0 <= position value <= comparison value 1 The figure below shows an example of the comparison event when counting up:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

53

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting at comparison value for one pulse duration
The respective digital output is set to 1 for a specified period of time when the following conditions are fulfilled:  Matching of the position value and comparison value or crossing of the comparison value  Current direction of the position value change = assigned direction for the comparison
event The figure below shows an example of the comparison event when counting up:
The figure below shows an example of the comparison event when counting down:

To repeat the comparison event, the position value must change and then correspond to or cross the respective comparison value again.

Counting, measurement and position detection

54

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting by the user program up to comparison value You can set each digital output to 1 (edge) by setting the control bit (Page 219) SET_DQm. The respective digital output is set to 0 by any of the following events:  Matching of the position value and the comparison value or crossing of the comparison
value in the configured direction of the comparison event  Resetting of the SET_DQm control bit. The figure below shows an example of the comparison event when counting up:
You can disable the digital output before the position value corresponds to or exceeds the comparison value by setting the control bit SET_DQm to 0. Note If the comparison value is reached or exceeded in the assigned direction, feedback bit EVENT_CMPm is set independently of the status of control bit SET_DQm.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

55

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.8.4

Switching at comparison values with measured value as reference
The comparison values are compared with the current measured value. If the measured value meets the configured comparison condition and the technological function of the corresponding digital output is enabled, the digital output is set. If you configure "Between comparison value 0 and 1" or "Not between comparison value 0 and 1" for digital output DQ1, both comparison values affect DQ1.
You can make switching for a digital output dependent on one of the following comparison events:

Setting above the comparison value The digital output is set to 1 if: Measured value >= comparison value

Setting below the comparison value The digital output is set to 1 if: Measured value <= comparison value

Counting, measurement and position detection

56

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU) Setting between comparison value 0 and comparison value 1 The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0. Comparison value 1 must be greater than Comparison value 0. DQ1 is set to 1 if: Comparison value 0 <= measured value <= comparison value 1
Not setting between comparison value 0 and comparison value 1 The comparison event can be configured for the digital output DQ1 if "Use by user program" has been configured for the digital output DQ0. Comparison value 1 must be greater than Comparison value 0. DQ1 is set to 1 if: Comparison value 1 <= measured value <= comparison value 0

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

57

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.9

Measured value determination

2.2.9.1

Overview of measuring functions The following highly accurate measuring functions are available (accuracy up to 100 ppm):

Measurement type (Page 59) Frequency measurement
Period measurement
Velocity measurement

Description
The mean frequency is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and returned in Hertz as floating point number.
The mean period duration is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and returned in seconds as floating point number.
The mean velocity is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and other parameters, and returned in the configured unit of measurement.

Measured values and counter values are available concurrently in the feedback interface.

Update time

You can configure the interval at which the technology module updates the measured values cyclically as the update time. Setting longer update time intervals allows uneven measured variables to be smoothed and increases measuring accuracy.

Gate control for incremental and pulse encoders
Opening and closing the internal gate defines the period of time during which the count pulses are captured. The update time is asynchronous to the opening of the gate, which means that the update time is not started when the gate is opened. After the internal gate is closed, the last measured value captured is still returned.

Counting, measurement and position detection

58

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.9.2

Measured value determination with incremental or pulse encoder

Measuring range (TM Count and TM PosInput) The measuring functions have the following measuring limits:

Measurement type Frequency measurement Period measurement Velocity measurement

Low measuring range limit

High measuring range limit

0.04 Hz

800 kHz* / 4 MHz**

1.25 µs* / 0.25 µs**

25 s

Depending on the configured number of "increments per unit" and the "time base for velocity measurement"

* Applies to 24 V incremental encoders and "quadruple" signal evaluation. ** Applies to RS422 incremental encoders and "quadruple" signal evaluation.

All measured values are returned as signed values. The sign indicates whether the counter value increased or decreased during the relevant time period.

Measuring range (Compact CPU) The measuring functions have the following measuring range limits:

Measurement type Frequency measurement Period measurement Velocity measurement

Low measuring range limit

High measuring range limit

0.04 Hz

400 kHz*

2.5 µs*

25 s

Depends on the configured number of "Increments per unit" and the "Time base for velocity measurement"

* Applies to 24 V incremental encoders and "quadruple" signal evaluation.

All measured values are returned as signed values. The sign indicates whether the counter value increased or decreased during the relevant time period.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

59

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Measuring principle
The technology module assigns a time value to each count pulse. The measuring interval is defined as the time between each last count pulse before and during the previous update time. The measuring interval and the number of pulses in the measuring interval are evaluated to calculate measured variables.
If there is no count pulse within an update time, the measuring interval is dynamically adjusted. In this case, a pulse is assumed at the end of the update time and the measuring interval is calculated as the time between that point and the last pulse which occurred. The number of pulses is then 1.
The feedback bit STS_M_INTERVAL indicates whether a count pulse occurred in the previous measuring interval. This allows for a differentiation between an assumed and an actual count pulse.
The following figures show the principle of measurement and the dynamic adjustment of the measuring interval:

Counting, measurement and position detection

60

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Frequency measurement A value "0" is returned until the first measured value is available. The measurement process begins with the first pulse detected once the internal gate has been opened. The first measured value can be calculated after the second pulse at the earliest. The measured value is updated in the feedback interface (Page 222) upon completion of each update time. If the internal gate is closed, measuring stops and the measured value is no longer updated. The figures below shows an example of frequency measurement with an update time of 1 s:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

61

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Period measurement The reciprocal of the frequency is output as the measured value for period measurement. A value "25 s" is returned until the first measured value is available.
Velocity measurement The normalized frequency is output as the measured value in velocity measurement. You can configure the scaling using the time basis and the number of increments that your encoder delivers per unit. Example: Your encoder delivers 4000 increments per meter. The velocity is to be measured in meters per minute. In this case, you need to configure 4000 Increments per unit and a time basis of one minute.

Counting, measurement and position detection

62

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.9.3

Measured value determination with SSI absolute encoder

Measuring range SSI absolute encoder The measuring functions have the following measuring limits:

Measurement type Frequency measurement Period measurement Velocity measurement

Low measuring range limit

High measuring range limit

0,04 Hz

4 MHz

0,25 s

25 s

Depending on the configured number of "increments per unit" and the "time base for velocity measurement"

All measured values are returned as signed values. The sign indicates whether the position value increased or decreased during the relevant time period.

Measuring principle
The technology module assigns a time value to each SSI frame. The measuring interval is defined as the time between the last SSI frame with a change of position value before and during the previous update time. The measuring interval and the total change in position value in the measuring interval are evaluated to calculate a measured variable. The total change in position value in a measuring interval corresponds to the number of encoder increments in the same measuring interval.
If there is no change in position value within an update time, the measuring interval is dynamically adjusted. In this case, a change in position value is assumed at the end of the update time and the measuring interval is calculated as the time between that point and the last SSI frame with a change in position value. The change in position value is then 1.
The feedback bit STS_M_INTERVAL indicates whether a change in position value occurred in the previous measuring interval. This allows for a differentiation between an assumed and an actual change in position value. If the technology module cannot calculate measured values because the measuring range limit has been violated, the feedback bit STS_M_INTERVAL is not set.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

63

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Frequency measurement The value "0.0" is reported in the time up to the first available measured value. The measuring process begins with the first detected change in position value. The first measured value can be calculated after the second detected change in position value at the earliest. The measured value is updated in the feedback interface (Page 222) upon completion of each update time. The figures below shows an example of frequency measurement with an update time of 1 s:

Period measurement The reciprocal of the frequency is output as the measured value for period measurement. A value "25 s" is returned until the first measured value is available.

Counting, measurement and position detection

64

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Velocity measurement The normalized frequency is output as the measured value in velocity measurement. You can configure the scaling using the time basis and the number of increments that your encoder delivers per unit. Example: Your SSI absolute encoder operates with a resolution of 12 bits per revolution and performs 4096 increments per revolution. The velocity should be measured in revolutions per minute. In this case, you need to configure 4096 Increments per unit and a time basis of one minute.
Note Excessive encoder speed can provide wrong direction of rotation. If an SSI absolute encoder rotates so quickly that more than half of the value range is covered within one module cycle1, the velocity and direction of rotation can not be determined correctly anymore. This can result in an incorrect function at: · DQ functions · Feedback bits EVENT_OFLW, EVENT_UFLW, EVENT_ZERO, EVENT_CMP0,
EVENT_CMP1 and STS_DIR
1 Non isochronous mode: 500 s; isochronous mode: PROFINET cycle time
Note If you are using an SSI absolute encoder whose value range does not correspond to the power of 2, the calculated speed measured value may be incorrect at the moment of the overflow.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

65

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.10

Hysteresis

2.2.10.1

Hysteresis with incremental or pulse encoder

Description

Hysteresis allows you to specify a range around the comparison values within which the digital outputs are not to be switched again until the counter value has gone outside this range.
Slight movements by the encoder can result in the counter value fluctuating around a certain value. If a comparison value or a counting limit lies within this fluctuation range, the corresponding digital output is switched on and off with corresponding frequency if hysteresis is not used. Hysteresis prevents this unwanted switching, and configured hardware interrupts when a comparison event occurs.
The hysteresis becomes active when the respective comparison value is reached by a count pulse. If the counter value is set to the start value during an active hysteresis, the hysteresis becomes inactive.
Regardless of the hysteresis value, the hysteresis range ends at the low/high counting limits.

Function principle The figure below shows an example for the hysteresis with the following configuration:  Setting of a digital output between comparison value and high counting limit  Comparison value = 5  Hysteresis = 0 or 2 (gray background)

Hysteresis is enabled when the counter value 5 is reached. When the hysteresis is active, the comparison result remains unchanged. Hysteresis is disabled when the counter value 2 or 8 is reached.

Counting, measurement and position detection

66

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows an example for the hysteresis with the following configuration:  Setting at comparison value for one pulse duration  Comparison value = 5  Comparison in both count directions  Hysteresis = 0 or 2 (gray background)

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

67

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.10.2

Hysteresis with SSI absolute encoder

Description

Hysteresis allows you to specify a range around the comparison values within which the digital outputs are not to be switched again until the position value has gone outside this range.
Slight movements by the encoder can result in the position value fluctuating around a certain value. If a comparison value, the minimum or maximum position value, lies within the fluctuation range, the associated digital output is switched on and off if a hysteresis is not used. Hysteresis prevents this unwanted switching, and configured hardware interrupts when a compare event occurs.
Regardless of the hysteresis value, the hysteresis range ends at the respective minimum or maximum position value.

Function principle The figure below shows an example for the hysteresis with the following parameter assignment:  Setting of a digital output between comparison value and high limit  Comparison value = 10  Hysteresis = 0 or 2 (gray background)

Hysteresis is enabled when the position value 10 is reached. When the hysteresis is active, the comparison result remains unchanged. Hysteresis is disabled when the position values 7 or 13 are reached.

Counting, measurement and position detection

68

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The figure below shows an example for the hysteresis with the following parameter assignment:  Setting at comparison value for one pulse duration  Comparison value = 10  Comparison in both directions of position value changes  Hysteresis = 0 or 2 (gray background)

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

69

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.11

Interrupts

Hardware interrupt
The technology module can trigger a hardware interrupt in the CPU if, for example, a comparison event occurs; in the event of overflow or underflow; in the event of a zero crossing of the counter and/or of a change in count direction (direction reversal). You can specify which events are to trigger a hardware interrupt during operation.

Diagnostic interrupt
The technology module can trigger diagnostic interrupts in the event of errors. You enable the diagnostic interrupts for certain errors in the device configuration. Refer to the device manual for the technology module to learn about the events that can trigger a diagnostic interrupt during operation.

2.2.12

Position detection for Motion Control

Description

You can use the technology module for example with an incremental encoder for the following axis technology objects of S7-1500 Motion Control for position detection :
 TO_PositioningAxis
 TO_SynchronousAxis
 TO_ExternalEncoder
When using an incremental or pulse encoder, the position detection is based on the counting function of the technology module. With an SSI absolute encoder, the absolute value is read in via a synchronous, serial interface and prepared according to the parameter assignment and made available for S7-1500 Motion Control.
The range of functions of the technology module has the following limitations in this case:
 Counter behavior not configurable
 No functions for digital inputs available apart from measuring input function
 No comparison functions for digital outputs available
 No hardware interrupts available
In the device configuration of the technology module in STEP 7 (TIA Portal), select the "Position input for technology object "Motion Control"" operating mode and use the corresponding technology object in the program. This reduces the configuration options to the parameters that are essential. For TM Count or TM PosInput, the mode automatically applies to all channels of the technology module. For a Compact CPU, the mode automatically applies to the respective channel.
In this operating mode you can use the (TO_MeasuringInput) measuring input technology object to execute a measuring input function with a hardware digital input. To do this select the measuring input type "Measuring via PROFIdrive telegram" in the measuring input technology object and the value "1" as the number of the measuring input.
You can find information about further configuring in the help for the axis technology objects and the measuring input technology object of S7-1500 Motion Control.

Counting, measurement and position detection

70

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.13

Encoder signals

2.2.13.1

24 V and TTL count signals

24 V and TTL incremental encoder count signals
The 24 V incremental encoder returns the 24 V signals A, B, and N to the technology module. The A and B signals are phase-shifted by 90°. You can also connect incremental encoders without an N signal.
A 24 V incremental encoder uses the A and B signals for counting. If configured accordingly, the N signal is used for setting the counter to the start value or for saving the current counter value to the Capture value.
The figure below shows an example of the time profile of the signals of an 24 V incremental encoder:

The technology module detects the count direction by evaluating the sequence of edges of the A and B signals. You can specify an inversion of the count direction.
24 V and TTL pulse encoder count signals without/with direction signal
The encoder, for example an initiator (BERO) or a light barrier, returns only a count signal that is connected to terminal A of the counter.
In addition, you can connect a signal for direction detection to terminal B of the counter. In case of a high level the direction signal is counted backwards. If your encoder does not return a corresponding signal, you can specify the count direction with the user program using the control interface.
The figure below shows an example of the time profile of the signals of a 24 V pulse encoder with direction signal and the resulting count pulses:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

71

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
24 V and TTL pulse encoder count signals with Up/Down count signal The Up count signal is connected to terminal A. The Down count signal is connected to terminal B. The figure below shows an example of the time profile of the signals of a pulse encoder with Up/Down count signal and the resulting count pulses:
Sourcing output/sinking output for 24 V counter signals (TM Count) You can connect the following encoders/sensors to the counter inputs:  Sourcing output: The A, B, and N inputs are wired to 24VDC .  Sinking output: The A, B, and N inputs are wired to ground M .  Push-pull (sourcing and sinking output): The A, B, and N inputs are wired alternately to 24VDC and ground M .
Sourcing output for 24 V counter signals (Compact CPU) You can connect the sourcing output and push-pull encoders or sensors to the counter inputs.
Monitoring of the encoder signals (TM Count and TM PosInput) The signals of push-pull 24 V encoders are monitored for wire breaks by the technology module. TTL signals are monitored by the technology module for faulty supply voltages. If you enable the diagnostic interrupt in the device configuration, the technology module triggers a diagnostic interrupt in the event of encoder signal errors.

Counting, measurement and position detection

72

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.13.2

RS422 count signals

RS422 incremental encoder count signals
The RS422 incremental encoder sends the following differential signals to the technology module:
 +A and -A
 +B and -B
 +N and -N
The signal information for RS422 signals is encoded in the differential voltage between A and -A, B and -B, and +N and -N. The A and B signals are phase-shifted by 90°. You can also connect incremental encoders without an N signal.
RS422 incremental encoders use the A and B signals for counting. If configured accordingly, the N signal is used for setting the counter to the start value or for saving the current counter value as the Capture value.
The figure below shows an example of the time profile of the signals of an RS422 incremental encoder:

The technology module detects the count direction by evaluating the sequence of edges of the A and B signals. You can specify an inversion of the count direction.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

73

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Count signals of RS422 pulse encoders without/with direction signal The encoder, for example a light barrier, only returns a count signal that is connected to terminal A. You can also connect a signal for direction detection to terminal B. In case of a high level the direction signal is counted backwards. If your encoder does not return a corresponding signal, you can specify the count direction with the user program using the control interface. The figure below shows an example of the time profile of the signals of a RS422 pulse encoder with direction signal and the resulting count pulses:
Count signals of RS422 pulse encoders with Up/Down count signal The Up count signal is connected to the A terminals. The Down count signal is connected to the B terminals. The figure below shows an example of the time profile of the signals of an RS422 pulse encoder with Up/Down count signal and the resulting count pulses:

Monitoring of encoder signals
RS422 signals are monitored by the technology module for wire breaks, short-circuits, and incorrect supply voltage.
If you enable the diagnostic interrupt in the device configuration, the technology module triggers a diagnostic interrupt in the event of encoder signal errors.

Counting, measurement and position detection

74

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.13.3

SSI signals

Signals from SSI absolute encoders
The SSI absolute encoder and the technology module communicate by means of the SSI data signals +D and -D and the SSI clock signals +C and -C. SSI uses the RS422 signal standard. The signal information is coded in the respective differential voltage between +C and -C as well as +D and -D.

Monitoring of the encoder signals and the SSI frames
The signals of an SSI absolute encoder are monitored for wire breaks, short-circuits and incorrect supply voltage. The technology module also monitors the SSI frames for errors.
If you enable the diagnostic interrupts in the device configuration, the technology module triggers a diagnostic interrupt in the event of encoder signal or SSI frame errors.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

75

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.14

Signal evaluation of incremental signals

2.2.14.1

Overview The technology module counter counts the edges of encoder signals A and B. For incremental encoders with phase-shifted signals A and B, you can select either single or multiple evaluation to improve the resolution. You can configure the following signal evaluations:  Single evaluation (Page 76)  Double evaluation (Page 77)  Quadruple evaluation (Page 78)
Note The phase offset between the edges of signals A and B is evaluated. If no phase shift is identifiable, an encoder error (invalid transition of A/B signals) is reported via the ENC_ERROR feedback bit.

2.2.14.2

Single evaluation
Single evaluation evaluates the rising and falling edge at signal A when signal B has a low level.
Count pulses in an upwards direction are generated with a rising edge at signal A during a low level at signal B. Count pulses in a downwards direction are generated with a falling edge at signal A during a low level of signal B.
The following figure shows an example for single evaluation of 24 V and TTL count signals:

Counting, measurement and position detection

76

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
The following figure shows an example for single evaluation of RS422 count signals:

2.2.14.3

Double evaluation With double evaluation, the rising and falling edges of signal A are evaluated.
The edge direction of signal A and the level at signal B determines whether count pulses are generated in an upward or downward direction.
The following figure shows an example for double evaluation of 24 V and TTL count signals:

The following figure shows an example for double evaluation of RS422 count signals:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

77

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.14.4

Quadruple evaluation With quadruple evaluation, the rising and falling edges of signals A and B are evaluated.
The edge direction of one signal and the level of the other signal determines whether count pulses are generated in an upward or downward direction.
The figure below shows an example for quadruple evaluation of 24 V and TTL count signals:

The figure below shows an example for quadruple evaluation of RS422 count signals:

Counting, measurement and position detection

78

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)

2.2.15

Clock synchronization (TM Count and TM PosInput)
The technology module supports the system function "Isochronous mode". This system function enables position, count and measured values to be recorded in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input and output data and the processing in the module are synchronized with each other. The output signals switch immediately if the relevant comparison condition is met. A change in the state of a digital input immediately affects the planned reaction of the technology module and changes the status bit of the digital input in the feedback interface.
In the case of operation with a "Counting and measurement" technology object use an OB of the type "Synchronous Cycle" (for example OB61). In the assigned OB the instruction High_Speed_Counter or SSI_Absolute_Encoder is called.
For position detection of a "Motion Control" technology object use the OB of the type "MCServo". When using the technology objects cam and cam track, isochronous mode is required. When using the measuring input technology object in connection with the hardware digital input DI1, no isochronous mode is required.
In case of manual operation use an OB of the "Synchronous Cycle" type (for example OB61). In the assigned OB the input and output data is processed.

Data processing
The data that was transmitted to the technology module in the current bus cycle via the control interface takes effect when it is processed in the internal technology module cycle. At the moment when the input data (Ti) are read, the position and counter value and, if appropriate, the measured value as well as status bits are detected and made available in the feedback interface for retrieval in the current bus cycle.
The update time for the measured value is synchronized in a suitable relationship to the system cycle and, if required, adapted in length. If you configure "0", the measured value is updated once per system cycle.

Isochronous mode parameter
In isochronous mode, the following parameters can have an effect on the isochronous parameters of the Sync domain.
 Filter frequency
 Frame length1
 Transmission rate1
 Monoflop time1
 Parity1
1 Only when using an SSI absolute encoder
Because the isochronous parameters are not checked in RUN, overflows can occur when you change one or more of the named parameters in RUN: You prevent overflows by already selecting the option with the greatest time demand during the offline parameter assignment.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

79

The basics of counting, measurement and position input 2.2 Basics of counting, measuring and position input (TM Count, TM PosInput, Compact CPU)
Additional information For a detailed description of the isochronous mode refer to:  The isochronous mode function manual available as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401).  The PROFINET with STEP 7 function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Counting, measurement and position detection

80

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.3 Basics of counting (TM Timer DIDQ)

2.3

Basics of counting (TM Timer DIDQ)

2.3.1

Overview of applications

Introduction

You configure the TM Timer DIDQ and assign its parameters with the configuration software.
The module's functions are controlled and monitored via the user program with the control and feedback interface.

System environment
The respective module can be used in the following system environments with its counter functions:

Applications Central operation with an S7-1500 CPU or 151xSP CPU
Distributed operation with a S7-1500 CPU
Distributed operation with a S7-300/400 CPU

Components required
· S7-1500 automation system or ET 200SP CPU
· TM Timer DIDQ
· S7-1500 Automation System
· ET 200 Distributed I/O System
· TM Timer DIDQ
· S7-300/400 automation system
· ET 200 distributed I/O system
· TM Timer DIDQ

Configuration software
STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration

In the user program
Direct access to feedback interface of the technology module in the I/O data

STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration
STEP 7:
Device configuration and parameter setting with hardware configuration (only ET 200SP)

Note
A description of the control and feedback interface is available in the device manual for the TM Timer DIDQ.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

81

The basics of counting, measurement and position input 2.3 Basics of counting (TM Timer DIDQ)

2.3.2

Counting with incremental encoder
You can use a few channels of a TM Timer DIDQ for simple counting tasks with an incremental encoder. Counting refers to the recording and adding up of events. The channels configured as counters each acquire the two incremental signals and evaluate these accordingly.

Count direction
The technology module can count up and down with an incremental encoder. You can invert the counting direction to adapt it to the process.

Counting limits

The counting limits define the counter value range used.
The minimum counter value is -2147483648 (-231). The maximum counter value is 2147483647 (231-1). The respective counter counts continuously. At an overflow, the counter jumps to the other counting limit in each case and continues counting.
The counter value cannot be influenced by the user program.

Parameter assignment
For use of a counter for an incremental encoder, two digital inputs each of a channel group are combined. For this purpose, you choose the configuration "Incremental encoder (A, B phase-shifted)" in the channel parameters for the respective group.
Note Counters of the TM Timer DIDQ 16x24V
The number of available counters of the TM Timer DIDQ 16x24V is dependent on the channel configuration. In order to use 4 counters, you must choose the use of 8 inputs in the channel configuration. If you choose the use of 3 inputs, you can use 1 counter. Other channel configurations do not allow any counter use.

Counter value feedback
The current counter value is indicated in the feedback interface in the TEC_IN value (DIm). DIm corresponds to the first of the two grouped digital inputs in each case. For the second digital input, "0" is returned in the value TEC_IN (DIm+1).

Counting, measurement and position detection

82

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.3 Basics of counting (TM Timer DIDQ)

2.3.3

Counting with pulse encoder
You can use a few channels of a TM Timer DIDQ for simple counting tasks with a pulse encoder. Counting refers to the recording and adding up of events. The channels configured as counters each acquire one pulse signal and evaluate this accordingly.

Count direction The technology module can count up and down with a pulse encoder.

Counting limits

The counting limits define the counter value range used.
The minimum counter value is -2147483648 (-231). The maximum counter value is 2147483647 (231-1). The respective counter counts continuously. At an overflow, the counter jumps to the other counting limit in each case and continues counting.
The counter value cannot be influenced by the user program.

Parameter assignment
For use of a counter for a pulse encoder, you choose the configuration "Use inputs individually" or "Use input/output individually" in the channel parameters for the respective group. You can configure the first digital input of a group as a counter.
Note Counters of the TM Timer DIDQ 16x24V
The number of available counters of the TM Timer DIDQ 16x24V is dependent on the channel configuration. In order to use 4 counters, you must choose the use of 8 inputs in the channel configuration. If you choose the use of 3 inputs, you can use 1 counter. Other channel configurations do not allow any counter use.

Counter value feedback
The current counter value is indicated in the feedback interface in the TEC_IN value (DIm). DIm corresponds to the respective digital input.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

83

The basics of counting, measurement and position input 2.3 Basics of counting (TM Timer DIDQ)

2.3.4

24 V count signals

Count signals of 24 V incremental encoders
The 24 V incremental encoder returns the 24 V signals A and B to the technology module. The A and B signals are phase-shifted by 90°.
The figure below shows an example of the time profile of the signals of an 24 V incremental encoder:

The technology module detects the count direction by evaluating the sequence of edges of the A and B signals. You can specify an inversion of the count direction.
Signal evaluation
The two phase-shifted signals of an incremental encoder are evaluated four times. With quadruple evaluation, the positive and negative edges of signal A and signal B are evaluated.
Whether count pulses are generated in an upward or downward direction depends on the edge direction of the one signal and the level of the other signal in the meantime.
The figure below shows an example of the quadruple evaluation of 24 V count signals:

Count signals of 24 V pulse encoders
An encoder, for example, a proximity switch (BERO) or a light barrier, returns only one count signal that is connected to the digital input of a counter.
You can count the positive or the negative edges of the signal.

Counting, measurement and position detection

84

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.3 Basics of counting (TM Timer DIDQ)

2.3.5

Isochronous mode
The TM Timer DIDQ supports the system function "Isochronous mode". This system function enables counter values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input and output data and the processing in the module are synchronized with each other.

Data processing
The data that was transmitted to the module in the current bus cycle via the control interface takes effect when it is processed in the module's internal cycle. The counter value and status bits are detected at time Ti and made available in the feedback interface for retrieval in the current bus cycle.

Additional information
You will find detailed description of the isochronous mode:
 In the Isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401) .
 In the PROFINET with STEP 7 function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

85

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4

Basics of counting (digital modules)

2.4.1

Overview of applications

Introduction

You configure the digital module and assign its parameters using the configuration software.
The module's functions are controlled and monitored via the user program with the control and feedback interface.

System environment The respective module can be used in the following system environments:

Applications Central operation with a S7-1500 CPU or ET 200SP CPU
Distributed operation with a S7-1500 CPU
Distributed operation with a S7-300/400 CPU

Components required
· S7-1500 automation system or ET 200SP CPU
· Digital module
· S7-1500 Automation System
· ET 200 Distributed I/O System
· Digital module
· S7-300/400 automation system
· ET 200 distributed I/O system
· Digital module

Distributed operation in a third-party system

· Third-party automation system
· ET 200 distributed I/O system
· Digital module

Configuration software
STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration

In the user program
Direct access to the control and feedback interface of the digital module in the I/O data

STEP 7 (TIA Portal):
Device configuration and parameter setting with hardware configuration
STEP 7:
Device configuration and parameter setting with hardware configuration (ET 200SP) or GSD file (ET 200MP)
Third-party configuration software:
Device configuration and parameter settings with GSD file

Note
A description of the control and feedback interface is available in the device manual for the digital module.

Counting, measurement and position detection

86

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.2

Counting with pulse encoders
Counting refers to the detection and summation of events. The modules' counters record and evaluate pulse signals. The counting direction can be specified using encoder or pulse signals or through the configuration.
You can use feedback bits to switch the digital outputs of digital output modules at defined counter values.
You can configure the characteristics of the counters using the functionalities described below.

Counter limits

The counter limits define the counter value range used. The counter limits are configurable and can be modified during runtime using the user program. See the module's device manual for the maximum and minimum configurable counter limits.
You can configure whether the counting processes are terminated or continue when a counter limit is violated (automatic gate stop).

Start value

You can configure a start value within the counter limits. The start value can be modified during runtime with the user program.

Gate control

Opening and closing the hardware gate and software gate defines the period of time during which the counting signals are recordd.
The hardware gate is controlled externally via a digital input of the digital module. The hardware gate can be enabled through parameter assignment. The software gate is controlled via the user program. A description of the control and feedback interface is available in the device manual for the digital module.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

87

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.3

Behavior at the counting limits

Violation of a counting limit
The high counting limit is violated when the current counter value is equal to the high counting limit and another upward count pulse is received. The counter low limit is violated when the current counter value is equal to the counter low limit and another downward count pulse is received.
For digital modules of ET 200SP and ET 200AL, the corresponding event bit is set in the feedback interface when the limit is exceeded. You can reset an event bit with the respective control bit:

Counting limit violated High counting limit Low counting limit

Event bit EVENT_OFLW EVENT_UFLW

Reset bit RES_EVENT_OFLW RES_EVENT_UFLW

Note A description of the control and feedback interface is available in the device manual for the digital module.
You can configure whether or not you want to continue counting to another counter limit after a counting limit violation.
Note The high counting limit and the start value define the value range of the counter: Value range of the counter = (high limit ­ start value) + 1

Counting, measurement and position detection

88

Function Manual, 10/2018, A5E32009889-AH

Examples

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)
The figure below shows an example for terminating counting after overflow and setting the counter to the opposite counting limit:

The figure below shows an example for continuing the counting process after an overflow and setting the counter to the opposite counting limit:

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

89

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.4

Gate control
Many applications require counting processes to be started or stopped in accordance with other events. In such cases, counting is started and stopped using the gate function. The digital modules have two gates for each counting channel. These define the resulting internal gate:  Software gate  Hardware gate
Note The hardware gate is not available for all digital modules.

2.4.4.1

Software gate The software gate of the channel is opened and closed with the SW_GATEcontrol bit.
Note A description of the control and feedback interface is available in the device manual for the digital module.

2.4.4.2

Hardware gate The hardware gate is optional. You open and close the hardware gate using signals at the corresponding digital input.
Note A configurable input delay delays the control signal of the digital input.

The status of a DIm digital input is indicated by the respective STS_DIm feedback bit. A description of the control and feedback interface is available in the device manual for the digital module.
Opening and closing the hardware gate The figure below shows an example of opening and closing with a digital input:

As long as the digital input is set, the hardware gate is open and the count pulses are counted. The hardware gate is closed when the digital input is reset. The counter value stays constant and ignores any further count pulses.

Counting, measurement and position detection

90

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.4.3

Internal gate

Internal gate

The internal gate is open if the software gate is open and the hardware gate is open or has not been configured. The status of the internal gate is indicated by the STS_GATE feedback bit. A description of the control and feedback interface is available in the device manual for the digital module.
If the internal gate is open, counting is started. If the internal gate is closed, all other count pulses are ignored and counting is stopped.
If you want to control a counting process with the hardware gate only, the software gate must be open. If you do not configure a hardware gate, the hardware gate is considered to be always open. In this case, you open and close the internal gate with the software gate only.

Hardware gate Open/not configured Open/not configured closed closed

Software gate open closed open closed

Internal gate open closed closed closed

The internal gate can also be automatically closed upon violation of a counting limit. The software or hardware gate must then be closed and reopened to continue counting.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

91

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.5

Comparison values
Depending on the module, you can define up to two comparison values that control a feedback bit for the channel, independent of the user program.
When there are two comparison values, comparison value 1 must be greater than comparison value 0. The comparison values are configurable and can be modified during runtime using the user program.
The comparison values are compared with the current counter value. If the counter value meets the configured comparison condition, the respective STS_DQ feedback bit is set.
You can use the respective feedback bit in order to switch a digital output module's digital output. You can make setting the respective STS_DQ feedback bit dependent on one of the following comparison events. See the device manual for the digital module to find out which comparison events can be configured.

Setting between comparison value and high counter limit The respective STS_DQ feedback bit is set to 1 when: Comparison value <= counter value <= high counter limit

Counting, measurement and position detection

92

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)
Setting between comparison value and low counter limit The respective STS_DQ feedback bit is set to 1 when: Low counter limit <= counter value <= comparison value
Setting between comparison value 0 and comparison value 1 The respective STS_DQ feedback bit is set to 1 when: Comparison value 0 <= counter value <= comparison value 1

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

93

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)
Not setting between comparison value 0 and comparison value 1 The respective STS_DQ feedback bit is set to 1 when: Comparison value 0 <= counter value <= comparison value 1

Counting, measurement and position detection

94

Function Manual, 10/2018, A5E32009889-AH

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.6

Interrupts

Hardware interrupt The modules can trigger a hardware interrupt in the CPU for certain events during operation. Process interrupts are enabled via the parameter assignment. Refer to the device manual for the module for information about the events that can trigger a hardware interrupt during operation.
Note Hardware interrupts for counting are not available at all the modules.

2.4.7

24 V count signals

24 V pulse encoder count signals
An encoder, for example an initiator (BERO) or a light barrier, returns a count signal that is connected to the terminal of a counter. For some modules you change the count direction via the parameter assignment of the DI function.
The figure below shows an example of the time profile of the signals of a 24 V pulse encoder with direction signal and the resulting count pulses:

Note A signal for direction detection is not connectable for all digital modules.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

95

The basics of counting, measurement and position input 2.4 Basics of counting (digital modules)

2.4.8

Isochronous mode
The digital module supports the system function "Isochronous mode". This system function enables counter values to be acquired in a defined system cycle.
In isochronous mode, the cycle of the user program, the transmission of the input and output data and the processing in the module are synchronized with each other.

Data processing
The data that was transmitted to the module in the current bus cycle via the control interface takes effect when it is processed in the module's internal cycle. The counter value and status bits are detected at time Ti and made available in the feedback interface for retrieval in the current bus cycle.

Additional information
You will find detailed description of the isochronous mode:
 In the Isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401) .
 In the PROFINET with STEP 7 function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856).

Counting, measurement and position detection

96

Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object

3

3.1

Convention

Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs.

3.2

High_Speed_Counter technology object

STEP 7 (TIA Portal) supports you in the configuration, commissioning and diagnostics of counting and measuring functions for the following technology modules with the "Technology objects" function:

 You configure the High_Speed_Counter technology object in STEP 7 (TIA Portal) with the settings for the counting and measuring functions.

 The corresponding High_Speed_Counter instruction is programmed in the user program. This instruction supplies the control and feedback interface of the technology module.

The High_Speed_Counter technology object corresponds to the instance DB of the High_Speed_Counter instruction. The configuration of the counting and measuring functions is saved in the technology object. The technology object is located in the folder "PLC > Technology objects".

The High_Speed_Counter technology object can be used for technology modules of both the S7-1500 and ET 200SP systems.

Operating mode
In order to assign the technology module parameters using the technology object, you specify the operating mode (Page 181) "Operating with "Counting and measurement" technology object" in the hardware configuration of the technology module. This selection is already preset.

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

97

Using the High_Speed_Counter technology object 3.3 Overview of the configuration steps

3.3

Overview of the configuration steps

Introduction

The overview below shows the basic procedure for configuring the counting and measuring functions of the technology module with the High_Speed_Counter technology object.

Requirement (TM Count and TM PosInput)
Before you can use the High_Speed_Counter technology object, a project with an S7-1500 CPU or an ET 200SP CPU must be created in STEP 7 (TIA Portal) .

Requirement (Compact CPU)
Before you can use the High_Speed_Counter technology object, a project with a Compact CPU S7-1500 must be created in STEP 7 (TIA Portal).

Procedure

Proceed in the recommended sequence outlined below:

Step 1 2 3 4 5 6 7

Description Configure a technology module (Page 175) Add technology object (Page 99) Configure a technology object according to your application (Page 101) Call instruction in the user program (Page 124) Load to CPU Commissioning the technology object (Page 138) Diagnostics of the technology object (Page 140)

Counting, measurement and position detection

98

Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.4 Add technology object

3.4

Add technology object

Adding a technology object in the project navigation
When a technology object is added, an instance DB is created for the instruction of this technology object. The configuration of the technology object is stored in this instance DB.

Requirement (TM Count and TM PosInput) A project with a CPU S7-1500 has been created.

Requirement (Compact CPU) A project with a Compact CPU S7-1500 has been created.

Procedure

To add a technology object, proceed as follows: 1. Open the CPU folder in the project tree. 2. Open the "Technology objects" folder. 3. Double-click on "Add new object".
The "Add new object" dialog opens. 4. Select the "Counting and measurement" technology. 5. Select the "High_Speed_Counter" object. 6. Enter an individual name for the technology object in the "Name" text box. 7. Click "Additional information" if you want to add your own information to the technology
object. 8. Confirm with "OK".

Counting, measurement and position detection

Function Manual, 10/2018, A5E32009889-AH

99

Using the High_Speed_Counter technology object 3.4 Add technology object

Result

The new technology object has now been created and stored in the project tree in the "Technology objects" folder.

Object



Configuration (Page 101)



Commissioning (Page 138)



Diagnostics (Page 140)

Description In the configuration dialog:
· Assignment of technology module and channel
· Technology object parameter settings for counting and measurement functions
When you change the configuration of the technology object, you must download the technology object and the hardware configuration to the CPU.
Commissioning and function test of the technology object: Simulating parameters of the High_Speed_Counter instruction and monitoring the effects
Monitoring the counting and measuring functions

100

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

3.5
3.5.1

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Configuring the High_Speed_Counter
Working with the configuration dialog
You configure the properties of the technology object in the configuration window. Proceed as follows to open the configuration window of the technology object: 1. Open the "Technology objects" folder in the project tree. 2. Open the technology object in the project tree. 3. Double-click on the "Configuration" object. The configuration is divided into the following categories:  Basic parameters
The basic parameters include the selection of the technology module and the number of the counting channel for which the technology object is configured.  Extended parameters The extended parameters include the parameters for adapting the counting and measuring functions and for setting the characteristics of the digital inputs and digital outputs.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

101

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Configuration window icons Icons in the area navigation of the configuration show additional details about the status of the configuration:
The configuration contains default values and is complete. The configuration contains only default values. With these default values, you can use the technology object without additional changes. The configuration contains values set by the user or automatically adapted values and is complete All text boxes of the configuration contain valid values and at least one default value was changed. The configuration is incomplete or incorrect At least one text box or drop-down list contains an invalid value. The corresponding field or the drop-down list is displayed on a red background. Click the roll-out error message to indicate the cause of error.

102

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.2

Basic parameters
You can establish the connection between the High_Speed_Counter technology object and the technology module under "Basic parameters".

Module (TM Count and TM PosInput)
You select the technology module in a subsequent dialog box. All technology modules (central or distributed) that are configured for use with a "Counting and measurement" technology object under the S7-1500 CPU or ET 200SP CPU are available for selection.
After selecting the technology module, you can open the device configuration associated with the technology module by clicking the"Device configuration" button.
The technology module parameter settings required for the use of the technology object are made in the "Extended parameters" of the technology object.
Module (Compact CPU)
You can select a high-speed counter for the Compact CPU in a subsequent dialog. You can choose any of the high-speed counters which are enabled and configured for use with a technology object from "Counting and measuring".
After selecting the high-speed counter, you can open the device configuration associated with the Compact CPU by clicking the"Device configuration" button.
The parameter settings of the high-speed counter required for the use of the technology object are made in the "Extended parameters" of the technology object.

Channel

For a technology module with several counting channels, you can also select the number of the counting channel for which the High_Speed_Counter technology object is to be valid.
Note A channel can be assigned to only one technology object. A channel that is already assigned to a technology object can no longer be selected.

Synchronization of the parameter values
If, after assignment of the channel to the technology object, there is an inconsistency between the parameter values in the property dialog and in the technology object, a button with a corresponding inquiry appears. When you click the button, the parameter values in the property dialog are overwritten by the parameter values in the property dialog within STEP 7 (TIA Portal). The current parameter values of the technology object are displayed in the property dialog.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

103

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.3

Counter inputs (High_Speed_Counter)

Signal type

You can choose from the following signal types (Page 71):

Symbol

Signal type
Incremental encoder (A, B phase-shifted)

Meaning

Additional option-specific parameters

An incremental encoder with phase-shifted A · Signal evaluation

and B signals is connected.

· Invert direction

· Filter frequency

· Sensor type or Interface standard

Incremental encoder (A, B, N)

An incremental encoder with phase-shifted signals A and B and a zero signal N is connected.

· Signal evaluation · Invert direction · Filter frequency · Sensor type or Interface
standard · Reaction to signal N · Frequency of synchroni-
zation · Frequency of the Capture
function

Pulse (A) and direction (B) A pulse encoder (signal A) with direction signal (signal B) is connected.

· Filter frequency
· Sensor type or Interface standard

Pulse (A)
Count up (A), count down (B)

A pulse encoder (signal A) without direction ·

signal is connected. You can specify the count direction by means of the control inter-

·

face (Page 219).

Signals for counting up (signal A) and down ·

(signal B) are connected.

·

Filter frequency Sensor type or Interface standard
Filter frequency Sensor type or Interface standard

Invert direction

You can invert the counting direction to adapt it to the process. The inverting of the direction is configurable and active for the following signal types:  Incremental encoder (A, B phase-shifted)  Incremental encoder (A, B, N)

104

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Signal evaluation
By configuring signal evaluation (Page 76), you can specify which edges of the signals are counted.
You can select from the following options:

Symbol

Signal evaluation
Single (Page 76) (default)

Meaning
The edges of signal A are evaluated during a low level of signal B.

Double (Page 77) Each edge of signal A is evaluated.

Quadruple (Page 78)

Each edge of signals A and B is evaluated.

The parameter can be assigned with the following signal types:  Incremental encoder (A, B phase-shifted)  Incremental encoder (A, B, N)

Filter frequency
By configuring the filter frequency, you suppress interferences at the counting inputs A, B and N.
The selected filter frequency is based on a pulse/break ratio of between around 40:60 and around 60:40. This results in a specific minimum pulse/break time. Signal changes with a duration shorter than the minimum pulse/break time are suppressed.
You can select from the following filter frequencies:

Filter frequency 100 Hz 200 Hz 500 Hz 1 kHz 2 kHz 5 kHz 10 kHz 20 kHz 50 kHz 100 kHz (preset for Compact CPU)

Minimum pulse/break time 4.0ms 2.0 ms 800 µs 400 µs 200 µs 80 µs 40 µs 20 µs 8.0 µs 4.0 µs

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

105

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Filter frequency 200 kHz** (preset for TM Count) 500 kHz* 1 MHz* (default at TM PosInput)

Minimum pulse/break time 2.0 µs 0.8 µs 0.4 µs

* Only available with TM PosInput ** * Only available with TM Count and TM PosInput

Sensor type (TM Count)
By configuring the sensor type, you specify how the counter inputs are switched for the TM Count.
You can select from the following options:

Sensor type Sourcing output (default)
Sinking output
Push-pull (sinking and sourcing output)

Meaning The encoder/sensor switches the inputs A, B and N to 24VDC.
The encoder/sensor switches the inputs A, B and N to M.
The encoder/sensor alternately switches the inputs A, B and N to M and 24VDC.

"Push-pull" is usually selected when incremental encoders are used. If using 2-wire sensors, such as light barriers or proximity switches, you need to select the corresponding wiring "sourcing output" or "sinking output".

The data sheet of the encoder includes information on whether your incremental encoder is a push-pull encoder.

Note
If you use a push-pull encoder and the sensor type "Push-pull (sinking and sourcing output)" is configured, you can monitor the encoder signals for wire break.

Sensor type (Compact CPU)
The "Sourcing output" sensor type is set for the Compact CPU and cannot be changed. The encoder or sensor switches the inputs A, B and N to 24V DC.
You can operate both sourcing output encoders as well as push-pull encoders on the Compact CPU. You can find additional information on the sensor type in the data sheet for the encoder.

106

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Interface Standard (TM PosInput)
You use this parameter to specify whether the encoder outputs symmetric (RS422) or asymmetric (TTL) signals for the TM PosInput.
You can select from the following options:

Interface standard RS422, symmetrical (default)
TTL (5 V), asymmetrical

Meaning
The encoder outputs symmetric signals according to the RS422 standard (Page 73).
The encoder outputs asymmetric 5 V signals according to the TTL standard (Page 71).

Note
The RS422 standard provides greater interference immunity than the TTL standard. If your incremental or pulse encoder supports the RS422 standard and the TTL standard, we recommend using the RS422 standard.

Reaction to signal N You use this parameter to specify which reaction is triggered to signal N. You can select from the following options:

Option No reaction to signal N (default) Synchronization at signal N (Page 44)
Capture at signal N (Page 34)

Meaning The counter is not affected by signal N.
The counter is set to the start value at signal N. If you select the function "Enable synchronization at signal N" for a digital input, the synchronization depends on the level at the digital input. The counter value is stored in the Capture value at signal N. The use of a digital input and the use of the N signal are not mutually exclusive for the Capture function. The technology object displays the Capture value at the output parameter CapturedValue.

Note You can only select the reaction to signal N if you have selected the "Incremental encoder (A, B, N)" signal type.
Note If "Synchronization at signal N" is selected, you can select the function "Enable synchronization at signal N" for a digital input (Page 111).

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

107

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Note For High_Speed_Counter as of V3.0, the following applies: You can choose "Capture at signal N" only in operating mode "Use count value as reference":

Frequency of synchronization This parameter is used to define the frequency of the following events:  Synchronization at signal N  Synchronization as function of a digital input You can select from the following options:

Option Once (default)
Periodic

Meaning
The counter is only set at the first signal N or the first configured edge of the digital input.
The counter is set at each signal N or each configured edge of the digital input.

Frequency of the Capture function This parameter is used to define the frequency of Capture events for the following functions:  Capture at Signal N  Capture as function of a digital input You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input or first rising edge of the N signal saves the current counter value as a Capture value.
Each configured edge at the respective digital input or each rising edge of the N signal saves the current counter value as a Capture value.

Note This parameter is available for High_Speed_Counter as of V3.2.

108

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.4

Counter behavior

3.5.4.1

Counting limits and start value

High counting limit
You limit the counting range by setting the high counting limit. You can enter a value up to 2147483647 (231-1). You must enter a value that lies above the low counting limit.
The default setting is "2147483647".

Low counting limit
You limit the counting range by setting the low counting limit. You can enter a value up to 2147483648 (-231). You must enter a value below the high counting limit.
The default setting is "-2147483648".

Start value

By configuring the start value, you specify the value at which counting is to start and where it is to continue in the case of defined events. You must enter a value between the counting limits or equal to the counting limits.
The default setting is "0".

Additional information
For more information, see Behavior at the counting limits (Page 28) and Counter behavior at gate start (Page 33).

3.5.4.2

Counter behavior at limits and gate start

Reaction to violation of a counting limit You can configure the following characteristics for violation of a counting limit (Page 28):

Reaction Stop counting
Continue counting (default)

Meaning
If a counting limit is violated, counting is stopped and the internal gate is closed. To restart counting, you must also close and reopen the software/hardware gate.
Counting continues either with the start value or at the opposite counting limit, depending on the additional parameter assignment.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

109

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Reset when counting limit is violated You can reset the counter to the following values when a counting limit is violated:

Reset the value To start value
To opposite counting limit (default)

Meaning The counter value is set to the start value. The counter value is set to the opposite counting limit.

Reaction to gate start You can set the following Reaction to gate start (Page 33):

Reaction Set to start value
Continue with current value (default)

Meaning When the gate is opened, the counter value is set to the start value.
When the gate is opened, counting is continued with the last counter value.

110

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.5

Behavior of a DI (High_Speed_Counter)

Setting function of the DI
By configuring a digital input, you specify which functions the digital input triggers at switching.
You can select from the following options:

Function of a digital input Gate start/stop (level-triggered) Gate start (edge-triggered) Gate stop (edge-triggered) Synchronization (Page 39)
Enable synchronization at signal N Capture
Digital input without function

Meaning
The level at the respective digital input opens and closes the hardware gate (Page 30).
The configured edge at the respective digital input opens the hardware gate (Page 30).
The configured edge at the respective digital input closes the hardware gate (Page 30).
The configured edge at the respective digital input sets the counter to the start value. The technology object indicates whether a synchronization has occurred at the output parameter SyncStatus. The active level at the respective digital input enables synchronization of the counter at signal N (Page 44). The configured edge at the respective digital input saves the current counter value (Page 34) as a Capture value. The use of a digital input and the use of the N signal are not mutually exclusive for the Capture function. The technology object displays the Capture value at the output parameter CapturedValue.
No technological function is assigned to the respective digital input. You can read the signal state of the digital input via the respective static variable of the technology object:
· UserStatusFlags.StatusDI0 · UserStatusFlags.StatusDI1 · UserStatusFlags.StatusDI2

Additional option-specific parameters · Input delay · Select level
· Input delay · Edge selection
· Input delay · Edge selection
· Input delay · Edge selection · Frequency of synchronization
· Input delay · Select level
· Input delay · Edge selection · Frequency of the Capture func-
tion · Behavior of counter value after
Capture
· Input delay

Note
With the exception of "Digital input without function", each function can only be used once for each counter, and if used for one digital input is not available to the others.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

111

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Note For High_Speed_Counter as of V3.0, the following applies: You can choose the "Capture" function only in operating mode "Use count value as reference".
Input delay (TM Count and TM PosInput) You use this parameter to suppress signal interference at the digital inputs. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. You can select from the following input delays:  None  0.05 ms  0.1 ms (default)  0.4 ms  0.8 ms  1.6 ms  3.2 ms  12.8 ms  20 ms
Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.
Note You configure the input delay under "Behavior of DI0" for all digital inputs together. The input delay is also displayed under "Behavior of DI1" and for TM Count also under "Behavior of DI2".

112

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Input delay (Compact CPU) You use this parameter to suppress interference at the digital inputs of the DIn signals. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. You can configure the input delay for a digital input of a Compact CPU in the Inspector window of the device configuration under "Properties > DI 16/DQ 16 > Inputs > Channel n". You can select from the following input delays:  None  0.05 ms  0.1 ms  0.4 ms  1.6 ms  3.2 ms (default)  12.8 ms  20 ms
Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.

Select level

You use this parameter to specify the level at which the digital input is active. You can select from the following options:

Level Active with high level (default)
Active with low level

Meaning The respective digital input is active when it is set.
The respective digital input is active when it is not set.

The parameter can be set for the following functions of a digital input:

 Gate start/stop (level-triggered)

 Enable synchronization at signal N

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

113

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Edge selection

You can use this parameter to specify the edge of the digital input at which the configured function is triggered. The following options may be available depending on the function selected:  At rising edge (default)  At falling edge  At rising and falling edge The parameter can be set for the following functions of a digital input:  Gate start (edge-triggered)  Gate stop (edge-triggered)  Synchronization  Capture

Note At rising and falling edge" can only be configured for the "Capture" function.

Frequency of synchronization This parameter is used to define the frequency of the following events:  Synchronization at signal N  Synchronization as a function of a digital input You can select from the following options:

Option Once (default)
Periodic

Meaning
The counter is only set at the first signal N or the first configured edge of the digital input.
The counter is set at each signal N or each configured edge of the digital input.

114

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Frequency of the Capture function This parameter is used to define the frequency of Capture events for the following functions:  Capture at Signal N  Capture as function of a digital input You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input or first rising edge of the N signal saves the current counter value as a Capture value.
Each configured edge at the respective digital input or each rising edge of the N signal saves the current counter value as a Capture value.

Note This parameter is available for High_Speed_Counter as of V3.2.

Behavior of counter value after Capture
You can configure the following characteristics for the counter after a capture event (Page 34):

Reaction
Continue counting (default)
Set to start value and continue counting

Meaning
After saving the current counter value as Capture value, counting is continued unchanged.
After saving the current counter value as Capture value, counting is continued with the start value.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

115

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.6

Behavior of a DQ (High_Speed_Counter)

Operating mode (High_Speed_Counter V3.0 or higher) The operating mode determines which value comparison functions work.

Operating mode Use count value as reference (default)
Use measured value as reference

Meaning
The comparison functions and hardware interrupts for compare events work with the counter value.
This functionality corresponds to the functionality of the High_Speed_Counter in versions before V3.0.
The comparison functions and hardware interrupts for compare events work with the measured value.

Note
You configure the operating mode under "Behavior of DQ0" for both digital outputs together. The operating mode is also displayed under "Behavior of DQ1".

Set output

With the parameter assignment of a digital output, you specify the condition upon which the digital output switches.
You can select from the following options:

Function of a digital output (Page 48) Meaning in operating mode "Use count value as reference"

Between comparison value and high The respective digital output is active if:

limit

Comparison value <= counter value <= high

(default)

counting limit

Additional option-specific parameters
· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value and low limit

The respective digital output is active if: Low counting limit <= counter value <= comparison value

· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value 0 and 1

The digital output DQ1 is active if: Comparison value 0 <= counter value <= comparison value 1

· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

At comparison value for a pulse duration

The respective digital output is active once for · Comparison value 0

the configured time and count direction when the counter value reaches the comparison value.

·

Comparison value 1

· Count direction

· Pulse duration · Hysteresis (in increments)

116

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Function of a digital output (Page 48) Meaning in operating mode "Use count value as reference"

Additional option-specific parameters

After set command from CPU until comparison value

When a set command is sent from the CPU, the ·

respective digital output is active until the counter value is equal to the comparison value.

·

·

Comparison value 0 Comparison value 1 Count direction

· Hysteresis (in increments)

Use by user program

The respective digital output can be switched by -- the CPU via the control interface (Page 47).

Note DQ0 of a counter of a Compact CPU With a Compact CPU, the respective digital output DQ0 is available via the feedback interface, but not as a physical output.
Note You can only select the "Between comparison value 0 and 1" function for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.
Note The "At comparison value for a pulse duration" and "After set command from CPU until comparison value" functions only switch the digital output in question if a count pulse reaches the comparison value. When the counter value is set, e.g. by synchronization, the digital output does not switch.

Function of a digital output (Page 56) in operating mode "Use measured value as reference" Measured value >= comparison value (default) Measured value <= comparison value
Between comparison value 0 and 1
Not between comparison value 0 and 1
Use by user program

Meaning

Additional option-specific parameters

The respective digital output is active if the measured value is greater than or equal to the comparison value.
The respective digital output is active if the measured value is less than or equal to the comparison value.
The digital output DQ1 is active if: Comparison value 0 <= measured value <= comparison value 1
The digital output DQ1 is active if: Comparison value 1 <= measured value <= comparison value 0
The respective digital output can be switched by the CPU via the control interface (Page 47).

· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1 --

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

117

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Note You can select the "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" functions only for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.
Comparison value 0(TM Count and TM PosInput) Operating mode "Use count value as reference" With the parameter assignment of the comparison value (Page 48), you specify the counter value at which the digital output DQ0 switches as a result of the selected comparison event. You must enter an integer (DINT) that is greater than or equal to the low counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0". Operating mode "Use measured value as reference" With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ0 switches as a result of the selected comparison event. You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.
Comparison value 0(Compact CPU) Operating mode "Use count value as reference" With the parameter assignment of the Comparison value (Page 48), you specify the counter value at which the STS_DQ0 bit is set in the feedback interface of the selected comparison event. The digital output DQ0 is not available as a physical output in a Compact CPU. You must enter an integer (DINT) that is greater than or equal to the low counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0". Operating mode "Use measured value as reference" With the parameter assignment of the Comparison value (Page 56), you specify the measured value at which the STS_DQ0 bit is set in the feedback interface of the selected comparison event. The digital output DQ0 is not available as a physical output in a Compact CPU. You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.

118

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

Comparison value 1
Operating mode "Use count value as reference"
With the parameter assignment of the comparison value (Page 48), you specify the counter value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter an integer (DINT) that is smaller than or equal to the high counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "10".
Operating mode "Use measured value as reference"
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The maximum value is 7.922816 x 1028. The default setting is "10.0". The unit of the comparison value depends on the measured variable.

Count direction You use this parameter to specify the count direction for which the selected function is valid. You can select from the following options:

Count direction In both directions (default) Up
Down

Meaning
The comparison and switching of the respective digital output take place regardless of the count direction.
The comparison and switching of the respective digital output only takes place when the counter counts up.
The comparison and switching of the respective digital output only takes place when the counter counts down.

The parameter can be configured for the following functions:

 At comparison value for a pulse duration

 After set command from CPU until comparison value

Pulse duration

By configuring the pulse duration for the function "At comparison value for a pulse duration", you specify the number of milliseconds for which the respective digital output is active.
If you enter "0" and the counter value corresponds to the comparison value, the digital output remains active until the next count pulse.
You can enter a value between 0.0 and 6553.5.
The default setting is "500.0", which is equivalent to a pulse duration of 0.5 s.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

119

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Hysteresis (in increments) By configuring the hysteresis (Page 66), you can define a range around the comparison values. For the functions "Between comparison value and upper counter limit" and "Between comparison value and lower counter limit" the hysteresis also applies at the counter limits. Within the hysteresis range, the digital outputs cannot switch again until the counter value is outside the range.
Choose a small enough hysteresis. When the hysteresis range, starting from the configured comparison value, spans the entire counter value range, proper functioning of the comparison values cannot be guaranteed.
If a comparison value lies so close to the counter limit that the hysteresis range would extend beyond this counter limit, the hysteresis range ends at it.
If you enter "0", the hysteresis is turned off. You can enter a value between 0and 255. The default setting is "0".
Note
The following applies for High_Speed_Counter as of V3.0:
You configure the hysteresis under "Behavior of DQ0" for both digital outputs together. The hysteresis is also displayed under "Behavior of DQ1".
The hysteresis is only available in operating mode "Use count value as reference".

120

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter

3.5.7

Specify measured value (High_Speed_Counter)

Measured variable
This parameter is used to specify the measured variable (Page 59) to be provided by the technology module. The technology object displays the measured value at the output parameter MeasuredValue.
You can select from the following options:

Measured variable Frequency (default)
Period
Velocity

Meaning

Additional option-specific parameters

The measured variable shows the number of increments · Update time per second. The value is a floating point number (REAL). The unit is Hz.

The technology object displays the measured value at the output parameter MeasuredValue.

The measured variable is the average period between two increments. The value is an integer (DINT). The unit is s.

· Update time

The technology object displays the measured value at the output parameter MeasuredValue.

The measured variable is a velocity.

·

Examples of a velocity measurement can be found in the · explanation of the "Increments per unit" parameter.
· The technology object displays the measured value at the output parameter MeasuredValue.

Update time Time base for velocity measurement Increments per unit

Update time

By configuring the update time (Page 59) in milliseconds, you can specify the time interval between two measured value updates.
The update time and the signal type effect the accuracy of the measurement. In the case of update times of at least 100 ms, the effect of the signal type is negligible.
In the case of update times of less than 100 ms, you achieve maximum measurement accuracy using the following signal types:
 Incremental encoder (A, B phase-shifted) with Signal evaluation "Single"
 Incremental encoder (A, B, N) with Signal evaluation "Single"
 Pulse (A) and direction (B)
 Pulse (A)
In the case of other signal types, measurement accuracy depends on the encoder and cable used.
If you enter "0", the measured value is updated once per module-internal cycle. Up to three decimal places can be entered. A value from 0.0 to 25000.0 is permissible. The default setting is "10.0".

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

121

Using the High_Speed_Counter technology object 3.5 Configuring the High_Speed_Counter
Time base for velocity measurement This parameter defines the time base on which the velocity is to be returned. You can select from the following options:  1 ms  10 ms  100 ms  1s  60 s The default setting is "60 s".
Increments per unit You can use this parameter to define the number of count pulses per relevant unit that the incremental or absolute encoder supplies for the velocity measurement. The number of count pulses depends on the configured signal evaluation. You can enter a value between 1 and 65535. Example 1: You encoder delivers 4000 count pulses for travel over one meter. The velocity is to be measured in meters per second. "Double" is configured as signal evaluation. In this case, you need to assign the following parameters:  Increments per unit: 8000  Time base for velocity measurement: 1 s Example 2: Your encoder delivers 4096 count pulses per revolution. The velocity is to be measured in revolutions per minute. "Single" is configured as the signal evaluation. In this case, you need to assign the following parameters:  Increments per unit: 4096  Time base for velocity measurement: 60 s

122

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6

Programming the High_Speed_Counter

3.6.1

High_Speed_Counter instruction

High_Speed_Counter
The High_Speed_Counter instruction is part of the High_Speed_Counter technology object. It supplies the control and feedback interface of the technology module.
The High_Speed_Counter instruction thereby forms the software interface between the user program and the technology module. It must be called cyclically from the user program in order to synchronize the input and output data.
The High_Speed_Counter instruction can be used for the technology modules of both S71500 and ET 200SP. The modules can be used centrally and decentrally. The instruction applies in each case to the channel of the technology module that was assigned to the associated technology object.

Additional information Description High_Speed_Counter (Page 125) High_Speed_Counter input parameters (Page 131) High_Speed_Counter output parameters (Page 132) Error codes of parameter ErrorID (Page 134) High_Speed_Counter static variables (Page 136)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

123

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.2

Call instruction in the user program
The High_Speed_Counter instruction can be called once for each counter in the cycle or, alternatively, in a time-controlled program. The call is not permitted in an event-controlled interrupt program.

Procedure

Proceed as follows to call the instruction in the user program:
1. Open the CPU folder in the project tree.
2. Open the "Program blocks" folder.
3. Double-click the OB for cyclic program execution. The block is opened in the work area.
4. In the "Instructions" window, open the "Technology" group and the "Counting and measurement" folder. The folder contains the instruction.
5. Select the instruction and drag it to your OB. The "Call options" dialog opens.
6. Select a technology object from the "Name" list or enter the name for a new technology object.
7. Confirm with "OK".

Result

If the technology object does not exist yet, it is added. The instruction is added in the OB. The technology object is assigned to this call of the instruction.
Note If you click one of the buttons "Configuration", "Commissioning" or "Diagnostics" in the user interface of the instruction, the respective editor opens.

124

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.3

Description High_Speed_Counter

Description

The High_Speed_Counter instruction is used to control the technology module counting and measuring functions via the user program.

Call
The instruction High_Speed_Counter must be called once per counter, either cyclically or in a time-controlled program. The call is not permitted in an event-controlled interrupt program.

Operating principle
Counter value: The counter value is available at the output parameter CountValue. The counter value is updated at every call of the High_Speed_Counter instruction.
Measured value: The technology module updates the measured value asynchronously to the instruction call based on the configured update time. The measured value last determined by the technology module is updated at the output parameter MeasuredValue each time the instruction is called.
The measured value and the counter value are available in parallel in the feedback interface.
Capture: The output parameter CaptureStatus = TRUE indicates a valid Capture value at the output parameter CapturedValue.
 A Capture value is captured under the following conditions:
­ A digital input has the parameter assignment "Capture"
­ CaptureEnable = TRUE
­ Edge at digital input with the Capture function
 The output parameter CaptureStatus is reset by a negative edge at the input parameter CaptureEnable.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

125

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
Synchronization: The output parameter SyncStatus = TRUE indicates that a synchronization has occurred.  The counter value is synchronized under the following conditions:
­ A digital input has the parameter assignment "Synchronization" or the incremental encoder has the parameter assignment "Synchronization at signal N"
­ SyncEnable = TRUE ­ The static tag SyncUpDirection (or SyncDownDirection) = TRUE ­ Edge at the digital input with the synchronization function or positive edge of the signal
N at the encoder input  The output parameter SyncStatus is reset by a negative edge at
­ the input parameter SyncEnable or ­ the static tag SyncDownDirection or ­ the static tag SyncUpDirection Parameter changes via the user program Proceed as follows to modify parameters using the user program: 1. Check based on the respective Set tag to determine whether the technology object is ready for the parameter change (Set tag = FALSE) or whether a change job is still running (Set tag = TRUE). The following Set tags in UserCmdFlags are available for this in the static tags of the technology object instance DB: ­ SetReferenceValue0 ­ SetReferenceValue1 ­ SetUpperLimit ­ SetLowerLimit ­ SetCountValue ­ SetStartValue ­ SetNewDirection 2. If the technology object is ready for the parameter change, modify the relevant static tag. The following static tags of the technology object instance DB are available for this: ­ NewReferenceValue0 / NewReferenceValue0_M (for SetReferenceValue0) ­ NewReferenceValue1 / NewReferenceValue1_M (for SetReferenceValue1) ­ NewUpperLimit ­ NewLowerLimit ­ NewCountValue ­ NewStartValue ­ NewDirection

126

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
3. Set the relevant Set tag for execution of the change command. 4. Use the output parameter Error to check whether an error has occurred.
If no errors have occurred and the Set tag has been automatically reset by the technology object, the parameter change was successful.
Note Changed counting limit If the new high counting limit is less than the current counter value, the counter value is set to the low counting limit or the start value according on the parameter assignment. If the new low counting limit is greater than the current counter value, the counter value is set to the high counting limit or the start value according to the parameter assignment.

Operating mode (High_Speed_Counter V3.0 or higher) Configure the operating mode in the technology object under "Behavior of DQ0". The operating mode is indicated by the output parameter CompareMeasuredValue:

State FALSE
TRUE

Description Operating mode "Use count value as reference" The comparison functions work with the counter value. The following static variables are specifically used in this operating mode:
· NewReferenceValue0
· NewReferenceValue1
· CurReferenceValue0
· CurReferenceValue1 The four specific static variables of operating mode "Use measured value as reference" are ignored. Operating mode "Use measured value as reference": The comparison functions work with the measured value. The following static variables are specifically used in this operating mode:
· NewReferenceValue0_M
· NewReferenceValue1_M
· CurReferenceValue0_M
· CurReferenceValue1_M The four specific static variables of operating mode "Use count value as reference" are ignored.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

127

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
Acknowledgment of events You acknowledge signaled events using the positive edge of the input parameter EventAck . EventAck must stay set until the technology object has reset the status bits of the following events of the count channel:  CompResult0  CompResult1  ZeroStatus  PosOverflow  NegOverflow
Status of the digital inputs (TM Count and TM PosInput) You can obtain the status of the digital inputs with the static tags StatusDI0, StatusDI1 or StatusDI2.
Status of the digital inputs (Compact CPU) You can obtain the status of the digital inputs with the static tags StatusDI0 and StatusDI1. When a digital input of the Compact CPU is not used for a counter, you can use it via the user program.
Use of digital outputs by the user program (TM Count and TM PosInput) You can set the digital outputs with the High_Speed_Counter instruction,  If the "Use by user program" setting is configured for "Set output".  If the "After set command from CPU until comparison value" setting is configured for "Set output".  if you set the corresponding static tag ManualCtrlDQm (temporary overwrite). The static tags SetDQ0 and SetDQ1 only have an effect in these cases. In the first and third case, DQm follows the value of SetDQm. In the second case, DQm is set with a positive edge of SetDQm. DQm is reset when the counter value corresponds to the comparison value or at a negative edge of SetDQm.

128

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
Use digital outputs by user program (Compact CPU) You can set the DQ1 digital output with the High_Speed_Counter instruction.  If the "Use by user program" setting is configured for "Set output".  If the "After set command from CPU until comparison value" setting is configured for "Set output".  if you set the corresponding static tag ManualCtrlDQ1 (temporary overwrite). The static tag SetDQ1 only has an effect in these cases. In the first and third case, DQ1 follows the value of SetDQ1. In the second case, DQ1 is set and reset with a positive edge of SetDQ1 when the counter value corresponds to the comparison value or at a negative edge of SetDQ1.
Note Before you can set a physical digital output of the Compact CPU with the High_Speed_Counter instruction, you have to assign the DQ1 signal to the desired digital output.
You can set the DQ0 signal using the High_Speed_Counter instruction with the static tag StatusDQ0.  If the "Use by user program" setting is configured for "Set output".  If the "After set command from CPU until comparison value" setting is configured for "Set
output".  If you set the static tag ManualCtrlDQ0 (temporary overwrite). The static tag SetDQ0 only has an effect in these cases. In the first and third case, DQ0 follows the value of SetDQ0. In the second case, StatusDQ0 is set and reset with an edge (positive or negative) by SetDQ0 and is reset when the counter value corresponds to the comparison value.
Note The digital output DQ0 is not available as a physical output.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

129

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
Reaction to error If an error has occurred during the call of the instruction or in the technology module, the output parameter Error is set. More detailed error information can be read at the output parameter ErrorID. Eliminate the cause of the error and acknowledge the error message by setting the input parameter ErrorAck. When no more errors are pending, the technology object resets the output parameter Error . No new error is signaled until you acknowledge the previous error.
Changing the count direction The count direction can only be changed by the user program if "Pulse (A)" is configured as the signal type. In all other cases, the count direction is determined by the input signals of the technology module. The count direction is controlled by the static tag NewDirection:  +1: Upward count direction  -1: Downward count direction To execute the change command, you need to set the static tag SetNewDirection = TRUE.

130

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.4

High_Speed_Counter input parameters

Parameter SwGate

Declaration INPUT

Data type
BOOL

Default FALSE

CaptureEnable

INPUT

BOOL FALSE

SyncEnable INPUT

BOOL FALSE

ErrorAck

INPUT

BOOL FALSE

EventAck

INPUT

BOOL FALSE

SetCountValue

INOUT

BOOL FALSE

Description
Control software gate:
· Positive edge: Software gate opens
· Negative edge: Software gate closes Together with the hardware gate, the SwGate enables the internal gate. Enable Capture function After the enable, a Capture event occurs at the next configured edge at the relevant digital input. A negative edge at CaptureEnable resets the output parameter CaptureStatus. A negative edge at CaptureEnable resets the enable even if no Capture event has occurred. Irrespective of CaptureEnable the last value is retained at the output parameter CapturedValue until the next Capture event. Enable synchronization The direction enabled for synchronization is indicated in the static tags SyncUpDirection and SyncDownDirection. A negative edge at SyncEnable resets the output parameter SyncStatus . High_Speed_Counter up to V3.0: A positive edge acknowledges the status reported. High_Speed_Counter as of V3.1: A high level acknowledges the error status reported. A positive edge resets the following output parameters:
· CompResult0
· CompResult1
· ZeroStatus
· PosOverflow
· NegOverflow
A positive edge starts the transfer of the new counter value in the static tag NewCountValue to the technology module. The counter value takes effect immediately after the transfer.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

131

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.5

High_Speed_Counter output parameters

Parameter StatusHW

Declaration OUTPUT

Data type
BOOL

StatusGate StatusUp

OUTPUT OUTPUT

BOOL BOOL

StatusDown OUTPUT BOOL

CompResult0 OUTPUT BOOL

Default FALSE FALSE FALSE FALSE FALSE

CompResult1 OUTPUT BOOL FALSE

SyncStatus OUTPUT BOOL FALSE

CaptureStatus OUTPUT BOOL FALSE

ZeroStatus

OUTPUT BOOL FALSE

PosOverflow OUTPUT BOOL FALSE

NegOverflow OUTPUT BOOL FALSE

Description
Status bit technology module: The module is configured and ready for operation. The module data is valid.
Status bit: Internal gate is released if parameter is set
Status bit: The last count pulse incremented the counter and took place no more than 0.5 s ago
Status bit: The last count pulse decremented the counter and took place no more than 0.5 s ago
Status bit: Compare event for DQ0 occurred (status change) based on the selected comparison condition. If the counter value is set to the start value in operating mode "Use count value as reference", CompResult0 is not set. The positive edge of the input parameter EventAck is used to reset CompResult0 .
Status bit: Compare event for DQ1 occurred (status change) based on the selected comparison condition. If the counter value is set to the start value in operating mode "Use count value as reference", CompResult1 is not set. The positive edge of the input parameter EventAck is used to reset CompResult1 .
Status bit: Synchronization event occurred If the input parameter SyncEnable is set, the configured edge sets the status bit SyncStatus at the respective digital input . SyncStatus is reset by a negative edge at
· SyncEnable (input parameter) or
· SyncUpDirection (static tag) or
· SyncDownDirection (static tag)
Status bit: Capture event occurred, the output parameter CapturedValue has a valid Capture value If the input parameter CaptureEnable is set, the configured edge sets the status bit CaptureStatus. at the respective digital input. You reset CaptureStatus using the negative edge of the input parameter CaptureEnable .
Status bit: CountValue has reached the value "0" irrespective of the count direction You reset ZeroStatus using the positive edge of the input parameter EventAck.
Status bit: CountValue has violated high counting limit in the positive direction You reset PosOverflow using the positive edge of the input parameter EventAck.
Status bit: CountValue has violated low counting limit in the negative direction You reset NegOverflow using the positive edge of the input parameter EventAck.

132

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

Parameter Error ErrorID

Declaration OUTPUT

Data type
BOOL

Default FALSE

OUTPUT WORD 0

CountValue OUTPUT DINT

0

CapturedValue

OUTPUT DINT

0

MeasuredValue
CompareMeasuredValue1

OUTPUT OUTPUT

REAL BOOL

0.0 FALSE

Description
An error has occurred. Refer to the output parameter ErrorID for the cause of the error.
The ErrorID (Page 134) parameter displays the number of the error message. ErrorID = 0000H: There is no error.
Current counter value
The last acquired Capture value The value is retained until the next Capture event, irrespective of the input parameter CaptureEnable. If a new Capture event has occurred, CaptureStatus is set and is reset by you using the negative edge of the input parameter CaptureEnable .
Current measured value for frequency, period duration or velocity (depending on configuration)
Status bit: FALSE: Operating mode "Use count value as reference"; comparison functions work with counter value TRUE: Operating mode "Use measured value as reference"; comparison functions work with measured value

1 Available for High_Speed_Counter version V3.0 or higher

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

133

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.6

Error codes of parameter ErrorID

Error code

Description

(W#16#...) 0000

No error

Error messages from technology module

80A1 80A2 80A3

POWER_ERROR from feedback interface: Incorrect supply voltage L+ ENC_ERROR from feedback interface: Incorrect encoder signal LD_ERROR from feedback interface: Error when loading via control interface

Error messages of the instruction High_Speed_Counter

80B1

Invalid count direction

80B4

For operating mode "Use count value as reference", the following applies: New low counting limit does not meet the following conditions:

· Low counting limit < high counting limit

· Low counting limit <= comparison value/start value

80B5

For operating mode "Use measured value as reference", the following applies: New low counting limit does not meet the following conditions: · Low counting limit < high counting limit · Low counting limit <= start value
For operating mode "Use count value as reference", the following applies: New high counting limit does not meet the following conditions: · Low counting limit < high counting limit · High counting limit >= comparison value/start value

80B6 80B7 80B8

For operating mode "Use measured value as reference", the following applies: New high counting limit does not meet the following conditions: · Low counting limit < high counting limit · High counting limit >= start value New start value does not meet the following condition: · Low counting limit <= start value <= high counting limit New counter value does not meet the following condition: · Low counting limit <= counter value <= high counting limit For operating mode "Use count value as reference", the following applies: New comparison value 0 does not meet the following conditions: · Low counting limit <= comparison value 0 <= high counting limit · Comparison value 0 < comparison value 1

For operating mode "Use measured value as reference", the following applies: New comparison value 0 does not meet the following conditions: · Comparison value 0 < comparison value 1

134

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Error code (W#16#...) 80B9
80C0 80C1 80C2 80C3 80C4 80C5 80C6 80C7

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter
Description
For operating mode "Use count value as reference", the following applies: New comparison value 1 does not meet the following conditions: · Low counting limit <= comparison value 1 <= high counting limit · Comparison value 0 < comparison value 1
For operating mode "Use measured value as reference", the following applies: New comparison value 1 does not meet the following conditions: · Comparison value 0 < comparison value 1 Instruction High_Speed_Counter was called multiple times with the same instance (DB) Communication with technology module failed (read data records): Error information of internal instruction RDREC saved in static tag AdditionalErrorID Communication with technology module failed (write data records): Error information of internal instruction WRREC saved in static tag AdditionalErrorID Access to input data (feedback interface) failed: Error information of internal instruction GETIO_PART saved in static tag AdditionalErrorID Access to output data (control interface) failed: Error information of internal instruction SETIO_PART saved in static tag AdditionalErrorID Reading of the current start information of the OB failed: Error information of internal instruction RD_SINFO saved in static tag AdditionalErrorID Failed to get I/O addresses of the technology module: Error information of internal instruction RD_ADDR saved in static tag AdditionalErrorID Module not inserted or no supply voltage L+

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

135

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

3.6.7

High_Speed_Counter static variables

Tag NewCountValue NewReferenceValue0

Data type DINT DINT

Default L#0 L#0

Access Write Write

NewReferenceValue1

DINT

L#10

Write

NewReferenceValue0_M1 REAL

L#0.0

Write

NewReferenceValue1_M1 REAL

L#10.0

Write

NewUpperLimit NewLowerLimit NewStartValue NewDirection

DINT DINT DINT INT

L#2147483647 L#-2147483648 L#0 0

Write Write Write Write

CurReferenceValue0

DINT

CurReferenceValue1

DINT

CurReferenceValue0_M1 REAL

CurReferenceValue1_M1 REAL

CurUpperLimit CurLowerLimit CurStartValue AdditionalErrorID

DINT DINT DINT DWORD

L#0

Read

L#10

Read

L#0.0

Read

L#10.0

Read

L#2147483647 L#-2147483648 L#0 W#16#0000

Read Read Read Read

Description New counter value
New comparison value 0 in the operating mode "Use count value as reference"
New comparison value 1 in the operating mode "Use count value as reference"
New comparison value 0 in operating mode "Use measured value as reference"
New comparison value 1 in operating mode "Use measured value as reference"
New high counting limit
New low counting limit
New start value
New count direction: +1: Upward count direction -1: Downward count direction
Current comparison value 0 in operating mode "Use count value as reference"
Current comparison value 1 in operating mode "Use count value as reference"
Current comparison value 0 in operating mode "Use measured value as reference"
Current comparison value 1 in operating mode "Use measured value as reference"
Current high counting limit
Current low counting limit
Current start value
Error information of an internal instruction, e.g.,RDREC

136

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.6 Programming the High_Speed_Counter

Tag UserCmdFlags
SetNewDirection SetUpperLimit SetLowerLimit SetReferenceValue0 SetReferenceValue1 SetStartValue SyncDownDirection

Data type STRUCT BOOL BOOL BOOL BOOL BOOL BOOL BOOL

Default FALSE FALSE FALSE FALSE FALSE FALSE TRUE

SyncUpDirection

BOOL

TRUE

SetDQ0 SetDQ1 ManualCtrlDQ0

BOOL BOOL BOOL

FALSE FALSE FALSE

Access
Write Write Write Write Write Write Write
Write
Write Write Write

ManualCtrlDQ1

BOOL

FALSE

Write

UserStatusFlags StatusDI0 StatusDI1 StatusDI2 StatusDQ0 StatusDQ1

STRUCT BOOL BOOL BOOL BOOL BOOL

FALSE FALSE FALSE FALSE FALSE

Read Read Read Read Read

1 Available for High_Speed_Counter version V3.0 or higher

Description
Set new count direction Set high counting limit Set low counting limit Set comparison value 0 Set comparison value 1 Set start value Enable synchronization in downward count direction Enable synchronization in upward count direction Set digital output DQ0 Set digital output DQ1 Enable setting of digital output DQ0: TRUE: · SetDQ0 sets DQ0 · Control bit TM_CTRL_DQ0 = FALSE FALSE: · Setting not enabled · Control bit TM_CTRL_DQ0 = TRUE Enable setting of digital output DQ1: TRUE: · SetDQ1 sets DQ1 · Control bit TM_CTRL_DQ1 = FALSE FALSE: · Setting not enabled · Control bit TM_CTRL_DQ1 = TRUE
Current status of digital input DI0 Current status of digital input DI1 Current status of digital input DI2 Current status of digital output DQ0 Current status of digital output DQ1

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

137

Using the High_Speed_Counter technology object 3.7 Commissioning the High_Speed_Counter

3.7

Commissioning the High_Speed_Counter

3.7.1

Commissioning the technology object
A graphic display of the block in the commissioning editor helps you with commissioning and the function test for the technology object. You can change specific parameters of the High_Speed_Counter instruction in CPU/IM online mode and monitor their effects.

Requirements

 There is an online connection between STEP 7 (TIA Portal) and the CPU.  The CPU is in RUN.  The corresponding High_Speed_Counter instruction is called cyclically from the user
program.  The parameters of the technology object are not overwritten by the user program.

Procedure

To open the commissioning editor of a technology object and to simulate a parameter value change, follow these steps:
1. Open the "Technology objects" folder in the project tree.
2. Open the High_Speed_Counter technology object in the project tree.
3. Double-click on the "Commissioning" object. The functions for commissioning the High_Speed_Counter technology object are displayed.
4. In the commissioning dialog, click on the "Monitor all" button. The parameters (online values) of the High_Speed_Counter technology object are loaded and displayed.
5. If the parameter you want to change has a text box, enter the new value there.
6. Select the check box of the parameter. The new parameter value becomes effective and the effects of the change are simulated.

138

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the High_Speed_Counter technology object 3.7 Commissioning the High_Speed_Counter

Online mode

In online mode, you can modify the following parameters to test the technology object function:  New counter value (NewCountValue)  New high counting limit (NewUpperLimit)  New low counting limit (NewLowerLimit)  New comparison value 0 (NewReferenceValue0 or NewReferenceValue0_M)  New comparison value 1 (NewReferenceValue1 or NewReferenceValue1_M)  New start value (NewStartValue)  Start and stop counter (SwGate)  Enable Capture (CaptureEnable)  Enable synchronization (SyncEnable)  Acknowledgment of signaled error states (ErrorAck)  Resetting the status flag (EventAck)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

139

Using the High_Speed_Counter technology object 3.8 High_Speed_Counter diagnostics

3.8

High_Speed_Counter diagnostics

3.8.1

Monitoring counter values, measured values, DIs and DQs
You use the diagnostic functions to monitor the counting and measuring functions.

Requirements

 There is an online connection between STEP 7 (TIA Portal) and the CPU.  The CPU is in RUN.

Procedure

To open the display editor for the diagnostic functions, follow these steps: 1. Open the "Technology objects" folder in the project tree. 2. Open the High_Speed_Counter technology object in the project tree. 3. Double-click on the "Diagnostics" object. 4. Click the "Monitor all" button.

140

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Display

Using the High_Speed_Counter technology object 3.8 High_Speed_Counter diagnostics
The following values are read by the technology object from the feedback interface and displayed:  Event display/diagnostics information  Signal states of the digital inputs and digital outputs  Counter value  Capture value  Measured value Additional information on status displays is available in the context-sensitive help for each event in STEP 7 (TIA Portal). When the CPU is in STOP, the status display is not updated.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

141

Using the SSI_Absolute_Encoder technology object

4

4.1

Technology object SSI_Absolute_Encoder

STEP 7 (TIA Portal) supports you in the configuration, commissioning and diagnostics of counting and measuring functions for the TM PosInput technology module with the "Technology objects" function in combination with the SSI absolute encoders:

 In STEP 7 (TIA Portal) you configure the SSI_Absolute_Encoder technology object by entering the encoder parameters.

 The corresponding SSI_Absolute_Encoder instruction is programmed in the user program. This instruction supplies the control and feedback interface of the technology module.

The SSI_Absolute_Encoder technology object corresponds to the instance DB of the SSI_Absolute_Encoder instruction. The configuration of the position input and measuring functions is saved in the technology object. The technology object is located in the folder "PLC > Technology objects".

The SSI_Absolute_Encoder technology object can be used for the TM PosInput of both the S7-1500 and ET 200SP systems alike.

Operating mode
In order to assign the technology module parameters using a TM PosInput, you specify the operating mode (Page 181) "Operation with technology objects for "counting and measurement"" in the hardware configuration of the TM PosInput. This selection is already preset.

142

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.2 Overview of the configuration steps

4.2

Overview of the configuration steps

Introduction

The overview below shows the basic procedure for configuring the position input and measuring functions of the technology module with the SSI_Absolute_Encoder technology object.

Requirement

Before you can use the technology object, a project with an S7-1500 CPU or an ET 200SP CPU must be created in STEP 7 (TIA Portal).

Procedure

Proceed in the recommended sequence outlined below:

Step 1 2 3 4 5 6 7

Description Configure a technology module (Page 175) Add technology object (Page 144) Configure a technology object according to your application (Page 146) Call instruction in the user program (Page 163) Load to CPU Commissioning the technology object (Page 172) Diagnostics of the technology object (Page 173)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

143

Using the SSI_Absolute_Encoder technology object 4.3 Add technology object

4.3

Add technology object

Adding a technology object in the project navigation
When a technology object is added, an instance DB is created for the instruction of this technology object. The configuration of the technology object is stored in this instance DB.

Requirement

A project with a CPU S7-1500 has been created.

Procedure

To add a technology object, proceed as follows: 1. Open the CPU folder in the project tree. 2. Open the "Technology objects" folder. 3. Double-click on "Add new object".
The "Add new object" dialog opens. 4. Select the "Counting and measurement" technology. 5. Select the "SSI_Absolute_Encoder" object. 6. Enter an individual name for the technology object in the "Name" text box. 7. Click "Additional information" if you want to add your own information to the technology
object. 8. Confirm with "OK".

144

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Result

Using the SSI_Absolute_Encoder technology object 4.3 Add technology object
The new technology object has now been created and stored in the project tree in the "Technology objects" folder.

Object

Description



Configuration (Page 146) In the configuration dialog:

· Assignment of technology module and channel

· Technology object parameter settings for position input and measurement functions

When you change the configuration of the technology object, you must download the technology object and the hardware configuration to the CPU.



Commissioning

(Page 172)

Commissioning and function test of the technology object: Simulating parameters of the SSI_Absolute_Encoder instruction and monitoring the effects



Diagnostics (Page 173) Monitoring of the position input and measurement functions

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

145

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4

Configuring SSI_Absolute_Encoder

4.4.1

Working with the configuration dialog
You configure the properties of the technology object in the configuration window. Proceed as follows to open the configuration window of the technology object:
1. Open the "Technology objects" folder in the project tree.
2. Open the technology object in the project tree.
3. Double-click on the "Configuration" object.
The configuration is divided into the following categories:
 Basic parameters
The basic parameters include the selection of the technology module and the number of the channel for which the technology object is configured.
 Extended parameters
The extended parameters include the parameters for adapting the position input and measuring functions and for setting the characteristics of the digital inputs and digital outputs.

Configuration window icons
Icons in the area navigation of the configuration show additional details about the status of the configuration:
The configuration contains default values and is complete. The configuration contains only default values. With these default values, you can use the technology object without additional changes. The configuration contains values set by the user or automatically adapted values and is complete All text boxes of the configuration contain valid values and at least one default value was changed. The configuration is incomplete or incorrect At least one text box or drop-down list contains an invalid value. The corresponding field or the drop-down list is displayed on a red background. Click the roll-out error message to indicate the cause of error.

146

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.2

Basic parameters
Under "Basic parameters", you can establish the connection between the technology object and the TM PosInput technology module.

Module

You select the technology module in a subsequent dialog box. All TM PosInput technology modules (central or distributed) that are configured for use with a "Counting and measurement" technology object under the S7-1500 CPU or ET 200SP CPU are available for selection.
After selecting the technology module, you can open the device configuration associated with the technology module by clicking the"Device configuration" button.
The technology module parameter settings required for the use of the technology object are made in the "Extended parameters" of the technology object.

Channel

For a technology module with several channels, you select the number of the channel for which the technology object is valid.
Note A channel can be assigned to only one technology object. A channel that is already assigned to a technology object can no longer be selected.

Synchronization of the parameter values
If, after assignment of the channel to the technology object, there is an inconsistency between the parameter values in the property dialog of the TM PosInput module and in the technology object, a button with a corresponding inquiry appears. When you click the button, the parameter values in the property dialog of the assigned module are overwritten by the parameter values of the technology object within STEP 7 (TIA Portal). The current parameter values of the technology object are displayed in the property dialog of the module (readonly).

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

147

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.3

SSI absolute encoder

Frame length

With the parameter assignment of the frame length, you specify the number of bits of an SSI frame of the SSI absolute encoder (Page 26) used. You can find the frame length of your SSI absolute encoder in the data sheet of the encoder. Special bits are also included in the frame length. A parity bit does not count in the frame length.
A frame length of between 10 bits and 40 bits is permitted. The default setting is "13 Bit".
You can find two examples of the SSI frame format at Examples of the frame format (Page 159).

Code type

You use the parameter assignment of the code type to specify whether the encoder supplies Dual code or Gray code.
You can select from the following options:

Code type Gray (default)
Dual

Meaning The gray-coded position value returned by the SSI absolute encoder is converted to dual code.
The value returned by the SSI absolute encoder is not converted.

Transmission rate With the parameter assignment of the transmission rate, you specify the data transmission rate between the technology module and the SSI absolute encoder.
You can select from the following options:
 125 kHz (preset)
 250 kHz
 500 kHz
 1 MHz
 1.5 MHz
 2 MHz
The maximum transmission rate depends on the cable length and the technical specifications of the SSI absolute encoder. For additional information, refer to the product manual of the TM PosInput and the encoder description.

148

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Monoflop time

With the parameter assignment of the monoflop time, you specify the idle time between two SSI frames.
The configured monoflop time must be at least equal to the monoflop time of the SSI absolute encoder used. You can find this value in the technical specifications of the SSI absolute encoder.
You can select from the following options:
 Automatically (default)
 16 µs
 32 µs
 48 µs
 64 µs

Note
If you select the "Automatic" option, the monoflop time automatically adapts to the encoder used.
In isochronous mode, the "Automatic" option corresponds to a monoflop time of 64 µs. If the monoflop time of the employed SSI absolute value encoder is less than 64 µs, you can select the value of the encoder to achieve faster isochronous times.

Parity

With the parameter assignment of the parity, you specify whether the SSI absolute encoder transfers a parity bit.
If, for example, a 25-bit encoder with parity is assigned, the technology module reads 26 bits. A parity error is indicated by the technology object at the ErrorID output parameter with the value 80A2.

Bit number LSB of the position value This parameter is used to specify the bit number of the LSB (least significant bit) of the position value in the frame of the SSI absolute encoder. In this way you limit the range in the frame that supplies the position value.
The value must be less than the bit number of the MSB of the position value. The difference between the bit numbers of the MSB and the LSB of the position value must be less than 32.
The default setting is "0".
Note
If you have selected the Code type "Gray", only the range from the LSB to the MSB of the position value is converted to binary code.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

149

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder
Bit number MSB of the position value This parameter is used to specify the bit number of the MSB (most significant bit) of the position value in the frame of the SSI absolute encoder. In this way you limit the range in the frame that supplies the position value. The value must be less than the frame length and higher than the bit number of the LSB of the position value. The difference between the bit numbers of the MSB and the LSB of the position value must be less than 32. The default setting is "12".
Note If you have selected the Code type "Gray", only the range from the LSB to the MSB of the position value is converted to binary code.

Invert direction

You can use this parameter to invert the values supplied by the SSIabsolute encoder. This allows you to adapt the detected direction of the encoder to the motor's direction of rotation.

Note
This parameter acts only on the range from the LSB to the MSB of the position value in the frame.

SSI frame

You can also set the following parameters in the graphic with drag-and-drop:
 Frame length
 Bit number LSB of the position value
 Bit number MSB of the position value
Complete SSI frame
If "Complete SSI frame" has been selected as the measured variable, the module returns the least significant 32 bits of the unprocessed current SSI frame as the measured value. The graphic shows the corresponding meaning of a supplied bit. The following abbreviations are used:

V

Value: Position value as gray or dual code

S

Special: Special bit

P

Parity: Parity bit

When you have configured a parity bit, the module returns the least significant 31 bits of the SSI frame and the parity bit.

150

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.4

Behavior of a DI (SSI_Absolute_Encoder)

Setting function of the DI
By configuring a digital input, you specify which functions the digital input triggers at switching.
You can select from the following options:

Function of a digital input Capture (Page 37)
Digital input without function

Meaning
The configured edge at the respective digital input saves the current position value as a Capture value. The technology object displays the Capture value at the output parameter CapturedValue. The function can only be used for one of the two digital inputs.

Additional option-specific parameters
· Input delay · Edge selection · Frequency of the Capture
function

No technological function is assigned to the respective digital input.
You can read the signal state of the digital input via the respective static variable (Page 171) of the technology object:

· Input delay

· UserStatusFlags.StatusDI0

· UserStatusFlags.StatusDI1

Note
You can choose the "Capture" function only in operating mode "Use position value (SSI absolute value) as reference".

Input delay

By configuring the input delay, you suppress interferences at the digital inputs. Signals with a pulse duration below the configured input delay are suppressed. You can select from the following input delays:  None  0.05 ms  0.1 ms (default)  0.4 ms  0.8 ms  1.6 ms  3.2 ms  12.8 ms  20 ms

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

151

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.
Note You configure the input delay under "Behavior of DI0" for all digital inputs together. The input delay is also displayed under "Behavior of DI1".

Edge selection

You can use this parameter to specify the edge of the digital input at which the configured function is triggered for the "Capture" function. You can select from the following options:  At rising edge (default)  At falling edge  At rising and falling edge

Frequency of the Capture function This parameter is used to define the frequency of Capture events (Page 37): You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input saves the current counter value as Capture value.
Each configured edge at the respective digital input saves the current counter value as a Capture value.

Note This parameter is available for SSI_Absolute_Encoder as of V3.0.

152

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.5

Behavior of a DQ (SSI_Absolute_Encoder)

Operating mode
With the operating mode, you specify the reference value with which the comparison functions work.

Operating mode
Use position value (SSI absolute value) as reference (default)
Use measured value as reference

Meaning The comparison functions and hardware interrupts for compare events work with the position value.
The comparison functions and hardware interrupts for compare events work with the measured value.

Note
You configure the operating mode under "Behavior of DQ0" for both digital outputs together. The operating mode is also displayed under "Behavior of DQ1".

Set output

With the parameter assignment of a digital output, you specify the condition upon which the digital output switches.
You can select from the following options depending on the operating mode:

Function of a digital output (Page 52) in operating mode "Use position value (SSI absolute value) as reference"
Between comparison value and high limit (default)

Meaning
The respective digital output is active if: Comparison value <= position value <= maximum position value

Additional option-specific parameters
· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value and low limit

The respective digital output is active if:

· Comparison value 0

Minimum position value <= Position value <= Comparison value

·

Comparison value 1

· Hysteresis (in increments)

Between comparison value 0 and 1

The digital output DQ1 is active if: Comparison value 0 <= position value <= comparison value 1

· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

At comparison value for a pulse duration

The respective digital output is active once for the assigned time and direction of the position value change when the position value is equal to the comparison value or has fallen below or exceeded it.

· Comparison value 0 · Comparison value 1 · Count direction · Pulse duration

· Hysteresis (in increments)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

153

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Function of a digital output (Page 52) in operating mode "Use position value (SSI absolute value) as reference"
After set command from CPU until comparison value

Meaning
When a set command is sent from the CPU, the respective digital output is active for the assigned direction of the position value change until the position value is equal to the comparison value or has fallen below or exceeded it.

Additional option-specific parameters
· Comparison value 0 · Comparison value 1 · Count direction · Hysteresis (in increments)

Use by user program

The respective digital output can be switched by -- the CPU via the control interface (Page 47).

Note
You can only select the "Between comparison value 0 and 1" function for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

Function of a digital output (Page 56) in operating mode "Use measured value as reference"
Measured value >= comparison value (default)
Measured value <= comparison value

Meaning

Additional option-specific parameters

The respective digital output is active if the measured · Comparison value 0

value is greater than or equal to the comparison value.

· Comparison value 1

The respective digital output is active if the measured · Comparison value 0 value is less than or equal to the comparison value. · Comparison value 1

Between comparison value 0 and 1
Not between comparison value 0 and 1
Use by user program

The digital output DQ1 is active if: Comparison value 0 <= measured value <= comparison value 1
The digital output DQ1 is active if: Comparison value 1 <= measured value <= comparison value 0
The respective digital output can be switched by the CPU via the control interface (Page 47).

· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1 --

Note
You can select the "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" functions only for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

154

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder
Comparison value 0
Operating mode "Use position value (SSI absolute value) as reference"
With the parameter assignment of the comparison value (Page 52), you specify the position value at which the digital output DQ0 switches as a result of the selected comparison event.
If you use an SSI absolute encoder with a position value length of up to 31 bits, you must enter a positive integer (DINT) with a value between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, you must enter a signed integer (DINT) with a value between ­2147483648 and 2147483647.
If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0".
Operating mode "Use measured value as reference"
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ0 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.
Comparison value 1
Operating mode "Use position value (SSI absolute value) as reference"
With the parameter assignment of the comparison value (Page 52), you specify the position value at which the digital output DQ1 switches as a result of the selected comparison event.
If you use an SSI absolute encoder with a position value length of up to 31 bits, you must enter a positive integer (DINT) with a value between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, you must enter a signed integer (DINT) with a value between ­2147483648 and 2147483647.
If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "10".
Operating mode "Use measured value as reference"
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The maximum value is 7.922816 x 1028. The default setting is "10.0". The unit of the comparison value depends on the measured variable.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

155

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Count direction

You use this parameter to specify the direction of position value change for which the selected function is valid.
You can select from the following options:

Direction of position value change In both directions (default) Up
Down

Meaning
The comparison and switching of the respective digital output is carried out regardless of whether the position value increases of decreases. The comparison and switching of the respective digital output only takes place when the position value increases. The comparison and switching of the respective digital output only takes place when the position value decreases.

The parameter can be configured for the following functions:

 At comparison value for a pulse duration

 After set command from CPU until comparison value

Pulse duration

By configuring the pulse duration for the function "At comparison value for a pulse duration", you specify the number of milliseconds for which the respective digital output is active.
A value from 0.1 to 6553.5 ms is permissible.
The default setting is "500.0", which is equivalent to a pulse duration of 0.5 s.

Hysteresis (in increments)
By configuring the hysteresis (Page 68), you can define a range around the comparison values. For the functions "Between comparison value and upper counter limit" and "Between comparison value and lower counter limit" the hysteresis also applies at the counter limits. Within the hysteresis range, the digital outputs cannot switch again until the position value has left this range once.
Choose a small enough hysteresis. When the hysteresis range, starting from the configured comparison value, spans the entire position value range, proper functioning of the comparison values cannot be guaranteed.
If a comparison value lies so close to the counter limit that the hysteresis range would extend beyond this counter limit, the hysteresis range ends there.
If you enter "0", the hysteresis is turned off. You can enter a value between 0and 255. The default setting is "0".

Note
You configure the hysteresis under "Behavior of DQ0" for both digital outputs together. The hysteresis is also displayed under "Behavior of DQ1".

Note
The hysteresis is only available in operating mode "Use position value (SSI absolute value) as reference".

156

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.6

Specify measured value (SSI_Absolute_Encoder)

Measured variable
With this parameter you specify whether the technology module is to provide a certain measured variable (Page 63) or the complete SSI frame.
You can select from the following options:

Option Frequency (default)
Period
Velocity
Complete SSI frame

Meaning

Additional option-specific parameters

The measured variable shows the number of increments per

·

second, where each increment corresponds to one position value

change. The value is a floating point number (REAL). The unit is

Hz.

Update time

The technology object displays the measured value at the output parameter MeasuredValue.

The measured variable is the average period between two increments of the position value. The value is an integer (DINT). The unit is s.

· Update time

The technology object displays the measured value at the output parameter MeasuredValue.

The measured variable is a velocity.

· Update time

Examples of a velocity measurement can be found in the expla- · Time base for velocity

nation of the "Increments per unit" parameter.

measurement

The technology object displays the measured value at the output parameter MeasuredValue.

·

Increments per unit

Instead of a measured variable, the first 32 bits of the SSI frame -- are returned (bit 0 to bit 31). In so doing, special bits that do not belong to the position information are also supplied. A configured inversion of the direction is ignored.

The technology object displays the value at the output parameter CompleteSSIFrame.

You can find examples under Examples of the frame format (Page 159). This option is only available in operating mode "Use position value (SSI absolute value) as reference".

Note
If the increment per revolution is required for calculation of the measured values, it is automatically calculated from the parameterized telegram length as the power of 2, e.g. 8192 increments per revolution with a telegram length of 13 bit. If you are using an SSI absolute encoder whose increment per revolution does not correspond to the power of 2, the calculated measured value may be incorrect for a short time.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

157

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Update time

By configuring the update time (Page 63) in milliseconds, you can specify the time interval between two measured value updates. Unsteady measured variables can be smoothed through longer update times
If you enter "0", the measured value is updated once per module-internal cycle. Up to three decimal places can be entered. A value from 0.0 to 25000.0 is permissible. The default setting is "10.0".

Time base for velocity measurement This parameter defines the time base on which the velocity is to be returned. You can select from the following options:  1 ms  10 ms  100 ms  1s  60 s The default setting is "60 s".

Increments per unit With this parameter you define the number of increments per relevant unit that the SSI absolute encoder supplies for the velocity measurement. You can enter a value between 1 and 65535. Example 1: Your absolute encoder operates with a resolution of 12 bits per revolution and performs 4096 increments per revolution. The velocity should be measured in revolutions per minute. In this case, you need to assign the following parameters:  Increments per unit: 4096  Time base for velocity measurement: 60 s Example 2: You encoder delivers 10000 increments for travel over one meter. The velocity is to be measured in meters per second. In this case, you need to assign the following parameters:  Increments per unit: 10000  Time base for velocity measurement: 1 s

158

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

4.4.7

Examples of the frame format

Example 1

In this example the SSI absolute encoder has the following specification:  The encoder has a resolution of 13 bits per revolution and a value range of 12 bits of
revolutions. The SSI frame has a length of 25 bits.  The MSB of the position value is bit 24.  The LSB of the position value is bit 0.  The position value is Gray coded.  A parity bit is not available. The frame has the following format:

MG Multiturn bit as Gray code SG Singleturn bit as Gray code
Complete SSI frame If you configure "Complete SSI frame", the technology module returns the unprocessed SSI frame in the return interface right-justified:

MG Multiturn bit as Gray code SG Singleturn bit as Gray code
Position value feedback value The position value supplied in Gray code is converted into binary code by the technology module and returned right-justified in the feedback interface:

MD Multiturn bit as binary code SD Singleturn bit as binary code
Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

159

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder

Example 2

In this example the SSI absolute encoder has the following specification:  The encoder has a resolution of 17 bits per revolution and a value range of 11 bits of
revolutions. The SSI frame has a length of34 bits.  The MSB of the position value is bit 33.  The LSB of the position value is bit 6.  The position value is Gray coded.  The SSI frame has six special bits.  A parity bit is available. A parity bit does not count in the frame length. The frame has the following format:

MG Multiturn bit as Gray code

SG Singleturn bit as Gray code

Sn

Special bit n

P

Parity bit

Complete SSI frame
If you configure "Complete SSI frame", the technology module returns the least significant 32 bits of the SSI frame as an unprocessed bit string. The technology module returns the bit following the LSB as parity bit. In this example, the technology module therefore returns only the least significant 31 bits of the SSI frame. With the complete SSI frame, you can evaluate the additional special bits in your application.
The returned bit string is structured as follows:

MG Multiturn bit as Gray code

SG Singleturn bit as Gray code

Sn

Special bit n

P

Parity bit

160

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.4 Configuring SSI_Absolute_Encoder
Position value The position value supplied in Gray code is converted into binary code by the technology module and returned right-justified in the feedback interface: The special bits are ignored in this case. The parity bit is evaluated but is not returned with the position value:
MD Multiturn bit as binary code SD Singleturn bit as binary code

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

161

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5
4.5.1

Programming the SSI_Absolute_Encoder
Instruction SSI_Absolute_Encoder

SSI_Absolute_Encoder
The SSI_Absolute_Encoder instruction is part of the SSI_Absolute_Encoder technology object. It supplies the control and feedback interface of the TM PosInput technology module.
The SSI_Absolute_Encoder instruction thereby forms the software interface between the user program and the technology module. It must be called cyclically from the user program in order to synchronize the input and output data.
The SSI_Absolute_Encoder instruction can be used for the TM PosInput of both the S7-1500 and ET 200SP systems alike. The TM PosInput modules can be used centrally and decentrally. The instruction applies in each case to the channel of the technology module that was assigned to the associated technology object.

Additional information Description SSI_Absolute_Encoder (Page 164) Input parameter SSI_Absolute_Encoder (Page 167) Output parameter SSI_Absolute_Encoder (Page 168) Error codes of parameter ErrorID (Page 170) Static tags SSI_Absolute_Encoder (Page 171)

162

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.2

Call instruction in the user program
The SSI_Absolute_Encoder instruction can be called once per channel, either cyclically or in a time-controlled program. The call is not permitted in an event-controlled interrupt program.

Procedure

Proceed as follows to call the instruction in the user program:
1. Open the CPU folder in the project tree.
2. Open the "Program blocks" folder.
3. Double-click the OB for cyclic program execution. The block is opened in the work area.
4. In the "Instructions" window, open the "Technology" group and the "Counting and measurement" folder. The folder contains the instruction.
5. Select the instruction and drag it to your OB. The "Call options" dialog opens.
6. Select a technology object from the "Name" list or enter the name for a new technology object.
7. Confirm with "OK".

Result

If the technology object does not exist yet, it is added. The instruction is added in the OB. The technology object is assigned to this call of the instruction.
Note If you click one of the buttons "Configuration", "Commissioning" or "Diagnostics" in the user interface of the instruction, the respective editor opens.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

163

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.3

Description SSI_Absolute_Encoder

Description

The SSI_Absolute_Encoder instruction is used to control the position input and measuring functions of the technology module TM PosInput via the user program.

Call
The instruction must be called once per channel, either cyclically or in a time-controlled program. The call is not permitted in an event-controlled interrupt program.

Operating principle
Position value: The position value is available at the output parameter PositionValue. The position value is updated every time the instruction is called.
Measured value: The technology module updates the measured value asynchronously to the instruction call based on the configured update time. The measured value last determined by the technology module is updated at the output parameter MeasuredValue each time the instruction is called.
Measured value and position value are available in parallel as output parameters.
Instead of a measured value, the complete SSI frame can be returned at the output parameter CompleteSSIFrame. Either MeasuredValue or CompleteSSIFrame is valid, depending on the parameter assignment.
Capture: The output parameter CaptureStatus = TRUE indicates a valid Capture value at the output parameter CapturedValue.
 A Capture value is captured under the following conditions:
­ A digital input has the parameter assignment "Capture"
­ CaptureEnable = TRUE
­ Edge at digital input with the Capture function
 The output parameter CaptureStatus is reset by a negative edge at the input parameter CaptureEnable.

164

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

Parameter changes via the user program
Proceed as follows to modify parameters using the user program:
1. Check the relevant Set tag to establish whether the technology object is ready for the parameter change (Set tag = FALSE) or whether a change job is still running (Set tag = TRUE). The following Set tags in UserCmdFlags are available for this in the static tags of the technology object instance DB:
­ SetReferenceValue0
­ SetReferenceValue1
2. If the technology object is ready for the parameter change, modify the relevant static tag. The following static tags of the technology object instance DB are available for this:
­ NewReferenceValue0 / NewReferenceValue0_M (for SetReferenceValue0)
­ NewReferenceValue1 / NewReferenceValue1_M (for SetReferenceValue1)
3. Set the relevant Set tag for execution of the change job.
4. Use the output parameter Error to check whether an error has occurred. If no errors have occurred and the Set tag has been automatically reset by the technology object, the parameter change was successful.

Operating mode Configure the operating mode in the technology object under "Behavior of DQ0". The operating mode is indicated by the output parameters CompareMeasuredValue:

State FALSE
TRUE

Description Operating mode "Use position value (SSI absolute value) as reference": The comparison functions work with the position value. The following static variables are specifically used in this operating mode:
· NewReferenceValue0
· NewReferenceValue1
· CurReferenceValue0
· CurReferenceValue1 The four specific static variables of operating mode "Use measured value as reference" are ignored. Operating mode "Use measured value as reference": The comparison functions work with the measured value. The following static variables are specifically used in this operating mode:
· NewReferenceValue0_M
· NewReferenceValue1_M
· CurReferenceValue0_M
· CurReferenceValue1_M The four specific static tags of operating mode "Use position value (SSI absolute value) as reference" are ignored.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

165

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

Acknowledgment of events You acknowledge signaled events using the positive edge of the input parameter EventAck . EventAck must stay set until the technology object has reset the status bits of the following events of the count channel:
 CompResult0
 CompResult1
 ZeroStatus
 PosOverflow
 NegOverflow

Status of the digital inputs You obtain the status of the digital inputs via the static tags StatusDI0 and StatusDI1.

Using digital outputs with user program In the following cases you can set the digital outputs via the instruction:

Case

Description

The setting "Use by user program" is configured for "Set output".

The respective digital output DQM follows the value of SetDQm.

The setting "After set command from CPU until The respective digital output DQm is set with a neg-

comp. value" is configured for "Set output".

ative edge of SetDQm. DQm is reset when the posi-

tion value corresponds to the comparison value or at

a negative edge of SetDQm.

Set the respective static variable ManualCtrlDQm (temporary overwrite).

The respective digital output DQM follows the value of SetDQm.

Reaction to error
If an error has occurred during the call of the instruction or in the technology module, the output parameter Error is set. More detailed error information can be read at the output parameter ErrorID (Page 170).
Eliminate the cause of the error and acknowledge the error message by setting the input parameter ErrorAck. When no more errors are pending, the technology object resets the output parameter Error . No new error is signaled until you acknowledge the previous error.

166

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.4

Input parameter SSI_Absolute_Encoder

Parameter
CaptureEnable

Declaration INPUT

Data type
BOOL

Default FALSE

ErrorAck

INPUT

BOOL FALSE

EventAck

INPUT

BOOL FALSE

Description
Enable Capture function After the enable, a Capture event occurs at the next configured edge at the relevant digital input. A negative edge at CaptureEnable resets the output parameter CaptureStatus. A negative edge at CaptureEnable resets the enable even if no Capture event has occurred. Irrespective of CaptureEnable the last value is retained at the output parameter CapturedValue until the next Capture event. SSI_Absolute_Encoder V1.0: A positive edge acknowledges the error status reported. SSI_Absolute_Encoder as of V2.0: A high level acknowledges the error status reported. A positive edge resets the following output parameters:
· CompResult0
· CompResult1
· ZeroStatus
· PosOverflow
· NegOverflow

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

167

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.5

Output parameter SSI_Absolute_Encoder

Parameter StatusHW

Declaration OUTPUT

Data type
BOOL

StatusUp

OUTPUT BOOL

StatusDown OUTPUT BOOL

CompResult0 OUTPUT BOOL

Default FALSE FALSE FALSE FALSE

CompResult1 OUTPUT BOOL FALSE

CaptureStatus OUTPUT BOOL FALSE

Cap-

OUTPUT DINT

0

turedValue

ZeroStatus

OUTPUT

BOOL FALSE

PosOverflow OUTPUT BOOL FALSE

NegOverflow OUTPUT BOOL FALSE

Error ErrorID

OUTPUT OUTPUT

BOOL FALSE WORD 0

PositionValue OUTPUT DINT

0

Description
Status bit technology module: The module is configured and ready for operation. The module data is valid.
Status bit: Last position value has changed in the positive direction and took place no more than 0.5 s ago.
Status bit: Last position value has changed in the negative direction and took place no more than 0.5 s ago.
Status bit: Comparison event for DQ0 (change of state) occurs as a result of the selected comparison condition.
The positive edge of the input parameter EventAck is used to reset CompResult0 .
Status bit: Comparison event for DQ1 (change of state) occurs as a result of the selected comparison condition.
The positive edge of the input parameter EventAck is used to reset CompResult1 .
Status bit: Capture event occurred, the output parameter CapturedValue has a valid Capture value
If the input parameter CaptureEnable is set, the configured edge sets the status bit CaptureStatus. at the respective digital input.
You reset CaptureStatus using the negative edge of the input parameter CaptureEnable .
The last acquired Capture value The value is retained until the next Capture event, irrespective of the input parameter CaptureEnable.
If a new Capture event has occurred, CaptureStatus is set and is reset by you using the negative edge of the input parameter CaptureEnable .
Status bit: PositionValue has reached or exceeded the value "0" irrespective of the count direction.
You reset ZeroStatus using the positive edge of the input parameter EventAck.
Status bit: PositionValue has exceeded the high limit of the position value range of the encoder in the positive direction.
You reset PosOverflow using the positive edge of the input parameter EventAck.
Status bit: PositionValue has exceeded the low limit of the position value range of the encoder in the negative direction.
You reset NegOverflow using the positive edge of the input parameter EventAck.
An error has occurred. Refer to the output parameter ErrorID for the cause of the error.
The ErrorID (Page 170) parameter displays the number of the error message.
ErrorID = 0000H: There is no error.
Current position value

168

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

Parameter
MeasuredValue

Declaration OUTPUT

Data type
REAL

Default 0.0

CompleteSSIFrame

OUTPUT DWORD 0

CompareMeasuredValue

OUTPUT BOOL FALSE

Description
Current measured value for frequency, period duration or velocity (depending on configuration) Either MeasuredValue or CompleteSSIFrame is valid, depending on the parameter assignment in the technology object under "Measured value".
Last received complete SSI frame (least significant 32 bits) Either MeasuredValue or CompleteSSIFrame is valid, depending on the parameter assignment in the technology object under "Measured value".
Status bit: FALSE: Operating mode "Use position value (SSI absolute value) as reference"; position value is used as reference TRUE: Operating mode "Use measured value as reference"; measured value is used as reference

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

169

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.6

Error codes of parameter ErrorID

Error code

Description

(W#16#...)

0000

No error

Error messages from technology module

80A1

POWER_ERROR from feedback interface: Incorrect supply voltage L+

80A2

ENC_ERROR from feedback interface: Incorrect encoder signal

80A3

LD_ERROR from feedback interface: Error when loading via control interface

Error messages of the instruction SSI_Absolute_Encoder

80B8

New comparison value 0 does not meet the following conditions:

· Low counting limit <= comparison value 0 <= high counting limit

· Comparison value 0 < comparison value 1

80B9

New comparison value 1 does not meet the following conditions:

· Low counting limit <= comparison value 1 <= high counting limit · Comparison value 0 < comparison value 1

80C0 80C1 80C2 80C5 80C6 80C7

Instruction was called multiple times with the same instance (DB)
Communication with technology module failed (read data records): Error information of internal instruction RDREC saved in static tag AdditionalErrorID
Communication with technology module failed (write data records): Error information of internal instruction WRREC saved in static tag AdditionalErrorID
Reading of the current start information of the OB failed: Error information of internal instruction RD_SINFO saved in static tag AdditionalErrorID
Failed to get I/O addresses of the technology module: Error information of internal instruction RD_ADDR saved in static tag AdditionalErrorID
Module not inserted or no supply voltage L+

170

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.5 Programming the SSI_Absolute_Encoder

4.5.7

Static tags SSI_Absolute_Encoder

Tag NewReferenceValue0

Data type DINT

Default L#0

NewReferenceValue1

DINT

L#10

NewReferenceValue0_M REAL

NewReferenceValue1_M REAL

CurReferenceValue0

DINT

L#0.0 L#10.0 L#0

CurReferenceValue1

DINT

L#10

CurReferenceValue0_M REAL

L#0.0

CurReferenceValue1_M REAL

L#10.0

AdditionalErrorID

DWORD W#16#0000

UserCmdFlags SetReferenceValue0 SetReferenceValue1 SetDQ0 SetDQ1 ManualCtrlDQ0

STRUCT BOOL BOOL BOOL BOOL BOOL

FALSE FALSE FALSE FALSE FALSE

ManualCtrlDQ1

BOOL

FALSE

UserStatusFlags StatusDI0 StatusDI1 StatusDQ0 StatusDQ1

STRUCT BOOL BOOL BOOL BOOL

FALSE FALSE FALSE FALSE

Access Write
Write
Write Write Read
Read
Read Read Read
Write Write Write Write Write
Write
Read Read Read Read

Description New comparison value 0 in operating mode "Use position value (SSI absolute value) as reference" New comparison value 1 in operating mode "Use position value (SSI absolute value) as reference" New comparison value 0 in operating mode "Use measured value as reference" New comparison value 1 in operating mode "Use measured value as reference" Current comparison value 0 in operating mode "Use position value (SSI absolute value) as reference" Current comparison value 1 in operating mode "Use position value (SSI absolute value) as reference" Current comparison value 0 in operating mode "Use measured value as reference" Current comparison value 1 in operating mode "Use measured value as reference" Error information of an internal instruction, e.g.,RDREC
Set comparison value 0 Set comparison value 1 Set digital output DQ0 Set digital output DQ1 Enable setting of digital output DQ0. TRUE: SetDQ0 sets DQ01 FALSE: Setting not enabled Enable setting of digital output DQ1: TRUE: SetDQ1 sets DQ11 FALSE: Setting not enabled
Current status of digital input DI0 Current status of digital input DI1 Current status of digital output DQ0 Current status of digital output DQ1

1 The instruction sets the TM_CTRL_DQm bit to FALSE. in the control interface of the module. The static tag SetDQm acts on the control bit SET_DQm.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

171

Using the SSI_Absolute_Encoder technology object 4.6 Commissioning SSI_Absolute_Encoder

4.6

Commissioning SSI_Absolute_Encoder

4.6.1

Commissioning the technology object
A graphic display of the block in the commissioning editor helps you with commissioning and the function test for the technology object. You can change specific parameters of the SSI_Absolute_Encoder instruction in CPU/IM online mode and monitor their effects.

Requirements

 There is an online connection between STEP 7 (TIA Portal) and the CPU.  The CPU is in RUN.  The corresponding SSI_Absolute_Encoder instruction is called cyclically from the user
program.  The parameters of the technology object are not overwritten by the user program.

Procedure

To open the commissioning editor of a technology object and to simulate a parameter value change, follow these steps:
1. Open the "Technology objects" folder in the project tree.
2. Open the SSI_Absolute_Encoder technology object in the project tree.
3. Double-click on the "Commissioning" object. The functions for commissioning the SSI_Absolute_Encoder technology object are displayed.
4. In the commissioning dialog, click on the "Monitor all" button. The parameters (online values) of the SSI_Absolute_Encoder technology object are loaded and displayed.
5. If the parameter you want to change has a text box, enter the new value there.
6. Select the check box of the parameter. The new parameter value becomes effective and the effects of the change are simulated.

Online mode

In online mode, you can modify the following parameters to test the technology object function:  New comparison value 0 (NewReferenceValue0 or NewReferenceValue0_M)  New comparison value 1 (NewReferenceValue1 or NewReferenceValue1_M)  Enable Capture (CaptureEnable)  Acknowledgment of signaled error states (ErrorAck)  Resetting the status flag (EventAck)

172

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the SSI_Absolute_Encoder technology object 4.7 SSI_Absolute_Encoder diagnostics

4.7

SSI_Absolute_Encoder diagnostics

4.7.1

Monitoring counter values, measured values, DIs and DQs
The diagnostic functions are used to monitor the position input and measuring functions.

Requirements

 There is an online connection between STEP 7 (TIA Portal) and the CPU.  The CPU is in RUN.

Procedure

To open the display editor for the diagnostic functions, follow these steps: 1. Open the "Technology objects" folder in the project tree. 2. Open the SSI_Absolute_Encoder technology object in the project tree. 3. Double-click on the "Diagnostics" object. 4. Click the "Monitor all" button.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

173

Using the SSI_Absolute_Encoder technology object 4.7 SSI_Absolute_Encoder diagnostics

Display

The following values are read by the technology object from the feedback interface and displayed:  Event display/diagnostics information  Signal states of the digital inputs and digital outputs  Position value  Capture value  Measured value Additional information on status displays is available in the context-sensitive help for each event in STEP 7 (TIA Portal). When the CPU is in STOP, the status display is not updated.

174

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module

5

5.1

Using the technology module

5.1.1

Convention
Technology module: We use the term "technology module" in this documentation both for the technology modules TM Count and TM PosInput and the technology component of the compact CPUs.

5.1.2

Configuring a module

5.1.2.1

Adding a technology module for hardware configuration (TM Count and TM PosInput)

Requirement

 The project has been created.  The CPU S7-1500 has been created.  At decentralized operation a distributed I/O ET 200 is created.

Procedure

To add a technology module to the hardware configuration, proceed as follows: 1. Open the device configuration of the CPU or IM. 2. Select a module rack. 3. Select the technology module from the module catalog:
"Technology module > Counting or Position input > Technology module > Article number" 4. Drag the technology module to the required slot in the module rack.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

175

Using the module 5.1 Using the technology module

5.1.2.2

Adding a technology module to hardware configuration (Compact CPU)

Requirement

The project has been created.

Procedure

To add a Compact CPU to the project tree, follow these steps:
1. Double-click "Add new device". The "Add new object" dialog opens.
2. Select Controller".
3. Select the Compact CPU: "SIMATIC S7-1500 > CPU > Compact CPU > Article number"
4. Confirm with "OK".

Result

The new Compact CPU is displayed with the following objects in the project tree. Doubleclick to open the required editor.

Object

Description

 Device configuration In the Inspector window (per channel):

(Page 179)

· Activation of the counter (Page 188)

· Assign signals to inputs and outputs (Page 189)

· Setting the reaction to CPU STOP (Page 179)

· Enable diagnostic interrupts (Page 181)

· Setting the operating mode (Page 181)

· Enable hardware interrupts (Page 186)

· Setting the module addresses

 Online & Diagnostics · Hardware diagnostics

(Page 218)

· Obtain information about the Compact CPU

· Run firmware update

176

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

5.1.2.3 Opening

Open hardware configuration
To open the hardware configuration, follow these steps: 1. Open the device configuration of the CPU or IM. 2. Select the device view. 3. Click on the module.

5.1.2.4

Parameter assignment options

Counting, measuring and position input with SSI absolute encoder
For the counting and measuring function as well as the position input with an SSI absolute encoder, you have the following alternatives for parameter assignment and control of the technology module:
 Configuration of a technology object and control using the related instruction:
When using an incremental or pulse encoder, we recommend the simple configuration with graphic support using thee High_Speed_Counter technology object. A detailed description of this configuration can be found in section Technology Object High_Speed_Counter (Page 97).
When using an SSI absolute value encoder, we recommend the simple configuration with graphic support using the SSI_Absolute_Encoder technology object. A detailed description of this configuration can be found in section Technology Object High_Speed_Counter (Page 142).
For configuration of a technology object, select the operating mode (Page 181) "Operating with "Counting and measurement" technology object".
 Parameter setting via hardware configuration and control via the control and feedback interface of the technology module:
Select the operating mode (Page 181) "Manual operation (without technology object)" for this.
A description of the control and feedback interface for TM Count and TM PosInput is available in the following sections:
Assignment of the control interface (Page 219)
Assignment of the feedback interface (Page 222)
 Parameter settings via GSD file and control via the control and feedback interface of the technology module.
A description of the control and feedback interface for TM Count and TM PosInput is available in the following sections:
Assignment of the control interface (Page 219)
Assignment of the feedback interface (Page 222)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

177

Using the module 5.1 Using the technology module
Position input for Motion Control Alternatively, you have the option of using the technology module for position input for Motion Control. Select the operating mode (Page 181) "Position input for "Motion Control" technology object" and assign the parameters of the encoder using the module parameters (Page 183) in the device configuration of the technology module. You perform the rest of the configuration of this application using an axis technology object of S7-1500 Motion Control .

178

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

5.1.2.5

Basic parameters

Reaction to CPU STOP
Reaction to CPU STOP
You set the response of the technology module for each channel to CPU STOP in the basic parameters of the device configuration.

Option Continue operation Output substitute value
Keep last value

Meaning
The technology module remains fully functional. Incoming count pulses are processed or the actual position is read. The digital outputs continue to switch according to the parameter assignment.
The technology module outputs the configured substitute values at the digital outputs until the next CPU STOP-RUN transition.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.
The technology module outputs the values at the digital outputs that were valid when the transition to STOP took place until the next CPU STOP-RUN transition.
If a digital output with the function "In case of comparison value for a pulse duration" is set at CPU stop, the digital output is reset after expiry of pulse duration.
The technology module is returned to its startup state after a STOP-RUN transition: The counter value is set to the Start value (with incremental encoders or pulse encoders) and the digital outputs switch according to the parameter assignment.

Substitute value for DQ0 (TM Count und TM PosInput) This parameter lets you specify which value the technology module is to output to the digital output DQ0 in the event of a CPU STOP under "Output substitute value".
Note In operating mode "Operating with "Counting and measurement" technology object", you assign this parameter using the technology object.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

179

Using the module 5.1 Using the technology module
Substitute value for DQ0 (Compact CPU) You can use this parameter to specify the value to be output for a STOP of the Compact CPU in the feedback interface for DQ0 in the context of the "Substitute value for DQ0" behavior.
Note In operating mode "Operating with "Counting and measurement" technology object", you assign this parameter using the technology object.
Substitute value for DQ1 This parameter lets you specify which value the technology module is to output to the digital output DQ1 in the event of a CPU STOP under "Output substitute value".
Note In operating mode "Operating with "Counting and measurement" technology object", you assign this parameter using the technology object.
Diagnostic interrupts (TM Count and TM PosInput) The technology module can trigger additional diagnostic interrupts when you enable the diagnostic interrupts in the basic parameters. These diagnostic interrupts are processed in an interrupt OB. Detailed information on the error event is available in the error organization block with the instruction "RALRM" (read alarm supplementary information) and in the Diagnostics function manual (https://support.industry.siemens.com/cs/ww/en/view/59192926), section "System diagnostics by means of the user program".
Enable diagnostic interrupt on wire break You use this parameter to specify whether a diagnostic interrupt is to be triggered in the event of wire breaks of the utilized signals for the following encoders:  Push-pull 24 V encoder (Page 71)  RS422 encoder (Page 73) (additionally monitored for short-circuits and incorrect supply
voltage)  SSI absolute encoder (Page 75) (additionally monitored for short-circuits and incorrect
supply voltage)
Note If you use an encoder with a different sensor type or interface standard, wire break cannot be detected.

180

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Enable additional diagnostic interrupts
You use this parameter to specify whether diagnostic interrupts are to be triggered for additional errors.
See the device manual for the technology module to find out which errors during operation can trigger a diagnostic interrupt.

Diagnostics interrupts (Compact CPU)
Enable diagnostic interrupts
A Compact CPU can trigger diagnostic interrupts for certain faults if you have enabled diagnostic interrupts. These diagnostic interrupts are processed in an interrupt OB.
You use this parameter to determine if the Compact CPU should trigger diagnostic interrupts when a given error occurs.
See the device manual for the Compact CPU to find out which errors can trigger a diagnostic interrupt during operation. The diagnostic interrupts are not enabled in the default setting.

Operating mode
Selection of the operating mode for the channel
This setting defines how the channel counting and measuring functions are to be configured and controlled.

Operating mode Operating with "Counting and measurement" technology object
Position input for "Motion Control" technology object

Description
A technology object is used for the parameter assignment of the channel.
The related instruction for the technology object in the user program provides the access to the control and feedback interfaces of the technology module.
You specify the assignment between the technology module/channel and technology object in the basic parameters of the technology object.
The technology module is used for position input for a higher-level Motion Control controller. This operating mode affects all channels of the technology module for TM Count and TM PosInput. Setting the operating mode only affects the given channel of the Compact CPU.
Parameter assignment is implemented via the Device configuration of the technology module. Parameter assignment of the encoder signals is implemented by means of the Module parameters (Page 183).

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

181

Using the module 5.1 Using the technology module

Operating mode Manual operation (without technology object)
Fast Mode

Description
Parameter assignment of the channel is effected via the hardware configuration of the technology module:
· Manual operation (incremental or pulse encoder) (Page 190)
· Manual operation (SSI absolute encoder) (Page 207) You have direct access to the control and feedback interface of the channel through the user program.
The technology module is used for very fast detection of the count or position value. No control interface is available. The parameter setting (hardware configuration) of the module is used for the parameter assignment of the channel. You have direct access to the feedback interface of the channel through the user program.
This operating mode is not supported by every technology module.

Note GSD file
When using a GSD file you determine the operating mode via the selection of the module name in the hardware catalog. You can select manual operation or Fast Mode in the process.

Selection of the operating mode for the channel
You use this parameter in "Manual operation" to specify the main task for which the channel of the technology module is used. This defines the setting options under "Parameters" (hardware configuration).

Operating mode Counting (Page 24) / Position input (Page 26)
Measuring (Page 58)

Description
The main function of the channel is counting or position input. The comparison functions and hardware interrupts work with the counter value or position value. The measured values are available concurrently.
The main function of the channel is counting. The comparison functions (Page 56) and hardware interrupts for compare events work with the measured value. The counter value is available concurrently.

Note GSD file
When using a GSD file you determine the operating type via the selection of the module name in the hardware catalog.

182

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Module parameters (position input for Motion Control) In operating mode "Position input for "Motion Control" technology object", the parameters for the encoder signals of the channel are assigned under "Module parameters". The parameters depend on the encoder used.
Note You cannot use this operating mode with a GSD file.

Module parameters for incremental encoders and pulse encoders If you use an incremental or pulse encoder, you need to configure the following parameters for the encoder signals of the channel.  Signal type  Invert direction  Signal evaluation  Filter frequency  Sensor type (for TM Count)  Interface standard (for TM PosInput)  Signal selection for reference mark 0  Measuring input  Increments per revolution  Steps per revolution  Reference speed You can find a description of the first six parameters in section Counter inputs (Page 190).
Module parameters for SSI absolute encoders If you use an TM PosInput with an SSI absolute encoder, you need to configure the following parameters for the encoder signals of the channel.  Signal type  Invert direction  Frame length  Code type  Transmission rate  Monoflop time  Parity  Bit number LSB of the position value  Bit number MSB of the position value

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

183

Using the module 5.1 Using the technology module

 Measuring input  Steps per revolution  Number of revolutions  Reference speed You can find additional information on the first new parameters in section Counter inputs (Page 207).

Signal selection for reference mark 0
You can use this parameter to specify the external reference signal upon which a new reference mark is saved for the encoder position.
You can select from the following options:

Option None1 DI0 (preset for TM Count and TM PosInput)
Signal N of incremental encoder (default for Compact CPU2)

Meaning
No external reference signal is used.
The current counter value is saved as the new encoder position reference mark upon a positive edge at digital input DI0.
The current counter value is saved as the new encoder position reference mark upon a positive edge of the signal N of incremental encoder.

1 Only available with Compact CPU
2 Exceptions: "DI0" is the default for HSC 3 and HSC 6 on the 1511C as well as on the 1512C in compatibility mode

Measuring input (TM Count and TM PosInput)
The parameter specifies that the hardware digital input DI1 serves as a measuring input. For rising, falling or both edges of the DI1, the current counter value or position value is saved as the current encoder position. The value of the parameter cannot be changed.

Measuring input (compact CPU)
This parameter is used to define the hardware input which is used as the external measuring input for saving the encoder position.
You can select from the following options:

Option None (default)
DI1

Meaning No external measuring input is used.
The hardware digital input DI1 serves as the measuring input. For rising, falling or both edges of the DI1, the current counter value is saved as current encoder position.

184

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Increments per revolution
With this parameter you specify the line count of the incremental and pulse encoder. The line count can be found in the data sheet for the encoder.

Steps per revolution (incremental and pulse encoder) The parameter specifies the number of count pulses per encode rotation. The number of count pulses depends on the increment per rotation and the parameterized signal evaluation.
Example: Your incremental or pulse encoder delivers 2048 increments per revolution. Depending on the signal evaluation the following value is displayed:

Signal evaluation Single Double Quadruple

Steps per revolution 2048 4096 8192

Steps per revolution (SSI absolute encoder)
With this parameter you define the number of increments the SSI absolute encoder supplies per revolution.

Number of revolutions
The parameter specifies how many rotations the value range of the SSI absolute encoder encompasses.
The value is calculated from the parameterized values for the bit numbers LSB and MSB of the position value as well as the steps per revolution.

Reference speed
The encoder transmits the process value of the speed as a percentage of the reference speed. This parameter defines the speed in rpm which is to be correspond to the value 100 % . The reference speed must be identical to the setting in the controller.
You can enter a value between 6.00 and 210000.00. The default setting is "3000.00".

Further configuring
You can perform the further configuration by using an axis or measuring input technology object of S7-1500 Motion Control . See the S7-1500 Motion Control (https://support.industry.siemens.com/cs/ww/en/view/59381279) and S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326) function manuals for further details on configuring and commissioning position input and the measuring input technology object.

See also Position detection for Motion Control (Page 70)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

185

Using the module 5.1 Using the technology module

Hardware interrupts You can set for each channel the events which are to trigger a hardware interrupt during operation when assigning the basic parameters of the technology module. In an S7-1500 system, you enter a matching event name for each enabled hardware interrupt and assign a corresponding hardware interrupt OB to each hardware interrupt. If a hardware interrupt is triggered, the corresponding OB is started to evaluate the hardware interrupt data.
Note In the following cases you can only release only one hardware interrupt per module. · Distributed operation with an S7-300/400 CPU · Use of a GSD file
A hardware interrupt is triggered if the condition for changing the respective status bit or event bit in the feedback interface is fulfilled.

Lost hardware interrupt
If the hardware interrupts are triggered more quickly by the system than they can be acknowledged, hardware interrupts are lost and the "Hardware interrupt" diagnostics interrupt is signaled.

Hardware interrupts that can be activated

Hardware interrupt

Available in counting mode using
Incremen- SSI absotal or pulse lute enencoder coder

New Capture Yes

Yes

value availa-

ble

Synchroniza- Yes

No

tion of the

counter by an

external signal

Gate start

Yes

No

Gate stop

Yes

No

Overflow (high Based on No

counting limit counter

violated)

value

Available in measuring mode using
Incremen- SSI absotal or pulse lute enencoder coder

No

No

Yes

No

Yes

No

Yes

No

Based on No counter value

Available in operating mode Position input for "Motion Control" technology object No
No
No
No
No

Description
Hardware interrupt when current counter value or position value is saved as Capture value Hardware interrupt upon synchronization of the counter by signal N or DI edge Hardware interrupt when internal gate opens Hardware interrupt when internal gate closes Hardware interrupt when counter value exceeds high counting limit

Event Type number
1000B
1001B
0001B 0010B 0011B

186

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Hardware interrupt

Available in counting mode using
Incremen- SSI absotal or pulse lute enencoder coder

Underflow (low counting limit violated) Change of direction1
Zero crossing
Comparison event for DQ0 occurred

Based on counter value
Based on counter value
Based on counter value
Based on counter value

No
Based on position value Based on position value Based on position value

Comparison Based on

event for DQ1 counter

occurred

value

Based on position value

Available in measuring mode using
Incremen- SSI absotal or pulse lute enencoder coder

Based on counter value
Based on counter value
Based on counter value
Based on measured value

No
Based on position value Based on position value Based on measured value

Based on Based on

measured measured

value

value

Available in operating mode Position input for "Motion Control" technology object No
No
No
No
No

Description

Event Type number

Hardware interrupt when counter value falls below low counting limit
Hardware interrupt when counter value or position value changes direction
Hardware interrupt with zero crossing of counter value or position value
Hardware interrupt when a comparison event for DQ0 occurs as a result of the selected comparison condition.
No hardware interrupt when the change of the counter value for an incremental or pulse encoder was not caused by a count pulse
Hardware interrupt when a comparison event for DQ1 occurs as a result of the selected comparison condition.
No hardware interrupt when the change of the counter value for an incremental or pulse encoder was not caused by a count pulse

0100B 1010B 0111B 0101B
0110B

1 The STS_DIR feedback bit has a default of "0". A hardware interrupt is not triggered when the first change to the counter value or position value immediately after the technology module is switched on is in the down direction.

Default setting No hardware interrupts are enabled in the default setting.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

187

Using the module 5.1 Using the technology module

5.1.2.6

Additional parameters for Compact CPU

Introduction

When using a Compact CPU, the following parameters are additionally available for the signals of the high-speed counter.

Compatibility 1511C (high-speed counters of Compact CPU 1512C-1 PN)
Front connector assignment same as CPU 1511C
You can use this parameter to specify if the pin assignment for the front connector of the CPU 1511C-1 PN is to be used for the high-speed counter of the CPU 1512C-1 PN:

Option Disabled (default)
Enabled

Meaning
CPU 1512C-1 PN uses the pin assignment of the onboard front connector. 1512C-1 PN supports the use of the connections of both front connectors of the digital onboard I/Os for the high-speed counter. The assignment of hardware inputs and outputs for the HSC channels is described in the CPU 1512C-1 PN manual.
CPU 1512C-1 PN uses the pin assignment of the front connector of the CPU 1511C-1 PN. 1511C-1 PN supports the use of the connections of the first front connector of the digital onboard I/Os for the high-speed counter. The assignment of hardware inputs and outputs for the HSC channels is described in the CPU 1511C-1 PN manual.

General

Activate this high-speed counter
You can use this parameter to specify whether the respective high speed counter is to be used:

Option Disabled (default)
Enabled

Meaning
The high-speed counter is not used. The counter uses no connections of the onboard front connector and can not trigger interrupts. Writing to its control interface is ignored and its feedback interface returns zero values.
The high-speed counter is used. The assignment of HSC addresses to the connections of the onboard front connector is described in the device manual of the Compact CPU.

188

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Hardware inputs/outputs Clock generator input (A) / Pulse input (A) / Clock generator forward (A) This parameter specifies which input is used for the encoder signal A for the respective counter. The value cannot be changed.
Clock generator input (B) / Pulse input (B) / Clock generator forward (B) If you use an encoder with multiple signals for the respective counter, this parameter specifies which input is used for the encoder signal B. The value cannot be changed.
Reset input (N) If you use an incremental encoder for the respective counter, this parameter specifies which input is used for the reset input (encoder signal N). The value cannot be changed.
HSC DI0 / HSC DI1 This parameter determines which digital input of the Compact CPU is to be used as the DIm of the counter.
Note You can configure the input delay for a digital input in the Inspector window of the device configuration under "Properties > DI 16/DQ 16 > Inputs > Channel n".
HSC DQ0 You can read the status of the DQ0 via the feedback interface. You cannot assign DQ0 to a physical digital output of the Compact CPU.
HSC DQ1 This parameter determines which digital output of the Compact CPU is to be used as DQ1. You can select an output with an output delay of 5 µs or 500 µs. You can find an overview of the output delay for all digital outputs in the device manual of the Compact CPU.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

189

Using the module 5.1 Using the technology module

5.1.2.7

Manual operation (incremental or pulse encoder)

Counter inputs

Signal type You can choose from the following signal types (Page 71):

Signal type
Incremental encoder (A, B phase-shifted)

Meaning
An incremental encoder with phaseshifted A and B signals is connected.

Additional option-specific parameters · Invert direction · Signal evaluation

· Filter frequency · Sensor type or Interface standard

Incremental encoder An incremental encoder with phase-

(A, B, N)

shifted signals A and B and a zero

signal N is connected.

· Invert direction · Signal evaluation · Filter frequency · Sensor type or Interface standard

· Reaction to signal N

· Frequency of synchronization · Frequency of the Capture function

Pulse (A) and direction (B) Pulse (A)
Count up (A), count down (B)

A pulse encoder (signal A) with direction signal (signal B) is connected.
A pulse encoder (signal A) without direction signal is connected. You can specify the count direction by means of the control interface (Page 219).
Signals for counting up (signal A) and down (signal B) are connected.

· Filter frequency · Sensor type or Interface standard · Filter frequency · Sensor type or Interface standard
· Filter frequency · Sensor type or Interface standard

Invert direction You can invert the counting direction to adapt it to the process. The inverting of the direction is configurable and active for the following signal types:  Incremental encoder (A, B phase-shifted)  Incremental encoder (A, B, N)

190

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Signal evaluation
By configuring signal evaluation (Page 76), you can specify which edges of the signals are counted.
You can select from the following options:

Signal evaluation Single (default)
Double
Quadruple

Meaning The edges of signal A are evaluated during a low level of signal B.
Each edge of signal A is evaluated. Each edge of signals A and B is evaluated.

The parameter can be assigned with the following signal types:

 Incremental encoder (A, B phase-shifted)

 Incremental encoder (A, B, N)

Filter frequency
By configuring the filter frequency, you suppress interferences at the counting inputs A, B and N.
The selected filter frequency is based on a pulse/break ratio of between around 40:60 and around 60:40. This results in a specific minimum pulse/break time. Signal changes with a duration shorter than the minimum pulse/break time are suppressed.
You can select from the following filter frequencies:

Filter frequency 100 Hz 200 Hz 500 Hz 1 kHz 2 kHz 5 kHz 10 kHz 20 kHz 50 kHz 100 kHz (preset for Compact CPU) 200 kHz** (preset for TM Count) 500 kHz* 1 MHz* (default at TM PosInput)

Minimum pulse/break time 4.0ms 2.0 ms 800 µs 400 µs 200 µs 80 µs 40 µs 20 µs 8.0 µs 4.0 µs 2.0 µs 0.8 µs 0.4 µs

* Only available with TM PosInput ** * Only available with TM Count and TM PosInput

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

191

Using the module 5.1 Using the technology module

Sensor type (TM Count)
By configuring the sensor type, you specify how the counter inputs are switched for the TM Count. You can select from the following options:

Sensor type
Sourcing output (default)

Meaning The encoder/sensor switches the inputs A, B and N to 24VDC.

Sinking output

The encoder/sensor switches the inputs A, B and N to M.

Push-pull (sinking and sourcing The encoder/sensor alternately switches the inputs A, B and N to

output)

M and 24VDC.

"Push-pull" is usually selected when incremental encoders are used. If using 2-wire sensors, such as light barriers or proximity switches, you need to select the corresponding wiring "sourcing output" or "sinking output".

The data sheet of the encoder includes information on whether your incremental encoder is a push-pull encoder.

Note
If you use a push-pull encoder and the sensor type "Push-pull (sinking and sourcing output)" is configured, you can monitor the encoder signals for wire break.

Sensor type (compact CPU)
The "Sourcing output" sensor type is set for the Compact CPU and cannot be changed. The encoder or sensor switches the inputs A, B and N to 24V DC.
You can operate both sourcing output encoders as well as push-pull encoders on the Compact CPU. You can find additional information on the sensor type in the data sheet for the encoder.

Interface standard (TM PosInput)
You use this parameter to specify whether the encoder outputs symmetric (RS422) or asymmetric (TTL) signals for the TM PosInput.
You can select from the following options:

Interface standard RS422, symmetrical (default)
TTL (5 V), asymmetrical

Meaning
The encoder outputs symmetric signals according to the RS422 standard (Page 73).
The encoder outputs asymmetric 5 V signals according to the TTL standard (Page 71).

Note
The RS422 standard provides greater interference immunity than the TTL standard. If your incremental or pulse encoder supports the RS422 standard and the TTL standard, we recommend using the RS422 standard.

192

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Reaction to signal N You use this parameter to specify which reaction is triggered to signal N. You can select from the following options:

Option No reaction to signal N (default) Synchronization at signal N (Page 44)
Capture at signal N (Page 34)

Meaning The counter is not affected by signal N.
The counter is set to the start value at signal N. If you select the function "Enable synchronization at signal N" for a digital input, the synchronization depends on the level at the digital input. The counter value is stored in the Capture value at signal N. The use of a digital input and the use of the N signal are not mutually exclusive for the Capture function. The technology object displays the Capture value at the output parameter CapturedValue.

Note You can only select the reaction to signal N if you have selected the "Incremental encoder (A, B, N)" signal type.
Note If "Synchronization at signal N" is selected, you can select the function "Enable synchronization at signal N" for a digital input (Page 196).
Note For High_Speed_Counter as of V3.0, the following applies: You can choose "Capture at signal N" only in operating mode "Use count value as reference":

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

193

Using the module 5.1 Using the technology module

Frequency of synchronization This parameter is used to define the frequency of the following events:  Synchronization at signal N  Synchronization as function of a digital input You can select from the following options:

Option Once (default)
Periodic

Meaning
The counter is only set at the first signal N or the first configured edge of the digital input.
The counter is set at each signal N or each configured edge of the digital input.

Frequency of the Capture function This parameter is used to define the frequency of Capture events for the following functions:  Capture at Signal N  Capture as function of a digital input You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input or first rising edge of the N signal saves the current counter value as a Capture value.
Each configured edge at the respective digital input or each rising edge of the N signal saves the current counter value as a Capture value.

Counting limits and start value High counting limit
You limit the counting range by setting the high counting limit. You can enter a value up to 2147483647 (231-1). You must enter a value that lies above the low counting limit.
The default setting is "2147483647".

Low counting limit
You limit the counting range by setting the low counting limit. You can enter a value up to 2147483648 (-231). You must enter a value below the high counting limit.
The default setting is "-2147483648".

194

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Start value
By configuring the start value, you specify the value at which counting is to start and where it is to continue in the case of defined events. You must enter a value between the counting limits or equal to the counting limits.
The default setting is "0".

Additional information
For more information, see Behavior at the counting limits (Page 28) and Counter behavior at gate start (Page 33).

Counter behavior at limits and gate start Reaction to violation of a counting limit You can configure the following characteristics for violation of a counting limit (Page 28):

Reaction Stop counting
Continue counting (default)

Meaning
If a counting limit is violated, counting is stopped and the internal gate is closed. To restart counting, you must also close and reopen the software/hardware gate.
Counting continues either with the start value or at the opposite counting limit, depending on the additional parameter assignment.

Reset when counting limit is violated You can reset the counter to the following values when a counting limit is violated:

Reset the value To start value
To opposite counting limit (default)

Meaning The counter value is set to the start value.
The counter value is set to the opposite counting limit.

Reaction to gate start You can set the following Reaction to gate start (Page 33):

Reaction Set to start value
Continue with current value (default)

Meaning
When the gate is opened, the counter value is set to the start value.
When the gate is opened, counting is continued with the last counter value.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

195

Using the module 5.1 Using the technology module

Behavior of a DI Setting function of the DI
By configuring a digital input, you specify which functions the digital input triggers at switching.
You can select from the following options:

Function of a digital input Gate start/stop (level-triggered)

Meaning
The level at the respective digital input opens and closes the hardware gate (Page 30).

Additional option-specific parameters
· Input delay · Select level

Gate start (edge-triggered)

The configured edge at the respective digital input · Input delay

opens the hardware gate (Page 30).

· Edge selection

Gate stop (edge-triggered)

The configured edge at the respective digital input · Input delay

closes the hardware gate (Page 30).

· Edge selection

Synchronization (Page 39)

The configured edge at the respective digital input · Input delay

sets the counter to the start value.

· Edge selection

The EVENT_SYNC feedback bit indicates whether a synchronization has occurred.

·

Frequency of synchronization

Enable synchronization at signal The active level at the respective digital input ena- · Input delay

N

bles synchronization of the counter at signal N (Page 44).

· Select level

Capture

The configured edge at the respective digital input · Input delay

saves the current counter value (Page 34) as a Capture value. The use of a digital input and the

· Edge selection

use of the N signal are not mutually exclusive for · Frequency of the Capture func-

the Capture function.

tion

The CAPTURED_VALUE value in the feedback interface indicates the Capture value.

· Behavior of counter value after Capture

Digital input without function

No technological function is assigned to the respective digital input.
You can read the signal state of the digital input via the respective feedback bit:

· Input delay

· STS_DI0 · STS_DI1

· STS_DI2

Note
With the exception of "Digital input without function", each function can only be used once for each counter, and if used for one digital input is not available to the others.

196

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Input delay (TM Count and TM PosInput) You use this parameter to suppress signal interference at the digital inputs. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. You can select from the following input delays:  None  0.05 ms  0.1 ms (default)  0.4 ms  0.8 ms  1.6 ms  3.2 ms  12.8 ms  20 ms
Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.
Note You configure the input delay under "Behavior of DI0" for all digital inputs together. The input delay is also displayed under "Behavior of DI1" and for TM Count also under "Behavior of DI2".
Input delay (compact CPU) You use this parameter to suppress interference at the digital inputs of the DIn signals. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. You can configure the input delay for a digital input of a Compact CPU in the Inspector window of the device configuration under "Properties > DI 16/DQ 16 > Inputs > Channel n". You can select from the following input delays:  None  0.05 ms  0.1 ms  0.4 ms  1.6 ms  3.2 ms (default)

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

197

Using the module 5.1 Using the technology module
 12.8 ms  20 ms
Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.

Select level You use this parameter to specify the level at which the digital input is active. You can select from the following options:

Level Active with high level (default)
Active with low level

Meaning The respective digital input is active when it is set.
The respective digital input is active when it is not set.

The parameter can be set for the following functions of a digital input:

 Gate start/stop (level-triggered)

 Enable synchronization at signal N

Edge selection You can use this parameter to specify the edge of the digital input at which the configured function is triggered. The following options may be available depending on the function selected:  At rising edge (default)  At falling edge  At rising and falling edge The parameter can be set for the following functions of a digital input:  Gate start (edge-triggered)  Gate stop (edge-triggered)  Synchronization  Capture
Note At rising and falling edge" can only be configured for the "Capture" function.

198

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Frequency of synchronization This parameter is used to define the frequency of the following events:  Synchronization at signal N  Synchronization as a function of a digital input You can select from the following options:

Option Once (default)
Periodic

Meaning
The counter is only set at the first signal N or the first configured edge of the digital input.
The counter is set at each signal N or each configured edge of the digital input.

Frequency of the Capture function This parameter is used to define the frequency of Capture events for the following functions:  Capture at Signal N  Capture as function of a digital input You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input or first rising edge of the N signal saves the current counter value as a Capture value.
Each configured edge at the respective digital input or each rising edge of the N signal saves the current counter value as a Capture value.

Behavior of counter value after Capture
You can configure the following characteristics for the counter after a capture event (Page 34):

Reaction
Continue counting (default)
Set to start value and continue counting

Meaning
After saving the current counter value as Capture value, counting is continued unchanged.
After saving the current counter value as Capture value, counting is continued with the start value.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

199

Using the module 5.1 Using the technology module

Behavior of a DQ

Set output

With the parameter assignment of a digital output, you specify the condition upon which the digital output switches.
You can select from the following options:

Function of a digital output (Page 48) Meaning in the operating mode "Counting"

Between comparison value and high limit (default)

The respective digital output is active if: Comparison value <= counter value <= high counting limit

Additional option-specific parameters · Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value and low limit

The respective digital output is active if: Low counting limit <= counter value <= comparison value

· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value 0 and 1

The digital output DQ1 is active if: Comparison value 0 <= counter value <= comparison value 1

· Comparison value 0 · Comparison value 1 · Count direction

· Hysteresis (in increments)

At comparison value for a pulse duration

The respective digital output is active once for · Comparison value 0

the configured time and count direction when the counter value reaches the comparison value.

·

Comparison value 1

· Count direction

· Pulse duration · Hysteresis (in increments)

After set command from CPU until comparison value

When a set command is sent from the CPU, the ·

respective digital output is active until the counter value is equal to the comparison value.

·

·

Comparison value 0 Comparison value 1 Count direction

· Hysteresis (in increments)

Use by user program

The respective digital output can be switched by -- the CPU via the control interface (Page 47).

Note DQ0 of a counter of a Compact CPU With a Compact CPU, the respective digital output DQ0 is available via the feedback interface, but not as a physical output.
Note You can only select the "Between comparison value 0 and 1" function for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

200

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Note The "At comparison value for a pulse duration" and "After set command from CPU until comparison value" functions only switch the digital output in question if a count pulse reaches the comparison value. When the counter value is set, e.g. by synchronization, the digital output does not switch.

Function of a digital output (Page 56) in the operating mode "Measuring" Measured value >= comparison value (default) Measured value <= comparison value
Between comparison value 0 and 1
Not between comparison value 0 and 1
Use by user program

Meaning

Additional option-specific parameters

The respective digital output is active if the measured value is greater than or equal to the comparison value.
The respective digital output is active if the measured value is less than or equal to the comparison value.
The digital output DQ1 is active if: Comparison value 0 <= measured value <= comparison value 1
The digital output DQ1 is active if: Comparison value 1 <= measured value <= comparison value 0
The respective digital output can be switched by the CPU via the control interface (Page 47).

· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1 --

Note
You can select the "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" functions only for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

201

Using the module 5.1 Using the technology module
Comparison value 0 (TM Count and TM PosInput)
Operating mode "Counting":
With the parameter assignment of the comparison value (Page 48), you specify the counter value at which the digital output DQ0 switches as a result of the selected comparison event.
You must enter an integer (DINT) that is greater than or equal to the low counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0".
Operating mode "Measurement":
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ0 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.
Comparison value 0 (compact CPU)
Operating mode "Counting":
With the parameter assignment of the Comparison value (Page 48), you specify the counter value at which the STS_DQ0 bit is set in the feedback interface of the selected comparison event. The digital output DQ0 is not available as a physical output in a Compact CPU.
You must enter an integer (DINT) that is greater than or equal to the low counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0".
Operating mode "Measurement":
With the parameter assignment of the Comparison value (Page 56), you specify the measured value at which the STS_DQ0 bit is set in the feedback interface of the selected comparison event. The digital output DQ0 is not available as a physical output in a Compact CPU.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.

202

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Comparison value 1
Operating mode "Counting":
With the parameter assignment of the comparison value (Page 48), you specify the counter value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter an integer (DINT) that is smaller than or equal to the high counting limit. If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "10".
Operating mode "Measurement":
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The maximum value is 7.922816 x 1028. The default setting is "10.0". The unit of the comparison value depends on the measured variable.

Count direction You use this parameter to specify the count direction for which the selected function is valid. You can select from the following options:

Count direction In both directions (default) Up
Down

Meaning
The comparison and switching of the respective digital output take place regardless of the count direction.
The comparison and switching of the respective digital output only takes place when the counter counts up.
The comparison and switching of the respective digital output only takes place when the counter counts down.

The parameter can be configured for the following functions:

 Between Comparison value 0 and 1 (Operating mode "Counting")

 At comparison value for a pulse duration

 After set command from CPU until comparison value

Pulse duration
By configuring the pulse duration for the function "At comparison value for a pulse duration", you specify the number of milliseconds for which the respective digital output is active.
If you enter "0" and the counter value corresponds to the comparison value, the digital output remains active until the next count pulse.
You can enter a value between 0.0 and 6553.5.
The default setting is "500.0", which is equivalent to a pulse duration of 0.5 s.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

203

Using the module 5.1 Using the technology module
Hysteresis (in increments)
By configuring the hysteresis (Page 66), you can define a range around the comparison values. For the functions "Between comparison value and upper counter limit" and "Between comparison value and lower counter limit" the hysteresis also applies at the counter limits. Within the hysteresis range, the digital outputs cannot switch again until the counter value is outside the range.
Choose a small enough hysteresis. When the hysteresis range, starting from the configured comparison value, spans the entire counter value range, proper functioning of the comparison values cannot be guaranteed.
If a comparison value lies so close to the counter limit that the hysteresis range would extend beyond this counter limit, the hysteresis range ends there.
If you enter "0", the hysteresis is turned off. You can enter a value between 0and 255. The default setting is "0".
Note
The hysteresis is only available in operating mode "Counting".

Specifying the measured value
Measured variable
This parameter is used to specify the measured variable (Page 59) to be provided by the technology module. The MEASURED_VALUE value in the feedback interface indicates the measured value.
You can select from the following options:

Measured variable Frequency (default)
Period
Velocity

Meaning
The measured variable shows the number of increments per second. The value is a floating point number (REAL). The unit is Hz.
The measured variable is the average period between two increments. The value is an integer (DINT). The unit is s.
The measured variable is a velocity.
Examples of a velocity measurement can be found in the explanation of the "Increments per unit" parameter.

Additional option-specific parameters · Update time
· Update time
· Update time · Time base for velocity measurement · Increments per unit

204

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Update time By configuring the update time (Page 59) in milliseconds, you can specify the time interval between two measured value updates. The update time and the signal type (Page 190) effect the accuracy of the measurement. In the case of update times of at least 100 ms, the effect of the signal type is negligible. In the case of update times of less than 100 ms, you achieve maximum measurement accuracy using the following signal types:  Incremental encoder (A, B phase-shifted) with Signal evaluation "Single"  Incremental encoder (A, B, N) with Signal evaluation "Single"  Pulse (A) and direction (B)  Pulse (A) In the case of other signal types, measurement accuracy depends on the encoder and cable used. If you enter "0", the measured value is updated once per module-internal cycle. Up to three decimal places can be entered. A value from 0.0 to 25000.0 is permissible. The default setting is "10.0".
Time base for velocity measurement This parameter defines the time base on which the velocity is to be returned. You can select from the following options:  1 ms  10 ms  100 ms  1s  60 s The default setting is "60 s".
Increments per unit You can use this parameter to define the number of count pulses per relevant unit that the incremental or absolute encoder supplies for the velocity measurement. The number of count pulses depends on the configured signal evaluation. You can enter a value between 1 and 65535. Example 1: You encoder delivers 4000 count pulses for travel over one meter. The velocity is to be measured in meters per second. "Double" is configured as signal evaluation. In this case, you need to assign the following parameters:  Increments per unit: 8000  Time base for velocity measurement: 1 s

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

205

Using the module 5.1 Using the technology module
Example 2: Your encoder delivers 4096 count pulses per revolution. The velocity is to be measured in revolutions per minute. "Single" is configured as the signal evaluation. In this case, you need to assign the following parameters:  Increments per unit: 4096  Time base for velocity measurement: 60 s

206

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

5.1.2.8

Manual operation (SSI absolute encoder)

Counter inputs

Signal type
If an SSI absolute encoder with the data signal (Signal ID) and cycle signal (Signal C) is connected, select the signal type (Page 75) "Absolute encoder (SSI)".

Invert direction You can use this parameter to invert the values supplied by the SSI absolute encoder. This allows you to adapt the detected direction of the encoder to the motor's direction of rotation.
Note This parameter acts only on the range from the LSB to the MSB of the position value in the frame.

Frame length
With the parameter assignment of the frame length, you specify the number of bits of an SSI frame of the SSI absolute encoder (Page 26) used. You can find the frame length of your SSI absolute encoder in the data sheet of the encoder. Special bits are also included in the frame length. A parity bit does not count in the frame length.
A frame length of between 10 bits and 40 bits is permitted. The default setting is "13 Bit".
You can find two examples of the SSI frame format at Examples of the frame format (Page 159).

Code type
You use the parameter assignment of the code type to specify whether the encoder supplies Dual code or Gray code.
You can select from the following options:

Code type Gray (default)
Dual

Meaning The gray-coded position value returned by the SSI absolute encoder is converted to dual code.
The value returned by the SSI absolute encoder is not converted.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

207

Using the module 5.1 Using the technology module
Transmission rate With the parameter assignment of the transmission rate, you specify the data transmission rate between the technology module and the SSI absolute encoder. You can select from the following options:  125 kHz (preset)  250 kHz  500 kHz  1 MHz  1.5 MHz  2 MHz The maximum transmission rate depends on the cable length and the technical specifications of the SSI absolute encoder. For additional information, refer to the product manual of the TM PosInput and the encoder description.
Monoflop time With the parameter assignment of the monoflop time, you specify the idle time between two SSI frames. The configured monoflop time must be at least equal to the monoflop time of the SSI absolute encoder used. You can find this value in the technical specifications of the SSI absolute encoder. You can select from the following options:  Automatically (default)  16 µs  32 µs  48 µs  64 µs
Note If you select the "Automatic" option, the monoflop time automatically adapts to the encoder used. In isochronous mode, the "Automatic" option corresponds to a monoflop time of 64 µs. If the monoflop time of the employed SSI absolute value encoder is less than 64 µs, you can select the value of the encoder to achieve faster isochronous times.

208

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Parity With the parameter assignment of the parity, you specify whether the SSI absolute encoder transfers a parity bit. If, for example, a 25-bit encoder with parity is assigned, the technology module reads 26 bits. A parity error is reported in the feedback interface by means of the ENC_ERROR bit.
Bit number LSB of the position value This parameter is used to specify the bit number of the LSB (least significant bit) of the position value in the frame of the SSI absolute encoder. In this way you limit the range in the frame that supplies the position value. The value must be less than the bit number of the MSB of the position value. The difference between the bit numbers of the MSB and the LSB of the position value must be less than 32. The default setting is "0".
Note If you have selected the Code type "Gray", only the range from the LSB to the MSB of the position value is converted to binary code.
Bit number MSB of the position value This parameter is used to specify the bit number of the MSB (most significant bit) of the position value in the frame of the SSI absolute encoder. In this way you limit the range in the frame that supplies the position value. The value must be less than the frame length and higher than the bit number of the LSB of the position value. The difference between the bit numbers of the MSB and the LSB of the position value must be less than 32. The default setting is "12".
Note If you have selected the Code type "Gray", only the range from the LSB to the MSB of the position value is converted to binary code.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

209

Using the module 5.1 Using the technology module

Behavior of a DI Setting function of the DI
By configuring a digital input, you specify which functions the digital input triggers at switching.
You can select from the following options:

Function of a digital input Capture
Digital input without function

Meaning

Additional option-specific parameters

The configured edge at the respective digital input saves the ·

current position value as a Capture value.

·

The CAPTURED_VALUE feedback bit indicates the capture value.

·

The function can only be used for one of the two digital inputs.

Input delay Edge selection Frequency of the Capture function

No technological function is assigned to the respective digital input.
You can read the signal state of the digital input via the respective feedback bit:

· Input delay

· STS_DI0

· STS_DI1

Note
You can choose the "Capture" function only in operating mode "Use position value (SSI absolute value) as reference".

Input delay By configuring the input delay, you suppress interferences at the digital inputs. Signals with a pulse duration below the configured input delay are suppressed. You can select from the following input delays:  None  0.05 ms  0.1 ms (default)  0.4 ms  0.8 ms  1.6 ms  3.2 ms  12.8 ms  20 ms

210

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Note If you select the "None" or "0.05 ms" option, you have to use shielded cables for connection of the digital inputs.
Note You configure the input delay under "Behavior of DI0" for all digital inputs together. The input delay is also displayed under "Behavior of DI1".

Edge selection You can use this parameter to specify the edge of the digital input at which the configured function is triggered for the "Capture" function. You can select from the following options:  At rising edge (default)  At falling edge  At rising and falling edge

Frequency of the Capture function This parameter is used to define the frequency of Capture events: You can select from the following options:

Option Once
Periodic (default)

Meaning
The first configured edge at the respective digital input saves the current counter value as Capture value.
Each configured edge at the respective digital input saves the current counter value as a Capture value.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

211

Using the module 5.1 Using the technology module

Behavior of a DQ Set output
With the parameter assignment of a digital output, you specify the condition upon which the digital output switches.
You can select from the following options depending on the operating mode:

Function of a digital output (Page 52) in the operating mode "Position input"
Between comparison value and high limit (default)

Meaning
The respective digital output is active if: Comparison value <= position value <= maximum position value

Additional option-specific parameters
· Comparison value 0 · Comparison value 1 · Hysteresis (in increments)

Between comparison value and low limit

The respective digital output is active if:

· Comparison value 0

Minimum position value <= Position value <= Comparison value

·

Comparison value 1

· Hysteresis (in increments)

Between comparison value 0 and 1

The digital output DQ1 is active if: Comparison value 0 <= position value <= comparison value 1

· Comparison value 0 · Comparison value 1 · Count direction

· Hysteresis (in increments)

At comparison value for a pulse duration

The respective digital output is active once for the assigned time and direction of the position value change when the position value is equal to the comparison value or has fallen below or exceeded it.

· Comparison value 0 · Comparison value 1 · Count direction · Pulse duration

· Hysteresis (in increments)

After set command from CPU until When a set command is sent from the CPU, the

· Comparison value 0

comparison value

respective digital output is active for the assigned direction of the position value change until the posi-

·

Comparison value 1

tion value is equal to the comparison value or has · Count direction

fallen below or exceeded it.

· Hysteresis (in increments)

Use by user program

The respective digital output can be switched by -- the CPU via the control interface (Page 47).

Note
You can only select the "Between comparison value 0 and 1" function for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

212

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Function of a digital output (Page 56) in the operating mode "Measuring"
Measured value >= comparison value (default)
Measured value <= comparison value

Meaning

Additional option-specific parameters

The respective digital output is active if the measured · Comparison value 0

value is greater than or equal to the comparison value.

· Comparison value 1

The respective digital output is active if the measured · Comparison value 0 value is less than or equal to the comparison value. · Comparison value 1

Between comparison value 0 and 1
Not between comparison value 0 and 1
Use by user program

The digital output DQ1 is active if: Comparison value 0 <= measured value <= comparison value 1
The digital output DQ1 is active if: Comparison value 1 <= measured value <= comparison value 0
The respective digital output can be switched by the CPU via the control interface (Page 47).

· Comparison value 0 · Comparison value 1
· Comparison value 0 · Comparison value 1 --

Note
You can select the "Between comparison value 0 and 1" and "Not between comparison value 0 and 1" functions only for digital output DQ1 and only if you have selected the "Use by user program" function for digital output DQ0.

Comparison value 0
Operating mode "Position input":
With the parameter assignment of the comparison value (Page 52), you specify the position value at which the digital output DQ0 switches as a result of the selected comparison event.
If you use an SSI absolute encoder with a position value length of up to 31 bits, you must enter a positive integer (DINT) with a value between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, you must enter a signed integer (DINT) with a value between ­2147483648 and 2147483647.
If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "0".
Operating mode "Measurement":
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ0 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The minimum value is -7.922816 x 1028. The default setting is "0.0". The unit of the comparison value depends on the measured variable.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

213

Using the module 5.1 Using the technology module

Comparison value 1
Operating mode "Position input"
With the parameter assignment of the comparison value (Page 52), you specify the position value at which the digital output DQ1 switches as a result of the selected comparison event.
If you use an SSI absolute encoder with a position value length of up to 31 bits, you must enter a positive integer (DINT) with a value between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, you must enter a signed integer (DINT) with a value between ­2147483648 and 2147483647.
If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The default setting is "10".
Operating mode "Measurement"
With the parameter assignment of the comparison value (Page 56), you specify the measured value at which the digital output DQ1 switches as a result of the selected comparison event.
You must enter a floating point number (REAL). If you use the DQ function "Between comparison value 0 and 1", the comparison value 0 has to be smaller than comparison value 1. The maximum value is 7.922816 x 1028. The default setting is "10.0". The unit of the comparison value depends on the measured variable.

Count direction
You use this parameter to specify the direction of position value change for which the selected function is valid.
You can select from the following options:

Direction of position value change In both directions (default)
Up
Down

Meaning
The comparison and switching of the respective digital output is carried out regardless of whether the position value increases of decreases. The comparison and switching of the respective digital output only takes place when the position value increases. The comparison and switching of the respective digital output only takes place when the position value decreases.

The parameter can be configured for the following functions:

 Between Comparison value 0 and 1 (operating mode "Position input")

 At comparison value for a pulse duration

 After set command from CPU until comparison value

214

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Pulse duration By configuring the pulse duration for the function "At comparison value for a pulse duration", you specify the number of milliseconds for which the respective digital output is active. A value from 0.1 to 6553.5 ms is permissible. The default setting is "500.0", which is equivalent to a pulse duration of 0.5 s.
Hysteresis (in increments) By configuring the hysteresis (Page 68), you can define a range around the comparison values. For the functions "Between comparison value and upper counter limit" and "Between comparison value and lower counter limit" the hysteresis also applies at the counter limits. Within the hysteresis range, the digital outputs cannot switch again until the position value has left this range once. Choose a small enough hysteresis. When the hysteresis range, starting from the configured comparison value, spans the entire position value range, proper functioning of the comparison values cannot be guaranteed. If a comparison value lies so close to the counter limit that the hysteresis range would extend beyond this counter limit, the hysteresis range ends there. If you enter "0", the hysteresis is turned off. You can enter a value between 0and 255. The default setting is "0".
Note The hysteresis is only available in "Position input" operating mode.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

215

Using the module 5.1 Using the technology module

Specifying the measured value Measured variable
With this parameter you specify whether the technology module is to provide a certain measured variable (Page 59) or the complete SSI frame.
You can select from the following options:

Option Frequency (default)
Period
Velocity
Complete SSI frame

Meaning
The measured variable shows the number of increments per second, where each increment corresponds to one position value change. The value is a floating point number (REAL). The unit is Hz.
The MEASURED_VALUE value in the feedback interface indicates the measured value.
The measured variable is the average period between two increments of the position value. The value is an integer (DINT). The unit is s.
The MEASURED_VALUE value in the feedback interface indicates the measured value.
The measured variable is a velocity.
Examples of a velocity measurement can be found in the explanation of the "Increments per unit" parameter.
The MEASURED_VALUE value in the feedback interface indicates the measured value.
Instead of a measured variable, the first 32 bits of the SSI frame are returned (bit 0 to bit 31). In so doing, special bits that do not belong to the position information are also supplied. A configured inversion of the direction is ignored.
The MEASURED_VALUE value in the feedback interface indicates the 32 bits.
You can find examples under Examples of the frame format (Page 159). This option is only available in operating mode "Use position value (SSI absolute value) as reference".

Additional option-specific parameters · Update time
· Update time
· Update time · Time base for velocity meas-
urement · Increments per unit --

Note
If the increment per revolution is required for calculation of the measured values, it is automatically calculated from the parameterized telegram length as the power of 2, e.g. 8192 increments per revolution with a telegram length of 13 bit. If you are using an SSI absolute encoder whose increment per revolution does not correspond to the power of 2, the calculated measured value may be incorrect for a short time.

216

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module
Update time By configuring the update time (Page 59) in milliseconds, you can specify the time interval between two measured value updates. Unsteady measured variables can be smoothed through longer update times If you enter "0", the measured value is updated once per module-internal cycle. Up to three decimal places can be entered. A value from 0.0 to 25000.0 is permissible. The default setting is "10.0".
Time base for velocity measurement This parameter defines the time base on which the velocity is to be returned. You can select from the following options:  1 ms  10 ms  100 ms  1s  60 s The default setting is "60 s".
Increments per unit With this parameter you define the number of increments per relevant unit that the SSI absolute encoder supplies for the velocity measurement. You can enter a value between 1 and 65535. Example 1: Your absolute encoder operates with a resolution of 12 bits per revolution and performs 4096 increments per revolution. The velocity should be measured in revolutions per minute. In this case, you need to assign the following parameters:  Increments per unit: 4096  Time base for velocity measurement: 60 s Example 2: You encoder delivers 10000 increments for travel over one meter. The velocity is to be measured in meters per second. In this case, you need to assign the following parameters:  Increments per unit: 10000  Time base for velocity measurement: 1 s

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

217

Using the module 5.1 Using the technology module

5.1.3

Online & diagnostics module

5.1.3.1

Displaying and evaluating diagnostics The online and diagnostics view enables hardware diagnostics. You can also  Obtain information on the technology module (e.g., Firmware version and serial number)  Execute a firmware update if required

Procedure (TM Count and TM PosInput) To open the display editor for the diagnostic functions, follow these steps: 1. Open the device configuration of the CPU or IM. 2. Select the device view. 3. Right-click the module and select "Online & Diagnostics". 1. Select the required display in the diagnostics navigation.

Procedure (Compact CPU) To open the display editor for the diagnostic functions, follow these steps: 1. Open the Compact CPU folder in the project tree. 2. Double-click on the "Online & diagnostics" object. 3. Select the required display in the diagnostics navigation.

Additional information Additional information on the diagnostic alarms and possible remedies can be found in the technology module device manual.
Note Position input for Motion Control In operating mode "Position input for "Motion Control" technology object", channel diagnostics is not available for the technology module.

218

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

5.1.4

Using the module 5.1 Using the technology module
Control and feedback interface (TM Count, TM PosInput)
Information on using the control and feedback interface can be found under Overview of application options (Page 18).
Note The following description does not apply for the operating modes "Fast Mode" and "Position input for technology object "Motion Control"". You can find a description of the feedback interface in the respective device manual for those technology modules that support the "Fast Mode" operating mode.

5.1.4.1

Assignment of the control interface
The user program uses the control interface to influence the behavior of the technology module.

Control interface per channel The following table shows control interface assignment:

Byte offset to
start address Channel
0/1  
0 12 ... ... 3 15

Bit 7

4 16 ... ... 7 19

8 20

9 21

EN_

CAPTURE

10 22 SET_DIR

11 23

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

SLOT_0:

DINT or REAL: Load value (significance of the value is specified in LD_SLOT_0)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

SLOT_1:

DINT or REAL: Load value (significance of the value is specified in LD_SLOT_1)

Value range: ­2147483648 to 2147483647D or 80000000 to 7FFFFFFFH

LD_SLOT_1

LD_SLOT_0

EN_

EN_

SET_DQ1 SET_DQ0

TM_

TM_

SYNC_DN SYNC_UP

CTRL_DQ1 CTRL_DQ0

Reserved

RES _EVENT

Reserved

SW_GATE
RES _ERROR

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

219

Using the module 5.1 Using the technology module

Notes
Control bit/value EN_CAPTURE EN_SYNC_DN EN_SYNC_UP LD_SLOT_m
RES_EVENT Reserved RES_ERROR SET_DIR SET_DQ0 SET_DQ1

Notes Use this bit to enable the Capture function. Resetting this bit resets a set EVENT_CAP in the feedback interface. Use this bit to enable the synchronization of the counter when counting in downward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. Use this bit to enable the synchronization of the counter when counting in upward direction with an incremental encoder or pulse encoder. Resetting this bit resets a set EVENT_SYNC in the feedback interface. With this load request you specify the meaning of the value in SLOT_m:
· 0000 means: No action, idle
· 0001 means: Load count value (with incremental or pulse encoder)
· 0010 not permitted
· 0011 means: Load start value (with incremental or pulse encoder)
· 0100 means: Load Comparison value 0
· 0101 means: Load comparison value 1
· 0110 means: Load low counting limit (with incremental or pulse encoder)
· 0111 means: Load high counting limit (with incremental or pulse encoder)
· 1000 to 1111 not permitted The technology module executes the respective action as soon as LD_SLOT_m changes. If values are loaded simultaneously via LD_SLOT_0 and LD_SLOT_1, the first value is applied internally from SLOT_0 and then the value from SLOT_1 is applied. This may lead to unexpected intermediate states. Use this bit to trigger the reset of the saved events in the EVENT_ZERO, EVENT_OFLW, EVENT_UFLW, EVENT_CMP0, EVENT_CMP1 feedback bits. Reserved bits must be set to 0. Use this bit to trigger the reset of the saved error states LD_ERROR and ENC_ERROR . Use this bit to specify the count direction for signal type "Pulse (A)".
· 0 means: Up
· 1 means: Down
Use this bit to set digital output DQ0 when TM_CTRL_DQ0 is set to 0. In the case of the function "After set command from CPU until comparison value",SET_DQ0 is effective regardless of TM_CTRL_DQ0 as long as the counter value is not equal to the comparison value. Use this bit to set digital output DQ1 when TM_CTRL_DQ1 is set to 0. In the case of the function "After set command from CPU until comparison value",SET_DQ1 is effective regardless of TM_CTRL_DQ1 as long as the counter value is not equal to the comparison value.

220

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Control bit/value SW_GATE
TM_CTRL_DQ0 TM_CTRL_DQ1

Using the module 5.1 Using the technology module
Notes Use this bit to open and close the software gate when using an incremental encoder or pulse encoder. Together, the software gate and the hardware gate form the internal gate. The technology module only counts when the internal gate is open. · 0 means: Software gate closed · 1 means: Software gate open The control of the hardware gate takes place externally via the digital inputs of the technology module. The hardware gate can be activated through parameter assignment. The software gate cannot be deactivated. Use this bit to enable the technological function of digital output DQ0. · 0 means: SET_DQ0 defines the state of DQ0 · 1 means: assigned function defines the state of DQ0 Use this bit to enable the technological function of digital output DQ1. · 0 means: SET_DQ1 defines the state of DQ1 · 1 means: assigned function defines the state of DQ1

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

221

Using the module 5.1 Using the technology module

5.1.4.2

Assignment of the feedback interface
The user program receives current values and status information from the technology module via the feedback interface.

Feedback interface per channel The following table shows the assignment of the feedback interface:

Byte offset to
start address Channel
0/1   0 16 ... ... 3 19 4 20 ... ... 7 23 8 24 ... ... 11 27 12 28
13 29
14 30 15 31

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

COUNT_VALUE: DINT: Current counter value or position value

CAPTURED_VALUE: DINT: The last acquired Capture value

MEASURED_VALUE: REAL: Current measured value or DWORD: Full SSI frame

Reserved

STS_DI21
STS_M_ INTERVAL

STS_DI1
EVENT_ CAP

Reserved
STS_SW_ GATE
STS_DI0 EVENT_
SYNC

STS_ READY
STS_DQ1
EVENT_ CMP1

LD_STS_ SLOT_1
STS_DQ0
EVENT_ CMP0

LD_ERROR ENC_ ERROR

LD_STS_ RES_EVEN

SLOT_0

T_ACK

STS_GATE STS_CNT

EVENT_ OFLW

EVENT_ UFLW

1 For TM PosInput applies: Reserved

Bit 0
POWER_ ERROR Reserved STS_DIR EVENT_ ZERO

Note Validity of the position value
The position value of an SSI absolute encoder is valid if STS_READY is set to 1 and ENC_ERROR is set to 0. In the module startup STS_READY is set to 0.

222

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Notes

Feedback bit/value CAPTURED_VALUE

Notes This DINT value indicates the last detected Capture value. The following external signals can trigger the Capture function:

· Rising or falling edge of a digital input

· Both edges of a digital input
The parameter "Frequency of the Capture function" determines if the function is executed for each configured edge or only once after each enable.

COUNT_VALUE

This DINT value shows the current counter value or position value.
If you use an SSI absolute encoder with a position value length of up to 31 bits, the position value is treated unsigned as a positive value and can assume values between 0 and 2(MSB-LSB+1)-1. If you use an SSI absolute encoder with a position value length of 32 bits, the MSB of the position value corresponds to the sign and the position value can assume values between ­2147483648 and 2147483647. If you use a 32 bit position value for the comparison function, the position value is interpreted as DINT.

ENC_ERROR

This bit indicates that one of the following errors has occurred at the encoder signals (retentive) for the respective technology module:
TM Count:

· Wire break of digital input A, B, or N (with push-pull encoder)

· Invalid transition of A/B signals (with incremental encoder) TM PosInput:

· Invalid transition of A/B signals (with incremental encoder)

· RS422/TTL error

· SSI encoder error or SSI frame error (with SSI absolute encoder)
If you have enabled the diagnostic interrupts, the respective diagnostic interrupt is triggered in the event of encoder signal errors. For information on the meaning of the diagnostic interrupts, refer to the manual for the respective technology module.

The bit is reset once you have acknowledged the error with RES_ERROR .

EVENT_CAP

This bit indicates that a Capture event has occurred and a counter value has been saved in CAPTURED_VALUE . You reset the status by resetting EN_CAPTURE .

EVENT_CMP0

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ0 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP0 is not set.

EVENT_CMP1

This bit indicates the saved status that a comparison event (status change) has occurred for the digital output DQ1 based on the selected comparison condition. You reset the status by acknowledgment with RES_EVENT.
If the counter value is set to the start value in counting mode, EVENT_CMP1 is not set.

EVENT_OFLW

This bit indicates the saved state which shows that there was a counter value overflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_SYNC

This bit indicates the saved status for which the counter was loaded with the start value by an external reference signal (synchronization) when using an incremental or pulse encoder. You reset the state by resetting EN_SYNC_UP or EN_SYNC_DN .

EVENT_UFLW

This bit indicates the saved state which shows that there was a counter value underflow. You reset the status by acknowledgment with RES_EVENT.

EVENT_ZERO

This bit indicates the saved status with which the counter value or position value experienced a zero crossing. You reset the status by acknowledgment with RES_EVENT.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

223

Using the module 5.1 Using the technology module

Feedback bit/value LD_ERROR

Notes
This bit indicates that an error occurred (latching) during loading via the control interface. The loaded values were not applied. When using an incremental or pulse encoder, one of the following conditions is not fulfilled:

· Low counting limit <= counter value <= high counting limit

· Low counting limit <= start value <= high counting limit

· Low counting limit <= comparison value 0/1 <= high counting limit When using an SSI absolute encoder, one of the following conditions is not fulfilled:

· 0 <= position value <= maximum position value

· 0 <= comparison value 0/1 <= maximum position value The bit is reset once you have acknowledged the error with RES_ERROR .

LD_STS_SLOT_0 LD_STS_SLOT_1

This bit indicates by a status change (toggling) that the load request for Slot 0 (LD_SLOT_0) has been detected and executed.
This bit indicates by a status change (toggling) that the load request for Slot 1 (LD_SLOT_1) has been detected and executed.

MEASURED_VALUE This value shows the current measurement value with the REAL data type or the complete SSI frame with the DWORD data type:

· Frequency: The mean frequency is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and returned in Hertz as floating point number.

· Period duration: The mean period duration is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and returned in seconds as floating point number.

· Velocity: The mean velocity is calculated at set measuring intervals on the basis of the time profile of the count pulses or position value changes and other parameters, and returned in the configured unit of measurement.

· Complete SSI frame: Instead of a measured variable, the least significant 32 bits of the unprocessed current SSI frame are returned. This provides you with encoder-specific additional bits, such as error bits, in addition to the position value. If the SSI frame is shorter than 32 bits, the complete SSI frame is returned right-aligned and the top unused bits are returned with "0" in the feedback interface.
The measured values are returned as signed values. The sign indicates whether the counter value or position value increased or decreased during the relevant time period.
The update time is asynchronous to the opening of the internal gate, which means that the update time is not started when the gate is opened. After the internal gate is closed, the last measured value captured is still returned.

POWER_ERROR

For an S7-1500 technology module, this bit indicates that the supply voltage L+ is not available or too low or that the front plug is not plugged in. For an ET 200SP technology module, this bit indicates that the supply voltage L+ is too low.
If you have enabled the diagnostic interrupts, the respective diagnostic interrupt is triggered in the event of errors in the supply voltage. For details on the diagnostic interrupts and the corrective measures they require, refer to the device manual for the respective technology module.
If the supply voltage L+ is available at a sufficient level once again, POWER_ERROR is automatically set to 0.

RES_EVENT_ACK This bit indicates that the reset of event bit EVENT_SYNC, EVENT_CMP0, EVENT_CMP1, EVENT_OFLW, EVENT_UFLW, EVENT_ZERO is active.

Reserved

Reserve bits are set to 0.

224

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.1 Using the technology module

Feedback bit/value STS_CNT STS_DI0 STS_DI1 STS_DI2 STS_DIR
STS_DQ0 STS_DQ1 STS_GATE
STS_M_INTERVAL STS_READY STS_SW_GATE

Notes This bit indicates that at least one count pulse or a position value change has occurred in the last ca. 0.5 s.
This bit indicates the status of digital input DI0.
This bit indicates the status of digital input DI1.
This bit indicates the status of digital input DI2 of the TM Count .
This bit indicates the count direction of the last count pulse or the direction of the last position value change.
0 means: Down 1 means: Up
This bit indicates the status of digital output DQ0.
This bit indicates the status of digital output DQ1.
This bit indicates the status of the internal gate when using an incremental or pulse encoder.
0 means: Gate closed
1 means: Gate open
Information for TM PosInput:
In order for the counting logic including the gate control to function correctly, the startup of the technology module must complete correctly at least once with a connected incremental or pulse encoder (STS_READY at 1). If a connected encoder is not ready yet during startup, the function of the STS_GATE feedback bit is delayed until the encoder for the technology module is available. If the technology module starts up without a connected encoder, the startup does not complete correctly and STS_READY as well as STS_GATE remain at 0. As soon as an encoder is then connected, the startup completes and the STS_GATE functions correctly. An encoder error after a completed startup has no influence on STS_GATE.
This bit indicates that at least one count pulse or a position value change was detected in the previous measurement interval.
This bit indicates that the technology module supplies valid user data. The technology module has been started up and configured.
This bit indicates the status of the software gate.
0 means: Gate closed
1 means: Gate open

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

225

Using the module 5.1 Using the technology module Complete acknowledgment principle
Saving bits are acknowledged according to the complete acknowledgment principle. The figure below shows an example of the sequence of the complete acknowledgment principle in the event of an overflow:
 The EVENT_OFLW feedback bit is set as a saving event upon overflow.  You set the RES_EVENT control bit to trigger EVENT_OFLW reset.  The RES_EVENT_ACK feedback bit is set when reset of EVENT_OFLW is detected.  You then rest the control bit RES_EVENT .  The RES_EVENT_ACK feedback bit is reset.

226

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

5.2

Using the digital module

Using the module 5.2 Using the digital module

5.2.1

Configuring and assigning parameters to the module

5.2.1.1

Adding a module to the hardware configuration

Requirements

 The project has been created.  The CPU has been created.  The ET 200 distributed I/O has been created.

Procedure

1. Open the device configuration of the CPU or IM.
2. Select a module rack.
3. Select the digital input module from the module catalog: "DI > Digital input module > Article number" or "DIQ > Digital input module /Digital output module > Article number"
4. Drag the module to the required slot in the module rack.

5.2.1.2

Open hardware configuration

Opening

To open the hardware configuration, follow these steps: 1. Open the device configuration of the CPU or IM. 2. Select the device view. 3. Click on the module.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

227

Using the module 5.2 Using the digital module

5.2.1.3

Counting operating mode In counting operating mode or in the counter configuration you can set the following parameters for each channel.
Note Some of the parameters and options are not available for all digital modules. See the module's device manual for the associated parameters and options.

Channel enabled You use this parameter to specify whether the respective channel is enabled or disabled. Each channel is enabled by default.

Input delay

By configuring the input delay, you suppress signal errors at the digital inputs. Changes to the signal are only detected if they are constantly pending longer than the set input delay time.
Isochronous configuration is only possible if there is an input delay of 0.05 ms configured for at least one channel. In isochronous mode, the feedback interface is updated at the time Ti (time for reading the input data).
You can select from the following options:
 0.05 ms
 0.1 ms
 0.4 ms
 0.8 ms
 1.6 ms
 3.2 ms (default)
 12.8 ms
 20 ms

Note
If you select the "0.05 ms" option for the input delay, you have to use shielded cables for connection of the digital inputs.

228

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.2 Using the digital module

Reaction to violation of a counting limit
The following behavior can be configured for Violation of the counter high limit in the upward direction or the counter low limit in the downward direction (Page 88):

Reaction Stop counting (default at ET200SP and ET200AL)
Continue counting (default at S7-1500)

Meaning
After a counting limit is violated, the internal gate is closed (automatic gate stop). As a result, the counting process is stopped and the module ignores any further counting signals. The counter value is set to the opposite counting limit. To restart counting, you must close and reopen the software/hardware gate.
After a counting limit is violated, the counter value is set to the opposite counting limit and counting continues.

Edge selection This parameter is used to specify which edge the respective counter counts:

Edge selection At rising edge (default) At falling edge
At rising and falling edge

Meaning
The respective counter counts all rising edges at the digital input.
The respective counter counts all falling edges at the digital input.
The respective counter counts all edges at the digital input.

Count direction Use this parameter to specify the counting direction of the respective counter. You can select from the following options:  Up  Down

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

229

Using the module 5.2 Using the digital module

Set output

Use this parameter to specify the Function (Page 92) that controls the STS_DQ feedback bit. You can use the STS_DQ reset bit in order to control a digital output module's digital output.
You can select from the following options:

Option Off (DQ = 0) Off (DQ = 1) Between comparison value 0 and 1 Not between comparison value 0 and 1 Between comparison value and counter high limit Between comparison value and counter low limit

Meaning
Regardless of the counter value, STS_DQ is permanently not set.
Regardless of the counter value, STS_DQ is permanently set.
STS_DQ is set if the counter value between comparison values 0 and 1.
STS_DQ is set if the counter value is outside the range between comparison values 0 and 1.
STS_DQ is set if the counter value is between the comparison value and the counter high limit.
STS_DQ is set if the counter value is between the comparison value and the counter low limit.

Setting function of the DI Use this parameter to specify which function the respective digital input DIn+4 triggers. You can select from the following options:

Option Digital input without function Gate start/stop
Count direction

Meaning
No function is assigned to the respective digital input DIn+4. The signal status of DIn+4 can be read by the CPU using the feedback interface.
Setting the respective digital input DIn+4 opens the hardware gate (Page 90) for DIn. Resetting the respective digital input DIn+4 closes the hardware gate for DIn.
The respective DIn+4 digital input determines the counting direction at DIn, in order to adjust it to the process. If DIn+4 is not set, DIn counts up. If DIn+4 is set, DIn counts down.

Note
If "Count direction" is selected and the counting direction in the process changes, the counting edge is automatically adjusted (opposite edges).

230

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.2 Using the digital module

High counting limit
You limit the counting range by setting the counter high limit. The maximum value for the counter high limit depends on the module:

High counting limit
Maximum value Default

DI 8x24VDC HS, DIQ 16x24VDC/0.5A 8xM12 2147483647 (231­1) 2147483647

You must enter a value that lies above the counter low limit.

DI 32x24VDC HF, DI 16x24VDC HF 4294967295 (232­1) 4294967295

Counter low limit
You limit the counting range by setting the counter low limit. The minimum value for the counter low limit depends on the module:

Counter low limit
Minimum value Default

DI 8x24VDC HS, DIQ 16x24VDC/0.5A 8xM12 ­2147483648 (­231) 0

You must enter a value below the counter high limit.

DI 32x24VDC HF, DI 16x24VDC HF 0 (not configurable) 0

Start value

By configuring the start value, you specify the value at which counting is to start. You must enter a value between the counting limits or equal to the counting limits.
The default setting is "0".

Comparison value
By configuring a comparison value (Page 92), you specify the counter value that controls the STS_DQ reset bit based on the comparison function that was selected under "Set output".
You have to enter a value that is greater than or equal to the low counting limit as well as smaller than or equal to the high counting limit.
The default setting depends on the module:

Comparison value Default

DI 8x24VDC HS, DIQ 16x24VDC/0.5A 8xM12 10

DI 32x24VDC HF, DI 16x24VDC HF 1

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

231

Using the module 5.2 Using the digital module
Comparison value 0 By configuring a comparison value (Page 92), you specify the counter value that controls the STS_DQ reset bit based on the comparison function that was selected under "Set output". You must enter a value which is greater than or equal to the counter low limit and less than comparison value 1. The default setting is "0".
Comparison value 1 By configuring the second comparison value (Page 92), you specify the additional counter value that controls the STS_DQ reset bit based on the comparison function that was selected under "Set output". You must enter a value which is greater than comparison value 0 and less than or equal to the counter high limit. The default setting is "10".
Hardware interrupt: Comparison event for DQ occurred With this parameter, you specify for S7-1500 and ET200AL whether a process alarm is given off when a comparison event occurs based on the comparison function that was selected under "Set output". The hardware interrupt is not enabled in the default setting.

232

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Using the module 5.2 Using the digital module

5.2.2

Online & diagnostics module

5.2.2.1

Displaying and evaluating diagnostics The online and diagnostics view enables hardware diagnostics. You can also  Obtain information on the module (e.g., Firmware version and serial number)  Execute a firmware update if required

Procedure

To open the display editor for the diagnostic functions, follow these steps: 1. Open the device configuration of the CPU or IM. 2. Select the device view. 3. Right-click on the module and select "Online & Diagnostics". 4. Select the required display in the diagnostics navigation.

Additional information
Additional information on the diagnostic alarms and possible remedies can be found in the module's device manual.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

233

Service & Support

A

Unmatched complete service for the entire life cycle
For machine manufacturers, solution providers and plant operators: The service offering from Siemens Industry Automation and Drive Technologies includes comprehensive services for a wide range of different users in all sectors of the manufacturing and process industry.
To accompany our products and systems, we offer integrated and structured services that provide valuable support in every phase of the life cycle of your machine or plant ­ from planning and implementation through commissioning as far as maintenance and modernization.
Our Service & Support accompanies you worldwide in all matters concerning automation and drive technology from Siemens. We provide direct on-site support in more than 100 countries through all phases of the life cycle of your machines and plants.
You have an experienced team of specialists at your side to provide active support and bundled know-how. Regular training courses and intensive contact among our employees ­ even across continents ­ ensure reliable service in the most diverse areas.

234

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Service & Support

Online Support
The comprehensive online information platform supports you in all aspects of our Service & Support at any time and from any location in the world.
You can find Online Support at the following address on the Internet (http://www.siemens.com/automation/service&support).

Technical Consulting
Support in planning and designing your project: From detailed actual-state analysis, definition of the goal and consultation on product and system questions right through to the creation of the automation solution.

Technical Support
Expert advice on technical questions with a wide range of demand-optimized services for all our products and systems.
You can find Technical Support at the following address on the Internet (http://www.siemens.com/automation/support-request).

Training

Extend your competitive edge ­ through practical know-how directly from the manufacturer.
You can find the training courses at the following address on the Internet (http://www.siemens.com/sitrain).

Engineering Support
Support during project engineering and development with services fine-tuned to your requirements, from configuration through to implementation of an automation project.

Field Service

Our Field Service offers you services for commissioning and maintenance ­ to ensure that your machines and plants are always available.

Spare parts

In every sector worldwide, plants and systems are required to operate with constantly increasing reliability. We will provide you with the support you need to prevent a standstill from occurring in the first place: with a worldwide network and optimum logistics chains.

Repairs

Downtimes cause problems in the plant as well as unnecessary costs. We can help you to reduce both to a minimum ­ with our worldwide repair facilities.

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

235

Service & Support

Optimization

During the service life of machines and plants, there is often a great potential for increasing productivity or reducing costs.
To help you achieve this potential, we are offering a complete range of optimization services.

Modernization

You can also rely on our support when it comes to modernization ­ with comprehensive services from the planning phase all the way to commissioning.

Service programs Our service programs are select service packages for an automation and drives system or product group. The individual services are coordinated with each other to ensure smooth coverage of the entire life cycle and support optimum use of your products and systems. The services of a service program can be flexibly adapted at any time and used separately. Examples of service programs:  Service contracts  Plant IT Security Services  Life Cycle Services for Drive Engineering  SIMATIC PCS 7 Life Cycle Services  SINUMERIK Manufacturing Excellence  SIMATIC Remote Support Services

Benefits at a glance:  Reduced downtimes for increased productivity  Optimized maintenance costs due to a tailored scope of services  Costs that can be calculated and therefore planned  Service reliability due to guaranteed response times and spare part delivery times  Customer service personnel will be supported and relieved of additional tasks  Comprehensive service from a single source, fewer interfaces and greater expertise

Contact

At your service locally, around the globe: your partner for consultation, sales, training, service, support, spare parts... for the entire range of products from Industry Automation and Drive Technologies.
You can find your personal contact in our contacts database on the Internet (http://www.siemens.com/automation/partner).

236

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Index
A
Absolute encoder, 26
B
Basic parameters High_Speed_Counter, 103 SSI_Absolute_Encoder, 147 Technology module, 179
C
Call High_Speed_Counter, 125 SSI_Absolute_Encoder, 164
Capture, 25, 26, 34, 37, 111, 151, 196, 210 Commissioning
High_Speed_Counter, 138 SSI_Absolute_Encoder, 172 Compact CPU Performance features, 14, 16 Compact CPU S7-1500, (Technology module) Comparison value, 47, 116, 153, 200, 212 Counting, 116, 200 Digital input module, 92 Position input, 153, 212 Control interface, 219 Counter limits, 24, 28, 87, 88, 231 Counting Comparison value, 116, 200 Counting functions, 24, 82, 83, 87 Counting limits, 82, 83, 109, 194 CPU-STOP, 179
D
Diagnostic interrupt, 70 Enable, 181, 181
Diagnostics High_Speed_Counter, 140 SSI_Absolute_Encoder, 173 Technology module, 218, 233
Digital input Functions, 111, 151, 196, 210
Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

Digital input module Applications, 86 Hardware configuration, 227 Performance features, 14, 16
Digital input/digital output module Performance features, 17
Digital output Comparison value, 47, 116, 153, 200, 212 Functions, 116, 153, 200, 212
E
Enable Diagnostic interrupt, 70 Hardware interrupt, 70, 95
Error response High_Speed_Counter, 130 SSI_Absolute_Encoder, 166
ErrorID, 135, 170
F
Feedback interface, 222 Filter frequency, 105, 191 Frequency measurement, 58
G
Gate control, 24, 30, 58, 87, 90, 111, 196
H
Hardware gate, 24, 30, 87, 90, 111, 196 Hardware interrupt, 70, 95
Enable, 187 lost, 186 High_Speed_Counter, 97, 125 Basic parameters, 103 Call, 125 Commissioning, 138 Configuring, 101 Description, 125 Diagnostics, 140 Error response, 130 Input parameters, 131 Operating principle, 125
237

Index
Output parameters, 133 Programming, 124 Static tags, 137 Hysteresis, 25, 26, 66, 68, 120, 156, 204, 215
I
Input parameters High_Speed_Counter, 131 SSI_Absolute_Encoder, 167
Isochronous mode, 79, 85, 96
L
Latch, (Capture)
M
Measuring functions, 58 Measuring interval, 60, 63 Measuring range, 59, 59, 63
O
Operating mode, 181 High_Speed_Counter, 116
Operating principle High_Speed_Counter, 125 SSI_Absolute_Encoder, 164
Output parameters High_Speed_Counter, 133 SSI_Absolute_Encoder, 169
P
Parameter ErrorID, 135, 170
Parameter assignment Compact CPU, 22 Technology module, 22, 177
Period measurement, 58 Position input
Comparison value, 153, 212 With Motion Control, 70 with SSI absolute encoder, 26, 26
R
Reaction to CPU STOP, 179
238

S
Sensor type, 105, 191 Signal evaluation, 105, 191 Signal N, 105, 191 Signal type, 104, 190, 207 Sinking output, 105, 191 Software gate, 24, 30, 87, 90 Sourcing output, 105, 191 SSI absolute encoder, 148, 207 SSI_Absolute_Encoder, 142, 164
Basic parameters, 147 Call, 164 Commissioning, 172 Configuring, 146 Description, 164 Diagnostics, 173 Error response, 166 Input parameters, 167 Operating principle, 164 Output parameters, 169 Programming, 163 Static tags, 171 Start value, 24, 87, 109, 195, 231 Static tags High_Speed_Counter, 137 SSI_Absolute_Encoder, 171 SW_GATE, 30, 90 Synchronization, 25, 39, 111, 196 at signal N, 44, 111, 196 by digital input, 42
T
Technology module Application scenarios, 18 Applications, 81 Basic parameters, 179 Control interface, 219 Feedback interface, 222 Hardware configuration, 175 Online & Diagnostics, 218, 233 Parameter assignment, 177 Performance features, 14, 16 Project tree, 176
Technology object High_Speed_Counter, 97 SSI_Absolute_Encoder, 142
U
Update time, 58
Counting, measurement and position detection
Function Manual, 10/2018, A5E32009889-AH

V
Velocity measurement, 58
W
Wire break, 180

Index

Counting, measurement and position detection Function Manual, 10/2018, A5E32009889-AH

239

SIMATIC S7-1200, S7-1500 PID control
Function Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _Pr_in_ci_ple_s_fo_r _co_nt_ro_l _______2_ _Ccoo_nnt_friog_lule_rirn_g_a_so_ft_wa_re_______3_ _Us_in_g_P_ID__C_o_m_pa_c_t _______4_ _Us_in_g_P_ID__3_S_te_p _________5_ _Us_in_g_P_ID__T_e_m_p _________6_ _Us_in_g_P_ID_b_as_ic_fu_n_ct_ion_s_____7_ _Au_x_ilia_ry_f_un_ct_io_ns_________8_ _In_str_u_cti_on_s____________9_ _Se_rv_ic_e_&_S_up_p_or_t ________A_

10/2018
A5E35300227-AD

Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E35300227-AD  09/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Preface

Purpose of the documentation
This documentation will support you in configuring and programming control tasks with the S7-1200 and S7-1500 automation systems.

Basic knowledge required The following knowledge is required in order to understand the documentation:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Experience of working with STEP 7 (TIA Portal)

Validity of the documentation
This documentation applies to the use of SW controllers on the CPUs of automation systems S7-1200 and S7-1500 together with STEP 7 (TIA Portal). Additional SW controllers that are not covered in this documentation are available for the use of S7-300 and S7-400 with STEP 7 (TIA Portal). Section Overview of software controller (Page 39) gives a complete overview of all SW controllers in STEP 7 (TIA Portal) and their possible applications.

Conventions

Please observe notes marked as follows:
Note The notes contain important information on the product described in the documentation, on the handling of the product or on part of the documentation to which particular attention should be paid.

Additional assistance
 Information on the offers of our Technical Support are available in the appendix Service & Support (Page 566).
 The range of technical documentation for the individual SIMATIC products and automation systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal).
 The online catalog and the ordering system are available on the Internet (http://mall.automation.siemens.com).

PID control

Function Manual, 10/2018, A5E35300227-AD

3

Table of contents

Preface ...................................................................................................................................................... 3

1 Documentation guide ............................................................................................................................... 12

2 Principles for control ................................................................................................................................ 17

2.1

Controlled system and actuators ........................................................................................... 17

2.2

Controlled systems ................................................................................................................ 19

2.3

Characteristic values of the control section ........................................................................... 21

2.4

Pulse controller ...................................................................................................................... 24

2.5

Response to setpoint changes and disturbances .................................................................. 28

2.6

Control Response at Different Feedback Structures ............................................................. 30

2.7

Selection of the controller structure for specified controlled systems.................................... 37

2.8

PID parameter settings .......................................................................................................... 38

3 Configuring a software controller ............................................................................................................. 39

3.1

Overview of software controller.............................................................................................. 39

3.2

Steps for the configuration of a software controller ............................................................... 41

3.3

Add technology objects .......................................................................................................... 41

3.4

Configure technology objects................................................................................................. 42

3.5

Call instruction in the user program ....................................................................................... 43

3.6

Downloading technology objects to device ............................................................................ 44

3.7

Commissioning software controller ........................................................................................ 45

3.8

Save optimized PID parameter in the project ........................................................................ 45

3.9 3.9.1 3.9.2

Comparing values .................................................................................................................. 46 Comparison display and boundary conditions ....................................................................... 46 Comparing values .................................................................................................................. 47

3.10 3.10.1 3.10.2 3.10.2.1 3.10.2.2 3.10.2.3 3.10.3 3.10.4

Parameter view ...................................................................................................................... 49 Introduction to the parameter view......................................................................................... 49 Structure of the parameter view............................................................................................. 51 Toolbar ................................................................................................................................... 51 Navigation .............................................................................................................................. 51 Parameter table...................................................................................................................... 52 Opening the parameter view .................................................................................................. 54 Default setting of the parameter view .................................................................................... 55

PID control

4

Function Manual, 10/2018, A5E35300227-AD

Table of contents

3.10.5 3.10.5.1 3.10.5.2 3.10.5.3 3.10.5.4 3.10.5.5 3.10.5.6 3.10.5.7 3.10.5.8 3.10.5.9 3.10.5.10 3.10.5.11 3.10.5.12 3.10.5.13 3.10.5.14

Working with the parameter view............................................................................................58 Overview .................................................................................................................................58 Filtering the parameter table...................................................................................................58 Sorting the parameter table ....................................................................................................59 Transferring parameter data to other editors..........................................................................59 Indicating errors ......................................................................................................................60 Editing start values in the project............................................................................................60 Status of configuration (offline) ...............................................................................................62 Monitoring values online in the parameter view .....................................................................63 Change display format of value ..............................................................................................64 Create snapshot of monitor values .........................................................................................65 Modifying values .....................................................................................................................66 Comparing values ...................................................................................................................68 Applying values from the online program as start values .......................................................70 Initializing setpoints in the online program..............................................................................71

3.11

Display instance DB of a technology object. ..........................................................................72

4 Using PID_Compact ................................................................................................................................ 73

4.1

Technology object PID_Compact ...........................................................................................73

4.2 4.2.1 4.2.1.1 4.2.1.2 4.2.1.3 4.2.2 4.2.2.1 4.2.2.2 4.2.2.3 4.2.3 4.2.4

PID_Compact V2 ....................................................................................................................74 Configuring PID_Compact V2.................................................................................................74 Basic settings V2 ....................................................................................................................74 Process value settings V2 ......................................................................................................78 Advanced settings V2 .............................................................................................................79 Commissioning PID_Compact V2...........................................................................................88 Pretuning V2 ...........................................................................................................................88 Fine tuning V2.........................................................................................................................90 "Manual" mode V1 ..................................................................................................................92 Override control with PID_Compact V2 ..................................................................................93 Simulating PID_Compact V2 with PLCSIM ............................................................................97

4.3 4.3.1 4.3.1.1 4.3.1.2 4.3.1.3 4.3.2 4.3.2.1 4.3.2.2 4.3.2.3 4.3.2.4 4.3.3

PID_Compact V1 ....................................................................................................................98 Configuring PID_Compact V1.................................................................................................98 Basic settings V1 ....................................................................................................................98 Process value settings V1 ....................................................................................................102 Advanced settings V1 ...........................................................................................................103 Commissioning PID_Compact V1.........................................................................................111 Commissioning V1 ................................................................................................................111 Pretuning V1 .........................................................................................................................112 Fine tuning V1.......................................................................................................................114 "Manual" mode V1 ................................................................................................................116 Simulating PID_Compact V1 with PLCSIM ..........................................................................117

PID control

Function Manual, 10/2018, A5E35300227-AD

5

Table of contents

5 Using PID_3Step ................................................................................................................................... 118

5.1

Technology object PID_3Step.............................................................................................. 118

5.2 5.2.1 5.2.1.1 5.2.1.2 5.2.1.3 5.2.1.4 5.2.2 5.2.2.1 5.2.2.2 5.2.2.3 5.2.2.4 5.2.3

PID_3Step V2....................................................................................................................... 119 Configuring PID_3Step V2 ................................................................................................... 119 Basic settings V2.................................................................................................................. 119 Process value settings V2.................................................................................................... 124 Final controlling element settings V2 ................................................................................... 125 Advanced settings V2 .......................................................................................................... 129 Commissioning PID_3Step V2............................................................................................. 133 Pretuning V2 ........................................................................................................................ 133 Fine tuning V2 ...................................................................................................................... 135 Commissioning with manual PID parameters V2 ................................................................ 137 Measuring the motor transition time V2 ............................................................................... 138 Simulating PID_3Step V2 with PLCSIM............................................................................... 141

5.3 5.3.1 5.3.1.1 5.3.1.2 5.3.1.3 5.3.1.4 5.3.2 5.3.2.1 5.3.2.2 5.3.2.3 5.3.2.4 5.3.2.5 5.3.3

PID_3Step V1....................................................................................................................... 142 Configuring PID_3Step V1 ................................................................................................... 142 Basic settings V1.................................................................................................................. 142 Process value settings V1.................................................................................................... 147 V1 final controlling element setting ...................................................................................... 148 Advanced settings V1 .......................................................................................................... 151 Commissioning PID_3Step V1............................................................................................. 154 Commissioning V1 ............................................................................................................... 154 Pretuning V1 ........................................................................................................................ 155 Fine tuning V1 ...................................................................................................................... 156 Commissioning with manual PID parameters V1 ................................................................ 157 Measuring the motor transition time V1 ............................................................................... 158 Simulating PID_3Step V1 with PLCSIM............................................................................... 160

6 Using PID_Temp.................................................................................................................................... 161

6.1

Technology object PID_Temp.............................................................................................. 161

6.2 6.2.1 6.2.1.1 6.2.1.2 6.2.1.3 6.2.1.4 6.2.1.5 6.2.1.6 6.2.2 6.2.2.1 6.2.2.2 6.2.3 6.2.3.1 6.2.3.2 6.2.4 6.2.4.1 6.2.4.2 6.2.4.3

Configuring PID_Temp......................................................................................................... 162 Basic settings ....................................................................................................................... 162 Introduction .......................................................................................................................... 162 Controller type...................................................................................................................... 163 Setpoint ................................................................................................................................ 163 Process value....................................................................................................................... 164 Heating and cooling output value......................................................................................... 164 Cascade ............................................................................................................................... 166 Process value settings ......................................................................................................... 167 Process value limits ............................................................................................................. 167 Process value scaling .......................................................................................................... 167 Output settings ..................................................................................................................... 168 Basic settings of output ........................................................................................................ 168 Output value limits and scaling ............................................................................................ 171 Advanced settings................................................................................................................ 174 Process value monitoring..................................................................................................... 174 PWM limits ........................................................................................................................... 175 PID parameters .................................................................................................................... 177

PID control

6

Function Manual, 10/2018, A5E35300227-AD

Table of contents

6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6

Commissioning PID_Temp ...................................................................................................185 Commissioning .....................................................................................................................185 Pretuning ............................................................................................................................... 186 Fine tuning ............................................................................................................................189 "Manual" mode......................................................................................................................193 Substitute setpoint ................................................................................................................194 Cascade commissioning.......................................................................................................194

6.4 6.4.1 6.4.2 6.4.3 6.4.4 6.4.5 6.4.6

Cascade control with PID_Temp ..........................................................................................195 Introduction ...........................................................................................................................195 Program creation ..................................................................................................................197 Configuration ......................................................................................................................... 199 Commissioning .....................................................................................................................201 Substitute setpoint ................................................................................................................202 Operating modes and fault response....................................................................................202

6.5

Multi-zone controlling with PID_Temp ..................................................................................203

6.6

Override control with PID_Temp...........................................................................................206

6.7

Simulating PID_Temp with PLCSIM .....................................................................................211

7 Using PID basic functions ...................................................................................................................... 212

7.1 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6

CONT_C ...............................................................................................................................212 Technology object CONT_C .................................................................................................212 Configure controller difference CONT_C ..............................................................................213 Configure the controller algorithm CONT_C.........................................................................214 Configure the output value CONT_C ....................................................................................215 Programming a pulse controller............................................................................................216 Commissioning CONT_C......................................................................................................217

7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5

CONT_S ................................................................................................................................ 218 Technology object CONT_S .................................................................................................218 Configure controller difference CONT_S ..............................................................................219 Configuring control algorithm CONT_S ................................................................................220 Configure manipulated value CONT_S.................................................................................220 Commissioning CONT_S......................................................................................................221

7.3 7.3.1 7.3.2 7.3.2.1 7.3.2.2 7.3.2.3 7.3.2.4 7.3.3 7.3.3.1 7.3.3.2 7.3.3.3 7.3.3.4

TCONT_CP ...........................................................................................................................222 Technology object TCONT_CP ............................................................................................222 Configure TCONT_CP ..........................................................................................................223 Controller difference..............................................................................................................223 Controlling algorithm .............................................................................................................224 Manipulated value continual controller .................................................................................225 Manipulated value pulse controller .......................................................................................226 Commissioning TCONT_CP .................................................................................................229 Optimization of TCONT_CP..................................................................................................229 Requirements for an optimization .........................................................................................232 Possibilities for optimization..................................................................................................234 Tuning result .........................................................................................................................237

PID control

Function Manual, 10/2018, A5E35300227-AD

7

Table of contents

7.3.3.5 7.3.3.6 7.3.3.7 7.3.3.8 7.3.3.9 7.3.3.10 7.3.3.11

Parallel tuning of controller channels ................................................................................... 238 Fault descriptions and corrective measures ........................................................................ 239 Performing pretuning ........................................................................................................... 242 Performing fine tuning .......................................................................................................... 242 Cancelling pretuning or fine tuning ...................................................................................... 243 Manual fine-tuning in control mode...................................................................................... 243 Performing fine tuning manually .......................................................................................... 245

7.4 7.4.1 7.4.2 7.4.3 7.4.4 7.4.5

TCONT_S............................................................................................................................. 246 Technology object TCONT_S .............................................................................................. 246 Configure controller difference TCONT_S ........................................................................... 247 Configure controller algorithm TCONT_S ............................................................................ 248 Configure manipulated value TCONT_S ............................................................................. 248 Commissioning TCONT_S ................................................................................................... 249

8 Auxiliary functions .................................................................................................................................. 250

8.1

Polyline................................................................................................................................. 250

8.2

SplitRange............................................................................................................................ 250

8.3

RampFunction...................................................................................................................... 251

9 Instructions ............................................................................................................................................ 252

9.1 9.1.1 9.1.2 9.1.3 9.1.4 9.1.4.1 9.1.4.2 9.1.4.3 9.1.4.4 9.1.4.5 9.1.4.6 9.1.4.7 9.1.4.8 9.1.4.9 9.1.4.10 9.1.4.11 9.1.4.12 9.1.4.13 9.1.5 9.1.5.1 9.1.5.2 9.1.5.3 9.1.5.4 9.1.5.5 9.1.5.6 9.1.5.7 9.1.5.8 9.1.5.9 9.1.5.10

PID_Compact ....................................................................................................................... 252 New features of PID_Compact............................................................................................. 252 Compatibility with CPU and FW........................................................................................... 256 CPU processing time and memory requirement PID_Compact V2.x .................................. 257 PID_Compact V2.................................................................................................................. 258 Description of PID_Compact V2 .......................................................................................... 258 Mode of operation of PID_Compact V2 ............................................................................... 261 Input parameters of PID_Compact V2 ................................................................................. 264 Output parameters of PID_Compact V2 .............................................................................. 266 In/out parameters of PID_Compact V2 ................................................................................ 267 Static tags of PID_Compact V2............................................................................................ 268 Changing the PID_Compact V2 interface ............................................................................ 276 Parameters State and Mode V2........................................................................................... 278 Parameter ErrorBits V2 ........................................................................................................ 282 Tag ActivateRecoverMode V2 ............................................................................................. 284 Tag Warning V2 ................................................................................................................... 286 IntegralResetMode V2 tag ................................................................................................... 287 Sample program for PID_Compact ...................................................................................... 289 PID_Compact V1.................................................................................................................. 297 Description of PID_Compact V1 .......................................................................................... 297 Input parameters of PID_Compact V1 ................................................................................. 301 Output parameters of PID_Compact V1 .............................................................................. 302 Static tags of PID_Compact V1............................................................................................ 303 Parameters State and sRet.i_Mode V1 ............................................................................... 308 Parameter Error V1 .............................................................................................................. 312 Parameter Reset V1 ............................................................................................................ 313 Tag sd_warning V1 .............................................................................................................. 315 Tag i_Event_SUT V1............................................................................................................ 315 Tag i_Event_TIR V1 ............................................................................................................. 316

PID control

8

Function Manual, 10/2018, A5E35300227-AD

Table of contents

9.2 9.2.1 9.2.2 9.2.3 9.2.4 9.2.4.1 9.2.4.2 9.2.4.3 9.2.4.4 9.2.4.5 9.2.4.6 9.2.4.7 9.2.4.8 9.2.4.9 9.2.4.10 9.2.4.11 9.2.5 9.2.5.1 9.2.5.2 9.2.5.3 9.2.5.4 9.2.5.5 9.2.5.6 9.2.5.7 9.2.5.8 9.2.5.9 9.2.5.10 9.2.5.11 9.2.5.12
9.3 9.3.1 9.3.2 9.3.3 9.3.4 9.3.4.1 9.3.4.2 9.3.4.3 9.3.4.4 9.3.4.5 9.3.4.6 9.3.4.7 9.3.4.8 9.3.4.9 9.3.4.10 9.3.4.11 9.3.4.12

PID_3Step .............................................................................................................................317 New features of PID_3Step ..................................................................................................317 Compatibility with CPU and FW............................................................................................319 CPU processing time and memory requirement PID_3Step V2.x ........................................320 PID_3Step V2 .......................................................................................................................321 Description of PID_3Step V2 ................................................................................................321 Mode of operation of PID_3Step V2 .....................................................................................326 Changing the PID_3Step V2 interface ..................................................................................330 Input parameters of PID_3Step V2 .......................................................................................331 Output parameters of PID_3Step V2 ....................................................................................333 In/out parameters of PID-3Step V2.......................................................................................335 Static tags of PID_3Step V2 .................................................................................................336 Parameters State and Mode V2 ...........................................................................................346 Parameter ErrorBits V2.........................................................................................................351 Tag ActivateRecoverMode V2 ..............................................................................................354 Tag Warning V2 ....................................................................................................................356 PID_3Step V1 .......................................................................................................................357 Description PID_3Step V1 ....................................................................................................357 Operating principle PID_3Step V1 ........................................................................................362 PID_3Step V1 input parameters ...........................................................................................365 PID_3Step V1 output parameters .........................................................................................367 PID_3Step V1 static tags ......................................................................................................369 Parameter State and Retain.Mode V1..................................................................................378 Parameter ErrorBits V1.........................................................................................................385 Parameter Reset V1 .............................................................................................................387 Tag ActivateRecoverMode V1 ..............................................................................................388 Tag Warning V1 ....................................................................................................................390 Tag SUT.State V1.................................................................................................................391 Tag TIR.State V1 ..................................................................................................................391
PID_Temp .............................................................................................................................392 New features of PID_Temp...................................................................................................392 Compatibility with CPU and FW............................................................................................392 CPU processing time and memory requirement PID_Temp V1 ...........................................393 PID_Temp .............................................................................................................................394 Description of PID_Temp......................................................................................................394 Mode of operation of PID_Temp...........................................................................................399 Input parameters of PID_Temp.............................................................................................405 Output parameters of PID_Temp..........................................................................................407 In/out parameters of PID_Temp V2 ......................................................................................409 PID_Temp static tags............................................................................................................411 PID_Temp state and mode parameters................................................................................446 PID_Temp ErrorBits parameter ............................................................................................455 PID_Temp ActivateRecoverMode tag...................................................................................458 PID_Temp Warning tag ........................................................................................................460 PwmPeriode tag....................................................................................................................461 IntegralResetMode tag .........................................................................................................464

PID control

Function Manual, 10/2018, A5E35300227-AD

9

Table of contents

9.4 9.4.1 9.4.1.1 9.4.1.2 9.4.1.3 9.4.1.4 9.4.1.5 9.4.2 9.4.2.1 9.4.2.2 9.4.2.3 9.4.2.4 9.4.2.5 9.4.3 9.4.3.1 9.4.3.2 9.4.3.3 9.4.3.4 9.4.3.5 9.4.3.6 9.4.3.7 9.4.4 9.4.4.1 9.4.4.2 9.4.4.3 9.4.4.4 9.4.4.5 9.4.4.6 9.4.4.7 9.4.4.8 9.4.4.9 9.4.4.10 9.4.5 9.4.5.1 9.4.5.2 9.4.5.3 9.4.5.4 9.4.5.5 9.4.5.6 9.4.5.7 9.4.6 9.4.6.1 9.4.6.2 9.4.6.3
9.5 9.5.1 9.5.2 9.5.3 9.5.4 9.5.5 9.5.6 9.5.7

PID basic functions .............................................................................................................. 466 CONT_C............................................................................................................................... 466 Description CONT_C ........................................................................................................... 466 How CONT_C works ............................................................................................................ 467 CONT_C block diagram ....................................................................................................... 469 Input parameter CONT_C .................................................................................................... 470 Output parameters CONT_C ............................................................................................... 472 CONT_S ............................................................................................................................... 473 Description CONT_S............................................................................................................ 473 Mode of operation CONT_S................................................................................................. 474 Block diagram CONT_S ....................................................................................................... 475 Input parameters CONT_S .................................................................................................. 476 Output parameters CONT_S................................................................................................ 477 PULSEGEN.......................................................................................................................... 478 Description PULSEGEN ...................................................................................................... 478 Mode of operation PULSEGEN ........................................................................................... 479 Mode of operation PULSEGEN ........................................................................................... 482 Three-step control ................................................................................................................ 483 Two-step control................................................................................................................... 486 Input parameters PULSEGEN ............................................................................................. 487 Output parameter PULSEGEN ............................................................................................ 488 TCONT_CP .......................................................................................................................... 489 Description TCONT_CP ....................................................................................................... 489 Mode of operation TCONT_CP............................................................................................ 490 Operating principle of the pulse generator........................................................................... 499 Block diagram TCONT_CP .................................................................................................. 502 Input parameters TCONT_CP.............................................................................................. 504 Output parameters TCONT_CP........................................................................................... 505 In/out parameters TCONT_CP............................................................................................. 506 Static variables TCONT_CP ................................................................................................ 507 Parameter STATUS_H......................................................................................................... 512 Parameters STATUS_D ....................................................................................................... 513 TCONT_S............................................................................................................................. 514 Description TCONT_S ......................................................................................................... 514 Mode of operation TCONT_S .............................................................................................. 515 Block diagram TCONT_S..................................................................................................... 519 Input paramters TCONT_S .................................................................................................. 520 Output parameters TCONT_S ............................................................................................. 521 In/out parameters TCONT_S ............................................................................................... 521 Static variables TCONT_S ................................................................................................... 522 Integrated system functions ................................................................................................. 523 CONT_C_SF ........................................................................................................................ 523 CONT_S_SF ........................................................................................................................ 523 PULSEGEN_SF ................................................................................................................... 524
Polyline................................................................................................................................. 525 Compatibility with CPU and FW........................................................................................... 525 Description Polyline ............................................................................................................. 525 Operating principle Polyline ................................................................................................. 529 Input parameters of Polyline ................................................................................................ 533 Output parameters of Polyline ............................................................................................. 533 Static tags of Polyline........................................................................................................... 534 ErrorBits parameter.............................................................................................................. 536

PID control

10

Function Manual, 10/2018, A5E35300227-AD

Table of contents

9.6 9.6.1 9.6.2 9.6.3 9.6.4 9.6.5 9.6.6

SplitRange ............................................................................................................................541 Compatibility with CPU and FW............................................................................................541 SplitRange description ..........................................................................................................541 SplitRange input parameters ................................................................................................544 SplitRange output parameters ..............................................................................................544 SplitRange static tags ...........................................................................................................545 ErrorBits parameter...............................................................................................................546

9.7 9.7.1 9.7.2 9.7.3 9.7.4 9.7.5 9.7.6 9.7.7

RampFunction ....................................................................................................................... 549 Compatibility with CPU and FW............................................................................................549 RampFunction description ....................................................................................................549 RampFunction mode of operation ........................................................................................554 RampFunction input parameters ..........................................................................................558 RampFunction output parameters ........................................................................................558 RampFunction static tags .....................................................................................................559 ErrorBits parameter...............................................................................................................561

A Service & Support.................................................................................................................................. 566

Index...................................................................................................................................................... 569

PID control

Function Manual, 10/2018, A5E35300227-AD

11

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

PID control

12

Function Manual, 10/2018, A5E35300227-AD

Documentation guide

General information
The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA.
You can download the documentation free of charge from the Internet (http://w3.siemens.com/mcms/industrial-automation-systems-simatic/en/manualoverview/Pages/Default.aspx).
Changes and additions to the manuals are documented in product information sheets.
You will find the product information on the Internet:
 S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)
 ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)
 ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (http://support.industry.siemens.com/My/ww/en/documentation).

PID control

Function Manual, 10/2018, A5E35300227-AD

13

Documentation guide
"mySupport" - CAx data In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (http://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

PID control

14

Function Manual, 10/2018, A5E35300227-AD

Documentation guide

SIMATIC Automation Tool You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on different SIMATIC S7 stations as a bulk operation, independently of the TIA Portal.
The SIMATIC automation tool provides a variety of functions:
 Scanning of a PROFINET/Ethernet plant network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 CPU localization by means of LED flashing
 Reading out CPU error information
 Reading of CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

PID control

Function Manual, 10/2018, A5E35300227-AD

15

Documentation guide

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

PID control

16

Function Manual, 10/2018, A5E35300227-AD

Principles for control

2

2.1

Controlled system and actuators

Controlled system
Room temperature control by means of a heating system is a simple example of a controlled system. A sensor measures the room temperature and transfers the value to a controller. The controller compares the current room temperature with a setpoint and calculates an output value (manipulated variable) for heating control.

A properly set PID controller reaches this setpoint as quickly as possible and then holds it a constant value. After a change in the output value, the process value often changes only with a time delay. The controller has to compensate for this response.

PID control

Function Manual, 10/2018, A5E35300227-AD

17

Principles for control 2.1 Controlled system and actuators

Actuators

The actuator is an element of the controlled system and is influenced by the controller. Its function modifies mass and energy flows.
The table below provides an overview of actuator applications.

Application Liquid and gaseous mass flow Solid mass flow, e.g., bulk material Flow of electrical power

Actuator Valve, shutter, gate valve Articulated baffle, conveyor, vibrator channel Switching contact, contactor, relay, thyristor Variable resistor, variable transformer, transistor

Actuators are distinguished as follows:

 Proportional actuators with constant actuating signal

These elements set degrees of opening, angular positions or positions in proportion to the output value. The output value has an analog effect on the process within the control range.

Actuators in this group include spring-loaded pneumatic drives, as well as motorized drives with position feedback for which a position control system is formed.

An continuous controller, such as PID_Compact, generates the output value.

 Proportional actuators with pulse-width modulated signal

These actuators are used to generate the output of pulses with a length proportional to the output value within the sampling time intervals. The actuator - e.g. a heating resistor or cooling apparatus - is switched on in isochronous mode for durations that differ depending on the output value.

The actuating signal can assume unipolar "On" or "Off" states, or represent bipolar states such as "open/close", "forward/backward", "accelerate/brake".

The output value is generated by a two-step controller such as PID_Compact with pulsewidth modulation.

 Actuators with integral action and three-step actuating signal

Actuators are frequently operated by motors with an on period that is proportional to the actuator travel of the choke element. This includes elements such as valves, shutters, and gate valves. In spite of their different design, all of these actuators follow the effect of an integral action at the input of the controlled system.

A step controller, such as PID_3Step. generates the output value.

PID control

18

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.2 Controlled systems

2.2

Controlled systems

The properties of a controlled system can hardly be influenced as these are determined by the technical requirements of the process and machinery. Acceptable control results can only be achieved by selecting a suitable controller type for the specific controlled system and adapting the controller to the time response of the controlled system. Therefore, it is is indispensable for the configuration of the proportional, integral and derivative actions of the controller to have precise knowledge of the type and parameters of the controlled system.

Controlled system types Controlled systems are classified based on their time response to step changes of the output value. We distinguish between the following controlled systems:  Self-regulating controlled systems ­ Proportional-action controlled systems ­ PT1 controlled systems ­ PT2 controlled systems  Non-self-regulating controlled systems  Controlled systems with and without dead time

Self-regulating controlled systems Proportional-action controlled systems
In proportional-action controlled systems, the process value follows the output value almost immediately. The ratio between the process value and output value is defined by the proportional Gain of the controlled system.
Examples:
 Gate valve in a piping system
 Voltage dividers
 Step-down function in hydraulic systems
PT1 controlled systems
In a PT1 controlled system, the process value initially changes in proportion to the change of the output value. The rate of change of the process value is reduced as a function of the time until the end value is reached, i.e., it is delayed.
Examples:
 Spring damping system
 Charge of RC elements
 Water container that is heated with steam.
The time constants are often identical for heating and cooling processes, or for charging and discharge characteristics. With different time constants, controlling is clearly more complex.

PID control

Function Manual, 10/2018, A5E35300227-AD

19

Principles for control 2.2 Controlled systems
PT2 controlled systems In a PT2 controlled system, the process value does not immediately follow a step change of the output value, i.e., it increases in proportion to the positive rate of rise and then approaches the setpoint at a decreasing rate of rise. The controlled system shows a proportional response characteristic with second order delay element. Examples:  Pressure control  Flow rate control  Temperature control
Non-self-regulating controlled systems Non-self-regulating controlled systems have an integral response. The process value approaches an infinite maximum value. Example:  Liquid flow into a container
Controlled systems with dead time A dead time always represents the runtime or transport time that has to expire before a change to the system input can be measured at the system output. In controlled systems with dead time, the process value change is delayed by the amount of the dead time. Example: Conveyor

PID control

20

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.3 Characteristic values of the control section

2.3

Characteristic values of the control section

Determining the time response from the step response
Time response of the controlled system can be determined based on the time characteristic of process value x following a step change of output value y. Most controlled systems are self-regulating controlled systems.

The time response can be determined by approximation using the variables Delay time Tu, Recovery time Tg and Maximum value Xmax. The variables are determined by applying tangents to the maximum value and the inflection point of the step response. In many situations, it is not possible to record the response characteristic up to the maximum value because the process value cannot exceed specific values. In this case, the rate of rise vmax is used to identify the controlled system (vmax = x/t).

PID control

Function Manual, 10/2018, A5E35300227-AD

21

Principles for control 2.3 Characteristic values of the control section

The controllability of the controlled system can be estimated based on the ratio Tu/Tg, or Tu × vmax/Xmax . Rule:

Process type I II III

Tu / Tg < 0.1 0.1 to 0.3 > 0.3

Suitability of the controlled system for controlling can be controlled well can still be controlled difficult to control

Influence of the dead time on the controllability of a controlled system
A controlled system with dead time and recovery reacts as follows to a jump of the output value.

Tt

Dead time

Tu

Delay time

Tg

Recovery time

y

Output value

x

Process value

The controllability of a self-regulating controlled system with dead time is determined by the ratio of Tt to Tg. Tt must be small compared to Tg. Rule:

Tt/Tg  1

PID control

22

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.3 Characteristic values of the control section

Response rate of controlled systems Controlled systems can be judged on the basis of the following values: Tu < 0.5 min, Tg < 5 min = fast controlled system Tu > 0.5 min, Tg > 5 min = slow controlled system

Parameters of certain controlled systems

Physical quantity Temperature
Flow rate Pressure Vessel level Speed Voltage

Controlled system
Small electrically heated furnace Large electrically heated annealing furnace Large gas-heated annealing furnace Distillation tower Autoclaves (2.5 m3) High-pressure autoclaves Steam superheater Injection molding machines Extruders Packaging machines Room heating Pipeline with gas Pipeline with liquid Gas pipeline Drum boiler with gas or oil firing Drum boiler with impact grinding mills Drum boiler Small electric drive Large electric drive Steam turbine Small generators Large generators

Delay time Tu
0.5 to 1 min 1 to 5 min
0.2 to 5 min 1 to 7 min 0.5 to 0.7 min 12 to 15 min 30 s to 2.5 min 0.5 to 3 min 1 to 6 min 0.5 to 4 min 1 to 5 min
0 to 5 s None None None 1 to 2 min 0.6 to 1 min None None None None None

Recovery time Tg Rate of rise vmax

5 to 15 min 10 to 20 min

Up to 60 K/min. Up to 20 K/min.

3 to 60 min 40 to 60 min 10 to 20 min 200 to 300 min
1 to 4 min 3 to 30 min 5 to 60 min 3 to 40 min 10 to 60 min 0.2 to 10 s
None 0.1 s 150 s 2 to 5 min Not specified 0.2 to 10 s 5 to 40 s Not specified 1 to 5 s 5 to 10 s

1 to 30 K/min 0.1 to 0.5° C/s Not specified Not specified
2°C/s 5 to 20 K/min
2 to 35 K/min 1° C/min
Not relevant
Not relevant Not relevant Not relevant 0.1 to 0.3 cm/s Not relevant Not relevant
50 min­1 Not relevant Not relevant

PID control

Function Manual, 10/2018, A5E35300227-AD

23

Principles for control 2.4 Pulse controller

2.4

Pulse controller

Two-step controllers without feedback
Two-step controllers have the state "ON" and "OFF" as the switching function. This corresponds to 100% or 0% output. This behavior generates a sustained oscillation of process value x around setpoint w.
The amplitude and duration of the oscillation increase in proportion to the ratio between the delay time Tu and recovery time Tg of the controlled system. These controllers are used mainly for simple temperature control systems (such as electrically directly heated furnaces) or as limit-value signaling units.
The following diagram shows the characteristic of a two-step controller



ON



OFF

Yh

Control range

w

Setpoint

PID control

24

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.4 Pulse controller
The following diagram shows the control function of a two-step controller



Response characteristic without controller



Response characteristic with two-step controller

Tu

Delay time

Tg

Recovery time

XSd

Switching difference

PID control

Function Manual, 10/2018, A5E35300227-AD

25

Principles for control 2.4 Pulse controller
Two-step controllers with feedback
The behavior of two-step controllers in the case of controlled systems with larger delay times, such as furnaces where the functional space is separated from the heating, can be improved by the use of electronic feedback.
The feedback is used to increase the switching frequency of the controller, which reduces the amplitude of the process value. In addition, the control-action results can be improved substantially in dynamic operation. The limit for the switching frequency is set by the output level. It should not exceed 1 to 5 switches per minute at mechanical actuators, such as relays and contactors. In the case of voltage and current outputs with downstream thyristor or Triac controllers high switching frequencies can be selected that exceed the limit frequency of the controlled system by far.
Since the switching pulses can no longer be determined at the output of the controlled system, results comparable with those of continuous controllers are obtained.
The output value is generated by pulse-width modulation of the output value of a continuous controller.
Two-step controllers with feedback are used for temperature control in furnaces, at processing machines in the plastics, textile, paper, rubber and foodstuff industries as well as for heating and cooling devices.

PID control

26

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.4 Pulse controller
Three-step controllers Three-step controllers are used for heating / cooling. These controllers have two switching points as their output. The control-action results are optimized through electronic feedback structures. Fields of applications for such controllers are heating, low-temperature, climatic chambers and tool heating units for plastic-processing machines. The following diagram shows the characteristic of a three-step controller

y

Output value, e.g.

y11 = 100% heating y12 = 0% heating y21 = 0% cooling y22 = 100% cooling

x

Physical quantity of the process value, e.g., temperature in° C

w

Setpoint

xSh

Distance between Switching Point 1 and Switching Point 2

PID control

Function Manual, 10/2018, A5E35300227-AD

27

Principles for control 2.5 Response to setpoint changes and disturbances

2.5

Response to setpoint changes and disturbances

Response to setpoint changes
The process value should follow a setpoint change as quickly as possible. The response to setpoint changes is improved by minimizing fluctuation of the process value and the time required to reach the new setpoint.

x

Process value

w Setpoint

Response to disturbances
The setpoint is influenced by disturbance variables. The controller has to eliminate the resulting control deviations in the shortest time possible. The response to disturbances is improved by minimizing fluctuation of the process value and the time required to reach the new setpoint.

x

Process value

w Setpoint
 Influencing a disturbance variable

28

PID control Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.5 Response to setpoint changes and disturbances
Disturbance variables are corrected by a controller with integral action. A persistent disturbance variable does not reduce control quality because the control deviation is relatively constant. Dynamic disturbance variables have a more significant impact on control quality because of control deviation fluctuation. The control deviation is eliminated again only by means of the slow acting integral action.
A measurable disturbance variable can be included in the controlled system. This inclusion would significantly accelerated the response of the controller.

PID control

Function Manual, 10/2018, A5E35300227-AD

29

Principles for control 2.6 Control Response at Different Feedback Structures

2.6

Control Response at Different Feedback Structures

Control behavior of controllers
A precise adaptation of the controller to the time response of the controlled system is decisive for the controller's precise settling to the setpoint and optimum response to disturbance variables.
The feedback circuit can have a proportional action (P), proportional-derivative action (PD), proportional-integral action (PI), or proportional-integral-derivative action (PID).
If step functions are to be triggered by control deviations, the step responses of the controllers differ depending on their type.
Step response of a proportional action controller

 Control deviation  Output value of a continuous controller  Output value of a pulse controller

PID control

30

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.6 Control Response at Different Feedback Structures
Equation for proportional action controller Output value and control deviation are directly proportional, meaning: Output value = proportional gain × control deviation y = GAIN × x
Step response of a PD-action controller

  
TM_LAG

Control deviation Output value of a continuous controller Output value of a pulse controller Delay of the Derivative action

PID control

Function Manual, 10/2018, A5E35300227-AD

31

Principles for control 2.6 Control Response at Different Feedback Structures
Equation for PD-action controller The following applies for the step response of the PD-action controller in the time range:
t = time interval since the step of the control deviation The derivative action generates a output value as a function of the rate of change of the process value. A derivative action by itself is not suitable for controlling because the output value only follows a step of the process value. As long as the process value remains constant, the output value will no longer change. The response to disturbances of the derivative action is improved in combination with a proportional action. Disturbances are not corrected completely. The good dynamic response is advantageous. A well attenuated, non-oscillating response is achieved during approach and setpoint change. A controller with derivative action is not appropriate if a controlled system has pulsing measured quantities, for example, in the case of pressure or flow control systems.

PID control

32

Function Manual, 10/2018, A5E35300227-AD

Step response of a PI-action controller

Principles for control 2.6 Control Response at Different Feedback Structures

 Control deviation  Output value of a continuous controller  Output value of a pulse controller
An integral action in the controller adds the control deviation as a function of the time. This means that the controller corrects the system until the control deviation is eliminated. A sustained control deviation is generated at controllers with proportional action only. This effect can be eliminated by means of an integral action in the controller.
In practical experience, a combination of the proportional, integral and derivative actions is ideal, depending on the requirements placed on the control response. The time response of the individual components can be described by the controller parameters proportional gain GAIN, integral action time TI (integral action), and derivative action time TD (derivative action).

PID control

Function Manual, 10/2018, A5E35300227-AD

33

Principles for control 2.6 Control Response at Different Feedback Structures
Equation for PI-action controller The following applies for the step response of the PI-action controller in the time range:
t = time interval since the step of the control deviation

PID control

34

Function Manual, 10/2018, A5E35300227-AD

Step response of a PID controller

Principles for control 2.6 Control Response at Different Feedback Structures

  
TM_LAG
Ti

Control deviation Output value of a continuous controller Output value of a pulse controller Delay of the Derivative action Integral action time

PID control

Function Manual, 10/2018, A5E35300227-AD

35

Principles for control 2.6 Control Response at Different Feedback Structures
Equation for PID controller The following applies for the step response of the PID controller in the time range:
t = time interval since the step of the control deviation
Response of a controlled system with different controller structures Most of the controller systems occurring in process engineering can be controlled by means of a controller with PI-action response. In the case of slow controlled system with a large dead time, for example temperature control systems, the control result can be improved by means of a controller with PID action.



No controller



PID controller



PD-action controller

w

Setpoint

x

Process value

Controllers with PI and PID action have the advantage that the process value does not have any deviation from the setpoint value after settling. The process value oscillates over the setpoint during approach.

PID control

36

Function Manual, 10/2018, A5E35300227-AD

Principles for control 2.7 Selection of the controller structure for specified controlled systems

2.7

Selection of the controller structure for specified controlled systems

Selection of the Suitable Controller Structures
To achieve optimum control results, select a controller structure that is suitable for the controlled system and that you can adapt to the controlled system within specific limits.
The table below provides an overview of suitable combinations of a controller structure and controlled system.

Controlled system With dead time only

P Unsuitable

Controller structure

PD Unsuitable

PI Suitable

PID Unsuitable

PT1 with dead time

Unsuitable

Unsuitable

Well suited

Well suited

PT2 with dead time

Unsuitable

Suited conditionally Well suited

Well suited

Higher order

Unsuitable

Unsuitable

Suited conditionally Well suited

Not self-regulating

Well suited

Well suited

Well suited

Well suited

The table below provides an overview of suitable combinations of a controller structure and physical quantity.

Physical quantity Temperature
Pressure Flow rate

Controller structure

P

PD

PI

PID

Sustained control deviation

No sustained control deviation

For low performance requirements and proportional action controlled systems with Tu/Tg < 0,1

Well suited

The most suitable controller structures for high performance requirements (except for specially adapted special controllers)

Suitable, if the delay time is inconsiderable

Unsuitable

The most suitable controller structures for high performance requirements (except for specially adapted special controllers)

Unsuitable, because required GAIN range is usually too large

Unsuitable

Suitable, but integral action controller alone often better

Hardly required

PID control

Function Manual, 10/2018, A5E35300227-AD

37

Principles for control 2.8 PID parameter settings

2.8

PID parameter settings

Rule of Thumb for the Parameter Setting

Controller structure P PI PD
PID
PD/PID

Setting GAIN  vmax × Tu [° C ] GAIN  1.2 × vmax × Tu [° C ] TI  4 × Tu [ min ] GAIN  0.83 × vmax × Tu [° C ] TD  0.25 × vmax × Tu [ min ] TM_LAG  0.5 × TD[ min ] GAIN  0.83 × vmax × Tu [° C ] TI  2 × Tu [ min ] TD  0.4 × Tu [ min ] TM_LAG  0.5 × TD[ min ] GAIN  0.4 × vmax × Tu [° C ] TI  2 × Tu [ min ] TD  0.4 × Tu [ min ] TM_LAG  0.5 × TD[ min ]

Instead of vmax = x / t , you can use Xmax / Tg.

In the case of controllers with PID structure the setting of the integral action time and differential-action time is usually coupled with each other.

The ratio TI / TD lies between 4 and 5 and is optimal for most controlled systems.

Non-observance of the differential-action time TD is uncritical at PD controllers.

In the case of PI and PID controllers, control oscillations occur if the integral action time TI has been select by more than half too small.

An integral action time that is too large slows down the settling times of disturbances. One cannot expect that the control loops operate "optimally" after the first parameter settings. Experience shows that adjusting is always necessary, when a system exists that is "difficult to control" with Tu / Tg > 0.3.

PID control

38

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller

3

3.1

Overview of software controller

For the configuration of a software controller, you need an instruction with the control algorithm and a technology object. The technology object for a software controller corresponds with the instance DB of the instruction. The configuration of the controller is saved in the technology object. In contrast to the instance DBs of other instructions, technology objects are not stored for the program resources, but rather under CPU > Technology objects.

Technology objects and instructions

CPU
S7-1200
S7-1200
S7-1500 S7-1200 V4.x S7-1500 S7-1200 V4.x S7-1500  V1.7 S7-1200  V4.1 S7-1500/300/400 S7-1500/300/400
S7-1500/300/400
S7-1500/300/400
S7-1500/300/400

Library Compact PID
PID basic functions

Instruction
PID_Compact V1.x PID_3Step V1.x

Technology object
PID_Compact V1.x
PID_3Step V1.x

PID_Compact V2.x
PID_3Step V2.x

PID_Compact V2.x
PID_3Step V2.x

PID_Temp V1.x PID_Temp V1.x

CONT_C CONT_S PULSEGEN TCONT_CP TCONT_S

CONT_C CONT_S TCONT_CP TCONT_S

Description
Universal PID controller with integrated tuning PID controller with integrated tuning for valves Universal PID controller with integrated tuning
PID controller with integrated tuning for valves
Universal PID temperature controller with integrated tuning
Continuous controller Step controller for actuators with integrating behavior Pulse generator for actuators with proportional behavior Continuous temperature controller with pulse generator Temperature controller for actuators with integrating behavior

PID control

Function Manual, 10/2018, A5E35300227-AD

39

Configuring a software controller 3.1 Overview of software controller

CPU
S7-300/400 S7-300/400 S7-300/400 S7-300/400
S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400
S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400
S7-300/400
S7-300/400 S7-300/400 S7-300/400
S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400 S7-300/400

Library

Instruction

PID Self Tuner
Standard PID Control (PID Professional optional package)
Modular PID Control (PID Professional optional package)

TUN_EC TUN_ES PID_CP PID_ES
LP_SCHED
A_DEAD_B CRP_IN CRP_OUT DEAD_T DEADBAND

Technology object TUN_EC TUN_ES PID_CP PID_ES
-
-

DIF

-

ERR_MON

INTEG

-

LAG1ST

-

LAG2ND

-

LIMALARM

-

LIMITER

-

LMNGEN_C

-

LMNGEN_S

-

NONLIN

-

NORM

-

OVERRIDE

-

PARA_CTL

-

PID

-

PUSLEGEN_M -

RMP_SOAK

-

ROC_LIM

-

SCALE_M

-

SP_GEN

-

SPLT_RAN

-

SWITCH

-

LP_SCHED_M -

Description
Optimization of a continuous controller Optimization of a step controller Continuous controller with pulse generator Step controller for actuators with integrating behavior Distribute controller calls
Filter interfering signal from control deviation Scale analog input signal Scale analog output signal Delay output of input signal Suppress small fluctuations to the process value Differentiate input signals over time Monitor control deviation Integrate input signals over time First-order delay element Second-order delay element Report limit values Limiting the manipulated variable Determine manipulated variable for continuous controller Determine manipulated variable for step controller Linearize encoder signal Scale process value physically Switch manipulated variable from 2 PID controllers to 1 actuator Switch parameter sets PID algorithm Generate pulse for proportional actuators Specify setpoint according to ramp / soak Limit rate of change Scale process value Specify setpoint manually Split manipulated variable range Switch analog values Distribute controller calls

PID control

40

Function Manual, 10/2018, A5E35300227-AD

3.2

Configuring a software controller 3.2 Steps for the configuration of a software controller

Steps for the configuration of a software controller
All SW-controllers are configured according to the same scheme:

Step 1 2 3 4 5 6 7 8

Description Add technology object (Page 41) Configure technology object (Page 42) Call instruction in the user program (Page 43) Download technology object to device (Page 44) Commission software controller (Page 45) Save optimized PID parameters in the project (Page 45) Comparing values (Page 47) Display instances of a technology object (Page 72)

3.3

Add technology objects

Add technology object in the project navigator
When a technology object is added, an instance DB is created for the instruction of this technology object. The configuration of the technology object is stored in this instance DB.

Requirement

A project with a CPU has been created.

Procedure

To add a technology object, proceed as follows: 1. Open the CPU folder in the project tree. 2. Open the "Technology objects" folder. 3. Double-click "Add new object".
The "Add new object" dialog box opens. 4. Click on the "PID" button.
All available PID-controllers for this CPU are displayed. 5. Select the instruction for the technology object, for example, PID_Compact. 6. Enter an individual name for the technology object in the "Name" input field. 7. Select the "Manual" option if you want to change the suggested data block number of the
instance DB. 8. Click "Further information" if you want to add own information to the technology object. 9. Confirm with "OK".

PID control

Function Manual, 10/2018, A5E35300227-AD

41

Configuring a software controller 3.4 Configure technology objects

Result

The new technology object has been created and stored in the project tree in the "Technology objects" folder. The technology object is used if the instruction for this technology object is called in a cyclic interrupt OB.
Note
You can select the "Add new and open" check box at the bottom of the dialog box. This opens the configuration of the technology object after adding has been completed.

3.4

Configure technology objects

The properties of a technology object on a S7-1200 CPU can be configured in two ways.

 In the Inspector window of the programming editor

 In the configuration editor

The properties of a technology object on a S7-300/400 CPU can only be configured in the configuration editor.

Inspector window of the programming editor
In the Inspector window of the programming editor you can only configure the parameters required for operation.
The offline values of the parameters are also shown in online mode. You can only change the online values in the commissioning window.
To open the Inspector window of the technology object, follow these steps:
1. Open the "Program blocks" folder in the project tree.
2. Double click the block (cyclic interrupt OB) in which you open the instruction of the SWcontroller. The block is opened in the work area.
3. Click on the instruction of the SW-controller.
4. In the Inspector window, select the "Properties" and "Configuration" tabs consecutively.

Configuration window For each technology object, there is a specific configuration window in which you can configure all properties. To open the configuration window of the technology object, follow these steps: 1. Open the "Technology objects" folder in the project tree. 2. Open the technology object in the project tree. 3. Double-click the "Configuration" object.

PID control

42

Function Manual, 10/2018, A5E35300227-AD

Symbols

Configuring a software controller 3.5 Call instruction in the user program
Icons in the area navigation of the configuration and in the Inspector window show additional details about the completeness of the configuration:
The configuration contains default values and is complete. The configuration exclusively contains default values. With these default values the use of the technology object is possible without further changes. The configuration contains user-defined or automatically adjusted values and is complete All input fields of the configuration contain valid values and at least one default setting was changed. The configuration is incomplete or faulty At least one input field or a collapsible list contains no or one invalid value. The corresponding field or the drop-down list box has a red background. When clicked, the roll-out error message indicates the cause of the error.
The properties of a technology object are described in detail in the section for the technology object.

3.5

Call instruction in the user program

The instruction of the software controller must be called in a cyclic interrupt OB. The sampling time of the software controller is determined by the interval between the calls in the cyclic interrupt OB.

Requirement

The cyclic interrupt OB is created and the cycle time of the cyclic interrupt OB is correctly configured.

Procedure

Proceed as follows to call the instruction in the user program:
1. Open the CPU folder in the project tree.
2. Open the "Program blocks" folder.
3. Double-click the cyclic interrupt OB. The block is opened in the work area.
4. Open the "Technology" group in the "Instructions" window and the "PID Control" folder. The folder contains all instructions for software controllers that can be configured on the CPU.
5. Select the instruction and drag it to your cyclic interrupt OB. The "Call options" dialog box opens.
6. Select a technology object or type the name for a new technology object from the "Name" list.

Result

If the technology object does not exist yet, it is added. The instruction is added in the cyclic interrupt OB. The technology object is assigned to this call of the instruction.

PID control

Function Manual, 10/2018, A5E35300227-AD

43

Configuring a software controller 3.6 Downloading technology objects to device

3.6

Downloading technology objects to device

A new or modified configuration of the technology object must be downloaded to the CPU for the online mode. The following characteristics apply when downloading retentive data:

 Software (changes only)

­ S7-1200, S7-1500: Retentive data is retained.

­ S7-300/400: Retentive data is updated immediately. CPU does not change to Stop.

 Download PLC program to device and reset

­ S7-1200, S7-1500: Retentive data is updated at the next change from Stop to RUN. The PLC program can only be downloaded completely.

­ S7-300/400: Retentive data is updated at the next change from Stop to RUN.

Downloading retentive data to an S7-1200 or S7-1500 CPU

Note
The download and reset of the PLC program during ongoing system operation can result in serious damages or injuries in the case of malfunctions or program errors.
Make sure that dangerous states cannot occur before you download and reset the PLC program.

Proceed as follows to download the retentive data:
1. Select the entry of the CPU in the project tree.
2. Select the command "Download and reset PLC program" from the "Online" menu.
­ If you have not established an online connection yet, the "Extended download" dialog opens. In this case, set all required parameters for the connection and click "Download".
­ If the online connection has been defined, the project data is compiled, if necessary, and the dialog "Load preview" opens. This dialog displays messages and recommends actions necessary for download.
3. Check the messages.
As soon as download is possible, the "Download" button becomes active.
4. Click on "Download".
The complete PLC program is downloaded and the "Load results" dialog opens. This dialog displays the status and the actions after the download.
5. If the modules are to restart immediately after the download, select the check box "Start all".
6. Close the dialog "Download results" with "Finish".

PID control

44

Function Manual, 10/2018, A5E35300227-AD

Result

Configuring a software controller 3.7 Commissioning software controller
The complete PLC program is downloaded to the device. Blocks that only exist online in the device are deleted. By downloading all affected blocks and by deleting any blocks in the device that are not required, you avoid inconsistencies between the blocks in the user program. The messages under "Info > General" in the Inspector window indicate whether the download was successful.

3.7

Commissioning software controller

Procedure

To open the "Commissioning" work area of the technology object, follow these steps: 1. Open the "Technology objects" folder in the project tree. 2. Open the technology object in the project tree. 3. Double-click the "Commissioning" object. The commissioning functions are specific for each controller and are described there.

3.8

Save optimized PID parameter in the project

The software controller is optimized in the CPU. Through this, the values in the instance-DB on the CPU no longer agree with those in the project.

To update the PID parameter in the project with the optimized PID parameters, proceed as follows:

Requirement

 An online connection to the CPU is established and the CPU is in "RUN" mode.
 The functions of the commissioning window have been enabled by means of the "Start" button.

Procedure

1. Open the CPU folder in the project tree. 2. Open the "Technology objects" folder. 3. Open a technology object. 4. Double click on "Commissioning". 5. Click on the icon "Upload PID parameters". 6. Save the project.

Result

The currently active PID parameters are stored in the project data. When reloading the project data in the CPU, the optimized parameters are used.

PID control

Function Manual, 10/2018, A5E35300227-AD

45

Configuring a software controller 3.9 Comparing values

3.9

Comparing values

3.9.1

Comparison display and boundary conditions
The "Compare values" function provides the following options:  Comparison of configured start values of the project with the start values in the CPU and
the actual values  Direct editing of actual values and the start values of the project  Immediate detection and display of input errors with suggested corrections  Backup of actual values in the project  Transfer of start values of the project to the CPU as actual values

Icons and operator controls The following icons and operator controls are available:

Icon

Function

Start value PLC matches the configured Start value project

Start value PLC does not match the configured Start value project

The comparison of the Start value PLC with the configured Start value project cannot be performed
At least one of the two comparison values has a process-related or syntax error.

Transfers actual values to the offline project Transfers updated start values in the project to the CPU (initialize setting values) Opens the "Compare values" dialog

Boundary conditions The "Compare values" function is available for S7-1200 and S7-1500 without limitations. The following limitation applies to S7-300 and S7-400: In monitoring mode, an S7-300/S7-400 cannot transfer the start values to the CPU. These values cannot be displayed online with "Compare values". The actual values of the technology object are displayed and can be changed directly.

PID control

46

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.9 Comparing values

3.9.2

Comparing values
The procedure is shown in the following using "PID Parameters" as an example.

Requirements

 A project with a software controller is configured.  The project is downloaded to the CPU.  The configuration dialog is open in the project navigator.

Procedure

1. Open the desired software controller in the project navigation.
2. Double-click the "Configuration" object.
3. Navigate within the configuration window to the "PID Parameters" dialog.
4. Click the icon to activate monitoring mode.
The icons and operator controls (Page 46) of the "Compare values" function are shown behind the parameters.
5. Click the desired parameter in the input box and change the parameter values manually by entering them directly.
­ If the background of the input box is gray, this value is a read-only value and cannot be changed.
­ To change the values in the "PID Parameters" dialog, enable manual entry by selecting the "Enable manual entry" check box beforehand.
6. Click the icon to open the dialog for the start values.
This dialog indicates two values of the parameter:
­ Start value in CPU: The start value in the CPU is shown in the top part.
­ Start value in the project: The configured start value in the project is shown in the bottom part.
7. Enter the desired value in the input box for the project.

PID control

Function Manual, 10/2018, A5E35300227-AD

47

Configuring a software controller 3.9 Comparing values

Error detection

The input of incorrect values is detected. Corrections are suggested in this case.
If you enter a value with incorrect syntax, a rollout containing the corresponding error message opens below the parameter. The incorrect value is not applied.
If you enter a value that is incorrect for the process, a dialog opens containing the error message and a suggested correction:
 Click "No" to accept this suggested correction and correct your input.
 Click "OK" to apply the incorrect value.

NOTICE Malfunctions of the controller Values incorrect for the process can result in controller malfunctions.

Backing up actual values
Click the project.

icon to transfer the actual controller values to the start values of your configured

Transferring project values to the CPU Click the icon to transfer the configured values of your project to the CPU.
CAUTION Prevent personal injury and property damage! Downloading and resetting of the user program while the plant is operating may result in significant property damage and severe personal injuries in the event of malfunctions or program errors. Make sure that dangerous states cannot occur before you download and reset the user program.

PID control

48

Function Manual, 10/2018, A5E35300227-AD

3.10

Parameter view

Configuring a software controller 3.10 Parameter view

3.10.1

Introduction to the parameter view
The Parameter view provides you with a general overview of all relevant parameters of a technology object. You obtain an overview of the parameter settings and can easily change them in offline and online mode.

 "Parameter view" tab  Toolbar (Page 51)  Navigation (Page 51)  Parameter table (Page 52)
Function scope The following functions are available for analyzing the parameters of the technology objects and for enabling targeted monitoring and modification. Display functions:  Display of parameter values in offline and online mode  Display of status information of the parameters  Display of value deviations and option for direct correction  Display of configuration errors  Display of value changes as a result of parameter dependencies

PID control

Function Manual, 10/2018, A5E35300227-AD

49

Configuring a software controller 3.10 Parameter view

 Display of all memory values of a parameter: Start value PLC, Start value project, Monitor value
 Display of the parameter comparison of the memory values of a parameter Operator control functions:  Navigation for quickly changing between the parameters and parameter structures.  Text filter for faster searches for particular parameters.  Sorting function for customizing the order of parameters and parameter groups to
requirements.  Memory function for backing up structural settings of the Parameter view.  Monitoring and modifying of parameter values online.  Change display format of value.  Function for saving a snapshot of parameter values of the CPU in order to capture
momentary situations and to respond to them.  Function for applying a snapshot of parameter values as start values.  Download of modified start values to the CPU.  Comparison functions for comparing parameter values with one another.

Validity

The Parameter view described here is available for the following technology objects:  PID_Compact  PID_3Step  PID_Temp  CONT_C (S7-1500 only)  CONT_S (S7-1500 only)  TCONT_CP (S7-1500 only)  TCONT_S (S7-1500 only)  TO_Axis_PTO (S7-1200 Motion Control)  TO_Positioning_Axis (S7-1200 Motion Control)  TO_CommandTable_PTO (S7-1200 Motion Control)  TO_CommandTable (S7-1200 Motion Control)

PID control

50

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.2

Structure of the parameter view

3.10.2.1

Toolbar The following functions can be selected in the toolbar of the parameter view.

Icon

Function

Explanation

Monitor all

Starts the monitoring of visible parameters in the active Parameter view (online mode).

Create snapshot of monitor values and accept setpoints of this snapshot as start values

Applies the current monitor values to the "Snapshot" column and updates the start values in the project.
Only in online mode for PID_Compact, PID_3Step and PID_Temp.

Initialize setpoints

Transfers the start values updated in the project to the CPU.

Only in online mode for PID_Compact, PID_3Step and PID_Temp.

Create snapshot of monitor values

Applies the current monitor values to the "Snapshot" column. Only in online mode.

Modify all selected parameters immediately and once

This command is executed once and as quickly as possible without reference to any particular point in the user program.
Only in online mode.

Select navigation struc- Toggles between functional navigation and data navigation. ture

Text filter...

After entry of a character string: Display of all parameters containing the specified string in one of the currently visible columns.

Selection of compare values

Selection of parameter values that are to be compared with one another in online mode (Start value project, Start value PLC, Snapshot)

Only in online mode.

Save window settings

Saves your display settings for the Parameter view (e.g., selected navigation structure, activated table columns, etc.)

3.10.2.2

Navigation
Within the "Parameter view" tab, the following alternative navigation structures can be selected.

Navigation Functional navigation
Data navigation

Explanation In the functional navigation, the structure of the parameters is based on the structure in the configuration dialog ("Functional view" tab), commissioning dialog, and diagnostics dialog. The last group "Other parameters" contains all other parameters of the technology object.
In the data navigation, the structure of the parameters is based on the structure in the instance DB / technology DB. The last group "Other parameters" contains the parameters that are not contained in the instance DB / technology DB.

You can use the "Select navigation structure" drop-down list to toggle the navigation structure.

PID control

Function Manual, 10/2018, A5E35300227-AD

51

Configuring a software controller 3.10 Parameter view

3.10.2.3

Parameter table The table below shows the meaning of the individual columns of the parameter table. You can show or hide the columns as required.
 Column "Offline" = X: Column is visible in offline mode.
 Column "Online" = X: Column is visible in online mode (online connection to the CPU).

Column Name in functional view Full name in DB
Name in DB
Status of configuration Compare result

Explanation

Offline

Name of the parameter in the functional view.

X

The display field is empty for parameters that are not configured via the technology object.

Complete path of the parameter in the instance DB / technology DB.

X

The display field is empty for parameters that are not contained in the instance DB / technology DB.

Name of the parameter in the instance DB / technology DB.

X

If the parameter is part of a structure or UDT, the prefix ". ./" is added.

The display field is empty for parameters that are not contained in the instance DB / technology DB.

Display of the completeness of the configuration using status symbols.

X

see Status of configuration (offline) (Page 62)

Result of the "Compare values" function.

This column is shown if there is an online connection and the "Monitor all" button is selected.

Online X X X
X

Start value project Configured start value in the project.

X

X

Error indication if entered values have a syntax or process-related error.

Default value

Value that is pre-assigned to the parameter.

X

X

The display field is empty for parameters that are not contained in the instance DB / technology DB.

Snapshot

Snapshot of the current values in the CPU (monitor values). Error indication if values have a process-related error.

X

X

Start value PLC

Start value in the CPU.

X

This column is shown if there is an online connection and the "Monitor all" button is selected.

Error indication if values have a process-related error.

Monitor value

Current value in the CPU.

X

This column is shown if there is an online connection and the "Monitor all" button is selected.

Error indication if values have a process-related error.

Modify value

Value that is to be used to change the monitor valuet.

X

This column is shown if there is an online connection and the "Monitor all" button is selected.

Error indication if entered values have a syntax or process-related error.

PID control

52

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

Column Selection for transmission
Minimum value

Explanation Selection of the Modify values that are to be transmitted using the "Modify all selected parameters immediately and once" button. This column is displayed together with the "Modify value" column. Minimum process-related value of the parameter. If the minimum value is dependent on other parameters, it is defined:

Offline X

· Offline: By the Start value project.

· Online: By the Monitor values.

Maximum value

Maximum process-related value of the parameter.

X

If the maximum value is dependent on other parameters, it is defined:

· Offline: By the Start value project. · Online: By the Monitor values.

Setpoint

Designates the parameter as a setpoint. These parameters can be initialized X online.

Data type

Data type of the parameter.

X

The display field is empty for parameters that are not contained in the instance DB / technology DB.

Retain

Designates the value as a retentive value.

X

The values of retentive parameters are retained even after the voltage supply is switched off.

Accessible from HMI Indicates whether the HMI can access this parameter during runtime.

X

Visible in HMI

Indicates whether the parameter is visible in the selection list of the HMI by X default.

Comment

Brief description of the parameter.

X

Online X X
X
X X X X X X

See also

Comparing values (Page 46)

PID control

Function Manual, 10/2018, A5E35300227-AD

53

Configuring a software controller 3.10 Parameter view

3.10.3

Opening the parameter view

Requirement

The technology object has been added in the project tree, i.e., the associated instance DB / technology DB of the instruction has been created.

Procedure

1. Open the "Technology objects" folder in the project tree. 2. Open the technology object in the project tree. 3. Double-click the "Configuration" object. 4. Select the "Parameter view" tab in the top right corner.

Result

The Parameter view opens. Each displayed parameter is represented by one row in the parameter table.
The displayable parameter properties (table columns) vary depending on whether you are working with the Parameter view in offline or online mode.
In addition, you can selectively display and hide individual table columns.

See also

Default setting of the parameter view (Page 55)

PID control

54

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.4

Default setting of the parameter view

Default settings To enable you to work efficiently with the Parameter view, you can customize the parameter display and save your settings. The following customizations are possible and can be saved:  Show and hide columns  Change column width  Change order of the columns  Toggle navigation  Select parameter group in the navigation  Selection of compare values

Show and hide columns To show or hide columns in the parameter table, follow these steps: 1. Position the cursor in the header of the parameter table. 2. Select the "Show/Hide" command in the shortcut menu. The selection of available columns is displayed. 3. To show a column, select the check box for the column. 4. To hide a column, clear the check box for the column. or 1. Position the cursor in the header of the parameter table. 2. Select the "Show all columns" command in the shortcut menu if all columns of the offline or online mode are to be displayed. Some columns can only be displayed in online mode: see Parameter table (Page 52).

PID control

Function Manual, 10/2018, A5E35300227-AD

55

Configuring a software controller 3.10 Parameter view
Change column width To customize the width of a column so that all texts in the rows can be read, follow these steps: 1. Position the cursor in the header of the parameter table to the right of the column to be customized until the shape of the cursor changes to a cross. 2. Then double-click this location. or 1. Open the shortcut menu on the header of the parameter table. 2. Click ­ "Optimize column width" or ­ "Optimize width of all columns". If the column width setting is too narrow, the complete content of individual fields are shown if you hover the cursor briefly over the relevant field.
Change order of the columns The columns of the parameter table can be arranged in any way. To change the order of the columns, follow these steps: 1. Click on the column header and use a drag-and-drop operation to move it to the desired location. When you release the mouse button, the column is anchored to the new position.
Toggle navigation To toggle the display form of the parameters, follow these steps: 1. Select the desired navigation in the "Select navigation structure" drop-down list. ­ Data navigation ­ Functional navigation See also Navigation (Page 51).
Select parameter group in the navigation Within the selected navigation, you choose between the "All parameters" display or the display of a subordinate parameter group of your choice. 1. Click the desired parameter group in the navigation. The parameter table only displays the parameters of the parameter group.

PID control

56

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view
Selection of compare values (online) To set the compare values for the "Compare values" function, follow these steps: 1. Select the desired compare values in the "Selection of compare values" drop-down list. ­ Start value project / Start value PLC ­ Start value project / Snapshot ­ Start value PLC / Snapshot The "Start value project / Start value PLC" option is set by default.
Saving the default setting of the Parameter view To save the above customizations of the Parameter view, follow these steps: 1. Customize the Parameter view according to your requirements. 2. Click the "Save window settings" button at the top right of the Parameter view.

PID control

Function Manual, 10/2018, A5E35300227-AD

57

Configuring a software controller 3.10 Parameter view

3.10.5

Working with the parameter view

3.10.5.1 3.10.5.2

Overview The following table provides an overview of the functions of the Parameter view in online and offline mode described in the following.
 Column "Offline" = X: This function is possible in offline mode.
 Column "Online" = X: This function is possible in online mode.

Function/action Filtering the parameter table (Page 58) Sorting the parameter table (Page 59) Transferring parameter data to other editors (Page 59) Indicating errors (Page 60) Editing start values in the project (Page 60) Status of configuration (offline) (Page 62) Monitoring values online in the parameter view (Page 63) Create snapshot of monitor values (Page 65) Modifying values (Page 66) Comparing values (Page 68) Applying values from the online program as start values (Page 70) Initializing setpoints in the online program (Page 71)
Filtering the parameter table

Offline X X X X X X

You can filter the parameters in the parameter table in the following ways:

 With the text filter

 With the subgroups of the navigation

Both filter methods can be used simultaneously.

Online X X X X X
X X X X X X

With the text filter Texts that are visible in the parameter table can be filtered. This means only texts in displayed parameter rows and columns can be filtered. 1. Enter the desired character string for filtering in the "Text filter..." input box. The parameter table displays only the parameters containing the character string.
The text filtering is reset.  When another parameter group is selected in the navigation.  When navigation is changed from data navigation to functional navigation, or vice versa.

With the subgroups of the navigation 1. Click the desired parameter group in the navigation, e.g., "Static". The parameter table only shows the static parameters. You can select further subgroups for some groups of the navigation. 2. Click "All parameters" in the navigation if all parameters are to be shown again.

PID control

58

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.5.3

Sorting the parameter table
The values of the parameters are arranged in rows. The parameter table can be sorted by any displayed column.
 In columns containing numerical values, sorting is based on the magnitude of the numerical value.
 In text columns, sorting is alphabetical.

Sorting by column 1. Position the cursor in the header cell of the desired column. The background of this cell turns blue. 2. Click the column header.

Result

The entire parameter table is sorted by the selected column. A triangle with tip facing up appears in the column header.
Clicking the column header again changes the sorting as follows:
 Symbol "": Parameter table is sorted in ascending order.
 Symbol "": Parameter table is sorted in descending order.
 No symbol: The sorting is removed again. The parameter table assumes the default display.
The "../" prefix in the "Name in DB" column is ignored when sorting.

3.10.5.4

Transferring parameter data to other editors After selecting an entire parameter row of the parameter table, you can use the following:  Drag-and-drop  <Ctrl+C>/<Ctrl+V>  Copy/Paste via shortcut menu Transfer parameters to the following editors of the TIA Portal:  Program editor  Watch table  Signal table for trace function The parameter is inserted with its full name: See information in "Full name in DB" column.

PID control

Function Manual, 10/2018, A5E35300227-AD

59

Configuring a software controller 3.10 Parameter view

3.10.5.5

Indicating errors

Error indication
Parameter assignment errors that result in compilation errors (e.g. limit violation) are indicated in the Parameter view.
Every time a value is input in the Parameter view, a check is made for process-related and syntax errors and the result is indicated.
Bad values are indicated by:
 Red error symbol in the "Status of configuration" (offline mode) or "Compare result" (online mode, depending on the selected comparison type) columns
and/or
 Table field with red background
If you click the bad field, a roll-out error message appears with information of the permissible value range or the required syntax (format)

Compilation error
From the error message of the compiler, you can directly open the Parameter view (functional navigation) containing the parameter causing the error in situations where the parameter is not displayed in the configuration dialog.

3.10.5.6

Editing start values in the project
With the Parameter view, you can edit the start values in the project in offline mode and online mode.
 You make value changes in the "Start value project" column of the parameter table.
 In the "Status of configuration" column of the parameter table, the progress of the configuration is indicated by the familiar status symbols from the configuration dialog of the technology object.

Boundary conditions
 If other parameters depend on the parameter whose start value was changed, the start value of the dependent parameters are also adapted.
 If a parameter of a technology object is not editable, it is also not editable in the parameter view. The ability to edit a parameter can also depend on the values of other parameters.

PID control

60

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view
Defining new start values To define start values for parameters in the Parameter view, follow these steps: 1. Open the Parameter view of the technology object. 2. Enter the desired start values in the "Start value project" column. The value must match the data type of the parameter and must not exceed the value range of the parameter. The limits of the value range can be seen in the "Maximum value" and "Minimum value" columns. The "Status of configuration" column indicates the progress of the configuration with colored symbols. See also Status of configuration (offline) (Page 62) Following adaptation of the start values and downloading of the technology object to the CPU, the parameters take the defined value at startup if they are not declared as retentive ("Retain" column).
Error indication When a start value is input, a check is made for process-related and syntax errors and the result is indicated. Bad start values are indicated by:  Red error symbol in the "Status of configuration" (offline mode) or "Compare result" (online mode, depending on the selected comparison type) columns and/or  Red background in the "Start value project" field If you click on the bad field, a roll-out error message appears with information of the permissible value range or the necessary syntax (format)
Correcting bad start values 1. Correct bad start values using information from the roll-out error message. Red error symbol, red field background, and roll-out error message are no longer displayed. The project cannot be successfully compiled unless the start values are error-free.

PID control

Function Manual, 10/2018, A5E35300227-AD

61

Configuring a software controller 3.10 Parameter view

3.10.5.7

Status of configuration (offline) The status of the configuration is indicated by icons:  In the "Status of configuration" column in the parameter table  In the navigation structure of the functional navigation and data navigation

Symbol in "Status of configuration" column

Symbol

Meaning
The start value of the parameter corresponds to the default value and is valid. A start value has not yet been defined by the user.
The start value of the parameter contains a value defined by the user or an automatically adjusted value. The start value is different than the default value. The start value is error-free and valid.
The start value of the parameter is invalid (syntax or process-related error). The input box has a red background. When clicked, the roll-out error message indicates the cause of the error.
Only for S7-1200 Motion Control:
The start value of the parameter is valid but contains warnings.
The input box has a yellow background.
The parameter is not relevant in the current configuration.

Symbol in the navigation
The symbols in the navigation indicate the progress of the configuration in the same way as in the configuration dialog of the technology object.

See also

Configure technology objects (Page 42)

PID control

62

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.5.8

Monitoring values online in the parameter view
You can monitor the values currently taken by the parameters of the technology object in the CPU (monitor values) directly in the Parameter view.

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.

Procedure

1. Start the monitoring by clicking . As soon as the Parameter view is online, the following columns are additionally displayed: ­ Compare result ­ Start value PLC ­ Monitor value ­ Modify value ­ Selection for transmission The "Monitor value" column shows the current parameter values on the CPU. Meaning of the additional columns: see Parameter table (Page 52)
2. Stop the monitoring by clicking again.

Display

All columns that are only available online have an orange background:

 Values in light-orange cells

can be changed.

 Values in cells with a dark orange background

cannot be changed.

PID control

Function Manual, 10/2018, A5E35300227-AD

63

Configuring a software controller 3.10 Parameter view

3.10.5.9

Change display format of value
The display format of the value can be selected via the shortcut menu of a table row in the Parameter view of the technology object.
The display format of the following values can be changed both in online mode and in offline mode:  Start value project  Start value PLC  Maximum value  Minimum value  Snapshot  Monitor value  Default value  Modify value
The set display format applies to all values of the table row.
The following display formats of the value can be changed:  Default  Hex  Octal  Bin  Dec (+/-)  DEC
Depending on the parameter selected in the parameter view, only the supported display formats can be selected.

Requirements  The Parameter view of the technology object is open.

Procedure

To change the display format of the value, proceed as follows: 1. Select one or more table rows in which you want to change the display format. 2. Select the "Display format" command in the shortcut menu. 3. Select the desired display format.

Note
To change the display format of a certain data type in multiple table rows, sort the Parameter view by this data type. Then select the first and last table row with this data type while keeping the <Shift> key pressed and change the display format for the selected table rows.

PID control

64

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.5.10

Create snapshot of monitor values
You can back up the current values of the technology object on the CPU (monitor values) and display them in the Parameter view.

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.  The "Monitor all" button is selected.

Procedure

To show the current parameter values, follow these steps: 1. In the Parameter view, click the "Create snapshot of monitor values" icon .

Result

The current monitor values are transferred once to the "Snapshot" column of the parameter table.
You can analyze the values "frozen" in this way while the monitor values continue to be updated in the "Monitor values" column.

PID control

Function Manual, 10/2018, A5E35300227-AD

65

Configuring a software controller 3.10 Parameter view

3.10.5.11

Modifying values
With the Parameter view, you can modify values of the technology object in the CPU.
You can assign values to the parameter once (Modify value) and modify them immediately. The modify request is executed as quickly as possible without reference to any particular point in the user program.

DANGER Danger when modifying:
Changing the parameter values while the plant is operating may result in severe damage to property and personal injury in the event of malfunctions or program errors.
Make sure that dangerous states cannot occur before you use the "Modify" function.

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.
 The "Monitor all" button is selected.  The parameter can be modified (associated field in the "Modify value" column has a light-
orange background).

Procedure

To modify parameters immediately, follow these steps:
1. Enter the desired modify values in the "Modify values" column of the parameter table.
2. Check whether the check box for modifying is selected in the "Select for transmission" column.
The modify values and associated check boxes of dependent parameters are automatically adapted at the same time.
3. Click the "Modify all selected parameters immediately and once" icon .
The selected parameters are modified once and immediately with the specified values and can be monitored in the "Modify values" column. The check boxes for modifying in the "Selection for transmission" column are automatically cleared after the modify request is complete.

PID control

66

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view
Error indication When a start value is input, a check is made immediately for process-related and syntax errors and the result is indicated. Bad start values are indicated by:  Red background in the "Modify value" field and  If you click the bad field, a roll-out error message appears with information of the permissible value range or the necessary syntax (format)
Bad modify values  Modify values with process-related errors can be transmitted.  Modify values with syntax errors cannot be transmitted.

PID control

Function Manual, 10/2018, A5E35300227-AD

67

Configuring a software controller 3.10 Parameter view

3.10.5.12

Comparing values You can use comparison functions to compare the following memory values of a parameter:  Start value project  Start value PLC  Snapshot

Requirements

 There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.  The "Monitor all" button is selected.

Procedure

To compare the start values on the various target systems, follow these steps: 1. Click the "Selection of compare values" icon .
A selection list containing the comparison options opens: ­ Start value project - Start value PLC (default setting) ­ Start value project - Snapshot ­ Start value PLC - Snapshot 2. Select the desired comparison option. The selected comparison option is executed as follows: ­ A scales symbol appears in the header cells of the two columns selected for
comparison. ­ Symbols are used in the "Compare result" column to indicate the result of the
comparison of the selected columns.

PID control

68

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

Symbol in "Compare result" column

Symbol

Meaning The compare values are equal and error-free.

The compare values are not equal and error-free.

At least one of the two compare values has a process-related or syntax error.

The comparison cannot be performed. At least one of the two comparison values is not available (e.g. snapshot).
Comparison of the value is inappropriate since it is not relevant in one of the configurations.

Symbol in the navigation
The symbols are shown in the same way in the navigation if the comparison result applies to at least one of the parameters below the displayed navigation structure.

PID control

Function Manual, 10/2018, A5E35300227-AD

69

Configuring a software controller 3.10 Parameter view

3.10.5.13

Applying values from the online program as start values
In order to apply optimized values from the CPU to the project as start values, you create a snapshot of the monitor values. Values of the snapshot marked as a "Setpoint" are then applied to the project as start values.

Requirements

 The technology object is of type "PID_Compact" or "PID_3Step".  There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.  The "Monitor all" button is selected.

Procedure

To apply optimized values from the CPU, follow these steps:
1. Click the "Create snapshot of monitor values and accept setpoints of this snapshot as start values" icon .

Result

The current monitor values are applied to the "Snapshot" column and their setpoints are copied to the "Start value project" column as new start values.

Note
Applying values of individual parameters
You can also apply the values of individual parameters that are not marked as a setpoint from the "Snapshot" column to the "Start values project" column. To do so, copy the values and insert them into the "Start value project" column using the "Copy" and "Paste" commands in the shortcut menu.

PID control

70

Function Manual, 10/2018, A5E35300227-AD

Configuring a software controller 3.10 Parameter view

3.10.5.14

Initializing setpoints in the online program You can initialize all parameters that are marked as a "Setpoint" in the Parameter view with new values in the CPU in one step. In so doing, the start values are downloaded from the project to the CPU. The CPU remains in "RUN" mode. To avoid data loss on the CPU during a cold restart or warm restart, you must also download the technology object to the CPU.
DANGER Danger when changing parameter values Changing the parameter values while the plant is operating may result in severe damage to property and personal injury in the event of malfunctions or program errors. Make sure that dangerous states cannot occur before you reinitialize the setpoints.

Requirements

 The technology object is of type "PID_Compact" or "PID_3Step".  There is an online connection.  The technology object is downloaded to the CPU.  The program execution is active (CPU in "RUN").  The Parameter view of the technology object is open.
 The "Monitor all" button is selected.  The parameters marked as a "Setpoint" have a "Start value project" that is free of
process-related and syntax errors

Procedure

To initialize all setpoints, follow these steps: 1. Enter the desired values in the "Start value project" column.
Ensure that the start values are free of process-related and syntax errors. 2. Click the "Initialize setpoints" icon .

Result

The setpoints in the CPU are initialized with the start values from the project.

PID control

Function Manual, 10/2018, A5E35300227-AD

71

Configuring a software controller 3.11 Display instance DB of a technology object.

3.11

Display instance DB of a technology object.
An instance DB, in which the parameter and static variables are saved, is created for each technology object.

Procedure

To display the instance DB of a technology object, proceed as follows: 1. Open the CPU folder in the project tree. 2. Open the "Technology objects" folder. 3. Highlight a technology object. 4. Select the command "Open DB editor" in the shortcut menu.

PID control

72

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact

4

4.1

Technology object PID_Compact

The technology object PID_Compact provides a continuous PID controller with integrated optimization. You can alternatively configure a pulse controller. Both manual and automatic mode are possible.

PID-Compact continuously acquires the measured process value within a control loop and compares it with the required setpoint. From the resulting control deviation, the instruction PID_Compact calculates an output value by which the process value is adapted as quickly and stable as possible to the setpoint. The output value for the PID controller consists of three actions:

 Proportional action

The proportional action of the output value increases in proportion to the control deviation.

 I action

The integral action of the output value increases until the control deviation has been balanced.

 D action

The derivative action increases with the rate of change of control deviation. The process value is corrected to the setpoint as quickly as possible. The derivative action will be reduced again if the rate of change of control deviation drops.

The instruction PID_Compact calculates the proportional, integral and derivative parameters for your controlled system during pretuning. Fine tuning can be used to tune the parameters further. You do not need to manually determine the parameters.

Additional information  Overview of software controller (Page 39)  Add technology objects (Page 41)  Configure technology objects (Page 42)  Configuring PID_Compact V2 (Page 74)  Configuring PID_Compact V1 (Page 98)

FAQ

For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 79047707 (https://support.industry.siemens.com/cs/ww/en/view/79047707)

PID control

Function Manual, 10/2018, A5E35300227-AD

73

Using PID_Compact 4.2 PID_Compact V2

4.2

PID_Compact V2

4.2.1

Configuring PID_Compact V2

4.2.1.1

Basic settings V2

Introduction V2 Configure the following properties of the "PID_Compact" technology object under "Basic settings" in the Inspector window or in the configuration window:  Physical quantity  Control logic  Start-up behavior after reset  Setpoint (only in the Inspector window)  Process value (only in the Inspector window)  Output value (only in the Inspector window)

Setpoint, process value and output value You can only configure the setpoint, process value and output value in the Inspector window of the programming editor. Select the source for each value:  Instance DB The value saved in the instance DB is used. Value must be updated in the instance DB by the user program. There should be no value at the instruction. Change via HMI possible.  Instruction The value connected to the instruction is used. The value is written to the instance DB each time the instruction is called. No change via HMI possible.

PID control

74

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2

Control mode V2

Physical quantity
Select the physical quantity and unit of measurement for setpoint, process value, and disturbance variable in the "Controller type" group. Setpoint, process value, and disturbance variable is displayed in this unit of measurement.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic.
PID_Compact does not work with negative proportional gain. Select the check box "Invert control logic" to reduce the process value with a higher output value.
Examples
 Opening the drain valve will reduce the level of a container's contents.
 Increasing cooling will reduce the temperature.

Startup characteristics
1. To switch to "Inactive" mode after CPU restart, clear the "Activate Mode after CPU restart" check box.
To switch to the operating mode saved in the Mode parameter after CPU restart, select the "Activate Mode after CPU restart" check box.
2. In the "Set Mode to" drop-down list, select the mode that is to be enabled after a complete download to the device.
After a complete download to the device, PID_Compact starts in the selected operating mode. With each additional restart, PID_Compact starts in the mode that was last saved in Mode.
Example
You have selected the "Activate Mode after CPU restart" check box and the entry "Pretuning" in the "Set Mode to" list. After a complete download to the device, PID_Compact starts in the "Pretuning" mode. If pretuning is still active, PID_Compact starts in "Pretuning" mode again after restart of the CPU. If pretuning was successfully completed and automatic mode is active, PID_Compact starts in "Automatic mode" after restart of the CPU.

PID control

Function Manual, 10/2018, A5E35300227-AD

75

Using PID_Compact 4.2 PID_Compact V2

Setpoint V2

Procedure

Proceed as follows to define a fixed setpoint: 1. Select "Instance DB". 2. Enter a setpoint, e.g. 80° C. 3. Delete any entry in the instruction. Proceed as follows to define a variable setpoint: 1. Select "Instruction". 2. Enter the name of the REAL variable in which the setpoint is saved.
Program-controlled assignment of various values to the REAL variable is possible, for example for the time controlled change of the setpoint.

Process value V2
PID_Compact will scale the value of the analog input to the physical quantity if you use the analog input value directly.
You will need to write a program for processing if you wish first to process the analog input value. The process value is, for example, not directly proportional to the value at the analog input. The processed process value must be in floating point format.

Procedure

Proceed as follows to use the analog input value without processing: 1. Select the entry "Input_PER" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the address of the analog input. Proceed as follows to use the processed process value in floating point format: 1. Select the entry "Input" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the name of the variable in which the processed process value is saved.

PID control

76

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2

Output value V2
PID_Compact offers three output values. Your actuator will determine which output value you use.
 Output_PER
The actuator is triggered via an analog output and controlled with a continuous signal, e.g. 0...10V, 4...20mA.
 Output
The output value needs to be processed by the user program, for example because of nonlinear actuator response.
 Output_PWM
The actuator is controlled via a digital output. Pulse width modulation creates minimum ON and minimum OFF times.

Procedure

Proceed as follows to use the analog output value: 1. Select the entry "Output_PER (analog)" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the analog output. Proceed as follows to process the output value using the user program: 1. Select the entry "Output" in the drop-down list "Output". 2. Select "Instance DB".
The calculated output value is saved in the instance data block. 3. For the preparation of the output value, use the output parameter Output. 4. Transfer the processed output value to the actuator via a digital or analog CPU output. Proceed as follows to use the digital output value: 1. Select the entry "Output_PWM" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the digital output.

PID control

Function Manual, 10/2018, A5E35300227-AD

77

Using PID_Compact 4.2 PID_Compact V2

4.2.1.2

Process value settings V2

Process value scaling V2
If you have configured the use of Input_PER in the basic setting, you must convert the value of the analog input to the physical quantity of the process value. The current configuration is displayed in the Input_PER display.
Input_PER will be scaled using a low and high value pair if the process value is directly proportional to the value of the analog input.

Procedure

To scale the process value, follow these steps: 1. Enter the low pair of values in the "Scaled low process value" and "Low" input fields. 2. Enter the high pair of values in the "Scaled high process value" and "High" input boxes. Default settings for the value pairs are stored in the hardware configuration. To use the value pairs from the hardware configuration, follow these steps: 1. Select the PID_Compact instruction in the programming editor. 2. Interconnect Input_PER with an analog input in the basic settings. 3. Click the "Automatic setting" button in the process value settings. The existing values will be overwritten with the values from the hardware configuration.

Process value limits V2
You must specify an appropriate absolute high limit and low limit for the process value as limit values for your controlled system. As soon as the process value violates these limits, an error occurs (ErrorBits = 0001h). Tuning is canceled when the process value limits are violated. You can configure how PID_Compact reacts to an error in automatic mode in the output value settings.

PID control

78

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2

4.2.1.3

Advanced settings V2

Process value monitoring V2
Configure a warning high and low limit for the process value in the "Process value monitoring" configuration window. If one of the warning limits is exceeded or undershot during operation, a warning will be displayed at the PID_Compact instruction:
 At the InputWarning_H output parameter if the warning high limit has been exceeded
 At the InputWarning_L output parameter if the warning low limit has been undershot
The warning limits must be within the process value high and low limits.
The process value high and low limits will be used if you do not enter values.

Example

Process value high limit = 98 °C; warning high limit = 90 °C Warning low limit = 10 °C; process value low limit = 0 °C PID_Compact will respond as follows:

Process value > 98 °C

InputWarning_H TRUE

InputWarning_L FALSE

ErrorBits 0001h

 98 °C and > 90 °C  90 °C and  10 °C < 10 °C and  0 °C < 0 °C

TRUE FALSE FALSE FALSE

FALSE FALSE TRUE TRUE

0000h 0000h 0000h 0001h

Operating mode Inactive or
Substitute output value with error monitoring
Automatic mode
Automatic mode
Automatic mode
Inactive or
Substitute output value with error monitoring

In the output value settings, you can specify the reaction of PID_Compact when the process value high limit or low limit is violated.

See also

Parameters State and Mode V2 (Page 278)

PID control

Function Manual, 10/2018, A5E35300227-AD

79

Using PID_Compact 4.2 PID_Compact V2

PWM limits V2

The value at the output parameter Output is transformed into a pulse sequence that is output at output parameter Output_PWM by means of a pulse width modulation. Output is calculated in the PID algorithm sampling time, Output_PWM is output in the PID_Compact sampling time.
The PID algorithm sampling time is determined during pretuning or fine tuning. If manually setting the PID parameters, you will also need to configure the PID algorithm sampling time. The PID_Compact sampling time is equivalent to the cycle time of the calling OB.
The pulse duration is proportional to the value at Output and is always an integer multiple of the PID_Compact sampling time.

 PID_Compact sampling time  PID algorithm sampling time  Pulse duration  Break time
The "Minimum ON time" and the "Minimum OFF time" are rounded to an integer multiple of the PID_Compact sampling time.
A pulse or a break is never shorter than the minimum ON or OFF time. The inaccuracies this causes are added up and compensated in the next cycle.

PID control

80

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2
Example PID_Compact sampling time = 100 ms PID algorithm sampling time = 1000 ms Minimum ON time = 200 ms Output is a constant 15%. The smallest pulse that PID_Compact can output is 20%. In the first cycle, no pulse is output. In the second cycle, the pulse not output in the first cycle is added to the pulse of the second cycle.



PID_Compact sampling time



PID algorithm sampling time



Minimum ON time

In order to minimize operation frequency and conserve the actuator, extend the minimum ON and OFF times.

If you are using "Output" or "Output_PER", you must configure the value 0.0 for the minimum ON and OFF times.

Note
The minimum ON and OFF times only affect the output parameter Output_PWM and are not used for any pulse generators integrated in the CPU.

PID control

Function Manual, 10/2018, A5E35300227-AD

81

Using PID_Compact 4.2 PID_Compact V2

Output value V2

Output value limits
In the "Output value limits" configuration window, configure the absolute limits of your output value in percent. Absolute output value limits are not violated in neither manual mode nor automatic mode. If an output value outside the limits is specified in manual mode, the effective value is limited in the CPU to the configured limits.
The output value limits must match the control logic.
The valid output value limit values depend on the Output used.

Output Output_PER Output_PWM

-100.0 to 100.0% -100.0 to 100.0% 0.0 to 100.0%

Reaction to error
NOTICE Your system may be damaged. If you output "Current value while error pending " or "Substitute output value while error pending" in the event of an error, PID_Compact remains in automatic mode. This may cause a violation of the process value limits and damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.
PID_Compact is preset so that the controller stays active in most cases in the event of an error. If errors occur frequently in controller mode, this default reaction has a negative effect on the control response. In this case, check the Errorbits parameter and eliminate the cause of the error. PID_Compact generates a programmable output value in response to an error:  Zero (inactive)
PID_Compact outputs 0.0 as output value for all errors and switches to "Inactive" mode. The controller is only reactivated by a falling edge at Reset or a rising edge at ModeActivate.

PID control

82

Function Manual, 10/2018, A5E35300227-AD

See also

Using PID_Compact 4.2 PID_Compact V2
 Current value while error is pending If the following errors occur in automatic mode, PID_Compact returns to automatic mode as soon as the errors are no longer pending. If one or more of the following errors occur, PID_Compact stays in automatic mode: ­ 0001h: The "Input" parameter is outside the process value limits. ­ 0800h: Sampling time error ­ 40000h: Invalid value at Disturbance parameter. If one or more of the following errors occur in automatic mode, PID_Compact switches to "Substitute output value with error monitoring" mode and outputs the last valid output value: ­ 0002h: Invalid value at Input_PER parameter. ­ 0200h: Invalid value at Input parameter. ­ 0400h: Calculation of output value failed. ­ 1000h: Invalid value at Setpoint parameter. If an error occurs in manual mode, PID_Compact continues using the manual value as the output value. If the manual value is invalid, the substitute output value is used. If the manual value and substitute output value are invalid, the output value low limit is used. If the following error occurs during a pretuning or fine tuning, PID_Compact remains in active mode: ­ 0020h: Pretuning is not permitted during fine tuning. When any other error occurs, PID_Compact cancels the tuning and switches to the mode from which tuning was started. As soon as no errors are pending, PID_Compact returns to automatic mode.
 Substitute output value while error is pending PID_Compact outputs the substitute output value. If the following error occurs, PID_Compact stays in "Substitute output value with error monitoring" mode and outputs the output value low limit: ­ 20000h: Invalid value at SubstituteOutput tag. For all other errors, PID_Compact reacts as described for "Current value while error is pending".
Parameters State and Mode V2 (Page 278)

PID control

Function Manual, 10/2018, A5E35300227-AD

83

Using PID_Compact 4.2 PID_Compact V2
PID parameters V2 The PID parameters are displayed in the "PID Parameters" configuration window. The PID parameters will be adapted to your controlled system during controller tuning. You do not need to enter the PID parameters manually.
Note The currently active PID parameters are located for PID_Compact V1 in the sRet structure and for PID_Compact V2 in the Retain.CtrlParams structure. Change the currently active PID parameters only in "Inactive" mode online to prevent malfunction of the PID controller. If you want to change the PID parameters in "Automatic mode" or "Manual mode" online, change the PID parameters as follows: · PID_Compact V1: Change the PID parameters in the sBackUp structure and apply these
changes with sPid_Cmpt.b_LoadBackUp = TRUE to the sRet structure. · PID_Compact V2: Change the PID parameters in the CtrlParamsBackUp structure and
apply these changes with LoadBackUp = TRUE to the Retain.CtrlParams structure. Online changes to the PID parameters in "Automatic mode" can result in jumps at the output value.
The PID algorithm operates according to the following equation:

y

Output value of the PID algorithm

Kp Proportional gain

s

Laplace operator

b

Proportional action weighting

w Setpoint

x

Process value

TI Integral action time

a

Derivative delay coefficient (derivative delay T1 = a × TD)

TD Derivative action time

c

Derivative action weighting

PID control

84

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2
The diagram below illustrates the integration of the parameters into the PID algorithm:

All PID parameters are retentive. If you enter the PID parameters manually, you must completely download PID_Compact. Downloading technology objects to device (Page 44)
Proportional gain The value specifies the proportional gain of the controller. PID_Compact does not work with a negative proportional gain. Control logic is inverted under Basic settings > Controller type.
Integral action time The integral action time determines the time behavior of the integral action. The integral action is deactivated with integral action time = 0.0. When the integral action time is changed from a different value to 0.0 online in "Automatic mode", the previous integral action is deleted and the output value jumps.
Derivative action time The derivative action time determines the time behavior of the derivative action. Derivative action is deactivated with derivative action time = 0.0.

PID control

Function Manual, 10/2018, A5E35300227-AD

85

Using PID_Compact 4.2 PID_Compact V2
Derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient  0.0: Derivative action is effective for one cycle only and therefore almost not effective.  0.5: This value has proved useful in practice for controlled systems with one dominant time constant.  > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Proportional action for setpoint change is fully effective  0.0: Proportional action for setpoint change is not effective The proportional action is always fully effective when the process value is changed.
Derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Derivative action is fully effective upon setpoint change  0.0: Derivative action is not effective upon setpoint change The derivative action is always fully effective when the process value is changed.
PID algorithm sampling time The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_Compact are executed at every call. If you use Output_PWM, the accuracy of the output signal is determined by the ratio of the PID algorithm sampling time to the cycle time of the OB. The PID algorithm sampling time corresponds to the time period of the pulse width modulation. The cycle time should be at least 10 times the PID algorithm sampling time.

PID control

86

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2

Rule for tuning

Select whether PI or PID parameters are to be calculated in the "Controller structure" dropdown list.  PID
Calculates PID parameters during pretuning and fine tuning.  PI
Calculates PI parameters during pretuning and fine tuning.  User-defined
The drop-down list displays "User-defined" if you have configured different controller structures for pretuning and fine tuning via a user program.

PID control

Function Manual, 10/2018, A5E35300227-AD

87

Using PID_Compact 4.2 PID_Compact V2

4.2.2

Commissioning PID_Compact V2

4.2.2.1

Pretuning V2
The pretuning determines the process response to a jump change of the output value and searches for the point of inflection. The PID parameters are calculated from the maximum rate of rise and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning.
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. This is most likely the case in operating modes "Inactive" and "manual mode". The PID parameters are backed up before being recalculated.

Requirement

 The "PID_Compact" instruction is called in a cyclic interrupt OB.
 ManualEnable = FALSE
 Reset = FALSE
 PID_Compact is in one of the following modes: "Inactive", "Manual mode", or "Automatic mode".
 The setpoint and the process value lie within the configured limits (see "Process value monitoring" configuration).
 The difference between setpoint and process value is greater than 30% of the difference between process value high limit and process value low limit.
 The distance between the setpoint and the process value is > 50% of the setpoint.

Procedure

To perform pretuning, follow these steps:
1. Double-click the "PID_Compact > Commissioning" entry in the project tree.
2. Select the entry "Pretuning" in the "Tuning mode" drop-down list.
3. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ Pretuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note
Click the "Stop" icon when the progress bar has reached 100% and it can be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

PID control

88

Function Manual, 10/2018, A5E35300227-AD

Result See also

Using PID_Compact 4.2 PID_Compact V2
If pretuning was performed without an error message, the PID parameters have been tuned. PID_Compact switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU. If pretuning is not possible, PID_Compact responds with the configured reaction to errors.
Parameters State and Mode V2 (Page 278)

PID control

Function Manual, 10/2018, A5E35300227-AD

89

Using PID_Compact 4.2 PID_Compact V2

4.2.2.2

Fine tuning V2
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are tuned for the operating point from the amplitude and frequency of this oscillation. All PID parameters are recalculated from the results. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning.
PID_Compact automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before being recalculated.

Requirement

 The PID_Compact instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  Reset = FALSE  The setpoint and the process value lie within the configured limits.  The control loop has stabilized at the operating point. The operating point is reached
when the process value corresponds to the setpoint.  No disturbances are expected.  PID_Compact is in one of the following operating modes: Inactive, automatic mode, or
manual mode.

Process depends on initial situation
Fine tuning can be started from the following operating modes: "Inactive", "automatic mode", or "manual mode". Fine tuning proceeds as follows when started from:
 Automatic mode
Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.
PID_Compact controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
 Inactive or manual mode
If the requirements for pretuning are met, pretuning is started. The determined PID parameters will be used for control until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start. If pretuning is not possible, PID_Compact responds with the configured reaction to errors.
An attempt is made to reach the setpoint with the minimum or maximum output value if the process value for pretuning is already too near the setpoint. This can produce increased overshoot.

PID control

90

Function Manual, 10/2018, A5E35300227-AD

Procedure

Using PID_Compact 4.2 PID_Compact V2
To perform fine tuning, follow these steps: 1. Select the entry "Fine tuning" in the "Tuning mode" drop-down list. 2. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ The process of fine tuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon in the "Tuning mode" group when the progress bar has reached 100% and it is to be assumed that tuning is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result See also

If no errors occurred during fine tuning, the PID parameters have been tuned. PID_Compact switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU. If errors occurred during "fine tuning", PID_Compact responds with the configured response to errors.
Parameters State and Mode V2 (Page 278)

PID control

Function Manual, 10/2018, A5E35300227-AD

91

Using PID_Compact 4.2 PID_Compact V2

4.2.2.3

"Manual" mode V1
The following section describes how you can use the "manual mode" operating mode in the commissioning window of the "PID_Compact" technology object. Manual mode is also possible when an error is pending.

Requirement

 The "PID_Compact" instruction is called in a cyclic interrupt OB.
 An online connection to the CPU has been established and the CPU is in the "RUN" mode.

Procedure

Use "Manual mode" in the commissioning window if you want to test the controlled system by specifying a manual value. To define a manual value, follow these steps:
1. Click the "Start" icon.
2. Select the "Manual mode" check box in the "Online status of controller" area.
PID_Compact operates in manual mode. The most recent current output value remains in effect.
3. Enter the manual value in the "Output" field as a % value.
4. Click the icon.

Result

The manual value is written to the CPU and immediately goes into effect.
Clear the "Manual mode" check box if the output value is to be specified again by the PID controller. The switchover to automatic mode is bumpless.

See also

Parameters State and Mode V2 (Page 278)

PID control

92

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2

4.2.3

Override control with PID_Compact V2

Override control
In case of override control, two or more controllers share one actuator. Only one controller has access to the actuator at any time and influences the process.
A logic operation decides which controller has access to the actuator. This decision is often made based on a comparison of the output values of all controllers, for example, in case of a maximum selection, the controller with the largest output value gets access to the actuator.
The selection based on the output value requires that all controllers operate in automatic mode. The controllers that do not have an effect on the actuator are updated. This is necessary to prevent windup effects and their negative impacts on the control response and the switchover between the controllers.
PID_Compact supports override controls as of version 2.3 by offering a simple process for updating the controllers that are not active:
 By using the OverwriteInitialOutputValue and PIDCtrl.PIDInit tags, you can preassign the integral action of the controller in automatic mode as though the PID algorithm had calculated Output = OverwriteInititalOutputValue for the output value in the last cycle.
 To do this, OverwriteInitialOutputValue is interconnected with the output value of the controller that currently has access to the actuator.
 By setting the bit PIDCtrl.PIDInit, you trigger the pre-assignment of the integral action as well as the restart of the controller cycle and the PWM period.
 The subsequent calculation of the output value in the current cycle takes place based on the pre-assigned (and synchronized for all controllers) integral action as well as the proportional action and integral action from the current control deviation.
 The derivative action is not active during the call with PIDCtrl.PIDInit = TRUE and therefore does not contribute to the output value.
This procedure ensures that the calculation of the current output value and thus the decision on which controller is to have access to the actuator is only based on the current process state and the PI parameters. Windup effects for controllers that are not active and thus incorrect decisions of the switchover logic are prevented.

PID control

Function Manual, 10/2018, A5E35300227-AD

93

Using PID_Compact 4.2 PID_Compact V2

Requirements

 PIDCtrl.PIDInit is only effective if the integral action is activated (Retain.CtrlParams.Ti tag > 0.0).
 You must assign PIDCtrl.PIDInit and OverwriteInitialOutputValue in your user program yourself (see example below). PID_Compact does not automatically change these tags.
 PIDCtrl.PIDInit is only effective when PID_Compact is in automatic mode (parameter State = 3)
 If possible, select the sampling time of the PID algorithm (Retain.CtrlParams.Cycle tag) in such a way that it is identical for all controllers, and call all controllers in the same cyclic interrupt OB. In this way, you ensure that the switchover does not take place within a controller cycle or a PWM period.

Note Constant adaptation of the output value limits
Instead of the active updating of the controllers without access to the actuator described here, this is implemented alternatively by constant adaptation of the output value limits in other controller systems.
This is not possible with PID_Compact, because a change of the output value limits is not supported in automatic mode.

Example: Control of a gas pipeline
PID_Compact is used for control of a gas pipeline.
The main goal is to control the flow rate Input1. The controller PID_Compact_1 is used for this purpose. In addition, the pressure Input2 (measured in flow direction in front of the valve) is to be kept below the high limit with the limiting controller PID_Compact_2.
Flow rate and pressure are controlled by a single solenoid valve. The output value of the controller corresponds to the valve opening: The valve is opened when the output value increases. This means the flow rate increases (normal control logic) while the pressure drops (inverted control logic).

The valve is controlled with the output value of PID_Compact in I/O format (parameter Output_PER) by writing the program tag ActuatorInput.

PID control

94

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.2 PID_Compact V2
The setpoint for the flow rate is specified at the parameter PID_Compact_1.Setpoint. The pressure high limit is specified as setpoint at the parameter PID_Compact_2.Setpoint.

Both controllers must share one valve as shared actuator. The logic that decides which controller gets access to the actuator is implemented by a maximum selection of the output value (in Real format, parameter Output) in this case. Because the output value corresponds to the opening of the valve, the controller that requires the larger valve opening gets the control.
Note Activate inversion of the control logic
Because a decrease of the actual value (pressure) is to be achieved with the pressure regulator PID_Compact_2 when the output value increases (valve opening), the inversion of the control logic must be activated: PID_Compact_2.Config.InvertControl = TRUE.
In normal operation of the plant, the actual value of the flow rate corresponds to the setpoint. The flow controller PID_Compact_1 has settled on a stationary output value PID_Compact_1.Output. The actual value of the pressure in normal operation is significantly below the high limit that is specified as setpoint for PID_Compact_2. The pressure regulator therefore wants to close the valve even further to increase the pressure, which means it will calculate an output value PID_Compact_2.Output that is smaller than the output value of the flow controller PID_Compact_1.Output. The maximum selection of the switchover logic therefore gives the flow controller PID_Compact_1 continued access to the actuator. In addition, it is ensured that PID_Compact_2 is updated by means of the assignments PID_Compact_2.OverwriteInitialOutputValue = PID_Compact_1.Output and PID_Compact_2.PIDCtrl.PIDInit = TRUE.

PID control

Function Manual, 10/2018, A5E35300227-AD

95

Using PID_Compact 4.2 PID_Compact V2
If the pressure now approaches the high limit or exceeds it, for example due to a fault, the pressure regulator PID_Compact_2 calculates a higher output value to open the valve even further and thus reduce the pressure. If PID_Compact_2.Output is greater than PID_Compact_1.Output, the pressure regulator PID_Compact_2 receives access to the actuator through the maximum selection and opens it. It is ensured that PID_Compact_1 is updated by means of the assignments PID_Compact_1.OverwriteInitialOutputValue = PID_Compact_2.Output and PID_Compact_1.PIDCtrl.PIDInit = TRUE.
The pressure is reduced while the flow rate increases and can no longer be kept at the setpoint.
Once the fault has been remedied, the pressure will continue to drop and the opening of the valve is reduced by the pressure regulator. If the flow controller calculates a larger opening as output value, the plant returns to normal operation so that the flow controller PID_Compact_1 once again has access to the actuator.
This example can be implemented with the following SCL program code:
"PID Compact 1"(Input := "Input1"); "PID Compact 2"(Input := "Input2"); IF "PID Compact 1".Output >= "PID Compact 2".Output THEN
"ActuatorInput" := "PID_Compact_1".Output_PER;
"PID_Compact_1".PIDCtrl.PIDInit := FALSE;
"PID_Compact_2".PIDCtrl.PIDInit := TRUE;
"PID_Compact_2".OverwriteInitialOutputValue := "PID_Compact_1".Output;
ELSE "ActuatorInput" := "PID_Compact_2".Output_PER;
"PID_Compact_1".PIDCtrl.PIDInit := TRUE;
"PID_Compact_2".PIDCtrl.PIDInit := FALSE;
"PID_Compact_1".OverwriteInitialOutputValue := "PID_Compact_2".Output;
END IF;

PID control

96

Function Manual, 10/2018, A5E35300227-AD

4.2.4

Using PID_Compact 4.2 PID_Compact V2
Simulating PID_Compact V2 with PLCSIM
Note Simulation with PLCSIM The simulation of PID_Compact V2.x with PLCSIM for CPU S7-1200 is not supported. PID_Compact V2.x can only be simulated for CPU S7-1500 with PLCSIM. For the simulation with PLCSIM, the time behavior of the simulated PLC is not exactly identical to that of a "real" PLC. The actual cycle clock of a cyclic interrupt OB can have larger fluctuations with a simulated PLC than with "real" PLCs. In the standard configuration, PID_Compact determines the time between calls automatically and monitors them for fluctuations. For the simulation of PID_Compact with PLCSIM, for example, a sampling time error (ErrorBits = DW#16#00000800) can therefore be detected. This results in ongoing tuning being aborted. The response in automatic mode depends on the value of the ActivateRecoverMode tag. To prevent this from happening, you should configure PID_Compact for simulation with PLCSIM as follows: · CycleTime.EnEstimation = FALSE · CycleTime.EnMonitoring = FALSE · CycleTime.Value: Assign the cycle clock of the calling cyclic interrupt OB in seconds to
this tag.

PID control

Function Manual, 10/2018, A5E35300227-AD

97

Using PID_Compact 4.3 PID_Compact V1

4.3

PID_Compact V1

4.3.1

Configuring PID_Compact V1

4.3.1.1

Basic settings V1

Introduction V1 Configure the following properties of the "PID_Compact" technology object under "Basic settings" in the Inspector window or in the configuration window:  Physical quantity  Control logic  Start-up behavior after reset  Setpoint (only in the Inspector window)  Process value (only in the Inspector window)  Output value (only in the Inspector window)

Setpoint, process value and output value You can only configure the setpoint, process value and output value in the Inspector window of the programming editor. Select the source for each value:  Instance DB The value saved in the instance DB is used. Value must be updated in the instance DB by the user program. There should be no value at the instruction. Change via HMI possible.  Instruction The value connected to the instruction is used. The value is written to the instance DB each time the instruction is called. No change via HMI possible.

PID control

98

Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1

Control mode V1

Physical quantity
Select the unit of measurement and physical quantity for the setpoint and process value in the "Controller type" group. The setpoint and process value will be displayed in this unit.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic.
PID_Compact does not work with negative proportional gain. Select the check box "Invert control logic" to reduce the process value with a higher output value.
Examples
 Opening the drain valve will reduce the level of a container's contents.
 Increasing cooling will reduce the temperature.

Start-up behavior after reset
To change straight to the last active mode after restarting the CPU, select the "Enable last mode after CPU restart" check box.
PID_Compact will remain in "Inactive" mode if the check box is cleared.

Setpoint V1

Procedure

Proceed as follows to define a fixed setpoint: 1. Select "Instance DB". 2. Enter a setpoint, e.g. 80° C. 3. Delete any entry in the instruction. Proceed as follows to define a variable setpoint: 1. Select "Instruction". 2. Enter the name of the REAL variable in which the setpoint is saved.
Program-controlled assignment of various values to the REAL variable is possible, for example for the time controlled change of the setpoint.

PID control

Function Manual, 10/2018, A5E35300227-AD

99

Using PID_Compact 4.3 PID_Compact V1

Process value V1
PID_Compact will scale the value of the analog input to the physical quantity if you use the analog input value directly.
You will need to write a program for processing if you wish first to process the analog input value. The process value is, for example, not directly proportional to the value at the analog input. The processed process value must be in floating point format.

Procedure

Proceed as follows to use the analog input value without processing: 1. Select the entry "Input_PER" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the address of the analog input. Proceed as follows to use the processed process value in floating point format: 1. Select the entry "Input" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the name of the variable in which the processed process value is saved.

Output value V1
PID_Compact offers three output values. Your actuator will determine which output value you use.
 Output_PER
The actuator is triggered via an analog output and controlled with a continuous signal, e.g. 0...10V, 4...20mA.
 Output
The output value needs to be processed by the user program, for example because of nonlinear actuator response.
 Output_PWM
The actuator is controlled via a digital output. Pulse width modulation creates minimum ON and minimum OFF times.

100

PID control Function Manual, 10/2018, A5E35300227-AD

Procedure

Using PID_Compact 4.3 PID_Compact V1
Proceed as follows to use the analog output value: 1. Select the entry "Output_PER (analog)" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the analog output. Proceed as follows to process the output value using the user program: 1. Select the entry "Output" in the drop-down list "Output". 2. Select "Instance DB".
The calculated output value is saved in the instance data block. 3. For the preparation of the output value, use the output parameter Output. 4. Transfer the processed output value to the actuator via a digital or analog CPU output. Proceed as follows to use the digital output value: 1. Select the entry "Output_PWM" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the digital output.

PID control Function Manual, 10/2018, A5E35300227-AD

101

Using PID_Compact 4.3 PID_Compact V1

4.3.1.2

Process value settings V1
Configure the scaling of your process value and specify the process value absolute limits In the "Process value settings" configuration window.

Scaling the process value
If you have configured the use of Input_PER in the basic settings, you will need to convert the value of the analog input into the physical quantity of the process value. The current configuration will be displayed in the Input_PER display.
Input_PER will be scaled using a low and high value pair if the process value is directly proportional to the value of the analog input.
1. Enter the low pair of values in the "Scaled low process value" and "Low" input fields.
2. Enter the high pair of values in the "Scaled high process value" and "High" input boxes.
Default settings for the value pairs are saved in the hardware configuration. Proceed as follows to use the value pairs from the hardware configuration:
1. Select the instruction PID_Compact in the programming editor.
2. Connect Input_PER with an analog input in the basic settings.
3. Click on the "Automatic setting" button in the process value settings.
The existing values will be overwritten with the values from the hardware configuration.

Monitoring process value
Specify the absolute high and low limit of the process value. As soon as these limits are violated during operation, the controller switches off and the output value is set to 0%. You must enter reasonable limits for your controlled system. Reasonable limits are important during optimization to obtain optimal PID parameters.
The default for the "High limit process value" is 120 %. At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). An error is no longer reported for a violation of the "High limit process value". Only a wire-break and a short-circuit are recognized and the PID_Compact switches to "Inactive" mode.
WARNING
If you set very high process value limits (for example -3.4*1038...+3.4*1038), process value monitoring will be disabled. Your system may then be damaged if an error occurs.

See also

Process value monitoring V1 (Page 103) PWM limits V1 (Page 104) Output value limits V1 (Page 106) PID parameters V1 (Page 107)

102

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1

4.3.1.3

Advanced settings V1

Process value monitoring V1
Configure a warning high and low limit for the process value in the "Process value monitoring" configuration window. If one of the warning limits is exceeded or undershot during operation, a warning will be displayed at the PID_Compact instruction:
 At the InputWarning_H output parameter if the warning high limit has been exceeded
 At the InputWarning_L output parameter if the warning low limit has been undershot
The warning limits must be within the process value high and low limits.
The process value high and low limits will be used if you do not enter values.

Example

Process value high limit = 98° C; warning high limit = 90° C Warning low limit = 10° C; process value low limit = 0° C PID_Compact will respond as follows:

Process value > 98° C  98° C and > 90° C  90° C and  10° C < 10° C and  0° C < 0° C

InputWarning_H TRUE TRUE FALSE FALSE FALSE

InputWarning_L FALSE FALSE FALSE TRUE TRUE

Operating mode Inactive Automatic mode Automatic mode Automatic mode Inactive

See also

Process value settings V1 (Page 102) PWM limits V1 (Page 104) Output value limits V1 (Page 106) PID parameters V1 (Page 107)

PID control Function Manual, 10/2018, A5E35300227-AD

103

Using PID_Compact 4.3 PID_Compact V1

PWM limits V1

The value at the output parameter Output is transformed into a pulse sequence that is output at output parameter Output_PWM by means of a pulse width modulation. Output is calculated in the PID algorithm sampling time, Output_PWM is output in the PID_Compact sampling time.
The PID algorithm sampling time is determined during pretuning or fine tuning. If manually setting the PID parameters, you will also need to configure the PID algorithm sampling time. The PID_Compact sampling time is equivalent to the cycle time of the calling OB.
The pulse duration is proportional to the value at Output and is always an integer multiple of the PID_Compact sampling time.

 PID_Compact sampling time  PID algorithm sampling time  Pulse duration  Break time
The "Minimum ON time" and the "Minimum OFF time" are rounded to an integer multiple of the PID_Compact sampling time.
A pulse or a break is never shorter than the minimum ON or OFF time. The inaccuracies this causes are added up and compensated in the next cycle.

104

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1
Example PID_Compact sampling time = 100 ms PID algorithm sampling time = 1000 ms Minimum ON time = 200 ms Output is a constant 15%. The smallest pulse that PID_Compact can output is 20%. In the first cycle, no pulse is output. In the second cycle, the pulse not output in the first cycle is added to the pulse of the second cycle.



PID_Compact sampling time



PID algorithm sampling time



Minimum ON time

In order to minimize operation frequency and conserve the actuator, extend the minimum ON and OFF times.

If you are using "Output" or "Output_PER", you must configure the value 0.0 for the minimum ON and OFF times.

Note
The minimum ON and OFF times only affect the output parameter Output_PWM and are not used for any pulse generators integrated in the CPU.

PID control Function Manual, 10/2018, A5E35300227-AD

105

Using PID_Compact 4.3 PID_Compact V1

See also

Process value settings V1 (Page 102) Process value monitoring V1 (Page 103) Output value limits V1 (Page 106) PID parameters V1 (Page 107)

Output value limits V1
In the "Output value limits" configuration window, configure the absolute limits of your output value in percent. Absolute output value limits are not violated in neither manual mode nor in automatic mode. If a output value outside the limits is specified in manual mode, the effective value is limited in the CPU to the configured limits.
The valid output value limit values depend on the Output used.

Output Output_PER Output_PWM

-100.0 to 100.0 -100.0 to 100.0 0.0 to 100.0

PID_Compact sets the output value to 0.0 if an error occurs. 0.0 must therefore always be within the output value limits. You will need to add an offset to Output and Output_PER in the user program if you want an output value low limit of greater than 0.0.

See also

Process value settings V1 (Page 102) Process value monitoring V1 (Page 103) PWM limits V1 (Page 104) PID parameters V1 (Page 107)

106

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1
PID parameters V1 The PID parameters are displayed in the "PID Parameters" configuration window. The PID parameters will be adapted to your controlled system during controller tuning. You do not need to enter the PID parameters manually.
Note The currently active PID parameters are located for PID_Compact V1 in the sRet structure and for PID_Compact V2 in the Retain.CtrlParams structure. Change the currently active PID parameters only in "Inactive" mode online to prevent malfunction of the PID controller. If you want to change the PID parameters in "Automatic mode" or "Manual mode" online, change the PID parameters as follows: · PID_Compact V1: Change the PID parameters in the sBackUp structure and apply these
changes with sPid_Cmpt.b_LoadBackUp = TRUE to the sRet structure. · PID_Compact V2: Change the PID parameters in the CtrlParamsBackUp structure and
apply these changes with LoadBackUp = TRUE to the Retain.CtrlParams structure. Online changes to the PID parameters in "Automatic mode" can result in jumps at the output value.
The PID algorithm operates according to the following equation:

y

Output value of the PID algorithm

Kp Proportional gain

s

Laplace operator

b

Proportional action weighting

w Setpoint

x

Process value

TI Integral action time

a

Derivative delay coefficient (derivative delay T1 = a × TD)

TD Derivative action time

c

Derivative action weighting

PID control Function Manual, 10/2018, A5E35300227-AD

107

Using PID_Compact 4.3 PID_Compact V1
The diagram below illustrates the integration of the parameters into the PID algorithm:

All PID parameters are retentive. If you enter the PID parameters manually, you must completely download PID_Compact. Downloading technology objects to device (Page 44)
Proportional gain The value specifies the proportional gain of the controller. PID_Compact does not work with a negative proportional gain. Control logic is inverted under Basic settings > Controller type.
Integral action time The integral action time determines the time behavior of the integral action. The integral action is deactivated with integral action time = 0.0. When the integral action time is changed from a different value to 0.0 online in "Automatic mode", the previous integral action is deleted and the output value jumps.
Derivative action time The derivative action time determines the time behavior of the derivative action. Derivative action is deactivated with derivative action time = 0.0.

108

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1
Derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient  0.0: Derivative action is effective for one cycle only and therefore almost not effective.  0.5: This value has proved useful in practice for controlled systems with one dominant time constant.  > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Proportional action for setpoint change is fully effective  0.0: Proportional action for setpoint change is not effective The proportional action is always fully effective when the process value is changed.
Derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Derivative action is fully effective upon setpoint change  0.0: Derivative action is not effective upon setpoint change The derivative action is always fully effective when the process value is changed.
PID algorithm sampling time The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_Compact are executed at every call. If you use Output_PWM, the accuracy of the output signal is determined by the ratio of the PID algorithm sampling time to the cycle time of the OB. The PID algorithm sampling time corresponds to the time period of the pulse width modulation. The cycle time should be at least 10 times the PID algorithm sampling time.

PID control Function Manual, 10/2018, A5E35300227-AD

109

Using PID_Compact 4.3 PID_Compact V1

Rule for tuning

Select whether PI or PID parameters are to be calculated in the "Controller structure" dropdown list.  PID
Calculates PID parameters during pretuning and fine tuning.  PI
Calculates PI parameters during pretuning and fine tuning.  User-defined
The drop-down list displays "User-defined" if you have configured different controller structures for pretuning and fine tuning via a user program.

110

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Compact 4.3 PID_Compact V1

4.3.2

Commissioning PID_Compact V1

4.3.2.1

Commissioning V1 The commissioning window helps you commission the PID controller. You can monitor the values for the setpoint, process value and output value along the time axis in the trend view. The following functions are supported in the commissioning window:  Controller pretuning  Controller fine tuning Use fine tuning for fine adjustments to the PID parameters.  Monitoring the current closed-loop control in the trend view  Testing the controlled system by specifying a manual output value All functions require an online connection to the CPU to have been established.

Basic handling

 Select the desired sampling time in the "Sampling time" drop-down list.
All values in the commissioning window are updated in the selected update time.
 Click the "Start" icon in the measuring group if you want to use the commissioning functions.
Value recording is started. The current values for the setpoint, process value and output value are entered in the trend view. Operation of the commissioning window is enabled.
 Click the "Stop" icon if you want to end the commissioning functions.
The values recorded in the trend view can continue to be analyzed.
Closing the commissioning window will terminate recording in the trend view and delete the recorded values.

See also

Pretuning V1 (Page 112) Fine tuning V1 (Page 114) "Manual" mode V1 (Page 116)

PID control Function Manual, 10/2018, A5E35300227-AD

111

Using PID_Compact 4.3 PID_Compact V1

4.3.2.2

Pretuning V1
The pretuning determines the process response to a jump change of the output value and searches for the point of inflection. The tuned PID parameters are calculated as a function of the maximum slope and dead time of the controlled system.
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. The PID parameters are backed up before being recalculated.

Requirement

 The "PID_Compact" instruction is called in a cyclic interrupt OB.
 ManualEnable = FALSE
 PID_Compact is in "inactive" or "manual" mode.
 The setpoint may not be changed during controller tuning. PID_Compact will otherwise be deactivated.
 The setpoint and the process value lie within the configured limits (see "Process value monitoring" configuration).
 The difference between setpoint and process value is greater than 30% of the difference between process value high limit and process value low limit.
 The distance between the setpoint and the process value is > 50% of the setpoint.

Procedure

To perform pretuning, follow these steps: 1. Double-click the "PID_Compact > Commissioning" entry in the project tree. 2. Select the entry "Pretuning" in the "Tuning mode" drop-down list. 3. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ Pretuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

112

PID control Function Manual, 10/2018, A5E35300227-AD

Result See also

Using PID_Compact 4.3 PID_Compact V1
If pretuning was performed without an error message, the PID parameters have been tuned. PID_Compact switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU. If pretuning is not possible, PID_Compact will change to "Inactive" mode.
Parameters State and sRet.i_Mode V1 (Page 308) Commissioning V1 (Page 111) Fine tuning V1 (Page 114) "Manual" mode V1 (Page 116)

PID control Function Manual, 10/2018, A5E35300227-AD

113

Using PID_Compact 4.3 PID_Compact V1

4.3.2.3

Fine tuning V1
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are optimized for the operating point from the amplitude and frequency of this oscillation. All PID parameters are recalculated on the basis of the findings. PID parameters from fine tuning usually have better master control and disturbance behavior than PID parameters from pretuning.
PID_Compact automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before being recalculated.

Requirement

 The PID_Compact instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  The setpoint and the process value lie within the configured limits (see "Process value
monitoring" configuration).  The control loop has stabilized at the operating point. The operating point is reached
when the process value corresponds to the setpoint.  No disturbances are expected.  The setpoint may not be changed during controller tuning.  PID_Compact is in inactive mode, automatic mode or manual mode.

Process depends on initial situation
Fine tuning can be started in "inactive", "automatic" or "manual" mode. Fine tuning proceeds as follows when started in:
 Automatic mode
Start fine tuning in automatic mode if you wish to improve the existing PID parameters using controller tuning.
PID_Comact will regulate using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
 Inactive or manual mode
If the requirements for pretuning are met, pretuning is started. The PID parameters established will be used for adjustment until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start. If pretuning is not possible, PID_Compact will change to "Inactive" mode.
An attempt is made to reach the setpoint with a minimum or maximum output value if the process value for pretuning is already too near the setpoint. This can produce increased overshoot.

114

PID control Function Manual, 10/2018, A5E35300227-AD

Procedure

Using PID_Compact 4.3 PID_Compact V1
Proceed as follows to carry out "fine tuning": 1. Select the entry "Fine tuning" in the "Tuning mode" drop-down list. 2. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ The process of fine tuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon in the "Tuning mode" group when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result See also

The PID parameters will have been optimized if fine tuning has been executed without errors. PID_Compact changes to automatic mode and uses the optimized parameters. The optimized PID parameters will be retained during power OFF and a restart of the CPU. If errors occurred during "fine tuning", PID_Compact will change to "inactive" mode.
Parameters State and sRet.i_Mode V1 (Page 308) Commissioning V1 (Page 111) Pretuning V1 (Page 112) "Manual" mode V1 (Page 116)

PID control Function Manual, 10/2018, A5E35300227-AD

115

Using PID_Compact 4.3 PID_Compact V1

4.3.2.4

"Manual" mode V1
The following section describes how you can use the "Manual" operating mode in the commissioning window of the "PID Compact" technology object.

Requirement

 The "PID_Compact" instruction is called in a cyclic interrupt OB.
 An online connection to the CPU has been established and the CPU is in the "RUN" mode.
 The functions of the commissioning window have been enabled via the "Start" icon.

Procedure

Use "Manual mode" in the commissioning window if you want to test the process by specifying a manual value. To define a manual value, proceed as follows:
1. Select the check box "Manual mode" in the "Online status of the controller" area.
PID_Compact operates in manual mode. The most recent current output value remains in effect.
2. Enter the manual value in the "Output" field as a % value.
3. Click the control icon .

Result

The manual value is written to the CPU and immediately goes into effect.
Note PID_Compact continues to monitor the process value. If the process value limits are exceeded, PID_Compact is deactivated.
Clear the "Manual mode" check box if the output value is to be specified again by the PID controller. The change to automatic mode is bumpless.

See also

Parameters State and sRet.i_Mode V1 (Page 308) Commissioning V1 (Page 111) Pretuning V1 (Page 112) Fine tuning V1 (Page 114)

116

PID control Function Manual, 10/2018, A5E35300227-AD

4.3.3

Using PID_Compact 4.3 PID_Compact V1
Simulating PID_Compact V1 with PLCSIM
Note Simulation with PLCSIM For the simulation with PLCSIM, the time behavior of the simulated PLC is not exactly identical to that of a "real" PLC. The actual cycle clock of a cyclic interrupt OB can have larger fluctuations with a simulated PLC than with "real" PLCs. In the standard configuration, PID_Compact determines the time between calls automatically and monitors them for fluctuations. For a simulation of PID_Compact with PLCSIM, for example, a sampling time error (ErrorBits = DW#16#00000800) can therefore be detected. PID_Compact switches to "Inactive" mode (State = 0) in this case. To prevent this from happening, you should configure PID_Compact for simulation with PLCSIM as follows: · sb_EnCyclEstimation = FALSE · sb_EnCyclMonitoring = FALSE · sPid_Calc.r_Cycle: Assign the cycle clock of the calling cyclic interrupt OB in seconds to
this tag.

PID control Function Manual, 10/2018, A5E35300227-AD

117

Using PID_3Step

5

5.1

Technology object PID_3Step

The technology object PID_3Step provides a PID controller with tuning for valves or actuators with integral response.

You can configure the following controllers:

 Three-point step controller with position feedback

 Three-point step controller without position feedback

 Valve controller with analog output value

PID_3Step continuously acquires the measured process value within a control loop and compares it with the setpoint. From the resulting control deviation, PID_3Step calculates an output value through which the process value reaches the setpoint as quickly and steadily as possible. The output value for the PID controller consists of three actions:

 Proportional action

The proportional action of the output value increases in proportion to the control deviation.

 I action

The integral action of the output value increases until the control deviation has been balanced.

 D action

The derivative action increases with the rate of change of control deviation. The process value is corrected to the setpoint as quickly as possible. The derivative action will be reduced again if the rate of change of control deviation drops.

The instruction PID_3Step calculates the proportional, integral and derivative parameters for your controlled system during pretuning. Fine tuning can be used to tune the parameters further. You do not need to manually determine the parameters.

Additional information  Overview of software controller (Page 39)  Add technology objects (Page 41)  Configure technology objects (Page 42)  Configuring PID_3Step V2 (Page 119)  Configuring PID_3Step V1 (Page 142)

Principle

For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 68011827 (https://support.industry.siemens.com/cs/ww/en/view/68011827)

118

PID control Function Manual, 10/2018, A5E35300227-AD

5.2

PID_3Step V2

Using PID_3Step 5.2 PID_3Step V2

5.2.1

Configuring PID_3Step V2

5.2.1.1

Basic settings V2

Introduction V2 Configure the following properties of the "PID_3Step" technology object under "Basic settings" in the Inspector window or in the configuration window:  Physical quantity  Control logic  Start-up behavior after reset  Setpoint (only in the Inspector window)  Process value (only in the Inspector window)  Output value (only in the Inspector window)  Position feedback (only in the Inspector window)

Setpoint, process value, output value and position feedback You can only configure the setpoint, process value, output value and position feedback in the Inspector window of the programming editor. Select the source for each value:  Instance DB The value saved in the instance DB is used. Value must be updated in the instance DB by the user program. There should be no value at the instruction. Change via HMI possible.  Instruction The value connected to the instruction is used. The value is written to the instance DB each time the instruction is called. No change via HMI possible.

PID control Function Manual, 10/2018, A5E35300227-AD

119

Using PID_3Step 5.2 PID_3Step V2

Control mode V2

Physical quantity
Select the physical quantity and unit of measurement for setpoint, process value, and disturbance variable in the "Controller type" group. Setpoint, process value, and disturbance variable is displayed in this unit of measurement.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic.
PID_3Step does not work with negative proportional gain. Select the check box "Invert control logic" to reduce the process value with a higher output value.
Examples
 Opening the drain valve will reduce the level of a container's contents.
 Increasing cooling will reduce the temperature.

Startup characteristics
1. To switch to "Inactive" mode after CPU restart, clear the "Activate Mode after CPU restart" check box.
To switch to the operating mode saved in the Mode parameter after CPU restart, select the "Activate Mode after CPU restart" check box.
2. In the "Set Mode to" drop-down list, select the mode that is to be enabled after a complete download to the device.
After a complete download to the device, PID_3Step starts in the selected operating mode. With each additional restart, PID_3Step starts in the mode that was last saved in Mode.
Example
You have selected the "Activate Mode after CPU restart" check box and the entry "Pretuning" in the "Set Mode to" list. After a complete download to the device, PID_3Step starts in the "Pretuning" mode. If pretuning is still active, PID_3Step starts in "Pretuning" mode again after restart of the CPU. If pretuning was successfully completed and automatic mode is active, PID_3Step starts in "Automatic mode" after restart of the CPU.

120

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

Setpoint V2

Procedure

Proceed as follows to define a fixed setpoint: 1. Select "Instance DB". 2. Enter a setpoint, e.g. 80° C. 3. Delete any entry in the instruction. Proceed as follows to define a variable setpoint: 1. Select "Instruction". 2. Enter the name of the REAL variable in which the setpoint is saved.
Program-controlled assignment of various values to the REAL variable is possible, for example for the time controlled change of the setpoint.

Process value V2
PID_3Step will scale the value of the analog input to the physical quantity if you use the analog input value directly.
You will need to write a program for processing if you wish first to process the analog input value. The process value is, for example, not directly proportional to the value at the analog input. The processed process value must be in floating point format.

Procedure

Proceed as follows to use the analog input value without processing: 1. Select the entry "Input_PER" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the address of the analog input. Proceed as follows to use the processed process value in floating point format: 1. Select the entry "Input" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the name of the variable in which the processed process value is saved.

Position feedback V2 Position feedback configuration depends upon the actuator used.  Actuator without position feedback  Actuator with digital endstop signals  Actuator with analog position feedback  Actuator with analog position feedback and endstop signals

PID control Function Manual, 10/2018, A5E35300227-AD

121

Using PID_3Step 5.2 PID_3Step V2
Actuator without position feedback Proceed as follows to configure PID_3Step for an actuator without position feedback: 1. Select the entry "No Feedback" in the drop-down list "Feedback".
Actuator with digital endstop signals Proceed as follows to configure PID_3Step for an actuator with endstop signals: 1. Select the entry "No Feedback" in the drop-down list "Feedback". 2. Activate the "Actuator endstop signals" check box. 3. Select "Instruction" as source for Actuator_H and Actuator_L. 4. Enter the addresses of the digital inputs for Actuator_H and Actuator_L.
Actuator with analog position feedback Proceed as follows to configure PID_3Step for an actuator with analog position feedback: 1. Select the entry "Feedback" or "Feedback_PER" in the drop-down list "Feedback". ­ Use the analog input value for Feedback_PER. Configure Feedback_PER scaling in the actuator settings. ­ Process the analog input value for Feedback using your user program. 2. Select "Instruction" as source. 3. Enter the address of the analog input or the variable of your user program.
Actuator with analog position feedback and endstop signals Proceed as follows to configure PID_3Step for an actuator with analog position feedback and endstop signals: 1. Select the entry "Feedback" or "Feedback_PER" in the drop-down list "Feedback". 2. Select "Instruction" as source. 3. Enter the address of the analog input or the variable of your user program. 4. Activate the "Actuator endstop signals" check box. 5. Select "Instruction" as source for Actuator_H and Actuator_L. 6. Enter the addresses of the digital inputs for Actuator_H and Actuator_L.

122

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

Output value V2
PID_3Step offers an analog output value (Output_PER) and digital output values (Output_UP, Output_DN). Your actuator will determine which output value you use.
 Output_PER
The actuator has a relevant motor transition time and is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V or 4...20 mA. The value at Output_PER corresponds to the target position of the valve, e.g. Output_PER = 13824, when the valve is to be opened by 50%.
For auto-tuning and anti windup behavior, for example, PID_3Step takes into consideration that the analog output value has a delayed effect on the process due to the motor transition time. If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.
 Output_UP, Output_DN
The actuator has a relevant motor transition time and is controlled by two digital outputs. Output_UP moves the valve in the open state direction. Output_DN moves the valve in the closed state direction.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior. You should therefore configure the motor transition time under "Actuator settings" with the value that the motor requires to move the actuator from the closed to the opened state.

Procedure

Proceed as follows to use the analog output value: 1. Select the entry "Output (analog)" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the analog output. Proceed as follows to use the digital output value: 1. Select the entry "Output (digital)" in the drop-down list "Output". 2. Select "Instruction" for Output_UP and Output_DN. 3. Enter the addresses of the digital outputs. Proceed as follows to process the output value using the user program: 1. Select the entry corresponding to the actuator in the drop-down list "Output". 2. Select "Instruction". 3. Enter the name of the tag you are using to process the output value. 4. Transfer the processed output value to the actuator by means of an analog or digital CPU
output.

PID control Function Manual, 10/2018, A5E35300227-AD

123

Using PID_3Step 5.2 PID_3Step V2

5.2.1.2

Process value settings V2

Process value scaling V2
If you have configured the use of Input_PER in the basic setting, you must convert the value of the analog input to the physical quantity of the process value. The current configuration is displayed in the Input_PER display.
Input_PER will be scaled using a low and high value pair if the process value is directly proportional to the value of the analog input.

Procedure

To scale the process value, follow these steps: 1. Enter the low pair of values in the "Scaled low process value" and "Low" text boxs. 2. Enter the high pair of values in the "Scaled high process value" and "High" input boxes. Default settings for the value pairs are stored in the hardware configuration. To use the value pairs from the hardware configuration, follow these steps: 1. Select the PID_3Step instruction in the programming editor. 2. Interconnect Input_PER with an analog input in the basic settings. 3. Click the "Automatic setting" button in the process value settings. The existing values will be overwritten with the values from the hardware configuration.

Process value limits V2
You must specify an appropriate absolute high limit and low limit for the process value as limit values for your controlled system. As soon as the process value violates these limits, an error occurs (ErrorBits = 0001h). Tuning is canceled when the process value limits are violated. You can specify how PID_3Step responds to errors in automatic mode in the actuator settings.

124

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

5.2.1.3

Final controlling element settings V2

Final controlling element V2

Actuator-specific times
Configure the motor transition time and the minimum ON and OFF times to prevent damage to the actuator. You can find the specifications in the actuator data sheet.
The motor transition time is the time in seconds the motor requires to move the actuator from the closed to the opened state. You can measure the motor transition time during commissioning.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior.
If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.
The motor transition time is retentive. If you enter the motor transition time manually, you must completely download PID_3Step.
Downloading technology objects to device (Page 44)
If you are using "Output_UP" or "Output_DN", you can reduce the switching frequency with the minimum on and minimum OFF time.
The on or off times calculated are totaled in automatic mode and only become effective when the sum is greater than or equal to the minimum on or OFF time.
Manual_UP = TRUE or Manual_DN = TRUE in manual mode operates the actuator for at least the minimum ON or OFF time.
If you have selected the analog output value Output_PER, the minimum ON time and the minimum OFF time are not evaluated and cannot be changed.

PID control Function Manual, 10/2018, A5E35300227-AD

125

Using PID_3Step 5.2 PID_3Step V2
Reaction to error PID_3Step is preset so that the controller stays active in most cases in the event of an error. If errors occur frequently in controller mode, this default reaction has a negative effect on the control response. In this case, check the Errorbits parameter and eliminate the cause of the error.
NOTICE Your system may be damaged. If you output "Current value while error pending" or "Substitute output value while error pending" in the event of an error, PID_3Step remains in automatic mode even if the process value limits are violated. This may damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.
PID_3Step generates a programmable output value in the case of an error:  Current value
PID_3Step is switched off and no longer modifies the actuator position.  Current value for error while error is pending
The controller functions of PID_3Step are switched off and the position of the actuator is no longer changed. If the following errors occur in automatic mode, PID_3Step returns to automatic mode as soon as the errors are no longer pending. ­ 0002h: Invalid value at Input_PER parameter. ­ 0200h: Invalid value at Input parameter. ­ 0400h: Calculation of output value failed. ­ 1000h: Invalid value at Setpoint parameter. ­ 2000h: Invalid value at Feedback_PER parameter. ­ 4000h: Invalid value at Feedback parameter. ­ 8000h: Error during digital position feedback. ­ 20000h: Invalid value at SavePosition tag.

126

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2
If one or more of the following errors occur, PID_3Step stays in automatic mode:
­ 0001h: The Input parameter is outside the process value limits.
­ 0800h: Sampling time error
­ 40000h: Invalid value at Disturbance parameter.
PID_3Step remains in manual mode if an error occurs in manual mode.
If an error occurs during tuning or transition time measurement, PID_3Step switches to the mode in which tuning or transition time measurement was started. Only in the event of the following error is tuning not aborted:
­ 0020h: Pretuning is not permitted during fine tuning.
 Substitute output value
PID_3Step moves the actuator to the substitute output value and then switches off.
 Substitute output value while error is pending
PID_3Step moves the actuator to the substitute output value. When the substitute output value is reached, PID_3Step reacts as it does with "Current value for while error is pending".
Enter the substitute output value in "%".
Only substitute output values 0% and 100% can be approached precisely in the case of actuators without analog position feedback. A substitute output value not equal to 0% or 100% is approached via an internally simulated position feedback. This procedure does not, however, allow the exact approach of substitute output value.
All substitute output values can be approached precisely with actuators with analog position feedback.

PID control Function Manual, 10/2018, A5E35300227-AD

127

Using PID_3Step 5.2 PID_3Step V2

Scaling V2 position feedback

Scaling position feedback If you have configured the use of Feedback_PER in the basic settings, you will need to convert the value of the analog input into %. The current configuration will be displayed in the "Feedback" display. Feedback_PER is scaled using a low and high value pair. 1. Enter the low pair of values in the "Low endstop" and "Low" input boxes. 2. Enter the high pair of values in the "High endstop" and "High" input boxes. "Low endstop" must be less than "High endstop"; "Low" must be less than "High". The valid values for "High endstop" and "Low endstop" depend upon:  No Feedback, Feedback, Feedback_PER  Output (analog), Output (digital)

Output Output (digital) Output (digital) Output (digital) Output (analog) Output (analog) Output (analog)

Feedback No Feedback Feedback Feedback_PER No Feedback Feedback Feedback_PER

Low endstop Cannot be set (0.0%) -100.0% or 0.0% -100.0% or 0.0% Cannot be set (0.0%) -100.0% or 0.0% -100.0% or 0.0%

High endstop Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0% Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0%

Output value limits V2

Limiting the output value
You can exceed or undershoot the output value limits during the transition time measurement and with mode = 10. The output value is limited to these values in all other modes.
Enter the absolute output value limits in the "Output value high limit" and "Output value low limit" input boxes. The output value limits must be within "Low endstop" and "High endstop".
If no Feedback is available and Output (digital) is set, you cannot limit the output value. Output_UP and Output_DN are then reset upon Actuator_H = TRUE or Actuator_L = TRUE. If no endstop signals are available, Output_UP and Output_DN are reset after a travel time of 150% of the motor actuating time.
The default value of 150% can be adjusted using the tagConfig.VirtualActuatorLimit. As of PID_3Step Version 2.3 the monitoring and limiting of the travel time can be deactivated with Config.VirtualActuatorLimit = 0.0.

128

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

5.2.1.4

Advanced settings V2

Actual value monitoring V2
Configure a warning high and low limit for the process value in the "Process value monitoring" configuration window. If one of the warning limits is exceeded or undershot during operation, a warning will be displayed at the PID_3Step instruction:
 At the InputWarning_H output parameter if the warning high limit has been exceeded
 At the InputWarning_L output parameter if the warning low limit has been undershot
The warning limits must be within the process value high and low limits.
The process value high and low limits will be used if you do not enter values.

Example

Process value high limit = 98° C; warning high limit = 90° C Warning low limit = 10° C; process value low limit = 0° C PID_3Step will respond as follows:

Process value > 98° C  98° C and > 90° C  90° C and  10° C < 10° C and  0° C < 0° C

InputWarning_H TRUE TRUE FALSE FALSE FALSE

InputWarning_L FALSE FALSE FALSE TRUE TRUE

ErrorBits 0001h 0000h 0000h 0000h 0001h

Operating mode As configured Automatic mode Automatic mode Automatic mode As configured

In the actuator settings, you can configure the response of PID_3Step when the process value high limit or low limit is violated.

PID control Function Manual, 10/2018, A5E35300227-AD

129

Using PID_3Step 5.2 PID_3Step V2
PID parameters V2 The PID parameters are displayed in the "PID Parameters" configuration window. The PID parameters will be adapted to your controlled system during controller tuning. You do not need to enter the PID parameters manually.
Note The currently active PID parameters are located in the Retain.CtrlParams structure. Change the currently active PID parameters only in "Inactive" mode online to prevent malfunction of the PID controller. If you want to change the PID parameters in "Automatic mode" or "Manual mode" online, change the PID parameters in the CtrlParamsBackUp structure and apply these changes to the Retain.CtrlParams structure as follows: · PID_3Step V1: Apply the changes with Config.LoadBackUp = TRUE · PID_3Step V2: Apply the changes with LoadBackUp = TRUE Online changes to the PID parameters in "Automatic mode" can result in jumps at the output value.
The PID algorithm operates according to the following equation:

y Output value of the PID algorithm

Kp Proportional gain

s

Laplace operator

b

Proportional action weighting

w Setpoint

x

Process value

TI Integration time

a

Derivative delay coefficient (derivative delay T1 = a × TD)

TD Derivative action time

c

Derivative action weighting

130

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2
The diagram below illustrates the integration of the parameters into the PID algorithm:

All PID parameters are retentive. If you enter the PID parameters manually, you must completely download PID_3Step. Downloading technology objects to device (Page 44)
Proportional gain The value specifies the proportional gain of the controller. PID_3Step does not work with a negative proportional gain. Control logic is inverted under Basic settings > Controller type.
Integration time The integration time determines the time behavior of the integral action. The integral action is deactivated with integration time = 0.0. When the integral action time is changed from a different value to 0.0 online in "Automatic mode", the previous integral action is deleted and the output value jumps.
Derivative action time The derivative action time determines the time behavior of the derivative action. Derivative action is deactivated with derivative action time = 0.0.
Derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient  0.0: Derivative action is effective for one cycle only and therefore almost not effective.  0.5: This value has proved useful in practice for controlled systems with one dominant time constant.  > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.

PID control Function Manual, 10/2018, A5E35300227-AD

131

Using PID_3Step 5.2 PID_3Step V2
Proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Proportional action for setpoint change is fully effective  0.0: Proportional action for setpoint change is not effective The proportional action is always fully effective when the process value is changed.
Derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Derivative action is fully effective upon setpoint change  0.0: Derivative action is not effective upon setpoint change The derivative action is always fully effective when the process value is changed.
PID algorithm sampling time The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the PID_3Step sampling time. All other functions of PID_3Step are executed at every call.
Dead band width The deadband suppresses the noise component in the steady controller state. The dead band width specifies the size of the dead band. The dead band is off if the dead band width is 0.0. If values not equal to 1.0 are configured for the proportional action weighting or the derivative action weighting, setpoint changes even within the dead zone affect the output value. Process value changes within the dead zone do not affect the output value, regardless of the weighting.

132

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

5.2.2

Commissioning PID_3Step V2

5.2.2.1

Pretuning V2
The pretuning determines the process response to a pulse of the output value and searches for the point of inflection. The tuned PID parameters are calculated as a function of the maximum slope and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning.
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. This is most likely the case in operating modes "Inactive" and "manual mode". The PID parameters are backed up before being recalculated.
The setpoint is frozen during pretuning.

Requirement

 The PID_3Step instruction is called in a cyclic interrupt OB.
 ManualEnable = FALSE
 Reset = FALSE
 The motor transition time has been configured or measured.
 PID_3Step is in one of the following modes: "Inactive", "Manual mode", or "Automatic mode".
 The setpoint and the process value lie within the configured limits (see "Process value settings" configuration).

PID control Function Manual, 10/2018, A5E35300227-AD

133

Using PID_3Step 5.2 PID_3Step V2

Procedure

To perform pretuning, follow these steps: 1. Double-click the "PID_3Step > Commissioning" entry in the project tree. 2. Select the entry "Pretuning" in the "Tuning mode" drop-down list in the working area
"Tuning". 3. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ Pretuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result

If pretuning was performed without an error message, the PID parameters have been tuned. PID_3Step switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU.
If pretuning is not possible, PID_3Step responds with the configured reaction to errors.

134

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

5.2.2.2

Fine tuning V2
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are tuned for the operating point from the amplitude and frequency of this oscillation. All PID parameters are recalculated from the results. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning.
PID_3Step automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before being recalculated.
The setpoint is frozen during fine tuning.

Requirement

 The PID_3Step instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  Reset = FALSE  The motor transition time has been configured or measured.  The setpoint and the process value lie within the configured limits (see "Process value
settings" configuration).  The control loop has stabilized at the operating point. The operating point is reached
when the process value corresponds to the setpoint.  No disturbances are expected.  PID_3Step is in inactive mode, automatic mode or manual mode.

Process depends on initial situation
Fine tuning proceeds as follows when started from:
 Automatic mode
Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.
PID_3Step controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
 Inactive or manual mode
Pretuning is always started first. The determined PID parameters will be used for control until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.

PID control Function Manual, 10/2018, A5E35300227-AD

135

Using PID_3Step 5.2 PID_3Step V2

Procedure

To perform fine tuning, follow these steps: 1. Select the entry "Fine tuning" in the "Tuning mode" drop-down list. 2. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ The process of fine tuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon in the "Tuning mode" group when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result

If no errors occurred during fine tuning, the PID parameters have been tuned. PID_3Step switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU.
If errors occurred during fine tuning, PID_3Step responds with the configured response to errors.

136

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.2 PID_3Step V2

5.2.2.3

Commissioning with manual PID parameters V2

Requirement

 The PID_3Step instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  Reset = FALSE  The motor transition time has been configured or measured.  PID_3Step is in "inactive" mode.  The setpoint and the process value lie within the configured limits (see "Process value
settings" configuration).

Procedure
Result See also

Proceed as follows to commission PID_3Step with manual PID parameters: 1. Double-click on "PID_3Step > Configuration" in the project tree. 2. Click on "Advanced settings > PID Parameters" in the configuration window. 3. Select the check box "Enable direct input". 4. Enter the PID parameters. 5. Double-click the "PID_3Step > Commissioning" entry in the project tree. 6. Establish an online connection to the CPU. 7. Load the PID parameters to the CPU. 8. Click the "Start PID_3Step" icon.
PID_3Step changes to automatic mode and controls using the current PID parameters.
PID parameters V2 (Page 130)

PID control Function Manual, 10/2018, A5E35300227-AD

137

Using PID_3Step 5.2 PID_3Step V2

5.2.2.4

Measuring the motor transition time V2

Introduction

PID_3Step requires the motor transition time to be as accurate as possible for good controller results. The data in the actuator documentation contains average values for this type of actuator. The value for the specific actuator used may differ.
You can measure the motor transition time during commissioning if you are using actuators with position feedback or endstop signals. The output value limits are not taken into consideration during the motor transition time measurement. The actuator can travel to the high or the low endstop.
The motor transition time cannot be measured if neither position feedback nor endstop signals are available.

Actuators with analog position feedback Proceed as follows to measure motor transition time with position feedback:
Requirement
 Feedback or Feedback_PER has been selected in the basic settings and the signal has been connected.
 An online connection to the CPU has been established.
1. Select the "Use position feedback" check box.
2. Enter the position to which the actuator is to be moved in the "Target position" input field.
The current position feedback (starting position) will be displayed. The difference between "Target position" and "Position feedback" must be at least 50% of the valid output value range.
3. Click the "Start" icon.

138

PID control Function Manual, 10/2018, A5E35300227-AD

Result

Using PID_3Step 5.2 PID_3Step V2
The actuator is moved from the starting position to the target position. Time measurement starts immediately and ends when the actuator reaches the target position. The motor transition time is calculated according to the following equation: Motor transition time = (output value high limit ­ output value low limit) × Measuring time / AMOUNT (target position ­ starting position). The progress and status of transition time measurement are displayed. The transition time measured is saved in the instance data block on the CPU and displayed in the "Measured transition time" field. When the transition time measurement is ended and ActivateRecoverMode = TRUE, PID_3Step switches to the operating mode from which the transition time measurement was started. If the transition time measurement is ended and ActivateRecoverMode = FALSE, PID_3Step changes to "Inactive" mode.
Note Click on the icon "Upload measured transition time" to load the motor transition time measured to the project.

Actuators with endstop signals Proceed as follows to measure the transition time of actuators with endstop signals: Requirement  The "Endstop signals" check box in the basic settings has been selected and Actuator_H and Actuator_L are connected.  An online connection to the CPU has been established. Proceed as follows to measure motor transition time with endstop signals: 1. Select the "Use actuator endstop signals" check box. 2. Select the direction in which the actuator is to be moved. ­ Open - Close - Open The actuator is moved first to the high endstop, then to the low endstop and then back to the high endstop. ­ Close - Open - Close The actuator is moved first to the low endstop, then to the high endstop and then back to the low endstop. 3. Click the "Start" icon.

PID control Function Manual, 10/2018, A5E35300227-AD

139

Using PID_3Step 5.2 PID_3Step V2

Result

The actuator is moved in the selected direction. Time measurement will start once the actuator has reached the first endstop and will end when the actuator reaches this endstop for the second time. The motor transition time is equal to the time measured divided by two.
The progress and status of transition time measurement are displayed. The transition time measured is saved in the instance data block on the CPU and displayed in the "Measured transition time" field. When the transition time measurement is ended and ActivateRecoverMode = TRUE, PID_3Step switches to the operating mode from which the transition time measurement was started. If the transition time measurement is ended and ActivateRecoverMode = FALSE, PID_3Step changes to "Inactive" mode.

Cancelling transition time measurement
PID_3Step switches to "Inactive" mode if you cancel transition time measurement by pressing the Stop button.

140

PID control Function Manual, 10/2018, A5E35300227-AD

5.2.3

Using PID_3Step 5.2 PID_3Step V2
Simulating PID_3Step V2 with PLCSIM
Note Simulation with PLCSIM The simulation of PID_3Step V2.x with PLCSIM for CPU S7-1200 is not supported. PID_3Step V2.x can only be simulated for CPU S7-1500 with PLCSIM. For the simulation with PLCSIM, the time behavior of the simulated PLC is not exactly identical to that of a "real" PLC. The actual cycle clock of a cyclic interrupt OB can have larger fluctuations with a simulated PLC than with "real" PLCs. In the standard configuration, PID_3Step determines the time between calls automatically and monitors them for fluctuations. For a simulation of PID_3Step with PLCSIM, for example, a sampling time error ((ErrorBits = DW#16#00000800) can therefore be detected. This results in ongoing tuning being aborted. The response in automatic mode depends on the value of the ActivateRecoverMode tag. To prevent this from happening, you should configure PID_3Step for simulation with PLCSIM as follows: · CycleTime.EnEstimation = FALSE · CycleTime.EnMonitoring = FALSE · CycleTime.Value: Assign the cycle clock of the calling cyclic interrupt OB in seconds to
this tag.

PID control Function Manual, 10/2018, A5E35300227-AD

141

Using PID_3Step 5.3 PID_3Step V1

5.3

PID_3Step V1

5.3.1

Configuring PID_3Step V1

5.3.1.1

Basic settings V1

Introduction V1 Configure the following properties of the "PID_3Step" technology object under "Basic settings" in the Inspector window or in the configuration window:  Physical quantity  Control logic  Start-up behavior after reset  Setpoint (only in the Inspector window)  Process value (only in the Inspector window)  Output value (only in the Inspector window)  Position feedback (only in the Inspector window)

Setpoint, process value, output value and position feedback You can only configure the setpoint, process value, output value and position feedback in the Inspector window of the programming editor. Select the source for each value:  Instance DB The value saved in the instance DB is used. Value must be updated in the instance DB by the user program. There should be no value at the instruction. Change via HMI possible.  Instruction The value connected to the instruction is used. The value is written to the instance DB each time the instruction is called. No change via HMI possible.

142

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

Control mode V1

Physical quantity
Select the unit of measurement and physical quantity for the setpoint and process value in the "Controller type" group. The setpoint and process value will be displayed in this unit.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic.
PID_3Step does not work with negative proportional gain. Select the check box "Invert control logic" to reduce the process value with a higher output value.
Examples
 Opening the drain valve will reduce the level of a container's contents.
 Increasing cooling will reduce the temperature.

Start-up behavior after reset
To change straight to the last active mode after restarting the CPU, select the "Enable last mode after CPU restart" check box.
PID_3Step will remain in "Inactive" mode if the check box is cleared.

PID control Function Manual, 10/2018, A5E35300227-AD

143

Using PID_3Step 5.3 PID_3Step V1

Setpoint V1

Procedure

Proceed as follows to define a fixed setpoint: 1. Select "Instance DB". 2. Enter a setpoint, e.g. 80° C. 3. Delete any entry in the instruction. Proceed as follows to define a variable setpoint: 1. Select "Instruction". 2. Enter the name of the REAL variable in which the setpoint is saved.
Program-controlled assignment of various values to the REAL variable is possible, for example for the time controlled change of the setpoint.

Process value V1
PID_3Step will scale the value of the analog input to the physical quantity if you use the analog input value directly.
You will need to write a program for processing if you wish first to process the analog input value. The process value is, for example, not directly proportional to the value at the analog input. The processed process value must be in floating point format.

Procedure

Proceed as follows to use the analog input value without processing: 1. Select the entry "Input_PER" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the address of the analog input. Proceed as follows to use the processed process value in floating point format: 1. Select the entry "Input" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the name of the variable in which the processed process value is saved.

144

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

Position feedback V1 Position feedback configuration depends upon the actuator used.  Actuator without position feedback  Actuator with digital endstop signals  Actuator with analog position feedback  Actuator with analog position feedback and endstop signals

Actuator without position feedback Proceed as follows to configure PID_3Step for an actuator without position feedback: 1. Select the entry "No Feedback" in the drop-down list "Feedback".

Actuator with digital endstop signals Proceed as follows to configure PID_3Step for an actuator with endstop signals: 1. Select the entry "No Feedback" in the drop-down list "Feedback". 2. Activate the "Actuator endstop signals" check box. 3. Select "Instruction" as source for Actuator_H and Actuator_L. 4. Enter the addresses of the digital inputs for Actuator_H and Actuator_L.

Actuator with analog position feedback Proceed as follows to configure PID_3Step for an actuator with analog position feedback: 1. Select the entry "Feedback" or "Feedback_PER" in the drop-down list "Feedback". ­ Use the analog input value for Feedback_PER. Configure Feedback_PER scaling in the actuator settings. ­ Process the analog input value for Feedback using your user program. 2. Select "Instruction" as source. 3. Enter the address of the analog input or the variable of your user program.

Actuator with analog position feedback and endstop signals Proceed as follows to configure PID_3Step for an actuator with analog position feedback and endstop signals: 1. Select the entry "Feedback" or "Feedback_PER" in the drop-down list "Feedback". 2. Select "Instruction" as source. 3. Enter the address of the analog input or the variable of your user program. 4. Activate the "Actuator endstop signals" check box. 5. Select "Instruction" as source for Actuator_H and Actuator_L. 6. Enter the addresses of the digital inputs for Actuator_H and Actuator_L.

PID control Function Manual, 10/2018, A5E35300227-AD

145

Using PID_3Step 5.3 PID_3Step V1

Output value V1
PID_3Step offers an analog output value (Output_PER) and digital output values (Output_UP, Output_DN). Your actuator will determine which output value you use.
 Output_PER
The actuator has a relevant motor transition time and is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V or 4...20 mA. The value at Output_PER corresponds to the target position of the valve, e.g. Output_PER = 13824, when the valve is to be opened by 50%.
For auto-tuning and anti windup behavior, for example, PID_3Step takes into consideration that the analog output value has a delayed effect on the process due to the motor transition time. If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.
 Output_UP, Output_DN
The actuator has a relevant motor transition time and is controlled by two digital outputs. Output_UP moves the valve in the open state direction. Output_DN moves the valve in the closed state direction.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior. You should therefore configure the motor transition time under "Actuator settings" with the value that the motor requires to move the actuator from the closed to the opened state.

Procedure

Proceed as follows to use the analog output value: 1. Select the entry "Output (analog)" in the drop-down list "Output". 2. Select "Instruction". 3. Enter the address of the analog output. Proceed as follows to use the digital output value: 1. Select the entry "Output (digital)" in the drop-down list "Output". 2. Select "Instruction" for Output_UP and Output_DN. 3. Enter the addresses of the digital outputs. Proceed as follows to process the output value using the user program: 1. Select the entry corresponding to the actuator in the drop-down list "Output". 2. Select "Instruction". 3. Enter the name of the tag you are using to process the output value. 4. Transfer the processed output value to the actuator by means of an analog or digital CPU
output.

146

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

5.3.1.2

Process value settings V1
Configure the scaling of your process value and specify the process value absolute limits In the "Process value settings" configuration window.

Scaling the process value
If you have configured the use of Input_PER in the basic settings, you will need to convert the value of the analog input into the physical quantity of the process value. The current configuration will be displayed in the Input_PER display.
Input_PER will be scaled using a low and high value pair if the process value is directly proportional to the value of the analog input.
1. Enter the low pair of values in the "Scaled low process value" and "Low" input fields.
2. Enter the high pair of values in the "Scaled high process value" and "High" input boxes.
Default settings for the value pairs are saved in the hardware configuration. Proceed as follows to use the value pairs from the hardware configuration:
1. Select the instruction PID_3Step in the programming editor.
2. Connect Input_PER to an analog input in the basic settings.
3. Click on the "Automatic setting" button in the process value settings.
The existing values will be overwritten with the values from the hardware configuration.

Monitoring process value
Specify the absolute high and low limit of the process value. You must enter reasonable limits for your controlled system. Reasonable limits are important during optimization to obtain optimal PID parameters. The default for the "High limit process value" is 120 %. At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). This setting ensures that an error is no longer signaled due to a violation of the "Process value high limit". Only a wire-break and a short-circuit are recognized and PID_3Step reacts according to the configured reaction to error.
NOTICE
Your system may be damaged.
If you set very high process value limits (for example -3.4*1038...+3.4*1038), process value monitoring will be disabled. Your system may then be damaged if an error occurs. You need to configure useful process value limits for your controlled system.

PID control Function Manual, 10/2018, A5E35300227-AD

147

Using PID_3Step 5.3 PID_3Step V1

5.3.1.3

V1 final controlling element setting

Actuator-specific times
Configure the motor transition time and the minimum ON and OFF times to prevent damage to the actuator. You can find the specifications in the actuator data sheet.
The motor transition time is the time in seconds the motor requires to move the actuator from the closed to the opened state. The maximum time that the actuator is moved in one direction is 110% of the motor transition time. You can measure the motor transition time during commissioning.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior.
If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.
If you are using "Output_UP" or "Output_DN", you can reduce the switching frequency with the minimum on and minimum OFF time.
The on or off times calculated are totaled in automatic mode and only become effective when the sum is greater than or equal to the minimum on or OFF time.
A rising edge at Manual_UP or Manual_DN in manual mode will operate the actuator for at least the minimum on or OFF time.
If you have selected the analog output value Output_PER, the minimum ON time and the minimum OFF time are not evaluated and cannot be changed.

148

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1
Reaction to error
PID_3Step is preset so that the controller stays active in most cases in the event of an error. If errors occur frequently in controller mode, this default reaction has a negative effect on the control response. In this case, check the Errorbits parameter and eliminate the cause of the error.
PID_3Step generates a programmable output value in response to an error:
 Current value
PID_3Step is switched off and no longer modifies the actuator position.
 Current value for error while error is pending
The controller functions of PID_3Step are switched off and the position of the actuator is no longer changed.
If the following errors occur in automatic mode, PID_3Step returns to automatic mode as soon as the errors are no longer pending.
­ 0002h: Invalid value at Input_PER parameter.
­ 0200h: Invalid value at Input parameter.
­ 0800h: Sampling time error
­ 1000h: Invalid value at Setpoint parameter.
­ 2000h: Invalid value at Feedback_PER parameter.
­ 4000h: Invalid value at Feedback parameter.
­ 8000h: Error during digital position feedback.
If one of these error occurs in manual mode, PID_3Step remains in manual mode.
If an error occurs during the tuning or transition time measurement, PID_3Step is switched off.
 Substitute output value
PID_3Step moves the actuator to the substitute output value and then switches off.
 Substitute output value while error is pending
PID_3Step moves the actuator to the substitute output value. When the substitute output value is reached, PID_3Step reacts as it does with "Current value for while error is pending".
Enter the substitute output value in "%".
Only substitute output values 0% and 100% can be approached precisely in the case of actuators without analog position feedback. The actuator is moved in one direction at 110% of the motor transition time to ensure the high or low endstop is reached. There endstop signals take priority. A substitute output value not equal to 0% or 100% is approached via an internally simulated position feedback. This procedure does not, however, allow the exact approach of substitute output value.
All substitute output values can be approached precisely with actuators with analog position feedback.

PID control Function Manual, 10/2018, A5E35300227-AD

149

Using PID_3Step 5.3 PID_3Step V1

Scaling position feedback If you have configured the use of Feedback_PER in the basic settings, you will need to convert the value of the analog input into %. The current configuration will be displayed in the "Feedback" display. Feedback_PER is scaled using a low and high value pair. 1. Enter the low pair of values in the "Low endstop" and "Low" input boxes. 2. Enter the high pair of values in the "High endstop" and "High" input boxes. "Low endstop" must be less than "High endstop"; "Low" must be less than "High". The valid values for "High endstop" and "Low endstop" depend upon:  No Feedback, Feedback, Feedback_PER  Output (analog), Output (digital)

Output Output (digital) Output (digital) Output (digital) Output (analog) Output (analog) Output (analog)

Feedback No Feedback Feedback Feedback_PER No Feedback Feedback Feedback_PER

Low endstop Cannot be set (0.0%) -100.0% or 0.0% -100.0% or 0.0% Cannot be set (0.0%) -100.0% or 0.0% -100.0% or 0.0%

High endstop Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0% Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0%

Limiting the output value
You can only exceed or undershoot the output value limits during the transition time measurement. The output value is limited to these values in all other modes.
Enter the absolute output value limits in the "Output value high limit" and "Output value low limit" input boxes. The output value limits must be within "Low endstop" and "High endstop".
If no Feedback is available and Output (digital) is set, you cannot limit the output value. The digital outputs are reset with Actuator_H = TRUE or Actuator_L = TRUE, or after a travel time amounting to 110% of the motor transition time.

150

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

5.3.1.4

Advanced settings V1

Actual value monitoring V1
Configure a warning high and low limit for the process value in the "Process value monitoring" configuration window. If one of the warning limits is exceeded or undershot during operation, a warning will be displayed at the PID_3Step instruction:
 At the InputWarning_H output parameter if the warning high limit has been exceeded
 At the InputWarning_L output parameter if the warning low limit has been undershot
The warning limits must be within the process value high and low limits.
The process value high and low limits will be used if you do not enter values.

Example

Process value high limit = 98° C; warning high limit = 90° C Warning low limit = 10° C; process value low limit = 0° C PID_3Step will respond as follows:

Process value > 98° C  98° C and > 90° C  90° C and  10° C < 10° C and  0° C < 0° C

InputWarning_H TRUE TRUE FALSE FALSE FALSE

InputWarning_L FALSE FALSE FALSE TRUE TRUE

Operating mode Inactive Automatic mode Automatic mode Automatic mode Inactive

PID parameters V1
The PID parameters are displayed in the "PID Parameters" configuration window. The PID parameters will be adapted to your controlled system during controller tuning. You do not need to enter the PID parameters manually.
Note
The currently active PID parameters are located in the Retain.CtrlParams structure.
Change the currently active PID parameters only in "Inactive" mode online to prevent malfunction of the PID controller.
If you want to change the PID parameters in "Automatic mode" or "Manual mode" online, change the PID parameters in the CtrlParamsBackUp structure and apply these changes to the Retain.CtrlParams structure as follows: · PID_3Step V1: Apply the changes with Config.LoadBackUp = TRUE · PID_3Step V2: Apply the changes with LoadBackUp = TRUE
Online changes to the PID parameters in "Automatic mode" can result in jumps at the output value.

PID control Function Manual, 10/2018, A5E35300227-AD

151

Using PID_3Step 5.3 PID_3Step V1
The PID algorithm operates according to the following equation:

y Output value of the PID algorithm

Kp Proportional gain

s

Laplace operator

b

Proportional action weighting

w Setpoint

x

Process value

TI Integration time

a

Derivative delay coefficient (derivative delay T1 = a × TD)

TD Derivative action time

c

Derivative action weighting

The diagram below illustrates the integration of the parameters into the PID algorithm:

All PID parameters are retentive. If you enter the PID parameters manually, you must completely download PID_3Step. Downloading technology objects to device (Page 44)
Proportional gain The value specifies the proportional gain of the controller. PID_3Step does not work with a negative proportional gain. Control logic is inverted under Basic settings > Controller type.
Integration time The integration time determines the time behavior of the integral action. The integral action is deactivated with integration time = 0.0. When the integral action time is changed from a different value to 0.0 online in "Automatic mode", the previous integral action is deleted and the output value jumps.

152

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1
Derivative action time The derivative action time determines the time behavior of the derivative action. Derivative action is deactivated with derivative action time = 0.0.
Derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient  0.0: Derivative action is effective for one cycle only and therefore almost not effective.  0.5: This value has proved useful in practice for controlled systems with one dominant time constant.  > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Proportional action for setpoint change is fully effective  0.0: Proportional action for setpoint change is not effective The proportional action is always fully effective when the process value is changed.
Derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Derivative action is fully effective upon setpoint change  0.0: Derivative action is not effective upon setpoint change The derivative action is always fully effective when the process value is changed.
PID algorithm sampling time The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the PID_3Step sampling time. All other functions of PID_3Step are executed at every call.
Dead band width The deadband suppresses the noise component in the steady controller state. The dead band width specifies the size of the dead band. The dead band is off if the dead band width is 0.0. If values not equal to 1.0 are configured for the proportional action weighting or the derivative action weighting, setpoint changes even within the dead zone affect the output value. Process value changes within the dead zone do not affect the output value, regardless of the weighting.

PID control Function Manual, 10/2018, A5E35300227-AD

153

Using PID_3Step 5.3 PID_3Step V1

5.3.2

Commissioning PID_3Step V1

5.3.2.1

Commissioning V1 You can monitor the setpoint, process value and output value over time in the "Tuning" working area. The following commissioning functions are supported in the curve plotter:  Controller pretuning  Controller fine tuning  Monitoring the current closed-loop control in the trend view All functions require an online connection to the CPU to have been established.

Basic handling

 Select the desired sampling time in the "Sampling time" drop-down list.
All values in the tuning working area are updated in the selected update time.
 Click the "Start" icon in the measuring group if you want to use the commissioning functions.
Value recording is started. The current values for the setpoint, process value and output value are entered in the trend view. Operation of the commissioning window is enabled.
 Click the "Stop" icon if you want to end the commissioning functions.
The values recorded in the trend view can continue to be analyzed.
 Closing the commissioning window will terminate recording in the trend view and delete the recorded values.

154

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

5.3.2.2

Pretuning V1
The pretuning determines the process response to a pulse of the output value and searches for the point of inflection. The tuned PID parameters are calculated as a function of the maximum slope and dead time of the controlled system.
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. The PID parameters are backed up before being recalculated.
The setpoint is frozen during pretuning.

Requirement

 The PID_3Step instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  PID_3Step is in "inactive" or "manual" mode.  The setpoint and the process value lie within the configured limits (see "Process value
settings" configuration).

Procedure

To perform pretuning, follow these steps: 1. Double-click the "PID_3Step > Commissioning" entry in the project tree. 2. Select the entry "Pretuning" in the "Tuning mode" drop-down list in the working area
"Tuning". 3. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ Pretuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result

If pretuning was performed without an error message, the PID parameters have been tuned. PID_3Step switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU.
If pretuning is not possible, PID_3Step changes to "Inactive" mode.

PID control Function Manual, 10/2018, A5E35300227-AD

155

Using PID_3Step 5.3 PID_3Step V1

5.3.2.3

Fine tuning V1
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are optimized for the operating point from the amplitude and frequency of this oscillation. All PID parameters are recalculated on the basis of the findings. PID parameters from fine tuning usually have better master control and disturbance behavior than PID parameters from pretuning.
PID_3Step automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before being recalculated.
The setpoint is frozen during fine tuning.

Requirement

 The PID_3Step instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  The motor transition time has been configured or measured.  The setpoint and the process value lie within the configured limits (see "Process value
settings" configuration).  The control loop has stabilized at the operating point. The operating point is reached
when the process value corresponds to the setpoint.  No disturbances are expected.  PID_3Step is in inactive mode, automatic mode or manual mode.

Process depends on initial situation
Fine tuning proceeds as follows when started in:
 Automatic mode
Start fine tuning in automatic mode if you wish to improve the existing PID parameters using controller tuning.
PID_3Step will regulate using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
 Inactive or manual mode
Pretuning is always started first. The PID parameters established will be used for adjustment until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.

156

PID control Function Manual, 10/2018, A5E35300227-AD

Procedure

Using PID_3Step 5.3 PID_3Step V1
Proceed as follows to carry out "fine tuning": 1. Select the entry "Fine tuning" in the "Tuning mode" drop-down list. 2. Click the "Start" icon.
­ An online connection will be established. ­ Value recording is started. ­ The process of fine tuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon in the "Tuning mode" group when the progress bar has reached 100% and it is to be assumed the controller tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result

The PID parameters will have been optimized if fine tuning has been executed without errors. PID_3Step changes to automatic mode and uses the optimized parameters. The optimized PID parameters will be retained during power OFF and a restart of the CPU.
If errors occurred during fine tuning, PID_3Step will change to "inactive" mode.

5.3.2.4

Commissioning with manual PID parameters V1

Procedure

Proceed as follows to commission PID_3Step with manual PID parameters: 1. Double-click on "PID_3Step > Configuration" in the project tree. 2. Click on "Advanced settings > PID Parameters" in the configuration window. 3. Select the check box "Enable direct input". 4. Enter the PID parameters. 5. Double-click on "PID_3Step > Commissioning" in the project tree. 6. Establish an online connection to the CPU. 7. Load the PID parameters to the CPU. 8. Click on the "Activate controller" icon.

Result

PID_3Step changes to automatic mode and controls using the current PID parameters.

PID control Function Manual, 10/2018, A5E35300227-AD

157

Using PID_3Step 5.3 PID_3Step V1

5.3.2.5

Measuring the motor transition time V1

Introduction

PID_3Step requires the motor transition time to be as accurate as possible for good controller results. The data in the actuator documentation contains average values for this type of actuator. The value for the specific actuator used may differ.
You can measure the motor transition time during commissioning if you are using actuators with position feedback or endstop signals. The output value limits are not taken into consideration during the motor transition time measurement. The actuator can travel to the high or the low endstop.
The motor transition time cannot be measured if neither position feedback nor endstop signals are available.

Actuators with analog position feedback Proceed as follows to measure motor transition time with position feedback:
Requirement
 Feedback or Feedback_PER has been selected in the basic settings and the signal has been connected.
 An online connection to the CPU has been established.
1. Select the "Use position feedback" check box.
2. Enter the position to which the actuator is to be moved in the "Target position" input field.
The current position feedback (starting position) will be displayed. The difference between "Target position" and "Position feedback" must be at least 50% of the valid output value range.
3. Click the "Start transition time measurement" icon.

Result

The actuator is moved from the starting position to the target position. Time measurement starts immediately and ends when the actuator reaches the target position. The motor transition time is calculated according to the following equation:
Motor transition time = (output value high limit ­ output value low limit) × Measuring time / AMOUNT (target position ­ starting position).
The progress and status of transition time measurement are displayed. The transition time measured is saved in the instance data block on the CPU and displayed in the "Measured transition time" field. PID_3Step will change to "Inactive" mode once transition time measurement is complete.
Note
Click on the icon "Upload measured transition time" to load the motor transition time measured to the project.

158

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_3Step 5.3 PID_3Step V1

Actuators with endstop signals Proceed as follows to measure the transition time of actuators with endstop signals: Requirement  The "Endstop signals" check box in the basic settings has been selected and Actuator_H and Actuator_L are connected.  An online connection to the CPU has been established. Proceed as follows to measure motor transition time with endstop signals: 1. Select the "Use actuator endstop signals" check box. 2. Select the direction in which the actuator is to be moved. ­ Open - Close - Open The actuator is moved first to the high endstop, then to the low endstop and then back to the high endstop. ­ Close - Open - Close The actuator is moved first to the low endstop, then to the high endstop and then back to the low endstop. 3. Click the "Start transition time measurement" icon.

Result

The actuator is moved in the selected direction. Time measurement will start once the actuator has reached the first endstop and will end when the actuator reaches this endstop for the second time. The motor transition time is equal to the time measured divided by two.
The progress and status of transition time measurement are displayed. The transition time measured is saved in the instance data block on the CPU and displayed in the "Measured transition time" field. PID_3Step will change to "Inactive" mode once transition time measurement is complete.

Cancelling transition time measurement
PID_3Step will change to "Inactive" mode immediately if you cancel transition time measurement. The actuator will stop being moved. You can reactive PID-3Step in the curve plotter.

PID control Function Manual, 10/2018, A5E35300227-AD

159

Using PID_3Step 5.3 PID_3Step V1

5.3.3

Simulating PID_3Step V1 with PLCSIM
Note Simulation with PLCSIM
For the simulation with PLCSIM, the time behavior of the simulated PLC is not exactly identical to that of a "real" PLC. The actual cycle clock of a cyclic interrupt OB can have larger fluctuations with a simulated PLC than with "real" PLCs.
In the standard configuration, PID_3Step determines the time between calls automatically and monitors them for fluctuations.
For a simulation of PID_3Step with PLCSIM, for example, a sampling time error (ErrorBits = DW#16#00000800) can therefore be detected.
This results in ongoing tuning being aborted.
The response in automatic mode depends on the value of the ActivateRecoverMode tag.
To prevent this from happening, you should configure PID_3Step for simulation with PLCSIM as follows: · CycleTime.EnEstimation = FALSE · CycleTime.EnMonitoring = FALSE · CycleTime.Value: Assign the cycle clock of the calling cyclic interrupt OB in seconds to
this tag.

160

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp

6

6.1

Technology object PID_Temp

The PID_Temp technology object provides a continuous PID controller with integrated tuning. PID_Temp is especially designed for temperature control and is suited for heating or heating/cooling applications. Two outputs are available for this purpose, one each for heating and cooling. PID_Temp can also be used for other control tasks. PID_Temp is cascadable and can be used in manual or automatic mode.

PID_Temp continuously acquires the measured process value within a control loop and compares it with the set setpoint. From the resulting control deviations, the instruction PID_Temp calculates the output value for heating and/or cooling which is used to adjust the process value to the setpoint. The output values for the PID controller consist of three actions:

 Proportional action

The proportional action of the output value increases in proportion to the control deviation.

 Integral action

The integral action of the output value increases until the control deviation has been balanced.

 Derivative action

The derivative action increases with the rate of change of control deviation. The process value is corrected to the setpoint as quickly as possible. The derivative action will be reduced again if the rate of change of control deviation drops.

The instruction PID_Temp calculates the proportional, integral and derivative parameters for your controlled system during "pretuning". "Fine tuning" can be used to tune the parameters further. You do not need to manually determine the parameters.

Either a fixed cooling factor or two PID parameter sets can be used for heating-and-cooling applications.

Additional information  Overview of software controller (Page 39)  Add technology objects (Page 41)  Configure technology objects (Page 42)  Configuring PID_Temp (Page 162)

PID control Function Manual, 10/2018, A5E35300227-AD

161

Using PID_Temp 6.2 Configuring PID_Temp

6.2

Configuring PID_Temp

6.2.1

Basic settings

6.2.1.1

Introduction Configure the following properties of the "PID_Temp" technology object under "Basic settings" in the Inspector window or in the configuration window:  Physical quantity  Start-up behavior after reset  Source and input of the setpoint (only in the Inspector window)  Selection of the process value  Source and input of the process value (only in the Inspector window)  Selection of the heating output value  Source and input of the heating output value (only in the Inspector window)  Activation and selection of the cooling output value  Source and input of the cooling output value (only in the Inspector window)  Activation of PID_Temp as master or slave of a cascade  Number of slaves  Selection of the master (only in the Inspector window)

Setpoint, process value, heating output value and cooling output value
You can select the source and enter values or tags for the setpoint, process value, heating output value and cooling output value in the Inspector window of the programming editor.
Select the source for each value:
 Instance DB:
The value saved in the instance DB is used. The value must be updated by the user program in the instance DB. There should be no value at the instruction. Can be changed using HMI.
 Instruction:
The value connected to the instruction is used. The value is written to the instance DB each time the instruction is called. Cannot be changed using HMI.

162

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp

6.2.1.2

Controller type

Physical quantity
Select the unit of measurement and physical quantity for the setpoint and the process value in the "Controller type" group. The setpoint and the process value are displayed in this unit.

Startup characteristics
1. To switch to "Inactive"mode after CPU restart, clear the "Activate Mode after CPU restart"check box.
To switch to the operating mode saved in the Mode parameter after CPU restart, select the "Activate Mode after CPU restart" check box.
2. In the "Set Mode to" drop-down list, select the mode that is to be enabled after a complete download to the device.
After a complete "Download to device", PID_Temp starts in the selected operating mode. With each additional restart, PID_Temp starts in the mode that was last saved in Mode.
When selecting pretuning or fine tuning, you also have to set or reset the Heat.EnableTuning and Cool.EnableTuning tags in order to choose between tuning for heating and tuning for cooling.
Example:
You have selected the "Activate Mode after CPU restart" check box and the "Pretuning" entry in the "Set Mode to" list. After a complete "Download to device", PID_Temp starts in the "Pretuning" mode. If pretuning is still active, PID_Temp starts in "Pretuning" mode again after restart of the CPU (heating/cooling depends on the tags Heat.EnableTuning and Cool.EnableCooling). If pretuning was successfully completed and automatic mode is active, PID_Temp starts in "Automatic mode" after restart of the CPU.

6.2.1.3

Setpoint

Procedure

Proceed as follows to define a fixed setpoint: 1. Select "Instance DB". 2. Enter a setpoint, e.g. 80° C. 3. Delete any entry in the instruction. Proceed as follows to define a variable setpoint: 1. Select "Instruction". 2. Enter the name of the REAL tag in which the setpoint is saved.
Program-controlled assignment of various values to the REAL tag is possible, for example for the time-controlled change of the setpoint.

PID control Function Manual, 10/2018, A5E35300227-AD

163

Using PID_Temp 6.2 Configuring PID_Temp

6.2.1.4

Process value
PID_Temp will scale the value of the analog input to the physical quantity if you use the analog input value directly.
You will need to write a program for processing if you wish first to process the analog input value. The process value is, for example, not directly proportional to the value at the analog input. The processed process value must be in floating point format.

Procedure

Proceed as follows to use the analog input value without processing: 1. Select the entry "Input_PER" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the address of the analog input. Proceed as follows to use the processed process value in floating point format: 1. Select the entry "Input" in the drop-down list "Input". 2. Select "Instruction" as source. 3. Enter the name of the variable in which the processed process value is saved.

6.2.1.5

Heating and cooling output value
The PID_Temp instruction provides a PID controller with integrated tuning for temperature processes. PID_Temp is suitable for heating or heating-and-cooling applications.
PID_Temp provides the following output values. Your actuator will determine which output value you use.
 OutputHeat Heating output value (floating-point format): The output value for heating needs to be processed by the user program, for example, because of non-linear actuator response.
 OutputHeat_PER Analog heating output value: The actuator for heating is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V, 4...20 mA.
 OutputHeat_PWM Pulse-width modulated heating output value: The actuator for heating is controlled via a digital output. Pulse width modulation creates variable ON and OFF times.
 OutputCool Cooling output value (floating-point format): The output value for cooling needs to be processed by the user program, for example because of non-linear actuator response.
 OutputCool_PER Analog cooling output value: The actuator for cooling is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V, 4...20 mA.
 OutputCool_PWM Pulse-width modulated cooling output value: The actuator for cooling is controlled via a digital output. Pulse width modulation creates variable ON and OFF times.

164

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp
The cooling output is only available if it was activated via the "Activate cooling" check box.
 If the check box is cleared, the output value of the PID algorithm (PidOutputSum) is scaled and output at the outputs for heating.
 If the check box is selected, positive output values of the PID algorithm (PidOutputSum) are scaled and output at the outputs for heating. Negative output values of the PID algorithm are scaled and output at the outputs for cooling. You can choose between two methods for output value calculation at the output settings.
Note Note: · The OutputHeat_PWM, OutputHeat_PER, OutputCool_PWM, OutputCool_PER outputs
are only calculated if you select these correspondingly from the drop-down list. · The OutputHeat output is always calculated. · The OutputCool output is calculated if the check box for cooling is selected. · The "Activate cooling" check box is only available if the controller is not configured as a
master in a cascade.

Procedure

Proceed as follows to use the analog output value: 1. Select the entry "OutputHeat_PER" or "OutputCool_PER" in the drop-down list
"OutputHeat" or "OutputCool". 2. Select "Instruction". 3. Enter the address of the analog output. Proceed as follows to use the pulse-width modulated output value: 1. Select the entry "OutputHeat_PWM" or "OutputCool_PWM" in the drop-down list
"OutputHeat" or "OutputCool". 2. Select "Instruction". 3. Enter the address of the digital output. Proceed as follows to process the output value using the user program: 1. Select the entry "OutputHeat" or "OutputCool" in the drop-down list "OutputHeat" or
"OutpuCool". 2. Select "Instruction". 3. Enter the name of the variable you are using to process the output value. 4. Transfer the processed output value to the actuator by means of an analog or digital CPU
output.

PID control Function Manual, 10/2018, A5E35300227-AD

165

Using PID_Temp 6.2 Configuring PID_Temp

6.2.1.6

Cascade
If a PID_Temp instance receives its setpoint from a higher-level master controller and outputs its output value in turn to a subordinate slave controller, this PID_Temp instance is both a master controller and a slave controller simultaneously. Both configurations listed below then have to be carried out for such a PID_Temp instance. This is the case, for example, for the middle PID_Temp instance in a cascade control system with three concatenated measured variables and three PID_Temp instances.

Configuring a controller as master in a cascade
A master controller defines the setpoint of a slave controller with its output.
In order to use PID_Temp as master in a cascade, you have to deactivate the cooling in the basic settings. In order to configure this PID_Temp instance as a master controller in a cascade, activate the "Controller is master" check box. The selection of the output value for heating is set automatically to OutputHeat.
OutputHeat_PWM and OutputHeat_PER cannot be used at a master in a cascade.
Subsequently specify the number of directly subordinate slave controllers that receive their setpoint from this master controller.
If no own scaling function is used when assigning the OutputHeat parameter of the master to the Setpoint parameter of the slave, it may be necessary to adapt the output value limits and the output scaling of the master to the setpoint/process value range of the slave. This can be done in the output settings of the master in the "OutputHeat / OutputCool" section.

Configuring a controller as a slave in a cascade
A slave controller receives its setpoint (Setpoint parameter) from the output of its master controller (OutputHeat parameter).
In order to configure this PID_Temp instance as a slave controller in a cascade, activate the "Controller is slave" check box in the basic settings.
Subsequently select the PID_Temp instance that is to be used as the master controller for this slave controller in the Inspector window of the programming editor. The Master and Setpoint parameters of the slave controller are interconnected with the selected master controller through this selection (the existing interconnections at these parameters are overwritten). This interconnection allows the exchange of information and the setpoint specification between master and slave. If required, the interconnection can be changed subsequently at the Setpoint parameter of the slave controller in order, for example, to insert an additional filter. The interconnection at the parameter Master may not be changed subsequently.
The "Controller is master" check box has to be selected and the number of slaves has to be configured correctly at the selected master controller. The master controller has to be called before the slave controller in the same cyclic interrupt OB.

Additional information
Additional information about program creation, configuration and commissioning when PID_Temp is used in cascade control systems is available under Cascade control with PID_Temp (Page 195).

166

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp

6.2.2

Process value settings

6.2.2.1

Process value limits
You must specify an appropriate absolute high limit and low limit for the process value as limit values for your controlled system. As soon as the process value violates these limits, an error occurs (ErrorBits = 0001h). Tuning is canceled when the process value limits are violated. You can specify how PID_Temp responds to errors in automatic mode in the output settings.

6.2.2.2

Process value scaling
If you have configured the use of Input_PER in the basic settings, you will need to convert the value of the analog input into the physical quantity of the process value. The current configuration is displayed in the Input_PER display.
Input_PER is scaled using a low and high value pair if the process value is directly proportional to the value of the analog input.

Procedure

To scale the process value, follow these steps: 1. Enter the low pair of values in the "Scaled low process value" and "Low" input fields. 2. Enter the high pair of values in the "Scaled high process value" and "High" input fields. Default settings for the value pairs are saved in the hardware configuration. Proceed as follows to use the value pairs from the hardware configuration: 1. Select the instruction PID_Temp in the programming editor. 2. Interconnect Input_PER with an analog input in the basic settings. 3. Click on the "Automatic setting" button in the process value settings. The existing values are overwritten with the values from the hardware configuration.

PID control Function Manual, 10/2018, A5E35300227-AD

167

Using PID_Temp 6.2 Configuring PID_Temp

6.2.3

Output settings

6.2.3.1

Basic settings of output

Method for heating and cooling
If cooling is activated in the basic settings, two methods are available for calculating the PID output value:
 PID parameter switching (Config.AdvancedCooling = TRUE):
The output value calculation for cooling takes place by means of a separate PID parameter set. Based on the calculated output value and the control deviation, the PID algorithm decides whether the PID parameter for heating or cooling is used. This method is suitable if the heating and cooling actuators have different time responses and different gains.
Pretuning and fine tuning for cooling are only available if this method is selected.
 Cooling factor (Config.AdvancedCooling = FALSE):
Output value calculation for cooling is effected with the PID parameters for heating under consideration of the configurable cooling factor Config.CoolFactor. This method is suitable if the heating and cooling actuators have a similar time response but different gains. If this method is selected, pretuning and fine tuning for cooling as well as the PID parameter set for cooling are not available. You can only execute the tuning for heating.

Cooling factor

If the cooling factor is selected as the method for heating/cooling, this factor is used in the calculation of the output value for cooling. This allows different gains of heating and cooling actuators to be taken into account.
The cooling factor is not set automatically or adjusted during tuning. You have to configure the correct cooling factor manually by using the ratio "Heating actuator gain/Cooling actuator gain".
Example: Cooling factor = 2.0 means that the heating actuator gain is twice as high as the cooling actuator gain.
The cooling factor is only effective and can only be changed if "Cooling factor" is selected as the method for heating/cooling.

168

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp
Reaction to error
NOTICE Your system may be damaged. If you output "Current value while error is pending " or "Substitute output value while error is pending" in the event of an error, PID_Temp remains in automatic mode or in manual mode. This may cause a violation of the process value limits and damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.
PID_Temp is preset so that the controller stays active in most cases in the event of an error. If errors occur frequently in controller mode, this default reaction has a negative effect on the control response. In this case, check the ErrorBits parameter and eliminate the cause of the error. PID_Temp generates a programmable output value in response to an error:  Zero (inactive)
At all errors, PID_Temp switches to the "Inactive" operating mode and outputs the following: ­ 0.0 as PID output value (PidOutputSum) ­ 0.0 as output value for heating (OutputHeat) and output value for cooling (OutputCool) ­ 0 as analog output value for heating (OutputHeat_PER) and analog output value for
cooling (OutputCool_PER) ­ FALSE as PWM output value for heating (OutputHeat_PWM) and PWM output value
for cooling (OutputCool_PWM) This is independent of the configured output value limits and the scaling. The controller is only reactivated by a falling edge at Reset or a rising edge at ModeActivate.  Current value while error is pending The error response depends on the error occurring and the operating mode. If one or more of the following errors occur in automatic mode, PID_Temp stays in automatic mode: ­ 0000001h: The Input parameter is outside the process value limits. ­ 0000800h: Sampling time error ­ 0040000h: Invalid value at Disturbance parameter. ­ 8000000h: Error during the calculation of the PID parameters.

PID control Function Manual, 10/2018, A5E35300227-AD

169

Using PID_Temp 6.2 Configuring PID_Temp
If one or more of the following errors occur in automatic mode, PID_Temp switches to "Substitute output value with error monitoring" mode and outputs the last valid PID output value (PidOutputSum):
­ 0000002h: Invalid value at Input_PER parameter.
­ 0000200h: Invalid value at Input parameter.
­ 0000400h: Calculation of output value failed.
­ 0001000h: Invalid value at Setpoint or SubstituteSetpoint parameter.
The values at the outputs for heating and cooling resulting from the PID output value are produced by the configured output scaling.
As soon as the errors are no longer pending, PID_Temp switches back to automatic mode.
If an error occurs during manual mode, PID_Temp remains in manual mode and continues to use the manual value as the PID output value.
If the manual value is invalid, the configured substitute output value is used.
If the manual value and substitute output value are invalid, the low limit of the PID output value for heating (Config.Output.Heat.PidLowerLimit) is used.
If the following error occurs during pretuning or fine tuning, PID_Temp remains in active mode:
­ 0000020h: Pretuning is not permitted during fine tuning.
When any other error occurs, PID_Temp cancels the tuning and switches to the mode from which tuning was started.
 Substitute output value while error is pending
PID_Temp behaves as described at "Current value while error is pending", but outputs the configured substitute output value (SubstituteOutput) as a PID output value (PidOutputSum) in "Substitute output value with error monitoring" operating mode.
The values at the outputs for heating and cooling resulting from the PID output value are produced by the configured output scaling.
In the case of controllers with activated cooling output (Config.ActivateCooling = TRUE), enter:
­ A positive substitute output value to output the value at the outputs for heating.
­ A negative substitute output value to output the value at the outputs for cooling.
If the following error occurs, PID_Temp stays in "Substitute output value with error monitoring" mode and outputs the low limit of the PID output value for heating (Config.Output.Heat.PidLowerLimit):
­ 0020000h: Invalid value at SubstituteOutput tag.

170

PID control Function Manual, 10/2018, A5E35300227-AD

6.2.3.2

Using PID_Temp 6.2 Configuring PID_Temp

Output value limits and scaling
Depending on the operating mode, the PID output value (PidOutputSum) is calculated automatically by the PID algorithm or by the manual value (ManualValue) or the configured substitute output value (SubstituteOutput).
The PID output value is limited depending on the configuration:
 If the cooling is deactivated in the basic settings (Config.ActivateCooling = FALSE), the value is limited to the high limit of the PID output value (heating) (Config.Output.Heat.PidUpperLimit) and the low limit of the PID output value (heating) (Config.Output.Heat.PidLowerLimit).
You can configure both limits at the horizontal axis of the scaling characteristic line in the "OutputHeat / OutputCool" section. These are displayed in the "OutputHeat_PWM / OutputCool_PWM" and "OutputHeat_PER / OutputCool_PER" sections, but cannot be changed.
 If the cooling is activated in the basic settings (Config.ActivateCooling = TRUE), the value is limited to the high limit of the PID output value (Config.Output.Heat.PidUpperLimit) and the low limit of the PID output value (cooling) (Config.Output.Cool.PidLowerLimit).
You can configure both limits at the horizontal axis of the scaling characteristic line in the "OutputHeat / OutputCool" section. These are displayed in the "OutputHeat_PWM / OutputCool_PWM" and "OutputHeat_PER / OutputCool_PER" sections, but cannot be changed.
The low limit of the PID output value (heating) (Config.Output.Heat.PidLowerLimit) and the high limit of the PID output value (cooling) (Config.Output.Cool.PidUpperLimit) cannot be changed and have to be assigned the value 0.0.
The PID output value is scaled and output at the outputs for heating and cooling. Scaling can be specified separately for each output and is specified across 2 value pairs each, consisting of a limit value of the PID output value and a scaling value:

Output OutputHeat
OutputHeat_PWM

Value pair Value pair 1
Value pair 2
Value pair 1
Value pair 2

Parameter PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high output value (heating) Config.Output.Heat.UpperScaling PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low output value (heating) Config.Output.Heat.LowerScaling PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high PWM output value (heating) Config.Output.Heat.PwmUpperScaling PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low PWM output value (heating) Config.Output.Heat.PwmLowerScaling

PID control Function Manual, 10/2018, A5E35300227-AD

171

Using PID_Temp 6.2 Configuring PID_Temp

Output OutputHeat_PER
OutputCool
OutputCool_PWM
OutputCool_PER

Value pair Value pair 1 Value pair 2 Value pair 1 Value pair 2 Value pair 1 Value pair 2 Value pair 1 Value pair 2

Parameter PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high analog output value (heating) Config.Output.Heat.PerUpperScaling PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low analog output value (heating) Config.Output.Heat.PerLowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high output value (cooling) Config.Output.Cool.UpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low output value (cooling) Config.Output.Cool.LowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high PWM output value (cooling) Config.Output.Cool.PwmUpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low PWM output value (cooling) Config.Output.Cool.PwmLowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high analog output value (cooling) Config.Output.Cool.PerUpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low analog output value (cooling) Config.Output.Cool.PerLowerScaling

The low limit of PID output value (heating) (Config.Output.Heat.PidLowerLimit) has to have the value 0.0, if the cooling is activated (Config.ActivateCooling = TRUE).
The high limit of PID output value (cooling) (Config.Output.Cool.PidUpperLimit) must always have the value 0.0.

172

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp Example: Output scaling when the OutputHeat output is used (cooling deactivated. The low limit of PID output value (heating) (Config.Output.Heat.PidLowerLimit) may be unequal to 0.0):
Example: Output scaling when the OutputHeat_PWM and OutputCool_PER outputs are used (cooling activated. The low limit of PID output value (heating) (Config.Output.Heat.PidLowerLimit) must be 0.0):

With the exception of the "Inactive" operating mode, the value at an output always lies between its scaled high output value and the scaled low output value, for example for OutputHeat always between the scaled high output value (heating) (Config.Output.Heat.UpperScaling) and the scaled low output value (heating) (Config.Output.Heat.LowerScaling).
If you want to limit the value at the associated output, you therefore have to adapt these scaling values as well.
You can configure the scaling values of an output at the vertical axes of the scaling characteristic line. Each output has two separate scaling values. These can only be changed for OutputHeat_PWM, OutputCool_PWM, OutputHeat_PER and OutputCool_PER if the corresponding output is selected in the basic settings. The cooling has to be activated additionally in the basic settings at all the outputs for cooling.
The trend view in the commissioning dialog box only records the values of OutputHeat and OutputCool, irrespective of the selected output in the basic settings. Therefore, if necessary, adapt the scaling values for OutputHeat or OutputCool if you use OutputHeat_PWM or OutputHeat_PER or OutputCool_PWM or OutputCool_PER and want to use the trend view in the commissioning dialog.

PID control Function Manual, 10/2018, A5E35300227-AD

173

Using PID_Temp 6.2 Configuring PID_Temp

6.2.4

Advanced settings

6.2.4.1

Process value monitoring
Configure a warning high and low limit for the process value in the "Process value monitoring" configuration window. If one of the warning limits is exceeded or undershot during operation, a warning is displayed at the PID_Temp instruction:
 At the InputWarning_H output parameter if the warning high limit has been exceeded
 At the InputWarning_L output parameter if the warning low limit has been undershot
The warning limits must be within the process value high and low limits.
The process value high and low limits are used if you do not enter values.

Example

Process value high limit = 98° C; warning high limit = 90° C Warning low limit = 10° C; process value low limit = 0° C PID_Temp will respond as follows:

Process value > 98 °C  98° C and > 90° C  90° C and  10° C < 10° C and  0° C < 0° C

InputWarning_H TRUE TRUE FALSE FALSE FALSE

InputWarning_L FALSE FALSE FALSE TRUE TRUE

ErrorBits 0001h 0000h 0000h 0000h 0001h

You can configure the response of PID_Temp when the process value high limit or low limit is violated in the output settings.

174

PID control Function Manual, 10/2018, A5E35300227-AD

6.2.4.2

Using PID_Temp 6.2 Configuring PID_Temp
PWM limits
The PID output value PidOutputSum is scaled and transformed via a pulse width modulation into a pulse train that is output at the output parameter OutputHeat_PWM or OutputCool_PWM. The "Sampling time of PID algorithm" represents the time between two calculations of the PID output value. The sampling time is used as time period of the pulse width modulation.
During heating, the PID output value is always calculated in the "Sampling time of PID algorithm for heating".
Calculation of the PID output value during cooling depends on the type of cooling selected in "Basic settings Output":
 If the cooling factor is used, the "Sampling time of PID algorithm for heating" applies.
 If the PID parameter switching is used, the "Sampling time of PID algorithm for cooling" applies.
OutputHeat_PWM and OutputCool_PWM are output in the sampling time PID_Temp (corresponds to the cycle time of the calling OB).
The PID algorithm sampling time for heating or cooling is determined during pretuning or fine tuning. If you set the PID parameters manually, you will also need to configure the PID algorithm sampling time for heating or cooling. The PID_Temp sampling time is equivalent to the cycle time of the calling OB.
The pulse duration is proportional to the PID output value and is always an integer multiple of the PID_Temp sampling time.
Example for OutputHeat_PWM

 PID_Temp sampling time  PID algorithm sampling time for heating  Pulse duration  Break time

PID control Function Manual, 10/2018, A5E35300227-AD

175

Using PID_Temp 6.2 Configuring PID_Temp
The "Minimum ON time" and the "Minimum OFF time" can be set separately for heating and cooling, rounded to an integer multiple of the PID_Temp sampling time. A pulse or a break is never shorter than the minimum ON or OFF time. The inaccuracies this causes are added up and compensated in the next cycle. Example for OutputHeat_PWM PID_Temp sampling time = 100 ms PID algorithm sampling time = 1000 ms Minimum ON time = 200 ms The PID output value PidOutputSum amounts to 15% constantly. The smallest pulse that PID_Temp can output corresponds to 20%. In the first cycle, no pulse is output. In the second cycle, the pulse not output in the first cycle is added to the pulse of the second cycle.



PID_Temp sampling time



PID algorithm sampling time for heating



Minimum ON time

In order to minimize operation frequency and conserve the actuator, extend the minimum ON and OFF times.

If you have selected OutputHeat/OutputCool or OutputHeat_PER/OutputCool_PER as the output in the basic settings, the minimum ON time and the minimum OFF time are not evaluated and cannot be changed.

176

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp
If the "Sampling time of PID algorithm" (Retain.CtrlParams.Heat.Cycle or Retain.CtrlParams.Cool.Cycle) and thus the period duration of the pulse width modulation is very high when OutputHeat_PWM or OutputCool_PWM is used, you can specify a deviating shorter period duration at the parameters Config.Output.Heat.PwmPeriode or Config.Output.Cool.PwmPeriode in order to improve smoothness of the process value (see also AUTOHOTSPOT).
Note The minimum ON and OFF times only affect the output parameters OutputHeat_PWM or OutputCool_PWM and are not used for any pulse generators integrated in the CPU.

6.2.4.3

PID parameters
The PID parameters are displayed in the "PID Parameters" configuration window.
If cooling is activated in the basic settings and PID parameter switching is selected as the method for heating/cooling in the output settings, two parameter sets are available: One for heating and one for cooling.
In this case, the PID algorithm decides on the basis of the calculated output value and the control deviation whether the PID parameters for heating or cooling are used.
If cooling is deactivated or the cooling factor is selected as the method for heating/cooling, the parameter set for heating is always used.
During tuning, the PID parameters are adapted to the controlled system with the exception of the dead zone width that has to be configured manually.
Note
The currently active PID parameters are located in the Retain.CtrlParams structure.
Change the currently active PID parameters only in "Inactive" mode online to prevent malfunction of the PID controller.
If you want to change the PID parameters in "Automatic mode" or "Manual mode" online, change the PID parameters in the CtrlParamsBackUp structure and apply these changes with LoadBackUp = TRUE to the Retain.CtrlParams structure.
Online changes to the PID parameters in "Automatic mode" can result in jumps at the output value.
PID_Temp is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions.

PID control Function Manual, 10/2018, A5E35300227-AD

177

Using PID_Temp 6.2 Configuring PID_Temp
The PID algorithm operates according to the following equation (control zone and dead zone deactivated):

Symbol y Kp
s b w x TI TD a c DeadZone ControlZone

Description Output value of the PID algorithm Proportional gain
Laplace operator Proportional action weighting
Setpoint Process value Integral action time
Derivative action time
Coefficient for derivative-action delay (Derivative delay T1 = a × TD) Derivative action weighting
Dead zone width
Control zone width

Associated parameters of the PID_Temp instruction Retain.CtrlParams.Heat.Gain Retain.CtrlParams.Cool.Gain CoolFactor Retain.CtrlParams.Heat.PWeighting Retain.CtrlParams.Cool.PWeighting CurrentSetpoint ScaledInput Retain.CtrlParams.Heat.Ti Retain.CtrlParams.Cool.Ti Retain.CtrlParams.Heat.Td Retain.CtrlParams.Cool.Td Retain.CtrlParams.Heat.TdFiltRatio Retain.CtrlParams.Cool.TdFiltRatio Retain.CtrlParams.Heat.DWeighting Retain.CtrlParams.Cool.DWeighting Retain.CtrlParams.Heat.DeadZone Retain.CtrlParams.Cool.DeadZone Retain.CtrlParams.Heat.ControlZone Retain.CtrlParams.Cool.ControlZone

178

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp The diagram below illustrates the integration of the parameters into the PID algorithm:
All PID parameters are retentive. If you enter the PID parameters manually, you must completely download PID_Temp (Downloading technology objects to device (Page 44)).

PID control Function Manual, 10/2018, A5E35300227-AD

179

Using PID_Temp 6.2 Configuring PID_Temp
PID_Temp block diagram The following block diagram shows how the PID algorithm is integrated in the PID_Temp.

180

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp
Proportional gain The value specifies the proportional gain of the controller. PID_Temp does not operate with a negative proportional gain and only supports the normal control direction, meaning that an increase in the process value is achieved by an increase in the PID output value (PidOutputSum).
Integral action time The integral action time determines the time behavior of the integral action. The integral action is deactivated with integral action time = 0.0. When the integral action time is changed from a different value to 0.0 online in "Automatic mode", the previous integral action is deleted and the output value jumps.
Derivative action time The derivative action time determines the time behavior of the derivative action. Derivative action is deactivated with derivative action time = 0.0.
Derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient  0.0: Derivative action is effective for one cycle only and therefore almost not effective.  0.5: This value has proved useful in practice for controlled systems with one dominant time constant.  > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Proportional action for setpoint change is fully effective  0.0: Proportional action for setpoint change is not effective The proportional action is always fully effective when the process value is changed.
Derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.  1.0: Derivative action is fully effective upon setpoint change  0.0: Derivative action is not effective upon setpoint change The derivative action is always fully effective when the process value is changed.

PID control Function Manual, 10/2018, A5E35300227-AD

181

Using PID_Temp 6.2 Configuring PID_Temp
PID algorithm sampling time
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of "PID algorithm" represents the time between two calculations of the PID output value. It is calculated during tuning and rounded to a multiple of the PID_Temp sampling time (cycle time of the cyclic interrupt OB). All other functions of PID_Temp are executed at every call.
If you use OutputHeat_PWM or OutputCool_PWM, the sampling time of the PID algorithm is used as the period duration of the pulse width modulation. The accuracy of the output signal is determined by the ratio of the PID algorithm sampling time to the cycle time of the OB. The cycle time should be no more than a tenth of the PID algorithm sampling time.
The sampling time of the PID algorithm that is used as the period duration of the pulse width modulation at OutputCool_PWM depends on the method for heating/cooling selected in "Basic settings Output":
 If the cooling factor is used, the "sampling time of the PID algorithm for heating" also applies to OutputCool_PWM.
 If PID parameter switching is used, the "sampling time PID algorithm for cooling" applies as the period duration for OutputCool_PWM.
If the sampling time of the PID algorithm and thus the period duration of the pulse width modulation is very high when OutputHeat_PWM or OutputCool_PWM is used, you can specify a deviating shorter period duration at the parameters Config.Output.Heat.PwmPeriode or Config.Output.Cool.PwmPeriode in order to improve smoothness of the process value.
Dead zone width
If the process value is affected by noise, the noise can also have an effect on the output value. The output value may fluctuate considerably when controller gain is high and the derivative action is activated. If the process value lies within the dead zone around the setpoint, the control deviation is suppressed so that the PID algorithm does not react and unnecessary fluctuations of the output value are reduced.
The dead zone width for heating or cooling is not set automatically during tuning. You have to correctly configure the dead zone width manually. The dead zone is deactivated by setting the dead zone width = 0.0.
When the dead zone is switched on, the result can be a permanent control deviation (deviation between setpoint and process value). This can have a negative effect on fine tuning.
If cooling is activated in the basic settings and PID parameter switching is selected as the method for heating/cooling in the output settings, the dead zone lies between "Setpoint dead zone width (heating)" and "Setpoint + dead zone width (cooling)".
If cooling is deactivated in the basic settings or the cooling factor is used, the dead zone lies symmetrically between "Setpoint - dead zone width (heating)" and "Setpoint + dead zone width (heating)".

182

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.2 Configuring PID_Temp
If values not equal to 1.0 are configured for the proportional action weighting or the derivative action weighting, setpoint changes even within the dead zone affect the output value. Process value changes within the dead zone do not affect the output value, regardless of the weighting.
Dead zone with deactivated cooling or cooling factor (left) or activated cooling and PID parameter switching (right). The x / horizontal axis displays the control deviation = setpoint process value. The y / vertical axis shows the output signal of the dead zone that is passed to the PID algorithm.
Control zone width If the process value exits the control zone around the setpoint, the minimum or maximum output value is output. This means that the process value reaches the setpoint faster. If the process value lies within the control zone around the setpoint, the output value is calculated by the PID algorithm. The control zone width for heating or cooling is only set automatically during the pretuning, if "PID (temperature)" is selected as the controller structure for cooling or heating. The control zone is deactivated by setting the control zone width = 3.402822e+38. If cooling is deactivated in the basic settings or the cooling factor is used, the control zone lies symmetrically between "Setpoint - control zone width (heating)" and "Setpoint + control zone width (heating)". If cooling is activated in the basic settings and PID parameter switching is selected as the method for heating/cooling in the output settings, the control zone lies between "Setpoint control zone width (heating)" and "Setpoint + control zone width (cooling)".

PID control Function Manual, 10/2018, A5E35300227-AD

183

Using PID_Temp 6.2 Configuring PID_Temp
Control zone with deactivated cooling or cooling factor.

Control zone with activated cooling and PID parameter switching.

Rule for tuning

Select whether PI or PID parameters are to be calculated in the "Controller structure" dropdown list. You can specify the rules for tuning for heating and for tuning for cooling separately.
 PID (temperature)
Calculates PID parameters during pretuning and fine tuning.
Pretuning is designed for temperature processes and results in a slower and rather asymptotic control response with lower overshoot than with the "PID" option. Fine tuning is identical to the "PID" option.
The control zone width is determined automatically during pretuning only if this option is selected.
 PID
Calculates PID parameters during pretuning and fine tuning.
 PI
Calculates PI parameters during pretuning and fine tuning.
 User-defined
The drop-down list displays "User-defined" if you have configured different controller structures for pretuning and fine tuning via a user program or the parameter view.

184

PID control Function Manual, 10/2018, A5E35300227-AD

6.3

Commissioning PID_Temp

Using PID_Temp 6.3 Commissioning PID_Temp

6.3.1

Commissioning
The commissioning window helps you commission the PID controller. You can monitor the values for the setpoint, process value and the output values for heating and cooling along the time axis in the trend view. The following functions are supported in the commissioning window:
 Controller pretuning
 Controller fine tuning
Use fine tuning for fine adjustments to the PID parameters.
 Monitoring the current closed-loop control in the trend view
 Testing the controlled system by specifying a manual PID output value and a substitute setpoint
 Saving the actual values of the PID parameters to an offline project.
All functions require an online connection to the CPU.
The online connection to the CPU is established, if it does not exist already, and operation of the commissioning window is enabled by means of the "Monitor all" or "Start" buttons of the trend view.

Operation of the trend view  Select the desired sampling time in the "Sampling time" drop-down list. All the values of the trend view are updated in the selected sampling time.  Click the "Start" icon in the Measurement group if you want to use the trend view. Value recording is started. The current values for the setpoint, process value and output values for heating and cooling are entered in the trend view.  Click the "Stop" icon if you want to end the trend view. The values recorded in the trend view can continue to be analyzed. Closing the commissioning window will terminate recording in the trend view and delete the recorded values.

PID control Function Manual, 10/2018, A5E35300227-AD

185

Using PID_Temp 6.3 Commissioning PID_Temp

6.3.2

Pretuning
The pretuning determines the process response to a jump change of the output value and searches for the point of inflection. The tuned PID parameters are calculated as a function of the maximum slope and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning.
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. This is most likely the case in operating modes "Inactive" or "Manual mode". The PID parameters are backed up before being recalculated.
PID_Temp offers different pretuning types depending on the configuration:
 Pretuning heating
A jump is output at the output value heating, the PID parameters for heating are calculated and then the setpoint is used as the control variable in automatic mode.
 Pretuning heating and cooling
A jump is output at the output value heating.
As soon as the process value is close to the setpoint, a jump change is output at the output value cooling.
The PID parameters for heating (Retain.CtrlParams.Heat structure) and cooling (Retain.CtrlParams.Cool structure) are calculated and then the setpoint is used as the control variable in automatic mode.
 Pretuning cooling
A jump is output at the output value cooling.
The PID parameters for cooling are calculated and then the setpoint is used as the control variable in automatic mode.
If you want to tune the PID parameters for heating and cooling, you can expect a better control response with "Pretuning heating" followed by "Pretuning cooling" rather than with "Pretuning heating and cooling". However, carrying out pretuning in two steps takes more time.

General requirements
 The PID_Temp instruction is called in a cyclic interrupt OB.
 ManualEnable = FALSE
 Reset = FALSE
 PID_Temp is in one of the following modes: "Inactive", "Manual mode", or "Automatic mode".
 The setpoint and the process value lie within the configured limits (see Process value monitoring (Page 174) configuration).

186

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.3 Commissioning PID_Temp
Requirements for pretuning heating  The difference between setpoint and process value is greater than 30% of the difference between process value high limit and process value low limit.  The distance between the setpoint and the process value is greater than 50% of the setpoint.  The setpoint is greater than the process value.
Requirements for pretuning heating and cooling  The cooling output in the "Basic settings" is activated (Config.ActivateCooling = TRUE).  The PID parameter switching in the "Basic settings of output value" is activated (Config.AdvancedCooling = TRUE).  The difference between setpoint and process value is greater than 30% of the difference between process value high limit and process value low limit.  The distance between the setpoint and the process value is greater than 50% of the setpoint.  The setpoint is greater than the process value.
Requirements for pretuning cooling  The cooling output in the "Basic settings" is activated (Config.ActivateCooling = TRUE).  The PID parameter switching in the "Basic settings of output value" is activated (Config.AdvancedCooling = TRUE).  "Pretuning heating" or "Pretuning heating and cooling" has been carried out successfully (PIDSelfTune.SUT.ProcParHeatOk = TRUE). The same setpoint should be used for all tunings.  The difference between setpoint and process value is smaller than 5% of the difference between process value high limit and process value low limit.

PID control Function Manual, 10/2018, A5E35300227-AD

187

Using PID_Temp 6.3 Commissioning PID_Temp

Procedure

To perform pretuning, follow these steps: 1. Double-click the "PID_Temp > Commissioning" entry in the project tree.
2. Activate the "Monitor all" button or start the trend view. An online connection will be established.
3. Select the desired pretuning entry from the "Tuning mode" drop-down list. 4. Click the "Start" icon.
­ Pretuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred.
The progress bar indicates the progress of the current step.
Note Click the "Stop" icon when the progress bar ("Progress" tag) has not changed for a long period and it is to be assumed that the tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning.

Result

If pretuning was performed without an error message, the PID parameters have been tuned. PID_Temp switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU.
If pretuning is not possible, PID_Temp responds with the configured reaction to errors.

188

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.3 Commissioning PID_Temp

6.3.3

Fine tuning
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are tuned for the operating point from the amplitude and frequency of this oscillation. The PID parameters are recalculated from the results. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning.
PID_Temp automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before being recalculated.
PID_Temp offers different fine tuning types depending on the configuration:
 Fine tuning heating:
PID_Temp generates an oscillation of the process value with periodic changes at the output value heating and calculates the PID parameters for heating.
 Fine tuning cooling:
PID_Temp generates an oscillation of the process value with periodic changes at the output value cooling and calculates the PID parameters for cooling.

Temporary tuning offset for heating/cooling controllers
If PID_Temp is used as a heating/cooling controller (Config.ActivateCooling = TRUE), the PID output value (PidOutputSum) at the setpoint has to fulfill the following requirements so that process value oscillation can be generated and fine tuning can be carried out successfully:
 Positive PID output value for fine tuning heating
 Negative PID output value for fine tuning cooling
If this condition is not fulfilled, you can specify a temporary offset for fine tuning that is output at the opposing output.
 Offset for cooling output (PIDSelfTune.TIR.OutputOffsetCool) with fine tuning heating.
Before starting tuning, enter a negative tuning offset cooling that is smaller than the PID output value (PidOutputSum) at the setpoint in the stationary state.
 Offset for heating output (PIDSelfTune.TIR.OutputOffsetHeat) at fine tuning cooling
Before starting tuning, enter a positive tuning offset heating that is greater than the PID output value (PidOutputSum) at the setpoint in the stationary state.
The defined offset is balanced by the PID algorithm so that the process value remains at the setpoint. The height of the offset allows the PID output value to be adapted correspondingly so that it fulfills the requirement mentioned above.
To avoid larger overshoots of the process value when defining the offset, it can also be increased in several steps.
If PID_Temp exits the fine tuning mode, the tuning offset is reset.

PID control Function Manual, 10/2018, A5E35300227-AD

189

Using PID_Temp 6.3 Commissioning PID_Temp
Example: Specification of an offset for fine tuning cooling  Without offset ­ Setpoint = Process value (ScaledInput) = 80 °C ­ PID output value (PidOutputSum) = 30.0 ­ Output value heating (OutputHeat) = 30.0 ­ Output value cooling (OutputCool) = 0.0 Oscillation of the process value around the setpoint cannot be generated with the cooling output alone. Fine tuning would fail here.  With offset for heating output (PIDSelfTune.TIR.OutputOffsetHeat) = 80.0 ­ Setpoint = Process value (ScaledInput) = 80 °C ­ PID output value (PidOutputSum) = -50.0 ­ Output value heating (OutputHeat) = 80.0 ­ Output value cooling (OutputCool) = -50.0 Thanks to the specification of an offset for the heating output, the cooling output can now generate oscillation of the process value around the setpoint. Fine tuning can now be carried out successfully.
General requirements  The PID_Temp instruction is called in a cyclic interrupt OB.  ManualEnable = FALSE  Reset = FALSE  The setpoint and the process value lie within the configured limits (see "Process value settings" configuration).  The control loop has stabilized at the operating point. The operating point is reached when the process value corresponds to the setpoint. When the dead zone is switched on, the result can be a permanent control deviation (deviation between setpoint and actual value). This can have a negative effect on fine tuning.  No disturbances are expected.  PID_Temp is in inactive mode, automatic mode or manual mode.
Requirements for fine tuning heating  Heat.EnableTuning = TRUE  Cool.EnableTuning = FALSE  If PID_Temp is configured as a heating-and-cooling controller (Config.ActivateCooling = TRUE), the heating output has to be active at the operating point where tuning is to be carried out. PidOutputSum > 0.0 (see tuning offset)

190

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.3 Commissioning PID_Temp

Requirements for fine tuning cooling  Heat.EnableTuning = FALSE  Cool.EnableTuning = TRUE  The cooling output is activated (Config.ActivateCooling = TRUE).  The PID parameter switching is activated (Config.AdvancedCooling = TRUE).  The cooling output has to be active at the operating point where tuning is to be carried out. PidOutputSum < 0.0 (see tuning offset)

Process depends on initial situation
Fine tuning can be started from the following operating modes: "Inactive", "automatic mode", or "manual mode".
Fine tuning proceeds as follows when started from:
 Automatic mode with PIDSelfTune.TIR.RunIn = FALSE (default)
Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.
PID_Temp controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
 Inactive, manual mode or automatic mode with PIDSelfTune.TIR.RunIn = TRUE
An attempt is made to reach the setpoint with the minimum or maximum output value (two-point control):
­ With minimum or maximum output value heating at fine tuning heating.
­ With minimum or maximum output value cooling for fine tuning cooling.
This can produce increased overshoot. Fine tuning starts when the setpoint is reached.
If the setpoint cannot be reached, PID_Temp does not automatically abort tuning.

Procedure

To perform fine tuning, follow these steps: 1. Double-click the "PID_Temp > Commissioning" entry in the project tree. 2. Activate the "Monitor all" button or start the trend view.
An online connection will be established. 3. Select the desired fine tuning entry from the "Tuning mode" drop-down list.

PID control Function Manual, 10/2018, A5E35300227-AD

191

Using PID_Temp 6.3 Commissioning PID_Temp
4. If required (see tuning offset), specify a tuning offset and wait until the stationary state is reached again.
5. Click the "Start" icon. ­ The process of fine tuning is started. ­ The "Status" field displays the current steps and any errors that may have occurred. The progress bar indicates the progress of the current step.
Note Click the "Stop" icon in the "Tuning mode" group if the progress bar ("Progress" tag) has not changed for a long period and it is to be assumed that the tuning function is blocked. Check the configuration of the technology object and, if necessary, restart controller tuning. In the following phases in particular, tuning is not aborted automatically if the setpoint cannot be reached. · "Attempting to reach setpoint for heating with two-point control." · "Attempting to reach setpoint for cooling with two-point control."

Result

If fine tuning was performed without errors, the PID parameters have been tuned. PID_Temp switches to automatic mode and uses the tuned parameters. The tuned PID parameters will be retained during power OFF and a restart of the CPU.
If errors occurred during fine tuning, PID_Temp responds with the configured response to errors.

192

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.3 Commissioning PID_Temp

6.3.4

"Manual" mode
The following section describes how you can use "Manual mode" in the commissioning window of the "PID_Temp" technology object.
Manual mode is also possible when an error is pending.

Requirement

 The "PID_Temp" instruction is called in a cyclic interrupt OB.  An online connection to the CPU has been established.  The CPU is in "RUN" mode.

Procedure

If you want to test the controlled system by specifying a manual value, use "Manual mode" in the commissioning window. To define a manual value, follow these steps: 1. Double-click the "PID_Temp > Commissioning" entry in the project tree.
2. Activate the "Monitor all" button or start the trend view. An online connection will be established.
3. Select the "Manual mode" check box in the "Online status of controller" area. PID_Temp operates in manual mode. The most recent current output value remains in effect.
4. Enter the manual value in the editable field as a % value. If cooling is activated in the basic settings, enter the manual value as follows: ­ Enter a positive manual value to output the value at the outputs for heating. ­ Enter a negative manual value to output the value at the outputs for cooling.
5. Click the icon.

Result

The manual value is written to the CPU and immediately goes into effect.
Clear the "Manual mode" check box if the output value is to be specified again by the PID controller.
The switchover to automatic mode is bumpless.

PID control Function Manual, 10/2018, A5E35300227-AD

193

Using PID_Temp 6.3 Commissioning PID_Temp

6.3.5

Substitute setpoint
The following section describes how you can use the substitute setpoint in the commissioning window of the "PID_Temp" technology object.

Requirement

 The "PID_Temp" instruction is called in a cyclic interrupt OB.  An online connection to the CPU has been established.  The CPU is in "RUN" mode.

Procedure

If you want to use a different value as the setpoint than that specified at the "Setpoint" parameter (for example to tune a slave in a cascade), use the substitute setpoint in the commissioning window. Proceed as follows to specify a substitute setpoint: 1. Double-click the "PID_Temp > Commissioning" entry in the project tree.
2. Activate the "Monitor all" button or start the trend view.
An online connection will be established. 3. Select the "Subst.Setpoint" check box in the "Online status of controller" section.
The substitute setpoint (SubstituteSetpoint tag) is initialized with the most recently updated setpoint and now used. 4. Enter the substitute setpoint in the editable field. 5. Click the icon.

Result

The substitute setpoint is written to the CPU and immediately goes into effect.
Clear the "Subst.Setpoint" check box if the value at the "Setpoint" parameter is to be used again as setpoint.
The switchover is not bumpless.

6.3.6

Cascade commissioning
Information about cascade commissioning with PID_Temp is available under Commissioning (Page 201).

194

PID control Function Manual, 10/2018, A5E35300227-AD

6.4
6.4.1

Cascade control with PID_Temp

Using PID_Temp 6.4 Cascade control with PID_Temp

Introduction
In cascade control, several control loops are nested within each other. In the process, slaves receive their setpoint (Setpoint) from the output value (OutputHeat) of the respective higherlevel master.
A prerequisite for establishing a cascade control system is that the controlled system can be divided into subsystems, each with its own measured variable.
Setpoint specification for the controlled variable is carried out at the outmost master.
The output value of the innermost slave is applied to the actuator and thus acts on the controlled system.
The following major advantages result from the use of a cascade control system in comparison with a single-loop control system:
 Thanks to the additional subordinate control loops, disturbances which occur there are corrected quickly. Their influence on the controlled variable is reduced considerably. The disturbance behavior is thus improved.
 The subordinate control loops act in linearizing form. The negative effects of such nonlinearities on the controlled variable are thus moderated.
PID_Temp offers the following functionality especially for use in cascade control systems:
 Specification of a substitute setpoint
 Exchange of status information between master and slave (for example, current operating mode)
 Different Anti-Wind-Up modes (response of the master to limitation of its slave)

PID control Function Manual, 10/2018, A5E35300227-AD

195

Using PID_Temp 6.4 Cascade control with PID_Temp

Example

The following block diagram shows a cascade control system with PID_Temp using the simplified example of a chocolate melting unit:

FAQ See also

The PID_Temp_1 master compares the process value of the chocolate temperature (TempChocolate) with the setpoint specification by the user at the Setpoint parameter. Its output value OutputHeat forms the setpoint of the slave PID_Temp_2. PID_Temp_2 attempts to regulate the process value of the water-bath temperature (TempWater) to this setpoint. The output value of PID_Temp_2 acts directly on the actuator of the controlled system (heating of the water bath) and thus influences the water-bath temperature. The water-bath temperature in turn has an effect on the chocolate temperature.
For more information, see the following FAQs in the Siemens Industry Online Support:  Entry ID 103526819 (https://support.industry.siemens.com/cs/ww/en/view/103526819)
Program creation (Page 197)

196

PID control Function Manual, 10/2018, A5E35300227-AD

6.4.2

Using PID_Temp 6.4 Cascade control with PID_Temp
Program creation
Observe the following points during program creation:
 Number of PID_Temp instances
The number of different PID_Temp instances called up in a cyclic interrupt OB has to agree with the number of concatenated measured variables in the process.
There are two concatenated measured variables in the example: TempChocolate and TempWater. Therefore two PID_Temp instances are required.
 Call sequence
A master has to be called before its slaves in the same cyclic interrupt OB.
The outermost master at which the user setpoint is specified is called first.
The slave whose setpoint is specified by the outermost master is called next, etc.
The innermost slave that acts on the actuator of the process with its output value is called last.
In the example, PID_Temp_1 is called before PID_Temp_2.
 Interconnection of the measured variables
The outermost master is interconnected with the outermost measured variable that is to be regulated to the user setpoint.
The innermost slave is interconnected with the innermost measured variable that is influenced directly by the actuator.
Interconnection of the measured variables with PID_Temp is carried out with the parameters Input or Input_PER.
In the example, the outermost measured variable TempChocolate is interconnected with PID_Temp_1 and the innermost measured variable TempWater with PID_Temp_2.
 Interconnection of the output value of the master to the setpoint of the slave
The output value (OutputHeat) of a master has to be assigned to the setpoint (Setpoint) of its slave.
This interconnection can be carried out in the programming editor or automatically in the Inspector window of the slave in the basic settings via the selection of the master.
If required, you can insert your own filter or scaling functions, for example in order to adapt the output value range of the master to the setpoint/process value range of the slave.
In the example, OutputHeat of PID_Temp_1 is assigned to Setpoint of PID_Temp_2.

PID control Function Manual, 10/2018, A5E35300227-AD

197

Using PID_Temp 6.4 Cascade control with PID_Temp

 Interconnection of the interface for information exchange between master and slave
The "Slave" parameter of a master has to be assigned to the "Master" parameter of all its directly subordinate slaves (which receive their setpoint from this master). The assignment should be carried out via the interface of the slave in order to allow the interconnection of a master with multiple slaves and the display of the interconnection in the Inspector window of the slave in the basic settings.
This interconnection can be carried out in the programming editor or automatically in the Inspector window of the slave in the basic settings via the selection of the master.
The Anti-Wind-Up functionality and the evaluation of the slave operating modes at the master can only function correctly if this interconnection is carried out.
In the example, the "Slave" parameter of PID_Temp_1 is assigned to the "Master" parameter of PID_Temp_2.
Program code of the example using SCL (without assignment of the output value of the slave to the actuator):
"PID_Temp_1"(Input:="TempChocolate");
"PID_Temp_2"(Input:="TempWater", Master := "PID_Temp_1".Slave, Setpoint := "PID_Temp_1".OutputHeat);

See also

PID_Temp ActivateRecoverMode tag (Page 458)

198

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.4 Cascade control with PID_Temp

6.4.3

Configuration
You can carry out the configuration via your user program, the configuration editor or the Inspector window of the PID_Temp call.
When using PID_Temp in a cascade control system, ensure the correct configuration of the settings specified below.
If a PID_Temp instance receives its setpoint from a superior master controller and outputs its output value in turn to a subordinate slave controller, this PID_Temp instance is both a master controller and a slave controller simultaneously. Both configurations listed below have to be carried out for such a PID_Temp instance. This is the case, for example, for the middle PID_Temp instance in a cascade control system with three concatenated measured variables and three PID_Temp instances.

Configuration of a master

Setting in the configuration editor or Inspector window Basic settings  Cascade:
Activate "Controller is master" check box
Basic settings  Cascade:
Number of slaves
Basic settings  Input/output parameters:
Selection of the output value (heating) = OutputHeat
Basic settings  Input/output parameters:
Clear "Activate cooling" check box

DB parameter Config.Cascade.IsMaster = TRUE Config.Cascade.CountSlaves Config.Output.Heat.Select = 0
Config.ActivateCooling = FALSE

Explanation
Activates this controller as a master in a cascade
Number of directly subordinate slaves that receive their setpoint directly from this master The master only uses the output parameter OutputHeat. OutputHeat_PWM and OutputHeat_PER are deactivated. The cooling has to be deactivated at a master.

PID control Function Manual, 10/2018, A5E35300227-AD

199

Using PID_Temp 6.4 Cascade control with PID_Temp

Setting in the configuration editor or Inspector window

DB parameter

Output settings  Output limits and scaling  OutputHeat / OutputCool:

Config.Output.Heat .PidLowerLimit,

PID output value low limit (heating), PID output value high limit (heating), Scaled low output value (heating), Scaled high output value (heating)

Config.Output.Heat .PidUpperLimit,
Config.Output.Heat .LowerScaling,

Config.Output.Heat .UpperScaling

This tag is not available in the Inspector Config.Cascade window or in the functional view of the .AntiWindUpMode configuration editor.

You can change it via the parameter view of the configuration editor.

Configuration of a slave

Setting in the configuration editor or Inspector window
Basic settings  Cascade:
Select the "Controller is slave" check box

DB parameter
Config.Cascade.IsSlave = TRUE

Explanation
If no own scaling function is used when assigning OutputHeat of the master to Setpoint of the slave, it may be necessary to adapt the output value limits and the output scaling of the master to the setpoint/process value range of the slave.
The Anti-Wind-Up mode determines how the integral action of this master is treated if directly subordinate slaves reach their output value limits. Options are: · AntiWindUpMode = 0:
The AntiWindUp functionality is deactivated. The master does not react to the limitation of its slaves. · AntiWindUpMode = 1 (default): The integral action of the master is reduced in the relationship "Slaves in limitation/Number of slaves". This reduces the effects of the limitation on the control behavior. · AntiWindUpMode = 2: The integral action of the master is held as soon as a slave is in limitation.
Explanation
Activates this controller as a slave in a cascade

200

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.4 Cascade control with PID_Temp

6.4.4

Commissioning
After compiling and loading of the program, you can start commissioning of the cascade control system.
Begin with the innermost slave at commissioning (implementation of tuning or change to automatic mode with existing PID parameters) and continue outwards until the outermost master has been reached.
In the above example, commissioning starts with PID_Temp_2 and is continued with PID_Temp_1.

Tuning the slave
Tuning of PID_Temp requires a constant setpoint. Therefore, activate the substitute setpoint of a slave (SubstituteSetpoint and SubstituteSetpointOn tags) to tune the slave or set the associated master to manual mode with a corresponding manual value. This ensures that the setpoint of the slave remains constant during tuning.

Tuning the master
In order for a master to influence the process or to carry out tuning, all the downstream slaves have to be in automatic mode and their substitute setpoint has to be deactivated. A master evaluates these conditions through the interface for information exchange between master and slave (Master parameter and Slave parameter) and displays the current state at the AllSlaveAutomaticState and NoSlaveSubstituteSetpoint tags. Corresponding status messages are output in the commissioning editor.

Status message in the commissioning editor of the master One or more slaves are not in automatic mode.
One or more slaves have activated the substitute setpoint.
One or more slaves are not in automatic mode and have activated the substitute setpoint.

DB parameter of the master
AllSlaveAutomaticState = FALSE, NoSlaveSubstituteSetpoint = TRUE AllSlaveAutomaticState = TRUE, NoSlaveSubstituteSetpoint = FALSE AllSlaveAutomaticState = FALSE, NoSlaveSubstituteSetpoint = FALSE

Correction
First, carry out commissioning of all downstream slaves. Ensure that the following conditions are fulfilled before carrying out tuning or activating manual mode or automatic mode of the master:
· All downstream slaves are in automatic mode (state = 3).
· All downstream slaves have deactivated the substitute setpoint (SubstituteSetpointOn = FALSE).

If pretuning or fine tuning is started for a master, PID_Temp aborts tuning in the following cases and displays an error with ErrorBits = DW#16#0200000:

 One or more slaves are not in automatic mode (AllSlaveAutomaticState = FALSE)

 One or more slaves have activated the substitute setpoint (NoSlaveSubstituteSetpoint = FALSE).

The subsequent operating mode changeover depends on ActivateRecoverMode.

PID control Function Manual, 10/2018, A5E35300227-AD

201

Using PID_Temp 6.4 Cascade control with PID_Temp

6.4.5

Substitute setpoint
In order to specify a setpoint, PID_Temp offers a substitute setpoint at the SubstituteSetpoint tag in addition to the Setpoint parameter. This can be activated by setting SubstituteSetpointOn = TRUE or by selecting the corresponding check box in the commissioning editor.
The substitute setpoint allows you to specify the setpoint temporarily directly at the slave, for example during commissioning or tuning.
In this case, the interconnection of the output value of the master with the setpoint of the slave that is required for normal operation of the cascade control system does not have to be changed in the program
In order for a master to influence the process or to carry out tuning, the substitute setpoint has to be deactivated at all downstream slaves.
You can monitor the currently effective setpoint as it is used by the PID algorithm for calculation at the CurrentSetpoint tag.

6.4.6

Operating modes and fault response
The master or slave of a PID_Temp instance does not change the operating mode of this PID_Temp instance.
If a fault occurs at one of its slaves, the master remains in its current operating mode.
If a fault occurs at its master, the slave remains in its current operating mode. However, further operation of the slave then depends on the fault and the configured fault response of the master since the output value of the master is used as the setpoint of the slave:
 If ActivateRecoverMode = TRUE is configured at the master. and the fault does not prevent the calculation of OutputHeat, the fault does not have any effect on the slave.
 If ActivateRecoverMode = TRUE is configured at the master and the fault prevents the calculation of OutputHeat, the master outputs the last output value or the configured substitute output value SubstituteOutput, depending on SetSubstituteOutput. This is then used by the slave as the setpoint.
PID_Temp is preconfigured so that the substitute output value 0.0 is output in this case (ActivateRecoverMode = TRUE, SetSubstituteOutput = TRUE, SubstituteOutput = 0.0). Configure a suitable substitute output value for your application or activate the use of the last valid PID output value (SetSubstituteOutput = FALSE).
 If ActivateRecoverMode = FALSE is configured at the master, the master changes to the "Inactive" mode when a fault occurs and outputs OutputHeat = 0.0. The slave then uses 0.0 as the setpoint.
The fault response is located in the output settings in the configuration editor.

202

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.5 Multi-zone controlling with PID_Temp

6.5

Multi-zone controlling with PID_Temp

Introduction

In a multi-zone control system, several sections, so-called zones, of a plant are controlled simultaneously to different temperatures. A multi-zone control system is characterized by the mutual influence of the temperature zones through thermal coupling, i.e. the process value of one zone can influence the process value of a different zone through thermal coupling. The strength that this influence has depends on the structure of the plant and the selected operating points of the zones.
Example: Extrusion plant as it is used, for example, in plastics processing.
The substance mixture that passes through the extruder has to be controlled to different temperatures for optimal processing. For example, different temperatures can be required at the filling point of the extruder than at the outlet nozzle. The individual temperature zones mutually influence each other through thermal coupling.
When PID_Temp is used in multi-zone control systems, each temperature zone is controlled by a separate PID_Temp instance.
Observe the following explanations if you want to use the PID_Temp in a multi-zone control system.

Separate pretuning for heating and cooling
Initial commissioning of a plant as a rule begins with the carrying out of pretuning in order to carry out initial setting of the PID parameters and control to the operating point. The pretuning for multi-zone control systems is often carried out simultaneously for all zones.
PID_Temp offers the possibility of carrying out pretuning for heating and cooling in one step (Mode = 1, Heat.EnableTuning = TRUE, Cool.EnableTuning = TRUE) for controllers with activated cooling and PID parameter switching as the method for heating/cooling (Config.ActivateCooling = TRUE, Config.AdvancedCooling = TRUE).
However, it is advisable not to use this tuning for simultaneous pretuning of several PID_Temp instances in a multi-zone control system. Instead, first carry out the pretuning for heating (Mode = 1, Heat.EnableTuning = TRUE, Cool.EnableTuning = FALSE) and the pretuning for cooling (Mode = 1, Heat.EnableTuning = FALSE, Cool.EnableTuning = TRUE) separately.
Pretuning for cooling should not be started until all zones have completed pretuning for heating and have reached their operating points.
This reduces mutual influencing through thermal coupling between the zones during tuning.

Adapting the delay time
If PID_Temp is used in a multi-zone control system with strong thermal couplings between the zones, you should ensure that the adaption of the delay time is deactivated for pretuning with PIDSelfTune.SUT.AdaptDelayTime = 0. Otherwise, the determination of the delay time can be incorrect if the cooling of a zone is prevented by the thermal influence of other zones during the adapting of the delay time (heating is deactivated in this phase).

PID control Function Manual, 10/2018, A5E35300227-AD

203

Using PID_Temp 6.5 Multi-zone controlling with PID_Temp

Temporary deactivation of cooling
PID_Temp offers the possibility of deactivating cooling temporarily in automatic mode for controllers with active cooling (Config.ActivateCooling = TRUE) by setting DisableCooling = TRUE.
This ensures that this controller does not cool in automatic mode during commissioning while the controllers of other zones have not yet completed tuning of heating. The tuning could otherwise be influenced negatively by the thermal coupling between the zones.

Procedure

You can proceed as follows during the commissioning of multi-zone control systems with relevant thermal couplings:
1. Set DisableCooling = TRUE for all controllers with activated cooling.
2. Set PIDSelfTune.SUT.AdaptDelayTime = 0 for all controllers.
3. Specify the desired setpoints (Setpoint parameter) and start pretuning for heating (Mode = 1, Heat.EnableTuning = TRUE, Cool.EnableTuning = FALSE) simultaneously for all controllers.
4. Wait until all the controllers have completed pretuning for heating.
5. Set DisableCooling = FALSE for all controllers with activated cooling.
6. Wait until the process values of all the zones are steady and close to the respective setpoint.
If the setpoint cannot be reached permanently for a zone, the heating or cooling actuator is too weak.
7. Start pretuning for cooling (Mode = 1, Heat.EnableTuning = FALSE, Cool.EnableTuning = TRUE) for all controllers with activated cooling.

Note Limit violation of the process value
If the cooling is deactivated in automatic mode with DisableCooling = TRUE, this can cause the process value to exceed the setpoint and the process value limits while DisableCooling = TRUE. Observe the process values and intervene, if appropriate, if you use DisableCooling.
Note Multi-zone control systems
For multi-zone control systems, the thermal couplings between the zones can result in increased overshoots, permanent or temporary violation of limits and permanent or temporary control deviations during commissioning or operation. Observe the process values and be ready to intervene. Depending on the system, it can be necessary to deviate from the procedure described above.

204

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.5 Multi-zone controlling with PID_Temp

Synchronization of several fine tuning processes
If fine tuning is started from automatic mode with PIDSelfTune.TIR.RunIn = FALSE, PID_Temp tries to reach the setpoint with PID controlling and the current PID parameters. The actual tuning does not start until the setpoint is reached. The time required to reach the setpoint can be different for the individual zones of a multi-zone control system.
If you want to carry out fine tuning for several zones simultaneously, PID_Temp offers the possibility to synchronize these by waiting with the further tuning steps after the setpoint has been reached.

Procedure

This ensures that all the controllers have reached their setpoint when the actual tuning steps start. This reduces mutual influencing through thermal coupling between the zones during tuning.
Proceed as follows for controllers for whose zones you want to carry out fine tuning simultaneously:
1. Set PIDSelfTune.TIR.WaitForControlIn = TRUE for all controllers.
These controllers have to be in automatic mode with PIDSelfTune.TIR.RunIn = FALSE.
2. Specify the desired setpoints (Setpoint parameters) and start fine tuning for all controllers.
3. Wait until PIDSelfTune.TIR.ControlInReady = TRUE at all controllers.
4. Set PIDSelfTune.TIR.FinishControlIn = TRUE for all controllers.
All controllers then start the actual tuning simultaneously.

PID control Function Manual, 10/2018, A5E35300227-AD

205

Using PID_Temp 6.6 Override control with PID_Temp

6.6

Override control with PID_Temp

Override control
In case of override control, two or more controllers share one actuator. Only one controller has access to the actuator at any time and influences the process.
A logic operation decides which controller has access to the actuator. This decision is often made based on a comparison of the output values of all controllers, for example, in case of a maximum selection, the controller with the largest output value gets access to the actuator.
The selection based on the output value requires that all controllers operate in automatic mode. The controllers that do not have an effect on the actuator are updated. This is necessary to prevent windup effects and their negative impacts on the control response and the switchover between the controllers.
PID_Temp supports override controls as of version 1.1 by offering a simple process for updating the controllers that are not active: By using the tags OverwriteInitialOutputValue and PIDCtrl.PIDInit, you can pre-assign the integral action of the controller in automatic mode as though the PID algorithm had calculated PidOutputSum = OverwriteInititalOutputValue for the PID output value in the last cycle. To do this, OverwriteInitialOutputValue is interconnected with the PID output value of the controller that currently has access to the actuator. By setting the bit PIDCtrl.PIDInit, you trigger the preassignment of the integral action as well as the restart of the controller cycle and the PWM period. The subsequent calculation of the PID output value in the current cycle takes place based on the pre-assigned (and synchronized for all controllers) integral action as well as the proportional action and integral action from the current control deviation. The derivative action is not active during the call with PIDCtrl.PIDInit = TRUE and therefore does not contribute to the output value.
This procedure ensures that the calculation of the current PID output value and thus the decision on which controller is to have access to the actuator is only based on the current process state and the PI parameters. Windup effects for controllers that are not active and thus incorrect decisions of the switchover logic are prevented.

206

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.6 Override control with PID_Temp

Requirement

 PIDCtrl.PIDInit is only effective if the integral action is activated (tags Retain.CtrlParams.Heat.Ti and Retain.CtrlParams.Cool.Ti > 0.0).
 You must assign PIDCtrl.PIDInit and OverwriteInitialOutputValue in your user program yourself (see example below). PID_Temp does not automatically change these tags.
 PIDCtrl.PIDInit is only effective when PID_Temp is in automatic mode (parameter State = 3).
 If possible, select the sampling time of the PID algorithm ( Retain.CtrlParams.Heat.Cycle and Retain.CtrlParams.Cool.Cycle tags) so that it is identical for all controllers, and call all controllers in the same cyclic interrupt OB. In this way, you ensure that the switchover does not take place within a controller cycle or a PWM period.

Note Constant adaptation of the output value limits
Instead of the active updating of the controllers without access to the actuator described here, this is implemented alternatively by constant adaptation of the output value limits in other controller systems.
This is not possible with PID_Temp, because a change of the output value limits is not supported in automatic mode.

PID control Function Manual, 10/2018, A5E35300227-AD

207

Using PID_Temp 6.6 Override control with PID_Temp
Example: Control of a large boiler PID_Temp is used for control of a large boiler. The main goal is to control the temperature Input1. The controller PID_Temp_1 is used for this purpose. In addition, the temperature Input2 is to be kept below a high limit at an additional measuring point with the limiting controller PID_Temp_2. Both temperatures are influenced by only one heater. The output value of the controller corresponds to the heating power.

208

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.6 Override control with PID_Temp
The heater is controlled with the pulse-width modulated output value of PID_Temp (parameter OutputHeat_PWM) by writing the program tag ActuatorInput. The setpoint for the temperature Input1 is specified at the parameter PID_Temp_1.Setpoint. The temperature high limit for the additional measuring point is specified as setpoint at the parameter PID_Temp_2.Setpoint.

Both controllers must share one heater as shared actuator. The logic that decides which controller gets access to the actuator is implemented by a minimum selection of the PID output value (in Real format, parameter PidOutputSum) in this case. Because the PID output value corresponds to the heating power, the controller that requires lower heating power gets the control.
In normal operation of the plant, the process value of the main controlled variable corresponds to the setpoint. The main controller PID_Temp_1 has settled on a stationary PID output value PID_Temp_1.PidOutputSum. The process value of the limiting controller Input2 in normal operation is significantly below the high limit that is specified as setpoint for für PID_Temp_2. The limiting controller therefore wants to increase the heating power to increase its process value, which means it will calculate a PID output value PID_Temp_2.PidOutputSum that is greater than the main controller PID_Temp_1.PidOutputSum. The minimum selection of the switchover logic therefore gives the main controller PID_Temp_1 continued access to the actuator. In addition, it is ensured that PID_Temp_2 is updated by means of the assignments PID_Temp_2.OverwriteInitialOutputValue = PID_Temp_1.PidOutputSum and PID_Temp_2.PIDCtrl.PIDInit = TRUE.
If Input2 now approaches the high limit or exceeds it, for example due to a fault, the limiting controller PID_Temp_2 calculates a smaller PID output value to restrict the heating power and thus reduce Input2. If PID_Temp_2.PidOutputSum is smaller than PID_Temp_1.PidOutputSum, the limiting controller PID_Temp_2 receives access to the actuator through the minimum selection and reduces the heating power. It is ensured that PID_Temp_1 is updated by means of the assignments PID_Temp_1.OverwriteInitialOutputValue = PID_Temp_2.PidOutputSum and PID_Temp_1.PIDCtrl.PIDInit = TRUE.

PID control Function Manual, 10/2018, A5E35300227-AD

209

Using PID_Temp 6.6 Override control with PID_Temp
The temperature at the additional measuring point Input2 drops. The temperature of the main controlled variable Input1 drops as well and cannot be held at the setpoint any longer. Once the fault has been remedied, the Input2 will continue to drop and the heating power is further increased by the limiting controller. As soon as the main controller has calculated a lower heating power as output value, the plant returns to normal operation so that the main controller PID_Temp_1 once again has access to the actuator. This example can be implemented with the following SCL program code:
"PID Temp 1"(Input := "Input1"); "PID Temp 2"(Input := "Input2"); IF "PID Temp 1".PidOutputSum <= "PID Temp 2".PidOutputSum THEN
"ActuatorInput" := "PID_Temp_1".OutputHeat_PWM;
"PID_Temp_1".PIDCtrl.PIDInit := FALSE;
"PID_Temp_2".PIDCtrl.PIDInit := TRUE;
"PID_Temp_2".OverwriteInitialOutputValue := "PID_Temp_1".PidOutputSum;
ELSE "ActuatorInput" := "PID_Temp_2".OutputHeat_PWM;
"PID_Temp_1".PIDCtrl.PIDInit := TRUE;
"PID_Temp_2".PIDCtrl.PIDInit := FALSE;
"PID_Temp_1".OverwriteInitialOutputValue := "PID_Temp_2".PidOutputSum;
END IF;

210

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID_Temp 6.7 Simulating PID_Temp with PLCSIM

6.7

Simulating PID_Temp with PLCSIM

Note Simulation with PLCSIM
The simulation of PID_Temp with PLCSIM for CPU S7-1200 is not supported.
PID_TEMP can be simulated only for CPU S7-1500 with PLCSIM.
For the simulation with PLCSIM, the time behavior of the simulated PLC is not exactly identical to that of a "real" PLC. The actual cycle clock of a cyclic interrupt OB can have larger fluctuations with a simulated PLC than with "real" PLCs.
In the standard configuration, PID_Temp determines the time between calls automatically and monitors them for fluctuations.
For the simulation of PID_Temp with PLCSIM, for example, a sampling time error (ErrorBits = DW#16#00000800) can therefore be detected.
This results in ongoing tuning being aborted.
The response in automatic mode depends on the value of the ActivateRecoverMode tag.
To prevent this from happening, you should configure PID_Temp for simulation with PLCSIM as follows: · CycleTime.EnEstimation = FALSE · CycleTime.EnMonitoring = FALSE · CycleTime.Value: Assign the cycle clock of the calling cyclic interrupt OB in seconds to
this tag.

PID control Function Manual, 10/2018, A5E35300227-AD

211

Using PID basic functions

7

7.1

CONT_C

7.1.1

Technology object CONT_C
The technology object CONT_C provides a continual PID-controller for automatic and manual mode. It corresponds to the instance data block of the instruction CONT_C. You can configure a pulse controller using the PULSEGEN instruction.
The proportional, integral (INT) and differential components (DIF) are switched parallel to each other and can be turned on and off individually. With this, P-, I, PI-, PD- and PIDcontroller can be set.
S7-1500 All parameters and tags of the technology object are retentive and can only be changed during download to the device if you completely download CONT_C.

See also

Overview of software controller (Page 39) Add technology objects (Page 41) Configure technology objects (Page 42) Downloading technology objects to device (Page 44) CONT_C (Page 466)

212

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.1 CONT_C

7.1.2

Configure controller difference CONT_C

Use process value periphery
To use the process value in the periphery format at the PV_PER input parameter, follow these steps:
1. Select the "Enable I/O" check box.
2. If the process value is available as a physical size, enter the factor and offset for the scaling in percent. The process value is then determined according to the following formula: PV = PV_PER × PV_FAC + PV_OFF

Use internal process values
To use the process value in the floating-point format at the PV_IN input parameter, follow these steps:
1. Clear the "Enable I/O" check box.

Control deviation
Set a dead zone range under the following requirement:
 The process value signal is noisy.
 The controller gain is high.
 The derivative action is activated.
The noise component of the process value causes strong deviations of the output value in this case. The dead zone suppresses the noise component in the steady controller state. The dead zone range specifies the size of the dead zone. With a dead zone range of 0.0, the dead zone is turned off.

See also

How CONT_C works (Page 467)

PID control Function Manual, 10/2018, A5E35300227-AD

213

Using PID basic functions 7.1 CONT_C

7.1.3

Configure the controller algorithm CONT_C

General

To determine which components of the control algorithm are activated, proceed as follows:
1. Select an entry from the "Controller structure" list. You can only specify required parameters for the selected controller structure.

Proportional action 1. If the controller structure contains a proportional action, enter the "proportional gain".

Integral action

1. If the controller structure contains an integral action, enter the integral action time.
2. To give the integral action an initialization value, select the check box "Initialize integral action" and enter the initialization value.
3. In order to permanently set the integral action to this initialization value, select the "Integral action hold" check box.

Derivative action
1. If the controller structure contains a derivative action, enter the derivative action time, the derivative action weighting and the delay time.

See also

How CONT_C works (Page 467)

214

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.1 CONT_C

7.1.4

Configure the output value CONT_C

General

You can set CONT_C in the manual or automatic mode.
1. To set a manual manipulated value, activate the option "Activate manual mode" option check box. You can specify a manual manipulated value on the input parameter MAN.

Manipulated value limits
The manipulated value is limited at the top and bottom so that it can only accept valid values. You cannot turn off the limitation. Exceeding the limits is displayed through the output parameters QLMN_HLM and QLMN_LLM.
1. Enter a value for the high and low manipulated value limits. If the manipulated value is a physical size, the units for the high and low manipulated value limits must match.

Scaling

The manipulated value can be scaled for output as a floating point and periphery value through a factor and an offset according to the following formula. Scaled manipulated value = manipulated value x factor + offset Default is a factor of 1.0 and an offset of 0.0. 1. Enter a value for the factor and offset.

See also

How CONT_C works (Page 467)

PID control Function Manual, 10/2018, A5E35300227-AD

215

Using PID basic functions 7.1 CONT_C

7.1.5

Programming a pulse controller
With the continuous controller CONT_C and the pulse shaper PULSEGEN, you can implement a fixed setpoint controller with a switching output for proportional actuators. The following figure shows the signal flow of the control loop.

See also

The continuous controller CONT_C forms the output value LMN that is converted by the pulse shaper PULSEGEN into pulse/break signals QPOS_P or QNEG_P.
PULSEGEN (Page 478)

216

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.1 CONT_C

7.1.6

Commissioning CONT_C

Requirements

 The instruction and the technology object are loaded on the CPU.

Procedure

In order to manually determine the optimal PID parameter, proceed as follows: 1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded. 2. Enter new PID parameters in the "P", "I", "D" and "Delay time" fields. 3. Click on the icon "Send parameter to CPU" in the "Tuning" group. 4. Select the "Change setpoint" check box in the "Current values" group. 5. Enter a new setpoint and click in the "Current Values" group on the icon . 6. Clear the "Manual mode" check box. The controller works with the new PID parameters and controls the new setpoint. 7. Check the quality of the PID parameter to check the curve points. 8. Repeat steps 2 to 6 until you are satisfied with the controller results.

PID control Function Manual, 10/2018, A5E35300227-AD

217

Using PID basic functions 7.2 CONT_S

7.2

CONT_S

7.2.1

Technology object CONT_S
The technology object CONT_S provides a step controller for actuators with integrating behavior and is used to control technical temperature processes with binary output value output signals. The technology object corresponds to the instance data block of the CONT_S instruction. The operating principle is based on the PI control algorithm of the sampling controller. The step controller operates without a position feedback signal. Both manual and automatic mode are possible.
S7-1500 All parameters and tags of the technology object are retentive and can only be changed during download to the device if you completely download CONT_S.

See also

Overview of software controller (Page 39) Add technology objects (Page 41) Configure technology objects (Page 42) Downloading technology objects to device (Page 44) CONT_S (Page 473)

218

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.2 CONT_S

7.2.2

Configure controller difference CONT_S

Use process value periphery
To use the process value in the periphery format at the PV_PER input parameter, follow these steps:
1. Select the "Enable I/O" check box.
2. If the process value is available as a physical quantity, enter the factor and offset for the scaling in percent. The process value is then determined according to the following formula: PV = PV_PER × PV_FAC + PV_OFF

Use internal process values
To use the process value in the floating-point format at the PV_IN input parameter, follow these steps:
1. Clear the "Enable I/O" check box.

Control deviation
Set a deadband range under the following requirement:
 The process value signal is noisy.
 The controller gain is high.
 The derivative action is activated.
The noise component of the process value causes strong deviations of the manipulated variable in this case. The deadband suppresses the noise component in the steady controller state. The deadband range specifies the size of the deadband. With a deadband range of 0.0, the deadband is turned off.

See also

Mode of operation CONT_S (Page 474)

PID control Function Manual, 10/2018, A5E35300227-AD

219

Using PID basic functions 7.2 CONT_S

7.2.3

Configuring control algorithm CONT_S

PID algorithm

1. Enter the "proportional amplification" for the P-component.
2. Enter the integration time for the time behavior of the I-component. With an integration time of 0.0, the I-component is switched off.

See also

Mode of operation CONT_S (Page 474)

7.2.4

Configure manipulated value CONT_S

General

You can set CONT_S in the manual or automatic mode.
1. To set a manual manipulated value, activate the "Activate manual mode" option check box. Enter a manual manipulated value for the input parameters LMNUP and LMNDN.

Pulse generator
1. Enter the minimum impulse duration and minimum pause duration. The values must be greater than or equal to the cycle time for the input parameter CYCLE. The frequency of operation is reduced through this.
2. Enter the motor setting time. The value must be greater than or equal to the cycle time of the input parameter CYCLE.

See also

Mode of operation CONT_S (Page 474)

220

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.2 CONT_S

7.2.5

Commissioning CONT_S

Requirements

 The instruction and the technology object have been loaded to the CPU.

Procedure

To manually determine the optimal PID parameters, proceed as follows: 1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded. 2. In the fields "P" and "I", enter a new proportional value and a new integration time. 3. Click on the icon "Send parameter to CPU" in the "Tuning" group. 4. Select the "Change setpoint" check box in the "Current values" group. 5. Enter a new setpoint and click in the "Current Values" group on the icon . 6. Clear the "Manual mode" check box. The controller works with the new parameters and controls the new setpoint. 7. Check the quality of the PID parameter to check the curve points. 8. Repeat steps 2 to 6 until you are satisfied with the controller results.

PID control Function Manual, 10/2018, A5E35300227-AD

221

Using PID basic functions 7.3 TCONT_CP

7.3

TCONT_CP

7.3.1

Technology object TCONT_CP
The technology object TCONT_CP provides a continual temperature controller with pulse generator. It corresponds to the instance data block of the instruction TCONT_CP. The operation is based on the PID control algorithm of the sampling controller. Both manual and automatic mode are possible.
The instruction TCONT_CP calculates the proportional, integral and derivative parameters for your controlled system during pretuning. "Fine tuning" can be used to tune the parameters further. You can also enter the PID parameters manually.
S7-1500 All parameters and tags of the technology object are retentive and can only be changed during download to the device if you completely download TCONT_CP.

See also

Overview of software controller (Page 39) Add technology objects (Page 41) Configure technology objects (Page 42) Downloading technology objects to device (Page 44) TCONT_CP (Page 489)

222

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

7.3.2

Configure TCONT_CP

7.3.2.1

Controller difference

Use process value periphery To use the input parameter PV_PER, proceed as follows:
1. Select the entry "Periphery" from the "Source" list.
2. Select the "sensor type". Depending on the sensor type, the process value is scaled according to different formulas.
­ Standard Thermoelements; PT100/NI100
PV = 0.1 × PV_PER × PV_FAC + PV_OFFS
­ Cooling; PT100/NI100
PV = 0.01 × PV_PER × PV_FAC + PV_OFFS
­ Current/voltage
PV = 100/27648 × PV_PER × PV_FAC + PV_OFFS
3. Enter the factor and offset for the scaling of the process value periphery.

Use internal process values To use the input parameter PV_IN, proceed as follows: 1. Select the entry "Internal" from the "Source" list.

Control deviation
Set a deadband range under the following requirement:
 The process value signal is noisy.
 The controller gain is high.
 The derivative action is activated.
The noise component of the process value causes strong deviations of the manipulated variable in this case. The deadband suppresses the noise component in the steady controller state. The deadband range specifies the size of the deadband. With a deadband range of 0.0, the deadband is turned off.

See also

Mode of operation TCONT_CP (Page 490)

PID control Function Manual, 10/2018, A5E35300227-AD

223

Using PID basic functions 7.3 TCONT_CP

7.3.2.2

Controlling algorithm

General

1. Enter the "Sampling time PID algorithm". A controller sampling time should not exceed 10 % of the determined integratl action time of the controller (TI).
2. If the controller structure contains a proportional action, enter the "proportional gain". A negative proportional gain inverts the rule meaning.

Proportional action
For changes of the setpoint, it may lead to overshooting of the proportional action. Through the weighting of the proportional action, you can select how strongly the proportional action should react when setpoint changes are made. The weakening of the proportional action is reached through a compensation of the integral action.
1. To weaken the proportional action for setpoint changes, enter a "Proportional action weighting".
­ 1.0: Proportional action for setpoint change is fully effective
­ 0.0: Proportional action for setpoint change is not effective

Integral action

With a limitation of the manipulated value, the integral action is stopped. With a control deviation that moves the integral action in the direction of an internal setting range, the integral action is released again.
1. If the controller structure contains an integral action, enter the "integral action time". With an integral action time of 0.0, the integral action is switched off.
2. To give the integral action an initialization value, select the "Initialize integral action" check box and enter the "Initialization value". Upon restart or COM_RST = TRUE, the integral action is set to this value.

Derivative action
1. If the controller structure contains a derivative action, enter the derivative action time (TD) and the coefficients DT1 (D_F). With switched derivative action, the following equation should be maintained: TD = 0.5 × CYCLE× D_F. The delay time is calculated from this according to the formula: delay time = TD/D_F

Set PD-controller with operating point 1. Enter the integral action time 0.0. 2. Activate the "Initialize integral action" check box. 3. Enter the operating point as the initialization value.

224

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

Set P-controller with operating point
1. Set a PD-controller with an operating point.
2. Enter the derivative action time 0.0. The derivative action is disabled.

Control zone

The control zone limits the value range of the control deviation. If the control deviation is outside of this value range, the manipulated value limits are used.
With an occurrence in the control zone, the derivative action leads to a very quick reduction of the manipulated variable. Thus, the control zone only makes sense for switched on derivative actions. Without control zone, only the reducing proportional action would reduce the manipulated value. The control zone leads to a quick oscillation without over/under shooting if the emitted minimum or maximum manipulated values are removed from the manipulated value required for the new operating point.
1. Activate the "Activate" check box in the "control zone" group.
2. Enter a setpoint value in the "Width" input field from which the process value may deviate above or below.

See also

Mode of operation TCONT_CP (Page 490)

7.3.2.3

Manipulated value continual controller

Manipulated value limits
The manipulated value is limited at the top and bottom so that it can only accept valid values. You cannot turn off the limitation. Exceeding the limits is displayed through the output parameters QLMN_HLM and QLMN_LLM.
1. Enter a value for the high and low manipulated value limits.

Scaling

The manipulated value can be scaled for output as a floating point and periphery value through a factor and an offset according to the following formula. Scaled manipulated value = manipulated value x factor + offset Default is a factor of 1.0 and an offset of 0.0. 1. Enter a value for the factor and offset.

Pulse generator The pulse generator must be turned on for a continual controller. 1. Disable the "Activate" option check box in the "Pulse generator" group.

See also

Mode of operation TCONT_CP (Page 490)

PID control Function Manual, 10/2018, A5E35300227-AD

225

Using PID basic functions 7.3 TCONT_CP

7.3.2.4

Manipulated value pulse controller

Pulse generator
The analog manipulated value (LmnN) can be emitted through pulse-duration modulation on the output parameter QPULSE as an impulse sequence.
To use the pulse generator, proceed as follows:
1. Activate the "Activate" option check box in the "pulse generator" group.
2. Enter the "sampling time pulse generator", the "minimum impulse/break duration" and the "period duration".
The following graphics clarify the connection between the "sampling pulse generator" (CYCLE_P), the "minimum impulse/break duration" (P_B_TM) and the "period duration" (PER_TM):

226

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP
Sampling time pulse generator The sampling time pulse generator must agree with the time tact of the cyclic interrupt OB being called. The duration of the created impulse is always a whole number factor of this value. For an adequately precise manipulated value resolution, the following relationship should apply: CYCLE_P  PER_TM/50
Minimum impulse/break duration Through the minimum impulse/break duration, short on or off times on the actuator are avoided. An impulse smaller than P_B_TM is suppressed. Recommended are values P_B_TM  0.1 × PER_TM.
Period duration The period duration should not exceed 20% of the determined integration time of the controller (TI): PER_TM  TI/5

PID control Function Manual, 10/2018, A5E35300227-AD

227

Using PID basic functions 7.3 TCONT_CP

Example for the effect of the parameter CYCLE_P, CYCLE and PER_TM:
Period duration PER_TM = 10 s
Sampling time PID-algorithm CYCLE = 1 s
Sampling time pulse generator CYCLE_P = 100 ms.
Every second, a new manipulated value, every 100 ms the comparison of the manipulated value occurs with the previously emitted impulse length and break length.
 If an impulse is emitted, there are 2 possibilities:
­ The calculated manipulated value is larger than the previous impulse length/PER_TM. Then the impulse is extended.
­ The calculated manipulated value is less than or equal to the previous impulse length/PER_TM. Then no impulse signal will be emitted.
 If no impulse is emitted, there are also 2 possibilities:
­ The value (100 % - calculated manipulated value) is greater than the previous break length / PER_TM. Then the break is extended.
­ The value (100 % - calculated manipulated value) is less than or equal to the previous break length / PER_TM. Then an impulse signal will be emitted.

See also

Mode of operation TCONT_CP (Page 490) Operating principle of the pulse generator (Page 499)

228

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

7.3.3

Commissioning TCONT_CP

7.3.3.1

Optimization of TCONT_CP

Application possibilities
The controller optimization for heating or cooling processes from process type I is applicable. But you can use the block for processes with higher levels like process type II or III.
The PI/PID parameters are automatically determined and set. The controller draft is designed for an optimal disruption behavior The "precise" parameters resulting from this lead to overshooting of 10% to 40% of the jump height for setpoint jump heights.

Phases of controller optimization
For the controller optimization, individual phases are run through, which you can read on the parameter PHASE .

PHASE = 0

No tuning is running. TCONT_CP works in automatic or manual mode.
During PHASE = 0, you can make sure that the controlled system fulfills the requirements for an optimization.
At the end of the optimization, TCONT_CP changes back into PHASE = 0.

PHASE = 1

TCONT_CP is prepared for optimization. PHASE = 1 may only be started if the requirements for an optimization are fulfilled. During PHASE = 1, the following values are determined:  Process value noise NOISE_PV  Initial slope PVDT0  Average of the manipulated variable  Sampling time PID algorithm CYCLE  Sampling time pulse generator CYCLE_P

PID control Function Manual, 10/2018, A5E35300227-AD

229

Using PID basic functions 7.3 TCONT_CP

PHASE = 2

In phase 2, the process value attempts to detect the point of inflection with a constant manipulated variable. This method prevents the point of inflection from being found too early as a result of process variable noise.
With the pulse controller, the process variable is averaged over N pulse cycles and then made available to the controller stage. There is a further averaging of the process variable in the controller stage: Initially, this averaging is inactive; in other words, averaging always takes place over 1 cycle. As long as the noise exceeds a certain level, the number of cycles is doubled.
The period and amplitude of the noise are calculated. The search for the point of inflection is canceled and phase 2 is exited only when the gradient is always smaller than the maximum rise during the estimated period. TU and T_P_INF are, however, calculated at the actual point of inflection.
Tuning, however, is only ended when the following two conditions are met:
1. The process value is more than 2*NOISE_PV away from the point of inflection.
2. The process value has exceeded the point of inflection by 20%.
Note
When exciting the process using a setpoint step change, tuning is ended at the latest when the process value exceeds 75% of the setpoint step change (SP_INT-PV0) (see below).

PHASE = 3, 4, 5 The phases 3, 4 and 5 last 1 cycle each. In Phase 3, the valid PI/PID parameters are saved before the optimization and the process parameter is calculated. In Phase 4, the new PI/PID parameters are calculated. In Phase 5, the new manipulated variable is calculated and the controlled system is given.

PHASE = 7

The process type is inspected in Phase 7, because TCONT_CP always changes to automatic mode after optimization. The automatic mode starts with LMN = LMN0 + 0.75*TUN_DLMN as a manipulated variable. The testing of the process type occurs in the automatic mode with the recently recalculated controller parameters and ends at the latest 0.35*TA (equilibrium time) after the point of inflection. If the process order deviates strongly from the estimated value, the controller parameters are newly calculated and STATUS_D is counted up by 1, otherwise, the controller parameters remain unchanged.
Then the optimization mode is complete and TCONT_CP is back in PHASE = 0. At the STATUS_H parameter, you can identify whether the tuning was successfully completed.

230

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP
Premature cancellation of the optimization In Phase 1, 2 or 3, you can cancel the optimization by resetting TUN_ON = FALSE without calculating new parameters. The controller starts in the automatic mode with LMN = LMN0 + TUN_DLMN. If the controller was in manual mode before the tuning, the old manual manipulated variable is output. If the tuning is canceled in Phase 4, 5 or 7 with TUN_ON = FALSE, the determined controlled parameters are contained until then.

PID control Function Manual, 10/2018, A5E35300227-AD

231

Using PID basic functions 7.3 TCONT_CP

7.3.3.2

Requirements for an optimization

Transient response
The process must have a stable, asymptotic transient response with time lag.
The process value must settle to steady state after a step change of the manipulated variable. This therefore excludes processes that already show an oscillating response without control, as well as processes with no recovery (integrator in the control system).

WARNING
This may result in death, severe injury or considerable property damage.
During an tuning, the parameter MAN_ON is ineffective. Through this, the output value or process value may take on undesired - even extreme - values.
The output value is defined through the tuning. To cancel the tuning, you first have to set TUN_ON = FALSE. This makes MAN_ON effective again.

Guaranteeing a stationary initial state (phase 0)
With lower-frequency oscillations of the process value, for example, due to incorrect controller parameters, the controller must be put in manual mode before the tuning is started and wait for the oscillation to stop. Alternatively, you could switch to a "soft" set PI controller (small loop gain large integration time).
Now you have to wait until the stationary state is reached, this means, until the process value and output value have a steady state. It is also permissible to have an asymptotic transient oscillation or slow drifting of the process value (stationary state, see the following image). The output value must be constant or fluctuate by a constant average.
Note
Avoid changing the manipulated variable shortly before starting the tuning. A change of the manipulated variable can occur in an unintended manner through the establishment of the test conditions (for example, closing an oven door)! If this does happen, you have to at least wait until the process value has an asymptotic transient oscillation in a stationary state again. Better controller parameters can be reached if you wait until the transient effect has completely subsided.

232

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP
In the following image, the transient oscillation is illustrated in the stationary state:

Linearity and operating range
The process response must be linear across the operating range. Non-linear response occurs, for example, when an aggregation state changes. Tuning must take place in a linear part of the operating range.
This means, during tuning and normal control operation non-linear effects within the operating range must be insignificant. It is, however possible to retune the process when the operating point changes, providing tuning is repeated in the close vicinity of the new operating point and non-linearity does not occur during tuning.
If a specific static non-linearity (e.g., valve characteristics) is known, it is always advisable to compensate this with a polyline to linearize the process response.
Disturbance in temperature processes
Disturbances such as the transfer of heat to neighboring zones must not affect the overall temperature process too much. For example, when optimizing the zones of an extruder, all zones must be heated simultaneously.

PID control Function Manual, 10/2018, A5E35300227-AD

233

Using PID basic functions 7.3 TCONT_CP

7.3.3.3

Possibilities for optimization The following possibilities for tuning exist:  Pretuning  Fine tuning  Manual fine-tuning in control mode

Pretuning

During this tuning, the working point is approached from the cold state through a setpoint jump.
With TUN_ON = TRUE, you can establish the tuning readiness. The controller switches from PHASE = 0 to PHASE = 1.

The tuning manipulated variable (LMN0 + TUN_DLMN) is activated by a setpoint change (transition phase 1 -> 2). The setpoint is not effective until the inflection point has been reached (automatic mode is not enabled until this point is reached).
The user is responsible for defining the output excitation delta (TUN_DLMN) according to the permitted process value change. The sign of TUN_DLMN must be set depending on the intended process value change (take into account the direction in which the control is operating).
The setpoint step change and TUN_DLMN must be suitably matched. If the value of TUN_DLMN is too high, there is a risk that the point of inflection will not be found before 75% of the setpoint step change is reached.
TUN_DLMN must nonetheless be high enough to ensure that the process value reaches at least 22 % of the setpoint step change. Otherwise, the process will remain in tuning mode (phase 2).

234

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP
Remedy: Reduce the setpoint value during the inflection point search.
Note If processes are extremely sluggish, it is advisable during tuning to specify a target setpoint that is somewhat lower than the desired operating point and to monitor the status bits and PV closely (risk of overshooting). Tuning only in the linear range: The signals of certain processes (e.g., zinc or magnesium smelters) will pass a non-linear area at the approach of the operating range (change in the state of aggregation). By selecting a suitable setpoint step change, tuning can be limited to the linear range. When the process value has passed 75% of the setpoint step change (SP_INT-PV0), tuning is ended. At the same time, TUN_DLMN should be reduced to the extent that the point of inflection is guaranteed to be found before 75% of the setpoint step change is reached.

Fine tuning

During this tuning, the process with a constant setpoint is activated through a output value jump.

PID control Function Manual, 10/2018, A5E35300227-AD

235

Using PID basic functions 7.3 TCONT_CP
The tuning manipulated variable (LMN0 + TUN_DLMN) is activated by setting the start bit TUN_ST (transition from phase 1 -> 2). When you modify the setpoint value, the new value will not take effect until the point of inflection has been reached (automatic mode will not be enabled until this point has been reached). The user is responsible for defining the output excitation delta (TUN_DLMN) according to the permitted process value change. The sign of TUN_DLMN must be set depending on the intended process value change (take into account the direction in which the control is operating).
NOTICE
Safety off at 75% is not available when you excite the process via TUN_ST. Tuning is ended when the point of inflection is reached. However, in noisy processes the point of inflection may be significantly exceeded.
Manual fine-tuning in control mode The following measures can be employed to achieve an overshoot-free setpoint response:  Adapting the control zone  Optimize command action  Attenuation of control parameters  Modifying control parameters

236

PID control Function Manual, 10/2018, A5E35300227-AD

7.3.3.4

Using PID basic functions 7.3 TCONT_CP

Tuning result The left cipher of STATUS_H displays the tuning status

STATUS_H 0 10000 2xxxx
3xxxx

Result
Default, i.e., new controller parameters have not (yet) been found.
Suitable control parameters found.
Control parameters have been found via estimated values; check the control response or check the STATUS_H diagnostic message and repeat controller tuning.
An operator error has occurred; check the STATUS_H diagnostic message and repeat controller tuning.

The CYCLE and CYCLE_P sampling times were already checked in phase 1.

The following controller parameters are updated on TCONT_CP:

 P (proportional GAIN)

 I (integration time TI)

 D (derivative time TD)

 Weighting of the proportional action PFAC_SP

 Coefficient DT1 (D_F)

 Control zone on/off CONZ_ON

 Control zone width CON_ZONE

The control zone is only activated if the process type is suitable (process type I and II) and a PID controller is used (CONZ_ON = TRUE).

Depending on PID_ON, control is implemented either with a PI or a PID controller. The old controller parameters are saved and can be retrieved with UNDO_PAR. A PI parameter record and a PID parameter record are saved additionally in the PI_CON and PID_CON structures. Using LOAD_PID and making a suitable setting for PID_ON, it is also possible to switch later between the tuned PI or PID parameters.

PID control Function Manual, 10/2018, A5E35300227-AD

237

Using PID basic functions 7.3 TCONT_CP

7.3.3.5

Parallel tuning of controller channels

Adjacent zones (strong heat coupling)
If two or more controllers are controlling the temperature, on a plate, for example (in other words, there are two heaters and two measured process values with strong heat coupling), proceed as follows:
1. OR the two outputs QTUN_RUN.
2. Interconnect each TUN_KEEP input with the output of the OR element.
3. Start both controllers by specifying a setpoint step change at the same time or by setting TUN_ST at the same time.
The following schematic illustrates the parallel tuning of controller channels.

Advantage: Both controllers output LMN0 + TUN_DLMN until both controllers have left phase 2. This prevents the controller that completes tuning first from falsifying the tuning result of the other controller due to the change in its manipulated variable.
NOTICE
Reaching 75% of the setpoint step change causes an exiting of phase 2 and resetting of output QTUN_RUN. However, automatic mode does not start until TUN_KEEP is also 0.
Adjacent zones (weak heat coupling) In general terms, tuning should be carried out to reflect the way in which the controller will operate subsequently. If zones are operated together during production such that the temperature differences between the zones remain the same, the temperature of the adjacent zones ought to be increased accordingly during tuning. Differences in temperature at the beginning of the tuning are irrelevant since they will be compensated by the initial heating (-> initial rise = 0).

238

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

7.3.3.6

Fault descriptions and corrective measures

Compensating operator errors

Operator error
TUN_ON and setpoint step change or TUN_ST are set simultaneously

STATUS and action Transition to phase 1; however, tuning is not started.
· SP_INT = SPold or
· TUN_ST = FALSE

Effective TUN_DLMN < 5% (end of phase 1)

STATUS_H = 30002 · Transition to phase 0 · TUN_ON = FALSE · SP = SPold

Comment
The setpoint change is canceled. This prevents the controller from settling to the new setpoint value and from leaving the stationary operating point unnecessarily.
Tuning is canceled.
The setpoint change is canceled. This prevents the controller from settling to the new setpoint value and from leaving the stationary operating point unnecessarily.

Point of inflection not reached (only if excited by setpoint step change)
At the latest, tuning is ended when the process value has passed 75% of the setpoint step change (SP_INT-PV0). This is signaled by "inflection point not reached" in STATUS_H (2xx2x).
The currently valid setpoint always applies. By reducing the setpoint, it is possible to achieve an earlier end of the tuning function.
In typical temperature processes, cancelation of tuning at 75% of the setpoint step change is normally adequate to prevent overshoot. However, caution is advised, particularly in processes with a greater delay (TU/TA > 0.1, process type III). If manipulated variable excitation is too strong compared to the setpoint step change, the process value can overshoot heavily (up to a factor of 3).
In higher-order processes, if the point of inflection is still a long way off after reaching 75% of the setpoint step change, there will be significant overshoot. In addition, the controller parameters are too stringent. In this case, you should reduce the controller parameters or repeat the attempt.

PID control Function Manual, 10/2018, A5E35300227-AD

239

Using PID basic functions 7.3 TCONT_CP
The following schematic illustrates the overshoot of the process variable when the excitation is too strong (process type III):

In typical temperature processes, cancelation shortly before reaching the point of inflection is not critical in terms of the controller parameters. If you repeat the attempt, reduce TUN_DLMN or increase the setpoint step change. Principle: The value of the manipulated variable used for tuning must be suitable for the setpoint step change.
Error estimating the delay time or order The delay time (STATUS_H = 2x1xx or 2x3xx) or order (STATUS_H = 21xxx or 22xxx) were not acquired correctly. Operation continues with an estimate that can lead to non-optimum controller parameters. Repeat the tuning procedure and ensure that disturbances do not occur at the process value.
Note The special case of a PT1-only process is also indicated by STATUS_H = 2x1xx (TU <= 3*CYCLE). In this case, it is not necessary to repeat the attempt. Reduce the controller parameters if the control oscillates.

240

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP
Quality of measuring signals (measurement noise, low-frequency interference)
The results of tuning can be distorted by measurement noise or by low-frequency interference. Note the following:
 If you encounter measurement noise, set the sampling frequency higher rather than lower. During one noise period, the process value should be sampled at least twice. In pulse mode, integrated mean value filtering can be helpful. This assumes, however, that the process variable PV is transferred to the instruction in the fast pulse cycle. The degree of noise should not exceed 5% of the useful signal change.
 High-frequency interference cannot be filtered out by TCONT_CP. This should be filtered earlier in the measuring sensor to prevent the aliasing effect.
The following schematic illustrates the aliasing effect when the sampling time is too long:

 With low-frequency interference, it is relatively easy to ensure an adequately high sampling rate. However, the TCONT_CP must then generate a uniform measuring signal by having a large interval in the mean value filtering. Mean value filtering must extend over at least two noise periods. Internally in the block, this soon results in higher sampling times such that the accuracy of the tuning is adversely affected. Adequate accuracy is guaranteed with at least 40 noise periods up to the point of inflection.
Possible remedy when repeating the attempt:
Increase TUN_DLMN.

Overshoot

Overshoot can occur in the following situations:

Situation End of tuning
Tuning in phase 7 Control mode

Cause · Excitation by a too high manipulated
value change compared with the setpoint step change (see above). · PI controller activated by PID_ON = FALSE.
Initially, less aggressive controller parameters were determined (process type III); these can lead to an overshoot in phase 7. PI controller with PFAC_SP = 1.0 for process type I.

Remedy · Increase the setpoint step change
or reduce the manipulated value step change.
· If the process permits a PID controller, start tuning with PID_ON = TRUE.
-
If the process permits a PID controller, start tuning with PID_ON = TRUE.

PID control Function Manual, 10/2018, A5E35300227-AD

241

Using PID basic functions 7.3 TCONT_CP

7.3.3.7

Performing pretuning

Requirements

 The instruction and the technology object are loaded on the CPU.

Procedure

To manually determine the optimum PID parameters for initial commissioning, follow these steps:
1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded.
2. Select "Pretuning" from the "Mode" drop-down list.
TCONT_CP is ready for tuning.
3. In the "Output value jump" field, specify how much the output value should be increased.
4. Enter a setpoint in the "Setpoint" field. The output value jump only takes effect when another setpoint is entered.
5. Click the "Start tuning" icon.
The pretuning starts. The status of the tuning is displayed.

7.3.3.8

Performing fine tuning

Requirements

 The instruction and the technology object are loaded on the CPU.

Procedure

To determine the optimal PID parameters at the operating point, follow these steps: 1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded. 2. Select "Fine tuning" from the "Mode" drop-down list. TCONT_CP is ready for tuning. 3. In the "Output value jump" field, specify how much the output value should be increased. 4. Click the "Start tuning" icon. Fine tuning starts. The status of the tuning is displayed.

242

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

7.3.3.9

Cancelling pretuning or fine tuning
To cancel pretuning or fine tuning, click on the icon, "Stop tuning".
If the PID parameters have not yet been calculated and stored, TCONT_CP starts in automatic mode LMN = LMN0 + TUN_DLMN. If the controller was in manual mode before the tuning, the old manual manipulated variable is output.
If the calculated PID parameters have already been saved, TCONT_CP starts in automatic mode and works with the previously determined PID parameters.

7.3.3.10

Manual fine-tuning in control mode The following measures can be employed to achieve an overshoot-free setpoint response:

Adapting the control zone
During tuning, "TCONT_CP" determines a control zone CON_ZONE and activated if the process type is suitable (process type I and II) and a PID controller is used (CONZ_ON = TRUE). In control mode, you can modify the control zone or switch it off completely (with CONZ_ON = FALSE).
Note
Activating the control zone with higher-order processes (process type III) does not normally provide any benefit since the control zone is then larger than the control range that can be achieved with a 100% manipulated variable. There is also no advantage in activating the control zone for PI controllers.
Before you switch on the control zone manually, make sure that the control zone is not too narrow. If the control zone is set too narrow, oscillations occur in the manipulated variable and the process value.

PID control Function Manual, 10/2018, A5E35300227-AD

243

Using PID basic functions 7.3 TCONT_CP

Continuous attenuation of the control response with PFAC_SP
The control response can be attenuated with the PFAC_SP parameter. This parameter specifies the percentage of proportional component that is effective for setpoint step changes.
Regardless of the process type, PFAC_SP is set to a default value of 0.8 by the tuning function; you can later modify this value if required. To limit overshoot during setpoint step changes (with otherwise correct controller parameters) to approximately 2%, the following values are adequate for PFAC_SP:

Process type I Typical temperature process
PI 0.8
PID 0.6

Process type II Intermediate range
0.82 0.75

Process type III Higher-order temperature process
0.8 0.96

Adjust the default factor (0.8) in the following situations, in particular:

 Process type I with PID (0.8 0.6): Setpoint step changes within the control zone still lead to approximately 18% overshoot with PFAC_SP = 0.8.

 Process type III with PID (0.8 0.96): Setpoint step changes with PFAC_SP = 0.8 are attenuated too strongly. This leads to a significantly slower response time.

Attenuation of control parameters
When a closed-loop control circuit oscillates or if overshoot occurs after setpoint step changes, you can reduce the controller GAIN (e.g., to 80% of the original value) and increase integral time TI (e.g., to 150% of the original value). If the analog output value of the continuous controller is converted to binary actuating signals by a pulse shaper, quantization noise may cause minor permanent oscillation. You can eliminate this by increasing the controller deadband DEADB_W.

Modifying control parameters Proceed as follows to modify control parameters: 1. Save the current parameters with SAVE_PAR. 2. Modify the parameters. 3. Test the control response. If the new parameter settings are worse than the old ones, retrieve the old parameters with UNDO_PAR.

244

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.3 TCONT_CP

7.3.3.11

Performing fine tuning manually

Requirements

 The instruction and the technology object have been loaded to the CPU.

Procedure

To manually determine the optimal PID parameters, proceed as follows: 1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded. 2. Select "Manual" from the "Mode" drop-down list. 3. Enter the new PID parameters. 4. Click on the icon "Send parameter to CPU" in the "Tuning" group. 5. Select the "Change setpoint" check box in the "Current values" group. 6. Enter a new setpoint and click in the "Current Values" group on the icon . 7. Clear the "Manual mode" check box. The controller works with the new PID parameters and controls the new setpoint. 8. Check the quality of the PID parameter to check the curve points. 9. Repeat steps 3 to 8 until you are satisfied with the controller results.

PID control Function Manual, 10/2018, A5E35300227-AD

245

Using PID basic functions 7.4 TCONT_S

7.4

TCONT_S

7.4.1

Technology object TCONT_S
The technology object TCONT_S provides a step controller for actuators with integrating behavior and is used to control technical temperature processes with binary output value output signals. The technology object corresponds to the instance data block of the TCONT_S instruction. The operating principle is based on the PI control algorithm of the sampling controller. The step controller operates without a position feedback signal. Both manual and automatic mode are possible.
S7-1500 All parameters and tags of the technology object are retentive and can only be changed during download to the device if you completely download TCONT_S.

See also

Overview of software controller (Page 39) Add technology objects (Page 41) Configure technology objects (Page 42) Downloading technology objects to device (Page 44) TCONT_S (Page 514)

246

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.4 TCONT_S

7.4.2

Configure controller difference TCONT_S

Use process value periphery To use the input parameter PV_PER, proceed as follows:
1. Select the entry "Periphery" from the "Source" list.
2. Select the "sensor type". Depending on the sensor type, the process value is scaled according to different formulas.
­ Standard Thermoelements; PT100/NI100
PV = 0.1 × PV_PER × PV_FAC + PV_OFFS
­ Cooling; PT100/NI100
PV = 0.01 × PV_PER × PV_FAC + PV_OFFS
­ Current/voltage
PV = 100/27648 × PV_PER × PV_FAC + PV_OFFS
3. Enter the factor and offset for the scaling of the process value periphery.

Use internal process values To use the input parameter PV_IN, proceed as follows: 1. Select the entry "Internal" from the "Source" list.

Control deviation
Set a dead zone range under the following requirement:
 The process value signal is noisy.
 The controller gain is high.
 The derivative action is activated.
The noise component of the process value causes strong deviations of the output value in this case. The dead zone suppresses the noise component in the steady controller state. The dead zone range specifies the size of the dead zone. With a dead zone range of 0.0, the dead zone is turned off.

See also

Mode of operation TCONT_S (Page 515)

PID control Function Manual, 10/2018, A5E35300227-AD

247

Using PID basic functions 7.4 TCONT_S

7.4.3

Configure controller algorithm TCONT_S

General

1. Enter the "Sampling time PID algorithm". A controller sampling time should not exceed 10 % of the determined integral action time of the controller (TI).
2. If the controller structure contains a proportional action, enter the "proportional gain". A negative proportional gain inverts the rule meaning.

Proportional action
For changes of the setpoint, it may lead to overshooting of the proportional action. Through the weighting of the proportional action, you can select how strongly the proportional action should react when setpoint changes are made. The weakening of the proportional action is reached through a compensation of the integral action.
1. To weaken the proportional action for setpoint changes, enter a "Proportional action weighting".
­ 1.0: Proportional action for setpoint change is fully effective
­ 0.0: Proportional action for setpoint change is not effective

Integral action

1. If the controller structure contains an integral action, enter the "integral action time". With an integral action time of 0.0, the integral action is switched off.

See also

Mode of operation TCONT_S (Page 515)

7.4.4

Configure manipulated value TCONT_S

Pulse generator
1. Enter the minimum impulse duration and minimum pause duration. The values must be greater than or equal to the cycle time for the input parameter CYCLE. The frequency of operation is reduced through this.
2. Enter the motor setting time. The value must be greater than or equal to the cycle time of the input parameter CYCLE.

See also

Mode of operation TCONT_S (Page 515)

248

PID control Function Manual, 10/2018, A5E35300227-AD

Using PID basic functions 7.4 TCONT_S

7.4.5

Commissioning TCONT_S

Requirements

 The instruction and the technology object have been loaded to the CPU.

Procedure

To manually determine the optimal PID parameters, proceed as follows: 1. Click the "Start" icon.
If there is no online connection, this will be established. The current values for the setpoint, process value and output value are recorded. 2. Enter new PID parameters in the "P", "I" and weighting proportional action fields. 3. Click on the icon "Send parameter to CPU" in the "Tuning" group. 4. Select the "Change setpoint" check box in the "Current values" group. 5. Enter a new setpoint and click in the "Current Values" group on the icon . 6. Clear the "Manual mode" check box. The controller works with the new parameters and controls the new setpoint. 7. Check the quality of the PID parameter to check the curve points. 8. Repeat steps 2 to 6 until you are satisfied with the controller results.

PID control Function Manual, 10/2018, A5E35300227-AD

249

Auxiliary functions

8

8.1

Polyline

Polyline

The Polyline instruction provides a function with the characteristic curve of the polyline whose points can be used, for example, to linearize the behavior of non-linear sensors.
The Polyline instruction can be used with an S7-1500 CPU Firmware 2.0 and higher and an S7-1200 CPU Firmware 4.2 and higher.

Additional information Description Polyline (Page 525) Operating principle Polyline (Page 529) Input parameters of Polyline (Page 533) Output parameters of Polyline (Page 533) Static tags of Polyline (Page 534) ErrorBits parameter (Page 536)

8.2

SplitRange

SplitRange

The SplitRange instruction splits the output value range of the PID controller into multiple subranges. These subranges enable control of a process that is influenced by multiple actuators.
The SplitRange instruction can be used with an S7-1500 CPU Firmware 2.0 and higher and an S7-1200 CPU Firmware 4.2 and higher.

Additional information SplitRange description (Page 541) SplitRange input parameters (Page 544) SplitRange static tags (Page 545) SplitRange output parameters (Page 544) ErrorBits parameter (Page 546)

250

PID control Function Manual, 10/2018, A5E35300227-AD

Auxiliary functions 8.3 RampFunction

8.3

RampFunction

RampFunction

The RampFunction instruction limits the slew rate of a signal. A signal jump at the input is output as ramp function of the output value, to achieve a smoother response, for example, without influencing the disturbance reaction.
The RampFunction instruction can be used with an S7-1500 CPU Firmware 2.0 and higher and an S7-1200 CPU Firmware 4.2 and higher.

Additional information RampFunction description (Page 549) RampFunction mode of operation (Page 554) RampFunction input parameters (Page 558) RampFunction output parameters (Page 558) RampFunction static tags (Page 559) ErrorBits parameter (Page 561)

PID control Function Manual, 10/2018, A5E35300227-AD

251

Instructions

9

9.1

PID_Compact

9.1.1

New features of PID_Compact

PID_Compact V2.4
 Initialization of the integral action
PID_Compact now initializes the integral action if you use OverwriteInitialOutputValue together with inverted control logic.
If you have been using OverwriteInitialOutputValue together with inverted control logic up to now, please note that the sign of the output value changes with PID_Compact V2.4.

PID_Compact V2.3
 Response of the output value when switching from "Inactive" operating mode to "Automatic mode"
The new option IntegralResetMode = 4 was added and defined as default. With IntegralResetMode = 4, the integral action is automatically pre-assigned when switching from "Inactive" operating mode to "Automatic mode" so that a control deviation results in a jump of the output value with identical sign.
 Initialization of the integral action in automatic mode
The integral action can be initialized in automatic mode with the tags OverwriteInitialOutputValue and PIDCtrl.PIDInit. This simplifies the use of PID_Compact for override controls.

PID_Compact V2.2
 Use with S7-1200
As of PID_Compact V2.2, the instruction with V2 functionality can also be used on S71200 with firmware version 4.0 or higher.

252

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact
PID_Compact V2.0  Reaction to error
The reaction to error has been completely overhauled. PID_Compact now reacts in a more fault-tolerant manner in the default setting. This reaction is set when copying PID_Compact V1.X from an S7-1200 CPU to an S7-1500 CPU.
NOTICE Your system may be damaged.
If you use the default setting, PID_Compact remains in automatic mode when the process value limits are exceeded. This may damage your system.
It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.
The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred. Use ErrorAck to acknowledge the errors and warnings without restarting the controller or clearing the integral action. Switching operating modes no longer clears errors that are no longer pending.
You can configure the reaction to error with SetSubstituteOutput and ActivateRecoverMode.
 Substitute output value
You can configure a substitute output value that is to be output if an error occurs.
 Switching the operating mode
You specify the operating mode at the Mode in/out parameter and use a rising edge at ModeActivate to start the operating mode. The sRet.i_Mode tag has been omitted.
 Multi-instance capability
You can call up PID_Compact as multi-instance DB. No technology object is created in this case and no parameter assignment interface or commissioning interface is available. You must assign parameters for PID_Compact directly in the multi-instance DB and commission it via a watch table.
 Startup characteristics
The operating mode specified at the Mode parameter is also started on a falling edge at Reset and during a CPU cold restart, if RunModeByStartup = TRUE.
 ENO characteristics
ENO is set depending on the operating mode.
If State = 0, then ENO = FALSE.
If State  0, then ENO = TRUE.
 Setpoint value specification during tuning
You configure the permitted fluctuation of the setpoint during tuning at the CancelTuningLevel tag.

PID control Function Manual, 10/2018, A5E35300227-AD

253

Instructions 9.1 PID_Compact
 Value range for output value limits The value 0.0 no longer has to fall within the output value limits.
 Pre-assigning the integral action Using the tags IntegralResetMode and OverwriteInitialOutputValue, you can determine the pre-assignment of the integral action when switching from "Inactive" operating mode to "Automatic mode".
 Switching a disturbance variable on You can switch a disturbance variable on at the Disturbance parameter.
 Default value of PID parameters The following default settings have been changed: ­ Proportional action weighting (PWeighting) from 0.0 to 1.0 ­ Derivative action weighting (DWeighting) from 0.0 to 1.0 ­ Coefficient for derivative delay (TdFiltRatio) from 0.0 to 0.2
 Renaming tags The static tags have been given new names that are compatible with PID_3Step.
PID_Compact V1.2  Manual mode on CPU startup If ManualEnable = TRUE when the CPU starts, PID_Compact starts in manual mode. A rising edge at ManualEnable is not necessary.  Pretuning If the CPU is switched off during pretuning, pretuning starts again when the CPU is switched back on.
PID_Compact V1.1  Manual mode on CPU startup When the CPU starts up, PID_Compact only switches to manual mode with a rising edge at ManualEnable. Without rising edge, PID_Compact starts in the last operating mode in which ManualEnable was FALSE.  Reaction to reset A rising edge at Reset resets the errors and warnings and clears the integral action. A falling edge at Reset triggers a switchover to the most recently active operating mode.  Default of process value high limit The default value of r_Pv_Hlm has been changed to 120.0.

254

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact
 Monitoring the sampling time ­ An error is no longer output when the current sampling time is  1.5 x current mean value or when the current sampling time is  0.5 x current mean value. The sampling time may deviate much more in automatic mode. ­ PID_Compact is compatible with FW, V2.0 or higher.
 Access to tags The following tags can now be used in the user program. ­ i_Event_SUT ­ i_Event_TIR ­ r_Ctrl_Ioutv
 Troubleshooting PID_Compact now outputs the correct pulses when the shortest ON time is not equal to the shortest OFF time.

PID control Function Manual, 10/2018, A5E35300227-AD

255

Instructions 9.1 PID_Compact

9.1.2

Compatibility with CPU and FW
The following table shows which version of PID_Compact can be used on which CPU.

CPU S7-1200
S7-1500

FW V4.2 or higher
V4.0 to V4.1 V3.x V2.x V1.x as of V2.5
V2.0 and V2.1
V1.5 to V1.8
V1.1 V1.0

PID_Compact V2.3 V2.2 V1.2 V2.2 V1.2 V1.2 V1.1 V1.2 V1.1 V1.0 V2.4 V2.3 V2.2 V2.1 V2.0 V2.3 V2.2 V2.1 V2.0 V2.2 V2.1 V2.0 V2.1 V2.0 V2.0

256

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.3

CPU processing time and memory requirement PID_Compact V2.x

CPU processing time
Typical CPU processing times of the PID_Compact technology object as of Version V2.0, depending on CPU type.

CPU CPU 1211C  V4.0 CPU 1215C  V4.0 CPU 1217C  V4.0 CPU 1505S  V1.0 CPU 1510SP-1 PN  V1.6 CPU 1511-1 PN  V1.5 CPU 1512SP-1 PN  V1.6 CPU 1516-3 PN/DP  V1.5 CPU 1518-4 PN/DP  V1.5

Typ. CPU processing time PID_Compact V2.x 300 µs 300 µs 300 µs 45 µs 85 µs 85 µs 85 µs 50 µs 4 µs

Memory requirement
Memory requirement of an instance DB of the PID_Compact technology object as of Version V2.0.

Memory requirement
Load memory requirement Total work memory requirement Retentive work memory requirement

Memory requirement of the instance DB of PID_Compact V2.x Approx. 12000 bytes 788 bytes 44 bytes

PID control Function Manual, 10/2018, A5E35300227-AD

257

Instructions 9.1 PID_Compact

9.1.4

PID_Compact V2

9.1.4.1

Description of PID_Compact V2

Description

The PID_Compact instruction provides a PID controller with integrated tuning for actuators with proportional action. The following operating modes are possible:  Inactive  Pretuning  Fine tuning  Automatic mode  Manual mode  Substitute output value with error monitoring For a more detailed description of the operating modes, see the State parameter.

PID algorithm

PID_Compact is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions. The PID algorithm operates according to the following equation:

Symbol y Kp s b w x TI TD a c

Description Output value of the PID algorithm Proportional gain Laplace operator Proportional action weighting Setpoint Process value Integral action time Derivative action time Derivative delay coefficient (derivative delay T1 = a × TD) Derivative action weighting

258

PID control Function Manual, 10/2018, A5E35300227-AD

Block diagram of PID_Compact

Instructions 9.1 PID_Compact

Block diagram of PIDT1 with anti-windup

PID control Function Manual, 10/2018, A5E35300227-AD

259

Instructions 9.1 PID_Compact

Call
PID_Compact is called in the constant time scale of a cycle interrupt OB.
If you call PID_Compact as a multi-instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for PID_Compact directly in the multi-instance DB and commission it via a watch table.

Download to device
The actual values of retentive variables are only updated when you download PID_Compact completely.
Downloading technology objects to device (Page 44)

Startup

When the CPU starts up, PID_Compact starts in the operating mode that is saved in the Mode in/out parameter. To switch to "Inactive" operating mode during startup, set RunModeByStartup = FALSE.

Reaction to error
In automatic mode and during commissioning, the reaction to error depends on the SetSubstituteOutput and ActivateRecoverMode variables. In manual mode, the reaction is independent of SetSubstituteOutput and ActivateRecoverMode. If ActivateRecoverMode = TRUE, the reaction additionally depends on the error that occurred.

SetSubstituteOutput Not relevant FALSE
TRUE

ActivateRecoverMode FALSE
TRUE
TRUE

Configuration editor > output value > Set Output to Zero (inactive)
Current output value while error is pending
Substitute output value while error is pending

Reaction
Switch to "Inactive" mode (State = 0) The value 0.0 0 is transferred to the actuator. Switch to "Substitute output value with error monitoring" mode (State = 5) The current output value is transferred to the actuator while the error is pending. Switch to "Substitute output value with error monitoring" mode (State = 5) The value at SubstituteOutput is transferred to the actuator while the error is pending.

In manual mode, PID_Compact uses ManualValue as output value, unless ManualValue is invalid. If ManualValue is invalid, SubstituteOutput is used. If ManualValue and SubstituteOutput are invalid, Config.OutputLowerLimit is used.

The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is reset by a rising edge at Reset or ErrorAck.

260

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.4.2

Mode of operation of PID_Compact V2

Monitoring process value limits
You specify the high limit and low limit of the process value in the Config.InputUpperLimit and Config.InputLowerLimit tags. If the process value is outside these limits, an error occurs (ErrorBits = 0001h).
You specify a high and low warning limit of the process value in the Config.InputUpperWarning and Config.InputLowerWarning tags. If the process value is outside these warning limits, a warning occurs (Warning = 0040h), and the InputWarning_H or InputWarning_L output parameter changes to TRUE.

Limiting the setpoint
You specify a high limit and low limit of the setpoint in the Config.SetpointUpperLimit and Config.SetpointLowerLimit tags. PID_Compact automatically limits the setpoint to the process value limits. You can limit the setpoint to a smaller range. PID_Compact checks whether this range falls within the process value limits. If the setpoint is outside these limits, the high or low limit is used as the setpoint, and output parameter SetpointLimit_H or SetpointLimit_L is set to TRUE.
The setpoint is limited in all operating modes.

Limiting the output value
You specify a high limit and low limit of the output value in the Config.OutputUpperLimit and Config.OutputLowerLimit tags. Output, ManualValue and SubstituteOutput are limited to these values. The output value limits must match the control logic.
The valid output value limit values depend on the Output used.

Output Output_PER Output_PWM

-100.0 to 100.0% -100.0 to 100.0% 0.0 to 100.0%

Rule:

OutputUpperLimit > OutputLowerLimit

Note
Use with two or more actuators
PID_Compact is not suitable for use with two or more actuators (for example, in heating/cooling applications), because different actuators need different PID parameters to achieve a good control response. Use PID_Temp for applications with two actuators acting in opposite directions.

PID control Function Manual, 10/2018, A5E35300227-AD

261

Instructions 9.1 PID_Compact
Substitute output value In the event of an error, PID_Compact can output a substitute output value that you define at the SubstituteOutput tag. The substitute output value must be within the output value limits.
Monitoring signal validity The values of the following parameters are monitored for validity when used:  Setpoint  Input  Input_PER  Disturbance  ManualValue  SubstituteOutput  Output  Output_PER  Output_PWM
Monitoring of the sampling time PID_Compact Ideally, the sampling time is equivalent to the cycle time of the calling OB. The PID_Compact instruction measures the time interval between two calls. This is the current sampling time. On every switchover of operating mode and during the initial startup, the mean value is formed from the first 10 sampling times. Too great a difference between the current sampling time and this mean value triggers an error (Error = 0800h). The error occurs during tuning if:  New mean value >= 1.1 x old mean value  New mean value <= 0.9 x old mean value The error occurs in automatic mode if:  New mean value >= 1.5 x old mean value  New mean value <= 0.5 x old mean value If you deactivate the sampling time monitoring (CycleTime.EnMonitoring = FALSE), you can also call PID_Compact in OB1. You must then accept a lower control quality due to the deviating sampling time.

262

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Sampling time of the PID algorithm
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_Compact are executed at every call.
If you use Output_PWM, the accuracy of the output signal is determined by the ratio of the PID algorithm sampling time to the cycle time of the OB. The cycle time should be at least 10 times the PID algorithm sampling time.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic. For cooling and discharge control systems, it may be necessary to invert the control logic. PID_Compact does not work with negative proportional gain. If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value. The control logic is also taken into account during pretuning and fine tuning.

PID control Function Manual, 10/2018, A5E35300227-AD

263

Instructions 9.1 PID_Compact

9.1.4.3

Input parameters of PID_Compact V2

Table 9- 1 Input parameters of PID_Compact V2

Parameter Setpoint Input

Data type REAL REAL

Default 0.0 0.0

Input_PER

INT

0

Disturbance ManualEnable

REAL BOOL

0.0 FALSE

ManualValue ErrorAck

REAL

0.0

BOOL

FALSE

Description Setpoint of the PID controller in automatic mode
A tag of the user program is used as source for the process value. If you are using parameter Input, then Config.InputPerOn = FALSE must be set.
An analog input is used as the source of the process value. If you are using parameter Input_PER, then Config.InputPerOn = TRUE must be set.
Disturbance variable or precontrol value
· A FALSE -> TRUE edge activates "manual mode", while State = 4, Mode remains unchanged.
As long as ManualEnable = TRUE, you cannot change the operating mode via a rising edge at ModeActivate or use the commissioning dialog.
· A TRUE -> FALSE edge activates the operating mode that is specified by Mode.
We recommend that you change the operating mode using ModeActivate only.
Manual value This value is used as the output value in manual mode. Values from Config.OutputLowerLimit to Config .OutputUpperLimit are permitted.
· FALSE -> TRUE edge
ErrorBits and Warning are reset.

264

PID control Function Manual, 10/2018, A5E35300227-AD

Parameter Reset
ModeActivate

Data type BOOL
BOOL

Default FALSE
FALSE

Instructions 9.1 PID_Compact
Description Restarts the controller. · FALSE -> TRUE edge
­ Switch to "Inactive" mode ­ ErrorBits and Warnings are reset. · As long as Reset = TRUE, ­ PID_Compact remains in "Inactive" mode
(State = 0). ­ You cannot change the operating mode with
Mode and ModeActivate or ManualEnable. ­ You cannot use the commissioning dialog. · TRUE -> FALSE edge ­ If ManualEnable = FALSE, PID_Compact
switches to the operating mode that is saved in Mode. ­ If Mode = 3, the integral action is treated as configured with the tag IntegralResetMode.
· FALSE -> TRUE edge
PID_Compact switches to the operating mode that is saved in the Mode parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

265

Instructions 9.1 PID_Compact

9.1.4.4

Output parameters of PID_Compact V2

Table 9- 2 Output parameters of PID_Compact V2

Parameter

Data type

Default

Description

ScaledInput

REAL

0.0

Scaled process value

The "Output", "Output_PER", and "Output_PWM" outputs can be used concurrently.

Output

REAL

0.0

Output value in REAL format

Output_PER

INT

0

Analog output value

Output_PWM

BOOL

FALSE

Pulse-width-modulated output value

The output value is formed by by variable On and Off times.

SetpointLimit_H

BOOL

FALSE

If SetpointLimit_H = TRUE, the absolute setpoint high limit is reached (Setpoint  Config.SetpointUpperLimit).

The setpoint is limited to Config.SetpointUpperLimit .

SetpointLimit_L

BOOL

FALSE

If SetpointLimit_L = TRUE, the absolute setpoint low limit has been reached (Setpoint  Config.SetpointLowerLimit).

The setpoint is limited to Config.SetpointLowerLimit .

InputWarning_H

BOOL

FALSE

If InputWarning_H = TRUE, the process value has reached or exceeded the warning high limit.

InputWarning_L

BOOL

FALSE

If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit.

State

INT

0

The State parameter (Page 278) shows the current operating mode of the PID controller. You can change the operating mode using the input parameter Mode and a rising edge at ModeActivate.

· State = 0: Inactive

· State = 1: Pretuning

· State = 2: Fine tuning

· State = 3: Automatic mode

· State = 4: Manual mode

· State = 5: Substitute output value with error monitoring

Error ErrorBits

BOOL DWORD

FALSE DW#16#0

If Error = TRUE, at least one error message is pending in this cycle.
The ErrorBits parameter (Page 282) shows which error messages are pending. ErrorBits is retentive and is reset upon a rising edge at Reset or ErrorAck.

266

PID control Function Manual, 10/2018, A5E35300227-AD

9.1.4.5

In/out parameters of PID_Compact V2

Table 9- 3 In/out parameters of PID_Compact V2

Parameter Mode

Data type INT

Default 4

See also

Parameters State and Mode V2 (Page 278)

Instructions 9.1 PID_Compact
Description At Mode, specify the operating mode to which PID_Compact is to switch. Options are: · Mode = 0: Inactive · Mode = 1: Pretuning · Mode = 2: Fine tuning · Mode = 3: Automatic mode · Mode = 4: Manual mode The operating mode is activated by: · Rising edge at ModeActivate · Falling edge at Reset · Falling edge at ManualEnable · Cold restart of CPU if RunModeBy-
Startup = TRUE Mode is retentive. A detailed description of the operating modes can be found in Parameters State and Mode V2 (Page 278).

PID control Function Manual, 10/2018, A5E35300227-AD

267

Instructions 9.1 PID_Compact

9.1.4.6

Static tags of PID_Compact V2
Note Change the tags identified with (1) only in "Inactive" mode to prevent malfunction of the PID controller.

Tag IntegralResetMode
OverwriteInitialOutputValue
RunModeByStartup
LoadBackUp PhysicalUnit PhysicalQuantity ActivateRecoverMode

Data type INT
REAL
BOOL
BOOL INT INT BOOL

Default Up to V2.2: 1, V2.3 or higher: 4
0.0
TRUE
FALSE 0 0 TRUE

Description
The IntegralResetMode V2 tag (Page 287) determines how the integral actionPIDCtrl.IntegralSum is pre-assigned when switching from "Inactive" operating mode to "Automatic mode". This setting only works for one cycle.
Options are:
· IntegralResetMode = 0: Smooth
· IntegralResetMode = 1: Delete
· IntegralResetMode = 2: Hold
· IntegralResetMode = 3: Pre-assign
· IntegralResetMode = 4: Like setpoint change (only for PID_Compact with version  2.3)
If one of the following conditions is met, the integral action PIDCtrl.IntegralSum is pre-assigned automatically as if Output = OverwriteInitialOutputValue in the previous cycle:
· IntegralResetMode = 3 when switching from "Inactive" operating mode to "Automatic mode".
· TRUE -> FALSE edge at parameter Reset and parameter Mode = 3
· PIDCtrl.PIDInit = TRUE in "Automatic mode" (available as of PID_Compact version 2.3)
Activate operating mode at Mode parameter after CPU restart
If RunModeByStartup = TRUE, PID_Compact starts in the operating mode saved in the Mode parameter after CPU startup.
If RunModeByStartup = FALSE, PID_Compact remains in "Inactive" mode after CPU startup.
If LoadBackUp = TRUE, the last set of PID parameters is reloaded. The set was saved prior to the last tuning. LoadBackUp is automatically set back to FALSE.
Unit of measurement of the process value and setpoint, e.g., ºC, or ºF.
Physical quantity of the process value and setpoint, e.g., temperature.
The Tag ActivateRecoverMode V2 (Page 284) determines the reaction to error.

268

PID control Function Manual, 10/2018, A5E35300227-AD

Tag Warning Progress CurrentSetpoint CancelTuningLevel
SubstituteOutput
SetSubstituteOutput
Config.InputPerOn(1) Config.InvertControl(1) Config.InputUpperLimit(1)

Data type Default DWORD 0

REAL

0.0

REAL

0.0

REAL

10.0

REAL

0.0

BOOL

TRUE

BOOL

TRUE

BOOL

FALSE

REAL

120.0

Instructions 9.1 PID_Compact
Description Tag Warning V2 (Page 286) shows the warnings since Reset = TRUE or ErrorAck =TRUE. Warning is retentive.
Progress of tuning as a percentage (0.0 - 100.0)
CurrentSetpoint always displays the current setpoint. This value is frozen during tuning.
Permissible fluctuation of setpoint during tuning. Tuning is not canceled until:
· Setpoint > CurrentSetpoint + CancelTuningLevel or
· Setpoint < CurrentSetpoint - CancelTuningLevel
Substitute output value When the following conditions are met, the substitute output value is used:
· An error has occurred in automatic mode.
· SetSubstituteOutput = TRUE
· ActivateRecoverMode = TRUE
If SetSubstituteOutput = TRUE and ActivateRecoverMode = TRUE, the substitute output value configured is output as long as an error is pending. If SetSubstituteOutput = FALSE and ActivateRecoverMode = TRUE, the actuator remains at the current output value as long as an error is pending. If ActivateRecoverMode = FALSE, SetSubstituteOutput is not effective. If SubstituteOutput is invalid (ErrorBits = 20000h), the substitute output value cannot be output.
If InputPerOn = TRUE, the Input_PER parameter is used. If InputPerOn = FALSE, the Input parameter is used.
Invert control logic If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value.
High limit of the process value Input and Input_PER are monitored to ensure adherence to this limit. At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). This pre-assignment ensures that an error is no longer signaled due to a violation of the "Process value high limit". Only a wire-break and a short-circuit are recognized and PID_Compact reacts according to the configured reaction to error. InputUpperLimit > InputLowerLimit

PID control Function Manual, 10/2018, A5E35300227-AD

269

Instructions 9.1 PID_Compact
Tag Config.InputLowerLimit(1) Config.InputUpperWarning(1)
Config.InputLowerWarning(1)
Config.OutputUpperLimit(1) Config.OutputLowerLimit(1)
Config.SetpointUpperLimit(1) Config.SetpointLowerLimit(1)
270

Data type REAL REAL
REAL
REAL REAL
REAL REAL

Default 0.0 3.402822e+38
-3.402822e+38
100.0 0.0
3.402822e+38 -3.402822e+38

Description
Low limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit.
InputLowerLimit < InputUpperLimit
Warning high limit of the process value
If you set InputUpperWarning outside the process value limits, the configured absolute process value high limit is used as the warning high limit.
If you configure InputUpperWarning within the process value limits, this value is used as the warning high limit.
InputUpperWarning > InputLowerWarning
InputUpperWarning  InputUpperLimit
Warning low limit of the process value
If you set InputLowerWarning outside the process value limits, the configured absolute process value low limit is used as the warning low limit.
If you configure InputLowerWarning within the process value limits, this value is used as the warning low limit.
InputLowerWarning < InputUpperWarning
InputLowerWarning  InputLowerLimit
High limit of output value
For details, see OutputLowerLimit
OutputUpperLimit > OutputLowerLimit
Low limit of output value
For Output and Output_PER, the range of values from -100.0 to +100.0, including zero, is valid. At 100.0, Output_PER = -27648; at +100.0, Output_PER = 27648.
For Output_PWM, the value range 0.0 to +100.0 applies.
The output value limits must match the control logic.
OutputLowerLimit < OutputUpperLimit
High limit of setpoint
If you configure SetpointUpperLimit outside the process value limits, the configured process value absolute high limit is used as the setpoint high limit.
If you configure SetpointUpperLimit within the process value limits, this value is used as the setpoint high limit.
Low limit of the setpoint
If you set SetpointLowerLimit outside the process value limits, the configured process value absolute low limit is used as the setpoint low limit.
If you set SetpointLowerLimit within the process value limits, this value is used as the setpoint low limit.

PID control Function Manual, 10/2018, A5E35300227-AD

Tag Config.MinimumOnTime(1)

Data type Default

REAL

0.0

Config.MinimumOffTime(1)

REAL

0.0

Config.InputScaling.UpperPointIn(1) REAL

27648.0

Config.InputScaling.LowerPointIn(1) REAL

0.0

Config.InputScaling .UpperPointOut(1)
Config.InputScaling .LowerPointOut(1)
CycleTime.StartEstimation
CycleTime.EnEstimation

REAL

100.0

REAL

0.0

BOOL

TRUE

BOOL

TRUE

CycleTime.EnMonitoring

BOOL

TRUE

CycleTime.Value(1)

REAL

0.1

CtrlParamsBackUp.Gain

REAL

1.0

CtrlParamsBackUp.Ti

REAL

20.0

CtrlParamsBackUp.Td

REAL

0.0

CtrlParamsBackUp.TdFiltRatio

REAL

0.2

CtrlParamsBackUp.PWeighting

REAL

1.0

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact
Description The minimum ON time of the pulse width modulation in seconds is rounded to MinimumOnTime = n×CycleTime.Value The minimum OFF time of the pulse width modulation in seconds is rounded to MinimumOffTime = n×CycleTime.Value Scaling Input_PER high Input_PER is converted to percent based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Scaling Input_PER low Input_PER is converted to percent based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Scaled high process value Input_PER is converted to percent based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Scaled low process value Input_PER is converted to percent based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. If CycleTime.StartEstimation = TRUE, the automatic determination of the cycle time is started. CycleTime.StartEstimation = FALSE once measurement is complete. If CycleTime.EnEstimation = TRUE, the PID_Compact sampling time is calculated. If CycleTime.EnEstimation = FALSE, the PID_Compact sampling time is not calculated and you need to correct the configuration of CycleTime.Value manually. If CycleTime.EnMonitoring = FALSE, the PID_Compact sampling time is not monitored. If it is not possible to execute PID_Compact within the sampling time, no error (ErrorBits=0800h) is output and PID_Compact does not switch to "Inactive" mode. PID_Compact sampling time in seconds CycleTime.Value is determined automatically and is usually equivalent to the cycle time of the calling OB. Saved proportional gain You can reload values from the CtrlParamsBackUp structure with LoadBackUp = TRUE. Saved integral action time [s] Saved derivative action time [s] Saved derivative delay coefficient Saved proportional action weighting factor
271

Instructions 9.1 PID_Compact

Tag CtrlParamsBackUp.DWeighting CtrlParamsBackUp.Cycle PIDSelfTune.SUT.CalculateParams

Data type REAL REAL BOOL

Default 1.0 1.0 FALSE

PIDSelfTune.SUT.TuneRule

INT

0

PIDSelfTune.SUT.State

INT

0

PIDSelfTune.TIR.RunIn

BOOL

FALSE

Description Saved derivative action weighting factor Saved sampling time of PID algorithm The properties of the controlled system are saved during tuning. If SUT.CalculateParams = TRUE, the parameters for pretuning are recalculated according to these properties. This enables you to change the parameter calculation method without having to repeat controller tuning. SUT.CalculateParams is set to FALSE after the calculation. Methods used to calculate parameters during pretuning:
· SUT.TuneRule = 0: PID according to Chien, Hrones and Reswick
· SUT.TuneRule = 1: PI according to Chien, Hrones and Reswick
The SUT.State tag indicates the current phase of pretuning:
· State = 0: Initialize pretuning
· State = 100: Calculate the standard deviation
· State = 200: Find the point of inflection
· State = 9900: Pretuning successful
· State = 1: Pretuning not successful
With the RunIn tag, you can specify that fine tuning can also be performed without pretuning.
· RunIn = FALSE
Pretuning is started when fine tuning is started from inactive or manual mode. If the requirements for pretuning are not met, PID_Compact reacts as if RunIn = TRUE.
If fine tuning is started from automatic mode, the system uses the existing PID parameters to control to the setpoint.
Only then will fine tuning start. If pretuning is not possible, PID_Compact switches to the mode from which tuning was started.
· RunIn = TRUE
The pretuning is skipped. PID_Compact tries to reach the setpoint with minimum or maximum output value. This can produce increased overshoot. Fine tuning then starts automatically.
RunIn is set to FALSE after fine tuning.

272

PID control Function Manual, 10/2018, A5E35300227-AD

Tag

Data type Default

PIDSelfTune.TIR.CalculateParams BOOL

FALSE

PIDSelfTune.TIR.TuneRule

INT

0

PIDSelfTune.TIR.State

INT

0

PIDCtrl.IntegralSum(1) PIDCtrl.PIDInit

REAL BOOL

0.0 FALSE

Retain.CtrlParams.Gain(1)

REAL

1.0

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact
Description The properties of the controlled system are saved during tuning. If TIR.CalculateParams = TRUE, the parameters for fine tuning are recalculated according to these properties. This enables you to change the parameter calculation method without having to repeat controller tuning. TIR.CalculateParams is set to FALSE after the calculation. Methods used to calculate parameters during fine tuning: · TIR.TuneRule = 0: PID automatic · TIR.TuneRule = 1: PID fast · TIR.TuneRule = 2: PID slow · TIR.TuneRule = 3: Ziegler-Nichols PID · TIR.TuneRule = 4: Ziegler-Nichols PI · TIR.TuneRule = 5: Ziegler-Nichols P
The TIR.State tag indicates the current phase of fine tuning: · State = -100 Fine tuning is not possible. Pretun-
ing will be performed first. · State = 0: Initialize fine tuning · State = 200: Calculate the standard deviation · State = 300: Attempt to reach setpoint · State = 400: Attempt to reach setpoint with exist-
ing PID parameters (if pretuning was successful) · State = 500: Determine oscillation and calculate parameters · State = 9900: Fine tuning successful · State = 1: Fine tuning not successful
Current integral action PIDCtrl.PIDInit is available as of PID_Compact version 2.3. If PIDCtrl.PIDInit = TRUE in "Automatic mode", the integral action PIDCtrl.IntegralSum is pre-assigned automatically as if Output = OverwriteInitialOutputValue in the previous cycle. This can be used for a Override control with PID_Compact V2 (Page 93). Active proportional gain To invert the control logic, use the Config.InvertControl tag. Negative values at Gain also invert the control logic. We recommend you use only InvertControl to set the control logic. The control logic is also inverted if InvertControl = TRUE and Gain < 0.0. Gain is retentive.
273

Instructions 9.1 PID_Compact
Tag Retain.CtrlParams.Ti(1)
Retain.CtrlParams.Td(1)

Data type Default

REAL

20.0

REAL

0.0

Retain.CtrlParams.TdFiltRatio(1)

REAL

0.2

Retain.CtrlParams.PWeighting(1)

REAL

1.0

Description
· CtrlParams.Ti > 0.0: Active integral action time
· CtrlParams.Ti = 0.0: Integral action is deactivated Ti is retentive.
· CtrlParams.Td > 0.0: Active derivative action time
· CtrlParams.Td = 0.0: Derivative action is deactivated
Td is retentive. Active derivative delay coefficient The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient
· 0.0: Derivative action is effective for one cycle only and therefore almost not effective.
· 0.5: This value has proved useful in practice for controlled systems with one dominant time constant.
· > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
TdFiltRatio is retentive. Active proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Proportional action for setpoint change is fully effective
· 0.0: Proportional action for setpoint change is not effective
The proportional action is always fully effective when the process value is changed. PWeighting is retentive.

274

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Tag Retain.CtrlParams.DWeighting(1)

Data type Default

REAL

1.0

Retain.CtrlParams.Cycle(1)

REAL

1.0

Description Active derivative action weighting
The derivative action may weaken with changes to the setpoint.
Values from 0.0 to 1.0 are applicable.
· 1.0: Derivative action is fully effective upon setpoint change
· 0.0: Derivative action is not effective upon setpoint change
The derivative action is always fully effective when the process value is changed.
DWeighting is retentive.
Active sampling time of the PID algorithm
CtrlParams.Cycle is calculated during tuning and rounded to an integer multiple of CycleTime .Value.CtrlParams.Cycle is used as time period of the pulse width modulation.
Cycle is retentive.

See also

Tag ActivateRecoverMode V2 (Page 284) Tag Warning V2 (Page 286) Downloading technology objects to device (Page 44)

PID control Function Manual, 10/2018, A5E35300227-AD

275

Instructions 9.1 PID_Compact

9.1.4.7

Changing the PID_Compact V2 interface The following table shows what has changed in the PID_Compact instruction interface.

PID_Compact V1 Input_PER
Output_PER Error
sb_RunModeByStartup

PID_Compact V2 Input_PER Disturbance ErrorAck ModeActivate Output_PER ErrorBits Error Mode RunModeByStartup IntegralResetMode OverwriteInitialOutputValue SetSubstituteOutput CancelTuningLevel SubstituteOutput

Change Data type from Word to Int New New New Data type from Word to Int Renamed New New Function
New New New New

The following table shows which variables have been renamed.

PID_Compact V1.x sb_GetCycleTime sb_EnCyclEstimation sb_EnCyclMonitoring sb_RunModeByStartup si_Unit si_Type sd_Warning sBackUp.r_Gain sBackUp.r_Ti sBackUp.r_Td sBackUp.r_A sBackUp.r_B sBackUp.r_C sBackUp.r_Cycle sPid_Calc.r_Cycle sPid_Calc.b_RunIn sPid_Calc.b_CalcParamSUT sPid_Calc.b_CalcParamTIR sPid_Calc.i_CtrlTypeSUT sPid_Calc.i_CtrlTypeTIR sPid_Calc.r_Progress

PID_Compact V2 CycleTime.StartEstimation CycleTime.EnEstimation CycleTime.EnMonitoring RunModeByStartup PhysicalUnit PhysicalQuantity Warning CtrlParamsBackUp.Gain CtrlParamsBackUp.Ti CtrlParamsBackUp.Td CtrlParamsBackUp.TdFiltRatio CtrlParamsBackUp.PWeighting CtrlParamsBackUp.DWeighting CtrlParamsBackUp.Cycle CycleTime.Value PIDSelfTune.TIR.RunIn PIDSelfTune.SUT.CalculateParams PIDSelfTune.TIR.CalculateParams PIDSelfTune.SUT.TuneRule PIDSelfTune.TIR.TuneRule Progress

276

PID control Function Manual, 10/2018, A5E35300227-AD

PID_Compact V1.x sPid_Cmpt.r_Sp_Hlm sPid_Cmpt.r_Sp_Llm sPid_Cmpt.r_Pv_Norm_IN_1 sPid_Cmpt.r_Pv_Norm_IN_2 sPid_Cmpt.r_Pv_Norm_OUT_1 sPid_Cmpt.r_Pv_Norm_OUT_2 sPid_Cmpt.r_Lmn_Hlm sPid_Cmpt.r_Lmn_Llm sPid_Cmpt.b_Input_PER_On sPid_Cmpt.b_LoadBackUp sPid_Cmpt.b_InvCtrl sPid_Cmpt.r_Lmn_Pwm_PPTm sPid_Cmpt.r_Lmn_Pwm_PBTm sPid_Cmpt.r_Pv_Hlm sPid_Cmpt.r_Pv_Llm sPid_Cmpt.r_Pv_HWrn sPid_Cmpt.r_Pv_LWrn sParamCalc.i_Event_SUT sParamCalc.i_Event_TIR sRet.i_Mode
sRet.r_Ctrl_Gain sRet.r_Ctrl_Ti sRet.r_Ctrl_Td sRet.r_Ctrl_A sRet.r_Ctrl_B sRet.r_Ctrl_C sRet.r_Ctrl_Cycle

Instructions 9.1 PID_Compact
PID_Compact V2 Config.SetpointUpperLimit Config.SetpointLowerLimit Config.InputScaling.LowerPointIn Config.InputScaling.UpperPointIn Config.InputScaling.LowerPointOut Config.InputScaling.UpperPointOut Config.OutputUpperLimit Config.OutputLowerLimit Config.InputPerOn LoadBackUp Config.InvertControl Config.MinimumOnTime Config.MinimumOffTime Config.InputUpperLimit Config.InputLowerLimit Config.InputUpperWarning Config.InputLowerWarning PIDSelfTune.SUT.State PIDSelfTune.TIR.State sRet.i_Mode has been omitted. The operating mode is changed using Mode and ModeActivate. Retain.CtrlParams.Gain Retain.CtrlParams.Ti Retain.CtrlParams.Td Retain.CtrlParams.TdFiltRatio Retain.CtrlParams.PWeighting Retain.CtrlParams.DWeighting Retain.CtrlParams.Cycle

PID control Function Manual, 10/2018, A5E35300227-AD

277

Instructions 9.1 PID_Compact

9.1.4.8

Parameters State and Mode V2

Correlation of the parameters
The State parameter shows the current operating mode of the PID controller. You cannot change the State parameter.
With a rising edge at ModeActivate, PID_Compact switches to the operating mode saved in the Mode in-out parameter.
When the CPU is switched on or switches from Stop to RUN mode, PID_Compact starts in the operating mode that is saved in the Mode parameter. To leave PID_Compact in "Inactive" mode, set RunModeByStartup = FALSE.

Meaning of values

State / Mode 0

Description of operating mode
Inactive
In "Inactive" operating mode, the output value 0.0 is always output, regardless of Config.OutputUpperLimit and Config.OutputLowerLimit. Pulse width modulation is off.

1

Pretuning

The pretuning determines the process response to a jump change of the output value and searches for the point of inflection. The PID parameters are calculated from the maximum rate of rise and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning.

Pretuning requirements:

· Inactive (State = 0), manual mode (State = 4), or automatic mode (State = 3)

· ManualEnable = FALSE

· Reset = FALSE

· The process value must not be too close to the setpoint.

|Setpoint - Input| > 0.3 * | Config.InputUpperLimit - Config.InputLowerLimit| and

|Setpoint - Input| > 0.5 * |Setpoint|
· The setpoint and the process value lie within the configured limits. The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when:
· Setpoint > CurrentSetpoint + CancelTuningLevel or
· Setpoint < CurrentSetpoint - CancelTuningLevel Before the PID parameters are recalculated, they are backed up and can be reactivated with LoadBackUp. The controller switches to automatic mode following successful pretuning. If pretuning is unsuccessful, the switchover of the operating mode is dependent on ActivateRecoverMode. The phase of pretuning is indicated with PIDSelfTune.SUT.State.

278

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

State / Mode 2

Description of operating mode
Fine tuning
Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are recalculated based on the amplitude and frequency of this oscillation. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning.
PID_Compact automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value.

The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when:

· Setpoint > CurrentSetpoint + CancelTuningLevel or

· Setpoint < CurrentSetpoint - CancelTuningLevel Before the PID parameters are recalculated, they are backed up and can be reactivated with LoadBackUp. Requirements for fine tuning:

· No disturbances are expected.

· The setpoint and the process value lie within the configured limits.

· ManualEnable = FALSE

· Reset = FALSE

· Automatic (State = 3), inactive (State = 0) or manual (State = 4) mode Fine tuning proceeds as follows when started from:

· Automatic mode (State = 3)

Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.

PID_Compact controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
· Inactive (State = 0) or manual mode (State = 4)

If the requirements for pretuning are met, pretuning is started. The determined PID parameters will be used for control until the control loop has stabilized and the requirements for fine tuning have been met.

If the process value for pretuning is already too near the setpoint or PIDSelfTune.TIR.RunIn = TRUE, an attempt is made to reach the setpoint with the minimum or maximum output value. This can produce increased overshoot.

Only then will fine tuning start. The controller switches to automatic mode following successful fine tuning. If fine tuning is unsuccessful, the switchover of the operating mode is dependent on ActivateRecoverMode.
The "Fine tuning" phase is indicated with PIDSelfTune.TIR.State.

3

Automatic mode

In automatic mode, PID_Compact corrects the controlled system in accordance with the parameters specified. The controller switches to automatic mode if one the following requirements is fulfilled:

· Pretuning successfully completed

· Fine tuning successfully completed

· Changing of the Mode in-out parameter to the value 3 and a rising edge at ModeActivate. The switchover from automatic mode to manual mode is only bumpless if carried out in the commissioning editor.
The ActivateRecoverMode tag is taken into consideration in automatic mode.

PID control Function Manual, 10/2018, A5E35300227-AD

279

Instructions 9.1 PID_Compact

State / Mode 4
5

Description of operating mode Manual mode
In manual mode, you specify a manual output value in the ManualValue parameter.
You can also activate this operating mode using ManualEnable = TRUE. We recommend that you change the operating mode using Mode and ModeActivate only.
The switchover from manual mode to automatic mode is bumpless. Manual mode is also possible when an error is pending.
Substitute output value with error monitoring
The control algorithm is deactivated. The SetSubstituteOutput tag determines which output value is output in this operating mode.

· SetSubstituteOutput = FALSE: Last valid output value

· SetSubstituteOutput = TRUE: Substitute output value You cannot activate this operating mode using Mode = 5.
In the event of an error, it is activated instead of "Inactive" operating mode if all the following conditions are met:

· Automatic mode (Mode = 3)

· ActivateRecoverMode = TRUE

· One or more errors have occurred in which ActivateRecoverMode is effective. As soon as the errors are no longer pending, PID_Compact switches back to automatic mode.

280

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

ENO characteristics If State = 0, then ENO = FALSE. If State  0, then ENO = TRUE.

Automatic switchover of operating mode during commissioning
Automatic mode is activated following successful pretuning or fine tuning. The following table shows how Mode and State change during successful pretuning.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 3

State 4 4 1
1 3

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning successfully completed Automatic mode is started

PID_Compact automatically switches the operating mode in the event of an error. The following table shows how Mode and State change during pretuning with errors.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 4

State 4 4 1
1 4

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning canceled Manual mode is started

If ActivateRecoverMode = TRUE, the operating mode that is saved in the Mode parameter is activated. At the start of pretuning or fine tuning, PID_Compact has saved the value of State in the Mode in/out parameter. PID_Compact therefore switches to the operating mode from which tuning was started.

If ActivateRecoverMode = FALSE, the system switches to "Inactive" operating mode.

See also

Output parameters of PID_Compact V2 (Page 266)

PID control Function Manual, 10/2018, A5E35300227-AD

281

Instructions 9.1 PID_Compact

9.1.4.9

Parameter ErrorBits V2
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 0003h, for example, indicates that the errors 0001h and 0002h are pending simultaneously.
In manual mode, PID_Compact uses ManualValue as output value. The exception is Errorbits = 10000h.

ErrorBits (DW#16#...) 0000 0001
0002
0004 0008 0010 0020 0080
0100

Description
There is no error. The "Input" parameter is outside the process value limits.
· Input > Config.InputUpperLimit or
· Input < Config.InputLowerLimit If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact remains in automatic mode. If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter. Invalid value at "Input_PER" parameter. Check whether an error is pending at the analog input. If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact outputs the configured substitute output value. As soon as the error is no longer pending, PID_Compact switches back to automatic mode. If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter. Error during fine tuning. Oscillation of the process value could not be maintained. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact cancels the tuning and switches to the operating mode that is saved in the Mode parameter. Error at start of pretuning. The process value is too close to the setpoint. Start fine tuning. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact cancels the tuning and switches to the operating mode that is saved in the Mode parameter. The setpoint was changed during tuning. You can set the permitted fluctuation of the setpoint at the CancelTuningLevel tag. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact cancels the tuning and switches to the operating mode that is saved in the Mode parameter. Pretuning is not permitted during fine tuning. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact remains in fine tuning mode. Error during pretuning. The output value limits are not configured correctly or the actual value does not react as expected. Check whether the limits of the output value are configured correctly and match the control logic. Also make sure that the actual value does not oscillate strongly before starting pretuning. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact cancels the tuning and switches to the operating mode that is saved in the Mode parameter. Error during fine tuning resulted in invalid parameters. If ActivateRecoverMode = TRUE before the error occurred, PID_Compact cancels the tuning and switches to the operating mode that is saved in the Mode parameter.

282

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

ErrorBits (DW#16#...) 0200
0400
0800
1000
10000 20000 40000

Description
Invalid value at "Input" parameter: Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact outputs the configured substitute output value. As soon as the error is no longer pending, PID_Compact switches back to automatic mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter.
Calculation of output value failed. Check the PID parameters.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact outputs the configured substitute output value. As soon as the error is no longer pending, PID_Compact switches back to automatic mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter.
Sampling time error: PID_Compact is not called within the sampling time of the cyclic interrupt OB.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact remains in automatic mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter.
If this error occurred during simulation with PLCSIM, see the notes under Simulating PID_Compact V2 with PLCSIM (Page 97).
Invalid value at "Setpoint" parameter: Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact outputs the configured substitute output value. As soon as the error is no longer pending, PID_Compact switches back to automatic mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Compact switches to the operating mode that is saved in the Mode parameter.
Invalid value at ManualValue parameter. Value has an invalid number format.
If ActivateRecoverMode = TRUE before an error occurred, PID_Compact uses SubstituteOutput as the output value. As soon as you specify a valid value in ManualValue, PID_Compact uses it as the output value.
Invalid value at SubstituteOutput tag. Value has an invalid number format.
PID_Compact uses the output value low limit as the output value.
If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_Compact switches back to automatic mode.
Invalid value at Disturbance parameter. Value has an invalid number format.
If automatic mode was active and ActivateRecoverMode = TRUE before the error occurred, Disturbance is set to zero. PID_Compact remains in automatic mode.
If pretuning or fine tuning mode was active and ActivateRecoverMode = TRUE before the error occurred, PID_Compact switches to the operating mode saved in the Mode parameter. If Disturbance in the current phase has no effect on the output value, tuning is not be canceled.

PID control Function Manual, 10/2018, A5E35300227-AD

283

Instructions 9.1 PID_Compact

9.1.4.10

Tag ActivateRecoverMode V2
The ActivateRecoverMode tag determines the reaction to error. The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred.

Automatic mode
NOTICE Your system may be damaged. If ActivateRecoverMode = TRUE, PID_Compact remains in automatic mode even if there is an error and the process limit values are exceeded. This may damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.

ActivateRecoverMode FALSE
TRUE

Description
PID_Compact automatically switches to "Inactive" mode in the event of an error. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. If errors occur frequently in automatic mode, this setting has a negative effect on the control response, because PID_Compact switches between the calculated output value and the substitute output value at each error. In this case, check the ErrorBits parameter and eliminate the cause of the error. If one or more of the following errors occur, PID_Compact stays in automatic mode:
· 0001h: The "Input" parameter is outside the process value limits. · 0800h: Sampling time error · 40000h: Invalid value at parameter Disturbance. If one or more of the following errors occur, PID_Compact switches to "Substitute output value with error monitoring" mode:
· 0002h: Invalid value at Input_PER parameter. · 0200h: Invalid value at Input parameter. · 0400h: Calculation of output value failed. · 1000h: Invalid value at Setpoint parameter. If the following error occurs, PID_Compact switches to "Substitute output value with error monitoring" mode and moves the actuator to Config.OutputLowerLimit:
· 20000h: Invalid value at SubstituteOutput tag. Value has an invalid number format. This characteristics are independent of SetSubstituteOutput. As soon as the errors are no longer pending, PID_Compact switches back to automatic mode.

284

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Pretuning and fine tuning

ActivateRecoverMode FALSE
TRUE

Description
PID_Compact automatically switches to "Inactive" mode in the event of an error. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. If the following error occurs, PID_Compact remains in the active mode: · 0020h: Pretuning is not permitted during fine tuning. The following errors are ignored: · 10000h: Invalid value at ManualValue parameter. · 20000h: Invalid value at SubstituteOutput tag. When any other error occurs, PID_Compact cancels the tuning and switches to the mode from which tuning was started.

Manual mode

ActivateRecoverMode is not effective in manual mode.

PID control Function Manual, 10/2018, A5E35300227-AD

285

Instructions 9.1 PID_Compact

9.1.4.11

Tag Warning V2
If several warnings are pending simultaneously, the values of the Warning tag are displayed with binary addition. The display of warning 0003h, for example, indicates that the warnings 0001h and 0002h are pending simultaneously.

Warning (DW#16#....) 0000 0001 0004 0008
0010 0020
0040 0080 0100 0200 1000

Description
No warning pending. The point of inflection was not found during pretuning. The setpoint was limited to the configured limits. Not all the necessary controlled system properties were defined for the selected method of calculation. Instead, the PID parameters were calculated using the TIR.TuneRule = 3 method. The operating mode could not be changed because Reset = TRUE or ManualEnable = TRUE. The cycle time of the calling OB limits the sampling time of the PID algorithm. Improve results by using shorter OB cycle times. The process value exceeded one of its warning limits. Invalid value at Mode. The operating mode is not switched. The manual value was limited to the limits of the controller output. The specified rule for tuning is not supported. No PID parameters are calculated. The substitute output value cannot be reached because it is outside the output value limits.
The following warnings are deleted as soon as the cause is eliminated:  0001h  0004h  0008h  0040h  0100h All other warnings are cleared with a rising edge at Reset or ErrorAck.

286

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.4.12

IntegralResetMode V2 tag
The IntegralResetMode tag determines how the integral action PIDCtrl.IntegralSum is preassigned:
 When switching from "Inactive" operating mode to "Automatic mode"
 With edge TRUE -> FALSE at parameter Reset and parameter Mode = 3
This setting only works for one cycle and is only effective if the integral action is activated (Retain.CtrlParams.Ti > 0.0 tag).

IntegralResetMode 0 1
2

Description
Smooth The value of PIDCtrl.IntegralSum is pre-assigned so that the switchover is bumpless, which means "Automatic mode" starts with the output value = 0.0 (parameter Output) and there is no jump of the output value regardless of the control deviation (setpoint ­ actual value). Delete We recommend setting the weighting of the proportional action (Retain.CtrlParams.PWeighting) to 1.0 if this option is used. The value of PIDCtrl.IntegralSum is deleted. Any control deviation will cause a jump change of the output value. The direction of the output value jump depends on the configured weighting of the proportional action (Retain.CtrlParams.PWeighting tag) and the control deviation:
· Proportional action weighting = 1.0:
Output value jump and control deviation have identical signs. Example: If the actual value value is smaller than the setpoint (positive control deviation), the output value jumps to a positive value.
· Proportional action weighting < 1.0:
For large control deviations, the output value jump and control deviation have identical signs. Example: If the actual value is much smaller than the setpoint (positive control deviation), the output value jumps to a positive value.
For small control deviations, the output value jump and control deviation have different signs. Example: If the actual value value is just below the setpoint (positive control deviation), the output value jumps to a negative value. This is usually not desirable, because it results in a temporary increase in the control deviation.
The smaller the configured weighting of the proportional action, the greater the control deviation must be to receive an output value jump with identical sign. We recommend setting the weighting of the proportional action (Retain.CtrlParams.PWeighting) to 1.0 when this option is used. Otherwise, you may experience the undesirable behavior described for small control deviations. Alternatively, you can also use IntegralResetMode = 4. This option guarantees identical signs of the output value jump and control deviation independent of the configured weighting of the proportional action and the control deviation. Hold The value of PIDCtrl.IntegralSum is not changed. You can define a new value using the user program.

PID control Function Manual, 10/2018, A5E35300227-AD

287

Instructions 9.1 PID_Compact

IntegralResetMode 3
4

Description
Pre-assign The value of PIDCtrl.IntegralSum is automatically pre-assigned as if Output = OverwriteInitialOutputValue in the last cycle. Like setpoint change (only for PID_Compact with version  2.3) The value of PIDCtrl.IntegralSum is automatically pre-assigned so that a similar output value jump results as for a PI controller in automatic mode in case of a setpoint change from the current actual value to the current setpoint. Any control deviation will cause a jump of the output value. Output value jump and control deviation have identical signs. Example: If the actual value value is smaller than the setpoint (positive control deviation), the output value jumps to a positive value. This is independent of the configured weighting of the proportional action and the control deviation.
If IntegralResetMode is assigned a value outside the valid value range, PID_Compact behaves as with the pre-assignment of IntegralResetMode:
 PID_Compact up to V2.2: IntegralResetMode = 1
 PID_Compact V2.3 and higher: IntegralResetMode = 4
All statements made above regarding the sign of the output value jump are based on a normal control logic (Config.InvertControl = FALSE tag). With an inverted control logic (Config.InvertControl = TRUE), the output value jump will have a reverse sign.

288

PID control Function Manual, 10/2018, A5E35300227-AD

9.1.4.13

Instructions 9.1 PID_Compact
Sample program for PID_Compact In the following example, you are controlling temperature values with the technology object of the instruction "PID_Compact". The temperature values are simulated based on a block which simulates a delay element of the third order (PT3 element). The PID parameters of the technology object can be set automatically via the pretuning.

Data storage

Create seven tags in a global data block for storage of the interconnection data.

PID control Function Manual, 10/2018, A5E35300227-AD

289

Instructions 9.1 PID_Compact Interconnection of the parameters
You call the following interconnections in a cyclic interrupt OB. Network 1: You interconnect the parameters of the instruction "PID_Compact" as follows.
Network 2: You interconnect the parameters of the block simulating the temperature values "SLI_PROC_C" as follows.

290

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact
Technology object
You configure the technology object with the properties of the instruction "PID_Compact" or by using the path Technology object > Configuration. The controller type and the input/output parameters are important for the example. With the controller type, you make a preselection for the unit of the value to the controlled. In this example, "Temperature" with the unit "°C" is used as controller type. The parameters of the "PID_Compact" are already interconnected with global tags. Therefore, the information on use of the parameters Input and Output is sufficient.

PID control Function Manual, 10/2018, A5E35300227-AD

291

Instructions 9.1 PID_Compact
Procedure for starting the control After the download to the CPU the PID_Compact is in manual mode with manual value 0.0. To start the control, follow these steps: 1. Open the Commissioning of the technology object "SLI_Tech_PID_Compact". 2. Click the "Start" button in the "Measurement" area.
Measurement starts and PID_Compact can be activated. 3. Pretuning is selected.
Click the "Start" button in the "Tuning mode" area. A pretuning is performed. The PID parameters are automatically adjusted to the process. After the completion of the pretuning PID_Compact switches to automatic mode. Note Alternative to start PID_Compact Alternatively, you can switch PID_Compact to automatic mode in the "Online status of controller" area with the "Stop PID_Compact" / "Start PID_Compact" without pretuning. In this case the controller uses default values for the PID parameters and shows a worse controller behavior for the application case.

292

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact Procedure for stopping control To stop and exit PID_Compact and the program, follow these steps: 1. Click the "Stop PID_Compact" button in the technology object "SLI_Tech_PID_Compact" in the "Online status of controller" area.
The instruction "PID_Compact" exits the control and outputs the value "0.0" as manipulated variable. 2. Click the "Stop" button in the "Measurement" area. 3. To set the process value immediately to the value "0.0", follow these steps: In the block "SLI_OB_PID_Compact", set the "resetAll" tag to the value "TRUE", and then to the value "FALSE".

PID control Function Manual, 10/2018, A5E35300227-AD

293

Instructions 9.1 PID_Compact
"PID_Compact" instruction
The setpoint for the temperature that is to be controlled is specified at the parameter Setpoint ("setpoint"). The control is started when the instruction "PID_Compact" was started with the technology object. The instruction "PID_Compact" outputs a manipulated variable at the output parameter Output ("outputValue"). The process value of the temperature is transferred to the instruction "PID_Compact" with the input parameter Input ("inputValue").
The instruction "PID_Compact" adjusts the manipulated variable ("outputValue") depending on the history of the difference between setpoint ("setpoint") and process value ("inputValue") . The process is repeated so that the process value ("inputValue") approaches the setpoint ("setpoint") through the manipulated variable ("outputValue").
The current operating mode of the instruction "PID_Compact" is displayed at the output parameter State ("state"). After pretuning (the value of "state" is "1"), the PID_Compact switches to automatic mode (the value is "3").
The output parameter Error ("error") currently shows that no error is pending. The output parameter ErrorBits ("errorBits") provides information on the error type in case of error. If an error occurs, this can be acknowledged in the technology object, in the optimization status area with the "ErrorAck" button.

294

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

"SLI_PROC_C" block
The "SLI_PROC_C" block simulates the process value ("inputValue") of the rising temperature of a plant. The block "SLI_PROC_C" contains the manipulated variable of the controller ("outputValue) and simulates the temperature behavior of the process. This temperature is fed as process value ("inputValue") into the controller.
A change in the values of the "resetAll" tag (of the comRst parameter) has the following effects:

Parameter comRst ("resetAll")

The instruction "PID_Compact" is running

comRst ("resetAll")

The "SLI_PROC_C" block outputs a

remains set to the value new process value ("inputValue")

"FALSE"

based on a manipulated variable

("outputValue").

comRst ("resetAll"): Change from "FALSE" to the value "TRUE"

Both manipulated variable ("outputValue") and output process value ("inputValue") are reset to "0.0".

comRst ("resetAll"):

Temperature control starts again.

Change from "TRUE" to

the value "FALSE"

The instruction "PID_Compact" was stopped
The "SLI_PROC_C" block does not receive a manipulated variable > "0.0", but it still outputs a new process value > "0.0".
The output process value ("inputValue") / the temperature of the "SLI_PROC_C" block is reset to "0.0".
The output process value / the temperature ("inputValue") remains "0.0".

PID control Function Manual, 10/2018, A5E35300227-AD

295

Instructions 9.1 PID_Compact

Program code

You can find additional information about the program code for the above-named example under the keyword "Sample Library for Instructions".

296

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.5

PID_Compact V1

9.1.5.1

Description of PID_Compact V1

Description

The PID_Compact instruction provides a PID controller with integrated tuning for automatic and manual mode.

Call PID_Compact is called in the constant interval of the cycle time of the calling OB (preferably in a cyclic interrupt OB).
Download to device The actual values of retentive tags are only updated when you download PID_Compact completely. Downloading technology objects to device (Page 44)

Startup

At the startup of the CPU, PID_Compact starts in the operating mode that was last active. To retain PID_ Compact in "Inactive" mode, set sb_RunModeByStartup = FALSE.

Monitoring of the sampling time PID_Compact
Ideally, the sampling time is equivalent to the cycle time of the calling OB. The PID_Compact instruction measures the time interval between two calls. This is the current sampling time. On every switchover of operating mode and during the initial startup, the mean value is formed from the first 10 sampling times. If the current sampling time deviates too much from this mean value, Error = 0800 hex occurs and PID_Compact switches to "Inactive" mode.
PID_Compact, Version 1.1 or higher is set to "Inactive" mode during controller tuning under the following conditions:
 New mean value >= 1.1 x old mean value
 New mean value <= 0.9 x old mean value
In automatic mode, PID_Compact, Version 1.1 or higher, is set to "Inactive" mode under the following conditions:
 New mean value >= 1.5 x old mean value
 New mean value <= 0.5 x old mean value

PID control Function Manual, 10/2018, A5E35300227-AD

297

Instructions 9.1 PID_Compact

During controller tuning and in automatic mode, PID_Compact 1.0 is set to "Inactive" operating mode under the following conditions:  New mean value >= 1.1 x old mean value  New mean value <= 0.9 x old mean value  Current sampling time >= 1.5 x current mean value  Current sampling time <= 0.5 x current mean value

Sampling time of the PID algorithm
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_Compact are executed at every call.

PID algorithm

PID_Compact is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions. The following equation is used to calculate the output value.

Symbol y Kp s b w x TI a
c

Description Output value Proportional gain Laplace operator Proportional action weighting Setpoint Process value Integral action time Derivative delay coefficient (T1 = a × TD) Derivative action time Derivative action weighting

298

PID control Function Manual, 10/2018, A5E35300227-AD

Block diagram of PID_Compact

Instructions 9.1 PID_Compact

Block diagram of PIDT1 with anti-windup

PID control Function Manual, 10/2018, A5E35300227-AD

299

Instructions 9.1 PID_Compact

Reaction to error
If errors occur, they are output in parameter Error, and PID_Compact changes to "Inactive" mode. Reset the errors using the Reset parameter.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic. For cooling and discharge control systems, it may be necessary to invert the control logic. PID_Compact does not work with negative proportional gain. If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value. The control logic is also taken into account during pretuning and fine tuning.

See also

Control mode V1 (Page 99)

300

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.5.2

Input parameters of PID_Compact V1

Table 9- 4 Input parameters of PID_Compact V1

Parameter Setpoint Input

Data type REAL REAL

Default 0.0 0.0

Input_PER

WORD

W#16#0

ManualEnable

BOOL

FALSE

ManualValue Reset

REAL BOOL

0.0 FALSE

Description
Setpoint of the PID controller in automatic mode
A variable of the user program is used as source for the process value.
If you are using parameter Input, then sPid_Cmpt.b_Input_PER_On = FALSE must be set.
Analog input as the source of the process value
If you are using parameter Input_PER, then sPid_Cmpt.b_Input_PER_On = TRUE must be set.
· A FALSE -> TRUE edge selects "Manual mode", while State = 4, sRet.i_Mode remains unchanged.
· A TRUE -> FALSE edge selects the most recently active operating mode, State =sRet.i_Mode
A change of sRet.i_Mode will not take effect during ManualEnable = TRUE. The change of sRet.i_Mode will only be considered upon a TRUE -> FALSE edge at ManualEnable .
PID_Compact V1.2 und PID_Compact V1.0
If at start of the CPU ManualEnable = TRUE, PID_Compact starts in manual mode. A rising edge (FALSE > TRUE) at ManualEnable is not necessary.
PID_Compact V1.1
At the start of the CPU, PID_Compact only switches to manual mode with a rising edge (FALSE->TRUE) at ManualEnable . Without rising edge, PID_Compact starts in the last operating mode in which ManualEnable was FALSE.
Manual value
This value is used as the output value in manual mode.
The Reset parameter (Page 313) restarts the controller.

PID control Function Manual, 10/2018, A5E35300227-AD

301

Instructions 9.1 PID_Compact

9.1.5.3

Output parameters of PID_Compact V1

Table 9- 5 Output parameters of PID_Compact V1

Parameter

Data type Default

Description

ScaledInput

REAL

0.0

Output of the scaled process value

Outputs "Output", "Output_PER", and "Output_PWM" can be used concurrently.

Output

REAL

0.0

Output value in REAL format

Output_PER

WORD

W#16#0

Analog output value

Output_PWM

BOOL

FALSE

Pulse-width-modulated output value

The output value is formed by minimum On and Off times.

SetpointLimit_H

BOOL

FALSE

If SetpointLimit_H = TRUE, the setpoint absolute high limit is reached. The setpoint in the CPU is limited to the configured setpoint absolute high limit. The configured process value absolute high limit is the default for the setpoint high limit.

If you set sPid_Cmpt.r_Sp_Hlm to a value within the process value limits, this value is used as the setpoint high limit.

SetpointLimit_L

BOOL

FALSE

If SetpointLimit_L = TRUE, the setpoint absolute low limit has been reached. In the CPU, the setpoint is limited to the configured setpoint absolute low limit. The configured process value absolute low limit is the default setting for the setpoint low limit.

If you set sPid_Cmpt.r_Sp_Llm to a value within the process value limits, this value is used as the setpoint low limit.

InputWarning_H BOOL

FALSE

If InputWarning_H = TRUE, the process value has reached or exceeded the warning high limit.

InputWarning_L

BOOL

FALSE

If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit.

State

INT

0

The State parameter (Page 308) shows the current operating mode of the PID controller. To change the operating mode, use variable sRet.i_Mode.

· State = 0: Inactive · State = 1: pretuning

· State = 2: fine tuning

· State = 3: Automatic mode · State = 4: Manual mode

Error

DWORD W#16#0

The Error parameter (Page 312) indicates the error messages. Error = 0000: No error pending.

302

PID control Function Manual, 10/2018, A5E35300227-AD

9.1.5.4

Instructions 9.1 PID_Compact
Static tags of PID_Compact V1
Note You must not change tags that are not listed. These are used for internal purposes only. Change the tags identified with (1) only in "Inactive" mode to prevent malfunction of the PID controller. "Inactive" mode is forced by setting the "sRet.i_Mode" tag to "0".

Table 9- 6 Static tags of PID_Compact V1

Tag sb_GetCycleTime

Data type BOOL

Default TRUE

sb_EnCyclEstimation sb_EnCyclMonitoring

BOOL BOOL

TRUE TRUE

sb_RunModeByStartup

BOOL

TRUE

si_Unit
si_Type
sd_Warning
sBackUp.r_Gain
sBackUp.r_Ti sBackUp.r_Td sBackUp.r_A sBackUp.r_B sBackUp.r_C sBackUp.r_Cycle

INT INT DWORD

0 0 DW#16#0

REAL

1.0

REAL

20.0

REAL

0.0

REAL

0.0

REAL

0.0

REAL

0.0

REAL

1.0

Description
If sb_GetCycleTime = TRUE, the automatic determination of the cycle time is started. CycleTime.StartEstimation = FALSE once measurement is complete.
If sb_EnCyclEstimation = TRUE, the PID_Compact sampling time is not monitored.
If sb_EnCyclMonitoring = FALSE, the PID_Compact sampling time is not monitored. If it is not possible to execute PID_Compact within the sampling time, an 0800 error is not output and PID_Compact does not change to "Inactive" mode.
Activate Mode after CPU restart
If sb_RunModeByStartup = FALSE, the controller will remain inactive after a CPU startup.
After a CPU startup and if sb_RunModeByStartup = TRUE, the controller will return to the most recently active operating mode.
Unit of measurement of the process value and setpoint, e.g., ºC, or ºF.
Physical quantity of the process value and setpoint, e.g., temperature.
Variable sd_warning (Page 315) displays the warnings generated since the reset, or since the last change of the operating mode.
Saved proportional gain
You can reload values from the sBackUp structure with sPid_Cmpt.b_LoadBackUp = TRUE.
Saved integral action time [s]
Saved derivative action time [s]
Saved derivative delay coefficient
Saved proportional action weighting factor
Saved derivative action weighting factor
Saved sampling time of PID algorithm

PID control Function Manual, 10/2018, A5E35300227-AD

303

Instructions 9.1 PID_Compact
Tag sPid_Calc.r_Cycle(1)
sPid_Calc.b_RunIn

Data type REAL

Default 0.1

BOOL

FALSE

sPid_Calc.b_CalcParamSUT

BOOL

FALSE

sPid_Calc.b_CalcParamTIR

BOOL

FALSE

sPid_Calc.i_CtrlTypeSUT

INT

0

Description Sampling time of the PID_Compact instruction r_Cycle is determined automatically and is usually equivalent to the cycle time of the calling OB.
· b_RunIn = FALSE
Pretuning is started when fine tuning is started from inactive or manual mode. If the requirements for pretuning are not met, PID_Compact reacts as if b_RunIn = TRUE.
If fine tuning is started from automatic mode, the system uses the existing PID parameters to control to the setpoint.
Only then will fine tuning start. If pretuning is not possible, PID_Compact switches to "Inactive" mode.
· b_RunIn = TRUE
The pretuning is skipped. PID_3Compact tries to reach the setpoint with minimum or maximum output value. This can produce increased overshoot. Fine tuning then starts automatically.
b_RunIn is set to FALSE after fine tuning. The parameters for pretuning will be recalculated if b_CalcParamSUT = TRUE. This enables you to change the parameter calculation method without having to repeat controller tuning. b_CalcParamSUT is set to FALSE after the calculation.
The parameters for fine tuning will be recalculated if b_CalcParamTIR = TRUE. This enables you to change the parameter calculation method without having to repeat controller tuning. b_CalcParamTIR will be set to FALSE after calculation.
Methods used to calculate parameters during pretuning:
· i_CtrlTypeSUT = 0: PID according to Chien, Hrones and Reswick
· i_CtrlTypeSUT = 1: PI according to Chien, Hrones and Reswick

304

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Tag sPid_Calc.i_CtrlTypeTIR
sPid_Calc.r_Progress sPid_Cmpt.r_Sp_Hlm(1)
sPid_Cmpt.r_Sp_Llm(1)
sPid_Cmpt.r_Pv_Norm_IN_1(1) sPid_Cmpt.r_Pv_Norm_IN_2(1) sPid_Cmpt.r_Pv_Norm_OUT_1(1) sPid_Cmpt.r_Pv_Norm_OUT_2(1) sPid_Cmpt.r_Lmn_Hlm(1) sPid_Cmpt.r_Lmn_Llm(1)

Data type INT
REAL REAL
REAL
REAL REAL REAL REAL REAL REAL

Default 0
0.0 +3.402822e+38
-3.402822e+38
0.0 27648.0 0.0 100.0 100.0 0.0

Description
Methods used to calculate parameters during fine tuning:
· i_CtrlTypeTIR = 0: PID automatic
· i_CtrlTypeTIR = 1: PID fast
· i_CtrlTypeTIR = 2: PID slow
· i_CtrlTypeTIR = 3: Ziegler-Nichols PID
· i_CtrlTypeTIR = 4: Ziegler-Nichols PI
· i_CtrlTypeTIR = 5: Ziegler-Nichols P
Progress of tuning as a percentage (0.0 - 100.0)
High limit of setpoint
If you configure sPid_Cmpt.r_Sp_Hlm outside the process value limits, the configured process value absolute high limit is used as the setpoint high limit.
If you set sPid_Cmpt.r_Sp_Hlm within the process value limits, this value is used as the setpoint high limit.
Low limit of the setpoint
If you set sPid_Cmpt.r_Sp_Llm outside the process value limits, the configured process value absolute low limit is used as the setpoint low limit.
If you set sPid_Cmpt.r_Sp_Llm within the process value limits, this value is used as the setpoint low limit.
Scaling Input_PER low
Input_PER is converted to percent based on the two value pairs r_Pv_Norm_OUT_1, r_Pv_Norm_IN_1 and r_Pv_Norm_OUT_2, r_Pv_Norm_IN_2 from the sPid_Cmpt structure.
Scaling Input_PER high
Input_PER is converted to percent based on the two value pairs r_Pv_Norm_OUT_1, r_Pv_Norm_IN_1 and r_Pv_Norm_OUT_2, r_Pv_Norm_IN_2 from the sPid_Cmpt structure.
Scaled low process value
Input_PER is converted to percent based on the two value pairs r_Pv_Norm_OUT_1, r_Pv_Norm_IN_1 and r_Pv_Norm_OUT_2, r_Pv_Norm_IN_2 from the sPid_Cmpt structure.
Scaled high process value
Input_PER is converted to percent based on the two value pairs r_Pv_Norm_OUT_1, r_Pv_Norm_IN_1 and r_Pv_Norm_OUT_2, r_Pv_Norm_IN_2 from the sPid_Cmpt structure.
Output value high limit for output parameter "Output"
Low output value limit for output parameter "Output"

PID control Function Manual, 10/2018, A5E35300227-AD

305

Instructions 9.1 PID_Compact

Tag sPid_Cmpt.b_Input_PER_On(1) sPid_Cmpt.b_LoadBackUp sPid_Cmpt.b_InvCtrl(1) sPid_Cmpt.r_Lmn_Pwm_PPTm(1) sPid_Cmpt.r_Lmn_Pwm_PBTm(1) sPid_Cmpt.r_Pv_Hlm(1)
sPid_Cmpt.r_Pv_Llm(1) sPid_Cmpt.r_Pv_HWrn(1)
sPid_Cmpt.r_Pv_LWrn(1)
sPidCalc.i_Ctrl_IOutv(1) sParamCalc.i_Event_SUT

Data type BOOL BOOL BOOL REAL REAL REAL
REAL REAL
REAL
REAL INT

Default TRUE FALSE FALSE 0.0 0.0 120.0
0.0 +3.402822e+38
-3.402822e+38
0.0 0

Description
If b_Input_PER_On = TRUE, then parameter Input_PER is used. If b_Input_PER_On = FALSE, then parameter Input is used.
Activate the back-up parameter set. If an optimization has failed, you can reactivate the previous PID parameters by setting this bit.
Invert control logic
With b_InvCtrl = TRUE, an increasing control deviation causes a reduction in the output value.
The minimum ON time of the pulse width modulation in seconds is rounded to
r_Lmn_Pwm_PPTm = r_Cycle or r_Lmn_Pwm_PPTm = n*r_Cycle
The minimum OFF time of the pulse width modulation in seconds is rounded to
r_Lmn_Pwm_PBTm = r_Cycle or r_Lmn_Pwm_PBTm = n*r_Cycle
High limit of the process value
At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). An error is no longer reported for a violation of the "Process value high limit". Only a wire-break and a short-circuit are recognized and the PID_Compact switches to "Inactive" mode.
r_Pv_Hlm > r_Pv_Llm
Low limit of the process value
r_Pv_Llm < r_Pv_Hlm
Warning high limit of the process value
If you set r_Pv_HWrn outside the process value limits, the configured process value absolute high limit is used as the warning high limit.
If you configure r_Pv_HWrn within the process value limits, this value is used as the warning high limit.
r_Pv_HWrn > r_Pv_LWrn
r_Pv_HWrn  r_Pv_Hlm
Warning low limit of the process value
If you set r_Pv_LWrn outside the process value limits, the configured process value absolute low limit is used as the warning low limit.
If you configure r_Pv_LWrn within the process value limits, this value is used as the warning low limit.
r_Pv_LWrn < r_Pv_HWrn
r_Pv_LWrn  r_Pv_LWrn
Current integral action
Variable i_Event_SUT (Page 315) indicates the current phase of "pretuning":

306

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Tag sParamCalc.i_Event_TIR sRet.i_Mode
sRet.r_Ctrl_Gain(1) sRet.r_Ctrl_Ti(1) sRet.r_Ctrl_Td(1)
sRet.r_Ctrl_A(1) sRet.r_Ctrl_B(1) sRet.r_Ctrl_C(1) sRet.r_Ctrl_Cycle(1)

Data type INT

Default 0

INT

0

REAL

1.0

REAL

20.0

REAL

0.0

REAL

0.0

REAL

0.0

REAL

0.0

REAL

1.0

Description Variable i_Event_TIR (Page 316) indicates the current phase of "fine tuning": The operating mode is changed edge-triggered. The following operating mode is enabled on a change to
· i_Mode = 0: "Inactive" mode (controller stop) · i_Mode = 1: "Pretuning" mode · i_Mode = 2: "Fine tuning" mode · i_Mode = 3: "Automatic" mode · i_Mode = 4: "Manual" mode i_Mode is retentive. Active proportional gain Gain is retentive.
· r_Ctrl_Ti > 0.0: Active integral action time · r_Ctrl_Ti = 0.0: Integral action is deactivated r_Ctrl_Ti is retentive.
· r_Ctrl_Td > 0.0: Active derivative action time · r_Ctrl_Td = 0.0: Derivative action is deactivat-
ed r_Ctrl_Td is retentive. Active derivative delay coefficient r_Ctrl_A is retentive. Active proportional action weighting r_Ctrl_B is retentive. Active derivative action weighting r_Ctrl_C is retentive. Active sampling time of the PID algorithm r_Ctrl_Cycle is calculated during tuning and rounded to an integer multiple of r_Cycle. r_Ctrl_Cycle is used as time period of the pulse width modulation. r_Ctrl_Cycle is retentive.

See also

Downloading technology objects to device (Page 44)

PID control Function Manual, 10/2018, A5E35300227-AD

307

Instructions 9.1 PID_Compact

9.1.5.5

Parameters State and sRet.i_Mode V1

Correlation of the parameters
The State parameter indicates the current operating mode of the PID controller. You cannot modify the State parameter.
You need to modify the sRet.i_Mode tag to change the operating mode. This also applies when the value for the new operating mode is already in sRet.i_Mode. First set sRet.i_Mode = 0 and then sRet.i_Mode = 3. Provided the current operating mode of the controller supports this change, State is set to the value of sRet.i_Mode.
When PID_Compact automatically switches the operating mode, the following applies: State != sRet.i_Mode.
Examples:
 Successful pretuning State = 3 and sRet.i_Mode = 1
 Error State = 0 and sRet.i_Mode remains at the same value, e.g sRet.i_Mode = 3
 ManualEnalbe = TRUE State = 4 and sRet.i_Mode remain at the previous value, for example, sRet.i_Mode = 3
Note
You wish to repeat successful fine tuning without exiting automatic mode with i_Mode = 0.
Setting sRet.i_Mode to an invalid value such as 9999 for one cycle has no effect on State. Set Mode = 2 in the next cycle. You can generate a change to sRet.i_Mode without first switching to "inactive" mode.

308

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

Meaning of values

State / sRet.i_Mode 0
1

Description of the operating mode
Inactive The controller is switched off. The controller was in "inactive" mode before pretuning was performed. The PID controller will change to "inactive" mode when running if an error occurs or if the "Deactivate controller" icon is clicked in the commissioning window. Pretuning The pretuning determines the process response to a jump of the output value and searches for the point of inflection. The optimized PID parameters are calculated as a function of the maximum rate of rise and dead time of the controlled system. Pretuning requirements: · The controller is in inactive mode or manual mode · ManualEnable = FALSE · The process value must not be too close to the setpoint.

|Setpoint - Input| > 0.3 * |sPid_Cmpt.r_Pv_Hlm - sPid_Cmpt.r_Pv_Llm| and

|Setpoint - Input| > 0.5 * |Setpoint|
· The setpoint may not be changed during pretuning. The higher the stability of the process value, the easier it is to calculate the PID parameters and increase precision of the result. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise.
PID parameters are backed up before they are recalculated and can be reactivated with sPid_Cmpt.b_LoadBackUp.
There is a change to automatic mode following successful pretuning and to "inactive" mode following unsuccessful pretuning.
The phase of pretuning is indicated with Tag i_Event_SUT V1 (Page 315).

PID control Function Manual, 10/2018, A5E35300227-AD

309

Instructions 9.1 PID_Compact

State /

Description of the operating mode

sRet.i_Mode

2

Fine tuning

Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are optimized based on the amplitude and frequency of this oscillation. The differences between the process response during pretuning and fine tuning are analyzed. All PID parameters are recalculated on the basis of the findings. PID parameters from fine tuning usually have better master control and disturbance behavior than PID parameters from pretuning.
PID_Compact automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value.

PID parameters are backed up before they are recalculated and can be reactivated with sPid_Cmpt.b_LoadBackUp.
Requirements for fine tuning:

· No disturbances are expected.

· The setpoint and the process value lie within the configured limits.

· The setpoint may not be changed during fine tuning.

· ManualEnable = FALSE

· Automatic (State = 3), inactive (State = 0) or manual (State = 4) mode Fine tuning proceeds as follows when started in:

· Automatic mode (State = 3)

Start fine tuning in automatic mode if you wish to improve the existing PID parameters using controller tuning.

PID_Comact will regulate using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
· Inactive (State = 0) or manual (State = 4) mode

If the requirements for pretuning are met, pretuning is started. The PID parameters established will be used for adjustment until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start. If pretuning is not possible, PID_Compact will change to "Inactive" mode.

An attempt is made to reach the setpoint with a minimum or maximum output value if the process value for pretuning is already too near the setpoint or sPid_Calc.b_RunIn = TRUE. This can produce increased overshoot.
The controller will change to "automatic mode" after successfully completed "fine tuning" and to "inactive" mode if "fine tuning" has not been successfully completed.
The "Fine tuning" phase is indicated with Tag i_Event_TIR V1 (Page 316).

310

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

State / sRet.i_Mode 3
4

Description of the operating mode
Automatic mode In automatic mode, PID_Compact corrects the controlled system in accordance with the parameters specified. The controller changes to automatic mode if one the following conditions is fulfilled:
· Pretuning successfully completed · Fine tuning successfully completed · Change of variable sRet.i_Mode to the value 3. After CPU startup or change from Stop to RUN mode, PID_Compact will start in the most recently active operating mode. To retain PID_Compact in "Inactive" mode, set sb_RunModeByStartup = FALSE. Manual mode In manual mode, you specify a manual output value in the ManualValue parameter. This operating mode is enabled if sRet.i_Mode = 4, or at the rising edge on ManualEnable. If ManualEnable changes to TRUE, only State will change. sRet.i_Mode will retain its current value. PID_Compact will return to the previous operating mode upon a falling edge at ManualEnable. The change to automatic mode is bumpless.

See also

Output parameters of PID_Compact V1 (Page 302) Pretuning V1 (Page 112) Fine tuning V1 (Page 114) "Manual" mode V1 (Page 116) Tag i_Event_SUT V1 (Page 315) Tag i_Event_TIR V1 (Page 316)

PID control Function Manual, 10/2018, A5E35300227-AD

311

Instructions 9.1 PID_Compact

9.1.5.6

Parameter Error V1
If several errors are pending simultaneously, the values of the error codes are displayed with binary addition. The display of error code 0003, for example, indicates that the errors 0001 and 0002 are pending simultaneously.

Error (DW#16#...) 0000 0001
0002 0004 0008 0010 0020 0080
0100 0200 0400 0800
1000

Description
There is no error. The "Input" parameter is outside the process value limits. · Input > sPid_Cmpt.r_Pv_Hlm or · Input < sPid_Cmpt.r_Pv_Llm You cannot move the actuator again until you eliminate the error. Invalid value at "Input_PER" parameter. Check whether an error is pending at the analog input. Error during fine tuning. Oscillation of the process value could not be maintained. Error at start of pretuning. The process value is too close to the setpoint. Start fine tuning. The setpoint was changed during tuning. Pretuning is not permitted in automatic mode or during fine tuning. Error during pretuning. The output value limits are not configured correctly or the actual value does not react as expected. Check whether the limits of the output value are configured correctly and match the control logic. Also make sure that the actual value does not oscillate strongly before starting pretuning. Error during tuning resulted in invalid parameters. Invalid value at "Input" parameter: Value has an invalid number format. Calculation of output value failed. Check the PID parameters. Sampling time error: PID_Compact is not called within the sampling time of the cyclic interrupt OB. If this error occurred during simulation with PLCSIM, see the notes under Simulating PID_Compact V1 with PLCSIM (Page 117). Invalid value at "Setpoint" parameter: Value has an invalid number format.

See also

Output parameters of PID_Compact V1 (Page 302)

312

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.5.7

Parameter Reset V1 The response to Reset = TRUE depends on the version of the PID_Compact instruction.

Reset response PID_Compact V.1.1 or higher
A rising edge at Reset triggers a change to "Inactive" mode; errors and warnings are reset and the integral action is deleted. A falling edge at Reset triggers a change to the most recently active operating mode. If automatic mode was active before, the integral action is pre-assigned in such a way that the switchover is bumpless.

 Activation  Error  Reset

PID control Function Manual, 10/2018, A5E35300227-AD

313

Instructions 9.1 PID_Compact Reset response PID_Compact V.1.0
A rising edge at Reset triggers a change to "Inactive" mode; errors and warnings are reset and the integral action is deleted. The controller is not reactivated until the next edge at i_Mode.
 Activation  Error  Reset

314

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.1 PID_Compact

9.1.5.8

Tag sd_warning V1
If several warnings are pending, the values of variable sd_warning are displayed by means of binary addition. The display of warning 0003, for example, indicates that the warnings 0001 and 0002 are also pending.

sd_warning (DW#16#....) 0000 0001 0002 0004 0008
0010 0020
0040

Description
No warning pending. The point of inflection was not found during pretuning. Oscillation increased during fine tuning. The setpoint was outside the set limits. Not all the necessary controlled system properties were defined for the selected method of calculation. The PID parameters were instead calculated using the "i_CtrlTypeTIR = 3" method. The operating mode could not be changed because ManualEnable = TRUE. The cycle time of the calling OB limits the sampling time of the PID algorithm. Improve results by using shorter OB cycle times. The process value exceeded one of its warning limits.
The following warnings are deleted as soon as the cause is dealt with:  0004  0020  0040 All other warnings are cleared with a rising edge at Reset.

9.1.5.9

Tag i_Event_SUT V1

i_Event_SUT Name 0 SUT_INIT
100 SUT_STDABW 200 SUT_GET_POI 9900 SUT_IO
1 SUT_NIO

Description Initialize pretuning Calculate the standard deviation Find the point of inflection Pretuning successful Pretuning not successful

See also

Static tags of PID_Compact V1 (Page 303) Parameters State and sRet.i_Mode V1 (Page 308)

PID control Function Manual, 10/2018, A5E35300227-AD

315

Instructions 9.1 PID_Compact

9.1.5.10

Tag i_Event_TIR V1

i_Event_TIR Name -100 TIR_FIRST_SUT 0 TIR_INIT 200 TIR_STDABW 300 TIR_RUN_IN 400 TIR_CTRLN
500 TIR_OSZIL 9900 TIR_IO
1 TIR_NIO

Description Fine tuning is not possible. Pretuning will be executed first. Initialize fine tuning Calculate the standard deviation Attempt to reach the setpoint Attempt to reach the setpoint with the existing PID parameters (if pretuning has been successful) Determine oscillation and calculate parameters Fine tuning successful Fine tuning not successful

See also

Static tags of PID_Compact V1 (Page 303) Parameters State and sRet.i_Mode V1 (Page 308)

316

PID control Function Manual, 10/2018, A5E35300227-AD

9.2

PID_3Step

Instructions 9.2 PID_3Step

9.2.1

New features of PID_3Step

PID_3Step V2.3
 As of PID_3Step Version 2.3 the monitoring and limiting of the travel time can be deactivated with Config.VirtualActuatorLimit = 0.0.

PID_3Step V2.2
 Use with S7-1200
As of PID_3Step V2.2, the instruction with V2 functionality can also be used on S7-1200 with firmware version 4.0 or higher.

PID_3Step V2.0
 Reaction to error
The reaction to ActivateRecoverMode = TRUE has been completely overhauled. PID_3Step reacts in a more fault tolerant manner in the default setting.
NOTICE
Your system may be damaged.
If you use the default setting, PID_3Step remains in automatic mode even if the process value limits are exceeded. This may damage your system.
It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.
You use the ErrorAck input parameter to acknowledge the errors and warnings without restarting the controller or clearing the integral action.
Switching operating modes does not acknowledge errors that are no longer pending.
 Switching the operating mode
You specify the operating mode at the Mode in/out parameter and use a positive edge at ModeActivate to start the operating mode. The Retain.Mode tag has been omitted.
The transition time measurement can no longer be started with GetTransitTime.Start, but only with Mode = 6 and a positive edge at ModeActivate.
 Multi-instance capability
You can call up PID_3Step as multi-instance DB. No technology object is created in this case and no parameter assignment interface or commissioning interface is available. You must assign parameters for PID_3Step directly in the multi-instance DB and commission it via a watch table.

PID control Function Manual, 10/2018, A5E35300227-AD

317

Instructions 9.2 PID_3Step

 Startup characteristics The operating mode specified at the Mode parameter is also started on a negative edge at Reset and during a CPU cold restart, if RunModeByStartup = TRUE.
 ENO characteristics ENO is set depending on the operating mode. If State = 0, then ENO = FALSE. If State  0, then ENO = TRUE.
 Manual mode The Manual_UP and Manual_DN input parameters no longer function as edge-triggered parameters. Edge-triggered manual mode continues to be possible using the ManualUpInternal and ManualDnInternal tags. In "Manual mode without endstop signals" (Mode = 10), the endstop signals Actuator_H and Actuator_L are ignored even though they are activated.
 Default value of PID parameters The following default settings have been changed: ­ Proportional action weighting (PWeighting) from 0.0 to 1.0 ­ Derivative action weighting (DWeighting) from 0.0 to 1.0 ­ Coefficient for derivative delay (TdFiltRatio) from 0.0 to 0.2
 Limiting of motor transition time You configure the maximum percentage of the motor transition time that the actuator will travel in one direction in the Config.VirtualActuatorLimit tag.
 Setpoint value specification during tuning You configure the permitted fluctuation of the setpoint during tuning at the CancelTuningLevel tag.
 Switching a disturbance variable on You can switch a disturbance variable on at the Disturbance parameter.
 Troubleshooting If the endstop signals are not activated (ActuatorEndStopOn = FALSE), ScaledFeedback is determined without Actuator_H or Actuator_L.

PID_3Step V1.1  Manual mode on CPU startup If ManualEnable = TRUE when the CPU starts, PID_3Step starts in manual mode. A positive edge at ManualEnable is not necessary.  Reaction to error The ActivateRecoverMode tag is no longer effective in manual mode.  Troubleshooting The Progress tag is reset following successful tuning or transition time measurement.

318

PID control Function Manual, 10/2018, A5E35300227-AD

9.2.2

Instructions 9.2 PID_3Step

Compatibility with CPU and FW
The following table shows which version of PID_3Step can be used on which CPU.

CPU S7-1200
S7-1500

FW V4.2 or higher
V4.0 to V4.1 V3.x V2.x V1.x V2.0 or higher
V1.5 to V1.8
V1.1 V1.0

PID_3Step V2.3 V2.2 V1.1 V2.2 V1.1 V1.1 V1.0 V1.1 V1.0 V2.3 V2.2 V2.1 V2.0 V2.2 V2.1 V2.0 V2.1 V2.0 V2.0

PID control Function Manual, 10/2018, A5E35300227-AD

319

Instructions 9.2 PID_3Step

9.2.3

CPU processing time and memory requirement PID_3Step V2.x

CPU processing time
Typical CPU processing times of the PID_3Step technology object as of Version V2.0, depending on CPU type.

CPU CPU 1211C  V4.0 CPU 1215C  V4.0 CPU 1217C  V4.0 CPU 1505S  V1.0 CPU 1510SP-1 PN  V1.6 CPU 1511-1 PN  V1.5 CPU 1512SP-1 PN  V1.6 CPU 1516-3 PN/DP  V1.5 CPU 1518-4 PN/DP  V1.5

Typ. CPU processing time PID_3Step V2.x 410 µs 410 µs 410 µs 50 µs 120 µs 120 µs 120 µs 65 µs 5 µs

Memory requirement
Memory requirement of an instance DB of the PID_3Step technology object as of Version V2.0.

Memory requirement
Load memory requirement Total work memory requirement Retentive work memory requirement

Memory requirement of the instance DB of PID_3Step V2.x Approx. 15000 bytes 1040 bytes 60 bytes

320

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.4

PID_3Step V2

9.2.4.1

Description of PID_3Step V2

Description

You use the PID_3Step instruction to configure a PID controller with self tuning for valves or actuators with integrating behavior. The following operating modes are possible:  Inactive  Pretuning  Fine tuning  Automatic mode  Manual mode  Approach substitute output value  Transition time measurement  Error monitoring  Approach substitute output value with error monitoring  Manual mode without endstop signals For a more detailed description of the operating modes, see the State parameter.

PID algorithm

PID_3Step is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions. The PID algorithm operates according to the following equation:

y

Output value of the PID algorithm

Kp

Proportional gain

s

Laplace operator

b

Proportional action weighting

w

Setpoint

x

Process value

TI

Integral action time

TD

Derivative action time

a

Derivative delay coefficient (derivative delay T1 = a × TD)

c

Derivative action weighting

PID control Function Manual, 10/2018, A5E35300227-AD

321

Instructions 9.2 PID_3Step
Block diagram without position feedback

322

PID control Function Manual, 10/2018, A5E35300227-AD

Block diagram with position feedback

Instructions 9.2 PID_3Step

PID control Function Manual, 10/2018, A5E35300227-AD

323

Instructions 9.2 PID_3Step
Block diagram of PIDT1 with anti-windup

Call
PID_3Step is called in the constant time scale of a cycle interrupt OB.
If you call PID_3Step as a multi-instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for PID_3Step directly in the multi-instance DB and commission it via a watch table.

Download to device
The actual values of retentive tags are only updated when you download PID_3Step completely.
Downloading technology objects to device (Page 44)

Startup

When the CPU starts up, PID_3Step starts in the operating mode that is saved in the Mode in/out parameter. To leave PID_3Step in "Inactive" mode, set RunModeByStartup = FALSE.

324

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Reaction to error
In automatic mode and during commissioning, the reaction to error depends on the ErrorBehaviour and ActivateRecoverMode tags. In manual mode, the reaction is independent of ErrorBehaviour and ActivateRecoverMode. If ActivateRecoverMode = TRUE, the reaction additionally depends on the error that occurred.

ErrorBehaviour FALSE FALSE TRUE
TRUE

ActivateRecoverMode FALSE TRUE
FALSE
TRUE

Configuration editor > actuator setting > Set Output to Current output value
Current output value while error is pending
Substitute output value
Substitute output value while error is pending

Reaction
Switch to "Inactive" mode (State = 0) The actuator remains in the current position. Switch to "Error monitoring" mode (State = 7) The actuator remains in the current position while the error is pending. Switch to "Approach substitute output value" mode (State = 5) The actuator moves to the configured substitute output value. Switch to "Inactive" mode (State = 0) The actuator remains in the current position. Switch to "Approach substitute output value with error monitoring" mode (State = 8) The actuator moves to the configured substitute output value. Switch to "Error monitoring" mode (State = 7)

In manual mode, PID_3Step uses ManualValue as output value, unless the following errors occur:

 2000h: Invalid value at Feedback_PER parameter.

 4000h: Invalid value at Feedback parameter.

 8000h: Error during digital position feedback.

You can only change the position of the actuator with Manual_UP and Manual_DN, not with ManualValue.

The Error parameter indicates whether an error has occurred in this cycle. The ErrorBits parameter shows which errors have occurred. ErrorBits is reset by a rising edge at Reset or ErrorAck.

See also

Parameters State and Mode V2 (Page 346) Parameter ErrorBits V2 (Page 351) Configuring PID_3Step V2 (Page 119)

PID control Function Manual, 10/2018, A5E35300227-AD

325

Instructions 9.2 PID_3Step

9.2.4.2

Mode of operation of PID_3Step V2

Monitoring process value limits
You specify the high limit and low limit of the process value in the Config.InputUpperLimit and Config.InputLowerLimit tags. If the process value is outside these limits, an error occurs (ErrorBits = 0001h).
You specify a high and low warning limit of the process value in the Config.InputUpperWarning and Config.InputLowerWarning tags. If the process value is outside these warning limits, a warning occurs (Warning = 0040h), and the InputWarning_H or InputWarning_L output parameter changes to TRUE.

Limiting the setpoint
You specify a high limit and low limit of the setpoint in the Config.SetpointUpperLimit and Config.SetpointLowerLimit tags. PID_3Step automatically limits the setpoint to the process value limits. You can limit the setpoint to a smaller range. PID_3Step checks whether this range falls within the process value limits. If the setpoint is outside these limits, the high or low limit is used as the setpoint, and output parameter SetpointLimit_H or SetpointLimit_L is set to TRUE.
The setpoint is limited in all operating modes.

Limiting the output value You specify a high limit and low limit of the output value in the Config.OutputUpperLimit and Config.OutputLowerLimit tags. The output value limits must be within "Low endstop" and "High endstop".  High endstop: Config.FeedbackScaling.UpperPointOut  Low endstop: Config.FeedbackScaling.LowerPointOut Rule: UpperPointOut  OutputUpperLimit > OutputLowerLimit  LowerPointOut The valid values for "High endstop" and "Low endstop" depend upon:  FeedbackOn  FeedbackPerOn  OutputPerOn

OutputPerOn FeedbackOn

FALSE

FALSE

FALSE

TRUE

FALSE

TRUE

TRUE

FALSE

TRUE

TRUE

TRUE

TRUE

FeedbackPerOn LowerPointOut

FALSE

Cannot be set (0.0%)

FALSE

-100.0% or 0.0%

TRUE

-100.0% or 0.0%

FALSE

Cannot be set (0.0%)

FALSE

-100.0% or 0.0%

TRUE

-100.0% or 0.0%

UpperPointOut Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0% Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0%

326

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step
If OutputPerOn = FALSE and FeedbackOn = FALSE, you cannot limit the output value. Output_UP and Output_DN are then reset upon Actuator_H = TRUE or Actuator_L = TRUE. If endstop signals are also not present, Output_UP and Output_DN are reset after a travel time of Config.VirtualActuatorLimit × Retain.TransitTime/100. As of PID_3Step Version 2.3 the monitoring and limiting of the travel time can be deactivated with Config.VirtualActuatorLimit = 0.0. The output value is 27648 at 100% and -27648 at -100%. PID_3Step must be able to completely close the valve.
Note Use with two or more actuators PID_3 Step is not suitable for use with two or more actuators (for example, in heating/cooling applications), because different actuators need different PID parameters to achieve a good control response.
Substitute output value If an error has occurred, PID_3Step can output a substitute output value and move the actuator to a safe position that is specified in the SavePosition tag. The substitute output value must be within the output value limits.
Monitoring signal validity The values of the following parameters are monitored for validity when used:  Setpoint  Input  Input_PER  Input_PER  Feedback  Feedback_PER  Disturbance  ManualValue  SavePosition  Output_PER

PID control Function Manual, 10/2018, A5E35300227-AD

327

Instructions 9.2 PID_3Step
Monitoring the PID_3Step sampling time
Ideally, the sampling time is equivalent to the cycle time of the calling OB. The PID_3Step instruction measures the time interval between two calls. This is the current sampling time. On every switchover of operating mode and during the initial startup, the mean value is formed from the first 10 sampling times. Too great a difference between the current sampling time and this mean value triggers an error (ErrorBits = 0800h).
The error occurs during tuning if:
 New mean value >= 1.1 x old mean value
 New mean value <= 0.9 x old mean value
The error occurs in automatic mode if:
 New mean value >= 1.5 x old mean value
 New mean value <= 0.5 x old mean value
If you deactivate the sampling time monitoring (CycleTime.EnMonitoring = FALSE), you can also call PID_3Step in OB1. You must then accept a lower control quality due to the deviating sampling time.
Sampling time of the PID algorithm
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_3Step are executed at every call.
Measuring the motor transition time
The motor transition time is the time in seconds the motor requires to move the actuator from the closed to the opened state. The actuator is moved in one direction for a maximum time of Config.VirtualActuatorLimit × Retain.TransitTime/100. PID_3Step requires the motor transition time to be as accurate as possible for good controller results. The data in the actuator documentation contains average values for this type of actuator. The value for the specific actuator used may differ. You can measure the motor transition time during commissioning. The output value limits are not taken into consideration during the motor transition time measurement. The actuator can travel to the high or the low endstop.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior. You should therefore configure the motor transition time with the value that the motor requires to move the actuator from the closed to the opened state.
If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.

328

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic. For cooling and discharge control systems, it may be necessary to invert the control logic. PID_3Step does not work with negative proportional gain. If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value. The control logic is also taken into account during pretuning and fine tuning.

See also

Configuring PID_3Step V1 (Page 142)

PID control Function Manual, 10/2018, A5E35300227-AD

329

Instructions 9.2 PID_3Step

9.2.4.3

Changing the PID_3Step V2 interface The following table shows what has changed in the PID_3Step instruction interface.

PID_3Step V1

PID_3Step V2

Input_PER

Input_PER

Feedback_PER

Feedback_PER

Disturbance

Manual_UP

Manual_UP

Manual_DN

Manual_DN

ErrorAck

ModeActivate

Output_PER

Output_PER

ManualUPInternal

ManualDNInternal

CancelTuningLevel

VirtualActuatorLImit

Config.Loadbackup

Loadbackup

Config.TransitTime

Retain.TransitTime

GetTransitTime.Start

SUT.CalculateSUTPara SUT.CalculateParams ms

SUT.TuneRuleSUT

SUT.TuneRule

TIR.CalculateTIRParams TIR.CalculateParams

TIR.TuneRuleTIR

TIR.TuneRule

Retain.Mode

Mode

Change Data type from Word to Int Data type from Word to Int New Function Function New New Data type from Word to Int New New New New Renamed Renamed and retentivity added Replaced by Mode and ModeActivate Renamed
Renamed Renamed Renamed Function Declaration of static for in-out parameters

330

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.4.4

Input parameters of PID_3Step V2

Table 9- 7 Input parameters of PID_3Step V2

Parameter Setpoint Input

Data type REAL REAL

Default 0.0 0.0

Input_PER Actuator_H Actuator_L Feedback Feedback_PER

INT

0

BOOL

FALSE

BOOL

FALSE

REAL

0.0

INT

0

Disturbance ManualEnable

REAL BOOL

0.0 FALSE

ManualValue

REAL

0.0

Description Setpoint of the PID controller in automatic mode
A tag of the user program is used as source for the process value. If you are using parameter Input, then Config.InputPerOn = FALSE must be set.
An analog input is used as the source of the process value. If you are using parameter Input_PER, then Config.InputPerOn = TRUE must be set.
Digital position feedback of the valve for the high endstop If Actuator_H = TRUE, the valve is at the high endstop and is no longer moved towards this direction.
Digital position feedback of the valve for the low endstop If Actuator_L = TRUE, the valve is at the low endstop and is no longer moved towards this direction.
Position feedback of the valve If you are using parameter Feedback, then Config.FeedbackPerOn = FALSE must be set.
Analog position feedback of a valve If you are using parameter Feedback_PER, then Config.FeedbackPerOn = TRUE must be set. Feedback_PER is scaled based on the tags:
· Config.FeedbackScaling.LowerPointIn
· Config.FeedbackScaling.UpperPointIn
· Config.FeedbackScaling.LowerPointOut
· Config.FeedbackScaling.UpperPointOut
Disturbance variable or precontrol value
· A FALSE -> TRUE edge activates "manual mode", while State = 4, Mode remains unchanged.
As long as ManualEnable = TRUE, you cannot change the operating mode via a rising edge at ModeActivate or use the commissioning dialog.
· A TRUE -> FALSE edge activates the operating mode that is specified by Mode.
We recommend that you change the operating mode using ModeActivate only.
In manual mode, the absolute position of the valve is specified. ManualValue is only evaluated if you are using Output_PER, or if position feedback is available.

PID control Function Manual, 10/2018, A5E35300227-AD

331

Instructions 9.2 PID_3Step
Parameter Manual_UP
Manual_DN
ErrorAck Reset
ModeActivate

Data type Default

BOOL

FALSE

BOOL

FALSE

BOOL

FALSE

BOOL

FALSE

BOOL

FALSE

Description · Manual_UP = TRUE
The valve is opened even if you are using Output_PER or a position feedback. The valve is no longer moved if the high endstop has been reached.
See also Config.VirtualActuatorLimit · Manual_UP = FALSE
If you are using Output_PER or a position feedback, the valve is moved to ManualValue. Otherwise, the valve is no longer moved. If Manual_UP and Manual_DN are set to TRUE simultaneously, the valve is not moved.
· Manual_DN = TRUE
The valve is closed even if you are using Output_PER or a position feedback. The valve is no longer moved if the low endstop has been reached.
See also Config.VirtualActuatorLimit · Manual_DN = FALSE
If you are using Output_PER or a position feedback, the valve is moved to ManualValue. Otherwise, the valve is no longer moved. · FALSE -> TRUE edge
ErrorBits and Warning are reset. Restarts the controller. · FALSE -> TRUE edge
­ Switch to "Inactive" mode ­ ErrorBits and Warnings are reset. · As long as Reset = TRUE, ­ PID_3Step remains in "Inactive" mode (State = 0). ­ You cannot change the operating mode with Mode and
ModeActivate or ManualEnable. ­ You cannot use the commissioning dialog. · TRUE -> FALSE edge ­ If ManualEnable = FALSE, PID_3Step switches to the
operating mode that is saved in Mode. ­ If Mode = 3, the integral action is treated as configured
with the tag IntegralResetMode.
· FALSE -> TRUE edge
PID_3Step switches to the operating mode that is saved in the Mode parameter.

332

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.4.5

Output parameters of PID_3Step V2

Table 9- 8 Output parameters of PID_3Step V2

Parameter ScaledInput ScaledFeedback

Data type REAL REAL

Default 0.0 0.0

Output_UP Output_DN Output_PER

BOOL

FALSE

BOOL

FALSE

INT

0

SetpointLimit_H SetpointLimit_L InputWarning_H InputWarning_L

BOOL

FALSE

BOOL

FALSE

BOOL BOOL

FALSE FALSE

Description
Scaled process value
Scaled position feedback
For an actuator without position feedback, the position of the actuator indicated by ScaledFeedback is very imprecise. ScaledFeedback may only be used for rough estimation of the current position in this case.
Digital output value for opening the valve
If Config.OutputPerOn = FALSE, the Output_UP parameter is used.
Digital output value for closing the valve
If Config.OutputPerOn = FALSE, the Output_DN parameter is used.
Analog output value
If Config.OutputPerOn = TRUE, Output_PER is used.
Use Output_PER if you are using a valve as actuator which is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V or 4...20 mA. The value at Output_PER corresponds to the target position of the valve, e.g. Output_PER = 13824, when the valve is to be opened by 50%.
If SetpointLimit_H = TRUE, the absolute setpoint high limit is reached (Setpoint  Config.SetpointUpperLimit).
The setpoint is limited to Config.SetpointUpperLimit .
If SetpointLimit_L = TRUE, the absolute setpoint low limit has been reached (Setpoint  Config.SetpointLowerLimit).
The setpoint is limited to Config.SetpointLowerLimit .
If InputWarning_H = TRUE, the process value has reached or exceeded the warning high limit.
If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit.

PID control Function Manual, 10/2018, A5E35300227-AD

333

Instructions 9.2 PID_3Step

Parameter State
Error ErrorBits
See also

Data type Default

INT

0

BOOL

FALSE

DWORD DW#16#0

Description The State parameter (Page 346) shows the current operating mode of the PID controller. You can change the operating mode using the input parameter Mode and a rising edge at ModeActivate.
· State = 0: Inactive
· State = 1: Pretuning
· State = 2: Fine tuning
· State = 3: Automatic mode
· State = 4: Manual mode
· State = 5: Approach substitute output value
· State = 6: Transition time measurement
· State = 7: Error monitoring
· State = 8: Approach substitute output value with error monitoring
· State = 10: Manual mode without endstop signals
If Error = TRUE, at least one error message is pending in this cycle. The ErrorBits parameter (Page 351) shows which error messages are pending. ErrorBits is retentive and is reset upon a rising edge at Reset or ErrorAck.

Parameters State and Mode V2 (Page 346) Parameter ErrorBits V2 (Page 351)

334

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.4.6

In/out parameters of PID-3Step V2

Table 9- 9
Parameter Mode

In/out parameters of PID-3Step V2

Data type Default

INT

4

Description At the Mode parameter, you specify the operating mode to which PID_3Step is to switch. Options are:
· Mode = 0: Inactive · Mode = 1: Pretuning · Mode = 2: Fine tuning · Mode = 3: Automatic mode · Mode = 4: Manual mode · Mode = 6: Transition time measurement · Mode = 10: Manual mode without endstop signals The operating mode is activated by:
· Rising edge at ModeActivate · Falling edge at Reset · Falling edge at ManualEnable · Cold restart of CPU if RunModeByStartup = TRUE Mode is retentive. A detailed description of the operating modes can be found in Parameters State and Mode V2 (Page 346).

PID control Function Manual, 10/2018, A5E35300227-AD

335

Instructions 9.2 PID_3Step

9.2.4.7

Static tags of PID_3Step V2
Note Change the tags identified with (1) only in "Inactive" mode to prevent malfunction of the PID controller.

Tag ManualUpInternal

Data type Default BOOL FALSE

ManualDnInternal

BOOL FALSE

ActivateRecoverMode RunModeByStartup

BOOL BOOL

TRUE TRUE

LoadBackUp
PhysicalUnit PhysicalQuantity ErrorBehaviour

BOOL FALSE

INT INT BOOL

0 0 FALSE

Description
In manual mode, each rising edge opens the valve by 5% of the total control range or for the duration of the minimum motor transition time. ManualUpInternal is only evaluated if you are not using Output_PER or a position feedback. This tag is used in the commissioning dialog.
In manual mode, every rising edge closes the valve by 5% of the total control range or for the duration of the minimum motor transition time. ManualDnInternal is only evaluated if you are not using Output_PER or position feedback. This tag is used in the commissioning dialog.
The ActivateRecoverMode V2 (Page 354) tag determines the reaction to error.
Activate operating mode at Mode parameter after CPU restart
If RunModeByStartup = TRUE, PID_3Step starts in the operating mode saved in the Mode parameter after CPU startup.
If RunModeByStartup = FALSE, PID_3Step remains in "Inactive" mode after CPU startup.
If LoadBackUp = TRUE, the last set of PID parameters is reloaded. The set was saved prior to the last tuning. LoadBackUp is automatically set back to FALSE.
Unit of measurement of the process value and setpoint, e.g., ºC, or ºF.
Physical quantity of the process value and setpoint, e.g., temperature
If ErrorBehaviour = FALSE and an error has occurred, the valve stays at its current position and the controller switches directly to "Inactive" or "Error monitoring" mode.
If ErrorBehaviour = TRUE and an error occurs, the actuator moves to the substitute output value and only then switches to "Inactive" or "Error monitoring" mode.
If the following errors occur, you can no longer move the valve to a configured substitute output value.
· 2000h: Invalid value at Feedback_PER parameter.
· 4000h: Invalid value at Feedback parameter.
· 8000h: Error during digital position feedback.
· 20000h: Invalid value at SavePosition tag.

336

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Tag Warning

Data type Default DWORD DW#16#0

SavePosition

REAL

0.0

CurrentSetpoint CancelTuningLevel

REAL

0.0

REAL

10.0

Progress Config.InputPerOn(1) Config.OutputPerOn(1)
Config.InvertControl(1)

REAL BOOL
BOOL

0.0 TRUE
FALSE

BOOL FALSE

Config.FeedbackOn(1)

BOOL FALSE

Config.FeedbackPerOn(1)

BOOL FALSE

Config.ActuatorEndStopOn(1) BOOL FALSE

Description
The Warning tag (Page 346) shows the warnings since Reset = TRUE or ErrorAck =TRUE. Warning is retentive.
Cyclic warnings (for example, process value warning) are shown until the cause of the warning is removed. They are automatically deleted once their cause has gone. Non-cyclic warnings (for example, point of inflection not found) remain and are deleted like errors.
Substitute output value
If ErrorBehaviour = TRUE, the actuator is moved to a position that is safe for the plant when an error occurs. As soon as the substitute output value has been reached, PID_3Step switches the operating mode according to ActivateRecoverMode.
Currently active setpoint. This value is frozen at the start of tuning.
Permissible fluctuation of setpoint during tuning. Tuning is not canceled until:
· Setpoint > CurrentSetpoint + CancelTuningLevel or
· Setpoint < CurrentSetpoint - CancelTuningLevel
Progress of tuning as a percentage (0.0 - 100.0)
If InputPerOn = TRUE, the Input_PER parameter is used. If InputPerOn = FALSE, the Input parameter is used.
If OutputPerOn = TRUE, the Output_PER parameter is used. If OutputPerOn = FALSE, the Ouput_UP and Output_DN parameters are used.
Invert control logic
If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value.
If FeedbackOn = FALSE, a position feedback is simulated.
Position feedback is generally activated when FeedbackOn = TRUE.
FeedbackPerOn is only effective when FeedbackOn = TRUE.
If FeedbackPerOn = TRUE, the analog input is used for the position feedback (Feedback_PER parameter).
If FeedbackPerOn = FALSE, the Feedback parameter is used for the position feedback.
If ActuatorEndStopOn = TRUE, the digital position feedback Actuator_L and Actuator_H are taken into consideration.

PID control Function Manual, 10/2018, A5E35300227-AD

337

Instructions 9.2 PID_3Step

Tag Config.InputUpperLimit(1)
Config.InputLowerLimit(1) Config.InputUpperWarning(1)
Config.InputLowerWarning(1)
Config.OutputUpperLimit(1) Config.OutputLowerLimit(1)

Data type Default REAL 120.0
REAL 0.0 REAL +3.402822e+38
REAL -3.402822e+38
REAL 100.0 REAL 0.0

Description
High limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit.
At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). An error is no longer signaled due to a violation of the "Process value high limit". Only a wire-break and a short-circuit are recognized and PID_3Step reacts according to the configured reaction to error.
InputUpperLimit > InputLowerLimit
Low limit of the process value
InputLowerLimit < InputUpperLimit
Warning high limit of the process value
If you set InputUpperWarning outside the process value limits, the configured absolute process value high limit is used as the warning high limit.
If you configure InputUpperWarning within the process value limits, this value is used as the warning high limit.
InputUpperWarning > InputLowerWarning
InputUpperWarning  InputUpperLimit
Warning low limit of the process value
If you set InputLowerWarning outside the process value limits, the configured absolute process value low limit is used as the warning low limit.
If you configure InputLowerWarning within the process value limits, this value is used as the warning low limit.
InputLowerWarning < InputUpperWarning
InputLowerWarning  InputLowerLimit
High limit of output value
The following value range is permitted:
UpperPointOut  OutputUpperLimit > OutputLowerLimit
For more details, see OutputLowerLimit.
Low limit of output value
The following value range is permitted:
OutputUpperLimit > OutputLowerLimit  LowerPointOut
When using Output_PER, an output value limit of -100% corresponds to the value Output_PER = -27648; 100% correspond to the value Output_PER = 27648.
If OutputPerOn = FALSE and FeedbackOn = FALSE, OutputLowerLimit and OutputUpperLimit are not evaluated.
Output_UP and Output_DN are then reset at Actuator_H = TRUE or Actuator_L = TRUE (if ActuatorEndStopOn = TRUE) or after a travel time of Config.VirtualActuatorLimit * Retain.TransitTime/100 (if ActuatorEndStopOn = FALSE).

338

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Tag Config.SetpointUpperLimit(1)
Config.SetpointLowerLimit(1)
Config.MinimumOnTime(1) Config.MinimumOffTime(1) Config.VirtualActuatorLimit(1)
Config.InputScaling .UpperPointIn(1) Config.InputScaling .LowerPointIn(1)

Data type Default

REAL

+3.402822e+38

Description
High limit of setpoint
If you set SetpointUpperLimit outside the process value limits, the configured absolute process value high limit is preassigned as the setpoint high limit.

If you configure SetpointUpperLimit within the process value limits, this value is used as the setpoint high limit.

REAL

- 3.402822e+38 Low limit of the setpoint

If you set SetpointLowerLimit outside the process value limits, the configured absolute process value low limit is preassigned as the setpoint low limit.
If you set SetpointLowerLimit within the process value limits, this value is used as the setpoint low limit.

REAL

0.0

Minimum ON time
Minimum time in seconds for which the servo drive must be switched on.
Config.MinimumOnTime is only effective if Output_UP and Output_DN are used (Config.OutputPerOn = FALSE).

REAL

0.0

Minimum OFF time
Minimum time in seconds for which the servo drive must be switched off.
Config.MinimumOffTime is only effective if Output_UP and Output_DN are used (Config.OutputPerOn = FALSE).

REAL

150.0

If all the following conditions have been satisfied, the actuator is moved in one direction for the maximum period of VirtualActuatorLimit × Retain.TransitTime/100 and the warning 2000h is output:

· Config.OutputPerOn = FALSE

· Config.ActuatorEndStopOn = FALSE

· Config.FeedbackOn = FALSE
If Config.OutputPerOn = FALSE and Config.ActuatorEndStopOn = TRUE or Config.FeedbackOn = TRUE, only the warning 2000h is output. If Config.OutputPerOn = TRUE, VirtualActuatorLimit is not taken into consideration.

As of PID_3Step Version 2.3 the monitoring and limiting of the travel time can be deactivated with Config.VirtualActuatorLimit = 0.0.

REAL

27648.0

Scaling Input_PER high

Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.

REAL

0.0

Scaling Input_PER low

Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.

PID control Function Manual, 10/2018, A5E35300227-AD

339

Instructions 9.2 PID_3Step

Tag
Config.InputScaling .UpperPointOut(1)

Data type Default REAL 100.0

Config.InputScaling .LowerPointOut(1)

REAL 0.0

Config.FeedbackScaling .UpperPointIn(1)

REAL 27648.0

Config.FeedbackScaling .LowerPointIn(1)

REAL 0.0

Config.FeedbackScaling .UpperPointOut(1)

REAL 100.0

Config.FeedbackScaling .LowerPointOut(1)

REAL 0.0

GetTransitTime.InvertDirection BOOL FALSE

Description Scaled high process value Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure. Scaled low process value Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure. Scaling Feedback_PER high Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. Scaling Feedback_PER low Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. High endstop Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. The permitted value range is determined by the configuration.
· FeedbackOn = FALSE:
UpperPointOut = 100.0
· FeedbackOn = TRUE:
UpperPointOut = 100.0 or 0.0
UpperPointOut  LowerPointOut Low endstop Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. The permitted value range is determined by the configuration.
· FeedbackOn = FALSE:
LowerPointOut = 0.0
· FeedbackOn = TRUE:
LowerPointOut = 0.0 or -100.0
LowerPointOut  UpperPointOut If InvertDirection = FALSE, the valve is fully opened, closed, and then reopened in order to determine the valve transition time. If InvertDirection = TRUE, the valve is fully closed, opened, and then closed again.

340

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
GetTransitTime .SelectFeedback

Data type Default BOOL FALSE

GetTransitTime.State

INT

0

GetTransitTime.NewOutput REAL

0.0

CycleTime.StartEstimation

BOOL TRUE

CycleTime.EnEstimation

BOOL TRUE

CycleTime.EnMonitoring

BOOL TRUE

CycleTime.Value(1)

REAL

0.1

CtrlParamsBackUp.SetByUser BOOL FALSE

CtrlParamsBackUp.Gain

REAL

1.0

CtrlParamsBackUp.Ti

REAL

20.0

CtrlParamsBackUp.Td

REAL

0.0

CtrlParamsBackUp.TdFiltRatio REAL

0.2

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step
Description If SelectFeedback = TRUE, then Feedback_PER, or Feedback is taken into consideration in the transition time measurement. If SelectFeedback = FALSE, then Actuator_H and Actuator_L are taken into consideration in the transition time measurement. Current phase of the transition time measurement
· State = 0: Inactive · State = 1: Open valve completely · State = 2: Close valve completely · State = 3: Move valve to target position (NewOutput) · State = 4: Transition time measurement successfully
completed · State = 5: Transition time measurement canceled
Target position for transition time measurement with position feedback The target position must be between "High endstop" and "Low endstop". The difference between NewOutput and ScaledFeedback must be at least 50% of the permissible control range. If StartEstimation = TRUE, the measurement of the PID_3Step sampling time is started. CycleTime.StartEstimation = FALSE once measurement is complete. If EnEstimation = TRUE, the PID_3Step sampling time is calculated. If CycleTime.EnEstimation = FALSE, the PID_3Step sampling time is not calculated and you need to correct the configuration of CycleTime.Value manually. If EnMonitoring = TRUE, the PID_3Step sampling time is monitored. If it is not possible to execute PID_3Step within the sampling time, the error 0800h is output and the operating mode is switched. ActivateRecoverMode and ErrorBehaviour determine which operating mode is switched to. If EnMonitoring = FALSE, the PID_3Step sampling time is not monitored, the error 0800h is not output, and the operating mode is not switched. PID_3Step sampling time in seconds CycleTime.Value is determined automatically and is usually equivalent to the cycle time of the calling OB. Saved value of Retain.CtrlParams.SetByUser You can reload values from the CtrlParamsBackUp structure with LoadBackUp = TRUE. Saved proportional gain Saved integration time in seconds Saved derivative action time in seconds Saved derivative delay coefficient
341

Instructions 9.2 PID_3Step

Tag
CtrlParamsBackUp .PWeighting
CtrlParamsBackUp .DWeighting
CtrlParamsBackUp.Cycle
CtrlParamsBackUp .InputDeadBand
PIDSelfTune.SUT .CalculateParams

Data type Default REAL 1.0
REAL 1.0
REAL 1.0 REAL 0.0
BOOL FALSE

PIDSelfTune.SUT.TuneRule INT

1

PIDSelfTune.SUT.State

INT

0

Description Saved proportional action weighting
Saved derivative action weighting
Saved sampling time of PID algorithm in seconds Saved dead band width of the control deviation
The properties of the controlled system are saved during tuning. If CalculateParams = TRUE, the PID parameters are recalculated on the basis of these properties. The PID parameters are calculated using the method set in TuneRule. CalculateParams is set to FALSE following calculation. Methods used to calculate parameters during pretuning: · SUT.TuneRule = 0: PID fast I · SUT.TuneRule = 1: PID slow I · SUT.TuneRule = 2: Chien, Hrones and Reswick PID · SUT.TuneRule = 3: Chien, Hrones, Reswick PI · SUT.TuneRule = 4: PID fast II · SUT.TuneRule = 5: PID slow II The SUT.State tag indicates the current phase of pretuning: · State = 0: Initialize pretuning · State = 50: Determine start position without position
feedback · State = 100: Calculate the standard deviation · State = 200: Find the point of inflection · State = 300: Determine the rise time · State = 9900: Pretuning successful · State = 1: Pretuning not successful

342

PID control Function Manual, 10/2018, A5E35300227-AD

Tag PIDSelfTune.TIR.RunIn

Data type Default BOOL FALSE

PIDSelfTune.TIR .CalculateParams

BOOL FALSE

PIDSelfTune.TIR.TuneRule INT

0

PIDSelfTune.TIR.State

INT

0

Instructions 9.2 PID_3Step
Description With the RunIn tag, you can specify that fine tuning can also be performed without pretuning. · RunIn = FALSE
Pretuning is started when fine tuning is started from inactive or manual mode.
If fine tuning is started from automatic mode, the system uses the existing PID parameters to control to the setpoint.
Only then will fine tuning start. If pretuning is not possible, PID_3Step switches to the mode from which tuning was started. · RunIn = TRUE
The pretuning is skipped. PID_3Step attempts to reach the setpoint with the minimum or maximum output value. This can produce increased overshoot. Only then will fine tuning start.
RunIn is set to FALSE after fine tuning. The properties of the controlled system are saved during tuning. If CalculateParams = TRUE, the PID parameters are recalculated on the basis of these properties. The PID parameters are calculated using the method set in TuneRule. CalculateParams is set to FALSE following calculation. Methods used to calculate parameters during fine tuning: · TIR.TuneRule = 0: PID automatic · TIR.TuneRule = 1: PID fast · TIR.TuneRule = 2: PID slow · TIR.TuneRule = 3: Ziegler-Nichols PID · TIR.TuneRule = 4: Ziegler-Nichols PI · TIR.TuneRule = 5: Ziegler-Nichols P
The TIR.State tag indicates the current phase of fine tuning: · State = -100 Fine tuning is not possible. Pretuning will
be performed first. · State = 0: Initialize fine tuning · State = 200: Calculate the standard deviation · State = 300: Attempt to reach the setpoint with the max-
imum or minimum output value · State = 400: Attempt to reach the setpoint with existing
PID parameters (if pretuning was successful) · State = 500: Determine oscillation and calculate parame-
ters · State = 9900: Fine tuning successful · State = 1: Fine tuning not successful

PID control Function Manual, 10/2018, A5E35300227-AD

343

Instructions 9.2 PID_3Step
Tag Retain.TransitTime(1)

Data type Default REAL 30.0

Retain.CtrlParams .SetByUser(1)

BOOL FALSE

Retain.CtrlParams.Gain(1)

REAL 1.0

Retain.CtrlParams.Ti(1)

REAL 20.0

Retain.CtrlParams.Td(1)

REAL 0.0

Retain.CtrlParams .TdFiltRatio(1)

REAL 0.2

Description Motor transition time in seconds
Time in seconds the actuating drive requires to move the valve from the closed to the opened state. TransitTime is retentive.
If SetByUser = FALSE, the PID parameters are determined automatically and PID_3Step operates with a dead zone at the output value. The dead band width is calculated during tuning on the basis of the standard deviation of the output value and saved in Retain.CtrlParams.OutputDeadBand.
If SetByUser = TRUE, the PID parameters are entered manually and PID_3 Step operates without a dead zone at the output value. Retain.CtrlParams.OutputDeadBand = 0.0
SetByUser is retentive.
Active proportional gain
To invert the control logic, use the Config.InvertControl tag. Negative values at Gain also invert the control logic. We recommend you use only InvertControl to set the control logic. The control logic is also inverted if InvertControl = TRUE and Gain < 0.0.
Gain is retentive.
· Ti > 0.0: Active integration time in seconds
· Ti = 0.0: Integral action is deactivated Ti is retentive.
· Td > 0.0: Active derivative action time in seconds
· Td = 0.0: Derivative action is deactivated Td is retentive.
Active derivative delay coefficient
The derivative delay coefficient delays the effect of the derivative action.
Derivative delay = derivative action time × derivative delay coefficient
· 0.0: Derivative action is effective for one cycle only and therefore almost not effective.
· 0.5: This value has proved useful in practice for controlled systems with one dominant time constant.
· > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
TdFiltRatio is retentive.

344

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Tag
Retain.CtrlParams .PWeighting(1)

Data type Default

REAL

1.0

Retain.CtrlParams .DWeighting(1)

REAL

1.0

Retain.CtrlParams.Cycle(1)

REAL

1.0

Retain.CtrlParams .InputDeadBand(1)

REAL

0.0

Description Active proportional action weighting The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Proportional action for setpoint change is fully effective
· 0.0: Proportional action for setpoint change is not effective
The proportional action is always fully effective when the process value is changed. PWeighting is retentive.
Active derivative action weighting The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Derivative action is fully effective upon setpoint change
· 0.0: Derivative action is not effective upon setpoint change
The derivative action is always fully effective when the process value is changed. DWeighting is retentive.
Active sampling time of PID algorithm in seconds, rounded to an integer multiple of the cycle time of the calling OB. Cycle is retentive.
Dead band width of the control deviation InputDeadBand is retentive.

See also

Parameters State and Mode V2 (Page 346) Tag ActivateRecoverMode V2 (Page 354) Downloading technology objects to device (Page 44)

PID control Function Manual, 10/2018, A5E35300227-AD

345

Instructions 9.2 PID_3Step

9.2.4.8

Parameters State and Mode V2

Correlation of the parameters
The State parameter shows the current operating mode of the PID controller. You cannot change the State parameter.
With a rising edge at ModeActivate, PID_3Step switches to the operating mode saved in the Mode in-out parameter.
When the CPU is switched on or switches from Stop to RUN mode, PID_3Step starts in the operating mode that is saved in the Mode parameter. To leave PID_3Step in "Inactive" mode, set RunModeByStartup = FALSE.

Meaning of values

State 0
1

Description of operating mode Inactive The controller is switched off and no longer changes the valve position.
Pretuning The pretuning determines the process response to a pulse of the output value and searches for the point of inflection. The PID parameters are calculated from the maximum rate of rise and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning. Pretuning requirements:
· The motor transition time has been configured or measured.
· Inactive (State = 0), manual mode (State = 4), or automatic mode (State = 3)
· ManualEnable = FALSE
· Reset = FALSE
· The setpoint and the process value lie within the configured limits. The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher as compared to the noise. This is most likely the case in operating modes "Inactive" and "manual mode". The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when:
· Setpoint > CurrentSetpoint + CancelTuningLevel or
· Setpoint < CurrentSetpoint - CancelTuningLevel Before the PID parameters are recalculated, they are backed up and can be reactivated with LoadBackUp. The controller switches to automatic mode following successful pretuning. If pretuning is unsuccessful, the switchover of operating mode is dependent on ActivateRecoverMode and ErrorBehaviour. The pretuning phase is indicated with the SUT.State tag.

346

PID control Function Manual, 10/2018, A5E35300227-AD

State 2
3

Instructions 9.2 PID_3Step
Description of operating mode Fine tuning Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are recalculated based on the amplitude and frequency of this oscillation. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning. PID_3Step automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when: · Setpoint > CurrentSetpoint + CancelTuningLevel
or · Setpoint < CurrentSetpoint - CancelTuningLevel The PID parameters are backed up before fine tuning. They can be reactivated with LoadBackUp. Requirements for fine tuning: · The motor transition time has been configured or measured. · The setpoint and the process value lie within the configured limits. · ManualEnable = FALSE · Reset = FALSE · Automatic (State = 3), inactive (State = 0) or manual (State = 4) mode Fine tuning proceeds as follows when started from: · Automatic mode (State = 3)
Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.
PID_3Step controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start. · Inactive (State = 0) or manual mode (State = 4)
If the requirements for pretuning are met, pretuning is started. The determined PID parameters will be used for control until the control loop has stabilized and the requirements for fine tuning have been met.
If PIDSelfTune.TIR.RunIn = TRUE, pretuning is skipped and an attempt is made to reach the setpoint with the minimum or maximum output value. This can produce increased overshoot. Fine tuning then starts automatically. The controller switches to automatic mode following successful fine tuning. If fine tuning is unsuccessful, the switchover of operating mode is dependent on ActivateRecoverMode and ErrorBehaviour. The fine tuning phase is indicated with the TIR.State tag. Automatic mode In automatic mode, PID_3Step controls the controlled system in accordance with the parameters specified. The controller switches to automatic mode if one the following requirements is fulfilled: · Pretuning successfully completed · Fine tuning successfully completed · Changing of the Mode in-out parameter to the value 3 and a rising edge at ModeActivate. The switchover from automatic mode to manual mode is only bumpless if carried out in the commissioning editor. The ActivateRecoverMode tag is taken into consideration in automatic mode.

PID control Function Manual, 10/2018, A5E35300227-AD

347

Instructions 9.2 PID_3Step

State 4 5 6
7
8
10

Description of operating mode Manual mode In manual mode, you specify manual output values in the Manual_UP and Manual_DN parameters or ManualValue parameter. Whether or not the actuator can be moved to the output value in the event of an error is described in the ErrorBits parameter. You can also activate this operating mode using ManualEnable = TRUE. We recommend that you change the operating mode using Mode and ModeActivate only. The switchover from manual mode to automatic mode is bumpless. Manual mode is also possible when an error is pending.
Approach substitute output value This operating mode is activated in the event of an error, if Errorbehaviour = TRUE and ActivateRecoverMode = FALSE.. PID_3Step moves the actuator to the substitute output value and then switches to "Inactive" mode.
Transition time measurement The time that the motor needs to completely open the valve from the closed condition is determined. This operating mode is activated when Mode = 6 and ModeActivate = TRUE is set. If endstop signals are used to measure the transition time, the valve will be opened completely from its current position, closed completely, and opened completely again. If GetTransitTime.InvertDirection = TRUE, this behavior is inverted. If position feedback is used to measure the transition time, the actuator will be moved from its current position to a target position. The output value limits are not taken into consideration during the transition time measurement. The actuator can travel to the high or the low endstop.
Error monitoring The control algorithm is switched off and no longer changes the valve position. This operating mode is activated instead of "Inactive" mode in the event of an error. All the following conditions must be met:
· Automatic mode (Mode = 3)
· Errorbehaviour = FALSE
· ActivateRecoverMode = TRUE
· One or more errors have occurred in which ActivateRecoverMode (Page 354) is effective. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode.
Approach substitute output value with error monitoring This operating mode is activated instead of "approach substitute output value" mode when an error occurs. PID_3Step moves the actuator to the substitute output value and then switches to "error monitoring" mode. All the following conditions must be met:
· Automatic mode (Mode = 3)
· Errorbehaviour = TRUE
· ActivateRecoverMode = TRUE
· One or more errors have occurred in which ActivateRecoverMode (Page 354) is effective. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode.
Manual mode without endstop signals The endstop signals are not taken into consideration, even though Config.ActuatorEndStopOn = TRUE. The output value limits are not taken into consideration. Otherwise, PID_3Step behaves the same as in manual mode.

348

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

ENO characteristics If State = 0, then ENO = FALSE. If State  0, then ENO = TRUE.

Automatic switchover of operating mode during commissioning
Automatic mode is activated following successful pretuning or fine tuning. The following table shows how Mode and State change during successful pretuning.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 3

State 4 4 1
1 3

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning successfully completed Automatic mode is started

PID_3Step automatically switches the operating mode in the event of an error. The following table shows how Mode and State change during pretuning with errors.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 4

State 4 4 1
1 4

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning canceled Manual mode is started

If ActivateRecoverMode = TRUE, the operating mode that is saved in the Mode parameter is activated. At the start of transition time measurement, pretuning, or fine tuning, PID_3Step saved the value of State in the Mode in/out parameter. PID_3Step therefore switches to the operating mode from which transition time measurement or tuning was started.

If ActivateRecoverMode = FALSE, "Inactive" or "Approach substitute output value" mode is activated.

Automatic switchover of operating mode after transition time measurement
If ActivateRecoverMode = TRUE, the operating mode that is saved in the Mode parameter is activated after successful transition time measurement.
If ActivateRecoverMode = FALSE, the system switches to "Inactive" operating mode after successful transition time measurement.

PID control Function Manual, 10/2018, A5E35300227-AD

349

Instructions 9.2 PID_3Step
Automatic switchover of operating mode in automatic mode PID_3Step automatically switches the operating mode in the event of an error. The following diagram illustrates the influence of ErrorBehaviour and ActivateRecoverMode on this switchover of operating mode.

Automatic switchover of operating mode in the event of an error Automatic switchover of operating mode once the current operation has been completed. Automatic switchover of operating mode when error is no longer pending.

See also

Tag ActivateRecoverMode V2 (Page 354) Parameter ErrorBits V2 (Page 351)

350

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.4.9

Parameter ErrorBits V2
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 0003h, for example, indicates that the errors 0001h and 0002h are pending simultaneously.
If there is a position feedback, PID_3Step uses ManualValue as output value in manual mode. The exception is Errorbits = 10000h.

ErrorBits (DW#16#...) 0000 0001
0002
0004 0010 0020 0080
0100

Description
There is no error. The "Input" parameter is outside the process value limits.
· Input > Config.InputUpperLimit or
· Input < Config.InputLowerLimit If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step remains in automatic mode. If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter. Invalid value at "Input_PER" parameter. Check whether an error is pending at the analog input. If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode. As soon as the error is no longer pending, PID_3Step switches back to automatic mode. If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter. Error during fine tuning. Oscillation of the process value could not be maintained. If ActivateRecoverMode = TRUE before the error occurred, PID_3Step cancels the tuning and switches to the operating mode that is saved in the Mode parameter. The setpoint was changed during tuning. You can set the permitted fluctuation of the setpoint at the CancelTuningLevel tag. If ActivateRecoverMode = TRUE before the error occurred, PID_3Step cancels the tuning and switches to the operating mode that is saved in the Mode parameter. Pretuning is not permitted during fine tuning. If ActivateRecoverMode = TRUE before the error occurred, PID_3Step remains in fine tuning mode. Error during pretuning. The output value limits are not configured correctly or the actual value does not react as expected. Check whether the limits of the output value are configured correctly and match the control logic. Also make sure that the actual value does not oscillate strongly before starting pretuning. If ActivateRecoverMode = TRUE before the error occurred, PID_3Step cancels the tuning and switches to the operating mode that is saved in the Mode parameter. Error during fine tuning resulted in invalid parameters. If ActivateRecoverMode = TRUE before the error occurred, PID_3Step cancels the tuning and switches to the operating mode that is saved in the Mode parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

351

Instructions 9.2 PID_3Step

ErrorBits (DW#16#...) 0200 0400 0800
1000 2000
4000

Description
Invalid value at "Input" parameter: Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode. As soon as the error is no longer pending, PID_3Step switches back to automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.
Calculation of output value failed. Check the PID parameters.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode. As soon as the error is no longer pending, PID_3Step switches back to automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.
Sampling time error: PID_3Step is not called within the sampling time of the cyclic interrupt OB.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step remains in automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.
If this error occurred during simulation with PLCSIM, see the notes under Simulating PID_3Step V2 with PLCSIM (Page 141).
Invalid value at "Setpoint" parameter: Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode. As soon as the error is no longer pending, PID_3Step switches back to automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.
Invalid value at Feedback_PER parameter.
Check whether an error is pending at the analog input.
The actuator cannot be moved to the substitute output value and remains in its current position. In manual mode, you can change the position of the actuator only with Manual_UP and Manual_DN, and not with ManualValue.
If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.
Invalid value at Feedback parameter. Value has an invalid number format.
The actuator cannot be moved to the substitute output value and remains in its current position. In manual mode, you can change the position of the actuator only with Manual_UP and Manual_DN, and not with ManualValue.
If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.
If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter.

352

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

ErrorBits (DW#16#...) 8000
10000 20000 40000

Description
Error during digital position feedback. Actuator_H = TRUE and Actuator_L = TRUE. The actuator cannot be moved to the substitute output value and remains in its current position. Manual mode is not possible in this state. In order to move the actuator from this state, you must deactivate the "Actuator endstop" (Config.ActuatorEndStopOn = FALSE) or switch to manual mode without endstop signals (Mode = 10). If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode. If pretuning, fine tuning, or transition time measurement mode and ActivateRecoverMode = TRUE were active before the error occurred, PID_3Step switches to the operating mode that is saved in the Mode parameter. Invalid value at ManualValue parameter. Value has an invalid number format. The actuator cannot be moved to the manual value and remains in its current position. Specify a valid value in ManualValue or move the actuator in manual mode with Manual_UP and Manual_DN. Invalid value at SavePosition tag. Value has an invalid number format. The actuator cannot be moved to the substitute output value and remains in its current position. Invalid value at Disturbance parameter. Value has an invalid number format. If automatic mode was active and ActivateRecoverMode = TRUE before the error occurred, Disturbance is set to zero. PID_3Step remains in automatic mode. If pretuning or fine tuning mode was active and ActivateRecoverMode = TRUE before the error occurred, PID_3Step switches to the operating mode saved in the Mode parameter. If Disturbance in the current phase has no effect on the output value, tuning is not be canceled. The error has no effect during transition time measurement.

PID control Function Manual, 10/2018, A5E35300227-AD

353

Instructions 9.2 PID_3Step

9.2.4.10

Tag ActivateRecoverMode V2 The ActivateRecoverMode tag determines the reaction to error. The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred.
NOTICE Your system may be damaged. If ActivateRecoverMode = TRUE, PID_3Step remains in automatic mode even if the process limit values are exceeded. This may damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.

Automatic mode

ActivateRecoverMode FALSE
TRUE

Description
In the event of an error, PID_3Step switches to "Inactive" or "Approach substitute output value" mode. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. If errors occur frequently in automatic mode, this setting has a negative effect on the control response, because PID_3Step switches between the calculated output value and the substitute output value at each error. In this case, check the ErrorBits parameter and eliminate the cause of the error. If one or more of the following errors occur, PID_3Step stays in automatic mode: · 0001h: The "Input" parameter is outside the process value limits. · 0800h: Sampling time error · 40000h: Invalid value at Disturbance parameter. If one or more of the following errors occur, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode: · 0002h: Invalid value at Input_PER parameter. · 0200h: Invalid value at Input parameter. · 0400h: Calculation of output value failed. · 1000h: Invalid value at Setpoint parameter. If one or more of the following errors occur, PID_3Step can no longer move the actuator: · 2000h: Invalid value at Feedback_PER parameter. · 4000h: Invalid value at Feedback parameter. · 8000h: Error during digital position feedback. · 20000h: Invalid value at SavePosition tag. Value has an invalid number format. The characteristics are independent of ErrorBehaviour. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode.

354

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Pretuning, fine tuning, and transition time measurement

ActivateRecoverMode FALSE
TRUE

Description
In the event of an error, PID_3Step switches to "Inactive" or "Approach substitute output value" mode. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. The controller changes to "Inactive" mode after successful transition time measurement. If the following error occurs, PID_3Step remains in the active mode: · 0020h: Pretuning is not permitted during fine tuning. The following errors are ignored: · 10000h: Invalid value at ManualValue parameter. · 20000h: Invalid value at SavePosition tag. When any other error occurs, PID_3Step cancels the tuning and switches to the mode from which tuning was started.

Manual mode

ActivateRecoverMode is not effective in manual mode.

See also

Static tags of PID_3Step V2 (Page 336) Parameters State and Mode V2 (Page 346)

PID control Function Manual, 10/2018, A5E35300227-AD

355

Instructions 9.2 PID_3Step

9.2.4.11

Tag Warning V2
If several warnings are pending simultaneously, their values are displayed with binary addition. The display of warning 0005h, for example, indicates that the warnings 0001h and 0004h are pending simultaneously.

Warning (DW#16#...) 0000 0001 0004 0008
0010 0020
0040 0080 0100 0200 0400
0800
1000 2000

Description
No warning pending. The point of inflection was not found during pretuning. The setpoint was limited to the configured limits. Not all the necessary controlled system properties were defined for the selected method of calculation. Instead, the PID parameters were calculated using the TIR.TuneRule = 3 method. The operating mode could not be changed because Reset = TRUE or ManualEnable = TRUE. The cycle time of the calling OB limits the sampling time of the PID algorithm. Improve results by using shorter OB cycle times. The process value exceeded one of its warning limits. Invalid value at Mode. The operating mode is not switched. The manual value was limited to the limits of the controller output. The specified rule for tuning is not supported. No PID parameters are calculated. The transition time cannot be measured because the actuator settings do not match the selected measuring method. The difference between the current position and the new output value is too small for transition time measurement. This can produce incorrect results. The difference between the current output value and new output value must be at least 50% of the entire control range. The substitute output value cannot be reached because it is outside the output value limits. The actuator was moved in one direction for longer than Config.VirtualActuatorLimit × Retain .TransitTime. Check whether the actuator has reached an endstop signal.
The following warnings are deleted as soon as the cause is eliminated:
 0001h
 0004h
 0008h
 0040h
 0100h
 2000h
All other warnings are cleared with a rising edge at Reset or ErrorAck.

356

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.5

PID_3Step V1

9.2.5.1

Description PID_3Step V1

Description

You use the PID_3Step instruction to configure a PID controller with self tuning for valves or actuators with integrating behavior. The following operating modes are possible:  Inactive  Pretuning  Fine tuning  Automatic mode  Manual mode  Approach substitute output value  Transition time measurement  Approach substitute output value with error monitoring  Error monitoring For a more detailed description of the operating modes, see the State parameter.

PID algorithm

PID_3Step is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions. The following equation is used to calculate the output value.

y

Output value of the PID algorithm

Kp

Proportional gain

s

Laplace operator

b

Proportional action weighting

w

Setpoint

x

Process value

TI

Integral action time

a

Derivative delay coefficient (T1 = a × TD)

TD

Derivative action time

c

Derivative action weighting

PID control Function Manual, 10/2018, A5E35300227-AD

357

Instructions 9.2 PID_3Step
Block diagram without position feedback

358

PID control Function Manual, 10/2018, A5E35300227-AD

Block diagram with position feedback

Instructions 9.2 PID_3Step

PID control Function Manual, 10/2018, A5E35300227-AD

359

Instructions 9.2 PID_3Step
Block diagram of PIDT1 with anti-windup

Call
PID_3Step is called in a constant time interval of the cycle time of the calling OB (preferably in a cyclic interrupt OB).

Download to device
The actual values of retentive tags are only updated when you download PID_3Step completely.
Downloading technology objects to device (Page 44)

Startup

At the startup of the CPU, PID_3Step starts in the operating mode that was last active. To leave PID_3Step in "Inactive" mode, set RunModeByStartup = FALSE.

360

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Reaction to error
If errors occur, these are output in the Error parameter. You configure the reaction of PID_3Step using the ErrorBehaviour and ActivateRecoverMode tags.

ErrorBehaviour 0 0 1
1

ActivateRecoverMode FALSE TRUE
FALSE
TRUE

Actuator setting configuration Reaction Set Output to

Current output value Current output value while error is pending Substitute output value
Substitute output value while error is pending

Switch to "Inactive" mode (Mode = 0)
Switch to "Error monitoring" mode (Mode = 7)
Switch to "Approach substitute output value" mode (Mode = 5)
Switch to "Inactive" mode (Mode = 0)
Switch to "Approach substitute output value with error monitoring" mode (Mode = 8)
Switch to "Error monitoring" mode (Mode = 7)

The ErrorBits parameter shows which errors have occurred.

See also

Parameter State and Retain.Mode V1 (Page 378) Parameter ErrorBits V1 (Page 385) Configuring PID_3Step V1 (Page 142)

PID control Function Manual, 10/2018, A5E35300227-AD

361

Instructions 9.2 PID_3Step

9.2.5.2

Operating principle PID_3Step V1

Monitoring process value limits
You specify the high limit and low limit of the process value in the Config.InputUpperLimit and Config.InputLowerLimit tags. If the process value is outside these limits, an error occurs (ErrorBits = 0001hex).
You specify a high and low warning limit of the process value in the Config.InputUpperWarning and Config.InputLowerWarning tags. If the process value is outside these warning limits, a warning occurs (Warnings = 0040hex), and the InputWarning_H or InputWarning_L output parameter changes to TRUE.

Limiting the setpoint
You specify a high limit and low limit of the setpoint in the Config.SetpointUpperLimit and Config.SetpointLowerLimit tags. PID_3Step automatically limits the setpoint to the process value limits. You can limit the setpoint to a smaller range. PID_3Step checks whether this range falls within the process value limits. If the setpoint is outside these limits, the high or low limit is used as the setpoint, and output parameter SetpointLimit_H or SetpointLimit_L is set to TRUE.
The setpoint is limited in all operating modes.

Limiting the output value You specify a high limit and low limit of the output value in the Config.OutputUpperLimit and Config.OutputLowerLimit tags. The output value limits must be within "Low endstop" and "High endstop".  High endstop: Config.FeedbackScaling.UpperPointOut  Low endstop: Config.FeedbackScaling.LowerPointOut Rule: UpperPointOut  OutputUpperLimit > OutputLowerLimit  LowerPointOut The valid values for "High endstop" and "Low endstop" depend upon:  FeedbackOn  FeedbackPerOn  OutputPerOn

OutputPerOn FeedbackOn

FALSE

FALSE

FALSE

TRUE

FALSE

TRUE

TRUE

FALSE

TRUE

TRUE

TRUE

TRUE

FeedbackPerOn LowerPointOut

FALSE

Cannot be set (0.0%)

FALSE

-100.0% or 0.0%

TRUE

-100.0% or 0.0%

FALSE

Cannot be set (100.0%)

FALSE

-100.0% or 0.0%

TRUE

-100.0% or 0.0%

UpperPointOut Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0% Cannot be set (100.0%) 0.0% or +100.0% 0.0% or +100.0%

362

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step
If OutputPerOn = FALSE and FeedbackOn = FALSE, you cannot limit the output value. The digital outputs are reset with Actuator_H = TRUE or Actuator_L = TRUE, or after a travel time amounting to 110% of the motor transition time. The output value is 27648 at 100% and -27648 at -100%. PID_3Step must be able to completely close the valve. Therefore, zero must be included in the output value limits.
Note Use with two or more actuators PID_3 Step is not suitable for use with two or more actuators (for example, in heating/cooling applications), because different actuators need different PID parameters to achieve a good control response.

Substitute output value If an error has occurred, PID_3Step can output a substitute output value and move the actuator to a safe position that is specified in the SavePosition tag. The substitute output value must be within the output value limits.
Monitoring signal validity The values of the following parameters are monitored for validity:  Setpoint  Input  Input_PER  Feedback  Feedback_PER  Output
Monitoring the PID_3Step sampling time Ideally, the sampling time is equivalent to the cycle time of the calling OB. The PID_3Step instruction measures the time interval between two calls. This is the current sampling time. On every switchover of operating mode and during the initial startup, the mean value is formed from the first 10 sampling times. Too great a difference between the current sampling time and this mean value triggers an error (ErrorBits = 0800 hex). PID_3Step is set to "Inactive" mode during tuning under the following conditions:  New mean value >= 1.1 x old mean value  New mean value <= 0.9 x old mean value In automatic mode, PID_3Step is set to "Inactive" mode under the following conditions:  New mean value >= 1.5 x old mean value  New mean value <= 0.5 x old mean value

PID control Function Manual, 10/2018, A5E35300227-AD

363

Instructions 9.2 PID_3Step

Sampling time of the PID algorithm
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time. All other functions of PID_3Step are executed at every call.

Measuring the motor transition time
The motor transition time is the time in seconds the motor requires to move the actuator from the closed to the opened state. The maximum time that the actuator is moved in one direction is 110% of the motor transition time. PID_3Step requires the motor transition time to be as accurate as possible for good controller results. The data in the actuator documentation contains average values for this type of actuator. The value for the specific actuator used may differ. You can measure the motor transition time during commissioning. The output value limits are not taken into consideration during the motor transition time measurement. The actuator can travel to the high or the low endstop.
The motor transition time is taken into consideration in the calculation of the analog output value as well as in the calculation of the digital output values. It is mainly required for correct operation during auto-tuning and the anti-windup behavior. You should therefore configure the motor transition time with the value that the motor requires to move the actuator from the closed to the opened state.
If no relevant motor transition time is in effect in your process (e.g. with solenoid valves), so that the output value has a direct and full effect on the process, use PID_Compact instead.

Control logic

An increase of the output value is generally intended to cause an increase in the process value. This is referred to as a normal control logic. For cooling and discharge control systems, it may be necessary to invert the control logic. PID_3Step does not work with negative proportional gain. If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value. The control logic is also taken into account during pretuning and fine tuning.

See also

Configuring PID_3Step V1 (Page 142)

364

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.5.3

PID_3Step V1 input parameters

Table 9- 10 PID_3Step V1 input parameters

Parameters Setpoint Input

Data type REAL REAL

Default 0.0 0.0

Input_PER Actuator_H Actuator_L Feedback Feedback_PER

WORD

W#16#0

BOOL

FALSE

BOOL

FALSE

REAL

0.0

WORD

W#16#0

ManualEnable

BOOL

FALSE

ManualValue

REAL

0.0

Description Setpoint of the PID controller in automatic mode
A tag of the user program is used as source for the process value. If you are using parameter Input, then Config.InputPerOn = FALSE must be set.
An analog input is used as the source of the process value. If you are using parameter Input_PER, then Config.InputPerOn = TRUE must be set.
Digital position feedback of the valve for the high endstop If Actuator_H = TRUE, the valve is at the high endstop and is no longer moved towards this direction.
Digital position feedback of the valve for the low endstop If Actuator_L = TRUE, the valve is at the low endstop and is no longer moved towards this direction.
Position feedback of the valve If you are using parameter Feedback, then Config.FeedbackPerOn = FALSE must be set.
Analog position feedback of a valve If you are using parameter Feedback_PER, then Config.FeedbackPerOn = TRUE must be set. Feedback_PER is scaled based on the tags:
· Config.FeedbackScaling.LowerPointIn
· Config.FeedbackScaling.UpperPointIn
· Config.FeedbackScaling.LowerPointOut
· Config.FeedbackScaling.UpperPointOut
· A FALSE -> TRUE edge selects "Manual mode", while State = 4, Retain.Mode remains unchanged.
· A TRUE -> FALSE edge selects the most recently active operating mode
A change of Retain.Mode will not take effect during ManualEnable = TRUE. The change of Retain.Mode will only be considered upon a TRUE -> FALSE edge at ManualEnable . PID_3Step V1.1If ManualEnable = TRUE when the CPU starts, PID_3Step starts in manual mode. A rising edge (FALSE > TRUE) at ManualEnable is not necessary. PID_3Step V1.0 At the start of the CPU, PID_3Step only switches to manual mode with a rising edge (FALSE->TRUE) at ManualEnable . Without rising edge, PID_3Step starts in the last operating mode in which ManualEnable was FALSE.
In manual mode, you specify the absolute position of the valve. ManualValue will only be evaluated if you are using OutputPer, or if position feedback is available.

PID control Function Manual, 10/2018, A5E35300227-AD

365

Instructions 9.2 PID_3Step
Parameters Manual_UP
Manual_DN
Reset

Data type Default

BOOL

FALSE

BOOL

FALSE

BOOL

FALSE

Description In manual mode, every rising edge opens the valve by 5% of the total control range, or for the duration of the minimum motor transition time. Manual_UP is evaluated only if you are not using Output_PER and there is no position feedback available.
In manual mode, every rising edge closes the valve by 5% of the total control range, or for the duration of the minimum motor transition time. Manual_DN is evaluated only if you are not using Output_PER and there is no position feedback available.
Restarts the controller.
· FALSE -> TRUE edge
­ Switch to "Inactive" mode
­ ErrorBits and Warning are reset
­ Intermediate controller values are reset
(PID parameters are retained)
· TRUE -> FALSE edge
­ Change in most recent active mode
­ If automatic mode was active before, switchover to automatic mode is bumpless.

366

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.5.4

PID_3Step V1 output parameters

Table 9- 11 PID_3Step V1 output parameters

Parameter ScaledInput ScaledFeedback

Data type REAL REAL

Default 0.0 0.0

Output_UP Output_DN Output_PER

BOOL

FALSE

BOOL

FALSE

WORD

W#16#0

SetpointLimit_H

BOOL

FALSE

SetpointLimit_L

BOOL

FALSE

InputWarning_H InputWarning_L

BOOL BOOL

FALSE FALSE

Description
Scaled process value
Scaled position feedback
For an actuator without position feedback, the position of the actuator indicated by ScaledFeedback is very imprecise. ScaledFeedback may only be used for rough estimation of the current position in this case.
Digital output value for opening the valve
If Config.OutputPerOn = FALSE, the Output_UP parameter is used.
Digital output value for closing the valve
If Config.OutputPerOn = FALSE, the Output_DN parameter is used.
Analog output value
If Config.OutputPerOn = TRUE, Output_PER is used.
Use Output_PER if you are using a valve as actuator which is triggered via an analog output and controlled with a continuous signal, e.g. 0...10 V or 4...20 mA. The value at Output_PER corresponds to the target position of the valve, e.g. Output_PER = 13824, when the valve is to be opened by 50%.
If SetpointLimit_H = TRUE, the absolute setpoint high limit is reached. In the CPU, the setpoint is limited to the configured absolute setpoint high limit. The configured absolute process value high limit is the default for the setpoint high limit.
If you configure Config.SetpointUpperLimit to a value within the process value limits, this value is used as the setpoint high limit.
If SetpointLimit_L = TRUE, the absolute setpoint low limit has been reached. In the CPU, the setpoint is limited to the configured absolute setpoint low limit. The configured absolute process value low limit is the default setting for the setpoint low limit.
If you configure Config.SetpointLowerLimit to a value within the process value limits, this value is used as the setpoint low limit.
If InputWarning_H = TRUE, the process value has reached or exceeded the warning high limit.
If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit.

PID control Function Manual, 10/2018, A5E35300227-AD

367

Instructions 9.2 PID_3Step

Parameter State
Error ErrorBits
See also

Data type Default

INT

0

BOOL DWORD

FALSE DW#16#0

Description The State parameter (Page 378) shows the current operating mode of the PID controller. You change the operating mode with the Retain.Mode tag.
· State = 0: Inactive · State = 1: Pretuning · State = 2: Fine tuning · State = 3: Automatic mode · State = 4: Manual mode · State = 5: Approach substitute output value · State = 6: Transition time measurement · State = 7: Error monitoring · State = 8: Approach substitute output value with error
monitoring
If Error = TRUE, at least one error message is pending. The ErrorBits parameter (Page 385) indicates the error messages.

Parameter State and Retain.Mode V1 (Page 378) Parameter ErrorBits V1 (Page 385)

368

PID control Function Manual, 10/2018, A5E35300227-AD

9.2.5.5

Instructions 9.2 PID_3Step
PID_3Step V1 static tags
Note You must not change tags that are not listed. These are used for internal purposes only. Change the tags identified with (1) only in "Inactive" mode to prevent malfunction of the PID controller. "Inactive" mode is forced by setting the "Retain.Mode" tag to "0".

Table 9- 12 PID_3Step V1 static tags

Tag ActivateRecoverMode

Data type Default BOOL TRUE

RunModeByStartup

BOOL TRUE

PhysicalUnit PhysicalQuantity ErrorBehaviour

INT

0

INT

0

INT

0

Warning

DWORD DW#16#0

SavePosition

REAL

0.0

CurrentSetpoint

REAL

0.0

PID control Function Manual, 10/2018, A5E35300227-AD

Description The ActivateRecoverMode tag (Page 388) determines the reaction to error. Activate Mode after CPU restart If RunModeByStartup = TRUE, the controller returns to the last active operating mode after a CPU restart. If RunModeByStartup = FALSE, the controller remains inactive after a CPU restart. Unit of measurement of the process value and setpoint, e.g., ºC, or ºF. Physical quantity of the process value and setpoint, e.g., temperature. If ErrorBehaviour = 0 and an error has occurred, the valve stays at its current position and the controller switches directly to "Inactive" or "Error monitoring" mode. If ErrorBehaviour = 1 and an error occurs, the actuator moves to the substitute output value and only then switches to "Inactive" or "Error monitoring" mode. If the following errors occur, you can no longer move the valve to a configured substitute output value.
· 2000h: Invalid value at Feedback_PER parameter.
· 4000h: Invalid value at Feedback parameter.
· 8000h: Error during digital position feedback.
The Warning tag (Page 378) displays the warnings generated since a Reset or since the last operating mode switchover. Cyclic warnings (for example, process value warning) are shown until the cause of the warning is removed. They are automatically deleted once their cause has gone. Noncyclic warnings (for example, point of inflection not found) remain and are deleted like errors. Substitute output value If ErrorBehaviour = 1 and an error occurs, the actuator moves to a safe position for the plant and only then switches to "Inactive" mode. Currently active setpoint. This value is frozen at the start of tuning.
369

Instructions 9.2 PID_3Step

Tag Progress Config.InputPerOn(1) Config.OutputPerOn(1)
Config.LoadBackUp
Config.InvertControl(1)

Data type Default REAL 0.0 BOOL TRUE BOOL FALSE
BOOL FALSE
BOOL FALSE

Config.FeedbackOn(1)

BOOL FALSE

Config.FeedbackPerOn(1)

BOOL FALSE

Config.ActuatorEndStopOn(1) BOOL FALSE

Config.InputUpperLimit(1)

REAL 120.0

Config.InputLowerLimit(1)

REAL

Config.InputUpperWarning(1) REAL

0.0 +3.402822e+38

Description
Progress of tuning as a percentage (0.0 - 100.0)
If InputPerOn = TRUE, the Input_PER parameter is used. If InputPerOn = FALSE, the Input parameter is used.
If OutputPerOn = TRUE, the Output_PER parameter is used. If OutputPerOn = FALSE, the Ouput_UP and Output_DN parameters are used.
If LoadBackUp = TRUE, the last set of PID parameters is reloaded. The set was saved prior to the last tuning. LoadBackUp is automatically set back to FALSE.
Invert control logic
If InvertControl = TRUE, an increasing control deviation causes a reduction in the output value.
If FeedbackOn = FALSE, a position feedback is simulated.
Position feedback is generally activated when FeedbackOn = TRUE.
FeedbackPerOn is only effective when FeedbackOn = TRUE.
If FeedbackPerOn = TRUE, the analog input is used for the position feedback (Feedback_PER parameter).
If FeedbackPerOn = FALSE, the Feedback parameter is used for the position feedback.
If ActuatorEndStopOn = TRUE, the digital position feedback Actuator_L and Actuator_H are taken into consideration.
High limit of the process value
At the I/O input, the process value can be a maximum of 18% higher than the standard range (overrange). An error is no longer signaled due to a violation of the "Process value high limit". Only a wire-break and a short-circuit are recognized and PID_3Step reacts according to the configured reaction to error.
InputUpperLimit > InputLowerLimit
Low limit of the process value
InputLowerLimit < InputUpperLimit
Warning high limit of the process value
If you set InputUpperWarning outside the process value limits, the configured absolute process value high limit is used as the warning high limit.
If you configure InputUpperWarning within the process value limits, this value is used as the warning high limit.
InputUpperWarning > InputLowerWarning
InputUpperWarning  InputUpperLimit

370

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Tag Config.InputLowerWarning(1)
Config.OutputUpperLimit(1) Config.OutputLowerLimit(1)
Config.SetpointUpperLimit(1) Config.SetpointLowerLimit(1) Config.MinimumOnTime(1) Config.MinimumOffTime(1)

Data type Default

REAL

-3.402822e+38

REAL

100.0

REAL

0.0

REAL

+3.402822e+38

REAL

- 3.402822e+38

REAL

0.0

REAL

0.0

Description
Warning low limit of the process value
If you set InputLowerWarning outside the process value limits, the configured absolute process value low limit is used as the warning low limit.
If you configure InputLowerWarning within the process value limits, this value is used as the warning low limit.
InputLowerWarning < InputUpperWarning
InputLowerWarning  InputLowerLimit
High limit of output value
The following value range is permitted:
UpperPointOut  OutputUpperLimit > OutputLowerLimit
For more details, see OutputLowerLimit.
Low limit of output value
The following value range is permitted:
OutputUpperLimit > OutputLowerLimit  LowerPointOut
When using Output_PER, an output value limit of -100% corresponds to the value Output_PER = -27648; 100% correspond to the value Output_PER = 27648.
If OutputPerOn = FALSE and FeedbackOn = FALSE, OutputLowerLimit and OutputUpperLimit are not evaluated. Output_UP and Output_DN are then reset at Actuator_H = TRUE or Actuator_L = TRUE (if ActuatorEndStopOn = TRUE) or after a travel time of 110% * Config.TransitTime (if ActuatorEndStopOn = FALSE).
High limit of setpoint
If you set SetpointUpperLimit outside the process value limits, the configured absolute process value high limit is preassigned as the setpoint high limit.
If you configure SetpointUpperLimit within the process value limits, this value is used as the setpoint high limit.
Low limit of the setpoint
If you set SetpointLowerLimit outside the process value limits, the configured absolute process value low limit is preassigned as the setpoint low limit.
If you set SetpointLowerLimit within the process value limits, this value is used as the setpoint low limit.
Minimum ON time
Minimum time in seconds for which the servo drive must be switched on.
Config.MinimumOnTime is only effective if Output_UP and Output_DN are used (Config.OutputPerOn = FALSE).
Minimum OFF time
Minimum time in seconds for which the servo drive must be switched off.
Config.MinimumOffTime is only effective if Output_UP and Output_DN are used (Config.OutputPerOn = FALSE).

PID control Function Manual, 10/2018, A5E35300227-AD

371

Instructions 9.2 PID_3Step

Tag Config.TransitTime(1)

Data type Default REAL 30.0

Config.InputScaling .UpperPointIn(1)

REAL 27648.0

Config.InputScaling .LowerPointIn(1)

REAL 0.0

Config.InputScaling .UpperPointOut(1)

REAL 100.0

Config.InputScaling .LowerPointOut(1)

REAL 0.0

Config.FeedbackScaling .UpperPointIn(1)

REAL 27648.0

Config.FeedbackScaling .LowerPointIn(1)

REAL 0.0

Config.FeedbackScaling .UpperPointOut(1)

REAL 100.0

Description Motor transition time Time in seconds the actuating drive requires to move the valve from the closed to the opened state.
Scaling Input_PER high Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.
Scaling Input_PER low Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.
Scaled high process value Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.
Scaled low process value Input_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the InputScaling structure.
Scaling Feedback_PER high Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure.
Scaling Feedback_PER low Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure.
High endstop Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. The permitted value range is determined by the configuration.
· FeedbackOn = FALSE:
UpperPointOut = 100.0
· FeedbackOn = TRUE:
UpperPointOut = 100.0 or 0.0
UpperPointOut  LowerPointOut

372

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
Config.FeedbackScaling .LowerPointOut(1)

Data type Default

REAL

0.0

GetTransitTime.InvertDirection BOOL FALSE

GetTransitTime .SelectFeedback

BOOL FALSE

GetTransitTime.Start GetTransitTime.State

BOOL INT

FALSE 0

GetTransitTime.NewOutput REAL

0.0

CycleTime.StartEstimation

BOOL TRUE

CycleTime.EnEstimation

BOOL TRUE

Instructions 9.2 PID_3Step
Description Low endstop Feedback_PER is converted to a percentage based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn of the FeedbackScaling structure. The permitted value range is determined by the configuration.
· FeedbackOn = FALSE:
LowerPointOut = 0.0
· FeedbackOn = TRUE:
LowerPointOut = 0.0 or -100.0
LowerPointOut  UpperPointOut If InvertDirection = FALSE, the valve is fully opened, closed, and then reopened in order to determine the valve transition time. If InvertDirection = TRUE, the valve is fully closed, opened, and then closed again. If SelectFeedback = TRUE, then Feedback_PER, or Feedback is taken into consideration in the transition time measurement. If SelectFeedback = FALSE, then Actuator_H and Actuator_L are taken into consideration in the transition time measurement. If Start = TRUE, the transition time measurement is started. Current phase of the transition time measurement
· State = 0: Inactive
· State = 1: Open valve completely
· State = 2: Close valve completely
· State = 3: Move valve to target position (NewOutput)
· State = 4: Transition time measurement successfully completed
· State = 5: Transition time measurement canceled
Target position for transition time measurement with position feedback The target position must be between "High endstop" and "Low endstop". The difference between NewOutput and ScaledFeedback must be at least 50% of the permissible control range. If StartEstimation = TRUE, the measurement of the PID_3Step sampling time is started. CycleTime.StartEstimation = FALSE once measurement is complete. If EnEstimation = TRUE, the PID_3Step sampling time is calculated.

PID control Function Manual, 10/2018, A5E35300227-AD

373

Instructions 9.2 PID_3Step

Tag CycleTime.EnMonitoring

Data type Default BOOL TRUE

CycleTime.Value(1)

REAL 0.1

CtrlParamsBackUp.SetByUser BOOL FALSE

CtrlParamsBackUp.Gain

REAL

CtrlParamsBackUp.Ti

REAL

CtrlParamsBackUp.Td

REAL

CtrlParamsBackUp.TdFiltRatio REAL

CtrlParamsBackUp.PWeighting

REAL

CtrlParamsBackUp .DWeighting

REAL

CtrlParamsBackUp.Cycle

REAL

CtrlParamsBackUp .InputDeadBand

REAL

PIDSelfTune.SUT .CalculateSUTParams

BOOL

1.0 20.0 0.0 0.0 0.0
0.0
1.0 0.0
FALSE

PIDSelfTune.SUT .TuneRuleSUT

INT

1

PIDSelfTune.SUT.State

INT

0

Description If EnMonitoring = TRUE, the PID_3Step sampling time is monitored. If it is not possible to execute PID_3Step within the sampling time, the error 0800h is output and the operating mode is switched. ActivateRecoverMode and ErrorBehaviour determine which operating mode is switched to. If EnMonitoring = FALSE, the PID_3Step sampling time is not monitored, the error 0800h is not output, and the operating mode is not switched. PID_3Step sampling time in seconds CycleTime.Value is determined automatically and is usually equivalent to the cycle time of the calling OB. Saved value of Retain.CtrlParams.SetByUser. You can reload values from the CtrlParamsBackUp structure with Config.LoadBackUp = TRUE. Saved proportional gain Saved integral action time Saved derivative action time Saved derivative delay coefficient Saved proportional action weighting
Saved derivative action weighting
Saved sampling time of PID algorithm Saved dead zone width of the control deviation
The properties of the controlled system are saved during tuning. If CalculateSUTParams = TRUE, the PID parameters are recalculated on the basis of these properties. The PID parameters are calculated using the method set in TuneRuleSUT. CalculateSUTParams is set to FALSE following calculation. Methods used to calculate parameters during pretuning:
· TuneRuleSUT = 0: PID fast I · TuneRuleSUT = 1: PID slow I · TuneRuleSUT = 2: Chien, Hrones and Reswick PID · TuneRuleSUT = 3: Chien, Hrones, Reswick PI · TuneRuleSUT = 4: PID fast II · TuneRuleSUT = 5: PID slow II
The SUT.State tag indicates the current phase of pretuning:

374

PID control Function Manual, 10/2018, A5E35300227-AD

Tag PIDSelfTune.TIR.RunIn

Data type Default BOOL FALSE

PIDSelfTune.TIR .CalculateTIRParams

BOOL FALSE

PIDSelfTune.TIR .TuneRuleTIR

INT

0

PIDSelfTune.TIR.State

INT

0

Instructions 9.2 PID_3Step
Description · RunIn = FALSE
Pretuning is started when fine tuning is started from inactive or manual mode.
If fine tuning is started from automatic mode, the system uses the existing PID parameters to control to the setpoint.
Only then will fine tuning start. If pretuning is not possible, PID_3Step switches to "Inactive" mode. · RunIn = TRUE
The pretuning is skipped. PID_3Step attempts to reach the setpoint with the minimum or maximum output value. This can produce increased overshoot. Only then will fine tuning start.
RunIn is set to FALSE after fine tuning. The properties of the controlled system are saved during tuning. If CalculateTIRParams = TRUE, the PID parameters are recalculated on the basis of these properties. The PID parameters are calculated using the method set in TuneRuleTIR. CalculateTIRParams is set to FALSE following calculation. Methods used to calculate parameters during fine tuning: · TuneRuleTIR = 0: PID automatic · TuneRuleTIR = 1: PID fast · TuneRuleTIR = 2: PID slow · TuneRuleTIR = 3: Ziegler-Nichols PID · TuneRuleTIR = 4: Ziegler-Nichols PI · TuneRuleTIR = 5: Ziegler-Nichols P
The TIR.State tag indicates the current phase of "fine tuning":

PID control Function Manual, 10/2018, A5E35300227-AD

375

Instructions 9.2 PID_3Step
Tag Retain.Mode

Data type Default

INT

0

Retain.CtrlParams .SetByUser(1)

BOOL FALSE

Retain.CtrlParams.Gain(1) Retain.CtrlParams.Ti(1)

REAL 1.0 REAL 20.0

Retain.CtrlParams.Td(1)

REAL 0.0

Retain.CtrlParams .TdFiltRatio(1)
Retain.CtrlParams .PWeighting(1)
Retain.CtrlParams .DWeighting(1)
Retain.CtrlParams .Cycle(1)
Retain.CtrlParams .InputDeadBand(1)

REAL 0.0 REAL 0.0 REAL 0.0 REAL 1.0
REAL 0.0

376

Description A change to the value of Retain.Mode initiates a switch to another operating mode. The following operating mode is enabled upon a change of Mode to:
· Mode = 0: Inactive · Mode = 1: Pretuning · Mode = 2: Fine tuning · Mode = 3: Automatic mode · Mode = 4: Manual mode · Mode = 5: Approach substitute output value · Mode = 6: Transition time measurement · Mode = 7: Error monitoring · Mode = 8: Approach substitute output value with error
monitoring Mode is retentive. If SetByUser = FALSE, the PID parameters are determined automatically and PID_3Step operates with a dead zone at the output value. The dead zone width is calculated during tuning on the basis of the standard deviation of the output value and saved in Retain.CtrlParams.OutputDeadBand. If SetByUser = TRUE, the PID parameters are entered manually and PID_3 Step operates without a dead zone at the output value. Retain.CtrlParams.OutputDeadBand = 0.0 SetByUser is retentive. Active proportional gain Gain is retentive.
· Ti > 0.0: Active integral action time · Ti = 0.0: Integral action is deactivated Ti is retentive.
· Td > 0.0: Active derivative action time · Td = 0.0: Derivative action is deactivated Td is retentive. Active derivative delay coefficient TdFiltRatio is retentive. Active proportional action weighting PWeighting is retentive. Active derivative action weighting DWeighting is retentive. Active sampling time of PID algorithm in seconds, rounded to an integer multiple of the cycle time of the calling OB. Cycle is retentive. Dead zone width of the control deviation InputDeadBand is retentive.
PID control Function Manual, 10/2018, A5E35300227-AD

See also

Parameter State and Retain.Mode V1 (Page 378) Tag ActivateRecoverMode V1 (Page 388) Downloading technology objects to device (Page 44)

Instructions 9.2 PID_3Step

PID control Function Manual, 10/2018, A5E35300227-AD

377

Instructions 9.2 PID_3Step

9.2.5.6

Parameter State and Retain.Mode V1

Correlation of the parameters
The State parameter shows the current operating mode of the PID controller. You cannot change the State parameter.
To switch from one operating mode to another, you must change the Retain.Mode tag. This also applies when the value for the new operating mode is already in Retain.Mode. For example, set Retain.Mode = 0 first and then Retain.Mode = 3. Provided the current operating mode of the controller permits this switchover, State will be set to the value of Retain.Mode.
When PID_3Step automatically switches from one operating mode to another, the following applies: State != Retain.Mode.
Examples:
 After successful pretuning State = 3 and Retain.Mode = 1
 In the event of an error State = 0 and Retain.Mode remain at the previous value, for example, Retain.Mode = 3
 ManualEnalbe = TRUE State = 4 and Retain.Mode remain at the previous value, e.g., Retain.Mode = 3
Note
You want, for example, to repeat successful fine tuning without exiting automatic mode with Mode = 0.
Setting Retain.Mode to an invalid value such as 9999 for one cycle has no effect on State. Set Mode = 2 in the next cycle. In this way, you can generate a change to Retain.Mode without first switching to "Inactive" mode.

378

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Meaning of values

State / Retain.Mode 0 1
2

Description
Inactive The controller is switched off and no longer changes the valve position. Pretuning The pretuning determines the process response to a pulse of the output value and searches for the point of inflection. The optimized PID parameters are calculated as a function of the maximum rate of rise and dead time of the controlled system. Pretuning requirements:
· State = 0 or State = 4
· ManualEnable = FALSE
· The motor transition time has been configured or measured.
· The setpoint and the process value lie within the configured limits. The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher as compared to the noise. Before the PID parameters are recalculated, they are backed up and can be reactivated with Config.LoadBackUp. The setpoint is frozen in the CurrentSetpoint tag. The controller switches to automatic mode following successful pretuning and to "Inactive" mode following unsuccessful pretuning. The pretuning phase is indicated with the SUT.State tag. Fine tuning Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are tuned based on the amplitude and frequency of this oscillation. The differences between the process response during pretuning and fine tuning are analyzed. All PID parameters are recalculated from the results. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. PID_3Step automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value. The PID parameters are backed up before fine tuning. They can be reactivated with Config.LoadBackUp. The setpoint is frozen in the CurrentSetpoint tag. Requirements for fine tuning:
· The motor transition time has been configured or measured.
· The setpoint and the process value lie within the configured limits.
· ManualEnable = FALSE
· Automatic (State = 3), inactive (State = 0) or manual (State = 4) mode

PID control Function Manual, 10/2018, A5E35300227-AD

379

Instructions 9.2 PID_3Step

State / Retain.Mode 2
3
4
5

Description
Fine tuning proceeds as follows when started from:
· Automatic mode (State = 3)
Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.
PID_3Step controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start. · Inactive (State = 0) or manual mode (State = 4)
Pretuning is always started first. The determined PID parameters will be used for control until the control loop has stabilized and the requirements for fine tuning have been met.
If PIDSelfTune.TIR.RunIn = TRUE, pretuning is skipped and an attempt is made to reach the setpoint with the minimum or maximum output value. This can produce increased overshoot. Fine tuning then starts automatically. The controller switches to automatic mode following successful fine tuning. If fine tuning was not successful, the controller switches to "Inactive" mode. The fine tuning phase is indicated with the TIR.State tag. Automatic mode In automatic mode, PID_3Step controls the controlled system in accordance with the parameters specified. The controller switches to automatic mode if one the following requirements is fulfilled:
· Pretuning successfully completed · Fine tuning successfully completed · Changing the Retain.Mode tag to the value 3. When the CPU is switched on or switches from Stop to RUN mode, PID_3Step starts in the most recently active operating mode. To leave PID_3Step in "Inactive" mode, set RunModeByStartup = FALSE. The ActivateRecoverMode tag is taken into consideration in automatic mode. Manual mode In manual mode, you specify manual output values in the Manual_UP and Manual_DN parameters or ManualValue parameter. Whether or not the actuator can be moved to the output value in the event of an error is described in the ErrorBits parameter. This operating mode is enabled if Retain.Mode = 4, or on a rising edge at ManualEnable. If ManualEnable changes to TRUE, only State changes. Retain.Mode retains its current value. On a falling edge at ManualEnable, PID_3Step returns to the previous operating mode. The switchover to automatic mode is bumpless. PID_3Step V1.1 Manual mode is always possible in the event of an error. PID_3Step V1.0 Manual mode is dependent on the ActivateRecoverMode tag in the event of an error. Approach substitute output value This operating mode is activated in the event of an error or when Reset = TRUE if Errorbehaviour = 1 and ActivateRecoverMode = FALSE.. PID_3Step moves the actuator to the substitute output value and then switches to "Inactive" mode.

380

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

State / Retain.Mode 6
7
8

Description
Transition time measurement The time that the motor needs to completely open the valve from the closed condition is determined. This operating mode is activated when GetTransitTime.Start = TRUE is set. If endstop signals are used to measure the transition time, the valve will be opened completely from its current position, closed completely, and opened completely again. If GetTransitTime.InvertDirection = TRUE, this behavior is inverted. If position feedback is used to measure the transition time, the actuator will be moved from its current position to a target position. The output value limits are not taken into consideration during the transition time measurement. The actuator can travel to the high or the low endstop. Error monitoring The control algorithm is switched off and no longer changes the valve position. This operating mode is activated instead of "Inactive" mode in the event of an error. All the following conditions must be met:
· Mode = 3 (automatic mode) · Errorbehaviour = 0 · ActivateRecoverMode = TRUE · One or more errors have occurred in which ActivateRecoverMode (Page 388) is effective. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode. Approach substitute output value with error monitoring This operating mode is activated instead of "Approach substitute output value" mode in the event of an error. PID_3Step moves the actuator to the substitute output value and then switches to "Error monitoring" mode. All the following conditions must be met:
· Mode = 3 (automatic mode) · Errorbehaviour = 1 · ActivateRecoverMode = TRUE · One or more errors have occurred in which ActivateRecoverMode (Page 388) is effective. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode.

PID control Function Manual, 10/2018, A5E35300227-AD

381

Instructions 9.2 PID_3Step
Automatic switchover of operating mode during commissioning PID_3Step automatically switches the operating mode in the event of an error. The following diagram illustrates the influence of ErrorBehaviour on the switchover of operating mode from transition time measurement, pretuning, and fine tuning modes.

Automatic switchover of operating mode in the event of an error Automatic switchover of operating mode once the current operation has been completed.

382

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step
Automatic switchover of operating mode in automatic mode (PID_3Step V1.1) PID_3Step automatically switches the operating mode in the event of an error. The following diagram illustrates the influence of ErrorBehaviour and ActivateRecoverMode on this switchover of operating mode.

Automatic switchover of operating mode in the event of an error Automatic switchover of operating mode once the current operation has been completed.

PID control Function Manual, 10/2018, A5E35300227-AD

383

Instructions 9.2 PID_3Step
Automatic switchover of operating mode in automatic and manual modes (PID_3Step V1.0) PID_3Step automatically switches the operating mode in the event of an error. The following diagram illustrates the influence of ErrorBehaviour and ActivateRecoverMode on this switchover of operating mode.

Automatic switchover of operating mode in the event of an error Automatic switchover of operating mode once the current operation has been completed. Automatic switchover of operating mode when error is no longer pending.

See also

Tag ActivateRecoverMode V1 (Page 388) Parameter ErrorBits V1 (Page 385)

384

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

9.2.5.7

Parameter ErrorBits V1
If several errors are pending simultaneously, the values of the error codes are displayed with binary addition. The display of error code 0003, for example, indicates that the errors 0001 and 0002 are pending simultaneously.

ErrorBits (DW#16#...) 0000 0001
0002 0004 0020 0080
0100 0200 0400 0800
1000

Description
There is no error. The "Input" parameter is outside the process value limits.
· Input > Config.InputUpperLimit or
· Input < Config.InputLowerLimit If ActivateRecoverMode = TRUE and ErrorBehaviour = 1, the actuator moves to the substitute output value. If ActivateRecoverMode = TRUE and ErrorBehaviour = 0, the actuator stops in its current position. If ActivateRecoverMode = FALSE, the actuator stops in its current position. PID_3Step V1.1 You can move the actuator in manual mode. PID_3Step V1.0 Manual mode is not possible in this state. You cannot move the actuator again until you eliminate the error. Invalid value at "Input_PER" parameter. Check whether an error is pending at the analog input. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode. Error during fine tuning. Oscillation of the process value could not be maintained. Pretuning is not permitted in automatic mode or during fine tuning. Error during pretuning. The output value limits are not configured correctly or the actual value does not react as expected. Check whether the limits of the output value are configured correctly and match the control logic. Also make sure that the actual value does not oscillate strongly before starting pretuning. Error during fine tuning resulted in invalid parameters. Invalid value at "Input" parameter: Value has an invalid number format. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode. Calculation of output value failed. Check the PID parameters. Sampling time error: PID_3Step is not called within the sampling time of the cyclic interrupt OB. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode. If this error occurred during simulation with PLCSIM, see the notes under Simulating PID_3Step V1 with PLCSIM (Page 160). Invalid value at "Setpoint" parameter: Value has an invalid number format. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.

PID control Function Manual, 10/2018, A5E35300227-AD

385

Instructions 9.2 PID_3Step

ErrorBits (DW#16#...) 2000
4000
8000

Description
Invalid value at Feedback_PER parameter. Check whether an error is pending at the analog input. The actuator cannot be moved to the substitute output value and remains in its current position. Manual mode is not possible in this state. You must deactivate position feedback (Config. FeedbackOn = FALSE) to move the actuator from this state. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.
Invalid value at Feedback parameter. Value has an invalid number format. The actuator cannot be moved to the substitute output value and remains in its current position. Manual mode is not possible in this state. You must deactivate position feedback (Config. FeedbackOn = FALSE) to move the actuator from this state. If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.
Error during digital position feedback. Actuator_H = TRUE and Actuator_L = TRUE. The actuator cannot be moved to the substitute output value and remains in its current position. Manual mode is not possible in this state. In order to move the actuator from this state, you must deactivate the "Actuator endstop" (Config.ActuatorEndStopOn = FALSE). If automatic mode was active before the error occurred, ActivateRecoverMode = TRUE, and the error is no longer pending, PID_3Step switches back to automatic mode.

386

PID control Function Manual, 10/2018, A5E35300227-AD

9.2.5.8

Instructions 9.2 PID_3Step
Parameter Reset V1 A rising edge at Reset triggers a change to "Inactive" mode, and errors and warnings are reset. A falling edge at Reset triggers a change to the most recently active operating mode. If automatic mode was active before, switchover to automatic mode is bumpless.

 Activation  Error  Reset

PID control Function Manual, 10/2018, A5E35300227-AD

387

Instructions 9.2 PID_3Step

9.2.5.9

Tag ActivateRecoverMode V1 The effect of the ActivateRecoverMode variable depends on the version of the PID_3Step.

Behavior in version 1.1
The ActivateRecoverMode variable determines the behavior in the event of an error in automatic mode. ActivateRecoverMode is not effective during pretuning, fine tuning and transition time measurement.

ActivateRecoverMode FALSE
TRUE

Description
In the event of an error, PID_3Step switches to "Inactive" or "Approach substitute output value" operating mode. The controller is activated by a reset or a change in Retain.Mode. If errors occur frequently in automatic mode, this setting has a negative effect on the control response. In this case, check the ErrorBits parameter and eliminate the cause of the error. If one or more errors occur, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode: · 0002h: Invalid value at parameter Input_PER. · 0200h: Invalid value at parameter Input. · 0800h: Sampling time error · 1000h: Invalid value at parameter Setpoint. · 2000h: Invalid value at parameter Feedback_PER. · 4000h: Invalid value at parameter Feedback. · 8000h: Error in digital position feedback. With errors 2000h, 4000h and 8000h, PID_3Step cannot approach the configured substitute output value. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode.

388

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.2 PID_3Step

Behavior in version 1.0
The ActivateRecoverMode variable determines the behavior in the event of an error in automatic and manual mode. ActivateRecoverMode is not effective during pretuning, fine tuning and transition time measurement.

ActivateRecoverMode FALSE
TRUE

Description
In the event of an error, PID_3Step switches to "Inactive" or "Approach substitute output value" operating mode. The controller is activated by a reset or a change in Retain.Mode. Errors in automatic mode If errors occur frequently in automatic mode, this setting has a negative effect on the control response. In this case, check the ErrorBits parameter and eliminate the cause of the error. If one or more errors occur, PID_3Step switches to "Approach substitute output value with error monitoring" or "Error monitoring" mode: · 0002h: Invalid value at parameter Input_PER. · 0200h: Invalid value at parameter Input. · 0800h: Sampling time error · 1000h: Invalid value at parameter Setpoint. · 2000h: Invalid value at parameter Feedback_PER. · 4000h: Invalid value at parameter Feedback. · 8000h: Error in digital position feedback. With errors 2000h, 4000h and 8000h, PID_3Step cannot approach the configured substitute output value. As soon as the errors are no longer pending, PID_3Step switches back to automatic mode. Errors in manual mode If one or more of the following errors occur, PID_3Step stays in manual mode: · 0002h: Invalid value at parameter Input_PER. · 0200h: Invalid value at parameter Input. · 0800h: Sampling time error · 1000h: Invalid value at parameter Setpoint. · 2000h: Invalid value at parameter Feedback_PER. · 4000h: Invalid value at parameter Feedback. · 8000h: Error in digital position feedback. With errors 2000h, 4000h and 8000h, you cannot move the valve to a suitable position.

See also

PID_3Step V1 static tags (Page 369) Parameter State and Retain.Mode V1 (Page 378)

PID control Function Manual, 10/2018, A5E35300227-AD

389

Instructions 9.2 PID_3Step

9.2.5.10

Tag Warning V1
If several warnings are pending simultaneously, their values are displayed with binary addition. The display of warning 0003, for example, indicates that the warnings 0001 and 0002 are pending simultaneously.

Warning (DW#16#...) 0000 0001 0002 0004 0008
0010 0020
0040 0080 0100 0200 0400
0800
1000

Description
No warning pending. The point of inflection was not found during pretuning. Oscillation increased during fine tuning. The setpoint was limited to the configured limits. Not all the necessary controlled system properties were defined for the selected method of calculation. The PID parameters were instead calculated using the TuneRuleTIR = 3 method. The operating mode could not be changed because ManualEnable = TRUE. The cycle time of the calling OB limits the sampling time of the PID algorithm. Improve results by using shorter OB cycle times. The process value exceeded one of its warning limits. Invalid value at Retain.Mode. The operating mode is not switched. The manual value was limited to the limits of the controller output. The rule used for tuning produces an incorrect result, or is not supported. Method selected for transition time measurement not suitable for actuator. The transition time cannot be measured because the actuator settings do not match the selected measuring method. The difference between the current position and the new output value is too small for transition time measurement. This can produce incorrect results. The difference between the current output value and new output value must be at least 50% of the entire control range. The substitute output value cannot be reached because it is outside the output value limits.
The following warnings are deleted as soon as the cause is eliminated:
 0004
 0020
 0040
 0100
All other warnings are cleared with a rising edge at Reset.

390

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.2.5.11

Tag SUT.State V1

SUT.State Name 0 SUT_INIT
50 SUT_TPDN 100 SUT_STDABW 200 SUT_GET_POI 300 SUT_GET_RISETM 9900 SUT_IO
1 SUT_NIO

Description Initialize pretuning Determine start position without position feedback Calculate the standard deviation Find the point of inflection Determine the rise time Pretuning successful Pretuning not successful

9.2.5.12

Tag TIR.State V1

TIR.State Name -100 TIR_FIRST_SUT 0 TIR_INIT 200 TIR_STDABW 300 TIR_RUN_IN 400 TIR_CTRLN
500 TIR_OSZIL 9900 TIR_IO
1 TIR_NIO

Description Fine tuning is not possible. Pretuning will be executed first. Initialize fine tuning Calculate the standard deviation Attempt to reach the setpoint with the maximum or minimum output value Attempt to reach the setpoint with the existing PID parameters (if pretuning has been successful) Determine oscillation and calculate parameters Fine tuning successful Fine tuning not successful

PID control Function Manual, 10/2018, A5E35300227-AD

391

Instructions 9.3 PID_Temp

9.3

PID_Temp

9.3.1

New features of PID_Temp

PID_Temp V1.1
 Response of the output value on switchover from "Inactive" operating mode to "Automatic mode"
The new option IntegralResetMode = 4 was added and defined as default. With IntegralResetMode = 4, the integral action is automatically pre-assigned when switching from "Inactive" operating mode to "Automatic mode" so that a control deviation results in a jump of the PID output value with identical sign.
 Initialization of the integral action in automatic mode
The integral action can be initialized in automatic mode with the tags OverwriteInitialOutputValue and PIDCtrl.PIDInit. This simplifies the use of PID_Temp for override controls.

9.3.2

Compatibility with CPU and FW
The following table shows which version of PID_Temp can be used on which CPU.

CPU S7-1200
S7-1500

FW V4.2 or higher
V4.1 V2.0 or higher
V1.7 to V1.8

PID_Temp V1.1 V1.0 V1.0 V1.1 V1.0 V1.0

392

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.3

CPU processing time and memory requirement PID_Temp V1

CPU processing time
Typical CPU processing times of the PID_Temp technology object as of Version 1.0, depending on CPU type.

CPU CPU 1211C  V4.1 CPU 1215C  V4.1 CPU 1217C  V4.1 CPU 1505S  V1.0 CPU 1510SP-1 PN  V1.7 CPU 1511-1 PN  V1.7 CPU 1512SP-1 PN  V1.7 CPU 1516-3 PN/DP  V1.7 CPU 1518-4 PN/DP  V1.7

Typ. CPU processing time PID_Temp V1 580 µs 580 µs 580 µs 50 µs 130 µs 130 µs 130 µs 75 µs 6 µs

Memory requirement
Memory requirement of an instance DB of the PID_Temp technology object as of Version V1.0.

Load memory requirement Total work memory requirement Retentive work memory requirement

Memory requirement of the instance DB of PID_Temp V1 Approx. 17000 bytes 1280 bytes 100 bytes

PID control Function Manual, 10/2018, A5E35300227-AD

393

Instructions 9.3 PID_Temp

9.3.4

PID_Temp

9.3.4.1

Description of PID_Temp

Description

The PID_Temp instruction provides a PID controller with integrated tuning for temperature processes. PID_Temp can be used for pure heating or heating/cooling applications. The following operating modes are possible:  Inactive  Pretuning  Fine tuning  Automatic mode  Manual mode  Substitute output value with error monitoring For a more detailed description of the operating modes, see the State parameter.

PID algorithm

PID_Temp is a PIDT1 controller with anti-windup and weighting of the proportional and derivative actions. The PID algorithm operates according to the following equation (control zone and dead zone deactivated):

The table below shows the meaning of the icons used in the equation and in the subsequent figures.

Icon

Description

Associated parameters of the PID_Temp instruction

y

Output value of the PID algorithm

-

Kp

Proportional gain

Retain.CtrlParams.Heat.Gain

Retain.CtrlParams.Cool.Gain

CoolFactor

s

Laplace operator

-

b

Proportional action weighting

Retain.CtrlParams.Heat.PWeighting

Retain.CtrlParams.Cool.PWeighting

w

Setpoint

CurrentSetpoint

x

Process value

ScaledInput

TI

Integral action time

Retain.CtrlParams.Heat.Ti

Retain.CtrlParams.Cool.Ti

394

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Icon TD a c DeadZone ControlZone

Description Derivative action time
Derivative delay coefficient (derivative delay T1 = a × TD) Derivative action weighting
Dead zone width
Control zone width

Associated parameters of the PID_Temp instruction Retain.CtrlParams.Heat.Td Retain.CtrlParams.Cool.Td Retain.CtrlParams.Heat.TdFiltRatio Retain.CtrlParams.Cool.TdFiltRatio Retain.CtrlParams.Heat.DWeighting Retain.CtrlParams.Cool.DWeighting Retain.CtrlParams.Heat.DeadZone Retain.CtrlParams.Cool.DeadZone Retain.CtrlParams.Heat.ControlZone Retain.CtrlParams.Cool.ControlZone

PID control Function Manual, 10/2018, A5E35300227-AD

395

Instructions 9.3 PID_Temp
PID_Temp block diagram

396

PID control Function Manual, 10/2018, A5E35300227-AD

Block diagram of PIDT1 with anti-windup

Instructions 9.3 PID_Temp

Call
PID_Temp is called in the constant time scale of a cyclic interrupt OB.
If you call PID_Temp as a multi-instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for PID_Temp directly in the multi-instance DB and commission it via a watch table.

Download to device
The process values of retentive tags are only updated when you download PID_Temp completely.
Download technology object to device (Page 44)

Startup

When the CPU starts up, PID_Temp starts in the operating mode that is saved in the Mode in/out parameter. To switch to "Inactive" operating mode during startup, set RunModeByStartup = FALSE.

PID control Function Manual, 10/2018, A5E35300227-AD

397

Instructions 9.3 PID_Temp

Reaction to error
The behavior in the case of an error is determined by the tags SetSubstituteOutput and ActivateRecoverMode. If ActivateRecoverMode = TRUE, the behavior also depends on the error that occurred.

SetSubstituteOutput Not relevant
FALSE
TRUE

ActivateRecoverMode FALSE
TRUE
TRUE

Configuration editor > Basic settings of output > Set PidOutputSum to Zero (inactive)
Current value for error while error is pending
Substitute output value while error is pending

Reaction
Switch to "Inactive" (State = 0) mode The output value of the PID algorithm and all outputs for heating and cooling are set to 0. The scaling of the outputs for heating and cooling is not active. Switch to "Substitute output value with error monitoring" mode (State = 5) The current output value is transferred to the actuator while the error is pending. Switch to "Substitute output value with error monitoring" mode (State = 5) The value at SubstituteOutput is transferred to the actuator while the error is pending.

In manual mode, PID_Temp uses ManualValue as output value, unless ManualValue is invalid.

 If ManualValue is invalid, SubstituteOutput is used.

 If ManualValue and SubstituteOutput are invalid, Config.Output.Heat.PidLowerLimit is used.

The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is reset by a rising edge at Reset or ErrorAck.

398

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.2

Mode of operation of PID_Temp

Monitoring process value limits
You specify the high limit and low limit of the process value in the Config.InputUpperLimit and Config.InputLowerLimit tags. If the process value is outside these limits, an error occurs (ErrorBits = 0000001h).
You specify a high and low warning limit of the process value in the Config.InputUpperWarning and Config.InputLowerWarning tags. If the process value is outside these warning limits, a warning occurs (Warning = 0000040h), and the InputWarning_H or InputWarning_L output parameter changes to TRUE.

Limiting the setpoint
You specify a high limit and low limit of the setpoint in the Config.SetpointUpperLimit and Config.SetpointLowerLimit tags. PID_Temp automatically limits the setpoint to the process value limits. You can limit the setpoint to a smaller area. PID_Temp checks whether this area is within the process value limits. If the setpoint is outside these limits, the high or low limit is used as the setpoint, and output parameter SetpointLimit_H or SetpointLimit_L is set to TRUE.
The setpoint is limited in all operating modes.

Substitute setpoint
You can specify a substitute setpoint at the SubstituteSetpoint tag and activate it with SubstituteSetpointOn = TRUE. In this way, you can temporarily specify the setpoint directly, for example for a slave controller in a cascade, without having to change the user program. The limits set for the setpoint also apply to the substitute setpoint.

Heating and cooling
With the default setting, PID_Temp only uses the outputs for heating (OutputHeat, OutputHeat_PWM, OutputHeat_PER). The output value of the PID algorithm (PidOutputSum) is scaled and output at the outputs for heating. You specify with Config.Output.Heat.Select if OutputHeat_PWM or OutputHeat_PER is calculated. OutputHeat is always calculated.
With Config.ActivateCooling = TRUE, you can also activate the outputs for cooling (OutputCool, OutputCool_PWM, OutputCool_PER). Positive output values of the PID algorithm (PidOutputSum) are scaled and output at the outputs for heating. Negative output values of the PID algorithm are scaled and output at the outputs for cooling. You specify with Config.Output.Cool.Select if OutputCool_PWM or OutputCool_PER is calculated. OutputCool is always calculated.

PID control Function Manual, 10/2018, A5E35300227-AD

399

Instructions 9.3 PID_Temp

Two methods are available to calculate the PID output value with activated cooling:
 Cooling factor (Config.AdvancedCooling = FALSE):
The output value calculation for cooling takes place with the PID parameters for heating, taking into consideration the configurable cooling factor Config.CoolFactor. This method is suitable if the heating and cooling actuators have a similar time response but different gains. If this method is selected, pretuning and fine tuning for cooling as well as the PID parameter set for cooling are not available. You can only execute the tuning for heating.
 PID parameter switching (Config.AdvancedCooling = TRUE):
The output value calculation for cooling takes place by means of a separate PID parameter set. Based on the calculated output value and the control deviation, the PID algorithm decides whether the PID parameter for heating or cooling is used. This method is suitable if the heating and cooling actuator have different time responses and different gains. Pretuning and fine tuning for cooling are only available if this method is selected.

Output value limits and scaling
Depending on the operating mode, the PID output value (PidOutputSum) is calculated automatically by the PID algorithm or defined by the manual value (ManualValue) or the configured substitute output value (SubstituteOutput).
The PID output value is limited according to the configuration:
 If cooling is deactivated (Config.ActivateCooling = FALSE), Config.Output.Heat.PidUpperLimit is the high limit and Config.Output.Heat.PidLowerLimit the low limit.
 If cooling is activated (Config.ActivateCooling = TRUE), Config.Output.Heat.PidUpperLimit is the high limit and Config.Output.Cool.PidLowerLimit the low limit.
The PID output value is scaled and output at the outputs for heating and cooling. Scaling can be defined separately for each output and is specified in the structures Config.Output.Heat or Config.Output.Cool with 2 value pairs each:

Output OutputHeat
OutputHeat_PWM

Value pair Value pair 1
Value pair 2
Value pair 1

Parameter PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high output value (heating) Config.Output.Heat.UpperScaling PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low output value (heating) Config.Output.Heat.LowerScaling PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high PWM output value (heating) Config.Output.Heat.PwmUpperScaling

400

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Output OutputHeat_PER OutputCool OutputCool_PWM OutputCool_PER

Value pair Value pair 2 Value pair 1 Value pair 2 Value pair 1 Value pair 2 Value pair 1 Value pair 2 Value pair 1 Value pair 2

Parameter PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low PWM output value (heating) Config.Output.Heat.PwmLowerScaling PID output value high limit (heating) Config.Output.Heat.PidUpperLimit, Scaled high analog output value (heating) Config.Output.Heat.PerUpperScaling PID output value low limit (heating) Config.Output.Heat.PidLowerLimit, Scaled low analog output value (heating) Config.Output.Heat.PerLowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high output value (cooling) Config.Output.Cool.UpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low output value (cooling) Config.Output.Cool.LowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high PWM output value (cooling) Config.Output.Cool.PwmUpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low PWM output value (cooling) Config.Output.Cool.PwmLowerScaling PID output value low limit (cooling) Config.Output.Cool.PidLowerLimit, Scaled high analog output value (cooling) Config.Output.Cool.PerUpperScaling PID output value high limit (cooling) Config.Output.Cool.PidUpperLimit, Scaled low analog output value (cooling) Config.Output.Cool.PerLowerScaling

If cooling is activated (Config.ActivateCooling = TRUE), Config.Output.Heat.PidLowerLimit must have the value 0.0.
Config.Output.Cool.PidUpperLimit must always have the value 0.0.

PID control Function Manual, 10/2018, A5E35300227-AD

401

Instructions 9.3 PID_Temp
Example: Output scaling when using output OutputHeat (cooling deactivated; Config.Output.Heat.PidLowerLimit may be unequal to 0.0):
Example: Output scaling when using output OutputHeat_PWM and OutputCool_PER (cooling activated; Config.Output.Heat.PidLowerLimit must be 0.0):
With the exception of the "Inactive" operating mode, the value at an output is always located between its scaled high output value and scaled low output value, for example, for OutputHeat always between Config.Output.Heat.UpperScaling and Config.Output.Heat.LowerScaling. If you want to limit the value at the associated output, you therefore have to adapt these scaling values as well.

402

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Cascading

PID_Temp supports you when you use cascade control (see: Program creation (Page 197)).

Substitute output value
In the event of an error, PID_Temp can output a substitute output value that you define at the SubstituteOutput tag. The substitute output value must be within the limits for the PID output value. The values at the outputs for heating and cooling resulting from the substitute output value are the result of the configured output scaling.

Monitoring signal validity The values of the following parameters are monitored for validity when used:  Setpoint  SubstituteSetpoint  Input  Input_PER  Disturbance  ManualValue  SubstituteOutput  PID parameters in the structures Retain.CtrlParams.Heat and Retain.CtrlParams.Cool.

Monitoring the sampling time PID_Temp
Ideally, the sampling time is equivalent to the cycle time of the cyclic interrupt OB. The PID_Temp instruction measures the time interval between two calls. This is the current sampling time. On every switchover of operating mode and during the initial startup, the mean value is formed from the first 10 sampling times. Too great a difference between the current sampling time and this mean value triggers an error (Error = 0000800h).
The error occurs during tuning if:
 New mean value >= 1.1 x old mean value
 New mean value <= 0.9 x old mean value
The error occurs in automatic mode if:
 New mean value >= 1.5 x old mean value
 New mean value <= 0.5 x old mean value
If you deactivate the sampling time monitoring (CycleTime.EnMonitoring = FALSE), you can also call PID_Temp in OB1. You must then accept a lower control quality due to the deviating sampling time.

PID control Function Manual, 10/2018, A5E35300227-AD

403

Instructions 9.3 PID_Temp

Sampling time of the PID algorithm
The controlled system needs a certain amount of time to respond to changes in the output value. It is therefore not advisable to calculate the output value in every cycle. The sampling time of the PID algorithm represents the time between two calculations of the output value. It is calculated during tuning and rounded to a multiple of the cycle time of the cyclic interrupt OB (sampling time PID_Temp). All other functions of the PID_Temp are executed at every call.
If cooling and PID parameter switching are activated, PID_Temp uses a separate sampling time of the PID algorithm for heating and cooling. In all other configurations, only the sampling time of the PID algorithm for heating is used.
If you use OutputHeat_PWM or OutputCool_PWM, the sampling time of the PID algorithm is used as time period of the pulse width modulation. The accuracy of the output signal is determined by the ratio of the PID algorithm sampling time to the cycle time of the OB. The cycle time should be no more than a tenth of the PID algorithm sampling time.
If the PID algorithm sampling time and thus the time period of the pulse width modulation is very high when you use OutputHeat_PWM or OutputCool_PWM, you can define a deviating shorter period duration at the Config.Output.Heat.PwmPeriode or Config.Output.Cool.PwmPeriode parameters to improve the smoothness of the process value.

Control logic

PID_Temp can be used for heating or heating/cooling applications and always works with normal control logic.
An increase of the PID output value (PidOutputSum) is intended to increase the process value. The values at the outputs for heating and cooling resulting from the PID output value are the result of the configured output scaling.
An inverted control logic or negative proportional gain are not supported.
If you only need an output value for your application in which an increase is to reduce the process value (for example, discharge control), you can use PID_Compact with inverted control logic.

404

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.3

Input parameters of PID_Temp

Parameter Setpoint

Data type REAL

Default 0.0

Input

REAL

Input_PER INT

Disturbance
ManualEnable

REAL BOOL

0.0
0
0.0 FALSE

ManualValue REAL

0.0

ErrorAck

BOOL

FALSE

Description Setpoint of the PID controller in automatic mode Valid range of values: Config.SetpointUpperLimit  Setpoint  Config.SetpointLowerLimit Config.InputUpperLimit  Setpoint  Config.InputLowerLimit A tag of the user program is used as source for the process value. If you are using the Input parameter, Config.InputPerOn = FALSE must be set. An analog input is used as the source of the process value. If you are using the Input_PER parameter, Config.InputPerOn = TRUE must be set. Disturbance variable or precontrol value
· A FALSE -> TRUE edge activates "Manual mode", whileState = 4, Mode remains unchanged.
As long as ManualEnable = TRUE, you cannot change the operating mode via a rising edge at ModeActivate or use the commissioning dialog. · A TRUE -> FALSE edge activates the operating mode that is specified by Mode. We recommend that you change the operating mode using Mode and ModeActivate only. Manual value This value is used in manual mode as PID output value (PidOutputSum). The values at the outputs for heating and cooling resulting from this manual value are the result of the configured output scaling (structures Config.Output.Heat and Config.Output.Cool). For controllers with activated cooling output (Config.ActivateCooling = TRUE), define:
· a positive manual value to output the value at the outputs for heating · a negative manual value to output the value at the outputs for cooling The permitted value range is determined by the configuration.
· Cooling output deactivated (Config.ActivateCooling = FALSE):
Config.Output.Heat.PidUpperLimit  ManualValue  Config.Output.Heat.PidLowerLimit · Cooling output activated (Config.ActivateCooling = TRUE):
Config.Output.Heat.PidUpperLimit  ManualValue  Config.Output.Cool.PidLowerLimit
· FALSE -> TRUE edge
ErrorBits and Warning are reset.

PID control Function Manual, 10/2018, A5E35300227-AD

405

Instructions 9.3 PID_Temp

Parameter Reset

Data type BOOL

Default FALSE

ModeActivate

BOOL

FALSE

Description Restarts the controller.
· FALSE -> TRUE edge ­ Switch to "Inactive" mode ­ ErrorBits and Warning are reset.
· As long as Reset = TRUE, ­ PID_Temp remains in "Inactive" mode (State = 0). ­ you cannot change the operating mode with Mode and ModeActivate or ManualEnable ­ You cannot use the commissioning dialog.
· TRUE -> FALSE edge ­ If ManualEnable = FALSE, PID_Temp switches to the operating mode that is saved in Mode. ­ If Mode = 3 (automatic mode), the integral action is treated as configured with the tag IntegralResetMode.
· FALSE -> TRUE edge
PID_Temp switches to the operating mode that is saved at the Mode input.

406

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.4

Output parameters of PID_Temp

Parameter ScaledInput OutputHeat

Data type Default

REAL

0.0

REAL

0.0

OutputCool

REAL

0.0

OutputHeat

INT

0

_PER

OutputCool

INT

0

_PER

OutputHeat _PWM

BOOL FALSE

OutputCool _PWM

BOOL FALSE

SetpointLimit _H

BOOL

FALSE

Description
Scaled process value
Output value (heating) in REAL format
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Heat.PidUpperLimit, Config.Output.Heat.UpperScaling and Config.Output.Heat.PidLowerLimit, Config.Output.Heat.LowerScaling and output in REAL format at OutputHeat.
OutputHeat is always calculated.
Output value (cooling) in REAL format
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Cool.PidUpperLimit, Config.Output.Cool.LowerScaling and Config.Output.Cool.PidLowerLimit, Config.Output.Cool.UpperScaling and output in REAL format at OutputCool.
OutputCool is only calculated if the cooling output is activated (Config.ActivateCooling = TRUE).
Analog output value (heating)
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Heat.PidUpperLimit, Config.Output.Heat.PerUpperScaling and Config.Output.Heat.PidLowerLimit, Config.Output.Heat.PerLowerScaling and output as analog value at OutputHeat_PER.
OutputHeat_PER is only calculated if Config.Output.Heat.Select = 2.
Analog output value (cooling)
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Cool.PidUpperLimit, Config.Output.Cool.PerLowerScaling and Config.Output.Cool.PidLowerLimit, Config.Output.Cool.PerUpperScaling and output as analog value at OutputCool_PER.
OutputCool_PER is only calculated if the cooling output is activated (Config .ActivateCooling = TRUE) and Config.Output.Cool.Select = 2.
Pulse-width modulated output value (heating)
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Heat.PidUpperLimit, Config.Output.Heat.PwmUpperScaling and Config.Output.Heat.PidLowerLimit, Config.Output.Heat .PwmLowerScaling and output as pulse-width modulated value (variable switch on and switch off times) at OutputHeat_PWM.
OutputHeat_PWM is only calculated if Config.Output.Heat.Select = 1.
Pulse-width modulated output value (cooling)
The PID output value (PidOutputSum) is scaled with the two value pairs Config.Output.Cool.PidUpperLimit, Config.Output.Cool.PwmLowerScaling and Config.Output.Cool.PidLowerLimit, Config.Output.Cool .PwmUpperScaling and output as pulse-width modulated value (variable switch on and switch off times) at OutputCool_PWM.
OutputCool_PWM is only calculated if the cooling output is activated (Config .ActivateCooling = TRUE) and Config.Output.Cool.Select = 1.
If SetpointLimit_H = TRUE, the absolute setpoint high limit is reached (Setpoint  Config.SetpointUpperLimit) or Setpoint  Config.InputUpperLimit.
The setpoint high limit is the minimum of Config.SetpointUpperLimit and Config.InputUpperLimit.

PID control Function Manual, 10/2018, A5E35300227-AD

407

Instructions 9.3 PID_Temp

Parameter

Data type Default

SetpointLimit_L BOOL FALSE

InputWarning _H
InputWarning _L
State

BOOL BOOL INT

FALSE FALSE 0

Error ErrorBits

BOOL FALSE DWORD DW#16#0

Description If SetpointLimit_L = TRUE, the absolute setpoint low limit is reached (Setpoint  Config.SetpointLowerLimit) or Setpoint  Config.InputLowerLimit. The setpoint low limit is the maximum of Config.SetpointLowerLimit and Config.InputLowerLimit.
If InputWarning_H = TRUE, the process value has reached or exceeded the warning high limit (ScaledInput  Config.InputUpperWarning).
If InputWarning_L = TRUE, the process value has reached or fallen below the warning low limit (ScaledInput  Config.InputLowerWarning).
The PID_Temp state and mode parameters (Page 446) shows the current operating mode of the PID controller. You can change the operating mode using the input parameter Mode and a rising edge at ModeActivate. For pretuning and fine tuning, you specify with Heat.EnableTuning and Cool.EnableTuning whether tuning takes place for heating or cooling.
· State = 0: Inactive
· State = 1: Pretuning
· State = 2: Fine tuning
· State = 3: Automatic mode
· State = 4: Manual mode
· State = 5: Substitute output value with error monitoring
If Error = TRUE, at least one error message is pending in this cycle.
The PID_Temp ErrorBits parameter (Page 455) shows the pending error messages. ErrorBits is retentive and is reset with a rising edge at Reset or ErrorAck.

408

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.5

In/out parameters of PID_Temp V2

Parameter Data type

Mode

INT

Master

DWORD

Default 4
DW#16#0

Description At Mode, specify the operating mode to which PID_Temp is to switch. Options are:
· Mode = 0: Inactive
· Mode = 1: Pretuning
· Mode = 2: Fine tuning
· Mode = 3: Automatic mode
· Mode = 4: Manual mode The operating mode is activated by:
· Rising edge at ModeActivate
· Falling edge at Reset
· Falling edge at ManualEnable
· Cold restart of CPU if RunModeByStartup = TRUE For pretuning and fine tuning, you specify with Heat.EnableTuning and Cool.EnableTuning whether tuning takes place for heating or cooling. Mode is retentive. A detailed description of the operating modes can be found in State and Mode parameters (Page 446).
Interface for cascade control If this PID_Temp instance is used as slave controller in a cascade (Config.Cascade.IsSlave = TRUE), assign the Master parameter at the instruction call with the Slave parameter of the master controller. Example: Call of a slave controller "PID_Temp_2" with master controller "PID_Temp_1" in SCL: ----------------------------------------------------------------------------
"PID_Temp_2"(Master := "PID_Temp_1".Slave, Setpoint := "PID_Temp_1".OutputHeat);
---------------------------------------------------------------------------You use this interface to exchange slave controller information about operating mode, limit and substitute setpoint with your master controller. Keep in mind that the call of the master controller has to take place before the call of the slave controller in the same cyclic interrupt OB.

PID control Function Manual, 10/2018, A5E35300227-AD

409

Instructions 9.3 PID_Temp

Parameter Data type

Master

DWORD

Slave

DWORD

Default DW#16#0
DW#16#0

Description Assignment:
· Bits 0 to 15: Unassigned · Bits 16 to 23 ­ Limit counter:
A slave controller whose output value is limited increments this counter. Depending on the configured number of slaves (Config.Cascade.CountSlaves) and of the anti-windup mode (Config.Cascade.AntiWindUpMode), the master controller reacts accordingly. · Bit 24 ­ Automatic mode of the slave controllers:
TRUE, if all slave controllers are in automatic mode · Bit 25 ­ Substitute setpoint of the slave controllers:
TRUE, if a slave controller has activated the substitute setpoint (SubstituteSetpointOn = TRUE) Interface for cascade control You use this interface to exchange slave controller information about operating mode, limit and substitute setpoint with your master controller. See description of Master parameter

See also

PID_Temp state and mode parameters (Page 446) Program creation (Page 197) Cascade control with PID_Temp (Page 195)

410

PID control Function Manual, 10/2018, A5E35300227-AD

9.3.4.6

Instructions 9.3 PID_Temp
PID_Temp static tags
Note Change the tags identified with (1) only in "Inactive" mode to prevent malfunction of the PID controller.

Tag IntegralResetMode
OverwriteInitialOutputValue
RunModeByStartup LoadBackUp

Data type Int
REAL
BOOL BOOL

Default V1.0: 1, V1.1 or higher: 4

Description
The IntegralResetMode tag (Page 464) determines how the integral action PIDCtrl.IOutputOld is pre-assigned when switching from "Inactive" operating mode to "Automatic mode".
This setting only works for one cycle.

· IntegralResetMode = 0: Smooth · IntegralResetMode = 1: Delete

· IntegralResetMode = 2: Hold

· IntegralResetMode = 3: Pre-assign
· IntegralResetMode = 4: Like setpoint change (only for PID_Temp with version  1.1)

0.0

If one of the following conditions is met, the integral

action PIDCtrl.IOutputOld is pre-assigned automatically

as if PIDOutputSum = OverwriteInitialOutputValue in the

previous cycle:

· IntegralResetMode = 3 when switching from "Inactive" operating mode to "Automatic mode"
· TRUE -> FALSE edge at parameter Reset and parameter Mode = 3
· PIDCtrl.PIDInit = TRUE in "Automatic mode" (available as of PID_Temp version 1.1)

TRUE

Activate operating mode at Mode parameter after CPU restart

· If RunModeByStartup = TRUE, PID_Temp starts in the operating mode saved in the Mode parameter after CPU startup.
· If RunModeByStartup = FALSE, PID_Temp remains in "Inactive" mode after CPU startup.

FALSE

If LoadBackUp = TRUE, the last set of PID parameters is reloaded from the CtrlParamsBackUp structure. The set was saved prior to the last tuning. LoadBackUp is automatically set back to FALSE. The acceptance is bumpless.

PID control Function Manual, 10/2018, A5E35300227-AD

411

Instructions 9.3 PID_Temp
Tag SetSubstituteOutput
PhysicalUnit PhysicalQuantity ActivateRecoverMode Warning Progress CurrentSetpoint CancelTuningLevel

Data type Default

BOOL

TRUE

INT

0

INT

0

BOOL

TRUE

DWORD 0

REAL

0.0

REAL

0.0

REAL

10.0

Description Selection of the output value while an error is pending (State = 5):
· If SetSubstituteOutput = TRUE and ActivateRecoverMode = TRUE, the configured substitute output value SubstituteOutput is output as PID output value as long as an error is pending.
· If SetSubstituteOutput = FALSE and ActivateRecoverMode = TRUE, the actuator remains at the current PID output value as long as an error is pending.
· If ActivateRecoverMode = FALSE, SetSubstituteOutput is not effective.
· If SubstituteOutput is invalid (ErrorBits = 0020000h), the substitute output value cannot be output. In this case, the low limit of the PID output value for heating (Config.Output.Heat.PidLowerLimit) is used as PID output value.
Unit of measurement of the process value and setpoint, e.g., ºC, or ºF.
This parameter is used for display in the editors and does not influence the control algorithm.
Physical quantity of the process value and setpoint, e.g., temperature.
This parameter is used for display in the editors and does not influence the control algorithm.
The ActivateRecoverMode tag determines the reaction to error.
The Warning tag shows the warnings since Reset = TRUE or ErrorAck =TRUE. Warning is retentive.
Progress of current tuning phase as a percentage (0.0 100.0)
CurrentSetpoint always displays the currently effective setpoint. This value is frozen during tuning.
Permissible fluctuation of setpoint during tuning. Tuning is not canceled until:
· Setpoint > CurrentSetpoint + CancelTuningLevel or
· Setpoint < CurrentSetpoint - CancelTuningLevel

412

PID control Function Manual, 10/2018, A5E35300227-AD

Tag SubstituteOutput

Data type Default

REAL

0.0

PidOutputSum

REAL

0.0

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp
Description The substitute output value is used as PID output value as long as the following conditions are met: · One or more errors are pending in automatic mode
for which ActivateRecoverMode is in effect · SetSubstituteOutput = TRUE · ActivateRecoverMode = TRUE The values at the outputs for heating and cooling resulting from the substitute output value are the result of the configured output scaling (structures Config.Output.Heat and Config.Output.Cool). For controllers with activated cooling output (Config.ActivateCooling = TRUE), define: · a positive substitute output value to output the value
at the outputs for heating · a negative substitute output value to output the value
at the outputs for cooling The permitted value range is determined by the configuration. · Cooling output deactivated (Config.ActivateCooling =
FALSE):
Config.Output.Heat.PidUpperLimit  SubstituteOutput  Config.Output.Heat.PidLowerLimit · Cooling output activated (Config.ActivateCooling = TRUE):
Config.Output.Heat.PidUpperLimit  SubstituteOutput  Config.Output.Cool.PidLowerLimit PID output value PidOutputSum displays the output value of the PID algorithm. Depending on the operating mode, it is either calculated automatically or defined by the manual value or the configured substitute output value. The values at the outputs for heating and cooling resulting from the PID output value are the result of the configured output scaling (structures Config.Output.Heat and Config.Output.Cool). The PidOutputSum is limited as defined in the configuration. · Cooling output deactivated (Config.ActivateCooling = FALSE):
Config.Output.Heat.PidUpperLimit  PidOutputSum  Config.Output.Heat.PidLowerLimit · Cooling output activated (ConfigActivateCooling = TRUE):
Config.Output.Heat.PidUpperLimit  PidOutputSum  Config.Output.Cool.PidLowerLimit
413

Instructions 9.3 PID_Temp
Tag PidOutputOffsetHeat
PidOutputOffsetCool
SubstituteSetpointOn
SubstituteSetpoint
DisableCooling

Data type Default

REAL

0.0

REAL

0.0

BOOL

FALSE

REAL

0.0

BOOL

FALSE

Description
Offset of the PID output value heating
PidOutputOffsetHeat is added to the value that results from PidOutputSum for the heating branch. Enter a positive value for PidOutputOffsetHeat to receive a positive offset at the outputs for heating.
The resulting values at the outputs for heating are the result of the configured output scaling (Config.Output.Heat structure).
This offset can be used for actuators which need a fixed minimum value, for example, fans with minimum speed.
Offset of the PID output value cooling
PidOutputOffsetCool is added to the value that results from PidOutputSum for the cooling branch. Enter a negative value for PidOutputOffsetCool to receive a positive offset at the outputs for cooling.
The resulting values at the outputs for cooling are the result of the configured output scaling ( Config.Output.Cool structure).
This offset can be used for actuators which need a fixed minimum value, for example, fans with minimum speed.
Activates the substitute setpoint as controller setpoint.
· FALSE = the Setpoint parameter is used.
· TRUE = the SubstituteSetpoint parameter is used as setpoint
SubstituteSetpointOn can be used to specify the setpoint of a slave controller in a cascade directly without having to change the user program.
Substitute setpoint
If SubstituteSetpointOn = TRUE, the SubstituteSetpoint parameter is used as setpoint.
Valid range of values:
Config.SetpointUpperLimit  SubstituteSetpoint  Config.SetpointLowerLimit, Config.InputUpperLimit  SubstituteSetpoint  Config.InputLowerLimit
DisableCooling = TRUE deactivates the cooling branch for heating/cooling controllers (Config.ActivateCooling = TRUE) in Automatic mode by setting PidOutputSum to 0.0 as low limit.
PidOutputOffsetCool and the output scaling for the cooling outputs remain active.
DisableCooling can be used for tuning of multi-zone applications to temporarily deactivate the cooling branch as long as all controllers have not completed their tuning yet.
This parameter is set/reset by the user manually and is not automatically reset by the PID_Temp instruction.

414

PID control Function Manual, 10/2018, A5E35300227-AD

Tag AllSlaveAutomaticState

Data type Default

BOOL

FALSE

NoSlaveSubstituteSetpoint

BOOL

FALSE

Heat.EnableTuning

BOOL

TRUE

Cool.EnableTuning

BOOL

FALSE

Config.InputPerOn(1)

BOOL

TRUE

Instructions 9.3 PID_Temp
Description If this PID_Temp instance is used as master controller in a cascade (Config.Cascade.IsMaster = TRUE), AllSlaveAutomaticState = TRUE indicates that all slave controllers are in automatic mode. Tuning, manual mode or automatic mode of the master controller can only be executed accurately if all slave controllers are in automatic mode. AllSlaveAutomaticState is only determined if you interconnect the master controller and slave controller with the Master and Slave parameters. For details, see the Master parameter.
If this PID_Temp instance is used as master controller in a cascade (Config.Cascade.IsMaster = TRUE), NoSlaveSubstituteSetpoint = TRUE indicates that no slave controller has activated its substitute setpoint. Tuning, manual mode or automatic mode of the master controller can only be executed accurately if no slave controller has activated its substitute setpoint. NoSlaveSubstituteSetpoint is only determined if you interconnect the master controller and slave controller with the Master and Slave parameters. For details, see the Master parameter.
Enabling of tuning for heating Heat.EnableTuning must be set for the following tunings (at the same time or prior to the start with Mode and ModeActivate):
· Pretuning heating
· Pretuning heating and cooling
· Fine tuning heating This parameter is not automatically reset by the PID_Temp instruction.
Enabling of tuning for cooling Cool.EnableTuning must be set for the following tunings (simultaneously with or prior to the start with Mode and ModeActivate):
· Pretuning cooling
· Pretuning heating and cooling
· Fine tuning cooling Only effective if the cooling output and PID parameter switching are activated ("Config.ActivateCooling" = TRUE and "Config.AdvancedCooling" = TRUE). This parameter is not automatically reset by the PID_Temp instruction.
If InputPerOn = TRUE, the Input_PER parameter is used for detecting the process value. If InputPerOn = FALSE, the Input parameter is used.

PID control Function Manual, 10/2018, A5E35300227-AD

415

Instructions 9.3 PID_Temp

Tag Config.InputUpperLimit(1)
Config.InputLowerLimit(1) Config.InputUpperWarning(1)
Config.InputLowerWarning(1)

Data type Default

REAL

120.0

REAL

0.0

REAL

3.402822e+38

REAL

-3.402822e+38

Description
High limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit. If the limit is exceeded, an error is output and the reaction is determined by ActivateRecoverMode.
At the I/O input, the process value can be a maximum of 18% higher than the nominal range (overrange). This means the limit cannot be exceeded when you use an I/O input with the pre-setting for high limit and process value scaling.
When pretuning is started, the difference between high and low limit of the process value is checked to determine whether the distance between setpoint and process value meets the necessary requirements.
InputUpperLimit > InputLowerLimit
Low limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit. If the limit is undershot, an error is output and the reaction is determined by ActivateRecoverMode.
InputLowerLimit < InputUpperLimit
Warning high limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit. If the limit is exceeded, a warning is output at the Warning parameter.
· If you set InputUpperWarning outside the process value limits, the configured absolute process value high limit is used as the warning high limit.
· If you configure InputUpperWarning within the process value limits, this value is used as the warning high limit.
InputUpperWarning > InputLowerWarning
Warning low limit of the process value
Input and Input_PER are monitored to ensure adherence to this limit. If the limit is undershot, a warning is output at the Warning parameter.
· If you set InputLowerWarning outside the process value limits, the configured absolute process value low limit is used as the warning low limit.
· If you configure InputLowerWarning within the process value limits, this value is used as the warning low limit.
InputLowerWarning < InputUpperWarning

416

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Tag Config.SetpointUpperLimit(1)
Config.SetpointLowerLimit(1)
Config.ActivateCooling(1)

Data type Default

REAL

3.402822e+38

REAL

-3.402822e+38

BOOL

FALSE

Description High limit of setpoint Setpoint and SubstituteSetpoint are monitored to ensure adherence to this limit. If the limit is exceeded, a warning is output at the Warning parameter.
· If you configure SetpointUpperLimit outside the process value limits, the configured absolute process value high limit is used as the setpoint high limit.
· If you configure SetpointUpperLimit within the process value limits, this value is used as the setpoint high limit.
SetpointUpperLimit > SetpointLowerLimit
Low limit of the setpoint Setpoint and SubstituteSetpoint are monitored to ensure adherence to this limit. If the limit is undershot, a warning is output at the Warning parameter.
· If you set SetpointLowerLimit outside the process value limits, the configured process value absolute low limit is used as the setpoint low limit.
· If you configure SetpointLowerLimit within the process value limits, this value is used as the setpoint low limit.
SetpointLowerLimit < SetpointUpperLimit
Activate cooling output
· Config.ActivateCooling = FALSE
Only the outputs for heating are used.
· Config.ActivateCooling = TRUE
The outputs for heating and cooling are used. If you are using the cooling output, the controller must not be configured as master controller (Config.Cascade.IsMaster must be FALSE) .

PID control Function Manual, 10/2018, A5E35300227-AD

417

Instructions 9.3 PID_Temp

Tag Config.AdvancedCooling(1)

Data type Default

BOOL

TRUE

Config.CoolFactor(1)

REAL

1.0

Description Method for heating/cooling
· Cooling factor (Config.AdvancedCooling = FALSE)
The output value calculation for cooling takes place with the PID parameters for heating (Retain.CtrlParams.Heat structure) taking into consideration the configurable cooling factor Config.CoolFactor.
This method is suitable if the heating and cooling actuators have a similar time response but different gains.
Pretuning and fine tuning for cooling are not available when you select this method. You can only execute the tuning for heating.
· PID parameter switching (Config.AdvancedCooling = TRUE)
The output value calculation for cooling takes place by means of a separate PID parameter set (Retain.CtrlParams.Cool structure).
This method is suitable if the heating and cooling actuator have different time responses and different gains.
Pretuning and fine tuning for cooling are only available when you select this method (Mode = 1 or 2, Cool.EnableTuning = TRUE). Config.AdvancedCooling is only calculated if the cooling output is activated (Config.ActivateCooling = TRUE).
Cooling factor If Config.AdvancedCooling = FALSE, Config.CoolFactor is considered as factor in the calculation of the output value for cooling. This allows different gains of heating and cooling actuators to be taken into account. Config.CoolFactor is not set automatically or adjusted during tuning. You must correctly configure Config.CoolFactor manually with the ratio "heating actuator gain/cooling actuator gain". Example: Config.CoolFactor = 2.0 means that the gain of the heating actuator is twice as high as the gain of the cooling actuator. Config.CoolFactor is only effective if the cooling output is activated (Config.ActivateCooling = TRUE) and cooling factor is selected as method for heating/cooling (Config.AdvancedCooling = FALSE).
Config.CoolFactor > 0.0

418

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
Config.InputScaling .UpperPointIn(1)

Data type Default

REAL

27648.0

Config.InputScaling .LowerPointIn(1)

REAL

0.0

Config.InputScaling .UpperPointOut(1)

REAL

100.0

Config.InputScaling .LowerPointOut(1)

REAL

0.0

Config.Output.Heat.Select(1)

INT

1

Instructions 9.3 PID_Temp
Description Scaling Input_PER high Input_PER is scaled based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Only effective if Input_PER is used for process value detection (Config.InputPerOn = TRUE). UpperPointIn > LowerPointIn Scaling Input_PER low Input_PER is scaled based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Only effective if Input_PER is used for process value detection (Config.InputPerOn = TRUE). LowerPointIn < UpperPointIn Scaled high process value Input_PER is scaled based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Only effective if Input_PER is used for process value detection (Config.InputPerOn = TRUE). UpperPointOut > LowerPointOut Scaled low process value Input_PER is scaled based on the two value pairs UpperPointOut, UpperPointIn and LowerPointOut, LowerPointIn. Only effective if Input_PER is used for process value detection (Config.InputPerOn = TRUE). LowerPointOut < UpperPointOut Selecting the output value for heating Config.Output.Heat.Select specifies which outputs are used for heating:
· Heat.Select = 0 - OutputHeat is used
· Heat.Select = 1 - OutputHeat and OutputHeat_PWM are used
· Heat.Select = 2 -OutputHeat and OutputHeat_PER are used
Outputs that are not used are not calculated and remain at their default value.

PID control Function Manual, 10/2018, A5E35300227-AD

419

Instructions 9.3 PID_Temp
Tag Config.Output.Heat .PwmPeriode(1)
Config.Output.Heat .PidUpperLimit(1)

Data type Default

REAL

0.0

REAL

100.0

Description Period duration of the pulse width modulation (PWM) for heating (OutputHeat_PWM output) in seconds:
· Heat.PwmPeriode = 0.0
The sampling time of the PID algorithm for heating (Retain.CtrlParams.Heat.Cycle) is used as period duration of the PWM.
· Heat.PwmPeriode > 0.0
The value is rounded off to an integer multiple of the PID_Temp sampling time (CycleTime.Value) and used as period duration of the PWM.
This setting can be used to improve the smoothing of the process value with a long sampling time of the PID algorithm.
The value must meet the following conditions: ­ Heat.PwmPeriode  Re-
tain.CtrlParams.Heat.Cycle, ­ Heat.PwmPeriode > Con-
fig.Output.Heat.MinimumOnTime ­ Heat.PwmPeriode > Con-
fig.Output.Heat.MinimumOffTime
High limit of the PID output value for heating The PID output value (PidOutputSum) is limited to the high limit. Heat.PidUpperLimit forms a value pair together with the following parameters for scaling of the PID output value (PidOutputSum) to the outputs for heating:
· Heat.UpperScaling for OutputHeat
· Heat.PwmUpperScaling for OutputHeat_PWM
· Heat.PerUpperScaling for OutputHeat_PER If you want to limit the value at the associated output, you must also adjust these scaling values. Heat.PidUpperLimit > Heat.PidLowerLimit

420

PID control Function Manual, 10/2018, A5E35300227-AD

Tag Config.Output.Heat .PidLowerLimit(1)
Config.Output.Heat .UpperScaling(1) Config.Output.Heat .LowerScaling(1)

Data type Default

REAL

0.0

REAL

100.0

REAL

0.0

Instructions 9.3 PID_Temp
Description Low limit of the PID output value for heating For controllers with deactivated cooling output (Config.ActivateCooling = FALSE), the PID output value (PidOutputSum) is limited to this low limit. For controllers with activated cooling output (Config.ActivateCooling = TRUE), the value must be 0.0. Heat.PidLowerLimit forms a value pair together with the following parameters for scaling of the PID output value (PidOutputSum) to the outputs for heating:
· Heat.LowerScaling for OutputHeat
· Heat.PwmLowerScaling for OutputHeat_PWM
· Heat.PerLowerScaling for OutputHeat_PER If you want to limit the value at the associated output, you must also adjust these scaling values. The permitted value range is determined by the configuration.
· Cooling output deactivated (Config.ActivateCooling = FALSE):
Heat.PidLowerLimit < Heat.PidUpperLimit
· Cooling output activated (Config.ActivateCooling = TRUE):
Heat.PidLowerLimit = 0.0 Scaled high output value for heating Heat.UpperScaling and Heat.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the output value for heating (OutputHeat). The OutputHeat value is always located between Heat.UpperScaling and Heat.LowerScaling. Heat.UpperScaling  Heat.LowerScaling Scaled low output value for heating Heat.LowerScaling and Heat.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the output value for heating (OutputHeat). The OutputHeat value is always located between Heat.UpperScaling and Heat.LowerScaling. Heat.UpperScaling  Heat.LowerScaling

PID control Function Manual, 10/2018, A5E35300227-AD

421

Instructions 9.3 PID_Temp
Tag Config.Output.Heat .PwmUpperScaling(1)
Config.Output.Heat .PwmLowerScaling(1)
Config.Output.Heat .PerUpperScaling(1)
Config.Output.Heat .PerLowerScaling(1)
422

Data type Default

REAL

100.0

REAL

0.0

REAL

27648.0

REAL

0.0

Description Scaled high PWM output value for heating Heat.PwmUpperScaling and Heat.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the pulse-width modulated output value for heating (OutputHeat_PWM). The OutputHeat_PWM value is always located between Heat.PwmUpperScaling and Heat.PWMLowerScaling. Heat.PwmUpperScaling is only effective if OutputHeat_PWM is selected as output for heating (Heat.Select = 1) 100.0  Heat.PwmUpperScaling  0.0 Heat.PwmUpperScaling  Heat.PwmLowerScaling
Scaled low PWM output value for heating Heat.PwmLowerScaling and Heat.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the pulse-width modulated output value for heating (OutputHeat_PWM). The OutputHeat_PWM value is always located between Heat.PwmUpperScaling and Heat.PwmLowerScaling. Heat.PwmLowerScaling is only effective if OutputHeat_PWM is selected as output for heating (Heat.Select = 1) 100.0  Heat.PwmLowerScaling  0.0 Heat.PwmUpperScaling  Heat.PwmLowerScaling
Scaled high analog output value for heating Heat.PerUpperScaling and Heat.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the analog output value for heating (OutputHeat_PER). The OutputHeat_PER value is always located between Heat.PerUpperScaling and Heat.PerLowerScaling. Heat.PerUpperScaling is only effective if OutputHeat_PER is selected as output for heating (Heat.Select = 2) 32511.0  Heat.PerUpperScaling  -32512.0 Heat.PerUpperScaling  Heat.PerLowerScaling
Scaled low analog output value for heating Heat.PerLowerScaling and Heat.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the analog output value for heating (OutputHeat_PER). The OutputHeat_PER value is always located between Heat.PerUpperScaling and Heat.PerLowerScaling. Heat.PerLowerScaling is only effective if OutputHeat_PER is selected as output for heating (Heat.Select = 2) 32511.0  Heat.PerLowerScaling  -32512.0 Heat.PerUpperScaling  Heat.PerLowerScaling
PID control
Function Manual, 10/2018, A5E35300227-AD

Tag
Config.Output.Heat .MinimumOnTime(1)

Data type Default

REAL

0.0

Config.Output.Heat .MinimumOffTime(1)

REAL

0.0

Config.Output.Cool.Select(1)

INT

1

Instructions 9.3 PID_Temp
Description Minimum on time of the pulse width modulation for heating (OutputHeat_PWM output) A PWM pulse is never shorter than this value. The value is rounded off to: Heat.MinimumOnTime = n × CycleTime.Value Heat.MinimumOnTime is only effective if the output for heating OutputHeat_PWM is selected (Heat.Select = 1)". 100000.0  Heat.MinimumOnTime  0.0 Minimum off time of the pulse width modulation for heating (OutputHeat_PWM output) A PWM pause is never shorter than this value. The value is rounded off to: Heat.MinimumOffTime = n × CycleTime.Value Heat.MinimumOffTime is only effective if the output for heating OutputHeat_PWM is selected (Heat.Select = 1)". 100000.0  Heat.MinimumOffTime  0.0 Selecting the output value for cooling Config.Output.Cool.Select specifies which outputs are used for cooling:
· Cool.Select = 0 - OutputCool is used · Cool.Select = 1 -OutputCool and OutputCool_PWM
are used · Cool.Select = 2 - OutputCool and OutputCool_PER
are used Outputs that are not used are not calculated and remain at their default value. Only effective if the cooling output is activated (Config.ActivateCooling = TRUE).

PID control Function Manual, 10/2018, A5E35300227-AD

423

Instructions 9.3 PID_Temp
Tag Config.Output.Cool .PwmPeriode(1)
Config.Output.Cool .PidUpperLimit(1)

Data type Default

REAL

0.0

REAL

0.0

Description Period duration of the pulse width modulation for cooling (OutputCool_PWM output) in seconds:
· Cool.PwmPeriode = 0.0 and Config.AdvancedCooling = FALSE:
sampling time of the PID algorithm for heating
(Retain.CtrlParams.Heat.Cycle) is used as period duration of the PWM.
· Cool.PwmPeriode = 0.0 and Config.AdvancedCooling = TRUE:
The sampling time of the PID algorithm for cooling (Retain.CtrlParams.Cool.Cycle) is used as period duration of the PWM.
· Cool.PwmPeriode > 0.0:
The value is rounded off to an integer multiple of the PID_Temp sampling time (CycleTime.Value) and used as period duration of the PWM.
This setting can be used to improve the smoothing of the process value with a long sampling time of the PID algorithm.
The value must meet the following conditions: ­ Cool.PwmPeriode  Re-
tain.CtrlParams.Cool.Cycle or Retain.CtrlParams.Heat.Cycle ­ Cool.PwmPeriode > Config.Output.Cool.MinimumOnTime ­ Cool.PwmPeriode > Config.Output.Cool.MinimumOffTime Only effective if the cooling output is activated (Config.ActivateCooling = TRUE). High limit of the PID output value for cooling The value must be 0.0. Cool.PidUpperLimit forms a value pair together with the following parameters for scaling of the PID output value (PidOutputSum) to the outputs for cooling:
· Cool.LowerScaling for OutputCool
· Cool.PwmLowerScaling for OutputCool_PWM
· Cool.PerLowerScaling for OutputCool_PER If you want to limit the value at the associated output, you must also adjust these scaling values. Only effective if the cooling output is activated (Config.ActivateCooling = TRUE). Cool.PidUpperLimit = 0.0

424

PID control Function Manual, 10/2018, A5E35300227-AD

Tag Config.Output.Cool .PidLowerLimit(1)
Config.Output.Cool .UpperScaling(1)
Config.Output.Cool .LowerScaling(1)
Config.Output.Cool .PwmUpperScaling(1)

Data type Default

REAL

-100.0

REAL

100.0

REAL

0.0

REAL

100.0

Instructions 9.3 PID_Temp
Description Low limit of the PID output value for cooling For controllers with activated cooling output (Config.ActivateCooling = TRUE), the PID output value (PidOutputSum) is limited to this low limit. Cool.PidLowerLimit forms a value pair together with the following parameters for scaling of the PID output value (PidOutputSum) to the outputs for cooling:
· Cool.UpperScaling for OutputCool
· Cool.PwmUpperScaling for OutputCool_PWM
· Cool.PerUpperScaling for OutputCool_PER If you want to limit the value at the associated output, you must also adjust these scaling values. Only effective if the cooling output is activated (Config.ActivateCooling = TRUE). Cool.PidLowerLimit < Cool.PidUpperLimit
Scaled high output value for cooling Cool.UpperScaling and Cool.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the output value for cooling (OutputCool). The OutputCool value is always located between Cool.UpperScaling and Cool.LowerScaling. Only effective if the cooling output is activated (Config.ActivateCooling = TRUE). Cool.UpperScaling  Cool.LowerScaling
Scaled low output value for cooling Cool.LowerScaling and Cool.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the output value for cooling (OutputCool). The OutputCool value is always located between Cool.UpperScaling and Cool.LowerScaling. Only effective if the cooling output is activated (Config.ActivateCooling = TRUE). Cool.UpperScaling  Cool.LowerScaling
Scaled high PWM output value for cooling Cool.PwmUpperScaling and Cool.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the pulse-width modulated output value for cooling (OutputCool_PWM). The OutputCool_PWM value is always located between Cool.PwmUpperScaling and Cool.PwmLowerScaling. Cool.PwmUpperScaling is only effective if the cooling output is activated (Config.ActivateCooling = TRUE) and OutputCool_PWM is selected as output for cooling (Cool.Select = 1). 100.0  Cool.PwmUpperScaling  0.0 Cool.PwmUpperScaling  Cool.PwmLowerScaling

PID control Function Manual, 10/2018, A5E35300227-AD

425

Instructions 9.3 PID_Temp
Tag Config.Output.Cool .PwmLowerScaling(1)
Config.Output.Cool .PerUpperScaling(1)
Config.Output.Cool .PerLowerScaling(1)
Config.Output.Cool .MinimumOnTime(1)
426

Data type Default

REAL

0.0

REAL

27648.0

REAL

0.0

REAL

0.0

Description Scaled low PWM output value for cooling
Cool.PwmLowerScaling and Cool.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the pulse-width modulated output value for cooling (OutputCool_PWM).
The OutputCool_PWM value is always located between Cool.PwmUpperScaling and CoolPwm.LowerScaling.
Cool.PwmLowerScaling is only effective if the cooling output is activated (Config.ActivateCooling = TRUE) and OutputCool_PWM is selected as output for cooling (Cool.Select = 1).
100.0  Cool.PwmLowerScaling  0.0
Cool.PwmUpperScaling  Cool.PwmLowerScaling
Scaled high analog output value for cooling
Cool.PerUpperScaling and Cool.PidLowerLimit form a value pair for scaling of the PID output value (PidOutputSum) to the analog output value for cooling (OutputCool_PER).
The OutputCool_PER value is always located between Cool.PerUpperScaling and Cool.PerLowerScaling.
Cool.PerUpperScaling is only effective if the cooling output is activated (Config.ActivateCooling = TRUE) and OutputCool_PER is selected as output for cooling (Cool.Select = 2).
32511.0  Cool.PerUpperScaling  -32512.0
Cool.PerUpperScaling  Cool.PerLowerScaling
Scaled low analog output value for cooling
Cool.PerLowerScaling and Cool.PidUpperLimit form a value pair for scaling of the PID output value (PidOutputSum) to the analog output value for cooling (OutputCool_PER).
The OutputCool_PER value is always located between Cool.PerUpperScaling and Cool.PerLowerScaling.
Cool.PerLowerScaling is only effective if the cooling output is activated (Config.ActivateCooling = TRUE) and OutputCool_PER is selected as output for cooling (Cool.Select = 2).
32511.0  Cool.PerLowerScaling  -32512.0
Cool.PerUpperScaling  Cool.PerLowerScaling
Minimum on time of the pulse width modulation for cooling (OutputCool_PWM output)
A PWM pulse is never shorter than this value.
The value is rounded off to:
Cool.MinimumOnTime = n × CycleTime.Value
Cool.MinimumOnTime is only effective if the output for cooling OutputCool_PWM is selected (Cool.Select = 1).
Only effective if the cooling output is activated (Config.ActivateCooling = TRUE).
100000.0  Cool.MinimumOnTime  0.0
PID control
Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Tag

Data type Default

Description

Config.Output.Cool .MinimumOffTime(1)

REAL

0.0

Minimum off time of the pulse width modulation for cooling (OutputCool_PWM output)

A PWM pause is never shorter than this value.

The value is rounded off to:

Cool.MinimumOffTime = n × CycleTime.Value

Cool.MinimumOffTime is only effective if the output for cooling OutputCool_PWM is selected (Cool.Select = 1).

Only effective if the cooling output is activated (Config.ActivateCooling = TRUE).

100000.0  Cool.MinimumOffTime  0.0

If you are using PID_Temp in a cascade, the master controller and slave controller exchange information via the Master and Slave parameters.

You need to make the interconnection. For details, see the Master parameter.

Config.Cascade.IsMaster(1)

BOOL

FALSE

The controller is master in a cascade and provides the slave setpoint.

Set IsMaster = TRUE if you are using this PID_Temp instance as master controller in a cascade.

A master controller defines the setpoint of a slave controller with its output. A PID_Temp instance can be master controller and slave controller at the same time.

If the controller is used as master controller, the cooling output must be deactivated (Config.ActivateCooling = FALSE).

Config.Cascade.IsSlave(1)

BOOL

FALSE

The controller is slave in a cascade and receives its setpoint from the master.

Set IsSlave = TRUE if you are using this PID_Temp instance as slave controller in a cascade.

A slave controller receives its setpoint (Setpoint parameter) from the output of its master controller (OutputHeat parameter). A PID_Temp instance can be master controller and slave controller at the same time.

Config.Cascade .AntiWindUpMode(1)

INT

1

Anti-windup behavior in the cascade Options are:

· Anti-windup = 0

The AntiWindUp functionality is deactivated. The master controller does not respond to the limit of its slave controllers.
· Anti-windup = 1

The integral action of the master controller is reduced in the ratio "Slaves in limit" to "Number of slaves" ("CountSlaves" parameter). This reduces the effects of the limitation on the control behavior.
· Anti-windup = 2

The integral action of the master controller is held as soon as a slave controller is in the limit.
Only effective if the controller is configured as master controller (Config.Cascade.IsMaster = TRUE).

PID control Function Manual, 10/2018, A5E35300227-AD

427

Instructions 9.3 PID_Temp

Tag

Data type Default

Description

Config.Cascade.CountSlaves(1) INT

1

Number of subordinate slaves

Here you enter the number of directly subordinate slave controllers which receive their setpoint from this master controller.

Only effective if the controller is configured as master controller (Config.Cascade.IsMaster = TRUE).

255  CountSlaves  1

CycleTime.StartEstimation

BOOL

TRUE

If CycleTime.EnEstimation = TRUE, CycleTime.StartEstimation = TRUE starts automatic determination of the PID_Temp sampling time (cycle time of the calling OB).

CycleTime.StartEstimation = FALSE is set once measurement is complete.

CycleTime.EnEstimation

BOOL

TRUE

If CycleTime.EnEstimation = TRUE, the PID_Temp sampling time is determined automatically.

If CycleTime.EnEstimation = FALSE, the sampling time PID_Temp is not determined automatically and must be configured correctly manually with CycleTime.Value.

CycleTime.EnMonitoring

BOOL

TRUE

If CycleTime.EnMonitoring = FALSE, the PID_Temp sampling time is not monitored. If PID_Temp cannot be executed within the sampling time, no error (ErrorBits=0000800h) is output and PID_Temp does not respond as configured with ActivateRecoverMode.

CycleTime.Value(1)

REAL

0.1

PID_Temp sampling time (cycle time of the calling OB) in seconds

CycleTime.Value is determined automatically and is usually equivalent to the cycle time of the calling OB.

You can reload values from the CtrlParamsBackUp structure with LoadBackUp = TRUE.

CtrlParamsBackUp.SetByUser BOOL

FALSE

Saved value of Retain.CtrlParams.SetByUser

CtrlParamsBackUp.Heat.Gain REAL

1.0

Saved proportional gain for heating

CtrlParamsBackUp.Heat.Ti

REAL

20.0

Saved integral action time for heating in seconds

CtrlParamsBackUp.Heat.Td

REAL

0.0

Saved derivative action time for heating in seconds

CtrlParamsBackUp .Heat.TdFiltRatio

REAL

0.2

Saved derivative delay coefficient for heating

CtrlParamsBackUp .Heat.PWeighting

REAL

1.0

Saved weighting of the proportional action for heating

CtrlParamsBackUp .Heat.DWeighting

REAL

1.0

Saved weighting of the derivative action for heating

CtrlParamsBackUp.Heat.Cycle REAL

1.0

Saved sampling time of the PID algorithm for heating in seconds

CtrlParamsBackUp .Heat.ControlZone

REAL

3.402822e+38 Saved control zone width for heating

CtrlParamsBackUp.Heat.DeadZone

REAL

0.0

Saved dead zone width for heating

CtrlParamsBackUp.Cool.Gain REAL

1.0

Saved proportional gain for cooling

CtrlParamsBackUp.Cool.Ti

REAL

20.0

Saved integral action time for cooling in seconds

CtrlParamsBackUp.Cool.Td

REAL

0.0

Saved derivative action time for cooling in seconds

428

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Tag
CtrlParamsBackUp.Cool.TdFiltRatio
CtrlParamsBackUp.Cool.PWeighting
CtrlParamsBackUp.Cool.DWeighting
CtrlParamsBackUp.Cool.Cycle

Data type REAL REAL REAL REAL

Default 0.2 1.0 1.0 1.0

CtrlParamsBackUp.Cool .ControlZone
CtrlParamsBackUp.Cool .DeadZone
PIDSelfTune.SUT .CalculateParamsHeat

REAL REAL BOOL

3.402822e+38 0.0 FALSE

PIDSelfTune.SUT .CalculateParamsCool

BOOL

FALSE

Description Saved derivative delay coefficient for cooling
Saved proportional action weighting factor for cooling
Saved derivative action weighting factor for cooling
Saved sampling time of the PID algorithm for cooling in seconds Saved control zone width for cooling
Saved dead zone width for cooling
The properties of the heating branch of the controlled system are saved during pretuning for heating. If SUT.CalculateParamsHeat = TRUE, the PID parameters for heating (Retain.CtrlParams.Heat structure) are recalculated on the basis of these properties. This enables you to change the parameter calculation method (PIDSelfTune.SUT.TuneRuleHeat parameter) without having to repeat the tuning. SUT.CalculateParamsHeat is set to FALSE after the calculation. Only possible if the pretuning was successful (SUT.ProcParHeatOk = TRUE). The properties of the cooling branch of the controlled system are saved during tuning for cooling. If SUT.CalculateParamsCool = TRUE, the PID parameters for cooling (Retain.CtrlParams.Cool structure) are recalculated on the basis of these properties. This enables you to change the parameter calculation method (PIDSelfTune.SUT.TuneRuleCool parameter) without having to repeat the tuning. SUT.CalculateParamsCool is set to FALSE after the calculation. Only possible if the pretuning was successful (SUT.ProcParCoolOk = TRUE). Only effective if Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE.

PID control Function Manual, 10/2018, A5E35300227-AD

429

Instructions 9.3 PID_Temp
Tag PIDSelfTune.SUT .TuneRuleHeat
PIDSelfTune.SUT .TuneRuleCool

Data type Default

INT

2

INT

2

Description
Method for PID parameter calculation with pretuning for heating
Options are:
· SUT.TuneRuleHeat = 0: PID according to CHR
· SUT.TuneRuleHeat = 1: PI according to CHR
· SUT.TuneRuleHeat = 2: PID for temperature processes according to CHR (results in a slower and rather asymptomatic control response with lower overshoot than SUT.TuneRuleHeat = 0)
(CHR = Chien, Hrones and Reswick)
Only with SUT.TuneRuleHeat = 2 is the control zone Retain.CtrlParams.Heat.ControlZone automatically set during pretuning for heating.
Method for PID parameter calculation with pretuning for cooling
Options are:
· SUT.TuneRuleCool = 0: PID according to CHR
· SUT.TuneRuleCool = 1: PI according to CHR
· SUT.TuneRuleCool = 2: PID for temperature processes according to CHR (results in a slower and rather asymptomatic control response with lower overshoot than SUT.TuneRuleCool = 0)
(CHR = Chien, Hrones and Reswick)
Only with SUT.TuneRuleCool = 2 is the control zone Retain.CtrlParams.Cool.ControlZone automatically set during pretuning for cooling.
SUT.TuneRuleCool is only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE, Config.AdvancedCooling = TRUE).

430

PID control Function Manual, 10/2018, A5E35300227-AD

Tag PIDSelfTune.SUT.State

Data type Default

INT

0

PIDSelfTune.SUT .ProcParHeatOk
PIDSelfTune.SUT .ProcParCoolOk

BOOL

FALSE

BOOL

FALSE

Instructions 9.3 PID_Temp
Description The SUT.State tag indicates the current phase of pretuning: · State = 0: Initialize pretuning · State = 100: Calculate standard deviation for heating · State = 200: Calculate standard deviation for cooling · State = 300: Determine point of inflection for heating · State = 400: Determine point of inflection for cooling · State = 500: Set heating to setpoint after reaching
point of inflection · State = 600: Set cooling to setpoint after reaching
point of inflection · State = 700: Compare efficiency of the heating ac-
tuator and cooling actuator · State = 800: Heating and cooling activated · State = 900: Cooling activated · State = 1000: Determine delay time after switching
off heating · State = 9900: Pretuning successful · State = 1: Pretuning not successful
TRUE: The calculation of the process parameters for pretuning heating was successful. This tag is set during tuning. It must be TRUE for calculation of the PID parameters for heating. TRUE: The calculation of the process parameters for pretuning cooling was successful. This tag is set during tuning. It must be TRUE for calculation of the PID parameters for cooling.

PID control Function Manual, 10/2018, A5E35300227-AD

431

Instructions 9.3 PID_Temp
Tag PIDSelfTune.SUT .AdaptDelayTime

Data type Default

INT

0

Description The AdaptDelayTime tag determines the adaptation of the delay time for heating at the operating point (for "Pretuning heating" and "Pretuning heating and cooling"). Options are:
· SUT.AdaptDelayTime = 0:
No adaptation of delay time. The SUT.State = 1000 phase is skipped. This option results in a shorter tuning time than with SUT.AdaptDelayTime = 1.
· SUT.AdaptDelayTime = 1:
Adaptation of the delay time to the setpoint in SUT.State = 1000 phase by switching off heating temporarily.
This option results in a longer tuning time than withSUT.AdaptDelayTime = 0. It can improve the control response if the process behavior depends significantly on the operating point (non-linearity). This option should not be used for multi-zone applications with strong thermal connections.

432

PID control Function Manual, 10/2018, A5E35300227-AD

Tag

Data type Default

PIDSelfTune.SUT.CoolingMode INT

0

Instructions 9.3 PID_Temp
Description The CoolingMode tag determines the manipulated variable output to determine the cooling parameters (for pretuning heating and cooling). Options are: · SUT.CoolingMode = 0:
Switch off heating and switch on cooling after reaching the setpoint.
The SUT.State = 700 phase is skipped.
Phase SUT.State = 500 is followed by phase SUT.State = 900.
This option can improve the control response if the gain of the cooling actuator is low compared to the gain of the heating actuator. It results in a shorter tuning time than with SUT.CoolingMode = 1 or 2. · SUT.CoolingMode = 1:
Switch on cooling in addition to heating after reaching the setpoint.
The SUT.State = 700 phase is skipped.
Phase SUT.State = 500 is followed by phase SUT.State = 800.
This option can improve the control response if the gain of the cooling actuator is high compared to the gain of the heating actuator. · SUT.CoolingMode = 2:
After heating up to the setpoint, a decision is automatically made in phase SUT.State = 700 as to whether heating is switched off. Phase SUT.State = 500 is followed by phase SUT.State = 700 and then SUT.State = 800 or SUT.State = 900.
This option requires more time than options 0 and 1.

PID control Function Manual, 10/2018, A5E35300227-AD

433

Instructions 9.3 PID_Temp
Tag PIDSelfTune.TIR.RunIn

Data type Default

BOOL

FALSE

PIDSelfTune.TIR .CalculateParamsHeat

BOOL

FALSE

PIDSelfTune.TIR .CalculateParamsCool

BOOL

FALSE

Description
Use the RunIn tag to specify the sequence of fine tuning during start from automatic mode.
· RunIn = FALSE
If fine tuning is started from automatic mode, the system uses the existing PID parameters to control to the setpoint (TIR.State = 500 or 600). Only then will fine tuning start.
· RunIn = TRUE
PID_Temp tries to reach the setpoint with minimum or maximum output value (TIR.State = 300 or 400). This can produce increased overshoot. Fine tuning then starts automatically.
RunIn is set to FALSE after fine tuning.
During start of fine tuning from Inactive or Manual mode, PID_Temp reacts as described under RunIn = TRUE.
The properties of the heating branch of the controlled system are saved during fine tuning for heating. If TIR.CalculateParamsHeat= TRUE, the PID parameters for heating (Retain.CtrlParams.Heat structure) are recalculated on the basis of these properties. This enables you to change the parameter calculation method (PIDSelfTune.TIR.TuneRuleHeat parameter) without having to repeat the tuning.
TIR.CalculateParamsHeat is set to FALSE after the calculation.
Only possible if fine tuning heating was successful beforehand (TIR.ProcParHeatOk = TRUE).
The properties of the cooling branch of the controlled system are saved during fine tuning for cooling. If TIR.CalculateParamsCool= TRUE, the PID parameters for cooling (Retain.CtrlParams.Cool structure) are recalculated on the basis of these properties. This enables you to change the parameter calculation method (PIDSelfTune.TIR.TuneRuleCool parameter) without having to repeat the tuning.
TIR.CalculateParamsCool is set to FALSE after the calculation.
Only possible if fine tuning cooling was successful beforehand (TIR.ProcParCoolOk = TRUE).
Only effective if Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE

434

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
PIDSelfTune.TIR .TuneRuleHeat

Data type Default

INT

0

Instructions 9.3 PID_Temp
Description Method for parameter calculation during fine tuning for heating Options are:
· TIR.TuneRuleHeat = 0: PID automatic · TIR.TuneRuleHeat = 1: PID fast (faster control re-
sponse with higher amplitudes of the output value than with TIR.TuneRuleHeat = 2) · TIR.TuneRuleHeat = 2: PID slow (slower control response with lower amplitudes of the output value than with TIR.TuneRuleHeat = 1) · TIR.TuneRuleHeat = 3: ZN PID · TIR.TuneRuleHeat = 4: ZN PI · TIR.TuneRuleHeat = 5: ZN P (ZN=Ziegler-Nichols) To be able to repeat the calculation of the PID parameters for heating with TIR.CalculateParamsHeat and TIR.TuneRuleHeat = 0, 1 or 2, the previous fine tuning also has to have been executed with TIR.TuneRuleHeat = 0, 1 or 2. If this is not the case, TIR.TuneRuleHeat = 3 is used. The recalculation of the PID parameters for heating with TIR.CalculateParamsHeat and TIR.TuneRuleHeat = 3, 4 or 5 is always possible.

PID control Function Manual, 10/2018, A5E35300227-AD

435

Instructions 9.3 PID_Temp
Tag PIDSelfTune.TIR .TuneRuleCool

Data type Default

INT

0

Description
Method for parameter calculation during fine tuning for cooling
Options are:
· TIR.TuneRuleCool = 0: PID automatic
· TIR.TuneRuleCool = 1: PID fast (faster control response with higher amplitudes of the output value than with TIR.TuneRuleCool = 2)
· TIR.TuneRuleCool = 2: PID slow (slower control response with lower amplitudes of the output value than with TIR.TuneRuleCool = 1)
· TIR.TuneRuleCool = 3: ZN PID
· TIR.TuneRuleCool = 4: ZN PI
· TIR.TuneRuleCool = 5: ZN P (ZN=Ziegler-Nichols)
To be able to repeat the calculation of the PID parameters for cooling with TIR.CalculateParamsCool and TIR.TuneRuleCool = 0, 1 or 2, the previous fine tuning also has to have been executed with TIR.TuneRuleCool = 0, 1 or 2. If this is not the case, TIR.TuneRuleCool = 3 is used.
The recalculation of the PID parameters for cooling with TIR.CalculateParamsCool and TIR.TuneRuleCool = 3, 4 or 5 is always possible.
Only effective if the cooling output and PID parameter switching are activated (ConfigActivateCooling = TRUE and Config.AdvancedCooling = TRUE).

436

PID control Function Manual, 10/2018, A5E35300227-AD

Tag PIDSelfTune.TIR.State

Data type Default

INT

0

PIDSelfTune.TIR .ProcParHeatOk
PIDSelfTune.TIR .ProcParCoolOk

BOOL

FALSE

BOOL

FALSE

Instructions 9.3 PID_Temp
Description The TIR.State tag indicates the current phase of "fine tuning": · State = 0: Initialize fine tuning · State = 100: Calculate standard deviation for heating · State = 200: Calculate standard deviation for cooling · State = 300: Attempting to reach setpoint for heating
with two-step control using heating · State = 400: Attempting to reach setpoint for cooling
with two-step control using cooling · State = 500: Attempting to reach setpoint for heating
with PID control · State = 600: Attempting to reach setpoint for cooling
with PID control · State = 700: Calculate standard deviation for heating · State = 800: Calculate standard deviation for cooling · State = 900: Determine oscillation and calculate
parameters for heating · State = 1000: Determine oscillation and calculate
parameters for cooling · State = 9900: Fine tuning successful · State = 1: Fine tuning not successful
TRUE: The calculation of the process parameters for fine tuning heating was successful. This tag is set during tuning. It must be met for calculation of the PID parameters for heating. TRUE: The calculation of the process parameters for fine tuning cooling was successful. This tag is set during tuning. It must be met for calculation of the PID parameters for cooling.

PID control Function Manual, 10/2018, A5E35300227-AD

437

Instructions 9.3 PID_Temp
Tag PIDSelfTune.TIR .OutputOffsetHeat

Data type Default

REAL

0.0

Description
Tuning offset heating of the PID output value
TIR.OutputOffsetHeat is added to the value that results from PidOutputSum for the heating branch.
To receive a positive offset at the outputs for heating, define a positive value for TIR.OutputOffsetHeat.
The resulting values at the outputs for heating are the result of the configured output scaling (Struktur Config.Output.Heat).
This tuning offset can be used in controllers with activated cooling output and PID parameter switching (Config.ActivateCooling = TRUE, Config.AdvancedCooling = TRUE) for fine tuning cooling. If the outputs for cooling are not active at the setpoint that is to be tuned (PidOutputSum > 0.0), fine tuning cooling is not possible. In this case, define a positive tuning offset heating which is greater than the PID output value (PidOutputSum) at the setpoint in the steady state before you start tuning. This step increases the values at the outputs for heating and activates the outputs for cooling (PidOutputSum < 0.0). Fine tuning cooling is now possible.
When fine tuning is complete, TIR.OutputOffsetHeat is reset to 0.0.
Major changes at TIR.OutputOffsetHeat in one step can result in temporary overshoots.
Config.Output.Heat.PidUpperLimit  PIDSelfTune.TIR.OutputOffsetHeat  Config.Output.Heat.PidLowerLimit

438

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
PIDSelfTune.TIR .OutputOffsetCool

Data type Default

REAL

0.0

PIDSelfTune.TIR .WaitForControlIn

BOOL

FALSE

PIDSelfTune.TIR .ControlInReady
PIDSelfTune.TIR .FinishControlIn
PIDCtrl.IOutputOld(1)

BOOL

FALSE

BOOL

FALSE

REAL

0.0

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp
Description Tuning offset cooling of the PID output value TIR.OutputOffsetCool is added to the value that results from PidOutputSum for the cooling branch. To receive a positive offset at the outputs for cooling, define a negative value for TIR.OutputOffsetCool. The resulting values at the outputs for cooling are the result of the configured output scaling (Struktur Config.Output.Coool). This tuning offset can be used in controllers with activated cooling output (Config.ActivateCooling = TRUE) for fine tuning heating. If the outputs for heating are not active at the setpoint that is to be tuned (PidOutputSum < 0.0), fine tuning heating is not possible. In this case, define a negative tuning offset cooling which is less than the PID output value (PidOutputSum) at the setpoint in the steady state before you start tuning. This step increases the values at the outputs for cooling and activates the outputs for heating (PidOutputSum > 0.0). Fine tuning heating is now possible. When fine tuning is complete, TIR.OutputOffsetCool is reset to 0.0. Major changes at TIR.OutputOffsetCool in one step can result in temporary overshoots. Config.Output.Cool.PidUpperLimit  PIDSelfTune.TIR.OutputOffsetCool  Config.Output.Cool.PidLowerLimit
Waiting with fine tuning after reaching the setpoint If TIR.WaitForControlIn = TRUE, fine tuning waits in between reaching the setpoint (TIR.State = 500 or 600) and calculation of the standard deviation (TIR.State = 700 or 800) until a FALSE -> TRUE edge is given at TIR.FinishControlIn. TIR.WaitForControlIn can be used for simultaneous fine tuning of several controllers in multi-zone applications to synchronize tuning of the individual zones. It ensures that all zones have reached their setpoints before the actual tuning starts. The influence of thermal connections between the zones on tuning can be reduced in this way. TIR.WaitForControlIn is only effective if fine tuning is started from automatic mode with PIDSelfTune.TIR.RunIn = FALSE.
If TIR.WaitForControlIn = TRUE, PID_Temp sets TIR.ControlInReady = TRUE as soon as the setpoint has been reached and waits with additional tuning steps until a FALSE -> TRUE edge is given at TIR.FinishControlIn.
If TIR.ControlInReady = TRUE, a FALSE -> TRUE edge at TIR.FinishControlIn stops the wait and fine tuning resumes.
Integral action in last cycle
439

Instructions 9.3 PID_Temp
Tag PIDCtrl.PIDInit

Data type Default

BOOL

FALSE

Retain.CtrlParams.SetByUser(1) BOOL

FALSE

Retain.CtrlParams.Heat.Gain(1) REAL

1.0

Retain..CtrlParams.Heat.Ti(1) REAL

20.0

Retain.CtrlParams.Heat.Td(1) REAL

0.0

Retain.CtrlParams.Heat .TdFiltRatio(1)

REAL

0.2

Description PIDCtrl.PIDInit is available as of PID_Temp version 1.1. If PIDCtrl.PIDInit = TRUE in "Automatic mode", the integral action PIDCtrl.IOutputOld is pre-assigned automatically as if PidOutputSum = OverwriteInitialOutputValue in the previous cycle. This can be used for a Override control with PID_Temp (Page 206).
If the PID parameters are entered manually in the configuration editor, SetByUser = TRUE. This parameter is used for display in the editors and does not influence the control algorithm. SetByUser is retentive.
Active proportional gain for heating Heat.Gain is retentive. Heat.Gain  0.0
Active integral action time for heating in seconds The integral action for heating is switched off with Heat.CtrlParams.Ti = 0.0. Heat.Ti is retentive. 100000.0  Heat.Ti  0.0
Active derivative action time for heating in seconds The derivative action for heating is switched off with Heat.CtrlParams.Td = 0.0. Heat.Td is retentive. 100000.0  Heat.Td  0.0
Active derivative delay coefficient for heating The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient
· 0.0: Derivative action is effective for one cycle only and therefore almost not effective.
· 0.5: This value has proved useful in practice for controlled systems with one dominant time constant.
· > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Heat.TdFiltRatio is retentive. Heat.TdFiltRatio  0.0

440

PID control Function Manual, 10/2018, A5E35300227-AD

Tag
Retain.CtrlParams.Heat .PWeighting(1)

Data type Default

REAL

1.0

Retain.CtrlParams.Heat .DWeighting(1)

REAL

1.0

Retain.CtrlParams.Heat.Cycle(1) REAL

1.0

Instructions 9.3 PID_Temp
Description Active weighting of the proportional action for heating The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Proportional action for setpoint change is fully effective
· 0.0: Proportional action for setpoint change is not effective
The proportional action is always fully effective when the process value is changed. Heat.PWeighting is retentive. 1.0  Heat.PWeighting  0.0 Active weighting of the derivative action for heating The derivative action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Derivative action is fully effective upon setpoint change
· 0.0: Derivative action is not effective upon setpoint change
The derivative action is always fully effective when the process value is changed. Heat.DWeighting is retentive. 1.0  Heat.DWeighting  0.0 Active sampling time of the PID algorithm for heating in seconds CtrlParams.Heat.Cycle is calculated during tuning and rounded to an integer multiple of CycleTime.Value. If Config.Output.Heat.PwmPeriode = 0.0, Heat.Cycle is used as period duration of the pulse width modulation for heating. If Config.Output.Cool.PwmPeriode = 0.0 and Config.AdvancedCooling = FALSE, Heat.Cycle is used as period duration of the pulse width modulation for cooling. Heat.Cycle is retentive. 100000.0  Heat.Cycle > 0.0

PID control Function Manual, 10/2018, A5E35300227-AD

441

Instructions 9.3 PID_Temp

Tag
Retain.CtrlParams.Heat .ControlZone(1)

Data type Default

REAL

3.402822e+38

Retain.CtrlParams.Heat .DeadZone(1)

REAL

0.0

Retain.CtrlParams.Cool.Gain(1) REAL

1.0

Description
Active control zone width for heating
The control zone for heating is switched off with Heat.ControlZone = 3.402822e+38.
Heat.ControlZone is only set automatically during pretuning heating or pretuning heating and cooling if PIDSelfTune.SUT.TuneRuleHeat = 2 is selected as method of the parameter calculation.
For controllers with deactivated cooling output (Config.ActivateCooling = FALSE) or controllers with activated cooling output and cooling factor (Config.AdvancedCooling = FALSE), the control zone is symmetrically located between Setpoint ­ Heat.ControlZone and Setpoint + Heat.ControlZone.
For controllers with activated cooling output and PID parameter switching (Config.ActivateCooling = TRUE, Config.AdvancedCooling = TRUE), the control zone is located between Setpoint ­ Heat.ControlZone and Setpoint + Cool.ControlZone.
Heat.ControlZone is retentive.
Heat.ControlZone > 0.0
Active dead zone width for heating (see PID parameters (Page 177))
The dead zone for heating is switched off with Heat.DeadZone = 0.0.
Heat.DeadZone is not set automatically or adjusted during tuning. You must correctly configure Heat.DeadZone manually.
When the dead zone is switched on, the result can be a permanent control deviation (deviation between setpoint and process value). This can have a negative effect on fine tuning.
For controllers with deactivated cooling output (Config.ActivateCooling = FALSE) or controllers with activated cooling output and cooling factor (Config.AdvancedCooling = FALSE), the dead zone is symmetrically located between Setpoint ­ Heat.DeadZone and Setpoint + Heat.DeadZone.
For controllers with activated cooling output and PID parameter switching (Config.ActivateCooling = TRUE, Config.AdvancedCooling = TRUE), the dead zone is located between Setpoint ­ Heat.DeadZone and Setpoint + Cool.DeadZone.
Heat.DeadZone is retentive.
Heat.DeadZone  0.0
Active proportional gain for cooling
Cool.Gain is retentive.
Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE).
Cool.Gain  0.0

442

PID control Function Manual, 10/2018, A5E35300227-AD

Tag Retain.CtrlParams.Cool.Ti(1)

Data type Default

REAL

20.0

Retain.CtrlParams.Cool.Td(1) REAL

0.0

Retain.CtrlParams.Cool .TdFiltRatio(1)

REAL

0.2

Retain.CtrlParams.Cool .PWeighting(1)

REAL

1.0

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp
Description Active integral action time for cooling in seconds The integral action for cooling is switched off with Cool.CtrlParams.Ti = 0.0. Cool.Ti is retentive. Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE). 100000.0  Cool.Ti  0.0 Active derivative action time for cooling in seconds The derivative action for cooling is switched off with Cool.CtrlParams.Td = 0.0. Cool.Td is retentive. Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE). 100000.0  Cool.Td  0.0 Active derivative delay coefficient for cooling The derivative delay coefficient delays the effect of the derivative action. Derivative delay = derivative action time × derivative delay coefficient
· 0.0: Derivative action is effective for one cycle only and therefore almost not effective.
· 0.5: This value has proved useful in practice for controlled systems with one dominant time constant.
· > 1.0: The greater the coefficient, the longer the effect of the derivative action is delayed.
Cool.TdFiltRatio is retentive. Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE). Cool.TdFiltRatio  0.0 Active weighting of the proportional action for cooling The proportional action may weaken with changes to the setpoint. Values from 0.0 to 1.0 are applicable.
· 1.0: Proportional action for setpoint change is fully effective
· 0.0: Proportional action for setpoint change is not effective
The proportional action is always fully effective when the process value is changed. Cool.PWeighting is retentive. Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE). 1.0  Cool.PWeighting  0.0
443

Instructions 9.3 PID_Temp
Tag Retain.CtrlParams.Cool .DWeighting(1)

Data type Default

REAL

1.0

Retain.CtrlParams.Cool.Cycle(1) REAL

1.0

Description
Active weighting of the derivative action for cooling
The derivative action may weaken with changes to the setpoint.
Values from 0.0 to 1.0 are applicable.
· 1.0: Derivative action is fully effective upon setpoint change
· 0.0: Derivative action is not effective upon setpoint change
The derivative action is always fully effective when the process value is changed.
Cool.DWeighting is retentive.
Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE).
1.0  Cool.DWeighting  0.0
Active sampling time of the PID algorithm for cooling in seconds
CtrlParams.Cool.Cycle is calculated during tuning and rounded off to an integer multiple of CycleTime..
If Config.Output.Cool.PwmPeriode = 0.0 and Config.AdvancedCooling = TRUE, Cool.Cycle is used as period duration of the pulse width modulation for cooling.
If Config.Output.Cool.PwmPeriode = 0.0 and Config.AdvancedCooling = FALSE, Heat.Cycle is used as period duration of the pulse width modulation for cooling.
Cool.Cycle is retentive.
Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE).
100000.0  Cool.Cycle > 0.0

444

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Tag Retain.CtrlParams.Cool .ControlZone(1)
Retain.CtrlParams.Cool .DeadZone(1)

Data type Default

REAL

3.402822e+38

REAL

0.0

Description
Active control zone width for cooling
The control zone for cooling is switched off with Cool.ControlZone = 3.402822e+38.
Cool.ControlZone is only set automatically during pretuning cooling or pretuning heating and cooling if PIDSelfTune.SUT.TuneRuleCool = 2 is selected as method of the parameter calculation.
Cool.ControlZone is retentive.
Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE).
Cool.ControlZone > 0.0
Active dead zone width for cooling (see PID parameters (Page 177))
The dead zone for cooling is switched off with Cool.DeadZone = 0.0.
Cool.DeadZone is not set automatically or adjusted during tuning. You must correctly configure Cool.DeadZone manually.
When the dead zone is switched on, the result can be a permanent control deviation (deviation between setpoint and process value). This can have a negative effect on fine tuning.
Cool.DeadZone is retentive.
Only effective if the cooling output and PID parameter switching are activated (Config.ActivateCooling = TRUE and Config.AdvancedCooling = TRUE).
Cool.DeadZone  0.0

See also

PID_Temp ActivateRecoverMode tag (Page 458) PID_Temp Warning tag (Page 460) Multi-zone controlling with PID_Temp (Page 203)

PID control Function Manual, 10/2018, A5E35300227-AD

445

Instructions 9.3 PID_Temp

9.3.4.7

PID_Temp state and mode parameters

Correlation of the parameters
The State parameter shows the current operating mode of the PID controller. You cannot change the State parameter.
With a rising edge at ModeActivate, PID_Temp switches to the operating mode saved in the Mode in-out parameter.
Heat.EnableTuning and Cool.EnableTuning specify for pretuning and fine tuning, if tuning takes place for heating or cooling.
If the CPU is switched on or switches from Stop to RUN mode, PID_Temp starts in the operating mode that is saved in the Mode parameter. To leave PID_Temp in "Inactive" mode, set RunModeByStartup = FALSE.

446

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

Meaning of values

State / Mode Description of operating mode

0

Inactive

The following output values are output in "Inactive" mode:

· 0.0 as PID output value (PidOutputSum)

· 0.0 as output value for heating (OutputHeat) and output value for cooling (OutputCool)

· 0 as analog output value for heating (OutputHeat_PER) and analog output value for cooling (OutputCool_PER)

· FALSE as PWM output value for heating (OutputHeat_PWM) and PWM output value for cooling (OutputCool_PWM)
This does not depend on the configured output value limits and scaling in the structures Config.Output.Heat and Config.Output.Cool.

1

Pretuning

The pretuning determines the process response to a jump change of the output value and searches for the point of inflection. The PID parameters are calculated from the maximum rate of rise and dead time of the controlled system. You obtain the best PID parameters when you perform pretuning and fine tuning.

PID_Temp offers different pretuning types depending on the configuration:

· Pretuning heating:

A jump change is output at the output value heating, the PID parameters for heating are calculated (Retain.CtrlParams.Heat structure), and control to the setpoint then takes place in automatic mode.

If the process behavior strongly depends on the operating point, an adaptation of the delay time can be activated at the setpoint with PIDSelfTune.SUT.AdaptDelayTime.
· Pretuning heating and cooling:

A jump is output at the output value heating. As soon as the process value is close to the setpoint, a jump change is output at the output value cooling. The PID parameters for heating (Retain.CtrlParams.Heat structure) and cooling (Retain.CtrlParams.Cool structure) are calculated. Then, control to the setpoint takes place in automatic mode.

If the process behavior strongly depends on the operating point, an adaptation of the delay time can be activated at the setpoint with PIDSelfTune.SUT.AdaptDelayTime.

Depending on the effect of the cooling actuator compared to the heating actuator, the quality of tuning can be influenced by whether or not the heating and cooling outputs are operated simultaneously during tuning. You can specify this with PIDSelfTune.SUT.CoolingMode.
· Pretuning cooling:

A jump change is output at the output value cooling and the PID parameters for cooling are calculated (Struktur Retain.CtrlParams.Cool). Then, control to the setpoint takes place in automatic mode.
If you want to tune the PID parameters for heating and cooling, you can expect a better control response with "Pretuning heating" followed by "Pretuning cooling" rather than with "Pretuning heating and cooling". However, carrying out pretuning in two steps takes more time.

PID control Function Manual, 10/2018, A5E35300227-AD

447

Instructions 9.3 PID_Temp

State / Mode Description of operating mode

1

General requirements for pretuning:

· The PID_Temp instruction is called in a cyclic interrupt OB.

· Inactive (State = 0), manual mode (State = 4), or automatic mode (State = 3)

· ManualEnable = FALSE

· Reset = FALSE

· The setpoint and the process value lie within the configured limits.

Requirements for pretuning heating: · Heat.EnableTuning = TRUE · Cool.EnableTuning = FALSE · The process value must not be too close to the setpoint.
|Setpoint - Input| > 0.3 * |Config.InputUpperLimit - Config.InputLowerLimit| and |Setpoint - Input| > 0.5 * |Setpoint| · The setpoint is greater than the process value. Setpoint > Input

Requirements for pretuning heating and cooling: · Heat.EnableTuning = TRUE· · Cool.EnableTuning = TRUE · The cooling output is activated (Config.ActivateCooling = TRUE). · The PID parameter switching is activated (Config.AdvancedCooling = TRUE). · The process value must not be too close to the setpoint.
|Setpoint - Input| > 0.3 * |Config.InputUpperLimit - Config.InputLowerLimit| and
|Setpoint - Input| > 0.5 * |Setpoint| · The setpoint is greater than the process value.
Setpoint > Input

Requirements for pretuning cooling: · Heat.EnableTuning = FALSE· · Cool.EnableTuning = TRUE· · The cooling output is activated (Config.ActivateCooling = TRUE). · The PID parameter switching is activated (Config.AdvancedCooling = TRUE). · A "pretuning heating" or "pretuning heating and cooling" has been successful (PIDSelf-
Tune.SUT.ProcParHeatOk = TRUE), if possible at the same setpoint. · The process value must be close to the setpoint.
|Setpoint - Input| < 0.05 * |Config.InputUpperLimit - Config.InputLowerLimit|
The more stable the process value is, the easier it is to calculate the PID parameters and the more precise the result will be. Noise on the process value can be tolerated as long as the rate of rise of the process value is significantly higher compared to the noise. This is most likely the case in operating modes "Inactive" or "Manual mode".

448

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

State / Mode Description of operating mode

1

The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when:

· Setpoint > CurrentSetpoint + CancelTuningLevel

or · Setpoint < CurrentSetpoint - CancelTuningLevel

The method for calculation of the PID parameters can be specified separately for heating and cooling with PIDSelfTune.SUT.TuneRuleHeat and PIDSelfTune.SUT.TuneRuleCool.
Before the PID parameters are recalculated, they are backed up in the CtrlParamsBackUp structure and can be reactivated with LoadBackUp.

After successful pretuning, the switch is made to automatic mode.

After unsuccessful pretuning, the switch to the mode is determined by ActivateRecoverMode.

The phase of pretuning is indicated with PIDSelfTune.SUT.State.

2

Fine tuning

Fine tuning generates a constant, limited oscillation of the process value. The PID parameters are tuned for the operating point from the amplitude and frequency of this oscillation. PID parameters from fine tuning usually have better master control and disturbance characteristics than PID parameters from pretuning. You obtain the best PID parameters when you perform pretuning and fine tuning.

PID_Temp automatically attempts to generate an oscillation greater than the noise of the process value. Fine tuning is only minimally influenced by the stability of the process value.

PID_Temp offers different fine tuning types depending on the configuration:

· Fine tuning heating:

PID_Temp generates an oscillation of the process value with periodic changes at the output value heating and calculates the PID parameters for heating (Struktur Retain.CtrlParams.Heat).
· Fine tuning cooling:

PID_Temp generates an oscillation of the process value with periodic changes at the output value cooling and calculates the PID parameters for cooling (Struktur Retain.CtrlParams.Cool).

PID control Function Manual, 10/2018, A5E35300227-AD

449

Instructions 9.3 PID_Temp

State / Mode 2

Description of operating mode
Temporary tuning offset for heating/cooling controllers
If PID_Temp is used as heating/cooling controller (Config.ActivateCooling = TRUE), the PID output value (PidOutputSum) at the setpoint must meet the following requirements for a process value oscillation to be generated and fine tuning to be successful:

· Positive PID output value for fine tuning heating

· Negative PID output value for fine tuning cooling
If this requirement is not met, you can define a temporary offset for fine tuning which is output at the output with the opposite effect:

· Offset for cooling output (PIDSelfTune.TIR.OutputOffsetCool) with fine tuning heating.

Define a negative tuning offset cooling which is less than the PID output value (PidOutputSum) at the setpoint in the steady state before you start tuning.
· Offset for heating output (PIDSelfTune.TIR.OutputOffsetHeat) with fine tuning cooling.

Define a positive tuning offset heating which is greater than the PID output value (PidOutputSum) at the setpoint in the steady state before you start tuning.
The defined offset is balanced by the PID algorithm so that the process value remains at the setpoint. The height of the offset allows the PID output value to be adapted correspondingly so that it fulfills the requirement mentioned above.
To avoid larger overshoots of the process value when defining the offset, it can also be increased in several steps.
If PID_Temp exits the fine tuning mode, the tuning offset is reset.

Example for definition of an offset for fine tuning cooling: · Without offset:
­ Setpoint = Process value (ScaledInput) = 80°C ­ PID output value (PidOutputSum) = 30.0 ­ Output value heating (OutputHeat) = 30.0 ­ Output value cooling (OutputCool) = 0.0
Oscillation of the process value around the setpoint cannot be generated with the cooling output alone.
Fine tuning would fail here. · With definition of an offset for heating output (PIDSelfTune.TIR.OutputOffsetHeat) = 80.0
­ Setpoint = process value (ScaledInput) = 80°C ­ PID output value (PidOutputSum) = -50.0 ­ Output value heating (OutputHeat) = 80.0 ­ Output value cooling (OutputCool) = -50.0
By defining an offset for the heating output, the cooling output can now create an oscillation of the process value around the setpoint.
Fine tuning can now be carried out successfully.

450

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

State / Mode Description of operating mode

2

General requirements for fine tuning:

· The PID_Temp instruction is called in a cyclic interrupt OB.

· No disturbances are expected.

· The setpoint and the process value lie within the configured limits.

· The control loop has stabilized at the operating point. The operating point is reached when the process value corresponds to the setpoint.

When the dead zone is switched on, the result can be a permanent control deviation (deviation between setpoint and actual value). This can have a negative effect on fine tuning. · ManualEnable = FALSE · Reset = FALSE · Automatic (State = 3), inactive (State = 0) or manual (State = 4) mode

Requirements for fine tuning heating:
· Heat.EnableTuning = TRUE · Cool.EnableTuning = FALSE · If PID_Temp is configured as heating/cooling controller (Config.ActivateCooling = TRUE), the heating
output must be active at the operating point at which tuning is to take place (PidOutputSum > 0.0 (see tuning offset)).

Requirements for fine tuning cooling: · Heat.EnableTuning = FALSE · Cool.EnableTuning = TRUE · The cooling output is activated (Config.ActivateCooling = TRUE). · The PID parameter switching is activated (Config.AdvancedCooling = TRUE) · The cooling output must be active at the operating point at which tuning is to take place (PidOutputSum
< 0.0 (see tuning offset)).

PID control Function Manual, 10/2018, A5E35300227-AD

451

Instructions 9.3 PID_Temp

State / Mode Description of operating mode

2

The course of fine tuning is determined by the mode from which it is started:

· Automatic mode (State = 3) with PIDSelfTune.TIR.RunIn = FALSE (default)

Start fine tuning from automatic mode if you wish to improve the existing PID parameters through tuning.

PID_Temp controls the system using the existing PID parameters until the control loop has stabilized and the requirements for fine tuning have been met. Only then will fine tuning start.
· Inactive (State = 0), manual mode (State = 4), or automatic mode (State = 3) with PIDSelfTune.TIR.RunIn = TRUE

Attempts are made to reach the setpoint with the minimum or maximum output value: ­ with minimum or maximum output value heating for fine tuning heating ­ With minimum or maximum output value cooling for fine tuning cooling.

This can produce increased overshoot. Fine tuning starts when the setpoint is reached.

If the setpoint cannot be reached, PID_Temp does not automatically abort tuning.

The setpoint is frozen in the CurrentSetpoint tag. Tuning is canceled when: · Setpoint > CurrentSetpoint + CancelTuningLevel

or

· Setpoint < CurrentSetpoint - CancelTuningLevel
The method for calculation of the PID parameters can be specified separately for heating and cooling with PIDSelfTune.TIR.TuneRuleHeat and PIDSelfTune.TIR.TuneRuleCool.
Before the PID parameters are recalculated, they are backed up in the CtrlParamsBackUp structure and can be reactivated with LoadBackUp.

The controller changes to automatic mode after successful fine tuning. After unsuccessful fine tuning, the switch to the mode is determined by ActivateRecoverMode. The "Fine tuning" phase is indicated with PIDSelfTune.TIR.State.

3

Automatic mode

In automatic mode, PID_Temp corrects the controlled system in accordance with the parameters specified.

The controller switches to automatic mode if one the following requirements is met:

· Pretuning successfully completed

· Fine tuning successfully completed

· Changing of the Mode in-out parameter to the value 3 and a rising edge at ModeActivate.
The switchover from automatic mode to manual mode is only bumpless if carried out in the commissioning editor.

The ActivateRecoverMode tag is taken into consideration in automatic mode.

452

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

State / Mode 4

Description of operating mode
Manual mode
In manual mode, you specify a manual PID output value in the ManualValue parameter. The values at the outputs for heating and cooling resulting from this manual value are the result of the configured output scaling.

You can also activate this operating mode using ManualEnable = TRUE. We recommend that you change the operating mode using Mode and ModeActivate only.
The switchover from manual mode to automatic mode is bumpless.
The ActivateRecoverMode tag is taken into consideration in manual mode.

5

Substitute output value with error monitoring

The control algorithm is deactivated. The SetSubstituteOutput tag determines which PID output value (PidOutputSum) is output in this operating mode.

· SetSubstituteOutput = FALSE: Last valid PID output value

· SetSubstituteOutput = TRUE: Substitute output value (SubstituteOutput) You cannot activate this operating mode using Mode = 5.

In the event of an error, it is activated instead of "Inactive" operating mode if all the following conditions are met:

· Automatic mode (State = 3)

· ActivateRecoverMode = TRUE

· One or more errors have occurred in which ActivateRecoverMode is effective. As soon as the errors are no longer pending, PID_Temp switches back to automatic mode.

ENO characteristics If State = 0, then ENO = FALSE. If State  0, then ENO = TRUE.

PID control Function Manual, 10/2018, A5E35300227-AD

453

Instructions 9.3 PID_Temp

Automatic switchover of operating mode during commissioning
Automatic mode is activated following successful pretuning or fine tuning. The following table shows how Mode and State change during successful pretuning.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 3

State 4 4 1
1 3

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning successfully completed Automatic mode is started

PID_Temp automatically switches the operating mode in the event of an error.

The following table shows how Mode and State change during pretuning with errors.

Cycle no. 0 1 1
n n

Mode 4 1 4
4 4

State 4 4 1
1 4

Action Set Mode = 1 Set ModeActivate = TRUE Value of State is saved in Mode parameter Pretuning is started Pretuning canceled Manual mode is started

If ActivateRecoverMode = TRUE, the operating mode that is saved in the Mode parameter is activated. When you start pretuning or fine tuning, PID_Temp has saved the value of State in the Mode in-out parameter. This means PID_Temp switches to the mode from which tuning was started.

If ActivateRecoverMode = FALSE, the system switches to "Inactive" operating mode.

See also

Output parameters of PID_Temp (Page 407) In/out parameters of PID_Temp V2 (Page 409)

454

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.8

PID_Temp ErrorBits parameter
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 0000003h, for example, indicates that the errors 0000001h and 0000002h are pending simultaneously.

ErrorBits (DW#16#...) 0000000 0000001
0000002
0000004
0000008 0000010 0000020 0000040

Description
There is no error.
The "Input" parameter is outside the process value limits.
· Input > Config.InputUpperLimit or
· Input < Config.InputLowerLimit If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in automatic mode. If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode. If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
Invalid value at "Input_PER" parameter. Check whether an error is pending at the analog input. If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp outputs the configured substitute output value. As soon as the error is no longer pending, PID_Temp switches back to automatic mode. If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode. If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
Error during fine tuning. Oscillation of the process value could not be maintained. If PID_Temp is used as heating-cooling controller (Config.ActivateCooling = TRUE), to be able to generate actual value oscillation, the PID output value (PidOutputSum) at the setpoint must be
· positive for fine tuning heating
· negative for fine tuning cooling If this requirement is not met, use the tuning offsets ( PIDSelfTune.TIR.OutputOffsetCool and PIDSelfTune.TIR.OutputOffsetHeat tags), see Fine tuning (Page 189). If ActivateRecoverMode was = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Error at start of pretuning. The process value is too close to the setpoint or greater than the setpoint. Start fine tuning. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
The setpoint was changed during tuning. You can set the permitted fluctuation of the setpoint at the CancelTuningLevel tag. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Pretuning is not permitted during fine tuning. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp remains in fine tuning mode.
Error during pretuning. Cooling could not reduce the process value. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

455

Instructions 9.3 PID_Temp

ErrorBits (DW#16#...) 0000100 0000200
0000400 0000800
0001000
0010000 0020000

Description
Error during fine tuning resulted in invalid parameters.
If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Invalid value at "Input" parameter: Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp outputs the configured substitute output value. As soon as the error is no longer pending, PID_Temp switches back to automatic mode.
If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
Calculation of output value failed. Check the PID parameters.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp outputs the configured substitute output value. As soon as the error is no longer pending, PID_Temp switches back to automatic mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
Sampling time error: PID_Temp is not called within the sampling time of the cyclic interrupt OB.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in automatic mode.
If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
If this error occurred during simulation with PLCSIM, see the notes under Simulating PID_Temp with PLCSIM (Page 211).
Invalid value at "Setpoint" parameter or "SubstituteSetpoint": Value has an invalid number format.
If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp outputs the configured substitute output value. As soon as the error is no longer pending, PID_Temp switches back to automatic mode.
If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode.
If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.
Invalid value at ManualValue parameter. Value has an invalid number format.
If ActivateRecoverMode = TRUE before the error occurred, PID_Temp remains in manual mode and uses SubstituteOutput as PID output value. As soon as you specify a valid value in ManualValue, PID_Temp uses it as the PID output value.
Invalid value at SubstituteOutput tag. Value has an invalid number format.
PID_Temp remains in the "Substitute output value with error monitoring" mode or manual mode and uses the low limit of the PID output value for heating (Config.Output.Heat.PidLowerLimit) as PID output value.
As soon as you specify a valid value in SubstituteOutput, PID_Temp uses it as the PID output value.

456

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

ErrorBits (DW#16#...) 0040000
0200000
0400000 0800000 1000000
2000000 4000000 8000000

Description
Invalid value at Disturbance parameter. Value has an invalid number format. If automatic mode was active and ActivateRecoverMode = TRUE before the error occurred, Disturbance is set to zero. PID_Temp remains in automatic mode. If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter. If Disturbance in the current phase has no effect on the output value, tuning is not be canceled.
Error in master in the cascade: Slaves are not in automatic mode or have activated substitute setpoint and prevent tuning of the master. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Pretuning heating is not permitted while cooling is active. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
The process value must be close to the setpoint to start pretuning cooling. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Error at start of tuning: Heat.EnableTuning and Cool.EnableTuning are not set or do not match the configuration. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Pretuning cooling requires successful pretuning heating. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Error at start of fine tuning: Heat.EnableTuning and Cool.EnableTuning must not be set simultaneously. If ActivateRecoverMode = TRUE before the error occurred, PID_Temp cancels the tuning and switches to the operating mode that is saved in the Mode parameter.
Error during calculation of the PID parameters resulted in invalid parameters. The invalid parameters are discarded and the original PID parameters are retained unchanged. We can distinguish between the following cases:
· If automatic mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in automatic mode.
· If manual mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp remains in manual mode.
· If pretuning or fine tuning mode was active before the error occurred and ActivateRecoverMode = TRUE, PID_Temp switches to the operating mode that is saved in the Mode parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

457

Instructions 9.3 PID_Temp

9.3.4.9

PID_Temp ActivateRecoverMode tag
The ActivateRecoverMode tag determines the reaction to error. The Error parameter indicates if an error is pending. When the error is no longer pending, Error = FALSE. The ErrorBits parameter shows which errors have occurred.

Automatic mode and manual mode
NOTICE Your system may be damaged. If ActivateRecoverMode = TRUE, PID_Temp remains in automatic mode or in manual mode even if there is an error and the process limit values are exceeded. This may damage your system. It is essential to configure how your controlled system reacts in the event of an error to protect your system from damage.

ActivateRecoverMode FALSE
TRUE

Description
PID_Temp switches to "Inactive" mode in the event of an error. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. Automatic mode If errors occur frequently in automatic mode, this setting has a negative effect on the control response, because PID_Temp switches between the calculated PID output value and the substitute output value at each error. In this case, check the ErrorBits parameter and eliminate the cause of the error. If one or several of the following errors occur and automatic mode was active before the error occurred, PID_Temp remains in automatic mode: · 0000001h: The "Input" parameter is outside the process value limits. · 0000800h: Sampling time error · 0040000h: Invalid value at Disturbance parameter. · 8000000h: Error during calculation of the PID parameters

If one or several of the following errors occur and automatic mode was active before the error occurred, PID_Temp switches to "Substitute output value with error monitoring" mode:
· 0000002h: Invalid value at Input_PER parameter. · 0000200h: Invalid value at Input parameter. · 0000400h: Calculation of output value failed. · 0001000h: Invalid value at Setpoint parameter or SubstituteSetpoint.

As soon as the errors are no longer pending, PID_Temp switches back to automatic mode. If the following error occurs in "Substitute output value with error monitoring" mode, PID_Temp sets the PID output value to Config.Output.Heat.PidLowerLimit as long as this error is pending:
· 0020000h: Invalid value at SubstituteOutput tag. Value has an invalid number format.

This behavior is independent of SetSubstituteOutput.

458

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

ActivateRecoverMode
TRUE

Description
Manual mode If one or several errors occur and manual mode was active before the error occurred, PID_Temp remains in manual mode. If the following error occurs in manual mode, as long as this error is pending, PID_Temp sets the PID output value to SubstituteOutput: · 0010000h: Invalid value at ManualValue parameter. Value has an invalid number format. If the error 0010000h is pending in manual mode and the following error occurs, PID_Temp sets the PID output value to Config.Output.Heat.PidLowerLimit as long as this error is pending: · 0020000h: Invalid value at SubstituteOutput tag. Value has an invalid number format. This behavior is independent of SetSubstituteOutput.

Pretuning and fine tuning

ActivateRecoverMode FALSE
TRUE

Description
PID_Temp switches to "Inactive" mode in the event of an error. The controller is only activated by a falling edge at Reset or a rising edge at ModeActivate. If the following error occurs, PID_Temp remains in the active mode: · 0000020h: Pretuning is not permitted during fine tuning. The following errors are ignored: · 0010000h: Invalid value at ManualValue parameter. · 0020000h: Invalid value at SubstituteOutput tag. When any other error occurs, PID_Temp cancels the tuning and switches to the mode from which tuning was started.

PID control Function Manual, 10/2018, A5E35300227-AD

459

Instructions 9.3 PID_Temp

9.3.4.10

PID_Temp Warning tag
If several warnings are pending simultaneously, the values of the Warning tag are displayed with binary addition. If the warning 0000003h is displayed, for example, the warnings 0000001h and 0000002h are pending simultaneously.

Warning (DW#16#....) 0000000 0000001 0000004 0000008
0000010 0000020
0000040 0000080 0000100 0000200 0001000 0004000
0008000 0010000 0020000
0040000

Description
No warning pending. The point of inflection was not found during pretuning. The setpoint was limited to the configured limits. Not all the necessary controlled system properties were defined for the selected method of calculation. Instead, the PID parameters were calculated using the method TIR.TuneRuleHeat = 3 or TIR.TuneRuleCool = 3. The operating mode could not be changed because Reset = TRUE or ManualEnable = TRUE. The cycle time of the calling OB limits the sampling time of the PID algorithm. Improve results by using shorter OB cycle times. The process value exceeded one of its warning limits. Invalid value at Mode. The operating mode is not switched. The manual value was limited to the limits of the PID output value. The specified rule for tuning is not supported. No PID parameters are calculated. The substitute output value cannot be reached because it is outside the output value limits. The specified selection of the output value for heating and/or cooling is not supported. Only the output OutputHeat or OutputCool is used. Invalid value at PIDSelfTune.SUT.AdaptDelayTime. The default value 0 is used. Invalid value at PIDSelfTune.SUT.CoolingMode. The default value 0 is used. The activation of cooling (Config.ActivateCooling tag) is not supported by the controller that is used as master (Config.Cascade.IsMaster tag). PID_Temp works as heating controller. Set the Config.ActivateCooling tag to FALSE. Invalid value at Retain.CtrlParams.Heat.Gain, Retain.CtrlParams.Cool.Gain oder Config.CoolFactor. PID_Temp supports only positive values for proportional gain (heating and cooling) and cooling factor. Automatic mode remains active with PID output value 0.0. The integral component is stopped.
The following warnings are deleted as soon as the cause has been remedied or you repeat the action with valid parameters:
 0000001h
 0000004h
 0000008h
 0000040h
 0000100h
All other warnings are cleared with a rising edge at Reset or ErrorAck.

460

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

9.3.4.11

PwmPeriode tag
If the PID algorithm sampling time (Retain.CtrlParams.Heat.Cycle or Retain.CtrlParams.Heat.Cycle) and thus the time period of the pulse width modulation is very high when you use OutputHeat_PWM or OutputCool_PWM, you can define a deviating shorter time period at the Config.Output.Heat.PwmPeriode or Config.Output.Cool.PwmPeriode parameters to improve the smoothness of the process value.

Time period of the pulse width modulation at OutputHeat_PWM Time period of the PWM at output OutputHeat_PWM depending on Config.Output.Heat.PwmPeriode:
 Heat.PwmPeriode = 0.0 (default)
The sampling time of the PID algorithm for heating (Retain.CtrlParams.Heat.Cycle) is used as time period of the PWM.
 Heat.PwmPeriode > 0.0
The value is rounded off to an integer multiple of the PID_Temp sampling time (CycleTime.Value) and used as time period of the PWM.
The value must meet the following conditions:
­ Heat.PwmPeriode  Retain.CtrlParams.Heat.Cycle
­ Heat.PwmPeriode > Config.Output.Heat.MinimumOnTime
­ Heat.PwmPeriode > Config.Output.Heat.MinimumOffTime

Time period of the pulse width modulation at OutputCool_PWM
Time period of the PWM at output OutputCool_PWM depending on Config.Output.Cool.PwmPeriode and the method for heating/cooling:
 Cool.PwmPeriode = 0.0 and cooling factor (Config.AdvancedCooling = FALSE):
The sampling time of the PID algorithm for heating (Retain.CtrlParams.Heat.Cycle) is used as time period of the PWM.
 Cool.PwmPeriode = 0.0 and PID parameter switching (Config.AdvancedCooling = TRUE):
The sampling time of the PID algorithm for cooling (Retain.CtrlParams.Cool.Cycle) is used as time period of the PWM.

PID control Function Manual, 10/2018, A5E35300227-AD

461

Instructions 9.3 PID_Temp
 Cool.PwmPeriode > 0.0: The value is rounded off to an integer multiple of the PID_Temp sampling time (CycleTime.Value) and used as time period of the PWM. The value must meet the following conditions: ­ Cool.PwmPeriode  Retain.CtrlParams.Cool.Cycle or Retain.CtrlParams.Heat.Cycle ­ Cool.PwmPeriode > Config.Output.Cool.MinimumOnTime ­ Cool.PwmPeriode > Config.Output.Cool.MinimumOffTime
Config.Output.Cool.PwmPeriode is only effective if the cooling output is activated (Config.ActivateCooling =TRUE). When you use PwmPeriode, the accuracy of the PWM output signal is determined by the relationship of PwmPeriode to the PID_Temp sampling time (cycle time of the OB). PwmPeriode should be at least 10 times the PID_Temp sampling time. If the sampling time of the PID algorithm is not an integer multiple of PwmPeriode, each last period of the PWM within the sampling time of the PID algorithm is extended accordingly.

462

PID control Function Manual, 10/2018, A5E35300227-AD

Example for OutputHeat_PWM

Instructions 9.3 PID_Temp



PID_Temp sampling time = 100.0 ms (cycle time of the calling cyclic interrupt OB, CycleTime.Value tag)



PID algorithm sampling time = 2000.0 ms (Retain.CtrlParams.Heat.Cycle tag)



Time period of the PWM for heating = 600.0 ms (Config.Output.Heat.PwmPeriode tag)

PID control Function Manual, 10/2018, A5E35300227-AD

463

Instructions 9.3 PID_Temp

9.3.4.12

IntegralResetMode tag
The IntegralResetMode tag determines how the integral action PIDCtrl.IOutputOld is preassigned:
 When switching from "Inactive" operating mode to "Automatic mode"
 With edge TRUE -> FALSE at parameter Reset and parameter Mode = 3
This setting only works for one cycle and is only effective if the integral action is activated (Retain.CtrlParams.Heat.Ti and Retain.CtrlParams.Cool.Ti > 0.0 tags).

IntegralResetMode 0
1

Description
Smooth The value of PIDCtrl.IOutputOld is pre-assigned so that the switchover is bumpless, which means "Automatic mode" starts with the output value = 0.0 (parameter PidOutputSum) and there is no jump of the output value regardless of the control deviation (setpoint ­ process value).
Delete We recommend setting the weighting of the proportional action (Retain.CtrlParams.Heat.PWeighting and Retain.CtrlParams.Cool.PWeighting tags) to 1.0 if this option is used. The value of PIDCtrl.IOutputOld is deleted. Any control deviation will cause a jump of the PID output value. The direction of the output value jump depends on the active weighting of the proportional action (Retain.CtrlParams.Heat.PWeighting and Retain.CtrlParams.Cool.PWeighting tags) and the control deviation:
· Active proportional action weighting = 1.0:
Output value jump and control deviation have identical signs. Example: If the process value value is smaller than the setpoint (positive control deviation), the PID output value jumps to a positive value.
· Active proportional action weighting < 1.0:
For large control deviations, the PID output value jump and control deviation have identical signs. Example: If the process value is much smaller than the setpoint (positive control deviation), the PID output value jumps to a positive value.
For small control deviations, the PID output value jump and control deviation have different signs. Example: If the process value is just below the setpoint (positive control deviation), the PID output value jumps to a negative value. This is usually not desirable, because it results in a temporary increase in the control deviation.
The smaller the configured weighting of the proportional action, the greater the control deviation must be to receive a PID output value jump with identical sign. We recommend setting the weighting of the proportional action (Retain.CtrlParams.Heat.PWeighting and Retain.CtrlParams.Cool.PWeighting tags) to 1.0 when this option is used. Otherwise, you may experience the undesirable behavior described for small control deviations. Alternatively, you can also use IntegralResetMode = 4. This option guarantees identical signs of the PID output value jump and control deviation independent of the configured weighting of the proportional action and the control deviation.

464

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.3 PID_Temp

IntegralResetMode 2
3
4

Description
Hold The value of PIDCtrl.IOutputOld is not changed. You can define a new value using the user program. Pre-assign The value of PIDCtrl.IOutputOld is automatically pre-assigned as if PidOutputSum = OverwriteInitialOutputValue in the last cycle. Like setpoint change (only for PID_Temp with version  1.1) The value of PIDCtrl.IOutputOld is automatically pre-assigned so that a similar PID output value jump results as for a PI controller in automatic mode in case of a setpoint change from the current process value to the current setpoint. Any control deviation will cause a jump of the PID output value. The PID output value jump and control deviation have identical signs. Example: If the process value value is smaller than the setpoint (positive control deviation), the PID output value jumps to a positive value. This is independent of the configured weighting of the proportional action and the control deviation.
If IntegralResetMode is assigned a value outside the valid value range, PID_Temp behaves as with the pre-assignment of IntegralResetMode:
 PID_Temp up to V1.0: IntegralResetMode = 1
 PID_Temp as of V1.1: IntegralResetMode = 4

PID control Function Manual, 10/2018, A5E35300227-AD

465

Instructions 9.4 PID basic functions

9.4

PID basic functions

9.4.1

CONT_C

9.4.1.1

Description CONT_C
The CONT_C instruction is used on SIMATIC S7 automation systems to control technical processes with continuous input and output variables. You can assign parameters to enable or disable sub-functions of the PID controller and adapt it to the process. In addition to the functions in the setpoint and process value branches, the instruction implements a complete PID controller with continuous output value output and the option of manually influencing the value of the output value.

Application

You can use the controller as a PID fixed setpoint controller, or in multi-loop control systems, also as a cascade, blending or ratio controller. The functions of the controller are based on the PID control algorithm of the sampling controller with an analog signal, if necessary extended by including a pulse shaper stage to generate pulse-width modulated output signals for two or three step controllers with proportional actuators.

Call
The CONT_C instruction has an initialization routine that is run through when input parameter COM_RST = TRUE is set. During initialization, the integral action is set to the initialization value I_ITVAL. All the signal outputs are set to zero. COM_RST = FALSE has to be set after the initialization routine has been completed.
The calculation of the values in the control blocks is only correct if the block is called at regular intervals. You should therefore call the control blocks in a cyclic interrupt OB (OB 30 to OB 38). Enter the sampling time in the CYCLE parameter.
If you call the instruction CONT_C as a multiple instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for CONT_C directly in the multiple instance DB and commission it via a watch table.

Error information The error message word RET_VAL is not evaluated by the block.

466

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.1.2

How CONT_C works

Setpoint branch The setpoint is entered in floating-point format at the SP_INT input.

Process value branch
The process value can be input in I/O or floating-point format. The function CRP_IN converts the I/O value PV_PER to a floating-point format -100 to +100 % in accordance with the following rule:
Output of CRP_IN = PV_PER * 100 / 27648
The PV_NORM function scales the output of CRP_IN according to the following rule:
Output of PV_NORM = (output of CRP_IN) *PV_FAC + PV_OFF
PV_FAC has a default of 1 and PV_OFF a default of 0.

Forming the error signal
The difference between the setpoint and process value is the error signal. To suppress a minor sustained oscillation due to manipulated variable quantization (e.g. with a pulse width modulation with PULSEGEN), the error signal is applied to a dead band (DEADBAND). With DEADB_W = 0, the dead band is switched off.

PID Algorithm

The PID algorithm operates as a position algorithm. The proportional, integral (INT), and differential (DIF) actions are connected in parallel and can be activated or deactivated individually. This allows P, PI, PD, and PID controllers to be configured. Pure I controllers are also possible.

Manual value processing
It is possible to switch over between manual and automatic mode. In manual mode, the manipulated variable is corrected to a manually selected value.
The integral action (INT) is set internally to LMN - LMN_P - DISV and the derivative action (DIF) is set to 0 and synchronized internally. Changeover to automatic mode is therefore bumpless.

PID control Function Manual, 10/2018, A5E35300227-AD

467

Instructions 9.4 PID basic functions
Manipulated value processing You can use the LMNLIMIT function to limit the manipulated value to selected values. Alarm bits indicate when a limit is exceeded by the input variable. The LMN_NORM function normalizes the output of LMNLIMIT according to the following rule: LMN = (output of LMNLIMIT) * LMN_FAC + LMN_OFF LMN_FAC has a default of 1 and LMN_OFF a default of 0. The manipulated value is also available in I/O format. The CRP_OUT function converts the LMN floating-point value to a I/O value according to the following rule: LMN_PER = LMN * 27648 / 100
Feedforward control A disturbance variable can be added at the DISV input.

468

PID control Function Manual, 10/2018, A5E35300227-AD

9.4.1.3

CONT_C block diagram

Instructions 9.4 PID basic functions

PID control Function Manual, 10/2018, A5E35300227-AD

469

Instructions 9.4 PID basic functions

9.4.1.4

Input parameter CONT_C

Table 9- 13 Input parameter CONT_C

Parameters COM_RST MAN_ON PVPER_ON
P_SEL I_SEL INT_HOLD I_ITL_ON D_SEL CYCLE
SP_INT PV_IN
PV_PER MAN
GAIN TI TD
TM_LAG

Data type BOOL BOOL BOOL
BOOL BOOL BOOL BOOL BOOL TIME
REAL REAL
WORD REAL
REAL TIME TIME
TIME

Default FALSE TRUE FALSE
TRUE TRUE FALSE FALSE FALSE T#1s
0.0 0.0
W#16#0000 0.0
2.0 T#20s T#10s
T#2s

Description
The instruction has an initialization routine that is processed when the "Restart" input is set.
If the input "Enable manual mode" is set then the control loop is interrupted. A manual value is set as the manipulated value.
If the process value is to be read in from the I/Os, the PV_PER input must be interconnected with the I/Os and the "Enable process value I/Os" input must be set.
The PID actions can be switched on and off individually in the PID algorithm. Paction is on when the "Enable P-action" input is set.
The PID actions can be switched on and off individually in the PID algorithm. I action is on when the input "I-action on" is set.
The output of the integral action can be frozen. For this the input "I-action hold" must be set.
The output of the integral action can be set at the I_ITLVAL input. For this the input "Set I-action" must be set.
The PID actions can be switched on and off individually in the PID algorithm. Daction is on when the input "Enable D-action" is set.
The time between block calls must be constant. The "Sampling time" input specifies the time between block calls. CYCLE >= 1ms
The input "Internal setpoint" is used to specify a setpoint. Permissible are values from -100 to 100 % or a physical variable 1).
At the "Process value input" you can assign parameters to a commissioning value or you can interconnect an external process value in floating-point format. Permissible are values from -100 to 100 % or a physical variable 1).
The process value in I/O format is interconnected with the controller at the "Process value I/0" input.
The "Manual value" input is used to set a manual value using the operator interface functions. Permissible are values from -100 to 100 % or a physical variable 2).
The "Proportional gain" input specifies controller amplification.
The "Integration time" input determines the time response of the integral action. TI >= CYCLE
The "Derivative action time" input determines the time response of the derivative action. TD >= CYCLE
Time lag of the D-action The algorithm of the D-action contains a delay for which parameters can be assigned at the input "Time lag of the D-action". TM_LAG >= CYCLE/2

470

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

Parameters DEADB_W
LMN_HLM
LMN_LLM
PV_FAC PV_OFF LMN_FAC LMN_OFF I_ITLVAL
DISV

Data type
REAL

Default 0.0

REAL 100.0

REAL 0.0

REAL 1.0 REAL 0.0 REAL 1.0 REAL 0.0 REAL 0.0

REAL 0.0

Description
A dead band is applied to the system deviation. The "Dead band width" input determines the size of the dead band. DEADB_W >= 0.0 (%) or a physical variable 1) The manipulated value is always restricted to a high limit and low limit. The "High limit of manipulated value" input specifies the high limit. Permissible are real values starting at LMN_LLM (%) or a physical variable 2). The manipulated value is always restricted to a high limit and low limit. The "Low limit of manipulated value" input specifies the low limit. Permissible are real values up to LMN_HLM (%) or a physical variable 2). The "Process value factor" input is multiplied by the process value. The input is used to scale the process value range. The input "Process value offset" is added to the process value. The input is used to scale the process value range. The "Manipulated value factor" input is multiplied with the manipulated value. The input is used to scale the manipulated value range.
The input "Manipulated value offset" is added to the process value. The input is used to scale the manipulated value range. The output of the integral action can be set at the I_ITL_ON input. The initialization value is applied to the input "Initialization value of the I-action." Permissible are values of -100.0 to 100.0 (%) or a physical variable 2). For feedforward control, the disturbance variable is interconnected to the "Disturbance variable" input. Permissible are values of -100.0 to 100.0 (%) or a physical variable 2).

1) Parameters in the setpoint and process value branches with the same unit

2) Parameters in the manipulated value branch with the same unit

PID control Function Manual, 10/2018, A5E35300227-AD

471

Instructions 9.4 PID basic functions

9.4.1.5

Output parameters CONT_C

Table 9- 14 Output parameters CONT_C

Parameter LMN

Data type REAL

LMN_PER WORD

QLMN_HLM BOOL

QLMN_LLM BOOL

LMN_P
LMN_I LMN_D
PV ER

REAL
REAL REAL
REAL REAL

Default 0.0 W#16#0000 FALSE
FALSE
0.0 0.0 0.0 0.0 0.0

Description
The effective "Manipulated value" is output in floating point format at the "Manipulated value" output.
The manipulated value in I/O format is interconnected on the input "Manipulated value I/O" with the controller.
The manipulated value is always restricted to a high limit and low limit. The output "High limit of manipulated value reached" indicates that the high limit has been reached.
The manipulated value is always restricted to a high limit and low limit. The output "Low limit of manipulated value reached" indicates that the low limit has been reached.
The "P-action" output contains the proportional action of the manipulated variable.
The "I-action" output contains the integral action of the manipulated variable.
The "D-action" output contains the derivative action of the manipulated variable.
The effective process value is output at the "Process value" output.
The effective system deviation is output at the "Error signal" output.

472

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.2

CONT_S

9.4.2.1

Description CONT_S
The CONT_S instruction is used on SIMATIC S7 automation systems to control technical processes with binary output value output signals for actuators with integrating behavior. During parameter assignment, you can activate or deactivate sub-functions of the PI step controller to adapt the controller to the controlled system. In addition to the functions in the process value branch, the instruction implements a complete proportional-plus-integralaction controller with binary output value output and the option of manually influencing the value of the output value. The step controller operates without a position feedback signal.

Application

You can use the controller as a PI fixed setpoint controller or in secondary control loops in cascade, blending or ratio controllers, however you cannot use it as the primary controller. The functions of the controller are based on the PI control algorithm of the sampling controller supplemented by the functions for generating the binary output signal from the analog actuating signal.

Call
The CONT_S instruction has an initialization routine that is run through when input parameter COM_RST = TRUE is set. All the signal outputs are set to zero. COM_RST = FALSE has to be set after the initialization routine has been completed.
The calculation of the values in the control blocks is only correct if the block is called at regular intervals. You should therefore call the control blocks in a cyclic interrupt OB (OB 30 to OB 38). Enter the sampling time in the CYCLE parameter.
If you call the instruction CONT_S as a multiple instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for CONT_S directly in the multiple instance DB and commission it via a watch table.
Error information
The error message word RET_VAL is not evaluated by the block.

PID control Function Manual, 10/2018, A5E35300227-AD

473

Instructions 9.4 PID basic functions

9.4.2.2

Mode of operation CONT_S

Setpoint branch The setpoint is entered in floating-point format at the SP_INT input.

Process value branch
The process value can be input in I/O or floating-point format. The function CRP_IN converts the I/O value PV_PER to a floating-point format -100 to +100 % in accordance with the following rule:
Output of CRP_IN = PV_PER * 100 / 27648
The PV_NORM function normalizes the output of CRP_IN according to the following rule:
Output of PV_NORM = (output of CRP_IN) * PV_FAC + PV_OFF
PV_FAC has a default of 1 and PV_OFF a default of 0.

Forming the error signal
The difference between the setpoint and process value is the error signal. To suppress a small constant oscillation due to the manipulated variable quantization (for example, due to a limited resolution of the manipulated value by the control valve), a dead band is applied to the error signal (DEADBAND). With DEADB_W = 0, the dead band is switched off.

PI step algorithm
The instruction operates without position feedback. The I-action of the PI algorithm and the assumed position feedback signal are calculated in one integral action (INT) and compared with the remaining P-action as a feedback value. The difference is applied to a three-step element (THREE_ST) and a pulse shaper (PULSEOUT) that generates the pulses for the control valve. The switching frequency of the controller can be reduced by adapting the response threshold of the three-step element.

Feedforward control A disturbance variable can be added at the DISV input.

474

PID control Function Manual, 10/2018, A5E35300227-AD

9.4.2.3

Block diagram CONT_S

Instructions 9.4 PID basic functions

PID control Function Manual, 10/2018, A5E35300227-AD

475

Instructions 9.4 PID basic functions

9.4.2.4

Input parameters CONT_S

Table 9- 15 Input parameters CONT_S

Parameters COM_RST LMNR_HS
LMNR_LS
LMNS_ON LMNUP LMNDN PVPER_ON
CYCLE
SP_INT PV_IN
PV_PER GAIN TI DEADB_W
PV_FAC PV_OFF PULSE_TM BREAK_TM

Data type BOOL BOOL
BOOL
BOOL BOOL BOOL BOOL
TIME
REAL REAL
WORD REAL TIME REAL
REAL REAL TIME TIME

Default

Description

FALSE

The block has an initialization routine that is processed when the "Restart" input is set.

FALSE

The signal "Control valve at high endstop" is interconnected at the input "High endstop signal of position feedback". LMNR_HS=TRUE means: The control valve is at high endstop.

FALSE

The signal "Control valve at low endstop" is interconnected on the input "Low endstop signal of position feedback". LMNR_LS=TRUE means The control valve is at low endstop.

FALSE

Manipulated value signal processing is switched to manual mode at the "Enable manual mode of manipulated signal".

FALSE

The output signal QLMNUP is operated in manual mode of the manipulated value signals at the input "Manipulated value signal up".

FALSE

The output signal QLMNDN is operated in manual mode of the manipulated value signals at the input "Manipulated value signal down"

FALSE

If the process value is to be read from the I/O then the input PV_PER must be interconnected with the I/O and the input "Enable process value I/O" must be set.

T#1s

The time between block calls must be constant. The "Sampling time" input specifies the time between block calls.

CYCLE >= 1ms

0.0

The input "Internal setpoint" is used to specify a setpoint.

Permissible are values from -100 to 100 % or a physical variable 1).

0.0

At the "Process value input" you can assign parameters to a commissioning

value or you can interconnect an external process value in floating-point format.

Permissible are values from -100 to 100 % or a physical variable 1).

W#16#0000 The process value in I/O format is interconnected with the controller at the "Process value I/O" input.

2.0

The "Proportional gain" input specifies controller amplification.

T#20s

The "Integration time" input determines the time response of the integral action.

TI >= CYCLE

1.0

A dead band is applied to the system deviation. The "Dead band width" input

determines the size of the dead band.

Permissible are values from 0 to 100 % or a physical variable 1).

1.0

The "Process value factor" input is multiplied by the process value. The input is

used to scale the process value range.

0.0

The input "Process value offset" is added to the process value. The input is

used to scale the process value range.

T#3s

You can assign a minimum pulse time at the parameter "Minimum pulse time".

PULSE_TM >= CYCLE

T#3s

You can assign a minimum break time at the parameter "Minimum break time".

BREAK_TM >= CYCLE

476

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

Parameters MTR_TM
DISV

Data type Default

TIME

T#30s

REAL

0.0

Description The time required by the actuator to move from limit stop to limit stop is entered at the "Motor actuating time" parameter.
MTR_TM >= CYCLE
For feedforward control, the disturbance variable is interconnected to the "Disturbance variable" input. Permissible are values from -100 to 100 % or a physical variable 2).

1) Parameters in setpoint and process value branches with identical unit

2) Parameters in the manipulated value branch with same unit

9.4.2.5

Output parameters CONT_S

Table 9- 16 Output parameters CONT_S

Parameters QLMNUP

Data type
BOOL

Default FALSE

QLMNDN BOOL FALSE

PV

REAL 0.0

ER

REAL 0.0

Description
If the output "Manipulated value signal up" is set then the control valve should be open. If the output "Manipulated value signal down" is set then the control valve should be closed. The effective process value is output at the "Process value" output. The effective system deviation is output at the "Error signal" output.

PID control Function Manual, 10/2018, A5E35300227-AD

477

Instructions 9.4 PID basic functions

9.4.3

PULSEGEN

9.4.3.1

Description PULSEGEN
The instruction PULSEGEN serves as the structure of a PID controller with impulse output for proportional actuators. PULSEGEN transforms the input value INV (= LMN of the PID controller) through modulation of the impulse width in an impulse sequence with a constant period duration, which corresponds with the cycle time with which the input value is updated.

Application

You can use the PULSEGEN instruction to configure two- or three-step PID controllers with pulse width modulation. The function is normally used in conjunction with the continuous controller CONT_C.

Call The PULSEGEN instruction has an initialization routine that is run through when input parameter COM_RST = TRUE is set. All the signal outputs are set to zero. COM_RST = FALSE has to be set after the initialization routine has been completed. The calculation of the values in the control blocks is only correct if the block is called at regular intervals. You should therefore call the control blocks in a cyclic interrupt OB (OB 30 to OB 38). Enter the sampling time in the CYCLE parameter.
Responses in the event of an error The error message word RET_VAL is not evaluated by the block.

478

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.3.2

Mode of operation PULSEGEN

Impulse width modulation
The duration of a pulse per period duration is proportional to the input variable. The cycle assigned via PER_TM is not identical to the processing cycle of the PULSEGEN instruction. Rather, a PER_TM cycle is made up of several processing cycles of the PULSEGEN instruction, whereby the number of PULSEGEN calls per PER_TM cycle determines the accuracy of the pulse width.

An input variable of 30% and 10 PULSEGEN calls per PER_TM mean the following:  "One" at the QPOS_P output for the first three calls of PULSEGEN (30% of 10 calls)  "Zero" at the QPOS_P output for seven further calls of PULSEGEN (70% of 10 calls)

PID control Function Manual, 10/2018, A5E35300227-AD

479

Instructions 9.4 PID basic functions
Block diagram

Accuracy of the manipulated value With a "Sampling ratio" of 1:10 (CONT_C calls to PULSEGEN calls) the accuracy of the manipulated value in this example is restricted to 10%, in other words, set input values INV can only be simulated by a pulse duration at the QPOS_P output in steps of 10 %.
The accuracy is increased as the number of PULSEGEN calls per CONT_C call is increased.
If PULSEGEN is called, for example, 100 times more often than CONT_C, a resolution of 1 % of the manipulated value range is achieved.
Note
The reduction ratio of the call frequency must be programmed by the user.

480

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Automatic synchronization
It is possible to automatically synchronize the pulse output with the instruction that updates the input variable INV (e.g. CONT_C). This ensures that a change in the input variable is output as quickly as possible as a pulse.
The pulse shaper evaluates the input value INV at intervals corresponding to the period duration PER_TM and converts the value into a pulse signal of corresponding length.
Since, however, INV is usually calculated in a slower cyclic interrupt class, the pulse shaper should start the conversion of the discrete value into a pulse signal as soon as possible after the updating of INV.
To allow this, the block can synchronize the start of the period using the following procedure:
If INV changes and if the block call is not in the first or last two call cycles of a period, a synchronization is performed. The pulse duration is recalculated and in the next cycle is output with a new period.

The automatic synchronization is switched off, if SYN_ON = FALSE.
Note The start of a new period and subsequent synchronization usually leads to a certain imprecision when the old value of INV (i.e. of LMN) is mapped to the pulse signal.

PID control Function Manual, 10/2018, A5E35300227-AD

481

Instructions 9.4 PID basic functions

9.4.3.3

Mode of operation PULSEGEN

Modes

Depending on the parameters assigned to the pulse shaper, PID controllers with a three-step output or with a bipolar or unipolar two-step output can be configured. The following table illustrates the setting of the switch combinations for the possible modes.

Mode Three-step control Two-step control with bi-polar Manipulating range (-100 % to 100 %) Two-step control with unipolar Manipulating range (0 % to 100 %) Manual mode

MAN_ON FALSE FALSE
FALSE
TRUE

STEP3_ON TRUE FALSE
FALSE
Any

ST2BI_ON Any TRUE
FALSE
Any

Manual mode in two/three-step control
In the manual mode (MAN_ON = TRUE), the binary outputs of the three-step or two-step controller can be set using the signals POS_P_ON and NEG_P_ON regardless of INV.

Control Three-step control
Two-step control

POS_P_ON FALSE TRUE FALSE TRUE FALSE TRUE

NEG_P_ON FALSE FALSE TRUE TRUE Any Any

QPOS_P FALSE TRUE FALSE FALSE FALSE TRUE

QNEG_P FALSE FALSE TRUE FALSE TRUE FALSE

482

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.3.4

Three-step control

Three-step control
In "Three-step control" mode, it is possible to generate three statuses of the actuating signal. For this, the status values of the binary output signals QPOS_P and QNEG_P are assigned to the respective operating statuses of the actuator. The table shows the example of a temperature control:

Output signals QPOS_P QNEG_P

Heat TRUE FALSE

Off FALSE FALSE

Cool FALSE TRUE

The pulse duration is calculated from the input variable via a characteristic curve. The form of the characteristic curve is defined by the minimum pulse duration or minimum interval and the ratio factor. The normal value for the ratio factor is 1.

The "doglegs" in the curves are caused by the minimum pulse duration or minimum interval.

Minimum pulse duration or minimum interval

A correctly assigned minimum pulse duration or minimum interval P_B_TM can prevent short on/off times, which reduce the working life of switching elements and actuators. Small absolute values of input variable LMN that would otherwise generate a pulse duration shorter than P_B_TM are suppressed. Large input values that would generate a pulse duration longer than PER_TM - P_B_TM are set to 100% or -100%.

PID control Function Manual, 10/2018, A5E35300227-AD

483

Instructions 9.4 PID basic functions
The duration of positive or negative pulses is calculated by multiplying the input variable (in %) by the period duration: Pulse duration = INV / 100 * PER_TM The following figure shows a symmetrical characteristic curve of the three-step controller (ratio factor = 1).

484

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Asymmetrical three-step control Using the ratio factor RATIOFAC, the ratio of the duration of positive to negative pulses can be changed. In a thermal process, for example, this would allow different system time constants for heating and cooling. Ratio factor < 1 The pulse duration at the negative pulse output, calculated by multiplying the input variable by the period duration, is multiplied by the ratio factor. Positive pulse duration = INV /100 * PER_TM Negative pulse duration = INV / 100 * PER_TM * RATIOFAC The following figure shows the asymmetrical characteristic curve of the three-step controller (ratio factor = 0.5):

Ratio factor > 1 The pulse duration at the positive pulse output, calculated by multiplying the input variable by the period duration, is divided by the ratio factor. Positive pulse duration = INV / 100 * PER_TM / RATIOFAC Negative pulse duration = INV / 100 * PER_TM

PID control Function Manual, 10/2018, A5E35300227-AD

485

Instructions 9.4 PID basic functions

9.4.3.5

Two-step control
In two-step control, only the positive pulse output QPOS_P of PULSEGEN is connected to the on/off actuator. Depending on the manipulated value range used, the two-step controller has a bipolar or a unipolar manipulated value range.
Two-step control with bipolar manipulated variable range (-100% to 100%)

Two-step control with unipolar manipulated variable range (0% to 100%)

The negated output signal is available at QNEG_P if the connection of the two-step controller in the control loop requires a logically inverted binary signal for the actuating pulses.

Pulse QPOS_P QNEG_P

Actuator On TRUE FALSE

Actuator Off FALSE TRUE

486

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.3.6

Input parameters PULSEGEN The values of the input parameters are not limited in the block. There is no parameter check.

Table 9- 17 Input parameters PULSEGEN

Parameters INV

Data type
REAL

Default 0.0

PER_TM

TIME T#1s

P_B_TM

TIME T#50 ms

RATIOFAC REAL 1.0

STEP3_ON BOOL TRUE ST2BI_ON BOOL FALSE

MAN_ON

BOOL FALSE

POS_P_ON BOOL FALSE

NEG_P_ON BOOL FALSE

SYN_ON

BOOL TRUE

COM_RST BOOL FALSE

CYCLE

TIME T#10ms

Description
At the input parameter "Input variable" an analog manipulated variable is connected.
Values from -100 to 100 % are permitted.
At the parameter "Period duration" the constant period duration of the pulse width modulation is entered. This corresponds to the sampling time of the controller. The ratio between the sampling time of the pulse shaper and the sampling time of the controller determines the accuracy of the pulse width modulation.
PER_TM >=20*CYCLE
You can assign a minimum pulse/break time at the parameter "Minimum pulse/break time".
P_B_TM >= CYCLE
Using the "Ratio factor" input parameter the ratio of the duration of positive to negative pulses can be changed. In a thermal process, this would, for example, allow different time constants for heating and cooling to be compensated (for example, in a process with electrical heating and water cooling).
Values from 0.1 to 10.0 are permitted.
At the input parameter "Enable three-step control" the appropriate mode is activated. In three-step control both output signals are active.
At the input parameter "Enable two-step control for bipolar manipulated value range" you can select from the modes "Two-step control for bipolar manipulated value range" and "Two-step control for unipolar manipulated value range". STEP3_ON = FALSE is required.
Setting the input parameter "Enable manual mode" allows the output signals to be set manually.
For manual mode three-step control, the output signal QPOS_P can be operated on the input parameter "Positive pulse on". In manual mode with two-step control, QNEG_P is always set inversely to QPOS_P.
For manual mode three-step control, the output signal QNEG_P can be operated on the input parameter "Negative pulse on". In manual mode with two-step control, QNEG_P is always set inversely to QPOS_P.
By setting the input parameter "Enable synchronization", it is possible to synchronize the pulse output automatically with the block that updates the input variable INV. This ensures that a change in the input variable is output as quickly as possible as a pulse.
The block has an initialization routine that is processed when the input "Restart" is set.
The time between block calls must be constant. The "Sampling time" input specifies the time between block calls.
CYCLE >= 1ms

PID control Function Manual, 10/2018, A5E35300227-AD

487

Instructions 9.4 PID basic functions

9.4.3.7

Output parameter PULSEGEN

Table 9- 18 Output parameter PULSEGEN

Parameters QPOS_P

Data type BOOL

Default FALSE

QNEG_P

BOOL

FALSE

Description
The output parameter "Output signal positive pulse" is set if a pulse will be output. In three-step control, this is always the positive pulse. In two-step control, the QNEG_P is always set inversely to QPOS_P.
The output parameter "Output signal negative pulse" is set if a pulse will be output. In three-step control, this is always the negative pulse. In two-step control, QNEG_P is always set inversely to QPOS_P.

488

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.4

TCONT_CP

9.4.4.1

Description TCONT_CP
The instruction TCONT_CP is used to control temperature processes with continuous or pulsed control signals. The controller functionality is based on the PID control algorithm with additional functions for temperature processes. To improve the control response with temperature processes, the block includes a control zone and reduction of the proportional component if there is a setpoint step change.
The instruction can set the PI/PID parameters itself using the controller optimization function.

Application

The controller controls one actuator; in other words, with one controller you can either heat or cool but not both. If you use the block for cooling, GAIN must be assigned a negative value. This inversion of the controller means that if the temperature rises, for example, the manipulated variable LMN and with it the cooling action is increased.

Call
The instruction TCONT_CP must be called equidistant. To achieve this, use a cyclic interrupt priority class (for example, OB35 for an S7-300).
The TCONT_CP instruction has an initialization routine that is run through when input parameter COM_RST = TRUE is set. During initialization, the integral action is set to the initialization value I_ITVAL. All the signal outputs are set to zero. Following execution of the initialization routine, the block sets COM_RST back to FALSE. If you require initialization when the CPU restarts, call the block in OB100 with COM_RST = TRUE.
If you call the instruction TCONT_CP as a multiple instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for TCONT_CP directly in the multiple instance DB and commission it via a watch table.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

PID control Function Manual, 10/2018, A5E35300227-AD

489

Instructions 9.4 PID basic functions

9.4.4.2

Mode of operation TCONT_CP

Setpoint branch
The setpoint is entered at input SP_INT in floating-point format as a physical value or percentage. The setpoint and process value used to form the control deviation must have the same unit.

Process value options (PVPER_ON)
Depending on PVPER_ON, the process value can be read in, in the I/O or floating-point format.

PVPER_ON TRUE
FALSE

Process Value Input
The process value is read in via the analog I/Os (PIW xxx) at input PV_PER.
The process value is acquired in floating-point format at input PV_IN.

Process value format conversion CRP_IN (PER_MODE)
The CRP_IN function converts the I/O value PV_PER to floating-point format depending on the PER_MODE switch according to the following rules:

PER_MODE 0
1 2

Output of CRP_IN PV_PER * 0.1
PV_PER * 0.01 PV_PER * 100/27648

Analog Input Type Thermoelements; PT100/NI100; standard
PT100/NI100; climate;
Voltage/current

Unit °C;°F
°C;°F %

Process value scaling PV_NORM (PF_FAC, PV_OFFS) The PV_NORM function calculates the output of CRP_IN according to the following rule:
"Output of PV_NORM" = "Output of CRP_IN)" * PV_FAC + PV_OFFS
It can be used for the following purposes:
 Process value adjustment with PV_FAC as process value factor and PV_OFFS as process value offset.
 Scaling of temperature to percentage
You want to enter the setpoint as a percentage and must now convert the measured temperature value to a percentage.
 Scaling of percentage to temperature
You want to enter the setpoint in the physical temperature unit and must now convert the measured voltage/current value to a temperature.

490

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Calculation of the parameters:  PV_FAC = range of PV_NORM/range of CRP_IN;  PV_OFFS = LL (PV_NORM) - PV_FAC * LL(CRP_IN);
where LL: Low limit The scaling is switched off with the default values (PV_FAC = 1.0 and PV_OFFS = 0.0). The effective process value is output at the PV output.
Note With pulse control, the process value must be transferred to the block in the fast pulse call (reason: mean value filtering). Otherwise, the control quality can deteriorate.
Example of Process Value Scaling If you want to enter the setpoint as a percentage, and you have a temperature range of -20 to 85 °C applied to , CRP_IN you must normalize the temperature range as a percentage. The diagram below shows an example of adapting the temperature range -20 to 85 °C to an internal scale of 0 to 100 %:

Forming the control deviation
The difference between the setpoint and process value is the control deviation before the dead band.
The setpoint and process value must exist in the same unit.

PID control Function Manual, 10/2018, A5E35300227-AD

491

Instructions 9.4 PID basic functions
Dead band (DEADB_W) To suppress a minor sustained oscillation due to the manipulated variable quantization (for example, in pulse width modulation with PULSEGEN) a dead band is applied to the (DEADBAND) control deviation. With DEADB_W = 0.0, the dead band is disabled. The effective control deviation is indicated by the ER parameter.

PID Algorithm

The following figure shows the block diagram of the PID algorithm.

Parameter configuration interface Instruction call interface

492

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
PID Algorithm (GAIN, TI, TD, D_F) The PID algorithm operates as a position algorithm. The proportional, integral (INT), and derivative (DIF) actions are connected in parallel and can be activated or deactivated individually. This allows P, PI, PD, and PID controllers to be configured. Controller tuning supports PI and PID controllers. Controller inversion is implemented using a negative GAIN (cooling controller). If you set TI and TD to 0.0, you obtain a pure P controller at the operating point. The step response in the time range is:
Where: LMN_Sum(t) the manipulated variable in the controller's automatic mode ER (0) is the step height of the normalized control deviation GAIN is the controller gain TI is the integration time TD is the derivative action time D_F is the derivative factor

PID control Function Manual, 10/2018, A5E35300227-AD

493

Instructions 9.4 PID basic functions
Integral action (TI, I_ITL_ON, I_ITLVAL) In manual mode, it is corrected as follows: LMN_I = LMN - LMN_P - DISV. If the output value is limited, the integral action is halted. If the control deviation moves the integral action back in the direction of the output range, the integral action is enabled again. The integral action is also modified by the following measures:  The integral action of the controller is deactivated by TI = 0.0  Weakening of the proportional action when setpoint changes occur  Control zone  The output value limits can be modified online
Weakening of the proportional action when setpoint changes occur (PFAC_SP) To prevent overshoot, you can weaken the proportional action using the parameter "Proportional factor for setpoint changes" (PFAC_SP). Using PFAC_SP, you can select continuously between 0.0 and 1.0 to decide the effect of the proportional action when the setpoint changes:  PFAC_SP = 1.0: Proportional action has full effect if the setpoint changes  PFAC_SP = 0.0: Proportional action has no effect if the setpoint changes The weakening of the proportional action is achieved by compensating the integral action.
Derivative action (TD, D_F)  The derivative action of the controller is deactivated by TD = 0.0  If the derivative action is active, the following relationship should apply: TD = 0.5 * CYCLE * D_F
Parameter Settings of a P or PD Controller with Operating Point In the user interface, deactivate the integral action (TI = 0.0) and possibly also the derivative action (TD = 0.0). Then make the following parameter settings:  I_ITL_ON = TRUE  I_ITLVAL = operating point;
Feedforward control (DISV) A disturbance variable can be added at the DISV input.

494

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions Calculating the output value The diagram below is the block diagram of the output value calculation:
Parameter configuration interface Instruction call interface Parameter configuration interface, call interface

PID control Function Manual, 10/2018, A5E35300227-AD

495

Instructions 9.4 PID basic functions
Control zone (CONZ_ON, CON_ZONE) If CONZ_ON = TRUE, the controller operates with a control zone. This means that the controller operates according to the following algorithm:  If process value PV exceeds the setpoint SP_INT by more than CON_ZONE, the value LMN_LLM is output as the manipulated variable.  If the process value PV falls below setpoint SP_INT by more than CON_ZONE, LMN_HLM is output.  If the process value PV is within the control zone (CON_ZONE), the output value takes its value from the PID algorithm LMN_Sum.
Note Changing the manipulated variable from LMN_LLM or LMN_HLM to LMN_Sum occurs under compliance of a hysteresis of 20% of the control zone.

Note
Before enabling the control zone manually, make sure that the control zone band is not too narrow. If the control zone band is too small, oscillations will occur in the manipulated variable and process value.
Advantage of the Control Zone When the process value enters the control zone, the D-action causes an extremely fast reduction of the manipulated variable. This means that the control zone is only useful when the D-action is activated. Without a control zone, only the reducing P-action would essentially reduce the manipulated variable. The control zone leads to faster settling without overshoot or undershoot if the output minimum or maximum manipulated variable is a long way from the manipulated variable required for the new operating point.

496

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Manual value processing (MAN_ON, MAN) You can change over between manual and automatic mode. In manual mode, the manipulated variable is corrected to a manually selected value. The integral action (INT) is set internally to LMN - LMN_P - DISV and the derivative action (DIF) is set to 0 and synchronized internally. Changeover to automatic mode is therefore bumpless.
Note The MAN_ON parameter has no effect during tuning.
Output value limit LMNLIMIT (LMN_HLM, LMN_LLM) The LMNLIMIT function is used to limit the output value to the limits LMN_HLM and LMN_LLM. If these limits are reached, this is indicated by the message bits QLMN_HLM and QLMN_LLM. If the output value is limited, the integral action is halted. If the control deviation moves the integral action back in the direction of the output range, the integral action is enabled again.
Changing the Manipulated Value Limits Online If the range of the output value is reduced and the new unlimited value of the output value is outside the limits, the integral action and therefore the output value shifts. The output value is reduced by the same amount as the output value limit changed. If the output value was unlimited prior to the change, it is set exactly to the new limit (described here for the high output value limit).
Scaling of output value LMN_NORM (LMN_FAC, LMN_OFFS) The LMN_NORM function normalizes the output value according to the following rule: LMN = LmnN * LMN_FAC + LMN_OFFS It can be used for the following purposes:  Output value scaling with LMN_FAC as output value factor and LMN_OFFS as output value offset. The output value is also available in I/O format. The CRP_OUT function converts the LMN floating-point value to an I/O value according to the following rule: LMN_PER = LMN * 27648/100 The scaling is switched off with the default values (LMN_FAC = 1.0 and LMN_OFFS = 0.0). The effective output value is sent to output LMN.

PID control Function Manual, 10/2018, A5E35300227-AD

497

Instructions 9.4 PID basic functions

Save controller parameters SAVE_PAR
If you classify the current controller parameters as utilizable, you can save these before a manual change in structure parameters provided specifically for this in the instance DB of the instruction TCONT_CP. If you optimize the controller, the saved parameters are overwritten by the values that were valid prior to tuning.
PFAC_SP, GAIN, TI, TD, D_F, CONZ_ON and CONZONE are written to the structure PAR_SAVE.

Reloading Saved Controller Parameters UNDO_PAR
The last controller parameter settings you saved can be activated for the controller again using this function (in manual mode only).

Change between PI and PID parameters LOAD_PID (PID_ON)
Following tuning, the PI and PID parameters are stored in the PI_CON and PID_CON structures. Depending on PID_ON, you can use LOAD_PID in manual mode to write the PI or PID parameters to the effective controller parameters.

PID parameters PID_ON = TRUE · GAIN = PID_CON.GAIN · TI = PID_CON.TI · TD = PID_CON.TD

PI parameters PID_ON = FALSE · GAIN = PI_CON.GAIN · TI = PI_CON.TI

Note
The controller parameters are only written back to the controller with UNDO_PAR or LOAD_PID, if the controller gain is not equal to 0:
With LOAD_PID, the parameters are only copied if the corresponding GAIN <> 0 is (either the PI or PID parameters). This strategy takes into account the situation that no tuning has yet been made or that PID parameters are missing. If PID_ON = TRUE and PID.GAIN = FALSE, PID_ON is set to FALSE and the PI parameter is copied. · D_F, PFAC_SP are preset by the the tuning. These can then be modified by the user.
LOAD_PID does not change these parameters. · With LOAD_PID, the control zone is always recalculated
(CON_ZONE = 250/GAIN), even if CONZ_ON = FALSE.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

498

PID control Function Manual, 10/2018, A5E35300227-AD

9.4.4.3

Instructions 9.4 PID basic functions
Operating principle of the pulse generator The function PULSEGEN transforms the analog manipulated value LmnN through pulse width module into an impulse sequence with the period duration PER_TM. PULSEGEN is switched on with PULSE_ON = TRUE and is processed in the cycle CYCLE_P.

A manipulated value of LmnN = 30% and 10 PULSEGEN calls per PER_TM therefore means:
 TRUE at output QPULSE for the first three PULSEGEN calls (30% of 10 calls)
 FALSE at output QPULSE for seven further PULSEGEN calls (70% of 10 calls)
The duration of a pulse per pulse repetition period is proportional to the manipulated variable and is calculated as follows:
Pulse duration = PER_TM * LmnN /100
By suppressing the minimum pulse or break time, the characteristic curve of the conversion develops "knees" in the start and end regions.

PID control Function Manual, 10/2018, A5E35300227-AD

499

Instructions 9.4 PID basic functions
The following diagram illustrates two-step control with a unipolar manipulated variable range (0% to 100%):
Minimum pulse or minimum break time (P_B_TM) Short on or off times hinder the lifespan of actuators and fine controlling units. These can be avoided by setting a minimum pulse duration or minimum break time P_B_TM. Small absolute values at the input variable LmnN that could otherwise generate a pulse duration shorter than P_B_TM are suppressed. Large input values that would generate a pulse duration greater than PER_TM - P_B_TM are set to 100%. This reduces the dynamics of pulse generation. Set values of P_B_TM  0,1 * PER_TM are recommended for the minimum pulse duration and the minimum break duration. The "knees" in the curves in the diagram above are caused by the minimum pulse or minimum break times. The following schematic illustrates the switching response of the pulse output:

500

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Accuracy of pulse generation The smaller the pulse generator CYCLE_P is compared to the period duration PER_TM, the more precise the pulse width modulation is. To achieve sufficiently accurate control, the following relationship should apply: CYCLE_P  PER_TM/50 The manipulated value is transformed with a resolution of  2 % into an impulse.
Note When calling the controller in the pulse shaper cycle, you must note the following: Calling the controller in the pulse shaper cycle will cause the process value to be averaged. As a result, at output PV, different values may be at input PV_IN and PV_PER. If you want to track the setpoint value, you must save the process value at input parameter PV_IN at the call times for complete controller processing (QC_ACT = TRUE). For pulse shaper calls occurring between these times, you must supply the input parameters PV_IN and SP_INT with the saved process value.

See also

Description TCONT_CP (Page 489) Mode of operation TCONT_CP (Page 490) Block diagram TCONT_CP (Page 502) Input parameters TCONT_CP (Page 504) Output parameters TCONT_CP (Page 505) In/out parameters TCONT_CP (Page 506) Static variables TCONT_CP (Page 507) Parameter STATUS_H (Page 512) Parameters STATUS_D (Page 513)

PID control Function Manual, 10/2018, A5E35300227-AD

501

Instructions 9.4 PID basic functions

9.4.4.4

Block diagram TCONT_CP

502

PID control Function Manual, 10/2018, A5E35300227-AD

See also

Description TCONT_CP (Page 489) Mode of operation TCONT_CP (Page 490) Operating principle of the pulse generator (Page 499) Input parameters TCONT_CP (Page 504) Output parameters TCONT_CP (Page 505) In/out parameters TCONT_CP (Page 506) Static variables TCONT_CP (Page 507) Parameter STATUS_H (Page 512) Parameters STATUS_D (Page 513)

Instructions 9.4 PID basic functions

PID control Function Manual, 10/2018, A5E35300227-AD

503

Instructions 9.4 PID basic functions

9.4.4.5

Input parameters TCONT_CP

Table 9- 19 Input parameters TCONT_CP

Parameters PV_IN

Address
0.0

Data type
REAL

Default 0.0

PV_PER

4.0

INT

0

DISV

6.0 REAL 0.0

INT_HPOS 10.0 BOOL FALSE

INT_HNEG 10.1 BOOL FALSE

SELECT

12.0 INT

0

Description
At the "Process value input" you can assign parameters to a commissioning value or you can interconnect an external process value in floating-point format. The valid values depend on the sensors used.
The process value in I/O format is interconnected with the controller at the "Process value I/O" input.
For feedforward control, the disturbance variable is interconnected to the "Disturbance variable" input.
The output of the integral action can be held in the positive direction. For this, the input INT_HPOS must be set to TRUE. In a cascade control, INT_HPOS of the primary controller is connected to QLMN_HLM of the secondary controller.
The output of the integral action can be held in the negative direction. For this, the input INT_HNEG must be set to TRUE. In a cascade control, INT_HNEG of the primary controller is connected to QLMN_LLM of the secondary controller.
If the pulse shaper is on, there are several ways of calling the PID algorithm and pulse shaper:
· SELECT = 0: The controller is called in a fast cyclic interrupt priority class and the PID algorithm and pulse shaper are processed.
· SELECT = 1: The controller is called in OB1 and only the PID algorithm is processed.
· SELECT = 2: The controller is called in a fast cyclic interrupt priority class and only the pulse shaper is processed.
· SELECT = 3: The controller is called a slow cyclic interrupt priority class and only the PID algorithm is processed.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

504

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.4.6

Output parameters TCONT_CP

Table 9- 20 Output parameters TCONT_CP

Parameter PV

Address
14.0

LMN

18.0

LMN_PER 22.0

QPULSE 24.0 QLMN_HLM 24.1

QLMN_LLM 24.2

QC_ACT 24.3

Data type REAL
REAL
INT
BOOL BOOL
BOOL
BOOL

Default Description

0.0

The effective process value is output at the "Process value" output.

The valid values depend on the sensors used.

0.0

The effective "Manipulated value" is output in floating point format at the "Ma-

nipulated value" output.

0

The manipulated value in I/O format is interconnected with the controller on the

output "Manipulated value I/O".

FALSE The manipulated value is pulse-width-modulated at the QPULSE output.

FALSE The manipulated value is always restricted to a high limit and low limit. The output QLMN_HLM signals that the high limit has been reached.

FALSE The manipulated value is always restricted to a high limit and low limit. The output QLMN_LLM signals that the low limit has been reached.

TRUE This parameter indicates whether continuous control component will be processed the next time the block is called (relevant only when SELECT has the value 0 or 1).

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502) Parameter STATUS_H (Page 512) Parameters STATUS_D (Page 513)

PID control Function Manual, 10/2018, A5E35300227-AD

505

Instructions 9.4 PID basic functions

9.4.4.7

In/out parameters TCONT_CP

Table 9- 21 In/out parameters TCONT_CP

Parameters CYCLE

Address
26.0

CYCLE_P 30.0

SP_INT

34.0

MAN

38.0

COM_RST 42.0

MAN_ON 42.1

Data type REAL
REAL
REAL REAL BOOL BOOL

Default Description

0.1 s Sets the sampling time for the PID algorithm. In phase 1, the tuner calculates the sampling time and enters it in CYCLE.

CYCLE > 0.001 s

0.02 s At this input, you set the sampling time for the pulse shaper action. In phase 1, the TCONT_CP instruction calculates the sampling time and enters it in CYCLE_P.

CYCLE_P > 0.001 s

0.0

The input "Internal setpoint" is used to specify a setpoint.

The valid values depend on the sensors used.

0.0

The "Manual value" input is used to set a manual value. In automatic mode, it

tracks the manipulated value.

FALSE The block has an initialization routine that is processed when the COM_RST input is set.

TRUE If the input "Enable manual mode" is set then the control loop is interrupted. The manual value MAN is set as manipulated value.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

506

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.4.8

Static variables TCONT_CP

Table 9- 22 Static variables TCONT_CP

Parameters Address Data type Default

DEADB_W 44.0

REAL

0.0

I_ITLVAL 48.0

REAL

0.0

LMN_HLM 52.0

REAL

100.0

LMN_LLM 56.0

REAL

0.0

PV_FAC 60.0 PV_OFFS 64.0 LMN_FAC 68.0 LMN_OFFS 72.0 PER_TM 76.0

REAL REAL REAL REAL REAL

1.0 0.0 1.0 0.0 1.0 s

P_B_TM

80.0

TUN_DLMN 84.0

REAL REAL

0.02 s 20.0

Description
A deadband is applied to the control deviation. The "Deadband width" input determines the size of the deadband.
The valid values depend on the sensors used.
The output of the integrator can be set at the I_ITL_ON input. The initialization value is applied to the "Initialization value of the I-action" input. During a restart COM_RST = TRUE, the I-action is set to the initialization value.
Values from -100 to 100 % are permitted.
The output value is always restricted to a high limit and low limit. The "Manipulated value high limit" input specifies the high limit.
LMN_HLM > LMN_LLM
The output value is always restricted to a high limit and low limit. The "Manipulated value low limit" input specifies the low limit.
LMN_LLM < LMN_HLM
The "Process value factor" input is multiplied by the "Process value I/O". The input is used to scale the process value range.
The "Process value offset" input is added to the "Process value I/O". The input is used to scale the process value range.
The "Output value factor" input is multiplied with the output value. The input is used to scale the output value range.
The "Output value offset" input is added to the output value. The input is used to scale the output value range.
The period duration of the pulse width modulation is entered at the PER_TM parameter. The relationship of the period duration to the sampling time of the pulse shaper determines the accuracy of the pulse width modulation.
PER_TM  CYCLE
You can assign a minimum pulse or break time at the parameter "Minimum pulse/break time". P_B_TM is internally limited to > CYCLE_P.
Process excitation for controller tuning results from a output value step change at TUN_DLMN.
Values from -100 to 100 % are permitted.

PID control Function Manual, 10/2018, A5E35300227-AD

507

Instructions 9.4 PID basic functions

Parameters Address Data type Default

PER_MODE 88.0

INT

0

PVPER_ON 90.0

BOOL

FALSE

I_ITL_ON 90.1

PULSE_ON 90.2 TUN_KEEP 90.3

ER

92.0

BOOL
BOOL BOOL
REAL

LMN_P LMN_I LMN_D PHASE

96.0 100.0 104.0 108.0

REAL REAL REAL INT

FALSE FALSE FALSE 0.0
0.0 0.0 0.0 0

STATUS_H 110.0 INT

0

STATUS_D 112.0 INT

0

Description You can use this switch to enter the type of I/O module. The process value at input PV_PER is then scaled as follows at the PV output.
· PER_MODE = 0: Thermoelements; PT100/NI100; standard
PV_PER * 0.1
Unit: °C, °F · PER_MODE = 1: PT100/NI100; climate
PV_PER * 0.01
Unit: °C, °F · PER_MODE = 2: Current/voltage
PV_PER * 100/27648
Unit: % If the process value is to be read in from the I/Os, the PV_PER input must be interconnected with the I/Os and the "Enable process value I/Os" input must be set. The output of the integrator can be set at the I_ITLVAL input. The "Set Iaction" input must be set for this. If PULSE_ON = TRUE is set, the pulse shaper is activated. The mode changes to automatic only when TUN_KEEP changes to FALSE. The effective control deviation is output at the "Control deviation" output. The valid values depend on the sensors used. The "P-action" output contains the proportional action of the manipulated tag. The "integral action" output contains the integral action of the manipulated tag. The "D-action" output contains the derivative action of the manipulated tag. The current phase of controller tuning is indicated at the PHASE output.
· PHASE = 0: No tuning mode; automatic or manual mode · PHASE = 1: Ready to start tuning; check parameters, wait for excita-
tion, measure the sampling times · PHASE = 2: Actual tuning: Searching for point of inflection with con-
stant output value. Entering the sampling time in instance DB. · PHASE = 3: Calculating process parameters. Saving valid controller
parameters prior to tuning. · PHASE = 4: Controller design · PHASE = 5: Following up the controller to the new manipulated tag · PHASE = 7: Validating the process type
STATUS_H indicates the diagnostic value via the search for the point of inflection during the heating process. STATUS_D indicates the diagnostic value via the controller design during the heating process.

508

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

Parameters Address Data type Default

QTUN_RUN 114.0 BOOL

0

PI_CON GAIN

116.0 +0.0

STRUCT

REAL

0.0

TI PID_CON GAIN TI TD PAR_SAVE PFAC_SP

+4.0 124.0
+0.0 +4.0 +8.0 136.0 +0.0

REAL STRUCT REAL REAL REAL STRUCT REAL

0.0 s
0.0 0.0s 0.0s
1.0

GAIN

+4.0 REAL

0.0

TI

+8.0 REAL

40.0 s

TD

+12.0 REAL

10.0 s

D_F

+16.0 REAL

5.0

CON_ZONE +20.0 REAL

100.0

CONZ_ON +24.0 BOOL PFAC_SP 162.0 REAL

FALSE 1.0

GAIN
TI TD D_F

166.0 REAL

2.0

170.0 174.0 178.0

REAL REAL REAL

40.0 s 10.0 s 5.0

Description The tuning manipulated tag has been applied, tuning has started and is still in phase 2 (searching for point of inflection). PI controller parameters PI controller gain %/phys. unit PI integration time [s] PID controller parameters PID controller gain PID integration time [s] PID derivative action time [s] The PID parameters are saved in this structure. Proportional factor for setpoint changes Values from 0.0 to 1.0 are permitted. Controller gain %/phys. unit Integration time [s] Derivative action time (s) Derivative factor Values from 5.0 to 10.0 are permitted. Control zone band If the control deviation is greater than the control zone band, the high output value limit is output as output value. If the control deviation is less than the negative control zone band, the low output value limit is output as the output value. CON_ZONE  0.0 Enable control zone PFAC_SP specifies the effective P-action when there is a setpoint change. This is set between 0 and 1.
· 1: P-action has full effect if the setpoint changes.
· 0: P-action has no effect if the setpoint changes. Values from 0.0 to 1.0 are permitted. The "Proportional gain" input specifies controller amplification. The direction of control can be reversed by giving GAIN a negative sign. %/phys. unit The "Integration time" (integral-action time) input defines the integrator's time response. The "Derivative-action time" (rate time) input decides the time response of the differentiator. The derivative factor decides the lag of the D-action. D_F = derivative-action time/"Lag of the D-action" Values from 5.0 to 10.0 are permitted.

PID control Function Manual, 10/2018, A5E35300227-AD

509

Instructions 9.4 PID basic functions

Parameters Address Data type Default

CON_ZONE 182.0 REAL

100.0

CONZ_ON 186.0 TUN_ON 186.1

BOOL BOOL

FALSE FALSE

TUN_ST

186.2 BOOL

FALSE

UNDO_PAR 186.3 BOOL

FALSE

SAVE_PAR 186.4

LOAD_PID 186.5

PID_ON

186.6

BOOL BOOL BOOL

FALSE FALSE TRUE

GAIN_P

188.0 REAL

0.0

TU

192.0 REAL

0.0

TA

196.0 REAL

0.0

KIG

200.0 REAL

0.0

N_PTN

204.0 REAL

0.0

TM_LAG_P 208.0 REAL

0.0

T_P_INF 212.0 REAL

0.0

P_INF

216.0 REAL

0.0

LMN0

220.0 REAL

0.0

PV0

224.0 REAL

0.0

Description If the control deviation is greater than the control zone band, the high output value limit is output as output value. If the control deviation is less than the negative control zone band, the low output value limit is output as the output value. The valid values depend on the sensors used.
You can use CONZ_ON =TRUE to enable the control zone.
If TUN_ON=TRUE, the output value is averaged until the output value excitation TUN_DLMN is enabled either by a setpoint step-change or by TUN_ST=TRUE.
If the setpoint is to remain constant during controller tuning at the operating point, a output value step-change by the amount of TUN_DLMN is activated by TUN_ST=1.
Loads the controller parametersPFAC_SP, GAIN, TI, TD, D_FCONZ_ON and CON_ZONE from the data structure PAR_SAVE (only in manual mode).
Saves the controller parameters PFAC_SP, GAIN, TI, TD, D_F, CONZ_ON and CON_ZONE in the data structure PAR_SAVE.
Loads the controller parametersGAIN, TI,TD depending on PID_ON from the data structure PI_CON or PID_CON (only in manual mode)
At the PID_ON input, you can specify whether or not the tuned controller will operate as a PI or PID controller.
· PID controller: PID_ON = TRUE
· PI controller: PID_ON = FALSE With certain process types it is nevertheless possible that only a PI controller will be designed despite PID_ON = TRUE.
Identified process gain. In the case of process type I, GAIN_P tends to be estimated too low.
Identified time lag of the process. TU  3*CYCLE
Identified recovery time of the process. In the case of process type I, TA tends to be estimated too low.
Maximum process value rise at manipulated tag excitation from 0 to 100 % [1/s] GAIN_P = 0.01 * KIG * TA
The parameter specifies the order of the process. "Non-integer values" are also possible. Values from 1.01 to 10.0 are permitted.
Time constants of a PTN model (practical values only for N_PTN >= 2).
Time from process excitation until the point of inflection.
Process value change from process excitation until the point of inflection. The valid values depend on the sensors used.
Output value at the start of tuning Detected in phase 1 (mean value). Values from 0 to 100 % are permitted.
Process value at the start of tuning

510

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

Parameters Address Data type Default

PVDT0

228.0 REAL

0.0

PVDT

232.0 REAL

0.0

PVDT_MAX 236.0 REAL

0.0

NOI_PVDT 240.0 REAL

0.0

NOISE_PV 244.0 REAL

0.0

FIL_CYC 248.0 INT

1

POI_CMAX 250.0 INT

2

POI_CYCL 252.0 INT

0

Description Process value slew rate at start of tuning [1/s] Sign adapted. Current process value slew rate [1/s] Sign adapted. Max. change in the process value per second [1/s] Maximum derivative of the process value at the point of inflection (sign adapted, always > 0); is used to calculate TU and KIG. Noise action in PVDT_MAX in % The higher the noise action, the less accurate (less aggressive) the control parameters. Absolute noise in process value Difference between maximum and minimum process value in phase 1. Number of cycles of the mean value filter The process value is determined through FIL_CYC cycles. FIL_CYC is increased from 1 to a max. of 1024 if needed. Maximum number of cycles after point of inflection This time is used to find another (i.e. better) inflection point for measuring noise. The tuning is completed only after this time. Number of cycles after inflection point

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

PID control Function Manual, 10/2018, A5E35300227-AD

511

Instructions 9.4 PID basic functions

9.4.4.9

Parameter STATUS_H

STATUS_H 0 10000 2xxxx 2xx2x
2x1xx
2x3xx 21xxx 22xxx 3xxxx 30002 30005

Description

Remedy

Default, or no/no new controller parameters

Tuning completed + suitable controller parameters found

Tuning completed + controller parameters uncertain

Point of inflection not reached (only if excited via setpoint step-change)

If the controller oscillates, weaken the controller parameters, or repeat the test with a smaller manipulated value difference TUN_DLMN.

Estimation error (TU < 3*CYCLE)

Reduce CYCLE and repeat attempt. Special case for PT1-only process: Do not repeat test, if necessary reduce controller parameters.

Estimation error TU too high

Repeat test under better conditions.

Estimation error N_PTN < 1

Repeat test under better conditions.

Estimation error N_PTN > 10

Repeat test under better conditions.

Tuning canceled in phase 1 owing to faulty parameter assignment:

Effective manipulated value differen- Correct manipulated value differential

tial < 5%

TUN_DLMN.

The sampling times CYCLE and

Compare CYCLE and CYCLE_P with the cycle

CYCLE_P differ by more than 5% of time of the cyclic interrupt priority class and

the measured values.

note any loop scheduler.

Check CPU load. An excessively loaded CPU can result in prolonged sampling times that are inconsistent with CYCLE or CYCLE_P.

Note
If you cancel tuning in phase 1 or 2, STATUS_H = 0 is set. However, STATUS_D still displays the status of the last controller calculation.
The higher the value of STATUS_D, the higher the order of the control process, the greater the TU/TA ratio and the gentler the controller parameters will be.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

512

PID control Function Manual, 10/2018, A5E35300227-AD

9.4.4.10

Parameters STATUS_D

Instructions 9.4 PID basic functions

STATUS_D 0 110 121 200 310 320 111, 122, 201, 311, 321

Description No controller parameters were calculated. N_PTN <= 1.5 Process type I fast N_PTN > 1.5 Process type I N_PTN > 1.9 Process type II (transition range) N_PTN >= 2.1 Process type III fast N_PTN > 2.6 Process type III Parameters have been corrected from phase 7.

Note
The higher the value of STATUS_D, the higher the order of the control process, the greater the TU/TA ratio and the gentler the controller parameters will be.

See also

Operating principle of the pulse generator (Page 499) Block diagram TCONT_CP (Page 502)

PID control Function Manual, 10/2018, A5E35300227-AD

513

Instructions 9.4 PID basic functions

9.4.5

TCONT_S

9.4.5.1

Description TCONT_S
The TCONT_S instruction is used on SIMATIC S7 automation systems to control technical temperature processes with binary manipulated value output signals for actuators with integrating behavior. The functionality is based on the PI control algorithm of the sampling controller. The step controller operates without a position feedback signal.

Application

You can also use the controller in a cascade control as a secondary position controller. You specify the actuator position via the setpoint input SP_INT. In this case, you must set the process value input and the parameter TI (integration time) to zero. An application might be, for example, temperature control with heating power control using pulse-break activation and cooling control using a butterfly valve. To close the valve completely, the manipulated variable (ER*GAIN) should be negative.

Call
The instruction TCONT_S must be called equidistant. To achieve this, use a cyclic interrupt priority class (for example, OB35 for an S7-300). The sampling time is specified at the CYCLE parameter.
If you call the instruction TCONT_S as a multiple instance DB, no technology object is created. No parameter assignment interface or commissioning interface is available. You must assign parameters for TCONT_S directly in the multiple instance DB and commission it via a watch table.

CYCLE sampling time
The CYCLE sampling time match the time difference between two calls (cycle time of the cyclic interrupt OB taking into account the reduction ratios).
The controller sampling time should not exceed 10% of the calculated integration time of the controller (TI). Generally, you must set the sampling time to a much lower value to achieve the required accuracy of the step controller.

Required accuracy G MTR_TM

0.5 %

10 s

CYCLE = MTR_TM*G 0.05 s

Comment
The sampling time is determined by the required accuracy of the step controller.

Start-up

The TCONT_S instruction has an initialization routine that is run through when input parameter COM_RST = TRUE is set. Following execution of the initialization routine, the block sets COM_RST back to FALSE. All outputs are set to their initial values. If you require initialization when the CPU restarts, call the block in OB100 with COM_RST = TRUE.

See also

Block diagram TCONT_S (Page 519)

514

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.5.2

Mode of operation TCONT_S

Setpoint branch
The setpoint is entered at input SP_INT in floating-point format as a physical value or percentage. The setpoint and process value used to form the control deviation must have the same unit.

Process value options (PVPER_ON)
Depending on PVPER_ON, the process value can be read in, in the I/O or floating-point format.

PVPER_ON TRUE FALSE

Process Value Input The process value is read in via the analog I/Os (PIW xxx) at input PV_PER. The process value is acquired in floating-point format at input PV_IN.

Process value format conversion CRP_IN (PER_MODE)
The CRP_IN function converts the I/O value PV_PER to floating-point format depending on the PER_MODE switch according to the following rules:

PER_MODE 0
1 2

Output of CRP_IN PV_PER * 0.1
PV_PER * 0.01 PV_PER * 100/27648

Analog Input Type Thermoelements; PT100/NI100; standard
PT100/NI100; climate;
Voltage/current

Unit °C;°F
°C;°F %

Process value scaling PV_NORM (PF_FAC, PV_OFFS) The PV_NORM function calculates the output of CRP_IN according to the following rule:
"Output of PV_NORM" = "Output of CRP_IN)" * PV_FAC + PV_OFFS
It can be used for the following purposes:
 Process value adjustment with PV_FAC as process value factor and PV_OFFS as process value offset.
 Normalization of temperature to percentage
You want to enter the setpoint as a percentage and must now convert the measured temperature value to a percentage.
 Normalization of percentage to temperature
You want to enter the setpoint in the physical temperature unit and must now convert the measured voltage/current value to a temperature.

PID control Function Manual, 10/2018, A5E35300227-AD

515

Instructions 9.4 PID basic functions
Calculation of the parameters:  PV_FAC = range of PV_NORM/range of CRP_IN;  PV_OFFS = LL (PV_NORM) - PV_FAC * LL(CRP_IN);
where LL: low limit The normalization is switched off with the default values (PV_FAC = 1.0 and PV_OFFS = 0.0). The effective process value is output at the PV output.
Example of Process Value Normalization If you want to enter the setpoint as a percentage, and you have a temperature range of -20 to 85 °C applied to , CRP_IN you must normalize the temperature range as a percentage. The following diagram shows an example of adapting the temperature range -20 to 85 °C to an internal scale of 0 to 100 %:

Forming the control deviation
The difference between the setpoint and process value is the control deviation before the dead band.
The setpoint and process value must exist in the same unit.

516

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions
Dead band (DEADB_W) To suppress a minor sustained oscillation due to the manipulated variable quantization (for example, in pulse width modulation with PULSEGEN) a dead band is applied to the (DEADBAND) control deviation. With DEADB_W = 0.0, the dead band is switched off.

PI step controller algorithm The instruction TCONT_S operates without position feedback. The I-action of the PI algorithm and the assumed position feedback signal are calculated in an integrator (INT) and compared as a feedback value with the remaining P-action. The difference is applied to a three-step element (THREE_ST) and a pulse shaper (PULSEOUT) that generates the pulses for the control valve. Adapting the response threshold of the three-step element reduces the switching frequency of the controller.
Weakening of the P-action when setpoint changes occur To prevent overshoot, you can weaken the P-action using the "Proportional factor for setpoint changes" parameter (PFAC_SP). Using PFAC_SP, you can now select continuously between 0.0 and 1.0 to decide the effect of the P-action when the setpoint changes:  PFAC_SP = 1.0: Proportional action for setpoint change is fully effective  PFAC_SP = 0.0: Proportional action has no effect in the setpoint change As in the case of the continuous controller, a value of PFAC_SP < 1.0 can reduce the overshoot if the motor run time MTR_TM is small compared with the recovery time TA and the ratio is TU/TA < 0.2. If MTR_TM reaches 20% of TA, only a slight improvement can still be achieved.
Feedforward control A disturbance variable can be added at the DISV input.

PID control Function Manual, 10/2018, A5E35300227-AD

517

Instructions 9.4 PID basic functions

Manual value processing (LMNS_ON, LMNUP, LMNDN)
With LMNS_ON, you can change between manual and automatic mode. In manual mode, the actuator is halted and the integral action (INT) is set to 0 internally. Using LMNUP and LMNDN, the actuator can be adjusted to OPEN and CLOSED. Switching over to automatic mode therefore involves a bump. As a result of the GAIN, the existing control deviation leads to a step change in the internal manipulated variable. The integral component of the actuator, however, results in a ramp-shaped excitation of the process.

See also

Block diagram TCONT_S (Page 519)

518

PID control Function Manual, 10/2018, A5E35300227-AD

9.4.5.3

Block diagram TCONT_S

Instructions 9.4 PID basic functions

Parameter configuration interface Instruction call interface Parameter configuration interface, call interface

See also

Description TCONT_S (Page 514) Mode of operation TCONT_S (Page 515) Input paramters TCONT_S (Page 520) Output parameters TCONT_S (Page 521) In/out parameters TCONT_S (Page 521) Static variables TCONT_S (Page 522)

PID control Function Manual, 10/2018, A5E35300227-AD

519

Instructions 9.4 PID basic functions

9.4.5.4

Input paramters TCONT_S

Table 9- 23 Input paramters TCONT_S

Parameters
CYCLE

Address
0.0

SP_INT 4.0

PV_IN

8.0

PV_PER 12.0

DISV

14.0

LMNR_HS 18.0

LMNR_LS 18.1

LMNS

18.2

_ON

LMNUP 18.3

LMNDN 18.4

Data type
REAL

Default 0.1 s

REAL 0.0

REAL 0.0

INT 0 REAL 0.0 BOOL FALSE
BOOL FALSE

BOOL TRUE BOOL FALSE
BOOL FALSE

Description
At this input, you enter the sampling time for the controller. CYCLE  0.001 The input "Internal setpoint" is used to specify a setpoint. The valid values depend on the sensors used. At the "Process variable input" you can assign parameters to a commissioning value or you can interconnect an external process value in floating-point format. The valid values depend on the sensors used. The process value in I/O format is interconnected with the controller at the "Process value I/O" input. For feedforward control, the disturbance variable is interconnected to the "Disturbance variable" input. The signal "Control valve at high endstop" is interconnected on the input "High endstop signal of position feedback".
· LMNR_HS=TRUE: The control valve is at high endstop.
The signal "Control valve at low endstop" is interconnected on the input "Low endstop signal of position feedback".
· LMNR_LS=TRUE: The control valve is at low endstop.
Manipulated value signal processing is switched to manual mode at the "Enable manual mode of manipulated signal". In manual mode of manipulated signals, the output parameter QLMNUP is operated at the input parameter "Manipulated signal up". In manual mode of the manipulated signals, the output parameter QLMNDN is operated at the input parameter "Manipulated signal down".

See also

Block diagram TCONT_S (Page 519)

520

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.5.5

Output parameters TCONT_S

Table 9- 24 Output parameters TCONT_S

Parame- Address ters
QLMNUP 20.0

Data type
BOOL

Default FALSE

QLMNDN 20.1

BOOL FALSE

PV

22.0

REAL 0.0

ER

26.0

REAL 0.0

Description
If the output "Manipulated value signal up" is set then the control valve should be open. If the output "Manipulated value signal down" is set then the control valve should be closed. The effective process value is output at the "Process value" output. The effective system deviation is output at the "Error signal" output.

See also

Block diagram TCONT_S (Page 519)

9.4.5.6

In/out parameters TCONT_S

Table 9- 25 In/out parameters TCONT_S

Parameters
COM _RST

Address 30.0

Data type
BOOL

Default FALSE

Description
The block has an initialization routine that is processed when the COM_RST input is set.

See also

Block diagram TCONT_S (Page 519)

PID control Function Manual, 10/2018, A5E35300227-AD

521

Instructions 9.4 PID basic functions

9.4.5.7

Static variables TCONT_S

Table 9- 26 Static variables TCONT_S

Parameters PV_FAC

Address 32.0

PV_OFFS 36.0

DEADB_W 40.0

PFAC_SP 44.4

GAIN

48.0

TI

52.0

MTR_TM 56.0

PULSE_TM 60.0
BREAK_TM 64.0 PER_MODE 68.0

PVPER_ON 70.0

Data type REAL REAL REAL REAL
REAL REAL REAL REAL REAL INT
BOOL

Default 1.0 0.0 0.0 1.0
2.0 40.0 s 30 s 0.0 s 0.0 s 0
FALSE

Description
The "Process value factor" input is multiplied by the process value. The input is used to scale the process value range. The input "Process value offset" is added to the process value. The input is used to scale the process value range. The valid values depend on the sensors used. A deadband is applied to the control deviation. The "Deadband width" input determines the size of the deadband. DEADB_W  0.0 PFAC_SP specifies the effective P-action when there is a setpoint change.
· 1: P-action has full effect if the setpoint changes. · 0: P-action has no effect if the setpoint changes. Values from 0.0 to 1.0 are permitted. The "Proportional gain" input specifies controller amplification. The direction of control can be reversed by giving GAIN a negative sign. %/phys. unit The "Integration time" (integral-action time) input defines the integrator's time response. The runtime from endstop to endstop of the control valve is entered at the "Motor actuating time" parameter. MTR_TM  CYCLE A minimum pulse time can be configured at the "Minimum pulse time" parameter. You can assign a minimum break time at the parameter "Minimum break time". You can use this switch to enter the type of I/O module. The process value at input PV_PER is then scaled as follows at the PV output.
· PER_MODE = 0: Thermoelements; PT100/NI100; standard
PV_PER * 0.1
Unit: °C, °F · PER_MODE = 1: PT100/NI100; climate
PV_PER * 0.01
Unit: °C, °F · PER_MODE = 2: Current/voltage
PV_PER * 100/27648
Unit: % If the process value is to be read in from the I/Os, the PV_PER input must be interconnected with the I/Os and the "Enable process value I/Os" input must be set.

See also

Block diagram TCONT_S (Page 519)

522

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.4 PID basic functions

9.4.6

Integrated system functions

9.4.6.1

CONT_C_SF

CONT_C_SF

The instruction CONT_C_SF is integrated in the S7-300 compact CPUs. The instruction must not be transmitted to the S7-300 CPU during loading. The scope of function corresponds with the instruction CONT_C.

See also

Description CONT_C (Page 466) How CONT_C works (Page 467) CONT_C block diagram (Page 469) Input parameter CONT_C (Page 470) Output parameters CONT_C (Page 472)

9.4.6.2

CONT_S_SF

CONT_S_SF

The instruction CONT_S_SF is integrated in the S7-300 compact CPUs. The instruction must not be transmitted to the S7-300 CPU during loading. The scope of function corresponds with the instruction CONT_S.

See also

Description CONT_S (Page 473) Mode of operation CONT_S (Page 474) Block diagram CONT_S (Page 475) Input parameters CONT_S (Page 476) Output parameters CONT_S (Page 477)

PID control Function Manual, 10/2018, A5E35300227-AD

523

Instructions 9.4 PID basic functions

9.4.6.3

PULSEGEN_SF

PULSEGEN_SF
The instruction PULSEGEN_SF is integrated in the S7-300 compact CPUs. The instruction must not be transmitted to the S7-300 CPU during loading. The scope of function corresponds with the instruction PULSEGEN.

See also

Description PULSEGEN (Page 478) Mode of operation PULSEGEN (Page 479) Mode of operation PULSEGEN (Page 482) Three-step control (Page 483) Two-step control (Page 486) Input parameters PULSEGEN (Page 487) Output parameter PULSEGEN (Page 488)

524

PID control Function Manual, 10/2018, A5E35300227-AD

9.5

Polyline

Instructions 9.5 Polyline

9.5.1

Compatibility with CPU and FW
The following table shows which version of Polyline can be used on which CPU:

CPU S7-1200 S7-1500

FW V4.2 or higher V2.0 or higher

Polyline V1.0 V1.0

9.5.2

Description Polyline

Description

The Polyline instruction maps input value Input onto output value Output using a characteristic curve. The characteristic curve is defined as a polyline with maximum 50 points. Linear interpolation is performed between the points. You can fit the polyline to the desired characteristic curve using the number and configuration of the points.
The Polyline instruction can be used, for example, to linearize non-linear characteristics of sensor or actuators.

Interpolation calculation
Polyline calculates the output value at the Output parameter for the input value at the Input parameter that lies between point values xi and xi+1 with a linear interpolation. The linear interpolation is calculated according to the following formula:

With parameter Reset = TRUE, an alternative output value can also be specified using the SubstituteOutput parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

525

Instructions 9.5 Polyline

Polyline data

The value pairs for the polyline are contained in the Static area of the instruction.
Note · The minimum number of value pairs to be configured is 2. · The maximum number of value pairs to be configured is 50. · For a valid configuration, the x values must be specified in ascending order.

To allow the polyline data to be changed without the changes taking effect immediately, the value pairs of the polyline are duplicated and contained in the following structures:
 UserData
The polyline data in this structure can be edited.
Make use of this structure to specify or change the polyline data. Changes in this structure do not affect the interpolation calculation until the check and duplication of the data to the WorkingData structure is initiated. This happens by setting Validate = TRUE or automatically during the first processing of Polyline after the change of operating state of the CPU from STOP to RUN.
The preassignment of values in this structure does not represent a valid configuration. To use the values for the interpolation calculation, change the tags to valid values.
 WorkingData
The polyline data in this structure cannot be edited. This data is used for the interpolation calculation. Do not manually change the data in this structure.
Both structures have the same data type and thus the same content:
 NumberOfUsedPoints
Number of points used for the interpolation calculation.
 Point
The array with 50 elements contains value pairs of points Point[i].x and Point[i].y with index "i" from 1 to 50.

526

PID control Function Manual, 10/2018, A5E35300227-AD

The following figure shows a polyline with four points.

Instructions 9.5 Polyline

Call Startup

Polyline is called as a single-instance DB in an OB. In an FB, Polyline can be called as both a single-instance DB and a multi-instance DB and as a parameter-instance DB.
When the instruction is called, no technology object is created. No parameter assignment interface or commissioning interface is available. You assign the Polyline parameters directly in the instance DB and commission Polyline using a watch table of the user program in the CPU or HMI.
The tags in the UserData and WorkingData structures are not retentive. These tags are initialized with the start values after each change of operating state of the CPU from STOP to RUN.
If you change the actual values in the UserData structure in online mode and these values are to be retained after the change of operating state of the CPU from STOP to RUN, back up these values in the start values of the data block.
At the first call of the Polyline instruction after the change of operating state of the CPU from STOP to RUN, the data in the UserData structure is automatically checked for validity. If the check is successful, the data is transferred to the WorkingData structure.

PID control Function Manual, 10/2018, A5E35300227-AD

527

Instructions 9.5 Polyline
Reaction to error
The Polyline instruction detects different errors that may occur during interpolation calculation. The result of the interpolation calculation can be output at the output despite a pending error. If an error prevents correct calculation of the interpolation result, a substitute output value is output at the output.
You specify the substitute output value that is output if an error occurs that prevents correct calculation of the interpolation result as follows at the ErrorMode tag:
 If the ErrorMode tag is set to 0, Polyline outputs the input value at the Input parameter.
 If the ErrorMode tag is set to 1, Polyline outputs the substitute output value. You assign the substitute output value at the SubstituteOutput parameter.
 If the ErrorMode tag is set to 2, Polyline outputs the last valid output value at the Output parameter.
The Error parameter indicates if an error is pending. When the error is no longer pending, Error is set to FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is retentive and is reset only by a positive edge at the Reset or ErrorAck parameter.

528

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.5 Polyline

9.5.3

Operating principle Polyline

Polyline data

To change the polyline, you edit the values in the UserData structure. The values are then checked for validity and transferred to the WorkingData structure. Only in the WorkingData structure are the values used for the interpolation calculation.
The values are checked and transferred when
 You set the Validate parameter to TRUE while the Reset parameter is set to FALSE.
 Polyline is called for the first time after the change of operating state of the CPU from STOP to RUN while the Reset parameter is set to FALSE.
If Polyline has already been called, for example in OB100, another automatic check of the values is not performed at the subsequent calls.
If the polyline data in the UserData structure is invalid, the previous polyline data in the WorkingData structure remains unchanged and a corresponding error message is output. If the check was performed for the first time, no valid values are available in the WorkingData structure and a corresponding error message is output. In this case, the Output parameter is specified with the substitute output value that you configure with the ErrorMode tag.
The check and transfer of the values from the UserData structure requires more CPU processing time than the interpolation calculation. In time-critical applications, the first execution of Polyline can be in startup OB 100. In this way, the time-consuming one-time check and transfer of the polyline data can be completed before the cyclic application program sections.

Validity of the polyline data
When the values in the UserData structure are checked, they must meet the following conditions so that a valid polyline is available for the interpolation calculation:
 2  UserData.NumberOfUsedPoints  50
 UserData.Point[j].x < UserData.Point[j+1].x with index j = 1..(UserData.NumberOfUsedPoints ­ 1)
 -3.402823e+38  UserData.Point[i].x  3.402823e+38 with index i = 1..UserData.NumberOfUsedPoints
 -3.402823e+38  UserData.Point[i].y  3.402823e+38 with index i = 1..UserData.NumberOfUsedPoints
 UserData.Point[i].x and UserData.Point[i].y are valid REAL values ( NaN) with index i = 1..UserData.NumberOfUsedPoints
If one or more conditions are not met during the check, the values in the UserData structure are not transferred to the WorkingData structure. A corresponding error message is output at the ErrorBits (Page 536) parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

529

Instructions 9.5 Polyline

The preassignment of values in the UserData structure does not represent a valid configuration. Change the tags to valid values so that the tags can be used for the interpolation calculation.
Note
If more than the maximum number of 50 points are needed for your application, use two or more instances of Polyline.

530

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.5 Polyline
Calculating the output value If the input value at the Input parameter is below the first x-value or above the last x-value of the utilized points, configure the preassignment of the Output parameter with the following settings at the OutOfRangeMode tag:  OutOfRangeMode = 0 The output value is extrapolated with the slope of the first or last two points.

If the OutOfRangeMode tag lies outside the permissible value range of 0 to 1, the default preassignment 0 becomes effective.
 OutOfRangeMode = 1
The output value is limited to the y-value of the first or last point.

The Output parameter has a permissible value range of a REAL data type of -3.402823e+38 to 3.402823e+38. The output value at the Output parameter is checked for validity each time the Polyline instruction is executed. If the interpolation calculation yields an invalid REAL value, the output value is replaced with the setting at the ErrorMode tag.

PID control Function Manual, 10/2018, A5E35300227-AD

531

Instructions 9.5 Polyline
Enable behavior EN/ENO If one of the following conditions is met, enable output ENO is set to FALSE.  Enable input EN is set to TRUE and the Output parameter is specified by a substitute output value in case of error messages ErrorBits  16#0001_0000.  Enable input EN is set to FALSE. If enable input EN is set to TRUE and the Output parameter can be determined as follows, enable output ENO is set to TRUE:  With valid interpolation calculation when Reset = FALSE. or  With valid SubstituteOutput parameter when Reset = TRUE.
Currently utilized points
The NextXIndex index outputs the index of the next higher x-value for the current input value. You can use this to determine the points that are being used for the current interpolation calculation. WorkingData.Point[NextXIndex-1].x < Input  WorkingData.Point[NextXIndex].x Example:  If the value of the Input parameter is between WorkingData.Point[3].x and
WorkingData.Point[4].x, the NextXIndex tag has the value 4.  If the value of the Input parameter is less than WorkingData.Point[1].x, the NextXIndex
tag has the value 1.  If the value of the Input parameter is greater than
WorkingData.Point[WorkingData.NumberOfUsedPoints].x and is thus greater than the last x-value of the polyline, the NextXIndex tag has the value of the WorkingData.NumberOfUsedPoints + 1 tag. Consequently, maximum permissible value of the NextXIndex tag is 51.

532

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.5 Polyline

9.5.4

Input parameters of Polyline

Parameter Input
SubstituteOutput

Data type REAL REAL

Default 0.0 0.0

Validate ErrorAck

BOOL BOOL

FALSE FALSE

Reset

BOOL

FALSE

Description Input value SubstituteOutput is used as the substitute output value when · Reset = TRUE or · An error with error message ErrorBits  16#0001_0000 prevents correct
calculation of the interpolation result, and the configured value of ErrorMode is 1 .
If Validate is set to TRUE, the polyline data in UserData is checked for validity and transferred to WorkingData. Deletes the error messages · Edge FALSE -> TRUE
ErrorBits is reset Performs a restart of the instruction · Edge FALSE -> TRUE
ErrorBits is reset. · As long as Reset is set to TRUE, the substitute output value Substitute-
Output is output at the output. · As long as Reset is set to FALSE, the interpolation calculation is per-
formed.

9.5.5

Output parameters of Polyline

Parameter Output Error ErrorBits

Data type REAL BOOL DWORD

Default 0.0 FALSE DW#16#0

Description Output value
When Error is set to TRUE, at least one error is currently pending.
The ErrorBits parameter (Page 536) shows which error messages are pending. ErrorBits is retentive and is reset at a positive edge at Reset or ErrorAck .

PID control Function Manual, 10/2018, A5E35300227-AD

533

Instructions 9.5 Polyline

9.5.6

Static tags of Polyline

Tag UserData

Data type
AuxFct _PointTable

Default -

UserData.NumberOfUsedPoints INT

0

UserData.Point

Array[1..50] of AuxFct_Point

UserData.Point[i]
UserData.Point[i].x
UserData.Point[i].y WorkingData

AuxFct_Point -

REAL

0.0

REAL

0.0

AuxFct

-

_PointTable

WorkingData.NumberOfUsedPoints
WorkingData.Point

INT

0

Array[1..50] of AuxFct_Point

WorkingData.Point[i]
WorkingData.Point[i].x
WorkingData.Point[i].y ErrorMode

AuxFct_Point -

REAL

0.0

REAL

0.0

INT

0

Description Input are for polyline data The polyline data in the UserData structure can be edited. Changes in this structure do not affect the interpolation calculation until the check and duplication of the data to the WorkingData structure is initiated.
Number of points used for the interpolation calculation Permissible value range: 2 to 50
Points for the interpolation calculation The array with 50 elements of data type AuxFct_Point contains the value pairs of the points.
Point for the interpolation calculation An element with index "i" from the "Point" array.
x-value of the point Permissible value range: Point[i].x < Point[i+1].x
y-value of the point
Display area of the currently active polyline data The polyline data in the WorkingData structure cannot be edited. It is used for the interpolation calculation.
Number of points used for the interpolation calculation Permissible value range: 2 to 50
Points for the interpolation calculation The array with 50 elements of type AuxFct_Point contains the value pairs of the points.
Point for the interpolation calculation An element with index "i" from the "Point" array.
x-value of the point Permissible value range: Point[i].x < Point[i+1].x
y-value of the point
Selection of the substitute output value following an error
· 0 = Input
· 1 = SubstituteOutput
· 2 = Last valid output value Permissible value range: 0 to 2

534

PID control Function Manual, 10/2018, A5E35300227-AD

Tag OutOfRangeMode
NextXIndex

Data type INT

Default 0

INT

2

Instructions 9.5 Polyline
Description Selection of the output value if the input value lies outside the defined x-values · 0 = Maintain slope · 1 = y-value of the first/last point Permissible value range: 0 to 1 Index of the next x-value Used for monitoring the index of the points that are being used for the current interpolation calculation. The following condition applies: WorkingData.Point[NextXIndex-1].x < Input  WorkingData.Point[NextXIndex].x Do not change this value manually.

PID control Function Manual, 10/2018, A5E35300227-AD

535

Instructions 9.5 Polyline

9.5.7

ErrorBits parameter
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 16#0000_0003, for example, indicates that the errors 16#0000_0001 and 16#0000_0002 are pending simultaneously.
For Polyline the errors output at the ErrorBits parameter are divided into two categories:
 Errors with error messages ErrorBits < 16#0001_0000
 Errors with error messages ErrorBits  16#0001_0000

Errors with error messages ErrorBits < 16#0001_0000
If one or more errors with error messages ErrorBits < 16#0001_0000 are pending, enable output ENO is not changed. The output value can be determined as follows despite this error:
 Interpolation calculation when Reset = FALSE.
or
 Output of SubstituteOutput when Reset = TRUE.

ErrorBits (DW#16#...) 0000_0000
0000_0001

Description
No error is pending. The Output parameter was limited to -3.402823e+38 or +3.402823e+38. If the interpolation value is output at the output (Reset = FALSE and ErrorBits < 16#0001_0000), check the following tags used in the interpolation calculation: · Input · WorkingData.Point[i].x · WorkingData.Point[i].y If a substitute output value is output at the Output parameter when Reset = FALSE and ErrorBits  16#0001_0000, check the Input or SubstituteOutput parameter, depending on the value set at the ErrorMode tag. If Reset = TRUE, check the SubstituteOutput parameter. If the Output parameter is no longer limited, the error that is stored at the Error parameter is cleared.

536

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.5 Polyline

ErrorBits (DW#16#...)
0000_0002

Description
One or more tags in the UserData structure have invalid values but valid polyline data is available in the WorkingData structure. The polyline data in the UserData structure was checked because the Validate parameter is set to TRUE while the Reset parameter is simultaneously set to FALSE. The polyline data in the UserData structure is not transferred to the WorkingData structure so that the changes made in the UserData structure will not become effective. The FB Polyline continues the interpolation calculation with the unchanged values in the WorkingData structure. Ensure that the following conditions are met when the Validate parameter is set to TRUE:
1. 2  UserData.NumberOfUsedPoints  50 2. UserData.Point[j].x < UserData.Point[j+1].x with index j = 1..(UserData.NumberOfUsedPoints - 1) 3. -3.402823e+38  UserData.Point[i].x  3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints 4. -3.402823e+38  UserData.Point[i].y  3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints 5. UserData.Point[i].x and UserData.Point[i].y are valid REAL values ( NaN) with index i =
1..UserData.NumberOfUsedPoints The error bit at the Error parameter is deleted when
· The Validate parameter is set to FALSE. or
· The Reset parameter is set to TRUE or
· The Validate parameter is set to TRUE while the Reset parameter is set to FALSE and the five conditions for UserData named above are met.

PID control Function Manual, 10/2018, A5E35300227-AD

537

Instructions 9.5 Polyline

Errors with error messages ErrorBits  16#0001_0000
If one or more errors with error messages ErrorBits  16#0001_0000 are pending, the output value cannot be determined as expected. The substitute output value is output instead. Enable output ENO is set to FALSE.

ErrorBits (DW#16#...) 0001_0000
0002_0000

Description
The SubstituteOutput or Input parameter that is being used as the output value has no valid REAL value. The output is set to 0.0. Possible error scenarios:
· The Reset parameter is set to FALSE and an error with ErrorBits  16#0002_0000 is pending that prevents the interpolation calculation, and ­ the Input parameter has no valid REAL value, then tag ErrorMode = 0. ­ the SubstituteOutput parameter has no valid REAL value, then tag ErrorMode = 1.
· The Reset parameter is set to TRUE while the SubstituteOutput parameter has no valid REAL value. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The SubstituteOutput or Input parameter is changed to a valid REAL value. or
· The SubstituteOutput or Input parameter is no longer being used as the output value. If the SubstituteOutput or Input parameter is changed to a valid REAL value, FB Polyline uses the SubstituteOutput or Input parameter again as the output value. The Input parameter has no valid REAL value, while the interpolation calculation is to be performed (Reset = FALSE). The Output parameter is assigned the substitute output value that you configure at the ErrorMode tag. Note that the output value is set to 0.0 when tag ErrorMode = 0 is set because the value at the Input parameter is not being used as a substitute output value in this case. The NextXIndex tag is not updated as long as the Input parameter has an invalid REAL value The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The Input parameter is changed to a valid REAL value. or
· The Reset parameter is set to TRUE. If the Input parameter is changed to a valid REAL value and the Reset parameter is set to FALSE, FB Polyline outputs the interpolation value again at the output.

538

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.5 Polyline

ErrorBits (DW#16#...) 0004_0000
0008_0000

Description
The interpolation calculation yields an invalid REAL value for the Output parameter. Check the REAL values in the WorkingData structure for validity. The Output parameter is assigned the substitute output value that you configure at the ErrorMode tag. If you want to change the polyline data, first edit the UserData structure and then set parameter Validate = TRUE. Do not manually change the data in WorkingData structure. The NextXIndex tag can have an invalid value as long as this error is pending. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The interpolation calculation yields valid values for the Output parameter again. or
· The Reset parameter is set to TRUE. If the interpolation calculation yields valid REAL values again and parameter Reset = FALSE is set, FB Polyline outputs the interpolation value again at the output. One or more tags in the UserData structure have invalid values while no valid polyline data is available in the WorkingData structure. The polyline data in the UserData structure were checked because
· The Validate parameter is set to TRUE while the Reset parameter is set to FALSE. or
· When Polyline is executed for the first time after the change of operating state of the CPU from RUN to STOP , the Reset parameter is set to FALSE .
The polyline data in the UserData structure is not transferred to the WorkingData structure so that the values in the UserData structure will not become effective. FB Polyline does not output the interpolation value at the Output parameter because no valid polyline data is contained in the WorkingData structure. The Output parameter is assigned the substitute output value that is configure at the ErrorMode tag. Ensure that the following conditions are met when the Validate parameter is set to TRUE or when the Reset parameter is set to FALSE while Polyline is being executed for the first time after the change of operating state of the CPU from STOP to RUN :
1. 2  UserData.NumberOfUsedPoints  50 2. UserData.Point[j].x < UserData.Point[j+1].x with index j = 1..(UserData.NumberOfUsedPoints ­ 1) 3. -3.402823e+38  UserData.Point[i].x  3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints 4. -3.402823e+38  UserData.Point[i].y  3.402823e+38 with index i =
1..UserData.NumberOfUsedPoints 5. UserData.Point[i].x and UserData.Point[i].y are valid REAL values ( NaN) with index i =
1..UserData.NumberOfUsedPoints

PID control Function Manual, 10/2018, A5E35300227-AD

539

Instructions 9.5 Polyline

ErrorBits (DW#16#...)
0008_0000

Description
Note that all tags in the UserData and WorkingData structures are not retentive. These tags are initialized with the start values after each change of operating state of the CPU from STOP to RUN. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The Validate parameter is set to TRUE while the Reset parameter is set to FALSE and the five conditions for UserData named above are met.
or
· When Polyline is executed for the first time after the change of operating state of the CPU from STOP to RUN, the Reset parameter is set to FALSE and the five conditions for UserData named above are met.
or
· The Reset parameter is set to TRUE. If the five conditions for UserData named above are met and the following conditions are met, FB Polyline outputs the interpolation value at the output again.
· The Validate parameter is set to TRUE while the Reset parameter is set to FALSE. or
· When Polyline is executed for the first time after the change of operating state of the CPU from RUN to STOP, the Reset parameter is set to FALSE.

540

PID control Function Manual, 10/2018, A5E35300227-AD

9.6

SplitRange

Instructions 9.6 SplitRange

9.6.1

Compatibility with CPU and FW
The following table shows which version of SplitRange can be used on which CPU:

CPU S7-1200 S7-1500

FW V4.2 or higher V2.0 or higher

SplitRange V1.0 V1.0

9.6.2

SplitRange description

Description

The SplitRange instruction converts the input value into an output value. The input value is located in the value range that is limited by Points.x1 and Points.x2. The output value is located in the value range that is limited by Points.y1 and Points.y2.
The following figure shows the relevant characteristic of an example configuration of the SplitRange instruction:

Use SplitRange when you need to control a process that is influenced by multiple actuators. SplitRange splits the output value range of the PID controller into multiple subranges. Assign a subrange to each actuator. The user program calls the block once per subrange. The input value of each SplitRange instance is connected to the output value of the PID controller.

PID control Function Manual, 10/2018, A5E35300227-AD

541

Instructions 9.6 SplitRange
The figure below shows an example of a control loop with two SplitRange instances and two actuators:

Validity of the SplitRange data The value pairs in the Points structure define the input and output value range of SplitRange. The two value pairs are located in the static area of the block SplitRange.
SplitRange checks whether the following conditions are met for each call so that valid values are available for the calculation of the output value:
 Points.x1 < Points.x2
 Points.x1, Points.y1, Points.x2 and Points.y2 are within the permitted value range from 3.402823e+38 to 3.402823e+38
 Points.x1, Points.y1, Points.x2 and Points.y2 are valid REAL values ( NaN e.g. 16#7FFF_FFFF)
If one or more of these conditions are not met, correct calculation of the output value is not possible. A corresponding error message is output at the ErrorBits parameter.
The preassignment of the x and y values with 0.0 does not represent a valid configuration. Change the tags to valid values so that the tags can be used for the calculation of the output value.
Enable behavior EN/ENO If one of the following conditions is met, enable output ENO is set to FALSE.
 Enable input EN is set to TRUE and the Output parameter is specified by a substitute output value in case of error messages ErrorBits  16#0001_0000.
 Enable input EN is set to FALSE.
If enable input EN is set to TRUE and the Output parameter can be determined as follows, enable output ENO is set to TRUE:
 With the valid calculation of the output value with Reset = FALSE.
or
 With valid SubstituteOutput parameter when Reset = TRUE.

542

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.6 SplitRange

Call
SplitRange is called as a single-instance DB in an OB. In an FB, SplitRange can be called as both a single-instance DB and a multi-instance DB and as a parameter-instance DB.
When the instruction is called, no technology object is created. No parameter assignment interface or commissioning interface is available. You assign the SplitRange parameters directly in the instance DB and commission SplitRange using a watch table of the user program in the CPU or HMI.

Startup

The tags in the static area of SplitRange are not retentive. These tags are initialized with the start values after each operating state transition of the CPU from STOP to RUN.
If you change the actual values in the Points structure in online mode and these values are to be retained after the operating state transition of the CPU from STOP to RUN, back up these values in the start values of the data block.

Reaction to error
The SplitRange instruction detects different errors that may occur during calculation of the output value. The result of the calculation can be output at the output despite a pending error. If an error prevents correct calculation of the output value, a substitute output value is output at the output.
You specify the substitute output value that is output if an error occurs that prevents correct calculation of the output value as follows at the ErrorMode tag:
 If the ErrorMode tag is set to 0, SplitRange outputs the input value at the Input parameter.
 If the ErrorMode tag is set to 1, SplitRange outputs the substitute output value. You assign the substitute output value at the SubstituteOutput parameter.
 If the ErrorMode tag is set to 2, SplitRange outputs the last valid output value at the Output parameter.
The Error parameter indicates if an error is pending. When the error is no longer pending, Error is set to FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is retentive and is reset only by a positive edge at the Reset or ErrorAck parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

543

Instructions 9.6 SplitRange

9.6.3

SplitRange input parameters

Parameter Input
SubstituteOutput

Data type REAL REAL

Default 0.0 0.0

ErrorAck

BOOL

FALSE

Reset

BOOL

FALSE

Description Input value SubstituteOutput is used as the substitute output value when · Reset = TRUE or · An error with error message ErrorBits  16#0001_0000 prevents correct
calculation of the output value, and the configured value of ErrorMode is 1.
Deletes the error messages · Edge FALSE -> TRUE
ErrorBits is reset Performs a restart of the instruction · Edge FALSE -> TRUE
ErrorBits is reset. · As long as Reset is set to TRUE, the substitute output value Substitute-
Output is output at the output. · As long as Reset is set to FALSE, the calculation of the output value is
performed.

9.6.4

SplitRange output parameters

Parameter Output ErrorBits

Data type REAL DWORD

Error

BOOL

Default 0.0 DW#16#0
FALSE

Description Output value
The ErrorBits parameter (Page 546) shows which error messages are pending. ErrorBits is retentive and is reset at a positive edge at Reset or ErrorAck .
When Error is set to TRUE, at least one error is currently pending.

544

PID control Function Manual, 10/2018, A5E35300227-AD

9.6.5

SplitRange static tags

Tag Points
Points.x1
Points.y1 Points.x2
Points.y2 ErrorMode

Data type

Default

AuxFct_SplitRan ge_Points

REAL

0.0

REAL

0.0

REAL

0.0

REAL

0.0

INT

0

Instructions 9.6 SplitRange
Description Points data
x-value of point 1 Permissible value range: Points.x1 < Points.x2 y-value of point 1 x-value of point 2 Permissible value range: Points.x1 < Points.x2 y-value of point 2 Selection of the substitute output value following an error · 0 = Input · 1 = SubstituteOutput · 2 = Last valid output value Permissible value range: 0 to 2

PID control Function Manual, 10/2018, A5E35300227-AD

545

Instructions 9.6 SplitRange

9.6.6

ErrorBits parameter
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 16#0000_0003, for example, indicates that the errors 16#0000_0001 and 16#0000_0002 are pending simultaneously.
For SplitRange, the errors output at the ErrorBits parameter are divided into two categories:
 Errors with error messages ErrorBits < 16#0001_0000
 Errors with error messages ErrorBits  16#0001_0000

Errors with error messages ErrorBits < 16#0001_0000
If one or more errors with error messages ErrorBits < 16#0001_0000 are pending, enable output ENO is not changed. The output value can be determined as follows despite this error:
 Calculation of output value based on the input value and the value pairs in the Points structure when Reset = FALSE.
Or
 Output of SubstituteOutput when Reset = TRUE.

ErrorBits (DW#16#...) 0000_0000
0000_0001

Description
No error is pending. The Output parameter was limited to -3.402823e+38 or +3.402823e+38. If a substitute output value is output at the Output parameter when Reset = FALSE and ErrorBits  16#0001_0000, check the Input or SubstituteOutput parameter, depending on the value set at the ErrorMode tag. If Reset = TRUE, check the SubstituteOutput parameter. If the Output parameter is no longer limited, the error that is stored at the Error parameter is cleared.

546

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.6 SplitRange

Errors with error messages ErrorBits  16#0001_0000
If one or more errors with error messages ErrorBits  16#0001_0000 are pending, the output value cannot be determined as expected. The substitute output value is output instead. Enable output ENO is set to FALSE.

ErrorBits (DW#16#...) 0001_0000
0002_0000

Description
The SubstituteOutput or Input parameter that is being used as the output value has no valid REAL value. The output is set to 0.0. Possible error scenarios:
· The Reset parameter is set to FALSE and an error with ErrorBits  16#0002_0000 is pending that prevents the calculation of the output value, and ­ the Input parameter has no valid REAL value, then tag ErrorMode = 0. ­ the SubstituteOutput parameter has no valid REAL value, then tag ErrorMode = 1.
· The Reset parameter is set to TRUE while the SubstituteOutput parameter has no valid REAL value. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The SubstituteOutput or Input parameter is changed to a valid REAL value. or
· The SubstituteOutput or Input parameter is no longer being used as the output value. When the SubstituteOutput or Input parameter is changed to a valid REAL value, FB SplitRange uses the SubstituteOutput or Input parameter again as the output value. The Input parameter has no valid REAL value while the calculation of the output value is being performed (Reset = FALSE). The Output parameter is assigned the substitute output value that you configure at the ErrorMode tag. Note that the output value is set to 0.0 when tag ErrorMode = 0 is set because the value at the Input parameter is not being used as a substitute output value in this case. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The Input parameter is changed to a valid REAL value. or
· The Reset parameter is set to TRUE. When the Input parameter is changed to a valid REAL value and the Reset parameter is set to FALSE, FB SplitRange outputs the calculated output value again at the output.

PID control Function Manual, 10/2018, A5E35300227-AD

547

Instructions 9.6 SplitRange

ErrorBits (DW#16#...)
0004_0000

Description
One or more tags in the Points structure have invalid values. Or the calculation of the output value yields an invalid REAL value for the Output parameter. The Output parameter is assigned the substitute output value that you configure at the ErrorMode tag. Ensure that the following conditions are met: 1. Points.x1 < Points.x2 2. Points.x1, Points.y1, Points.x2 and Points.y2 are within the permitted value range from -
3.402823e+38 to 3.402823e+38 3. Points.x1, Points.y1, Points.x2 and Points.y2 are valid REAL values ( NaN e.g. 16#7FFF_FFFF) Note that all tags in the Points structure are not retentive. These tags are initialized with the start values after each operating state transition of the CPU from STOP to RUN. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The three conditions listed above are met for the values in the Points structure. or
· The Reset parameter is set to TRUE. When the three conditions listed above are met for the values in the Points structure and the Reset = FALSE parameter is set, FB SplitRange outputs the calculated output value again at the output.

548

PID control Function Manual, 10/2018, A5E35300227-AD

9.7

RampFunction

Instructions 9.7 RampFunction

9.7.1

Compatibility with CPU and FW
The following table shows which version of RampFunction can be used on which CPU:

CPU S7-1200 S7-1500

FW V4.2 or higher V2.0 or higher

RampFunction V1.0 V1.0

9.7.2

RampFunction description

Description

The RampFunction instruction limits the slew rate of a signal. RampFunction outputs a signal jump at the input as ramp function of the output value.
Use the RampFunction to prevent signal jumps, for example, in the following cases:
 Between setpoint source and setpoint input of the controller to achieve a smoother response without influencing the disturbance reaction.
 Between the controller output and the actuator input to preserve the actuator, for example, a motor with gears or the process.
The following limits can be set for the slew rate:
 Increasing slew rate in positive value range
 Decreasing slew rate in positive value range
 Increasing slew rate in negative value range
 Decreasing slew rate in negative value range
In addition, the RampFunction instruction limits the output value to the high and low limit.
When the slew rate limit or the low or high limit are reached, RampFunction sets the associated output bit to TRUE.

PID control Function Manual, 10/2018, A5E35300227-AD

549

Instructions 9.7 RampFunction

Function chart

The following figure shows the RampFunction instruction and a function chart as an example:

550

PID control Function Manual, 10/2018, A5E35300227-AD

Call Startup

Instructions 9.7 RampFunction

RampFunction is called as a single-instance DB in an OB. In an FB, RampFunction can be called as both a single-instance DB and a multi-instance DB and as a parameter-instance DB.
When the instruction is called, no technology object is created. No parameter assignment interface or commissioning interface is available. You assign the RampFunction parameters directly in the instance DB and commission RampFunction using a watch table of the user program in the CPU or HMI.

The tags in the static area of RampFunction are not retentive. These tags are initialized with the start values after each operating state transition of the CPU from STOP to RUN.
If you change the actual values of the limits in online mode and these values are to be retained after the operating state transition of the CPU, back up these values in the start values of the data block.
You specify the initialization value for the Output parameter at the StartMode tag. The initialization value is output at the Output parameter during the first call of RampFunction after the operating state transition of the CPU. For subsequent calls, RampFunction calculates the output value, starting from this initialization value, based on the input value and the slew rate limits.
The following table shows the dependency between the StartMode tag and the Output parameter. The values in the Output column are output at the Output parameter after the operating state transition of the CPU.

StartMode 0

Output Value of the Input parameter

Example

1

Value of the SubstituteOutput parame-

ter

2

Remains unchanged. Output parame-

ter is retentive.

PID control Function Manual, 10/2018, A5E35300227-AD

551

Instructions 9.7 RampFunction
StartMode 3

Output 0.0

Example

4

Value of the LowerLimit tag

5

Value of the UpperLimit tag

The following applies in addition for all values of the StartMode tag:
 When the values of the UpperLimit and LowerLimit tags are valid, the initialization value is limited to the value range of these tags. Only then is the initialization value output at the Output parameter.
 If the initialization value is invalid, the substitute output value is output at the Output parameter at the first call of the instruction after an operating state transition of the CPU. You configure the substitute output value at the ErrorMode tag. The substitute output value is limited by the value range of the tags UpperLimit and LowerLimit. For subsequent calls, the instruction calculates the output value starting from this substitute output value.
 The StartMode tag is only effective when the Reset = FALSE parameter is set at the first call of the instruction. If the Reset = TRUE parameter is set, the value of the SubstituteOutput parameter is output at the Output parameter.

552

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction

Reaction to error
The RampFunction instruction detects different errors that may occur during calculation of the output value. The result of this calculation can be output at the output despite a pending error. If an error prevents correct calculation of the output value, a substitute output value is output at the output.
You specify the substitute output value that is output if an error occurs that prevents correct calculation of the output value at the ErrorMode tag.
The following table shows the dependency between the ErrorMode tag and the substitute output value that is output by the RampFunction at the Output parameter:

ErrorMode 0 1 2 3 4 5

Output Value of the Input parameter Value of the SubstituteOutput parameter The last valid output value at the Output parameter 0.0 Value of the LowerLimit tag Value of the UpperLimit tag

The following applies in addition for all values of the ErrorMode tag:

 If the substitute output value is not a valid REAL value, 0.0 is output as output value.

 When the values of the UpperLimit and LowerLimit tags are valid, the substitute output value is limited to the value range of these tags. Only then is the substitute output value output at the Output parameter.

 If an error is pending that prevents correct calculation of the output value, RampFunction changes at the Output parameter from the calculated output value to the substitute output value. A jump of the output value can occur, depending on the value of the ErrorMode tag.

The Error parameter indicates if an error is pending. When the error is no longer pending, Error is set to FALSE. The ErrorBits parameter shows which errors have occurred. ErrorBits is retentive and is reset only by a positive edge at the Reset or ErrorAck parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

553

Instructions 9.7 RampFunction

9.7.3

RampFunction mode of operation

Limiting the slew rate
You can configure four limits for the slew rate of the input signal. The following factors determine which limit is currently in effect:
 Sign of the output value at the Output parameter
 Direction in which the amount of the output value changes at the Output parameter
The following table shows the effective tags for the slew rate limit depending on the Output parameter:

Output Output  0 and |Output| rising Output  0 and |Output| falling Output < 0 and |Output| rising Output < 0 and |Output| falling

Effective tag PositiveRisingSlewRate PositiveFallingSlewRate NegativeRisingSlewRate NegativeFallingSlewRate

The amount of the slew rate limits defines the maximum change of the output value per second.

Example:

The following scenario applies for the example:

 PositiveRisingSlewRate = 10.0

 Call time of RampFunction = 0.1 s

 Input > Output  0.0

Result:

The output value Output increases by 1.0 per call (10.0 per second) until the value at the Input parameter has been reached.

To disable the slew rate limit for one or more areas, set the corresponding tag to the value 3.402823e+38.

When the output value Output is currently limited by a slew rate limit, RampFunction sets the associated output bit to TRUE:

 PositiveRisingSlewRate_Active

 PositiveFallingSlewRate_Active

 NegativeRisingSlewRate_Active

 NegativeFallingSlewRate_Active

When the Reset parameter is set to TRUE, the slew rate limits are not in effect. This means jumps at the SubstituteOutput parameter result in jumps at the Output parameter.

554

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction
RampFunction checks whether the following conditions for the tags PositiveRisingSlewRate, PositiveFallingSlewRate, NegativeRisingSlewRate and NegativeFallingSlewRate are met for each call:
 Values are within the permitted value range greater than 0.0 up to 3.402823e+38
 Values are valid REAL values ( NaN e.g. 16#7FFF_FFFF)
If one or more conditions are not met, the substitute output value is output at the Output parameter. A corresponding error message is output at the ErrorBits parameter.
Limiting the output value
The output value Output is always limited to the value range of the tags UpperLimit and LowerLimit as long as these tags have valid values.
When the output value Output is currently limited by this value range, RampFunction sets the associated output bit to TRUE:
 UpperLimit_Active
 LowerLimit_Active
The limit of the output value has a higher priority than the limit of the slew rate. Changes of the tags UpperLimit and LowerLimit therefore result in jumps of the output value Output, if this is required to observe the limits of the tags UpperLimit and LowerLimit. The limiting of the slew rate is not taken into account in this case.
Example:
If the UpperLimit is reduced from 100.0 to 80.0 while the values of the parameters Input and Output are 90.0, the output value Output jumps to 80.0. The output value Output jumps to 80.0 regardless whether or not it violates the configured limit for the slew rate.
RampFunction checks whether the following conditions are met for each call:
 LowerLimit < UpperLimit
 LowerLimit and UpperLimit are within the permitted value range from -3.402823e+38 to 3.402823e+38
 LowerLimit and UpperLimit are valid REAL values ( NaN e.g. 16#7FFF_FFFF)
If one or more conditions are not met, the substitute output value is output at the Output parameter. A corresponding error message is output at the ErrorBits parameter.
In addition, RampFunction checks for each call whether the output value Output has the permitted value range of a REAL data type from -3.402823e+38 to 3.402823e+38. If the calculation of the output value yields an invalid REAL value, the substitute output value is output at the Output parameter. You configure the substitute output value at the ErrorMode tag.

PID control Function Manual, 10/2018, A5E35300227-AD

555

Instructions 9.7 RampFunction
Enable behavior EN/ENO If one of the following conditions is met, enable output ENO is set to FALSE.  Enable input EN is set to TRUE and the Output parameter is specified by a substitute output value in case of error messages ErrorBits  16#0001_0000.  Enable input EN is set to FALSE. If enable input EN is set to TRUE and the Output parameter can be determined as follows, enable output ENO is set to TRUE:  With the signal limiting the slew rate at Reset = FALSE. or  With valid SubstituteOutput parameter when Reset = TRUE.
Measuring the cycle time automatically To calculate the slew rate of the output value RampFunction needs the time that has expired since the last call of RampFunction. The cycle time by default is measured automatically and output as of the second call at the CycleTime.Value tag. RampFunction measures the cycle time for each call of the instruction and can therefore be used in non-equidistant call cycles, e.g. in OB1. If measurement of the cycle time has an invalid result, RampFunction calculates the current output value with the last valid cycle time. In addition, RampFunction outputs an error message at the ErrorBits parameter. When you disable automatic measurement of the cycle time by setting the tag CycleTime.EnableMeasurement = FALSE, you must enter the cycle time manually at the CycleTime.Value tag. RampFunction checks the CycleTime.Value tag for validity at each call.
Automatic measurement of the cycle time with breakpoints When breakpoints are active between two calls of RampFunction, automatic measurement of the cycle time results in the actual time that has expired between two calls. When one breakpoint is active, the CPU is in HOLD operating state.
Note The active breakpoints extend the time period between two calls of RampFunction. The longer the time period between two calls, the greater the maximum permitted change of the output value at the Output parameter.
Example: The following scenario applies for the example:  PositiveRisingSlewRate = 10.0  Call time of RampFunction = 0.1 s  Input > Output  0.0

556

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction
Result without breakpoints: The output value Output increases by 1.0 per call until the value at the Input parameter has been reached. Result with an active breakpoint of ten seconds: With the next call, the output value Output increases by 100.0. If you do not need the calculation of the output value based on the actual time with active breakpoints, follow these steps:  Disable automatic measurement of the cycle times by setting the tag
CycleTime.EnableMeasurement = FALSE.  Enter the cycle time manually at the CycleTime.Value tag.

PID control Function Manual, 10/2018, A5E35300227-AD

557

Instructions 9.7 RampFunction

9.7.4

RampFunction input parameters

Parameter Input
SubstituteOutput

Data type REAL REAL

Default 0.0 0.0

ErrorAck

BOOL

FALSE

Reset

BOOL

FALSE

Description Input value SubstituteOutput is used as the substitute output value when · Reset = TRUE or · An error with error message ErrorBits  16#0001_0000 prevents correct
calculation of the output value, and the configured value of ErrorMode is 1.
Deletes the error messages · Edge FALSE -> TRUE
ErrorBits is reset Performs a restart of the instruction · Edge FALSE -> TRUE
ErrorBits is reset. · As long as Reset is set to TRUE, the substitute output value Substitute-
Output is output at the output. · As long as Reset is set to FALSE, the calculation of the output value is
performed.

9.7.5

RampFunction output parameters

Parameter Output
PositiveRisingSlewRate_Active
PositiveFallingSlewRate_Active
NegativeRisingSlewRate_Active
NegativeFallingSlewRate_Active
UpperLimit_Active

Data type REAL BOOL
BOOL
BOOL
BOOL
BOOL

LowerLimit_Active BOOL

ErrorBits

DWORD

Error

BOOL

Default 0.0 FALSE FALSE FALSE FALSE FALSE FALSE DW#16#0
FALSE

Description
Output value
When PositiveRisingSlewRate_Active = TRUE, the output value is currently limited by PositiveRisingSlewRate .
When PositiveFallingSlewRate_Active = TRUE, the output value is currently limited by PositiveFallingSlewRate.
When NegativeRisingSlewRate_Active = TRUE, the output value is currently limited by NegativeRisingSlewRate.
When NegativeFallingSlewRate_Active = TRUE, the output value is currently limited by NegativeFallingSlewRate.
When UpperLimit_Active = TRUE, the output value is currently limited by UpperLimit.
When LowerLimit_Active = TRUE, the output value is currently limited by LowerLimit.
The ErrorBits parameter (Page 561) shows which error messages are pending. ErrorBits is retentive and is reset at a positive edge at Reset or ErrorAck .
When Error = TRUE, at least one error is currently pending.

558

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction

9.7.6

RampFunction static tags

Tag PositiveRisingSlewRate

Data type REAL

Default 10.0

PositiveFallingSlewRate REAL

10.0

NegativeRisingSlewRate REAL

10.0

NegativeFallingSlewRate REAL

10.0

UpperLimit LowerLimit ErrorMode

REAL REAL INT

100.0 0.0 2

StartMode

INT

2

CycleTime

AuxFct

-

_CycleTime

Description Limit for slew rate of the output value per second in positive range with rising amount With PositiveRisingSlewRate = 3.402823e+38, this slew rate limit is disabled. Permissible value range: > 0.0 Limit for slew rate of the output value per second in positive range with falling amount With PositiveFallingSlewRate = 3.402823e+38, this slew rate limit is disabled. Permissible value range: > 0.0 Limit for slew rate of the output value per second in negative range with rising amount With NegativeRisingSlewRate = 3.402823e+38, this slew rate limit is disabled. Permissible value range: > 0.0 Limit for slew rate of the output value per second in negative range with falling amount With NegativeFallingSlewRate = 3.402823e+38, this slew rate limit is disabled. Permissible value range: > 0.0 High limit of output value Permissible value range: > LowerLimit Low limit of output value Permissible value range: < UpperLimit Selection of the substitute output value following an error
· 0 = Input
· 1 = SubstituteOutput
· 2 = Last valid output value
· 3 = 0.0
· 4 = LowerLimit
· 5 = UpperLimit Permissible value range: 0 to 5 Selecting the output value for the first call of the instruction
· 0 = Input
· 1 = SubstituteOutput
· 2 = Last output value
· 3 = 0.0
· 4 = LowerLimit
· 5 = UpperLimit Permissible value range: 0 to 5 Cycle time data

PID control Function Manual, 10/2018, A5E35300227-AD

559

Instructions 9.7 RampFunction

Tag CycleTime.Value
CycleTime .EnableMeasurement

Data type REAL

Default 0.1

BOOL

TRUE

Description Time interval between two calls of the instruction in seconds Permissible value range: > 0.0 Enable automatic measurement of the cycle time

560

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction

9.7.7

ErrorBits parameter
If several errors are pending simultaneously, the values of the ErrorBits are displayed with binary addition. The display of ErrorBits = 16#0000_0003, for example, indicates that the errors 16#0000_0001 and 16#0000_0002 are pending simultaneously.
The RampFunction instruction divides errors that are output at the ErrorBits parameter in two categories:
 Errors with error messages ErrorBits < 16#0001_0000
 Errors with error messages ErrorBits  16#0001_0000

Errors with error messages ErrorBits < 16#0001_0000
If one or more errors with error messages ErrorBits < 16#0001_0000 are pending, enable output ENO is not changed. The output value can be determined as follows despite this error:
 Calculation of output value based on the input value and the limits for the slew rate when Reset = FALSE.
or
 Output of SubstituteOutput when Reset = TRUE.

ErrorBits (DW#16#...) 0000_0000
0000_0002

Description
No error is pending. The measurement of the cycle time yields in an invalid value while the output value is being calculated (Reset = FALSE). If a valid value of the cycle time has already been measured, RampFunction calculates the output value based on the last value of the CycleTime.Value tag. If no valid value of the cycle time was previously measured, RampFunction still outputs the output value at the Output parameter that is configured with the StartMode tag. The error bit at the Error parameter is deleted when · The measurement of the cycle time yields a valid value or · The Reset parameter is set to TRUE

PID control Function Manual, 10/2018, A5E35300227-AD

561

Instructions 9.7 RampFunction

Errors with error messages ErrorBits  16#0001_0000
If one or more errors with error messages ErrorBits  16#0001_0000 are pending, the output value cannot be calculated as expected. The substitute output value is output instead. Enable output ENO is set to FALSE.
The output value limit remains active as long as the tags LowerLimit and UpperLimit have valid values.
The slew rate limit is no longer active. Jumps at the output value can occur in one of the following scenarios:
 When the error is detected, RampFunction switches from the calculated output value to the replacement output value. Whether a jump occurs depends on the value of the tag ErrorMode.
 The substitute output value is changed while it is active.

ErrorBits (DW#16#...) 0001_0000
0002_0000

Description
The SubstituteOutput or a different tag that is being used as output value has no valid REAL value. The output value at the Output parameter is therefore set to 0.0 and limited by the tags LowerLimit and UpperLimit. Possible error scenarios:
· The Reset parameter is set to FALSE and an error with ErrorBits  16#0002_0000 is pending that prevents the calculation of the output value, and ­ the Input parameter has no valid REAL value, then tag ErrorMode = 0. ­ the SubstituteOutput parameter has no valid REAL value, then tag ErrorMode = 1. ­ the LowerLimit tag has no valid REAL value, then tag ErrorMode= 4. ­ the UpperLimit tag has no valid REAL value, then tag ErrorMode= 5.
· The Reset parameter is set to TRUE while the SubstituteOutput parameter has no valid REAL value. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The SubstituteOutput, Input, LowerLimit or UpperLimit parameter is changed to a valid REAL value. or
· The SubstituteOutput, Input, LowerLimit or UpperLimit parameter is no longer being used as the output value.
When the SubstituteOutput, Input, LowerLimit or UpperLimit parameter is changed to a valid REAL value, RampFunction outputs the value of this parameter again as the output value. The Input parameter has no valid REAL value while the calculation of the output value is being performed (Reset = FALSE). The substitute output value is output at the Output parameter that is configured at the ErrorMode tag and is limited by the tags UpperLimit and LowerLimit. Note that the output value is set to 0.0 when tag ErrorMode = 0 is set because the value at the Input parameter is not being used as a substitute output value in this case. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The Input parameter is changed to a valid REAL value. or
· The Reset parameter is set to TRUE. When the Input parameter is changed to a valid REAL value and the Reset parameter is set to FALSE, RampFunction outputs the calculated output value again at the Output parameter.

562

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction

ErrorBits (DW#16#...) 0004_0000
0008_0000

Description
The calculation of the output value yields an invalid REAL value at the Output parameter. The substitute output value is output at the Output parameter that is configured at the ErrorMode tag and is limited by the tags UpperLimit and LowerLimit. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The calculation of the output value outputs valid values at the Output parameter again. or
· The Reset parameter is set to TRUE. When the calculation of the output value yields valid REAL values again and the Reset parameter is set to FALSE, RampFunction outputs the calculated output value again at the Output parameter. The LowerLimit or UpperLimit tag has an invalid value. The following value is output at the Output parameter, depending on the Reset parameter:
· Reset = FALSE
The substitute output value that is configured with the ErrorMode tag is output at the Output parameter. · Reset = TRUE
The value of the SubstituteOutput parameter is output at the Output parameter. In both cases, the Ouput parameter is limited to the value range of the REAL data type from 3.402823e+38 to 3.402823e+38. Ensure that the following conditions are met: 1. LowerLimit < UpperLimit 2. LowerLimit and UpperLimit are within the permitted value range from -3.402823e+38 to
3.402823e+38 3. LowerLimit and UpperLimit are valid REAL values ( NaN e.g. 16#7FFF_FFFF) Note that the output value is set to 0.0 at the Output parameter when Reset = FALSE and
· the LowerLimit tag has no valid REAL value, the tag ErrorMode = 4 or
· the UpperLimit tag has no valid REAL value, then tag ErrorMode = 5. In this case, the values of the tags LowerLimit and UpperLimit are not output as substitute output values at the Output parameter because they are invalid. When the three conditions listed above for the LowerLimit and UpperLimit tags are met, the following applies:
· The error bit at the Error parameter is cleared. · Enable output ENO is set to TRUE again. · RampFunction outputs the output value at the Output parameter again with
­ Reset = FALSE, by calculating and limiting the output value. ­ Reset = TRUE due to the limited value at the SubstituteOutput. parameter.

PID control Function Manual, 10/2018, A5E35300227-AD

563

Instructions 9.7 RampFunction

ErrorBits (DW#16#...) 0010_0000
0020_0000
0040_0000

Description
At least one of the following parameters has invalid values while the calculation of the output value is being performed (Reset = FALSE): 1. PositiveRisingSlewRate 2. PositiveFallingSlewRate 3. NegativeRisingSlewRate 4. NegativeFallingSlewRate The substitute output value is output at the Output parameter that is configured at the ErrorMode tag and is limited by the tags UpperLimit and LowerLimit. Ensure that the following conditions are met for all four parameters listed above:
· The values are within the permitted value range greater than 0.0 up to 3.402823e+38
· The values are valid REAL values ( NaN e.g. 16#7FFF_FFFF) The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· The conditions listed above are met for the four parameters or
· The Reset parameter is set to TRUE. When the conditions listed above are met for the four parameters and Reset is set to FALSE, RampFunction outputs the calculated output value at the Output parameter again. The tag (configured with StartMode) for the initialization of the Output parameter at the first call of the instruction does not have a valid REAL value. The substitute output value is output with the first call of the instruction at the Output parameter that is configured at the ErrorMode tag and is limited by the tags LowerLimit and UpperLimit. For subsequent calls, RampFunction calculates the output value starting from this substitute output value. This error occurs at the first call of the instruction after the operating state transition of the CPU from STOP to RUN when Reset = FALSE and
· The SubstituteOutput parameter has no valid REAL value with StartMode= 1.
· The Output parameter has no valid REAL value with StartMode = 2. The following applies for the subsequent calls:
· The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again.
· RampFunction outputs the calculated output value at the Output parameter again.
The CycleTime.Value tag has an invalid value, while the calculation of the output value is being performed (Reset = FALSE). The substitute output value is output at the Output parameter that is configured at the ErrorMode tag and is limited by the tags UpperLimit and LowerLimit. Ensure that the following conditions are met:
· 0.0 < CycleTime.Value < 3.402823e+38
· CycleTime.Value is a valid REAL value ( NaN e.g. 16#7FFF_FFFF) To automatically calculate the value of the CycleTime.Value tag, set the CycleTime.EnableMeasurement tag to TRUE. The error bit at the Error parameter is cleared and enable output ENO is set to TRUE again, when
· the conditions listed above are met for the CycleTime.Value tag or
· The Reset parameter is set to TRUE. When the conditions listed above are met for the CycleTime.Value tag and Reset is set to FALSE, RampFunction outputs the calculated output value at the Output parameter again.

564

PID control Function Manual, 10/2018, A5E35300227-AD

Instructions 9.7 RampFunction

PID control Function Manual, 10/2018, A5E35300227-AD

565

Service & Support

A

Unmatched complete service for the entire life cycle
For machine manufacturers, solution providers and plant operators: The service offering from Siemens Industry Automation and Drive Technologies includes comprehensive services for a wide range of different users in all sectors of the manufacturing and process industry.
To accompany our products and systems, we offer integrated and structured services that provide valuable support in every phase of the life cycle of your machine or plant ­ from planning and implementation through commissioning as far as maintenance and modernization.
Our Service & Support accompanies you worldwide in all matters concerning automation and drive technology from Siemens. We provide direct on-site support in more than 100 countries through all phases of the life cycle of your machines and plants.
You have an experienced team of specialists at your side to provide active support and bundled know-how. Regular training courses and intensive contact among our employees ­ even across continents ­ ensure reliable service in the most diverse areas.

Online Support
The comprehensive online information platform supports you in all aspects of our Service & Support at any time and from any location in the world.
You can find Online Support at the following address on the Internet.

566

PID control Function Manual, 10/2018, A5E35300227-AD

Service & Support

Technical Consulting
Support in planning and designing your project: From detailed actual-state analysis, definition of the goal and consultation on product and system questions right through to the creation of the automation solution.

Technical Support
Expert advice on technical questions with a wide range of demand-optimized services for all our products and systems.
You can find Technical Support at the following address on the Internet.

Training

Extend your competitive edge ­ through practical know-how directly from the manufacturer. You can find the training courses at the following address on the Internet.

Engineering Support
Support during project engineering and development with services fine-tuned to your requirements, from configuration through to implementation of an automation project.

Field Service

Our Field Service offers you services for commissioning and maintenance ­ to ensure that your machines and plants are always available.

Spare parts

In every sector worldwide, plants and systems are required to operate with constantly increasing reliability. We will provide you with the support you need to prevent a standstill from occurring in the first place: with a worldwide network and optimum logistics chains.

Repairs

Downtimes cause problems in the plant as well as unnecessary costs. We can help you to reduce both to a minimum ­ with our worldwide repair facilities.

Optimization

During the service life of machines and plants, there is often a great potential for increasing productivity or reducing costs.
To help you achieve this potential, we are offering a complete range of optimization services.

PID control Function Manual, 10/2018, A5E35300227-AD

567

Service & Support

Modernization

You can also rely on our support when it comes to modernization ­ with comprehensive services from the planning phase all the way to commissioning.

Service programs Our service programs are select service packages for an automation and drives system or product group. The individual services are coordinated with each other to ensure smooth coverage of the entire life cycle and support optimum use of your products and systems. The services of a service program can be flexibly adapted at any time and used separately. Examples of service programs:  Service contracts  Plant IT Security Services  Life Cycle Services for Drive Engineering  SIMATIC PCS 7 Life Cycle Services  SINUMERIK Manufacturing Excellence  SIMATIC Remote Support Services

Benefits at a glance:  Reduced downtimes for increased productivity  Optimized maintenance costs due to a tailored scope of services  Costs that can be calculated and therefore planned  Service reliability due to guaranteed response times and spare part delivery times  Customer service personnel will be supported and relieved of additional tasks  Comprehensive service from a single source, fewer interfaces and greater expertise

Contact

At your service locally, around the globe: your partner for consultation, sales, training, service, support, spare parts... for the entire range of products from Industry Automation and Drive Technologies.
You can find your personal contact in our contacts database on the Internet.

568

PID control Function Manual, 10/2018, A5E35300227-AD

Index
C
CONT_C Block diagram, 469 Input parameters, 470 Mode of operation, 467 Output parameters, 472
CONT_S Block diagram, 475 Input parameters, 476 Instruction, 473 Mode of operation, 474 Output parameters, 477
P
PID_3Step In/out parameters, 335 Input parameters, 331, 365 Instruction, 321, 357 Output parameters, 333, 367 Static tags, 369
PID_Compact In/out parameters, 267 Input parameters, 264, 301 Instruction, 297 Output parameters, 266, 302 Static tags, 303
PID_Temp ActivateRecoverMode tag, 458 Cascade, 409 Cascading, 195 ErrorBits parameter, 455 In/out parameters, 409 Input parameters, 405 Mode, 409 Multi-zone applications, 203 Operating principle, 399 Output parameters, 407 PID_Temp state and mode parameters, 446 PwmPeriode, 461 Tag Warning, 460
PULSEGEN Input parameters, 487 Output parameters, 488

PULSEGEN Instruction, 478 Mode of operation, 479
S
Software controller Configuring, 39
Symbol For value comparison, 46
T
TCONT_CP In/out parameters, 506 Input parameters, 504 Instruction, 489 Mode of operation, 490 Output parameters, 505 Static tags, 507
TCONT_S In/out parameters, 521 Input parameters, 520 Instruction, 514 Operating principle, 515 Output parameters, 521 Static tags, 522
Technology objects CONT_C, 212 CONT_S, 218 PID_3Step, 118 PID_Compact, 73 PID_Temp, 161 TCONT_CP, 222 TCONT_S, 246
V
Values Comparing, 46

PID control Function Manual, 10/2018, A5E35300227-AD

569

SIMATIC Safety - Configuring and Programming

SIMATIC Industrial Software SIMATIC Safety - Configuring and Programming
Programming and Operating Manual
10/2019
A5E02714440-AK

Important notes

Product Overview

1

Configuring

2

Safety Administration Editor

3

Access protection

4

Programming

5

F-I/O access

6

Implementation of user acknowledgment

7

Data exchange between

standard user program and

8

safety program

Safety-related communication

9

Compiling and

commissioning a safety

10

program

System acceptance

11

12 Operation and Maintenance

STEP 7 Safety V16 instructions

13

Monitoring and response times

A

Checklist

B

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Digital Industries Postfach 48 48 90026 NÜRNBERG GERMANY

A5E02714440-AK  10/2019 Subject to change

Copyright © Siemens AG 2011 - 2019. All rights reserved

Important notes
Purpose of this documentation
The information in this documentation enables you to configure (Page 41) and program (Page 114) SIMATIC Safety fail-safe systems. In addition, you will obtain information on acceptance (Page 376) of a SIMATIC Safety F-system.
Note The Programming and Operating Manual "SIMATIC Safety - Configuring and Programming" in its latest version (possibly including product information for the manual) is the relevant source of all information on functional safety regarding configuring and programming. This also applies in the event of discrepancies between this manual and other documentation on functional safety regarding configuring and programming of SIMATIC Safety. You must heed all warnings in the Programming and Operating manual "SIMATIC Safety Configuring and Programming".
Basic knowledge requirements
General basic knowledge of automation engineering is needed to understand this documentation. Basic knowledge of the following is also necessary:  Fail-safe automation systems  Automation systems S7-300/400/1200/1500/1500 Software Controller/WinAC RTX F  Distributed I/O systems on PROFIBUS DP/PROFINET IO  Totally Integrated Automation Portal, including:
­ Hardware configuration with the hardware and network editor ­ Programming in the LAD and FBD programming languages using the program editor. ­ Communication between CPUs

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

3

Important notes

Scope of this documentation This documentation is valid for STEP 7 Safety Advanced V16 and STEP 7 Safety Basic V16. STEP 7 Safety Advanced V16 and STEP 7 Safety Basic V16 are used for configuration and
programming of the fail-safe SIMATIC Safety system. In this context, integration of the fail-safe I/O listed below in SIMATIC Safety is also addressed:  S7-1500/ET 200MP fail-safe modules  ET 200SP fail-safe modules  ET 200S fail-safe modules  ET 200eco fail-safe I/O modules  ET 200eco PN fail-safe I/O modules  ET 200pro fail-safe modules  ET 200iSP fail-safe modules  S7-300 fail-safe signal modules  S7-1200 fail-safe modules  Fail-safe GSD based DP slaves  Fail-safe GSD based I/O devices

Approvals

The SIMATIC Safety F-system is certified for use in safety mode up to:
 Safety Integrity Level SIL3 in accordance with IEC 61508:2010
 Performance Level (PL) e and category 4 in accordance with ISO 13849-1:2015 or EN ISO 13849-1:2015

Incorporation in the information landscape
Depending on your application, you will need the following supplementary documentation when working with STEP 7 Safety.

SIMATIC Safety - Configuring and Programming

4

Programming and Operating Manual, 10/2019, A5E02714440-AK

Important notes

This documentation includes references to the supplementary documentation where appropriate.

Documentation For the SIMATIC Safety F-system

Brief description of relevant content
Depending on which F-CPU you are using, you will need the following documentation:

· For the F-CPUs S7-1200/1500, a Product Information (http://support.automation.siemens.com/WW/view/en/109478599) describes all deviations from the respective standard CPUs.

· Each F-CPU S7-300/400 that can be used has its own product information. The product information describes the deviations from the respective standard CPUs.

· The Device manuals (http://support.automation.siemens.com/WW/view/en/67295862/133300) describe the S7-1500 CPUs.
· The "S7-300, CPU 31xC and CPU 31x: Installation" (http://support.automation.siemens.com/WW/view/en/13008499) operating instructions describe the installation and wiring of S7-300 systems.

· The "CPU 31xC and CPU 31x, Technical Data" (http://support.automation.siemens.com/WW/view/en/12996906) device manual describes the CPUs 315-2 DP and PN/DP, the CPU 317-2 DP and PN/DP, and the CPU 319-3 PN/DP.
· The "S7-400 Automation System, Installation (http://support.automation.siemens.com/WW/view/en/1117849) installation manual describes the installation and wiring of S7-400 systems.

· The "S7-400 Automation System, CPU Data" (http://support.automation.siemens.com/WW/view/en/23904550) reference manual describes the CPUs 414-3 PN/DP, the CPU 416-2, and the CPU 416-3 PN/DP.
· The "ET 200S Interface Module IM 151-7 CPU" (http://support.automation.siemens.com/WW/view/en/12714722) manual describes the IM 151-7 CPU.

· The "ET 200S, Interface Module IM 151-8 PN/DP CPU" (http://support.automation.siemens.com/WW/view/en/47409312) manual describes the IM 151-8 PN/DP CPU.

· The "ET 200S, Interface Module IM 154-8 CPU" (http://support.automation.siemens.com/WW/view/de/24363739/0/en) man ual describes the IM 154-8 CPU.
· The Manual "Windows Automation Center RTX WinAC RTX (F) 2010 (http://support.automation.siemens.com/WW/view/en/43715176)" describes the WinAC RTX 2010 and the WinAC RTX F 2010.

· The "S7-1500 Software Controller CPU 1505SP, CPU 1507S (http://support.automation.siemens.com/WW/view/en/109249299)" manual describes the SIMATIC S7-1500 Software Controller 1505SP and CPU 1507S.

"S7-1200 Functional Safety manual

Describes the F-CPUs S7-1200 and the fail-safe modules S7-1200 (including

(http://support.automation.siemens.com/W installation, wiring, and technical specifications)

W/view/en/104547552)" system manual

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

5

Important notes

Documentation

Brief description of relevant content

"S7-1500/ET200MP system manual

Describes the hardware of the S7-1500 systems and the S7-1500/ET 200MP

(http://support.automation.siemens.com/W fail-safe modules (including installation, wiring, and technical specifications)

W/view/en/59191792)" system manual

and the product manuals

(https://support.industry.siemens.com/cs/w

w/en/ps/14141/man) for the corresponding

S7-1500/ET 200MP fail-safe modules

"ET 200SP distributed I/O system

Describes the hardware of the ET 200SP fail-safe modules (including installa-

(http://support.automation.siemens.com/W tion, wiring, and technical specifications)

W/view/en/58649293)" system manual

and the product manuals

(https://support.industry.siemens.com/cs/w

w/en/ps/14059/man) for the corresponding

ET 200SP fail-safe modules

"ET 200eco Distributed I/O Station Failsafe I/O Block (http://support.automation.siemens.com/W W/view/en/19033850)" manual

Describes the hardware of the ET 200eco fail-safe I/O module (including installation, wiring, and technical specifications)

Manual "ET 200eco PN F-DI 8 x 24 VDC, Describes the hardware of the ET 200eco PN fail-safe I/O module (including

4xM12 / F-DQ 3 x 24 VDC/2.0A PM,

installation, wiring, and technical specifications)

3xM12

(https://support.industry.siemens.com/cs/w

w/en/)"

"Distributed I/O System ET 200S, FailSafe Modules (http://support.automation.siemens.com/W W/view/en/27235629)" operating instructions

Describes the hardware of the ET 200S fail-safe modules (including installation, wiring, and technical specifications)

"S7-300 Automation System, ET 200M Distributed I/O System, Fail-safe Signal Modules (http://support.automation.siemens.com/W W/view/en/19026151)" manual

Describes the hardware of the S7-300 fail-safe signal modules (including installation, wiring, and technical specifications)

"Distributed I/O system ET 200pro, failsafe I/O modules (http://support.automation.siemens.com/W W/view/en/22098524)" operating instructions

Describes the hardware of the ET 200pro fail-safe modules (including installation, wiring, and technical specifications)

"ET 200iSP distributed I/O device - Failsafe modules (http://support.automation.siemens.com/W W/view/en/47357221)" operating instructions

Describes the hardware of the ET 200iSP fail-safe modules (including installation, wiring, and technical specifications)

Help on STEP 7

· Describes the operation of the standard tools in STEP 7

· Contains information regarding configuration and parameter assignment of hardware

· Contains a description of the FBD and LAD programming languages

The complete SIMATIC S7 documentation is available on DVD. You can find more information on the Internet (http://www.automation.siemens.com/mcms/industrialautomation-systems-simatic/en/manual-overview/manual-collection/Pages/Default.aspx).

SIMATIC Safety - Configuring and Programming

6

Programming and Operating Manual, 10/2019, A5E02714440-AK

Important notes

Guide

This documentation describes how to work with STEP 7 Safety. It includes instructions and reference sections (description of the instructions for the safety program). The following topics are addressed:  Configuration of SIMATIC Safety  Access protection for SIMATIC Safety  Programming of the safety program (safety-related user program)  Safety-related communication  Instructions for the safety program  Support for the system acceptance  Operation and maintenance of SIMATIC Safety  Monitoring and response times

Conventions

In this documentation, the terms "safety engineering" and "fail-safe engineering" are used synonymously. The same applies to the terms "fail-safe" and "F-".
"STEP 7 Safety V16" stands for "STEP 7 Safety Advanced V16" and "STEP 7 Safety Basic V16".
"(S7-300)" indicates that the section only applies to S7-300 F-CPUs. S7-300 F-CPUs also includes the F-CPUs ET 200S and ET 200pro (IM F-CPUs).
"(S7-400)" indicates that the section only applies to S7-400 as well as WinAC RTX F.
"(S7-1200)" indicates that the section only applies to S7-1200 F-CPUs.
"(S7-1500)" indicates that the section only applies to S7-1500 F-CPUs. S7-1500 F-CPUs also includes ET 200SP F-CPUs, the CPU 1516pro F-2 PN and the S7-1500 F Software Controller.
The scopes can be combined.
The term "Safety program" refers to the fail-safe portion of the user program and is used instead of "fail-safe user program," "F-program," etc. For purposes of contrast, the nonsafety-related part of the user program is referred to as the "standard user program".
The hardware configuration encompasses the configuration of the standard parameters of the CPUs and standard I/Os as well as the configuration of the safety-related parameters of the F-CPUs and the F-I/Os.
The safety-related hardware configuration includes the configuration of the safety-related parameters of the F-CPU as well as the configuration of the F-I/O devices.
The safety-related project data includes the safety-related hardware configuration as well as the safety program.
Each warning is marked with a unique number at the end of the text. This enables you to easily reference other documents, for example, to obtain an overview of the safety requirements for the system.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

7

Important notes

Additional support
If you have further questions about the use of products presented in this manual, contact your local Siemens representative.
You can find information on whom to contact on the Web (http://www.siemens.com/automation/partner).
A guide to the technical documentation for the various SIMATIC products and systems is available on the Web (http://www.siemens.com/simatic-tech-doku-portal).
You can find the online catalog and online ordering system on the Web (www.siemens.com/industrymall).

Training center

We offer courses to help you get started with the S7 automation system. Contact your regional training center or the central training center in Nuremberg (90327), Federal Republic of Germany.
You can find more information on the Internet (http://www.sitrain.com).

Technical Support
To contact Technical Support for all Industry Automation products, use the Support Request Web form (http://www.siemens.com/automation/support-request).
You can find additional information about our Technical Support on the Web (http://www.siemens.com/automation/service).

SIMATIC Safety - Configuring and Programming

8

Programming and Operating Manual, 10/2019, A5E02714440-AK

Important notes
Important note for maintaining the operational safety of your system
Note
The operators of systems with safety-related characteristics must adhere to operational safety requirements. The supplier is also obliged to comply with special product monitoring measures. Siemens informs system operators in the form of personal notifications about product developments and properties which could be or become important issues in terms of operational safety.
You should subscribe to the corresponding notifications in order to obtain the latest information and to allow you to make any necessary modifications to your system.
Log in in the Industry Online Support. Follow the links below and click on "Email on update" on the right-hand side in each case: · SIMATIC S7-300/S7-300F
(https://support.industry.siemens.com/cs/products?pnid=13751&lc=en-WW) · SIMATIC S7-400/S7-400H/S7-400F/FH
(https://support.industry.siemens.com/cs/products?pnid=13828&lc=en-WW) · SIMATIC S7-1500/SIMATIC S7-1500F
(https://support.industry.siemens.com/cs/products?pnid=13716&lc=en-WW) · SIMATIC S7-1200/SIMATIC S7-1200F
(https://support.industry.siemens.com/cs/products?pnid=13683&lc=en-WW) · Software Controller
(https://support.industry.siemens.com/cs/products?pnid=13911&lc=en-WW) · Distributed I/O (https://support.industry.siemens.com/cs/products?pnid=14029&lc=en-
WW) · STEP 7 (TIA Portal)
(https://support.industry.siemens.com/cs/products?pnid=14340&lc=en-WW)
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

9

Important notes

To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed visit (https://www.siemens.com/industrialsecurity).

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (http://www.siemens.com/automation/service&support).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
Catalogs for all the products in automation and drives are available on the Internet (https://mall.industry.siemens.com).

SIMATIC Safety - Configuring and Programming

10

Programming and Operating Manual, 10/2019, A5E02714440-AK

Table of contents

Important notes ....................................................................................................................................... 3

1 Product Overview.................................................................................................................................. 21

1.1

Overview .................................................................................................................................21

1.2

Hardware and Software Components.....................................................................................23

1.3

Installing/uninstalling the STEP 7 Safety Basic V16 license ..................................................28

1.4

Installing/uninstalling the STEP 7 Safety Advanced V16 license ...........................................29

1.5

Installing/uninstalling STEP 7 Safety PowerPack...................................................................29

1.6

Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced ..........30

1.7

Migrating PLC programs to a n F-CPU S7-1500 ....................................................................34

1.8 1.8.1 1.8.2 1.8.3

Upgrading projects to STEP 7 Safety V16..............................................................................36 Upgrading projects from STEP 7 Safety as of V14 SP1 to V16 .............................................36 Upgrading projects from STEP 7 Safety V13 SP1/SP2 to V16 ..............................................36 Upgrading projects from STEP 7 Safety prior to V13 SP1 .....................................................38

1.9

First steps ...............................................................................................................................40

2 Configuring ........................................................................................................................................... 41

2.1

Overview of Configuration ......................................................................................................41

2.2

Particularities for configuring the F-System ............................................................................45

2.3

Configuring an F-CPU.............................................................................................................46

2.4

Configuring F-I/O ....................................................................................................................51

2.5 2.5.1

Configuration control (option handling) for F-I/Os ..................................................................56 Example ..................................................................................................................................57

2.6

Configuring shared device ......................................................................................................61

2.7

Configuring isochronous mode (S7-1500) ..............................................................................62

2.8

Recommendation for PROFIsafe address assignment ..........................................................63

2.9

Configurations supported by the SIMATIC Safety F-system ..................................................64

2.10

PROFIsafe addresses for F-I/O of PROFIsafe address type 1 ..............................................66

2.11

PROFIsafe addresses for F-I/O of PROFIsafe address type 2 ..............................................68

2.12

Setting the F-destination address for F-I/O with DIP switches ...............................................70

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

11

Table of contents

2.13 2.13.1 2.13.2 2.13.3 2.13.4

Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety .................................... 70 Identifying F-modules............................................................................................................. 72 Assign PROFIsafe address.................................................................................................... 74 Assign PROFIsafe address to an F-module .......................................................................... 74 Changing the PROFIsafe address ......................................................................................... 75

2.14

Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD

based I/O devices .................................................................................................................. 76

3 Safety Administration Editor .................................................................................................................. 79

3.1

Opening the Safety Administration Editor .............................................................................. 81

3.2

"General" area........................................................................................................................ 82

3.3 3.3.1 3.3.2

"F-runtime group" area........................................................................................................... 85 "F-runtime group" area........................................................................................................... 85 Pre-/postprocessing (S7-1200, S7-1500) .............................................................................. 86

3.4

"F-blocks" area ....................................................................................................................... 88

3.5

"F-compliant PLC data types" area (S7-1200, S7-1500) ....................................................... 89

3.6

"Web server F-Admins" area (S7-1200, S7-1500)................................................................. 90

3.7

"Settings" area ....................................................................................................................... 91

3.8

"Flexible F-Link" area (S7-1200, S7-1500) ............................................................................ 98

4 Access protection.................................................................................................................................103

4.1

Overview of access protection ............................................................................................. 104

4.2

Access protection for the safety-related project data........................................................... 106

4.3

Access protection for the F-CPU ......................................................................................... 109

4.4

Access protection through organizational measures ........................................................... 112

5 Programming .......................................................................................................................................114

5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.5.1 5.1.5.2 5.1.6 5.1.7 5.1.8 5.1.8.1 5.1.8.2 5.1.8.3 5.1.9

Overview of Programming ................................................................................................... 114 Program structure of the safety program (S7-300, S7-400) ................................................ 115 Program structure of the safety program (S7-1200, S7-1500) ............................................ 117 Fail-Safe Blocks ................................................................................................................... 119 Restrictions in the programming languages FBD/LAD ........................................................ 121 F-compliant PLC data types (UDT) (S7-1200, S7-1500) ..................................................... 128 Grouping PLC tags for inputs and outputs of F-I/O in structures (S7-1200, S7-1500)........ 129 Example of structured PLC tags for inputs and outputs of F-I/O (S7-1200, S7-1500) ........ 130 Editing PLC tags with external editors ................................................................................. 133 Using Multiuser engineering ................................................................................................ 134 Openness............................................................................................................................. 134 F-related Openness ............................................................................................................. 134 SafetyModificationsPossible ................................................................................................ 135 UsernameForFChangeHistory ............................................................................................. 136 Deleting the safety program ................................................................................................. 137

SIMATIC Safety - Configuring and Programming

12

Programming and Operating Manual, 10/2019, A5E02714440-AK

Table of contents

5.2 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.2.10

Defining F-Runtime Groups ..................................................................................................139 Rules for F-Runtime Groups of the Safety Program.............................................................139 Procedure for defining an F-runtime group (S7-300, S7-400) ..............................................141 Procedure for defining an F-runtime group (S7-1200, S7-1500) ..........................................145 F-runtime group communication (S7-300, S7-400) ..............................................................150 F-runtime group communication (S7-1200, S7-1500) ..........................................................154 F-shared DB (S7-300, S7-400) .............................................................................................157 F-runtime group information DB (S7-1200, S7-1500)...........................................................158 Deleting an F-runtime group .................................................................................................159 Changing the F-runtime group (S7-300, S7-400) .................................................................159 Changing the F-runtime group (S7-1200, S7-1500) .............................................................160

5.3 5.3.1 5.3.2 5.3.3

Creating F-blocks in FBD / LAD............................................................................................160 Creating F-blocks..................................................................................................................160 Know-how protection ............................................................................................................162 Reuse of F-blocks .................................................................................................................163

5.4

Programming startup protection ...........................................................................................165

6 F-I/O access ....................................................................................................................................... 166

6.1

Addressing F-I/O...................................................................................................................166

6.2

Value status (S7-1200, S7-1500) .........................................................................................168

6.3

Process Data or Fail-Safe Values.........................................................................................172

6.4 6.4.1 6.4.2 6.4.2.1 6.4.2.2 6.4.2.3 6.4.2.4 6.4.2.5 6.4.2.6 6.4.2.7 6.4.2.8 6.4.2.9 6.4.3

F-I/O DB ................................................................................................................................174 Name and number of the F-I/O DB.......................................................................................174 Tags of the F-I/O DB.............................................................................................................175 PASS_ON .............................................................................................................................177 ACK_NEC .............................................................................................................................177 ACK_REI ...............................................................................................................................178 IPAR_EN ...............................................................................................................................179 DISABLE ...............................................................................................................................181 QBAD/PASS_OUT/DISABLED/QBAD_I_xx/QBAD_O_xx and value status.........................181 ACK_REQ .............................................................................................................................182 IPAR_OK ............................................................................................................................... 182 DIAG .....................................................................................................................................183 Accessing tags of the F-I/O DB ............................................................................................184

6.5 6.5.1 6.5.2 6.5.3 6.5.4

Passivation and reintegration of F-I/O ..................................................................................185 After startup of F-system.......................................................................................................186 After communication errors...................................................................................................188 After F-I/O or channel faults..................................................................................................190 Group passivation .................................................................................................................194

7 Implementation of user acknowledgment............................................................................................. 196

7.1

Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP

Master or IO controller ..........................................................................................................196

7.2

Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or

I-device .................................................................................................................................201

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

13

Table of contents

8 Data exchange between standard user program and safety program ...................................................204

8.1

Data Transfer from the Safety Program to the Standard User Program ............................. 205

8.2

Data Transfer from Standard User Program to Safety Program ......................................... 207

9 Safety-related communication ..............................................................................................................209

9.1 9.1.1 9.1.2 9.1.2.1 9.1.2.2 9.1.2.3 9.1.2.4 9.1.3 9.1.3.1 9.1.3.2 9.1.3.3 9.1.3.4 9.1.4 9.1.4.1 9.1.4.2 9.1.4.3 9.1.4.4 9.1.5 9.1.5.1 9.1.5.2
9.1.5.3 9.1.5.4
9.1.6 9.1.6.1 9.1.6.2 9.1.6.3 9.1.6.4 9.1.7 9.1.7.1 9.1.7.2 9.1.7.3 9.1.8 9.1.9 9.1.9.1 9.1.9.2 9.1.9.3 9.1.9.4

Configuring and programming communication (S7-300, S7-400) ....................................... 209 Overview of communication ................................................................................................. 209 Safety-related IO controller-IO controller communication.................................................... 212 Configure safety-related IO controller-IO controller communication.................................... 212 Safety-related IO controller-IO controller communication via SENDDP and RCVDP ......... 216 Program safety-related IO controller-IO controller communication ..................................... 217 Safety-related IO controller-IO controller communication - Limits for data transfer ............ 221 Safety-related master-master communication ..................................................................... 222 Configure safety-related master-master communication ..................................................... 222 Safety-related master-master communication via SENDDP and RCVDP........................... 227 Program safety-related master-master communication....................................................... 228 Safety-related master-master communication:Limits for data transfer ................................ 232 Safety-related IO controller-I-device communication........................................................... 232 Configuring safety-related communication between IO controller and I-device .................. 232 Safety-related IO controller-I-device communication via SENDDP and RCVDP ................ 235 Programming safety-related IO controller I-device communication ..................................... 236 Safety-related IO-Controller-IO-Device communication - Limits for data transfer ............... 238 Safety-related master-I-slave communication ..................................................................... 239 Configuring safety-related master-I-slave communication .................................................. 239 Safety-related master-I-slave or I-slave-I-slave communication via SENDDP and RCVDP................................................................................................................................. 241 Program the safety-related master-I-slave or I-slave-I-slave communication ..................... 242 Limits for data transfer of safety-related master-I-slave or I-slave-I-slave communication ..................................................................................................................... 245 Safety-related I-slave-I-slave communication ...................................................................... 246 Configure safety-related I-slave-I-slave communication...................................................... 246 Safety-related I-slave-I-slave communication via SENDDP and RCVDP ........................... 250 Programming safety-related I-slave-I-slave communication................................................ 250 Limits for data transfer of safety-related I-slave-I-slave communication ............................. 250 Safety-Related I-Slave-Slave Communication..................................................................... 251 Configuring Safety-Related I-Slave-Slave Communication ................................................. 251 Safety-Related I-Slave-Slave Communication - F-I/O Access ............................................ 256 Limits for data transfer of safety-related I-slave-I-slave communication ............................. 256 Safety-related IO controller-I-slave communication............................................................. 257 Safety-related communication via S7 connections .............................................................. 258 Configuring safety-related communication via S7 connections ........................................... 258 Communication via SENDS7, RCVS7, and F-Communication DB ..................................... 260 Programming safety-related communication via S7 connections ........................................ 261 Safety-related communication via S7 connections - Limits of data transfer ........................ 265

SIMATIC Safety - Configuring and Programming

14

Programming and Operating Manual, 10/2019, A5E02714440-AK

Table of contents

9.1.10 9.1.10.1 9.1.10.2
9.1.10.3
9.1.10.4 9.1.10.5
9.2 9.2.1 9.2.2 9.2.2.1 9.2.2.2 9.2.2.3 9.2.2.4 9.2.3 9.2.3.1 9.2.3.2 9.2.3.3 9.2.3.4 9.2.4 9.2.4.1 9.2.4.2 9.2.4.3 9.2.4.4 9.2.5 9.2.5.1 9.2.5.2 9.2.5.3 9.2.5.4 9.2.6 9.2.6.1 9.2.7 9.2.7.1 9.2.7.2
9.2.7.3
9.3 9.3.1 9.3.2
9.4
9.4.1
9.5 9.5.1 9.5.1.1 9.5.1.2

Safety-related communication with other S7 F-systems ......................................................265 Introduction ...........................................................................................................................265 Communication with S7 Distributed Safety via PN/PN coupler (IO controller-IO controller communication).....................................................................................................266 Communication with S7 Distributed Safety via DP/DP coupler (master-master communication) ..................................................................................................................... 267 Communication with S7 Distributed Safety via S7 connections ...........................................268 Communication with S7 F/FH Systems via S7 connections.................................................270
Configuring and programming communication (S7-1200, S7-1500) ....................................273 Overview of communication..................................................................................................273 Safety-related IO controller-IO controller communication.....................................................276 Configure safety-related IO controller-IO controller communication ....................................276 Safety-related IO controller-IO controller communication via SENDDP and RCVDP ..........280 Program safety-related IO controller-IO controller communication ......................................281 Safety-related IO controller-IO controller communication - Limits for data transfer .............285 Safety-related master-master communication ......................................................................285 Configure safety-related master-master communication......................................................285 Safety-related master-master communication via SENDDP and RCVDP ...........................289 Program safety-related master-master communication........................................................290 Safety-related master-master communication:Limits for data transfer .................................294 Safety-related IO controller-I-device communication............................................................294 Configuring safety-related communication between IO controller and I-device ...................294 Safety-related IO controller-I-device communication via SENDDP and RCVDP .................297 Programming safety-related IO controller I-device communication......................................298 Safety-related IO-Controller-IO-Device communication - Limits for data transfer ................301 Safety-related master-I-slave communication ......................................................................302 Configuring safety-related master-I-slave communication ...................................................302 Safety-related master-I-slave communication via SENDDP and RCVDP............................305 Programming safety-related master-I-slave communication ................................................306 Limits for data transfer of safety-related master-I-slave communication..............................308 Safety-related IO controller-I-slave communication..............................................................309 Safety-related IO controller-I-slave communication..............................................................309 Safety-related communication to S7 F-System S7 Distributed Safety .................................310 Introduction ...........................................................................................................................310 Communication with S7 Distributed Safety via PN/PN coupler (IO controller-IO controller communication).....................................................................................................310 Communication with S7 Distributed Safety via DP/DP coupler (master-master communication) ..................................................................................................................... 311
Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500) ....312 Flexible F-Link.......................................................................................................................312 Interfaces of the F-communication DBs (S7-1200, S7-1500)...............................................316
Configuring and programming communication between S7-300/400 and S7-1200/1500 F-CPUs .................................................................................................................................319 Overview of communication..................................................................................................319
Configuring and programming communication in several projects.......................................320 Safety-oriented IO Controller I device communication in several projects ...........................320 Configuring safety-related communication between IO controller and I-device ...................320 Programming safety-related IO Controller I-device communication .....................................322

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

15

Table of contents

10 Compiling and commissioning a safety program...................................................................................323

10.1

Compiling the safety program .............................................................................................. 323

10.2

Safety program work memory requirements (S7-300, S7-400) ........................................... 324

10.3 10.3.1 10.3.1.1
10.3.1.2 10.3.1.3 10.3.1.4 10.3.1.5 10.3.1.6 10.3.1.7 10.3.1.8 10.3.2 10.3.2.1 10.3.2.2 10.3.3
10.3.4 10.3.5 10.3.6
10.3.7 10.3.8 10.3.8.1 10.3.8.2

Downloading project data .................................................................................................... 325 Downloading project data to an F-CPU ............................................................................... 325 Downloading project data to an S7-300/400 F-CPU with memory card inserted (SIMATIC Micro memory card or flash card) ....................................................................... 329 Downloading project data to an S7-400 F-CPU without flash card inserted ....................... 329 Downloading project data to a WinAC RTX F...................................................................... 330 Downloading individual F-blocks to an S7-300/400 F-CPU................................................. 331 Downloading project data to an S7-1200 F-CPU without program card inserted................ 332 Downloading project data to an S7-1200 F-CPU with program card inserted..................... 333 Downloading project data to an S7-1500 F-CPU................................................................. 335 Downloading project data to an S7-1500 F Software Controller ......................................... 335 Downloading project data to a memory card and inserting a memory card ........................ 337 Inserting a SIMATIC Micro Memory Card or flash card into an S7-300/400 F-CPU ........... 338 Inserting a transfer card into an S7-1200 F-CPU ................................................................ 339 Downloading project data of an S7-1200 F-CPU from the internal load memory to an empty SIMATIC Memory Card............................................................................................. 341 Updating project data on an S7-1200 F-CPU using a transfer card .................................... 342 Restoring a backup of the safety program to an S7-300/1200/1500 F-CPU ....................... 342 Special features when creating and importing images of an S7-1500 F Software Controller.............................................................................................................................. 343 Loading project data from an F-CPU to a programming device / PC .................................. 345 Loading PC station via the configuration file........................................................................ 346 Creating a configuration file ................................................................................................. 347 Importing the configuration file............................................................................................. 348

10.4

Program identification .......................................................................................................... 352

10.5

Comparing Safety Programs................................................................................................ 354

10.6

Printing project data ............................................................................................................. 357

10.7 10.7.1 10.7.2 10.7.3 10.7.4 10.7.5 10.7.6

Testing the safety program .................................................................................................. 359 Overview of Testing the Safety Program ............................................................................. 359 Disabling safety mode.......................................................................................................... 360 Testing the safety program .................................................................................................. 363 Testing the safety program with S7-PLCSIM....................................................................... 366 Changing the safety program in RUN mode (S7-300, S7-400) ........................................... 371 Changing the standard user program in RUN mode (S7-1200, S7-1500) .......................... 374

10.8

F-change history .................................................................................................................. 375

SIMATIC Safety - Configuring and Programming

16

Programming and Operating Manual, 10/2019, A5E02714440-AK

Table of contents

11 System acceptance............................................................................................................................. 376

11.1

Overview of System Acceptance ..........................................................................................376

11.2

Correctness of the safety program including hardware configuration (including testing).....378

11.3

Completeness of the safety summary ..................................................................................379

11.4

Compliance of the system library elements used in the safety program with Annex 1 of

the Report for the TÜV certificate .........................................................................................380

11.5

Compliance of the know-how protected F-blocks used in the safety program with their

safety documentation............................................................................................................381

11.6

Completeness and correctness of the hardware configuration ............................................383

11.7

Correctness and completeness of the communication configuration ...................................391

11.8

Identity of online and offline program....................................................................................393

11.9

Other characteristics .............................................................................................................394

11.10

Acceptance of Changes........................................................................................................396

12 Operation and Maintenance ................................................................................................................ 401

12.1

Notes on Safety Mode of the Safety Program ......................................................................401

12.2

Replacing Software and Hardware Components .................................................................404

12.3

Guide to diagnostics (S7-300, S7-400).................................................................................407

12.4

Guide to diagnostics (S7-1500) ............................................................................................408

12.5

Guide to diagnostics (S7-1200) ............................................................................................409

13 STEP 7 Safety V16 instructions........................................................................................................... 410

13.1 13.1.1 13.1.1.1 13.1.1.2 13.1.1.3 13.1.1.4 13.1.2 13.1.2.1 13.1.2.2 13.1.2.3 13.1.2.4 13.1.2.5

General .................................................................................................................................411 LAD .......................................................................................................................................411 New network (STEP 7 Safety V16).......................................................................................411 Empty box (STEP 7 Safety V16) ..........................................................................................412 Open branching (STEP 7 Safety V16)..................................................................................413 Close branching (STEP 7 Safety V16) .................................................................................414 FBD .......................................................................................................................................415 New network (STEP 7 Safety V16).......................................................................................415 Empty box (STEP 7 Safety V16) ..........................................................................................416 Open branching (STEP 7 Safety V16)..................................................................................417 Insert binary input (STEP 7 Safety V16)...............................................................................418 Invert RLO (STEP 7 Safety V16) ..........................................................................................419

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

17

Table of contents

13.2 13.2.1 13.2.1.1 13.2.1.2 13.2.1.3 13.2.1.4 13.2.1.5 13.2.1.6 13.2.1.7 13.2.1.8 13.2.1.9 13.2.1.10 13.2.1.11 13.2.1.12 13.2.2 13.2.2.1 13.2.2.2 13.2.2.3 13.2.2.4 13.2.2.5 13.2.2.6 13.2.2.7 13.2.2.8 13.2.2.9 13.2.2.10 13.2.2.11 13.2.2.12
13.3 13.3.1 13.3.2 13.3.3 13.3.4 13.3.5 13.3.6 13.3.7 13.3.8 13.3.9
13.4 13.4.1 13.4.2 13.4.3
13.5 13.5.1 13.5.2 13.5.3

Bit logic operations............................................................................................................... 420 LAD ...................................................................................................................................... 420 ---| |---: NO contact (STEP 7 Safety V16) ............................................................................ 420 ---| / |---: NC contact (STEP 7 Safety V16)........................................................................... 421 --|NOT|--: Invert RLO (STEP 7 Safety V16) ......................................................................... 422 ---( )---: Assignment (STEP 7 Safety V16) ........................................................................... 423 ---( R )---: Reset output (STEP 7 Safety V16) ...................................................................... 424 ---( S )---: Set output (STEP 7 Safety V16) .......................................................................... 425 SR: Set/reset flip-flop (STEP 7 Safety V16) ........................................................................ 427 RS: Reset/set flip-flop (STEP 7 Safety V16)........................................................................ 429 --|P|--: Scan operand for positive signal edge (STEP 7 Safety V16) ................................... 431 --|N|--: Scan operand for negative signal edge (STEP 7 Safety V16) ................................. 433 P_TRIG: Scan RLO for positive signal edge (STEP 7 Safety V16) ..................................... 435 N_TRIG: Scan RLO for negative signal edge (STEP 7 Safety V16) ................................... 437 FBD ...................................................................................................................................... 439 AND logic operation (STEP 7 Safety V16) .......................................................................... 439 OR logic operation (STEP 7 Safety V16)............................................................................. 441 X: EXCLUSIVE OR logic operation (STEP 7 Safety V16) ................................................... 442 =: Assignment (STEP 7 Safety V16).................................................................................... 444 R: Reset output (STEP 7 Safety V16) ................................................................................. 445 S: Set output (STEP 7 Safety V16)...................................................................................... 446 SR: Set/reset flip-flop (STEP 7 Safety V16) ........................................................................ 448 RS: Reset/set flip-flop (STEP 7 Safety V16)........................................................................ 450 P: Scan operand for positive signal edge (STEP 7 Safety V16).......................................... 452 N: Scan operand for negative signal edge (STEP 7 Safety V16) ........................................ 454 P_TRIG: Scan RLO for positive signal edge (STEP 7 Safety V16) ..................................... 456 N_TRIG: Scan RLO for negative signal edge (STEP 7 Safety V16) ................................... 457
Safety functions.................................................................................................................... 459 ESTOP1: Emergency STOP/OFF up to stop category 1 (STEP 7 Safety V16) .................. 459 TWO_HAND: Two-hand monitoring (STEP 7 Safety Advanced V16) (S7-300, S7-400) .... 465 TWO_H_EN: Two-hand monitoring with enable (STEP 7 Safety V16)................................ 468 MUTING: Muting (STEP 7 Safety Advanced V16) (S7-300, S7-400).................................. 474 MUT_P: Parallel muting (STEP 7 Safety V16)..................................................................... 485 EV1oo2DI: 1oo2 evaluation with discrepancy analysis (STEP 7 Safety V16)..................... 496 FDBACK: Feedback monitoring (STEP 7 Safety V16) ........................................................ 504 SFDOOR: Safety door monitoring (STEP 7 Safety V16)..................................................... 511 ACK_GL: Global acknowledgment of all F-I/O in an F-runtime group (STEP 7 Safety V16)...................................................................................................................................... 518
Timer operations .................................................................................................................. 520 TP: Generate pulse (STEP 7 Safety V16) ........................................................................... 520 TON: Generate on-delay (STEP 7 Safety V16) ................................................................... 525 TOF: Generate off-delay (STEP 7 Safety V16) ................................................................... 530
Counter operations .............................................................................................................. 535 CTU: Count up (STEP 7 Safety V16) .................................................................................. 535 CTD: Count down (STEP 7 Safety V16) .............................................................................. 537 CTUD: Count up and down (STEP 7 Safety V16) ............................................................... 539

SIMATIC Safety - Configuring and Programming

18

Programming and Operating Manual, 10/2019, A5E02714440-AK

Table of contents

13.6 13.6.1 13.6.2 13.6.3 13.6.4 13.6.5 13.6.6
13.7 13.7.1 13.7.2 13.7.3 13.7.4 13.7.5 13.7.6
13.8 13.8.1 13.8.2 13.8.3 13.8.4 13.8.5
13.9 13.9.1 13.9.2
13.9.3
13.9.4 13.9.5
13.10 13.10.1 13.10.2 13.10.3 13.10.4 13.10.5
13.11 13.11.1 13.11.2 13.11.3
13.12 13.12.1 13.12.2

Comparator operations .........................................................................................................542 CMP ==: Equal (STEP 7 Safety V16) ...................................................................................542 CMP <>: Not equal (STEP 7 Safety V16).............................................................................544 CMP >=: Greater or equal (STEP 7 Safety V16) ..................................................................546 CMP <=: Less or equal (STEP 7 Safety V16) ......................................................................548 CMP >: Greater than (STEP 7 Safety V16) ..........................................................................550 CMP <: Less than (STEP 7 Safety V16)...............................................................................552
Math functions.......................................................................................................................554 ADD: Add (STEP 7 Safety V16) ...........................................................................................554 SUB: Subtract (STEP 7 Safety V16).....................................................................................557 MUL: Multiply (STEP 7 Safety V16)......................................................................................560 DIV: Divide (STEP 7 Safety V16) .........................................................................................563 NEG: Create twos complement (STEP 7 Safety V16)..........................................................567 ABS: Form absolute value (STEP 7 Safety V16) (S7-1200, S7-1500).................................570
Move operations ...................................................................................................................572 MOVE: Move value (STEP 7 Safety V16) ............................................................................572 RD_ARRAY_I: Read value from INT F-array (STEP 7 Safety V16) (S7-1500) ....................574 RD_ARRAY_DI: Read value from DINT F-array (STEP 7 Safety V16) (S7-1500)...............577 WR_FDB: Write value indirectly to an F-DB (STEP 7 Safety V16) (S7-300, S7-400)..........579 RD_FDB: Read value indirectly from an F-DB (STEP 7 Safety Advanced V16) (S7300, S7-400) .........................................................................................................................582
Conversion operations ..........................................................................................................584 CONVERT: Convert value (STEP 7 Safety V16) .................................................................584 BO_W: Convert 16 data elements of data type BOOL to a data element of data type WORD (STEP 7 Safety V16) ................................................................................................586 W_BO: Convert a data element of data type WORD to 16 data elements of data type BOOL (STEP 7 Safety V16) .................................................................................................589 SCALE: Scale value (STEP 7 Safety V16) ...........................................................................592 SCALE_D: Scale value to data type DINT (STEP 7 Safety V16) (S7-1200, S7-1500) ........595
Program control operations ..................................................................................................598 JMP: Jump if RLO = 1 (STEP 7 Safety V16) ........................................................................598 JMPN: Jump if RLO = 0 (STEP 7 Safety V16) .....................................................................600 LABEL: Jump label (STEP 7 Safety V16).............................................................................602 RET: Return (STEP 7 Safety V16) .......................................................................................604 OPN: Open global data block (STEP 7 Safety Advanced V16) (S7-300, S7-400)...............605
Word logic operations ...........................................................................................................607 AND: AND logic operation (STEP 7 Safety V16)..................................................................607 OR: OR logic operation (STEP 7 Safety V16) ......................................................................609 XOR: EXCLUSIVE OR logic operation (STEP 7 Safety V16) ..............................................611
Shift and rotate......................................................................................................................613 SHR: Shift right (STEP 7 Safety V16)...................................................................................613 SHL: Shift left (STEP 7 Safety V16) .....................................................................................616

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

19

Table of contents

13.13 13.13.1

Operating ............................................................................................................................. 619 ACK_OP: Fail-safe acknowledgment (STEP 7 Safety V16) ................................................ 619

13.14 13.14.1 13.14.1.1 13.14.1.2
13.14.2 13.14.2.1

Additional instructions .......................................................................................................... 627 LAD ...................................................................................................................................... 627 ---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400)............... 627 ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7400) ...................................................................................................................................... 629 FBD ...................................................................................................................................... 630 OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) .......................... 630

13.15 13.15.1 13.15.1.1
13.15.2 13.15.2.1

Communication .................................................................................................................... 631 PROFIBUS/PROFINET ....................................................................................................... 631 SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16)............................................................................................................ 631 S7 communication ............................................................................................................... 642 SENDS7 and RCVS7: Communication via S7 connections (STEP 7 Safety Advanced V16) (S7-300, S7-400) ......................................................................................................... 642

A Monitoring and response times ............................................................................................................649

A.1 A.1.1 A.1.2 A.1.3 A.1.4

Configuring monitoring times ............................................................................................... 650 Minimum monitoring time for the F-runtime group cycle time.............................................. 652 Minimum monitoring time for safety-related communication between F-CPU and F-I/O .... 652 Minimum monitoring time of safety-related CPU-CPU communication ............................... 654 Monitoring Time for Safety-Related Communication between F-Runtime Groups ............. 654

A.2

Response Times of Safety Functions .................................................................................. 655

B Checklist..............................................................................................................................................658

Glossary ..............................................................................................................................................664

Index ...................................................................................................................................................677

SIMATIC Safety - Configuring and Programming

20

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview

1

1.1

Overview

SIMATIC Safety fail-safe system
The SIMATIC Safety fail-safe system is available to implement safety concepts in the area of machine and personnel protection (for example, for emergency STOP devices for machining and processing equipment) and in the process industry (for example, for implementation of protection functions for safety devices of instrumentation and controls and of burners).
WARNING
The SIMATIC Safety F-system is used to control processes that have a safe state that can be reached immediately through shutdown.
SIMATIC Safety can only be used for controlling processes in which an immediate shutdown does not pose a danger to persons or the environment.
When realizing safety applications including the creation of the safety-relevant project data you have to take into consideration the standards, directives and guidelines relevant for your application. In particular include standards in which the software creation process is described (for example IEC 61508-3 or ISO 13849-1). (S062)

Achievable safety requirements
SIMATIC Safety F-systems can satisfy the following safety requirements:
 Safety integrity level SIL3 in accordance with IEC 61508:2010
 Performance Level (PL) e and category 4 in accordance with ISO 13849-1:2015 or EN ISO 13849-1:2015

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

21

Product Overview 1.1 Overview
Principles of safety functions in SIMATIC Safety
Functional safety is implemented principally through safety functions in the software. Safety functions are executed by the SIMATIC Safety system in order to bring the system to a safe state or maintain it in a safe state in case of a dangerous event. Safety functions are contained mainly in the following components:
 In the safety-related user program (safety program) in the F-CPU
 In the fail-safe inputs and outputs (F-I/O)
The F-I/O ensure the safe processing of field information (sensors: e.g. emergency STOP pushbutton, light barriers; actuators, e.g. for motor control). They have all of the required hardware and software components for safe processing, in accordance with the required Safety Integrity Level. The user only has to program the user safety function. The safety function for the process can be provided through a user safety function or a fault reaction function. In the event of an error, if the F-system can no longer execute its actual user safety function, it executes the fault reaction function; for example, the associated outputs are shut down, and the F-CPU switches to STOP mode, if necessary.
Example of user safety function and fault reaction function
In the event of overpressure, the F-system will open a valve (user safety function). In the event of a hazardous fault in the F-CPU, all outputs are deactivated (fault reaction function), whereby the valve is opened, and the other actuators also attain a safe state. For a nonfaulty F-system, only the valve would be opened.

SIMATIC Safety - Configuring and Programming

22

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.2 Hardware and Software Components

1.2

Hardware and Software Components

Hardware and software components of SIMATIC Safety
The following figure provides an overview of the hardware and software components required to configure and operate a SIMATIC Safety F-system.

Hardware components for PROFIBUS DP
You can use the following fail-safe components in SIMATIC Safety F-systems on PROFIBUS DP:  F-CPUs with DP interface, such as CPU 1516F-3 PN/DP  Fail-safe inputs and outputs (F-I/O), such as:
­ S7-300 fail-safe signal modules in ET 200M ­ S7-1500/ET 200MP fail-safe modules ­ ET 200SP fail-safe modules ­ ET 200S fail-safe modules ­ ET 200pro fail-safe modules ­ ET 200iSP fail-safe modules ­ Fail-safe I/O modules ET 200eco (S7-300, S7-400) ­ Fail-safe GSD based DP slaves (light grid, laser scanner, etc.) You have the option to expand the configuration with standard I/O.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

23

Product Overview 1.2 Hardware and Software Components
The following CPs/CMs can be used in a SIMATIC Safety F-system on PROFIBUS DP for connection to distributed F-I/O:  CP 443-5 Extended  CM 1243-5  CM 1542-5  CP 1542-5  SP CM DP
Hardware components for PROFINET IO
You can use the following fail-safe components in SIMATIC Safety F-systems on PROFINET IO:  F-CPUs with PN interface, e.g., CPU 1214FC DC/DC/DC  Fail-safe inputs and outputs (F-I/O), such as:
­ S7-300 fail-safe signal modules in ET 200M ­ S7-1500/ET 200MP fail-safe modules ­ ET 200SP fail-safe modules ­ ET 200S fail-safe modules ­ ET 200pro fail-safe modules ­ ET 200eco PN fail-safe I/O modules ­ Fail-safe GSD based I/O devices (light grid, laser scanner, etc.) You have the option to expand the configuration with standard I/O. The following CPs/CMs can be used in a SIMATIC Safety F-system on PROFINET IO for connection to distributed F-I/O:  CP 443-1  CP 443-1 Advanced-IT  CM 1542-1  CP 1545-1

SIMATIC Safety - Configuring and Programming

24

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.2 Hardware and Software Components

Hardware components for central configuration
You can use the following fail-safe components in SIMATIC Safety F-systems centrally on an F-CPU:  S7-300 fail-safe signal modules  S7-1200 fail-safe modules  S7-1500 fail-safe modules  ET 200SP fail-safe modules  ET 200S fail-safe modules  ET 200pro fail-safe modules (can also be used with CPU 1516proF-2) You have the option to expand the configuration with standard I/O.

STEP 7 Safety

This documentation describes STEP 7 Safety Advanced V16 and STEP 7 Safety Basic V16. STEP 7 Safety is the configuration and programming software for the SIMATIC Safety Fsystem. With STEP 7 Safety, you receive the following:
 Support for configuring the F-I/O in the hardware and network editor of TIA Portal
 Support for creating the safety program using LAD and FBD and integrating error detection functions into the safety program
 Instructions for programming your safety program in LAD and FBD, which you are familiar with from the standard user programs
 Instructions for programming your safety program in LAD and FBD with special safety functions
Moreover, STEP 7 Safety offers functions for comparing safety programs and for assisting you with the system acceptance.

WARNING
The configuration of F-CPUs and F-I/Os as well as the programming of F-blocks must be carried out in TIA Portal as described in this documentation. You must observe all aspects described in the section System acceptance (Page 376) to ensure safe operation with the system SIMATIC SAFETY. Any other procedures are not permitted. (S056)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

25

Product Overview 1.2 Hardware and Software Components
Optional packages In addition to the STEP 7 Safety, you can use optional packages with F-I/O and F-CPUs and
use instructions for programming your safety program with special safety functions within the SIMATIC Safety F-system. For example, SINUMERIK or Failsafe HMI Mobile Panels. The installation, parameter assignment and programming as well as what is important to note during system acceptance, is described in the documentation for the specific optional packages. Also read the notes in Configurations supported by the SIMATIC Safety F-system (Page 64).
TIA Portal Cloud Connector
WARNING
Use of the TIA Portal Cloud Connector is only intended for engineering work with TIA Portal. This means online access in productive operation (e.g. SCADA) is not permitted. This is particularly true for safety programs. (S068)

Openness

Openness as part of STEP 7 Safety is supported with the functions listed below. The use of Openness in productive operation is not permitted. As part of STEP 7 Safety the following is supported:  Inserting / removing F-CPUs and F-I/Os  Copying / deleting F-CPUs and F-I/Os from templates  Compiling software (incl. safety program)  Reading / configuring fail-safe parameters of the F-CPU  Reading / configuring fail-safe parameters of F-I/O devices  Reading / configuring fail-safe modules of ET 200SP  Reading, declaring or deleting fail-safe variables in the PLC variable table  Updating projects to the latest type versions of F-blocks  Consistent station upload  Export and import of F-blocks and F-compliant PLC data types (UDT)  Comparison of hardware and software  Version control interface (VCI)  Reading out PLC online fingerprint for the safety program The following are not supported.  Downloading to device  Compiling hardware

SIMATIC Safety - Configuring and Programming

26

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.2 Hardware and Software Components
Note If access protection is set up for the safety-related project data, actions that require access authorization can only be executed when you are logged in to the safety program. Login is only possible over the TIA Portal user interface.
WARNING
When using Openness while handling safety-related project data their integrity must be ensured (for example in the context of saving or transferring by applications for "Source Code Management"). In case of a connection of external tools, observe the requirements for offline support tools according to IEC 61508-3. A violation of the integrity of the safetyrelated project data can not be determined during the import by STEP 7 Safety. A final verification of the correctness of the safety-related project data has to be carried out as described in the section System acceptance (Page 376). (S070)
Virtual environments
WARNING Use of virtual environments in the engineering system Note that a HYPERVISOR or a client software of a HYPERVISOR is not permitted to perform any function that reproduces recorded message frame sequences with correct time behavior in the network with accessible systems. Make sure that this condition is met, for example, when using the following functions: · Reset of captured statuses (snapshots) of the virtual machines (VMs) · Suspending and resuming the VMs · Replay of recorded sequences in the VMs · Moving VMs between hosts in productive operation (e.g. Fault Tolerance (FT)) · Digital twins of VMs in the virtual environment If in doubt, disable these functions in the settings (HYPERVISOR administration console). (S067)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

27

Product Overview 1.3 Installing/uninstalling the STEP 7 Safety Basic V16 license

Safety program
You can create a safety program using the program editor. You can program fail-safe FBs and FCs in the FBD or LAD programming languages using the instructions from STEP 7 Safety and create fail-safe DBs.
Safety checks are automatically performed and additional fail-safe blocks for error detection and fault reaction are inserted when the safety program is compiled. This ensures that failures and errors are detected and appropriate reactions are triggered to maintain the Fsystem in the safe state or bring it to a safe state.
In addition to the safety program, a standard user program can be run on the F-CPU. A standard program can coexist with a safety program in an F-CPU because unintentional influencing of the safety-related data of the safety program is uncovered by the standard user program.
Data can be exchanged between the safety program and the standard user program in the F-CPU by means of bit memory or data of a standard DB or by accessing the process image input and output.

See also

Data Transfer from the Safety Program to the Standard User Program (Page 205)

1.3

Installing/uninstalling the STEP 7 Safety Basic V16 license

After the installation of the STEP 7 Safety Basic V16 license, the functional scope of STEP 7 Safety Basic V16 is available to you.

Software requirements for STEP 7 Safety Basic V16
At a minimum, the following software package must be installed on the programming device or PC:
 SIMATIC STEP 7 Basic V16

Installing the STEP 7 Safety Basic V16 license
1. Start the Automation License Manager on the programming device/PC on which the "SIMATIC STEP 7 Basic V16" or "SIMATIC STEP 7 Advanced V16" software package is installed.
2. Install the STEP 7 Safety Basic V16 license as described in the Automation License Manager help.

Uninstalling the STEP 7 Safety Basic V16 license
To uninstall the STEP 7 Safety Basic V16 license, proceed as described in the Automation License Manager help.

SIMATIC Safety - Configuring and Programming

28

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.4 Installing/uninstalling the STEP 7 Safety Advanced V16 license

1.4

Installing/uninstalling the STEP 7 Safety Advanced V16 license

After the installation of the STEP 7 Safety Advanced V16 license, the functional scope of STEP 7 Safety Advanced V16 is available to you.

Software requirements for STEP 7 Safety Advanced V16
At a minimum, the following software package must be installed on the programming device or PC:
 SIMATIC STEP 7 Professional V16

Installing the STEP 7 Safety Advanced V16 license
1. Start the Automation License Manager on the programming device/PC on which the "SIMATIC STEP 7 Professional V16" software package is installed.
2. Install the STEP 7 Safety Advanced V16 license as described in the Automation License Manager help.

Uninstalling the STEP 7 Safety Advanced V16 license
To uninstall the STEP 7 Safety Advanced V16 license, proceed as described in the Automation License Manager help.

1.5

Installing/uninstalling STEP 7 Safety PowerPack

After the installation of the STEP 7 Safety PowerPack the functional scope of STEP 7 Safety Advanced V16 is available to you.

Software requirements for STEP 7 Safety PowerPack
At a minimum, the following software package must be installed on the programming device or PC:
 SIMATIC STEP 7 Professional V16

Installing STEP 7 Safety PowerPack
1. Start the Automation License Manager on the programming device/PC on which the "SIMATIC STEP 7 Professional V16" software package is installed.
2. Install the license included in the STEP 7 Safety PowerPack as described in the Automation License Manager help.

Uninstalling STEP 7 Safety PowerPack
To uninstall the license included in the STEP 7 Safety PowerPack, proceed as described in the Automation License Manager help.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

29

Product Overview 1.6 Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced

1.6

Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7

Safety Advanced

Introduction

In STEP 7 Safety Advanced, you can continue to use projects with safety programs that you created with S7 Distributed Safety V5.4 SP5.

Requirement

STEP 7 Safety Advanced, S7 Distributed Safety V5.4 SP5, and the F-Configuration Pack used to create the project must all be installed on the computer you are using for migration. The F-Configuration Pack V5.4 SP5 to V5.5 SP13is supported.
To that end, the projects must have been compiled in S7 Distributed Safety V5.4 SP5 and with the F-Configuration Pack.

Prior to migration
Delete all F-blocks not required by the safety program in your S7 Distributed Safety V5.4 SP5 project prior to migration.

Procedure as in STEP 7 Professional
Proceed just as you would for standard projects to migrate projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced. Once the migration is complete, you should verify using the collective F-signature whether the project was migrated unchanged.
Note If you use the safety program to migrate F-blocks with know-how protection, remove the know-how protection prior to migration. You can assign the F-blocks know-how protection again once the migration is completed.
This migration approach is described in the "Migration" section of the STEP 7 Professional Help. Special considerations about STEP 7 Safety Advanced are described below.
Note We recommend that you enable the "Include hardware configuration" option in the "Migrating project" window.

SIMATIC Safety - Configuring and Programming

30

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.6 Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced
Older hardware versions Older versions of F-hardware may not be supported by STEP 7 Safety Advanced .
If you have used and configured versions of F-CPUs and F-I/O in S7 Distributed Safety projects that are not approved for STEP 7 Safety Advanced, you will need to upgrade this hardware to the new version in S7 Distributed Safety V5.4 SP5 and the corresponding FConfiguration Pack. Once the upgrade is completed, migration to STEP 7 Safety Advanced is feasible. A Product Information with a list of approved hardware is available on the Internet (https://support.industry.siemens.com/cs/ww/de/view/109481784):
Particularities for safety-related CPU-CPU communication via S7 connections
You can find information about the special considerations for migrated projects with safetyrelated CPU-CPU communication via S7 connections in Safety-related communication via S7 connections (Page 258). Please also note Communication with S7 Distributed Safety via S7 connections (Page 268).
Particularities for ESTOP1 or FDBACK instructions
Information on the special considerations when using the ESTOP1 and FDBACK instructions can be found in the "Instruction versions" section in ESTOP1: Emergency STOP/OFF up to stop category 1 (STEP 7 Safety V16) (Page 459) and FDBACK: Feedback monitoring (STEP 7 Safety V16) (Page 504).
Post-migration procedures
Once migration is complete, you have a complete project with a safety program which has retained the program structure of S7 Distributed Safety and the collective F-signature. Fblocks from the S7 Distributed Safety F-library (V1) are converted into instructions that are provided by STEP 7 Safety Advanced. The migrated project therefore does not need to be re-accepted; it can be loaded as is to the F-CPU as long as it has not been modified or compiled since migration.
Note Safety summary You cannot create a safety summary in STEP 7 Safety Advanced for a migrated project. The printout of the project created with S7 Distributed Safety V5.4 SP5 and the corresponding acceptance documents are still valid, because the collective F-signature has been retained.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

31

Product Overview 1.6 Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced
Compiling of the migrated hardware configuration
If you receive an error message after migration and subsequent compilation of the hardware configuration stating that the F-source address does not match the "Central F-source address" parameter of the F-CPU, change the "Central F-source address" parameter. The F-source addresses of all F-I/Os assigned to the F-CPU are reassigned in the process. If after migration of an SM 326; DI 24 x DC 24V (6ES7 326-1BK01-0AB0 and 6ES7 3261BK02-0AB0) and subsequent compilation of the hardware configuration, the error message "F_IParam_ID_1: Value outside the permitted range" is displayed, delete the F-SM and reinsert it. In both cases, subsequent compilation of the safety program is required.
Compiling the migrated safety programs As a result of compilation of the migrated project with STEP 7 Safety Advanced, the existing program structure (with F-CALL) is converted to the new program structure of STEP 7 Safety Advanced (with main safety block). This changes the F-collective signature and the safety
program has to be validated or acceptance may have to be carried out again. (S7-300, S7-400) You must call up the main safety block according to the F-CALL from an arbitrary block of the standard user program. We recommend a call from an OB 3x.
Note During the first-time compiling of the migrated safety program the call of the F-CALL is replaced automatically by a call of the main safety block, if the calling block of the F-CALL was created using the programming language LAD, FBD or STL.
Note Changing the Safety system version Before compiling with STEP 7 Safety Advanced for the first time, you must change the safety system version to a version which is not equal to 1.0 in the "Settings" area of the Safety Administration Editor. We recommend that you use the highest available version.
Note Using the latest version of instructions If you want to expand the migrated safety program, we recommend that you update to the latest version of the instructions used before compiling with STEP 7 Safety Advanced for the first time. Read the information on instruction versions for each instruction.
Note Note that compiling the migrated safety program extends the runtime of the F-runtime group(s) and increases the memory requirements of the safety program (see also Excel file for calculating response time (http://support.automation.siemens.com/WW/view/en/49368678/133100)).

SIMATIC Safety - Configuring and Programming

32

Programming and Operating Manual, 10/2019, A5E02714440-AK

See also

Product Overview 1.6 Migrating projects from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced
Application example "Migration of a safety program to TIA Portal" (https://support.industry.siemens.com/cs/ww/en/view/109475826)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

33

Product Overview 1.7 Migrating PLC programs to a n F-CPU S7-1500

1.7

Migrating PLC programs to a n F-CPU S7-1500

To migrate an F-CPU S7-300/400 onto an F-CPU S7-1500, proceed as with the migration of a standard CPU S7-300/400 onto a CPU S7-1500.

Points to note after migration:

 Non-automatable actions

­ Creating an F-runtime group and assigning it to the main safety block.

­ The hardware configuration including the I/O of the initial F-CPU is not automatically transferred to an S7-1500 F-CPU. Implement the hardware configuration of the new CPU manually after migration.

Please also read the sections "Specify F-destination address for F-I/O of PROFIsafe address type 1" and "Specify F-destination address for F-I/O of PROFIsafe address type 2" in chapter "Configuring an F-CPU (Page 46)". Otherwise, this can lead to a reassignment of the F-destination addresses in the configuration.

­ When using F-I/Os with PROFIsafe Protocol Version = Expanded Protocol (XP) (for example S7-1500/ET 200MP F-modules) keep in mind that you need one byte more in the address area of S7-1200/1500 F-CPUs than in S7-300/400 F-CPUs.

­ Replacement of the OV instruction by the connection of the ENO output for mathematical functions (Page 554).

­ Replacement of the RD_FDB instruction by the instructions RD_ARRAY_I (Page 574) and RD_ARRAY_DI (Page 577).

­ Replacement of the F-runtime group communication through Communication via Flexible F-Link (Page 154).

 Instructions not supported:

­ MUTING

­ TWO_HAND

­ WR_FDB

­ OPN

­ SENDS7

­ RCVS7

 Data types not supported

­ DWORD

SIMATIC Safety - Configuring and Programming

34

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.7 Migrating PLC programs to a n F-CPU S7-1500
 Changes to safety program programming ­ F_GLOBDB.VKE0/1 replaced by FALSE/TRUE (Page 121). ­ Readable values from the F_GLOBDB replaced by the F-runtime group information DB. Additional information is available under F-shared DB (S7-300, S7-400) (Page 157) and F-runtime group information DB (S7-1200, S7-1500) (Page 158). ­ Replacement of the QBAD_I_xx or QBAD_O_xx tag by the value status. Additional information is available under Value status (S7-1200, S7-1500) (Page 168) and F-I/O DB (Page 174).
 New naming convention when naming the F-I/O DBs  Modified behavior of QBAD and PASS_OUT (Page 181) tags for F-I/O with "RIOforFA
safety" profile. Compile the safety program and eliminate any compilation errors displayed.
Note A new acceptance must be carried out following F-CPU migration.

See also

Programming (Page 114)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

35

Product Overview 1.8 Upgrading projects to STEP 7 Safety V16

1.8

Upgrading projects to STEP 7 Safety V16

1.8.1

Upgrading projects from STEP 7 Safety as of V14 SP1 to V16
If you want to continue working with a project from STEP 7 Safety as of V14 SP1, you must first upgrade the project to STEP 7 Safety V16.
Perform the upgrade following the usual procedure for STEP 7. After upgrading to V16, you have to compile your safety program.
Keep in mind that existing change histories are not upgraded. All previous entries are deleted after the upgrade. If required, print out the change log before you upgrade.

1.8.2

Upgrading projects from STEP 7 Safety V13 SP1/SP2 to V16
If you want to continue to work with a project from STEP 7 Safety V13 SP1, you must first upgrade the project to STEP 7 Safety V16.
Perform the upgrade following the usual procedure for STEP 7. After upgrading to V16, you have to compile your safety program.
(S7-300/400): After compilation, the safety program is consistent and the collective Fsignature of the upgraded safety program corresponds to the collective F-signature of the safety program from V13 SP1. Acceptance of changes is not required
(S7-1200/1500): After compiling, your safety program is consistent and the collective Fsignature of the upgraded safety program has changed for system reasons. The new collective F-signature of the safety program with STEP 7 Safety V16 replaces the former collective F-signature of the safety program with STEP 7 Safety V13 SP1.
You can find an overview of all system-related changes under "Common data/Protocols/FConvert Log+CPU name+time stamp". One of the system-related changes is that STEP 7 Safety V16 automatically replaces versions of instructions no longer supported with new, functionally identical versions. The overview contains a comparison of the previous signatures with STEP 7 Safety V13 SP1 to the new signatures with STEP 7 Safety V16 and displays the automatically changed instruction versions. Print out the overview and store this printout with your acceptance documents or your machine documentation. Change acceptance is not required, since the "Collective F-signature with STEP 7 Safety V13 SP1" contained in the overview matches the collective F-signature in your current acceptance documents.
Keep in mind that existing change histories are not upgraded. All previous entries are deleted after the upgrade. If necessary, print out the change log before you upgrade.

SIMATIC Safety - Configuring and Programming

36

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.8 Upgrading projects to STEP 7 Safety V16
Special features for user acknowledgment and reintegration of F-I/O after F-I/O or channel faults and PASS_ON = 1 (S7-1200, S7-1500)
The following applies to F-I/Os:
 S7-300 fail-safe signal modules
 ET 200SP fail-safe modules
 ET 200S fail-safe modules
 ET 200pro fail-safe modules
 ET 200iSP fail-safe modules
Keep in mind the changed behavior for user acknowledgment and reintegration when configuring "Behavior after channel fault" = "Passivation of the channel" and tag ACK_NEC (F-I/O DB) = 1. The behavior was adapted to the behavior when configuring "Behavior after channel fault" = "Passivate the entire module":
As of STEP 7 Safety V14 or higher, user acknowledgment of a corrected F-I/O or channel fault is possible even when the tag PASS_ON (F-I/O DB) = 1. A reintegration (provision of process values) takes place as soon as the tag PASS_ON = 0.
Until STEP 7 Safety V13 SP1, user acknowledgment of a corrected F-I/O or channel fault was not possible as long as the tag PASS_ON (F-I/O DB) = 1. A user acknowledgment was only possible once the tag PASS_ON = 0. The reintegration (provision of process values) took place immediately after the user acknowledgment.
Special features when using instruction profiles
If you want to use an instruction profile in your project from STEP 7 Safety V13 SP1, delete the instruction profile before you upgrade to STEP 7 Safety V16. Before deleting, make a note of your settings. After upgrading create a new instruction profile, if required, and enter the noted settings there, if applicable. Note that some instruction versions are no longer supported under STEP 7 Safety V16. You will find additional information about the supported instruction versions in the description of the respective instruction.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

37

Product Overview 1.8 Upgrading projects to STEP 7 Safety V16

1.8.3

Upgrading projects from STEP 7 Safety prior to V13 SP1
If you want to upgrade from a project prior to STEP 7 Safety V13 SP1 to STEP 7 Safety V16, you must upgrade the project as in standard to STEP 7 Safety V13 SP1 via an intermediate step.
The safety program signature does not change after upgrading the safety program to STEP 7 Safety V13 SP1. Acceptance of changes is therefore not required.
Perform the upgrade following the usual procedure for STEP 7 Professional.
When upgrading a project that was created with STEP 7 Safety Advanced V11 . note the following information:
Note
Adjustments are required before you can continue working on a project upgraded from STEP 7 Safety Advanced V11:
There was a product warning for STEP 7 Safety Advanced V11 regarding setting the parameters "Discrepancy behavior" and "Reintegration after discrepancy error" for the failsafe digital input and output modules 4F-DI/3F-DO DC24V/2A (6ES7138-4FC01-0AB0, 6ES7138-4FC00-0AB0). These parameters could be displayed incorrectly in certain combinations.
Based on the handling instructions in this product warning, you used a conversion table to set the affected parameters so that they were displayed incorrectly in the safety summary and hardware configuration in order for them to have the correct effect in the F-module. You also corrected the safety summary by hand to document the actual behavior of F-modules.
To reverse these changes, follow these steps: 1. Compile the upgraded project with STEP 7 Safety Advanced V13 SP1. An error message
is displayed for each F-module in STEP 7 Safety Advanced V11 the parameters of which you have corrected: "The CRC (F_Par_CRC) of the module (xxx) does not match the calculated value (yyy)." 2. Adapt the parameter assignment of each F-module for which this error message is displayed to match your handwritten corrections in the safety summary. 3. Do this for each F-CPU and then compile the safety program. 4. If the collective F-signature following compiling corresponds to the collective F-signature on the safety summary, you have made all the necessary corrections.

SIMATIC Safety - Configuring and Programming

38

Programming and Operating Manual, 10/2019, A5E02714440-AK

Product Overview 1.8 Upgrading projects to STEP 7 Safety V16

Use of CPs

F-I/Os operated downstream from a CP443-5 Extended, CP443-1 or CP 443-1 Advanced-IT were not automatically assigned a unique F-destination address.
As soon as you compile the hardware in a project with such F-I/Os in STEP 7 Safety V13 SP1, you are notified for the affected F-I/Os. You have to assign new, unique F-destination addresses for the reported F-I/Os. Additional information is available under PROFIsafe addresses for F-I/O of PROFIsafe address type 1 (Page 66), PROFIsafe addresses for F-I/O of PROFIsafe address type 2 (Page 68) and Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices (Page 76).
This changes the collective F-signature of the safety program. Because the F-SW collective signature is unchanged, it is documented that the safety program has remained unchanged. The changed F-HW collective signature indicates that the safety-related hardware configuration has changed. You can now verify that solely the changed F-destination addresses have caused this change:
 The F-parameter signature (without address) for each changed F-I/O remains the same.
 Only the affected F-I/O DBs are listed in the comparison editor of the safety program with the filter set to "Compare only F-blocks relevant for certification".

Changed names of F-I/O DBs
Prior to STEP 7 Safety V13 SP1 it was possible to change the name of an F-I/O DB. This change results in a changed collective F-signature during upgrading.
If a changed collective F-signature is unwanted during upgrading, follow these steps:
1. Under STEP 7 Safety V13, rename the changed names of the F-I/O DBs back to the original names.
2. Compile the safety program.
The collective F-signature does not change as a result.
3. Perform an offline-offline comparison between the upgraded program and the program compiled in step 2.
4. Print a comparison printout (Page 354).
Use the comparison printout to ensure that you have only changed the names of the F-FI/O DBs.
5. Upgrading the safety program to STEP 7 Safety V13 SP1. After upgrading, the safety program has the F-collective signature from step 2.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

39

Product Overview 1.9 First steps

1.9

First steps

Getting Started in SIMATIC Safety
Three Getting Started documents are available to help you begin using SIMATIC Safety.
The Getting Started documentation is an instruction manual that provides a step-by-step description of how to create a project with SIMATIC Safety. It gives you the opportunity to quickly become familiar with the scope of features of SIMATIC Safety.

Contents

The Getting Started documentation describes the creation of a single, continuous project that is extended with each section. Based on the configuration, you program a fail-safe shutdown, make changes to the programming, and accept the system.
In addition to the step-by-step instructions, the Getting Started documentation also gives you background information for every new topic, which explains the functions used in more detail and how they interrelate.

Target audience
The Getting Started documentation is intended for beginners but is also suitable for users who are switching from S7 Distributed Safety.

Download

Three Getting Started documents are available as PDF files for free download in the Industry Online Support:
 STEP 7 Safety Advanced V11 with S7-300/400 F-CPUs (http://support.automation.siemens.com/WW/view/en/49972838)
 STEP 7 Safety Basic V13 SP1 with S7-1200 F-CPUs (http://support.automation.siemens.com/WW/view/en/34612486/133300) (part of the manual "S7-1200 Functional Safety manual")
 STEP 7 Safety Advanced V13 with S7-1500 F-CPUs (http://support.automation.siemens.com/WW/view/en/101177693)

SIMATIC Safety - Configuring and Programming

40

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring

2

2.1

Overview of Configuration

Introduction

You basically configure a SIMATIC Safety F-system in the same way as a standard S7-300, S7-400, S7-1200, S7-1500 or ET 200MP, ET 200SP, ET 200S, ET 200iSP, ET 200eco, ET 200eco PN or ET 200pro automation system in STEP 7.
This section presents only the essential differences compared to standard configuration you encounter when configuring a SIMATIC Safety F-system.
This documentation distinguishes between two groups of F-I/O:

F-I/Os of PROFIsafe address type 1
F-I/Os which ensure the uniqueness of the PROFIsafe address solely with the F-destination address, for example, ET 200S F-modules. The PROFIsafe address is usually assigned by DIP switches.

F-I/Os of PROFIsafe address type 2
F-I/Os which can ensure the uniqueness of the PROFIsafe address with a combination of Fsource address and F-destination address, for example, S7-1500/ET 200MP F-modules. The PROFIsafe address is usually assigned with STEP 7 Safety.

Which F-components can you configure with the STEP 7 Safety ?
The table below shows you which F-CPUs you can configure with STEP 7 Safety Basic and which with STEP 7 Safety Advanced:

F-CPUs S7-300 S7-400 S7-1200 S7-1500 WinAC RTX F S7-1500 F Software Controller

STEP 7 Safety Basic -- -- x -- -- --

STEP 7 Safety Advanced x x x x x x

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

41

Configuring 2.1 Overview of Configuration

The table below shows you which F-I/Os you can configure with STEP 7 Safety Basic and which with STEP 7 Safety Advanced as well as which PROFIsafe address type they support:

F-I/O S7-300 F-SMs ET 200S F-modules ET 200pro F-modules ET 200iSP F-modules ET 200eco DP F-I/Os
ET 200eco PN F-I/Os S7-1200 F-modules (centrally on S7-1200 F-CPUs) ET 200SP F-modules S7-1500/ET 200MP F-modules fail-safe GSD based DP slaves fail-safe GSD based I/O devices

STEP 7 Safety Basic x** x x x --
x x
x x x x

STEP 7 Safety Advanced x** x x x
With S7-300/400 F-CPUs (only PROFIsafe V1 mode)
x x

PROFIsafe address type 1 1 1 1 1
2 2

x

2

x

2

x

*

x

*

* Consult the respective documentation to determine the PROFIsafe address type of a GSD based DP slave/GSD based I/O device. If in doubt, assume that the PROFIsafe address is type 1.
*** F-SMs that only support PROFIsafe V1 mode can only be used on F-CPUs S7-300/400.

SIMATIC Safety - Configuring and Programming

42

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.1 Overview of Configuration
Example: Configured F-system in STEP 7 Professional
The following figure presents a configured F-system. You choose the fail-safe components in the "Hardware catalog" task card as you would do with standard components and place them in the work area of the network or device view. F-components are shown in yellow.

Additional information For detailed information on F-I/O, refer to the manuals for the relevant F-I/O.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

43

Configuring 2.1 Overview of Configuration
Which safety-related communication options can you configure? You need to use the hardware and network editor to configure the following safety-related
communication options (see Configuring and programming communication (S7-300, S7-400) (Page 209) or Configuring and programming communication (S7-1200, S7-1500) (Page 273)):  Communication with Flexible F-Link (Page 312)  Safety-related master-master communication  Safety-related master-master communication for S7 Distributed Safety  Safety-related master-I-slave communication  Safety-related I-slave-I-slave communication  Safety-related I-slave-slave communication  Safety-related IO controller-IO controller communication  Safety-related IO controller-IO controller communication for S7 Distributed Safety  Safety-related IO controller-I-device communication  Safety-related IO controller-I-slave communication  Safety-related communication via S7 connections  Safety-related communication via S7 connections for S7 Distributed Safety or S7 F
Systems

SIMATIC Safety - Configuring and Programming

44

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.2 Particularities for configuring the F-System

2.2

Particularities for configuring the F-System

Configuring is the same as for standard components
You configure a SIMATIC Safety F-system in the same way as a standard S7 system. This means that you configure and assign parameters for the hardware in the hardware and network editor as a centralized system (F-CPU and if required F-IO for example CPU 1516F3 PN/DP and F-modules S7-1500/ET 200MP) and/or as a distributed system (F-CPU, F-SMs in ET 200M, F-modules ET 200MP, F-modules ET 200SP, ET 200S, ET 200pro, ET 200iSP, ET 200eco, ET 200eco PN, fail-safe GSD based DP slaves and/or fail-safe fail-safe GSD based I/O devices).
Special F-parameters
For the F-functionality there are special F-parameters that you can review and set in the "Properties" of the fail-safe components (F-CPU and F-I/O). F-parameters are marked in yellow.
F-parameters are explained in "Configuring an F-CPU (Page 46)" and "Configuring F-I/O (Page 51)".
Compiling the hardware configuration
You must compile the hardware configuration of the SIMATIC Safety F-system (shortcut menu "Compile > Hardware configuration"). A configured F-CPU with enabled F-capability is the only prerequisite for programming the safety program.
Note
Inconsistencies are possible when configuring the hardware and can also be saved. A full consistency check of the hardware configuration and possible connection data is performed only during compilation. Therefore, perform "Edit > Compile" regularly.

Changing safety-related parameters
Note
If you change a safety-related parameter (marked in yellow) for an F-I/O or an F-CPU, you must then compile the modified hardware configuration and the Compiling the safety program (Page 323) (shortcut menu "Compile > Hardware and software (only changes)") and download. This also applies for changes to the F-I/O which are not used in the safety program. F-I/O in standard operation is not affected by this.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

45

Configuring 2.3 Configuring an F-CPU

2.3

Configuring an F-CPU

Introduction

You configure the F-CPU basically in the same way as a standard automation system.
F-CPUs are always configurable in STEP 7, regardless of whether or not the STEP 7 Safety license is installed. Without an installed STEP 7 Safety license, the F-CPU can only be used as a standard CPU.
With installed STEP 7 Safety license, you can enable or disable the F-capability for the F-CPU.
If you want to use the F-I/O in safety mode or in safety-related communication, the Fcapability of the F-CPU must be enabled.
F-capability is activated by default when STEP 7 Safety license is installed.

Enabling/disabling F-capability
If you want to modify the F-capability setting, proceed as follows: 1. Select the F-CPU in the device or network view, and select the "Properties" tab in the
inspector window. 2. Select "Fail-safe" in the area navigation. 3. Use the appropriate button to enable/disable the F-capability. 4. If you want to disable F-capability, confirm the "Disable F-activation" dialog with "Yes".

Disabling F-capability for an existing safety program
If you want to disable the F-capability for an F-CPU because you intend to use the F-CPU as a standard CPU although a safety program is installed, you must note the following:  You need the password for the safety program, if assigned.  The Safety Administration Editor (Page 79) is deleted from the project tree.  The F-OBs are deleted. (S7-1200, S7-1500)  All F-blocks are deleted.  From now on you cannot use F-I/O in safety mode with this F-CPU.

SIMATIC Safety - Configuring and Programming

46

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.3 Configuring an F-CPU
Configuring the F-parameters of the F-CPU
In the "Properties" tab of the F-CPU, you can change or apply the default settings for the following parameters:
 The F-destination address range
­ Low limit for F-destination addresses
­ High limit for F-destination addresses
 The default F-monitoring time for central or distributed F-I/O at the F-CPU
Note
A change of the F-monitoring time for central or distributed F-I/O at the F-CPU results in modifications to the safety program when it is recompiled. A new acceptance may therefore be required.
Specify F-destination address for F-I/O of PROFIsafe address type 1
With the parameters "Low limit for F-destination addresses" and "High limit for F-destination addresses" you specify a range for this F-CPU in which the F-destination address of newly inserted F-I/Os of PROFIsafe address type 1 (Page 66) is assigned automatically. An Fdestination address that is not within the F-destination address range yet, is also reassigned when you reassign a DP slave/IO device with the F-CPU or switch on the F-activation of the F-CPU or change the logical address of this F-module.
The F-destination address is assigned in ascending order starting at the "Low limit for Fdestination addresses". When no free F-destination address is available in the F-destination address range, the next available free F-destination address outside the F-destination address range is assigned and a warning is output during compilation.
The maximum possible F-destination address for ET 200S, ET 200eco, ET 200pro, ET 200iSP F-modules and S7-300 F-SMs is 1022.
The F-destination addresses for F-I/O of PROFIsafe address type 1 must be unique networkwide and CPU-wide.
By selecting different F-destination address ranges for different F-CPUs, you can define different ranges for the automatic assignment of the F-destination address. This is useful when you are operating multiple F-CPUs in one network. Subsequent manual address changes are possible. (see also Recommendation for PROFIsafe address assignment (Page 63))

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

47

Configuring 2.3 Configuring an F-CPU
Example: You have configured the F-destination address range as follows:  Low limit for F-destination addresses = 100  High limit for F-destination addresses = 199 When inserting the first F-I/O of PROFIsafe address type 1, the F-destination address 100 is assigned. When inserting an additional F-I/O of PROFIsafe address type 1, the F-destination address 101 is assigned.
Note The parameters "Low limit for F-destination addresses" and "High limit for F-destination addresses" have no effect on the following F-I/Os: · SM 326; DI 8 x NAMUR (as of article number 6ES7326-1RF00-0AB0) · SM 326; DO 10 x DC 24V/2A (article number 6ES7326-2BF01-0AB0) · SM 336; AI 6 x 13 bit (article number 6ES7336-1HE00-0AB0)
Specify F-destination address for F-I/O of PROFIsafe address type 2
The F-destination address of F-I/O of PROFIsafe address type 2 (Page 68) is assigned automatically for each F-CPU in descending order starting with 65534. The low limit is the value configured with the parameter "Low limit for F-destination addresses" (for F-I/O of PROFIsafe address type 1) + 1. When the value configured with the "High limit for F-destination addresses" parameter is reached, a warning is output during compilation. (See also Recommendation for PROFIsafe address assignment (Page 63))
Specify F-source address for F-I/O of PROFIsafe address type 2
You specify the F-source address for F-I/O of PROFIsafe address type 2 (Page 68) assigned to this F-CPU with the "Central F-source address" parameter. The F-source address must be unique throughout the network. (see also Recommendation for PROFIsafe address assignment (Page 63))
Note A change to the "Central F-source address" parameter results in modifications to the safety program when it is recompiled. A new acceptance may therefore be required because the Fsource addresses of all F-I/Os of address type 2 are changed centrally by this step.

SIMATIC Safety - Configuring and Programming

48

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.3 Configuring an F-CPU
"Default F-monitoring time" parameter
Configure the "Default F-monitoring time" for monitoring the communication between the FCPU and F-I/O. You can adjust the F-monitoring time via the following parameters:  "Default F-monitoring time for central F-I/O"  "Default F-monitoring time for F-I/O of this interface" The default F-monitoring time for the central F-I/O acts on the F-I/O that is arranged centrally, i.e. near the F-CPU. You set this parameter in the properties of the F-CPU (select F-CPU, then select "Properties > Fail-safe > F-parameters"). The default F-monitoring time for the F-I/O of this interface acts on the F-I/O that is assigned to this interface of the F-CPU (PROFIBUS or PROFINET). You change this parameter in the properties of the relevant interface (selection of the interface in the "Device view" tab, then "F-parameters"). The various settings available allow you to flexibly adapt the F-monitoring time to the conditions of your F-system, for example to take account of different bus cycles. You can also change the F-monitoring time individually for each F-I/O in the F-I/O properties (see Configuring F-I/O (Page 51) or Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices (Page 76)).
Note A change of the F-monitoring time for central or distributed F-I/O at the F-CPU results in modifications to the safety program when it is recompiled. A new acceptance may therefore be required.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
You can find additional information in Monitoring and response times (Page 649).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

49

Configuring 2.3 Configuring an F-CPU
Automatic generation of the safety program
The safety program of an F-CPU consists of one or two F-runtime groups that contain the Fblocks (see also Defining F-Runtime Groups (Page 139)). When the F-CPU (with activated F-capability) is inserted into the work area of the device view or network view, a safety program with an F-runtime group is generated automatically. You can define in STEP 7 Safety that no F-runtime group is generated while inserting the FCPU (with activated F-capability). Proceed as follows: 1. Select the "Options > Settings" menu command. 2. Select the "STEP 7 Safety" area. 3. If it is not already disabled, disable automatic generation of an F-runtime group by
deselecting the "Generate default fail-safe program" option. This change has no influence on any existing safety programs; it only defines whether an Fruntime group is automatically generated for each one of the subsequently inserted F-CPUs.
Configuring the protection level of the F-CPU
WARNING
(S7-300, S7-400) In safety mode, access with the CPU password must not be authorized during changes to the standard user program as this would also allow changes to the safety program. To rule out this possibility, you must configure the protection level "Write protection for fail-safe blocks" and configure a password for the F-CPU. If only one person is authorized to change the standard user program and the safety program, the protection level "Write protection" or "Read/write protection" should be configured so that other persons have only limited access or no access at all to the entire user program (standard and safety programs). (S001)
WARNING
(S7-1200, S7-1500) In safety mode, the safety program must be password-protected. For this purpose, configure at least the protection level "Full access (no protection)" and assign a password under "Full access incl. fail-safe (no protection)". This protection level only allows full access to the standard user program, not to F-blocks. If you select a higher protection level, for example to protect the standard user program, you must assign an additional password for "Full access (no protection)". Assign different passwords for the individual protection levels. (S041)
You configure the protection level following the same procedure as for standard CPUs. For information on the password for the F-CPU, refer to Access protection (Page 103). Pay special attention to the warnings in Access protection for the F-CPU (Page 109).

SIMATIC Safety - Configuring and Programming

50

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.4 Configuring F-I/O

2.4

Configuring F-I/O

Introduction

You configure the S7-1500/ET 200MP, ET 200SP, ET 200S, ET 200eco (S7-300, S7-400), ET 200eco PN, ET 200pro and ET 200iSP F-modules, the S7-300 F-SMs and the S7-1200 F-modules as usual in STEP 7: After you have inserted the F-I/O in the work area of the device or network view, you access the configuration dialogs by selecting the relevant F-I/O and the "Properties" tab.
Note Changes to the parameter assignment result in modifications to the safety program when it is recompiled. A new acceptance may therefore be required.
The use of ET 200SP F-modules is possible with:  IM 155-6 PN ST as of firmware V1.1  IM 155-6 PN HF  IM 155-6 PN/2 HF as of firmware V4.2  IM 155-6 PN/3 HF as of firmware V4.2  IM 155-6 PN HS  IM 155-6 DP HF The use of S7-1500/ET 200MP F-modules is possible with:  IM 155-5 PN BA as of firmware V4.3  IM 155-5 PN ST as of firmware V3.0  IM 155-5 PN HF as of firmware V2.0  IM 155-5 DP ST as of firmware V3.0

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

51

Configuring 2.4 Configuring F-I/O
The central use of S7-1500/ET 200MP F-modules is possible with S7-1500 F-CPUs as of firmware V1.7, distributed use as of firmware V1.5. (S7-1200) We recommend you limit the total number of F-I/Os that are used centrally or distributed in an S7-1200 F-CPU to 12. Depending on the volume of project data, the maximum number of F-I/Os can be smaller.
WARNING
When you make changes in which the assignment of input/output addresses and wiring can change, then you must perform a wiring test (Page 363). Examples for such changes are: · Adding F-I/O · Changing the start address of F-I/O · Changing the slot position of F-I/O · Changing
­ the rack ­ the slave/device address ­ the PROFIBUS DP/PROFINET IO subnet ­ the IP address ­ the device name (S071)
Channel-granular passivation after channel faults
You can configure how the F-I/O will respond to channel faults, such as a short-circuit, overload, discrepancy error, or wire break, provided the F-I/O supports this parameter (e.g. for ET 200S or ET 200pro F-modules). You configure this response in the properties for the relevant F-I/O ("Behavior after channel fault" parameter). This parameter is used to specify whether the entire F-I/O or just the faulty channel(s) are passivated in the event of channel faults.
Note (S7-300, S7-400) Note that channel-granular passivation increases the runtime of the Fruntime group(s) compared to passivation of the entire F-I/O (see also Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)).

SIMATIC Safety - Configuring and Programming

52

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.4 Configuring F-I/O
"Channel failure acknowledge" parameter (S7-1200, S7-1500)
In the case of F-I/Os that support the "Channel failure acknowledge" channel parameter (for example S7-1500/ET 200MP F-modules and S7-1200 F-modules), this replaces the ACK_NEC tag of the F-IO data block. If an F-I/O fault is detected by the F-I/O, passivation of all channels of the relevant F-I/O occurs. If channel faults are detected, the relevant channels are passivated if "Passivate channel" is configured. If "Passivate the entire module" is configured, all channels of the relevant F-I/O are passivated. Once the F-I/O fault or channel fault has been eliminated, reintegration of the relevant F-I/O occurs in line with the "Channel failure acknowledge" parameter.  Automatically  Manually  Adjustable (when channel-granular passivation is configured.)
WARNING
The parameter assignment "Channel failure acknowledge = Automatic" is only allowed if automatic reintegration is permitted for the relevant process from a safety standpoint.(S045)
Note The default assignment for the "Channel failure acknowledge" parameter when the F-module is created is "Manually".
Organization block/Process image (S7-1200, S7-1500)
If you use F-I/O in standard mode, you can select the organization block/process image as you do for standard I/O. If you use F-I/O in safety mode, no selection is possible. The process image is updated at the beginning or end of the F-OB (see section Program structure of the safety program (S71200, S7-1500) (Page 117)). Contrary to F-I/O operated in non-isochronous mode, you need to selected a process image partition, such as PIP 1 for F-I/O that is operated in isochronous mode (see "Configuring isochronous mode (S7-1500) (Page 62)").
Changing the name and number of the F-I/O DB
For more information, refer to the section "Fail-safe I/O data block (Page 174)".

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

53

Configuring 2.4 Configuring F-I/O
Customizing the F-monitoring time for F-I/O
You can customize the F-monitoring time in the properties of the F-I/O under "F-parameters". This may be necessary to prevent a timeout being triggered when no error occurs and the FI/O requires a longer F-monitoring time or assignment with a default F-monitoring time is not possible. For this purpose, activate the corresponding check box and assign an F-monitoring time.
Note A change of the F-monitoring time for central or distributed F-I/O at the F-CPU results in modifications to the safety program when it is recompiled. A new acceptance may therefore be required.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
You can find additional information in Monitoring and response times (Page 649).

SIMATIC Safety - Configuring and Programming

54

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.4 Configuring F-I/O
Group diagnostics for fail-safe S7-300 signal modules
By disabling a channel of the fail-safe signal module in the module properties, you also disable the group diagnostics for this channel. Exception for S7-300/400 F-CPUs: For the following S7-300 fail-safe signal modules  SM 326; DI 8 x NAMUR (as of article number 6ES7326-1RF00-0AB0)  SM 326; DO 10 x DC 24V/2A (article number 6ES7326-2BF01-0AB0) and  SM 336; AI 6 x 13Bit (article number 6ES7336-1HE00-0AB0) the "Group diagnostics" parameter enables and disables the monitoring of channel-specific diagnostic messages of F-SMs (such as wire break and short-circuit) to the F-CPU. You should disable group diagnostics for unused input or output channels.
WARNING
(S7-300, S7-400) For the following S7-300 fail-safe signal modules (F-SMs) with activated safety mode, "Group diagnostics" must be enabled for all connected channels: · SM 326; DI 8 x NAMUR (article numbers 6ES7326-1RF00-0AB0 and 6ES7326-1RF01-
0AB0) · SM 326; DO 10 x DC 24V/2A (article number 6ES7326-2BF01-0AB0) · SM 336; AI 6 x 13 Bit (article number 6ES7336-1HE00-0AB0) Check to verify that you have only disabled group diagnostics for these F-SMs for input and output channels that are actually unused. (S003)
Diagnostic interrupts can be enabled optionally.
Additional information
For detailed description of the parameters, refer to the help on the properties of the respective F-I/O and in the respective manual for the F-I/O.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

55

Configuring 2.5 Configuration control (option handling) for F-I/Os

2.5

Configuration control (option handling) for F-I/Os

For configuration control (option handling) with F-I/Os proceed as with the standard I/O devices. Detailed information can be obtained by searching for "Configuration control (option handling)" in the help of STEP 7.

The following section describes what you have to observe additionally for F-I/Os.

Requirement

 The requirements that are specified under "Configuration control (option handling)" in the help of STEP 7 are fulfilled.
 The requirements that are specified under "Configuration control (option handling)" in the help of STEP 7 are fulfilled. Handle the F-I/O as standard I/O.
 V2.1 or higher is set as the safety system version.  The F-I/Os for which you use the configuration control (option handling) are located
­ Distributed at an F-CPU S7-300/400/1200/1500 ­ Centrally at an F-CPU S7-1500  The PROFIsafe address of the F-I/Os are set or assigned.
Note The assignment of the PROFIsafe addresses (Page 70) is only possible if the maximum configuration actually exists.

Procedure

(F-CPU S7-1200/1500) Deactivate the F-I/Os not existing in the respective variant (option) by setting the DISABLE (Page 181) variable in the associated F-I/O DB (Page 174) to "1". This prevents the flashing of the error LED of the F-CPU and diagnostic entries of the safety program that reference these F-I/Os. With the DISABLED (Page 181) variable of the associated F-IO data block, you can evaluate whether an F-module is deactivated.
(F-CPU S7-300/400) In order to prevent the flashing of the error LEDs of the F-CPUs you do have to observe anything further. You cannot suppress diagnostics entries.

WARNING
If configuration control is used, your actual configuration deviates from the configured maximum configuration. You identify F-I/Os that do not exist in the current option (station option) via control record as "not available".
If an F-I/O marked as "not available" is possibly nevertheless in the real system, it has to be ensured that substitute values (0) are provided for these F-I/Os in the safety program or output at the outputs. This is achieved by setting the DISABLE tag (S7-1200/1500) or respectively PASS_ON tag (S7-300/400) in the associated F-I/O DB to "1". (S077)

SIMATIC Safety - Configuring and Programming

56

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.5 Configuration control (option handling) for F-I/Os

2.5.1

Example

Introduction

The following example shows how you to  Select/detect a station option  Disable F-I/Os that are not present in a station option (S7-1200/1500)  Provide your safety program for various station options

Safe selection/detection of the station option
You carry out a safe selection/detection of a station option with inputs of an F-I/O wired fixed to M/L+.
For example, you can select up to 4 station options with 2 inputs of an F-I/O.

Option Q B C D

OptionSelection_Bit_0 0 0 1 1

OptionSelection_Bit_1 0 1 0 1

Note when detecting the station option that substitute values (0) are used for the inputs of the F-I/O in certain situations, e.g. during startup of the F-system or when F-I/O channel errors occur.

In these situations, the present station option cannot be detected. You should therefore also evaluate the value status of inputs and only apply the station option one-time after startup of the F-system.

For one-time recognition of the station option, define a static local datum, for example, OptionSelectionRuns with default value "TRUE".

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

57

Configuring 2.5 Configuration control (option handling) for F-I/Os
Correspondingly for options C and D. As soon as a station option is detected, reset the static local datum for one-time detection of the station option:
Note When you make the selection/detection of a station option only in the standard user program, only the "Station option" is available to you as a standard datum that is not secured. Make sure that no dangerous states arise from this. Read the section "Data exchange between standard user program and safety program (Page 204)".

SIMATIC Safety - Configuring and Programming

58

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.5 Configuration control (option handling) for F-I/Os
Disabling F-I/Os that are not present in a station option
If one or more F-I/Os are not present in a station option, you can prevent the blinking of the error LED of the F-CPU by disabling these F-I/Os. In addition, diagnostic messages of the safety program that refer to these F-I/Os are suppressed.
Note As long as the detection of the station option (during startup of the F-system) is not yet complete (OptionSelectionRuns = TRUE), you should disable all "optional" F-I/O devices.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

59

Configuring 2.5 Configuration control (option handling) for F-I/Os
Providing the safety program for various station options
In the following example, the EMERGENCY STOP signals of different plant units or machines are combined into a collective EMERGENCY STOP signal.
Machines I and III and the corresponding F-I/O with the EMERGENCY STOP signal for machines I and III are not present with station option A.
Machine II and the corresponding F-I/O with the EMERGENCY STOP signal for machine II is not present with station option B.
The substitute values (0) are therefore used in the safety program for the EMERGENCY STOP signals from the respective unavailable machines.
In order to prevent the collective EMERGENCY STOP from being triggered because machines / EMERGENCY STOP signals are not present with certain station options, you can suppress the evaluation of the EMERGENCY STOP signal for unavailable machines by taking into account the present station option.

SIMATIC Safety - Configuring and Programming

60

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.6 Configuring shared device

2.6

Configuring shared device

To configure shared devices follow the procedure as in the standard. The configuration is described in the STEP 7 help under "Configuring shared devices".

F-destination addresses
Please also read the chapter "Recommendation for PROFIsafe address assignment (Page 63)" for assigning the F-destination address.

See also

Assign PROFIsafe address to an F-module (Page 74)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

61

Configuring 2.7 Configuring isochronous mode (S7-1500)

2.7

Configuring isochronous mode (S7-1500)

To configure isochronous mode for F-I/Os that support this mode, e.g. "Profisafe Telgr 902" submodule of the SINAMICS S120 CU310-2 PN V5.1 drive, proceed as in the standard. The configuration is described in the STEP 7 help under "Configuring isochronous mode".

Note the following:

 Contrary to F-I/O operated in non-isochronous mode, you need to selected a process image partition, such as PIP 1 for F-I/O that is operated in isochronous mode. This process image partition must contain only F-I/O operated in isochronous mode and no standard I/O.

 The assigned isochronous mode interrupt OB must first be generated as F-OB by specifying a F-runtime group (see Procedure for defining an F-runtime group (S7-1200, S7-1500) (Page 145)). It is not possible to add an F-OB with event class "Synchronous Cycle" directly during the configuration of the isochronous mode.

Requirement

F-CPUs S7-1500 as of firmware version 2.0, with IRT support.

Connection of F-I/O operated in isochronous mode to the isochronous mode interrupt OB
You access F-I/O operated in isochronous mode in the same way as you do standard I/O operated in isochronous mode, via the select process image partition.
Contrary to standard I/O that is operated in isochronous mode, the process image partition is updated by the F-system at the beginning or end of the F-OB (see Program structure of the safety program (S7-1200, S7-1500) (Page 117)).
No calling of the instructions SYNC_PI and SYNC_PO is required in the F-OB.
Note
With isochronously operated F-I/O, it is not ensured (fail-safe) that all input data of the F-I/Os assigned to the process image partition are consistently available at the beginning of the main safety block or all output data is transferred consistently to the F-I/Os, in other words, logically and temporally together. The consistency is only ensured within an F-I/O.
The consistency of all isochronous F-I/Os of the process image partition usually depends on the number of isochronous F-I/Os and the scope of the safety program in the isochronous mode interrupt OB.
If there are corresponding consistency requirements, you must check the consistency of the input and output data yourself. You can do this, for example, by additionally transferring and evaluating time stamps in the input and output data of the isochronous F-I/Os.

SIMATIC Safety - Configuring and Programming

62

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.8 Recommendation for PROFIsafe address assignment

2.8

Recommendation for PROFIsafe address assignment

Before inserting the F-I/O, specify an address range for each F-CPU for the F-destination addresses of the F-I/O of PROFIsafe address type 1 (Page 66) that does not overlap with the address range of any other F-CPU network-wide or CPU-wide (system-wide). You define the range for F-I/Os of PROFIsafe address type 1 with the parameters "Low limit for Fdestination addresses" and "High limit for F-destination addresses" (see also section Configuring an F-CPU (Page 46)).

The F-destination addresses of F-I/O of PROFIsafe address type 2 (Page 68) must not overlap with any address range of the F-I/O of PROFIsafe address type 1. The ranges of the F-destination addresses of the F-I/O of PROFIsafe address type 2 may overlap if the Fsource addresses are different. This is the case for supported configurations (Page 64) if the "Central F-source address" parameter has been set differently for each F-CPU.

Assign relatively low F-destination addresses for F-I/O of PROFIsafe address type 1 and relatively high F-destination addresses for F-I/O of PROFIsafe address type 2.

Figure 2-1 Address assignment for F-I/O of PROFIsafe address types 1 and 2
The safety summary (Page 379) lists the following information for each F-CPU:
 "Central F-source address" parameter (F-source address for F-I/O of PROFIsafe address type 2)
 Actually used range of the F-destination addresses of the assigned F-I/O of PROFIsafe address type 1
 Actually used range of the F-destination addresses of the assigned F-I/O of PROFIsafe address type 2
Any F-I/O configured using I-slave-slave communication is taken into consideration in the safety summary as part of the F-destination address range of the I-slave.
Any F-I/O configured in a shared device is taken is specified in the safety summary as part of the F-destination address range of the F-CPU to which this F-I/O is assigned.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

63

Configuring 2.9 Configurations supported by the SIMATIC Safety F-system

2.9

Configurations supported by the SIMATIC Safety F-system

Supported configurations
F-I/Os (see Overview of Configuration (Page 41)) are supported in the following configurations: central configuration (also I-slave):  The F-I/O is in the same rack as the associated F-CPU.  The F-I/O is located in a subrack of the rack of the associated F-CPU. distributed configuration (at integrated DP-/PN interface of the CPU or at CP/CM):  PROFIBUS (also after IE/PB link)
­ The F-I/O is located on a DP Slave. ­ The F-I/O is located on a DP Slave and is addressed via I-slave-slave communication.
The assigned DP master (of the assigned IO controller of the IE/PB link) can be a standard CPU or an F-CPU.  PROFINET IO ­ The F-I/O is located on an IO Device. ­ The F-I/O is located in a shared device. For F-I/O not listed in "Overview of Configuration (Page 41)", check the relevant documentation to see whether it is supported by the SIMATIC Safety F-system. If in doubt, treat these F-I/Os as part of a configuration that is not supported.
Checks performed by the SIMATIC Safety F-system
For supported configuration, the F-system checks:  Whether the PROFIsafe operating mode parameter (F_Par_Version) is set to V2 mode in
the PROFINET IO environment**.  Whether the F-destination addresses have been assigned uniquely CPU-wide.
You yourself must ensure the network-wide uniqueness of the PROFIsafe address.  Whether the F-source address for the F-I/O of PROFIsafe address type 2 corresponds to
the "Central F-source address" parameter of the F-CPU.

SIMATIC Safety - Configuring and Programming

64

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.9 Configurations supported by the SIMATIC Safety F-system
WARNING
Note the following when using configurations that are not included in supported configurations: · Make sure that the F-I/O of this configuration appears in the safety summary and that an
F-I/O DB has been created for it. Otherwise, you cannot use the F-I/O in this configuration. (Contact Customer Support.) · For F-I/Os in the PROFINET IO environment**, you must check the PROFIsafe operating mode parameter (F_Par_Version) against the safety summary to make sure that it is correct. V2 mode must be set in the PROFINET IO environment. F-I/O which only support V1 mode must not be used in the PROFINET IO environment. · You must ensure that PROFIsafe address assignment is unique CPU-wide* and network-wide***: ­ Check the correctness of the PROFIsafe addresses with the help of the safety
summary. ­ Use the safety summary to check that the F-source address corresponds to the
"Central F-source address" parameter of the F-CPU for F-I/O of PROFIsafe address type 2. ­ For F-I/O of PROFIsafe address type 1 or if you cannot set the F-source address in accordance with the "Central F-source address" parameter of the F-CPU, you will have to ensure the uniqueness of the PROFIsafe address solely by assigning a unique F-destination address. You must check the uniqueness of the F-destination address individually for each F-I/O based on the safety summary in a configuration that is not supported. (see Completeness and correctness of the hardware configuration (Page 383)) (S050)
* "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the FCPU of the I-slave and not to the F-CPU of the DP master / IO controller.
** The F-I/O is located in the "PROFINET IO environment" if at least part of safety-related communication with the F-CPU takes place via PROFINET IO. If the F-I/O is connected via Islave-slave communication, also keep in mind the communication line to the DP master/IO controller.
*** A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
Note
For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

65

Configuring 2.10 PROFIsafe addresses for F-I/O of PROFIsafe address type 1

2.10

PROFIsafe addresses for F-I/O of PROFIsafe address type 1

F-destination address
The uniqueness of the PROFIsafe address is ensured solely with the F-destination address. The F-source address is not displayed and has no effect on whether or not the PROFIsafe address is unique.
Therefore, the F-destination address must be unique network-wide and CPU-wide (see the following rules for address assignment).
To prevent incorrect parameter assignment, an F-destination address which is unique CPUwide is automatically assigned during placement of the F-I/O in the work area of the device or network view as long as you only configure supported configurations (Page 64).
To ensure a network-wide unique F-destination address assignment when multiple DP master systems and PROFINET IO systems are operated on one network, you must set the "Low limit for F-destination addresses" and "High limit for F-destination addresses" in the properties of the F-CPU in SIMATIC Safety F-systems appropriately, before placing the F-I/O (see section "Recommendations for address assignment") so that the F-destination address ranges do not overlap.
When you change the F-destination address of an F-I/O, the CPU-wide uniqueness of the Fdestination address is checked automatically for supported configurations. You yourself must ensure the network-wide uniqueness of the F-destination address.
For ET 200S, ET 200eco (PROFIBUS), ET 200pro, ET 200iSP F-modules and S7-300 FSMs: You must set the F-destination address at the F-I/O with the DIP switch before you install the F-I/O. You can assign up to 1022 different F-destination addresses.
Note
(S7-300, S7-400) For the following fail-safe S7-300 signal modules, the F-destination address is the start address of the F-SM divided by 8: · SM 326; DI 8 x NAMUR (as of article number 6ES7326-1RF00-0AB0) · SM 326; DO 10 x DC 24V/2A (article number 6ES7326-2BF01-0AB0) · SM 336; AI 6 x 13 Bit (article number 6ES7336-1HE00-0AB0)
You can show the columns "F-source address" and "F-destination address" in the device view of the device overview. The addresses displayed in these columns are for information purposes only. You have to check the F-destination addresses in the safety summary when you accept the system.

SIMATIC Safety - Configuring and Programming

66

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.10 PROFIsafe addresses for F-I/O of PROFIsafe address type 1
Rules for address assignment
WARNING
F-I/Os of PROFIsafe address type 1 are uniquely addressed by their F-destination address (e.g. with the switch setting on the address switch). The F-destination address (and therefore also the switch setting on the address switch) of the F-I/O must be unique network-wide* and CPU-wide** (system-wide) for the entire F-I/O. The F-I/O of PROFIsafe address type 2 must also be considered. (S051)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3). ** "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the FCPU of the I-slave and not to the F-CPU of the DP master / IO controller. Also note Recommendation for PROFIsafe address assignment (Page 63).
Note For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

See also

Completeness of the safety summary (Page 379)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

67

Configuring 2.11 PROFIsafe addresses for F-I/O of PROFIsafe address type 2

2.11

PROFIsafe addresses for F-I/O of PROFIsafe address type 2

F-source address and F-destination address
The uniqueness of the PROFIsafe address is ensured by the combination of F-source address and F-destination address.
The PROFIsafe address must be unique network-wide and CPU-wide. This is the case if the following two conditions are met:
 The F-source address ("Central F-source address" parameter) of the F-CPU is unique network-wide. Keep this in mind for changes.
 The F-destination address of the F-module is unique CPU-wide.
You define the F-source address using the "Central F-source address" parameter in the FCPU. Provided you only configure supported configurations (Page 64), this parameter is automatically applied as the F-source address and a CPU-wide unique F-destination address is assigned (usually in descending order starting with 65534).
When you change the F-destination address, the CPU-wide uniqueness of the F-destination address is checked automatically for supported configurations.
You must assign the F-source address and F-destination address to the F-I/O before you commission the F-I/O. You can find additional information in Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety (Page 70).
You can show the columns "F-source address" and "F-destination address" in the device view of the device overview. The addresses displayed in these columns are for information purposes only. You have to check the F-source and F-destination addresses in the safety summary when you accept the system.
Rules for address assignment
WARNING
F-I/O of PROFIsafe address type 2 is uniquely addressed using a combination of F-source address ("Central F-source address" parameter of the assigned F-CPU) and F-destination address.
The combination of F-source address and F-destination address for each F-I/O must be unique network-wide* and CPU-wide** (system-wide). In addition, the F-destination address must not be occupied by F-I/O of PROFIsafe address type 1.
To ensure that addresses are unique across F-CPUs for supported configurations (Page 64), you need to ensure that the "Central F-source address" parameter of all F-CPUs is unique network-wide*. This is achieved through different settings for the "Central Fsource address" parameter of the F-CPUs. (S052)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).

SIMATIC Safety - Configuring and Programming

68

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.11 PROFIsafe addresses for F-I/O of PROFIsafe address type 2
** "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the FCPU of the I-slave and not to the F-CPU of the DP master / IO controller. Also note Recommendation for PROFIsafe address assignment (Page 63).
Note For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

See also

Completeness of the safety summary (Page 379)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

69

Configuring 2.12 Setting the F-destination address for F-I/O with DIP switches

2.12

Setting the F-destination address for F-I/O with DIP switches
Information on how to set the F-destination address for F-I/O with DIP switches is available in the documentation of the respective F-I/O.

2.13

Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety

Introduction

Fail-safe ET 200SP modules, fail-safe S7-1500/ET 200MP modules, fail-safe ET 200eco PN I/O modules and fail-safe S7-1200 modules do not have a DIP switch with which you set the unique F-destination address for each module. Instead, you assign the PROFIsafe address (Page 64) consisting of F-source address and F-destination address directly from STEP 7 Safety for fail-safe ET 200SP modules, fail-safe ET 200eco PN I/O modules and fail-safe S71500/ET 200MP modules. The PROFIsafe addresses for S7-1200 F-modules are automatically assigned during download of the hardware configuration.
In the following cases it is necessary to reassign the addresses of the fail-safe ET 200SP, fail-safe ET 200eco PN I/O modules and fail-safe S7-1500/ET 200MP modules:
 Later placement of a fail-safe module during initial commissioning (not for ET 200eco PN)
 Intentional modification of the F-destination address
 Modification of the "Central F-source address" parameter for the associated F-CPU (changes the F-source address).
 Replacement of the coding element
 Commissioning of a mass-produced machine
In the following cases it is not necessary to reassign the addresses of the fail-safe ET 200SP and fail-safe S7-1500/ET 200MP modules:
 Power On/Off
 Replacement of an F-module (repair) without PG/PC
 Replacement of the BaseUnit (transferring the coding element with assigned F-source address and F-destination address to the new BaseUnit)
 Replacement of a BaseUnit without coding element
 Changes in the design in case a new BaseUnit is inserted in front of a fail-safe module
 Repair/replacement of the interface module
Reassignment is not required for fail-safe ET 200eco PN I/O modules in the following cases:
 Power On/Off
 Replacement of the compact device (transferring the coding element with assigned Fsource address and F-destination address to the new compact device)

SIMATIC Safety - Configuring and Programming

70

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.13 Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety
Basic procedure
Note Assigning the PROFIsafe address for S7-1200 fail-safe modules The procedure described below for identifying and assigning the PROFIsafe addresses is not required for S7-1200 fail-safe modules. Note that an S7-1200 F-CPU must not include an additional unconfigured F-module.
1. Configure the F-destination address (Page 68) and F-source address (Page 68) in the hardware configuration in STEP 7 Safety.
2. Identify the ET 200SP, S7-1500/ET 200MP or the ET 200eco PN fail-safe I/O modules to which you want to assign the configured PROFIsafe addresses.
3. Assign the PROFIsafe address to the F-modules.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

71

Configuring 2.13 Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety

2.13.1

Identifying F-modules

Requirement

The following requirements must be met:  The F-CPU and fail-safe modules are configured.  The hardware configuration has been downloaded.  When using an ET 200SP Open Controller, the hardware configuration of the ET 200SP
Open Controller and of the fail-safe software controller must be downloaded.  The F-CPU and fail-safe modules can be reached online.

WARNING
Make sure that the latest hardware configuration has been downloaded to the F-CPU before identification.
Clicking "Identification" confirms the fail-safe correctness of the PROFIsafe addresses for the fail-safe modules.
Therefore, proceed carefully when confirming the F-modules by LED flashing or the serial number of the F-CPU with central fail-safe modules or the serial number of the interface module with fail-safe modules.
An assignment of the PROFIsafe addresses with the serial number of the interface module or F-CPU is only permitted when the assignment is to be made for all F-I/Os of a station. When selecting individual F-I/Os, the flashing of each individual F-I/O must be checked and confirmed. (S046)

SIMATIC Safety - Configuring and Programming

72

Programming and Operating Manual, 10/2019, A5E02714440-AK

Procedure

Configuring 2.13 Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety
Proceed as follows to identify the F-modules:
1. Establish an online connection to the F-CPU with which the fail-safe modules are operated.
2. In the network view, select the F-CPU with fail-safe modules or the interface module with the fail-safe modules to which you want to assign the PROFIsafe address.
3. Select "Assign PROFIsafe address" from the shortcut menu.
4. Under "Assign PROFIsafe address by", select the method to be used for identifying the F-modules.
­ "Identification by LED flashing"
This is the default setting. The DIAG and STATUS LEDs of the F-modules to be identified flash upon identification.
­ "Identification by serial number"
If you cannot see the fail-safe modules directly, you can identify the fail-safe modules by the serial number of the F-CPU or interface module.
Note
The displayed serial number may be amended with a year number compared to the serial number printed on the interface module. The serial numbers are nevertheless identical.
Note Determining the serial number of an ET 200SP Open Controller
When you use the ET 200SP F-modules centrally on an ET 200SP Open Controller and identify them by the serial number, then read the serial number in the display of the fail-safe S7-1500 software controller in the menu "Overview > CPU".
5. In the "Assign" column, select all the F-modules to which you want to assign the PROFIsafe address.
If you select the F-CPU or the interface module in the "Assign" column, all F-modules of the station are selected.
6. Click the "Identification" button. Check whether the DIAG and STATUS LEDs for the Fmodules whose PROFIsafe address you want to assign are flashing green. If you identify using the serial number, compare the displayed serial number to the serial number of the F-CPU with central fail-safe modules or the interface module with fail-safe modules.
7. If you have configured more S7-1500/ET 200MP fail-safe modules than exist online, a dialog is displayed. Enter the number of S7-1500/ET 200MP fail-safe modules actually existing in this dialog and confirm the dialog.
If you have configured fewer S7-1500/ET 200MP fail-safe modules than exist online, the online-offline difference is shown and the assignment of the PROFIsafe address is not possible.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

73

Configuring 2.13 Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety

2.13.2

Assign PROFIsafe address

Requirement

The F-modules have been successfully identified.

Procedure

To assign a PROFIsafe address, proceed as follows:
1. In the "Confirm" column, select all the fail-safe modules to which you want to assign the F-source address and F-destination address.
2. Use the "Assign PROFIsafe address" button to assign the PROFIsafe address to the failsafe modules. You may have to enter the password of the F-CPU.
You must acknowledge the "Acknowledge assignment" dialog within 60 seconds to assign the PROFIsafe address.

2.13.3

Assign PROFIsafe address to an F-module

Introduction

In the "Assign PROFIsafe address" dialog only the F-modules which are assigned to an FCPU of this project are offered, as the PROFIsafe address of an F-module in a shared device can only be assigned from a project in which the F-CPU to which the F-modules are assigned is located.

Requirement

Requirement for assignment of the PROFIsafe address is that you have downloaded the hardware configuration completely to the F-CPU. When you have assigned the F-modules in a shared device to multiple F-CPUs, you must first download the hardware configuration of all F-CPUs involved before you assign the PROFIsafe addresses.
Note the following for the assignment:
If the corresponding interface module is not assigned to the corresponding CPU, the programming device and shared device must be located in the same subnet. Otherwise, follow the procedure as described in the sections Identifying F-modules (Page 72) and Assign PROFIsafe address (Page 74).

See also

Configuring shared device (Page 61)

SIMATIC Safety - Configuring and Programming

74

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.13 Assigning a PROFIsafe address of the F-I/Os with SIMATIC Safety

2.13.4

Changing the PROFIsafe address

Changing the PROFIsafe address
Note Keep in mind that after changing the PROFIsafe address of an F-I/O you must also conduct an acceptance (Page 383) including check of your change (Page 396) per safety summary (Page 357).
1. You change the PROFIsafe address (F-destination address, F-source address) in the hardware configuration.
2. Compile the hardware configuration. 3. Download the hardware configuration to the F-CPU. 4. Select "Assign PROFIsafe address" from the shortcut menu. 5. Proceed as described under Identifying F-modules (Page 72) and Assign PROFIsafe
address (Page 74).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

75

Configuring 2.14 Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices

2.14

Peculiarities when configuring fail-safe GSD based DP slaves and

fail-safe GSD based I/O devices

Requirement

In order to use fail-safe GSD based DP slaves for SIMATIC Safety, these GSD based slaves must be operated on PROFIBUS DP and support the PROFIsafe bus profile. When used in an S7-1200/1500 F-CPU, they must support the PROFIsafe bus profile in V2 mode.
Fail-safe GSD based DP slaves used in hybrid configurations on PROFIBUS DP and PROFINET IO downstream from a IE/PB link must support the PROFIsafe bus profile in V2 mode.
In order to use fail-safe GSD based I/O devices for SIMATIC Safety, the GSD based devices must be operated on PROFINET IO and support the PROFIsafe bus profile in V2 mode.

Configuration with GSD files
As is the case in a standard system, the basis for configuring fail-safe GSD based DP slaves/IO devices is the device specification in the GSD file (device master file).
A GSD file contains all of the properties of a GSD based DP slave or GSD based I/O device. For fail-safe GSD based DP slaves/GSD based I/O devices, certain parts are protected by a CRC.
The GSD files are supplied by the device manufacturers.

Protection of the data structure of the device in GSD files
The only GSD files supported are those that satisfy the requirements for protection defined as of PROFIsafe Specification V2.0 using a CRC stored in this file ("setpoint" for F_IO_StructureDescCRC).
The data structure described in the GSD file is checked when the F-I/O is added to the hardware configuration and when the hardware configuration is compiled. When an error is detected, you should clarify whether the GSD file provided by the device manufacturer contains the setpoint for F_IO_StructureDescCRC.

SIMATIC Safety - Configuring and Programming

76

Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring 2.14 Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices
Assignment and setting of the PROFIsafe address
WARNING
Check the documentation for your fail-safe GSD based DP slaves / fail-safe GSD based I/O devices to find out the valid PROFIsafe address type. If you do not find the necessary information, assume PROFIsafe address type 1. Proceed as described under PROFIsafe addresses for F-I/O of PROFIsafe address type 1 (Page 66) or PROFIsafe addresses for FI/O of PROFIsafe address type 2 (Page 68). Set the F-source address for fail-safe GSD based DP slaves / fail-safe GSD based I/O devices according to the manufacturer's specifications. If the F-source address needs to correspond to the "Central F-source address" parameter of the F-CPU (PROFIsafe address type 2), you will find the latter in the "Properties" tab of the F-CPU. In this case, also check in the safety summary that the value of the F-CPU for the "Central F-source address" parameter matches the value of the F-source address of the fail-safe GSD based DP slave / fail-safe GSD based I/O device. (S053)
Configuration procedure with GSD files You import the GSD files to your project (see Help on STEP 7 "GSD files").
1. Select the fail-safe GSD based DP slave / GSD based I/O device in the "Hardware catalog" task card and connect it to the relevant subnet in the network view.
2. Select the fail-safe GSD based DP slave/GSD based I/O device and insert the necessary F-modules, if this does not occur automatically.
3. Select the relevant F-module and open the "Properties" tab in the inspector window. For fail-safe GSD based DP slaves/GSD based I/O devices (contrary to other F-I/O), the "Manual assignment of F-monitoring time" parameter is enabled. The result is that the value specified in the GSD file for the F-monitoring time is used as default value when the slaves/devices are plugged. You can change both values (time and type of assignment) later manually.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

77

Configuring 2.14 Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices

F-parameter "F_CRC_Seed" and "F_Passivation" for fail-safe GSD based I/O devices
The F-parameters "F_CRC_Seed" and "F_Passivation" influence the behavior of a fail-safe GSD based I/O device. The combination of the F-parameters cannot be set but is specified by selecting a corresponding F-module. Up to three F-module variants can be used, depending on the S7-300/400 or S7-1200/1500 F-CPU used.

F-module variant
1

F_CRC_Seed
Parameter does not exist

2

CRC-

Seed24/32

3

CRC-

Seed24/32

F_Passivation Parameter does not exist Device/module
Channel

Behavior of the fail-safe GSD based I/O device
The GSD based I/O device works with the Basic Protocol (BP) from PROFIsafe. The "RIOforFA-Safety" profile is not supported. The GSD based I/O device works with the Expanded Protocol (XP) from PROFIsafe. The "RIOforFA-Safety" profile is not supported. The GSD based I/O device works with the Expanded Protocol (XP) from PROFIsafe. The "RIOforFA-Safety" profile is supported.

Can be used with F-CPU S7300/400/1200/150 0* S7-1200/1500
S7-1200/1500

* Only use the F-module variant 1 with S7-1200/1500 F-CPUs if neither F-module variant 2 nor 3 exists.

Additional information
You can find the description of the parameters in the Help on fail-safe GSD based DP slaves and GSD based I/O devices.

SIMATIC Safety - Configuring and Programming

78

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor

3

Overview

The Safety Administration Editor supports you as follows:  Displaying of status of the safety program  Displaying of collective F-signature  (S7-1200, S7-1500) F-SW collective signature  (S7-1200, S7-1500) F-HW collective signature  Displaying of status of safety mode  Creating and organizing of F-runtime groups  Displaying information on the F-blocks  Displaying information about F-compliant PLC data types (UDT)  Information for users with F-Admin permission  Specifying/changing access protection  Set/modify settings for the safety program, e.g. Enable F-change history  (S7-1200, S7-1500) Create/display/delete F-communications via flexible F-Link

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

79

Safety Administration Editor

See also

The Safety Administration Editor is divided into the following areas:
 General
Under "General", the status of the safety mode, the safety program, the F-collective signature and for F-CPUs S7-1200/1500 the F-SW collective signature and the F-HW collective signature are displayed. Additional information on the "General" area can be obtained in ""General" area (Page 82)".
 F-runtime group
You define the blocks and properties of an F-runtime under "F-runtime group".
You can find information on F-runtime groups at ""F-runtime group" area (Page 85)".
 F-blocks
Under "F-blocks", you can find information on the F-blocks used in your safety program and their properties . Additional information on the "F-blocks" area can be obtained in ""Fblocks" area (Page 88)".
 F-compliant PLC data types
Under "F-compliant PLC data types", you obtain information on the created F-compliant PLC data types (UDT). There you also obtain information whether or not an F-compliant PLC data type (UDT) is used in the safety program. Additional information on "Fcompliant PLC data types" can be found in ""F-compliant PLC data types" area (S7-1200, S7-1500) (Page 89)".
 Access protection
Under "Access protection", you can set up, change, or revoke the password for the safety program. Access protection is mandatory for productive operation. Additional information on access protection can be found in "Access protection for the safety-related project data (Page 106)".
 Web server F-Admins
Under "Web server F-admins", you obtain information on users with the F-Admin attribute for the Web server of the F-CPU. Additional information on the "Web server F-Admins" area can be obtained in ""Web server F-Admins" area (S7-1200, S7-1500) (Page 90)".
 Settings
Under "Settings", you set the parameters for the safety program. Information on the settings for your safety program can be found in ""Settings" area (Page 91)".
 Flexible F-Link
In the "Flexible F-Link" area, you receive information about the configured Fcommunications via Flexible F-Links in tabular form. You can obtain information at ""Flexible F-Link" area (S7-1200, S7-1500) (Page 98)".
Program structure of the safety program (S7-1200, S7-1500) (Page 117)
Program structure of the safety program (S7-300, S7-400) (Page 115)
Defining F-Runtime Groups (Page 139)

SIMATIC Safety - Configuring and Programming

80

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.1 Opening the Safety Administration Editor

3.1

Opening the Safety Administration Editor

Requirement

The Safety Administration Editor is visible as an element in the project tree, if you have configured a CPU as an F-CPU in the project, which means the "F-capability activated" option must be selected (in the properties of the F-CPU).

Procedure

To open the Safety Administration Editor, follow these steps:
1. Open the folder for your F-CPU in the project tree.
2. Double-click on "Safety administration" or right-click and select the corresponding shortcut menu for the Safety Administration Editor.

Result

The Safety Administration Editor for your F-CPU opens in the work area.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

81

Safety Administration Editor 3.2 "General" area

3.2

"General" area

"Safety mode status"
The "Safety mode status" shows the current status of safety mode. The prerequisite is an existing online connection to the selected F-CPU. The following statuses are possible:  "Safety mode is activated"  "The safety mode is not activated"  "F-CPU is in STOP"  "No active F-CPU available"  "F-runtime group was not called"  "The safety program is not called"  "(No online connection)"
"Disable safety mode"
For existing online connection and active safety mode operation, you have the option of using the "Disable safety mode" button to disable safety mode for the selected F-CPU. Safety mode can be deactivated only for the entire safety program and not for individual F-runtime groups. For more information, refer to the section "Disabling safety mode (Page 360)".
"Safety program status"
"Safety program status" displays the current status of your online and offline program. The following statuses are possible:  Consistent (with information if no password has been assigned.)  Inconsistent  Modified If no connection to the online program could been established, the message "(no online connection)" will be shown.

SIMATIC Safety - Configuring and Programming

82

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.2 "General" area

"F-signatures"
For a non-existing online connection
Under "F-signatures" multiple signatures are displayed. Each signature is formed from different parts of the fail-safe project data.
 F-collective signature: This signature changes with each change of the fail-safe project data. It contains the signatures described below.
 F-SW collective signature (S7-1200/1500): This signature changes with each change of the safety program.
 F-HW collective signature (S7-1200/1500): This signature changes with each change of the fail-safe HW configuration.
 F-communication address signature (S7-1200/1500): This signature changes with each change of the name or the F-communication UUID of communication connections with flexible F-link.
The time of the last compilation process is displayed for the F-collective signature in the "Time stamp" column.
For an existing online connection
For an existing online connection, the following is displayed under the "Program signature":
 The status of safety program

Status --

Meaning
The online and offline collective F-signatures match, and a password was assigned for the online and offline safety programs.
The online and offline collective F-signatures do not match or no password was assigned for one of the safety programs.
The safety program status could not be determined.

 The online and offline collective F-signatures

 When the collective F-signatures match: Information on whether the F-block versions are consistent online and offline.

Status
Not relevant

Version comparison Not relevant
--

Statement
The online and offline collective F-signatures do not match one another. The online and offline collective F-signatures match, but the online versions of F-blocks differ from the offline versions. The online and offline F-collective signatures match, identical versions of F-blocks are being used online and offline. The safety system versions could not be determined.

You can find additional information on the consistency of the online safety program at under Identity of online and offline program (Page 393).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

83

Safety Administration Editor 3.2 "General" area

See also

Program identification (Page 352)

SIMATIC Safety - Configuring and Programming

84

Programming and Operating Manual, 10/2019, A5E02714440-AK

3.3

"F-runtime group" area

Safety Administration Editor 3.3 "F-runtime group" area

3.3.1

"F-runtime group" area
A safety program consists of one or two F-runtime groups.
General information on F-runtime groups can be found in "Program structure of the safety program (S7-300, S7-400) (Page 115)" and "Program structure of the safety program (S71200, S7-1500) (Page 117)".
You can find information on creating F-runtime groups at Defining F-Runtime Groups (Page 139)

(S7-1200, S7-1500) "Creating a global F-I/O status block"
You can create a standard block (FB) with the name "RTGx_GLOB_FIO_STATUS", which evaluates whether substitute values are output instead of process values for at least one FI/O or at least one channel of an F-I/O of an F-runtime group x. The result of the evaluation is available at the "QSTATUS" output. The F-O that you have disabled with the DISABLE variable in the F-I/O DB are then ignored.
The "RIOforFA_VALUE_STATUS" output corresponds to the "QSTATUS" output, but only takes F-I/Os into account with the "RIOforFA-Safety" profile.
To generate this standard FB, you use the "Create global F-I/O status block" button. You can only create the standard FB when your safety program has been compiled. You can call the standard FB anywhere in your standard user program.
Note
When adding or deleting an F-I/O, you have to generate "RTGx_GLOB_FIO_STATUS" again.

See also

Process Data or Fail-Safe Values (Page 172)

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

85

Safety Administration Editor 3.3 "F-runtime group" area

3.3.2

Pre-/postprocessing (S7-1200, S7-1500)
With preprocessing and postprocessing you have the option of calling standard blocks (FCs) directly before or after an F-runtime group, for example for data transfer with fail-safe communication via Flexible F-Link (Page 312).

Requirement

 Only standard-FCs usable.
 Only temporary local data and constants are permitted in the block interface of a standard-FC.

Procedure

1. Create the standard-FCs for the preprocessing and the postprocessing.
2. Assign the standard-FCs in the Safety Administration Editor under "Pre-/postprocessing of the F-runtime group".

Note When you delete an assigned FC or overwrite it by copying, its selection as a preprocessing / post-processing block is automatically reset.
Effect on the safety program
 The runtime of the F-runtime group is extended by the runtime of the standard FCs for pre-/postprocessing (influence on TRTG_CURR and TRTG_LONG in the F-runtime group information DB).
 Because the preprocessing / postprocessing does not change the functionality of the safety program, the F-collective signature remains unchanged after compilation.

SIMATIC Safety - Configuring and Programming

86

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.3 "F-runtime group" area

Load behavior

The calls of the selected standard FCs are placed during compiling or after the call of the main safety block in the F-OB. This means that the STOP operating state is required during a subsequent download.
Changes in the contents at the selected standard FCs can take place in RUN.
Exceptions are changes of the block name and block numbers which also include the compilation of the safety program.
When a preprocessing/postprocessing block is uploaded individually by the F-CPU, it does not automatically connect to the F-runtime group in the Safety Administration Editor.
If consistent loading of the F-CPU into the PG/PC is performed instead, the settings for preprocessing and postprocessing are updated according to the online CPU.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

87

Safety Administration Editor 3.4 "F-blocks" area

3.4

"F-blocks" area

Overview

The "F-Blocks" area helps you in the following tasks:  Displaying the F-blocks used in your safety programs.  Displaying the F-blocks used in the F-runtime groups.  Displaying additional information about the F-blocks. A description of the F-blocks is available in "Creating F-blocks in FBD / LAD (Page 160)".

Displayed information
The following information is displayed for F-blocks in offline mode:  Has the F-block been compiled and used?  Function of F-block in the safety program  Block signature  Time stamp of the last change The following information is displayed for F-blocks in online mode:  Status (whether block has the same time stamp online and offline)  Function of F-block in the safety program  Block signature of the block offline  Block signature of the block online The F-blocks are hierarchically displayed as in the "Program blocks" folder. The description of the symbols in the "Status" column can be found in "Comparing Safety Programs (Page 354)".
Note During the offline-online comparison, the comparison statuses may occasionally differ between the comparison editor and status display in the Safety Administration Editor. The decisive status is the result of the comparison in the comparison editor, since this is the only comparison that takes into account the contents of the F-blocks.

SIMATIC Safety - Configuring and Programming

88

Programming and Operating Manual, 10/2019, A5E02714440-AK

Filter function

Safety Administration Editor 3.5 "F-compliant PLC data types" area (S7-1200, S7-1500)

Using the filter function, you can select whether you want to view all F-blocks of a certain Fruntime group or the entire safety program.
 Select "All F-blocks " from the drop-down list to view all F-blocks.
 Select an F-runtime group from the drop-down list to see all F-blocks of this F-runtime group.

3.5

"F-compliant PLC data types" area (S7-1200, S7-1500)

Overview

Under "F-compliant PLC Data Types" you obtain information on the F-compliant PLC data types (UDT) you have defined.
You can delete F-compliant PLC data types (UDT) from the shortcut menu.
A description of F-compliant PLC data types (UDT) is available in "F-compliant PLC data types (UDT) (S7-1200, S7-1500) (Page 128)".

Displayed information
The following information is displayed for F-compliant PLC data types (UDT) in offline mode:
 Is the F-compliant PLC data type used in the safety program?
 Time stamp of the last change.
The following information is displayed for F-compliant PLC data types (UDT) in online mode:
 Status (whether the F-compliant PLC data types (UDT) have the same time stamp online and offline)
The F-compliant PLC data types (UDT) are displayed hierarchically as in the folder "PLC Data Types".
Double-click the F-compliant PLC data type (UDT) to open it for editing.
The description of the symbols in the "Status" column can be found in "Comparing Safety Programs (Page 354)".
Note
During offline-online comparison, the comparison statuses between the comparison editor and status display in the Safety Administration Editor can be different under certain circumstances. The comparison result in the comparison editor is decisive, since this is the only comparison that takes into account the contents of the F-compliant PLC data types (UDT).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

89

Safety Administration Editor 3.6 "Web server F-Admins" area (S7-1200, S7-1500)

3.6

"Web server F-Admins" area (S7-1200, S7-1500)

You require the "F-admin" right in order to carry out restoration of a backup (Page 342) via the Web server of your F-CPU. You assign the "F-admin" right in the hardware configuration of the F-CPU under the user management of the Web server.

In this section, you obtain information on which users have the "F-admin" right online or offline for F-CPUs that support this right. You can see from this whether a change to the "Fadmin" right is active on the F-CPU. In order to make a change to the "F-admin" right effective, you have to load the configuration to the F-CPU.

See also

Completeness and correctness of the hardware configuration (Page 383)

SIMATIC Safety - Configuring and Programming

90

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.7 "Settings" area

3.7

"Settings" area

"Number ranges of the generated F-system blocks"
The number ranges assigned here are used by the F-System for new, automatically generated F-blocks.
At this point, you can select whether the number ranges are managed by the F-system or if a fixed range specified by you is used.
 "F-system managed"
The number ranges are managed automatically by the F-system, depending on the FCPU used. The F-system selects an available number range. The start and end ranges of the number ranges are displayed.
 "Fixed range"
You can select the start and end ranges of the number ranges from the available range. The available range depends on the F-CPU used.
An invalid number range selection is indicated by an error message.
The only check performed during configuration is whether the configured low limit is less than or equal to the high limit and within the available range of the F-CPU. The check as to whether the configured range is sufficiently large is first made during compiling. You need to ensure a sufficiently large range. Where the available range is insufficient, a compiling error occurs. Not all blocks are generated and the safety program is not executable.
Changes will become valid only during the next compilation. The automatically created Fblocks may be moved into the new area during compilation. The F-I/O DBs are an exception. They always retain their original number that you may change in the properties of the F-I/O.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

91

Safety Administration Editor 3.7 "Settings" area

"Safety system version"
This parameter is used to specify the safety system version (including version of the Fsystem blocks and automatically generated F-blocks, see Overview of Programming (Page 114)).
A number of versions are available:

Version3
1.6 2.0

S7-300/400 S7-1200

--

x

x

x1

2.1 --

x1

2.2 --

x1

2.3 --

x1

S7-1500 x x2
x2 x2 x2

Function
These versions have identical functions. Depending on the set version, the result may be different runtimes of the F-runtime group(s) (see Excel file for response time calculation on the Internet (http://support.automation.siemens.com/WW/view/en/49368678/133100 )). Additionally supports the variables "DISABLE" and "DISABLED" in the F-I/O DB Supports the safety-related CPU-CPU communication and F-runtime group communication with Flexible F-Link. This version has identical functions to version 2.2.

1 supported for Firmware version V4.2 or higher
2 supported for Firmware version V2.0 or higher
3 After the migration of projects that were created with S7 Distributed Safety V5.4 SP5, version 1.0 is set automatically in order to identify migrated projects which have not yet been compiled with STEP 7 Safety Advanced.

Usually, you do not need to make any settings for this parameters.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

"Local data used in safety program" (S7-300, S7-400)
You use this parameter to specify the amount of temporary local data (in bytes) that is available for the call hierarchy below the main safety block.
The setting applies to each F-runtime group of a safety program. Additional information on Fruntime groups can be found in "Program structure of the safety program (S7-1200, S71500) (Page 117)" and "Program structure of the safety program (S7-300, S7-400) (Page 115)".
The minimum possible amount is determined by the local data requirement of the F-blocks generated automatically when the safety program is compiled.
For this reason, you must provide at least 440 bytes. However, the local data requirement for the automatically added F-blocks may be higher depending on the local data requirement of the F-blocks you created with FBD or LAD.
Therefore, provide as much local data as possible. If there is not enough local data available for the automatically added F-blocks (440 bytes or more), the safety program will be compiled nevertheless.

SIMATIC Safety - Configuring and Programming

92

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.7 "Settings" area
Data in automatically added F-DBs are then used instead of local data. However, this increases the runtime of the F-runtime group(s). You will receive a notice when the automatically added F-blocks require more local data than configured.
WARNING
The calculated maximum runtime of the F-runtime group using the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) is no longer correct in this case because the calculation assumes sufficient availability of Flocal data.
In this case, use the value you configured for the maximum cycle time of the F-runtime group (F-monitoring time) as the maximum runtime of the F-runtime group when calculating the maximum response times in the event of an error and for any runtimes of the standard system using the above-mentioned Excel file. (S004)
The maximum possible amount depends on:
 Local data requirement of the main safety block and the higher-level standard user program. For this reason, you should call the main safety blocks directly in OBs (cyclic interrupt OBs, whenever possible), and additional local data should not be declared in these cyclic interrupt OBs.
 Maximum volume of local data of the utilized F-CPU (see Technical Specifications in the product information for the utilized F-CPU). For S7-400 F-CPUs, you can configure the local data for each priority class. Therefore, assign the largest possible local data volume for the priority classes in which the safety program (the main safety blocks) is called (e.g., OB 35).

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

93

Safety Administration Editor 3.7 "Settings" area
Maximum possible amount of local data as a function of local data requirement of main safety block and higher-level standard user program (S7-300, S7-400):
Case 1: Main safety block called directly from OBs

Set the "Local data used in safety program" parameter to the maximum amount of local data of the utilized F-CPU minus the local data requirement of the main safety block (if the main safety block has 2 F-runtime groups, use the largest local data requirement) and minus the local data requirement of the calling OBx (if there are 2 F-runtime groups, use the OB with the largest local data requirement).
Note: If you have not declared any temporary local data in the main safety blocks and calling OBx, the local data requirement of the main safety blocks is 6 bytes and the local data requirement of the calling OBx is 26 bytes. You can derive the local data requirement of the main safety blocks and calling OBx from the program structure.
Select the utilized F-CPU in the project tree and then "Tools > Call structure". The table gives the local data requirement in the path or for the individual blocks (see also the help on STEP 7).

SIMATIC Safety - Configuring and Programming

94

Programming and Operating Manual, 10/2019, A5E02714440-AK

Case 2: Main safety block not called directly from OBs

Safety Administration Editor 3.7 "Settings" area

Set the "Local data settings" parameter to the value calculated for Case 1, minus the local data requirement of standard user program A (if standard user program A has 2 F-runtime groups, use the largest local data requirement). Note: You can derive the local data requirement of the standard user program A from the program structure. Select the utilized F-CPU in the project tree and then "Tools > Call structure". The table gives the local data requirement in the path or for the individual blocks (see also the help on STEP 7).
"Advanced settings"
"Safety mode can be disabled" With this option you can prevent the safety mode for a safety program from being disabled. When you change the setting for this option, you need to recompile the safety program and download it to the F-CPU for the change to become effective. This changes the F-collective signature and the F-SW collective signature of your safety program. We recommend that you disable this option before you start production and before acceptance of the safety program to prevent an unintentional disabling of the safety mode.
"Enable F-change history" Enable the logging of changes to the safety program by using the "Enable F-change history" option. For more information, refer to the section "F-change history (Page 375)".

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

95

Safety Administration Editor 3.7 "Settings" area
"Enable consistent upload from the F-CPU" (S7-1500)
This option allows you to load the loaded project data (including safety-related project data) consistently from the F-CPU to the PG/PC.
The option can only be activated if the F-CPU and the firmware of the F-CPU supports the loading of the project data (including safety-related project data).
F-CPUs S7-1500 as of firmware V2.1 are supported. S7-1500 F Software Controllers are not supported.
At every change to this option you have to load the project data to the F-CPU.
Note that the activation of this option extends the loading of the safety-related project data into the F-CPU.
"Activate variable F-communication- IDs" (S7-1200, S7-1500)
If you activate this option, you can supply the DP_DP_ID input of the SENDDP or RCVDP instructions with the variable values from a global F-DB.
WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and, if applicable, RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".
*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must ensure that the value at the DP_DP_ID input is "0" during this phase.

SIMATIC Safety - Configuring and Programming

96

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.7 "Settings" area
"System-generated objects" (S7-1200, S7-1500)
"Creates F-I/O DBs without prefix" When you select this option, the names of the F-I/O DBs (Page 174) are created without prefix. "Clean up" The "Clean up" button is provided for service and support purposes and cleans up the result of the fail-safe compilation.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

97

Safety Administration Editor 3.8 "Flexible F-Link" area (S7-1200, S7-1500)

3.8

"Flexible F-Link" area (S7-1200, S7-1500)

In the "Flexible F-Link" area, you create new F-communications, obtain information on existing F-communications and delete F-communications.

Requirement

 S7-1500 F-CPUs as of firmware V2.0  S7-1200 F-CPUs as of firmware V4.2  Safety system version as of V2.2

Information on created F-communications
In the "Flexible F-Link" area, you receive information on configured F-communications in tabular form:  CPU-wide unique name of F-communication  F-compliant PLC data type (UDT) for send/receive data  Direction of F-communication: Transmitting/receiving  F-monitoring time of F-communication  F-Communication UUID  Tag for send data  Tag for receive data

Creating F-communication
1. In an empty row of the table click "<Add new>"
2. Assign a name to the communication connection.
3. Select an F-compliant PLC data type (UUID) for the communication connection.
If you have not yet created an F-compliant PLC data type (UDT) for the communication connection or wish to create a new one, create a new F-compliant PLC data type (UDT) (Page 128) with any structure. Note that the size can be a up to 100 bytes.
4. Select the direction of the communication connection ("Send" or "Receive").
5. Select the F-monitoring time of the communication connection (Page 650).
The UUID of the F-communication is displayed via Flexible F-Link in the "F communication UUID" column. The F-communication UUID ensures sufficient uniqueness of the safetyrelated communication ID even across network limits.
The "Tag for send data" column shows you the newly created tag for send data of the Fcommunication DB.
The "Tag for receive data" column shows you the newly created tag for receive data of the Fcommunication DB.
You can find the newly created F-communication DB for this F-communication under "Program blocks\System blocks\STEP 7 Safety\F-communication DBs".

SIMATIC Safety - Configuring and Programming

98

Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.8 "Flexible F-Link" area (S7-1200, S7-1500)
Deleting F-communication
1. Select the entire row and confirm "Delete" in the shortcut menu. You can also delete multiple F-communications at the same time.
Copying F-communication
1. Select the entire row and confirm "Copy" in the shortcut menu. You can also copy multiple F-communications at the same time.
2. With the "Paste" menu command, you can paste the copied F-communications into the table as often as needed. The UUID for the respective F-communication is retained during copying. If necessary, re-generate the UUID.
Generating a new F-communication-UUID
1. Select the entire row and confirm "Generate UUID" in the shortcut menu. You can also generate multiple UUIDs at the same time.

SIMATIC Safety - Configuring and Programming

Programming and Operating Manual, 10/2019, A5E02714440-AK

99

Safety Administration Editor 3.8 "Flexible F-Link" area (S7-1200, S7-1500)

Interface of the F-communication DB for sending
The following table shows you the interface of the F-communication DB for the communication connection with the direction "Send":

Section Input Output
InOut Static

Name SEND_DATA ACK_RCV_ARRAY ERROR
ACTIVATE_FV
DIAG
SEND_ARRAY ACK_RCV_LENGTH SEND_LENGTH -- --

Data type F-compliant PLC data type (UDT) Array[0..n] of Byte BOOL
BOOL
Byte
Array[0..n] of Byte UInt UInt -- --

Initial value As in the F-compliant PLC data type (UDT). Each element with 16#0 False
True
16#0
Each element with 16#0 0 0 -- --

Description
User data to be sent:
Array with the received raw data.
Signals currently pending communication errors or communication errors not acknowledged yet at the receiver (not in the initial start). 1=Communication error Communication passivated, in the initial start (for example receiver not started), or HOST sends ACTIVATE_FV. DEVICE sends status bit: FV_ACTVATED, but no 0-values. 1=The communication uses failsafe values Error bits (Timeout or CRC error currently still pending, or communication after error not depassivated yet) Bit 3: Acknowledgement request active at the receiver Bit 4: Timeout detected Bit 6: CRC error detected Array with the received raw data
Length information to ACK_RCV_ARRAY in bytes Length information to SEND_ARRAY in bytes -- --

100

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety Administration Editor 3.8 "Flexible F-Link" area (S7-1200, S7-1500)

Interface of the F-communication DB for receiving
The following table shows you the interface of the F-communication DB for the communication connection with the direction "Receive":

Section Input

Name PASS_ON

ACK_REI

Output

RCV_ARRAY RCV_DATA ERROR

PASS_OUT

ACK_REQ

SENDMODE

Data type BOOL BOOL
Array[0..n] of Byte F-compliant PLC data type (UDT) BOOL
BOOL
BOOL
BOOL

Initial value False
False
Each element with 16#0 As in the F-compliant PLC data type (UDT). False
True
False
False

Description
This way you can passivate the output data (output of the passivation values)
1=Enable passivation
Reintegration (in case of reintegration request) by means of positive edge
1=Acknowledgment for reintegration
Array with the received raw data
Output data (PASS_VALUES or data received).
Signals currently pending communication errors or communication errors not acknowledged yet (not in the initial start).
1=Communication error
At PASS_OUT=1 the PASS_VALUES are output
Could be: ERROR, PASS_ON, in the initial start (e.g. sender not started), or ACK_REQ is pending (error not acknowledged)
Reintegration requirement (communication stable again after error, substitute values are still output)
1=Acknowledgment request for reintegration
MOD_MODE is active or communication with PLCSIM Advanced on the sending F-CPU
1=F-CPU with a sender in the deactivated safety operation or on a simulated CPU

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

101

Safety Administration Editor 3.8 "Flexible F-Link" area (S7-1200, S7-1500)

Section
InOut Static

Name DIAG

Data type Byte

Initial value 16#0

ACK_SEND_ARRAY Array[0..n] of Byte

RCV_LENGTH

UInt

Each element with 16#0
0

ACK_SEND_LENGTH UInt

0

-- PASS_VALUES

--
F-compliant PLC data type (UDT)

--
Same as the Fcompliant PLC data type (UDT) or in the I/O DB

Description
Error bits (Timeout or CRC error)
Bit 0: Timeout detected by the sender
Bit 1: Communication error currently pending in the sender
Bit 2: CRC error detected by the sender
Bit 4: Timeout detected by the receiver
Bit 6: CRC error detected by the receiver
Array with the raw data to be sent.
Length information of RCV_ARRAY in bytes
Length information of ACK_SEND_ARRAY in bytes
--
Passivation or substitute values

See also

Flexible F-Link (Page 312) F-runtime group communication (S7-1200, S7-1500) (Page 154)

102

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection

4

Access protection is necessary for productive operation
Access protection to the SIMATIC Safety F-system is mandatory for productive operation.
No access protection is initially necessary for test purposes, commissioning, etc. This means you can execute all offline and online actions without access protection, i.e., without password prompt.
WARNING
Access to the SIMATIC Safety F-system without access protection is intended for test purposes, commissioning, etc., when the system is not in productive operation. You must guarantee the safety of the system through other organizational measures, for example, restricted access to certain areas.
Before you transition into productive operation, you must have set up and activated access protection. (S005)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

103

Access protection 4.1 Overview of access protection

4.1

Overview of access protection

Introduction

You can protect access to the SIMATIC Safety F-system by two password prompts: one for the safety program and another for the F-CPU.

Password for the safety program
The password for the safety program is available in two forms:
 The offline password is part of the safety program in the offline project on the programming device or PC.
 The online password is part of the safety program in the F-CPU.

Password for the F-CPU
The access protection is set at the F-CPU level. This password is also used to identify the F-CPU and must therefore be unique network-wide.

Overview of password assignment and prompt
The following table provides an overview of the access permissions for the F-CPU and the safety program.

104

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection 4.1 Overview of access protection

Assignment
Prompt

The sections below show you how to assign the passwords and how to set up, change, and cancel access permissions for the F-CPU and the safety program.

Password for F-CPU

Password for safety program

In the hardware and network editor, during configuration of the F-CPU, inspector window, in "Settings" tab under "Protection", corresponding safety level, e.g., "Write protection for fail-safe blocks" (S7-300, S7-400).

In the Safety Administration Editor under "Access Protection".

Select at least the access level "Full access (no protection)" for S7-1200/1500 F-CPUs and assign a password for "Full access incl. fail-safe (no protection)".

If you select a higher protection level, for example to protect the standard user program, you must assign an additional password for "Full access (no protection)".

If you do not have access permission for the safety program (Page 106): For example
· When uploading the complete safety program to the F-CPU
· (S7-300, S7-400) when uploading the hardware configuration to the F-CPU
· (S7-1200, S7-1500) when uploading a hardware configuration to the F-CPU that contains safetyrelated changes
· When PROFIsafe address is assigned

If you have assigned a password and this has not yet been entered since the project was opened, or you do not have access permission for the safety program (Page 106): Offline password e.g.:
· When the password is changed
· When modifying the safety program
· When changing and deleting F-runtime groups
· When changing safety-related parameters of F-I/O Online password

· When F-blocks that are used in the safety program are downloaded and deleted
· When disabling safety mode

e.g., when disabling safety mode (the password must always be entered, even if access permission for the safety program is still valid)

· When restoring a backup of the F-CPU.

Exception with S7-1200/1500 F-CPUs: If neither the safety program nor the F-CPU password is changed by the restore process, you are not prompted for the F-CPU password.

Safety program recompilation is required after changes to standard DBs to which the safety program has read or write access (Page 204). These standard DBs are not governed by the safety program access protection.

(S7-300, S7-400) Note that you also require the password for the F-CPU to download the safety-relevant changes to the hardware configuration. This is also true for changes to F-I/O not used in the safety program. You have to also recompile and download the safety program for the download to be consistent.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

105

Access protection 4.2 Access protection for the safety-related project data

4.2

Access protection for the safety-related project data

Setting up access protection for safety-related project data
To set up access protection for safety-related project data, assign a password for the safety program. Proceed as follows:
1. Open the folder for your F-CPU in the project tree.
2. Select "Safety Administration" and select "Go to access protection" in the shortcut menu.
Alternatively, double-click on "Safety Administration". The Safety Administration Editor of the F-CPU will open. Select "Access protection" in the area navigation.
3. Under "Offline safety program protection", click "Setup" and enter the password (max. 30 characters) for the safety program in the following dialog in the "New password" and "Confirm password" fields.
4. Confirm the assigned password with "OK".
You have set up access protection for safety-related project data and have gained access permission for the safety-related project data.
Note
You cannot define the online password separately; the offline password assigned during the next download is applied. After a change to the offline password, the online and offline passwords might differ until the next time the offline safety program is downloaded to the FCPU.
During loading from the device the offline password is replaced by the online password or deleted.
Note
Use different passwords for the F-CPU and the safety program to optimize access protection.
WARNING
If restricted access to certain areas is not used to limit access to the programming device or PC to only those persons who are authorized to modify the safety program, the following organizational measures must be taken to ensure the effectiveness of the access protection for the F-CPU at the programming device or PC: · Only authorized personnel may have access to the password. · Authorized personnel must explicitly cancel the access permission for the F-CPU before
leaving the programming device or PC by closing STEP 7 or via the "Online > Delete access rights" menu. If this is not strictly implemented, a screen saver equipped with a password accessible only to authorized personnel must also be used. (S006)

106

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection 4.2 Access protection for the safety-related project data
Changing the password for safety-related project data
You can change the password for the safety-related project data as long as you have the necessary access permissions. It takes place likewise in the "Access protection" area (via "Change" button) and is carried out as usual under Windows through entry of the old and double entry of the new password.
Deleting access protection for safety-related project data
To delete access protection for safety-related project data, delete the password for the safety program. Proceed as follows: 1. Open the folder for your F-CPU in the project tree. 2. Select "Safety Administration" and select "Go to access protection" in the shortcut menu.
Alternatively, double-click on "Safety Administration". The Safety Administration Editor of the F-CPU will open. 3. Select "Access protection" in the area navigation. 4. Click the "Change" button. 5. Under "Old password", enter the password for the safety program. 6. Click "Revoke" and then on "OK".
Gaining access permission through login to the safety program
Log in to the safety program as follows: 1. Open the folder for your F-CPU in the project tree. 2. Select "Safety Administration" and select "Go to access protection" in the shortcut menu.
Alternatively, double-click on "Safety Administration". The Safety Administration Editor of the F-CPU will open. 3. Select "Access protection" in the area navigation. 4. Enter the password for the safety program in the "Password" input field. 5. Select the "Login" button.
Validity of access permission for safety-related project data
If access permission for safety-related project data was obtained through the entry of the password, this remains until the project is closed. If STEP 7 is closed, any project that is still open is automatically closed and any access permission granted is canceled.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

107

Access protection 4.2 Access protection for the safety-related project data
Revoking access permission through logoff
The access permission for safety-related project data can be revoked as follows:  By clicking the "Log off" button in the "Access protection" area in the "Safety
Administration Editor".  In the shortcut menu for the Safety Administration Editor shortcut menu (access by right-
clicking).  By using the lock symbol in the line of the Safety Administration Editor. The user will then be prompted to enter the password for the safety program again the next time an action requiring a password is performed. A Stop-Run transition is required to "revoke" access permission for control. Access permission for safety-related project data is canceled automatically, if the project or STEP 7 has been closed.
Displaying the validity of access permission
The validity of the access permission is displayed in the project tree as follows:  The access permission is valid, if the lock symbol in the line of the Safety Administration
Editor is shown unlocked.  The access permission is not available, if the lock symbol shows a closed lock.  If no lock symbol is shown, no password was assigned.

108

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection 4.3 Access protection for the F-CPU

4.3

Access protection for the F-CPU

Setting up access protection for the F-CPU
To set up access protection for the F-CPU, assign a password for the F-CPU in the F-CPU configuration.
You arrive there directly, if you click the link "Go to the "Protection" area of the F-CPU" in the "Access protection" area in the Safety Administration Editor. Proceed as described in the STEP 7 help under "Configuring access levels".
WARNING
(S7-300, S7-400) In safety mode, access with the CPU password must not be authorized during changes to the standard user program as this would also allow changes to the safety program. To rule out this possibility, you must configure the protection level "Write protection for fail-safe blocks" and configure a password for the F-CPU. If only one person is authorized to change the standard user program and the safety program, the protection level "Write protection" or "Read/write protection" should be configured so that other persons have only limited access or no access at all to the entire user program (standard and safety programs). (S001)
WARNING
(S7-1200, S7-1500) In safety mode, the safety program must be password-protected. For this purpose, configure at least the protection level "Full access (no protection)" and assign a password under "Full access incl. fail-safe (no protection)". This protection level only allows full access to the standard user program, not to F-blocks.
If you select a higher protection level, for example to protect the standard user program, you must assign an additional password for "Full access (no protection)".
Assign different passwords for the individual protection levels. (S041)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

109

Access protection 4.3 Access protection for the F-CPU
You enable access protection by downloading (Page 325) the hardware configuration to the F-CPU.
WARNING
If multiple F-CPUs can be reached over a network (e.g. Industrial Ethernet) by the same programming device or PC, you must take the following actions to ensure that the project data is downloaded to the correct F-CPU: Use passwords specific to each F-CPU, such as a uniform password for the F-CPUs with attached Ethernet address for each. Note the following: · A point-to-point connection must be used to activate the access protection of an F-CPU
when the hardware configuration is loaded for the first time (similar to assigning an MPI address to an F-CPU for the first time). · Before downloading the safety program to an F-CPU, you must first revoke an existing access permission for any other F-CPU. · The last download of the safety program prior to switching to productive operation must be made with enabled access protection. (S021)
WARNING
When using tools for the automation or operation (of TIA Portal or Web server) which allow access protection for the F-CPU to be bypassed (e.g. saving or automatic entry of a CPU password for the protection level "Full access incl. fail-safe (no protection)" or Web server password), the safety relevant project data may not be protected against unintentional changes anymore. (S078)
Changing the password for the F-CPU
For the new password to become valid after a password change for the F-CPU, you must download the changed configuration into the F-CPU. If necessary, you must enter the "old" password for the F-CPU for this load operation. The F-CPU must be in STOP mode.
Deleting access protection for the F-CPU
To delete access protection for the F-CPU, delete the password for the F-CPU. To do this, proceed as in the standard.
Obtaining access permission for the F-CPU
You obtain access permission for the F-CPU - depending on the configured protection level by entering the password for the F-CPU prior to performing an action requiring a password.

110

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection 4.3 Access protection for the F-CPU
Obtaining access permission for the F-CPU Access permission for the F-CPU remains valid until the project is closed in STEP 7 or
access permission is canceled.
Canceling access permission for the F-CPU
You cancel the access permission with the menu command "Online > Delete access rights" auf.
WARNING
If restricted access to certain areas is not used to limit access to the programming device or PC to only those persons who are authorized to modify the safety program, the following organizational measures must be taken to ensure the effectiveness of the access protection for the F-CPU at the programming device or PC: · Only authorized personnel may have access to the password. · Authorized personnel must explicitly cancel the access permission for the F-CPU before
leaving the programming device or PC by closing STEP 7 or via the "Online > Delete access rights" menu. If this is not strictly implemented, a screen saver equipped with a password accessible only to authorized personnel must also be used. (S006)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

111

Access protection 4.4 Access protection through organizational measures

4.4

Access protection through organizational measures

To prevent that a safety program is swapped without authorization by exchanging removable media (e.g. flash card, SIMATIC Micro Memory Card or hard disk with WinAC RTX F), you must observe the following warning:

WARNING
You must limit access to the F-CPU to persons who are entitled for plugging removable media through restricted access to the area. (S079)

To prevent that a WinAC RTX F or an S7-1500 F Software Controller is accidentally uninstalled or installed, you must observe the following warning:

WARNING
You must limit access to a WinAC RTX F or an S7-1500 F Software Controller through access protection to persons who are authorized to uninstall and install or repair a WinAC RTX F or an S7-1500 F Software Controller (e.g. by using Windows administrator rights (ADMIN)). (S075)

The "Delete Configuration" function is only offered in the panel of the PC station with an S71500 F Software Controller when no access protection is set up on the F-CPU. We therefore recommend that you do not set up F-access protection until after commissioning.
To prevent unauthorized restoration of the safety program, formatting of the F-CPU and deleting program folders using the display of an S7-1500 F-CPU, you must observe the following warning:

WARNING
The display password may only be given to persons who are authorized to restore safety programs, format the F-CPU and delete program folders. If a password is not set up for the display, you must protect the display through organizational measures against unauthorized operation. For example by setting up access protection for specific rooms. (S063)

112

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Access protection 4.4 Access protection through organizational measures
To prevent unauthorized restoration of the safety program with the Web server in an S71200/1500 F-CPU, you must observe the following warning:
WARNING
The "F-Admin" authorization for the Web server without password protection ("Everybody" user) is only intended for test purposes, commissioning, etc. This means only when the system is not in productive operation. In this case, you must ensure the safety of the system through other organizational measures, for example through protected access to certain areas.
Before you transition into productive operation, you must remove the "F-Admin" right for the "Everybody" user.
Only authorized personnel are permitted to have access to the password of the Web server user with "F-Admin" right. After downloading the hardware configuration, check whether only permitted users of the Web server have the "F-Admin" right on the F-CPU. To do so, use the online view of the Safety Administration Editor.
Saving the login file and the password of the Web server in the browser is only permitted when use by unauthorized persons is prevented through other organizational measures (e.g. access protection to the PG/PC). (S064)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

113

Programming

5

5.1

Overview of Programming

Introduction

A safety program consists of F-blocks that you create using the FBD or LAD programming language and F-blocks that are automatically added. Fault detection and reaction measures are automatically added to the safety program you create, and additional safety-related tests are performed. Moreover, you have the option to incorporate special ready-made safety functions in the form of instructions into your safety program.
An overview of the following is given below:
 The structure of the safety program
 The fail-safe blocks
 Differences in the programming of the safety program with FBD/LAD compared to programming of standard user programs

114

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.1

Program structure of the safety program (S7-300, S7-400)

Representation of program structure
For structuring purposes, a safety program consists of one or two F-runtime groups.
Each F-runtime group contains:
 F-blocks that you create using FBD or LAD or that are inserted from the project library or global libraries
 F-blocks that are added automatically (F-system blocks, automatically generated Fblocks, and F-I/O DBs)
Below is a schematic diagram of a safety program or an F-runtime group for an S7-300/400 F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

115

Programming 5.1 Overview of Programming
Main safety block
The main safety block is the first F-block of the safety program that you program yourself. During compiling, it is supplemented by additional invisible calls of F-system blocks. You must assign the main safety block to an F-runtime group (Page 139). The main safety block in an S7-300/400 F-CPU is called from any block in the standard user program. We recommend a call from an OB 3x.
F-runtime groups
To improve handling, a safety program consists of one or two "F-runtime groups". An Fruntime group is a logical construct of several related F-blocks that is formed internally by the F-system. An F-runtime group consists of the following:  A main safety block (an F-FB/F-FC that you assign to the calling OB (FB/FC) as needed)  Any additional F-FBs or F-FCs that you program using FBD or LAD and call from the
main safety block  One or more F-DBs, as needed  F-I/O DBs  F-blocks from the project library or global libraries  F-system blocks F-SBs  Automatically generated F-blocks
Structuring the safety program in two F-runtime groups
You can divide your safety program into two F-runtime groups. By having parts of the safety program (one F-runtime group) run in a faster priority class, you achieve faster safety circuits with shorter response times.

116

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.2

Program structure of the safety program (S7-1200, S7-1500)

Representation of program structure
For structuring purposes, a safety program consists of one or two F-runtime groups.
Each F-runtime group contains:
 F-blocks that you create using FBD or LAD or that are inserted from the project library or global libraries
 F-blocks that are added automatically (F-system blocks F-SBs, automatically generated F-blocks, F-runtime DB, and F-I/O DBs)
Below is a schematic diagram of a safety program or an F-runtime group for an S71200/1500 F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

117

Programming 5.1 Overview of Programming
Main safety block
The main safety block is the first F-block of the safety program that you program yourself. You must assign the main safety block to an F-runtime group (Page 139). The main safety block in an S7-1200/1500 F-CPU is called by the F-OB assigned to the Fruntime group.

F-runtime groups
To improve handling, a safety program consists of one or two "F-runtime groups". An Fruntime group is a logical construct of several related F-blocks that is formed internally by the F-system. An F-runtime group consists of the following:  An F-OB which calls the main safety block  A main safety block (an F-FB/F-FC that you assign to the F-OB)  Any additional F-FBs or F-FCs that you program using FBD or LAD and call from the
main safety block  One or more F-DBs, as needed  F-I/O DBs  F-runtime group information DB  F-blocks from the project library or global libraries  F-system blocks F-SBs  Automatically generated F-blocks  A preprocessing and/or postprocessing block, as needed (see Pre-/postprocessing (S7-
1200, S7-1500) (Page 86))
Pre-/postprocessing of an F-runtime group

You have the option of calling blocks of the standard application groups (FCs) directly before or after an F-runtime group, for example for data transfer of fail-safe communication via Flexible F-Link. (see Pre-/postprocessing (S7-1200, S7-1500) (Page 86))

Structuring the safety program in two F-runtime groups

See also

You can divide your safety program into two F-runtime groups. By having parts of the safety program (one F-runtime group) run in a faster priority class, you achieve faster safety circuits with shorter response times.
F-runtime group information DB (S7-1200, S7-1500) (Page 158)

118

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.3

Fail-Safe Blocks

F-blocks of an F-runtime group
The following table shows the F-blocks that you use in an F-runtime group:

F-block

Function

S7-300/400 S7-

F-CPUs

1200/150

0 F-CPUs

Main safety

The first step in programming of the safety program is the main safety block.

X

X

block

The main safety block in S7-300/400 F-CPUs is an F-FC or F-FB (with in-

stance DB), which is called by a standard block (recommendation: OB 35)

from the standard user program.

The main safety block in S7-1200/1500 F-CPUs is an F-FC or F-FB (with instance DB), which is called by the F-OB.

F-FB/F-FC

Both in the main safety block as well as additional F-FBs and F-FCs, you can

X

X

perform the following:

· Program the safety program with the instructions available for F-blocks in FBD or LAD

· Call other created F-FBs/F-FCs for structuring the safety program

· Insert F-blocks from the project library or global libraries

F-DB

Optional fail-safe data blocks that can be read- and write-accessed within the

X

X

entire safety program.

F-I/O DB

An F-I/O DB is automatically generated for each F-I/O when it is configured.

X

X

You can or you must access the tags of the F-I/O DB in conjunction with F-I/O

accesses.

F-shared DB

The F-shared DB is a fail-safe data block that contains all of the shared data

X

--

of the safety program and additional information needed by the F-system.

F-runtime group An F-runtime group information DB is created when you create an F-runtime

--

X

information DB group.

The F-runtime group information DB provides information on the F-runtime group and on the safety program as a whole.

Note
You are not permitted to insert F-system blocks from the "System blocks" folder in a main safety block/F-FB/F-FC.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

119

Programming 5.1 Overview of Programming
Instructions for the safety program
In the "Instructions" task card, you can find instructions for the F-CPU used and which you can to use program the safety program.
You can find instructions that you know from the standard user program, such as bit logic operations, mathematical functions, functions for program control, and word logic operations.
Moreover, there are instructions with safety functions, e.g., for two-hand monitoring, discrepancy analysis, muting, emergency STOP/emergency OFF, safety door monitoring, feedback monitoring and instructions for safety-related communication between F-CPUs.
Additional information
For a detailed description of the instructions for the safety program, refer to Overview of instructions (Page 410).
Using instruction versions
As with the instructions for the standard user program, there may also be different versions of the instructions for the safety program.
Additional information on instruction versions can be found in the help on STEP 7 in "Basics for instruction versions".
Further information on the differences of the individual versions of the instructions for the safety program can be found in the relevant chapter of the instructions.
Note
Note the following: · If you change the version of an instruction used in the safety program in the task card
"Instructions" to a version which does not have identical functions, the functioning of your safety program may change after recompiling the safety program. In addition to the signature of the F-block that uses the instruction, the F-collective signature and the F-SW collective signature of your safety program also change. You may have to perform an acceptance test (Page 396). · (S7-300/400) If you use a know-how protected F-block in your safety program which uses an instruction which is not the same version as that set in the task card "Instructions", when the program is compiled without entering the password for the know-how protected F-block, it is adjusted to the version set in the task card "Instructions", providing the interfaces of the instruction versions are identical. If the instruction versions do not have identical functions, the functioning of the know-how protected F-block may change and always its signature.

120

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.4

Restrictions in the programming languages FBD/LAD

LAD and FBD programming languages
The user program in the F-CPU typically consists of a standard user program and a safety program.
The standard user program is created using standard programming languages such as SCL, STL, LAD, or FBD.
For the safety program, LAD or FBD may be used with certain restrictions in the instructions and the applicable data types and operand areas. Also note the restrictions for the individual instructions.

Supported instructions
The instructions available depend on the F-CPU used. You can find the supported instructions in the description of the instructions (starting from STEP 7 Safety V16 instructions (Page 410)).
Note
Enable input EN and enable output ENO cannot be connected.
Exception:
(S7-1200, S7-1500) With the following instructions you can program overflow detection by connecting the enable output ENO: · ADD: Add (STEP 7 Safety V16) (Page 554) · SUB: Subtract (STEP 7 Safety V16) (Page 557) · MUL: Multiply (STEP 7 Safety V16) (Page 560) · DIV: Divide (STEP 7 Safety V16) (Page 563) · NEG: Create twos complement (STEP 7 Safety V16) (Page 567) · ABS: Form absolute value (STEP 7 Safety V16) (S7-1200, S7-1500) (Page 570) · CONVERT: Convert value (STEP 7 Safety V16) (Page 584)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

121

Programming 5.1 Overview of Programming
Supported data types and parameter types
Only the following data types are supported:  BOOL  INT  WORD  DINT  DWORD (S7-300, S7-400)  TIME  ARRAY, ARRAY[*] when using the instructions RD_ARRAY_I: Read value from INT F-
array (STEP 7 Safety V16) (S7-1500) (Page 574) and RD_ARRAY_DI: Read value from DINT F-array (STEP 7 Safety V16) (S7-1500) (Page 577). Restrictions: ­ ARRAY only in F-global DBs ­ ARRAY limits: 0 up to max. 10000 ­ ARRAY[*] only as in-out parameter (InOut) in F-FCs and F-FBs ­ ARRAY of UDT is not permitted ­ ARRAY of Bool is not permitted ­ ARRAY of Word is not permitted ­ ARRAY of Time is not permitted  F-compliant PLC data type (UDT) (S7-1200, S7-1500)
Note If the result of an instruction is located outside the permitted range for this data type, the FCPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU. You must therefore ensure that the permitted range for the data type is observed when creating the program, or select a matching data type or use the ENO output. Note the description of the individual instructions.
Non-permitted data and parameter types
The following types are not permitted:  All types not listed in the section "Supported data types and parameters types" (e.g.
BYTE, REAL)  Complex data types (for example, STRING, ARRAY (S7-300, S7-400, S7-1200),
STRUCT, PLC data type (UDT) (S7-300, S7-400))  Parameter types (e.g. BLOCK_FB, BLOCK_DB, ANY)

122

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

Supported operand areas
The system memory of an F-CPU is divided into the same operand areas as the system memory of a standard CPU. You can access the operand areas listed in the table below from within the safety program.

Table 5- 1 Supported operand areas

Operand area

Description

Process image of the inputs

· Of F-I/O

Only read-only access to input channels of F-I/O is possible.
Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.

The process image of the inputs of F-I/O is updated prior to the start of the main safety block.

· Of standard I/O

Input channels of standard I/O can only be accessed read-only.
Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.

In addition, a process-specific validity check is required.

See the STEP 7 help for the update times of the process image of the inputs of standard I/O.

Process image of the outputs

· Of F-I/O

Only write-only access to output channels of F-I/O is possible.
Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.

In the safety program, the values for the outputs of the F-I/O are calculated and stored in the process image of the outputs.

The process image of the outputs for F-I/O is updated after the end of the main safety block.

· Of standard I/O

Output channels of standard I/O are write-only channels.
Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.

In the safety program, the values for the outputs of the standard I/O are also calculated and stored in the process image of the outputs, if needed.

See the STEP 7 help for the update times of the process image of the outputs of standard I/O.

Bit memory

This area is used for data exchange with the standard user program.

In addition, read access requires a process-specific validity check.

A particular element of the bit memory can be either read- or writeaccessed in the safety program.

Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.

Note that it is only permitted to use bit memory for connecting the standard user program and the safety program; it must not be used as a buffer for F-data.

Data blocks

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

123

Programming 5.1 Overview of Programming

Operand area · F-DB · DB
Temporary local data

Description
Data blocks store information for the program. They can either be defined as global data blocks such that all F-FBs, F-FCs, or main safety blocks can access them or assigned to a particular F-FB or main safety block (instance DB). A tag of a shared DB can only be accessed from one F-runtime group, and an instance DB only from the F-runtime group in which the corresponding F-FB/instruction is called.
This area is used for data exchange with the standard user program.
In addition, read access requires a process-specific validity check.
For a tag of a DB, either read access or write access is possible in the safety program.
Transfer to IN_OUT parameters of an F-FB or F-FC is therefore not valid either.
Note that the tags of a DB can only be used for transferring data between the standard user program and the safety program; DBs must not be used as a buffer for F-data.
This memory area holds the temporary tags of a block (or F-block) while the (F-) block is being executed. The local data stack also provides memory for transferring block parameters and for saving intermediate results.

File type conversion
Just as with the standard user program, there are two possibilities for file type conversion in the safety program.
 Implicit conversion
The implicit conversion is executed as in the standard user program with the following restrictions: The bit length of the source data type has to match the bit length of the destination data type.
 Explicit conversion
You use an explicit conversion instruction (Page 584) before the actual instruction is executed.

Slice access

Slice access is not possible in the safety program.

124

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming
Non-permitted operand areas
Access via units other than those listed in the table above is not permitted. The same applies to access to operand areas not listed, in particular:  Data blocks that were automatically added
Exception: Certain tags in the F-I/O DB (Page 174) and in the F-shared DB (S7-300, S7400) (Page 157) or F-runtime group information DB (S7-1200, S7-1500) (Page 158)  I/O area: Inputs  I/O area: Outputs
Boolean constants "0" or "FALSE" and "1" or "TRUE" (S7-300, S7-400)
The Boolean constants "0" or "FALSE" and "1" or "TRUE" are available for S7-300/400 FCPUs as "Tags" "RLO0" and "RLO1" in the F-global DB. You access them through a fully qualified DB access ("F_GLOBDB".RLO0 or "F_GLOBDB".RLO1).
Boolean constants "0" or "FALSE" and "1" or "TRUE" (S7-1200, S7-1500)
The Boolean constants "0" or "FALSE" and "1" or "TRUE" are available for S7-1200/1500 FCPUs to assign parameters during block calls. You can enter this directly in FBD or LAD at the respective block inputs. Example FBD:
Example LAD:
As an alternative, as before you have the option to also set "1" or "TRUE" in a tag using the "Assignment (Page 423)" instruction. To do so, do not interconnect the box input of the "Assignment" instruction in FBD. In LAD, you interconnect the input directly with the supply rail. You obtain a tag with "0" or "FALSE" by subsequent inversion with the instruction "Invert RLO (Page 419)".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

125

Programming 5.1 Overview of Programming
Example FBD:
Example LAD:
Operand area of temporary local data: Particularities
Note Note when using the operand area of temporary local data that the first access of a local data element in a main safety block/F-FB/F-FC must always be a write access. This initializes the local data element. Make sure that a temporary local data element is initialized prior to the first JMP, JMPN, or RET instruction. The "local data bit" should be initialized with the Assign ("=") (FBD) or ("--( )") (LAD) instruction. Assign the local data bit a signal state of "0" or "1" as a Boolean constant. Local data bits cannot be initialized with the Flip Flop (SR, RS), Set Output (S) or Reset Output (R) instructions. The F-CPU can go to STOP if this is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
"Fully qualified DB access"
Access to tags of a data block in an F-FB/F-FC is "fully qualified DB access". This also applies to initial access to tags of a data block after a jump label. For S7-300/400 F-CPUs, only initial access needs to be "fully qualified DB access". Alternatively, you can use the instruction "OPN".

126

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming Example of "fully qualified DB access": Assign a name for the F-DB, e.g. "F_Data_1". Use the names assigned in the declaration of the F-DB instead of the absolute addresses.
Figure 5-1 Example with fully-qualified access
Example of "non-fully qualified DB access" (S7-300, S7-400):
Figure 5-2 Example without fully-qualified access
Access to instance DBs
You can also access instance DBs of F-FBs with fully qualified access, e.g., for transfer of block parameters. It is not possible to access static local data in single/multi-instances of other F-FBs. Note that accessing instance DBs of F-FBs that are not called in the safety program can cause the F-CPU to go to STOP mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

127

Programming 5.1 Overview of Programming

5.1.5

F-compliant PLC data types (UDT) (S7-1200, S7-1500)

Introduction

You declare and use F-compliant PLC data types (UDT) as you would standard PLC data types (UDT). You can use F-compliant PLC data types (UDT) in the safety program as well as in the standard user program.
Differences to standard PLC data types (UDT) are described in this chapter.
Information on the use and declaration of standard PLC data types (UDT) is available in the STEP 7 help under "Declaring PLC data types".

Declaring F-compliant PLC data types (UDT)
You declare F-compliant PLC data types (UDT) as you would PLC data types (UDT).
In F-compliant PLC data types (UDT), you can use all data types (Page 121) that you can also use in safety programs. Exception: ARRAY.
Nesting of F-compliant PLC data types (UDT) within F-compliant PLC data types (UDT) is not supported.
Proceed as follows for declaration:
1. Click on "Add new PLC data type" in the "PLC Data Types" folder in the project tree.
2. To create an F-compliant PLC data type (UDT), enable the option "Create F-compliant PLC data type" in the "Add new PLC data type" dialog.
3. Proceed as described in the STEP 7 help under "Programming structure of PLC data types".
You specify default values for F-compliant PLC data types (UDT) during the declaration.

Using F-compliant PLC data types (UDT)
You use F-compliant PLC data types as you would standard PLC data types (UDT).

Changes to F-compliant PLC data types (UDT)
You need the password for the safety program to change F-compliant PLC data types (UDT). Regardless if you are using the F-compliant PLC data type (UDT) in an F-block, in a standard block or not at all.

See also

"F-compliant PLC data types" area (S7-1200, S7-1500) (Page 89)

128

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

5.1.5.1 Rules

Programming 5.1 Overview of Programming
Grouping PLC tags for inputs and outputs of F-I/O in structures (S7-1200, S7-1500)
You group PLC tags for inputs and outputs of F-I/O in structures (structured PLC tag) as you would for inputs and outputs of standard I/O. Use F-compliant PLC data types (UDT).
When creating structured PLC tags for inputs and outputs of F-I/O, you must also observe the following rules in addition to the rules in the standard:  You must not group inputs/outputs of standard I/O and F-I/O at the same time in a
structured PLC tag.  You may only group inputs/outputs of actually existing channels (channel value and value
status) in a structured PLC tag. See also Addressing F-I/O (Page 166)  You may only group inputs/outputs of channels (channel value and value status) that are enabled in the hardware configuration in a structured PLC tag. See also Addressing F-I/O (Page 166)  You may only group inputs of channels (channel value and value status) that provide the result of the "1oo2 sensor evaluation" with set "1oo2 sensor evaluation". See also Addressing F-I/O (Page 166)  In a structured PLC tag for an F-I/O with outputs, you must either group all outputs of this F-I/O or an output range with multiples of 16 bits. The F-CPU can go to STOP mode if this is disregarded. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.  A structured PLC tag that groups outputs of an F-I/O must not overlap with other PLC tags. The F-CPU can go to STOP mode if this is disregarded. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
Note To observe these rules, you must declare the F-compliant PLC data type that is used for the structured PLC tag accordingly.
You can find the addresses allocated to a structured PLC tag in the "IO tags" tab of an F-I/O configuration.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

129

Programming 5.1 Overview of Programming

5.1.5.2

Example of structured PLC tags for inputs and outputs of F-I/O (S7-1200, S7-1500)

Introduction

This example uses the F-module 4 F-DI/3 F-DO DC24V/2A with 1oo2 evaluation to demonstrate how you use structured PLC tags for access to F-I/O.

Channel structure of the 4 F-DI/3 F-DO DC24V/2A F-module
The table below sets out the channel structure and address assignment of the F-module 4 FDI/3 F-DO DC24V/2A with 1oo2 evaluation. You may only access existing and enabled channels (addresses I15.0 to I15.3 and I16.0 to I16.3). These channels provide the result of 1oo2 evaluation generated internally in the F-module.

Table 5- 2 Channel structure and addresses of the channel values of inputs with 1oo2 evaluation

Channel DI channel 0 channel value DI channel 1 channel value DI channel 2 channel value DI channel 3 channel value -- -- -- --

Address I15.0 I15.1 I15.2 I15.3 I15.4 I15.5 I15.6 I15.7

Table 5- 3 Channel structure and addresses of the value status of the inputs with 1oo2 evaluation

Channel DI channel 0 value status DI channel 1 value status DI channel 2 value status DI channel 3 value status -- -- -- --

Address I16.0 I16.1 I16.2 I16.3 I16.4 I16.5 I16.6 I16.7

130

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

Table 5- 4 Channel structure and addresses of the value status of outputs

Channel DO channel 0 value status DO channel 1 value status DO channel 2 value status DO channel 3 value status

Address I17.0 I17.1 I17.2 I17.3

Table 5- 5 Channel structure and addresses of the channel values of outputs

Channel DO channel 0 channel value DO channel 1 channel value DO channel 2 channel value DO channel 3 channel value

Address Q15.0 Q15.1 Q15.2 Q15.3

Creating F-compliant PLC data types (UDT)
Create two F-compliant PLC data types (UDT), for example, for access to all channels.
The figure below shows an F-compliant PLC data type (UDT) for access to the channel values and value status of the inputs with 1oo2 evaluation:

The figure below shows the F-compliant PLC data type (UDT) for access to the channel values and value status of the outputs:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

131

Programming 5.1 Overview of Programming
Using F-compliant PLC data types (UDT)
As demonstrated in the figure below, you can use the two F-compliant PLC data types (UDT) that you have created in an F-FC (e.g. "Motor"):

Creating structured PLC tag for the F-module 4 F-DI/3 F-DO DC24V/2A
Create structured PLC tags for the F-module 4 F-DI/3 F-DO DC24V/2A:
Accessing the F-FC
Transfer the structured PLC tags you have created when you call the F-FC (e.g. "Motor"):

132

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

See also

Addressing F-I/O (Page 166) Value status (S7-1200, S7-1500) (Page 168)

Programming 5.1 Overview of Programming

5.1.6

Editing PLC tags with external editors
To edit PLC tags with external editors follow the procedure as in the standard. Additional information can be found in the STEP 7 help in "Editing PLC tags with external editors".
Note the following:
Note
After importing a tag table which contains tags used in the safety program, the collective Fsignature of the safety program is reset.
To form the collective F-signature again you have to recompile the project data. For this, with access protection set up for the safety program, you need a valid access authorization for the safety program.
If you would like to edit PLC tags with external editors, we therefore recommend that you store PLC tags to be used in the safety program in a separate tag table.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

133

Programming 5.1 Overview of Programming

5.1.7

Using Multiuser engineering
If you want to use Multiuser engineering, proceed as described in the STEP 7 help under "Using Multiuser engineering".

5.1.8

Openness

5.1.8.1

F-related Openness

Requirement

The TIA Portal Openness application is connected to TIA Portal. See "Connecting to the TIA Portal" (section "Openness: Automating creation of project")

Openness service
The Openness interface (Siemens.Engineering.dll) has been extended by the GlobalSettings service (see name area Siemens.Engineering.Safety) which provides two actions:
 SafetyModificationsPossible(bool safetyModificationsPossible)
 UsernameForFChangeHistory(string userName)

Principle

Get the Safety.GlobalSettings service from the TiaPortal instance:
Engineering.Safety.GlobalSettings globalSettings = TiaPortal.GetService<Engineering.Safety.GlobalSettings>();

134

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.8.2

SafetyModificationsPossible

Application

The SafetyModificationsPossible(bool safetyModificationsPossible) action of the GlobalSettings service is used to prevent changes to the safety program in TIA Portal.
When the parameter safetyModificationsPossible is true, TIA Portal behaves according to the current safety settings for the safety program.
If the parameter safetyModificationsPossible is false, all changes to the safety program are locked, regardless of whether the user has already entered the password for changing the safety program or not. The system uses feedback messages to provide information that the current user is not authorized to change the safety program.
If no password has been configured or assigned for the safety program, safetyModificationsPossible false has no effect. This means the safety program can be changed. However, the setting up of new passwords is blocked.
The table below shows the parameters required by the method:

Name

Type

safetyModificationsPossible bool

Description
Authorization of changes to the safety program

Program code

Prevent changes to the safety program:
globalSettings.SafetyModificationsPossible(false);

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

135

Programming 5.1 Overview of Programming

5.1.8.3

UsernameForFChangeHistory

Application

The action UsernameForFChangeHistory(string userName) specifies the user name that is used by TIA Portal for subsequent logging in the F-change history.
The maximum length of the string is limited to 256 characters. Strings which exceed the maximum length are cut off.
An empty user name (zero or empty string) resets the user name to the default value.
The table below shows the parameters required by the method:

Name userName

Type string

Description Preferred user name

Program code

Sets the preferred user name:
globalSettings.UsernameForFChangeHistory("username");

136

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.1 Overview of Programming

5.1.9

Deleting the safety program

Deleting individual F-blocks To delete an F-block, follow the same procedure as in STEP 7.

Deleting an F-runtime group
See Deleting an F-runtime group (Page 159) (S7-300, S7-400) Remove all calls that you have used to call the safety program (Main_Safety).
Deleting the entire safety program for S7-300/400 F-CPUs with inserted memory card (SIMATIC Micro memory card or flash card)
To delete an entire safety program, proceed as follows: 1. Delete all F-blocks (shown with yellow symbol) in the project tree. 2. Remove all calls that you have used to call the safety program (Main_Safety). 3. Select the F-CPU in the hardware and network editor and clear the "F-capability
activated" option in the properties of the F-CPU. 4. Compile the project data of the F-CPU
The offline project no longer contains a safety program. 5. To delete a safety program on the Memory Card (SIMATIC Micro Memory Card or Flash
Card), insert the Memory Card (SIMATIC Micro Memory Card or Flash Card) in the programming device or PC or in a SIMATIC USB prommer. 6. Select the menu command "Project > Card Reader/USB memory > Show Card Reader/USB memory" in the menu bar. 7. Open the "SIMATIC Card Reader" folder and delete the Memory Card. 8. Insert the Memory Card into the F-CPU. You can then download the offline standard user program to the F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

137

Programming 5.1 Overview of Programming
Deleting the entire safety program for S7-400 F-CPUs without inserted flash card
To delete an entire safety program, proceed as follows: 1. Delete all F-blocks (shown with yellow symbol) in the project tree. 2. Remove all calls that you have used to call the safety program (Main_Safety). 3. Select the F-CPU in the hardware and network editor and clear the "F-capability
activated" option in the properties of the F-CPU. 4. Compile the project data of the F-CPU
The offline project no longer contains a safety program. 5. Perform a memory reset on the F-CPU (in the "Online tools" task card of the F-CPU). You can then download the offline standard user program to the F-CPU.
Delete the entire safety program for SIMATIC S7-1200/1500 F-CPUs
To delete an entire safety program, proceed as follows: 1. Delete all F-blocks (shown with yellow symbol) in the project tree. 2. Select the F-CPU in the hardware and network editor and clear the "F-capability
activated" option in the properties of the F-CPU. 3. Compile the project data of the F-CPU
The offline project no longer contains a safety program. You can then download the offline standard user program to the F-CPU.

138

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

5.2

Defining F-Runtime Groups

Programming 5.2 Defining F-Runtime Groups

5.2.1 Rules

Rules for F-Runtime Groups of the Safety Program
Note the following:  The channels (channel values and value status) of an F-I/O can only be accessed from a
single F-runtime group.  Tags of the F-I/O DB of an F-I/O can only be accessed from one F-runtime group and
only from that F-runtime group from which the channels or value status of this F-I/O are also accessed (if access is made).  F-FBs can be used in more than one F-runtime group but they must be called with different instance DBs.  Instance DBs of F-FB can only be accessed from the F-runtime group in which the associated F-FB is called.  A tag of a global F-DB (except the F-global DB) can only be accessed from one F-runtime group (however, a global F-DB can be used in more than one F-runtime group).  (S7-300, S7-400) A DB for F-runtime group communication can be read and write accessed by the F-runtime group to which it was assigned as "DB for runtime group communication", but only read-accessed by the "receiver" F-runtime group.  (S7-300, S7-400) An F-communication DB can only be accessed from one F-runtime group.  (S7-1200, S7-1500) You must not call the main safety block yourself. It is automatically called by the assigned F-OB.
Note F-OBs are protected by F-system know-how. The OB start information of F-OBs therefore cannot be evaluated.
 (S7-1200, S7-1500). The F-OB should be created with the highest priority of all OBs.
Note The cycle time of the F-OB can be prolonged by, among other things, communication load, the processing of higher-priority interrupts, as well as by test and commissioning functions.
 (S7-300, S7-400) The main safety block may only be called once from a standard block. Multiple calls can cause the F-CPU to go to STOP mode.
 (S7-300, S7-400) For optimal use of temporary local data, you must call the F-runtime group (the main safety block) directly in an OB (cyclic interrupt OB, if possible); you should not declare any additional temporary local data in this cyclic interrupt OB.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

139

Programming 5.2 Defining F-Runtime Groups
 (S7-300, S7-400) Within a cyclic interrupt OB, the F-runtime group should be executed before the standard user program; i.e. it should be called at the very beginning of the OB, so that the F-runtime group is always called at fixed time intervals, regardless of how long it takes to process the standard user program.
For this reason, the cyclic interrupt OB should also not be interrupted by higher priority interrupts.
 The process image of the inputs and outputs of standard I/O, bit memory, and tags of DBs in the standard user program may be accessed either as read-only or read/write from more than one F-runtime group. (see also Data exchange between standard user program and safety program (Page 204))
 F-FCs can generally be called in more than one F-runtime group.
Note
You can improve performance by writing sections of the program that are not required for the safety function in the standard user program.
When determining which elements to include in the standard user program and which to include in the safety program, you should keep in mind that the standard user program can be modified and downloaded to the F-CPU more easily. In general, changes in the standard user program do not require an acceptance.

140

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups

5.2.2

Procedure for defining an F-runtime group (S7-300, S7-400)

Requirements

 You have inserted an S7-300/400 F-CPU in your project.
 In the "Properties" tab of the F-CPU, the "F-capability activated" check box is selected (default setting).

F-runtime group created by default
STEP 7 Safety inserts F-blocks for an F-runtime group in the project tree by default after an F-CPU has been added. When you open the "Program blocks" folder, you see the (F-)blocks of the F-runtime group (CYC_INT5 [OB 35], Main_Safety [FB 1], and Main_Safety_DB [DB1]) in the project tree.

The following section describes how you modify the settings / parameters of the F-runtime group created by default or add and additional F-runtime group.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

141

Programming 5.2 Defining F-Runtime Groups
Procedure for defining an F-runtime group
Proceed as follows to define an F-runtime group: 1. Open the Safety Administration Editor by double-clicking in the project tree. 2. Select "F-runtime group" in the area navigation.
Result: The work area for defining an F-runtime group with the (default) settings for Fruntime group 1 opens.

3. Specify the block in which the main safety block is to be called.
Cyclic interrupt OB 35 is suggested here by default. The advantage of using cyclic interrupt OBs is that they interrupt the cyclic program execution in OB 1 of the standard user program at fixed time intervals; that is, the safety program is called and executed at fixed time intervals in a cyclic interrupt OB.
In this input field, you can select only those blocks that were created in the LAD, FBD, or STL programming language. If you select a block here, the call is inserted automatically into the selected block and, if necessary, removed from a previously selected block.
If you want to call the main safety block in a block that was created in another programming language, you must program this call itself. The input field is then not editable (grayed out), and you can change the call only in the calling block and not the Safety Administration Editor.
4. Assign the desired main safety block to the F-runtime group. If the main safety block is an FB, you must also assign an instance DB.
Main_Safety [FB1] and Main_Safety_DB [DB1] are suggested by default.

142

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups
5. The F-CPU monitors the F-cycle time of the F-runtime group. For "Maximum cycle time of F-runtime group", enter the maximum permitted time between two calls of the F-runtime group.
WARNING
The F-runtime group call interval is monitored for the maximum value; i.e. monitoring is performed to determine whether the call is executed often enough, but not whether it is executed too often or, for example, isochronous. Fail-safe timers must therefore be implemented using the TP, TON, or TOF instructions (Page 520) from the "Instructions" task card and not using counters (OB calls). (S007)
WARNING
The response time of your safety function depends, among other things, on the cycle time of the F-OB, the runtime of the F-runtime group and, when distributed F-I/O is used, the parameter assignment of PROFINET/PROFIBUS.
Therefore, the configuration/parameter assignment of the standard system influences the response time of your safety function.
Examples: · Increasing the priority of a standard OB compared to an F-OB can extend the cycle
time of the F-OB or the runtime of the F-runtime group due to the higher-priority processing of the standard OB. Note that during the creation of technology objects, OBs with very high priority may be created automatically. · The change of the send clock cycle of PROFINET changes the cycle time of an F-OB with event class "Synchronous cycle".
Note that the configuration / parameter assignment of the standard system is not subject to access protection for the safety program and does not lead to a modification of the collective F-signature.
If you do not take organizational measures to prevent changes in the configuration / parameter assignment of the standard system with influence on the response time, you must always use the monitoring times for the calculation of the maximum response time of a safety function (see Configuring monitoring times (Page 650)).
The monitoring times are protected against change with the access protection of the safety program and are recorded by the F-collective signature as well as the F-SW collective signature.
When calculating with the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) you need to consider the value that is specified for "Any standard system runtimes" as value for the maximum response time. (S085)
6. If one F-runtime group is to provide tags for evaluation to another F-runtime group of the safety program, assign a DB for F-runtime group communication. Select an F-DB for "DB for F-runtime group communication". (See also F-runtime group communication (S7-300, S7-400) (Page 150))
7. If you want to create a second F-runtime group, click the "Add new F-runtime group" button.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

143

Programming 5.2 Defining F-Runtime Groups
8. Assign an F-FB or F-FC as the main safety block to a calling block. This F-FB or F-FC is automatically generated in the project tree, if not already present.
9. If the main safety block is an F-FB, assign an instance DB to the main safety block. The instance DB is generated automatically in the project tree.
10.Follow steps 3 to 5 above to complete generation of the second F-runtime group.

144

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups

5.2.3

Procedure for defining an F-runtime group (S7-1200, S7-1500)

Requirements

 You have inserted an S7-1200/1500 F-CPU in your project.
 In the "Properties" tab of the F-CPU, the "F-capability activated" check box is selected (default setting).

F-runtime group created by default
STEP 7 Safety inserts F-blocks for an F-runtime group in the project tree by default after an F-CPU has been added. When you open the "Program blocks", you see the (F-)blocks of the F-runtime group (FOB_RTG1 [OB123], Main_Safety_RTG1 [FB1] and Main_Safety_RTG1_DB [DB1]) in the project tree.

The following section describes how you modify the settings / parameters of the F-runtime group created by default or add and additional F-runtime group.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

145

Programming 5.2 Defining F-Runtime Groups
Procedure for defining an F-runtime group
Proceed as follows to define an F-runtime group: 1. Open the Safety Administration Editor by double-clicking in the project tree. 2. Select "F-runtime group" in the area navigation.
Result: The work area for defining an F-runtime group with the (default) settings for F-runtime group 1 opens.

3. Assign a name for the F-OB under "F-OB".

146

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups
4. Specify the event class of the F-OB when you create a new F-runtime group.
For an F-OB you can select between the event classes "Program cycle", "Cyclic interrupt" or "Synchronous cycle".
In the case of the F-runtime group created by default, the F-OB has the event class "Cyclic interrupt". To change the event class of the F-OB of an already created F-runtime group, you need to delete and F-runtime group and create a new one.
Note
We recommend creating the F-OB with the event class "Cyclic interrupt" as "cyclic interrupt OB". The safety program will then be called and run at fixed time intervals.
F-OBs with the event class "Synchronous cycle" are only recommended in conjunction with F-I/O devices that support isochronous mode, for example submodule "Profisafe Telgr 902" of drive SINAMICS S120 CU310-2 PN V5.1.
F-OBs with the event class "Program cycle" are not recommended, as these have the lowest priority "1" (see below).
Note
Note the maximum permissible number of OBs (incl. F-OBs) with event class "Synchronous cycle" (see technical specifications in the product manuals of the S7-1500 CPUs).
5. If required, you can manually change the number of the F-OB proposed by the system. To do so, note the number ranges valid for the relevant event class.
6. Assign cycle time, phase shift and priority parameters for F-OBs with event class "Cyclic interrupt".
Assign the priority parameter for F-OBs with event class "Synchronous cycle".
­ Select a cycle time which is less than the "Maximum cycle time of F-runtime group" and less than the "Cycle time warning limit of F-runtime group".
­ Select a phase shift which is less than the cycle time.
­ If possible, select a priority that is higher than the priority of all other OBs.
Note
Through a high priority of the F-OB you ensure that the runtime of the safety program and the response time of your safety functions (Page 650) are influenced as little as possibly by the standard user program.
Note
For F-OBs with event class "Synchronous cycle" you need to also assign parameters for application cycle (ms) and possibly delay time (ms) after defining the F-runtime group and the connection of the isochronous F-I/O to the isochronous mode interrupt OB. You can find these parameters in the "Properties" dialog box of the isochronous mode interrupt OB in the "Isochronous mode" group. Proceed as described in the STEP 7 help under "Configuring isochronous mode interrupt OBs".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

147

Programming 5.2 Defining F-Runtime Groups
7. Assign the calling main safety block to the F-OB. If the main safety block is an FB, you must also assign an instance DB.
Main_Safety_RTG1 [FB1] and Main_Safety_RTG1_DB [DB1] are suggested by default.
8. The F-CPU monitors the F-cycle time of the F-runtime group. Two parameters are available:
­ If the "Cycle time warning limit of F-runtime group" is exceeded, an entry is written to the diagnostics buffer of the F-CPU. This parameter can, for example, be used to determine whether the cycle time exceeds a required value without the F-CPU switching to STOP mode.
­ If the "Maximum cycle time of F-runtime group" is exceeded, the F-CPU will go to STOP. For "Maximum cycle time of F-runtime group", select the maximum permitted time between two calls of this F-runtime group (maximum of 20000000 µs).

148

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups
WARNING
The F-runtime group call interval is monitored for the maximum value; i.e. monitoring is performed to determine whether the call is executed often enough, but not whether it is executed too often or, for example, isochronous. Fail-safe timers must therefore be implemented using the TP, TON, or TOF instructions (Page 520) from the "Instructions" task card and not using counters (OB calls). (S007)
WARNING
The response time of your safety function depends, among other things, on the cycle time of the F-OB, the runtime of the F-runtime group and, when distributed F-I/O is used, the parameter assignment of PROFINET/PROFIBUS.
Therefore, the configuration/parameter assignment of the standard system influences the response time of your safety function.
Examples: · Increasing the priority of a standard OB compared to an F-OB can extend the
cycle time of the F-OB or the runtime of the F-runtime group due to the higherpriority processing of the standard OB. Note that during the creation of technology objects, OBs with very high priority can be created automatically. · The change of the send clock cycle of PROFINET changes the cycle time of an FOB with event class "Synchronous cycle".
Note that the configuration / parameter assignment of the standard system is not subject to access protection for the safety program and does not lead to a modification of the collective F-signature.
If you do not take organizational measures to prevent changes in the configuration / parameter assignment of the standard system with influence on the response time, you must always use the monitoring times for the calculation of the maximum response time of a safety function (see Configuring monitoring times (Page 650)).
The monitoring times are protected against change with the access protection of the safety program and are recorded by the F-collective signature as well as the F-SW collective signature.
When calculating with the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) you need to consider the value that is specified for "Any standard system runtimes" as value for the maximum response time. (S085)
The "Cycle time warning limit of F-runtime group" must be configured as less than or equal to the "Maximum cycle time of F-runtime group".
9. Assign a name for the F-runtime group information DB (Page 158) under "F-runtime group DB".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

149

Programming 5.2 Defining F-Runtime Groups
10.If required, you can select blocks of the standard program (FCs) with regard to preprocessing or postprocessing of an F-runtime group (see Pre-/postprocessing (S71200, S7-1500) (Page 86))
11.If you want to create a second F-runtime group, click the "Add new F-runtime group" button. Follow steps 3 to 10 above.

5.2.4

F-runtime group communication (S7-300, S7-400)

Safety-related communication between F-runtime groups
Safety-related communication can take place between the two F-runtime groups of a safety program. This means fail-safe tags can be provided by one F-runtime group in an F-DB and read in another F-runtime group.
Note A DB for F-runtime group communication can be read and write accessed by the F-runtime group to which it was assigned as "DB for runtime group communication", while it can only be read-accessed by the "receiver" F-runtime group.
Tip: You can improve performance by structuring your safety program in such a way that as few tags as possible are exchanged between the F-runtime groups.

Procedure for defining a DB for F-runtime group communication
You define the DB for F-runtime group communication in the work area "F-runtime groups". Proceed as follows:
1. Click "F-runtime groups" in "Safety Administration Editor".
2. Select an existing F-DB in the "DB for F-runtime group communication" field or assign a new one.
3. Assign a name to the F-DB.

150

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups
Up-to-dateness of tags read from another F-runtime group
Note Tags read are up-to-date as at the time of the last completed processing cycle of the Fruntime group providing the tags prior to start-up of the F-runtime group reading the tags.
If the tags supplied undergo multiple changes during runtime of the F-runtime group supplying the tags, the F-runtime group reading the tags only receives the last change (see figure below). Assignment of fail-safe values After F-system start-up, fail-safe values are supplied to the F-runtime group which has read access to tags in the DB for F-runtime group communication of another F-runtime group (for example, F-runtime group 2). These are the values you specified as initial values in the DB for F-runtime group communication of F-runtime group 1. F-runtime group 2 reads the fail-safe values the first time it is called. The second time the Fruntime group 2 is called, it reads the latest tags if F-runtime group 1 has been processed completely between the two calls of F-runtime group 2. If F-runtime group 1 has not been processed completely, F-runtime group 2 continues to read the fail-safe values until F-runtime group 1 is completely processed. The behavior is illustrated in the two figures below. Reading tags from F-runtime group 1, which has a longer OB cycle and lower priority than F-runtime group 2

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

151

Programming 5.2 Defining F-Runtime Groups



Startup of F-system

Cycle time of the (F-)OB in which the F-runtime group is called.

Runtime of the F-runtime group

... Tag of F-runtime group 1, written to DB for F-runtime group communication of Fruntime group 1
...Tag of F-runtime group 2, read in DB for F-runtime group communication of F-runtime group 1
Initial value in the DB for F-runtime group communication

Reading tags from F-runtime group 1, which has a shorter OB cycle and higher priority than F-runtime group 2

152

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups



Startup of F-system

Cycle time of the (F-)OB in which the F-runtime group is called.

Runtime of the F-runtime group

... Tag of F-runtime group 1, written to DB for F-runtime group communication of Fruntime group 1
... Tag of F-runtime group 2, read in DB for F-runtime group communication of F-runtime group 1
Initial value in the DB for F-runtime group communication

F-runtime group supplying tags is not processed
Note
If the F-runtime group whose DB for F-runtime group communication is to supply the tags is not processed (the main safety block of the F-runtime group is not called), the F-CPU goes to STOP mode. One of the following diagnostics events is then entered in the diagnostics buffer of the F-CPU: · Error in safety program: cycle time exceeded · Number of the relevant main safety block (of F-runtime group that is not processed) · Current cycle time in ms: "0"

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

153

Programming 5.2 Defining F-Runtime Groups

5.2.5

F-runtime group communication (S7-1200, S7-1500)

Introduction

With the help of Flexible F-Link you realize a F-runtime group communication.
With Flexible F-Link a coded F-array is made available for the send data of the F-runtime group. The coded F-array is transferred to the other F-runtime group with standard instructions such as UNMOVE_BLK.

Requirement

 S7-1500 F-CPUs as of firmware V2.0  S7-1200 F-CPUs as of firmware V4.2  Safety system version as of V2.2

F-runtime group communication

If you want to send a data fail-safe from one F-runtime group to another F-runtime group, follow these steps:
1. Create an F-compliant PLC data type (UUID) for the F-runtime group communication. The size can be up to 100 bytes.
2. Create two F-communications for an F-runtime group communication in the Safety Administration Editor in the "Flexible F-Link" area. One F-communication each for the send and receive side.
3. Configure the same F-monitoring time and F-communication UUID for each F-runtime group communication relationship.
Information on calculating the F-monitoring times can be found in Monitoring and response times (Page 649).
For example:

154

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups
4. On the send side (e.g. RTG1) supply the data of the transmission DBs with the data to be sent. For example:
5. Read the receiving data from the receiving DB on the receive side (e.g. RTG2). For example:

6. Call the instruction "UMOVE_BLK" in the F-runtime group for the send data (e.g. RTG1) in the FC for post processing (Page 86).
7. Interconnect the "UMOVE_BLK" instruction for the data to be sent as follows:

"Send" is the F-communication DB (Page 98) of the F-runtime group that sends the data.
"Receive" is the F-communication DB (Page 98) of the F-runtime group that receives the data.
8. Call the instruction "UMOVE_BLK" in the F-runtime group for acknowledgment (e.g. RTG2) in the FC for post processing (Page 98).
9. Interconnect the "UMOVE_BLK" instruction for the acknowledgment connection as follows:

"Receive" is the F-communication DB (Page 98) of the F-runtime group that sends the acknowledgment telegram.
"Send" is the F-communication DB (Page 98) of the F-runtime group that receives the acknowledgment telegram.
10.Compile the user program.
11.Download the user program to the F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

155

Programming 5.2 Defining F-Runtime Groups
WARNING During acceptance, use the safety summary to verify that the offsets of all elements of the F-compliant PLC data types (UDT) match for the send and receive data within the safety message frame. For this purpose, all members and addresses are listed in the safety summary per UDT. (S088)
WARNING When a new Flexible F-Link communication is created in the Safety Administration Editor, a unique F-communication UUID for the communication is provided by the system. By copying communications in the Safety Administration Editor within the parameterization table or when copying to another F-CPU, the F-communication UUIDs are not regenerated and are therefore not unique anymore. If the copy is used to configure a new communication relationship, you yourself must ensure the uniqueness. To do this select the affected UUIDs and regenerate via the "Generate UUID" context menu. The uniqueness must be checked in the safety summary during acceptance. (S087)
WARNING It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Up-to-dateness of tags read from another F-runtime group
The same statements as those in the section "F-runtime group communication (S7-300, S7400) (Page 150)" apply (except for the storage locations written or read or initial values).

156

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups

5.2.6

F-shared DB (S7-300, S7-400)

Function

The F-shared DB is a fail-safe data block that contains all of the shared data of the safety program and additional information needed by the F-system. The F-shared DB is automatically inserted when the hardware configuration is compiled.
Using its name F_GLOBDB, you can evaluate certain data elements of the safety program in the standard user program.

Reading an F-shared DB in the standard user program
You can read out the following information in the F-shared DB in the standard user program or on an operator control and monitoring system:
 Operating mode: safety mode or disabled safety mode ("MODE" tag)
 Error information "Error occurred when executing safety program" ("ERROR" tag)
 Collective F-signature ("F_PROG_SIG" tag)
 Compilation date of the safety program ("F_PROG_DAT" tag, DATE_AND_TIME data type)
You use fully qualified access to access these tags (e.g. ""F_GLOBDB".MODE").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

157

Programming 5.2 Defining F-Runtime Groups

5.2.7

F-runtime group information DB (S7-1200, S7-1500)

Introduction

The F-runtime group information DB provides key information on the corresponding Fruntime group and on the safety program as a whole.
The F-runtime group information DB is generated automatically when an F-runtime group is created. A symbol, for example, "RTG1SysInfo", is assigned for the F-runtime group information DB. You can change the name in the Safety Administration Editor.

Information in the F-runtime group information DB
The F-runtime group information DB provides the following information:

Name

Data type

MODE F_SYSINFO
MODE TCYC_CURR
TCYC_LONG
TRTG_CURR
TRTG_LONG
T1RTG_CURR T1RTG_LONG F_PROG_SIG
F_PROG_DAT F_RTG_SIG F_RTG_DAT VERS_S7SAF

BOOL
BOOL DINT
DINT
DINT
DINT
DINT DINT DWORD
DTL DWORD DTL DWORD

For processing in the safety program
x

For processing in the standard user
program
x

Description 1 = Disabled safety mode

--

x

1 = Disabled safety mode

--

x

Current cycle time of the F-runtime

group, in ms

--

x

Longest cycle time of the F-runtime

group, in ms

--

x

Current runtime of the F-runtime group,

in ms

--

x

Longest runtime of the F-runtime group,

in ms

--

x

Not supported by STEP 7 Safety V16.

--

x

Not supported by STEP 7 Safety V16.

--

x

Collective F-signature of the safety pro-

gram

--

x

Compilation date of the safety program

--

x

F-runtime groups signature

--

x

Compilation date of the F-runtime group

--

x

Version identifier for STEP 7 Safety

You access the content of the F-runtime group information DB with fully qualified addressing. Either collectively with the F_SYSINFO PLC data type (UDT), for example, "RTG1SysInfo.F_SYSINFO", provided by the F-system or individual information, for example, "RTG1SysInfo.F_SYSINFO.MODE".

See also

Program identification (Page 352)

158

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.2 Defining F-Runtime Groups

5.2.8

Deleting an F-runtime group

Deleting an F-runtime group
To delete an F-runtime group, proceed as follows:
1. In the area navigation of the Safety Administration Editor, click on the F-runtime group to be deleted.
2. Select the "Delete F-runtime group" button in the work area.
3. Confirm the dialog with "Yes".
4. Compile the safety program (Page 323) (menu command "Edit > Compile") to put your changes into effect.
The assignment of the F-blocks to an F-runtime group (to the calling block of the main safety block) is deleted. However, the F-blocks continue to exist.

5.2.9

Changing the F-runtime group (S7-300, S7-400)

Changing an F-runtime group
You can make the following changes for each F-runtime group in your safety program in the corresponding "F-runtime group" work area:  Specify another block as the calling block of the main safety block.  Specify another F-FB or F-FC as main safety block.  Enter a different or new I-DB for the main safety block.  Change the value for the maximum cycle time of the F-runtime group  Specify another DB as a data block for F-runtime group communication.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

159

Programming 5.3 Creating F-blocks in FBD / LAD

5.2.10

Changing the F-runtime group (S7-1200, S7-1500)

Changing an F-runtime group
You can make the following changes for each F-runtime group in your safety program in the corresponding "F-runtime group" work area:  Change the name, number, cycle time, phase shift and priority of the F-OB.  Specify another F-FB or F-FC as main safety block.  Enter a different or new I-DB for the main safety block.  Change the value for the maximum cycle time and the cycle time warning limit of the F-
runtime group.  Assign another name for the F-runtime group information DB.  Specify an FC for the preprocessing and postprocessing.

5.3

Creating F-blocks in FBD / LAD

5.3.1

Creating F-blocks

Introduction

In order to create F-FBs, F-FCs, and F-DBs for the safety program, you should follow the same basic procedure as for standard blocks. In the following, only the deviations from the procedure for standard blocks are presented.

Creating F-FBs, F-FCs, and F-DBs
You create F-blocks in the same way as for standard blocks. Proceed as follows: 1. Double-click on "Add new block" under "Program blocks" in the project tree. 2. In the dialog that appears, specify the type, name, and language and select the "Create
F-block" check box. (If you do not select the check box, a standard block is created.) 3. After the dialog is confirmed, the F-block is opened in the Program editor.

160

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.3 Creating F-blocks in FBD / LAD
Note the following
Note the following important instructions:
Note · You may not declare block parameters in the block interface of the main safety block
because they cannot be supplied. · You can edit start values in instance DBs. The function "Apply actual values" is not
supported. · You may not access static local data in single instances or multi-instances of other F-FBs. · You must always initialize outputs of F-FCs.
The F-CPU can go to STOP mode if the information above is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU. · If you wish to assign an address from the data area (data block) to a formal parameter of an F-FC as an actual parameter, you have to use fully qualified DB access. (S7-300, S7400) · Its inputs may only be accessed by a block in reading mode and its outputs only in writing mode. Use an in/out if you wish to have both read and write access. · For greater clarity, assign meaningful names to the F-blocks you have created.

Copying/pasting F-blocks
You can copy F-FBs, F-FCs, and F-DBs in exactly the same was as blocks of the standard user program. (S7-1200, S7-1500) You may not copy an F-OB. Exception: You cannot copy blocks from the folder "Program blocks > System blocks".

See also

Changing the F-runtime group (S7-1200, S7-1500) (Page 160)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

161

Programming 5.3 Creating F-blocks in FBD / LAD

5.3.2

Know-how protection
For know-how protection of F-blocks, proceed as described in the STEP 7 help under "Protecting blocks".

Requirements

Note the following with regard to know-how protection of F-blocks:
 An F-block to which you wish to assign know-how protection must be called in the safety program.
 Before you can set up the know-how protection for an F-block, the safety program must be consistent. For this purpose, compile (Page 323) the safety program.

Note
No source code is output for know-how protected F-blocks in the safety summary. Therefore, create the safety summary (for example to carry out a code review or accept the F-block) before you set up the know-how protection.
Note
If you want to edit the program code and/or the block interface of a know-how protected Fblock, we recommend that you do not open the F-block by entering a password, but rather remove the know-how protection completely and set it up again after compiling.
Note
(S7-1200, S7-1500) When a know-how protected F-block or F-blocks called by it are renamed, the signature of the know-how protected F-block is not changed until the password is entered when opening or removing the know-how protection.
Note
When know-how protected F-blocks are used, warnings and error messages whose cause can lie in the know-how protected F-blocks can be displayed during compilation of the safety program. The warnings and error messages contain corresponding information. Example: In a know-how protected F-block, you perform read access to a tag of the standard user program to which write access is taking place in a different (know-how protected) F-block.
For S7-1200/1500 F-CPUs, you can obtain additional information from the safety summary in the section "Know-how protected F-blocks in the safety program".

See also

Reuse of F-blocks (Page 163)

162

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.3 Creating F-blocks in FBD / LAD

5.3.3

Reuse of F-blocks

Introduction

You can reuse F-blocks that you have already tested and, if applicable, approved, in other safety programs ­ without having to test and approve them again.
You can protect the content of the F-block by setting up the know-how protection.
Like standard blocks, you can store F-blocks as master copies or types in global libraries or in the project library.
Additional information can be found in the STEP 7 help under "Using libraries".

Creating safety documentation for the F-block to be reused
Create safety documentation with the following information for F-blocks that you want to reuse.
S7-300/400 F-CPUs  Signature and initial value signature of the know-how protected F-block  Versions of all the used versioned LAD/FBD instructions  Signatures and initial value signatures of all called F-blocks
S7-1200/1500 F-CPUs  Signature of the know-how protected F-block  Safety system version when setting up the know-how protection  Versions of all the used versioned LAD/FBD instructions  Signatures of all called F-blocks The safety documentation should also contain a description of the functionality of the Fblock, in particular if it is know-how protected. The required information is obtained by creating a safety summary of the safety program in which you originally created, tested and approved the F-block to be reused. This safety summary can also serve directly as the safety documentation for the F-block to be reused.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

163

Programming 5.3 Creating F-blocks in FBD / LAD

Checks when using the F-block to be reused
When reusing the F-block, ensure the following:
 The signature and initial value signature (S7-300/400) of the F-block are unchanged.
 (SIMATIC S7-1200, S7-1500) The documented safety system version is set.
 The documented (or functionally identical) versions of the versioned LAD/FBD instructions are set. You can find information about the instruction versions in the description of the instructions.
 The called F-blocks with the documented signatures and initial value signatures (S7300/400) are used.
If the version conflicts cannot be eliminated due to other dependencies, please contact the author of the know-how protected block in order to obtain a compatible approved version.

See also

Compliance of the know-how protected F-blocks used in the safety program with their safety documentation. (Page 381)

164

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Programming 5.4 Programming startup protection

5.4

Programming startup protection

Introduction

WARNING
STOP, for example, via programming device/PC, mode switch, communication function or "STP" instruction
Initiating STOP, for example, by means of programming device/PC operation, mode switch, communication function or "STP" instruction, as well as maintaining the STOP state is not safety-oriented. This STOP state can be easily (and unintentionally) revoked, for example, by programming device/PC operation.
When an F-CPU is switched from STOP to RUN mode, the standard user program starts up in the usual way. When the safety program is started up, all F-DBs are initialized with the values from the load memory - as is the case with a cold restart. This means that saved error information is lost. The F-system automatically reintegrates the F-I/O.
If your process does not allow such a startup, you must program a restart/startup protection in the safety program: The output of process data must be blocked until manually enabled. This enable must not occur until it is safe to output process data and faults have been corrected. (S031)

Example of restart/startup prevention
In order to implement a restart/startup prevention, it must be possible to detect a startup. To detect a startup, you declare a tag of data type BOOL with initial value "TRUE" in an F-DB.
Block the output of process data when this tag has the value "1," for example, by passivating F-I/O using the PASS_ON tag in the F-I/O DB.
To manually enable the output of process data, you reset this tag by means of a user acknowledgment.

See also

Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller (Page 196)
Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or Idevice (Page 201)
F-I/O DB (Page 174)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

165

F-I/O access

6

6.1

Addressing F-I/O

Overview

Below you will find a description of how to address the F-I/O in the safety program and which rules must be observed in the process.

Addressing via the process image
As with standard I/O, you access F-I/O (e.g., S7-1500/ET 200MP fail-safe modules) via the process image (PII and PIQ).
Direct reading (with I/O identification ":P") of inputs or writing of outputs is not possible in the safety program.

Updating the process image
The process image of the inputs of F-I/O is updated at the start of the F-runtime group. The process image of the outputs of F-I/O is updated at the end of the F-runtime group (see Program structure of the safety program (S7-300, S7-400) (Page 115) or Program structure of the safety program (S7-1200, S7-1500) (Page 117)). For additional information on updating the process image, refer to the note in Data Transfer from the Safety Program to the Standard User Program (Page 205).
The communication required between the F-CPU (process image) and the F-I/O to update the process image uses a special safety protocol in accordance with PROFIsafe.

166

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Rules

F-I/O access 6.1 Addressing F-I/O
 You may only address a channel (channel value and value status) of an F-I/O in one Fruntime group. The first programmed addressing defines the assignment for the Fruntime group.
 You may only address a channel (channel value and value status) of an F-I/O with a unit that matches the data type of the channel. Example: To access input channels of data type BOOL, you must use the "input (bit)" (I x.y) unit. Access to the 16 consecutive input channels of the data type BOOL via the unit "input word" (IW x) is not possible.
 Address only inputs and outputs that reference an actually existing channel (channel value and value status) (e.g. for an F-DO 10xDC24V with start address 10 only the outputs Q10.0 to Q11.1 for the channel values and the inputs I10.0 to I11.1 for the value status). Keep in mind that due to the special safety protocol, the F-I/O occupies a larger area of the process image than is required for the existing and enabled channels on the F-I/O (channel values and value status). To find the area of the process image where the channels (channel values and value status) are stored (channel structure), refer to the relevant manuals for the F-I/O.
 Channels can be disabled for certain F-I/O (such as ET 200SP fail-safe modules or S71500/ET 200MP fail-safe modules). Address only channels (channel value and value status) that are enabled in the hardware configuration. When you address channels that are disabled in the hardware configuration, a warning may be output when compiling the safety program.
 For certain F-I/O (such as ET 200SP fail-safe modules or S7-1500/ET 200MP fail-safe modules), a "1oo2 (2v2) sensor evaluation" can be specified. Two channels are grouped into one channel pair in this case, and the result of the "1oo2 sensor evaluation" is usually provided under the address of the channel with the lower channel number (see relevant manuals of the F-I/O). Address only this channel (channel value and value status) of the channel pair. When you address a different channel, a warning may be output when compiling the safety program.
WARNING
If you use an additional component between the F-CPU (S7-300/400) and the F-I/O that copies the safety message frame in accordance with PROFIsafe between the F-CPU (S7300/400) and F-I/O per user program, you must test all safety functions affected by the copy function whenever you change the user-programmed copy function. (S049)

See also

Safety-Related I-Slave-Slave Communication - F-I/O Access (Page 256) Value status (S7-1200, S7-1500) (Page 168)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

167

F-I/O access 6.2 Value status (S7-1200, S7-1500)

6.2

Value status (S7-1200, S7-1500)

Properties

The value status is additional binary information for the channel value of an F-I/O. The value status is entered in the process image input (PII).
The value status is supported by S7-1500/ET 200MP, ET 200SP, ET 200eco PN, ET 200S, ET 200iSP, ET 200pro, S7-1200 fail-safe modules or S7-300 F-SMs, fail-safe I/O standard devices as well as fail-safe DP standard slaves that support the "RIOforFA-Safety" profile. Information about the value status can be found in the documentation of the respective FI/O.
We recommend you amend the name of the channel value with "_VS" for the value status, for example, "TagIn_1_VS".
The value status provides information on the validity of the corresponding channel value:
 1: A valid process value is output for the channel.
 0: A fail-safe value is output for the channel.
The channel value and value status of an F-I/O can only be accessed from the same Fruntime group.

Location of value status bits in the PII for F-I/O with digital inputs
The value status bits come straight after the channel values in the PII.

Table 6- 1 Example: Address assignment in PII for F-I/O with 16 digital input channels

Byte in the F-CPU

Assigned bits in F-CPU per F-I/O:

x + 0 x + 1 x + 2
x + 3

7
DI7
DI15
Value status DI7
Value status DI15

6
DI6
DI14
Value status DI6
Value status DI14

5
DI5
DI13
Value status DI5
Value status DI13

4
DI4
DI12
Value status DI4
Value status DI12

3
DI3
DI11
Value status DI3
Value status DI11

2
DI2
DI10
Value status DI2
Value status DI10

1
DI1
DI9
Value status DI1
Value status DI9

0
DI0
DI8
Value status DI0
Value status DI8

x = Module start address

The location of the channel values in the PII can be found in the device manual for the F-I/O.

168

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.2 Value status (S7-1200, S7-1500)

Location of value status bits in the PII for F-I/O with digital outputs
The value status bits in the PII are mapped with the same structure as the channel values in the PIQ.

Table 6- 2 Example: Address assignment in PIQ for F-I/O with 4 digital output channels

Byte in the F-CPU

Assigned bits in F-CPU per F-I/O:

x + 0

7

6

5

4

3

2

1

0

--

--

--

--

DQ3

DQ2

DQ1

DQ0

x = Module start address

Table 6- 3 Example: Address assignment in PII for F-I/O with 4 digital output channels

Byte in the F-CPU

Assigned bits in F-CPU per F-I/O:

x + 0

7

6

5

4

3

2

1

0

--

--

--

--

Value

Value

Value

Value

status DQ3 status DQ2 status DQ1 status DQ0

x = Module start address

The location of the channel values in the PIQ can be found in the device manual for the FI/O.

Location of value status bits in the PII for F-I/O with digital outputs and digital inputs
The value status bits come directly after the channel values in the PII in the following order:  Value status bits for the digital inputs  Value status bits for the digital outputs

Table 6- 4 Example: Address assignment in PIQ for F-I/O with 2 digital input channels and 1 digital output channel

Byte in the F-CPU

Assigned bit in the F-CPU per F-I/O:

7

6

5

4

3

2

1

0

x + 0

--

--

--

--

--

--

--

DQ0

x = Module start address

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

169

F-I/O access 6.2 Value status (S7-1200, S7-1500)

Table 6- 5 Example: Address assignment in PII for F-I/O with 2 digital input channels and 1 digital output channel

Byte in the F-CPU

Assigned bits in F-CPU per F-I/O:

x + 0 x + 1
x + 2

7

6

5

4

3

2

1

0

--

--

--

--

--

--

DI1

DI0

--

--

--

--

--

--

Value

Value

status DI1 status DI0

--

--

--

--

--

--

--

Value

status DQ0

x = Module start address

The location of the channel values in the PII and PIQ can be found in the device manual for the F-I/O.

Location of value status bits in the PII for F-I/O with analog inputs
The value status bits come directly after the channel values in the PII.

Table 6- 6 Example: Address assignment in PII for F-I/O with 6 analog input channels (data type INT)

Byte in the F-CPU

Assigned bytes/bits in the F-CPU per F-I/O:

x + 0 ...
x + 10 x + 12

7

6

5

4

3

2

1

0

Channel value AI0

...

Channel value AI5

--

--

Value

Value

Value

Value

Value

Value

status AI5 status AI4 status AI3 status AI2 status AI1 status AI0

x = Module start address

The location of the channel values in the PII can be found in the device manual for the F-I/O.

170

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.2 Value status (S7-1200, S7-1500)

Location of value status bits in the PII for F-I/O with analog outputs
The value status bits are mapped in the PII.

Table 6- 7 Example: Address assignment in PIQ for F-I/O with 6 analog output channels (data type INT)

Byte in the F-CPU

Assigned bytes in the F-CPU per F-I/O:

x + 0 ...
x + 10

7

6

5

4

3

2

1

0

Channel value AO0

...

Channel value AO5

x = Module start address

Table 6- 8 Example: Address assignment in PII for F-I/O with 6 analog output channels (data type INT)

Byte in the F-CPU

Assigned bits in F-CPU per F-I/O:

x + 0

7

6

5

4

3

2

1

0

--

--

Value

Value

Value

Value

Value

Value

status AO5 status AO4 status AO3 status AO2 status AO1 status AO0

x = Module start address

The location of the channel values in the PIQ can be found in the device manual for the FI/O.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

171

F-I/O access 6.3 Process Data or Fail-Safe Values

6.3

Process Data or Fail-Safe Values

When are fail-safe values used?
The safety function requires that fail-safe values (0) be used instead of process data for passivation of the entire F-I/O or individual channels of an F-I/O in the following cases. This applies both to digital channels (data type BOOL) as well as for analog channels (data type INT or DINT):
 When the F-system starts up
 When errors occur during safety-related communication (communication errors) between the F-CPU and F-I/O using the safety protocol in accordance with PROFIsafe
 When F-I/O faults and channel faults occur (such as wire break, short circuit, and discrepancy errors)
 As long as you enable passivation of the F-I/O with PASS_ON = 1 in the F-I/O DB (see below)
 As long as you disable the F-I/O with DISABLE = 1 in the F-I/O DB (see below)
Fail-safe value output for F-I/O/channels of an F-I/O
When passivation occurs for an F-I/O with inputs, the F-system provides the safety program with fail-safe values (0) in the PII instead of the process data pending at the fail-safe inputs of the F-I/O.
The overflow or underflow of a channel of the SM 336; AI 6 x 13Bit or SM 336; F-AI 6 x 0/4 ... 20 mA HART is recognized by the F-system as an F-I/O/channel fault. The fail-safe value 0 is provided in place of 7FFFH (for overflow) or 8000H (for underflow) in the PII for the safety program.
If you want to process fail-safe values other than "0" in the safety program for an F-I/O with inputs for analog channels of data type INT or DINT, you can assign individual fail-safe values for QBAD = 1 and value status = 0 or QBAD_I_xx/QBAD_O_xx = 1 (instructions JMP/JMPN, LABEL and MOVE). For details about the characteristics go to QBAD/PASS_OUT/DISABLED/QBAD_I_xx/QBAD_O_xx and value status (Page 181).
WARNING
For an F-I/O with digital input channels (data type BOOL), the value provided in the PII must always be processed in the safety program, regardless of the value status or QBAD/QBAD_I_xx. (S009)

172

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.3 Process Data or Fail-Safe Values

When passivation occurs in an F-I/O with outputs, the F-system outputs fail-safe values (0) at the fail-safe outputs instead of the output values provided by the safety program in the PIQ.

State of associated PAA/PIQ F-I/O with "RIOforFA-Safety" F-I/O without "RIOforFA-

by ...

profile with S7-1200/1500 F- Safety" profile with S7-

CPUs

1200/1500 F-CPUs

F-I/O with S7-300/400 FCPUs

Startup of F-system

The F-system overwrites the PII/PIQ with fail-safe values (0).

Communication errors

F-I/O faults
Channel faults in configuration of passivation for complete F-I/O
Channel faults during configuration of channel-granular passivation

The F-system overwrites the PII with fail-safe values (0). In the PII the values formed in the safety program are retained.

The F-system overwrites the PII/PIQ with fail-safe values (0).
For the affected channels: The F-system overwrites the PII/PIQ with fail-safe values (0).

As long as passivation of the The F-system overwrites the PII/PIQ with fail-safe values (0). F-I/O is activated in the F-I/O DB with PASS_ON = 1

As long as the F-I/O is deac- The F-system overwrites the PII/PIQ with fail-safe values tivated in the F-I/O DB with (0). DISABLE = 1

Reintegration of F-I/O/channels of an F-I/O

The switchover from fail-safe values (0) to process data (reintegration of an F-I/O) takes place automatically or following user acknowledgment in the F-I/O DB. The reintegration method depends on the following:

 The reason for passivation of the F-I/O or channels of the F-I/O
 At F-I/Os without the "Channel failure acknowledge" channel parameter on the value of the ACK_NEC variable of the associated F-IO data blocks (Page 174).
 At F-I/Os with the "Channel failure acknowledge" channel parameter (for example Fmodules S7-1500 / ET 200 MP / F-modules SIMATIC S7-1200) on the value of the channel parameter.
For fail-safe GSD based DP slaves / GSD based I/O devices with "RIOforFA-Safety" profile, consult the respective documentation.

Note Note that for channel faults in the F-I/O, channel-granular passivation takes place if configured accordingly in the hardware and network editor. For the concerned channels, failsafe values (0) are output.
Reintegration after channel faults reintegrates all channels whose faults were eliminated; faulty channels remain passivated.

See also

Configuring F-I/O (Page 51)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

173

F-I/O access 6.4 F-I/O DB

6.4

F-I/O DB

Introduction

An F-I/O DB is automatically generated for each F-I/O (in safety mode) when the F-I/O is configured in the hardware and network editor. The F-I/O DB contains tags that you can evaluate or can/must write to in the safety program. It is not permitted to change the initial values of the tags directly in the F-I/O DB. When an F-I/O is deleted, the associated F-I/O DB is also deleted.

Access to an F-I/O DB
You access tags of the F-I/O DB for the following reasons:  For reintegration of F-I/O after communication errors, F-I/O faults, or channel faults  If you want to passivate the F-I/O depending on particular states of your safety program
(for example, group passivation)  If you want to deactivate the F-I/O (for example, configuration control)  For changing parameters for fail-safe GSD based DP slaves/GSD based I/O devices  If you want to evaluate whether fail-safe values or process data are output

6.4.1

Name and number of the F-I/O DB
The name of the F-I/O DB is formed by:
 the fixed prefix "F"
 the start address of the F-I/O, and the names entered in the properties of the F-I/O in the hardware and network editor or in the device view (max. the first 24 characters)
Example: F00004_F-DI24xDC24V_1
The number is assigned within the number range defined in the "Settings" area (Page 91) of the Safety Administration Editor.

Option "Creates F-I/O DBs without prefix" (S7-1200, S7-1500)
When you select the option "Creates F-I/O DBs without prefix" in the "Settings" (Page 91) area in the Safety Administration Editor, the name is formed only from:  the name entered in the properties of the F-I/O in the hardware and network editor or in
the device view (max. 117 characters) Example: F-DI24xDC24V_1
Changing the name and number of the F-I/O DB
You change the name by changing the name entered in the properties of the F-I/O in the hardware and network editor or in the device view.

174

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

6.4.2

F-I/O access 6.4 F-I/O DB
You change the number in the "Properties"/"F-parameters" tab of the associated F-I/O.

Tags of the F-I/O DB
The following table presents the variables of an F-I/O DB:

Tag

Data type

Tags that you PASS_ON

can or must write

ACK_NEC

BOOL BOOL

ACK_REI IPAR_EN

BOOL BOOL

Tags that you can evaluate

DISABLE* PASS_OUT QBAD ACK_REQ

BOOL BOOL BOOL BOOL

IPAR_OK BOOL

DIAG DISABLED* QBAD_I_xx

BYTE BOOL BOOL

QBAD_O_xx BOOL

Function

Initial value

1=enable passivation

0

1=acknowledgment for reintegration re-

1

quired in the event of F-I/O or channel

faults

1=acknowledgment for reintegration

0

Tag for parameter reassignment of fail-safe 0 GSD based DP slaves/GSD based I/O devices or, in the case of SM 336; F-AI 6 x 0/4 ... 20 mA HART, for enabling HART communication

1=Deactivate F-I/O

0

Passivation output

1

1=Fail-safe values are output

1

1=Acknowledgment request for reintegra- 0 tion

Tag for parameter reassignment of fail-safe 0 GSD based DP slaves/GSD based I/O devices or, in the case of SM 336; F-AI 6 x 0/4 ... 20 mA HART, for enabling HART communication

Non-fail safe service information

0

1=F-I/O is deactivated

0

1=fail-safe values are output to input chan- 1 nel xx (S7-300/400)

1=fail-safe values are output to output

1

channel xx (S7-300/400)

* As of Safety-System Version 2.1 for S7-1200/1500

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

175

F-I/O access 6.4 F-I/O DB

Differences in evaluation in S7-1200/1500 F-CPUs and S7-300/400
The following table describes the differences in the evaluation of tags of the F-I/O DB and the value status depending on the F-I/O and F-CPU used.

Tag in the F-I/O DB or value status
ACK_NEC QBAD3 PASS_OUT3 QBAD_I_xx1 QBAD_O_xx1 Wertstatus1

F-I/O with "RIOforFA-Safety" profile with S71200/1500 F-CPU
--2 x x -- -- x

F-I/O without "RIOforFASafety" profile with S71200/1500 F-CPU
x x x -- -- x

F-I/O with S7-300/400 FCPU
x x x x x --

1 QBAD_I_xx and QBAD_O_xx display the validity of the channel value channel-granular and thus correspond to the inverted value status with S7-1200/1500. Value status or QBAD_I_xx and QBAD_O_xx are not available with fail-safe DP GSD based slaves or fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.
2 In the case of F-I/Os that support the "Channel failure acknowledge" channel parameter (for example S7-1500/ET 200MP F-modules or S7-1200 F-modules), this replaces the ACK_NEC variable of the F-IO data block.
3 For details about the characteristics, see "QBAD/PASS_OUT/DISABLED/QBAD_I_xx/QBAD_O_xx and value status"

176

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

6.4.2.1 6.4.2.2

F-I/O access 6.4 F-I/O DB
PASS_ON
The PASS_ON tag allows you to enable passivation of an F-I/O, for example, depending on particular states in your safety program. Using the PASS_ON tag in the F-I/O DB, you can passivate F-I/O; channel-granular passivation is not possible. As long as PASS_ON = 1, passivation of the associated F-I/O occurs.
ACK_NEC
If an F-I/O fault is detected by the F-I/O, passivation of the relevant F-I/O occurs. If channel faults are detected and channel granular passivation is configured, the relevant channels are passivated. If passivation of the entire F-I/O is configured, all channels of the relevant F-I/O are passivated. Once the F-I/O fault or channel fault has been eliminated, reintegration of the relevant F-I/O occurs, depending on ACK_NEC:  With ACK_NEC = 0, you can assign an automatic reintegration.  With ACK_NEC = 1, you can assign a reintegration by user acknowledgment.
WARNING The parameter assignment of the ACK_NEC = 0 tag is only allowed if automatic reintegration is permitted for the relevant process from a safety standpoint. (S010)
Note The initial value for ACK_NEC is 1 after creation of the F-I/O DB. If you do not require automatic reintegration, you do not have to write ACK_NEC.

See also

After F-I/O or channel faults (Page 190)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

177

F-I/O access 6.4 F-I/O DB

6.4.2.3

ACK_REI
When the F-system detects a communication error or an F-I/O fault for an F-I/O, the relevant F-I/O is passivated. If channel faults are detected and channel granular passivation is configured, the relevant channels are passivated. If passivation of the entire F-I/O is configured, all channels of the relevant F-I/O are passivated. Reintegration of the F-I/O/channels of the F-I/O after the fault has been eliminated requires a user acknowledgment with a positive edge at variable ACK_REI of the F-I/O DB:
 After every communication error
 After F-I/O or channel faults only with parameter assignment "Channel failure acknowledgement = manual" or ACK_NEC = 1
Reintegration after channel faults reintegrates all channels whose faults were eliminated.
Acknowledgment is not possible until tag ACK_REQ = 1.
In your safety program, you must provide a user acknowledgment by means of the ACK_REI tag for each F-I/O.
WARNING
For the user acknowledgement, you must interconnect the ACK_REI tag of the F--I/O DB with a signal generated by an operator input. An interconnection with an automatically generated signal is not permitted. (S011)
Note
Alternatively, you can use the "ACK_GL" instruction to carry out reintegration of the F-I/O following communication errors or F-I/O/channel faults (ACK_GL: Global acknowledgment of all F-I/O in an F-runtime group (STEP 7 Safety V16) (Page 518)).

178

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

6.4.2.4

F-I/O access 6.4 F-I/O DB
IPAR_EN
The IPAR_EN tag corresponds to the iPar_EN_C tag in the PROFIsafe bus profile as of PROFIsafe Specification V1.20 and higher.
Fail-safe GSD based DP slaves/GSD based I/O devices
To find out when this tag must be set or reset when parameters of fail-safe GSD based DP slaves/GSD based I/O devices are reassigned, consult the PROFIsafe Specification V1.20 or higher or the documentation for the fail-safe GSD based DP slave/GSD based I/O device.
Note that IPAR_EN = 1 does not trigger passivation of the relevant F-I/O.
If passivation is to occur when IPAR_EN = 1, you must also set tag PASS_ON = 1.
HART communication with SM 336; F-AI 6 x 0/4 ... 20 mA HART
If you set the IPAR_EN tag to "1" while parameter "HART_Tor" = "switchable" is assigned, the HART communication for the SM 336; F-AI 6 x 0/4 ... 20 mA HART is enabled. Setting this tag to "0" disables the HART communication. The F-SM acknowledges the enabled or disabled HART communication with tag IPAR_OK = 1 or 0.
Enable HART communication only when your system is in a status, in which any reassignment of parameters for an associated HART device can be done without any risk.
If you want to evaluate the "HART communication enabled" status in your safety program, e.g., for the purpose of programming interlocks, you must build up the information as shown in the following example. This is necessary to ensure that the information is properly available even if communication errors occur while the HART communication is enabled with IPAR_EN = 1. Only change the status of the IPAR_EN tag during this evaluation if there is no passivation due to a communication error or F-I/O or channel fault.
Example of enabling HART communication

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

179

F-I/O access 6.4 F-I/O DB

Additional information on HART communication with SM 336; F-AI 6 x 0/4 ... 20 mA HART can be found in the Automation System S7-300, ET 200M Distributed I/O System manual, Fail-Safe Signal Modules (http://support.automation.siemens.com/WW/view/en/19026151) manual and in the help on the F-module.

180

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.4 F-I/O DB

6.4.2.5

DISABLE
The DISABLE variable allows you to deactivate an F-I/O. As long as DISABLI = 1, the associated F-I/Os are passivated. Diagnostics entries of the safety program may no longer be entered in the diagnostics buffer of the F-CPU for this F-I/O (for example, due to communication error). Existing diagnostics entries are marked as outgoing.

6.4.2.6

QBAD/PASS_OUT/DISABLED/QBAD_I_xx/QBAD_O_xx and value status
The following table set outs differences in the reaction of the channel values and QBAD, PASS_OUT, DISABLED, QBAD_I_xx/QBAD_O_xx variables and of the value status depending on the F-I/O and F-CPU used.

Fail-safe value output after...
Startup of F-system Communication errors
F-I/O faults
Channel faults in configuration of passivation for complete F-I/O

F-I/O with "RIOforFASafety" profile with S71200/1500 F-CPU

F-I/O without profile
"RIOforFA-Safety" with S7-1200/1500 F-CPUs

QBAD and PASS_OUT = 1

DISABLED unchanged

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

F-I/O with S7-300/400 F-CPU
QBAD and PASS_OUT = 1 For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*

Channel faults during configuration of channel-granular passivation
As long as passivation of the F-I/O is activated in the F-I/O DB with PASS_ON = 1
As long as the F-I/O is deactivated in the F-I/O DB with DISABLE = 1

QBAD, PASS_OUT and DISABLED unchanged

QBAD and PASS_OUT = 1

For the affected channels: DISABLED unchanged

Channel value = fail-safe value (0)

For the affected channels:

Value status = 0

Channel value = fail-safe value (0)

Value status = 0*

QBAD = 1, PASS_OUT and DISABLED unchanged

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

QBAD, PASS_OUT and DISABLED = 1 For all channels: Channel value = fail-safe value (0) Value status = 0*

QBAD and PASS_OUT = 1 For the affected channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*
QBAD = 1, PASS_OUT unchanged For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1* -

* Value status or QBAD_I_xx and QBAD_O_xx are not available for fail-safe GSD based DP slaves and fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

181

F-I/O access 6.4 F-I/O DB

6.4.2.7

ACK_REQ
When the F-system detects a communication error or an F-I/O fault or channel fault for an F-I/O, the relevant F-I/O or individual channels of the F-I/O are passivated. ACK_REQ = 1 signals that user acknowledgment is required for reintegration of the relevant F-I/O or channels of the F-I/O.
The F-system sets ACK_REQ = 1 as soon as the fault has been eliminated and user acknowledgment is possible. For channel-granular passivation, the F-system sets ACK_REQ = 1 as soon as the channel fault is corrected. User acknowledgment is possible for this fault. Once acknowledgment has occurred, the F-system resets ACK_REQ to 0.
Note
For F-I/O with outputs, acknowledgment after F-I/O or channel faults may only be possible some minutes after the fault has been eliminated, until the necessary test signal is applied (see F-I/O manuals).

6.4.2.8

IPAR_OK
The IPAR_OK tag corresponds to the iPar_OK_S tag in the PROFIsafe bus profile, PROFIsafe Specification V1.20 and higher.
Fail-safe GSD based DP slaves/GSD based I/O devices
To find out how to evaluate this tag when parameters of fail-safe GSD based DP slaves or GSD based I/O devices are reassigned, consult the PROFIsafe Specification V1.20 or higher or the documentation for the fail-safe GSD based DP slave/GSD based I/O device.
For HART communication with SM 336; F-AI 6 x 0/4 ... 20 mA HART see Chapter IPAR_EN (Page 179).

182

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.4 F-I/O DB

6.4.2.9

DIAG
The DIAG tag provides non-fail-safe information (1 byte) about errors or faults that have occurred for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits are saved until you perform an acknowledgment with the ACK_REI tag or until automatic reintegration takes place.

Structure of DIAG

Bit no. Bit 0

Assignment Timeout detected by F-I/O

Possible error causes

Remedies

The PROFIBUS/PROFINET · connection between F-CPU and F-I/O is faulty.
The value of the F-monitoring · time for the F-I/O is set too low.
The F-I/O are receiving invalid parameter assignment data
or ·

Check the PROFIBUS/PROFINET connection and ensure that there are no external sources of interference.
Check the parameter assignment of the FI/O. If necessary, set a higher value for the monitoring time. Recompile the hardware configuration, and download it to the F-CPU. Recompile the safety program.
Check the diagnostics buffer of the F-I/O.

· Turn the power of the F-I/O off and back on.

Bit 1 Bit 2
Bit 3 Bit 4 Bit 5 Bit 6 Bit 7

F-I/O fault or channel fault detected by F-I/O1
CRC error or sequence number error detected by FI/O
Reserved
Timeout detected by Fsystem
Sequence number error detected by F-system2
CRC-error detected by Fsystem
Addressing error3

Internal F-I/O fault or Internal F-CPU fault See F-I/O manuals
See description for bit 0
-- See description for bit 0
See description for bit 0
See description for bit 0
--

Replace F-I/O
Replace F-CPU See F-I/O manuals See description for bit 0
-- See description for bit 0 See description for bit 0 See description for bit 0 Contact Service & Support

1 Not for F-I/O that support the "RIOforFA-Safety" profile. 2 For S7-300/400 F-CPUs only 3 For S7-1200/1500 F-CPUs only

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

183

F-I/O access 6.4 F-I/O DB

6.4.3

Accessing tags of the F-I/O DB

Rule for accessing tags of the F-I/O DB
Tags of the F-I/O DB of an F-I/O can only be accessed from the F-runtime group from which the channels of this F-I/O are accessed (if access is made).

"Fully qualified DB access"
You can access the tags of the F-I/O DB via a "fully qualified DB access" (that is, by specifying the name of the F-I/O DB and by specifying the name of the tag).

Example of evaluating the QBAD tag

See also

F-I/O DB (Page 174)

184

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O

6.5

Passivation and reintegration of F-I/O

Overview

In the following you can find information on passivation and reintegration of F-I/O.

Signal sequence charts
The signal sequences presented below represent typical signal sequences for the indicated behavior.
Actual signal sequences and, in particular, the relative position of the status change of individual signals can deviate from the given signal sequences within the scope of known "fuzzy" cyclic program execution factors, depending on the following:
 The F-I/O used
 The F-CPU used
 The cycle time of the (F-)OB in which the associated F-runtime group is called
 The target rotation time of the PROFIBUS DP or the update time of the PROFINET IO

Note The signal sequences shown refer to the status of signals in the user's safety program.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

185

F-I/O access 6.5 Passivation and reintegration of F-I/O

6.5.1

After startup of F-system

Behavior after a startup

Fail-safe value output after startup of the F-system
Passivation of the entire FI/O occurs during startup.

F-I/O with "RIOforFA-Safety" profile with S7-1200/1500 FCPU

F-I/O without profile
"RIOforFA-Safety" with S71200/1500 F-CPU

QBAD and PASS_OUT = 1

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

Every F-I/O with S7-300/400 F-CPU
QBAD and PASS_OUT = 1 For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*

* Value status or QBAD_I_xx and QBAD_O_xx are not available for fail-safe GSD based DP slaves and fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.

Reintegration of F-I/O
Reintegration of the F-I/O, i.e. the provision of process values in the PII or the output of process values provided in the PIQ at the fail-safe outputs, takes place automatically, regardless of the setting at the ACK_NEC tag or the configuration "Channel failure acknowledge", no sooner than the second cycle of the F-runtime group after startup of the F-system.
You can find additional information on pending F-communication, F-I/O or channel errors during startup of the F-system in the sections After communication errors (Page 188) and After F-I/O or channel faults (Page 190).
For fail-safe GSD based DP slaves/GSD based I/O devices with "RIOforFA-Safety" profile, consult the respective documentation for the fail-safe GSD based DP slave/GSD based I/O device.
Depending on the F-I/O you are using and the cycle time of the F-runtime group and PROFIBUS DP/PROFINET IO, several cycles of the F-runtime group can elapse before reintegration occurs.
If communication between the F-CPU and F-I/O takes longer to establish than the Fmonitoring time set in the properties for the F-I/O, automatic reintegration does not take place.

186

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O
Signal sequence for passivation and reintegration of F-I/O after F-system startup
Example for an F-I/O with inputs:



Startup of F-system/passivation



Automatic reintegration (e.g. third cycle)

WARNING
When an F-CPU is switched from STOP to RUN mode, the standard user program starts up in the usual way. When the safety program is started up, all F-DBs are initialized with the values from the load memory - as is the case with a cold restart. This means that saved error information is lost.
The F-system automatically reintegrates the F-I/O, as described above.
An operating error or an internal error can also trigger a startup of the safety program with the values from the load memory. If your process does not allow such a startup, you must program a restart/startup protection in the safety program: The output of process data must be blocked until manually enabled. This enable must not occur until it is safe to output process data and faults have been corrected. (S008)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

187

F-I/O access 6.5 Passivation and reintegration of F-I/O

6.5.2

After communication errors

Behavior after communication errors

Fail-safe value output after communication errors
If a communication error between the F-CPU and the F-I/O is detected, all channels of the entire F-I/O are passivated.

F-I/O with "RIOforFA-Safety" profile with S7-1200/1500 FCPU

F-I/O without profile
"RIOforFA-Safety" with S71200/1500 F-CPU

QBAD and PASS_OUT = 1

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

Every F-I/O with S7-300/400 F-CPU
QBAD and PASS_OUT = 1 For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*

* Value status or QBAD_I_xx and QBAD_O_xx are not available for fail-safe GSD based DP slaves and fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.

Reintegration of F-I/O
Reintegration of the relevant F-I/O, that is, provision of process data in the PII or output of process data provided in the PIQ at the failsafe outputs, takes place only when the following occurs:
 All communication errors have been eliminated and the F-system has set tag ACK_REQ = 1
 A user acknowledgment with a positive edge has occurred:
­ At the ACK_REI tag of the F-I/O DB (Page 178) or
­ At the ACK_REI_GLOB input of the "ACK_GL" instruction (ACK_GL: Global acknowledgment of all F-I/O in an F-runtime group (STEP 7 Safety V16) (Page 518))

188

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O
Signal sequence for passivation and reintegration of F-I/O after communication errors
Example for an F-I/O with inputs:



Communication error/passivation



All communication errors have been eliminated



Reintegration

See also

Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller (Page 196)
Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or Idevice (Page 201)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

189

F-I/O access 6.5 Passivation and reintegration of F-I/O

6.5.3

After F-I/O or channel faults

Behavior after F-I/O faults

Fail-safe value output after F-I/O faults
If an F-I/O fault is detected by the F-system, passivation of all channels of the entire F-I/O occurs.

F-I/O with "RIOforFA-Safety" profile with S7-1200/1500 FCPU

F-I/O without profile
"RIOforFA-Safety" with S71200/1500 F-CPU

QBAD and PASS_OUT = 1

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

Every F-I/O with S7-300/400 F-CPU
QBAD and PASS_OUT = 1 For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*

* Value status or QBAD_I_xx and QBAD_O_xx are not available for fail-safe GSD based DP slaves and fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.

Behavior after channel fault

Fail-safe value output after channel faults
When passivation for complete F-I/O is configured: If a channel fault is detected by the F-system, passivation of all channels of the entire F-I/O occurs.

F-I/O with "RIOforFA-Safety" profile with S7-1200/1500 FCPU

F-I/O without profile
"RIOforFA-Safety" with S71200/1500 F-CPU

QBAD and PASS_OUT = 1

For all channels:

Channel value = fail-safe value (0)

Value status = 0*

With configuration of channel-granular passivation:
If a channel fault is detected by the F-system, passivation of all the affected channels of the entire F-I/O occurs.

QBAD and PASS_OUT unchanged
For the affected channels:
Channel value = fail-safe value (0)
Value status = 0

QBAD and PASS_OUT = 1 For the affected channels: Channel value = fail-safe value (0) Value status = 0*

Every F-I/O with S7-300/400 F-CPU
QBAD and PASS_OUT = 1 For all channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1* QBAD and PASS_OUT = 1 For the affected channels: Channel value = fail-safe value (0) QBAD_I_xx and QBAD_O_xx = 1*

* Value status or QBAD_I_xx and QBAD_O_xx are not available for fail-safe GSD based DP slaves and fail-safe GSD based I/O devices without the "RIOforFA-Safety" profile.

190

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O
Reintegration of F-I/O
Reintegration of the relevant F-I/O or the relevant channels of the F-I/O, that is, provision of process data in the PII or output of process data provided in the PIQ at the failsafe outputs, takes place only when the following occurs:
 All F-I/O or channel faults have been eliminated.
If you have configured channel-granular passivation for the F-I/O, the relevant channels are reintegrated once the fault is corrected; any faulty channels remain passivated.
Reintegration is performed depending on your setting for the ACK_NEC tag or the "Channel failure acknowledge" parameter (configuration of the S7-1500/ET 200MP F-module and S71200 F-module)
 With ACK_NEC = 0 or the configuration "Channel failure acknowledge = automatic", automatic reintegration is performed as soon as the F-system detects that the fault has been corrected. For F-I/O with inputs, reintegration takes place right away. For F-I/O with outputs or F-I/O with inputs and outputs, depending on the F-I/O you are using, reintegration can take several minutes, first after the necessary test signals have been applied, which are used by the F-I/O to determine that the fault has been eliminated.
 With ACK_NEC = 1 or the configuration "Channel failure acknowledge = manual", reintegration is performed only as a result of user acknowledgment with a positive edge at the ACK_REI tag of the F-I/O DB or at the ACK_REI_GLOB input of the "ACK_GL" instruction. Acknowledgment can be made as soon as the F-system detects that the fault has been eliminated and tag ACK_REQ = 1 has been set.
For fail-safe GSD based I/O devices with "RIOforFA-Safety" profile, consult the respective documentation for the fail-safe GSD based I/O device .
WARNING
Following a power failure of the F-I/O lasting less than the assigned F-monitoring time for the F-I/O, automatic reintegration can occur regardless of your setting for the ACK_NEC tag or "Channel failure acknowledge" parameter, as described for the case when ACK_NEC = 0 or configuration "Channel failure acknowledge = automatic".
If automatic reintegration is not permitted for the relevant process in this case, you must program startup protection by evaluating tags QBAD or QBAD_I_xx and QBAD_O_xx or value status or PASS_OUT.
In the event of a power failure of the F-I/O lasting longer than the specified F-monitoring time for the F-I/O, the F-system detects a communication error. (S012)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

191

F-I/O access 6.5 Passivation and reintegration of F-I/O
Signal sequence for passivation and reintegration of F-I/O after F-I/O faults or channel faults when ACK_NEC = 0 or configuration "Channel failure acknowledge = automatic" (for passivation of entire F-I/O after channel faults)
Example for an F-I/O with inputs:



F-I/O or channel faults

Passivation



F-I/O or channel faults corrected

Automatic reintegration

Signal sequence for passivation and reintegration of F-I/O after F-I/O faults or channel faults when ACK_NEC = 1 or configuration "Channel failure acknowledge = manual" (for passivation of entire F-I/O after channel faults)
For the signal sequence for passivation and reintegration of F-I/O after F-I/O or channel faults when ACK_NEC = 1 or configuration "Channel failure acknowledge = manual" (initial value), see After communication errors (Page 188).

192

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O
Signal sequence for passivation and reintegration of F-I/O after channel faults when ACK_NEC = 1 or configuration "Channel failure acknowledge = manual" (for channel-granular passivation)
Example for an F-I/O with inputs:

 Channel fault for channel 0/passivation of channel 0  Channel fault for channel 1/passivation of channel 1  Channel fault eliminated for channel 0

 Reintegration of channel 0  Channel fault eliminated for channel 1  Reintegration of channel 1

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

193

F-I/O access 6.5 Passivation and reintegration of F-I/O

6.5.4

Group passivation

Programming a group passivation
If you want to enable passivation of additional F-I/O when an F-I/O or a channel of an F-I/O is passivated by the F-system, you can use the PASS_OUT/PASS_ON tags to perform group passivation of the associated F-I/O.
Group passivation by means of PASS_OUT/PASS_ON can, for example, be used to force simultaneous reintegration of all F-I/O after startup of the F-system.
For group passivation, you must OR all PASS_OUT tags of the F-I/O in the group and assign the result to all PASS_ON tags of the F-I/O in the group.
During use of fail-safe values (0) due to group passivation by means of PASS_ON = 1, the QBAD tag of the F-I/O of this group = 1.
Note
Note the different behavior of PASS_OUT for F-I/O with/without "RIOforFA-Safety" profile (see table in section QBAD/PASS_OUT/DISABLED/QBAD_I_xx/QBAD_O_xx and value status (Page 181)).

Example of group passivation

194

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

F-I/O access 6.5 Passivation and reintegration of F-I/O
Reintegration of F-I/O
Reintegration of F-I/O passivated by group passivation occurs automatically, if a reintegration (automatic or through user acknowledgment) occurs for the F-I/O that triggered the group passivation (PASS_OUT = 0).
Signal sequence for group passivation following communication error
Example for two F-I/O with inputs:



Communication error in F-I/O A

Passivation of F-I/O A



Passivation of F-I/O B



Communication error in F-I/O A corrected and acknowledged



Reintegration F-I/O A and B

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

195

Implementation of user acknowledgment

7

7.1

Implementing User Acknowledgment in the Safety Program of the F-

CPU of a DP Master or IO controller

Options for user acknowledgment
Depending on the result of the risk analysis, you have the following options for implementing a user acknowledgment:  An acknowledgment key that you connect to an F-I/O with inputs  An acknowledgment key that you connect to an standard I/O with inputs  An HMI system

User acknowledgment by means of acknowledgment key
Note
When you implement user acknowledgment by means of acknowledgment key, and a communication error, an F-I/O fault, or a channel fault occurs in the F-I/O to which the acknowledgment key is connected, then it will not be possible to acknowledge the reintegration of this F-I/O.
This "blocking" can only be removed by a STOP-to-RUN transition of the F-CPU.
Consequently, it is recommended that you also provide for an acknowledgment by means of an HMI system, in order to acknowledge reintegration of an F-I/O to which an acknowledgment key is connected.
A user acknowledgment may be issued using an acknowledgment key connected to a standard I/O with inputs if this risk analysis allows this.

User acknowledgment by means of an HMI system
For implementation of a user acknowledgment by means of an HMI system, the ACK_OP: Fail-safe acknowledgment (STEP 7 Safety V16) (Page 619) instruction is required.

196

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Implementation of user acknowledgment 7.1 Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller
Procedure for programming user acknowledgment by means of an HMI system (S7-300, S7-400)
1. Select the "ACK_OP" instruction in the "Instructions" task card and place it in your safety program. The acknowledgment signal for evaluating user acknowledgments is provided at output OUT of ACK_OP.
2. On your HMI system, set up a field for manual entry of an "acknowledgment value" of "6" (1st step in acknowledgment) and an "acknowledgment value" of "9" (2nd step in acknowledgment).
or
Assign function key 1 to transfer an "acknowledgment value" of "6" (1st step in acknowledgment) once, and function key 2 to transfer an "acknowledgment value" of "9" (2nd step in acknowledgment) once. You need to assign the in/out IN (in the data area of the ACK_OP instruction) to the field or the function keys.
3. Optional: In your HMI system, evaluate output Q in the instance DB of ACK_OP to show the time frame within which the 2nd step in acknowledgment must occur or to indicate that the 1st step in acknowledgment has already occurred.
If you want to perform a user acknowledgment exclusively from a programming device or PC using the watch table (monitor/modify tag) without having to disable safety mode, then you must transfer an operand (memory word or DBW of a DB of the standard user program) at in/out IN when calling ACK_OP. You can then transfer "acknowledgment values" "6" and "9" on the programming device or PC by modifying the memory word or DBW of a DB once. The memory word or DBW of a DB must not be written by the program.
Note
If you connect the in/out IN to a memory word or DBW of a DB, you have use a separate memory word or DBW of a DB of the standard user program for each instance of the ACK_OP instruction at the in/out IN.
WARNING
The two acknowledgment steps must not be triggered by one single operation, for example by automatically storing them along with the time conditions in a program and using a single key to trigger them. Having two separate acknowledgment steps also prevents erroneous triggering of an acknowledgment by your non-fail-safe HMI system. (S013)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

197

Implementation of user acknowledgment 7.1 Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller
WARNING
If you have HMI systems and F-CPUs that are interconnected and use the ACK_OP instruction for fail-safe acknowledgment, you need to ensure that the intended F-CPU will be addressed before you perform the two acknowledgment steps. · To do this, store a network-wide* unique name for the F-CPU in a DB of your standard
user program in each F-CPU. · In your HMI system, set up a field from which you can read out the F-CPU name from
the DB online before executing the two acknowledgment steps. · Optional:
in your HMI system, set up a field to permanently store the F-CPU name. Then, you can determine whether the intended F-CPU is being addressed by simply comparing the FCPU name read out online with the permanently stored name. (S014)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet.
Note The configuration of your operator control and monitoring system does not have any effect on the collective F-signature.
Procedure for programming user acknowledgment by means of an HMI system (S7-1200, S7-1500)
1. Select the "ACK_OP" instruction in the "Instructions" task card and place it in your safety program. The acknowledgment signal for evaluating user acknowledgments is provided at output OUT of ACK_OP.
2. Assign the ACK_ID input an identifier between 9 and 30000 for the acknowledgment. 3. Assign the in/out IN a memory word or DBW of a DB of the standard user program.
Note You need to provide the in/out parameter IN with a separate memory word or DBW of a DB of the standard user program for each instance of the ACK_OP instruction.

198

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Implementation of user acknowledgment 7.1 Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller
4. On your HMI system, set up a field for manual entry of an "acknowledgment value" of "6" (1st step in acknowledgment) and the "Identifier" configured at the ACK_ID input (2nd step in acknowledgment).
or
Allocate a function key 1 for a one-time transfer of the "acknowledgment value" of "6" (1st step in acknowledgment) and a function key 2 for a one-time transfer of the "Identifier" set at the ACK_ID input (2nd step in acknowledgment). You need to assign memory word or the DBW of the DB of the standard user program assigned to the in/out IN to the field or the function keys.
5. Optional: In your HMI system, evaluate output Q in the instance DB of ACK_OP to show the time frame within which the 2nd step in acknowledgment must occur or to indicate that the 1st step in acknowledgment has already occurred.
WARNING
The two acknowledgment steps must not be triggered by one single operation, for example by automatically storing them along with the time conditions in a program and using a single key to trigger them. Having two separate acknowledgment steps also prevents erroneous triggering of an acknowledgment by your non-fail-safe HMI system. (S013)
WARNING
If you have HMI systems and F-CPUs that are interconnected and use the ACK_OP instruction for fail-safe acknowledgment, you need to ensure that the intended F-CPU will be addressed before you perform the two acknowledgment steps.
Alternative 1: · The value for each identifier of the acknowledgment (ACK_ID input; data type: INT) can
be freely selected in the range from 9 to 30000, but must be unique network-wide* for all instances of the ACK_OP instruction. You must supply the ACK_ID input with constant values when calling the instruction. Direct read or write access in the associated instance DB is not permitted in the safety program!
Alternative 2: · Store a network-wide* unique name for the F-CPU in a DB of your standard user
program in each F-CPU. · In your HMI system, set up a field from which you can read out the F-CPU name from
the DB online before executing the two acknowledgment steps. · Optional:
in your HMI system, set up a field to permanently store the F-CPU name. Then, you can determine whether the intended F-CPU is being addressed by simply comparing the F-CPU name read out online with the permanently stored designation. (S047)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

199

Implementation of user acknowledgment 7.1 Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet.
Note The supply of the IN input/output of the ACK_OP instruction as well as the configuration of your operator control and monitoring system do not have any effect on the F-collective signature, the F-SW collective signature or the signature of the block that calls the ACK_OP instruction. Changes to the supply of the IN input/output or to the configuration of your operator control and monitoring system therefore do not result in a changed F-collective signature/F-SW collective signature/signature of the calling block.
Example of procedure for programming a user acknowledgment for reintegrating an F-I/O
1. Optional: set the ACK_NEC tag in the respective F-I/O DB (Page 177) to "0" if automatic reintegration (without user acknowledgment) is to take place after an F-I/O fault or a channel fault.
WARNING
The parameter assignment of the ACK_NEC = 0 tag is only allowed if automatic reintegration is permitted for the relevant process from a safety standpoint. (S010)
2. Optional: Evaluate the QBAD or QBAD_I_xx/QBAD_O_xx (S7-300/400) tags or value status (S7-1200, S7-1500) or DIAG in the respective F-I/O DB to trigger an indicator light in the event of an error, and/or generate error messages on the HMI system in your standard user program by evaluating the above tags or the value status. These messages can be evaluated before performing the acknowledgment operation. Alternatively, you can evaluate the diagnostic buffer of the F-CPU.
3. Optional: Evaluate the ACK_REQ tag in the respective F-I/O DB, for example, in the standard user program or on the HMI system, to query or to indicate whether user acknowledgment is required.
4. Assign the input of the acknowledgment key or the OUT output of the ACK_OP instruction to the ACK_REI tag in the respective F-I/O DB or the ACK_REI_GLOB input of the ACK_GL instruction (see above).

200

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Implementation of user acknowledgment 7.2 Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or I-device

7.2

Implementing user acknowledgment in the safety program of the F-

CPU of a I-slave or I-device

Options for user acknowledgment
You can implement a user acknowledgment by means of:
 An HMI system that you can use to access the F-CPU of the I-slave/I-Device
 An acknowledgment key that you connect to an F-I/O with inputs that is assigned to the F-CPU of the I-slave/I-Device
 An acknowledgment key that you connect to an F-I/O with inputs that is assigned to the F-CPU of the DP master/IO controller
These three options are illustrated in the figure below.

1. User acknowledgment by means of an HMI system with which you can access the F-CPU of the I-slave/I-device
The ACK_OP: Fail-safe acknowledgment (STEP 7 Safety V16) (Page 619) instruction is required to implement user acknowledgment with an HMI system that you can use to access the F-CPU of the I-slave/I-device.
Programming procedure
Follow the procedure described in "Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller (Page 196)" under "Programming procedure ...".
From your HMI system, you can then directly access the instance DB of ACK_OP in the I-slave/I-Device.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

201

Implementation of user acknowledgment 7.2 Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or I-device
2. User acknowledgment by means of an acknowledgment key at an F-I/O with inputs that are assigned to the F-CPU of the I-slave/I-device
Note In the event of a communication error, F-I/O fault, or channel fault in the F-I/O to which the acknowledgment key is connected, an acknowledgment for reintegration of this F-I/O is no longer possible. This "blocking" can only be removed by a STOP-to-RUN transition of the F-CPU of the I-slave/I-Device. Consequently, it is recommended that you also provide for an acknowledgment by means of an HMI system that you can use to access the F-CPU of the I-slave/I-Device, in order to acknowledge reintegration of an F-I/O to which an acknowledgment key is connected (see 1).
3. User acknowledgment by means of an acknowledgment key at an F-I/O with inputs that are assigned to the F-CPU of the DP master/IO controller
If you want to use the acknowledgment key that is assigned to the F-CPU at the DP master/IO controller to perform user acknowledgment in the safety program of the F-CPU of an I-slave/I-device as well, you must transmit the acknowledgment signal from the safety program in the F-CPU of the DP master/IO controller to the safety program in the F-CPU of the I-slave/I-device using safety-related master-I-slave/IO controller-I-device communication. Programming procedure 1. Place the SENDDP (Page 631) instruction in the safety program in the F-CPU of the DP
master/IO controller. 2. Place the RCVDP (Page 631) instruction in the safety program in the F-CPU of the I-
slave/I-Device. 3. Supply an input SD_BO_xx of SENDDP with the input of the acknowledgment key.

202

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Implementation of user acknowledgment 7.2 Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or I-device
4. The acknowledgment signal for evaluating user acknowledgments is now available at the corresponding RD_BO_xx output of RCVDP.
The acknowledgment signal can now be read in the program sections in which further processing is to take place with fully qualified access directly in the associated instance DB (for example, "RCVDP_DB".RD_BO_02).
5. Supply the corresponding input SUBBO_xx of RCVDP with FALSE (fail-safe value 0) to ensure that user acknowledgment is not accidentally triggered before communication is established for the first time after startup of the sending and receiving F-systems, or in the event of a safety-related communication error.
Note
If a communication error, an F-I/O error, or a channel fault occurs at the F-I/O to which the acknowledgment key is connected, then an acknowledgment for reintegration of this F-I/O will no longer be possible.
This "blocking" can only be removed by a STOP-to-RUN transition of the F-CPU of the DP master/IO controller.
Consequently, it is recommended that you also provide for an acknowledgment by means of an HMI system that you can use to access the F-CPU of the DP master/IO controller, in order to acknowledge reintegration of the F-I/O to which an acknowledgment key is connected.
If a safety-related master-I-slave/IO controller-I-Device communication error occurs, the acknowledgment signal cannot be transmitted, and an acknowledgment for reintegration of safety-related communication is no longer possible.
This "blocking" can only be removed by a STOP-to-RUN transition of the F-CPU of the I-slave/I-Device.
Consequently, it is recommended that you also provide for an acknowledgment by means of an HMI system that you can use to access the F-CPU of the I-slave/I-Device, in order to acknowledge reintegration of the safety-related communication for transmission of the acknowledgment signal (see 1).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

203

Data exchange between standard user program and safety program

8

You have the option of transferring data between the safety program and the standard user program. Tags can be transferred using DBs, F-DBs and bit memory:

Tag from DB
Tag from F-DB Bit memory

From the standard user program

From the safety program

Read access Permitted
Permitted Permitted

Write access Permitted
Not permitted Permitted

Read access

Write access

A tag from the DB can be read-accessed or write-accessed

Permitted

Permitted

Bit memory can be read-accessed or writeaccessed

You can also access the process image of the standard I/O and F-I/O:

Process image of

PII

standard I/O

PIQ

Process image of F-I/O

PII

PIQ

From the standard user program

Read access

Write access

Permitted Permitted Permitted Permitted

Permitted Permitted Not permitted Not permitted

From the safety program

Read access

Write access

Permitted Not permitted
Permitted Not permitted

Not permitted Permitted
Not permitted Permitted

Decoupling of the safety program from the standard program
For data exchange between standard user program and safety program, we recommend that you define special data blocks (transfer data blocks) in which the data to be exchanged is stored. This action allows you to decouple the blocks of the standard and the safety program. The changes in the standard program do not affect the safety program (and vice versa) provided these data blocks are not modified.

204

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Data exchange between standard user program and safety program 8.1 Data Transfer from the Safety Program to the Standard User Program

8.1

Data Transfer from the Safety Program to the Standard User

Program

Data transfer from the safety program to the standard user program
The standard user program can read all data of the safety program, for example using symbolic (fully qualified) accesses to the following:
 The instance DBs of the F-FBs ("Name of instance DB".Signal_x)
 F-DBs (for example "Name of F_DB".Signal_1)
 The process image input and output of F-I/O (for example "Emergency_Stop_Button_1" (I 5.0))
Note For S7-300/400 F-CPUs
The process image input of F-I/O is updated not only at the start of the main safety block, but also by the standard operating system.
To find the standard operating system update times, refer to the Help on STEP 7 under "Process image input and output". For F-CPUs that support process image partitions, also bear in mind the update times when process image partitions are used. For this reason, when the process image input of F-I/O is accessed in the standard user program, it is possible to obtain different values than in the safety program. The differing values can occur due to: · Different update times · Use of fail-safe values in the safety program
To obtain the same values in the standard user program as in the safety program, you must not access the process image input in the standard program until after execution of an F-runtime group. In this case, you can also evaluate the QBAD or QBAD_I_xx tag in the associated F-I/O DB in the standard user program, in order to find out whether the process image input is receiving fail-safe values (0) or process data. When using process image partitions, also make sure that the process image is not updated by the standard operating system or by the UPDAT_PI instruction between execution of an F-runtime group and evaluation of the process image input in the standard user program.
Note For S7-1200/1500 F-CPUs
The process image input of F-I/O is updated prior to processing the main safety block.
You can also write safety program data directly to the standard user program (see also the table of supported operand areas in: Restrictions in the programming languages FBD/LAD (Page 121)):

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

205

Data exchange between standard user program and safety program 8.1 Data Transfer from the Safety Program to the Standard User Program
Data block/bit memory
In order to write safety program data directly to the standard user program (e.g., DIAG output of the SENDDP instruction), you can write to data blocks of the standard user program from the safety program. However, a written tag must not be read in the safety program itself. You can also write to bit memory in the safety program. However, written bit memory must not be read in the safety program itself.
Process image output
You can write to the process image output (PIQ) of standard I/O in the safety program, for example for display purposes. The PIQ must not be read in the safety program.

206

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Data exchange between standard user program and safety program 8.2 Data Transfer from Standard User Program to Safety Program

8.2

Data Transfer from Standard User Program to Safety Program

Data transfer from standard user program to safety program
As a basic principle, only fail-safe data or fail-safe signals from F-I/O and other safety programs (in other F-CPUs) can be processed in the safety program, as standard tags are unsafe.
If you have to process tags from the standard user program in the safety program, however, you can evaluate either bit memory from the standard user program, tags from a standard DB, or the process image input (PII) of standard I/O in the safety program (see table of supported operand areas in: Restrictions in the programming languages FBD/LAD (Page 121)).
Note that structural changes to standard data blocks which are used in the safety program lead to inconsistencies of the safety program and possibly to the password being requested. In this case the collective F-signature is the same as the original again after compilation. To prevent this effect, use "interprocess communication blocks" between the standard user program and the safety program.
WARNING
Because these tags are not generated safely, you must carry out additional process-specific plausibility checks in the safety program to ensure that no dangerous states can arise. If bit memory, a tag of a standard DB, or an input of standard I/O is used in both F-runtime groups, you must perform the plausibility check separately in each F-runtime group. (S015)
To facilitate checks, all PLC tags from the standard user program that are evaluated in the safety program are included in the safety summary (Page 357).

Bit memory

In order to process tags of the standard user program in the safety program, you can also read bit memory in the safety program. However, read bit memory must not be written in the safety program itself.

Data block

In order to process tags of the standard user program in the safety program, you can read tags from data blocks of the standard user program in the safety program. However, a read tag must not be written in the safety program itself.

Process image inputs
You can read the process image input (PII) of standard I/O in the safety program. The PII must not be written in the safety program.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

207

Data exchange between standard user program and safety program 8.2 Data Transfer from Standard User Program to Safety Program
Examples: Programming plausibility checks
 Use Comparison (Page 542) instructions to check whether tags from the standard user program exceed or fall below permitted high and low limits. You can then influence your safety function with the result of the comparison.
 Use the ---( S )---: Set output (STEP 7 Safety V16) (Page 425), ---( R )---: Reset output (STEP 7 Safety V16) (Page 424) or SR: Set/reset flip-flop (STEP 7 Safety V16) (Page 427) instructions, for example, with tags from the standard user program to allow a motor to be switched off, but not switched on.
 For switch-on sequences, use the AND logic operation instruction, for example, to logically combine tags from the standard user program with switch-on conditions that you derive from fail-safe tags.
If you want to process tags from the standard user program in the safety program, bear in mind that there is not a sufficiently simple method of checking plausibility for all tags.
Reading tags from the standard user program that can change during the runtime of an F-runtime group
If you want to read tags from the standard user program (bit memory, tags of a standard DB, or PII of standard I/O) in the safety program, and these tags can be changed - either by the standard user program or an operator control and monitoring system - during runtime of the F-runtime group in which they are read (for example because your standard user program is being processed by a higher-priority cyclic interrupt), you must use bit memory or tags of a standard DB for this purpose. We recommend using standard FCs for preprocessing (Page 86) for S7-1200/1500 F-CPUs.
(S7-300/400) You must write the bit memory or tags of a standard DB with the tags from the standard user program immediately before calling the F-runtime group.
You are then permitted to access only this bit memory or these tags of a standard DB in the safety program.
Also note that clock memory that you defined when configuring your F-CPU in the "Properties" tab can change during runtime of the F-runtime group, since clock memory runs asynchronously to the F-CPU cycle.
Note
The F-CPU can go to STOP if this is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.

208

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication

9

9.1

Configuring and programming communication (S7-300, S7-400)

9.1.1

Overview of communication

Introduction

This section gives an overview of the safety-related communication options in SIMATIC Safety F-systems.

Options for safety-related communication

Safety-related communication

On subnet

Additional hardware required

I-slave-slave communication

PROFIBUS DP

--

Safety-related CPU-CPU communication:

IO controller-IO controller communica- PROFINET IO tion

PN/PN coupler

Master-master communication

PROFIBUS DP

DP/DP coupler

IO controller-I-device communication PROFINET IO

--

Master-I-slave communication

PROFIBUS DP

--

I-slave-I-slave communication

PROFIBUS DP

--

IO controller-I-slave communication

PROFINET IO and PROFIBUS DP IE/PB link

Safety-related communication via S7 Industrial Ethernet

--

connections

IO controller-IO controller communica- PROFINET IO tion for S7 Distributed Safety

PN/PN coupler

Master-master communication for S7 Distributed Safety

PROFIBUS DP

DP/DP coupler

Safety-related communication to S7

Industrial Ethernet

--

Distributed Safety or S7 F Systems via

S7 connections

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

209

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Overview of safety-related communication via PROFIBUS DP
The figure below presents an overview of the 4 options for safety-related communication via PROFIBUS DP in SIMATIC Safety F-systems with S7-300/400 F-CPUs.

 Safety-related master-master communication  Safety-related master-I-slave communication  Safety-related I-slave-I-slave communication  Safety-related I-slave-slave communication
Overview of safety-related communication via PROFINET IO
The figure below presents an overview of the four options for safety-related communication via PROFINET IO in SIMATIC Safety F-systems with S7-300/400 F-CPUs. If an IE/PB-link is used, safety-related communication is possible between assigned I-slaves.

 Safety-related IO controller-IO controller communication  Safety-related IO controller-I-device communication  Safety-related IO controller-I-slave communication  Safety-related I-slave-I-slave communication integrating an IO controller

210

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Safety-related CPU-CPU communication via PROFIBUS DP or PROFINET IO
In safety-related CPU-CPU communication, a fixed amount of fail-safe data of the data type INT or BOOL is transmitted fail-safe between the safety programs in F-CPUs of DP masters/I-slaves or IO controllers/I-devices. The data are transferred using the SENDDP instruction for sending and the RCVDP instruction for receiving. The data are stored in configured transfer areas of the devices. Each transfer area consists of one input and one output address area.
Safety-related I-slave-slave communication via PROFIBUS DP
Safety-related I-slave-slave communication with F-I/O is possible in a DP slave that supports safety-related I-slave-slave communication, for example with all ET 200SP F-modules with IM 155-6 DP HF, firmware version > V3.1, with all ET 200S F-modules with IM 151-1 HF, with all fail-safe S7-300 signal modules with IM 153-2, as of article number 6ES7153-2BA01-0XB0, firmware version > V4.0.0. Safety-related communication between the safety program of the F-CPU of an I-slave and FI/O of a DP slave takes place using direct data exchange, as in the standard program. The process image is used to access the channels of the F-I/O in the safety program of the FCPU of the I-slave.
Safety-related CPU-CPU communication via Industrial Ethernet
Safety-related CPU-CPU communication via Industrial Ethernet is possible using S7 connections, both from and to the following:  S7-300 F-CPUs via the integrated PROFINET interface  S7-400 F-CPUs via the integrated PROFINET interface or a CP 443-1 or CP 443-1
Advanced-IT In safety-related communication via S7 connections, a specified amount of fail-safe data of data type BOOL, INT, WORD, DINT, DWORD, or TIME is transferred fail-safe between the safety programs of the F-CPUs linked by the S7 connection. The data transfer makes use of the SENDS7 instruction for sending and the RCVS7 instruction for receiving. Data are exchanged using one F-DB ("F-communication DB") each at the sender and receiver ends.
Safety-related CPU-CPU communication to S7 Distributed Safety or F-systems
Safety-related communication is possible from F-CPUs in SIMATIC Safety to F-CPUs in S7 Distributed Safety or S7 F-systems.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

211

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.2

Safety-related IO controller-IO controller communication

9.1.2.1

Configure safety-related IO controller-IO controller communication

Introduction

Safety-related communication between safety programs of the F-CPUs of IO controllers takes place over a PN/PN coupler that you set up between the F-CPUs.
For 416F-2 DP CPUs without an integrated PROFINET interface, use a CP 443-1 or CP 443-1 Advanced-IT.
Note
Deactivate the "Data validity display DIA" parameter in the properties for the PN/PN coupler in the hardware and network editor. This is the default setting. Otherwise, safety-related IO controller-IO controller communication is not possible.

Configuring transfer areas
You must configure one transfer area for output data and one transfer area for input data in the hardware and network editor for each safety-related communication connection between two F-CPUs in the PN/PN coupler. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication). One transfer area for output data and one transfer area for input data must be configured in the PN/PN coupler for each of the two communication connections.

212

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Rules for defining transfer areas
The transfer area for output data and the transfer area for input data for the data to be sent must begin with the same start address. A total of 12 bytes (consistent) is required for the transfer area for output data; 6 bytes (consistent) are required for the transfer area for input data. The transfer area for input data and the transfer area for output data for the data to be received must begin with the same start address. A total of 12 bytes (consistent) is required for the transfer area for input data; 6 bytes (consistent) are required for the transfer area for output data.
Procedure for configuration
The procedure for configuring safety-related IO controller-IO controller communication is identical to that in the standard system. Proceed as follows: 1. Insert two F-CPUS from the "Hardware catalog" task card into the project. 2. Switch to the network view of the hardware and network editor. 3. Select a PN/PN Coupler X1 and a PN/PN Coupler X2 from "Other field
devices\PROFINET IO\Gateway\Siemens AG\PN/PN Coupler" in the "Hardware catalog" task card and insert them into the network view of the hardware and network editor. 4. Connect the PN interface of the F-CPU 1 with the PN interface of the PN/PN Coupler X1 and the PN interface of the F-CPU 2 with the PN interface of PN/PN Coupler X2.

5. Switch to the device view of PN/PN Coupler X1 for bidirectional communication connections i.e. where each F-CPU is both to send and to receive data. Select the following modules from "IN/OUT" in the "Hardware catalog" task card (with filter activated), and insert them in the "Device overview" tab:
­ One "IN/OUT 6 bytes / 12 bytes" module and
­ One "IN/OUT 12 bytes / 6 bytes" module

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

213

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
6. In the properties of the modules, assign the addresses outside the process image as follows: For the "IN/OUT 6 bytes / 12 bytes" module for sending data for example: ­ Input addresses: Start address 518 ­ Output addresses: Start address 518 For the "IN/OUT 12 bytes / 6 bytes" module for receiving data for example: ­ Input addresses: Start address 530 ­ Output addresses: Start address 530
Note Make sure that you assign identical start addresses for the address areas of the output and input data. Tip: Make a note of the start addresses of the transfer areas. You need these to program the SENDDP and RCVDP blocks (LADDR input).

214

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
7. Select the following modules from "IN/OUT" in the device view of PN/PN coupler X2 and insert them in the "Device overview" tab: ­ One "IN/OUT 12 bytes / 6 bytes" module and ­ One "IN/OUT 6 bytes / 12 bytes" module
8. In the properties of the modules, assign the addresses outside the process image as follows: For the "IN/OUT 12 bytes / 6 bytes" module for receiving data for example: ­ Input addresses: Start address 516 ­ Output addresses: Start address 516 For the "IN/OUT 6 bytes / 12 bytes" module for sending data for example: ­ Input addresses: Start address 528 ­ Output addresses: Start address 528

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

215

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.2.2

Safety-related IO controller-IO controller communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the IO controllers uses the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type INT or BOOL.
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

216

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.2.3

Program safety-related IO controller-IO controller communication

Requirement for programming
The transfer areas for input and output data for the PN/PN coupler must be configured.

Programming procedure
You program safety-related IO controller-IO controller communication as follows:
1. In the safety program from which data is to be sent, call the SENDDP instruction (Page 631) for sending at the end of the main safety block.
2. In the safety program in which data is to be received, call the RCVDP instruction (Page 631) for receiving at the start of the main safety block.
3. Assign the start addresses of the output and input data transfer areas of the PN/PN coupler configured in the hardware and network editor to the respective LADDR inputs.
You must carry out this assignment for every communication connection for each of the F-CPUs involved.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

217

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
4. Assign the value for the respective F-communication ID to the DP_DP_ID inputs. This establishes the communication relationship between the SENDDP instruction in one FCPU and the RCVDP instruction in the other F-CPU: The associated instructions receive the same value for DP_DP_ID.
The figure below contains an example of how to specify the F-communication IDs at the inputs of the SENDDP and RCVDP instructions for 5 safety-related IO controller-IO controller communication relationships.

218

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
5. Supply the SD_BO_xx and SD_I_xx inputs of SENDDP with the send signals. To cut down on intermediate signals when transferring block parameters, you can write the value directly to the instance DB of SENDDP using fully qualified access (for example, "Name SENDDP_1".SD_BO_02) before calling SENDDP.
6. Supply the RD_BO_xx and RD_I_xx outputs of RCVDP with the signals that you want to process further in other program sections or use fully qualified access to read the received signals directly in the associated instance DB in the program sections to be processed further (e.g., "Name RCVDP_1".RD_BO_02).
7. Supply the SUBBO_xx and SUBI_xx inputs of RCVDP with the fail-safe values that are to be output by RCVDP in place of the process data until communication is established for the first time after startup of the sending and receiving F-systems or in the event of an error in safety-related communication.
­ Specification of constant fail-safe values:
For data of data type INT, you can enter constant fail-safe values directly as constants in the SUBI_xx input (initial value = "0"). If you want to specify a constant fail-safe value "TRUE" for data of the data type BOOL, provide the tag "F_GOBDB".VKE1 for the SUBBO_xx input (initial value = "FALSE").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

219

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
­ Specification of variable substitute values:
If you want to specify variable substitute values, define a tag that you calculate through your safety program in an F-DB and specify this tag (fully qualified) in the SUBI_xx or SUBBO_xx input.
WARNING
Note: The program logic for calculating variable substitute values can only be inserted after the RCVDP calls, because there must be no program logic before the RCVDP calls. This is why the initial values of the substitute values are active in all RCVDP instructions in the first cycle after a startup of the F-system. You must therefore assign appropriate initial values for these tags. (S017)
8. Configure the TIMEOUT inputs of the RCVDP and SENDDP instructions with the required monitoring time.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).
9. Optional: Evaluate the ACK_REQ output of the RCVDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether user acknowledgment is required.
10.Supply the ACK_REI input of the RCVDP instruction with the acknowledgment signal for reintegration.
11.Optional: Evaluate the SUBS_ON output of the RCVDP or SENDDP instruction in order to query whether the RCVDP instruction is outputting the fail-safe values assigned in the SUBBO_xx and SUBI_xx inputs.
12.Optional: Evaluate the ERROR output of the RCVDP or SENDDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether a communication error has occurred.
13.Optional: Evaluate the SENDMODE output of the RCVDP instruction in order to query whether the F-CPU with the associated SENDDP instruction is in disabled safety mode (Page 360).

220

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

9.1.2.4

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Safety-related IO controller-IO controller communication - Limits for data transfer
Note If the data quantities to be transmitted exceed the capacity of the SENDDP / RCVDP correlated instructions, a second (or third) SENDDP / RCVDP call can be used. This requires configuration of an additional connection via the PN/PN coupler. Whether or not this is possible with one single PN/PN coupler depends on the capacity restrictions of the PN/PN coupler.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

221

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.3

Safety-related master-master communication

9.1.3.1

Configure safety-related master-master communication

Introduction

Safety-related communication between safety programs of the F-CPUs of DP masters takes place via a DP/DP coupler.
Note Switch the data validity indicator "DIA" on the DIP switch of the DP/DP coupler to "OFF". Otherwise, safety-related CPU-CPU communication is not possible.

Configuring transfer areas
You must configure one transfer area for output data and one transfer area for input data in the hardware and network editor for each safety-related communication connection between two F-CPUs in the DP/DP coupler. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication). One transfer area for output data and one transfer area for input data must be configured in the DP/DP coupler for each of the two communication connections.

222

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Rules for defining transfer areas
The transfer area for input data and the transfer area for output data for the data to be sent must begin with the same start address. A total of 6 bytes (consistent) is required for the transfer area for input data; 12 bytes (consistent) are required for the transfer area for output data. The transfer area for input data and the transfer area for output data for the data to be received must begin with the same start address. A total of 12 bytes (consistent) is required for the transfer area for input data; 6 bytes (consistent) are required for the transfer area for output data.
Procedure for configuration
The procedure for configuring safety-related master-master communication is identical to that in the standard system. Proceed as follows: 1. Insert two F-CPUS from the "Hardware catalog" task card into the project. 2. Switch to the network view of the hardware and network editor. 3. Select a DP/DP coupler from "Other field
devices\PROFIBUS DP\Gateways\Siemens AG\DP/DP Coupler" in the "Hardware catalog" task card and insert it into the network view of the hardware and network editor. 4. Insert a second DP/DP coupler. 5. Connect a DP interface of F-CPU 1 to the DP interface of a DP/DP coupler and a DP interface of F-CPU 2 to the DP interface of the other DP/DP coupler.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

223

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
6. A free PROFIBUS address is assigned automatically in the properties of the DP/DPcoupler in the device view. You must set this address on the DP/DP coupler of PLC 1, either by using the DIP switch on the device or in the configuration of the DP/DP coupler (see DP/DP Coupler (http://support.automation.siemens.com/WW/view/en/1179382) manual).
7. Switch to the device view of the DP/DP coupler for PLC1 for bidirectional communication connections i.e. where each F-CPU is both to send and to receive data. Select the following modules from the "Hardware catalog" task card (with filter activated), and insert them in the "Device overview" tab:
­ One "6 bytes I/12 bytes Q consistent" module, and
­ One "12 bytes I/6 bytes Q consistent" module

224

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
8. In the properties of the modules, assign the addresses outside the process image as follows: For "6 bytes I/12 bytes Q consistent" module for sending data for example: ­ Input addresses: Start address 530 ­ Output addresses: Start address 530 For "12 bytes I/6 bytes Q consistent" module for receiving data for example: ­ Input addresses: Start address 542 ­ Output addresses: Start address 542
Note Make sure that you assign identical start addresses for the address areas of the output and input data. Tip: Make a note of the start addresses of the transfer areas. You need these to program the SENDDP and RCVDP blocks (LADDR input).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

225

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
9. Select the following modules from the "Hardware catalog" task card (with filter activated) in the device view of DP/DP coupler PLC2, and insert them in the "Device overview" tab: ­ One "12 bytes I/6 bytes Q consistent" module, and ­ One "6 bytes I/12 bytes Q consistent" module
10.In the properties of the modules, assign the addresses outside the process image as follows: For "12 bytes I/6 bytes Q consistent" module for receiving data for example: ­ Input addresses: Start address 548 ­ Output addresses: Start address 548 For "6 bytes I/12 bytes Q consistent" module for sending data for example: ­ Input addresses: Start address 560 ­ Output addresses: Start address 560

226

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.3.2

Safety-related master-master communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the DP master uses the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type INT or BOOL.
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

227

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.3.3

Program safety-related master-master communication

Requirement for programming
The transfer areas for input and output data for the DP/DP coupler must be configured.

Programming procedure
You program safety-related master-master communication as follows:
1. In the safety program from which data is to be sent, call the SENDDP instruction (Page 631) for sending at the end of the main safety block.
2. In the safety program in which data is to be received, call the RCVDP instruction (Page 631) for receiving at the start of the main safety block.
3. Assign the start addresses of the transfer areas for output and input data of the DP/DP coupler configured in the hardware and network editor to the respective LADDR inputs.
You must carry out this assignment for every communication connection for each of the F-CPUs involved.
4. Assign the value for the respective F-communication ID to the DP_DP_ID inputs. This establishes the communication relationship between the SENDDP instruction in one FCPU and the RCVDP instruction in the other F-CPU: The associated instructions receive the same value for DP_DP_ID.

228

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
The figure below contains an example of how to specify the F-communication IDs at the inputs of the SENDDP and RCVDP instructions for 5 safety-related master-master communications relationships.

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

229

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
5. Supply the SD_BO_xx and SD_I_xx inputs of SENDDP with the send signals. To cut down on intermediate signals when transferring block parameters, you can write the value directly to the instance DB of SENDDP using fully qualified access (for example, "Name SENDDP_1".SD_BO_02) before calling SENDDP.
6. Supply the RD_BO_xx and RD_I_xx outputs of RCVDP with the signals that you want to process further in other program sections or use fully qualified access to read the received signals directly in the associated instance DB in the program sections to be processed further (e.g. "Name RCVDP_1".RD_BO_02).
7. Supply the SUBBO_xx and SUBI_xx inputs of RCVDP with the fail-safe values that are to be output by RCVDP in place of the process data until communication is established for the first time after startup of the sending and receiving F-systems or in the event of an error in safety-related communication.
­ Specification of constant fail-safe values:
For data of data type INT, you can enter constant fail-safe values directly as constants in the SUBI_xx input (initial value = "0"). If you want to specify a constant fail-safe value for data of the data type BOOL, provide the tag "F_GLOBDB".VKE1 for the SUBBO_xx input (initial value = "FALSE").
­ Specification of variable substitute values:
If you want to specify variable substitute values, define a tag that you calculate through your safety program in an F-DB and specify this tag (fully qualified) in the SUBI_xx or SUBBO_xx input.
WARNING
Note: The program logic for calculating variable substitute values can only be inserted after the RCVDP calls, because there must be no program logic before the RCVDP calls. This is why the initial values of the substitute values are active in all RCVDP instructions in the first cycle after a startup of the F-system. You must therefore assign appropriate initial values for these tags. (S017)

230

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
8. Configure the TIMEOUT inputs of the RCVDP and SENDDP instructions with the required monitoring time.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).
9. Optional: Evaluate the ACK_REQ output of the RCVDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether user acknowledgment is required.
10.Supply the ACK_REI input of the RCVDP instruction with the acknowledgment signal for reintegration.
11.Optional: Evaluate the SUBS_ON output of the RCVDP or SENDDP instruction in order to query whether the RCVDP instruction is outputting the fail-safe values assigned in the SUBBO_xx and SUBI_xx inputs.
12.Optional: Evaluate the ERROR output of the RCVDP or SENDDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether a communication error has occurred.
13.Optional: Evaluate the SENDMODE output of the RCVDP instruction in order to query whether the F-CPU with the associated SENDDP instruction is in disabled safety mode (Page 360).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

231

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.3.4

Safety-related master-master communication:Limits for data transfer
Note If the data quantities to be transmitted exceed the capacity of the SENDDP / RCVDP correlated instructions, a second (or third) SENDDP / RCVDP call can be used. This requires configuration of an additional connection via the DP/DP coupler. Whether or not this is possible with one single DP/DP coupler depends on the capacity restrictions of the DP/DP coupler.

9.1.4

Safety-related IO controller-I-device communication

9.1.4.1

Configuring safety-related communication between IO controller and I-device

Introduction

Safety-related communication between the safety program of the F-CPU of an IO controller and the safety program(s) of the F-CPU(s) of one or more I-devices takes place via IO controller-I-device connections (F-CD) in PROFINET IO, in the same way as in standard systems.
You do not need any additional hardware for IO controller-I-device communication.
The F-CPU to be used as an I-device must support the "IO-device" operating mode.

232

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Configuring transfer areas
For every safety-related communication connection between two F-CPUs, you must configure transfer areas in the hardware and network editor. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-CD_PLC_2 PLC_1_1" for the first F-CD connection between IO controller F-CPU 1 and I-device F-CPU 2.
You assign the start addresses of the transfer areas to the LADDR input of the SENDDP and RCVDP instructions in the safety programs.
Procedure for configuration
The procedure for configuring safety-related IO controller-I-device communication is identical to that in the standard system.
Proceed as follows:
1. Insert two F-CPUS from the "Hardware catalog" task card into the project.
2. Enable the "IO Device" mode for F-CPU 2 in the properties of its PN interface and assign this PN interface to a PN interface of F-CPU 1.
3. Select the PROFINET interface of F-CPU 2. Under "Transfer areas", you create an F-CD connection (type "F-CD") for sending to the IO controller (). The F-CD connection is shown in yellow in the table and the address areas in the I-device and IO controller assigned outside of the process image are displayed.
In addition, an acknowledgment connection is created automatically for each F-CD connection. (see "Transfer area details").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

233

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
4. Create an additional F-CD connection for receiving from the IO controller. 5. In the transfer area you just created, click the arrow in order to change the transfer
direction to receiving from IO controller ().

234

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.4.2

Safety-related IO controller-I-device communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the IO controller and an I-device makes use of the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type INT or BOOL.
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

235

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.4.3

Programming safety-related IO controller I-device communication

Requirement for programming
The transfer areas must be configured.

Programming procedure
The procedure for programming safety-related IO controller-I-device communication is the same as that for programming safety-related IO controller-IO controller communication (see Program safety-related IO controller-IO controller communication (Page 217)).
The assignment of the start addresses of the transfer areas to the LADDR input of the SENDDP/RCVDP instructions can be obtained from the following table.

Instruction

Start address LADDR

SENDDP in the IO controller RCVDP in the IO controller SENDDP in the I-device RCVDP in the I-device

From row    

From column Address in the IO controller Address in the IO controller
Address in the IO device Address in the IO device

The figure below contains an example of how to specify the F-communication IDs for the inputs of the SENDDP and RCVDP instructions for 4 safety-related IO controller-I-device communication relationships.

236

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program. You must supply constant values to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

237

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.4.4

Safety-related IO-Controller-IO-Device communication - Limits for data transfer

Limits for data transfer
If the amount of data to be transferred is greater than the capacity of related SENDDP/RCVDP instructions, you can use additional SENDDP/RCVDP instructions. Configure additional transfer areas for this purpose. Remember the maximum limit of 1440 bytes of input data or 1440 bytes of output data for transfer between an I-device and a IO controller.
The following table shows the amount of output and input data assigned in safety-related communication connections:

Safety-related communication
IO controllerI-Device

Communication connection

Assigned input and output data

In the IO controller

In the I-device

Output data Input data Output data Input data

Sending:
I-Device 1 to IO controller
Receiving:
I-Device 1 from IO controller

6 bytes 12 bytes

12 bytes 6 bytes

12 bytes 6 bytes

6 bytes 12 bytes

Consider all additional configured safety-related and standard communication connections (transfer areas of type F-CD and CD) for the maximum limit of 1440 bytes of input data or 1440 bytes of output data for transfer between an I-device and an IO controller. In addition, data are assigned for internal purposes such that the maximum limit may be reached sooner.

When the limit is exceeded, a corresponding error message is displayed.

238

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.5

Safety-related master-I-slave communication

9.1.5.1

Configuring safety-related master-I-slave communication

Introduction

Safety-related communication between the safety program of the F-CPU of a DP master and the safety program(s) of the F-CPU(s) of one or more I-slaves takes place over master-Islave connections (F-MS), as in standard systems.
You do not need a DP/DP coupler for master-I-slave communication.

Configuring transfer areas
For every safety-related communication connection between two F-CPUs, you must configure transfer areas in the hardware and network editor. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-MS_PLC_2-PLC_1_1" for the first F-MS connection between DP master F-CPU 1 and I-slave F-CPU 2.
You assign the start addresses of the transfer areas to the LADDR input of the SENDDP and RCVDP instructions in the safety programs.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

239

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Procedure for configuration
The procedure for configuring safety-related master-I-slave communication is identical to that in the standard system.
Proceed as follows:
1. Insert two F-CPUS from the "Hardware catalog" task card into the project.
2. Activate the "DP slave" mode (I-slave) for F-CPU 2 in the properties of its DP interface and assign this DP interface to a DP interface of F-CPU 1.
3. Select the PROFIBUS interface of F-CPU 2. Under "Transfer areas", you create an F-MS connection (type "F-MS") for sending to the DP master (). The F-MS connection is shown in yellow in the table and the transfer areas in the I-slave and DP master assigned outside of the process image are displayed.
In addition, an acknowledgment connection is created automatically for each F-MS connection. (see "Transfer area details").
4. Create an additional F-MS connection for receiving from the DP master.
5. In the transfer area you just created, click the arrow in order to change the transfer direction to receiving from DP master ().

240

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.5.2

Safety-related master-I-slave or I-slave-I-slave communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the DP master and an I-slave or between the F-CPUs of multiple I-slaves makes use of the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type INT or BOOL.
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

241

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.5.3

Program the safety-related master-I-slave or I-slave-I-slave communication

Requirements
The transfer areas must be configured.

Programming procedure
The procedure for programming safety-related master-I-slave communication or I-slave-Islave communication is the same as that for programming safety-related master-master communication (see Program safety-related master-master communication (Page 228)).
The assignment of the start addresses of the transfer areas to the LADDR input of the SENDDP/RCVDP instructions can be obtained from the following table.

Instruction

Start address LADDR

SENDDP in the DP master RCVDP in the DP master SENDDP in the I-slave RCVDP in the I-slave

From row    

From column Master address Master address Slave address Slave address

The figure below contains an example of how to specify the F-communication IDs at the inputs of SENDDP and RCVDP instructions for four safety-related master-I-slave and two Islave-I-slave communications relationships.

242

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

243

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).

244

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.5.4

Limits for data transfer of safety-related master-I-slave or I-slave-I-slave communication

Limits for data transfer
If the amount of data to be transferred is greater than the capacity of related SENDDP/RCVDP instructions, you can use additional SENDDP/RCVDP instructions. Configure additional transfer areas for this purpose. Note the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-slave and a DP master.
The following table shows the amount of output and input data assigned in safety-related communication connections:

Safety-related communication Master-I-slave
I-slave-I-slave

Communication connection
Sending: I-slave 1 to DP master Receiving: I-slave 1 from DP master Sending: I-slave 1 to Islave 2 Receiving: I-slave 1 from Islave 2

Assigned input and output data

DP master

I-slave 1

I-slave 2

Output data Input data Output data Input data Output data Input data

6 bytes

12 bytes

12 bytes

6 bytes

--

--

12 bytes

6 bytes

6 bytes

12 bytes

--

--

--

18 bytes

12 bytes

6 bytes

6 bytes

12 bytes

--

18 bytes

6 bytes

12 bytes

12 bytes

6 bytes

Consider all additional configured safety-related and standard communication connections (transfer areas of type F-MS-, F-DX-, F-DX-Mod., MS-, DX- and DX-Mod) for the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-device and a DP master F-MS, F-DX, F-DX-Mod., MS, DX). If the maximum limit of 244 bytes of input data or 244 bytes of output data is exceeded, you will receive a corresponding error message.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

245

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.6

Safety-related I-slave-I-slave communication

9.1.6.1

Configure safety-related I-slave-I-slave communication

Introduction

Safety-related communication between the safety program of the F-CPUs of I-slaves takes place using direct data exchange (F-DX) ­ same as in standard programs.
You do not need any additional hardware for I-slave-I-slave communication.
I-slave-I-slave communication is also possible:
 If the assigned DP master is a standard CPU that supports direct data exchange
 when instead of a DP master, an IO controller is networked with the I-slaves via an IE/PB link

Configuring transfer areas
For every safety-related communication connection between two I-slaves, you must configure transfer areas in the hardware and network editor. In the figure below, both of the I-slaves are to be able to send and receive data (bidirectional communication).

The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-DX_PLC_2-PLC_1_1" for the first F-DX connection between FCPU 1 and F-CPU 2.
You assign the start addresses of the transfer areas to the LADDR input of the SENDDP and RCVDP instructions in the safety programs.

246

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400) Procedure for configuration The procedure for configuring safety-related I-slave-I-slave communication is identical to that in the standard system. Proceed as follows: 1. Insert three F-CPUS from the "Hardware catalog" task card in the project. 2. Activate "DP slaves" mode (I-slave) for F-CPU 2 and F-CPU 3 in the properties of their DP interfaces and assign these DP interfaces to a DP interface of F-CPU 1. 3. Select the DP interface of F-CPU 3 in the network view. 4. Select the "I/O communication" tab. 5. Use a drag-and-drop operation in the network view to move F-CPU 2 to the "Partner 2" column on the "I/O-communication" tab. This creates a line with "Direct data exchange" mode for sending to the I-slave (F-CPU 2) ().
6. Click in the newly created line ().

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

247

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
7. In "Transfer areas" ("Direct data exchange" table), create an F-DX connection (type "F-DX") for sending to the I-slave (F-CPU 2) (). The F-DX connection is shown in yellow in the table and the transfer areas in the I-slaves assigned outside of the process image (PLC_2 and PLC_3) are displayed.
In addition, a line with "Direct data exchange" mode for receiving from the I-slave (F-CPU 2) () is created automatically in the "I/O communication" tab, and an acknowledgment connection (, transfer area x_Ack) is created automatically in the associated "Direct data exchange" table.
One transfer area (type F-MS) for the master CPU (disabled in display) is created for in the "I-slave communication table" of each I-slave.
This completes the configuration for sending to F-CPU 2.

248

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
8. In the "I/O communication" tab, select the automatically created line with "Direct data exchange" mode for receiving from the I-slave (F-CPU 3) ().
9. In "Transfer areas" ("Direct data exchange" table), create another F-DX connection for receiving from the I-slave (F-CPU 3).
In this case, as well, an acknowledgment connection (, transfer area x_Ack) is created automatically in the "Direct data exchange table" and two transfer areas (type F-MS) for the master CPU (disabled in display) are created in the "I-slave communication" table of both I-slaves.
This completes the configuration for receiving from F-CPU 2.

Changing disabled local address areas of the transfer areas
In order to change the disabled local address area of "Transfer area x", you must change the address area of the corresponding acknowledgment connection "Transfer area x_Ack".
1. In "I/O communication", select the line with the arrow pointing in the same direction as the arrow of "Transfer area x" in the "Direct data exchange" table.
2. Then select the line with "Transfer area x_Ack" in the "Direct data exchange" table.
3. Change the address area there.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

249

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.6.2

Safety-related I-slave-I-slave communication via SENDDP and RCVDP

Reference

The description of the communication via SENDDP and RCVDP for safety-related I-slave-Islave communication can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

9.1.6.3

Programming safety-related I-slave-I-slave communication

Reference

The description of the programming of safety-related I-slave-I-slave communication can be found in Program the safety-related master-I-slave or I-slave-I-slave communication (Page 242).
The assignment of the start addresses of the transfer areas to the LADDR input of the SENDDP/RCVDP instructions can be obtained from the following table.

Instruction SENDDP in the 1st I-slave RCVDP in the 1st I-slave SENDDP in the 2nd I-slave RCVDP in the 2nd I-slave

Start address LADDR

From row 




From column
Address in the <1st I-slave> (in example column "Address in PLC_2")
Address in the <1st I-slave> (in example column "Address in PLC_2")
Address in the <2nd I-slave> (in example column "Address in PLC_3")
Address in the <2nd I-slave> (in example column "Address in PLC_3")

9.1.6.4

Limits for data transfer of safety-related I-slave-I-slave communication

Limits for data transfer
The description of the limits for the data transfer of safety-related I-slave-I-slave communication can be found in Limits for data transfer of safety-related master-I-slave or Islave-I-slave communication (Page 245).

250

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.7

Safety-Related I-Slave-Slave Communication

9.1.7.1

Configuring Safety-Related I-Slave-Slave Communication

Introduction

Safety-related communication between the safety program of the F-CPU of an I-slave and FI/O in a DP slave takes place using direct data exchange (F-DX-Mod), same as in standard programs.
You do not need any additional hardware for I-slave-slave communication.
I-slave-slave communication is also possible:
 when the assigned DP master is a standard CPU, if the standard CPU supports direct data exchange
 when instead of a DP master, an IO controller is networked with the I-slaves via an IE/PB link
An F-I/O DB is automatically generated for each F-I/O when it is configured in the hardware and network editor; this is required for the F-I/O access via safety-related I-slaveslave communication. The F-I/O DB is initially created in the safety program of the DP master, provided it is an F-CPU with F-activation. Only with the setup of the F-DX-Mod connection is the F-I/O DB created in the safety program of the I-slave and deleted in the safety program of the DP master.
The process image input is used to access the channels of the F-I/O in the safety program of the F-CPU of the I-slave (see description in Safety-Related I-Slave-Slave Communication F-I/O Access (Page 256)).

Restrictions

Note
Safety-related I-slave-slave communication with F-I/O is possible in a DP slave that supports safety-related I-slave-slave communication, for example with all ET 200SP F-modules with IM 155-6 DP HF, firmware version > V3.1, with all ET 200S F-modules with IM 151-1 HF, with all fail-safe S7-300 signal modules with IM 153-2, as of article number 6ES7153-2BA01-0XB0, firmware version > V4.0.0.
Note
With safety-related I-slave-slave communication, make sure that the CPU of the DP master is powered up before the F-CPU of the I-slave.
Otherwise, depending on the F-monitoring time specified for the F-I/O, the F-system can detect an error in safety-related communication (communication error) between the F-CPU and the F-I/O assigned to the I-slave. This means that the F-I/O are not reintegrated automatically after F-system startup. They are instead only reintegrated after a user acknowledgment with a positive edge in the ACK_REI tag of the F-I/O DB (see also After communication errors (Page 188) and After startup of F-system (Page 186)).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

251

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Configuring transfer areas
For every safety-related communication connection between an I-slave and slave, you must configure transfer areas in the hardware and network editor. The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-DX-Mod_PLC_2-PLC_1_1" for the first F-DX-Mod connection between F-CPU 1 and F-CPU 2.

Configuration procedure using the example of an ET 200S with F-modules in the slave
The procedure for configuring safety-related I-slave-slave communication is identical to that in the standard system.
Proceed as follows:
1. Insert two F-CPUS from the "Hardware catalog" task card into the project.
2. Insert a suitable DP slave, e.g. IM 151-1 HF, article no. 6ES7151-1BA0... from the "Hardware catalog" task card into the network view of the hardware and network editor.
3. Insert a power module, a 4/8 F-DI module and a 4 F-DQ module in the device view of the ET 200S.
4. Activate "DP slave" mode (I-slave) for F-CPU 2 in the properties of its DP interface and assign this to F-CPU 1.
5. Assign the DP interface of the IM 151-1 HF to the DP master (F-CPU 1).
6. Select the DP interface of F-CPU 2 (I-slave) in the network view.
7. Select the "I/O communication" tab.

252

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
8. Use a drag-and-drop operation in the network view to move the ET 200S to the "Partner 2" column in the "I/O-communication" tab.

9. Click in the newly created line ().
10.In "Transfer areas", create an F-DX-Mod connection (type "F-DX-Mod"). The F-DX-Mod connection is marked in yellow in the table. The addresses for the "partner module" 4/8 F-DI in the I-Slave (PLC_2) are displayed. You can change the addresses directly in the table, if required.
This completes the configuration for the 4/8 F-DI module.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

253

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
11.In "Transfer areas", create another F-DX-Mod connection. 12.Change the partner module to the 4 F-DO module, either directly in the "Transfer areas"
table or in the details of transfer area 2, if the 4 F-DO module was not already selected. This completes the configuration for the 4 F-DO module.

In the "I-slave communication table" of the I-slave, a transfer area (type F-MS) for the master CPU (disabled in display) is created for each F-DX-Mod connection:

254

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

Change in configuration of I-slave-slave communication
WARNING
If you have added or deleted I-slave-slave communication for an F-I/O, you must compile and download the hardware configuration of the DP master as well as the hardware configuration of the I-slave. The collective F-signature in the F-CPU of the I-slave and the collective F-signature in the F-CPU of the DP master (if a safety program exists there, too) are set to "0". You must then recompile the safety program(s). (S019)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

255

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.7.2

Safety-Related I-Slave-Slave Communication - F-I/O Access

Access via the process image
In safety-related I-slave-slave communication, you use the process image (PII or PIQ) to access the F-I/O in the safety program of the F-CPU of the I-slave. This is the same as F-I/O access to F-I/O that are directly assigned to an I-slave or DP master. In the I-slave you access the F-I/O with the addresses that were assigned for the F-DX-Mod connection in "Transfer areas" ("Direct data exchange" table).
In this case, ignore the displayed operand area. Access F-I/O with inputs using the PII and F-I/O with outputs using PIQ.
Information on I/O access can be found in F-I/O access (Page 166).

9.1.7.3

Limits for data transfer of safety-related I-slave-I-slave communication

Limits for data transfer
Note the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-slave and a DP master.
An example of the amount of output data and input data that are assigned for safety-related communication is shown in the table below for an ET 200S 4/8 F-DI and an ET 200S 4 FDO:

Safety-related communication
I-slave-slave

Communication connection
I-slave-slave communication with 4/8 F-DI I-slave-slave communication with 4 F-DO

Assigned input and output data*

Between I-slave and DP master

Output Data in the I-slave
4 bytes

Input data in the Islave
6 bytes

5 bytes

5 bytes

* Example for 4/8 F-DI and 4 F-DO of ET 200S

Consider all additional configured safety-related and standard communication connections (F-MS, F-DX, F-DX-Mod., MS and DX connections) for the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-slave and a DP master. If the maximum limit of 244 bytes of input data or 244 bytes of output data is exceeded, you will receive a corresponding error message.

256

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.8

Safety-related IO controller-I-slave communication

Introduction

Safety-related communication between the safety program of the F-CPU of an IO-controller and the safety program(s) of the F-CPU(s) of one or more I-slaves takes place over master-Islave connections (F-MS), as in standard systems.

IE/PB link

For the safety-related IO-controller-I-slave communication, the IE/PB link is mandatory. Each of the two F-CPUs is linked to the IE/PB link by means of its PROFIBUS DP or PROFINETinterface.
Note
If you are using an IE/PB link, you must take this into account when configuring the Fspecific monitoring times and when calculating the maximum response time of your Fsystem (see also Monitoring and response times (Page 649)).
Note that the Excel file for calculating response times (http://support.automation.siemens.com/WW/view/en/49368678/133100) for S7-300/400 FCPUs does not support all conceivable configurations.

Reference

The information on safety-related master-I-slave communication in Safety-related master-Islave communication (Page 239) also applies.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

257

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.9

Safety-related communication via S7 connections

9.1.9.1

Configuring safety-related communication via S7 connections

Introduction

Safety-related communication between the safety programs of F-CPUs via S7 connections takes place by means of established S7 connections that you create in the network view of the hardware and network editor - same as in standard programs.

Restrictions

Note
In SIMATIC Safety, S7 connections are generally permitted only via Industrial Ethernet.
Safety-related communication via S7 connections is possible from and to the following CPUs: · S7-300 F-CPUs via the integrated PROFINET interface · S7-400 F-CPUs via the integrated PROFINET interface or a CP 443-1 or CP 443-1
Advanced-IT

258

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Creating S7 connections
For each connection between two F-CPUs, you must create an S7 connection in the network view of the hardware and network editor. For every end-point of a connection, a local and a partner ID is automatically assigned from the perspective of the end-point (the F-CPU). If necessary, you can change both IDs in the "Connections" tab. You assign the local ID to the "ID" input of the SENDS7 and RCVS7 instructions in the safety programs.

Procedure for configuring S7 connections
You configure the S7 connections for safety-related CPU-to-CPU communication in the same way as in STEP 7 Professional (see Help on STEP 7 Professional "S7 connections").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

259

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.9.2

Communication via SENDS7, RCVS7, and F-Communication DB

Communication via the SENDS7 and RCVS7 instructions

You use the SENDS7 and RCVS7 instructions for fail-safe sending and receiving of data via S7 connections.
These instructions can be used to transmit a specified amount of fail-safe data of data types BOOL, INT, WORD, DINT, DWORD, and TIME in a fail-safe manner. The fail-safe data are stored in F-DBs (F-communication DBs) that you have created.
You can find these instructions in the "Instructions" task card under "Communication". The RCVS7 instruction must be called at the start of the main safety block. The SENDS7 instruction must be called at the end of the main safety block.
Note that the send signals are sent only after calling the SENDS7 instruction at the end of the relevant F-runtime group execution.
A detailed description of the SENDS7 and RCVS7 instructions is found in SENDS7 and RCVS7: Communication via S7 connections (STEP 7 Safety Advanced V16) (S7-300, S7400) (Page 642).
F-communication DB
For each connection, send data are stored in an F-DB (F-communication DBx) and receive data are stored in an F-DB (F-communication DBy).
You can assign the F-communication DB numbers in the SENDS7 and RCVS7 instructions.

260

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.9.3

Programming safety-related communication via S7 connections

Introduction

The programming of safety-related CPU-CPU communication via S7 connections is described below. You must set up the following in the safety programs of the relevant FCPUs:
 Create F-DBs (F-Communication-DBs) in which send/receive data for communication are stored.
 Call and assign parameters for instructions for communication from the "Instructions" Task Card in the safety program.

Requirement for programming
The S7 connections between the relevant F-CPUs must be configured in the network view in the "Connections" tab of the hardware and network editor.

Creating and Editing an F-Communication DB
F-communication DBs are F-DBs that you create and edit in the same way as other F-DBs in the project tree. You can assign the F-communication DB numbers in the SENDS7 and RCVS7 instructions.
Note
The length and structure of the F-communication DB on the receiver side must match the length and structure of the associated F-communication DB on the sender side.
If the F-communication DBs do not match, the F-CPU can go to STOP mode. A diagnostics event is entered in the diagnostics buffer of the F-CPU.
For this reason, we recommend that you use the following procedure: 1. Create an F-communication DB in the project tree in or below the "Program blocks" folder
of the F-CPU at the sender end. 2. Specify the appropriate structure of the F-communication DB, taking into account the data
to be transferred. 3. Copy this F-communication DB to the project tree in or below the "Program blocks" folder
of the F-CPU at the receiver end, and change the name, if necessary.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

261

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Other requirements for F-communication DBs
F-communication DBs must also conform to the following properties:  They are not permitted to be instance DBs.  Their length is not permitted to exceed 100 bytes.  In F-communication DBs, only the following data types may be declared: BOOL, INT,
WORD, DINT, DWORD, and TIME.  The data types must be arranged block-wise and in the following order: BOOL, data types
with bit length of 16 bits (INT, WORD), and data types with bit length of 32 bits (DINT, DWORD, and TIME). Within the data blocks with lengths of 16 bits and 32 bits, the data types can be arranged in any order.  No more than 128 data elements of data type BOOL are permitted to be declared.  The amount of data of data type BOOL must always be an integer multiple of 16 (word limit). Reserve data must be added, if necessary. If these criteria are not fulfilled, STEP 7 Safety Advanced outputs an error message during compilation.
Assignment of fail-safe values
Fail-safe values are made available at the receiver end:  While the connection between the communication partners is being established the first
time after startup of the F-systems  Whenever a communication error occurs The values you specified as initial values in the F-communication DB at the receiver end are made available as initial values.
Programming procedure
You program safety-related communication via S7 connections as follows: 1. Supply the tags in the F-communication DB at the sender end with send signals using
fully qualified access (e.g., "Name of F-communication DB".tag name). 2. Read the tags in the F-communication DB at the receiver end (receive signals) that you
want to process further in other sections of the program using fully qualified access (e.g., "Name of F-communication DB".tag name). 3. In the safety program from which data is to be sent, call the SENDS7 instruction for sending at the end of the main safety block. 4. In the safety program in which data is to be received, call the instruction RCVS7 for receiving at the start of the main safety block. 5. Assign F-communication DB numbers to the SEND_DB input of SENDS7 and the RCV_DB input of RCVS7. 6. Assign the local ID of the S7 connection (data type: WORD) from the perspective of the F-CPU that was configured in the "Connections" tab of the network view to the ID input of SENDS7.

262

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
7. Assign the local ID of the S7 connection (data type: WORD) that was configured in the "Connections" tab of the network view to the ID input of RCVS7.
8. Assign an odd number (data type: DWORD) to the R_ID inputs of SENDS7 and RCVS7. This serves to specify that a SENDS7 instruction belongs to an RCVS7 instruction. The associated instructions receive the same value for R_ID.

WARNING
The value for the respective F-communication ID (input R_ID; data type: DWORD) can be freely selected; however, it must be odd and unique for all safety-related communication connections network-wide* and CPU-wide. The value R_ID + 1 is internally assigned and must not be used.
You must supply inputs ID and R_ID with constant values when calling the instruction. Direct read or write access to the associated instance DB is not permitted in the safety program. (S020)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
9. Assign the TIMEOUT inputs of the SENDS7 and RCVS7 instructions with the required monitoring time.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

263

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
10.To reduce the bus load, you can temporarily shut down communication between the FCPUs at input EN_SEND of the SENDS7 instruction. To do so, supply input EN_SEND (initial value = "TRUE") with 0. In this case, send data is no longer sent to the Fcommunication DB of the associated RCVS7 instruction and the receiver RCVS7 provides fail-safe values for this period (initial values in its F-communication DB). If communication was already established between the partners, a communication error is detected.
11.Optional: Evaluate the ACK_REQ output of RCVS7, for example, in the standard user program or on the HMI system in order to query or to indicate whether user acknowledgment is required.
12.Supply the ACK_REI input of RCVS7 with the signal for the acknowledgment for reintegration.
13.Optional: evaluate the SUBS_ON output of RCVS7 or SENDS7 in order to query whether the RCVS7 instruction is outputting the fail-safe values you specified as initial values in the F-communication DB.
14.Optional: Evaluate the ERROR output of RCVS7 or SENDS7, for example, in the standard user program or on the HMI system in order to query or to indicate whether a communication error has occurred.
15.Optional: evaluate the SENDMODE output of RCVS7 in order to query whether the FCPU with the associated SENDS7 instruction is in disabled safety mode (Page 360).
Particularities for migrated projects
If you have migrated a project from S7 Distributed Safety V5.4 SP5 to STEP 7 Safety Advanced in which safety-related communication via S7 connections is programmed, you must note the following:
 Do not delete migrated instance DBs for the SENDS7 and RCVS7 instructions in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks".
Otherwise, communication errors may occur in the relevant communication connections.
A migrated instance DB for the SENDS7 and RCVS7 instructions has been deleted if, after compiling the safety program, the "User-defined ID" in the newly generated is not identical to "FRCVS7CL" or "FSNDS7CL".
You can find the "User-defined ID" of a block in its properties in the "Information" area.

264

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

9.1.9.4

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Safety-related communication via S7 connections - Limits of data transfer

Note
If the amount of data to be transmitted exceeds the permitted length for the F-communication DB (100 bytes), you can create another F-communication DB that you transfer to additional SENDS7/RCVS7 instructions with modified R_ID.
Note that USEND and URCV instructions are called internally at each SENDS7 or RCVS7 call and use connection resources in the F-CPU. This affects the maximum number of communication connections available (see manuals for F-CPUs).
Additional information on the data transfer limits for S7 connections of individual F-CPUs is available on the Internet (http://support.automation.siemens.com/WW/view/en/38549114).

9.1.10 9.1.10.1

Safety-related communication with other S7 F-systems
Introduction
Safety-related communication from F-CPUs in SIMATIC Safety to F-CPUs in S7 Distributed Safety F-systems is possible via a PN/PN coupler or DP/DP coupler that you use between the two F-CPUs as IO controller-IO controller communication, master-master communication or communication via established S7 connections. Safety-related communication from F-CPUs in SIMATIC Safety to F-CPUs in S7 F/FH Systems F-systems is possible via established S7 connections.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

265

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.10.2

Communication with S7 Distributed Safety via PN/PN coupler (IO controller-IO controller communication)
Communication functions between SENDDP/RCVDP instructions at the STEP 7 Safety Advanced end and F-application blocks F_SENDDP/F_RCVDP at the S7 Distributed Safety end:

Procedure at the S7 Distributed Safety end
At the S7 Distributed Safety end, proceed as described in "Safety-related IO controller-IO controller communication" in the S7 Distributed Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/22099875) manual.
Procedure at the STEP 7 Safety Advanced end
At the STEP 7 Safety Advanced end, proceed as described in Safety-related IO controller-IO controller communication (Page 212).

266

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

9.1.10.3

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Communication with S7 Distributed Safety via DP/DP coupler (master-master communication)
Communication functions between SENDDP/RCVDP instructions at the STEP 7 Safety Advanced end and F-application blocks F_SENDDP/F_RCVDP at the S7 Distributed Safety end:

Procedure at the S7 Distributed Safety end
At the S7 Distributed Safety end, proceed as described in "Safety-related master-master communication" in the S7 Distributed Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/22099875) manual.
Procedure at the STEP 7 Safety Advanced end
At the STEP 7 Safety Advanced end, proceed as described in Safety-related master-master communication (Page 222).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

267

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.10.4

Communication with S7 Distributed Safety via S7 connections
Communication functions between SENDS7/RCVS7 instructions at the STEP 7 Safety Advanced end and F_SENDS7/F_RCVS7 F-application blocks at the S7 Distributed Safety end:

Procedure at the S7 Distributed Safety end
At the S7 Distributed Safety end, proceed as described in section "Safety-related communication via S7 communications" in the S7 Distributed Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/22099875) manual.
Because safety-related communication via S7 connections is not possible with unspecified partners in S7 Distributed Safety, you must first create a "virtual" SIMATIC station in S7 Distributed Safety in which you configure an F-CPU as a proxy for the F-CPU in STEP 7 Safety Advanced with its IP address.
You then insert an S7 connection to this F-CPU in the connection table. Both the local connection and partner connection resources (hex) are thereby fixed. You must then set these in the associated, unspecified S7 connection that you created in STEP 7 Professional.
In addition, for all communication connections to this F-CPU, you must transfer the Fcommunication ID that you assigned in the R_ID input of the associated calls of the F_SENDS7 and F_RCVS7 F-application blocks additionally to the CRC_IMP tag in the instance DB of F_SENDS7 and F_RCVS7, respectively, in the standard user program immediately before calling the F-CALL.
Program example:

268

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Procedure at the STEP 7 Safety Advanced end
At the STEP 7 Safety Advanced end, proceed as described in Safety-related communication via S7 connections (Page 258). For the F-CPU in S7 Distributed Safety, you must create and specify an unspecified S7 connection. You can find information on this in the STEP 7 help, under "Creating an unspecified connection" or "Specifying and unspecified connection". For these you must set the local and partner connection resources (hex) that are fixed as a result of the associated S7 connection that you have created in S7 Distributed Safety. If the local connection resource (hex) is already occupied by an existing connection, you must change the connection resource (hex) for it. If the instance DBs of the SENDS7 and RCVS7, instructions that you want to use for communication with S7 Distributed Safety were migrated from S7 Distributed Safety, you must delete them in the project tree in the "STEP 7 Safety" folder, under "Program blocks > System blocks" (contrary to the information in Programming safety-related communication via S7 connections (Page 261), section "Particularities for migrated projects").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

269

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)

9.1.10.5

Communication with S7 F/FH Systems via S7 connections
Communication functions between SENDS7/RCVS7 instructions at the STEP 7 Safety Advanced end and F_SDS_BO/F_RDS_BO F-blocks at the S7 F Systems end.
A maximum of 32 data elements of data type BOOL can be exchanged.

270

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Procedure at the S7 F Systems end
At the S7 F-systems end, proceed as described in section "Safety-related communication between F-CPUs" in the S7 F/FH Systems - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/16537972) manual.
Because safety-related communication via S7 connections is not possible with unspecified partners in S7 F/FH Systems, you must first create a "virtual" SIMATIC station in S7 F/FH Systems in which you configure an F-CPU as a proxy for the F-CPU in STEP 7 Safety Advanced with its IP address.
You then insert an S7 connection to this F-CPU in the connection table. Both the local connection and partner connection resources (hex) are thereby fixed. You must then set these in the associated, unspecified S7 connection that you created in STEP 7 Safety Advanced.
In addition, you must insert a function in your S7 program (in the area reserved in CFC for other applications), in which, for all communication connections for this F-CPU, you transfer the F-communication ID that you assigned in the R_ID input of the associated calls of the F_SDS_BO and F_RDS_BO F-blocks additionally to the CRC_IMP tag in the instance DB of the F_SDS_BO and F_RDS_BO, respectively. You obtain the number of the instance DB from the object properties of the block in CFC. Assign descriptive names for these instance DBs. If you perform a compress operation in CFC, you must check whether the numbers of these instance DBs have changed.
Program example:

You must then import the function in CFC as block type and insert your standard user program in a chart. In the run sequence, make sure that the associated standard runtime group is processed before the F-runtime group.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

271

Safety-related communication 9.1 Configuring and programming communication (S7-300, S7-400)
Procedure at the STEP 7 Safety Advanced end
At the STEP 7 Safety Advanced end, proceed as described in "Safety-related communication via S7 connections" (Page 258).
Particularity: In STEP 7 Safety Advanced, you must create the F-communication DB with exactly 32 data elements of data type BOOL.
For the F-CPU in S7 F/FH Systems, you must create and specify an unspecified S7 connection. You can find information on this in the
STEP 7 help under "Creating an unspecified connection" or "Specifying and unspecified connection".
For these you must set the local and partner connection resources (hex) that are fixed as a result of the associated S7 connection that you have created in S7 F Systems.
If the local connection resource (hex) is already occupied by an existing connection, you must change the connection resource (hex) for it.

272

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2

Configuring and programming communication (S7-1200, S7-1500)

9.2.1

Overview of communication

Introduction

This section gives an overview of the safety-related communication options in SIMATIC Safety F-systems.

Options for safety-related communication

Safety-related communication

On subnet

Safety-related CPU-CPU communication:

IO controller-IO controller communication

PROFINET IO

Master-master communication

PROFIBUS DP

IO controller-I-device communication

PROFINET IO

Master-I-slave communication

PROFIBUS DP

IO controller-I-slave communication

PROFINET IO and PROFIBUS DP

IO controller-IO controller communication for S7 PROFINET IO Distributed Safety

Master-master communication for S7 Distributed PROFIBUS DP Safety

Additional hardware required
PN/PN coupler DP/DP coupler -- -- IE/PB link PN/PN coupler
DP/DP coupler

Note
Safety-related communication with S7-1200 F-CPUs is only permitted as of firmware version V4.1.2.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

273

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Overview of safety-related communication via PROFIBUS DP
The figure below provides an overview of the options for safety-related communication via PROFIBUS DP in SIMATIC Safety F-systems with S7-1200/1500 F-CPUs.

 Safety-related master-master communication  Safety-related master-I-slave communication
Overview of safety-related communication via PROFINET IO
The figure below provides an overview of the options for safety-related communication via PROFINET IO in SIMATIC Safety F-systems with S7-1200/1500 F-CPUs.



Safety-related IO controller-IO controller communication



Safety-related IO controller-I-device communication



Safety-related IO controller-I-slave communication

274

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Safety-related CPU-CPU communication via PROFIBUS DP or PROFINET IO
In safety-related CPU-CPU communication, a fixed amount of data of the data type BOOL or INT (DINT as alternative) is transmitted fail-safe between the safety programs in F-CPUs of DP masters/I-slaves or IO controllers/I-devices. The data are transferred using the SENDDP instruction for sending and the RCVDP instruction for receiving. The data are stored in configured transfer areas of the devices. The hardware identifier (HW identifier) defines the transfer areas configured.
Safety-related CPU-CPU communication for S7 Distributed Safety
Safety-related communication is possible from F-CPUs in SIMATIC Safety to F-CPUs in S7 Distributed Safety.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

275

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.2

Safety-related IO controller-IO controller communication

9.2.2.1

Configure safety-related IO controller-IO controller communication

Introduction

Safety-related communication between safety programs of the F-CPUs of IO controllers takes place over a PN/PN coupler that you set up between the F-CPUs.
Note
Deactivate the "Data validity display DIA" parameter in the properties for the PN/PN coupler in the hardware and network editor. This is the default setting. Otherwise, safety-related IO controller-IO controller communication is not possible.

Configuring transfer areas
You must configure one transfer area for output data and one transfer area for input data in the hardware and network editor for each safety-related communication connection between two F-CPUs in the PN/PN coupler. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

276

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Rules for defining transfer areas
Data to be sent: A total of 12 bytes (consistent) is required for the transfer area for output data; 6 bytes (consistent) are required for the transfer area for input data. Data to be received: A total of 12 bytes (consistent) is required for the transfer area for input data; 6 bytes (consistent) are required for the transfer area for output data.
Note PN/PN Coupler article number 6ES7158-3AD10-0XA0 When configuring the transfer areas for the output and input data, proceed as described in the "SIMATIC bus links PN/PN coupler (https://support.industry.siemens.com/cs/ww/en/view/44319532)" manual, section "Configuring the PN/PN Coupler with STEP 7 TIA Portal".
Procedure for configuration
The procedure for configuring safety-related IO controller-IO controller communication is identical to that in the standard system. Proceed as follows: 1. Insert two F-CPUS from the "Hardware catalog" task card into the project. 2. Switch to the network view of the hardware and network editor. 3. Select a PN/PN Coupler X1 and a PN/PN Coupler X2 from "Other field
devices\PROFINET IO\Gateway\Siemens AG\PN/PN Coupler" in the "Hardware catalog" task card and insert them into the network view of the hardware and network editor.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

277

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
4. Connect the PN interface of the F-CPU 1 with the PN interface of the PN/PN Coupler X1 and the PN interface of the F-CPU 2 with the PN interface of PN/PN Coupler X2.

278

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
5. Switch to the device view of PN/PN Coupler X1 for bidirectional communication connections i.e. where each F-CPU is both to send and to receive data. Select the following modules from "IN/OUT" in the "Hardware catalog" task card (with filter activated), and insert them in the "Device overview" tab: ­ One "IN/OUT 6 bytes / 12 bytes" module and ­ One "IN/OUT 12 bytes / 6 bytes" module
Note The transfer areas are assigned on the basis of the hardware identifier which is automatically assigned to the modules and devices. You need the HW identifier to program the SENDDP and RCVDP blocks (LADDR input). A system constant is created in the corresponding F-CPU for each hardware identifier of the transfer area. You can assign these system constants symbolically to the SENDDP and RCVDP blocks.
6. Select the following modules from "IN/OUT" in the device view of PN/PN coupler X2 and insert them in the "Device overview" tab: ­ One "IN/OUT 12 bytes / 6 bytes" module and ­ One "IN/OUT 6 bytes / 12 bytes" module

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

279

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.2.2

Safety-related IO controller-IO controller communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the IO controllers uses the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type BOOL or INT (DINT as alternative).
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
You can also call up the RCVDP and SENDDP instructions in separate F-FBs/F-FCs which you have to call at the start or end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

280

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.2.3

Program safety-related IO controller-IO controller communication

Requirement for programming
The transfer areas for input and output data for the PN/PN coupler must be configured.

Programming procedure
You program safety-related IO controller-IO controller communication as follows:
1. In the safety program from which data is to be sent, call the SENDDP instruction (Page 631) for sending at the end of the main safety block.
2. In the safety program in which data is to be received, call the RCVDP instruction (Page 631) for receiving at the start of the main safety block.
3. Assign the respective LADDR inputs HW identifiers (system constants in the default tag table) for the transfer areas for output and input data of the PN/PN coupler that are configured in the hardware and network editor.
You must carry out this assignment for every communication connection for each of the F-CPUs involved.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

281

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
4. Assign the value for the respective F-communication ID to the DP_DP_ID inputs. This establishes the communication relationship between the SENDDP instruction in one FCPU and the RCVDP instruction in the other F-CPU: The associated instructions receive the same value for DP_DP_ID.
The figure below contains an example of how to specify the F-communication IDs at the inputs of the SENDDP and RCVDP instructions for 5 safety-related IO controller-IO controller communication relationships.

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)

282

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".
*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must make sure that the value at the DP_DP_ID input is "0" during this phase.
5. Supply the SD_BO_xx and SD_I_xx inputs (SD_DI_00 as alternative) of SENDDP with the send signals. To cut down on intermediate signals when transferring block parameters, you can write the value directly to the instance DB of SENDDP using fully qualified access (for example, "Name SENDDP_1".SD_BO_02) before calling SENDDP.
6. Supply the RD_BO_xx and RD_I_xx outputs (RD_DI_00 as alternative) of RCVDP with the signals that you want to process further in other program sections or use fully qualified access to read the received signals directly in the associated instance DB in the program sections to be processed further (e.g., "Name RCVDP_1".RD_BO_02).
7. If you want to send the data at the SD_DI_00 input instead of the data at the SD_I_00 and SD_I_01 inputs, supply the DINTMODE input (initial value = "FALSE") of SENDDP with TRUE.
8. Supply the SUBBO_xx and SUBI_xx or alternatively SUBDI_00 inputs of RCVDP with the fail-safe values that are to be output by RCVDP in place of the process data until communication is established for the first time after startup of the sending and receiving F-systems or in the event of an error in safety-related communication.
­ Specification of constant fail-safe values:
For data of data type INT/DINT, you can enter constant fail-safe values directly as constants in the SUBI_xx or alternatively SUBDI_00 input (initial value = "0"). If you want to specify a constant fail-safe value "TRUE" for data of the data type BOOL, set TRUE for the SUBBO_xx input (initial value = "FALSE").
­ Specification of variable substitute values:
If you want to specify variable substitute values, define a tag that you calculate through your safety program in an F-DB and specify this tag (fully qualified) in the SUBBO_xx or SUBI_xx or alternatively SUBDI_00 input.
WARNING
Note: The program logic for calculating variable substitute values can only be inserted after the RCVDP calls, because there must be no program logic before the RCVDP calls. This is why the initial values of the substitute values are active in all RCVDP instructions in the first cycle after a startup of the F-system. You must therefore assign appropriate initial values for these tags. (S017)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

283

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
9. Configure the TIMEOUT inputs of the RCVDP and SENDDP instructions with the required monitoring time.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).
10.Optional: Evaluate the ACK_REQ output of the RCVDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether user acknowledgment is required.
11.Supply the ACK_REI input of the RCVDP instruction with the acknowledgment signal for reintegration.
12.Optional: Evaluate the SUBS_ON output of the RCVDP or SENDDP instruction in order to query whether the RCVDP instruction is outputting the fail-safe values assigned in the SUBBO_xx and SUBI_xx or alternatively SUBDI_00 inputs.
13.Optional: Evaluate the ERROR output of the RCVDP or SENDDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether a communication error has occurred.
14.Optional: Evaluate the SENDMODE output of the RCVDP instruction in order to query whether the F-CPU with the associated SENDDP instruction is in disabled safety mode (Page 360).

284

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

9.2.2.4

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Safety-related IO controller-IO controller communication - Limits for data transfer
Note If the data quantities to be transmitted exceed the capacity of the SENDDP / RCVDP correlated instructions, a second (or third) SENDDP / RCVDP call can be used. This requires configuration of an additional connection via the PN/PN coupler. Whether or not this is possible with one single PN/PN coupler depends on the capacity restrictions of the PN/PN coupler.

9.2.3

Safety-related master-master communication

9.2.3.1

Configure safety-related master-master communication

Introduction

Safety-related communication between safety programs of the F-CPUs of DP masters takes place via a DP/DP coupler.
Note Switch the data validity indicator "DIA" on the DIP switch of the DP/DP coupler to "OFF". Otherwise, safety-related CPU-CPU communication is not possible.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

285

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Configuring transfer areas
You must configure one transfer area for output data and one transfer area for input data in the hardware and network editor for each safety-related communication connection between two F-CPUs in the DP/DP coupler. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

Rules for defining transfer areas
Data to be sent:
A total of 12 bytes (consistent) is required for the transfer area for output data; 6 bytes (consistent) are required for the transfer area for input data.
Data to be received:
A total of 12 bytes (consistent) is required for the transfer area for input data; 6 bytes (consistent) are required for the transfer area for output data.

286

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Procedure for configuration
The procedure for configuring safety-related master-master communication is identical to that in the standard system. Proceed as follows: 1. Insert two F-CPUS from the "Hardware catalog" task card into the project. 2. Switch to the network view of the hardware and network editor. 3. Select a DP/DP coupler from "Other field
devices\PROFIBUS DP\Gateways\Siemens AG\DP/DP Coupler" in the "Hardware catalog" task card and insert it into the network view of the hardware and network editor. 4. Insert a second DP/DP coupler. 5. Connect a DP interface of F-CPU 1 to the DP interface of a DP/DP coupler and a DP interface of F-CPU 2 to the DP interface of the other DP/DP coupler.

6. A free PROFIBUS address is assigned automatically in the properties of the DP/DPcoupler in the device view. You must set this address on the DP/DP coupler, either via the DIP switch on the device or in the configuration of the DP/DP coupler (see DP/DP Coupler (http://support.automation.siemens.com/WW/view/en/1179382) manual).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

287

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
7. Switch to the device view of the DP/DP coupler PLC1 for bidirectional communication connections i.e. where each F-CPU should both send and receive data. Select the following modules from the "Hardware catalog" task card (with filter activated), and insert them in the "Device overview" tab of the DP/DP coupler: ­ One "6 bytes I/12 bytes Q consistent" module, and ­ One "12 bytes I/6 bytes Q consistent" module
Note The transfer areas are assigned on the basis of the hardware identifier which is automatically assigned to the modules and devices. You need the HW identifier to program the SENDDP and RCVDP blocks (LADDR input). A system constant is created in the corresponding F-CPU for each hardware identifier of the transfer area. You can assign these system constants symbolically to the SENDDP and RCVDP blocks.
8. Select the following modules from the "Hardware catalog" task card (with filter activated) in the device view of DP/DP coupler PLC2, and insert them in the "Device overview" tab: ­ One "12 bytes I/6 bytes Q consistent" module, and ­ One "6 bytes I/12 bytes Q consistent" module

288

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.3.2

Safety-related master-master communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the DP master uses the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type BOOL or INT (DINT as alternative).
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
You can also call up the RCVDP and SENDDP instructions in separate F-FBs/F-FCs which you have to call up at the start or the end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

289

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.3.3

Program safety-related master-master communication

Requirement for programming
The address areas for input and output data for the DP/DP coupler must be configured.

Programming procedure
You program safety-related master-master communication as follows:
1. In the safety program from which data is to be sent, call the SENDDP instruction (Page 631) for sending at the end of the main safety block or a separate F-FC/F-FB.
2. In the safety program in which data is to be received, call the RCVDP instruction (Page 631) for receiving at the start of the main safety block or a separate F-FC/F-FB.
3. Assign the HW identifiers for the output and input data of the DP/DP coupler configured in the hardware and network editor (constant in the tag table) to the respective LADDR inputs.
You must carry out this assignment for every communication connection for each of the F-CPUs involved.

290

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
4. Assign the value for the respective F-communication ID to the DP_DP_ID inputs. This establishes the communication relationship between the SENDDP instruction in one FCPU and the RCVDP instruction in the other F-CPU: The associated instructions receive the same value for DP_DP_ID.
The figure below contains an example of how to specify the F-communication IDs at the inputs of the SENDDP and RCVDP instructions for 5 safety-related master-master communications relationships.

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

291

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".
*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must make sure that the value at the DP_DP_ID input is "0" during this phase.
5. Supply the SD_BO_xx and SD_I_xx inputs (SD_DI_00 as alternative) of SENDDP with the send signals. To cut down on intermediate signals when transferring block parameters, you can write the value directly to the instance DB of SENDDP using fully qualified access (for example, "Name SENDDP_1".SD_BO_02) before calling SENDDP.
6. Supply the RD_BO_xx and RD_I_xx outputs (RD_DI_00 as alternative) of RCVDP with the signals that you want to process further in other program sections or use fully qualified access to read the received signals directly in the associated instance DB in the program sections to be processed further (e.g., "Name RCVDP_1".RD_BO_02).
7. If you want to send the data at the SD_DI_00 input instead of the data at the SD_I_00 and SD_I_01 inputs, supply the DINTMODE input (initial value = "FALSE") of SENDDP with TRUE.
8. Supply the SUBBO_xx and SUBI_xx or alternatively SUBDI_00 inputs of RCVDP with the fail-safe values that are to be output by RCVDP in place of the process data until communication is established for the first time after startup of the sending and receiving F-systems or in the event of an error in safety-related communication.
­ Specification of constant fail-safe values:
For data of data type INT/DINT, you can enter constant fail-safe values directly as constants in the SUBI_xx or alternatively SUBDI_00 input (initial value = "0"). If you want to specify a constant fail-safe value "TRUE" for data of the data type BOOL, set TRUE for the SUBBO_xx input (initial value = "FALSE").
­ Specification of variable substitute values:
If you want to specify variable substitute values, define a tag that you calculate through your safety program in an F-DB and specify this tag (fully qualified) in the SUBBO_xx or SUBI_xx or alternatively SUBDI_00 input.
WARNING
Note: The program logic for calculating variable substitute values can only be inserted after the RCVDP calls, because there must be no program logic before the RCVDP calls. This is why the initial values of the substitute values are active in all RCVDP instructions in the first cycle after a startup of the F-system. You must therefore assign appropriate initial values for these tags. (S017)

292

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
9. Configure the TIMEOUT inputs of the RCVDP and SENDDP instructions with the required monitoring time.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).
10.Optional: Evaluate the ACK_REQ output of the RCVDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether user acknowledgment is required.
11.Supply the ACK_REI input of the RCVDP instruction with the acknowledgment signal for reintegration.
12.Optional: Evaluate the SUBS_ON output of the RCVDP or SENDDP instruction in order to query whether the RCVDP instruction is outputting the fail-safe values assigned in the SUBBO_xx and SUBI_xx or alternatively SUBDI_00 inputs.
13.Optional: Evaluate the ERROR output of the RCVDP or SENDDP instruction, for example, in the standard user program or on the HMI system in order to query or to indicate whether a communication error has occurred.
14.Optional: Evaluate the SENDMODE output of the RCVDP instruction in order to query whether the F-CPU with the associated SENDDP instruction is in disabled safety mode (Page 360).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

293

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.3.4

Safety-related master-master communication:Limits for data transfer
Note If the data quantities to be transmitted exceed the capacity of the SENDDP / RCVDP correlated instructions, a second (or third) SENDDP / RCVDP call can be used. This requires configuration of an additional connection via the DP/DP coupler. Whether or not this is possible with one single DP/DP coupler depends on the capacity restrictions of the DP/DP coupler.

9.2.4

Safety-related IO controller-I-device communication

9.2.4.1

Configuring safety-related communication between IO controller and I-device

Introduction

Safety-related communication between the safety program of the F-CPU of an IO controller and the safety program(s) of the F-CPU(s) of one or more I-devices takes place via IO controller-I-device connections (F-CD) in PROFINET IO, in the same way as in standard systems.
You do not need any additional hardware for IO controller-I-device communication.

Configuring transfer areas
For every safety-related communication connection between two F-CPUs, you must configure transfer areas in the hardware and network editor. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

294

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-CD_PLC_2 PLC_1_1" for the first F-CD connection between IO controller F-CPU 1 and I-device F-CPU 2.
When you create a transfer area, a system constant with the name of the transfer area is created in the F-CPU of the IO controller and in the F-CPU of the I-device. The system constant contains the hardware identifier of the transfer area for the corresponding F-CPU.
You assign the hardware identifier (system constant from the default tag table) of the transfer areas symbolically to the LADDR input of the SENDDP and RCVDP instructions in the safety programs.
Procedure for configuration
The procedure for configuring safety-related IO controller-I-device communication is identical to that in the standard system.
Proceed as follows:
1. Insert two F-CPUS from the "Hardware catalog" task card into the project.
2. Enable the "IO Device" mode for F-CPU 2 in the properties of its PN interface and assign this PN interface to a PN interface of F-CPU 1.
3. Select the PROFINET interface of F-CPU 2. Under "Transfer areas", you create an F-CD connection (type "F-CD") for receiving from the IO controller (). The F-CD connection is shown in yellow in the table and the address areas in the I-device and IO controller assigned are displayed.
In addition, an acknowledgment connection is created automatically for each F-CD connection. (see "Transfer area details").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

295

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
4. Create an additional F-CD connection for sending to the IO controller. 5. In the transfer area you just created, click on the arrow to change the transfer direction to
sending to the IO controller ().

296

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.4.2

Safety-related IO controller-I-device communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the IO controller and an I-device makes use of the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of data of the data type BOOL or INT (DINT as alternative).
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
You can also call up the RCVDP and SENDDP instructions in separate F-FBs/F-FCs which you have to call at the start or end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

297

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.4.3

Programming safety-related IO controller I-device communication

Requirement for programming
The transfer areas must be configured.

Programming procedure
The procedure for programming safety-related IO controller-I-device communication is the same as that for programming safety-related IO controller-IO controller communication (see Program safety-related IO controller-IO controller communication (Page 281)).
The assignment of the HW identifiers (system constants in the standard tag table) of the transfer areas to the LADDR input of the SENDDP/RCVDP instructions can be obtained from the following table:

Instruction SENDDP in the IO controller RCVDP in the IO controller SENDDP in the I-device RCVDP in the I-device

HW identifier
Hardware identifier of the transfer area in the IO controller
Hardware identifier of the transfer area in the IO controller
Hardware identifier of the transfer area in the Idevice
Hardware identifier of the transfer area in the Idevice

The figure below contains an example of how to specify the F-communication IDs for the inputs of the SENDDP and RCVDP instructions for 4 safety-related IO controller-I-device communication relationships.

298

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

299

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must make sure that the value at the DP_DP_ID input is "0" during this phase.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).

300

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.4.4

Safety-related IO-Controller-IO-Device communication - Limits for data transfer

Limits for data transfer
If the amount of data to be transferred is greater than the capacity of related SENDDP/RCVDP instructions, you can use additional SENDDP/RCVDP instructions. Configure additional transfer areas for this purpose. Remember the maximum limit of 1440 bytes of input data or 1440 bytes of output data for transfer between an I-device and a IO controller.
The following table shows the amount of output and input data assigned in safety-related communication connections:

Safety-related communication
IO controllerI-Device

Communication connection

Assigned input and output data

In the IO controller

In the I-device

Output data Input data Output data Input data

Sending:
I-Device 1 to IO controller
Receiving:
I-Device 1 from IO controller

6 bytes 12 bytes

12 bytes 6 bytes

12 bytes 6 bytes

6 bytes 12 bytes

Consider all additional configured safety-related and standard communication connections (transfer areas of type F-CD and CD) for the maximum limit of 1440 bytes of input data or 1440 bytes of output data for transfer between an I-device and an IO controller. In addition, data are assigned for internal purposes such that the maximum limit may be reached sooner.

When the limit is exceeded, a corresponding error message is displayed.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

301

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.5

Safety-related master-I-slave communication

9.2.5.1

Configuring safety-related master-I-slave communication

Introduction

Safety-related communication between the safety program of the F-CPU of a DP master and the safety program(s) of the F-CPU(s) of one or more I-slaves takes place over master-Islave connections (F-MS), as in standard systems.
You do not need a DP/DP coupler for master-I-slave communication.

Configuring transfer areas
For every safety-related communication connection between two F-CPUs, you must configure transfer areas in the hardware and network editor. The figure below shows how both of the F-CPUs are able to send and receive data (bidirectional communication).

The transfer area is assigned a label when it is created to identify it as the communication relationship. For example, "F-MS_PLC_2-PLC_1_1" for the first F-MS connection between DP master F-CPU 1 and I-slave F-CPU 2.
When you create a transfer area, a system constant with the name of the transfer area is created in the F-CPU of the DP master and in the F-CPU of the I-slave. The system constant contains the hardware identifier of the transfer area for the corresponding F-CPU.
You assign the hardware identifier (system constant from the default tag table) of the transfer areas symbolically to the LADDR input of the SENDDP and RCVDP instructions in the safety programs.

302

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Procedure for configuration
The procedure for configuring safety-related master-I-slave communication is identical to that in the standard system.
Proceed as follows:
1. Insert two F-CPUS from the "Hardware catalog" task card into the project.
2. If the F-CPU which is to be operated as DP master (F-CPU 1) does not have an integrated PROFIBUS DP interface, insert an PROFIBUS-CM, for example.
3. From the device view of the F-CPUs which are to be operated as I-slaves (F-CPU 2), insert a suitable CM DP module or CP DP module.
4. If necessary, enable "DP-slave" (I-slave) mode in the properties for the CM/CP DP module.
5. Assign the DP interface of the CM/CP to a DP interface of F-CPU 1.
6. Select the PROFIBUS interface of F-CPU 2 or of the CM. Under "Transfer areas", you create an F-MS connection (type "F-MS") for sending to the DP master (). The F-MS connection is shown in yellow in the table and the assigned transfer areas in the I-slave and DP master are displayed.
In addition, an acknowledgment connection is created automatically for each F-MS connection. (see "Transfer area details").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

303

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
7. Create an additional F-MS connection for receiving from the DP master. 8. In the transfer area you just created, click the arrow in order to change the transfer
direction to receiving from DP master ().

304

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.5.2

Safety-related master-I-slave communication via SENDDP and RCVDP

Communication via SENDDP and RCVDP instructions

Safety-related communication between the F-CPUs of the DP master and an I-slave makes use of the SENDDP and RCVDP instructions for sending and receiving, respectively. These can be used to perform a fail-safe transfer of a fixed amount of fail-safe data of the data type BOOL or INT (DINT as alternative).
You can find these instructions in the "Instructions" task card under "Communication". The RCVDP instruction must be called at the start of the main safety block. The SENDDP instruction must be called at the end of the main safety block.
You can also call the RCVDP and SENDDP instructions in separate F-FBs/F-FCs which you have to call up at the beginning or end of the main safety block.
Note that the send signals are not sent until after the SENDDP instruction call at the end of execution of the relevant F-runtime group.
A detailed description of the SENDDP and RCVDP instructions can be found in SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16) (Page 631).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

305

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.5.3

Programming safety-related master-I-slave communication

Requirements
The transfer areas must be configured.

Programming procedure
The procedure for programming safety-related master-I-slave communication is the same as that for programming safety-related master-master communication (see Safety-related master-master communication (Page 285)).
The assignment of the HW identifiers of the transfer areas to the LADDR input of the SENDDP/RCVDP instructions can be obtained from the following table.

Instruction SENDDP in the DP master RCVDP in the DP master SENDDP in the I-slave RCVDP in the I-slave

HW identifier
Hardware identifier of the respective transfer area in the DP master
Hardware identifier of the respective transfer area in the DP master
Hardware identifier of the transfer area in the Islave
Hardware identifier of the transfer area in the Islave

The figure below contains an example of how to specify the F-communication IDs at the inputs of the SENDDP and RCVDP instructions for four safety-related master-I-slave communication relationships.

306

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

307

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must make sure that the value at the DP_DP_ID input is "0" during this phase.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
Information on calculating the monitoring times can be found in Monitoring and response times (Page 649).

9.2.5.4

Limits for data transfer of safety-related master-I-slave communication

Limits for data transfer
If the amount of data to be transferred is greater than the capacity of related SENDDP/RCVDP instructions, you can use additional SENDDP/RCVDP instructions. Configure additional transfer areas for this purpose. Note the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-slave and a DP master.
The following table shows the amount of output and input data assigned in safety-related communication connections:

Safety-related communication

Communication connection

Assigned input and output data

DP master

I-slave

Master-I-slave

Sending:
I-slave 1 to DP master
Receiving:
I-slave 1 from DP master

Output data 6 bytes
12 bytes

Input data 12 bytes

Output data 12 bytes

Input data 6 bytes

6 bytes

6 bytes

12 bytes

Consider all additional configured safety-related and standard communication connections (transfer areas of type F-MS-, F-DX-, F-DX-Mod., MS-, DX- and DX-Mod) for the maximum limit of 244 bytes of input data or 244 bytes of output data for transfer between an I-device and a DP master F-MS and MS). If the maximum limit of 244 bytes of input data or 244 bytes of output data is exceeded, you will receive a corresponding error message.

308

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.6

Safety-related IO controller-I-slave communication

9.2.6.1

Safety-related IO controller-I-slave communication

Introduction

Safety-related communication between the safety program of the F-CPU of an IO-controller and the safety program(s) of the F-CPU(s) of one or more I-slaves takes place over master-Islave connections (F-MS), as in standard systems.

IE/PB link

For the safety-related IO-controller-I-slave communication, the IE/PB link is mandatory. Each of the two F-CPUs is linked to the IE/PB link by means of its PROFIBUS DP or PROFINETinterface.
Note
If you are using an IE/PB link, you must take this into account when configuring the Fspecific monitoring times and when calculating the maximum response time of your Fsystem (see also Monitoring and response times (Page 649)).
Note that the Excel file for calculating response times (http://support.automation.siemens.com/WW/view/en/49368678/133100) for S7-300/400 FCPUs does not support all conceivable configurations.

Reference

The information on safety-related master-I-slave communication in Safety-related master-Islave communication (Page 302) also applies.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

309

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)

9.2.7

Safety-related communication to S7 F-System S7 Distributed Safety

9.2.7.1

Introduction
Safety-related communication from F-CPUs in SIMATIC Safety to F-CPUs in S7 Distributed Safety F-systems is possible, via a PN/PN coupler or DP/DP coupler that you use between the two F-CPUs, as IO controller-IO controller communication or master-master communication.

9.2.7.2

Communication with S7 Distributed Safety via PN/PN coupler (IO controller-IO controller communication)
Communication functions between SENDDP/RCVDP instructions at the STEP 7 Safety end and F-application blocks F_SENDDP/F_RCVDP at the S7 Distributed Safety end:

Procedure at the S7 Distributed Safety end
At the S7 Distributed Safety end, proceed as described in "Safety-related IO controller-IO controller communication" in the S7 Distributed Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/22099875) manual.
Procedure at the STEP 7 Safety end
At the STEP 7 Safety end, proceed as described in Safety-related IO controller-IO controller communication (Page 276).

310

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

9.2.7.3

Safety-related communication 9.2 Configuring and programming communication (S7-1200, S7-1500)
Communication with S7 Distributed Safety via DP/DP coupler (master-master communication)
Communication functions between SENDDP/RCVDP instructions at the STEP 7 Safety end and F-application blocks F_SENDDP/F_RCVDP at the S7 Distributed Safety end:

Procedure at the S7 Distributed Safety end
At the S7 Distributed Safety end, proceed as described in "Safety-related master-master communication" in the S7 Distributed Safety - Configuring and Programming (http://support.automation.siemens.com/WW/view/en/22099875) manual.
Procedure at the STEP 7 Safety end
At the STEP 7 Safety end, proceed as described in Safety-related master-master communication (Page 285).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

311

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)

9.3

Configuring and programming communication with Flexible F-Link

(S7-1200, S7-1500)

9.3.1

Flexible F-Link

Introduction

As of STEP 7 Safety V15.1 a new fail-safe CPU-CPU communication "Flexible F-Link" is available for the F-CPUs S7-1200 and S7-1500. This means fail-safe data can be easily exchanged as fail-safe arrays with standard communication mechanisms between F-CPUs.
Flexible F-Link offers a series of advantages for exchanging fail-safe data:
 Collection of fail-safe data to be transmitted in F-compliant PLC data types (UDTs)
 Up to 100 bytes of fail-safe data per UDT
 Support of fail-safe data types
 Easy parameter assignment and automatic generation of fail-safe communication DBs
 Transmission of fail-safe data with standard communication blocks also across network limits
 F-runtime group communication (Page 98) for F-CPUs 1200/1500
 System-integrated and globally sufficiently unique F-communication UUID
 Separate F-communication address signature for easy detection of changes to the Fcommunication UUID

Requirement

 S7-1500 F-CPUs as of firmware V2.0  S7-1200 F-CPUs as of firmware V4.2  As of safety system version V2.2

312

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)
Principles of communication via Flexible F-Link

Proceed as follows on the send side:
1. Create an F-compliant PLC data type (UDT) for the data to be sent. The size is up to 100 bytes.
2. Create an F-communication with direction "Sending" in the Safety Administration Editor.
A new F-communication DB is created for the F-communication under "Program blocks\system blocks\STEP 7 Safety\F-communication DBs".
3. Set the F-monitoring time (Page 655) for the F-communication.
4. In the safety program, interconnect the tag for the send data (SEND_DATA) at the Fcommunication DB (Page 98) of the F-communication.
5. To transmit the coded, fail-safe arrays, create suitable communication blocks for sending and receiving (acknowledgment) in the standard program. For processing the process values in the correct chronological order, you can make use of the F-OB Pre-/postprocessing (Page 86). Note when using standard communication blocks that the fail-safe arrays are available consistently at the time of evaluation and that the F-monitoring time (Page 655) is observed. Observe the note below.
Proceed as follows on the receive side:
1. Create an F-compliant PLC data type (UDT) with the same structure as on the send side.
To do so, copy the F-compliant PLC data type (UDT) from the send side or use the project library or global library.
2. Create an F-communication with the direction "Receiving" in the Safety Administration Editor.
A new F-communication DB is created for the F-communication under "Program blocks\System blocks\STEP 7 Safety\F-communication DBs".
3. Copy the F-communication UUID of the F-communication from the send side.
4. Set the same F-monitoring time as for the send side.
5. In the safety program, interconnect the tags for the receive data (RCV_DATA) at the Fcommunication DB (Page 98).
6. To transmit the coded, fail-safe arrays, create suitable communication blocks for sending and receiving (acknowledgment) in the standard program. For processing the process

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

313

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)
values in the correct chronological order, you can make use of the F-OB Pre-/postprocessing (Page 98). Note when using standard communication blocks that the fail-safe arrays are available consistently at the time of evaluation and that the F-monitoring time (Page 655) is observed. Observe the note below.
7. In the safety program, interconnect the tags for the receive data (RCV_DATA) at the Fcommunication DB (Page 98) of the F-communication.
Note
When using non-deterministic communication protocols (e.g. TCP/IP), you must take into account the following: · Increased communication load can fundamentally impair the availability of your
application (runtime of the F-monitoring time of the F-communication connection). This holds true especially when OPC UA and Secure Open User Communication (OUC) are used in parallel. · Communication buffer overflows can adversely affect the availability of your application and should be avoided. Refer to the following application example for further helpful information: "Configuring Flexible F-Link Communication (https://support.industry.siemens.com/cs/ww/en/view/109768964)".
Note
During simulation with PLCSIM, the timer that generates an error message after expiration when communication with real I/Os is interrupted (e.g. by setting a CPU to STOP) is not triggered. This is why no error message is displayed in this case. It is displayed as soon as the connection has been restored. Following user acknowledgment, the current values are once again sent and received.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
WARNING
You must take the following into account for safety-related CPU-CPU communication with the communication type Flexible F-Link: If the data is sent from an F-CPU that is simulated with S7-PLCSIM, you can no longer assume that this data is generated safely. You must then implement organizational measures such as operation monitoring and manual safety shutdown to ensure safety in those parts of the system that are affected by the sent data. Alternatively, you must output fail-safe substitute values instead of the received data in the F-CPU that receives the data by evaluating SENDMODE*.
* SENDMODE is available to you as a tag in the F-communication DB.
(S086)

314

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)
WARNING
When a new Flexible F-Link communication is created in the Safety Administration Editor, a unique F-communication UUID for the communication is provided by the system. By copying communications in the Safety Administration Editor within the parameterization table or when copying to another F-CPU, the F-communication UUIDs are not regenerated and are therefore not unique anymore. If the copy is used to configure a new communication relationship, you yourself must ensure the uniqueness. To do this select the affected UUIDs and regenerate via the "Generate UUID" context menu. The uniqueness must be checked in the safety summary during acceptance. (S087)
WARNING
During acceptance, use the safety summary to verify that the offsets of all elements of the F-compliant PLC data types (UDT) match for the send and receive data within the safety message frame. For this purpose, all members and addresses are listed in the safety summary per UDT. (S088)

See also

F-runtime group communication (S7-1200, S7-1500) (Page 154)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

315

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)

9.3.2

Interfaces of the F-communication DBs (S7-1200, S7-1500)

Interface of the F-communication DB for sending
The following table shows you the interface of the F-communication DB for the communication connection with the direction "Send":

Section Input Output
InOut Static

Name SEND_DATA ACK_RCV_ARRAY ERROR
ACTIVATE_FV
DIAG
SEND_ARRAY ACK_RCV_LENGTH SEND_LENGTH -- --

Data type F-compliant PLC data type (UDT) Array[0..n] of Byte BOOL
BOOL
Byte
Array[0..n] of Byte UInt UInt -- --

Initial value As in the F-compliant PLC data type (UDT). Each element with 16#0 False
True
16#0
Each element with 16#0 0 0 -- --

Description
User data to be sent:
Array with the received raw data.
Signals currently pending communication errors or communication errors not acknowledged yet at the receiver (not in the initial start). 1=Communication error Communication passivated, in the initial start (for example receiver not started), or HOST sends ACTIVATE_FV. DEVICE sends status bit: FV_ACTVATED, but no 0-values. 1=The communication uses failsafe values Error bits (Timeout or CRC error currently still pending, or communication after error not depassivated yet) Bit 3: Acknowledgement request active at the receiver Bit 4: Timeout detected Bit 6: CRC error detected Array with the received raw data
Length information to ACK_RCV_ARRAY in bytes Length information to SEND_ARRAY in bytes -- --

316

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)

Interface of the F-communication DB for receiving
The following table shows you the interface of the F-communication DB for the communication connection with the direction "Receive":

Section Input

Name PASS_ON

ACK_REI

Output

RCV_ARRAY RCV_DATA ERROR

PASS_OUT

ACK_REQ

SENDMODE

Data type BOOL BOOL
Array[0..n] of Byte F-compliant PLC data type (UDT) BOOL
BOOL
BOOL
BOOL

Initial value False
False
Each element with 16#0 As in the F-compliant PLC data type (UDT). False
True
False
False

Description
This way you can passivate the output data (output of the passivation values)
1=Enable passivation
Reintegration (in case of reintegration request) by means of positive edge
1=Acknowledgment for reintegration
Array with the received raw data
Output data (PASS_VALUES or data received).
Signals currently pending communication errors or communication errors not acknowledged yet (not in the initial start).
1=Communication error
At PASS_OUT=1 the PASS_VALUES are output
Could be: ERROR, PASS_ON, in the initial start (e.g. sender not started), or ACK_REQ is pending (error not acknowledged)
Reintegration requirement (communication stable again after error, substitute values are still output)
1=Acknowledgment request for reintegration
MOD_MODE is active or communication with PLCSIM Advanced on the sending F-CPU
1=F-CPU with a sender in the deactivated safety operation or on a simulated CPU

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

317

Safety-related communication 9.3 Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500)

Section
InOut Static

Name DIAG

Data type Byte

Initial value 16#0

ACK_SEND_ARRAY Array[0..n] of Byte

RCV_LENGTH

UInt

Each element with 16#0
0

ACK_SEND_LENGTH UInt

0

-- PASS_VALUES

--
F-compliant PLC data type (UDT)

--
Same as the Fcompliant PLC data type (UDT) or in the I/O DB

Description
Error bits (Timeout or CRC error)
Bit 0: Timeout detected by the sender
Bit 1: Communication error currently pending in the sender
Bit 2: CRC error detected by the sender
Bit 4: Timeout detected by the receiver
Bit 6: CRC error detected by the receiver
Array with the raw data to be sent.
Length information of RCV_ARRAY in bytes
Length information of ACK_SEND_ARRAY in bytes
--
Passivation or substitute values

318

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Safety-related communication 9.4 Configuring and programming communication between S7-300/400 and S7-1200/1500 F-CPUs

9.4

Configuring and programming communication between S7-300/400

and S7-1200/1500 F-CPUs

9.4.1

Overview of communication

Introduction

This section provides an overview of the options for safety-related communication between S7-300/400 and S7-1200/1500 F-CPUs in SIMATIC Safety F-systems.

Options for safety-related communication

Safety-related communication

On subnet

Safety-related CPU-CPU communication:

Master-master communication

PROFIBUS DP

Master-I-slave communication

PROFIBUS DP

IO controller-IO controller communica- PROFINET IO tion

IO controller-I-device communication PROFINET IO

IO controller-I-slave communication

PROFINET IO and PROFIBUS DP

Additional hardware required
DP/DP coupler -- PN/PN coupler
-- IE/PB link

Basic procedure for configuring and programming
Configure and program safety-related communication between S7-300/400 F-CPUs and S71200/1500 F-CPUs as described in Configuring and programming communication (S7-300, S7-400) (Page 209) and Configuring and programming communication (S7-1200, S7-1500) (Page 273) for your application.
To program an S7-300/400 F-CPU, use the start addresses of the transfer areas. To program an S7-1200/1500 F-CPU, use the HW identifiers of the transfer areas.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

319

Safety-related communication 9.5 Configuring and programming communication in several projects

9.5

Configuring and programming communication in several projects

9.5.1

Safety-oriented IO Controller I device communication in several projects

9.5.1.1

Configuring safety-related communication between IO controller and I-device

Introduction

Safety-related communication between the safety program of the F-CPU of an IO controller and the safety program(s) of the F-CPU(s) of one or more I-devices takes place via IO controller-I-device connections (F-CD) in PROFINET IO, in the same way as in standard systems.
The following section describes particular aspects when the IO Controller and the I-device are located in different projects.

Requirement

 The IO Controller is an S7-1200/1500 F-CPU that supports the IO Controller functionality.
 The I-device is an S7-300/400/1200/1500 F-CPU that supports the I-device functionality.
 The project in which the I-device is located, must have been created with S7 Distributed Safety V5.4, STEP 7 Safety V13 or later.

320

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Configuring

Safety-related communication 9.5 Configuring and programming communication in several projects
1. Configure the safety-related communication in the project with the I-device as described under "Configuring safety-related communication between IO controller and I-device (Page 232)" (S7-300/S7-400) or "Configuring safety-related communication between IO controller and I-device (Page 294)" (S7-1200/S7-1500) respectively. In this case the FCPU 1 (IO Controller) is only a placeholder for the F-CPU in the project of the IO Controller.
Note When creating with STEP 7 Safety < V14 SP1 avoid a subsequent change from the transfer areas from CD to F-CD. When creating with S7 Distributed Safety V5.4 create the application transfer areas of the address type "Output" and "Input" directly after each other.
2. Export the I-device as a GSD file. Proceed as described in the STEP 7 help under "Configuring an I-device".
3. Import the GSD file in the project with the IO Controller. Proceed as described in the STEP 7 help under "Installing a GSD file".
4. Insert the I-device from the "Hardware catalog" task card into the project with the IO Controller.
5. Assign the F-CPU of the IO Controller to the I-device.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

321

Safety-related communication 9.5 Configuring and programming communication in several projects

9.5.1.2

Programming safety-related IO Controller I-device communication

Programming procedure
To program the safety-related communication between the IO controller and I-device for an F-CPU S7-300/400, analogously follow the procedure described under "Safety-related IO controller-I-device communication via SENDDP and RCVDP (Page 235)" and "Programming safety-related IO controller I-device communication (Page 236)". To program an S7-300/400 F-CPU, use the start addresses of the transfer areas.
To program the safety-related communication between the IO controller and I-device for an F-CPU S7-1200/1500, analogously follow the procedure described under "Safety-related IO controller-I-device communication via SENDDP and RCVDP (Page 297)" and "Programming safety-related IO controller I-device communication (Page 298)". To program an S71200/1500 F-CPU, use the HW identifiers of the transfer areas.

322

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program

10

10.1

Compiling the safety program
To compile a safety program, follow the same basic procedure as for compiling a standard user program. You can start at various points to accomplish this in STEP 7. The basics for compiling user programs can be found in the Help on STEP 7.
Note Please note that following a safety-related change to the hardware configuration that not only this, but also the safety program has to be recompiled and downloaded. This also applies for changes to the F-I/O which are not used in the safety program.
Note The safety program is not compiled consistently with the menu command "Edit > Compile" or the "Compile" icon under the following conditions: · When you select a user-created folder in the project tree. · When you select one or more (F-)blocks in the "Program blocks" folder in the project tree. Use this procedure to test if modified F-blocks can be compiled.
Note The following applies for S7-300/400 F-CPUs: If you want to compile a know-how-protected F-block after a change, you must remove the know-how protection for this F-block before compiling.

Reporting compiling errors
You can recognize whether or not the compilation was successful based on the message in the inspector window under "Info > Compile", error messages and warnings are output.
For information on the procedure you must follow to eliminate compiling errors, see "Eliminating compiling errors" in the Help on STEP 7.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

323

Compiling and commissioning a safety program 10.2 Safety program work memory requirements (S7-300, S7-400)

10.2

Safety program work memory requirements (S7-300, S7-400)

Estimation

You can estimate the work memory requirement for the safety program as follows:
Work memory required for the safety program
32 KB for F-system blocks + 4.4 KB for safety-related communication between F-runtime groups + 4.5 x work memory requirement for all F-FB/F-FCs/main safety blocks + 4.5 x work memory requirement of all utilized instructions, which are shown in the "In-
structions" task card with the block icon. (except SENDDP, RCVDP, SENDS7, and RCVS7) + Work memory requirement of the utilized SENDDP and RCVDP instructions (4.3 KB each) + Work memory requirement of the utilized SENDS7 and RCVS7 instructions (8.5 KB each)
Work memory required for data
5 x work memory requirement for all F-DBs (including F-communication DB, but excluding DB for F-runtime group communication) and I-DBs for main safety block/F-FB + 24 x work memory requirement for all DBs for F-runtime group communication + 2.3 x work memory requirement for all I-DBs of instructions (except SENDDP, RCVDP,
SENDS7 and RCVS7) + Work memory requirement of all I-DBs of instructions SENDDP (0.2 KB), RCVDP(0.3
KB), SENDS7 (0.6 KB), and RCVS7 (1.0 KB) + 0.7 KB per F-FC + 0.7 KB per F-I/O (for F-I/O DBs, etc.) + 4.5 KB

Block size of automatically generated F-blocks
Do not utilize the entire maximum size of an F-block, because the automatically generated Fblocks are larger and as a result, the maximum possible size may be exceeded in the FCPU. If the block size is exceeded, this triggers a corresponding error message with information on which F-blocks are too large. These must be divided up, if necessary.

324

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3

Downloading project data

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.1

Downloading project data to an F-CPU

Introduction

Once you have successfully compiled your safety program, you can download it together with the standard application program to the F-CPU. To download a safety program, you follow essentially the same approach as for downloading a standard user program, via different starting points in STEP 7.
 In the "Load preview" dialog, enter data (e.g. password for the F-CPU) and set the requirements for downloading (e.g. that the F-CPU is switched to STOP mode before downloading).
 The "Load results" dialog shows the results after downloading.
We will show you the options for downloading the safety program later. For basic information on downloading, refer to the Help on STEP 7.

Rules for downloading the safety program to an F-CPU
WARNING
If multiple F-CPUs can be reached over a network (e.g. Industrial Ethernet) by the same programming device or PC, you must take the following actions to ensure that the project data is downloaded to the correct F-CPU: Use passwords specific to each F-CPU, such as a uniform password for the F-CPUs with attached Ethernet address for each. Note the following: · A point-to-point connection must be used to activate the access protection of an F-CPU
when the hardware configuration is loaded for the first time (similar to assigning an MPI address to an F-CPU for the first time). · Before downloading the safety program to an F-CPU, you must first revoke an existing access permission for any other F-CPU. · The last download of the safety program prior to switching to productive operation must be made with enabled access protection. (S021)
Note You can perform the downloading of a consistent safety program only in STOP mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

325

Compiling and commissioning a safety program 10.3 Downloading project data
Note If STEP 7 Safety detects an inconsistent safety program during startup of the F-CPU, the F-CPU cannot be started, provided the F-CPU supports this detection function (see product information for the particular S7-300/400 F-CPU). This is always supported with S71200/1500 F-CPUs). A corresponding diagnostics event is entered in the diagnostics buffer of the F-CPU. If the F-CPU does not support this detection function, the F-CPU can go to STOP mode if an inconsistent safety program is executed in activated safety mode. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
When downloading the safety program, ensure that the "Consistent download" action is set for the "Safety program" selection in the "Load preview" dialog. Inconsistent downloading is only possible in disabled safety mode.
Password prompt before downloading to an F-CPU
If you have assigned a protection level for the F-CPU (Page 109) (in the properties of the F-CPU in the "Protection" tab), the corresponding password is prompted in "Load preview" dialog. Without entry of password, only actions that are allowed without password are possible. As soon as the conditions for downloading are met, the "Load" button becomes active.

326

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data
"Load preview" dialog
For an F-CPU, the "Load preview" dialog also contains the section "Safety program".

Make the following selection:
 In order to download a consistent safety program, select the "Consistent download" action under target "Safety program".
 (S7-300, S7-400) To download individual F-blocks selectively (Page 331), select the "Download selection" action under the target "Safety program", and then select the required F-blocks. If necessary, you will be prompted to disable safety mode under "Disable safety mode". This setting is only suitable for the online test of individual Fblocks.
 (S7-300, S7-400) In order to download the safety program only, select the "Consistent download" action under target "Safety program" and the "Download selection" action under target" Standard software", and then select only the standard blocks that call the main safety block.
 (S7-300, S7-400) To download no safety program, for example, because you do not know the password of the F-CPU, select the "No action" action under target "Safety program".
For S7-1200/1500 F-CPUs, only the "Consistent download" value is possible as an action in the "Load preview" dialog. It is not possible to select separate loading of standard program or safety program. The complete user program is automatically consistently downloaded as soon as changes have been made in both the standard program and in the safety program.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

327

Compiling and commissioning a safety program 10.3 Downloading project data
"Load results" Dialog
After downloading into the F-CPU, the dialog "Load results" is opened. This dialog shows you the status and the necessary actions after downloading.

Verify that the "Downloading of safety program completed without errors." message appears in the "Load results" dialog. If not, repeat the download operation.

328

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.1.1

Compiling and commissioning a safety program 10.3 Downloading project data
Downloading project data to an S7-300/400 F-CPU with memory card inserted (SIMATIC Micro memory card or flash card)
When you download project data to an S7-300/400 F-CPU with memory card inserted (SIMATIC Micro memory card for S7-300 or flash card for S7-400), you must observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Download the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). · Perform a memory reset of the F-CPU using the mode switch or via the programming
device/PC. Once the work memory has been deleted, the safety program is again transferred from the load memory (memory card, SIMATIC Micro memory card for S7300 F-CPUs, flash card for S7-400 F-CPUs) to the work memory. (S022)

10.3.1.2

Downloading project data to an S7-400 F-CPU without flash card inserted
When you download project data to an S7-400 F-CPU without flash card inserted, you must observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Perform a memory reset of the F-CPU using the mode switch or via the programming
device/PC. · Download the hardware configuration and the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). (S023)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

329

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.1.3

Downloading project data to a WinAC RTX F
When you download project data to a WinAC RTX F, you must observe the following warning:
WARNING
You must adhere to the following procedure when downloading the safety program to the WinAC RTX F with a programming device/PC to ensure that the WinAC RTX F does not contain an "old" safety program: 1. Perform a memory reset of the WinAC RTX F (see Windows Automation Center RTX
WinAC RTX (F) 2010 (http://support.automation.siemens.com/WW/view/en/43715176) manual). 2. Download the project data (Page 325) to the WinAC RTX F. If the function test of the safety program is not carried out in the destination WinAC RTX F, you must also follow points 3. and 4: 3. Perform a program identification. This means you check whether the collective F-signatures match online and offline. 4. Perform the F-system startup.
Between the online program identification and the startup of the F-system, the WinAC RTX F must not be closed (for example, as a result of POWER OFF/POWER ON or booting). (S024)

330

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.1.4

Downloading individual F-blocks to an S7-300/400 F-CPU

Download F-blocks in disabled safety mode.
You can download F-blocks and standard blocks simultaneously to the F-CPU via the project tree. However, as soon as F-blocks are to be downloaded, a check is carried out to determine whether or not the F-CPU is in STOP mode or disabled safety mode. If not, you have the option of switching to disabled safety mode or placing the F-CPU in STOP mode.
If you want to download individual F-blocks to the F-CPU, for example, to test changes, make sure that you have not selected the folder "Program blocks" or the F-CPU in the project tree but only the blocks you want to download.
Only then will you be prompted in the "Load preview" dialog to disable safety mode once you have changed the option from "Consistent download" to "Download selection" and have changed the option "Stop modules" to "No action".
If you fail to observe this prompt, the blocks are downloaded without deactivation of the safety mode which will STOP the F-CPU.
You can also deactivate the safety mode explicitly in the Safety Administration Editor before you start the download.
Be aware that the consistency of the safety program in the F-CPU cannot be guaranteed when individual F-blocks are downloaded. For a consistent safety program, always download the entire safety program to the F-CPU.

Rules for downloading individual F-blocks
The following rules apply to downloading of individual F-blocks:  Downloading is only possible in disabled safety mode or when the F-CPU is in STOP
mode.  F-blocks can only be downloaded to an F-CPU to which a safety program has already
been downloaded. Consequently, you have to download the entire safety program when initially downloading the safety program and after changing the password for the safety program.
Note If you are downloading F-blocks only, the blocks in which the main safety blocks are called (e.g., cyclic interrupt OB 35) are not downloaded. To do so, select the "Selection" option under "Standard software" in the preview dialog, and select the necessary blocks.
Note Downloading of individual F-blocks is only suitable for testing F-blocks. Prior to the transition to productive mode, you must download the safety program consistently to the F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

331

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.1.5

Downloading project data to an S7-1200 F-CPU without program card inserted
When you download project data to an S7-1200 F-CPU without program card inserted, you must observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Download the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). (S042)

332

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.1.6

Compiling and commissioning a safety program 10.3 Downloading project data
Downloading project data to an S7-1200 F-CPU with program card inserted
When you download project data to an S7-1200 F-CPU with program card inserted, you must observe the following warning:
WARNING
You must observe the following procedure to ensure that there is no "old" safety program in the internal load memory of the F-CPU when you insert a program card into an S7-1200 FCPU: 1. Check to see whether the STOP/RUN LED (orange) and the maintenance LED flash
during startup for 3 seconds on an F-CPU without memory card. If this is the case, the internal load memory of the F-CPU has already been deleted (for example, when the F-CPU has already been operated with a program card as external load memory) and you can skip step 3. 2. Insert the program card into the F-CPU. If the F-CPU is in RUN, it will change to STOP. The maintenance LED on the F-CPU is flashing to indicate that the program card is being evaluated or that the internal load memory must be deleted. 3. Use one of the following methods to delete the internal load memory: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. After restart and deletion of the internal load memory, the STOP/RUN LED (orange) and the maintenance LED must be flashing. The internal load memory of the F-CPU has been deleted in this case and does no longer store an "old" safety program. 4. Use one of the following methods to evaluate the program card: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. The F-CPU restarts and evaluates the program card. The F-CPU then enters the startup mode (RUN or STOP) that has been set up for the FCPU. (S061)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

333

Compiling and commissioning a safety program 10.3 Downloading project data

For an S7-1200 F-CPU without inserted SIMATIC Memory Card and deleted internal load memory, the status LEDs have the status described in the table below.

Description
Internal load memory deleted and SIMATIC Memory Card not inserted.

STOP/RUN Orange/Green
Flashing (orange)
(for 3 seconds during startup)

ERROR Red Off

MAINT Orange
Flashing (for 3 seconds during startup)

WARNING
If you use a programming device/PC to download F-blocks to an S7-1200 F-CPU with inserted program card (external load memory), you must ensure that the transfer takes place to the external load memory. This can be accomplished by the following measures: · Check to see if the program card is inserted correctly. · Insert a program card whose memory size is different from the size of the internal load
memory. Check in the project tree under "Online & Diagnostics > Diagnostics > Memory" if the memory size displayed for the load memory matches the memory size of the program card. (S058)
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Download the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). (S042)

334

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.1.7

Compiling and commissioning a safety program 10.3 Downloading project data
Downloading project data to an S7-1500 F-CPU
When you download project data to an S7-1500 F-CPU, you must observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Download the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). (S042)

10.3.1.8

Downloading project data to an S7-1500 F Software Controller
When you download project data to an S7-1500 F Software Controller, you must observe the following warnings:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when downloading the safety program to the F-CPU with a programming device/PC to ensure that the F-CPU does not contain an "old" safety program: · Download the safety program to the F-CPU. · Perform a program identification (i.e. check whether the collective F-signatures match
online and offline). (S042)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

335

Compiling and commissioning a safety program 10.3 Downloading project data
WARNING
For safety reasons, the password of an S7-1500 F Software Controller is also stored in a separate memory in addition to the load memory.
Unlike the load memory, this separate memory is not deleted. This means the previous passwords are once again active after deleting the S7-1500 F Software Controller followed by a start-up.
For this reason, note the following: · The S7-1500 F Software Controller is deleted in case of the following download
scenarios of the PC station: ­ Downloading a PC station with revised interface assignment. ­ Downloading a PC station with revised storage location for retentive data. · We recommend that you do not set up F-access protection until after commissioning. If you still have to change the interface assignment of the PC station or the storage location for retentive data, you do not have to enter the F-password during the subsequent mandatory download of the S7-1500 F Software Controller. · We recommend that you remove the F-access protection from an S7-1500 F Software Controller that is no longer in use. If you forget the F-password when you want to operate the S7-1500 F Software Controller later, you can remove it by uninstalling/installing or loading a new image. (S076)

See also

Downloading project data to an F-CPU (Page 325) Software Controller (http://support.automation.siemens.com/WW/view/en/109249299)

336

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.2

Compiling and commissioning a safety program 10.3 Downloading project data
Downloading project data to a memory card and inserting a memory card
Proceed as you would with standard blocks to download project data from an F-CPU to a memory card (flash card for S7-400, SIMATIC Micro Memory Card for S7-300 or SIMATIC Memory Card for S7-1200/1500). You must also observe the following warning:
WARNING
If the function test of the project data is not performed in the destination F-CPU, you must ensure that the correct project data is on the memory card after downloading the project data to the memory card. Follow these steps: 1. Make sure that you are using an empty memory card. 2. Download the project data to the memory card. 3. Clearly label the memory card with a unique name (e.g. with the collective F-signature). The procedure outlined must be ensured through organizational measures. (S043)
When inserting a memory card (flash card for S7-400, SIMATIC Micro Memory Card for S7300 or SIMATIC Memory Card for S7-1200/1500) with project data from an F-CPU, you observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must ensure through online program identification or other suitable measures (e.g. by checking the labeling of the memory card) that the memory card inserted has the correct safety program. (S025)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

337

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.2.1

Inserting a SIMATIC Micro Memory Card or flash card into an S7-300/400 F-CPU
When you insert a memory card (flash card for S7-400 or SIMATIC Micro memory card for S7-300) into an S7-300/400 F-CPU , you must observe the following warning:
WARNING
If the function test of the safety program is not carried out in the destination F-CPU, you must adhere to the following procedure when inserting the memory card to ensure that the F-CPU does not contain an "old" safety program: · Switch off the power to the F-CPU. For F-CPUs with battery backup (e.g. CPU 416F-2),
remove any battery. (To ensure that the F-CPU is de-energized, wait for the buffer time of the power supply you are using or, if this is not known, remove the F-CPU.) · Remove the memory card with the old safety program from the F-CPU. · Insert the memory card with the new safety program into the F-CPU. · Switch on the F-CPU again. For F-CPUs with battery backup (e.g. CPU 416F-2), reinsert the battery, if one was removed.
(S026)

338

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.2.2

Compiling and commissioning a safety program 10.3 Downloading project data
Inserting a transfer card into an S7-1200 F-CPU
When you insert a transfer card into an S7-1200 F-CPU, you must observe the following warning:
WARNING
You must observe the following procedure to ensure that there is no "old" safety program in the internal load memory when you copy the project data to an S7-1200 F-CPU using a transfer card: 1. Check to see whether the STOP/RUN LED (orange) and the maintenance LED flash
during startup for 3 seconds on an F-CPU without memory card. If this is the case, the internal load memory of the F-CPU has already been deleted and you can skip step 3. 2. Insert the transfer card into the F-CPU. If the F-CPU is in RUN, it will change to STOP. The maintenance LED on the F-CPU is flashing to indicate that the transfer card is being evaluated or that the internal load memory must be deleted. 3. Use one of the following methods to delete the internal load memory: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. After restart and deletion of the internal load memory, the STOP/RUN LED (orange) and the maintenance LED must be flashing. The internal load memory of the F-CPU has been deleted in this case and does no longer store an "old" safety program. 4. Use one of the following methods to evaluate the transfer card (transfer from the transfer card to the internal load memory): ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. After restart and evaluation of the SIMATIC Memory Card, the F-CPU copies the project data to the internal load memory of the F-CPU. Once the copy process is complete, the maintenance LED on the F-CPU is flashing to indicate that you can remove the transfer card. 5. Remove the transfer card from the F-CPU. 6. Use one of the following methods to evaluate the internal load memory: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. The F-CPU then enters the startup mode (RUN or STOP) that has been set up for the FCPU. (S059)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

339

Compiling and commissioning a safety program 10.3 Downloading project data

For an S7-1200 F-CPU without inserted SIMATIC Memory Card and deleted internal load memory, the status LEDs have the status described in the table below.

Description
Internal load memory deleted and SIMATIC Memory Card not inserted.

STOP/RUN Orange/Green
Flashing (orange)
(for 3 seconds during startup)

ERROR Red Off

MAINT Orange
Flashing (for 3 seconds during startup)

340

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.3

Compiling and commissioning a safety program 10.3 Downloading project data
Downloading project data of an S7-1200 F-CPU from the internal load memory to an empty SIMATIC Memory Card
When you download project data from the internal load memory of an S7-1200 F-CPU to an empty SIMATIC Memory Card, you must observe the following warning:
WARNING
To ensure that the safety program is downloaded from the internal load memory of the FCPU to the SIMATIC Memory Card when plugging an empty SIMATIC Memory Card into an S7-1200 F-CPU and that the internal load memory of the F-CPU is deleted afterward, you must observe the following procedure: 1. Make sure that you are using an empty SIMATIC Memory Card, for example, by
checking in the Windows Explorer that the "SIMATIC.S7S" folder and the "S7_JOB.S7S" file are deleted. 2. Insert the empty SIMATIC Memory Card into the F-CPU. If the F-CPU is in RUN, it will change to STOP. The maintenance LED on the F-CPU is flashing to indicate that the program can be copied from the internal load memory to the SIMATIC Memory Card and that the internal load memory is deleted afterward. 3. Use one of these methods to trigger copying from the internal load memory to the SIMATIC Memory Card and subsequent deletion of the internal load memory: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. After restart and copying of the program from the internal load memory to the SIMATIC Memory Card and subsequent deletion of the internal load memory, the STOP/RUN LED (orange) and the maintenance LED must be flashing. The internal load memory of the F-CPU has been deleted in this case and does no longer store the safety program. The SIMATIC Memory Card is now a program card. 4. Use one of the following methods to evaluate the program card: ­ Turn the F-CPU off and back on. ­ Switch the F-CPU from STOP to RUN. ­ Execute the "Memory reset" (MRES) function. The F-CPU restarts and evaluates the program card. The F-CPU then enters the startup mode (RUN or STOP) that has been set up for the FCPU. (S057)
Note
Also observe the setting "Disable copying from internal load memory to external load memory" in the hardware configuration of your F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

341

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.4

Updating project data on an S7-1200 F-CPU using a transfer card
When you want to update the project data on an S7-1200 F-CPU using a transfer card, you must observe the following warning:
WARNING
If you run an update of the safety program on an S7-1200 F-CPU with the help of a transfer card, you must ensure that the transfer to the internal load memory took place correctly by means of a subsequent program identification. (S060)

10.3.5

Restoring a backup of the safety program to an S7-300/1200/1500 F-CPU
You have the option of backing up an F-CPU in the same way as a standard CPU and then restoring it. You can find information on backing up a CPU in the help on STEP 7 under "Creating a backup of an S7-CPU". Note the following warnings when restoring the software and hardware configuration of an FCPU:
WARNING
Once you have restored a backup of an F-CPU, you must perform a program identification. (S055)
Note We recommend that you use the collective F-signature that is included in the name of the backup file for program identification. You must not change the collective F-signature in the name in this case.
WARNING
(S7-1200/1500) If multiple F-CPUs with an activated Web server can be reached by the same programming device or PC, you must take additional actions to ensure that the safety program is restored to the correct F-CPU. Use CPU-specific passwords for the "F-Admin" right on the Web server. For example, select a uniform password with attached IP address (e.g. Password_192.168.0.8) for each F-CPU. (S065)

342

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.6

Special features when creating and importing images of an S7-1500 F Software Controller

Creating an image
WARNING
You must comply with the following points when creating an image with a safety program: · You must limit access to an S7-1500 F Software Controller through access protection to
persons who are authorized to create images. · Before creating the image, you must use program identification to ensure that the
correct safety program is installed on the S7-1500 F Software Controller. · Images with safety programs must be created on an empty data storage medium
(deleted or formatted) or an existing image must be explicitly deleted. · After creating the image, remove the data storage medium containing the image. · Clearly label the data storage medium (e.g. with the collective F-signature). (S073)
NOTICE
If the safety program in the image and the old safety program on the S7-1500 F Software Controller are not identical, the imported safety program would not start. In this case, you must download the safety program to the F-CPU once again. For example, with TIA Portal. Therefore, you should always keep your image backups up-to-date. In the same way you can start up a safety program from another CFast card, you can also upload and run the image created by another device or data storage medium.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

343

Compiling and commissioning a safety program 10.3 Downloading project data
Import image
WARNING
You must comply with the following points when importing an image with a safety program: · You must limit access to an S7-1500 F Software Controller through access protection to
persons who are authorized to import images. · When importing an image via LAN, remote access or comparable accesses, you have to
ensure access protection (e.g. via Windows administrator permission (ADMIN)). Note, however, that only authorized persons are set up as users. · To ensure that the image is written to the correct S7-1500 F software controller, when importing an image via LAN you must ensure that only one S7-1500 F software controller can be accessed. For example, by removing the physical connections and routing options to other S7-1500 F software controllers. · You must ensure that the correct safety program is on the image, for example, through unique identification of the data storage medium. · Remove the image and any copies of it once you have imported it in the S7-1500 F software controller. · After importing the image, you must use program identification to ensure, for example with the Panel, that the correct safety program is installed on the S7-1500 F software controller. (S074)

344

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.7

Loading project data from an F-CPU to a programming device / PC

Loading the project data (including safety-related project data) into a programming device / PC (S71500)
The "Upload from device (software)" or "Upload device as new station (hardware and software)" function is only possible for S7-1500 F-CPUs if the "Enable consistent upload from the F-CPU" option is activated for the F-CPU in the Safety Administration Editor and the project data is loaded to the F-CPU afterwards.
To load the project data (including safety-related project data) to a programming device or PC, proceed as for standard blocks.
If multiple F-CPUs can be reached over a network (e.g. Industrial Ethernet) by the programming device / PC, you have to ensure that the project data is downloaded from the correct F-CPU. For example with "Online & diagnostics" > "Online accesses " > "Flash LED".
After successful loading from the device you can continue working as with a project that was created offline.
WARNING
If you want to perform an acceptance with the project data uploaded to the programming device / PC or want to carry out changes to the safety-related project data and the F-CPU is in STOP mode, you have to set the F-CPU to RUN before uploading to the programming device / PC. This way, you can ensure that the safety program is executable. If the F-CPU remains in STOP, you are not allowed to perform acceptance or changes with the safetyrelated project data. (S080)
You can load individual F-blocks into a programming device / PC irrespective of the "Enable consistent upload from the F-CPU" option.
You cannot upload individual know-how protected F-blocks to a programming device / PC.
Note
The offline password is replaced or deleted by the online password of the safety program.

See also

"Settings" area (Page 91)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

345

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.8

Loading PC station via the configuration file
You have the option to save the system configuration of the PC system in a configuration file, transport it and load it to a target system. The entire configuration of your PC station is saved in a configuration file with the ending *.psc from the TIA Portal.
Saving and loading of the configuration file is supported as of:
 STEP 7 Safety V15
 S7-1500 F Software Controller V2.5

Example

You can find a detailed example on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109759142).

Identification parameters
The identification parameters include:
 File name
 Information in the project and the station that was stored from the TIA Portal in the PSC file in the metadata.
For example:
­ Project version
­ Plant designation
­ Station comment
Save the identification parameters in a file, if necessary, that you store on the target system.
For evaluating and testing these identification parameters via script, you must store this information directly in the script or save the identification parameters in a separate file, if necessary, that you store on the target system.

346

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.3.8.1

Compiling and commissioning a safety program 10.3 Downloading project data
Creating a configuration file
1. In TIA Portal create a new configuration file with "Project > Memory Card file > New > PC system configuration file (.psc)". The configuration file is created in the project tree under "Card Reader/USB memory".
2. Use the collective F-signature to check in the SAE that you have selected the correct project/station.
3. Use your mouse to drag the selected PC station to the configuration file. This loads the PC station to the configuration file.
WARNING
Instead of online program identification, you can use a unique name for the configuration file *.psc (PC Station Configuration) to ensure that the correct safety program is located in the configuration file. In addition, you have to observe the following when creating a configuration file: When creating a configuration file with the safety program, an existing file may not be used. You have to create a new file. You should also remove configuration files with a faulty safety program from data storage. You must limit access to the configuration file (*.psc) through restricted access to the area to persons who are authorized to import and modify the configuration file. (S081)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

347

Compiling and commissioning a safety program 10.3 Downloading project data

10.3.8.2

Importing the configuration file
You have the following options for importing the configuration file:  Via the PC Station Panel menu (import configuration file)  By means of a script

Import via the PC Station Panel menu

Requirement

If you want to start the import of the configuration file via the menu in the PC Station Panel of an S7-150xS(P) F, the executing user must be in the Windows user group "Failsafe Operators".

Procedure

WARNING
If the import operation was successful, you will receive a positive feedback. If you do not receive a positive message, you must assume that the import operation was not successful and that the old safety program is still present.
When importing a configuration file of a PC station via the menu of the panel with a safety program, you must observe the following:
· Use the unique name of the configuration file to check that you have selected the required configuration file.
· To ensure that the import is performed on the correct S7-1500 F software controller, when importing a configuration file via LAN you must ensure that you address the correct S7-1500 F software controller. To do this, perform one of the following actions: ­ Remove the physical connections and routing options to other S7-1500 F software controllers. ­ Use unique computer names and unique user logins or use other identification options. (S084)

348

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data
Import by means of a script
WARNING
You must check in the script based on the specified identification parameters whether the import of the configuration file is permitted for the respective target system (e.g. by evaluating the F-CPU name, project name or using the plant designation). In addition, checking the respective instance of the target system, which means a diversitary check of your addressing and/or checking the version of the configuration file, for example, only higher versions or the exclusion of specific versions (black list), can also be necessary or useful. You must store this information on the target system beforehand. Example of checking the respective version for validity: · The script evaluates the information about the version and only allows configuration files
of a higher version, for example. As a machine manufacturer, you must ensure that the script is protected against unauthorized manipulation (change to contents or name). If as a machine manufacturer you only make available the configuration files, you have to ensure that an incorrect configuration file is not imported during import through technical measures (extended checks in the script) and training of the machine operators. (S082)
The script checks for:  Matching machine ID  Version ID greater than current one. If so, the new version is written to the txt file.  Instance number The figure below contains a systematic overview of checking the configuration file in the script with the help of an identification parameter stored in a separate file (shown in violet in the figure below):

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

349

Compiling and commissioning a safety program 10.3 Downloading project data

WARNING
You determine the successful import of a safety program via the script by evaluating the corresponding return value (0x51A3). If the corresponding return value is not returned by the script command PCSystem_Control, the import has failed and the old safety program may still be present.
To ensure that the return value is not from the previous import, you need to reset the return value to 0x3FF ("PCSystem_Control /ImportConfig" without entering a file name) before the import and then check that the return value has been reset to 0x3FF (Enter "PCSystem_Control /GetStatus /ImportConfig" and then enter "echo %errorlevel%". This instruction must return the value 0x3FF.)
If the import operation is triggered by a server, feedback about the positive return value must be given.
For traceability we recommend that you document the import operation in a log file.
If the configuration file is imported manually via the Windows command line (via script command), you need to do one of the following: · Reset the return value to 0x3FF before the import and check it (see above).
­ Carry out the import. ­ Evaluate return value (enter "PCSystem_Control /GetStatus /ImportConfig" and then
enter "echo %errorlevel%". This instruction must return the value 0x51A3).
· Carry out the import. ­ Perform manual program identification, e.g. via the panel of the F-CPU.
(S083)

350

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.3 Downloading project data
Note The positive return value when importing a configuration file via script is "0x51A3" for an S71500 F software controller, in contrast to the S7-1500 software controller, in which case it is "0x0000".
When the file is imported via script, the authorization should be moved to the script. This means that the executing user does not need a higher authorization as the script which was made available by the machine manufacturer contains the necessary authorizations (user group "Failsafe Operators"). The rights are assigned via script by assignment of the Windows service to the corresponding user group. This initial installation must be performed beforehand by the Windows administrator on every computer with S7-150xS(P) F. The Windows service can be called by the executing user and the Windows service executes the script.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

351

Compiling and commissioning a safety program 10.4 Program identification

10.4

Program identification
You use the program identification to determine that the correct safety program was downloaded to the F-CPU To do so, you compare the collective F-signatures of the safety program and the assignment of the "F-admin" rights online with the expected value. The expected value can be, for example, the collective F-signature of the safety program offline from the Safety Administration Editor or from the safety summary. Check the assignment of the "F-admin" right in the Safety Administration Editor.
Use organizational measures to ensure that the safety program is not downloaded by any other TIA Portal (on a separate programming device or PC) while you perform the program identification.

With the Safety Administration Editor
For a program identification using the Safety Administration Editor, follow these steps: 1. Open the Safety Administration Editor of the F-CPU you want to check.
2. Connect online with the F-CPU you want to check.
3. Compare the collective F-signature displayed online with the expected value in the "General" section.
4. Check whether the offline and online program are consistent (Page 393).
5. Check whether the green symbol is displayed in the column "status" and "Version comparison".

6. Check in the "Web server F-admins" section whether only authorized users have the "Fadmin" right offline and online.

352

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.4 Program identification

With HMI

For a program identification using the HMI, follow these steps:
1. Read the collective F-signature of the safety program from the F_PROG_SIG tag of the Fglobal DB (Page 157) (S7-300, S7-400) or the tag F_SYSINFO.F_PROG_SIG of the Fruntime group information DB (Page 158) (S7-1200, S7-1500).
2. Compare the value of the F_PROG_SIG tag with the expected value.

With the display of an S7-1500 F-CPU
For a program identification using the display of an F-CPU, follow these steps: 1. In the display menu, go to "Overview > Fail-safe". 2. Compare the displayed collective F-signature with the expected value.

With the Web server of an S7-1200/1500 F-CPU
For a program identification using the Web server of an S7-1200/1500 F-CPU, follow these steps:
1. Read the collective F-signature on the homepage of the Web server.
2. Compare the displayed collective F-signature with the expected value.

See also

Safety Administration Editor (Page 79)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

353

Compiling and commissioning a safety program 10.5 Comparing Safety Programs

10.5

Comparing Safety Programs

Compare safety programs as in standard
You can use the comparison editor in STEP 7 for offline-online or offline-offline comparison of safety programs. The procedure is the same as for standard user programs. The contents of F-blocks are also compared for the comparison of safety programs. As a result, an offlineoffline comparison can also be used for an acceptance of changes (Page 396). You enable this comparison by selecting the "Safety" comparison criterion and disabling all other comparison criteria.
Note
You must not use the Comparison editor to detect changes offline-online in the safety program/configuration of the F-IOs when accepting changes. Only the offline-offline comparison is suitable for this purpose. To accept changes, proceed as described under Acceptance of Changes (Page 396).

Comparison result for safety programs
The representation of the comparison result corresponds to the representation of STEP 7.
If you click the "Program blocks" folder on the left of the comparison editor, you can see the collective F-signature of the safety program displayed under "Comparison result". You also receive information about whether the safety program is consistent.

354

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.5 Comparing Safety Programs

If you click on an F-block, you can see the respective signatures and interface signatures in addition to the standard information.
Note If you interrupt the connection to the F-CPU during the online/offline comparison, the comparison result will be incorrect.
Comparison filter options You can use filters in the comparison editor to limit the comparison result to the following
block groups:  Compare only F-blocks  Compare only F-blocks relevant for certification  Compare only standard blocks You also have the STEP 7 filter options "Show only objects with differences" and "Show identical and different objects". For comparison of safety programs, F-blocks in the "System blocks" folder are also relevant.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

355

Compiling and commissioning a safety program 10.5 Comparing Safety Programs

Comparison criteria
Make sure that under

only the comparison criterion "Safety" is enabled.

Classification of displayed changes
Regardless of whether you carried out an offline/online or offline/offline-comparison, the following changes could account for the indicated changes to the automatically generated Fblocks:
 Change in the maximum cycle time of F-runtime group and warn cycle time of F-runtime group
 Change in F-parameters of the F-CPU
 changed safety system version or change to the hardware configuration (S7-1200/1500: Displayed as change of the "F_SystemInfo_DB" block).
 (S7-300/400) Change in the F-runtime group communication, for example, change in the number of a DB for F-runtime group communication
 Change in main safety block, F-FB, F-FC, F-DB
 Change of the hardware configuration for the F-I/O addressed in the safety program
It is possible that a block is displayed as changed, but no changes are displayed in the detailed comparison of the block content. This is not a display problem but means that changes of addresses in the tag table, for example, have an effect on this block. Test this block in case of doubt.

Printing result of comparison
The comparison result can be printed via "Project > Print" in the menu bar or the print button in the toolbar. Select "Print objects/area" "All" and "Properties" "All".
Make sure that all pages were printed completely. Incomplete printouts (e.g. due to low on toner) must not be used for the acceptance of changes.

356

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.6 Printing project data

10.6

Printing project data

Printing

You can print all important project data (hardware configuration of the F-CPU and F-I/O, safety program). You obtain a "safety summary" that, alongside the documentation, serves as a basis for testing the correctness of the individual components of the system. Correctness is a prerequisite for system acceptance.
The collective F-signature specifications in the footer of the printout ensure that the printout is explicitly associated with a safety program.

Safety summary
The safety summary provides documentation of the safety-related project data which supports you during acceptance of the system.

Procedure for creating a safety summary
To create a safety summary, follow these steps:
1. In the project tree, select the Safety Administration Editor of the F-CPU whose safety summary you want to create.
2. Select "Print" in the shortcut menu or "Project > Print" in the menu bar or the print button in the toolbar.
In the displayed dialog, you can make layout settings for the printout and specify the scope of the printout (all/subset), among other things.
3. Under "Document information", select one of the ISO formats, e.g. "DocuInfo_ISO_A4_Portait".
4. Select the "All" option, if the F-blocks and F-compliant PLC data types are to be shown in the printout. This is necessary, for example, to document the program code for the acceptance(see Acceptance of system (Page 376)). Select the "Compact" option to exclude the source code from the printout.
5. Click the "Print" button.
As a result, you receive the safety summary for the F-CPU.
Make sure that all pages were printed completely. Incomplete printouts (e.g. due to low on toner) must not be used for the acceptance of changes.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

357

Compiling and commissioning a safety program 10.6 Printing project data
Contents of the summary in overview
The topics that are considered in the summary are summarized in the following:
 General information on program identification, signatures, software versions, access protection, settings of the safety program (from the "Settings" work area of the Safety Administration Editor), for example safety system version.
 System library elements used in safety program (from the "Instructions" task card) along with their versions
 Information about the F-runtime groups (e.g. cycle time warning limit of the F-runtime group, maximum cycle time of the F-runtime group)
 List of the F-blocks within the "Program blocks" folder (e.g. name, function, associated F-runtime group, signature)
 (S7-1200, S7-1500) List of the know-how protected F-blocks used in the safety program (e.g., name, signature, used safety system version, used versioned instructions or called F-blocks).
 (S7-1200, S7-1500) List of F-compliant PLC data types (UDT), if these exist in the safety program.
 Data from the standard user program that are evaluated in the safety program
 Block parameters of the safety-related CPU-CPU communication
 (S7-300, S7-400) Absolute addresses and names of the F-shared DB tags that can be accessed from the standard user program
 Information on hardware (used F-I/O, CPU version, addresses)
 Information on the printout (print date, number of pages)
Content of the footer of the printouts
On the basis of the footer of the printout, you can find out:
 Whether the printed safety-related project data is consistent and whether all pages of the printout belong to the same safety program and the same version (the same F-collective signature in the footer of every page means that the printout belongs to the safety program with this F-collective signature).
The footer is added to the source code of the F-blocks only if the "All" option was selected for the safety summary.
If F-blocks are printed by other means, the footer is omitted, and you can no longer easily identify whether the block printout belongs to the current safety program version.
Printing a migrated project You can only print a safety summary for a project migrated from S7 Distributed Safety V5.4 SP5 if the project was compiled with STEP 7 Safety Advanced and the new program
structure for safety programs (main safety block) has therefore been applied. Otherwise, the printout is not possible and you will receive a corresponding error message. We recommend that you print out your project in S7 Distributed Safety V5.4 SP5 before the migration.

358

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.7

Testing the safety program

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.1

Overview of Testing the Safety Program

Complete function test or test of changes
After creating a safety program, you must carry out a complete function test in accordance with your automation task.
For changes made to a safety program that has already undergone a complete function test, only the changes and that there is no effect on the parts of the safety program that were not changed need be tested.

Monitoring

Read-only test functions (such as monitoring tags of the safety program) are available for safety programs as in the standard.

Modifying

Read and write test functions (such as controlling tags of the safety program) are only available to a limited extent for safety programs and only in disabled safety mode.

Simulation via S7-PLCSIM
You can test the safety program using S7-PLCSIM. You use S7-PLCSIM in the same way as for standard user programs.
You start the simulation with S7-PLCSIM using menu item "Online > Simulation > Start".

Rules for testing
 Forcing of F-I/O inputs and F-I/O outputs is not possible.
 Controlling F-I/O outputs in connection with the function "Enabling F-I/O outputs" is not possible.
 Setting breakpoints in the standard user program will cause errors in the safety program (see also Testing the safety program (Page 363)).
 Changes in the configuration of F-I/O or safety-related CPU-CPU communication can only be tested after the hardware configuration has been saved and downloaded, and after the safety program has been compiled and downloaded to the F-CPU.

See also

Disabling safety mode (Page 360)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

359

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.2

Disabling safety mode

Introduction

The safety program generally runs in the F-CPU in safety mode. This means that all fault control measures are activated. The safety program cannot be modified during operation (in RUN mode) in safety mode. You must disable safety mode of the safety program to, for example, modify tags in the safety program in RUN mode. Safety mode remains disabled until the F-CPU is next switched from STOP to RUN mode.

Rules for disabling safety mode
WARNING
Because changes to the safety program can be made in RUN mode when safety mode is deactivated, you must take the following into account:
· Disabling safety mode is intended for test purposes, commissioning, etc. Whenever safety mode is disabled, the safety of the system must be ensured by other organizational measures, such as monitored operation, manual safety shutdown, and access restrictions to certain areas.
· Disabling of safety mode must be displayed.
Use the MODE tag in the F-global DB ("F_GLOBDB".MODE) for S7-300/400 F-CPUs or in the F-runtime group information DB (e.g. RTG1SysInfo.F_SYSINFO.MODE) for S71200/1500 F-CPUs, which you can evaluate to read the operating mode (1 = Disabled safety mode). This means not only is the disabled safety mode displayed on the programming device or PC in the dialog box for disabling safety mode, but it can also be indicated by means of an indicator light controlled by the standard user program or a message to an HMI system generated by evaluating the above-mentioned "Disabled safety mode" tag in the F-shared DB.
· It must be possible to verify that safety mode has been disabled. A log is required, if possible by recording and, if applicable, archiving alarms to the operator control and monitoring system or, if need be, through organizational measures. In addition, it is recommended that disabling of safety mode be indicated on the HMI system.
· Safety mode is disabled F-CPU-wide. You must, however, take the following into account for safety-related CPU-CPU communication: If the F-CPU that sends the data is in disabled safety mode, you can no longer assume that the data sent by this F-CPU are generated safely. You must then ensure safety in those units that are affected by the sent data through organizational measures or output safe substitute values instead of the received in the F-CPU that receives the data by evaluating SENDMODE*.
* SENDMODE is available to you as output of the RCVDP or RCVS7 instructions or in case of communication via Flexible F-Link as a tag in the F-communication DB.
(S027)

360

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program
Procedure for disabling safety mode
To disable safety mode, follow these steps: 1. Open the Safety Administration Editor of the corresponding F-CPU. 2. Open the work area "General (Page 82)" in the area navigation. 3. Check to see whether the safety mode status is displayed as activated.
If so, continue with the next step; if not, stop the process, because safety mode is already disabled or cannot be disabled. 4. Click the "Disable safety mode" button. 5. Enter the password for the online safety program. If you enter the correct password, another prompt will appear, which also contains the collective F-signature in the F-CPU. Check to see whether this is the collective Fsignature you expected. If there is a match, acknowledge the dialog. 6. Enter the password for the F-CPU. After correctly entering the password for the F-CPU, safety mode is disabled. If the password is not valid, safety mode is not deactivated and remains active. (S7-300, S7-400) When individual F-blocks are downloaded, the condition "Disable safety mode" is listed automatically in the "Load preview" dialog. For this reason, it is not necessary to explicitly disable safety mode before every F-block download.
Note If the collective F-signature or the passwords do not agree for the safety program online and offline, this means: · The offline safety program was modified after the last downloading, or · An incorrect F-CPU was addressed. Check the latter based on the online collective F-
signature.
Enabling safety mode
Note To enable safety mode, the F-CPU must be switched from STOP to RUN mode. Switching the F-CPU from STOP to RUN mode always enables safety mode, even if the safety program has been modified or is not consistent. The MODE tag in the F-shared DB for S7-300/400 F-CPUs or F-runtime group information DB is set to "0" for S7-1200/1500 FCPUs. If you have changed your safety program, but have not recompiled and downloaded it, the FCPU can revert to STOP mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

361

Compiling and commissioning a safety program 10.7 Testing the safety program
Evaluating safety mode/disabled safety mode
If you wish to evaluate safety mode/disabled safety mode in the safety program, you can evaluate the "MODE" tag in the F-shared DB for S7-300/400 F-CPUs or F-runtime group information DB for S7-1200/1500 F-CPUs (1 = Disabled safety mode). You use fully qualified access to access this tag (e.g. "F_GLOBDB".MODE or RTG1SysInfo.MODE).
You can use this evaluation, for example, to passivate F-I/O when the safety program is in disabled safety mode. To do so, assign the "MODE" tag in the F-shared DB or F-runtime group information DB to all "PASS_ON" tags in the F-I/O DBs of the F-I/O that you wish to passivate.
WARNING
When the safety program is in disabled safety mode, the "MODE" tag in the F-shared DB or F-runtime group information DB is also evaluated in disabled safety mode.
Even if the F-I/O are passivated in disabled safety mode as a result of evaluation of the "MODE" tag, system safety must be ensured in disabled safety mode through other organizational measures, such as operation monitoring and manual safety shutdown. (S028)

See also

F-shared DB (S7-300, S7-400) (Page 157) F-runtime group information DB (S7-1200, S7-1500) (Page 158) Communication (Page 631)

362

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.3

Testing the safety program

Introduction

Tags of the safety program can be monitored at any time. Controlling tags of the safety program is only possible in deactivated safety mode as some fault control measures of the safety program have to be disabled for this. You can control the following tags of the safety program:  Inputs and outputs of the F-I/O (channel values and value status (S7-1200, S7-1500))  Tags in F-global DB (except DB for F-runtime group communication)  Tags in instance DBs of F-FBs  Tags in F-I/O DBs (for permitted tags see F-I/O DB (Page 174))

Procedure for monitoring tags of the safety program
Monitor the required tags of the safety program from an open watch table or from the program editor (program status).
1. Proceed as in the standard. Additional information can be found in the STEP 7 help in "Testing user programs".

Procedure for controlling tags of the safety program
Control the required tags of the safety program from an open watch table:
1. For modifying, deactivate the safety mode (Page 360) in the automatically shown dialog.
2. Terminate existing modify requests after testing is complete before activating safety mode.
Values in F-DBs can only be modified online in the F-CPU. If the value is also to be changed offline, you must do this by editing the start value offline and compiling the safety program.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

363

Compiling and commissioning a safety program 10.7 Testing the safety program
Proceed as follows to control tags of F-I/O: 1. Create a separate row for each channel value and value status (S7-1200, S7-1500) to be
modified. The control value must correspond to the channel value or value status. 2. Set "start of scan cycle" or "end of scan cycle" and "permanent" or "once".
Regardless of the trigger point setting, requests to modify inputs (PII) of F-I/O always become effective before the main safety block is executed and requests to modify outputs (PIQ) always become effective after execution of the main safety block. 3. (S7-300, S7-400) Create an additional watch table if you want to control more than 5 inputs/outputs.
Note F-I/O can only be modified in RUN mode of the F-CPU. You cannot modify a configured F-I/O from which neither a channel value or a value status (S7-1200, S7-1500), nor any tag from the associated F-I/O DB has been used in the safety program. In your safety program, you should therefore always use at least one tag from the associated F-I/O DB or at least one channel value or value status (S7-1200, S7-1500) of the F-I/O to be modified. For inputs (PII), modify requests take priority over fail-safe value output, while for outputs (PIQ), fail-safe value output takes priority over modify requests. For outputs (channels) that are not activated in the properties for the F-I/O, modify requests affect the PIQ only, and not the F-I/O.
Note The following applies for S7-1200/1500 F-CPUs: To avoid invalid combinations of channel value and status value: · The value status is set by the F-system automatically to 1 when setting a channel value
to a value <> fail-safe value 0 · The fail-safe value 0 is automatically output when setting the value status to 0 for the
associated channel value
WARNING
You need to specifically reset constant modify requests in the watch table in disabled safety mode. Note that constant modify requests that are not correctly reset can remain active in the background even after a STOP/RUN transition of the F-CPU. Because the F-CPU is in safety mode again after a STOP/RUN transition, the constant modify requests are no longer effective and are not shown in the watch table. The requests become active again as soon as you disable safety mode again. With a memory reset of the F-CPU, you can make sure that no constant modify requests are active in the background on the F-CPU. (S029)

364

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program

Wiring test using watch table
You can carry out a wiring test for an input by changing an input signal and verifying whether or not the new value arrives in the PII.
You can carry out a wiring test for an output by changing the output with the Modify function and verifying whether the required actuator responds.
For the wiring test, note that a safety program must be running on the F-CPU, in which at least one channel value or value status (S7-1200, S7-1500) of the F-I/O to be monitored or modified or one tag from the associated F-I/O DB has been used.
For F-I/O that can also be operated as standard I/O (e.g., S7-300 fail-safe signal modules), you can also carry out the wiring test for outputs using the Modify function in STOP mode by operating the F-I/O as standard I/O rather than in safety mode.

Additional rules for testing (S7-300/400/1500)
Setting breakpoints in the standard user program will cause the following errors in the safety program:
 F-cycle time monitoring has expired
 Error during communication with the F-I/O
(S7-1500) Fail-safe modules switch to safe mode after the configured F-monitoring time has expired.
 Error during safety-related CPU-CPU communication
 Internal CPU faults
If you nevertheless want to use breakpoints for testing, you must first disable safety mode. This will result in the following errors:
 Error during communication with the F-I/O
 Error during safety-related CPU-CPU communication
Difference between S7-1500 F-CPUs and S7-300/400 F-CPUs:
 If a breakpoint is activated and reached, the F-CPU goes directly to STOP after HOLD.
 If you want to switch to RUN again after HOLD to test your standard user program further, you can simulate this with S7-PLCSIM.
No access protection is initially necessary for test purposes, commissioning, etc. This means you can execute all offline and online actions without access protection, that is, without password prompt.

See also

Changing the safety program in RUN mode (S7-300, S7-400) (Page 371) Downloading project data to an F-CPU (Page 325)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

365

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.4

Testing the safety program with S7-PLCSIM
You can test your safety program together with your standard program on a simulated CPU with S7-PLCSIM and without the need for hardware. Also observe warning S030 in the section "Notes on Safety Mode of the Safety Program (Page 401)".
You use S7-PLCSIM for SIMATIC Safety F-systems as you would for S7 standard systems. Note the following special features:

Safety mode/disabled safety mode
We recommend that you test your safety program in safety mode to detect whether the FCPU goes into STOP as early as in the test phase of your safety program in S7-PLCSIM as a result of, for example, that the results of instructions were outside the permitted range for the data type.
The following simulations can be run in S7-PLCSIM, just as on an actual F-CPU, in disabled safety mode only.
 Modifying tags in F-DBs and F-I/O DBs.
The F-CPU can go to STOP mode in S7-PLCSIM if this is disregarded. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
(S7-1200, S7-1500) To prevent unintentional modification of tags in F-DBs and F-I/O DBs in safety mode, we recommend that you do not select the "Activate/deactivate modification of non-inputs" button in S7-PLCSIM
During the simulation with S7-PLCSIM , monitoring of the maximum cycle time of the Fruntime group and the cycle time warning limit of the F-runtime group (S7-1200, S7-1500) are disabled.

366

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program

Input simulation of F-I/O
Modification of inputs (channel values) in S7-PLCSIM:
You modify inputs (channel values) of F-I/O as you would inputs (channel values) of standard I/O in S7-PLCSIM.
Modification of inputs (value status) in S7-PLCSIM:
(S7-1200, S7-1500) By modifying inputs (value status) of F-I/O you can simulate the incoming and outgoing F-I/O/channel faults. Keep in mind the following notes/restrictions:
 To realistically simulate the behavior of the F-I/O, you must note the connection between channel value and value status on the real F-I/O. The combination value status = 0 and channel value <> fail-safe value (0) is invalid and can result in the simulation deviating from the behavior of the real F-CPU.
 During the transition from "STOP" to "RUN" of the CPU in S7-PLCSIM, all F-I/O inputs (value status) are initialized with 1. This means you can start with the modification of inputs (channel values) without simulation of the inputs (value status).
 The modification of inputs (value status) in S7-PLCSIM does not have an effect on the tags QBAD and PASS_OUT in the F-I/O DB. Note that with real F-I/O QBAD and PASS_OUT can be 1 as soon as the value status is 0 for at least one channel of the FI/O. (see tags of the F-I/O DB: PASS_OUT/QBAD/QBAD_I_xx/QBAD_O_xx and value status (Page 181)).
 For F-I/O configured with "Behavior after channel fault" = "Passivation of the complete FI/O", use the tag PASS_ON in the F-I/O DB for simulation of the passivation of the complete F-I/O for F-I/O / channel faults. If you only passivate individual inputs (channel value including value status) for the simulation, the behavior of the simulation will deviate from the real F-CPU.
 You can also use the PASS_ON tag in the F-I/O DB for F-I/O without value status to simulate the passivation of the entire F-I/O in case of F-I/O or channel faults.
 You must modify the inputs (channel values) to 7FFFH (for overflow) or 8000H (for underflow) to simulate an F-I/O/channel fault of the SM 336; AI 6 x 13Bit or the SM 336; F-AI 6 x 0/4...20 mA HART with configuration "Behavior after channel fault" = "Passivate channel".
 For F-I/O which does not support the "RIOforFA-Safety" profile, you must run a user acknowledgment with a positive edge at the ACK_REI tag of the F-I/O DB as with a real F-I/O for reintegration after the value status has changed from 0 to 1 or when the channel value has changed from 7FFFH/8000H to unequal 7FFFH/8000H (see above) when ACK_NEC = 1 of the F-I/O DB. Reintegration takes place automatically in all other cases possibly deviating from the real F-I/O.

Update times

Keep in mind that the status of the inputs (channel values or value status (S7-1200/1500)) that you are monitoring in the SIM table in S7-PLCSIM is only identical to the status being processed in the safety program if there is no passivation of the associated F-I/O.
With passivation of the F-I/O, the safety program operates with fail-safe values (channel value and value status (S7-1200/1500) =0).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

367

Compiling and commissioning a safety program 10.7 Testing the safety program
Instructions for communication between F-CPUs
The following applies for SENDDP/RCVDP (S7-300/400) instructions and SENDDP/RCVDP instructions with Version < 3.0 (S7-1200/1500):
You cannot simulate communication between F-CPUs with the SENDDP and RCVDP instructions in S7-PLCSIM. You can, however, use the SENDDP and RCVDP instructions together with S7-PLCSIM. During simulation in S7-PLCSIM, the RCVDP instruction outputs the fail-safe values pending at its inputs SUBBO_xx and SUBI_xx ((S7-1200/1500) or alternatively SUBDI_00). The SENDDP and RCVDP instructions signal this with 1 at output SUBS_ON.
For SENDDP/RCVDP instructions with Version >= 3.0 the following applies:
During the simulation with S7-PLCSIM it is possible to simulate the received data and the information "Deactivated Safety Mode" (RCVDP) or respectively the information "Substitute value output" (SENDDP) in the corresponding transfer area for inputs. Note the following notes:
 The simulated values do not become active until you set the SIMULATION bit for the first time in the respective simulation control word (see the following table) after the F-system has started up. Before setting the SIMULATION bit, the RCVDP instruction outputs the fail-safe values that are pending at its inputs SUBBO_xx and SUBI_yy ((S7-1200/1500) or alternatively SUBDI_00).
 The setting of the SEND_MODE bit in the simulation control word causes a setting of the SENDMORE output for the RCVDP instruction.
 The setting of the STATUS_SUBS bit in the simulation control word causes a setting of the SUBS_ON output for the SENDDP instruction.
 Reserved bits in the simulation control word always have to be 0.
 During a STOP/RUN transition from S7-PLCSIM the most recently simulated values in the transfer area for inputs are kept.
The start address(es) of the configured transfer area for the input and output data can be found in the respective configuration (see also "Configuring and programming communication (S7-1200, S7-1500) (Page 273)").

368

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program

Table 10- 1 Structure of the relevant transfer area for inputs of the simulation control word (instruction RCVDP)

Byte 0 1
2 3 4 5
2 3 4 5

Meaning RD_BO_15 ... RD_BO_08 RD_BO_07 ... RD_BO_00 DINTMODE=0: RD_I_00
RD_I_01
Alternative DINTMODE=1: RD_DI_00

Comment
Word RD_I_00, MSB1) first Word RD_I_01, MSB1) first High Word from RD_DI_00, MSB1) first Low Word from RD_DI_00 XOR 0x8000, MSB1) first

6 7 8 ... 11

Simulation control word (High Byte) Simulation control word (Low Byte) Reserved

Bit 0...6: Reserved Bit 7: SIMULATION: Activating RCVDP simulation Bit 0: SEND_MODE: Set output SENDMODE Bit 1...7: Reserved

1) MSB: most significant bit

Table 10- 2 Structure of the relevant transfer area for inputs of the simulation control word (instruction SENDDP)

Byte 0

Meaning
Simulation control word (High Byte)

1 2 ... 5

Simulation control word (Low Byte)
Reserved

Comment Bit 0: STATUS_SUBS: Set output SUBS_ON Bit 1...6: Reserved Bit 7: SIMULATION: Activating SENDDP simulation Bit 0...7: Reserved

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

369

Compiling and commissioning a safety program 10.7 Testing the safety program
WARNING
You must take the following into account for safety-related CPU-CPU communication with the communication type Flexible F-Link: If the data is sent from an F-CPU that is simulated with S7-PLCSIM, you can no longer assume that this data is generated safely. You must then implement organizational measures such as operation monitoring and manual safety shutdown to ensure safety in those parts of the system that are affected by the sent data. Alternatively, you must output fail-safe substitute values instead of the received data in the F-CPU that receives the data by evaluating SENDMODE*. * SENDMODE is available to you as a tag in the F-communication DB. (S086)
(S7-300, S7-400) You cannot simulate communication between F-CPUs with the SENDS7 and RCVS7 instructions in S7-PLCSIM. You can, however, use the SENDS7 and RCVS7 instructions together with S7-PLCSIM. During simulation in S7-PLCSIM, the RCVS7 instruction outputs the initial values specified in the communication DB as fail-safe values. The SENDS7 and RCVS7 instructions signal this with 1 at output SUBS_ON.
Inconsistent safety program (S7-1200, S7-1500) If the CPU goes into STOP in S7-PLCSIM with the diagnostic entry "Safety program: inconsistent", the F-CPU is not initialized correctly in S7-PLCSIM yet. Perform a memory reset of the F-CPU in S7-PLCSIM and download the program once again to the CPU in S7PLCSIM.

370

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.5

Changing the safety program in RUN mode (S7-300, S7-400)

Introduction

Changes to the safety program during operation (in RUN mode) can only be made in disabled safety mode (Page 360). You make changes to F-blocks offline in the program editor in the same way as for a standard program. F-blocks cannot be changed online.
Note
If you do not want to make changes to the safety program during operation, see Creating F-blocks in FBD/LAD (Page 160).

Procedure for changing the safety program in RUN mode
To change the safety program, follow these steps:
1. Change the main safety block or F-FB and its associated instance DB, F-FC, or F-DB in the Program editor.
2. Download the changed F-block(s) to the F-CPU (for procedure, see Downloading project data to an F-CPU (Page 325)). The entire program is then automatically compiled.
3. If safety mode is active, the "Load preview" dialog will prompt you to deactivate it and to enter the password for the safety program.
Note
When downloading in disabled safety mode, you can only download the fail-safe blocks created by you (main safety blocks, F-FB, F-FC, or F-DB), F-application blocks, or standard blocks and their associated instance DBs. If you download automatically added F-blocks (F-SBs or automatically generated F-blocks and associated instance DBs, Fshared DB), the F-CPU can go to STOP mode or safety mode can be activated.
Therefore, always select individual blocks only when downloading in disabled safety mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

371

Compiling and commissioning a safety program 10.7 Testing the safety program
Sequence for downloading changes
Changes in the safety program in RUN mode when safety mode is disabled can, for example, cause the status of an actuator to change as a result of program changes. After changes, start by downloading the safety program and then the function of the standard user program monitored by the safety program.
Restrictions on safety-related CPU-CPU communication
During operation (in RUN mode), you cannot establish new safety-related CPU-CPU communication by means of new SENDDP/RCVDP or SENDS7/RCVS7 instructions. To establish new safety-related CPU-CPU communication you must always download the relevant safety program consistently to the F-CPU while in STOP mode after inserting a new SENDDP, SENDS7, RCVDP, or RCVS7 instruction.
Restrictions on F-runtime group communication
You cannot make any changes to the safety-related communication between F-runtime groups in RUN mode. This means that you cannot assign, delete, or change any DBs for Fruntime group communication of an F-runtime group. Following changes in the F-runtime group communication, you must always download the safety program consistently to the F-CPU while in STOP mode.
Restrictions on F-I/O access
If during operation (in RUN mode), you insert an F-I/O access to an F-I/O of which no single channel value or tag from the associated F-I/O DB has yet been used in the safety program, the F-I/O access only becomes effective when the safety program is downloaded consistently to the F-CPU.
Changing the standard user program
You can download changes in the standard user program when the F-CPU is in RUN mode, regardless of whether safety mode is enabled or disabled.
WARNING
(S7-300, S7-400) In safety mode, access with the CPU password must not be authorized during changes to the standard user program as this would also allow changes to the safety program. To rule out this possibility, you must configure the protection level "Write protection for fail-safe blocks" and configure a password for the F-CPU. If only one person is authorized to change the standard user program and the safety program, the protection level "Write protection" or "Read/write protection" should be configured so that other persons have only limited access or no access at all to the entire user program (standard and safety programs). (S001)

372

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Compiling and commissioning a safety program 10.7 Testing the safety program
Procedure for applying changes to the safety program
If you download individual F-blocks to the F-CPU during operation (in RUN mode), the F-system blocks (F-SBs) and the automatically generated F-blocks are neither updated nor downloaded, resulting in an inconsistent safety program in the F-CPU. Use the following procedure to apply changes to the safety program:
1. Download the safety program consistently to the F-CPU, and activate safety mode by switching the F-CPU from STOP to RUN mode (for procedure, see Downloading project data to an F-CPU (Page 325)).
2. Follow the steps described in Acceptance of Changes (Page 396).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

373

Compiling and commissioning a safety program 10.7 Testing the safety program

10.7.6

Changing the standard user program in RUN mode (S7-1200, S7-1500)

Changing the standard user program
You can download changes in the standard user program when the F-CPU is in RUN mode, regardless of whether safety mode is enabled or disabled.

374

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

10.8

Compiling and commissioning a safety program 10.8 F-change history
F-change history
Enable the logging of changes to the safety program by using the option "Enable F-change history" in the Safety Administration Editor. The F-change history behaves like the standard change history. An F-change history is created for each F-CPU in the project navigation under "Common data/logs". The following is logged in the F-change history:  Collective F-signature  User name  Compile time stamp  Download of the safety program with time stamp  Compiled F-blocks with signature and time stamp The F-change history can contain a maximum of 5000 entries per F-CPU. When the 5000 entries are exceeded, a new F-change history is created using the naming scheme "Fchange history <CPU name> YYYY-MM-DD hh:mm:ss". After a project upgrade, the "Go to" function is not supported anymore for the F-change history of the project for the entries which were created before STEP 7 Safety V15.1.
NOTICE
The connection between the F-CPU and the associated F-change history is made through the name of the F-change history. Therefore, do not rename the F-CPU and the F-change history. If you rename the F-CPU or the F-change history, a new F-change history with the current name of the F-CPU is started.
Note You may not use the F-change history to recognize changes in the safety program/in the configuration of the F-I/Os during the acceptance of changes. To accept changes, proceed as described under Acceptance of Changes (Page 396).
Note We recommend activating the F-change history before changing over to productive operation.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

375

System acceptance

11

11.1

Overview of System Acceptance

Introduction

When performing a system acceptance test, all the standards and guidelines (for example PROFINET Installation Guidelines) relevant to the specific application must be complied with. This also applies to systems that are not "subject to acceptance". For the acceptance, you must consider the requirements in the Certification Report (http://support.automation.siemens.com/WW/view/en/49368678/134200).
As a general rule, the acceptance of an F-System is performed by an independent expert. The independence required of the expert must be defined in the safety plan and depends on the required PL/SIL.
Observe all warnings in this manual.
WARNING
The configuration of F-CPUs and F-I/Os as well as the programming of F-blocks must be carried out in TIA Portal as described in this documentation. You must observe all aspects described in the section System acceptance (Page 376) to ensure safe operation with the system SIMATIC SAFETY. Any other procedures are not permitted. (S056)

376

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.1 Overview of System Acceptance
Proof of the correct implementation of the safety-related project data
In order for a system acceptance to be granted, you must assess and document the correctness of the individual components. For documentation of the component characteristics, you must create a safety summary. The following characteristics must be covered:  Correctness of the safety program including hardware configuration (including testing)
(Page 378)  Completeness of the safety summary (Page 379)  Compliance of the system library elements used in the safety program with Annex 1 of
the Report for the TÜV certificate (Page 380)  Compliance of the know-how protected F-blocks used in the safety program with their
safety documentation. (Page 381)  Completeness and correctness of the hardware configuration (Page 383)  Correctness and completeness of the communication configuration (Page 391)  Identity of online and offline program (Page 393)  Other characteristics (Page 394) such as software version, use of data from the standard
user program After the acceptance, you should archive all relevant documents and also the project data so as to make the accepted project available as a reference for a subsequent acceptance.
Safety summary
The safety summary (Page 357) is the project documentation required for acceptance of the system.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

377

System acceptance 11.2 Correctness of the safety program including hardware configuration (including testing)

11.2

Correctness of the safety program including hardware configuration (including testing)
The correctness of software cannot only be ensure through tests and verifications during commissioning, but rather already requires the observance of a wide variety of measures during creation. Also see warning S062 on this in chapter "Overview (Page 21)".

Verification/function test
Already during the creation, you will test (Page 359) your safety program and the associated hardware configuration. You must carry out these tests with regard to the specification of your safety functions and document them before you perform the system acceptance.
To allow you to perform a code review of your safety program and document the accepted program code, the source code of all F-blocks is printed as a part of the safety summary (Page 357), provided you have selected the option "All" for the printout.
If you want to carry out a function test after loading, you have to carry out program identification. Additional information is available in "Downloading project data (Page 325)".
The correct function of the safety program must be guaranteed by complying with all steps from the "Overview of System Acceptance (Page 376)" chapter before it can be used productively. When using configuration control (option handling), you must ensure correct operation of the safety program for all possible station options by performing appropriate functional tests. You should archive the test reports along with the safety summary and the acceptance documents.
Times, for example monitoring times (Page 649) and delay times, can only be verified to a limited extent with functional tests (Page 325). You should check these times selectively to determine whether they are dimensioned correctly, for example, using the safety summary.
Some of these times are itemized specially in the safety summary, for example, the F-monitoring time (for communication between F-CPU and F-I/O) and the monitoring time of the safety-related CPU-CPU communication (TIMEOUT input). For the monitoring times derived under normative conditions, the Excel file for response time calculation is available on the Internet (http://support.automation.siemens.com/WW/view/en/49368678/133100). These have to be considered together with the practically determined conditions of the application. Note that these monitoring times have an impact on the response times of your safety functions.

Consistency of the safety program
Check in the "General information" section of the safety summary to determine whether the safety program was recognized as "consistent".
This is the case for S7-300/400 F-CPUs only if the following signatures are also identical:
 Collective F-signature ("General information" section, "Collective F-signature")
 "Signature of F-blocks with F-attribute" ("General information" section, "Current compilation")
Consistency of the safety program is required for the acceptance. If the signatures are not identical, you have the possibility to establish the consistency through recompiling of the safety program and new creation of the safety summary.

378

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.3 Completeness of the safety summary

11.3

Completeness of the safety summary

Introduction

If your safety program including hardware configuration is ready for acceptance, you must carry out and document additional checks on the basis of the safety summary to prove that the safety summary is complete and is part of the safety program to be accepted.

Procedure for creation of safety summary
To generate the safety summary, follow the procedure described in Printing project data (Page 357).
In so doing, use the option "All" in order to include the source code of your F-blocks in the printout.

Checking the safety summary for completeness
If you want to use an existing summary, whose completeness is not exactly known, you must check to determine whether the same collective F-signature is contained in the footer on all pages of the printout. This allows you to prove that all printed sheets belong to the same project.
In section "Supplementary information", you can find the number of pages in the safety summary, among other things. With this, you can prove that all pages of the safety summary are printed. Incomplete printouts (for example due to low on toner) must not be used for an acceptance.
If you created the safety summary with the "All" option, the source code of all F-blocks will also be printed. The printout of this source code also contains the footer to enable you to easily assign the source code to a particular safety summary.

Association with the safety program
In the "General information" section of the safety summary, check whether the collective Fsignature corresponds to the collective F-signature of the safety program to be accepted in the work area of the Safety Administration Editor under "General". If they are not the same, then the summary and safety program do not match.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

379

System acceptance
11.4 Compliance of the system library elements used in the safety program with Annex 1 of the Report for the TÜV certificate

11.4

Compliance of the system library elements used in the safety

program with Annex 1 of the Report for the TÜV certificate

Introduction

STEP 7 Safety contains LAD/FBD instructions for programming of your safety program as well as F-system blocks for creating an executable safety program that have been created and tested by SIEMENS and certified by TÜV. The F-system blocks used are automatically inserted by the F-system based on the set safety system version (see section "Settings" area (Page 91)).
To allow you to check whether the used versioned LAD/FBD instructions and F-system blocks correspond to Annex 1 of the Report for the TÜV certificate and to the versions you intend to use, these are listed in the safety summary.

Procedure

To check, download the current Annex 1 of the report for the TÜV certificate "SIMATIC Safety" from the Internet (http://support.automation.siemens.com/WW/view/en/49368678/134200).
Proceed as follows for the check:
WARNING
· (S7-1200, S7-1500) The versions of the versioned LAD/FBD instructions listed in the safety summary in the section "System library elements used in safety program" must correspond to the versions in Annex 1 of the Report for the TÜV Certificate.
· (S7-300, S7-400) The versions, signatures and initial value signatures of the versioned LAD/FBD instructions and F-system blocks listed in the safety summary in the section "System library elements used in safety program" must correspond to the versions, signatures and initial value signatures in Annex 1 of the Report for the TÜV Certificate.
· The versions of the versioned LAD/FBD instructions listed in the safety summary must meet the safety requirements of your application. Keep in mind possible differences in functionality of different versions specified in the section for the respective instruction.
· The safety system version listed in the safety summary under "Safety program settings" must match the versions in Annex 1 of the Report for the TÜV Certificate. (S054)
In case of discrepancies, recheck whether you have the correct versions.
(S7-300 / 400) Differences can also arise when there are F-blocks / instructions in your safety program that are not used.

380

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.5 Compliance of the know-how protected F-blocks used in the safety program with their safety documentation.

11.5

Compliance of the know-how protected F-blocks used in the safety program with their safety documentation.
If you use know-how protected F-blocks for the programming of your safety program (e.g. from libraries), the source code for these is not printed in the safety summary.
Therefore, the author of the know-how protected F-block must already carry out acceptance of the F-block and provide the following information:

S7-300/400 F-CPUs
 Signature and initial value signature of the know-how protected F-block
 Versions of all the used versioned LAD/FBD instructions
 Signatures and initial value signatures of all called F-blocks
When performing a system acceptance, you have to carry out the following checks using the safety summary:
 The signature and initial value signature of each know-how protected F-block listed in the safety summary in the section "F-blocks in the safety program" must be identical with the signature and initial value signature documented by the author.
 The versions of the versioned LAD/FBD instructions listed in the safety summary in the section "System library elements used in safety program" must correspond to the versions of each know-how protected F-block documented by the author or must be functionally identical with them.
 The signatures and initial value signatures of the F-blocks called in each know-how protected F-block listed in the safety summary in the section "F-blocks in the safety program" must be identical with the signatures and initial value signatures (of the called F-blocks) documented by the author.
In case of differences, set the documented (or functionally identical) versions and use the Fblocks with the documented signatures and initial value signatures. If the version conflicts cannot be eliminated due to other dependencies, contact the author of the know-how protected block in order to obtain a compatible approved version.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

381

System acceptance 11.5 Compliance of the know-how protected F-blocks used in the safety program with their safety documentation.
S7-1200/1500 F-CPUs
 Signature of the know-how protected F-block
 Safety system version that was set while setting up the know-how protection
 Versions of all the used versioned LAD/FBD instructions
 Signatures of all called F-blocks
When performing a system acceptance, you have to carry out the following checks using the safety summary:
 The signature of each know-how protected F-block listed in the safety summary in the section "Know-how protected F-blocks in the safety program" must be identical with the signature documented by the author.
 The safety system version of each know-how protected F-block listed in the safety summary under "Know-how protected F-blocks in the safety program" must match one of the versions listed in Annex 1 of the Report for the TÜV Certificate.
 The versions of the versioned LAD/FBD instructions of each know-how protected F-block listed in the safety summary in the section "Know-how protected F-blocks in the safety program" must correspond to the versions documented by the author or must be functionally identical with them.
 The signatures of the F-blocks called in each know-how protected F-block listed in the safety summary in the section "Know-how protected F-blocks in the safety program" must correspond to the signatures (of the called F-blocks) documented by the author.
In case of differences, set the documented (or functionally identical) versions and use the Fblocks with the documented signatures. If the version conflicts cannot be eliminated due to other dependencies, contact the author of the know-how protected block in order to obtain a compatible approved version.

382

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.6 Completeness and correctness of the hardware configuration

11.6

Completeness and correctness of the hardware configuration

Introduction

The hardware configuration is an essential component of the project to be accepted. With the configuration of the hardware, you have set properties that can influence the safety of signals. You must document these settings with the safety summary to prove that you fulfill the safety requirements for your application.
The section "Hardware configuration of F-I/O" is available in the safety summary for this. This section consists of several tables:
 A table with information about the F-CPU and the ranges of F-destination addresses used and of the "Central F-source address" of the F-CPU.
 An overview table with the F-I/O used.
 A table for each F-I/O with information about the F-I/O and all parameters of the F-I/O with the configured values.
Because the user administration of the Web server is also part of the hardware configuration, authorization with "F-Admin" rights is also necessary here. For more information, refer to the section ""Web server F-Admins" area (S7-1200, S7-1500) (Page 90)".
Note
Note that you will find F-I/O that you address via safety-related I-slave-slave communication in the safety summary of the I-slave F-CPU and not in the F-CPU's safety summary of the assigned DP master.
The safety summary of the F-CPU of the DP master includes a note for this F-I/O in the overview table indicating that the F-I/O is not assigned to this F-CPU.
Note When using shared devices:
F-I/O that you address in a shared device can be found in the safety summary of the F-CPU of the IO controller to which it is assigned.
The safety summary of the F-CPUs of the other IO controllers between which the shared device is divided, includes a note in the overview table for this F-I/O that it is not assigned to this F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

383

System acceptance 11.6 Completeness and correctness of the hardware configuration
Procedure for checking that the hardware configuration is complete
Ensure that all configured F-I/O are included in the safety summary. Also make sure that there is no F-I/O that you have not configured as belonging to this F-CPU.
Note If configuration control (option handling) is used, the safety summary must contain all the FI/O devices of the maximum configuration. The following checks are to be carried out for al the F-I/Os of the maximum configuration.

384

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.6 Completeness and correctness of the hardware configuration
Procedure for checking the correctness of the hardware configuration using the safety summary
To check the hardware configuration for correctness, proceed as follows:
1. Check in the "Hardware configuration of F-IO" section to verify the uniqueness of the PROFIsafe addresses.
See sections PROFIsafe addresses for F-I/O of PROFIsafe address type 1 (Page 66) or PROFIsafe addresses for F-I/O of PROFIsafe address type 2 (Page 68), Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices (Page 76) and Recommendation for PROFIsafe address assignment (Page 63).
­ Check if the "Central F-source address" parameter of the individual F-CPUs differs network-wide. F-CPUs to which solely F-IOs of the PROFIsafe address type 1 are assigned do not have to be considered during this check.
­ For F-I/Os of PROFIsafe address type 1 check whether the F-destination addresses comply with the following warning:
WARNING
F-I/Os of PROFIsafe address type 1 are uniquely addressed by their F-destination address (e.g. with the switch setting on the address switch).
The F-destination address (and therefore also the switch setting on the address switch) of the F-I/O must be unique network-wide* and CPU-wide** (system-wide) for the entire F-I/O. The F-I/O of PROFIsafe address type 2 must also be considered. (S051)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the F-CPU of the I-slave and not to the F-CPU of the DP master / IO controller.
Note
For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

385

System acceptance 11.6 Completeness and correctness of the hardware configuration
­ For F-I/Os of PROFIsafe address type 2 check whether the F-destination addresses comply with the following warning:
WARNING
F-I/O of PROFIsafe address type 2 is uniquely addressed using a combination of Fsource address ("Central F-source address" parameter of the assigned F-CPU) and F-destination address.
The combination of F-source address and F-destination address for each F-I/O must be unique network-wide* and CPU-wide** (system-wide). In addition, the Fdestination address must not be occupied by F-I/O of PROFIsafe address type 1.
To ensure that addresses are unique across F-CPUs for supported configurations (Page 64), you need to ensure that the "Central F-source address" parameter of all F-CPUs is unique network-wide*. This is achieved through different settings for the "Central F-source address" parameter of the F-CPUs. (S052)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the F-CPU of the I-slave and not to the F-CPU of the DP master / IO controller.
Note
For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

386

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.6 Completeness and correctness of the hardware configuration
­ Check whether the PROFIsafe addresses of fail-safe GSD based DP slaves / GSD based I/O devices comply with the following warning:
WARNING
Check the documentation for your fail-safe GSD based DP slaves / fail-safe GSD based I/O devices to find out the valid PROFIsafe address type. If you do not find the necessary information, assume PROFIsafe address type 1. Proceed as described under PROFIsafe addresses for F-I/O of PROFIsafe address type 1 (Page 66) or PROFIsafe addresses for F-I/O of PROFIsafe address type 2 (Page 68).
Set the F-source address for fail-safe GSD based DP slaves / fail-safe GSD based I/O devices according to the manufacturer's specifications. If the F-source address needs to correspond to the "Central F-source address" parameter of the F-CPU (PROFIsafe address type 2), you will find the latter in the "Properties" tab of the FCPU. In this case, also check in the safety summary that the value of the F-CPU for the "Central F-source address" parameter matches the value of the F-source address of the fail-safe GSD based DP slave / fail-safe GSD based I/O device. (S053)
2. Check the safety-related parameters (including F-monitoring time or F_WD_Time) of all configured F-I/O.
You can find these parameters in the "Hardware configuration of F-I/O" section in the detailed tables for the F-I/O.
The table consists of two parts:
­ The left part contains the parameters which refer to the F-I/O itself ("Module data").
­ The right part contains the parameters of the individual channels ("Channel parameters")
These parameters must be set as prescribed by the safety requirements of your application.
When using fail-safe GSD based DP slaves/GSD based I/O devices, note the relevant documents for the possible additional safety-related (technological) parameters.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

387

System acceptance 11.6 Completeness and correctness of the hardware configuration
Note
F-I/O that are to be assigned the same safety-related parameters (except for PROFIsafe addresses) can be copied during configuration. Except for the PROFIsafe addresses, you no longer have to check the safety-related parameters individually. It is sufficient to compare the "Signature of F-parameters (without addresses)" in the "Hardware configuration of the F-I/O" section in the overview table. This also applies to fail-safe GSD based DP slaves/GSD based I/O devices without i-parameters. For GSD based DP slaves / GSD based I/O devices with i-parameters, it might be that "F-parameter signature (w/o addresses)" does not match, even though all safety-related parameters, except for the PROFIsafe addresses, do match. In this case, you need to compare all safety-related parameters.
Exception:
For F-I/Os that do not support the "RIOforFA-Safety" profile, you also need to compare the "Behavior after channel fault" parameter, if any, additionally to the "F-parameter signature (w/o addresses)".
3. Check whether the article numbers of the F-I/O in the safety summary correspond to the article numbers of the actual F-I/O in the system. If the article numbers are different, the existing F-I/O must be spare-part-compatible to the F-I/O listed in the safety summary.

388

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.6 Completeness and correctness of the hardware configuration
4. For non-supported configuration, see Configurations supported by the SIMATIC Safety Fsystem (Page 64).
WARNING
Note the following when using configurations that are not included in supported configurations: · Make sure that the F-I/O of this configuration appears in the safety summary and that
an F-I/O DB has been created for it. Otherwise, you cannot use the F-I/O in this configuration. (Contact Customer Support.) · For F-I/Os in the PROFINET IO environment**, you must check the PROFIsafe operating mode parameter (F_Par_Version) against the safety summary to make sure that it is correct. V2 mode must be set in the PROFINET IO environment. F-I/O which only support V1 mode must not be used in the PROFINET IO environment. · You must ensure that PROFIsafe address assignment is unique CPU-wide* and network-wide***: ­ Check the correctness of the PROFIsafe addresses with the help of the safety
summary. ­ Use the safety summary to check that the F-source address corresponds to the
"Central F-source address" parameter of the F-CPU for F-I/O of PROFIsafe address type 2. ­ For F-I/O of PROFIsafe address type 1 or if you cannot set the F-source address in accordance with the "Central F-source address" parameter of the F-CPU, you will have to ensure the uniqueness of the PROFIsafe address solely by assigning a unique F-destination address.
You must check the uniqueness of the F-destination address individually for each FI/O based on the safety summary in a configuration that is not supported. (S050)
* "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the F-CPU of the I-slave and not to the F-CPU of the DP master / IO controller.
** The F-I/O is located in the "PROFINET IO environment" if at least part of safety-related communication with the F-CPU takes place via PROFINET IO. If the F-I/O is connected via I-slave-slave communication, also keep in mind the communication line to the DP master/IO controller.
*** A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
Note
For more information on the assignment of PROFIsafe addresses that are unique for the CPU and across the network, see this FAQ (https://support.industry.siemens.com/cs/ww/en/view/109740240).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

389

System acceptance 11.6 Completeness and correctness of the hardware configuration
5. Check that only authorized persons have the "F-Admin" right in the Safety Administration Editor or in the standard printout of the project data.
WARNING
The "F-Admin" authorization for the Web server without password protection ("Everybody" user) is only intended for test purposes, commissioning, etc. This means only when the system is not in productive operation. In this case, you must ensure the safety of the system through other organizational measures, for example through protected access to certain areas.
Before you transition into productive operation, you must remove the "F-Admin" right for the "Everybody" user.
Only authorized personnel are permitted to have access to the password of the Web server user with "F-Admin" right. After downloading the hardware configuration, check whether only permitted users of the Web server have the "F-Admin" right on the F-CPU. To do so, use the online view of the Safety Administration Editor.
Saving the login file and the password of the Web server in the browser is only permitted when use by unauthorized persons is prevented through other organizational measures (e.g. access protection to the PG/PC). (S064)

390

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.7 Correctness and completeness of the communication configuration

11.7

Correctness and completeness of the communication configuration

Introduction

Safety-related communication is based on the mechanisms of the standard communication of STEP 7.
To ensure that errors which standard communication does not discover are detected, safetyrelated communication connections between F-CPUs are secured. Further parameters are required for this, which you have to document and check on acceptance.
For this purpose, the "Block parameters for safety-related CPU-CPU-communication" and "Overview of communication via Flexible F-Link" sections are available in the safety summary. The section "Block parameters for safety-related CPU-CPU-communication" contains up to two tables (for communication via PROFIBUS DP or PROFINET IO and for communication via S7 connections). The section "Overview of communication via Flexible FLink" contains a table with an overview of the connection configurations and a "Communication via Flexible F-Link for UDT" table for each used F-compliant PLC data type (UDT).
Not all safety-related communication is available for all F-CPUs. For more information, refer to the section "Safety-related communication (Page 209)".

Procedure for checking for correctness of the communication configuration
To check the communication configuration for correctness, proceed as follows:
WARNING
During acceptance, use the safety summary to verify that the offsets of all elements of the F-compliant PLC data types (UDT) match for the send and receive data within the safety message frame. For this purpose, all members and addresses are listed in the safety summary per UDT. (S088)
WARNING
The value for the respective F-communication ID (input R_ID; data type: DWORD) can be freely selected; however, it must be odd and unique for all safety-related communication connections network-wide* and CPU-wide. The value R_ID + 1 is internally assigned and must not be used. You must supply inputs ID and R_ID with constant values when calling the instruction. Direct read or write access to the associated instance DB is not permitted in the safety program. (S020)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

391

System acceptance 11.7 Correctness and completeness of the communication configuration
To check the communication via Flexible F-Link for correctness, follow these steps:
WARNING
When a new Flexible F-Link communication is created in the Safety Administration Editor, a unique F-communication UUID for the communication is provided by the system. By copying communications in the Safety Administration Editor within the parameterization table or when copying to another F-CPU, the F-communication UUIDs are not regenerated and are therefore not unique anymore. If the copy is used to configure a new communication relationship, you yourself must ensure the uniqueness. To do this select the affected UUIDs and regenerate via the "Generate UUID" context menu. The uniqueness must be checked in the safety summary during acceptance. (S087)

392

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

11.8

System acceptance 11.8 Identity of online and offline program

Identity of online and offline program
Once you have checked all properties of the offline safety program you must ensure that the safety program is identical on the F-CPU on which it is supposed to be run.
1. Connect online with the F-CPU. If multiple F-CPUs can be reached over a network (e.g. Industrial Ethernet) by the programming device / PC, you have to ensure that you are connected with the correct F-CPU. For example with "Online & diagnostics" > "Online accesses " > "Flash LED".
2. Open the Safety Administration Editor.
3. Check whether the online and offline F-collective signatures match the F-collective signatures from the safety summary.
4. Now check in the "General" area under "Safety program status" whether the safety programs are identical online and offline.
Use the "Status" and "Version comparison" display to check which situation you are dealing with and, if necessary, execute the recommended measure:

Status

Version comparison
not relevant

Statement
The safety programs are different.

Measure
· Ensure that you are connected with the desired FCPU.
· Download the safety program to the F-CPU.

The safety programs are identical but different versions of Fblocks are used.
The safety programs are identical.

The safety program must be downloaded to the F-CPU for the latest versions to become effective.
None

Keep in mind that only a change comparison will provide reliable information as to whether the safety programs are identical. The display of signatures is used for quick identification of changes.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

393

System acceptance 11.9 Other characteristics

11.9

Other characteristics

Introduction

In addition, you must check a few more characteristics that are also relevant for the acceptance of the project.

Plausibility check for data transfer from the standard program to the safety program
Check to determine whether a plausibility check was programmed for all data transferred from the standard user program to the safety program. For this purpose, the "Data from the standard user program" section lists all tags of the standard user program that you are reading in the safety program. Tags of the standard user program that you are writing in the safety program are not listed here because a plausibility check is not required for them. For more information, refer to the S015 warning in section "Data Transfer from Standard User Program to Safety Program (Page 207)".

Checking the program version
Check whether the version of STEP 7 Safety used to create the summary (in the footer of the printout) is as least as high as the version used to compile the safety program. The latter version can be found in the "General information" section of the safety summary under "Used Versions". Both versions must be listed in Annex 1 of the Report for the TÜV certificate.

Ability to disable safety mode
Make sure that safety mode cannot be disabled. For information about this, refer to section "General information" under "Safety program settings". This setting ensures that the safety mode of the safety program cannot be disabled inadvertently. For more information, refer to the S027 warning in section "Disabling safety mode (Page 360)".

Access protection
Check in the "General information" section under "Access protection" to determine whether the setting for access protection is permitted. Note the following warning.

394

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.9 Other characteristics
Otherwise, the project must not be accepted, because the safety program in the F-CPU is not protected against unauthorized accesses.
WARNING
(S7-300, S7-400) In safety mode, access with the CPU password must not be authorized during changes to the standard user program as this would also allow changes to the safety program. To rule out this possibility, you must configure the protection level "Write protection for fail-safe blocks" and configure a password for the F-CPU. If only one person is authorized to change the standard user program and the safety program, the protection level "Write protection" or "Read/write protection" should be configured so that other persons have only limited access or no access at all to the entire user program (standard and safety programs). (S001)
WARNING
(S7-1200, S7-1500) In safety mode, the safety program must be password-protected. For this purpose, configure at least the protection level "Full access (no protection)" and assign a password under "Full access incl. fail-safe (no protection)". This protection level only allows full access to the standard user program, not to F-blocks. If you select a higher protection level, for example to protect the standard user program, you must assign an additional password for "Full access (no protection)". Assign different passwords for the individual protection levels. (S041)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

395

System acceptance 11.10 Acceptance of Changes

11.10

Acceptance of Changes

Introduction

In general, you can adopt the same approach for the acceptance of changes as the initial acceptance (see Overview of System Acceptance (Page 376)). You must check all safety-related project data (safety program and safety-related hardware configuration) for changes.
WARNING
In the case of acceptance of changes, you must check whether the intended changes were made correctly and completely. You must also check whether unintentional changes may have been made at another location (for example, I/O or instructions that were added). (S072)
To avoid the acceptance of the entire system in case of negligible changes, STEP 7 Safety helps you to identify those parts of your safety program that have changed. For an acceptance of changes, it is sufficient to check the following:  Checking the changed or newly added F-blocks.  Checking the changed or newly added instructions and F-system blocks.  Checking the safety-related parameters of the changed or newly added F-I/O.  Checking the structure of the safety-related HW configuration (e.g. slot positions or start
addresses of the F-I/Os).  Checking the changed communication connections with Flexible F-Link. You then perform a function test of the F-blocks/F-I/Os affected by the changes. Check that the changes have no impact on the unchanged parts of safety-related project data, in particular for deleted F-blocks or deleted F-I/O.
Note Acceptance of changes is not possible after CPU migration.

396

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.10 Acceptance of Changes
WARNING
When you make changes in which the assignment of input/output addresses and wiring can change, then you must perform a wiring test (Page 363). Examples for such changes are: · Adding F-I/O · Changing the start address of F-I/O · Changing the slot position of F-I/O · Changing
­ the rack ­ the slave/device address ­ the PROFIBUS DP/PROFINET IO subnet ­ the IP address ­ the device name (S071)
Detection of changes in the safety-related project data
You need two TIA projects to identify relevant changes:  Reference project: Contains the initially accepted project data. They are the starting point
for the upcoming comparison.  Project to be accepted: Contains the current safety-related project data. It is the result of
the reference project and the changes made in it. To detect changes you have to compare the safety-related project data from the reference project with the data of the project to be accepted. The F-collective signature is a quick first step to determine whether relevant changes have been made. If the signature has changed, relevant changes are present in the safety-related project data. (S7-1200, S7-1500) You can now use the F-SW collective signature, the F-HW collective signature and the F-communication address signature to narrow down whether these changes are contained in the safety program (F-SW collective signature changed) and/or in the safety-related project data (F-HW collective signature) and/or in the communication data (with Flexible F-Link, F-communication address signature).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

397

System acceptance 11.10 Acceptance of Changes
Detection of changes in the safety program
A quick possibility to detect changes in the safety program is the comparison of the F-SW collective signature of the safety-related project data in the reference project with the F-SW collective signature in the safety-related project data in the project to be accepted. If they differ from each other, this means that there are changes in the safety program which need to be validated and, if necessary, accepted.
To localize changes in the safety program, perform an offline-offline comparison between the safety program to be accepted of the project to be accepted and the safety program of the reference project (see Comparing Safety Programs (Page 354)). Use filter setting "Compare only F-blocks relevant for certification". This limits the output of the comparison to exactly those F-blocks that must be considered for the acceptance of changes.
WARNING
Make sure that the comparison criterion "Safety" is enabled so that the criteria relevant for an acceptance of changes are taken into consideration in the comparison. (S069)
By disabling the remaining comparison criteria, you can deselect those differences that are irrelevant for the acceptance of changes (e.g. time stamp).
The status of the comparison helps you to identify which F-blocks were changed.
Detection of changes in the safety-related hardware configuration
A quick possibility to detect changes in the safety-related hardware configuration is the comparison of the F-HW collective signature of the safety-related project data in the reference project with the F-HW collective signature of the safety-related project data in the project to be accepted. If they differ from each other, this means that there are changes in the safety-related hardware configuration which need to be validated and, if necessary, accepted.
If the F-HW collective signature has changed and all F-I/O devices are unchanged, this indicates that safety-related parameters of the F-CPU have changed, or that the structure of the safety-related hardware configuration has changed, for example, slot positions.
There are two possible ways for localizing safety-related changes in the safety-related hardware configuration:
 Comparison in the comparison editor
 Comparison based on two safety summaries

398

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

System acceptance 11.10 Acceptance of Changes
Comparison in the comparison editor
The reference project and the project to be accepted must be consistent and compiled for a comparison. To perform the comparison, see Comparing Safety Programs (Page 354).
1. Navigate in the comparison result to the "System blocks > STEP 7 Safety > F-I/O DBs" folder. All data blocks listed in this folder are F-I/O-DBs and are each assigned to an FI/O.
­ If the F-I/O-DBs in the comparison result are identical, this means that the safetyrelated configuration of the assigned F-I/O was also not changed. Standardparameters might have changed.
­ If the F-I/O-DBs in the comparison result are not identical, this means that the safetyrelated configuration of the assigned F-I/O was also changed.
­ If F-I/O DBs in the comparison result are marked as "not existing", associated F-I/O devices might have been deleted or added or the name or start addresses of the F-I/O devices have been changed. In this case you can find the assignment of an F-I/O DB to a specific F-I/O in the safety summary under "Hardware configuration of F-I/O".
2. If you have found changed F-I/O, you can check the changed parameters in the safety summary as described below.
Comparison based on two safety summaries
Carry out a comparison based on two safety summaries as follows:
1. In the section "Hardware configuration of the F-I/O" compare the start addresses (I/O addresses), the parameter "Behavior after channel fault" and the slot of the F-I/O.
2. In the overview table in the "Hardware configuration of F-I/O" section, compare the parameter CRCs of the F-I/O with those in the safety summary of the accepted F-CPU.
­ If the "Parameter signature (without addresses)" is different for an F-I/O, this indicates the existence of a safety-related change of safety-related parameters of the F-I/O. In addition, the PROFIsafe addresses might have also changed.
In this case, check the corresponding detail table of the safety-related parameters of the F-I/O and verify the uniqueness of the PROFIsafe addresses.
­ If the "Parameter signature (w/o addresses)" is identical, only the PROFIsafe addresses can have been changed.
In this case it is sufficient to verify the uniqueness of the PROFIsafe addresses.
Check as described in section "Completeness and correctness of the hardware configuration (Page 383)".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

399

System acceptance 11.10 Acceptance of Changes

(S7-1200, S7-1500) Detecting changes in the communication with Flexible F-Link
A quick possibility to detect changes in the configuration of the communication with Flexible F-Link is the comparison of the F-communication address signature of the safety-related project data in the reference project with the F-communication address signature of the safety-related project data in the project to be accepted. If they differ from each other, this means that there are changes in the configuration of the communication (UUID only) with Flexible F-Link that must be validated and, if necessary, accepted. Other communication parameters such as timeout or transmission direction are covered by the F-SW collective signature (see "Detection of changes in the safety program" above).
To localize changes in the configuration of the communication with Flexible F-Link, compare the table "Overview of communications via Flexible F-Link" of the reference project in the respective safety summary with the one of the project to be accepted.

See also

Accessing tags of the F-I/O DB (Page 184)

400

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Operation and Maintenance

12

12.1

Notes on Safety Mode of the Safety Program

Introduction

Pay attention to the following important notes on safety mode of the safety program.

Use of simulation devices/simulation programs
WARNING
Use of simulation devices/simulation programs in plants
If you operate simulation devices or simulation programs that generate safety message frames, for example, based on PROFIsafe, and make them available to the SIMATIC Safety F-system via the bus system (such as PROFIBUS DP or PROFINET IO), you must ensure the safety of the F-system using organizational measures, such as operational monitoring and manual safety shutdown. Note, for example, that a protocol analyzer is not permitted to perform any function that reproduces recorded message frame sequences with correct time behavior. S7-PLCSIM version < 15.1 or S7-PLCSIM Advanced version < 2.0 SP1 and safety system version < 2.2
If you use S7-PLCSIM (Page 359) to simulate safety programs, the measures mentioned above are not necessary because S7-PLCSIM cannot establish an online connection to a real component. S7-PLCSIM version  15.1 or S7-PLCSIM Advanced version  2.0 SP1 or safety system version  2.2
You must ensure the safety of the F-system with organizational measures, for example, through operation monitoring and manual safety shutdown.
In addition, the loading of a safety program with Safety System version 2.2 and higher onto an S7-PLCSIM is only permissible as of S7-PLCSIM V15.1 or S7-PLCSIM Advanced V2.0 SP1. (S030)
Note
For an S7-PLCSIM before V15.1 or S7-PLCSIM Advanced before V2.0 SP1 and a Safety System version 2.2 and higher, the safety program changes to STOP and a corresponding diagnostics event is issued.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

401

Operation and Maintenance 12.1 Notes on Safety Mode of the Safety Program
Switching F-CPU to STOP mode
WARNING
STOP, for example, via programming device/PC, mode switch, communication function or "STP" instruction
Initiating STOP, for example, by means of programming device/PC operation, mode switch, communication function or "STP" instruction, as well as maintaining the STOP state is not safety-oriented. This STOP state can be easily (and unintentionally) revoked, for example, by programming device/PC operation.
When an F-CPU is switched from STOP to RUN mode, the standard user program starts up in the usual way. When the safety program is started up, all F-DBs are initialized with the values from the load memory - as is the case with a cold restart. This means that saved error information is lost. The F-system automatically reintegrates the F-I/O.
If your process does not allow such a startup, you must program a restart/startup protection in the safety program: The output of process data must be blocked until manually enabled. This enable must not occur until it is safe to output process data and faults have been corrected (see Programming startup protection (Page 165)). (S031)

402

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Operation and Maintenance 12.1 Notes on Safety Mode of the Safety Program
CRC error in safety-related communication
Note CRC error in safety-related communication
If you observe that an F-CPU requests manual acknowledgement of a CRC error more than once within the space of 100 hours, and this occurs repeatedly, check whether the PROFINET or PROFIBUS installation guidelines have been followed.
There is a CRC error if: · The ACK_REQ tag of the F-I/O DB is set and the DIAG tag of the F-I/O DB (bit 2 or bit 6)
indicates CRC errors or · A CRC error is entered in the diagnostic buffer of the F-CPU
In this case, the failure probability values (https://support.industry.siemens.com/cs/ww/en/view/109481784) (PFDavg/PFH) for safetyrelated communication no longer apply.
Information on installation guidelines for PROFINET and PROFIBUS can be found in: · PROFIBUS Installation Guidelines (www.profibus.com/PBInstallationGuide) · PROFIBUS Interconnection Technology
(http://www.profibus.com/nc/downloads/downloads/profibus-interconnectiontechnology/display/) · PROFINET Installation Guidelines (www.profibus.com/PNInstallationGuide) · PROFINET Cabling and Interconnection Technology (http://www.profibus.com/nc/downloads/downloads/profinet-cabling-and-interconnectiontechnology/display/) · PROFIsafe Environment Requirements (www.profibus.com/PROFIsafeRequirements)
When your review indicates that the configuration guidelines for PROFIBUS and PROFINET have been met, contact Customer Support.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

403

Operation and Maintenance 12.2 Replacing Software and Hardware Components

12.2

Replacing Software and Hardware Components

Replacement of software components
When replacing software components on your programming device or PC, e.g. with a new version of STEP 7, you must adhere to the information regarding upward and downward compatibility in the documentation and readme files for these products (e.g. STEP 7 Safety). When replacing STEP 7 Safety, check whether the version of STEP 7 Safety is listed in Annex 1 of the Report for the TÜV certificate.
Replacement of hardware components
Hardware components for SIMATIC Safety (F-CPU, F-I/O, batteries, etc.) are replaced in the same way as in standard automation systems.
Replacement of S7-1500 F software Controllers
WARNING
After replacing a CPU module (e.g. new PC with data storage medium of old PC) or replacement of the data storage medium (e.g. data storage medium with safety program 1 is replaced with data storage medium with safety program 2), you must use the Panel to check if the correct collective F-signature is displayed or carry out a program identification. (S066)

Removing and inserting F-I/O during operation
If removing and inserting is possible for standard I/O during operation, it is also possible for the respective F-I/O. However, be aware that replacing an F-I/O module during operation can cause a communication error in the F-CPU.
You must acknowledge the communication error in your safety program in the ACK_REI tag of the F-I/O DB (Page 174) or, alternatively, by using the "ACK_GL (Page 518)" instruction. Without an acknowledgment, the F-I/O will remain passivated.
CPU firmware update
Check of the CPU operating system for F-approval: When using a new CPU operating system (firmware update), you must check to see if the CPU operating system you are using is approved for use in an F-system.
The minimum CPU operating system versions with guaranteed F-capability are specified in the appendix of the Certificate. This information and any notes on the new CPU operating system must be taken into account.

404

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Operation and Maintenance 12.2 Replacing Software and Hardware Components

Firmware update for interface module
When using a new operating system for an interface module, e.g. IM 151-1 HIGH FEATURE ET 200S (firmware update), you must observe the following:
If you have selected the "Activate firmware after update" option for the firmware update (see Help on STEP 7, "Online & Diagnostics"), the IM will be automatically reset following a successful download operation and will then run on the new operating system. Note that the firmware update for interface modules during operation generates a communication error in the F-CPU.
You must acknowledge the communication error in your safety program in the ACK_REI tag of the F-I/O DB (Page 174) or, alternatively, by using the "ACK_GL (Page 518)" instruction. Without an acknowledgment, the F-I/O will remain passivated.

Preventive maintenance (proof test)
Proof test for complex electronic components generally means replacement with new, unused components.

PFDavg and PFH values for S7-300/400 F-CPUs and F-I/O
You will find a list of the failure probability values (PFDavg, PFH values) for components that can be used in SIMATIC Safety on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109481784).

PFDavg and PFH values for S7-1200/1500 F-CPUs
Below are the probability of failure values (PFDavg, PFH values) for S7-1200/1500 F-CPUs with a service life of 20 years and an mission time of 100 hours:

Low demand mode low demand mode According to IEC 61508:2010: PFDavg = Average probability of dangerous failure on demand < 2E-05

High demand or continuous mode high demand/continuous mode According to IEC 61508:2010: PFH = Average frequency of a dangerous failure [h-1]
< 1E-09

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

405

Operation and Maintenance 12.2 Replacing Software and Hardware Components

PFDavg and PFH values for safety-related communication
Below you will find the failure probability values (PFDavg, PFH values) for safety-related communication:

Low demand mode low demand mode According to IEC 61508:2010: PFDavg = Average probability of dangerous failure on demand < 1E-05*

High demand or continuous mode high demand/continuous mode According to IEC 61508:2010: PFH = Average frequency of a dangerous failure [h-1]
< 1E-09*

* Note on S7-300/400 F-CPUs: The PFH value is valid under the assumption that a maximum of 100 F-I/Os are involved in a safety function. If you use more than 100 F-I/Os, you have to also add 4E-12 per F-I/O for the safety function. The PFDavg value is valid for a mission time of 20 years and under the assumption, that a maximum of 25 F-I/Os are involved in a safety function. If more than 25 F-I/OS are used, you need to add 3.5E-7 per F-I/O for this safety function.

406

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Operation and Maintenance 12.3 Guide to diagnostics (S7-300, S7-400)

12.3

Guide to diagnostics (S7-300, S7-400)

Introduction

Here you find a compilation of diagnostic capabilities that can be evaluated for your system when an error occurs. Most of the diagnostic capabilities are the same as those in standard automation systems. The sequence of steps represents a recommendation.

Steps for evaluating diagnostic capabilities
The following table shows the steps you take to evaluate diagnostic capabilities.

Step 1
2 3

Procedure Evaluate LEDs on the hardware (F-CPU, F-I/O):
· BUSF LED on the F-CPU: Flashes when a communication error occurs on PROFIBUS DP/PROFINET IO;

Reference Manuals for F-CPU and F-I/O

On if a programming error occurs when OB 85 and OB 121 are programmed (e.g. instance DB is not loaded)
· STOP LED on the F-CPU: illuminates when the F-CPU is in STOP mode
· Fault LEDs on the F-I/O: e.g. SF-LED (group error LED) on if any fault occurs in the individual F-I/O

Evaluate diagnostic buffer of the modules:
You read the diagnostic buffer of a module (F-CPU, F-I/O, CP) in its online and diagnostic view in the "Diagnostic buffer" group under the "Online & Diagnostics" folder.

Help on STEP 7 and manuals for the F-CPU and F-I/O

Evaluate stacks of the F-CPU:

Help on STEP 7

when the F-CPU is in STOP mode, read the following successively:

· Block stack: Check whether STOP mode of the F-CPU was triggered by an F-block of the safety program

· Interruption stack

· Local data stack

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

407

Operation and Maintenance 12.4 Guide to diagnostics (S7-1500)

Step 4
5

Procedure

Reference

Evaluate diagnostic tag of the F-I/O DB using testing and commissioning functions, by means of an operator control and monitoring system, or in the standard user program:
Evaluate the DIAG tag in the F-I/O DB

F-I/O access (Page 166)

Evaluate diagnostic outputs of the instance DBs of instructions using testing Instructions and commissioning functions, using an operator control and monitoring system, or in the standard user program:

· Evaluate the following for MUTING, EV1oo2DI, TWO_H_EN, MUT_P, ESTOP1, FDBACK, SFDOOR in the assigned instance DB:

­ Output DIAG

· Evaluate the following for SENDDP or RCVDP in the assigned instance DB:

­ Output RET_DPRD/RET_DPWR ­ Output DIAG

· Evaluate the following for SENDS7 or RCVS7 in the assigned instance DB:

­ Output STAT_RCV

­ Output STAT_SND

­ Output DIAG

Tip on RET_DPRD/RET_DPWR
The diagnostic information of the RET_DPRD/RET_DPWR outputs of the SENDDP or RCVDP instructions corresponds to the diagnostic information of the RETVAL return value of the "DPRD_DAT" and "DPWR_DAT" instructions. You can find the description in the help on STEP 7 for the "DPRD_DAT" and "DPWR_DAT" instructions.
Tip: STAT_RCV and STAT_SND
The diagnostic information of the STAT_RCV output of the SENDS7 or RCVS7 instructions corresponds to the diagnostic information of the STATUS output of the "URCV" instruction. The diagnostic information of the STAT_SND output of the SENDS7 or RCVS7 instructions corresponds to the diagnostic information of the STATUS output of the "USEND" instruction. You can find the description in the help on STEP 7 for the instruction "UCRV" or "USEND" .

12.4

Guide to diagnostics (S7-1500)
Detailed information on diagnostics for an S7-1500 F-CPU can be found in the Diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function manual.

408

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

12.5

Operation and Maintenance 12.5 Guide to diagnostics (S7-1200)
Guide to diagnostics (S7-1200)
Detailed information on diagnostics for an S7-1200 F-CPU can be found in the S7-1200 Functional Safety manual (http://support.automation.siemens.com/WW/view/en/104547552).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

409

STEP 7 Safety V16 instructions

13

Overview of instructions for the safety program
When programming an F-block, you can find all instructions available for programming an Fblock in LAD or FBD with the configured F-CPU in the "Instructions" task card. In addition to the instructions that are familiar to you from programming a standard block, there are also special safety functions, e.g., for two-hand monitoring, discrepancy analysis, muting, emergency STOP/emergency OFF, safety door monitoring, and feedback monitoring and instructions for safety-related CPU-CPU communication.
Note the following
Note Enable input EN and enable output ENO cannot be connected. Exception: (S7-1200, S7-1500) With the following instructions you can program overflow detection by connecting the enable output ENO: · ADD: Add (STEP 7 Safety V16) (Page 554) · SUB: Subtract (STEP 7 Safety V16) (Page 557) · MUL: Multiply (STEP 7 Safety V16) (Page 560) · DIV: Divide (STEP 7 Safety V16) (Page 563) · NEG: Create twos complement (STEP 7 Safety V16) (Page 567) · ABS: Form absolute value (STEP 7 Safety V16) (S7-1200, S7-1500) (Page 570) · CONVERT: Convert value (STEP 7 Safety V16) (Page 584)

410

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.1

General

STEP 7 Safety V16 instructions 13.1 General

13.1.1

LAD

13.1.1.1

New network (STEP 7 Safety V16)

Requirement

An F-block is open.

Procedure

To insert a new network, follow these steps: 1. Select the network after which you want to insert a new network. 2. Select the "Insert network" command in the shortcut menu.
Note If you insert an element into the last empty network of the F-block in an LAD program, a new empty network is automatically inserted below it.

Result

A new empty network is inserted into the F-block.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

411

STEP 7 Safety V16 instructions 13.1 General

13.1.1.2

Empty box (STEP 7 Safety V16)

Requirement

A network is available.

Procedure

To insert an LAD instruction into a network using an empty box, follow these steps:
1. Open the "Instructions" task card.
2. Navigate to "Basic instructions > General > Empty box".
3. Use a drag-and-drop operation to move the "Empty box" element to the desired place in the network.
4. Hover the cursor over the yellow triangle in the top right corner of the empty box.
A drop-down list is displayed.
5. Select the required instruction from the drop-down list.
If the instruction acts as a function block (FB) within the system, the "Call options" dialog opens. In this dialog, you can create an instance data block for the function block, either as a single instance or, if necessary, multi-instance, in which data of the inserted instruction are stored. Once it is created, the new instance data block can be found in the "Program resources" folder in the project tree under "Program blocks > System blocks". If you have selected "multi-instance", you can find it in the block interface in the "Static" section.

Result

The empty box is changed to the appropriate instruction. Placeholders are inserted for the parameters.

412

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.1 General

13.1.1.3

Open branching (STEP 7 Safety V16)

Description

Use branches to program parallel connections with the Ladder Logic (LAD) programming language. Branches are inserted into the main current path. You can insert several contacts into the branch, thereby creating a parallel connection from series connections. You can program complex ladder diagrams in this way.

Requirement

 A network is available.  The network contains elements.

Procedure

To insert a new branch in a network, follow these steps: 1. Open the "Instructions" task card. 2. Navigate to "Basic instructions > General > Open branch". 3. Use a drag-and-drop operation to move the element to the desired place in the network. 4. If you want to connect the new branch directly to the power rail, drag the element to the
power rail.

Example

The following figure provides an example of how to use branches:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

413

STEP 7 Safety V16 instructions 13.1 General

13.1.1.4

Close branching (STEP 7 Safety V16)

Description

Branches must be closed again at suitable places. If necessary, branches will be arranged so that they do not cross each other.

Requirement

A branch is available.

Procedure

To close an open branch, follow these steps: 1. Select the open branch. 2. Press and hold down the left mouse button.
A dashed line will appear as soon as the cursor is moved. 3. Drag the dashed line to a suitable place on the network. Permissible connections are
indicated by green lines. 4. Release the left mouse button.

Example

The figure below provides an example of how to use branches:

414

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.1 General

13.1.2

FBD

13.1.2.1

New network (STEP 7 Safety V16)

Requirement

An F-block is open.

Procedure

To insert a new network, follow these steps: 1. Select the network after which you want to insert a new network. 2. Select the "Insert network" command in the shortcut menu.
Note If you insert an element into the last empty network of the F-block in an FBD program, a new empty network is automatically inserted below it.

Result

A new empty network is inserted into the F-block.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

415

STEP 7 Safety V16 instructions 13.1 General

13.1.2.2

Empty box (STEP 7 Safety V16)

Requirement

A network is available.

Procedure

To insert FBD elements into a network using an empty box, follow these steps:
1. Open the "Instructions" task card.
2. Navigate to "Basic instructions > General > Empty box".
3. Use a drag-and-drop operation to move the "Empty box" element to the desired place in the network.
4. Hover the cursor over the yellow triangle in the top right corner of the empty box.
A drop-down list is displayed.
5. Select the desired FBD element from the drop-down list.
If the instruction acts as a function block (FB) within the system, the "Call options" dialog opens. In this dialog, you can create an instance data block for the function block, either as a single instance or, if necessary, multi-instance, in which data of the inserted instruction are stored. Once it is created, the new instance data block can be found in the "Program resources" folder in the project tree under "Program blocks > System blocks". If you have selected "multi-instance", you can find it in the block interface in the "Static" section.

Result

The empty box is changed to the appropriate instruction. Placeholders are inserted for the parameters.

416

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.1 General

13.1.2.3

Open branching (STEP 7 Safety V16)

Description

You use branches, which you insert between the boxes, to program parallel connections with the Function Block Diagram (FBD) programming language You can insert additional boxes in the branch, thereby programming complex function block diagrams.

Requirement

A network is available.

Procedure

To insert a new branch in a network, follow these steps: 1. Open the "Instructions" task card. 2. Navigate in the pane to "Basic instructions > General > Branch". 3. Use a drag-and-drop operation to move the element to the desired place to a connecting
line between two boxes.

Example

The following figure provides an example of how to use branches:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

417

STEP 7 Safety V16 instructions 13.1 General

13.1.2.4

Insert binary input (STEP 7 Safety V16)

Description

Use the "Insert binary input" instruction to expand the box of one of the following instructions by a binary input:  "AND logic operation"  "OR logic operation"  "EXCLUSIVE OR logic operation" You can query the signal state of several operands by expanding the instruction box.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description
The operand indicates the bit whose signal state will be queried.

Example

The following example shows how the instruction works:

See also

The box of instruction "AND logic operation" has been expanded by an additional binary input at which the signal state of operand "TagIn_3" is queried. Output "TagOut" is set when the signal state of operands "TagIn_1", "TagIn_2", and "TagIn_3" is "1".
AND logic operation (STEP 7 Safety V16) (Page 439) OR logic operation (STEP 7 Safety V16) (Page 441) X: EXCLUSIVE OR logic operation (STEP 7 Safety V16) (Page 442)

418

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.1 General

13.1.2.5

Invert RLO (STEP 7 Safety V16)

Description

You can use the "Invert RLO" instruction to invert the result of logic operation (RLO).

Example

The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:
 The "TagIn_1" and/or "TagIn_2" input has the signal state "0".
 The "TagIn_3" or "TagIn_4" input has the signal state "0" or the "TagIn_5" input has the signal state "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

419

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2

Bit logic operations

13.2.1

LAD

13.2.1.1

---| |---: NO contact (STEP 7 Safety V16)

Description

The activation of the normally open contact depends on the signal state of the associated operand. If the operand has signal state "1," the normally open contact is closed. Power flows from the left power rail through the normally open contact into the right power rail and the signal state at the output of the instruction is set to "1".
If the operand has signal state "0," the normally open contact is not activated. The power flow to the right power rail is interrupted and the signal state at the output of the instruction is reset to "0".
Two or more normally open contacts are linked bit-by-bit by AND when connected in series. With a series connection, power flows when all contacts are closed.
The normally open contacts are linked by OR when connected in parallel. With a parallel connection, power flows when one of the contacts is closed.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description Operand whose signal state is queried.

Example

The following example shows how the instruction works:

Operand "TagOut" is set when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state at operand "TagIn_3" is "1".

420

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.2

---| / |---: NC contact (STEP 7 Safety V16)

Description

The activation of the normally closed contact depends on the signal state of the associated operand. If the operand has signal state "1", the normally closed contact is opened and the signal state at the output of the instruction is reset to "0".
If the operand has signal state "0", the normally closed contact is not activated and the signal state at the output of the instruction is set to "1".
Two or more normally closed contacts are linked bit-by-bit by AND when connected in series. With a series connection, power flows when all contacts are closed.
The normally closed contacts are linked by OR when connected in parallel. With a parallel connection, power flows when one of the contacts is closed.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description Operand whose signal state is queried.

Example

The following example shows how the instruction works:

Operand "TagOut" is set when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state at operand "TagIn_3" is "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

421

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.3

--|NOT|--: Invert RLO (STEP 7 Safety V16)

Description

You can use the "Invert RLO" instruction to invert the signal state of the result of logic operation (RLO). When the signal state is "1" at the input of the instruction, the output of the instruction has the signal state "0". When the signal state is "0" at the input of the instruction, the output has the signal state "1".

Example

The following example shows how the instruction works:

Operand "TagOut" is reset when one of the following conditions is fulfilled:  Operand "TagIn_1" has signal state "1".  Operands "TagIn_2" and "TagIn_3" have signal state "1".

422

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.4

---( )---: Assignment (STEP 7 Safety V16)

Description

You can use the "Assignment" instruction to set the bit of a specified operand. When the result of logic operation (RLO) at the input of the coil is "1," the specified operand is set to signal state "1". When the signal state is "0" at the input of the coil, the bit of the specified operand is reset to "0".
The instruction does not influence the RLO. The RLO at the input of the coil is sent immediately to the output.
The "Assignment" instruction can be placed at any position in the network.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand to which the RLO is assigned.

Example

The following example shows how the instruction works:

Operand "TagOut" is set when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state at operand "TagIn_3" is "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

423

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.5

---( R )---: Reset output (STEP 7 Safety V16)

Description

You can use the "Reset output" instruction to reset the signal state of a specified operand to "0".
If power flows to the coil (RLO is "1"), the specified operand is set to "0". If the result of logic operation at the input of the coil is "0" (no signal flow to the coil), the signal state of the specified operand remains unchanged.
The instruction does not influence the RLO. The RLO at the input of the coil is sent directly to the output of the coil.
Note
If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.
Note
You cannot use the "process image of the inputs", "process image of the outputs" from standard I/O and "standard DB" and "bit memory" operand areas for the operands of the instruction.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand that is reset when RLO = "1".

Example

The following example shows how the instruction works:

Operand "TagOut" is reset when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state of operand "TagIn_3" is "0".

424

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.6

---( S )---: Set output (STEP 7 Safety V16)

Description

You can use the "Set output" instruction to set the signal state of a specified operand to "1". If power flows to the coil (RLO is "1"), the specified operand is set to "1". If the result of logic operation at the input of the coil is "0" (no signal flow to the coil), the signal state of the specified operand remains unchanged. The instruction does not influence the RLO. The RLO at the input of the coil is sent directly to the output of the coil.
Note The instruction is not executed if it is applied to an output of an F-I/O that is passivated (e.g., during startup of the F-system). Therefore, it is preferable to access outputs of the F-I/O using only the "Assignment" instruction. An F-I/O output is passivated if QBAD or QBAD_O_xx = 1 or value status = 0 is set in the corresponding F-I/O DB.
Note If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.
Note You cannot use the "process image of the inputs", "process image of the outputs" from standard I/O and "standard DB" and "bit memory" operand areas for the operands of the instruction.

Parameter
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand that is set when RLO = "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

425

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

Operand "TagOut" is set when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state of operand "TagIn_3" is "0".

426

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.7

SR: Set/reset flip-flop (STEP 7 Safety V16)

Description

You can use the "Set/reset flip-flop" instruction to set or reset the bit of the specified operand based on the signal state of inputs S and R1. If the signal state at input S is "1" and the signal state at input R1 is "0", the specified operand is set to "1". If the signal state at input S is "0" and the signal state at input R1 is "1", the specified operand is reset to "0".
Input R1 takes priority over input S. If the signal state is "1" at the two inputs S and R1, the signal state of the specified operand is reset to "0".
The instruction is not executed if the signal state at the two inputs S and R1 is "0". The signal state of the operand then remains unchanged.
The current signal state of the operand is transferred to output Q and can be queried there.
Note
If you want to use a formal parameter of an F-FC for the operand of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the operands of the instruction.
If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter S R1 <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL BOOL BOOL BOOL

Description Enable set Enable reset Operand that is set or reset. Signal state of the operand

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

427

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

Operands ""F_DB_1".TagSR" and "TagOut" are set when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "1".
 Operand "TagIn_2" has signal state "0".
Operands ""F_DB_1".TagSR" and "TagOut" are reset when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "0" and operand "TagIn_2" has signal state "1".
 Both operands "TagIn_1" and "TagIn_2" have signal state "1".

428

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.8

RS: Reset/set flip-flop (STEP 7 Safety V16)

Description

You can use the "Reset/set flip-flop" instruction to reset or set the bit of the specified operand based on the signal state of inputs R and S1. When the signal state is "1" at input R and "0" at input S1, the specified operand is reset to "0". When the signal state is "0" at input R and "1" at input S1, the specified operand is set to "1".
Input S1 takes priority over input R. If the signal state is "1" at the two inputs R and S1, the signal state of the specified operand is set to "1".
The instruction is not executed if the signal state at the two inputs R and S1 is "0". The signal state of the operand then remains unchanged.
The current signal state of the operand is transferred to output Q and can be queried there.
Note
If you want to use a formal parameter of an F-FC for the operand of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the operands of the instruction.
If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter R S1 <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL BOOL BOOL BOOL

Description Enable reset Enable set Operand that is reset or set. Signal state of the operand

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

429

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

Operands ""F_DB_1".TagRS" and "TagOut" are reset when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "1".
 Operand "TagIn_2" has signal state "0".
Operands ""F_DB_1".TagRS" and "TagOut" are set when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "0" and operand "TagIn_2" has signal state "1".
 Operands "TagIn_1" and "TagIn_2" have signal state "1".

430

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.9

--|P|--: Scan operand for positive signal edge (STEP 7 Safety V16)

Description

You can use the "Scan operand for positive signal edge" instruction to determine if there is a change from "0" to "1" in the signal state of a specified operand (<Operand1>). The instruction compares the current signal state of <Operand1> with the signal state of the previous query saved in <Operand2>. If the instruction detects a change in the result of logic operation from "0" to "1", there is a positive, rising edge.
If a rising edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Enter the operand to be queried (<Operand1>) in the operand placeholder above the instruction. Enter the edge memory bit (<Operand2>) in the operand placeholder below the instruction.
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand2> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand2> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand2> of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter <Operand1> <Operand2>

The following table shows the parameters of the instruction:

Declaration Input InOut

Data type BOOL BOOL

Description
Signal to be queried Edge memory bit in which the signal state of the previous query is saved.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

431

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

Operand "TagOut" is set when the following conditions are fulfilled:
 There is a rising edge at input "TagIn_1". The signal state of the previous query is saved at edge memory bit ""F_DB_1".Tag_M".
 The signal state of operand "TagIn_2" is "1".

432

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.10 --|N|--: Scan operand for negative signal edge (STEP 7 Safety V16)

Description

You can use the "Scan operand for negative signal edge" instruction to determine if there is a change form "1" to "0" in the signal state of a specified operand. The instruction compares the current signal state of <Operand1> with the signal state of the previous query saved in <Operand2>. If the instruction detects a change in the result of logic operation from "1" to "0", there is a negative, falling edge.
If a falling edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Enter the operand to be queried (<Operand1>) in the operand placeholder above the instruction. Enter the edge memory bit (<Operand2>) in the operand placeholder below the instruction.
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand2> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand2> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand2> of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter <Operand1> <Operand2>

The following table shows the parameters of the instruction:

Declaration Input InOut

Data type BOOL BOOL

Description
Signal to be queried Edge memory bit in which the signal state of the previous query is saved.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

433

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

Operand "TagOut" is set when the following conditions are fulfilled:
 There is a falling edge at operand "TagIn_1". The signal state of the previous query is saved at edge memory bit ""F_DB_1".Tag_M".
 The signal state of operand "TagIn_2" is "1".

434

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.11 P_TRIG: Scan RLO for positive signal edge (STEP 7 Safety V16)

Description

You can use the "Scan RLO for positive signal edge" instruction to query a change in the signal state of the result of logic operation from "0" to "1". The instruction compares the current signal state of the result of logic operation (RLO) with the signal state of the previous query, which is saved in the edge bit memory (<Operand>). If the instruction detects a change in the RLO from "0" to "1", there is a positive, rising edge.
If a rising edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand> of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter CLK <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input InOut
Output

Data type BOOL BOOL
BOOL

Description
Current RLO Edge memory bit in which the RLO of the previous query is saved. Result of edge evaluation

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

435

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

The RLO from the previous bit logic operation is saved in edge memory bit ""F_DB_1".Tag_M". If a change in the RLO signal state from "0" to "1" is detected, the program jumps to jump label CAS1.

436

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.1.12 N_TRIG: Scan RLO for negative signal edge (STEP 7 Safety V16)

Description

You can use the "Scan RLO for negative signal edge" instruction to query a change in the signal state of the result of logic operation from "1" to "0". The instruction compares the current signal state of the result of logic operation with the signal state from the previous query, which is saved in the edge memory bit (<Operand>). If the instruction detects a change in the RLO from "1" to "0", there is a negative, falling edge.
If a falling edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand> of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter CLK <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input InOut
Output

Data type BOOL BOOL
BOOL

Description
Current RLO Edge memory bit in which the RLO of the previous query is saved. Result of edge evaluation

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

437

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Example

The following example shows how the instruction works:

The RLO of the previous bit logic operation is saved in edge bit memory ""F_DB_1".Tag_M". If a change in the RLO signal state from "1" to "0" is detected, the program jumps to jump label CAS1.

438

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2

FBD

13.2.2.1

AND logic operation (STEP 7 Safety V16)

Description

You can use the "AND logic operation" instruction to query the signal states of two or more specified operands and evaluate them according to the AND truth table.
If the signal state of all the operands is "1", then the conditions are fulfilled and the instruction returns the result "1". If the signal state of one of the operands is "0", then the conditions are not fulfilled and the instruction generates the result "0".
If the "AND logic operation" instruction is the first instruction in a logic string, it saves the result of its signal state query in the RLO bit.
Each "AND logic operation" instruction that is not the first instruction in the logic string logically combines the result of its signal state query with the value saved in the RLO bit. This logical combination is performed according to the AND truth table.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description The operand indicates the bit whose signal state will be queried.

Example

The following example shows how the instruction works:

Output "TagOut" is set when the signal state of operands "TagIn_1" and "TagIn_2" is "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

439

STEP 7 Safety V16 instructions 13.2 Bit logic operations

AND truth table
The following table shows the results when linking two operands by an AND logic operation:

Signal state of the first operand 1 0 1 0

Signal state of the second operand 1 1 0 0

Result of logic operation 1 0 0 0

See also

Insert binary input (STEP 7 Safety V16) (Page 418)

440

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.2

OR logic operation (STEP 7 Safety V16)

Description

You can use the "OR logic operation" instruction to get the signal states of two or more specified operands and evaluate them according to the OR truth table.
If the signal state of at least one of the operands is "1", then the conditions are fulfilled and the instruction returns the result "1". If the signal state of all of the operands is "0", then the conditions are not fulfilled and the instruction generates the result "0".
If the "OR logic operation" instruction is the first instruction in a logic string, it saves the result of its signal state query in the RLO bit.
Each "OR logic operation" instruction that is not the first instruction in the logic string, logically combines the result of its signal state query with the value saved in the RLO bit. This logical combination is performed according to the OR truth table.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description
The operand indicates the bit whose signal state will be queried.

Example

The following example shows how the instruction works:

Output "TagOut" is set when the signal state of operand "TagIn_1" or "TagIn_2" is "1".

OR truth table

The following table shows the results when linking two operands by an OR logic operation:

Signal state of the first operand 1 0 1 0

Signal state of the second operand 0 1 1 0

Result of logic operation 1 1 1 0

See also

Insert binary input (STEP 7 Safety V16) (Page 418)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

441

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.3

X: EXCLUSIVE OR logic operation (STEP 7 Safety V16)

Description

You can use the "EXCLUSIVE OR logic operation" instruction to get the result of a signal state query according to the the EXCLUSIVE OR truth table.
With an "EXCLUSIVE OR logic operation" instruction, the signal state is "1" when the signal state of one of the two specified operands is "1". When more than two operands are queried, the overall result of logic operation is "1" if an odd-numbered quantity of queried operands returns the result "1".

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description
The operand indicates the bit whose signal state will be queried.

Example

The following example shows how the instruction works:

Output "TagOut" is set when the signal state of one of the two operands "TagIn_1" and "TagIn_2" is "1". When both operands have signal state "1" or "0" then output "TagOut" is reset.

442

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

EXCLUSIVE OR truth table
The following table shows the results when two operands are linked by an EXCLUSIVE OR:

Signal state of the first operand 1 0 1 0

Signal state of the second operand 0 1 1 0

Result of logic operation 1 1 0 0

The following table shows the results when three operands are linked by an EXCLUSIVE OR:

Signal state of the first operand 1 0 0 1 0 1 1 0

Signal state of the second operand 0 1 1 0 0 1 1 0

Signal state of the third operand 0 1 0 1 1 0 1 0

Result of logic operation
1 0 1 0 1 0 1 0

See also

Insert binary input (STEP 7 Safety V16) (Page 418)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

443

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.4

=: Assignment (STEP 7 Safety V16)

Description

You can use the "Assignment" instruction to set the bit of a specified operand. If the result of logic operation (RLO) at the box input has signal state "1" or the box input for S7-1200/1500 F-CPUs is not connected, the specified operand is set to signal state "1". If the signal state at the box input is "0", the bit of the specified operand is reset to "0".
The instruction does not influence the RLO. The RLO at the box input is assigned directly to the operand located above the Assign box.
The "Assignment" instruction can be placed at any position in the logic operation sequence.

Parameters
Parameter <Operand>

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand to which the RLO is assigned.

Example

The following example shows how the instruction works:

Operand "TagOut" at the output of the "Assignment" instruction is set when one of the following conditions is fulfilled:
 Inputs "TagIn_1" and "TagIn_2" have signal state "1".
 The signal state at input "TagIn_3" is "0".

444

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.5

R: Reset output (STEP 7 Safety V16)

Description

You can use the "Reset output" instruction to reset the signal state of a specified operand to "0".
If the box input has signal state "1" or the box input for S7-1200/1500 F-CPUs is not connected, the specified operand is reset to "0". If there is a result of logic operation of "0" at the box input, the signal state of the specified operand remains unchanged.
The instruction does not influence the RLO. The RLO at the box input is transferred directly to the box output.
Note
If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.
Note
You cannot use the "process image of the inputs", "process image of the outputs" from standard I/O and "standard DB" and "bit memory" operand areas for the operands of the instruction.

Parameter
Parameter <Operand>
Example

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand that is reset with RLO = "1".

The following example shows how the instruction works:

Operand "TagOut" is reset when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state of operand "TagIn_3" is "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

445

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.6

S: Set output (STEP 7 Safety V16)

Description

You can use the "Set output" instruction to set the signal state of a specified operand to "1". If the box input has signal state "1" or the box input for S7-1200/1500 F-CPUs is not connected, the specified operand is set to "1". If there is a result of logic operation of "0" at the box input, the signal state of the specified operand remains unchanged. The instruction does not influence the RLO. The RLO at the box input is transferred directly to the box output.
Note The instruction is not executed if it is applied to an output of an F-I/O that is passivated (e.g., during startup of the F-system). Therefore, it is preferable to access outputs of the F-I/O using only the "Assignment" instruction. An F-I/O output is passivated if QBAD or QBAD_O_xx = 1 or value status = 0 is set in the corresponding F-I/O DB.
Note If the operand area "local data (temp)" is used for the operands of the instruction, the local data bit used must be initialized beforehand.
Note You cannot use the "process image of the inputs", "process image of the outputs" from standard I/O and "standard DB" and "bit memory" operand areas for the operands of the instruction.

446

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Parameter
Parameter <Operand>
Example

STEP 7 Safety V16 instructions 13.2 Bit logic operations

The following table shows the parameters of the instruction:

Declaration Output

Data type BOOL

Description Operand that is set when RLO = "1".

The following example shows how the instruction works:

Operand "TagOut" is set when one of the following conditions is fulfilled:  Operands "TagIn_1" and "TagIn_2" have signal state "1".  The signal state of operand "TagIn_3" is "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

447

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.7

SR: Set/reset flip-flop (STEP 7 Safety V16)

Description

You can use the "Set/reset flip-flop" instruction to set or reset the bit of the specified operand based on the signal state of inputs S and R1. If the signal state at input S is "1" and the signal state at input R1 is "0", the specified operand is set to "1". If the signal state at input S is "0" and the signal state at input R1 is "1", the specified operand is reset to "0".
Input R1 takes priority over input S. If the signal state is "1" at the two inputs S and R1, the signal state of the specified operand is reset to "0".
The instruction is not executed if the signal state at the two inputs S and R1 is "0". The signal state of the operand then remains unchanged.
The current signal state of the operand is transferred to output Q and can be queried there.
Note
If you want to use a formal parameter of an F-FC for the operand of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the operands of the instruction.
If the operand area "local data (temp)" is used for the edge bit memory of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter S R1 <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL BOOL BOOL BOOL

Description Enable set Enable reset Operand that is set or reset. Signal state of the operand

448

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.2 Bit logic operations
The following example shows how the instruction works:

Operands ""F_DB_1".TagSR" and "TagOut" are set when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "1".
 Operand "TagIn_2" has signal state "0".
Operands ""F_DB_1".TagSR" and "TagOut" are reset when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "0" and operand "TagIn_2" has signal state "1".
 Both operands "TagIn_1" and "TagIn_2" have signal state "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

449

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.8

RS: Reset/set flip-flop (STEP 7 Safety V16)

Description

You can use the "Reset/set flip-flop" instruction to reset or set the bit of the specified operand based on the signal state of inputs R and S1. When the signal state is "1" at input R and "0" at input S1, the specified operand is reset to "0". When the signal state is "0" at input R and "1" at input S1, the specified operand is set to "1".
Input S1 takes priority over input R. If the signal state is "1" at the two inputs R and S1, the signal state of the specified operand is set to "1".
The instruction is not executed if the signal state at the two inputs R and S1 is "0". The signal state of the operand then remains unchanged.
The current signal state of the operand is transferred to output Q and can be queried there.
Note
If you want to use a formal parameter of an F-FC for the operand of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the operands of the instruction.
If the operand area "local data (temp)" is used for the edge bit memory of the instruction, the local data bit used must be initialized beforehand.

450

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Parameter
Parameter R S1 <Operand> Q
Example

STEP 7 Safety V16 instructions 13.2 Bit logic operations

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL BOOL BOOL BOOL

Description Enable reset Enable set Operand that is reset or set. Signal state of the operand

The following example shows how the instruction works:

Operands ""F_DB_1".TagRS" and "TagOut" are reset when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "1".
 Operand "TagIn_2" has signal state "0".
Operands ""F_DB_1".TagRS" and "TagOut" are set when the following conditions are fulfilled:
 Operand "TagIn_1" has signal state "0" and operand "TagIn_2" has signal state "1".
 Operands "TagIn_1" and "TagIn_2" have signal state "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

451

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.9

P: Scan operand for positive signal edge (STEP 7 Safety V16)

Description

You can use the "Scan operand for positive signal edge" instruction to determine if there is a change from "0" to "1" in the signal state of a specified operand (<Operand1>). The instruction compares the current signal state of <Operand1> with the signal state of the previous query saved in <Operand2>. If the instruction detects a change in the result of logic operation from "0" to "1", there is a positive, rising edge.
If a rising edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Enter the operand to be queried (<Operand1>) in the operand placeholder above the instruction. Enter the edge memory bit (<Operand2>) in the operand placeholder below the instruction.
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand2> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand2> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand2> of the instruction, the local data bit used must be initialized beforehand.

452

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Parameters
Parameter <Operand1> <Operand2>

The following table shows the parameters of the instruction:

Declaration Input InOut

Data type BOOL BOOL

Description
Signal to be queried
Edge memory bit in which the signal state of the previous query is saved.

Example

The following example shows how the instruction works:

"TagOut" is set when the following conditions are fulfilled:  There is a rising edge at input "TagIn_1".  The signal state of operand "TagIn_2" is "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

453

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.10 N: Scan operand for negative signal edge (STEP 7 Safety V16)

Description

You can use the "Scan operand for negative signal edge" instruction to determine if there is a change form "1" to "0" in the signal state of a specified operand. The instruction compares the current signal state of <Operand1> with the signal state of the previous query saved in <Operand2>. If the instruction detects a change in the result of logic operation from "1" to "0", there is a negative, falling edge.
If a falling edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Enter the operand to be queried (<Operand1>) in the operand placeholder above the instruction. Enter the edge memory bit (<Operand2>) in the operand placeholder below the instruction.
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand2> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand2> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand2> of the instruction, the local data bit used must be initialized beforehand.

454

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Parameter
Parameter <Operand1> <Operand2>
Example

STEP 7 Safety V16 instructions 13.2 Bit logic operations

The following table shows the parameters of the instruction:

Declaration Input InOut

Data type BOOL BOOL

Description
Signal to be queried
Edge memory bit in which the signal state of the previous query is saved.

The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  There is a falling edge at input "TagIn_1".  The signal state of operand "TagIn_2" is "1".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

455

STEP 7 Safety V16 instructions 13.2 Bit logic operations

13.2.2.11 P_TRIG: Scan RLO for positive signal edge (STEP 7 Safety V16)

Description

You can use the "Scan RLO for positive signal edge" instruction to query a change in the signal state of the result of logic operation from "0" to "1". The instruction compares the current signal state of the result of logic operation with the signal state from the previous query, which is saved in the edge memory bit (<Operand>). If the instruction detects a change in the RLO from "0" to "1", there is a positive, rising edge.
If a rising edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand> of the instruction, the local data bit used must be initialized beforehand.

Parameter
Parameter CLK <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input InOut
Output

Data type BOOL BOOL
BOOL

Description
Current RLO Edge memory bit in which the RLO of the previous query is saved. Result of edge evaluation

456

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.2 Bit logic operations
The following example shows how the instruction works:

The RLO from the previous bit logic operation is saved in edge memory bit ""F_DB_1".Tag_M". If a change in the RLO signal state from "0" to "1" is detected, the program jumps to jump label CAS1.

13.2.2.12 N_TRIG: Scan RLO for negative signal edge (STEP 7 Safety V16)

Description

You can use the "Scan RLO for negative signal edge" instruction to query a change in the signal state of the result of logic operation from "1" to "0". The instruction compares the current signal state of the result of logic operation with the signal state from the previous query, which is saved in the edge memory bit (<Operand>). If the instruction detects a change in the RLO from "1" to "0", there is a negative, falling edge.
If a falling edge is detected, the output of the instruction has signal state "1". In all other cases, the signal state at the output of the instruction is "0".
Note
The address of the edge memory bit must not be used more than once in the program, otherwise the edge memory bit would be overwritten. This would influence edge evaluation and the result would no longer be unequivocal.
Note
If you want to use a formal parameter of an F-FC for the edge memory bit <Operand> of the instruction, it must be declared as an input/output parameter.
Note
You cannot use the "process image", "standard DB" and "bit memory" operand areas for the edge memory bit <Operand> of the instruction.
If operand area "local data (temp)" is used for the edge memory bit <Operand> of the instruction, the local data bit used must be initialized beforehand.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

457

STEP 7 Safety V16 instructions 13.2 Bit logic operations

Parameter
Parameter CLK <Operand> Q

The following table shows the parameters of the instruction:

Declaration Input InOut
Output

Data type BOOL BOOL
BOOL

Description
Current RLO Edge memory bit in which the RLO of the previous query is saved. Result of edge evaluation

Example

The following example shows how the instruction works:

The RLO of the previous bit logic operation is saved in edge bit memory ""F_DB_1".Tag_M". If a change in the RLO signal state from "1" to "0" is detected, the program jumps to jump label CAS1.

458

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.3

Safety functions

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.1

ESTOP1: Emergency STOP/OFF up to stop category 1 (STEP 7 Safety V16)

Description

This instruction implements an emergency STOP/emergency OFF shutdown with acknowledgment for Stop Categories 0 and 1.
Enable signal Q is reset to 0, as soon as input E_STOP takes a signal state of 0 (Stop category 0). Enable signal Q_DELAY is reset to 0 after the time delay set at input TIME_DEL (Stop Category 1).
Enable signal Q is reset to 1 not before input E_STOP takes a signal state of 1 and an acknowledgment occurs. The acknowledgment for the enable takes place according to the parameter assignment at input ACK_NEC:
 If ACK_NEC = 0, the acknowledgment is automatic.
 If ACK_NEC = 1, you must use a rising edge at input ACK for acknowledging the enable.
Output ACK_REQ is used to signal that a user acknowledgment is required at input ACK for the acknowledgment. The instruction sets output ACK_REQ to 1, as soon as input E_STOP = 1.
Following an acknowledgment, the instruction resets ACK_REQ to 0.
Every call of the "Emergency STOP/Emergency OFF up to Stop Category 1" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., ESTOP1_DB_1) or a multi-instance (e.g., ESTOP1_Instance_1) for the "Emergency STOP/Emergency OFF up to Stop Category 1" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
The ACK_NEC tag must not be assigned a value of 0 unless an automatic restart of the affected process is otherwise excluded. (S033)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

459

STEP 7 Safety V16 instructions 13.3 Safety functions

WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)
Note: In case of two channels according to category 3,4 of ISO 13849-1:2015 or EN ISO 13849-1:2015, the discrepancy monitoring of the two NC contacts of the EMERGENCY STOP/EMERGENCY OFF must already take place in the F-I/O. The F-I/O has to be configured accordingly (sensor evaluation: two-channel, equivalent), and the result of the evaluation interconnected with the E_STOP input. In order to keep the discrepancy time from influencing the response time, you must assign "Supply value 0" for the behavior of discrepancy during configuration.

Parameters
Parameter E_STOP ACK_NEC ACK TIME_DEL Q Q_DELAY ACK_REQ DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Output Output Output Output

Data type BOOL BOOL BOOL TIME BOOL BOOL BOOL BYTE

Description EMERGENCY STOP/EMERGENCY OFF 1=Acknowledgment necessary 1=Acknowledgment Time delay 1=Enable Enable is OFF delayed 1=Acknowledgment necessary Non-fail safe service information

460

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

--

1.3 x

o

1.4 x

o

1.5 x

x

1.6 x

x

S7-1500 --
--- o o o x x

Function
Version 1.0 requires that the F_TOF block with the number FB 186 is available in the project tree in the "Program blocks/System blocks/STEP 7 Safety" folder. When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. You will then avoid number conflicts. These versions are functionally identical to version V1.0, but do not require the F_TOF block to have a particular number.
The reaction of the delay time TIME_DEL for F-CPUs S7-1200/1500 was adapted to the reaction of F-CPUs S7-300/400: If the input ESTOP (0 -> 1 (including acknowledgment) -> 0) is changed while the delay time is running, the delay time is restarted.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Startup characteristics
After an F-system startup, when ACK_NEC = 1, you must acknowledge the instruction using a rising edge at input ACK.

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits 4 and 5 are saved until you acknowledge at the ACK input.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

461

STEP 7 Safety V16 instructions 13.3 Safety functions

Structure of DIAG

Bit no. Assignment

Bit 0 Incorrect TIM_DEL setting

Bit 1 Reserved

Bit 2 Reserved

Bit 3 Reserved

Bit 4

Acknowledgment not possible because emergency STOP/emergency OFF is still active

Possible error causes
Time delay setting < 0
--
--
--
Emergency STOP/Emergency OFF pushbutton is locked
F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of emergency STOP/emergency OFF pushbutton
Emergency STOP/Emergency OFF pushbutton is defective
Wiring fault

Bit 5

If enable is missing: input ACK Acknowledgment button

has a permanent signal state defective

of 1

Wiring fault

Bit 6 Acknowledgment required

--

(= state of ACK_REQ)

Bit 7 State of output Q

--

Remedies Set time delay > 0 -- -- -- Release Emergency STOP/Emergency OFF pushbutton For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)
Check emergency STOP/emergency OFF pushbutton Check wiring of the emergency STOP/emergency OFF pushbutton Check acknowledgment button Check wiring of acknowledgment button --
--

462

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

463

STEP 7 Safety V16 instructions 13.3 Safety functions

Example

The following example shows how the instruction works:

464

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.2

TWO_HAND: Two-hand monitoring (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

This instruction implements two-hand monitoring.
Note
This instruction is only available for S7-300 and S7-400 F-CPUs. For S7-1200/1500 F-CPUs, you use the instruction "Two-hand monitoring with enable". The application "Two-hand monitoring with enable" replaces the instruction "Two-hand monitoring" with compatible functions.
If pushbuttons IN1 and IN2 are activated within the permitted discrepancy time DISCTIME  500 ms (IN1/IN2 = 1) (synchronous activation), output signal Q is set to 1. If the time difference between activation of pushbutton IN1 and pushbutton IN2 is greater than DISCTIME, then the pushbuttons must be released and reactivated.
Q is reset to 0 as soon as one of the pushbuttons is released (IN1/IN2 = 0). Enable signal Q can be reset to 1 only if the other pushbutton has been released, and if both pushbuttons are then reactivated within the discrepancy time. Enable signal Q can never be set to 1 if the discrepancy time is set to values less than 0 or greater than 500 ms.
Every call of the "Two-hand monitoring" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., TWO_HAND_DB_1) or a multi-instance (e.g., TWO_HAND_Instance_1) for the "Two-hand monitoring" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
The instruction supports the requirements in accordance with EN 574:1996 + A1:2008.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

465

STEP 7 Safety V16 instructions 13.3 Safety functions
Note: Only one signal per pushbutton can be evaluated in the instruction. Discrepancy monitoring of the NC and NO contacts of pushbuttons IN1 and IN2 is performed directly during suitable configuration (sensor evaluation: 1oo2 evaluation, non-equivalent) directly through the F-I/O with inputs. The normally open contact must be wired in such a way that it supplies the useful signal (see manual for the F-I/O you are using). In order to keep the discrepancy time from influencing the response time, you must assign "Supply value 0" for the behavior of discrepancy during configuration. If a discrepancy is detected, a fail-safe value of 0 is entered in the process image of the inputs (PII) for the pushbutton and QBAD or QBAD_I_xx = 1 is set in the relevant F-I/O DB. (See also F-I/O access (Page 166))
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

Parameters
Parameter IN1 IN2 DISCTIME Q

The following table shows the parameters of the instruction:

Declaration Input Input Input Output

Data type BOOL BOOL TIME BOOL

Description Pushbutton 1 Pushbutton 2 Discrepancy time (0 to 500 ms) 1=Enable

466

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing imprecision resulting from the update time of the time base used in the instruction:

Example

 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

467

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.3

TWO_H_EN: Two-hand monitoring with enable (STEP 7 Safety V16)

Description

This instruction implements two-hand monitoring with enable.
If pushbuttons IN1 and IN2 are activated within the permitted discrepancy time DISCTIME  500 ms (IN1/IN2 = 1) (synchronous activation), output signal Q is set to 1 when existing ENABLE = 1. If the time difference between activation of pushbutton IN1 and pushbutton IN2 is greater than DISCTIME, then the pushbuttons must be released and reactivated.
Q is reset to 0 as soon as one of the pushbuttons is released (IN1/IN 2 = 0) or ENABLE = 0. Enable signal Q can be reset to 1 only if the other pushbutton has been released, and if both pushbuttons are then reactivated within the discrepancy time when existing ENABLE = 1.
Every call of the "Two-hand monitoring with enable" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., TWO_H_EN_DB_1) or a multi-instance (e.g., TWO_H_EN_Instance_1) for the "Two-hand monitoring with enable" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
The instruction supports the requirements in accordance with EN 574:1996 + A1:2008.
Note: Only one signal per pushbutton can be evaluated in the instruction. Discrepancy monitoring of the NC and NO contacts of pushbuttons IN1 and IN2 is performed directly during suitable configuration (sensor evaluation: 1oo2 evaluation, non-equivalent) directly through the F-I/O with inputs. The normally open contact must be wired in such a way that it supplies the useful signal (see manual for the F-I/O you are using). In order to keep the discrepancy time from influencing the response time, during the configuration of discrepancy behavior, you must configure "Supply value 0".

468

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
If a discrepancy is detected, a fail-safe value of 0 is entered in the process image of the inputs (PII) for the pushbutton and QBAD or QBAD_I_xx = 1 or respectively value status = 0 is set in the relevant F-I/O DB.
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

Parameters
Parameter IN1 IN2 ENABLE DISCTIME Q DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Output Output

Data type BOOL BOOL BOOL TIME BOOL BYTE

Description Pushbutton 1 Pushbutton 2 Enable input Discrepancy time (0 to 500 ms) 1=Enable Non-fail safe service information

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

469

STEP 7 Safety V16 instructions 13.3 Safety functions

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits 0 to 5 are saved until the cause of the error has been eliminated.

470

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Structure of DIAG

Bit no. Bit 0
Bit 1

Assignment
Incorrect discrepancy time DISCTIME setting
Discrepancy time elapsed

Bit 2 Bit 3 Bit 4

Reserved Reserved Incorrect activation sequence

Bit 5

ENABLE does not exist

Bit 6 Bit 7

Reserved State of output Q

STEP 7 Safety V16 instructions 13.3 Safety functions

Possible error causes

Remedies

Discrepancy time setting is <0 or > Set discrepancy time in range of 0 to

500 ms

500 ms

Discrepancy time setting is too low If necessary, set a higher discrepancy time

Pushbuttons were not activated within the discrepancy time

Release pushbuttons and activate them within the discrepancy time

Wiring fault

Check wiring of pushbuttons

Pushbuttons defective

Check pushbuttons

Pushbuttons are wired to different For a solution, see the section

F-I/O, and F-I/O fault, channel

"Structure of DIAG", bits 0 to 6 in

fault, or communication error, or DIAG (Page 183)

passivation by means of PASS_ON

on an F-I/O

--

--

--

--

One pushbutton was not released Release pushbuttons and activate them within the discrepancy time

Pushbuttons defective

Check pushbuttons

ENABLE = 0

Set ENABLE = 1, release pushbutton and activate it within the discrepancy time

--

--

--

--

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

471

STEP 7 Safety V16 instructions 13.3 Safety functions Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

472

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.3 Safety functions
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

473

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.4

MUTING: Muting (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

This instruction performs parallel muting with two or four muting sensors.
Note
This instruction is only available for S7-300 and S7-400 F-CPUs. For S7-1200/1500 F-CPUs, you use the instruction "Parallel muting (Page 485)". The instruction "Parallel muting" replaces the instruction "Muting" with compatible functions.
Muting is a defined suppression of the protective function of light curtains. Light curtain muting can be used to introduce goods or objects into the danger area monitored by the light curtain without causing the machine to stop.
To utilize the muting function, at least two independently wired muting sensors must be present. The use of two or four muting sensors and correct integration into the production sequence must ensure that no persons enter the danger area while the light curtain is muted.
Every call of the "Muting" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., MUTING_DB_1) or a multi-instance (e.g., MUTING_Instance_1) for the "Muting" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

474

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Parameter
Parameter MS_11 MS_12 MS_21 MS_22 STOP FREE QBAD_MUT
DISCTIM1 DISCTIM2 TIME_MAX ACK Q MUTING ACK_REQ FAULT DIAG

STEP 7 Safety V16 instructions 13.3 Safety functions

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Input Input Input
Input Input Input Input Output Output Output Output Output

Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL
TIME TIME TIME BOOL BOOL BOOL BOOL BOOL BYTE

Description Muting sensor 1 of sensor pair 1 Muting sensor 2 of sensor pair 1 Muting sensor 1 of sensor pair 2 Muting sensor 2 of sensor pair 2 1=Conveyor system stopped 1=Light curtain uninterrupted QBAD signal of the F-I/O or QBAD_O_xx signal of the muting lamp channel Discrepancy time of sensor pair 1 (0 to 3 s) Discrepancy time of sensor pair 2 (0 to 3 s) Maximum muting time (0 to 10 min) Acknowledgment of restart inhibit 1= Enable, not off Display of muting is active Acknowledgment necessary Group error Non-fail safe service information

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

475

STEP 7 Safety V16 instructions 13.3 Safety functions
Schematic sequence of error-free muting procedure with 4 muting sensors (MS_11, MS_12, MS_21, MS_22)
 If both muting sensors MS_11 and MS_12 are activated by the product within DISCTIM1 (apply signal state = 1), the instruction starts the MUTING function. Enable signal Q remains 1, even when input FREE = 0 (light curtain interrupted by product). The MUTING output for setting the muting lamp switches to 1.
Note The muting lamp can be monitored using the QBAD_MUT input. To do this, you must wire the muting lamp to an output with wire break monitoring of an F-I/O and supply the QBAD_MUT input with the QBAD signal of the associated F-I/O or the QBAD_O_xx signal of the associated channel. If QBAD_MUT = 1, muting is terminated by the instruction. If monitoring of the muting lamp is not necessary, you do not have to supply input QBAD_MUT. F-I/O that can promptly detect a wire break after activation of the muting operation must be used (see manual for specific F-I/O).

476

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

 As long as both muting sensors MS_11 and MS_12 continue to be activated, the MUTING function of the instruction causes Q to remain 1 and MUTING to remain 1 (so that the product can pass through the light curtain without causing the machine to stop).

 The two muting sensors MS_21 and MS_22 must be activated (within DISCTIM2) before muting sensors MS_11 and MS_12 are switched to inactive (apply signal state 0). In this way, the instruction retains the MUTING function. (Q = 1, MUTING = 1).

 Only if one of the two muting sensors MS_21 and MS_22 is switched to inactive (product enables sensors) is the MUTING function terminated (Q = 1, MUTING = 0). The maximum activation time for the MUTING function is the time set at input TIME_MAX.
Note
The MUTING function is also started if the product passes the light curtain in the reverse direction and the muting sensors are thus activated by the product in reverse order.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

477

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing diagrams for error-free muting procedure with 4 muting sensors

Schematic sequence of muting procedure with reflection light barriers
If reflection light barriers are used as muting sensors, they are generally arranged diagonally.
In general, this arrangement of reflection light barriers as muting sensors requires only two light barriers, and only MS_11 and MS_12 are interconnected.
The sequence is similar to that of the muting procedure with 4 muting sensors. Step 3 is omitted. In step 4, replace MS_21 and MS_22 with MS_11 and MS_12, respectively.

478

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Restart inhibit upon interruption of light curtain (if MUTING is not active), when errors occur, and during F-system startup
Enable signal Q cannot be set to 1 or becomes 0, if:  Light curtain is interrupted (e.g., by a person or material transport) while the MUTING
function is not active  The muting lamp monitoring function responds at input QBAD_MUT  Sensor pair 1 (MS_11 and MS_12) or sensor pair 2 (MS_21 and MS_22) is not activated
or deactivated during discrepancy time DISCTIM1 or DISCTIM2, respectively  The MUTING function is active longer than the maximum muting time TIME_MAX  Discrepancy times DISCTIM1 and DISCTIM2 have been set to values < 0 or > 3 s  Maximum muting time TIME_MAX has been set to a value< 0 or > 10 min In the identified cases, output FAULT (group error) is set to 1 (restart inhibit). If the MUTING function is started, it will be terminated and the Muting output becomes 0.
WARNING
When a valid combination of muting sensors is immediately detected at startup of the F-system (for example, because the muting sensors are interconnected to inputs of a standard I/O that immediately provide process values during the F-system startup), the MUTING function is immediately started and the MUTING output and enable signal Q are set to 1. The FAULT output (group error) is not set to 1 (no restart inhibit!). (S035)
Acknowledgment of restart inhibit
Enable signal Q becomes 1 again, when:  The light curtain is no longer interrupted  If present, errors are eliminated (see output DIAG)
and  A user acknowledgment with positive edge occurs at input ACK (see also Implementation
of user acknowledgment (Page 196)). The FAULT output is set to 0. Output ACK_REQ = 1 signals that user acknowledgment at input ACK is required to eliminate the restart inhibit. The instruction sets ACK-REQ = 1 as soon as the light curtain is no longer interrupted or errors have been eliminated. Once acknowledgment has occurred, the instruction resets ACK_REQ to 0.
Note Following discrepancy errors and once the maximum muting time has been exceeded, ACK_REQ is immediately set to 1. As soon as a user acknowledgment has taken place at input ACK, discrepancy times DISCTIM1 and DISCTIM2 and maximum muting time TIME_MAX are reset.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

479

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing diagrams for discrepancy errors at sensor pair 1 or interruption of the light curtain (if MUTING is not active)



Sensor pair 1 (MS_11 and MS_12) is not activated within discrepancy time

DISCTIM1.



The light curtain is interrupted even though the MUTING function is not active.



Acknowledgment

480

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Behavior with stopped conveyor equipment
If, while the conveyor equipment has stopped, the monitoring for one of the following reasons is to be deactivated:  To comply with discrepancy time DISCTIM1 or DISCTIM2  To comply with maximum muting time TIME_MAX you must supply input STOP with a "1" signal for as long as the conveyor equipment is stopped. As soon as the conveyor equipment is running again (STOP = 0), discrepancy times DISCTIM1 and DISCTIM2 and maximum muting time TIME_MAX are reset.
WARNING
When STOP = 1, the discrepancy monitoring is shut down. During this time, if inputs MSx1/MSx2 of a sensor pair both take a signal state of 1 due to an undetected error, e.g., because both muting sensors fail to 1, the error is not detected and the MUTING function can be started unintentionally. (S036)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

481

STEP 7 Safety V16 instructions 13.3 Safety functions

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits are saved until acknowledgment at input ACK.

Structure of DIAG

Bit no. Bit 0
Bit 1 Bit 2 Bit 3
Bit 4 Bit 5

Assignment

Possible error causes

Remedies

Discrepancy error or incorrect discrepancy time DISCTIM 1 setting for sensor pair 1

Malfunction in production sequence
Sensor defective

Malfunction in production sequence eliminated
Check sensors

Wiring fault

Check wiring of sensors

Sensors are wired to different FI/O, and F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON on an F-I/O

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

Discrepancy time setting is too low If necessary, set a higher discrepancy time

Discrepancy time setting is < 0 s or Set discrepancy time in range between

> 3 s

0 s and 3 s

Discrepancy error or incorrect discrepancy time DISCTIM 2 setting for sensor pair 2

Same as Bit 0

Same as Bit 0

Maximum muting time exceeded or incorrect muting time TIME_MAX setting

Malfunction in production sequence
Maximum muting time setting is too low

Malfunction in production sequence eliminated
If necessary, set a higher maximum muting time

Muting time setting is < 0 s or > 10 min

Set muting time in range from 0 s to 10 min

Light curtain interrupted and muting not active

Light curtain is defective Wiring fault

Check light curtain
Check wiring of light curtain (FREE input)

F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of light curtain (FREE input)

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

See other DIAG bits

Muting lamp is defective or cannot Muting lamp is defective

be set

Wiring fault

Replace muting lamp Check wiring of muting lamp

F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of muting lamp

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

Reserved

--

--

482

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Bit no. Bit 6 Bit 7

Assignment Reserved Reserved

Possible error causes -- --

Remedies -- --

Timing imprecision resulting from the update time of the time base used in the instruction:

 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

483

STEP 7 Safety V16 instructions 13.3 Safety functions

Example

The following example shows how the instruction works:

484

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.5

MUT_P: Parallel muting (STEP 7 Safety V16)

Description

This instruction performs parallel muting with two or four muting sensors.
Muting is a defined suppression of the protective function of light curtains. Light curtain muting can be used to introduce goods or objects into the danger area monitored by the light curtain without causing the machine to stop.
To utilize the muting function, at least two independently wired muting sensors must be present. The use of two or four muting sensors and correct integration into the production sequence must ensure that no persons enter the danger area while the light curtain is muted.
Every call of the "Parallel muting" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., MUT_P_DB_1) or a multi-instance (e.g., MUT_P_Instance_1) for the "Parallel muting" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multiinstance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

485

STEP 7 Safety V16 instructions 13.3 Safety functions

Parameters
Parameter MS_11 MS_12 MS_21 MS_22 STOP FREE ENABLE QBAD_MUT
ACK DISCTIM1 DISCTIM2 TIME_MAX Q MUTING ACK_REQ FAULT DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Input Input Input Input
Input Input Input Input Output Output Output Output Output

Data type BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL
BOOL TIME TIME TIME BOOL BOOL BOOL BOOL WORD

Description Muting sensor 11 Muting sensor 12 Muting sensor 21 Muting sensor 22 1=Conveyor system stopped 1=Light curtain uninterrupted 1=Enable MUTING QBAD signal of the F-I/O or QBAD_O_xx signal / inverted value status of the muting lamp channel Acknowledgment of restart inhibit Discrepancy time of sensor pair 1 (0 to 3 s) Discrepancy time of sensor pair 2 (0 to 3 s) Maximum muting time (0 to 10 min) 1= Enable, not off Display of muting is active Acknowledgment necessary Group error Non-fail safe service information

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x*

--

1.1 x*

--

1.2 x*

--

1.3 x*

o

1.4 x

x

S7-1500 --
-- o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0. The output DIAG can now be correctly interconnected with the operand of data type WORD.

o This version is no longer supported.
* S7-300/400: When a restart inhibit (output FAULT = 1) and ENABLE = 1 is present, output ACK_REQ is set to 1 even if not at least one muting sensor is activated. Use the DIAG bits 5 and 6 for additional information.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

486

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".
Schematic sequence of error-free muting procedure with 4 muting sensors (MS_11, MS_12, MS_21, MS_22)
 If muting sensors MS_11 and MS_12 are both activated by the product within DISCTIM1 (apply signal state = 1) and MUTING is enabled by setting the ENABLE input to 1, the instruction starts the MUTING function. Enable signal Q remains 1, even when input FREE = 0 (light curtain interrupted by product). The MUTING output for setting the muting lamp switches to 1.
Note The muting lamp can be monitored using the QBAD_MUT input. To do this, you must wire the muting lamp to an output with wire break monitoring of an F-I/O and supply the QBAD_MUT input with the QBAD signal of the associated F-I/O or the QBAD_O_xx signal / with inverted value statues of the associated channel. If QBAD_MUT = 1, muting is terminated by the instruction. If monitoring of the muting lamp is not necessary, you do not have to supply input QBAD_MUT. F-I/O that can promptly detect a wire break after activation of the muting operation must be used (see manual for specific F-I/O).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

487

STEP 7 Safety V16 instructions 13.3 Safety functions

 As long as both muting sensors MS_11 and MS_12 continue to be activated, the MUTING function of the instruction causes Q to remain 1 and MUTING to remain 1 (so that the product can pass through the light curtain without causing the machine to stop). Each of the two muting sensors MS_11 and MS_12 may be switched to inactive (t < DISCTIM1) for a short time (apply signal state 0).

 Muting sensors MS_21 and MS_22 must both be activated (within DISCTIM2) before muting sensors MS_11 and MS_12 are switched to inactive (apply signal state 0). In this way, the instruction retains the MUTING function. (Q = 1, MUTING = 1).

Only if muting sensors MS_21 and MS_22 are both switched to inactive (product enables sensors) is the MUTING function terminated (Q = 1, MUTING = 0). The maximum activation time for the MUTING function is the time set at input TIME_MAX.
Note
The MUTING function is also started if the product passes the light curtain in the reverse direction and the muting sensors are thus activated by the product in reverse order.

488

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing diagrams for error-free muting procedure with 4 muting sensors

Schematic sequence of muting procedure with reflection light barriers
If reflection light barriers are used as muting sensors, they are generally arranged diagonally.
In general, this arrangement of reflection light barriers as muting sensors requires only two light barriers, and only MS_11 and MS_12 are interconnected.
The sequence is similar to that of the muting procedure with 4 muting sensors. Step 3 is omitted. In step 4, replace MS_21 and MS_22 with MS_11 and MS_12, respectively.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

489

STEP 7 Safety V16 instructions 13.3 Safety functions
Restart inhibit upon interruption of light curtain (MUTING is not active), as well as when errors occur and during F-system startup
Enable signal Q cannot be set to 1 or becomes 0, if:  Light curtain is interrupted (e.g., by a person or material transport) while the MUTING
function is not active  Light curtain is (being) interrupted and the muting lamp monitoring at input QBAD_MUT is
set to 1  Light curtain is (being) interrupted and the MUTING function is not enabled by setting
input ENABLE to 1  Sensor pair 1 (MS_11 and MS_12) or sensor pair 2 (MS_21 and MS_22) is not activated
or deactivated during discrepancy time DISCTIM1 or DISCTIM2, respectively  The MUTING function is active longer than the maximum muting time TIME_MAX  Discrepancy times DISCTIM1 and DISCTIM2 have been set to values < 0 or > 3 s  Maximum muting time TIME_MAX has been set to a value< 0 or > 10 min  The F-system starts up (regardless of whether or not the light curtain is interrupted,
because the F-I/O is passivated after F-system startup and, thus, the FREE input is initially supplied with 0) In the identified cases, output FAULT (group error) is set to 1 (restart inhibit). If the MUTING function is started, it will be terminated and the Muting output becomes 0.
User acknowledgment of restart inhibit (no muting sensor is activated or ENABLE = 0)
Enable signal Q becomes 1 again, when:  The light curtain is no longer interrupted  If present, errors are eliminated (see output DIAG)
and  A user acknowledgment with positive edge occurs at input ACK (see also Implementation
of user acknowledgment (Page 196)). The FAULT output is set to 0. Output ACK_REQ = 1 (and DIAG bit 6) signals that user acknowledgment at input ACK is required to eliminate the restart inhibit. The instruction sets ACK_REQ = 1 as soon as the light curtain is no longer interrupted or the errors have been eliminated. Once acknowledgment has occurred, the instruction resets ACK_REQ to 0.

490

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
User Acknowledgment of restart inhibit (at least one muting sensor is activated and ENABLE = 1)
Enable signal Q becomes 1 again, when:  If present, errors are eliminated (see output DIAG)  FREE occurs until a valid combination of muting sensors is detected The FAULT output is set to 0. The MUTING function is restarted, if necessary, and the MUTING output becomes 1 if a valid combination of muting sensors is detected. When ENABLE = 1, output ACK_REQ = 1 (and DIAG bit 5) signals that FREE is necessary for error elimination and for removal of the restart inhibit.*After successful FREE, ACK_REQ is reset to 0 by the instruction.
Note Once the maximum muting time is exceeded, TIME_MAX is reset as soon as the MUTING function is restarted.

FREE function

If an error cannot be corrected immediately, the FREE function can be used to free the muting range. Enable signal Q and output MUTING =1 temporarily. The FREE function can be used if:
 ENABLE = 1
 At least one muting sensor is activated
 A user acknowledgment with rising edge at input ACK occurs twice within 4 s, and the second user acknowledgment at input ACK remains at a signal state of 1 (acknowledgment button remains activated)

WARNING
When using the FREE function, the action must be observed. A dangerous situation must be able to be interrupted at any time by releasing the acknowledgment button. The acknowledgment button must be mounted in such a way the entire danger area can be observed. (S037)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

491

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing diagrams for discrepancy errors at sensor pair 1 or interruption of the light curtain (MUTING is not active)



Sensor pair 1 (MS_11 and MS_22) is not activated within discrepancy time

DISCTIM1.



The light curtain is interrupted even though there is no enable (ENABLE=0)



FREE function



Acknowledgment

Behavior with stopped conveyor equipment
If, while the conveyor equipment has stopped, the monitoring for one of the following reasons is to be deactivated:
 To comply with discrepancy time DISCTIM1 or DISCTIM2
 To comply with maximum muting time TIME_MAX
You must supply input STOP with a "1" signal for as long as the conveyor equipment is stopped. As soon as the conveyor equipment is running again (STOP = 0), discrepancy times DISCTIM1 and DISCTIM2 and maximum muting time TIME_MAX are reset.
WARNING
When STOP = 1 or ENABLE = 0, discrepancy monitoring is shut down. During this time, if inputs MSx1/MSx2 of a sensor pair both take a signal state of 1 due to an undetected error, e.g., because both muting sensors fail to 1, the fault is not detected and the MUTING function can be started unintentionally (when ENABLE =1). (S038)

492

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits 0 to 6 are saved until acknowledgment at input ACK.

Structure of DIAG

Bit no. Bit 0
Bit 1 Bit 2 Bit 3
Bit 4

Assignment

Possible error causes

Remedies

Discrepancy error or incorrect discrepancy time DISCTIM 1 setting for sensor pair 1

Malfunction in production sequence Sensor defective

Malfunction in production sequence eliminated
Check sensors

Wiring fault

Check wiring of sensors

Sensors are wired to different F-I/O, and F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON on an F-I/O

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

Discrepancy time setting is too low If necessary, set a higher discrepancy time

Discrepancy time setting is < 0 s or Set discrepancy time in range be-

> 3 s

tween 0 s and 3 s

Discrepancy error or incorrect dis- Same as Bit 0 crepancy time DISCTIM 2 setting for sensor pair 2

Same as Bit 0

Maximum muting time exceeded or incorrect muting time TIME_MAX setting

Malfunction in production sequence
Maximum muting time setting is too low

Malfunction in production sequence eliminated
If necessary, set a higher maximum muting time

Muting time setting is < 0 s or > 10 min

Set muting time in range from 0 s to 10 min

Light curtain interrupted and muting ENABLE = 0

not active

Light curtain is defective

Set ENABLE = 1 Check light curtain

Wiring fault

Check wiring of light curtain (FREE input)

F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of light curtain

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

(FREE input)

Startup of F-system

For FREE, see DIAG Bit 5

See other DIAG bits

Muting lamp is defective or cannot be set

Muting lamp is defective Wiring fault

Replace muting lamp Check wiring of muting lamp

F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of muting lamp

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

493

STEP 7 Safety V16 instructions 13.3 Safety functions

Bit no. Assignment Bit 5 FREE is necessary

Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 ... Bit 15

Acknowledgment necessary State of output Q State of output MUTING FREE active Reserved
Reserved

Possible error causes See other DIAG bits
-- -- -- -- --
--

Remedies Two rising edges at ACK within 4 s, and activate acknowledgment button until ACK_REQ = 0 -- -- -- -- --
--

Timing imprecision resulting from the update time of the time base used in the instruction:

 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

494

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.3 Safety functions
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

495

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.6

EV1oo2DI: 1oo2 evaluation with discrepancy analysis (STEP 7 Safety V16)

Description

This instruction implements a 1oo2 evaluation of two single-channel sensors combined with a discrepancy analysis.
Output Q is set to 1, if the signal states of inputs IN1 and IN2 both equal 1 and no discrepancy error DISC_FLT is stored. if the signal state of one or both inputs is 0, output Q is set to 0.
As soon as the signal states of inputs IN1 and IN2 are different, the discrepancy time DISCTIME is started. If the signal states of the two inputs are still different once the discrepancy time expires, a discrepancy error is detected and DISC_FLT is set to 1 (restart inhibit).
If the discrepancy between inputs IN1 and IN2 is no longer detected, the discrepancy error is acknowledged according to the parameter assignment of ACK_NEC:
 If ACK_NEC = 0, the acknowledgment is automatic.
 If ACK_NEC = 1, you must use a rising edge at input ACK to acknowledge the discrepancy error.
The output ACK_REQ = 1 signals that a user acknowledgment at input ACK is necessary to acknowledge the discrepancy error (cancel the restart inhibit). The instruction sets ACK_REQ = 1 as soon as discrepancy is no longer detected. After acknowledgment or if, prior to acknowledgment, there is once again a discrepancy between inputs IN1 and IN2, the instruction resets ACK_REQ to 0.
Output Q can never be set to 1 if the discrepancy time setting is < 0 or > 60 s. In this case, output DISC_FLT is also set to 1 (restart inhibit). The call interval of the safety program (e.g., OB 35) must be less than the discrepancy time setting.
Every call of the "1oo2 evaluation with discrepancy analysis" instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., EV1oo2DI_DB_1) or a multi-instance (e.g., EV1oo2DI_Instance_1) for the "1oo2 evaluation with discrepancy analysis" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

WARNING
The ACK_NEC tag must not be assigned a value of 0 unless an automatic restart of the affected process is otherwise excluded. (S033)

496

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

Parameters
Parameter IN1 IN2 DISCTIME ACK_NEC ACK Q ACK_REQ DISC_FLT DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Input Output Output Output Output

Data type BOOL BOOL TIME BOOL BOOL BOOL BOOL BOOL BYTE

Description Sensor 1 Sensor 2 Discrepancy time (0 to 60 s) 1 = acknowledgment necessary for discrepancy error Acknowledgment of discrepancy error Output 1 = acknowledgment required 1 = discrepancy error Non-fail safe service information

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

497

STEP 7 Safety V16 instructions 13.3 Safety functions

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Activating inputs IN1 and IN2
Inputs IN1 and IN2 must both be activated in such a way that their safe state is 0.

498

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Example with QBAD or QBAD_I_xx signal
For non-equivalent signals you need to OR the input (IN1 and IN2) with which you assign the encoder signal to the safe state 1, with the QBAD signal of the associated F-I/O or the QBAD_I_xx signal of the associated channel (with S7-300/400 F-CPUs) and negate the result. Signal state 0 is then at input IN1 or IN2 when fail-safe values are output.

Example with value status
For nonequivalent signals, you have to negate the input (IN1 or IN2) with which you have assigned the encoder signal to a safe state of 1 and AND it with the value status of the associated channel. Signal state 0 is then at input IN1 or IN2 when fail-safe values are output.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

499

STEP 7 Safety V16 instructions 13.3 Safety functions
Timing diagrams EV1oo2DI
If ACK_NEC = 1:

500

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Startup characteristics
Note If the sensors at inputs IN1 and IN2 are assigned to different F-I/O, it is possible that the fail-safe values are output for different lengths of time following startup of the F-system due to different startup characteristics of the F-I/O. If the signal states of inputs IN1 and IN2 remain different after the discrepancy time DISCTIME has expired, a discrepancy error is detected after the F-system starts up. If ACK_NEC = 1 you must acknowledge the discrepancy error with a rising edge at input ACK.

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits are saved until acknowledgment at input ACK.

Structure of DIAG

Bit no. Bit 0

Assignment
Discrepancy error or incorrect discrepancy time setting (= status of DISC_FLT)

Bit 1 Bit 2 Bit 3 Bit 4 Bit 5
Bit 6 Bit 7

For discrepancy errors: last signal state change was at input IN1 For discrepancy errors: last signal state change was at input IN2 Reserved Reserved For discrepancy errors: input ACK has a permanent signal state of 1
Acknowledgment necessary State of output Q

Possible error causes

Remedies

Sensor defective

Check sensors

Wiring fault

Check wiring of sensors

Sensors are wired to different F-I/O, For a solution, see the section

and F-I/O fault, channel fault, or

"Structure of DIAG", bits 0 to 6 in

communication error, or passivation DIAG (Page 183)

by means of PASS_ON on an F-I/O

Discrepancy time setting is too low If necessary, set a higher discrepancy time

Discrepancy time setting is < 0 s or Set discrepancy time in range

> 60 s

between 0 s and 60 s

--

--

--

--

-- -- Acknowledgment button defective Wiring fault
-- --

-- -- Replace acknowledgment button Check wiring of acknowledgment button -- --

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

501

STEP 7 Safety V16 instructions 13.3 Safety functions Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

502

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.3 Safety functions
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

503

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.7

FDBACK: Feedback monitoring (STEP 7 Safety V16)

Description

This instruction implements feedback monitoring.
The signal state of output Q is checked to see whether it corresponds to the inverse signal state of the feedback input FEEDBACK.
Output Q is set to 1 as soon as input ON = 1. Requirement for this is that the feedback input FEEDBACK = 1 and no feedback error is saved.
Output Q is reset to 0, as soon as input ON = 0 or if a feedback error is detected.
A feedback error ERROR = 1 is detected if the inverse signal state of the feedback input FEEDBACK (to input Q) does not follow the signal state of output Q within the maximum tolerable feedback time. The feedback error is saved.
If a discrepancy is detected between the feedback input FEEDBACK and the output Q after a feedback error, the feedback error is acknowledged in accordance with the parameter assignment of ACK_NEC:
 If ACK_NEC = 0, the acknowledgment is automatic.
 If ACK_NEC = 1, you must acknowledge the feedback error with a rising edge at input ACK.
The ACK_REQ = 1 output then signals that a user acknowledgment is necessary at input ACK to acknowledge the feedback error. Following an acknowledgment, the instruction resets ACK_REQ to 0.
To avoid a feedback errors from being detected and acknowledgment from being required when the F-I/O controlled by the Q output are passivated, you need to supply input QBAD_FIO with the QBAD signal of the associated F-I/O or the QBAD_O_xx signal / inverted value status of the associated channel.
Every call of the "Feedback monitoring" instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., FDBACK_DB_1) or a multi-instance (e.g., FDBACK_Instance_1) for the "Feedback monitoring" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
The ACK_NEC tag must not be assigned a value of 0 unless an automatic restart of the affected process is otherwise excluded. (S033)

504

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

Parameters
Parameter ON FEEDBACK QBAD_FIO
ACK_NEC ACK FDB_TIME Q ERROR ACK_REQ DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input
Input Input Input Output Output Output Output

Data type BOOL BOOL BOOL
BOOL BOOL TIME BOOL BOOL BOOL BYTE

Description 1= Enable output Feedback input QBAD signal of the F-I/O or QBAD_O_xx signal / inverted value status of the Q output 1=Acknowledgment necessary Acknowledgment Feedback time Output Feedback error Acknowledgment request Non-fail safe service information

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

505

STEP 7 Safety V16 instructions 13.3 Safety functions

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

--

1.3 x

o

1.4 x

o

1.5 x

x

S7-1500 --
-- o o o x

Function
Version 1.0 requires that the F_TOF block with the number FB 186 is available in the project tree in the "Program blocks/System blocks/STEP 7 Safety" folder. When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. You will then avoid number conflicts.
These versions are functionally identical to version V1.0, but do not require the F_TOF block to have a particular number.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Interconnection example

 Sent to the FEEDBACK input of the instruction  from output Q of the instruction

506

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits 0, 2, and 5 are saved until acknowledgment at input ACK.

Structure of DIAG

Bit no. Bit 0
Bit 1 Bit 2
Bit 3 Bit 4 Bit 5 Bit 6 Bit 7

Assignment
Feedback error or incorrect feedback time setting (= state of ERROR)

Possible error causes Feedback time setting < 0 Feedback time setting is too low

Wiring fault

Passivation of F-I/O/channel controlled by output Q (= state of QBAD_FIO) After feedback error: feedback input has permanent signal state of 0
Reserved Reserved For feedback error: input ACK has a permanent signal state of 1

Actuator or feedback contact is defective
I/O fault or channel fault of feedback input
F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O
F-I/O fault or channel fault of feedback input
Feedback contact is defective
F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O of feedback input
--
--
Acknowledgment button defective
Wiring fault

Acknowledgment required

--

(= state of ACK_REQ)

State of output Q

--

Remedies Set feedback time > 0 If necessary, set a higher feedback time Check wiring of actuator and feedback contact Check actuator and feedback contact Check I/O
For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183) Check I/O
Check feedback contact For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)
-- -- Check acknowledgment button Check wiring of acknowledgment button --
--

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

507

STEP 7 Safety V16 instructions 13.3 Safety functions Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

508

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.3 Safety functions
The following example shows how the instruction for S7-300/400 F-CPUs works:

The following example shows how the instruction for S7-1200/1500 F-CPUs works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

509

STEP 7 Safety V16 instructions 13.3 Safety functions

510

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.8

SFDOOR: Safety door monitoring (STEP 7 Safety V16)

Description

This instruction implements safety door monitoring.
Enable signal Q is reset to 0 as soon as one of the inputs IN1 or IN2 take a signal state of 0 (safety door is opened). The enable signal can be reset to 1, only if:
 Inputs IN1 and IN2 both take a signal state of 0 prior to opening the door (safety door has been completely opened)
 Inputs IN1 and IN2 then both take a signal state of 1 (safety door is closed)
 An acknowledgment occurs
The acknowledgment for the enable takes place according to the parameter assignment at input ACK_NEC:
 If ACK_NEC = 0, the acknowledgment is automatic.
 If ACK_NEC = 1, you must use a rising edge at input ACK for acknowledging the enable.
Output ACK_REQ = 1 is used to signal that a user acknowledgment is required at input ACK for the acknowledgment. The instruction sets ACK_REQ = 1 as soon as the door is closed. Following an acknowledgment, the instruction resets ACK_REQ to 0.
In order for the instruction to recognize whether inputs IN1 and IN2 are 0 merely due to passivation of the associated F-I/O, you need to supply inputs QBAD_IN1 or QBAD_IN2 with the QBAD signal of the associated F-I/O or QBAD_I_xx signal / inverted value status of the associated channel. Among other things, this will prevent you from having to open the safety door completely prior to an acknowledgment in the event the F-I/O are passivated.
Every call of the "Safety door monitoring" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., SFDOOR_DB_1) or a multi-instance (e.g., SFDOOR_Instance_1) for the "Safety door monitoring" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
The ACK_NEC tag must not be assigned a value of 0 unless an automatic restart of the affected process is otherwise excluded. (S033)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

511

STEP 7 Safety V16 instructions 13.3 Safety functions

Parameters
Parameter IN1 IN2 QBAD_IN1
QBAD_IN2
OPEN_NEC ACK_NEC ACK Q ACK_REQ DIAG

The following table shows the parameters of the instruction:

Declaration Input Input Input
Input
Input Input Input Output Output Output

Data type BOOL BOOL BOOL
BOOL
BOOL BOOL BOOL BOOL BOOL BYTE

Description Input 1 Input 2 QBAD signal of the F-I/O or QBAD_O_xx signal / inverted value status of the channel of input IN1 QBAD signal of the F-I/O or QBAD_O_xx signal / inverted value status of the channel of input IN2 1= Open necessary at startup 1=Acknowledgment necessary Acknowledgment 1= Enable, safety door closed Acknowledgment request Non-fail safe service information

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

512

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions
Interconnection example
You must interconnect the NC contact of position switch 1 of the safety door at input IN1 and the NO contact of position switch 2 at input IN2. Position switch 1 must be mounted in such a way that it is positively operated when the safety door is open. Position switch 2 must be mounted in such a way that it is operated when the safety door is closed.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

513

STEP 7 Safety V16 instructions 13.3 Safety functions
Startup characteristics
After an F-system startup, enable signal Q is reset to 0. The acknowledgment for the enable takes place according to the parameter assignment at inputs OPEN_NEC and ACK_NEC:  When OPEN_NEC = 0, an automatic acknowledgment occurs independently of
ACK_NEC, as soon as the two inputs IN1 and IN2 take signal state 1 for the first time following reintegration of the associated F-I/O (safety door is closed).  When OPEN_NEC = 1 or if at least one of the IN1 and IN2 inputs still has a signal state of 0 after reintegration of the associated F-I/O, an automatic acknowledgment occurs according to ACK_NEC or you have to use a rising edge at input ACK for the enable. Prior to acknowledgment, inputs IN1 and IN2 both have to take a signal state of 0 (safety door has been completely opened) followed by a signal state of 1 (safety door is closed).
WARNING
The OPEN_NEC tag must not be assigned a value of 0 unless an automatic restart of the affected process is otherwise excluded. (S039)

Output DIAG

The DIAG output provides non-fail-safe information on errors for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program.

514

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Structure of DIAG

Bit no. Bit 0 Bit 1
Bit 2
Bit 3 Bit 4 Bit 5 Bit 6 Bit 7

Assignment Reserved Signal state 0 is missing at both IN1 and IN2 inputs
Signal state 1 is missing at both IN1 and IN2 inputs
QBAD_IN1 and/or QBAD_IN2 = 1
Reserved If enable is missing: input ACK has a permanent signal state of 1 Acknowledgment required (= state of ACK_REQ) State of output Q

Possible error causes

Remedies

--

--

Safety door was not completely

Open safety door completely

opened when OPEN_NEC = 1 after

F-system startup

Open safety door was not completely opened

Open safety door completely

Wiring fault

Check wiring of position switch

Position switch is defective

Check position switch

Position switch is incorrectly adjusted

Adjust position switch properly

Safety door was not closed

Close safety door

Wiring fault

Check wiring of position switch

Position switch is defective

Check position switch

Position switch is incorrectly adjusted

Adjust position switch properly

F-I/O fault, channel fault, or communication error, or passivation by means of PASS_ON of F-I/O or channel of IN1 and/or IN2

For a solution, see the section "Structure of DIAG", bits 0 to 6 in DIAG (Page 183)

--

--

Acknowledgment button defective Check acknowledgment button

Wiring fault

Check wiring of acknowledgment button

--

--

--

--

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

515

STEP 7 Safety V16 instructions 13.3 Safety functions

Example

The following example shows how the instruction for S7-300/400 F-CPUs works:

The following example shows how the instruction for S7-1200/1500 F-CPUs works:

516

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

517

STEP 7 Safety V16 instructions 13.3 Safety functions

13.3.9

ACK_GL: Global acknowledgment of all F-I/O in an F-runtime group (STEP 7 Safety V16)

Description

This instruction creates an acknowledgment for the simultaneous reintegration of all F-I/O or channels of the F-I/O of an F-runtime group after communication errors, F-I/O errors, or channel faults.
A user acknowledgment (Page 196) with a positive edge at input ACK_GLOB is required for reintegration. The acknowledgment occurs analogously to the user acknowledgment via the ACK_REI tag of the F-I/O DB (Page 178), but it acts simultaneously on all F-I/O of the F-runtime group in which the instruction is called.
If you use the instruction ACK_GL, you do not have to provide a user acknowledgment for each F-I/O of the F-runtime group via the ACK_REI tag of the F-I/O DB.
Every call of the "Global acknowledgment of all F-I/O of a runtime group" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., ACK_GL_DB_1) or a multi-instance (e.g., ACK_GL_Instance_1) for the "Global acknowledgment of all F-I/O of a runtime group" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
Note
An acknowledgment via the ACK_GL instruction is only possible if the tag ACK_REI of the FI/O DB = 0. Accordingly, an acknowledgment via the tag ACK_REI of the F-I/O DB is only possible if the input ACK_GLOB of the instruction = 0.
The instruction is only allowed to be called once per F-runtime group.

Parameters
Parameter ACK_GLOB

The following table shows the parameters of the instruction:

Declaration Input

Data type BOOL

Description 1=acknowledgment for reintegration

518

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.3 Safety functions

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Example

The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

519

STEP 7 Safety V16 instructions 13.4 Timer operations

13.4

Timer operations

13.4.1

TP: Generate pulse (STEP 7 Safety V16)

Description

You can use the "Generate pulse" instruction to set output Q for a programmed period. The instruction is started if the result of logic operation (RLO) changes from "0" to "1" (positive edge) at input IN. The programmed period PT starts running when the instruction starts. Output Q is set for period PT, regardless of the subsequent sequence of the input signal. Also the detection of a new positive signal edge does not influence the signal state at output Q as long as period PT runs.
You can query the current time value at the output ET. The time value begins at T#0s and ends when the value of period PT is reached. If period PT is reached and the signal state at input IN is "0", output ET is reset.
Every call of the "Generate pulse" instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Timer_DB_1) or a multi-instance (e.g., F_IEC_Timer_Instance_1) for the "Generate pulse" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times:
· Known timing imprecision (based on standard systems) resulting from cyclic processing
· Timing imprecision resulting from the update time of the time base used in the instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction")
· Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned) time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

520

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations
The operating system resets the instances of the "Generate pulse" instruction on a startup of the F-system.
Note The functionality of this instruction differs from the corresponding standard TP instruction in the following points: · If the instruction is called while the time is running with PT = 0 ms, the outputs Q and ET
are reset. · If the instruction is called with PT < 0 ms, the outputs Q and ET are reset. To restart the pulse, a new rising signal edge at input IN is required once PT is greater than 0 again.

Parameters
Parameter IN PT Q ET

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL TIME BOOL TIME

Description Start input Duration of pulse; must be positive. Pulse output Current time value

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

o

1.4 x

x

S7-1500 --
o o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

521

STEP 7 Safety V16 instructions 13.4 Timer operations
Pulse diagram
The following figure shows the pulse diagram of the instruction "Generate pulse":

522

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations
Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

523

STEP 7 Safety V16 instructions 13.4 Timer operations

Example

The following example shows how the instruction works:

If the signal state of operand "TagIn_1" changes from "0" to "1", the "Generate pulse" instruction is started and the period assigned at input PT (100 ms) runs, regardless of the further course of operand "TagIn_1".
Operand "TagOut" at output Q has signal state "1" as long as the period is running. Operand ""F_DB_1".Tag_ET" contains the current time value.

524

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations

13.4.2

TON: Generate on-delay (STEP 7 Safety V16)

Description

You use the "Generate on-delay" instruction to delay the setting of output Q by the assigned period PT. The instruction is started if the result of logic operation (RLO) changes from "0" to "1" (positive edge) at input IN. The programmed period PT starts running when the instruction starts. When period PT has expired, output Q is set to signal state "1". Output Q remains set as long as the start input is set to "1". When the signal state at the start input changes from "1" to "0", output Q is reset. The time function is restarted when a new positive signal edge is detected at the start input.
You can query the current time value at the output ET. The time value begins at T#0s and ends when the value of period PT is reached. Output ET is reset, as soon as the signal state at input IN changes to "0".
Every call of the "Generate on-delay" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Timer_DB_1) or a multi-instance (e.g., F_IEC_Timer_Instance_1) for the "Generate on-delay" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times:
· Known timing imprecision (based on standard systems) resulting from cyclic processing
· Timing imprecision resulting from the update time of the time base used in the instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction")
· Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned) time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

525

STEP 7 Safety V16 instructions 13.4 Timer operations
The operating system resets the instances of the "Generate on-delay" instruction on a startup of the F-system.
Note The functionality of this instruction differs from the corresponding standard TON instruction in the following points: · If the instruction is called while the time is running with PT = 0 ms, the output ET is reset. · If the instruction is called with PT < 0 ms, the outputs Q and ET are reset. To restart the on-delay, a new rising signal edge at input IN is required once PT is greater than 0 again.

Parameters
Parameter IN PT Q ET

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL TIME BOOL TIME

Description Start input Duration of on-delay; must be positive. Output that is set after expiration of time PT. Current time value

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

o

1.4 x

x

S7-1500 --
o o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

526

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations
Pulse diagram
The following figure shows the pulse diagram of the instruction "Generate on-delay":

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

527

STEP 7 Safety V16 instructions 13.4 Timer operations Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

528

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.4 Timer operations
The following example shows how the instruction works:

When the signal state of operand "TagIn_1" changes from "0" to "1", the "Generate on-delay" instruction is started and the period assigned at input PT (1 s) runs.
Operand "TagOut" at output Q feeds signal state "1" when the period has elapsed and remains set as long as operand "TagIn_1" still feeds signal state "1". Operand ""F_DB_1".Tag_ET" contains the current time value.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

529

STEP 7 Safety V16 instructions 13.4 Timer operations

13.4.3

TOF: Generate off-delay (STEP 7 Safety V16)

Description

You use the "Generate off-delay" instruction to delay the resetting of output Q by the assigned period PT. Output Q is set if the result of logic operation (RLO) changes from "0" to "1" (positive edge) at input IN. When the signal state at input IN changes back to "0", the programmed period PT starts. Output Q remains set as long as period PT runs. After period PT expires, output Q is reset. If the signal state at input IN changes to "1" before period PT has expired, then the time is reset. The signal state at output Q remains at "1".
You can query the current time value at the output ET. The time value begins at T#0s and ends when the value of period PT is reached. After time PT has elapsed, output ET remains at its current value until input IN changes back to "1". If input IN changes to "1" before time PT has expired, the output ET is reset to value T#0.
Every call of the "Generate off-delay" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is in inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Timer_DB_1) or a multi-instance (e.g., F_IEC_Timer_Instance_1) for the "Generate off-delay" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times:
· Known timing imprecision (based on standard systems) resulting from cyclic processing
· Timing imprecision resulting from the update time of the time base used in the instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction")
· Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned) time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

530

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations
The operating system resets the instances of the "Generate off-delay" instruction on a startup of the F-system.
Note The functionality of this instruction differs from the corresponding standard TOF instruction in the following points: · If the instruction is called while the time is running with PT = 0 ms, the outputs Q and ET
are reset. · If the instruction is called with PT < 0 ms, the outputs Q and ET are reset. To restart the off-delay, another falling signal edge at input IN is required once PT is greater than 0 again.

Parameters
Parameter IN PT Q ET

The following table shows the parameters of the instruction:

Declaration Input Input Output Output

Data type BOOL TIME BOOL TIME

Description Start input Duration of off delay; must be positive. Output that is reset after expiration of time PT. Current time value

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

o

1.4 x

x

S7-1500 --
o o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

531

STEP 7 Safety V16 instructions 13.4 Timer operations
Pulse diagram
The following figure shows the pulse diagram of the instruction "Generate off-delay":

532

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.4 Timer operations
Timing imprecision resulting from the update time of the time base used in the instruction:
 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

533

STEP 7 Safety V16 instructions 13.4 Timer operations

Example

The following example shows how the instruction works:

If the signal state of operand "TagIn_1" changes from "0" to "1", the signal state of operand"TagOut" at output Q is set to "1".
If the signal state of operand "TagIn_1" changes back to "0", the period assigned at input PT (200 ms) runs.
The "TagOut" operand at output Q is set back to "0" when the period expires. Operand ""F_DB_1".Tag_ET" contains the current time value.

534

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.5

Counter operations

STEP 7 Safety V16 instructions 13.5 Counter operations

13.5.1

CTU: Count up (STEP 7 Safety V16)

Description

You can use the "Count up" instruction to increment the value at output CV. When the signal state at the CU input changes from "0" to "1" (positive signal edge), the instruction is executed and the current count at the CV output increases by one. The count value is increased on each detection of a positive signal edge until it reaches the high limit of the data type specified at the CV output. When the high limit is reached, the signal state at the CU input no longer affects the instruction.
The counter status can be queried at output Q. The signal state at output Q is determined by parameter PV. When the current count value is greater than or equal to the value of parameter PV, output Q is set to signal state "1". In all other cases, the signal state at output Q is "0".
The value at output CV is reset to zero when the signal state at input R changes to "1". As long as signal state "1" exists at input R, the signal state at input CU has no effect on the instruction.
Every call of the "Count up" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Counter_DB_1) or a multi-instance (e.g., F_IEC_Counter_Instance_1) for the "Count up" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
The operating system resets the instances of the "Count up" instruction on a startup of the Fsystem.

Parameters
Parameter CU R PV Q CV

The following table shows the parameters of the instruction:

Declaration Input Input Input Output Output

Data type BOOL BOOL INT BOOL INT

Description Counter input Reset input Value for which output Q is set Counter status Current count value

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

535

STEP 7 Safety V16 instructions 13.5 Counter operations

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Example

The following example shows how the instruction works:

When the signal state of the "CU" input changes from "0" to "1", the "Count up" instruction is executed and the current count of the "CV" output increases by one. The count value is increased on every additional positive signal edge until the high limit of the specified data type (32767) is reached.
The value at the PV parameter is applied as the limit for determining the "TagOut" operands at the Q output. Output "Q" returns the signal state "1" as long as the current count is greater than or equal to the value of operand "PV". In all other cases, the "Q" output has the signal state "0".

536

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.5 Counter operations

13.5.2

CTD: Count down (STEP 7 Safety V16)

Description

You can use the "Count down" instruction to decrement the value at output CV. When the signal state at input CD changes from "0" to "1" (positive signal edge), the instruction is executed and the current count value at output CV is decreased by one. The count value is decreased on each detection of a positive signal edge until it reaches the low limit of the specified data type. When the low limit is reached, the signal state at input CD no longer affects the instruction.
The counter status can be queried at output Q. When the current count value is less than or equal to zero, output Q is set to signal state "1". In all other cases, the signal state at output Q is "0".
The value at output CV is set to the value of parameter "PV" when the signal state at input LD changes to "1". As long as signal state "1" exists at input LD, the signal state at input CD has no effect on the instruction.
Every call of the "Count down" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Counter_DB_1) or a multi-instance (e.g., F_IEC_Counter_Instance_1) for the "Count down" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
The operating system resets the instances of the "Count down" instruction on a startup of the F-system.

Parameters
Parameter CD LD PV Q CV

The following table shows the parameters of the instruction:

Declaration Input Input Input Output Output

Data type BOOL BOOL INT BOOL INT

Description Counter input Load input Value at the output CV when LD = 1 is set Counter status Current count value

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

537

STEP 7 Safety V16 instructions 13.5 Counter operations

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Example

The following example shows how the instruction works:

When the signal state of the "CD" input changes from "0" to "1", the "Count down" instruction is executed and the current count at "CV" output decreases by one. The count value is decreased on each additional positive signal edge until the low limit of the specified data type (-32768) is reached.
Output "Q" returns the signal state "1" as long as the current count is less than or equal to zero. In all other cases, output "Q" has signal state "0".

538

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.5 Counter operations

13.5.3

CTUD: Count up and down (STEP 7 Safety V16)

Description

You can use the "Count up and down" instruction to increment and decrement the count value at output CV. If the signal state at the CU input changes from "0" to "1" (positive signal edge), the current count at the CV output increases by one. If the signal state at input CD changes from "0" to "1" (positive signal edge), the count value at output CV is decreased by one. If a positive signal edge is present at inputs CU and CD in one program cycle, the current count value at output CV remains unchanged.
The count value can be increased until it reaches the high limit of the data type specified at output CV. When the high limit is reached, the count value is no longer incremented on a positive signal edge. When the low limit of the specified data type is reached, the count value is no longer decreased.
When the signal state at input LD changes to "1", the count value at output CV is set to the value of parameter PV. As long as signal state "1" exists at input LD, the signal state at inputs CU and CD has no effect on the instruction.
The count value is set to zero, when the signal state at input R changes to "1". As long as signal state "1" exists at input R, the signal state at inputs CU, CD, and LD has no effect on the "Count up and down" instruction.
The status of the up counter can be queried at output QU. When the current count value is greater than or equal to the value of parameter PV, output QU delivers signal state "1". In all other cases, the signal state at output QU is "0".
The status of the down counter can be queried at output QD. When the current count value is lesser than or equal to zero, output QD delivers signal state "1". In all other cases, the signal state at output QD is "0".
Every call of the "Count up and down" instruction must be assigned a data area in which the instruction data are stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., F_IEC_Counter_DB_1) or a multi-instance (e.g., F_IEC_Counter_Instance_1) for the "Count up and down" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
The operating system resets the instances of the "Count up and down" instruction when the F-system is started up.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

539

STEP 7 Safety V16 instructions 13.5 Counter operations

Parameters
Parameter CU CD R LD PV
QU QD CV

The following table shows the parameters of the instruction:

Declaration Input Input Input Input Input
Output Output Output

Data type BOOL BOOL BOOL BOOL INT
BOOL BOOL INT

Description Count up input Count down input Reset input Load input Value set at the output QU/ at which the output CV is set at LD = 1. Status of up counter Status of down counter Current count value

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

540

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.5 Counter operations
The following example shows how the instruction works:

When the signal state at the "CU" input or at the "CD" input changes from "0" to "1" (positive signal edge), the "Count up and down" instruction is executed. When a positive signal edge is present at the "CU" input, the current count of the "CV" output increases by one. When a positive signal edge is present at the "CD" input, the current count at the "CV" output decreases by one. The count value is increased on each positive signal edge at the CU input until it reaches the high limit of 32767. The count value is decreased on each positive signal edge at the CD input until it reaches the low limit of -32768.
Output "QU" returns the signal state "1" as long as the current count is greater than or equal to the value at the "PV" input. In all other cases, output "QU" has signal state "0".
Output "QD" returns the signal state "1" as long as the current count is less than or equal to zero. In all other cases, output "QD" has signal state "0".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

541

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6

Comparator operations

13.6.1

CMP ==: Equal (STEP 7 Safety V16)

Description

You can use the "Equal" instruction to determine if the first comparison value (IN1 or <Operand1>) is equal to the second comparison value (IN2 or <Operand2>).
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1>
FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type
INT, DINT, TIME, WORD, (S7300/400) DWORD
INT, DINT, TIME, WORD, (S7300/400) DWORD

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

542

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" = "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

543

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6.2

CMP <>: Not equal (STEP 7 Safety V16)

Description

You can use the "Not equal" instruction to determine if the first comparison value (IN1 or <Operand1>) is not equal to the second comparison value (IN2 or <Operand2>).
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1>
FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type
INT, DINT, TIME, WORD, (S7300/400) DWORD
INT, DINT, TIME, WORD, (S7300/400) DWORD

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

544

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" <> "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

545

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6.3

CMP >=: Greater or equal (STEP 7 Safety V16)

Description

You can use the "Greater or equal" instruction to determine if the first comparison value (IN1 or <Operand1>) is greater than or equal to the second comparison value (IN2 or <Operand2>). Both comparison values must be of the same data type.
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1> FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type INT, DINT, TIME
INT, DINT, TIME

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

546

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" >= "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

547

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6.4

CMP <=: Less or equal (STEP 7 Safety V16)

Description

You can use the "Less or equal" instruction to determine if the first comparison value (IN1 or <Operand1>) is less than or equal to the second comparison value (IN2 or <Operand2>). Both comparison values must be of the same data type.
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1> FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type INT, DINT, TIME
INT, DINT, TIME

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

548

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" <= "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

549

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6.5

CMP >: Greater than (STEP 7 Safety V16)

Description

You can use the "Greater than" instruction to determine if the first comparison value (IN1 or <Operand1>) is greater than the second comparison value (IN2 or <Operand2>). Both comparison values must be of the same data type.
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1> FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type INT, DINT, TIME
INT, DINT, TIME

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

550

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" > "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

551

STEP 7 Safety V16 instructions 13.6 Comparator operations

13.6.6

CMP <: Less than (STEP 7 Safety V16)

Description

You can use the "Less than" instruction to determine if the first comparison value (IN1 or <Operand1>) is less than the second comparison value (IN2 or <Operand2>). Both comparison values must be of the same data type.
If the condition of the comparison is satisfied, the instruction returns result of logic operation (RLO) "1". If the condition of the comparison is not satisfied, the instruction returns RLO "0".
For LAD:
The RLO of the instruction is linked to the RLO of the entire current path as follows:
 By AND, when the comparison instruction is connected in series.
 By OR, when the comparison instruction is connected in parallel.
Enter the first comparison value (<Operand1>) in the operand placeholder above the instruction. Enter the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Parameters

The following table shows the parameters of the instruction:

Parameter FBD: IN1 LAD: <Operand1> FBD: IN2 LAD: <Operand2>

Declaration Input
Input

Data type INT, DINT, TIME
INT, DINT, TIME

Description First value to compare
Second value to compare

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

552

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.6 Comparator operations
The following example shows how the instruction works:

Output "TagOut" is set when the following conditions are fulfilled:  "Tag_In1" has signal state "1".  The condition of the comparison instruction is fulfilled ("Tag_Value1" < "Tag_Value2").

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

553

STEP 7 Safety V16 instructions 13.7 Math functions

13.7

Math functions

13.7.1

ADD: Add (STEP 7 Safety V16)

Description

You can use the "Add" instruction to add the value at input IN1 and the value at input IN2 and query the sum at the OUT output (OUT = IN1 + IN2).
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
(S7-1200, S7-1500) You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.
(S7-300, S7-400) You can avoid a STOP of the F-CPU by inserting a "Get status bit OV" instruction in the next network, thereby programming overflow detection.
Note the following: · The result of the instruction reacts like the analogous instruction in a standard block. · The network with the "Get status bit OV" instruction must not contain any jump labels. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · A warning is issued if you do not insert a "Get status bit OV" instruction. · Work memory requirement of safety program is increased.

554

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions

Parameters
Parameter ENO
IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Input Output

Data type BOOL
INT, DINT INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output First addend Second addend Total

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

Example for S7-300/400 F-CPUs
The following example shows how the instruction works:

The "Add" instruction is always executed regardless of the signal state at enable input EN.
The value of the "Tag_Value1" operand is added to value of the "Tag_Value2" operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

555

STEP 7 Safety V16 instructions 13.7 Math functions
If needed, you can also store the signal status of the ENO enable output in an (F-)DB, and centrally evaluate whether overflows have occurred for all or one group of instructions with overflow detection. When an overflow occurs during execution of the "Add" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.
Example for S7-1200/1500 F-CPUs
The following example shows how the instruction works:

See also

The "Add" instruction is always executed regardless of the signal state at enable input EN. The value of the "#Tag_Value1" operand is added to value of the "#Tag_Value2" operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand. When no overflow occurs during execution of the "Add" instruction, the ENO enable output has the signal state "1" and the "#TagOut" operand is set. If needed, you can also store the signal status of the ENO enable output in an (F-)DB, and centrally evaluate whether overflows have occurred for all or one group of instructions with overflow detection.
---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 627) ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 629)

556

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions

13.7.2

SUB: Subtract (STEP 7 Safety V16)

Description

You can use the "Subtract" instruction to subtract the value at input IN2 from the value at input IN1 and query the difference at the OUT output (OUT = IN1 ­ IN2).
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
(S7-1200, S7-1500) You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.
(S7-300, S7-400) You can avoid a STOP of the F-CPU by inserting a "Get status bit OV" instruction in the next network, thereby programming overflow detection.
Note the following: · The result of the instruction reacts like the analogous instruction in a standard block. · The network with the "Get status bit OV" instruction must not contain any jump labels. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · A warning is issued if you do not insert a "Get status bit OV" instruction. · Work memory requirement of safety program is increased.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

557

STEP 7 Safety V16 instructions 13.7 Math functions

Parameters
Parameter ENO
IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Input Output

Data type BOOL
INT, DINT INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output Minuend Subtrahend Difference

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

Example for S7-300/400 F-CPUs
The following example shows how the instruction works:

The "Subtract" instruction is always executed regardless of the signal state at enable input EN.

558

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions
The value of the "Tag_Value2" operand is subtracted from the value of the "Tag_Value1" operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand. When an overflow occurs during execution of the "Subtract" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.
Example for S7-1200/1500 F-CPUs
The following example shows how the instruction works:

See also

The "Subtract" instruction is always executed regardless of the signal state at enable input EN. The value of the "#Tag_Value2" operand is subtracted from the value of the "#Tag_Value1" operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand. When no overflow occurs during execution of the "Subtract" instruction, the ENO enable output has the signal state "1" and the "#TagOut" operand is set.
---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 627) ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 629)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

559

STEP 7 Safety V16 instructions 13.7 Math functions

13.7.3

MUL: Multiply (STEP 7 Safety V16)

Description

You can use the "Multiply" instruction to multiply the value at input IN1 by the value at input IN2 and query the product at output OUT (OUT = IN1 × IN2).
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
(S7-1200, S7-1500) You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.
(S7-300, S7-400) You can avoid a STOP of the F-CPU by inserting a "Get status bit OV" instruction in the next network, thereby programming overflow detection.
Note the following: · The result of the instruction reacts like the analogous instruction in a standard block. · The network with the "Get status bit OV" instruction must not contain any jump labels. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · A warning is issued if you do not insert a "Get status bit OV" instruction. · Work memory requirement of safety program is increased.

560

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions

Parameters
Parameter ENO
IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Input Output

Data type BOOL
INT, DINT INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output Multiplier Multiplicand Product

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

Example for S7-300/400 F-CPUs
The following example shows how the instruction works:

The "Multiply" instruction is always executed regardless of the signal state at enable input EN.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

561

STEP 7 Safety V16 instructions 13.7 Math functions
The value of the "Tag_Value1" operand is multiplied by the value of the "Tag_Value2" operand. The result of the multiplication is stored in the ""F_DB_1".Tag_Result" operand. When an overflow occurs during execution of the "Multiply" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.
Example for S7-1200/1500 F-CPUs
The following example shows how the instruction works:

See also

The "Multiply" instruction is always executed regardless of the signal state at enable input EN. The value of the "#Tag_Value1" operand is multiplied by the value of the "#Tag_Value2" operand. The result of the multiplication is stored in the ""F_DB_1".Tag_Result" operand. When no overflow occurs during execution of the "Multiply" instruction, the ENO enable output has the signal state "1" and the "#TagOut" operand is set.
---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 627) ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 629)

562

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions

13.7.4

DIV: Divide (STEP 7 Safety V16)

Description

You can use the "Divide" instruction to divide the value at input IN1 by the value at input IN2 and query the quotient at the OUT output (OUT = IN1 / IN2).
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
(S7-1200, S7-1500) You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.
(S7-300, S7-400) You can avoid a STOP of the F-CPU by inserting a "Get status bit OV" instruction in the next network, thereby programming overflow detection.
Note the following: · The result of the instruction reacts like the analogous instruction in a standard block. · The network with the "Get status bit OV" instruction must not contain any jump labels. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · A warning is issued if you do not insert a "Get status bit OV" instruction. · Work memory requirement of safety program is increased.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

563

STEP 7 Safety V16 instructions 13.7 Math functions
Note S7-300/400, S7-1200/1500 (enable output ENO connected): If the divisor (input IN2) of a DIV instruction = 0, the quotient of the division (result of division at output OUT) = 0. The result reacts like the corresponding instruction in a standard block. The F-CPU does not go to STOP mode. S7-1200/1500 (enable output ENO not connected): If the divisor (input IN2) of a DIV instruction = 0, the F-CPU goes to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU. We recommend that you rule out a divisor (input IN2) = 0 when creating the program.

Parameters
Parameter ENO
IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Input Output

Data type BOOL
INT, DINT INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output Dividend Divisor Quotient

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

564

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions
Example for S7-300/400 F-CPUs
The following example shows how the instruction works:

The "Divide" instruction is always execute regardless of the signal state at enable input EN.
The value of the "Tag_Value1" operand is divided by the value of the "Tag_Value2" operand. The result of the division is stored in the ""F_DB_1".Tag_Result" operand.
When an overflow occurs during execution of the "Divide" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

565

STEP 7 Safety V16 instructions 13.7 Math functions
Example for S7-1200/1500 F-CPUs
The following example shows how the instruction works:

See also

The "Divide" instruction is always execute regardless of the signal state at enable input EN. The value of the "#Tag_Value1" operand is divided by the value of the "#Tag_Value2" operand. The result of the division is stored in the ""F_DB_1".Tag_Result" operand. When no overflow occurs during execution of the "Divide" instruction, the ENO enable output has the signal state "1" and the "#TagOut" operand is set.
---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 627) ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 629)

566

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions

13.7.5

NEG: Create twos complement (STEP 7 Safety V16)

Description

You can use the "Create twos complement" instruction to change the sign of the value at input IN input and query the result at output OUT. If there is a positive value at input IN, for example, the negative equivalent of this value is sent to output OUT.
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
(S7-1200, S7-1500) You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.
(S7-300, S7-400) You can avoid a STOP of the F-CPU by inserting a "Get status bit OV" instruction in the next network, thereby programming overflow detection.
Note the following: · The result of the instruction reacts like the analogous instruction in a standard block. · The network with the "Get status bit OV" instruction must not contain any jump labels. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · A warning is issued if you do not insert a "Get status bit OV" instruction. · Work memory requirement of safety program is increased.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

567

STEP 7 Safety V16 instructions 13.7 Math functions

Parameters
Parameter ENO IN OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Output

Data type BOOL
INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output Input value Twos complement of the input value

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

Example for S7-300/400 F-CPUs
The following example shows how the instruction works:

The "Create two's complement" instruction is always executed regardless of the signal state at enable input EN.
The sign of the "TagIn_Value" operand is changed and the result is stored in the ""F_DB_1".TagOut_Value" operand.

568

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.7 Math functions
When an overflow occurs during execution of the "Create two's complement" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.
Example for S7-1200/1500 F-CPUs
The following example shows how the instruction works:

See also

The "Create two's complement" instruction is always executed regardless of the signal state at enable input EN. The sign of the "#TagIn_Value" operand is changed and the result is stored in the ""F_DB_1".TagOut_Value" operand. When no overflow occurs during execution of the "Create two's complement" instruction, the ENO enable output has the signal state "1" and the "TagOut" operand is set.
---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 627) ---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400) (Page 629)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

569

STEP 7 Safety V16 instructions 13.7 Math functions

13.7.6

ABS: Form absolute value (STEP 7 Safety V16) (S7-1200, S7-1500)

Description

You use the "Form absolute value" instruction to calculate the absolute amount of the value which is specified at the input "IN". The result of the instruction is output at the OUT output and can be queried there.
Enable input "EN" or (S7-300, S7-400) enable output "ENO" cannot be connected. The instruction is therefore always executed regardless of the signal state at enable input "EN".
Note
When the result of the instruction is located outside the permitted range for this data type, the F-CPU may switch to STOP. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
You must therefore ensure that the permitted range for the data type is observed when creating the program!
You can avoid a STOP of the F-CPU by connecting the ENO enable output, thereby programming overflow detection.
Note the following: · If the result of the instruction is located outside the permitted range for this data type, the
enable output ENO returns the signal state "0". · The result of the instruction reacts like the analogous instruction in a standard block. · The execution time of the instruction is extended (see also Excel file for response time
calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)). · Work memory requirement of safety program is increased.

Parameters
Parameter ENO IN OUT

The following table shows the parameters of the instruction:

Declaration Output
Input Output

Data type BOOL
INT, DINT INT, DINT

Description (S7-1200, S7-1500) Enable output Input value Absolute value of the input value

You select the data type of the instruction in the "<???>" drop-down list in the instruction box.

570

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.7 Math functions
The following example shows how the instruction works:

The instruction "Form absolute value"is always executed regardless of the signal state at enable input "EN".
The absolute amount of the value at the "TagIn_Value" operand is calculated and the result is stored in the ""F_DB_1".TagOut_Value" operand.
When no overflow occurs during execution of the "Form absolute value" instruction, the enable output ENO has the signal state "1" and the "#TagOut" operand is set.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

571

STEP 7 Safety V16 instructions 13.8 Move operations

13.8

Move operations

13.8.1

MOVE: Move value (STEP 7 Safety V16)

Description

You can use the "Move value" instruction to transfer the content of the operand at input IN to the operand at output OUT1.
Only operands with identical operand width and identical data structure can be specified for input IN and output OUT1.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
(S7-1200, S7-1500) In the basic state, the instruction box contains an output (OUT1). The number of outputs can be expanded. The inserted outputs are numbered in ascending order on the box. During execution, the content of the operand at the IN input is transferred to all available outputs. The instruction box cannot be expanded if operands with F-compliant PLC data types (UDT) are transferred.

Parameters
Parameter IN OUT1

The following table shows the parameters of the instruction:

Declaration Input
Output

Data type
INT, DINT, WORD, (S7-300/400) DWORD, TIME, F-compliant PLC data type (UDT)
INT, DINT, WORD, (S7-300/400) DWORD, TIME, F-compliant PLC data type (UDT)

Description Source value
Destination address

572

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.8 Move operations
The following example shows how the instruction works:

The instruction is always executed regardless of the signal state at enable input "EN". The instruction copies the content of operand "TagIn_Value" to operand ""F_DB_1".TagOut_Value".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

573

STEP 7 Safety V16 instructions 13.8 Move operations

13.8.2

RD_ARRAY_I: Read value from INT F-array (STEP 7 Safety V16) (S7-1500)

Description

You use the "Read value from INT F-array" instruction to read an element from the array at the ARRAY input, which refers to the index at the INDEX input, and write its value at the OUT output. If an error occurs while accessing the array during runtime, this is displayed at the output ERROR.
The array must be created in an F-global DB and can contain only one dimension. The elements of the ARRAY must be data type INT. The following applies for the array limits in contrast:
 The low limit must be 0.
 The high limit can be 10000 maximum.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at the "EN" enable input).

Parameters
Parameter ARRAY INDEX
OUT ERROR

The following table shows the parameters of the instruction:

Declaration Input Input
Output Output

Data type VARIANT DINT
INT BOOL

Description
Array from which is read
Element in the array which is read. The specification may be a constant or a tag.
Value which is read and output.
Error information
The parameter ERROR is set if an error occurs during the processing of the instruction.

ARRAY parameter
In addition to the direct connection with an array within a fail-safe global DB, this input can also be interconnected with an INOUT of data type ARRAY[*] of INT. This enables the decoupling of data and program logic in order, for example, to create a library function without any connection existing to a dedicated data block.

ERROR parameter
The table below shows the meaning of the value of the ERROR parameter:

Value FALSE TRUE

Description No error Value at the INDEX parameter is outside the limit value of the ARRAY.

574

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.8 Move operations

Instruction versions
One version is available for this instruction:

Ver- S7sion 300/400
1.0 --

S7-1200 S7-1500 Function

--

x1

1 supported as of firmware version V2.0

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Reaction to errors
If the value at the INDEX input is outside the array limits, the output ERROR = 1 is set, and the array value of the element with index = 0 is output at OUT output, regardless of the value passed at the INDEX input.
Therefore, set the value of the element with index = 0 as a fail-safe substitute value.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

575

STEP 7 Safety V16 instructions 13.8 Move operations

Example

The following example shows how the instruction works:

Parameter ARRAY
INDEX OUT ERROR

The following table shows how the instruction works using specific operand values:

Operand "Global_DB".Array
#Tag_Index #TagOut_Value #TagError_Value

Value The "Global_DB".Array operand is an ARRAY of data type Array[0..10] of INT 2 Value of the element at the location array[2] False

The instruction "Read value from INT F-array" is always executed regardless of the signal state at enable input "EN".

The content of the 2nd element of the operand "Global_DB.Array" is output at the "#TagOut_Value" output.

576

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.8 Move operations

13.8.3

RD_ARRAY_DI: Read value from DINT F-array (STEP 7 Safety V16) (S7-1500)

Description

You use the "Read value from DINT F-array" instruction to read an element from the array at the ARRAY input, which refers to the index at the INDEX input, and write its value at the OUT output. If an error occurs while accessing the array during runtime, this is displayed at the output ERROR.
The array must be created in an F-global DB and can contain only one dimension. The elements of the array must be of the DINT data type. The following applies for the array limits in contrast:
 The low limit must be 0.
 The high limit can be 10000 maximum.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at the "EN" enable input).

Parameters
Parameter ARRAY INDEX
OUT ERROR

The following table shows the parameters of the instruction:

Declaration Input Input
Output Output

Data type VARIANT DINT
DINT BOOL

Description
Array from which is read
Element in the array which is read. The specification may be a constant or a tag.
Value which is read and output.
Error information
The parameter ERROR is set if an error occurs during the processing of the instruction.

ARRAY parameter
In addition to the direct connection with an array within a fail-safe global DB, this input can also be interconnected with an INOUT of data type ARRAY[*] of DINT. This enables the decoupling of data and program logic in order, for example, to create a library function without any connection existing to a dedicated data block.

ERROR parameter
The table below shows the meaning of the value of the ERROR parameter:

Value FALSE TRUE

Description No error Value at the INDEX parameter is outside the limit value of the ARRAY.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

577

STEP 7 Safety V16 instructions 13.8 Move operations

Instruction versions
One version is available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 --

--

S7-1500 x1

Function

1 supported as of firmware version V2.0

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Reaction to errors
If the value at the INDEX input is outside the array limits, the output ERROR = 1 is set, and the array value of the element with index = 0 is output at OUT output, regardless of the value passed at the INDEX input.
Therefore, set the value of the element with index = 0 as a fail-safe substitute value.

Example

The following example shows how the instruction works:

Parameter ARRAY
INDEX OUT ERROR

The following table shows how the instruction works using specific operand values:

Operand "Global_DB".Array
#Tag_Index #TagOut_Value #TagError_Value

Value The operand "Global_DB".Array is an ARRAY of data type Array[0..10] of DINT 2 Value of the element at the location array[2] False

578

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.8 Move operations
The instruction "Read value from DINT F-array" is always executed regardless of the signal state at enable input "EN". The content of the 2nd element of the operand "Global_DB.Array" is output at the "#TagOut_Value" output.

13.8.4

WR_FDB: Write value indirectly to an F-DB (STEP 7 Safety V16) (S7-300, S7400)

Description

This instruction writes the value specified in input IN to the tag addressed by INI_ADDR and OFFSET in an F-DB.
The address of the tags addressed using INI_ADDR and OFFSET must be within the address range defined by addresses INI_ADDR and END_ADDR.
If the F-CPU has gone to STOP mode with diagnostics event ID 75E2, check to determine if this condition is satisfied.
The start address of the area in an F-DB to which the value at input IN is to be written is transferred using input INI_ADDR. The associated offset in this area is transferred using input OFFSET.
The addresses transferred in input INI_ADDR or END_ADDR must point to a tag of the selected data type in an F-DB. Only tags of the selected data type are permitted between the INI_ADDR and END_ADDR addresses. The INI_ADDR address must be smaller than the END_ADDR address.
As shown in the following example, the INI_ADDR and END_ADDR addresses must be transferred fully-qualified as "DBx".DBWy or in the corresponding symbolic representation. Transfers in other forms are not permitted.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN INI_ADDR END_ADDR OFFSET

The following table shows the parameters of the instruction:

Declaration Input Input Input Input

Data type INT, DINT POINTER POINTER INT

Description Value to be written to the F-DB Start address of the area in an F-DB End address of the area in an F-DB Offset

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

579

STEP 7 Safety V16 instructions 13.8 Move operations

Examples of parameter assignment of INI_ADDR, END_ADDR, and OFFS

Name Static VAR_BOOL10
VAR_BOOL11
VAR_BOOL12
VAR_BOOL13
VAR_TIME10
VAR_TIME11
VAR INT10 VAR_INT11
VAR_INT12
VAR INT13 VAR_INT14
VAR INT15 VAR_BOOL20
VAR_BOOL21
VAR_BOOL22
VAR_BOOL23
VAR INT20 VAR_INT21
VAR_INT22
VAR INT23 VAR INT30 VAR INT31 VAR_INT32
VAR_INT33
VAR INT34 VAR_TIME20
VAR DINT10 VAR_DINT11
VAR DINT12 VAR DINT13

Data type Initial value

BOOL
BOOL BOOL
BOOL
TIME TIME
INT INT
INT INT INT
INT BOOL BOOL
BOOL
BOOL INT INT
INT
INT INT INT INT INT
INT TIME
DINT DINT DINT DINT

false
false false
false
T#0MS T#0MS
0 0
0 0 0
0 false false
false
false 0 0
0
0 0 0 0 0
0 T#0MS
0 0 0 0

Comment
<- INI ADDR = "F-DB 1".VAR INT10 <- OFFSET = 3 <- END ADDR = "F-DB 1".VAR INT15
<- INI ADDR = "F-DB 1".VAR INT20 <- END ADDR = "F-DB 1".VAR INT23 <- INI ADDR = "F-DB 1".VAR INT30 <- OFFSET = 1 <- END ADDR = "F-DB".VAR INT34 <- INI ADDR = "F-DB 1".VAR DINT10 <- OFFSET = 2 <- END ADDR = "F-DB 1".VAR DINT13

Example 1
Example 2 Example 3 Example 4

580

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.8 Move operations
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

581

STEP 7 Safety V16 instructions 13.8 Move operations

13.8.5

RD_FDB: Read value indirectly from an F-DB (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

This instruction reads the tag addressed via INI_ADDR and OFFSET in an F-DB and provides it at output OUT.
The address of the tags addressed using INI_ADDR and OFFSET must be within the address range defined by addresses INI_ADDR and END_ADDR.
If the F-CPU has gone to STOP mode with diagnostics event ID 75E2, check to determine if this condition is satisfied.
The start address of the area in an F-DB from which the tag is to be read is transferred using input INI_ADDR. The associated offset in this area is transferred using input OFFSET.
The addresses transferred in input INI_ADDR or END_ADDR must point to a tag of the selected data type in an F-DB. Only tags of the selected data type are permitted between the INI_ADDR and END_ADDR addresses. The INI_ADDR address must be smaller than the END_ADDR address.
The INI_ADDR and END_ADDR addresses must be transferred fully-qualified as "DBx".DBWy or in the corresponding symbolic representation. Transfers in other forms are not permitted. Examples of parameter assignment of INI_ADDR, END_ADDR, and OFFSET are contained in WR_FDB: Write value indirectly to an F-DB (STEP 7 Safety V16) (S7-300, S7-400) (Page 579).
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter INI_ADDR END_ADDR OFFSET OUT

The following table shows the parameters of the instruction:

Declaration Input Input Input Output

Data type POINTER POINTER INT INT, DINT

Description Start address of the area in an F-DB End address of the area in an F-DB Offset Value to be read from the F-DB

You can select the data type of the instruction in the "<???>" drop-down list in the instruction box.

582

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.8 Move operations
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

583

STEP 7 Safety V16 instructions 13.9 Conversion operations

13.9

Conversion operations

13.9.1

CONVERT: Convert value (STEP 7 Safety V16)

Description

The "Convert value" instruction reads the content of parameter IN and converts it according to the data types selected in the instruction box. The converted value is output at the OUT output .
Enable input "EN" cannot be connected. The instruction is therefore always executed (regardless of the signal state at the "EN" enable input). The connection of the "ENO" enable output is only possible and required when converting from the "DINT" to the "INT" data type.
Note
When converting from "DINT" to the "INT" data type, you need to connect the ENO enable output and thereby programming overflow detection.
Note the following: · If the value at the input is outside the INT range, ENO returns 0. · The result of the instruction reacts like the analogous instruction in a standard block.

Parameters
Parameter ENO IN OUT

The following table shows the parameters of the instruction:

Declaration Output Input Output

Data type BOOL INT, DINT INT, DINT

Description Enable output Value to be converted. Result of the conversion

You can select the data types of the instruction in the "<???>" drop-down lists of the instruction box. The supported conversions are from "INT to DINT" and "DINT to INT".

584

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.9 Conversion operations
The following example shows how the "Convert value "DINT to INT"" instruction for S71200/1500 F-CPUs works:

See also

The instruction is always executed regardless of the signal state at enable input EN. The value of the "TagIn_Value" operand is converted to an integer (16-bit) and the result is stored in the ""F_DB_1".TagOut_Value" operand. When no overflow occurs during execution of the "Convert value "DINT to INT"" instruction, the ENO enable output has the signal state "1" and the "TagOut" operand is set. You can also store the signal status of the ENO enable output in an (F-)DB, and centrally evaluate whether overflows have occurred for all or one group of instructions with overflow detection.
s7cotia.xls (http://support.automation.siemens.com/WW/view/en/49368678/133100)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

585

STEP 7 Safety V16 instructions 13.9 Conversion operations

13.9.2

BO_W: Convert 16 data elements of data type BOOL to a data element of data type WORD (STEP 7 Safety V16)

Description

This instruction converts the 16 values of data type BOOL at inputs IN0 to IN15 to a value of data type WORD, which is made available at output OUT. The conversion takes place as follows: The i-th bit of the WORD value is set to 0 (or 1), if the value at input INi = 0 (or 1).
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN0 IN1 ... IN15 OUT

The following table shows the parameters of the instruction:

Declaration Input Input
Input Output

Data type BOOL BOOL
BOOL WORD

Description Bit 0 of WORD value Bit 1 of WORD value ... Bit 15 of WORD value WORD value consisting of IN0 to IN15

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 o

--

1.2 x

--

1.3 x

o

1.4 x

x

2.0 x

x1

S7-1500 --
o o o x x2

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported. 1 supported for Firmware version V4.2 or higher 2 supported for Firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

586

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.9 Conversion operations
The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

587

STEP 7 Safety V16 instructions 13.9 Conversion operations

The following table shows how the instruction works using specific operand values:

Parameter IN0 IN1 ... IN13 IN14 IN15 OUT

Operand TagValue_0 TagValue_1
TagValue_13 TagValue_14 TagValue_15 "F_DB_1".Result

Value FALSE FALSE ... FALSE TRUE TRUE W#16#C000

The values of operands "TagValue_0" to "TagValue_15" are combined into a value of the data type WORD and assigned to operand ""F_DB_1".TagResult".

588

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.9 Conversion operations

13.9.3

W_BO: Convert a data element of data type WORD to 16 data elements of data type BOOL (STEP 7 Safety V16)

Description

This instruction converts the value of data type WORD at input IN to 16 values of data type BOOL, which are provided at outputs OUT0 to OUT15. The conversion takes place as follows: Output OUTi is set to 0 (or 1), if the i-th bit of the WORD value is 0 (or 1).
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN OUT0 OUT1 ... OUT15

The following table shows the parameters of the instruction:

Declaration Input Output Output
Output

Data type WORD BOOL BOOL
BOOL

Description WORD value Bit 0 of WORD value Bit 1 of WORD value ... Bit 15 of WORD value

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 o

--

1.2 x

--

1.3 x

o

1.4 x

x

2.0 x

x1

S7-1500 --
o o o x x2

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported. 1 supported for Firmware version V4.2 or higher 2 supported for Firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

589

STEP 7 Safety V16 instructions 13.9 Conversion operations

Example

The following example shows how the instruction works:

590

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.9 Conversion operations

The following table shows how the instruction works using specific operand values:

Parameter IN OUT0 OUT1 ... OUT13 OUT14 OUT15

Operand "F_DB_1".TagValue TagOUT_0 TagOUT_1
TagOUT_13 TagOUT_14 TagOUT_15

Value W#16#C000 FALSE FALSE ... FALSE TRUE TRUE

The value of operand ""F_DB_1".TagValue" of data type WORD is converted to the 16 values "TagOUT_0" to "TagOUT_15" of data type BOOL.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

591

STEP 7 Safety V16 instructions 13.9 Conversion operations

13.9.4

SCALE: Scale value (STEP 7 Safety V16)

Description

This instruction scales the value at input IN in physical units between the low limit value at input LO_LIM and the high limit value at input HI_LIM. It is assumed that the value at input IN is between 0 and 27648. The scaling result is provided at output OUT.
The instruction uses the following equation:
OUT = [ IN × (HI_LIM ­ LO_LIM) ] / 27648 + LO_LIM
As long as the value at input IN is greater than 27648, output OUT is linked to HI_LIM and OUT_HI is set to 1.
As long as the value at input IN is less than 0, output OUT is linked to LO_LIM and OUT_LO is set to 1.
For inverse scaling, you must assign LO_LIM > HI_LIM. With inverse scaling, the output value at output OUT decreases while the input value at input IN increases.
Every call of the "Scale value" instruction must be assigned a data area in which the instruction data is stored. In addition, when the instruction is inserted in the program, the "Call options" dialog is automatically opened, where you can create a data block (single instance) (e.g., SCALE_DB_1) or a multi-instance (e.g., SCALE_Instance_1) for the "Scale value" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameter
Parameter IN HI_LIM LO_LIM OUT OUT_HI OUT_LO

The following table shows the parameters of the instruction:

Declaration Input Input Input Output Output Output

Data type INT INT INT INT BOOL BOOL

Description Input value to be scaled in physical units High limit value of value range of OUT Low limit value of value range of OUT Result of scaling 1 = Input value > 27648: OUT = HI_LIM 1 = Input value < 0: OUT = LO_LIM

592

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.9 Conversion operations

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

x

S7-1500 --
o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Behavior in the event of overflow or underflow of analog values and fail-safe value output
Note
If inputs from the PII of an SM 336; AI 6 x 13Bit or SM 336; F-AI 6 x 0/4 ... 20 mA HART are used as input values, note that the F-system detects an overflow or underflow of a channel of this F-SM as an F-I/O fault or channel fault. The fail-safe value 0 is provided in place of 7FFFH (for overflow) or 8000H (for underflow) in the PII for the safety program.
If other fail-safe values should be output in this case, you need to evaluate the QBAD signal of the associated F-I/O or QBAD_I_xx signal / value status of the corresponding channel.
If the value in the PII of the F-SM is within the overrange or underrange, but is > 27648 or < 0, you can likewise branch to the output of an individual fail-safe value by evaluating outputs OUT_HI and OUT_LO, respectively.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

593

STEP 7 Safety V16 instructions 13.9 Conversion operations

Example

The following example shows how the instruction works:

When operand "TagIn_Value" = 20000, the result for ""F_DB_1".TagOut_Value" is 361.

594

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.9 Conversion operations

13.9.5

SCALE_D: Scale value to data type DINT (STEP 7 Safety V16) (S7-1200, S71500)

Description

This instruction scales the value at input IN in physical units between the low limit value at input LO_LIM and the high limit value at input HI_LIM. It is assumed that the value at input IN is between 0 and 27648. The scaling result is provided at output OUT.
The instruction uses the following equation:
OUT = [ IN × (HI_LIM ­ LO_LIM) ] / 27648 + LO_LIM
As long as the value at input IN is greater than 27648, output OUT is linked to HI_LIM and OUT_HI is set to 1.
As long as the value at input IN is less than 0, output OUT is linked to LO_LIM and OUT_LO is set to 1.
For inverse scaling, you must assign LO_LIM > HI_LIM. With inverse scaling, the output value at output OUT decreases while the input value at input IN increases.
Every call of the "Scale value to data type DINT" instruction must be assigned a data area in which the instruction data is stored. In addition, when the instruction is inserted in the program, the "Call options" dialog is automatically opened, where you can create a data block (single instance) (e.g., SCALE_D_DB_1) or a multi-instance (e.g., SCALE_D_Instance_1) for the "Scale value to data type DINT" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameter
Parameter IN HI_LIM LO_LIM OUT OUT_HI OUT_LO

The following table shows the parameters of the instruction:

Declaration Input Input Input Output Output Output

Data type INT DINT DINT DINT BOOL BOOL

Description Input value to be scaled in physical units High limit value of value range of OUT Low limit value of value range of OUT Result of scaling 1 = Input value > 27648: OUT = HI_LIM 1 = Input value < 0: OUT = LO_LIM

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

595

STEP 7 Safety V16 instructions 13.9 Conversion operations

Instruction versions
A version is available for this instruction:

Ver- S7-300/400 S7-1200 sion

2.0 --

x1

S7-1500 x2

Function

1 supported for firmware version V4.2 or higher 2 supported for firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Behavior in the event of overflow or underflow of analog values and fail-safe value output
Note
If inputs from the PII of an SM 336; AI 6 x 13Bit or SM 336; F-AI 6 x 0/4 ... 20 mA HART are used as input values, note that the F-system detects an overflow or underflow of a channel of this F-SM as an F-I/O fault or channel fault. The fail-safe value 0 is provided in place of 7FFFH (for overflow) or 8000H (for underflow) in the PII for the safety program.
If other fail-safe values should be output in this case, you need to evaluate the QBAD signal of the associated F-I/O or QBAD_I_xx signal / value status of the corresponding channel.
If the value in the PII of the F-SM is within the overrange or underrange, but is > 27648 or < 0, you can likewise branch to the output of an individual fail-safe value by evaluating outputs OUT_HI and OUT_LO, respectively.

596

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.9 Conversion operations
The following example shows how the instruction works:

When the operand "TagIn_Value" = 20000, the result for ""F_DB_1".TagOut_Value" is 72337.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

597

STEP 7 Safety V16 instructions 13.10 Program control operations

13.10

Program control operations

13.10.1

JMP: Jump if RLO = 1 (STEP 7 Safety V16)

Description

You can use the "Jump if RLO = 1" instruction to interrupt the linear execution of the program and resume it in another network. The destination network must be identified by a jump label (Page 602) (LABEL). The description of the jump label is specified in the placeholder above the instruction.
The specified jump label must be in the same block in which the instruction is executed. The name you specify can only occur once in the block.
If the result of logic operation (RLO) at the input of the instruction is "1" or the input is not connected, the jump to the network identified by the jump label is executed. The jump direction can be towards higher or lower network numbers.
If the result of logic operation (RLO) at the input of the instruction is "0", the program continues executing in the next network.
Note
(S7-1200, S7-1500) If the jump destination (jump label) for an instruction "JMP" or "JMPN" is above the associated instruction "JMP" or "JMPN" (backwards jump), you cannot insert any other instructions for program control (JMP, JMPN, RET, jump label) between them. Exception: You can insert an instruction "JMP" or "JMPN" between them if you also insert the associated jump destination in between as well as below the associated instruction "JMP" or "JMPN" (forward jump). Non-compliance can lead to compilation errors or to the F-CPU going to STOP.
Note
You are not permitted to insert any SENDDP or SENDS7 instructions between an instruction JMP or JMPN and the associated jump destination (jump label).

598

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.10 Program control operations
The following example shows how the instruction works:

When operand "TagIn_1" has signal state "1", the "Jump if RLO = 1" instruction is executed. The linear execution of the program is interrupted and continues in Network 3, which is identified by the jump label CAS1. When input "TagIn_3" has signal state "1", output "TagOut_3" is reset.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

599

STEP 7 Safety V16 instructions 13.10 Program control operations

13.10.2

JMPN: Jump if RLO = 0 (STEP 7 Safety V16)

Description

You can use the "Jump if RLO = 0" instruction to interrupt the linear execution of the program and resume it in another network, when the result of logic operation at the input of the instruction is "0". The destination network must be identified by a jump label (Page 602) (LABEL). The description of the jump label is specified in the placeholder above the instruction.
The specified jump label must be in the same block in which the instruction is executed. The name you specify can only occur once in the block.
If the result of logic operation (RLO) at the input of the instruction is "0", the jump to the network identified by the jump label is executed. The jump direction can be towards higher or lower network numbers.
If the result of logic operation (RLO) at the input of the instruction is "1", the program continues executing in the next network.
Note
(S7-1200, S7-1500) If the jump destination (jump label) for an instruction "JMP" or "JMPN" is above the associated instruction "JMP" or "JMPN" (backwards jump), you cannot insert any other instructions for program control (JMP, JMPN, RET, jump label) between them. Exception: You can insert an instruction "JMP" or "JMPN" between them if you also insert the associated jump destination in between as well as below the associated instruction "JMP" or "JMPN" (forward jump). Non-compliance can lead to compilation errors or to the F-CPU going to STOP.
Note
You are not permitted to insert any SENDDP or SENDS7 instructions between an instruction JMP or JMPN and the associated jump destination (jump label).

600

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.10 Program control operations
The following example shows how the instruction works:

When operand "TagIn_1" has signal state "0", the "Jump if RLO = 0" instruction is executed. The linear execution of the program is interrupted and continues in Network 3, which is identified by the jump label CAS1. When input "TagIn_3" has signal state "1", output "TagOut_3" is reset.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

601

STEP 7 Safety V16 instructions 13.10 Program control operations

13.10.3

LABEL: Jump label (STEP 7 Safety V16)

Description

You can use a jump label to specify a destination network, in which the program execution should resume after a jump.
The jump label and the instruction in which the jump label is specified must be located in the same block. The name of a jump label can only be assigned once in a block.
Only one jump label can be placed in a network. To each jump label can be jumped from several locations.

Example

The following example shows how the instruction works:

602

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.10 Program control operations

See also

When operand "TagIn_1" has signal state "1", the "Jump if RLO = 1" instruction is executed. The linear execution of the program is interrupted and continues in Network 3, which is identified by the jump label CAS1. When input "TagIn_3" has signal state "1", output "TagOut_3" is reset.
JMP: Jump if RLO = 1 (STEP 7 Safety V16) (Page 598) JMPN: Jump if RLO = 0 (STEP 7 Safety V16) (Page 600) RET: Return (STEP 7 Safety V16) (Page 604)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

603

STEP 7 Safety V16 instructions 13.10 Program control operations

13.10.4

RET: Return (STEP 7 Safety V16)

Description

You can use the "Return" instruction to stop the processing of a block.
If the result of logic operation (RLO) at the input of the "Return" instruction is "1" or the box input of the S7-1200/1500 F-CPUs is not connected in FBD, program execution is terminated in the currently called block and continued in the calling block (for example, in the main safety block) after the call function. If the RLO at the input of the "Return" instruction is "0", the instruction is not executed. Program execution continues in the next network of the called block.
Influencing the status of the call function (ENO) is irrelevant, because the enable output "ENO" cannot be connected.
Note
(S7-300, S7-400) You may not program a RET instruction in the main safety block.

Example

The following example shows how the instruction works:

See also

When the "TagIn" operand delivers signal state "1", the "Return" instruction is executed. Program execution is terminated in the called block and continues in the calling block.
JMP: Jump if RLO = 1 (STEP 7 Safety V16) (Page 598) JMPN: Jump if RLO = 0 (STEP 7 Safety V16) (Page 600) LABEL: Jump label (STEP 7 Safety V16) (Page 602)

604

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.10 Program control operations

13.10.5

OPN: Open global data block (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

You can use the "Open global data block" instruction to open a data block. The number of the data block is transferred to the DB register. Subsequent DB commands access the relevant blocks depending on the register contents.
Note
Note when using the "Open global data block" instruction that the content of the DB register can be changed after calls of F-FB/F-FC and "fully qualified DB accesses", such that there is no guarantee that the last data block you opened with "Open global data block" is still open.
You should therefore use the following method for addressing data to avoid errors when accessing data of the DB register: · Use symbolic addressing. · Use only fully qualified DB accesses.
If you still want to use the "Open global data block" operation, you must ensure that the DB register is restored by repeating the "Open global data block" instruction following calls of FFB/F-FC and "fully qualified DB accesses." Otherwise, a malfunction could result.

Parameters
Parameter <Data block>

The following table shows the parameters of the instruction:

Declaration Input

Data type BLOCK_DB

Description Data block that is opened

"Fully qualified DB access"
The initial access to data of a data block in an F-FB/F-FC must always be a "fully qualified DB access," or it must be preceded by the "Open global data block" instruction. This also applies to the initial access to data of a data block after a jump label.
An example of "fully qualified DB access" and "non-fully qualified DB access" is provided in Restrictions in the programming languages FBD/LAD (Page 121).

Access to instance DBs
You can also access instance DBs of F-FBs with fully qualified access, e.g., for transfer of block parameters. It is not possible to access static local data in single/multi-instances of other F-FBs.
Note that accessing instance DBs of F-FBs that are not called in the safety program can cause the F-CPU to go to STOP mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

605

STEP 7 Safety V16 instructions 13.10 Program control operations

Example

The following example shows how the instruction works:

The "Motor_DB" data block is called in network 1. The number of the data block is transferred to the DB register. The "DBX0.0" operand is queried in network 2. The signal state of the "DBX0.0" operand is assigned to the "Tag_Output" operand.

606

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.11

Word logic operations

STEP 7 Safety V16 instructions 13.11 Word logic operations

13.11.1

AND: AND logic operation (STEP 7 Safety V16)

Description

You can use the "AND logic operation" instruction to combine the value at input IN1 to the value at input IN2 bit-by-bit by AND logic and query the result at output OUT.
When the instruction is executed, bit 0 of the value at input IN1 and bit 0 of the value at input IN2 are ANDed. The result is stored in bit 0 of output OUT. The same logic operation is executed for all other bits of the specified values.
The result bit has signal state "1" only when both of the bits in the logic operation also have signal state "1". If one of the two bits of the logic operation has signal state "0", the corresponding result bit is reset.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Input Input Output

Data type WORD WORD WORD

Description First value of logic operation Second value of logic operation Result of the instruction

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

607

STEP 7 Safety V16 instructions 13.11 Word logic operations

Example

The following example shows how the instruction works:

IN1 IN2 OUT

"Tag_Value1" = 01010101 01010101 "Tag_Value2" = 00000000 00001111 "F_DB_1"."Tag_Result" = 00000000 00000101

The instruction is always executed regardless of the signal state at enable input "EN". The value of the "Tag_Value1" operand and the value of the "Tag_Value2" operand are ANDed. The result is mapped bit-by-bit and output in the ""F_DB_1".Tag_Result" operand.

608

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.11 Word logic operations

13.11.2

OR: OR logic operation (STEP 7 Safety V16)

Description

You can use the "OR logic operation" instruction to connect the value at input IN1 input to the value at input IN2 bit-by-bit by OR logic and query the result at output OR.
When the instruction is executed, bit 0 of the value at input IN1 and bit 0 of the value at input IN2 are ORed. The result is stored in bit 0 of output OUT. The same logic operation is executed for all bits of the specified tags.
The result bit has signal state "1" when at least one of the two bits in the logic operation has signal state "1". If both of the bits of the logic operation have signal state "0", the corresponding result bit is reset.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Input Input Output

Data type WORD WORD WORD

Description First value of logic operation Second value of logic operation Result of the instruction

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

609

STEP 7 Safety V16 instructions 13.11 Word logic operations

Example

The following example shows how the instruction works:

IN1 IN2 OUT

"Tag_Value1" = 01010101 01010101 "Tag_Value2" = 00000000 00001111 "F_DB_1"."Tag_Result" = 01010101 01011111

The instruction is always executed regardless of the signal state at enable input "EN". The value of the "Tag_Value1" operand and the value of the "Tag_Value2" operand are ORed. The result is mapped bit-by-bit and output in the ""F_DB_1".Tag_Result" operand.

610

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.11 Word logic operations

13.11.3

XOR: EXCLUSIVE OR logic operation (STEP 7 Safety V16)

Description

You can use the "EXCLUSIVE OR logic operation" instruction to combine the value at input IN1 and the value at input IN2 bit-by-bit by EXCLUSIVE OR logic and query the result at output OUT.
When the instruction is executed, bit 0 of the value at input IN1 input and bit 0 of the value at input IN2 are logically combined by EXCLUSIVE OR. The result is stored in bit 0 of output OUT. The same logic operation is executed for all other bits of the specified value.
The result bit has signal state "1" when one of the two bits in the logic operation has signal state "1". If both of the bits of the logic operation have signal state "1" or "0", the corresponding result bit is reset.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").

Parameters
Parameter IN1 IN2 OUT

The following table shows the parameters of the instruction:

Declaration Input Input Output

Data type WORD WORD WORD

Description First value of logic operation Second value of logic operation Result of the instruction

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

611

STEP 7 Safety V16 instructions 13.11 Word logic operations

Example

The following example shows how the instruction works:

IN1 IN2 OUT

"Tag_Value1" = 01010101 01010101 "Tag_Value2" = 00000000 00001111 "F_DB_1"."Tag_Result" = 01010101 01011010

The instruction is always executed regardless of the signal state at enable input "EN". The value of the "Tag_Value1" operand and the value of the "Tag_Value2" operand are logically combined by EXCLUSIVE OR. The result is mapped bit-by-bit and output in the ""F_DB_1".Tag_Result" operand.

612

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.12

Shift and rotate

STEP 7 Safety V16 instructions 13.12 Shift and rotate

13.12.1

SHR: Shift right (STEP 7 Safety V16)

Description

Use the "Shift right" instruction to shift the content of the operand at input IN bit-by-bit to the right and query the result at output OUT. Use input N to specify the number of bit positions by which the specified value is to be moved.
If the value at input N is "0", the value at input IN is copied to the operand at output OUT.
If the value at input N is greater than the number of available bit positions, the operand value at input IN is shifted to the right by the available number of bit positions.
The bit locations that are freed up in the left area of the operand during the shift operation are filled with zeros.
The following figure shows how the content of an operand of data type WORD is moved by 6 bit positions to the right:

Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
Note S7-300/400: Only the low-byte is evaluated from input N. S7-1200/1500: If the value at input N < 0, the output OUT is set to 0.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

613

STEP 7 Safety V16 instructions 13.12 Shift and rotate

Parameters
Parameter IN N OUT

The following table shows the parameters of the instruction:

Declaration Input Input Output

Data type WORD INT WORD

Description Value that is shifted Number of bit positions by which the value is shifted Result of the instruction

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 o

--

1.2 x

--

1.3 x

o

1.4 x

x

2.0 x

x1

S7-1500 --
o o o x x2

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported. 1 supported for Firmware version V4.2 or higher 2 supported for Firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

614

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Example

STEP 7 Safety V16 instructions 13.12 Shift and rotate
The following example shows how the instruction works:

The following table shows how the instruction works using specific operand values:

Parameter IN N OUT

Operand "F_DB_1".TagIn_Value Tag_Number "F_DB_1".TagOut_Value

Value 0011 1111 1010 1111
3 0000 0111 1111 0101

The instruction is always executed regardless of the signal state at enable input "EN". The content of the operand ""F_DB_1".TagIn_Value" is moved three bit positions to the right. The result is output at output ""F_DB_1".TagOut_Value".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

615

STEP 7 Safety V16 instructions 13.12 Shift and rotate

13.12.2

SHL: Shift left (STEP 7 Safety V16)

Description

Use the "Shift left" instruction to shift the content of the operand at input IN bit-by-bit to the left and query the result at output OUT. Use input N to specify the number of bit positions by which the specified value is to be moved.
If the value at input N is "0", the value at input IN is copied to the operand at output OUT.
If the value at input N is greater than the number of available bit positions, the operand value at input IN is shifted to the left by the available number of bit positions.
The bit positions that are freed up in the right area of the operand during the shift operation are filled with zeros.
The following figure shows how the content of an operand of data type WORD is moved by 6 bit positions to the left:

Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
Note S7-300/400: Only the low-byte is evaluated from input N. S7-1200/1500: If the value at input N < 0, the output OUT is set to 0.

Parameters
Parameter IN N OUT

The following table shows the parameters of the instruction:

Declaration Input Input Output

Data type WORD INT WORD

Description Value that is shifted Number of bit positions by which the value is shifted Result of the instruction

616

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.12 Shift and rotate

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 o

--

1.2 x

--

1.3 x

o

1.4 x

x

2.0 x

x1

S7-1500 --
o o o x x2

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.

o This version is no longer supported. 1 supported for Firmware version V4.2 or higher 2 supported for Firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Example

The following example shows how the instruction works:

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

617

STEP 7 Safety V16 instructions 13.12 Shift and rotate

The following table shows how the instruction works using specific operand values:

Parameter IN N OUT

Operand "F_DB_1".TagIn_Value Tag_Number "F_DB_1".TagOut_Value

Value 0011 1111 1010 1111
4 1111 1010 1111 0000

The instruction is always executed regardless of the signal state at enable input "EN". The content of the operand ""F_DB_1".TagIn_Value" is moved four bit positions to the left. The result is output at output ""F_DB_1".TagOut_Value".

618

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.13

Operating

STEP 7 Safety V16 instructions 13.13 Operating

13.13.1

ACK_OP: Fail-safe acknowledgment (STEP 7 Safety V16)

Description (S7-300, S7-400)
This instruction enables fail-safe acknowledgment from an HMI system. It allows, for example, reintegration of F-I/O to be controlled from the HMI system. Acknowledgment takes place in two steps:
 Input/output parameter IN changes to a value of 6 for exactly one cycle.
 Input/output parameter IN changes to a value of 9 within a minute for exactly one cycle
Once the in/out parameter IN has changed to a value of 6, the instruction evaluates whether this parameter has changed to a value of 9 after 1 second, at the earliest, or one minute, at the latest. Output OUT (output for acknowledgment) is then set to 1 for one cycle.
If an invalid value is input or if in/out parameter IN has not changed to the value 9 within one minute or the change occurred before one second has elapsed, then in/out parameter IN is reset to 0, and both steps listed above must be repeated.
During the time in which in/out parameter IN must change from 6 to the value 9, output Q is set to 1. Otherwise, Q has a value of 0.
Every call of the "Fail-safe acknowledgment" instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., ACK_OP_DB_1) or a multi-instance (e.g., ACK_OP_Instance_1) for the "Fail-safe acknowledgment" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Note
A separate data area must be used for each call of ACK_OP. Each call can be processed only once in an F-runtime group cycle.
The F-CPU can go to STOP if this is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

619

STEP 7 Safety V16 instructions 13.13 Operating
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
The two acknowledgment steps must not be triggered by one single operation, for example by automatically storing them along with the time conditions in a program and using a single key to trigger them. Having two separate acknowledgment steps also prevents erroneous triggering of an acknowledgment by your non-fail-safe HMI system. (S013)
WARNING
If you have HMI systems and F-CPUs that are interconnected and use the ACK_OP instruction for fail-safe acknowledgment, you need to ensure that the intended F-CPU will be addressed before you perform the two acknowledgment steps. · To do this, store a network-wide* unique name for the F-CPU in a DB of your standard
user program in each F-CPU. · In your HMI system, set up a field from which you can read out the F-CPU name from
the DB online before executing the two acknowledgment steps. · Optional:
in your HMI system, set up a field to permanently store the F-CPU name. Then, you can determine whether the intended F-CPU is being addressed by simply comparing the F-CPU name read out online with the permanently stored name. (S014)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet.
Note You can read out output Q by means of operator control and monitoring systems or, if applicable, evaluate it in your standard user program. You can provide the in/out parameter IN with a separate memory word or DBW of a DB of the standard user program supply for each instance of the ACK_OP instruction.
Note The configuration of your operator control and monitoring system does not have any effect on the collective F-signature.

620

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.13 Operating
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)
Description (S7-1200, S7-1500)
This instruction enables fail-safe acknowledgment from an HMI system. It allows, for example, reintegration of F-I/O to be controlled from the HMI system. Acknowledgment takes place in two steps:
 Input/output parameter IN changes to a value of 6 for exactly one cycle.
 Input/output parameter IN changes to the value at the ACK_ID input within a minute for exactly one cycle
Once the in/out parameter IN has changed to a value of 6, the instruction evaluates whether this parameter has changed to a value at the ACK_ID input after 1 second, at the earliest, or one minute, at the latest. Output OUT (output for acknowledgment) is then set to 1 for one cycle.
If an invalid value is input or if in/out parameter IN has not changed to the value at the ACK_ID input within one minute or the change occurred before one second has elapsed, then in/out parameter IN is reset to 0, and both steps listed above must be repeated.
During the time in which in/out parameter IN must change from 6 to the value at the ACK_ID input, output Q is set to 1. Otherwise, Q has a value of 0.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

621

STEP 7 Safety V16 instructions 13.13 Operating
Every call of the "Fail-safe acknowledgment" instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., ACK_OP_DB_1) or a multi-instance (e.g., ACK_OP_Instance_1) for the "Fail-safe acknowledgment" instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Note A separate data area must be used for each call of ACK_OP. Each call can be processed only once in an F-runtime group cycle. The F-CPU can go to STOP if this is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
WARNING
The two acknowledgment steps must not be triggered by one single operation, for example by automatically storing them along with the time conditions in a program and using a single key to trigger them. Having two separate acknowledgment steps also prevents erroneous triggering of an acknowledgment by your non-fail-safe HMI system. (S013)

622

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.13 Operating
WARNING
If you have HMI systems and F-CPUs that are interconnected and use the ACK_OP instruction for fail-safe acknowledgment, you need to ensure that the intended F-CPU will be addressed before you perform the two acknowledgment steps.
Alternative 1: · The value for each identifier of the acknowledgment (ACK_ID input; data type: INT) can
be freely selected in the range from 9 to 30000, but must be unique network-wide* for all instances of the ACK_OP instruction. You must supply the ACK_ID input with constant values when calling the instruction. Direct read or write access in the associated instance DB is not permitted in the safety program!
Alternative 2: · Store a network-wide* unique name for the F-CPU in a DB of your standard user
program in each F-CPU. · In your HMI system, set up a field from which you can read out the F-CPU name from
the DB online before executing the two acknowledgment steps. · Optional:
in your HMI system, set up a field to permanently store the F-CPU name. Then, you can determine whether the intended F-CPU is being addressed by simply comparing the F-CPU name read out online with the permanently stored designation. (S047)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet.
Note
You can read out output Q by means of operator control and monitoring systems or, if applicable, evaluate it in your standard user program.
You need to provide the in/out parameter IN with a separate memory word or DBW of a DB of the standard user program for each instance of the ACK_OP instruction.
Note
The supply of the IN input/output of the ACK_OP instruction as well as the configuration of your operator control and monitoring system do not have any effect on the F-collective signature, the F-SW collective signature or the signature of the block that calls the ACK_OP instruction.
Changes to the supply of the IN input/output or to the configuration of your operator control and monitoring system therefore do not result in a changed F-collective signature/F-SW collective signature/signature of the calling block.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

623

STEP 7 Safety V16 instructions 13.13 Operating
WARNING
When using an instruction with time processing, take the following timing imprecision sources into account when determining your response times: · Known timing imprecision (based on standard systems) resulting from cyclic processing · Timing imprecision resulting from the update time of the time base used in the
instruction (see figure in section "Timing imprecision resulting from the update time of the time base used in the instruction") · Tolerance of internal time monitoring in the F-CPU ­ For time values up to 200 ms, a maximum of 4 ms ­ For time values greater than or equal to 200 ms, a maximum of 2% of the (assigned)
time value
You must choose the interval between two call times of an instruction with time processing in such a way that the required response times are achieved, taking into account the possible timing imprecision. (S034)

Parameters (S7-300, S7-400)
The following table shows the parameters of the instruction:

Parameter IN OUT Q

Declaration InOut Output Output

Data type INT BOOL BOOL

Description Input variable from HMI system Output for acknowledgment Time status

Parameters (S7-1200, S7-1500)
The following table shows the parameters of the instruction:

Parameter ACK_ID IN OUT Q

Declaration Input InOut Output Output

Data type INT INT BOOL BOOL

Description Identifier of the acknowledgment (9 to 30000) Input variable from HMI system Output for acknowledgment Time status

624

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.13 Operating

Instruction versions
A number of versions are available for this instruction:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 x

--

1.2 x

o

1.3 x

x

S7-1500 --
o o x

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions are identical in function to version V1.0 for S7-300/400 F-CPUs. The input ACK_ID must also be taken into consideration for S71200/1500 F-CPUs.

o This version is no longer supported.

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

625

STEP 7 Safety V16 instructions 13.13 Operating
Timing imprecision resulting from the update time of the time base used in the instruction:

Example See also

 For the first call in cycle n+1, the call time of the instruction relative to the start of the F-runtime
group is earlier than that in cycle n by the amount of 1, e.g. because parts of the safety program of the F-runtime group before the call time of the instruction in cycle n+1 are skipped. For the time update, the instruction takes account of time TBase_1 instead of the time T1 that has actually elapsed in cycle n since the call.
 The instruction is called a second time in cycle n+1. This does not involve another time update
(by 2).
 For the call in cycle n+2, the call time of the instruction relative to the start of the F-runtime
group is later than that in cycle n by the amount of 3, e.g. because the F-runtime group was interrupted by a higher priority interrupt before the call time of the instruction in cycle n+2. The instruction took into account time TBase_1 + TBase_2 instead of the time T3 that has actually elapsed in cycle n since the call. This would also be the case if no call occurred in cycle n+1.
An example how the instruction is used is available under Implementing User Acknowledgment in the Safety Program of the F-CPU of a DP Master or IO controller (Page 196).
Implementing user acknowledgment in the safety program of the F-CPU of a I-slave or Idevice (Page 201)

626

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.14

Additional instructions

STEP 7 Safety V16 instructions 13.14 Additional instructions

13.14.1

LAD

13.14.1.1 ---| |--- OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

You can use the "Get status bit OV" instruction to detect whether a number range overflow occurred in the last arithmetic instruction processed.
The "Get status bit OV" instruction functions like a normally open contact. If the query is fulfilled, the instruction has signal state "1". If the query is not fulfilled, the instruction has signal state "0".
The "Get status bit OV" evaluation must be inserted in the network that follows the instruction that influences the OV. This network must not contain any jump labels.
Note
The execution time of the OV-affecting instruction is extended when the "Get status bit OV " instruction is used (see also Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

627

STEP 7 Safety V16 instructions 13.14 Additional instructions

Example

The following example shows how the instruction works:

The "Add" instruction is always executed (regardless of the signal state at enable input EN).
The value of the "Tag_Value1" operand is added to value of the Tag_Value2 operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand.
If an overflow occurs during execution of the "Add" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.

628

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.14 Additional instructions

13.14.1.2

---| / |--- OV: Get negated status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7400)

Description

You can use the "Get negated status bit OV" instruction to detect whether a number range overflow occurred in the last arithmetic instruction processed. This instruction is only available in LAD.
The "Get negated status bit OV" instruction functions like a normally closed contact. If the query is satisfied, the instruction has signal state "0". If the query is not satisfied, the instruction has signal state "1".
The "Get negated status bit OV" evaluation must be inserted in the network following the instruction that influences the OV. This network must not contain any jump labels.
Note
The execution time of the OV-affecting instruction is extended when the "Get negated status bit OV " instruction is used (see also Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)).

Example

The following example shows how the instruction works:

The "Add" instruction is always executed (regardless of the signal state at enable input EN).
The value of the "Tag_Value1" operand is added to value of the Tag_Value2 operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand.
If an overflow does not occur during execution of the "Add" instruction, the status bit OV is reset to "0". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

629

STEP 7 Safety V16 instructions 13.14 Additional instructions

13.14.2

FBD

13.14.2.1 OV: Get status bit OV (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Description

You can use the "Get status bit OV" instruction to detect whether a number range overflow occurred in the last arithmetic instruction processed.
The "Get status bit OV" evaluation must be inserted in the network that follows the instruction that influences the OV. This network must not contain any jump labels.
If the query is fulfilled, the instruction has signal state "1". If the query is not fulfilled, the instruction has signal state "0".
You can program a query of status bit OV for "0" with the "Invert RLO" instruction.
Note
The execution time of the OV-affecting instruction is extended when the "Get status bit OV " instruction is used (see also Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100)).

Example

The following example shows how the instruction works:

The value of the "Tag_Value1" operand is added to value of the Tag_Value2 operand. The result of the addition is stored in the ""F_DB_1".Tag_Result" operand.
If an overflow occurs during execution of the "Add" instruction, the status bit OV is set to "1". In network 2, following the query of the status bit OV, the "Set output" (S) instruction is executed and the "TagOut" operand is set.

630

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

13.15

Communication

STEP 7 Safety V16 instructions 13.15 Communication

13.15.1

PROFIBUS/PROFINET

13.15.1.1

SENDDP and RCVDP: Send and receive data via PROFIBUS DP/PROFINET IO (STEP 7 Safety V16)

Introduction

You use the SENDDP and RCVDP instructions for fail-safe sending and receiving of data using:  Safety-related master-master communication  Safety-related master-master communication for S7 Distributed Safety  Safety-related master-I-slave communication  Safety-related I-slave-I-slave communication  Safety-related IO controller-IO controller communication  Safety-related IO controller-IO controller communication for S7 Distributed Safety  Safety-related IO controller-I-device communication  Safety-related IO controller-I-slave communication

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

631

STEP 7 Safety V16 instructions 13.15 Communication

Description

The SENDDP instruction sends 16 data elements of data type BOOL and 2 data elements of data type INT or one data element of the data type DINT (S7-1200, S7-1500) in a fail-safe manner to another F-CPU via PROFIBUS DP/PROFINET IO. The data can be received there by the related RCVDP instruction.
Every call of this instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g. RCVDP_DB_1) for these instructions. Once it is created, the new data block can be found in the "STEP 7 Safety" folder in the project tree under "Program blocks > System blocks". For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
With the SENDDP instruction, the data to be sent (for example, outputs of other Fblocks/instructions) are available at input SD_BO_xx or SD_I_xx or SD_DI_00 as alternative.
With the RCVDP instruction, the data received are available at outputs RD_BO_xx and RD_I_xx or RD_DI_00 as alternative for additional processing by other F-blocks/instructions.
(S7-1200, S7-1500) At the DINTMODE input of the SENDDP instruction you specify if the data at the inputs SD_I_00 and SD_I_01 or the data at the input SD_DI_00 is sent.
The operating mode of the F-CPU with the SENDDP instruction is provided at output SENDMODE. If the F-CPU with the SENDDP instruction is in disabled safety mode, output SENDMODE = 1.
Communication between F-CPUs takes place in the background by means of a special safety protocol. You must define the communication relationship between a SENDDP instruction in one F-CPU and a RCVDP instruction in the other F-CPU by specifying an Fcommunication ID at the DP_DP_ID inputs of the SENDDP and RCVDP instructions. Associated SENDDP and RCVDP instructions are assigned the same value for DP_DP_ID.
WARNING
The value for the respective F-communication ID (input DP_DP_ID; data type: INT) can be freely selected**; however, it must be unique for all safety-related communication connections network-wide* and CPU-wide at all times. The uniqueness must be checked in the safety summary during acceptance of the safety program.
You must supply constant values*** to the inputs DP_DP_ID and LADDR when calling the instruction. Direct write accesses in the associated instance DB to DP_DP_ID and LADDR are not permitted in the safety program! (S016)

632

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all the nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all the nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, no connection is established at the DP_DP_ID input for a F-communication ID "0".
*** S7-1200/1500: As of version V3.0 of the SENDDP and RCVDP instructions, the DP_DP_ID input can also be supplied with variable values from a global F-DB. In this case as well you have to check during the acceptance of the safety program that the uniqueness is ensured at every moment, by checking the algorithm for the creation of the variable value accordingly. If you cannot ensure a unique F-communication ID during startup of the safety program, because it is only specified after startup of the safety program, you must make sure that the value at the DP_DP_ID input is "0" during this phase.
Note
Within a safety program, you must assign a different start address (S7-300/400) or HW identifier (S7-1200/1500) for every call of the SENDDP and RCVDP instructions at input LADDR.
A separate instance DB must be used for each call of the SENDDP and RCVDP instructions. You must not declare and call these instructions as multi-instances.
(S7-300/400) The inputs of the RCVDP and RCVS7 instructions may not have preceding logic operations (for example "AND logic operation").
The inputs of the RCVDP instruction cannot be initialized using fully qualified DB accesses with outputs of a RCVDP or RCVS7 instruction called in an upstream network.
(S7-1200/1500) The RD_D_00 output must not be evaluated for DINTMODE = 0; the RD_I_xx outputs of the RCVDP instruction must not be evaluated for DINTMODE = 1.
(S7-1200/1500) The outputs of the SENDDP and RCVDP instructions must not be supplied with tags from the standard user program. Exception: RET_DPRD, RET_DPWR and DIAG outputs.
Fully qualified access to DP_DP_ID and LADDR is not possible in the safety program.
You cannot use an actual parameter for an output of an RCVDP instruction, if it is already being used for an input of the same or another RCVDP or RCVS7 instruction.
The F-CPU can go to STOP if this is not observed. The cause of the diagnostics event is entered in the diagnostics buffer of the F-CPU.
Note
You are not permitted to insert any SENDDP/RCVDP instructions between a JMP or JMPN instruction and the associated jump destination (jump label).
You cannot insert a RET instruction prior to a SENDDP instruction.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

633

STEP 7 Safety V16 instructions 13.15 Communication

SENDDP parameter
The following table shows the parameters of the SENDDP instruction:

Parameter SD_BO_00 ... SD_BO_15 SD_I_00 SD_I_01 SD_DI_00

Declaration Input
Input Input Input Input

DINTMODE

Input

DP_DP_ID TIMEOUT
LADDR

Input Input
Input

ERROR SUBS_ON RET_DPRD

Output Output Output

RET_DPWR

Output

DIAG

Output

Data type

Description

BOOL

Send data BOOL 00

...

BOOL

Send data BOOL 15

INT

Send data INT 00

INT

Send data INT 01

DINT

(S7-1200, S7-1500)

(hidden)

Send data DINT 00

DINT

(S7-1200, S7-1500)

(hidden)

0=SD_I_00 u. SD_I_01 are sent

1=SD_DI_00 is sent

INT

F-communication ID between SENDDP and RCVDP

TIME

Monitoring time in ms for safety-related communication (see also Monitoring and response times (Page 649))

INT (S7-300, The start address (S7-300, S7-400) or HW identifier (S7-1200,

S7-400)

S7-1500) of the address area/transfer area:

HW_SUBMOD ·

ULE (S7-1200,

S7-1500)

·

Of DP/DP coupler for safety-related master-master communication
For safety-related master-I-slave communication

· For safety-related I-slave-I-slave communication

· Of PN/PN coupler for safety-related IO controller-IO controller communication

· For safety-related IO controller-I-device communication

· For safety-related IO controller-I-slave communication

BOOL BOOL WORD
WORD
BYTE

1=Communication error
1=RCVDP outputs fail-safe values
Non-fail-safe error code RET_VAL of the DPRD_DAT instruction (for a description of error codes, refer to the help for the DPRD_DAT instruction ("Extended instructions > Distributed I/O > Other")).
Non-fail-safe error code RET_VAL of the DPWR_DAT instruction (for a description of error codes, refer to the help for the DPWR_DAT instruction ("Extended instructions > Distributed I/O > Other")).
Non-fail safe service information

634

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication

RCVDP parameter:
The following table shows the parameters of the RCVDP instruction:

Parameter ACK_REI
SUBBO_00 ... SUBBO_15 SUBI_00 SUBI_01 SUBDI_00

Declaration Input
Input
Input Input Input Input

DP_DP_ID TIMEOUT
LADDR

Input Input
Input

ERROR SUBS_ON ACK_REQ SENDMODE RD_BO_00 ... RD_BO_15 RD_I_00 RD_I_01 RD_DI_00

Output Output Output Output Output
Output Output Output Output

RET_DPRD

Output

Data type

Description

BOOL

1=Acknowledgment for reintegration of send data following communication error

BOOL

Fail-safe value for receive data BOOL 00

...

BOOL

Fail-safe value for receive data BOOL 15

INT

Fail-safe value for receive data INT 00

INT

Fail-safe value for receive data INT 01

DINT

(S7-1200, S7-1500)

(hidden)

Fail-safe value for receive data DINT 00

INT

F-communication ID between SENDDP and RCVDP

TIME

Monitoring time in ms for safety-related communication (see also Monitoring and response times (Page 649))

INT (S7-300, The start address (S7-300, S7-400) or HW identifier (S7-1200,

S7-400)

S7-1500) of the address area/transfer area:

HW_SUBMOD · ULE (S7-1200,
S7-1500) ·

Of DP/DP coupler for safety-related master-master communication
For safety-related master-I-slave communication

· For safety-related I-slave-I-slave communication

· Of PN/PN coupler for safety-related IO controller-IO controller communication

· For safety-related IO controller-I-device communication · For safety-related IO controller-I-slave communication

BOOL BOOL BOOL BOOL BOOL
BOOL INT INT DINT
WORD

1=Communication error 1=Fail-safe values are output 1=Acknowledgment for reintegration of send data required 1=F-CPU with SENDDP instruction in disabled safety mode Receive data BOOL 00 ... Receive data BOOL 15 Receive data INT 00 Receive data INT 01 (S7-1200, S7-1500) (hidden) Receive data DINT 00 Non-fail-safe error code RET_VAL of the DPRD_DAT instruction (for a description of error codes, refer to the help for the DPRD_DAT instruction ("Extended instructions > Distributed I/O > Other")).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

635

STEP 7 Safety V16 instructions 13.15 Communication

Parameter RET_DPWR

Declaration Output

DIAG

Output

Data type WORD
BYTE

Description
Non-fail-safe error code RET_VAL of the DPWR_DAT instruction (for a description of error codes, refer to the help for the DPWR_DAT instruction ("Extended instructions > Distributed I/O > Other")).
Non-fail safe service information

Instruction versions
A number of versions are available for these instructions:

Ver- S7-300/400 S7-1200 sion

1.0 x

--

1.1 o

--

1.2 x

--

1.4 x

--

1.3 x

--

1.5 x

x

2.0 x

x1

3.0 x

x1

S7-1500
--
o o x o x x2 x2

Function
When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.0 of the instruction is used automatically. If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction. These versions have identical functions to version V1.0.
S7-300/400: These versions have identical functions to version V1.0. S7-1200/1500: Instead of 2 data of data type INT, one data of data type DINT can be sent/received as alternative. Otherwise identical function as version V1.0. S7-300/400: This version has identical functions to version V2.0. S7-1200/1500: · The DP_DP_ID input can also be supplied with tags of a global F-
DB. In case of DP_DP_ID = 0 no connection is established. · Supports the data status byte of the PN/PN coupler as of V4.0 · Supports the simulation of the communication in S7-PLCISM opera-
tion Otherwise functionally identical to version V2.0

o This version is no longer supported. 1 supported for Firmware version V4.2 or higher 2 supported for Firmware version V2.0 or higher

When a new F-CPU is created with STEP 7 Safety, the latest available version for the FCPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

636

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication

Placement

You need to insert the RCVDP instruction either at the start of the main safety block or (with S7-1200/1500 F-CPUs) in an F-FB/F-FC called directly at the start of the main safety block. No other instructions can be located before in the main safety block and no other instructions can be located before or afterwards in the F-FB/F-FC.
You need to insert the SENDDP instruction either at the end of the main safety block or (with S7-1200/1500 F-CPUs) in an F-FB/F-FC called directly at the end of the main safety block. No other instructions can be located afterwards in the main safety block and no other instructions can be located before or afterwards in the F-FB/F-FC.

Startup characteristics
After the sending and receiving F-systems are started up, communication must be established between the connection partners for the fist time (SENDDP and RCVDP instructions). During this time, the receiver (RCVDP instruction) outputs the fail-safe values present at its inputs SUBBO_xx and SUBI_xx or alternatively SUBDI_00.
The SENDDP and RCVDP instructions signal this with 1 at output SUBS_ON. The SENDMODE output has default setting "0" and is not updated as long as output SUBS_ON = 1.
As of version V3.0 of the SENDDP and RCVDP instructions, communication is only established when DP_DP_ID <> 0.

Behavior in the event of communication errors
If a communication error occurs, for example, due to a signature error (CRC) or when monitoring time TIMEOUT expires or for F-CPUs S7-1200/1500 as of V3.0 due to a change of the DP_DP_ID to 0 after establishment of communication, the outputs ERROR and SUBS_ON = 1 are set. The receiver (RCVDP instruction) then outputs the fail-safe values assigned at its inputs SUBBO_xx and SUBI_xx or alternatively SUBDI_00 inputs. Output SENDMODE is not updated while output SUBS_ON = 1.
The send data of the SENDDP instruction present at inputs SD_BO_xx and SD_I_xx, SD_DI_00 as alternative, are only output again when communication errors are no longer detected (ACK_REQ = 1) and you acknowledge (Page 196) the RCVDP instruction with a positive edge at input ACK_REI.
Communication errors also occur if the values of the DP_DP_IDs between associated SENDDP and RCVDP are temporarily different on a change of the values of variable DP_DP_IDs after communication establishment.
WARNING
For the user acknowledgment, you must interconnect input ACK_REI with a signal generated by the operator input.
An interconnection with an automatically generated signal is not permitted.* (S040)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

637

STEP 7 Safety V16 instructions 13.15 Communication
* If variable F-communication IDs are used, the communication partner of the SENDDP or RCVDP instructions can be changed during running operation. The resultant communication errors may only be acknowledged with an automatically generated signal at the ACK_REI input under the following conditions:
 The F-program reliably forms a signal "Communication partner change is in progress" with the RCVDP instruction on the basis of the process state.
 The signal "Communication partner change is in progress" is only formed if there is no communication error.
 While the signal "Communication partner change is in progress" is active, no evaluation of the received process values is carried out at the RCVDP instruction.
 The automatic acknowledgement is only carried out if the "Communication partner change is in progress" signal is available.
 From a safety standpoint automatic reintegration is permitted for the relevant process.
Note that output ERROR (1=communication error) for a communication error will not be set unless communication between the connection partners (SENDDP and RCVDP instructions) has been previously established. If communication cannot be established after startup of the sending and receiving F-Systems, check the configuration of the safety-related CPU-CPU communication, the parameter assignment of the SENDDP and the RCVDP instructions, and the bus connection. You also obtain information on possible error causes by evaluating outputs DIAG, RET_DPRD and RETDP_WR.
In general, always evaluate RET_DPRD and RETDP_WR, since it is possible that only one of the two outputs will contain error information.

638

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Timing diagrams SENDDP/RCVDP

STEP 7 Safety V16 instructions 13.15 Communication

Output DIAG

In addition, non-fail-safe information about the type of communication errors that occurred is provided at output DIAG of the SENDDP and RCVDP instructions for service purposes.
You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits are saved until you acknowledge the errors at input ACK_REI of the RCVDP instruction.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

639

STEP 7 Safety V16 instructions 13.15 Communication

Structure of DIAG of the SENDDP/RCVDP instruction

Bit no. Bit 0 Bit 1 Bit 2 Bit 3 Bit 4
Bit 5

Assignment

Possible error causes

Remedies

Reserved

--

--

Reserved

--

--

Reserved

--

--

Invalid DP_DP_ID

The DP_DP_ID is 0.

Check the DP_DP_ID of SENDDP or RCVDP.

Timeout of

The standard program overwrites

SENDDP/RCVDP detect- transfer areas of SENDDP and

ed

RCVDP.

Check the standard program for writing accesses into the transfer areas of SENDDP and RCVDP. Also take indirect accesses into account.

DP_DP_ID of SENDDP and RCVDP Check the DP_DP_ID of SENDDP and

different.

RCVDP.

For variable F-communication IDs the values are changed at the DP_DP_ID input.

When the DP_DP_ID of SENDDP and RCVD is consistent again, perform an acknowledgment at the ACK_REI input.

Interference in bus connection to partner F-CPU.

Check the bus connection and ensure that there are no external sources of interference.

Monitoring time setting for F-CPU and partner F-CPU is too low.

Check the parameterized monitoring time TIMEOUT at SENDDP and RCVDP of both CPUs. Set a higher value if necessary. Recompile the safety program.

Configuration of the DP/DP coupler Check the configuration of the DP/DP coupler

or PN/PN coupler is invalid.

or of the PN/PN coupler.

Data validity indicator "DIA" of the DP/DP coupler is "ON".

Set the data validity indicator "DIA" at the DIL switch of the DP/DP coupler to "OFF".

Parameter "Data validity indicator DIA" of the PN/PN coupler is activated.

Deactivate the "Data validity display DIA" parameter in the properties for the PN/PN coupler.

Parameter "Activate data status" of the PN/PN coupler (as of V4.0) is activated.

Deactivate the "Activate data status" parameter in the properties for the PN/PN coupler (as of V4.0)

or

S7-1200/1500: Use Version V3.0 of the SENDDP and RCVDP instructions.

Internal fault of DP/DP coupler or PN/PN coupler

Replace the DP/DP coupler or PN/PN coupler

CP in STOP mode, or internal fault Switch the CP to RUN. Check the diagnostics

in CP

buffer of the CP.

If necessary, replace the CP.

F-CPU/partner F-CPU in STOP mode, or internal fault in FCPU/partner F-CPU

Switch the F-CPUs to RUN. Check the diagnostics buffer of the F-CPUs.
If necessary, replace the F-CPUs.

Sequence number error of See description for bit 4 SENDDP/RCVDP detected

See description for bit 4

640

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication

Bit no. Bit 6
Bit 7

Assignment
CRC-error of SENDDP/RCVDP detected
Reserved

Possible error causes
See description for bit 4 DP_DP_ID of SENDDP and RCVDP different --

Remedies See description for bit 4 Check DP_DP_ID of SENDDP and RCVDP
--

See also

Communication with S7 Distributed Safety via PN/PN coupler (IO controller-IO controller communication) (Page 266) Communication with S7 Distributed Safety via DP/DP coupler (master-master communication) (Page 267) Configuring and programming communication (S7-300, S7-400) (Page 209) Safety-related IO controller-IO controller communication (Page 212) Safety-related master-master communication (Page 222) Safety-related IO controller-I-device communication (Page 232) Safety-related master-I-slave communication (Page 239) Safety-related IO controller-I-slave communication (Page 257)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

641

STEP 7 Safety V16 instructions 13.15 Communication

13.15.2

S7 communication

13.15.2.1

SENDS7 and RCVS7: Communication via S7 connections (STEP 7 Safety Advanced V16) (S7-300, S7-400)

Introduction

You use the SENDS7 and RCVS7 instructions for fail-safe sending and receiving of data using S7 connections.
Note
In STEP 7 Safety Advanced, S7 connections are generally permitted over Industrial Ethernet only.
Safety-related communication via S7 connections is possible from and to F-CPUs with PROFINET interface or S7-400 F-CPUs with PROFINET-capable CPs. See also Safetyrelated communication via S7 connections (Page 258).

Description

The SENDS7 instruction sends the send data contained in an F-communication DB to the Fcommunication DB of the associated RCVS7 instruction of another F-CPU in a fail-safe manner using an S7 connection.
Every call of this instruction must be assigned a data area in which the instruction data is stored. The "Call options" dialog is automatically opened when the instruction is inserted in the program for this reason. There you can create a data block (single instance) (e.g., SENDS7_DB_1) or a multi-instance (e.g., SENDS7_Instance_1) for this instruction. Once it is created, you can find the new data block in the project tree in the "STEP 7 Safety" folder under "Program blocks > System blocks" or the multi-instance as a local tag in the "Static" section of the block interface. For more information, refer to the help on STEP 7.
Enable input "EN" and enable output "ENO" cannot be connected. The instruction is therefore always executed (regardless of the signal state at enable input "EN").
Information on the F-communication DB is contained in "Programming safety-related communication via S7 connections (Page 261)".
An F-communication DB is an F-DB for safety-related CPU-CPU communication with special properties. You must specify the numbers of the F-communication DBs at inputs SEND_DB and RCV_DB of instructions SENDS7 and RCVS7.
The operating mode of the F-CPU with the SENDS7 instruction is provided at output SENDMODE of the RCVS7 instruction. If the F-CPU with the SENDS7 instruction is in disabled safety mode, then output SENDMODE = 1.

642

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication
To reduce the bus load, you can temporarily shut down communication between the F-CPUs at input EN_SEND of the SENDS7 instruction. To do so, supply input EN_SEND with "0" (default = "1"). In this case, send data is no longer sent to the F-communication DB of the associated RCVS7 instruction, and the receiver provides fail-safe values for this period of time (initial values in its F-communication DB). If communication was already established between the partners, a communication error is detected.
You must specify the local ID - from the perspective of the F-CPU - of the S7 connection (from the connection table in the network view) at input ID of the SENDS7 instruction (see also Configuring (Page 41)).
Communication between F-CPUs takes place in the background by means of a special safety protocol. You must define a communication relationship between an SENDS7 instruction in one F-CPU and a communication relationship between an RCVS7 instruction and the other F-CPU by assigning an odd number at input R_ID (of the SENDS7 and RCVS7 instructions). Associated SENDS7 and RCVS7 instructions receive the same value for R_ID.
WARNING
The value for the respective F-communication ID (input R_ID; data type: DWORD) can be freely selected; however, it must be odd and unique for all safety-related communication connections network-wide* and CPU-wide. The value R_ID + 1 is internally assigned and must not be used.
You must supply inputs ID and R_ID with constant values when calling the instruction. Direct read or write access to the associated instance DB is not permitted in the safety program. (S020)
* A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/3 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).
Note
A separate instance DB must be used for each call of the SENDS7 and RCVS7 instructions within a safety program. You must not declare and call these instructions as multi-instances.
The inputs of the RCVS7 instruction cannot be initialized with outputs (using fully qualified DB accesses) of a RCVS7 or RCVDP instruction called in an upstream network.
You cannot use an actual parameter for an output of an RCVS7 instruction, if it is already being used for an input of the same or another RCVS7 or RCVDP instruction.
The F-CPU can go to STOP if this is not observed. A diagnostics event is entered in the diagnostics buffer of the F-CPU.
Note
You must not program any SENDS7/RCVS7 instruction between a JMP or JMPN instruction and the associated destination network of the JMP or JMPN instruction.
You cannot program a RET instruction prior to a SENDS7 instruction.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

643

STEP 7 Safety V16 instructions 13.15 Communication

SENDS7 parameter
The following table shows the parameters of the SENDS7 instruction:

Parameter SEND_DB TIMEOUT
EN_SEND ID R_ID
ERROR SUBS_ON STAT_RCV

Declaration Input Input
Input Input Input
Output Output Output

STAT_SND

Output

DIAG

Output

Data type BLOCK_DB TIME
BOOL WORD DWORD
BOOL BOOL WORD
WORD
BYTE

Description
Number of F-communication DB
Monitoring time in ms for safety-related communication (see also Monitoring and response times (Page 649))
1= Send enable
Local ID of the S7 connection
Network-wide unique value for a F-communication ID between a SENDS7 instruction and a RCVS7 instruction
1=Communication error
1=Receiving block outputs fail-safe values
Non-fail-safe status parameter STATUS of the URCV instruction (You can find a description of error codes in the help for the URCV instruction ("Communication > S7 Communication"))
Non-fail-safe status parameter STATUS of the USEND instruction (You can find a description of error codes in the help for the USEND instruction ("Communication > S7 Communication"))
Non-fail safe service information

RCVS7 parameter
The following table shows the parameters of the RCVS7 instruction.

Parameter ACK_REI
RCV_DB TIMEOUT
ID R_ID
ERROR SUBS_ON ACK_REQ SENDMODE
STAT_RCV

Declaration Input
Input Input
Input Input
Output Output Output Output
Output

Data type BOOL
BLOCK_DB TIME
WORD DWORD
BOOL BOOL BOOL BOOL
WORD

Description
Acknowledgment for reintegration of send data after communication error
Number of F-communication DB
Monitoring time in ms for safety-related communication (see also Monitoring and response times (Page 649))
Local ID of the S7 connection
Network-wide unique value for a F-communication ID between a SENDS7 instruction and a RCVS7 instruction
1=Communication error
1=Fail-safe values are output
1=Acknowledgment for reintegration of send data required
1=F-CPU with the SENDS7 instruction in disabled safety mode
Non-fail-safe status parameter STATUS of the URCV instruction (You can find a description of error codes in the help for the URCV instruction ("Communication > S7 Communication"))

644

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

STEP 7 Safety V16 instructions 13.15 Communication

Parameter STAT_SND

Declaration Output

DIAG

Output

Data type WORD
BYTE

Description
Non-fail-safe status parameter STATUS of the USEND instruction (You can find a description of error codes in the help for the USEND instruction ("Communication > S7 Communication"))
Non-fail safe service information

Instruction versions
A number of versions are available for these instructions:

Version S7-300/400 S7-1500 Function

1.0

x

--

1.1

x

1.2

x

--

This version has identical functions to version V1.0.

It also supports later versions of internally called instructions.

When projects that were created with S7 Distributed Safety V5.4 SP5 are migrated, version 1.1 of the instruction is used automatically.

If you want to compile a migrated safety program with STEP 7 Safety Advanced for the first time, we recommend that you first update to the latest available version of the instruction.

--

This version has identical functions to version V1.0/1.1.

It also supports later versions of internally called instructions.

When a new F-CPU is created with STEP 7 Safety Advanced, the latest available version for the F-CPU created is automatically preset.

For more information on the use of instruction versions, refer to the help on STEP 7 under "Using instruction versions".

Placement

You must insert the RCVS7 instruction at the start of the main safety block. No other instructions may be located before it in the main safety block.
You must insert the SENDS7 instruction at the end of the main safety block. No other instructions may be located after it in the main safety block.

Startup characteristics
After the sending and receiving F-systems are started up, communication must be established between the connection partners for the fist time (SENDS7 and RCVS7 instructions). The receiver (RCVS7 instruction) provides fail-safe values for this time period (initial values in its F-communication DB).
The SENDS7 and RCVS7 instructions signal this with 1 at output SUBS_ON. The SENDMODE output (RCVS7 instruction) has default setting "0" and is not updated as long as output SUBS_ON = 1.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

645

STEP 7 Safety V16 instructions 13.15 Communication
Behavior in the event of communication errors
If a communication error occurs, for example, due to a signature error (CRC) or when monitoring time TIMEOUT expires, outputs ERROR and SUBS_ON = 1 are set. The receiver (RCVS7 instruction) then provides fail-safe values (initial values in its F-communication DB). Output SENDMODE is not updated while output SUBS_ON = 1.
The send data present in the F-communication DB (SENDS7 instruction) are not output before the communication error is no longer detected (ACK_REQ = 1) and you acknowledge (Page 196) with a positive edge at input ACK_REI of the RCVS7 instruction.
WARNING
For the user acknowledgment, you must interconnect input ACK_REI with a signal generated by the operator input. An interconnection with an automatically generated signal is not permitted. (S040)
Note that output ERROR (1=communication error) will be set for the first time on a communication error if communication has already been established between the connection partners (SENDS7 and RCVS7 instructions). If communication cannot be established after startup of the sending and receiving F-Systems, check the configuration of the safety-related CPU-CPU communication, the parameter assignment of the SENDS7 and the RCVS7 instructions, and the bus connection. You can also receive information on possible error causes by evaluating the STAT_RCV and STAT_SND outputs.
In general, always evaluate STAT_RCV and STAT_SND, since it is possible that only one of the two outputs will contain error information.
If one of the DIAG bits is set at output DIAG, also check whether the length and structure of the associated F-communication DB on both the sending and receiving ends match.

646

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Timing diagrams SENDS7 and RCVS7

STEP 7 Safety V16 instructions 13.15 Communication

Output DIAG

Non-fail-safe information on the type of communication errors that have occurred is made available at output DIAG for service purposes. You can read out this information by means of operator control and monitoring systems or, if applicable, you can evaluate it in your standard user program. DIAG bits are saved until you acknowledge them at input ACK_REI of the associated RCVS7 instruction.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

647

STEP 7 Safety V16 instructions 13.15 Communication

Structure of DIAG

Bit no. Bit 0 Bit 1 Bit 2 Bit 3 Bit 4
Bit 5 Bit 6 Bit 7

Assignment of SENDS7 and RCVS7
Reserved Reserved Reserved Reserved Timeout detected by SENDS7 and RCVS7

Possible error causes

Remedies

--

--

--

--

--

--

--

--

Fault in bus connection to partner Check bus connection and ensure that

F-CPU

no external fault sources are present.

Monitoring time setting for F-CPU and partner F-CPU is too low

Check assigned monitoring time TIMEOUT for SENDS7 and RCVS7 of both F-CPUs. If possible, set a higher value. Recompile safety program

CPs in STOP mode, or internal fault · Switch CPs to RUN mode

in CPs

· Check diagnostic buffer of CPs

· Replace CPs, if necessary

F-CPU/partner F-CPU in STOP mode, or internal fault in FCPU/partner F-CPU

· Switch F-CPUs to RUN mode · Check diagnostic buffer of F-CPUs · Replace F-CPUs, if necessary

Sequence number error detected by SENDS7 and RCVS7 CRC-error detected by SENDS7 and RCVS7 RCVS7: Communication cannot be established
SENDS7: Reserved

Communication was shut down with Enable communication again at the

EN_SEND = 0.

associated SENDS7 with EN_SEND =

1

S7 connection has changed, the IP Recompile the safety programs and address of the CP has changed, for download them to the F-CPUs example

See description for bit 4

See description for bit 4

See description for bit 4

See description for bit 4

Configuration of the safety-related Check configuration of the safety-

CPU-CPU communication is incor- related CPU-CPU communication, the

rect, parameter assignment of the parameter assignment of the SENDS7

SENDS7 and RCVS7 instructions is and the RCVS7 instructions is incor-

incorrect

rect

See also description for Bit 4

See also description for Bit 4

--

--

648

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Monitoring and response times

A

Introduction

In the following, you will learn:  Which F-specific monitoring times you must configure  Which rules must be followed when specifying monitoring times  Where you enter the F-specific monitoring times  Which rules must be followed with regard to the maximum response time of a safety
function

Support for calculations
An Excel file is available on the Internet (http://support.automation.siemens.com/WW/view/en/49368678/133100) to assist you in calculating approximately the runtimes of the F-runtime groups, the minimum F-specific monitoring times, and the maximum response times of your F-System.

Additional information
The monitoring and response times for the standard part are calculated in SIMATIC Safety in exactly the same way as for standard S7-300, S7-400, S7-1200 and S7-1500 automation systems and are not addressed here. For a description of this calculation, refer to the hardware manuals for the CPUs.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

649

Monitoring and response times A.1 Configuring monitoring times

A.1

Configuring monitoring times

Monitoring times to be configured
You must configure the following monitoring times:

Monitoring...
F-cycle time or cycle time warning limit of the F-runtime groups that contain the safety program

Setting... in Safety Administration Editor:
· Dialog for definition of an Fruntime group

of the safety-related communication between F-CPU and F-I/O via PROFIsafe (PROFIsafe monitoring time)

In the hardware and network editor:
· Centrally when configuring the F-CPU; properties of the FCPU; or

· when configuring the F-I/O; properties of the F-I/O

of the safety-related CPU-CPU communication
(S7-1200, S7-1500) Communication with Flexible F-Link

At the TIMEOUT input of the instructions:
· SENDDP; RCVDP; SENDS7; RCVS7
in Safety Administration Editor:
· "Flexible F-Link" area

Parameters
Maximum cycle time of the F-runtime group

See
· Procedure for defining an F-runtime group (S7-300, S7400) (Page 141)

· Procedure for defining an F-runtime group (S7-1200, S71500) (Page 145)

F-monitoring time F_WD_TIME

· Configuring an FCPU (Page 46)
· Configuring F-I/O (Page 51)

· Peculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices (Page 76)

TIMEOUT

· Communication (Page 631)

F-monitoring time of F-communication

· "Flexible F-Link" area (S7-1200, S7-1500) (Page 98)
· F-runtime group communication (S71200, S7-1500) (Page 154)
· Configuring and programming communication with Flexible F-Link (S7-1200, S7-1500) (Page 312)

(S7-300, S7-400) You do not have to configure the monitoring time for safety-related communication between F-runtime groups.

650

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Monitoring and response times A.1 Configuring monitoring times
Rules for configuring monitoring times
When configuring monitoring times, you must take into account the availability as well as the safety of the F-system as follows:  Availability: To ensure that the time monitoring is not triggered when there is no error, the
monitoring times selected must be sufficiently long.  Safety: To ensure that the process safety time is not exceeded for the process, the
monitoring times selected must be sufficiently short.
WARNING
It can only be ensured (from a fail-safe standpoint) that a signal state to be transferred will be acquired at the sender end and transferred to the receiver if the signal level is pending for at least as long as the assigned monitoring time. (S018)
General procedure for configuring monitoring times
Use the following procedure for configuring monitoring times: 1. Configure the standard system.
Refer to the applicable hardware manuals and Help on STEP 7 for the necessary information. 2. Configure the specific monitoring times of the F-System with respect to availability. You use the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) to calculate the approximate minimum monitoring time. 3. Use the Excel file for response time calculation to calculate the maximum response time and then verify that the process safety time of the process is not exceeded. If necessary, you must reduce the specific monitoring times of the F-System.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

651

Monitoring and response times A.1 Configuring monitoring times

A.1.1

Minimum monitoring time for the F-runtime group cycle time

Parameter "Maximum cycle time of the F-runtime group"
You configure the monitoring time for the F-runtime group cycle time in the Safety Administration Editor in the work area for definition of the F-runtime group (Page 139).
To prevent F-runtime group cycle time monitoring from being triggered when there are no pending faults and causing the F-CPU to go to STOP, you must set the maximum cycle time of the F-runtime group high enough.
Use the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) to determine the minimum monitoring time for the F-runtime group cycle time. Note also the comments in the Excel file.
For S7-1200/1500 F-CPUs, you can also use the "Cycle time warning limit of F-runtime group (Page 145)", "Maximum cycle time of F-runtime group (Page 145)" and the tags TCYC_CURR (Page 158) and TCYC_LONG (Page 158) for dimensioning.

A.1.2

Minimum monitoring time for safety-related communication between F-CPU and F-I/O

Parameter "F-monitoring time"
You have two options for configuring the monitoring time of safety-related communication between the F-CPU and F-I/O:
 Centrally in the hardware and network editor during parameter assignment of the F-CPU (Page 46); in the properties of the F-CPU, or
 During parameter assignment of the F-I/O (Page 51) in the hardware and network editor; in the properties of the F-I/O

"F-monitoring time" = PROFIsafe monitoring time TPSTO
The specified PROFIsafe monitoring time TPSTO must be high enough to prevent tripping the F-cycle time monitoring when no faults are present.
Use the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) available for SIMATIC Safety to calculate the minimum monitoring time for safety-related communication between the F-CPU and F-I/O.
Note also the comments in the Excel file.

652

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Monitoring and response times A.1 Configuring monitoring times
Check to determine whether configured PROFIsafe monitoring time is too short
Note
During commissioning of the F-system, you can perform a check while safety mode is active to determine whether the configured PROFIsafe monitoring time is too short.
This check of the PROFIsafe monitoring time is useful if you want to ensure that the configured monitoring time exceeds the minimum monitoring time by a sufficient amount. In this way, you can avoid the possible occurrence of sporadic monitoring time errors.
Procedure: 1. Insert an F-I/O (one that will not be needed later for system operation). 2. Assign a shorter monitoring time for this F-I/O than for the F-I/O of the system. 3. If the additional F-I/O fails and the "Monitoring time for safety message frame exceeded"
diagnostic is signaled, you have fallen below the minimum possible PROFIsafe monitoring time. 4. Increase the monitoring time for the added F-I/O just to the point where it no longer fails. This monitoring time corresponds approximately to the minimum possible monitoring time.
Conditions:
The F-I/O to be inserted additionally and the F-I/O whose PROFIsafe monitoring time is to be checked must have the following properties in common: · They must be inserted in the same rack · They must be nodes in the same subnet
Tip:
It may be useful to leave the additional F-I/O in place for systems that will be modified or expanded during operation after commissioning. This F-I/O will then provide an early warning in the event of changes in the time behavior, enabling you to avoid a process shutdown triggered by the F-I/O in the process.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

653

Monitoring and response times A.1 Configuring monitoring times

A.1.3

Minimum monitoring time of safety-related CPU-CPU communication

Input TIMEOUT at SENDDP and RCVDP or SENDS7 and RCVS7/F-monitoring time for communication via Flexible F-Link
The time monitoring is performed in the SENDDP and RCVDP (Page 631) or SENDS7 and RCVS7 (Page 642) instructions of the communication partner. You must assign the time monitoring with identical monitoring time for both instructions at the TIMEOUT input.
You must specify a monitoring time TIMEOUT that is large enough so that monitoring is not initiated when no faults are present.
For communication via Flexible F-Link you specify the F-monitoring time for the Fcommunication when creating an F-communication (Page 98).
Use the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) that is available for SIMATIC Safety to determine the minimum value for TIMEOUT or the F-monitoring time.
Note also the comments in the Excel file.

A.1.4

Monitoring Time for Safety-Related Communication between F-Runtime Groups

Monitoring time for safety-related communication between F-runtime groups (S7-300, S7-400)
The monitoring time for safety-related communication between F-runtime groups is determined automatically from the values for the "Maximum cycle time of F-runtime group" (work area for Definition of the F-runtime group (Page 139) in the Safety Administration Editor).
Monitoring time = (maximum cycle time of the 1st F-runtime group) + (maximum cycle time of the 2nd F-runtime group)

Monitoring time for safety-related communication between F-runtime groups (S7-1200, S7-1500)
You can calculate the monitoring time for safety-related communication between F-runtime groups from the values for the "Maximum cycle time of F-runtime group" (area for Definition of the F-runtime group (Page 139) in the Safety Administration Editor), if you place the default user program for the F-runtime group communication into pre-/postprocessing (Page 86).
Monitoring time = (Maximum cycle time of the 1st F-runtime group) + (Maximum cycle time of the 2nd F-runtime group).

654

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Monitoring and response times A.2 Response Times of Safety Functions

A.2

Response Times of Safety Functions

Definition of response time
The response time is the time from detection of an input signal until the linked output signal changes.
Fluctuation range
The actual response time lies between a minimum response time and maximum response time. You must always take the maximum response time into account in your system configuration.
Rules for maximum response time of a safety function
The maximum response time of a safety function must be shorter than the process safety time of the process.
Definition for process safety time of a process
The process safety time of a process is the time interval between the occurrence of an error, within which the process can be left on its own without causing injury to operating personnel or damage to the environment, and the point in time the response is completed. The controlling F-system can perform any control during the process safety time, this includes incorrectly or not at all. The process safety time of a process depends on the process type and must be determined on a case-by-case basis.
Procedure for response time calculation
The Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) is available for calculating the maximum response time of a safety function. Use the Excel file to calculate the approximate maximum response time of the safety function and then check that the process safety time of the process is not exceeded.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

655

Monitoring and response times A.2 Response Times of Safety Functions
If necessary, you must reduce the specific monitoring times of the F-system (see Minimum monitoring time for safety-related communication between F-CPU and F-I/O (Page 652)).
WARNING
You may only use the Excel file for response time calculation or for timeout calculation when using Flexible F-Link communication, if you have observed the following instructions with regard to the standard instructions for consistent transfer of data:
CPU-CPU communication (Page 312)
You must call the standard instruction for consistent sending of data and acknowledgment in the post-processing of the F-runtime group (Page 86). With the standard instruction for receiving data and acknowledgments consistently, you must differentiate whether or not the standard communication connection is deterministic. For deterministic connections (such as DPRD_DAT / DPWR_DAT), you need to call the standard instruction in the pre-processing of the F-runtime group (Page 86). If the connection is non-deterministic (e.g. S7 connection, TCP connections), you must call the standard instruction in a cyclic interrupt OB. This cyclic interrupt OB must be called at shorter intervals than the F-runtime group. A ratio of 1:5 is recommended for this.
F-runtime group communication (Page 154)
You have to call up the standard instruction UMOVE_BLK for transferring the data to be sent in the postprocessing of the sending F-runtime group. You have to call the standard instruction UMOVE_BLK for transferring the acknowledgment to be sent in the postprocessing of the receiving F-runtime group. (S089)

656

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Monitoring and response times A.2 Response Times of Safety Functions
WARNING
The response time of your safety function depends, among other things, on the cycle time of the F-OB, the runtime of the F-runtime group and, when distributed F-I/O is used, the parameter assignment of PROFINET/PROFIBUS.
Therefore, the configuration/parameter assignment of the standard system influences the response time of your safety function.
Examples: · Increasing the priority of a standard OB compared to an F-OB can extend the cycle time
of the F-OB or the runtime of the F-runtime group due to the higher-priority processing of the standard OB. Note that during the creation of technology objects, OBs with very high priority may be created automatically. · The change of the send clock cycle of PROFINET changes the cycle time of an F-OB with event class "Synchronous cycle".
Note that the configuration / parameter assignment of the standard system is not subject to access protection for the safety program and does not lead to a modification of the collective F-signature.
If you do not take organizational measures to prevent changes in the configuration / parameter assignment of the standard system with influence on the response time, you must always use the monitoring times for the calculation of the maximum response time of a safety function (see Configuring monitoring times (Page 650)).
The monitoring times are protected against change with the access protection of the safety program and are recorded by the F-collective signature as well as the F-SW collective signature.
When calculating with the Excel file for response time calculation (http://support.automation.siemens.com/WW/view/en/49368678/133100) you need to consider the value that is specified for "Any standard system runtimes" as value for the maximum response time. (S085)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

657

Checklist

B

Life cycle of fail-safe automation systems
The following table contains a checklist summarizing all activities in the life cycle of a failsafe SIMATIC Safety system, including requirements and rules that must be observed for each activity.

Checklist

Legend:
 Stand-alone section references refer to this documentation.
 "F-SMs Manual" refers to the Automation System S7-300, ET 200M Distributed I/O System, Fail-Safe Signal Modules (http://support.automation.siemens.com/WW/view/en/19026151) manual.
 "F-Modules Manual" refers to the ET 200S Distributed I/O System, Fail-Safe Modules (http://support.automation.siemens.com/WW/view/en/27235629) manual.
 "ET 200eco Manual" refers to the ET 200eco Distributed I/O Station, Fail-Safe I/O Module (http://support.automation.siemens.com/WW/view/en/19033850) manual.
 "ET 200eco PN Manual" refers to the ET 200eco PN F-DI 8 x 24 VDC, 4xM12 / F-DQ 3 x 24 VDC/2.0A PM, 3xM12. (https://support.industry.siemens.com/cs/search?search=6ES7146-6FF000AB0&type=Manual&lc=en-US) manual.
 "ET 200pro Manual" refers to the ET 200pro Distributed I/O System, Fail-Safe I/O Module (http://support.automation.siemens.com/WW/view/en/22098524) manual.
 "ET 200iSP Manual" refers to the ET 200iSP Distributed I/O Device, Fail-Safe Modules (http://support.automation.siemens.com/WW/view/en/47357221) manual.
 "ET 200SP Manual" refers to the ET 200SP System (http://support.automation.siemens.com/WW/view/en/58649293) manual
 "ET 200MP Manual" refers to the S7-1500/ET 200MP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/59191792) manual
 "ET 200SP Modules Manual" refers to the device manuals for F-Modules of the ET 200SP Distributed I/O System (https://support.industry.siemens.com/cs/ww/en/ps/14059/man)

658

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Checklist

Phase
Planning
Requirement: "Safety requirements specification" available for the intended application
Specification of system architecture
Assignment of functions and subfunctions to system components
Selection of sensors and actuators

Note the following Process-dependent
Process-dependent Process-dependent Requirements for actuators

Specification of required safety properties for individual components
Configuration
Installing license

IEC 61508:2010 Requirement for installation

Selection of S7 components

Descriptions of configuration

Configuration of hardware · Description of F-systems
· Verification of utilized hardware components based on Annex 1 of Report in the Certificate

Reference --

Check

--
under Product Overview (Page 21)
F-SMs Manual, section 6.5; F-Modules Manual, section 4.5; ET 200eco Manual, section 5.5 ET 200eco PN Manual, section 5.2; ET 200pro Manual, section 4.4 ET 200S Manual, section 4.5 ET 200SP manual, section 5.2.2 ET 200MP manual, section 5.2.2 --

under Installing/uninstalling the STEP 7 Safety Basic V16 license (Page 28) orInstalling/uninstalling the STEP 7 Safety Advanced V16 license (Page 29)
under Product Overview (Page 21); F-SMs Manual, section 3; F-Modules Manual, section 3; ET 200eco Manual, section 3 ET 200eco PN Manual, section 4; ET 200pro Manual, section 2 ET 200iSP Manual, section 3 ET 200SP Modules Manual, section 3 ET 200MP Modules Manual, section 3
under Configuring (Page 41); Annex 1 of Report on the Certificate

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

659

Checklist

Phase Configuration of F-CPU
Configuration of F-I/O
Programming Defining program design and structure

Note the following

Reference

· Protection level, "Write protection for under Configuring an F-CPU (Page 46);

F-blocks" (S7-300, S7-400)

Standard S7-300;

· Protection level, at least "Full access" Standard S7-400;

(S7-1200, S7-1500)

S7-1200 standard;

· Password

S7-1500 standard;

· F-capability enabled

under Monitoring and response times

· Definition/setting of F-specific parame- (Page 649)

ters

Check

· Cycle time for the F-runtime group in which the safety program is to be executed, defined in accordance with the requirements and safety regulations same as with standard system

· Settings for safety mode · Setting of passivation type · Configuring monitoring times · Defining sensor evaluation · Defining diagnostic behavior · Special F-parameters · Assigning names · Unique PROFIsafe address

under Configuring F-I/O (Page 51) orPeculiarities when configuring fail-safe GSD based DP slaves and fail-safe GSD based I/O devices (Page 76)
under Monitoring and response times (Page 649); F-SMs Manual, sections 3, 9, 10; F-Modules Manual, sections 2.4, 7; ET 200eco Manual, sections 3, 8; ET 200eco PN Manual, section 6; ET 200pro Manual, Sections 2.4, 8; ET 200iSP Manual, Sections 2.4, 7, 8 ET 200SP Modules Manual, section 4 ET 200MP Modules Manual, section 4

· Follow warnings and notes on programming

under Overview of Programming (Page 114), Program structure of the safety program (S7-300, S7-400) (Page 115), Program structure of the safety program (S7-1200, S7-1500) (Page 117); Programming startup protection (Page 165);

660

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Checklist

Phase Creating the F-runtime groups
Creating/inserting the Fblocks
Compiling the safety program Implementing safety program call (S7-300, S7400) Installation Hardware configuration

Note the following
· Assignment of F-FB or F-FC as main safety block to the calling block (S7300, S7-400) or F-OB (S7-1200, S71500)

Reference
under Defining F-Runtime Groups (Page 139)
under Monitoring and response times (Page 649)

· Setting maximum cycle time for the Fruntime group in accordance with requirements (dependent on process and safety regulations)

· Creating DB for F-runtime group communication

· (S7-300, S7-400) Call of main safety blocks directly in OBs (e.g. OB 35), FBs, or FCs

· (S7-1200, S7-1500) Call of the main safety block from the F-OB

· Generating, editing, and saving F-FBs, under Creating F-blocks in FBD / LAD F-FCs, and F-DBs in accordance with (Page 160)

the requirements of the program struc- under Addressing F-I/O (Page 166)

ture

under Implementation of user acknowl-

· Description:

edgment (Page 196)

­ F-I/O access

under Reuse of F-blocks (Page 163)

­ Passivation and reintegration of F- under Configuring and programming

I/O

communication (S7-300, S7-400)

­ Inserting F-blocks from global libraries

(Page 209) and Configuring and programming communication (S7-1200, S71500) (Page 273)

­ Safety-related CPU-CPU communication

under Data exchange between standard user program and safety program

­ Communication with the standard (Page 204)

user program

--
Check whether the main safety block is called directly in OBs (e.g., OB 35), FBs, or FCs.

under Compiling the safety program (Page 323)
under Defining F-Runtime Groups (Page 139)

Description of · Installation · Wiring

under Overview of Configuration (Page 41); Particularities for configuring the F-System (Page 45); F-SMs Manual, sections 5, 6; F-Modules Manual, sections 3, 4; ET 200eco Manual, sections 3, 4; ET 200eco PN Manual, sections 4, 5; ET 200pro Manual, Sections 2, 3; ET 200iSP Manual, sections 3 and 4; ET 200SP Manual, sections 4 and 5 ET 200MP Manual, sections 4 and 5

Check

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

661

Checklist

Phase Commissioning, Testing Switching on

Note the following
Description of commissioning ­ same as in standard

Downloading safety program and standard user program

Description · Downloading · Program identification · Comparing safety programs

Testing the safety program

· Description of disabling of safety mode
· Procedures for changing safety program data

Changing the safety pro- Description

gram

· Disabling safety mode

· Changing the safety program

Testing the safety-related Description of configuration parameters

System acceptance Acceptance
Operation, maintenance General operation

· Description and notes on acceptance · Printouts
Notes on operation

Access protection Diagnostics

-- Responses to faults and events

Reference

Check

Standard S7-300; S7-400 standard; S7-1200 standard; S7-1500 standard; Standard-S7-1500 Software Controller; WinAC RTX F under Downloading project data to an FCPU (Page 325) under Comparing Safety Programs (Page 354)
under Downloading project data (Page 325); Testing the safety program (Page 363); Disabling safety mode (Page 360)
under Changing the safety program in RUN mode (S7-300, S7-400) (Page 371); Disabling safety mode (Page 360); Deleting the safety program (Page 137); under Printing project data (Page 357); F-SMs Manual, sections 4, 9, 10; F-Modules Manual, sections 2.4, 7; ET 200eco Manual, sections 3, 8; ET 200eco Manual, section 6; ET 200pro Manual, Sections 2.4, 8; ET 200iSP Manual, Sections 2.4, 7, 8 ET 200SP Modules Manual, section 4 ET 200MP Modules Manual, section 4

under System acceptance (Page 376)

under Notes on Safety Mode of the Safety Program (Page 401)
under Access protection (Page 103)
under Guide to diagnostics (S7-300, S7400) (Page 407); Guide to diagnostics (S7-1200) (Page 409); Guide to diagnostics (S7-1500) (Page 408);

662

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Checklist

Phase Replacement of software and hardware components
Uninstalling the license, Disassembly

Note the following Description · Module replacement · Update of operating systems of F-
CPU ­ same as in standard · Update of SW components Notes · Operating system update of IMs
· Notes for uninstalling the license · Notes for disassembling modules

Reference
under Replacing Software and Hardware Components (Page 404); Addressing FI/O (Page 166);
Help on STEP 7

Check

under Installing/uninstalling the STEP 7 Safety Basic V16 license (Page 28); Installing/uninstalling the STEP 7 Safety Advanced V16 license (Page 29); Replacing Software and Hardware Components (Page 404);

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

663

Glossary

Access protection
 Fail-safe systems must be protected against dangerous, unauthorized access. Access protection for F-systems is implemented by assigning two passwords (one for the  F-CPU, and one for the  safety program).

Automatically generated F-blocks
 F-blocks that are automatically generated and, if necessary, called when the  safety program is compiled, in order to generate an executable safety program from the safety program programmed by the user.

Category

Category in accordance with ISO 13849-1:2015 or EN ISO 13849-1:2015 With SIMATIC Safety, use in  safety mode up to category 4 is possible.

Channel fault

Channel-specific fault, such as a wire break or short circuit.

CPU-wide

In the context of F-I/Os, "CPU-wide" means all F-I/Os assigned to an F-CPU: Central F-I/O of this F-CPU as well as F-I/Os for which the F-CPU is DP master/IO controller and assigned F-I/O in a shared device. An F-I/O that is addressed using I-slave-slave communication is assigned to the F-CPU of the I-slave and not to the F-CPU of the DP master / IO controller.
In the context of safety-related CPU-CPU communication, "CPU-wide" encompasses all the safety-related communication connections that are configured in an F-CPU.

CRC

Cyclic Redundancy Check  CRC signature

CRC signature

The validity of the process data in the  safety message frame, the correctness of the assigned address relationships, and the safety-related parameters are validated by means of a CRC signature contained in the safety message frame.

664

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

DB for F-runtime group communication
-> F-DB for safety-related communication between F-runtime groups of a safety program.

Depassivation
 Reintegration

Disabled safety mode
Temporary deactivation of  safety mode for test purposes, commissioning, etc.
The following actions are possible only in disabled safety mode:
 Downloading changes of the  safety program to the -> F-CPU during ongoing operation (in RUN mode)
 Test functions such as "Modify" or other write access to data of the  safety program (with limitations)
Whenever safety mode is deactivated, the safety of the system must be ensured by other organizational measures, such as operation monitoring and manual safety shutdown.

Discrepancy analysis
Discrepancy analysis for equivalence or non-equivalence is used for fail-safe inputs to detect errors caused by the time characteristic of two signals with the same functionality. The discrepancy analysis is initiated when different levels are detected in two associated input signals (when testing for non-equivalence: the same level). On expiration of an assignable period ( discrepancy time), a check is made to determine whether the difference in levels (for non-equivalence testing, the same level) has disappeared after an assignable time period, the so-called discrepancy time. If not, there is a discrepancy error. The discrepancy analysis is performed between the two input signals of the 1oo2 evaluation of the sensors ( sensor evaluation) in the fail-safe input.

Discrepancy time
Assignable time for the  discrepancy analysis. If the discrepancy time is set too high, the fault detection time and  fault reaction time are prolonged unnecessarily. If the discrepancy time is set too low, availability is decreased unnecessarily because a discrepancy error is detected when, in reality, no error exists.

DP/DP coupler

Device for coupling two PROFIBUS DP subnets required for master-master communication between  safety programs in different  F-CPUs in SIMATIC Safety and S7 Distributed Safety.

Expert

The acceptance of a system, i.e., the safety-related acceptance test of the system, is usually carried out by an independent expert (for example, from TÜV).

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

665

Glossary
Fail-safe GSD based DP slaves
Fail-safe GSD based DP slaves are standard slaves that are operated on PROFIBUS with the DP protocol. They must operate in accordance with IEC 61784-1:2010 (Fieldbus profiles) and the PROFIsafe bus profile. A GSD file is used for their configuration.
Fail-safe GSD based I/O devices
Fail-safe GSD based I/O devices are standard devices that are operated on PROFINET with the I/O protocol. They must operate in accordance with IEC 61784-1:2010 (Fieldbus profiles) and the PROFIsafe bus profile in V2-MODE. A GSD file is used for their configuration.
Fail-safe I/O modules
ET 200eco modules and ET 200eco PN modules that can be used for safety-related operation ( safety mode). These modules are equipped with integrated  safety functions. They operate in accordance with IEC 61784-1:2010 (Fieldbus profiles) and the PROFIsafe bus profile.
Fail-safe modules
Fail-safe modules ET 200SP, ET 200S, ET 200pro, ET 200iSP that can be used in the ET 200SP, ET 200S, ET 200pro or ET 200iSP distributed I/O systems. Fail-safe modules S7-1500/ET 200MP, which can be used centrally in an S7-1500 or in a distributed I/O ET 200MP system. Fail-safe module S7-1200 which can be used centrally in an S7-1200 system. These modules are equipped with integrated safety functions ( Safety mode) for fail-safe operation ( Fail-safe operation). They operate in accordance with the  PROFIsafe bus profile.
Fail-safe systems
Fail-safe systems (F-systems) are systems that remain in a safe state or immediately switch to another safe state as soon as particular failures occur.
Fault reaction function
 User safety function
Fault reaction time
The maximum fault reaction time for an F-system specifies the time between the occurrence of any error and a safe reaction at all affected fail-safe outputs.

666

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

F-blocks

The following fail-safe blocks are designated as F-blocks:  those created by the user in LAD or FBD  those created by the user as  F-DBs  those selected by the user from a global library  those added automatically in the  safety program ( F-SBs,  automatically generated
F-blocks,  F-shared DB,  F-I/O DBs; instance DBs of F-FBs) All F-blocks are shown in yellow in the project tree.

F-CALL

"F-call blocks" for the  safety program in S7 Distributed Safety.

F-collective signature
The F-collective signature uniquely identifies a particular state of safety-related project data. It is important for the program identification as well as the on-site acceptance of the safety program, for example by  experts.

F-communication address signature
The F-communication address signature is formed from the names and the F-communication UUIDs of communication connections with Flexible F-Link that are used in the safety program.

F-communication DBs
Fail-safe data blocks for the  safety-related CPU-CPU communication via S7 connections  Communication with Flexible F-Link

F-compliant PLC data type (UDT)
An F-compliant PLC data type (UDT) is a PLC data type (UDT) in which you can use all data types that can be used in safety programs.

F-CPU

An F-CPU is a central processing unit with fail-safe capability that is approved for use in SIMATIC Safety and in which a  safety program can run in addition to the  standard user program.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

667

Glossary

F-DBs

Optional fail-safe data blocks that can be read-/write-accessed from anywhere within the safety program (exception: DBs for F-runtime group communication).

F-destination address
 PROFIsafe address

F-FBs

Fail-safe function blocks (with instance DBs), in which the user programs the  safety program in FBD or LAD.

F-FCs

Fail-safe FCs, in which the user programs the  safety program in  FBD or  LAD.

F-HW collective signature
The F-HW collective signature uniquely identifies a particular state of safety-related hardware configuration. The F-HW collective signature is important to document the change/non-change of the safety-related hardware configuration, for example in the context of an acceptance of changes.

F-I/O

Collective name for fail-safe inputs and outputs available in SIMATIC S7 for integration in SIMATIC Safety, among others. The following are available:   ET 200eco fail-safe I/O module   ET 200eco PN fail-safe I/O module   S7-300 fail-safe signal modules   Fail-safe modules for S7-1200   Fail-safe modules for ET 200MP   Fail-safe modules for ET 200SP   Fail-safe modules for ET 200S   Fail-safe modules for ET 200pro   Fail-safe modules for ET 200iSP   Fail-safe GSD based DP slaves   Fail-safe GSD based I/O devices

668

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

F-I/O DB

Fail-safe data block for F-CPUs to an  F-I/O in STEP 7 Safety. An F-I/O DB is automatically created for each F-I/O when the F-I/O is configured in the hardware and network editor. The F-I/O DB contains tags that the user can or must evaluate or write in the safety program as follows:
 For reintegration of the F-I/O after communication errors
 For reintegration of F-I/O after F-I/O or channel faults
 If the F-I/O must be passivated as a result of particular states of the safety program (for example, group passivation)
 For reassignment of parameters for fail-safe GSD based DP slaves/GSD based I/O devices or enabling HART communication for the F-I/O with the corresponding functionality
 In order to evaluate whether fail-safe values or process data are output

F-I/O faults

Module-related F-I/O fault, such as a communication error or parameter assignment error

F-I/Os of PROFIsafe address type 1
F-I/Os which ensure the uniqueness of the PROFIsafe address solely with the F-destination address, for example, ET 200S F-modules. The PROFIsafe address is usually assigned by DIP switches.

F-I/Os of PROFIsafe address type 2
F-I/Os which can ensure the uniqueness of the PROFIsafe address with a combination of Fsource address and F-destination address, for example, S7-1500/ET 200MP F-modules. The PROFIsafe address is usually assigned with STEP 7 Safety.

F-modules

 Fail-safe modules

F-OB

The F-OB calls the main safety block of an F-runtime group in S7-1200/1500 F-CPUs.

F-runtime group
The  safety program consists of one or two F-runtime groups. An F-runtime group is a logical construct of several associated  F-blocks. It is generated internally by the F-system. An F-runtime group consists of the following F-blocks:
 Main safety block, F-OB (S7-1200, S7-1500), if applicable  F-FBs/  F-FCs, if applicable  F-DBs,  F-I/O DBs, F-blocks of global libraries, instance DBs,  F-SBs, and  automatically generated F-blocks.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

669

Glossary

F-runtime group information DB
The F-runtime group information DB provides key information on the corresponding  Fruntime group and on the  safety program as a whole.

F-shared DB

(S7-300, S7-400) Fail-safe data block that contains all of the shared data of the  safety program and additional information needed by the F-system. The F-shared DB is automatically inserted and expanded when the hardware configuration is compiled. Using its name F_GLOBDB, the user can evaluate certain data of the  safety program.

F-SMs

 S7-300 fail-safe signal modules

F-source address
 PROFIsafe address

F-SW collective signature
The F-SW collective signature uniquely identifies a particular state of the safety program. The F-SW collective signature is important to document the change/non-change of the safety program, for example in the context of an acceptance of changes.

F-system blocks
Fail-safe system blocks that are automatically inserted and called when the  safety program is compiled in order to generate an executable safety program from the user's safety program.

F-systems

 Fail-safe systems

Hardware configuration
The hardware configuration encompasses the configuration of the standard parameters of the CPUs and standard I/Os as well as the configuration of the safety-related parameters of the F-CPUs and the I/Os.

I-device

The functionality of the "I-device" (intelligent I/O-device) of a CPU allows data exchange with an I/O-controller and thus, its use as an intelligent preprocessor of sub-processes, for example. In this case, the I-device is connected as an I/O-device to a "parent" I/O-controller.

670

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

IE/PB link

Device for coupling PROFINET IO and PROFIBUS DP-systems required, among other things, for IO-controller-I-slave communication between -> safety programs in different  F-CPUs in SIMATIC Safety.

i-parameter

Individual parameters of  fail-safe GSD based DP slaves and  fail-safe GSD based I/O devices

I-slave

The functionality of the "I-slave" (intelligent DP slave) of a CPU allows data exchange with a DP master and, thus, its use as an intelligent preprocessor of sub-processes, for example. In this case, the I-slave is connected as a DP slave to a "parent" DP master.

Main safety block
"Introductory F-block" for fail-safe programming of the  safety program in STEP 7 Safety. The main safety block is an  F-FB or  F-FC that the user assigns to the calling F-OB (S71200, S7-1500) or block (OB, FC, FB) (S7-300, S7-400) of an  F-runtime group.
The main safety block contains the safety program and any calls of other  F-FBs/F-FCs for program structuring.

Network-wide

A network consists of one or more subnets. "Network-wide" means beyond the boundaries of the subnet. In PROFIBUS, a network includes all nodes accessible via PROFIBUS DP. In PROFINET IO, a network includes all nodes accessible via RT_Class_1/2/32 (Ethernet/WLAN/Bluetooth, Layer 2) and if applicable RT_Class_UDP (IP, Layer 3).

Passivation

When passivation occurs in an  F-I/O with inputs, the  F-system provides the safety program with fail-safe values (0) instead of the process data pending at the fail-safe inputs in the PII.
When passivation occurs in an F-I/O with outputs, the F-system transfers fail-safe values (0) to the fail-safe outputs instead of the output values in the PIQ provided by the safety program.

PL
Performance Level (PL) in accordance with ISO 13849-1:2015 or EN ISO 13849-1:2015 With SIMATIC Safety, use up to Performance Level (PL) e is possible in  safety mode.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

671

Glossary

PN/PN coupler

Device for coupling two PROFINET IO systems required for IO controller-IO controller communication between  safety programs in different  F-CPUs in SIMATIC Safety and S7 Distributed Safety.

PROFIsafe

Safety-related bus profile of PROFIBUS DP and PROFINET IO for communication between the  safety program and the  F-I/O in an  F-system. See IEC 61784-3-3:2010 or PROFIsafe ­ Profile for Safety Technology on PROFIBUS DP and PROFINET IO; Order No: 3.192 (V2.6.1).

PROFIsafe address
The PROFIsafe address (code name according to IEC 61784-3-3:2010) is used for protection of standard addressing mechanisms, such as IP addresses. The PROFIsafe address consists of an F-source address and an F-destination address. Each  F-I/O therefore has two address parts, an F-source address and an F-destination address.
The F-source address is automatically assigned and is displayed for fail-safe GDS based DP slaves/fail-safe GSD based I/O devices and F-modules ET 200SP, F-modules ET 200MP, ET 200eco PN and F-modules S7-1200. The F-source address for F-modules ET 200S, ET 200eco, ET 200pro, ET 200iSP and F-SMs S7-300 is always 1. For F-modules ET 200SP/ET 200MP, the F-source address corresponds to the "Central F-source address" parameter of the assigned F-CPU.
You need to configure the F-destination address in the hardware and network editor. You assign the F-destination address for the ET 200S, ET 200eco, ET 200pro, ET 200iSP and FSMs S7-300 F-modules with a switch. For F-modules ET 200SP and F-modules ET 200MP, ET 200eco PN assign the PROFIsafe address in the hardware and network editor. For S71200 F-modules, the F-destination address is automatically assigned by the F-system.

Program signature
 collective F-signature

Project data

The project data includes the  hardware configuration and the  user program.

672

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

Reintegration

The switchover from fail-safe values (0) to process data (reintegration of an  F-I/O) takes place automatically or following user acknowledgment in the F-I/O DB. The reintegration method depends on the following:
 The reason for  passivation of the F-I/O/channels of the F-I/O
 The parameter assignment in the  F-I/O DB or in the configuration itself (for example, ET 200MP fail-safe modules on an S7-1500 F-CPU and S7-1200 fail-safe modules on an S7-1200 F-CPU)
Following reintegration for an  F-I/O module with inputs, the process data pending at the inputs in the PII are provided again for the safety program. For an F-I/O with outputs, the Fsystem again transfers the output values provided in the PIQ in the safety program to the fail-safe outputs.

RIOforFA Safety
Remote IO for Factory Automation with PROFIsafe; profile for F-I/O

S7-300 fail-safe signal modules
Fail-safe signal modules of the S7-300 module series that can be used for safety-related operation ( Safety mode) as centralized modules in an S7-300 or as distributed modules in the ET 200M distributed I/O system. The fail-safe signal modules are equipped with integrated  safety functions. They operate in accordance with the  PROFIsafe bus profile.

S7-PLCSIM

The S7-PLCSIM application enables you to execute and test your program on a simulated automation system on your programming device or PC. Because the simulation takes place completely in your programming device or PC, you do not need any hardware (CPU, I/O).

Safe state

The basic principle of the safety concept in  fail-safe systems is the existence of a safe state for all process variables. For digital  F-I/O that conform to IEC 61508:2010, this is always the value "0".

Safety Administration Editor The Safety Administration Editor provides support for the main tasks of your safety program.

Safety function

Mechanism integrated in the  F-CPU and  F-I/O that allows them to be used in -> fail-safe systems.
According to IEC 61508:2010, a function that is implemented by a safety device in order to maintain the system in the safe state or bring the system to a safe state in the event of a specific fault. (fault reaction function -> user safety function)

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

673

Glossary

Safety message frame
In  safety mode, data are transferred in a safety message frame between the  F-CPU and  F-I/O, or between the F-CPUs in safety-related CPU-CPU communication.

Safety mode

1. Operating mode of  F-I/O in which  safety-related communication can take place using  safety message frames.
2. Operating mode of the safety program. In safety mode of the safety program, all safety mechanisms for error detection and fault reaction are enabled. In safety mode, the safety program cannot be modified during operation. Safety mode can be disabled by the user ( disabled safety mode).

Safety program
Safety-related user program

Safety protocol
 Safety message frame

Safety summary
The safety summary provides documentation of the safety-related project data which supports you during acceptance of the system.

Safety-related communication
Safety-related communication is used to exchange fail-safe data.

Safety-related hardware configuration
The safety-related hardware configuration includes the configuration of the safety-related parameters of the F-CPU as well as the configuration of the F-I/O devices.

Safety-related project data
The safety-related project data includes the safety-related hardware configuration as well as the  safety program.

Sensor evaluation
There are two types of sensor evaluation:
 1oo1 evaluation ­ sensor signal is read once
 1oo2 evaluation - sensor signal is read twice by the same  F-I/O and compared internally

674

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Glossary

Shared device

The "Shared Device" functionality enables distribution of the submodules of an IO-device between different IO-controllers.

Signature

 collective F-signatures

SIL
Safety integrity level SIL in accordance with IEC 61508:2010. The higher the Safety Integrity Level, the more rigid the measures for prevention of systematic faults and for management of systematic faults and random hardware failures.
With SIMATIC Safety, up to Safety Integrity Level SIL3 is possible in safety mode.

Standard communication
Communication used to exchange non-safety-related data

Standard mode
Operating mode of  F-I/O in which  safety-related communication between the F-CPU and the F-I/O by means of  safety message frames is not possible; only  standard communication is possible in this operating mode.

Standard user program
Non-safety-related user program

Startup of F-system
With an  F-CPU, the standard user program starts up in the normal way. When the  safety program is started up, all F-DBs are initialized with the values from the load memory - as is the case with a cold restart. This means that saved error information is lost.
The  F-system performs an automation  reintegration of the  F-I/O.

User program

The user program comprises the  standard user program and the  safety program.

User safety function
The  safety function for the process can be provided through a user safety function or a fault reaction function. The user only has to program the user safety function. In the event of an error, if the  F-system can no longer execute its actual user safety function, it executes the fault reaction function: for example, the associated outputs are disabled, and the  FCPU switches to STOP mode, if necessary.

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

675

Glossary

Value status

The value status is additional binary information for a channel value. The value status is entered in the process image input and provides information on the validity of the channel value.
1: A valid process data is output for the channel value.
0: A fail-safe value is output for the channel value.

Versioned instruction
Instruction for which a version is displayed in the "Version" column of the "Instructions" task card:

676

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Index

=
=, 444
A
ABS, 570 Acceptance, 75
of safety-related changes, 396 of system, 376 Acceptance of safety-related changes, 396 Access To tags of F-I/O DB, 184 Access permission Canceling, 111 Setting up for the safety program, 106 Setup for F-CPU, 110 Validity, 106, 111 Access protection, 103, 104 ACK_GL, 518 ACK_NEC, 177 ACK_OP, 619 ACK_REI, 178 ACK_REQ, 182 Acknowledgment Channel fault, 53 Fail-safe, 619 Add, 554 ADD, 554 Address assignment Rules, 67, 68 AND, 439, 607, 607 Approvals, 4 Assignment, 423, 444
B
Behavior After communication errors, 188 After F-I/O or channel faults, 190 After startup, 186
Bit logic operation AND, 439 Assignment, 423, 444 EXCLUSIVE OR, 442 Insert binary input, 418

Invert RLO, 419, 422 Normally closed contact, 421 Normally open contact, 420 OR, 441 Reset output, 424, 445 Reset/set flip-flop, 429, 450 Scan operand for negative signal edge, 433, 454 Scan operand for positive signal edge, 431, 452 Scan RLO for negative signal edge, 437, 457 Scan RLO for positive signal edge, 435, 456 Set output, 425, 446 Set/reset flip-flop, 427, 448 Bit memory, 205 Block size of automatically generated F-blocks, 324 BO_W, 586 Breakpoints, 365
C
Category, 21 Central F-source address, 48 Change
Acceptance, 396 Detecting, 396 of the safety program in RUN mode, 371 Changing Data of the safety program, 363 Channel fault, 52, 190 Acknowledgment, 53 Checking the program version, 394 Checklist, 658 Checks through the F-system, 64 CMP <, 552 CMP <=, 548 CMP <>, 544 CMP ==, 542 CMP >, 550 CMP >=, 546 Code review of the safety program, 378 Collective F-signature, 360 Communication Monitoring time, 652, 654 Standard user program and safety program, 205, 207 Communication error, 188, 631 SENDDP/RCVDP, 631

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

677

Index

Comparator operations Equal, 542 Greater or equal, 546 Greater than, 550 Less or equal, 548 Less than, 552 Not equal, 544
Comparing Safety programs, 354
Compiling errors Alarms, 323
Completeness Checking the safety summary, 379
Configuration control, 56 Configuring
Fail-safe GSD based DP slaves, 76 Fail-safe GSD based I/O devices, 76 F-CPU, 46 F-I/O, 51 of F-components, 45 Overview, 41 Shared device, 61 Special features, 45 constants Boolean, 125 FALSE, 125 TRUE, 125 Conversion operations Convert BOOL to WORD, 586 Convert value, 584 Convert WORD to BOOL, 589 Scale values, 592 Scale values to data type DINT, 595 Convert Data, 586, 589 Value, 584 CONVERT, 584 Convert data, 586, 589 Conveyor equipment, stopped, 474 Correctness Hardware configuration, 383 Safety-related CPU-CPU communication, 391 Count Down, 537 Up, 535 Up and down, 539 Count down, 537 Count up, 535 Count up and down, 539 CPU-CPU communication, 41 Options for safety-related, 41 Overview of safety-related, 209, 273, 319
678

Create twos complement, 567 CTD, 537 CTU, 535 CTUD, 539 Cycle time
F-runtime group, 142, 146 Maximum, 650 Monitoring time for, 652
D
Data block, 205 Data exchange
between standard user program and safety program, 204 Data transfer From safety program to standard user program, 205 From standard user program to safety program, 207 Data types For safety program, 122 DB access, fully qualified, 126, 184 DB access, non-fully qualified, 127 Deleting F-blocks, 137 DIAG ESTOP1: Emergency STOP up to Stop Category 1, EV1oo2DI: 1oo2 evaluation with discrepancy analysis, FDBACK: Feedback monitoring, F-I/O DB, 183 MUT_P: Parallel muting, MUTING: Muting, RCVS7, 642 SENDDP/RCVDP, 631 SENDS7, 642 SFDOOR: Safety door monitoring, TWO_H_EN: Two-hand monitoring with enable, Diagnostic parameters, 407 Diagnostic tag, 407 Diagnostics Fail-safe system, 407 Guide, 408, 409 DISABLE, 181 Disabling F-capability, 46 Safety mode, 360 Discrepancy error, 474 DIV, 563 Divide, 563 Downloading Hardware configuration, 325
SIMATIC Safety - Configuring and Programming
Programming and Operating Manual, 10/2019, A5E02714440-AK

Index

Safety program, 325 Standard user program, 325 Downloading Standard user program, 325 DP/DP coupler, 222, 285
E
Empty box Inserting a LAD element, 412 Inserting an FBD element, 416
EN, 121 Enabling
F-capability, 46 Safety mode, 361 Enabling/disabling F-capability, 46 ENO, 121 ESTOP1, 459 EV1oo2DI, 496 EXCLUSIVE OR, 442, 611 Executing a system acceptance, 376
F
F_CRC_Seed, 78 F_IO_StructureDescCRC, 76, 78 F_Passivation, 78 Fail-safe acknowledgment, 619, 624 Fail-safe GSD based DP slaves
Configuring, 76 Fail-safe GSD based I/O devices
Configuring, 76 Fail-safe system, (See SIMATIC Safety) Fail-safe value, 151, 172 F-array
read, 574, 577 Fault reaction function, 9, 22 FBD element
Inserting, 416 F-block
Copying, 161 Deleting, 137 F-change history, 375 F-channel faults, fail-safe value output, 172 F-Communication UUID, 98 F-compliant PLC data type (UDT), 128 F-components, 41 F-CPU, (See F-CPU), 41, 110 Configuring, 46 Going to STOP mode, 401 migrating, 34 Setting up access permission, 110

F-cycle time, monitoring time, 652 F-DB, 119
Creating, 160 for F-runtime group communication, 150 F-shared DB, 157 FDBACK, 504 F-destination address, 66, 68 F-destination address range, 47 F-FB, 119, 160 F-FC, 119, 160 F-I/O, 41 addressing, 166 Configuring, 51 Reintegration, 173, 186, 188, 190 Removing and inserting during operation, 404 F-I/O access, 166 During operation, 371 Restrictions in RUN mode, 372 Via the process image, 166, 256 F-I/O DB, 119, 175 Access to, 174, 184 Name, 53, 184 Number, 53, 184 Structure of DIAG, 183 F-I/O faults, fail-safe value output, 172 F-I/O or channel faults, 190 File type conversion, 124 Firmware update, 404 First steps, 40 Flexible F-Link, 98, 154, 312 F-monitoring time, 654 Flip-flop Reset/set, 429, 450 Set/reset, 427, 448 F-monitoring time, 49, 54, 650 F-communication, 98 F-OB, 53, 119, 145 Move, 161 Form absolute value, 570 F-parameters, 45 F-runtime group, 115, 117, 119 Changing, 159, 160 Default setting, 141, 145 Defining, 142, 146 Deleting, 159 Maximum cycle time, 142, 146, 654 Rules, 139 Safety-related communication, 150 F-runtime group communication, 142, 146, 150, 154 Monitoring time, 654 Restrictions in RUN mode, 371 F-runtime group information DB, 158

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

679

Index

F-runtime groups signature, 158 F-shared DB, 157, 205, 360 F-source address, 48, 68 F-system
Checks, 64 Monitoring time, 649 Response time, 649 Fully qualified DB access, 126, 184 Function test of the safety program, 359, 378
G
Getting Started, 40 Global data block
Open, 605 Group diagnostics for fail-safe signal modules, 55 Group passivation, 194 GSD files
Configuration, 76
H
Hardware components, 23 Hardware configuration, 45
Checking for correctness, 383 Downloading, 325 HW identifier, 631
I
IE/PB link, 257, 309 Image
Creating, 343 running, 343 Implementation of user acknowledgment, 201 Importing of images, 343 Insert binary input, 418 Installation STEP 7 Safety, 28, 29, 29 Instance DB, 127, 161 Instructions for the safety program, 120 Get status bit OV, 630 Testing for acceptance, 380 IPAR_EN, 179 IPAR_OK, 182
J
JMP, 598

JMPN, 600 Jump
If RLO = 0, 600 If RLO = 1, 598 Jump label, 602
L
LABEL, 602 LAD element
Inserting, 412 Life cycle of fail-safe automation systems, 658 Light curtain, 474 Local data, 126
M
Main safety block, 119, 161 Math functions
Add, 554 Create twos complement, 567 Divide, 563 Form absolute value, 570 Multiply, 560 Subtract, 557 Maximum cycle time, 650, 654 Memory reset, 363 Migrating projects from S7 Distributed Safety, 30 Migration F-CPU, 34 from S7 Distributed Safety, 30, 261 Printout, 358 Modifying, 359 Safety program, 363, 363 Monitoring, 359 Safety program, 363, 363 Two-hand monitoring, 465, 468 Monitoring time, 649, 650 Communication between F-CPU and F-I/O, 652 Communication between F-CPUs, 654 Communication between I-salve and slave, 652 F-cycle time, 652 Move Move value, 572 Read F-array, 574, 577 Write value indirectly to an F-DB, 579 MOVE, 572 Move operations Read value indirectly from an F-DB, 582 MUL, 560

680

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Index

Multiply, 560 MUT_P, 485 MUTING, 474
Structure of DIAG, 474 Muting operation
With 4 muting sensors, 474 With reflection light barriers, 474
N
N, 433, 454 N_TRIG, 437, 457 NEG, 567 Network
Inserting, 411, 415 Normally closed contact, 421 Normally open contact, 420 NOT, 422
O
Off delay, 530 Offline password, 106 Offline-online comparison of safety programs, 354 On delay, 525 Online password, 106 Operand
Scan for negative signal edge, 433, 454 Scan for positive signal edge, 431, 452 Operand area For safety program, 123 Operating principle RCVDP, 631 RCVS7, 642 SENDDP, 631 SENDS7, 642 Operating system update, 404 Operational safety of the system, 9 OPN, 605 Option handling, 56 OR, 441, 609, 609 Output Reset, 424, 445 Set, 425, 446 OV, 627, 629, 630
P
P, 431, 452 P_TRIG, 435, 456 Parameter types, 122

Parameters, 485 Safety-related, 45
PASS_ON, 177 PASS_OUT, 181 Passivation
Channel-granular, 52 F-I/O, 185 Output of fail-safe values, 172 Passivation of F-I/O, 185 After communication errors, 188 After F-I/O or channel faults, 190 After startup, 186 Group passivation, 194 Password, 104, 361 F-CPU, 110 Offline, 106 Safety program, 106 Performance level, 21 Plausibility check, 207 Data transfer from standard program to safety program, 394 PLC data type F-compliant, 128 PLCSIM, 359, 363 PN/PN coupler, 212, 276 Printing Project data, 357 Process image, 53, 166, 205 Process safety time, 655 Productive operation, 103 PROFIBUS DP, 23 PROFINET IO, 23 PROFIsafe address assign, 71, 74 Assigning, 70, 77 Changing, 75 Recommendations, 63 PROFIsafe address type, 41 PROFIsafe address type 1, 47 PROFIsafe address type 2, 48 PROFIsafe destination address, 47 Program control operations Jump if RLO = 0, 600 Jump if RLO = 1, 598 Jump label, 602 Open global data block, 605 Return, 604 Programming Group passivation, 194 Overview, 114 Plausibility checks, 207 Startup protection, 165

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

681

Index

Programming an F-communication DB, 261 Project data
Printing, 357 Projects
upgrading, 36, 36, 38 Proof test, 404 Protection level of the F-CPU, 50 Pulse
Generate, 520

RS, 429, 450 Rules
Address assignment, 67, 68 for testing, 363 RUN, 371 RUN mode, 371
S

Q
QBAD, 181, 184, 185 QBAD_I_xx, 181 QBAD_O_xx, 181
R
R, 424, 445 RCVDP, 216, 217, 227, 228, 235, 236, 241, 242, 280, 281, 289, 290, 297, 298, 305, 306, 360, 631
Behavior in the event of communication errors, 631 Receiving data, 631 Structure of DIAG, 631 Timing diagrams, 631 RCVS7, 260, 261, 360, 642 RD_ARRAY_DI, 574, 577 RD_FDB, 582 Recommendations PROFIsafe address, 63 Reflection light barriers, 474 Reintegration of F-I/O, 173, 177, 185 After communication errors, 188 After F-I/O or channel faults, 190 After startup of F-system, 186 Programming a user acknowledgment, 196, 201 with group passivation, 194 Replacing Software components, 404 Response time of F-system, 649, 655 Restart inhibit MUT_P, 485 MUTING, 474 On interruption of the light curtain, 474, 485 Restart protection, 165 RET, 604 Return, 604 RLO Invert, 419, 422 Scan for negative signal edge, 437, 457 Scan for positive signal edge, 435, 456

S, 425, 446 S7 connection
Safety-related communication, 258 S7-PLCSIM, 359, 363
testing with, 366 Safety Administration Editor, 79 Safety function, 22
Calculation of response time, 655 Example, 22 Safety functions ACK_GL: Global acknowledgment of all F-I/O in an F-runtime group, ESTOP1: Emergency STOP up to Stop Category 1, EV1oo2DI: 1oo2 evaluation with discrepancy analysis, FDBACK: Feedback monitoring, MUT_P: Parallel muting, MUTING: Muting, SFDOOR: Safety door monitoring, TWO_H_EN: Two-hand monitoring with enable, TWO_HAND: Two-hand monitoring, Safety integrity level, 21 Safety mode Disabling, 360 Enabling, 361 Safety program, 23 Automatic generation, 50 Code review, 378 Comparing, 354 Data types, 122 Deleting, 159 Downloading, 325 Function test, 359 Instructions, 120 Modifying, 359, 363, 363 Monitoring, 359, 363, 363 Online consistency, 393 Output of fail-safe values, 172 Password, 106 Structuring, 115, 117 Testing, 363 Work memory requirement, 324

682

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Index

Safety requirements, 9, 21

Sending and receiving data via S7 connections, 642

Safety summary, 75, 357, 377

SENDS7, 260, 261, 360, 642

Safety-related communication between F-runtime

SFDOOR, 511

groups, 150

Shared device

Safety-related communication via S7 connections

Configuring, 61

Configuring, 258

Shift and rotate

Data transfer limits, 265

Shift left, 616

Safety-related CPU-CPU

Shift right, 613

communication, 41, 209, 273, 319, 642

Shift left, 616

Checking for correctness, 391

Shift right, 613

F-communication DB, 261

SHL, 616

Options, 41

SHR, 613

RCVDP, 631

Signature, 38

Restrictions in RUN mode, 371

SIL, 21

SENDDP, 631

SIMATIC Safety, 3, 21

Safety-related IO controller-I-device communication

Configuring and programming software, 23

Configuring, 232, 294, 320

Hardware and software components, 23

Data transfer limits, 238, 301

Principles of safety functions, 22

Programming, 236, 298

Product overview, 21

Safety-related IO controller-IO controller

Safety program, 23

communication

Simulation, 359

Configuring, 212, 276

Simulation devices in the F-system, 401

Data transfer limits, 221, 285

Slice access, 124

Programming, 217, 281

Software components, 23, 404

Safety-related IO controller-I-slave

Software requirements, 28, 29, 29

communication, 257, 309

SR, 427, 448

Safety-related I-slave-I-slave communication

Startup, 165, 186

Configuring, 246

Startup characteristics

Data transfer limits, 245

MUT_P, 485

Programming, 242

RCVDP, 631

Safety-related I-slave-slave communication

RCVS7, 642

Configuring, 251

SENDDP, 631

Data transfer limits, 256

SENDS7, 642

Safety-related master-I-slave communication

Startup protection, 165

Configuring, 239, 302

Status bit OV

Data transfer limits, 245, 308

Get, 627, 630

Programming, 242, 306

Get negated, 629

Safety-related master-master communication

STEP 7 Safety, 23

Configuring, 222, 285

Additional support, 3

Data transfer limits, 232, 294

Basic knowledge, required, 3

Programming, 228, 290

Documentation, 4

Safety-related parameters, 45

Information landscape, 4

Scale

Service & Support, 3

Values, 592, 595

Writing conventions, 7

SCALE, 592

STOP, 401

SCALE_D, 595

STP, 401

SENDDP, 216, 217, 227, 228, 235, 236, 241, 242, 280, Structure of the safety program, 115, 117

281, 289, 290, 297, 298, 305, 306, 360, 631

SUB, 557

Behavior in the event of communication errors, 631 Subtract, 557

Sending data, 631

Supported configurations, 64

Structure of DIAG, 631

Timing diagrams, 631

SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

683

Index
T
Tag F-I/O DB, 175 Monitoring/modifying, 363
Testing of safety program, 363 TIMEOUT, 650, 654 Timer operations
Generate off-delay, 530 Generate on-delay, 525 Generate pulse, 520 Timing diagrams, 474, 485, 631 RCVDP, 631 SENDDP, 631 TOF, 530 TON, 525 TP, 520 Training center, 3 Transfer area, 275 Truth table AND, 440 EXCLUSIVE OR, 443 OR, 441 TÜV certificate, 380 TWO_H_EN, 468 TWO_HAND, 465
U
Uninstalling STEP 7 Safety, 28, 29, 29
Upgrading Projects, 36, 36, 38
User acknowledgment, 196, 201, 474 Example, 200 HMI system, 197, 198
User safety function, 3, 22
V
V2-MODE, 76 Value
Convert, 584 Move, 572 Read indirectly from an F-DB, 582 Scale, 592 Scale to data type DINT, 595 Write indirectly to an F-DB, 579 Value status, 168, 181
684

W
W_BO, 589 Watch table, 365 Wiring test, 363 Word logic operations
AND, 607 EXCLUSIVE OR, 611 OR, 609 Work memory requirement of safety program, 324 WR_FDB, 579
X
X, 442 XOR, 611
SIMATIC Safety - Configuring and Programming Programming and Operating Manual, 10/2019, A5E02714440-AK

Edition

10/2018

Function manual
SIMATIC
S7-1500
Isochronous mode
support.industry.siemens.com

SIMATIC S7-1500 Isochronous mode
Function Manual

_Pr_ef_ac_e_______________ _Do_c_um_e_n_tat_io_n _gu_id_e_______1_ _W_ha_t _is_is_oc_hr_on_o_us_m_o_de_?____2_ _Us_e_o_f is_o_ch_ro_n_ou_s_m_od_e_____3_ _Tsyi_mnc_ehs_roe_nqiu_zea_ntico_en_of_________4_ _Cmo_ond_feig_u_rin_g_is_oc_hr_on_o_us______5_ _Pmr_oodg_era_m_m_in_g_is_oc_hr_on_o_us_____6_

10/2018
A5E43884988-AA

Legal information
Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION indicates that minor personal injury can result if proper precautions are not taken.
NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products 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. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Division Digital Factory Postfach 48 48 90026 NÜRNBERG GERMANY

A5E43884988-AA  09/2018 Subject to change

Copyright © Siemens AG 2018. All rights reserved

Preface

Purpose of the documentation
This function manual provides an overview of the isochronous mode function for I/O modules that you operate isochronously:  As central I/O in a SIMATIC S7-1500  In distributed I/O systems on PROFINET IO  In distributed I/O systems on PROFIBUS DP  Jointly as central and distributed I/O on PROFINET IO The documentation supports you in the configuring and programming of isochronous mode.

Basic knowledge required
The following knowledge is required in order to understand the manual:  General knowledge of automation technology  Knowledge of the industrial automation system SIMATIC  Knowledge about the use of Windows-based computers  Knowledge about how to use STEP 7 (TIA Portal)

Scope

This documentation is the basic documentation for the SIMATIC S7-1500 automation system and all SIMATIC products from the PROFINET and PROFIBUS environments. The product documentation is based on this documentation.
The manual applies to the SIMATIC S7-1500 automation system with CPUs Firmware Version V2.6 or higher (except S7-1500 Compact CPUs and S7-1500R/H CPUs). SIMATIC STEP 7 Professional V15.1 or higher is also required.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

3

Preface

Conventions

STEP 7: We refer to "STEP 7" in this documentation as a synonym for the configuration and programming software "STEP 7 as of V15.1 (TIA Portal)" and subsequent versions. This documentation contains pictures of the devices described. The figures may differ slightly from the device supplied. You should also pay particular attention to notes such as the one shown below:
Note A note contains important information on the product, on handling of the product and on the section of the documentation to which you should pay particular attention.

Security information
Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement ­ and continuously maintain ­ a holistic, state-of-the-art industrial security concept. Siemens' products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit (https://www.siemens.com/industrialsecurity).
Siemens' products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers' exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under (https://www.siemens.com/industrialsecurity).

Isochronous mode

4

Function Manual, 10/2018, A5E43884988-AA

Preface

Siemens Industry Online Support
You can find current information on the following topics quickly and easily here:
 Product support
All the information and extensive know-how on your product, technical specifications, FAQs, certificates, downloads, and manuals.
 Application examples
Tools and examples to solve your automation tasks ­ as well as function blocks, performance information and videos.
 Services
Information about Industry Services, Field Services, Technical Support, spare parts and training offers.
 Forums
For answers and solutions concerning automation technology.
 mySupport
Your personal working area in Industry Online Support for messages, support queries, and configurable documents.
This information is provided by the Siemens Industry Online Support in the Internet (https://support.industry.siemens.com).

Industry Mall

The Industry Mall is the catalog and order system of Siemens AG for automation and drive solutions on the basis of Totally Integrated Automation (TIA) and Totally Integrated Power (TIP).
You can find catalogs for all automation and drive products on the Internet (https://mall.industry.siemens.com).

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

5

Table of contents

Preface ................................................................................................................................................... 3

1 Documentation guide .............................................................................................................................. 7

2 What is isochronous mode? .................................................................................................................. 12

3 Use of isochronous mode...................................................................................................................... 15

4 Time sequence of synchronization ........................................................................................................ 17

4.1

Time sequence of synchronization on PROFINET IO and PROFIBUS DP........................... 17

4.2

Time sequence of synchronization in the central configuration ............................................. 19

5 Configuring isochronous mode.............................................................................................................. 22

5.1

Configuring isochronous mode for distributed I/O on PROFINET IO .................................... 24

5.2

Configuring isochronous mode for central I/O in S7-1500..................................................... 26

5.3

Configuring joint isochronous operation of central and distributed I/O .................................. 30

5.4

Configuring isochronous mode for distributed I/O on PROFIBUS DP................................... 32

5.5

Configuring isochronous mode for a Motion Control application ........................................... 34

5.6

Setting the application cycle and delay time .......................................................................... 41

6 Programming isochronous mode........................................................................................................... 43

6.1

Program execution according to the IPO model .................................................................... 44

6.2

Program execution according to the OIP model .................................................................... 46

6.3

Programming of isochronous mode for Motion Control applications ..................................... 48

Glossary ............................................................................................................................................... 49

Index .................................................................................................................................................... 54

Isochronous mode

6

Function Manual, 10/2018, A5E43884988-AA

Documentation guide

1

The documentation for the SIMATIC S7-1500 automation system, for CPU 1516pro-2 PN based on SIMATIC S7-1500, and for the distributed I/O systems SIMATIC ET 200MP, ET 200SP and ET 200AL is divided into three areas. This division allows you easier access to the specific information you require.

Basic information
System manuals and Getting Started manuals describe in detail the configuration, installation, wiring and commissioning of the SIMATIC S7-1500, ET 200MP, ET 200SP and ET 200AL systems; use the corresponding operating instructions for CPU 1516pro-2 PN. The STEP 7 online help supports you in configuration and programming.
Device information
Product manuals contain a compact description of the module-specific information, such as properties, terminal diagrams, characteristics and technical specifications.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

7

Documentation guide

General information The function manuals contain detailed descriptions on general topics such as diagnostics, communication, Motion Control, Web server, OPC UA. You can download the documentation free of charge from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109742705). Changes and additions to the manuals are documented in product information sheets. You will find the product information on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/us/en/view/68052815)  ET 200SP (https://support.industry.siemens.com/cs/us/en/view/73021864)  ET 200AL (https://support.industry.siemens.com/cs/us/en/view/99494757)

Manual Collections
The Manual Collections contain the complete documentation of the systems put together in one file. You will find the Manual Collections on the Internet:  S7-1500/ET 200MP (https://support.industry.siemens.com/cs/ww/en/view/86140384)  ET 200SP (https://support.industry.siemens.com/cs/ww/en/view/84133942)  ET 200AL (https://support.industry.siemens.com/cs/ww/en/view/95242965)

"mySupport"

With "mySupport", your personal workspace, you make the best out of your Industry Online Support.
In "mySupport", you can save filters, favorites and tags, request CAx data and compile your personal library in the Documentation area. In addition, your data is already filled out in support requests and you can get an overview of your current requests at any time.
You must register once to use the full functionality of "mySupport".
You can find "mySupport" on the Internet (https://support.industry.siemens.com/My/ww/en).

"mySupport" - Documentation
In the Documentation area in "mySupport" you can combine entire manuals or only parts of these to your own manual. You can export the manual as PDF file or in a format that can be edited later.
You can find "mySupport" - Documentation on the Internet (https://support.industry.siemens.com/My/ww/en/documentation).

Isochronous mode

8

Function Manual, 10/2018, A5E43884988-AA

Documentation guide
"mySupport" - CAx data
In the CAx data area in "mySupport", you can access the current product data for your CAx or CAe system. You configure your own download package with a few clicks. In doing so you can select:  Product images, 2D dimension drawings, 3D models, internal circuit diagrams, EPLAN
macro files  Manuals, characteristics, operating manuals, certificates  Product master data You can find "mySupport" - CAx data on the Internet (https://support.industry.siemens.com/my/ww/en/CAxOnline).
Application examples
The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system separated from the focus on individual products. You will find the application examples on the Internet (https://support.industry.siemens.com/sc/ww/en/sc/2054).
TIA Selection Tool
With the TIA Selection Tool, you can select, configure and order devices for Totally Integrated Automation (TIA). This tool is the successor of the SIMATIC Selection Tool and combines the known configurators for automation technology into one tool. With the TIA Selection Tool, you can generate a complete order list from your product selection or product configuration. You can find the TIA Selection Tool on the Internet (https://w3.siemens.com/mcms/topics/en/simatic/tia-selection-tool).

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

9

Documentation guide

SIMATIC Automation Tool
You can use the SIMATIC Automation Tool to run commissioning and maintenance activities simultaneously on different SIMATIC S7 stations as a bulk operation, independently of the TIA Portal.
The SIMATIC automation tool provides a variety of functions:
 Scanning of a PROFINET/Ethernet plant network and identification of all connected CPUs
 Address assignment (IP, subnet, gateway) and station name (PROFINET device) to a CPU
 Transfer of the date and programming device/PC time converted to UTC time to the module
 Program download to CPU
 Operating mode switchover RUN/STOP
 CPU localization by means of LED flashing
 Reading out CPU error information
 Reading of CPU diagnostic buffer
 Reset to factory settings
 Updating the firmware of the CPU and connected modules
You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300).

PRONETA

With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions:
 The topology overview independently scans PROFINET and all connected components.
 The IO check is a fast test of the wiring and the module configuration of a plant.
You can find SIEMENS PRONETA on the Internet (https://support.industry.siemens.com/cs/ww/en/view/67460624).

Isochronous mode

10

Function Manual, 10/2018, A5E43884988-AA

Documentation guide

SINETPLAN

SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves. This helps to prevent problems in commissioning or failures during productive operation even in advance of a planned operation. This increases the availability of the production plant and helps improve operational safety.
The advantages at a glance
 Network optimization thanks to port-specific calculation of the network load
 Increased production availability thanks to online scan and verification of existing systems
 Transparency before commissioning through importing and simulation of existing STEP 7 projects
 Efficiency through securing existing investments in the long term and optimal exploitation of resources
You can find SINETPLAN on the Internet (https://www.siemens.com/sinetplan).

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

11

What is isochronous mode?

2

Objectives of isochronous operation
The advantages of the isochronous mode function in automation engineering can be seen in an example from everyday life.
The transmission of data corresponds to the transport of people on public transport. Assuming public transport were to operate at maximum speed while reducing stop times at the passenger terminals to absolute minimum, the last thing many potential passengers would notice of the departing contraption are its red tail lights. The overall travel time is, however, decided by the train, bus or underground-railway clock, because well adjusted timing is essential to a good service. This also applies in automation engineering. Not only fast cycles but also the coordination and synchronization of the individual cycles result in optimum throughput.

Isochronous mode

12

Function Manual, 10/2018, A5E43884988-AA

Just-In-Time

What is isochronous mode?

Figure 2-1 System cycle
The fast and reliable reaction time of a system operating in isochronous mode is based on the fact that all data are provided just-in-time. The basis for this is a constant bus cycle.
The isochronous mode function guarantees synchronization of the following at constant time intervals:
 Signal acquisition and output by the central and distributed I/O
 Signal transmission via backplane bus, PROFINET IO or PROFIBUS DP
 Program execution in the CPU in local time, in time with the constant bus cycle time PROFINET IO or PROFIBUS DP
The result is a system that acquires its input signals, processes them and outputs the output signals at constant time intervals. Isochronous mode guarantees precisely reproducible and defined process reaction times as well as constant bus cycle and synchronous signal processing for central and distributed I/O.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

13

What is isochronous mode?
Advantages of isochronous mode
The use of isochronous mode enables high-precision control loops.  Optimized control loops through constant, calculable dead times  Determinism, reliable reproducibility of reaction times  Consistent (simultaneous) reading in of input data  Consistent (simultaneous) output of output data  Oversampling for processing of fast processes thanks to higher sampling rates than the
send clock permits

Isochronous mode

14

Function Manual, 10/2018, A5E43884988-AA

Use of isochronous mode

3

An isochronous system acquires measured values and process data within a fixed system cycle, processes the signals and outputs them synchronously to the process. Isochronous mode contributes to a high control quality and increased production accuracy. With isochronous mode, the possible fluctuations of process reaction times are drastically reduced. You make use of the time-assured processing to improve machine cycle times. Even fast processes can be reliably controlled thanks to the precise time reproducibility of all sequences. Shorter cycle times increase the processing speed and help to lower production costs.
In principle, isochronous mode lends itself to being used whenever measured values must be acquired synchronously, movements must be coordinated, and process responses must be defined and carried out simultaneously. There are thus numerous applications for isochronous mode.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

15

Use of isochronous mode
Example: Measuring at multiple measurement points with isochronous mode
Automation task A camshaft production process requires precise measurement of the camshafts for quality assurance purposes. Feature For this purpose, a component is needed that can synchronously measure the positions and displacements of the cam during a rotation of the camshaft. Solution
Figure 3-1 Measuring of camshafts With use of isochronous mode, the measured values are simultaneously acquired at the various measuring points at fixed times. This yields the following sequence of operations:  Continuously rotate the camshaft  During the continuous rotation, synchronously measure the positions and cam
displacements  Process the next cam shaft Thus, during a single rotation of the camshaft, all the positions of the camshaft and the associated measured values (red) are measured synchronously. The machine cycle time improves with the same or better measuring accuracy. Advantage and benefits The time required for measurement is reduced.

Isochronous mode

16

Function Manual, 10/2018, A5E43884988-AA

Time sequence of synchronization

4

Introduction

The basic time sequence of all components involved in the synchronization is explained in the following sections: The synchronization is differentiated according to distributed configuration and central configuration in an S7-1500. You can combine isochronous I/O with non-isochronous I/O in the configuration.

4.1

Time sequence of synchronization on PROFINET IO and

PROFIBUS DP

Introduction

You can operate I/O modules in distributed I/O systems isochronously on a CPU:  On PROFINET IO, e.g. in distributed I/O systems ET 200SP, ET 200MP  On PROFIBUS DP, e.g. in distributed I/O systems ET 200S, ET 200M. Like the I/O modules, the interface modules of the I/O systems must support isochronous mode.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

17

Time sequence of synchronization 4.1 Time sequence of synchronization on PROFINET IO and PROFIBUS DP
From reading-in of input data to outputting of output data
The basic time sequence of all components involved in synchronization is explained in the following:
 Measured value acquisition in the process  Isochronous read-in of input data  Transport of input data to the IO controller/DP master (CPU) via the subnet  Further processing in the isochronous application of the CPU  Transport of output data to the outputting IO device/DP slave via the subnet  Isochronous output of output data

T_DC TI TO TV

Data cycle (Time_DataCycle) Time for reading in the input data Time for outputting the output data Configured delay time

Figure 4-1 Time sequence of synchronization on PROFINET IO/PROFIBUS DP

So that all input data is ready for transport via the subnet at the next start of the PROFINET IO-/PROFIBUS DP cycle, the start of the I/O read-in cycle is advanced by the amount of lead time TI. TI is the "flashbulb" for the inputs. All synchronized inputs are read in at this time. TI is necessary in order to compensate for analog-to-digital conversion, backplane bus times and the like. The lead time TI can be configured by STEP 7 or by you. Let the lead time TI be assigned automatically by STEP 7. With the default setting, STEP 7 ensures that a common, minimum TI is set.

Isochronous mode

18

Function Manual, 10/2018, A5E43884988-AA

Time sequence of synchronization 4.2 Time sequence of synchronization in the central configuration
The subnet transports the input data to the IO controller/DP master. The application is started synchronized to the cycle. That is, the isochronous mode interrupt OB is called after a configurable delay time TV. The user program in the isochronous mode interrupt OB defines the process response and provides the output data in time for the start of the next data cycle. The length of the data cycle (send clock/DP cycle time) is always configured by you.
TO is the time for the compensation arising from the backplane bus and the digital-to-analog conversion within the IO device/DP slave. TO is the "flashbulb" for the outputs. The synchronized outputs are output at this time. Time TO can be configured by STEP 7 or by you. Let time TO be assigned automatically by STEP 7. STEP 7 automatically calculates a common, minimum TO.

4.2

Time sequence of synchronization in the central configuration

Introduction

You can operate I/O modules isochronously downstream of an S7-1500 CPU starting with Firmware Version 2.6.
Exception: Isochronous operation of I/O modules in the central configuration is generally not possible:
 With compact CPUs of S7-1500
 With CPUs of S7-1500R/H
 With PROFINET IO and PROFIBUS DP systems on centrally configured communications processors (CPs) or communication modules (CMs)
 With communications processors (CPs) or communication modules (CMs) as I-devices or I-slaves in the central configuration
When using isochronous I/O in the central configuration, you cannot make use of the configuration control (option handling) function.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

19

Time sequence of synchronization 4.2 Time sequence of synchronization in the central configuration
From reading-in of input data to outputting of output data
The basic time sequence of all components involved in synchronization is explained in the following:
 Measured value acquisition in the process  Isochronous read-in of input data from the central I/O  Transport of input data to the CPU  Further processing in the isochronous application of the CPU  Transport of output data to the central I/O  Isochronous output of output data

T_DC TI TO TV

Data cycle (Time_DataCycle) Time for reading in the input data Time for outputting the output data Configured delay time

Figure 4-2 Time sequence of synchronization in the central configuration

So that all input data is ready for transport to the CPU at the next start of the cycle, the start of the I/O read-in cycle is advanced by the amount of lead time TI. TI is the "flashbulb" for the inputs. After that, all synchronized inputs are read in. TI is necessary in order to compensate for analog-to-digital conversion and the like. The lead time TI can be configured by STEP 7 or by you. Let the lead time TI be assigned automatically by STEP 7. With the default setting, STEP 7 ensures that a common, minimum TI is set.

Isochronous mode

20

Function Manual, 10/2018, A5E43884988-AA

Time sequence of synchronization 4.2 Time sequence of synchronization in the central configuration
The backplane bus transports the input data to the CPU. The application is started synchronized to the cycle. That is, the isochronous mode interrupt OB is called after a configurable delay time TV. The user program in the isochronous mode interrupt OB defines the process response and provides the output data in time for the start of the next data cycle. The length of the data cycle (send clock) is always configured by you. Within time TO, the data is:  Transported to the I/O module over the backplane bus  Processed in the I/O module, e.g. converted to an analog value After expiration of time TO, the data is output to the process. Time TO can be configured by STEP 7 or by you. Let time TO be assigned automatically by STEP 7. STEP 7 automatically calculates a common, minimum TO.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

21

Configuring isochronous mode

5

You can operate I/O modules isochronously both as central I/O in SIMATIC S7-1500 and as distributed I/O in a distributed I/O system.
You can also jointly operate central and distributed I/O on PROFINET IO isochronously.
The following sections describe the procedure for configuring this using examples.
Configuring at a glance
Setting parameters for isochronous operation of the I/O module
You use the properties of the I/O addresses of the corresponding I/O module to:
 Set isochronous mode for the module
 Assign the inputs and outputs of the module to a process image partition and an isochronous mode interrupt OB
The data of the process image partition is updated synchronously to the assigned OB. Isochronous mode interrupts give you the option of starting programs isochronously with the backplane bus, with the PROFIBUS DP cycle or PROFINET send clock. Isochronous mode interrupts are processed with high priority.
Setting the send clock or DP cycle time
The send clock/DP cycle time is the shortest possible transmission interval for the data exchange. In isochronous mode, the send clock/DP cycle time corresponds to data cycle T_DC.
For distributed I/O in S7-1500, you set the send clock in the properties of the CPU. For PROFINET IO, you set the send clock in the properties of the PROFINET interface of the CPU or in the sync domain. For PROFIBUS DP, you set the DP cycle time in the properties of the DP master system.
Setting the application cycle
The application cycle is a multiple of data cycle T_DC. If the runtime of the isochronous mode interrupt OB is short, the application cycle can be identical to the data cycle (= send clock/DP cycle time).
You can reduce the application cycle of the isochronous mode interrupt OB relative to the send clock of an isochronous system. Set an integer multiple of the send clock as the reducing factor.
You use the factor to reduce the CPU utilization by executing the isochronous mode interrupt OB less frequently. You set the application cycle in the properties of the isochronous mode interrupt OB.
You can find more information in the section Programming isochronous mode (Page 43).

Isochronous mode

22

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode
Setting the delay time
The delay time is the time between the start of the send clock and the start of the isochronous mode interrupt OB. During this time, the IO controller/DP master performs the cyclic data exchange with the IO devices/DP slaves.
STEP 7 sets the default delay time in such a way that the isochronous update of the process image partition automatically falls within the execution window of the application cycle.
You set the delay time in the properties of the isochronous mode interrupt OB. A shorter delay time enables you to increase the processing time for your user program in the isochronous mode interrupt OB.
Additional configurations for isochronous mode on PROFINET IO:
 Setting IRT as the RT class for the interconnected PROFINET interfaces
A precondition for isochronous operation on PROFINET IO is IRT communication (Isochronous Real Time Communication). IRT means synchronized data exchange at reserved time intervals.
 Configuring the topology of the configuration
A precondition for IRT communication is the topology configuration. In addition to the reserved bandwidth, the exchange of frames on defined transmission paths is used for further optimization of data communication. For this, the topological information of the configuration is used for planning the communication.
 Using a sync domain you assign the IO devices (sync slaves) to an IO controller (sync master) for the isochronous data exchange.
A precondition for IRT communication is a synchronization cycle for all PROFINET devices in a sync domain, for distribution of a common time base. With this base synchronization, a synchronous operation of the transmission cycle of the PROFINET devices within a sync domain is achieved.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

23

Configuring isochronous mode 5.1 Configuring isochronous mode for distributed I/O on PROFINET IO

5.1

Configuring isochronous mode for distributed I/O on PROFINET IO

Introduction

The configuring of isochronous mode for a module is described in the following for an IO device based on the ET 200MP distributed I/O system. The procedure described also applies to other distributed I/O systems (e.g., ET 200S or ET 200SP).
The IO controller is an S7-1500 CPU.

Requirements

 The network view of STEP 7 is open.
 An S7-1500 CPU has been placed (e.g. CPU 1516-3 PN/DP).
 An IM 155-5 PN HF interface module (ET 200MP) has been placed and networked with the CPU via PROFINET IO.
 All requirements for an IRT configuration are met:
­ The ports of the networked PROFINET interfaces of the CPU and interface module are interconnected (topology configuration).
­ The RT class of the PROFINET interface of the interface module is set to "IRT" (area "Advanced options > Real time settings > Synchronization").
­ The "sync master" and "sync slave" roles are assigned for the PROFINET interfaces of the CPU and interface module (in the properties of a PROFINET interface: area "Advanced options" > "Real time settings" > "Synchronization").

Isochronous mode

24

Function Manual, 10/2018, A5E43884988-AA

Procedure

Configuring isochronous mode 5.1 Configuring isochronous mode for distributed I/O on PROFINET IO
To create an isochronous connection between the I/O and user program, follow these steps: 1. Select the "IM 155-5 PN HF" in the network view of STEP 7. Change to the device view. 2. Insert an I/O module that can be operated isochronously (e.g. DI 16 x 24VDC HF). 3. Go to the "I/O addresses" area in the Inspector window of the selected I/O module.

Figure 5-1 Configuring isochronous mode on PROFINET IO
4. Make the following settings in the I/O addresses area: ­ Select the "Isochronous mode" option. ­ Select a process image partition, e.g., process image partition 1. ­ Click the "Organization block" drop-down list. Click the "Add" button or select an already existing OB. A dialog box for selecting organization blocks opens. ­ Select the "Synchronous Cycle" OB. Confirm the selection with "OK". In the case of automatic number assignment, OB 61 will be generated and opened. In the Inspector window, you can continue directly with the setting of the application cycle and delay time (Page 41) in the "Isochronous mode" area and start the programming of the OB in the instruction section.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

25

Configuring isochronous mode 5.2 Configuring isochronous mode for central I/O in S7-1500

5. If required, add additional I/O modules in the central configuration and IO devices in the hardware configuration. Adapt the configuration and the settings for the isochronous mode.
6. You want to retrieve information about calculated bandwidths or for adapting the send clock. Select the PROFINET interface in the network view and navigate to the area "Advanced options" > "Real time settings" > "Synchronization" > "Domain settings".

Reference

You can find more information on PROFINET functions, such as IRT, in the PROFINET (http://support.automation.siemens.com/WW/view/en/49948856) function manual.
You can find examples of parameter assignment and possible settings of isochronous mode for distributed I/O and drives in STEP 7 as FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109480489).

5.2

Configuring isochronous mode for central I/O in S7-1500

Introduction

The configuring of isochronous mode for a module is described in the following based on an analog input module in S7-1500. The procedure is also valid for other I/O modules that support isochronous mode.

Requirements

 The network view of STEP 7 is open.  An S7-1500 CPU has been placed (e.g. CPU 1516-3 PN/DP).

Isochronous mode

26

Function Manual, 10/2018, A5E43884988-AA

Procedure

Configuring isochronous mode 5.2 Configuring isochronous mode for central I/O in S7-1500
To create an isochronous connection between the I/O and user program, follow these steps: 1. Select the CPU 1516-3 PN/DP in the network view of STEP 7. Change to the device
view. 2. Insert an I/O module that can be operated isochronously (e.g. AI 8 x U/I HS). 3. Go to the "I/O addresses" area in the Inspector window of the selected I/O module.

Figure 5-2 Configuring isochronous mode centrally on the AI module

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

27

Configuring isochronous mode 5.2 Configuring isochronous mode for central I/O in S7-1500
4. Make the following settings in the I/O addresses area:
­ Select the "Isochronous mode" option.
­ Select a process image partition, e.g., process image partition 1.
­ Click on the "Organization block" drop-down list and click the "Add new" button or select an already existing OB. A dialog box for selecting organization blocks opens.
­ Select the "Synchronous Cycle" OB. Confirm the selection with "OK".
In the case of automatic number assignment, OB 61 will be generated and opened. The "Isochronous mode" area is selected in the Inspector window, and you can continue directly with the setting of the application cycle and delay time (Page 41) and start the programming of the OB in the instruction section.
5. If, due to the utilized modules, the isochronous system only operates with a certain send clock (e.g. 1 ms) but the process values must be sampled faster, use the oversampling function. In the example, you minimize the send clock into 4 sub-clocks using the sampling rate. In this way you sample the process values for the channels of the analog input module every 250 µs.
In the properties of the analog input module in the "Module parameters" > "AI configuration" area, set a sampling rate of 4 samples per cycle under "Oversampling".

Figure 5-3 Configuring oversampling on the AI module
6. If required, insert additional I/O modules in the device view. Adapt the configuration and the settings for isochronous mode.
7. Select the CPU 1516-3 PN/DP in the device view of STEP 7 in order to check the settings for isochronous mode.
8. Navigate to the "Isochronous mode" area in the Inspector window of the selected CPU

Isochronous mode

28

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.2 Configuring isochronous mode for central I/O in S7-1500
9. In the "Isochronous mode for local modules" area, check to determine if: ­ Isochronous mode is selected ­ "Local send clock" is selected as the synchronization type If necessary, you can adapt the send clock and times Ti/To for the isochronous readin/output of data.
10.In the "Detail overview" area, you see all modules of the configuration you can operate isochronously. Select or deselect isochronous mode for the desired modules as appropriate.

Figure 5-4 Configuring isochronous mode centrally on the CPU

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

29

Configuring isochronous mode 5.3 Configuring joint isochronous operation of central and distributed I/O

5.3

Configuring joint isochronous operation of central and distributed I/O

Introduction

You can jointly operate central I/O in S7-1500 and distributed I/O on PROFINET IO isochronously.
For the coordination and synchronization of the processing cycles of the central and distributed I/O, you set the same send clock and isochronous mode interrupt OB in STEP 7.
The system clock results from the values for the central and distributed configurations. Foremost here is the PROFINET send clock to which the central configuration is synchronized. If necessary, you must set a higher send clock for PROFINET IO, which takes the overall system into account.

Setting the same send clock for central and distributed I/O
You want to operate modules configured as central I/O in S7-1500 and modules configured as distributed I/O in ET 200MP isochronously with the same send clock.
Requirements
 You have connected distributed I/O in an ET 200MP as isochronous I/O to PROFINET IO (see section Configuring isochronous mode for distributed I/O on PROFINET IO (Page 24)).
 The IO controller is an S7-1500 CPU.
 You have connected central I/O of the S7-1500 as isochronous I/O (see section Configuring isochronous mode for central I/O in S7-1500 (Page 26)).
 You have configured the same isochronous mode interrupt OB and the same process image partition for central and distributed I/O.

Isochronous mode

30

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.3 Configuring joint isochronous operation of central and distributed I/O
Procedure 1. Navigate to the "Isochronous mode" area in the properties of the CPU. 2. In the "Isochronous mode for local modules" area, use "Use send clock of PROFINET
interface [X1]" in the "Synchronization type" drop-down list.

Figure 5-5 Setting the same send clock for central and distributed I/O
Result: The modules in the central configuration have adopted the send clock and the TI/TO values from the PROFINET interface X1.
Isochronous mode interrupt OB and process image partition
For joint isochronous operation of central and distributed I/O in a project, the following condition must be met:
Note Ensure that you have configured the same isochronous mode interrupt OB and the same process image partition for the central and distributed I/O you want to jointly operate isochronously.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

31

Configuring isochronous mode 5.4 Configuring isochronous mode for distributed I/O on PROFIBUS DP

5.4

Configuring isochronous mode for distributed I/O on PROFIBUS DP

Introduction

The configuring of isochronous mode is described in the following for a DP slave based on the ET 200S distributed I/O system. The procedure described also applies to other distributed I/O systems, e.g. for ET 200M.
The IO controller is an S7-1500 CPU.

Requirements

 The network view of STEP 7 is open.
 A CPU has been placed (e.g., CPU 1516-3 PN/DP).
 An interface module which supports isochronous mode has been placed and networked with the CPU (e.g., IM 151-1 HF).
 I/O modules have been placed (e.g. 2DI x DC24V HF and 2DO x DC24V/0,5A HF).
 Only the constant bus cycle time master is permitted as active station on the isochronous PROFIBUS DP.
 Assignment of a SYNC/FREEZE group to the DP slave is not permitted.

Isochronous mode

32

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.4 Configuring isochronous mode for distributed I/O on PROFIBUS DP
Procedure for configuring isochronous mode on the DP slave
1. Select the DP slave in the network view. Navigate to the "Isochronous mode" area in the Inspector window.
2. Enable the option for synchronization to the DP cycle for the DP slave. Default: The DP slaves get the Ti/To values from the subnet. Therefore, the values are automatically the same for all DP slaves of the DP master system.
3. In the "Detail overview", select the "Isochronous mode" option for all I/O modules you want to operate isochronously.
4. Repeat steps 1 and 3 for all DP slaves that you want to operate in isochronous mode.

Figure 5-6 Configuring isochronous mode on the DP slave
Procedure for configuring the I/O module
1. Select an I/O module in the device view. Navigate to the "I/O addresses" area in the Inspector window. ­ The option for isochronous mode is selected.
Assign the process image partition and OB to the I/O modules as described in section Configuring isochronous mode for distributed I/O on PROFINET IO (Page 24).

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

33

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application

5.5

Configuring isochronous mode for a Motion Control application

Introduction

The configuring of isochronous mode for a Motion Control application with cam output is described in the following.
You connect a SINAMICS V90 drive with a positioning axis to an S7-1500 CPU as isochronous distributed I/O.
The drive is controlled using the CPU-internal Motion Control functions.
You connect the cam output to the CPU as an isochronous cam output using technology module TM Timer DIDQ 16 x 24V.

Requirements

 The network view of STEP 7 is open.  An S7-1500 CPU has been placed (e.g. CPU 1516-3 PN/DP).

Procedure for configuring isochronous mode for a drive
For isochronous operation of a drive, you configure the drive frame as an isochronous frame. So that the CPU can control the drive, you then assign the drive to a Motion Control technology object of the CPU.
Follow these configuration steps:
1. Insert a SINAMICS V90 drive from the hardware catalog in the network view (Additional Field Devices > PROFINET IO > Drives > SIEMENS AG > SINAMICS > SINAMICS V90 PN).
2. Connect the PROFINET interface of the V90 to the PROFINET interface X1 of the CPU in the network view.
3. Change to the topology view. Interconnect the corresponding ports of the PROFINET interfaces of the devices.
4. Select the V90 and change to the device view.
5. In the properties of the V90, navigate via General > PROFINET interface > Advanced options to the "Isochronous mode" area.
6. Select the "Isochronous mode" option.

Isochronous mode

34

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application 7. In the hardware catalog, double-click on Standard Frame 3, ...
Figure 5-7 Assigning Standard Frame 3 to the V90

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

35

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application
8. In the properties of the V90, select the "Isochronous mode" option for Standard Frame 3 in the detail overview.

Figure 5-8 Assigning isochronous mode to Standard Frame 3

Isochronous mode

36

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application
9. In the project tree, navigate in the folder of the CPU to "Technology objects". 10.Insert a "Positioning axis" technology object.

Figure 5-9 Creating a positioning axis technology object

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

37

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application
11.Assign the drive V90 to the positioning axis.
Figure 5-10 Assigning the drive to the positioning axis Results: ­ As soon as an axis was created for the CPU, the MC Servo OB is automatically created and set synchronous to the PROFINET IO. ­ The drive is automatically assigned to the MC Servo OB and the TPA OB Servo process image partition when the axis is created. ­ The drive is connected as an isochronous drive.

Isochronous mode

38

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application
Procedure for configuring isochronous mode for a cam controller using a Timer technology module
For isochronous operation of a cam controller on a CPU, you configure a TM Timer technology module as an isochronous technology module. So that the CPU can control an output cam of the axis isochronously, you assign an output cam to the TM Timer technology module.
Follow these configuration steps: 1. Switch to the device view of the CPU. 2. Select technology module TM Timer DIDQ 16 x 24V from the hardware catalog. Place the
technology module in a slot to the right of the CPU. 3. The channel configuration "0 inputs, 16 outputs" and operating mode "Timer DQ" are
preset in the properties of the technology module for the individual outputs. 4. In the properties of the technology module, "I/O addresses", select the "Isochronous
mode" option. 5. Set the same send clock for central and distributed I/O. You can find more information in
the section Configuring joint isochronous operation of central and distributed I/O (Page 30). 6. In the project tree for the positioning axis, add a new output cam under "Output cams".

Figure 5-11 Assigning the output cam to the positioning axis

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

39

Configuring isochronous mode 5.5 Configuring isochronous mode for a Motion Control application
7. In the "Output cam output" area of the configuration, enable output by the technology module for the output cam. Assign a cam output.

Figure 5-12 Assigning output of the technology module to the output cam
The addresses and TPA OB Servo process image partition are automatically assigned to the technology module. Result: The cam output is configured as isochronous cam output.

Reference

You can find information on programming isochronous mode for Motion Control applications in section Programming isochronous mode.
You can find additional information on the above-mentioned OBs and their use in the STEP 7 online help.
You can find examples of parameter assignment and possible settings of isochronous mode for distributed I/O and drives in STEP 7 as FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109480489).

Isochronous mode

40

Function Manual, 10/2018, A5E43884988-AA

Configuring isochronous mode 5.6 Setting the application cycle and delay time

5.6

Setting the application cycle and delay time

Requirements

 You have created an isochronous mode configuration in STEP 7.  You have created an isochronous mode interrupt OB Synchronous Cycle (OB 6x).  The isochronous mode interrupt OB is open.

Setting the application cycle
The application cycle is a multiple of data cycle T_DC (send clock). You use the application cycle setting to reduce the CPU utilization caused by execution of the isochronous mode interrupt OB. In the following example, the OB is called only after every 2nd data cycle T_DC in the CPU.
To set the application cycle for your isochronous mode application, follow these steps:
1. Open the "Properties" dialog of the isochronous mode interrupt OB under consideration.
2. In the area navigation, click the "Isochronous mode" group .
3. Set the application cycle in "Application cycle (ms)". Open the drop-down list box and select the application cycle. The drop-down list offers multiples of data cycle T_DC as possible values for the application cycle. Data cycle T_DC is set to 2 ms in the following figure.

Figure 5-13 Setting the application cycle

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

41

Configuring isochronous mode 5.6 Setting the application cycle and delay time
Setting the delay time
The delay time is the time between the start of the send clock and the start of the isochronous mode interrupt OB. STEP 7 sets the delay time automatically to the start of the execution window by default. As a result, the isochronous mode update of the process image partition automatically falls within the execution window of the application cycle. Note that you must call the "SYNC_PI" and "SYNC_PO" instructions in the execution window of the application cycle. You can also set the delay time manually. A shorter delay time enables you to increase the processing time for your user program in the isochronous mode interrupt OB. To set the delay time for your isochronous mode application, follow these steps: 1. Open the "Properties" dialog of the isochronous mode interrupt OB under consideration. 2. In the area navigation, click the "Isochronous mode" group . 3. Clear the "Automatic setting" check box. 4. Enter your desired delay time in "Delay time (ms)".
Figure 5-14 Setting the delay time

Isochronous mode

42

Function Manual, 10/2018, A5E43884988-AA

Programming isochronous mode

6

Programming in the isochronous mode interrupt OBs
You program the isochronous section of the program exclusively in the isochronous mode interrupt OBs Synchronous Cycle (OB 6x) and, for Motion Control applications, in the OBs MC-PreServo and MC-PostServo. The isochronous mode interrupt OBs Synchronous Cycle (OB 6x) apply to the isochronous operation of modules centrally in S7-1500 and in the assigned distributed I/O systems. Because the isochronous mode interrupts are processed with high priority, only the timecritical sections of the program should be processed in the isochronous mode interrupt OB. The isochronous mode interrupt is called with a configured delay time.
Access to isochronous I/O through call of instructions
You access the isochronous I/O via a process image partition. That is, the addresses of the isochronous modules must be within one process image partition. The CPU updates the process image partitions of the isochronous I/O in the central and distributed configurations by calling the instructions SYNC_PI and SYNC_PO . These instructions are not necessary for Motion Control applications. OB MC-Servo automatically updates the process image partitions.
Note
Recommendation: To prevent inconsistent data from being returned to OB 6x, do not use the "DPRD_DAT" and "DPWR_DAT" instructions (direct data access) in the isochronous mode interrupt OB.
The "SYNC_PI" and "SYNC_PO" instructions update the process image partition only within the permitted execution window. The execution window stretches from the end of the cyclical data exchange to the point in time before the end of T_DC at which the outputs can still be copied in time. The data exchange must be started within this time window. If the execution window is violated by the processing of the "SYNC_PI" and "SYNC_PO" instructions, the instructions indicate a corresponding error message.
Program execution models
Depending on your requirements regarding reaction time and execution time of the isochronous mode interrupt OB, there are two basic models for processing the program:
 IPO model (read Inputs - Processing - write Outputs)
 OIP model (write Outputs - read Inputs - Processing)
You implement the respective model through the different call sequence of SYNC_PI and SYNC_PO in the user program.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

43

Programming isochronous mode 6.1 Program execution according to the IPO model

6.1

Program execution according to the IPO model

If the execution time of the isochronous mode interrupt OB is significantly shorter than one data cycle T_DC, use the IPO model. In the IPO model, you do not reduce the data cycle. That is, the application cycle of the isochronous mode interrupt OB is equal to data cycle T_DC.

The IPO model enables the shortest reaction times.

Programming according to the IPO model in the isochronous mode interrupt OB
For programming according to the IPO model: 1. Call the SYNC_PI instruction at the start of the isochronous mode interrupt OB. 2. Then, call the actual user program. 3. Call the "SYNC_PO" instruction at the end of the isochronous mode interrupt OB.

Table 6- 1 Sequence according to the IPO model

Step Action 1 Read in (I)
2 Process (P) 3 Output (O)

Explanation The SYNC_PI instruction reads in the inputs of the process image partition and provides them to the isochronous mode interrupt OB.
The user program in the isochronous mode interrupt OB is executed.
The SYNC_PO instruction outputs the data changed by the user program via the process image partition.

Isochronous mode

44

Function Manual, 10/2018, A5E43884988-AA

Programming isochronous mode 6.1 Program execution according to the IPO model
Signal sequence in the IPO model
The following figure shows the signal sequence in the IPO model from the acquisition and the processing in the CPU to the output of the process values:
 Execution of isochronous mode interrupt OB  "SYNC_PI" instruction  "SYNC_PO" instruction  Isochronous read-in of process values on I/O module at time TI  Isochronous output of process values on I/O module at time TO
Figure 6-1 Signal sequence in the IPO model At time TI the process values are read in isochronously on the I/O. The processing of the data in the IPO model is completed within one data cycle T_DC. The output data is always available on the I/O in the next data cycle T_DC at time TO. With the IPO model, there is a constant execution time from the "input terminal" to the "output terminal" of TI + T_DC + TO. TI + 2×T_DC + TO can be guaranteed for the process response time for asynchronous events.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

45

Programming isochronous mode 6.2 Program execution according to the OIP model

6.2

Program execution according to the OIP model

Use the OIP model in the case of execution cycles of the isochronous mode interrupt OB of different lengths, if the application cycle is greater than data cycle T_DC.

The data exchange with the process is always deterministic also in the OIP model, which means it takes place at a precisely specified time.

Programming according to the OIP model in the isochronous mode interrupt OB
For programming according to the OIP model: 1. Call the SYNC_PO instruction at the start of the isochronous mode interrupt OB. 2. Then call the SYNC_PI instruction: 3. Then, call the actual user program.

Table 6- 2 Sequence according to the OIP model

Step Action 1 Output (O)

2 Read in (I)

3

Process (P)

Explanation
The SYNC_PO instruction outputs the data that was changed by the user program in the previous cycle via the outputs of the process image partition.
The SYNC_PI instruction reads in the inputs of the process image partition of the current cycle and provides the inputs to the isochronous mode interrupt OB.
The user program in the isochronous mode interrupt OB is executed.

Isochronous mode

46

Function Manual, 10/2018, A5E43884988-AA

Programming isochronous mode 6.2 Program execution according to the OIP model
Signal sequence in the OIP model
The following figure shows the signal sequence in the OIP model from the acquisition of process values and the processing in the CPU to the output of the process values: The application cycle is twice as long as data cycle T_DC in this example.



Execution of isochronous mode interrupt OB



"SYNC_PI" instruction



"SYNC_PO" instruction



Isochronous read-in of process values on I/O module at time TI



Isochronous output of process values on I/O module at time TO

Figure 6-2 Signal sequence in the OIP model

At time TI the process values are read in isochronously on the I/O. The data is processed over 2 application cycles in the OIP model. The output data is always available on the I/O in the following application cycle at time T_DC + TO.
With the IPO model, there is a constant execution time from the "input terminal" to the "output terminal" of TI + application cycle + T_DC + TO.
TI + 2 x application cycle + T_DC + TO can be ensured as the process reaction time.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

47

Programming isochronous mode 6.3 Programming of isochronous mode for Motion Control applications

6.3

Programming of isochronous mode for Motion Control applications

MC-Servo, MC-PreServo and MC-PostServo OBs
The CPU-internal Motion Control functions are to control a drive. When an axis is created in the CPU, the MC Servo OB is automatically created in the user program. This OB contains an automatic update of the process image partitions.
If user programs are to be processed synchronized to the MC-Servo OB, integrate the user programs in the MC PreServo or MC PostServo OBs. The SNYC_PI and SYNC_PO instructions are not necessary.
The process image partitions are always updated as follows:
 The inputs are read prior to processing the MC-PreServo OB.
 The outputs are output after processing the MC-PostServo OB.
The runtime of the MC Servo OB must never be longer than the send clock of the isochronous PROFINET IO system. When the runtime of the MC-Servo OB reaches the length of the send clock, you must:
 reduce the application cycle in the properties of the MC-Servo OB
and
 extend the send clock in the properties of the PROFINET interface of the CPU
Note
The reduction ratio of the MC-Servo OB also influences the axis control of the Axis technology object.
Interferences at the axis may not be compensated for satisfactorily by a reduction ratio that is set too high.

Reference

You can find additional information on the above-mentioned OBs and their use in the STEP 7 online help.
You can find examples of parameter assignment and possible settings of isochronous mode for distributed I/O and drives in STEP 7 as FAQs on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109480489).

Isochronous mode

48

Function Manual, 10/2018, A5E43884988-AA

Glossary

Analog-to-digital conversion
Conversion of analog input signals into digital signals for processing in the CPU.

Application, isochronous
User program in the isochronous mode interrupt OB. The user program in the isochronous mode interrupt OB ensures the isochronous and consistent updating of the assigned process image participation.

Automation system
Programmable logic controller for the open-loop and closed-loop control of process chains in process and production engineering. The automation system consists of different components and integrated system functions depending on the automation task.

Backplane bus

The backplane bus is a serial data bus for module intercommunication and the distribution of the necessary power to the modules.

Bus
A bus is a transmission medium that interconnects several devices. Data transmission can take place electrically or via optical fiber, both in series and in parallel.

CPU

Central Processing Unit - Central module of the S7 automation system with a control and arithmetic unit, memory, operating system and interface for programming device.

Delay time

In isochronous mode, the delay time is the time between the send clock and the start of the isochronous mode interrupt OB. During this time, the IO controller/DP master performs the cyclic data exchange with the IO devices/DP slaves.

Determinism

Determinism means that a system responds in a predictable (deterministic) manner.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

49

Glossary

Direct access, direct data access
As an alternative to access via the process image, you also have direct read and write access to the I/O, if this is necessary for programming reasons. A direct (write) I/O access also writes to the process image. This prevents a subsequent output of the process image from overwriting the value written by direct access.

Distributed I/O system
System with I/O modules at a distance from the CPU controlling them.

DP master

A master that behaves in accordance with EN 50170, Part 3, is called a DP master.  See also Master

DP slave

A slave operated on PROFIBUS with the PROFIBUS DP protocol and in accordance with EN 50170, Part 3 is called a DP slave.
 See also Slave

Execution window
The "SYNC_PI" and "SYNC_PO" instructions can update the process image partition only within the permitted execution window in isochronous mode. The execution window refers to the time period during which a call of the SYNC_PI and SYNC_PO instructions is possible, i.e. from the end of the cyclic data exchange until the point in time before the end of data cycle T_DC at which the outputs can still be transferred to the I/O in time. In STEP 7 the delay time is preset to the start of the execution window. A violation of the execution window is signaled by an error message at the block call.

I/O modules

All modules that can be operated with a CPU or an interface module.

I-device

The "I-device" (intelligent IO device) functionality of a CPU allows it to exchange data with an IO controller and thus to be used as an intelligent preprocessing unit of sub-processes. In its role as an IO device, the I-device is connected to a "higher-level" IO controller.

Interface module
Module in the distributed I/O system. The interface module connects the distributed I/O system to the CPU (IO controller) via a fieldbus and processes the data for and from I/O modules.

Isochronous mode

50

Function Manual, 10/2018, A5E43884988-AA

Glossary

IO controller, PROFINET IO controller
Central device in a PROFINET system, usually a classic programmable logic controller or PC. The IO controller sets up connections to the IO devices, exchanges data with them and thus controls and monitors the system.

IO device, PROFINET IO device
Distributed I/O device of a PROFINET system that is monitored and controlled by an IO controller (e.g. distributed inputs/outputs, valve blocks, frequency converters, switches).

IRT
IRT is a synchronized transmission method for the cyclic exchange of IRT data between PROFINET devices. A reserved bandwidth within the send clock is available for the IRT data. The reserved bandwidth guarantees that the IRT data can be transferred at reserved, synchronized intervals without being affected by other higher network loads (e.g. TCP/IP communication or additional real-time communication).

I-slave

The "I-slave" functionality of a CPU allows it to exchange data with a DP master and thus to be used, for example, as an intelligent preprocessing unit of sub-processes. In its role as a DP slave, the I-slave is connected to a "higher-level" DP master.

Master

Higher-level, active device on the communication network/PROFIBUS subnet. It has bus access rights (token), sends data and requests data.

Network

A network consists of one or more linked subnets with any number of devices. Several networks can exist alongside each other.

Organization block
Organization blocks (OBs) form the interface between the operating system of the CPU and the user program. The organization blocks determine the order in which the user program is executed.

Parameter

1. Variable of a STEP 7 code block: 2. Variable for setting the behavior of a module (one or more per module) In its delivery state, each module has an appropriate basic setting that can be changed by configuring in STEP 7. There are static and dynamic parameters

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

51

Glossary

Parameter assignment
Parameter assignment is the transfer of parameters from the IO controller/DP master to the IO device/DP slave.

Process image (I/O)
The CPU transfers the values from the input and output modules to this memory area. At the start of the cyclic program, the CPU transfers the process image output as a signal state to the output modules. The CPU then reads the signal states of the input modules to the process image inputs. Next the CPU executes the user program.

Process image partition
In a process image partition, you group input and output data according to its use in the program and assign the data to an OB.

PROFIBUS

Process Field Bus - European Fieldbus standard.

PROFIBUS DP
A PROFIBUS with DP protocol that acts in conformance with EN 50170. DP stands for decentralized peripherals (fast, real-time capable, cyclic data exchange). From the perspective of the user program, the distributed I/O is addressed in exactly the same way as the central I/O.

PROFINET

Open component-based industrial communication system based on Ethernet for distributed automation systems. Communication technology promoted by the PROFIBUS User Organization.

PROFINET IO

Communication concept for the realization of modular, decentralized applications within the scope of PROFINET.
PROFINET IO is based on switched Ethernet with full-duplex operation and a transmission bandwidth of 100 Mbps.

PROFINET IO system
PROFINET IO controller with assigned PROFINET IO devices.

Isochronous mode

52

Function Manual, 10/2018, A5E43884988-AA

Glossary

Reaction time

The reaction time in the case of cyclic or time-controlled program execution is the time between the detection of an input signal and the change of a connected output signal.

RT
PROFINET IO with Real Time communication (RT) is the optimal transmission method for time-critical applications in factory automation. PROFINET IO frames are prioritized over standard frames in accordance with IEEE802.1Q. This ensures the required determinism in the automation technology.

Send clock

Period between two consecutive intervals for IRT or RT communication. The send clock is the shortest possible transmission interval for the data exchange. If IRT is activated for an IO device, T_DC is equal to the send clock.

Slave

A slave can only exchange data with a master after a request by the master.  See also DP slave

STEP 7

STEP 7 is an engineering system and includes programming languages for the creation of user programs for SIMATIC S7 controllers.

Subnet

Part of a network whose parameters must be coordinated for the devices (e.g. for PROFINET). A subnet includes the bus components and all connected devices. Subnets can be connected, for example, using gateways or routers, to form a network.

T_DC

 See Send clock

User program

SIMATIC differentiates between the operating system of the CPU and user programs. The user program contains all instructions and declarations as well as data for the signal processing that enable a plant or process to be controlled. The user program is assigned to a programmable module (e.g. CPU) and can be structured in smaller units.

Isochronous mode

Function Manual, 10/2018, A5E43884988-AA

53

Index

A
Application cycle, 22 Setting, 41
Axis Isochronous, 39
C
Cam Isochronous, 39
D
Data cycle, 18, 20 Delay time, 22
Setting, 41 DP cycle time, 18, 22 DP slave, 33 Drive
Isochronous, 34
E
Execution window, 43
I
I/O addresses, 22 IO device, 25 IPO model, 43, 44 IRT, 22 Isochronous mode
Configuring, 25, 27, 33 Definition, 12 Example, 16 Time synchronization, 18, 20 Isochronous mode interrupt OB, 18, 20, 22, 31 OB 6x, 43
L
Lead time, 18, 20

M
Motion Control application, 34
O
OB MC PostServo, 48 OB MC PreServo, 48 OB MC Servo, 43, 48 OIP model, 43, 46 Oversampling, 27
P
Process image partition, 31
R
RT class, 22
S
Send clock, 18, 20, 22, 30 Sync domain, 22 SYNC_PI, 43, 44, 46 SYNC_PO, 43, 44, 46 Synchronous Cycle, 43
T
T_DC, 18, 20, 22, 45, 47 Ti, 18, 20 To, 18, 20 Topology configuration, 22

Isochronous mode

54

Function Manual, 10/2018, A5E43884988-AA


DI FA AS E&C-PRM Adobe PDF Library 10.0